]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
744dd1dd7d75078383158ff99b3978313a2f4454
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 600
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
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 \author -970929547 "Thibaut Cuvelier"
140 \author -712698321 "Jürgen Spitzmüller"
141 \author -584632292 "Richard Kimberly Heck"
142 \author -495245474 "Jean-Marc Lasgouttes"
143 \author 5863208 "ab"
144 \author 232239728 "Owner"
145 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
146 \author 1075283030 "Thibaut"
147 \end_header
148
149 \begin_body
150
151 \begin_layout Title
152 Customizing \SpecialChar LyX
153 : Features for the Advanced User
154 \end_layout
155
156 \begin_layout Author
157 by the \SpecialChar LyX
158  Team
159 \begin_inset Foot
160 status collapsed
161
162 \begin_layout Plain Layout
163 If you have comments or error corrections, please send them to the \SpecialChar LyX
164  Documentatio
165 n mailing list, 
166 \begin_inset CommandInset href
167 LatexCommand href
168 target "lyx-docs@lists.lyx.org"
169 type "mailto:"
170 literal "false"
171
172 \end_inset
173
174 .
175  Include 
176 \begin_inset Quotes eld
177 \end_inset
178
179 [Customization]
180 \begin_inset Quotes erd
181 \end_inset
182
183  in the subject header, and please cc the current maintainer of this file,
184  Richard 
185 \change_inserted 5863208 1604930692
186 Kimberly 
187 \change_unchanged
188 Heck <
189 \change_inserted 5863208 1604930729
190 rikiheck@lyx.org
191 \change_deleted 5863208 1604930668
192 rikiheck@lyx.org
193 \change_unchanged
194 >.
195 \end_layout
196
197 \end_inset
198
199
200 \begin_inset Newline newline
201 \end_inset
202
203
204 \begin_inset Newline newline
205 \end_inset
206
207 Version 2.4.x
208 \end_layout
209
210 \begin_layout Standard
211 \begin_inset CommandInset toc
212 LatexCommand tableofcontents
213
214 \end_inset
215
216
217 \end_layout
218
219 \begin_layout Standard
220 \begin_inset Note Note
221 status open
222
223 \begin_layout Plain Layout
224 Please use change tracking when modifying this document.
225  This makes it easier for our translators to recognize things that have
226  been changed, and it helps the maintainer keep up-to-date with what's been
227  done.
228 \end_layout
229
230 \end_inset
231
232
233 \end_layout
234
235 \begin_layout Chapter
236 Introduction
237 \end_layout
238
239 \begin_layout Standard
240 This manual covers the customization features present in \SpecialChar LyX
241 .
242  In it, we discuss issues like keyboard shortcuts, screen previewing options,
243  printer options, sending commands to \SpecialChar LyX
244  via the \SpecialChar LyX
245  Server, internationalization,
246  installing new \SpecialChar LaTeX
247  classes and \SpecialChar LyX
248  layouts, etc.
249  We can't possibly hope to touch on everything you can change—our developers
250  add new features faster than we can document them—but we will explain the
251  most common customizations and hopefully point you in the right direction
252  for some of the more obscure ones.
253 \end_layout
254
255 \begin_layout Standard
256 \begin_inset Branch OutDated
257 inverted 0
258 status collapsed
259
260 \begin_layout Standard
261 Information from previous versions of this document that now seems to be
262  outdated is contained in the OutDated branch of this document.
263  By default, this information will not appear in the \SpecialChar LaTeX
264  output.
265 \end_layout
266
267 \end_inset
268
269
270 \end_layout
271
272 \begin_layout Chapter
273 \SpecialChar LyX
274  configuration files
275 \end_layout
276
277 \begin_layout Standard
278 This chapter aims to help you to find your way through the \SpecialChar LyX
279  configuration
280  files.
281  Before continuing to read this chapter, you should find out where your
282  \SpecialChar LyX
283  library and user directories are by using 
284 \begin_inset Flex Noun
285 status collapsed
286
287 \begin_layout Plain Layout
288 Help\SpecialChar menuseparator
289 About
290 \begin_inset space ~
291 \end_inset
292
293 LyX
294 \end_layout
295
296 \end_inset
297
298 .
299  The library directory is the place where \SpecialChar LyX
300  places its system-wide configuration
301  files; the user directory is where you can place your modified versions.
302  We will call the former 
303 \begin_inset Flex Code
304 status collapsed
305
306 \begin_layout Plain Layout
307 LyXDir
308 \end_layout
309
310 \end_inset
311
312  and the latter 
313 \begin_inset Flex Noun
314 status collapsed
315
316 \begin_layout Plain Layout
317 UserDir
318 \end_layout
319
320 \end_inset
321
322  in the remainder of this document.
323  
324 \end_layout
325
326 \begin_layout Section
327 What's in 
328 \begin_inset Flex Code
329 status collapsed
330
331 \begin_layout Plain Layout
332 LyXDir
333 \end_layout
334
335 \end_inset
336
337 ?
338 \end_layout
339
340 \begin_layout Standard
341 \begin_inset Flex Code
342 status collapsed
343
344 \begin_layout Plain Layout
345 LyXDir
346 \end_layout
347
348 \end_inset
349
350  and its sub-directories contain a number of files 
351 \change_deleted 232239728 1604787780
352 and
353 \change_unchanged
354  that can be used to customize \SpecialChar LyX
355 's behavior.
356  You can change many of these files from within \SpecialChar LyX
357  itself through the 
358 \begin_inset Flex Noun
359 status collapsed
360
361 \begin_layout Plain Layout
362 Tools\SpecialChar menuseparator
363 Preferences
364 \end_layout
365
366 \end_inset
367
368  dialog.
369  Most customization that you will want to do in \SpecialChar LyX
370  is possible through this
371  dialog.
372  However, many other inner aspects of \SpecialChar LyX
373  can be customized by modifying the
374  files in 
375 \begin_inset Flex Code
376 status collapsed
377
378 \begin_layout Plain Layout
379 LyXDir
380 \end_layout
381
382 \end_inset
383
384 .
385  These files fall in different categories, described in the following subsection
386 s.
387 \end_layout
388
389 \begin_layout Subsection
390 Automatically generated files
391 \end_layout
392
393 \begin_layout Standard
394 The files found in 
395 \begin_inset Flex Noun
396 status collapsed
397
398 \begin_layout Plain Layout
399 UserDir
400 \end_layout
401
402 \end_inset
403
404  are generated when you configure \SpecialChar LyX
405 .
406  They contain various default values that are 
407 \change_inserted 5863208 1604919565
408 automatically detected during reconfiguration.
409 \change_deleted 232239728 1604788241
410 guessed by inspection
411 \change_unchanged
412  In general, it is not a good idea to modify them, since they might be overwritt
413 en at any time.
414 \end_layout
415
416 \begin_layout Labeling
417 \labelwidthstring 00.00.0000
418 \begin_inset Flex Code
419 status collapsed
420
421 \begin_layout Plain Layout
422 lyxrc.defaults
423 \end_layout
424
425 \end_inset
426
427  
428 \change_deleted 5863208 1604919950
429
430 \begin_inset Note Note
431 status collapsed
432
433 \begin_layout Plain Layout
434
435 \change_inserted 232239728 1604853928
436 I capitalized the first word in all of these lists.
437  To me it looks better but it really is a stylistic thing, your call.
438  However if you are not going to capitalize them, the english in some needs
439  to be modified to make it read correctly as a sentence.
440 \change_unchanged
441
442 \end_layout
443
444 \end_inset
445
446
447 \change_deleted 232239728 1604853510
448 c
449 \change_inserted 232239728 1604853510
450 C
451 \change_unchanged
452 ontains defaults for various commands.
453 \end_layout
454
455 \begin_layout Labeling
456 \labelwidthstring 00.00.0000
457 \begin_inset Flex Code
458 status collapsed
459
460 \begin_layout Plain Layout
461 packages.lst
462 \end_layout
463
464 \end_inset
465
466  
467 \change_deleted 232239728 1604853512
468 c
469 \change_inserted 232239728 1604853512
470 C
471 \change_unchanged
472 ontains the list of packages that have been recognized by \SpecialChar LyX
473 .
474  It is currently unused by the \SpecialChar LyX
475  program itself, but the information extracted,
476  and more, is made available with 
477 \begin_inset Flex Noun
478 status collapsed
479
480 \begin_layout Plain Layout
481 Help\SpecialChar menuseparator
482 \SpecialChar LaTeX
483
484 \begin_inset space ~
485 \end_inset
486
487 Configuration
488 \end_layout
489
490 \end_inset
491
492 .
493 \end_layout
494
495 \begin_layout Labeling
496 \labelwidthstring 00.00.0000
497 \begin_inset Flex Code
498 status collapsed
499
500 \begin_layout Plain Layout
501 textclass.lst
502 \end_layout
503
504 \end_inset
505
506  
507 \change_deleted 232239728 1604853515
508 t
509 \change_inserted 232239728 1604853515
510 T
511 \change_unchanged
512 he list of text classes that have been found in your 
513 \begin_inset Flex Code
514 status collapsed
515
516 \begin_layout Plain Layout
517 layout/
518 \end_layout
519
520 \end_inset
521
522  directories, along with the associated \SpecialChar LaTeX
523  document class and their description.
524 \end_layout
525
526 \begin_layout Labeling
527 \labelwidthstring 00.00.0000
528 \begin_inset Flex Code
529 status collapsed
530
531 \begin_layout Plain Layout
532 lyxmodules.lst
533 \end_layout
534
535 \end_inset
536
537  
538 \change_deleted 232239728 1604853518
539 t
540 \change_inserted 232239728 1604853518
541 T
542 \change_unchanged
543 he list of layout modules found in your 
544 \begin_inset Flex Code
545 status collapsed
546
547 \begin_layout Plain Layout
548 layout/
549 \end_layout
550
551 \end_inset
552
553  directories
554 \end_layout
555
556 \begin_layout Labeling
557 \labelwidthstring 00.00.0000
558 \begin_inset Flex Code
559 status open
560
561 \begin_layout Plain Layout
562 *files.lst
563 \end_layout
564
565 \end_inset
566
567  
568 \change_deleted 232239728 1604853523
569 l
570 \change_inserted 232239728 1604853523
571 L
572 \change_unchanged
573 ists of various sorts of \SpecialChar LaTeX
574 -related files found on your system
575 \end_layout
576
577 \begin_layout Labeling
578 \labelwidthstring 00.00.0000
579 \begin_inset Flex Code
580 status open
581
582 \begin_layout Plain Layout
583 doc/\SpecialChar LaTeX
584 Config.lyx
585 \end_layout
586
587 \end_inset
588
589  is automatically generated during configuration from the file 
590 \begin_inset Flex Code
591 status collapsed
592
593 \begin_layout Plain Layout
594 \SpecialChar LaTeX
595 Config.lyx.in
596 \end_layout
597
598 \end_inset
599
600 .
601  It contains information on your \SpecialChar LaTeX
602  configuration.
603 \end_layout
604
605 \begin_layout Subsection
606 Directories
607 \end_layout
608
609 \begin_layout Standard
610 The
611 \change_deleted 5863208 1604928729
612 se
613 \change_unchanged
614  
615 \change_inserted 5863208 1604928636
616 following 
617 \change_unchanged
618 directories 
619 \change_inserted 5863208 1604928661
620 in 
621 \change_unchanged
622
623 \begin_inset Flex Code
624 status collapsed
625
626 \begin_layout Plain Layout
627 LyXDir
628 \end_layout
629
630 \end_inset
631
632
633 \change_inserted 5863208 1604928662
634  can be
635 \change_deleted 5863208 1604928642
636 are
637 \change_unchanged
638  duplicated 
639 \change_deleted 5863208 1604928669
640 between 
641 \begin_inset Flex Code
642 status collapsed
643
644 \begin_layout Plain Layout
645 LyXDir
646 \end_layout
647
648 \end_inset
649
650  and
651 \change_inserted 5863208 1604928680
652 in
653 \change_unchanged
654  
655 \begin_inset Flex Code
656 status collapsed
657
658 \begin_layout Plain Layout
659 UserDir
660 \end_layout
661
662 \end_inset
663
664 .
665  If a particular file
666 \change_deleted 232239728 1604794430
667 s
668 \change_unchanged
669  exists in both places, the one in 
670 \begin_inset Flex Code
671 status collapsed
672
673 \begin_layout Plain Layout
674 UserDir
675 \end_layout
676
677 \end_inset
678
679  will be used.
680 \end_layout
681
682 \begin_layout Labeling
683 \labelwidthstring 00.00.0000
684 \begin_inset Flex Code
685 status collapsed
686
687 \begin_layout Plain Layout
688 bind/
689 \end_layout
690
691 \end_inset
692
693  
694 \change_deleted 232239728 1604794460
695 t
696 \change_inserted 232239728 1604794460
697 T
698 \change_unchanged
699 his directory contains files with the extension 
700 \begin_inset Flex Code
701 status collapsed
702
703 \begin_layout Plain Layout
704 .bind
705 \end_layout
706
707 \end_inset
708
709  that define the keybindings used in \SpecialChar LyX
710 .
711  If there exists an internationalized version of the bind file named 
712 \begin_inset Flex Code
713 status collapsed
714
715 \begin_layout Plain Layout
716 $LANG_xxx.bind
717 \end_layout
718
719 \end_inset
720
721 , that will be used first.
722 \end_layout
723
724 \begin_layout Labeling
725 \labelwidthstring 00.00.0000
726 \begin_inset Flex Code
727 status collapsed
728
729 \begin_layout Plain Layout
730 citeengines/
731 \end_layout
732
733 \end_inset
734
735  
736 \change_deleted 232239728 1604794478
737 c
738 \change_inserted 232239728 1604794478
739 C
740 \change_unchanged
741 ontains files with the extension 
742 \begin_inset Flex Code
743 status collapsed
744
745 \begin_layout Plain Layout
746 .citeengine
747 \end_layout
748
749 \end_inset
750
751  which define the diverse citation possibilities (natbib, biblatex etc.).
752  See 
753 \begin_inset CommandInset ref
754 LatexCommand ref
755 reference "subsec:Cite-Engine-Files"
756 plural "false"
757 caps "false"
758 noprefix "false"
759
760 \end_inset
761
762  for details.
763 \end_layout
764
765 \begin_layout Labeling
766 \labelwidthstring 00.00.0000
767 \begin_inset Flex Code
768 status collapsed
769
770 \begin_layout Plain Layout
771 clipart/
772 \end_layout
773
774 \end_inset
775
776  
777 \change_deleted 232239728 1604794483
778 c
779 \change_inserted 232239728 1604794486
780 C
781 \change_unchanged
782 ontains graphics files that can be included in documents.
783  
784 \end_layout
785
786 \begin_layout Labeling
787 \labelwidthstring 00.00.0000
788 \begin_inset Flex Code
789 status collapsed
790
791 \begin_layout Plain Layout
792 doc/
793 \end_layout
794
795 \end_inset
796
797  
798 \change_deleted 232239728 1604794492
799 c
800 \change_inserted 232239728 1604794492
801 C
802 \change_unchanged
803 ontains \SpecialChar LyX
804  documentation files (including the one you are currently reading).
805  The file 
806 \begin_inset Flex Code
807 status collapsed
808
809 \begin_layout Plain Layout
810
811 \change_deleted 232239728 1604794660
812 \SpecialChar LaTeX
813
814 \change_inserted 232239728 1604794661
815 LaTex
816 \change_unchanged
817 Config.lyx
818 \end_layout
819
820 \end_inset
821
822  deserves special attention, as noted above.
823  The internationalized help docs are in subdirectories 
824 \begin_inset Flex Code
825 status collapsed
826
827 \begin_layout Plain Layout
828 doc/xx
829 \end_layout
830
831 \end_inset
832
833  where 
834 \begin_inset Quotes eld
835 \end_inset
836
837 xx
838 \begin_inset Quotes erd
839 \end_inset
840
841  is the ISO language code.
842  See 
843 \begin_inset CommandInset ref
844 LatexCommand ref
845 reference "cha:Internationalizing-LyX"
846
847 \end_inset
848
849  for details.
850 \end_layout
851
852 \begin_layout Labeling
853 \labelwidthstring 00.00.0000
854 \begin_inset Flex Code
855 status collapsed
856
857 \begin_layout Plain Layout
858 examples/
859 \end_layout
860
861 \end_inset
862
863  
864 \change_deleted 232239728 1604794497
865 c
866 \change_inserted 232239728 1604794497
867 C
868 \change_unchanged
869 ontains example files that explain how to use some features.
870  In the file browser, press the 
871 \begin_inset Flex Noun
872 status collapsed
873
874 \begin_layout Plain Layout
875 Examples
876 \end_layout
877
878 \end_inset
879
880  button to get there.
881 \end_layout
882
883 \begin_layout Labeling
884 \labelwidthstring 00.00.0000
885 \begin_inset Flex Code
886 status collapsed
887
888 \begin_layout Plain Layout
889 images/
890 \end_layout
891
892 \end_inset
893
894  
895 \change_deleted 232239728 1604794500
896 c
897 \change_inserted 232239728 1604794500
898 C
899 \change_unchanged
900 ontains image files that are used by the 
901 \begin_inset Flex Noun
902 status collapsed
903
904 \begin_layout Plain Layout
905 Document
906 \end_layout
907
908 \end_inset
909
910  dialog.
911  In addition, it also contains the individual icons used in the toolbar
912  and the banners that can be shown when \SpecialChar LyX
913  is launched.
914 \end_layout
915
916 \begin_layout Labeling
917 \labelwidthstring 00.00.0000
918 \begin_inset Flex Code
919 status collapsed
920
921 \begin_layout Plain Layout
922 kbd/
923 \end_layout
924
925 \end_inset
926
927  
928 \change_deleted 232239728 1604794505
929 c
930 \change_inserted 232239728 1604794505
931 C
932 \change_unchanged
933 ontains keyboard keymapping files.
934  See 
935 \begin_inset CommandInset ref
936 LatexCommand ref
937 reference "sec:International-Keymap-Stuff"
938
939 \end_inset
940
941  for details.
942 \end_layout
943
944 \begin_layout Labeling
945 \labelwidthstring 00.00.0000
946 \begin_inset Flex Code
947 status collapsed
948
949 \begin_layout Plain Layout
950 layouts/
951 \end_layout
952
953 \end_inset
954
955  
956 \change_deleted 232239728 1604794508
957 c
958 \change_inserted 232239728 1604794508
959 C
960 \change_unchanged
961 ontains the text class and module files described in 
962 \begin_inset CommandInset ref
963 LatexCommand ref
964 reference "cha:Installing-New-Document"
965
966 \end_inset
967
968 .
969 \end_layout
970
971 \begin_layout Labeling
972 \labelwidthstring 00.00.0000
973 \begin_inset Flex Code
974 status collapsed
975
976 \begin_layout Plain Layout
977 lyx2lyx
978 \end_layout
979
980 \end_inset
981
982  
983 \change_deleted 232239728 1604794513
984 c
985 \change_inserted 232239728 1604794513
986 C
987 \change_unchanged
988 ontains the 
989 \begin_inset Flex Code
990 status collapsed
991
992 \begin_layout Plain Layout
993 lyx2lyx
994 \end_layout
995
996 \end_inset
997
998  Python scripts used to convert between \SpecialChar LyX
999  versions.
1000  These can be run from the command line if
1001 \change_deleted 232239728 1604794749
1002 , say,
1003 \change_unchanged
1004  you want to batch-convert files.
1005 \end_layout
1006
1007 \begin_layout Labeling
1008 \labelwidthstring 00.00.0000
1009 \begin_inset Flex Code
1010 status collapsed
1011
1012 \begin_layout Plain Layout
1013 scripts/
1014 \end_layout
1015
1016 \end_inset
1017
1018  
1019 \change_deleted 232239728 1604794516
1020 c
1021 \change_inserted 232239728 1604794516
1022 C
1023 \change_unchanged
1024 ontains some files that demonstrate the capabilities of the 
1025 \begin_inset Flex Noun
1026 status collapsed
1027
1028 \begin_layout Plain Layout
1029 External
1030 \begin_inset space ~
1031 \end_inset
1032
1033 Template
1034 \end_layout
1035
1036 \end_inset
1037
1038  feature.
1039  Also contains some scripts used by \SpecialChar LyX
1040  itself.
1041 \end_layout
1042
1043 \begin_layout Labeling
1044 \labelwidthstring 00.00.0000
1045 \begin_inset Flex Code
1046 status collapsed
1047
1048 \begin_layout Plain Layout
1049 templates/
1050 \end_layout
1051
1052 \end_inset
1053
1054  
1055 \change_deleted 232239728 1604794520
1056 c
1057 \change_inserted 232239728 1604794520
1058 C
1059 \change_unchanged
1060 ontains the standard \SpecialChar LyX
1061  template files described in 
1062 \begin_inset CommandInset ref
1063 LatexCommand ref
1064 reference "subsec:Creating-Templates"
1065
1066 \end_inset
1067
1068 .
1069 \end_layout
1070
1071 \begin_layout Labeling
1072 \labelwidthstring 00.00.0000
1073 \begin_inset Flex Code
1074 status collapsed
1075
1076 \begin_layout Plain Layout
1077 ui/
1078 \end_layout
1079
1080 \end_inset
1081
1082  
1083 \change_deleted 232239728 1604794524
1084 c
1085 \change_inserted 232239728 1604794524
1086 C
1087 \change_unchanged
1088 ontains files with the extension 
1089 \begin_inset Flex Code
1090 status collapsed
1091
1092 \begin_layout Plain Layout
1093 .ui
1094 \end_layout
1095
1096 \end_inset
1097
1098  that define the user interface to \SpecialChar LyX
1099 .
1100  That is, the files define which items appear in which menus and the items
1101  appearing on the toolbar.
1102 \end_layout
1103
1104 \begin_layout Labeling
1105 \labelwidthstring 00.00.0000
1106 \begin_inset Flex Code
1107 status collapsed
1108
1109 \begin_layout Plain Layout
1110 xtemplates/
1111 \end_layout
1112
1113 \end_inset
1114
1115  
1116 \change_deleted 232239728 1604794528
1117 c
1118 \change_inserted 232239728 1604794528
1119 C
1120 \change_unchanged
1121 ontains files with the extension 
1122 \begin_inset Flex Code
1123 status collapsed
1124
1125 \begin_layout Plain Layout
1126 .xtemplate
1127 \end_layout
1128
1129 \end_inset
1130
1131  which define the templates for the insertion of external material to a
1132  \SpecialChar LyX
1133  document; see 
1134 \begin_inset CommandInset ref
1135 LatexCommand ref
1136 reference "chap:Including-External-Material"
1137
1138 \end_inset
1139
1140 .
1141 \end_layout
1142
1143 \begin_layout Subsection
1144 Files you don't want to modify
1145 \end_layout
1146
1147 \begin_layout Standard
1148 These files are used internally by \SpecialChar LyX
1149  and you generally do not need to modify
1150  them unless you are a developer.
1151 \end_layout
1152
1153 \begin_layout Labeling
1154 \labelwidthstring 00.00.0000
1155 \begin_inset Flex Code
1156 status collapsed
1157
1158 \begin_layout Plain Layout
1159 CREDITS
1160 \end_layout
1161
1162 \end_inset
1163
1164  
1165 \change_deleted 232239728 1604797616
1166 t
1167 \change_inserted 232239728 1604797616
1168 T
1169 \change_unchanged
1170 his file contains the list of \SpecialChar LyX
1171  developers.
1172  The contents are displayed with the menu entry 
1173 \begin_inset Flex Noun
1174 status collapsed
1175
1176 \begin_layout Plain Layout
1177 Help\SpecialChar menuseparator
1178 About
1179 \begin_inset space ~
1180 \end_inset
1181
1182 LyX
1183 \end_layout
1184
1185 \end_inset
1186
1187 .
1188 \end_layout
1189
1190 \begin_layout Labeling
1191 \labelwidthstring 00.00.0000
1192 \begin_inset Flex Code
1193 status collapsed
1194
1195 \begin_layout Plain Layout
1196 chkconfig.ltx
1197 \end_layout
1198
1199 \end_inset
1200
1201  
1202 \change_deleted 232239728 1604797620
1203 t
1204 \change_inserted 232239728 1604797620
1205 T
1206 \change_unchanged
1207 his is a \SpecialChar LaTeX
1208  script used during the configuration process.
1209  Do not run directly.
1210 \end_layout
1211
1212 \begin_layout Labeling
1213 \labelwidthstring 00.00.0000
1214 \begin_inset Flex Code
1215 status collapsed
1216
1217 \begin_layout Plain Layout
1218 configure.py
1219 \end_layout
1220
1221 \end_inset
1222
1223  
1224 \change_deleted 232239728 1604797624
1225 t
1226 \change_inserted 232239728 1604797624
1227 T
1228 \change_unchanged
1229 his is a Python script that is used to re-configure \SpecialChar LyX
1230 .
1231  It creates configuration files in the directory it was run from.
1232 \end_layout
1233
1234 \begin_layout Subsection
1235 Other files needing a line or two
1236 \end_layout
1237
1238 \begin_layout Labeling
1239 \labelwidthstring 00.00.0000
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 encodings
1245 \end_layout
1246
1247 \end_inset
1248
1249  
1250 \change_deleted 232239728 1604797580
1251 t
1252 \change_inserted 232239728 1604797580
1253 T
1254 \change_unchanged
1255 his contains tables describing how different character encodings can be
1256  mapped to Unicode
1257 \end_layout
1258
1259 \begin_layout Labeling
1260 \labelwidthstring 00.00.0000
1261 \begin_inset Flex Code
1262 status collapsed
1263
1264 \begin_layout Plain Layout
1265 languages
1266 \end_layout
1267
1268 \end_inset
1269
1270  
1271 \change_deleted 232239728 1604797584
1272 t
1273 \change_inserted 232239728 1604797584
1274 T
1275 \change_unchanged
1276 his file contains a list of all the languages currently supported by \SpecialChar LyX
1277 .
1278 \end_layout
1279
1280 \begin_layout Labeling
1281 \labelwidthstring 00.00.0000
1282 \begin_inset Flex Code
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 latexfonts
1287 \end_layout
1288
1289 \end_inset
1290
1291  
1292 \change_deleted 232239728 1604797587
1293 c
1294 \change_inserted 232239728 1604797587
1295 C
1296 \change_unchanged
1297 ontains information about the supported fonts.
1298 \end_layout
1299
1300 \begin_layout Labeling
1301 \labelwidthstring 00.00.0000
1302 \begin_inset Flex Code
1303 status collapsed
1304
1305 \begin_layout Plain Layout
1306 layouttranslations
1307 \end_layout
1308
1309 \end_inset
1310
1311  
1312 \change_deleted 232239728 1604797591
1313 t
1314 \change_inserted 232239728 1604797591
1315 T
1316 \change_unchanged
1317 his file contains translations for internationalized paragraph styles (see
1318  
1319 \begin_inset CommandInset ref
1320 LatexCommand ref
1321 reference "subsec:I18n"
1322
1323 \end_inset
1324
1325 ).
1326 \end_layout
1327
1328 \begin_layout Labeling
1329 \labelwidthstring 00.00.0000
1330 \begin_inset Flex Code
1331 status collapsed
1332
1333 \begin_layout Plain Layout
1334 unicodesymbols
1335 \end_layout
1336
1337 \end_inset
1338
1339  
1340 \change_deleted 232239728 1604797594
1341 t
1342 \change_inserted 232239728 1604797594
1343 T
1344 \change_unchanged
1345 his file contains information about Unicode-encoded glyphs and the way they
1346  are supported by \SpecialChar LyX
1347  via \SpecialChar LaTeX
1348 .
1349 \end_layout
1350
1351 \begin_layout Section
1352 Your local configuration directory
1353 \end_layout
1354
1355 \begin_layout Standard
1356 Even if you are using \SpecialChar LyX
1357  as an unprivileged user, you might want to change
1358  \SpecialChar LyX
1359  configuration for your own use.
1360  The 
1361 \begin_inset Flex Code
1362 status collapsed
1363
1364 \begin_layout Plain Layout
1365 UserDir
1366 \end_layout
1367
1368 \end_inset
1369
1370  directory contains all your personal configuration files.
1371  This is the directory described as 
1372 \begin_inset Quotes eld
1373 \end_inset
1374
1375 user directory
1376 \begin_inset Quotes erd
1377 \end_inset
1378
1379  in 
1380 \begin_inset Flex Noun
1381 status collapsed
1382
1383 \begin_layout Plain Layout
1384 Help\SpecialChar menuseparator
1385 About
1386 \begin_inset space ~
1387 \end_inset
1388
1389 LyX
1390 \end_layout
1391
1392 \end_inset
1393
1394 .
1395  This directory is used as a mirror of 
1396 \begin_inset Flex Code
1397 status collapsed
1398
1399 \begin_layout Plain Layout
1400 LyXDir
1401 \end_layout
1402
1403 \end_inset
1404
1405 , which means that every file in 
1406 \begin_inset Flex Code
1407 status collapsed
1408
1409 \begin_layout Plain Layout
1410 UserDir
1411 \end_layout
1412
1413 \end_inset
1414
1415  is a replacement for the corresponding file in 
1416 \begin_inset Flex Code
1417 status collapsed
1418
1419 \begin_layout Plain Layout
1420 LyXDir
1421 \end_layout
1422
1423 \end_inset
1424
1425 .
1426  Any configuration file described in the above sections can be placed either
1427  in the system-wide directory, in which case it will affect all users, or
1428  in your local directory for your own use.
1429 \end_layout
1430
1431 \begin_layout Standard
1432 To make things clearer, let's provide a few examples:
1433 \end_layout
1434
1435 \begin_layout Itemize
1436 The preferences set in the 
1437 \begin_inset Flex Noun
1438 status collapsed
1439
1440 \begin_layout Plain Layout
1441 Tools\SpecialChar menuseparator
1442 Preferences
1443 \end_layout
1444
1445 \end_inset
1446
1447  dialog are saved to a file 
1448 \begin_inset Flex Code
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452 preferences
1453 \end_layout
1454
1455 \end_inset
1456
1457  in 
1458 \begin_inset Flex Code
1459 status collapsed
1460
1461 \begin_layout Plain Layout
1462 UserDir
1463 \end_layout
1464
1465 \end_inset
1466
1467 .
1468 \end_layout
1469
1470 \begin_layout Itemize
1471 When you reconfigure using 
1472 \begin_inset Flex Noun
1473 status collapsed
1474
1475 \begin_layout Plain Layout
1476 Tools\SpecialChar menuseparator
1477 Reconfigure
1478 \end_layout
1479
1480 \end_inset
1481
1482 , \SpecialChar LyX
1483  runs the 
1484 \begin_inset Flex Code
1485 status collapsed
1486
1487 \begin_layout Plain Layout
1488 configure.py
1489 \end_layout
1490
1491 \end_inset
1492
1493  script, and the resulting files are written in your local configuration
1494  directory.
1495  This means that any additional text class file that you might have added
1496  in 
1497 \begin_inset Flex Code
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 UserDir/layouts
1502 \end_layout
1503
1504 \end_inset
1505
1506  will be added to the list of classes in the 
1507 \begin_inset Flex Noun
1508 status collapsed
1509
1510 \begin_layout Plain Layout
1511 Document\SpecialChar menuseparator
1512 Settings
1513 \end_layout
1514
1515 \end_inset
1516
1517  dialog.
1518 \end_layout
1519
1520 \begin_layout Itemize
1521 If you get some updated documentation from
1522 \change_inserted 232239728 1604798171
1523  a
1524 \change_unchanged
1525  \SpecialChar LyX
1526  ftp site and cannot install it because you do not have sysadmin rights
1527  on your system, you can just copy the files 
1528 \change_deleted 232239728 1604798193
1529 in
1530 \change_inserted 232239728 1604798193
1531 to
1532 \change_unchanged
1533  
1534 \begin_inset Flex Code
1535 status collapsed
1536
1537 \begin_layout Plain Layout
1538 UserDir/doc/
1539 \end_layout
1540
1541 \end_inset
1542
1543  and the items in the 
1544 \begin_inset Flex Noun
1545 status collapsed
1546
1547 \begin_layout Plain Layout
1548 Help
1549 \end_layout
1550
1551 \end_inset
1552
1553  menu will open them!
1554 \end_layout
1555
1556 \begin_layout Section
1557 Running \SpecialChar LyX
1558  with multiple configurations
1559 \end_layout
1560
1561 \begin_layout Standard
1562 The configuration freedom of the local configuration directory may not suffice
1563  if you want to have more than one configuration at your disposal.
1564  For example, you may want to 
1565 \change_deleted 232239728 1604798238
1566 be 
1567 \change_unchanged
1568 use different key bindings or printer settings at different times.
1569  You can achieve this by having several such directories.
1570  You then specify which directory to use at run-time.
1571 \end_layout
1572
1573 \begin_layout Standard
1574 Invoking \SpecialChar LyX
1575  with the command line switch 
1576 \begin_inset Flex Code
1577 status collapsed
1578
1579 \begin_layout Plain Layout
1580 -userdir
1581 \end_layout
1582
1583 \end_inset
1584
1585  
1586 \emph on
1587 <some directory>
1588 \emph default
1589  instructs the program to read the configuration from that directory, and
1590  not from the default directory.
1591  (You can determine the default directory by running \SpecialChar LyX
1592  without the 
1593 \begin_inset Flex Code
1594 status collapsed
1595
1596 \begin_layout Plain Layout
1597 -userdir
1598 \end_layout
1599
1600 \end_inset
1601
1602  switch.) If the specified directory does not exist, \SpecialChar LyX
1603  offers to create it
1604  for you, just like it does for the default directory 
1605 \change_deleted 232239728 1604798318
1606 on
1607 \change_unchanged
1608  the first time you run the program.
1609  You can modify the configuration options in this additional user directory
1610  exactly as you would for the default directory.
1611  These directories are completely independent (but read on).
1612  Note that setting the environment variable 
1613 \begin_inset Flex Code
1614 status collapsed
1615
1616 \begin_layout Plain Layout
1617 LYX_USERDIR_24x
1618 \end_layout
1619
1620 \end_inset
1621
1622  to some value has exactly the same effect.
1623 \end_layout
1624
1625 \begin_layout Standard
1626 Having several configurations also requires more maintenance: if you want
1627  to add a new layout to 
1628 \begin_inset Flex Code
1629 status collapsed
1630
1631 \begin_layout Plain Layout
1632 NewUserDir/layouts
1633 \end_layout
1634
1635 \end_inset
1636
1637  which you want available from all your configurations, you must add it
1638  to each directory separately.
1639  You can avoid this with the following trick: after \SpecialChar LyX
1640  creates the additional
1641  directory, most of the subdirectories (see above) are empty.
1642  If you want the new configuration to mirror an existing one, replace the
1643  empty subdirectory with a symbolic link to the matching subdirectory in
1644  the existing configuration.
1645  Take care with the 
1646 \begin_inset Flex Code
1647 status collapsed
1648
1649 \begin_layout Plain Layout
1650 doc/
1651 \end_layout
1652
1653 \end_inset
1654
1655  subdirectory, however, since it contains a file written by the configuration
1656  script (also accessible through 
1657 \begin_inset Flex Noun
1658 status collapsed
1659
1660 \begin_layout Plain Layout
1661 Tools\SpecialChar menuseparator
1662 Reconfigure
1663 \end_layout
1664
1665 \end_inset
1666
1667 ) which is configuration
1668 \change_deleted 232239728 1604798083
1669 -
1670 \change_inserted 232239728 1604798100
1671  
1672 \change_unchanged
1673 specific.
1674 \end_layout
1675
1676 \begin_layout Chapter
1677 The Preferences dialog
1678 \end_layout
1679
1680 \begin_layout Standard
1681 All options of the preferences dialog are described in the Appendix 
1682 \emph on
1683 The Preferences Dialog
1684 \emph default
1685  in the 
1686 \emph on
1687 User's Guide
1688 \emph default
1689 .
1690  For some options you might find here more details.
1691 \end_layout
1692
1693 \begin_layout Section
1694 Formats
1695 \begin_inset CommandInset label
1696 LatexCommand label
1697 name "sec:Formats"
1698
1699 \end_inset
1700
1701
1702 \end_layout
1703
1704 \begin_layout Standard
1705 The first step is to define your file formats if they are not already defined.
1706  To do so, open the 
1707 \begin_inset Flex Noun
1708 status collapsed
1709
1710 \begin_layout Plain Layout
1711 Tools\SpecialChar menuseparator
1712 Preferences
1713 \end_layout
1714
1715 \end_inset
1716
1717  dialog.
1718  Under 
1719 \begin_inset Flex Noun
1720 status collapsed
1721
1722 \begin_layout Plain Layout
1723 File Handling\SpecialChar menuseparator
1724 File formats
1725 \end_layout
1726
1727 \end_inset
1728
1729  press the 
1730 \begin_inset Flex Noun
1731 status collapsed
1732
1733 \begin_layout Plain Layout
1734 New
1735 \end_layout
1736
1737 \end_inset
1738
1739  button to define your new format.
1740  The 
1741 \begin_inset Flex Noun
1742 status collapsed
1743
1744 \begin_layout Plain Layout
1745 Format
1746 \end_layout
1747
1748 \end_inset
1749
1750  field contains the name used to identify the format in the GUI.
1751  The 
1752 \begin_inset Flex Noun
1753 status collapsed
1754
1755 \begin_layout Plain Layout
1756 Short Name
1757 \end_layout
1758
1759 \end_inset
1760
1761  is used to identify the format internally.
1762  You will also need to enter a file extension.
1763  These are all required.
1764  The optional 
1765 \begin_inset Flex Noun
1766 status collapsed
1767
1768 \begin_layout Plain Layout
1769 Shortcut
1770 \end_layout
1771
1772 \end_inset
1773
1774  field is used to provide a keyboard shortcut on the menus.
1775  (For example, pressing 
1776 \begin_inset Flex Noun
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 Ctrl+D
1781 \end_layout
1782
1783 \end_inset
1784
1785  will 
1786 \begin_inset Flex Noun
1787 status collapsed
1788
1789 \begin_layout Plain Layout
1790 Document\SpecialChar menuseparator
1791 View (Other Formats)\SpecialChar menuseparator
1792 DVI
1793 \end_layout
1794
1795 \end_inset
1796
1797 .) 
1798 \end_layout
1799
1800 \begin_layout Standard
1801 A Format can have a 
1802 \begin_inset Flex Noun
1803 status collapsed
1804
1805 \begin_layout Plain Layout
1806 Viewer
1807 \end_layout
1808
1809 \end_inset
1810
1811  and an 
1812 \begin_inset Flex Noun
1813 status collapsed
1814
1815 \begin_layout Plain Layout
1816 Editor
1817 \end_layout
1818
1819 \end_inset
1820
1821  associated with it.
1822  For example, you might want to use 
1823 \begin_inset Flex Noun
1824 status collapsed
1825
1826 \begin_layout Plain Layout
1827 Ghostview
1828 \end_layout
1829
1830 \end_inset
1831
1832  to view PostScript files.
1833  You can enter the command needed to start the program in the corresponding
1834  fields.
1835  In defining this command, you can use the four variables listed in the
1836  next section.
1837  The viewer is launched when you view an image in \SpecialChar LyX
1838  or use the 
1839 \begin_inset Flex Noun
1840 status collapsed
1841
1842 \begin_layout Plain Layout
1843 Document\SpecialChar menuseparator
1844 View
1845 \end_layout
1846
1847 \end_inset
1848
1849  menu.
1850  The editor is for example launched when you right-click on an image and
1851  choose 
1852 \begin_inset Flex Noun
1853 status collapsed
1854
1855 \begin_layout Plain Layout
1856 Edit externally
1857 \end_layout
1858
1859 \end_inset
1860
1861  in the appearing context menu.
1862 \end_layout
1863
1864 \begin_layout Standard
1865 The 
1866 \begin_inset Flex Noun
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 MIME
1871 \end_layout
1872
1873 \end_inset
1874
1875  type of a format is optional, but if it is specified, it must be unique
1876  across all formats.
1877  It is used to detect files of this format from the file contents.
1878  For some important file formats there is no MIME type officially registered
1879  with the 
1880 \begin_inset CommandInset href
1881 LatexCommand href
1882 name "IANA"
1883 target "http://www.iana.org/assignments/media-types/"
1884 literal "false"
1885
1886 \end_inset
1887
1888 .
1889  Therefore \SpecialChar LyX
1890  uses the extended list of MIME types as specified by 
1891 \begin_inset CommandInset href
1892 LatexCommand href
1893 name "freedesktop.org"
1894 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1895 literal "false"
1896
1897 \end_inset
1898
1899 .
1900 \end_layout
1901
1902 \begin_layout Standard
1903 The 
1904 \begin_inset Flex Noun
1905 status collapsed
1906
1907 \begin_layout Plain Layout
1908 Document format
1909 \end_layout
1910
1911 \end_inset
1912
1913  option tells \SpecialChar LyX
1914  that a format is suitable for document export.
1915  If this is set and if a suitable conversion route exists (see 
1916 \begin_inset CommandInset ref
1917 LatexCommand ref
1918 reference "sec:Converters"
1919
1920 \end_inset
1921
1922 ), the format will appear in the 
1923 \begin_inset Flex Noun
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927 File\SpecialChar menuseparator
1928 Export
1929 \end_layout
1930
1931 \end_inset
1932
1933  menu.
1934  The format will also appear in the 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document\SpecialChar menuseparator
1940 View
1941 \end_layout
1942
1943 \end_inset
1944
1945  menu if a viewer is specified for the format.
1946  Pure image formats, such as 
1947 \begin_inset Flex Code
1948 status collapsed
1949
1950 \begin_layout Plain Layout
1951 png
1952 \end_layout
1953
1954 \end_inset
1955
1956 , should not use this option.
1957  Formats that can both represent vector graphics and documents like 
1958 \begin_inset Flex Code
1959 status collapsed
1960
1961 \begin_layout Plain Layout
1962 pdf
1963 \end_layout
1964
1965 \end_inset
1966
1967  should use it.
1968 \end_layout
1969
1970 \begin_layout Standard
1971 The option 
1972 \begin_inset Flex Noun
1973 status collapsed
1974
1975 \begin_layout Plain Layout
1976 Vector graphics format
1977 \end_layout
1978
1979 \end_inset
1980
1981  tells \SpecialChar LyX
1982  that a format can contain vector graphics.
1983  This information is used to determine the target format of included graphics
1984  for 
1985 \begin_inset Flex Noun
1986 status collapsed
1987
1988 \begin_layout Plain Layout
1989 pdflatex
1990 \end_layout
1991
1992 \end_inset
1993
1994  export.
1995  Included graphics may need to be converted to either 
1996 \begin_inset Flex Noun
1997 status collapsed
1998
1999 \begin_layout Plain Layout
2000 pdf
2001 \end_layout
2002
2003 \end_inset
2004
2005
2006 \begin_inset Flex Noun
2007 status collapsed
2008
2009 \begin_layout Plain Layout
2010 png
2011 \end_layout
2012
2013 \end_inset
2014
2015 , or 
2016 \begin_inset Flex Noun
2017 status collapsed
2018
2019 \begin_layout Plain Layout
2020 jpg
2021 \end_layout
2022
2023 \end_inset
2024
2025 , since 
2026 \begin_inset Flex Noun
2027 status collapsed
2028
2029 \begin_layout Plain Layout
2030 pdflatex
2031 \end_layout
2032
2033 \end_inset
2034
2035  cannot handle other image formats.
2036  If an included graphic is not already in 
2037 \begin_inset Flex Noun
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 pdf
2042 \end_layout
2043
2044 \end_inset
2045
2046
2047 \begin_inset Flex Noun
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051 png
2052 \end_layout
2053
2054 \end_inset
2055
2056 , or 
2057 \begin_inset Flex Noun
2058 status collapsed
2059
2060 \begin_layout Plain Layout
2061 jpg
2062 \end_layout
2063
2064 \end_inset
2065
2066  format, it is converted to 
2067 \begin_inset Flex Noun
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071 pdf
2072 \end_layout
2073
2074 \end_inset
2075
2076  if the vector format option is set, and otherwise to 
2077 \begin_inset Flex Noun
2078 status collapsed
2079
2080 \begin_layout Plain Layout
2081 png
2082 \end_layout
2083
2084 \end_inset
2085
2086 .
2087 \end_layout
2088
2089 \begin_layout Section
2090 Copiers
2091 \end_layout
2092
2093 \begin_layout Standard
2094 Since all conversions from one format to another take place in \SpecialChar LyX
2095 's temporary
2096  directory, it is sometimes necessary to modify a file before copying it
2097  to the temporary directory in order that the conversion may be performed.
2098 \begin_inset Foot
2099 status collapsed
2100
2101 \begin_layout Plain Layout
2102 For example, the file may refer to other files—images, for example—using
2103  relative file names, and these may become invalid when the file is copied
2104  to the temporary directory.
2105 \end_layout
2106
2107 \end_inset
2108
2109  This is done by a Copier: It copies a file to (or from) the temporary directory
2110  and may modify it in the process.
2111 \end_layout
2112
2113 \begin_layout Standard
2114 The definitions of the copiers may use eight variables:
2115 \end_layout
2116
2117 \begin_layout Labeling
2118 \labelwidthstring 00.00.0000
2119 \begin_inset Flex Code
2120 status collapsed
2121
2122 \begin_layout Plain Layout
2123 $$s
2124 \end_layout
2125
2126 \end_inset
2127
2128  The \SpecialChar LyX
2129  system directory (e.
2130 \begin_inset space \thinspace{}
2131 \end_inset
2132
2133 g.
2134 \begin_inset space \space{}
2135 \end_inset
2136
2137
2138 \begin_inset Flex Noun
2139 status collapsed
2140
2141 \begin_layout Plain Layout
2142 /usr/share/lyx
2143 \end_layout
2144
2145 \end_inset
2146
2147 ).
2148 \end_layout
2149
2150 \begin_layout Labeling
2151 \labelwidthstring 00.00.0000
2152 \begin_inset Flex Code
2153 status collapsed
2154
2155 \begin_layout Plain Layout
2156 $$i
2157 \end_layout
2158
2159 \end_inset
2160
2161  The input file
2162 \end_layout
2163
2164 \begin_layout Labeling
2165 \labelwidthstring 00.00.0000
2166 \begin_inset Flex Code
2167 status collapsed
2168
2169 \begin_layout Plain Layout
2170 $$o
2171 \end_layout
2172
2173 \end_inset
2174
2175  The output file
2176 \end_layout
2177
2178 \begin_layout Labeling
2179 \labelwidthstring 00.00.0000
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 $$b
2185 \end_layout
2186
2187 \end_inset
2188
2189  The base name (without filename extension) in the \SpecialChar LyX
2190  temporary directory
2191 \end_layout
2192
2193 \begin_layout Labeling
2194 \labelwidthstring 00.00.0000
2195 \begin_inset Flex Code
2196 status collapsed
2197
2198 \begin_layout Plain Layout
2199 $$p
2200 \end_layout
2201
2202 \end_inset
2203
2204  The full directory path of the \SpecialChar LyX
2205  temporary directory
2206 \end_layout
2207
2208 \begin_layout Labeling
2209 \labelwidthstring 00.00.0000
2210 \begin_inset Flex Code
2211 status collapsed
2212
2213 \begin_layout Plain Layout
2214 $$r
2215 \end_layout
2216
2217 \end_inset
2218
2219  The full pathname to the original \SpecialChar LyX
2220  file being processed
2221 \end_layout
2222
2223 \begin_layout Labeling
2224 \labelwidthstring 00.00.0000
2225 \begin_inset Flex Code
2226 status collapsed
2227
2228 \begin_layout Plain Layout
2229 $$f
2230 \end_layout
2231
2232 \end_inset
2233
2234  The filename (without any directory path) of the \SpecialChar LyX
2235  file.
2236 \end_layout
2237
2238 \begin_layout Labeling
2239 \labelwidthstring 00.00.0000
2240 \begin_inset Flex Code
2241 status collapsed
2242
2243 \begin_layout Plain Layout
2244 $$l
2245 \end_layout
2246
2247 \end_inset
2248
2249  The `\SpecialChar LaTeX
2250  name'
2251 \end_layout
2252
2253 \begin_layout Standard
2254 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2255 's 
2256 \series bold
2257
2258 \backslash
2259 include
2260 \series default
2261  command.
2262  It is relevant only when exporting files suitable for such inclusion.
2263 \end_layout
2264
2265 \begin_layout Standard
2266 Copiers can be used to do almost anything with output files.
2267  For example, suppose you want generated pdf files to be copied to a special
2268  directory, 
2269 \begin_inset Flex Code
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273 /home/you/pdf/
2274 \end_layout
2275
2276 \end_inset
2277
2278 .
2279  Then you could write a shell script such as this one:
2280 \end_layout
2281
2282 \begin_layout Standard
2283 \begin_inset listings
2284 inline false
2285 status open
2286
2287 \begin_layout Plain Layout
2288
2289 #!/bin/bash
2290 \end_layout
2291
2292 \begin_layout Plain Layout
2293
2294 FROMFILE=$1
2295 \end_layout
2296
2297 \begin_layout Plain Layout
2298
2299 TOFILE=`basename $2`
2300 \end_layout
2301
2302 \begin_layout Plain Layout
2303
2304 cp $FROMFILE /home/you/pdf/$TOFILE
2305 \end_layout
2306
2307 \end_inset
2308
2309 Save it in your local \SpecialChar LyX
2310  directory—say, 
2311 \begin_inset Flex Code
2312 status collapsed
2313
2314 \begin_layout Plain Layout
2315 /home/you/.lyx/scripts/pdfcopier.sh
2316 \end_layout
2317
2318 \end_inset
2319
2320 —and make it executable, if you need to do so on your platform.
2321  Then, in the 
2322 \begin_inset Flex Noun
2323 status collapsed
2324
2325 \begin_layout Plain Layout
2326 Tools\SpecialChar menuseparator
2327 Preferences
2328 \end_layout
2329
2330 \end_inset
2331
2332  dialog, select under 
2333 \begin_inset Flex Noun
2334 status collapsed
2335
2336 \begin_layout Plain Layout
2337 File Handling\SpecialChar menuseparator
2338 File formats
2339 \end_layout
2340
2341 \end_inset
2342
2343  the 
2344 \begin_inset Flex Noun
2345 status collapsed
2346
2347 \begin_layout Plain Layout
2348 PDF(pdflatex)
2349 \end_layout
2350
2351 \end_inset
2352
2353  format—or one of the other pdf formats—and enter 
2354 \begin_inset Flex Code
2355 status collapsed
2356
2357 \begin_layout Plain Layout
2358 pdfcopier.sh $$i $$o
2359 \end_layout
2360
2361 \end_inset
2362
2363  into the 
2364 \begin_inset Flex Noun
2365 status collapsed
2366
2367 \begin_layout Plain Layout
2368 Copier
2369 \end_layout
2370
2371 \end_inset
2372
2373  field.
2374  
2375 \end_layout
2376
2377 \begin_layout Standard
2378 Copiers are used by \SpecialChar LyX
2379  in various of its own conversions.
2380  For example, if appropriate programs are found, \SpecialChar LyX
2381  will automatically install
2382  copiers for the 
2383 \begin_inset Flex Noun
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 HTML
2388 \end_layout
2389
2390 \end_inset
2391
2392  and 
2393 \begin_inset Flex Noun
2394 status collapsed
2395
2396 \begin_layout Plain Layout
2397 HTML
2398 \begin_inset space ~
2399 \end_inset
2400
2401 (MS Word)
2402 \end_layout
2403
2404 \end_inset
2405
2406  formats.
2407  When these formats are exported, the copier sees that not just the main
2408  HTML file but various associated files (style files, images, etc.) are also
2409  copied.
2410  All these files are written to a subdirectory of the directory in which
2411  the original \SpecialChar LyX
2412  file was found.
2413 \begin_inset Foot
2414 status collapsed
2415
2416 \begin_layout Plain Layout
2417 This copier can be customized.
2418  The optional 
2419 \begin_inset Quotes eld
2420 \end_inset
2421
2422 -e
2423 \begin_inset Quotes erd
2424 \end_inset
2425
2426  argument takes a comma-separated list of extensions to be copied; if it
2427  is omitted, all files will be copied.
2428  The 
2429 \begin_inset Quotes eld
2430 \end_inset
2431
2432 -t
2433 \begin_inset Quotes erd
2434 \end_inset
2435
2436  argument determines the extension added to the generated directory.
2437  By default, it is 
2438 \begin_inset Quotes eld
2439 \end_inset
2440
2441
2442 \begin_inset Flex Noun
2443 status collapsed
2444
2445 \begin_layout Plain Layout
2446 LyXconv
2447 \end_layout
2448
2449 \end_inset
2450
2451
2452 \begin_inset Quotes erd
2453 \end_inset
2454
2455 , so HTML generated from 
2456 \begin_inset Flex Noun
2457 status collapsed
2458
2459 \begin_layout Plain Layout
2460 /path/to/filename.lyx
2461 \end_layout
2462
2463 \end_inset
2464
2465  will end up in 
2466 \begin_inset Flex Noun
2467 status collapsed
2468
2469 \begin_layout Plain Layout
2470 /path/to/filename.html.LyXconv
2471 \end_layout
2472
2473 \end_inset
2474
2475 .
2476  
2477 \end_layout
2478
2479 \end_inset
2480
2481
2482 \end_layout
2483
2484 \begin_layout Section
2485 Converters
2486 \begin_inset CommandInset label
2487 LatexCommand label
2488 name "sec:Converters"
2489
2490 \end_inset
2491
2492
2493 \end_layout
2494
2495 \begin_layout Standard
2496 You can define your own Converters to convert files between different formats.
2497  This is done in the 
2498 \begin_inset Flex Noun
2499 status collapsed
2500
2501 \begin_layout Plain Layout
2502 Tools\SpecialChar menuseparator
2503 Preferences\SpecialChar menuseparator
2504 File Handling\SpecialChar menuseparator
2505 Converters
2506 \end_layout
2507
2508 \end_inset
2509
2510  dialog.
2511 \end_layout
2512
2513 \begin_layout Standard
2514 To define a new converter, select the 
2515 \begin_inset Flex Noun
2516 status collapsed
2517
2518 \begin_layout Plain Layout
2519 From
2520 \begin_inset space ~
2521 \end_inset
2522
2523 format
2524 \end_layout
2525
2526 \end_inset
2527
2528  and 
2529 \begin_inset Flex Noun
2530 status collapsed
2531
2532 \begin_layout Plain Layout
2533 To
2534 \begin_inset space ~
2535 \end_inset
2536
2537 format
2538 \end_layout
2539
2540 \end_inset
2541
2542  from the drop-down lists, enter the command needed for the conversion,
2543  and then press the 
2544 \begin_inset Flex Noun
2545 status collapsed
2546
2547 \begin_layout Plain Layout
2548 Add
2549 \end_layout
2550
2551 \end_inset
2552
2553  button.
2554  Several variables can be used in the definition of converters:
2555 \end_layout
2556
2557 \begin_layout Labeling
2558 \labelwidthstring 00.00.0000
2559 \begin_inset Flex Code
2560 status collapsed
2561
2562 \begin_layout Plain Layout
2563 $$s
2564 \end_layout
2565
2566 \end_inset
2567
2568  The \SpecialChar LyX
2569  system directory
2570 \end_layout
2571
2572 \begin_layout Labeling
2573 \labelwidthstring 00.00.0000
2574 \begin_inset Flex Code
2575 status collapsed
2576
2577 \begin_layout Plain Layout
2578 $$i
2579 \end_layout
2580
2581 \end_inset
2582
2583  The input file
2584 \end_layout
2585
2586 \begin_layout Labeling
2587 \labelwidthstring 00.00.0000
2588 \begin_inset Flex Code
2589 status collapsed
2590
2591 \begin_layout Plain Layout
2592 $$o
2593 \end_layout
2594
2595 \end_inset
2596
2597  The output file
2598 \end_layout
2599
2600 \begin_layout Labeling
2601 \labelwidthstring 00.00.0000
2602 \begin_inset Flex Code
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 $$b
2607 \end_layout
2608
2609 \end_inset
2610
2611  The base filename of the input file (i.
2612 \begin_inset space \thinspace{}
2613 \end_inset
2614
2615 g., without the extension)
2616 \end_layout
2617
2618 \begin_layout Labeling
2619 \labelwidthstring 00.00.0000
2620 \begin_inset Flex Code
2621 status collapsed
2622
2623 \begin_layout Plain Layout
2624 $$p
2625 \end_layout
2626
2627 \end_inset
2628
2629  The path to the input file
2630 \end_layout
2631
2632 \begin_layout Labeling
2633 \labelwidthstring 00.00.0000
2634 \begin_inset Flex Code
2635 status collapsed
2636
2637 \begin_layout Plain Layout
2638 $$r
2639 \end_layout
2640
2641 \end_inset
2642
2643  The path to the original input file (this is different from $$p when a
2644  chain of converters is called)
2645 \end_layout
2646
2647 \begin_layout Labeling
2648 \labelwidthstring 00.00.0000
2649 \begin_inset Flex Code
2650 status collapsed
2651
2652 \begin_layout Plain Layout
2653 $$e
2654 \end_layout
2655
2656 \end_inset
2657
2658  The iconv name for the encoding of the document.
2659 \end_layout
2660
2661 \begin_layout Standard
2662 In the 
2663 \begin_inset Flex Noun
2664 status collapsed
2665
2666 \begin_layout Plain Layout
2667 Extra
2668 \begin_inset space ~
2669 \end_inset
2670
2671 Flag
2672 \end_layout
2673
2674 \end_inset
2675
2676  field you can enter the following flags, separated by commas:
2677 \end_layout
2678
2679 \begin_layout Labeling
2680 \labelwidthstring 00.00.0000
2681 \begin_inset Flex Code
2682 status collapsed
2683
2684 \begin_layout Plain Layout
2685 latex
2686 \change_inserted -712698321 1524656940
2687 =flavor
2688 \change_unchanged
2689
2690 \end_layout
2691
2692 \end_inset
2693
2694  This converter runs some form of \SpecialChar LaTeX
2695 .
2696  This will make \SpecialChar LyX
2697 's \SpecialChar LaTeX
2698  error logs available.
2699
2700 \change_inserted -712698321 1524657018
2701  The optional 
2702 \begin_inset Flex Code
2703 status open
2704
2705 \begin_layout Plain Layout
2706
2707 \change_inserted -712698321 1524657012
2708 flavor
2709 \change_unchanged
2710
2711 \end_layout
2712
2713 \end_inset
2714
2715  value specifies the form of \SpecialChar LaTeX
2716  that is run (
2717 \begin_inset Flex Code
2718 status open
2719
2720 \begin_layout Plain Layout
2721
2722 \change_inserted -712698321 1524657005
2723 latex, pdflatex, platex, xetex, luatex
2724 \change_unchanged
2725
2726 \end_layout
2727
2728 \end_inset
2729
2730 ).
2731  If no value is specified, 
2732 \begin_inset Flex Code
2733 status open
2734
2735 \begin_layout Plain Layout
2736
2737 \change_inserted -712698321 1524657018
2738 latex
2739 \change_unchanged
2740
2741 \end_layout
2742
2743 \end_inset
2744
2745  is used.
2746 \change_unchanged
2747
2748 \end_layout
2749
2750 \begin_layout Labeling
2751 \labelwidthstring 00.00.0000
2752 \begin_inset Flex Code
2753 status collapsed
2754
2755 \begin_layout Plain Layout
2756 needaux
2757 \change_inserted -712698321 1524656935
2758 =flavor
2759 \change_unchanged
2760
2761 \end_layout
2762
2763 \end_inset
2764
2765  Needs the \SpecialChar LaTeX
2766  
2767 \begin_inset Flex Noun
2768 status collapsed
2769
2770 \begin_layout Plain Layout
2771 .aux
2772 \end_layout
2773
2774 \end_inset
2775
2776  file for the conversion.
2777
2778 \change_inserted -712698321 1524657047
2779  The optional 
2780 \begin_inset Flex Code
2781 status open
2782
2783 \begin_layout Plain Layout
2784
2785 \change_inserted -712698321 1524657030
2786 flavor
2787 \change_unchanged
2788
2789 \end_layout
2790
2791 \end_inset
2792
2793  value specifies the form of \SpecialChar LaTeX
2794  that is run in order to generate the 
2795 \begin_inset Flex Noun
2796 status collapsed
2797
2798 \begin_layout Plain Layout
2799
2800 \change_inserted -712698321 1524657047
2801 .aux
2802 \change_unchanged
2803
2804 \end_layout
2805
2806 \end_inset
2807
2808  file (
2809 \begin_inset Flex Code
2810 status open
2811
2812 \begin_layout Plain Layout
2813
2814 \change_inserted -712698321 1524657030
2815 latex, pdflatex, platex, xetex, luatex
2816 \change_unchanged
2817
2818 \end_layout
2819
2820 \end_inset
2821
2822 ).
2823  If no value is specified, 
2824 \begin_inset Flex Code
2825 status open
2826
2827 \begin_layout Plain Layout
2828
2829 \change_inserted -712698321 1524657030
2830 latex
2831 \change_unchanged
2832
2833 \end_layout
2834
2835 \end_inset
2836
2837  is used.
2838 \change_unchanged
2839
2840 \end_layout
2841
2842 \begin_layout Labeling
2843 \labelwidthstring 00.00.0000
2844 \begin_inset Flex Code
2845 status collapsed
2846
2847 \begin_layout Plain Layout
2848 nice
2849 \end_layout
2850
2851 \end_inset
2852
2853  Needs a 
2854 \begin_inset Quotes eld
2855 \end_inset
2856
2857 nice
2858 \begin_inset Quotes erd
2859 \end_inset
2860
2861  file from the backend, which in practice means a \SpecialChar LaTeX
2862  file like the one we
2863  would export, without 
2864 \begin_inset Flex Code
2865 status collapsed
2866
2867 \begin_layout Plain Layout
2868 input@path
2869 \end_layout
2870
2871 \end_inset
2872
2873 .
2874 \end_layout
2875
2876 \begin_layout Labeling
2877 \labelwidthstring 00.00.0000
2878 \begin_inset Flex Code
2879 status collapsed
2880
2881 \begin_layout Plain Layout
2882 xml
2883 \end_layout
2884
2885 \end_inset
2886
2887  Output is XML.
2888 \end_layout
2889
2890 \begin_layout Standard
2891 The following three flags are not really flags at all because they take
2892  an argument in the 
2893 \begin_inset Flex Noun
2894 status collapsed
2895
2896 \begin_layout Plain Layout
2897 key
2898 \begin_inset space ~
2899 \end_inset
2900
2901 =
2902 \begin_inset space ~
2903 \end_inset
2904
2905 value
2906 \end_layout
2907
2908 \end_inset
2909
2910  format:
2911 \end_layout
2912
2913 \begin_layout Labeling
2914 \labelwidthstring 00.00.0000
2915
2916 \change_inserted -712698321 1523206314
2917 \begin_inset Flex Code
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921
2922 \change_inserted -712698321 1523206193
2923 hyperref-driver
2924 \change_unchanged
2925
2926 \end_layout
2927
2928 \end_inset
2929
2930  The name of the driver that needs to be loaded with the 
2931 \family sans
2932 hyperref
2933 \family default
2934  package for this converter.
2935  The loading of the correct driver is necessary to get some PDF-specific
2936  features.
2937  See the 
2938 \family sans
2939 hyperref
2940 \family default
2941  manual for details.
2942 \end_layout
2943
2944 \begin_layout Labeling
2945 \labelwidthstring 00.00.0000
2946 \begin_inset Flex Code
2947 status collapsed
2948
2949 \begin_layout Plain Layout
2950 parselog
2951 \end_layout
2952
2953 \end_inset
2954
2955  If set, the converter's standard error will be redirected to a file 
2956 \begin_inset Flex Code
2957 status collapsed
2958
2959 \begin_layout Plain Layout
2960 infile.out
2961 \end_layout
2962
2963 \end_inset
2964
2965 , and the script given as argument will be run as: 
2966 \begin_inset Flex Code
2967 status collapsed
2968
2969 \begin_layout Plain Layout
2970 script < infile.out > infile.log
2971 \end_layout
2972
2973 \end_inset
2974
2975 .
2976  The argument may contain 
2977 \begin_inset Flex Code
2978 status collapsed
2979
2980 \begin_layout Plain Layout
2981 $$s
2982 \end_layout
2983
2984 \end_inset
2985
2986 .
2987 \end_layout
2988
2989 \begin_layout Labeling
2990 \labelwidthstring 00.00.0000
2991 \begin_inset Flex Code
2992 status collapsed
2993
2994 \begin_layout Plain Layout
2995 resultdir
2996 \end_layout
2997
2998 \end_inset
2999
3000  The name of the directory in which the converter will dump the generated
3001  files.
3002  \SpecialChar LyX
3003  will not create this directory, and it does not copy anything into it,
3004  though it will copy this directory to the destination.
3005  The argument may contain 
3006 \begin_inset Flex Code
3007 status collapsed
3008
3009 \begin_layout Plain Layout
3010 $$b
3011 \end_layout
3012
3013 \end_inset
3014
3015 , which will be replaced by the base name of the input and output files,
3016  respectively, when the directory is copied.
3017 \begin_inset Newline newline
3018 \end_inset
3019
3020 Note that resultdir and usetempdir make no sense together.
3021  The latter will be ignored if the former is given.
3022 \end_layout
3023
3024 \begin_layout Labeling
3025 \labelwidthstring 00.00.0000
3026 \begin_inset Flex Code
3027 status collapsed
3028
3029 \begin_layout Plain Layout
3030 resultfile
3031 \end_layout
3032
3033 \end_inset
3034
3035  Determines the output file name and may, contain 
3036 \begin_inset Flex Code
3037 status collapsed
3038
3039 \begin_layout Plain Layout
3040 $$b
3041 \end_layout
3042
3043 \end_inset
3044
3045 .
3046  Sensible only with resultdir and optional even then; if not given, it defaults
3047  to `index'.
3048 \end_layout
3049
3050 \begin_layout Standard
3051
3052 \change_inserted -712698321 1523206384
3053 A suitable hyperref-driver is set for some converters that are installed
3054  with \SpecialChar LyX
3055 .
3056  
3057 \change_deleted -712698321 1523206388
3058 None of these
3059 \change_inserted -712698321 1523206389
3060 The
3061 \change_unchanged
3062  last three
3063 \change_inserted -712698321 1523206400
3064  flags, however,
3065 \change_unchanged
3066  are presently 
3067 \change_inserted -712698321 1523206407
3068 not 
3069 \change_unchanged
3070 used in any of the 
3071 \change_inserted -712698321 1523206437
3072 pre-installed 
3073 \change_unchanged
3074 converters
3075 \change_deleted -712698321 1523206442
3076  that are installed with \SpecialChar LyX
3077
3078 \change_unchanged
3079 .
3080  
3081 \end_layout
3082
3083 \begin_layout Standard
3084 You do not have to define converters for all formats between which you want
3085  to convert.
3086  For example, you will note that there is no `\SpecialChar LyX
3087  to PostScript' converter,
3088  but \SpecialChar LyX
3089  will export PostScript.
3090  It does so by first creating a \SpecialChar LaTeX
3091  file (no converter needs to be defined
3092  for this) which is then converted to DVI using the `\SpecialChar LaTeX
3093  to DVI' converter,
3094  and finally converting the resulting DVI file to PostScript.
3095  \SpecialChar LyX
3096  finds such `chains' of converters automatically, and it will always choose
3097  the shortest possible chain.
3098  You can, though, still define multiple conversion methods between file
3099  formats.
3100  For example, the standard \SpecialChar LyX
3101  configuration provides five ways to convert
3102  \SpecialChar LaTeX
3103  to PDF:
3104 \end_layout
3105
3106 \begin_layout Enumerate
3107 Directly, using 
3108 \begin_inset Flex Noun
3109 status collapsed
3110
3111 \begin_layout Plain Layout
3112 pdflatex
3113 \end_layout
3114
3115 \end_inset
3116
3117
3118 \end_layout
3119
3120 \begin_layout Enumerate
3121 via (DVI and) PostScript, using 
3122 \begin_inset Flex Noun
3123 status collapsed
3124
3125 \begin_layout Plain Layout
3126 ps2pdf
3127 \end_layout
3128
3129 \end_inset
3130
3131
3132 \end_layout
3133
3134 \begin_layout Enumerate
3135 via DVI, using 
3136 \begin_inset Flex Noun
3137 status collapsed
3138
3139 \begin_layout Plain Layout
3140 dvipdfm
3141 \end_layout
3142
3143 \end_inset
3144
3145
3146 \end_layout
3147
3148 \begin_layout Enumerate
3149 directly using 
3150 \begin_inset Flex Noun
3151 status collapsed
3152
3153 \begin_layout Plain Layout
3154 Xe\SpecialChar TeX
3155
3156 \end_layout
3157
3158 \end_inset
3159
3160
3161 \end_layout
3162
3163 \begin_layout Enumerate
3164 directly using 
3165 \begin_inset Flex Noun
3166 status collapsed
3167
3168 \begin_layout Plain Layout
3169 Lua\SpecialChar TeX
3170
3171 \end_layout
3172
3173 \end_inset
3174
3175
3176 \end_layout
3177
3178 \begin_layout Standard
3179 To define such alternate chains, you must define multiple target `file formats',
3180  as described in 
3181 \begin_inset CommandInset ref
3182 LatexCommand ref
3183 reference "sec:Formats"
3184
3185 \end_inset
3186
3187 .
3188  For example, in the standard configuration, the formats named 
3189 \begin_inset Flex Noun
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 pdf
3194 \end_layout
3195
3196 \end_inset
3197
3198  (for 
3199 \begin_inset Flex Noun
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 ps2pdf
3204 \end_layout
3205
3206 \end_inset
3207
3208 ), 
3209 \begin_inset Flex Noun
3210 status collapsed
3211
3212 \begin_layout Plain Layout
3213 pdf2
3214 \end_layout
3215
3216 \end_inset
3217
3218  (for 
3219 \begin_inset Flex Noun
3220 status collapsed
3221
3222 \begin_layout Plain Layout
3223 pdflatex
3224 \end_layout
3225
3226 \end_inset
3227
3228 ), 
3229 \begin_inset Flex Noun
3230 status collapsed
3231
3232 \begin_layout Plain Layout
3233 pdf3
3234 \end_layout
3235
3236 \end_inset
3237
3238  (for 
3239 \begin_inset Flex Noun
3240 status collapsed
3241
3242 \begin_layout Plain Layout
3243 dvipdfm
3244 \end_layout
3245
3246 \end_inset
3247
3248 ), 
3249 \begin_inset Flex Noun
3250 status collapsed
3251
3252 \begin_layout Plain Layout
3253 pdf4
3254 \end_layout
3255
3256 \end_inset
3257
3258  (for 
3259 \begin_inset Flex Noun
3260 status collapsed
3261
3262 \begin_layout Plain Layout
3263 Xe\SpecialChar TeX
3264
3265 \end_layout
3266
3267 \end_inset
3268
3269 ), and 
3270 \begin_inset Flex Noun
3271 status collapsed
3272
3273 \begin_layout Plain Layout
3274 pdf5
3275 \end_layout
3276
3277 \end_inset
3278
3279  (for 
3280 \begin_inset Flex Noun
3281 status collapsed
3282
3283 \begin_layout Plain Layout
3284 Lua\SpecialChar TeX
3285
3286 \end_layout
3287
3288 \end_inset
3289
3290 ) are defined, all of which share the extension 
3291 \begin_inset Flex Noun
3292 status collapsed
3293
3294 \begin_layout Plain Layout
3295 .pdf
3296 \end_layout
3297
3298 \end_inset
3299
3300 , and which correspond to the conversion methods just mentioned.
3301 \end_layout
3302
3303 \begin_layout Chapter
3304 Internationalizing \SpecialChar LyX
3305
3306 \begin_inset CommandInset label
3307 LatexCommand label
3308 name "cha:Internationalizing-LyX"
3309
3310 \end_inset
3311
3312
3313 \end_layout
3314
3315 \begin_layout Standard
3316 \SpecialChar LyX
3317  supports using a translated interface.
3318  Last time we checked, \SpecialChar LyX
3319  provided text in thirty languages.
3320  The language of choice is called your 
3321 \emph on
3322 locale
3323 \emph default
3324 .
3325  (For further reading on locale settings, see also the documentation for
3326  locale that comes with your operating system.
3327  For Linux, the manual page for 
3328 \begin_inset Flex Code
3329 status collapsed
3330
3331 \begin_layout Plain Layout
3332 locale(5)
3333 \end_layout
3334
3335 \end_inset
3336
3337  could be a good place to start).
3338 \end_layout
3339
3340 \begin_layout Standard
3341 Notice that these translations will work, but do contain a few flaws.
3342  In particular, all dialogs have been designed with the English text in
3343  mind, which means that some of the translated text will be too large to
3344  fit within the space allocated.
3345  This is only a display problem and will not cause any harm.
3346  Also, you will find that some of the translations do not define shortcut
3347  keys for everything.
3348  Sometimes, there are simply not enough free letters to do it.
3349  Other times, the translator just hasn't got around to doing it yet.
3350  Our localization team, which you may wish to join,
3351 \begin_inset Foot
3352 status collapsed
3353
3354 \begin_layout Plain Layout
3355 If you are a fluent speaker of a language other than English, joining these
3356  teams is a great way to give back to the \SpecialChar LyX
3357  community!
3358 \end_layout
3359
3360 \end_inset
3361
3362  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3363 .
3364 \end_layout
3365
3366 \begin_layout Section
3367 Translating \SpecialChar LyX
3368
3369 \end_layout
3370
3371 \begin_layout Subsection
3372 Translating the graphical user interface (text messages).
3373 \end_layout
3374
3375 \begin_layout Standard
3376 \SpecialChar LyX
3377  uses the GNU 
3378 \begin_inset Flex Code
3379 status collapsed
3380
3381 \begin_layout Plain Layout
3382 gettext
3383 \end_layout
3384
3385 \end_inset
3386
3387  library to handle the internationalization of the interface.
3388  To have \SpecialChar LyX
3389  speak your favorite language in all menus and dialogs, you need
3390  a 
3391 \begin_inset Flex Code
3392 status collapsed
3393
3394 \begin_layout Plain Layout
3395 po
3396 \end_layout
3397
3398 \end_inset
3399
3400 -file for that language.
3401  When this is available, you'll have to generate a 
3402 \begin_inset Flex Code
3403 status collapsed
3404
3405 \begin_layout Plain Layout
3406 mo
3407 \end_layout
3408
3409 \end_inset
3410
3411 -file from it and install the 
3412 \begin_inset Flex Code
3413 status collapsed
3414
3415 \begin_layout Plain Layout
3416 mo
3417 \end_layout
3418
3419 \end_inset
3420
3421 -file.
3422  The process of doing all of this is explained in the documentation for
3423  GNU 
3424 \begin_inset Flex Code
3425 status collapsed
3426
3427 \begin_layout Plain Layout
3428 gettext
3429 \end_layout
3430
3431 \end_inset
3432
3433 .
3434  It is possible to do this just for yourself, but if you're going to do
3435  it, you might as well share the results of your labors with the rest of
3436  the \SpecialChar LyX
3437  community.
3438  Send a message to the \SpecialChar LyX
3439  developers' list for more information about how
3440  to proceed.
3441 \end_layout
3442
3443 \begin_layout Standard
3444 In short, this is what you should do (xx denotes the language code):
3445 \end_layout
3446
3447 \begin_layout Itemize
3448 Check out the \SpecialChar LyX
3449  source code.
3450  (See the 
3451 \begin_inset CommandInset href
3452 LatexCommand href
3453 name "information on the web"
3454 target "https://www.lyx.org/HowToUseGIT"
3455 literal "false"
3456
3457 \end_inset
3458
3459 .)
3460 \end_layout
3461
3462 \begin_layout Itemize
3463 Copy the file 
3464 \begin_inset Flex Code
3465 status collapsed
3466
3467 \begin_layout Plain Layout
3468 lyx.pot
3469 \end_layout
3470
3471 \end_inset
3472
3473  to the folder of the 
3474 \begin_inset Flex Code
3475 status collapsed
3476
3477 \begin_layout Plain Layout
3478 **.po
3479 \end_layout
3480
3481 \end_inset
3482
3483  files.
3484  Then rename it to 
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489 xx.po
3490 \end_layout
3491
3492 \end_inset
3493
3494 .
3495  (If 
3496 \begin_inset Flex Code
3497 status collapsed
3498
3499 \begin_layout Plain Layout
3500 lyx.pot
3501 \end_layout
3502
3503 \end_inset
3504
3505  doesn't exist anywhere, it can be remade with the console command 
3506 \begin_inset Flex Code
3507 status collapsed
3508
3509 \begin_layout Plain Layout
3510 make lyx.pot
3511 \end_layout
3512
3513 \end_inset
3514
3515  in that directory, or you can use an existing po-file for some other language
3516  as a template).
3517 \end_layout
3518
3519 \begin_layout Itemize
3520 Edit 
3521 \begin_inset Flex Code
3522 status collapsed
3523
3524 \begin_layout Plain Layout
3525 xx.po
3526 \end_layout
3527
3528 \end_inset
3529
3530 .
3531 \begin_inset Foot
3532 status collapsed
3533
3534 \begin_layout Plain Layout
3535 This is just a text file, so it can be edited in any text editor.
3536  But there are also specialized programs that support such editing, such
3537  as 
3538 \family typewriter
3539 Poedit
3540 \family default
3541  (for all platforms) or 
3542 \family typewriter
3543 KBabel
3544 \family default
3545  (for KDE).
3546  
3547 \family typewriter
3548 Emacs
3549 \family default
3550  contains a `mode' for editing 
3551 \begin_inset Flex Code
3552 status collapsed
3553
3554 \begin_layout Plain Layout
3555 po
3556 \end_layout
3557
3558 \end_inset
3559
3560  files, as well, see 
3561 \begin_inset Flex URL
3562 status open
3563
3564 \begin_layout Plain Layout
3565
3566 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3567 \end_layout
3568
3569 \end_inset
3570
3571 .
3572 \end_layout
3573
3574 \end_inset
3575
3576  For some menu- and widget-labels, there are also shortcut keys that should
3577  be translated.
3578  Those keys are marked after a `|', and should be translated according to
3579  the words and phrases of the language.
3580  You should also fill also out the information at the beginning of the new
3581  
3582 \begin_inset Flex Code
3583 status collapsed
3584
3585 \begin_layout Plain Layout
3586 po
3587 \end_layout
3588
3589 \end_inset
3590
3591 -file with your email-address, etc., so people know where to reach you with
3592  suggestions and entertaining flames.
3593 \end_layout
3594
3595 \begin_layout Standard
3596 If you are just doing this on your own, then:
3597 \end_layout
3598
3599 \begin_layout Itemize
3600 Generate 
3601 \begin_inset Flex Code
3602 status collapsed
3603
3604 \begin_layout Plain Layout
3605 xx.mo
3606 \end_layout
3607
3608 \end_inset
3609
3610 .
3611  This can be done with 
3612 \begin_inset Flex Code
3613 status collapsed
3614
3615 \begin_layout Plain Layout
3616 msgfmt -o xx.mo < xx.po
3617 \end_layout
3618
3619 \end_inset
3620
3621 .
3622 \end_layout
3623
3624 \begin_layout Itemize
3625 Copy the 
3626 \begin_inset Flex Code
3627 status collapsed
3628
3629 \begin_layout Plain Layout
3630 mo
3631 \end_layout
3632
3633 \end_inset
3634
3635 -file to your locale-tree, at the correct directory for application messages
3636  for the language
3637 \series bold
3638  
3639 \series default
3640 xx, and under the name 
3641 \begin_inset Flex Code
3642 status collapsed
3643
3644 \begin_layout Plain Layout
3645 lyx.mo
3646 \end_layout
3647
3648 \end_inset
3649
3650  (e.
3651 \begin_inset space \thinspace{}
3652 \end_inset
3653
3654 g.
3655 \begin_inset space \space{}
3656 \end_inset
3657
3658
3659 \begin_inset Flex Code
3660 status collapsed
3661
3662 \begin_layout Plain Layout
3663 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3664 \end_layout
3665
3666 \end_inset
3667
3668
3669 \series bold
3670 .
3671 \end_layout
3672
3673 \begin_layout Standard
3674 As said, however, it would be best if the new 
3675 \begin_inset Flex Code
3676 status collapsed
3677
3678 \begin_layout Plain Layout
3679 po
3680 \end_layout
3681
3682 \end_inset
3683
3684  file could be added to the \SpecialChar LyX
3685  distribution, so others can use it.
3686  Adding it involves making additional changes to \SpecialChar LyX
3687 .
3688  So send an email to the developers' mailing list if you're interested in
3689  doing that.
3690 \end_layout
3691
3692 \begin_layout Subsubsection
3693 Ambiguous messages
3694 \end_layout
3695
3696 \begin_layout Standard
3697 Sometimes it turns out that one English message needs to be translated into
3698  different messages in the target language.
3699  One example is the message 
3700 \begin_inset Flex Code
3701 status collapsed
3702
3703 \begin_layout Plain Layout
3704 To
3705 \end_layout
3706
3707 \end_inset
3708
3709  which has the German translation 
3710 \lang german
3711 Nach
3712 \lang english
3713  or 
3714 \lang german
3715 Bis
3716 \lang english
3717 , depending upon exactly what the English 
3718 \begin_inset Quotes eld
3719 \end_inset
3720
3721 to
3722 \begin_inset Quotes erd
3723 \end_inset
3724
3725  means.
3726  GNU 
3727 \begin_inset Flex Code
3728 status collapsed
3729
3730 \begin_layout Plain Layout
3731 gettext
3732 \end_layout
3733
3734 \end_inset
3735
3736  does not handle such ambiguous translations.
3737  Therefore you have to add some context information to the message: Instead
3738  of 
3739 \begin_inset Flex Code
3740 status collapsed
3741
3742 \begin_layout Plain Layout
3743 To
3744 \end_layout
3745
3746 \end_inset
3747
3748  it becomes 
3749 \begin_inset Flex Code
3750 status collapsed
3751
3752 \begin_layout Plain Layout
3753 To[[as in 'From format x to format y']]
3754 \end_layout
3755
3756 \end_inset
3757
3758  and 
3759 \begin_inset Flex Code
3760 status collapsed
3761
3762 \begin_layout Plain Layout
3763 To[[as in 'From page x to page y']].
3764 \end_layout
3765
3766 \end_inset
3767
3768  Now the two occurrences of 
3769 \begin_inset Flex Code
3770 status collapsed
3771
3772 \begin_layout Plain Layout
3773 To
3774 \end_layout
3775
3776 \end_inset
3777
3778  are different for 
3779 \begin_inset Flex Code
3780 status collapsed
3781
3782 \begin_layout Plain Layout
3783 gettext
3784 \end_layout
3785
3786 \end_inset
3787
3788  and can be translated correctly to 
3789 \lang german
3790 Nach
3791 \lang english
3792  and 
3793 \lang german
3794 Bis
3795 \lang english
3796 , respectively.
3797 \end_layout
3798
3799 \begin_layout Standard
3800 Of course the context information needs to be stripped off the original
3801  message when no translation is used.
3802  Therefore you have to put it in double square brackets at the end of the
3803  message (see the example above).
3804  The translation mechanism of \SpecialChar LyX
3805  ensures that everything in double square
3806  brackets at the end of messages is removed before displaying the message.
3807 \end_layout
3808
3809 \begin_layout Subsection
3810 Translating the documentation.
3811 \end_layout
3812
3813 \begin_layout Standard
3814 The online documentation (in the 
3815 \begin_inset Flex Noun
3816 status collapsed
3817
3818 \begin_layout Plain Layout
3819 Help
3820 \end_layout
3821
3822 \end_inset
3823
3824 -menu) can (and should!) be translated.
3825  If there are translated versions of the documentation available
3826 \begin_inset Foot
3827 status collapsed
3828
3829 \begin_layout Plain Layout
3830 As of March 2008, at least some of the documents have been translated into
3831  fourteen languages, with the Tutorial available in a few more.
3832 \end_layout
3833
3834 \end_inset
3835
3836  and the locale is set accordingly, these will be used automagically by
3837  \SpecialChar LyX
3838 .
3839  \SpecialChar LyX
3840  looks for translated versions as 
3841 \begin_inset Flex Code
3842 status collapsed
3843
3844 \begin_layout Plain Layout
3845 LyXDir/doc/xx/DocName.lyx
3846 \end_layout
3847
3848 \end_inset
3849
3850 , where 
3851 \begin_inset Flex Code
3852 status collapsed
3853
3854 \begin_layout Plain Layout
3855 xx
3856 \end_layout
3857
3858 \end_inset
3859
3860  is the code for the language currently in use.
3861  If there are no translated documents, the default English versions will
3862  be displayed.
3863  Note that the translated versions must have the same filenames (
3864 \begin_inset Flex Code
3865 status collapsed
3866
3867 \begin_layout Plain Layout
3868 DocName
3869 \end_layout
3870
3871 \end_inset
3872
3873  above) as the original.
3874  If you feel up to translating the documentation (an excellent way to proof-read
3875  the original documentation by the way!), there are a few things you should
3876  do right away:
3877 \end_layout
3878
3879 \begin_layout Itemize
3880 Check out the documentation translation web page at 
3881 \begin_inset CommandInset href
3882 LatexCommand href
3883 name "https://www.lyx.org/Translation"
3884 target "https://www.lyx.org/Translation"
3885 literal "false"
3886
3887 \end_inset
3888
3889 .
3890  That way, you can find out which (if any) documents have already been translate
3891 d into your language.
3892  You can also find out who (if anyone) is organizing the effort to translate
3893  the documentation into your language.
3894  If no one is organizing the effort, please let us know that you're interested.
3895 \end_layout
3896
3897 \begin_layout Standard
3898 Once you get to actually translating, here's a few hints for you that may
3899  save you trouble:
3900 \end_layout
3901
3902 \begin_layout Itemize
3903 Join the documentation team! There is information on how to do that in 
3904 \begin_inset Flex Code
3905 status collapsed
3906
3907 \begin_layout Plain Layout
3908 Intro.lyx
3909 \end_layout
3910
3911 \end_inset
3912
3913  (
3914 \begin_inset Flex Noun
3915 status collapsed
3916
3917 \begin_layout Plain Layout
3918 Help\SpecialChar menuseparator
3919 Introduction
3920 \end_layout
3921
3922 \end_inset
3923
3924 ), which by the way is the first document you should translate.
3925 \end_layout
3926
3927 \begin_layout Itemize
3928 Learn the typographic conventions for the language you are translating to.
3929  Typography is an ancient art and over the centuries, a great variety of
3930  conventions have developed throughout different parts of the world.
3931  Also study the professional terminology amongst typographers in your country.
3932  Inventing your own terminology will only confuse the users.
3933  
3934 \emph on
3935 (Warning! Typography is addictive!)
3936 \end_layout
3937
3938 \begin_layout Itemize
3939 Make a copy of the document.
3940  This will be your working copy.
3941  You can use this as your personal translated help-file by placing it in
3942  your 
3943 \begin_inset Flex Code
3944 status collapsed
3945
3946 \begin_layout Plain Layout
3947 UserDir/doc/xx/
3948 \end_layout
3949
3950 \end_inset
3951
3952  directory.
3953 \begin_inset Note Greyedout
3954 status open
3955
3956 \begin_layout Plain Layout
3957
3958 \series bold
3959 Note:
3960 \series default
3961  For a complex document with external material (images, etc.), if you make
3962  a copy e.
3963 \begin_inset space \thinspace{}
3964 \end_inset
3965
3966 g.
3967 \begin_inset space \space{}
3968 \end_inset
3969
3970 in a temp dir, beware that the links to external material may be broken
3971  when the document is moved to a different place.
3972  The best way is to retrieve the \SpecialChar LyX
3973  tree from git (see 
3974 \begin_inset Flex URL
3975 status collapsed
3976
3977 \begin_layout Plain Layout
3978
3979 https://www.lyx.org/HowToUseGIT
3980 \end_layout
3981
3982 \end_inset
3983
3984 ) and to edit the doc file in place.
3985 \end_layout
3986
3987 \end_inset
3988
3989
3990 \end_layout
3991
3992 \begin_layout Itemize
3993 Sometimes the original document (from the \SpecialChar LyX
3994  team) will be updated.
3995  Use the source viewer at 
3996 \begin_inset CommandInset href
3997 LatexCommand href
3998 name "https://www.lyx.org/trac/timeline"
3999 target "https://www.lyx.org/trac/timeline"
4000 literal "false"
4001
4002 \end_inset
4003
4004  to see what has been changed.
4005  That way you can easily see which parts of the translated document need
4006  to be updated.
4007 \end_layout
4008
4009 \begin_layout Standard
4010 If you ever find an error in the original document, fix it and notify the
4011  rest of the documentation team of the changes! (You didn't forget to join
4012  the documentation team, did you?)
4013 \end_layout
4014
4015 \begin_layout Standard
4016 \begin_inset Branch OutDated
4017 inverted 0
4018 status collapsed
4019
4020 \begin_layout Section
4021 International Keyboard Support
4022 \end_layout
4023
4024 \begin_layout Standard
4025
4026 \emph on
4027 [Editor's Note: The following section is by
4028 \emph default
4029  
4030 \shape smallcaps
4031 \emph on
4032 Ivan Schreter
4033 \shape default
4034 .
4035  It needs to be fixed to conform to the new Documentation Style sheet and
4036  to make use of the new v1.0 features.
4037  The whole thing also needs to be merged with the section following it.-jw
4038  It may also be badly out of date.-rh (2008)]
4039 \end_layout
4040
4041 \begin_layout Subsection
4042 Defining Own Keymaps: Keymap File Format
4043 \end_layout
4044
4045 \begin_layout Standard
4046 Let's look at a keyboard definition file a little closer.
4047  It is a plain text file defining
4048 \end_layout
4049
4050 \begin_layout Itemize
4051 key-to-key or key-to-string translations
4052 \end_layout
4053
4054 \begin_layout Itemize
4055 dead keys
4056 \end_layout
4057
4058 \begin_layout Itemize
4059 dead keys exceptions
4060 \end_layout
4061
4062 \begin_layout Standard
4063 To define key-to-key or key-to-string translation, use this command:
4064 \end_layout
4065
4066 \begin_layout Quotation
4067 \begin_inset Flex Code
4068 status collapsed
4069
4070 \begin_layout Plain Layout
4071
4072 \backslash
4073 kmap
4074 \end_layout
4075
4076 \end_inset
4077
4078  
4079 \begin_inset Flex Code
4080 status collapsed
4081
4082 \begin_layout Plain Layout
4083 key
4084 \end_layout
4085
4086 \end_inset
4087
4088  outstring 
4089 \end_layout
4090
4091 \begin_layout Standard
4092 where 
4093 \begin_inset Flex Code
4094 status collapsed
4095
4096 \begin_layout Plain Layout
4097 key
4098 \end_layout
4099
4100 \end_inset
4101
4102  is the key to be translated and 
4103 \begin_inset Flex Code
4104 status collapsed
4105
4106 \begin_layout Plain Layout
4107 outstring
4108 \end_layout
4109
4110 \end_inset
4111
4112  is the string to be inserted into the document.
4113  To define dead keys, use:
4114 \end_layout
4115
4116 \begin_layout Quotation
4117 \begin_inset Flex Code
4118 status collapsed
4119
4120 \begin_layout Plain Layout
4121
4122 \backslash
4123 kmod
4124 \end_layout
4125
4126 \end_inset
4127
4128  
4129 \begin_inset Flex Code
4130 status collapsed
4131
4132 \begin_layout Plain Layout
4133 key
4134 \end_layout
4135
4136 \end_inset
4137
4138  deadkey
4139 \end_layout
4140
4141 \begin_layout Standard
4142 where 
4143 \begin_inset Flex Code
4144 status collapsed
4145
4146 \begin_layout Plain Layout
4147 key
4148 \end_layout
4149
4150 \end_inset
4151
4152  is a keyboard key and 
4153 \begin_inset Flex Code
4154 status collapsed
4155
4156 \begin_layout Plain Layout
4157 deadkey
4158 \end_layout
4159
4160 \end_inset
4161
4162  is dead key name.
4163  The following dead keys are supported (shortcut name is in parentheses):
4164 \end_layout
4165
4166 \begin_layout Quotation
4167
4168 \emph on
4169 Name
4170 \begin_inset space \hfill{}
4171 \end_inset
4172
4173 Example
4174 \end_layout
4175
4176 \begin_layout Quotation
4177 acute (acu)
4178 \begin_inset space \hfill{}
4179 \end_inset
4180
4181 áéíóú
4182 \end_layout
4183
4184 \begin_layout Quotation
4185 grave (gra)
4186 \begin_inset space \hfill{}
4187 \end_inset
4188
4189 àèìòù
4190 \end_layout
4191
4192 \begin_layout Quotation
4193 macron (mac)
4194 \begin_inset space \hfill{}
4195 \end_inset
4196
4197  ō
4198 \end_layout
4199
4200 \begin_layout Quotation
4201 tilde (til)
4202 \begin_inset space \hfill{}
4203 \end_inset
4204
4205 ñÑ
4206 \end_layout
4207
4208 \begin_layout Quotation
4209 underbar (underb)
4210 \begin_inset space \hfill{}
4211 \end_inset
4212
4213
4214 \begin_inset ERT
4215 status open
4216
4217 \begin_layout Plain Layout
4218
4219
4220 \backslash
4221 b o
4222 \end_layout
4223
4224 \end_inset
4225
4226
4227 \end_layout
4228
4229 \begin_layout Quotation
4230 cedilla (ced)
4231 \begin_inset space \hfill{}
4232 \end_inset
4233
4234 çÇ
4235 \end_layout
4236
4237 \begin_layout Quotation
4238 underdot (underd)
4239 \begin_inset space \hfill{}
4240 \end_inset
4241
4242
4243 \begin_inset ERT
4244 status open
4245
4246 \begin_layout Plain Layout
4247
4248
4249 \backslash
4250 d o
4251 \end_layout
4252
4253 \end_inset
4254
4255
4256 \end_layout
4257
4258 \begin_layout Quotation
4259 circumflex (circu)
4260 \begin_inset space \hfill{}
4261 \end_inset
4262
4263 âêîôû
4264 \end_layout
4265
4266 \begin_layout Quotation
4267 circle (circl)
4268 \begin_inset space \hfill{}
4269 \end_inset
4270
4271 ÅůŮ
4272 \end_layout
4273
4274 \begin_layout Quotation
4275 tie (tie)
4276 \begin_inset space \hfill{}
4277 \end_inset
4278
4279
4280 \begin_inset ERT
4281 status open
4282
4283 \begin_layout Plain Layout
4284
4285
4286 \backslash
4287 t o
4288 \end_layout
4289
4290 \end_inset
4291
4292
4293 \end_layout
4294
4295 \begin_layout Quotation
4296 breve (bre)
4297 \begin_inset space \hfill{}
4298 \end_inset
4299
4300 ă
4301 \begin_inset ERT
4302 status open
4303
4304 \begin_layout Plain Layout
4305
4306
4307 \backslash
4308 u o
4309 \end_layout
4310
4311 \end_inset
4312
4313
4314 \end_layout
4315
4316 \begin_layout Quotation
4317 caron (car)
4318 \begin_inset space \hfill{}
4319 \end_inset
4320
4321 čšž
4322 \end_layout
4323
4324 \begin_layout Quotation
4325 hungarian umlaut (hug)
4326 \begin_inset space \hfill{}
4327 \end_inset
4328
4329 őű
4330 \end_layout
4331
4332 \begin_layout Quotation
4333 umlaut (uml)
4334 \begin_inset space \hfill{}
4335 \end_inset
4336
4337 äöü
4338 \end_layout
4339
4340 \begin_layout Quotation
4341 dot (dot)
4342 \begin_inset space \hfill{}
4343 \end_inset
4344
4345 ż
4346 \begin_inset ERT
4347 status open
4348
4349 \begin_layout Plain Layout
4350
4351
4352 \backslash
4353 .s
4354 \end_layout
4355
4356 \end_inset
4357
4358
4359 \end_layout
4360
4361 \begin_layout Standard
4362 Since in many international keyboards there are exceptions to what some
4363  dead keys should do, you can define them using
4364 \end_layout
4365
4366 \begin_layout Quotation
4367 \begin_inset Flex Code
4368 status collapsed
4369
4370 \begin_layout Plain Layout
4371
4372 \backslash
4373 kxmod
4374 \end_layout
4375
4376 \end_inset
4377
4378  deadkey key outstring
4379 \end_layout
4380
4381 \begin_layout Standard
4382 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4383 , so you put in
4384 \end_layout
4385
4386 \begin_layout Quotation
4387 \begin_inset Flex Code
4388 status collapsed
4389
4390 \begin_layout Plain Layout
4391
4392 \backslash
4393 kxmod
4394 \end_layout
4395
4396 \end_inset
4397
4398  caron o "
4399 \backslash
4400 ^o"
4401 \end_layout
4402
4403 \begin_layout Standard
4404 to make it work correctly.
4405  Also, you have to define as exceptions dead keys over i and j, to remove
4406  the dot from them before inserting an accent mark.
4407  I will change this when the time comes, but so far I haven't had time.
4408 \end_layout
4409
4410 \begin_layout Standard
4411 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4412  double backslash.
4413  Also, quotes and 
4414 \begin_inset Flex Code
4415 status collapsed
4416
4417 \begin_layout Plain Layout
4418 #
4419 \end_layout
4420
4421 \end_inset
4422
4423  have different meaning.
4424  
4425 \begin_inset Flex Code
4426 status collapsed
4427
4428 \begin_layout Plain Layout
4429 #
4430 \end_layout
4431
4432 \end_inset
4433
4434  marks comments, quotes start and end \SpecialChar LaTeX
4435 -style commands.
4436  To enter quote, you'll need to use 
4437 \begin_inset Flex Code
4438 status collapsed
4439
4440 \begin_layout Plain Layout
4441
4442 \backslash
4443 "
4444 \end_layout
4445
4446 \end_inset
4447
4448 , to enter 
4449 \begin_inset Flex Code
4450 status collapsed
4451
4452 \begin_layout Plain Layout
4453 #
4454 \end_layout
4455
4456 \end_inset
4457
4458 , use 
4459 \begin_inset Flex Code
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463
4464 \backslash
4465 #
4466 \end_layout
4467
4468 \end_inset
4469
4470 .
4471 \end_layout
4472
4473 \begin_layout Standard
4474 If you make a keyboard description file that works for your language, please
4475  mail it to me, so I can include it in the next keymap distribution.
4476 \end_layout
4477
4478 \begin_layout Standard
4479 More keywords will be supported in keymap configuration file in future,
4480  like
4481 \end_layout
4482
4483 \begin_layout Itemize
4484 \begin_inset Flex Code
4485 status collapsed
4486
4487 \begin_layout Plain Layout
4488
4489 \backslash
4490 kinclude filename
4491 \end_layout
4492
4493 \end_inset
4494
4495
4496 \emph on
4497
4498 \begin_inset space \hfill{}
4499 \end_inset
4500
4501
4502 \begin_inset Flex Code
4503 status collapsed
4504
4505 \begin_layout Plain Layout
4506 include
4507 \end_layout
4508
4509 \end_inset
4510
4511  another file
4512 \end_layout
4513
4514 \begin_layout Itemize
4515 \begin_inset Flex Code
4516 status collapsed
4517
4518 \begin_layout Plain Layout
4519
4520 \backslash
4521 kprog program
4522 \end_layout
4523
4524 \end_inset
4525
4526
4527 \emph on
4528
4529 \begin_inset space \hfill{}
4530 \end_inset
4531
4532
4533 \begin_inset Flex Code
4534 status collapsed
4535
4536 \begin_layout Plain Layout
4537 define
4538 \end_layout
4539
4540 \end_inset
4541
4542  an external keymap translation program 
4543 \end_layout
4544
4545 \begin_layout Standard
4546 Also, it should look into 
4547 \begin_inset Flex Code
4548 status collapsed
4549
4550 \begin_layout Plain Layout
4551 lyxrc
4552 \end_layout
4553
4554 \end_inset
4555
4556  file for defaults, too (for example, a 
4557 \begin_inset Flex Code
4558 status collapsed
4559
4560 \begin_layout Plain Layout
4561
4562 \backslash
4563 kinclude
4564 \end_layout
4565
4566 \end_inset
4567
4568  option to include default keyboard).
4569 \end_layout
4570
4571 \end_inset
4572
4573
4574 \end_layout
4575
4576 \begin_layout Section
4577 International Keymap Stuff
4578 \begin_inset CommandInset label
4579 LatexCommand label
4580 name "sec:International-Keymap-Stuff"
4581
4582 \end_inset
4583
4584
4585 \end_layout
4586
4587 \begin_layout Standard
4588 \begin_inset Note Note
4589 status open
4590
4591 \begin_layout Plain Layout
4592 In doing the revisions on this document in March 2008, I did not look over
4593  this stuff, as I do not understand it.
4594  It would be good if someone else could do so.
4595  (RH)
4596 \end_layout
4597
4598 \end_inset
4599
4600
4601 \end_layout
4602
4603 \begin_layout Standard
4604 The next two sections describe the 
4605 \begin_inset Flex Code
4606 status collapsed
4607
4608 \begin_layout Plain Layout
4609
4610 \shape up
4611 .kmap
4612 \end_layout
4613
4614 \end_inset
4615
4616  and 
4617 \begin_inset Flex Code
4618 status collapsed
4619
4620 \begin_layout Plain Layout
4621
4622 \shape up
4623 .cdef
4624 \end_layout
4625
4626 \end_inset
4627
4628  file syntax in detail.
4629  These sections should help you design your own key map if the ones provided
4630  do not meet your needs.
4631 \end_layout
4632
4633 \begin_layout Subsection
4634 The .kmap File
4635 \end_layout
4636
4637 \begin_layout Standard
4638
4639 \shape up
4640 .
4641 \begin_inset Flex Code
4642 status collapsed
4643
4644 \begin_layout Plain Layout
4645 kmap
4646 \end_layout
4647
4648 \end_inset
4649
4650  file maps keystrokes to characters or strings.
4651  As the name suggests, it sets a keyboard mapping.
4652  The 
4653 \begin_inset Flex Code
4654 status collapsed
4655
4656 \begin_layout Plain Layout
4657 .kmap
4658 \end_layout
4659
4660 \end_inset
4661
4662
4663 \shape default
4664  file keywords 
4665 \shape up
4666
4667 \begin_inset Flex Code
4668 status collapsed
4669
4670 \begin_layout Plain Layout
4671
4672 \shape up
4673 kmap
4674 \end_layout
4675
4676 \end_inset
4677
4678
4679 \shape default
4680 ,
4681 \shape up
4682  
4683 \shape default
4684
4685 \begin_inset Flex Code
4686 status collapsed
4687
4688 \begin_layout Plain Layout
4689
4690 \shape up
4691 kmod
4692 \end_layout
4693
4694 \end_inset
4695
4696 ,
4697 \shape up
4698  
4699 \shape default
4700
4701 \begin_inset Flex Code
4702 status collapsed
4703
4704 \begin_layout Plain Layout
4705
4706 \shape up
4707 kxmod
4708 \end_layout
4709
4710 \end_inset
4711
4712 , and 
4713 \begin_inset Flex Code
4714 status collapsed
4715
4716 \begin_layout Plain Layout
4717
4718 \shape up
4719 kcomb
4720 \end_layout
4721
4722 \end_inset
4723
4724  are described in this section.
4725 \end_layout
4726
4727 \begin_layout Labeling
4728 \labelwidthstring 00.00.0000
4729 \begin_inset Flex Code
4730 status collapsed
4731
4732 \begin_layout Plain Layout
4733
4734 \shape up
4735 kmap
4736 \end_layout
4737
4738 \end_inset
4739
4740  Map a character to a string
4741 \end_layout
4742
4743 \begin_layout LyX-Code
4744
4745 \backslash
4746 kmap 
4747 \family roman
4748 \emph on
4749 char
4750 \family default
4751 \emph default
4752  
4753 \family roman
4754 \emph on
4755 string
4756 \end_layout
4757
4758 \begin_layout Standard
4759 This will ma
4760 \family roman
4761 p
4762 \family default
4763  
4764 \family roman
4765 \emph on
4766 char
4767 \family default
4768 \emph default
4769  
4770 \family roman
4771 to
4772 \family default
4773  
4774 \family roman
4775 \emph on
4776 string
4777 \emph default
4778 .
4779  Note that in
4780 \family default
4781  
4782 \family roman
4783 \emph on
4784 string
4785 \emph default
4786 ,
4787 \family default
4788  
4789 \family roman
4790 \shape up
4791 the double-quote (")
4792 \family default
4793 \shape default
4794  
4795 \family roman
4796 and
4797 \family default
4798  
4799 \family roman
4800 \shape up
4801 the backslash (
4802 \backslash
4803 )
4804 \family default
4805 \shape default
4806  
4807 \family roman
4808 must be escaped with a preceding backslash (
4809 \shape up
4810
4811 \backslash
4812
4813 \shape default
4814 )
4815 \family default
4816 .
4817 \end_layout
4818
4819 \begin_layout Standard
4820 An example of a 
4821 \begin_inset Flex Noun
4822 status collapsed
4823
4824 \begin_layout Plain Layout
4825
4826 \shape up
4827 kmap
4828 \end_layout
4829
4830 \end_inset
4831
4832  statement to cause the symbol 
4833 \begin_inset Flex Noun
4834 status collapsed
4835
4836 \begin_layout Plain Layout
4837
4838 \shape up
4839 /
4840 \end_layout
4841
4842 \end_inset
4843
4844  to be output for the keystroke 
4845 \begin_inset Flex Noun
4846 status collapsed
4847
4848 \begin_layout Plain Layout
4849
4850 \shape up
4851 &
4852 \end_layout
4853
4854 \end_inset
4855
4856  is:
4857 \end_layout
4858
4859 \begin_layout LyX-Code
4860
4861 \backslash
4862 kmap & /
4863 \end_layout
4864
4865 \begin_layout Labeling
4866 \labelwidthstring 00.00.0000
4867 \begin_inset Flex Code
4868 status collapsed
4869
4870 \begin_layout Plain Layout
4871
4872 \shape up
4873 kmod
4874 \end_layout
4875
4876 \end_inset
4877
4878  Specify an accent character
4879 \end_layout
4880
4881 \begin_layout LyX-Code
4882
4883 \backslash
4884 kmod 
4885 \family roman
4886 \emph on
4887 char accent allowed
4888 \end_layout
4889
4890 \begin_layout Standard
4891 This will make the cha
4892 \family roman
4893 racter
4894 \family default
4895  
4896 \family roman
4897 \emph on
4898 char
4899 \family default
4900 \emph default
4901  
4902 \family roman
4903 \shape up
4904 \emph on
4905 be an accent
4906 \family default
4907 \shape default
4908 \emph default
4909  
4910 \family roman
4911 \shape up
4912 on the
4913 \family default
4914 \shape default
4915  
4916 \family roman
4917 \shape up
4918 \emph on
4919 allowed
4920 \family default
4921 \shape default
4922 \emph default
4923  
4924 \family roman
4925 \shape up
4926 cha
4927 \family default
4928 racter(s).
4929  This is the dead key
4930 \begin_inset Foot
4931 status collapsed
4932
4933 \begin_layout Plain Layout
4934 The term 
4935 \family roman
4936 \emph on
4937 dead key
4938 \family default
4939 \emph default
4940  refers to a key that does not produce a character by itself, but when followed
4941  with another key, produces the desired accent character.
4942  For example, a German characte
4943 \family roman
4944 r with an umlaut like
4945 \family default
4946  
4947 \family roman
4948 \emph on
4949 ä
4950 \family default
4951 \emph default
4952  
4953 \family roman
4954 can be produced in this manner.
4955 \end_layout
4956
4957 \end_inset
4958
4959  mechanism.
4960  
4961 \end_layout
4962
4963 \begin_layout Standard
4964 If you 
4965 \family roman
4966 hit
4967 \family default
4968  
4969 \family roman
4970 \emph on
4971 char
4972 \family default
4973 \emph default
4974  
4975 \family roman
4976 and then another key not in
4977 \family default
4978  
4979 \family roman
4980 \emph on
4981 allowed
4982 \emph default
4983 , you will get a
4984 \family default
4985  
4986 \family roman
4987 \emph on
4988 char
4989 \family default
4990 \emph default
4991  
4992 \family roman
4993 followed by the other, not allowed key, as output.
4994
4995 \family default
4996  Note that a 
4997 \begin_inset Flex Noun
4998 status collapsed
4999
5000 \begin_layout Plain Layout
5001
5002 \shape up
5003 Backspace
5004 \end_layout
5005
5006 \end_inset
5007
5008  cancels a dead key, so if 
5009 \family roman
5010 you hit
5011 \family default
5012  
5013 \family roman
5014 \emph on
5015 char
5016 \family default
5017 \emph default
5018  
5019 \begin_inset Flex Noun
5020 status collapsed
5021
5022 \begin_layout Plain Layout
5023
5024 \shape up
5025 \emph on
5026 Backspace
5027 \end_layout
5028
5029 \end_inset
5030
5031 , the cursor will not go one position backwards but will instead cancel
5032  the effect t
5033 \family roman
5034 hat
5035 \family default
5036  
5037 \family roman
5038 \shape up
5039 \emph on
5040 char
5041 \family default
5042 \shape default
5043 \emph default
5044  
5045 \family roman
5046 \shape up
5047 might have had on the next keystroke.
5048  
5049 \end_layout
5050
5051 \begin_layout Standard
5052 The following example specifies that the character ' is to be an acute accent,
5053  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
5054 \end_layout
5055
5056 \begin_layout LyX-Code
5057
5058 \backslash
5059 kmod ' acute aeiouAEIOU
5060 \end_layout
5061
5062 \begin_layout Labeling
5063 \labelwidthstring 00.00.0000
5064 \begin_inset Flex Code
5065 status collapsed
5066
5067 \begin_layout Plain Layout
5068 kxmod
5069 \end_layout
5070
5071 \end_inset
5072
5073  Specify an exception to the accent character
5074 \end_layout
5075
5076 \begin_layout LyX-Code
5077
5078 \backslash
5079 kxmod  
5080 \family roman
5081 \emph on
5082 accent char result
5083 \end_layout
5084
5085 \begin_layout Standard
5086 This defines an exce
5087 \family roman
5088 ption for
5089 \family default
5090  
5091 \family roman
5092 \emph on
5093 accent
5094 \family default
5095 \emph default
5096  
5097 \family roman
5098 on
5099 \family default
5100  
5101 \family roman
5102 \emph on
5103 char
5104 \emph default
5105 .
5106  T
5107 \shape up
5108 he
5109 \family default
5110 \shape default
5111  
5112 \family roman
5113 \shape up
5114 \emph on
5115 accent
5116 \family default
5117 \shape default
5118 \emph default
5119  
5120 \family roman
5121 \shape up
5122 must
5123 \family default
5124 \shape default
5125  
5126 \shape up
5127 have been assigned a keystroke with a previous
5128 \shape default
5129  
5130 \begin_inset Flex Code
5131 status collapsed
5132
5133 \begin_layout Plain Layout
5134
5135 \shape up
5136
5137 \backslash
5138 kmo
5139 \shape default
5140 d
5141 \end_layout
5142
5143 \end_inset
5144
5145  declar
5146 \family roman
5147 ation and
5148 \family default
5149  
5150 \family roman
5151 \emph on
5152 char
5153 \family default
5154 \emph default
5155  
5156 \family roman
5157 must not belong in the
5158 \family default
5159  
5160 \family roman
5161 \emph on
5162 allowed
5163 \family default
5164 \emph default
5165  
5166 \family roman
5167 set of
5168 \family default
5169  
5170 \family roman
5171 \emph on
5172 accent
5173 \emph default
5174 .
5175  When
5176 \family default
5177  
5178 \family roman
5179 \shape up
5180 you enter the
5181 \family default
5182 \shape default
5183  
5184 \family roman
5185 \shape up
5186 \emph on
5187 accent char
5188 \family default
5189 \shape default
5190 \emph default
5191  
5192 \family roman
5193 \shape up
5194 sequence,
5195 \family default
5196 \shape default
5197  
5198 \family roman
5199 \shape up
5200 \emph on
5201 result
5202 \emph default
5203  is produced.
5204  If such a declaration does not exist in
5205 \family default
5206 \shape default
5207  
5208 \shape up
5209 the
5210 \shape default
5211  
5212 \begin_inset Flex Code
5213 status collapsed
5214
5215 \begin_layout Plain Layout
5216
5217 \shape up
5218 .kmap
5219 \end_layout
5220
5221 \end_inset
5222
5223  file and yo
5224 \family roman
5225 u enter
5226 \family default
5227  
5228 \family roman
5229 \emph on
5230 accent char
5231 \emph default
5232 , you get
5233 \family default
5234  
5235 \family roman
5236 \emph on
5237 accent_key char
5238 \emph default
5239  where
5240 \family default
5241  
5242 \family roman
5243 \emph on
5244 accent_key
5245 \emph default
5246  is the first arg
5247 \family default
5248 ument of the 
5249 \begin_inset Flex Code
5250 status collapsed
5251
5252 \begin_layout Plain Layout
5253
5254 \shape up
5255
5256 \backslash
5257 kmod
5258 \end_layout
5259
5260 \end_inset
5261
5262  declaration.
5263  
5264 \end_layout
5265
5266 \begin_layout Standard
5267 The following command produces causes äi to be produced when you enter acute-i
5268  ('i):
5269 \end_layout
5270
5271 \begin_layout LyX-Code
5272
5273 \backslash
5274 kxmod acute i "
5275 \backslash
5276
5277 \backslash
5278 '{
5279 \backslash
5280
5281 \backslash
5282 i}"
5283 \end_layout
5284
5285 \begin_layout Labeling
5286 \labelwidthstring 00.00.0000
5287 \begin_inset Flex Code
5288 status collapsed
5289
5290 \begin_layout Plain Layout
5291 kcomb
5292 \end_layout
5293
5294 \end_inset
5295
5296  Combine two accent characters
5297 \end_layout
5298
5299 \begin_layout LyX-Code
5300
5301 \backslash
5302 kcomb 
5303 \family roman
5304 \emph on
5305 accent1 accent2 allowed
5306 \end_layout
5307
5308 \begin_layout Standard
5309 This one is getting pretty esoteric.
5310  It allows you to combine the effect 
5311 \family roman
5312 of
5313 \family default
5314  
5315 \family roman
5316 \emph on
5317 accent1
5318 \family default
5319 \emph default
5320  
5321 \family roman
5322 and
5323 \family default
5324  
5325 \family roman
5326 \emph on
5327 accent2
5328 \family default
5329 \emph default
5330  
5331 \family roman
5332 (in that order!) on
5333 \family default
5334  
5335 \family roman
5336 \emph on
5337 allowed
5338 \family default
5339 \emph default
5340  
5341 \family roman
5342 chars.
5343  The keystrokes for
5344 \family default
5345  
5346 \family roman
5347 \emph on
5348 accent1
5349 \family default
5350 \emph default
5351  
5352 \family roman
5353 and
5354 \family default
5355  
5356 \family roman
5357 \emph on
5358 accent2
5359 \family default
5360 \emph default
5361  
5362 \family roman
5363 must have be
5364 \family default
5365 en set with a 
5366 \begin_inset Flex Code
5367 status collapsed
5368
5369 \begin_layout Plain Layout
5370
5371 \shape up
5372
5373 \backslash
5374 kmod
5375 \end_layout
5376
5377 \end_inset
5378
5379  command at 
5380 \family roman
5381 a
5382 \family default
5383  
5384 \family roman
5385 \emph on
5386 previous
5387 \family default
5388 \emph default
5389  
5390 \family roman
5391 point in the
5392 \family default
5393  file.
5394  
5395 \end_layout
5396
5397 \begin_layout Standard
5398 Consider this example from the 
5399 \begin_inset Flex Code
5400 status collapsed
5401
5402 \begin_layout Plain Layout
5403
5404 \shape up
5405 greek.kmap
5406 \end_layout
5407
5408 \end_inset
5409
5410  file:
5411 \end_layout
5412
5413 \begin_layout LyX-Code
5414
5415 \backslash
5416 kmod ; acute aeioyvhAEIOYVH 
5417 \backslash
5418 kmod : umlaut iyIY 
5419 \backslash
5420 kcomb acute umlaut iyIY
5421 \end_layout
5422
5423 \begin_layout Standard
5424 This allows you to press 
5425 \begin_inset Flex Noun
5426 status collapsed
5427
5428 \begin_layout Plain Layout
5429
5430 \shape up
5431 ;:i
5432 \end_layout
5433
5434 \end_inset
5435
5436  and get the effect of 
5437 \begin_inset Flex Code
5438 status collapsed
5439
5440 \begin_layout Plain Layout
5441
5442 \shape up
5443
5444 \backslash
5445 '{
5446 \backslash
5447 "{i}}
5448 \end_layout
5449
5450 \end_inset
5451
5452 .
5453  
5454 \family roman
5455 \shape up
5456 A backspace
5457 \family default
5458 \shape default
5459  in this case cancels the last dead key, so if you press 
5460 \begin_inset Flex Noun
5461 status collapsed
5462
5463 \begin_layout Plain Layout
5464
5465 \shape up
5466 ;: Backspace i
5467 \end_layout
5468
5469 \end_inset
5470
5471  you get 
5472 \begin_inset Flex Code
5473 status collapsed
5474
5475 \begin_layout Plain Layout
5476
5477 \shape up
5478
5479 \backslash
5480 '{i}
5481 \end_layout
5482
5483 \end_inset
5484
5485 .
5486 \end_layout
5487
5488 \begin_layout Subsection
5489 The .cdef File
5490 \end_layout
5491
5492 \begin_layout Standard
5493 After the 
5494 \begin_inset Flex Code
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498
5499 \shape up
5500 .kmap
5501 \end_layout
5502
5503 \end_inset
5504
5505  mapping is performed, a 
5506 \begin_inset Flex Code
5507 status collapsed
5508
5509 \begin_layout Plain Layout
5510
5511 \shape up
5512 .cde
5513 \shape default
5514 f
5515 \end_layout
5516
5517 \end_inset
5518
5519  file maps the strings that the symbols generate to characters in the current
5520  font.
5521  The \SpecialChar LyX
5522  distribution currently includes at least the 
5523 \begin_inset Flex Code
5524 status collapsed
5525
5526 \begin_layout Plain Layout
5527
5528 \shape up
5529 iso8859-1.cdef
5530 \end_layout
5531
5532 \end_inset
5533
5534  and 
5535 \begin_inset Flex Code
5536 status collapsed
5537
5538 \begin_layout Plain Layout
5539
5540 \shape up
5541 iso8859-2.cdef
5542 \end_layout
5543
5544 \end_inset
5545
5546  files.
5547 \end_layout
5548
5549 \begin_layout Standard
5550 In general the 
5551 \begin_inset Flex Code
5552 status collapsed
5553
5554 \begin_layout Plain Layout
5555
5556 \shape up
5557 .cdef
5558 \end_layout
5559
5560 \end_inset
5561
5562  file is a sequence of declarations of the form
5563 \end_layout
5564
5565 \begin_layout LyX-Code
5566
5567 \family roman
5568 \emph on
5569 char_index_in_set
5570 \family default
5571 \emph default
5572  
5573 \family roman
5574 \emph on
5575  string
5576 \end_layout
5577
5578 \begin_layout Standard
5579 For example, in order to map 
5580 \begin_inset Flex Noun
5581 status collapsed
5582
5583 \begin_layout Plain Layout
5584
5585 \shape up
5586
5587 \backslash
5588 '{e}
5589 \end_layout
5590
5591 \end_inset
5592
5593  to the corresponding character in the iso-8859-1 set (233), the following
5594  declaration is used
5595 \end_layout
5596
5597 \begin_layout LyX-Code
5598 233 "
5599 \backslash
5600
5601 \backslash
5602 '{e}"
5603 \end_layout
5604
5605 \begin_layout Standard
5606 with 
5607 \begin_inset Flex Code
5608 status collapsed
5609
5610 \begin_layout Plain Layout
5611
5612 \backslash
5613
5614 \end_layout
5615
5616 \end_inset
5617
5618  and 
5619 \begin_inset Flex Code
5620 status collapsed
5621
5622 \begin_layout Plain Layout
5623 "
5624 \end_layout
5625
5626 \end_inset
5627
5628  being escap
5629 \family roman
5630 ed in
5631 \family default
5632  
5633 \family roman
5634 \emph on
5635 string
5636 \emph default
5637 .
5638  Note that
5639 \family default
5640  the same character can apply to more than one string.
5641  In the 
5642 \begin_inset Flex Code
5643 status collapsed
5644
5645 \begin_layout Plain Layout
5646 i
5647 \shape up
5648 so-8859-7.cdef
5649 \end_layout
5650
5651 \end_inset
5652
5653  file you have
5654 \end_layout
5655
5656 \begin_layout LyX-Code
5657 192 "
5658 \backslash
5659
5660 \backslash
5661 '{
5662 \backslash
5663
5664 \backslash
5665
5666 \backslash
5667 "{i}}"
5668 \begin_inset Newline newline
5669 \end_inset
5670
5671 192 "
5672 \backslash
5673
5674 \backslash
5675
5676 \backslash
5677 "{
5678 \backslash
5679
5680 \backslash
5681 '{i}}"
5682 \end_layout
5683
5684 \begin_layout Standard
5685 If \SpecialChar LyX
5686  cannot find a mapping for the string produced by the keystroke or a
5687  deadkey sequence, it will check if it looks like an accented char and try
5688  to draw an accent over the character on screen.
5689 \end_layout
5690
5691 \begin_layout Subsection
5692 Dead Keys
5693 \end_layout
5694
5695 \begin_layout Standard
5696 There is a second way to add support for international characters through
5697  so-called dead-keys.
5698  A dead-key works in combination with a letter to produce an accented character.
5699  Here, we'll explain how to create a really simple dead-key to illustrate
5700  how they work.
5701 \end_layout
5702
5703 \begin_layout Standard
5704 Suppose you happen to need the circumflex character, 
5705 \begin_inset Quotes eld
5706 \end_inset
5707
5708  ̂
5709 \begin_inset Quotes erd
5710 \end_inset
5711
5712 .
5713  You could bind the 
5714 \begin_inset Flex Noun
5715 status collapsed
5716
5717 \begin_layout Plain Layout
5718 ^
5719 \end_layout
5720
5721 \end_inset
5722
5723 -key [a.k.a.
5724 \begin_inset space ~
5725 \end_inset
5726
5727
5728 \begin_inset Flex Noun
5729 status collapsed
5730
5731 \begin_layout Plain Layout
5732 Shift-6
5733 \end_layout
5734
5735 \end_inset
5736
5737 ] to the \SpecialChar LyX
5738  command 
5739 \begin_inset Flex Code
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 accent-circumflex
5744 \end_layout
5745
5746 \end_inset
5747
5748  in your 
5749 \begin_inset Flex Code
5750 status collapsed
5751
5752 \begin_layout Plain Layout
5753 lyxrc
5754 \end_layout
5755
5756 \end_inset
5757
5758  file.
5759  Now, whenever you type the 
5760 \begin_inset Flex Noun
5761 status collapsed
5762
5763 \begin_layout Plain Layout
5764 ^
5765 \end_layout
5766
5767 \end_inset
5768
5769 -key followed by a letter, that letter will have a circumflex accent on
5770  it.
5771  For example, the sequence 
5772 \begin_inset Quotes eld
5773 \end_inset
5774
5775
5776 \begin_inset Flex Noun
5777 status collapsed
5778
5779 \begin_layout Plain Layout
5780 ^e
5781 \end_layout
5782
5783 \end_inset
5784
5785
5786 \begin_inset Quotes erd
5787 \end_inset
5788
5789  produces the letter: 
5790 \begin_inset Quotes eld
5791 \end_inset
5792
5793 ê
5794 \begin_inset Quotes erd
5795 \end_inset
5796
5797 .
5798  If you tried to type 
5799 \begin_inset Quotes eld
5800 \end_inset
5801
5802
5803 \begin_inset Flex Noun
5804 status collapsed
5805
5806 \begin_layout Plain Layout
5807 ^t
5808 \end_layout
5809
5810 \end_inset
5811
5812
5813 \begin_inset Quotes erd
5814 \end_inset
5815
5816 , however, \SpecialChar LyX
5817  will complain with a beep, since a 
5818 \begin_inset Quotes eld
5819 \end_inset
5820
5821
5822 \begin_inset Flex Noun
5823 status collapsed
5824
5825 \begin_layout Plain Layout
5826 t
5827 \end_layout
5828
5829 \end_inset
5830
5831
5832 \begin_inset Quotes erd
5833 \end_inset
5834
5835  never takes a circumflex accent.
5836  Hitting 
5837 \begin_inset Flex Noun
5838 status collapsed
5839
5840 \begin_layout Plain Layout
5841 Space
5842 \end_layout
5843
5844 \end_inset
5845
5846  after a dead-key produces the bare-accent.
5847  Please note this last point! If you bind a key to a dead-key, you'll need
5848  to rebind the character on that key to yet another key.
5849  Binding the 
5850 \begin_inset Flex Noun
5851 status collapsed
5852
5853 \begin_layout Plain Layout
5854 ,-key
5855 \end_layout
5856
5857 \end_inset
5858
5859  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5860 \end_layout
5861
5862 \begin_layout Standard
5863 One common way to bind dead-keys is to use 
5864 \begin_inset Flex Noun
5865 status collapsed
5866
5867 \begin_layout Plain Layout
5868 Meta-
5869 \end_layout
5870
5871 \end_inset
5872
5873
5874 \begin_inset Flex Noun
5875 status collapsed
5876
5877 \begin_layout Plain Layout
5878 Ctrl-
5879 \end_layout
5880
5881 \end_inset
5882
5883 , and 
5884 \begin_inset Flex Noun
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 Shift-
5889 \end_layout
5890
5891 \end_inset
5892
5893  in combination with an accent, like 
5894 \begin_inset Quotes eld
5895 \end_inset
5896
5897
5898 \begin_inset Flex Noun
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902 ~
5903 \end_layout
5904
5905 \end_inset
5906
5907
5908 \begin_inset Quotes erd
5909 \end_inset
5910
5911  or 
5912 \begin_inset Quotes eld
5913 \end_inset
5914
5915
5916 \begin_inset Flex Noun
5917 status collapsed
5918
5919 \begin_layout Plain Layout
5920 ,
5921 \end_layout
5922
5923 \end_inset
5924
5925
5926 \begin_inset Quotes erd
5927 \end_inset
5928
5929  or 
5930 \begin_inset Quotes eld
5931 \end_inset
5932
5933
5934 \begin_inset Flex Noun
5935 status collapsed
5936
5937 \begin_layout Plain Layout
5938 ^
5939 \end_layout
5940
5941 \end_inset
5942
5943
5944 \begin_inset Quotes erd
5945 \end_inset
5946
5947 .
5948  Another way involves using 
5949 \begin_inset Flex Code
5950 status collapsed
5951
5952 \begin_layout Plain Layout
5953 xmodmap
5954 \end_layout
5955
5956 \end_inset
5957
5958  and 
5959 \begin_inset Flex Code
5960 status collapsed
5961
5962 \begin_layout Plain Layout
5963 xkeycaps
5964 \end_layout
5965
5966 \end_inset
5967
5968  to set up the special 
5969 \begin_inset Flex Code
5970 status collapsed
5971
5972 \begin_layout Plain Layout
5973 Mode_Switch
5974 \end_layout
5975
5976 \end_inset
5977
5978  key.
5979  The 
5980 \begin_inset Flex Code
5981 status collapsed
5982
5983 \begin_layout Plain Layout
5984 Mode_Switch
5985 \end_layout
5986
5987 \end_inset
5988
5989  acts in some ways just like 
5990 \begin_inset Flex Noun
5991 status collapsed
5992
5993 \begin_layout Plain Layout
5994 Shift
5995 \end_layout
5996
5997 \end_inset
5998
5999  and permits you to bind keys to accented characters.
6000  You can also turn keys into dead-keys by binding them to something like
6001  
6002 \begin_inset Flex Code
6003 status collapsed
6004
6005 \begin_layout Plain Layout
6006 usldead_cedilla
6007 \end_layout
6008
6009 \end_inset
6010
6011  and then binding this symbolic key to the corresponding \SpecialChar LyX
6012  command.
6013 \begin_inset Foot
6014 status collapsed
6015
6016 \begin_layout Plain Layout
6017 Note from 
6018 \noun on
6019 John Weiss
6020 \noun default
6021 : This is exactly what I do in my 
6022 \begin_inset Flex Code
6023 status collapsed
6024
6025 \begin_layout Plain Layout
6026 ~/.lyx/lyxrc
6027 \end_layout
6028
6029 \end_inset
6030
6031  and my 
6032 \begin_inset Flex Code
6033 status collapsed
6034
6035 \begin_layout Plain Layout
6036 ~/.xmodmap
6037 \end_layout
6038
6039 \end_inset
6040
6041  files.
6042  I have my 
6043 \begin_inset Flex Noun
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 Scroll
6048 \begin_inset space ~
6049 \end_inset
6050
6051 Lock
6052 \end_layout
6053
6054 \end_inset
6055
6056  key set up as 
6057 \begin_inset Flex Code
6058 status collapsed
6059
6060 \begin_layout Plain Layout
6061 Mode_Shift
6062 \end_layout
6063
6064 \end_inset
6065
6066  and a bunch of these 
6067 \begin_inset Quotes eld
6068 \end_inset
6069
6070
6071 \begin_inset Flex Code
6072 status collapsed
6073
6074 \begin_layout Plain Layout
6075 usldead_*
6076 \end_layout
6077
6078 \end_inset
6079
6080
6081 \begin_inset Quotes erd
6082 \end_inset
6083
6084  symbolic keys bound such things as 
6085 \begin_inset Flex Noun
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 Scroll
6090 \begin_inset space ~
6091 \end_inset
6092
6093 Lock-^
6094 \end_layout
6095
6096 \end_inset
6097
6098  and 
6099 \begin_inset Flex Noun
6100 status collapsed
6101
6102 \begin_layout Plain Layout
6103 Scroll
6104 \begin_inset space ~
6105 \end_inset
6106
6107 Lock-~
6108 \end_layout
6109
6110 \end_inset
6111
6112 .
6113  This is how I produce my accented characters.
6114 \end_layout
6115
6116 \end_inset
6117
6118  You can make just about anything into the 
6119 \begin_inset Flex Code
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 Mode_Switch
6124 \end_layout
6125
6126 \end_inset
6127
6128  key: One of the 
6129 \begin_inset Flex Noun
6130 status collapsed
6131
6132 \begin_layout Plain Layout
6133 Ctrl-
6134 \end_layout
6135
6136 \end_inset
6137
6138  keys, a spare function key, etc.
6139  As for the \SpecialChar LyX
6140  commands that produce accents, check the entry for 
6141 \begin_inset Flex Code
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145 accent-acute
6146 \end_layout
6147
6148 \end_inset
6149
6150  in the 
6151 \emph on
6152 Reference Manual
6153 \emph default
6154 .
6155  You'll find the complete list there.
6156 \end_layout
6157
6158 \begin_layout Subsection
6159 Saving your Language Configuration
6160 \end_layout
6161
6162 \begin_layout Standard
6163 You can edit your preferences so that your desired language environment
6164  is automatically configured when \SpecialChar LyX
6165  starts up, via the 
6166 \begin_inset Flex Noun
6167 status collapsed
6168
6169 \begin_layout Plain Layout
6170 Edit\SpecialChar menuseparator
6171 Preferences
6172 \end_layout
6173
6174 \end_inset
6175
6176  dialog.
6177 \end_layout
6178
6179 \begin_layout Chapter
6180 Installing New Document Classes, Layouts, and Templates
6181 \begin_inset CommandInset label
6182 LatexCommand label
6183 name "cha:Installing-New-Document"
6184
6185 \end_inset
6186
6187
6188 \begin_inset Argument 1
6189 status collapsed
6190
6191 \begin_layout Plain Layout
6192 Installing New Document Classes
6193 \end_layout
6194
6195 \end_inset
6196
6197
6198 \end_layout
6199
6200 \begin_layout Standard
6201 In this chapter, we describe the procedures for creating and installing
6202  new \SpecialChar LyX
6203  layout and template files, as well as offer a refresher on correctly
6204  installing new \SpecialChar LaTeX
6205  document classes.
6206  
6207 \end_layout
6208
6209 \begin_layout Standard
6210 First, let us a say a few words about how one ought to think about the relation
6211  between \SpecialChar LyX
6212  and \SpecialChar LaTeX
6213 .
6214  The thing to understand is that, in a certain sense, \SpecialChar LyX
6215  doesn't know anything
6216  about \SpecialChar LaTeX
6217 .
6218  Indeed, from \SpecialChar LyX
6219 's point of view, \SpecialChar LaTeX
6220  is just one of several 
6221 \begin_inset Quotes eld
6222 \end_inset
6223
6224 backend formats
6225 \begin_inset Quotes erd
6226 \end_inset
6227
6228  in which it is capable of producing output.
6229  Other such formats are DocBook, plaintext, and XHTML.
6230  \SpecialChar LaTeX
6231  is, of course, a particularly important format, but very little of the
6232  information \SpecialChar LyX
6233  has about \SpecialChar LaTeX
6234  is actually contained in the program itself.
6235 \begin_inset Foot
6236 status collapsed
6237
6238 \begin_layout Plain Layout
6239 Some commands are sufficiently complex that they are 
6240 \begin_inset Quotes eld
6241 \end_inset
6242
6243 hardcoded
6244 \begin_inset Quotes erd
6245 \end_inset
6246
6247  into \SpecialChar LyX
6248 .
6249  But the developers generally regard this as a Bad Thing.
6250 \end_layout
6251
6252 \end_inset
6253
6254  Rather, that information, even for the standard classes like 
6255 \begin_inset Flex Code
6256 status collapsed
6257
6258 \begin_layout Plain Layout
6259 article.cls
6260 \end_layout
6261
6262 \end_inset
6263
6264 , is contained in `layout files'.
6265  Similarly, \SpecialChar LyX
6266  itself does not know much about DocBook or XHTML.
6267  What it knows is contained in layout files.
6268 \end_layout
6269
6270 \begin_layout Standard
6271 You can think of the layout file for a given document class as a translation
6272  manual between \SpecialChar LyX
6273  constructs—paragraphs with their corresponding styles,
6274  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6275 , DocBook, or XHTML
6276  constructs.
6277  Almost everything \SpecialChar LyX
6278  knows about 
6279 \begin_inset Flex Code
6280 status collapsed
6281
6282 \begin_layout Plain Layout
6283 article.cls
6284 \end_layout
6285
6286 \end_inset
6287
6288 , for example, is contained in the file 
6289 \begin_inset Flex Code
6290 status collapsed
6291
6292 \begin_layout Plain Layout
6293 article.layout
6294 \end_layout
6295
6296 \end_inset
6297
6298  and in various other files it includes.
6299  For this reason, anyone intending to write layout files should plan to
6300  study the existing files.
6301  A good place to start is with 
6302 \begin_inset Flex Code
6303 status collapsed
6304
6305 \begin_layout Plain Layout
6306 stdsections.inc
6307 \end_layout
6308
6309 \end_inset
6310
6311 , which is included in 
6312 \begin_inset Flex Code
6313 status collapsed
6314
6315 \begin_layout Plain Layout
6316 article.layout
6317 \end_layout
6318
6319 \end_inset
6320
6321
6322 \begin_inset Flex Code
6323 status collapsed
6324
6325 \begin_layout Plain Layout
6326 book.layout
6327 \end_layout
6328
6329 \end_inset
6330
6331 , and many of the other layout files for document classes.
6332  This file is where sections and the like are defined: 
6333 \begin_inset Flex Code
6334 status collapsed
6335
6336 \begin_layout Plain Layout
6337 stdsections.inc
6338 \end_layout
6339
6340 \end_inset
6341
6342  tells \SpecialChar LyX
6343  how paragraphs that are marked with the Section, Subsection, etc,
6344  styles can be translated into corresponding \SpecialChar LaTeX
6345 , DocBook, and XHTML commands
6346  and tags.
6347  The 
6348 \begin_inset Flex Code
6349 status collapsed
6350
6351 \begin_layout Plain Layout
6352 article.layout
6353 \end_layout
6354
6355 \end_inset
6356
6357  file basically just includes several of these 
6358 \begin_inset Flex Code
6359 status collapsed
6360
6361 \begin_layout Plain Layout
6362 std*.inc
6363 \end_layout
6364
6365 \end_inset
6366
6367  files.
6368 \end_layout
6369
6370 \begin_layout Standard
6371 Defining the \SpecialChar LyX
6372 –\SpecialChar LaTeX
6373  correspondence is not the only thing layout files do, though.
6374  Their other job is to define how the \SpecialChar LyX
6375  constructs themselves will appear
6376  on-screen.
6377  The fact that layout files have these two jobs is often a source of confusion,
6378  because they are completely separate.
6379  Telling \SpecialChar LyX
6380  how to translate a certain paragraph style into \SpecialChar LaTeX
6381  does not tell
6382  \SpecialChar LyX
6383  how to display it; conversely, telling \SpecialChar LyX
6384  how to display a certain paragraph
6385  style does not tell \SpecialChar LyX
6386  how to translate it into \SpecialChar LaTeX
6387  (let alone tell \SpecialChar LaTeX
6388  how to
6389  display it).
6390  So, in general, when you define a new \SpecialChar LyX
6391  construct, you must always do two
6392  quite separate things: (i)
6393 \begin_inset space ~
6394 \end_inset
6395
6396 tell \SpecialChar LyX
6397  how to translate it into \SpecialChar LaTeX
6398  and (ii)
6399 \begin_inset space ~
6400 \end_inset
6401
6402 tell \SpecialChar LyX
6403  how to display it.
6404 \end_layout
6405
6406 \begin_layout Standard
6407 Much the same is true, of course, as regards \SpecialChar LyX
6408 's other backend formats, though
6409  XHTML is in some ways different, because in that case \SpecialChar LyX
6410  
6411 \emph on
6412 is
6413 \emph default
6414  able, to some extent, to use information about how it should display a
6415  paragraph on the screen to output information (in the form of CSS) about
6416  how the paragraph should be displayed in a browser.
6417  Even in this case, however, the distinction between what \SpecialChar LyX
6418  does internally
6419  and how things are rendered externally remains in force, and the two can
6420  be controlled separately.
6421  See 
6422 \begin_inset CommandInset ref
6423 LatexCommand ref
6424 reference "sec:Tags-for-XHTML"
6425
6426 \end_inset
6427
6428  for the details.
6429 \end_layout
6430
6431 \begin_layout Section
6432 Installing new \SpecialChar LaTeX
6433  files
6434 \end_layout
6435
6436 \begin_layout Standard
6437 Some installations may not include a \SpecialChar LaTeX
6438  package or class file that you would
6439  like to use within \SpecialChar LyX
6440 .
6441  For example, you might need Foil\SpecialChar TeX
6442 , a package for preparing slides for overhead
6443  projectors.
6444  Modern \SpecialChar LaTeX
6445  distributions like \SpecialChar TeX
6446 Live (2008 or newer) or MiK\SpecialChar TeX
6447  provide a user interface
6448  for installing such packages.
6449  For example, with MiK\SpecialChar TeX
6450 , you start the program 
6451 \begin_inset Quotes eld
6452 \end_inset
6453
6454 Package
6455 \begin_inset space ~
6456 \end_inset
6457
6458 Manager
6459 \begin_inset Quotes erd
6460 \end_inset
6461
6462  to get a list of available packages.
6463  To install one of them, right click on it or use the corresponding toolbar
6464  button.
6465 \end_layout
6466
6467 \begin_layout Standard
6468 If your \SpecialChar LaTeX
6469  distribution does not provide such a `package manager', or if the
6470  package is not available from your distribution, then follow these steps
6471  to install it manually:
6472 \end_layout
6473
6474 \begin_layout Enumerate
6475 Get the package from 
6476 \begin_inset CommandInset href
6477 LatexCommand href
6478 name "CTAN"
6479 target "http://www.ctan.org/"
6480 literal "false"
6481
6482 \end_inset
6483
6484  or wherever.
6485 \end_layout
6486
6487 \begin_layout Enumerate
6488 If the package contains a file with the ending 
6489 \begin_inset Quotes eld
6490 \end_inset
6491
6492
6493 \begin_inset Flex Code
6494 status collapsed
6495
6496 \begin_layout Plain Layout
6497 .ins
6498 \end_layout
6499
6500 \end_inset
6501
6502
6503 \begin_inset Quotes erd
6504 \end_inset
6505
6506  (is the case for Foil\SpecialChar TeX
6507 ) then open a console, change to the folder of this
6508  file and execute the command 
6509 \begin_inset Flex Code
6510 status collapsed
6511
6512 \begin_layout Plain Layout
6513 latex foiltex.ins
6514 \end_layout
6515
6516 \end_inset
6517
6518 .
6519  You have now unpacked the package and have all files to install it.
6520  Most \SpecialChar LaTeX
6521 -packages are not packed and you can skip this step.
6522 \end_layout
6523
6524 \begin_layout Enumerate
6525 Now you need to decide if the package should be available for all users
6526  or only for you.
6527 \end_layout
6528
6529 \begin_deeper
6530 \begin_layout Enumerate
6531 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6532  for all users on your system, then install it in your `local' \SpecialChar TeX
6533  tree, otherwise
6534  install it in your own `user' \SpecialChar TeX
6535  tree.
6536  Where these trees should be created, if they do not already exist, depends
6537  on your system.
6538  To find this out, look in the file 
6539 \begin_inset Flex Code
6540 status collapsed
6541
6542 \begin_layout Plain Layout
6543 texmf.cnf
6544 \end_layout
6545
6546 \end_inset
6547
6548 .
6549 \begin_inset Foot
6550 status collapsed
6551
6552 \begin_layout Plain Layout
6553 This is usually in the directory 
6554 \begin_inset Flex Code
6555 status collapsed
6556
6557 \begin_layout Plain Layout
6558 $TEXMF/web2c
6559 \end_layout
6560
6561 \end_inset
6562
6563 , though you can execute the command 
6564 \begin_inset Flex Code
6565 status collapsed
6566
6567 \begin_layout Plain Layout
6568 kpsewhich texmf.cnf
6569 \end_layout
6570
6571 \end_inset
6572
6573  to locate it.
6574 \end_layout
6575
6576 \end_inset
6577
6578  The location of the `local' \SpecialChar TeX
6579  tree is defined by the 
6580 \begin_inset Flex Code
6581 status collapsed
6582
6583 \begin_layout Plain Layout
6584 TEXMFLOCAL
6585 \end_layout
6586
6587 \end_inset
6588
6589  variable; this is usually somewhere like 
6590 \begin_inset Flex Code
6591 status collapsed
6592
6593 \begin_layout Plain Layout
6594 /usr/local/share/texmf
6595 \end_layout
6596
6597 \end_inset
6598
6599  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6600 Live
6601  distribution.
6602  The location of the `user' \SpecialChar TeX
6603  tree is defined by 
6604 \begin_inset Flex Code
6605 status collapsed
6606
6607 \begin_layout Plain Layout
6608 TEXMFHOME
6609 \end_layout
6610
6611 \end_inset
6612
6613  and is commonly 
6614 \begin_inset Flex Code
6615 status collapsed
6616
6617 \begin_layout Plain Layout
6618 $HOME/texmf
6619 \end_layout
6620
6621 \end_inset
6622
6623  or 
6624 \begin_inset Flex Code
6625 status collapsed
6626
6627 \begin_layout Plain Layout
6628
6629 \family sans
6630 $HOME/.texliveXXXX
6631 \end_layout
6632
6633 \end_inset
6634
6635 .
6636  (If these variables are not predefined, you have to define them.) You'll
6637  probably need root permissions to create or modify the `local' tree, but
6638  not for your `user' tree.
6639 \begin_inset Newline newline
6640 \end_inset
6641
6642 In general, it is recommended to install in the user tree because your user
6643  will not be modified or even overwritten when you upgrade your system.
6644  It will typically also be backed up together with everything else when
6645  you backup your home directory (which, of course, you do on a regular basis).
6646 \end_layout
6647
6648 \begin_layout Enumerate
6649 On Windows, if you want the new package to be available for all users on
6650  your system, change to the folder where \SpecialChar LaTeX
6651  is installed and then change to
6652  the subfolder 
6653 \begin_inset Flex Code
6654 status collapsed
6655
6656 \begin_layout Plain Layout
6657 ~
6658 \backslash
6659 tex
6660 \backslash
6661 latex
6662 \end_layout
6663
6664 \end_inset
6665
6666 .
6667  (For MiK\SpecialChar TeX
6668 , this would be by default the folder 
6669 \begin_inset Flex Code
6670 status collapsed
6671
6672 \begin_layout Plain Layout
6673 ~:
6674 \backslash
6675 Programs
6676 \backslash
6677 MiKTeX
6678 \backslash
6679 tex
6680 \backslash
6681 latex
6682 \end_layout
6683
6684 \end_inset
6685
6686 .)
6687 \begin_inset Foot
6688 status collapsed
6689
6690 \begin_layout Plain Layout
6691 Note that this will be the correct path only on English installations.
6692  On a German one, it would be 
6693 \begin_inset Flex Code
6694 status collapsed
6695
6696 \begin_layout Plain Layout
6697 ~:
6698 \backslash
6699 Programme
6700 \backslash
6701 MiKTeX
6702 \backslash
6703 tex
6704 \backslash
6705 latex
6706 \end_layout
6707
6708 \end_inset
6709
6710 , and similarly for other languages.
6711 \end_layout
6712
6713 \end_inset
6714
6715  Create there a new folder 
6716 \begin_inset Flex Code
6717 status collapsed
6718
6719 \begin_layout Plain Layout
6720 foiltex
6721 \end_layout
6722
6723 \end_inset
6724
6725  and copy all files of the package into it.
6726  
6727 \begin_inset Newline newline
6728 \end_inset
6729
6730 If the package should only available for you or you don't have admin permissions
6731 , do the same, but in the local \SpecialChar LaTeX
6732  folder.
6733  E.
6734 \begin_inset space \thinspace{}
6735 \end_inset
6736
6737 g., for MiK\SpecialChar TeX
6738
6739 \begin_inset space ~
6740 \end_inset
6741
6742 2.8 under Windows XP, this would be the folder:
6743 \begin_inset Newline newline
6744 \end_inset
6745
6746
6747 \family sans
6748
6749 \begin_inset Flex Code
6750 status collapsed
6751
6752 \begin_layout Plain Layout
6753 ~:
6754 \backslash
6755 Documents and Settings
6756 \backslash
6757 <username>
6758 \backslash
6759 Application Data
6760 \backslash
6761
6762 \end_layout
6763
6764 \end_inset
6765
6766
6767 \begin_inset Newline newline
6768 \end_inset
6769
6770
6771 \family default
6772
6773 \begin_inset Phantom HPhantom
6774 status open
6775
6776 \begin_layout Plain Layout
6777
6778 \family sans
6779 ~:
6780 \backslash
6781
6782 \end_layout
6783
6784 \end_inset
6785
6786
6787 \begin_inset Flex Code
6788 status collapsed
6789
6790 \begin_layout Plain Layout
6791 MiKTeX
6792 \backslash
6793 2.8
6794 \backslash
6795 tex
6796 \backslash
6797 latex
6798 \end_layout
6799
6800 \end_inset
6801
6802
6803 \begin_inset Newline newline
6804 \end_inset
6805
6806 On Vista, it would be:
6807 \begin_inset Newline newline
6808 \end_inset
6809
6810
6811 \begin_inset Flex Code
6812 status collapsed
6813
6814 \begin_layout Plain Layout
6815 ~:
6816 \backslash
6817 Users
6818 \backslash
6819 <username>
6820 \backslash
6821 AppData
6822 \backslash
6823 Roaming
6824 \backslash
6825 2.8
6826 \backslash
6827 MiKTeX
6828 \backslash
6829 tex
6830 \backslash
6831 latex
6832 \end_layout
6833
6834 \end_inset
6835
6836
6837 \end_layout
6838
6839 \end_deeper
6840 \begin_layout Enumerate
6841 Now one only need to tell \SpecialChar LaTeX
6842  that there are new files.
6843  This depends on the used \SpecialChar LaTeX
6844 -Distribution:
6845 \end_layout
6846
6847 \begin_deeper
6848 \begin_layout Enumerate
6849 For \SpecialChar TeX
6850 Live execute the command 
6851 \begin_inset Flex Code
6852 status collapsed
6853
6854 \begin_layout Plain Layout
6855 texhash
6856 \end_layout
6857
6858 \end_inset
6859
6860  from a console.
6861  If you installed the package for all users, then you will probably need
6862  to have root permissions for that.
6863 \end_layout
6864
6865 \begin_layout Enumerate
6866 For MiK\SpecialChar TeX
6867 , if you have installed the package for all users, start the program
6868  
6869 \begin_inset Quotes eld
6870 \end_inset
6871
6872 Settings
6873 \begin_inset space ~
6874 \end_inset
6875
6876 (Admin)
6877 \begin_inset Quotes erd
6878 \end_inset
6879
6880  and press the button marked 
6881 \begin_inset Quotes eld
6882 \end_inset
6883
6884 Refresh FNDB
6885 \begin_inset Quotes erd
6886 \end_inset
6887
6888 .
6889  Otherwise start the program 
6890 \begin_inset Quotes eld
6891 \end_inset
6892
6893 Settings
6894 \begin_inset Quotes erd
6895 \end_inset
6896
6897  and do the same.
6898 \end_layout
6899
6900 \end_deeper
6901 \begin_layout Enumerate
6902 Finally, you need to tell \SpecialChar LyX
6903  that there are new packages available.
6904  So, in \SpecialChar LyX
6905 , use the menu 
6906 \begin_inset Flex Noun
6907 status collapsed
6908
6909 \begin_layout Plain Layout
6910 Tools
6911 \family sans
6912 \SpecialChar menuseparator
6913 Reconfigure
6914 \end_layout
6915
6916 \end_inset
6917
6918  and then restart \SpecialChar LyX
6919 .
6920 \end_layout
6921
6922 \begin_layout Standard
6923 Now the package is installed.
6924  In our example, the document class 
6925 \begin_inset Flex Code
6926 status collapsed
6927
6928 \begin_layout Plain Layout
6929 FoilTex
6930 \end_layout
6931
6932 \end_inset
6933
6934  will now be available under 
6935 \begin_inset Flex Noun
6936 status collapsed
6937
6938 \begin_layout Plain Layout
6939 Document\SpecialChar menuseparator
6940 Settings\SpecialChar menuseparator
6941 Document Class
6942 \end_layout
6943
6944 \end_inset
6945
6946  (in the 
6947 \begin_inset Quotes eld
6948 \end_inset
6949
6950 Presentations
6951 \begin_inset Quotes erd
6952 \end_inset
6953
6954  category).
6955  
6956 \end_layout
6957
6958 \begin_layout Standard
6959 If you would like to use a \SpecialChar LaTeX
6960  document class that is not even listed in the
6961  menu 
6962 \begin_inset Flex Noun
6963 status collapsed
6964
6965 \begin_layout Plain Layout
6966 Document\SpecialChar menuseparator
6967 Settings\SpecialChar menuseparator
6968 Document Class
6969 \end_layout
6970
6971 \end_inset
6972
6973 , then you need to create a `layout' file for it.
6974  That is the topic of the next section.
6975 \end_layout
6976
6977 \begin_layout Section
6978 Types of layout files
6979 \end_layout
6980
6981 \begin_layout Standard
6982 This section describes the various sorts of \SpecialChar LyX
6983  files that contain layout informati
6984 on.
6985  These files describe various paragraph and character styles, determining
6986  how \SpecialChar LyX
6987  should display them and how they should be translated into \SpecialChar LaTeX
6988 , DocBook,
6989  XHTML, or whatever output format is being used.
6990  
6991 \end_layout
6992
6993 \begin_layout Standard
6994 We shall try to provide a thorough description of the process of writing
6995  layout files here.
6996  However, there are so many different types of documents supported even
6997  by just \SpecialChar LaTeX
6998  that we can't hope to cover every different possibility or problem
6999  you might encounter.
7000  The \SpecialChar LyX
7001  users' list is frequented by people with lots of experience with layout
7002  design who are willing to share what they've learned, so please feel free
7003  to ask questions there.
7004 \end_layout
7005
7006 \begin_layout Standard
7007 As you prepare to write a new layout, it is extremely helpful to look at
7008  the layouts distributed with \SpecialChar LyX
7009 .
7010  If you write a \SpecialChar LyX
7011  layout for a \SpecialChar LaTeX
7012  document class that might also be used by
7013  others, or write a module that might be useful to others, then you should
7014  consider posting your layout to the 
7015 \begin_inset CommandInset href
7016 LatexCommand href
7017 name "layout section on the LyX wiki"
7018 target "https://wiki.lyx.org/Layouts/Layouts"
7019 literal "false"
7020
7021 \end_inset
7022
7023  or even to the \SpecialChar LyX
7024  developers' list, so that it might be included in \SpecialChar LyX
7025  itself.
7026 \begin_inset Foot
7027 status collapsed
7028
7029 \begin_layout Plain Layout
7030 Note that \SpecialChar LyX
7031  is licensed under the General Public License, so any material
7032  that is contributed to \SpecialChar LyX
7033  must be similarly licensed.
7034 \end_layout
7035
7036 \end_inset
7037
7038
7039 \end_layout
7040
7041 \begin_layout Subsection
7042 Layout modules
7043 \begin_inset CommandInset label
7044 LatexCommand label
7045 name "subsec:Layout-modules"
7046
7047 \end_inset
7048
7049
7050 \end_layout
7051
7052 \begin_layout Standard
7053 We have spoken to this point about `layout files'.
7054  But there are different sorts of files that contain layout information.
7055  Layout files, strictly so called, have the 
7056 \begin_inset Flex Code
7057 status collapsed
7058
7059 \begin_layout Plain Layout
7060 .layout
7061 \end_layout
7062
7063 \end_inset
7064
7065  extension and provide \SpecialChar LyX
7066  with information about document classes.
7067  Since \SpecialChar LyX
7068  1.6 layout information can also be contained in layout 
7069 \emph on
7070 modules
7071 \emph default
7072 , which have the 
7073 \begin_inset Flex Code
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 .module
7078 \end_layout
7079
7080 \end_inset
7081
7082  extension.
7083  Modules are to \SpecialChar LaTeX
7084  packages much as layouts are to \SpecialChar LaTeX
7085  classes, and some modules—such
7086  as the 
7087 \begin_inset Flex Code
7088 status collapsed
7089
7090 \begin_layout Plain Layout
7091 endnotes
7092 \end_layout
7093
7094 \end_inset
7095
7096  module—specifically provide support for one package.
7097  In a sense, layout modules are similar to included
7098 \begin_inset Foot
7099 status collapsed
7100
7101 \begin_layout Plain Layout
7102 These can have any extension, but by convention have the 
7103 \begin_inset Flex Code
7104 status collapsed
7105
7106 \begin_layout Plain Layout
7107 .inc
7108 \end_layout
7109
7110 \end_inset
7111
7112  extension.
7113 \end_layout
7114
7115 \end_inset
7116
7117  files—files like 
7118 \begin_inset Flex Code
7119 status collapsed
7120
7121 \begin_layout Plain Layout
7122 stdsections.inc
7123 \end_layout
7124
7125 \end_inset
7126
7127 —in that modules are not specific to a given document class but may be used
7128  with many different classes.
7129  The difference is that using an included file with 
7130 \begin_inset Flex Code
7131 status collapsed
7132
7133 \begin_layout Plain Layout
7134 article.cls
7135 \end_layout
7136
7137 \end_inset
7138
7139  requires editing that file.
7140  Modules, by contrast, are selected in the 
7141 \begin_inset Flex Noun
7142 status collapsed
7143
7144 \begin_layout Plain Layout
7145 Document\SpecialChar menuseparator
7146 Settings
7147 \end_layout
7148
7149 \end_inset
7150
7151  dialog.
7152 \end_layout
7153
7154 \begin_layout Standard
7155 Building modules is the easiest way to get started with layout editing,
7156  since it can be as simple as adding a single new paragraph style or flex
7157  inset.
7158  But modules may, in principle, contain anything a layout file can contain.
7159 \end_layout
7160
7161 \begin_layout Standard
7162 After creating a new module and copying it to the 
7163 \begin_inset Flex Code
7164 status collapsed
7165
7166 \begin_layout Plain Layout
7167 layouts/
7168 \end_layout
7169
7170 \end_inset
7171
7172  folder, you will need to reconfigure and then restart \SpecialChar LyX
7173  for the module to
7174  appear in the menu.
7175  However, changes you make to the module will be seen immediately, if you
7176  open 
7177 \begin_inset Flex Noun
7178 status collapsed
7179
7180 \begin_layout Plain Layout
7181 Document\SpecialChar menuseparator
7182 Settings
7183 \end_layout
7184
7185 \end_inset
7186
7187 , highlight something, and then hit 
7188 \begin_inset Quotes eld
7189 \end_inset
7190
7191 OK
7192 \begin_inset Quotes erd
7193 \end_inset
7194
7195 .
7196  
7197 \emph on
7198 It is strongly recommended that you save your work before doing this
7199 \emph default
7200 .
7201  In fact, 
7202 \emph on
7203 it is strongly recommended that you not attempt to edit modules while simultaneo
7204 usly working on actual documents
7205 \emph default
7206 .
7207  Though of course the developers strive to keep \SpecialChar LyX
7208  stable in such situations,
7209  syntax errors and the like in your module file could cause strange behavior.
7210 \end_layout
7211
7212 \begin_layout Subsubsection
7213 Local Layout
7214 \end_layout
7215
7216 \begin_layout Standard
7217 Modules are to \SpecialChar LyX
7218  as packages are to \SpecialChar LaTeX
7219 .
7220  Sometimes, however, you find yourself wanting a specific inset or character
7221  style just for one document and writing a module that will also be available
7222  to other documents makes little sense.
7223  What you need is \SpecialChar LyX
7224 's 
7225 \begin_inset Quotes eld
7226 \end_inset
7227
7228 Local Layout
7229 \begin_inset Quotes erd
7230 \end_inset
7231
7232 .
7233 \end_layout
7234
7235 \begin_layout Standard
7236 You will find it under 
7237 \family sans
7238 Document\SpecialChar menuseparator
7239 Settings\SpecialChar menuseparator
7240 Local Layout
7241 \family default
7242 .
7243  The large text box allows you to enter anything that you might enter in
7244  a layout file or module.
7245  You can think of a document's local layout, in fact, as a module that belongs
7246  just to it.
7247  So, in particular, you must enter a 
7248 \begin_inset Flex Code
7249 status collapsed
7250
7251 \begin_layout Plain Layout
7252 Format
7253 \end_layout
7254
7255 \end_inset
7256
7257  tag.
7258  Any format is acceptable, but one would normally use the format current
7259  at the time.
7260  (In \SpecialChar LyX
7261  
7262 \begin_inset Info
7263 type  "lyxinfo"
7264 arg   "version"
7265 \end_inset
7266
7267 , the current layout format is 
7268 \begin_inset Info
7269 type  "lyxinfo"
7270 arg   "layoutformat"
7271 \end_inset
7272
7273 .)
7274 \end_layout
7275
7276 \begin_layout Standard
7277 When you have entered something in the 
7278 \begin_inset Flex Code
7279 status collapsed
7280
7281 \begin_layout Plain Layout
7282 Local Layout
7283 \end_layout
7284
7285 \end_inset
7286
7287  pane, \SpecialChar LyX
7288  will enable the 
7289 \begin_inset Quotes eld
7290 \end_inset
7291
7292 Validate
7293 \begin_inset Quotes erd
7294 \end_inset
7295
7296  button at the bottom.
7297  Clicking this button will cause \SpecialChar LyX
7298  to determine whether what you have entered
7299  is valid layout information for the chosen format.
7300  \SpecialChar LyX
7301  will report the result but, unfortunately, will not tell you what errors
7302  there might have been.
7303  These will be written to the terminal, however, if \SpecialChar LyX
7304  is started from a terminal.
7305  You will not be permitted to save your local layout until you have entered
7306  something valid.
7307 \end_layout
7308
7309 \begin_layout Standard
7310 The warnings at the end of the previous section apply here, too.
7311  Do not play with local layout while you are actually working, especially
7312  if you have not saved your document.
7313  That said, using local layout with a test document can be a very convenient
7314  way to try out layout ideas, or even to start developing a module.
7315 \end_layout
7316
7317 \begin_layout Subsection
7318 Layout for 
7319 \begin_inset Flex Noun
7320 status collapsed
7321
7322 \begin_layout Plain Layout
7323 .sty
7324 \end_layout
7325
7326 \end_inset
7327
7328  files
7329 \end_layout
7330
7331 \begin_layout Standard
7332 There are two situations you are likely to encounter when wanting to support
7333  a new \SpecialChar LaTeX
7334  document class, involving style (
7335 \begin_inset Flex Code
7336 status collapsed
7337
7338 \begin_layout Plain Layout
7339 .sty
7340 \end_layout
7341
7342 \end_inset
7343
7344 ) files and \SpecialChar LaTeX2e
7345  class (
7346 \begin_inset Flex Code
7347 status collapsed
7348
7349 \begin_layout Plain Layout
7350 .cls
7351 \end_layout
7352
7353 \end_inset
7354
7355 ) .
7356  Supporting a style file is usually fairly easy.
7357  Supporting a new class file is a bit harder.
7358  We'll discuss the former in this section and the latter in the next.
7359  
7360 \change_deleted 5863208 1594239023
7361 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7362 \change_unchanged
7363
7364 \end_layout
7365
7366 \begin_layout Standard
7367 The easier case is the one in which your new document class is provided
7368  as a style file that is to be used in conjunction with an already supported
7369  document class.
7370  For the sake of the example, we'll assume that the style file is called
7371  
7372 \begin_inset Flex Noun
7373 status collapsed
7374
7375 \begin_layout Plain Layout
7376 myclass.sty
7377 \end_layout
7378
7379 \end_inset
7380
7381  and that it is meant to be used with 
7382 \begin_inset Flex Noun
7383 status collapsed
7384
7385 \begin_layout Plain Layout
7386 report.cls
7387 \end_layout
7388
7389 \end_inset
7390
7391 , which is a standard class.
7392  
7393 \end_layout
7394
7395 \begin_layout Standard
7396 Start by copying the existing class's layout file into your local directory:
7397 \begin_inset Foot
7398 status collapsed
7399
7400 \begin_layout Plain Layout
7401 Of course, which directory is your local directory will vary by platform,
7402  and \SpecialChar LyX
7403  allows you to specify your local directory on startup, too, using
7404  the 
7405 \begin_inset Flex Code
7406 status collapsed
7407
7408 \begin_layout Plain Layout
7409 -userdir
7410 \end_layout
7411
7412 \end_inset
7413
7414  option.
7415 \end_layout
7416
7417 \end_inset
7418
7419
7420 \end_layout
7421
7422 \begin_layout LyX-Code
7423 cp report.layout ~/.lyx/layouts/myclass.layout
7424 \end_layout
7425
7426 \begin_layout Standard
7427 Then edit 
7428 \begin_inset Flex Code
7429 status collapsed
7430
7431 \begin_layout Plain Layout
7432 myclass.layout
7433 \end_layout
7434
7435 \end_inset
7436
7437  and change the line: 
7438 \end_layout
7439
7440 \begin_layout LyX-Code
7441
7442 \backslash
7443 DeclareLaTeXClass{Report (Standard Class)}
7444 \end_layout
7445
7446 \begin_layout Standard
7447 to read
7448 \end_layout
7449
7450 \begin_layout LyX-Code
7451
7452 \backslash
7453 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7454 \end_layout
7455
7456 \begin_layout Standard
7457 Then add:
7458 \end_layout
7459
7460 \begin_layout LyX-Code
7461 Preamble 
7462 \begin_inset Newline newline
7463 \end_inset
7464
7465     
7466 \backslash
7467 usepackage{myclass}
7468 \begin_inset Newline newline
7469 \end_inset
7470
7471 EndPreamble
7472 \end_layout
7473
7474 \begin_layout Standard
7475 near the top of the file.
7476 \end_layout
7477
7478 \begin_layout Standard
7479 Start \SpecialChar LyX
7480  and select 
7481 \begin_inset Flex Noun
7482 status collapsed
7483
7484 \begin_layout Plain Layout
7485 Tools\SpecialChar menuseparator
7486 Reconfigure
7487 \end_layout
7488
7489 \end_inset
7490
7491 .
7492  Then restart \SpecialChar LyX
7493  and try creating a new document.
7494  You should see "
7495 \begin_inset Flex Noun
7496 status collapsed
7497
7498 \begin_layout Plain Layout
7499 Report (My Class)
7500 \end_layout
7501
7502 \end_inset
7503
7504 " as a document class option in the 
7505 \begin_inset Flex Noun
7506 status collapsed
7507
7508 \begin_layout Plain Layout
7509 Document\SpecialChar menuseparator
7510 Settings
7511 \end_layout
7512
7513 \end_inset
7514
7515  dialog.
7516  It is likely that some of the sectioning commands and such in your new
7517  class will work differently from how they worked in the base class—
7518 \begin_inset Flex Code
7519 status collapsed
7520
7521 \begin_layout Plain Layout
7522 report
7523 \end_layout
7524
7525 \end_inset
7526
7527  in this example—so you can fiddle around with the settings for the different
7528  sections if you wish.
7529  The layout information for sections is contained in 
7530 \begin_inset Flex Code
7531 status collapsed
7532
7533 \begin_layout Plain Layout
7534 stdsections.inc
7535 \end_layout
7536
7537 \end_inset
7538
7539 , but you do not need to copy and change this file.
7540  Instead, you can simply add your changes to your layout file, after the
7541  line 
7542 \begin_inset Flex Code
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546 Input stdclass.inc
7547 \end_layout
7548
7549 \end_inset
7550
7551 , which itself includes 
7552 \begin_inset Flex Code
7553 status collapsed
7554
7555 \begin_layout Plain Layout
7556 stdsections.inc
7557 \end_layout
7558
7559 \end_inset
7560
7561 .
7562  For example, you might add these lines:
7563 \end_layout
7564
7565 \begin_layout LyX-Code
7566 Style Chapter
7567 \end_layout
7568
7569 \begin_layout LyX-Code
7570     Font
7571 \end_layout
7572
7573 \begin_layout LyX-Code
7574         Family Sans
7575 \end_layout
7576
7577 \begin_layout LyX-Code
7578     EndFont
7579 \end_layout
7580
7581 \begin_layout LyX-Code
7582 End
7583 \end_layout
7584
7585 \begin_layout Standard
7586 to change the font for chapter headings to sans-serif.
7587  This will override (or, in this case, add to) the existing declaration
7588  for the Chapter style.
7589  
7590 \end_layout
7591
7592 \begin_layout Standard
7593 Your new package may also provide commands or environments not present in
7594  the base class.
7595  In this case, you will want to add these to the layout file.
7596  See 
7597 \begin_inset CommandInset ref
7598 LatexCommand ref
7599 reference "sec:TextClass"
7600
7601 \end_inset
7602
7603  for information on how to do so.
7604 \end_layout
7605
7606 \begin_layout Standard
7607 If 
7608 \begin_inset Flex Noun
7609 status collapsed
7610
7611 \begin_layout Plain Layout
7612 myclass.sty
7613 \end_layout
7614
7615 \end_inset
7616
7617  can be used with several different document classes, and even if it cannot,
7618  you might find it easiest just to write a module that you can load with
7619  the base class.
7620  The simplest possible such module would be:
7621 \end_layout
7622
7623 \begin_layout LyX-Code
7624 #
7625 \backslash
7626 DeclareLyXModule{My Class} 
7627 \end_layout
7628
7629 \begin_layout LyX-Code
7630 #DescriptionBegin 
7631 \end_layout
7632
7633 \begin_layout LyX-Code
7634 #Support for myclass.sty.
7635 \end_layout
7636
7637 \begin_layout LyX-Code
7638 #DescriptionEnd
7639 \begin_inset Newline newline
7640 \end_inset
7641
7642
7643 \end_layout
7644
7645 \begin_layout LyX-Code
7646 Format 
7647 \begin_inset Info
7648 type  "lyxinfo"
7649 arg   "layoutformat"
7650 \end_inset
7651
7652
7653 \begin_inset Newline newline
7654 \end_inset
7655
7656
7657 \end_layout
7658
7659 \begin_layout LyX-Code
7660 Preamble
7661 \begin_inset Newline newline
7662 \end_inset
7663
7664     
7665 \backslash
7666 usepackage{myclass}
7667 \begin_inset Newline newline
7668 \end_inset
7669
7670 EndPreamble
7671 \end_layout
7672
7673 \begin_layout Standard
7674 A more complex module might modify the behavior of some existing constructs
7675  or define some new ones.
7676  Again, see 
7677 \begin_inset CommandInset ref
7678 LatexCommand ref
7679 reference "sec:TextClass"
7680
7681 \end_inset
7682
7683  for discussion.
7684 \end_layout
7685
7686 \begin_layout Subsection
7687 Layout for 
7688 \begin_inset Flex Noun
7689 status collapsed
7690
7691 \begin_layout Plain Layout
7692 .cls
7693 \end_layout
7694
7695 \end_inset
7696
7697  files
7698 \end_layout
7699
7700 \begin_layout Standard
7701 There are two possibilities here.
7702  One is that the class file is itself based upon an existing document class.
7703  For example, many thesis classes are based upon 
7704 \begin_inset Flex Noun
7705 status collapsed
7706
7707 \begin_layout Plain Layout
7708 book.cls
7709 \end_layout
7710
7711 \end_inset
7712
7713 .
7714  To see whether yours is, look for a line like
7715 \end_layout
7716
7717 \begin_layout LyX-Code
7718
7719 \backslash
7720 LoadClass{book}
7721 \end_layout
7722
7723 \begin_layout Standard
7724 in the file.
7725  If so, then you may proceed largely as in the previous section, though
7726  the 
7727 \begin_inset Flex Code
7728 status collapsed
7729
7730 \begin_layout Plain Layout
7731 Declare\SpecialChar LaTeX
7732 Class
7733 \end_layout
7734
7735 \end_inset
7736
7737  line will be different.
7738  If your new class is 
7739 \begin_inset Flex Code
7740 status collapsed
7741
7742 \begin_layout Plain Layout
7743 thesis
7744 \end_layout
7745
7746 \end_inset
7747
7748  and it is based upon 
7749 \begin_inset Flex Code
7750 status collapsed
7751
7752 \begin_layout Plain Layout
7753 book
7754 \end_layout
7755
7756 \end_inset
7757
7758 , then the line should read:
7759 \begin_inset Foot
7760 status collapsed
7761
7762 \begin_layout Plain Layout
7763 And it will be easiest if you save the file to 
7764 \begin_inset Flex Code
7765 status collapsed
7766
7767 \begin_layout Plain Layout
7768 thesis.layout
7769 \end_layout
7770
7771 \end_inset
7772
7773 : \SpecialChar LyX
7774  assumes that the document class has the same name as the layout file.
7775  
7776 \end_layout
7777
7778 \end_inset
7779
7780
7781 \end_layout
7782
7783 \begin_layout LyX-Code
7784
7785 \backslash
7786 DeclareLaTeXClass[thesis,book]{thesis}
7787 \end_layout
7788
7789 \begin_layout Standard
7790 If, on the other hand, the new class is not based upon an existing class,
7791  you will probably have to 
7792 \begin_inset Quotes eld
7793 \end_inset
7794
7795 roll your own
7796 \begin_inset Quotes erd
7797 \end_inset
7798
7799  layout.
7800  We strongly suggest copying an existing layout file which uses a similar
7801  \SpecialChar LaTeX
7802  class and then modifying it, if you can do so.
7803  At least use an existing file as a starting point so you can find out what
7804  items you need to worry about.
7805  Again, the specifics are covered below.
7806 \end_layout
7807
7808 \begin_layout Subsection
7809 Creating templates
7810 \begin_inset CommandInset label
7811 LatexCommand label
7812 name "subsec:Creating-Templates"
7813
7814 \end_inset
7815
7816
7817 \end_layout
7818
7819 \begin_layout Standard
7820 Once you have written a layout file for a new document class, you might
7821  want to consider writing a 
7822 \emph on
7823 template
7824 \emph default
7825  for it, too.
7826  A template acts as a kind of tutorial for your layout, showing how it might
7827  be used, though containing dummy content.
7828  You can of course look at the various templates included with \SpecialChar LyX
7829  for ideas.
7830 \end_layout
7831
7832 \begin_layout Standard
7833 Templates are created just like usual documents: using \SpecialChar LyX
7834 .
7835  The only difference is that usual documents contain all possible settings,
7836  including the font scheme and the paper size.
7837  Usually a user doesn't want a template to overwrite his preferred settings
7838  for such parameters.
7839  For that reason, the designer of a template should remove the corresponding
7840  commands like 
7841 \begin_inset Flex Code
7842 status collapsed
7843
7844 \begin_layout Plain Layout
7845
7846 \backslash
7847 font_roman
7848 \end_layout
7849
7850 \end_inset
7851
7852  or 
7853 \begin_inset Flex Code
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857
7858 \backslash
7859 papersize
7860 \end_layout
7861
7862 \end_inset
7863
7864  from the template \SpecialChar LyX
7865  file.
7866  This can be done with any simple text-editor, for example 
7867 \begin_inset Flex Code
7868 status collapsed
7869
7870 \begin_layout Plain Layout
7871 vi
7872 \end_layout
7873
7874 \end_inset
7875
7876  or 
7877 \begin_inset Flex Code
7878 status collapsed
7879
7880 \begin_layout Plain Layout
7881 notepad
7882 \end_layout
7883
7884 \end_inset
7885
7886 .
7887 \end_layout
7888
7889 \begin_layout Standard
7890 Put the edited template files you create in 
7891 \begin_inset Flex Code
7892 status collapsed
7893
7894 \begin_layout Plain Layout
7895 UserDir/templates/
7896 \end_layout
7897
7898 \end_inset
7899
7900 , copy the ones you use from the global template directory in 
7901 \begin_inset Flex Code
7902 status collapsed
7903
7904 \begin_layout Plain Layout
7905 LyXDir/templates/
7906 \end_layout
7907
7908 \end_inset
7909
7910  to the same place, and redefine the template path in the 
7911 \begin_inset Flex Noun
7912 status collapsed
7913
7914 \begin_layout Plain Layout
7915 Tools\SpecialChar menuseparator
7916 Preferences\SpecialChar menuseparator
7917 Paths
7918 \end_layout
7919
7920 \end_inset
7921
7922  dialog.
7923 \end_layout
7924
7925 \begin_layout Standard
7926 Note, by the way, that there is a template which has a particular meaning:
7927 \begin_inset Newline linebreak
7928 \end_inset
7929
7930
7931 \begin_inset Flex Code
7932 status collapsed
7933
7934 \begin_layout Plain Layout
7935 defaults.lyx
7936 \end_layout
7937
7938 \end_inset
7939
7940 .
7941  This template is loaded every time you create a new document with 
7942 \begin_inset Flex Noun
7943 status collapsed
7944
7945 \begin_layout Plain Layout
7946 File\SpecialChar menuseparator
7947 New
7948 \end_layout
7949
7950 \end_inset
7951
7952  in order to provide useful defaults.
7953  To create this template from inside \SpecialChar LyX
7954 , all you have to do is to open a document
7955  with the correct settings, and use the 
7956 \begin_inset Flex Noun
7957 status collapsed
7958
7959 \begin_layout Plain Layout
7960 Save as Document Defaults
7961 \end_layout
7962
7963 \end_inset
7964
7965  button.
7966 \end_layout
7967
7968 \begin_layout Subsection
7969 Upgrading old layout files
7970 \end_layout
7971
7972 \begin_layout Standard
7973 The format of layout files changes with each \SpecialChar LyX
7974  release, so old layout files
7975  need to be converted to the new format.
7976  If \SpecialChar LyX
7977  reads a layout file in an older format, it automatically calls the
7978  script 
7979 \begin_inset Flex Code
7980 status collapsed
7981
7982 \begin_layout Plain Layout
7983 layout2layout.py
7984 \end_layout
7985
7986 \end_inset
7987
7988  to convert it to a temporary file in current format.
7989  The original file is left untouched.
7990  If you use the layout file often, then, you may want to convert it permanently,
7991  so that \SpecialChar LyX
7992  does not have to do so itself every time.
7993  To do this, you can call the converter manually:
7994 \end_layout
7995
7996 \begin_layout Enumerate
7997 rename the file 
7998 \begin_inset Flex Code
7999 status collapsed
8000
8001 \begin_layout Plain Layout
8002 myclass.layout
8003 \end_layout
8004
8005 \end_inset
8006
8007  to 
8008 \begin_inset Flex Code
8009 status collapsed
8010
8011 \begin_layout Plain Layout
8012 myclass.old
8013 \end_layout
8014
8015 \end_inset
8016
8017
8018 \end_layout
8019
8020 \begin_layout Enumerate
8021 Call the command
8022 \begin_inset Newline newline
8023 \end_inset
8024
8025
8026 \begin_inset Flex Code
8027 status collapsed
8028
8029 \begin_layout Plain Layout
8030 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8031 \end_layout
8032
8033 \end_inset
8034
8035
8036 \begin_inset Newline newline
8037 \end_inset
8038
8039 where 
8040 \begin_inset Flex Code
8041 status collapsed
8042
8043 \begin_layout Plain Layout
8044 LyXDir
8045 \end_layout
8046
8047 \end_inset
8048
8049  is the name of your \SpecialChar LyX
8050  system directory.
8051 \end_layout
8052
8053 \begin_layout Standard
8054 Note that manual conversion does not affect included files, so these will
8055  have to be converted separately.
8056 \end_layout
8057
8058 \begin_layout Subsection
8059 \begin_inset CommandInset label
8060 LatexCommand label
8061 name "subsec:Cite-Engine-Files"
8062
8063 \end_inset
8064
8065 Cite engine files
8066 \end_layout
8067
8068 \begin_layout Standard
8069 A specific form of layout files are the so-called 
8070 \begin_inset Flex Code
8071 status collapsed
8072
8073 \begin_layout Plain Layout
8074 *.citeengine
8075 \end_layout
8076
8077 \end_inset
8078
8079  files that are located in the 
8080 \begin_inset Flex Code
8081 status collapsed
8082
8083 \begin_layout Plain Layout
8084 citeengines/
8085 \end_layout
8086
8087 \end_inset
8088
8089  sub-directory.
8090  Their purpose is to define the specifics of \SpecialChar LaTeX
8091  packages aimed at bibliography
8092  generation, such as 
8093 \family sans
8094 natbib
8095 \family default
8096 ,
8097 \family sans
8098  jurabib
8099 \family default
8100  or 
8101 \family sans
8102 biblatex
8103 \family default
8104 , but also the way how normal Bib\SpecialChar TeX
8105  citations (without additional packages)
8106  are handled in \SpecialChar LyX
8107  is defined in such a file.
8108  
8109 \end_layout
8110
8111 \begin_layout Standard
8112 More specifically, it is defined which packages \SpecialChar LyX
8113  needs to load, which citation
8114  commands are available, how these are to be displayed in \SpecialChar LyX
8115  (in the workarea,
8116  the dialogs, the context menus) as well as in the XHTML and plain text
8117  output.
8118  Furthermore, the files specify available style variants (author-year, numerical
8119 , etc.) and their specifics.
8120  The cite engine files are also used to generate the options that are available
8121  in 
8122 \family sans
8123 Document\SpecialChar menuseparator
8124 Settings\SpecialChar menuseparator
8125 Bibliography\SpecialChar menuseparator
8126 Style engine
8127 \family default
8128 .
8129 \end_layout
8130
8131 \begin_layout Standard
8132 Even though a cite engine file is essentially a normal layout file that
8133  could theoretically include any layout information, it usually primarily
8134  includes some specific parameters such as 
8135 \begin_inset Flex Code
8136 status collapsed
8137
8138 \begin_layout Plain Layout
8139 MaxCiteNames
8140 \end_layout
8141
8142 \end_inset
8143
8144
8145 \begin_inset Flex Code
8146 status collapsed
8147
8148 \begin_layout Plain Layout
8149 CiteFramework
8150 \end_layout
8151
8152 \end_inset
8153
8154
8155 \begin_inset Flex Code
8156 status collapsed
8157
8158 \begin_layout Plain Layout
8159 CiteEngine
8160 \end_layout
8161
8162 \end_inset
8163
8164  and 
8165 \begin_inset Flex Code
8166 status collapsed
8167
8168 \begin_layout Plain Layout
8169 CiteFormat
8170 \end_layout
8171
8172 \end_inset
8173
8174  blocks.
8175  The syntax of the latter two is described in 
8176 \begin_inset CommandInset ref
8177 LatexCommand ref
8178 reference "subsec:Citation-engine-description"
8179 plural "false"
8180 caps "false"
8181 noprefix "false"
8182
8183 \end_inset
8184
8185  and 
8186 \begin_inset CommandInset ref
8187 LatexCommand ref
8188 reference "subsec:Citation-format-description"
8189
8190 \end_inset
8191
8192 , as well as in the files themselves.
8193 \end_layout
8194
8195 \begin_layout Section
8196 \begin_inset CommandInset label
8197 LatexCommand label
8198 name "sec:TextClass"
8199
8200 \end_inset
8201
8202 The layout file format
8203 \end_layout
8204
8205 \begin_layout Standard
8206 The following sections describe how layout files are structured and written.
8207  Our advice is to go slowly, save and test often.
8208  It is really not that hard, except that the multitude of options can become
8209  overwhelming, especially if you try to check out too many at once.
8210  It becomes easier if you use existing layouts of \SpecialChar LyX
8211  as examples/reference
8212  or if you modify an existing layout to your needs.
8213 \end_layout
8214
8215 \begin_layout Standard
8216 Note that all the tags used in layout files are case-insensitive.
8217  This means that 
8218 \begin_inset Flex Code
8219 status collapsed
8220
8221 \begin_layout Plain Layout
8222 Style
8223 \end_layout
8224
8225 \end_inset
8226
8227
8228 \begin_inset Flex Code
8229 status collapsed
8230
8231 \begin_layout Plain Layout
8232 style
8233 \end_layout
8234
8235 \end_inset
8236
8237  and 
8238 \begin_inset Flex Code
8239 status collapsed
8240
8241 \begin_layout Plain Layout
8242 StYlE
8243 \end_layout
8244
8245 \end_inset
8246
8247  are really the same tag.
8248  The possible arguments are printed in brackets after the tag's name.
8249  The default argument is typeset 
8250 \begin_inset Flex Code
8251 status collapsed
8252
8253 \begin_layout Plain Layout
8254
8255 \emph on
8256 emphasized
8257 \end_layout
8258
8259 \end_inset
8260
8261 .
8262  If the argument has a data type like 
8263 \begin_inset Quotes eld
8264 \end_inset
8265
8266 string
8267 \begin_inset Quotes erd
8268 \end_inset
8269
8270  or 
8271 \begin_inset Quotes eld
8272 \end_inset
8273
8274 float
8275 \begin_inset Quotes erd
8276 \end_inset
8277
8278 , the default is shown like this: 
8279 \begin_inset Flex Code
8280 status collapsed
8281
8282 \begin_layout Plain Layout
8283 float=
8284 \emph on
8285 default
8286 \end_layout
8287
8288 \end_inset
8289
8290 .
8291 \end_layout
8292
8293 \begin_layout Subsection
8294 The document class declaration and classification
8295 \end_layout
8296
8297 \begin_layout Standard
8298 Lines in a layout file which begin with 
8299 \begin_inset Flex Code
8300 status collapsed
8301
8302 \begin_layout Plain Layout
8303 #
8304 \end_layout
8305
8306 \end_inset
8307
8308  are comments.
8309  There is one exception to this rule.
8310  All 
8311 \begin_inset Flex Code
8312 status collapsed
8313
8314 \begin_layout Plain Layout
8315 *.layout
8316 \end_layout
8317
8318 \end_inset
8319
8320  files should begin with lines like:
8321 \end_layout
8322
8323 \begin_layout LyX-Code
8324
8325 \size small
8326 #% Do not delete the line below; configure depends on this 
8327 \end_layout
8328
8329 \begin_layout LyX-Code
8330
8331 \size small
8332 #  
8333 \backslash
8334 DeclareLaTeXClass{Article (Standard Class)}
8335 \end_layout
8336
8337 \begin_layout LyX-Code
8338
8339 \size small
8340 #  
8341 \backslash
8342 DeclareCategory{Articles}
8343 \end_layout
8344
8345 \begin_layout Standard
8346 The second and third lines are used when you (re)configure \SpecialChar LyX
8347 .
8348  The layout file is read by the \SpecialChar LaTeX
8349  script 
8350 \begin_inset Flex Code
8351 status collapsed
8352
8353 \begin_layout Plain Layout
8354 chkconfig.ltx
8355 \end_layout
8356
8357 \end_inset
8358
8359 , in a special mode where 
8360 \begin_inset Flex Code
8361 status collapsed
8362
8363 \begin_layout Plain Layout
8364 #
8365 \end_layout
8366
8367 \end_inset
8368
8369  is ignored.
8370  The first line is just a \SpecialChar LaTeX
8371  comment, the second one contains the mandatory
8372  declaration of the text class and the third line contains the optional
8373  classification of the class.
8374  If these lines appear in a file named 
8375 \begin_inset Flex Code
8376 status collapsed
8377
8378 \begin_layout Plain Layout
8379 article.layout
8380 \end_layout
8381
8382 \end_inset
8383
8384 , then they define a text class of name 
8385 \begin_inset Flex Code
8386 status collapsed
8387
8388 \begin_layout Plain Layout
8389 article
8390 \end_layout
8391
8392 \end_inset
8393
8394  (the name of the layout file) which uses the \SpecialChar LaTeX
8395  document class 
8396 \begin_inset Flex Code
8397 status collapsed
8398
8399 \begin_layout Plain Layout
8400 article.cls
8401 \end_layout
8402
8403 \end_inset
8404
8405  (the default is to use the same name as the layout).
8406  The string 
8407 \begin_inset Quotes eld
8408 \end_inset
8409
8410 Article (Standard Class)
8411 \begin_inset Quotes erd
8412 \end_inset
8413
8414  that appears above is used as a description of the text class in the 
8415 \begin_inset Flex Noun
8416 status collapsed
8417
8418 \begin_layout Plain Layout
8419 Document\SpecialChar menuseparator
8420 Settings
8421 \end_layout
8422
8423 \end_inset
8424
8425  dialog.
8426  The category (
8427 \begin_inset Quotes eld
8428 \end_inset
8429
8430 Articles
8431 \begin_inset Quotes erd
8432 \end_inset
8433
8434  in the example) is also used in the 
8435 \begin_inset Flex Noun
8436 status collapsed
8437
8438 \begin_layout Plain Layout
8439 Document\SpecialChar menuseparator
8440 Settings
8441 \end_layout
8442
8443 \end_inset
8444
8445  dialog: the text classes are grouped by these categories (which are usually
8446  genres, so typical categories are 
8447 \begin_inset Quotes eld
8448 \end_inset
8449
8450 Articles
8451 \begin_inset Quotes erd
8452 \end_inset
8453
8454
8455 \begin_inset Quotes eld
8456 \end_inset
8457
8458 Books
8459 \begin_inset Quotes erd
8460 \end_inset
8461
8462
8463 \begin_inset Quotes eld
8464 \end_inset
8465
8466 Reports
8467 \begin_inset Quotes erd
8468 \end_inset
8469
8470
8471 \begin_inset Quotes eld
8472 \end_inset
8473
8474 Letters
8475 \begin_inset Quotes erd
8476 \end_inset
8477
8478
8479 \begin_inset Quotes eld
8480 \end_inset
8481
8482 Presentations
8483 \begin_inset Quotes erd
8484 \end_inset
8485
8486
8487 \begin_inset Quotes eld
8488 \end_inset
8489
8490 Curricula Vitae
8491 \begin_inset Quotes erd
8492 \end_inset
8493
8494  etc.).
8495  If no category has been declared, the class will be put in the 
8496 \begin_inset Quotes eld
8497 \end_inset
8498
8499 Uncategorized
8500 \begin_inset Quotes erd
8501 \end_inset
8502
8503  group.
8504 \end_layout
8505
8506 \begin_layout Standard
8507 Let's assume that you wrote your own text class that uses the 
8508 \begin_inset Flex Code
8509 status collapsed
8510
8511 \begin_layout Plain Layout
8512 article.cls
8513 \end_layout
8514
8515 \end_inset
8516
8517  document class, but where you changed the appearance of the section headings.
8518  If you put it in a file 
8519 \begin_inset Flex Code
8520 status collapsed
8521
8522 \begin_layout Plain Layout
8523 myarticle.layout
8524 \end_layout
8525
8526 \end_inset
8527
8528 , the header of this file should be:
8529 \end_layout
8530
8531 \begin_layout LyX-Code
8532
8533 \size small
8534 #% Do not delete the line below; configure depends on this 
8535 \end_layout
8536
8537 \begin_layout LyX-Code
8538
8539 \size small
8540 #  
8541 \backslash
8542 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8543 \end_layout
8544
8545 \begin_layout LyX-Code
8546
8547 \size small
8548 #  
8549 \backslash
8550 DeclareCategory{Articles}
8551 \end_layout
8552
8553 \begin_layout Standard
8554 This declares a text class 
8555 \begin_inset Flex Code
8556 status collapsed
8557
8558 \begin_layout Plain Layout
8559 myarticle
8560 \end_layout
8561
8562 \end_inset
8563
8564 , associated with the \SpecialChar LaTeX
8565  document class 
8566 \begin_inset Flex Code
8567 status collapsed
8568
8569 \begin_layout Plain Layout
8570 article.cls
8571 \end_layout
8572
8573 \end_inset
8574
8575  and described as 
8576 \begin_inset Quotes eld
8577 \end_inset
8578
8579 Article (with My Own Headings)
8580 \begin_inset Quotes erd
8581 \end_inset
8582
8583 .
8584  If your text class depends on several packages, you can declare it as:
8585 \end_layout
8586
8587 \begin_layout LyX-Code
8588
8589 \size small
8590 #% Do not delete the line below; configure depends on this 
8591 \end_layout
8592
8593 \begin_layout LyX-Code
8594
8595 \size small
8596 #  
8597 \backslash
8598 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8599 \end_layout
8600
8601 \begin_layout LyX-Code
8602
8603 \size small
8604 #  
8605 \backslash
8606 DeclareCategory{Articles}
8607 \end_layout
8608
8609 \begin_layout Standard
8610 This indicates that your text class uses the 
8611 \begin_inset Flex Code
8612 status collapsed
8613
8614 \begin_layout Plain Layout
8615 foo.sty
8616 \end_layout
8617
8618 \end_inset
8619
8620  package.
8621  
8622 \change_deleted 5863208 1594239179
8623 Finally, it is also possible to declare classes for DocBook code.
8624  Typical declarations will look like:
8625 \end_layout
8626
8627 \begin_layout LyX-Code
8628
8629 \change_deleted 5863208 1594239179
8630
8631 \size small
8632 #% Do not delete the line below; configure depends on this 
8633 \end_layout
8634
8635 \begin_layout LyX-Code
8636
8637 \change_deleted 5863208 1594239179
8638
8639 \size small
8640
8641 \backslash
8642 DeclareDocBookClass[article]{SGML (DocBook Article)}
8643 \end_layout
8644
8645 \begin_layout LyX-Code
8646
8647 \change_deleted 5863208 1594239179
8648
8649 \size small
8650
8651 \backslash
8652 DeclareCategory{Articles (DocBook)}
8653 \change_unchanged
8654
8655 \end_layout
8656
8657 \begin_layout Standard
8658 Note that these declarations can also be given an optional parameter declaring
8659  the name of the document class (but not a list).
8660 \end_layout
8661
8662 \begin_layout Standard
8663 So, to be as explicit as possible, the form of the layout declaration is:
8664 \end_layout
8665
8666 \begin_layout LyX-Code
8667
8668 \size small
8669 #  
8670 \backslash
8671 DeclareLaTeXClass[class,package.sty]{layout description}
8672 \end_layout
8673
8674 \begin_layout LyX-Code
8675
8676 \size small
8677 #  
8678 \backslash
8679 DeclareCategory{category}
8680 \end_layout
8681
8682 \begin_layout Standard
8683 The class need only be specified if the name of the \SpecialChar LaTeX
8684  class file and the
8685  name of the layout file are different or if there are packages to load.
8686  If the name of the class file is not specified, then \SpecialChar LyX
8687  will simply assume
8688  that it is the same as the name of the layout file.
8689 \end_layout
8690
8691 \begin_layout Standard
8692 When the text class has been modified to your taste, all you have to do
8693  is to copy it either to 
8694 \begin_inset Flex Code
8695 status collapsed
8696
8697 \begin_layout Plain Layout
8698 LyXDir/layouts/
8699 \end_layout
8700
8701 \end_inset
8702
8703  or to 
8704 \begin_inset Flex Code
8705 status collapsed
8706
8707 \begin_layout Plain Layout
8708 UserDir/layouts
8709 \end_layout
8710
8711 \end_inset
8712
8713 , run 
8714 \begin_inset Flex Noun
8715 status collapsed
8716
8717 \begin_layout Plain Layout
8718 Tools\SpecialChar menuseparator
8719 Reconfigure
8720 \end_layout
8721
8722 \end_inset
8723
8724 , exit \SpecialChar LyX
8725  and restart.
8726  Then your new text class should be available along with the others.
8727 \end_layout
8728
8729 \begin_layout Standard
8730 Once the layout file is installed, you can edit it and see your changes
8731  without having to reconfigure or to restart \SpecialChar LyX
8732 .
8733 \begin_inset Foot
8734 status collapsed
8735
8736 \begin_layout Plain Layout
8737 In versions of \SpecialChar LyX
8738  prior to 1.6, this was not true.
8739  As a result, editing layout files was very time consuming, since you had
8740  constantly to restart \SpecialChar LyX
8741  to see changes.
8742 \end_layout
8743
8744 \end_inset
8745
8746  You can force a reload of the current layout by using the \SpecialChar LyX
8747  function 
8748 \begin_inset Flex Noun
8749 status collapsed
8750
8751 \begin_layout Plain Layout
8752 layout-reload
8753 \end_layout
8754
8755 \end_inset
8756
8757 .
8758  There is no default binding for this function—though, of course, you can
8759  bind it to a key yourself.
8760  But you will normally use this function simply by entering it in the mini-buffe
8761 r.
8762  
8763 \end_layout
8764
8765 \begin_layout Standard
8766
8767 \emph on
8768 Warning
8769 \emph default
8770
8771 \begin_inset Flex Noun
8772 status collapsed
8773
8774 \begin_layout Plain Layout
8775 layout-reload
8776 \end_layout
8777
8778 \end_inset
8779
8780  is very much an `advanced feature'.
8781  It is 
8782 \emph on
8783 strongly
8784 \emph default
8785  recommended that you save your work before using this function.
8786  In fact, it is 
8787 \emph on
8788 strongly
8789 \emph default
8790  recommended that you not attempt to edit layout information while simultaneousl
8791 y working on a document that you care about.
8792  Use a test document.
8793  Syntax errors and the like in your layout file could cause peculiar behavior.
8794  In particular, such errors could cause \SpecialChar LyX
8795  to regard the current layout as
8796  invalid and to attempt to switch to some other layout.
8797 \begin_inset Foot
8798 status collapsed
8799
8800 \begin_layout Plain Layout
8801 Really bad syntax errors may even caused \SpecialChar LyX
8802  to exit.
8803  This is because certain sorts of errors may make \SpecialChar LyX
8804  unable to read 
8805 \emph on
8806 any
8807 \emph default
8808  layout information.
8809  Please be careful.
8810 \end_layout
8811
8812 \end_inset
8813
8814  The \SpecialChar LyX
8815  team strives to keep \SpecialChar LyX
8816  stable in such situations, but safe is better
8817  than sorry.
8818 \begin_inset Foot
8819 status collapsed
8820
8821 \begin_layout Plain Layout
8822 While we're giving advice: make regular backups.
8823  And be nice to your mother.
8824 \end_layout
8825
8826 \end_inset
8827
8828
8829 \end_layout
8830
8831 \begin_layout Subsection
8832 The Module declaration
8833 \end_layout
8834
8835 \begin_layout Standard
8836 A module must begin with a line like the following:
8837 \end_layout
8838
8839 \begin_layout LyX-Code
8840 #
8841 \backslash
8842 DeclareLyXModule[endnotes.sty]{Endnotes}
8843 \change_inserted -712698321 1554395911
8844
8845 \end_layout
8846
8847 \begin_layout LyX-Code
8848
8849 \change_inserted -712698321 1554395924
8850
8851 \size small
8852 #
8853 \backslash
8854 DeclareCategory{Foot- and Endnotes}
8855 \change_deleted -712698321 1554395911
8856
8857 \size default
8858  
8859 \change_unchanged
8860
8861 \end_layout
8862
8863 \begin_layout Standard
8864 The mandatory argument
8865 \change_inserted -712698321 1554395956
8866  of 
8867 \family typewriter
8868
8869 \backslash
8870 DeclareLyXModule
8871 \change_unchanged
8872
8873 \family default
8874 , in curly brackets, is the name of the module, as it should appear in 
8875 \begin_inset Flex Noun
8876 status collapsed
8877
8878 \begin_layout Plain Layout
8879 Document\SpecialChar menuseparator
8880 Settings\SpecialChar menuseparator
8881 Modules
8882 \end_layout
8883
8884 \end_inset
8885
8886 .
8887  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8888  packages
8889  on which the module depends.
8890  It is also possible to use the form 
8891 \begin_inset Flex Noun
8892 status collapsed
8893
8894 \begin_layout Plain Layout
8895 from->to
8896 \end_layout
8897
8898 \end_inset
8899
8900  as an optional argument, which declares that the module can only be used
8901  when there exists a conversion chain between the formats `
8902 \begin_inset Flex Code
8903 status collapsed
8904
8905 \begin_layout Plain Layout
8906 from
8907 \end_layout
8908
8909 \end_inset
8910
8911 ' and `
8912 \begin_inset Flex Code
8913 status collapsed
8914
8915 \begin_layout Plain Layout
8916 to
8917 \end_layout
8918
8919 \end_inset
8920
8921 '.
8922
8923 \change_inserted -712698321 1554396133
8924  The 
8925 \family typewriter
8926
8927 \backslash
8928 DeclareCategory
8929 \family default
8930  declaration is not strictly mandatory, but you should add it, since it
8931  is helpful to find the module.
8932  Please have a look at the existing module categories and if appropriate,
8933  use one of those.
8934 \change_unchanged
8935
8936 \end_layout
8937
8938 \begin_layout Standard
8939 The module 
8940 \change_inserted -712698321 1554395988
8941 and category 
8942 \change_unchanged
8943 declaration should then be followed by lines like the following:
8944 \begin_inset Foot
8945 status collapsed
8946
8947 \begin_layout Plain Layout
8948 Preferably in English if the module should be published with \SpecialChar LyX
8949 .
8950  This description will appear in the list of messages to be translated and
8951  will be thus translated with the next interface update.
8952 \end_layout
8953
8954 \end_inset
8955
8956
8957 \end_layout
8958
8959 \begin_layout LyX-Code
8960 #DescriptionBegin 
8961 \end_layout
8962
8963 \begin_layout LyX-Code
8964 #Adds an endnote command, in addition to footnotes.
8965  
8966 \end_layout
8967
8968 \begin_layout LyX-Code
8969 #You will need to add  
8970 \backslash
8971 theendnotes in TeX code where you 
8972 \end_layout
8973
8974 \begin_layout LyX-Code
8975 #want the endnotes to appear.
8976  
8977 \end_layout
8978
8979 \begin_layout LyX-Code
8980 #DescriptionEnd 
8981 \end_layout
8982
8983 \begin_layout LyX-Code
8984 #Requires: somemodule | othermodule
8985 \end_layout
8986
8987 \begin_layout LyX-Code
8988 #Excludes: badmodule
8989 \end_layout
8990
8991 \begin_layout Standard
8992 The description is used in 
8993 \begin_inset Flex Noun
8994 status collapsed
8995
8996 \begin_layout Plain Layout
8997 Document\SpecialChar menuseparator
8998 Settings\SpecialChar menuseparator
8999 Modules
9000 \end_layout
9001
9002 \end_inset
9003
9004  to provide the user with information about what the module does.
9005  The 
9006 \begin_inset Flex Code
9007 status collapsed
9008
9009 \begin_layout Plain Layout
9010 Requires
9011 \end_layout
9012
9013 \end_inset
9014
9015  line is used to identify other modules with which this one must be used;
9016  the 
9017 \begin_inset Flex Code
9018 status collapsed
9019
9020 \begin_layout Plain Layout
9021 Excludes
9022 \end_layout
9023
9024 \end_inset
9025
9026  line is used to identify modules with which this one may not be used.
9027  Both are optional, and, as shown, multiple modules should be separated
9028  with the pipe symbol: |.
9029  Note that the required modules are treated disjunctively: 
9030 \emph on
9031 at least one
9032 \emph default
9033  of the required modules must be used.
9034  Similarly, 
9035 \emph on
9036 no
9037 \emph default
9038  excluded module may be used.
9039  Note that modules are identified here by their filenames without the 
9040 \begin_inset Flex Code
9041 status collapsed
9042
9043 \begin_layout Plain Layout
9044 .module
9045 \end_layout
9046
9047 \end_inset
9048
9049  extension.
9050  So 
9051 \begin_inset Flex Code
9052 status collapsed
9053
9054 \begin_layout Plain Layout
9055 somemodule
9056 \end_layout
9057
9058 \end_inset
9059
9060  is really 
9061 \begin_inset Flex Code
9062 status collapsed
9063
9064 \begin_layout Plain Layout
9065 somemodule.module
9066 \end_layout
9067
9068 \end_inset
9069
9070 .
9071 \end_layout
9072
9073 \begin_layout Subsection
9074 The CiteEngine file declaration
9075 \end_layout
9076
9077 \begin_layout Standard
9078 A cite engine file must begin with a line like the following:
9079 \end_layout
9080
9081 \begin_layout LyX-Code
9082 #
9083 \backslash
9084 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9085 \end_layout
9086
9087 \begin_layout Standard
9088 The mandatory argument, in curly brackets, is the name of the cite style,
9089  as it should appear in 
9090 \begin_inset Flex Noun
9091 status collapsed
9092
9093 \begin_layout Plain Layout
9094 Document\SpecialChar menuseparator
9095 Settings\SpecialChar menuseparator
9096 Bibliography
9097 \end_layout
9098
9099 \end_inset
9100
9101 .
9102  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
9103  packages
9104  on which the cite engine depends.
9105 \end_layout
9106
9107 \begin_layout Standard
9108 The cite engine declaration should then be followed by lines like the following:
9109 \begin_inset Foot
9110 status collapsed
9111
9112 \begin_layout Plain Layout
9113 Preferably in English if the module should be published with \SpecialChar LyX
9114 .
9115  This description will appear in the list of messages to be translated and
9116  will be thus translated with the next interface update.
9117 \end_layout
9118
9119 \end_inset
9120
9121
9122 \end_layout
9123
9124 \begin_layout LyX-Code
9125 # DescriptionBegin
9126 \end_layout
9127
9128 \begin_layout LyX-Code
9129 #   Biblatex supports many author-year and numerical styles.
9130 \end_layout
9131
9132 \begin_layout LyX-Code
9133 #   It is mainly aimed at the Humanities.
9134  It is highly
9135 \end_layout
9136
9137 \begin_layout LyX-Code
9138 #   customizable, fully localized and provides many features
9139 \end_layout
9140
9141 \begin_layout LyX-Code
9142 #   that are not possible with BibTeX.
9143  The use of 'biber' as
9144 \end_layout
9145
9146 \begin_layout LyX-Code
9147 #   bibliography processor is advised.
9148 \end_layout
9149
9150 \begin_layout LyX-Code
9151 # DescriptionEnd
9152 \end_layout
9153
9154 \begin_layout Standard
9155 The description is used in 
9156 \begin_inset Flex Noun
9157 status collapsed
9158
9159 \begin_layout Plain Layout
9160 Document\SpecialChar menuseparator
9161 Settings\SpecialChar menuseparator
9162 Bibliography
9163 \end_layout
9164
9165 \end_inset
9166
9167  to provide the user with information about the cite engine.
9168 \end_layout
9169
9170 \begin_layout Subsection
9171 Format number
9172 \end_layout
9173
9174 \begin_layout Standard
9175 The first non-comment line of any layout file, included file, or module
9176  
9177 \emph on
9178 must
9179 \emph default
9180  contain the file format number:
9181 \end_layout
9182
9183 \begin_layout Description
9184 \begin_inset Flex Code
9185 status collapsed
9186
9187 \begin_layout Plain Layout
9188 Format
9189 \end_layout
9190
9191 \end_inset
9192
9193  [
9194 \begin_inset Flex Code
9195 status collapsed
9196
9197 \begin_layout Plain Layout
9198 int
9199 \end_layout
9200
9201 \end_inset
9202
9203 ] The format number of the layout file.
9204 \end_layout
9205
9206 \begin_layout Standard
9207 This tag was introduced with \SpecialChar LyX
9208
9209 \begin_inset space ~
9210 \end_inset
9211
9212 1.4.0.
9213  Layout files from older \SpecialChar LyX
9214  versions do not have an explicit file format and
9215  are considered to have 
9216 \begin_inset Flex Code
9217 status collapsed
9218
9219 \begin_layout Plain Layout
9220 Format
9221 \begin_inset space ~
9222 \end_inset
9223
9224 1
9225 \end_layout
9226
9227 \end_inset
9228
9229 .
9230  The format for the present version of \SpecialChar LyX
9231  is format 60.
9232  But each version of \SpecialChar LyX
9233  is capable of reading earlier versions' layout files,
9234  just as they are capable of reading files produced by earlier versions
9235  of \SpecialChar LyX
9236 .
9237  There is, however, no provision for converting to earlier formats.
9238 \end_layout
9239
9240 \begin_layout Subsection
9241 \begin_inset CommandInset label
9242 LatexCommand label
9243 name "subsec:General-text-class"
9244
9245 \end_inset
9246
9247 General text class parameters
9248 \end_layout
9249
9250 \begin_layout Standard
9251 These are general parameters that govern the behavior of an entire document
9252  class.
9253  (This does 
9254 \emph on
9255 not
9256 \emph default
9257  mean that they must appear in 
9258 \begin_inset Flex Code
9259 status collapsed
9260
9261 \begin_layout Plain Layout
9262 .layout
9263 \end_layout
9264
9265 \end_inset
9266
9267  files rather than in modules.
9268  A module can contain any layout tag.)
9269 \end_layout
9270
9271 \begin_layout Description
9272
9273 \change_inserted -712698321 1526899478
9274 \begin_inset Flex Code
9275 status collapsed
9276
9277 \begin_layout Plain Layout
9278
9279 \change_inserted -712698321 1526898610
9280 AddToCiteEngine <engine>
9281 \change_unchanged
9282
9283 \end_layout
9284
9285 \end_inset
9286
9287  Extends the possibilities for displaying citation references.
9288  See 
9289 \begin_inset CommandInset ref
9290 LatexCommand ref
9291 reference "subsec:Citation-engine-description"
9292 plural "false"
9293 caps "false"
9294 noprefix "false"
9295
9296 \end_inset
9297
9298  for details.
9299  Must end with 
9300 \begin_inset Flex Code
9301 status collapsed
9302
9303 \begin_layout Plain Layout
9304
9305 \change_inserted -712698321 1526898823
9306 End
9307 \change_unchanged
9308
9309 \end_layout
9310
9311 \end_inset
9312
9313 .
9314 \end_layout
9315
9316 \begin_layout Description
9317 \begin_inset Flex Code
9318 status collapsed
9319
9320 \begin_layout Plain Layout
9321 AddToHTMLPreamble
9322 \end_layout
9323
9324 \end_inset
9325
9326  Adds information that will be output in the 
9327 \begin_inset Flex Code
9328 status collapsed
9329
9330 \begin_layout Plain Layout
9331 <head>
9332 \end_layout
9333
9334 \end_inset
9335
9336  block when the document is output to XHTML.
9337  Typically, this would be used to output CSS style information, but it can
9338  be used for anything that can appear in 
9339 \begin_inset Flex Code
9340 status collapsed
9341
9342 \begin_layout Plain Layout
9343 <head>
9344 \end_layout
9345
9346 \end_inset
9347
9348 .
9349  Must end with 
9350 \begin_inset Quotes eld
9351 \end_inset
9352
9353
9354 \begin_inset Flex Code
9355 status collapsed
9356
9357 \begin_layout Plain Layout
9358 EndPreamble
9359 \end_layout
9360
9361 \end_inset
9362
9363
9364 \begin_inset Quotes erd
9365 \end_inset
9366
9367 .
9368 \end_layout
9369
9370 \begin_layout Description
9371 \begin_inset Flex Code
9372 status collapsed
9373
9374 \begin_layout Plain Layout
9375 AddToPreamble
9376 \end_layout
9377
9378 \end_inset
9379
9380  Adds information to the document preamble.
9381  Must end with
9382 \begin_inset Newline newline
9383 \end_inset
9384
9385
9386 \begin_inset Quotes eld
9387 \end_inset
9388
9389
9390 \begin_inset Flex Code
9391 status collapsed
9392
9393 \begin_layout Plain Layout
9394 EndPreamble
9395 \end_layout
9396
9397 \end_inset
9398
9399
9400 \begin_inset Quotes erd
9401 \end_inset
9402
9403 .
9404 \change_inserted -712698321 1562592950
9405
9406 \end_layout
9407
9408 \begin_layout Description
9409
9410 \change_inserted -712698321 1562593040
9411 \begin_inset Flex Code
9412 status collapsed
9413
9414 \begin_layout Plain Layout
9415
9416 \change_inserted -712698321 1562592954
9417 BibInToc
9418 \change_unchanged
9419
9420 \end_layout
9421
9422 \end_inset
9423
9424  [
9425 \begin_inset Flex Code
9426 status collapsed
9427
9428 \begin_layout Plain Layout
9429
9430 \change_inserted -712698321 1562592950
9431
9432 \emph on
9433 0
9434 \change_unchanged
9435
9436 \end_layout
9437
9438 \end_inset
9439
9440 ,
9441 \begin_inset space \thinspace{}
9442 \end_inset
9443
9444
9445 \begin_inset Flex Code
9446 status collapsed
9447
9448 \begin_layout Plain Layout
9449
9450 \change_inserted -712698321 1562592950
9451 1
9452 \change_unchanged
9453
9454 \end_layout
9455
9456 \end_inset
9457
9458 ] If the document class adds the bibliography to the table of contents,
9459  add this option with value 
9460 \begin_inset Flex Code
9461 status collapsed
9462
9463 \begin_layout Plain Layout
9464
9465 \change_inserted -712698321 1562592996
9466 1
9467 \change_unchanged
9468
9469 \end_layout
9470
9471 \end_inset
9472
9473  (or 
9474 \begin_inset Flex Code
9475 status collapsed
9476
9477 \begin_layout Plain Layout
9478
9479 \change_inserted -712698321 1562593006
9480 true
9481 \change_unchanged
9482
9483 \end_layout
9484
9485 \end_inset
9486
9487 ).
9488  This prevents the bibliography from being added twice.
9489 \change_unchanged
9490
9491 \end_layout
9492
9493 \begin_layout Description
9494 \begin_inset Flex Code
9495 status collapsed
9496
9497 \begin_layout Plain Layout
9498 CiteEngine <engine>
9499 \end_layout
9500
9501 \end_inset
9502
9503  Defines the possibilities for displaying citation references.
9504  See 
9505 \begin_inset CommandInset ref
9506 LatexCommand ref
9507 reference "subsec:Citation-engine-description"
9508 plural "false"
9509 caps "false"
9510 noprefix "false"
9511
9512 \end_inset
9513
9514  for details.
9515  Must end with 
9516 \begin_inset Quotes eld
9517 \end_inset
9518
9519
9520 \begin_inset Flex Code
9521 status collapsed
9522
9523 \begin_layout Plain Layout
9524 End
9525 \end_layout
9526
9527 \end_inset
9528
9529
9530 \begin_inset Quotes erd
9531 \end_inset
9532
9533 .
9534  Primarily used in cite engine files (see 
9535 \begin_inset CommandInset ref
9536 LatexCommand ref
9537 reference "subsec:Cite-Engine-Files"
9538 plural "false"
9539 caps "false"
9540 noprefix "false"
9541
9542 \end_inset
9543
9544 ).
9545
9546 \change_inserted -712698321 1526898530
9547  Note that if you specify this in a layout file or module, any cite engine
9548  definition will be overridden.
9549  Also see 
9550 \begin_inset Flex Code
9551 status collapsed
9552
9553 \begin_layout Plain Layout
9554
9555 \change_inserted -712698321 1526898530
9556 AddToCiteEngine
9557 \change_unchanged
9558
9559 \end_layout
9560
9561 \end_inset
9562
9563 .
9564 \change_unchanged
9565
9566 \end_layout
9567
9568 \begin_layout Description
9569 \begin_inset Flex Code
9570 status collapsed
9571
9572 \begin_layout Plain Layout
9573 CiteFormat
9574 \end_layout
9575
9576 \end_inset
9577
9578  Defines formats for use in the display of bibliographic information.
9579  See 
9580 \begin_inset CommandInset ref
9581 LatexCommand ref
9582 reference "subsec:Citation-format-description"
9583
9584 \end_inset
9585
9586  for details.
9587  Must end with 
9588 \begin_inset Quotes eld
9589 \end_inset
9590
9591
9592 \begin_inset Flex Code
9593 status collapsed
9594
9595 \begin_layout Plain Layout
9596 End
9597 \end_layout
9598
9599 \end_inset
9600
9601
9602 \begin_inset Quotes erd
9603 \end_inset
9604
9605 .
9606  Primarily used in cite engine files (see 
9607 \begin_inset CommandInset ref
9608 LatexCommand ref
9609 reference "subsec:Cite-Engine-Files"
9610 plural "false"
9611 caps "false"
9612 noprefix "false"
9613
9614 \end_inset
9615
9616 ).
9617
9618 \change_inserted -712698321 1526898585
9619  A cite format defined in a layout or module will override the cite engine
9620  definition.
9621 \change_unchanged
9622
9623 \end_layout
9624
9625 \begin_layout Description
9626 \begin_inset Flex Code
9627 status collapsed
9628
9629 \begin_layout Plain Layout
9630 CiteFramework
9631 \end_layout
9632
9633 \end_inset
9634
9635  [
9636 \begin_inset Flex Code
9637 status collapsed
9638
9639 \begin_layout Plain Layout
9640
9641 \emph on
9642 bibtex
9643 \end_layout
9644
9645 \end_inset
9646
9647 ,
9648 \begin_inset Flex Code
9649 status collapsed
9650
9651 \begin_layout Plain Layout
9652 biblatex
9653 \end_layout
9654
9655 \end_inset
9656
9657 ] Determines whether 
9658 \family sans
9659 Biblatex
9660 \family default
9661  or Bib\SpecialChar TeX
9662  is used to generate a Bibliography.
9663  Primarily used in cite engine files (see 
9664 \begin_inset CommandInset ref
9665 LatexCommand ref
9666 reference "subsec:Cite-Engine-Files"
9667 plural "false"
9668 caps "false"
9669 noprefix "false"
9670
9671 \end_inset
9672
9673 ).
9674 \end_layout
9675
9676 \begin_layout Description
9677 \begin_inset Flex Code
9678 status collapsed
9679
9680 \begin_layout Plain Layout
9681 ClassOptions
9682 \end_layout
9683
9684 \end_inset
9685
9686  Describes various global options supported by the document class.
9687  See 
9688 \begin_inset CommandInset ref
9689 LatexCommand ref
9690 reference "subsec:ClassOptions"
9691
9692 \end_inset
9693
9694  for a description.
9695  Must end with 
9696 \begin_inset Quotes eld
9697 \end_inset
9698
9699
9700 \begin_inset Flex Code
9701 status collapsed
9702
9703 \begin_layout Plain Layout
9704 End
9705 \end_layout
9706
9707 \end_inset
9708
9709
9710 \begin_inset Quotes erd
9711 \end_inset
9712
9713 .
9714 \end_layout
9715
9716 \begin_layout Description
9717 \begin_inset Flex Code
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721 Columns
9722 \end_layout
9723
9724 \end_inset
9725
9726  [
9727 \begin_inset Flex Code
9728 status collapsed
9729
9730 \begin_layout Plain Layout
9731
9732 \emph on
9733 1
9734 \end_layout
9735
9736 \end_inset
9737
9738 ,
9739 \begin_inset space \thinspace{}
9740 \end_inset
9741
9742
9743 \begin_inset Flex Code
9744 status collapsed
9745
9746 \begin_layout Plain Layout
9747 2
9748 \end_layout
9749
9750 \end_inset
9751
9752 ] Whether the class should 
9753 \emph on
9754 default
9755 \emph default
9756  to having one or two columns.
9757  Can be changed in the 
9758 \begin_inset Flex Noun
9759 status collapsed
9760
9761 \begin_layout Plain Layout
9762 Document\SpecialChar menuseparator
9763 Settings
9764 \end_layout
9765
9766 \end_inset
9767
9768  dialog.
9769 \end_layout
9770
9771 \begin_layout Description
9772 \begin_inset Flex Code
9773 status collapsed
9774
9775 \begin_layout Plain Layout
9776 Counter
9777 \end_layout
9778
9779 \end_inset
9780
9781  [
9782 \begin_inset Flex Code
9783 status collapsed
9784
9785 \begin_layout Plain Layout
9786 string
9787 \end_layout
9788
9789 \end_inset
9790
9791 ] This sequence defines the properties for a counter.
9792  If the counter does not yet exist, it is created; if it does exist, it
9793  is modified.
9794  Must end with 
9795 \begin_inset Quotes eld
9796 \end_inset
9797
9798
9799 \begin_inset Flex Code
9800 status collapsed
9801
9802 \begin_layout Plain Layout
9803 End
9804 \end_layout
9805
9806 \end_inset
9807
9808
9809 \begin_inset Quotes erd
9810 \end_inset
9811
9812 .
9813 \begin_inset Newline newline
9814 \end_inset
9815
9816 See 
9817 \begin_inset CommandInset ref
9818 LatexCommand ref
9819 reference "subsec:Counters"
9820
9821 \end_inset
9822
9823  for details on counters.
9824 \end_layout
9825
9826 \begin_layout Description
9827 \begin_inset Flex Code
9828 status collapsed
9829
9830 \begin_layout Plain Layout
9831 DefaultFont
9832 \end_layout
9833
9834 \end_inset
9835
9836  Sets the default font used to display the document.
9837  See 
9838 \begin_inset CommandInset ref
9839 LatexCommand ref
9840 reference "subsec:Font-description"
9841
9842 \end_inset
9843
9844  for how to declare fonts.
9845  Must end with 
9846 \begin_inset Quotes eld
9847 \end_inset
9848
9849
9850 \begin_inset Flex Code
9851 status collapsed
9852
9853 \begin_layout Plain Layout
9854 EndFont
9855 \end_layout
9856
9857 \end_inset
9858
9859
9860 \begin_inset Quotes erd
9861 \end_inset
9862
9863 .
9864 \end_layout
9865
9866 \begin_layout Description
9867 \begin_inset Flex Code
9868 status collapsed
9869
9870 \begin_layout Plain Layout
9871 DefaultModule
9872 \end_layout
9873
9874 \end_inset
9875
9876  [
9877 \begin_inset Flex Code
9878 status collapsed
9879
9880 \begin_layout Plain Layout
9881 <module>
9882 \end_layout
9883
9884 \end_inset
9885
9886 ] Specifies a module to be included by default with this document class.
9887  The module is specified as filename without the 
9888 \begin_inset Flex Code
9889 status collapsed
9890
9891 \begin_layout Plain Layout
9892 .module
9893 \end_layout
9894
9895 \end_inset
9896
9897  extension.
9898  The user can still remove the module, but it will be active at the outset.
9899  (This applies only when new files are created, or when this class is chosen
9900  for an existing document.)
9901 \end_layout
9902
9903 \begin_layout Description
9904 \begin_inset Flex Code
9905 status collapsed
9906
9907 \begin_layout Plain Layout
9908 DefaultStyle
9909 \end_layout
9910
9911 \end_inset
9912
9913  [
9914 \begin_inset Flex Code
9915 status collapsed
9916
9917 \begin_layout Plain Layout
9918 <style>
9919 \end_layout
9920
9921 \end_inset
9922
9923 ] This is the style that will be assigned to new paragraphs, usually 
9924 \begin_inset Flex Noun
9925 status collapsed
9926
9927 \begin_layout Plain Layout
9928 Standard
9929 \end_layout
9930
9931 \end_inset
9932
9933 .
9934  This will default to the first defined style if not given, but you are
9935  encouraged to use this directive.
9936 \end_layout
9937
9938 \begin_layout Description
9939
9940 \change_inserted -970929547 1515112870
9941 \begin_inset Flex Code
9942 status collapsed
9943
9944 \begin_layout Plain Layout
9945
9946 \change_inserted -970929547 1515112782
9947 DocBookRoot
9948 \change_unchanged
9949
9950 \end_layout
9951
9952 \end_inset
9953
9954  [
9955 \begin_inset Flex Code
9956 status collapsed
9957
9958 \begin_layout Plain Layout
9959
9960 \change_inserted -970929547 1515112766
9961 string
9962 \change_unchanged
9963
9964 \end_layout
9965
9966 \end_inset
9967
9968 ] The root element (at the top of the document) to use when outputting documents
9969  with this class in DocBook.
9970  The default value is 
9971 \begin_inset Quotes eld
9972 \end_inset
9973
9974
9975 \begin_inset Flex Code
9976 status collapsed
9977
9978 \begin_layout Plain Layout
9979
9980 \change_inserted -970929547 1515112845
9981 article
9982 \change_unchanged
9983
9984 \end_layout
9985
9986 \end_inset
9987
9988
9989 \begin_inset Quotes erd
9990 \end_inset
9991
9992 .
9993
9994 \change_deleted 1075283030 1594226862
9995  
9996 \change_inserted 1075283030 1594226777
9997
9998 \end_layout
9999
10000 \begin_layout Description
10001
10002 \change_inserted 1075283030 1594226859
10003 \begin_inset Flex Code
10004 status collapsed
10005
10006 \begin_layout Plain Layout
10007
10008 \change_inserted 1075283030 1594226785
10009 DocBookForceAbstract
10010 \change_unchanged
10011
10012 \end_layout
10013
10014 \end_inset
10015
10016  [
10017 \begin_inset Flex Code
10018 status collapsed
10019
10020 \begin_layout Plain Layout
10021
10022 \change_inserted 1075283030 1594226804
10023 boolean
10024 \change_unchanged
10025
10026 \end_layout
10027
10028 \end_inset
10029
10030 ] If 
10031 \begin_inset Quotes eld
10032 \end_inset
10033
10034
10035 \family typewriter
10036 true
10037 \family default
10038
10039 \begin_inset Quotes erd
10040 \end_inset
10041
10042 , the root element will always have an 
10043 \family typewriter
10044 <abstract>
10045 \family default
10046  tag.
10047  The default value is 
10048 \begin_inset Quotes eld
10049 \end_inset
10050
10051
10052 \family typewriter
10053 false
10054 \family default
10055
10056 \begin_inset Quotes erd
10057 \end_inset
10058
10059 .
10060 \change_unchanged
10061
10062 \end_layout
10063
10064 \begin_layout Description
10065 \begin_inset Flex Code
10066 status collapsed
10067
10068 \begin_layout Plain Layout
10069 ExcludesModule
10070 \end_layout
10071
10072 \end_inset
10073
10074  [
10075 \begin_inset Flex Code
10076 status collapsed
10077
10078 \begin_layout Plain Layout
10079 <module>
10080 \end_layout
10081
10082 \end_inset
10083
10084 ] This tag indicates that the module (which is specified by filename without
10085  the 
10086 \begin_inset Flex Code
10087 status collapsed
10088
10089 \begin_layout Plain Layout
10090 .module
10091 \end_layout
10092
10093 \end_inset
10094
10095  extension) cannot be used with this document class.
10096  This might be used in a journal-specific layout file to prevent, say, the
10097  use of the 
10098 \begin_inset Flex Code
10099 status collapsed
10100
10101 \begin_layout Plain Layout
10102 theorems-sec
10103 \end_layout
10104
10105 \end_inset
10106
10107  module that numbers theorems by section.
10108  This tag may 
10109 \emph on
10110 not
10111 \emph default
10112  be used in a module.
10113  Modules have their own way of excluding other modules (see 
10114 \begin_inset CommandInset ref
10115 LatexCommand ref
10116 reference "subsec:Layout-modules"
10117
10118 \end_inset
10119
10120 ).
10121 \end_layout
10122
10123 \begin_layout Description
10124 \begin_inset Flex Code
10125 status collapsed
10126
10127 \begin_layout Plain Layout
10128 Float
10129 \end_layout
10130
10131 \end_inset
10132
10133  Defines a new float.
10134  See 
10135 \begin_inset CommandInset ref
10136 LatexCommand ref
10137 reference "subsec:Floats"
10138
10139 \end_inset
10140
10141  for details.
10142  Must end with 
10143 \begin_inset Quotes eld
10144 \end_inset
10145
10146
10147 \begin_inset Flex Code
10148 status collapsed
10149
10150 \begin_layout Plain Layout
10151 End
10152 \end_layout
10153
10154 \end_inset
10155
10156
10157 \begin_inset Quotes erd
10158 \end_inset
10159
10160 .
10161 \end_layout
10162
10163 \begin_layout Description
10164 \begin_inset Flex Code
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 HTMLPreamble
10169 \end_layout
10170
10171 \end_inset
10172
10173  Sets the information that will be output in the 
10174 \begin_inset Flex Code
10175 status collapsed
10176
10177 \begin_layout Plain Layout
10178 <head>
10179 \end_layout
10180
10181 \end_inset
10182
10183  block when this document class is output to XHTML.
10184  Note that this will completely override any prior 
10185 \begin_inset Flex Code
10186 status collapsed
10187
10188 \begin_layout Plain Layout
10189 HTMLPreamble
10190 \end_layout
10191
10192 \end_inset
10193
10194  or 
10195 \begin_inset Flex Code
10196 status collapsed
10197
10198 \begin_layout Plain Layout
10199 AddToHTMLPreamble
10200 \end_layout
10201
10202 \end_inset
10203
10204  declarations.
10205  (Use
10206 \begin_inset Newline newline
10207 \end_inset
10208
10209
10210 \begin_inset Flex Code
10211 status collapsed
10212
10213 \begin_layout Plain Layout
10214 AddToHTMLPreamble
10215 \end_layout
10216
10217 \end_inset
10218
10219  if you just want to add material to the preamble.) Must end with 
10220 \begin_inset Quotes eld
10221 \end_inset
10222
10223
10224 \begin_inset Flex Code
10225 status collapsed
10226
10227 \begin_layout Plain Layout
10228 EndPreamble
10229 \end_layout
10230
10231 \end_inset
10232
10233
10234 \begin_inset Quotes erd
10235 \end_inset
10236
10237 .
10238 \end_layout
10239
10240 \begin_layout Description
10241 \begin_inset Flex Code
10242 status collapsed
10243
10244 \begin_layout Plain Layout
10245 HTMLTOCSection
10246 \end_layout
10247
10248 \end_inset
10249
10250  [
10251 \begin_inset Flex Code
10252 status collapsed
10253
10254 \begin_layout Plain Layout
10255 <style>
10256 \end_layout
10257
10258 \end_inset
10259
10260 ] The style to use for the table of contents, bibliography, and so forth,
10261  when the document is output to HTML.
10262  For articles, this should normally be 
10263 \begin_inset Flex Code
10264 status collapsed
10265
10266 \begin_layout Plain Layout
10267 Section
10268 \end_layout
10269
10270 \end_inset
10271
10272 ; for books 
10273 \begin_inset Flex Code
10274 status collapsed
10275
10276 \begin_layout Plain Layout
10277 Chapter
10278 \end_layout
10279
10280 \end_inset
10281
10282 .
10283  If it is not given, then \SpecialChar LyX
10284  will attempt to figure out which layout to use.
10285 \end_layout
10286
10287 \begin_layout Description
10288 \begin_inset Flex Code
10289 status collapsed
10290
10291 \begin_layout Plain Layout
10292 IfCounter
10293 \end_layout
10294
10295 \end_inset
10296
10297  [
10298 \begin_inset Flex Code
10299 status collapsed
10300
10301 \begin_layout Plain Layout
10302 <counter>
10303 \end_layout
10304
10305 \end_inset
10306
10307 ] Modifies the properties of the given counter.
10308  If the counter does not exist, the statement is ignored.
10309  Must end with 
10310 \begin_inset Quotes eld
10311 \end_inset
10312
10313
10314 \begin_inset Flex Code
10315 status collapsed
10316
10317 \begin_layout Plain Layout
10318 End
10319 \end_layout
10320
10321 \end_inset
10322
10323
10324 \begin_inset Quotes erd
10325 \end_inset
10326
10327 .
10328 \begin_inset Newline newline
10329 \end_inset
10330
10331 See 
10332 \begin_inset CommandInset ref
10333 LatexCommand ref
10334 reference "subsec:Counters"
10335
10336 \end_inset
10337
10338  for details on counters.
10339 \end_layout
10340
10341 \begin_layout Description
10342 \begin_inset Flex Code
10343 status collapsed
10344
10345 \begin_layout Plain Layout
10346 Input
10347 \end_layout
10348
10349 \end_inset
10350
10351  [
10352 \begin_inset Flex Code
10353 status collapsed
10354
10355 \begin_layout Plain Layout
10356 <filename>
10357 \end_layout
10358
10359 \end_inset
10360
10361 ] This allows you to include another layout definition file within yours
10362  to avoid duplicating commands.
10363  Common examples are the standard layout files, for example, 
10364 \begin_inset Flex Code
10365 status collapsed
10366
10367 \begin_layout Plain Layout
10368 stdclass.inc
10369 \end_layout
10370
10371 \end_inset
10372
10373 , which contains most of the basic layouts.
10374 \end_layout
10375
10376 \begin_layout Description
10377 \begin_inset Flex Code
10378 status collapsed
10379
10380 \begin_layout Plain Layout
10381 InsetLayout
10382 \end_layout
10383
10384 \end_inset
10385
10386  [
10387 \begin_inset Flex Code
10388 status collapsed
10389
10390 \begin_layout Plain Layout
10391 <type>
10392 \end_layout
10393
10394 \end_inset
10395
10396 ] This section (re-)defines the layout of an inset.
10397  It can be applied to an existing inset or to a new, user-defined inset,
10398  e.g., a new character style.
10399  Must end with 
10400 \begin_inset Quotes eld
10401 \end_inset
10402
10403
10404 \begin_inset Flex Code
10405 status collapsed
10406
10407 \begin_layout Plain Layout
10408 End
10409 \end_layout
10410
10411 \end_inset
10412
10413
10414 \begin_inset Quotes erd
10415 \end_inset
10416
10417 .
10418 \begin_inset Newline newline
10419 \end_inset
10420
10421 See 
10422 \begin_inset CommandInset ref
10423 LatexCommand ref
10424 reference "subsec:Flex-insets-and"
10425
10426 \end_inset
10427
10428  for more information.
10429  
10430 \end_layout
10431
10432 \begin_layout Description
10433 \begin_inset Flex Code
10434 status collapsed
10435
10436 \begin_layout Plain Layout
10437 LeftMargin
10438 \end_layout
10439
10440 \end_inset
10441
10442  [
10443 \begin_inset Flex Code
10444 status collapsed
10445
10446 \begin_layout Plain Layout
10447 string
10448 \end_layout
10449
10450 \end_inset
10451
10452 ] A string that indicates the width of the left margin on the screen, for
10453  example, 
10454 \begin_inset Quotes eld
10455 \end_inset
10456
10457
10458 \begin_inset Flex Code
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462 MMMMM
10463 \end_layout
10464
10465 \end_inset
10466
10467
10468 \begin_inset Quotes erd
10469 \end_inset
10470
10471 .
10472  (Note that this is not a `length', like 
10473 \begin_inset Quotes eld
10474 \end_inset
10475
10476 2ex
10477 \begin_inset Quotes erd
10478 \end_inset
10479
10480 .)
10481 \end_layout
10482
10483 \begin_layout Description
10484 \begin_inset Flex Code
10485 status collapsed
10486
10487 \begin_layout Plain Layout
10488 MaxCiteNames
10489 \end_layout
10490
10491 \end_inset
10492
10493  [
10494 \begin_inset Flex Code
10495 status collapsed
10496
10497 \begin_layout Plain Layout
10498 integer
10499 \end_layout
10500
10501 \end_inset
10502
10503 ] An integer that determines the maximal number of names displayed in an
10504  author-year citation before the citation switches to 
10505 \begin_inset Quotes eld
10506 \end_inset
10507
10508 FirstAuthor et al.
10509 \begin_inset Quotes erd
10510 \end_inset
10511
10512 .
10513  Primarily used in cite engine files (see 
10514 \begin_inset CommandInset ref
10515 LatexCommand ref
10516 reference "subsec:Cite-Engine-Files"
10517 plural "false"
10518 caps "false"
10519 noprefix "false"
10520
10521 \end_inset
10522
10523 ).
10524 \end_layout
10525
10526 \begin_layout Description
10527 \begin_inset Flex Code
10528 status collapsed
10529
10530 \begin_layout Plain Layout
10531 ModifyStyle
10532 \end_layout
10533
10534 \end_inset
10535
10536  [
10537 \begin_inset Flex Code
10538 status collapsed
10539
10540 \begin_layout Plain Layout
10541 <style>
10542 \end_layout
10543
10544 \end_inset
10545
10546 ] Modifies the properties of the given paragraph style.
10547  If the style does not exist, this section is ignored.
10548  Must end with 
10549 \begin_inset Quotes eld
10550 \end_inset
10551
10552
10553 \begin_inset Flex Code
10554 status collapsed
10555
10556 \begin_layout Plain Layout
10557 End
10558 \end_layout
10559
10560 \end_inset
10561
10562
10563 \begin_inset Quotes erd
10564 \end_inset
10565
10566 .
10567 \end_layout
10568
10569 \begin_layout Description
10570 \begin_inset Flex Code
10571 status collapsed
10572
10573 \begin_layout Plain Layout
10574 NoCounter
10575 \end_layout
10576
10577 \end_inset
10578
10579  [
10580 \begin_inset Flex Code
10581 status collapsed
10582
10583 \begin_layout Plain Layout
10584 <counter>
10585 \end_layout
10586
10587 \end_inset
10588
10589 ] Deletes an existing counter, usually one defined in an included file.
10590 \end_layout
10591
10592 \begin_layout Description
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 NoFloat
10598 \end_layout
10599
10600 \end_inset
10601
10602  [
10603 \begin_inset Flex Code
10604 status collapsed
10605
10606 \begin_layout Plain Layout
10607 <float>
10608 \end_layout
10609
10610 \end_inset
10611
10612 ] Deletes an existing float.
10613  This is particularly useful when you want to suppress a float that has
10614  been defined in an input file.
10615 \end_layout
10616
10617 \begin_layout Description
10618 \begin_inset Flex Code
10619 status collapsed
10620
10621 \begin_layout Plain Layout
10622 NoStyle
10623 \end_layout
10624
10625 \end_inset
10626
10627  [
10628 \begin_inset Flex Code
10629 status collapsed
10630
10631 \begin_layout Plain Layout
10632 <style>
10633 \end_layout
10634
10635 \end_inset
10636
10637 ] Deletes an existing style.
10638 \end_layout
10639
10640 \begin_layout Description
10641 \begin_inset Flex Code
10642 status collapsed
10643
10644 \begin_layout Plain Layout
10645 OutlinerName
10646 \end_layout
10647
10648 \end_inset
10649
10650  [
10651 \begin_inset Flex Code
10652 status collapsed
10653
10654 \begin_layout Plain Layout
10655 <type>
10656 \end_layout
10657
10658 \end_inset
10659
10660 ] [
10661 \begin_inset Flex Code
10662 status collapsed
10663
10664 \begin_layout Plain Layout
10665 <string>
10666 \end_layout
10667
10668 \end_inset
10669
10670 ] Define a new table of contents with type 
10671 \begin_inset Flex Code
10672 status collapsed
10673
10674 \begin_layout Plain Layout
10675 <type>
10676 \end_layout
10677
10678 \end_inset
10679
10680  and name 
10681 \begin_inset Flex Code
10682 status collapsed
10683
10684 \begin_layout Plain Layout
10685 <string>
10686 \end_layout
10687
10688 \end_inset
10689
10690 .
10691  See also the AddToToc commands.
10692 \end_layout
10693
10694 \begin_layout Description
10695 \begin_inset Flex Code
10696 status collapsed
10697
10698 \begin_layout Plain Layout
10699 OutputFormat
10700 \end_layout
10701
10702 \end_inset
10703
10704  [
10705 \begin_inset Flex Code
10706 status collapsed
10707
10708 \begin_layout Plain Layout
10709 <format>
10710 \end_layout
10711
10712 \end_inset
10713
10714 ] The file format (as defined in the \SpecialChar LyX
10715  preferences) produced by this document
10716  class.
10717  It is mainly useful when 
10718 \begin_inset Flex Code
10719 status collapsed
10720
10721 \begin_layout Plain Layout
10722 OutputType
10723 \end_layout
10724
10725 \end_inset
10726
10727  is 
10728 \begin_inset Flex Code
10729 status collapsed
10730
10731 \begin_layout Plain Layout
10732 literate
10733 \end_layout
10734
10735 \end_inset
10736
10737  and one wants to define a new type of literate document.
10738  The format is reset to 
10739 \change_deleted 5863208 1594239413
10740
10741 \begin_inset Quotes eld
10742 \end_inset
10743
10744
10745 \begin_inset Flex Code
10746 status collapsed
10747
10748 \begin_layout Plain Layout
10749 docbook
10750 \end_layout
10751
10752 \end_inset
10753
10754
10755 \begin_inset Quotes erd
10756 \end_inset
10757
10758  or
10759 \change_unchanged
10760  
10761 \begin_inset Quotes eld
10762 \end_inset
10763
10764
10765 \begin_inset Flex Code
10766 status collapsed
10767
10768 \begin_layout Plain Layout
10769 latex
10770 \end_layout
10771
10772 \end_inset
10773
10774
10775 \begin_inset Quotes erd
10776 \end_inset
10777
10778  when the corresponding 
10779 \begin_inset Flex Code
10780 status collapsed
10781
10782 \begin_layout Plain Layout
10783 OutputType
10784 \end_layout
10785
10786 \end_inset
10787
10788  parameter is encountered.
10789 \end_layout
10790
10791 \begin_layout Description
10792 \begin_inset Flex Code
10793 status collapsed
10794
10795 \begin_layout Plain Layout
10796 OutputType
10797 \end_layout
10798
10799 \end_inset
10800
10801  [
10802 \begin_inset Flex Code
10803 status collapsed
10804
10805 \begin_layout Plain Layout
10806
10807 \emph on
10808 lat
10809 \emph default
10810 ex
10811 \end_layout
10812
10813 \end_inset
10814
10815
10816 \change_deleted 5863208 1594239430
10817
10818 \begin_inset Flex Code
10819 status collapsed
10820
10821 \begin_layout Plain Layout
10822 docbook
10823 \end_layout
10824
10825 \end_inset
10826
10827 ,
10828 \change_unchanged
10829  
10830 \begin_inset Flex Code
10831 status collapsed
10832
10833 \begin_layout Plain Layout
10834 literate
10835 \end_layout
10836
10837 \end_inset
10838
10839 ] Specifies what sort of output documents using this class will produce.
10840 \end_layout
10841
10842 \begin_layout Description
10843 \begin_inset Flex Code
10844 status collapsed
10845
10846 \begin_layout Plain Layout
10847 PackageOptions
10848 \end_layout
10849
10850 \end_inset
10851
10852  [
10853 \begin_inset Flex Code
10854 status collapsed
10855
10856 \begin_layout Plain Layout
10857 string
10858 \end_layout
10859
10860 \end_inset
10861
10862  
10863 \begin_inset Flex Code
10864 status collapsed
10865
10866 \begin_layout Plain Layout
10867 string
10868 \end_layout
10869
10870 \end_inset
10871
10872 ] Specifies options, given in the second string, for the package named by
10873  the first string.
10874  For example, 
10875 \begin_inset Quotes eld
10876 \end_inset
10877
10878
10879 \begin_inset Flex Code
10880 status collapsed
10881
10882 \begin_layout Plain Layout
10883 PackageOptions natbib square
10884 \end_layout
10885
10886 \end_inset
10887
10888
10889 \begin_inset Quotes erd
10890 \end_inset
10891
10892  will cause 
10893 \begin_inset Flex Code
10894 status collapsed
10895
10896 \begin_layout Plain Layout
10897 natbib
10898 \end_layout
10899
10900 \end_inset
10901
10902  to be loaded with the 
10903 \begin_inset Flex Code
10904 status collapsed
10905
10906 \begin_layout Plain Layout
10907 square
10908 \end_layout
10909
10910 \end_inset
10911
10912  option.
10913  (For \SpecialChar TeX
10914 perts, this causes \SpecialChar LyX
10915  to output: 
10916 \begin_inset Flex Code
10917 status collapsed
10918
10919 \begin_layout Plain Layout
10920
10921 \backslash
10922 PassOptionsToPackage{natbib}{square}
10923 \end_layout
10924
10925 \end_inset
10926
10927  prior to loading 
10928 \begin_inset Flex Code
10929 status collapsed
10930
10931 \begin_layout Plain Layout
10932 natbib
10933 \end_layout
10934
10935 \end_inset
10936
10937 .)
10938 \change_inserted -712698321 1565102364
10939
10940 \end_layout
10941
10942 \begin_layout Description
10943
10944 \change_inserted -712698321 1565102470
10945 \begin_inset Flex Code
10946 status collapsed
10947
10948 \begin_layout Plain Layout
10949
10950 \change_inserted -712698321 1565102365
10951 PageSize
10952 \change_unchanged
10953
10954 \end_layout
10955
10956 \end_inset
10957
10958  [
10959 \begin_inset Flex Code
10960 status collapsed
10961
10962 \begin_layout Plain Layout
10963
10964 \change_inserted -712698321 1565105222
10965
10966 \emph on
10967 custom
10968 \emph default
10969 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
10970  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
10971 \change_unchanged
10972
10973 \end_layout
10974
10975 \end_inset
10976
10977 ] The default page size.
10978  This is used by some converters.
10979 \change_unchanged
10980
10981 \end_layout
10982
10983 \begin_layout Description
10984 \begin_inset Flex Code
10985 status collapsed
10986
10987 \begin_layout Plain Layout
10988 PageStyle
10989 \end_layout
10990
10991 \end_inset
10992
10993  [
10994 \begin_inset Flex Code
10995 status collapsed
10996
10997 \begin_layout Plain Layout
10998
10999 \emph on
11000 plain
11001 \end_layout
11002
11003 \end_inset
11004
11005
11006 \begin_inset Flex Code
11007 status collapsed
11008
11009 \begin_layout Plain Layout
11010 empty
11011 \end_layout
11012
11013 \end_inset
11014
11015
11016 \begin_inset Flex Code
11017 status collapsed
11018
11019 \begin_layout Plain Layout
11020 headings
11021 \end_layout
11022
11023 \end_inset
11024
11025 ] The default pagestyle.
11026  Can be changed in the 
11027 \begin_inset Flex Noun
11028 status collapsed
11029
11030 \begin_layout Plain Layout
11031 Document\SpecialChar menuseparator
11032 Settings
11033 \end_layout
11034
11035 \end_inset
11036
11037  dialog.
11038 \end_layout
11039
11040 \begin_layout Description
11041 \begin_inset Flex Code
11042 status collapsed
11043
11044 \begin_layout Plain Layout
11045 Preamble
11046 \end_layout
11047
11048 \end_inset
11049
11050  Sets the preamble for the \SpecialChar LaTeX
11051  document.
11052  Note that this will completely override any prior 
11053 \begin_inset Flex Code
11054 status collapsed
11055
11056 \begin_layout Plain Layout
11057 Preamble
11058 \end_layout
11059
11060 \end_inset
11061
11062  or 
11063 \begin_inset Flex Code
11064 status collapsed
11065
11066 \begin_layout Plain Layout
11067 AddToPreamble
11068 \end_layout
11069
11070 \end_inset
11071
11072  declarations.
11073  (Use 
11074 \begin_inset Flex Code
11075 status collapsed
11076
11077 \begin_layout Plain Layout
11078 AddToPreamble
11079 \end_layout
11080
11081 \end_inset
11082
11083  if you just want to add material to the preamble.) Must end with 
11084 \begin_inset Quotes eld
11085 \end_inset
11086
11087
11088 \begin_inset Flex Code
11089 status collapsed
11090
11091 \begin_layout Plain Layout
11092 EndPreamble
11093 \end_layout
11094
11095 \end_inset
11096
11097
11098 \begin_inset Quotes erd
11099 \end_inset
11100
11101 .
11102 \end_layout
11103
11104 \begin_layout Description
11105 \begin_inset Flex Code
11106 status collapsed
11107
11108 \begin_layout Plain Layout
11109 Provides
11110 \end_layout
11111
11112 \end_inset
11113
11114  [
11115 \begin_inset Flex Code
11116 status collapsed
11117
11118 \begin_layout Plain Layout
11119 string
11120 \end_layout
11121
11122 \end_inset
11123
11124 ] [
11125 \begin_inset Flex Code
11126 status collapsed
11127
11128 \begin_layout Plain Layout
11129
11130 \emph on
11131 0
11132 \end_layout
11133
11134 \end_inset
11135
11136 ,
11137 \begin_inset space \thinspace{}
11138 \end_inset
11139
11140
11141 \begin_inset Flex Code
11142 status collapsed
11143
11144 \begin_layout Plain Layout
11145 1
11146 \end_layout
11147
11148 \end_inset
11149
11150 ] Whether the class already provides the feature 
11151 \begin_inset Flex Code
11152 status collapsed
11153
11154 \begin_layout Plain Layout
11155 string
11156 \end_layout
11157
11158 \end_inset
11159
11160 .
11161  A feature is in general the name of a package (e.
11162 \begin_inset space \thinspace{}
11163 \end_inset
11164
11165 g.
11166 \begin_inset space \space{}
11167 \end_inset
11168
11169
11170 \begin_inset Flex Code
11171 status collapsed
11172
11173 \begin_layout Plain Layout
11174 amsmath
11175 \end_layout
11176
11177 \end_inset
11178
11179  or 
11180 \begin_inset Flex Code
11181 status collapsed
11182
11183 \begin_layout Plain Layout
11184 makeidx
11185 \end_layout
11186
11187 \end_inset
11188
11189 ) or a macro (e.
11190 \begin_inset space \thinspace{}
11191 \end_inset
11192
11193 g.
11194 \begin_inset space \space{}
11195 \end_inset
11196
11197
11198 \begin_inset Flex Code
11199 status collapsed
11200
11201 \begin_layout Plain Layout
11202 url
11203 \end_layout
11204
11205 \end_inset
11206
11207  or 
11208 \begin_inset Flex Code
11209 status collapsed
11210
11211 \begin_layout Plain Layout
11212 boldsymbol
11213 \end_layout
11214
11215 \end_inset
11216
11217 ).
11218  See 
11219 \begin_inset CommandInset ref
11220 LatexCommand ref
11221 reference "chap:List-of-functions"
11222
11223 \end_inset
11224
11225  for the list of features.
11226 \end_layout
11227
11228 \begin_layout Description
11229 \begin_inset Flex Code
11230 status collapsed
11231
11232 \begin_layout Plain Layout
11233 ProvidesModule
11234 \end_layout
11235
11236 \end_inset
11237
11238  [
11239 \begin_inset Flex Code
11240 status collapsed
11241
11242 \begin_layout Plain Layout
11243 string
11244 \end_layout
11245
11246 \end_inset
11247
11248 ] Indicates that this layout provides the functionality of the module mentioned,
11249  which should be specified by the filename without the 
11250 \begin_inset Flex Code
11251 status collapsed
11252
11253 \begin_layout Plain Layout
11254 .module
11255 \end_layout
11256
11257 \end_inset
11258
11259  extension.
11260  This will typically be used if the layout includes the module directly,
11261  rather than using the 
11262 \begin_inset Flex Code
11263 status collapsed
11264
11265 \begin_layout Plain Layout
11266 DefaultModule
11267 \end_layout
11268
11269 \end_inset
11270
11271  tag to indicate that it ought to be used.
11272  It could also be used in a module that provided an alternate implementation
11273  of the same functionality.
11274 \end_layout
11275
11276 \begin_layout Description
11277 \begin_inset Flex Code
11278 status collapsed
11279
11280 \begin_layout Plain Layout
11281 ProvideStyle
11282 \end_layout
11283
11284 \end_inset
11285
11286  [
11287 \begin_inset Flex Code
11288 status collapsed
11289
11290 \begin_layout Plain Layout
11291 <style>
11292 \end_layout
11293
11294 \end_inset
11295
11296 ] Creates a new paragraph style if it does not already exist.
11297  If the style does exist, this section is ignored.
11298  Must end with 
11299 \begin_inset Quotes eld
11300 \end_inset
11301
11302
11303 \begin_inset Flex Code
11304 status collapsed
11305
11306 \begin_layout Plain Layout
11307 End
11308 \end_layout
11309
11310 \end_inset
11311
11312
11313 \begin_inset Quotes erd
11314 \end_inset
11315
11316 .
11317 \end_layout
11318
11319 \begin_layout Description
11320 \begin_inset Flex Code
11321 status collapsed
11322
11323 \begin_layout Plain Layout
11324 Requires
11325 \end_layout
11326
11327 \end_inset
11328
11329  [
11330 \begin_inset Flex Code
11331 status collapsed
11332
11333 \begin_layout Plain Layout
11334 string
11335 \end_layout
11336
11337 \end_inset
11338
11339 ] Whether the class requires the feature 
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 string
11345 \end_layout
11346
11347 \end_inset
11348
11349 .
11350  Multiple features must be separated by commas.
11351  Note that you can only request supported features.
11352  (See 
11353 \begin_inset CommandInset ref
11354 LatexCommand ref
11355 reference "chap:List-of-functions"
11356
11357 \end_inset
11358
11359  for the list of features.).
11360  If you require a package with specific options, you can additionally use
11361  
11362 \begin_inset Flex Code
11363 status collapsed
11364
11365 \begin_layout Plain Layout
11366 PackageOptions
11367 \end_layout
11368
11369 \end_inset
11370
11371 .
11372 \end_layout
11373
11374 \begin_layout Description
11375 \begin_inset Flex Code
11376 status collapsed
11377
11378 \begin_layout Plain Layout
11379 RightMargin
11380 \end_layout
11381
11382 \end_inset
11383
11384  [
11385 \begin_inset Flex Code
11386 status collapsed
11387
11388 \begin_layout Plain Layout
11389 string
11390 \end_layout
11391
11392 \end_inset
11393
11394 ] A string that indicates the width of the right margin on the screen, for
11395  example, 
11396 \begin_inset Quotes eld
11397 \end_inset
11398
11399
11400 \begin_inset Flex Code
11401 status collapsed
11402
11403 \begin_layout Plain Layout
11404 MMMMM
11405 \end_layout
11406
11407 \end_inset
11408
11409
11410 \begin_inset Quotes erd
11411 \end_inset
11412
11413 .
11414 \end_layout
11415
11416 \begin_layout Description
11417 \begin_inset Flex Code
11418 status collapsed
11419
11420 \begin_layout Plain Layout
11421 SecNumDepth
11422 \end_layout
11423
11424 \end_inset
11425
11426  [
11427 \begin_inset Flex Code
11428 status collapsed
11429
11430 \begin_layout Plain Layout
11431 int=3
11432 \end_layout
11433
11434 \end_inset
11435
11436 ] Sets which divisions get numbered.
11437  Corresponds to the
11438 \begin_inset Newline newline
11439 \end_inset
11440
11441
11442 \begin_inset Flex Code
11443 status collapsed
11444
11445 \begin_layout Plain Layout
11446 secnumdepth
11447 \end_layout
11448
11449 \end_inset
11450
11451  counter in \SpecialChar LaTeX
11452 .
11453 \end_layout
11454
11455 \begin_layout Description
11456 \begin_inset Flex Code
11457 status collapsed
11458
11459 \begin_layout Plain Layout
11460 Sides
11461 \end_layout
11462
11463 \end_inset
11464
11465  [
11466 \begin_inset Flex Code
11467 status collapsed
11468
11469 \begin_layout Plain Layout
11470
11471 \emph on
11472 1
11473 \end_layout
11474
11475 \end_inset
11476
11477 ,
11478 \begin_inset space \thinspace{}
11479 \end_inset
11480
11481
11482 \begin_inset Flex Code
11483 status collapsed
11484
11485 \begin_layout Plain Layout
11486 2
11487 \end_layout
11488
11489 \end_inset
11490
11491 ] Whether the class-default should be printing on one or both sides of the
11492  paper.
11493  Can be changed in the 
11494 \begin_inset Flex Noun
11495 status collapsed
11496
11497 \begin_layout Plain Layout
11498 Document\SpecialChar menuseparator
11499 Settings
11500 \end_layout
11501
11502 \end_inset
11503
11504  dialog.
11505 \end_layout
11506
11507 \begin_layout Description
11508 \begin_inset Flex Code
11509 status collapsed
11510
11511 \begin_layout Plain Layout
11512 Style
11513 \end_layout
11514
11515 \end_inset
11516
11517  [
11518 \begin_inset Flex Code
11519 status collapsed
11520
11521 \begin_layout Plain Layout
11522 <name>
11523 \end_layout
11524
11525 \end_inset
11526
11527 ] This sequence defines a paragraph style.
11528  If the style does not yet exist, it is created; if it does exist, its parameter
11529 s are modified.
11530  Must end with 
11531 \begin_inset Quotes eld
11532 \end_inset
11533
11534
11535 \begin_inset Flex Code
11536 status collapsed
11537
11538 \begin_layout Plain Layout
11539 End
11540 \end_layout
11541
11542 \end_inset
11543
11544
11545 \begin_inset Quotes erd
11546 \end_inset
11547
11548 .
11549 \begin_inset Newline newline
11550 \end_inset
11551
11552 See 
11553 \begin_inset CommandInset ref
11554 LatexCommand ref
11555 reference "subsec:Paragraph-Styles"
11556
11557 \end_inset
11558
11559  for details on paragraph styles.
11560 \change_inserted -712698321 1553617804
11561
11562 \end_layout
11563
11564 \begin_layout Description
11565
11566 \change_inserted -712698321 1553617862
11567 \begin_inset Flex Code
11568 status collapsed
11569
11570 \begin_layout Plain Layout
11571
11572 \change_inserted -712698321 1553617809
11573 TableStyle
11574 \change_unchanged
11575
11576 \end_layout
11577
11578 \end_inset
11579
11580  [
11581 \begin_inset Flex Code
11582 status collapsed
11583
11584 \begin_layout Plain Layout
11585
11586 \change_inserted -712698321 1553617805
11587 <name>
11588 \change_unchanged
11589
11590 \end_layout
11591
11592 \end_inset
11593
11594 ] defines the default table style that is used when inserting a table.
11595  The following styles are available:
11596 \end_layout
11597
11598 \begin_deeper
11599 \begin_layout Itemize
11600
11601 \change_inserted -712698321 1554308039
11602 \begin_inset Flex Code
11603 status collapsed
11604
11605 \begin_layout Plain Layout
11606
11607 \change_inserted -712698321 1554307928
11608 Formal_with_Footline
11609 \change_unchanged
11610
11611 \end_layout
11612
11613 \end_inset
11614
11615 : formal (
11616 \begin_inset Quotes eld
11617 \end_inset
11618
11619 booktabs
11620 \begin_inset Quotes erd
11621 \end_inset
11622
11623 ) style with horizontal lines only, using a bold top and bottom line, the
11624  first and last row are additionally separated from the table body with
11625  a thin middle line.
11626 \end_layout
11627
11628 \begin_layout Itemize
11629
11630 \change_inserted -712698321 1554308087
11631 \begin_inset Flex Code
11632 status collapsed
11633
11634 \begin_layout Plain Layout
11635
11636 \change_inserted -712698321 1554308042
11637 Formal_without_Footline
11638 \change_unchanged
11639
11640 \end_layout
11641
11642 \end_inset
11643
11644 : same as the above, but the last row is not separated with a middle line
11645  from the body.
11646 \end_layout
11647
11648 \begin_layout Itemize
11649
11650 \change_inserted -712698321 1553618031
11651 \begin_inset Flex Code
11652 status collapsed
11653
11654 \begin_layout Plain Layout
11655
11656 \change_inserted -712698321 1553618006
11657 Simple_Grid
11658 \change_unchanged
11659
11660 \end_layout
11661
11662 \end_inset
11663
11664 : Simple table lines.
11665 \end_layout
11666
11667 \begin_layout Itemize
11668
11669 \change_inserted -712698321 1553618309
11670 \begin_inset Flex Code
11671 status collapsed
11672
11673 \begin_layout Plain Layout
11674
11675 \change_inserted -712698321 1553618031
11676 Grid_with_Head
11677 \change_unchanged
11678
11679 \end_layout
11680
11681 \end_inset
11682
11683 : Like 
11684 \begin_inset Flex Code
11685 status collapsed
11686
11687 \begin_layout Plain Layout
11688
11689 \change_inserted -712698321 1553618043
11690 Simple_Grid
11691 \change_unchanged
11692
11693 \end_layout
11694
11695 \end_inset
11696
11697 , but with the header column offset with a second horizontal line.
11698  This is also the default style of \SpecialChar LyX
11699 .
11700 \end_layout
11701
11702 \begin_layout Itemize
11703
11704 \change_inserted -712698321 1553618280
11705 \begin_inset Flex Code
11706 status collapsed
11707
11708 \begin_layout Plain Layout
11709
11710 \change_inserted -712698321 1553618261
11711 No_Borders
11712 \change_unchanged
11713
11714 \end_layout
11715
11716 \end_inset
11717
11718 : Table without lines.
11719 \change_unchanged
11720
11721 \end_layout
11722
11723 \end_deeper
11724 \begin_layout Description
11725 \begin_inset Flex Code
11726 status collapsed
11727
11728 \begin_layout Plain Layout
11729 TitleLatexName
11730 \end_layout
11731
11732 \end_inset
11733
11734  [
11735 \begin_inset Flex Code
11736 status collapsed
11737
11738 \begin_layout Plain Layout
11739 string="maketitle"
11740 \end_layout
11741
11742 \end_inset
11743
11744 ] The name of the command or environment to be used with 
11745 \begin_inset Flex Code
11746 status collapsed
11747
11748 \begin_layout Plain Layout
11749 TitleLatexType
11750 \end_layout
11751
11752 \end_inset
11753
11754 .
11755 \end_layout
11756
11757 \begin_layout Description
11758 \begin_inset Flex Code
11759 status collapsed
11760
11761 \begin_layout Plain Layout
11762 TitleLatexType
11763 \end_layout
11764
11765 \end_inset
11766
11767  [
11768 \begin_inset Flex Code
11769 status collapsed
11770
11771 \begin_layout Plain Layout
11772
11773 \emph on
11774 CommandAfter
11775 \end_layout
11776
11777 \end_inset
11778
11779
11780 \begin_inset Flex Code
11781 status collapsed
11782
11783 \begin_layout Plain Layout
11784 Environment
11785 \end_layout
11786
11787 \end_inset
11788
11789 ] Indicates what kind of markup is used to define the title of a document.
11790  
11791 \begin_inset Flex Code
11792 status collapsed
11793
11794 \begin_layout Plain Layout
11795 CommandAfter
11796 \end_layout
11797
11798 \end_inset
11799
11800  means that the macro with name 
11801 \begin_inset Flex Code
11802 status collapsed
11803
11804 \begin_layout Plain Layout
11805 TitleLatexName
11806 \end_layout
11807
11808 \end_inset
11809
11810  will be inserted after the last layout which has 
11811 \begin_inset Quotes eld
11812 \end_inset
11813
11814
11815 \begin_inset Flex Code
11816 status collapsed
11817
11818 \begin_layout Plain Layout
11819 InTitle
11820 \begin_inset space ~
11821 \end_inset
11822
11823 1
11824 \end_layout
11825
11826 \end_inset
11827
11828
11829 \begin_inset Quotes erd
11830 \end_inset
11831
11832 .
11833  
11834 \begin_inset Flex Code
11835 status collapsed
11836
11837 \begin_layout Plain Layout
11838 Environment
11839 \end_layout
11840
11841 \end_inset
11842
11843  corresponds to the case where all layouts which have 
11844 \begin_inset Quotes eld
11845 \end_inset
11846
11847
11848 \begin_inset Flex Code
11849 status collapsed
11850
11851 \begin_layout Plain Layout
11852 InTitle
11853 \begin_inset space ~
11854 \end_inset
11855
11856 1
11857 \end_layout
11858
11859 \end_inset
11860
11861
11862 \begin_inset Quotes erd
11863 \end_inset
11864
11865  should be enclosed into the 
11866 \begin_inset Flex Code
11867 status collapsed
11868
11869 \begin_layout Plain Layout
11870 TitleLatexName
11871 \end_layout
11872
11873 \end_inset
11874
11875  environment.
11876 \end_layout
11877
11878 \begin_layout Description
11879 \begin_inset Flex Code
11880 status collapsed
11881
11882 \begin_layout Plain Layout
11883 TocDepth
11884 \end_layout
11885
11886 \end_inset
11887
11888  [
11889 \begin_inset Flex Code
11890 status collapsed
11891
11892 \begin_layout Plain Layout
11893 int=3
11894 \end_layout
11895
11896 \end_inset
11897
11898 ] Sets which divisions are included in the table of contents.
11899  Corresponds to the 
11900 \begin_inset Flex Code
11901 status collapsed
11902
11903 \begin_layout Plain Layout
11904 tocdepth
11905 \end_layout
11906
11907 \end_inset
11908
11909  counter in \SpecialChar LaTeX
11910 .
11911 \end_layout
11912
11913 \begin_layout Subsection
11914 \begin_inset Flex Code
11915 status collapsed
11916
11917 \begin_layout Plain Layout
11918 ClassOptions
11919 \end_layout
11920
11921 \end_inset
11922
11923  section
11924 \begin_inset CommandInset label
11925 LatexCommand label
11926 name "subsec:ClassOptions"
11927
11928 \end_inset
11929
11930
11931 \end_layout
11932
11933 \begin_layout Standard
11934 The 
11935 \begin_inset Flex Code
11936 status collapsed
11937
11938 \begin_layout Plain Layout
11939 ClassOptions
11940 \end_layout
11941
11942 \end_inset
11943
11944  section can contain the following entries:
11945 \end_layout
11946
11947 \begin_layout Description
11948 \begin_inset Flex Code
11949 status collapsed
11950
11951 \begin_layout Plain Layout
11952 FontSize
11953 \end_layout
11954
11955 \end_inset
11956
11957  [
11958 \begin_inset Flex Code
11959 status collapsed
11960
11961 \begin_layout Plain Layout
11962 string="10|11|12"
11963 \end_layout
11964
11965 \end_inset
11966
11967 ] The list of available font sizes for the document's main font, separated
11968  by 
11969 \begin_inset Quotes eld
11970 \end_inset
11971
11972
11973 \begin_inset Flex Code
11974 status collapsed
11975
11976 \begin_layout Plain Layout
11977 |
11978 \end_layout
11979
11980 \end_inset
11981
11982
11983 \begin_inset Quotes erd
11984 \end_inset
11985
11986 .
11987
11988 \change_inserted -712698321 1565110196
11989  Any number is possible.
11990 \end_layout
11991
11992 \begin_layout Description
11993
11994 \change_inserted -712698321 1565110259
11995 \begin_inset Flex Code
11996 status collapsed
11997
11998 \begin_layout Plain Layout
11999
12000 \change_inserted -712698321 1565110199
12001 FontSizeFormat
12002 \change_unchanged
12003
12004 \end_layout
12005
12006 \end_inset
12007
12008  [
12009 \begin_inset Flex Code
12010 status collapsed
12011
12012 \begin_layout Plain Layout
12013
12014 \change_inserted -712698321 1565110196
12015 string
12016 \change_unchanged
12017
12018 \end_layout
12019
12020 \end_inset
12021
12022 ] The format for the font size option.
12023  Default: 
12024 \begin_inset Flex Code
12025 status collapsed
12026
12027 \begin_layout Plain Layout
12028
12029 \change_inserted -712698321 1565110238
12030 $$spt
12031 \change_unchanged
12032
12033 \end_layout
12034
12035 \end_inset
12036
12037 .
12038  
12039 \begin_inset Flex Code
12040 status collapsed
12041
12042 \begin_layout Plain Layout
12043
12044 \change_inserted -712698321 1565110248
12045 $$s
12046 \change_unchanged
12047
12048 \end_layout
12049
12050 \end_inset
12051
12052  is a placeholder for the font size.
12053 \change_unchanged
12054
12055 \end_layout
12056
12057 \begin_layout Description
12058
12059 \change_deleted 5863208 1594239483
12060 \begin_inset Flex Code
12061 status collapsed
12062
12063 \begin_layout Plain Layout
12064 Header
12065 \end_layout
12066
12067 \end_inset
12068
12069  Used to set the DTD line with XML-based output classes.
12070  E.
12071 \begin_inset space \thinspace{}
12072 \end_inset
12073
12074 g.: PUBLIC 
12075 \begin_inset Quotes eld
12076 \end_inset
12077
12078 -//OASIS//DTD DocBook V4.2//EN
12079 \begin_inset Quotes erd
12080 \end_inset
12081
12082 .
12083 \change_inserted -712698321 1565101761
12084
12085 \end_layout
12086
12087 \begin_layout Description
12088
12089 \change_inserted -712698321 1565180598
12090 \begin_inset Flex Code
12091 status collapsed
12092
12093 \begin_layout Plain Layout
12094
12095 \change_inserted -712698321 1565101918
12096 PageSize
12097 \change_unchanged
12098
12099 \end_layout
12100
12101 \end_inset
12102
12103  [
12104 \begin_inset Flex Code
12105 status collapsed
12106
12107 \begin_layout Plain Layout
12108
12109 \change_inserted -712698321 1565105399
12110 string="letter|\SpecialChar allowbreak
12111 legal|\SpecialChar allowbreak
12112 executive|\SpecialChar allowbreak
12113 a0|\SpecialChar allowbreak
12114 a1|\SpecialChar allowbreak
12115 a2|\SpecialChar allowbreak
12116 a3|\SpecialChar allowbreak
12117 a4|\SpecialChar allowbreak
12118 a5|\SpecialChar allowbreak
12119 a6|\SpecialChar allowbreak
12120 b0|\SpecialChar allowbreak
12121 b1|\SpecialChar allowbreak
12122 b2|\SpecialChar allowbreak
12123 b3|\SpecialChar allowbreak
12124 b4|\SpecialChar allowbreak
12125 b5|\SpecialChar allowbreak
12126 b6|\SpecialChar allowbreak
12127 c0|\SpecialChar allowbreak
12128 c1|\SpecialChar allowbreak
12129 c
12130 2|\SpecialChar allowbreak
12131 c3|\SpecialChar allowbreak
12132 c4|\SpecialChar allowbreak
12133 c5|\SpecialChar allowbreak
12134 c6|\SpecialChar allowbreak
12135 b0j|\SpecialChar allowbreak
12136 b1j|\SpecialChar allowbreak
12137 b2j|\SpecialChar allowbreak
12138 b3j|\SpecialChar allowbreak
12139 b4j|\SpecialChar allowbreak
12140 b5j|\SpecialChar allowbreak
12141 b6j"
12142 \change_unchanged
12143
12144 \end_layout
12145
12146 \end_inset
12147
12148 ] The list of available page sizes, separated by 
12149 \begin_inset Quotes eld
12150 \end_inset
12151
12152
12153 \begin_inset Flex Code
12154 status collapsed
12155
12156 \begin_layout Plain Layout
12157
12158 \change_inserted -712698321 1565101779
12159 |
12160 \change_unchanged
12161
12162 \end_layout
12163
12164 \end_inset
12165
12166
12167 \begin_inset Quotes erd
12168 \end_inset
12169
12170 .
12171  Currently, only the listed sizes are supported.
12172  Other sizes might be entered as custom class option.
12173 \end_layout
12174
12175 \begin_layout Description
12176
12177 \change_inserted -712698321 1565180623
12178 \begin_inset Flex Code
12179 status collapsed
12180
12181 \begin_layout Plain Layout
12182
12183 \change_inserted -712698321 1565180605
12184 PageSizeFormat
12185 \change_unchanged
12186
12187 \end_layout
12188
12189 \end_inset
12190
12191  [
12192 \begin_inset Flex Code
12193 status collapsed
12194
12195 \begin_layout Plain Layout
12196
12197 \change_inserted -712698321 1565180601
12198 string
12199 \change_unchanged
12200
12201 \end_layout
12202
12203 \end_inset
12204
12205 ] The format for the page size option.
12206  Default: 
12207 \begin_inset Flex Code
12208 status collapsed
12209
12210 \begin_layout Plain Layout
12211
12212 \change_inserted -712698321 1565180618
12213 $$spaper
12214 \change_unchanged
12215
12216 \end_layout
12217
12218 \end_inset
12219
12220 .
12221  
12222 \begin_inset Flex Code
12223 status collapsed
12224
12225 \begin_layout Plain Layout
12226
12227 \change_inserted -712698321 1565180601
12228 $$s
12229 \change_unchanged
12230
12231 \end_layout
12232
12233 \end_inset
12234
12235  is a placeholder for the paper size.
12236 \change_unchanged
12237
12238 \end_layout
12239
12240 \begin_layout Description
12241 \begin_inset Flex Code
12242 status collapsed
12243
12244 \begin_layout Plain Layout
12245 PageStyle
12246 \end_layout
12247
12248 \end_inset
12249
12250  [
12251 \begin_inset Flex Code
12252 status collapsed
12253
12254 \begin_layout Plain Layout
12255 string="empty|plain|headings|fancy"
12256 \end_layout
12257
12258 \end_inset
12259
12260 ] The list of available page sty\SpecialChar softhyphen
12261 les, separated by 
12262 \begin_inset Quotes eld
12263 \end_inset
12264
12265
12266 \begin_inset Flex Code
12267 status collapsed
12268
12269 \begin_layout Plain Layout
12270 |
12271 \end_layout
12272
12273 \end_inset
12274
12275
12276 \begin_inset Quotes erd
12277 \end_inset
12278
12279 .
12280 \end_layout
12281
12282 \begin_layout Description
12283 \begin_inset Flex Code
12284 status collapsed
12285
12286 \begin_layout Plain Layout
12287 Other
12288 \end_layout
12289
12290 \end_inset
12291
12292  [
12293 \begin_inset Flex Code
12294 status collapsed
12295
12296 \begin_layout Plain Layout
12297 string=""
12298 \end_layout
12299
12300 \end_inset
12301
12302 ] Some document class options, separated by a comma, that will be added
12303  to the optional part of the 
12304 \begin_inset Flex Code
12305 status collapsed
12306
12307 \begin_layout Plain Layout
12308
12309 \backslash
12310 documentclass
12311 \end_layout
12312
12313 \end_inset
12314
12315  command.
12316 \end_layout
12317
12318 \begin_layout Standard
12319 The 
12320 \begin_inset Flex Code
12321 status collapsed
12322
12323 \begin_layout Plain Layout
12324 ClassOptions
12325 \end_layout
12326
12327 \end_inset
12328
12329  section must end with 
12330 \begin_inset Quotes eld
12331 \end_inset
12332
12333
12334 \begin_inset Flex Code
12335 status collapsed
12336
12337 \begin_layout Plain Layout
12338 End
12339 \end_layout
12340
12341 \end_inset
12342
12343
12344 \begin_inset Quotes erd
12345 \end_inset
12346
12347 .
12348 \end_layout
12349
12350 \begin_layout Subsection
12351 Paragraph styles
12352 \begin_inset CommandInset label
12353 LatexCommand label
12354 name "subsec:Paragraph-Styles"
12355
12356 \end_inset
12357
12358
12359 \end_layout
12360
12361 \begin_layout Standard
12362 A paragraph style description looks like this:
12363 \begin_inset Foot
12364 status collapsed
12365
12366 \begin_layout Plain Layout
12367 Note that this will either define a new style or modify an existing one.
12368 \end_layout
12369
12370 \end_inset
12371
12372
12373 \end_layout
12374
12375 \begin_layout LyX-Code
12376 Style 
12377 \family roman
12378 \emph on
12379 name
12380 \end_layout
12381
12382 \begin_layout LyX-Code
12383  ...
12384 \end_layout
12385
12386 \begin_layout LyX-Code
12387 End
12388 \end_layout
12389
12390 \begin_layout Standard
12391 where the following commands are allowed:
12392 \end_layout
12393
12394 \begin_layout Description
12395 \begin_inset Flex Code
12396 status collapsed
12397
12398 \begin_layout Plain Layout
12399 AddToToc
12400 \end_layout
12401
12402 \end_inset
12403
12404  [
12405 \begin_inset Flex Code
12406 status collapsed
12407
12408 \begin_layout Plain Layout
12409 string
12410 \end_layout
12411
12412 \end_inset
12413
12414 =""] This paragraph will appear in the table of contents of the given type.
12415  An empty string disables.
12416  See also the OutlinerName and the IsTocCaption commands.
12417  Default: disabled.
12418 \end_layout
12419
12420 \begin_layout Description
12421 \begin_inset Flex Code
12422 status collapsed
12423
12424 \begin_layout Plain Layout
12425 Align
12426 \end_layout
12427
12428 \end_inset
12429
12430  [
12431 \begin_inset Flex Code
12432 status collapsed
12433
12434 \begin_layout Plain Layout
12435
12436 \emph on
12437 block
12438 \emph default
12439 , left, right, center
12440 \end_layout
12441
12442 \end_inset
12443
12444 ] Paragraph alignment.
12445 \end_layout
12446
12447 \begin_layout Description
12448 \begin_inset Flex Code
12449 status collapsed
12450
12451 \begin_layout Plain Layout
12452 AlignPossible
12453 \end_layout
12454
12455 \end_inset
12456
12457  [
12458 \begin_inset Flex Code
12459 status collapsed
12460
12461 \begin_layout Plain Layout
12462
12463 \emph on
12464 block
12465 \emph default
12466 , left, right, center
12467 \end_layout
12468
12469 \end_inset
12470
12471 ] A comma separated list of permitted alignments.
12472  (Some \SpecialChar LaTeX
12473  styles prohibit certain alignments, since those wouldn't make sense.
12474  For example a right-aligned or centered enumeration isn't possible.)
12475 \end_layout
12476
12477 \begin_layout Description
12478 \begin_inset Flex Code
12479 status collapsed
12480
12481 \begin_layout Plain Layout
12482 Argument
12483 \end_layout
12484
12485 \end_inset
12486
12487  [
12488 \begin_inset Flex Code
12489 status collapsed
12490
12491 \begin_layout Plain Layout
12492 int
12493 \end_layout
12494
12495 \end_inset
12496
12497 ] Defines argument number <int> of a command\SpecialChar breakableslash
12498 environment associated with
12499  the current style.
12500  This is useful for things like section headings, and only makes sense with
12501  \SpecialChar LaTeX
12502 .
12503  Every (optional or required) argument of a command or environment – except
12504  for the required argument that is associated with the content of the paragraph
12505  itself – has a separate definition, where the number specifies the order
12506  of the arguments.
12507  The definition must end with 
12508 \begin_inset Flex Code
12509 status collapsed
12510
12511 \begin_layout Plain Layout
12512 EndArgument
12513 \end_layout
12514
12515 \end_inset
12516
12517 .
12518  So a command with two optional arguments has:
12519 \end_layout
12520
12521 \begin_deeper
12522 \begin_layout Quote
12523
12524 \family typewriter
12525 Argument 1
12526 \end_layout
12527
12528 \begin_layout Quote
12529
12530 \family typewriter
12531 ...
12532 \end_layout
12533
12534 \begin_layout Quote
12535
12536 \family typewriter
12537 EndArgument
12538 \end_layout
12539
12540 \begin_layout Quote
12541
12542 \family typewriter
12543 Argument 2
12544 \end_layout
12545
12546 \begin_layout Quote
12547
12548 \family typewriter
12549 ...
12550 \end_layout
12551
12552 \begin_layout Quote
12553
12554 \family typewriter
12555 EndArgument
12556 \end_layout
12557
12558 \begin_layout Standard
12559 Inside the 
12560 \begin_inset Flex Code
12561 status collapsed
12562
12563 \begin_layout Plain Layout
12564 Argument
12565 \end_layout
12566
12567 \end_inset
12568
12569  definition, the following specifications are possible:
12570 \end_layout
12571
12572 \begin_layout Itemize
12573 \begin_inset Flex Code
12574 status collapsed
12575
12576 \begin_layout Plain Layout
12577 LabelString
12578 \end_layout
12579
12580 \end_inset
12581
12582  
12583 \begin_inset Flex Code
12584 status collapsed
12585
12586 \begin_layout Plain Layout
12587 [string]
12588 \end_layout
12589
12590 \end_inset
12591
12592  The string that will appear both in the menu (to insert this argument)
12593  and on the argument inset button (unless you also specify a separate 
12594 \begin_inset Flex Code
12595 status collapsed
12596
12597 \begin_layout Plain Layout
12598 MenuString
12599 \end_layout
12600
12601 \end_inset
12602
12603 ).
12604  For the menu, you can define an accelerator by appending the respective
12605  character to the string, divided by 
12606 \begin_inset Quotes eld
12607 \end_inset
12608
12609 |
12610 \begin_inset Quotes erd
12611 \end_inset
12612
12613  (e.
12614 \begin_inset space \thinspace{}
12615 \end_inset
12616
12617 g.
12618 \begin_inset space \space{}
12619 \end_inset
12620
12621
12622 \begin_inset Quotes eld
12623 \end_inset
12624
12625
12626 \begin_inset Flex Code
12627 status collapsed
12628
12629 \begin_layout Plain Layout
12630 Short Title|S
12631 \end_layout
12632
12633 \end_inset
12634
12635
12636 \begin_inset Quotes erd
12637 \end_inset
12638
12639 ).
12640 \end_layout
12641
12642 \begin_layout Itemize
12643 \begin_inset Flex Code
12644 status collapsed
12645
12646 \begin_layout Plain Layout
12647 MenuString
12648 \end_layout
12649
12650 \end_inset
12651
12652  
12653 \begin_inset Flex Code
12654 status collapsed
12655
12656 \begin_layout Plain Layout
12657 [string]
12658 \end_layout
12659
12660 \end_inset
12661
12662  A separate string for the menu.
12663  You can define an accelerator by appending the respective character to
12664  the string, divided by 
12665 \begin_inset Quotes eld
12666 \end_inset
12667
12668 |
12669 \begin_inset Quotes erd
12670 \end_inset
12671
12672  (e.
12673 \begin_inset space \thinspace{}
12674 \end_inset
12675
12676 g.
12677 \begin_inset space \space{}
12678 \end_inset
12679
12680
12681 \begin_inset Quotes eld
12682 \end_inset
12683
12684
12685 \begin_inset Flex Code
12686 status collapsed
12687
12688 \begin_layout Plain Layout
12689 Short Title|S
12690 \end_layout
12691
12692 \end_inset
12693
12694
12695 \begin_inset Quotes erd
12696 \end_inset
12697
12698 ).
12699  This specification is optional.
12700  If it is not given the 
12701 \begin_inset Flex Code
12702 status collapsed
12703
12704 \begin_layout Plain Layout
12705 LabelString
12706 \end_layout
12707
12708 \end_inset
12709
12710  will be used instead for the menu.
12711 \end_layout
12712
12713 \begin_layout Itemize
12714 \begin_inset Flex Code
12715 status collapsed
12716
12717 \begin_layout Plain Layout
12718 Tooltip
12719 \end_layout
12720
12721 \end_inset
12722
12723  
12724 \begin_inset Flex Code
12725 status collapsed
12726
12727 \begin_layout Plain Layout
12728 [string]
12729 \end_layout
12730
12731 \end_inset
12732
12733  A longer explanatory text that appears in the tooltip when hovering over
12734  the argument inset.
12735 \end_layout
12736
12737 \begin_layout Itemize
12738 \begin_inset Flex Code
12739 status collapsed
12740
12741 \begin_layout Plain Layout
12742 Mandatory
12743 \end_layout
12744
12745 \end_inset
12746
12747  [
12748 \begin_inset Flex Code
12749 status collapsed
12750
12751 \begin_layout Plain Layout
12752
12753 \emph on
12754 0
12755 \end_layout
12756
12757 \end_inset
12758
12759 ,
12760 \begin_inset space \thinspace{}
12761 \end_inset
12762
12763
12764 \begin_inset Flex Code
12765 status collapsed
12766
12767 \begin_layout Plain Layout
12768 1
12769 \end_layout
12770
12771 \end_inset
12772
12773 ] Declare if this is a mandatory (1) or an optional (0) argument.
12774  Mandatory arguments will be output empty if not given, while optional arguments
12775  will not be output at all.
12776  By default, mandatory arguments are delimited by 
12777 \begin_inset Flex Code
12778 status collapsed
12779
12780 \begin_layout Plain Layout
12781 {...}
12782 \end_layout
12783
12784 \end_inset
12785
12786 , while optional arguments are delimited by 
12787 \begin_inset Flex Code
12788 status collapsed
12789
12790 \begin_layout Plain Layout
12791 [...]
12792 \end_layout
12793
12794 \end_inset
12795
12796
12797 \change_inserted -712698321 1555579782
12798
12799 \end_layout
12800
12801 \begin_layout Itemize
12802
12803 \change_inserted -712698321 1555579780
12804 \begin_inset Flex Code
12805 status collapsed
12806
12807 \begin_layout Plain Layout
12808
12809 \change_inserted -712698321 1555579780
12810 NewlineCmd
12811 \change_unchanged
12812
12813 \end_layout
12814
12815 \end_inset
12816
12817  
12818 \begin_inset Flex Code
12819 status collapsed
12820
12821 \begin_layout Plain Layout
12822
12823 \change_inserted -712698321 1555579780
12824 [string]
12825 \change_unchanged
12826
12827 \end_layout
12828
12829 \end_inset
12830
12831  Option to define a different command (from the default 
12832 \begin_inset Flex Code
12833 status collapsed
12834
12835 \begin_layout Plain Layout
12836
12837 \change_inserted -712698321 1555579780
12838
12839 \backslash
12840
12841 \backslash
12842
12843 \change_unchanged
12844
12845 \end_layout
12846
12847 \end_inset
12848
12849 ) to be used for line breaks.
12850  The initial backslash must not be specified.
12851 \change_unchanged
12852
12853 \end_layout
12854
12855 \begin_layout Itemize
12856 \begin_inset Flex Code
12857 status collapsed
12858
12859 \begin_layout Plain Layout
12860 Requires
12861 \end_layout
12862
12863 \end_inset
12864
12865  
12866 \begin_inset Flex Code
12867 status collapsed
12868
12869 \begin_layout Plain Layout
12870 [int=0]
12871 \end_layout
12872
12873 \end_inset
12874
12875  defines another argument (by its number) which this argument requires to
12876  be output if it is itself output.
12877  E.
12878 \begin_inset space \thinspace{}
12879 \end_inset
12880
12881 g., in \SpecialChar LaTeX
12882  commands, optional arguments often require previous optional arguments
12883  to be output (at least empty), as in 
12884 \begin_inset Flex Code
12885 status collapsed
12886
12887 \begin_layout Plain Layout
12888
12889 \backslash
12890 command[][argument]{text}
12891 \end_layout
12892
12893 \end_inset
12894
12895 .
12896  This can be achieved by the statement 
12897 \begin_inset Flex Code
12898 status collapsed
12899
12900 \begin_layout Plain Layout
12901 Requires 1
12902 \end_layout
12903
12904 \end_inset
12905
12906  within 
12907 \begin_inset Flex Code
12908 status collapsed
12909
12910 \begin_layout Plain Layout
12911 Argument 2
12912 \end_layout
12913
12914 \end_inset
12915
12916 .
12917 \end_layout
12918
12919 \begin_layout Itemize
12920 \begin_inset Flex Code
12921 status collapsed
12922
12923 \begin_layout Plain Layout
12924 LeftDelim
12925 \end_layout
12926
12927 \end_inset
12928
12929  
12930 \begin_inset Flex Code
12931 status collapsed
12932
12933 \begin_layout Plain Layout
12934 [string]
12935 \end_layout
12936
12937 \end_inset
12938
12939  defines a custom left delimiter (instead of 
12940 \begin_inset Flex Code
12941 status collapsed
12942
12943 \begin_layout Plain Layout
12944 {
12945 \end_layout
12946
12947 \end_inset
12948
12949  or 
12950 \begin_inset Flex Code
12951 status collapsed
12952
12953 \begin_layout Plain Layout
12954 [
12955 \end_layout
12956
12957 \end_inset
12958
12959 ).
12960  A line break in the output can be indicated by 
12961 \begin_inset Flex Code
12962 status collapsed
12963
12964 \begin_layout Plain Layout
12965 <br/>
12966 \end_layout
12967
12968 \end_inset
12969
12970 .
12971 \end_layout
12972
12973 \begin_layout Itemize
12974 \begin_inset Flex Code
12975 status collapsed
12976
12977 \begin_layout Plain Layout
12978 RightDelim
12979 \end_layout
12980
12981 \end_inset
12982
12983  
12984 \begin_inset Flex Code
12985 status collapsed
12986
12987 \begin_layout Plain Layout
12988 [string]
12989 \end_layout
12990
12991 \end_inset
12992
12993  defines a custom right delimiter (instead of 
12994 \begin_inset Flex Code
12995 status collapsed
12996
12997 \begin_layout Plain Layout
12998 }
12999 \end_layout
13000
13001 \end_inset
13002
13003  or 
13004 \begin_inset Flex Code
13005 status collapsed
13006
13007 \begin_layout Plain Layout
13008 ]
13009 \end_layout
13010
13011 \end_inset
13012
13013 ).
13014  A line break in the output can be indicated by 
13015 \begin_inset Flex Code
13016 status collapsed
13017
13018 \begin_layout Plain Layout
13019 <br/>
13020 \end_layout
13021
13022 \end_inset
13023
13024 .
13025 \end_layout
13026
13027 \begin_layout Itemize
13028 \begin_inset Flex Code
13029 status collapsed
13030
13031 \begin_layout Plain Layout
13032 DefaultArg
13033 \end_layout
13034
13035 \end_inset
13036
13037  
13038 \begin_inset Flex Code
13039 status collapsed
13040
13041 \begin_layout Plain Layout
13042 [string]
13043 \end_layout
13044
13045 \end_inset
13046
13047  defines an argument that is inserted if and only if no user-specified arguments
13048  were given, i.
13049 \begin_inset space \thinspace{}
13050 \end_inset
13051
13052 e.
13053 \begin_inset space \space{}
13054 \end_inset
13055
13056 if no argument inset has been inserted (note that also an empty argument
13057  inset omits the DefaultArg).
13058  Multiple arguments need to be separated by comma.
13059 \end_layout
13060
13061 \begin_layout Itemize
13062 \begin_inset Flex Code
13063 status collapsed
13064
13065 \begin_layout Plain Layout
13066 PresetArg
13067 \end_layout
13068
13069 \end_inset
13070
13071  
13072 \begin_inset Flex Code
13073 status collapsed
13074
13075 \begin_layout Plain Layout
13076 [string]
13077 \end_layout
13078
13079 \end_inset
13080
13081  defines an argument that is inserted in any case (alone or in addition
13082  to user-specified arguments).
13083  Multiple arguments need to be separated by comma.
13084 \end_layout
13085
13086 \begin_layout Itemize
13087 \begin_inset Flex Code
13088 status collapsed
13089
13090 \begin_layout Plain Layout
13091 Font
13092 \end_layout
13093
13094 \end_inset
13095
13096  The font used for the argument content, see 
13097 \begin_inset CommandInset ref
13098 LatexCommand ref
13099 reference "subsec:Font-description"
13100
13101 \end_inset
13102
13103 .
13104 \change_inserted -712698321 1559484228
13105
13106 \end_layout
13107
13108 \begin_layout Itemize
13109
13110 \change_inserted -712698321 1559484228
13111 \begin_inset Flex Code
13112 status collapsed
13113
13114 \begin_layout Plain Layout
13115
13116 \change_inserted -712698321 1559484228
13117 FreeSpacing
13118 \change_unchanged
13119
13120 \end_layout
13121
13122 \end_inset
13123
13124  [
13125 \begin_inset Flex Code
13126 status collapsed
13127
13128 \begin_layout Plain Layout
13129
13130 \change_inserted -712698321 1559484228
13131
13132 \emph on
13133 0
13134 \change_unchanged
13135
13136 \end_layout
13137
13138 \end_inset
13139
13140 ,
13141 \begin_inset space \thinspace{}
13142 \end_inset
13143
13144
13145 \begin_inset Flex Code
13146 status collapsed
13147
13148 \begin_layout Plain Layout
13149
13150 \change_inserted -712698321 1559484228
13151 1
13152 \change_unchanged
13153
13154 \end_layout
13155
13156 \end_inset
13157
13158 ] As with paragraph styles, see 
13159 \begin_inset CommandInset ref
13160 LatexCommand ref
13161 reference "subsec:Paragraph-Styles"
13162
13163 \end_inset
13164
13165 .
13166 \change_unchanged
13167
13168 \end_layout
13169
13170 \begin_layout Itemize
13171 \begin_inset Flex Code
13172 status collapsed
13173
13174 \begin_layout Plain Layout
13175 LabelFont
13176 \end_layout
13177
13178 \end_inset
13179
13180  The font used for the label; see 
13181 \begin_inset CommandInset ref
13182 LatexCommand ref
13183 reference "subsec:Font-description"
13184
13185 \end_inset
13186
13187 .
13188 \end_layout
13189
13190 \begin_layout Itemize
13191 \begin_inset Flex Code
13192 status collapsed
13193
13194 \begin_layout Plain Layout
13195 Decoration
13196 \end_layout
13197
13198 \end_inset
13199
13200  [
13201 \begin_inset Flex Code
13202 status collapsed
13203
13204 \begin_layout Plain Layout
13205
13206 \emph on
13207 Classic
13208 \emph default
13209 , Minimalistic, Conglomerate
13210 \end_layout
13211
13212 \end_inset
13213
13214 ] describes the rendering style used for the inset's frame and buttons.
13215 \end_layout
13216
13217 \begin_layout Itemize
13218 \begin_inset Flex Code
13219 status collapsed
13220
13221 \begin_layout Plain Layout
13222 AutoInsert
13223 \end_layout
13224
13225 \end_inset
13226
13227  
13228 \begin_inset Flex Code
13229 status collapsed
13230
13231 \begin_layout Plain Layout
13232 [int=0]
13233 \end_layout
13234
13235 \end_inset
13236
13237  If this is set to 
13238 \begin_inset Flex Code
13239 status collapsed
13240
13241 \begin_layout Plain Layout
13242 1
13243 \end_layout
13244
13245 \end_inset
13246
13247 , this argument is automatically inserted when the respective style is selected.
13248
13249 \change_deleted -712698321 1559484200
13250  Currently, only one argument per style\SpecialChar breakableslash
13251 layout can be automatically inserted.
13252 \change_unchanged
13253
13254 \end_layout
13255
13256 \begin_layout Itemize
13257
13258 \change_inserted -712698321 1559491402
13259 \begin_inset Flex Code
13260 status collapsed
13261
13262 \begin_layout Plain Layout
13263
13264 \change_inserted -712698321 1559490711
13265 InsertOnNewline
13266 \change_unchanged
13267
13268 \end_layout
13269
13270 \end_inset
13271
13272  
13273 \begin_inset Flex Code
13274 status collapsed
13275
13276 \begin_layout Plain Layout
13277
13278 \change_inserted -712698321 1559490703
13279 [int=0]
13280 \change_unchanged
13281
13282 \end_layout
13283
13284 \end_inset
13285
13286  If this is set to 
13287 \begin_inset Flex Code
13288 status collapsed
13289
13290 \begin_layout Plain Layout
13291
13292 \change_inserted -712698321 1559490703
13293 1
13294 \change_unchanged
13295
13296 \end_layout
13297
13298 \end_inset
13299
13300 , this argument will be inserted on a new line with 
13301 \begin_inset Flex Code
13302 status collapsed
13303
13304 \begin_layout Plain Layout
13305
13306 \change_inserted -712698321 1559491402
13307 AutoInsert
13308 \change_unchanged
13309
13310 \end_layout
13311
13312 \end_inset
13313
13314  (only available within Flex insets).
13315 \end_layout
13316
13317 \begin_layout Itemize
13318 \begin_inset Flex Code
13319 status collapsed
13320
13321 \begin_layout Plain Layout
13322 InsertCotext
13323 \end_layout
13324
13325 \end_inset
13326
13327  
13328 \begin_inset Flex Code
13329 status collapsed
13330
13331 \begin_layout Plain Layout
13332 [int=0]
13333 \end_layout
13334
13335 \end_inset
13336
13337  If this is set to 
13338 \begin_inset Flex Code
13339 status collapsed
13340
13341 \begin_layout Plain Layout
13342 1
13343 \end_layout
13344
13345 \end_inset
13346
13347 , this argument will be inserted with a copy of the co-text (either selected
13348  text or the whole paragraph) as content.
13349 \end_layout
13350
13351 \begin_layout Itemize
13352 \begin_inset Flex Code
13353 status collapsed
13354
13355 \begin_layout Plain Layout
13356 PassThru
13357 \end_layout
13358
13359 \end_inset
13360
13361  [
13362 \begin_inset Flex Code
13363 status collapsed
13364
13365 \begin_layout Plain Layout
13366
13367 \emph on
13368 inherited
13369 \emph default
13370 , true, false
13371 \end_layout
13372
13373 \end_inset
13374
13375 ] Whether the contents of this argument should be output in raw form, meaning
13376  without special translations that \SpecialChar LaTeX
13377  would require.
13378  By default, the 
13379 \begin_inset Flex Code
13380 status collapsed
13381
13382 \begin_layout Plain Layout
13383 PassThru
13384 \end_layout
13385
13386 \end_inset
13387
13388  status is inherited by the inset or paragraph layout the argument belongs
13389  to, true and false change the status for the given argument only.
13390 \end_layout
13391
13392 \begin_layout Itemize
13393 \begin_inset Flex Code
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397 PassThruChars
13398 \end_layout
13399
13400 \end_inset
13401
13402  [
13403 \begin_inset Flex Code
13404 status collapsed
13405
13406 \begin_layout Plain Layout
13407 string of characters
13408 \end_layout
13409
13410 \end_inset
13411
13412 ]
13413 \family typewriter
13414  
13415 \family default
13416 Defines individual characters
13417 \begin_inset Newline linebreak
13418 \end_inset
13419
13420 that should be output in raw form, meaning without special translations
13421  that \SpecialChar LaTeX
13422  would require.
13423  Note that, contrary to PassThru, this needs to be explicitly defined for
13424  arguments.
13425  That is, arguments do not inherit PassThruChars from their parent inset
13426  or layout.
13427 \end_layout
13428
13429 \begin_layout Itemize
13430 \begin_inset Flex Code
13431 status collapsed
13432
13433 \begin_layout Plain Layout
13434 IsTocCaption
13435 \end_layout
13436
13437 \end_inset
13438
13439  [
13440 \begin_inset Flex Code
13441 status collapsed
13442
13443 \begin_layout Plain Layout
13444
13445 \emph on
13446 0
13447 \end_layout
13448
13449 \end_inset
13450
13451 ,
13452 \begin_inset space \thinspace{}
13453 \end_inset
13454
13455
13456 \begin_inset Flex Code
13457 status collapsed
13458
13459 \begin_layout Plain Layout
13460 1
13461 \end_layout
13462
13463 \end_inset
13464
13465 ] If this is set to 1, the argument will output its content in the corresponding
13466  item in the table of contents.
13467  See AddToToc.
13468 \end_layout
13469
13470 \begin_layout Standard
13471 By default, the text entered in the \SpecialChar LyX
13472  workarea in the respective layout is
13473  the last (mandatory) argument of a command if the 
13474 \begin_inset Flex Code
13475 status collapsed
13476
13477 \begin_layout Plain Layout
13478 LatexType
13479 \end_layout
13480
13481 \end_inset
13482
13483  is 
13484 \begin_inset Flex Code
13485 status collapsed
13486
13487 \begin_layout Plain Layout
13488 Command
13489 \end_layout
13490
13491 \end_inset
13492
13493 .
13494  However, arguments with the prefix 
13495 \begin_inset Flex Code
13496 status collapsed
13497
13498 \begin_layout Plain Layout
13499 post:
13500 \end_layout
13501
13502 \end_inset
13503
13504  are output after this workarea argument.
13505  Note that post-argument numbering restarts at 1, so the first argument
13506  following the workarea argument is 
13507 \begin_inset Flex Code
13508 status collapsed
13509
13510 \begin_layout Plain Layout
13511 post:1
13512 \end_layout
13513
13514 \end_inset
13515
13516 .
13517  Post-arguments are ignored in any other 
13518 \begin_inset Flex Code
13519 status collapsed
13520
13521 \begin_layout Plain Layout
13522 LatexType
13523 \end_layout
13524
13525 \end_inset
13526
13527  than 
13528 \begin_inset Flex Code
13529 status collapsed
13530
13531 \begin_layout Plain Layout
13532 Command
13533 \end_layout
13534
13535 \end_inset
13536
13537 .
13538 \end_layout
13539
13540 \begin_layout Standard
13541 Arguments for list 
13542 \begin_inset Flex Code
13543 status collapsed
13544
13545 \begin_layout Plain Layout
13546
13547 \backslash
13548 item
13549 \end_layout
13550
13551 \end_inset
13552
13553 s (as in 
13554 \begin_inset Flex Code
13555 status collapsed
13556
13557 \begin_layout Plain Layout
13558
13559 \backslash
13560 item[foo]
13561 \end_layout
13562
13563 \end_inset
13564
13565 ) have the prefix 
13566 \begin_inset Flex Code
13567 status collapsed
13568
13569 \begin_layout Plain Layout
13570 item:
13571 \end_layout
13572
13573 \end_inset
13574
13575  followed by the number (e.
13576 \begin_inset space \thinspace{}
13577 \end_inset
13578
13579 g.
13580 \begin_inset space \space{}
13581 \end_inset
13582
13583
13584 \begin_inset Flex Code
13585 status collapsed
13586
13587 \begin_layout Plain Layout
13588 Argument item:1
13589 \end_layout
13590
13591 \end_inset
13592
13593 ).
13594 \change_inserted -712698321 1534487781
13595
13596 \end_layout
13597
13598 \begin_layout Standard
13599
13600 \change_inserted -712698321 1534488561
13601 Finally, there is a special argument type with the prefix 
13602 \begin_inset Flex Code
13603 status collapsed
13604
13605 \begin_layout Plain Layout
13606
13607 \change_inserted -712698321 1534487844
13608 listpreamble:
13609 \change_unchanged
13610
13611 \end_layout
13612
13613 \end_inset
13614
13615 .
13616  It is not really an argument, but uses the argument interface (thus, the
13617  prefix is also followed by a number, e.
13618 \begin_inset space \thinspace{}
13619 \end_inset
13620
13621 g.
13622  
13623 \begin_inset Flex Code
13624 status collapsed
13625
13626 \begin_layout Plain Layout
13627
13628 \change_inserted -712698321 1534488412
13629 Argument listpreamble:1
13630 \change_unchanged
13631
13632 \end_layout
13633
13634 \end_inset
13635
13636 ).
13637  As the name implies, it is targeted at lists such as 
13638 \family sans
13639 Itemize
13640 \family default
13641
13642 \family sans
13643 Enumerate
13644 \family default
13645
13646 \family sans
13647 Description
13648 \family default
13649 , or 
13650 \family sans
13651 Bibliography
13652 \family default
13653 .
13654  Its content will be output at the list start, before the first 
13655 \begin_inset Flex Code
13656 status collapsed
13657
13658 \begin_layout Plain Layout
13659
13660 \change_inserted -712698321 1534488058
13661
13662 \backslash
13663 item
13664 \change_unchanged
13665
13666 \end_layout
13667
13668 \end_inset
13669
13670 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13671 ).
13672  This way, users can insert redefinitions (of lengths etc.) to individual
13673  lists.
13674  By default, these arguments do not have a delimiter.
13675 \change_unchanged
13676
13677 \end_layout
13678
13679 \end_deeper
13680 \begin_layout Description
13681 \begin_inset Flex Code
13682 status collapsed
13683
13684 \begin_layout Plain Layout
13685 AutoNests
13686 \end_layout
13687
13688 \end_inset
13689
13690  Includes a comma-separated list of layouts that should be nested in and
13691  after the current layout.
13692  Only makes sense for nestable layouts (such as environments).
13693  Must be ended by 
13694 \begin_inset Quotes eld
13695 \end_inset
13696
13697
13698 \begin_inset Flex Code
13699 status collapsed
13700
13701 \begin_layout Plain Layout
13702 EndAutoNests
13703 \end_layout
13704
13705 \end_inset
13706
13707
13708 \begin_inset Quotes erd
13709 \end_inset
13710
13711 .
13712  See also 
13713 \begin_inset Flex Code
13714 status collapsed
13715
13716 \begin_layout Plain Layout
13717 IsAutoNestedBy
13718 \end_layout
13719
13720 \end_inset
13721
13722 .
13723 \end_layout
13724
13725 \begin_layout Description
13726 \begin_inset Flex Code
13727 status collapsed
13728
13729 \begin_layout Plain Layout
13730 BabelPreamble
13731 \end_layout
13732
13733 \end_inset
13734
13735  Note that this will completely override any prior 
13736 \begin_inset Flex Code
13737 status collapsed
13738
13739 \begin_layout Plain Layout
13740 BabelPreamble
13741 \end_layout
13742
13743 \end_inset
13744
13745  declaration for this style.
13746  Must end with 
13747 \begin_inset Quotes eld
13748 \end_inset
13749
13750
13751 \begin_inset Flex Code
13752 status collapsed
13753
13754 \begin_layout Plain Layout
13755 EndBabelPreamble
13756 \end_layout
13757
13758 \end_inset
13759
13760
13761 \begin_inset Quotes erd
13762 \end_inset
13763
13764 .
13765  See 
13766 \begin_inset CommandInset ref
13767 LatexCommand ref
13768 reference "subsec:I18n"
13769
13770 \end_inset
13771
13772  for details on its use.
13773 \end_layout
13774
13775 \begin_layout Description
13776 \begin_inset Flex Code
13777 status collapsed
13778
13779 \begin_layout Plain Layout
13780 BottomSep
13781 \end_layout
13782
13783 \end_inset
13784
13785  [
13786 \begin_inset Flex Code
13787 status collapsed
13788
13789 \begin_layout Plain Layout
13790 float=0
13791 \end_layout
13792
13793 \end_inset
13794
13795 ]
13796 \begin_inset Foot
13797 status collapsed
13798
13799 \begin_layout Plain Layout
13800 Note that a `float' here is a real number, such as: 1.5.
13801 \end_layout
13802
13803 \end_inset
13804
13805  The vertical space with which the last of a chain of paragraphs with this
13806  style is separated from the following paragraph.
13807  If the next paragraph has another style, the separations are not simply
13808  added, but the maximum is taken.
13809 \end_layout
13810
13811 \begin_layout Description
13812 \begin_inset Flex Code
13813 status collapsed
13814
13815 \begin_layout Plain Layout
13816 Category
13817 \end_layout
13818
13819 \end_inset
13820
13821  [
13822 \begin_inset Flex Code
13823 status collapsed
13824
13825 \begin_layout Plain Layout
13826 string
13827 \end_layout
13828
13829 \end_inset
13830
13831 ] The category for this style.
13832  This is used to group related styles in the style combobox on the toolbar.
13833  Any string can be used, but you may want to use existing categories with
13834  your own styles.
13835  
13836 \end_layout
13837
13838 \begin_layout Description
13839 \begin_inset Flex Code
13840 status collapsed
13841
13842 \begin_layout Plain Layout
13843 CommandDepth
13844 \end_layout
13845
13846 \end_inset
13847
13848  Depth of XML command.
13849  Used only with XML-type formats.
13850 \end_layout
13851
13852 \begin_layout Description
13853 \begin_inset Flex Code
13854 status collapsed
13855
13856 \begin_layout Plain Layout
13857 CopyStyle
13858 \end_layout
13859
13860 \end_inset
13861
13862  [
13863 \begin_inset Flex Code
13864 status collapsed
13865
13866 \begin_layout Plain Layout
13867 string
13868 \end_layout
13869
13870 \end_inset
13871
13872 ] Copies all the features of an existing style into the current one.
13873  
13874 \end_layout
13875
13876 \begin_layout Description
13877 \begin_inset Flex Code
13878 status collapsed
13879
13880 \begin_layout Plain Layout
13881 DependsOn
13882 \end_layout
13883
13884 \end_inset
13885
13886  [
13887 \begin_inset Flex Code
13888 status collapsed
13889
13890 \begin_layout Plain Layout
13891 <name>
13892 \end_layout
13893
13894 \end_inset
13895
13896 ] The name of a style whose preamble should be output 
13897 \emph on
13898 before
13899 \emph default
13900  this one.
13901  This allows to ensure some ordering of the preamble snippets when macros
13902  definitions depend on one another.
13903 \begin_inset Foot
13904 status collapsed
13905
13906 \begin_layout Plain Layout
13907 Note that, besides that functionality, there is no way to ensure any ordering
13908  of preambles.
13909  The ordering that you see in a given version of \SpecialChar LyX
13910  may change without warning
13911  in later versions.
13912 \end_layout
13913
13914 \end_inset
13915
13916
13917 \end_layout
13918
13919 \begin_layout Description
13920 \begin_inset Flex Code
13921 status collapsed
13922
13923 \begin_layout Plain Layout
13924 EndLabeltype
13925 \end_layout
13926
13927 \end_inset
13928
13929  [
13930 \begin_inset Flex Code
13931 status collapsed
13932
13933 \begin_layout Plain Layout
13934
13935 \emph on
13936 No_Label
13937 \emph default
13938 , Box, Filled_Box, Static
13939 \end_layout
13940
13941 \end_inset
13942
13943 ] The type of label that stands at the end of the paragraph (or sequence
13944  of paragraphs if 
13945 \begin_inset Flex Code
13946 status collapsed
13947
13948 \begin_layout Plain Layout
13949 LatexType
13950 \end_layout
13951
13952 \end_inset
13953
13954  is
13955 \begin_inset Newline newline
13956 \end_inset
13957
13958
13959 \begin_inset Flex Code
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963 Environment
13964 \end_layout
13965
13966 \end_inset
13967
13968
13969 \begin_inset Flex Code
13970 status collapsed
13971
13972 \begin_layout Plain Layout
13973 Item_Environment
13974 \end_layout
13975
13976 \end_inset
13977
13978  or 
13979 \begin_inset Flex Code
13980 status collapsed
13981
13982 \begin_layout Plain Layout
13983 List_Environment
13984 \end_layout
13985
13986 \end_inset
13987
13988 ).
13989  
13990 \begin_inset Flex Code
13991 status collapsed
13992
13993 \begin_layout Plain Layout
13994 No_Label
13995 \end_layout
13996
13997 \end_inset
13998
13999  means 
14000 \begin_inset Quotes eld
14001 \end_inset
14002
14003 nothing
14004 \begin_inset Quotes erd
14005 \end_inset
14006
14007
14008 \begin_inset Flex Code
14009 status collapsed
14010
14011 \begin_layout Plain Layout
14012 Box
14013 \end_layout
14014
14015 \end_inset
14016
14017  (resp.
14018 \begin_inset space \space{}
14019 \end_inset
14020
14021
14022 \begin_inset Flex Code
14023 status collapsed
14024
14025 \begin_layout Plain Layout
14026 Filled_Box
14027 \end_layout
14028
14029 \end_inset
14030
14031 ) is a white (resp.
14032 \begin_inset space ~
14033 \end_inset
14034
14035 black) square suitable for end of proof markers, 
14036 \begin_inset Flex Code
14037 status collapsed
14038
14039 \begin_layout Plain Layout
14040 Static
14041 \end_layout
14042
14043 \end_inset
14044
14045  is an explicit text string.
14046 \end_layout
14047
14048 \begin_layout Description
14049 \begin_inset Flex Code
14050 status collapsed
14051
14052 \begin_layout Plain Layout
14053 EndLabelString
14054 \end_layout
14055
14056 \end_inset
14057
14058  [
14059 \begin_inset Flex Code
14060 status collapsed
14061
14062 \begin_layout Plain Layout
14063 string=""
14064 \end_layout
14065
14066 \end_inset
14067
14068 ] The string used for a label with a 
14069 \begin_inset Flex Code
14070 status collapsed
14071
14072 \begin_layout Plain Layout
14073 Static
14074 \end_layout
14075
14076 \end_inset
14077
14078
14079 \begin_inset Newline newline
14080 \end_inset
14081
14082
14083 \begin_inset Flex Code
14084 status collapsed
14085
14086 \begin_layout Plain Layout
14087 EndLabelType
14088 \end_layout
14089
14090 \end_inset
14091
14092 .
14093  
14094 \end_layout
14095
14096 \begin_layout Description
14097 \begin_inset Flex Code
14098 status collapsed
14099
14100 \begin_layout Plain Layout
14101 Font
14102 \end_layout
14103
14104 \end_inset
14105
14106  The font used for both the text body 
14107 \emph on
14108 and
14109 \emph default
14110  the label.
14111  See 
14112 \begin_inset CommandInset ref
14113 LatexCommand ref
14114 reference "subsec:Font-description"
14115
14116 \end_inset
14117
14118 .
14119  Note that defining this font automatically defines the 
14120 \begin_inset Flex Code
14121 status collapsed
14122
14123 \begin_layout Plain Layout
14124 LabelFont
14125 \end_layout
14126
14127 \end_inset
14128
14129  to the same value.
14130  So you should define this one first if you also want to define 
14131 \begin_inset Flex Code
14132 status collapsed
14133
14134 \begin_layout Plain Layout
14135 LabelFont
14136 \end_layout
14137
14138 \end_inset
14139
14140 .
14141 \end_layout
14142
14143 \begin_layout Description
14144 \begin_inset Flex Code
14145 status collapsed
14146
14147 \begin_layout Plain Layout
14148 ForceLocal
14149 \end_layout
14150
14151 \end_inset
14152
14153  [
14154 \begin_inset Flex Code
14155 status collapsed
14156
14157 \begin_layout Plain Layout
14158 int=0
14159 \end_layout
14160
14161 \end_inset
14162
14163 ] Used for backporting new styles to stable \SpecialChar LyX
14164  versions.
14165  The first stable version that supports this tag is \SpecialChar LyX
14166  2.1.0.
14167  The argument is a number which may either be 0, -1 or any value greater
14168  than zero.
14169  If the 
14170 \begin_inset Flex Code
14171 status collapsed
14172
14173 \begin_layout Plain Layout
14174 ForceLocal
14175 \end_layout
14176
14177 \end_inset
14178
14179  flag of a style is greater than zero, it will always be written to the
14180  document header.
14181  If a .lyx file is read, the style definitions from the document header are
14182  added to the document class.
14183  Therefore even older \SpecialChar LyX
14184  versions can handle the style.
14185  The argument of 
14186 \begin_inset Flex Code
14187 status collapsed
14188
14189 \begin_layout Plain Layout
14190 ForceLocal
14191 \end_layout
14192
14193 \end_inset
14194
14195  is a version number: if the style is read, and the version number is less
14196  than the version number of the already existing style in the document class,
14197  the new style is ignored.
14198  If the version number is greater, the new style replaces the existing style.
14199  A value of -1 means an infinite version number, i.
14200 \begin_inset space \thinspace{}
14201 \end_inset
14202
14203 e.
14204 \begin_inset space \space{}
14205 \end_inset
14206
14207 the style is always used.
14208 \end_layout
14209
14210 \begin_layout Description
14211 \begin_inset Flex Code
14212 status collapsed
14213
14214 \begin_layout Plain Layout
14215 FreeSpacing
14216 \end_layout
14217
14218 \end_inset
14219
14220  [
14221 \begin_inset Flex Code
14222 status collapsed
14223
14224 \begin_layout Plain Layout
14225
14226 \emph on
14227 0
14228 \end_layout
14229
14230 \end_inset
14231
14232 ,
14233 \begin_inset space \thinspace{}
14234 \end_inset
14235
14236
14237 \begin_inset Flex Code
14238 status collapsed
14239
14240 \begin_layout Plain Layout
14241 1
14242 \end_layout
14243
14244 \end_inset
14245
14246 ] Usually \SpecialChar LyX
14247  does not allow you to insert more than one space between words,
14248  since a space is considered as the separation between two words, not a
14249  character or symbol of its own.
14250  This is a very fine thing but sometimes annoying, for example, when typing
14251  program code or plain \SpecialChar LaTeX
14252  code.
14253  For this reason, 
14254 \begin_inset Flex Code
14255 status collapsed
14256
14257 \begin_layout Plain Layout
14258 FreeSpacing
14259 \end_layout
14260
14261 \end_inset
14262
14263  can be enabled.
14264  
14265 \change_deleted -495245474 1550490105
14266 Note that 
14267 \change_unchanged
14268 \SpecialChar LyX
14269  will create protected blanks for the additional blanks when in 
14270 \change_inserted -495245474 1550490096
14271
14272 \begin_inset Flex Code
14273 status collapsed
14274
14275 \begin_layout Plain Layout
14276
14277 \change_inserted -495245474 1550490089
14278 Passthru 1
14279 \change_unchanged
14280
14281 \end_layout
14282
14283 \end_inset
14284
14285  is not specified.
14286 \change_deleted -495245474 1550490116
14287 another mode than \SpecialChar LaTeX
14288 -mode.
14289
14290 \change_inserted -495245474 1550247760
14291  Note that 
14292 \begin_inset Flex Code
14293 status collapsed
14294
14295 \begin_layout Plain Layout
14296
14297 \change_inserted -495245474 1550247736
14298 FreeSpacing
14299 \change_unchanged
14300
14301 \end_layout
14302
14303 \end_inset
14304
14305  implies 
14306 \begin_inset Flex Code
14307 status collapsed
14308
14309 \begin_layout Plain Layout
14310
14311 \change_inserted -495245474 1550247755
14312 KeepEmpty
14313 \change_unchanged
14314
14315 \end_layout
14316
14317 \end_inset
14318
14319 .
14320 \change_unchanged
14321
14322 \end_layout
14323
14324 \begin_layout Description
14325 \begin_inset Flex Code
14326 status collapsed
14327
14328 \begin_layout Plain Layout
14329 HTML*
14330 \end_layout
14331
14332 \end_inset
14333
14334  These tags are used with XHTML output.
14335  See 
14336 \begin_inset CommandInset ref
14337 LatexCommand ref
14338 reference "subsec:Paragraph-Style-XHTML"
14339
14340 \end_inset
14341
14342 .
14343 \end_layout
14344
14345 \begin_layout Description
14346 \begin_inset Flex Code
14347 status collapsed
14348
14349 \begin_layout Plain Layout
14350 InnerTag
14351 \end_layout
14352
14353 \end_inset
14354
14355  [FIXME] (Used only with XML-type formats.)
14356 \end_layout
14357
14358 \begin_layout Description
14359 \begin_inset Flex Code
14360 status collapsed
14361
14362 \begin_layout Plain Layout
14363 InPreamble
14364 \end_layout
14365
14366 \end_inset
14367
14368  [
14369 \begin_inset Flex Code
14370 status collapsed
14371
14372 \begin_layout Plain Layout
14373
14374 \emph on
14375 0
14376 \end_layout
14377
14378 \end_inset
14379
14380 ,
14381 \begin_inset space \thinspace{}
14382 \end_inset
14383
14384
14385 \begin_inset Flex Code
14386 status collapsed
14387
14388 \begin_layout Plain Layout
14389 1
14390 \end_layout
14391
14392 \end_inset
14393
14394 ] If 
14395 \begin_inset Flex Code
14396 status collapsed
14397
14398 \begin_layout Plain Layout
14399 1
14400 \end_layout
14401
14402 \end_inset
14403
14404 , marks the style as to be included in the document preamble and not in
14405  the document body.
14406  This is useful for document classes that want such information as the title
14407  and author to appear in the preamble.
14408  Note that this works only for styles for which the 
14409 \begin_inset Flex Code
14410 status collapsed
14411
14412 \begin_layout Plain Layout
14413 LatexType
14414 \end_layout
14415
14416 \end_inset
14417
14418  is 
14419 \begin_inset Flex Code
14420 status collapsed
14421
14422 \begin_layout Plain Layout
14423 Command
14424 \end_layout
14425
14426 \end_inset
14427
14428  or 
14429 \begin_inset Flex Code
14430 status collapsed
14431
14432 \begin_layout Plain Layout
14433 Paragraph
14434 \end_layout
14435
14436 \end_inset
14437
14438 .
14439 \end_layout
14440
14441 \begin_layout Description
14442 \begin_inset Flex Code
14443 status collapsed
14444
14445 \begin_layout Plain Layout
14446 InTitle
14447 \end_layout
14448
14449 \end_inset
14450
14451  [
14452 \begin_inset Flex Code
14453 status collapsed
14454
14455 \begin_layout Plain Layout
14456
14457 \emph on
14458 0
14459 \end_layout
14460
14461 \end_inset
14462
14463 ,
14464 \begin_inset space \thinspace{}
14465 \end_inset
14466
14467
14468 \begin_inset Flex Code
14469 status collapsed
14470
14471 \begin_layout Plain Layout
14472 1
14473 \end_layout
14474
14475 \end_inset
14476
14477 ] If 
14478 \begin_inset Flex Code
14479 status collapsed
14480
14481 \begin_layout Plain Layout
14482 1
14483 \end_layout
14484
14485 \end_inset
14486
14487 , marks the style as being part of a title block (see also the 
14488 \begin_inset Flex Code
14489 status collapsed
14490
14491 \begin_layout Plain Layout
14492 TitleLatexType
14493 \end_layout
14494
14495 \end_inset
14496
14497  and 
14498 \begin_inset Flex Code
14499 status collapsed
14500
14501 \begin_layout Plain Layout
14502 TitleLatexName
14503 \end_layout
14504
14505 \end_inset
14506
14507  global entries).
14508 \end_layout
14509
14510 \begin_layout Description
14511 \begin_inset Flex Code
14512 status collapsed
14513
14514 \begin_layout Plain Layout
14515 IsAutoNestedBy
14516 \end_layout
14517
14518 \end_inset
14519
14520  Includes a comma-separated list of layouts after which this one should
14521  be nested.
14522  Only makes sense with regard to nestable layouts (such as environments).
14523  Must be ended by 
14524 \begin_inset Quotes eld
14525 \end_inset
14526
14527
14528 \begin_inset Flex Code
14529 status collapsed
14530
14531 \begin_layout Plain Layout
14532 EndIsAutoNestedBy
14533 \end_layout
14534
14535 \end_inset
14536
14537
14538 \begin_inset Quotes erd
14539 \end_inset
14540
14541 .
14542  See also 
14543 \begin_inset Flex Code
14544 status collapsed
14545
14546 \begin_layout Plain Layout
14547 AutoNests
14548 \end_layout
14549
14550 \end_inset
14551
14552 .
14553 \end_layout
14554
14555 \begin_layout Description
14556 \begin_inset Flex Code
14557 status collapsed
14558
14559 \begin_layout Plain Layout
14560 IsTocCaption
14561 \end_layout
14562
14563 \end_inset
14564
14565  [
14566 \begin_inset Flex Code
14567 status collapsed
14568
14569 \begin_layout Plain Layout
14570
14571 \emph on
14572 0
14573 \end_layout
14574
14575 \end_inset
14576
14577 ,
14578 \begin_inset space \thinspace{}
14579 \end_inset
14580
14581
14582 \begin_inset Flex Code
14583 status collapsed
14584
14585 \begin_layout Plain Layout
14586 1
14587 \end_layout
14588
14589 \end_inset
14590
14591 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14592  of its contents in its item in the table of contents.
14593  Otherwise, only the label, if it exists, appears.
14594 \end_layout
14595
14596 \begin_layout Description
14597 \begin_inset Flex Code
14598 status collapsed
14599
14600 \begin_layout Plain Layout
14601 ItemCommand
14602 \end_layout
14603
14604 \end_inset
14605
14606  [
14607 \begin_inset Flex Code
14608 status collapsed
14609
14610 \begin_layout Plain Layout
14611 string="item"
14612 \end_layout
14613
14614 \end_inset
14615
14616 ] The \SpecialChar LaTeX
14617  command sequence declaring an item in a list.
14618  The command is to be defined without the preceding backslash (the default
14619  is 
14620 \begin_inset Quotes eld
14621 \end_inset
14622
14623 item
14624 \begin_inset Quotes erd
14625 \end_inset
14626
14627 , resulting in 
14628 \begin_inset Flex Code
14629 status collapsed
14630
14631 \begin_layout Plain Layout
14632
14633 \backslash
14634 item
14635 \end_layout
14636
14637 \end_inset
14638
14639  in the \SpecialChar LaTeX
14640  output).
14641 \end_layout
14642
14643 \begin_layout Description
14644 \begin_inset Flex Code
14645 status collapsed
14646
14647 \begin_layout Plain Layout
14648 ItemSep
14649 \end_layout
14650
14651 \end_inset
14652
14653  [
14654 \begin_inset Flex Code
14655 status collapsed
14656
14657 \begin_layout Plain Layout
14658 float=0
14659 \end_layout
14660
14661 \end_inset
14662
14663 ] This provides extra space between paragraphs that have the same style.
14664  If you put other styles into an environment, each is separated with the
14665  environment's 
14666 \begin_inset Flex Code
14667 status collapsed
14668
14669 \begin_layout Plain Layout
14670 ParSep
14671 \end_layout
14672
14673 \end_inset
14674
14675 .
14676  But the whole items of the environment are additionally separated with
14677  this 
14678 \begin_inset Flex Code
14679 status collapsed
14680
14681 \begin_layout Plain Layout
14682 ItemSep
14683 \end_layout
14684
14685 \end_inset
14686
14687 .
14688  Note that this is a
14689 \emph on
14690  multiplier.
14691 \end_layout
14692
14693 \begin_layout Description
14694 \begin_inset Flex Code
14695 status collapsed
14696
14697 \begin_layout Plain Layout
14698 ItemTag
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 KeepEmpty
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 ] Usually \SpecialChar LyX
14743  does not allow you to leave a paragraph empty, since it would
14744  lead to empty \SpecialChar LaTeX
14745  output.
14746  There are some cases where this could be desirable however: in a letter
14747  template, the required fields can be provided as empty fields, so that
14748  people do not forget them; in some special classes, a style can be used
14749  as some kind of break, which does not contain actual text.
14750 \end_layout
14751
14752 \begin_layout Description
14753 \begin_inset Flex Code
14754 status collapsed
14755
14756 \begin_layout Plain Layout
14757 LabelBottomsep
14758 \end_layout
14759
14760 \end_inset
14761
14762  [
14763 \begin_inset Flex Code
14764 status collapsed
14765
14766 \begin_layout Plain Layout
14767 float=0
14768 \end_layout
14769
14770 \end_inset
14771
14772 ] The vertical space between the label and the text body.
14773  Only used for labels that are above the text body (
14774 \begin_inset Flex Code
14775 status collapsed
14776
14777 \begin_layout Plain Layout
14778 Top_Environment
14779 \end_layout
14780
14781 \end_inset
14782
14783  and
14784 \begin_inset Newline newline
14785 \end_inset
14786
14787
14788 \begin_inset Flex Code
14789 status collapsed
14790
14791 \begin_layout Plain Layout
14792 Centered_Top_Environment
14793 \end_layout
14794
14795 \end_inset
14796
14797 ).
14798 \end_layout
14799
14800 \begin_layout Description
14801 \begin_inset Flex Code
14802 status collapsed
14803
14804 \begin_layout Plain Layout
14805 LabelCounter
14806 \end_layout
14807
14808 \end_inset
14809
14810  [
14811 \begin_inset Flex Code
14812 status collapsed
14813
14814 \begin_layout Plain Layout
14815 string=""
14816 \end_layout
14817
14818 \end_inset
14819
14820 ] The name of the counter for automatic numbering.
14821  In order to have the counter appear with your label, you will need to reference
14822  it in the 
14823 \begin_inset Flex Code
14824 status collapsed
14825
14826 \begin_layout Plain Layout
14827
14828 \family typewriter
14829 LabelString
14830 \end_layout
14831
14832 \end_inset
14833
14834 .
14835  This will work with 
14836 \begin_inset Flex Code
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840 LabelType
14841 \end_layout
14842
14843 \end_inset
14844
14845 s, 
14846 \begin_inset Flex Code
14847 status collapsed
14848
14849 \begin_layout Plain Layout
14850 Static
14851 \end_layout
14852
14853 \end_inset
14854
14855
14856 \begin_inset Flex Code
14857 status collapsed
14858
14859 \begin_layout Plain Layout
14860 Above
14861 \end_layout
14862
14863 \end_inset
14864
14865  and 
14866 \begin_inset Flex Code
14867 status collapsed
14868
14869 \begin_layout Plain Layout
14870 Centered
14871 \end_layout
14872
14873 \end_inset
14874
14875 , at least.
14876 \begin_inset Newline newline
14877 \end_inset
14878
14879 This 
14880 \emph on
14881 may
14882 \emph default
14883  also be given if 
14884 \begin_inset Flex Code
14885 status collapsed
14886
14887 \begin_layout Plain Layout
14888 LabelType
14889 \end_layout
14890
14891 \end_inset
14892
14893  is 
14894 \begin_inset Flex Code
14895 status collapsed
14896
14897 \begin_layout Plain Layout
14898 Enumerate
14899 \end_layout
14900
14901 \end_inset
14902
14903 , though this case is a bit complicated.
14904  Suppose you declare 
14905 \begin_inset Quotes eld
14906 \end_inset
14907
14908
14909 \begin_inset Flex Code
14910 status collapsed
14911
14912 \begin_layout Plain Layout
14913 LabelCounter myenum
14914 \end_layout
14915
14916 \end_inset
14917
14918
14919 \begin_inset Quotes erd
14920 \end_inset
14921
14922 .
14923  Then the actual counters used are 
14924 \begin_inset Flex Code
14925 status collapsed
14926
14927 \begin_layout Plain Layout
14928 myenumi
14929 \end_layout
14930
14931 \end_inset
14932
14933
14934 \begin_inset Flex Code
14935 status collapsed
14936
14937 \begin_layout Plain Layout
14938 myenumii
14939 \end_layout
14940
14941 \end_inset
14942
14943
14944 \begin_inset Flex Code
14945 status collapsed
14946
14947 \begin_layout Plain Layout
14948 myenumiii
14949 \end_layout
14950
14951 \end_inset
14952
14953  and 
14954 \begin_inset Flex Code
14955 status collapsed
14956
14957 \begin_layout Plain Layout
14958 myenumiv
14959 \end_layout
14960
14961 \end_inset
14962
14963 , much as in \SpecialChar LaTeX
14964 .
14965  These counters must all be declared separately.
14966 \begin_inset Newline newline
14967 \end_inset
14968
14969 See 
14970 \begin_inset CommandInset ref
14971 LatexCommand ref
14972 reference "subsec:Counters"
14973
14974 \end_inset
14975
14976  for details on counters.
14977 \end_layout
14978
14979 \begin_layout Description
14980 \begin_inset Flex Code
14981 status collapsed
14982
14983 \begin_layout Plain Layout
14984 LabelFont
14985 \end_layout
14986
14987 \end_inset
14988
14989  The font used for the label.
14990  See 
14991 \begin_inset CommandInset ref
14992 LatexCommand ref
14993 reference "subsec:Font-description"
14994
14995 \end_inset
14996
14997 .
14998 \end_layout
14999
15000 \begin_layout Description
15001 \begin_inset Flex Code
15002 status collapsed
15003
15004 \begin_layout Plain Layout
15005 LabelIndent
15006 \end_layout
15007
15008 \end_inset
15009
15010  [
15011 \begin_inset Flex Code
15012 status collapsed
15013
15014 \begin_layout Plain Layout
15015 string=""
15016 \end_layout
15017
15018 \end_inset
15019
15020 ] Text that indicates how far a label should be indented.
15021 \end_layout
15022
15023 \begin_layout Description
15024 \begin_inset Flex Code
15025 status collapsed
15026
15027 \begin_layout Plain Layout
15028 LabelSep
15029 \end_layout
15030
15031 \end_inset
15032
15033  [
15034 \begin_inset Flex Code
15035 status collapsed
15036
15037 \begin_layout Plain Layout
15038 string=""
15039 \end_layout
15040
15041 \end_inset
15042
15043 ] Text that indicates the amount of horizontal space between the label and
15044  the text body.
15045  Only used for labels that are not above the text body.
15046 \end_layout
15047
15048 \begin_layout Description
15049 \begin_inset Flex Code
15050 status collapsed
15051
15052 \begin_layout Plain Layout
15053 LabelString
15054 \end_layout
15055
15056 \end_inset
15057
15058  [
15059 \begin_inset Flex Code
15060 status collapsed
15061
15062 \begin_layout Plain Layout
15063 string=""
15064 \end_layout
15065
15066 \end_inset
15067
15068 ] The string used for the label.
15069  When 
15070 \begin_inset Flex Code
15071 status collapsed
15072
15073 \begin_layout Plain Layout
15074 LabelCounter
15075 \end_layout
15076
15077 \end_inset
15078
15079  is set, this string can be contain the special formatting commands described
15080  in 
15081 \begin_inset CommandInset ref
15082 LatexCommand ref
15083 reference "subsec:Counters"
15084
15085 \end_inset
15086
15087 .
15088 \end_layout
15089
15090 \begin_layout Description
15091 \begin_inset Flex Code
15092 status collapsed
15093
15094 \begin_layout Plain Layout
15095 LabelStringAppendix
15096 \end_layout
15097
15098 \end_inset
15099
15100  [
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105 string=""
15106 \end_layout
15107
15108 \end_inset
15109
15110 ] This is used inside the appendix instead of
15111 \begin_inset Newline newline
15112 \end_inset
15113
15114
15115 \begin_inset Flex Code
15116 status collapsed
15117
15118 \begin_layout Plain Layout
15119 LabelString
15120 \end_layout
15121
15122 \end_inset
15123
15124 .
15125  Note that every 
15126 \begin_inset Flex Code
15127 status collapsed
15128
15129 \begin_layout Plain Layout
15130 LabelString
15131 \end_layout
15132
15133 \end_inset
15134
15135  statement resets
15136 \begin_inset Newline newline
15137 \end_inset
15138
15139
15140 \begin_inset Flex Code
15141 status collapsed
15142
15143 \begin_layout Plain Layout
15144 LabelStringAppendix
15145 \end_layout
15146
15147 \end_inset
15148
15149  too.
15150 \end_layout
15151
15152 \begin_layout Description
15153 \begin_inset Flex Code
15154 status collapsed
15155
15156 \begin_layout Plain Layout
15157 LabelTag
15158 \end_layout
15159
15160 \end_inset
15161
15162  [FIXME] (Used only with XML-type formats.)
15163 \end_layout
15164
15165 \begin_layout Description
15166 \begin_inset Flex Code
15167 status collapsed
15168
15169 \begin_layout Plain Layout
15170 LabelType
15171 \end_layout
15172
15173 \end_inset
15174
15175  [
15176 \begin_inset Flex Code
15177 status collapsed
15178
15179 \begin_layout Plain Layout
15180
15181 \emph on
15182 No_Label
15183 \emph default
15184 , Manual, Static, Above, 
15185 \begin_inset Newline newline
15186 \end_inset
15187
15188 Centered, Sensitive, Enumerate,
15189 \begin_inset Newline newline
15190 \end_inset
15191
15192 Itemize, Bibliography
15193 \end_layout
15194
15195 \end_inset
15196
15197 ]
15198 \end_layout
15199
15200 \begin_deeper
15201 \begin_layout Description
15202 \begin_inset Flex Code
15203 status collapsed
15204
15205 \begin_layout Plain Layout
15206 Manual
15207 \end_layout
15208
15209 \end_inset
15210
15211  means the label is the very first word (up to the first real blank).
15212  Use protected spaces if you want more than one word as the label.
15213  
15214 \end_layout
15215
15216 \begin_layout Description
15217 \begin_inset Flex Code
15218 status collapsed
15219
15220 \begin_layout Plain Layout
15221 Static
15222 \end_layout
15223
15224 \end_inset
15225
15226  means the label is simply what is declared as 
15227 \begin_inset Flex Code
15228 status collapsed
15229
15230 \begin_layout Plain Layout
15231 LabelString
15232 \end_layout
15233
15234 \end_inset
15235
15236 .
15237  This will be displayed 
15238 \begin_inset Quotes eld
15239 \end_inset
15240
15241 inline
15242 \begin_inset Quotes erd
15243 \end_inset
15244
15245 , at the beginning of the paragraph.
15246  If the 
15247 \begin_inset Flex Code
15248 status collapsed
15249
15250 \begin_layout Plain Layout
15251 LatexType
15252 \end_layout
15253
15254 \end_inset
15255
15256  is 
15257 \begin_inset Flex Code
15258 status collapsed
15259
15260 \begin_layout Plain Layout
15261 Environment
15262 \end_layout
15263
15264 \end_inset
15265
15266 , then it will be displayed only in the first paragraph of any sequence
15267  of paragraphs with the same 
15268 \begin_inset Flex Code
15269 status collapsed
15270
15271 \begin_layout Plain Layout
15272 Style
15273 \end_layout
15274
15275 \end_inset
15276
15277 .
15278 \end_layout
15279
15280 \begin_layout Description
15281 \begin_inset Flex Code
15282 status collapsed
15283
15284 \begin_layout Plain Layout
15285 Above
15286 \end_layout
15287
15288 \end_inset
15289
15290
15291 \begin_inset space ~
15292 \end_inset
15293
15294 and
15295 \begin_inset space ~
15296 \end_inset
15297
15298
15299 \begin_inset Flex Code
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303 Centered
15304 \end_layout
15305
15306 \end_inset
15307
15308  are special cases of 
15309 \begin_inset Flex Code
15310 status collapsed
15311
15312 \begin_layout Plain Layout
15313 Static
15314 \end_layout
15315
15316 \end_inset
15317
15318 .
15319  The label will be printed above the paragraph either at the beginning of
15320  the line or centered.
15321 \end_layout
15322
15323 \begin_layout Description
15324 \begin_inset Flex Code
15325 status collapsed
15326
15327 \begin_layout Plain Layout
15328 Sensitive
15329 \end_layout
15330
15331 \end_inset
15332
15333  is a special case for the caption-labels 
15334 \begin_inset Quotes eld
15335 \end_inset
15336
15337 Figure
15338 \begin_inset Quotes erd
15339 \end_inset
15340
15341  and 
15342 \begin_inset Quotes eld
15343 \end_inset
15344
15345 Table
15346 \begin_inset Quotes erd
15347 \end_inset
15348
15349 .
15350 \begin_inset Newline newline
15351 \end_inset
15352
15353
15354 \begin_inset Flex Code
15355 status collapsed
15356
15357 \begin_layout Plain Layout
15358 Sensitive
15359 \end_layout
15360
15361 \end_inset
15362
15363  means the (hardcoded) label string depends on the kind of float: It is
15364  hardcoded to be `FloatType N', where N is the value of the counter associated
15365  with the float.
15366  For the case that a caption is inserted outside of a float the 
15367 \begin_inset Flex Code
15368 status collapsed
15369
15370 \begin_layout Plain Layout
15371 LabelString
15372 \end_layout
15373
15374 \end_inset
15375
15376  will appear as 
15377 \begin_inset Quotes eld
15378 \end_inset
15379
15380 Senseless!
15381 \begin_inset Quotes erd
15382 \end_inset
15383
15384 .
15385 \end_layout
15386
15387 \begin_layout Description
15388 \begin_inset Flex Code
15389 status collapsed
15390
15391 \begin_layout Plain Layout
15392 Enumerate
15393 \end_layout
15394
15395 \end_inset
15396
15397  produces the usual sort of enumeration labels.
15398  The number type needs to be set in the 
15399 \family sans
15400 Counter
15401 \family default
15402 , see 
15403 \begin_inset CommandInset ref
15404 LatexCommand ref
15405 reference "subsec:Counters"
15406
15407 \end_inset
15408
15409 .
15410 \end_layout
15411
15412 \begin_layout Description
15413 \begin_inset Flex Code
15414 status collapsed
15415
15416 \begin_layout Plain Layout
15417 Itemize
15418 \end_layout
15419
15420 \end_inset
15421
15422  produces various bullets at the different levels.
15423  The bullet types displayed can be set via 
15424 \begin_inset Flex Noun
15425 status collapsed
15426
15427 \begin_layout Plain Layout
15428 Document\SpecialChar menuseparator
15429 Settings\SpecialChar menuseparator
15430 Bullets
15431 \end_layout
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 Bibliography
15444 \end_layout
15445
15446 \end_inset
15447
15448  should be used only with 
15449 \begin_inset Flex Code
15450 status collapsed
15451
15452 \begin_layout Plain Layout
15453 LatexType BibEnvironment
15454 \end_layout
15455
15456 \end_inset
15457
15458 .
15459 \end_layout
15460
15461 \end_deeper
15462 \begin_layout Description
15463 \begin_inset Flex Code
15464 status collapsed
15465
15466 \begin_layout Plain Layout
15467 LangPreamble
15468 \end_layout
15469
15470 \end_inset
15471
15472  Note that this will completely override any prior 
15473 \begin_inset Flex Code
15474 status collapsed
15475
15476 \begin_layout Plain Layout
15477 LangPreamble
15478 \end_layout
15479
15480 \end_inset
15481
15482  declaration for this style.
15483  Must end with 
15484 \begin_inset Quotes eld
15485 \end_inset
15486
15487
15488 \begin_inset Flex Code
15489 status collapsed
15490
15491 \begin_layout Plain Layout
15492 EndLangPreamble
15493 \end_layout
15494
15495 \end_inset
15496
15497
15498 \begin_inset Quotes erd
15499 \end_inset
15500
15501 .
15502  See 
15503 \begin_inset CommandInset ref
15504 LatexCommand ref
15505 reference "subsec:I18n"
15506
15507 \end_inset
15508
15509  for details on its use.
15510 \end_layout
15511
15512 \begin_layout Description
15513 \begin_inset Flex Code
15514 status collapsed
15515
15516 \begin_layout Plain Layout
15517 LatexName
15518 \end_layout
15519
15520 \end_inset
15521
15522  [
15523 \begin_inset Flex Code
15524 status collapsed
15525
15526 \begin_layout Plain Layout
15527 <name>
15528 \end_layout
15529
15530 \end_inset
15531
15532 ] The name of the corresponding \SpecialChar LaTeX
15533  stuff.
15534  Either the environment or command name.
15535 \end_layout
15536
15537 \begin_layout Description
15538 \begin_inset Flex Code
15539 status collapsed
15540
15541 \begin_layout Plain Layout
15542 LatexParam
15543 \end_layout
15544
15545 \end_inset
15546
15547  [
15548 \begin_inset Flex Code
15549 status collapsed
15550
15551 \begin_layout Plain Layout
15552 <parameter>
15553 \end_layout
15554
15555 \end_inset
15556
15557 ] An optional parameter for the corresponding 
15558 \begin_inset Flex Code
15559 status collapsed
15560
15561 \begin_layout Plain Layout
15562 LatexName
15563 \end_layout
15564
15565 \end_inset
15566
15567  stuff.
15568  This parameter cannot be changed from within \SpecialChar LyX
15569  (use 
15570 \begin_inset Flex Code
15571 status collapsed
15572
15573 \begin_layout Plain Layout
15574 Argument
15575 \end_layout
15576
15577 \end_inset
15578
15579  for customizable parameters).
15580  This will be output as is after all \SpecialChar LaTeX
15581  
15582 \begin_inset Flex Code
15583 status collapsed
15584
15585 \begin_layout Plain Layout
15586 Argument
15587 \end_layout
15588
15589 \end_inset
15590
15591 s.
15592 \end_layout
15593
15594 \begin_layout Description
15595 \begin_inset Flex Code
15596 status collapsed
15597
15598 \begin_layout Plain Layout
15599 LatexType
15600 \end_layout
15601
15602 \end_inset
15603
15604  [
15605 \begin_inset Flex Code
15606 status collapsed
15607
15608 \begin_layout Plain Layout
15609
15610 \emph on
15611 Paragraph
15612 \emph default
15613 , Command, Environment, Item_Environment,
15614 \begin_inset Newline newline
15615 \end_inset
15616
15617 List_Environment, Bib_Environment
15618 \end_layout
15619
15620 \end_inset
15621
15622 ] How the style should be translated into \SpecialChar LaTeX
15623 .
15624 \begin_inset Foot
15625 status collapsed
15626
15627 \begin_layout Plain Layout
15628 \begin_inset Flex Code
15629 status collapsed
15630
15631 \begin_layout Plain Layout
15632 LatexType
15633 \end_layout
15634
15635 \end_inset
15636
15637  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15638  Visit the SGML class files for specific examples.
15639 \end_layout
15640
15641 \end_inset
15642
15643
15644 \end_layout
15645
15646 \begin_deeper
15647 \begin_layout Description
15648 \begin_inset Flex Code
15649 status collapsed
15650
15651 \begin_layout Plain Layout
15652 Paragraph
15653 \end_layout
15654
15655 \end_inset
15656
15657  means nothing special.
15658 \end_layout
15659
15660 \begin_layout Description
15661 \begin_inset Flex Code
15662 status collapsed
15663
15664 \begin_layout Plain Layout
15665 Command
15666 \end_layout
15667
15668 \end_inset
15669
15670  means 
15671 \begin_inset Flex Code
15672 status collapsed
15673
15674 \begin_layout Plain Layout
15675
15676 \backslash
15677
15678 \emph on
15679 LatexName
15680 \emph default
15681 {\SpecialChar ldots
15682 }
15683 \end_layout
15684
15685 \end_inset
15686
15687 .
15688 \end_layout
15689
15690 \begin_layout Description
15691 \begin_inset Flex Code
15692 status collapsed
15693
15694 \begin_layout Plain Layout
15695 Environment
15696 \end_layout
15697
15698 \end_inset
15699
15700  means 
15701 \begin_inset Flex Code
15702 status collapsed
15703
15704 \begin_layout Plain Layout
15705
15706 \backslash
15707 begin{
15708 \emph on
15709 LatexName
15710 \emph default
15711 }\SpecialChar ldots
15712
15713 \backslash
15714 end{
15715 \emph on
15716 LatexName
15717 \emph default
15718 }
15719 \end_layout
15720
15721 \end_inset
15722
15723 .
15724  
15725 \end_layout
15726
15727 \begin_layout Description
15728 \begin_inset Flex Code
15729 status collapsed
15730
15731 \begin_layout Plain Layout
15732 Item_Environment
15733 \end_layout
15734
15735 \end_inset
15736
15737  is the same as 
15738 \begin_inset Flex Code
15739 status collapsed
15740
15741 \begin_layout Plain Layout
15742 Environment
15743 \end_layout
15744
15745 \end_inset
15746
15747 , except that an 
15748 \begin_inset Flex Code
15749 status collapsed
15750
15751 \begin_layout Plain Layout
15752
15753 \backslash
15754 item
15755 \end_layout
15756
15757 \end_inset
15758
15759  is generated for each paragraph of this environment.
15760  
15761 \end_layout
15762
15763 \begin_layout Description
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 List_Environment
15769 \end_layout
15770
15771 \end_inset
15772
15773  is the same as 
15774 \begin_inset Flex Code
15775 status collapsed
15776
15777 \begin_layout Plain Layout
15778 Item_Environment
15779 \end_layout
15780
15781 \end_inset
15782
15783 , except that
15784 \begin_inset Newline newline
15785 \end_inset
15786
15787
15788 \begin_inset Flex Code
15789 status collapsed
15790
15791 \begin_layout Plain Layout
15792 LabelWidthString
15793 \end_layout
15794
15795 \end_inset
15796
15797  is passed as an argument to the environment.
15798 \begin_inset Newline newline
15799 \end_inset
15800
15801
15802 \begin_inset Flex Code
15803 status collapsed
15804
15805 \begin_layout Plain Layout
15806 LabelWidthString
15807 \end_layout
15808
15809 \end_inset
15810
15811  can be defined in the 
15812 \begin_inset Flex Noun
15813 status collapsed
15814
15815 \begin_layout Plain Layout
15816 Edit\SpecialChar menuseparator
15817 Paragraph
15818 \begin_inset space ~
15819 \end_inset
15820
15821 settings
15822 \end_layout
15823
15824 \end_inset
15825
15826  dialog.
15827 \end_layout
15828
15829 \begin_layout Description
15830 \begin_inset Flex Code
15831 status collapsed
15832
15833 \begin_layout Plain Layout
15834 Bib_Environment
15835 \end_layout
15836
15837 \end_inset
15838
15839  is like 
15840 \begin_inset Flex Code
15841 status collapsed
15842
15843 \begin_layout Plain Layout
15844 Environment
15845 \end_layout
15846
15847 \end_inset
15848
15849  but adds the necessary mandatory argument (the longest label) to the begin
15850  statement of the bibliography environment:
15851 \begin_inset Newline newline
15852 \end_inset
15853
15854
15855 \begin_inset Flex Code
15856 status collapsed
15857
15858 \begin_layout Plain Layout
15859
15860 \backslash
15861 begin{thebibliography}{99}
15862 \end_layout
15863
15864 \end_inset
15865
15866 .
15867  It is therefore only useful for bibliography environments.
15868  The default longest label 
15869 \begin_inset Quotes eld
15870 \end_inset
15871
15872 99
15873 \begin_inset Quotes erd
15874 \end_inset
15875
15876  can be changed by the user in the paragraph settings of a bibliography
15877  item.
15878 \end_layout
15879
15880 \begin_layout Standard
15881 Putting the last few things together, the \SpecialChar LaTeX
15882  output will be either: 
15883 \end_layout
15884
15885 \begin_layout LyX-Code
15886
15887 \backslash
15888 LatexName[LatexParam]{\SpecialChar ldots
15889 }
15890 \end_layout
15891
15892 \begin_layout Standard
15893 or: 
15894 \end_layout
15895
15896 \begin_layout LyX-Code
15897
15898 \backslash
15899 begin{LatexName}[LatexParam] \SpecialChar ldots
15900  
15901 \backslash
15902 end{LatexName}.
15903 \end_layout
15904
15905 \begin_layout Standard
15906 depending upon the \SpecialChar LaTeX
15907  type.
15908 \end_layout
15909
15910 \end_deeper
15911 \begin_layout Description
15912 \begin_inset Flex Code
15913 status collapsed
15914
15915 \begin_layout Plain Layout
15916 LeftDelim
15917 \end_layout
15918
15919 \end_inset
15920
15921  [
15922 \begin_inset Flex Code
15923 status collapsed
15924
15925 \begin_layout Plain Layout
15926 string
15927 \end_layout
15928
15929 \end_inset
15930
15931 ] A string that is put at the beginning of the style content.
15932  A line break in the output can be indicated by 
15933 \begin_inset Flex Code
15934 status collapsed
15935
15936 \begin_layout Plain Layout
15937 <br/>
15938 \end_layout
15939
15940 \end_inset
15941
15942 .
15943 \end_layout
15944
15945 \begin_layout Description
15946 \begin_inset Flex Code
15947 status collapsed
15948
15949 \begin_layout Plain Layout
15950 LeftMargin
15951 \end_layout
15952
15953 \end_inset
15954
15955  [
15956 \begin_inset Flex Code
15957 status collapsed
15958
15959 \begin_layout Plain Layout
15960 string=""
15961 \end_layout
15962
15963 \end_inset
15964
15965 ] If you put styles into environments, the different 
15966 \begin_inset Flex Code
15967 status collapsed
15968
15969 \begin_layout Plain Layout
15970 LeftMargin
15971 \end_layout
15972
15973 \end_inset
15974
15975  are not simply added, but added with a factor 
15976 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15977 \end_inset
15978
15979 .
15980  Note that this parameter is also used when 
15981 \begin_inset Flex Code
15982 status collapsed
15983
15984 \begin_layout Plain Layout
15985 Margin
15986 \end_layout
15987
15988 \end_inset
15989
15990  is defined as 
15991 \begin_inset Flex Code
15992 status collapsed
15993
15994 \begin_layout Plain Layout
15995 Manual
15996 \end_layout
15997
15998 \end_inset
15999
16000  or 
16001 \begin_inset Flex Code
16002 status collapsed
16003
16004 \begin_layout Plain Layout
16005 Dynamic
16006 \end_layout
16007
16008 \end_inset
16009
16010 .
16011  Then it is added to the manual or dynamic margin.
16012 \begin_inset Newline newline
16013 \end_inset
16014
16015 For example 
16016 \begin_inset Quotes eld
16017 \end_inset
16018
16019
16020 \begin_inset Flex Code
16021 status collapsed
16022
16023 \begin_layout Plain Layout
16024 MM
16025 \end_layout
16026
16027 \end_inset
16028
16029
16030 \begin_inset Quotes erd
16031 \end_inset
16032
16033  means that the paragraph is indented with the width of 
16034 \begin_inset Quotes eld
16035 \end_inset
16036
16037
16038 \begin_inset Flex Code
16039 status collapsed
16040
16041 \begin_layout Plain Layout
16042 MM
16043 \end_layout
16044
16045 \end_inset
16046
16047
16048 \begin_inset Quotes erd
16049 \end_inset
16050
16051  in the normal font.
16052  You can get a negative width by prefixing the string with 
16053 \begin_inset Quotes eld
16054 \end_inset
16055
16056
16057 \begin_inset Flex Code
16058 status collapsed
16059
16060 \begin_layout Plain Layout
16061 -
16062 \end_layout
16063
16064 \end_inset
16065
16066
16067 \begin_inset Quotes erd
16068 \end_inset
16069
16070 .
16071  This way was chosen so that the look is the same with each used screen
16072  font.
16073 \end_layout
16074
16075 \begin_layout Description
16076 \begin_inset Flex Code
16077 status collapsed
16078
16079 \begin_layout Plain Layout
16080 Margin
16081 \end_layout
16082
16083 \end_inset
16084
16085  [
16086 \begin_inset Flex Code
16087 status collapsed
16088
16089 \begin_layout Plain Layout
16090
16091 \emph on
16092 Static
16093 \emph default
16094 , Manual, Dynamic, First_Dynamic, Right_Address_Box
16095 \end_layout
16096
16097 \end_inset
16098
16099
16100 \begin_inset Newline newline
16101 \end_inset
16102
16103 The kind of margin that the style has on the left side.
16104 \end_layout
16105
16106 \begin_deeper
16107 \begin_layout Description
16108 \begin_inset Flex Code
16109 status collapsed
16110
16111 \begin_layout Plain Layout
16112 Static
16113 \end_layout
16114
16115 \end_inset
16116
16117  just means a fixed margin.
16118 \end_layout
16119
16120 \begin_layout Description
16121 \begin_inset Flex Code
16122 status collapsed
16123
16124 \begin_layout Plain Layout
16125 Manual
16126 \end_layout
16127
16128 \end_inset
16129
16130  means that the left margin depends on the string entered in the 
16131 \begin_inset Flex Noun
16132 status collapsed
16133
16134 \begin_layout Plain Layout
16135 Edit\SpecialChar menuseparator
16136 Paragraph
16137 \begin_inset space ~
16138 \end_inset
16139
16140 Settings
16141 \end_layout
16142
16143 \end_inset
16144
16145  dialog.
16146  This is used to typeset nice lists without tabulators.
16147 \end_layout
16148
16149 \begin_layout Description
16150 \begin_inset Flex Code
16151 status collapsed
16152
16153 \begin_layout Plain Layout
16154 Dynamic
16155 \end_layout
16156
16157 \end_inset
16158
16159  means that the margin depends on the size of the label.
16160  This is used for automatic enumerated headlines.
16161  It is obvious that the headline 
16162 \begin_inset Quotes eld
16163 \end_inset
16164
16165 5.4.3.2.1 Very long headline
16166 \begin_inset Quotes erd
16167 \end_inset
16168
16169  must have a wider left margin (as wide as 
16170 \begin_inset Quotes eld
16171 \end_inset
16172
16173 5.4.3.2.1
16174 \begin_inset Quotes erd
16175 \end_inset
16176
16177  plus the space) than 
16178 \begin_inset Quotes eld
16179 \end_inset
16180
16181 3.2 Very long headline
16182 \begin_inset Quotes erd
16183 \end_inset
16184
16185 , even if standard 
16186 \begin_inset Quotes eld
16187 \end_inset
16188
16189 word processors
16190 \begin_inset Quotes erd
16191 \end_inset
16192
16193  are not able to do this.
16194 \end_layout
16195
16196 \begin_layout Description
16197 \begin_inset Flex Code
16198 status collapsed
16199
16200 \begin_layout Plain Layout
16201 First_Dynamic
16202 \end_layout
16203
16204 \end_inset
16205
16206  is similar, but only the very first row of the paragraph is dynamic, while
16207  the others are static; this is used, for example, for descriptions.
16208 \end_layout
16209
16210 \begin_layout Description
16211 \begin_inset Flex Code
16212 status collapsed
16213
16214 \begin_layout Plain Layout
16215 Right_Address_Box
16216 \end_layout
16217
16218 \end_inset
16219
16220  means the margin is chosen in a way that the longest row of this paragraph
16221  fits to the right margin.
16222  This is used to typeset an address on the right edge of the page.
16223 \end_layout
16224
16225 \end_deeper
16226 \begin_layout Description
16227 \begin_inset Flex Code
16228 status collapsed
16229
16230 \begin_layout Plain Layout
16231 NeedProtect
16232 \end_layout
16233
16234 \end_inset
16235
16236  [
16237 \begin_inset Flex Code
16238 status collapsed
16239
16240 \begin_layout Plain Layout
16241
16242 \emph on
16243 0
16244 \end_layout
16245
16246 \end_inset
16247
16248 ,
16249 \begin_inset space \thinspace{}
16250 \end_inset
16251
16252
16253 \begin_inset Flex Code
16254 status collapsed
16255
16256 \begin_layout Plain Layout
16257 1
16258 \end_layout
16259
16260 \end_inset
16261
16262 ] Whether fragile commands in this style should be 
16263 \begin_inset Flex Code
16264 status collapsed
16265
16266 \begin_layout Plain Layout
16267
16268 \backslash
16269 protect
16270 \end_layout
16271
16272 \end_inset
16273
16274 'ed.
16275  (Note: This is 
16276 \emph on
16277 not
16278 \emph default
16279  whether this command should itself be protected.)
16280 \change_inserted -712698321 1523696949
16281
16282 \end_layout
16283
16284 \begin_layout Description
16285
16286 \change_inserted -712698321 1552395557
16287 \begin_inset Flex Code
16288 status collapsed
16289
16290 \begin_layout Plain Layout
16291
16292 \change_inserted -712698321 1523696950
16293 NeedCProtect
16294 \change_unchanged
16295
16296 \end_layout
16297
16298 \end_inset
16299
16300  [
16301 \begin_inset Flex Code
16302 status collapsed
16303
16304 \begin_layout Plain Layout
16305
16306 \change_inserted -712698321 1523696950
16307
16308 \emph on
16309 0
16310 \change_unchanged
16311
16312 \end_layout
16313
16314 \end_inset
16315
16316 ,
16317 \begin_inset space \thinspace{}
16318 \end_inset
16319
16320
16321 \begin_inset Flex Code
16322 status collapsed
16323
16324 \begin_layout Plain Layout
16325
16326 \change_inserted -712698321 1523696950
16327 1
16328 \change_unchanged
16329
16330 \end_layout
16331
16332 \end_inset
16333
16334 ] This causes macros that contain this layout to be protected with 
16335 \begin_inset Flex Code
16336 status collapsed
16337
16338 \begin_layout Plain Layout
16339
16340 \change_inserted -712698321 1523696950
16341
16342 \backslash
16343 cprotect
16344 \change_unchanged
16345
16346 \end_layout
16347
16348 \end_inset
16349
16350  (cf.
16351  package 
16352 \family sans
16353 cprotect
16354 \family default
16355 ) if necessary and thus allows (some) verbatim stuff in macros.
16356 \end_layout
16357
16358 \begin_layout Description
16359
16360 \change_inserted -712698321 1552395844
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365
16366 \change_inserted -712698321 1552395561
16367 NeedMBoxProtect
16368 \change_unchanged
16369
16370 \end_layout
16371
16372 \end_inset
16373
16374  [
16375 \begin_inset Flex Code
16376 status collapsed
16377
16378 \begin_layout Plain Layout
16379
16380 \change_inserted -712698321 1552395557
16381
16382 \emph on
16383 0
16384 \change_unchanged
16385
16386 \end_layout
16387
16388 \end_inset
16389
16390 ,
16391 \begin_inset space \thinspace{}
16392 \end_inset
16393
16394
16395 \begin_inset Flex Code
16396 status collapsed
16397
16398 \begin_layout Plain Layout
16399
16400 \change_inserted -712698321 1552395557
16401 1
16402 \change_unchanged
16403
16404 \end_layout
16405
16406 \end_inset
16407
16408 ] Whether specific commands in this style (such as 
16409 \begin_inset Flex Code
16410 status collapsed
16411
16412 \begin_layout Plain Layout
16413
16414 \change_inserted -712698321 1552395655
16415
16416 \backslash
16417 cite
16418 \change_unchanged
16419
16420 \end_layout
16421
16422 \end_inset
16423
16424  and 
16425 \begin_inset Flex Code
16426 status collapsed
16427
16428 \begin_layout Plain Layout
16429
16430 \change_inserted -712698321 1552395661
16431
16432 \backslash
16433 ref
16434 \change_unchanged
16435
16436 \end_layout
16437
16438 \end_inset
16439
16440 ) should be protected in an 
16441 \begin_inset Flex Code
16442 status collapsed
16443
16444 \begin_layout Plain Layout
16445
16446 \change_inserted -712698321 1552395631
16447
16448 \backslash
16449 mbox
16450 \change_unchanged
16451
16452 \end_layout
16453
16454 \end_inset
16455
16456 .
16457  This is particularly needed for styles that draw on 
16458 \family sans
16459 ulem
16460 \family default
16461  or 
16462 \family sans
16463 soul
16464 \family default
16465  commands which parse their content in complex ways.
16466 \change_unchanged
16467
16468 \end_layout
16469
16470 \begin_layout Description
16471 \begin_inset Flex Code
16472 status collapsed
16473
16474 \begin_layout Plain Layout
16475 Newline
16476 \end_layout
16477
16478 \end_inset
16479
16480  [
16481 \begin_inset Flex Code
16482 status collapsed
16483
16484 \begin_layout Plain Layout
16485 0
16486 \end_layout
16487
16488 \end_inset
16489
16490 ,
16491 \begin_inset space \thinspace{}
16492 \end_inset
16493
16494
16495 \begin_inset Flex Code
16496 status collapsed
16497
16498 \begin_layout Plain Layout
16499
16500 \emph on
16501 1
16502 \end_layout
16503
16504 \end_inset
16505
16506 ] Whether newlines are translated into \SpecialChar LaTeX
16507  newlines (
16508 \begin_inset Flex Code
16509 status collapsed
16510
16511 \begin_layout Plain Layout
16512
16513 \backslash
16514
16515 \backslash
16516
16517 \end_layout
16518
16519 \end_inset
16520
16521 ) or not.
16522  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16523  editing
16524  inside \SpecialChar LyX
16525 .
16526 \end_layout
16527
16528 \begin_layout Description
16529 \begin_inset Flex Code
16530 status collapsed
16531
16532 \begin_layout Plain Layout
16533 NextNoIndent
16534 \end_layout
16535
16536 \end_inset
16537
16538  [
16539 \begin_inset Flex Code
16540 status collapsed
16541
16542 \begin_layout Plain Layout
16543
16544 \emph on
16545 0
16546 \end_layout
16547
16548 \end_inset
16549
16550 ,
16551 \begin_inset space \thinspace{}
16552 \end_inset
16553
16554
16555 \begin_inset Flex Code
16556 status collapsed
16557
16558 \begin_layout Plain Layout
16559 1
16560 \end_layout
16561
16562 \end_inset
16563
16564 ] If set to true, and if 
16565 \begin_inset Flex Code
16566 status collapsed
16567
16568 \begin_layout Plain Layout
16569 DefaultStyle
16570 \end_layout
16571
16572 \end_inset
16573
16574  (usually 
16575 \begin_inset Flex Code
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579 Standard
16580 \end_layout
16581
16582 \end_inset
16583
16584 ) paragraphs are being indented, then the indentation of such a paragraph
16585  following one of this type will be suppressed.
16586  (So this will not affect the display of non-default paragraphs.)
16587 \end_layout
16588
16589 \begin_layout Description
16590 \begin_inset Flex Code
16591 status collapsed
16592
16593 \begin_layout Plain Layout
16594 ObsoletedBy
16595 \end_layout
16596
16597 \end_inset
16598
16599  [
16600 \begin_inset Flex Code
16601 status collapsed
16602
16603 \begin_layout Plain Layout
16604 <name>
16605 \end_layout
16606
16607 \end_inset
16608
16609 ] Name of a style that has replaced this style.
16610  This is used to rename a style, while keeping backward compatibility.
16611 \end_layout
16612
16613 \begin_layout Description
16614 \begin_inset Flex Code
16615 status collapsed
16616
16617 \begin_layout Plain Layout
16618 ParagraphGroup
16619 \end_layout
16620
16621 \end_inset
16622
16623  [
16624 \begin_inset Flex Code
16625 status collapsed
16626
16627 \begin_layout Plain Layout
16628 0
16629 \end_layout
16630
16631 \end_inset
16632
16633 ,
16634 \begin_inset space \thinspace{}
16635 \end_inset
16636
16637
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 1
16643 \end_layout
16644
16645 \end_inset
16646
16647 ] Determines whether consecutive paragraphs of the same type are treated
16648  as belonging together.
16649  This has the effect that the 
16650 \begin_inset Flex Code
16651 status collapsed
16652
16653 \begin_layout Plain Layout
16654 GuiLabel
16655 \end_layout
16656
16657 \end_inset
16658
16659  is only printed once before such a group.
16660  By default, this is true for 
16661 \begin_inset Flex Code
16662 status collapsed
16663
16664 \begin_layout Plain Layout
16665 LaTeXType
16666 \end_layout
16667
16668 \end_inset
16669
16670  
16671 \begin_inset Flex Code
16672 status collapsed
16673
16674 \begin_layout Plain Layout
16675 Environment
16676 \end_layout
16677
16678 \end_inset
16679
16680  and 
16681 \begin_inset Flex Code
16682 status collapsed
16683
16684 \begin_layout Plain Layout
16685 Bib_Environment
16686 \end_layout
16687
16688 \end_inset
16689
16690  and false for all other types.
16691 \end_layout
16692
16693 \begin_layout Description
16694 \begin_inset Flex Code
16695 status collapsed
16696
16697 \begin_layout Plain Layout
16698 ParbreakIsNewline
16699 \end_layout
16700
16701 \end_inset
16702
16703  [
16704 \begin_inset Flex Code
16705 status collapsed
16706
16707 \begin_layout Plain Layout
16708
16709 \emph on
16710 0
16711 \end_layout
16712
16713 \end_inset
16714
16715 ,
16716 \begin_inset space \thinspace{}
16717 \end_inset
16718
16719
16720 \begin_inset Flex Code
16721 status collapsed
16722
16723 \begin_layout Plain Layout
16724 1
16725 \end_layout
16726
16727 \end_inset
16728
16729 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16730  output,
16731  but only by a line break; together with 
16732 \begin_inset Flex Code
16733 status collapsed
16734
16735 \begin_layout Plain Layout
16736 PassThru 1
16737 \end_layout
16738
16739 \end_inset
16740
16741 , this allows to emulate a plain text editor (like the ERT inset).
16742 \end_layout
16743
16744 \begin_layout Description
16745 \begin_inset Flex Code
16746 status collapsed
16747
16748 \begin_layout Plain Layout
16749 ParIndent
16750 \end_layout
16751
16752 \end_inset
16753
16754  [
16755 \begin_inset Flex Code
16756 status collapsed
16757
16758 \begin_layout Plain Layout
16759 string=""
16760 \end_layout
16761
16762 \end_inset
16763
16764 ] The indent of the very first line of a paragraph.
16765  The
16766 \begin_inset Newline newline
16767 \end_inset
16768
16769
16770 \begin_inset Flex Code
16771 status collapsed
16772
16773 \begin_layout Plain Layout
16774 Parindent
16775 \end_layout
16776
16777 \end_inset
16778
16779  will be fixed for a certain style.
16780  The exception is the default style, since the indentation for these paragraphs
16781  can be prohibited with 
16782 \begin_inset Flex Code
16783 status collapsed
16784
16785 \begin_layout Plain Layout
16786 NextNoIndent
16787 \end_layout
16788
16789 \end_inset
16790
16791 .
16792  Also, 
16793 \begin_inset Flex Code
16794 status collapsed
16795
16796 \begin_layout Plain Layout
16797 Standard
16798 \end_layout
16799
16800 \end_inset
16801
16802  style paragraphs inside environments use the 
16803 \begin_inset Flex Code
16804 status collapsed
16805
16806 \begin_layout Plain Layout
16807 Parindent
16808 \end_layout
16809
16810 \end_inset
16811
16812  of the environment, not their native one.
16813  For example, 
16814 \begin_inset Flex Code
16815 status collapsed
16816
16817 \begin_layout Plain Layout
16818 Standard
16819 \end_layout
16820
16821 \end_inset
16822
16823  paragraphs inside an enumeration are not indented.
16824 \end_layout
16825
16826 \begin_layout Description
16827 \begin_inset Flex Code
16828 status collapsed
16829
16830 \begin_layout Plain Layout
16831 ParSep
16832 \end_layout
16833
16834 \end_inset
16835
16836  [
16837 \begin_inset Flex Code
16838 status collapsed
16839
16840 \begin_layout Plain Layout
16841 float=0
16842 \end_layout
16843
16844 \end_inset
16845
16846 ] The vertical space between two paragraphs of this style.
16847 \end_layout
16848
16849 \begin_layout Description
16850 \begin_inset Flex Code
16851 status collapsed
16852
16853 \begin_layout Plain Layout
16854 Parskip
16855 \end_layout
16856
16857 \end_inset
16858
16859  [
16860 \begin_inset Flex Code
16861 status collapsed
16862
16863 \begin_layout Plain Layout
16864 float=0
16865 \end_layout
16866
16867 \end_inset
16868
16869 ] \SpecialChar LyX
16870  allows the user to choose either 
16871 \begin_inset Quotes eld
16872 \end_inset
16873
16874 indent
16875 \begin_inset Quotes erd
16876 \end_inset
16877
16878  or 
16879 \begin_inset Quotes eld
16880 \end_inset
16881
16882 skip
16883 \begin_inset Quotes erd
16884 \end_inset
16885
16886  to separate paragraphs.
16887  When 
16888 \begin_inset Quotes eld
16889 \end_inset
16890
16891 indent
16892 \begin_inset Quotes erd
16893 \end_inset
16894
16895  is chosen, 
16896 \begin_inset Flex Code
16897 status collapsed
16898
16899 \begin_layout Plain Layout
16900 Parskip
16901 \end_layout
16902
16903 \end_inset
16904
16905  is ignored.
16906  When 
16907 \begin_inset Quotes eld
16908 \end_inset
16909
16910 skip
16911 \begin_inset Quotes erd
16912 \end_inset
16913
16914  is chosen, 
16915 \begin_inset Flex Code
16916 status collapsed
16917
16918 \begin_layout Plain Layout
16919 ParIndent
16920 \end_layout
16921
16922 \end_inset
16923
16924  is ignored and all paragraphs are separated by the 
16925 \begin_inset Flex Code
16926 status collapsed
16927
16928 \begin_layout Plain Layout
16929 Parskip
16930 \end_layout
16931
16932 \end_inset
16933
16934  argument.
16935  The vertical space is calculated with 
16936 \begin_inset Flex Code
16937 status collapsed
16938
16939 \begin_layout Plain Layout
16940 Parskip
16941 \begin_inset space ~
16942 \end_inset
16943
16944 * DefaultHeight
16945 \end_layout
16946
16947 \end_inset
16948
16949  where 
16950 \begin_inset Flex Code
16951 status collapsed
16952
16953 \begin_layout Plain Layout
16954 DefaultHeight
16955 \end_layout
16956
16957 \end_inset
16958
16959  is the height of a row with the normal font.
16960  This way, the look stays the same with different screen fonts.
16961 \end_layout
16962
16963 \begin_layout Description
16964 \begin_inset Flex Code
16965 status collapsed
16966
16967 \begin_layout Plain Layout
16968 PassThru
16969 \end_layout
16970
16971 \end_inset
16972
16973  [
16974 \begin_inset Flex Code
16975 status collapsed
16976
16977 \begin_layout Plain Layout
16978
16979 \emph on
16980 0
16981 \end_layout
16982
16983 \end_inset
16984
16985 ,
16986 \begin_inset space \thinspace{}
16987 \end_inset
16988
16989
16990 \begin_inset Flex Code
16991 status collapsed
16992
16993 \begin_layout Plain Layout
16994 1
16995 \end_layout
16996
16997 \end_inset
16998
16999 ] Whether the contents of this paragraph should be output in raw form, meaning
17000  without special translations that \SpecialChar LaTeX
17001  would require.
17002 \end_layout
17003
17004 \begin_layout Description
17005 \begin_inset Flex Code
17006 status collapsed
17007
17008 \begin_layout Plain Layout
17009 PassThruChars
17010 \end_layout
17011
17012 \end_inset
17013
17014  [
17015 \begin_inset Flex Code
17016 status collapsed
17017
17018 \begin_layout Plain Layout
17019 string
17020 \end_layout
17021
17022 \end_inset
17023
17024 ]
17025 \family typewriter
17026  
17027 \family default
17028 Defines individual characters that should be output in raw form, meaning
17029  without special translations that \SpecialChar LaTeX
17030  would require.
17031 \end_layout
17032
17033 \begin_layout Description
17034 \begin_inset Flex Code
17035 status collapsed
17036
17037 \begin_layout Plain Layout
17038 Preamble
17039 \end_layout
17040
17041 \end_inset
17042
17043  Information to be included in the \SpecialChar LaTeX
17044  preamble when this style is used.
17045  Used to define macros, load packages, etc., required by this particular
17046  style.
17047  Must end with 
17048 \begin_inset Quotes eld
17049 \end_inset
17050
17051
17052 \begin_inset Flex Code
17053 status collapsed
17054
17055 \begin_layout Plain Layout
17056 EndPreamble
17057 \end_layout
17058
17059 \end_inset
17060
17061
17062 \begin_inset Quotes erd
17063 \end_inset
17064
17065 .
17066 \end_layout
17067
17068 \begin_layout Description
17069 \begin_inset Flex Code
17070 status collapsed
17071
17072 \begin_layout Plain Layout
17073 RefPrefix
17074 \end_layout
17075
17076 \end_inset
17077
17078  [
17079 \begin_inset Flex Code
17080 status collapsed
17081
17082 \begin_layout Plain Layout
17083 string
17084 \end_layout
17085
17086 \end_inset
17087
17088 ] The prefix to use when creating labels referring to paragraphs of this
17089  type.
17090  This allows the use of formatted references.
17091 \end_layout
17092
17093 \begin_layout Description
17094 \begin_inset Flex Code
17095 status collapsed
17096
17097 \begin_layout Plain Layout
17098 Requires 
17099 \end_layout
17100
17101 \end_inset
17102
17103  [
17104 \begin_inset Flex Code
17105 status collapsed
17106
17107 \begin_layout Plain Layout
17108 string
17109 \end_layout
17110
17111 \end_inset
17112
17113 ] Whether the style requires the feature 
17114 \begin_inset Flex Code
17115 status collapsed
17116
17117 \begin_layout Plain Layout
17118 string
17119 \end_layout
17120
17121 \end_inset
17122
17123  (see 
17124 \begin_inset CommandInset ref
17125 LatexCommand ref
17126 reference "chap:List-of-functions"
17127
17128 \end_inset
17129
17130  for the list of features).
17131  If you require a package with specific options, you can additionally use
17132  
17133 \begin_inset Flex Code
17134 status collapsed
17135
17136 \begin_layout Plain Layout
17137 PackageOptions
17138 \end_layout
17139
17140 \end_inset
17141
17142  as a general text class parameter (see 
17143 \begin_inset CommandInset ref
17144 LatexCommand ref
17145 reference "subsec:General-text-class"
17146
17147 \end_inset
17148
17149 ).
17150 \end_layout
17151
17152 \begin_layout Description
17153 \begin_inset Flex Code
17154 status collapsed
17155
17156 \begin_layout Plain Layout
17157 ResetArgs
17158 \end_layout
17159
17160 \end_inset
17161
17162  [
17163 \begin_inset Flex Code
17164 status collapsed
17165
17166 \begin_layout Plain Layout
17167
17168 \emph on
17169 0
17170 \end_layout
17171
17172 \end_inset
17173
17174 ,
17175 \begin_inset Flex Code
17176 status collapsed
17177
17178 \begin_layout Plain Layout
17179 1
17180 \end_layout
17181
17182 \end_inset
17183
17184 ] Resets the \SpecialChar LaTeX
17185  arguments of this style (as defined via the 
17186 \begin_inset Flex Code
17187 status collapsed
17188
17189 \begin_layout Plain Layout
17190 Argument
17191 \end_layout
17192
17193 \end_inset
17194
17195  tag).
17196  This is useful if you have copied a style via 
17197 \begin_inset Flex Code
17198 status collapsed
17199
17200 \begin_layout Plain Layout
17201 CopyStyle
17202 \end_layout
17203
17204 \end_inset
17205
17206 , but you do not want to inherit its (required and optional) arguments.
17207 \end_layout
17208
17209 \begin_layout Description
17210 \begin_inset Flex Code
17211 status collapsed
17212
17213 \begin_layout Plain Layout
17214 ResumeCounter
17215 \end_layout
17216
17217 \end_inset
17218
17219  [
17220 \begin_inset Flex Code
17221 status collapsed
17222
17223 \begin_layout Plain Layout
17224
17225 \emph on
17226 0
17227 \end_layout
17228
17229 \end_inset
17230
17231 ,
17232 \begin_inset Flex Code
17233 status collapsed
17234
17235 \begin_layout Plain Layout
17236 1
17237 \end_layout
17238
17239 \end_inset
17240
17241 ] Resumes a counter that is usually reset at each new sequence of layouts.
17242  This is currently only useful when 
17243 \begin_inset Flex Code
17244 status collapsed
17245
17246 \begin_layout Plain Layout
17247 LabelType
17248 \end_layout
17249
17250 \end_inset
17251
17252  is 
17253 \begin_inset Flex Code
17254 status collapsed
17255
17256 \begin_layout Plain Layout
17257 Enumerate
17258 \end_layout
17259
17260 \end_inset
17261
17262 .
17263 \end_layout
17264
17265 \begin_layout Description
17266 \begin_inset Flex Code
17267 status collapsed
17268
17269 \begin_layout Plain Layout
17270 RightDelim
17271 \end_layout
17272
17273 \end_inset
17274
17275  [
17276 \begin_inset Flex Code
17277 status collapsed
17278
17279 \begin_layout Plain Layout
17280 string
17281 \end_layout
17282
17283 \end_inset
17284
17285 ] A string that is put at the end of the layout content.
17286  A line break in the output can be indicated by 
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291 <br/>
17292 \end_layout
17293
17294 \end_inset
17295
17296 .
17297 \end_layout
17298
17299 \begin_layout Description
17300 \begin_inset Flex Code
17301 status collapsed
17302
17303 \begin_layout Plain Layout
17304 RightMargin
17305 \end_layout
17306
17307 \end_inset
17308
17309  [
17310 \begin_inset Flex Code
17311 status collapsed
17312
17313 \begin_layout Plain Layout
17314 string=""
17315 \end_layout
17316
17317 \end_inset
17318
17319 ] Similar to 
17320 \begin_inset Flex Code
17321 status collapsed
17322
17323 \begin_layout Plain Layout
17324 LeftMargin
17325 \end_layout
17326
17327 \end_inset
17328
17329 .
17330 \end_layout
17331
17332 \begin_layout Description
17333 \begin_inset Flex Code
17334 status collapsed
17335
17336 \begin_layout Plain Layout
17337 Spacing
17338 \end_layout
17339
17340 \end_inset
17341
17342  [
17343 \begin_inset Flex Code
17344 status collapsed
17345
17346 \begin_layout Plain Layout
17347
17348 \emph on
17349 single
17350 \end_layout
17351
17352 \end_inset
17353
17354
17355 \begin_inset Flex Code
17356 status collapsed
17357
17358 \begin_layout Plain Layout
17359 onehalf
17360 \end_layout
17361
17362 \end_inset
17363
17364
17365 \begin_inset Flex Code
17366 status collapsed
17367
17368 \begin_layout Plain Layout
17369 double
17370 \end_layout
17371
17372 \end_inset
17373
17374
17375 \begin_inset Flex Code
17376 status collapsed
17377
17378 \begin_layout Plain Layout
17379 other
17380 \begin_inset space ~
17381 \end_inset
17382
17383 <value>
17384 \end_layout
17385
17386 \end_inset
17387
17388 ] This defines what the default spacing should be in the style.
17389  The arguments 
17390 \begin_inset Flex Code
17391 status collapsed
17392
17393 \begin_layout Plain Layout
17394 single
17395 \end_layout
17396
17397 \end_inset
17398
17399
17400 \begin_inset Flex Code
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404 onehalf
17405 \end_layout
17406
17407 \end_inset
17408
17409  and 
17410 \begin_inset Flex Code
17411 status collapsed
17412
17413 \begin_layout Plain Layout
17414 double
17415 \end_layout
17416
17417 \end_inset
17418
17419  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17420  If you specify the argument 
17421 \begin_inset Flex Code
17422 status collapsed
17423
17424 \begin_layout Plain Layout
17425 other
17426 \end_layout
17427
17428 \end_inset
17429
17430 , then you must also provide a value argument which will be the actual multiplie
17431 r value.
17432  Note that, contrary to other parameters, 
17433 \begin_inset Flex Code
17434 status collapsed
17435
17436 \begin_layout Plain Layout
17437 Spacing
17438 \end_layout
17439
17440 \end_inset
17441
17442  implies the generation of specific \SpecialChar LaTeX
17443  code, using the \SpecialChar LaTeX
17444  package 
17445 \family roman
17446
17447 \begin_inset Flex Code
17448 status collapsed
17449
17450 \begin_layout Plain Layout
17451 setspace
17452 \end_layout
17453
17454 \end_inset
17455
17456 .
17457 \end_layout
17458
17459 \begin_layout Description
17460 \begin_inset Flex Code
17461 status collapsed
17462
17463 \begin_layout Plain Layout
17464 Spellcheck
17465 \end_layout
17466
17467 \end_inset
17468
17469  [
17470 \begin_inset Flex Code
17471 status collapsed
17472
17473 \begin_layout Plain Layout
17474 0
17475 \end_layout
17476
17477 \end_inset
17478
17479 ,
17480 \begin_inset space \thinspace{}
17481 \end_inset
17482
17483
17484 \begin_inset Flex Code
17485 status collapsed
17486
17487 \begin_layout Plain Layout
17488
17489 \emph on
17490 1
17491 \end_layout
17492
17493 \end_inset
17494
17495 ] Allow spell-checking paragraphs of this style.
17496  Default is true.
17497 \end_layout
17498
17499 \begin_layout Description
17500 \begin_inset Flex Code
17501 status collapsed
17502
17503 \begin_layout Plain Layout
17504 Step
17505 \change_deleted 731793113 1604355211
17506 Master
17507 \change_inserted 731793113 1604355212
17508 Parent
17509 \change_unchanged
17510 Counter
17511 \end_layout
17512
17513 \end_inset
17514
17515  [
17516 \begin_inset Flex Code
17517 status collapsed
17518
17519 \begin_layout Plain Layout
17520
17521 \emph on
17522 0
17523 \end_layout
17524
17525 \end_inset
17526
17527 ,
17528 \begin_inset Flex Code
17529 status collapsed
17530
17531 \begin_layout Plain Layout
17532 1
17533 \end_layout
17534
17535 \end_inset
17536
17537 ] Steps the 
17538 \change_deleted 731793113 1604355214
17539 master
17540 \change_inserted 731793113 1604355216
17541 parent
17542 \change_unchanged
17543  counter of a given counter at the beginning of a new sequence of layouts.
17544  This is currently only useful when 
17545 \begin_inset Flex Code
17546 status collapsed
17547
17548 \begin_layout Plain Layout
17549 LabelType
17550 \end_layout
17551
17552 \end_inset
17553
17554  is 
17555 \begin_inset Flex Code
17556 status collapsed
17557
17558 \begin_layout Plain Layout
17559 Enumerate
17560 \end_layout
17561
17562 \end_inset
17563
17564 .
17565 \end_layout
17566
17567 \begin_layout Description
17568 \begin_inset Flex Code
17569 status collapsed
17570
17571 \begin_layout Plain Layout
17572 TextFont
17573 \end_layout
17574
17575 \end_inset
17576
17577  The font used for the text body .
17578  See 
17579 \begin_inset CommandInset ref
17580 LatexCommand ref
17581 reference "subsec:Font-description"
17582
17583 \end_inset
17584
17585 .
17586 \end_layout
17587
17588 \begin_layout Description
17589 \begin_inset Flex Code
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593 TocLevel
17594 \end_layout
17595
17596 \end_inset
17597
17598
17599 \series medium
17600  [
17601 \begin_inset Flex Code
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605
17606 \series medium
17607 int=3
17608 \end_layout
17609
17610 \end_inset
17611
17612 ]
17613 \series default
17614  The level of the style in the table of contents.
17615  This is used for automatic numbering of section headings.
17616 \end_layout
17617
17618 \begin_layout Description
17619 \begin_inset Flex Code
17620 status collapsed
17621
17622 \begin_layout Plain Layout
17623 ToggleIndent
17624 \end_layout
17625
17626 \end_inset
17627
17628  [
17629 \emph on
17630
17631 \begin_inset Flex Code
17632 status collapsed
17633
17634 \begin_layout Plain Layout
17635
17636 \emph on
17637 default
17638 \end_layout
17639
17640 \end_inset
17641
17642
17643 \emph default
17644
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 always
17650 \end_layout
17651
17652 \end_inset
17653
17654
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659 never
17660 \end_layout
17661
17662 \end_inset
17663
17664 ] This tag determines whether the first line indentation of this paragraph
17665  can be toggled via the Paragraph settings dialog.
17666  If 
17667 \emph on
17668
17669 \begin_inset Flex Code
17670 status collapsed
17671
17672 \begin_layout Plain Layout
17673
17674 \emph off
17675 default
17676 \end_layout
17677
17678 \end_inset
17679
17680
17681 \emph default
17682  is set, indentation can be toggled if the document settings use 
17683 \begin_inset Quotes eld
17684 \end_inset
17685
17686 indent
17687 \begin_inset Quotes erd
17688 \end_inset
17689
17690  paragraph style, with 
17691 \begin_inset Flex Code
17692 status collapsed
17693
17694 \begin_layout Plain Layout
17695 always
17696 \end_layout
17697
17698 \end_inset
17699
17700 , indentation can always be toggled, notwithstanding the document settings,
17701  with 
17702 \begin_inset Flex Code
17703 status collapsed
17704
17705 \begin_layout Plain Layout
17706 never
17707 \end_layout
17708
17709 \end_inset
17710
17711 , indentation can never be toggled.
17712 \end_layout
17713
17714 \begin_layout Description
17715 \begin_inset Flex Code
17716 status collapsed
17717
17718 \begin_layout Plain Layout
17719 TopSep
17720 \end_layout
17721
17722 \end_inset
17723
17724  [
17725 \begin_inset Flex Code
17726 status collapsed
17727
17728 \begin_layout Plain Layout
17729 float=0
17730 \end_layout
17731
17732 \end_inset
17733
17734 ] The vertical space with which the very first of a chain of paragraphs
17735  with this style is separated from the previous paragraph.
17736  If the previous paragraph has another style, the separations are not simply
17737  added, but the maximum is taken.
17738 \end_layout
17739
17740 \begin_layout Subsection
17741 \begin_inset CommandInset label
17742 LatexCommand label
17743 name "subsec:I18n"
17744
17745 \end_inset
17746
17747 Internationalization of Paragraph Styles
17748 \end_layout
17749
17750 \begin_layout Standard
17751 \SpecialChar LyX
17752  has long supported internationalization of layout information, but, until
17753  version 2.0, this applied only to the user interface and not to, say, PDF
17754  output.
17755  Thus, French authors were forced to resort to ugly hacks if they wanted
17756  `
17757 \lang french
17758 Théorème
17759 \lang english
17760  1' instead of `Theorem 1'.
17761  Thanks to Georg Baum, that is no longer the case.
17762 \end_layout
17763
17764 \begin_layout Standard
17765 If a 
17766 \begin_inset Flex Code
17767 status collapsed
17768
17769 \begin_layout Plain Layout
17770 Style
17771 \end_layout
17772
17773 \end_inset
17774
17775  defines text that is to appear in the typeset document, it may use 
17776 \begin_inset Flex Code
17777 status collapsed
17778
17779 \begin_layout Plain Layout
17780 LangPreamble
17781 \end_layout
17782
17783 \end_inset
17784
17785  and 
17786 \begin_inset Flex Code
17787 status collapsed
17788
17789 \begin_layout Plain Layout
17790 BabelPreamble
17791 \end_layout
17792
17793 \end_inset
17794
17795  to support non-English and even multi-language documents correctly.
17796  The following excerpt (from the 
17797 \begin_inset Flex Code
17798 status collapsed
17799
17800 \begin_layout Plain Layout
17801 theorems-ams.inc
17802 \end_layout
17803
17804 \end_inset
17805
17806  file) shows how this works:
17807 \end_layout
17808
17809 \begin_layout LyX-Code
17810 Preamble
17811 \end_layout
17812
17813 \begin_deeper
17814 \begin_layout LyX-Code
17815   
17816 \backslash
17817 theoremstyle{remark}
17818 \end_layout
17819
17820 \begin_layout LyX-Code
17821   
17822 \backslash
17823 newtheorem{claim}[thm]{
17824 \backslash
17825 protect
17826 \backslash
17827 claimname}
17828 \end_layout
17829
17830 \begin_layout LyX-Code
17831 EndPreamble
17832 \end_layout
17833
17834 \begin_layout LyX-Code
17835 LangPreamble
17836 \end_layout
17837
17838 \begin_layout LyX-Code
17839   
17840 \backslash
17841 providecommand{
17842 \backslash
17843 claimname}{_(Claim)}
17844 \end_layout
17845
17846 \begin_layout LyX-Code
17847 EndLangPreamble
17848 \end_layout
17849
17850 \begin_layout LyX-Code
17851 BabelPreamble
17852 \end_layout
17853
17854 \begin_layout LyX-Code
17855     
17856 \backslash
17857 addto
17858 \backslash
17859 captions$$lang{
17860 \backslash
17861 renewcommand{
17862 \backslash
17863 claimname}{_(Claim)}}
17864 \end_layout
17865
17866 \begin_layout LyX-Code
17867 EndBabelPreamble
17868 \end_layout
17869
17870 \end_deeper
17871 \begin_layout Standard
17872 In principle, any legal \SpecialChar LaTeX
17873  may appear in the 
17874 \begin_inset Flex Code
17875 status collapsed
17876
17877 \begin_layout Plain Layout
17878 LangPreamble
17879 \end_layout
17880
17881 \end_inset
17882
17883  and 
17884 \begin_inset Flex Code
17885 status collapsed
17886
17887 \begin_layout Plain Layout
17888 BabelPreamble
17889 \end_layout
17890
17891 \end_inset
17892
17893  tags, but in practice they will typically look as they do here.
17894  The key to correct translation of the typeset text is the definition of
17895  the \SpecialChar LaTeX
17896  command 
17897 \begin_inset Flex Code
17898 status collapsed
17899
17900 \begin_layout Plain Layout
17901
17902 \backslash
17903 claimname
17904 \end_layout
17905
17906 \end_inset
17907
17908  and its use in 
17909 \begin_inset Flex Code
17910 status collapsed
17911
17912 \begin_layout Plain Layout
17913
17914 \backslash
17915 newtheorem
17916 \end_layout
17917
17918 \end_inset
17919
17920 .
17921  
17922 \end_layout
17923
17924 \begin_layout Standard
17925 The 
17926 \begin_inset Flex Code
17927 status collapsed
17928
17929 \begin_layout Plain Layout
17930 LangPreamble
17931 \end_layout
17932
17933 \end_inset
17934
17935  tag provides for internationalization based upon the overall language of
17936  the document.
17937  The contents of the tag will be included in the preamble, just as with
17938  the 
17939 \begin_inset Flex Code
17940 status collapsed
17941
17942 \begin_layout Plain Layout
17943 Preamble
17944 \end_layout
17945
17946 \end_inset
17947
17948  tag.
17949  What makes it special is the use of the 
17950 \begin_inset Quotes eld
17951 \end_inset
17952
17953 function
17954 \begin_inset Quotes erd
17955 \end_inset
17956
17957  
17958 \begin_inset Flex Code
17959 status collapsed
17960
17961 \begin_layout Plain Layout
17962 _()
17963 \end_layout
17964
17965 \end_inset
17966
17967 , which will be replaced, when \SpecialChar LyX
17968  produces \SpecialChar LaTeX
17969  output, with the translation of
17970  its argument into the document language.
17971 \end_layout
17972
17973 \begin_layout Standard
17974 The 
17975 \begin_inset Flex Code
17976 status collapsed
17977
17978 \begin_layout Plain Layout
17979 BabelPreamble
17980 \end_layout
17981
17982 \end_inset
17983
17984  tag is more complex, since it is meant to provide support for multi-language
17985  documents and so offers an interface to the 
17986 \begin_inset Flex Code
17987 status collapsed
17988
17989 \begin_layout Plain Layout
17990 babel
17991 \end_layout
17992
17993 \end_inset
17994
17995  package.
17996  Its contents will be added to the preamble once for each language that
17997  appears in the document.
17998  In this case, the argument to 
17999 \begin_inset Flex Code
18000 status collapsed
18001
18002 \begin_layout Plain Layout
18003 _()
18004 \end_layout
18005
18006 \end_inset
18007
18008  will be replaced with its translation into the language in question; the
18009  expression 
18010 \begin_inset Flex Code
18011 status collapsed
18012
18013 \begin_layout Plain Layout
18014 $$lang
18015 \end_layout
18016
18017 \end_inset
18018
18019  is replaced by the language name (as used by the babel package).
18020 \end_layout
18021
18022 \begin_layout Standard
18023 A German document that also included a French section would thus have the
18024  following in the preamble:
18025 \end_layout
18026
18027 \begin_layout LyX-Code
18028
18029 \backslash
18030 addto
18031 \backslash
18032 captionsfrench{
18033 \backslash
18034 renewcommand{
18035 \backslash
18036 claimname}{Affirmation}}
18037 \begin_inset Newline newline
18038 \end_inset
18039
18040
18041 \backslash
18042 addto
18043 \backslash
18044 captionsngerman{
18045 \backslash
18046 renewcommand{
18047 \backslash
18048 claimname}{Behauptung}}
18049 \begin_inset Newline newline
18050 \end_inset
18051
18052
18053 \backslash
18054 providecommand{
18055 \backslash
18056 claimname}{Behauptung}
18057 \end_layout
18058
18059 \begin_layout Standard
18060 \SpecialChar LaTeX
18061  and 
18062 \begin_inset Flex Code
18063 status collapsed
18064
18065 \begin_layout Plain Layout
18066 babel
18067 \end_layout
18068
18069 \end_inset
18070
18071  will then conspire to produce the correct text in the output.
18072 \end_layout
18073
18074 \begin_layout Standard
18075 One important point to note here is that the translations are provided by
18076  \SpecialChar LyX
18077  itself, through the file 
18078 \begin_inset Flex Code
18079 status collapsed
18080
18081 \begin_layout Plain Layout
18082 layouttranslations
18083 \end_layout
18084
18085 \end_inset
18086
18087 .
18088  This means, in effect, that 
18089 \begin_inset Flex Code
18090 status collapsed
18091
18092 \begin_layout Plain Layout
18093 LangPreamble
18094 \end_layout
18095
18096 \end_inset
18097
18098  and 
18099 \begin_inset Flex Code
18100 status collapsed
18101
18102 \begin_layout Plain Layout
18103 BabelPreamble
18104 \end_layout
18105
18106 \end_inset
18107
18108  are really only of use in layout files that are provided with \SpecialChar LyX
18109 , since text
18110  entered in user-created layout files will not be seen by \SpecialChar LyX
18111 's internationalizatio
18112 n routines unless the 
18113 \begin_inset Flex Code
18114 status collapsed
18115
18116 \begin_layout Plain Layout
18117 layouttranslations
18118 \end_layout
18119
18120 \end_inset
18121
18122  file is modified accordingly.
18123  That said, however, any layout created with the intention that it will
18124  be included with \SpecialChar LyX
18125  should use these tags where appropriate.
18126  Please note that the paragraph style translations provided by \SpecialChar LyX
18127  will never
18128  change with a minor update (e.
18129 \begin_inset space \thinspace{}
18130 \end_inset
18131
18132 g.
18133 \begin_inset space \space{}
18134 \end_inset
18135
18136 from version 2.1.x to 2.1.y).
18137  It is however quite likely that a major update (e.
18138 \begin_inset space \thinspace{}
18139 \end_inset
18140
18141 g.
18142 \begin_inset space \space{}
18143 \end_inset
18144
18145 from 2.0.x to 2.1.0) will introduce new translations or corrections.
18146 \end_layout
18147
18148 \begin_layout Subsection
18149 Floats
18150 \begin_inset CommandInset label
18151 LatexCommand label
18152 name "subsec:Floats"
18153
18154 \end_inset
18155
18156
18157 \end_layout
18158
18159 \begin_layout Standard
18160 It is necessary to define the floats (
18161 \begin_inset Flex Noun
18162 status collapsed
18163
18164 \begin_layout Plain Layout
18165 figure
18166 \end_layout
18167
18168 \end_inset
18169
18170
18171 \begin_inset Flex Noun
18172 status collapsed
18173
18174 \begin_layout Plain Layout
18175 table
18176 \end_layout
18177
18178 \end_inset
18179
18180 , \SpecialChar ldots
18181 ) in the text class itself.
18182  Standard floats are included in the file 
18183 \begin_inset Flex Code
18184 status collapsed
18185
18186 \begin_layout Plain Layout
18187 stdfloats.inc
18188 \end_layout
18189
18190 \end_inset
18191
18192 , so you may have to do no more than add
18193 \end_layout
18194
18195 \begin_layout LyX-Code
18196 Input stdfloats.inc
18197 \end_layout
18198
18199 \begin_layout Standard
18200 to your layout file.
18201  If you want to implement a text class that proposes some other float types
18202  (like the AGU class bundled with \SpecialChar LyX
18203 ), the information below will hopefully
18204  help you:
18205 \end_layout
18206
18207 \begin_layout Description
18208 \begin_inset Flex Code
18209 status collapsed
18210
18211 \begin_layout Plain Layout
18212 AllowedPlacement
18213 \end_layout
18214
18215 \end_inset
18216
18217  [
18218 \begin_inset Flex Code
18219 status collapsed
18220
18221 \begin_layout Plain Layout
18222 string
18223 \end_layout
18224
18225 \end_inset
18226
18227 =!htbpH] Allowed placement options for this float type.
18228  The value is a string of placement characters.
18229  Possible characters include: 
18230 \emph on
18231 h
18232 \emph default
18233  (
18234 \begin_inset Quotes eld
18235 \end_inset
18236
18237 here if possible
18238 \begin_inset Quotes erd
18239 \end_inset
18240
18241 ), 
18242 \emph on
18243 t
18244 \emph default
18245  (
18246 \begin_inset Quotes eld
18247 \end_inset
18248
18249 top of page
18250 \begin_inset Quotes erd
18251 \end_inset
18252
18253 ), 
18254 \emph on
18255 b
18256 \emph default
18257  (
18258 \begin_inset Quotes eld
18259 \end_inset
18260
18261 bottom of page
18262 \begin_inset Quotes erd
18263 \end_inset
18264
18265 ), 
18266 \emph on
18267 p
18268 \emph default
18269  (
18270 \begin_inset Quotes eld
18271 \end_inset
18272
18273 page of floats
18274 \begin_inset Quotes erd
18275 \end_inset
18276
18277 ), 
18278 \emph on
18279 H
18280 \emph default
18281  (
18282 \begin_inset Quotes eld
18283 \end_inset
18284
18285 here definitely
18286 \begin_inset Quotes erd
18287 \end_inset
18288
18289 ) and 
18290 \emph on
18291 !
18292 \emph default
18293  (
18294 \begin_inset Quotes eld
18295 \end_inset
18296
18297 ignore LaTeX rules
18298 \begin_inset Quotes erd
18299 \end_inset
18300
18301 ).
18302  The order of the characters in the string does not matter.
18303  If no placement options are allowed, use the string 
18304 \emph on
18305 none
18306 \emph default
18307 .
18308 \end_layout
18309
18310 \begin_layout Description
18311 \begin_inset Flex Code
18312 status collapsed
18313
18314 \begin_layout Plain Layout
18315 AllowsSideways
18316 \end_layout
18317
18318 \end_inset
18319
18320  [
18321 \begin_inset Flex Code
18322 status collapsed
18323
18324 \begin_layout Plain Layout
18325
18326 \emph off
18327 0
18328 \end_layout
18329
18330 \end_inset
18331
18332 ,
18333 \begin_inset space \thinspace{}
18334 \end_inset
18335
18336
18337 \emph on
18338
18339 \begin_inset Flex Code
18340 status collapsed
18341
18342 \begin_layout Plain Layout
18343
18344 \emph on
18345 1
18346 \end_layout
18347
18348 \end_inset
18349
18350
18351 \emph default
18352 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
18353 -package 
18354 \family typewriter
18355 rotfloat
18356 \family default
18357  (sidewaysfloat).
18358  Set to 
18359 \begin_inset Flex Code
18360 status collapsed
18361
18362 \begin_layout Plain Layout
18363 0
18364 \end_layout
18365
18366 \end_inset
18367
18368  if the float does not support this feature.
18369 \end_layout
18370
18371 \begin_layout Description
18372 \begin_inset Flex Code
18373 status collapsed
18374
18375 \begin_layout Plain Layout
18376 AllowsWide
18377 \end_layout
18378
18379 \end_inset
18380
18381  [
18382 \begin_inset Flex Code
18383 status collapsed
18384
18385 \begin_layout Plain Layout
18386
18387 \emph off
18388 0
18389 \end_layout
18390
18391 \end_inset
18392
18393 ,
18394 \begin_inset space \thinspace{}
18395 \end_inset
18396
18397
18398 \emph on
18399
18400 \begin_inset Flex Code
18401 status collapsed
18402
18403 \begin_layout Plain Layout
18404
18405 \emph on
18406 1
18407 \end_layout
18408
18409 \end_inset
18410
18411
18412 \emph default
18413 ] Defines whether the float has a starred variant that spans columns in
18414  a two column paragraph.
18415  Set to 
18416 \begin_inset Flex Code
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420 0
18421 \end_layout
18422
18423 \end_inset
18424
18425  if the float does not support this feature.
18426 \end_layout
18427
18428 \begin_layout Description
18429 \begin_inset Flex Code
18430 status collapsed
18431
18432 \begin_layout Plain Layout
18433 Extension
18434 \end_layout
18435
18436 \end_inset
18437
18438  [
18439 \begin_inset Flex Code
18440 status collapsed
18441
18442 \begin_layout Plain Layout
18443 string
18444 \end_layout
18445
18446 \end_inset
18447
18448 =
18449 \begin_inset Quotes erd
18450 \end_inset
18451
18452
18453 \begin_inset Quotes erd
18454 \end_inset
18455
18456 ] The file name extension of an auxiliary file for the list of figures (or
18457  whatever).
18458  \SpecialChar LaTeX
18459  writes the captions to this file.
18460 \end_layout
18461
18462 \begin_layout Description
18463 \begin_inset Flex Code
18464 status collapsed
18465
18466 \begin_layout Plain Layout
18467 GuiName
18468 \end_layout
18469
18470 \end_inset
18471
18472  [
18473 \begin_inset Flex Code
18474 status collapsed
18475
18476 \begin_layout Plain Layout
18477 string
18478 \end_layout
18479
18480 \end_inset
18481
18482 =
18483 \begin_inset Quotes erd
18484 \end_inset
18485
18486
18487 \begin_inset Quotes erd
18488 \end_inset
18489
18490 ] The string that will be used in the menus and also for the caption.
18491  This is translated to the current language if babel is used.
18492 \end_layout
18493
18494 \begin_layout Description
18495 \begin_inset Flex Code
18496 status collapsed
18497
18498 \begin_layout Plain Layout
18499 HTML*
18500 \end_layout
18501
18502 \end_inset
18503
18504  These tags control the XHTML output.
18505  See 
18506 \begin_inset CommandInset ref
18507 LatexCommand ref
18508 reference "sec:Tags-for-XHTML"
18509
18510 \end_inset
18511
18512 .
18513 \end_layout
18514
18515 \begin_layout Description
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520 IsPredefined
18521 \end_layout
18522
18523 \end_inset
18524
18525  [
18526 \emph on
18527
18528 \begin_inset Flex Code
18529 status collapsed
18530
18531 \begin_layout Plain Layout
18532 0
18533 \end_layout
18534
18535 \end_inset
18536
18537
18538 \emph default
18539 ,
18540 \begin_inset space \thinspace{}
18541 \end_inset
18542
18543
18544 \begin_inset Flex Code
18545 status collapsed
18546
18547 \begin_layout Plain Layout
18548 1
18549 \end_layout
18550
18551 \end_inset
18552
18553 ] Indicates whether the float is already defined in the document class or
18554  if instead the \SpecialChar LaTeX
18555  package 
18556 \begin_inset Flex Code
18557 status collapsed
18558
18559 \begin_layout Plain Layout
18560 float
18561 \end_layout
18562
18563 \end_inset
18564
18565  needs to be loaded to define it on-the-fly.
18566  The default is 
18567 \begin_inset Flex Code
18568 status collapsed
18569
18570 \begin_layout Plain Layout
18571 0
18572 \end_layout
18573
18574 \end_inset
18575
18576 , which means: 
18577 \begin_inset Flex Code
18578 status collapsed
18579
18580 \begin_layout Plain Layout
18581 float
18582 \end_layout
18583
18584 \end_inset
18585
18586  is used.
18587  It should be set to 
18588 \begin_inset Flex Code
18589 status collapsed
18590
18591 \begin_layout Plain Layout
18592 1
18593 \end_layout
18594
18595 \end_inset
18596
18597  if the float is already defined by the \SpecialChar LaTeX
18598  document class.
18599 \end_layout
18600
18601 \begin_layout Description
18602 \begin_inset Flex Code
18603 status collapsed
18604
18605 \begin_layout Plain Layout
18606 ListCommand
18607 \end_layout
18608
18609 \end_inset
18610
18611  [
18612 \begin_inset Flex Code
18613 status collapsed
18614
18615 \begin_layout Plain Layout
18616 string
18617 \end_layout
18618
18619 \end_inset
18620
18621 =
18622 \begin_inset Quotes erd
18623 \end_inset
18624
18625
18626 \begin_inset Quotes erd
18627 \end_inset
18628
18629 ] The command used to generate a list of floats of this type; the leading
18630  `
18631 \backslash
18632 ' must be omitted.
18633  This 
18634 \emph on
18635 must
18636 \emph default
18637  be given if 
18638 \begin_inset Flex Code
18639 status collapsed
18640
18641 \begin_layout Plain Layout
18642 UsesFloatPkg
18643 \end_layout
18644
18645 \end_inset
18646
18647  is false, since there is no standard way to generate this command.
18648  It is ignored if 
18649 \begin_inset Flex Code
18650 status collapsed
18651
18652 \begin_layout Plain Layout
18653 UsesFloatPkg
18654 \end_layout
18655
18656 \end_inset
18657
18658  is true, since in that case there is a standard way to define the command.
18659 \end_layout
18660
18661 \begin_layout Description
18662 \begin_inset Flex Code
18663 status collapsed
18664
18665 \begin_layout Plain Layout
18666 ListName
18667 \end_layout
18668
18669 \end_inset
18670
18671  [
18672 \begin_inset Flex Code
18673 status collapsed
18674
18675 \begin_layout Plain Layout
18676 string
18677 \end_layout
18678
18679 \end_inset
18680
18681 =
18682 \begin_inset Quotes erd
18683 \end_inset
18684
18685
18686 \begin_inset Quotes erd
18687 \end_inset
18688
18689 ] A title for a list of floats of this kind (list of figures, tables, or
18690  whatever).
18691  It is used for the screen label within \SpecialChar LyX
18692 , it is used by \SpecialChar LaTeX
18693  for the title and
18694  it is used as the title in the XHTML output.
18695  It will be translated to the document language.
18696 \end_layout
18697
18698 \begin_layout Description
18699 \begin_inset Flex Code
18700 status collapsed
18701
18702 \begin_layout Plain Layout
18703 NumberWithin
18704 \end_layout
18705
18706 \end_inset
18707
18708  [
18709 \begin_inset Flex Code
18710 status collapsed
18711
18712 \begin_layout Plain Layout
18713 string
18714 \end_layout
18715
18716 \end_inset
18717
18718 =
18719 \begin_inset Quotes erd
18720 \end_inset
18721
18722
18723 \begin_inset Quotes erd
18724 \end_inset
18725
18726 ] This (optional) argument determines whether floats of this class will
18727  be numbered within some sectional unit of the document.
18728  For example, if 
18729 \begin_inset Flex Code
18730 status collapsed
18731
18732 \begin_layout Plain Layout
18733 NumberWithin
18734 \end_layout
18735
18736 \end_inset
18737
18738  is set to 
18739 \begin_inset Quotes eld
18740 \end_inset
18741
18742
18743 \begin_inset Flex Code
18744 status collapsed
18745
18746 \begin_layout Plain Layout
18747 chapter
18748 \end_layout
18749
18750 \end_inset
18751
18752
18753 \begin_inset Quotes erd
18754 \end_inset
18755
18756 , the floats will be numbered within chapters.
18757  
18758 \end_layout
18759
18760 \begin_layout Description
18761 \begin_inset Flex Code
18762 status collapsed
18763
18764 \begin_layout Plain Layout
18765 Placement
18766 \end_layout
18767
18768 \end_inset
18769
18770  [
18771 \begin_inset Flex Code
18772 status collapsed
18773
18774 \begin_layout Plain Layout
18775 string
18776 \end_layout
18777
18778 \end_inset
18779
18780 =
18781 \begin_inset Quotes erd
18782 \end_inset
18783
18784
18785 \begin_inset Quotes erd
18786 \end_inset
18787
18788 ] The default placement for the given class of floats.
18789  The string should be as in standard \SpecialChar LaTeX
18790
18791 \begin_inset Flex Code
18792 status collapsed
18793
18794 \begin_layout Plain Layout
18795 t
18796 \end_layout
18797
18798 \end_inset
18799
18800
18801 \begin_inset Flex Code
18802 status collapsed
18803
18804 \begin_layout Plain Layout
18805 b
18806 \end_layout
18807
18808 \end_inset
18809
18810
18811 \begin_inset Flex Code
18812 status collapsed
18813
18814 \begin_layout Plain Layout
18815 p
18816 \end_layout
18817
18818 \end_inset
18819
18820  and 
18821 \begin_inset Flex Code
18822 status collapsed
18823
18824 \begin_layout Plain Layout
18825 h
18826 \end_layout
18827
18828 \end_inset
18829
18830  for top, bottom, page, and here, respectively.
18831 \begin_inset Foot
18832 status collapsed
18833
18834 \begin_layout Plain Layout
18835 Note that the order of these letters in the string is irrelevant, like in
18836  \SpecialChar LaTeX
18837 .
18838 \end_layout
18839
18840 \end_inset
18841
18842  On top of that there is a new type, 
18843 \begin_inset Flex Code
18844 status collapsed
18845
18846 \begin_layout Plain Layout
18847 H
18848 \end_layout
18849
18850 \end_inset
18851
18852 , which does not really correspond to a float, since it means: put it 
18853 \begin_inset Quotes eld
18854 \end_inset
18855
18856 here
18857 \begin_inset Quotes erd
18858 \end_inset
18859
18860  and nowhere else.
18861  Note however that the 
18862 \begin_inset Flex Code
18863 status collapsed
18864
18865 \begin_layout Plain Layout
18866 H
18867 \end_layout
18868
18869 \end_inset
18870
18871  specifier is special and, because of implementation details, cannot be
18872  used in non-built in float types.
18873  If you do not understand what this means, just use 
18874 \begin_inset Quotes eld
18875 \end_inset
18876
18877
18878 \begin_inset Flex Code
18879 status collapsed
18880
18881 \begin_layout Plain Layout
18882 tbp
18883 \end_layout
18884
18885 \end_inset
18886
18887
18888 \begin_inset Quotes erd
18889 \end_inset
18890
18891 .
18892 \end_layout
18893
18894 \begin_layout Description
18895 \begin_inset Flex Code
18896 status collapsed
18897
18898 \begin_layout Plain Layout
18899 RefPrefix
18900 \end_layout
18901
18902 \end_inset
18903
18904  [
18905 \begin_inset Flex Code
18906 status collapsed
18907
18908 \begin_layout Plain Layout
18909 string
18910 \end_layout
18911
18912 \end_inset
18913
18914 ] The prefix to use when creating labels referring to floats of this type.
18915  This allows the use of formatted references.
18916  Note that you can remove any 
18917 \begin_inset Flex Code
18918 status collapsed
18919
18920 \begin_layout Plain Layout
18921 RefPrefix
18922 \end_layout
18923
18924 \end_inset
18925
18926  set by a copied style by using the special value 
18927 \begin_inset Quotes eld
18928 \end_inset
18929
18930 OFF
18931 \begin_inset Quotes erd
18932 \end_inset
18933
18934 , which must be all caps.
18935 \change_inserted -712698321 1565605014
18936
18937 \end_layout
18938
18939 \begin_layout Description
18940
18941 \change_inserted -712698321 1565605014
18942 \begin_inset Flex Code
18943 status collapsed
18944
18945 \begin_layout Plain Layout
18946
18947 \change_inserted -712698321 1565605014
18948 Requires
18949 \change_unchanged
18950
18951 \end_layout
18952
18953 \end_inset
18954
18955  [
18956 \begin_inset Flex Code
18957 status collapsed
18958
18959 \begin_layout Plain Layout
18960
18961 \change_inserted -712698321 1565605014
18962 string
18963 \change_unchanged
18964
18965 \end_layout
18966
18967 \end_inset
18968
18969 ] As with paragraph styles, see 
18970 \begin_inset CommandInset ref
18971 LatexCommand ref
18972 reference "subsec:Paragraph-Styles"
18973
18974 \end_inset
18975
18976 .
18977 \change_unchanged
18978
18979 \end_layout
18980
18981 \begin_layout Description
18982 \begin_inset Flex Code
18983 status collapsed
18984
18985 \begin_layout Plain Layout
18986 Style
18987 \end_layout
18988
18989 \end_inset
18990
18991  [
18992 \begin_inset Flex Code
18993 status collapsed
18994
18995 \begin_layout Plain Layout
18996 string
18997 \end_layout
18998
18999 \end_inset
19000
19001 =
19002 \begin_inset Quotes erd
19003 \end_inset
19004
19005
19006 \begin_inset Quotes erd
19007 \end_inset
19008
19009 ] The style used when defining the float using 
19010 \begin_inset Flex Code
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014
19015 \backslash
19016 newfloat
19017 \end_layout
19018
19019 \end_inset
19020
19021 .
19022 \end_layout
19023
19024 \begin_layout Description
19025 \begin_inset Flex Code
19026 status collapsed
19027
19028 \begin_layout Plain Layout
19029 Type
19030 \end_layout
19031
19032 \end_inset
19033
19034  [
19035 \begin_inset Flex Code
19036 status collapsed
19037
19038 \begin_layout Plain Layout
19039 string
19040 \end_layout
19041
19042 \end_inset
19043
19044 =
19045 \begin_inset Quotes erd
19046 \end_inset
19047
19048
19049 \begin_inset Quotes erd
19050 \end_inset
19051
19052 ] The 
19053 \begin_inset Quotes eld
19054 \end_inset
19055
19056 type
19057 \begin_inset Quotes erd
19058 \end_inset
19059
19060  of the new class of floats, like program or algorithm.
19061  After the appropriate 
19062 \begin_inset Flex Code
19063 status collapsed
19064
19065 \begin_layout Plain Layout
19066
19067 \backslash
19068 newfloat
19069 \end_layout
19070
19071 \end_inset
19072
19073 , commands such as 
19074 \begin_inset Flex Code
19075 status collapsed
19076
19077 \begin_layout Plain Layout
19078
19079 \backslash
19080 begin{program}
19081 \end_layout
19082
19083 \end_inset
19084
19085  or 
19086 \begin_inset Flex Code
19087 status collapsed
19088
19089 \begin_layout Plain Layout
19090
19091 \backslash
19092 end{algorithm*}
19093 \end_layout
19094
19095 \end_inset
19096
19097  will be available.
19098 \end_layout
19099
19100 \begin_layout Description
19101 \begin_inset Flex Code
19102 status collapsed
19103
19104 \begin_layout Plain Layout
19105 UsesFloatPkg
19106 \end_layout
19107
19108 \end_inset
19109
19110  [
19111 \begin_inset Flex Code
19112 status collapsed
19113
19114 \begin_layout Plain Layout
19115 0
19116 \end_layout
19117
19118 \end_inset
19119
19120 ,
19121 \begin_inset space \thinspace{}
19122 \end_inset
19123
19124
19125 \begin_inset Flex Code
19126 status collapsed
19127
19128 \begin_layout Plain Layout
19129
19130 \emph on
19131 1
19132 \end_layout
19133
19134 \end_inset
19135
19136 ] Specifies whether this float is defined using the \SpecialChar LaTeX
19137  package 
19138 \begin_inset Flex Code
19139 status collapsed
19140
19141 \begin_layout Plain Layout
19142 float
19143 \end_layout
19144
19145 \end_inset
19146
19147 , either by the class file, another package or on-the-fly by \SpecialChar LyX
19148  itself.
19149 \end_layout
19150
19151 \begin_layout Standard
19152 Note that defining a float with type 
19153 \begin_inset Flex Code
19154 status collapsed
19155
19156 \begin_layout Plain Layout
19157
19158 \emph on
19159 type
19160 \end_layout
19161
19162 \end_inset
19163
19164  automatically defines the corresponding counter with name 
19165 \begin_inset Flex Code
19166 status collapsed
19167
19168 \begin_layout Plain Layout
19169
19170 \emph on
19171 type
19172 \end_layout
19173
19174 \end_inset
19175
19176 .
19177 \end_layout
19178
19179 \begin_layout Subsection
19180 Flex insets and InsetLayout
19181 \begin_inset CommandInset label
19182 LatexCommand label
19183 name "subsec:Flex-insets-and"
19184
19185 \end_inset
19186
19187
19188 \end_layout
19189
19190 \begin_layout Standard
19191 Flex insets come in 
19192 \change_deleted 5863208 1594239511
19193 three
19194 \change_inserted 5863208 1594239512
19195 two
19196 \change_unchanged
19197  different kinds: 
19198 \end_layout
19199
19200 \begin_layout Itemize
19201 character style (
19202 \begin_inset Flex Code
19203 status collapsed
19204
19205 \begin_layout Plain Layout
19206 CharStyle
19207 \end_layout
19208
19209 \end_inset
19210
19211 ): These define semantic markup corresponding to such \SpecialChar LaTeX
19212  commands as 
19213 \begin_inset Flex Code
19214 status collapsed
19215
19216 \begin_layout Plain Layout
19217
19218 \backslash
19219 noun
19220 \end_layout
19221
19222 \end_inset
19223
19224  and 
19225 \begin_inset Flex Code
19226 status collapsed
19227
19228 \begin_layout Plain Layout
19229
19230 \backslash
19231 code
19232 \end_layout
19233
19234 \end_inset
19235
19236 .
19237 \end_layout
19238
19239 \begin_layout Itemize
19240 user custom (
19241 \begin_inset Flex Code
19242 status collapsed
19243
19244 \begin_layout Plain Layout
19245 Custom
19246 \end_layout
19247
19248 \end_inset
19249
19250 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
19251  code,
19252  footnote, and the like.
19253  An obvious example is an endnote inset, which is defined in the 
19254 \begin_inset Flex Code
19255 status collapsed
19256
19257 \begin_layout Plain Layout
19258 endnote
19259 \end_layout
19260
19261 \end_inset
19262
19263  module.
19264 \end_layout
19265
19266 \begin_layout Itemize
19267
19268 \change_deleted 5863208 1594239528
19269 XML elements (
19270 \begin_inset Flex Code
19271 status collapsed
19272
19273 \begin_layout Plain Layout
19274 Element
19275 \end_layout
19276
19277 \end_inset
19278
19279 ): For use with DocBook classes.
19280 \change_unchanged
19281
19282 \end_layout
19283
19284 \begin_layout Standard
19285 Flex insets are defined using the 
19286 \begin_inset Flex Code
19287 status collapsed
19288
19289 \begin_layout Plain Layout
19290 InsetLayout
19291 \end_layout
19292
19293 \end_inset
19294
19295  tag, which shall be explained in a moment.
19296 \end_layout
19297
19298 \begin_layout Standard
19299 The 
19300 \begin_inset Flex Code
19301 status collapsed
19302
19303 \begin_layout Plain Layout
19304 InsetLayout
19305 \end_layout
19306
19307 \end_inset
19308
19309  tag also serves another function: It can be used to customize the general
19310  layout of many different types of insets.
19311  Currently, 
19312 \begin_inset Flex Code
19313 status collapsed
19314
19315 \begin_layout Plain Layout
19316 InsetLayout
19317 \end_layout
19318
19319 \end_inset
19320
19321  can be used to customize the layout parameters for footnotes, marginal
19322  notes, note insets, \SpecialChar TeX
19323  code (ERT) insets, branches, listings, indexes, boxes,
19324  tables, algorithms, URLs, and captions, as well as to define Flex insets.
19325 \end_layout
19326
19327 \begin_layout Standard
19328 The 
19329 \begin_inset Flex Code
19330 status collapsed
19331
19332 \begin_layout Plain Layout
19333 InsetLayout
19334 \end_layout
19335
19336 \end_inset
19337
19338  definition must begin with a line of the form:
19339 \end_layout
19340
19341 \begin_layout LyX-Code
19342 InsetLayout <type>
19343 \end_layout
19344
19345 \begin_layout Standard
19346 Here 
19347 \begin_inset Flex Code
19348 status collapsed
19349
19350 \begin_layout Plain Layout
19351 <Type>
19352 \end_layout
19353
19354 \end_inset
19355
19356  indicates the inset whose layout is being defined, and here there are four
19357  cases.
19358 \end_layout
19359
19360 \begin_layout Enumerate
19361 The layout for a pre-existing inset is being modified.
19362  In this case, can be 
19363 \begin_inset Flex Code
19364 status collapsed
19365
19366 \begin_layout Plain Layout
19367 <Type>
19368 \end_layout
19369
19370 \end_inset
19371
19372  any one of the following: 
19373 \begin_inset Flex Code
19374 status collapsed
19375
19376 \begin_layout Plain Layout
19377 Algorithm
19378 \end_layout
19379
19380 \end_inset
19381
19382
19383 \begin_inset Flex Code
19384 status collapsed
19385
19386 \begin_layout Plain Layout
19387 Branch
19388 \end_layout
19389
19390 \end_inset
19391
19392
19393 \begin_inset Flex Code
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 Box
19398 \end_layout
19399
19400 \end_inset
19401
19402
19403 \begin_inset Flex Code
19404 status collapsed
19405
19406 \begin_layout Plain Layout
19407 Box:shaded
19408 \end_layout
19409
19410 \end_inset
19411
19412
19413 \begin_inset Flex Code
19414 status collapsed
19415
19416 \begin_layout Plain Layout
19417 Caption:Standard
19418 \end_layout
19419
19420 \end_inset
19421
19422
19423 \begin_inset Flex Code
19424 status collapsed
19425
19426 \begin_layout Plain Layout
19427 ERT
19428 \end_layout
19429
19430 \end_inset
19431
19432
19433 \begin_inset Flex Code
19434 status collapsed
19435
19436 \begin_layout Plain Layout
19437 Figure
19438 \end_layout
19439
19440 \end_inset
19441
19442
19443 \begin_inset Flex Code
19444 status collapsed
19445
19446 \begin_layout Plain Layout
19447 Foot
19448 \end_layout
19449
19450 \end_inset
19451
19452
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 Index
19458 \end_layout
19459
19460 \end_inset
19461
19462
19463 \begin_inset Flex Code
19464 status collapsed
19465
19466 \begin_layout Plain Layout
19467 Info
19468 \end_layout
19469
19470 \end_inset
19471
19472
19473 \begin_inset Flex Code
19474 status collapsed
19475
19476 \begin_layout Plain Layout
19477 Info:menu
19478 \end_layout
19479
19480 \end_inset
19481
19482
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 Info:shortcut
19488 \end_layout
19489
19490 \end_inset
19491
19492
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497 Info:shortcuts
19498 \end_layout
19499
19500 \end_inset
19501
19502
19503 \begin_inset Flex Code
19504 status collapsed
19505
19506 \begin_layout Plain Layout
19507 Listings
19508 \end_layout
19509
19510 \end_inset
19511
19512
19513 \begin_inset Flex Code
19514 status collapsed
19515
19516 \begin_layout Plain Layout
19517 Marginal
19518 \end_layout
19519
19520 \end_inset
19521
19522
19523 \begin_inset Flex Code
19524 status collapsed
19525
19526 \begin_layout Plain Layout
19527 Note:Comment
19528 \end_layout
19529
19530 \end_inset
19531
19532
19533 \begin_inset Flex Code
19534 status collapsed
19535
19536 \begin_layout Plain Layout
19537 Note:Note
19538 \end_layout
19539
19540 \end_inset
19541
19542
19543 \begin_inset Flex Code
19544 status collapsed
19545
19546 \begin_layout Plain Layout
19547 Note:Greyedout
19548 \end_layout
19549
19550 \end_inset
19551
19552
19553 \begin_inset Flex Code
19554 status collapsed
19555
19556 \begin_layout Plain Layout
19557 Table
19558 \end_layout
19559
19560 \end_inset
19561
19562 , or 
19563 \begin_inset Flex Code
19564 status collapsed
19565
19566 \begin_layout Plain Layout
19567 URL
19568 \end_layout
19569
19570 \end_inset
19571
19572 .
19573 \end_layout
19574
19575 \begin_layout Enumerate
19576 The layout for a Flex inset is being defined.
19577  In this case, 
19578 \begin_inset Flex Code
19579 status collapsed
19580
19581 \begin_layout Plain Layout
19582 <Type>
19583 \end_layout
19584
19585 \end_inset
19586
19587  must be of the form 
19588 \begin_inset Quotes eld
19589 \end_inset
19590
19591
19592 \begin_inset Flex Code
19593 status collapsed
19594
19595 \begin_layout Plain Layout
19596 Flex:<name>
19597 \end_layout
19598
19599 \end_inset
19600
19601
19602 \begin_inset Quotes erd
19603 \end_inset
19604
19605 , where 
19606 \begin_inset Flex Code
19607 status collapsed
19608
19609 \begin_layout Plain Layout
19610 name
19611 \end_layout
19612
19613 \end_inset
19614
19615  may be any valid identifier not used by a pre-existing Flex inset.
19616  The identifier may include spaces, but in that case the whole thing must
19617  be wrapped in quotes.
19618  Note that the definition of a flex inset 
19619 \emph on
19620 must 
19621 \emph default
19622 also include a 
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627 LyXType
19628 \end_layout
19629
19630 \end_inset
19631
19632  entry, declaring which type of inset it defines.
19633 \end_layout
19634
19635 \begin_layout Enumerate
19636 The layout for user specific branch is being defined.
19637  In this case, 
19638 \begin_inset Flex Code
19639 status collapsed
19640
19641 \begin_layout Plain Layout
19642 <Type>
19643 \end_layout
19644
19645 \end_inset
19646
19647  must be of the form 
19648 \begin_inset Quotes eld
19649 \end_inset
19650
19651
19652 \begin_inset Flex Code
19653 status collapsed
19654
19655 \begin_layout Plain Layout
19656 Branch:<name>
19657 \end_layout
19658
19659 \end_inset
19660
19661
19662 \begin_inset Quotes erd
19663 \end_inset
19664
19665 , where 
19666 \begin_inset Flex Code
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670 name
19671 \end_layout
19672
19673 \end_inset
19674
19675  may be any valid identifier of branch defined in user's document.
19676  The identifier may include spaces, but in that case the whole thing must
19677  be wrapped in quotes.
19678  The main purpose of this feature is to allow \SpecialChar LaTeX
19679  wrapping around specific
19680  branches as user needs.
19681 \end_layout
19682
19683 \begin_layout Enumerate
19684 The layout of a user (or class) specific caption is being defined.
19685  In this case, 
19686 \begin_inset Flex Code
19687 status collapsed
19688
19689 \begin_layout Plain Layout
19690 <Type>
19691 \end_layout
19692
19693 \end_inset
19694
19695  must be of the form 
19696 \begin_inset Quotes eld
19697 \end_inset
19698
19699
19700 \begin_inset Flex Code
19701 status collapsed
19702
19703 \begin_layout Plain Layout
19704 Caption:<name>
19705 \end_layout
19706
19707 \end_inset
19708
19709
19710 \begin_inset Quotes erd
19711 \end_inset
19712
19713 , where 
19714 \begin_inset Flex Code
19715 status collapsed
19716
19717 \begin_layout Plain Layout
19718 name
19719 \end_layout
19720
19721 \end_inset
19722
19723  specifies the name of the caption as it appears in the menu.
19724  Have a look at the standard caption (
19725 \begin_inset Flex Code
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729 Caption:Standard
19730 \end_layout
19731
19732 \end_inset
19733
19734 ), the specific captions of the KOMA-Script classes (
19735 \begin_inset Flex Code
19736 status collapsed
19737
19738 \begin_layout Plain Layout
19739 Caption:Above
19740 \end_layout
19741
19742 \end_inset
19743
19744
19745 \begin_inset Flex Code
19746 status collapsed
19747
19748 \begin_layout Plain Layout
19749 Caption:Below
19750 \end_layout
19751
19752 \end_inset
19753
19754 ) or the module 
19755 \family sans
19756 Multilingual
19757 \begin_inset space ~
19758 \end_inset
19759
19760 Captions
19761 \begin_inset Newline linebreak
19762 \end_inset
19763
19764
19765 \family default
19766 (
19767 \begin_inset Flex Code
19768 status collapsed
19769
19770 \begin_layout Plain Layout
19771 Caption:Bicaption
19772 \end_layout
19773
19774 \end_inset
19775
19776 ) for applications.
19777 \end_layout
19778
19779 \begin_layout Standard
19780 The 
19781 \begin_inset Flex Code
19782 status collapsed
19783
19784 \begin_layout Plain Layout
19785 InsetLayout
19786 \end_layout
19787
19788 \end_inset
19789
19790  definition can contain the following entries:
19791 \end_layout
19792
19793 \begin_layout Description
19794 \begin_inset Flex Code
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 AddToToc
19799 \end_layout
19800
19801 \end_inset
19802
19803  [
19804 \begin_inset Flex Code
19805 status collapsed
19806
19807 \begin_layout Plain Layout
19808 string
19809 \end_layout
19810
19811 \end_inset
19812
19813 =""] This inset will appear in the table of contents of the given type.
19814  An empty string disables.
19815  See also the OutlinerName and the IsTocCaption commands.
19816  This is only implemented for Flex insets.
19817  Default: disabled.
19818 \end_layout
19819
19820 \begin_layout Description
19821 \begin_inset Flex Code
19822 status collapsed
19823
19824 \begin_layout Plain Layout
19825 Argument
19826 \end_layout
19827
19828 \end_inset
19829
19830  [
19831 \begin_inset Flex Code
19832 status collapsed
19833
19834 \begin_layout Plain Layout
19835 int
19836 \end_layout
19837
19838 \end_inset
19839
19840 ] Defines argument number of a command\SpecialChar breakableslash
19841 environment associated with the current
19842  layout.
19843  The definition must end with 
19844 \begin_inset Flex Code
19845 status collapsed
19846
19847 \begin_layout Plain Layout
19848 EndArgument
19849 \end_layout
19850
19851 \end_inset
19852
19853 .
19854  See 
19855 \begin_inset CommandInset ref
19856 LatexCommand ref
19857 reference "subsec:Paragraph-Styles"
19858
19859 \end_inset
19860
19861  for details.
19862 \end_layout
19863
19864 \begin_layout Description
19865 \begin_inset Flex Code
19866 status collapsed
19867
19868 \begin_layout Plain Layout
19869 BabelPreamble
19870 \end_layout
19871
19872 \end_inset
19873
19874  Preamble for changing language commands; see 
19875 \begin_inset CommandInset ref
19876 LatexCommand ref
19877 reference "subsec:I18n"
19878
19879 \end_inset
19880
19881 .
19882 \end_layout
19883
19884 \begin_layout Description
19885 \begin_inset Flex Code
19886 status collapsed
19887
19888 \begin_layout Plain Layout
19889 BgColor
19890 \end_layout
19891
19892 \end_inset
19893
19894  [
19895 \begin_inset Flex Code
19896 status collapsed
19897
19898 \begin_layout Plain Layout
19899 <name>
19900 \end_layout
19901
19902 \end_inset
19903
19904 ] The color for the inset's background.
19905  See 
19906 \begin_inset CommandInset ref
19907 LatexCommand ref
19908 reference "chap:Names-of-colors"
19909
19910 \end_inset
19911
19912  for a list of the available color names.
19913 \end_layout
19914
19915 \begin_layout Description
19916 \begin_inset Flex Code
19917 status collapsed
19918
19919 \begin_layout Plain Layout
19920 ContentAsLabel
19921 \end_layout
19922
19923 \end_inset
19924
19925  [
19926 \begin_inset Flex Code
19927 status collapsed
19928
19929 \begin_layout Plain Layout
19930
19931 \emph on
19932 0
19933 \end_layout
19934
19935 \end_inset
19936
19937 ,
19938 \begin_inset space \thinspace{}
19939 \end_inset
19940
19941
19942 \begin_inset Flex Code
19943 status collapsed
19944
19945 \begin_layout Plain Layout
19946 1
19947 \end_layout
19948
19949 \end_inset
19950
19951 ] Whether to use the content of the inset as the label, when the inset is
19952  closed.
19953  Default is false.
19954 \end_layout
19955
19956 \begin_layout Description
19957 \begin_inset Flex Code
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961 CopyStyle
19962 \end_layout
19963
19964 \end_inset
19965
19966  [
19967 \begin_inset Flex Code
19968 status collapsed
19969
19970 \begin_layout Plain Layout
19971 <type>
19972 \end_layout
19973
19974 \end_inset
19975
19976 ] As with paragraph styles, see 
19977 \begin_inset CommandInset ref
19978 LatexCommand ref
19979 reference "subsec:Paragraph-Styles"
19980
19981 \end_inset
19982
19983 .
19984  Note that you need to specify the complete type, e.
19985 \begin_inset space \thinspace{}
19986 \end_inset
19987
19988 g.
19989 \begin_inset space ~
19990 \end_inset
19991
19992
19993 \begin_inset Flex Code
19994 status collapsed
19995
19996 \begin_layout Plain Layout
19997 CopyStyle Flex:<name>
19998 \end_layout
19999
20000 \end_inset
20001
20002 .
20003 \end_layout
20004
20005 \begin_layout Description
20006 \begin_inset Flex Code
20007 status collapsed
20008
20009 \begin_layout Plain Layout
20010 CustomPars
20011 \end_layout
20012
20013 \end_inset
20014
20015  [
20016 \begin_inset Flex Code
20017 status collapsed
20018
20019 \begin_layout Plain Layout
20020
20021 \emph on
20022 0
20023 \end_layout
20024
20025 \end_inset
20026
20027 ,
20028 \begin_inset space \thinspace{}
20029 \end_inset
20030
20031
20032 \begin_inset Flex Code
20033 status collapsed
20034
20035 \begin_layout Plain Layout
20036 1
20037 \end_layout
20038
20039 \end_inset
20040
20041 ] Indicates whether the user may employ the Paragraph Settings dialog to
20042  customize the paragraph.
20043 \end_layout
20044
20045 \begin_layout Description
20046 \begin_inset Flex Code
20047 status collapsed
20048
20049 \begin_layout Plain Layout
20050 Decoration
20051 \end_layout
20052
20053 \end_inset
20054
20055  can be 
20056 \begin_inset Flex Code
20057 status collapsed
20058
20059 \begin_layout Plain Layout
20060 Classic
20061 \end_layout
20062
20063 \end_inset
20064
20065
20066 \begin_inset Flex Code
20067 status collapsed
20068
20069 \begin_layout Plain Layout
20070 Minimalistic
20071 \end_layout
20072
20073 \end_inset
20074
20075 , or 
20076 \begin_inset Flex Code
20077 status collapsed
20078
20079 \begin_layout Plain Layout
20080 Conglomerate
20081 \end_layout
20082
20083 \end_inset
20084
20085 , describing the rendering style used for the inset's frame and buttons.
20086  Footnotes generally use 
20087 \begin_inset Flex Code
20088 status collapsed
20089
20090 \begin_layout Plain Layout
20091 Classic
20092 \end_layout
20093
20094 \end_inset
20095
20096 , ERT insets generally 
20097 \begin_inset Flex Code
20098 status collapsed
20099
20100 \begin_layout Plain Layout
20101 Minimalistic
20102 \end_layout
20103
20104 \end_inset
20105
20106 , and character styles 
20107 \begin_inset Flex Code
20108 status collapsed
20109
20110 \begin_layout Plain Layout
20111 Conglomerate
20112 \end_layout
20113
20114 \end_inset
20115
20116 .
20117 \end_layout
20118
20119 \begin_layout Description
20120 \begin_inset Flex Code
20121 status collapsed
20122
20123 \begin_layout Plain Layout
20124 Display
20125 \end_layout
20126
20127 \end_inset
20128
20129  [
20130 \begin_inset Flex Code
20131 status collapsed
20132
20133 \begin_layout Plain Layout
20134 0
20135 \end_layout
20136
20137 \end_inset
20138
20139 ,
20140 \emph on
20141
20142 \begin_inset space \thinspace{}
20143 \end_inset
20144
20145
20146 \emph default
20147
20148 \begin_inset Flex Code
20149 status collapsed
20150
20151 \begin_layout Plain Layout
20152
20153 \emph on
20154 1
20155 \end_layout
20156
20157 \end_inset
20158
20159 ] Only useful if 
20160 \begin_inset Flex Code
20161 status collapsed
20162
20163 \begin_layout Plain Layout
20164 LatexType
20165 \end_layout
20166
20167 \end_inset
20168
20169  is 
20170 \begin_inset Flex Code
20171 status collapsed
20172
20173 \begin_layout Plain Layout
20174 Environment
20175 \end_layout
20176
20177 \end_inset
20178
20179 .
20180  Indicates whether the environment will stand on its own in the output or
20181  will appear inline with the surrounding text.
20182  If set to false, it is supposed that the \SpecialChar LaTeX
20183  environment ignores white space
20184  (including one newline character) after the 
20185 \begin_inset Flex Code
20186 status collapsed
20187
20188 \begin_layout Plain Layout
20189
20190 \backslash
20191 begin{
20192 \emph on
20193 LatexName
20194 \emph default
20195 }
20196 \end_layout
20197
20198 \end_inset
20199
20200  and 
20201 \begin_inset Flex Code
20202 status collapsed
20203
20204 \begin_layout Plain Layout
20205
20206 \backslash
20207 end{
20208 \emph on
20209 LatexName
20210 \emph default
20211 }
20212 \end_layout
20213
20214 \end_inset
20215
20216  tags.
20217  Default is true.
20218 \change_inserted 731793113 1538674858
20219
20220 \end_layout
20221
20222 \begin_layout Description
20223
20224 \change_inserted 731793113 1538674891
20225 \begin_inset Flex Code
20226 status open
20227
20228 \begin_layout Plain Layout
20229
20230 \change_inserted 731793113 1538674863
20231 EditExternal
20232 \change_unchanged
20233
20234 \end_layout
20235
20236 \end_inset
20237
20238  [
20239 \emph on
20240 0
20241 \emph default
20242 ,1] Allow the contents of the inset to be edited externally (using whatever
20243  editor is defined for the document's output format).
20244 \change_unchanged
20245
20246 \end_layout
20247
20248 \begin_layout Description
20249 \begin_inset Flex Code
20250 status collapsed
20251
20252 \begin_layout Plain Layout
20253 End
20254 \end_layout
20255
20256 \end_inset
20257
20258  Required at the end of the 
20259 \begin_inset Flex Code
20260 status collapsed
20261
20262 \begin_layout Plain Layout
20263 InsetLayout
20264 \end_layout
20265
20266 \end_inset
20267
20268  declarations.
20269 \end_layout
20270
20271 \begin_layout Description
20272 \begin_inset Flex Code
20273 status collapsed
20274
20275 \begin_layout Plain Layout
20276 Font
20277 \end_layout
20278
20279 \end_inset
20280
20281  The font used for both the text body 
20282 \emph on
20283 and
20284 \emph default
20285  the label.
20286  See 
20287 \begin_inset CommandInset ref
20288 LatexCommand ref
20289 reference "subsec:Font-description"
20290
20291 \end_inset
20292
20293 .
20294  Note that defining this font automatically defines the 
20295 \begin_inset Flex Code
20296 status collapsed
20297
20298 \begin_layout Plain Layout
20299 LabelFont
20300 \end_layout
20301
20302 \end_inset
20303
20304  to the same value, so define this first and define 
20305 \begin_inset Flex Code
20306 status collapsed
20307
20308 \begin_layout Plain Layout
20309 LabelFont
20310 \end_layout
20311
20312 \end_inset
20313
20314  later if you want them to be different.
20315 \end_layout
20316
20317 \begin_layout Description
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322 FixedWidthPreambleEncoding
20323 \end_layout
20324
20325 \end_inset
20326
20327  [
20328 \begin_inset Flex Code
20329 status collapsed
20330
20331 \begin_layout Plain Layout
20332
20333 \emph on
20334 0
20335 \end_layout
20336
20337 \end_inset
20338
20339 ,
20340 \begin_inset space \thinspace{}
20341 \end_inset
20342
20343
20344 \begin_inset Flex Code
20345 status collapsed
20346
20347 \begin_layout Plain Layout
20348 1
20349 \end_layout
20350
20351 \end_inset
20352
20353 ] Force a fixed width encoding for the translated contents of 
20354 \begin_inset Flex Code
20355 status collapsed
20356
20357 \begin_layout Plain Layout
20358 BabelPreamble
20359 \end_layout
20360
20361 \end_inset
20362
20363  and 
20364 \begin_inset Flex Code
20365 status collapsed
20366
20367 \begin_layout Plain Layout
20368 LangPreamble
20369 \end_layout
20370
20371 \end_inset
20372
20373  code generated by this layout.
20374  This is needed for special \SpecialChar LaTeX
20375 -packages like 
20376 \family typewriter
20377 listings
20378 \family default
20379  that do not work with variable width encodings such as 
20380 \family sans
20381 utf8
20382 \family default
20383 .
20384  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
20385  backends such as Xe\SpecialChar TeX
20386  or
20387  Lua\SpecialChar TeX
20388  are used.
20389 \end_layout
20390
20391 \begin_layout Description
20392 \begin_inset Flex Code
20393 status collapsed
20394
20395 \begin_layout Plain Layout
20396 ForceLocalFontSwitch
20397 \end_layout
20398
20399 \end_inset
20400
20401  [
20402 \begin_inset Flex Code
20403 status collapsed
20404
20405 \begin_layout Plain Layout
20406
20407 \emph on
20408 0
20409 \end_layout
20410
20411 \end_inset
20412
20413 ,
20414 \begin_inset space \thinspace{}
20415 \end_inset
20416
20417
20418 \begin_inset Flex Code
20419 status collapsed
20420
20421 \begin_layout Plain Layout
20422 1
20423 \end_layout
20424
20425 \end_inset
20426
20427 ] When using babel, always use a local font switch (
20428 \begin_inset Flex Code
20429 status collapsed
20430
20431 \begin_layout Plain Layout
20432
20433 \backslash
20434 foreignlanguage
20435 \end_layout
20436
20437 \end_inset
20438
20439 ), never a global one (such as 
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444
20445 \backslash
20446 selectlanguage
20447 \end_layout
20448
20449 \end_inset
20450
20451 ).
20452 \end_layout
20453
20454 \begin_layout Description
20455 \begin_inset Flex Code
20456 status collapsed
20457
20458 \begin_layout Plain Layout
20459 ForceLTR
20460 \end_layout
20461
20462 \end_inset
20463
20464  [
20465 \begin_inset Flex Code
20466 status collapsed
20467
20468 \begin_layout Plain Layout
20469
20470 \emph on
20471 0
20472 \end_layout
20473
20474 \end_inset
20475
20476 ,
20477 \begin_inset space \thinspace{}
20478 \end_inset
20479
20480
20481 \begin_inset Flex Code
20482 status collapsed
20483
20484 \begin_layout Plain Layout
20485 1
20486 \end_layout
20487
20488 \end_inset
20489
20490 ] Force the 
20491 \begin_inset Quotes eld
20492 \end_inset
20493
20494 latex
20495 \begin_inset Quotes erd
20496 \end_inset
20497
20498  language, leading to Left-to-Right (Latin) output, e.
20499 \begin_inset space \thinspace{}
20500 \end_inset
20501
20502 g.
20503 \begin_inset space \space{}
20504 \end_inset
20505
20506 in \SpecialChar TeX
20507  code or URL.
20508  A kludge.
20509 \end_layout
20510
20511 \begin_layout Description
20512 \begin_inset Flex Code
20513 status collapsed
20514
20515 \begin_layout Plain Layout
20516 ForceOwnlines
20517 \end_layout
20518
20519 \end_inset
20520
20521  [
20522 \begin_inset Flex Code
20523 status collapsed
20524
20525 \begin_layout Plain Layout
20526
20527 \emph on
20528 0
20529 \end_layout
20530
20531 \end_inset
20532
20533 ,
20534 \begin_inset space \thinspace{}
20535 \end_inset
20536
20537
20538 \begin_inset Flex Code
20539 status collapsed
20540
20541 \begin_layout Plain Layout
20542 1
20543 \end_layout
20544
20545 \end_inset
20546
20547 ] Force a line break in the \SpecialChar LaTeX
20548  output before the inset starts and after the
20549  inset ends.
20550  This assures the inset itself is output on its own lines, for parsing purposes.
20551 \end_layout
20552
20553 \begin_layout Description
20554 \begin_inset Flex Code
20555 status collapsed
20556
20557 \begin_layout Plain Layout
20558 ForcePlain
20559 \end_layout
20560
20561 \end_inset
20562
20563  [
20564 \begin_inset Flex Code
20565 status collapsed
20566
20567 \begin_layout Plain Layout
20568
20569 \emph on
20570 0
20571 \end_layout
20572
20573 \end_inset
20574
20575 ,
20576 \begin_inset space \thinspace{}
20577 \end_inset
20578
20579
20580 \begin_inset Flex Code
20581 status collapsed
20582
20583 \begin_layout Plain Layout
20584 1
20585 \end_layout
20586
20587 \end_inset
20588
20589 ] Indicates whether the 
20590 \begin_inset Flex Code
20591 status collapsed
20592
20593 \begin_layout Plain Layout
20594 PlainLayout
20595 \end_layout
20596
20597 \end_inset
20598
20599  should be used or, instead, the user can change the paragraph style used
20600  in the inset.
20601  Default is false.
20602 \end_layout
20603
20604 \begin_layout Description
20605 \begin_inset Flex Code
20606 status collapsed
20607
20608 \begin_layout Plain Layout
20609 FreeSpacing
20610 \end_layout
20611
20612 \end_inset
20613
20614  [
20615 \begin_inset Flex Code
20616 status collapsed
20617
20618 \begin_layout Plain Layout
20619
20620 \emph on
20621 0
20622 \end_layout
20623
20624 \end_inset
20625
20626 ,
20627 \begin_inset space \thinspace{}
20628 \end_inset
20629
20630
20631 \begin_inset Flex Code
20632 status collapsed
20633
20634 \begin_layout Plain Layout
20635 1
20636 \end_layout
20637
20638 \end_inset
20639
20640 ] As with paragraph styles, see 
20641 \begin_inset CommandInset ref
20642 LatexCommand ref
20643 reference "subsec:Paragraph-Styles"
20644
20645 \end_inset
20646
20647 .
20648 \end_layout
20649
20650 \begin_layout Description
20651 \begin_inset Flex Code
20652 status collapsed
20653
20654 \begin_layout Plain Layout
20655 HTML*
20656 \end_layout
20657
20658 \end_inset
20659
20660  These tags control the XHTML output.
20661  See 
20662 \begin_inset CommandInset ref
20663 LatexCommand ref
20664 reference "sec:Tags-for-XHTML"
20665
20666 \end_inset
20667
20668 .
20669 \end_layout
20670
20671 \begin_layout Description
20672 \begin_inset Flex Code
20673 status collapsed
20674
20675 \begin_layout Plain Layout
20676 InToc
20677 \end_layout
20678
20679 \end_inset
20680
20681  [
20682 \begin_inset Flex Code
20683 status collapsed
20684
20685 \begin_layout Plain Layout
20686
20687 \emph on
20688 0
20689 \end_layout
20690
20691 \end_inset
20692
20693 ,
20694 \begin_inset space \thinspace{}
20695 \end_inset
20696
20697
20698 \begin_inset Flex Code
20699 status collapsed
20700
20701 \begin_layout Plain Layout
20702 1
20703 \end_layout
20704
20705 \end_inset
20706
20707 ] Whether to include the contents of this inset in the strings generated
20708  for the `Outline' pane for all table of contents, regardless of the AddToToc
20709  setting.
20710  One would not, for example, want the content of a footnote in a section
20711  header to be included in the TOC displayed in the outline, but one would
20712  normally want the content of a character style displayed.
20713  Default is false: not to include.
20714 \end_layout
20715
20716 \begin_layout Description
20717 \begin_inset Flex Code
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721 IsTocCaption
20722 \end_layout
20723
20724 \end_inset
20725
20726  [
20727 \begin_inset Flex Code
20728 status collapsed
20729
20730 \begin_layout Plain Layout
20731
20732 \emph on
20733 0
20734 \end_layout
20735
20736 \end_inset
20737
20738 ,
20739 \begin_inset space \thinspace{}
20740 \end_inset
20741
20742
20743 \begin_inset Flex Code
20744 status collapsed
20745
20746 \begin_layout Plain Layout
20747 1
20748 \end_layout
20749
20750 \end_inset
20751
20752 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20753  of its contents in its item in the table of contents.
20754  Otherwise, only the label appears.
20755 \end_layout
20756
20757 \begin_layout Description
20758 \begin_inset Flex Code
20759 status collapsed
20760
20761 \begin_layout Plain Layout
20762 KeepEmpty
20763 \end_layout
20764
20765 \end_inset
20766
20767  [
20768 \emph on
20769
20770 \begin_inset Flex Code
20771 status collapsed
20772
20773 \begin_layout Plain Layout
20774 0
20775 \end_layout
20776
20777 \end_inset
20778
20779
20780 \emph default
20781 ,
20782 \begin_inset space \thinspace{}
20783 \end_inset
20784
20785
20786 \begin_inset Flex Code
20787 status collapsed
20788
20789 \begin_layout Plain Layout
20790 1
20791 \end_layout
20792
20793 \end_inset
20794
20795 ] As with paragraph styles, see 
20796 \begin_inset CommandInset ref
20797 LatexCommand ref
20798 reference "subsec:Paragraph-Styles"
20799
20800 \end_inset
20801
20802 .
20803 \end_layout
20804
20805 \begin_layout Description
20806 \begin_inset Flex Code
20807 status collapsed
20808
20809 \begin_layout Plain Layout
20810 LabelFont
20811 \end_layout
20812
20813 \end_inset
20814
20815  The font used for the label.
20816  See 
20817 \begin_inset CommandInset ref
20818 LatexCommand ref
20819 reference "subsec:Font-description"
20820
20821 \end_inset
20822
20823 .
20824  Note that this definition can never appear before 
20825 \begin_inset Flex Code
20826 status collapsed
20827
20828 \begin_layout Plain Layout
20829 Font
20830 \end_layout
20831
20832 \end_inset
20833
20834 , lest it be ineffective.
20835 \end_layout
20836
20837 \begin_layout Description
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842 LabelString
20843 \end_layout
20844
20845 \end_inset
20846
20847  [
20848 \begin_inset Flex Code
20849 status collapsed
20850
20851 \begin_layout Plain Layout
20852 string
20853 \end_layout
20854
20855 \end_inset
20856
20857 =
20858 \begin_inset Quotes erd
20859 \end_inset
20860
20861
20862 \begin_inset Quotes erd
20863 \end_inset
20864
20865 ] What will be displayed on the button or elsewhere as the inset label.
20866  Some inset types (
20867 \begin_inset Flex Code
20868 status collapsed
20869
20870 \begin_layout Plain Layout
20871 \SpecialChar TeX
20872  code
20873 \end_layout
20874
20875 \end_inset
20876
20877  and 
20878 \begin_inset Flex Code
20879 status collapsed
20880
20881 \begin_layout Plain Layout
20882 Branch
20883 \end_layout
20884
20885 \end_inset
20886
20887 ) modify this label on the fly.
20888 \end_layout
20889
20890 \begin_layout Description
20891 \begin_inset Flex Code
20892 status collapsed
20893
20894 \begin_layout Plain Layout
20895 LangPreamble
20896 \end_layout
20897
20898 \end_inset
20899
20900  Language dependent preamble; see 
20901 \begin_inset CommandInset ref
20902 LatexCommand ref
20903 reference "subsec:I18n"
20904
20905 \end_inset
20906
20907 .
20908 \end_layout
20909
20910 \begin_layout Description
20911 \begin_inset Flex Code
20912 status collapsed
20913
20914 \begin_layout Plain Layout
20915 LatexName
20916 \end_layout
20917
20918 \end_inset
20919
20920  [
20921 \begin_inset Flex Code
20922 status collapsed
20923
20924 \begin_layout Plain Layout
20925 <name>
20926 \end_layout
20927
20928 \end_inset
20929
20930 ] The name of the corresponding \SpecialChar LaTeX
20931  stuff.
20932  Either the environment or command name.
20933 \end_layout
20934
20935 \begin_layout Description
20936 \begin_inset Flex Code
20937 status collapsed
20938
20939 \begin_layout Plain Layout
20940 LatexParam
20941 \end_layout
20942
20943 \end_inset
20944
20945  [
20946 \begin_inset Flex Code
20947 status collapsed
20948
20949 \begin_layout Plain Layout
20950 <parameter>
20951 \end_layout
20952
20953 \end_inset
20954
20955 ] The optional parameter for the corresponding 
20956 \begin_inset Flex Code
20957 status collapsed
20958
20959 \begin_layout Plain Layout
20960 LatexName
20961 \end_layout
20962
20963 \end_inset
20964
20965  stuff, including possible bracket pairs like 
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 []
20971 \end_layout
20972
20973 \end_inset
20974
20975 .
20976  This parameter cannot be changed from within \SpecialChar LyX
20977  (use 
20978 \begin_inset Flex Code
20979 status collapsed
20980
20981 \begin_layout Plain Layout
20982 Argument
20983 \end_layout
20984
20985 \end_inset
20986
20987  for customizable parameters).
20988  It will be output as is after all \SpecialChar LaTeX
20989  
20990 \begin_inset Flex Code
20991 status collapsed
20992
20993 \begin_layout Plain Layout
20994 Argument
20995 \end_layout
20996
20997 \end_inset
20998
20999 s.
21000 \end_layout
21001
21002 \begin_layout Description
21003 \begin_inset Flex Code
21004 status collapsed
21005
21006 \begin_layout Plain Layout
21007 LatexType
21008 \end_layout
21009
21010 \end_inset
21011
21012  [
21013 \begin_inset Flex Code
21014 status collapsed
21015
21016 \begin_layout Plain Layout
21017 Command, Environment, None
21018 \end_layout
21019
21020 \end_inset
21021
21022 ] How the style should be translated into \SpecialChar LaTeX
21023 .
21024 \begin_inset Foot
21025 status collapsed
21026
21027 \begin_layout Plain Layout
21028 \begin_inset Flex Code
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032 LatexType
21033 \end_layout
21034
21035 \end_inset
21036
21037  is perhaps a bit misleading, since these rules apply to SGML classes too.
21038  Visit the SGML class files for specific examples.
21039 \end_layout
21040
21041 \end_inset
21042
21043
21044 \end_layout
21045
21046 \begin_deeper
21047 \begin_layout Description
21048 \begin_inset Flex Code
21049 status collapsed
21050
21051 \begin_layout Plain Layout
21052 None
21053 \end_layout
21054
21055 \end_inset
21056
21057  means nothing special
21058 \end_layout
21059
21060 \begin_layout Description
21061 \begin_inset Flex Code
21062 status collapsed
21063
21064 \begin_layout Plain Layout
21065 Command
21066 \end_layout
21067
21068 \end_inset
21069
21070  means 
21071 \begin_inset Flex Code
21072 status collapsed
21073
21074 \begin_layout Plain Layout
21075
21076 \backslash
21077
21078 \emph on
21079 LatexName
21080 \emph default
21081 {\SpecialChar ldots
21082 }
21083 \end_layout
21084
21085 \end_inset
21086
21087
21088 \end_layout
21089
21090 \begin_layout Description
21091 \begin_inset Flex Code
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095 Environment
21096 \end_layout
21097
21098 \end_inset
21099
21100  means 
21101 \begin_inset Flex Code
21102 status collapsed
21103
21104 \begin_layout Plain Layout
21105
21106 \backslash
21107 begin{
21108 \emph on
21109 LatexName
21110 \emph default
21111 }\SpecialChar ldots
21112
21113 \backslash
21114 end{
21115 \emph on
21116 LatexName
21117 \emph default
21118 }
21119 \end_layout
21120
21121 \end_inset
21122
21123
21124 \end_layout
21125
21126 \begin_layout Standard
21127 Putting the last few things together, the \SpecialChar LaTeX
21128  output will be either: 
21129 \end_layout
21130
21131 \begin_layout LyX-Code
21132
21133 \backslash
21134 LatexName[LatexParam]{\SpecialChar ldots
21135 }
21136 \end_layout
21137
21138 \begin_layout Standard
21139 or: 
21140 \end_layout
21141
21142 \begin_layout LyX-Code
21143
21144 \backslash
21145 begin{LatexName}[LatexParam] \SpecialChar ldots
21146  
21147 \backslash
21148 end{LatexName}
21149 \end_layout
21150
21151 \begin_layout Standard
21152 depending upon the \SpecialChar LaTeX
21153  type.
21154 \end_layout
21155
21156 \end_deeper
21157 \begin_layout Description
21158 \begin_inset Flex Code
21159 status collapsed
21160
21161 \begin_layout Plain Layout
21162 LeftDelim
21163 \end_layout
21164
21165 \end_inset
21166
21167  [
21168 \begin_inset Flex Code
21169 status collapsed
21170
21171 \begin_layout Plain Layout
21172 string
21173 \end_layout
21174
21175 \end_inset
21176
21177 ] A string that is put at the beginning of the layout content.
21178  A line break in the output can be indicated by 
21179 \begin_inset Flex Code
21180 status collapsed
21181
21182 \begin_layout Plain Layout
21183 <br/>
21184 \end_layout
21185
21186 \end_inset
21187
21188 .
21189 \end_layout
21190
21191 \begin_layout Description
21192 \begin_inset Flex Code
21193 status collapsed
21194
21195 \begin_layout Plain Layout
21196 LyxType
21197 \end_layout
21198
21199 \end_inset
21200
21201  Can be 
21202 \begin_inset Flex Code
21203 status collapsed
21204
21205 \begin_layout Plain Layout
21206 charstyle
21207 \end_layout
21208
21209 \end_inset
21210
21211
21212 \begin_inset Flex Code
21213 status collapsed
21214
21215 \begin_layout Plain Layout
21216 custom
21217 \end_layout
21218
21219 \end_inset
21220
21221
21222 \begin_inset Flex Code
21223 status collapsed
21224
21225 \begin_layout Plain Layout
21226 element
21227 \end_layout
21228
21229 \end_inset
21230
21231  or 
21232 \begin_inset Flex Code
21233 status collapsed
21234
21235 \begin_layout Plain Layout
21236 end
21237 \end_layout
21238
21239 \end_inset
21240
21241  (indicating a dummy definition ending definitions of charstyles, etc).
21242  This entry is required in and is only meaningful for Flex insets.
21243  Among other things, it determines on which menu this inset will appear.
21244  Setting 
21245 \begin_inset Flex Code
21246 status collapsed
21247
21248 \begin_layout Plain Layout
21249 LyxType
21250 \end_layout
21251
21252 \end_inset
21253
21254  to 
21255 \begin_inset Flex Code
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259 charstyle
21260 \end_layout
21261
21262 \end_inset
21263
21264  will automatically set 
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 MultiPar
21270 \end_layout
21271
21272 \end_inset
21273
21274  to false and 
21275 \begin_inset Flex Code
21276 status collapsed
21277
21278 \begin_layout Plain Layout
21279 ForcePlain
21280 \end_layout
21281
21282 \end_inset
21283
21284  to true.
21285  
21286 \begin_inset Flex Code
21287 status collapsed
21288
21289 \begin_layout Plain Layout
21290 MultiPar
21291 \end_layout
21292
21293 \end_inset
21294
21295  can be set to true, or 
21296 \begin_inset Flex Code
21297 status collapsed
21298
21299 \begin_layout Plain Layout
21300 ForcePlain
21301 \end_layout
21302
21303 \end_inset
21304
21305  to false, for 
21306 \begin_inset Flex Code
21307 status collapsed
21308
21309 \begin_layout Plain Layout
21310 charstyle
21311 \end_layout
21312
21313 \end_inset
21314
21315  insets by setting it 
21316 \emph on
21317 after
21318 \emph default
21319  you set the 
21320 \begin_inset Flex Code
21321 status collapsed
21322
21323 \begin_layout Plain Layout
21324 LyxType
21325 \end_layout
21326
21327 \end_inset
21328
21329 .
21330 \change_inserted -712698321 1555575738
21331
21332 \end_layout
21333
21334 \begin_layout Description
21335
21336 \change_inserted -712698321 1555575844
21337 \begin_inset Flex Code
21338 status collapsed
21339
21340 \begin_layout Plain Layout
21341
21342 \change_inserted -712698321 1555575740
21343 MenuString
21344 \change_unchanged
21345
21346 \end_layout
21347
21348 \end_inset
21349
21350  
21351 \begin_inset Flex Code
21352 status collapsed
21353
21354 \begin_layout Plain Layout
21355
21356 \change_inserted -712698321 1555575740
21357 [string]
21358 \change_unchanged
21359
21360 \end_layout
21361
21362 \end_inset
21363
21364  A dedicated string for the menu.
21365  You can define an accelerator by appending the respective character to
21366  the string, divided by 
21367 \begin_inset Quotes eld
21368 \end_inset
21369
21370 |
21371 \begin_inset Quotes erd
21372 \end_inset
21373
21374  (e.
21375 \begin_inset space \thinspace{}
21376 \end_inset
21377
21378 g.
21379 \begin_inset space \space{}
21380 \end_inset
21381
21382
21383 \begin_inset Quotes eld
21384 \end_inset
21385
21386
21387 \begin_inset Flex Code
21388 status collapsed
21389
21390 \begin_layout Plain Layout
21391
21392 \change_inserted -712698321 1555575781
21393 My Inset|M
21394 \change_unchanged
21395
21396 \end_layout
21397
21398 \end_inset
21399
21400
21401 \begin_inset Quotes erd
21402 \end_inset
21403
21404 ).
21405  This specification is optional.
21406  If it is not given the inset name as specified in the type declaration
21407  will be used instead for the menu.
21408 \change_unchanged
21409
21410 \end_layout
21411
21412 \begin_layout Description
21413 \begin_inset Flex Code
21414 status collapsed
21415
21416 \begin_layout Plain Layout
21417 MultiPar
21418 \end_layout
21419
21420 \end_inset
21421
21422  [
21423 \begin_inset Flex Code
21424 status collapsed
21425
21426 \begin_layout Plain Layout
21427
21428 \emph on
21429 0
21430 \end_layout
21431
21432 \end_inset
21433
21434 ,
21435 \begin_inset space \thinspace{}
21436 \end_inset
21437
21438
21439 \begin_inset Flex Code
21440 status collapsed
21441
21442 \begin_layout Plain Layout
21443 1
21444 \end_layout
21445
21446 \end_inset
21447
21448 ] Whether multiple paragraphs are permitted in this inset.
21449  This will also set 
21450 \begin_inset Flex Code
21451 status collapsed
21452
21453 \begin_layout Plain Layout
21454 CustomPars
21455 \end_layout
21456
21457 \end_inset
21458
21459  to the same value and 
21460 \begin_inset Flex Code
21461 status collapsed
21462
21463 \begin_layout Plain Layout
21464 ForcePlain
21465 \end_layout
21466
21467 \end_inset
21468
21469  to the opposite value.
21470  These can be reset to other values, if they are used 
21471 \emph on
21472 after
21473 \emph default
21474  
21475 \begin_inset Flex Code
21476 status collapsed
21477
21478 \begin_layout Plain Layout
21479 MultiPar
21480 \end_layout
21481
21482 \end_inset
21483
21484 .
21485  Default is true.
21486 \end_layout
21487
21488 \begin_layout Description
21489 \begin_inset Flex Code
21490 status collapsed
21491
21492 \begin_layout Plain Layout
21493 NeedProtect
21494 \end_layout
21495
21496 \end_inset
21497
21498  [
21499 \begin_inset Flex Code
21500 status collapsed
21501
21502 \begin_layout Plain Layout
21503
21504 \emph on
21505 0
21506 \end_layout
21507
21508 \end_inset
21509
21510 ,
21511 \begin_inset space \thinspace{}
21512 \end_inset
21513
21514
21515 \begin_inset Flex Code
21516 status collapsed
21517
21518 \begin_layout Plain Layout
21519 1
21520 \end_layout
21521
21522 \end_inset
21523
21524 ] Whether fragile commands in this inset should be 
21525 \begin_inset Flex Code
21526 status collapsed
21527
21528 \begin_layout Plain Layout
21529
21530 \backslash
21531 protect
21532 \end_layout
21533
21534 \end_inset
21535
21536 'ed.
21537  (Note: This is 
21538 \emph on
21539 not
21540 \emph default
21541  whether the command should itself be protected.) Default is false.
21542 \change_inserted -712698321 1523633958
21543
21544 \end_layout
21545
21546 \begin_layout Description
21547
21548 \change_inserted -712698321 1552395786
21549 \begin_inset Flex Code
21550 status collapsed
21551
21552 \begin_layout Plain Layout
21553
21554 \change_inserted -712698321 1523633961
21555 NeedCProtect
21556 \change_unchanged
21557
21558 \end_layout
21559
21560 \end_inset
21561
21562  [
21563 \begin_inset Flex Code
21564 status collapsed
21565
21566 \begin_layout Plain Layout
21567
21568 \change_inserted -712698321 1523633958
21569
21570 \emph on
21571 0
21572 \change_unchanged
21573
21574 \end_layout
21575
21576 \end_inset
21577
21578 ,
21579 \begin_inset space \thinspace{}
21580 \end_inset
21581
21582
21583 \begin_inset Flex Code
21584 status collapsed
21585
21586 \begin_layout Plain Layout
21587
21588 \change_inserted -712698321 1523633958
21589 1
21590 \change_unchanged
21591
21592 \end_layout
21593
21594 \end_inset
21595
21596 ] This causes macros that contain this inset to be protected with 
21597 \begin_inset Flex Code
21598 status collapsed
21599
21600 \begin_layout Plain Layout
21601
21602 \change_inserted -712698321 1523634038
21603
21604 \backslash
21605 cprotect
21606 \change_unchanged
21607
21608 \end_layout
21609
21610 \end_inset
21611
21612  (cf.
21613  package 
21614 \family sans
21615 cprotect
21616 \family default
21617 ) if necessary and thus allows (some) verbatim stuff in macros.
21618  Default is false.
21619 \end_layout
21620
21621 \begin_layout Description
21622
21623 \change_inserted -712698321 1555579651
21624 \begin_inset Flex Code
21625 status collapsed
21626
21627 \begin_layout Plain Layout
21628
21629 \change_inserted -712698321 1552395787
21630 NeedMBoxProtect
21631 \change_unchanged
21632
21633 \end_layout
21634
21635 \end_inset
21636
21637  [
21638 \begin_inset Flex Code
21639 status collapsed
21640
21641 \begin_layout Plain Layout
21642
21643 \change_inserted -712698321 1552395787
21644
21645 \emph on
21646 0
21647 \change_unchanged
21648
21649 \end_layout
21650
21651 \end_inset
21652
21653 ,
21654 \begin_inset space \thinspace{}
21655 \end_inset
21656
21657
21658 \begin_inset Flex Code
21659 status collapsed
21660
21661 \begin_layout Plain Layout
21662
21663 \change_inserted -712698321 1552395787
21664 1
21665 \change_unchanged
21666
21667 \end_layout
21668
21669 \end_inset
21670
21671 ] Whether specific commands in this inset (such as 
21672 \begin_inset Flex Code
21673 status collapsed
21674
21675 \begin_layout Plain Layout
21676
21677 \change_inserted -712698321 1552395787
21678
21679 \backslash
21680 cite
21681 \change_unchanged
21682
21683 \end_layout
21684
21685 \end_inset
21686
21687  and 
21688 \begin_inset Flex Code
21689 status collapsed
21690
21691 \begin_layout Plain Layout
21692
21693 \change_inserted -712698321 1552395787
21694
21695 \backslash
21696 ref
21697 \change_unchanged
21698
21699 \end_layout
21700
21701 \end_inset
21702
21703 ) should be protected in an 
21704 \begin_inset Flex Code
21705 status collapsed
21706
21707 \begin_layout Plain Layout
21708
21709 \change_inserted -712698321 1552395787
21710
21711 \backslash
21712 mbox
21713 \change_unchanged
21714
21715 \end_layout
21716
21717 \end_inset
21718
21719 .
21720  This is particularly needed for insets that draw on 
21721 \family sans
21722 ulem
21723 \family default
21724  or 
21725 \family sans
21726 soul
21727 \family default
21728  commands which parse their content in complex ways.
21729  Default is false.
21730 \end_layout
21731
21732 \begin_layout Description
21733
21734 \change_inserted -712698321 1555579742
21735 \begin_inset Flex Code
21736 status collapsed
21737
21738 \begin_layout Plain Layout
21739
21740 \change_inserted -712698321 1555579658
21741 NewlineCmd
21742 \change_unchanged
21743
21744 \end_layout
21745
21746 \end_inset
21747
21748  
21749 \begin_inset Flex Code
21750 status collapsed
21751
21752 \begin_layout Plain Layout
21753
21754 \change_inserted -712698321 1555579651
21755 [string]
21756 \change_unchanged
21757
21758 \end_layout
21759
21760 \end_inset
21761
21762  Option to define a different command (from the default 
21763 \begin_inset Flex Code
21764 status collapsed
21765
21766 \begin_layout Plain Layout
21767
21768 \change_inserted -712698321 1555579742
21769
21770 \backslash
21771
21772 \backslash
21773
21774 \change_unchanged
21775
21776 \end_layout
21777
21778 \end_inset
21779
21780 ) to be used for line breaks.
21781  The initial backslash must not be specified.
21782 \change_unchanged
21783
21784 \end_layout
21785
21786 \begin_layout Description
21787 \begin_inset Flex Code
21788 status collapsed
21789
21790 \begin_layout Plain Layout
21791 NoInsetLayout
21792 \end_layout
21793
21794 \end_inset
21795
21796  [
21797 \begin_inset Flex Code
21798 status collapsed
21799
21800 \begin_layout Plain Layout
21801 <layout>
21802 \end_layout
21803
21804 \end_inset
21805
21806 ] Deletes an existing 
21807 \begin_inset Flex Code
21808 status collapsed
21809
21810 \begin_layout Plain Layout
21811 InsetLayout
21812 \end_layout
21813
21814 \end_inset
21815
21816 .
21817 \end_layout
21818
21819 \begin_layout Description
21820 \begin_inset Flex Code
21821 status collapsed
21822
21823 \begin_layout Plain Layout
21824 ObsoletedBy
21825 \end_layout
21826
21827 \end_inset
21828
21829  [
21830 \begin_inset Flex Code
21831 status collapsed
21832
21833 \begin_layout Plain Layout
21834 <layout>
21835 \end_layout
21836
21837 \end_inset
21838
21839 ] Name of an 
21840 \begin_inset Flex Code
21841 status collapsed
21842
21843 \begin_layout Plain Layout
21844 InsetLayout
21845 \end_layout
21846
21847 \end_inset
21848
21849  that has replaced this 
21850 \begin_inset Flex Code
21851 status collapsed
21852
21853 \begin_layout Plain Layout
21854 InsetLayout
21855 \end_layout
21856
21857 \end_inset
21858
21859 .
21860  This is used to rename an 
21861 \begin_inset Flex Code
21862 status collapsed
21863
21864 \begin_layout Plain Layout
21865 InsetLayout
21866 \end_layout
21867
21868 \end_inset
21869
21870 , while keeping backward compatibility.
21871 \change_inserted -712698321 1559491850
21872
21873 \end_layout
21874
21875 \begin_layout Description
21876
21877 \change_inserted -712698321 1559492002
21878 \begin_inset Flex Code
21879 status collapsed
21880
21881 \begin_layout Plain Layout
21882
21883 \change_inserted -712698321 1559491854
21884 ParbreakIgnored
21885 \change_unchanged
21886
21887 \end_layout
21888
21889 \end_inset
21890
21891  [
21892 \begin_inset Flex Code
21893 status collapsed
21894
21895 \begin_layout Plain Layout
21896
21897 \change_inserted -712698321 1559491850
21898
21899 \emph on
21900 0
21901 \change_unchanged
21902
21903 \end_layout
21904
21905 \end_inset
21906
21907 ,
21908 \begin_inset space \thinspace{}
21909 \end_inset
21910
21911
21912 \begin_inset Flex Code
21913 status collapsed
21914
21915 \begin_layout Plain Layout
21916
21917 \change_inserted -712698321 1559491850
21918 1
21919 \change_unchanged
21920
21921 \end_layout
21922
21923 \end_inset
21924
21925 ] If this is set to 
21926 \begin_inset Flex Code
21927 status collapsed
21928
21929 \begin_layout Plain Layout
21930
21931 \change_inserted -712698321 1559491881
21932 1
21933 \change_unchanged
21934
21935 \end_layout
21936
21937 \end_inset
21938
21939 , paragraph breaks will be ignored in the output.
21940  This might be useful for insets where the content should be alignable on
21941  different lines only in the \SpecialChar LyX
21942  workarea, without any effect in the output.
21943 \change_unchanged
21944
21945 \end_layout
21946
21947 \begin_layout Description
21948 \begin_inset Flex Code
21949 status collapsed
21950
21951 \begin_layout Plain Layout
21952 ParbreakIsNewline
21953 \end_layout
21954
21955 \end_inset
21956
21957  [
21958 \begin_inset Flex Code
21959 status collapsed
21960
21961 \begin_layout Plain Layout
21962
21963 \emph on
21964 0
21965 \end_layout
21966
21967 \end_inset
21968
21969 ,
21970 \begin_inset space \thinspace{}
21971 \end_inset
21972
21973
21974 \begin_inset Flex Code
21975 status collapsed
21976
21977 \begin_layout Plain Layout
21978 1
21979 \end_layout
21980
21981 \end_inset
21982
21983 ] As with paragraph styles, see 
21984 \begin_inset CommandInset ref
21985 LatexCommand ref
21986 reference "subsec:Paragraph-Styles"
21987
21988 \end_inset
21989
21990 .
21991  Default is false.
21992 \end_layout
21993
21994 \begin_layout Description
21995 \begin_inset Flex Code
21996 status collapsed
21997
21998 \begin_layout Plain Layout
21999 PassThru
22000 \end_layout
22001
22002 \end_inset
22003
22004  [
22005 \begin_inset Flex Code
22006 status collapsed
22007
22008 \begin_layout Plain Layout
22009
22010 \emph on
22011 0
22012 \end_layout
22013
22014 \end_inset
22015
22016 ,
22017 \begin_inset space \thinspace{}
22018 \end_inset
22019
22020
22021 \begin_inset Flex Code
22022 status collapsed
22023
22024 \begin_layout Plain Layout
22025 1
22026 \end_layout
22027
22028 \end_inset
22029
22030 ] As with paragraph styles, see 
22031 \begin_inset CommandInset ref
22032 LatexCommand ref
22033 reference "subsec:Paragraph-Styles"
22034
22035 \end_inset
22036
22037 .
22038  Default is false.
22039 \end_layout
22040
22041 \begin_layout Description
22042 \begin_inset Flex Code
22043 status collapsed
22044
22045 \begin_layout Plain Layout
22046 Preamble
22047 \end_layout
22048
22049 \end_inset
22050
22051  As with paragraph styles, see 
22052 \begin_inset CommandInset ref
22053 LatexCommand ref
22054 reference "subsec:Paragraph-Styles"
22055
22056 \end_inset
22057
22058 .
22059 \end_layout
22060
22061 \begin_layout Description
22062 \begin_inset Flex Code
22063 status collapsed
22064
22065 \begin_layout Plain Layout
22066 RefPrefix
22067 \end_layout
22068
22069 \end_inset
22070
22071  [
22072 \begin_inset Flex Code
22073 status collapsed
22074
22075 \begin_layout Plain Layout
22076 string
22077 \end_layout
22078
22079 \end_inset
22080
22081 ] The prefix to use when creating labels referring to insets of this type.
22082  This allows the use of formatted references.
22083 \end_layout
22084
22085 \begin_layout Description
22086 \begin_inset Flex Code
22087 status collapsed
22088
22089 \begin_layout Plain Layout
22090 Requires
22091 \end_layout
22092
22093 \end_inset
22094
22095  [
22096 \begin_inset Flex Code
22097 status collapsed
22098
22099 \begin_layout Plain Layout
22100 string
22101 \end_layout
22102
22103 \end_inset
22104
22105 ] As with paragraph styles, see 
22106 \begin_inset CommandInset ref
22107 LatexCommand ref
22108 reference "subsec:Paragraph-Styles"
22109
22110 \end_inset
22111
22112 .
22113 \end_layout
22114
22115 \begin_layout Description
22116 \begin_inset Flex Code
22117 status collapsed
22118
22119 \begin_layout Plain Layout
22120 ResetArgs
22121 \end_layout
22122
22123 \end_inset
22124
22125  [
22126 \begin_inset Flex Code
22127 status collapsed
22128
22129 \begin_layout Plain Layout
22130
22131 \emph on
22132 0
22133 \end_layout
22134
22135 \end_inset
22136
22137 ,
22138 \begin_inset space \thinspace{}
22139 \end_inset
22140
22141
22142 \begin_inset Flex Code
22143 status collapsed
22144
22145 \begin_layout Plain Layout
22146 1
22147 \end_layout
22148
22149 \end_inset
22150
22151 ] Resets the \SpecialChar LaTeX
22152  arguments of this layout (as defined via the 
22153 \begin_inset Flex Code
22154 status collapsed
22155
22156 \begin_layout Plain Layout
22157 Argument
22158 \end_layout
22159
22160 \end_inset
22161
22162  tag).
22163  This is useful if you have copied a style via 
22164 \begin_inset Flex Code
22165 status collapsed
22166
22167 \begin_layout Plain Layout
22168 CopyStyle
22169 \end_layout
22170
22171 \end_inset
22172
22173 , but you do not want to inherit its (required and optional) arguments.
22174 \end_layout
22175
22176 \begin_layout Description
22177 \begin_inset Flex Code
22178 status collapsed
22179
22180 \begin_layout Plain Layout
22181 ResetsFont
22182 \end_layout
22183
22184 \end_inset
22185
22186  [
22187 \begin_inset Flex Code
22188 status collapsed
22189
22190 \begin_layout Plain Layout
22191
22192 \emph on
22193 0
22194 \end_layout
22195
22196 \end_inset
22197
22198 ,
22199 \begin_inset space \thinspace{}
22200 \end_inset
22201
22202
22203 \begin_inset Flex Code
22204 status collapsed
22205
22206 \begin_layout Plain Layout
22207 1
22208 \end_layout
22209
22210 \end_inset
22211
22212
22213 \change_inserted -712698321 1597733473
22214 If 
22215 \begin_inset Flex Code
22216 status collapsed
22217
22218 \begin_layout Plain Layout
22219
22220 \change_inserted -712698321 1597732178
22221 1
22222 \change_unchanged
22223
22224 \end_layout
22225
22226 \end_inset
22227
22228 , font changes are redone inside the respective inset (in the output) even
22229  if the inset itself is in the context of this font changes (e.
22230 \begin_inset space \thinspace{}
22231 \end_inset
22232
22233 g., 
22234 \begin_inset Flex Code
22235 status collapsed
22236
22237 \begin_layout Plain Layout
22238
22239 \change_inserted -712698321 1597733683
22240
22241 \backslash
22242 textbf{Sourrounding text 
22243 \backslash
22244 myinset{
22245 \backslash
22246 textbf{content}}\SpecialChar ldots
22247 }
22248 \change_unchanged
22249
22250 \end_layout
22251
22252 \end_inset
22253
22254  rather than 
22255 \begin_inset Flex Code
22256 status collapsed
22257
22258 \begin_layout Plain Layout
22259
22260 \change_inserted -712698321 1597733686
22261
22262 \backslash
22263 textbf{Sourrounding text 
22264 \backslash
22265 myinset{content}\SpecialChar ldots
22266 }
22267 \change_unchanged
22268
22269 \end_layout
22270
22271 \end_inset
22272
22273 .
22274  Setting this makes sense for commands that internally reset font settings
22275  (e.
22276 \begin_inset space \thinspace{}
22277 \end_inset
22278
22279 g., footnotes).
22280  Note that wrongly setting this might lead to unwanted result (e.
22281 \begin_inset space \thinspace{}
22282 \end_inset
22283
22284 g., with 
22285 \begin_inset Flex Code
22286 status collapsed
22287
22288 \begin_layout Plain Layout
22289
22290 \change_inserted -712698321 1597733688
22291
22292 \backslash
22293 emph{Sourrounding text 
22294 \backslash
22295 myinset{
22296 \backslash
22297 emph{content}}\SpecialChar ldots
22298 }
22299 \change_unchanged
22300
22301 \end_layout
22302
22303 \end_inset
22304
22305 , content is upright, as 
22306 \begin_inset Flex Code
22307 status collapsed
22308
22309 \begin_layout Plain Layout
22310
22311 \change_inserted -712698321 1597733278
22312
22313 \backslash
22314 emph
22315 \change_unchanged
22316
22317 \end_layout
22318
22319 \end_inset
22320
22321  toggles.
22322  
22323 \change_deleted -712698321 1597733283
22324 Whether this inset should use the font of its surrounding environment or
22325  uses its own.
22326  
22327 \change_unchanged
22328 Default is 
22329 \change_deleted -712698321 1597733290
22330 false
22331 \change_inserted -712698321 1597733290
22332
22333 \begin_inset Flex Code
22334 status collapsed
22335
22336 \begin_layout Plain Layout
22337
22338 \change_inserted -712698321 1597733292
22339 0
22340 \change_unchanged
22341
22342 \end_layout
22343
22344 \end_inset
22345
22346
22347 \change_unchanged
22348
22349 \change_deleted -712698321 1597733327
22350 use the font of the surrounding environment
22351 \change_inserted -712698321 1597733343
22352 font changes are not redone inside the inset
22353 \change_unchanged
22354 .
22355 \end_layout
22356
22357 \begin_layout Description
22358 \begin_inset Flex Code
22359 status collapsed
22360
22361 \begin_layout Plain Layout
22362 RightDelim
22363 \end_layout
22364
22365 \end_inset
22366
22367  [
22368 \begin_inset Flex Code
22369 status collapsed
22370
22371 \begin_layout Plain Layout
22372 string
22373 \end_layout
22374
22375 \end_inset
22376
22377 ] A string that is put at the end of the layout content.
22378  A line break in the output can be indicated by 
22379 \begin_inset Flex Code
22380 status collapsed
22381
22382 \begin_layout Plain Layout
22383 <br/>
22384 \end_layout
22385
22386 \end_inset
22387
22388 .
22389 \end_layout
22390
22391 \begin_layout Description
22392 \begin_inset Flex Code
22393 status collapsed
22394
22395 \begin_layout Plain Layout
22396 Spellcheck
22397 \end_layout
22398
22399 \end_inset
22400
22401  [
22402 \begin_inset Flex Code
22403 status collapsed
22404
22405 \begin_layout Plain Layout
22406 0
22407 \end_layout
22408
22409 \end_inset
22410
22411 ,
22412 \begin_inset space \thinspace{}
22413 \end_inset
22414
22415
22416 \begin_inset Flex Code
22417 status collapsed
22418
22419 \begin_layout Plain Layout
22420
22421 \emph on
22422 1
22423 \end_layout
22424
22425 \end_inset
22426
22427 ] Allow spell-checking the contents of this inset.
22428  Default is true.
22429 \end_layout
22430
22431 \begin_layout Subsection
22432 Counters
22433 \begin_inset CommandInset label
22434 LatexCommand label
22435 name "subsec:Counters"
22436
22437 \end_inset
22438
22439
22440 \end_layout
22441
22442 \begin_layout Standard
22443 It is necessary to define the counters (
22444 \begin_inset Flex Noun
22445 status collapsed
22446
22447 \begin_layout Plain Layout
22448 chapter
22449 \end_layout
22450
22451 \end_inset
22452
22453
22454 \begin_inset Flex Noun
22455 status collapsed
22456
22457 \begin_layout Plain Layout
22458 figure
22459 \end_layout
22460
22461 \end_inset
22462
22463 , \SpecialChar ldots
22464 ) in the text class itself.
22465  The standard counters are defined in the file 
22466 \begin_inset Flex Code
22467 status collapsed
22468
22469 \begin_layout Plain Layout
22470 stdcounters.inc
22471 \end_layout
22472
22473 \end_inset
22474
22475 , so you may have to do no more than add
22476 \end_layout
22477
22478 \begin_layout LyX-Code
22479 Input stdcounters.inc
22480 \end_layout
22481
22482 \begin_layout Standard
22483 to your layout file to get them to work.
22484  But if you want to define custom counters, then you can do so.
22485  The counter declaration must begin with:
22486 \end_layout
22487
22488 \begin_layout LyX-Code
22489 Counter CounterName
22490 \end_layout
22491
22492 \begin_layout Standard
22493 where of course `
22494 \begin_inset Flex Code
22495 status collapsed
22496
22497 \begin_layout Plain Layout
22498 CounterName
22499 \end_layout
22500
22501 \end_inset
22502
22503 ' is replaced by the name of the counter.
22504  And it must end with 
22505 \begin_inset Quotes eld
22506 \end_inset
22507
22508
22509 \begin_inset Flex Code
22510 status collapsed
22511
22512 \begin_layout Plain Layout
22513 End
22514 \end_layout
22515
22516 \end_inset
22517
22518
22519 \begin_inset Quotes erd
22520 \end_inset
22521
22522 .
22523  The following parameters can also be used:
22524 \end_layout
22525
22526 \begin_layout Description
22527 \begin_inset Flex Code
22528 status collapsed
22529
22530 \begin_layout Plain Layout
22531 InitialValue
22532 \end_layout
22533
22534 \end_inset
22535
22536  [
22537 \begin_inset Flex Code
22538 status collapsed
22539
22540 \begin_layout Plain Layout
22541 int=1
22542 \end_layout
22543
22544 \end_inset
22545
22546 ] Sets the initial value for the counter, to which it will be reset whenever
22547  that happens.
22548  Normally, one will want the default, 1.
22549 \end_layout
22550
22551 \begin_layout Description
22552 \begin_inset Flex Code
22553 status collapsed
22554
22555 \begin_layout Plain Layout
22556 LabelString
22557 \end_layout
22558
22559 \end_inset
22560
22561  [
22562 \begin_inset Flex Code
22563 status collapsed
22564
22565 \begin_layout Plain Layout
22566 string
22567 \end_layout
22568
22569 \end_inset
22570
22571 =
22572 \begin_inset Quotes erd
22573 \end_inset
22574
22575
22576 \begin_inset Quotes erd
22577 \end_inset
22578
22579 ] When defined, this string defines how the counter is displayed.
22580  Setting this value sets 
22581 \begin_inset Flex Code
22582 status collapsed
22583
22584 \begin_layout Plain Layout
22585 LabelStringAppendix
22586 \end_layout
22587
22588 \end_inset
22589
22590  to the same value.
22591  The following special constructs can be used in the string:
22592 \end_layout
22593
22594 \begin_deeper
22595 \begin_layout Itemize
22596 \begin_inset Flex Code
22597 status collapsed
22598
22599 \begin_layout Plain Layout
22600
22601 \backslash
22602 thecounter
22603 \end_layout
22604
22605 \end_inset
22606
22607  will be replaced by the expansion of the 
22608 \begin_inset Flex Code
22609 status collapsed
22610
22611 \begin_layout Plain Layout
22612 LabelString
22613 \end_layout
22614
22615 \end_inset
22616
22617  (or 
22618 \begin_inset Flex Code
22619 status collapsed
22620
22621 \begin_layout Plain Layout
22622 LabelStringAppendix
22623 \end_layout
22624
22625 \end_inset
22626
22627 ) of the counter 
22628 \begin_inset Flex Code
22629 status collapsed
22630
22631 \begin_layout Plain Layout
22632 counter
22633 \end_layout
22634
22635 \end_inset
22636
22637 .
22638  
22639 \end_layout
22640
22641 \begin_layout Itemize
22642 counter values can be expressed using \SpecialChar LaTeX
22643 -like macros
22644 \begin_inset Newline newline
22645 \end_inset
22646
22647
22648 \begin_inset Flex Code
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652
22653 \backslash
22654
22655 \emph on
22656 numbertype
22657 \emph default
22658 {
22659 \emph on
22660 counter
22661 \emph default
22662 }
22663 \end_layout
22664
22665 \end_inset
22666
22667 , where 
22668 \begin_inset Flex Code
22669 status collapsed
22670
22671 \begin_layout Plain Layout
22672
22673 \emph on
22674 numbertype
22675 \end_layout
22676
22677 \end_inset
22678
22679  can be:
22680 \begin_inset Foot
22681 status collapsed
22682
22683 \begin_layout Plain Layout
22684
22685 \family roman
22686 \series medium
22687 \shape up
22688 \size normal
22689 \emph off
22690 \bar no
22691 \noun off
22692 \color none
22693 Actually, the situation is a bit more complicated: any
22694 \family default
22695 \series default
22696 \shape default
22697 \emph default
22698 \bar default
22699  
22700 \size default
22701 \emph on
22702 \noun default
22703 \color inherit
22704 numbertype
22705 \family roman
22706 \series medium
22707 \shape up
22708 \size normal
22709 \emph off
22710 \bar no
22711 \noun off
22712  other than those described below will produce arabic numerals.
22713  It would not be surprising to see this change in the future.
22714 \end_layout
22715
22716 \end_inset
22717
22718  
22719 \begin_inset Flex Code
22720 status collapsed
22721
22722 \begin_layout Plain Layout
22723 arabic
22724 \end_layout
22725
22726 \end_inset
22727
22728 : 1, 2, 3,\SpecialChar ldots
22729
22730 \begin_inset Flex Code
22731 status collapsed
22732
22733 \begin_layout Plain Layout
22734 alph
22735 \end_layout
22736
22737 \end_inset
22738
22739  for lower-case letters: a, b, c, \SpecialChar ldots
22740
22741 \begin_inset Flex Code
22742 status collapsed
22743
22744 \begin_layout Plain Layout
22745 Alph
22746 \end_layout
22747
22748 \end_inset
22749
22750  for upper-case letters: A, B, C, \SpecialChar ldots
22751
22752 \begin_inset Flex Code
22753 status collapsed
22754
22755 \begin_layout Plain Layout
22756 roman
22757 \end_layout
22758
22759 \end_inset
22760
22761  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
22762
22763 \begin_inset Flex Code
22764 status collapsed
22765
22766 \begin_layout Plain Layout
22767 Roman
22768 \end_layout
22769
22770 \end_inset
22771
22772  for upper-case roman numerals: I, II, III\SpecialChar ldots
22773
22774 \begin_inset Flex Code
22775 status collapsed
22776
22777 \begin_layout Plain Layout
22778 hebrew
22779 \end_layout
22780
22781 \end_inset
22782
22783  for hebrew numerals.
22784 \end_layout
22785
22786 \end_deeper
22787 \begin_layout Standard
22788 If LabelString is not defined, a default value is constructed as follows:
22789  if the counter has a 
22790 \change_deleted 731793113 1604355218
22791 master
22792 \change_inserted 731793113 1604355221
22793 parent
22794 \change_unchanged
22795  counter 
22796 \begin_inset Flex Code
22797 status collapsed
22798
22799 \begin_layout Plain Layout
22800
22801 \change_deleted 731793113 1604355223
22802 master
22803 \change_inserted 731793113 1604355226
22804 parent
22805 \change_unchanged
22806
22807 \end_layout
22808
22809 \end_inset
22810
22811  (defined via 
22812 \begin_inset Flex Code
22813 status collapsed
22814
22815 \begin_layout Plain Layout
22816 Within
22817 \end_layout
22818
22819 \end_inset
22820
22821 ), the string
22822 \begin_inset Newline newline
22823 \end_inset
22824
22825
22826 \begin_inset Flex Code
22827 status collapsed
22828
22829 \begin_layout Plain Layout
22830
22831 \backslash
22832 the
22833 \change_inserted 731793113 1604355228
22834 parent
22835 \change_deleted 731793113 1604355230
22836 master
22837 \change_unchanged
22838 .
22839 \backslash
22840 arabic{counter}
22841 \end_layout
22842
22843 \end_inset
22844
22845  is used; otherwise the string 
22846 \begin_inset Flex Code
22847 status collapsed
22848
22849 \begin_layout Plain Layout
22850
22851 \backslash
22852 arabic{counter}
22853 \end_layout
22854
22855 \end_inset
22856
22857  is used.
22858 \end_layout
22859
22860 \begin_layout Description
22861 \begin_inset Flex Code
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865 LabelStringAppendix
22866 \end_layout
22867
22868 \end_inset
22869
22870  [
22871 \begin_inset Flex Code
22872 status collapsed
22873
22874 \begin_layout Plain Layout
22875 string
22876 \end_layout
22877
22878 \end_inset
22879
22880
22881 \begin_inset Quotes eld
22882 \end_inset
22883
22884
22885 \begin_inset Quotes erd
22886 \end_inset
22887
22888 ] Same as 
22889 \begin_inset Flex Code
22890 status collapsed
22891
22892 \begin_layout Plain Layout
22893 LabelString
22894 \end_layout
22895
22896 \end_inset
22897
22898 , but for use in the Appendix.
22899 \change_inserted -584632292 1607202551
22900
22901 \end_layout
22902
22903 \begin_layout Description
22904
22905 \change_inserted -584632292 1607202682
22906 \begin_inset Flex Code
22907 status open
22908
22909 \begin_layout Plain Layout
22910 LaTeXName
22911 \end_layout
22912
22913 \end_inset
22914
22915  [
22916 \begin_inset Flex Code
22917 status open
22918
22919 \begin_layout Plain Layout
22920
22921 \change_inserted -584632292 1607202576
22922 string
22923 \change_unchanged
22924
22925 \end_layout
22926
22927 \end_inset
22928
22929  = 
22930 \begin_inset Quotes eld
22931 \end_inset
22932
22933
22934 \begin_inset Quotes erd
22935 \end_inset
22936
22937 ] The counter name as used in \SpecialChar LaTeX
22938 .
22939  (E.g., in \SpecialChar LyX
22940 , there is a counter named `theorem', but it is output to \SpecialChar LaTeX
22941  as `thm'.)
22942 \change_unchanged
22943
22944 \end_layout
22945
22946 \begin_layout Description
22947 \begin_inset Flex Code
22948 status collapsed
22949
22950 \begin_layout Plain Layout
22951 PrettyFormat
22952 \end_layout
22953
22954 \end_inset
22955
22956  [
22957 \begin_inset Flex Code
22958 status collapsed
22959
22960 \begin_layout Plain Layout
22961 string
22962 \end_layout
22963
22964 \end_inset
22965
22966 =
22967 \begin_inset Quotes erd
22968 \end_inset
22969
22970
22971 \begin_inset Quotes erd
22972 \end_inset
22973
22974 ] A format for use with formatted references to this counter.
22975  For example, one might want to have references to section numbers appear
22976  as 
22977 \begin_inset Quotes eld
22978 \end_inset
22979
22980 Section 2.4
22981 \begin_inset Quotes erd
22982 \end_inset
22983
22984 .
22985  The string should contain 
22986 \begin_inset Quotes eld
22987 \end_inset
22988
22989 ##
22990 \begin_inset Quotes erd
22991 \end_inset
22992
22993 .
22994  This will be replaced by the counter number itself.
22995  So, for sections, it would be: Section ##.
22996 \end_layout
22997
22998 \begin_layout Description
22999 \begin_inset Flex Code
23000 status collapsed
23001
23002 \begin_layout Plain Layout
23003 Within
23004 \end_layout
23005
23006 \end_inset
23007
23008  [
23009 \begin_inset Flex Code
23010 status collapsed
23011
23012 \begin_layout Plain Layout
23013 string
23014 \end_layout
23015
23016 \end_inset
23017
23018 =
23019 \begin_inset Quotes erd
23020 \end_inset
23021
23022
23023 \begin_inset Quotes erd
23024 \end_inset
23025
23026 ] If this is set to the name of another counter, the present counter will
23027  be reset every time the other one is increased.
23028  For example, 
23029 \begin_inset Flex Code
23030 status collapsed
23031
23032 \begin_layout Plain Layout
23033 subsection
23034 \end_layout
23035
23036 \end_inset
23037
23038  is numbered inside 
23039 \begin_inset Flex Code
23040 status collapsed
23041
23042 \begin_layout Plain Layout
23043 section
23044 \end_layout
23045
23046 \end_inset
23047
23048 .
23049 \end_layout
23050
23051 \begin_layout Subsection
23052 Font description
23053 \begin_inset CommandInset label
23054 LatexCommand label
23055 name "subsec:Font-description"
23056
23057 \end_inset
23058
23059
23060 \end_layout
23061
23062 \begin_layout Standard
23063 A font description looks like this:
23064 \end_layout
23065
23066 \begin_layout LyX-Code
23067 Font 
23068 \family roman
23069 \emph on
23070 or
23071 \family default
23072 \emph default
23073  LabelFont
23074 \emph on
23075  
23076 \family roman
23077 or
23078 \family default
23079 \emph default
23080  DefaultFont
23081 \end_layout
23082
23083 \begin_layout LyX-Code
23084  ...
23085 \end_layout
23086
23087 \begin_layout LyX-Code
23088 EndFont
23089 \end_layout
23090
23091 \begin_layout Standard
23092 The following commands are available:
23093 \end_layout
23094
23095 \begin_layout Description
23096 \begin_inset Flex Code
23097 status collapsed
23098
23099 \begin_layout Plain Layout
23100 Color
23101 \end_layout
23102
23103 \end_inset
23104
23105  [
23106 \change_deleted -712698321 1607682984
23107
23108 \begin_inset Flex Code
23109 status collapsed
23110
23111 \begin_layout Plain Layout
23112
23113 \emph on
23114 none
23115 \end_layout
23116
23117 \end_inset
23118
23119
23120 \begin_inset Flex Code
23121 status collapsed
23122
23123 \begin_layout Plain Layout
23124 black
23125 \end_layout
23126
23127 \end_inset
23128
23129
23130 \begin_inset Flex Code
23131 status collapsed
23132
23133 \begin_layout Plain Layout
23134 white
23135 \end_layout
23136
23137 \end_inset
23138
23139
23140 \begin_inset Flex Code
23141 status collapsed
23142
23143 \begin_layout Plain Layout
23144 red
23145 \end_layout
23146
23147 \end_inset
23148
23149
23150 \begin_inset Flex Code
23151 status collapsed
23152
23153 \begin_layout Plain Layout
23154 green
23155 \end_layout
23156
23157 \end_inset
23158
23159
23160 \begin_inset Flex Code
23161 status collapsed
23162
23163 \begin_layout Plain Layout
23164 blue
23165 \end_layout
23166
23167 \end_inset
23168
23169
23170 \begin_inset Flex Code
23171 status collapsed
23172
23173 \begin_layout Plain Layout
23174 cyan
23175 \end_layout
23176
23177 \end_inset
23178
23179
23180 \begin_inset Flex Code
23181 status collapsed
23182
23183 \begin_layout Plain Layout
23184 magenta
23185 \end_layout
23186
23187 \end_inset
23188
23189
23190 \begin_inset Flex Code
23191 status collapsed
23192
23193 \begin_layout Plain Layout
23194 yellow
23195 \end_layout
23196
23197 \end_inset
23198
23199
23200 \begin_inset Flex Code
23201 status collapsed
23202
23203 \begin_layout Plain Layout
23204 brown
23205 \end_layout
23206
23207 \end_inset
23208
23209
23210 \begin_inset Flex Code
23211 status collapsed
23212
23213 \begin_layout Plain Layout
23214 darkgray
23215 \end_layout
23216
23217 \end_inset
23218
23219
23220 \begin_inset Flex Code
23221 status collapsed
23222
23223 \begin_layout Plain Layout
23224 gray
23225 \end_layout
23226
23227 \end_inset
23228
23229
23230 \begin_inset Flex Code
23231 status collapsed
23232
23233 \begin_layout Plain Layout
23234 lightgray
23235 \end_layout
23236
23237 \end_inset
23238
23239
23240 \begin_inset Flex Code
23241 status collapsed
23242
23243 \begin_layout Plain Layout
23244 lime
23245 \end_layout
23246
23247 \end_inset
23248
23249
23250 \begin_inset Flex Code
23251 status collapsed
23252
23253 \begin_layout Plain Layout
23254 orange
23255 \end_layout
23256
23257 \end_inset
23258
23259
23260 \begin_inset Flex Code
23261 status collapsed
23262
23263 \begin_layout Plain Layout
23264 olive
23265 \end_layout
23266
23267 \end_inset
23268
23269
23270 \begin_inset Flex Code
23271 status collapsed
23272
23273 \begin_layout Plain Layout
23274 pink
23275 \end_layout
23276
23277 \end_inset
23278
23279
23280 \begin_inset Flex Code
23281 status collapsed
23282
23283 \begin_layout Plain Layout
23284 purple
23285 \end_layout
23286
23287 \end_inset
23288
23289
23290 \begin_inset Flex Code
23291 status collapsed
23292
23293 \begin_layout Plain Layout
23294 teal
23295 \end_layout
23296
23297 \end_inset
23298
23299
23300 \begin_inset Flex Code
23301 status collapsed
23302
23303 \begin_layout Plain Layout
23304 violet
23305 \end_layout
23306
23307 \end_inset
23308
23309
23310 \change_inserted -712698321 1607683139
23311
23312 \begin_inset Flex Code
23313 status collapsed
23314
23315 \begin_layout Plain Layout
23316
23317 \change_inserted -712698321 1607683135
23318 string
23319 \end_layout
23320
23321 \end_inset
23322
23323 ] See appendix
23324 \begin_inset space ~
23325 \end_inset
23326
23327
23328 \begin_inset CommandInset ref
23329 LatexCommand ref
23330 reference "chap:Names-of-colors"
23331 plural "false"
23332 caps "false"
23333 noprefix "false"
23334
23335 \end_inset
23336
23337  for 
23338 \change_deleted -712698321 1607683144
23339 ]
23340 \change_inserted -712698321 1607683146
23341 valid arguments.
23342 \change_unchanged
23343
23344 \end_layout
23345
23346 \begin_layout Description
23347 \begin_inset Flex Code
23348 status collapsed
23349
23350 \begin_layout Plain Layout
23351 Family
23352 \end_layout
23353
23354 \end_inset
23355
23356  [
23357 \begin_inset Flex Code
23358 status collapsed
23359
23360 \begin_layout Plain Layout
23361
23362 \emph on
23363 Roman
23364 \end_layout
23365
23366 \end_inset
23367
23368
23369 \begin_inset Flex Code
23370 status collapsed
23371
23372 \begin_layout Plain Layout
23373 Sans
23374 \end_layout
23375
23376 \end_inset
23377
23378
23379 \begin_inset Flex Code
23380 status collapsed
23381
23382 \begin_layout Plain Layout
23383 Typewriter
23384 \end_layout
23385
23386 \end_inset
23387
23388 ]
23389 \end_layout
23390
23391 \begin_layout Description
23392 \begin_inset Flex Code
23393 status collapsed
23394
23395 \begin_layout Plain Layout
23396 Misc
23397 \end_layout
23398
23399 \end_inset
23400
23401  [
23402 \begin_inset Flex Code
23403 status collapsed
23404
23405 \begin_layout Plain Layout
23406 string
23407 \end_layout
23408
23409 \end_inset
23410
23411 ] Valid arguments are: 
23412 \begin_inset Flex Code
23413 status collapsed
23414
23415 \begin_layout Plain Layout
23416 emph
23417 \end_layout
23418
23419 \end_inset
23420
23421
23422 \begin_inset Flex Code
23423 status collapsed
23424
23425 \begin_layout Plain Layout
23426 noun
23427 \end_layout
23428
23429 \end_inset
23430
23431
23432 \begin_inset Flex Code
23433 status collapsed
23434
23435 \begin_layout Plain Layout
23436 strikeout
23437 \end_layout
23438
23439 \end_inset
23440
23441
23442 \begin_inset Flex Code
23443 status collapsed
23444
23445 \begin_layout Plain Layout
23446 underbar
23447 \end_layout
23448
23449 \end_inset
23450
23451
23452 \begin_inset Flex Code
23453 status collapsed
23454
23455 \begin_layout Plain Layout
23456 uuline
23457 \end_layout
23458
23459 \end_inset
23460
23461
23462 \begin_inset Flex Code
23463 status collapsed
23464
23465 \begin_layout Plain Layout
23466 uwave
23467 \end_layout
23468
23469 \end_inset
23470
23471
23472 \begin_inset Flex Code
23473 status collapsed
23474
23475 \begin_layout Plain Layout
23476 no_emph
23477 \end_layout
23478
23479 \end_inset
23480
23481
23482 \begin_inset Flex Code
23483 status collapsed
23484
23485 \begin_layout Plain Layout
23486 no_noun
23487 \end_layout
23488
23489 \end_inset
23490
23491
23492 \begin_inset Flex Code
23493 status collapsed
23494
23495 \begin_layout Plain Layout
23496 no_strikeout
23497 \end_layout
23498
23499 \end_inset
23500
23501
23502 \begin_inset Flex Code
23503 status collapsed
23504
23505 \begin_layout Plain Layout
23506 no_bar
23507 \end_layout
23508
23509 \end_inset
23510
23511
23512 \begin_inset Flex Code
23513 status collapsed
23514
23515 \begin_layout Plain Layout
23516 no_uuline
23517 \end_layout
23518
23519 \end_inset
23520
23521  and 
23522 \begin_inset Flex Code
23523 status collapsed
23524
23525 \begin_layout Plain Layout
23526 no_uwave
23527 \end_layout
23528
23529 \end_inset
23530
23531 .
23532  Each of these turns on or off the corresponding attribute.
23533  For example, 
23534 \begin_inset Flex Code
23535 status collapsed
23536
23537 \begin_layout Plain Layout
23538 emph
23539 \end_layout
23540
23541 \end_inset
23542
23543  turns on emphasis, and 
23544 \begin_inset Flex Code
23545 status collapsed
23546
23547 \begin_layout Plain Layout
23548 no_emph
23549 \end_layout
23550
23551 \end_inset
23552
23553  turns it off.
23554  
23555 \begin_inset Newline newline
23556 \end_inset
23557
23558 If the latter seems puzzling, remember that the font settings for the present
23559  context are generally inherited from the surrounding context.
23560  So 
23561 \begin_inset Flex Code
23562 status collapsed
23563
23564 \begin_layout Plain Layout
23565 no_emph
23566 \end_layout
23567
23568 \end_inset
23569
23570  would turn off the emphasis that was anyway in effect, say, in a theorem
23571  environment.
23572 \end_layout
23573
23574 \begin_layout Description
23575 \begin_inset Flex Code
23576 status collapsed
23577
23578 \begin_layout Plain Layout
23579 Series
23580 \end_layout
23581
23582 \end_inset
23583
23584  [
23585 \begin_inset Flex Code
23586 status collapsed
23587
23588 \begin_layout Plain Layout
23589
23590 \emph on
23591 Medium
23592 \end_layout
23593
23594 \end_inset
23595
23596
23597 \begin_inset Flex Code
23598 status collapsed
23599
23600 \begin_layout Plain Layout
23601 Bold
23602 \end_layout
23603
23604 \end_inset
23605
23606
23607 \end_layout
23608
23609 \begin_layout Description
23610 \begin_inset Flex Code
23611 status collapsed
23612
23613 \begin_layout Plain Layout
23614 Shape
23615 \end_layout
23616
23617 \end_inset
23618
23619  [
23620 \begin_inset Flex Code
23621 status collapsed
23622
23623 \begin_layout Plain Layout
23624
23625 \emph on
23626 Up
23627 \end_layout
23628
23629 \end_inset
23630
23631
23632 \begin_inset Flex Code
23633 status collapsed
23634
23635 \begin_layout Plain Layout
23636 Italic
23637 \end_layout
23638
23639 \end_inset
23640
23641
23642 \begin_inset Flex Code
23643 status collapsed
23644
23645 \begin_layout Plain Layout
23646 SmallCaps
23647 \end_layout
23648
23649 \end_inset
23650
23651
23652 \begin_inset Flex Code
23653 status collapsed
23654
23655 \begin_layout Plain Layout
23656 Slanted
23657 \end_layout
23658
23659 \end_inset
23660
23661
23662 \end_layout
23663
23664 \begin_layout Description
23665 \begin_inset Flex Code
23666 status collapsed
23667
23668 \begin_layout Plain Layout
23669 Size
23670 \end_layout
23671
23672 \end_inset
23673
23674  [
23675 \begin_inset Flex Code
23676 status collapsed
23677
23678 \begin_layout Plain Layout
23679 tiny
23680 \end_layout
23681
23682 \end_inset
23683
23684
23685 \begin_inset Flex Code
23686 status collapsed
23687
23688 \begin_layout Plain Layout
23689 small
23690 \end_layout
23691
23692 \end_inset
23693
23694
23695 \begin_inset Flex Code
23696 status collapsed
23697
23698 \begin_layout Plain Layout
23699
23700 \emph on
23701 normal
23702 \end_layout
23703
23704 \end_inset
23705
23706
23707 \begin_inset Flex Code
23708 status collapsed
23709
23710 \begin_layout Plain Layout
23711 large
23712 \end_layout
23713
23714 \end_inset
23715
23716
23717 \begin_inset Flex Code
23718 status collapsed
23719
23720 \begin_layout Plain Layout
23721 larger
23722 \end_layout
23723
23724 \end_inset
23725
23726
23727 \begin_inset Flex Code
23728 status collapsed
23729
23730 \begin_layout Plain Layout
23731 largest
23732 \end_layout
23733
23734 \end_inset
23735
23736
23737 \begin_inset Flex Code
23738 status collapsed
23739
23740 \begin_layout Plain Layout
23741 huge
23742 \end_layout
23743
23744 \end_inset
23745
23746
23747 \begin_inset Flex Code
23748 status collapsed
23749
23750 \begin_layout Plain Layout
23751 giant
23752 \end_layout
23753
23754 \end_inset
23755
23756 ]
23757 \end_layout
23758
23759 \begin_layout Subsection
23760 \begin_inset CommandInset label
23761 LatexCommand label
23762 name "subsec:Citation-engine-description"
23763
23764 \end_inset
23765
23766 Cite engine description
23767 \end_layout
23768
23769 \begin_layout Standard
23770 The 
23771 \begin_inset Flex Code
23772 status collapsed
23773
23774 \begin_layout Plain Layout
23775 CiteEngine
23776 \end_layout
23777
23778 \end_inset
23779
23780  blocks, as used mainly in cite engine files (see 
23781 \begin_inset CommandInset ref
23782 LatexCommand ref
23783 reference "subsec:Cite-Engine-Files"
23784 plural "false"
23785 caps "false"
23786 noprefix "false"
23787
23788 \end_inset
23789
23790 ), define the citation commands provided by a specific 
23791 \begin_inset Quotes eld
23792 \end_inset
23793
23794 cite engine
23795 \begin_inset Quotes erd
23796 \end_inset
23797
23798 .
23799  A cite engine, in \SpecialChar LyX
23800  terms, is way specific way to format citations, using
23801  numbers, author names and/or years.
23802  Currently, \SpecialChar LyX
23803  supports three such engine types, namely:
23804 \end_layout
23805
23806 \begin_layout Enumerate
23807 \begin_inset Flex Code
23808 status collapsed
23809
23810 \begin_layout Plain Layout
23811 default
23812 \end_layout
23813
23814 \end_inset
23815
23816 : the default Bib\SpecialChar TeX
23817  way to format citations, a simple numeric style (e.
23818 \begin_inset space \thinspace{}
23819 \end_inset
23820
23821 g., 
23822 \begin_inset Quotes eld
23823 \end_inset
23824
23825 [1]
23826 \begin_inset Quotes erd
23827 \end_inset
23828
23829 )
23830 \end_layout
23831
23832 \begin_layout Enumerate
23833 \begin_inset Flex Code
23834 status collapsed
23835
23836 \begin_layout Plain Layout
23837 authoryear
23838 \end_layout
23839
23840 \end_inset
23841
23842 : Harvard-styled citations using author names and publication year (e.
23843 \begin_inset space \thinspace{}
23844 \end_inset
23845
23846 g., 
23847 \begin_inset Quotes eld
23848 \end_inset
23849
23850 Smith and Miller (2017b)
23851 \begin_inset Quotes erd
23852 \end_inset
23853
23854 )
23855 \end_layout
23856
23857 \begin_layout Enumerate
23858 \begin_inset Flex Code
23859 status collapsed
23860
23861 \begin_layout Plain Layout
23862 numerical
23863 \end_layout
23864
23865 \end_inset
23866
23867 : extended numerical citations that also allow for author or title next
23868  to the number (e.
23869 \begin_inset space \thinspace{}
23870 \end_inset
23871
23872 g., 
23873 \begin_inset Quotes eld
23874 \end_inset
23875
23876 Smith and Miller [1]
23877 \begin_inset Quotes erd
23878 \end_inset
23879
23880 )
23881 \end_layout
23882
23883 \begin_layout Standard
23884 \begin_inset Flex Code
23885 status collapsed
23886
23887 \begin_layout Plain Layout
23888 CiteEngine
23889 \end_layout
23890
23891 \end_inset
23892
23893  blocks look like this:
23894 \end_layout
23895
23896 \begin_layout LyX-Code
23897 CiteEngine default
23898 \end_layout
23899
23900 \begin_layout LyX-Code
23901  cite
23902 \end_layout
23903
23904 \begin_layout LyX-Code
23905  Citep*[][]
23906 \end_layout
23907
23908 \begin_layout LyX-Code
23909  citeyearpar[][]=parencite*
23910 \end_layout
23911
23912 \begin_layout LyX-Code
23913  ...
23914 \end_layout
23915
23916 \begin_layout LyX-Code
23917 End
23918 \end_layout
23919
23920 \begin_layout Standard
23921 The tag following 
23922 \begin_inset Flex Code
23923 status collapsed
23924
23925 \begin_layout Plain Layout
23926 CiteEngine
23927 \end_layout
23928
23929 \end_inset
23930
23931  denotes the engine.
23932  The individual lines respectively define a cite command or cite command
23933  paradigm supported by this engine.
23934  The line can be as simple as a cite command that is used both to name the
23935  respective \SpecialChar LyX
23936  command and the \SpecialChar LaTeX
23937  output or more complex in order to differentiate
23938  things.
23939  The full syntax is:
23940 \end_layout
23941
23942 \begin_layout LyX-Code
23943 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23944 \end_layout
23945
23946 \begin_layout Itemize
23947 \begin_inset Flex Code
23948 status collapsed
23949
23950 \begin_layout Plain Layout
23951 LyXName
23952 \end_layout
23953
23954 \end_inset
23955
23956 : The name as used in the 
23957 \begin_inset Flex Code
23958 status collapsed
23959
23960 \begin_layout Plain Layout
23961 *.lyx
23962 \end_layout
23963
23964 \end_inset
23965
23966  file.
23967 \end_layout
23968
23969 \begin_deeper
23970 \begin_layout Standard
23971 For portability reasons, we try to use the same name for same-formatted
23972  commands in different cite packages (thus many names stem from natbib,
23973  and thus we need to differentiate a 
23974 \begin_inset Flex Code
23975 status collapsed
23976
23977 \begin_layout Plain Layout
23978 latexcmd
23979 \end_layout
23980
23981 \end_inset
23982
23983  sometimes, if the \SpecialChar LaTeX
23984  command names differ).
23985 \end_layout
23986
23987 \end_deeper
23988 \begin_layout Itemize
23989 \begin_inset Flex Code
23990 status collapsed
23991
23992 \begin_layout Plain Layout
23993 alias
23994 \end_layout
23995
23996 \end_inset
23997
23998 : a (comma-separated) list of commands that fall back to the given 
23999 \begin_inset Flex Code
24000 status collapsed
24001
24002 \begin_layout Plain Layout
24003 LyXName
24004 \end_layout
24005
24006 \end_inset
24007
24008  in the current engine.
24009  This eases the switch of citation packages and engines.
24010  The 
24011 \begin_inset Flex Code
24012 status collapsed
24013
24014 \begin_layout Plain Layout
24015 alias
24016 \end_layout
24017
24018 \end_inset
24019
24020  can be compared to 
24021 \begin_inset Flex Code
24022 status collapsed
24023
24024 \begin_layout Plain Layout
24025 ObsoletedBy
24026 \end_layout
24027
24028 \end_inset
24029
24030  in layout definitions.
24031 \end_layout
24032
24033 \begin_layout Itemize
24034 \begin_inset Flex Code
24035 status collapsed
24036
24037 \begin_layout Plain Layout
24038 latexcmd
24039 \end_layout
24040
24041 \end_inset
24042
24043 : The actual \SpecialChar LaTeX
24044  command that is output.
24045  
24046 \end_layout
24047
24048 \begin_layout Standard
24049 \begin_inset Flex Code
24050 status collapsed
24051
24052 \begin_layout Plain Layout
24053 Alias
24054 \end_layout
24055
24056 \end_inset
24057
24058  and 
24059 \begin_inset Flex Code
24060 status collapsed
24061
24062 \begin_layout Plain Layout
24063 latexcmd
24064 \end_layout
24065
24066 \end_inset
24067
24068  are optional.
24069  If no 
24070 \begin_inset Flex Code
24071 status collapsed
24072
24073 \begin_layout Plain Layout
24074 latexcmd
24075 \end_layout
24076
24077 \end_inset
24078
24079  is given, the 
24080 \begin_inset Flex Code
24081 status collapsed
24082
24083 \begin_layout Plain Layout
24084 LyXName
24085 \end_layout
24086
24087 \end_inset
24088
24089  will be output to \SpecialChar LaTeX
24090 .
24091 \end_layout
24092
24093 \begin_layout Standard
24094 Note further:
24095 \end_layout
24096
24097 \begin_layout Itemize
24098 Capitalization indicates that the command also has a capitalized form (
24099 \begin_inset Flex Code
24100 status collapsed
24101
24102 \begin_layout Plain Layout
24103
24104 \backslash
24105 Latexcmd
24106 \end_layout
24107
24108 \end_inset
24109
24110  vs.
24111  
24112 \begin_inset Flex Code
24113 status collapsed
24114
24115 \begin_layout Plain Layout
24116
24117 \backslash
24118 latexcmd
24119 \end_layout
24120
24121 \end_inset
24122
24123 ).
24124  These usually enforce up-casing of name prefixes (
24125 \emph on
24126 von Goethe
24127 \emph default
24128  
24129 \begin_inset Formula $\Rightarrow$
24130 \end_inset
24131
24132  
24133 \emph on
24134 Von Goethe
24135 \emph default
24136 ).
24137 \end_layout
24138
24139 \begin_layout Itemize
24140 Brackets 
24141 \begin_inset Flex Code
24142 status collapsed
24143
24144 \begin_layout Plain Layout
24145 []
24146 \end_layout
24147
24148 \end_inset
24149
24150  indicate the number of optional arguments (there can be 0–2).
24151 \end_layout
24152
24153 \begin_layout Itemize
24154 A star 
24155 \begin_inset Flex Code
24156 status collapsed
24157
24158 \begin_layout Plain Layout
24159 *
24160 \end_layout
24161
24162 \end_inset
24163
24164  indicates there is a starred version of the command (
24165 \begin_inset Flex Code
24166 status collapsed
24167
24168 \begin_layout Plain Layout
24169
24170 \backslash
24171 latexcmd*
24172 \end_layout
24173
24174 \end_inset
24175
24176  vs.
24177  
24178 \begin_inset Flex Code
24179 status collapsed
24180
24181 \begin_layout Plain Layout
24182
24183 \backslash
24184 latexcmd
24185 \end_layout
24186
24187 \end_inset
24188
24189 ).
24190  
24191 \end_layout
24192
24193 \begin_deeper
24194 \begin_layout Standard
24195 By default, the starred version means: Output all authors even if it should
24196  be shortened with 
24197 \begin_inset Quotes eld
24198 \end_inset
24199
24200 et al.
24201 \begin_inset Quotes erd
24202 \end_inset
24203
24204  due to the 
24205 \begin_inset Flex Code
24206 status collapsed
24207
24208 \begin_layout Plain Layout
24209 MaxCiteNames
24210 \end_layout
24211
24212 \end_inset
24213
24214  threshold.
24215 \end_layout
24216
24217 \begin_layout Standard
24218 If the star has a different meaning for a given command, it can be specified
24219  in angle brackets: 
24220 \begin_inset Flex Code
24221 status collapsed
24222
24223 \begin_layout Plain Layout
24224 <!_stardesc!_stardesctooltip>
24225 \end_layout
24226
24227 \end_inset
24228
24229 .
24230  Maximal two translatable macro keywords, marked by the prefix 
24231 \begin_inset Flex Code
24232 status collapsed
24233
24234 \begin_layout Plain Layout
24235 !_
24236 \end_layout
24237
24238 \end_inset
24239
24240 , can be given.
24241  The first points to the string that replaces the 
24242 \begin_inset Quotes eld
24243 \end_inset
24244
24245 Full aut&hor list
24246 \begin_inset Quotes erd
24247 \end_inset
24248
24249  checkbox label in the citation dialog, the second one to an optional tool
24250  tip for this checkbox.
24251  
24252 \end_layout
24253
24254 \begin_layout Standard
24255 Note that these two macros have to be defined in a 
24256 \begin_inset Flex Code
24257 status collapsed
24258
24259 \begin_layout Plain Layout
24260 CiteFormat
24261 \end_layout
24262
24263 \end_inset
24264
24265  (see next section), dropping the 
24266 \begin_inset Flex Code
24267 status collapsed
24268
24269 \begin_layout Plain Layout
24270 !
24271 \end_layout
24272
24273 \end_inset
24274
24275  from the prefix, like this: 
24276 \end_layout
24277
24278 \begin_layout LyX-Code
24279 _stardesc Sta&rred command label
24280 \end_layout
24281
24282 \begin_layout LyX-Code
24283 _stardesctooltip Tooltip for the starred command checkbox.
24284 \end_layout
24285
24286 \end_deeper
24287 \begin_layout Itemize
24288 A dollar sign 
24289 \begin_inset Flex Code
24290 status collapsed
24291
24292 \begin_layout Plain Layout
24293 $
24294 \end_layout
24295
24296 \end_inset
24297
24298  indicates that this command features 
24299 \begin_inset Quotes eld
24300 \end_inset
24301
24302 qualified citation lists
24303 \begin_inset Quotes erd
24304 \end_inset
24305
24306 .
24307  This is a 
24308 \family sans
24309 Biblatex
24310 \family default
24311 -specific feature for multi-reference citations where an individual pre-
24312  and postnote can be given to each reference in the list.
24313  Please refer to the 
24314 \family sans
24315 Biblatex
24316 \family default
24317  manual for details.
24318 \change_inserted -712698321 1526898670
24319
24320 \end_layout
24321
24322 \begin_layout Standard
24323
24324 \change_inserted -712698321 1526899524
24325 If you want to add a cite command to a cite engine (e.
24326 \begin_inset space \thinspace{}
24327 \end_inset
24328
24329 g., add a specific command provided by a class), you can use 
24330 \begin_inset Flex Code
24331 status collapsed
24332
24333 \begin_layout Plain Layout
24334
24335 \change_inserted -712698321 1526898768
24336 AddToCiteEngine <engine type> \SpecialChar ldots
24337  End
24338 \change_unchanged
24339
24340 \end_layout
24341
24342 \end_inset
24343
24344 .
24345  Note that only cite commands that do not exist yet are added.
24346 \change_unchanged
24347
24348 \end_layout
24349
24350 \begin_layout Subsection
24351 \begin_inset CommandInset label
24352 LatexCommand label
24353 name "subsec:Citation-format-description"
24354
24355 \end_inset
24356
24357 Cite format description
24358 \end_layout
24359
24360 \begin_layout Standard
24361 The 
24362 \begin_inset Flex Code
24363 status collapsed
24364
24365 \begin_layout Plain Layout
24366 CiteFormat
24367 \end_layout
24368
24369 \end_inset
24370
24371  blocks are used to describe how bibliographic information should be displayed,
24372  both within \SpecialChar LyX
24373  itself (in the citation dialog and in tooltips, for example)
24374  and in XHTML output.
24375  Such a block might look like this:
24376 \end_layout
24377
24378 \begin_layout LyX-Code
24379 CiteFormat
24380 \end_layout
24381
24382 \begin_layout LyX-Code
24383  article ...
24384 \end_layout
24385
24386 \begin_layout LyX-Code
24387  book ...
24388 \end_layout
24389
24390 \begin_layout LyX-Code
24391 End
24392 \end_layout
24393
24394 \begin_layout Standard
24395 or
24396 \end_layout
24397
24398 \begin_layout LyX-Code
24399 CiteFormat
24400 \end_layout
24401
24402 \begin_layout LyX-Code
24403  cite ...
24404 \end_layout
24405
24406 \begin_layout LyX-Code
24407  citet*[][] ...
24408 \end_layout
24409
24410 \begin_layout LyX-Code
24411 End
24412 \end_layout
24413
24414 \begin_layout Standard
24415 In the first case, the individual lines define how the bibliographic information
24416  associated with an article or book, respectively, is to be displayed, and
24417  such a definition can be given for any 
24418 \begin_inset Quotes els
24419 \end_inset
24420
24421 entry type
24422 \begin_inset Quotes ers
24423 \end_inset
24424
24425  that might be present in a Bib\SpecialChar TeX
24426  file.
24427  \SpecialChar LyX
24428  defines a default format in the source code that will be used if no specific
24429  definition has been given.
24430  \SpecialChar LyX
24431  predefines several formats in the file 
24432 \begin_inset Flex Code
24433 status collapsed
24434
24435 \begin_layout Plain Layout
24436 stdciteformats.inc
24437 \end_layout
24438
24439 \end_inset
24440
24441 , which is included in most of \SpecialChar LyX
24442 's document classes.
24443 \end_layout
24444
24445 \begin_layout Standard
24446 In the second case, the lines define how a specific citation command (in
24447  the example 
24448 \begin_inset Flex Code
24449 status collapsed
24450
24451 \begin_layout Plain Layout
24452
24453 \backslash
24454 cite
24455 \end_layout
24456
24457 \end_inset
24458
24459
24460 \begin_inset Flex Code
24461 status collapsed
24462
24463 \begin_layout Plain Layout
24464
24465 \backslash
24466 citet
24467 \end_layout
24468
24469 \end_inset
24470
24471 ) is to be displayed on the citation inset label, in the citation dialog,
24472  menu or XHTML output.
24473  \SpecialChar LyX
24474  defines such formats for the citation style variants it supports via 
24475 \family sans
24476 Document\SpecialChar menuseparator
24477 Setting\SpecialChar menuseparator
24478 Bibliography\SpecialChar ldots
24479
24480 \family default
24481  in specific 
24482 \begin_inset Flex Code
24483 status collapsed
24484
24485 \begin_layout Plain Layout
24486 *.citeengine
24487 \end_layout
24488
24489 \end_inset
24490
24491  files that are shipped with \SpecialChar LyX
24492  (see 
24493 \begin_inset CommandInset ref
24494 LatexCommand ref
24495 reference "subsec:Cite-Engine-Files"
24496 plural "false"
24497 caps "false"
24498 noprefix "false"
24499
24500 \end_inset
24501
24502 ).
24503 \end_layout
24504
24505 \begin_layout Standard
24506 The definitions use a simple language that allows Bib\SpecialChar TeX
24507  keys to be replaced
24508  with their values.
24509  Keys should be enclosed in 
24510 \begin_inset Flex Code
24511 status collapsed
24512
24513 \begin_layout Plain Layout
24514 %
24515 \end_layout
24516
24517 \end_inset
24518
24519  signs, e.g.: 
24520 \begin_inset Flex Code
24521 status collapsed
24522
24523 \begin_layout Plain Layout
24524 %author%
24525 \end_layout
24526
24527 \end_inset
24528
24529 .
24530  So a simple definition might look like this:
24531 \end_layout
24532
24533 \begin_layout LyX-Code
24534 misc %author%, 
24535 \begin_inset Quotes eld
24536 \end_inset
24537
24538 %title%
24539 \begin_inset Quotes erd
24540 \end_inset
24541
24542 .
24543 \end_layout
24544
24545 \begin_layout Standard
24546 This would print the author, followed by a comma, followed by the title,
24547  in quotes, followed by a period.
24548 \end_layout
24549
24550 \begin_layout Standard
24551 Of course, sometimes you may want to print a key only if it exists.
24552  This can be done by using a conditional construction, such as: 
24553 \begin_inset Flex Code
24554 status collapsed
24555
24556 \begin_layout Plain Layout
24557 {%volume%[[vol.
24558 \begin_inset space ~
24559 \end_inset
24560
24561 %volume%]]}
24562 \end_layout
24563
24564 \end_inset
24565
24566 .
24567  This says: If the 
24568 \begin_inset Flex Code
24569 status collapsed
24570
24571 \begin_layout Plain Layout
24572 volume
24573 \end_layout
24574
24575 \end_inset
24576
24577  key exists, then print 
24578 \begin_inset Quotes eld
24579 \end_inset
24580
24581 vol.
24582 \begin_inset space ~
24583 \end_inset
24584
24585
24586 \begin_inset Quotes erd
24587 \end_inset
24588
24589  followed by the volume key.
24590  It is also possible to have an else clause in the conditional, such as:
24591 \begin_inset Newline newline
24592 \end_inset
24593
24594
24595 \begin_inset Flex Code
24596 status collapsed
24597
24598 \begin_layout Plain Layout
24599 {%author%[[%author%]][[%editor%, ed.]]}
24600 \end_layout
24601
24602 \end_inset
24603
24604 .
24605 \begin_inset Newline newline
24606 \end_inset
24607
24608 Here, the 
24609 \begin_inset Flex Code
24610 status collapsed
24611
24612 \begin_layout Plain Layout
24613 author
24614 \end_layout
24615
24616 \end_inset
24617
24618  key is printed if it exists; otherwise, the editor key is printed, followed
24619  by 
24620 \begin_inset Quotes eld
24621 \end_inset
24622
24623 ,
24624 \begin_inset space ~
24625 \end_inset
24626
24627 ed.
24628 \begin_inset Quotes erd
24629 \end_inset
24630
24631  Note that the key is again enclosed in 
24632 \begin_inset Flex Code
24633 status collapsed
24634
24635 \begin_layout Plain Layout
24636 %
24637 \end_layout
24638
24639 \end_inset
24640
24641  signs; the entire conditional is enclosed in braces; and the if and else
24642  clauses are enclosed in double brackets, 
24643 \begin_inset Quotes eld
24644 \end_inset
24645
24646
24647 \begin_inset Flex Code
24648 status collapsed
24649
24650 \begin_layout Plain Layout
24651 [[
24652 \end_layout
24653
24654 \end_inset
24655
24656
24657 \begin_inset Quotes eld
24658 \end_inset
24659
24660  and 
24661 \begin_inset Quotes eld
24662 \end_inset
24663
24664
24665 \begin_inset Flex Code
24666 status collapsed
24667
24668 \begin_layout Plain Layout
24669 ]]
24670 \end_layout
24671
24672 \end_inset
24673
24674
24675 \begin_inset Quotes erd
24676 \end_inset
24677
24678 .
24679  There must be no space between any of these.
24680 \end_layout
24681
24682 \begin_layout Standard
24683 Next to the entry keys, there are some special keys that can be used for
24684  these conditionals:
24685 \end_layout
24686
24687 \begin_layout Itemize
24688 \begin_inset Flex Code
24689 status collapsed
24690
24691 \begin_layout Plain Layout
24692 {%dialog%[[true]][[false]]}
24693 \end_layout
24694
24695 \end_inset
24696
24697 : process the 
24698 \begin_inset Quotes eld
24699 \end_inset
24700
24701 true
24702 \begin_inset Quotes erd
24703 \end_inset
24704
24705  part for dialogs and menus, the 
24706 \begin_inset Quotes eld
24707 \end_inset
24708
24709 false
24710 \begin_inset Quotes erd
24711 \end_inset
24712
24713  part for other contexts (workarea, export)
24714 \end_layout
24715
24716 \begin_layout Itemize
24717 \begin_inset Flex Code
24718 status collapsed
24719
24720 \begin_layout Plain Layout
24721 {%export%[[true]][[false]]}
24722 \end_layout
24723
24724 \end_inset
24725
24726 : process the 
24727 \begin_inset Quotes eld
24728 \end_inset
24729
24730 true
24731 \begin_inset Quotes erd
24732 \end_inset
24733
24734  part for export and menus, the 
24735 \begin_inset Quotes eld
24736 \end_inset
24737
24738 false
24739 \begin_inset Quotes erd
24740 \end_inset
24741
24742  part for other contexts (workarea, dialog)
24743 \end_layout
24744
24745 \begin_layout Itemize
24746 \begin_inset Flex Code
24747 status collapsed
24748
24749 \begin_layout Plain Layout
24750 {%next%[[true]]}
24751 \end_layout
24752
24753 \end_inset
24754
24755 : process the 
24756 \begin_inset Quotes eld
24757 \end_inset
24758
24759 true
24760 \begin_inset Quotes erd
24761 \end_inset
24762
24763  part if another item follows (e.
24764 \begin_inset space \thinspace{}
24765 \end_inset
24766
24767 g., in a citation with multiple keys)
24768 \end_layout
24769
24770 \begin_layout Itemize
24771 \begin_inset Flex Code
24772 status collapsed
24773
24774 \begin_layout Plain Layout
24775 {%second%[[true]][[false]]}
24776 \end_layout
24777
24778 \end_inset
24779
24780 : process the 
24781 \begin_inset Quotes eld
24782 \end_inset
24783
24784 true
24785 \begin_inset Quotes erd
24786 \end_inset
24787
24788  if this is the second of multiple items, else the 
24789 \begin_inset Quotes eld
24790 \end_inset
24791
24792 false
24793 \begin_inset Quotes erd
24794 \end_inset
24795
24796  part
24797 \end_layout
24798
24799 \begin_layout Itemize
24800 \begin_inset Flex Code
24801 status collapsed
24802
24803 \begin_layout Plain Layout
24804 {%ifstar%[[true]][[false]]}
24805 \end_layout
24806
24807 \end_inset
24808
24809 : process the 
24810 \begin_inset Quotes eld
24811 \end_inset
24812
24813 true
24814 \begin_inset Quotes erd
24815 \end_inset
24816
24817  part for starred citation commands (such as 
24818 \begin_inset Flex Code
24819 status collapsed
24820
24821 \begin_layout Plain Layout
24822
24823 \backslash
24824 cite*
24825 \end_layout
24826
24827 \end_inset
24828
24829 ), the false part for unstarred
24830 \end_layout
24831
24832 \begin_layout Itemize
24833 \begin_inset Flex Code
24834 status collapsed
24835
24836 \begin_layout Plain Layout
24837 {%ifentrytype:<type>%[[true]][[false]]}
24838 \end_layout
24839
24840 \end_inset
24841
24842 : process the 
24843 \begin_inset Quotes eld
24844 \end_inset
24845
24846 true
24847 \begin_inset Quotes erd
24848 \end_inset
24849
24850  if the current entry type matches 
24851 \begin_inset Flex Code
24852 status collapsed
24853
24854 \begin_layout Plain Layout
24855 <type>
24856 \end_layout
24857
24858 \end_inset
24859
24860 , else the false part (e.g., in a citation definition: 
24861 \begin_inset Flex Code
24862 status collapsed
24863
24864 \begin_layout Plain Layout
24865 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24866 \end_layout
24867
24868 \end_inset
24869
24870 )
24871 \end_layout
24872
24873 \begin_layout Itemize
24874 \begin_inset Flex Code
24875 status collapsed
24876
24877 \begin_layout Plain Layout
24878 {%ifmultiple:<authortype>%[[true]][[false]]}
24879 \end_layout
24880
24881 \end_inset
24882
24883 : process the 
24884 \begin_inset Quotes eld
24885 \end_inset
24886
24887 true
24888 \begin_inset Quotes erd
24889 \end_inset
24890
24891  if the current author type (author, editor etc.) has multiple authors, else
24892  the false part (e.g., in a bibliography definition: 
24893 \begin_inset Flex Code
24894 status collapsed
24895
24896 \begin_layout Plain Layout
24897 {%ifmultiple:editor%[[eds.]][[ed.]]}
24898 \end_layout
24899
24900 \end_inset
24901
24902 )
24903 \end_layout
24904
24905 \begin_layout Itemize
24906 \begin_inset Flex Code
24907 status collapsed
24908
24909 \begin_layout Plain Layout
24910 {%ifqualified%[[true]][[false]]}
24911 \end_layout
24912
24913 \end_inset
24914
24915 : process the 
24916 \begin_inset Quotes eld
24917 \end_inset
24918
24919 true
24920 \begin_inset Quotes erd
24921 \end_inset
24922
24923  part if the current citation is a qualified citation list (a specific 
24924 \family sans
24925 Biblatex
24926 \family default
24927  format for multi-reference citations), the false part if this is not the
24928  case.
24929 \end_layout
24930
24931 \begin_layout Standard
24932 We said that 
24933 \begin_inset Flex Code
24934 status collapsed
24935
24936 \begin_layout Plain Layout
24937 %author%
24938 \end_layout
24939
24940 \end_inset
24941
24942  prints the author key as it is recorded in the bibliography file.
24943  This might not be what you want, since it will result in a string such
24944  as 
24945 \begin_inset Quotes eld
24946 \end_inset
24947
24948 Miller, Peter and Smith, Mary and White, Jane
24949 \begin_inset Quotes erd
24950 \end_inset
24951
24952  (since 
24953 \begin_inset Quotes eld
24954 \end_inset
24955
24956 and
24957 \begin_inset Quotes erd
24958 \end_inset
24959
24960  is used by Bib\SpecialChar TeX
24961  to delimit authors).
24962  \SpecialChar LyX
24963  therefore provides some methods to get properly formatted name lists (which
24964  will also get translated).
24965  The following keys are provided:
24966 \end_layout
24967
24968 \begin_layout Enumerate
24969 For name lists with pre- and surname, suitable for the main authors/editors
24970  of a bibliography item.
24971  The 
24972 \begin_inset Flex Code
24973 status collapsed
24974
24975 \begin_layout Plain Layout
24976 <nametype>
24977 \end_layout
24978
24979 \end_inset
24980
24981  part denotes the kind of list that is requested (e.g.
24982  
24983 \begin_inset Flex Code
24984 status collapsed
24985
24986 \begin_layout Plain Layout
24987 <nametype:author>
24988 \end_layout
24989
24990 \end_inset
24991
24992 ):
24993 \end_layout
24994
24995 \begin_deeper
24996 \begin_layout Itemize
24997 \begin_inset Flex Code
24998 status collapsed
24999
25000 \begin_layout Plain Layout
25001 %abbrvnames:<nametype>%
25002 \end_layout
25003
25004 \end_inset
25005
25006 : Provides a name list which is abbreviated (with 
25007 \begin_inset Quotes eld
25008 \end_inset
25009
25010 et al.
25011 \begin_inset Quotes erd
25012 \end_inset
25013
25014 ) when 
25015 \begin_inset Flex Code
25016 status collapsed
25017
25018 \begin_layout Plain Layout
25019 MaxCiteNames
25020 \end_layout
25021
25022 \end_inset
25023
25024  is reached.
25025 \end_layout
25026
25027 \begin_layout Itemize
25028 \begin_inset Flex Code
25029 status collapsed
25030
25031 \begin_layout Plain Layout
25032 %fullnames:<nametype>%
25033 \end_layout
25034
25035 \end_inset
25036
25037 : Provides a full name list (never abbreviated with 
25038 \begin_inset Quotes eld
25039 \end_inset
25040
25041 et al.
25042 \begin_inset Quotes erd
25043 \end_inset
25044
25045 ).
25046 \end_layout
25047
25048 \begin_layout Itemize
25049 \begin_inset Flex Code
25050 status collapsed
25051
25052 \begin_layout Plain Layout
25053 %forceabbrvnames:<nametype>%
25054 \end_layout
25055
25056 \end_inset
25057
25058 : Provides a name list which is always abbreviated (with 
25059 \begin_inset Quotes eld
25060 \end_inset
25061
25062 et al.
25063 \begin_inset Quotes erd
25064 \end_inset
25065
25066 ) irrespective of 
25067 \begin_inset Flex Code
25068 status collapsed
25069
25070 \begin_layout Plain Layout
25071 MaxCiteNames
25072 \end_layout
25073
25074 \end_inset
25075
25076 .
25077 \end_layout
25078
25079 \end_deeper
25080 \begin_layout Enumerate
25081 Alternative name lists with pre- and surname, if the order of pre- and surname
25082  inside the bibliography item differs (as in: 
25083 \begin_inset Quotes eld
25084 \end_inset
25085
25086 Miller, John: Some text, in: Mary Smith, ed.: A volume
25087 \begin_inset Quotes erd
25088 \end_inset
25089
25090 ):
25091 \end_layout
25092
25093 \begin_deeper
25094 \begin_layout Itemize
25095 \begin_inset Flex Code
25096 status collapsed
25097
25098 \begin_layout Plain Layout
25099 %abbrvbynames:<nametype>%
25100 \end_layout
25101
25102 \end_inset
25103
25104 : Provides a name list which is abbreviated (with 
25105 \begin_inset Quotes eld
25106 \end_inset
25107
25108 et al.
25109 \begin_inset Quotes erd
25110 \end_inset
25111
25112 ) when 
25113 \begin_inset Flex Code
25114 status collapsed
25115
25116 \begin_layout Plain Layout
25117 MaxCiteNames
25118 \end_layout
25119
25120 \end_inset
25121
25122  is reached.
25123 \end_layout
25124
25125 \begin_layout Itemize
25126 \begin_inset Flex Code
25127 status collapsed
25128
25129 \begin_layout Plain Layout
25130 %fullbynames:<nametype>%
25131 \end_layout
25132
25133 \end_inset
25134
25135 : Provides a full name list (never abbreviated with 
25136 \begin_inset Quotes eld
25137 \end_inset
25138
25139 et al.
25140 \begin_inset Quotes erd
25141 \end_inset
25142
25143 ).
25144 \end_layout
25145
25146 \begin_layout Itemize
25147 \begin_inset Flex Code
25148 status collapsed
25149
25150 \begin_layout Plain Layout
25151 %forceabbrvbynames:<nametype>%
25152 \end_layout
25153
25154 \end_inset
25155
25156 : Provides a name list which is always abbreviated (with 
25157 \begin_inset Quotes eld
25158 \end_inset
25159
25160 et al.
25161 \begin_inset Quotes erd
25162 \end_inset
25163
25164 ) irrespective of 
25165 \begin_inset Flex Code
25166 status collapsed
25167
25168 \begin_layout Plain Layout
25169 MaxCiteNames
25170 \end_layout
25171
25172 \end_inset
25173
25174 .
25175 \end_layout
25176
25177 \end_deeper
25178 \begin_layout Enumerate
25179 And finally name lists which consist of family names only, as used in author-yea
25180 r citation labels.
25181  These do not take a 
25182 \begin_inset Flex Code
25183 status collapsed
25184
25185 \begin_layout Plain Layout
25186 <nametype>
25187 \end_layout
25188
25189 \end_inset
25190
25191  part, but always return either an author list or, if this does not exist,
25192  an editor list (as common in author-year labels):
25193 \end_layout
25194
25195 \begin_deeper
25196 \begin_layout Itemize
25197 \begin_inset Flex Code
25198 status collapsed
25199
25200 \begin_layout Plain Layout
25201 %abbrvciteauthor%
25202 \end_layout
25203
25204 \end_inset
25205
25206 : Provides a name list which is abbreviated (with 
25207 \begin_inset Quotes eld
25208 \end_inset
25209
25210 et al.
25211 \begin_inset Quotes erd
25212 \end_inset
25213
25214 ) when 
25215 \begin_inset Flex Code
25216 status collapsed
25217
25218 \begin_layout Plain Layout
25219 MaxCiteNames
25220 \end_layout
25221
25222 \end_inset
25223
25224  is reached.
25225 \end_layout
25226
25227 \begin_layout Itemize
25228 \begin_inset Flex Code
25229 status collapsed
25230
25231 \begin_layout Plain Layout
25232 %fullciteauthor%
25233 \end_layout
25234
25235 \end_inset
25236
25237 : Provides a full name list (never abbreviated with 
25238 \begin_inset Quotes eld
25239 \end_inset
25240
25241 et al.
25242 \begin_inset Quotes erd
25243 \end_inset
25244
25245 ).
25246 \end_layout
25247
25248 \begin_layout Itemize
25249 \begin_inset Flex Code
25250 status collapsed
25251
25252 \begin_layout Plain Layout
25253 %forceabbrvciteauthor%
25254 \end_layout
25255
25256 \end_inset
25257
25258 : Provides a name list which is always abbreviated (with 
25259 \begin_inset Quotes eld
25260 \end_inset
25261
25262 et al.
25263 \begin_inset Quotes erd
25264 \end_inset
25265
25266 ) irrespective of 
25267 \begin_inset Flex Code
25268 status collapsed
25269
25270 \begin_layout Plain Layout
25271 MaxCiteNames
25272 \end_layout
25273
25274 \end_inset
25275
25276 .
25277 \end_layout
25278
25279 \end_deeper
25280 \begin_layout Standard
25281 The order of pre- and surname in the former two lists can be adjusted by
25282  these macros:
25283 \end_layout
25284
25285 \begin_layout Itemize
25286 \begin_inset Flex Code
25287 status collapsed
25288
25289 \begin_layout Plain Layout
25290 !firstnameform %surname%, %prename%
25291 \end_layout
25292
25293 \end_inset
25294
25295  (first author in lists of type 1)
25296 \end_layout
25297
25298 \begin_layout Itemize
25299 \begin_inset Flex Code
25300 status collapsed
25301
25302 \begin_layout Plain Layout
25303 !othernameform %surname%, %prename%
25304 \end_layout
25305
25306 \end_inset
25307
25308  (other authors in lists of type 1)
25309 \end_layout
25310
25311 \begin_layout Itemize
25312 \begin_inset Flex Code
25313 status collapsed
25314
25315 \begin_layout Plain Layout
25316 !firstbynameform %prename% %surname%
25317 \end_layout
25318
25319 \end_inset
25320
25321  (first author in lists of type 2)
25322 \end_layout
25323
25324 \begin_layout Itemize
25325 \begin_inset Flex Code
25326 status collapsed
25327
25328 \begin_layout Plain Layout
25329 !otherbynameform %prename% %surname%
25330 \end_layout
25331
25332 \end_inset
25333
25334  (other authors in lists of type 2)
25335 \end_layout
25336
25337 \begin_layout Standard
25338 This allows you to configure namings like 
25339 \begin_inset Quotes eld
25340 \end_inset
25341
25342 Miller, Peter and Mary Smith: \SpecialChar ldots
25343 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
25344
25345 \begin_inset Quotes erd
25346 \end_inset
25347
25348 .
25349 \end_layout
25350
25351 \begin_layout Standard
25352 There is one other piece of syntax available in definitions, which looks
25353  like this: 
25354 \begin_inset Flex Code
25355 status collapsed
25356
25357 \begin_layout Plain Layout
25358 {!<i>!}
25359 \end_layout
25360
25361 \end_inset
25362
25363 .
25364  This defines a piece of formatting information that is to be used when
25365  creating 
25366 \begin_inset Quotes eld
25367 \end_inset
25368
25369 rich text
25370 \begin_inset Quotes erd
25371 \end_inset
25372
25373 .
25374  Obviously, we do not want to output HTML tags when writing plain text,
25375  so they should be wrapped in 
25376 \begin_inset Quotes eld
25377 \end_inset
25378
25379 {!
25380 \begin_inset Quotes erd
25381 \end_inset
25382
25383  and 
25384 \begin_inset Quotes eld
25385 \end_inset
25386
25387 !}
25388 \begin_inset Quotes erd
25389 \end_inset
25390
25391 .
25392 \end_layout
25393
25394 \begin_layout Standard
25395 Two special sorts of definitions are also possible in a 
25396 \begin_inset Flex Code
25397 status collapsed
25398
25399 \begin_layout Plain Layout
25400 CiteFormat
25401 \end_layout
25402
25403 \end_inset
25404
25405  block.
25406  An example of the first would be:
25407 \end_layout
25408
25409 \begin_layout LyX-Code
25410 !quotetitle 
25411 \begin_inset Quotes eld
25412 \end_inset
25413
25414 %title%
25415 \begin_inset Quotes erd
25416 \end_inset
25417
25418
25419 \end_layout
25420
25421 \begin_layout Standard
25422 This is an abbreviation, or macro, and it can be used by treating it as
25423  if it were a key: 
25424 \begin_inset Flex Code
25425 status collapsed
25426
25427 \begin_layout Plain Layout
25428 %!quotetitle%
25429 \end_layout
25430
25431 \end_inset
25432
25433 .
25434  \SpecialChar LyX
25435  will treat 
25436 \begin_inset Flex Code
25437 status collapsed
25438
25439 \begin_layout Plain Layout
25440 %!quotetitle%
25441 \end_layout
25442
25443 \end_inset
25444
25445  exactly as it would treat its definition.
25446  So, let us issue the obvious 
25447 \emph on
25448 warning
25449 \emph default
25450 .
25451  Do not do this:
25452 \end_layout
25453
25454 \begin_layout LyX-Code
25455 !funfun %funfun%
25456 \end_layout
25457
25458 \begin_layout Standard
25459 or anything like it.
25460  \SpecialChar LyX
25461  shouldn't go into an infinite loop, but it may go into a long one before
25462  it gives up.
25463 \end_layout
25464
25465 \begin_layout Standard
25466 The second sort of special definition might look like this:
25467 \end_layout
25468
25469 \begin_layout LyX-Code
25470 B_pptext pp.
25471 \end_layout
25472
25473 \begin_layout Standard
25474 This defines a translatable piece of text, which allows relevant parts of
25475  the bibliography or citation to be translated.
25476  It can be included in a definition by treating it as a key: 
25477 \begin_inset Flex Code
25478 status collapsed
25479
25480 \begin_layout Plain Layout
25481 %B_pptext%
25482 \end_layout
25483
25484 \end_inset
25485
25486 .
25487  Note that there are two different translation paths: All definitions starting
25488  with 
25489 \begin_inset Flex Code
25490 status collapsed
25491
25492 \begin_layout Plain Layout
25493 B_
25494 \end_layout
25495
25496 \end_inset
25497
25498 , such as in the example above, will be translated to the currently active
25499  buffer language (so the translation will match the generated document).
25500  All definitions starting with underscore only will be translated to the
25501  GUI language.
25502  This is the proper translation for strings that only occur in the dialogs
25503  or on buttons, such as this one:
25504 \end_layout
25505
25506 \begin_layout LyX-Code
25507 _addtobib Add to bibliography only.
25508 \end_layout
25509
25510 \begin_layout Standard
25511 Several of these translatable strings are predefined in 
25512 \begin_inset Flex Code
25513 status collapsed
25514
25515 \begin_layout Plain Layout
25516 stdciteformats.inc
25517 \end_layout
25518
25519 \end_inset
25520
25521  and the diverse 
25522 \begin_inset Flex Code
25523 status collapsed
25524
25525 \begin_layout Plain Layout
25526 *.citeengine
25527 \end_layout
25528
25529 \end_inset
25530
25531  files.
25532  Note that these are not macros, in the sense just defined.
25533  They will not be expanded.
25534 \end_layout
25535
25536 \begin_layout Standard
25537 So here then is an example that uses several of these features:
25538 \begin_inset VSpace defskip
25539 \end_inset
25540
25541
25542 \end_layout
25543
25544 \begin_layout Standard
25545 \noindent
25546
25547 \family sans
25548 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
25549 \end_layout
25550
25551 \begin_layout Standard
25552 \begin_inset VSpace defskip
25553 \end_inset
25554
25555 This defines a macro that prints the author, followed by a comma, if the
25556  
25557 \begin_inset Flex Code
25558 status collapsed
25559
25560 \begin_layout Plain Layout
25561 author
25562 \end_layout
25563
25564 \end_inset
25565
25566  key is defined, or else prints the name of the editor, followed by the
25567  
25568 \begin_inset Flex Code
25569 status collapsed
25570
25571 \begin_layout Plain Layout
25572 B_edtext
25573 \end_layout
25574
25575 \end_inset
25576
25577  or its translation (it is by default 
25578 \begin_inset Quotes eld
25579 \end_inset
25580
25581 ed.
25582 \begin_inset Quotes erd
25583 \end_inset
25584
25585 ), if the 
25586 \begin_inset Flex Code
25587 status collapsed
25588
25589 \begin_layout Plain Layout
25590 editor
25591 \end_layout
25592
25593 \end_inset
25594
25595  key is defined.
25596  Note that this is in fact defined in 
25597 \begin_inset Flex Code
25598 status collapsed
25599
25600 \begin_layout Plain Layout
25601 stdciteformats.inc
25602 \end_layout
25603
25604 \end_inset
25605
25606 , so you can use it in your own definitions, or re-definitions, if you load
25607  that file first.
25608 \end_layout
25609
25610 \begin_layout Section
25611 \begin_inset CommandInset label
25612 LatexCommand label
25613 name "sec:Tags-for-XHTML"
25614
25615 \end_inset
25616
25617 Tags for XHTML output
25618 \end_layout
25619
25620 \begin_layout Standard
25621 As with \SpecialChar LaTeX
25622  or DocBook, the format of \SpecialChar LyX
25623 's XHTML output is also controlled by
25624  layout information.
25625  In general, \SpecialChar LyX
25626  provides sensible defaults and, as mentioned earlier, it will
25627  even construct default CSS style rules from the other layout tags.
25628  For example, \SpecialChar LyX
25629  will attempt to use the information provided in the 
25630 \begin_inset Flex Code
25631 status collapsed
25632
25633 \begin_layout Plain Layout
25634 Font
25635 \end_layout
25636
25637 \end_inset
25638
25639  declaration for the Chapter style to write CSS that will appropriately
25640  format chapter headings.
25641 \end_layout
25642
25643 \begin_layout Standard
25644 In many cases, then, you may not have to do anything at all to get acceptable
25645  XHTML output for your own environments, custom insets, and so forth.
25646  But in some cases you will, and so \SpecialChar LyX
25647  provides a number of layout tags that
25648  can be used to customize the XHTML and CSS that are generated.
25649 \end_layout
25650
25651 \begin_layout Standard
25652 Note that there are two tags, 
25653 \begin_inset Flex Code
25654 status collapsed
25655
25656 \begin_layout Plain Layout
25657 HTMLPreamble
25658 \end_layout
25659
25660 \end_inset
25661
25662  and 
25663 \begin_inset Flex Code
25664 status collapsed
25665
25666 \begin_layout Plain Layout
25667 AddToHTMLPreamble
25668 \end_layout
25669
25670 \end_inset
25671
25672  that may appear outside style and inset declarations.
25673  See 
25674 \begin_inset CommandInset ref
25675 LatexCommand ref
25676 reference "subsec:General-text-class"
25677
25678 \end_inset
25679
25680  for details on these.
25681 \end_layout
25682
25683 \begin_layout Subsection
25684 \begin_inset CommandInset label
25685 LatexCommand label
25686 name "subsec:Paragraph-Style-XHTML"
25687
25688 \end_inset
25689
25690 Paragraph styles
25691 \end_layout
25692
25693 \begin_layout Standard
25694 The sort of XHTML \SpecialChar LyX
25695  outputs for a paragraph depends upon whether we are dealing
25696  with a normal paragraph, a command, or an environment, where this is itself
25697  determined by the contents of the corresponding 
25698 \begin_inset Flex Code
25699 status collapsed
25700
25701 \begin_layout Plain Layout
25702 \SpecialChar LaTeX
25703 Type
25704 \end_layout
25705
25706 \end_inset
25707
25708  tag.
25709  
25710 \end_layout
25711
25712 \begin_layout Standard
25713 For a command or normal paragraph, the output XHTML has the following form:
25714 \end_layout
25715
25716 \begin_layout LyX-Code
25717
25718 \family sans
25719 <tag attr=
25720 \begin_inset Quotes erd
25721 \end_inset
25722
25723 value
25724 \begin_inset Quotes erd
25725 \end_inset
25726
25727 >
25728 \end_layout
25729
25730 \begin_layout LyX-Code
25731
25732 \family sans
25733 <labeltag attr=
25734 \begin_inset Quotes erd
25735 \end_inset
25736
25737 value
25738 \begin_inset Quotes erd
25739 \end_inset
25740
25741 >Label</labeltag>
25742 \end_layout
25743
25744 \begin_layout LyX-Code
25745
25746 \family sans
25747 Contents of the paragraph.
25748 \end_layout
25749
25750 \begin_layout LyX-Code
25751
25752 \family sans
25753 </tag>
25754 \end_layout
25755
25756 \begin_layout Standard
25757 The label tags are of course omitted if the paragraph does not have a label.
25758 \end_layout
25759
25760 \begin_layout Standard
25761 For an environment that is not some sort of list, the XHTML takes this form:
25762 \end_layout
25763
25764 \begin_layout LyX-Code
25765
25766 \family sans
25767 <tag attr=
25768 \begin_inset Quotes erd
25769 \end_inset
25770
25771 value
25772 \begin_inset Quotes erd
25773 \end_inset
25774
25775 >
25776 \end_layout
25777
25778 \begin_layout LyX-Code
25779
25780 \family sans
25781 <itemtag attr=
25782 \begin_inset Quotes erd
25783 \end_inset
25784
25785 value
25786 \begin_inset Quotes erd
25787 \end_inset
25788
25789 ><labeltag attr=
25790 \begin_inset Quotes erd
25791 \end_inset
25792
25793 value
25794 \begin_inset Quotes erd
25795 \end_inset
25796
25797 >Environment Label</labeltag>First paragraph.</itemtag>
25798 \end_layout
25799
25800 \begin_layout LyX-Code
25801
25802 \family sans
25803 <itemtag>Second paragraph.</itemtag>
25804 \end_layout
25805
25806 \begin_layout LyX-Code
25807
25808 \family sans
25809 </tag>
25810 \end_layout
25811
25812 \begin_layout Standard
25813 Note that the label is output only for the first paragraph, as it should
25814  be for a theorem, for example.
25815  
25816 \end_layout
25817
25818 \begin_layout Standard
25819 For a list, we have one of these forms:
25820 \end_layout
25821
25822 \begin_layout LyX-Code
25823
25824 \family sans
25825 <tag attr=
25826 \begin_inset Quotes erd
25827 \end_inset
25828
25829 value
25830 \begin_inset Quotes erd
25831 \end_inset
25832
25833 >
25834 \end_layout
25835
25836 \begin_layout LyX-Code
25837
25838 \family sans
25839 <itemtag attr=
25840 \begin_inset Quotes erd
25841 \end_inset
25842
25843 value
25844 \begin_inset Quotes erd
25845 \end_inset
25846
25847 ><labeltag attr=
25848 \begin_inset Quotes erd
25849 \end_inset
25850
25851 value
25852 \begin_inset Quotes erd
25853 \end_inset
25854
25855 >List Label</labeltag>First item.</itemtag>
25856 \end_layout
25857
25858 \begin_layout LyX-Code
25859
25860 \family sans
25861 <itemtag attr=
25862 \begin_inset Quotes erd
25863 \end_inset
25864
25865 value
25866 \begin_inset Quotes erd
25867 \end_inset
25868
25869 ><labeltag attr=
25870 \begin_inset Quotes erd
25871 \end_inset
25872
25873 value
25874 \begin_inset Quotes erd
25875 \end_inset
25876
25877 >List Label</labeltag>Second item.</itemtag>
25878 \end_layout
25879
25880 \begin_layout LyX-Code
25881
25882 \family sans
25883 </tag>
25884 \end_layout
25885
25886 \begin_layout LyX-Code
25887
25888 \end_layout
25889
25890 \begin_layout LyX-Code
25891
25892 \family sans
25893 <tag attr=
25894 \begin_inset Quotes erd
25895 \end_inset
25896
25897 value
25898 \begin_inset Quotes erd
25899 \end_inset
25900
25901 >
25902 \end_layout
25903
25904 \begin_layout LyX-Code
25905
25906 \family sans
25907 <labeltag attr=
25908 \begin_inset Quotes erd
25909 \end_inset
25910
25911 value
25912 \begin_inset Quotes erd
25913 \end_inset
25914
25915 >List Label</labeltag><itemtag attr=
25916 \begin_inset Quotes erd
25917 \end_inset
25918
25919 value
25920 \begin_inset Quotes erd
25921 \end_inset
25922
25923 >First item.</itemtag>
25924 \end_layout
25925
25926 \begin_layout LyX-Code
25927
25928 \family sans
25929 <labeltag attr=
25930 \begin_inset Quotes erd
25931 \end_inset
25932
25933 value
25934 \begin_inset Quotes erd
25935 \end_inset
25936
25937 >List Label</labeltag><itemtag attr=
25938 \begin_inset Quotes erd
25939 \end_inset
25940
25941 value
25942 \begin_inset Quotes erd
25943 \end_inset
25944
25945 >Second item.</itemtag>
25946 \end_layout
25947
25948 \begin_layout LyX-Code
25949
25950 \family sans
25951 </tag>
25952 \end_layout
25953
25954 \begin_layout Standard
25955 Note the different orders of 
25956 \begin_inset Flex Code
25957 status collapsed
25958
25959 \begin_layout Plain Layout
25960 labeltag
25961 \end_layout
25962
25963 \end_inset
25964
25965  and 
25966 \begin_inset Flex Code
25967 status collapsed
25968
25969 \begin_layout Plain Layout
25970 itemtag
25971 \end_layout
25972
25973 \end_inset
25974
25975 .
25976  Which order we get depends upon the setting of 
25977 \begin_inset Flex Code
25978 status collapsed
25979
25980 \begin_layout Plain Layout
25981 HTMLLabelFirst
25982 \end_layout
25983
25984 \end_inset
25985
25986 : If 
25987 \begin_inset Flex Code
25988 status collapsed
25989
25990 \begin_layout Plain Layout
25991 HTMLLabelFirst
25992 \end_layout
25993
25994 \end_inset
25995
25996  is false (the default), you get the first of these, with the label within
25997  the item; if true, you get the second, with the label outside the item.
25998 \end_layout
25999
26000 \begin_layout Standard
26001 The specific tags and attributes output for each paragraph type can be controlle
26002 d by means of the layout tags we are about to describe.
26003  As mentioned earlier, however, \SpecialChar LyX
26004  uses sensible defaults for many of these,
26005  so you often may not need to do very much to get good XHTML output.
26006  Think of the available tags as there so you can tweak things to your liking.
26007 \end_layout
26008
26009 \begin_layout Description
26010 \begin_inset Flex Code
26011 status collapsed
26012
26013 \begin_layout Plain Layout
26014 HTMLAttr
26015 \end_layout
26016
26017 \end_inset
26018
26019  [
26020 \begin_inset Flex Code
26021 status collapsed
26022
26023 \begin_layout Plain Layout
26024 string
26025 \end_layout
26026
26027 \end_inset
26028
26029 ] Specifies attribute information to be output with the main tag.
26030  For example, 
26031 \begin_inset Quotes eld
26032 \end_inset
26033
26034
26035 \begin_inset Flex Code
26036 status collapsed
26037
26038 \begin_layout Plain Layout
26039 class=`mydiv'
26040 \end_layout
26041
26042 \end_inset
26043
26044
26045 \begin_inset Quotes erd
26046 \end_inset
26047
26048 .
26049  By default, \SpecialChar LyX
26050  will output 
26051 \begin_inset Quotes eld
26052 \end_inset
26053
26054
26055 \begin_inset Flex Code
26056 status collapsed
26057
26058 \begin_layout Plain Layout
26059 class=`layoutname'
26060 \end_layout
26061
26062 \end_inset
26063
26064
26065 \begin_inset Quotes erd
26066 \end_inset
26067
26068 , where 
26069 \begin_inset Flex Code
26070 status collapsed
26071
26072 \begin_layout Plain Layout
26073 layoutname
26074 \end_layout
26075
26076 \end_inset
26077
26078  is the \SpecialChar LyX
26079  name of the layout, made lowercase, for example: chapter.
26080  This should 
26081 \emph on
26082 not
26083 \emph default
26084  contain any style information.
26085  Use 
26086 \begin_inset Flex Code
26087 status collapsed
26088
26089 \begin_layout Plain Layout
26090 HTMLStyle
26091 \end_layout
26092
26093 \end_inset
26094
26095  for that purpose.
26096 \end_layout
26097
26098 \begin_layout Description
26099 \begin_inset Flex Code
26100 status collapsed
26101
26102 \begin_layout Plain Layout
26103 HTMLForceCSS
26104 \end_layout
26105
26106 \end_inset
26107
26108  [
26109 \begin_inset Flex Code
26110 status collapsed
26111
26112 \begin_layout Plain Layout
26113
26114 \emph on
26115 0
26116 \emph default
26117 ,1
26118 \end_layout
26119
26120 \end_inset
26121
26122 ] Whether to output the default CSS information \SpecialChar LyX
26123  generates for this layout,
26124  even if additional information is explicitly provided via 
26125 \begin_inset Flex Code
26126 status collapsed
26127
26128 \begin_layout Plain Layout
26129 HTMLStyle
26130 \end_layout
26131
26132 \end_inset
26133
26134 .
26135  Setting this to 
26136 \begin_inset Flex Code
26137 status collapsed
26138
26139 \begin_layout Plain Layout
26140 1
26141 \end_layout
26142
26143 \end_inset
26144
26145  allows you to alter or augment the generated CSS, rather than to override
26146  it completely.
26147  Default is 
26148 \begin_inset Flex Code
26149 status collapsed
26150
26151 \begin_layout Plain Layout
26152 0
26153 \end_layout
26154
26155 \end_inset
26156
26157 .
26158 \end_layout
26159
26160 \begin_layout Description
26161 \begin_inset Flex Code
26162 status collapsed
26163
26164 \begin_layout Plain Layout
26165 HTMLItem
26166 \end_layout
26167
26168 \end_inset
26169
26170  [
26171 \begin_inset Flex Code
26172 status collapsed
26173
26174 \begin_layout Plain Layout
26175 string
26176 \end_layout
26177
26178 \end_inset
26179
26180 ] The tag to be used for individual paragraphs of environments, replacing
26181  
26182 \begin_inset Flex Code
26183 status collapsed
26184
26185 \begin_layout Plain Layout
26186 itemtag
26187 \end_layout
26188
26189 \end_inset
26190
26191  in the examples above.
26192  Defaults to 
26193 \begin_inset Flex Code
26194 status collapsed
26195
26196 \begin_layout Plain Layout
26197 div
26198 \end_layout
26199
26200 \end_inset
26201
26202 .
26203 \end_layout
26204
26205 \begin_layout Description
26206 \begin_inset Flex Code
26207 status collapsed
26208
26209 \begin_layout Plain Layout
26210 HTMLItemAttr
26211 \end_layout
26212
26213 \end_inset
26214
26215  [
26216 \begin_inset Flex Code
26217 status collapsed
26218
26219 \begin_layout Plain Layout
26220 string
26221 \end_layout
26222
26223 \end_inset
26224
26225 ] Attributes for the item tag.
26226  Defaults to
26227 \begin_inset Newline newline
26228 \end_inset
26229
26230
26231 \begin_inset Quotes eld
26232 \end_inset
26233
26234
26235 \begin_inset Flex Code
26236 status collapsed
26237
26238 \begin_layout Plain Layout
26239 class=`layoutname_item'
26240 \end_layout
26241
26242 \end_inset
26243
26244
26245 \begin_inset Quotes erd
26246 \end_inset
26247
26248 .
26249  This should 
26250 \emph on
26251 not
26252 \emph default
26253  contain any style information.
26254  Use 
26255 \begin_inset Flex Code
26256 status collapsed
26257
26258 \begin_layout Plain Layout
26259 HTMLStyle
26260 \end_layout
26261
26262 \end_inset
26263
26264  for that purpose.
26265 \end_layout
26266
26267 \begin_layout Description
26268 \begin_inset Flex Code
26269 status collapsed
26270
26271 \begin_layout Plain Layout
26272 HTMLLabel
26273 \end_layout
26274
26275 \end_inset
26276
26277  [
26278 \begin_inset Flex Code
26279 status collapsed
26280
26281 \begin_layout Plain Layout
26282 string
26283 \end_layout
26284
26285 \end_inset
26286
26287 ] The tag to be used for paragraph and item labels, replacing 
26288 \begin_inset Flex Code
26289 status collapsed
26290
26291 \begin_layout Plain Layout
26292 labeltag
26293 \end_layout
26294
26295 \end_inset
26296
26297  in the examples above.
26298  Defaults to 
26299 \begin_inset Flex Code
26300 status collapsed
26301
26302 \begin_layout Plain Layout
26303 span
26304 \end_layout
26305
26306 \end_inset
26307
26308 , unless 
26309 \begin_inset Flex Code
26310 status collapsed
26311
26312 \begin_layout Plain Layout
26313 LabelType
26314 \end_layout
26315
26316 \end_inset
26317
26318  is either 
26319 \begin_inset Flex Code
26320 status collapsed
26321
26322 \begin_layout Plain Layout
26323 Top_Environment
26324 \end_layout
26325
26326 \end_inset
26327
26328  or 
26329 \begin_inset Flex Code
26330 status collapsed
26331
26332 \begin_layout Plain Layout
26333 Centered_Top_Environment
26334 \end_layout
26335
26336 \end_inset
26337
26338 , in which case it defaults to 
26339 \begin_inset Flex Code
26340 status collapsed
26341
26342 \begin_layout Plain Layout
26343 div
26344 \end_layout
26345
26346 \end_inset
26347
26348 .
26349 \end_layout
26350
26351 \begin_layout Description
26352 \begin_inset Flex Code
26353 status collapsed
26354
26355 \begin_layout Plain Layout
26356 HTMLLabelAttr
26357 \end_layout
26358
26359 \end_inset
26360
26361  [
26362 \begin_inset Flex Code
26363 status collapsed
26364
26365 \begin_layout Plain Layout
26366 string
26367 \end_layout
26368
26369 \end_inset
26370
26371 ] Attributes for the label tag.
26372  Defaults to
26373 \begin_inset Newline newline
26374 \end_inset
26375
26376
26377 \begin_inset Quotes eld
26378 \end_inset
26379
26380
26381 \begin_inset Flex Code
26382 status collapsed
26383
26384 \begin_layout Plain Layout
26385 class=`layoutname_label'
26386 \end_layout
26387
26388 \end_inset
26389
26390
26391 \begin_inset Quotes erd
26392 \end_inset
26393
26394 .
26395  This should 
26396 \emph on
26397 not
26398 \emph default
26399  contain any style information.
26400  Use 
26401 \begin_inset Flex Code
26402 status collapsed
26403
26404 \begin_layout Plain Layout
26405 HTMLStyle
26406 \end_layout
26407
26408 \end_inset
26409
26410  for that purpose.
26411 \end_layout
26412
26413 \begin_layout Description
26414 \begin_inset Flex Code
26415 status collapsed
26416
26417 \begin_layout Plain Layout
26418 HTMLLabelFirst
26419 \end_layout
26420
26421 \end_inset
26422
26423  [
26424 \begin_inset Flex Code
26425 status collapsed
26426
26427 \begin_layout Plain Layout
26428
26429 \emph on
26430 0
26431 \emph default
26432 ,1
26433 \end_layout
26434
26435 \end_inset
26436
26437 ] Meaningful only for list-like environments, this tag controls whether
26438  the label tag is output before or inside the item tag.
26439  This is used, for example, in the description environment, where we want
26440  `
26441 \begin_inset Flex Code
26442 status collapsed
26443
26444 \begin_layout Plain Layout
26445 <dt>\SpecialChar ldots
26446 </dt><dd>\SpecialChar ldots
26447 </dd>
26448 \end_layout
26449
26450 \end_inset
26451
26452 .
26453  Default is 
26454 \begin_inset Flex Code
26455 status collapsed
26456
26457 \begin_layout Plain Layout
26458 0
26459 \end_layout
26460
26461 \end_inset
26462
26463 : The label tag is output inside the item tag.
26464 \end_layout
26465
26466 \begin_layout Description
26467 \begin_inset Flex Code
26468 status collapsed
26469
26470 \begin_layout Plain Layout
26471 HTMLPreamble
26472 \end_layout
26473
26474 \end_inset
26475
26476  Information to be output in the 
26477 \begin_inset Flex Code
26478 status collapsed
26479
26480 \begin_layout Plain Layout
26481 <head>
26482 \end_layout
26483
26484 \end_inset
26485
26486  section when this style is used.
26487  This might, for example, be used to include a 
26488 \begin_inset Flex Code
26489 status collapsed
26490
26491 \begin_layout Plain Layout
26492 <script>
26493 \end_layout
26494
26495 \end_inset
26496
26497  block defining an 
26498 \begin_inset Flex Code
26499 status collapsed
26500
26501 \begin_layout Plain Layout
26502 onclick
26503 \end_layout
26504
26505 \end_inset
26506
26507  handler.
26508 \end_layout
26509
26510 \begin_layout Description
26511 \begin_inset Flex Code
26512 status collapsed
26513
26514 \begin_layout Plain Layout
26515 HTMLStyle
26516 \end_layout
26517
26518 \end_inset
26519
26520  CSS style information to be included when this style is used.
26521  Note that this will automatically be wrapped in a layout-generated 
26522 \begin_inset Flex Code
26523 status collapsed
26524
26525 \begin_layout Plain Layout
26526 <style>
26527 \end_layout
26528
26529 \end_inset
26530
26531  block, so only the CSS itself need be included.
26532  Must end with 
26533 \begin_inset Flex Code
26534 status collapsed
26535
26536 \begin_layout Plain Layout
26537 EndHTMLStyle
26538 \end_layout
26539
26540 \end_inset
26541
26542 .
26543 \end_layout
26544
26545 \begin_layout Description
26546 \begin_inset Flex Code
26547 status collapsed
26548
26549 \begin_layout Plain Layout
26550 HTMLTag
26551 \end_layout
26552
26553 \end_inset
26554
26555  [
26556 \begin_inset Flex Code
26557 status collapsed
26558
26559 \begin_layout Plain Layout
26560 string
26561 \end_layout
26562
26563 \end_inset
26564
26565 ] The tag to be used for the main label, replacing 
26566 \begin_inset Flex Code
26567 status collapsed
26568
26569 \begin_layout Plain Layout
26570 tag
26571 \end_layout
26572
26573 \end_inset
26574
26575  in the examples above.
26576  Defaults to 
26577 \begin_inset Flex Code
26578 status collapsed
26579
26580 \begin_layout Plain Layout
26581 div
26582 \end_layout
26583
26584 \end_inset
26585
26586 .
26587 \end_layout
26588
26589 \begin_layout Description
26590 \begin_inset Flex Code
26591 status collapsed
26592
26593 \begin_layout Plain Layout
26594 HTMLTitle
26595 \end_layout
26596
26597 \end_inset
26598
26599  [
26600 \begin_inset Flex Code
26601 status collapsed
26602
26603 \begin_layout Plain Layout
26604
26605 \emph on
26606 0
26607 \emph default
26608 ,1
26609 \end_layout
26610
26611 \end_inset
26612
26613 ] Marks this style as the one to be used to generate the 
26614 \begin_inset Flex Code
26615 status collapsed
26616
26617 \begin_layout Plain Layout
26618 <title>
26619 \end_layout
26620
26621 \end_inset
26622
26623  tag for the XHTML file.
26624  By default, it is false.
26625  The 
26626 \begin_inset Flex Code
26627 status collapsed
26628
26629 \begin_layout Plain Layout
26630 stdtitle.inc
26631 \end_layout
26632
26633 \end_inset
26634
26635  file sets it to true for the 
26636 \begin_inset Flex Code
26637 status collapsed
26638
26639 \begin_layout Plain Layout
26640 title
26641 \end_layout
26642
26643 \end_inset
26644
26645  environment.
26646  
26647 \end_layout
26648
26649 \begin_layout Subsection
26650 InsetLayout XHTML
26651 \end_layout
26652
26653 \begin_layout Standard
26654 The XHTML output of insets can also be controlled by information in layout
26655  files.
26656 \begin_inset Foot
26657 status collapsed
26658
26659 \begin_layout Plain Layout
26660 At present, this is true only for 
26661 \begin_inset Quotes eld
26662 \end_inset
26663
26664 text
26665 \begin_inset Quotes erd
26666 \end_inset
26667
26668  insets (insets you can type into) and is not true for 
26669 \begin_inset Quotes eld
26670 \end_inset
26671
26672 command
26673 \begin_inset Quotes erd
26674 \end_inset
26675
26676  insets (insets that are associated with dialog boxes).
26677 \end_layout
26678
26679 \end_inset
26680
26681  Here, too, \SpecialChar LyX
26682  tries to provide sensible defaults, and it constructs default
26683  CSS style rules.
26684  But everything can be customized.
26685 \end_layout
26686
26687 \begin_layout Standard
26688 The XHTML \SpecialChar LyX
26689  outputs for an inset has the following form:
26690 \end_layout
26691
26692 \begin_layout LyX-Code
26693 <tag attr=
26694 \begin_inset Quotes erd
26695 \end_inset
26696
26697 value
26698 \begin_inset Quotes erd
26699 \end_inset
26700
26701 >
26702 \end_layout
26703
26704 \begin_layout LyX-Code
26705 <labeltag>Label</labeltag>
26706 \end_layout
26707
26708 \begin_layout LyX-Code
26709 <innertag attr=
26710 \begin_inset Quotes erd
26711 \end_inset
26712
26713 value
26714 \begin_inset Quotes erd
26715 \end_inset
26716
26717 >Contents of the inset.</innertag>
26718 \end_layout
26719
26720 \begin_layout LyX-Code
26721 </tag>
26722 \end_layout
26723
26724 \begin_layout Standard
26725 If the inset permits multiple paragraphs—that is, if 
26726 \begin_inset Flex Code
26727 status collapsed
26728
26729 \begin_layout Plain Layout
26730 MultiPar
26731 \end_layout
26732
26733 \end_inset
26734
26735  is true—then the contents of the inset will itself be output as paragraphs
26736  formatted according to the styles used for those paragraphs (standard,
26737  quote, and the like).
26738  The label tag is of course omitted if the paragraph does not have a label
26739  and, at present, is always 
26740 \begin_inset Flex Code
26741 status collapsed
26742
26743 \begin_layout Plain Layout
26744 span
26745 \end_layout
26746
26747 \end_inset
26748
26749 .
26750  The inner tag is optional and, by default, does not appear.
26751 \end_layout
26752
26753 \begin_layout Standard
26754 The specific tags and attributes output for each inset can be controlled
26755  by means of the following layout tags.
26756 \end_layout
26757
26758 \begin_layout Description
26759 \begin_inset Flex Code
26760 status collapsed
26761
26762 \begin_layout Plain Layout
26763 HTMLAttr
26764 \end_layout
26765
26766 \end_inset
26767
26768  [
26769 \begin_inset Flex Code
26770 status collapsed
26771
26772 \begin_layout Plain Layout
26773 string
26774 \end_layout
26775
26776 \end_inset
26777
26778 ] Specifies attribute information to be output with the main tag.
26779  For example, 
26780 \begin_inset Quotes eld
26781 \end_inset
26782
26783
26784 \begin_inset Flex Code
26785 status collapsed
26786
26787 \begin_layout Plain Layout
26788 class=`myinset' onclick=`\SpecialChar ldots
26789 '
26790 \end_layout
26791
26792 \end_inset
26793
26794
26795 \begin_inset Quotes erd
26796 \end_inset
26797
26798 .
26799  By default, \SpecialChar LyX
26800  will output 
26801 \begin_inset Quotes eld
26802 \end_inset
26803
26804
26805 \begin_inset Flex Code
26806 status collapsed
26807
26808 \begin_layout Plain Layout
26809 class=`insetname'
26810 \end_layout
26811
26812 \end_inset
26813
26814
26815 \begin_inset Quotes erd
26816 \end_inset
26817
26818 , where 
26819 \begin_inset Flex Code
26820 status collapsed
26821
26822 \begin_layout Plain Layout
26823 insetname
26824 \end_layout
26825
26826 \end_inset
26827
26828  is the \SpecialChar LyX
26829  name of the inset, made lowercase and with non-alphanumeric characters
26830  converted to underscores, for example: footnote.
26831 \end_layout
26832
26833 \begin_layout Description
26834 \begin_inset Flex Code
26835 status collapsed
26836
26837 \begin_layout Plain Layout
26838 HTMLForceCSS
26839 \end_layout
26840
26841 \end_inset
26842
26843  [
26844 \begin_inset Flex Code
26845 status collapsed
26846
26847 \begin_layout Plain Layout
26848
26849 \emph on
26850 0
26851 \emph default
26852 ,1
26853 \end_layout
26854
26855 \end_inset
26856
26857 ] Whether to output the default CSS information \SpecialChar LyX
26858  generates for this layout,
26859  even if additional information is explicitly provided via 
26860 \begin_inset Flex Code
26861 status collapsed
26862
26863 \begin_layout Plain Layout
26864 HTMLStyle
26865 \end_layout
26866
26867 \end_inset
26868
26869 .
26870  Setting this to 
26871 \begin_inset Flex Code
26872 status collapsed
26873
26874 \begin_layout Plain Layout
26875 1
26876 \end_layout
26877
26878 \end_inset
26879
26880  allows you to alter or augment the generated CSS, rather than to override
26881  it completely.
26882  Default is 0.
26883 \end_layout
26884
26885 \begin_layout Description
26886 \begin_inset Flex Code
26887 status collapsed
26888
26889 \begin_layout Plain Layout
26890 HTMLInnerAttr
26891 \end_layout
26892
26893 \end_inset
26894
26895  [
26896 \begin_inset Flex Code
26897 status collapsed
26898
26899 \begin_layout Plain Layout
26900 string
26901 \end_layout
26902
26903 \end_inset
26904
26905 ] Attributes for the inner tag.
26906  Defaults to
26907 \begin_inset Newline newline
26908 \end_inset
26909
26910
26911 \begin_inset Quotes eld
26912 \end_inset
26913
26914
26915 \begin_inset Flex Code
26916 status collapsed
26917
26918 \begin_layout Plain Layout
26919 class=`insetname_inner'
26920 \end_layout
26921
26922 \end_inset
26923
26924
26925 \begin_inset Quotes erd
26926 \end_inset
26927
26928 .
26929 \end_layout
26930
26931 \begin_layout Description
26932 \begin_inset Flex Code
26933 status collapsed
26934
26935 \begin_layout Plain Layout
26936 HTMLInnerTag
26937 \end_layout
26938
26939 \end_inset
26940
26941  [
26942 \begin_inset Flex Code
26943 status collapsed
26944
26945 \begin_layout Plain Layout
26946 string
26947 \end_layout
26948
26949 \end_inset
26950
26951 ] The inner tag, replacing 
26952 \begin_inset Flex Code
26953 status collapsed
26954
26955 \begin_layout Plain Layout
26956 innertag
26957 \end_layout
26958
26959 \end_inset
26960
26961  in the examples above.
26962  By default, there is none.
26963 \end_layout
26964
26965 \begin_layout Description
26966 \begin_inset Flex Code
26967 status collapsed
26968
26969 \begin_layout Plain Layout
26970 HTMLIsBlock
26971 \end_layout
26972
26973 \end_inset
26974
26975  [
26976 \begin_inset Flex Code
26977 status collapsed
26978
26979 \begin_layout Plain Layout
26980 0,
26981 \emph on
26982 1
26983 \end_layout
26984
26985 \end_inset
26986
26987 ] Whether this inset represents a standalone block of text (such as a footnote)
26988  or instead represents material that is included in the surrounding text
26989  (such as a branch).
26990  Defaults to 1.
26991 \end_layout
26992
26993 \begin_layout Description
26994 \begin_inset Flex Code
26995 status collapsed
26996
26997 \begin_layout Plain Layout
26998 HTMLLabel
26999 \end_layout
27000
27001 \end_inset
27002
27003  [
27004 \begin_inset Flex Code
27005 status collapsed
27006
27007 \begin_layout Plain Layout
27008 string
27009 \end_layout
27010
27011 \end_inset
27012
27013 ] A label for this inset, possibly including a reference to a counter.
27014  For example, for footnote, it might be: 
27015 \begin_inset Flex Code
27016 status collapsed
27017
27018 \begin_layout Plain Layout
27019
27020 \backslash
27021 arabic{footnote}
27022 \end_layout
27023
27024 \end_inset
27025
27026 .
27027  This is optional, and there is no default.
27028 \end_layout
27029
27030 \begin_layout Description
27031 \begin_inset Flex Code
27032 status collapsed
27033
27034 \begin_layout Plain Layout
27035 HTMLPreamble
27036 \end_layout
27037
27038 \end_inset
27039
27040  Information to be output in the 
27041 \begin_inset Flex Code
27042 status collapsed
27043
27044 \begin_layout Plain Layout
27045 <head>
27046 \end_layout
27047
27048 \end_inset
27049
27050  section when this style is used.
27051  This might, for example, be used to include a 
27052 \begin_inset Flex Code
27053 status collapsed
27054
27055 \begin_layout Plain Layout
27056 <script>
27057 \end_layout
27058
27059 \end_inset
27060
27061  block defining an 
27062 \begin_inset Flex Code
27063 status collapsed
27064
27065 \begin_layout Plain Layout
27066 onclick
27067 \end_layout
27068
27069 \end_inset
27070
27071  handler.
27072 \end_layout
27073
27074 \begin_layout Description
27075 \begin_inset Flex Code
27076 status collapsed
27077
27078 \begin_layout Plain Layout
27079 HTMLStyle
27080 \end_layout
27081
27082 \end_inset
27083
27084  CSS style information to be included when this style is used.
27085  Note that this will automatically be wrapped in a layout-generated 
27086 \begin_inset Flex Code
27087 status collapsed
27088
27089 \begin_layout Plain Layout
27090 <style>
27091 \end_layout
27092
27093 \end_inset
27094
27095  block, so only the CSS itself need be included.
27096 \end_layout
27097
27098 \begin_layout Description
27099 \begin_inset Flex Code
27100 status collapsed
27101
27102 \begin_layout Plain Layout
27103 HTMLTag
27104 \end_layout
27105
27106 \end_inset
27107
27108  [
27109 \begin_inset Flex Code
27110 status collapsed
27111
27112 \begin_layout Plain Layout
27113 string
27114 \end_layout
27115
27116 \end_inset
27117
27118 ] The tag to be used for the main label, replacing 
27119 \begin_inset Flex Code
27120 status collapsed
27121
27122 \begin_layout Plain Layout
27123 tag
27124 \end_layout
27125
27126 \end_inset
27127
27128  in the examples above.
27129  The default depends upon the setting of 
27130 \begin_inset Flex Code
27131 status collapsed
27132
27133 \begin_layout Plain Layout
27134 MultiPar
27135 \end_layout
27136
27137 \end_inset
27138
27139 : If 
27140 \begin_inset Flex Code
27141 status collapsed
27142
27143 \begin_layout Plain Layout
27144 MultiPar
27145 \end_layout
27146
27147 \end_inset
27148
27149  is true, the default is 
27150 \begin_inset Flex Code
27151 status collapsed
27152
27153 \begin_layout Plain Layout
27154 div
27155 \end_layout
27156
27157 \end_inset
27158
27159 ; if it is false, the default is 
27160 \begin_inset Flex Code
27161 status collapsed
27162
27163 \begin_layout Plain Layout
27164 span
27165 \end_layout
27166
27167 \end_inset
27168
27169 .
27170 \end_layout
27171
27172 \begin_layout Subsection
27173 Float XHTML
27174 \end_layout
27175
27176 \begin_layout Standard
27177 The XHTML output for floats too can be controlled by layout information.
27178  The output has the following form:
27179 \end_layout
27180
27181 \begin_layout LyX-Code
27182 <tag attr=
27183 \begin_inset Quotes erd
27184 \end_inset
27185
27186 value
27187 \begin_inset Quotes erd
27188 \end_inset
27189
27190 >
27191 \end_layout
27192
27193 \begin_layout LyX-Code
27194 Contents of the float.
27195 \end_layout
27196
27197 \begin_layout LyX-Code
27198 </tag>
27199 \end_layout
27200
27201 \begin_layout Standard
27202 The caption, if there is one, is a separate inset and will be output as
27203  such.
27204  Its appearance can be controlled via the InsetLayout for caption insets.
27205  
27206 \end_layout
27207
27208 \begin_layout Description
27209 \begin_inset Flex Code
27210 status collapsed
27211
27212 \begin_layout Plain Layout
27213 HTMLAttr
27214 \end_layout
27215
27216 \end_inset
27217
27218  [
27219 \begin_inset Flex Code
27220 status collapsed
27221
27222 \begin_layout Plain Layout
27223 string
27224 \end_layout
27225
27226 \end_inset
27227
27228 ] Specifies attribute information to be output with the main tag.
27229  For example, 
27230 \begin_inset Quotes eld
27231 \end_inset
27232
27233
27234 \begin_inset Flex Code
27235 status collapsed
27236
27237 \begin_layout Plain Layout
27238 class=`myfloat' onclick=`\SpecialChar ldots
27239 '
27240 \end_layout
27241
27242 \end_inset
27243
27244
27245 \begin_inset Quotes erd
27246 \end_inset
27247
27248 .
27249  By default, \SpecialChar LyX
27250  will output 
27251 \begin_inset Quotes eld
27252 \end_inset
27253
27254
27255 \begin_inset Flex Code
27256 status collapsed
27257
27258 \begin_layout Plain Layout
27259 class=`float float-floattype'
27260 \end_layout
27261
27262 \end_inset
27263
27264
27265 \begin_inset Quotes erd
27266 \end_inset
27267
27268 , where 
27269 \begin_inset Flex Code
27270 status collapsed
27271
27272 \begin_layout Plain Layout
27273 floattype
27274 \end_layout
27275
27276 \end_inset
27277
27278  is \SpecialChar LyX
27279 's name for this type of float, as determined by the float declaration
27280  (see 
27281 \begin_inset CommandInset ref
27282 LatexCommand ref
27283 reference "subsec:Floats"
27284
27285 \end_inset
27286
27287 ), though made lowercase and with non-alphanumeric characters converted
27288  to underscores, for example: float-table.
27289 \end_layout
27290
27291 \begin_layout Description
27292 \begin_inset Flex Code
27293 status collapsed
27294
27295 \begin_layout Plain Layout
27296 HTMLStyle
27297 \end_layout
27298
27299 \end_inset
27300
27301  CSS style information to be included when this float is used.
27302  Note that this will automatically be wrapped in a layout-generated 
27303 \begin_inset Flex Code
27304 status collapsed
27305
27306 \begin_layout Plain Layout
27307 <style>
27308 \end_layout
27309
27310 \end_inset
27311
27312  block, so only the CSS itself need be included.
27313 \end_layout
27314
27315 \begin_layout Description
27316 \begin_inset Flex Code
27317 status collapsed
27318
27319 \begin_layout Plain Layout
27320 HTMLTag
27321 \end_layout
27322
27323 \end_inset
27324
27325  [
27326 \begin_inset Flex Code
27327 status collapsed
27328
27329 \begin_layout Plain Layout
27330 string
27331 \end_layout
27332
27333 \end_inset
27334
27335 ] The tag to be used for this float, replacing 
27336 \begin_inset Quotes eld
27337 \end_inset
27338
27339
27340 \begin_inset Flex Code
27341 status collapsed
27342
27343 \begin_layout Plain Layout
27344 tag
27345 \end_layout
27346
27347 \end_inset
27348
27349
27350 \begin_inset Quotes erd
27351 \end_inset
27352
27353  in the example above.
27354  The default is 
27355 \begin_inset Flex Code
27356 status collapsed
27357
27358 \begin_layout Plain Layout
27359 div
27360 \end_layout
27361
27362 \end_inset
27363
27364  and will rarely need changing.
27365 \end_layout
27366
27367 \begin_layout Subsection
27368 Bibliography formatting
27369 \end_layout
27370
27371 \begin_layout Standard
27372 The bibliography can be formatted using 
27373 \begin_inset Flex Code
27374 status collapsed
27375
27376 \begin_layout Plain Layout
27377 CiteFormat
27378 \end_layout
27379
27380 \end_inset
27381
27382  blocks.
27383  See 
27384 \begin_inset CommandInset ref
27385 LatexCommand ref
27386 reference "subsec:Citation-format-description"
27387
27388 \end_inset
27389
27390  for the details.
27391 \end_layout
27392
27393 \begin_layout Subsection
27394 \SpecialChar LyX
27395 -generated CSS
27396 \end_layout
27397
27398 \begin_layout Standard
27399 We have several times mentioned that \SpecialChar LyX
27400  will generate default CSS style rules
27401  for both insets and paragraph styles, based upon the other layout information
27402  that is provided.
27403  In this section, we shall say a word about which layout information \SpecialChar LyX
27404  uses
27405  and how.
27406 \end_layout
27407
27408 \begin_layout Standard
27409 At present, \SpecialChar LyX
27410  auto-generates CSS only for font information, making use of
27411  the 
27412 \begin_inset Flex Code
27413 status collapsed
27414
27415 \begin_layout Plain Layout
27416 Family
27417 \end_layout
27418
27419 \end_inset
27420
27421
27422 \begin_inset Flex Code
27423 status collapsed
27424
27425 \begin_layout Plain Layout
27426 Series
27427 \end_layout
27428
27429 \end_inset
27430
27431
27432 \begin_inset Flex Code
27433 status collapsed
27434
27435 \begin_layout Plain Layout
27436 Shape
27437 \end_layout
27438
27439 \end_inset
27440
27441 , and 
27442 \begin_inset Flex Code
27443 status collapsed
27444
27445 \begin_layout Plain Layout
27446 Size
27447 \end_layout
27448
27449 \end_inset
27450
27451  specified in the 
27452 \begin_inset Flex Code
27453 status collapsed
27454
27455 \begin_layout Plain Layout
27456 Font
27457 \end_layout
27458
27459 \end_inset
27460
27461  declaration (see 
27462 \begin_inset CommandInset ref
27463 LatexCommand ref
27464 reference "subsec:Font-description"
27465
27466 \end_inset
27467
27468 ).
27469  The translation is mostly straightforward and obvious.
27470  For example, 
27471 \begin_inset Quotes eld
27472 \end_inset
27473
27474
27475 \begin_inset Flex Code
27476 status collapsed
27477
27478 \begin_layout Plain Layout
27479 Family Sans
27480 \end_layout
27481
27482 \end_inset
27483
27484
27485 \begin_inset Quotes erd
27486 \end_inset
27487
27488  becomes 
27489 \begin_inset Quotes eld
27490 \end_inset
27491
27492
27493 \begin_inset Flex Code
27494 status collapsed
27495
27496 \begin_layout Plain Layout
27497 font-family: sans-serif;
27498 \end_layout
27499
27500 \end_inset
27501
27502
27503 \begin_inset Quotes erd
27504 \end_inset
27505
27506 .
27507  The correspondence of \SpecialChar LyX
27508  sizes and CSS sizes is a little less obvious but
27509  nonetheless intuitive.
27510  See the 
27511 \begin_inset Flex Code
27512 status collapsed
27513
27514 \begin_layout Plain Layout
27515 getSizeCSS()
27516 \end_layout
27517
27518 \end_inset
27519
27520  function in 
27521 \begin_inset Flex URL
27522 status collapsed
27523
27524 \begin_layout Plain Layout
27525
27526 src/FontInfo.cpp
27527 \end_layout
27528
27529 \end_inset
27530
27531  for the details.
27532 \change_inserted -970929547 1496610908
27533
27534 \end_layout
27535
27536 \begin_layout Section
27537
27538 \change_inserted -970929547 1496610966
27539 \begin_inset CommandInset label
27540 LatexCommand label
27541 name "sec:Tags-for-DocBook"
27542
27543 \end_inset
27544
27545 Tags for DocBook output
27546 \end_layout
27547
27548 \begin_layout Standard
27549
27550 \change_inserted -970929547 1496611615
27551 As with \SpecialChar LaTeX
27552  or XHTML, the format of \SpecialChar LyX
27553 's DocBook output is also controlled by
27554  layout information.
27555  In general, \SpecialChar LyX
27556  provides sensible defaults; however, much of the styling is
27557  lost during the conversion, as DocBook is strictly semantic and does not
27558  allow formatting.
27559  When possible, information from \SpecialChar LyX
27560  will be rendered in 
27561 \family typewriter
27562 role
27563 \family default
27564  attributes.
27565  
27566 \end_layout
27567
27568 \begin_layout Standard
27569
27570 \change_inserted -970929547 1496612080
27571 In many cases, then, you may not have to do anything at all to get acceptable
27572  DocBook output for your own environments, custom insets, and so forth.
27573  But in some cases you will, and so \SpecialChar LyX
27574  provides a number of layout tags that
27575  can be used to customize the DocBook that is generated.
27576 \end_layout
27577
27578 \begin_layout Standard
27579
27580 \change_inserted -970929547 1515109912
27581 Labels are rarely output, as they are redundant in DocBook: this information
27582  is carried by the tags themselves, and whether labels appear in the final
27583  documents (after processing of DocBook files) is controlled by the stylesheets.
27584  However, sometimes, labels are not redundant content, such as definition
27585  lists: in this case, the term being defined will be the label.
27586  
27587 \end_layout
27588
27589 \begin_layout Subsection
27590
27591 \change_inserted 1075283030 1597699417
27592 \begin_inset CommandInset label
27593 LatexCommand label
27594 name "subsec:Paragraph-Style-DocBook"
27595
27596 \end_inset
27597
27598
27599 \change_deleted 1075283030 1597699417
27600
27601 \begin_inset CommandInset label
27602 LatexCommand label
27603 name "subsec:Paragraph-Style-XHTML-1"
27604
27605 \end_inset
27606
27607
27608 \change_inserted -970929547 1496610966
27609 Paragraph styles
27610 \end_layout
27611
27612 \begin_layout Standard
27613
27614 \change_inserted -970929547 1496612059
27615 The sort of DocBook \SpecialChar LyX
27616  outputs for a paragraph depends upon whether we are
27617  dealing with a normal paragraph, a command, or an environment, where this
27618  is itself determined by the contents of the corresponding 
27619 \begin_inset Flex Code
27620 status collapsed
27621
27622 \begin_layout Plain Layout
27623
27624 \change_inserted -970929547 1496610966
27625 \SpecialChar LaTeX
27626 Type
27627 \change_unchanged
27628
27629 \end_layout
27630
27631 \end_inset
27632
27633  tag.
27634  
27635 \end_layout
27636
27637 \begin_layout Standard
27638
27639 \change_inserted -970929547 1496612107
27640 For a command or normal paragraph, the output DocBook has the following
27641  form:
27642 \end_layout
27643
27644 \begin_layout LyX-Code
27645
27646 \change_inserted -970929547 1515109666
27647 <tag attr>
27648 \end_layout
27649
27650 \begin_layout LyX-Code
27651
27652 \change_inserted -970929547 1496610966
27653 Contents of the paragraph.
27654 \end_layout
27655
27656 \begin_layout LyX-Code
27657
27658 \change_inserted -970929547 1496610966
27659 </tag>
27660 \end_layout
27661
27662 \begin_layout Standard
27663
27664 \change_inserted -970929547 1515109821
27665 For an environment that is not some sort of list, the generated DocBook
27666  takes this form:
27667 \end_layout
27668
27669 \begin_layout LyX-Code
27670
27671 \change_inserted -970929547 1515109671
27672 <tag attr>
27673 \end_layout
27674
27675 \begin_layout LyX-Code
27676
27677 \change_inserted -970929547 1496612114
27678 <itemtag>First paragraph.</itemtag>
27679 \end_layout
27680
27681 \begin_layout LyX-Code
27682
27683 \change_inserted -970929547 1496610966
27684 <itemtag>Second paragraph.</itemtag>
27685 \end_layout
27686
27687 \begin_layout LyX-Code
27688
27689 \change_inserted -970929547 1496610966
27690 </tag>
27691 \end_layout
27692
27693 \begin_layout Standard
27694
27695 \change_inserted -970929547 1515109825
27696 For a list, the resulting DocBook takes this form:
27697 \end_layout
27698
27699 \begin_layout LyX-Code
27700
27701 \change_inserted -970929547 1515109672
27702 <tag attr>
27703 \end_layout
27704
27705 \begin_layout LyX-Code
27706
27707 \change_inserted -970929547 1515109676
27708 <itemtag attr>First item.</itemtag>
27709 \end_layout
27710
27711 \begin_layout LyX-Code
27712
27713 \change_inserted -970929547 1515109678
27714 <itemtag attr>Second item.</itemtag>
27715 \end_layout
27716
27717 \begin_layout LyX-Code
27718
27719 \change_inserted -970929547 1496610966
27720 </tag>
27721 \end_layout
27722
27723 \begin_layout Standard
27724
27725 \change_inserted -970929547 1496612243
27726 The specific tags and roles output for each paragraph type can be controlled
27727  by means of the layout tags we are about to describe.
27728  Please note that, due to the very nature of DocBook, no sensible defaults
27729  really exist, and the values must always be carefully chosen.
27730  
27731 \end_layout
27732
27733 \begin_layout Description
27734
27735 \change_inserted -970929547 1515110057
27736 \begin_inset Flex Code
27737 status collapsed
27738
27739 \begin_layout Plain Layout
27740
27741 \change_inserted -970929547 1515109656
27742 DocBookAttr
27743 \change_unchanged
27744
27745 \end_layout
27746
27747 \end_inset
27748
27749  [
27750 \begin_inset Flex Code
27751 status collapsed
27752
27753 \begin_layout Plain Layout
27754
27755 \change_inserted -970929547 1496610966
27756 string
27757 \change_unchanged
27758
27759 \end_layout
27760
27761 \end_inset
27762
27763 ] Specifies attribute information to be output with the main tag, replacing
27764  
27765 \begin_inset Quotes eld
27766 \end_inset
27767
27768
27769 \begin_inset Flex Code
27770 status collapsed
27771
27772 \begin_layout Plain Layout
27773
27774 \change_inserted -970929547 1515110057
27775 attr
27776 \change_unchanged
27777
27778 \end_layout
27779
27780 \end_inset
27781
27782
27783 \begin_inset Quotes erd
27784 \end_inset
27785
27786  in the example above.
27787  This information can be used in further processing of the DocBook files.
27788  
27789 \change_unchanged
27790
27791 \end_layout
27792
27793 \begin_layout Description
27794
27795 \change_inserted -970929547 1496612296
27796 \begin_inset Flex Code
27797 status collapsed
27798
27799 \begin_layout Plain Layout
27800
27801 \change_inserted -970929547 1496612269
27802 DocBookTag
27803 \change_unchanged
27804
27805 \end_layout
27806
27807 \end_inset
27808
27809  [
27810 \begin_inset Flex Code
27811 status collapsed
27812
27813 \begin_layout Plain Layout
27814
27815 \change_inserted -970929547 1496610966
27816 string
27817 \change_unchanged
27818
27819 \end_layout
27820
27821 \end_inset
27822
27823 ] The tag to be used for this inset, replacing 
27824 \begin_inset Quotes eld
27825 \end_inset
27826
27827
27828 \begin_inset Flex Code
27829 status collapsed
27830
27831 \begin_layout Plain Layout
27832
27833 \change_inserted -970929547 1496612296
27834 tag
27835 \change_unchanged
27836
27837 \end_layout
27838
27839 \end_inset
27840
27841
27842 \begin_inset Quotes erd
27843 \end_inset
27844
27845  in the example above.
27846  The default is the name of the float and always needs to be changed, as
27847  DocBook provides no generic tag.
27848 \change_inserted 1075283030 1597698868
27849
27850 \end_layout
27851
27852 \begin_layout Description
27853
27854 \change_inserted 1075283030 1597699399
27855 \begin_inset Flex Code
27856 status collapsed
27857
27858 \begin_layout Plain Layout
27859
27860 \change_inserted 1075283030 1597698872
27861 DocBookTagType
27862 \change_unchanged
27863
27864 \end_layout
27865
27866 \end_inset
27867
27868  [
27869 \begin_inset Flex Code
27870 status collapsed
27871
27872 \begin_layout Plain Layout
27873
27874 \change_inserted 1075283030 1597700585
27875 block, paragraph, inline
27876 \change_unchanged
27877
27878 \end_layout
27879
27880 \end_inset
27881
27882 ] The new-line policy for this tag, see Section
27883 \begin_inset space ~
27884 \end_inset
27885
27886
27887 \begin_inset CommandInset ref
27888 LatexCommand ref
27889 reference "subsec:DocBook-New-line-policy"
27890 plural "false"
27891 caps "false"
27892 noprefix "false"
27893
27894 \end_inset
27895
27896  for the details.
27897  
27898 \change_unchanged
27899
27900 \end_layout
27901
27902 \begin_layout Subsection
27903
27904 \change_inserted 1075283030 1597699385
27905 New-line policy
27906 \begin_inset CommandInset label
27907 LatexCommand label
27908 name "subsec:DocBook-New-line-policy"
27909
27910 \end_inset
27911
27912
27913 \end_layout
27914
27915 \begin_layout Standard
27916
27917 \change_inserted 1075283030 1597698993
27918 For all tags, there are three possible policies for outputting new lines
27919  (given in the 
27920 \begin_inset Flex Code
27921 status collapsed
27922
27923 \begin_layout Plain Layout
27924
27925 \change_inserted 1075283030 1597698987
27926 DocBook*TagType
27927 \change_unchanged
27928
27929 \end_layout
27930
27931 \end_inset
27932
27933  attribute): 
27934 \end_layout
27935
27936 \begin_layout Itemize
27937
27938 \change_inserted 1075283030 1597699279
27939 \begin_inset Quotes eld
27940 \end_inset
27941
27942
27943 \begin_inset Flex Code
27944 status collapsed
27945
27946 \begin_layout Plain Layout
27947
27948 \change_inserted 1075283030 1597699012
27949 block
27950 \change_unchanged
27951
27952 \end_layout
27953
27954 \end_inset
27955
27956
27957 \begin_inset Quotes erd
27958 \end_inset
27959
27960 : the opening and closing tags are on their own lines (i.e.
27961  a line feed after and before the opening and the closing tags).
27962  Typical elements are floats.
27963  For instance: 
27964 \end_layout
27965
27966 \begin_layout LyX-Code
27967
27968 \change_inserted 1075283030 1597699194
27969 Content before
27970 \end_layout
27971
27972 \begin_layout LyX-Code
27973
27974 \change_inserted 1075283030 1597699194
27975 <blocktag>
27976 \end_layout
27977
27978 \begin_layout LyX-Code
27979
27980 \change_inserted 1075283030 1597699098
27981   Contents of the block.
27982 \end_layout
27983
27984 \begin_layout LyX-Code
27985
27986 \change_inserted 1075283030 1597699196
27987 </blocktag>
27988 \end_layout
27989
27990 \begin_layout LyX-Code
27991
27992 \change_inserted 1075283030 1597699198
27993 Content after
27994 \end_layout
27995
27996 \begin_layout Itemize
27997
27998 \change_inserted 1075283030 1597699289
27999 \begin_inset Quotes eld
28000 \end_inset
28001
28002
28003 \begin_inset Flex Code
28004 status collapsed
28005
28006 \begin_layout Plain Layout
28007
28008 \change_inserted 1075283030 1597699113
28009 paragraph
28010 \change_unchanged
28011
28012 \end_layout
28013
28014 \end_inset
28015
28016
28017 \begin_inset Quotes erd
28018 \end_inset
28019
28020 : the opening and closing tags are on the same, new line; a line feed is
28021  output before the opening tag and after the closing tag.
28022  Typical elements are paragraphs and list items.
28023  For instance: 
28024 \end_layout
28025
28026 \begin_layout LyX-Code
28027
28028 \change_inserted 1075283030 1597699186
28029 Content before
28030 \end_layout
28031
28032 \begin_layout LyX-Code
28033
28034 \change_inserted 1075283030 1597699357
28035 <paratag>Contents of the paragraph.</paratag>
28036 \end_layout
28037
28038 \begin_layout LyX-Code
28039
28040 \change_inserted 1075283030 1597699231
28041 Content after
28042 \end_layout
28043
28044 \begin_layout Itemize
28045
28046 \change_inserted 1075283030 1597699343
28047 \begin_inset Quotes eld
28048 \end_inset
28049
28050
28051 \begin_inset Flex Code
28052 status collapsed
28053
28054 \begin_layout Plain Layout
28055
28056 \change_inserted 1075283030 1597699307
28057 inline
28058 \change_unchanged
28059
28060 \end_layout
28061
28062 \end_inset
28063
28064
28065 \begin_inset Quotes erd
28066 \end_inset
28067
28068 : the opening and closing tags are on the same line as the rest of the content.
28069  No line feeds are output.
28070  Typical elements are fonts.
28071  For instance: 
28072 \end_layout
28073
28074 \begin_layout LyX-Code
28075
28076 \change_inserted 1075283030 1597699585
28077 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
28078 \end_layout
28079
28080 \begin_layout Standard
28081
28082 \change_inserted 1075283030 1597699585
28083 The default value is always 
28084 \begin_inset Quotes eld
28085 \end_inset
28086
28087
28088 \begin_inset Flex Code
28089 status collapsed
28090
28091 \begin_layout Plain Layout
28092
28093 \change_inserted 1075283030 1597699585
28094 block
28095 \change_unchanged
28096
28097 \end_layout
28098
28099 \end_inset
28100
28101
28102 \begin_inset Quotes erd
28103 \end_inset
28104
28105 .
28106 \change_unchanged
28107
28108 \end_layout
28109
28110 \begin_layout Subsection
28111
28112 \change_inserted -970929547 1515111533
28113 InsetLayout DocBook
28114 \change_unchanged
28115
28116 \end_layout
28117
28118 \begin_layout Standard
28119
28120 \change_inserted -970929547 1496611894
28121 The DocBook output of insets can also be controlled by information in layout
28122  files.
28123 \end_layout
28124
28125 \begin_layout Standard
28126
28127 \change_inserted -970929547 1496612045
28128 The DocBook \SpecialChar LyX
28129  outputs for an inset has the following form:
28130 \end_layout
28131
28132 \begin_layout LyX-Code
28133
28134 \change_inserted -970929547 1515110861
28135 <wrappertag wrapperattr>
28136 \end_layout
28137
28138 \begin_layout LyX-Code
28139
28140 \change_inserted -970929547 1515110868
28141   <tag attr>
28142 \end_layout
28143
28144 \begin_layout LyX-Code
28145
28146 \change_inserted -970929547 1515110869
28147     <innertag innerattr>
28148 \end_layout
28149
28150 \begin_layout LyX-Code
28151
28152 \change_inserted -970929547 1515110869
28153       Contents of the inset.
28154 \end_layout
28155
28156 \begin_layout LyX-Code
28157
28158 \change_inserted -970929547 1515110870
28159     </innertag>
28160 \end_layout
28161
28162 \begin_layout LyX-Code
28163
28164 \change_inserted -970929547 1515110871
28165   </tag>
28166 \end_layout
28167
28168 \begin_layout LyX-Code
28169
28170 \change_inserted -970929547 1515111172
28171 </wrappertag>
28172 \end_layout
28173
28174 \begin_layout Standard
28175
28176 \change_inserted -970929547 1515111186
28177 For an itemising inset, it rather looks like this: 
28178 \end_layout
28179
28180 \begin_layout LyX-Code
28181
28182 \change_inserted -970929547 1515111186
28183 <wrappertag wrapperattr>
28184 \end_layout
28185
28186 \begin_layout LyX-Code
28187
28188 \change_inserted -970929547 1515111186
28189   <tag attr>
28190 \end_layout
28191
28192 \begin_layout LyX-Code
28193
28194 \change_inserted -970929547 1515111186
28195     <innertag innerattr>
28196 \end_layout
28197
28198 \begin_layout LyX-Code
28199
28200 \change_inserted -970929547 1515111362
28201       <itemwrappertag itemwrapperattr>
28202 \end_layout
28203
28204 \begin_layout LyX-Code
28205
28206 \change_inserted -970929547 1515111364
28207         <itemlabeltag itemattr>
28208 \end_layout
28209
28210 \begin_layout LyX-Code
28211
28212 \change_inserted -970929547 1515111367
28213           Label of the first item.
28214 \end_layout
28215
28216 \begin_layout LyX-Code
28217
28218 \change_inserted -970929547 1515111362
28219         </itemtag>
28220 \change_unchanged
28221
28222 \end_layout
28223
28224 \begin_layout LyX-Code
28225
28226 \change_inserted -970929547 1515111517
28227         <itemtag itemattr>
28228 \end_layout
28229
28230 \begin_layout LyX-Code
28231
28232 \change_inserted -970929547 1515111517
28233           <itemtag itemattr>
28234 \change_unchanged
28235
28236 \end_layout
28237
28238 \begin_layout LyX-Code
28239
28240 \change_inserted -970929547 1515111516
28241             Contents of the first item.
28242 \end_layout
28243
28244 \begin_layout LyX-Code
28245
28246 \change_inserted -970929547 1515111514
28247           </itemtag>
28248 \change_unchanged
28249
28250 \end_layout
28251
28252 \begin_layout LyX-Code
28253
28254 \change_inserted -970929547 1515111247
28255         </itemtag>
28256 \change_unchanged
28257
28258 \end_layout
28259
28260 \begin_layout LyX-Code
28261
28262 \change_inserted -970929547 1515111221
28263       </itemwrappertag>
28264 \end_layout
28265
28266 \begin_layout LyX-Code
28267
28268 \change_inserted -970929547 1515111370
28269       <itemwrappertag itemwrapperattr>
28270 \end_layout
28271
28272 \begin_layout LyX-Code
28273
28274 \change_inserted -970929547 1515111370
28275         <itemlabeltag itemattr>
28276 \end_layout
28277
28278 \begin_layout LyX-Code
28279
28280 \change_inserted -970929547 1515111372
28281           Label of the second item.
28282 \end_layout
28283
28284 \begin_layout LyX-Code
28285
28286 \change_inserted -970929547 1515111370
28287         </itemtag>
28288 \change_unchanged
28289
28290 \end_layout
28291
28292 \begin_layout LyX-Code
28293
28294 \change_inserted -970929547 1515111504
28295         <itemtag itemattr>
28296 \end_layout
28297
28298 \begin_layout LyX-Code
28299
28300 \change_inserted -970929547 1515111505
28301           <itemtag itemattr>
28302 \change_unchanged
28303
28304 \end_layout
28305
28306 \begin_layout LyX-Code
28307
28308 \change_inserted -970929547 1515111507
28309             Contents of the second item.
28310 \end_layout
28311
28312 \begin_layout LyX-Code
28313
28314 \change_inserted -970929547 1515111509
28315           </itemtag>
28316 \change_unchanged
28317
28318 \end_layout
28319
28320 \begin_layout LyX-Code
28321
28322 \change_inserted -970929547 1515111251
28323         </itemtag>
28324 \change_unchanged
28325
28326 \end_layout
28327
28328 \begin_layout LyX-Code
28329
28330 \change_inserted -970929547 1515111221
28331       </itemwrappertag>
28332 \change_unchanged
28333
28334 \end_layout
28335
28336 \begin_layout LyX-Code
28337
28338 \change_inserted -970929547 1515111219
28339       ...
28340 \change_unchanged
28341
28342 \end_layout
28343
28344 \begin_layout LyX-Code
28345
28346 \change_inserted -970929547 1515111186
28347     </innertag>
28348 \end_layout
28349
28350 \begin_layout LyX-Code
28351
28352 \change_inserted -970929547 1515111186
28353   </tag>
28354 \end_layout
28355
28356 \begin_layout LyX-Code
28357
28358 \change_inserted -970929547 1515111186
28359 </wrappertag>
28360 \end_layout
28361
28362 \begin_layout Standard
28363
28364 \change_inserted -970929547 1515111183
28365 If the inset permits multiple paragraphs—that is, if 
28366 \begin_inset Flex Code
28367 status collapsed
28368
28369 \begin_layout Plain Layout
28370
28371 \change_inserted -970929547 1496610966
28372 MultiPar
28373 \change_unchanged
28374
28375 \end_layout
28376
28377 \end_inset
28378
28379  is true—then the contents of the inset will itself be output as paragraphs
28380  formatted according to the styles used for those paragraphs (standard,
28381  quote, and the like).
28382  The inner tag is optional and, by default, does not appear.
28383 \end_layout
28384
28385 \begin_layout Standard
28386
28387 \change_inserted -970929547 1496610966
28388 The specific tags and attributes output for each inset can be controlled
28389  by means of the following layout tags.
28390 \end_layout
28391
28392 \begin_layout Description
28393
28394 \change_inserted -970929547 1515110317
28395 \begin_inset Flex Code
28396 status collapsed
28397
28398 \begin_layout Plain Layout
28399
28400 \change_inserted -970929547 1515109695
28401 DocBookAttr
28402 \change_unchanged
28403
28404 \end_layout
28405
28406 \end_inset
28407
28408  [
28409 \begin_inset Flex Code
28410 status collapsed
28411
28412 \begin_layout Plain Layout
28413
28414 \change_inserted -970929547 1496611854
28415 string
28416 \change_unchanged
28417
28418 \end_layout
28419
28420 \end_inset
28421
28422 ] Specifies attribute information to be output with the main tag, replacing
28423  
28424 \begin_inset Quotes eld
28425 \end_inset
28426
28427
28428 \begin_inset Flex Code
28429 status collapsed
28430
28431 \begin_layout Plain Layout
28432
28433 \change_inserted -970929547 1515110044
28434 attr
28435 \change_unchanged
28436
28437 \end_layout
28438
28439 \end_inset
28440
28441
28442 \begin_inset Quotes erd
28443 \end_inset
28444
28445  in the example above.
28446  This information can be used in further processing of the DocBook files.
28447  
28448 \end_layout
28449
28450 \begin_layout Description
28451
28452 \change_inserted -970929547 1515110973
28453 \begin_inset Flex Code
28454 status collapsed
28455
28456 \begin_layout Plain Layout
28457
28458 \change_inserted -970929547 1515110319
28459 DocBookInInfo
28460 \change_unchanged
28461
28462 \end_layout
28463
28464 \end_inset
28465
28466  [
28467 \begin_inset Flex Code
28468 status collapsed
28469
28470 \begin_layout Plain Layout
28471
28472 \change_inserted -970929547 1515110384
28473 never, always, maybe
28474 \change_unchanged
28475
28476 \end_layout
28477
28478 \end_inset
28479
28480 ] Specifies whether this tag goes into the 
28481 \begin_inset Flex Code
28482 status collapsed
28483
28484 \begin_layout Plain Layout
28485
28486 \change_inserted -970929547 1515110412
28487 <info>
28488 \change_unchanged
28489
28490 \end_layout
28491
28492 \end_inset
28493
28494  tag at the beginning of the parent layout.
28495  
28496 \begin_inset Flex Code
28497 status collapsed
28498
28499 \begin_layout Plain Layout
28500
28501 \change_inserted -970929547 1515110437
28502 never
28503 \change_unchanged
28504
28505 \end_layout
28506
28507 \end_inset
28508
28509  indicates that the tag never goes into 
28510 \begin_inset Flex Code
28511 status collapsed
28512
28513 \begin_layout Plain Layout
28514
28515 \change_inserted -970929547 1515110497
28516 <info>
28517 \change_unchanged
28518
28519 \end_layout
28520
28521 \end_inset
28522
28523  (this is default value, and corresponds to usual content).
28524  
28525 \begin_inset Flex Code
28526 status collapsed
28527
28528 \begin_layout Plain Layout
28529
28530 \change_inserted -970929547 1515110517
28531 always
28532 \change_unchanged
28533
28534 \end_layout
28535
28536 \end_inset
28537
28538  indicates that the tag always goes into 
28539 \begin_inset Flex Code
28540 status collapsed
28541
28542 \begin_layout Plain Layout
28543
28544 \change_inserted -970929547 1515110514
28545 <info>
28546 \change_unchanged
28547
28548 \end_layout
28549
28550 \end_inset
28551
28552  (this corresponds to usual metadata): if there is no 
28553 \begin_inset Flex Code
28554 status collapsed
28555
28556 \begin_layout Plain Layout
28557
28558 \change_inserted -970929547 1515110550
28559 <info>
28560 \change_unchanged
28561
28562 \end_layout
28563
28564 \end_inset
28565
28566  tag for the parent, one 
28567 \series bold
28568 will
28569 \series default
28570  be generated.
28571  
28572 \begin_inset Flex Code
28573 status collapsed
28574
28575 \begin_layout Plain Layout
28576
28577 \change_inserted -970929547 1515110540
28578 maybe
28579 \change_unchanged
28580
28581 \end_layout
28582
28583 \end_inset
28584
28585  indicates that the tag may go into 
28586 \begin_inset Flex Code
28587 status collapsed
28588
28589 \begin_layout Plain Layout
28590
28591 \change_inserted -970929547 1515110538
28592 <info>
28593 \change_unchanged
28594
28595 \end_layout
28596
28597 \end_inset
28598
28599  (this is only the case for titles): if there is no 
28600 \begin_inset Flex Code
28601 status collapsed
28602
28603 \begin_layout Plain Layout
28604
28605 \change_inserted -970929547 1515110585
28606 <info>
28607 \change_unchanged
28608
28609 \end_layout
28610
28611 \end_inset
28612
28613  tag for the parent, 
28614 \series bold
28615 none
28616 \series default
28617  will be generated, the corresponding tag will be output directly as content.
28618  
28619 \end_layout
28620
28621 \begin_layout Description
28622
28623 \change_inserted -970929547 1515111461
28624 \begin_inset Flex Code
28625 status collapsed
28626
28627 \begin_layout Plain Layout
28628
28629 \change_inserted -970929547 1515110974
28630 DocBookItemAttr
28631 \change_unchanged
28632
28633 \end_layout
28634
28635 \end_inset
28636
28637  [
28638 \begin_inset Flex Code
28639 status collapsed
28640
28641 \begin_layout Plain Layout
28642
28643 \change_inserted -970929547 1515110973
28644 string
28645 \change_unchanged
28646
28647 \end_layout
28648
28649 \end_inset
28650
28651 ] Specifies attribute information to be output with the item tag, replacing
28652  
28653 \begin_inset Quotes eld
28654 \end_inset
28655
28656
28657 \begin_inset Flex Code
28658 status collapsed
28659
28660 \begin_layout Plain Layout
28661
28662 \change_inserted -970929547 1515110984
28663 itemattr
28664 \change_unchanged
28665
28666 \end_layout
28667
28668 \end_inset
28669
28670
28671 \begin_inset Quotes erd
28672 \end_inset
28673
28674  in the example above.
28675  This information can be used in further processing of the DocBook files.
28676  
28677 \end_layout
28678
28679 \begin_layout Description
28680
28681 \change_inserted -970929547 1515111471
28682 \begin_inset Flex Code
28683 status collapsed
28684
28685 \begin_layout Plain Layout
28686
28687 \change_inserted -970929547 1515111465
28688 DocBookItemInnerAttr
28689 \change_unchanged
28690
28691 \end_layout
28692
28693 \end_inset
28694
28695  [
28696 \begin_inset Flex Code
28697 status collapsed
28698
28699 \begin_layout Plain Layout
28700
28701 \change_inserted -970929547 1515111461
28702 string
28703 \change_unchanged
28704
28705 \end_layout
28706
28707 \end_inset
28708
28709 ] Specifies attribute information to be output with the item inner tag,
28710  replacing 
28711 \begin_inset Quotes eld
28712 \end_inset
28713
28714
28715 \begin_inset Flex Code
28716 status collapsed
28717
28718 \begin_layout Plain Layout
28719
28720 \change_inserted -970929547 1515111476
28721 iteminnerattr
28722 \change_unchanged
28723
28724 \end_layout
28725
28726 \end_inset
28727
28728
28729 \begin_inset Quotes erd
28730 \end_inset
28731
28732  in the example above.
28733  This information can be used in further processing of the DocBook files.
28734  
28735 \end_layout
28736
28737 \begin_layout Description
28738
28739 \change_inserted -970929547 1515111494
28740 \begin_inset Flex Code
28741 status collapsed
28742
28743 \begin_layout Plain Layout
28744
28745 \change_inserted -970929547 1515111467
28746 DocBookItemInnerTag
28747 \change_unchanged
28748
28749 \end_layout
28750
28751 \end_inset
28752
28753  [
28754 \begin_inset Flex Code
28755 status collapsed
28756
28757 \begin_layout Plain Layout
28758
28759 \change_inserted -970929547 1515111461
28760 string
28761 \change_unchanged
28762
28763 \end_layout
28764
28765 \end_inset
28766
28767 ] The tag to be used for the item inner tag within the inset, replacing
28768  
28769 \begin_inset Quotes eld
28770 \end_inset
28771
28772
28773 \begin_inset Flex Code
28774 status collapsed
28775
28776 \begin_layout Plain Layout
28777
28778 \change_inserted -970929547 1515111486
28779 iteminnertag
28780 \change_unchanged
28781
28782 \end_layout
28783
28784 \end_inset
28785
28786
28787 \begin_inset Quotes erd
28788 \end_inset
28789
28790  in the example above.
28791  The default is 
28792 \begin_inset Flex Code
28793 status collapsed
28794
28795 \begin_layout Plain Layout
28796
28797 \change_inserted -970929547 1515111461
28798 NONE
28799 \change_unchanged
28800
28801 \end_layout
28802
28803 \end_inset
28804
28805 , indicating that there is no item inner tag: content is directly output
28806  without it for each itemised element.
28807  This parameter only makes sense when itemising layouts are used, such as
28808  lists.
28809  
28810 \change_inserted 1075283030 1598469472
28811 The most likely value is 
28812 \begin_inset Quotes eld
28813 \end_inset
28814
28815
28816 \begin_inset Flex Code
28817 status collapsed
28818
28819 \begin_layout Plain Layout
28820
28821 \change_inserted 1075283030 1598469476
28822 para
28823 \change_unchanged
28824
28825 \end_layout
28826
28827 \end_inset
28828
28829
28830 \begin_inset Quotes erd
28831 \end_inset
28832
28833 .
28834 \begin_inset Newline newline
28835 \end_inset
28836
28837 When a list item is split using a new line, the item inner tag will be repeated
28838  for each part of the paragraph, parts being separated by new lines.
28839  
28840 \end_layout
28841
28842 \begin_layout Description
28843
28844 \change_inserted 1075283030 1597699866
28845 \begin_inset Flex Code
28846 status collapsed
28847
28848 \begin_layout Plain Layout
28849
28850 \change_inserted 1075283030 1597699853
28851 DocBookItemInnerTagType
28852 \change_unchanged
28853
28854 \end_layout
28855
28856 \end_inset
28857
28858  [
28859 \begin_inset Flex Code
28860 status collapsed
28861
28862 \begin_layout Plain Layout
28863
28864 \change_inserted 1075283030 1597699866
28865 block, paragraph, inline
28866 \change_unchanged
28867
28868 \end_layout
28869
28870 \end_inset
28871
28872 ] The new-line policy for this tag, see Section
28873 \begin_inset space ~
28874 \end_inset
28875
28876
28877 \begin_inset CommandInset ref
28878 LatexCommand ref
28879 reference "subsec:DocBook-New-line-policy"
28880 plural "false"
28881 caps "false"
28882 noprefix "false"
28883
28884 \end_inset
28885
28886  for the details.
28887  
28888 \change_unchanged
28889
28890 \end_layout
28891
28892 \begin_layout Description
28893
28894 \change_inserted -970929547 1515111290
28895 \begin_inset Flex Code
28896 status collapsed
28897
28898 \begin_layout Plain Layout
28899
28900 \change_inserted -970929547 1515111283
28901 DocBookItemLabelAttr
28902 \change_unchanged
28903
28904 \end_layout
28905
28906 \end_inset
28907
28908  [
28909 \begin_inset Flex Code
28910 status collapsed
28911
28912 \begin_layout Plain Layout
28913
28914 \change_inserted -970929547 1515111279
28915 string
28916 \change_unchanged
28917
28918 \end_layout
28919
28920 \end_inset
28921
28922 ] Specifies attribute information to be output with the item label tag,
28923  replacing 
28924 \begin_inset Quotes eld
28925 \end_inset
28926
28927
28928 \begin_inset Flex Code
28929 status collapsed
28930
28931 \begin_layout Plain Layout
28932
28933 \change_inserted -970929547 1515111304
28934 itemlabelattr
28935 \change_unchanged
28936
28937 \end_layout
28938
28939 \end_inset
28940
28941
28942 \begin_inset Quotes erd
28943 \end_inset
28944
28945  in the example above.
28946  This information can be used in further processing of the DocBook files.
28947  
28948 \end_layout
28949
28950 \begin_layout Description
28951
28952 \change_inserted -970929547 1515111337
28953 \begin_inset Flex Code
28954 status collapsed
28955
28956 \begin_layout Plain Layout
28957
28958 \change_inserted -970929547 1515111285
28959 DocBookItemLabelTag
28960 \change_unchanged
28961
28962 \end_layout
28963
28964 \end_inset
28965
28966  [
28967 \begin_inset Flex Code
28968 status collapsed
28969
28970 \begin_layout Plain Layout
28971
28972 \change_inserted -970929547 1515111279
28973 string
28974 \change_unchanged
28975
28976 \end_layout
28977
28978 \end_inset
28979
28980 ] The tag to be used for the item label tag within the inset, replacing
28981  
28982 \begin_inset Quotes eld
28983 \end_inset
28984
28985
28986 \begin_inset Flex Code
28987 status collapsed
28988
28989 \begin_layout Plain Layout
28990
28991 \change_inserted -970929547 1515111311
28992 itemlabeltag
28993 \change_unchanged
28994
28995 \end_layout
28996
28997 \end_inset
28998
28999
29000 \begin_inset Quotes erd
29001 \end_inset
29002
29003  in the example above.
29004  This parameter only makes sense when itemising layouts are used with a
29005  notion of labels, such as definition lists.
29006  
29007 \change_inserted 1075283030 1597699874
29008
29009 \end_layout
29010
29011 \begin_layout Description
29012
29013 \change_inserted 1075283030 1597699874
29014 \begin_inset Flex Code
29015 status collapsed
29016
29017 \begin_layout Plain Layout
29018
29019 \change_inserted 1075283030 1597699880
29020 DocBookItemLabelTagType
29021 \change_unchanged
29022
29023 \end_layout
29024
29025 \end_inset
29026
29027  [
29028 \begin_inset Flex Code
29029 status collapsed
29030
29031 \begin_layout Plain Layout
29032
29033 \change_inserted 1075283030 1597699874
29034 block, paragraph, inline
29035 \change_unchanged
29036
29037 \end_layout
29038
29039 \end_inset
29040
29041 ] The new-line policy for this tag, see Section
29042 \begin_inset space ~
29043 \end_inset
29044
29045
29046 \begin_inset CommandInset ref
29047 LatexCommand ref
29048 reference "subsec:DocBook-New-line-policy"
29049 plural "false"
29050 caps "false"
29051 noprefix "false"
29052
29053 \end_inset
29054
29055  for the details.
29056  
29057 \change_unchanged
29058
29059 \end_layout
29060
29061 \begin_layout Description
29062
29063 \change_inserted -970929547 1515111124
29064 \begin_inset Flex Code
29065 status collapsed
29066
29067 \begin_layout Plain Layout
29068
29069 \change_inserted -970929547 1515111060
29070 DocBookItemTag
29071 \change_unchanged
29072
29073 \end_layout
29074
29075 \end_inset
29076
29077  [
29078 \begin_inset Flex Code
29079 status collapsed
29080
29081 \begin_layout Plain Layout
29082
29083 \change_inserted -970929547 1515111060
29084 string
29085 \change_unchanged
29086
29087 \end_layout
29088
29089 \end_inset
29090
29091 ] The tag to be used for the item tag within the inset, replacing 
29092 \begin_inset Quotes eld
29093 \end_inset
29094
29095
29096 \begin_inset Flex Code
29097 status collapsed
29098
29099 \begin_layout Plain Layout
29100
29101 \change_inserted -970929547 1515111060
29102 itemtag
29103 \change_unchanged
29104
29105 \end_layout
29106
29107 \end_inset
29108
29109
29110 \begin_inset Quotes erd
29111 \end_inset
29112
29113  in the example above.
29114  The default is 
29115 \begin_inset Flex Code
29116 status collapsed
29117
29118 \begin_layout Plain Layout
29119
29120 \change_inserted -970929547 1515111060
29121 NONE
29122 \change_unchanged
29123
29124 \end_layout
29125
29126 \end_inset
29127
29128 , indicating that there is no item tag.
29129  This parameter only makes sense when itemising layouts are used, such as
29130  lists.
29131  
29132 \change_inserted 1075283030 1597699890
29133
29134 \end_layout
29135
29136 \begin_layout Description
29137
29138 \change_inserted 1075283030 1597699890
29139 \begin_inset Flex Code
29140 status collapsed
29141
29142 \begin_layout Plain Layout
29143
29144 \change_inserted 1075283030 1597699890
29145 DocBookItemTagType
29146 \change_unchanged
29147
29148 \end_layout
29149
29150 \end_inset
29151
29152  [
29153 \begin_inset Flex Code
29154 status collapsed
29155
29156 \begin_layout Plain Layout
29157
29158 \change_inserted 1075283030 1597699890
29159 block, paragraph, inline
29160 \change_unchanged
29161
29162 \end_layout
29163
29164 \end_inset
29165
29166 ] The new-line policy for this tag, see Section
29167 \begin_inset space ~
29168 \end_inset
29169
29170
29171 \begin_inset CommandInset ref
29172 LatexCommand ref
29173 reference "subsec:DocBook-New-line-policy"
29174 plural "false"
29175 caps "false"
29176 noprefix "false"
29177
29178 \end_inset
29179
29180  for the details.
29181  
29182 \change_unchanged
29183
29184 \end_layout
29185
29186 \begin_layout Description
29187
29188 \change_inserted -970929547 1515111298
29189 \begin_inset Flex Code
29190 status collapsed
29191
29192 \begin_layout Plain Layout
29193
29194 \change_inserted -970929547 1515111124
29195 DocBookItemWrapperAttr
29196 \change_unchanged
29197
29198 \end_layout
29199
29200 \end_inset
29201
29202  [
29203 \begin_inset Flex Code
29204 status collapsed
29205
29206 \begin_layout Plain Layout
29207
29208 \change_inserted -970929547 1515111124
29209 string
29210 \change_unchanged
29211
29212 \end_layout
29213
29214 \end_inset
29215
29216 ] Specifies attribute information to be output with the item wrapper tag,
29217  replacing 
29218 \begin_inset Quotes eld
29219 \end_inset
29220
29221
29222 \begin_inset Flex Code
29223 status collapsed
29224
29225 \begin_layout Plain Layout
29226
29227 \change_inserted -970929547 1515111150
29228 itemwrapperattr
29229 \change_unchanged
29230
29231 \end_layout
29232
29233 \end_inset
29234
29235
29236 \begin_inset Quotes erd
29237 \end_inset
29238
29239  in the example above.
29240  This information can be used in further processing of the DocBook files.
29241  
29242 \change_unchanged
29243
29244 \end_layout
29245
29246 \begin_layout Description
29247
29248 \change_inserted -970929547 1515111113
29249 \begin_inset Flex Code
29250 status collapsed
29251
29252 \begin_layout Plain Layout
29253
29254 \change_inserted -970929547 1515111073
29255 DocBookItemWrapperTag
29256 \change_unchanged
29257
29258 \end_layout
29259
29260 \end_inset
29261
29262  [
29263 \begin_inset Flex Code
29264 status collapsed
29265
29266 \begin_layout Plain Layout
29267
29268 \change_inserted -970929547 1515111073
29269 string
29270 \change_unchanged
29271
29272 \end_layout
29273
29274 \end_inset
29275
29276 ] The tag to be used for the item wrapper tag within the inset, replacing
29277  
29278 \begin_inset Quotes eld
29279 \end_inset
29280
29281
29282 \begin_inset Flex Code
29283 status collapsed
29284
29285 \begin_layout Plain Layout
29286
29287 \change_inserted -970929547 1515111083
29288 itemwrappertag
29289 \change_unchanged
29290
29291 \end_layout
29292
29293 \end_inset
29294
29295
29296 \begin_inset Quotes erd
29297 \end_inset
29298
29299  in the example above.
29300  The default is 
29301 \begin_inset Flex Code
29302 status collapsed
29303
29304 \begin_layout Plain Layout
29305
29306 \change_inserted -970929547 1515111073
29307 NONE
29308 \change_unchanged
29309
29310 \end_layout
29311
29312 \end_inset
29313
29314 , indicating that there is no item wrapper tag: tag and content are directly
29315  output without it for each itemised element.
29316  This parameter only makes sense when itemising layouts are used, such as
29317  lists.
29318  
29319 \change_inserted 1075283030 1597699897
29320
29321 \end_layout
29322
29323 \begin_layout Description
29324
29325 \change_inserted 1075283030 1597699897
29326 \begin_inset Flex Code
29327 status collapsed
29328
29329 \begin_layout Plain Layout
29330
29331 \change_inserted 1075283030 1597699900
29332 DocBookItemWrapperTagType
29333 \change_unchanged
29334
29335 \end_layout
29336
29337 \end_inset
29338
29339  [
29340 \begin_inset Flex Code
29341 status collapsed
29342
29343 \begin_layout Plain Layout
29344
29345 \change_inserted 1075283030 1597699897
29346 block, paragraph, inline
29347 \change_unchanged
29348
29349 \end_layout
29350
29351 \end_inset
29352
29353 ] The new-line policy for this tag, see Section
29354 \begin_inset space ~
29355 \end_inset
29356
29357
29358 \begin_inset CommandInset ref
29359 LatexCommand ref
29360 reference "subsec:DocBook-New-line-policy"
29361 plural "false"
29362 caps "false"
29363 noprefix "false"
29364
29365 \end_inset
29366
29367  for the details.
29368  
29369 \change_unchanged
29370
29371 \end_layout
29372
29373 \begin_layout Description
29374
29375 \change_inserted -970929547 1515110104
29376 \begin_inset Flex Code
29377 status collapsed
29378
29379 \begin_layout Plain Layout
29380
29381 \change_inserted -970929547 1515110104
29382 DocBookInnerAttr
29383 \change_unchanged
29384
29385 \end_layout
29386
29387 \end_inset
29388
29389  [
29390 \begin_inset Flex Code
29391 status collapsed
29392
29393 \begin_layout Plain Layout
29394
29395 \change_inserted -970929547 1515110104
29396 string
29397 \change_unchanged
29398
29399 \end_layout
29400
29401 \end_inset
29402
29403 ] Specifies attribute information to be output with the inner tag, replacing
29404  
29405 \begin_inset Quotes eld
29406 \end_inset
29407
29408
29409 \begin_inset Flex Code
29410 status collapsed
29411
29412 \begin_layout Plain Layout
29413
29414 \change_inserted -970929547 1515110104
29415 innerattr
29416 \change_unchanged
29417
29418 \end_layout
29419
29420 \end_inset
29421
29422
29423 \begin_inset Quotes erd
29424 \end_inset
29425
29426  in the example above.
29427  This information can be used in further processing of the DocBook files.
29428  
29429 \end_layout
29430
29431 \begin_layout Description
29432
29433 \change_inserted -970929547 1515110906
29434 \begin_inset Flex Code
29435 status collapsed
29436
29437 \begin_layout Plain Layout
29438
29439 \change_inserted -970929547 1515110104
29440 DocBookInnerTag
29441 \change_unchanged
29442
29443 \end_layout
29444
29445 \end_inset
29446
29447  [
29448 \begin_inset Flex Code
29449 status collapsed
29450
29451 \begin_layout Plain Layout
29452
29453 \change_inserted -970929547 1515110104
29454 string
29455 \change_unchanged
29456
29457 \end_layout
29458
29459 \end_inset
29460
29461 ] The tag to be used for the inner tag within the inset, replacing 
29462 \begin_inset Quotes eld
29463 \end_inset
29464
29465
29466 \begin_inset Flex Code
29467 status collapsed
29468
29469 \begin_layout Plain Layout
29470
29471 \change_inserted -970929547 1515110104
29472 innertag
29473 \change_unchanged
29474
29475 \end_layout
29476
29477 \end_inset
29478
29479
29480 \begin_inset Quotes erd
29481 \end_inset
29482
29483  in the example above.
29484  The default is 
29485 \begin_inset Flex Code
29486 status collapsed
29487
29488 \begin_layout Plain Layout
29489
29490 \change_inserted -970929547 1515110791
29491 NONE
29492 \change_unchanged
29493
29494 \end_layout
29495
29496 \end_inset
29497
29498 , indicating that there is no inner tag: content is directly output without
29499  it.
29500 \change_inserted 1075283030 1597699904
29501
29502 \end_layout
29503
29504 \begin_layout Description
29505
29506 \change_inserted 1075283030 1597699904
29507 \begin_inset Flex Code
29508 status collapsed
29509
29510 \begin_layout Plain Layout
29511
29512 \change_inserted 1075283030 1597699904
29513 DocBookInnerTagType
29514 \change_unchanged
29515
29516 \end_layout
29517
29518 \end_inset
29519
29520  [
29521 \begin_inset Flex Code
29522 status collapsed
29523
29524 \begin_layout Plain Layout
29525
29526 \change_inserted 1075283030 1597699904
29527 block, paragraph, inline
29528 \change_unchanged
29529
29530 \end_layout
29531
29532 \end_inset
29533
29534 ] The new-line policy for this tag, see Section
29535 \begin_inset space ~
29536 \end_inset
29537
29538
29539 \begin_inset CommandInset ref
29540 LatexCommand ref
29541 reference "subsec:DocBook-New-line-policy"
29542 plural "false"
29543 caps "false"
29544 noprefix "false"
29545
29546 \end_inset
29547
29548  for the details.
29549  
29550 \change_unchanged
29551
29552 \end_layout
29553
29554 \begin_layout Description
29555
29556 \change_inserted -970929547 1515110753
29557 \begin_inset Flex Code
29558 status collapsed
29559
29560 \begin_layout Plain Layout
29561
29562 \change_inserted -970929547 1515110665
29563 DocBookSectionTag
29564 \change_unchanged
29565
29566 \end_layout
29567
29568 \end_inset
29569
29570  [
29571 \begin_inset Flex Code
29572 status collapsed
29573
29574 \begin_layout Plain Layout
29575
29576 \change_inserted -970929547 1515110661
29577 string
29578 \change_unchanged
29579
29580 \end_layout
29581
29582 \end_inset
29583
29584 ] Specifies the tag that corresponds to this kind of section.
29585  This parameter only makes sense for sectioning elements (part, chapter,
29586  section, etc.).
29587  The default value is 
29588 \begin_inset Flex Code
29589 status collapsed
29590
29591 \begin_layout Plain Layout
29592
29593 \change_inserted -970929547 1515110721
29594 section
29595 \change_unchanged
29596
29597 \end_layout
29598
29599 \end_inset
29600
29601 , and is only overridden when DocBook uses something else for sectioning
29602  (
29603 \change_inserted 1075283030 1597699921
29604 typically, 
29605 \change_inserted -970929547 1515110753
29606 parts and chapters of a book).
29607  
29608 \change_unchanged
29609
29610 \end_layout
29611
29612 \begin_layout Description
29613
29614 \change_inserted -970929547 1515110811
29615 \begin_inset Flex Code
29616 status collapsed
29617
29618 \begin_layout Plain Layout
29619
29620 \change_inserted -970929547 1496612023
29621 DocBookTag
29622 \change_unchanged
29623
29624 \end_layout
29625
29626 \end_inset
29627
29628  [
29629 \begin_inset Flex Code
29630 status collapsed
29631
29632 \begin_layout Plain Layout
29633
29634 \change_inserted -970929547 1496610966
29635 string
29636 \change_unchanged
29637
29638 \end_layout
29639
29640 \end_inset
29641
29642 ] The tag to be used for this inset, replacing 
29643 \begin_inset Quotes eld
29644 \end_inset
29645
29646
29647 \begin_inset Flex Code
29648 status collapsed
29649
29650 \begin_layout Plain Layout
29651
29652 \change_inserted -970929547 1496612033
29653 tag
29654 \change_unchanged
29655
29656 \end_layout
29657
29658 \end_inset
29659
29660
29661 \begin_inset Quotes erd
29662 \end_inset
29663
29664  in the example above.
29665  The default is the name of the float and always needs to be changed, as
29666  DocBook provides no generic inset tag.
29667 \change_inserted 1075283030 1597699924
29668
29669 \end_layout
29670
29671 \begin_layout Description
29672
29673 \change_inserted 1075283030 1597699924
29674 \begin_inset Flex Code
29675 status collapsed
29676
29677 \begin_layout Plain Layout
29678
29679 \change_inserted 1075283030 1597699924
29680 DocBookTagType
29681 \change_unchanged
29682
29683 \end_layout
29684
29685 \end_inset
29686
29687  [
29688 \begin_inset Flex Code
29689 status collapsed
29690
29691 \begin_layout Plain Layout
29692
29693 \change_inserted 1075283030 1597699924
29694 block, paragraph, inline
29695 \change_unchanged
29696
29697 \end_layout
29698
29699 \end_inset
29700
29701 ] The new-line policy for this tag, see Section
29702 \begin_inset space ~
29703 \end_inset
29704
29705
29706 \begin_inset CommandInset ref
29707 LatexCommand ref
29708 reference "subsec:DocBook-New-line-policy"
29709 plural "false"
29710 caps "false"
29711 noprefix "false"
29712
29713 \end_inset
29714
29715  for the details.
29716  
29717 \change_unchanged
29718
29719 \end_layout
29720
29721 \begin_layout Description
29722
29723 \change_inserted -970929547 1515110832
29724 \begin_inset Flex Code
29725 status collapsed
29726
29727 \begin_layout Plain Layout
29728
29729 \change_inserted -970929547 1515110822
29730 DocBookWrapperAttr
29731 \change_unchanged
29732
29733 \end_layout
29734
29735 \end_inset
29736
29737  [
29738 \begin_inset Flex Code
29739 status collapsed
29740
29741 \begin_layout Plain Layout
29742
29743 \change_inserted -970929547 1515110811
29744 string
29745 \change_unchanged
29746
29747 \end_layout
29748
29749 \end_inset
29750
29751 ] Specifies attribute information to be output with the outer tag, replacing
29752  
29753 \begin_inset Quotes eld
29754 \end_inset
29755
29756
29757 \begin_inset Flex Code
29758 status collapsed
29759
29760 \begin_layout Plain Layout
29761
29762 \change_inserted -970929547 1515110845
29763 wrapperattr
29764 \change_unchanged
29765
29766 \end_layout
29767
29768 \end_inset
29769
29770
29771 \begin_inset Quotes erd
29772 \end_inset
29773
29774  in the example above.
29775  This information can be used in further processing of the DocBook files.
29776  
29777 \end_layout
29778
29779 \begin_layout Description
29780
29781 \change_inserted -970929547 1515110917
29782 \begin_inset Flex Code
29783 status collapsed
29784
29785 \begin_layout Plain Layout
29786
29787 \change_inserted -970929547 1515110826
29788 DocBookWrapperTag
29789 \change_unchanged
29790
29791 \end_layout
29792
29793 \end_inset
29794
29795  [
29796 \begin_inset Flex Code
29797 status collapsed
29798
29799 \begin_layout Plain Layout
29800
29801 \change_inserted -970929547 1515110811
29802 string
29803 \change_unchanged
29804
29805 \end_layout
29806
29807 \end_inset
29808
29809 ] The tag to be used for the wrapper tag around the inset, replacing 
29810 \begin_inset Quotes eld
29811 \end_inset
29812
29813
29814 \begin_inset Flex Code
29815 status collapsed
29816
29817 \begin_layout Plain Layout
29818
29819 \change_inserted -970929547 1515110842
29820 wrappertag
29821 \change_unchanged
29822
29823 \end_layout
29824
29825 \end_inset
29826
29827
29828 \begin_inset Quotes erd
29829 \end_inset
29830
29831  in the example above.
29832  The default is 
29833 \begin_inset Flex Code
29834 status collapsed
29835
29836 \begin_layout Plain Layout
29837
29838 \change_inserted -970929547 1515110811
29839 NONE
29840 \change_unchanged
29841
29842 \end_layout
29843
29844 \end_inset
29845
29846 , indicating that there is no wrapper tag: tag and content are directly
29847  output without it.
29848 \change_inserted 1075283030 1597699929
29849
29850 \end_layout
29851
29852 \begin_layout Description
29853
29854 \change_inserted 1075283030 1597699929
29855 \begin_inset Flex Code
29856 status collapsed
29857
29858 \begin_layout Plain Layout
29859
29860 \change_inserted 1075283030 1597699932
29861 DocBookWrapperTagType
29862 \change_unchanged
29863
29864 \end_layout
29865
29866 \end_inset
29867
29868  [
29869 \begin_inset Flex Code
29870 status collapsed
29871
29872 \begin_layout Plain Layout
29873
29874 \change_inserted 1075283030 1597699929
29875 block, paragraph, inline
29876 \change_unchanged
29877
29878 \end_layout
29879
29880 \end_inset
29881
29882 ] The new-line policy for this tag, see Section
29883 \begin_inset space ~
29884 \end_inset
29885
29886
29887 \begin_inset CommandInset ref
29888 LatexCommand ref
29889 reference "subsec:DocBook-New-line-policy"
29890 plural "false"
29891 caps "false"
29892 noprefix "false"
29893
29894 \end_inset
29895
29896  for the details.
29897  
29898 \change_unchanged
29899
29900 \end_layout
29901
29902 \begin_layout Subsection
29903
29904 \change_inserted -970929547 1515110040
29905 Float DocBook
29906 \end_layout
29907
29908 \begin_layout Standard
29909
29910 \change_inserted -970929547 1496611700
29911 The DocBook output for floats too can be controlled by layout information.
29912  The output has the following form:
29913 \end_layout
29914
29915 \begin_layout LyX-Code
29916
29917 \change_inserted -970929547 1515109700
29918 <tag attr>
29919 \end_layout
29920
29921 \begin_layout LyX-Code
29922
29923 \change_inserted -970929547 1515110138
29924   Contents of the float as DocBook.
29925 \end_layout
29926
29927 \begin_layout LyX-Code
29928
29929 \change_inserted -970929547 1496610966
29930 </tag>
29931 \end_layout
29932
29933 \begin_layout Standard
29934
29935 \change_inserted -970929547 1496611715
29936 The caption, if there is one, is a separate inset and will be output as
29937  a title.
29938  
29939 \end_layout
29940
29941 \begin_layout Description
29942
29943 \change_inserted -970929547 1515110033
29944 \begin_inset Flex Code
29945 status collapsed
29946
29947 \begin_layout Plain Layout
29948
29949 \change_inserted -970929547 1515109702
29950 DocBookAttr
29951 \change_unchanged
29952
29953 \end_layout
29954
29955 \end_inset
29956
29957  [
29958 \begin_inset Flex Code
29959 status collapsed
29960
29961 \begin_layout Plain Layout
29962
29963 \change_inserted -970929547 1496610966
29964 string
29965 \change_unchanged
29966
29967 \end_layout
29968
29969 \end_inset
29970
29971 ] Specifies attribute information to be output with the main tag, replacing
29972  
29973 \begin_inset Quotes eld
29974 \end_inset
29975
29976
29977 \begin_inset Flex Code
29978 status collapsed
29979
29980 \begin_layout Plain Layout
29981
29982 \change_inserted -970929547 1515110035
29983 attr
29984 \change_unchanged
29985
29986 \end_layout
29987
29988 \end_inset
29989
29990
29991 \begin_inset Quotes erd
29992 \end_inset
29993
29994  in the example above.
29995  This information can be used in further processing of the DocBook files.
29996  
29997 \end_layout
29998
29999 \begin_layout Description
30000
30001 \change_inserted -970929547 1515110157
30002 \begin_inset Flex Code
30003 status collapsed
30004
30005 \begin_layout Plain Layout
30006
30007 \change_inserted -970929547 1496611782
30008 DocBookTag
30009 \change_unchanged
30010
30011 \end_layout
30012
30013 \end_inset
30014
30015  [
30016 \begin_inset Flex Code
30017 status collapsed
30018
30019 \begin_layout Plain Layout
30020
30021 \change_inserted -970929547 1496610966
30022 string
30023 \change_unchanged
30024
30025 \end_layout
30026
30027 \end_inset
30028
30029 ] The tag to be used for this float, replacing 
30030 \begin_inset Quotes eld
30031 \end_inset
30032
30033
30034 \begin_inset Flex Code
30035 status collapsed
30036
30037 \begin_layout Plain Layout
30038
30039 \change_inserted -970929547 1496610966
30040 tag
30041 \change_unchanged
30042
30043 \end_layout
30044
30045 \end_inset
30046
30047
30048 \begin_inset Quotes erd
30049 \end_inset
30050
30051  in the example above.
30052  The default is the name of the float and always needs to be changed, as
30053  DocBook provides no generic float tag.
30054 \end_layout
30055
30056 \begin_layout Subsection
30057
30058 \change_inserted -970929547 1515110157
30059 Bibliography formatting
30060 \end_layout
30061
30062 \begin_layout Standard
30063
30064 \change_deleted 1075283030 1597699984
30065 The 
30066 \change_inserted 1075283030 1597699985
30067 Included 
30068 \change_inserted -970929547 1515110187
30069 bibliograph
30070 \change_deleted 1075283030 1597699987
30071 y
30072 \change_inserted 1075283030 1597699987
30073 ies
30074 \change_inserted -970929547 1515110187
30075  cannot be formatted: all fields are always output in the database-like
30076  DocBook format (equivalent to a BibTeX file)
30077 \change_inserted 1075283030 1597700117
30078 , using the 
30079 \begin_inset Flex Code
30080 status collapsed
30081
30082 \begin_layout Plain Layout
30083
30084 \change_inserted 1075283030 1597700120
30085 biblioentry
30086 \change_unchanged
30087
30088 \end_layout
30089
30090 \end_inset
30091
30092  tag
30093 \change_inserted -970929547 1515110187
30094 .
30095 \change_inserted 1075283030 1597700092
30096
30097 \end_layout
30098
30099 \begin_layout Standard
30100
30101 \change_inserted 1075283030 1597700112
30102 When the bibliographic entries are manually inserted into the LyX document
30103  as Bibliography Items, the user deals with formatting themself: there is
30104  no attempt of parsing what the user wrote, the string is directly used
30105  (with the 
30106 \begin_inset Flex Code
30107 status collapsed
30108
30109 \begin_layout Plain Layout
30110
30111 \change_inserted 1075283030 1597700076
30112 bibliomixed
30113 \change_unchanged
30114
30115 \end_layout
30116
30117 \end_inset
30118
30119  tag).
30120  
30121 \change_unchanged
30122
30123 \end_layout
30124
30125 \begin_layout Chapter
30126 Including External Material
30127 \begin_inset CommandInset label
30128 LatexCommand label
30129 name "chap:Including-External-Material"
30130
30131 \end_inset
30132
30133
30134 \end_layout
30135
30136 \begin_layout Standard
30137 \begin_inset Box Shadowbox
30138 position "t"
30139 hor_pos "c"
30140 has_inner_box 1
30141 inner_pos "t"
30142 use_parbox 0
30143 use_makebox 0
30144 width "100col%"
30145 special "none"
30146 height "1in"
30147 height_special "totalheight"
30148 thickness "0.4pt"
30149 separation "3pt"
30150 shadowsize "4pt"
30151 framecolor "black"
30152 backgroundcolor "none"
30153 status open
30154
30155 \begin_layout Plain Layout
30156 WARNING: This portion of the documentation has not been updated for some
30157  time.
30158  We certainly hope that it is still accurate, but there are no guarantees.
30159 \end_layout
30160
30161 \end_inset
30162
30163
30164 \end_layout
30165
30166 \begin_layout Standard
30167 The use of material from sources external to \SpecialChar LyX
30168  is covered in detail in the
30169  
30170 \emph on
30171 Embedded Objects
30172 \emph default
30173  manual.
30174  This part of the manual covers what needs to happen behind the scenes for
30175  new sorts of material to be included.
30176 \end_layout
30177
30178 \begin_layout Section
30179 How does it work?
30180 \end_layout
30181
30182 \begin_layout Standard
30183 The external material feature is based on the concept of a 
30184 \emph on
30185 template
30186 \emph default
30187 .
30188  A template is a specification of how \SpecialChar LyX
30189  should interface with a certain kind
30190  of material.
30191  As bundled, \SpecialChar LyX
30192  comes with predefined templates for Xfig figures, various
30193  raster format images, chess diagrams, and LilyPond music notation.
30194  You can check the actual list by using the menu 
30195 \begin_inset Flex Noun
30196 status collapsed
30197
30198 \begin_layout Plain Layout
30199 Insert\SpecialChar menuseparator
30200 File\SpecialChar menuseparator
30201 External Material
30202 \end_layout
30203
30204 \end_inset
30205
30206 .
30207  Furthermore, it is possible to roll your own template to support a specific
30208  kind of material.
30209  Later we'll describe in more detail what is involved, and hopefully you
30210  will submit all the templates you create so we can include them in a later
30211  \SpecialChar LyX
30212  version.
30213 \end_layout
30214
30215 \begin_layout Standard
30216 Another basic idea of the external material feature is to distinguish between
30217  the original file that serves as a base for final material and the produced
30218  file that is included in your exported or printed document.
30219  For example, consider the case of a figure produced with 
30220 \begin_inset Flex Code
30221 status collapsed
30222
30223 \begin_layout Plain Layout
30224 Xfig
30225 \end_layout
30226
30227 \end_inset
30228
30229 .
30230  The Xfig application itself works on an original file with the 
30231 \begin_inset Flex Code
30232 status collapsed
30233
30234 \begin_layout Plain Layout
30235 .fig
30236 \end_layout
30237
30238 \end_inset
30239
30240  extension.
30241  Within Xfig, you create and change your figure, and when you are done,
30242  you save the 
30243 \begin_inset Flex Code
30244 status collapsed
30245
30246 \begin_layout Plain Layout
30247 fig
30248 \end_layout
30249
30250 \end_inset
30251
30252 -file.
30253  When you want to include the figure in your document, you invoke 
30254 \begin_inset Flex Code
30255 status collapsed
30256
30257 \begin_layout Plain Layout
30258 transfig
30259 \end_layout
30260
30261 \end_inset
30262
30263  in order to create a PostScript file that can readily be included in your
30264  \SpecialChar LaTeX
30265  file.
30266  In this case, the 
30267 \begin_inset Flex Code
30268 status collapsed
30269
30270 \begin_layout Plain Layout
30271 .fig
30272 \end_layout
30273
30274 \end_inset
30275
30276  file is the original file, and the PostScript file is the produced file.
30277 \end_layout
30278
30279 \begin_layout Standard
30280 This distinction is important in order to allow updating of the material
30281  while you are in the process of writing the document.
30282  Furthermore, it provides us with the flexibility that is needed to support
30283  multiple export formats.
30284  For instance, in the case of a plain text file, it is not exactly an award-winn
30285 ing idea to include the figure as raw PostScript.
30286  Instead, you would either prefer to just include a reference to the figure
30287  or try to invoke some graphics to ASCII converter to make the final result
30288  look similar to the real graphics.
30289  The external material management allows you to do this, because it is parametri
30290 zed on the different export formats that \SpecialChar LyX
30291  supports.
30292 \end_layout
30293
30294 \begin_layout Standard
30295 Besides supporting the production of different products according to the
30296  exported format, it supports tight integration with editing and viewing
30297  applications.
30298  In the case of an Xfig figure, you are able to invoke Xfig on the original
30299  file with a single click from within the external material dialog in \SpecialChar LyX
30300 ,
30301  and also preview the produced PostScript file with Ghostview with another
30302  click.
30303  No more fiddling around with the command line and/or file browsers to locate
30304  and manipulate the original or produced files.
30305  In this way, you are finally able to take full advantage of the many different
30306  applications that are relevant to use when you write your documents, and
30307  ultimately be more productive.
30308 \end_layout
30309
30310 \begin_layout Section
30311 The external template configuration files
30312 \end_layout
30313
30314 \begin_layout Standard
30315 It is relatively easy to add custom external template definitions to \SpecialChar LyX
30316 .
30317  However, be aware that doing this in an careless manner most probably 
30318 \emph on
30319 will
30320 \emph default
30321  introduce an easily exploitable security hole.
30322  So before you do this, please read the discussion about security in 
30323 \begin_inset CommandInset ref
30324 LatexCommand ref
30325 reference "sec:Security-discussion"
30326
30327 \end_inset
30328
30329 .
30330 \end_layout
30331
30332 \begin_layout Standard
30333 Having said that, we encourage you to submit any interesting templates that
30334  you create.
30335  
30336 \end_layout
30337
30338 \begin_layout Standard
30339 The external templates are defined in the 
30340 \begin_inset Flex Code
30341 status collapsed
30342
30343 \begin_layout Plain Layout
30344 *.xtemplate
30345 \end_layout
30346
30347 \end_inset
30348
30349  files that are stored in the 
30350 \begin_inset Flex Code
30351 status collapsed
30352
30353 \begin_layout Plain Layout
30354 LyXDir/lib/xtemplates/
30355 \end_layout
30356
30357 \end_inset
30358
30359  directory.
30360  Each template is defined in a file of its own.
30361  You can place your own templates in 
30362 \begin_inset Flex Code
30363 status collapsed
30364
30365 \begin_layout Plain Layout
30366 UserDir/xtemplates/
30367 \end_layout
30368
30369 \end_inset
30370
30371  or copy existing templates to that directory in order to modify them.
30372 \end_layout
30373
30374 \begin_layout Standard
30375 A typical template looks like this:
30376 \end_layout
30377
30378 \begin_layout LyX-Code
30379 Template XFig
30380 \end_layout
30381
30382 \begin_layout LyX-Code
30383 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
30384 \end_layout
30385
30386 \begin_layout LyX-Code
30387 HelpText
30388 \end_layout
30389
30390 \begin_layout LyX-Code
30391 An XFig figure.
30392 \end_layout
30393
30394 \begin_layout LyX-Code
30395 HelpTextEnd
30396 \end_layout
30397
30398 \begin_layout LyX-Code
30399 InputFormat fig
30400 \end_layout
30401
30402 \begin_layout LyX-Code
30403 FileFilter "*.fig"
30404 \end_layout
30405
30406 \begin_layout LyX-Code
30407 AutomaticProduction true
30408 \end_layout
30409
30410 \begin_layout LyX-Code
30411 Transform Rotate
30412 \end_layout
30413
30414 \begin_layout LyX-Code
30415 Transform Resize
30416 \end_layout
30417
30418 \begin_layout LyX-Code
30419 Format LaTeX
30420 \end_layout
30421
30422 \begin_layout LyX-Code
30423 TransformCommand Rotate RotationLatexCommand
30424 \end_layout
30425
30426 \begin_layout LyX-Code
30427 TransformCommand Resize ResizeLatexCommand
30428 \end_layout
30429
30430 \begin_layout LyX-Code
30431 Product "$$RotateFront$$ResizeFront
30432 \end_layout
30433
30434 \begin_layout LyX-Code
30435          
30436 \backslash
30437
30438 \backslash
30439 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
30440 \end_layout
30441
30442 \begin_layout LyX-Code
30443          $$ResizeBack$$RotateBack"
30444 \end_layout
30445
30446 \begin_layout LyX-Code
30447 UpdateFormat pstex
30448 \end_layout
30449
30450 \begin_layout LyX-Code
30451 UpdateResult "$$AbsPath$$Basename.pstex_t"
30452 \end_layout
30453
30454 \begin_layout LyX-Code
30455 Requirement "graphicx"
30456 \end_layout
30457
30458 \begin_layout LyX-Code
30459 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
30460 \end_layout
30461
30462 \begin_layout LyX-Code
30463 ReferencedFile latex "$$AbsPath$$Basename.eps"
30464 \end_layout
30465
30466 \begin_layout LyX-Code
30467 ReferencedFile dvi "$$AbsPath$$Basename.eps"
30468 \end_layout
30469
30470 \begin_layout LyX-Code
30471 FormatEnd
30472 \end_layout
30473
30474 \begin_layout LyX-Code
30475 Format PDFLaTeX
30476 \end_layout
30477
30478 \begin_layout LyX-Code
30479 TransformCommand Rotate RotationLatexCommand
30480 \end_layout
30481
30482 \begin_layout LyX-Code
30483 TransformCommand Resize ResizeLatexCommand
30484 \end_layout
30485
30486 \begin_layout LyX-Code
30487 Product "$$RotateFront$$ResizeFront
30488 \end_layout
30489
30490 \begin_layout LyX-Code
30491          
30492 \backslash
30493
30494 \backslash
30495 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
30496 \end_layout
30497
30498 \begin_layout LyX-Code
30499          $$ResizeBack$$RotateBack"
30500 \end_layout
30501
30502 \begin_layout LyX-Code
30503 UpdateFormat pdftex
30504 \end_layout
30505
30506 \begin_layout LyX-Code
30507 UpdateResult "$$AbsPath$$Basename.pdftex_t"
30508 \end_layout
30509
30510 \begin_layout LyX-Code
30511 Requirement "graphicx"
30512 \end_layout
30513
30514 \begin_layout LyX-Code
30515 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
30516 \end_layout
30517
30518 \begin_layout LyX-Code
30519 ReferencedFile latex "$$AbsPath$$Basename.pdf"
30520 \end_layout
30521
30522 \begin_layout LyX-Code
30523 FormatEnd
30524 \end_layout
30525
30526 \begin_layout LyX-Code
30527 Format Ascii
30528 \end_layout
30529
30530 \begin_layout LyX-Code
30531 Product "[XFig: $$FName]"
30532 \end_layout
30533
30534 \begin_layout LyX-Code
30535 FormatEnd
30536 \end_layout
30537
30538 \begin_layout LyX-Code
30539 Format DocBook
30540 \end_layout
30541
30542 \begin_layout LyX-Code
30543 Product "<graphic fileref=
30544 \backslash
30545 "$$AbsOrRelPathMaster$$Basename.eps
30546 \backslash
30547 ">
30548 \end_layout
30549
30550 \begin_layout LyX-Code
30551          </graphic>"
30552 \end_layout
30553
30554 \begin_layout LyX-Code
30555 UpdateFormat eps
30556 \end_layout
30557
30558 \begin_layout LyX-Code
30559 UpdateResult "$$AbsPath$$Basename.eps"
30560 \end_layout
30561
30562 \begin_layout LyX-Code
30563 ReferencedFile docbook "$$AbsPath$$Basename.eps"
30564 \end_layout
30565
30566 \begin_layout LyX-Code
30567 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
30568 \end_layout
30569
30570 \begin_layout LyX-Code
30571 FormatEnd
30572 \end_layout
30573
30574 \begin_layout LyX-Code
30575 TemplateEnd
30576 \end_layout
30577
30578 \begin_layout Standard
30579 As you can see, the template is enclosed in 
30580 \begin_inset Flex Code
30581 status collapsed
30582
30583 \begin_layout Plain Layout
30584 Template
30585 \end_layout
30586
30587 \end_inset
30588
30589  \SpecialChar ldots
30590  
30591 \begin_inset Flex Code
30592 status collapsed
30593
30594 \begin_layout Plain Layout
30595 TemplateEnd
30596 \end_layout
30597
30598 \end_inset
30599
30600 .
30601  It contains a header specifying some general settings and, for each supported
30602  primary document file format, a section 
30603 \begin_inset Flex Code
30604 status collapsed
30605
30606 \begin_layout Plain Layout
30607 Format
30608 \end_layout
30609
30610 \end_inset
30611
30612  \SpecialChar ldots
30613  
30614 \begin_inset Flex Code
30615 status collapsed
30616
30617 \begin_layout Plain Layout
30618 FormatEnd
30619 \end_layout
30620
30621 \end_inset
30622
30623 .
30624 \end_layout
30625
30626 \begin_layout Subsection
30627 The template header
30628 \end_layout
30629
30630 \begin_layout Description
30631 \begin_inset Flex Code
30632 status collapsed
30633
30634 \begin_layout Plain Layout
30635 AutomaticProduction
30636 \begin_inset space ~
30637 \end_inset
30638
30639 true|false
30640 \end_layout
30641
30642 \end_inset
30643
30644  Whether the file represented by the template must be generated by \SpecialChar LyX
30645 .
30646  This command must occur exactly once.
30647 \end_layout
30648
30649 \begin_layout Description
30650 \begin_inset Flex Code
30651 status collapsed
30652
30653 \begin_layout Plain Layout
30654 FileFilter
30655 \begin_inset space ~
30656 \end_inset
30657
30658 <pattern>
30659 \end_layout
30660
30661 \end_inset
30662
30663  A glob pattern that is used in the file dialog to filter out the desired
30664  files.
30665  If there is more than one possible file extension (e.
30666 \begin_inset space \thinspace{}
30667 \end_inset
30668
30669 g.
30670 \begin_inset space \space{}
30671 \end_inset
30672
30673 tgif has 
30674 \begin_inset Flex Code
30675 status collapsed
30676
30677 \begin_layout Plain Layout
30678 .obj
30679 \end_layout
30680
30681 \end_inset
30682
30683  and 
30684 \begin_inset Flex Code
30685 status collapsed
30686
30687 \begin_layout Plain Layout
30688 .tgo
30689 \end_layout
30690
30691 \end_inset
30692
30693 ), use something like 
30694 \begin_inset Flex Code
30695 status collapsed
30696
30697 \begin_layout Plain Layout
30698 "*.{obj,tgo}"
30699 \end_layout
30700
30701 \end_inset
30702
30703 .
30704  This command must occur exactly once.
30705 \end_layout
30706
30707 \begin_layout Description
30708 \begin_inset Flex Code
30709 status collapsed
30710
30711 \begin_layout Plain Layout
30712 GuiName
30713 \begin_inset space ~
30714 \end_inset
30715
30716 <guiname>
30717 \end_layout
30718
30719 \end_inset
30720
30721  The text that is displayed on the button.
30722  This command must occur exactly once.
30723 \end_layout
30724
30725 \begin_layout Description
30726 \begin_inset Flex Code
30727 status collapsed
30728
30729 \begin_layout Plain Layout
30730 HelpText
30731 \begin_inset space ~
30732 \end_inset
30733
30734 <text>
30735 \begin_inset space ~
30736 \end_inset
30737
30738 HelpTextEnd
30739 \end_layout
30740
30741 \end_inset
30742
30743  The help text that is used in the External dialog.
30744  Provide enough information to explain to the user just what the template
30745  can provide him with.
30746  This command must occur exactly once.
30747 \end_layout
30748
30749 \begin_layout Description
30750 \begin_inset Flex Code
30751 status collapsed
30752
30753 \begin_layout Plain Layout
30754 InputFormat
30755 \begin_inset space ~
30756 \end_inset
30757
30758 <format>
30759 \end_layout
30760
30761 \end_inset
30762
30763  The file format of the original file.
30764  This must be the name of a format that is known to \SpecialChar LyX
30765  (see 
30766 \begin_inset CommandInset ref
30767 LatexCommand ref
30768 reference "sec:Formats"
30769
30770 \end_inset
30771
30772 ).
30773  Use 
30774 \begin_inset Quotes eld
30775 \end_inset
30776
30777
30778 \begin_inset Flex Code
30779 status collapsed
30780
30781 \begin_layout Plain Layout
30782 *
30783 \end_layout
30784
30785 \end_inset
30786
30787
30788 \begin_inset Quotes erd
30789 \end_inset
30790
30791  if the template can handle original files of more than one format.
30792  \SpecialChar LyX
30793  will attempt to interrogate the file itself in order to deduce its format
30794  in this case.
30795  This command must occur exactly once.
30796 \end_layout
30797
30798 \begin_layout Description
30799 \begin_inset Flex Code
30800 status collapsed
30801
30802 \begin_layout Plain Layout
30803 Template
30804 \begin_inset space ~
30805 \end_inset
30806
30807 <id>
30808 \end_layout
30809
30810 \end_inset
30811
30812  A unique name for the template.
30813  It must not contain substitution macros (see below).
30814 \end_layout
30815
30816 \begin_layout Description
30817 \begin_inset Flex Code
30818 status collapsed
30819
30820 \begin_layout Plain Layout
30821 Transform
30822 \begin_inset space ~
30823 \end_inset
30824
30825 Rotate|Resize|Clip|Extra
30826 \end_layout
30827
30828 \end_inset
30829
30830  This command specifies which transformations are supported by this template.
30831  It may occur zero or more times.
30832  This command enables the corresponding tabs in the external dialog.
30833  Each 
30834 \begin_inset Flex Code
30835 status collapsed
30836
30837 \begin_layout Plain Layout
30838 Transform
30839 \end_layout
30840
30841 \end_inset
30842
30843  command must have either a corresponding 
30844 \begin_inset Flex Code
30845 status collapsed
30846
30847 \begin_layout Plain Layout
30848 TransformCommand
30849 \end_layout
30850
30851 \end_inset
30852
30853  or a 
30854 \begin_inset Flex Code
30855 status collapsed
30856
30857 \begin_layout Plain Layout
30858 TransformOption
30859 \end_layout
30860
30861 \end_inset
30862
30863  command in the 
30864 \begin_inset Flex Code
30865 status collapsed
30866
30867 \begin_layout Plain Layout
30868 Format
30869 \end_layout
30870
30871 \end_inset
30872
30873  section.
30874  Otherwise the transformation will not be supported by that format.
30875 \end_layout
30876
30877 \begin_layout Subsection
30878 The Format section
30879 \end_layout
30880
30881 \begin_layout Description
30882 \begin_inset Flex Code
30883 status collapsed
30884
30885 \begin_layout Plain Layout
30886 Format
30887 \begin_inset space ~
30888 \end_inset
30889
30890 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
30891 \end_layout
30892
30893 \end_inset
30894
30895  The primary document file format that this format definition is for.
30896  Not every template has a sensible representation in all document file formats.
30897  Please define nevertheless a 
30898 \begin_inset Flex Code
30899 status collapsed
30900
30901 \begin_layout Plain Layout
30902 Format
30903 \end_layout
30904
30905 \end_inset
30906
30907  section for all templates.
30908  Use a dummy text when no representation is available.
30909  Then you can at least see a reference to the external material in the exported
30910  document.
30911 \end_layout
30912
30913 \begin_layout Description
30914 \begin_inset Flex Code
30915 status collapsed
30916
30917 \begin_layout Plain Layout
30918 Option
30919 \begin_inset space ~
30920 \end_inset
30921
30922 <name>
30923 \begin_inset space ~
30924 \end_inset
30925
30926 <value>
30927 \end_layout
30928
30929 \end_inset
30930
30931  This command defines an additional macro 
30932 \begin_inset Flex Code
30933 status collapsed
30934
30935 \begin_layout Plain Layout
30936 $$<name>
30937 \end_layout
30938
30939 \end_inset
30940
30941  for substitution in 
30942 \begin_inset Flex Code
30943 status collapsed
30944
30945 \begin_layout Plain Layout
30946 Product
30947 \end_layout
30948
30949 \end_inset
30950
30951 .
30952  
30953 \begin_inset Flex Code
30954 status collapsed
30955
30956 \begin_layout Plain Layout
30957 <value>
30958 \end_layout
30959
30960 \end_inset
30961
30962  itself may contain substitution macros.
30963  The advantage over using 
30964 \begin_inset Flex Code
30965 status collapsed
30966
30967 \begin_layout Plain Layout
30968 <value>
30969 \end_layout
30970
30971 \end_inset
30972
30973  directly in 
30974 \begin_inset Flex Code
30975 status collapsed
30976
30977 \begin_layout Plain Layout
30978 Product
30979 \end_layout
30980
30981 \end_inset
30982
30983  is that the substituted value of 
30984 \begin_inset Flex Code
30985 status collapsed
30986
30987 \begin_layout Plain Layout
30988 $$<name>
30989 \end_layout
30990
30991 \end_inset
30992
30993  is sanitized so that it is a valid optional argument in the document format.
30994  This command may occur zero or more times.
30995 \end_layout
30996
30997 \begin_layout Description
30998 \begin_inset Flex Code
30999 status collapsed
31000
31001 \begin_layout Plain Layout
31002 Product
31003 \begin_inset space ~
31004 \end_inset
31005
31006 <text>
31007 \end_layout
31008
31009 \end_inset
31010
31011  The text that is inserted in the exported document.
31012  This is actually the most important command and can be quite complex.
31013  This command must occur exactly once.
31014 \end_layout
31015
31016 \begin_layout Description
31017 \begin_inset Flex Code
31018 status collapsed
31019
31020 \begin_layout Plain Layout
31021 Preamble
31022 \begin_inset space ~
31023 \end_inset
31024
31025 <name>
31026 \end_layout
31027
31028 \end_inset
31029
31030  This command specifies a preamble snippet that will be included in the
31031  \SpecialChar LaTeX
31032  preamble.
31033  It has to be defined using 
31034 \begin_inset Flex Code
31035 status collapsed
31036
31037 \begin_layout Plain Layout
31038 PreambleDef
31039 \end_layout
31040
31041 \end_inset
31042
31043  \SpecialChar ldots
31044  
31045 \begin_inset Flex Code
31046 status collapsed
31047
31048 \begin_layout Plain Layout
31049 PreambleDefEnd
31050 \end_layout
31051
31052 \end_inset
31053
31054 .
31055  This command may occur zero or more times.
31056 \end_layout
31057
31058 \begin_layout Description
31059 \begin_inset Flex Code
31060 status collapsed
31061
31062 \begin_layout Plain Layout
31063 ReferencedFile
31064 \begin_inset space ~
31065 \end_inset
31066
31067 <format>
31068 \begin_inset space ~
31069 \end_inset
31070
31071 <filename>
31072 \end_layout
31073
31074 \end_inset
31075
31076  This command denotes files that are created by the conversion process and
31077  are needed for a particular export format.
31078  If the filename is relative, it is interpreted relative to the master document.
31079  This command may be given zero or more times.
31080 \end_layout
31081
31082 \begin_layout Description
31083 \begin_inset Flex Code
31084 status collapsed
31085
31086 \begin_layout Plain Layout
31087 Requirement
31088 \begin_inset space ~
31089 \end_inset
31090
31091 <package>
31092 \end_layout
31093
31094 \end_inset
31095
31096  The name of a required \SpecialChar LaTeX
31097  package.
31098  The package is included via 
31099 \begin_inset Flex Code
31100 status collapsed
31101
31102 \begin_layout Plain Layout
31103
31104 \backslash
31105 usepackage{}
31106 \end_layout
31107
31108 \end_inset
31109
31110  in the \SpecialChar LaTeX
31111  preamble.
31112  This command may occur zero or more times.
31113 \end_layout
31114
31115 \begin_layout Description
31116 \begin_inset Flex Code
31117 status collapsed
31118
31119 \begin_layout Plain Layout
31120 TransformCommand
31121 \begin_inset space ~
31122 \end_inset
31123
31124 Rotate
31125 \begin_inset space ~
31126 \end_inset
31127
31128 RotationLatexCommand
31129 \end_layout
31130
31131 \end_inset
31132
31133  This command specifies that the built in \SpecialChar LaTeX
31134  command should be used for rotation.
31135  This command may occur once or not at all.
31136 \end_layout
31137
31138 \begin_layout Description
31139 \begin_inset Flex Code
31140 status collapsed
31141
31142 \begin_layout Plain Layout
31143 TransformCommand
31144 \begin_inset space ~
31145 \end_inset
31146
31147 Resize
31148 \begin_inset space ~
31149 \end_inset
31150
31151 ResizeLatexCommand
31152 \end_layout
31153
31154 \end_inset
31155
31156  This command specifies that the built in \SpecialChar LaTeX
31157  command should be used for resizing.
31158  This command may occur once or not at all.
31159 \end_layout
31160
31161 \begin_layout Description
31162 \begin_inset Flex Code
31163 status collapsed
31164
31165 \begin_layout Plain Layout
31166 TransformOption
31167 \begin_inset space ~
31168 \end_inset
31169
31170 Rotate
31171 \begin_inset space ~
31172 \end_inset
31173
31174 RotationLatexOption
31175 \end_layout
31176
31177 \end_inset
31178
31179  This command specifies that rotation is done via an optional argument.
31180  This command may occur once or not at all.
31181 \end_layout
31182
31183 \begin_layout Description
31184 \begin_inset Flex Code
31185 status collapsed
31186
31187 \begin_layout Plain Layout
31188 TransformOption
31189 \begin_inset space ~
31190 \end_inset
31191
31192 Resize
31193 \begin_inset space ~
31194 \end_inset
31195
31196 ResizeLatexOption
31197 \end_layout
31198
31199 \end_inset
31200
31201  This command specifies that resizing is done via an optional argument.
31202  This command may occur once or not at all.
31203 \end_layout
31204
31205 \begin_layout Description
31206 \begin_inset Flex Code
31207 status collapsed
31208
31209 \begin_layout Plain Layout
31210 TransformOption
31211 \begin_inset space ~
31212 \end_inset
31213
31214 Clip
31215 \begin_inset space ~
31216 \end_inset
31217
31218 ClipLatexOption
31219 \end_layout
31220
31221 \end_inset
31222
31223  This command specifies that clipping is done via an optional argument.
31224  This command may occur once or not at all.
31225 \end_layout
31226
31227 \begin_layout Description
31228 \begin_inset Flex Code
31229 status collapsed
31230
31231 \begin_layout Plain Layout
31232 TransformOption
31233 \begin_inset space ~
31234 \end_inset
31235
31236 Extra
31237 \begin_inset space ~
31238 \end_inset
31239
31240 ExtraLatexOption
31241 \end_layout
31242
31243 \end_inset
31244
31245  This command specifies that an extra optional argument is used.
31246  This command may occur once or not at all.
31247 \end_layout
31248
31249 \begin_layout Description
31250 \begin_inset Flex Code
31251 status collapsed
31252
31253 \begin_layout Plain Layout
31254 UpdateFormat
31255 \begin_inset space ~
31256 \end_inset
31257
31258 <format>
31259 \end_layout
31260
31261 \end_inset
31262
31263  The file format of the converted file.
31264  This must be the name of a format that is known to \SpecialChar LyX
31265  (see the 
31266 \begin_inset Flex Noun
31267 status collapsed
31268
31269 \begin_layout Plain Layout
31270 Tools\SpecialChar menuseparator
31271 Preferences\SpecialChar menuseparator
31272 File Handling\SpecialChar menuseparator
31273 File Format
31274 \end_layout
31275
31276 \end_inset
31277
31278  dialog).
31279  This command must occur exactly once.
31280  If the resulting file format is PDF, you need to specify the format 
31281 \begin_inset Flex Code
31282 status collapsed
31283
31284 \begin_layout Plain Layout
31285 pdf6
31286 \end_layout
31287
31288 \end_inset
31289
31290 .
31291  This is the PDF format used for including graphics.
31292  The other defined PDF formats are for document export.
31293 \end_layout
31294
31295 \begin_layout Description
31296 \begin_inset Flex Code
31297 status collapsed
31298
31299 \begin_layout Plain Layout
31300 UpdateResult
31301 \begin_inset space ~
31302 \end_inset
31303
31304 <filename>
31305 \end_layout
31306
31307 \end_inset
31308
31309  The file name of the converted file.
31310  The file name must be absolute.
31311  This command must occur exactly once.
31312 \end_layout
31313
31314 \begin_layout Subsection
31315 Preamble definitions
31316 \end_layout
31317
31318 \begin_layout Standard
31319 The external template configuration file may contain additional preamble
31320  definitions enclosed by 
31321 \begin_inset Flex Code
31322 status collapsed
31323
31324 \begin_layout Plain Layout
31325 PreambleDef
31326 \end_layout
31327
31328 \end_inset
31329
31330  \SpecialChar ldots
31331  
31332 \begin_inset Flex Code
31333 status collapsed
31334
31335 \begin_layout Plain Layout
31336 PreambleDefEnd
31337 \end_layout
31338
31339 \end_inset
31340
31341 .
31342  They can be used by the templates in the 
31343 \begin_inset Flex Code
31344 status collapsed
31345
31346 \begin_layout Plain Layout
31347 Format
31348 \end_layout
31349
31350 \end_inset
31351
31352  section.
31353 \end_layout
31354
31355 \begin_layout Section
31356 The substitution mechanism
31357 \end_layout
31358
31359 \begin_layout Standard
31360 When the external material facility invokes an external program, it is done
31361  on the basis of a command defined in the template configuration file.
31362  These commands can contain various macros that are expanded before execution.
31363  Execution always take place in the directory of the containing document.
31364 \end_layout
31365
31366 \begin_layout Standard
31367 Also, whenever external material is to be displayed, the name will be produced
31368  by the substitution mechanism, and most other commands in the template
31369  definition support substitution as well.
31370 \end_layout
31371
31372 \begin_layout Standard
31373 The available macros are the following:
31374 \end_layout
31375
31376 \begin_layout Description
31377 \begin_inset Flex Code
31378 status collapsed
31379
31380 \begin_layout Plain Layout
31381 $$AbsOrRelPathMaster
31382 \end_layout
31383
31384 \end_inset
31385
31386  The file path, absolute or relative to the master \SpecialChar LyX
31387  document.
31388 \end_layout
31389
31390 \begin_layout Description
31391 \begin_inset Flex Code
31392 status collapsed
31393
31394 \begin_layout Plain Layout
31395 $$AbsOrRelPathParent
31396 \end_layout
31397
31398 \end_inset
31399
31400  The file path, absolute or relative to the \SpecialChar LyX
31401  document.
31402 \end_layout
31403
31404 \begin_layout Description
31405 \begin_inset Flex Code
31406 status collapsed
31407
31408 \begin_layout Plain Layout
31409 $$AbsPath
31410 \end_layout
31411
31412 \end_inset
31413
31414  The absolute file path.
31415 \end_layout
31416
31417 \begin_layout Description
31418 \begin_inset Flex Code
31419 status collapsed
31420
31421 \begin_layout Plain Layout
31422 $$Basename
31423 \end_layout
31424
31425 \end_inset
31426
31427  The filename without path and without the extension.
31428 \end_layout
31429
31430 \begin_layout Description
31431 \begin_inset Flex Code
31432 status collapsed
31433
31434 \begin_layout Plain Layout
31435 $$Contents(
31436 \begin_inset Quotes eld
31437 \end_inset
31438
31439 filename.ext
31440 \begin_inset Quotes erd
31441 \end_inset
31442
31443 )
31444 \end_layout
31445
31446 \end_inset
31447
31448  This macro will expand to the contents of the file with the name 
31449 \begin_inset Flex Code
31450 status collapsed
31451
31452 \begin_layout Plain Layout
31453 filename.ext
31454 \end_layout
31455
31456 \end_inset
31457
31458 .
31459 \end_layout
31460
31461 \begin_layout Description
31462 \begin_inset Flex Code
31463 status collapsed
31464
31465 \begin_layout Plain Layout
31466 $$Extension
31467 \end_layout
31468
31469 \end_inset
31470
31471  The file extension (including the dot).
31472 \end_layout
31473
31474 \begin_layout Description
31475 \begin_inset Flex Code
31476 status collapsed
31477
31478 \begin_layout Plain Layout
31479 $$pngOrjpg
31480 \end_layout
31481
31482 \end_inset
31483
31484  This will be the string 
31485 \begin_inset Quotes eld
31486 \end_inset
31487
31488 jpg
31489 \begin_inset Quotes erd
31490 \end_inset
31491
31492  if the file is in JPEG format, otherwise it will be the string 
31493 \begin_inset Quotes eld
31494 \end_inset
31495
31496 png
31497 \begin_inset Quotes erd
31498 \end_inset
31499
31500 .
31501  This is useful to avoid uneeded conversions for output formats that support
31502  both PNG and JPEG fomats.
31503  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
31504  output
31505  format.
31506 \end_layout
31507
31508 \begin_layout Description
31509 \begin_inset Flex Code
31510 status collapsed
31511
31512 \begin_layout Plain Layout
31513 $$FName
31514 \end_layout
31515
31516 \end_inset
31517
31518  The filename of the file specified in the external material dialog.
31519  This is either an absolute name, or it is relative to the \SpecialChar LyX
31520  document.
31521 \end_layout
31522
31523 \begin_layout Description
31524 \begin_inset Flex Code
31525 status collapsed
31526
31527 \begin_layout Plain Layout
31528 $$FPath
31529 \end_layout
31530
31531 \end_inset
31532
31533  The path part of 
31534 \begin_inset Flex Code
31535 status collapsed
31536
31537 \begin_layout Plain Layout
31538 $$FName
31539 \end_layout
31540
31541 \end_inset
31542
31543  (absolute name or relative to the \SpecialChar LyX
31544  document).
31545 \end_layout
31546
31547 \begin_layout Description
31548 \begin_inset Flex Code
31549 status collapsed
31550
31551 \begin_layout Plain Layout
31552 $$RelPathMaster
31553 \end_layout
31554
31555 \end_inset
31556
31557  The file path, relative to the master \SpecialChar LyX
31558  document.
31559 \end_layout
31560
31561 \begin_layout Description
31562 \begin_inset Flex Code
31563 status collapsed
31564
31565 \begin_layout Plain Layout
31566 $$RelPathParent
31567 \end_layout
31568
31569 \end_inset
31570
31571  The file path, relative to the \SpecialChar LyX
31572  document.
31573 \end_layout
31574
31575 \begin_layout Description
31576 \begin_inset Flex Code
31577 status collapsed
31578
31579 \begin_layout Plain Layout
31580 $$Sysdir
31581 \end_layout
31582
31583 \end_inset
31584
31585  This macro will expand to the absolute path of the system directory.
31586  This is typically used to point to the various helper scripts that are
31587  bundled with \SpecialChar LyX
31588 .
31589 \end_layout
31590
31591 \begin_layout Description
31592 \begin_inset Flex Code
31593 status collapsed
31594
31595 \begin_layout Plain Layout
31596 $$Tempname
31597 \end_layout
31598
31599 \end_inset
31600
31601  A name and full path to a temporary file which will be automatically deleted
31602  whenever the containing document is closed, or the external material insertion
31603  deleted.
31604 \end_layout
31605
31606 \begin_layout Standard
31607 All path macros contain a trailing directory separator, so you can construct
31608  e.
31609 \begin_inset space \thinspace{}
31610 \end_inset
31611
31612 g.
31613 \begin_inset space \space{}
31614 \end_inset
31615
31616 the absolute filename with 
31617 \begin_inset Flex Code
31618 status collapsed
31619
31620 \begin_layout Plain Layout
31621 $$AbsPath$$Basename$$Extension
31622 \end_layout
31623
31624 \end_inset
31625
31626 .
31627 \end_layout
31628
31629 \begin_layout Standard
31630 The macros above are substituted in all commands unless otherwise noted.
31631  The command 
31632 \begin_inset Flex Code
31633 status collapsed
31634
31635 \begin_layout Plain Layout
31636 Product
31637 \end_layout
31638
31639 \end_inset
31640
31641  supports additionally the following substitutions if they are enabled by
31642  the 
31643 \begin_inset Flex Code
31644 status collapsed
31645
31646 \begin_layout Plain Layout
31647 Transform
31648 \end_layout
31649
31650 \end_inset
31651
31652  and 
31653 \begin_inset Flex Code
31654 status collapsed
31655
31656 \begin_layout Plain Layout
31657 TransformCommand
31658 \end_layout
31659
31660 \end_inset
31661
31662  commands:
31663 \end_layout
31664
31665 \begin_layout Description
31666 \begin_inset Flex Code
31667 status collapsed
31668
31669 \begin_layout Plain Layout
31670 $$ResizeFront
31671 \end_layout
31672
31673 \end_inset
31674
31675  The front part of the resize command.
31676 \end_layout
31677
31678 \begin_layout Description
31679 \begin_inset Flex Code
31680 status collapsed
31681
31682 \begin_layout Plain Layout
31683 $$ResizeBack
31684 \end_layout
31685
31686 \end_inset
31687
31688  The back part of the resize command.
31689 \end_layout
31690
31691 \begin_layout Description
31692 \begin_inset Flex Code
31693 status collapsed
31694
31695 \begin_layout Plain Layout
31696 $$RotateFront
31697 \end_layout
31698
31699 \end_inset
31700
31701  The front part of the rotation command.
31702 \end_layout
31703
31704 \begin_layout Description
31705 \begin_inset Flex Code
31706 status collapsed
31707
31708 \begin_layout Plain Layout
31709 $$RotateBack
31710 \end_layout
31711
31712 \end_inset
31713
31714  The back part of the rotation command.
31715 \end_layout
31716
31717 \begin_layout Standard
31718 The value string of the 
31719 \begin_inset Flex Code
31720 status collapsed
31721
31722 \begin_layout Plain Layout
31723 Option
31724 \end_layout
31725
31726 \end_inset
31727
31728  command supports additionally the following substitutions if they are enabled
31729  by the 
31730 \begin_inset Flex Code
31731 status collapsed
31732
31733 \begin_layout Plain Layout
31734 Transform
31735 \end_layout
31736
31737 \end_inset
31738
31739  and 
31740 \begin_inset Flex Code
31741 status collapsed
31742
31743 \begin_layout Plain Layout
31744 TransformOption
31745 \end_layout
31746
31747 \end_inset
31748
31749  commands:
31750 \end_layout
31751
31752 \begin_layout Description
31753 \begin_inset Flex Code
31754 status collapsed
31755
31756 \begin_layout Plain Layout
31757 $$Clip
31758 \end_layout
31759
31760 \end_inset
31761
31762  The clip option.
31763 \end_layout
31764
31765 \begin_layout Description
31766 \begin_inset Flex Code
31767 status collapsed
31768
31769 \begin_layout Plain Layout
31770 $$Extra
31771 \end_layout
31772
31773 \end_inset
31774
31775  The extra option.
31776 \end_layout
31777
31778 \begin_layout Description
31779 \begin_inset Flex Code
31780 status collapsed
31781
31782 \begin_layout Plain Layout
31783 $$Resize
31784 \end_layout
31785
31786 \end_inset
31787
31788  The resize option.
31789 \end_layout
31790
31791 \begin_layout Description
31792 \begin_inset Flex Code
31793 status collapsed
31794
31795 \begin_layout Plain Layout
31796 $$Rotate
31797 \end_layout
31798
31799 \end_inset
31800
31801  The rotation option.
31802 \end_layout
31803
31804 \begin_layout Standard
31805 You may ask why there are so many path macros.
31806  There are mainly two reasons:
31807 \end_layout
31808
31809 \begin_layout Enumerate
31810 Relative and absolute file names should remain relative or absolute, respectivel
31811 y.
31812  Users may have reasons to prefer either form.
31813  Relative names are useful for portable documents that should work on different
31814  machines, for example.
31815  Absolute names may be required by some programs.
31816 \end_layout
31817
31818 \begin_layout Enumerate
31819 \SpecialChar LaTeX
31820  treats relative file names differently than \SpecialChar LyX
31821  and other programs in nested
31822  included files.
31823  For \SpecialChar LyX
31824 , a relative file name is always relative to the document that contains
31825  the file name.
31826  For \SpecialChar LaTeX
31827 , it is always relative to the master document.
31828  These two definitions are identical if you have only one document, but
31829  differ if you have a master document that includes part documents.
31830  That means that relative filenames must be transformed when presented to
31831  \SpecialChar LaTeX
31832 .
31833  Fortunately \SpecialChar LyX
31834  does this automatically for you if you choose the right macros.
31835 \end_layout
31836
31837 \begin_layout Standard
31838 So which path macro should be used in new template definitions? The rule
31839  is not difficult:
31840 \end_layout
31841
31842 \begin_layout Itemize
31843 Use 
31844 \begin_inset Flex Code
31845 status collapsed
31846
31847 \begin_layout Plain Layout
31848 $$AbsPath
31849 \end_layout
31850
31851 \end_inset
31852
31853  if an absolute path is required.
31854 \end_layout
31855
31856 \begin_layout Itemize
31857 Use 
31858 \begin_inset Flex Code
31859 status collapsed
31860
31861 \begin_layout Plain Layout
31862 $$AbsOrRelPathMaster
31863 \end_layout
31864
31865 \end_inset
31866
31867  if the substituted string is some kind of \SpecialChar LaTeX
31868  input.
31869 \end_layout
31870
31871 \begin_layout Itemize
31872 Else use 
31873 \begin_inset Flex Code
31874 status collapsed
31875
31876 \begin_layout Plain Layout
31877 $$AbsOrRelPathParent
31878 \end_layout
31879
31880 \end_inset
31881
31882  in order to preserve the user's choice.
31883 \end_layout
31884
31885 \begin_layout Standard
31886 There are special cases where this rule does not work and e.
31887 \begin_inset space \thinspace{}
31888 \end_inset
31889
31890 g.
31891 \begin_inset space \space{}
31892 \end_inset
31893
31894 relative names are needed, but normally it will work just fine.
31895  One example for such a case is the command 
31896 \begin_inset Flex Code
31897 status collapsed
31898
31899 \begin_layout Plain Layout
31900 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
31901 \end_layout
31902
31903 \end_inset
31904
31905  in the XFig template above: We can't use the absolute name because the
31906  copier for 
31907 \begin_inset Flex Code
31908 status collapsed
31909
31910 \begin_layout Plain Layout
31911 .pstex_t
31912 \end_layout
31913
31914 \end_inset
31915
31916  files needs the relative name in order to rewrite the file content.
31917 \end_layout
31918
31919 \begin_layout Section
31920 Security discussion
31921 \begin_inset CommandInset label
31922 LatexCommand label
31923 name "sec:Security-discussion"
31924
31925 \end_inset
31926
31927
31928 \end_layout
31929
31930 \begin_layout Standard
31931 The external material feature interfaces with a lot of external programs
31932  and does so automatically, so we have to consider the security implications
31933  of this.
31934  In particular, since you have the option of including your own filenames
31935  and/or parameter strings and those are expanded into a command, it seems
31936  that it would be possible to create a malicious document which executes
31937  arbitrary commands when a user views or prints the document.
31938  This is something we definitely want to avoid.
31939 \end_layout
31940
31941 \begin_layout Standard
31942 However, since the external program commands are specified in the template
31943  configuration file only, there are no security issues if \SpecialChar LyX
31944  is properly configure
31945 d with safe templates only.
31946  This is so because the external programs are invoked with the 
31947 \begin_inset Flex Code
31948 status collapsed
31949
31950 \begin_layout Plain Layout
31951 execvp
31952 \end_layout
31953
31954 \end_inset
31955
31956 -system call rather than the 
31957 \begin_inset Flex Code
31958 status collapsed
31959
31960 \begin_layout Plain Layout
31961 system
31962 \end_layout
31963
31964 \end_inset
31965
31966  system-call, so it's not possible to execute arbitrary commands from the
31967  filename or parameter section via the shell.
31968 \end_layout
31969
31970 \begin_layout Standard
31971 This also implies that you are restricted in what command strings you can
31972  use in the external material templates.
31973  In particular, pipes and redirection are not readily available.
31974  This has to be so if \SpecialChar LyX
31975  should remain safe.
31976  If you want to use some of the shell features, you should write a safe
31977  script to do this in a controlled manner, and then invoke the script from
31978  the command string.
31979  
31980 \end_layout
31981
31982 \begin_layout Standard
31983 It is possible to design a template that interacts directly with the shell,
31984  but since this would allow a malicious user to execute arbitrary commands
31985  by writing clever filenames and/or parameters, we generally recommend that
31986  you only use safe scripts that work with the 
31987 \begin_inset Flex Code
31988 status collapsed
31989
31990 \begin_layout Plain Layout
31991 execvp
31992 \end_layout
31993
31994 \end_inset
31995
31996  system call in a controlled manner.
31997  Of course, for use in a controlled environment, it can be tempting to just
31998  fall back to use ordinary shell scripts.
31999  If you do so, be aware that you 
32000 \emph on
32001 will
32002 \emph default
32003  provide an easily exploitable security hole in your system.
32004  Of course it stands to reason that such unsafe templates will never be
32005  included in the standard \SpecialChar LyX
32006  distribution, although we do encourage people
32007  to submit new templates in the open source tradition.
32008  But \SpecialChar LyX
32009  as shipped from the official distribution channels will never have
32010  unsafe templates.
32011 \end_layout
32012
32013 \begin_layout Standard
32014 Including external material provides a lot of power, and you have to be
32015  careful not to introduce security hazards with this power.
32016  A subtle error in a single line in an innocent looking script can open
32017  the door to huge security problems.
32018  So if you do not fully understand the issues, we recommend that you consult
32019  a knowledgeable security professional or the \SpecialChar LyX
32020  development team if you have
32021  any questions about whether a given template is safe or not.
32022  And do this before you use it in an uncontrolled environment.
32023 \end_layout
32024
32025 \begin_layout Chapter
32026 \start_of_appendix
32027 List of supported \SpecialChar LyX
32028  functions to be used in layouts
32029 \begin_inset CommandInset label
32030 LatexCommand label
32031 name "chap:List-of-functions"
32032
32033 \end_inset
32034
32035
32036 \end_layout
32037
32038 \begin_layout Standard
32039 \align center
32040 \begin_inset Tabular
32041 <lyxtabular version="3" rows="11" columns="8">
32042 <features tabularvalignment="middle">
32043 <column alignment="left" valignment="top">
32044 <column alignment="left" valignment="top">
32045 <column alignment="left" valignment="top">
32046 <column alignment="left" valignment="top">
32047 <column alignment="left" valignment="top">
32048 <column alignment="left" valignment="top">
32049 <column alignment="left" valignment="top">
32050 <column alignment="left" valignment="top">
32051 <row>
32052 <cell alignment="left" valignment="top" usebox="none">
32053 \begin_inset Text
32054
32055 \begin_layout Plain Layout
32056 accents
32057 \end_layout
32058
32059 \end_inset
32060 </cell>
32061 <cell alignment="left" valignment="top" usebox="none">
32062 \begin_inset Text
32063
32064 \begin_layout Plain Layout
32065 booktabs
32066 \end_layout
32067
32068 \end_inset
32069 </cell>
32070 <cell alignment="left" valignment="top" usebox="none">
32071 \begin_inset Text
32072
32073 \begin_layout Plain Layout
32074 feyn
32075 \end_layout
32076
32077 \end_inset
32078 </cell>
32079 <cell alignment="left" valignment="top" usebox="none">
32080 \begin_inset Text
32081
32082 \begin_layout Plain Layout
32083 listings
32084 \end_layout
32085
32086 \end_inset
32087 </cell>
32088 <cell alignment="center" valignment="top" usebox="none">
32089 \begin_inset Text
32090
32091 \begin_layout Plain Layout
32092 natbib
32093 \end_layout
32094
32095 \end_inset
32096 </cell>
32097 <cell alignment="center" valignment="top" usebox="none">
32098 \begin_inset Text
32099
32100 \begin_layout Plain Layout
32101 rotfloat
32102 \end_layout
32103
32104 \end_inset
32105 </cell>
32106 <cell alignment="center" valignment="top" usebox="none">
32107 \begin_inset Text
32108
32109 \begin_layout Plain Layout
32110 tfrupee
32111 \end_layout
32112
32113 \end_inset
32114 </cell>
32115 <cell alignment="center" valignment="top" usebox="none">
32116 \begin_inset Text
32117
32118 \begin_layout Plain Layout
32119 wasysym
32120 \end_layout
32121
32122 \end_inset
32123 </cell>
32124 </row>
32125 <row>
32126 <cell alignment="left" valignment="top" usebox="none">
32127 \begin_inset Text
32128
32129 \begin_layout Plain Layout
32130 amsbsy
32131 \end_layout
32132
32133 \end_inset
32134 </cell>
32135 <cell alignment="left" valignment="top" usebox="none">
32136 \begin_inset Text
32137
32138 \begin_layout Plain Layout
32139 calc
32140 \end_layout
32141
32142 \end_inset
32143 </cell>
32144 <cell alignment="left" valignment="top" usebox="none">
32145 \begin_inset Text
32146
32147 \begin_layout Plain Layout
32148 fixltx2e
32149 \end_layout
32150
32151 \end_inset
32152 </cell>
32153 <cell alignment="left" valignment="top" usebox="none">
32154 \begin_inset Text
32155
32156 \begin_layout Plain Layout
32157 longtable
32158 \end_layout
32159
32160 \end_inset
32161 </cell>
32162 <cell alignment="center" valignment="top" usebox="none">
32163 \begin_inset Text
32164
32165 \begin_layout Plain Layout
32166 nomencl
32167 \end_layout
32168
32169 \end_inset
32170 </cell>
32171 <cell alignment="center" valignment="top" usebox="none">
32172 \begin_inset Text
32173
32174 \begin_layout Plain Layout
32175 rsphrase
32176 \end_layout
32177
32178 \end_inset
32179 </cell>
32180 <cell alignment="center" valignment="top" usebox="none">
32181 \begin_inset Text
32182
32183 \begin_layout Plain Layout
32184 tipa
32185 \end_layout
32186
32187 \end_inset
32188 </cell>
32189 <cell alignment="center" valignment="top" usebox="none">
32190 \begin_inset Text
32191
32192 \begin_layout Plain Layout
32193 wrapfig
32194 \end_layout
32195
32196 \end_inset
32197 </cell>
32198 </row>
32199 <row>
32200 <cell alignment="left" valignment="top" usebox="none">
32201 \begin_inset Text
32202
32203 \begin_layout Plain Layout
32204 amscd
32205 \end_layout
32206
32207 \end_inset
32208 </cell>
32209 <cell alignment="left" valignment="top" usebox="none">
32210 \begin_inset Text
32211
32212 \begin_layout Plain Layout
32213 CJK
32214 \end_layout
32215
32216 \end_inset
32217 </cell>
32218 <cell alignment="left" valignment="top" usebox="none">
32219 \begin_inset Text
32220
32221 \begin_layout Plain Layout
32222 float
32223 \end_layout
32224
32225 \end_inset
32226 </cell>
32227 <cell alignment="left" valignment="top" usebox="none">
32228 \begin_inset Text
32229
32230 \begin_layout Plain Layout
32231 lyxskak
32232 \end_layout
32233
32234 \end_inset
32235 </cell>
32236 <cell alignment="center" valignment="top" usebox="none">
32237 \begin_inset Text
32238
32239 \begin_layout Plain Layout
32240 pdfcolmk
32241 \end_layout
32242
32243 \end_inset
32244 </cell>
32245 <cell alignment="center" valignment="top" usebox="none">
32246 \begin_inset Text
32247
32248 \begin_layout Plain Layout
32249 setspace
32250 \end_layout
32251
32252 \end_inset
32253 </cell>
32254 <cell alignment="center" valignment="top" usebox="none">
32255 \begin_inset Text
32256
32257 \begin_layout Plain Layout
32258 tipx
32259 \end_layout
32260
32261 \end_inset
32262 </cell>
32263 <cell alignment="center" valignment="top" usebox="none">
32264 \begin_inset Text
32265
32266 \begin_layout Plain Layout
32267 xargs
32268 \end_layout
32269
32270 \end_inset
32271 </cell>
32272 </row>
32273 <row>
32274 <cell alignment="left" valignment="top" usebox="none">
32275 \begin_inset Text
32276
32277 \begin_layout Plain Layout
32278 amsmath
32279 \end_layout
32280
32281 \end_inset
32282 </cell>
32283 <cell alignment="left" valignment="top" usebox="none">
32284 \begin_inset Text
32285
32286 \begin_layout Plain Layout
32287 color
32288 \end_layout
32289
32290 \end_inset
32291 </cell>
32292 <cell alignment="left" valignment="top" usebox="none">
32293 \begin_inset Text
32294
32295 \begin_layout Plain Layout
32296 framed
32297 \end_layout
32298
32299 \end_inset
32300 </cell>
32301 <cell alignment="left" valignment="top" usebox="none">
32302 \begin_inset Text
32303
32304 \begin_layout Plain Layout
32305 makeidx
32306 \end_layout
32307
32308 \end_inset
32309 </cell>
32310 <cell alignment="center" valignment="top" usebox="none">
32311 \begin_inset Text
32312
32313 \begin_layout Plain Layout
32314 pdfpages
32315 \end_layout
32316
32317 \end_inset
32318 </cell>
32319 <cell alignment="center" valignment="top" usebox="none">
32320 \begin_inset Text
32321
32322 \begin_layout Plain Layout
32323 shapepar
32324 \end_layout
32325
32326 \end_inset
32327 </cell>
32328 <cell alignment="center" valignment="top" usebox="none">
32329 \begin_inset Text
32330
32331 \begin_layout Plain Layout
32332 tone
32333 \end_layout
32334
32335 \end_inset
32336 </cell>
32337 <cell alignment="center" valignment="top" usebox="none">
32338 \begin_inset Text
32339
32340 \begin_layout Plain Layout
32341 xcolor
32342 \end_layout
32343
32344 \end_inset
32345 </cell>
32346 </row>
32347 <row>
32348 <cell alignment="left" valignment="top" usebox="none">
32349 \begin_inset Text
32350
32351 \begin_layout Plain Layout
32352 amssymb
32353 \end_layout
32354
32355 \end_inset
32356 </cell>
32357 <cell alignment="left" valignment="top" usebox="none">
32358 \begin_inset Text
32359
32360 \begin_layout Plain Layout
32361 covington
32362 \end_layout
32363
32364 \end_inset
32365 </cell>
32366 <cell alignment="left" valignment="top" usebox="none">
32367 \begin_inset Text
32368
32369 \begin_layout Plain Layout
32370 graphicx
32371 \end_layout
32372
32373 \end_inset
32374 </cell>
32375 <cell alignment="left" valignment="top" usebox="none">
32376 \begin_inset Text
32377
32378 \begin_layout Plain Layout
32379 marvosym
32380 \end_layout
32381
32382 \end_inset
32383 </cell>
32384 <cell alignment="center" valignment="top" usebox="none">
32385 \begin_inset Text
32386
32387 \begin_layout Plain Layout
32388 pifont
32389 \end_layout
32390
32391 \end_inset
32392 </cell>
32393 <cell alignment="center" valignment="top" usebox="none">
32394 \begin_inset Text
32395
32396 \begin_layout Plain Layout
32397 slashed
32398 \end_layout
32399
32400 \end_inset
32401 </cell>
32402 <cell alignment="center" valignment="top" usebox="none">
32403 \begin_inset Text
32404
32405 \begin_layout Plain Layout
32406 txfonts
32407 \end_layout
32408
32409 \end_inset
32410 </cell>
32411 <cell alignment="center" valignment="top" usebox="none">
32412 \begin_inset Text
32413
32414 \begin_layout Plain Layout
32415 xy
32416 \end_layout
32417
32418 \end_inset
32419 </cell>
32420 </row>
32421 <row>
32422 <cell alignment="left" valignment="top" usebox="none">
32423 \begin_inset Text
32424
32425 \begin_layout Plain Layout
32426 amstext
32427 \end_layout
32428
32429 \end_inset
32430 </cell>
32431 <cell alignment="left" valignment="top" usebox="none">
32432 \begin_inset Text
32433
32434 \begin_layout Plain Layout
32435 csquotes
32436 \end_layout
32437
32438 \end_inset
32439 </cell>
32440 <cell alignment="left" valignment="top" usebox="none">
32441 \begin_inset Text
32442
32443 \begin_layout Plain Layout
32444 hhline
32445 \end_layout
32446
32447 \end_inset
32448 </cell>
32449 <cell alignment="left" valignment="top" usebox="none">
32450 \begin_inset Text
32451
32452 \begin_layout Plain Layout
32453 mathdesign
32454 \end_layout
32455
32456 \end_inset
32457 </cell>
32458 <cell alignment="center" valignment="top" usebox="none">
32459 \begin_inset Text
32460
32461 \begin_layout Plain Layout
32462 pmboxdraw
32463 \end_layout
32464
32465 \end_inset
32466 </cell>
32467 <cell alignment="center" valignment="top" usebox="none">
32468 \begin_inset Text
32469
32470 \begin_layout Plain Layout
32471 soul
32472 \end_layout
32473
32474 \end_inset
32475 </cell>
32476 <cell alignment="center" valignment="top" usebox="none">
32477 \begin_inset Text
32478
32479 \begin_layout Plain Layout
32480 ulem
32481 \end_layout
32482
32483 \end_inset
32484 </cell>
32485 <cell alignment="center" valignment="top" usebox="none">
32486 \begin_inset Text
32487
32488 \begin_layout Plain Layout
32489 yhmath
32490 \end_layout
32491
32492 \end_inset
32493 </cell>
32494 </row>
32495 <row>
32496 <cell alignment="left" valignment="top" usebox="none">
32497 \begin_inset Text
32498
32499 \begin_layout Plain Layout
32500 amsthm
32501 \end_layout
32502
32503 \end_inset
32504 </cell>
32505 <cell alignment="left" valignment="top" usebox="none">
32506 \begin_inset Text
32507
32508 \begin_layout Plain Layout
32509 dvipost
32510 \end_layout
32511
32512 \end_inset
32513 </cell>
32514 <cell alignment="left" valignment="top" usebox="none">
32515 \begin_inset Text
32516
32517 \begin_layout Plain Layout
32518 hyperref
32519 \end_layout
32520
32521 \end_inset
32522 </cell>
32523 <cell alignment="left" valignment="top" usebox="none">
32524 \begin_inset Text
32525
32526 \begin_layout Plain Layout
32527 mathdots
32528 \end_layout
32529
32530 \end_inset
32531 </cell>
32532 <cell alignment="center" valignment="top" usebox="none">
32533 \begin_inset Text
32534
32535 \begin_layout Plain Layout
32536 polyglossia
32537 \end_layout
32538
32539 \end_inset
32540 </cell>
32541 <cell alignment="center" valignment="top" usebox="none">
32542 \begin_inset Text
32543
32544 \begin_layout Plain Layout
32545 splitidx
32546 \end_layout
32547
32548 \end_inset
32549 </cell>
32550 <cell alignment="center" valignment="top" usebox="none">
32551 \begin_inset Text
32552
32553 \begin_layout Plain Layout
32554 undertilde
32555 \end_layout
32556
32557 \end_inset
32558 </cell>
32559 <cell alignment="center" valignment="top" usebox="none">
32560 \begin_inset Text
32561
32562 \begin_layout Plain Layout
32563
32564 \end_layout
32565
32566 \end_inset
32567 </cell>
32568 </row>
32569 <row>
32570 <cell alignment="left" valignment="top" usebox="none">
32571 \begin_inset Text
32572
32573 \begin_layout Plain Layout
32574 array
32575 \end_layout
32576
32577 \end_inset
32578 </cell>
32579 <cell alignment="left" valignment="top" usebox="none">
32580 \begin_inset Text
32581
32582 \begin_layout Plain Layout
32583 endnotes
32584 \end_layout
32585
32586 \end_inset
32587 </cell>
32588 <cell alignment="left" valignment="top" usebox="none">
32589 \begin_inset Text
32590
32591 \begin_layout Plain Layout
32592 ifsym
32593 \end_layout
32594
32595 \end_inset
32596 </cell>
32597 <cell alignment="left" valignment="top" usebox="none">
32598 \begin_inset Text
32599
32600 \begin_layout Plain Layout
32601 mathrsfs
32602 \end_layout
32603
32604 \end_inset
32605 </cell>
32606 <cell alignment="center" valignment="top" usebox="none">
32607 \begin_inset Text
32608
32609 \begin_layout Plain Layout
32610 prettyref
32611 \end_layout
32612
32613 \end_inset
32614 </cell>
32615 <cell alignment="center" valignment="top" usebox="none">
32616 \begin_inset Text
32617
32618 \begin_layout Plain Layout
32619 subfig
32620 \end_layout
32621
32622 \end_inset
32623 </cell>
32624 <cell alignment="center" valignment="top" usebox="none">
32625 \begin_inset Text
32626
32627 \begin_layout Plain Layout
32628 units
32629 \end_layout
32630
32631 \end_inset
32632 </cell>
32633 <cell alignment="center" valignment="top" usebox="none">
32634 \begin_inset Text
32635
32636 \begin_layout Plain Layout
32637
32638 \end_layout
32639
32640 \end_inset
32641 </cell>
32642 </row>
32643 <row>
32644 <cell alignment="left" valignment="top" usebox="none">
32645 \begin_inset Text
32646
32647 \begin_layout Plain Layout
32648 ascii
32649 \end_layout
32650
32651 \end_inset
32652 </cell>
32653 <cell alignment="left" valignment="top" usebox="none">
32654 \begin_inset Text
32655
32656 \begin_layout Plain Layout
32657 enumitem
32658 \end_layout
32659
32660 \end_inset
32661 </cell>
32662 <cell alignment="left" valignment="top" usebox="none">
32663 \begin_inset Text
32664
32665 \begin_layout Plain Layout
32666 ifthen
32667 \end_layout
32668
32669 \end_inset
32670 </cell>
32671 <cell alignment="left" valignment="top" usebox="none">
32672 \begin_inset Text
32673
32674 \begin_layout Plain Layout
32675 mhchem
32676 \end_layout
32677
32678 \end_inset
32679 </cell>
32680 <cell alignment="center" valignment="top" usebox="none">
32681 \begin_inset Text
32682
32683 \begin_layout Plain Layout
32684 pxfonts
32685 \end_layout
32686
32687 \end_inset
32688 </cell>
32689 <cell alignment="center" valignment="top" usebox="none">
32690 \begin_inset Text
32691
32692 \begin_layout Plain Layout
32693 subscript
32694 \end_layout
32695
32696 \end_inset
32697 </cell>
32698 <cell alignment="center" valignment="top" usebox="none">
32699 \begin_inset Text
32700
32701 \begin_layout Plain Layout
32702 url
32703 \end_layout
32704
32705 \end_inset
32706 </cell>
32707 <cell alignment="center" valignment="top" usebox="none">
32708 \begin_inset Text
32709
32710 \begin_layout Plain Layout
32711
32712 \end_layout
32713
32714 \end_inset
32715 </cell>
32716 </row>
32717 <row>
32718 <cell alignment="left" valignment="top" usebox="none">
32719 \begin_inset Text
32720
32721 \begin_layout Plain Layout
32722 bbding
32723 \end_layout
32724
32725 \end_inset
32726 </cell>
32727 <cell alignment="left" valignment="top" usebox="none">
32728 \begin_inset Text
32729
32730 \begin_layout Plain Layout
32731 esint
32732 \end_layout
32733
32734 \end_inset
32735 </cell>
32736 <cell alignment="left" valignment="top" usebox="none">
32737 \begin_inset Text
32738
32739 \begin_layout Plain Layout
32740 jurabib
32741 \end_layout
32742
32743 \end_inset
32744 </cell>
32745 <cell alignment="left" valignment="top" usebox="none">
32746 \begin_inset Text
32747
32748 \begin_layout Plain Layout
32749 multicol
32750 \end_layout
32751
32752 \end_inset
32753 </cell>
32754 <cell alignment="center" valignment="top" usebox="none">
32755 \begin_inset Text
32756
32757 \begin_layout Plain Layout
32758 refstyle
32759 \end_layout
32760
32761 \end_inset
32762 </cell>
32763 <cell alignment="center" valignment="top" usebox="none">
32764 \begin_inset Text
32765
32766 \begin_layout Plain Layout
32767 textcomp
32768 \end_layout
32769
32770 \end_inset
32771 </cell>
32772 <cell alignment="center" valignment="top" usebox="none">
32773 \begin_inset Text
32774
32775 \begin_layout Plain Layout
32776 varioref
32777 \end_layout
32778
32779 \end_inset
32780 </cell>
32781 <cell alignment="center" valignment="top" usebox="none">
32782 \begin_inset Text
32783
32784 \begin_layout Plain Layout
32785
32786 \end_layout
32787
32788 \end_inset
32789 </cell>
32790 </row>
32791 <row>
32792 <cell alignment="center" valignment="top" usebox="none">
32793 \begin_inset Text
32794
32795 \begin_layout Plain Layout
32796 bm
32797 \end_layout
32798
32799 \end_inset
32800 </cell>
32801 <cell alignment="center" valignment="top" usebox="none">
32802 \begin_inset Text
32803
32804 \begin_layout Plain Layout
32805 fancybox
32806 \end_layout
32807
32808 \end_inset
32809 </cell>
32810 <cell alignment="center" valignment="top" usebox="none">
32811 \begin_inset Text
32812
32813 \begin_layout Plain Layout
32814 latexsym
32815 \end_layout
32816
32817 \end_inset
32818 </cell>
32819 <cell alignment="center" valignment="top" usebox="none">
32820 \begin_inset Text
32821
32822 \begin_layout Plain Layout
32823 multirow
32824 \end_layout
32825
32826 \end_inset
32827 </cell>
32828 <cell alignment="center" valignment="top" usebox="none">
32829 \begin_inset Text
32830
32831 \begin_layout Plain Layout
32832 rotating
32833 \end_layout
32834
32835 \end_inset
32836 </cell>
32837 <cell alignment="center" valignment="top" usebox="none">
32838 \begin_inset Text
32839
32840 \begin_layout Plain Layout
32841 textgreek
32842 \end_layout
32843
32844 \end_inset
32845 </cell>
32846 <cell alignment="center" valignment="top" usebox="none">
32847 \begin_inset Text
32848
32849 \begin_layout Plain Layout
32850 verbatim
32851 \end_layout
32852
32853 \end_inset
32854 </cell>
32855 <cell alignment="center" valignment="top" usebox="none">
32856 \begin_inset Text
32857
32858 \begin_layout Plain Layout
32859
32860 \end_layout
32861
32862 \end_inset
32863 </cell>
32864 </row>
32865 </lyxtabular>
32866
32867 \end_inset
32868
32869
32870 \end_layout
32871
32872 \begin_layout Chapter
32873 Names of available colors to be used in layouts
32874 \begin_inset CommandInset label
32875 LatexCommand label
32876 name "chap:Names-of-colors"
32877
32878 \end_inset
32879
32880
32881 \end_layout
32882
32883 \begin_layout Standard
32884 The colors listed below are the standard colors and those that you can adjust
32885  in the \SpecialChar LyX
32886  preferences.
32887 \end_layout
32888
32889 \begin_layout Section
32890 Color functions
32891 \end_layout
32892
32893 \begin_layout Standard
32894 The following are no real colors, but rather act on color definitions:
32895 \end_layout
32896
32897 \begin_layout Description
32898 ignore The color is ignored
32899 \end_layout
32900
32901 \begin_layout Description
32902 inherit The color is inherited
32903 \end_layout
32904
32905 \begin_layout Description
32906 none
32907 \family roman
32908 \series medium
32909 \shape up
32910 \size normal
32911 \emph off
32912 \bar no
32913 \strikeout off
32914 \uuline off
32915 \uwave off
32916 \noun off
32917 \color none
32918  No particular color – clear or default
32919 \end_layout
32920
32921 \begin_layout Section
32922 Static colors
32923 \end_layout
32924
32925 \begin_layout Standard
32926 These are fixed colors that cannot be customized
32927 \change_inserted -712698321 1607683177
32928 .
32929  Please do 
32930 \emph on
32931 not
32932 \emph default
32933  use these colors in layout definitions, since they will not work well with
32934  some color themes (such as dark themes)
32935 \change_unchanged
32936 :
32937 \end_layout
32938
32939 \begin_layout Description
32940 black
32941 \end_layout
32942
32943 \begin_layout Description
32944 white
32945 \end_layout
32946
32947 \begin_layout Description
32948 blue
32949 \end_layout
32950
32951 \begin_layout Description
32952 brown
32953 \end_layout
32954
32955 \begin_layout Description
32956 cyan
32957 \end_layout
32958
32959 \begin_layout Description
32960 darkgray
32961 \end_layout
32962
32963 \begin_layout Description
32964 gray
32965 \end_layout
32966
32967 \begin_layout Description
32968 green
32969 \end_layout
32970
32971 \begin_layout Description
32972 lightgray
32973 \end_layout
32974
32975 \begin_layout Description
32976 lime
32977 \end_layout
32978
32979 \begin_layout Description
32980 magenta
32981 \end_layout
32982
32983 \begin_layout Description
32984 olive
32985 \end_layout
32986
32987 \begin_layout Description
32988 orange
32989 \end_layout
32990
32991 \begin_layout Description
32992 pink
32993 \end_layout
32994
32995 \begin_layout Description
32996 purple
32997 \end_layout
32998
32999 \begin_layout Description
33000 red
33001 \end_layout
33002
33003 \begin_layout Description
33004 teal
33005 \end_layout
33006
33007 \begin_layout Description
33008 violet
33009 \end_layout
33010
33011 \begin_layout Description
33012 yellow
33013 \end_layout
33014
33015 \begin_layout Section
33016 Dynamic colors
33017 \end_layout
33018
33019 \begin_layout Standard
33020 These are the colors allocated to specific elements in 
33021 \begin_inset Info
33022 type  "menu"
33023 arg   "dialog-show prefs"
33024 \end_inset
33025
33026 :
33027 \end_layout
33028
33029 \begin_layout Description
33030 added_space Added space color
33031 \end_layout
33032
33033 \begin_layout Description
33034 addedtext Added text color
33035 \end_layout
33036
33037 \begin_layout Description
33038 appendix Appendix marker color
33039 \end_layout
33040
33041 \begin_layout Description
33042 background Background color
33043 \end_layout
33044
33045 \begin_layout Description
33046 bottomarea Bottom area color
33047 \end_layout
33048
33049 \begin_layout Description
33050 branchlabel Label color for branches
33051 \end_layout
33052
33053 \begin_layout Description
33054 buttonbg Color used for button background
33055 \end_layout
33056
33057 \begin_layout Description
33058 buttonframe Color for inset button frames
33059 \end_layout
33060
33061 \begin_layout Description
33062 buttonhoverbg Color used for button background under focus
33063 \end_layout
33064
33065 \begin_layout Description
33066 changebar Changebar color
33067 \end_layout
33068
33069 \begin_layout Description
33070 changedtextauthor1 Changed text color author 1
33071 \end_layout
33072
33073 \begin_layout Description
33074 changedtextauthor2 Changed text color author 2
33075 \end_layout
33076
33077 \begin_layout Description
33078 changedtextauthor3 Changed text color author 3
33079 \end_layout
33080
33081 \begin_layout Description
33082 changedtextauthor4 Changed text color author 4
33083 \end_layout
33084
33085 \begin_layout Description
33086 changedtextauthor5 Changed text color author 5
33087 \end_layout
33088
33089 \begin_layout Description
33090 collapsible Collapsible insets text color
33091 \end_layout
33092
33093 \begin_layout Description
33094 collapsibleframe Collapsible insets framecolor
33095 \end_layout
33096
33097 \begin_layout Description
33098 command Text color for command insets
33099 \end_layout
33100
33101 \begin_layout Description
33102 commandbg Background color for command insets
33103 \end_layout
33104
33105 \begin_layout Description
33106 commandframe Frame color for command insets
33107 \end_layout
33108
33109 \begin_layout Description
33110 comment Label color for comments
33111 \end_layout
33112
33113 \begin_layout Description
33114 commentbg Background color of comments
33115 \end_layout
33116
33117 \begin_layout Description
33118 cursor Cursor color
33119 \end_layout
33120
33121 \begin_layout Description
33122 deletedtext Deleted text color
33123 \end_layout
33124
33125 \begin_layout Description
33126 deletedtextmodifier Deleted text modifying color
33127 \end_layout
33128
33129 \begin_layout Description
33130 depthbar Color for the depth bars in the margin
33131 \end_layout
33132
33133 \begin_layout Description
33134 eolmarker End of line marker color
33135 \end_layout
33136
33137 \begin_layout Description
33138 error Color of the \SpecialChar LaTeX
33139  error box
33140 \end_layout
33141
33142 \begin_layout Description
33143 footlabel Label color for footnotes
33144 \end_layout
33145
33146 \begin_layout Description
33147 foreground Foreground color
33148 \end_layout
33149
33150 \begin_layout Description
33151 graphicsbg Graphics inset background color
33152 \end_layout
33153
33154 \begin_layout Description
33155 greyedoutbg Background color of greyedout inset
33156 \end_layout
33157
33158 \begin_layout Description
33159 greyedoutlabel Label color for greyedout insets
33160 \end_layout
33161
33162 \begin_layout Description
33163 greyedouttext Color for greyedout inset text
33164 \end_layout
33165
33166 \begin_layout Description
33167 indexlabel Label color for index insets
33168 \end_layout
33169
33170 \begin_layout Description
33171 inlinecompletion Inline completion color
33172 \end_layout
33173
33174 \begin_layout Description
33175 insetbg Inset marker background color
33176 \end_layout
33177
33178 \begin_layout Description
33179 insetframe Inset marker frame color
33180 \end_layout
33181
33182 \begin_layout Description
33183 language Color for marking foreign language words
33184 \end_layout
33185
33186 \begin_layout Description
33187 latex Text color in \SpecialChar LaTeX
33188  mode
33189 \end_layout
33190
33191 \begin_layout Description
33192 listingsbg Background color of listings inset
33193 \end_layout
33194
33195 \begin_layout Description
33196 marginlabel Label color for margin notes
33197 \end_layout
33198
33199 \begin_layout Description
33200 math Math inset text color
33201 \end_layout
33202
33203 \begin_layout Description
33204 mathbg Math inset background color
33205 \end_layout
33206
33207 \begin_layout Description
33208 mathcorners Math inset frame color not under focus
33209 \end_layout
33210
33211 \begin_layout Description
33212 mathframe Math inset frame color under focus
33213 \end_layout
33214
33215 \begin_layout Description
33216 mathline Math line color
33217 \end_layout
33218
33219 \begin_layout Description
33220 mathmacrobg Macro math inset background color
33221 \end_layout
33222
33223 \begin_layout Description
33224 mathmacroblend Macro math blended color
33225 \end_layout
33226
33227 \begin_layout Description
33228 mathmacroframe Macro math frame color
33229 \end_layout
33230
33231 \begin_layout Description
33232 mathmacrohoverbg Macro math inset background color hovered
33233 \end_layout
33234
33235 \begin_layout Description
33236 mathmacrolabel Macro math label color
33237 \end_layout
33238
33239 \begin_layout Description
33240 mathmacronewarg Macro template color for new parameters
33241 \end_layout
33242
33243 \begin_layout Description
33244 mathmacrooldarg Macro template color for old parameters
33245 \end_layout
33246
33247 \begin_layout Description
33248 newpage New page color
33249 \end_layout
33250
33251 \begin_layout Description
33252 nonunique_inlinecompletion Inline completion color for the non-unique part
33253 \end_layout
33254
33255 \begin_layout Description
33256 note Label color for notes
33257 \end_layout
33258
33259 \begin_layout Description
33260 notebg Background color of notes
33261 \end_layout
33262
33263 \begin_layout Description
33264 pagebreak Page break/line break color
33265 \end_layout
33266
33267 \begin_layout Description
33268 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
33269 \end_layout
33270
33271 \begin_layout Description
33272 phantomtext Text color for phantom insets
33273 \end_layout
33274
33275 \begin_layout Description
33276 preview The color used for previews
33277 \end_layout
33278
33279 \begin_layout Description
33280 previewframe Preview frame color
33281 \end_layout
33282
33283 \begin_layout Description
33284 regexpframe Color for regexp frame
33285 \end_layout
33286
33287 \begin_layout Description
33288 scroll Color that indicates when a row can be scrolled 
33289 \end_layout
33290
33291 \begin_layout Description
33292 selection Background color of selected text
33293 \end_layout
33294
33295 \begin_layout Description
33296 selectiontext Foreground color of selected text
33297 \end_layout
33298
33299 \begin_layout Description
33300 shadedbg Background color of shaded box
33301 \end_layout
33302
33303 \begin_layout Description
33304 special Special chars text color
33305 \end_layout
33306
33307 \begin_layout Description
33308 tabularline Table line color
33309 \end_layout
33310
33311 \begin_layout Description
33312 tabularonoffline Table line color
33313 \change_inserted -712698321 1607682522
33314
33315 \end_layout
33316
33317 \begin_layout Description
33318
33319 \change_inserted -712698321 1607682563
33320 textlabel1 Color 1 of layout and custom inset labels
33321 \end_layout
33322
33323 \begin_layout Description
33324
33325 \change_inserted -712698321 1607682565
33326 textlabel2 Color 2 of layout and custom inset labels
33327 \end_layout
33328
33329 \begin_layout Description
33330
33331 \change_inserted -712698321 1607682568
33332 textlabel3 Color 3 of layout and custom inset labels
33333 \change_unchanged
33334
33335 \end_layout
33336
33337 \begin_layout Description
33338 urllabel Label color for URL insets
33339 \end_layout
33340
33341 \begin_layout Description
33342 urltext Color for URL inset text
33343 \end_layout
33344
33345 \end_body
33346 \end_document