]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Try to automatically handle transparent pictures in darkmode (#12076)
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 601
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
6181 \change_inserted -584632292 1610232084
6182 Creating and 
6183 \change_unchanged
6184 Installing New Document Classes, Layouts, and Templates
6185 \begin_inset CommandInset label
6186 LatexCommand label
6187 name "cha:Installing-New-Document"
6188
6189 \end_inset
6190
6191
6192 \begin_inset Argument 1
6193 status collapsed
6194
6195 \begin_layout Plain Layout
6196 Installing New Document Classes
6197 \end_layout
6198
6199 \end_inset
6200
6201
6202 \end_layout
6203
6204 \begin_layout Standard
6205 In this chapter, we describe the procedures for creating and installing
6206  new \SpecialChar LyX
6207  layout and template files, as well as offer a refresher on correctly
6208  installing new \SpecialChar LaTeX
6209  document classes.
6210  
6211 \end_layout
6212
6213 \begin_layout Standard
6214 First, let us a say a few words about how one ought to think about the relation
6215  between \SpecialChar LyX
6216  and \SpecialChar LaTeX
6217 .
6218  The thing to understand is that, in a certain sense, \SpecialChar LyX
6219  doesn't know anything
6220  about \SpecialChar LaTeX
6221 .
6222  Indeed, from \SpecialChar LyX
6223 's point of view, \SpecialChar LaTeX
6224  is just one of several 
6225 \begin_inset Quotes eld
6226 \end_inset
6227
6228 backend formats
6229 \begin_inset Quotes erd
6230 \end_inset
6231
6232  in which it is capable of producing output.
6233  Other such formats are DocBook, plaintext, and XHTML.
6234  \SpecialChar LaTeX
6235  is, of course, a particularly important format, but very little of the
6236  information \SpecialChar LyX
6237  has about \SpecialChar LaTeX
6238  is actually contained in the program itself.
6239 \begin_inset Foot
6240 status collapsed
6241
6242 \begin_layout Plain Layout
6243 Some commands are sufficiently complex that they are 
6244 \begin_inset Quotes eld
6245 \end_inset
6246
6247 hardcoded
6248 \begin_inset Quotes erd
6249 \end_inset
6250
6251  into \SpecialChar LyX
6252 .
6253  But the developers generally regard this as a Bad Thing.
6254 \end_layout
6255
6256 \end_inset
6257
6258  Rather, that information, even for the standard classes like 
6259 \begin_inset Flex Code
6260 status collapsed
6261
6262 \begin_layout Plain Layout
6263 article.cls
6264 \end_layout
6265
6266 \end_inset
6267
6268 , is contained in `layout files'.
6269  Similarly, \SpecialChar LyX
6270  itself does not know much about DocBook or XHTML.
6271  What it knows is contained in layout files.
6272 \end_layout
6273
6274 \begin_layout Standard
6275 You can think of the layout file for a given document class as a translation
6276  manual between \SpecialChar LyX
6277  constructs—paragraphs with their corresponding styles,
6278  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6279 , DocBook, or XHTML
6280  constructs.
6281  Almost everything \SpecialChar LyX
6282  knows about 
6283 \begin_inset Flex Code
6284 status collapsed
6285
6286 \begin_layout Plain Layout
6287 article.cls
6288 \end_layout
6289
6290 \end_inset
6291
6292 , for example, is contained in the file 
6293 \begin_inset Flex Code
6294 status collapsed
6295
6296 \begin_layout Plain Layout
6297 article.layout
6298 \end_layout
6299
6300 \end_inset
6301
6302  and in various other files it includes.
6303  For this reason, anyone intending to write layout files should plan to
6304  study the existing files.
6305  A good place to start is with 
6306 \begin_inset Flex Code
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 stdsections.inc
6311 \end_layout
6312
6313 \end_inset
6314
6315 , which is included in 
6316 \begin_inset Flex Code
6317 status collapsed
6318
6319 \begin_layout Plain Layout
6320 article.layout
6321 \end_layout
6322
6323 \end_inset
6324
6325
6326 \begin_inset Flex Code
6327 status collapsed
6328
6329 \begin_layout Plain Layout
6330 book.layout
6331 \end_layout
6332
6333 \end_inset
6334
6335 , and many of the other layout files for document classes.
6336  This file is where sections and the like are defined: 
6337 \begin_inset Flex Code
6338 status collapsed
6339
6340 \begin_layout Plain Layout
6341 stdsections.inc
6342 \end_layout
6343
6344 \end_inset
6345
6346  tells \SpecialChar LyX
6347  how paragraphs that are marked with the Section, Subsection, etc,
6348  styles can be translated into corresponding \SpecialChar LaTeX
6349 , DocBook, and XHTML commands
6350  and tags.
6351  The 
6352 \begin_inset Flex Code
6353 status collapsed
6354
6355 \begin_layout Plain Layout
6356 article.layout
6357 \end_layout
6358
6359 \end_inset
6360
6361  file basically just includes several of these 
6362 \begin_inset Flex Code
6363 status collapsed
6364
6365 \begin_layout Plain Layout
6366 std*.inc
6367 \end_layout
6368
6369 \end_inset
6370
6371  files.
6372 \end_layout
6373
6374 \begin_layout Standard
6375 Defining the \SpecialChar LyX
6376 –\SpecialChar LaTeX
6377  correspondence is not the only thing layout files do, though.
6378  Their other job is to define how the \SpecialChar LyX
6379  constructs themselves will appear
6380  on-screen.
6381  The fact that layout files have these two jobs is often a source of confusion,
6382  because they are completely separate.
6383  Telling \SpecialChar LyX
6384  how to translate a certain paragraph style into \SpecialChar LaTeX
6385  does not tell
6386  \SpecialChar LyX
6387  how to display it; conversely, telling \SpecialChar LyX
6388  how to display a certain paragraph
6389  style does not tell \SpecialChar LyX
6390  how to translate it into \SpecialChar LaTeX
6391  (let alone tell \SpecialChar LaTeX
6392  how to
6393  display it).
6394  So, in general, when you define a new \SpecialChar LyX
6395  construct, you must always do two
6396  quite separate things: (i)
6397 \begin_inset space ~
6398 \end_inset
6399
6400 tell \SpecialChar LyX
6401  how to translate it into \SpecialChar LaTeX
6402  and (ii)
6403 \begin_inset space ~
6404 \end_inset
6405
6406 tell \SpecialChar LyX
6407  how to display it.
6408 \end_layout
6409
6410 \begin_layout Standard
6411 Much the same is true, of course, as regards \SpecialChar LyX
6412 's other backend formats, though
6413  XHTML is in some ways different, because in that case \SpecialChar LyX
6414  
6415 \emph on
6416 is
6417 \emph default
6418  able, to some extent, to use information about how it should display a
6419  paragraph on the screen to output information (in the form of CSS) about
6420  how the paragraph should be displayed in a browser.
6421  Even in this case, however, the distinction between what \SpecialChar LyX
6422  does internally
6423  and how things are rendered externally remains in force, and the two can
6424  be controlled separately.
6425  See 
6426 \begin_inset CommandInset ref
6427 LatexCommand ref
6428 reference "sec:Tags-for-XHTML"
6429
6430 \end_inset
6431
6432  for the details.
6433 \end_layout
6434
6435 \begin_layout Section
6436 Installing new \SpecialChar LaTeX
6437  files
6438 \end_layout
6439
6440 \begin_layout Standard
6441 Some installations may not include a \SpecialChar LaTeX
6442  package or class file that you would
6443  like to use within \SpecialChar LyX
6444 .
6445  For example, you might need Foil\SpecialChar TeX
6446 , a package for preparing slides for overhead
6447  projectors.
6448  Modern \SpecialChar LaTeX
6449  distributions like \SpecialChar TeX
6450 Live (2008 or newer) or MiK\SpecialChar TeX
6451  provide a user interface
6452  for installing such packages.
6453  For example, with MiK\SpecialChar TeX
6454 , you start the program 
6455 \begin_inset Quotes eld
6456 \end_inset
6457
6458 Package
6459 \begin_inset space ~
6460 \end_inset
6461
6462 Manager
6463 \begin_inset Quotes erd
6464 \end_inset
6465
6466  to get a list of available packages.
6467  To install one of them, right click on it or use the corresponding toolbar
6468  button.
6469 \end_layout
6470
6471 \begin_layout Standard
6472 If your \SpecialChar LaTeX
6473  distribution does not provide such a `package manager', or if the
6474  package is not available from your distribution, then follow these steps
6475  to install it manually:
6476 \end_layout
6477
6478 \begin_layout Enumerate
6479 Get the package from 
6480 \begin_inset CommandInset href
6481 LatexCommand href
6482 name "CTAN"
6483 target "http://www.ctan.org/"
6484 literal "false"
6485
6486 \end_inset
6487
6488  or wherever.
6489 \end_layout
6490
6491 \begin_layout Enumerate
6492 If the package contains a file with the ending 
6493 \begin_inset Quotes eld
6494 \end_inset
6495
6496
6497 \begin_inset Flex Code
6498 status collapsed
6499
6500 \begin_layout Plain Layout
6501 .ins
6502 \end_layout
6503
6504 \end_inset
6505
6506
6507 \begin_inset Quotes erd
6508 \end_inset
6509
6510  (is the case for Foil\SpecialChar TeX
6511 ) then open a console, change to the folder of this
6512  file and execute the command 
6513 \begin_inset Flex Code
6514 status collapsed
6515
6516 \begin_layout Plain Layout
6517 latex foiltex.ins
6518 \end_layout
6519
6520 \end_inset
6521
6522 .
6523  You have now unpacked the package and have all files to install it.
6524  Most \SpecialChar LaTeX
6525 -packages are not packed and you can skip this step.
6526 \end_layout
6527
6528 \begin_layout Enumerate
6529 Now you need to decide if the package should be available for all users
6530  or only for you.
6531 \end_layout
6532
6533 \begin_deeper
6534 \begin_layout Enumerate
6535 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6536  for all users on your system, then install it in your `local' \SpecialChar TeX
6537  tree, otherwise
6538  install it in your own `user' \SpecialChar TeX
6539  tree.
6540  Where these trees should be created, if they do not already exist, depends
6541  on your system.
6542  To find this out, look in the file 
6543 \begin_inset Flex Code
6544 status collapsed
6545
6546 \begin_layout Plain Layout
6547 texmf.cnf
6548 \end_layout
6549
6550 \end_inset
6551
6552 .
6553 \begin_inset Foot
6554 status collapsed
6555
6556 \begin_layout Plain Layout
6557 This is usually in the directory 
6558 \begin_inset Flex Code
6559 status collapsed
6560
6561 \begin_layout Plain Layout
6562 $TEXMF/web2c
6563 \end_layout
6564
6565 \end_inset
6566
6567 , though you can execute the command 
6568 \begin_inset Flex Code
6569 status collapsed
6570
6571 \begin_layout Plain Layout
6572 kpsewhich texmf.cnf
6573 \end_layout
6574
6575 \end_inset
6576
6577  to locate it.
6578 \end_layout
6579
6580 \end_inset
6581
6582  The location of the `local' \SpecialChar TeX
6583  tree is defined by the 
6584 \begin_inset Flex Code
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588 TEXMFLOCAL
6589 \end_layout
6590
6591 \end_inset
6592
6593  variable; this is usually somewhere like 
6594 \begin_inset Flex Code
6595 status collapsed
6596
6597 \begin_layout Plain Layout
6598 /usr/local/share/texmf
6599 \end_layout
6600
6601 \end_inset
6602
6603  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6604 Live
6605  distribution.
6606  The location of the `user' \SpecialChar TeX
6607  tree is defined by 
6608 \begin_inset Flex Code
6609 status collapsed
6610
6611 \begin_layout Plain Layout
6612 TEXMFHOME
6613 \end_layout
6614
6615 \end_inset
6616
6617  and is commonly 
6618 \begin_inset Flex Code
6619 status collapsed
6620
6621 \begin_layout Plain Layout
6622 $HOME/texmf
6623 \end_layout
6624
6625 \end_inset
6626
6627  or 
6628 \begin_inset Flex Code
6629 status collapsed
6630
6631 \begin_layout Plain Layout
6632
6633 \family sans
6634 $HOME/.texliveXXXX
6635 \end_layout
6636
6637 \end_inset
6638
6639 .
6640  (If these variables are not predefined, you have to define them.) You'll
6641  probably need root permissions to create or modify the `local' tree, but
6642  not for your `user' tree.
6643 \begin_inset Newline newline
6644 \end_inset
6645
6646 In general, it is recommended to install in the user tree because your user
6647  will not be modified or even overwritten when you upgrade your system.
6648  It will typically also be backed up together with everything else when
6649  you backup your home directory (which, of course, you do on a regular basis).
6650 \end_layout
6651
6652 \begin_layout Enumerate
6653 On Windows, if you want the new package to be available for all users on
6654  your system, change to the folder where \SpecialChar LaTeX
6655  is installed and then change to
6656  the subfolder 
6657 \begin_inset Flex Code
6658 status collapsed
6659
6660 \begin_layout Plain Layout
6661 ~
6662 \backslash
6663 tex
6664 \backslash
6665 latex
6666 \end_layout
6667
6668 \end_inset
6669
6670 .
6671  (For MiK\SpecialChar TeX
6672 , this would be by default the folder 
6673 \begin_inset Flex Code
6674 status collapsed
6675
6676 \begin_layout Plain Layout
6677 ~:
6678 \backslash
6679 Programs
6680 \backslash
6681 MiKTeX
6682 \backslash
6683 tex
6684 \backslash
6685 latex
6686 \end_layout
6687
6688 \end_inset
6689
6690 .)
6691 \begin_inset Foot
6692 status collapsed
6693
6694 \begin_layout Plain Layout
6695 Note that this will be the correct path only on English installations.
6696  On a German one, it would be 
6697 \begin_inset Flex Code
6698 status collapsed
6699
6700 \begin_layout Plain Layout
6701 ~:
6702 \backslash
6703 Programme
6704 \backslash
6705 MiKTeX
6706 \backslash
6707 tex
6708 \backslash
6709 latex
6710 \end_layout
6711
6712 \end_inset
6713
6714 , and similarly for other languages.
6715 \end_layout
6716
6717 \end_inset
6718
6719  Create there a new folder 
6720 \begin_inset Flex Code
6721 status collapsed
6722
6723 \begin_layout Plain Layout
6724 foiltex
6725 \end_layout
6726
6727 \end_inset
6728
6729  and copy all files of the package into it.
6730  
6731 \begin_inset Newline newline
6732 \end_inset
6733
6734 If the package should only available for you or you don't have admin permissions
6735 , do the same, but in the local \SpecialChar LaTeX
6736  folder.
6737  E.
6738 \begin_inset space \thinspace{}
6739 \end_inset
6740
6741 g., for MiK\SpecialChar TeX
6742
6743 \begin_inset space ~
6744 \end_inset
6745
6746 2.8 under Windows XP, this would be the folder:
6747 \begin_inset Newline newline
6748 \end_inset
6749
6750
6751 \family sans
6752
6753 \begin_inset Flex Code
6754 status collapsed
6755
6756 \begin_layout Plain Layout
6757 ~:
6758 \backslash
6759 Documents and Settings
6760 \backslash
6761 <username>
6762 \backslash
6763 Application Data
6764 \backslash
6765
6766 \end_layout
6767
6768 \end_inset
6769
6770
6771 \begin_inset Newline newline
6772 \end_inset
6773
6774
6775 \family default
6776
6777 \begin_inset Phantom HPhantom
6778 status open
6779
6780 \begin_layout Plain Layout
6781
6782 \family sans
6783 ~:
6784 \backslash
6785
6786 \end_layout
6787
6788 \end_inset
6789
6790
6791 \begin_inset Flex Code
6792 status collapsed
6793
6794 \begin_layout Plain Layout
6795 MiKTeX
6796 \backslash
6797 2.8
6798 \backslash
6799 tex
6800 \backslash
6801 latex
6802 \end_layout
6803
6804 \end_inset
6805
6806
6807 \begin_inset Newline newline
6808 \end_inset
6809
6810 On Vista, it would be:
6811 \begin_inset Newline newline
6812 \end_inset
6813
6814
6815 \begin_inset Flex Code
6816 status collapsed
6817
6818 \begin_layout Plain Layout
6819 ~:
6820 \backslash
6821 Users
6822 \backslash
6823 <username>
6824 \backslash
6825 AppData
6826 \backslash
6827 Roaming
6828 \backslash
6829 2.8
6830 \backslash
6831 MiKTeX
6832 \backslash
6833 tex
6834 \backslash
6835 latex
6836 \end_layout
6837
6838 \end_inset
6839
6840
6841 \end_layout
6842
6843 \end_deeper
6844 \begin_layout Enumerate
6845 Now one only need to tell \SpecialChar LaTeX
6846  that there are new files.
6847  This depends on the used \SpecialChar LaTeX
6848 -Distribution:
6849 \end_layout
6850
6851 \begin_deeper
6852 \begin_layout Enumerate
6853 For \SpecialChar TeX
6854 Live execute the command 
6855 \begin_inset Flex Code
6856 status collapsed
6857
6858 \begin_layout Plain Layout
6859 texhash
6860 \end_layout
6861
6862 \end_inset
6863
6864  from a console.
6865  If you installed the package for all users, then you will probably need
6866  to have root permissions for that.
6867 \end_layout
6868
6869 \begin_layout Enumerate
6870 For MiK\SpecialChar TeX
6871 , if you have installed the package for all users, start the program
6872  
6873 \begin_inset Quotes eld
6874 \end_inset
6875
6876 Settings
6877 \begin_inset space ~
6878 \end_inset
6879
6880 (Admin)
6881 \begin_inset Quotes erd
6882 \end_inset
6883
6884  and press the button marked 
6885 \begin_inset Quotes eld
6886 \end_inset
6887
6888 Refresh FNDB
6889 \begin_inset Quotes erd
6890 \end_inset
6891
6892 .
6893  Otherwise start the program 
6894 \begin_inset Quotes eld
6895 \end_inset
6896
6897 Settings
6898 \begin_inset Quotes erd
6899 \end_inset
6900
6901  and do the same.
6902 \end_layout
6903
6904 \end_deeper
6905 \begin_layout Enumerate
6906 Finally, you need to tell \SpecialChar LyX
6907  that there are new packages available.
6908  So, in \SpecialChar LyX
6909 , use the menu 
6910 \begin_inset Flex Noun
6911 status collapsed
6912
6913 \begin_layout Plain Layout
6914 Tools
6915 \family sans
6916 \SpecialChar menuseparator
6917 Reconfigure
6918 \end_layout
6919
6920 \end_inset
6921
6922  and then restart \SpecialChar LyX
6923 .
6924 \end_layout
6925
6926 \begin_layout Standard
6927 Now the package is installed.
6928  In our example, the document class 
6929 \begin_inset Flex Code
6930 status collapsed
6931
6932 \begin_layout Plain Layout
6933 FoilTex
6934 \end_layout
6935
6936 \end_inset
6937
6938  will now be available under 
6939 \begin_inset Flex Noun
6940 status collapsed
6941
6942 \begin_layout Plain Layout
6943 Document\SpecialChar menuseparator
6944 Settings\SpecialChar menuseparator
6945 Document Class
6946 \end_layout
6947
6948 \end_inset
6949
6950  (in the 
6951 \begin_inset Quotes eld
6952 \end_inset
6953
6954 Presentations
6955 \begin_inset Quotes erd
6956 \end_inset
6957
6958  category).
6959  
6960 \end_layout
6961
6962 \begin_layout Standard
6963 If you would like to use a \SpecialChar LaTeX
6964  document class that is not even listed in the
6965  menu 
6966 \begin_inset Flex Noun
6967 status collapsed
6968
6969 \begin_layout Plain Layout
6970 Document\SpecialChar menuseparator
6971 Settings\SpecialChar menuseparator
6972 Document Class
6973 \end_layout
6974
6975 \end_inset
6976
6977 , then you need to create a `layout' file for it.
6978  That is the topic of the next section.
6979 \end_layout
6980
6981 \begin_layout Section
6982 Types of layout files
6983 \end_layout
6984
6985 \begin_layout Standard
6986 This section describes the various sorts of \SpecialChar LyX
6987  files that contain layout informati
6988 on.
6989  These files describe various paragraph and character styles, determining
6990  how \SpecialChar LyX
6991  should display them and how they should be translated into \SpecialChar LaTeX
6992 , DocBook,
6993  XHTML, or whatever output format is being used.
6994  
6995 \end_layout
6996
6997 \begin_layout Standard
6998 We shall try to provide a thorough description of the process of writing
6999  layout files here.
7000  However, there are so many different types of documents supported even
7001  by just \SpecialChar LaTeX
7002  that we can't hope to cover every different possibility or problem
7003  you might encounter.
7004  The \SpecialChar LyX
7005  users' list is frequented by people with lots of experience with layout
7006  design who are willing to share what they've learned, so please feel free
7007  to ask questions there.
7008 \end_layout
7009
7010 \begin_layout Standard
7011 As you prepare to write a new layout, it is extremely helpful to look at
7012  the layouts distributed with \SpecialChar LyX
7013 .
7014  If you write a \SpecialChar LyX
7015  layout for a \SpecialChar LaTeX
7016  document class that might also be used by
7017  others, or write a module that might be useful to others, then you should
7018  consider posting your layout to the 
7019 \begin_inset CommandInset href
7020 LatexCommand href
7021 name "layout section on the LyX wiki"
7022 target "https://wiki.lyx.org/Layouts/Layouts"
7023 literal "false"
7024
7025 \end_inset
7026
7027  or even to the \SpecialChar LyX
7028  developers' list, so that it might be included in \SpecialChar LyX
7029  itself.
7030 \begin_inset Foot
7031 status collapsed
7032
7033 \begin_layout Plain Layout
7034 Note that \SpecialChar LyX
7035  is licensed under the General Public License, so any material
7036  that is contributed to \SpecialChar LyX
7037  must be similarly licensed.
7038 \end_layout
7039
7040 \end_inset
7041
7042
7043 \end_layout
7044
7045 \begin_layout Subsection
7046 Layout modules
7047 \begin_inset CommandInset label
7048 LatexCommand label
7049 name "subsec:Layout-modules"
7050
7051 \end_inset
7052
7053
7054 \end_layout
7055
7056 \begin_layout Standard
7057 We have spoken to this point about `layout files'.
7058  But there are different sorts of files that contain layout information.
7059  Layout files, strictly so called, have the 
7060 \begin_inset Flex Code
7061 status collapsed
7062
7063 \begin_layout Plain Layout
7064 .layout
7065 \end_layout
7066
7067 \end_inset
7068
7069  extension and provide \SpecialChar LyX
7070  with information about document classes.
7071  Since \SpecialChar LyX
7072  1.6 layout information can also be contained in layout 
7073 \emph on
7074 modules
7075 \emph default
7076 , which have the 
7077 \begin_inset Flex Code
7078 status collapsed
7079
7080 \begin_layout Plain Layout
7081 .module
7082 \end_layout
7083
7084 \end_inset
7085
7086  extension.
7087  Modules are to \SpecialChar LaTeX
7088  packages much as layouts are to \SpecialChar LaTeX
7089  classes, and some modules—such
7090  as the 
7091 \begin_inset Flex Code
7092 status collapsed
7093
7094 \begin_layout Plain Layout
7095 endnotes
7096 \end_layout
7097
7098 \end_inset
7099
7100  module—specifically provide support for one package.
7101  In a sense, layout modules are similar to included
7102 \begin_inset Foot
7103 status collapsed
7104
7105 \begin_layout Plain Layout
7106 These can have any extension, but by convention have the 
7107 \begin_inset Flex Code
7108 status collapsed
7109
7110 \begin_layout Plain Layout
7111 .inc
7112 \end_layout
7113
7114 \end_inset
7115
7116  extension.
7117 \end_layout
7118
7119 \end_inset
7120
7121  files—files like 
7122 \begin_inset Flex Code
7123 status collapsed
7124
7125 \begin_layout Plain Layout
7126 stdsections.inc
7127 \end_layout
7128
7129 \end_inset
7130
7131 —in that modules are not specific to a given document class but may be used
7132  with many different classes.
7133  The difference is that using an included file with 
7134 \begin_inset Flex Code
7135 status collapsed
7136
7137 \begin_layout Plain Layout
7138 article.cls
7139 \end_layout
7140
7141 \end_inset
7142
7143  requires editing that file.
7144  Modules, by contrast, are selected in the 
7145 \begin_inset Flex Noun
7146 status collapsed
7147
7148 \begin_layout Plain Layout
7149 Document\SpecialChar menuseparator
7150 Settings
7151 \end_layout
7152
7153 \end_inset
7154
7155  dialog.
7156 \end_layout
7157
7158 \begin_layout Standard
7159 Building modules is the easiest way to get started with layout editing,
7160  since it can be as simple as adding a single new paragraph style or flex
7161  inset.
7162  But modules may, in principle, contain anything a layout file can contain.
7163 \end_layout
7164
7165 \begin_layout Standard
7166 After creating a new module and copying it to the 
7167 \begin_inset Flex Code
7168 status collapsed
7169
7170 \begin_layout Plain Layout
7171 layouts/
7172 \end_layout
7173
7174 \end_inset
7175
7176  folder, you will need to reconfigure and then restart \SpecialChar LyX
7177  for the module to
7178  appear in the menu.
7179  However, changes you make to the module will be seen immediately, if you
7180  open 
7181 \begin_inset Flex Noun
7182 status collapsed
7183
7184 \begin_layout Plain Layout
7185 Document\SpecialChar menuseparator
7186 Settings
7187 \end_layout
7188
7189 \end_inset
7190
7191 , highlight something, and then hit 
7192 \begin_inset Quotes eld
7193 \end_inset
7194
7195 OK
7196 \begin_inset Quotes erd
7197 \end_inset
7198
7199 .
7200  
7201 \emph on
7202 It is strongly recommended that you save your work before doing this
7203 \emph default
7204 .
7205  In fact, 
7206 \emph on
7207 it is strongly recommended that you not attempt to edit modules while simultaneo
7208 usly working on actual documents
7209 \emph default
7210 .
7211  Though of course the developers strive to keep \SpecialChar LyX
7212  stable in such situations,
7213  syntax errors and the like in your module file could cause strange behavior.
7214 \end_layout
7215
7216 \begin_layout Subsubsection
7217 Local Layout
7218 \end_layout
7219
7220 \begin_layout Standard
7221 Modules are to \SpecialChar LyX
7222  as packages are to \SpecialChar LaTeX
7223 .
7224  Sometimes, however, you find yourself wanting a specific inset or character
7225  style just for one document and writing a module that will also be available
7226  to other documents makes little sense.
7227  What you need is \SpecialChar LyX
7228 's 
7229 \begin_inset Quotes eld
7230 \end_inset
7231
7232 Local Layout
7233 \begin_inset Quotes erd
7234 \end_inset
7235
7236 .
7237 \end_layout
7238
7239 \begin_layout Standard
7240 You will find it under 
7241 \family sans
7242 Document\SpecialChar menuseparator
7243 Settings\SpecialChar menuseparator
7244 Local Layout
7245 \family default
7246 .
7247  The large text box allows you to enter anything that you might enter in
7248  a layout file or module.
7249  You can think of a document's local layout, in fact, as a module that belongs
7250  just to it.
7251  So, in particular, you must enter a 
7252 \begin_inset Flex Code
7253 status collapsed
7254
7255 \begin_layout Plain Layout
7256 Format
7257 \end_layout
7258
7259 \end_inset
7260
7261  tag.
7262  Any format is acceptable, but one would normally use the format current
7263  at the time.
7264  (In \SpecialChar LyX
7265  
7266 \begin_inset Info
7267 type  "lyxinfo"
7268 arg   "version"
7269 \end_inset
7270
7271 , the current layout format is 
7272 \begin_inset Info
7273 type  "lyxinfo"
7274 arg   "layoutformat"
7275 \end_inset
7276
7277 .)
7278 \end_layout
7279
7280 \begin_layout Standard
7281 When you have entered something in the 
7282 \begin_inset Flex Code
7283 status collapsed
7284
7285 \begin_layout Plain Layout
7286 Local Layout
7287 \end_layout
7288
7289 \end_inset
7290
7291  pane, \SpecialChar LyX
7292  will enable the 
7293 \begin_inset Quotes eld
7294 \end_inset
7295
7296 Validate
7297 \begin_inset Quotes erd
7298 \end_inset
7299
7300  button at the bottom.
7301  Clicking this button will cause \SpecialChar LyX
7302  to determine whether what you have entered
7303  is valid layout information for the chosen format.
7304  \SpecialChar LyX
7305  will report the result but, unfortunately, will not tell you what errors
7306  there might have been.
7307  These will be written to the terminal, however, if \SpecialChar LyX
7308  is started from a terminal.
7309  You will not be permitted to save your local layout until you have entered
7310  something valid.
7311 \end_layout
7312
7313 \begin_layout Standard
7314 The warnings at the end of the previous section apply here, too.
7315  Do not play with local layout while you are actually working, especially
7316  if you have not saved your document.
7317  That said, using local layout with a test document can be a very convenient
7318  way to try out layout ideas, or even to start developing a module.
7319 \end_layout
7320
7321 \begin_layout Subsection
7322 Layout for 
7323 \begin_inset Flex Noun
7324 status collapsed
7325
7326 \begin_layout Plain Layout
7327 .sty
7328 \end_layout
7329
7330 \end_inset
7331
7332  files
7333 \end_layout
7334
7335 \begin_layout Standard
7336 There are two situations you are likely to encounter when wanting to support
7337  a new \SpecialChar LaTeX
7338  document class, involving style (
7339 \begin_inset Flex Code
7340 status collapsed
7341
7342 \begin_layout Plain Layout
7343 .sty
7344 \end_layout
7345
7346 \end_inset
7347
7348 ) files and \SpecialChar LaTeX2e
7349  class (
7350 \begin_inset Flex Code
7351 status collapsed
7352
7353 \begin_layout Plain Layout
7354 .cls
7355 \end_layout
7356
7357 \end_inset
7358
7359 ) .
7360  Supporting a style file is usually fairly easy.
7361  Supporting a new class file is a bit harder.
7362  We'll discuss the former in this section and the latter in the next.
7363  
7364 \change_deleted 5863208 1594239023
7365 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7366 \change_unchanged
7367
7368 \end_layout
7369
7370 \begin_layout Standard
7371 The easier case is the one in which your new document class is provided
7372  as a style file that is to be used in conjunction with an already supported
7373  document class.
7374  For the sake of the example, we'll assume that the style file is called
7375  
7376 \begin_inset Flex Noun
7377 status collapsed
7378
7379 \begin_layout Plain Layout
7380 myclass.sty
7381 \end_layout
7382
7383 \end_inset
7384
7385  and that it is meant to be used with 
7386 \begin_inset Flex Noun
7387 status collapsed
7388
7389 \begin_layout Plain Layout
7390 report.cls
7391 \end_layout
7392
7393 \end_inset
7394
7395 , which is a standard class.
7396  
7397 \end_layout
7398
7399 \begin_layout Standard
7400 Start by copying the existing class's layout file into your local directory:
7401 \begin_inset Foot
7402 status collapsed
7403
7404 \begin_layout Plain Layout
7405 Of course, which directory is your local directory will vary by platform,
7406  and \SpecialChar LyX
7407  allows you to specify your local directory on startup, too, using
7408  the 
7409 \begin_inset Flex Code
7410 status collapsed
7411
7412 \begin_layout Plain Layout
7413 -userdir
7414 \end_layout
7415
7416 \end_inset
7417
7418  option.
7419 \end_layout
7420
7421 \end_inset
7422
7423
7424 \end_layout
7425
7426 \begin_layout LyX-Code
7427 cp report.layout ~/.lyx/layouts/myclass.layout
7428 \end_layout
7429
7430 \begin_layout Standard
7431 Then edit 
7432 \begin_inset Flex Code
7433 status collapsed
7434
7435 \begin_layout Plain Layout
7436 myclass.layout
7437 \end_layout
7438
7439 \end_inset
7440
7441  and change the line: 
7442 \end_layout
7443
7444 \begin_layout LyX-Code
7445
7446 \backslash
7447 DeclareLaTeXClass{Report (Standard Class)}
7448 \end_layout
7449
7450 \begin_layout Standard
7451 to read
7452 \end_layout
7453
7454 \begin_layout LyX-Code
7455
7456 \backslash
7457 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7458 \end_layout
7459
7460 \begin_layout Standard
7461 Then add:
7462 \end_layout
7463
7464 \begin_layout LyX-Code
7465 Preamble 
7466 \begin_inset Newline newline
7467 \end_inset
7468
7469     
7470 \backslash
7471 usepackage{myclass}
7472 \begin_inset Newline newline
7473 \end_inset
7474
7475 EndPreamble
7476 \end_layout
7477
7478 \begin_layout Standard
7479 near the top of the file.
7480 \end_layout
7481
7482 \begin_layout Standard
7483 Start \SpecialChar LyX
7484  and select 
7485 \begin_inset Flex Noun
7486 status collapsed
7487
7488 \begin_layout Plain Layout
7489 Tools\SpecialChar menuseparator
7490 Reconfigure
7491 \end_layout
7492
7493 \end_inset
7494
7495 .
7496  Then restart \SpecialChar LyX
7497  and try creating a new document.
7498  You should see "
7499 \begin_inset Flex Noun
7500 status collapsed
7501
7502 \begin_layout Plain Layout
7503 Report (My Class)
7504 \end_layout
7505
7506 \end_inset
7507
7508 " as a document class option in the 
7509 \begin_inset Flex Noun
7510 status collapsed
7511
7512 \begin_layout Plain Layout
7513 Document\SpecialChar menuseparator
7514 Settings
7515 \end_layout
7516
7517 \end_inset
7518
7519  dialog.
7520  It is likely that some of the sectioning commands and such in your new
7521  class will work differently from how they worked in the base class—
7522 \begin_inset Flex Code
7523 status collapsed
7524
7525 \begin_layout Plain Layout
7526 report
7527 \end_layout
7528
7529 \end_inset
7530
7531  in this example—so you can fiddle around with the settings for the different
7532  sections if you wish.
7533  The layout information for sections is contained in 
7534 \begin_inset Flex Code
7535 status collapsed
7536
7537 \begin_layout Plain Layout
7538 stdsections.inc
7539 \end_layout
7540
7541 \end_inset
7542
7543 , but you do not need to copy and change this file.
7544  Instead, you can simply add your changes to your layout file, after the
7545  line 
7546 \begin_inset Flex Code
7547 status collapsed
7548
7549 \begin_layout Plain Layout
7550 Input stdclass.inc
7551 \end_layout
7552
7553 \end_inset
7554
7555 , which itself includes 
7556 \begin_inset Flex Code
7557 status collapsed
7558
7559 \begin_layout Plain Layout
7560 stdsections.inc
7561 \end_layout
7562
7563 \end_inset
7564
7565 .
7566  For example, you might add these lines:
7567 \end_layout
7568
7569 \begin_layout LyX-Code
7570 Style Chapter
7571 \end_layout
7572
7573 \begin_layout LyX-Code
7574     Font
7575 \end_layout
7576
7577 \begin_layout LyX-Code
7578         Family Sans
7579 \end_layout
7580
7581 \begin_layout LyX-Code
7582     EndFont
7583 \end_layout
7584
7585 \begin_layout LyX-Code
7586 End
7587 \end_layout
7588
7589 \begin_layout Standard
7590 to change the font for chapter headings to sans-serif.
7591  This will override (or, in this case, add to) the existing declaration
7592  for the Chapter style.
7593  
7594 \end_layout
7595
7596 \begin_layout Standard
7597 Your new package may also provide commands or environments not present in
7598  the base class.
7599  In this case, you will want to add these to the layout file.
7600  See 
7601 \begin_inset CommandInset ref
7602 LatexCommand ref
7603 reference "sec:TextClass"
7604
7605 \end_inset
7606
7607  for information on how to do so.
7608 \end_layout
7609
7610 \begin_layout Standard
7611 If 
7612 \begin_inset Flex Noun
7613 status collapsed
7614
7615 \begin_layout Plain Layout
7616 myclass.sty
7617 \end_layout
7618
7619 \end_inset
7620
7621  can be used with several different document classes, and even if it cannot,
7622  you might find it easiest just to write a module that you can load with
7623  the base class.
7624  The simplest possible such module would be:
7625 \end_layout
7626
7627 \begin_layout LyX-Code
7628 #
7629 \backslash
7630 DeclareLyXModule{My Class} 
7631 \end_layout
7632
7633 \begin_layout LyX-Code
7634 #DescriptionBegin 
7635 \end_layout
7636
7637 \begin_layout LyX-Code
7638 #Support for myclass.sty.
7639 \end_layout
7640
7641 \begin_layout LyX-Code
7642 #DescriptionEnd
7643 \begin_inset Newline newline
7644 \end_inset
7645
7646
7647 \end_layout
7648
7649 \begin_layout LyX-Code
7650 Format 
7651 \begin_inset Info
7652 type  "lyxinfo"
7653 arg   "layoutformat"
7654 \end_inset
7655
7656
7657 \begin_inset Newline newline
7658 \end_inset
7659
7660
7661 \end_layout
7662
7663 \begin_layout LyX-Code
7664 Preamble
7665 \begin_inset Newline newline
7666 \end_inset
7667
7668     
7669 \backslash
7670 usepackage{myclass}
7671 \begin_inset Newline newline
7672 \end_inset
7673
7674 EndPreamble
7675 \end_layout
7676
7677 \begin_layout Standard
7678 A more complex module might modify the behavior of some existing constructs
7679  or define some new ones.
7680  Again, see 
7681 \begin_inset CommandInset ref
7682 LatexCommand ref
7683 reference "sec:TextClass"
7684
7685 \end_inset
7686
7687  for discussion.
7688 \end_layout
7689
7690 \begin_layout Subsection
7691 Layout for 
7692 \begin_inset Flex Noun
7693 status collapsed
7694
7695 \begin_layout Plain Layout
7696 .cls
7697 \end_layout
7698
7699 \end_inset
7700
7701  files
7702 \end_layout
7703
7704 \begin_layout Standard
7705 There are two possibilities here.
7706  One is that the class file is itself based upon an existing document class.
7707  For example, many thesis classes are based upon 
7708 \begin_inset Flex Noun
7709 status collapsed
7710
7711 \begin_layout Plain Layout
7712 book.cls
7713 \end_layout
7714
7715 \end_inset
7716
7717 .
7718  To see whether yours is, look for a line like
7719 \end_layout
7720
7721 \begin_layout LyX-Code
7722
7723 \backslash
7724 LoadClass{book}
7725 \end_layout
7726
7727 \begin_layout Standard
7728 in the file.
7729  If so, then you may proceed largely as in the previous section, though
7730  the 
7731 \begin_inset Flex Code
7732 status collapsed
7733
7734 \begin_layout Plain Layout
7735 Declare\SpecialChar LaTeX
7736 Class
7737 \end_layout
7738
7739 \end_inset
7740
7741  line will be different.
7742  If your new class is 
7743 \begin_inset Flex Code
7744 status collapsed
7745
7746 \begin_layout Plain Layout
7747 thesis
7748 \end_layout
7749
7750 \end_inset
7751
7752  and it is based upon 
7753 \begin_inset Flex Code
7754 status collapsed
7755
7756 \begin_layout Plain Layout
7757 book
7758 \end_layout
7759
7760 \end_inset
7761
7762 , then the line should read:
7763 \begin_inset Foot
7764 status collapsed
7765
7766 \begin_layout Plain Layout
7767 And it will be easiest if you save the file to 
7768 \begin_inset Flex Code
7769 status collapsed
7770
7771 \begin_layout Plain Layout
7772 thesis.layout
7773 \end_layout
7774
7775 \end_inset
7776
7777 : \SpecialChar LyX
7778  assumes that the document class has the same name as the layout file.
7779  
7780 \end_layout
7781
7782 \end_inset
7783
7784
7785 \end_layout
7786
7787 \begin_layout LyX-Code
7788
7789 \backslash
7790 DeclareLaTeXClass[thesis,book]{thesis}
7791 \end_layout
7792
7793 \begin_layout Standard
7794 If, on the other hand, the new class is not based upon an existing class,
7795  you will probably have to 
7796 \begin_inset Quotes eld
7797 \end_inset
7798
7799 roll your own
7800 \begin_inset Quotes erd
7801 \end_inset
7802
7803  layout.
7804  We strongly suggest copying an existing layout file which uses a similar
7805  \SpecialChar LaTeX
7806  class and then modifying it, if you can do so.
7807  At least use an existing file as a starting point so you can find out what
7808  items you need to worry about.
7809  Again, the specifics are covered below.
7810 \end_layout
7811
7812 \begin_layout Subsection
7813 Creating templates
7814 \begin_inset CommandInset label
7815 LatexCommand label
7816 name "subsec:Creating-Templates"
7817
7818 \end_inset
7819
7820
7821 \end_layout
7822
7823 \begin_layout Standard
7824 Once you have written a layout file for a new document class, you might
7825  want to consider writing a 
7826 \emph on
7827 template
7828 \emph default
7829  for it, too.
7830  A template acts as a kind of tutorial for your layout, showing how it might
7831  be used, though containing dummy content.
7832  You can of course look at the various templates included with \SpecialChar LyX
7833  for ideas.
7834 \end_layout
7835
7836 \begin_layout Standard
7837 Templates are created just like usual documents: using \SpecialChar LyX
7838 .
7839  The only difference is that usual documents contain all possible settings,
7840  including the font scheme and the paper size.
7841  Usually a user doesn't want a template to overwrite his preferred settings
7842  for such parameters.
7843  For that reason, the designer of a template should remove the corresponding
7844  commands like 
7845 \begin_inset Flex Code
7846 status collapsed
7847
7848 \begin_layout Plain Layout
7849
7850 \backslash
7851 font_roman
7852 \end_layout
7853
7854 \end_inset
7855
7856  or 
7857 \begin_inset Flex Code
7858 status collapsed
7859
7860 \begin_layout Plain Layout
7861
7862 \backslash
7863 papersize
7864 \end_layout
7865
7866 \end_inset
7867
7868  from the template \SpecialChar LyX
7869  file.
7870  This can be done with any simple text-editor, for example 
7871 \begin_inset Flex Code
7872 status collapsed
7873
7874 \begin_layout Plain Layout
7875 vi
7876 \end_layout
7877
7878 \end_inset
7879
7880  or 
7881 \begin_inset Flex Code
7882 status collapsed
7883
7884 \begin_layout Plain Layout
7885 notepad
7886 \end_layout
7887
7888 \end_inset
7889
7890 .
7891 \end_layout
7892
7893 \begin_layout Standard
7894 Put the edited template files you create in 
7895 \begin_inset Flex Code
7896 status collapsed
7897
7898 \begin_layout Plain Layout
7899 UserDir/templates/
7900 \end_layout
7901
7902 \end_inset
7903
7904 , copy the ones you use from the global template directory in 
7905 \begin_inset Flex Code
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909 LyXDir/templates/
7910 \end_layout
7911
7912 \end_inset
7913
7914  to the same place, and redefine the template path in the 
7915 \begin_inset Flex Noun
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919 Tools\SpecialChar menuseparator
7920 Preferences\SpecialChar menuseparator
7921 Paths
7922 \end_layout
7923
7924 \end_inset
7925
7926  dialog.
7927 \end_layout
7928
7929 \begin_layout Standard
7930 Note, by the way, that there is a template which has a particular meaning:
7931 \begin_inset Newline linebreak
7932 \end_inset
7933
7934
7935 \begin_inset Flex Code
7936 status collapsed
7937
7938 \begin_layout Plain Layout
7939 defaults.lyx
7940 \end_layout
7941
7942 \end_inset
7943
7944 .
7945  This template is loaded every time you create a new document with 
7946 \begin_inset Flex Noun
7947 status collapsed
7948
7949 \begin_layout Plain Layout
7950 File\SpecialChar menuseparator
7951 New
7952 \end_layout
7953
7954 \end_inset
7955
7956  in order to provide useful defaults.
7957  To create this template from inside \SpecialChar LyX
7958 , all you have to do is to open a document
7959  with the correct settings, and use the 
7960 \begin_inset Flex Noun
7961 status collapsed
7962
7963 \begin_layout Plain Layout
7964 Save as Document Defaults
7965 \end_layout
7966
7967 \end_inset
7968
7969  button.
7970 \end_layout
7971
7972 \begin_layout Subsection
7973 Upgrading old layout files
7974 \end_layout
7975
7976 \begin_layout Standard
7977 The format of layout files changes with each \SpecialChar LyX
7978  release, so old layout files
7979  need to be converted to the new format.
7980  If \SpecialChar LyX
7981  reads a layout file in an older format, it automatically calls the
7982  script 
7983 \begin_inset Flex Code
7984 status collapsed
7985
7986 \begin_layout Plain Layout
7987 layout2layout.py
7988 \end_layout
7989
7990 \end_inset
7991
7992  to convert it to a temporary file in current format.
7993  The original file is left untouched.
7994  If you use the layout file often, then, you may want to convert it permanently,
7995  so that \SpecialChar LyX
7996  does not have to do so itself every time.
7997  To do this, you can call the converter manually:
7998 \end_layout
7999
8000 \begin_layout Enumerate
8001 rename the file 
8002 \begin_inset Flex Code
8003 status collapsed
8004
8005 \begin_layout Plain Layout
8006 myclass.layout
8007 \end_layout
8008
8009 \end_inset
8010
8011  to 
8012 \begin_inset Flex Code
8013 status collapsed
8014
8015 \begin_layout Plain Layout
8016 myclass.old
8017 \end_layout
8018
8019 \end_inset
8020
8021
8022 \end_layout
8023
8024 \begin_layout Enumerate
8025 Call the command
8026 \begin_inset Newline newline
8027 \end_inset
8028
8029
8030 \begin_inset Flex Code
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8035 \end_layout
8036
8037 \end_inset
8038
8039
8040 \begin_inset Newline newline
8041 \end_inset
8042
8043 where 
8044 \begin_inset Flex Code
8045 status collapsed
8046
8047 \begin_layout Plain Layout
8048 LyXDir
8049 \end_layout
8050
8051 \end_inset
8052
8053  is the name of your \SpecialChar LyX
8054  system directory.
8055 \end_layout
8056
8057 \begin_layout Standard
8058 Note that manual conversion does not affect included files, so these will
8059  have to be converted separately.
8060 \end_layout
8061
8062 \begin_layout Subsection
8063 \begin_inset CommandInset label
8064 LatexCommand label
8065 name "subsec:Cite-Engine-Files"
8066
8067 \end_inset
8068
8069 Cite engine files
8070 \end_layout
8071
8072 \begin_layout Standard
8073 A specific form of layout files are the so-called 
8074 \begin_inset Flex Code
8075 status collapsed
8076
8077 \begin_layout Plain Layout
8078 *.citeengine
8079 \end_layout
8080
8081 \end_inset
8082
8083  files that are located in the 
8084 \begin_inset Flex Code
8085 status collapsed
8086
8087 \begin_layout Plain Layout
8088 citeengines/
8089 \end_layout
8090
8091 \end_inset
8092
8093  sub-directory.
8094  Their purpose is to define the specifics of \SpecialChar LaTeX
8095  packages aimed at bibliography
8096  generation, such as 
8097 \family sans
8098 natbib
8099 \family default
8100 ,
8101 \family sans
8102  jurabib
8103 \family default
8104  or 
8105 \family sans
8106 biblatex
8107 \family default
8108 , but also the way how normal Bib\SpecialChar TeX
8109  citations (without additional packages)
8110  are handled in \SpecialChar LyX
8111  is defined in such a file.
8112  
8113 \end_layout
8114
8115 \begin_layout Standard
8116 More specifically, it is defined which packages \SpecialChar LyX
8117  needs to load, which citation
8118  commands are available, how these are to be displayed in \SpecialChar LyX
8119  (in the workarea,
8120  the dialogs, the context menus) as well as in the XHTML and plain text
8121  output.
8122  Furthermore, the files specify available style variants (author-year, numerical
8123 , etc.) and their specifics.
8124  The cite engine files are also used to generate the options that are available
8125  in 
8126 \family sans
8127 Document\SpecialChar menuseparator
8128 Settings\SpecialChar menuseparator
8129 Bibliography\SpecialChar menuseparator
8130 Style engine
8131 \family default
8132 .
8133 \end_layout
8134
8135 \begin_layout Standard
8136 Even though a cite engine file is essentially a normal layout file that
8137  could theoretically include any layout information, it usually primarily
8138  includes some specific parameters such as 
8139 \begin_inset Flex Code
8140 status collapsed
8141
8142 \begin_layout Plain Layout
8143 MaxCiteNames
8144 \end_layout
8145
8146 \end_inset
8147
8148
8149 \begin_inset Flex Code
8150 status collapsed
8151
8152 \begin_layout Plain Layout
8153 CiteFramework
8154 \end_layout
8155
8156 \end_inset
8157
8158
8159 \begin_inset Flex Code
8160 status collapsed
8161
8162 \begin_layout Plain Layout
8163 CiteEngine
8164 \end_layout
8165
8166 \end_inset
8167
8168  and 
8169 \begin_inset Flex Code
8170 status collapsed
8171
8172 \begin_layout Plain Layout
8173 CiteFormat
8174 \end_layout
8175
8176 \end_inset
8177
8178  blocks.
8179  The syntax of the latter two is described in 
8180 \begin_inset CommandInset ref
8181 LatexCommand ref
8182 reference "subsec:Citation-engine-description"
8183 plural "false"
8184 caps "false"
8185 noprefix "false"
8186
8187 \end_inset
8188
8189  and 
8190 \begin_inset CommandInset ref
8191 LatexCommand ref
8192 reference "subsec:Citation-format-description"
8193
8194 \end_inset
8195
8196 , as well as in the files themselves.
8197 \end_layout
8198
8199 \begin_layout Section
8200 \begin_inset CommandInset label
8201 LatexCommand label
8202 name "sec:TextClass"
8203
8204 \end_inset
8205
8206 The layout file format
8207 \end_layout
8208
8209 \begin_layout Standard
8210 The following sections describe how layout files are structured and written.
8211  Our advice is to go slowly, save and test often.
8212  It is really not that hard, except that the multitude of options can become
8213  overwhelming, especially if you try to check out too many at once.
8214  It becomes easier if you use existing layouts of \SpecialChar LyX
8215  as examples/reference
8216  or if you modify an existing layout to your needs.
8217 \end_layout
8218
8219 \begin_layout Standard
8220 Note that all the tags used in layout files are case-insensitive.
8221  This means that 
8222 \begin_inset Flex Code
8223 status collapsed
8224
8225 \begin_layout Plain Layout
8226 Style
8227 \end_layout
8228
8229 \end_inset
8230
8231
8232 \begin_inset Flex Code
8233 status collapsed
8234
8235 \begin_layout Plain Layout
8236 style
8237 \end_layout
8238
8239 \end_inset
8240
8241  and 
8242 \begin_inset Flex Code
8243 status collapsed
8244
8245 \begin_layout Plain Layout
8246 StYlE
8247 \end_layout
8248
8249 \end_inset
8250
8251  are really the same tag.
8252  The possible arguments are printed in brackets after the tag's name.
8253  The default argument is typeset 
8254 \begin_inset Flex Code
8255 status collapsed
8256
8257 \begin_layout Plain Layout
8258
8259 \emph on
8260 emphasized
8261 \end_layout
8262
8263 \end_inset
8264
8265 .
8266  If the argument has a data type like 
8267 \begin_inset Quotes eld
8268 \end_inset
8269
8270 string
8271 \begin_inset Quotes erd
8272 \end_inset
8273
8274  or 
8275 \begin_inset Quotes eld
8276 \end_inset
8277
8278 float
8279 \begin_inset Quotes erd
8280 \end_inset
8281
8282 , the default is shown like this: 
8283 \begin_inset Flex Code
8284 status collapsed
8285
8286 \begin_layout Plain Layout
8287 float=
8288 \emph on
8289 default
8290 \end_layout
8291
8292 \end_inset
8293
8294 .
8295 \end_layout
8296
8297 \begin_layout Subsection
8298 The document class declaration and classification
8299 \end_layout
8300
8301 \begin_layout Standard
8302 Lines in a layout file which begin with 
8303 \begin_inset Flex Code
8304 status collapsed
8305
8306 \begin_layout Plain Layout
8307 #
8308 \end_layout
8309
8310 \end_inset
8311
8312  are comments.
8313  There is one exception to this rule.
8314  All 
8315 \begin_inset Flex Code
8316 status collapsed
8317
8318 \begin_layout Plain Layout
8319 *.layout
8320 \end_layout
8321
8322 \end_inset
8323
8324  files should begin with lines like:
8325 \end_layout
8326
8327 \begin_layout LyX-Code
8328
8329 \size small
8330 #% Do not delete the line below; configure depends on this 
8331 \end_layout
8332
8333 \begin_layout LyX-Code
8334
8335 \size small
8336 #  
8337 \backslash
8338 DeclareLaTeXClass{Article (Standard Class)}
8339 \end_layout
8340
8341 \begin_layout LyX-Code
8342
8343 \size small
8344 #  
8345 \backslash
8346 DeclareCategory{Articles}
8347 \end_layout
8348
8349 \begin_layout Standard
8350 The second and third lines are used when you (re)configure \SpecialChar LyX
8351 .
8352  The layout file is read by the \SpecialChar LaTeX
8353  script 
8354 \begin_inset Flex Code
8355 status collapsed
8356
8357 \begin_layout Plain Layout
8358 chkconfig.ltx
8359 \end_layout
8360
8361 \end_inset
8362
8363 , in a special mode where 
8364 \begin_inset Flex Code
8365 status collapsed
8366
8367 \begin_layout Plain Layout
8368 #
8369 \end_layout
8370
8371 \end_inset
8372
8373  is ignored.
8374  The first line is just a \SpecialChar LaTeX
8375  comment, the second one contains the mandatory
8376  declaration of the text class and the third line contains the optional
8377  classification of the class.
8378  If these lines appear in a file named 
8379 \begin_inset Flex Code
8380 status collapsed
8381
8382 \begin_layout Plain Layout
8383 article.layout
8384 \end_layout
8385
8386 \end_inset
8387
8388 , then they define a text class of name 
8389 \begin_inset Flex Code
8390 status collapsed
8391
8392 \begin_layout Plain Layout
8393 article
8394 \end_layout
8395
8396 \end_inset
8397
8398  (the name of the layout file) which uses the \SpecialChar LaTeX
8399  document class 
8400 \begin_inset Flex Code
8401 status collapsed
8402
8403 \begin_layout Plain Layout
8404 article.cls
8405 \end_layout
8406
8407 \end_inset
8408
8409  (the default is to use the same name as the layout).
8410  The string 
8411 \begin_inset Quotes eld
8412 \end_inset
8413
8414 Article (Standard Class)
8415 \begin_inset Quotes erd
8416 \end_inset
8417
8418  that appears above is used as a description of the text class in the 
8419 \begin_inset Flex Noun
8420 status collapsed
8421
8422 \begin_layout Plain Layout
8423 Document\SpecialChar menuseparator
8424 Settings
8425 \end_layout
8426
8427 \end_inset
8428
8429  dialog.
8430  The category (
8431 \begin_inset Quotes eld
8432 \end_inset
8433
8434 Articles
8435 \begin_inset Quotes erd
8436 \end_inset
8437
8438  in the example) is also used in the 
8439 \begin_inset Flex Noun
8440 status collapsed
8441
8442 \begin_layout Plain Layout
8443 Document\SpecialChar menuseparator
8444 Settings
8445 \end_layout
8446
8447 \end_inset
8448
8449  dialog: the text classes are grouped by these categories (which are usually
8450  genres, so typical categories are 
8451 \begin_inset Quotes eld
8452 \end_inset
8453
8454 Articles
8455 \begin_inset Quotes erd
8456 \end_inset
8457
8458
8459 \begin_inset Quotes eld
8460 \end_inset
8461
8462 Books
8463 \begin_inset Quotes erd
8464 \end_inset
8465
8466
8467 \begin_inset Quotes eld
8468 \end_inset
8469
8470 Reports
8471 \begin_inset Quotes erd
8472 \end_inset
8473
8474
8475 \begin_inset Quotes eld
8476 \end_inset
8477
8478 Letters
8479 \begin_inset Quotes erd
8480 \end_inset
8481
8482
8483 \begin_inset Quotes eld
8484 \end_inset
8485
8486 Presentations
8487 \begin_inset Quotes erd
8488 \end_inset
8489
8490
8491 \begin_inset Quotes eld
8492 \end_inset
8493
8494 Curricula Vitae
8495 \begin_inset Quotes erd
8496 \end_inset
8497
8498  etc.).
8499  If no category has been declared, the class will be put in the 
8500 \begin_inset Quotes eld
8501 \end_inset
8502
8503 Uncategorized
8504 \begin_inset Quotes erd
8505 \end_inset
8506
8507  group.
8508 \end_layout
8509
8510 \begin_layout Standard
8511 Let's assume that you wrote your own text class that uses the 
8512 \begin_inset Flex Code
8513 status collapsed
8514
8515 \begin_layout Plain Layout
8516 article.cls
8517 \end_layout
8518
8519 \end_inset
8520
8521  document class, but where you changed the appearance of the section headings.
8522  If you put it in a file 
8523 \begin_inset Flex Code
8524 status collapsed
8525
8526 \begin_layout Plain Layout
8527 myarticle.layout
8528 \end_layout
8529
8530 \end_inset
8531
8532 , the header of this file should be:
8533 \end_layout
8534
8535 \begin_layout LyX-Code
8536
8537 \size small
8538 #% Do not delete the line below; configure depends on this 
8539 \end_layout
8540
8541 \begin_layout LyX-Code
8542
8543 \size small
8544 #  
8545 \backslash
8546 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8547 \end_layout
8548
8549 \begin_layout LyX-Code
8550
8551 \size small
8552 #  
8553 \backslash
8554 DeclareCategory{Articles}
8555 \end_layout
8556
8557 \begin_layout Standard
8558 This declares a text class 
8559 \begin_inset Flex Code
8560 status collapsed
8561
8562 \begin_layout Plain Layout
8563 myarticle
8564 \end_layout
8565
8566 \end_inset
8567
8568 , associated with the \SpecialChar LaTeX
8569  document class 
8570 \begin_inset Flex Code
8571 status collapsed
8572
8573 \begin_layout Plain Layout
8574 article.cls
8575 \end_layout
8576
8577 \end_inset
8578
8579  and described as 
8580 \begin_inset Quotes eld
8581 \end_inset
8582
8583 Article (with My Own Headings)
8584 \begin_inset Quotes erd
8585 \end_inset
8586
8587 .
8588  If your text class depends on several packages, you can declare it as:
8589 \end_layout
8590
8591 \begin_layout LyX-Code
8592
8593 \size small
8594 #% Do not delete the line below; configure depends on this 
8595 \end_layout
8596
8597 \begin_layout LyX-Code
8598
8599 \size small
8600 #  
8601 \backslash
8602 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8603 \end_layout
8604
8605 \begin_layout LyX-Code
8606
8607 \size small
8608 #  
8609 \backslash
8610 DeclareCategory{Articles}
8611 \end_layout
8612
8613 \begin_layout Standard
8614 This indicates that your text class uses the 
8615 \begin_inset Flex Code
8616 status collapsed
8617
8618 \begin_layout Plain Layout
8619 foo.sty
8620 \end_layout
8621
8622 \end_inset
8623
8624  package.
8625  
8626 \change_deleted 5863208 1594239179
8627 Finally, it is also possible to declare classes for DocBook code.
8628  Typical declarations will look like:
8629 \end_layout
8630
8631 \begin_layout LyX-Code
8632
8633 \change_deleted 5863208 1594239179
8634
8635 \size small
8636 #% Do not delete the line below; configure depends on this 
8637 \end_layout
8638
8639 \begin_layout LyX-Code
8640
8641 \change_deleted 5863208 1594239179
8642
8643 \size small
8644
8645 \backslash
8646 DeclareDocBookClass[article]{SGML (DocBook Article)}
8647 \end_layout
8648
8649 \begin_layout LyX-Code
8650
8651 \change_deleted 5863208 1594239179
8652
8653 \size small
8654
8655 \backslash
8656 DeclareCategory{Articles (DocBook)}
8657 \change_unchanged
8658
8659 \end_layout
8660
8661 \begin_layout Standard
8662 Note that these declarations can also be given an optional parameter declaring
8663  the name of the document class (but not a list).
8664 \end_layout
8665
8666 \begin_layout Standard
8667 So, to be as explicit as possible, the form of the layout declaration is:
8668 \end_layout
8669
8670 \begin_layout LyX-Code
8671
8672 \size small
8673 #  
8674 \backslash
8675 DeclareLaTeXClass[class,package.sty]{layout description}
8676 \end_layout
8677
8678 \begin_layout LyX-Code
8679
8680 \size small
8681 #  
8682 \backslash
8683 DeclareCategory{category}
8684 \end_layout
8685
8686 \begin_layout Standard
8687 The class need only be specified if the name of the \SpecialChar LaTeX
8688  class file and the
8689  name of the layout file are different or if there are packages to load.
8690  If the name of the class file is not specified, then \SpecialChar LyX
8691  will simply assume
8692  that it is the same as the name of the layout file.
8693 \end_layout
8694
8695 \begin_layout Standard
8696 When the text class has been modified to your taste, all you have to do
8697  is to copy it either to 
8698 \begin_inset Flex Code
8699 status collapsed
8700
8701 \begin_layout Plain Layout
8702 LyXDir/layouts/
8703 \end_layout
8704
8705 \end_inset
8706
8707  or to 
8708 \begin_inset Flex Code
8709 status collapsed
8710
8711 \begin_layout Plain Layout
8712 UserDir/layouts
8713 \end_layout
8714
8715 \end_inset
8716
8717 , run 
8718 \begin_inset Flex Noun
8719 status collapsed
8720
8721 \begin_layout Plain Layout
8722 Tools\SpecialChar menuseparator
8723 Reconfigure
8724 \end_layout
8725
8726 \end_inset
8727
8728 , exit \SpecialChar LyX
8729  and restart.
8730  Then your new text class should be available along with the others.
8731 \end_layout
8732
8733 \begin_layout Standard
8734 Once the layout file is installed, you can edit it and see your changes
8735  without having to reconfigure or to restart \SpecialChar LyX
8736 .
8737 \begin_inset Foot
8738 status collapsed
8739
8740 \begin_layout Plain Layout
8741 In versions of \SpecialChar LyX
8742  prior to 1.6, this was not true.
8743  As a result, editing layout files was very time consuming, since you had
8744  constantly to restart \SpecialChar LyX
8745  to see changes.
8746 \end_layout
8747
8748 \end_inset
8749
8750  You can force a reload of the current layout by using the \SpecialChar LyX
8751  function 
8752 \begin_inset Flex Noun
8753 status collapsed
8754
8755 \begin_layout Plain Layout
8756 layout-reload
8757 \end_layout
8758
8759 \end_inset
8760
8761 .
8762  There is no default binding for this function—though, of course, you can
8763  bind it to a key yourself.
8764  But you will normally use this function simply by entering it in the mini-buffe
8765 r.
8766  
8767 \end_layout
8768
8769 \begin_layout Standard
8770
8771 \emph on
8772 Warning
8773 \emph default
8774
8775 \begin_inset Flex Noun
8776 status collapsed
8777
8778 \begin_layout Plain Layout
8779 layout-reload
8780 \end_layout
8781
8782 \end_inset
8783
8784  is very much an `advanced feature'.
8785  It is 
8786 \emph on
8787 strongly
8788 \emph default
8789  recommended that you save your work before using this function.
8790  In fact, it is 
8791 \emph on
8792 strongly
8793 \emph default
8794  recommended that you not attempt to edit layout information while simultaneousl
8795 y working on a document that you care about.
8796  Use a test document.
8797  Syntax errors and the like in your layout file could cause peculiar behavior.
8798  In particular, such errors could cause \SpecialChar LyX
8799  to regard the current layout as
8800  invalid and to attempt to switch to some other layout.
8801 \begin_inset Foot
8802 status collapsed
8803
8804 \begin_layout Plain Layout
8805 Really bad syntax errors may even caused \SpecialChar LyX
8806  to exit.
8807  This is because certain sorts of errors may make \SpecialChar LyX
8808  unable to read 
8809 \emph on
8810 any
8811 \emph default
8812  layout information.
8813  Please be careful.
8814 \end_layout
8815
8816 \end_inset
8817
8818  The \SpecialChar LyX
8819  team strives to keep \SpecialChar LyX
8820  stable in such situations, but safe is better
8821  than sorry.
8822 \begin_inset Foot
8823 status collapsed
8824
8825 \begin_layout Plain Layout
8826 While we're giving advice: make regular backups.
8827  And be nice to your mother.
8828 \end_layout
8829
8830 \end_inset
8831
8832
8833 \end_layout
8834
8835 \begin_layout Subsection
8836 The Module declaration
8837 \end_layout
8838
8839 \begin_layout Standard
8840 A module must begin with a line like the following:
8841 \end_layout
8842
8843 \begin_layout LyX-Code
8844 #
8845 \backslash
8846 DeclareLyXModule[endnotes.sty]{Endnotes}
8847 \change_inserted -712698321 1554395911
8848
8849 \end_layout
8850
8851 \begin_layout LyX-Code
8852
8853 \change_inserted -712698321 1554395924
8854
8855 \size small
8856 #
8857 \backslash
8858 DeclareCategory{Foot- and Endnotes}
8859 \change_deleted -712698321 1554395911
8860
8861 \size default
8862  
8863 \change_unchanged
8864
8865 \end_layout
8866
8867 \begin_layout Standard
8868 The mandatory argument
8869 \change_inserted -712698321 1554395956
8870  of 
8871 \family typewriter
8872
8873 \backslash
8874 DeclareLyXModule
8875 \change_unchanged
8876
8877 \family default
8878 , in curly brackets, is the name of the module, as it should appear in 
8879 \begin_inset Flex Noun
8880 status collapsed
8881
8882 \begin_layout Plain Layout
8883 Document\SpecialChar menuseparator
8884 Settings\SpecialChar menuseparator
8885 Modules
8886 \end_layout
8887
8888 \end_inset
8889
8890 .
8891  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8892  packages
8893  on which the module depends.
8894  It is also possible to use the form 
8895 \begin_inset Flex Noun
8896 status collapsed
8897
8898 \begin_layout Plain Layout
8899 from->to
8900 \end_layout
8901
8902 \end_inset
8903
8904  as an optional argument, which declares that the module can only be used
8905  when there exists a conversion chain between the formats `
8906 \begin_inset Flex Code
8907 status collapsed
8908
8909 \begin_layout Plain Layout
8910 from
8911 \end_layout
8912
8913 \end_inset
8914
8915 ' and `
8916 \begin_inset Flex Code
8917 status collapsed
8918
8919 \begin_layout Plain Layout
8920 to
8921 \end_layout
8922
8923 \end_inset
8924
8925 '.
8926
8927 \change_inserted -712698321 1554396133
8928  The 
8929 \family typewriter
8930
8931 \backslash
8932 DeclareCategory
8933 \family default
8934  declaration is not strictly mandatory, but you should add it, since it
8935  is helpful to find the module.
8936  Please have a look at the existing module categories and if appropriate,
8937  use one of those.
8938 \change_unchanged
8939
8940 \end_layout
8941
8942 \begin_layout Standard
8943 The module 
8944 \change_inserted -712698321 1554395988
8945 and category 
8946 \change_unchanged
8947 declaration should then be followed by lines like the following:
8948 \begin_inset Foot
8949 status collapsed
8950
8951 \begin_layout Plain Layout
8952 Preferably in English if the module should be published with \SpecialChar LyX
8953 .
8954  This description will appear in the list of messages to be translated and
8955  will be thus translated with the next interface update.
8956 \end_layout
8957
8958 \end_inset
8959
8960
8961 \end_layout
8962
8963 \begin_layout LyX-Code
8964 #DescriptionBegin 
8965 \end_layout
8966
8967 \begin_layout LyX-Code
8968 #Adds an endnote command, in addition to footnotes.
8969  
8970 \end_layout
8971
8972 \begin_layout LyX-Code
8973 #You will need to add  
8974 \backslash
8975 theendnotes in TeX code where you 
8976 \end_layout
8977
8978 \begin_layout LyX-Code
8979 #want the endnotes to appear.
8980  
8981 \end_layout
8982
8983 \begin_layout LyX-Code
8984 #DescriptionEnd 
8985 \end_layout
8986
8987 \begin_layout LyX-Code
8988 #Requires: somemodule | othermodule
8989 \end_layout
8990
8991 \begin_layout LyX-Code
8992 #Excludes: badmodule
8993 \end_layout
8994
8995 \begin_layout Standard
8996 The description is used in 
8997 \begin_inset Flex Noun
8998 status collapsed
8999
9000 \begin_layout Plain Layout
9001 Document\SpecialChar menuseparator
9002 Settings\SpecialChar menuseparator
9003 Modules
9004 \end_layout
9005
9006 \end_inset
9007
9008  to provide the user with information about what the module does.
9009  The 
9010 \begin_inset Flex Code
9011 status collapsed
9012
9013 \begin_layout Plain Layout
9014 Requires
9015 \end_layout
9016
9017 \end_inset
9018
9019  line is used to identify other modules with which this one must be used;
9020  the 
9021 \begin_inset Flex Code
9022 status collapsed
9023
9024 \begin_layout Plain Layout
9025 Excludes
9026 \end_layout
9027
9028 \end_inset
9029
9030  line is used to identify modules with which this one may not be used.
9031  Both are optional, and, as shown, multiple modules should be separated
9032  with the pipe symbol: |.
9033  Note that the required modules are treated disjunctively: 
9034 \emph on
9035 at least one
9036 \emph default
9037  of the required modules must be used.
9038  Similarly, 
9039 \emph on
9040 no
9041 \emph default
9042  excluded module may be used.
9043  Note that modules are identified here by their filenames without the 
9044 \begin_inset Flex Code
9045 status collapsed
9046
9047 \begin_layout Plain Layout
9048 .module
9049 \end_layout
9050
9051 \end_inset
9052
9053  extension.
9054  So 
9055 \begin_inset Flex Code
9056 status collapsed
9057
9058 \begin_layout Plain Layout
9059 somemodule
9060 \end_layout
9061
9062 \end_inset
9063
9064  is really 
9065 \begin_inset Flex Code
9066 status collapsed
9067
9068 \begin_layout Plain Layout
9069 somemodule.module
9070 \end_layout
9071
9072 \end_inset
9073
9074 .
9075 \end_layout
9076
9077 \begin_layout Subsection
9078 The CiteEngine file declaration
9079 \end_layout
9080
9081 \begin_layout Standard
9082 A cite engine file must begin with a line like the following:
9083 \end_layout
9084
9085 \begin_layout LyX-Code
9086 #
9087 \backslash
9088 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9089 \end_layout
9090
9091 \begin_layout Standard
9092 The mandatory argument, in curly brackets, is the name of the cite style,
9093  as it should appear in 
9094 \begin_inset Flex Noun
9095 status collapsed
9096
9097 \begin_layout Plain Layout
9098 Document\SpecialChar menuseparator
9099 Settings\SpecialChar menuseparator
9100 Bibliography
9101 \end_layout
9102
9103 \end_inset
9104
9105 .
9106  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
9107  packages
9108  on which the cite engine depends.
9109 \end_layout
9110
9111 \begin_layout Standard
9112 The cite engine declaration should then be followed by lines like the following:
9113 \begin_inset Foot
9114 status collapsed
9115
9116 \begin_layout Plain Layout
9117 Preferably in English if the module should be published with \SpecialChar LyX
9118 .
9119  This description will appear in the list of messages to be translated and
9120  will be thus translated with the next interface update.
9121 \end_layout
9122
9123 \end_inset
9124
9125
9126 \end_layout
9127
9128 \begin_layout LyX-Code
9129 # DescriptionBegin
9130 \end_layout
9131
9132 \begin_layout LyX-Code
9133 #   Biblatex supports many author-year and numerical styles.
9134 \end_layout
9135
9136 \begin_layout LyX-Code
9137 #   It is mainly aimed at the Humanities.
9138  It is highly
9139 \end_layout
9140
9141 \begin_layout LyX-Code
9142 #   customizable, fully localized and provides many features
9143 \end_layout
9144
9145 \begin_layout LyX-Code
9146 #   that are not possible with BibTeX.
9147  The use of 'biber' as
9148 \end_layout
9149
9150 \begin_layout LyX-Code
9151 #   bibliography processor is advised.
9152 \end_layout
9153
9154 \begin_layout LyX-Code
9155 # DescriptionEnd
9156 \end_layout
9157
9158 \begin_layout Standard
9159 The description is used in 
9160 \begin_inset Flex Noun
9161 status collapsed
9162
9163 \begin_layout Plain Layout
9164 Document\SpecialChar menuseparator
9165 Settings\SpecialChar menuseparator
9166 Bibliography
9167 \end_layout
9168
9169 \end_inset
9170
9171  to provide the user with information about the cite engine.
9172 \end_layout
9173
9174 \begin_layout Subsection
9175 Format number
9176 \end_layout
9177
9178 \begin_layout Standard
9179 The first non-comment line of any layout file, included file, or module
9180  
9181 \emph on
9182 must
9183 \emph default
9184  contain the file format number:
9185 \end_layout
9186
9187 \begin_layout Description
9188 \begin_inset Flex Code
9189 status collapsed
9190
9191 \begin_layout Plain Layout
9192 Format
9193 \end_layout
9194
9195 \end_inset
9196
9197  [
9198 \begin_inset Flex Code
9199 status collapsed
9200
9201 \begin_layout Plain Layout
9202 int
9203 \end_layout
9204
9205 \end_inset
9206
9207 ] The format number of the layout file.
9208 \end_layout
9209
9210 \begin_layout Standard
9211 This tag was introduced with \SpecialChar LyX
9212
9213 \begin_inset space ~
9214 \end_inset
9215
9216 1.4.0.
9217  Layout files from older \SpecialChar LyX
9218  versions do not have an explicit file format and
9219  are considered to have 
9220 \begin_inset Flex Code
9221 status collapsed
9222
9223 \begin_layout Plain Layout
9224 Format
9225 \begin_inset space ~
9226 \end_inset
9227
9228 1
9229 \end_layout
9230
9231 \end_inset
9232
9233 .
9234  The format for the present version of \SpecialChar LyX
9235  is format 60.
9236  But each version of \SpecialChar LyX
9237  is capable of reading earlier versions' layout files,
9238  just as they are capable of reading files produced by earlier versions
9239  of \SpecialChar LyX
9240 .
9241  There is, however, no provision for converting to earlier formats.
9242 \end_layout
9243
9244 \begin_layout Subsection
9245 \begin_inset CommandInset label
9246 LatexCommand label
9247 name "subsec:General-text-class"
9248
9249 \end_inset
9250
9251 General text class parameters
9252 \end_layout
9253
9254 \begin_layout Standard
9255 These are general parameters that govern the behavior of an entire document
9256  class.
9257  (This does 
9258 \emph on
9259 not
9260 \emph default
9261  mean that they must appear in 
9262 \begin_inset Flex Code
9263 status collapsed
9264
9265 \begin_layout Plain Layout
9266 .layout
9267 \end_layout
9268
9269 \end_inset
9270
9271  files rather than in modules.
9272  A module can contain any layout tag.)
9273 \end_layout
9274
9275 \begin_layout Description
9276
9277 \change_inserted -712698321 1526899478
9278 \begin_inset Flex Code
9279 status collapsed
9280
9281 \begin_layout Plain Layout
9282
9283 \change_inserted -712698321 1526898610
9284 AddToCiteEngine <engine>
9285 \change_unchanged
9286
9287 \end_layout
9288
9289 \end_inset
9290
9291  Extends the possibilities for displaying citation references.
9292  See 
9293 \begin_inset CommandInset ref
9294 LatexCommand ref
9295 reference "subsec:Citation-engine-description"
9296 plural "false"
9297 caps "false"
9298 noprefix "false"
9299
9300 \end_inset
9301
9302  for details.
9303  Must end with 
9304 \begin_inset Flex Code
9305 status collapsed
9306
9307 \begin_layout Plain Layout
9308
9309 \change_inserted -712698321 1526898823
9310 End
9311 \change_unchanged
9312
9313 \end_layout
9314
9315 \end_inset
9316
9317 .
9318 \end_layout
9319
9320 \begin_layout Description
9321 \begin_inset Flex Code
9322 status collapsed
9323
9324 \begin_layout Plain Layout
9325 AddToHTMLPreamble
9326 \end_layout
9327
9328 \end_inset
9329
9330  Adds information that will be output in the 
9331 \begin_inset Flex Code
9332 status collapsed
9333
9334 \begin_layout Plain Layout
9335 <head>
9336 \end_layout
9337
9338 \end_inset
9339
9340  block when the document is output to XHTML.
9341  Typically, this would be used to output CSS style information, but it can
9342  be used for anything that can appear in 
9343 \begin_inset Flex Code
9344 status collapsed
9345
9346 \begin_layout Plain Layout
9347 <head>
9348 \end_layout
9349
9350 \end_inset
9351
9352 .
9353  Must end with 
9354 \begin_inset Quotes eld
9355 \end_inset
9356
9357
9358 \begin_inset Flex Code
9359 status collapsed
9360
9361 \begin_layout Plain Layout
9362 EndPreamble
9363 \end_layout
9364
9365 \end_inset
9366
9367
9368 \begin_inset Quotes erd
9369 \end_inset
9370
9371 .
9372 \end_layout
9373
9374 \begin_layout Description
9375 \begin_inset Flex Code
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 AddToPreamble
9380 \end_layout
9381
9382 \end_inset
9383
9384  Adds information to the document preamble.
9385  Must end with
9386 \begin_inset Newline newline
9387 \end_inset
9388
9389
9390 \begin_inset Quotes eld
9391 \end_inset
9392
9393
9394 \begin_inset Flex Code
9395 status collapsed
9396
9397 \begin_layout Plain Layout
9398 EndPreamble
9399 \end_layout
9400
9401 \end_inset
9402
9403
9404 \begin_inset Quotes erd
9405 \end_inset
9406
9407 .
9408 \change_inserted -712698321 1562592950
9409
9410 \end_layout
9411
9412 \begin_layout Description
9413
9414 \change_inserted -712698321 1562593040
9415 \begin_inset Flex Code
9416 status collapsed
9417
9418 \begin_layout Plain Layout
9419
9420 \change_inserted -712698321 1562592954
9421 BibInToc
9422 \change_unchanged
9423
9424 \end_layout
9425
9426 \end_inset
9427
9428  [
9429 \begin_inset Flex Code
9430 status collapsed
9431
9432 \begin_layout Plain Layout
9433
9434 \change_inserted -712698321 1562592950
9435
9436 \emph on
9437 0
9438 \change_unchanged
9439
9440 \end_layout
9441
9442 \end_inset
9443
9444 ,
9445 \begin_inset space \thinspace{}
9446 \end_inset
9447
9448
9449 \begin_inset Flex Code
9450 status collapsed
9451
9452 \begin_layout Plain Layout
9453
9454 \change_inserted -712698321 1562592950
9455 1
9456 \change_unchanged
9457
9458 \end_layout
9459
9460 \end_inset
9461
9462 ] If the document class adds the bibliography to the table of contents,
9463  add this option with value 
9464 \begin_inset Flex Code
9465 status collapsed
9466
9467 \begin_layout Plain Layout
9468
9469 \change_inserted -712698321 1562592996
9470 1
9471 \change_unchanged
9472
9473 \end_layout
9474
9475 \end_inset
9476
9477  (or 
9478 \begin_inset Flex Code
9479 status collapsed
9480
9481 \begin_layout Plain Layout
9482
9483 \change_inserted -712698321 1562593006
9484 true
9485 \change_unchanged
9486
9487 \end_layout
9488
9489 \end_inset
9490
9491 ).
9492  This prevents the bibliography from being added twice.
9493 \change_unchanged
9494
9495 \end_layout
9496
9497 \begin_layout Description
9498 \begin_inset Flex Code
9499 status collapsed
9500
9501 \begin_layout Plain Layout
9502 CiteEngine <engine>
9503 \end_layout
9504
9505 \end_inset
9506
9507  Defines the possibilities for displaying citation references.
9508  See 
9509 \begin_inset CommandInset ref
9510 LatexCommand ref
9511 reference "subsec:Citation-engine-description"
9512 plural "false"
9513 caps "false"
9514 noprefix "false"
9515
9516 \end_inset
9517
9518  for details.
9519  Must end with 
9520 \begin_inset Quotes eld
9521 \end_inset
9522
9523
9524 \begin_inset Flex Code
9525 status collapsed
9526
9527 \begin_layout Plain Layout
9528 End
9529 \end_layout
9530
9531 \end_inset
9532
9533
9534 \begin_inset Quotes erd
9535 \end_inset
9536
9537 .
9538  Primarily used in cite engine files (see 
9539 \begin_inset CommandInset ref
9540 LatexCommand ref
9541 reference "subsec:Cite-Engine-Files"
9542 plural "false"
9543 caps "false"
9544 noprefix "false"
9545
9546 \end_inset
9547
9548 ).
9549
9550 \change_inserted -712698321 1526898530
9551  Note that if you specify this in a layout file or module, any cite engine
9552  definition will be overridden.
9553  Also see 
9554 \begin_inset Flex Code
9555 status collapsed
9556
9557 \begin_layout Plain Layout
9558
9559 \change_inserted -712698321 1526898530
9560 AddToCiteEngine
9561 \change_unchanged
9562
9563 \end_layout
9564
9565 \end_inset
9566
9567 .
9568 \change_unchanged
9569
9570 \end_layout
9571
9572 \begin_layout Description
9573 \begin_inset Flex Code
9574 status collapsed
9575
9576 \begin_layout Plain Layout
9577 CiteFormat
9578 \end_layout
9579
9580 \end_inset
9581
9582  Defines formats for use in the display of bibliographic information.
9583  See 
9584 \begin_inset CommandInset ref
9585 LatexCommand ref
9586 reference "subsec:Citation-format-description"
9587
9588 \end_inset
9589
9590  for details.
9591  Must end with 
9592 \begin_inset Quotes eld
9593 \end_inset
9594
9595
9596 \begin_inset Flex Code
9597 status collapsed
9598
9599 \begin_layout Plain Layout
9600 End
9601 \end_layout
9602
9603 \end_inset
9604
9605
9606 \begin_inset Quotes erd
9607 \end_inset
9608
9609 .
9610  Primarily used in cite engine files (see 
9611 \begin_inset CommandInset ref
9612 LatexCommand ref
9613 reference "subsec:Cite-Engine-Files"
9614 plural "false"
9615 caps "false"
9616 noprefix "false"
9617
9618 \end_inset
9619
9620 ).
9621
9622 \change_inserted -712698321 1526898585
9623  A cite format defined in a layout or module will override the cite engine
9624  definition.
9625 \change_unchanged
9626
9627 \end_layout
9628
9629 \begin_layout Description
9630 \begin_inset Flex Code
9631 status collapsed
9632
9633 \begin_layout Plain Layout
9634 CiteFramework
9635 \end_layout
9636
9637 \end_inset
9638
9639  [
9640 \begin_inset Flex Code
9641 status collapsed
9642
9643 \begin_layout Plain Layout
9644
9645 \emph on
9646 bibtex
9647 \end_layout
9648
9649 \end_inset
9650
9651 ,
9652 \begin_inset Flex Code
9653 status collapsed
9654
9655 \begin_layout Plain Layout
9656 biblatex
9657 \end_layout
9658
9659 \end_inset
9660
9661 ] Determines whether 
9662 \family sans
9663 Biblatex
9664 \family default
9665  or Bib\SpecialChar TeX
9666  is used to generate a Bibliography.
9667  Primarily used in cite engine files (see 
9668 \begin_inset CommandInset ref
9669 LatexCommand ref
9670 reference "subsec:Cite-Engine-Files"
9671 plural "false"
9672 caps "false"
9673 noprefix "false"
9674
9675 \end_inset
9676
9677 ).
9678 \end_layout
9679
9680 \begin_layout Description
9681 \begin_inset Flex Code
9682 status collapsed
9683
9684 \begin_layout Plain Layout
9685 ClassOptions
9686 \end_layout
9687
9688 \end_inset
9689
9690  Describes various global options supported by the document class.
9691  See 
9692 \begin_inset CommandInset ref
9693 LatexCommand ref
9694 reference "subsec:ClassOptions"
9695
9696 \end_inset
9697
9698  for a description.
9699  Must end with 
9700 \begin_inset Quotes eld
9701 \end_inset
9702
9703
9704 \begin_inset Flex Code
9705 status collapsed
9706
9707 \begin_layout Plain Layout
9708 End
9709 \end_layout
9710
9711 \end_inset
9712
9713
9714 \begin_inset Quotes erd
9715 \end_inset
9716
9717 .
9718 \end_layout
9719
9720 \begin_layout Description
9721 \begin_inset Flex Code
9722 status collapsed
9723
9724 \begin_layout Plain Layout
9725 Columns
9726 \end_layout
9727
9728 \end_inset
9729
9730  [
9731 \begin_inset Flex Code
9732 status collapsed
9733
9734 \begin_layout Plain Layout
9735
9736 \emph on
9737 1
9738 \end_layout
9739
9740 \end_inset
9741
9742 ,
9743 \begin_inset space \thinspace{}
9744 \end_inset
9745
9746
9747 \begin_inset Flex Code
9748 status collapsed
9749
9750 \begin_layout Plain Layout
9751 2
9752 \end_layout
9753
9754 \end_inset
9755
9756 ] Whether the class should 
9757 \emph on
9758 default
9759 \emph default
9760  to having one or two columns.
9761  Can be changed in the 
9762 \begin_inset Flex Noun
9763 status collapsed
9764
9765 \begin_layout Plain Layout
9766 Document\SpecialChar menuseparator
9767 Settings
9768 \end_layout
9769
9770 \end_inset
9771
9772  dialog.
9773 \end_layout
9774
9775 \begin_layout Description
9776 \begin_inset Flex Code
9777 status collapsed
9778
9779 \begin_layout Plain Layout
9780 Counter
9781 \end_layout
9782
9783 \end_inset
9784
9785  [
9786 \begin_inset Flex Code
9787 status collapsed
9788
9789 \begin_layout Plain Layout
9790 string
9791 \end_layout
9792
9793 \end_inset
9794
9795 ] This sequence defines the properties for a counter.
9796  If the counter does not yet exist, it is created; if it does exist, it
9797  is modified.
9798  Must end with 
9799 \begin_inset Quotes eld
9800 \end_inset
9801
9802
9803 \begin_inset Flex Code
9804 status collapsed
9805
9806 \begin_layout Plain Layout
9807 End
9808 \end_layout
9809
9810 \end_inset
9811
9812
9813 \begin_inset Quotes erd
9814 \end_inset
9815
9816 .
9817 \begin_inset Newline newline
9818 \end_inset
9819
9820 See 
9821 \begin_inset CommandInset ref
9822 LatexCommand ref
9823 reference "subsec:Counters"
9824
9825 \end_inset
9826
9827  for details on counters.
9828 \end_layout
9829
9830 \begin_layout Description
9831 \begin_inset Flex Code
9832 status collapsed
9833
9834 \begin_layout Plain Layout
9835 DefaultFont
9836 \end_layout
9837
9838 \end_inset
9839
9840  Sets the default font used to display the document.
9841  See 
9842 \begin_inset CommandInset ref
9843 LatexCommand ref
9844 reference "subsec:Font-description"
9845
9846 \end_inset
9847
9848  for how to declare fonts.
9849  Must end with 
9850 \begin_inset Quotes eld
9851 \end_inset
9852
9853
9854 \begin_inset Flex Code
9855 status collapsed
9856
9857 \begin_layout Plain Layout
9858 EndFont
9859 \end_layout
9860
9861 \end_inset
9862
9863
9864 \begin_inset Quotes erd
9865 \end_inset
9866
9867 .
9868 \end_layout
9869
9870 \begin_layout Description
9871 \begin_inset Flex Code
9872 status collapsed
9873
9874 \begin_layout Plain Layout
9875 DefaultModule
9876 \end_layout
9877
9878 \end_inset
9879
9880  [
9881 \begin_inset Flex Code
9882 status collapsed
9883
9884 \begin_layout Plain Layout
9885 <module>
9886 \end_layout
9887
9888 \end_inset
9889
9890 ] Specifies a module to be included by default with this document class.
9891  The module is specified as filename without the 
9892 \begin_inset Flex Code
9893 status collapsed
9894
9895 \begin_layout Plain Layout
9896 .module
9897 \end_layout
9898
9899 \end_inset
9900
9901  extension.
9902  The user can still remove the module, but it will be active at the outset.
9903  (This applies only when new files are created, or when this class is chosen
9904  for an existing document.)
9905 \end_layout
9906
9907 \begin_layout Description
9908 \begin_inset Flex Code
9909 status collapsed
9910
9911 \begin_layout Plain Layout
9912 DefaultStyle
9913 \end_layout
9914
9915 \end_inset
9916
9917  [
9918 \begin_inset Flex Code
9919 status collapsed
9920
9921 \begin_layout Plain Layout
9922 <style>
9923 \end_layout
9924
9925 \end_inset
9926
9927 ] This is the style that will be assigned to new paragraphs, usually 
9928 \begin_inset Flex Noun
9929 status collapsed
9930
9931 \begin_layout Plain Layout
9932 Standard
9933 \end_layout
9934
9935 \end_inset
9936
9937 .
9938  This will default to the first defined style if not given, but you are
9939  encouraged to use this directive.
9940 \end_layout
9941
9942 \begin_layout Description
9943
9944 \change_inserted -970929547 1515112870
9945 \begin_inset Flex Code
9946 status collapsed
9947
9948 \begin_layout Plain Layout
9949
9950 \change_inserted -970929547 1515112782
9951 DocBookRoot
9952 \change_unchanged
9953
9954 \end_layout
9955
9956 \end_inset
9957
9958  [
9959 \begin_inset Flex Code
9960 status collapsed
9961
9962 \begin_layout Plain Layout
9963
9964 \change_inserted -970929547 1515112766
9965 string
9966 \change_unchanged
9967
9968 \end_layout
9969
9970 \end_inset
9971
9972 ] The root element (at the top of the document) to use when outputting documents
9973  with this class in DocBook.
9974  The default value is 
9975 \begin_inset Quotes eld
9976 \end_inset
9977
9978
9979 \begin_inset Flex Code
9980 status collapsed
9981
9982 \begin_layout Plain Layout
9983
9984 \change_inserted -970929547 1515112845
9985 article
9986 \change_unchanged
9987
9988 \end_layout
9989
9990 \end_inset
9991
9992
9993 \begin_inset Quotes erd
9994 \end_inset
9995
9996 .
9997
9998 \change_deleted 1075283030 1594226862
9999  
10000 \change_inserted 1075283030 1594226777
10001
10002 \end_layout
10003
10004 \begin_layout Description
10005
10006 \change_inserted 1075283030 1594226859
10007 \begin_inset Flex Code
10008 status collapsed
10009
10010 \begin_layout Plain Layout
10011
10012 \change_inserted 1075283030 1594226785
10013 DocBookForceAbstract
10014 \change_unchanged
10015
10016 \end_layout
10017
10018 \end_inset
10019
10020  [
10021 \begin_inset Flex Code
10022 status collapsed
10023
10024 \begin_layout Plain Layout
10025
10026 \change_inserted 1075283030 1594226804
10027 boolean
10028 \change_unchanged
10029
10030 \end_layout
10031
10032 \end_inset
10033
10034 ] If 
10035 \begin_inset Quotes eld
10036 \end_inset
10037
10038
10039 \family typewriter
10040 true
10041 \family default
10042
10043 \begin_inset Quotes erd
10044 \end_inset
10045
10046 , the root element will always have an 
10047 \family typewriter
10048 <abstract>
10049 \family default
10050  tag.
10051  The default value is 
10052 \begin_inset Quotes eld
10053 \end_inset
10054
10055
10056 \family typewriter
10057 false
10058 \family default
10059
10060 \begin_inset Quotes erd
10061 \end_inset
10062
10063 .
10064 \change_unchanged
10065
10066 \end_layout
10067
10068 \begin_layout Description
10069 \begin_inset Flex Code
10070 status collapsed
10071
10072 \begin_layout Plain Layout
10073 ExcludesModule
10074 \end_layout
10075
10076 \end_inset
10077
10078  [
10079 \begin_inset Flex Code
10080 status collapsed
10081
10082 \begin_layout Plain Layout
10083 <module>
10084 \end_layout
10085
10086 \end_inset
10087
10088 ] This tag indicates that the module (which is specified by filename without
10089  the 
10090 \begin_inset Flex Code
10091 status collapsed
10092
10093 \begin_layout Plain Layout
10094 .module
10095 \end_layout
10096
10097 \end_inset
10098
10099  extension) cannot be used with this document class.
10100  This might be used in a journal-specific layout file to prevent, say, the
10101  use of the 
10102 \begin_inset Flex Code
10103 status collapsed
10104
10105 \begin_layout Plain Layout
10106 theorems-sec
10107 \end_layout
10108
10109 \end_inset
10110
10111  module that numbers theorems by section.
10112  This tag may 
10113 \emph on
10114 not
10115 \emph default
10116  be used in a module.
10117  Modules have their own way of excluding other modules (see 
10118 \begin_inset CommandInset ref
10119 LatexCommand ref
10120 reference "subsec:Layout-modules"
10121
10122 \end_inset
10123
10124 ).
10125 \end_layout
10126
10127 \begin_layout Description
10128 \begin_inset Flex Code
10129 status collapsed
10130
10131 \begin_layout Plain Layout
10132 Float
10133 \end_layout
10134
10135 \end_inset
10136
10137  Defines a new float.
10138  See 
10139 \begin_inset CommandInset ref
10140 LatexCommand ref
10141 reference "subsec:Floats"
10142
10143 \end_inset
10144
10145  for details.
10146  Must end with 
10147 \begin_inset Quotes eld
10148 \end_inset
10149
10150
10151 \begin_inset Flex Code
10152 status collapsed
10153
10154 \begin_layout Plain Layout
10155 End
10156 \end_layout
10157
10158 \end_inset
10159
10160
10161 \begin_inset Quotes erd
10162 \end_inset
10163
10164 .
10165 \end_layout
10166
10167 \begin_layout Description
10168 \begin_inset Flex Code
10169 status collapsed
10170
10171 \begin_layout Plain Layout
10172 HTMLPreamble
10173 \end_layout
10174
10175 \end_inset
10176
10177  Sets the information that will be output in the 
10178 \begin_inset Flex Code
10179 status collapsed
10180
10181 \begin_layout Plain Layout
10182 <head>
10183 \end_layout
10184
10185 \end_inset
10186
10187  block when this document class is output to XHTML.
10188  Note that this will completely override any prior 
10189 \begin_inset Flex Code
10190 status collapsed
10191
10192 \begin_layout Plain Layout
10193 HTMLPreamble
10194 \end_layout
10195
10196 \end_inset
10197
10198  or 
10199 \begin_inset Flex Code
10200 status collapsed
10201
10202 \begin_layout Plain Layout
10203 AddToHTMLPreamble
10204 \end_layout
10205
10206 \end_inset
10207
10208  declarations.
10209  (Use
10210 \begin_inset Newline newline
10211 \end_inset
10212
10213
10214 \begin_inset Flex Code
10215 status collapsed
10216
10217 \begin_layout Plain Layout
10218 AddToHTMLPreamble
10219 \end_layout
10220
10221 \end_inset
10222
10223  if you just want to add material to the preamble.) Must end with 
10224 \begin_inset Quotes eld
10225 \end_inset
10226
10227
10228 \begin_inset Flex Code
10229 status collapsed
10230
10231 \begin_layout Plain Layout
10232 EndPreamble
10233 \end_layout
10234
10235 \end_inset
10236
10237
10238 \begin_inset Quotes erd
10239 \end_inset
10240
10241 .
10242 \end_layout
10243
10244 \begin_layout Description
10245 \begin_inset Flex Code
10246 status collapsed
10247
10248 \begin_layout Plain Layout
10249 HTMLTOCSection
10250 \end_layout
10251
10252 \end_inset
10253
10254  [
10255 \begin_inset Flex Code
10256 status collapsed
10257
10258 \begin_layout Plain Layout
10259 <style>
10260 \end_layout
10261
10262 \end_inset
10263
10264 ] The style to use for the table of contents, bibliography, and so forth,
10265  when the document is output to HTML.
10266  For articles, this should normally be 
10267 \begin_inset Flex Code
10268 status collapsed
10269
10270 \begin_layout Plain Layout
10271 Section
10272 \end_layout
10273
10274 \end_inset
10275
10276 ; for books 
10277 \begin_inset Flex Code
10278 status collapsed
10279
10280 \begin_layout Plain Layout
10281 Chapter
10282 \end_layout
10283
10284 \end_inset
10285
10286 .
10287  If it is not given, then \SpecialChar LyX
10288  will attempt to figure out which layout to use.
10289 \end_layout
10290
10291 \begin_layout Description
10292 \begin_inset Flex Code
10293 status collapsed
10294
10295 \begin_layout Plain Layout
10296 IfCounter
10297 \end_layout
10298
10299 \end_inset
10300
10301  [
10302 \begin_inset Flex Code
10303 status collapsed
10304
10305 \begin_layout Plain Layout
10306 <counter>
10307 \end_layout
10308
10309 \end_inset
10310
10311 ] Modifies the properties of the given counter.
10312  If the counter does not exist, the statement is ignored.
10313  Must end with 
10314 \begin_inset Quotes eld
10315 \end_inset
10316
10317
10318 \begin_inset Flex Code
10319 status collapsed
10320
10321 \begin_layout Plain Layout
10322 End
10323 \end_layout
10324
10325 \end_inset
10326
10327
10328 \begin_inset Quotes erd
10329 \end_inset
10330
10331 .
10332 \begin_inset Newline newline
10333 \end_inset
10334
10335 See 
10336 \begin_inset CommandInset ref
10337 LatexCommand ref
10338 reference "subsec:Counters"
10339
10340 \end_inset
10341
10342  for details on counters.
10343 \end_layout
10344
10345 \begin_layout Description
10346 \begin_inset Flex Code
10347 status collapsed
10348
10349 \begin_layout Plain Layout
10350 Input
10351 \end_layout
10352
10353 \end_inset
10354
10355  [
10356 \begin_inset Flex Code
10357 status collapsed
10358
10359 \begin_layout Plain Layout
10360 <filename>
10361 \end_layout
10362
10363 \end_inset
10364
10365 ] This allows you to include another layout definition file within yours
10366  to avoid duplicating commands.
10367  Common examples are the standard layout files, for example, 
10368 \begin_inset Flex Code
10369 status collapsed
10370
10371 \begin_layout Plain Layout
10372 stdclass.inc
10373 \end_layout
10374
10375 \end_inset
10376
10377 , which contains most of the basic layouts.
10378 \end_layout
10379
10380 \begin_layout Description
10381 \begin_inset Flex Code
10382 status collapsed
10383
10384 \begin_layout Plain Layout
10385 InsetLayout
10386 \end_layout
10387
10388 \end_inset
10389
10390  [
10391 \begin_inset Flex Code
10392 status collapsed
10393
10394 \begin_layout Plain Layout
10395 <type>
10396 \end_layout
10397
10398 \end_inset
10399
10400 ] This section (re-)defines the layout of an inset.
10401  It can be applied to an existing inset or to a new, user-defined inset,
10402  e.g., a new character style.
10403  Must end with 
10404 \begin_inset Quotes eld
10405 \end_inset
10406
10407
10408 \begin_inset Flex Code
10409 status collapsed
10410
10411 \begin_layout Plain Layout
10412 End
10413 \end_layout
10414
10415 \end_inset
10416
10417
10418 \begin_inset Quotes erd
10419 \end_inset
10420
10421 .
10422 \begin_inset Newline newline
10423 \end_inset
10424
10425 See 
10426 \begin_inset CommandInset ref
10427 LatexCommand ref
10428 reference "subsec:Flex-insets-and"
10429
10430 \end_inset
10431
10432  for more information.
10433  
10434 \end_layout
10435
10436 \begin_layout Description
10437 \begin_inset Flex Code
10438 status collapsed
10439
10440 \begin_layout Plain Layout
10441 LeftMargin
10442 \end_layout
10443
10444 \end_inset
10445
10446  [
10447 \begin_inset Flex Code
10448 status collapsed
10449
10450 \begin_layout Plain Layout
10451 string
10452 \end_layout
10453
10454 \end_inset
10455
10456 ] A string that indicates the width of the left margin on the screen, for
10457  example, 
10458 \begin_inset Quotes eld
10459 \end_inset
10460
10461
10462 \begin_inset Flex Code
10463 status collapsed
10464
10465 \begin_layout Plain Layout
10466 MMMMM
10467 \end_layout
10468
10469 \end_inset
10470
10471
10472 \begin_inset Quotes erd
10473 \end_inset
10474
10475 .
10476  (Note that this is not a `length', like 
10477 \begin_inset Quotes eld
10478 \end_inset
10479
10480 2ex
10481 \begin_inset Quotes erd
10482 \end_inset
10483
10484 .)
10485 \end_layout
10486
10487 \begin_layout Description
10488 \begin_inset Flex Code
10489 status collapsed
10490
10491 \begin_layout Plain Layout
10492 MaxCiteNames
10493 \end_layout
10494
10495 \end_inset
10496
10497  [
10498 \begin_inset Flex Code
10499 status collapsed
10500
10501 \begin_layout Plain Layout
10502 integer
10503 \end_layout
10504
10505 \end_inset
10506
10507 ] An integer that determines the maximal number of names displayed in an
10508  author-year citation before the citation switches to 
10509 \begin_inset Quotes eld
10510 \end_inset
10511
10512 FirstAuthor et al.
10513 \begin_inset Quotes erd
10514 \end_inset
10515
10516 .
10517  Primarily used in cite engine files (see 
10518 \begin_inset CommandInset ref
10519 LatexCommand ref
10520 reference "subsec:Cite-Engine-Files"
10521 plural "false"
10522 caps "false"
10523 noprefix "false"
10524
10525 \end_inset
10526
10527 ).
10528 \end_layout
10529
10530 \begin_layout Description
10531 \begin_inset Flex Code
10532 status collapsed
10533
10534 \begin_layout Plain Layout
10535 ModifyStyle
10536 \end_layout
10537
10538 \end_inset
10539
10540  [
10541 \begin_inset Flex Code
10542 status collapsed
10543
10544 \begin_layout Plain Layout
10545 <style>
10546 \end_layout
10547
10548 \end_inset
10549
10550 ] Modifies the properties of the given paragraph style.
10551  If the style does not exist, this section is ignored.
10552  Must end with 
10553 \begin_inset Quotes eld
10554 \end_inset
10555
10556
10557 \begin_inset Flex Code
10558 status collapsed
10559
10560 \begin_layout Plain Layout
10561 End
10562 \end_layout
10563
10564 \end_inset
10565
10566
10567 \begin_inset Quotes erd
10568 \end_inset
10569
10570 .
10571 \end_layout
10572
10573 \begin_layout Description
10574 \begin_inset Flex Code
10575 status collapsed
10576
10577 \begin_layout Plain Layout
10578 NoCounter
10579 \end_layout
10580
10581 \end_inset
10582
10583  [
10584 \begin_inset Flex Code
10585 status collapsed
10586
10587 \begin_layout Plain Layout
10588 <counter>
10589 \end_layout
10590
10591 \end_inset
10592
10593 ] Deletes an existing counter, usually one defined in an included file.
10594 \end_layout
10595
10596 \begin_layout Description
10597 \begin_inset Flex Code
10598 status collapsed
10599
10600 \begin_layout Plain Layout
10601 NoFloat
10602 \end_layout
10603
10604 \end_inset
10605
10606  [
10607 \begin_inset Flex Code
10608 status collapsed
10609
10610 \begin_layout Plain Layout
10611 <float>
10612 \end_layout
10613
10614 \end_inset
10615
10616 ] Deletes an existing float.
10617  This is particularly useful when you want to suppress a float that has
10618  been defined in an input file.
10619 \end_layout
10620
10621 \begin_layout Description
10622 \begin_inset Flex Code
10623 status collapsed
10624
10625 \begin_layout Plain Layout
10626 NoStyle
10627 \end_layout
10628
10629 \end_inset
10630
10631  [
10632 \begin_inset Flex Code
10633 status collapsed
10634
10635 \begin_layout Plain Layout
10636 <style>
10637 \end_layout
10638
10639 \end_inset
10640
10641 ] Deletes an existing style.
10642 \end_layout
10643
10644 \begin_layout Description
10645 \begin_inset Flex Code
10646 status collapsed
10647
10648 \begin_layout Plain Layout
10649 OutlinerName
10650 \end_layout
10651
10652 \end_inset
10653
10654  [
10655 \begin_inset Flex Code
10656 status collapsed
10657
10658 \begin_layout Plain Layout
10659 <type>
10660 \end_layout
10661
10662 \end_inset
10663
10664 ] [
10665 \begin_inset Flex Code
10666 status collapsed
10667
10668 \begin_layout Plain Layout
10669 <string>
10670 \end_layout
10671
10672 \end_inset
10673
10674 ] Define a new table of contents with type 
10675 \begin_inset Flex Code
10676 status collapsed
10677
10678 \begin_layout Plain Layout
10679 <type>
10680 \end_layout
10681
10682 \end_inset
10683
10684  and name 
10685 \begin_inset Flex Code
10686 status collapsed
10687
10688 \begin_layout Plain Layout
10689 <string>
10690 \end_layout
10691
10692 \end_inset
10693
10694 .
10695  See also the AddToToc commands.
10696 \end_layout
10697
10698 \begin_layout Description
10699 \begin_inset Flex Code
10700 status collapsed
10701
10702 \begin_layout Plain Layout
10703 OutputFormat
10704 \end_layout
10705
10706 \end_inset
10707
10708  [
10709 \begin_inset Flex Code
10710 status collapsed
10711
10712 \begin_layout Plain Layout
10713 <format>
10714 \end_layout
10715
10716 \end_inset
10717
10718 ] The file format (as defined in the \SpecialChar LyX
10719  preferences) produced by this document
10720  class.
10721  It is mainly useful when 
10722 \begin_inset Flex Code
10723 status collapsed
10724
10725 \begin_layout Plain Layout
10726 OutputType
10727 \end_layout
10728
10729 \end_inset
10730
10731  is 
10732 \begin_inset Flex Code
10733 status collapsed
10734
10735 \begin_layout Plain Layout
10736 literate
10737 \end_layout
10738
10739 \end_inset
10740
10741  and one wants to define a new type of literate document.
10742  The format is reset to 
10743 \change_deleted 5863208 1594239413
10744
10745 \begin_inset Quotes eld
10746 \end_inset
10747
10748
10749 \begin_inset Flex Code
10750 status collapsed
10751
10752 \begin_layout Plain Layout
10753 docbook
10754 \end_layout
10755
10756 \end_inset
10757
10758
10759 \begin_inset Quotes erd
10760 \end_inset
10761
10762  or
10763 \change_unchanged
10764  
10765 \begin_inset Quotes eld
10766 \end_inset
10767
10768
10769 \begin_inset Flex Code
10770 status collapsed
10771
10772 \begin_layout Plain Layout
10773 latex
10774 \end_layout
10775
10776 \end_inset
10777
10778
10779 \begin_inset Quotes erd
10780 \end_inset
10781
10782  when the corresponding 
10783 \begin_inset Flex Code
10784 status collapsed
10785
10786 \begin_layout Plain Layout
10787 OutputType
10788 \end_layout
10789
10790 \end_inset
10791
10792  parameter is encountered.
10793 \end_layout
10794
10795 \begin_layout Description
10796 \begin_inset Flex Code
10797 status collapsed
10798
10799 \begin_layout Plain Layout
10800 OutputType
10801 \end_layout
10802
10803 \end_inset
10804
10805  [
10806 \begin_inset Flex Code
10807 status collapsed
10808
10809 \begin_layout Plain Layout
10810
10811 \emph on
10812 lat
10813 \emph default
10814 ex
10815 \end_layout
10816
10817 \end_inset
10818
10819
10820 \change_deleted 5863208 1594239430
10821
10822 \begin_inset Flex Code
10823 status collapsed
10824
10825 \begin_layout Plain Layout
10826 docbook
10827 \end_layout
10828
10829 \end_inset
10830
10831 ,
10832 \change_unchanged
10833  
10834 \begin_inset Flex Code
10835 status collapsed
10836
10837 \begin_layout Plain Layout
10838 literate
10839 \end_layout
10840
10841 \end_inset
10842
10843 ] Specifies what sort of output documents using this class will produce.
10844 \end_layout
10845
10846 \begin_layout Description
10847 \begin_inset Flex Code
10848 status collapsed
10849
10850 \begin_layout Plain Layout
10851 PackageOptions
10852 \end_layout
10853
10854 \end_inset
10855
10856  [
10857 \begin_inset Flex Code
10858 status collapsed
10859
10860 \begin_layout Plain Layout
10861 string
10862 \end_layout
10863
10864 \end_inset
10865
10866  
10867 \begin_inset Flex Code
10868 status collapsed
10869
10870 \begin_layout Plain Layout
10871 string
10872 \end_layout
10873
10874 \end_inset
10875
10876 ] Specifies options, given in the second string, for the package named by
10877  the first string.
10878  For example, 
10879 \begin_inset Quotes eld
10880 \end_inset
10881
10882
10883 \begin_inset Flex Code
10884 status collapsed
10885
10886 \begin_layout Plain Layout
10887 PackageOptions natbib square
10888 \end_layout
10889
10890 \end_inset
10891
10892
10893 \begin_inset Quotes erd
10894 \end_inset
10895
10896  will cause 
10897 \begin_inset Flex Code
10898 status collapsed
10899
10900 \begin_layout Plain Layout
10901 natbib
10902 \end_layout
10903
10904 \end_inset
10905
10906  to be loaded with the 
10907 \begin_inset Flex Code
10908 status collapsed
10909
10910 \begin_layout Plain Layout
10911 square
10912 \end_layout
10913
10914 \end_inset
10915
10916  option.
10917  (For \SpecialChar TeX
10918 perts, this causes \SpecialChar LyX
10919  to output: 
10920 \begin_inset Flex Code
10921 status collapsed
10922
10923 \begin_layout Plain Layout
10924
10925 \backslash
10926 PassOptionsToPackage{natbib}{square}
10927 \end_layout
10928
10929 \end_inset
10930
10931  prior to loading 
10932 \begin_inset Flex Code
10933 status collapsed
10934
10935 \begin_layout Plain Layout
10936 natbib
10937 \end_layout
10938
10939 \end_inset
10940
10941 .)
10942 \change_inserted -712698321 1565102364
10943
10944 \end_layout
10945
10946 \begin_layout Description
10947
10948 \change_inserted -712698321 1565102470
10949 \begin_inset Flex Code
10950 status collapsed
10951
10952 \begin_layout Plain Layout
10953
10954 \change_inserted -712698321 1565102365
10955 PageSize
10956 \change_unchanged
10957
10958 \end_layout
10959
10960 \end_inset
10961
10962  [
10963 \begin_inset Flex Code
10964 status collapsed
10965
10966 \begin_layout Plain Layout
10967
10968 \change_inserted -712698321 1565105222
10969
10970 \emph on
10971 custom
10972 \emph default
10973 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
10974  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
10975 \change_unchanged
10976
10977 \end_layout
10978
10979 \end_inset
10980
10981 ] The default page size.
10982  This is used by some converters.
10983 \change_unchanged
10984
10985 \end_layout
10986
10987 \begin_layout Description
10988 \begin_inset Flex Code
10989 status collapsed
10990
10991 \begin_layout Plain Layout
10992 PageStyle
10993 \end_layout
10994
10995 \end_inset
10996
10997  [
10998 \begin_inset Flex Code
10999 status collapsed
11000
11001 \begin_layout Plain Layout
11002
11003 \emph on
11004 plain
11005 \end_layout
11006
11007 \end_inset
11008
11009
11010 \begin_inset Flex Code
11011 status collapsed
11012
11013 \begin_layout Plain Layout
11014 empty
11015 \end_layout
11016
11017 \end_inset
11018
11019
11020 \begin_inset Flex Code
11021 status collapsed
11022
11023 \begin_layout Plain Layout
11024 headings
11025 \end_layout
11026
11027 \end_inset
11028
11029 ] The default pagestyle.
11030  Can be changed in the 
11031 \begin_inset Flex Noun
11032 status collapsed
11033
11034 \begin_layout Plain Layout
11035 Document\SpecialChar menuseparator
11036 Settings
11037 \end_layout
11038
11039 \end_inset
11040
11041  dialog.
11042 \end_layout
11043
11044 \begin_layout Description
11045 \begin_inset Flex Code
11046 status collapsed
11047
11048 \begin_layout Plain Layout
11049 Preamble
11050 \end_layout
11051
11052 \end_inset
11053
11054  Sets the preamble for the \SpecialChar LaTeX
11055  document.
11056  Note that this will completely override any prior 
11057 \begin_inset Flex Code
11058 status collapsed
11059
11060 \begin_layout Plain Layout
11061 Preamble
11062 \end_layout
11063
11064 \end_inset
11065
11066  or 
11067 \begin_inset Flex Code
11068 status collapsed
11069
11070 \begin_layout Plain Layout
11071 AddToPreamble
11072 \end_layout
11073
11074 \end_inset
11075
11076  declarations.
11077  (Use 
11078 \begin_inset Flex Code
11079 status collapsed
11080
11081 \begin_layout Plain Layout
11082 AddToPreamble
11083 \end_layout
11084
11085 \end_inset
11086
11087  if you just want to add material to the preamble.) Must end with 
11088 \begin_inset Quotes eld
11089 \end_inset
11090
11091
11092 \begin_inset Flex Code
11093 status collapsed
11094
11095 \begin_layout Plain Layout
11096 EndPreamble
11097 \end_layout
11098
11099 \end_inset
11100
11101
11102 \begin_inset Quotes erd
11103 \end_inset
11104
11105 .
11106 \end_layout
11107
11108 \begin_layout Description
11109 \begin_inset Flex Code
11110 status collapsed
11111
11112 \begin_layout Plain Layout
11113 Provides
11114 \end_layout
11115
11116 \end_inset
11117
11118  [
11119 \begin_inset Flex Code
11120 status collapsed
11121
11122 \begin_layout Plain Layout
11123 string
11124 \end_layout
11125
11126 \end_inset
11127
11128 ] [
11129 \begin_inset Flex Code
11130 status collapsed
11131
11132 \begin_layout Plain Layout
11133
11134 \emph on
11135 0
11136 \end_layout
11137
11138 \end_inset
11139
11140 ,
11141 \begin_inset space \thinspace{}
11142 \end_inset
11143
11144
11145 \begin_inset Flex Code
11146 status collapsed
11147
11148 \begin_layout Plain Layout
11149 1
11150 \end_layout
11151
11152 \end_inset
11153
11154 ] Whether the class already provides the feature 
11155 \begin_inset Flex Code
11156 status collapsed
11157
11158 \begin_layout Plain Layout
11159 string
11160 \end_layout
11161
11162 \end_inset
11163
11164 .
11165  A feature is in general the name of a package (e.
11166 \begin_inset space \thinspace{}
11167 \end_inset
11168
11169 g.
11170 \begin_inset space \space{}
11171 \end_inset
11172
11173
11174 \begin_inset Flex Code
11175 status collapsed
11176
11177 \begin_layout Plain Layout
11178 amsmath
11179 \end_layout
11180
11181 \end_inset
11182
11183  or 
11184 \begin_inset Flex Code
11185 status collapsed
11186
11187 \begin_layout Plain Layout
11188 makeidx
11189 \end_layout
11190
11191 \end_inset
11192
11193 ) or a macro (e.
11194 \begin_inset space \thinspace{}
11195 \end_inset
11196
11197 g.
11198 \begin_inset space \space{}
11199 \end_inset
11200
11201
11202 \begin_inset Flex Code
11203 status collapsed
11204
11205 \begin_layout Plain Layout
11206 url
11207 \end_layout
11208
11209 \end_inset
11210
11211  or 
11212 \begin_inset Flex Code
11213 status collapsed
11214
11215 \begin_layout Plain Layout
11216 boldsymbol
11217 \end_layout
11218
11219 \end_inset
11220
11221 ).
11222  See 
11223 \begin_inset CommandInset ref
11224 LatexCommand ref
11225 reference "chap:List-of-functions"
11226
11227 \end_inset
11228
11229  for the list of features.
11230 \end_layout
11231
11232 \begin_layout Description
11233 \begin_inset Flex Code
11234 status collapsed
11235
11236 \begin_layout Plain Layout
11237 ProvidesModule
11238 \end_layout
11239
11240 \end_inset
11241
11242  [
11243 \begin_inset Flex Code
11244 status collapsed
11245
11246 \begin_layout Plain Layout
11247 string
11248 \end_layout
11249
11250 \end_inset
11251
11252 ] Indicates that this layout provides the functionality of the module mentioned,
11253  which should be specified by the filename without the 
11254 \begin_inset Flex Code
11255 status collapsed
11256
11257 \begin_layout Plain Layout
11258 .module
11259 \end_layout
11260
11261 \end_inset
11262
11263  extension.
11264  This will typically be used if the layout includes the module directly,
11265  rather than using the 
11266 \begin_inset Flex Code
11267 status collapsed
11268
11269 \begin_layout Plain Layout
11270 DefaultModule
11271 \end_layout
11272
11273 \end_inset
11274
11275  tag to indicate that it ought to be used.
11276  It could also be used in a module that provided an alternate implementation
11277  of the same functionality.
11278 \end_layout
11279
11280 \begin_layout Description
11281 \begin_inset Flex Code
11282 status collapsed
11283
11284 \begin_layout Plain Layout
11285 ProvideStyle
11286 \end_layout
11287
11288 \end_inset
11289
11290  [
11291 \begin_inset Flex Code
11292 status collapsed
11293
11294 \begin_layout Plain Layout
11295 <style>
11296 \end_layout
11297
11298 \end_inset
11299
11300 ] Creates a new paragraph style if it does not already exist.
11301  If the style does exist, this section is ignored.
11302  Must end with 
11303 \begin_inset Quotes eld
11304 \end_inset
11305
11306
11307 \begin_inset Flex Code
11308 status collapsed
11309
11310 \begin_layout Plain Layout
11311 End
11312 \end_layout
11313
11314 \end_inset
11315
11316
11317 \begin_inset Quotes erd
11318 \end_inset
11319
11320 .
11321 \end_layout
11322
11323 \begin_layout Description
11324 \begin_inset Flex Code
11325 status collapsed
11326
11327 \begin_layout Plain Layout
11328 Requires
11329 \end_layout
11330
11331 \end_inset
11332
11333  [
11334 \begin_inset Flex Code
11335 status collapsed
11336
11337 \begin_layout Plain Layout
11338 string
11339 \end_layout
11340
11341 \end_inset
11342
11343 ] Whether the class requires the feature 
11344 \begin_inset Flex Code
11345 status collapsed
11346
11347 \begin_layout Plain Layout
11348 string
11349 \end_layout
11350
11351 \end_inset
11352
11353 .
11354  Multiple features must be separated by commas.
11355  Note that you can only request supported features.
11356  (See 
11357 \begin_inset CommandInset ref
11358 LatexCommand ref
11359 reference "chap:List-of-functions"
11360
11361 \end_inset
11362
11363  for the list of features.).
11364  If you require a package with specific options, you can additionally use
11365  
11366 \begin_inset Flex Code
11367 status collapsed
11368
11369 \begin_layout Plain Layout
11370 PackageOptions
11371 \end_layout
11372
11373 \end_inset
11374
11375 .
11376 \end_layout
11377
11378 \begin_layout Description
11379 \begin_inset Flex Code
11380 status collapsed
11381
11382 \begin_layout Plain Layout
11383 RightMargin
11384 \end_layout
11385
11386 \end_inset
11387
11388  [
11389 \begin_inset Flex Code
11390 status collapsed
11391
11392 \begin_layout Plain Layout
11393 string
11394 \end_layout
11395
11396 \end_inset
11397
11398 ] A string that indicates the width of the right margin on the screen, for
11399  example, 
11400 \begin_inset Quotes eld
11401 \end_inset
11402
11403
11404 \begin_inset Flex Code
11405 status collapsed
11406
11407 \begin_layout Plain Layout
11408 MMMMM
11409 \end_layout
11410
11411 \end_inset
11412
11413
11414 \begin_inset Quotes erd
11415 \end_inset
11416
11417 .
11418 \end_layout
11419
11420 \begin_layout Description
11421 \begin_inset Flex Code
11422 status collapsed
11423
11424 \begin_layout Plain Layout
11425 SecNumDepth
11426 \end_layout
11427
11428 \end_inset
11429
11430  [
11431 \begin_inset Flex Code
11432 status collapsed
11433
11434 \begin_layout Plain Layout
11435 int=3
11436 \end_layout
11437
11438 \end_inset
11439
11440 ] Sets which divisions get numbered.
11441  Corresponds to the
11442 \begin_inset Newline newline
11443 \end_inset
11444
11445
11446 \begin_inset Flex Code
11447 status collapsed
11448
11449 \begin_layout Plain Layout
11450 secnumdepth
11451 \end_layout
11452
11453 \end_inset
11454
11455  counter in \SpecialChar LaTeX
11456 .
11457 \end_layout
11458
11459 \begin_layout Description
11460 \begin_inset Flex Code
11461 status collapsed
11462
11463 \begin_layout Plain Layout
11464 Sides
11465 \end_layout
11466
11467 \end_inset
11468
11469  [
11470 \begin_inset Flex Code
11471 status collapsed
11472
11473 \begin_layout Plain Layout
11474
11475 \emph on
11476 1
11477 \end_layout
11478
11479 \end_inset
11480
11481 ,
11482 \begin_inset space \thinspace{}
11483 \end_inset
11484
11485
11486 \begin_inset Flex Code
11487 status collapsed
11488
11489 \begin_layout Plain Layout
11490 2
11491 \end_layout
11492
11493 \end_inset
11494
11495 ] Whether the class-default should be printing on one or both sides of the
11496  paper.
11497  Can be changed in the 
11498 \begin_inset Flex Noun
11499 status collapsed
11500
11501 \begin_layout Plain Layout
11502 Document\SpecialChar menuseparator
11503 Settings
11504 \end_layout
11505
11506 \end_inset
11507
11508  dialog.
11509 \end_layout
11510
11511 \begin_layout Description
11512 \begin_inset Flex Code
11513 status collapsed
11514
11515 \begin_layout Plain Layout
11516 Style
11517 \end_layout
11518
11519 \end_inset
11520
11521  [
11522 \begin_inset Flex Code
11523 status collapsed
11524
11525 \begin_layout Plain Layout
11526 <name>
11527 \end_layout
11528
11529 \end_inset
11530
11531 ] This sequence defines a paragraph style.
11532  If the style does not yet exist, it is created; if it does exist, its parameter
11533 s are modified.
11534  Must end with 
11535 \begin_inset Quotes eld
11536 \end_inset
11537
11538
11539 \begin_inset Flex Code
11540 status collapsed
11541
11542 \begin_layout Plain Layout
11543 End
11544 \end_layout
11545
11546 \end_inset
11547
11548
11549 \begin_inset Quotes erd
11550 \end_inset
11551
11552 .
11553 \begin_inset Newline newline
11554 \end_inset
11555
11556 See 
11557 \begin_inset CommandInset ref
11558 LatexCommand ref
11559 reference "subsec:Paragraph-Styles"
11560
11561 \end_inset
11562
11563  for details on paragraph styles.
11564 \change_inserted -712698321 1553617804
11565
11566 \end_layout
11567
11568 \begin_layout Description
11569
11570 \change_inserted -712698321 1553617862
11571 \begin_inset Flex Code
11572 status collapsed
11573
11574 \begin_layout Plain Layout
11575
11576 \change_inserted -712698321 1553617809
11577 TableStyle
11578 \change_unchanged
11579
11580 \end_layout
11581
11582 \end_inset
11583
11584  [
11585 \begin_inset Flex Code
11586 status collapsed
11587
11588 \begin_layout Plain Layout
11589
11590 \change_inserted -712698321 1553617805
11591 <name>
11592 \change_unchanged
11593
11594 \end_layout
11595
11596 \end_inset
11597
11598 ] defines the default table style that is used when inserting a table.
11599  The following styles are available:
11600 \end_layout
11601
11602 \begin_deeper
11603 \begin_layout Itemize
11604
11605 \change_inserted -712698321 1554308039
11606 \begin_inset Flex Code
11607 status collapsed
11608
11609 \begin_layout Plain Layout
11610
11611 \change_inserted -712698321 1554307928
11612 Formal_with_Footline
11613 \change_unchanged
11614
11615 \end_layout
11616
11617 \end_inset
11618
11619 : formal (
11620 \begin_inset Quotes eld
11621 \end_inset
11622
11623 booktabs
11624 \begin_inset Quotes erd
11625 \end_inset
11626
11627 ) style with horizontal lines only, using a bold top and bottom line, the
11628  first and last row are additionally separated from the table body with
11629  a thin middle line.
11630 \end_layout
11631
11632 \begin_layout Itemize
11633
11634 \change_inserted -712698321 1554308087
11635 \begin_inset Flex Code
11636 status collapsed
11637
11638 \begin_layout Plain Layout
11639
11640 \change_inserted -712698321 1554308042
11641 Formal_without_Footline
11642 \change_unchanged
11643
11644 \end_layout
11645
11646 \end_inset
11647
11648 : same as the above, but the last row is not separated with a middle line
11649  from the body.
11650 \end_layout
11651
11652 \begin_layout Itemize
11653
11654 \change_inserted -712698321 1553618031
11655 \begin_inset Flex Code
11656 status collapsed
11657
11658 \begin_layout Plain Layout
11659
11660 \change_inserted -712698321 1553618006
11661 Simple_Grid
11662 \change_unchanged
11663
11664 \end_layout
11665
11666 \end_inset
11667
11668 : Simple table lines.
11669 \end_layout
11670
11671 \begin_layout Itemize
11672
11673 \change_inserted -712698321 1553618309
11674 \begin_inset Flex Code
11675 status collapsed
11676
11677 \begin_layout Plain Layout
11678
11679 \change_inserted -712698321 1553618031
11680 Grid_with_Head
11681 \change_unchanged
11682
11683 \end_layout
11684
11685 \end_inset
11686
11687 : Like 
11688 \begin_inset Flex Code
11689 status collapsed
11690
11691 \begin_layout Plain Layout
11692
11693 \change_inserted -712698321 1553618043
11694 Simple_Grid
11695 \change_unchanged
11696
11697 \end_layout
11698
11699 \end_inset
11700
11701 , but with the header column offset with a second horizontal line.
11702  This is also the default style of \SpecialChar LyX
11703 .
11704 \end_layout
11705
11706 \begin_layout Itemize
11707
11708 \change_inserted -712698321 1553618280
11709 \begin_inset Flex Code
11710 status collapsed
11711
11712 \begin_layout Plain Layout
11713
11714 \change_inserted -712698321 1553618261
11715 No_Borders
11716 \change_unchanged
11717
11718 \end_layout
11719
11720 \end_inset
11721
11722 : Table without lines.
11723 \change_unchanged
11724
11725 \end_layout
11726
11727 \end_deeper
11728 \begin_layout Description
11729 \begin_inset Flex Code
11730 status collapsed
11731
11732 \begin_layout Plain Layout
11733 TitleLatexName
11734 \end_layout
11735
11736 \end_inset
11737
11738  [
11739 \begin_inset Flex Code
11740 status collapsed
11741
11742 \begin_layout Plain Layout
11743 string="maketitle"
11744 \end_layout
11745
11746 \end_inset
11747
11748 ] The name of the command or environment to be used with 
11749 \begin_inset Flex Code
11750 status collapsed
11751
11752 \begin_layout Plain Layout
11753 TitleLatexType
11754 \end_layout
11755
11756 \end_inset
11757
11758 .
11759 \end_layout
11760
11761 \begin_layout Description
11762 \begin_inset Flex Code
11763 status collapsed
11764
11765 \begin_layout Plain Layout
11766 TitleLatexType
11767 \end_layout
11768
11769 \end_inset
11770
11771  [
11772 \begin_inset Flex Code
11773 status collapsed
11774
11775 \begin_layout Plain Layout
11776
11777 \emph on
11778 CommandAfter
11779 \end_layout
11780
11781 \end_inset
11782
11783
11784 \begin_inset Flex Code
11785 status collapsed
11786
11787 \begin_layout Plain Layout
11788 Environment
11789 \end_layout
11790
11791 \end_inset
11792
11793 ] Indicates what kind of markup is used to define the title of a document.
11794  
11795 \begin_inset Flex Code
11796 status collapsed
11797
11798 \begin_layout Plain Layout
11799 CommandAfter
11800 \end_layout
11801
11802 \end_inset
11803
11804  means that the macro with name 
11805 \begin_inset Flex Code
11806 status collapsed
11807
11808 \begin_layout Plain Layout
11809 TitleLatexName
11810 \end_layout
11811
11812 \end_inset
11813
11814  will be inserted after the last layout which has 
11815 \begin_inset Quotes eld
11816 \end_inset
11817
11818
11819 \begin_inset Flex Code
11820 status collapsed
11821
11822 \begin_layout Plain Layout
11823 InTitle
11824 \begin_inset space ~
11825 \end_inset
11826
11827 1
11828 \end_layout
11829
11830 \end_inset
11831
11832
11833 \begin_inset Quotes erd
11834 \end_inset
11835
11836 .
11837  
11838 \begin_inset Flex Code
11839 status collapsed
11840
11841 \begin_layout Plain Layout
11842 Environment
11843 \end_layout
11844
11845 \end_inset
11846
11847  corresponds to the case where all layouts which have 
11848 \begin_inset Quotes eld
11849 \end_inset
11850
11851
11852 \begin_inset Flex Code
11853 status collapsed
11854
11855 \begin_layout Plain Layout
11856 InTitle
11857 \begin_inset space ~
11858 \end_inset
11859
11860 1
11861 \end_layout
11862
11863 \end_inset
11864
11865
11866 \begin_inset Quotes erd
11867 \end_inset
11868
11869  should be enclosed into the 
11870 \begin_inset Flex Code
11871 status collapsed
11872
11873 \begin_layout Plain Layout
11874 TitleLatexName
11875 \end_layout
11876
11877 \end_inset
11878
11879  environment.
11880 \end_layout
11881
11882 \begin_layout Description
11883 \begin_inset Flex Code
11884 status collapsed
11885
11886 \begin_layout Plain Layout
11887 TocDepth
11888 \end_layout
11889
11890 \end_inset
11891
11892  [
11893 \begin_inset Flex Code
11894 status collapsed
11895
11896 \begin_layout Plain Layout
11897 int=3
11898 \end_layout
11899
11900 \end_inset
11901
11902 ] Sets which divisions are included in the table of contents.
11903  Corresponds to the 
11904 \begin_inset Flex Code
11905 status collapsed
11906
11907 \begin_layout Plain Layout
11908 tocdepth
11909 \end_layout
11910
11911 \end_inset
11912
11913  counter in \SpecialChar LaTeX
11914 .
11915 \end_layout
11916
11917 \begin_layout Subsection
11918 \begin_inset Flex Code
11919 status collapsed
11920
11921 \begin_layout Plain Layout
11922 ClassOptions
11923 \end_layout
11924
11925 \end_inset
11926
11927  section
11928 \begin_inset CommandInset label
11929 LatexCommand label
11930 name "subsec:ClassOptions"
11931
11932 \end_inset
11933
11934
11935 \end_layout
11936
11937 \begin_layout Standard
11938 The 
11939 \begin_inset Flex Code
11940 status collapsed
11941
11942 \begin_layout Plain Layout
11943 ClassOptions
11944 \end_layout
11945
11946 \end_inset
11947
11948  section can contain the following entries:
11949 \end_layout
11950
11951 \begin_layout Description
11952 \begin_inset Flex Code
11953 status collapsed
11954
11955 \begin_layout Plain Layout
11956 FontSize
11957 \end_layout
11958
11959 \end_inset
11960
11961  [
11962 \begin_inset Flex Code
11963 status collapsed
11964
11965 \begin_layout Plain Layout
11966 string="10|11|12"
11967 \end_layout
11968
11969 \end_inset
11970
11971 ] The list of available font sizes for the document's main font, separated
11972  by 
11973 \begin_inset Quotes eld
11974 \end_inset
11975
11976
11977 \begin_inset Flex Code
11978 status collapsed
11979
11980 \begin_layout Plain Layout
11981 |
11982 \end_layout
11983
11984 \end_inset
11985
11986
11987 \begin_inset Quotes erd
11988 \end_inset
11989
11990 .
11991
11992 \change_inserted -712698321 1565110196
11993  Any number is possible.
11994 \end_layout
11995
11996 \begin_layout Description
11997
11998 \change_inserted -712698321 1565110259
11999 \begin_inset Flex Code
12000 status collapsed
12001
12002 \begin_layout Plain Layout
12003
12004 \change_inserted -712698321 1565110199
12005 FontSizeFormat
12006 \change_unchanged
12007
12008 \end_layout
12009
12010 \end_inset
12011
12012  [
12013 \begin_inset Flex Code
12014 status collapsed
12015
12016 \begin_layout Plain Layout
12017
12018 \change_inserted -712698321 1565110196
12019 string
12020 \change_unchanged
12021
12022 \end_layout
12023
12024 \end_inset
12025
12026 ] The format for the font size option.
12027  Default: 
12028 \begin_inset Flex Code
12029 status collapsed
12030
12031 \begin_layout Plain Layout
12032
12033 \change_inserted -712698321 1565110238
12034 $$spt
12035 \change_unchanged
12036
12037 \end_layout
12038
12039 \end_inset
12040
12041 .
12042  
12043 \begin_inset Flex Code
12044 status collapsed
12045
12046 \begin_layout Plain Layout
12047
12048 \change_inserted -712698321 1565110248
12049 $$s
12050 \change_unchanged
12051
12052 \end_layout
12053
12054 \end_inset
12055
12056  is a placeholder for the font size.
12057 \change_unchanged
12058
12059 \end_layout
12060
12061 \begin_layout Description
12062
12063 \change_deleted 5863208 1594239483
12064 \begin_inset Flex Code
12065 status collapsed
12066
12067 \begin_layout Plain Layout
12068 Header
12069 \end_layout
12070
12071 \end_inset
12072
12073  Used to set the DTD line with XML-based output classes.
12074  E.
12075 \begin_inset space \thinspace{}
12076 \end_inset
12077
12078 g.: PUBLIC 
12079 \begin_inset Quotes eld
12080 \end_inset
12081
12082 -//OASIS//DTD DocBook V4.2//EN
12083 \begin_inset Quotes erd
12084 \end_inset
12085
12086 .
12087 \change_inserted -712698321 1565101761
12088
12089 \end_layout
12090
12091 \begin_layout Description
12092
12093 \change_inserted -712698321 1565180598
12094 \begin_inset Flex Code
12095 status collapsed
12096
12097 \begin_layout Plain Layout
12098
12099 \change_inserted -712698321 1565101918
12100 PageSize
12101 \change_unchanged
12102
12103 \end_layout
12104
12105 \end_inset
12106
12107  [
12108 \begin_inset Flex Code
12109 status collapsed
12110
12111 \begin_layout Plain Layout
12112
12113 \change_inserted -712698321 1565105399
12114 string="letter|\SpecialChar allowbreak
12115 legal|\SpecialChar allowbreak
12116 executive|\SpecialChar allowbreak
12117 a0|\SpecialChar allowbreak
12118 a1|\SpecialChar allowbreak
12119 a2|\SpecialChar allowbreak
12120 a3|\SpecialChar allowbreak
12121 a4|\SpecialChar allowbreak
12122 a5|\SpecialChar allowbreak
12123 a6|\SpecialChar allowbreak
12124 b0|\SpecialChar allowbreak
12125 b1|\SpecialChar allowbreak
12126 b2|\SpecialChar allowbreak
12127 b3|\SpecialChar allowbreak
12128 b4|\SpecialChar allowbreak
12129 b5|\SpecialChar allowbreak
12130 b6|\SpecialChar allowbreak
12131 c0|\SpecialChar allowbreak
12132 c1|\SpecialChar allowbreak
12133 c
12134 2|\SpecialChar allowbreak
12135 c3|\SpecialChar allowbreak
12136 c4|\SpecialChar allowbreak
12137 c5|\SpecialChar allowbreak
12138 c6|\SpecialChar allowbreak
12139 b0j|\SpecialChar allowbreak
12140 b1j|\SpecialChar allowbreak
12141 b2j|\SpecialChar allowbreak
12142 b3j|\SpecialChar allowbreak
12143 b4j|\SpecialChar allowbreak
12144 b5j|\SpecialChar allowbreak
12145 b6j"
12146 \change_unchanged
12147
12148 \end_layout
12149
12150 \end_inset
12151
12152 ] The list of available page sizes, separated by 
12153 \begin_inset Quotes eld
12154 \end_inset
12155
12156
12157 \begin_inset Flex Code
12158 status collapsed
12159
12160 \begin_layout Plain Layout
12161
12162 \change_inserted -712698321 1565101779
12163 |
12164 \change_unchanged
12165
12166 \end_layout
12167
12168 \end_inset
12169
12170
12171 \begin_inset Quotes erd
12172 \end_inset
12173
12174 .
12175  Currently, only the listed sizes are supported.
12176  Other sizes might be entered as custom class option.
12177 \end_layout
12178
12179 \begin_layout Description
12180
12181 \change_inserted -712698321 1565180623
12182 \begin_inset Flex Code
12183 status collapsed
12184
12185 \begin_layout Plain Layout
12186
12187 \change_inserted -712698321 1565180605
12188 PageSizeFormat
12189 \change_unchanged
12190
12191 \end_layout
12192
12193 \end_inset
12194
12195  [
12196 \begin_inset Flex Code
12197 status collapsed
12198
12199 \begin_layout Plain Layout
12200
12201 \change_inserted -712698321 1565180601
12202 string
12203 \change_unchanged
12204
12205 \end_layout
12206
12207 \end_inset
12208
12209 ] The format for the page size option.
12210  Default: 
12211 \begin_inset Flex Code
12212 status collapsed
12213
12214 \begin_layout Plain Layout
12215
12216 \change_inserted -712698321 1565180618
12217 $$spaper
12218 \change_unchanged
12219
12220 \end_layout
12221
12222 \end_inset
12223
12224 .
12225  
12226 \begin_inset Flex Code
12227 status collapsed
12228
12229 \begin_layout Plain Layout
12230
12231 \change_inserted -712698321 1565180601
12232 $$s
12233 \change_unchanged
12234
12235 \end_layout
12236
12237 \end_inset
12238
12239  is a placeholder for the paper size.
12240 \change_unchanged
12241
12242 \end_layout
12243
12244 \begin_layout Description
12245 \begin_inset Flex Code
12246 status collapsed
12247
12248 \begin_layout Plain Layout
12249 PageStyle
12250 \end_layout
12251
12252 \end_inset
12253
12254  [
12255 \begin_inset Flex Code
12256 status collapsed
12257
12258 \begin_layout Plain Layout
12259 string="empty|plain|headings|fancy"
12260 \end_layout
12261
12262 \end_inset
12263
12264 ] The list of available page sty\SpecialChar softhyphen
12265 les, separated by 
12266 \begin_inset Quotes eld
12267 \end_inset
12268
12269
12270 \begin_inset Flex Code
12271 status collapsed
12272
12273 \begin_layout Plain Layout
12274 |
12275 \end_layout
12276
12277 \end_inset
12278
12279
12280 \begin_inset Quotes erd
12281 \end_inset
12282
12283 .
12284 \end_layout
12285
12286 \begin_layout Description
12287 \begin_inset Flex Code
12288 status collapsed
12289
12290 \begin_layout Plain Layout
12291 Other
12292 \end_layout
12293
12294 \end_inset
12295
12296  [
12297 \begin_inset Flex Code
12298 status collapsed
12299
12300 \begin_layout Plain Layout
12301 string=""
12302 \end_layout
12303
12304 \end_inset
12305
12306 ] Some document class options, separated by a comma, that will be added
12307  to the optional part of the 
12308 \begin_inset Flex Code
12309 status collapsed
12310
12311 \begin_layout Plain Layout
12312
12313 \backslash
12314 documentclass
12315 \end_layout
12316
12317 \end_inset
12318
12319  command.
12320 \end_layout
12321
12322 \begin_layout Standard
12323 The 
12324 \begin_inset Flex Code
12325 status collapsed
12326
12327 \begin_layout Plain Layout
12328 ClassOptions
12329 \end_layout
12330
12331 \end_inset
12332
12333  section must end with 
12334 \begin_inset Quotes eld
12335 \end_inset
12336
12337
12338 \begin_inset Flex Code
12339 status collapsed
12340
12341 \begin_layout Plain Layout
12342 End
12343 \end_layout
12344
12345 \end_inset
12346
12347
12348 \begin_inset Quotes erd
12349 \end_inset
12350
12351 .
12352 \end_layout
12353
12354 \begin_layout Subsection
12355 Paragraph styles
12356 \begin_inset CommandInset label
12357 LatexCommand label
12358 name "subsec:Paragraph-Styles"
12359
12360 \end_inset
12361
12362
12363 \end_layout
12364
12365 \begin_layout Standard
12366 A paragraph style description looks like this:
12367 \begin_inset Foot
12368 status collapsed
12369
12370 \begin_layout Plain Layout
12371 Note that this will either define a new style or modify an existing one.
12372 \end_layout
12373
12374 \end_inset
12375
12376
12377 \end_layout
12378
12379 \begin_layout LyX-Code
12380 Style 
12381 \family roman
12382 \emph on
12383 name
12384 \end_layout
12385
12386 \begin_layout LyX-Code
12387  ...
12388 \end_layout
12389
12390 \begin_layout LyX-Code
12391 End
12392 \end_layout
12393
12394 \begin_layout Standard
12395 where the following commands are allowed:
12396 \end_layout
12397
12398 \begin_layout Description
12399 \begin_inset Flex Code
12400 status collapsed
12401
12402 \begin_layout Plain Layout
12403 AddToToc
12404 \end_layout
12405
12406 \end_inset
12407
12408  [
12409 \begin_inset Flex Code
12410 status collapsed
12411
12412 \begin_layout Plain Layout
12413 string
12414 \end_layout
12415
12416 \end_inset
12417
12418 =""] This paragraph will appear in the table of contents of the given type.
12419  An empty string disables.
12420  See also the OutlinerName and the IsTocCaption commands.
12421  Default: disabled.
12422 \end_layout
12423
12424 \begin_layout Description
12425 \begin_inset Flex Code
12426 status collapsed
12427
12428 \begin_layout Plain Layout
12429 Align
12430 \end_layout
12431
12432 \end_inset
12433
12434  [
12435 \begin_inset Flex Code
12436 status collapsed
12437
12438 \begin_layout Plain Layout
12439
12440 \emph on
12441 block
12442 \emph default
12443 , left, right, center
12444 \end_layout
12445
12446 \end_inset
12447
12448 ] Paragraph alignment.
12449 \end_layout
12450
12451 \begin_layout Description
12452 \begin_inset Flex Code
12453 status collapsed
12454
12455 \begin_layout Plain Layout
12456 AlignPossible
12457 \end_layout
12458
12459 \end_inset
12460
12461  [
12462 \begin_inset Flex Code
12463 status collapsed
12464
12465 \begin_layout Plain Layout
12466
12467 \emph on
12468 block
12469 \emph default
12470 , left, right, center
12471 \end_layout
12472
12473 \end_inset
12474
12475 ] A comma separated list of permitted alignments.
12476  (Some \SpecialChar LaTeX
12477  styles prohibit certain alignments, since those wouldn't make sense.
12478  For example a right-aligned or centered enumeration isn't possible.)
12479 \end_layout
12480
12481 \begin_layout Description
12482 \begin_inset Flex Code
12483 status collapsed
12484
12485 \begin_layout Plain Layout
12486 Argument
12487 \end_layout
12488
12489 \end_inset
12490
12491  [
12492 \begin_inset Flex Code
12493 status collapsed
12494
12495 \begin_layout Plain Layout
12496 int
12497 \end_layout
12498
12499 \end_inset
12500
12501 ] Defines argument number <int> of a command\SpecialChar breakableslash
12502 environment associated with
12503  the current style.
12504  This is useful for things like section headings, and only makes sense with
12505  \SpecialChar LaTeX
12506 .
12507  Every (optional or required) argument of a command or environment – except
12508  for the required argument that is associated with the content of the paragraph
12509  itself – has a separate definition, where the number specifies the order
12510  of the arguments.
12511  The definition must end with 
12512 \begin_inset Flex Code
12513 status collapsed
12514
12515 \begin_layout Plain Layout
12516 EndArgument
12517 \end_layout
12518
12519 \end_inset
12520
12521 .
12522  So a command with two optional arguments has:
12523 \end_layout
12524
12525 \begin_deeper
12526 \begin_layout Quote
12527
12528 \family typewriter
12529 Argument 1
12530 \end_layout
12531
12532 \begin_layout Quote
12533
12534 \family typewriter
12535 ...
12536 \end_layout
12537
12538 \begin_layout Quote
12539
12540 \family typewriter
12541 EndArgument
12542 \end_layout
12543
12544 \begin_layout Quote
12545
12546 \family typewriter
12547 Argument 2
12548 \end_layout
12549
12550 \begin_layout Quote
12551
12552 \family typewriter
12553 ...
12554 \end_layout
12555
12556 \begin_layout Quote
12557
12558 \family typewriter
12559 EndArgument
12560 \end_layout
12561
12562 \begin_layout Standard
12563 Inside the 
12564 \begin_inset Flex Code
12565 status collapsed
12566
12567 \begin_layout Plain Layout
12568 Argument
12569 \end_layout
12570
12571 \end_inset
12572
12573  definition, the following specifications are possible:
12574 \end_layout
12575
12576 \begin_layout Itemize
12577 \begin_inset Flex Code
12578 status collapsed
12579
12580 \begin_layout Plain Layout
12581 LabelString
12582 \end_layout
12583
12584 \end_inset
12585
12586  
12587 \begin_inset Flex Code
12588 status collapsed
12589
12590 \begin_layout Plain Layout
12591 [string]
12592 \end_layout
12593
12594 \end_inset
12595
12596  The string that will appear both in the menu (to insert this argument)
12597  and on the argument inset button (unless you also specify a separate 
12598 \begin_inset Flex Code
12599 status collapsed
12600
12601 \begin_layout Plain Layout
12602 MenuString
12603 \end_layout
12604
12605 \end_inset
12606
12607 ).
12608  For the menu, you can define an accelerator by appending the respective
12609  character to the string, divided by 
12610 \begin_inset Quotes eld
12611 \end_inset
12612
12613 |
12614 \begin_inset Quotes erd
12615 \end_inset
12616
12617  (e.
12618 \begin_inset space \thinspace{}
12619 \end_inset
12620
12621 g.
12622 \begin_inset space \space{}
12623 \end_inset
12624
12625
12626 \begin_inset Quotes eld
12627 \end_inset
12628
12629
12630 \begin_inset Flex Code
12631 status collapsed
12632
12633 \begin_layout Plain Layout
12634 Short Title|S
12635 \end_layout
12636
12637 \end_inset
12638
12639
12640 \begin_inset Quotes erd
12641 \end_inset
12642
12643 ).
12644 \end_layout
12645
12646 \begin_layout Itemize
12647 \begin_inset Flex Code
12648 status collapsed
12649
12650 \begin_layout Plain Layout
12651 MenuString
12652 \end_layout
12653
12654 \end_inset
12655
12656  
12657 \begin_inset Flex Code
12658 status collapsed
12659
12660 \begin_layout Plain Layout
12661 [string]
12662 \end_layout
12663
12664 \end_inset
12665
12666  A separate string for the menu.
12667  You can define an accelerator by appending the respective character to
12668  the string, divided by 
12669 \begin_inset Quotes eld
12670 \end_inset
12671
12672 |
12673 \begin_inset Quotes erd
12674 \end_inset
12675
12676  (e.
12677 \begin_inset space \thinspace{}
12678 \end_inset
12679
12680 g.
12681 \begin_inset space \space{}
12682 \end_inset
12683
12684
12685 \begin_inset Quotes eld
12686 \end_inset
12687
12688
12689 \begin_inset Flex Code
12690 status collapsed
12691
12692 \begin_layout Plain Layout
12693 Short Title|S
12694 \end_layout
12695
12696 \end_inset
12697
12698
12699 \begin_inset Quotes erd
12700 \end_inset
12701
12702 ).
12703  This specification is optional.
12704  If it is not given the 
12705 \begin_inset Flex Code
12706 status collapsed
12707
12708 \begin_layout Plain Layout
12709 LabelString
12710 \end_layout
12711
12712 \end_inset
12713
12714  will be used instead for the menu.
12715 \end_layout
12716
12717 \begin_layout Itemize
12718 \begin_inset Flex Code
12719 status collapsed
12720
12721 \begin_layout Plain Layout
12722 Tooltip
12723 \end_layout
12724
12725 \end_inset
12726
12727  
12728 \begin_inset Flex Code
12729 status collapsed
12730
12731 \begin_layout Plain Layout
12732 [string]
12733 \end_layout
12734
12735 \end_inset
12736
12737  A longer explanatory text that appears in the tooltip when hovering over
12738  the argument inset.
12739 \end_layout
12740
12741 \begin_layout Itemize
12742 \begin_inset Flex Code
12743 status collapsed
12744
12745 \begin_layout Plain Layout
12746 Mandatory
12747 \end_layout
12748
12749 \end_inset
12750
12751  [
12752 \begin_inset Flex Code
12753 status collapsed
12754
12755 \begin_layout Plain Layout
12756
12757 \emph on
12758 0
12759 \end_layout
12760
12761 \end_inset
12762
12763 ,
12764 \begin_inset space \thinspace{}
12765 \end_inset
12766
12767
12768 \begin_inset Flex Code
12769 status collapsed
12770
12771 \begin_layout Plain Layout
12772 1
12773 \end_layout
12774
12775 \end_inset
12776
12777 ] Declare if this is a mandatory (1) or an optional (0) argument.
12778  Mandatory arguments will be output empty if not given, while optional arguments
12779  will not be output at all.
12780  By default, mandatory arguments are delimited by 
12781 \begin_inset Flex Code
12782 status collapsed
12783
12784 \begin_layout Plain Layout
12785 {...}
12786 \end_layout
12787
12788 \end_inset
12789
12790 , while optional arguments are delimited by 
12791 \begin_inset Flex Code
12792 status collapsed
12793
12794 \begin_layout Plain Layout
12795 [...]
12796 \end_layout
12797
12798 \end_inset
12799
12800
12801 \change_inserted -712698321 1555579782
12802
12803 \end_layout
12804
12805 \begin_layout Itemize
12806
12807 \change_inserted -712698321 1555579780
12808 \begin_inset Flex Code
12809 status collapsed
12810
12811 \begin_layout Plain Layout
12812
12813 \change_inserted -712698321 1555579780
12814 NewlineCmd
12815 \change_unchanged
12816
12817 \end_layout
12818
12819 \end_inset
12820
12821  
12822 \begin_inset Flex Code
12823 status collapsed
12824
12825 \begin_layout Plain Layout
12826
12827 \change_inserted -712698321 1555579780
12828 [string]
12829 \change_unchanged
12830
12831 \end_layout
12832
12833 \end_inset
12834
12835  Option to define a different command (from the default 
12836 \begin_inset Flex Code
12837 status collapsed
12838
12839 \begin_layout Plain Layout
12840
12841 \change_inserted -712698321 1555579780
12842
12843 \backslash
12844
12845 \backslash
12846
12847 \change_unchanged
12848
12849 \end_layout
12850
12851 \end_inset
12852
12853 ) to be used for line breaks.
12854  The initial backslash must not be specified.
12855 \change_unchanged
12856
12857 \end_layout
12858
12859 \begin_layout Itemize
12860 \begin_inset Flex Code
12861 status collapsed
12862
12863 \begin_layout Plain Layout
12864 Requires
12865 \end_layout
12866
12867 \end_inset
12868
12869  
12870 \begin_inset Flex Code
12871 status collapsed
12872
12873 \begin_layout Plain Layout
12874 [int=0]
12875 \end_layout
12876
12877 \end_inset
12878
12879  defines another argument (by its number) which this argument requires to
12880  be output if it is itself output.
12881  E.
12882 \begin_inset space \thinspace{}
12883 \end_inset
12884
12885 g., in \SpecialChar LaTeX
12886  commands, optional arguments often require previous optional arguments
12887  to be output (at least empty), as in 
12888 \begin_inset Flex Code
12889 status collapsed
12890
12891 \begin_layout Plain Layout
12892
12893 \backslash
12894 command[][argument]{text}
12895 \end_layout
12896
12897 \end_inset
12898
12899 .
12900  This can be achieved by the statement 
12901 \begin_inset Flex Code
12902 status collapsed
12903
12904 \begin_layout Plain Layout
12905 Requires 1
12906 \end_layout
12907
12908 \end_inset
12909
12910  within 
12911 \begin_inset Flex Code
12912 status collapsed
12913
12914 \begin_layout Plain Layout
12915 Argument 2
12916 \end_layout
12917
12918 \end_inset
12919
12920 .
12921 \end_layout
12922
12923 \begin_layout Itemize
12924 \begin_inset Flex Code
12925 status collapsed
12926
12927 \begin_layout Plain Layout
12928 LeftDelim
12929 \end_layout
12930
12931 \end_inset
12932
12933  
12934 \begin_inset Flex Code
12935 status collapsed
12936
12937 \begin_layout Plain Layout
12938 [string]
12939 \end_layout
12940
12941 \end_inset
12942
12943  defines a custom left delimiter (instead of 
12944 \begin_inset Flex Code
12945 status collapsed
12946
12947 \begin_layout Plain Layout
12948 {
12949 \end_layout
12950
12951 \end_inset
12952
12953  or 
12954 \begin_inset Flex Code
12955 status collapsed
12956
12957 \begin_layout Plain Layout
12958 [
12959 \end_layout
12960
12961 \end_inset
12962
12963 ).
12964  A line break in the output can be indicated by 
12965 \begin_inset Flex Code
12966 status collapsed
12967
12968 \begin_layout Plain Layout
12969 <br/>
12970 \end_layout
12971
12972 \end_inset
12973
12974 .
12975 \end_layout
12976
12977 \begin_layout Itemize
12978 \begin_inset Flex Code
12979 status collapsed
12980
12981 \begin_layout Plain Layout
12982 RightDelim
12983 \end_layout
12984
12985 \end_inset
12986
12987  
12988 \begin_inset Flex Code
12989 status collapsed
12990
12991 \begin_layout Plain Layout
12992 [string]
12993 \end_layout
12994
12995 \end_inset
12996
12997  defines a custom right delimiter (instead of 
12998 \begin_inset Flex Code
12999 status collapsed
13000
13001 \begin_layout Plain Layout
13002 }
13003 \end_layout
13004
13005 \end_inset
13006
13007  or 
13008 \begin_inset Flex Code
13009 status collapsed
13010
13011 \begin_layout Plain Layout
13012 ]
13013 \end_layout
13014
13015 \end_inset
13016
13017 ).
13018  A line break in the output can be indicated by 
13019 \begin_inset Flex Code
13020 status collapsed
13021
13022 \begin_layout Plain Layout
13023 <br/>
13024 \end_layout
13025
13026 \end_inset
13027
13028 .
13029 \end_layout
13030
13031 \begin_layout Itemize
13032 \begin_inset Flex Code
13033 status collapsed
13034
13035 \begin_layout Plain Layout
13036 DefaultArg
13037 \end_layout
13038
13039 \end_inset
13040
13041  
13042 \begin_inset Flex Code
13043 status collapsed
13044
13045 \begin_layout Plain Layout
13046 [string]
13047 \end_layout
13048
13049 \end_inset
13050
13051  defines an argument that is inserted if and only if no user-specified arguments
13052  were given, i.
13053 \begin_inset space \thinspace{}
13054 \end_inset
13055
13056 e.
13057 \begin_inset space \space{}
13058 \end_inset
13059
13060 if no argument inset has been inserted (note that also an empty argument
13061  inset omits the DefaultArg).
13062  Multiple arguments need to be separated by comma.
13063 \end_layout
13064
13065 \begin_layout Itemize
13066 \begin_inset Flex Code
13067 status collapsed
13068
13069 \begin_layout Plain Layout
13070 PresetArg
13071 \end_layout
13072
13073 \end_inset
13074
13075  
13076 \begin_inset Flex Code
13077 status collapsed
13078
13079 \begin_layout Plain Layout
13080 [string]
13081 \end_layout
13082
13083 \end_inset
13084
13085  defines an argument that is inserted in any case (alone or in addition
13086  to user-specified arguments).
13087  Multiple arguments need to be separated by comma.
13088 \end_layout
13089
13090 \begin_layout Itemize
13091 \begin_inset Flex Code
13092 status collapsed
13093
13094 \begin_layout Plain Layout
13095 Font
13096 \end_layout
13097
13098 \end_inset
13099
13100  The font used for the argument content, see 
13101 \begin_inset CommandInset ref
13102 LatexCommand ref
13103 reference "subsec:Font-description"
13104
13105 \end_inset
13106
13107 .
13108 \change_inserted -712698321 1559484228
13109
13110 \end_layout
13111
13112 \begin_layout Itemize
13113
13114 \change_inserted -712698321 1559484228
13115 \begin_inset Flex Code
13116 status collapsed
13117
13118 \begin_layout Plain Layout
13119
13120 \change_inserted -712698321 1559484228
13121 FreeSpacing
13122 \change_unchanged
13123
13124 \end_layout
13125
13126 \end_inset
13127
13128  [
13129 \begin_inset Flex Code
13130 status collapsed
13131
13132 \begin_layout Plain Layout
13133
13134 \change_inserted -712698321 1559484228
13135
13136 \emph on
13137 0
13138 \change_unchanged
13139
13140 \end_layout
13141
13142 \end_inset
13143
13144 ,
13145 \begin_inset space \thinspace{}
13146 \end_inset
13147
13148
13149 \begin_inset Flex Code
13150 status collapsed
13151
13152 \begin_layout Plain Layout
13153
13154 \change_inserted -712698321 1559484228
13155 1
13156 \change_unchanged
13157
13158 \end_layout
13159
13160 \end_inset
13161
13162 ] As with paragraph styles, see 
13163 \begin_inset CommandInset ref
13164 LatexCommand ref
13165 reference "subsec:Paragraph-Styles"
13166
13167 \end_inset
13168
13169 .
13170 \change_unchanged
13171
13172 \end_layout
13173
13174 \begin_layout Itemize
13175 \begin_inset Flex Code
13176 status collapsed
13177
13178 \begin_layout Plain Layout
13179 LabelFont
13180 \end_layout
13181
13182 \end_inset
13183
13184  The font used for the label; see 
13185 \begin_inset CommandInset ref
13186 LatexCommand ref
13187 reference "subsec:Font-description"
13188
13189 \end_inset
13190
13191 .
13192 \end_layout
13193
13194 \begin_layout Itemize
13195 \begin_inset Flex Code
13196 status collapsed
13197
13198 \begin_layout Plain Layout
13199 Decoration
13200 \end_layout
13201
13202 \end_inset
13203
13204  [
13205 \begin_inset Flex Code
13206 status collapsed
13207
13208 \begin_layout Plain Layout
13209
13210 \emph on
13211 Classic
13212 \emph default
13213 , Minimalistic, Conglomerate
13214 \end_layout
13215
13216 \end_inset
13217
13218 ] describes the rendering style used for the inset's frame and buttons.
13219 \end_layout
13220
13221 \begin_layout Itemize
13222 \begin_inset Flex Code
13223 status collapsed
13224
13225 \begin_layout Plain Layout
13226 AutoInsert
13227 \end_layout
13228
13229 \end_inset
13230
13231  
13232 \begin_inset Flex Code
13233 status collapsed
13234
13235 \begin_layout Plain Layout
13236 [int=0]
13237 \end_layout
13238
13239 \end_inset
13240
13241  If this is set to 
13242 \begin_inset Flex Code
13243 status collapsed
13244
13245 \begin_layout Plain Layout
13246 1
13247 \end_layout
13248
13249 \end_inset
13250
13251 , this argument is automatically inserted when the respective style is selected.
13252
13253 \change_deleted -712698321 1559484200
13254  Currently, only one argument per style\SpecialChar breakableslash
13255 layout can be automatically inserted.
13256 \change_unchanged
13257
13258 \end_layout
13259
13260 \begin_layout Itemize
13261
13262 \change_inserted -712698321 1559491402
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267
13268 \change_inserted -712698321 1559490711
13269 InsertOnNewline
13270 \change_unchanged
13271
13272 \end_layout
13273
13274 \end_inset
13275
13276  
13277 \begin_inset Flex Code
13278 status collapsed
13279
13280 \begin_layout Plain Layout
13281
13282 \change_inserted -712698321 1559490703
13283 [int=0]
13284 \change_unchanged
13285
13286 \end_layout
13287
13288 \end_inset
13289
13290  If this is set to 
13291 \begin_inset Flex Code
13292 status collapsed
13293
13294 \begin_layout Plain Layout
13295
13296 \change_inserted -712698321 1559490703
13297 1
13298 \change_unchanged
13299
13300 \end_layout
13301
13302 \end_inset
13303
13304 , this argument will be inserted on a new line with 
13305 \begin_inset Flex Code
13306 status collapsed
13307
13308 \begin_layout Plain Layout
13309
13310 \change_inserted -712698321 1559491402
13311 AutoInsert
13312 \change_unchanged
13313
13314 \end_layout
13315
13316 \end_inset
13317
13318  (only available within Flex insets).
13319 \end_layout
13320
13321 \begin_layout Itemize
13322 \begin_inset Flex Code
13323 status collapsed
13324
13325 \begin_layout Plain Layout
13326 InsertCotext
13327 \end_layout
13328
13329 \end_inset
13330
13331  
13332 \begin_inset Flex Code
13333 status collapsed
13334
13335 \begin_layout Plain Layout
13336 [int=0]
13337 \end_layout
13338
13339 \end_inset
13340
13341  If this is set to 
13342 \begin_inset Flex Code
13343 status collapsed
13344
13345 \begin_layout Plain Layout
13346 1
13347 \end_layout
13348
13349 \end_inset
13350
13351 , this argument will be inserted with a copy of the co-text (either selected
13352  text or the whole paragraph) as content.
13353 \end_layout
13354
13355 \begin_layout Itemize
13356 \begin_inset Flex Code
13357 status collapsed
13358
13359 \begin_layout Plain Layout
13360 PassThru
13361 \end_layout
13362
13363 \end_inset
13364
13365  [
13366 \begin_inset Flex Code
13367 status collapsed
13368
13369 \begin_layout Plain Layout
13370
13371 \emph on
13372 inherited
13373 \emph default
13374 , true, false
13375 \end_layout
13376
13377 \end_inset
13378
13379 ] Whether the contents of this argument should be output in raw form, meaning
13380  without special translations that \SpecialChar LaTeX
13381  would require.
13382  By default, the 
13383 \begin_inset Flex Code
13384 status collapsed
13385
13386 \begin_layout Plain Layout
13387 PassThru
13388 \end_layout
13389
13390 \end_inset
13391
13392  status is inherited by the inset or paragraph layout the argument belongs
13393  to, true and false change the status for the given argument only.
13394 \end_layout
13395
13396 \begin_layout Itemize
13397 \begin_inset Flex Code
13398 status collapsed
13399
13400 \begin_layout Plain Layout
13401 PassThruChars
13402 \end_layout
13403
13404 \end_inset
13405
13406  [
13407 \begin_inset Flex Code
13408 status collapsed
13409
13410 \begin_layout Plain Layout
13411 string of characters
13412 \end_layout
13413
13414 \end_inset
13415
13416 ]
13417 \family typewriter
13418  
13419 \family default
13420 Defines individual characters
13421 \begin_inset Newline linebreak
13422 \end_inset
13423
13424 that should be output in raw form, meaning without special translations
13425  that \SpecialChar LaTeX
13426  would require.
13427  Note that, contrary to PassThru, this needs to be explicitly defined for
13428  arguments.
13429  That is, arguments do not inherit PassThruChars from their parent inset
13430  or layout.
13431 \end_layout
13432
13433 \begin_layout Itemize
13434 \begin_inset Flex Code
13435 status collapsed
13436
13437 \begin_layout Plain Layout
13438 IsTocCaption
13439 \end_layout
13440
13441 \end_inset
13442
13443  [
13444 \begin_inset Flex Code
13445 status collapsed
13446
13447 \begin_layout Plain Layout
13448
13449 \emph on
13450 0
13451 \end_layout
13452
13453 \end_inset
13454
13455 ,
13456 \begin_inset space \thinspace{}
13457 \end_inset
13458
13459
13460 \begin_inset Flex Code
13461 status collapsed
13462
13463 \begin_layout Plain Layout
13464 1
13465 \end_layout
13466
13467 \end_inset
13468
13469 ] If this is set to 1, the argument will output its content in the corresponding
13470  item in the table of contents.
13471  See AddToToc.
13472 \end_layout
13473
13474 \begin_layout Standard
13475 By default, the text entered in the \SpecialChar LyX
13476  workarea in the respective layout is
13477  the last (mandatory) argument of a command if the 
13478 \begin_inset Flex Code
13479 status collapsed
13480
13481 \begin_layout Plain Layout
13482 LatexType
13483 \end_layout
13484
13485 \end_inset
13486
13487  is 
13488 \begin_inset Flex Code
13489 status collapsed
13490
13491 \begin_layout Plain Layout
13492 Command
13493 \end_layout
13494
13495 \end_inset
13496
13497 .
13498  However, arguments with the prefix 
13499 \begin_inset Flex Code
13500 status collapsed
13501
13502 \begin_layout Plain Layout
13503 post:
13504 \end_layout
13505
13506 \end_inset
13507
13508  are output after this workarea argument.
13509  Note that post-argument numbering restarts at 1, so the first argument
13510  following the workarea argument is 
13511 \begin_inset Flex Code
13512 status collapsed
13513
13514 \begin_layout Plain Layout
13515 post:1
13516 \end_layout
13517
13518 \end_inset
13519
13520 .
13521  Post-arguments are ignored in any other 
13522 \begin_inset Flex Code
13523 status collapsed
13524
13525 \begin_layout Plain Layout
13526 LatexType
13527 \end_layout
13528
13529 \end_inset
13530
13531  than 
13532 \begin_inset Flex Code
13533 status collapsed
13534
13535 \begin_layout Plain Layout
13536 Command
13537 \end_layout
13538
13539 \end_inset
13540
13541 .
13542 \end_layout
13543
13544 \begin_layout Standard
13545 Arguments for list 
13546 \begin_inset Flex Code
13547 status collapsed
13548
13549 \begin_layout Plain Layout
13550
13551 \backslash
13552 item
13553 \end_layout
13554
13555 \end_inset
13556
13557 s (as in 
13558 \begin_inset Flex Code
13559 status collapsed
13560
13561 \begin_layout Plain Layout
13562
13563 \backslash
13564 item[foo]
13565 \end_layout
13566
13567 \end_inset
13568
13569 ) have the prefix 
13570 \begin_inset Flex Code
13571 status collapsed
13572
13573 \begin_layout Plain Layout
13574 item:
13575 \end_layout
13576
13577 \end_inset
13578
13579  followed by the number (e.
13580 \begin_inset space \thinspace{}
13581 \end_inset
13582
13583 g.
13584 \begin_inset space \space{}
13585 \end_inset
13586
13587
13588 \begin_inset Flex Code
13589 status collapsed
13590
13591 \begin_layout Plain Layout
13592 Argument item:1
13593 \end_layout
13594
13595 \end_inset
13596
13597 ).
13598 \change_inserted -712698321 1534487781
13599
13600 \end_layout
13601
13602 \begin_layout Standard
13603
13604 \change_inserted -712698321 1534488561
13605 Finally, there is a special argument type with the prefix 
13606 \begin_inset Flex Code
13607 status collapsed
13608
13609 \begin_layout Plain Layout
13610
13611 \change_inserted -712698321 1534487844
13612 listpreamble:
13613 \change_unchanged
13614
13615 \end_layout
13616
13617 \end_inset
13618
13619 .
13620  It is not really an argument, but uses the argument interface (thus, the
13621  prefix is also followed by a number, e.
13622 \begin_inset space \thinspace{}
13623 \end_inset
13624
13625 g.
13626  
13627 \begin_inset Flex Code
13628 status collapsed
13629
13630 \begin_layout Plain Layout
13631
13632 \change_inserted -712698321 1534488412
13633 Argument listpreamble:1
13634 \change_unchanged
13635
13636 \end_layout
13637
13638 \end_inset
13639
13640 ).
13641  As the name implies, it is targeted at lists such as 
13642 \family sans
13643 Itemize
13644 \family default
13645
13646 \family sans
13647 Enumerate
13648 \family default
13649
13650 \family sans
13651 Description
13652 \family default
13653 , or 
13654 \family sans
13655 Bibliography
13656 \family default
13657 .
13658  Its content will be output at the list start, before the first 
13659 \begin_inset Flex Code
13660 status collapsed
13661
13662 \begin_layout Plain Layout
13663
13664 \change_inserted -712698321 1534488058
13665
13666 \backslash
13667 item
13668 \change_unchanged
13669
13670 \end_layout
13671
13672 \end_inset
13673
13674 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13675 ).
13676  This way, users can insert redefinitions (of lengths etc.) to individual
13677  lists.
13678  By default, these arguments do not have a delimiter.
13679 \change_unchanged
13680
13681 \end_layout
13682
13683 \end_deeper
13684 \begin_layout Description
13685 \begin_inset Flex Code
13686 status collapsed
13687
13688 \begin_layout Plain Layout
13689 AutoNests
13690 \end_layout
13691
13692 \end_inset
13693
13694  Includes a comma-separated list of layouts that should be nested in and
13695  after the current layout.
13696  Only makes sense for nestable layouts (such as environments).
13697  Must be ended by 
13698 \begin_inset Quotes eld
13699 \end_inset
13700
13701
13702 \begin_inset Flex Code
13703 status collapsed
13704
13705 \begin_layout Plain Layout
13706 EndAutoNests
13707 \end_layout
13708
13709 \end_inset
13710
13711
13712 \begin_inset Quotes erd
13713 \end_inset
13714
13715 .
13716  See also 
13717 \begin_inset Flex Code
13718 status collapsed
13719
13720 \begin_layout Plain Layout
13721 IsAutoNestedBy
13722 \end_layout
13723
13724 \end_inset
13725
13726 .
13727 \end_layout
13728
13729 \begin_layout Description
13730 \begin_inset Flex Code
13731 status collapsed
13732
13733 \begin_layout Plain Layout
13734 BabelPreamble
13735 \end_layout
13736
13737 \end_inset
13738
13739  Note that this will completely override any prior 
13740 \begin_inset Flex Code
13741 status collapsed
13742
13743 \begin_layout Plain Layout
13744 BabelPreamble
13745 \end_layout
13746
13747 \end_inset
13748
13749  declaration for this style.
13750  Must end with 
13751 \begin_inset Quotes eld
13752 \end_inset
13753
13754
13755 \begin_inset Flex Code
13756 status collapsed
13757
13758 \begin_layout Plain Layout
13759 EndBabelPreamble
13760 \end_layout
13761
13762 \end_inset
13763
13764
13765 \begin_inset Quotes erd
13766 \end_inset
13767
13768 .
13769  See 
13770 \begin_inset CommandInset ref
13771 LatexCommand ref
13772 reference "subsec:I18n"
13773
13774 \end_inset
13775
13776  for details on its use.
13777 \end_layout
13778
13779 \begin_layout Description
13780 \begin_inset Flex Code
13781 status collapsed
13782
13783 \begin_layout Plain Layout
13784 BottomSep
13785 \end_layout
13786
13787 \end_inset
13788
13789  [
13790 \begin_inset Flex Code
13791 status collapsed
13792
13793 \begin_layout Plain Layout
13794 float=0
13795 \end_layout
13796
13797 \end_inset
13798
13799 ]
13800 \begin_inset Foot
13801 status collapsed
13802
13803 \begin_layout Plain Layout
13804 Note that a `float' here is a real number, such as: 1.5.
13805 \end_layout
13806
13807 \end_inset
13808
13809  The vertical space with which the last of a chain of paragraphs with this
13810  style is separated from the following paragraph.
13811  If the next paragraph has another style, the separations are not simply
13812  added, but the maximum is taken.
13813 \end_layout
13814
13815 \begin_layout Description
13816 \begin_inset Flex Code
13817 status collapsed
13818
13819 \begin_layout Plain Layout
13820 Category
13821 \end_layout
13822
13823 \end_inset
13824
13825  [
13826 \begin_inset Flex Code
13827 status collapsed
13828
13829 \begin_layout Plain Layout
13830 string
13831 \end_layout
13832
13833 \end_inset
13834
13835 ] The category for this style.
13836  This is used to group related styles in the style combobox on the toolbar.
13837  Any string can be used, but you may want to use existing categories with
13838  your own styles.
13839  
13840 \end_layout
13841
13842 \begin_layout Description
13843 \begin_inset Flex Code
13844 status collapsed
13845
13846 \begin_layout Plain Layout
13847 CommandDepth
13848 \end_layout
13849
13850 \end_inset
13851
13852  Depth of XML command.
13853  Used only with XML-type formats.
13854 \end_layout
13855
13856 \begin_layout Description
13857 \begin_inset Flex Code
13858 status collapsed
13859
13860 \begin_layout Plain Layout
13861 CopyStyle
13862 \end_layout
13863
13864 \end_inset
13865
13866  [
13867 \begin_inset Flex Code
13868 status collapsed
13869
13870 \begin_layout Plain Layout
13871 string
13872 \end_layout
13873
13874 \end_inset
13875
13876 ] Copies all the features of an existing style into the current one.
13877  
13878 \end_layout
13879
13880 \begin_layout Description
13881 \begin_inset Flex Code
13882 status collapsed
13883
13884 \begin_layout Plain Layout
13885 DependsOn
13886 \end_layout
13887
13888 \end_inset
13889
13890  [
13891 \begin_inset Flex Code
13892 status collapsed
13893
13894 \begin_layout Plain Layout
13895 <name>
13896 \end_layout
13897
13898 \end_inset
13899
13900 ] The name of a style whose preamble should be output 
13901 \emph on
13902 before
13903 \emph default
13904  this one.
13905  This allows to ensure some ordering of the preamble snippets when macros
13906  definitions depend on one another.
13907 \begin_inset Foot
13908 status collapsed
13909
13910 \begin_layout Plain Layout
13911 Note that, besides that functionality, there is no way to ensure any ordering
13912  of preambles.
13913  The ordering that you see in a given version of \SpecialChar LyX
13914  may change without warning
13915  in later versions.
13916 \end_layout
13917
13918 \end_inset
13919
13920
13921 \end_layout
13922
13923 \begin_layout Description
13924 \begin_inset Flex Code
13925 status collapsed
13926
13927 \begin_layout Plain Layout
13928 EndLabeltype
13929 \end_layout
13930
13931 \end_inset
13932
13933  [
13934 \begin_inset Flex Code
13935 status collapsed
13936
13937 \begin_layout Plain Layout
13938
13939 \emph on
13940 No_Label
13941 \emph default
13942 , Box, Filled_Box, Static
13943 \end_layout
13944
13945 \end_inset
13946
13947 ] The type of label that stands at the end of the paragraph (or sequence
13948  of paragraphs if 
13949 \begin_inset Flex Code
13950 status collapsed
13951
13952 \begin_layout Plain Layout
13953 LatexType
13954 \end_layout
13955
13956 \end_inset
13957
13958  is
13959 \begin_inset Newline newline
13960 \end_inset
13961
13962
13963 \begin_inset Flex Code
13964 status collapsed
13965
13966 \begin_layout Plain Layout
13967 Environment
13968 \end_layout
13969
13970 \end_inset
13971
13972
13973 \begin_inset Flex Code
13974 status collapsed
13975
13976 \begin_layout Plain Layout
13977 Item_Environment
13978 \end_layout
13979
13980 \end_inset
13981
13982  or 
13983 \begin_inset Flex Code
13984 status collapsed
13985
13986 \begin_layout Plain Layout
13987 List_Environment
13988 \end_layout
13989
13990 \end_inset
13991
13992 ).
13993  
13994 \begin_inset Flex Code
13995 status collapsed
13996
13997 \begin_layout Plain Layout
13998 No_Label
13999 \end_layout
14000
14001 \end_inset
14002
14003  means 
14004 \begin_inset Quotes eld
14005 \end_inset
14006
14007 nothing
14008 \begin_inset Quotes erd
14009 \end_inset
14010
14011
14012 \begin_inset Flex Code
14013 status collapsed
14014
14015 \begin_layout Plain Layout
14016 Box
14017 \end_layout
14018
14019 \end_inset
14020
14021  (resp.
14022 \begin_inset space \space{}
14023 \end_inset
14024
14025
14026 \begin_inset Flex Code
14027 status collapsed
14028
14029 \begin_layout Plain Layout
14030 Filled_Box
14031 \end_layout
14032
14033 \end_inset
14034
14035 ) is a white (resp.
14036 \begin_inset space ~
14037 \end_inset
14038
14039 black) square suitable for end of proof markers, 
14040 \begin_inset Flex Code
14041 status collapsed
14042
14043 \begin_layout Plain Layout
14044 Static
14045 \end_layout
14046
14047 \end_inset
14048
14049  is an explicit text string.
14050 \end_layout
14051
14052 \begin_layout Description
14053 \begin_inset Flex Code
14054 status collapsed
14055
14056 \begin_layout Plain Layout
14057 EndLabelString
14058 \end_layout
14059
14060 \end_inset
14061
14062  [
14063 \begin_inset Flex Code
14064 status collapsed
14065
14066 \begin_layout Plain Layout
14067 string=""
14068 \end_layout
14069
14070 \end_inset
14071
14072 ] The string used for a label with a 
14073 \begin_inset Flex Code
14074 status collapsed
14075
14076 \begin_layout Plain Layout
14077 Static
14078 \end_layout
14079
14080 \end_inset
14081
14082
14083 \begin_inset Newline newline
14084 \end_inset
14085
14086
14087 \begin_inset Flex Code
14088 status collapsed
14089
14090 \begin_layout Plain Layout
14091 EndLabelType
14092 \end_layout
14093
14094 \end_inset
14095
14096 .
14097  
14098 \end_layout
14099
14100 \begin_layout Description
14101 \begin_inset Flex Code
14102 status collapsed
14103
14104 \begin_layout Plain Layout
14105 Font
14106 \end_layout
14107
14108 \end_inset
14109
14110  The font used for both the text body 
14111 \emph on
14112 and
14113 \emph default
14114  the label.
14115  See 
14116 \begin_inset CommandInset ref
14117 LatexCommand ref
14118 reference "subsec:Font-description"
14119
14120 \end_inset
14121
14122 .
14123  Note that defining this font automatically defines the 
14124 \begin_inset Flex Code
14125 status collapsed
14126
14127 \begin_layout Plain Layout
14128 LabelFont
14129 \end_layout
14130
14131 \end_inset
14132
14133  to the same value.
14134  So you should define this one first if you also want to define 
14135 \begin_inset Flex Code
14136 status collapsed
14137
14138 \begin_layout Plain Layout
14139 LabelFont
14140 \end_layout
14141
14142 \end_inset
14143
14144 .
14145 \end_layout
14146
14147 \begin_layout Description
14148 \begin_inset Flex Code
14149 status collapsed
14150
14151 \begin_layout Plain Layout
14152 ForceLocal
14153 \end_layout
14154
14155 \end_inset
14156
14157  [
14158 \begin_inset Flex Code
14159 status collapsed
14160
14161 \begin_layout Plain Layout
14162 int=0
14163 \end_layout
14164
14165 \end_inset
14166
14167 ] Used for backporting new styles to stable \SpecialChar LyX
14168  versions.
14169  The first stable version that supports this tag is \SpecialChar LyX
14170  2.1.0.
14171  The argument is a number which may either be 0, -1 or any value greater
14172  than zero.
14173  If the 
14174 \begin_inset Flex Code
14175 status collapsed
14176
14177 \begin_layout Plain Layout
14178 ForceLocal
14179 \end_layout
14180
14181 \end_inset
14182
14183  flag of a style is greater than zero, it will always be written to the
14184  document header.
14185  If a .lyx file is read, the style definitions from the document header are
14186  added to the document class.
14187  Therefore even older \SpecialChar LyX
14188  versions can handle the style.
14189  The argument of 
14190 \begin_inset Flex Code
14191 status collapsed
14192
14193 \begin_layout Plain Layout
14194 ForceLocal
14195 \end_layout
14196
14197 \end_inset
14198
14199  is a version number: if the style is read, and the version number is less
14200  than the version number of the already existing style in the document class,
14201  the new style is ignored.
14202  If the version number is greater, the new style replaces the existing style.
14203  A value of -1 means an infinite version number, i.
14204 \begin_inset space \thinspace{}
14205 \end_inset
14206
14207 e.
14208 \begin_inset space \space{}
14209 \end_inset
14210
14211 the style is always used.
14212 \end_layout
14213
14214 \begin_layout Description
14215 \begin_inset Flex Code
14216 status collapsed
14217
14218 \begin_layout Plain Layout
14219 FreeSpacing
14220 \end_layout
14221
14222 \end_inset
14223
14224  [
14225 \begin_inset Flex Code
14226 status collapsed
14227
14228 \begin_layout Plain Layout
14229
14230 \emph on
14231 0
14232 \end_layout
14233
14234 \end_inset
14235
14236 ,
14237 \begin_inset space \thinspace{}
14238 \end_inset
14239
14240
14241 \begin_inset Flex Code
14242 status collapsed
14243
14244 \begin_layout Plain Layout
14245 1
14246 \end_layout
14247
14248 \end_inset
14249
14250 ] Usually \SpecialChar LyX
14251  does not allow you to insert more than one space between words,
14252  since a space is considered as the separation between two words, not a
14253  character or symbol of its own.
14254  This is a very fine thing but sometimes annoying, for example, when typing
14255  program code or plain \SpecialChar LaTeX
14256  code.
14257  For this reason, 
14258 \begin_inset Flex Code
14259 status collapsed
14260
14261 \begin_layout Plain Layout
14262 FreeSpacing
14263 \end_layout
14264
14265 \end_inset
14266
14267  can be enabled.
14268  
14269 \change_deleted -495245474 1550490105
14270 Note that 
14271 \change_unchanged
14272 \SpecialChar LyX
14273  will create protected blanks for the additional blanks when in 
14274 \change_inserted -495245474 1550490096
14275
14276 \begin_inset Flex Code
14277 status collapsed
14278
14279 \begin_layout Plain Layout
14280
14281 \change_inserted -495245474 1550490089
14282 Passthru 1
14283 \change_unchanged
14284
14285 \end_layout
14286
14287 \end_inset
14288
14289  is not specified.
14290 \change_deleted -495245474 1550490116
14291 another mode than \SpecialChar LaTeX
14292 -mode.
14293
14294 \change_inserted -495245474 1550247760
14295  Note that 
14296 \begin_inset Flex Code
14297 status collapsed
14298
14299 \begin_layout Plain Layout
14300
14301 \change_inserted -495245474 1550247736
14302 FreeSpacing
14303 \change_unchanged
14304
14305 \end_layout
14306
14307 \end_inset
14308
14309  implies 
14310 \begin_inset Flex Code
14311 status collapsed
14312
14313 \begin_layout Plain Layout
14314
14315 \change_inserted -495245474 1550247755
14316 KeepEmpty
14317 \change_unchanged
14318
14319 \end_layout
14320
14321 \end_inset
14322
14323 .
14324 \change_unchanged
14325
14326 \end_layout
14327
14328 \begin_layout Description
14329 \begin_inset Flex Code
14330 status collapsed
14331
14332 \begin_layout Plain Layout
14333 HTML*
14334 \end_layout
14335
14336 \end_inset
14337
14338  These tags are used with XHTML output.
14339  See 
14340 \begin_inset CommandInset ref
14341 LatexCommand ref
14342 reference "subsec:Paragraph-Style-XHTML"
14343
14344 \end_inset
14345
14346 .
14347 \end_layout
14348
14349 \begin_layout Description
14350 \begin_inset Flex Code
14351 status collapsed
14352
14353 \begin_layout Plain Layout
14354 InnerTag
14355 \end_layout
14356
14357 \end_inset
14358
14359  [FIXME] (Used only with XML-type formats.)
14360 \end_layout
14361
14362 \begin_layout Description
14363 \begin_inset Flex Code
14364 status collapsed
14365
14366 \begin_layout Plain Layout
14367 InPreamble
14368 \end_layout
14369
14370 \end_inset
14371
14372  [
14373 \begin_inset Flex Code
14374 status collapsed
14375
14376 \begin_layout Plain Layout
14377
14378 \emph on
14379 0
14380 \end_layout
14381
14382 \end_inset
14383
14384 ,
14385 \begin_inset space \thinspace{}
14386 \end_inset
14387
14388
14389 \begin_inset Flex Code
14390 status collapsed
14391
14392 \begin_layout Plain Layout
14393 1
14394 \end_layout
14395
14396 \end_inset
14397
14398 ] If 
14399 \begin_inset Flex Code
14400 status collapsed
14401
14402 \begin_layout Plain Layout
14403 1
14404 \end_layout
14405
14406 \end_inset
14407
14408 , marks the style as to be included in the document preamble and not in
14409  the document body.
14410  This is useful for document classes that want such information as the title
14411  and author to appear in the preamble.
14412  Note that this works only for styles for which the 
14413 \begin_inset Flex Code
14414 status collapsed
14415
14416 \begin_layout Plain Layout
14417 LatexType
14418 \end_layout
14419
14420 \end_inset
14421
14422  is 
14423 \begin_inset Flex Code
14424 status collapsed
14425
14426 \begin_layout Plain Layout
14427 Command
14428 \end_layout
14429
14430 \end_inset
14431
14432  or 
14433 \begin_inset Flex Code
14434 status collapsed
14435
14436 \begin_layout Plain Layout
14437 Paragraph
14438 \end_layout
14439
14440 \end_inset
14441
14442 .
14443 \end_layout
14444
14445 \begin_layout Description
14446 \begin_inset Flex Code
14447 status collapsed
14448
14449 \begin_layout Plain Layout
14450 InTitle
14451 \end_layout
14452
14453 \end_inset
14454
14455  [
14456 \begin_inset Flex Code
14457 status collapsed
14458
14459 \begin_layout Plain Layout
14460
14461 \emph on
14462 0
14463 \end_layout
14464
14465 \end_inset
14466
14467 ,
14468 \begin_inset space \thinspace{}
14469 \end_inset
14470
14471
14472 \begin_inset Flex Code
14473 status collapsed
14474
14475 \begin_layout Plain Layout
14476 1
14477 \end_layout
14478
14479 \end_inset
14480
14481 ] If 
14482 \begin_inset Flex Code
14483 status collapsed
14484
14485 \begin_layout Plain Layout
14486 1
14487 \end_layout
14488
14489 \end_inset
14490
14491 , marks the style as being part of a title block (see also the 
14492 \begin_inset Flex Code
14493 status collapsed
14494
14495 \begin_layout Plain Layout
14496 TitleLatexType
14497 \end_layout
14498
14499 \end_inset
14500
14501  and 
14502 \begin_inset Flex Code
14503 status collapsed
14504
14505 \begin_layout Plain Layout
14506 TitleLatexName
14507 \end_layout
14508
14509 \end_inset
14510
14511  global entries).
14512 \end_layout
14513
14514 \begin_layout Description
14515 \begin_inset Flex Code
14516 status collapsed
14517
14518 \begin_layout Plain Layout
14519 IsAutoNestedBy
14520 \end_layout
14521
14522 \end_inset
14523
14524  Includes a comma-separated list of layouts after which this one should
14525  be nested.
14526  Only makes sense with regard to nestable layouts (such as environments).
14527  Must be ended by 
14528 \begin_inset Quotes eld
14529 \end_inset
14530
14531
14532 \begin_inset Flex Code
14533 status collapsed
14534
14535 \begin_layout Plain Layout
14536 EndIsAutoNestedBy
14537 \end_layout
14538
14539 \end_inset
14540
14541
14542 \begin_inset Quotes erd
14543 \end_inset
14544
14545 .
14546  See also 
14547 \begin_inset Flex Code
14548 status collapsed
14549
14550 \begin_layout Plain Layout
14551 AutoNests
14552 \end_layout
14553
14554 \end_inset
14555
14556 .
14557 \end_layout
14558
14559 \begin_layout Description
14560 \begin_inset Flex Code
14561 status collapsed
14562
14563 \begin_layout Plain Layout
14564 IsTocCaption
14565 \end_layout
14566
14567 \end_inset
14568
14569  [
14570 \begin_inset Flex Code
14571 status collapsed
14572
14573 \begin_layout Plain Layout
14574
14575 \emph on
14576 0
14577 \end_layout
14578
14579 \end_inset
14580
14581 ,
14582 \begin_inset space \thinspace{}
14583 \end_inset
14584
14585
14586 \begin_inset Flex Code
14587 status collapsed
14588
14589 \begin_layout Plain Layout
14590 1
14591 \end_layout
14592
14593 \end_inset
14594
14595 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14596  of its contents in its item in the table of contents.
14597  Otherwise, only the label, if it exists, appears.
14598 \end_layout
14599
14600 \begin_layout Description
14601 \begin_inset Flex Code
14602 status collapsed
14603
14604 \begin_layout Plain Layout
14605 ItemCommand
14606 \end_layout
14607
14608 \end_inset
14609
14610  [
14611 \begin_inset Flex Code
14612 status collapsed
14613
14614 \begin_layout Plain Layout
14615 string="item"
14616 \end_layout
14617
14618 \end_inset
14619
14620 ] The \SpecialChar LaTeX
14621  command sequence declaring an item in a list.
14622  The command is to be defined without the preceding backslash (the default
14623  is 
14624 \begin_inset Quotes eld
14625 \end_inset
14626
14627 item
14628 \begin_inset Quotes erd
14629 \end_inset
14630
14631 , resulting in 
14632 \begin_inset Flex Code
14633 status collapsed
14634
14635 \begin_layout Plain Layout
14636
14637 \backslash
14638 item
14639 \end_layout
14640
14641 \end_inset
14642
14643  in the \SpecialChar LaTeX
14644  output).
14645 \end_layout
14646
14647 \begin_layout Description
14648 \begin_inset Flex Code
14649 status collapsed
14650
14651 \begin_layout Plain Layout
14652 ItemSep
14653 \end_layout
14654
14655 \end_inset
14656
14657  [
14658 \begin_inset Flex Code
14659 status collapsed
14660
14661 \begin_layout Plain Layout
14662 float=0
14663 \end_layout
14664
14665 \end_inset
14666
14667 ] This provides extra space between paragraphs that have the same style.
14668  If you put other styles into an environment, each is separated with the
14669  environment's 
14670 \begin_inset Flex Code
14671 status collapsed
14672
14673 \begin_layout Plain Layout
14674 ParSep
14675 \end_layout
14676
14677 \end_inset
14678
14679 .
14680  But the whole items of the environment are additionally separated with
14681  this 
14682 \begin_inset Flex Code
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686 ItemSep
14687 \end_layout
14688
14689 \end_inset
14690
14691 .
14692  Note that this is a
14693 \emph on
14694  multiplier.
14695 \end_layout
14696
14697 \begin_layout Description
14698 \begin_inset Flex Code
14699 status collapsed
14700
14701 \begin_layout Plain Layout
14702 ItemTag
14703 \end_layout
14704
14705 \end_inset
14706
14707  [FIXME] (Used only with XML-type formats.)
14708 \end_layout
14709
14710 \begin_layout Description
14711 \begin_inset Flex Code
14712 status collapsed
14713
14714 \begin_layout Plain Layout
14715 KeepEmpty
14716 \end_layout
14717
14718 \end_inset
14719
14720  [
14721 \begin_inset Flex Code
14722 status collapsed
14723
14724 \begin_layout Plain Layout
14725
14726 \emph on
14727 0
14728 \end_layout
14729
14730 \end_inset
14731
14732 ,
14733 \begin_inset space \thinspace{}
14734 \end_inset
14735
14736
14737 \begin_inset Flex Code
14738 status collapsed
14739
14740 \begin_layout Plain Layout
14741 1
14742 \end_layout
14743
14744 \end_inset
14745
14746 ] Usually \SpecialChar LyX
14747  does not allow you to leave a paragraph empty, since it would
14748  lead to empty \SpecialChar LaTeX
14749  output.
14750  There are some cases where this could be desirable however: in a letter
14751  template, the required fields can be provided as empty fields, so that
14752  people do not forget them; in some special classes, a style can be used
14753  as some kind of break, which does not contain actual text.
14754 \end_layout
14755
14756 \begin_layout Description
14757 \begin_inset Flex Code
14758 status collapsed
14759
14760 \begin_layout Plain Layout
14761 LabelBottomsep
14762 \end_layout
14763
14764 \end_inset
14765
14766  [
14767 \begin_inset Flex Code
14768 status collapsed
14769
14770 \begin_layout Plain Layout
14771 float=0
14772 \end_layout
14773
14774 \end_inset
14775
14776 ] The vertical space between the label and the text body.
14777  Only used for labels that are above the text body (
14778 \begin_inset Flex Code
14779 status collapsed
14780
14781 \begin_layout Plain Layout
14782 Top_Environment
14783 \end_layout
14784
14785 \end_inset
14786
14787  and
14788 \begin_inset Newline newline
14789 \end_inset
14790
14791
14792 \begin_inset Flex Code
14793 status collapsed
14794
14795 \begin_layout Plain Layout
14796 Centered_Top_Environment
14797 \end_layout
14798
14799 \end_inset
14800
14801 ).
14802 \end_layout
14803
14804 \begin_layout Description
14805 \begin_inset Flex Code
14806 status collapsed
14807
14808 \begin_layout Plain Layout
14809 LabelCounter
14810 \end_layout
14811
14812 \end_inset
14813
14814  [
14815 \begin_inset Flex Code
14816 status collapsed
14817
14818 \begin_layout Plain Layout
14819 string=""
14820 \end_layout
14821
14822 \end_inset
14823
14824 ] The name of the counter for automatic numbering.
14825  In order to have the counter appear with your label, you will need to reference
14826  it in the 
14827 \begin_inset Flex Code
14828 status collapsed
14829
14830 \begin_layout Plain Layout
14831
14832 \family typewriter
14833 LabelString
14834 \end_layout
14835
14836 \end_inset
14837
14838 .
14839  This will work with 
14840 \begin_inset Flex Code
14841 status collapsed
14842
14843 \begin_layout Plain Layout
14844 LabelType
14845 \end_layout
14846
14847 \end_inset
14848
14849 s, 
14850 \begin_inset Flex Code
14851 status collapsed
14852
14853 \begin_layout Plain Layout
14854 Static
14855 \end_layout
14856
14857 \end_inset
14858
14859
14860 \begin_inset Flex Code
14861 status collapsed
14862
14863 \begin_layout Plain Layout
14864 Above
14865 \end_layout
14866
14867 \end_inset
14868
14869  and 
14870 \begin_inset Flex Code
14871 status collapsed
14872
14873 \begin_layout Plain Layout
14874 Centered
14875 \end_layout
14876
14877 \end_inset
14878
14879 , at least.
14880 \begin_inset Newline newline
14881 \end_inset
14882
14883 This 
14884 \emph on
14885 may
14886 \emph default
14887  also be given if 
14888 \begin_inset Flex Code
14889 status collapsed
14890
14891 \begin_layout Plain Layout
14892 LabelType
14893 \end_layout
14894
14895 \end_inset
14896
14897  is 
14898 \begin_inset Flex Code
14899 status collapsed
14900
14901 \begin_layout Plain Layout
14902 Enumerate
14903 \end_layout
14904
14905 \end_inset
14906
14907 , though this case is a bit complicated.
14908  Suppose you declare 
14909 \begin_inset Quotes eld
14910 \end_inset
14911
14912
14913 \begin_inset Flex Code
14914 status collapsed
14915
14916 \begin_layout Plain Layout
14917 LabelCounter myenum
14918 \end_layout
14919
14920 \end_inset
14921
14922
14923 \begin_inset Quotes erd
14924 \end_inset
14925
14926 .
14927  Then the actual counters used are 
14928 \begin_inset Flex Code
14929 status collapsed
14930
14931 \begin_layout Plain Layout
14932 myenumi
14933 \end_layout
14934
14935 \end_inset
14936
14937
14938 \begin_inset Flex Code
14939 status collapsed
14940
14941 \begin_layout Plain Layout
14942 myenumii
14943 \end_layout
14944
14945 \end_inset
14946
14947
14948 \begin_inset Flex Code
14949 status collapsed
14950
14951 \begin_layout Plain Layout
14952 myenumiii
14953 \end_layout
14954
14955 \end_inset
14956
14957  and 
14958 \begin_inset Flex Code
14959 status collapsed
14960
14961 \begin_layout Plain Layout
14962 myenumiv
14963 \end_layout
14964
14965 \end_inset
14966
14967 , much as in \SpecialChar LaTeX
14968 .
14969  These counters must all be declared separately.
14970 \begin_inset Newline newline
14971 \end_inset
14972
14973 See 
14974 \begin_inset CommandInset ref
14975 LatexCommand ref
14976 reference "subsec:Counters"
14977
14978 \end_inset
14979
14980  for details on counters.
14981 \end_layout
14982
14983 \begin_layout Description
14984 \begin_inset Flex Code
14985 status collapsed
14986
14987 \begin_layout Plain Layout
14988 LabelFont
14989 \end_layout
14990
14991 \end_inset
14992
14993  The font used for the label.
14994  See 
14995 \begin_inset CommandInset ref
14996 LatexCommand ref
14997 reference "subsec:Font-description"
14998
14999 \end_inset
15000
15001 .
15002 \end_layout
15003
15004 \begin_layout Description
15005 \begin_inset Flex Code
15006 status collapsed
15007
15008 \begin_layout Plain Layout
15009 LabelIndent
15010 \end_layout
15011
15012 \end_inset
15013
15014  [
15015 \begin_inset Flex Code
15016 status collapsed
15017
15018 \begin_layout Plain Layout
15019 string=""
15020 \end_layout
15021
15022 \end_inset
15023
15024 ] Text that indicates how far a label should be indented.
15025 \end_layout
15026
15027 \begin_layout Description
15028 \begin_inset Flex Code
15029 status collapsed
15030
15031 \begin_layout Plain Layout
15032 LabelSep
15033 \end_layout
15034
15035 \end_inset
15036
15037  [
15038 \begin_inset Flex Code
15039 status collapsed
15040
15041 \begin_layout Plain Layout
15042 string=""
15043 \end_layout
15044
15045 \end_inset
15046
15047 ] Text that indicates the amount of horizontal space between the label and
15048  the text body.
15049  Only used for labels that are not above the text body.
15050 \end_layout
15051
15052 \begin_layout Description
15053 \begin_inset Flex Code
15054 status collapsed
15055
15056 \begin_layout Plain Layout
15057 LabelString
15058 \end_layout
15059
15060 \end_inset
15061
15062  [
15063 \begin_inset Flex Code
15064 status collapsed
15065
15066 \begin_layout Plain Layout
15067 string=""
15068 \end_layout
15069
15070 \end_inset
15071
15072 ] The string used for the label.
15073  When 
15074 \begin_inset Flex Code
15075 status collapsed
15076
15077 \begin_layout Plain Layout
15078 LabelCounter
15079 \end_layout
15080
15081 \end_inset
15082
15083  is set, this string can be contain the special formatting commands described
15084  in 
15085 \begin_inset CommandInset ref
15086 LatexCommand ref
15087 reference "subsec:Counters"
15088
15089 \end_inset
15090
15091 .
15092 \end_layout
15093
15094 \begin_layout Description
15095 \begin_inset Flex Code
15096 status collapsed
15097
15098 \begin_layout Plain Layout
15099 LabelStringAppendix
15100 \end_layout
15101
15102 \end_inset
15103
15104  [
15105 \begin_inset Flex Code
15106 status collapsed
15107
15108 \begin_layout Plain Layout
15109 string=""
15110 \end_layout
15111
15112 \end_inset
15113
15114 ] This is used inside the appendix instead of
15115 \begin_inset Newline newline
15116 \end_inset
15117
15118
15119 \begin_inset Flex Code
15120 status collapsed
15121
15122 \begin_layout Plain Layout
15123 LabelString
15124 \end_layout
15125
15126 \end_inset
15127
15128 .
15129  Note that every 
15130 \begin_inset Flex Code
15131 status collapsed
15132
15133 \begin_layout Plain Layout
15134 LabelString
15135 \end_layout
15136
15137 \end_inset
15138
15139  statement resets
15140 \begin_inset Newline newline
15141 \end_inset
15142
15143
15144 \begin_inset Flex Code
15145 status collapsed
15146
15147 \begin_layout Plain Layout
15148 LabelStringAppendix
15149 \end_layout
15150
15151 \end_inset
15152
15153  too.
15154 \end_layout
15155
15156 \begin_layout Description
15157 \begin_inset Flex Code
15158 status collapsed
15159
15160 \begin_layout Plain Layout
15161 LabelTag
15162 \end_layout
15163
15164 \end_inset
15165
15166  [FIXME] (Used only with XML-type formats.)
15167 \end_layout
15168
15169 \begin_layout Description
15170 \begin_inset Flex Code
15171 status collapsed
15172
15173 \begin_layout Plain Layout
15174 LabelType
15175 \end_layout
15176
15177 \end_inset
15178
15179  [
15180 \begin_inset Flex Code
15181 status collapsed
15182
15183 \begin_layout Plain Layout
15184
15185 \emph on
15186 No_Label
15187 \emph default
15188 , Manual, Static, Above, 
15189 \begin_inset Newline newline
15190 \end_inset
15191
15192 Centered, Sensitive, Enumerate,
15193 \begin_inset Newline newline
15194 \end_inset
15195
15196 Itemize, Bibliography
15197 \end_layout
15198
15199 \end_inset
15200
15201 ]
15202 \end_layout
15203
15204 \begin_deeper
15205 \begin_layout Description
15206 \begin_inset Flex Code
15207 status collapsed
15208
15209 \begin_layout Plain Layout
15210 Manual
15211 \end_layout
15212
15213 \end_inset
15214
15215  means the label is the very first word (up to the first real blank).
15216  Use protected spaces if you want more than one word as the label.
15217  
15218 \end_layout
15219
15220 \begin_layout Description
15221 \begin_inset Flex Code
15222 status collapsed
15223
15224 \begin_layout Plain Layout
15225 Static
15226 \end_layout
15227
15228 \end_inset
15229
15230  means the label is simply what is declared as 
15231 \begin_inset Flex Code
15232 status collapsed
15233
15234 \begin_layout Plain Layout
15235 LabelString
15236 \end_layout
15237
15238 \end_inset
15239
15240 .
15241  This will be displayed 
15242 \begin_inset Quotes eld
15243 \end_inset
15244
15245 inline
15246 \begin_inset Quotes erd
15247 \end_inset
15248
15249 , at the beginning of the paragraph.
15250  If the 
15251 \begin_inset Flex Code
15252 status collapsed
15253
15254 \begin_layout Plain Layout
15255 LatexType
15256 \end_layout
15257
15258 \end_inset
15259
15260  is 
15261 \begin_inset Flex Code
15262 status collapsed
15263
15264 \begin_layout Plain Layout
15265 Environment
15266 \end_layout
15267
15268 \end_inset
15269
15270 , then it will be displayed only in the first paragraph of any sequence
15271  of paragraphs with the same 
15272 \begin_inset Flex Code
15273 status collapsed
15274
15275 \begin_layout Plain Layout
15276 Style
15277 \end_layout
15278
15279 \end_inset
15280
15281 .
15282 \end_layout
15283
15284 \begin_layout Description
15285 \begin_inset Flex Code
15286 status collapsed
15287
15288 \begin_layout Plain Layout
15289 Above
15290 \end_layout
15291
15292 \end_inset
15293
15294
15295 \begin_inset space ~
15296 \end_inset
15297
15298 and
15299 \begin_inset space ~
15300 \end_inset
15301
15302
15303 \begin_inset Flex Code
15304 status collapsed
15305
15306 \begin_layout Plain Layout
15307 Centered
15308 \end_layout
15309
15310 \end_inset
15311
15312  are special cases of 
15313 \begin_inset Flex Code
15314 status collapsed
15315
15316 \begin_layout Plain Layout
15317 Static
15318 \end_layout
15319
15320 \end_inset
15321
15322 .
15323  The label will be printed above the paragraph either at the beginning of
15324  the line or centered.
15325 \end_layout
15326
15327 \begin_layout Description
15328 \begin_inset Flex Code
15329 status collapsed
15330
15331 \begin_layout Plain Layout
15332 Sensitive
15333 \end_layout
15334
15335 \end_inset
15336
15337  is a special case for the caption-labels 
15338 \begin_inset Quotes eld
15339 \end_inset
15340
15341 Figure
15342 \begin_inset Quotes erd
15343 \end_inset
15344
15345  and 
15346 \begin_inset Quotes eld
15347 \end_inset
15348
15349 Table
15350 \begin_inset Quotes erd
15351 \end_inset
15352
15353 .
15354 \begin_inset Newline newline
15355 \end_inset
15356
15357
15358 \begin_inset Flex Code
15359 status collapsed
15360
15361 \begin_layout Plain Layout
15362 Sensitive
15363 \end_layout
15364
15365 \end_inset
15366
15367  means the (hardcoded) label string depends on the kind of float: It is
15368  hardcoded to be `FloatType N', where N is the value of the counter associated
15369  with the float.
15370  For the case that a caption is inserted outside of a float the 
15371 \begin_inset Flex Code
15372 status collapsed
15373
15374 \begin_layout Plain Layout
15375 LabelString
15376 \end_layout
15377
15378 \end_inset
15379
15380  will appear as 
15381 \begin_inset Quotes eld
15382 \end_inset
15383
15384 Senseless!
15385 \begin_inset Quotes erd
15386 \end_inset
15387
15388 .
15389 \end_layout
15390
15391 \begin_layout Description
15392 \begin_inset Flex Code
15393 status collapsed
15394
15395 \begin_layout Plain Layout
15396 Enumerate
15397 \end_layout
15398
15399 \end_inset
15400
15401  produces the usual sort of enumeration labels.
15402  The number type needs to be set in the 
15403 \family sans
15404 Counter
15405 \family default
15406 , see 
15407 \begin_inset CommandInset ref
15408 LatexCommand ref
15409 reference "subsec:Counters"
15410
15411 \end_inset
15412
15413 .
15414 \end_layout
15415
15416 \begin_layout Description
15417 \begin_inset Flex Code
15418 status collapsed
15419
15420 \begin_layout Plain Layout
15421 Itemize
15422 \end_layout
15423
15424 \end_inset
15425
15426  produces various bullets at the different levels.
15427  The bullet types displayed can be set via 
15428 \begin_inset Flex Noun
15429 status collapsed
15430
15431 \begin_layout Plain Layout
15432 Document\SpecialChar menuseparator
15433 Settings\SpecialChar menuseparator
15434 Bullets
15435 \end_layout
15436
15437 \end_inset
15438
15439 .
15440 \end_layout
15441
15442 \begin_layout Description
15443 \begin_inset Flex Code
15444 status collapsed
15445
15446 \begin_layout Plain Layout
15447 Bibliography
15448 \end_layout
15449
15450 \end_inset
15451
15452  should be used only with 
15453 \begin_inset Flex Code
15454 status collapsed
15455
15456 \begin_layout Plain Layout
15457 LatexType BibEnvironment
15458 \end_layout
15459
15460 \end_inset
15461
15462 .
15463 \end_layout
15464
15465 \end_deeper
15466 \begin_layout Description
15467 \begin_inset Flex Code
15468 status collapsed
15469
15470 \begin_layout Plain Layout
15471 LangPreamble
15472 \end_layout
15473
15474 \end_inset
15475
15476  Note that this will completely override any prior 
15477 \begin_inset Flex Code
15478 status collapsed
15479
15480 \begin_layout Plain Layout
15481 LangPreamble
15482 \end_layout
15483
15484 \end_inset
15485
15486  declaration for this style.
15487  Must end with 
15488 \begin_inset Quotes eld
15489 \end_inset
15490
15491
15492 \begin_inset Flex Code
15493 status collapsed
15494
15495 \begin_layout Plain Layout
15496 EndLangPreamble
15497 \end_layout
15498
15499 \end_inset
15500
15501
15502 \begin_inset Quotes erd
15503 \end_inset
15504
15505 .
15506  See 
15507 \begin_inset CommandInset ref
15508 LatexCommand ref
15509 reference "subsec:I18n"
15510
15511 \end_inset
15512
15513  for details on its use.
15514 \end_layout
15515
15516 \begin_layout Description
15517 \begin_inset Flex Code
15518 status collapsed
15519
15520 \begin_layout Plain Layout
15521 LatexName
15522 \end_layout
15523
15524 \end_inset
15525
15526  [
15527 \begin_inset Flex Code
15528 status collapsed
15529
15530 \begin_layout Plain Layout
15531 <name>
15532 \end_layout
15533
15534 \end_inset
15535
15536 ] The name of the corresponding \SpecialChar LaTeX
15537  stuff.
15538  Either the environment or command name.
15539 \end_layout
15540
15541 \begin_layout Description
15542 \begin_inset Flex Code
15543 status collapsed
15544
15545 \begin_layout Plain Layout
15546 LatexParam
15547 \end_layout
15548
15549 \end_inset
15550
15551  [
15552 \begin_inset Flex Code
15553 status collapsed
15554
15555 \begin_layout Plain Layout
15556 <parameter>
15557 \end_layout
15558
15559 \end_inset
15560
15561 ] An optional parameter for the corresponding 
15562 \begin_inset Flex Code
15563 status collapsed
15564
15565 \begin_layout Plain Layout
15566 LatexName
15567 \end_layout
15568
15569 \end_inset
15570
15571  stuff.
15572  This parameter cannot be changed from within \SpecialChar LyX
15573  (use 
15574 \begin_inset Flex Code
15575 status collapsed
15576
15577 \begin_layout Plain Layout
15578 Argument
15579 \end_layout
15580
15581 \end_inset
15582
15583  for customizable parameters).
15584  This will be output as is after all \SpecialChar LaTeX
15585  
15586 \begin_inset Flex Code
15587 status collapsed
15588
15589 \begin_layout Plain Layout
15590 Argument
15591 \end_layout
15592
15593 \end_inset
15594
15595 s.
15596 \end_layout
15597
15598 \begin_layout Description
15599 \begin_inset Flex Code
15600 status collapsed
15601
15602 \begin_layout Plain Layout
15603 LatexType
15604 \end_layout
15605
15606 \end_inset
15607
15608  [
15609 \begin_inset Flex Code
15610 status collapsed
15611
15612 \begin_layout Plain Layout
15613
15614 \emph on
15615 Paragraph
15616 \emph default
15617 , Command, Environment, Item_Environment,
15618 \begin_inset Newline newline
15619 \end_inset
15620
15621 List_Environment, Bib_Environment
15622 \end_layout
15623
15624 \end_inset
15625
15626 ] How the style should be translated into \SpecialChar LaTeX
15627 .
15628 \begin_inset Foot
15629 status collapsed
15630
15631 \begin_layout Plain Layout
15632 \begin_inset Flex Code
15633 status collapsed
15634
15635 \begin_layout Plain Layout
15636 LatexType
15637 \end_layout
15638
15639 \end_inset
15640
15641  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15642  Visit the SGML class files for specific examples.
15643 \end_layout
15644
15645 \end_inset
15646
15647
15648 \end_layout
15649
15650 \begin_deeper
15651 \begin_layout Description
15652 \begin_inset Flex Code
15653 status collapsed
15654
15655 \begin_layout Plain Layout
15656 Paragraph
15657 \end_layout
15658
15659 \end_inset
15660
15661  means nothing special.
15662 \end_layout
15663
15664 \begin_layout Description
15665 \begin_inset Flex Code
15666 status collapsed
15667
15668 \begin_layout Plain Layout
15669 Command
15670 \end_layout
15671
15672 \end_inset
15673
15674  means 
15675 \begin_inset Flex Code
15676 status collapsed
15677
15678 \begin_layout Plain Layout
15679
15680 \backslash
15681
15682 \emph on
15683 LatexName
15684 \emph default
15685 {\SpecialChar ldots
15686 }
15687 \end_layout
15688
15689 \end_inset
15690
15691 .
15692 \end_layout
15693
15694 \begin_layout Description
15695 \begin_inset Flex Code
15696 status collapsed
15697
15698 \begin_layout Plain Layout
15699 Environment
15700 \end_layout
15701
15702 \end_inset
15703
15704  means 
15705 \begin_inset Flex Code
15706 status collapsed
15707
15708 \begin_layout Plain Layout
15709
15710 \backslash
15711 begin{
15712 \emph on
15713 LatexName
15714 \emph default
15715 }\SpecialChar ldots
15716
15717 \backslash
15718 end{
15719 \emph on
15720 LatexName
15721 \emph default
15722 }
15723 \end_layout
15724
15725 \end_inset
15726
15727 .
15728  
15729 \end_layout
15730
15731 \begin_layout Description
15732 \begin_inset Flex Code
15733 status collapsed
15734
15735 \begin_layout Plain Layout
15736 Item_Environment
15737 \end_layout
15738
15739 \end_inset
15740
15741  is the same as 
15742 \begin_inset Flex Code
15743 status collapsed
15744
15745 \begin_layout Plain Layout
15746 Environment
15747 \end_layout
15748
15749 \end_inset
15750
15751 , except that an 
15752 \begin_inset Flex Code
15753 status collapsed
15754
15755 \begin_layout Plain Layout
15756
15757 \backslash
15758 item
15759 \end_layout
15760
15761 \end_inset
15762
15763  is generated for each paragraph of this environment.
15764  
15765 \end_layout
15766
15767 \begin_layout Description
15768 \begin_inset Flex Code
15769 status collapsed
15770
15771 \begin_layout Plain Layout
15772 List_Environment
15773 \end_layout
15774
15775 \end_inset
15776
15777  is the same as 
15778 \begin_inset Flex Code
15779 status collapsed
15780
15781 \begin_layout Plain Layout
15782 Item_Environment
15783 \end_layout
15784
15785 \end_inset
15786
15787 , except that
15788 \begin_inset Newline newline
15789 \end_inset
15790
15791
15792 \begin_inset Flex Code
15793 status collapsed
15794
15795 \begin_layout Plain Layout
15796 LabelWidthString
15797 \end_layout
15798
15799 \end_inset
15800
15801  is passed as an argument to the environment.
15802 \begin_inset Newline newline
15803 \end_inset
15804
15805
15806 \begin_inset Flex Code
15807 status collapsed
15808
15809 \begin_layout Plain Layout
15810 LabelWidthString
15811 \end_layout
15812
15813 \end_inset
15814
15815  can be defined in the 
15816 \begin_inset Flex Noun
15817 status collapsed
15818
15819 \begin_layout Plain Layout
15820 Edit\SpecialChar menuseparator
15821 Paragraph
15822 \begin_inset space ~
15823 \end_inset
15824
15825 settings
15826 \end_layout
15827
15828 \end_inset
15829
15830  dialog.
15831 \end_layout
15832
15833 \begin_layout Description
15834 \begin_inset Flex Code
15835 status collapsed
15836
15837 \begin_layout Plain Layout
15838 Bib_Environment
15839 \end_layout
15840
15841 \end_inset
15842
15843  is like 
15844 \begin_inset Flex Code
15845 status collapsed
15846
15847 \begin_layout Plain Layout
15848 Environment
15849 \end_layout
15850
15851 \end_inset
15852
15853  but adds the necessary mandatory argument (the longest label) to the begin
15854  statement of the bibliography environment:
15855 \begin_inset Newline newline
15856 \end_inset
15857
15858
15859 \begin_inset Flex Code
15860 status collapsed
15861
15862 \begin_layout Plain Layout
15863
15864 \backslash
15865 begin{thebibliography}{99}
15866 \end_layout
15867
15868 \end_inset
15869
15870 .
15871  It is therefore only useful for bibliography environments.
15872  The default longest label 
15873 \begin_inset Quotes eld
15874 \end_inset
15875
15876 99
15877 \begin_inset Quotes erd
15878 \end_inset
15879
15880  can be changed by the user in the paragraph settings of a bibliography
15881  item.
15882 \end_layout
15883
15884 \begin_layout Standard
15885 Putting the last few things together, the \SpecialChar LaTeX
15886  output will be either: 
15887 \end_layout
15888
15889 \begin_layout LyX-Code
15890
15891 \backslash
15892 LatexName[LatexParam]{\SpecialChar ldots
15893 }
15894 \end_layout
15895
15896 \begin_layout Standard
15897 or: 
15898 \end_layout
15899
15900 \begin_layout LyX-Code
15901
15902 \backslash
15903 begin{LatexName}[LatexParam] \SpecialChar ldots
15904  
15905 \backslash
15906 end{LatexName}.
15907 \end_layout
15908
15909 \begin_layout Standard
15910 depending upon the \SpecialChar LaTeX
15911  type.
15912 \end_layout
15913
15914 \end_deeper
15915 \begin_layout Description
15916 \begin_inset Flex Code
15917 status collapsed
15918
15919 \begin_layout Plain Layout
15920 LeftDelim
15921 \end_layout
15922
15923 \end_inset
15924
15925  [
15926 \begin_inset Flex Code
15927 status collapsed
15928
15929 \begin_layout Plain Layout
15930 string
15931 \end_layout
15932
15933 \end_inset
15934
15935 ] A string that is put at the beginning of the style content.
15936  A line break in the output can be indicated by 
15937 \begin_inset Flex Code
15938 status collapsed
15939
15940 \begin_layout Plain Layout
15941 <br/>
15942 \end_layout
15943
15944 \end_inset
15945
15946 .
15947 \end_layout
15948
15949 \begin_layout Description
15950 \begin_inset Flex Code
15951 status collapsed
15952
15953 \begin_layout Plain Layout
15954 LeftMargin
15955 \end_layout
15956
15957 \end_inset
15958
15959  [
15960 \begin_inset Flex Code
15961 status collapsed
15962
15963 \begin_layout Plain Layout
15964 string=""
15965 \end_layout
15966
15967 \end_inset
15968
15969 ] If you put styles into environments, the different 
15970 \begin_inset Flex Code
15971 status collapsed
15972
15973 \begin_layout Plain Layout
15974 LeftMargin
15975 \end_layout
15976
15977 \end_inset
15978
15979  are not simply added, but added with a factor 
15980 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15981 \end_inset
15982
15983 .
15984  Note that this parameter is also used when 
15985 \begin_inset Flex Code
15986 status collapsed
15987
15988 \begin_layout Plain Layout
15989 Margin
15990 \end_layout
15991
15992 \end_inset
15993
15994  is defined as 
15995 \begin_inset Flex Code
15996 status collapsed
15997
15998 \begin_layout Plain Layout
15999 Manual
16000 \end_layout
16001
16002 \end_inset
16003
16004  or 
16005 \begin_inset Flex Code
16006 status collapsed
16007
16008 \begin_layout Plain Layout
16009 Dynamic
16010 \end_layout
16011
16012 \end_inset
16013
16014 .
16015  Then it is added to the manual or dynamic margin.
16016 \begin_inset Newline newline
16017 \end_inset
16018
16019 For example 
16020 \begin_inset Quotes eld
16021 \end_inset
16022
16023
16024 \begin_inset Flex Code
16025 status collapsed
16026
16027 \begin_layout Plain Layout
16028 MM
16029 \end_layout
16030
16031 \end_inset
16032
16033
16034 \begin_inset Quotes erd
16035 \end_inset
16036
16037  means that the paragraph is indented with the width of 
16038 \begin_inset Quotes eld
16039 \end_inset
16040
16041
16042 \begin_inset Flex Code
16043 status collapsed
16044
16045 \begin_layout Plain Layout
16046 MM
16047 \end_layout
16048
16049 \end_inset
16050
16051
16052 \begin_inset Quotes erd
16053 \end_inset
16054
16055  in the normal font.
16056  You can get a negative width by prefixing the string with 
16057 \begin_inset Quotes eld
16058 \end_inset
16059
16060
16061 \begin_inset Flex Code
16062 status collapsed
16063
16064 \begin_layout Plain Layout
16065 -
16066 \end_layout
16067
16068 \end_inset
16069
16070
16071 \begin_inset Quotes erd
16072 \end_inset
16073
16074 .
16075  This way was chosen so that the look is the same with each used screen
16076  font.
16077 \end_layout
16078
16079 \begin_layout Description
16080 \begin_inset Flex Code
16081 status collapsed
16082
16083 \begin_layout Plain Layout
16084 Margin
16085 \end_layout
16086
16087 \end_inset
16088
16089  [
16090 \begin_inset Flex Code
16091 status collapsed
16092
16093 \begin_layout Plain Layout
16094
16095 \emph on
16096 Static
16097 \emph default
16098 , Manual, Dynamic, First_Dynamic, Right_Address_Box
16099 \end_layout
16100
16101 \end_inset
16102
16103
16104 \begin_inset Newline newline
16105 \end_inset
16106
16107 The kind of margin that the style has on the left side.
16108 \end_layout
16109
16110 \begin_deeper
16111 \begin_layout Description
16112 \begin_inset Flex Code
16113 status collapsed
16114
16115 \begin_layout Plain Layout
16116 Static
16117 \end_layout
16118
16119 \end_inset
16120
16121  just means a fixed margin.
16122 \end_layout
16123
16124 \begin_layout Description
16125 \begin_inset Flex Code
16126 status collapsed
16127
16128 \begin_layout Plain Layout
16129 Manual
16130 \end_layout
16131
16132 \end_inset
16133
16134  means that the left margin depends on the string entered in the 
16135 \begin_inset Flex Noun
16136 status collapsed
16137
16138 \begin_layout Plain Layout
16139 Edit\SpecialChar menuseparator
16140 Paragraph
16141 \begin_inset space ~
16142 \end_inset
16143
16144 Settings
16145 \end_layout
16146
16147 \end_inset
16148
16149  dialog.
16150  This is used to typeset nice lists without tabulators.
16151 \end_layout
16152
16153 \begin_layout Description
16154 \begin_inset Flex Code
16155 status collapsed
16156
16157 \begin_layout Plain Layout
16158 Dynamic
16159 \end_layout
16160
16161 \end_inset
16162
16163  means that the margin depends on the size of the label.
16164  This is used for automatic enumerated headlines.
16165  It is obvious that the headline 
16166 \begin_inset Quotes eld
16167 \end_inset
16168
16169 5.4.3.2.1 Very long headline
16170 \begin_inset Quotes erd
16171 \end_inset
16172
16173  must have a wider left margin (as wide as 
16174 \begin_inset Quotes eld
16175 \end_inset
16176
16177 5.4.3.2.1
16178 \begin_inset Quotes erd
16179 \end_inset
16180
16181  plus the space) than 
16182 \begin_inset Quotes eld
16183 \end_inset
16184
16185 3.2 Very long headline
16186 \begin_inset Quotes erd
16187 \end_inset
16188
16189 , even if standard 
16190 \begin_inset Quotes eld
16191 \end_inset
16192
16193 word processors
16194 \begin_inset Quotes erd
16195 \end_inset
16196
16197  are not able to do this.
16198 \end_layout
16199
16200 \begin_layout Description
16201 \begin_inset Flex Code
16202 status collapsed
16203
16204 \begin_layout Plain Layout
16205 First_Dynamic
16206 \end_layout
16207
16208 \end_inset
16209
16210  is similar, but only the very first row of the paragraph is dynamic, while
16211  the others are static; this is used, for example, for descriptions.
16212 \end_layout
16213
16214 \begin_layout Description
16215 \begin_inset Flex Code
16216 status collapsed
16217
16218 \begin_layout Plain Layout
16219 Right_Address_Box
16220 \end_layout
16221
16222 \end_inset
16223
16224  means the margin is chosen in a way that the longest row of this paragraph
16225  fits to the right margin.
16226  This is used to typeset an address on the right edge of the page.
16227 \end_layout
16228
16229 \end_deeper
16230 \begin_layout Description
16231 \begin_inset Flex Code
16232 status collapsed
16233
16234 \begin_layout Plain Layout
16235 NeedProtect
16236 \end_layout
16237
16238 \end_inset
16239
16240  [
16241 \begin_inset Flex Code
16242 status collapsed
16243
16244 \begin_layout Plain Layout
16245
16246 \emph on
16247 0
16248 \end_layout
16249
16250 \end_inset
16251
16252 ,
16253 \begin_inset space \thinspace{}
16254 \end_inset
16255
16256
16257 \begin_inset Flex Code
16258 status collapsed
16259
16260 \begin_layout Plain Layout
16261 1
16262 \end_layout
16263
16264 \end_inset
16265
16266 ] Whether fragile commands in this style should be 
16267 \begin_inset Flex Code
16268 status collapsed
16269
16270 \begin_layout Plain Layout
16271
16272 \backslash
16273 protect
16274 \end_layout
16275
16276 \end_inset
16277
16278 'ed.
16279  (Note: This is 
16280 \emph on
16281 not
16282 \emph default
16283  whether this command should itself be protected.)
16284 \change_inserted -712698321 1523696949
16285
16286 \end_layout
16287
16288 \begin_layout Description
16289
16290 \change_inserted -712698321 1552395557
16291 \begin_inset Flex Code
16292 status collapsed
16293
16294 \begin_layout Plain Layout
16295
16296 \change_inserted -712698321 1523696950
16297 NeedCProtect
16298 \change_unchanged
16299
16300 \end_layout
16301
16302 \end_inset
16303
16304  [
16305 \begin_inset Flex Code
16306 status collapsed
16307
16308 \begin_layout Plain Layout
16309
16310 \change_inserted -712698321 1523696950
16311
16312 \emph on
16313 0
16314 \change_unchanged
16315
16316 \end_layout
16317
16318 \end_inset
16319
16320 ,
16321 \begin_inset space \thinspace{}
16322 \end_inset
16323
16324
16325 \begin_inset Flex Code
16326 status collapsed
16327
16328 \begin_layout Plain Layout
16329
16330 \change_inserted -712698321 1523696950
16331 1
16332 \change_unchanged
16333
16334 \end_layout
16335
16336 \end_inset
16337
16338 ] This causes macros that contain this layout to be protected with 
16339 \begin_inset Flex Code
16340 status collapsed
16341
16342 \begin_layout Plain Layout
16343
16344 \change_inserted -712698321 1523696950
16345
16346 \backslash
16347 cprotect
16348 \change_unchanged
16349
16350 \end_layout
16351
16352 \end_inset
16353
16354  (cf.
16355  package 
16356 \family sans
16357 cprotect
16358 \family default
16359 ) if necessary and thus allows (some) verbatim stuff in macros.
16360 \end_layout
16361
16362 \begin_layout Description
16363
16364 \change_inserted -712698321 1552395844
16365 \begin_inset Flex Code
16366 status collapsed
16367
16368 \begin_layout Plain Layout
16369
16370 \change_inserted -712698321 1552395561
16371 NeedMBoxProtect
16372 \change_unchanged
16373
16374 \end_layout
16375
16376 \end_inset
16377
16378  [
16379 \begin_inset Flex Code
16380 status collapsed
16381
16382 \begin_layout Plain Layout
16383
16384 \change_inserted -712698321 1552395557
16385
16386 \emph on
16387 0
16388 \change_unchanged
16389
16390 \end_layout
16391
16392 \end_inset
16393
16394 ,
16395 \begin_inset space \thinspace{}
16396 \end_inset
16397
16398
16399 \begin_inset Flex Code
16400 status collapsed
16401
16402 \begin_layout Plain Layout
16403
16404 \change_inserted -712698321 1552395557
16405 1
16406 \change_unchanged
16407
16408 \end_layout
16409
16410 \end_inset
16411
16412 ] Whether specific commands in this style (such as 
16413 \begin_inset Flex Code
16414 status collapsed
16415
16416 \begin_layout Plain Layout
16417
16418 \change_inserted -712698321 1552395655
16419
16420 \backslash
16421 cite
16422 \change_unchanged
16423
16424 \end_layout
16425
16426 \end_inset
16427
16428  and 
16429 \begin_inset Flex Code
16430 status collapsed
16431
16432 \begin_layout Plain Layout
16433
16434 \change_inserted -712698321 1552395661
16435
16436 \backslash
16437 ref
16438 \change_unchanged
16439
16440 \end_layout
16441
16442 \end_inset
16443
16444 ) should be protected in an 
16445 \begin_inset Flex Code
16446 status collapsed
16447
16448 \begin_layout Plain Layout
16449
16450 \change_inserted -712698321 1552395631
16451
16452 \backslash
16453 mbox
16454 \change_unchanged
16455
16456 \end_layout
16457
16458 \end_inset
16459
16460 .
16461  This is particularly needed for styles that draw on 
16462 \family sans
16463 ulem
16464 \family default
16465  or 
16466 \family sans
16467 soul
16468 \family default
16469  commands which parse their content in complex ways.
16470 \change_unchanged
16471
16472 \end_layout
16473
16474 \begin_layout Description
16475 \begin_inset Flex Code
16476 status collapsed
16477
16478 \begin_layout Plain Layout
16479 Newline
16480 \end_layout
16481
16482 \end_inset
16483
16484  [
16485 \begin_inset Flex Code
16486 status collapsed
16487
16488 \begin_layout Plain Layout
16489 0
16490 \end_layout
16491
16492 \end_inset
16493
16494 ,
16495 \begin_inset space \thinspace{}
16496 \end_inset
16497
16498
16499 \begin_inset Flex Code
16500 status collapsed
16501
16502 \begin_layout Plain Layout
16503
16504 \emph on
16505 1
16506 \end_layout
16507
16508 \end_inset
16509
16510 ] Whether newlines are translated into \SpecialChar LaTeX
16511  newlines (
16512 \begin_inset Flex Code
16513 status collapsed
16514
16515 \begin_layout Plain Layout
16516
16517 \backslash
16518
16519 \backslash
16520
16521 \end_layout
16522
16523 \end_inset
16524
16525 ) or not.
16526  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16527  editing
16528  inside \SpecialChar LyX
16529 .
16530 \end_layout
16531
16532 \begin_layout Description
16533 \begin_inset Flex Code
16534 status collapsed
16535
16536 \begin_layout Plain Layout
16537 NextNoIndent
16538 \end_layout
16539
16540 \end_inset
16541
16542  [
16543 \begin_inset Flex Code
16544 status collapsed
16545
16546 \begin_layout Plain Layout
16547
16548 \emph on
16549 0
16550 \end_layout
16551
16552 \end_inset
16553
16554 ,
16555 \begin_inset space \thinspace{}
16556 \end_inset
16557
16558
16559 \begin_inset Flex Code
16560 status collapsed
16561
16562 \begin_layout Plain Layout
16563 1
16564 \end_layout
16565
16566 \end_inset
16567
16568 ] If set to true, and if 
16569 \begin_inset Flex Code
16570 status collapsed
16571
16572 \begin_layout Plain Layout
16573 DefaultStyle
16574 \end_layout
16575
16576 \end_inset
16577
16578  (usually 
16579 \begin_inset Flex Code
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583 Standard
16584 \end_layout
16585
16586 \end_inset
16587
16588 ) paragraphs are being indented, then the indentation of such a paragraph
16589  following one of this type will be suppressed.
16590  (So this will not affect the display of non-default paragraphs.)
16591 \end_layout
16592
16593 \begin_layout Description
16594 \begin_inset Flex Code
16595 status collapsed
16596
16597 \begin_layout Plain Layout
16598 ObsoletedBy
16599 \end_layout
16600
16601 \end_inset
16602
16603  [
16604 \begin_inset Flex Code
16605 status collapsed
16606
16607 \begin_layout Plain Layout
16608 <name>
16609 \end_layout
16610
16611 \end_inset
16612
16613 ] Name of a style that has replaced this style.
16614  This is used to rename a style, while keeping backward compatibility.
16615 \end_layout
16616
16617 \begin_layout Description
16618 \begin_inset Flex Code
16619 status collapsed
16620
16621 \begin_layout Plain Layout
16622 ParagraphGroup
16623 \end_layout
16624
16625 \end_inset
16626
16627  [
16628 \begin_inset Flex Code
16629 status collapsed
16630
16631 \begin_layout Plain Layout
16632 0
16633 \end_layout
16634
16635 \end_inset
16636
16637 ,
16638 \begin_inset space \thinspace{}
16639 \end_inset
16640
16641
16642 \begin_inset Flex Code
16643 status collapsed
16644
16645 \begin_layout Plain Layout
16646 1
16647 \end_layout
16648
16649 \end_inset
16650
16651 ] Determines whether consecutive paragraphs of the same type are treated
16652  as belonging together.
16653  This has the effect that the 
16654 \begin_inset Flex Code
16655 status collapsed
16656
16657 \begin_layout Plain Layout
16658 GuiLabel
16659 \end_layout
16660
16661 \end_inset
16662
16663  is only printed once before such a group.
16664  By default, this is true for 
16665 \begin_inset Flex Code
16666 status collapsed
16667
16668 \begin_layout Plain Layout
16669 LaTeXType
16670 \end_layout
16671
16672 \end_inset
16673
16674  
16675 \begin_inset Flex Code
16676 status collapsed
16677
16678 \begin_layout Plain Layout
16679 Environment
16680 \end_layout
16681
16682 \end_inset
16683
16684  and 
16685 \begin_inset Flex Code
16686 status collapsed
16687
16688 \begin_layout Plain Layout
16689 Bib_Environment
16690 \end_layout
16691
16692 \end_inset
16693
16694  and false for all other types.
16695 \end_layout
16696
16697 \begin_layout Description
16698 \begin_inset Flex Code
16699 status collapsed
16700
16701 \begin_layout Plain Layout
16702 ParbreakIsNewline
16703 \end_layout
16704
16705 \end_inset
16706
16707  [
16708 \begin_inset Flex Code
16709 status collapsed
16710
16711 \begin_layout Plain Layout
16712
16713 \emph on
16714 0
16715 \end_layout
16716
16717 \end_inset
16718
16719 ,
16720 \begin_inset space \thinspace{}
16721 \end_inset
16722
16723
16724 \begin_inset Flex Code
16725 status collapsed
16726
16727 \begin_layout Plain Layout
16728 1
16729 \end_layout
16730
16731 \end_inset
16732
16733 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16734  output,
16735  but only by a line break; together with 
16736 \begin_inset Flex Code
16737 status collapsed
16738
16739 \begin_layout Plain Layout
16740 PassThru 1
16741 \end_layout
16742
16743 \end_inset
16744
16745 , this allows to emulate a plain text editor (like the ERT inset).
16746 \end_layout
16747
16748 \begin_layout Description
16749 \begin_inset Flex Code
16750 status collapsed
16751
16752 \begin_layout Plain Layout
16753 ParIndent
16754 \end_layout
16755
16756 \end_inset
16757
16758  [
16759 \begin_inset Flex Code
16760 status collapsed
16761
16762 \begin_layout Plain Layout
16763 string=""
16764 \end_layout
16765
16766 \end_inset
16767
16768 ] The indent of the very first line of a paragraph.
16769  The
16770 \begin_inset Newline newline
16771 \end_inset
16772
16773
16774 \begin_inset Flex Code
16775 status collapsed
16776
16777 \begin_layout Plain Layout
16778 Parindent
16779 \end_layout
16780
16781 \end_inset
16782
16783  will be fixed for a certain style.
16784  The exception is the default style, since the indentation for these paragraphs
16785  can be prohibited with 
16786 \begin_inset Flex Code
16787 status collapsed
16788
16789 \begin_layout Plain Layout
16790 NextNoIndent
16791 \end_layout
16792
16793 \end_inset
16794
16795 .
16796  Also, 
16797 \begin_inset Flex Code
16798 status collapsed
16799
16800 \begin_layout Plain Layout
16801 Standard
16802 \end_layout
16803
16804 \end_inset
16805
16806  style paragraphs inside environments use the 
16807 \begin_inset Flex Code
16808 status collapsed
16809
16810 \begin_layout Plain Layout
16811 Parindent
16812 \end_layout
16813
16814 \end_inset
16815
16816  of the environment, not their native one.
16817  For example, 
16818 \begin_inset Flex Code
16819 status collapsed
16820
16821 \begin_layout Plain Layout
16822 Standard
16823 \end_layout
16824
16825 \end_inset
16826
16827  paragraphs inside an enumeration are not indented.
16828 \end_layout
16829
16830 \begin_layout Description
16831 \begin_inset Flex Code
16832 status collapsed
16833
16834 \begin_layout Plain Layout
16835 ParSep
16836 \end_layout
16837
16838 \end_inset
16839
16840  [
16841 \begin_inset Flex Code
16842 status collapsed
16843
16844 \begin_layout Plain Layout
16845 float=0
16846 \end_layout
16847
16848 \end_inset
16849
16850 ] The vertical space between two paragraphs of this style.
16851 \end_layout
16852
16853 \begin_layout Description
16854 \begin_inset Flex Code
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858 Parskip
16859 \end_layout
16860
16861 \end_inset
16862
16863  [
16864 \begin_inset Flex Code
16865 status collapsed
16866
16867 \begin_layout Plain Layout
16868 float=0
16869 \end_layout
16870
16871 \end_inset
16872
16873 ] \SpecialChar LyX
16874  allows the user to choose either 
16875 \begin_inset Quotes eld
16876 \end_inset
16877
16878 indent
16879 \begin_inset Quotes erd
16880 \end_inset
16881
16882  or 
16883 \begin_inset Quotes eld
16884 \end_inset
16885
16886 skip
16887 \begin_inset Quotes erd
16888 \end_inset
16889
16890  to separate paragraphs.
16891  When 
16892 \begin_inset Quotes eld
16893 \end_inset
16894
16895 indent
16896 \begin_inset Quotes erd
16897 \end_inset
16898
16899  is chosen, 
16900 \begin_inset Flex Code
16901 status collapsed
16902
16903 \begin_layout Plain Layout
16904 Parskip
16905 \end_layout
16906
16907 \end_inset
16908
16909  is ignored.
16910  When 
16911 \begin_inset Quotes eld
16912 \end_inset
16913
16914 skip
16915 \begin_inset Quotes erd
16916 \end_inset
16917
16918  is chosen, 
16919 \begin_inset Flex Code
16920 status collapsed
16921
16922 \begin_layout Plain Layout
16923 ParIndent
16924 \end_layout
16925
16926 \end_inset
16927
16928  is ignored and all paragraphs are separated by the 
16929 \begin_inset Flex Code
16930 status collapsed
16931
16932 \begin_layout Plain Layout
16933 Parskip
16934 \end_layout
16935
16936 \end_inset
16937
16938  argument.
16939  The vertical space is calculated with 
16940 \begin_inset Flex Code
16941 status collapsed
16942
16943 \begin_layout Plain Layout
16944 Parskip
16945 \begin_inset space ~
16946 \end_inset
16947
16948 * DefaultHeight
16949 \end_layout
16950
16951 \end_inset
16952
16953  where 
16954 \begin_inset Flex Code
16955 status collapsed
16956
16957 \begin_layout Plain Layout
16958 DefaultHeight
16959 \end_layout
16960
16961 \end_inset
16962
16963  is the height of a row with the normal font.
16964  This way, the look stays the same with different screen fonts.
16965 \end_layout
16966
16967 \begin_layout Description
16968 \begin_inset Flex Code
16969 status collapsed
16970
16971 \begin_layout Plain Layout
16972 PassThru
16973 \end_layout
16974
16975 \end_inset
16976
16977  [
16978 \begin_inset Flex Code
16979 status collapsed
16980
16981 \begin_layout Plain Layout
16982
16983 \emph on
16984 0
16985 \end_layout
16986
16987 \end_inset
16988
16989 ,
16990 \begin_inset space \thinspace{}
16991 \end_inset
16992
16993
16994 \begin_inset Flex Code
16995 status collapsed
16996
16997 \begin_layout Plain Layout
16998 1
16999 \end_layout
17000
17001 \end_inset
17002
17003 ] Whether the contents of this paragraph should be output in raw form, meaning
17004  without special translations that \SpecialChar LaTeX
17005  would require.
17006 \end_layout
17007
17008 \begin_layout Description
17009 \begin_inset Flex Code
17010 status collapsed
17011
17012 \begin_layout Plain Layout
17013 PassThruChars
17014 \end_layout
17015
17016 \end_inset
17017
17018  [
17019 \begin_inset Flex Code
17020 status collapsed
17021
17022 \begin_layout Plain Layout
17023 string
17024 \end_layout
17025
17026 \end_inset
17027
17028 ]
17029 \family typewriter
17030  
17031 \family default
17032 Defines individual characters that should be output in raw form, meaning
17033  without special translations that \SpecialChar LaTeX
17034  would require.
17035 \end_layout
17036
17037 \begin_layout Description
17038 \begin_inset Flex Code
17039 status collapsed
17040
17041 \begin_layout Plain Layout
17042 Preamble
17043 \end_layout
17044
17045 \end_inset
17046
17047  Information to be included in the \SpecialChar LaTeX
17048  preamble when this style is used.
17049  Used to define macros, load packages, etc., required by this particular
17050  style.
17051  Must end with 
17052 \begin_inset Quotes eld
17053 \end_inset
17054
17055
17056 \begin_inset Flex Code
17057 status collapsed
17058
17059 \begin_layout Plain Layout
17060 EndPreamble
17061 \end_layout
17062
17063 \end_inset
17064
17065
17066 \begin_inset Quotes erd
17067 \end_inset
17068
17069 .
17070 \end_layout
17071
17072 \begin_layout Description
17073 \begin_inset Flex Code
17074 status collapsed
17075
17076 \begin_layout Plain Layout
17077 RefPrefix
17078 \end_layout
17079
17080 \end_inset
17081
17082  [
17083 \begin_inset Flex Code
17084 status collapsed
17085
17086 \begin_layout Plain Layout
17087 string
17088 \end_layout
17089
17090 \end_inset
17091
17092 ] The prefix to use when creating labels referring to paragraphs of this
17093  type.
17094  This allows the use of formatted references.
17095 \end_layout
17096
17097 \begin_layout Description
17098 \begin_inset Flex Code
17099 status collapsed
17100
17101 \begin_layout Plain Layout
17102 Requires 
17103 \end_layout
17104
17105 \end_inset
17106
17107  [
17108 \begin_inset Flex Code
17109 status collapsed
17110
17111 \begin_layout Plain Layout
17112 string
17113 \end_layout
17114
17115 \end_inset
17116
17117 ] Whether the style requires the feature 
17118 \begin_inset Flex Code
17119 status collapsed
17120
17121 \begin_layout Plain Layout
17122 string
17123 \end_layout
17124
17125 \end_inset
17126
17127  (see 
17128 \begin_inset CommandInset ref
17129 LatexCommand ref
17130 reference "chap:List-of-functions"
17131
17132 \end_inset
17133
17134  for the list of features).
17135  If you require a package with specific options, you can additionally use
17136  
17137 \begin_inset Flex Code
17138 status collapsed
17139
17140 \begin_layout Plain Layout
17141 PackageOptions
17142 \end_layout
17143
17144 \end_inset
17145
17146  as a general text class parameter (see 
17147 \begin_inset CommandInset ref
17148 LatexCommand ref
17149 reference "subsec:General-text-class"
17150
17151 \end_inset
17152
17153 ).
17154 \end_layout
17155
17156 \begin_layout Description
17157 \begin_inset Flex Code
17158 status collapsed
17159
17160 \begin_layout Plain Layout
17161 ResetArgs
17162 \end_layout
17163
17164 \end_inset
17165
17166  [
17167 \begin_inset Flex Code
17168 status collapsed
17169
17170 \begin_layout Plain Layout
17171
17172 \emph on
17173 0
17174 \end_layout
17175
17176 \end_inset
17177
17178 ,
17179 \begin_inset Flex Code
17180 status collapsed
17181
17182 \begin_layout Plain Layout
17183 1
17184 \end_layout
17185
17186 \end_inset
17187
17188 ] Resets the \SpecialChar LaTeX
17189  arguments of this style (as defined via the 
17190 \begin_inset Flex Code
17191 status collapsed
17192
17193 \begin_layout Plain Layout
17194 Argument
17195 \end_layout
17196
17197 \end_inset
17198
17199  tag).
17200  This is useful if you have copied a style via 
17201 \begin_inset Flex Code
17202 status collapsed
17203
17204 \begin_layout Plain Layout
17205 CopyStyle
17206 \end_layout
17207
17208 \end_inset
17209
17210 , but you do not want to inherit its (required and optional) arguments.
17211 \end_layout
17212
17213 \begin_layout Description
17214 \begin_inset Flex Code
17215 status collapsed
17216
17217 \begin_layout Plain Layout
17218 ResumeCounter
17219 \end_layout
17220
17221 \end_inset
17222
17223  [
17224 \begin_inset Flex Code
17225 status collapsed
17226
17227 \begin_layout Plain Layout
17228
17229 \emph on
17230 0
17231 \end_layout
17232
17233 \end_inset
17234
17235 ,
17236 \begin_inset Flex Code
17237 status collapsed
17238
17239 \begin_layout Plain Layout
17240 1
17241 \end_layout
17242
17243 \end_inset
17244
17245 ] Resumes a counter that is usually reset at each new sequence of layouts.
17246  This is currently only useful when 
17247 \begin_inset Flex Code
17248 status collapsed
17249
17250 \begin_layout Plain Layout
17251 LabelType
17252 \end_layout
17253
17254 \end_inset
17255
17256  is 
17257 \begin_inset Flex Code
17258 status collapsed
17259
17260 \begin_layout Plain Layout
17261 Enumerate
17262 \end_layout
17263
17264 \end_inset
17265
17266 .
17267 \end_layout
17268
17269 \begin_layout Description
17270 \begin_inset Flex Code
17271 status collapsed
17272
17273 \begin_layout Plain Layout
17274 RightDelim
17275 \end_layout
17276
17277 \end_inset
17278
17279  [
17280 \begin_inset Flex Code
17281 status collapsed
17282
17283 \begin_layout Plain Layout
17284 string
17285 \end_layout
17286
17287 \end_inset
17288
17289 ] A string that is put at the end of the layout content.
17290  A line break in the output can be indicated by 
17291 \begin_inset Flex Code
17292 status collapsed
17293
17294 \begin_layout Plain Layout
17295 <br/>
17296 \end_layout
17297
17298 \end_inset
17299
17300 .
17301 \end_layout
17302
17303 \begin_layout Description
17304 \begin_inset Flex Code
17305 status collapsed
17306
17307 \begin_layout Plain Layout
17308 RightMargin
17309 \end_layout
17310
17311 \end_inset
17312
17313  [
17314 \begin_inset Flex Code
17315 status collapsed
17316
17317 \begin_layout Plain Layout
17318 string=""
17319 \end_layout
17320
17321 \end_inset
17322
17323 ] Similar to 
17324 \begin_inset Flex Code
17325 status collapsed
17326
17327 \begin_layout Plain Layout
17328 LeftMargin
17329 \end_layout
17330
17331 \end_inset
17332
17333 .
17334 \end_layout
17335
17336 \begin_layout Description
17337 \begin_inset Flex Code
17338 status collapsed
17339
17340 \begin_layout Plain Layout
17341 Spacing
17342 \end_layout
17343
17344 \end_inset
17345
17346  [
17347 \begin_inset Flex Code
17348 status collapsed
17349
17350 \begin_layout Plain Layout
17351
17352 \emph on
17353 single
17354 \end_layout
17355
17356 \end_inset
17357
17358
17359 \begin_inset Flex Code
17360 status collapsed
17361
17362 \begin_layout Plain Layout
17363 onehalf
17364 \end_layout
17365
17366 \end_inset
17367
17368
17369 \begin_inset Flex Code
17370 status collapsed
17371
17372 \begin_layout Plain Layout
17373 double
17374 \end_layout
17375
17376 \end_inset
17377
17378
17379 \begin_inset Flex Code
17380 status collapsed
17381
17382 \begin_layout Plain Layout
17383 other
17384 \begin_inset space ~
17385 \end_inset
17386
17387 <value>
17388 \end_layout
17389
17390 \end_inset
17391
17392 ] This defines what the default spacing should be in the style.
17393  The arguments 
17394 \begin_inset Flex Code
17395 status collapsed
17396
17397 \begin_layout Plain Layout
17398 single
17399 \end_layout
17400
17401 \end_inset
17402
17403
17404 \begin_inset Flex Code
17405 status collapsed
17406
17407 \begin_layout Plain Layout
17408 onehalf
17409 \end_layout
17410
17411 \end_inset
17412
17413  and 
17414 \begin_inset Flex Code
17415 status collapsed
17416
17417 \begin_layout Plain Layout
17418 double
17419 \end_layout
17420
17421 \end_inset
17422
17423  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17424  If you specify the argument 
17425 \begin_inset Flex Code
17426 status collapsed
17427
17428 \begin_layout Plain Layout
17429 other
17430 \end_layout
17431
17432 \end_inset
17433
17434 , then you must also provide a value argument which will be the actual multiplie
17435 r value.
17436  Note that, contrary to other parameters, 
17437 \begin_inset Flex Code
17438 status collapsed
17439
17440 \begin_layout Plain Layout
17441 Spacing
17442 \end_layout
17443
17444 \end_inset
17445
17446  implies the generation of specific \SpecialChar LaTeX
17447  code, using the \SpecialChar LaTeX
17448  package 
17449 \family roman
17450
17451 \begin_inset Flex Code
17452 status collapsed
17453
17454 \begin_layout Plain Layout
17455 setspace
17456 \end_layout
17457
17458 \end_inset
17459
17460 .
17461 \end_layout
17462
17463 \begin_layout Description
17464 \begin_inset Flex Code
17465 status collapsed
17466
17467 \begin_layout Plain Layout
17468 Spellcheck
17469 \end_layout
17470
17471 \end_inset
17472
17473  [
17474 \begin_inset Flex Code
17475 status collapsed
17476
17477 \begin_layout Plain Layout
17478 0
17479 \end_layout
17480
17481 \end_inset
17482
17483 ,
17484 \begin_inset space \thinspace{}
17485 \end_inset
17486
17487
17488 \begin_inset Flex Code
17489 status collapsed
17490
17491 \begin_layout Plain Layout
17492
17493 \emph on
17494 1
17495 \end_layout
17496
17497 \end_inset
17498
17499 ] Allow spell-checking paragraphs of this style.
17500  Default is true.
17501 \end_layout
17502
17503 \begin_layout Description
17504 \begin_inset Flex Code
17505 status collapsed
17506
17507 \begin_layout Plain Layout
17508 Step
17509 \change_deleted 731793113 1604355211
17510 Master
17511 \change_inserted 731793113 1604355212
17512 Parent
17513 \change_unchanged
17514 Counter
17515 \end_layout
17516
17517 \end_inset
17518
17519  [
17520 \begin_inset Flex Code
17521 status collapsed
17522
17523 \begin_layout Plain Layout
17524
17525 \emph on
17526 0
17527 \end_layout
17528
17529 \end_inset
17530
17531 ,
17532 \begin_inset Flex Code
17533 status collapsed
17534
17535 \begin_layout Plain Layout
17536 1
17537 \end_layout
17538
17539 \end_inset
17540
17541 ] Steps the 
17542 \change_deleted 731793113 1604355214
17543 master
17544 \change_inserted 731793113 1604355216
17545 parent
17546 \change_unchanged
17547  counter of a given counter at the beginning of a new sequence of layouts.
17548  This is currently only useful when 
17549 \begin_inset Flex Code
17550 status collapsed
17551
17552 \begin_layout Plain Layout
17553 LabelType
17554 \end_layout
17555
17556 \end_inset
17557
17558  is 
17559 \begin_inset Flex Code
17560 status collapsed
17561
17562 \begin_layout Plain Layout
17563 Enumerate
17564 \end_layout
17565
17566 \end_inset
17567
17568 .
17569 \end_layout
17570
17571 \begin_layout Description
17572 \begin_inset Flex Code
17573 status collapsed
17574
17575 \begin_layout Plain Layout
17576 TextFont
17577 \end_layout
17578
17579 \end_inset
17580
17581  The font used for the text body .
17582  See 
17583 \begin_inset CommandInset ref
17584 LatexCommand ref
17585 reference "subsec:Font-description"
17586
17587 \end_inset
17588
17589 .
17590 \end_layout
17591
17592 \begin_layout Description
17593 \begin_inset Flex Code
17594 status collapsed
17595
17596 \begin_layout Plain Layout
17597 TocLevel
17598 \end_layout
17599
17600 \end_inset
17601
17602
17603 \series medium
17604  [
17605 \begin_inset Flex Code
17606 status collapsed
17607
17608 \begin_layout Plain Layout
17609
17610 \series medium
17611 int=3
17612 \end_layout
17613
17614 \end_inset
17615
17616 ]
17617 \series default
17618  The level of the style in the table of contents.
17619  This is used for automatic numbering of section headings.
17620 \end_layout
17621
17622 \begin_layout Description
17623 \begin_inset Flex Code
17624 status collapsed
17625
17626 \begin_layout Plain Layout
17627 ToggleIndent
17628 \end_layout
17629
17630 \end_inset
17631
17632  [
17633 \emph on
17634
17635 \begin_inset Flex Code
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639
17640 \emph on
17641 default
17642 \end_layout
17643
17644 \end_inset
17645
17646
17647 \emph default
17648
17649 \begin_inset Flex Code
17650 status collapsed
17651
17652 \begin_layout Plain Layout
17653 always
17654 \end_layout
17655
17656 \end_inset
17657
17658
17659 \begin_inset Flex Code
17660 status collapsed
17661
17662 \begin_layout Plain Layout
17663 never
17664 \end_layout
17665
17666 \end_inset
17667
17668 ] This tag determines whether the first line indentation of this paragraph
17669  can be toggled via the Paragraph settings dialog.
17670  If 
17671 \emph on
17672
17673 \begin_inset Flex Code
17674 status collapsed
17675
17676 \begin_layout Plain Layout
17677
17678 \emph off
17679 default
17680 \end_layout
17681
17682 \end_inset
17683
17684
17685 \emph default
17686  is set, indentation can be toggled if the document settings use 
17687 \begin_inset Quotes eld
17688 \end_inset
17689
17690 indent
17691 \begin_inset Quotes erd
17692 \end_inset
17693
17694  paragraph style, with 
17695 \begin_inset Flex Code
17696 status collapsed
17697
17698 \begin_layout Plain Layout
17699 always
17700 \end_layout
17701
17702 \end_inset
17703
17704 , indentation can always be toggled, notwithstanding the document settings,
17705  with 
17706 \begin_inset Flex Code
17707 status collapsed
17708
17709 \begin_layout Plain Layout
17710 never
17711 \end_layout
17712
17713 \end_inset
17714
17715 , indentation can never be toggled.
17716 \end_layout
17717
17718 \begin_layout Description
17719 \begin_inset Flex Code
17720 status collapsed
17721
17722 \begin_layout Plain Layout
17723 TopSep
17724 \end_layout
17725
17726 \end_inset
17727
17728  [
17729 \begin_inset Flex Code
17730 status collapsed
17731
17732 \begin_layout Plain Layout
17733 float=0
17734 \end_layout
17735
17736 \end_inset
17737
17738 ] The vertical space with which the very first of a chain of paragraphs
17739  with this style is separated from the previous paragraph.
17740  If the previous paragraph has another style, the separations are not simply
17741  added, but the maximum is taken.
17742 \end_layout
17743
17744 \begin_layout Subsection
17745 \begin_inset CommandInset label
17746 LatexCommand label
17747 name "subsec:I18n"
17748
17749 \end_inset
17750
17751 Internationalization of Paragraph Styles
17752 \end_layout
17753
17754 \begin_layout Standard
17755 \SpecialChar LyX
17756  has long supported internationalization of layout information, but, until
17757  version 2.0, this applied only to the user interface and not to, say, PDF
17758  output.
17759  Thus, French authors were forced to resort to ugly hacks if they wanted
17760  `
17761 \lang french
17762 Théorème
17763 \lang english
17764  1' instead of `Theorem 1'.
17765  Thanks to Georg Baum, that is no longer the case.
17766 \end_layout
17767
17768 \begin_layout Standard
17769 If a 
17770 \begin_inset Flex Code
17771 status collapsed
17772
17773 \begin_layout Plain Layout
17774 Style
17775 \end_layout
17776
17777 \end_inset
17778
17779  defines text that is to appear in the typeset document, it may use 
17780 \begin_inset Flex Code
17781 status collapsed
17782
17783 \begin_layout Plain Layout
17784 LangPreamble
17785 \end_layout
17786
17787 \end_inset
17788
17789  and 
17790 \begin_inset Flex Code
17791 status collapsed
17792
17793 \begin_layout Plain Layout
17794 BabelPreamble
17795 \end_layout
17796
17797 \end_inset
17798
17799  to support non-English and even multi-language documents correctly.
17800  The following excerpt (from the 
17801 \begin_inset Flex Code
17802 status collapsed
17803
17804 \begin_layout Plain Layout
17805 theorems-ams.inc
17806 \end_layout
17807
17808 \end_inset
17809
17810  file) shows how this works:
17811 \end_layout
17812
17813 \begin_layout LyX-Code
17814 Preamble
17815 \end_layout
17816
17817 \begin_deeper
17818 \begin_layout LyX-Code
17819   
17820 \backslash
17821 theoremstyle{remark}
17822 \end_layout
17823
17824 \begin_layout LyX-Code
17825   
17826 \backslash
17827 newtheorem{claim}[thm]{
17828 \backslash
17829 protect
17830 \backslash
17831 claimname}
17832 \end_layout
17833
17834 \begin_layout LyX-Code
17835 EndPreamble
17836 \end_layout
17837
17838 \begin_layout LyX-Code
17839 LangPreamble
17840 \end_layout
17841
17842 \begin_layout LyX-Code
17843   
17844 \backslash
17845 providecommand{
17846 \backslash
17847 claimname}{_(Claim)}
17848 \end_layout
17849
17850 \begin_layout LyX-Code
17851 EndLangPreamble
17852 \end_layout
17853
17854 \begin_layout LyX-Code
17855 BabelPreamble
17856 \end_layout
17857
17858 \begin_layout LyX-Code
17859     
17860 \backslash
17861 addto
17862 \backslash
17863 captions$$lang{
17864 \backslash
17865 renewcommand{
17866 \backslash
17867 claimname}{_(Claim)}}
17868 \end_layout
17869
17870 \begin_layout LyX-Code
17871 EndBabelPreamble
17872 \end_layout
17873
17874 \end_deeper
17875 \begin_layout Standard
17876 In principle, any legal \SpecialChar LaTeX
17877  may appear in the 
17878 \begin_inset Flex Code
17879 status collapsed
17880
17881 \begin_layout Plain Layout
17882 LangPreamble
17883 \end_layout
17884
17885 \end_inset
17886
17887  and 
17888 \begin_inset Flex Code
17889 status collapsed
17890
17891 \begin_layout Plain Layout
17892 BabelPreamble
17893 \end_layout
17894
17895 \end_inset
17896
17897  tags, but in practice they will typically look as they do here.
17898  The key to correct translation of the typeset text is the definition of
17899  the \SpecialChar LaTeX
17900  command 
17901 \begin_inset Flex Code
17902 status collapsed
17903
17904 \begin_layout Plain Layout
17905
17906 \backslash
17907 claimname
17908 \end_layout
17909
17910 \end_inset
17911
17912  and its use in 
17913 \begin_inset Flex Code
17914 status collapsed
17915
17916 \begin_layout Plain Layout
17917
17918 \backslash
17919 newtheorem
17920 \end_layout
17921
17922 \end_inset
17923
17924 .
17925  
17926 \end_layout
17927
17928 \begin_layout Standard
17929 The 
17930 \begin_inset Flex Code
17931 status collapsed
17932
17933 \begin_layout Plain Layout
17934 LangPreamble
17935 \end_layout
17936
17937 \end_inset
17938
17939  tag provides for internationalization based upon the overall language of
17940  the document.
17941  The contents of the tag will be included in the preamble, just as with
17942  the 
17943 \begin_inset Flex Code
17944 status collapsed
17945
17946 \begin_layout Plain Layout
17947 Preamble
17948 \end_layout
17949
17950 \end_inset
17951
17952  tag.
17953  What makes it special is the use of the 
17954 \begin_inset Quotes eld
17955 \end_inset
17956
17957 function
17958 \begin_inset Quotes erd
17959 \end_inset
17960
17961  
17962 \begin_inset Flex Code
17963 status collapsed
17964
17965 \begin_layout Plain Layout
17966 _()
17967 \end_layout
17968
17969 \end_inset
17970
17971 , which will be replaced, when \SpecialChar LyX
17972  produces \SpecialChar LaTeX
17973  output, with the translation of
17974  its argument into the document language.
17975 \end_layout
17976
17977 \begin_layout Standard
17978 The 
17979 \begin_inset Flex Code
17980 status collapsed
17981
17982 \begin_layout Plain Layout
17983 BabelPreamble
17984 \end_layout
17985
17986 \end_inset
17987
17988  tag is more complex, since it is meant to provide support for multi-language
17989  documents and so offers an interface to the 
17990 \begin_inset Flex Code
17991 status collapsed
17992
17993 \begin_layout Plain Layout
17994 babel
17995 \end_layout
17996
17997 \end_inset
17998
17999  package.
18000  Its contents will be added to the preamble once for each language that
18001  appears in the document.
18002  In this case, the argument to 
18003 \begin_inset Flex Code
18004 status collapsed
18005
18006 \begin_layout Plain Layout
18007 _()
18008 \end_layout
18009
18010 \end_inset
18011
18012  will be replaced with its translation into the language in question; the
18013  expression 
18014 \begin_inset Flex Code
18015 status collapsed
18016
18017 \begin_layout Plain Layout
18018 $$lang
18019 \end_layout
18020
18021 \end_inset
18022
18023  is replaced by the language name (as used by the babel package).
18024 \end_layout
18025
18026 \begin_layout Standard
18027 A German document that also included a French section would thus have the
18028  following in the preamble:
18029 \end_layout
18030
18031 \begin_layout LyX-Code
18032
18033 \backslash
18034 addto
18035 \backslash
18036 captionsfrench{
18037 \backslash
18038 renewcommand{
18039 \backslash
18040 claimname}{Affirmation}}
18041 \begin_inset Newline newline
18042 \end_inset
18043
18044
18045 \backslash
18046 addto
18047 \backslash
18048 captionsngerman{
18049 \backslash
18050 renewcommand{
18051 \backslash
18052 claimname}{Behauptung}}
18053 \begin_inset Newline newline
18054 \end_inset
18055
18056
18057 \backslash
18058 providecommand{
18059 \backslash
18060 claimname}{Behauptung}
18061 \end_layout
18062
18063 \begin_layout Standard
18064 \SpecialChar LaTeX
18065  and 
18066 \begin_inset Flex Code
18067 status collapsed
18068
18069 \begin_layout Plain Layout
18070 babel
18071 \end_layout
18072
18073 \end_inset
18074
18075  will then conspire to produce the correct text in the output.
18076 \end_layout
18077
18078 \begin_layout Standard
18079 One important point to note here is that the translations are provided by
18080  \SpecialChar LyX
18081  itself, through the file 
18082 \begin_inset Flex Code
18083 status collapsed
18084
18085 \begin_layout Plain Layout
18086 layouttranslations
18087 \end_layout
18088
18089 \end_inset
18090
18091 .
18092  This means, in effect, that 
18093 \begin_inset Flex Code
18094 status collapsed
18095
18096 \begin_layout Plain Layout
18097 LangPreamble
18098 \end_layout
18099
18100 \end_inset
18101
18102  and 
18103 \begin_inset Flex Code
18104 status collapsed
18105
18106 \begin_layout Plain Layout
18107 BabelPreamble
18108 \end_layout
18109
18110 \end_inset
18111
18112  are really only of use in layout files that are provided with \SpecialChar LyX
18113 , since text
18114  entered in user-created layout files will not be seen by \SpecialChar LyX
18115 's internationalizatio
18116 n routines unless the 
18117 \begin_inset Flex Code
18118 status collapsed
18119
18120 \begin_layout Plain Layout
18121 layouttranslations
18122 \end_layout
18123
18124 \end_inset
18125
18126  file is modified accordingly.
18127  That said, however, any layout created with the intention that it will
18128  be included with \SpecialChar LyX
18129  should use these tags where appropriate.
18130  Please note that the paragraph style translations provided by \SpecialChar LyX
18131  will never
18132  change with a minor update (e.
18133 \begin_inset space \thinspace{}
18134 \end_inset
18135
18136 g.
18137 \begin_inset space \space{}
18138 \end_inset
18139
18140 from version 2.1.x to 2.1.y).
18141  It is however quite likely that a major update (e.
18142 \begin_inset space \thinspace{}
18143 \end_inset
18144
18145 g.
18146 \begin_inset space \space{}
18147 \end_inset
18148
18149 from 2.0.x to 2.1.0) will introduce new translations or corrections.
18150 \end_layout
18151
18152 \begin_layout Subsection
18153 Floats
18154 \begin_inset CommandInset label
18155 LatexCommand label
18156 name "subsec:Floats"
18157
18158 \end_inset
18159
18160
18161 \end_layout
18162
18163 \begin_layout Standard
18164 It is necessary to define the floats (
18165 \begin_inset Flex Noun
18166 status collapsed
18167
18168 \begin_layout Plain Layout
18169 figure
18170 \end_layout
18171
18172 \end_inset
18173
18174
18175 \begin_inset Flex Noun
18176 status collapsed
18177
18178 \begin_layout Plain Layout
18179 table
18180 \end_layout
18181
18182 \end_inset
18183
18184 , \SpecialChar ldots
18185 ) in the text class itself.
18186  Standard floats are included in the file 
18187 \begin_inset Flex Code
18188 status collapsed
18189
18190 \begin_layout Plain Layout
18191 stdfloats.inc
18192 \end_layout
18193
18194 \end_inset
18195
18196 , so you may have to do no more than add
18197 \end_layout
18198
18199 \begin_layout LyX-Code
18200 Input stdfloats.inc
18201 \end_layout
18202
18203 \begin_layout Standard
18204 to your layout file.
18205  If you want to implement a text class that proposes some other float types
18206  (like the AGU class bundled with \SpecialChar LyX
18207 ), the information below will hopefully
18208  help you:
18209 \end_layout
18210
18211 \begin_layout Description
18212 \begin_inset Flex Code
18213 status collapsed
18214
18215 \begin_layout Plain Layout
18216 AllowedPlacement
18217 \end_layout
18218
18219 \end_inset
18220
18221  [
18222 \begin_inset Flex Code
18223 status collapsed
18224
18225 \begin_layout Plain Layout
18226 string
18227 \end_layout
18228
18229 \end_inset
18230
18231 =!htbpH] Allowed placement options for this float type.
18232  The value is a string of placement characters.
18233  Possible characters include: 
18234 \emph on
18235 h
18236 \emph default
18237  (
18238 \begin_inset Quotes eld
18239 \end_inset
18240
18241 here if possible
18242 \begin_inset Quotes erd
18243 \end_inset
18244
18245 ), 
18246 \emph on
18247 t
18248 \emph default
18249  (
18250 \begin_inset Quotes eld
18251 \end_inset
18252
18253 top of page
18254 \begin_inset Quotes erd
18255 \end_inset
18256
18257 ), 
18258 \emph on
18259 b
18260 \emph default
18261  (
18262 \begin_inset Quotes eld
18263 \end_inset
18264
18265 bottom of page
18266 \begin_inset Quotes erd
18267 \end_inset
18268
18269 ), 
18270 \emph on
18271 p
18272 \emph default
18273  (
18274 \begin_inset Quotes eld
18275 \end_inset
18276
18277 page of floats
18278 \begin_inset Quotes erd
18279 \end_inset
18280
18281 ), 
18282 \emph on
18283 H
18284 \emph default
18285  (
18286 \begin_inset Quotes eld
18287 \end_inset
18288
18289 here definitely
18290 \begin_inset Quotes erd
18291 \end_inset
18292
18293 ) and 
18294 \emph on
18295 !
18296 \emph default
18297  (
18298 \begin_inset Quotes eld
18299 \end_inset
18300
18301 ignore LaTeX rules
18302 \begin_inset Quotes erd
18303 \end_inset
18304
18305 ).
18306  The order of the characters in the string does not matter.
18307  If no placement options are allowed, use the string 
18308 \emph on
18309 none
18310 \emph default
18311 .
18312 \end_layout
18313
18314 \begin_layout Description
18315 \begin_inset Flex Code
18316 status collapsed
18317
18318 \begin_layout Plain Layout
18319 AllowsSideways
18320 \end_layout
18321
18322 \end_inset
18323
18324  [
18325 \begin_inset Flex Code
18326 status collapsed
18327
18328 \begin_layout Plain Layout
18329
18330 \emph off
18331 0
18332 \end_layout
18333
18334 \end_inset
18335
18336 ,
18337 \begin_inset space \thinspace{}
18338 \end_inset
18339
18340
18341 \emph on
18342
18343 \begin_inset Flex Code
18344 status collapsed
18345
18346 \begin_layout Plain Layout
18347
18348 \emph on
18349 1
18350 \end_layout
18351
18352 \end_inset
18353
18354
18355 \emph default
18356 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
18357 -package 
18358 \family typewriter
18359 rotfloat
18360 \family default
18361  (sidewaysfloat).
18362  Set to 
18363 \begin_inset Flex Code
18364 status collapsed
18365
18366 \begin_layout Plain Layout
18367 0
18368 \end_layout
18369
18370 \end_inset
18371
18372  if the float does not support this feature.
18373 \end_layout
18374
18375 \begin_layout Description
18376 \begin_inset Flex Code
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380 AllowsWide
18381 \end_layout
18382
18383 \end_inset
18384
18385  [
18386 \begin_inset Flex Code
18387 status collapsed
18388
18389 \begin_layout Plain Layout
18390
18391 \emph off
18392 0
18393 \end_layout
18394
18395 \end_inset
18396
18397 ,
18398 \begin_inset space \thinspace{}
18399 \end_inset
18400
18401
18402 \emph on
18403
18404 \begin_inset Flex Code
18405 status collapsed
18406
18407 \begin_layout Plain Layout
18408
18409 \emph on
18410 1
18411 \end_layout
18412
18413 \end_inset
18414
18415
18416 \emph default
18417 ] Defines whether the float has a starred variant that spans columns in
18418  a two column paragraph.
18419  Set to 
18420 \begin_inset Flex Code
18421 status collapsed
18422
18423 \begin_layout Plain Layout
18424 0
18425 \end_layout
18426
18427 \end_inset
18428
18429  if the float does not support this feature.
18430 \end_layout
18431
18432 \begin_layout Description
18433 \begin_inset Flex Code
18434 status collapsed
18435
18436 \begin_layout Plain Layout
18437 Extension
18438 \end_layout
18439
18440 \end_inset
18441
18442  [
18443 \begin_inset Flex Code
18444 status collapsed
18445
18446 \begin_layout Plain Layout
18447 string
18448 \end_layout
18449
18450 \end_inset
18451
18452 =
18453 \begin_inset Quotes erd
18454 \end_inset
18455
18456
18457 \begin_inset Quotes erd
18458 \end_inset
18459
18460 ] The file name extension of an auxiliary file for the list of figures (or
18461  whatever).
18462  \SpecialChar LaTeX
18463  writes the captions to this file.
18464 \end_layout
18465
18466 \begin_layout Description
18467 \begin_inset Flex Code
18468 status collapsed
18469
18470 \begin_layout Plain Layout
18471 GuiName
18472 \end_layout
18473
18474 \end_inset
18475
18476  [
18477 \begin_inset Flex Code
18478 status collapsed
18479
18480 \begin_layout Plain Layout
18481 string
18482 \end_layout
18483
18484 \end_inset
18485
18486 =
18487 \begin_inset Quotes erd
18488 \end_inset
18489
18490
18491 \begin_inset Quotes erd
18492 \end_inset
18493
18494 ] The string that will be used in the menus and also for the caption.
18495  This is translated to the current language if babel is used.
18496 \end_layout
18497
18498 \begin_layout Description
18499 \begin_inset Flex Code
18500 status collapsed
18501
18502 \begin_layout Plain Layout
18503 HTML*
18504 \end_layout
18505
18506 \end_inset
18507
18508  These tags control the XHTML output.
18509  See 
18510 \begin_inset CommandInset ref
18511 LatexCommand ref
18512 reference "sec:Tags-for-XHTML"
18513
18514 \end_inset
18515
18516 .
18517 \end_layout
18518
18519 \begin_layout Description
18520 \begin_inset Flex Code
18521 status collapsed
18522
18523 \begin_layout Plain Layout
18524 IsPredefined
18525 \end_layout
18526
18527 \end_inset
18528
18529  [
18530 \emph on
18531
18532 \begin_inset Flex Code
18533 status collapsed
18534
18535 \begin_layout Plain Layout
18536 0
18537 \end_layout
18538
18539 \end_inset
18540
18541
18542 \emph default
18543 ,
18544 \begin_inset space \thinspace{}
18545 \end_inset
18546
18547
18548 \begin_inset Flex Code
18549 status collapsed
18550
18551 \begin_layout Plain Layout
18552 1
18553 \end_layout
18554
18555 \end_inset
18556
18557 ] Indicates whether the float is already defined in the document class or
18558  if instead the \SpecialChar LaTeX
18559  package 
18560 \begin_inset Flex Code
18561 status collapsed
18562
18563 \begin_layout Plain Layout
18564 float
18565 \end_layout
18566
18567 \end_inset
18568
18569  needs to be loaded to define it on-the-fly.
18570  The default is 
18571 \begin_inset Flex Code
18572 status collapsed
18573
18574 \begin_layout Plain Layout
18575 0
18576 \end_layout
18577
18578 \end_inset
18579
18580 , which means: 
18581 \begin_inset Flex Code
18582 status collapsed
18583
18584 \begin_layout Plain Layout
18585 float
18586 \end_layout
18587
18588 \end_inset
18589
18590  is used.
18591  It should be set to 
18592 \begin_inset Flex Code
18593 status collapsed
18594
18595 \begin_layout Plain Layout
18596 1
18597 \end_layout
18598
18599 \end_inset
18600
18601  if the float is already defined by the \SpecialChar LaTeX
18602  document class.
18603 \end_layout
18604
18605 \begin_layout Description
18606 \begin_inset Flex Code
18607 status collapsed
18608
18609 \begin_layout Plain Layout
18610 ListCommand
18611 \end_layout
18612
18613 \end_inset
18614
18615  [
18616 \begin_inset Flex Code
18617 status collapsed
18618
18619 \begin_layout Plain Layout
18620 string
18621 \end_layout
18622
18623 \end_inset
18624
18625 =
18626 \begin_inset Quotes erd
18627 \end_inset
18628
18629
18630 \begin_inset Quotes erd
18631 \end_inset
18632
18633 ] The command used to generate a list of floats of this type; the leading
18634  `
18635 \backslash
18636 ' must be omitted.
18637  This 
18638 \emph on
18639 must
18640 \emph default
18641  be given if 
18642 \begin_inset Flex Code
18643 status collapsed
18644
18645 \begin_layout Plain Layout
18646 UsesFloatPkg
18647 \end_layout
18648
18649 \end_inset
18650
18651  is false, since there is no standard way to generate this command.
18652  It is ignored if 
18653 \begin_inset Flex Code
18654 status collapsed
18655
18656 \begin_layout Plain Layout
18657 UsesFloatPkg
18658 \end_layout
18659
18660 \end_inset
18661
18662  is true, since in that case there is a standard way to define the command.
18663 \end_layout
18664
18665 \begin_layout Description
18666 \begin_inset Flex Code
18667 status collapsed
18668
18669 \begin_layout Plain Layout
18670 ListName
18671 \end_layout
18672
18673 \end_inset
18674
18675  [
18676 \begin_inset Flex Code
18677 status collapsed
18678
18679 \begin_layout Plain Layout
18680 string
18681 \end_layout
18682
18683 \end_inset
18684
18685 =
18686 \begin_inset Quotes erd
18687 \end_inset
18688
18689
18690 \begin_inset Quotes erd
18691 \end_inset
18692
18693 ] A title for a list of floats of this kind (list of figures, tables, or
18694  whatever).
18695  It is used for the screen label within \SpecialChar LyX
18696 , it is used by \SpecialChar LaTeX
18697  for the title and
18698  it is used as the title in the XHTML output.
18699  It will be translated to the document language.
18700 \end_layout
18701
18702 \begin_layout Description
18703 \begin_inset Flex Code
18704 status collapsed
18705
18706 \begin_layout Plain Layout
18707 NumberWithin
18708 \end_layout
18709
18710 \end_inset
18711
18712  [
18713 \begin_inset Flex Code
18714 status collapsed
18715
18716 \begin_layout Plain Layout
18717 string
18718 \end_layout
18719
18720 \end_inset
18721
18722 =
18723 \begin_inset Quotes erd
18724 \end_inset
18725
18726
18727 \begin_inset Quotes erd
18728 \end_inset
18729
18730 ] This (optional) argument determines whether floats of this class will
18731  be numbered within some sectional unit of the document.
18732  For example, if 
18733 \begin_inset Flex Code
18734 status collapsed
18735
18736 \begin_layout Plain Layout
18737 NumberWithin
18738 \end_layout
18739
18740 \end_inset
18741
18742  is set to 
18743 \begin_inset Quotes eld
18744 \end_inset
18745
18746
18747 \begin_inset Flex Code
18748 status collapsed
18749
18750 \begin_layout Plain Layout
18751 chapter
18752 \end_layout
18753
18754 \end_inset
18755
18756
18757 \begin_inset Quotes erd
18758 \end_inset
18759
18760 , the floats will be numbered within chapters.
18761  
18762 \end_layout
18763
18764 \begin_layout Description
18765 \begin_inset Flex Code
18766 status collapsed
18767
18768 \begin_layout Plain Layout
18769 Placement
18770 \end_layout
18771
18772 \end_inset
18773
18774  [
18775 \begin_inset Flex Code
18776 status collapsed
18777
18778 \begin_layout Plain Layout
18779 string
18780 \end_layout
18781
18782 \end_inset
18783
18784 =
18785 \begin_inset Quotes erd
18786 \end_inset
18787
18788
18789 \begin_inset Quotes erd
18790 \end_inset
18791
18792 ] The default placement for the given class of floats.
18793  The string should be as in standard \SpecialChar LaTeX
18794
18795 \begin_inset Flex Code
18796 status collapsed
18797
18798 \begin_layout Plain Layout
18799 t
18800 \end_layout
18801
18802 \end_inset
18803
18804
18805 \begin_inset Flex Code
18806 status collapsed
18807
18808 \begin_layout Plain Layout
18809 b
18810 \end_layout
18811
18812 \end_inset
18813
18814
18815 \begin_inset Flex Code
18816 status collapsed
18817
18818 \begin_layout Plain Layout
18819 p
18820 \end_layout
18821
18822 \end_inset
18823
18824  and 
18825 \begin_inset Flex Code
18826 status collapsed
18827
18828 \begin_layout Plain Layout
18829 h
18830 \end_layout
18831
18832 \end_inset
18833
18834  for top, bottom, page, and here, respectively.
18835 \begin_inset Foot
18836 status collapsed
18837
18838 \begin_layout Plain Layout
18839 Note that the order of these letters in the string is irrelevant, like in
18840  \SpecialChar LaTeX
18841 .
18842 \end_layout
18843
18844 \end_inset
18845
18846  On top of that there is a new type, 
18847 \begin_inset Flex Code
18848 status collapsed
18849
18850 \begin_layout Plain Layout
18851 H
18852 \end_layout
18853
18854 \end_inset
18855
18856 , which does not really correspond to a float, since it means: put it 
18857 \begin_inset Quotes eld
18858 \end_inset
18859
18860 here
18861 \begin_inset Quotes erd
18862 \end_inset
18863
18864  and nowhere else.
18865  Note however that the 
18866 \begin_inset Flex Code
18867 status collapsed
18868
18869 \begin_layout Plain Layout
18870 H
18871 \end_layout
18872
18873 \end_inset
18874
18875  specifier is special and, because of implementation details, cannot be
18876  used in non-built in float types.
18877  If you do not understand what this means, just use 
18878 \begin_inset Quotes eld
18879 \end_inset
18880
18881
18882 \begin_inset Flex Code
18883 status collapsed
18884
18885 \begin_layout Plain Layout
18886 tbp
18887 \end_layout
18888
18889 \end_inset
18890
18891
18892 \begin_inset Quotes erd
18893 \end_inset
18894
18895 .
18896 \end_layout
18897
18898 \begin_layout Description
18899 \begin_inset Flex Code
18900 status collapsed
18901
18902 \begin_layout Plain Layout
18903 RefPrefix
18904 \end_layout
18905
18906 \end_inset
18907
18908  [
18909 \begin_inset Flex Code
18910 status collapsed
18911
18912 \begin_layout Plain Layout
18913 string
18914 \end_layout
18915
18916 \end_inset
18917
18918 ] The prefix to use when creating labels referring to floats of this type.
18919  This allows the use of formatted references.
18920  Note that you can remove any 
18921 \begin_inset Flex Code
18922 status collapsed
18923
18924 \begin_layout Plain Layout
18925 RefPrefix
18926 \end_layout
18927
18928 \end_inset
18929
18930  set by a copied style by using the special value 
18931 \begin_inset Quotes eld
18932 \end_inset
18933
18934 OFF
18935 \begin_inset Quotes erd
18936 \end_inset
18937
18938 , which must be all caps.
18939 \change_inserted -712698321 1565605014
18940
18941 \end_layout
18942
18943 \begin_layout Description
18944
18945 \change_inserted -712698321 1565605014
18946 \begin_inset Flex Code
18947 status collapsed
18948
18949 \begin_layout Plain Layout
18950
18951 \change_inserted -712698321 1565605014
18952 Requires
18953 \change_unchanged
18954
18955 \end_layout
18956
18957 \end_inset
18958
18959  [
18960 \begin_inset Flex Code
18961 status collapsed
18962
18963 \begin_layout Plain Layout
18964
18965 \change_inserted -712698321 1565605014
18966 string
18967 \change_unchanged
18968
18969 \end_layout
18970
18971 \end_inset
18972
18973 ] As with paragraph styles, see 
18974 \begin_inset CommandInset ref
18975 LatexCommand ref
18976 reference "subsec:Paragraph-Styles"
18977
18978 \end_inset
18979
18980 .
18981 \change_unchanged
18982
18983 \end_layout
18984
18985 \begin_layout Description
18986 \begin_inset Flex Code
18987 status collapsed
18988
18989 \begin_layout Plain Layout
18990 Style
18991 \end_layout
18992
18993 \end_inset
18994
18995  [
18996 \begin_inset Flex Code
18997 status collapsed
18998
18999 \begin_layout Plain Layout
19000 string
19001 \end_layout
19002
19003 \end_inset
19004
19005 =
19006 \begin_inset Quotes erd
19007 \end_inset
19008
19009
19010 \begin_inset Quotes erd
19011 \end_inset
19012
19013 ] The style used when defining the float using 
19014 \begin_inset Flex Code
19015 status collapsed
19016
19017 \begin_layout Plain Layout
19018
19019 \backslash
19020 newfloat
19021 \end_layout
19022
19023 \end_inset
19024
19025 .
19026 \end_layout
19027
19028 \begin_layout Description
19029 \begin_inset Flex Code
19030 status collapsed
19031
19032 \begin_layout Plain Layout
19033 Type
19034 \end_layout
19035
19036 \end_inset
19037
19038  [
19039 \begin_inset Flex Code
19040 status collapsed
19041
19042 \begin_layout Plain Layout
19043 string
19044 \end_layout
19045
19046 \end_inset
19047
19048 =
19049 \begin_inset Quotes erd
19050 \end_inset
19051
19052
19053 \begin_inset Quotes erd
19054 \end_inset
19055
19056 ] The 
19057 \begin_inset Quotes eld
19058 \end_inset
19059
19060 type
19061 \begin_inset Quotes erd
19062 \end_inset
19063
19064  of the new class of floats, like program or algorithm.
19065  After the appropriate 
19066 \begin_inset Flex Code
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070
19071 \backslash
19072 newfloat
19073 \end_layout
19074
19075 \end_inset
19076
19077 , commands such as 
19078 \begin_inset Flex Code
19079 status collapsed
19080
19081 \begin_layout Plain Layout
19082
19083 \backslash
19084 begin{program}
19085 \end_layout
19086
19087 \end_inset
19088
19089  or 
19090 \begin_inset Flex Code
19091 status collapsed
19092
19093 \begin_layout Plain Layout
19094
19095 \backslash
19096 end{algorithm*}
19097 \end_layout
19098
19099 \end_inset
19100
19101  will be available.
19102 \end_layout
19103
19104 \begin_layout Description
19105 \begin_inset Flex Code
19106 status collapsed
19107
19108 \begin_layout Plain Layout
19109 UsesFloatPkg
19110 \end_layout
19111
19112 \end_inset
19113
19114  [
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119 0
19120 \end_layout
19121
19122 \end_inset
19123
19124 ,
19125 \begin_inset space \thinspace{}
19126 \end_inset
19127
19128
19129 \begin_inset Flex Code
19130 status collapsed
19131
19132 \begin_layout Plain Layout
19133
19134 \emph on
19135 1
19136 \end_layout
19137
19138 \end_inset
19139
19140 ] Specifies whether this float is defined using the \SpecialChar LaTeX
19141  package 
19142 \begin_inset Flex Code
19143 status collapsed
19144
19145 \begin_layout Plain Layout
19146 float
19147 \end_layout
19148
19149 \end_inset
19150
19151 , either by the class file, another package or on-the-fly by \SpecialChar LyX
19152  itself.
19153 \end_layout
19154
19155 \begin_layout Standard
19156 Note that defining a float with type 
19157 \begin_inset Flex Code
19158 status collapsed
19159
19160 \begin_layout Plain Layout
19161
19162 \emph on
19163 type
19164 \end_layout
19165
19166 \end_inset
19167
19168  automatically defines the corresponding counter with name 
19169 \begin_inset Flex Code
19170 status collapsed
19171
19172 \begin_layout Plain Layout
19173
19174 \emph on
19175 type
19176 \end_layout
19177
19178 \end_inset
19179
19180 .
19181 \end_layout
19182
19183 \begin_layout Subsection
19184 Flex insets and InsetLayout
19185 \begin_inset CommandInset label
19186 LatexCommand label
19187 name "subsec:Flex-insets-and"
19188
19189 \end_inset
19190
19191
19192 \end_layout
19193
19194 \begin_layout Standard
19195 Flex insets come in 
19196 \change_deleted 5863208 1594239511
19197 three
19198 \change_inserted 5863208 1594239512
19199 two
19200 \change_unchanged
19201  different kinds: 
19202 \end_layout
19203
19204 \begin_layout Itemize
19205 character style (
19206 \begin_inset Flex Code
19207 status collapsed
19208
19209 \begin_layout Plain Layout
19210 CharStyle
19211 \end_layout
19212
19213 \end_inset
19214
19215 ): These define semantic markup corresponding to such \SpecialChar LaTeX
19216  commands as 
19217 \begin_inset Flex Code
19218 status collapsed
19219
19220 \begin_layout Plain Layout
19221
19222 \backslash
19223 noun
19224 \end_layout
19225
19226 \end_inset
19227
19228  and 
19229 \begin_inset Flex Code
19230 status collapsed
19231
19232 \begin_layout Plain Layout
19233
19234 \backslash
19235 code
19236 \end_layout
19237
19238 \end_inset
19239
19240 .
19241 \end_layout
19242
19243 \begin_layout Itemize
19244 user custom (
19245 \begin_inset Flex Code
19246 status collapsed
19247
19248 \begin_layout Plain Layout
19249 Custom
19250 \end_layout
19251
19252 \end_inset
19253
19254 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
19255  code,
19256  footnote, and the like.
19257  An obvious example is an endnote inset, which is defined in the 
19258 \begin_inset Flex Code
19259 status collapsed
19260
19261 \begin_layout Plain Layout
19262 endnote
19263 \end_layout
19264
19265 \end_inset
19266
19267  module.
19268 \end_layout
19269
19270 \begin_layout Itemize
19271
19272 \change_deleted 5863208 1594239528
19273 XML elements (
19274 \begin_inset Flex Code
19275 status collapsed
19276
19277 \begin_layout Plain Layout
19278 Element
19279 \end_layout
19280
19281 \end_inset
19282
19283 ): For use with DocBook classes.
19284 \change_unchanged
19285
19286 \end_layout
19287
19288 \begin_layout Standard
19289 Flex insets are defined using the 
19290 \begin_inset Flex Code
19291 status collapsed
19292
19293 \begin_layout Plain Layout
19294 InsetLayout
19295 \end_layout
19296
19297 \end_inset
19298
19299  tag, which shall be explained in a moment.
19300 \end_layout
19301
19302 \begin_layout Standard
19303 The 
19304 \begin_inset Flex Code
19305 status collapsed
19306
19307 \begin_layout Plain Layout
19308 InsetLayout
19309 \end_layout
19310
19311 \end_inset
19312
19313  tag also serves another function: It can be used to customize the general
19314  layout of many different types of insets.
19315  Currently, 
19316 \begin_inset Flex Code
19317 status collapsed
19318
19319 \begin_layout Plain Layout
19320 InsetLayout
19321 \end_layout
19322
19323 \end_inset
19324
19325  can be used to customize the layout parameters for footnotes, marginal
19326  notes, note insets, \SpecialChar TeX
19327  code (ERT) insets, branches, listings, indexes, boxes,
19328  tables, algorithms, URLs, and captions, as well as to define Flex insets.
19329 \end_layout
19330
19331 \begin_layout Standard
19332 The 
19333 \begin_inset Flex Code
19334 status collapsed
19335
19336 \begin_layout Plain Layout
19337 InsetLayout
19338 \end_layout
19339
19340 \end_inset
19341
19342  definition must begin with a line of the form:
19343 \end_layout
19344
19345 \begin_layout LyX-Code
19346 InsetLayout <type>
19347 \end_layout
19348
19349 \begin_layout Standard
19350 Here 
19351 \begin_inset Flex Code
19352 status collapsed
19353
19354 \begin_layout Plain Layout
19355 <Type>
19356 \end_layout
19357
19358 \end_inset
19359
19360  indicates the inset whose layout is being defined, and here there are four
19361  cases.
19362 \end_layout
19363
19364 \begin_layout Enumerate
19365 The layout for a pre-existing inset is being modified.
19366  In this case, can be 
19367 \begin_inset Flex Code
19368 status collapsed
19369
19370 \begin_layout Plain Layout
19371 <Type>
19372 \end_layout
19373
19374 \end_inset
19375
19376  any one of the following: 
19377 \begin_inset Flex Code
19378 status collapsed
19379
19380 \begin_layout Plain Layout
19381 Algorithm
19382 \end_layout
19383
19384 \end_inset
19385
19386
19387 \begin_inset Flex Code
19388 status collapsed
19389
19390 \begin_layout Plain Layout
19391 Branch
19392 \end_layout
19393
19394 \end_inset
19395
19396
19397 \begin_inset Flex Code
19398 status collapsed
19399
19400 \begin_layout Plain Layout
19401 Box
19402 \end_layout
19403
19404 \end_inset
19405
19406
19407 \begin_inset Flex Code
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411 Box:shaded
19412 \end_layout
19413
19414 \end_inset
19415
19416
19417 \begin_inset Flex Code
19418 status collapsed
19419
19420 \begin_layout Plain Layout
19421 Caption:Standard
19422 \end_layout
19423
19424 \end_inset
19425
19426
19427 \begin_inset Flex Code
19428 status collapsed
19429
19430 \begin_layout Plain Layout
19431 ERT
19432 \end_layout
19433
19434 \end_inset
19435
19436
19437 \begin_inset Flex Code
19438 status collapsed
19439
19440 \begin_layout Plain Layout
19441 Figure
19442 \end_layout
19443
19444 \end_inset
19445
19446
19447 \begin_inset Flex Code
19448 status collapsed
19449
19450 \begin_layout Plain Layout
19451 Foot
19452 \end_layout
19453
19454 \end_inset
19455
19456
19457 \begin_inset Flex Code
19458 status collapsed
19459
19460 \begin_layout Plain Layout
19461 Index
19462 \end_layout
19463
19464 \end_inset
19465
19466
19467 \begin_inset Flex Code
19468 status collapsed
19469
19470 \begin_layout Plain Layout
19471 Info
19472 \end_layout
19473
19474 \end_inset
19475
19476
19477 \begin_inset Flex Code
19478 status collapsed
19479
19480 \begin_layout Plain Layout
19481 Info:menu
19482 \end_layout
19483
19484 \end_inset
19485
19486
19487 \begin_inset Flex Code
19488 status collapsed
19489
19490 \begin_layout Plain Layout
19491 Info:shortcut
19492 \end_layout
19493
19494 \end_inset
19495
19496
19497 \begin_inset Flex Code
19498 status collapsed
19499
19500 \begin_layout Plain Layout
19501 Info:shortcuts
19502 \end_layout
19503
19504 \end_inset
19505
19506
19507 \begin_inset Flex Code
19508 status collapsed
19509
19510 \begin_layout Plain Layout
19511 Listings
19512 \end_layout
19513
19514 \end_inset
19515
19516
19517 \begin_inset Flex Code
19518 status collapsed
19519
19520 \begin_layout Plain Layout
19521 Marginal
19522 \end_layout
19523
19524 \end_inset
19525
19526
19527 \begin_inset Flex Code
19528 status collapsed
19529
19530 \begin_layout Plain Layout
19531 Note:Comment
19532 \end_layout
19533
19534 \end_inset
19535
19536
19537 \begin_inset Flex Code
19538 status collapsed
19539
19540 \begin_layout Plain Layout
19541 Note:Note
19542 \end_layout
19543
19544 \end_inset
19545
19546
19547 \begin_inset Flex Code
19548 status collapsed
19549
19550 \begin_layout Plain Layout
19551 Note:Greyedout
19552 \end_layout
19553
19554 \end_inset
19555
19556
19557 \begin_inset Flex Code
19558 status collapsed
19559
19560 \begin_layout Plain Layout
19561 Table
19562 \end_layout
19563
19564 \end_inset
19565
19566 , or 
19567 \begin_inset Flex Code
19568 status collapsed
19569
19570 \begin_layout Plain Layout
19571 URL
19572 \end_layout
19573
19574 \end_inset
19575
19576 .
19577 \end_layout
19578
19579 \begin_layout Enumerate
19580 The layout for a Flex inset is being defined.
19581  In this case, 
19582 \begin_inset Flex Code
19583 status collapsed
19584
19585 \begin_layout Plain Layout
19586 <Type>
19587 \end_layout
19588
19589 \end_inset
19590
19591  must be of the form 
19592 \begin_inset Quotes eld
19593 \end_inset
19594
19595
19596 \begin_inset Flex Code
19597 status collapsed
19598
19599 \begin_layout Plain Layout
19600 Flex:<name>
19601 \end_layout
19602
19603 \end_inset
19604
19605
19606 \begin_inset Quotes erd
19607 \end_inset
19608
19609 , where 
19610 \begin_inset Flex Code
19611 status collapsed
19612
19613 \begin_layout Plain Layout
19614 name
19615 \end_layout
19616
19617 \end_inset
19618
19619  may be any valid identifier not used by a pre-existing Flex inset.
19620  The identifier may include spaces, but in that case the whole thing must
19621  be wrapped in quotes.
19622  Note that the definition of a flex inset 
19623 \emph on
19624 must 
19625 \emph default
19626 also include a 
19627 \begin_inset Flex Code
19628 status collapsed
19629
19630 \begin_layout Plain Layout
19631 LyXType
19632 \end_layout
19633
19634 \end_inset
19635
19636  entry, declaring which type of inset it defines.
19637 \end_layout
19638
19639 \begin_layout Enumerate
19640 The layout for user specific branch is being defined.
19641  In this case, 
19642 \begin_inset Flex Code
19643 status collapsed
19644
19645 \begin_layout Plain Layout
19646 <Type>
19647 \end_layout
19648
19649 \end_inset
19650
19651  must be of the form 
19652 \begin_inset Quotes eld
19653 \end_inset
19654
19655
19656 \begin_inset Flex Code
19657 status collapsed
19658
19659 \begin_layout Plain Layout
19660 Branch:<name>
19661 \end_layout
19662
19663 \end_inset
19664
19665
19666 \begin_inset Quotes erd
19667 \end_inset
19668
19669 , where 
19670 \begin_inset Flex Code
19671 status collapsed
19672
19673 \begin_layout Plain Layout
19674 name
19675 \end_layout
19676
19677 \end_inset
19678
19679  may be any valid identifier of branch defined in user's document.
19680  The identifier may include spaces, but in that case the whole thing must
19681  be wrapped in quotes.
19682  The main purpose of this feature is to allow \SpecialChar LaTeX
19683  wrapping around specific
19684  branches as user needs.
19685 \end_layout
19686
19687 \begin_layout Enumerate
19688 The layout of a user (or class) specific caption is being defined.
19689  In this case, 
19690 \begin_inset Flex Code
19691 status collapsed
19692
19693 \begin_layout Plain Layout
19694 <Type>
19695 \end_layout
19696
19697 \end_inset
19698
19699  must be of the form 
19700 \begin_inset Quotes eld
19701 \end_inset
19702
19703
19704 \begin_inset Flex Code
19705 status collapsed
19706
19707 \begin_layout Plain Layout
19708 Caption:<name>
19709 \end_layout
19710
19711 \end_inset
19712
19713
19714 \begin_inset Quotes erd
19715 \end_inset
19716
19717 , where 
19718 \begin_inset Flex Code
19719 status collapsed
19720
19721 \begin_layout Plain Layout
19722 name
19723 \end_layout
19724
19725 \end_inset
19726
19727  specifies the name of the caption as it appears in the menu.
19728  Have a look at the standard caption (
19729 \begin_inset Flex Code
19730 status collapsed
19731
19732 \begin_layout Plain Layout
19733 Caption:Standard
19734 \end_layout
19735
19736 \end_inset
19737
19738 ), the specific captions of the KOMA-Script classes (
19739 \begin_inset Flex Code
19740 status collapsed
19741
19742 \begin_layout Plain Layout
19743 Caption:Above
19744 \end_layout
19745
19746 \end_inset
19747
19748
19749 \begin_inset Flex Code
19750 status collapsed
19751
19752 \begin_layout Plain Layout
19753 Caption:Below
19754 \end_layout
19755
19756 \end_inset
19757
19758 ) or the module 
19759 \family sans
19760 Multilingual
19761 \begin_inset space ~
19762 \end_inset
19763
19764 Captions
19765 \begin_inset Newline linebreak
19766 \end_inset
19767
19768
19769 \family default
19770 (
19771 \begin_inset Flex Code
19772 status collapsed
19773
19774 \begin_layout Plain Layout
19775 Caption:Bicaption
19776 \end_layout
19777
19778 \end_inset
19779
19780 ) for applications.
19781 \end_layout
19782
19783 \begin_layout Standard
19784 The 
19785 \begin_inset Flex Code
19786 status collapsed
19787
19788 \begin_layout Plain Layout
19789 InsetLayout
19790 \end_layout
19791
19792 \end_inset
19793
19794  definition can contain the following entries:
19795 \end_layout
19796
19797 \begin_layout Description
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 AddToToc
19803 \end_layout
19804
19805 \end_inset
19806
19807  [
19808 \begin_inset Flex Code
19809 status collapsed
19810
19811 \begin_layout Plain Layout
19812 string
19813 \end_layout
19814
19815 \end_inset
19816
19817 =""] This inset will appear in the table of contents of the given type.
19818  An empty string disables.
19819  See also the OutlinerName and the IsTocCaption commands.
19820  This is only implemented for Flex insets.
19821  Default: disabled.
19822 \end_layout
19823
19824 \begin_layout Description
19825 \begin_inset Flex Code
19826 status collapsed
19827
19828 \begin_layout Plain Layout
19829 Argument
19830 \end_layout
19831
19832 \end_inset
19833
19834  [
19835 \begin_inset Flex Code
19836 status collapsed
19837
19838 \begin_layout Plain Layout
19839 int
19840 \end_layout
19841
19842 \end_inset
19843
19844 ] Defines argument number of a command\SpecialChar breakableslash
19845 environment associated with the current
19846  layout.
19847  The definition must end with 
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852 EndArgument
19853 \end_layout
19854
19855 \end_inset
19856
19857 .
19858  See 
19859 \begin_inset CommandInset ref
19860 LatexCommand ref
19861 reference "subsec:Paragraph-Styles"
19862
19863 \end_inset
19864
19865  for details.
19866 \end_layout
19867
19868 \begin_layout Description
19869 \begin_inset Flex Code
19870 status collapsed
19871
19872 \begin_layout Plain Layout
19873 BabelPreamble
19874 \end_layout
19875
19876 \end_inset
19877
19878  Preamble for changing language commands; see 
19879 \begin_inset CommandInset ref
19880 LatexCommand ref
19881 reference "subsec:I18n"
19882
19883 \end_inset
19884
19885 .
19886 \end_layout
19887
19888 \begin_layout Description
19889 \begin_inset Flex Code
19890 status collapsed
19891
19892 \begin_layout Plain Layout
19893 BgColor
19894 \end_layout
19895
19896 \end_inset
19897
19898  [
19899 \begin_inset Flex Code
19900 status collapsed
19901
19902 \begin_layout Plain Layout
19903 <name>
19904 \end_layout
19905
19906 \end_inset
19907
19908 ] The color for the inset's background.
19909  See 
19910 \begin_inset CommandInset ref
19911 LatexCommand ref
19912 reference "chap:Names-of-colors"
19913
19914 \end_inset
19915
19916  for a list of the available color names.
19917 \end_layout
19918
19919 \begin_layout Description
19920 \begin_inset Flex Code
19921 status collapsed
19922
19923 \begin_layout Plain Layout
19924 ContentAsLabel
19925 \end_layout
19926
19927 \end_inset
19928
19929  [
19930 \begin_inset Flex Code
19931 status collapsed
19932
19933 \begin_layout Plain Layout
19934
19935 \emph on
19936 0
19937 \end_layout
19938
19939 \end_inset
19940
19941 ,
19942 \begin_inset space \thinspace{}
19943 \end_inset
19944
19945
19946 \begin_inset Flex Code
19947 status collapsed
19948
19949 \begin_layout Plain Layout
19950 1
19951 \end_layout
19952
19953 \end_inset
19954
19955 ] Whether to use the content of the inset as the label, when the inset is
19956  closed.
19957  Default is false.
19958 \end_layout
19959
19960 \begin_layout Description
19961 \begin_inset Flex Code
19962 status collapsed
19963
19964 \begin_layout Plain Layout
19965 CopyStyle
19966 \end_layout
19967
19968 \end_inset
19969
19970  [
19971 \begin_inset Flex Code
19972 status collapsed
19973
19974 \begin_layout Plain Layout
19975 <type>
19976 \end_layout
19977
19978 \end_inset
19979
19980 ] As with paragraph styles, see 
19981 \begin_inset CommandInset ref
19982 LatexCommand ref
19983 reference "subsec:Paragraph-Styles"
19984
19985 \end_inset
19986
19987 .
19988  Note that you need to specify the complete type, e.
19989 \begin_inset space \thinspace{}
19990 \end_inset
19991
19992 g.
19993 \begin_inset space ~
19994 \end_inset
19995
19996
19997 \begin_inset Flex Code
19998 status collapsed
19999
20000 \begin_layout Plain Layout
20001 CopyStyle Flex:<name>
20002 \end_layout
20003
20004 \end_inset
20005
20006 .
20007 \end_layout
20008
20009 \begin_layout Description
20010 \begin_inset Flex Code
20011 status collapsed
20012
20013 \begin_layout Plain Layout
20014 CustomPars
20015 \end_layout
20016
20017 \end_inset
20018
20019  [
20020 \begin_inset Flex Code
20021 status collapsed
20022
20023 \begin_layout Plain Layout
20024
20025 \emph on
20026 0
20027 \end_layout
20028
20029 \end_inset
20030
20031 ,
20032 \begin_inset space \thinspace{}
20033 \end_inset
20034
20035
20036 \begin_inset Flex Code
20037 status collapsed
20038
20039 \begin_layout Plain Layout
20040 1
20041 \end_layout
20042
20043 \end_inset
20044
20045 ] Indicates whether the user may employ the Paragraph Settings dialog to
20046  customize the paragraph.
20047 \end_layout
20048
20049 \begin_layout Description
20050 \begin_inset Flex Code
20051 status collapsed
20052
20053 \begin_layout Plain Layout
20054 Decoration
20055 \end_layout
20056
20057 \end_inset
20058
20059  can be 
20060 \begin_inset Flex Code
20061 status collapsed
20062
20063 \begin_layout Plain Layout
20064 Classic
20065 \end_layout
20066
20067 \end_inset
20068
20069
20070 \begin_inset Flex Code
20071 status collapsed
20072
20073 \begin_layout Plain Layout
20074 Minimalistic
20075 \end_layout
20076
20077 \end_inset
20078
20079 , or 
20080 \begin_inset Flex Code
20081 status collapsed
20082
20083 \begin_layout Plain Layout
20084 Conglomerate
20085 \end_layout
20086
20087 \end_inset
20088
20089 , describing the rendering style used for the inset's frame and buttons.
20090  Footnotes generally use 
20091 \begin_inset Flex Code
20092 status collapsed
20093
20094 \begin_layout Plain Layout
20095 Classic
20096 \end_layout
20097
20098 \end_inset
20099
20100 , ERT insets generally 
20101 \begin_inset Flex Code
20102 status collapsed
20103
20104 \begin_layout Plain Layout
20105 Minimalistic
20106 \end_layout
20107
20108 \end_inset
20109
20110 , and character styles 
20111 \begin_inset Flex Code
20112 status collapsed
20113
20114 \begin_layout Plain Layout
20115 Conglomerate
20116 \end_layout
20117
20118 \end_inset
20119
20120 .
20121 \end_layout
20122
20123 \begin_layout Description
20124 \begin_inset Flex Code
20125 status collapsed
20126
20127 \begin_layout Plain Layout
20128 Display
20129 \end_layout
20130
20131 \end_inset
20132
20133  [
20134 \begin_inset Flex Code
20135 status collapsed
20136
20137 \begin_layout Plain Layout
20138 0
20139 \end_layout
20140
20141 \end_inset
20142
20143 ,
20144 \emph on
20145
20146 \begin_inset space \thinspace{}
20147 \end_inset
20148
20149
20150 \emph default
20151
20152 \begin_inset Flex Code
20153 status collapsed
20154
20155 \begin_layout Plain Layout
20156
20157 \emph on
20158 1
20159 \end_layout
20160
20161 \end_inset
20162
20163 ] Only useful if 
20164 \begin_inset Flex Code
20165 status collapsed
20166
20167 \begin_layout Plain Layout
20168 LatexType
20169 \end_layout
20170
20171 \end_inset
20172
20173  is 
20174 \begin_inset Flex Code
20175 status collapsed
20176
20177 \begin_layout Plain Layout
20178 Environment
20179 \end_layout
20180
20181 \end_inset
20182
20183 .
20184  Indicates whether the environment will stand on its own in the output or
20185  will appear inline with the surrounding text.
20186  If set to false, it is supposed that the \SpecialChar LaTeX
20187  environment ignores white space
20188  (including one newline character) after the 
20189 \begin_inset Flex Code
20190 status collapsed
20191
20192 \begin_layout Plain Layout
20193
20194 \backslash
20195 begin{
20196 \emph on
20197 LatexName
20198 \emph default
20199 }
20200 \end_layout
20201
20202 \end_inset
20203
20204  and 
20205 \begin_inset Flex Code
20206 status collapsed
20207
20208 \begin_layout Plain Layout
20209
20210 \backslash
20211 end{
20212 \emph on
20213 LatexName
20214 \emph default
20215 }
20216 \end_layout
20217
20218 \end_inset
20219
20220  tags.
20221  Default is true.
20222 \change_inserted 731793113 1538674858
20223
20224 \end_layout
20225
20226 \begin_layout Description
20227
20228 \change_inserted 731793113 1538674891
20229 \begin_inset Flex Code
20230 status open
20231
20232 \begin_layout Plain Layout
20233
20234 \change_inserted 731793113 1538674863
20235 EditExternal
20236 \change_unchanged
20237
20238 \end_layout
20239
20240 \end_inset
20241
20242  [
20243 \emph on
20244 0
20245 \emph default
20246 ,1] Allow the contents of the inset to be edited externally (using whatever
20247  editor is defined for the document's output format).
20248 \change_unchanged
20249
20250 \end_layout
20251
20252 \begin_layout Description
20253 \begin_inset Flex Code
20254 status collapsed
20255
20256 \begin_layout Plain Layout
20257 End
20258 \end_layout
20259
20260 \end_inset
20261
20262  Required at the end of the 
20263 \begin_inset Flex Code
20264 status collapsed
20265
20266 \begin_layout Plain Layout
20267 InsetLayout
20268 \end_layout
20269
20270 \end_inset
20271
20272  declarations.
20273 \end_layout
20274
20275 \begin_layout Description
20276 \begin_inset Flex Code
20277 status collapsed
20278
20279 \begin_layout Plain Layout
20280 Font
20281 \end_layout
20282
20283 \end_inset
20284
20285  The font used for both the text body 
20286 \emph on
20287 and
20288 \emph default
20289  the label.
20290  See 
20291 \begin_inset CommandInset ref
20292 LatexCommand ref
20293 reference "subsec:Font-description"
20294
20295 \end_inset
20296
20297 .
20298  Note that defining this font automatically defines the 
20299 \begin_inset Flex Code
20300 status collapsed
20301
20302 \begin_layout Plain Layout
20303 LabelFont
20304 \end_layout
20305
20306 \end_inset
20307
20308  to the same value, so define this first and define 
20309 \begin_inset Flex Code
20310 status collapsed
20311
20312 \begin_layout Plain Layout
20313 LabelFont
20314 \end_layout
20315
20316 \end_inset
20317
20318  later if you want them to be different.
20319 \end_layout
20320
20321 \begin_layout Description
20322 \begin_inset Flex Code
20323 status collapsed
20324
20325 \begin_layout Plain Layout
20326 FixedWidthPreambleEncoding
20327 \end_layout
20328
20329 \end_inset
20330
20331  [
20332 \begin_inset Flex Code
20333 status collapsed
20334
20335 \begin_layout Plain Layout
20336
20337 \emph on
20338 0
20339 \end_layout
20340
20341 \end_inset
20342
20343 ,
20344 \begin_inset space \thinspace{}
20345 \end_inset
20346
20347
20348 \begin_inset Flex Code
20349 status collapsed
20350
20351 \begin_layout Plain Layout
20352 1
20353 \end_layout
20354
20355 \end_inset
20356
20357 ] Force a fixed width encoding for the translated contents of 
20358 \begin_inset Flex Code
20359 status collapsed
20360
20361 \begin_layout Plain Layout
20362 BabelPreamble
20363 \end_layout
20364
20365 \end_inset
20366
20367  and 
20368 \begin_inset Flex Code
20369 status collapsed
20370
20371 \begin_layout Plain Layout
20372 LangPreamble
20373 \end_layout
20374
20375 \end_inset
20376
20377  code generated by this layout.
20378  This is needed for special \SpecialChar LaTeX
20379 -packages like 
20380 \family typewriter
20381 listings
20382 \family default
20383  that do not work with variable width encodings such as 
20384 \family sans
20385 utf8
20386 \family default
20387 .
20388  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
20389  backends such as Xe\SpecialChar TeX
20390  or
20391  Lua\SpecialChar TeX
20392  are used.
20393 \end_layout
20394
20395 \begin_layout Description
20396 \begin_inset Flex Code
20397 status collapsed
20398
20399 \begin_layout Plain Layout
20400 ForceLocalFontSwitch
20401 \end_layout
20402
20403 \end_inset
20404
20405  [
20406 \begin_inset Flex Code
20407 status collapsed
20408
20409 \begin_layout Plain Layout
20410
20411 \emph on
20412 0
20413 \end_layout
20414
20415 \end_inset
20416
20417 ,
20418 \begin_inset space \thinspace{}
20419 \end_inset
20420
20421
20422 \begin_inset Flex Code
20423 status collapsed
20424
20425 \begin_layout Plain Layout
20426 1
20427 \end_layout
20428
20429 \end_inset
20430
20431 ] When using babel, always use a local font switch (
20432 \begin_inset Flex Code
20433 status collapsed
20434
20435 \begin_layout Plain Layout
20436
20437 \backslash
20438 foreignlanguage
20439 \end_layout
20440
20441 \end_inset
20442
20443 ), never a global one (such as 
20444 \begin_inset Flex Code
20445 status collapsed
20446
20447 \begin_layout Plain Layout
20448
20449 \backslash
20450 selectlanguage
20451 \end_layout
20452
20453 \end_inset
20454
20455 ).
20456 \end_layout
20457
20458 \begin_layout Description
20459 \begin_inset Flex Code
20460 status collapsed
20461
20462 \begin_layout Plain Layout
20463 ForceLTR
20464 \end_layout
20465
20466 \end_inset
20467
20468  [
20469 \begin_inset Flex Code
20470 status collapsed
20471
20472 \begin_layout Plain Layout
20473
20474 \emph on
20475 0
20476 \end_layout
20477
20478 \end_inset
20479
20480 ,
20481 \begin_inset space \thinspace{}
20482 \end_inset
20483
20484
20485 \begin_inset Flex Code
20486 status collapsed
20487
20488 \begin_layout Plain Layout
20489 1
20490 \end_layout
20491
20492 \end_inset
20493
20494 ] Force the 
20495 \begin_inset Quotes eld
20496 \end_inset
20497
20498 latex
20499 \begin_inset Quotes erd
20500 \end_inset
20501
20502  language, leading to Left-to-Right (Latin) output, e.
20503 \begin_inset space \thinspace{}
20504 \end_inset
20505
20506 g.
20507 \begin_inset space \space{}
20508 \end_inset
20509
20510 in \SpecialChar TeX
20511  code or URL.
20512  A kludge.
20513 \end_layout
20514
20515 \begin_layout Description
20516 \begin_inset Flex Code
20517 status collapsed
20518
20519 \begin_layout Plain Layout
20520 ForceOwnlines
20521 \end_layout
20522
20523 \end_inset
20524
20525  [
20526 \begin_inset Flex Code
20527 status collapsed
20528
20529 \begin_layout Plain Layout
20530
20531 \emph on
20532 0
20533 \end_layout
20534
20535 \end_inset
20536
20537 ,
20538 \begin_inset space \thinspace{}
20539 \end_inset
20540
20541
20542 \begin_inset Flex Code
20543 status collapsed
20544
20545 \begin_layout Plain Layout
20546 1
20547 \end_layout
20548
20549 \end_inset
20550
20551 ] Force a line break in the \SpecialChar LaTeX
20552  output before the inset starts and after the
20553  inset ends.
20554  This assures the inset itself is output on its own lines, for parsing purposes.
20555 \end_layout
20556
20557 \begin_layout Description
20558 \begin_inset Flex Code
20559 status collapsed
20560
20561 \begin_layout Plain Layout
20562 ForcePlain
20563 \end_layout
20564
20565 \end_inset
20566
20567  [
20568 \begin_inset Flex Code
20569 status collapsed
20570
20571 \begin_layout Plain Layout
20572
20573 \emph on
20574 0
20575 \end_layout
20576
20577 \end_inset
20578
20579 ,
20580 \begin_inset space \thinspace{}
20581 \end_inset
20582
20583
20584 \begin_inset Flex Code
20585 status collapsed
20586
20587 \begin_layout Plain Layout
20588 1
20589 \end_layout
20590
20591 \end_inset
20592
20593 ] Indicates whether the 
20594 \begin_inset Flex Code
20595 status collapsed
20596
20597 \begin_layout Plain Layout
20598 PlainLayout
20599 \end_layout
20600
20601 \end_inset
20602
20603  should be used or, instead, the user can change the paragraph style used
20604  in the inset.
20605  Default is false.
20606 \end_layout
20607
20608 \begin_layout Description
20609 \begin_inset Flex Code
20610 status collapsed
20611
20612 \begin_layout Plain Layout
20613 FreeSpacing
20614 \end_layout
20615
20616 \end_inset
20617
20618  [
20619 \begin_inset Flex Code
20620 status collapsed
20621
20622 \begin_layout Plain Layout
20623
20624 \emph on
20625 0
20626 \end_layout
20627
20628 \end_inset
20629
20630 ,
20631 \begin_inset space \thinspace{}
20632 \end_inset
20633
20634
20635 \begin_inset Flex Code
20636 status collapsed
20637
20638 \begin_layout Plain Layout
20639 1
20640 \end_layout
20641
20642 \end_inset
20643
20644 ] As with paragraph styles, see 
20645 \begin_inset CommandInset ref
20646 LatexCommand ref
20647 reference "subsec:Paragraph-Styles"
20648
20649 \end_inset
20650
20651 .
20652 \end_layout
20653
20654 \begin_layout Description
20655 \begin_inset Flex Code
20656 status collapsed
20657
20658 \begin_layout Plain Layout
20659 HTML*
20660 \end_layout
20661
20662 \end_inset
20663
20664  These tags control the XHTML output.
20665  See 
20666 \begin_inset CommandInset ref
20667 LatexCommand ref
20668 reference "sec:Tags-for-XHTML"
20669
20670 \end_inset
20671
20672 .
20673 \end_layout
20674
20675 \begin_layout Description
20676 \begin_inset Flex Code
20677 status collapsed
20678
20679 \begin_layout Plain Layout
20680 InToc
20681 \end_layout
20682
20683 \end_inset
20684
20685  [
20686 \begin_inset Flex Code
20687 status collapsed
20688
20689 \begin_layout Plain Layout
20690
20691 \emph on
20692 0
20693 \end_layout
20694
20695 \end_inset
20696
20697 ,
20698 \begin_inset space \thinspace{}
20699 \end_inset
20700
20701
20702 \begin_inset Flex Code
20703 status collapsed
20704
20705 \begin_layout Plain Layout
20706 1
20707 \end_layout
20708
20709 \end_inset
20710
20711 ] Whether to include the contents of this inset in the strings generated
20712  for the `Outline' pane for all table of contents, regardless of the AddToToc
20713  setting.
20714  One would not, for example, want the content of a footnote in a section
20715  header to be included in the TOC displayed in the outline, but one would
20716  normally want the content of a character style displayed.
20717  Default is false: not to include.
20718 \end_layout
20719
20720 \begin_layout Description
20721 \begin_inset Flex Code
20722 status collapsed
20723
20724 \begin_layout Plain Layout
20725 IsTocCaption
20726 \end_layout
20727
20728 \end_inset
20729
20730  [
20731 \begin_inset Flex Code
20732 status collapsed
20733
20734 \begin_layout Plain Layout
20735
20736 \emph on
20737 0
20738 \end_layout
20739
20740 \end_inset
20741
20742 ,
20743 \begin_inset space \thinspace{}
20744 \end_inset
20745
20746
20747 \begin_inset Flex Code
20748 status collapsed
20749
20750 \begin_layout Plain Layout
20751 1
20752 \end_layout
20753
20754 \end_inset
20755
20756 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20757  of its contents in its item in the table of contents.
20758  Otherwise, only the label appears.
20759 \end_layout
20760
20761 \begin_layout Description
20762 \begin_inset Flex Code
20763 status collapsed
20764
20765 \begin_layout Plain Layout
20766 KeepEmpty
20767 \end_layout
20768
20769 \end_inset
20770
20771  [
20772 \emph on
20773
20774 \begin_inset Flex Code
20775 status collapsed
20776
20777 \begin_layout Plain Layout
20778 0
20779 \end_layout
20780
20781 \end_inset
20782
20783
20784 \emph default
20785 ,
20786 \begin_inset space \thinspace{}
20787 \end_inset
20788
20789
20790 \begin_inset Flex Code
20791 status collapsed
20792
20793 \begin_layout Plain Layout
20794 1
20795 \end_layout
20796
20797 \end_inset
20798
20799 ] As with paragraph styles, see 
20800 \begin_inset CommandInset ref
20801 LatexCommand ref
20802 reference "subsec:Paragraph-Styles"
20803
20804 \end_inset
20805
20806 .
20807 \end_layout
20808
20809 \begin_layout Description
20810 \begin_inset Flex Code
20811 status collapsed
20812
20813 \begin_layout Plain Layout
20814 LabelFont
20815 \end_layout
20816
20817 \end_inset
20818
20819  The font used for the label.
20820  See 
20821 \begin_inset CommandInset ref
20822 LatexCommand ref
20823 reference "subsec:Font-description"
20824
20825 \end_inset
20826
20827 .
20828  Note that this definition can never appear before 
20829 \begin_inset Flex Code
20830 status collapsed
20831
20832 \begin_layout Plain Layout
20833 Font
20834 \end_layout
20835
20836 \end_inset
20837
20838 , lest it be ineffective.
20839 \end_layout
20840
20841 \begin_layout Description
20842 \begin_inset Flex Code
20843 status collapsed
20844
20845 \begin_layout Plain Layout
20846 LabelString
20847 \end_layout
20848
20849 \end_inset
20850
20851  [
20852 \begin_inset Flex Code
20853 status collapsed
20854
20855 \begin_layout Plain Layout
20856 string
20857 \end_layout
20858
20859 \end_inset
20860
20861 =
20862 \begin_inset Quotes erd
20863 \end_inset
20864
20865
20866 \begin_inset Quotes erd
20867 \end_inset
20868
20869 ] What will be displayed on the button or elsewhere as the inset label.
20870  Some inset types (
20871 \begin_inset Flex Code
20872 status collapsed
20873
20874 \begin_layout Plain Layout
20875 \SpecialChar TeX
20876  code
20877 \end_layout
20878
20879 \end_inset
20880
20881  and 
20882 \begin_inset Flex Code
20883 status collapsed
20884
20885 \begin_layout Plain Layout
20886 Branch
20887 \end_layout
20888
20889 \end_inset
20890
20891 ) modify this label on the fly.
20892 \end_layout
20893
20894 \begin_layout Description
20895 \begin_inset Flex Code
20896 status collapsed
20897
20898 \begin_layout Plain Layout
20899 LangPreamble
20900 \end_layout
20901
20902 \end_inset
20903
20904  Language dependent preamble; see 
20905 \begin_inset CommandInset ref
20906 LatexCommand ref
20907 reference "subsec:I18n"
20908
20909 \end_inset
20910
20911 .
20912 \end_layout
20913
20914 \begin_layout Description
20915 \begin_inset Flex Code
20916 status collapsed
20917
20918 \begin_layout Plain Layout
20919 LatexName
20920 \end_layout
20921
20922 \end_inset
20923
20924  [
20925 \begin_inset Flex Code
20926 status collapsed
20927
20928 \begin_layout Plain Layout
20929 <name>
20930 \end_layout
20931
20932 \end_inset
20933
20934 ] The name of the corresponding \SpecialChar LaTeX
20935  stuff.
20936  Either the environment or command name.
20937 \end_layout
20938
20939 \begin_layout Description
20940 \begin_inset Flex Code
20941 status collapsed
20942
20943 \begin_layout Plain Layout
20944 LatexParam
20945 \end_layout
20946
20947 \end_inset
20948
20949  [
20950 \begin_inset Flex Code
20951 status collapsed
20952
20953 \begin_layout Plain Layout
20954 <parameter>
20955 \end_layout
20956
20957 \end_inset
20958
20959 ] The optional parameter for the corresponding 
20960 \begin_inset Flex Code
20961 status collapsed
20962
20963 \begin_layout Plain Layout
20964 LatexName
20965 \end_layout
20966
20967 \end_inset
20968
20969  stuff, including possible bracket pairs like 
20970 \begin_inset Flex Code
20971 status collapsed
20972
20973 \begin_layout Plain Layout
20974 []
20975 \end_layout
20976
20977 \end_inset
20978
20979 .
20980  This parameter cannot be changed from within \SpecialChar LyX
20981  (use 
20982 \begin_inset Flex Code
20983 status collapsed
20984
20985 \begin_layout Plain Layout
20986 Argument
20987 \end_layout
20988
20989 \end_inset
20990
20991  for customizable parameters).
20992  It will be output as is after all \SpecialChar LaTeX
20993  
20994 \begin_inset Flex Code
20995 status collapsed
20996
20997 \begin_layout Plain Layout
20998 Argument
20999 \end_layout
21000
21001 \end_inset
21002
21003 s.
21004 \end_layout
21005
21006 \begin_layout Description
21007 \begin_inset Flex Code
21008 status collapsed
21009
21010 \begin_layout Plain Layout
21011 LatexType
21012 \end_layout
21013
21014 \end_inset
21015
21016  [
21017 \begin_inset Flex Code
21018 status collapsed
21019
21020 \begin_layout Plain Layout
21021 Command, Environment, None
21022 \end_layout
21023
21024 \end_inset
21025
21026 ] How the style should be translated into \SpecialChar LaTeX
21027 .
21028 \begin_inset Foot
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032 \begin_inset Flex Code
21033 status collapsed
21034
21035 \begin_layout Plain Layout
21036 LatexType
21037 \end_layout
21038
21039 \end_inset
21040
21041  is perhaps a bit misleading, since these rules apply to SGML classes too.
21042  Visit the SGML class files for specific examples.
21043 \end_layout
21044
21045 \end_inset
21046
21047
21048 \end_layout
21049
21050 \begin_deeper
21051 \begin_layout Description
21052 \begin_inset Flex Code
21053 status collapsed
21054
21055 \begin_layout Plain Layout
21056 None
21057 \end_layout
21058
21059 \end_inset
21060
21061  means nothing special
21062 \end_layout
21063
21064 \begin_layout Description
21065 \begin_inset Flex Code
21066 status collapsed
21067
21068 \begin_layout Plain Layout
21069 Command
21070 \end_layout
21071
21072 \end_inset
21073
21074  means 
21075 \begin_inset Flex Code
21076 status collapsed
21077
21078 \begin_layout Plain Layout
21079
21080 \backslash
21081
21082 \emph on
21083 LatexName
21084 \emph default
21085 {\SpecialChar ldots
21086 }
21087 \end_layout
21088
21089 \end_inset
21090
21091
21092 \end_layout
21093
21094 \begin_layout Description
21095 \begin_inset Flex Code
21096 status collapsed
21097
21098 \begin_layout Plain Layout
21099 Environment
21100 \end_layout
21101
21102 \end_inset
21103
21104  means 
21105 \begin_inset Flex Code
21106 status collapsed
21107
21108 \begin_layout Plain Layout
21109
21110 \backslash
21111 begin{
21112 \emph on
21113 LatexName
21114 \emph default
21115 }\SpecialChar ldots
21116
21117 \backslash
21118 end{
21119 \emph on
21120 LatexName
21121 \emph default
21122 }
21123 \end_layout
21124
21125 \end_inset
21126
21127
21128 \end_layout
21129
21130 \begin_layout Standard
21131 Putting the last few things together, the \SpecialChar LaTeX
21132  output will be either: 
21133 \end_layout
21134
21135 \begin_layout LyX-Code
21136
21137 \backslash
21138 LatexName[LatexParam]{\SpecialChar ldots
21139 }
21140 \end_layout
21141
21142 \begin_layout Standard
21143 or: 
21144 \end_layout
21145
21146 \begin_layout LyX-Code
21147
21148 \backslash
21149 begin{LatexName}[LatexParam] \SpecialChar ldots
21150  
21151 \backslash
21152 end{LatexName}
21153 \end_layout
21154
21155 \begin_layout Standard
21156 depending upon the \SpecialChar LaTeX
21157  type.
21158 \end_layout
21159
21160 \end_deeper
21161 \begin_layout Description
21162 \begin_inset Flex Code
21163 status collapsed
21164
21165 \begin_layout Plain Layout
21166 LeftDelim
21167 \end_layout
21168
21169 \end_inset
21170
21171  [
21172 \begin_inset Flex Code
21173 status collapsed
21174
21175 \begin_layout Plain Layout
21176 string
21177 \end_layout
21178
21179 \end_inset
21180
21181 ] A string that is put at the beginning of the layout content.
21182  A line break in the output can be indicated by 
21183 \begin_inset Flex Code
21184 status collapsed
21185
21186 \begin_layout Plain Layout
21187 <br/>
21188 \end_layout
21189
21190 \end_inset
21191
21192 .
21193 \end_layout
21194
21195 \begin_layout Description
21196 \begin_inset Flex Code
21197 status collapsed
21198
21199 \begin_layout Plain Layout
21200 LyxType
21201 \end_layout
21202
21203 \end_inset
21204
21205  Can be 
21206 \begin_inset Flex Code
21207 status collapsed
21208
21209 \begin_layout Plain Layout
21210 charstyle
21211 \end_layout
21212
21213 \end_inset
21214
21215
21216 \begin_inset Flex Code
21217 status collapsed
21218
21219 \begin_layout Plain Layout
21220 custom
21221 \end_layout
21222
21223 \end_inset
21224
21225
21226 \begin_inset Flex Code
21227 status collapsed
21228
21229 \begin_layout Plain Layout
21230 element
21231 \end_layout
21232
21233 \end_inset
21234
21235  or 
21236 \begin_inset Flex Code
21237 status collapsed
21238
21239 \begin_layout Plain Layout
21240 end
21241 \end_layout
21242
21243 \end_inset
21244
21245  (indicating a dummy definition ending definitions of charstyles, etc).
21246  This entry is required in and is only meaningful for Flex insets.
21247  Among other things, it determines on which menu this inset will appear.
21248  Setting 
21249 \begin_inset Flex Code
21250 status collapsed
21251
21252 \begin_layout Plain Layout
21253 LyxType
21254 \end_layout
21255
21256 \end_inset
21257
21258  to 
21259 \begin_inset Flex Code
21260 status collapsed
21261
21262 \begin_layout Plain Layout
21263 charstyle
21264 \end_layout
21265
21266 \end_inset
21267
21268  will automatically set 
21269 \begin_inset Flex Code
21270 status collapsed
21271
21272 \begin_layout Plain Layout
21273 MultiPar
21274 \end_layout
21275
21276 \end_inset
21277
21278  to false and 
21279 \begin_inset Flex Code
21280 status collapsed
21281
21282 \begin_layout Plain Layout
21283 ForcePlain
21284 \end_layout
21285
21286 \end_inset
21287
21288  to true.
21289  
21290 \begin_inset Flex Code
21291 status collapsed
21292
21293 \begin_layout Plain Layout
21294 MultiPar
21295 \end_layout
21296
21297 \end_inset
21298
21299  can be set to true, or 
21300 \begin_inset Flex Code
21301 status collapsed
21302
21303 \begin_layout Plain Layout
21304 ForcePlain
21305 \end_layout
21306
21307 \end_inset
21308
21309  to false, for 
21310 \begin_inset Flex Code
21311 status collapsed
21312
21313 \begin_layout Plain Layout
21314 charstyle
21315 \end_layout
21316
21317 \end_inset
21318
21319  insets by setting it 
21320 \emph on
21321 after
21322 \emph default
21323  you set the 
21324 \begin_inset Flex Code
21325 status collapsed
21326
21327 \begin_layout Plain Layout
21328 LyxType
21329 \end_layout
21330
21331 \end_inset
21332
21333 .
21334 \change_inserted -712698321 1555575738
21335
21336 \end_layout
21337
21338 \begin_layout Description
21339
21340 \change_inserted -712698321 1555575844
21341 \begin_inset Flex Code
21342 status collapsed
21343
21344 \begin_layout Plain Layout
21345
21346 \change_inserted -712698321 1555575740
21347 MenuString
21348 \change_unchanged
21349
21350 \end_layout
21351
21352 \end_inset
21353
21354  
21355 \begin_inset Flex Code
21356 status collapsed
21357
21358 \begin_layout Plain Layout
21359
21360 \change_inserted -712698321 1555575740
21361 [string]
21362 \change_unchanged
21363
21364 \end_layout
21365
21366 \end_inset
21367
21368  A dedicated string for the menu.
21369  You can define an accelerator by appending the respective character to
21370  the string, divided by 
21371 \begin_inset Quotes eld
21372 \end_inset
21373
21374 |
21375 \begin_inset Quotes erd
21376 \end_inset
21377
21378  (e.
21379 \begin_inset space \thinspace{}
21380 \end_inset
21381
21382 g.
21383 \begin_inset space \space{}
21384 \end_inset
21385
21386
21387 \begin_inset Quotes eld
21388 \end_inset
21389
21390
21391 \begin_inset Flex Code
21392 status collapsed
21393
21394 \begin_layout Plain Layout
21395
21396 \change_inserted -712698321 1555575781
21397 My Inset|M
21398 \change_unchanged
21399
21400 \end_layout
21401
21402 \end_inset
21403
21404
21405 \begin_inset Quotes erd
21406 \end_inset
21407
21408 ).
21409  This specification is optional.
21410  If it is not given the inset name as specified in the type declaration
21411  will be used instead for the menu.
21412 \change_unchanged
21413
21414 \end_layout
21415
21416 \begin_layout Description
21417 \begin_inset Flex Code
21418 status collapsed
21419
21420 \begin_layout Plain Layout
21421 MultiPar
21422 \end_layout
21423
21424 \end_inset
21425
21426  [
21427 \begin_inset Flex Code
21428 status collapsed
21429
21430 \begin_layout Plain Layout
21431
21432 \emph on
21433 0
21434 \end_layout
21435
21436 \end_inset
21437
21438 ,
21439 \begin_inset space \thinspace{}
21440 \end_inset
21441
21442
21443 \begin_inset Flex Code
21444 status collapsed
21445
21446 \begin_layout Plain Layout
21447 1
21448 \end_layout
21449
21450 \end_inset
21451
21452 ] Whether multiple paragraphs are permitted in this inset.
21453  This will also set 
21454 \begin_inset Flex Code
21455 status collapsed
21456
21457 \begin_layout Plain Layout
21458 CustomPars
21459 \end_layout
21460
21461 \end_inset
21462
21463  to the same value and 
21464 \begin_inset Flex Code
21465 status collapsed
21466
21467 \begin_layout Plain Layout
21468 ForcePlain
21469 \end_layout
21470
21471 \end_inset
21472
21473  to the opposite value.
21474  These can be reset to other values, if they are used 
21475 \emph on
21476 after
21477 \emph default
21478  
21479 \begin_inset Flex Code
21480 status collapsed
21481
21482 \begin_layout Plain Layout
21483 MultiPar
21484 \end_layout
21485
21486 \end_inset
21487
21488 .
21489  Default is true.
21490 \end_layout
21491
21492 \begin_layout Description
21493 \begin_inset Flex Code
21494 status collapsed
21495
21496 \begin_layout Plain Layout
21497 NeedProtect
21498 \end_layout
21499
21500 \end_inset
21501
21502  [
21503 \begin_inset Flex Code
21504 status collapsed
21505
21506 \begin_layout Plain Layout
21507
21508 \emph on
21509 0
21510 \end_layout
21511
21512 \end_inset
21513
21514 ,
21515 \begin_inset space \thinspace{}
21516 \end_inset
21517
21518
21519 \begin_inset Flex Code
21520 status collapsed
21521
21522 \begin_layout Plain Layout
21523 1
21524 \end_layout
21525
21526 \end_inset
21527
21528 ] Whether fragile commands in this inset should be 
21529 \begin_inset Flex Code
21530 status collapsed
21531
21532 \begin_layout Plain Layout
21533
21534 \backslash
21535 protect
21536 \end_layout
21537
21538 \end_inset
21539
21540 'ed.
21541  (Note: This is 
21542 \emph on
21543 not
21544 \emph default
21545  whether the command should itself be protected.) Default is false.
21546 \change_inserted -712698321 1523633958
21547
21548 \end_layout
21549
21550 \begin_layout Description
21551
21552 \change_inserted -712698321 1552395786
21553 \begin_inset Flex Code
21554 status collapsed
21555
21556 \begin_layout Plain Layout
21557
21558 \change_inserted -712698321 1523633961
21559 NeedCProtect
21560 \change_unchanged
21561
21562 \end_layout
21563
21564 \end_inset
21565
21566  [
21567 \begin_inset Flex Code
21568 status collapsed
21569
21570 \begin_layout Plain Layout
21571
21572 \change_inserted -712698321 1523633958
21573
21574 \emph on
21575 0
21576 \change_unchanged
21577
21578 \end_layout
21579
21580 \end_inset
21581
21582 ,
21583 \begin_inset space \thinspace{}
21584 \end_inset
21585
21586
21587 \begin_inset Flex Code
21588 status collapsed
21589
21590 \begin_layout Plain Layout
21591
21592 \change_inserted -712698321 1523633958
21593 1
21594 \change_unchanged
21595
21596 \end_layout
21597
21598 \end_inset
21599
21600 ] This causes macros that contain this inset to be protected with 
21601 \begin_inset Flex Code
21602 status collapsed
21603
21604 \begin_layout Plain Layout
21605
21606 \change_inserted -712698321 1523634038
21607
21608 \backslash
21609 cprotect
21610 \change_unchanged
21611
21612 \end_layout
21613
21614 \end_inset
21615
21616  (cf.
21617  package 
21618 \family sans
21619 cprotect
21620 \family default
21621 ) if necessary and thus allows (some) verbatim stuff in macros.
21622  Default is false.
21623 \end_layout
21624
21625 \begin_layout Description
21626
21627 \change_inserted -712698321 1555579651
21628 \begin_inset Flex Code
21629 status collapsed
21630
21631 \begin_layout Plain Layout
21632
21633 \change_inserted -712698321 1552395787
21634 NeedMBoxProtect
21635 \change_unchanged
21636
21637 \end_layout
21638
21639 \end_inset
21640
21641  [
21642 \begin_inset Flex Code
21643 status collapsed
21644
21645 \begin_layout Plain Layout
21646
21647 \change_inserted -712698321 1552395787
21648
21649 \emph on
21650 0
21651 \change_unchanged
21652
21653 \end_layout
21654
21655 \end_inset
21656
21657 ,
21658 \begin_inset space \thinspace{}
21659 \end_inset
21660
21661
21662 \begin_inset Flex Code
21663 status collapsed
21664
21665 \begin_layout Plain Layout
21666
21667 \change_inserted -712698321 1552395787
21668 1
21669 \change_unchanged
21670
21671 \end_layout
21672
21673 \end_inset
21674
21675 ] Whether specific commands in this inset (such as 
21676 \begin_inset Flex Code
21677 status collapsed
21678
21679 \begin_layout Plain Layout
21680
21681 \change_inserted -712698321 1552395787
21682
21683 \backslash
21684 cite
21685 \change_unchanged
21686
21687 \end_layout
21688
21689 \end_inset
21690
21691  and 
21692 \begin_inset Flex Code
21693 status collapsed
21694
21695 \begin_layout Plain Layout
21696
21697 \change_inserted -712698321 1552395787
21698
21699 \backslash
21700 ref
21701 \change_unchanged
21702
21703 \end_layout
21704
21705 \end_inset
21706
21707 ) should be protected in an 
21708 \begin_inset Flex Code
21709 status collapsed
21710
21711 \begin_layout Plain Layout
21712
21713 \change_inserted -712698321 1552395787
21714
21715 \backslash
21716 mbox
21717 \change_unchanged
21718
21719 \end_layout
21720
21721 \end_inset
21722
21723 .
21724  This is particularly needed for insets that draw on 
21725 \family sans
21726 ulem
21727 \family default
21728  or 
21729 \family sans
21730 soul
21731 \family default
21732  commands which parse their content in complex ways.
21733  Default is false.
21734 \end_layout
21735
21736 \begin_layout Description
21737
21738 \change_inserted -712698321 1555579742
21739 \begin_inset Flex Code
21740 status collapsed
21741
21742 \begin_layout Plain Layout
21743
21744 \change_inserted -712698321 1555579658
21745 NewlineCmd
21746 \change_unchanged
21747
21748 \end_layout
21749
21750 \end_inset
21751
21752  
21753 \begin_inset Flex Code
21754 status collapsed
21755
21756 \begin_layout Plain Layout
21757
21758 \change_inserted -712698321 1555579651
21759 [string]
21760 \change_unchanged
21761
21762 \end_layout
21763
21764 \end_inset
21765
21766  Option to define a different command (from the default 
21767 \begin_inset Flex Code
21768 status collapsed
21769
21770 \begin_layout Plain Layout
21771
21772 \change_inserted -712698321 1555579742
21773
21774 \backslash
21775
21776 \backslash
21777
21778 \change_unchanged
21779
21780 \end_layout
21781
21782 \end_inset
21783
21784 ) to be used for line breaks.
21785  The initial backslash must not be specified.
21786 \change_unchanged
21787
21788 \end_layout
21789
21790 \begin_layout Description
21791 \begin_inset Flex Code
21792 status collapsed
21793
21794 \begin_layout Plain Layout
21795 NoInsetLayout
21796 \end_layout
21797
21798 \end_inset
21799
21800  [
21801 \begin_inset Flex Code
21802 status collapsed
21803
21804 \begin_layout Plain Layout
21805 <layout>
21806 \end_layout
21807
21808 \end_inset
21809
21810 ] Deletes an existing 
21811 \begin_inset Flex Code
21812 status collapsed
21813
21814 \begin_layout Plain Layout
21815 InsetLayout
21816 \end_layout
21817
21818 \end_inset
21819
21820 .
21821 \end_layout
21822
21823 \begin_layout Description
21824 \begin_inset Flex Code
21825 status collapsed
21826
21827 \begin_layout Plain Layout
21828 ObsoletedBy
21829 \end_layout
21830
21831 \end_inset
21832
21833  [
21834 \begin_inset Flex Code
21835 status collapsed
21836
21837 \begin_layout Plain Layout
21838 <layout>
21839 \end_layout
21840
21841 \end_inset
21842
21843 ] Name of an 
21844 \begin_inset Flex Code
21845 status collapsed
21846
21847 \begin_layout Plain Layout
21848 InsetLayout
21849 \end_layout
21850
21851 \end_inset
21852
21853  that has replaced this 
21854 \begin_inset Flex Code
21855 status collapsed
21856
21857 \begin_layout Plain Layout
21858 InsetLayout
21859 \end_layout
21860
21861 \end_inset
21862
21863 .
21864  This is used to rename an 
21865 \begin_inset Flex Code
21866 status collapsed
21867
21868 \begin_layout Plain Layout
21869 InsetLayout
21870 \end_layout
21871
21872 \end_inset
21873
21874 , while keeping backward compatibility.
21875 \change_inserted -712698321 1559491850
21876
21877 \end_layout
21878
21879 \begin_layout Description
21880
21881 \change_inserted -712698321 1559492002
21882 \begin_inset Flex Code
21883 status collapsed
21884
21885 \begin_layout Plain Layout
21886
21887 \change_inserted -712698321 1559491854
21888 ParbreakIgnored
21889 \change_unchanged
21890
21891 \end_layout
21892
21893 \end_inset
21894
21895  [
21896 \begin_inset Flex Code
21897 status collapsed
21898
21899 \begin_layout Plain Layout
21900
21901 \change_inserted -712698321 1559491850
21902
21903 \emph on
21904 0
21905 \change_unchanged
21906
21907 \end_layout
21908
21909 \end_inset
21910
21911 ,
21912 \begin_inset space \thinspace{}
21913 \end_inset
21914
21915
21916 \begin_inset Flex Code
21917 status collapsed
21918
21919 \begin_layout Plain Layout
21920
21921 \change_inserted -712698321 1559491850
21922 1
21923 \change_unchanged
21924
21925 \end_layout
21926
21927 \end_inset
21928
21929 ] If this is set to 
21930 \begin_inset Flex Code
21931 status collapsed
21932
21933 \begin_layout Plain Layout
21934
21935 \change_inserted -712698321 1559491881
21936 1
21937 \change_unchanged
21938
21939 \end_layout
21940
21941 \end_inset
21942
21943 , paragraph breaks will be ignored in the output.
21944  This might be useful for insets where the content should be alignable on
21945  different lines only in the \SpecialChar LyX
21946  workarea, without any effect in the output.
21947 \change_unchanged
21948
21949 \end_layout
21950
21951 \begin_layout Description
21952 \begin_inset Flex Code
21953 status collapsed
21954
21955 \begin_layout Plain Layout
21956 ParbreakIsNewline
21957 \end_layout
21958
21959 \end_inset
21960
21961  [
21962 \begin_inset Flex Code
21963 status collapsed
21964
21965 \begin_layout Plain Layout
21966
21967 \emph on
21968 0
21969 \end_layout
21970
21971 \end_inset
21972
21973 ,
21974 \begin_inset space \thinspace{}
21975 \end_inset
21976
21977
21978 \begin_inset Flex Code
21979 status collapsed
21980
21981 \begin_layout Plain Layout
21982 1
21983 \end_layout
21984
21985 \end_inset
21986
21987 ] As with paragraph styles, see 
21988 \begin_inset CommandInset ref
21989 LatexCommand ref
21990 reference "subsec:Paragraph-Styles"
21991
21992 \end_inset
21993
21994 .
21995  Default is false.
21996 \end_layout
21997
21998 \begin_layout Description
21999 \begin_inset Flex Code
22000 status collapsed
22001
22002 \begin_layout Plain Layout
22003 PassThru
22004 \end_layout
22005
22006 \end_inset
22007
22008  [
22009 \begin_inset Flex Code
22010 status collapsed
22011
22012 \begin_layout Plain Layout
22013
22014 \emph on
22015 0
22016 \end_layout
22017
22018 \end_inset
22019
22020 ,
22021 \begin_inset space \thinspace{}
22022 \end_inset
22023
22024
22025 \begin_inset Flex Code
22026 status collapsed
22027
22028 \begin_layout Plain Layout
22029 1
22030 \end_layout
22031
22032 \end_inset
22033
22034 ] As with paragraph styles, see 
22035 \begin_inset CommandInset ref
22036 LatexCommand ref
22037 reference "subsec:Paragraph-Styles"
22038
22039 \end_inset
22040
22041 .
22042  Default is false.
22043 \end_layout
22044
22045 \begin_layout Description
22046 \begin_inset Flex Code
22047 status collapsed
22048
22049 \begin_layout Plain Layout
22050 Preamble
22051 \end_layout
22052
22053 \end_inset
22054
22055  As with paragraph styles, see 
22056 \begin_inset CommandInset ref
22057 LatexCommand ref
22058 reference "subsec:Paragraph-Styles"
22059
22060 \end_inset
22061
22062 .
22063 \end_layout
22064
22065 \begin_layout Description
22066 \begin_inset Flex Code
22067 status collapsed
22068
22069 \begin_layout Plain Layout
22070 RefPrefix
22071 \end_layout
22072
22073 \end_inset
22074
22075  [
22076 \begin_inset Flex Code
22077 status collapsed
22078
22079 \begin_layout Plain Layout
22080 string
22081 \end_layout
22082
22083 \end_inset
22084
22085 ] The prefix to use when creating labels referring to insets of this type.
22086  This allows the use of formatted references.
22087 \end_layout
22088
22089 \begin_layout Description
22090 \begin_inset Flex Code
22091 status collapsed
22092
22093 \begin_layout Plain Layout
22094 Requires
22095 \end_layout
22096
22097 \end_inset
22098
22099  [
22100 \begin_inset Flex Code
22101 status collapsed
22102
22103 \begin_layout Plain Layout
22104 string
22105 \end_layout
22106
22107 \end_inset
22108
22109 ] As with paragraph styles, see 
22110 \begin_inset CommandInset ref
22111 LatexCommand ref
22112 reference "subsec:Paragraph-Styles"
22113
22114 \end_inset
22115
22116 .
22117 \end_layout
22118
22119 \begin_layout Description
22120 \begin_inset Flex Code
22121 status collapsed
22122
22123 \begin_layout Plain Layout
22124 ResetArgs
22125 \end_layout
22126
22127 \end_inset
22128
22129  [
22130 \begin_inset Flex Code
22131 status collapsed
22132
22133 \begin_layout Plain Layout
22134
22135 \emph on
22136 0
22137 \end_layout
22138
22139 \end_inset
22140
22141 ,
22142 \begin_inset space \thinspace{}
22143 \end_inset
22144
22145
22146 \begin_inset Flex Code
22147 status collapsed
22148
22149 \begin_layout Plain Layout
22150 1
22151 \end_layout
22152
22153 \end_inset
22154
22155 ] Resets the \SpecialChar LaTeX
22156  arguments of this layout (as defined via the 
22157 \begin_inset Flex Code
22158 status collapsed
22159
22160 \begin_layout Plain Layout
22161 Argument
22162 \end_layout
22163
22164 \end_inset
22165
22166  tag).
22167  This is useful if you have copied a style via 
22168 \begin_inset Flex Code
22169 status collapsed
22170
22171 \begin_layout Plain Layout
22172 CopyStyle
22173 \end_layout
22174
22175 \end_inset
22176
22177 , but you do not want to inherit its (required and optional) arguments.
22178 \end_layout
22179
22180 \begin_layout Description
22181 \begin_inset Flex Code
22182 status collapsed
22183
22184 \begin_layout Plain Layout
22185 ResetsFont
22186 \end_layout
22187
22188 \end_inset
22189
22190  [
22191 \begin_inset Flex Code
22192 status collapsed
22193
22194 \begin_layout Plain Layout
22195
22196 \emph on
22197 0
22198 \end_layout
22199
22200 \end_inset
22201
22202 ,
22203 \begin_inset space \thinspace{}
22204 \end_inset
22205
22206
22207 \begin_inset Flex Code
22208 status collapsed
22209
22210 \begin_layout Plain Layout
22211 1
22212 \end_layout
22213
22214 \end_inset
22215
22216
22217 \change_inserted -712698321 1597733473
22218 If 
22219 \begin_inset Flex Code
22220 status collapsed
22221
22222 \begin_layout Plain Layout
22223
22224 \change_inserted -712698321 1597732178
22225 1
22226 \change_unchanged
22227
22228 \end_layout
22229
22230 \end_inset
22231
22232 , font changes are redone inside the respective inset (in the output) even
22233  if the inset itself is in the context of this font changes (e.
22234 \begin_inset space \thinspace{}
22235 \end_inset
22236
22237 g., 
22238 \begin_inset Flex Code
22239 status collapsed
22240
22241 \begin_layout Plain Layout
22242
22243 \change_inserted -712698321 1597733683
22244
22245 \backslash
22246 textbf{Sourrounding text 
22247 \backslash
22248 myinset{
22249 \backslash
22250 textbf{content}}\SpecialChar ldots
22251 }
22252 \change_unchanged
22253
22254 \end_layout
22255
22256 \end_inset
22257
22258  rather than 
22259 \begin_inset Flex Code
22260 status collapsed
22261
22262 \begin_layout Plain Layout
22263
22264 \change_inserted -712698321 1597733686
22265
22266 \backslash
22267 textbf{Sourrounding text 
22268 \backslash
22269 myinset{content}\SpecialChar ldots
22270 }
22271 \change_unchanged
22272
22273 \end_layout
22274
22275 \end_inset
22276
22277 .
22278  Setting this makes sense for commands that internally reset font settings
22279  (e.
22280 \begin_inset space \thinspace{}
22281 \end_inset
22282
22283 g., footnotes).
22284  Note that wrongly setting this might lead to unwanted result (e.
22285 \begin_inset space \thinspace{}
22286 \end_inset
22287
22288 g., with 
22289 \begin_inset Flex Code
22290 status collapsed
22291
22292 \begin_layout Plain Layout
22293
22294 \change_inserted -712698321 1597733688
22295
22296 \backslash
22297 emph{Sourrounding text 
22298 \backslash
22299 myinset{
22300 \backslash
22301 emph{content}}\SpecialChar ldots
22302 }
22303 \change_unchanged
22304
22305 \end_layout
22306
22307 \end_inset
22308
22309 , content is upright, as 
22310 \begin_inset Flex Code
22311 status collapsed
22312
22313 \begin_layout Plain Layout
22314
22315 \change_inserted -712698321 1597733278
22316
22317 \backslash
22318 emph
22319 \change_unchanged
22320
22321 \end_layout
22322
22323 \end_inset
22324
22325  toggles.
22326  
22327 \change_deleted -712698321 1597733283
22328 Whether this inset should use the font of its surrounding environment or
22329  uses its own.
22330  
22331 \change_unchanged
22332 Default is 
22333 \change_deleted -712698321 1597733290
22334 false
22335 \change_inserted -712698321 1597733290
22336
22337 \begin_inset Flex Code
22338 status collapsed
22339
22340 \begin_layout Plain Layout
22341
22342 \change_inserted -712698321 1597733292
22343 0
22344 \change_unchanged
22345
22346 \end_layout
22347
22348 \end_inset
22349
22350
22351 \change_unchanged
22352
22353 \change_deleted -712698321 1597733327
22354 use the font of the surrounding environment
22355 \change_inserted -712698321 1597733343
22356 font changes are not redone inside the inset
22357 \change_unchanged
22358 .
22359 \end_layout
22360
22361 \begin_layout Description
22362 \begin_inset Flex Code
22363 status collapsed
22364
22365 \begin_layout Plain Layout
22366 RightDelim
22367 \end_layout
22368
22369 \end_inset
22370
22371  [
22372 \begin_inset Flex Code
22373 status collapsed
22374
22375 \begin_layout Plain Layout
22376 string
22377 \end_layout
22378
22379 \end_inset
22380
22381 ] A string that is put at the end of the layout content.
22382  A line break in the output can be indicated by 
22383 \begin_inset Flex Code
22384 status collapsed
22385
22386 \begin_layout Plain Layout
22387 <br/>
22388 \end_layout
22389
22390 \end_inset
22391
22392 .
22393 \end_layout
22394
22395 \begin_layout Description
22396 \begin_inset Flex Code
22397 status collapsed
22398
22399 \begin_layout Plain Layout
22400 Spellcheck
22401 \end_layout
22402
22403 \end_inset
22404
22405  [
22406 \begin_inset Flex Code
22407 status collapsed
22408
22409 \begin_layout Plain Layout
22410 0
22411 \end_layout
22412
22413 \end_inset
22414
22415 ,
22416 \begin_inset space \thinspace{}
22417 \end_inset
22418
22419
22420 \begin_inset Flex Code
22421 status collapsed
22422
22423 \begin_layout Plain Layout
22424
22425 \emph on
22426 1
22427 \end_layout
22428
22429 \end_inset
22430
22431 ] Allow spell-checking the contents of this inset.
22432  Default is true.
22433 \end_layout
22434
22435 \begin_layout Subsection
22436 Counters
22437 \begin_inset CommandInset label
22438 LatexCommand label
22439 name "subsec:Counters"
22440
22441 \end_inset
22442
22443
22444 \end_layout
22445
22446 \begin_layout Standard
22447 It is necessary to define the counters (
22448 \begin_inset Flex Noun
22449 status collapsed
22450
22451 \begin_layout Plain Layout
22452 chapter
22453 \end_layout
22454
22455 \end_inset
22456
22457
22458 \begin_inset Flex Noun
22459 status collapsed
22460
22461 \begin_layout Plain Layout
22462 figure
22463 \end_layout
22464
22465 \end_inset
22466
22467 , \SpecialChar ldots
22468 ) in the text class itself.
22469  The standard counters are defined in the file 
22470 \begin_inset Flex Code
22471 status collapsed
22472
22473 \begin_layout Plain Layout
22474 stdcounters.inc
22475 \end_layout
22476
22477 \end_inset
22478
22479 , so you may have to do no more than add
22480 \end_layout
22481
22482 \begin_layout LyX-Code
22483 Input stdcounters.inc
22484 \end_layout
22485
22486 \begin_layout Standard
22487 to your layout file to get them to work.
22488  But if you want to define custom counters, then you can do so.
22489  The counter declaration must begin with:
22490 \end_layout
22491
22492 \begin_layout LyX-Code
22493 Counter CounterName
22494 \end_layout
22495
22496 \begin_layout Standard
22497 where of course `
22498 \begin_inset Flex Code
22499 status collapsed
22500
22501 \begin_layout Plain Layout
22502 CounterName
22503 \end_layout
22504
22505 \end_inset
22506
22507 ' is replaced by the name of the counter.
22508  And it must end with 
22509 \begin_inset Quotes eld
22510 \end_inset
22511
22512
22513 \begin_inset Flex Code
22514 status collapsed
22515
22516 \begin_layout Plain Layout
22517 End
22518 \end_layout
22519
22520 \end_inset
22521
22522
22523 \begin_inset Quotes erd
22524 \end_inset
22525
22526 .
22527  The following parameters can also be used:
22528 \end_layout
22529
22530 \begin_layout Description
22531 \begin_inset Flex Code
22532 status collapsed
22533
22534 \begin_layout Plain Layout
22535 InitialValue
22536 \end_layout
22537
22538 \end_inset
22539
22540  [
22541 \begin_inset Flex Code
22542 status collapsed
22543
22544 \begin_layout Plain Layout
22545 int=1
22546 \end_layout
22547
22548 \end_inset
22549
22550 ] Sets the initial value for the counter, to which it will be reset whenever
22551  that happens.
22552  Normally, one will want the default, 1.
22553 \end_layout
22554
22555 \begin_layout Description
22556 \begin_inset Flex Code
22557 status collapsed
22558
22559 \begin_layout Plain Layout
22560 LabelString
22561 \end_layout
22562
22563 \end_inset
22564
22565  [
22566 \begin_inset Flex Code
22567 status collapsed
22568
22569 \begin_layout Plain Layout
22570 string
22571 \end_layout
22572
22573 \end_inset
22574
22575 =
22576 \begin_inset Quotes erd
22577 \end_inset
22578
22579
22580 \begin_inset Quotes erd
22581 \end_inset
22582
22583 ] When defined, this string defines how the counter is displayed.
22584  Setting this value sets 
22585 \begin_inset Flex Code
22586 status collapsed
22587
22588 \begin_layout Plain Layout
22589 LabelStringAppendix
22590 \end_layout
22591
22592 \end_inset
22593
22594  to the same value.
22595  The following special constructs can be used in the string:
22596 \end_layout
22597
22598 \begin_deeper
22599 \begin_layout Itemize
22600 \begin_inset Flex Code
22601 status collapsed
22602
22603 \begin_layout Plain Layout
22604
22605 \backslash
22606 thecounter
22607 \end_layout
22608
22609 \end_inset
22610
22611  will be replaced by the expansion of the 
22612 \begin_inset Flex Code
22613 status collapsed
22614
22615 \begin_layout Plain Layout
22616 LabelString
22617 \end_layout
22618
22619 \end_inset
22620
22621  (or 
22622 \begin_inset Flex Code
22623 status collapsed
22624
22625 \begin_layout Plain Layout
22626 LabelStringAppendix
22627 \end_layout
22628
22629 \end_inset
22630
22631 ) of the counter 
22632 \begin_inset Flex Code
22633 status collapsed
22634
22635 \begin_layout Plain Layout
22636 counter
22637 \end_layout
22638
22639 \end_inset
22640
22641 .
22642  
22643 \end_layout
22644
22645 \begin_layout Itemize
22646 counter values can be expressed using \SpecialChar LaTeX
22647 -like macros
22648 \begin_inset Newline newline
22649 \end_inset
22650
22651
22652 \begin_inset Flex Code
22653 status collapsed
22654
22655 \begin_layout Plain Layout
22656
22657 \backslash
22658
22659 \emph on
22660 numbertype
22661 \emph default
22662 {
22663 \emph on
22664 counter
22665 \emph default
22666 }
22667 \end_layout
22668
22669 \end_inset
22670
22671 , where 
22672 \begin_inset Flex Code
22673 status collapsed
22674
22675 \begin_layout Plain Layout
22676
22677 \emph on
22678 numbertype
22679 \end_layout
22680
22681 \end_inset
22682
22683  can be:
22684 \begin_inset Foot
22685 status collapsed
22686
22687 \begin_layout Plain Layout
22688
22689 \family roman
22690 \series medium
22691 \shape up
22692 \size normal
22693 \emph off
22694 \bar no
22695 \noun off
22696 \color none
22697 Actually, the situation is a bit more complicated: any
22698 \family default
22699 \series default
22700 \shape default
22701 \emph default
22702 \bar default
22703  
22704 \size default
22705 \emph on
22706 \noun default
22707 \color inherit
22708 numbertype
22709 \family roman
22710 \series medium
22711 \shape up
22712 \size normal
22713 \emph off
22714 \bar no
22715 \noun off
22716  other than those described below will produce arabic numerals.
22717  It would not be surprising to see this change in the future.
22718 \end_layout
22719
22720 \end_inset
22721
22722  
22723 \begin_inset Flex Code
22724 status collapsed
22725
22726 \begin_layout Plain Layout
22727 arabic
22728 \end_layout
22729
22730 \end_inset
22731
22732 : 1, 2, 3,\SpecialChar ldots
22733
22734 \begin_inset Flex Code
22735 status collapsed
22736
22737 \begin_layout Plain Layout
22738 alph
22739 \end_layout
22740
22741 \end_inset
22742
22743  for lower-case letters: a, b, c, \SpecialChar ldots
22744
22745 \begin_inset Flex Code
22746 status collapsed
22747
22748 \begin_layout Plain Layout
22749 Alph
22750 \end_layout
22751
22752 \end_inset
22753
22754  for upper-case letters: A, B, C, \SpecialChar ldots
22755
22756 \begin_inset Flex Code
22757 status collapsed
22758
22759 \begin_layout Plain Layout
22760 roman
22761 \end_layout
22762
22763 \end_inset
22764
22765  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
22766
22767 \begin_inset Flex Code
22768 status collapsed
22769
22770 \begin_layout Plain Layout
22771 Roman
22772 \end_layout
22773
22774 \end_inset
22775
22776  for upper-case roman numerals: I, II, III\SpecialChar ldots
22777
22778 \begin_inset Flex Code
22779 status collapsed
22780
22781 \begin_layout Plain Layout
22782 hebrew
22783 \end_layout
22784
22785 \end_inset
22786
22787  for hebrew numerals.
22788 \end_layout
22789
22790 \end_deeper
22791 \begin_layout Standard
22792 If LabelString is not defined, a default value is constructed as follows:
22793  if the counter has a 
22794 \change_deleted 731793113 1604355218
22795 master
22796 \change_inserted 731793113 1604355221
22797 parent
22798 \change_unchanged
22799  counter 
22800 \begin_inset Flex Code
22801 status collapsed
22802
22803 \begin_layout Plain Layout
22804
22805 \change_deleted 731793113 1604355223
22806 master
22807 \change_inserted 731793113 1604355226
22808 parent
22809 \change_unchanged
22810
22811 \end_layout
22812
22813 \end_inset
22814
22815  (defined via 
22816 \begin_inset Flex Code
22817 status collapsed
22818
22819 \begin_layout Plain Layout
22820 Within
22821 \end_layout
22822
22823 \end_inset
22824
22825 ), the string
22826 \begin_inset Newline newline
22827 \end_inset
22828
22829
22830 \begin_inset Flex Code
22831 status collapsed
22832
22833 \begin_layout Plain Layout
22834
22835 \backslash
22836 the
22837 \change_inserted 731793113 1604355228
22838 parent
22839 \change_deleted 731793113 1604355230
22840 master
22841 \change_unchanged
22842 .
22843 \backslash
22844 arabic{counter}
22845 \end_layout
22846
22847 \end_inset
22848
22849  is used; otherwise the string 
22850 \begin_inset Flex Code
22851 status collapsed
22852
22853 \begin_layout Plain Layout
22854
22855 \backslash
22856 arabic{counter}
22857 \end_layout
22858
22859 \end_inset
22860
22861  is used.
22862 \end_layout
22863
22864 \begin_layout Description
22865 \begin_inset Flex Code
22866 status collapsed
22867
22868 \begin_layout Plain Layout
22869 LabelStringAppendix
22870 \end_layout
22871
22872 \end_inset
22873
22874  [
22875 \begin_inset Flex Code
22876 status collapsed
22877
22878 \begin_layout Plain Layout
22879 string
22880 \end_layout
22881
22882 \end_inset
22883
22884
22885 \begin_inset Quotes eld
22886 \end_inset
22887
22888
22889 \begin_inset Quotes erd
22890 \end_inset
22891
22892 ] Same as 
22893 \begin_inset Flex Code
22894 status collapsed
22895
22896 \begin_layout Plain Layout
22897 LabelString
22898 \end_layout
22899
22900 \end_inset
22901
22902 , but for use in the Appendix.
22903 \change_inserted -584632292 1607202551
22904
22905 \end_layout
22906
22907 \begin_layout Description
22908
22909 \change_inserted -584632292 1607202682
22910 \begin_inset Flex Code
22911 status open
22912
22913 \begin_layout Plain Layout
22914 LaTeXName
22915 \end_layout
22916
22917 \end_inset
22918
22919  [
22920 \begin_inset Flex Code
22921 status open
22922
22923 \begin_layout Plain Layout
22924
22925 \change_inserted -584632292 1607202576
22926 string
22927 \change_unchanged
22928
22929 \end_layout
22930
22931 \end_inset
22932
22933  = 
22934 \begin_inset Quotes eld
22935 \end_inset
22936
22937
22938 \begin_inset Quotes erd
22939 \end_inset
22940
22941 ] The counter name as used in \SpecialChar LaTeX
22942 .
22943  (E.g., in \SpecialChar LyX
22944 , there is a counter named `theorem', but it is output to \SpecialChar LaTeX
22945  as `thm'.)
22946 \change_unchanged
22947
22948 \end_layout
22949
22950 \begin_layout Description
22951 \begin_inset Flex Code
22952 status collapsed
22953
22954 \begin_layout Plain Layout
22955 PrettyFormat
22956 \end_layout
22957
22958 \end_inset
22959
22960  [
22961 \begin_inset Flex Code
22962 status collapsed
22963
22964 \begin_layout Plain Layout
22965 string
22966 \end_layout
22967
22968 \end_inset
22969
22970 =
22971 \begin_inset Quotes erd
22972 \end_inset
22973
22974
22975 \begin_inset Quotes erd
22976 \end_inset
22977
22978 ] A format for use with formatted references to this counter.
22979  For example, one might want to have references to section numbers appear
22980  as 
22981 \begin_inset Quotes eld
22982 \end_inset
22983
22984 Section 2.4
22985 \begin_inset Quotes erd
22986 \end_inset
22987
22988 .
22989  The string should contain 
22990 \begin_inset Quotes eld
22991 \end_inset
22992
22993 ##
22994 \begin_inset Quotes erd
22995 \end_inset
22996
22997 .
22998  This will be replaced by the counter number itself.
22999  So, for sections, it would be: Section ##.
23000 \end_layout
23001
23002 \begin_layout Description
23003 \begin_inset Flex Code
23004 status collapsed
23005
23006 \begin_layout Plain Layout
23007 Within
23008 \end_layout
23009
23010 \end_inset
23011
23012  [
23013 \begin_inset Flex Code
23014 status collapsed
23015
23016 \begin_layout Plain Layout
23017 string
23018 \end_layout
23019
23020 \end_inset
23021
23022 =
23023 \begin_inset Quotes erd
23024 \end_inset
23025
23026
23027 \begin_inset Quotes erd
23028 \end_inset
23029
23030 ] If this is set to the name of another counter, the present counter will
23031  be reset every time the other one is increased.
23032  For example, 
23033 \begin_inset Flex Code
23034 status collapsed
23035
23036 \begin_layout Plain Layout
23037 subsection
23038 \end_layout
23039
23040 \end_inset
23041
23042  is numbered inside 
23043 \begin_inset Flex Code
23044 status collapsed
23045
23046 \begin_layout Plain Layout
23047 section
23048 \end_layout
23049
23050 \end_inset
23051
23052 .
23053 \end_layout
23054
23055 \begin_layout Subsection
23056 Font description
23057 \begin_inset CommandInset label
23058 LatexCommand label
23059 name "subsec:Font-description"
23060
23061 \end_inset
23062
23063
23064 \end_layout
23065
23066 \begin_layout Standard
23067 A font description looks like this:
23068 \end_layout
23069
23070 \begin_layout LyX-Code
23071 Font 
23072 \family roman
23073 \emph on
23074 or
23075 \family default
23076 \emph default
23077  LabelFont
23078 \emph on
23079  
23080 \family roman
23081 or
23082 \family default
23083 \emph default
23084  DefaultFont
23085 \end_layout
23086
23087 \begin_layout LyX-Code
23088  ...
23089 \end_layout
23090
23091 \begin_layout LyX-Code
23092 EndFont
23093 \end_layout
23094
23095 \begin_layout Standard
23096 The following commands are available:
23097 \end_layout
23098
23099 \begin_layout Description
23100 \begin_inset Flex Code
23101 status collapsed
23102
23103 \begin_layout Plain Layout
23104 Color
23105 \end_layout
23106
23107 \end_inset
23108
23109  [
23110 \change_deleted -712698321 1607682984
23111
23112 \begin_inset Flex Code
23113 status collapsed
23114
23115 \begin_layout Plain Layout
23116
23117 \emph on
23118 none
23119 \end_layout
23120
23121 \end_inset
23122
23123
23124 \begin_inset Flex Code
23125 status collapsed
23126
23127 \begin_layout Plain Layout
23128 black
23129 \end_layout
23130
23131 \end_inset
23132
23133
23134 \begin_inset Flex Code
23135 status collapsed
23136
23137 \begin_layout Plain Layout
23138 white
23139 \end_layout
23140
23141 \end_inset
23142
23143
23144 \begin_inset Flex Code
23145 status collapsed
23146
23147 \begin_layout Plain Layout
23148 red
23149 \end_layout
23150
23151 \end_inset
23152
23153
23154 \begin_inset Flex Code
23155 status collapsed
23156
23157 \begin_layout Plain Layout
23158 green
23159 \end_layout
23160
23161 \end_inset
23162
23163
23164 \begin_inset Flex Code
23165 status collapsed
23166
23167 \begin_layout Plain Layout
23168 blue
23169 \end_layout
23170
23171 \end_inset
23172
23173
23174 \begin_inset Flex Code
23175 status collapsed
23176
23177 \begin_layout Plain Layout
23178 cyan
23179 \end_layout
23180
23181 \end_inset
23182
23183
23184 \begin_inset Flex Code
23185 status collapsed
23186
23187 \begin_layout Plain Layout
23188 magenta
23189 \end_layout
23190
23191 \end_inset
23192
23193
23194 \begin_inset Flex Code
23195 status collapsed
23196
23197 \begin_layout Plain Layout
23198 yellow
23199 \end_layout
23200
23201 \end_inset
23202
23203
23204 \begin_inset Flex Code
23205 status collapsed
23206
23207 \begin_layout Plain Layout
23208 brown
23209 \end_layout
23210
23211 \end_inset
23212
23213
23214 \begin_inset Flex Code
23215 status collapsed
23216
23217 \begin_layout Plain Layout
23218 darkgray
23219 \end_layout
23220
23221 \end_inset
23222
23223
23224 \begin_inset Flex Code
23225 status collapsed
23226
23227 \begin_layout Plain Layout
23228 gray
23229 \end_layout
23230
23231 \end_inset
23232
23233
23234 \begin_inset Flex Code
23235 status collapsed
23236
23237 \begin_layout Plain Layout
23238 lightgray
23239 \end_layout
23240
23241 \end_inset
23242
23243
23244 \begin_inset Flex Code
23245 status collapsed
23246
23247 \begin_layout Plain Layout
23248 lime
23249 \end_layout
23250
23251 \end_inset
23252
23253
23254 \begin_inset Flex Code
23255 status collapsed
23256
23257 \begin_layout Plain Layout
23258 orange
23259 \end_layout
23260
23261 \end_inset
23262
23263
23264 \begin_inset Flex Code
23265 status collapsed
23266
23267 \begin_layout Plain Layout
23268 olive
23269 \end_layout
23270
23271 \end_inset
23272
23273
23274 \begin_inset Flex Code
23275 status collapsed
23276
23277 \begin_layout Plain Layout
23278 pink
23279 \end_layout
23280
23281 \end_inset
23282
23283
23284 \begin_inset Flex Code
23285 status collapsed
23286
23287 \begin_layout Plain Layout
23288 purple
23289 \end_layout
23290
23291 \end_inset
23292
23293
23294 \begin_inset Flex Code
23295 status collapsed
23296
23297 \begin_layout Plain Layout
23298 teal
23299 \end_layout
23300
23301 \end_inset
23302
23303
23304 \begin_inset Flex Code
23305 status collapsed
23306
23307 \begin_layout Plain Layout
23308 violet
23309 \end_layout
23310
23311 \end_inset
23312
23313
23314 \change_inserted -712698321 1607683139
23315
23316 \begin_inset Flex Code
23317 status collapsed
23318
23319 \begin_layout Plain Layout
23320
23321 \change_inserted -712698321 1607683135
23322 string
23323 \change_unchanged
23324
23325 \end_layout
23326
23327 \end_inset
23328
23329 ] See appendix
23330 \begin_inset space ~
23331 \end_inset
23332
23333
23334 \begin_inset CommandInset ref
23335 LatexCommand ref
23336 reference "chap:Names-of-colors"
23337 plural "false"
23338 caps "false"
23339 noprefix "false"
23340
23341 \end_inset
23342
23343  for 
23344 \change_deleted -712698321 1607683144
23345 ]
23346 \change_inserted -712698321 1607683146
23347 valid arguments.
23348 \change_unchanged
23349
23350 \end_layout
23351
23352 \begin_layout Description
23353 \begin_inset Flex Code
23354 status collapsed
23355
23356 \begin_layout Plain Layout
23357 Family
23358 \end_layout
23359
23360 \end_inset
23361
23362  [
23363 \begin_inset Flex Code
23364 status collapsed
23365
23366 \begin_layout Plain Layout
23367
23368 \emph on
23369 Roman
23370 \end_layout
23371
23372 \end_inset
23373
23374
23375 \begin_inset Flex Code
23376 status collapsed
23377
23378 \begin_layout Plain Layout
23379 Sans
23380 \end_layout
23381
23382 \end_inset
23383
23384
23385 \begin_inset Flex Code
23386 status collapsed
23387
23388 \begin_layout Plain Layout
23389 Typewriter
23390 \end_layout
23391
23392 \end_inset
23393
23394 ]
23395 \end_layout
23396
23397 \begin_layout Description
23398 \begin_inset Flex Code
23399 status collapsed
23400
23401 \begin_layout Plain Layout
23402 Misc
23403 \end_layout
23404
23405 \end_inset
23406
23407  [
23408 \begin_inset Flex Code
23409 status collapsed
23410
23411 \begin_layout Plain Layout
23412 string
23413 \end_layout
23414
23415 \end_inset
23416
23417 ] Valid arguments are: 
23418 \begin_inset Flex Code
23419 status collapsed
23420
23421 \begin_layout Plain Layout
23422 emph
23423 \end_layout
23424
23425 \end_inset
23426
23427
23428 \begin_inset Flex Code
23429 status collapsed
23430
23431 \begin_layout Plain Layout
23432 noun
23433 \end_layout
23434
23435 \end_inset
23436
23437
23438 \begin_inset Flex Code
23439 status collapsed
23440
23441 \begin_layout Plain Layout
23442 strikeout
23443 \end_layout
23444
23445 \end_inset
23446
23447
23448 \begin_inset Flex Code
23449 status collapsed
23450
23451 \begin_layout Plain Layout
23452 underbar
23453 \end_layout
23454
23455 \end_inset
23456
23457
23458 \begin_inset Flex Code
23459 status collapsed
23460
23461 \begin_layout Plain Layout
23462 uuline
23463 \end_layout
23464
23465 \end_inset
23466
23467
23468 \begin_inset Flex Code
23469 status collapsed
23470
23471 \begin_layout Plain Layout
23472 uwave
23473 \end_layout
23474
23475 \end_inset
23476
23477
23478 \begin_inset Flex Code
23479 status collapsed
23480
23481 \begin_layout Plain Layout
23482 no_emph
23483 \end_layout
23484
23485 \end_inset
23486
23487
23488 \begin_inset Flex Code
23489 status collapsed
23490
23491 \begin_layout Plain Layout
23492 no_noun
23493 \end_layout
23494
23495 \end_inset
23496
23497
23498 \begin_inset Flex Code
23499 status collapsed
23500
23501 \begin_layout Plain Layout
23502 no_strikeout
23503 \end_layout
23504
23505 \end_inset
23506
23507
23508 \begin_inset Flex Code
23509 status collapsed
23510
23511 \begin_layout Plain Layout
23512 no_bar
23513 \end_layout
23514
23515 \end_inset
23516
23517
23518 \begin_inset Flex Code
23519 status collapsed
23520
23521 \begin_layout Plain Layout
23522 no_uuline
23523 \end_layout
23524
23525 \end_inset
23526
23527  and 
23528 \begin_inset Flex Code
23529 status collapsed
23530
23531 \begin_layout Plain Layout
23532 no_uwave
23533 \end_layout
23534
23535 \end_inset
23536
23537 .
23538  Each of these turns on or off the corresponding attribute.
23539  For example, 
23540 \begin_inset Flex Code
23541 status collapsed
23542
23543 \begin_layout Plain Layout
23544 emph
23545 \end_layout
23546
23547 \end_inset
23548
23549  turns on emphasis, and 
23550 \begin_inset Flex Code
23551 status collapsed
23552
23553 \begin_layout Plain Layout
23554 no_emph
23555 \end_layout
23556
23557 \end_inset
23558
23559  turns it off.
23560  
23561 \begin_inset Newline newline
23562 \end_inset
23563
23564 If the latter seems puzzling, remember that the font settings for the present
23565  context are generally inherited from the surrounding context.
23566  So 
23567 \begin_inset Flex Code
23568 status collapsed
23569
23570 \begin_layout Plain Layout
23571 no_emph
23572 \end_layout
23573
23574 \end_inset
23575
23576  would turn off the emphasis that was anyway in effect, say, in a theorem
23577  environment.
23578 \end_layout
23579
23580 \begin_layout Description
23581 \begin_inset Flex Code
23582 status collapsed
23583
23584 \begin_layout Plain Layout
23585 Series
23586 \end_layout
23587
23588 \end_inset
23589
23590  [
23591 \begin_inset Flex Code
23592 status collapsed
23593
23594 \begin_layout Plain Layout
23595
23596 \emph on
23597 Medium
23598 \end_layout
23599
23600 \end_inset
23601
23602
23603 \begin_inset Flex Code
23604 status collapsed
23605
23606 \begin_layout Plain Layout
23607 Bold
23608 \end_layout
23609
23610 \end_inset
23611
23612
23613 \end_layout
23614
23615 \begin_layout Description
23616 \begin_inset Flex Code
23617 status collapsed
23618
23619 \begin_layout Plain Layout
23620 Shape
23621 \end_layout
23622
23623 \end_inset
23624
23625  [
23626 \begin_inset Flex Code
23627 status collapsed
23628
23629 \begin_layout Plain Layout
23630
23631 \emph on
23632 Up
23633 \end_layout
23634
23635 \end_inset
23636
23637
23638 \begin_inset Flex Code
23639 status collapsed
23640
23641 \begin_layout Plain Layout
23642 Italic
23643 \end_layout
23644
23645 \end_inset
23646
23647
23648 \begin_inset Flex Code
23649 status collapsed
23650
23651 \begin_layout Plain Layout
23652 SmallCaps
23653 \end_layout
23654
23655 \end_inset
23656
23657
23658 \begin_inset Flex Code
23659 status collapsed
23660
23661 \begin_layout Plain Layout
23662 Slanted
23663 \end_layout
23664
23665 \end_inset
23666
23667
23668 \end_layout
23669
23670 \begin_layout Description
23671 \begin_inset Flex Code
23672 status collapsed
23673
23674 \begin_layout Plain Layout
23675 Size
23676 \end_layout
23677
23678 \end_inset
23679
23680  [
23681 \begin_inset Flex Code
23682 status collapsed
23683
23684 \begin_layout Plain Layout
23685 tiny
23686 \end_layout
23687
23688 \end_inset
23689
23690
23691 \begin_inset Flex Code
23692 status collapsed
23693
23694 \begin_layout Plain Layout
23695 small
23696 \end_layout
23697
23698 \end_inset
23699
23700
23701 \begin_inset Flex Code
23702 status collapsed
23703
23704 \begin_layout Plain Layout
23705
23706 \emph on
23707 normal
23708 \end_layout
23709
23710 \end_inset
23711
23712
23713 \begin_inset Flex Code
23714 status collapsed
23715
23716 \begin_layout Plain Layout
23717 large
23718 \end_layout
23719
23720 \end_inset
23721
23722
23723 \begin_inset Flex Code
23724 status collapsed
23725
23726 \begin_layout Plain Layout
23727 larger
23728 \end_layout
23729
23730 \end_inset
23731
23732
23733 \begin_inset Flex Code
23734 status collapsed
23735
23736 \begin_layout Plain Layout
23737 largest
23738 \end_layout
23739
23740 \end_inset
23741
23742
23743 \begin_inset Flex Code
23744 status collapsed
23745
23746 \begin_layout Plain Layout
23747 huge
23748 \end_layout
23749
23750 \end_inset
23751
23752
23753 \begin_inset Flex Code
23754 status collapsed
23755
23756 \begin_layout Plain Layout
23757 giant
23758 \end_layout
23759
23760 \end_inset
23761
23762 ]
23763 \end_layout
23764
23765 \begin_layout Subsection
23766 \begin_inset CommandInset label
23767 LatexCommand label
23768 name "subsec:Citation-engine-description"
23769
23770 \end_inset
23771
23772 Cite engine description
23773 \end_layout
23774
23775 \begin_layout Standard
23776 The 
23777 \begin_inset Flex Code
23778 status collapsed
23779
23780 \begin_layout Plain Layout
23781 CiteEngine
23782 \end_layout
23783
23784 \end_inset
23785
23786  blocks, as used mainly in cite engine files (see 
23787 \begin_inset CommandInset ref
23788 LatexCommand ref
23789 reference "subsec:Cite-Engine-Files"
23790 plural "false"
23791 caps "false"
23792 noprefix "false"
23793
23794 \end_inset
23795
23796 ), define the citation commands provided by a specific 
23797 \begin_inset Quotes eld
23798 \end_inset
23799
23800 cite engine
23801 \begin_inset Quotes erd
23802 \end_inset
23803
23804 .
23805  A cite engine, in \SpecialChar LyX
23806  terms, is way specific way to format citations, using
23807  numbers, author names and/or years.
23808  Currently, \SpecialChar LyX
23809  supports three such engine types, namely:
23810 \end_layout
23811
23812 \begin_layout Enumerate
23813 \begin_inset Flex Code
23814 status collapsed
23815
23816 \begin_layout Plain Layout
23817 default
23818 \end_layout
23819
23820 \end_inset
23821
23822 : the default Bib\SpecialChar TeX
23823  way to format citations, a simple numeric style (e.
23824 \begin_inset space \thinspace{}
23825 \end_inset
23826
23827 g., 
23828 \begin_inset Quotes eld
23829 \end_inset
23830
23831 [1]
23832 \begin_inset Quotes erd
23833 \end_inset
23834
23835 )
23836 \end_layout
23837
23838 \begin_layout Enumerate
23839 \begin_inset Flex Code
23840 status collapsed
23841
23842 \begin_layout Plain Layout
23843 authoryear
23844 \end_layout
23845
23846 \end_inset
23847
23848 : Harvard-styled citations using author names and publication year (e.
23849 \begin_inset space \thinspace{}
23850 \end_inset
23851
23852 g., 
23853 \begin_inset Quotes eld
23854 \end_inset
23855
23856 Smith and Miller (2017b)
23857 \begin_inset Quotes erd
23858 \end_inset
23859
23860 )
23861 \end_layout
23862
23863 \begin_layout Enumerate
23864 \begin_inset Flex Code
23865 status collapsed
23866
23867 \begin_layout Plain Layout
23868 numerical
23869 \end_layout
23870
23871 \end_inset
23872
23873 : extended numerical citations that also allow for author or title next
23874  to the number (e.
23875 \begin_inset space \thinspace{}
23876 \end_inset
23877
23878 g., 
23879 \begin_inset Quotes eld
23880 \end_inset
23881
23882 Smith and Miller [1]
23883 \begin_inset Quotes erd
23884 \end_inset
23885
23886 )
23887 \end_layout
23888
23889 \begin_layout Standard
23890 \begin_inset Flex Code
23891 status collapsed
23892
23893 \begin_layout Plain Layout
23894 CiteEngine
23895 \end_layout
23896
23897 \end_inset
23898
23899  blocks look like this:
23900 \end_layout
23901
23902 \begin_layout LyX-Code
23903 CiteEngine default
23904 \end_layout
23905
23906 \begin_layout LyX-Code
23907  cite
23908 \end_layout
23909
23910 \begin_layout LyX-Code
23911  Citep*[][]
23912 \end_layout
23913
23914 \begin_layout LyX-Code
23915  citeyearpar[][]=parencite*
23916 \end_layout
23917
23918 \begin_layout LyX-Code
23919  ...
23920 \end_layout
23921
23922 \begin_layout LyX-Code
23923 End
23924 \end_layout
23925
23926 \begin_layout Standard
23927 The tag following 
23928 \begin_inset Flex Code
23929 status collapsed
23930
23931 \begin_layout Plain Layout
23932 CiteEngine
23933 \end_layout
23934
23935 \end_inset
23936
23937  denotes the engine.
23938  The individual lines respectively define a cite command or cite command
23939  paradigm supported by this engine.
23940  The line can be as simple as a cite command that is used both to name the
23941  respective \SpecialChar LyX
23942  command and the \SpecialChar LaTeX
23943  output or more complex in order to differentiate
23944  things.
23945  The full syntax is:
23946 \end_layout
23947
23948 \begin_layout LyX-Code
23949 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23950 \end_layout
23951
23952 \begin_layout Itemize
23953 \begin_inset Flex Code
23954 status collapsed
23955
23956 \begin_layout Plain Layout
23957 LyXName
23958 \end_layout
23959
23960 \end_inset
23961
23962 : The name as used in the 
23963 \begin_inset Flex Code
23964 status collapsed
23965
23966 \begin_layout Plain Layout
23967 *.lyx
23968 \end_layout
23969
23970 \end_inset
23971
23972  file.
23973 \end_layout
23974
23975 \begin_deeper
23976 \begin_layout Standard
23977 For portability reasons, we try to use the same name for same-formatted
23978  commands in different cite packages (thus many names stem from natbib,
23979  and thus we need to differentiate a 
23980 \begin_inset Flex Code
23981 status collapsed
23982
23983 \begin_layout Plain Layout
23984 latexcmd
23985 \end_layout
23986
23987 \end_inset
23988
23989  sometimes, if the \SpecialChar LaTeX
23990  command names differ).
23991 \end_layout
23992
23993 \end_deeper
23994 \begin_layout Itemize
23995 \begin_inset Flex Code
23996 status collapsed
23997
23998 \begin_layout Plain Layout
23999 alias
24000 \end_layout
24001
24002 \end_inset
24003
24004 : a (comma-separated) list of commands that fall back to the given 
24005 \begin_inset Flex Code
24006 status collapsed
24007
24008 \begin_layout Plain Layout
24009 LyXName
24010 \end_layout
24011
24012 \end_inset
24013
24014  in the current engine.
24015  This eases the switch of citation packages and engines.
24016  The 
24017 \begin_inset Flex Code
24018 status collapsed
24019
24020 \begin_layout Plain Layout
24021 alias
24022 \end_layout
24023
24024 \end_inset
24025
24026  can be compared to 
24027 \begin_inset Flex Code
24028 status collapsed
24029
24030 \begin_layout Plain Layout
24031 ObsoletedBy
24032 \end_layout
24033
24034 \end_inset
24035
24036  in layout definitions.
24037 \end_layout
24038
24039 \begin_layout Itemize
24040 \begin_inset Flex Code
24041 status collapsed
24042
24043 \begin_layout Plain Layout
24044 latexcmd
24045 \end_layout
24046
24047 \end_inset
24048
24049 : The actual \SpecialChar LaTeX
24050  command that is output.
24051  
24052 \end_layout
24053
24054 \begin_layout Standard
24055 \begin_inset Flex Code
24056 status collapsed
24057
24058 \begin_layout Plain Layout
24059 Alias
24060 \end_layout
24061
24062 \end_inset
24063
24064  and 
24065 \begin_inset Flex Code
24066 status collapsed
24067
24068 \begin_layout Plain Layout
24069 latexcmd
24070 \end_layout
24071
24072 \end_inset
24073
24074  are optional.
24075  If no 
24076 \begin_inset Flex Code
24077 status collapsed
24078
24079 \begin_layout Plain Layout
24080 latexcmd
24081 \end_layout
24082
24083 \end_inset
24084
24085  is given, the 
24086 \begin_inset Flex Code
24087 status collapsed
24088
24089 \begin_layout Plain Layout
24090 LyXName
24091 \end_layout
24092
24093 \end_inset
24094
24095  will be output to \SpecialChar LaTeX
24096 .
24097 \end_layout
24098
24099 \begin_layout Standard
24100 Note further:
24101 \end_layout
24102
24103 \begin_layout Itemize
24104 Capitalization indicates that the command also has a capitalized form (
24105 \begin_inset Flex Code
24106 status collapsed
24107
24108 \begin_layout Plain Layout
24109
24110 \backslash
24111 Latexcmd
24112 \end_layout
24113
24114 \end_inset
24115
24116  vs.
24117  
24118 \begin_inset Flex Code
24119 status collapsed
24120
24121 \begin_layout Plain Layout
24122
24123 \backslash
24124 latexcmd
24125 \end_layout
24126
24127 \end_inset
24128
24129 ).
24130  These usually enforce up-casing of name prefixes (
24131 \emph on
24132 von Goethe
24133 \emph default
24134  
24135 \begin_inset Formula $\Rightarrow$
24136 \end_inset
24137
24138  
24139 \emph on
24140 Von Goethe
24141 \emph default
24142 ).
24143 \end_layout
24144
24145 \begin_layout Itemize
24146 Brackets 
24147 \begin_inset Flex Code
24148 status collapsed
24149
24150 \begin_layout Plain Layout
24151 []
24152 \end_layout
24153
24154 \end_inset
24155
24156  indicate the number of optional arguments (there can be 0–2).
24157 \end_layout
24158
24159 \begin_layout Itemize
24160 A star 
24161 \begin_inset Flex Code
24162 status collapsed
24163
24164 \begin_layout Plain Layout
24165 *
24166 \end_layout
24167
24168 \end_inset
24169
24170  indicates there is a starred version of the command (
24171 \begin_inset Flex Code
24172 status collapsed
24173
24174 \begin_layout Plain Layout
24175
24176 \backslash
24177 latexcmd*
24178 \end_layout
24179
24180 \end_inset
24181
24182  vs.
24183  
24184 \begin_inset Flex Code
24185 status collapsed
24186
24187 \begin_layout Plain Layout
24188
24189 \backslash
24190 latexcmd
24191 \end_layout
24192
24193 \end_inset
24194
24195 ).
24196  
24197 \end_layout
24198
24199 \begin_deeper
24200 \begin_layout Standard
24201 By default, the starred version means: Output all authors even if it should
24202  be shortened with 
24203 \begin_inset Quotes eld
24204 \end_inset
24205
24206 et al.
24207 \begin_inset Quotes erd
24208 \end_inset
24209
24210  due to the 
24211 \begin_inset Flex Code
24212 status collapsed
24213
24214 \begin_layout Plain Layout
24215 MaxCiteNames
24216 \end_layout
24217
24218 \end_inset
24219
24220  threshold.
24221 \end_layout
24222
24223 \begin_layout Standard
24224 If the star has a different meaning for a given command, it can be specified
24225  in angle brackets: 
24226 \begin_inset Flex Code
24227 status collapsed
24228
24229 \begin_layout Plain Layout
24230 <!_stardesc!_stardesctooltip>
24231 \end_layout
24232
24233 \end_inset
24234
24235 .
24236  Maximal two translatable macro keywords, marked by the prefix 
24237 \begin_inset Flex Code
24238 status collapsed
24239
24240 \begin_layout Plain Layout
24241 !_
24242 \end_layout
24243
24244 \end_inset
24245
24246 , can be given.
24247  The first points to the string that replaces the 
24248 \begin_inset Quotes eld
24249 \end_inset
24250
24251 Full aut&hor list
24252 \begin_inset Quotes erd
24253 \end_inset
24254
24255  checkbox label in the citation dialog, the second one to an optional tool
24256  tip for this checkbox.
24257  
24258 \end_layout
24259
24260 \begin_layout Standard
24261 Note that these two macros have to be defined in a 
24262 \begin_inset Flex Code
24263 status collapsed
24264
24265 \begin_layout Plain Layout
24266 CiteFormat
24267 \end_layout
24268
24269 \end_inset
24270
24271  (see next section), dropping the 
24272 \begin_inset Flex Code
24273 status collapsed
24274
24275 \begin_layout Plain Layout
24276 !
24277 \end_layout
24278
24279 \end_inset
24280
24281  from the prefix, like this: 
24282 \end_layout
24283
24284 \begin_layout LyX-Code
24285 _stardesc Sta&rred command label
24286 \end_layout
24287
24288 \begin_layout LyX-Code
24289 _stardesctooltip Tooltip for the starred command checkbox.
24290 \end_layout
24291
24292 \end_deeper
24293 \begin_layout Itemize
24294 A dollar sign 
24295 \begin_inset Flex Code
24296 status collapsed
24297
24298 \begin_layout Plain Layout
24299 $
24300 \end_layout
24301
24302 \end_inset
24303
24304  indicates that this command features 
24305 \begin_inset Quotes eld
24306 \end_inset
24307
24308 qualified citation lists
24309 \begin_inset Quotes erd
24310 \end_inset
24311
24312 .
24313  This is a 
24314 \family sans
24315 Biblatex
24316 \family default
24317 -specific feature for multi-reference citations where an individual pre-
24318  and postnote can be given to each reference in the list.
24319  Please refer to the 
24320 \family sans
24321 Biblatex
24322 \family default
24323  manual for details.
24324 \change_inserted -712698321 1526898670
24325
24326 \end_layout
24327
24328 \begin_layout Standard
24329
24330 \change_inserted -712698321 1526899524
24331 If you want to add a cite command to a cite engine (e.
24332 \begin_inset space \thinspace{}
24333 \end_inset
24334
24335 g., add a specific command provided by a class), you can use 
24336 \begin_inset Flex Code
24337 status collapsed
24338
24339 \begin_layout Plain Layout
24340
24341 \change_inserted -712698321 1526898768
24342 AddToCiteEngine <engine type> \SpecialChar ldots
24343  End
24344 \change_unchanged
24345
24346 \end_layout
24347
24348 \end_inset
24349
24350 .
24351  Note that only cite commands that do not exist yet are added.
24352 \change_unchanged
24353
24354 \end_layout
24355
24356 \begin_layout Subsection
24357 \begin_inset CommandInset label
24358 LatexCommand label
24359 name "subsec:Citation-format-description"
24360
24361 \end_inset
24362
24363 Cite format description
24364 \end_layout
24365
24366 \begin_layout Standard
24367 The 
24368 \begin_inset Flex Code
24369 status collapsed
24370
24371 \begin_layout Plain Layout
24372 CiteFormat
24373 \end_layout
24374
24375 \end_inset
24376
24377  blocks are used to describe how bibliographic information should be displayed,
24378  both within \SpecialChar LyX
24379  itself (in the citation dialog and in tooltips, for example)
24380  and in XHTML output.
24381  Such a block might look like this:
24382 \end_layout
24383
24384 \begin_layout LyX-Code
24385 CiteFormat
24386 \end_layout
24387
24388 \begin_layout LyX-Code
24389  article ...
24390 \end_layout
24391
24392 \begin_layout LyX-Code
24393  book ...
24394 \end_layout
24395
24396 \begin_layout LyX-Code
24397 End
24398 \end_layout
24399
24400 \begin_layout Standard
24401 or
24402 \end_layout
24403
24404 \begin_layout LyX-Code
24405 CiteFormat
24406 \end_layout
24407
24408 \begin_layout LyX-Code
24409  cite ...
24410 \end_layout
24411
24412 \begin_layout LyX-Code
24413  citet*[][] ...
24414 \end_layout
24415
24416 \begin_layout LyX-Code
24417 End
24418 \end_layout
24419
24420 \begin_layout Standard
24421 In the first case, the individual lines define how the bibliographic information
24422  associated with an article or book, respectively, is to be displayed, and
24423  such a definition can be given for any 
24424 \begin_inset Quotes els
24425 \end_inset
24426
24427 entry type
24428 \begin_inset Quotes ers
24429 \end_inset
24430
24431  that might be present in a Bib\SpecialChar TeX
24432  file.
24433  \SpecialChar LyX
24434  defines a default format in the source code that will be used if no specific
24435  definition has been given.
24436  \SpecialChar LyX
24437  predefines several formats in the file 
24438 \begin_inset Flex Code
24439 status collapsed
24440
24441 \begin_layout Plain Layout
24442 stdciteformats.inc
24443 \end_layout
24444
24445 \end_inset
24446
24447 , which is included in most of \SpecialChar LyX
24448 's document classes.
24449 \end_layout
24450
24451 \begin_layout Standard
24452 In the second case, the lines define how a specific citation command (in
24453  the example 
24454 \begin_inset Flex Code
24455 status collapsed
24456
24457 \begin_layout Plain Layout
24458
24459 \backslash
24460 cite
24461 \end_layout
24462
24463 \end_inset
24464
24465
24466 \begin_inset Flex Code
24467 status collapsed
24468
24469 \begin_layout Plain Layout
24470
24471 \backslash
24472 citet
24473 \end_layout
24474
24475 \end_inset
24476
24477 ) is to be displayed on the citation inset label, in the citation dialog,
24478  menu or XHTML output.
24479  \SpecialChar LyX
24480  defines such formats for the citation style variants it supports via 
24481 \family sans
24482 Document\SpecialChar menuseparator
24483 Setting\SpecialChar menuseparator
24484 Bibliography\SpecialChar ldots
24485
24486 \family default
24487  in specific 
24488 \begin_inset Flex Code
24489 status collapsed
24490
24491 \begin_layout Plain Layout
24492 *.citeengine
24493 \end_layout
24494
24495 \end_inset
24496
24497  files that are shipped with \SpecialChar LyX
24498  (see 
24499 \begin_inset CommandInset ref
24500 LatexCommand ref
24501 reference "subsec:Cite-Engine-Files"
24502 plural "false"
24503 caps "false"
24504 noprefix "false"
24505
24506 \end_inset
24507
24508 ).
24509 \end_layout
24510
24511 \begin_layout Standard
24512 The definitions use a simple language that allows Bib\SpecialChar TeX
24513  keys to be replaced
24514  with their values.
24515  Keys should be enclosed in 
24516 \begin_inset Flex Code
24517 status collapsed
24518
24519 \begin_layout Plain Layout
24520 %
24521 \end_layout
24522
24523 \end_inset
24524
24525  signs, e.g.: 
24526 \begin_inset Flex Code
24527 status collapsed
24528
24529 \begin_layout Plain Layout
24530 %author%
24531 \end_layout
24532
24533 \end_inset
24534
24535 .
24536  So a simple definition might look like this:
24537 \end_layout
24538
24539 \begin_layout LyX-Code
24540 misc %author%, 
24541 \begin_inset Quotes eld
24542 \end_inset
24543
24544 %title%
24545 \begin_inset Quotes erd
24546 \end_inset
24547
24548 .
24549 \end_layout
24550
24551 \begin_layout Standard
24552 This would print the author, followed by a comma, followed by the title,
24553  in quotes, followed by a period.
24554 \end_layout
24555
24556 \begin_layout Standard
24557 Of course, sometimes you may want to print a key only if it exists.
24558  This can be done by using a conditional construction, such as: 
24559 \begin_inset Flex Code
24560 status collapsed
24561
24562 \begin_layout Plain Layout
24563 {%volume%[[vol.
24564 \begin_inset space ~
24565 \end_inset
24566
24567 %volume%]]}
24568 \end_layout
24569
24570 \end_inset
24571
24572 .
24573  This says: If the 
24574 \begin_inset Flex Code
24575 status collapsed
24576
24577 \begin_layout Plain Layout
24578 volume
24579 \end_layout
24580
24581 \end_inset
24582
24583  key exists, then print 
24584 \begin_inset Quotes eld
24585 \end_inset
24586
24587 vol.
24588 \begin_inset space ~
24589 \end_inset
24590
24591
24592 \begin_inset Quotes erd
24593 \end_inset
24594
24595  followed by the volume key.
24596  It is also possible to have an else clause in the conditional, such as:
24597 \begin_inset Newline newline
24598 \end_inset
24599
24600
24601 \begin_inset Flex Code
24602 status collapsed
24603
24604 \begin_layout Plain Layout
24605 {%author%[[%author%]][[%editor%, ed.]]}
24606 \end_layout
24607
24608 \end_inset
24609
24610 .
24611 \begin_inset Newline newline
24612 \end_inset
24613
24614 Here, the 
24615 \begin_inset Flex Code
24616 status collapsed
24617
24618 \begin_layout Plain Layout
24619 author
24620 \end_layout
24621
24622 \end_inset
24623
24624  key is printed if it exists; otherwise, the editor key is printed, followed
24625  by 
24626 \begin_inset Quotes eld
24627 \end_inset
24628
24629 ,
24630 \begin_inset space ~
24631 \end_inset
24632
24633 ed.
24634 \begin_inset Quotes erd
24635 \end_inset
24636
24637  Note that the key is again enclosed in 
24638 \begin_inset Flex Code
24639 status collapsed
24640
24641 \begin_layout Plain Layout
24642 %
24643 \end_layout
24644
24645 \end_inset
24646
24647  signs; the entire conditional is enclosed in braces; and the if and else
24648  clauses are enclosed in double brackets, 
24649 \begin_inset Quotes eld
24650 \end_inset
24651
24652
24653 \begin_inset Flex Code
24654 status collapsed
24655
24656 \begin_layout Plain Layout
24657 [[
24658 \end_layout
24659
24660 \end_inset
24661
24662
24663 \begin_inset Quotes eld
24664 \end_inset
24665
24666  and 
24667 \begin_inset Quotes eld
24668 \end_inset
24669
24670
24671 \begin_inset Flex Code
24672 status collapsed
24673
24674 \begin_layout Plain Layout
24675 ]]
24676 \end_layout
24677
24678 \end_inset
24679
24680
24681 \begin_inset Quotes erd
24682 \end_inset
24683
24684 .
24685  There must be no space between any of these.
24686 \end_layout
24687
24688 \begin_layout Standard
24689 Next to the entry keys, there are some special keys that can be used for
24690  these conditionals:
24691 \end_layout
24692
24693 \begin_layout Itemize
24694 \begin_inset Flex Code
24695 status collapsed
24696
24697 \begin_layout Plain Layout
24698 {%dialog%[[true]][[false]]}
24699 \end_layout
24700
24701 \end_inset
24702
24703 : process the 
24704 \begin_inset Quotes eld
24705 \end_inset
24706
24707 true
24708 \begin_inset Quotes erd
24709 \end_inset
24710
24711  part for dialogs and menus, the 
24712 \begin_inset Quotes eld
24713 \end_inset
24714
24715 false
24716 \begin_inset Quotes erd
24717 \end_inset
24718
24719  part for other contexts (workarea, export)
24720 \end_layout
24721
24722 \begin_layout Itemize
24723 \begin_inset Flex Code
24724 status collapsed
24725
24726 \begin_layout Plain Layout
24727 {%export%[[true]][[false]]}
24728 \end_layout
24729
24730 \end_inset
24731
24732 : process the 
24733 \begin_inset Quotes eld
24734 \end_inset
24735
24736 true
24737 \begin_inset Quotes erd
24738 \end_inset
24739
24740  part for export and menus, the 
24741 \begin_inset Quotes eld
24742 \end_inset
24743
24744 false
24745 \begin_inset Quotes erd
24746 \end_inset
24747
24748  part for other contexts (workarea, dialog)
24749 \end_layout
24750
24751 \begin_layout Itemize
24752 \begin_inset Flex Code
24753 status collapsed
24754
24755 \begin_layout Plain Layout
24756 {%next%[[true]]}
24757 \end_layout
24758
24759 \end_inset
24760
24761 : process the 
24762 \begin_inset Quotes eld
24763 \end_inset
24764
24765 true
24766 \begin_inset Quotes erd
24767 \end_inset
24768
24769  part if another item follows (e.
24770 \begin_inset space \thinspace{}
24771 \end_inset
24772
24773 g., in a citation with multiple keys)
24774 \end_layout
24775
24776 \begin_layout Itemize
24777 \begin_inset Flex Code
24778 status collapsed
24779
24780 \begin_layout Plain Layout
24781 {%second%[[true]][[false]]}
24782 \end_layout
24783
24784 \end_inset
24785
24786 : process the 
24787 \begin_inset Quotes eld
24788 \end_inset
24789
24790 true
24791 \begin_inset Quotes erd
24792 \end_inset
24793
24794  if this is the second of multiple items, else the 
24795 \begin_inset Quotes eld
24796 \end_inset
24797
24798 false
24799 \begin_inset Quotes erd
24800 \end_inset
24801
24802  part
24803 \end_layout
24804
24805 \begin_layout Itemize
24806 \begin_inset Flex Code
24807 status collapsed
24808
24809 \begin_layout Plain Layout
24810 {%ifstar%[[true]][[false]]}
24811 \end_layout
24812
24813 \end_inset
24814
24815 : process the 
24816 \begin_inset Quotes eld
24817 \end_inset
24818
24819 true
24820 \begin_inset Quotes erd
24821 \end_inset
24822
24823  part for starred citation commands (such as 
24824 \begin_inset Flex Code
24825 status collapsed
24826
24827 \begin_layout Plain Layout
24828
24829 \backslash
24830 cite*
24831 \end_layout
24832
24833 \end_inset
24834
24835 ), the false part for unstarred
24836 \end_layout
24837
24838 \begin_layout Itemize
24839 \begin_inset Flex Code
24840 status collapsed
24841
24842 \begin_layout Plain Layout
24843 {%ifentrytype:<type>%[[true]][[false]]}
24844 \end_layout
24845
24846 \end_inset
24847
24848 : process the 
24849 \begin_inset Quotes eld
24850 \end_inset
24851
24852 true
24853 \begin_inset Quotes erd
24854 \end_inset
24855
24856  if the current entry type matches 
24857 \begin_inset Flex Code
24858 status collapsed
24859
24860 \begin_layout Plain Layout
24861 <type>
24862 \end_layout
24863
24864 \end_inset
24865
24866 , else the false part (e.g., in a citation definition: 
24867 \begin_inset Flex Code
24868 status collapsed
24869
24870 \begin_layout Plain Layout
24871 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24872 \end_layout
24873
24874 \end_inset
24875
24876 )
24877 \end_layout
24878
24879 \begin_layout Itemize
24880 \begin_inset Flex Code
24881 status collapsed
24882
24883 \begin_layout Plain Layout
24884 {%ifmultiple:<authortype>%[[true]][[false]]}
24885 \end_layout
24886
24887 \end_inset
24888
24889 : process the 
24890 \begin_inset Quotes eld
24891 \end_inset
24892
24893 true
24894 \begin_inset Quotes erd
24895 \end_inset
24896
24897  if the current author type (author, editor etc.) has multiple authors, else
24898  the false part (e.g., in a bibliography definition: 
24899 \begin_inset Flex Code
24900 status collapsed
24901
24902 \begin_layout Plain Layout
24903 {%ifmultiple:editor%[[eds.]][[ed.]]}
24904 \end_layout
24905
24906 \end_inset
24907
24908 )
24909 \end_layout
24910
24911 \begin_layout Itemize
24912 \begin_inset Flex Code
24913 status collapsed
24914
24915 \begin_layout Plain Layout
24916 {%ifqualified%[[true]][[false]]}
24917 \end_layout
24918
24919 \end_inset
24920
24921 : process the 
24922 \begin_inset Quotes eld
24923 \end_inset
24924
24925 true
24926 \begin_inset Quotes erd
24927 \end_inset
24928
24929  part if the current citation is a qualified citation list (a specific 
24930 \family sans
24931 Biblatex
24932 \family default
24933  format for multi-reference citations), the false part if this is not the
24934  case.
24935 \end_layout
24936
24937 \begin_layout Standard
24938 We said that 
24939 \begin_inset Flex Code
24940 status collapsed
24941
24942 \begin_layout Plain Layout
24943 %author%
24944 \end_layout
24945
24946 \end_inset
24947
24948  prints the author key as it is recorded in the bibliography file.
24949  This might not be what you want, since it will result in a string such
24950  as 
24951 \begin_inset Quotes eld
24952 \end_inset
24953
24954 Miller, Peter and Smith, Mary and White, Jane
24955 \begin_inset Quotes erd
24956 \end_inset
24957
24958  (since 
24959 \begin_inset Quotes eld
24960 \end_inset
24961
24962 and
24963 \begin_inset Quotes erd
24964 \end_inset
24965
24966  is used by Bib\SpecialChar TeX
24967  to delimit authors).
24968  \SpecialChar LyX
24969  therefore provides some methods to get properly formatted name lists (which
24970  will also get translated).
24971  The following keys are provided:
24972 \end_layout
24973
24974 \begin_layout Enumerate
24975 For name lists with pre- and surname, suitable for the main authors/editors
24976  of a bibliography item.
24977  The 
24978 \begin_inset Flex Code
24979 status collapsed
24980
24981 \begin_layout Plain Layout
24982 <nametype>
24983 \end_layout
24984
24985 \end_inset
24986
24987  part denotes the kind of list that is requested (e.g.
24988  
24989 \begin_inset Flex Code
24990 status collapsed
24991
24992 \begin_layout Plain Layout
24993 <nametype:author>
24994 \end_layout
24995
24996 \end_inset
24997
24998 ):
24999 \end_layout
25000
25001 \begin_deeper
25002 \begin_layout Itemize
25003 \begin_inset Flex Code
25004 status collapsed
25005
25006 \begin_layout Plain Layout
25007 %abbrvnames:<nametype>%
25008 \end_layout
25009
25010 \end_inset
25011
25012 : Provides a name list which is abbreviated (with 
25013 \begin_inset Quotes eld
25014 \end_inset
25015
25016 et al.
25017 \begin_inset Quotes erd
25018 \end_inset
25019
25020 ) when 
25021 \begin_inset Flex Code
25022 status collapsed
25023
25024 \begin_layout Plain Layout
25025 MaxCiteNames
25026 \end_layout
25027
25028 \end_inset
25029
25030  is reached.
25031 \end_layout
25032
25033 \begin_layout Itemize
25034 \begin_inset Flex Code
25035 status collapsed
25036
25037 \begin_layout Plain Layout
25038 %fullnames:<nametype>%
25039 \end_layout
25040
25041 \end_inset
25042
25043 : Provides a full name list (never abbreviated with 
25044 \begin_inset Quotes eld
25045 \end_inset
25046
25047 et al.
25048 \begin_inset Quotes erd
25049 \end_inset
25050
25051 ).
25052 \end_layout
25053
25054 \begin_layout Itemize
25055 \begin_inset Flex Code
25056 status collapsed
25057
25058 \begin_layout Plain Layout
25059 %forceabbrvnames:<nametype>%
25060 \end_layout
25061
25062 \end_inset
25063
25064 : Provides a name list which is always abbreviated (with 
25065 \begin_inset Quotes eld
25066 \end_inset
25067
25068 et al.
25069 \begin_inset Quotes erd
25070 \end_inset
25071
25072 ) irrespective of 
25073 \begin_inset Flex Code
25074 status collapsed
25075
25076 \begin_layout Plain Layout
25077 MaxCiteNames
25078 \end_layout
25079
25080 \end_inset
25081
25082 .
25083 \end_layout
25084
25085 \end_deeper
25086 \begin_layout Enumerate
25087 Alternative name lists with pre- and surname, if the order of pre- and surname
25088  inside the bibliography item differs (as in: 
25089 \begin_inset Quotes eld
25090 \end_inset
25091
25092 Miller, John: Some text, in: Mary Smith, ed.: A volume
25093 \begin_inset Quotes erd
25094 \end_inset
25095
25096 ):
25097 \end_layout
25098
25099 \begin_deeper
25100 \begin_layout Itemize
25101 \begin_inset Flex Code
25102 status collapsed
25103
25104 \begin_layout Plain Layout
25105 %abbrvbynames:<nametype>%
25106 \end_layout
25107
25108 \end_inset
25109
25110 : Provides a name list which is abbreviated (with 
25111 \begin_inset Quotes eld
25112 \end_inset
25113
25114 et al.
25115 \begin_inset Quotes erd
25116 \end_inset
25117
25118 ) when 
25119 \begin_inset Flex Code
25120 status collapsed
25121
25122 \begin_layout Plain Layout
25123 MaxCiteNames
25124 \end_layout
25125
25126 \end_inset
25127
25128  is reached.
25129 \end_layout
25130
25131 \begin_layout Itemize
25132 \begin_inset Flex Code
25133 status collapsed
25134
25135 \begin_layout Plain Layout
25136 %fullbynames:<nametype>%
25137 \end_layout
25138
25139 \end_inset
25140
25141 : Provides a full name list (never abbreviated with 
25142 \begin_inset Quotes eld
25143 \end_inset
25144
25145 et al.
25146 \begin_inset Quotes erd
25147 \end_inset
25148
25149 ).
25150 \end_layout
25151
25152 \begin_layout Itemize
25153 \begin_inset Flex Code
25154 status collapsed
25155
25156 \begin_layout Plain Layout
25157 %forceabbrvbynames:<nametype>%
25158 \end_layout
25159
25160 \end_inset
25161
25162 : Provides a name list which is always abbreviated (with 
25163 \begin_inset Quotes eld
25164 \end_inset
25165
25166 et al.
25167 \begin_inset Quotes erd
25168 \end_inset
25169
25170 ) irrespective of 
25171 \begin_inset Flex Code
25172 status collapsed
25173
25174 \begin_layout Plain Layout
25175 MaxCiteNames
25176 \end_layout
25177
25178 \end_inset
25179
25180 .
25181 \end_layout
25182
25183 \end_deeper
25184 \begin_layout Enumerate
25185 And finally name lists which consist of family names only, as used in author-yea
25186 r citation labels.
25187  These do not take a 
25188 \begin_inset Flex Code
25189 status collapsed
25190
25191 \begin_layout Plain Layout
25192 <nametype>
25193 \end_layout
25194
25195 \end_inset
25196
25197  part, but always return either an author list or, if this does not exist,
25198  an editor list (as common in author-year labels):
25199 \end_layout
25200
25201 \begin_deeper
25202 \begin_layout Itemize
25203 \begin_inset Flex Code
25204 status collapsed
25205
25206 \begin_layout Plain Layout
25207 %abbrvciteauthor%
25208 \end_layout
25209
25210 \end_inset
25211
25212 : Provides a name list which is abbreviated (with 
25213 \begin_inset Quotes eld
25214 \end_inset
25215
25216 et al.
25217 \begin_inset Quotes erd
25218 \end_inset
25219
25220 ) when 
25221 \begin_inset Flex Code
25222 status collapsed
25223
25224 \begin_layout Plain Layout
25225 MaxCiteNames
25226 \end_layout
25227
25228 \end_inset
25229
25230  is reached.
25231 \end_layout
25232
25233 \begin_layout Itemize
25234 \begin_inset Flex Code
25235 status collapsed
25236
25237 \begin_layout Plain Layout
25238 %fullciteauthor%
25239 \end_layout
25240
25241 \end_inset
25242
25243 : Provides a full name list (never abbreviated with 
25244 \begin_inset Quotes eld
25245 \end_inset
25246
25247 et al.
25248 \begin_inset Quotes erd
25249 \end_inset
25250
25251 ).
25252 \end_layout
25253
25254 \begin_layout Itemize
25255 \begin_inset Flex Code
25256 status collapsed
25257
25258 \begin_layout Plain Layout
25259 %forceabbrvciteauthor%
25260 \end_layout
25261
25262 \end_inset
25263
25264 : Provides a name list which is always abbreviated (with 
25265 \begin_inset Quotes eld
25266 \end_inset
25267
25268 et al.
25269 \begin_inset Quotes erd
25270 \end_inset
25271
25272 ) irrespective of 
25273 \begin_inset Flex Code
25274 status collapsed
25275
25276 \begin_layout Plain Layout
25277 MaxCiteNames
25278 \end_layout
25279
25280 \end_inset
25281
25282 .
25283 \end_layout
25284
25285 \end_deeper
25286 \begin_layout Standard
25287 The order of pre- and surname in the former two lists can be adjusted by
25288  these macros:
25289 \end_layout
25290
25291 \begin_layout Itemize
25292 \begin_inset Flex Code
25293 status collapsed
25294
25295 \begin_layout Plain Layout
25296 !firstnameform %surname%, %prename%
25297 \end_layout
25298
25299 \end_inset
25300
25301  (first author in lists of type 1)
25302 \end_layout
25303
25304 \begin_layout Itemize
25305 \begin_inset Flex Code
25306 status collapsed
25307
25308 \begin_layout Plain Layout
25309 !othernameform %surname%, %prename%
25310 \end_layout
25311
25312 \end_inset
25313
25314  (other authors in lists of type 1)
25315 \end_layout
25316
25317 \begin_layout Itemize
25318 \begin_inset Flex Code
25319 status collapsed
25320
25321 \begin_layout Plain Layout
25322 !firstbynameform %prename% %surname%
25323 \end_layout
25324
25325 \end_inset
25326
25327  (first author in lists of type 2)
25328 \end_layout
25329
25330 \begin_layout Itemize
25331 \begin_inset Flex Code
25332 status collapsed
25333
25334 \begin_layout Plain Layout
25335 !otherbynameform %prename% %surname%
25336 \end_layout
25337
25338 \end_inset
25339
25340  (other authors in lists of type 2)
25341 \end_layout
25342
25343 \begin_layout Standard
25344 This allows you to configure namings like 
25345 \begin_inset Quotes eld
25346 \end_inset
25347
25348 Miller, Peter and Mary Smith: \SpecialChar ldots
25349 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
25350
25351 \begin_inset Quotes erd
25352 \end_inset
25353
25354 .
25355 \end_layout
25356
25357 \begin_layout Standard
25358 There is one other piece of syntax available in definitions, which looks
25359  like this: 
25360 \begin_inset Flex Code
25361 status collapsed
25362
25363 \begin_layout Plain Layout
25364 {!<i>!}
25365 \end_layout
25366
25367 \end_inset
25368
25369 .
25370  This defines a piece of formatting information that is to be used when
25371  creating 
25372 \begin_inset Quotes eld
25373 \end_inset
25374
25375 rich text
25376 \begin_inset Quotes erd
25377 \end_inset
25378
25379 .
25380  Obviously, we do not want to output HTML tags when writing plain text,
25381  so they should be wrapped in 
25382 \begin_inset Quotes eld
25383 \end_inset
25384
25385 {!
25386 \begin_inset Quotes erd
25387 \end_inset
25388
25389  and 
25390 \begin_inset Quotes eld
25391 \end_inset
25392
25393 !}
25394 \begin_inset Quotes erd
25395 \end_inset
25396
25397 .
25398 \end_layout
25399
25400 \begin_layout Standard
25401 Two special sorts of definitions are also possible in a 
25402 \begin_inset Flex Code
25403 status collapsed
25404
25405 \begin_layout Plain Layout
25406 CiteFormat
25407 \end_layout
25408
25409 \end_inset
25410
25411  block.
25412  An example of the first would be:
25413 \end_layout
25414
25415 \begin_layout LyX-Code
25416 !quotetitle 
25417 \begin_inset Quotes eld
25418 \end_inset
25419
25420 %title%
25421 \begin_inset Quotes erd
25422 \end_inset
25423
25424
25425 \end_layout
25426
25427 \begin_layout Standard
25428 This is an abbreviation, or macro, and it can be used by treating it as
25429  if it were a key: 
25430 \begin_inset Flex Code
25431 status collapsed
25432
25433 \begin_layout Plain Layout
25434 %!quotetitle%
25435 \end_layout
25436
25437 \end_inset
25438
25439 .
25440  \SpecialChar LyX
25441  will treat 
25442 \begin_inset Flex Code
25443 status collapsed
25444
25445 \begin_layout Plain Layout
25446 %!quotetitle%
25447 \end_layout
25448
25449 \end_inset
25450
25451  exactly as it would treat its definition.
25452  So, let us issue the obvious 
25453 \emph on
25454 warning
25455 \emph default
25456 .
25457  Do not do this:
25458 \end_layout
25459
25460 \begin_layout LyX-Code
25461 !funfun %funfun%
25462 \end_layout
25463
25464 \begin_layout Standard
25465 or anything like it.
25466  \SpecialChar LyX
25467  shouldn't go into an infinite loop, but it may go into a long one before
25468  it gives up.
25469 \end_layout
25470
25471 \begin_layout Standard
25472 The second sort of special definition might look like this:
25473 \end_layout
25474
25475 \begin_layout LyX-Code
25476 B_pptext pp.
25477 \end_layout
25478
25479 \begin_layout Standard
25480 This defines a translatable piece of text, which allows relevant parts of
25481  the bibliography or citation to be translated.
25482  It can be included in a definition by treating it as a key: 
25483 \begin_inset Flex Code
25484 status collapsed
25485
25486 \begin_layout Plain Layout
25487 %B_pptext%
25488 \end_layout
25489
25490 \end_inset
25491
25492 .
25493  Note that there are two different translation paths: All definitions starting
25494  with 
25495 \begin_inset Flex Code
25496 status collapsed
25497
25498 \begin_layout Plain Layout
25499 B_
25500 \end_layout
25501
25502 \end_inset
25503
25504 , such as in the example above, will be translated to the currently active
25505  buffer language (so the translation will match the generated document).
25506  All definitions starting with underscore only will be translated to the
25507  GUI language.
25508  This is the proper translation for strings that only occur in the dialogs
25509  or on buttons, such as this one:
25510 \end_layout
25511
25512 \begin_layout LyX-Code
25513 _addtobib Add to bibliography only.
25514 \end_layout
25515
25516 \begin_layout Standard
25517 Several of these translatable strings are predefined in 
25518 \begin_inset Flex Code
25519 status collapsed
25520
25521 \begin_layout Plain Layout
25522 stdciteformats.inc
25523 \end_layout
25524
25525 \end_inset
25526
25527  and the diverse 
25528 \begin_inset Flex Code
25529 status collapsed
25530
25531 \begin_layout Plain Layout
25532 *.citeengine
25533 \end_layout
25534
25535 \end_inset
25536
25537  files.
25538  Note that these are not macros, in the sense just defined.
25539  They will not be expanded.
25540 \end_layout
25541
25542 \begin_layout Standard
25543 So here then is an example that uses several of these features:
25544 \begin_inset VSpace defskip
25545 \end_inset
25546
25547
25548 \end_layout
25549
25550 \begin_layout Standard
25551 \noindent
25552
25553 \family sans
25554 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
25555 \end_layout
25556
25557 \begin_layout Standard
25558 \begin_inset VSpace defskip
25559 \end_inset
25560
25561 This defines a macro that prints the author, followed by a comma, if the
25562  
25563 \begin_inset Flex Code
25564 status collapsed
25565
25566 \begin_layout Plain Layout
25567 author
25568 \end_layout
25569
25570 \end_inset
25571
25572  key is defined, or else prints the name of the editor, followed by the
25573  
25574 \begin_inset Flex Code
25575 status collapsed
25576
25577 \begin_layout Plain Layout
25578 B_edtext
25579 \end_layout
25580
25581 \end_inset
25582
25583  or its translation (it is by default 
25584 \begin_inset Quotes eld
25585 \end_inset
25586
25587 ed.
25588 \begin_inset Quotes erd
25589 \end_inset
25590
25591 ), if the 
25592 \begin_inset Flex Code
25593 status collapsed
25594
25595 \begin_layout Plain Layout
25596 editor
25597 \end_layout
25598
25599 \end_inset
25600
25601  key is defined.
25602  Note that this is in fact defined in 
25603 \begin_inset Flex Code
25604 status collapsed
25605
25606 \begin_layout Plain Layout
25607 stdciteformats.inc
25608 \end_layout
25609
25610 \end_inset
25611
25612 , so you can use it in your own definitions, or re-definitions, if you load
25613  that file first.
25614 \end_layout
25615
25616 \begin_layout Section
25617 \begin_inset CommandInset label
25618 LatexCommand label
25619 name "sec:Tags-for-XHTML"
25620
25621 \end_inset
25622
25623 Tags for XHTML output
25624 \end_layout
25625
25626 \begin_layout Standard
25627 As with \SpecialChar LaTeX
25628  or DocBook, the format of \SpecialChar LyX
25629 's XHTML output is also controlled by
25630  layout information.
25631  In general, \SpecialChar LyX
25632  provides sensible defaults and, as mentioned earlier, it will
25633  even construct default CSS style rules from the other layout tags.
25634  For example, \SpecialChar LyX
25635  will attempt to use the information provided in the 
25636 \begin_inset Flex Code
25637 status collapsed
25638
25639 \begin_layout Plain Layout
25640 Font
25641 \end_layout
25642
25643 \end_inset
25644
25645  declaration for the Chapter style to write CSS that will appropriately
25646  format chapter headings.
25647 \end_layout
25648
25649 \begin_layout Standard
25650 In many cases, then, you may not have to do anything at all to get acceptable
25651  XHTML output for your own environments, custom insets, and so forth.
25652  But in some cases you will, and so \SpecialChar LyX
25653  provides a number of layout tags that
25654  can be used to customize the XHTML and CSS that are generated.
25655 \end_layout
25656
25657 \begin_layout Standard
25658 Note that there are two tags, 
25659 \begin_inset Flex Code
25660 status collapsed
25661
25662 \begin_layout Plain Layout
25663 HTMLPreamble
25664 \end_layout
25665
25666 \end_inset
25667
25668  and 
25669 \begin_inset Flex Code
25670 status collapsed
25671
25672 \begin_layout Plain Layout
25673 AddToHTMLPreamble
25674 \end_layout
25675
25676 \end_inset
25677
25678  that may appear outside style and inset declarations.
25679  See 
25680 \begin_inset CommandInset ref
25681 LatexCommand ref
25682 reference "subsec:General-text-class"
25683
25684 \end_inset
25685
25686  for details on these.
25687 \end_layout
25688
25689 \begin_layout Subsection
25690 \begin_inset CommandInset label
25691 LatexCommand label
25692 name "subsec:Paragraph-Style-XHTML"
25693
25694 \end_inset
25695
25696 Paragraph styles
25697 \end_layout
25698
25699 \begin_layout Standard
25700 The sort of XHTML \SpecialChar LyX
25701  outputs for a paragraph depends upon whether we are dealing
25702  with a normal paragraph, a command, or an environment, where this is itself
25703  determined by the contents of the corresponding 
25704 \begin_inset Flex Code
25705 status collapsed
25706
25707 \begin_layout Plain Layout
25708 \SpecialChar LaTeX
25709 Type
25710 \end_layout
25711
25712 \end_inset
25713
25714  tag.
25715  
25716 \end_layout
25717
25718 \begin_layout Standard
25719 For a command or normal paragraph, the output XHTML has the following form:
25720 \end_layout
25721
25722 \begin_layout LyX-Code
25723
25724 \family sans
25725 <tag attr=
25726 \begin_inset Quotes erd
25727 \end_inset
25728
25729 value
25730 \begin_inset Quotes erd
25731 \end_inset
25732
25733 >
25734 \end_layout
25735
25736 \begin_layout LyX-Code
25737
25738 \family sans
25739 <labeltag attr=
25740 \begin_inset Quotes erd
25741 \end_inset
25742
25743 value
25744 \begin_inset Quotes erd
25745 \end_inset
25746
25747 >Label</labeltag>
25748 \end_layout
25749
25750 \begin_layout LyX-Code
25751
25752 \family sans
25753 Contents of the paragraph.
25754 \end_layout
25755
25756 \begin_layout LyX-Code
25757
25758 \family sans
25759 </tag>
25760 \end_layout
25761
25762 \begin_layout Standard
25763 The label tags are of course omitted if the paragraph does not have a label.
25764 \end_layout
25765
25766 \begin_layout Standard
25767 For an environment that is not some sort of list, the XHTML takes this form:
25768 \end_layout
25769
25770 \begin_layout LyX-Code
25771
25772 \family sans
25773 <tag attr=
25774 \begin_inset Quotes erd
25775 \end_inset
25776
25777 value
25778 \begin_inset Quotes erd
25779 \end_inset
25780
25781 >
25782 \end_layout
25783
25784 \begin_layout LyX-Code
25785
25786 \family sans
25787 <itemtag attr=
25788 \begin_inset Quotes erd
25789 \end_inset
25790
25791 value
25792 \begin_inset Quotes erd
25793 \end_inset
25794
25795 ><labeltag attr=
25796 \begin_inset Quotes erd
25797 \end_inset
25798
25799 value
25800 \begin_inset Quotes erd
25801 \end_inset
25802
25803 >Environment Label</labeltag>First paragraph.</itemtag>
25804 \end_layout
25805
25806 \begin_layout LyX-Code
25807
25808 \family sans
25809 <itemtag>Second paragraph.</itemtag>
25810 \end_layout
25811
25812 \begin_layout LyX-Code
25813
25814 \family sans
25815 </tag>
25816 \end_layout
25817
25818 \begin_layout Standard
25819 Note that the label is output only for the first paragraph, as it should
25820  be for a theorem, for example.
25821  
25822 \end_layout
25823
25824 \begin_layout Standard
25825 For a list, we have one of these forms:
25826 \end_layout
25827
25828 \begin_layout LyX-Code
25829
25830 \family sans
25831 <tag attr=
25832 \begin_inset Quotes erd
25833 \end_inset
25834
25835 value
25836 \begin_inset Quotes erd
25837 \end_inset
25838
25839 >
25840 \end_layout
25841
25842 \begin_layout LyX-Code
25843
25844 \family sans
25845 <itemtag attr=
25846 \begin_inset Quotes erd
25847 \end_inset
25848
25849 value
25850 \begin_inset Quotes erd
25851 \end_inset
25852
25853 ><labeltag attr=
25854 \begin_inset Quotes erd
25855 \end_inset
25856
25857 value
25858 \begin_inset Quotes erd
25859 \end_inset
25860
25861 >List Label</labeltag>First item.</itemtag>
25862 \end_layout
25863
25864 \begin_layout LyX-Code
25865
25866 \family sans
25867 <itemtag attr=
25868 \begin_inset Quotes erd
25869 \end_inset
25870
25871 value
25872 \begin_inset Quotes erd
25873 \end_inset
25874
25875 ><labeltag attr=
25876 \begin_inset Quotes erd
25877 \end_inset
25878
25879 value
25880 \begin_inset Quotes erd
25881 \end_inset
25882
25883 >List Label</labeltag>Second item.</itemtag>
25884 \end_layout
25885
25886 \begin_layout LyX-Code
25887
25888 \family sans
25889 </tag>
25890 \end_layout
25891
25892 \begin_layout LyX-Code
25893
25894 \end_layout
25895
25896 \begin_layout LyX-Code
25897
25898 \family sans
25899 <tag attr=
25900 \begin_inset Quotes erd
25901 \end_inset
25902
25903 value
25904 \begin_inset Quotes erd
25905 \end_inset
25906
25907 >
25908 \end_layout
25909
25910 \begin_layout LyX-Code
25911
25912 \family sans
25913 <labeltag attr=
25914 \begin_inset Quotes erd
25915 \end_inset
25916
25917 value
25918 \begin_inset Quotes erd
25919 \end_inset
25920
25921 >List Label</labeltag><itemtag attr=
25922 \begin_inset Quotes erd
25923 \end_inset
25924
25925 value
25926 \begin_inset Quotes erd
25927 \end_inset
25928
25929 >First item.</itemtag>
25930 \end_layout
25931
25932 \begin_layout LyX-Code
25933
25934 \family sans
25935 <labeltag attr=
25936 \begin_inset Quotes erd
25937 \end_inset
25938
25939 value
25940 \begin_inset Quotes erd
25941 \end_inset
25942
25943 >List Label</labeltag><itemtag attr=
25944 \begin_inset Quotes erd
25945 \end_inset
25946
25947 value
25948 \begin_inset Quotes erd
25949 \end_inset
25950
25951 >Second item.</itemtag>
25952 \end_layout
25953
25954 \begin_layout LyX-Code
25955
25956 \family sans
25957 </tag>
25958 \end_layout
25959
25960 \begin_layout Standard
25961 Note the different orders of 
25962 \begin_inset Flex Code
25963 status collapsed
25964
25965 \begin_layout Plain Layout
25966 labeltag
25967 \end_layout
25968
25969 \end_inset
25970
25971  and 
25972 \begin_inset Flex Code
25973 status collapsed
25974
25975 \begin_layout Plain Layout
25976 itemtag
25977 \end_layout
25978
25979 \end_inset
25980
25981 .
25982  Which order we get depends upon the setting of 
25983 \begin_inset Flex Code
25984 status collapsed
25985
25986 \begin_layout Plain Layout
25987 HTMLLabelFirst
25988 \end_layout
25989
25990 \end_inset
25991
25992 : If 
25993 \begin_inset Flex Code
25994 status collapsed
25995
25996 \begin_layout Plain Layout
25997 HTMLLabelFirst
25998 \end_layout
25999
26000 \end_inset
26001
26002  is false (the default), you get the first of these, with the label within
26003  the item; if true, you get the second, with the label outside the item.
26004 \end_layout
26005
26006 \begin_layout Standard
26007 The specific tags and attributes output for each paragraph type can be controlle
26008 d by means of the layout tags we are about to describe.
26009  As mentioned earlier, however, \SpecialChar LyX
26010  uses sensible defaults for many of these,
26011  so you often may not need to do very much to get good XHTML output.
26012  Think of the available tags as there so you can tweak things to your liking.
26013 \end_layout
26014
26015 \begin_layout Description
26016 \begin_inset Flex Code
26017 status collapsed
26018
26019 \begin_layout Plain Layout
26020 HTMLAttr
26021 \end_layout
26022
26023 \end_inset
26024
26025  [
26026 \begin_inset Flex Code
26027 status collapsed
26028
26029 \begin_layout Plain Layout
26030 string
26031 \end_layout
26032
26033 \end_inset
26034
26035 ] Specifies attribute information to be output with the main tag.
26036  For example, 
26037 \begin_inset Quotes eld
26038 \end_inset
26039
26040
26041 \begin_inset Flex Code
26042 status collapsed
26043
26044 \begin_layout Plain Layout
26045 class=`mydiv'
26046 \end_layout
26047
26048 \end_inset
26049
26050
26051 \begin_inset Quotes erd
26052 \end_inset
26053
26054 .
26055  By default, \SpecialChar LyX
26056  will output 
26057 \begin_inset Quotes eld
26058 \end_inset
26059
26060
26061 \begin_inset Flex Code
26062 status collapsed
26063
26064 \begin_layout Plain Layout
26065 class=`layoutname'
26066 \end_layout
26067
26068 \end_inset
26069
26070
26071 \begin_inset Quotes erd
26072 \end_inset
26073
26074 , where 
26075 \begin_inset Flex Code
26076 status collapsed
26077
26078 \begin_layout Plain Layout
26079 layoutname
26080 \end_layout
26081
26082 \end_inset
26083
26084  is the \SpecialChar LyX
26085  name of the layout, made lowercase, for example: chapter.
26086  This should 
26087 \emph on
26088 not
26089 \emph default
26090  contain any style information.
26091  Use 
26092 \begin_inset Flex Code
26093 status collapsed
26094
26095 \begin_layout Plain Layout
26096 HTMLStyle
26097 \end_layout
26098
26099 \end_inset
26100
26101  for that purpose.
26102 \end_layout
26103
26104 \begin_layout Description
26105 \begin_inset Flex Code
26106 status collapsed
26107
26108 \begin_layout Plain Layout
26109 HTMLForceCSS
26110 \end_layout
26111
26112 \end_inset
26113
26114  [
26115 \begin_inset Flex Code
26116 status collapsed
26117
26118 \begin_layout Plain Layout
26119
26120 \emph on
26121 0
26122 \emph default
26123 ,1
26124 \end_layout
26125
26126 \end_inset
26127
26128 ] Whether to output the default CSS information \SpecialChar LyX
26129  generates for this layout,
26130  even if additional information is explicitly provided via 
26131 \begin_inset Flex Code
26132 status collapsed
26133
26134 \begin_layout Plain Layout
26135 HTMLStyle
26136 \end_layout
26137
26138 \end_inset
26139
26140 .
26141  Setting this to 
26142 \begin_inset Flex Code
26143 status collapsed
26144
26145 \begin_layout Plain Layout
26146 1
26147 \end_layout
26148
26149 \end_inset
26150
26151  allows you to alter or augment the generated CSS, rather than to override
26152  it completely.
26153  Default is 
26154 \begin_inset Flex Code
26155 status collapsed
26156
26157 \begin_layout Plain Layout
26158 0
26159 \end_layout
26160
26161 \end_inset
26162
26163 .
26164 \end_layout
26165
26166 \begin_layout Description
26167 \begin_inset Flex Code
26168 status collapsed
26169
26170 \begin_layout Plain Layout
26171 HTMLItem
26172 \end_layout
26173
26174 \end_inset
26175
26176  [
26177 \begin_inset Flex Code
26178 status collapsed
26179
26180 \begin_layout Plain Layout
26181 string
26182 \end_layout
26183
26184 \end_inset
26185
26186 ] The tag to be used for individual paragraphs of environments, replacing
26187  
26188 \begin_inset Flex Code
26189 status collapsed
26190
26191 \begin_layout Plain Layout
26192 itemtag
26193 \end_layout
26194
26195 \end_inset
26196
26197  in the examples above.
26198  Defaults to 
26199 \begin_inset Flex Code
26200 status collapsed
26201
26202 \begin_layout Plain Layout
26203 div
26204 \end_layout
26205
26206 \end_inset
26207
26208 .
26209 \end_layout
26210
26211 \begin_layout Description
26212 \begin_inset Flex Code
26213 status collapsed
26214
26215 \begin_layout Plain Layout
26216 HTMLItemAttr
26217 \end_layout
26218
26219 \end_inset
26220
26221  [
26222 \begin_inset Flex Code
26223 status collapsed
26224
26225 \begin_layout Plain Layout
26226 string
26227 \end_layout
26228
26229 \end_inset
26230
26231 ] Attributes for the item tag.
26232  Defaults to
26233 \begin_inset Newline newline
26234 \end_inset
26235
26236
26237 \begin_inset Quotes eld
26238 \end_inset
26239
26240
26241 \begin_inset Flex Code
26242 status collapsed
26243
26244 \begin_layout Plain Layout
26245 class=`layoutname_item'
26246 \end_layout
26247
26248 \end_inset
26249
26250
26251 \begin_inset Quotes erd
26252 \end_inset
26253
26254 .
26255  This should 
26256 \emph on
26257 not
26258 \emph default
26259  contain any style information.
26260  Use 
26261 \begin_inset Flex Code
26262 status collapsed
26263
26264 \begin_layout Plain Layout
26265 HTMLStyle
26266 \end_layout
26267
26268 \end_inset
26269
26270  for that purpose.
26271 \end_layout
26272
26273 \begin_layout Description
26274 \begin_inset Flex Code
26275 status collapsed
26276
26277 \begin_layout Plain Layout
26278 HTMLLabel
26279 \end_layout
26280
26281 \end_inset
26282
26283  [
26284 \begin_inset Flex Code
26285 status collapsed
26286
26287 \begin_layout Plain Layout
26288 string
26289 \end_layout
26290
26291 \end_inset
26292
26293 ] The tag to be used for paragraph and item labels, replacing 
26294 \begin_inset Flex Code
26295 status collapsed
26296
26297 \begin_layout Plain Layout
26298 labeltag
26299 \end_layout
26300
26301 \end_inset
26302
26303  in the examples above.
26304  Defaults to 
26305 \begin_inset Flex Code
26306 status collapsed
26307
26308 \begin_layout Plain Layout
26309 span
26310 \end_layout
26311
26312 \end_inset
26313
26314 , unless 
26315 \begin_inset Flex Code
26316 status collapsed
26317
26318 \begin_layout Plain Layout
26319 LabelType
26320 \end_layout
26321
26322 \end_inset
26323
26324  is either 
26325 \begin_inset Flex Code
26326 status collapsed
26327
26328 \begin_layout Plain Layout
26329 Top_Environment
26330 \end_layout
26331
26332 \end_inset
26333
26334  or 
26335 \begin_inset Flex Code
26336 status collapsed
26337
26338 \begin_layout Plain Layout
26339 Centered_Top_Environment
26340 \end_layout
26341
26342 \end_inset
26343
26344 , in which case it defaults to 
26345 \begin_inset Flex Code
26346 status collapsed
26347
26348 \begin_layout Plain Layout
26349 div
26350 \end_layout
26351
26352 \end_inset
26353
26354 .
26355 \end_layout
26356
26357 \begin_layout Description
26358 \begin_inset Flex Code
26359 status collapsed
26360
26361 \begin_layout Plain Layout
26362 HTMLLabelAttr
26363 \end_layout
26364
26365 \end_inset
26366
26367  [
26368 \begin_inset Flex Code
26369 status collapsed
26370
26371 \begin_layout Plain Layout
26372 string
26373 \end_layout
26374
26375 \end_inset
26376
26377 ] Attributes for the label tag.
26378  Defaults to
26379 \begin_inset Newline newline
26380 \end_inset
26381
26382
26383 \begin_inset Quotes eld
26384 \end_inset
26385
26386
26387 \begin_inset Flex Code
26388 status collapsed
26389
26390 \begin_layout Plain Layout
26391 class=`layoutname_label'
26392 \end_layout
26393
26394 \end_inset
26395
26396
26397 \begin_inset Quotes erd
26398 \end_inset
26399
26400 .
26401  This should 
26402 \emph on
26403 not
26404 \emph default
26405  contain any style information.
26406  Use 
26407 \begin_inset Flex Code
26408 status collapsed
26409
26410 \begin_layout Plain Layout
26411 HTMLStyle
26412 \end_layout
26413
26414 \end_inset
26415
26416  for that purpose.
26417 \end_layout
26418
26419 \begin_layout Description
26420 \begin_inset Flex Code
26421 status collapsed
26422
26423 \begin_layout Plain Layout
26424 HTMLLabelFirst
26425 \end_layout
26426
26427 \end_inset
26428
26429  [
26430 \begin_inset Flex Code
26431 status collapsed
26432
26433 \begin_layout Plain Layout
26434
26435 \emph on
26436 0
26437 \emph default
26438 ,1
26439 \end_layout
26440
26441 \end_inset
26442
26443 ] Meaningful only for list-like environments, this tag controls whether
26444  the label tag is output before or inside the item tag.
26445  This is used, for example, in the description environment, where we want
26446  `
26447 \begin_inset Flex Code
26448 status collapsed
26449
26450 \begin_layout Plain Layout
26451 <dt>\SpecialChar ldots
26452 </dt><dd>\SpecialChar ldots
26453 </dd>
26454 \end_layout
26455
26456 \end_inset
26457
26458 .
26459  Default is 
26460 \begin_inset Flex Code
26461 status collapsed
26462
26463 \begin_layout Plain Layout
26464 0
26465 \end_layout
26466
26467 \end_inset
26468
26469 : The label tag is output inside the item tag.
26470 \end_layout
26471
26472 \begin_layout Description
26473 \begin_inset Flex Code
26474 status collapsed
26475
26476 \begin_layout Plain Layout
26477 HTMLPreamble
26478 \end_layout
26479
26480 \end_inset
26481
26482  Information to be output in the 
26483 \begin_inset Flex Code
26484 status collapsed
26485
26486 \begin_layout Plain Layout
26487 <head>
26488 \end_layout
26489
26490 \end_inset
26491
26492  section when this style is used.
26493  This might, for example, be used to include a 
26494 \begin_inset Flex Code
26495 status collapsed
26496
26497 \begin_layout Plain Layout
26498 <script>
26499 \end_layout
26500
26501 \end_inset
26502
26503  block defining an 
26504 \begin_inset Flex Code
26505 status collapsed
26506
26507 \begin_layout Plain Layout
26508 onclick
26509 \end_layout
26510
26511 \end_inset
26512
26513  handler.
26514 \end_layout
26515
26516 \begin_layout Description
26517 \begin_inset Flex Code
26518 status collapsed
26519
26520 \begin_layout Plain Layout
26521 HTMLStyle
26522 \end_layout
26523
26524 \end_inset
26525
26526  CSS style information to be included when this style is used.
26527  Note that this will automatically be wrapped in a layout-generated 
26528 \begin_inset Flex Code
26529 status collapsed
26530
26531 \begin_layout Plain Layout
26532 <style>
26533 \end_layout
26534
26535 \end_inset
26536
26537  block, so only the CSS itself need be included.
26538  Must end with 
26539 \begin_inset Flex Code
26540 status collapsed
26541
26542 \begin_layout Plain Layout
26543 EndHTMLStyle
26544 \end_layout
26545
26546 \end_inset
26547
26548 .
26549 \end_layout
26550
26551 \begin_layout Description
26552 \begin_inset Flex Code
26553 status collapsed
26554
26555 \begin_layout Plain Layout
26556 HTMLTag
26557 \end_layout
26558
26559 \end_inset
26560
26561  [
26562 \begin_inset Flex Code
26563 status collapsed
26564
26565 \begin_layout Plain Layout
26566 string
26567 \end_layout
26568
26569 \end_inset
26570
26571 ] The tag to be used for the main label, replacing 
26572 \begin_inset Flex Code
26573 status collapsed
26574
26575 \begin_layout Plain Layout
26576 tag
26577 \end_layout
26578
26579 \end_inset
26580
26581  in the examples above.
26582  Defaults to 
26583 \begin_inset Flex Code
26584 status collapsed
26585
26586 \begin_layout Plain Layout
26587 div
26588 \end_layout
26589
26590 \end_inset
26591
26592 .
26593 \end_layout
26594
26595 \begin_layout Description
26596 \begin_inset Flex Code
26597 status collapsed
26598
26599 \begin_layout Plain Layout
26600 HTMLTitle
26601 \end_layout
26602
26603 \end_inset
26604
26605  [
26606 \begin_inset Flex Code
26607 status collapsed
26608
26609 \begin_layout Plain Layout
26610
26611 \emph on
26612 0
26613 \emph default
26614 ,1
26615 \end_layout
26616
26617 \end_inset
26618
26619 ] Marks this style as the one to be used to generate the 
26620 \begin_inset Flex Code
26621 status collapsed
26622
26623 \begin_layout Plain Layout
26624 <title>
26625 \end_layout
26626
26627 \end_inset
26628
26629  tag for the XHTML file.
26630  By default, it is false.
26631  The 
26632 \begin_inset Flex Code
26633 status collapsed
26634
26635 \begin_layout Plain Layout
26636 stdtitle.inc
26637 \end_layout
26638
26639 \end_inset
26640
26641  file sets it to true for the 
26642 \begin_inset Flex Code
26643 status collapsed
26644
26645 \begin_layout Plain Layout
26646 title
26647 \end_layout
26648
26649 \end_inset
26650
26651  environment.
26652  
26653 \end_layout
26654
26655 \begin_layout Subsection
26656 InsetLayout XHTML
26657 \end_layout
26658
26659 \begin_layout Standard
26660 The XHTML output of insets can also be controlled by information in layout
26661  files.
26662 \begin_inset Foot
26663 status collapsed
26664
26665 \begin_layout Plain Layout
26666 At present, this is true only for 
26667 \begin_inset Quotes eld
26668 \end_inset
26669
26670 text
26671 \begin_inset Quotes erd
26672 \end_inset
26673
26674  insets (insets you can type into) and is not true for 
26675 \begin_inset Quotes eld
26676 \end_inset
26677
26678 command
26679 \begin_inset Quotes erd
26680 \end_inset
26681
26682  insets (insets that are associated with dialog boxes).
26683 \end_layout
26684
26685 \end_inset
26686
26687  Here, too, \SpecialChar LyX
26688  tries to provide sensible defaults, and it constructs default
26689  CSS style rules.
26690  But everything can be customized.
26691 \end_layout
26692
26693 \begin_layout Standard
26694 The XHTML \SpecialChar LyX
26695  outputs for an inset has the following form:
26696 \end_layout
26697
26698 \begin_layout LyX-Code
26699 <tag attr=
26700 \begin_inset Quotes erd
26701 \end_inset
26702
26703 value
26704 \begin_inset Quotes erd
26705 \end_inset
26706
26707 >
26708 \end_layout
26709
26710 \begin_layout LyX-Code
26711 <labeltag>Label</labeltag>
26712 \end_layout
26713
26714 \begin_layout LyX-Code
26715 <innertag attr=
26716 \begin_inset Quotes erd
26717 \end_inset
26718
26719 value
26720 \begin_inset Quotes erd
26721 \end_inset
26722
26723 >Contents of the inset.</innertag>
26724 \end_layout
26725
26726 \begin_layout LyX-Code
26727 </tag>
26728 \end_layout
26729
26730 \begin_layout Standard
26731 If the inset permits multiple paragraphs—that is, if 
26732 \begin_inset Flex Code
26733 status collapsed
26734
26735 \begin_layout Plain Layout
26736 MultiPar
26737 \end_layout
26738
26739 \end_inset
26740
26741  is true—then the contents of the inset will itself be output as paragraphs
26742  formatted according to the styles used for those paragraphs (standard,
26743  quote, and the like).
26744  The label tag is of course omitted if the paragraph does not have a label
26745  and, at present, is always 
26746 \begin_inset Flex Code
26747 status collapsed
26748
26749 \begin_layout Plain Layout
26750 span
26751 \end_layout
26752
26753 \end_inset
26754
26755 .
26756  The inner tag is optional and, by default, does not appear.
26757 \end_layout
26758
26759 \begin_layout Standard
26760 The specific tags and attributes output for each inset can be controlled
26761  by means of the following layout tags.
26762 \end_layout
26763
26764 \begin_layout Description
26765 \begin_inset Flex Code
26766 status collapsed
26767
26768 \begin_layout Plain Layout
26769 HTMLAttr
26770 \end_layout
26771
26772 \end_inset
26773
26774  [
26775 \begin_inset Flex Code
26776 status collapsed
26777
26778 \begin_layout Plain Layout
26779 string
26780 \end_layout
26781
26782 \end_inset
26783
26784 ] Specifies attribute information to be output with the main tag.
26785  For example, 
26786 \begin_inset Quotes eld
26787 \end_inset
26788
26789
26790 \begin_inset Flex Code
26791 status collapsed
26792
26793 \begin_layout Plain Layout
26794 class=`myinset' onclick=`\SpecialChar ldots
26795 '
26796 \end_layout
26797
26798 \end_inset
26799
26800
26801 \begin_inset Quotes erd
26802 \end_inset
26803
26804 .
26805  By default, \SpecialChar LyX
26806  will output 
26807 \begin_inset Quotes eld
26808 \end_inset
26809
26810
26811 \begin_inset Flex Code
26812 status collapsed
26813
26814 \begin_layout Plain Layout
26815 class=`insetname'
26816 \end_layout
26817
26818 \end_inset
26819
26820
26821 \begin_inset Quotes erd
26822 \end_inset
26823
26824 , where 
26825 \begin_inset Flex Code
26826 status collapsed
26827
26828 \begin_layout Plain Layout
26829 insetname
26830 \end_layout
26831
26832 \end_inset
26833
26834  is the \SpecialChar LyX
26835  name of the inset, made lowercase and with non-alphanumeric characters
26836  converted to underscores, for example: footnote.
26837 \end_layout
26838
26839 \begin_layout Description
26840 \begin_inset Flex Code
26841 status collapsed
26842
26843 \begin_layout Plain Layout
26844 HTMLForceCSS
26845 \end_layout
26846
26847 \end_inset
26848
26849  [
26850 \begin_inset Flex Code
26851 status collapsed
26852
26853 \begin_layout Plain Layout
26854
26855 \emph on
26856 0
26857 \emph default
26858 ,1
26859 \end_layout
26860
26861 \end_inset
26862
26863 ] Whether to output the default CSS information \SpecialChar LyX
26864  generates for this layout,
26865  even if additional information is explicitly provided via 
26866 \begin_inset Flex Code
26867 status collapsed
26868
26869 \begin_layout Plain Layout
26870 HTMLStyle
26871 \end_layout
26872
26873 \end_inset
26874
26875 .
26876  Setting this to 
26877 \begin_inset Flex Code
26878 status collapsed
26879
26880 \begin_layout Plain Layout
26881 1
26882 \end_layout
26883
26884 \end_inset
26885
26886  allows you to alter or augment the generated CSS, rather than to override
26887  it completely.
26888  Default is 0.
26889 \end_layout
26890
26891 \begin_layout Description
26892 \begin_inset Flex Code
26893 status collapsed
26894
26895 \begin_layout Plain Layout
26896 HTMLInnerAttr
26897 \end_layout
26898
26899 \end_inset
26900
26901  [
26902 \begin_inset Flex Code
26903 status collapsed
26904
26905 \begin_layout Plain Layout
26906 string
26907 \end_layout
26908
26909 \end_inset
26910
26911 ] Attributes for the inner tag.
26912  Defaults to
26913 \begin_inset Newline newline
26914 \end_inset
26915
26916
26917 \begin_inset Quotes eld
26918 \end_inset
26919
26920
26921 \begin_inset Flex Code
26922 status collapsed
26923
26924 \begin_layout Plain Layout
26925 class=`insetname_inner'
26926 \end_layout
26927
26928 \end_inset
26929
26930
26931 \begin_inset Quotes erd
26932 \end_inset
26933
26934 .
26935 \end_layout
26936
26937 \begin_layout Description
26938 \begin_inset Flex Code
26939 status collapsed
26940
26941 \begin_layout Plain Layout
26942 HTMLInnerTag
26943 \end_layout
26944
26945 \end_inset
26946
26947  [
26948 \begin_inset Flex Code
26949 status collapsed
26950
26951 \begin_layout Plain Layout
26952 string
26953 \end_layout
26954
26955 \end_inset
26956
26957 ] The inner tag, replacing 
26958 \begin_inset Flex Code
26959 status collapsed
26960
26961 \begin_layout Plain Layout
26962 innertag
26963 \end_layout
26964
26965 \end_inset
26966
26967  in the examples above.
26968  By default, there is none.
26969 \end_layout
26970
26971 \begin_layout Description
26972 \begin_inset Flex Code
26973 status collapsed
26974
26975 \begin_layout Plain Layout
26976 HTMLIsBlock
26977 \end_layout
26978
26979 \end_inset
26980
26981  [
26982 \begin_inset Flex Code
26983 status collapsed
26984
26985 \begin_layout Plain Layout
26986 0,
26987 \emph on
26988 1
26989 \end_layout
26990
26991 \end_inset
26992
26993 ] Whether this inset represents a standalone block of text (such as a footnote)
26994  or instead represents material that is included in the surrounding text
26995  (such as a branch).
26996  Defaults to 1.
26997 \end_layout
26998
26999 \begin_layout Description
27000 \begin_inset Flex Code
27001 status collapsed
27002
27003 \begin_layout Plain Layout
27004 HTMLLabel
27005 \end_layout
27006
27007 \end_inset
27008
27009  [
27010 \begin_inset Flex Code
27011 status collapsed
27012
27013 \begin_layout Plain Layout
27014 string
27015 \end_layout
27016
27017 \end_inset
27018
27019 ] A label for this inset, possibly including a reference to a counter.
27020  For example, for footnote, it might be: 
27021 \begin_inset Flex Code
27022 status collapsed
27023
27024 \begin_layout Plain Layout
27025
27026 \backslash
27027 arabic{footnote}
27028 \end_layout
27029
27030 \end_inset
27031
27032 .
27033  This is optional, and there is no default.
27034 \end_layout
27035
27036 \begin_layout Description
27037 \begin_inset Flex Code
27038 status collapsed
27039
27040 \begin_layout Plain Layout
27041 HTMLPreamble
27042 \end_layout
27043
27044 \end_inset
27045
27046  Information to be output in the 
27047 \begin_inset Flex Code
27048 status collapsed
27049
27050 \begin_layout Plain Layout
27051 <head>
27052 \end_layout
27053
27054 \end_inset
27055
27056  section when this style is used.
27057  This might, for example, be used to include a 
27058 \begin_inset Flex Code
27059 status collapsed
27060
27061 \begin_layout Plain Layout
27062 <script>
27063 \end_layout
27064
27065 \end_inset
27066
27067  block defining an 
27068 \begin_inset Flex Code
27069 status collapsed
27070
27071 \begin_layout Plain Layout
27072 onclick
27073 \end_layout
27074
27075 \end_inset
27076
27077  handler.
27078 \end_layout
27079
27080 \begin_layout Description
27081 \begin_inset Flex Code
27082 status collapsed
27083
27084 \begin_layout Plain Layout
27085 HTMLStyle
27086 \end_layout
27087
27088 \end_inset
27089
27090  CSS style information to be included when this style is used.
27091  Note that this will automatically be wrapped in a layout-generated 
27092 \begin_inset Flex Code
27093 status collapsed
27094
27095 \begin_layout Plain Layout
27096 <style>
27097 \end_layout
27098
27099 \end_inset
27100
27101  block, so only the CSS itself need be included.
27102 \end_layout
27103
27104 \begin_layout Description
27105 \begin_inset Flex Code
27106 status collapsed
27107
27108 \begin_layout Plain Layout
27109 HTMLTag
27110 \end_layout
27111
27112 \end_inset
27113
27114  [
27115 \begin_inset Flex Code
27116 status collapsed
27117
27118 \begin_layout Plain Layout
27119 string
27120 \end_layout
27121
27122 \end_inset
27123
27124 ] The tag to be used for the main label, replacing 
27125 \begin_inset Flex Code
27126 status collapsed
27127
27128 \begin_layout Plain Layout
27129 tag
27130 \end_layout
27131
27132 \end_inset
27133
27134  in the examples above.
27135  The default depends upon the setting of 
27136 \begin_inset Flex Code
27137 status collapsed
27138
27139 \begin_layout Plain Layout
27140 MultiPar
27141 \end_layout
27142
27143 \end_inset
27144
27145 : If 
27146 \begin_inset Flex Code
27147 status collapsed
27148
27149 \begin_layout Plain Layout
27150 MultiPar
27151 \end_layout
27152
27153 \end_inset
27154
27155  is true, the default is 
27156 \begin_inset Flex Code
27157 status collapsed
27158
27159 \begin_layout Plain Layout
27160 div
27161 \end_layout
27162
27163 \end_inset
27164
27165 ; if it is false, the default is 
27166 \begin_inset Flex Code
27167 status collapsed
27168
27169 \begin_layout Plain Layout
27170 span
27171 \end_layout
27172
27173 \end_inset
27174
27175 .
27176 \end_layout
27177
27178 \begin_layout Subsection
27179 Float XHTML
27180 \end_layout
27181
27182 \begin_layout Standard
27183 The XHTML output for floats too can be controlled by layout information.
27184  The output has the following form:
27185 \end_layout
27186
27187 \begin_layout LyX-Code
27188 <tag attr=
27189 \begin_inset Quotes erd
27190 \end_inset
27191
27192 value
27193 \begin_inset Quotes erd
27194 \end_inset
27195
27196 >
27197 \end_layout
27198
27199 \begin_layout LyX-Code
27200 Contents of the float.
27201 \end_layout
27202
27203 \begin_layout LyX-Code
27204 </tag>
27205 \end_layout
27206
27207 \begin_layout Standard
27208 The caption, if there is one, is a separate inset and will be output as
27209  such.
27210  Its appearance can be controlled via the InsetLayout for caption insets.
27211  
27212 \end_layout
27213
27214 \begin_layout Description
27215 \begin_inset Flex Code
27216 status collapsed
27217
27218 \begin_layout Plain Layout
27219 HTMLAttr
27220 \end_layout
27221
27222 \end_inset
27223
27224  [
27225 \begin_inset Flex Code
27226 status collapsed
27227
27228 \begin_layout Plain Layout
27229 string
27230 \end_layout
27231
27232 \end_inset
27233
27234 ] Specifies attribute information to be output with the main tag.
27235  For example, 
27236 \begin_inset Quotes eld
27237 \end_inset
27238
27239
27240 \begin_inset Flex Code
27241 status collapsed
27242
27243 \begin_layout Plain Layout
27244 class=`myfloat' onclick=`\SpecialChar ldots
27245 '
27246 \end_layout
27247
27248 \end_inset
27249
27250
27251 \begin_inset Quotes erd
27252 \end_inset
27253
27254 .
27255  By default, \SpecialChar LyX
27256  will output 
27257 \begin_inset Quotes eld
27258 \end_inset
27259
27260
27261 \begin_inset Flex Code
27262 status collapsed
27263
27264 \begin_layout Plain Layout
27265 class=`float float-floattype'
27266 \end_layout
27267
27268 \end_inset
27269
27270
27271 \begin_inset Quotes erd
27272 \end_inset
27273
27274 , where 
27275 \begin_inset Flex Code
27276 status collapsed
27277
27278 \begin_layout Plain Layout
27279 floattype
27280 \end_layout
27281
27282 \end_inset
27283
27284  is \SpecialChar LyX
27285 's name for this type of float, as determined by the float declaration
27286  (see 
27287 \begin_inset CommandInset ref
27288 LatexCommand ref
27289 reference "subsec:Floats"
27290
27291 \end_inset
27292
27293 ), though made lowercase and with non-alphanumeric characters converted
27294  to underscores, for example: float-table.
27295 \end_layout
27296
27297 \begin_layout Description
27298 \begin_inset Flex Code
27299 status collapsed
27300
27301 \begin_layout Plain Layout
27302 HTMLStyle
27303 \end_layout
27304
27305 \end_inset
27306
27307  CSS style information to be included when this float is used.
27308  Note that this will automatically be wrapped in a layout-generated 
27309 \begin_inset Flex Code
27310 status collapsed
27311
27312 \begin_layout Plain Layout
27313 <style>
27314 \end_layout
27315
27316 \end_inset
27317
27318  block, so only the CSS itself need be included.
27319 \end_layout
27320
27321 \begin_layout Description
27322 \begin_inset Flex Code
27323 status collapsed
27324
27325 \begin_layout Plain Layout
27326 HTMLTag
27327 \end_layout
27328
27329 \end_inset
27330
27331  [
27332 \begin_inset Flex Code
27333 status collapsed
27334
27335 \begin_layout Plain Layout
27336 string
27337 \end_layout
27338
27339 \end_inset
27340
27341 ] The tag to be used for this float, replacing 
27342 \begin_inset Quotes eld
27343 \end_inset
27344
27345
27346 \begin_inset Flex Code
27347 status collapsed
27348
27349 \begin_layout Plain Layout
27350 tag
27351 \end_layout
27352
27353 \end_inset
27354
27355
27356 \begin_inset Quotes erd
27357 \end_inset
27358
27359  in the example above.
27360  The default is 
27361 \begin_inset Flex Code
27362 status collapsed
27363
27364 \begin_layout Plain Layout
27365 div
27366 \end_layout
27367
27368 \end_inset
27369
27370  and will rarely need changing.
27371 \end_layout
27372
27373 \begin_layout Subsection
27374 Bibliography formatting
27375 \end_layout
27376
27377 \begin_layout Standard
27378 The bibliography can be formatted using 
27379 \begin_inset Flex Code
27380 status collapsed
27381
27382 \begin_layout Plain Layout
27383 CiteFormat
27384 \end_layout
27385
27386 \end_inset
27387
27388  blocks.
27389  See 
27390 \begin_inset CommandInset ref
27391 LatexCommand ref
27392 reference "subsec:Citation-format-description"
27393
27394 \end_inset
27395
27396  for the details.
27397 \end_layout
27398
27399 \begin_layout Subsection
27400 \SpecialChar LyX
27401 -generated CSS
27402 \end_layout
27403
27404 \begin_layout Standard
27405 We have several times mentioned that \SpecialChar LyX
27406  will generate default CSS style rules
27407  for both insets and paragraph styles, based upon the other layout information
27408  that is provided.
27409  In this section, we shall say a word about which layout information \SpecialChar LyX
27410  uses
27411  and how.
27412 \end_layout
27413
27414 \begin_layout Standard
27415 At present, \SpecialChar LyX
27416  auto-generates CSS only for font information, making use of
27417  the 
27418 \begin_inset Flex Code
27419 status collapsed
27420
27421 \begin_layout Plain Layout
27422 Family
27423 \end_layout
27424
27425 \end_inset
27426
27427
27428 \begin_inset Flex Code
27429 status collapsed
27430
27431 \begin_layout Plain Layout
27432 Series
27433 \end_layout
27434
27435 \end_inset
27436
27437
27438 \begin_inset Flex Code
27439 status collapsed
27440
27441 \begin_layout Plain Layout
27442 Shape
27443 \end_layout
27444
27445 \end_inset
27446
27447 , and 
27448 \begin_inset Flex Code
27449 status collapsed
27450
27451 \begin_layout Plain Layout
27452 Size
27453 \end_layout
27454
27455 \end_inset
27456
27457  specified in the 
27458 \begin_inset Flex Code
27459 status collapsed
27460
27461 \begin_layout Plain Layout
27462 Font
27463 \end_layout
27464
27465 \end_inset
27466
27467  declaration (see 
27468 \begin_inset CommandInset ref
27469 LatexCommand ref
27470 reference "subsec:Font-description"
27471
27472 \end_inset
27473
27474 ).
27475  The translation is mostly straightforward and obvious.
27476  For example, 
27477 \begin_inset Quotes eld
27478 \end_inset
27479
27480
27481 \begin_inset Flex Code
27482 status collapsed
27483
27484 \begin_layout Plain Layout
27485 Family Sans
27486 \end_layout
27487
27488 \end_inset
27489
27490
27491 \begin_inset Quotes erd
27492 \end_inset
27493
27494  becomes 
27495 \begin_inset Quotes eld
27496 \end_inset
27497
27498
27499 \begin_inset Flex Code
27500 status collapsed
27501
27502 \begin_layout Plain Layout
27503 font-family: sans-serif;
27504 \end_layout
27505
27506 \end_inset
27507
27508
27509 \begin_inset Quotes erd
27510 \end_inset
27511
27512 .
27513  The correspondence of \SpecialChar LyX
27514  sizes and CSS sizes is a little less obvious but
27515  nonetheless intuitive.
27516  See the 
27517 \begin_inset Flex Code
27518 status collapsed
27519
27520 \begin_layout Plain Layout
27521 getSizeCSS()
27522 \end_layout
27523
27524 \end_inset
27525
27526  function in 
27527 \begin_inset Flex URL
27528 status collapsed
27529
27530 \begin_layout Plain Layout
27531
27532 src/FontInfo.cpp
27533 \end_layout
27534
27535 \end_inset
27536
27537  for the details.
27538 \change_inserted -970929547 1496610908
27539
27540 \end_layout
27541
27542 \begin_layout Section
27543
27544 \change_inserted -970929547 1496610966
27545 \begin_inset CommandInset label
27546 LatexCommand label
27547 name "sec:Tags-for-DocBook"
27548
27549 \end_inset
27550
27551 Tags for DocBook output
27552 \end_layout
27553
27554 \begin_layout Standard
27555
27556 \change_inserted -970929547 1496611615
27557 As with \SpecialChar LaTeX
27558  or XHTML, the format of \SpecialChar LyX
27559 's DocBook output is also controlled by
27560  layout information.
27561  In general, \SpecialChar LyX
27562  provides sensible defaults; however, much of the styling is
27563  lost during the conversion, as DocBook is strictly semantic and does not
27564  allow formatting.
27565  When possible, information from \SpecialChar LyX
27566  will be rendered in 
27567 \family typewriter
27568 role
27569 \family default
27570  attributes.
27571  
27572 \end_layout
27573
27574 \begin_layout Standard
27575
27576 \change_inserted -970929547 1496612080
27577 In many cases, then, you may not have to do anything at all to get acceptable
27578  DocBook output for your own environments, custom insets, and so forth.
27579  But in some cases you will, and so \SpecialChar LyX
27580  provides a number of layout tags that
27581  can be used to customize the DocBook that is generated.
27582 \end_layout
27583
27584 \begin_layout Standard
27585
27586 \change_inserted -970929547 1515109912
27587 Labels are rarely output, as they are redundant in DocBook: this information
27588  is carried by the tags themselves, and whether labels appear in the final
27589  documents (after processing of DocBook files) is controlled by the stylesheets.
27590  However, sometimes, labels are not redundant content, such as definition
27591  lists: in this case, the term being defined will be the label.
27592  
27593 \end_layout
27594
27595 \begin_layout Subsection
27596
27597 \change_inserted 1075283030 1597699417
27598 \begin_inset CommandInset label
27599 LatexCommand label
27600 name "subsec:Paragraph-Style-DocBook"
27601
27602 \end_inset
27603
27604
27605 \change_deleted 1075283030 1597699417
27606
27607 \begin_inset CommandInset label
27608 LatexCommand label
27609 name "subsec:Paragraph-Style-XHTML-1"
27610
27611 \end_inset
27612
27613
27614 \change_inserted -970929547 1496610966
27615 Paragraph styles
27616 \end_layout
27617
27618 \begin_layout Standard
27619
27620 \change_inserted -970929547 1496612059
27621 The sort of DocBook \SpecialChar LyX
27622  outputs for a paragraph depends upon whether we are
27623  dealing with a normal paragraph, a command, or an environment, where this
27624  is itself determined by the contents of the corresponding 
27625 \begin_inset Flex Code
27626 status collapsed
27627
27628 \begin_layout Plain Layout
27629
27630 \change_inserted -970929547 1496610966
27631 \SpecialChar LaTeX
27632 Type
27633 \change_unchanged
27634
27635 \end_layout
27636
27637 \end_inset
27638
27639  tag.
27640  
27641 \end_layout
27642
27643 \begin_layout Standard
27644
27645 \change_inserted -970929547 1496612107
27646 For a command or normal paragraph, the output DocBook has the following
27647  form:
27648 \end_layout
27649
27650 \begin_layout LyX-Code
27651
27652 \change_inserted -970929547 1515109666
27653 <tag attr>
27654 \end_layout
27655
27656 \begin_layout LyX-Code
27657
27658 \change_inserted -970929547 1496610966
27659 Contents of the paragraph.
27660 \end_layout
27661
27662 \begin_layout LyX-Code
27663
27664 \change_inserted -970929547 1496610966
27665 </tag>
27666 \end_layout
27667
27668 \begin_layout Standard
27669
27670 \change_inserted -970929547 1515109821
27671 For an environment that is not some sort of list, the generated DocBook
27672  takes this form:
27673 \end_layout
27674
27675 \begin_layout LyX-Code
27676
27677 \change_inserted -970929547 1515109671
27678 <tag attr>
27679 \end_layout
27680
27681 \begin_layout LyX-Code
27682
27683 \change_inserted -970929547 1496612114
27684 <itemtag>First paragraph.</itemtag>
27685 \end_layout
27686
27687 \begin_layout LyX-Code
27688
27689 \change_inserted -970929547 1496610966
27690 <itemtag>Second paragraph.</itemtag>
27691 \end_layout
27692
27693 \begin_layout LyX-Code
27694
27695 \change_inserted -970929547 1496610966
27696 </tag>
27697 \end_layout
27698
27699 \begin_layout Standard
27700
27701 \change_inserted -970929547 1515109825
27702 For a list, the resulting DocBook takes this form:
27703 \end_layout
27704
27705 \begin_layout LyX-Code
27706
27707 \change_inserted -970929547 1515109672
27708 <tag attr>
27709 \end_layout
27710
27711 \begin_layout LyX-Code
27712
27713 \change_inserted -970929547 1515109676
27714 <itemtag attr>First item.</itemtag>
27715 \end_layout
27716
27717 \begin_layout LyX-Code
27718
27719 \change_inserted -970929547 1515109678
27720 <itemtag attr>Second item.</itemtag>
27721 \end_layout
27722
27723 \begin_layout LyX-Code
27724
27725 \change_inserted -970929547 1496610966
27726 </tag>
27727 \end_layout
27728
27729 \begin_layout Standard
27730
27731 \change_inserted -970929547 1496612243
27732 The specific tags and roles output for each paragraph type can be controlled
27733  by means of the layout tags we are about to describe.
27734  Please note that, due to the very nature of DocBook, no sensible defaults
27735  really exist, and the values must always be carefully chosen.
27736  
27737 \end_layout
27738
27739 \begin_layout Description
27740
27741 \change_inserted -970929547 1515110057
27742 \begin_inset Flex Code
27743 status collapsed
27744
27745 \begin_layout Plain Layout
27746
27747 \change_inserted -970929547 1515109656
27748 DocBookAttr
27749 \change_unchanged
27750
27751 \end_layout
27752
27753 \end_inset
27754
27755  [
27756 \begin_inset Flex Code
27757 status collapsed
27758
27759 \begin_layout Plain Layout
27760
27761 \change_inserted -970929547 1496610966
27762 string
27763 \change_unchanged
27764
27765 \end_layout
27766
27767 \end_inset
27768
27769 ] Specifies attribute information to be output with the main tag, replacing
27770  
27771 \begin_inset Quotes eld
27772 \end_inset
27773
27774
27775 \begin_inset Flex Code
27776 status collapsed
27777
27778 \begin_layout Plain Layout
27779
27780 \change_inserted -970929547 1515110057
27781 attr
27782 \change_unchanged
27783
27784 \end_layout
27785
27786 \end_inset
27787
27788
27789 \begin_inset Quotes erd
27790 \end_inset
27791
27792  in the example above.
27793  This information can be used in further processing of the DocBook files.
27794  
27795 \change_unchanged
27796
27797 \end_layout
27798
27799 \begin_layout Description
27800
27801 \change_inserted -970929547 1496612296
27802 \begin_inset Flex Code
27803 status collapsed
27804
27805 \begin_layout Plain Layout
27806
27807 \change_inserted -970929547 1496612269
27808 DocBookTag
27809 \change_unchanged
27810
27811 \end_layout
27812
27813 \end_inset
27814
27815  [
27816 \begin_inset Flex Code
27817 status collapsed
27818
27819 \begin_layout Plain Layout
27820
27821 \change_inserted -970929547 1496610966
27822 string
27823 \change_unchanged
27824
27825 \end_layout
27826
27827 \end_inset
27828
27829 ] The tag to be used for this inset, replacing 
27830 \begin_inset Quotes eld
27831 \end_inset
27832
27833
27834 \begin_inset Flex Code
27835 status collapsed
27836
27837 \begin_layout Plain Layout
27838
27839 \change_inserted -970929547 1496612296
27840 tag
27841 \change_unchanged
27842
27843 \end_layout
27844
27845 \end_inset
27846
27847
27848 \begin_inset Quotes erd
27849 \end_inset
27850
27851  in the example above.
27852  The default is the name of the float and always needs to be changed, as
27853  DocBook provides no generic tag.
27854 \change_inserted 1075283030 1597698868
27855
27856 \end_layout
27857
27858 \begin_layout Description
27859
27860 \change_inserted 1075283030 1597699399
27861 \begin_inset Flex Code
27862 status collapsed
27863
27864 \begin_layout Plain Layout
27865
27866 \change_inserted 1075283030 1597698872
27867 DocBookTagType
27868 \change_unchanged
27869
27870 \end_layout
27871
27872 \end_inset
27873
27874  [
27875 \begin_inset Flex Code
27876 status collapsed
27877
27878 \begin_layout Plain Layout
27879
27880 \change_inserted 1075283030 1597700585
27881 block, paragraph, inline
27882 \change_unchanged
27883
27884 \end_layout
27885
27886 \end_inset
27887
27888 ] The new-line policy for this tag, see Section
27889 \begin_inset space ~
27890 \end_inset
27891
27892
27893 \begin_inset CommandInset ref
27894 LatexCommand ref
27895 reference "subsec:DocBook-New-line-policy"
27896 plural "false"
27897 caps "false"
27898 noprefix "false"
27899
27900 \end_inset
27901
27902  for the details.
27903  
27904 \change_unchanged
27905
27906 \end_layout
27907
27908 \begin_layout Subsection
27909
27910 \change_inserted 1075283030 1597699385
27911 New-line policy
27912 \begin_inset CommandInset label
27913 LatexCommand label
27914 name "subsec:DocBook-New-line-policy"
27915
27916 \end_inset
27917
27918
27919 \end_layout
27920
27921 \begin_layout Standard
27922
27923 \change_inserted 1075283030 1597698993
27924 For all tags, there are three possible policies for outputting new lines
27925  (given in the 
27926 \begin_inset Flex Code
27927 status collapsed
27928
27929 \begin_layout Plain Layout
27930
27931 \change_inserted 1075283030 1597698987
27932 DocBook*TagType
27933 \change_unchanged
27934
27935 \end_layout
27936
27937 \end_inset
27938
27939  attribute): 
27940 \end_layout
27941
27942 \begin_layout Itemize
27943
27944 \change_inserted 1075283030 1597699279
27945 \begin_inset Quotes eld
27946 \end_inset
27947
27948
27949 \begin_inset Flex Code
27950 status collapsed
27951
27952 \begin_layout Plain Layout
27953
27954 \change_inserted 1075283030 1597699012
27955 block
27956 \change_unchanged
27957
27958 \end_layout
27959
27960 \end_inset
27961
27962
27963 \begin_inset Quotes erd
27964 \end_inset
27965
27966 : the opening and closing tags are on their own lines (i.e.
27967  a line feed after and before the opening and the closing tags).
27968  Typical elements are floats.
27969  For instance: 
27970 \end_layout
27971
27972 \begin_layout LyX-Code
27973
27974 \change_inserted 1075283030 1597699194
27975 Content before
27976 \end_layout
27977
27978 \begin_layout LyX-Code
27979
27980 \change_inserted 1075283030 1597699194
27981 <blocktag>
27982 \end_layout
27983
27984 \begin_layout LyX-Code
27985
27986 \change_inserted 1075283030 1597699098
27987   Contents of the block.
27988 \end_layout
27989
27990 \begin_layout LyX-Code
27991
27992 \change_inserted 1075283030 1597699196
27993 </blocktag>
27994 \end_layout
27995
27996 \begin_layout LyX-Code
27997
27998 \change_inserted 1075283030 1597699198
27999 Content after
28000 \end_layout
28001
28002 \begin_layout Itemize
28003
28004 \change_inserted 1075283030 1597699289
28005 \begin_inset Quotes eld
28006 \end_inset
28007
28008
28009 \begin_inset Flex Code
28010 status collapsed
28011
28012 \begin_layout Plain Layout
28013
28014 \change_inserted 1075283030 1597699113
28015 paragraph
28016 \change_unchanged
28017
28018 \end_layout
28019
28020 \end_inset
28021
28022
28023 \begin_inset Quotes erd
28024 \end_inset
28025
28026 : the opening and closing tags are on the same, new line; a line feed is
28027  output before the opening tag and after the closing tag.
28028  Typical elements are paragraphs and list items.
28029  For instance: 
28030 \end_layout
28031
28032 \begin_layout LyX-Code
28033
28034 \change_inserted 1075283030 1597699186
28035 Content before
28036 \end_layout
28037
28038 \begin_layout LyX-Code
28039
28040 \change_inserted 1075283030 1597699357
28041 <paratag>Contents of the paragraph.</paratag>
28042 \end_layout
28043
28044 \begin_layout LyX-Code
28045
28046 \change_inserted 1075283030 1597699231
28047 Content after
28048 \end_layout
28049
28050 \begin_layout Itemize
28051
28052 \change_inserted 1075283030 1597699343
28053 \begin_inset Quotes eld
28054 \end_inset
28055
28056
28057 \begin_inset Flex Code
28058 status collapsed
28059
28060 \begin_layout Plain Layout
28061
28062 \change_inserted 1075283030 1597699307
28063 inline
28064 \change_unchanged
28065
28066 \end_layout
28067
28068 \end_inset
28069
28070
28071 \begin_inset Quotes erd
28072 \end_inset
28073
28074 : the opening and closing tags are on the same line as the rest of the content.
28075  No line feeds are output.
28076  Typical elements are fonts.
28077  For instance: 
28078 \end_layout
28079
28080 \begin_layout LyX-Code
28081
28082 \change_inserted 1075283030 1597699585
28083 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
28084 \end_layout
28085
28086 \begin_layout Standard
28087
28088 \change_inserted 1075283030 1597699585
28089 The default value is always 
28090 \begin_inset Quotes eld
28091 \end_inset
28092
28093
28094 \begin_inset Flex Code
28095 status collapsed
28096
28097 \begin_layout Plain Layout
28098
28099 \change_inserted 1075283030 1597699585
28100 block
28101 \change_unchanged
28102
28103 \end_layout
28104
28105 \end_inset
28106
28107
28108 \begin_inset Quotes erd
28109 \end_inset
28110
28111 .
28112 \change_unchanged
28113
28114 \end_layout
28115
28116 \begin_layout Subsection
28117
28118 \change_inserted -970929547 1515111533
28119 InsetLayout DocBook
28120 \change_unchanged
28121
28122 \end_layout
28123
28124 \begin_layout Standard
28125
28126 \change_inserted -970929547 1496611894
28127 The DocBook output of insets can also be controlled by information in layout
28128  files.
28129 \end_layout
28130
28131 \begin_layout Standard
28132
28133 \change_inserted -970929547 1496612045
28134 The DocBook \SpecialChar LyX
28135  outputs for an inset has the following form:
28136 \end_layout
28137
28138 \begin_layout LyX-Code
28139
28140 \change_inserted -970929547 1515110861
28141 <wrappertag wrapperattr>
28142 \end_layout
28143
28144 \begin_layout LyX-Code
28145
28146 \change_inserted -970929547 1515110868
28147   <tag attr>
28148 \end_layout
28149
28150 \begin_layout LyX-Code
28151
28152 \change_inserted -970929547 1515110869
28153     <innertag innerattr>
28154 \end_layout
28155
28156 \begin_layout LyX-Code
28157
28158 \change_inserted -970929547 1515110869
28159       Contents of the inset.
28160 \end_layout
28161
28162 \begin_layout LyX-Code
28163
28164 \change_inserted -970929547 1515110870
28165     </innertag>
28166 \end_layout
28167
28168 \begin_layout LyX-Code
28169
28170 \change_inserted -970929547 1515110871
28171   </tag>
28172 \end_layout
28173
28174 \begin_layout LyX-Code
28175
28176 \change_inserted -970929547 1515111172
28177 </wrappertag>
28178 \end_layout
28179
28180 \begin_layout Standard
28181
28182 \change_inserted -970929547 1515111186
28183 For an itemising inset, it rather looks like this: 
28184 \end_layout
28185
28186 \begin_layout LyX-Code
28187
28188 \change_inserted -970929547 1515111186
28189 <wrappertag wrapperattr>
28190 \end_layout
28191
28192 \begin_layout LyX-Code
28193
28194 \change_inserted -970929547 1515111186
28195   <tag attr>
28196 \end_layout
28197
28198 \begin_layout LyX-Code
28199
28200 \change_inserted -970929547 1515111186
28201     <innertag innerattr>
28202 \end_layout
28203
28204 \begin_layout LyX-Code
28205
28206 \change_inserted -970929547 1515111362
28207       <itemwrappertag itemwrapperattr>
28208 \end_layout
28209
28210 \begin_layout LyX-Code
28211
28212 \change_inserted -970929547 1515111364
28213         <itemlabeltag itemattr>
28214 \end_layout
28215
28216 \begin_layout LyX-Code
28217
28218 \change_inserted -970929547 1515111367
28219           Label of the first item.
28220 \end_layout
28221
28222 \begin_layout LyX-Code
28223
28224 \change_inserted -970929547 1515111362
28225         </itemtag>
28226 \change_unchanged
28227
28228 \end_layout
28229
28230 \begin_layout LyX-Code
28231
28232 \change_inserted -970929547 1515111517
28233         <itemtag itemattr>
28234 \end_layout
28235
28236 \begin_layout LyX-Code
28237
28238 \change_inserted -970929547 1515111517
28239           <itemtag itemattr>
28240 \change_unchanged
28241
28242 \end_layout
28243
28244 \begin_layout LyX-Code
28245
28246 \change_inserted -970929547 1515111516
28247             Contents of the first item.
28248 \end_layout
28249
28250 \begin_layout LyX-Code
28251
28252 \change_inserted -970929547 1515111514
28253           </itemtag>
28254 \change_unchanged
28255
28256 \end_layout
28257
28258 \begin_layout LyX-Code
28259
28260 \change_inserted -970929547 1515111247
28261         </itemtag>
28262 \change_unchanged
28263
28264 \end_layout
28265
28266 \begin_layout LyX-Code
28267
28268 \change_inserted -970929547 1515111221
28269       </itemwrappertag>
28270 \end_layout
28271
28272 \begin_layout LyX-Code
28273
28274 \change_inserted -970929547 1515111370
28275       <itemwrappertag itemwrapperattr>
28276 \end_layout
28277
28278 \begin_layout LyX-Code
28279
28280 \change_inserted -970929547 1515111370
28281         <itemlabeltag itemattr>
28282 \end_layout
28283
28284 \begin_layout LyX-Code
28285
28286 \change_inserted -970929547 1515111372
28287           Label of the second item.
28288 \end_layout
28289
28290 \begin_layout LyX-Code
28291
28292 \change_inserted -970929547 1515111370
28293         </itemtag>
28294 \change_unchanged
28295
28296 \end_layout
28297
28298 \begin_layout LyX-Code
28299
28300 \change_inserted -970929547 1515111504
28301         <itemtag itemattr>
28302 \end_layout
28303
28304 \begin_layout LyX-Code
28305
28306 \change_inserted -970929547 1515111505
28307           <itemtag itemattr>
28308 \change_unchanged
28309
28310 \end_layout
28311
28312 \begin_layout LyX-Code
28313
28314 \change_inserted -970929547 1515111507
28315             Contents of the second item.
28316 \end_layout
28317
28318 \begin_layout LyX-Code
28319
28320 \change_inserted -970929547 1515111509
28321           </itemtag>
28322 \change_unchanged
28323
28324 \end_layout
28325
28326 \begin_layout LyX-Code
28327
28328 \change_inserted -970929547 1515111251
28329         </itemtag>
28330 \change_unchanged
28331
28332 \end_layout
28333
28334 \begin_layout LyX-Code
28335
28336 \change_inserted -970929547 1515111221
28337       </itemwrappertag>
28338 \change_unchanged
28339
28340 \end_layout
28341
28342 \begin_layout LyX-Code
28343
28344 \change_inserted -970929547 1515111219
28345       ...
28346 \change_unchanged
28347
28348 \end_layout
28349
28350 \begin_layout LyX-Code
28351
28352 \change_inserted -970929547 1515111186
28353     </innertag>
28354 \end_layout
28355
28356 \begin_layout LyX-Code
28357
28358 \change_inserted -970929547 1515111186
28359   </tag>
28360 \end_layout
28361
28362 \begin_layout LyX-Code
28363
28364 \change_inserted -970929547 1515111186
28365 </wrappertag>
28366 \end_layout
28367
28368 \begin_layout Standard
28369
28370 \change_inserted -970929547 1515111183
28371 If the inset permits multiple paragraphs—that is, if 
28372 \begin_inset Flex Code
28373 status collapsed
28374
28375 \begin_layout Plain Layout
28376
28377 \change_inserted -970929547 1496610966
28378 MultiPar
28379 \change_unchanged
28380
28381 \end_layout
28382
28383 \end_inset
28384
28385  is true—then the contents of the inset will itself be output as paragraphs
28386  formatted according to the styles used for those paragraphs (standard,
28387  quote, and the like).
28388  The inner tag is optional and, by default, does not appear.
28389 \end_layout
28390
28391 \begin_layout Standard
28392
28393 \change_inserted -970929547 1496610966
28394 The specific tags and attributes output for each inset can be controlled
28395  by means of the following layout tags.
28396 \end_layout
28397
28398 \begin_layout Description
28399
28400 \change_inserted -970929547 1515110317
28401 \begin_inset Flex Code
28402 status collapsed
28403
28404 \begin_layout Plain Layout
28405
28406 \change_inserted -970929547 1515109695
28407 DocBookAttr
28408 \change_unchanged
28409
28410 \end_layout
28411
28412 \end_inset
28413
28414  [
28415 \begin_inset Flex Code
28416 status collapsed
28417
28418 \begin_layout Plain Layout
28419
28420 \change_inserted -970929547 1496611854
28421 string
28422 \change_unchanged
28423
28424 \end_layout
28425
28426 \end_inset
28427
28428 ] Specifies attribute information to be output with the main tag, replacing
28429  
28430 \begin_inset Quotes eld
28431 \end_inset
28432
28433
28434 \begin_inset Flex Code
28435 status collapsed
28436
28437 \begin_layout Plain Layout
28438
28439 \change_inserted -970929547 1515110044
28440 attr
28441 \change_unchanged
28442
28443 \end_layout
28444
28445 \end_inset
28446
28447
28448 \begin_inset Quotes erd
28449 \end_inset
28450
28451  in the example above.
28452  This information can be used in further processing of the DocBook files.
28453  
28454 \end_layout
28455
28456 \begin_layout Description
28457
28458 \change_inserted -970929547 1515110973
28459 \begin_inset Flex Code
28460 status collapsed
28461
28462 \begin_layout Plain Layout
28463
28464 \change_inserted -970929547 1515110319
28465 DocBookInInfo
28466 \change_unchanged
28467
28468 \end_layout
28469
28470 \end_inset
28471
28472  [
28473 \begin_inset Flex Code
28474 status collapsed
28475
28476 \begin_layout Plain Layout
28477
28478 \change_inserted -970929547 1515110384
28479 never, always, maybe
28480 \change_unchanged
28481
28482 \end_layout
28483
28484 \end_inset
28485
28486 ] Specifies whether this tag goes into the 
28487 \begin_inset Flex Code
28488 status collapsed
28489
28490 \begin_layout Plain Layout
28491
28492 \change_inserted -970929547 1515110412
28493 <info>
28494 \change_unchanged
28495
28496 \end_layout
28497
28498 \end_inset
28499
28500  tag at the beginning of the parent layout.
28501  
28502 \begin_inset Flex Code
28503 status collapsed
28504
28505 \begin_layout Plain Layout
28506
28507 \change_inserted -970929547 1515110437
28508 never
28509 \change_unchanged
28510
28511 \end_layout
28512
28513 \end_inset
28514
28515  indicates that the tag never goes into 
28516 \begin_inset Flex Code
28517 status collapsed
28518
28519 \begin_layout Plain Layout
28520
28521 \change_inserted -970929547 1515110497
28522 <info>
28523 \change_unchanged
28524
28525 \end_layout
28526
28527 \end_inset
28528
28529  (this is default value, and corresponds to usual content).
28530  
28531 \begin_inset Flex Code
28532 status collapsed
28533
28534 \begin_layout Plain Layout
28535
28536 \change_inserted -970929547 1515110517
28537 always
28538 \change_unchanged
28539
28540 \end_layout
28541
28542 \end_inset
28543
28544  indicates that the tag always goes into 
28545 \begin_inset Flex Code
28546 status collapsed
28547
28548 \begin_layout Plain Layout
28549
28550 \change_inserted -970929547 1515110514
28551 <info>
28552 \change_unchanged
28553
28554 \end_layout
28555
28556 \end_inset
28557
28558  (this corresponds to usual metadata): if there is no 
28559 \begin_inset Flex Code
28560 status collapsed
28561
28562 \begin_layout Plain Layout
28563
28564 \change_inserted -970929547 1515110550
28565 <info>
28566 \change_unchanged
28567
28568 \end_layout
28569
28570 \end_inset
28571
28572  tag for the parent, one 
28573 \series bold
28574 will
28575 \series default
28576  be generated.
28577  
28578 \begin_inset Flex Code
28579 status collapsed
28580
28581 \begin_layout Plain Layout
28582
28583 \change_inserted -970929547 1515110540
28584 maybe
28585 \change_unchanged
28586
28587 \end_layout
28588
28589 \end_inset
28590
28591  indicates that the tag may go into 
28592 \begin_inset Flex Code
28593 status collapsed
28594
28595 \begin_layout Plain Layout
28596
28597 \change_inserted -970929547 1515110538
28598 <info>
28599 \change_unchanged
28600
28601 \end_layout
28602
28603 \end_inset
28604
28605  (this is only the case for titles): if there is no 
28606 \begin_inset Flex Code
28607 status collapsed
28608
28609 \begin_layout Plain Layout
28610
28611 \change_inserted -970929547 1515110585
28612 <info>
28613 \change_unchanged
28614
28615 \end_layout
28616
28617 \end_inset
28618
28619  tag for the parent, 
28620 \series bold
28621 none
28622 \series default
28623  will be generated, the corresponding tag will be output directly as content.
28624  
28625 \end_layout
28626
28627 \begin_layout Description
28628
28629 \change_inserted -970929547 1515111461
28630 \begin_inset Flex Code
28631 status collapsed
28632
28633 \begin_layout Plain Layout
28634
28635 \change_inserted -970929547 1515110974
28636 DocBookItemAttr
28637 \change_unchanged
28638
28639 \end_layout
28640
28641 \end_inset
28642
28643  [
28644 \begin_inset Flex Code
28645 status collapsed
28646
28647 \begin_layout Plain Layout
28648
28649 \change_inserted -970929547 1515110973
28650 string
28651 \change_unchanged
28652
28653 \end_layout
28654
28655 \end_inset
28656
28657 ] Specifies attribute information to be output with the item tag, replacing
28658  
28659 \begin_inset Quotes eld
28660 \end_inset
28661
28662
28663 \begin_inset Flex Code
28664 status collapsed
28665
28666 \begin_layout Plain Layout
28667
28668 \change_inserted -970929547 1515110984
28669 itemattr
28670 \change_unchanged
28671
28672 \end_layout
28673
28674 \end_inset
28675
28676
28677 \begin_inset Quotes erd
28678 \end_inset
28679
28680  in the example above.
28681  This information can be used in further processing of the DocBook files.
28682  
28683 \end_layout
28684
28685 \begin_layout Description
28686
28687 \change_inserted -970929547 1515111471
28688 \begin_inset Flex Code
28689 status collapsed
28690
28691 \begin_layout Plain Layout
28692
28693 \change_inserted -970929547 1515111465
28694 DocBookItemInnerAttr
28695 \change_unchanged
28696
28697 \end_layout
28698
28699 \end_inset
28700
28701  [
28702 \begin_inset Flex Code
28703 status collapsed
28704
28705 \begin_layout Plain Layout
28706
28707 \change_inserted -970929547 1515111461
28708 string
28709 \change_unchanged
28710
28711 \end_layout
28712
28713 \end_inset
28714
28715 ] Specifies attribute information to be output with the item inner tag,
28716  replacing 
28717 \begin_inset Quotes eld
28718 \end_inset
28719
28720
28721 \begin_inset Flex Code
28722 status collapsed
28723
28724 \begin_layout Plain Layout
28725
28726 \change_inserted -970929547 1515111476
28727 iteminnerattr
28728 \change_unchanged
28729
28730 \end_layout
28731
28732 \end_inset
28733
28734
28735 \begin_inset Quotes erd
28736 \end_inset
28737
28738  in the example above.
28739  This information can be used in further processing of the DocBook files.
28740  
28741 \end_layout
28742
28743 \begin_layout Description
28744
28745 \change_inserted -970929547 1515111494
28746 \begin_inset Flex Code
28747 status collapsed
28748
28749 \begin_layout Plain Layout
28750
28751 \change_inserted -970929547 1515111467
28752 DocBookItemInnerTag
28753 \change_unchanged
28754
28755 \end_layout
28756
28757 \end_inset
28758
28759  [
28760 \begin_inset Flex Code
28761 status collapsed
28762
28763 \begin_layout Plain Layout
28764
28765 \change_inserted -970929547 1515111461
28766 string
28767 \change_unchanged
28768
28769 \end_layout
28770
28771 \end_inset
28772
28773 ] The tag to be used for the item inner tag within the inset, replacing
28774  
28775 \begin_inset Quotes eld
28776 \end_inset
28777
28778
28779 \begin_inset Flex Code
28780 status collapsed
28781
28782 \begin_layout Plain Layout
28783
28784 \change_inserted -970929547 1515111486
28785 iteminnertag
28786 \change_unchanged
28787
28788 \end_layout
28789
28790 \end_inset
28791
28792
28793 \begin_inset Quotes erd
28794 \end_inset
28795
28796  in the example above.
28797  The default is 
28798 \begin_inset Flex Code
28799 status collapsed
28800
28801 \begin_layout Plain Layout
28802
28803 \change_inserted -970929547 1515111461
28804 NONE
28805 \change_unchanged
28806
28807 \end_layout
28808
28809 \end_inset
28810
28811 , indicating that there is no item inner tag: content is directly output
28812  without it for each itemised element.
28813  This parameter only makes sense when itemising layouts are used, such as
28814  lists.
28815  
28816 \change_inserted 1075283030 1598469472
28817 The most likely value is 
28818 \begin_inset Quotes eld
28819 \end_inset
28820
28821
28822 \begin_inset Flex Code
28823 status collapsed
28824
28825 \begin_layout Plain Layout
28826
28827 \change_inserted 1075283030 1598469476
28828 para
28829 \change_unchanged
28830
28831 \end_layout
28832
28833 \end_inset
28834
28835
28836 \begin_inset Quotes erd
28837 \end_inset
28838
28839 .
28840 \begin_inset Newline newline
28841 \end_inset
28842
28843 When a list item is split using a new line, the item inner tag will be repeated
28844  for each part of the paragraph, parts being separated by new lines.
28845  
28846 \end_layout
28847
28848 \begin_layout Description
28849
28850 \change_inserted 1075283030 1597699866
28851 \begin_inset Flex Code
28852 status collapsed
28853
28854 \begin_layout Plain Layout
28855
28856 \change_inserted 1075283030 1597699853
28857 DocBookItemInnerTagType
28858 \change_unchanged
28859
28860 \end_layout
28861
28862 \end_inset
28863
28864  [
28865 \begin_inset Flex Code
28866 status collapsed
28867
28868 \begin_layout Plain Layout
28869
28870 \change_inserted 1075283030 1597699866
28871 block, paragraph, inline
28872 \change_unchanged
28873
28874 \end_layout
28875
28876 \end_inset
28877
28878 ] The new-line policy for this tag, see Section
28879 \begin_inset space ~
28880 \end_inset
28881
28882
28883 \begin_inset CommandInset ref
28884 LatexCommand ref
28885 reference "subsec:DocBook-New-line-policy"
28886 plural "false"
28887 caps "false"
28888 noprefix "false"
28889
28890 \end_inset
28891
28892  for the details.
28893  
28894 \change_unchanged
28895
28896 \end_layout
28897
28898 \begin_layout Description
28899
28900 \change_inserted -970929547 1515111290
28901 \begin_inset Flex Code
28902 status collapsed
28903
28904 \begin_layout Plain Layout
28905
28906 \change_inserted -970929547 1515111283
28907 DocBookItemLabelAttr
28908 \change_unchanged
28909
28910 \end_layout
28911
28912 \end_inset
28913
28914  [
28915 \begin_inset Flex Code
28916 status collapsed
28917
28918 \begin_layout Plain Layout
28919
28920 \change_inserted -970929547 1515111279
28921 string
28922 \change_unchanged
28923
28924 \end_layout
28925
28926 \end_inset
28927
28928 ] Specifies attribute information to be output with the item label tag,
28929  replacing 
28930 \begin_inset Quotes eld
28931 \end_inset
28932
28933
28934 \begin_inset Flex Code
28935 status collapsed
28936
28937 \begin_layout Plain Layout
28938
28939 \change_inserted -970929547 1515111304
28940 itemlabelattr
28941 \change_unchanged
28942
28943 \end_layout
28944
28945 \end_inset
28946
28947
28948 \begin_inset Quotes erd
28949 \end_inset
28950
28951  in the example above.
28952  This information can be used in further processing of the DocBook files.
28953  
28954 \end_layout
28955
28956 \begin_layout Description
28957
28958 \change_inserted -970929547 1515111337
28959 \begin_inset Flex Code
28960 status collapsed
28961
28962 \begin_layout Plain Layout
28963
28964 \change_inserted -970929547 1515111285
28965 DocBookItemLabelTag
28966 \change_unchanged
28967
28968 \end_layout
28969
28970 \end_inset
28971
28972  [
28973 \begin_inset Flex Code
28974 status collapsed
28975
28976 \begin_layout Plain Layout
28977
28978 \change_inserted -970929547 1515111279
28979 string
28980 \change_unchanged
28981
28982 \end_layout
28983
28984 \end_inset
28985
28986 ] The tag to be used for the item label tag within the inset, replacing
28987  
28988 \begin_inset Quotes eld
28989 \end_inset
28990
28991
28992 \begin_inset Flex Code
28993 status collapsed
28994
28995 \begin_layout Plain Layout
28996
28997 \change_inserted -970929547 1515111311
28998 itemlabeltag
28999 \change_unchanged
29000
29001 \end_layout
29002
29003 \end_inset
29004
29005
29006 \begin_inset Quotes erd
29007 \end_inset
29008
29009  in the example above.
29010  This parameter only makes sense when itemising layouts are used with a
29011  notion of labels, such as definition lists.
29012  
29013 \change_inserted 1075283030 1597699874
29014
29015 \end_layout
29016
29017 \begin_layout Description
29018
29019 \change_inserted 1075283030 1597699874
29020 \begin_inset Flex Code
29021 status collapsed
29022
29023 \begin_layout Plain Layout
29024
29025 \change_inserted 1075283030 1597699880
29026 DocBookItemLabelTagType
29027 \change_unchanged
29028
29029 \end_layout
29030
29031 \end_inset
29032
29033  [
29034 \begin_inset Flex Code
29035 status collapsed
29036
29037 \begin_layout Plain Layout
29038
29039 \change_inserted 1075283030 1597699874
29040 block, paragraph, inline
29041 \change_unchanged
29042
29043 \end_layout
29044
29045 \end_inset
29046
29047 ] The new-line policy for this tag, see Section
29048 \begin_inset space ~
29049 \end_inset
29050
29051
29052 \begin_inset CommandInset ref
29053 LatexCommand ref
29054 reference "subsec:DocBook-New-line-policy"
29055 plural "false"
29056 caps "false"
29057 noprefix "false"
29058
29059 \end_inset
29060
29061  for the details.
29062  
29063 \change_unchanged
29064
29065 \end_layout
29066
29067 \begin_layout Description
29068
29069 \change_inserted -970929547 1515111124
29070 \begin_inset Flex Code
29071 status collapsed
29072
29073 \begin_layout Plain Layout
29074
29075 \change_inserted -970929547 1515111060
29076 DocBookItemTag
29077 \change_unchanged
29078
29079 \end_layout
29080
29081 \end_inset
29082
29083  [
29084 \begin_inset Flex Code
29085 status collapsed
29086
29087 \begin_layout Plain Layout
29088
29089 \change_inserted -970929547 1515111060
29090 string
29091 \change_unchanged
29092
29093 \end_layout
29094
29095 \end_inset
29096
29097 ] The tag to be used for the item tag within the inset, replacing 
29098 \begin_inset Quotes eld
29099 \end_inset
29100
29101
29102 \begin_inset Flex Code
29103 status collapsed
29104
29105 \begin_layout Plain Layout
29106
29107 \change_inserted -970929547 1515111060
29108 itemtag
29109 \change_unchanged
29110
29111 \end_layout
29112
29113 \end_inset
29114
29115
29116 \begin_inset Quotes erd
29117 \end_inset
29118
29119  in the example above.
29120  The default is 
29121 \begin_inset Flex Code
29122 status collapsed
29123
29124 \begin_layout Plain Layout
29125
29126 \change_inserted -970929547 1515111060
29127 NONE
29128 \change_unchanged
29129
29130 \end_layout
29131
29132 \end_inset
29133
29134 , indicating that there is no item tag.
29135  This parameter only makes sense when itemising layouts are used, such as
29136  lists.
29137  
29138 \change_inserted 1075283030 1597699890
29139
29140 \end_layout
29141
29142 \begin_layout Description
29143
29144 \change_inserted 1075283030 1597699890
29145 \begin_inset Flex Code
29146 status collapsed
29147
29148 \begin_layout Plain Layout
29149
29150 \change_inserted 1075283030 1597699890
29151 DocBookItemTagType
29152 \change_unchanged
29153
29154 \end_layout
29155
29156 \end_inset
29157
29158  [
29159 \begin_inset Flex Code
29160 status collapsed
29161
29162 \begin_layout Plain Layout
29163
29164 \change_inserted 1075283030 1597699890
29165 block, paragraph, inline
29166 \change_unchanged
29167
29168 \end_layout
29169
29170 \end_inset
29171
29172 ] The new-line policy for this tag, see Section
29173 \begin_inset space ~
29174 \end_inset
29175
29176
29177 \begin_inset CommandInset ref
29178 LatexCommand ref
29179 reference "subsec:DocBook-New-line-policy"
29180 plural "false"
29181 caps "false"
29182 noprefix "false"
29183
29184 \end_inset
29185
29186  for the details.
29187  
29188 \change_unchanged
29189
29190 \end_layout
29191
29192 \begin_layout Description
29193
29194 \change_inserted -970929547 1515111298
29195 \begin_inset Flex Code
29196 status collapsed
29197
29198 \begin_layout Plain Layout
29199
29200 \change_inserted -970929547 1515111124
29201 DocBookItemWrapperAttr
29202 \change_unchanged
29203
29204 \end_layout
29205
29206 \end_inset
29207
29208  [
29209 \begin_inset Flex Code
29210 status collapsed
29211
29212 \begin_layout Plain Layout
29213
29214 \change_inserted -970929547 1515111124
29215 string
29216 \change_unchanged
29217
29218 \end_layout
29219
29220 \end_inset
29221
29222 ] Specifies attribute information to be output with the item wrapper tag,
29223  replacing 
29224 \begin_inset Quotes eld
29225 \end_inset
29226
29227
29228 \begin_inset Flex Code
29229 status collapsed
29230
29231 \begin_layout Plain Layout
29232
29233 \change_inserted -970929547 1515111150
29234 itemwrapperattr
29235 \change_unchanged
29236
29237 \end_layout
29238
29239 \end_inset
29240
29241
29242 \begin_inset Quotes erd
29243 \end_inset
29244
29245  in the example above.
29246  This information can be used in further processing of the DocBook files.
29247  
29248 \change_unchanged
29249
29250 \end_layout
29251
29252 \begin_layout Description
29253
29254 \change_inserted -970929547 1515111113
29255 \begin_inset Flex Code
29256 status collapsed
29257
29258 \begin_layout Plain Layout
29259
29260 \change_inserted -970929547 1515111073
29261 DocBookItemWrapperTag
29262 \change_unchanged
29263
29264 \end_layout
29265
29266 \end_inset
29267
29268  [
29269 \begin_inset Flex Code
29270 status collapsed
29271
29272 \begin_layout Plain Layout
29273
29274 \change_inserted -970929547 1515111073
29275 string
29276 \change_unchanged
29277
29278 \end_layout
29279
29280 \end_inset
29281
29282 ] The tag to be used for the item wrapper tag within the inset, replacing
29283  
29284 \begin_inset Quotes eld
29285 \end_inset
29286
29287
29288 \begin_inset Flex Code
29289 status collapsed
29290
29291 \begin_layout Plain Layout
29292
29293 \change_inserted -970929547 1515111083
29294 itemwrappertag
29295 \change_unchanged
29296
29297 \end_layout
29298
29299 \end_inset
29300
29301
29302 \begin_inset Quotes erd
29303 \end_inset
29304
29305  in the example above.
29306  The default is 
29307 \begin_inset Flex Code
29308 status collapsed
29309
29310 \begin_layout Plain Layout
29311
29312 \change_inserted -970929547 1515111073
29313 NONE
29314 \change_unchanged
29315
29316 \end_layout
29317
29318 \end_inset
29319
29320 , indicating that there is no item wrapper tag: tag and content are directly
29321  output without it for each itemised element.
29322  This parameter only makes sense when itemising layouts are used, such as
29323  lists.
29324  
29325 \change_inserted 1075283030 1597699897
29326
29327 \end_layout
29328
29329 \begin_layout Description
29330
29331 \change_inserted 1075283030 1597699897
29332 \begin_inset Flex Code
29333 status collapsed
29334
29335 \begin_layout Plain Layout
29336
29337 \change_inserted 1075283030 1597699900
29338 DocBookItemWrapperTagType
29339 \change_unchanged
29340
29341 \end_layout
29342
29343 \end_inset
29344
29345  [
29346 \begin_inset Flex Code
29347 status collapsed
29348
29349 \begin_layout Plain Layout
29350
29351 \change_inserted 1075283030 1597699897
29352 block, paragraph, inline
29353 \change_unchanged
29354
29355 \end_layout
29356
29357 \end_inset
29358
29359 ] The new-line policy for this tag, see Section
29360 \begin_inset space ~
29361 \end_inset
29362
29363
29364 \begin_inset CommandInset ref
29365 LatexCommand ref
29366 reference "subsec:DocBook-New-line-policy"
29367 plural "false"
29368 caps "false"
29369 noprefix "false"
29370
29371 \end_inset
29372
29373  for the details.
29374  
29375 \change_unchanged
29376
29377 \end_layout
29378
29379 \begin_layout Description
29380
29381 \change_inserted -970929547 1515110104
29382 \begin_inset Flex Code
29383 status collapsed
29384
29385 \begin_layout Plain Layout
29386
29387 \change_inserted -970929547 1515110104
29388 DocBookInnerAttr
29389 \change_unchanged
29390
29391 \end_layout
29392
29393 \end_inset
29394
29395  [
29396 \begin_inset Flex Code
29397 status collapsed
29398
29399 \begin_layout Plain Layout
29400
29401 \change_inserted -970929547 1515110104
29402 string
29403 \change_unchanged
29404
29405 \end_layout
29406
29407 \end_inset
29408
29409 ] Specifies attribute information to be output with the inner tag, replacing
29410  
29411 \begin_inset Quotes eld
29412 \end_inset
29413
29414
29415 \begin_inset Flex Code
29416 status collapsed
29417
29418 \begin_layout Plain Layout
29419
29420 \change_inserted -970929547 1515110104
29421 innerattr
29422 \change_unchanged
29423
29424 \end_layout
29425
29426 \end_inset
29427
29428
29429 \begin_inset Quotes erd
29430 \end_inset
29431
29432  in the example above.
29433  This information can be used in further processing of the DocBook files.
29434  
29435 \end_layout
29436
29437 \begin_layout Description
29438
29439 \change_inserted -970929547 1515110906
29440 \begin_inset Flex Code
29441 status collapsed
29442
29443 \begin_layout Plain Layout
29444
29445 \change_inserted -970929547 1515110104
29446 DocBookInnerTag
29447 \change_unchanged
29448
29449 \end_layout
29450
29451 \end_inset
29452
29453  [
29454 \begin_inset Flex Code
29455 status collapsed
29456
29457 \begin_layout Plain Layout
29458
29459 \change_inserted -970929547 1515110104
29460 string
29461 \change_unchanged
29462
29463 \end_layout
29464
29465 \end_inset
29466
29467 ] The tag to be used for the inner tag within the inset, replacing 
29468 \begin_inset Quotes eld
29469 \end_inset
29470
29471
29472 \begin_inset Flex Code
29473 status collapsed
29474
29475 \begin_layout Plain Layout
29476
29477 \change_inserted -970929547 1515110104
29478 innertag
29479 \change_unchanged
29480
29481 \end_layout
29482
29483 \end_inset
29484
29485
29486 \begin_inset Quotes erd
29487 \end_inset
29488
29489  in the example above.
29490  The default is 
29491 \begin_inset Flex Code
29492 status collapsed
29493
29494 \begin_layout Plain Layout
29495
29496 \change_inserted -970929547 1515110791
29497 NONE
29498 \change_unchanged
29499
29500 \end_layout
29501
29502 \end_inset
29503
29504 , indicating that there is no inner tag: content is directly output without
29505  it.
29506 \change_inserted 1075283030 1597699904
29507
29508 \end_layout
29509
29510 \begin_layout Description
29511
29512 \change_inserted 1075283030 1597699904
29513 \begin_inset Flex Code
29514 status collapsed
29515
29516 \begin_layout Plain Layout
29517
29518 \change_inserted 1075283030 1597699904
29519 DocBookInnerTagType
29520 \change_unchanged
29521
29522 \end_layout
29523
29524 \end_inset
29525
29526  [
29527 \begin_inset Flex Code
29528 status collapsed
29529
29530 \begin_layout Plain Layout
29531
29532 \change_inserted 1075283030 1597699904
29533 block, paragraph, inline
29534 \change_unchanged
29535
29536 \end_layout
29537
29538 \end_inset
29539
29540 ] The new-line policy for this tag, see Section
29541 \begin_inset space ~
29542 \end_inset
29543
29544
29545 \begin_inset CommandInset ref
29546 LatexCommand ref
29547 reference "subsec:DocBook-New-line-policy"
29548 plural "false"
29549 caps "false"
29550 noprefix "false"
29551
29552 \end_inset
29553
29554  for the details.
29555  
29556 \change_unchanged
29557
29558 \end_layout
29559
29560 \begin_layout Description
29561
29562 \change_inserted -970929547 1515110753
29563 \begin_inset Flex Code
29564 status collapsed
29565
29566 \begin_layout Plain Layout
29567
29568 \change_inserted -970929547 1515110665
29569 DocBookSectionTag
29570 \change_unchanged
29571
29572 \end_layout
29573
29574 \end_inset
29575
29576  [
29577 \begin_inset Flex Code
29578 status collapsed
29579
29580 \begin_layout Plain Layout
29581
29582 \change_inserted -970929547 1515110661
29583 string
29584 \change_unchanged
29585
29586 \end_layout
29587
29588 \end_inset
29589
29590 ] Specifies the tag that corresponds to this kind of section.
29591  This parameter only makes sense for sectioning elements (part, chapter,
29592  section, etc.).
29593  The default value is 
29594 \begin_inset Flex Code
29595 status collapsed
29596
29597 \begin_layout Plain Layout
29598
29599 \change_inserted -970929547 1515110721
29600 section
29601 \change_unchanged
29602
29603 \end_layout
29604
29605 \end_inset
29606
29607 , and is only overridden when DocBook uses something else for sectioning
29608  (
29609 \change_inserted 1075283030 1597699921
29610 typically, 
29611 \change_inserted -970929547 1515110753
29612 parts and chapters of a book).
29613  
29614 \change_unchanged
29615
29616 \end_layout
29617
29618 \begin_layout Description
29619
29620 \change_inserted -970929547 1515110811
29621 \begin_inset Flex Code
29622 status collapsed
29623
29624 \begin_layout Plain Layout
29625
29626 \change_inserted -970929547 1496612023
29627 DocBookTag
29628 \change_unchanged
29629
29630 \end_layout
29631
29632 \end_inset
29633
29634  [
29635 \begin_inset Flex Code
29636 status collapsed
29637
29638 \begin_layout Plain Layout
29639
29640 \change_inserted -970929547 1496610966
29641 string
29642 \change_unchanged
29643
29644 \end_layout
29645
29646 \end_inset
29647
29648 ] The tag to be used for this inset, replacing 
29649 \begin_inset Quotes eld
29650 \end_inset
29651
29652
29653 \begin_inset Flex Code
29654 status collapsed
29655
29656 \begin_layout Plain Layout
29657
29658 \change_inserted -970929547 1496612033
29659 tag
29660 \change_unchanged
29661
29662 \end_layout
29663
29664 \end_inset
29665
29666
29667 \begin_inset Quotes erd
29668 \end_inset
29669
29670  in the example above.
29671  The default is the name of the float and always needs to be changed, as
29672  DocBook provides no generic inset tag.
29673 \change_inserted 1075283030 1597699924
29674
29675 \end_layout
29676
29677 \begin_layout Description
29678
29679 \change_inserted 1075283030 1597699924
29680 \begin_inset Flex Code
29681 status collapsed
29682
29683 \begin_layout Plain Layout
29684
29685 \change_inserted 1075283030 1597699924
29686 DocBookTagType
29687 \change_unchanged
29688
29689 \end_layout
29690
29691 \end_inset
29692
29693  [
29694 \begin_inset Flex Code
29695 status collapsed
29696
29697 \begin_layout Plain Layout
29698
29699 \change_inserted 1075283030 1597699924
29700 block, paragraph, inline
29701 \change_unchanged
29702
29703 \end_layout
29704
29705 \end_inset
29706
29707 ] The new-line policy for this tag, see Section
29708 \begin_inset space ~
29709 \end_inset
29710
29711
29712 \begin_inset CommandInset ref
29713 LatexCommand ref
29714 reference "subsec:DocBook-New-line-policy"
29715 plural "false"
29716 caps "false"
29717 noprefix "false"
29718
29719 \end_inset
29720
29721  for the details.
29722  
29723 \change_unchanged
29724
29725 \end_layout
29726
29727 \begin_layout Description
29728
29729 \change_inserted -970929547 1515110832
29730 \begin_inset Flex Code
29731 status collapsed
29732
29733 \begin_layout Plain Layout
29734
29735 \change_inserted -970929547 1515110822
29736 DocBookWrapperAttr
29737 \change_unchanged
29738
29739 \end_layout
29740
29741 \end_inset
29742
29743  [
29744 \begin_inset Flex Code
29745 status collapsed
29746
29747 \begin_layout Plain Layout
29748
29749 \change_inserted -970929547 1515110811
29750 string
29751 \change_unchanged
29752
29753 \end_layout
29754
29755 \end_inset
29756
29757 ] Specifies attribute information to be output with the outer tag, replacing
29758  
29759 \begin_inset Quotes eld
29760 \end_inset
29761
29762
29763 \begin_inset Flex Code
29764 status collapsed
29765
29766 \begin_layout Plain Layout
29767
29768 \change_inserted -970929547 1515110845
29769 wrapperattr
29770 \change_unchanged
29771
29772 \end_layout
29773
29774 \end_inset
29775
29776
29777 \begin_inset Quotes erd
29778 \end_inset
29779
29780  in the example above.
29781  This information can be used in further processing of the DocBook files.
29782  
29783 \end_layout
29784
29785 \begin_layout Description
29786
29787 \change_inserted -970929547 1515110917
29788 \begin_inset Flex Code
29789 status collapsed
29790
29791 \begin_layout Plain Layout
29792
29793 \change_inserted -970929547 1515110826
29794 DocBookWrapperTag
29795 \change_unchanged
29796
29797 \end_layout
29798
29799 \end_inset
29800
29801  [
29802 \begin_inset Flex Code
29803 status collapsed
29804
29805 \begin_layout Plain Layout
29806
29807 \change_inserted -970929547 1515110811
29808 string
29809 \change_unchanged
29810
29811 \end_layout
29812
29813 \end_inset
29814
29815 ] The tag to be used for the wrapper tag around the inset, replacing 
29816 \begin_inset Quotes eld
29817 \end_inset
29818
29819
29820 \begin_inset Flex Code
29821 status collapsed
29822
29823 \begin_layout Plain Layout
29824
29825 \change_inserted -970929547 1515110842
29826 wrappertag
29827 \change_unchanged
29828
29829 \end_layout
29830
29831 \end_inset
29832
29833
29834 \begin_inset Quotes erd
29835 \end_inset
29836
29837  in the example above.
29838  The default is 
29839 \begin_inset Flex Code
29840 status collapsed
29841
29842 \begin_layout Plain Layout
29843
29844 \change_inserted -970929547 1515110811
29845 NONE
29846 \change_unchanged
29847
29848 \end_layout
29849
29850 \end_inset
29851
29852 , indicating that there is no wrapper tag: tag and content are directly
29853  output without it.
29854 \change_inserted 1075283030 1597699929
29855
29856 \end_layout
29857
29858 \begin_layout Description
29859
29860 \change_inserted 1075283030 1597699929
29861 \begin_inset Flex Code
29862 status collapsed
29863
29864 \begin_layout Plain Layout
29865
29866 \change_inserted 1075283030 1597699932
29867 DocBookWrapperTagType
29868 \change_unchanged
29869
29870 \end_layout
29871
29872 \end_inset
29873
29874  [
29875 \begin_inset Flex Code
29876 status collapsed
29877
29878 \begin_layout Plain Layout
29879
29880 \change_inserted 1075283030 1597699929
29881 block, paragraph, inline
29882 \change_unchanged
29883
29884 \end_layout
29885
29886 \end_inset
29887
29888 ] The new-line policy for this tag, see Section
29889 \begin_inset space ~
29890 \end_inset
29891
29892
29893 \begin_inset CommandInset ref
29894 LatexCommand ref
29895 reference "subsec:DocBook-New-line-policy"
29896 plural "false"
29897 caps "false"
29898 noprefix "false"
29899
29900 \end_inset
29901
29902  for the details.
29903  
29904 \change_unchanged
29905
29906 \end_layout
29907
29908 \begin_layout Subsection
29909
29910 \change_inserted -970929547 1515110040
29911 Float DocBook
29912 \end_layout
29913
29914 \begin_layout Standard
29915
29916 \change_inserted -970929547 1496611700
29917 The DocBook output for floats too can be controlled by layout information.
29918  The output has the following form:
29919 \end_layout
29920
29921 \begin_layout LyX-Code
29922
29923 \change_inserted -970929547 1515109700
29924 <tag attr>
29925 \end_layout
29926
29927 \begin_layout LyX-Code
29928
29929 \change_inserted -970929547 1515110138
29930   Contents of the float as DocBook.
29931 \end_layout
29932
29933 \begin_layout LyX-Code
29934
29935 \change_inserted -970929547 1496610966
29936 </tag>
29937 \end_layout
29938
29939 \begin_layout Standard
29940
29941 \change_inserted -970929547 1496611715
29942 The caption, if there is one, is a separate inset and will be output as
29943  a title.
29944  
29945 \end_layout
29946
29947 \begin_layout Description
29948
29949 \change_inserted -970929547 1515110033
29950 \begin_inset Flex Code
29951 status collapsed
29952
29953 \begin_layout Plain Layout
29954
29955 \change_inserted -970929547 1515109702
29956 DocBookAttr
29957 \change_unchanged
29958
29959 \end_layout
29960
29961 \end_inset
29962
29963  [
29964 \begin_inset Flex Code
29965 status collapsed
29966
29967 \begin_layout Plain Layout
29968
29969 \change_inserted -970929547 1496610966
29970 string
29971 \change_unchanged
29972
29973 \end_layout
29974
29975 \end_inset
29976
29977 ] Specifies attribute information to be output with the main tag, replacing
29978  
29979 \begin_inset Quotes eld
29980 \end_inset
29981
29982
29983 \begin_inset Flex Code
29984 status collapsed
29985
29986 \begin_layout Plain Layout
29987
29988 \change_inserted -970929547 1515110035
29989 attr
29990 \change_unchanged
29991
29992 \end_layout
29993
29994 \end_inset
29995
29996
29997 \begin_inset Quotes erd
29998 \end_inset
29999
30000  in the example above.
30001  This information can be used in further processing of the DocBook files.
30002  
30003 \end_layout
30004
30005 \begin_layout Description
30006
30007 \change_inserted -970929547 1515110157
30008 \begin_inset Flex Code
30009 status collapsed
30010
30011 \begin_layout Plain Layout
30012
30013 \change_inserted -970929547 1496611782
30014 DocBookTag
30015 \change_unchanged
30016
30017 \end_layout
30018
30019 \end_inset
30020
30021  [
30022 \begin_inset Flex Code
30023 status collapsed
30024
30025 \begin_layout Plain Layout
30026
30027 \change_inserted -970929547 1496610966
30028 string
30029 \change_unchanged
30030
30031 \end_layout
30032
30033 \end_inset
30034
30035 ] The tag to be used for this float, replacing 
30036 \begin_inset Quotes eld
30037 \end_inset
30038
30039
30040 \begin_inset Flex Code
30041 status collapsed
30042
30043 \begin_layout Plain Layout
30044
30045 \change_inserted -970929547 1496610966
30046 tag
30047 \change_unchanged
30048
30049 \end_layout
30050
30051 \end_inset
30052
30053
30054 \begin_inset Quotes erd
30055 \end_inset
30056
30057  in the example above.
30058  The default is the name of the float and always needs to be changed, as
30059  DocBook provides no generic float tag.
30060 \end_layout
30061
30062 \begin_layout Subsection
30063
30064 \change_inserted -970929547 1515110157
30065 Bibliography formatting
30066 \end_layout
30067
30068 \begin_layout Standard
30069
30070 \change_deleted 1075283030 1597699984
30071 The 
30072 \change_inserted 1075283030 1597699985
30073 Included 
30074 \change_inserted -970929547 1515110187
30075 bibliograph
30076 \change_deleted 1075283030 1597699987
30077 y
30078 \change_inserted 1075283030 1597699987
30079 ies
30080 \change_inserted -970929547 1515110187
30081  cannot be formatted: all fields are always output in the database-like
30082  DocBook format (equivalent to a BibTeX file)
30083 \change_inserted 1075283030 1597700117
30084 , using the 
30085 \begin_inset Flex Code
30086 status collapsed
30087
30088 \begin_layout Plain Layout
30089
30090 \change_inserted 1075283030 1597700120
30091 biblioentry
30092 \change_unchanged
30093
30094 \end_layout
30095
30096 \end_inset
30097
30098  tag
30099 \change_inserted -970929547 1515110187
30100 .
30101 \change_inserted 1075283030 1597700092
30102
30103 \end_layout
30104
30105 \begin_layout Standard
30106
30107 \change_inserted 1075283030 1597700112
30108 When the bibliographic entries are manually inserted into the LyX document
30109  as Bibliography Items, the user deals with formatting themself: there is
30110  no attempt of parsing what the user wrote, the string is directly used
30111  (with the 
30112 \begin_inset Flex Code
30113 status collapsed
30114
30115 \begin_layout Plain Layout
30116
30117 \change_inserted 1075283030 1597700076
30118 bibliomixed
30119 \change_unchanged
30120
30121 \end_layout
30122
30123 \end_inset
30124
30125  tag).
30126  
30127 \change_unchanged
30128
30129 \end_layout
30130
30131 \begin_layout Chapter
30132 Including External Material
30133 \begin_inset CommandInset label
30134 LatexCommand label
30135 name "chap:Including-External-Material"
30136
30137 \end_inset
30138
30139
30140 \end_layout
30141
30142 \begin_layout Standard
30143 \begin_inset Box Shadowbox
30144 position "t"
30145 hor_pos "c"
30146 has_inner_box 1
30147 inner_pos "t"
30148 use_parbox 0
30149 use_makebox 0
30150 width "100col%"
30151 special "none"
30152 height "1in"
30153 height_special "totalheight"
30154 thickness "0.4pt"
30155 separation "3pt"
30156 shadowsize "4pt"
30157 framecolor "black"
30158 backgroundcolor "none"
30159 status open
30160
30161 \begin_layout Plain Layout
30162 WARNING: This portion of the documentation has not been updated for some
30163  time.
30164  We certainly hope that it is still accurate, but there are no guarantees.
30165 \end_layout
30166
30167 \end_inset
30168
30169
30170 \end_layout
30171
30172 \begin_layout Standard
30173 The use of material from sources external to \SpecialChar LyX
30174  is covered in detail in the
30175  
30176 \emph on
30177 Embedded Objects
30178 \emph default
30179  manual.
30180  This part of the manual covers what needs to happen behind the scenes for
30181  new sorts of material to be included.
30182 \end_layout
30183
30184 \begin_layout Section
30185 How does it work?
30186 \end_layout
30187
30188 \begin_layout Standard
30189 The external material feature is based on the concept of a 
30190 \emph on
30191 template
30192 \emph default
30193 .
30194  A template is a specification of how \SpecialChar LyX
30195  should interface with a certain kind
30196  of material.
30197  As bundled, \SpecialChar LyX
30198  comes with predefined templates for Xfig figures, various
30199  raster format images, chess diagrams, and LilyPond music notation.
30200  You can check the actual list by using the menu 
30201 \begin_inset Flex Noun
30202 status collapsed
30203
30204 \begin_layout Plain Layout
30205 Insert\SpecialChar menuseparator
30206 File\SpecialChar menuseparator
30207 External Material
30208 \end_layout
30209
30210 \end_inset
30211
30212 .
30213  Furthermore, it is possible to roll your own template to support a specific
30214  kind of material.
30215  Later we'll describe in more detail what is involved, and hopefully you
30216  will submit all the templates you create so we can include them in a later
30217  \SpecialChar LyX
30218  version.
30219 \end_layout
30220
30221 \begin_layout Standard
30222 Another basic idea of the external material feature is to distinguish between
30223  the original file that serves as a base for final material and the produced
30224  file that is included in your exported or printed document.
30225  For example, consider the case of a figure produced with 
30226 \begin_inset Flex Code
30227 status collapsed
30228
30229 \begin_layout Plain Layout
30230 Xfig
30231 \end_layout
30232
30233 \end_inset
30234
30235 .
30236  The Xfig application itself works on an original file with the 
30237 \begin_inset Flex Code
30238 status collapsed
30239
30240 \begin_layout Plain Layout
30241 .fig
30242 \end_layout
30243
30244 \end_inset
30245
30246  extension.
30247  Within Xfig, you create and change your figure, and when you are done,
30248  you save the 
30249 \begin_inset Flex Code
30250 status collapsed
30251
30252 \begin_layout Plain Layout
30253 fig
30254 \end_layout
30255
30256 \end_inset
30257
30258 -file.
30259  When you want to include the figure in your document, you invoke 
30260 \begin_inset Flex Code
30261 status collapsed
30262
30263 \begin_layout Plain Layout
30264 transfig
30265 \end_layout
30266
30267 \end_inset
30268
30269  in order to create a PostScript file that can readily be included in your
30270  \SpecialChar LaTeX
30271  file.
30272  In this case, the 
30273 \begin_inset Flex Code
30274 status collapsed
30275
30276 \begin_layout Plain Layout
30277 .fig
30278 \end_layout
30279
30280 \end_inset
30281
30282  file is the original file, and the PostScript file is the produced file.
30283 \end_layout
30284
30285 \begin_layout Standard
30286 This distinction is important in order to allow updating of the material
30287  while you are in the process of writing the document.
30288  Furthermore, it provides us with the flexibility that is needed to support
30289  multiple export formats.
30290  For instance, in the case of a plain text file, it is not exactly an award-winn
30291 ing idea to include the figure as raw PostScript.
30292  Instead, you would either prefer to just include a reference to the figure
30293  or try to invoke some graphics to ASCII converter to make the final result
30294  look similar to the real graphics.
30295  The external material management allows you to do this, because it is parametri
30296 zed on the different export formats that \SpecialChar LyX
30297  supports.
30298 \end_layout
30299
30300 \begin_layout Standard
30301 Besides supporting the production of different products according to the
30302  exported format, it supports tight integration with editing and viewing
30303  applications.
30304  In the case of an Xfig figure, you are able to invoke Xfig on the original
30305  file with a single click from within the external material dialog in \SpecialChar LyX
30306 ,
30307  and also preview the produced PostScript file with Ghostview with another
30308  click.
30309  No more fiddling around with the command line and/or file browsers to locate
30310  and manipulate the original or produced files.
30311  In this way, you are finally able to take full advantage of the many different
30312  applications that are relevant to use when you write your documents, and
30313  ultimately be more productive.
30314 \end_layout
30315
30316 \begin_layout Section
30317 The external template configuration files
30318 \end_layout
30319
30320 \begin_layout Standard
30321 It is relatively easy to add custom external template definitions to \SpecialChar LyX
30322 .
30323  However, be aware that doing this in an careless manner most probably 
30324 \emph on
30325 will
30326 \emph default
30327  introduce an easily exploitable security hole.
30328  So before you do this, please read the discussion about security in 
30329 \begin_inset CommandInset ref
30330 LatexCommand ref
30331 reference "sec:Security-discussion"
30332
30333 \end_inset
30334
30335 .
30336 \end_layout
30337
30338 \begin_layout Standard
30339 Having said that, we encourage you to submit any interesting templates that
30340  you create.
30341  
30342 \end_layout
30343
30344 \begin_layout Standard
30345 The external templates are defined in the 
30346 \begin_inset Flex Code
30347 status collapsed
30348
30349 \begin_layout Plain Layout
30350 *.xtemplate
30351 \end_layout
30352
30353 \end_inset
30354
30355  files that are stored in the 
30356 \begin_inset Flex Code
30357 status collapsed
30358
30359 \begin_layout Plain Layout
30360 LyXDir/lib/xtemplates/
30361 \end_layout
30362
30363 \end_inset
30364
30365  directory.
30366  Each template is defined in a file of its own.
30367  You can place your own templates in 
30368 \begin_inset Flex Code
30369 status collapsed
30370
30371 \begin_layout Plain Layout
30372 UserDir/xtemplates/
30373 \end_layout
30374
30375 \end_inset
30376
30377  or copy existing templates to that directory in order to modify them.
30378 \end_layout
30379
30380 \begin_layout Standard
30381 A typical template looks like this:
30382 \end_layout
30383
30384 \begin_layout LyX-Code
30385 Template XFig
30386 \end_layout
30387
30388 \begin_layout LyX-Code
30389 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
30390 \end_layout
30391
30392 \begin_layout LyX-Code
30393 HelpText
30394 \end_layout
30395
30396 \begin_layout LyX-Code
30397 An XFig figure.
30398 \end_layout
30399
30400 \begin_layout LyX-Code
30401 HelpTextEnd
30402 \end_layout
30403
30404 \begin_layout LyX-Code
30405 InputFormat fig
30406 \end_layout
30407
30408 \begin_layout LyX-Code
30409 FileFilter "*.fig"
30410 \end_layout
30411
30412 \begin_layout LyX-Code
30413 AutomaticProduction true
30414 \end_layout
30415
30416 \begin_layout LyX-Code
30417 Transform Rotate
30418 \end_layout
30419
30420 \begin_layout LyX-Code
30421 Transform Resize
30422 \end_layout
30423
30424 \begin_layout LyX-Code
30425 Format LaTeX
30426 \end_layout
30427
30428 \begin_layout LyX-Code
30429 TransformCommand Rotate RotationLatexCommand
30430 \end_layout
30431
30432 \begin_layout LyX-Code
30433 TransformCommand Resize ResizeLatexCommand
30434 \end_layout
30435
30436 \begin_layout LyX-Code
30437 Product "$$RotateFront$$ResizeFront
30438 \end_layout
30439
30440 \begin_layout LyX-Code
30441          
30442 \backslash
30443
30444 \backslash
30445 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
30446 \end_layout
30447
30448 \begin_layout LyX-Code
30449          $$ResizeBack$$RotateBack"
30450 \end_layout
30451
30452 \begin_layout LyX-Code
30453 UpdateFormat pstex
30454 \end_layout
30455
30456 \begin_layout LyX-Code
30457 UpdateResult "$$AbsPath$$Basename.pstex_t"
30458 \end_layout
30459
30460 \begin_layout LyX-Code
30461 Requirement "graphicx"
30462 \end_layout
30463
30464 \begin_layout LyX-Code
30465 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
30466 \end_layout
30467
30468 \begin_layout LyX-Code
30469 ReferencedFile latex "$$AbsPath$$Basename.eps"
30470 \end_layout
30471
30472 \begin_layout LyX-Code
30473 ReferencedFile dvi "$$AbsPath$$Basename.eps"
30474 \end_layout
30475
30476 \begin_layout LyX-Code
30477 FormatEnd
30478 \end_layout
30479
30480 \begin_layout LyX-Code
30481 Format PDFLaTeX
30482 \end_layout
30483
30484 \begin_layout LyX-Code
30485 TransformCommand Rotate RotationLatexCommand
30486 \end_layout
30487
30488 \begin_layout LyX-Code
30489 TransformCommand Resize ResizeLatexCommand
30490 \end_layout
30491
30492 \begin_layout LyX-Code
30493 Product "$$RotateFront$$ResizeFront
30494 \end_layout
30495
30496 \begin_layout LyX-Code
30497          
30498 \backslash
30499
30500 \backslash
30501 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
30502 \end_layout
30503
30504 \begin_layout LyX-Code
30505          $$ResizeBack$$RotateBack"
30506 \end_layout
30507
30508 \begin_layout LyX-Code
30509 UpdateFormat pdftex
30510 \end_layout
30511
30512 \begin_layout LyX-Code
30513 UpdateResult "$$AbsPath$$Basename.pdftex_t"
30514 \end_layout
30515
30516 \begin_layout LyX-Code
30517 Requirement "graphicx"
30518 \end_layout
30519
30520 \begin_layout LyX-Code
30521 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
30522 \end_layout
30523
30524 \begin_layout LyX-Code
30525 ReferencedFile latex "$$AbsPath$$Basename.pdf"
30526 \end_layout
30527
30528 \begin_layout LyX-Code
30529 FormatEnd
30530 \end_layout
30531
30532 \begin_layout LyX-Code
30533 Format Ascii
30534 \end_layout
30535
30536 \begin_layout LyX-Code
30537 Product "[XFig: $$FName]"
30538 \end_layout
30539
30540 \begin_layout LyX-Code
30541 FormatEnd
30542 \end_layout
30543
30544 \begin_layout LyX-Code
30545 Format DocBook
30546 \end_layout
30547
30548 \begin_layout LyX-Code
30549 Product "<graphic fileref=
30550 \backslash
30551 "$$AbsOrRelPathMaster$$Basename.eps
30552 \backslash
30553 ">
30554 \end_layout
30555
30556 \begin_layout LyX-Code
30557          </graphic>"
30558 \end_layout
30559
30560 \begin_layout LyX-Code
30561 UpdateFormat eps
30562 \end_layout
30563
30564 \begin_layout LyX-Code
30565 UpdateResult "$$AbsPath$$Basename.eps"
30566 \end_layout
30567
30568 \begin_layout LyX-Code
30569 ReferencedFile docbook "$$AbsPath$$Basename.eps"
30570 \end_layout
30571
30572 \begin_layout LyX-Code
30573 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
30574 \end_layout
30575
30576 \begin_layout LyX-Code
30577 FormatEnd
30578 \end_layout
30579
30580 \begin_layout LyX-Code
30581 TemplateEnd
30582 \end_layout
30583
30584 \begin_layout Standard
30585 As you can see, the template is enclosed in 
30586 \begin_inset Flex Code
30587 status collapsed
30588
30589 \begin_layout Plain Layout
30590 Template
30591 \end_layout
30592
30593 \end_inset
30594
30595  \SpecialChar ldots
30596  
30597 \begin_inset Flex Code
30598 status collapsed
30599
30600 \begin_layout Plain Layout
30601 TemplateEnd
30602 \end_layout
30603
30604 \end_inset
30605
30606 .
30607  It contains a header specifying some general settings and, for each supported
30608  primary document file format, a section 
30609 \begin_inset Flex Code
30610 status collapsed
30611
30612 \begin_layout Plain Layout
30613 Format
30614 \end_layout
30615
30616 \end_inset
30617
30618  \SpecialChar ldots
30619  
30620 \begin_inset Flex Code
30621 status collapsed
30622
30623 \begin_layout Plain Layout
30624 FormatEnd
30625 \end_layout
30626
30627 \end_inset
30628
30629 .
30630 \end_layout
30631
30632 \begin_layout Subsection
30633 The template header
30634 \end_layout
30635
30636 \begin_layout Description
30637 \begin_inset Flex Code
30638 status collapsed
30639
30640 \begin_layout Plain Layout
30641 AutomaticProduction
30642 \begin_inset space ~
30643 \end_inset
30644
30645 true|false
30646 \end_layout
30647
30648 \end_inset
30649
30650  Whether the file represented by the template must be generated by \SpecialChar LyX
30651 .
30652  This command must occur exactly once.
30653 \end_layout
30654
30655 \begin_layout Description
30656 \begin_inset Flex Code
30657 status collapsed
30658
30659 \begin_layout Plain Layout
30660 FileFilter
30661 \begin_inset space ~
30662 \end_inset
30663
30664 <pattern>
30665 \end_layout
30666
30667 \end_inset
30668
30669  A glob pattern that is used in the file dialog to filter out the desired
30670  files.
30671  If there is more than one possible file extension (e.
30672 \begin_inset space \thinspace{}
30673 \end_inset
30674
30675 g.
30676 \begin_inset space \space{}
30677 \end_inset
30678
30679 tgif has 
30680 \begin_inset Flex Code
30681 status collapsed
30682
30683 \begin_layout Plain Layout
30684 .obj
30685 \end_layout
30686
30687 \end_inset
30688
30689  and 
30690 \begin_inset Flex Code
30691 status collapsed
30692
30693 \begin_layout Plain Layout
30694 .tgo
30695 \end_layout
30696
30697 \end_inset
30698
30699 ), use something like 
30700 \begin_inset Flex Code
30701 status collapsed
30702
30703 \begin_layout Plain Layout
30704 "*.{obj,tgo}"
30705 \end_layout
30706
30707 \end_inset
30708
30709 .
30710  This command must occur exactly once.
30711 \end_layout
30712
30713 \begin_layout Description
30714 \begin_inset Flex Code
30715 status collapsed
30716
30717 \begin_layout Plain Layout
30718 GuiName
30719 \begin_inset space ~
30720 \end_inset
30721
30722 <guiname>
30723 \end_layout
30724
30725 \end_inset
30726
30727  The text that is displayed on the button.
30728  This command must occur exactly once.
30729 \end_layout
30730
30731 \begin_layout Description
30732 \begin_inset Flex Code
30733 status collapsed
30734
30735 \begin_layout Plain Layout
30736 HelpText
30737 \begin_inset space ~
30738 \end_inset
30739
30740 <text>
30741 \begin_inset space ~
30742 \end_inset
30743
30744 HelpTextEnd
30745 \end_layout
30746
30747 \end_inset
30748
30749  The help text that is used in the External dialog.
30750  Provide enough information to explain to the user just what the template
30751  can provide him with.
30752  This command must occur exactly once.
30753 \end_layout
30754
30755 \begin_layout Description
30756 \begin_inset Flex Code
30757 status collapsed
30758
30759 \begin_layout Plain Layout
30760 InputFormat
30761 \begin_inset space ~
30762 \end_inset
30763
30764 <format>
30765 \end_layout
30766
30767 \end_inset
30768
30769  The file format of the original file.
30770  This must be the name of a format that is known to \SpecialChar LyX
30771  (see 
30772 \begin_inset CommandInset ref
30773 LatexCommand ref
30774 reference "sec:Formats"
30775
30776 \end_inset
30777
30778 ).
30779  Use 
30780 \begin_inset Quotes eld
30781 \end_inset
30782
30783
30784 \begin_inset Flex Code
30785 status collapsed
30786
30787 \begin_layout Plain Layout
30788 *
30789 \end_layout
30790
30791 \end_inset
30792
30793
30794 \begin_inset Quotes erd
30795 \end_inset
30796
30797  if the template can handle original files of more than one format.
30798  \SpecialChar LyX
30799  will attempt to interrogate the file itself in order to deduce its format
30800  in this case.
30801  This command must occur exactly once.
30802 \end_layout
30803
30804 \begin_layout Description
30805 \begin_inset Flex Code
30806 status collapsed
30807
30808 \begin_layout Plain Layout
30809 Template
30810 \begin_inset space ~
30811 \end_inset
30812
30813 <id>
30814 \end_layout
30815
30816 \end_inset
30817
30818  A unique name for the template.
30819  It must not contain substitution macros (see below).
30820 \end_layout
30821
30822 \begin_layout Description
30823 \begin_inset Flex Code
30824 status collapsed
30825
30826 \begin_layout Plain Layout
30827 Transform
30828 \begin_inset space ~
30829 \end_inset
30830
30831 Rotate|Resize|Clip|Extra
30832 \end_layout
30833
30834 \end_inset
30835
30836  This command specifies which transformations are supported by this template.
30837  It may occur zero or more times.
30838  This command enables the corresponding tabs in the external dialog.
30839  Each 
30840 \begin_inset Flex Code
30841 status collapsed
30842
30843 \begin_layout Plain Layout
30844 Transform
30845 \end_layout
30846
30847 \end_inset
30848
30849  command must have either a corresponding 
30850 \begin_inset Flex Code
30851 status collapsed
30852
30853 \begin_layout Plain Layout
30854 TransformCommand
30855 \end_layout
30856
30857 \end_inset
30858
30859  or a 
30860 \begin_inset Flex Code
30861 status collapsed
30862
30863 \begin_layout Plain Layout
30864 TransformOption
30865 \end_layout
30866
30867 \end_inset
30868
30869  command in the 
30870 \begin_inset Flex Code
30871 status collapsed
30872
30873 \begin_layout Plain Layout
30874 Format
30875 \end_layout
30876
30877 \end_inset
30878
30879  section.
30880  Otherwise the transformation will not be supported by that format.
30881 \end_layout
30882
30883 \begin_layout Subsection
30884 The Format section
30885 \end_layout
30886
30887 \begin_layout Description
30888 \begin_inset Flex Code
30889 status collapsed
30890
30891 \begin_layout Plain Layout
30892 Format
30893 \begin_inset space ~
30894 \end_inset
30895
30896 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
30897 \end_layout
30898
30899 \end_inset
30900
30901  The primary document file format that this format definition is for.
30902  Not every template has a sensible representation in all document file formats.
30903  Please define nevertheless a 
30904 \begin_inset Flex Code
30905 status collapsed
30906
30907 \begin_layout Plain Layout
30908 Format
30909 \end_layout
30910
30911 \end_inset
30912
30913  section for all templates.
30914  Use a dummy text when no representation is available.
30915  Then you can at least see a reference to the external material in the exported
30916  document.
30917 \end_layout
30918
30919 \begin_layout Description
30920 \begin_inset Flex Code
30921 status collapsed
30922
30923 \begin_layout Plain Layout
30924 Option
30925 \begin_inset space ~
30926 \end_inset
30927
30928 <name>
30929 \begin_inset space ~
30930 \end_inset
30931
30932 <value>
30933 \end_layout
30934
30935 \end_inset
30936
30937  This command defines an additional macro 
30938 \begin_inset Flex Code
30939 status collapsed
30940
30941 \begin_layout Plain Layout
30942 $$<name>
30943 \end_layout
30944
30945 \end_inset
30946
30947  for substitution in 
30948 \begin_inset Flex Code
30949 status collapsed
30950
30951 \begin_layout Plain Layout
30952 Product
30953 \end_layout
30954
30955 \end_inset
30956
30957 .
30958  
30959 \begin_inset Flex Code
30960 status collapsed
30961
30962 \begin_layout Plain Layout
30963 <value>
30964 \end_layout
30965
30966 \end_inset
30967
30968  itself may contain substitution macros.
30969  The advantage over using 
30970 \begin_inset Flex Code
30971 status collapsed
30972
30973 \begin_layout Plain Layout
30974 <value>
30975 \end_layout
30976
30977 \end_inset
30978
30979  directly in 
30980 \begin_inset Flex Code
30981 status collapsed
30982
30983 \begin_layout Plain Layout
30984 Product
30985 \end_layout
30986
30987 \end_inset
30988
30989  is that the substituted value of 
30990 \begin_inset Flex Code
30991 status collapsed
30992
30993 \begin_layout Plain Layout
30994 $$<name>
30995 \end_layout
30996
30997 \end_inset
30998
30999  is sanitized so that it is a valid optional argument in the document format.
31000  This command may occur zero or more times.
31001 \end_layout
31002
31003 \begin_layout Description
31004 \begin_inset Flex Code
31005 status collapsed
31006
31007 \begin_layout Plain Layout
31008 Product
31009 \begin_inset space ~
31010 \end_inset
31011
31012 <text>
31013 \end_layout
31014
31015 \end_inset
31016
31017  The text that is inserted in the exported document.
31018  This is actually the most important command and can be quite complex.
31019  This command must occur exactly once.
31020 \end_layout
31021
31022 \begin_layout Description
31023 \begin_inset Flex Code
31024 status collapsed
31025
31026 \begin_layout Plain Layout
31027 Preamble
31028 \begin_inset space ~
31029 \end_inset
31030
31031 <name>
31032 \end_layout
31033
31034 \end_inset
31035
31036  This command specifies a preamble snippet that will be included in the
31037  \SpecialChar LaTeX
31038  preamble.
31039  It has to be defined using 
31040 \begin_inset Flex Code
31041 status collapsed
31042
31043 \begin_layout Plain Layout
31044 PreambleDef
31045 \end_layout
31046
31047 \end_inset
31048
31049  \SpecialChar ldots
31050  
31051 \begin_inset Flex Code
31052 status collapsed
31053
31054 \begin_layout Plain Layout
31055 PreambleDefEnd
31056 \end_layout
31057
31058 \end_inset
31059
31060 .
31061  This command may occur zero or more times.
31062 \end_layout
31063
31064 \begin_layout Description
31065 \begin_inset Flex Code
31066 status collapsed
31067
31068 \begin_layout Plain Layout
31069 ReferencedFile
31070 \begin_inset space ~
31071 \end_inset
31072
31073 <format>
31074 \begin_inset space ~
31075 \end_inset
31076
31077 <filename>
31078 \end_layout
31079
31080 \end_inset
31081
31082  This command denotes files that are created by the conversion process and
31083  are needed for a particular export format.
31084  If the filename is relative, it is interpreted relative to the master document.
31085  This command may be given zero or more times.
31086 \end_layout
31087
31088 \begin_layout Description
31089 \begin_inset Flex Code
31090 status collapsed
31091
31092 \begin_layout Plain Layout
31093 Requirement
31094 \begin_inset space ~
31095 \end_inset
31096
31097 <package>
31098 \end_layout
31099
31100 \end_inset
31101
31102  The name of a required \SpecialChar LaTeX
31103  package.
31104  The package is included via 
31105 \begin_inset Flex Code
31106 status collapsed
31107
31108 \begin_layout Plain Layout
31109
31110 \backslash
31111 usepackage{}
31112 \end_layout
31113
31114 \end_inset
31115
31116  in the \SpecialChar LaTeX
31117  preamble.
31118  This command may occur zero or more times.
31119 \end_layout
31120
31121 \begin_layout Description
31122 \begin_inset Flex Code
31123 status collapsed
31124
31125 \begin_layout Plain Layout
31126 TransformCommand
31127 \begin_inset space ~
31128 \end_inset
31129
31130 Rotate
31131 \begin_inset space ~
31132 \end_inset
31133
31134 RotationLatexCommand
31135 \end_layout
31136
31137 \end_inset
31138
31139  This command specifies that the built in \SpecialChar LaTeX
31140  command should be used for rotation.
31141  This command may occur once or not at all.
31142 \end_layout
31143
31144 \begin_layout Description
31145 \begin_inset Flex Code
31146 status collapsed
31147
31148 \begin_layout Plain Layout
31149 TransformCommand
31150 \begin_inset space ~
31151 \end_inset
31152
31153 Resize
31154 \begin_inset space ~
31155 \end_inset
31156
31157 ResizeLatexCommand
31158 \end_layout
31159
31160 \end_inset
31161
31162  This command specifies that the built in \SpecialChar LaTeX
31163  command should be used for resizing.
31164  This command may occur once or not at all.
31165 \end_layout
31166
31167 \begin_layout Description
31168 \begin_inset Flex Code
31169 status collapsed
31170
31171 \begin_layout Plain Layout
31172 TransformOption
31173 \begin_inset space ~
31174 \end_inset
31175
31176 Rotate
31177 \begin_inset space ~
31178 \end_inset
31179
31180 RotationLatexOption
31181 \end_layout
31182
31183 \end_inset
31184
31185  This command specifies that rotation is done via an optional argument.
31186  This command may occur once or not at all.
31187 \end_layout
31188
31189 \begin_layout Description
31190 \begin_inset Flex Code
31191 status collapsed
31192
31193 \begin_layout Plain Layout
31194 TransformOption
31195 \begin_inset space ~
31196 \end_inset
31197
31198 Resize
31199 \begin_inset space ~
31200 \end_inset
31201
31202 ResizeLatexOption
31203 \end_layout
31204
31205 \end_inset
31206
31207  This command specifies that resizing is done via an optional argument.
31208  This command may occur once or not at all.
31209 \end_layout
31210
31211 \begin_layout Description
31212 \begin_inset Flex Code
31213 status collapsed
31214
31215 \begin_layout Plain Layout
31216 TransformOption
31217 \begin_inset space ~
31218 \end_inset
31219
31220 Clip
31221 \begin_inset space ~
31222 \end_inset
31223
31224 ClipLatexOption
31225 \end_layout
31226
31227 \end_inset
31228
31229  This command specifies that clipping is done via an optional argument.
31230  This command may occur once or not at all.
31231 \end_layout
31232
31233 \begin_layout Description
31234 \begin_inset Flex Code
31235 status collapsed
31236
31237 \begin_layout Plain Layout
31238 TransformOption
31239 \begin_inset space ~
31240 \end_inset
31241
31242 Extra
31243 \begin_inset space ~
31244 \end_inset
31245
31246 ExtraLatexOption
31247 \end_layout
31248
31249 \end_inset
31250
31251  This command specifies that an extra optional argument is used.
31252  This command may occur once or not at all.
31253 \end_layout
31254
31255 \begin_layout Description
31256 \begin_inset Flex Code
31257 status collapsed
31258
31259 \begin_layout Plain Layout
31260 UpdateFormat
31261 \begin_inset space ~
31262 \end_inset
31263
31264 <format>
31265 \end_layout
31266
31267 \end_inset
31268
31269  The file format of the converted file.
31270  This must be the name of a format that is known to \SpecialChar LyX
31271  (see the 
31272 \begin_inset Flex Noun
31273 status collapsed
31274
31275 \begin_layout Plain Layout
31276 Tools\SpecialChar menuseparator
31277 Preferences\SpecialChar menuseparator
31278 File Handling\SpecialChar menuseparator
31279 File Format
31280 \end_layout
31281
31282 \end_inset
31283
31284  dialog).
31285  This command must occur exactly once.
31286  If the resulting file format is PDF, you need to specify the format 
31287 \begin_inset Flex Code
31288 status collapsed
31289
31290 \begin_layout Plain Layout
31291 pdf6
31292 \end_layout
31293
31294 \end_inset
31295
31296 .
31297  This is the PDF format used for including graphics.
31298  The other defined PDF formats are for document export.
31299 \end_layout
31300
31301 \begin_layout Description
31302 \begin_inset Flex Code
31303 status collapsed
31304
31305 \begin_layout Plain Layout
31306 UpdateResult
31307 \begin_inset space ~
31308 \end_inset
31309
31310 <filename>
31311 \end_layout
31312
31313 \end_inset
31314
31315  The file name of the converted file.
31316  The file name must be absolute.
31317  This command must occur exactly once.
31318 \end_layout
31319
31320 \begin_layout Subsection
31321 Preamble definitions
31322 \end_layout
31323
31324 \begin_layout Standard
31325 The external template configuration file may contain additional preamble
31326  definitions enclosed by 
31327 \begin_inset Flex Code
31328 status collapsed
31329
31330 \begin_layout Plain Layout
31331 PreambleDef
31332 \end_layout
31333
31334 \end_inset
31335
31336  \SpecialChar ldots
31337  
31338 \begin_inset Flex Code
31339 status collapsed
31340
31341 \begin_layout Plain Layout
31342 PreambleDefEnd
31343 \end_layout
31344
31345 \end_inset
31346
31347 .
31348  They can be used by the templates in the 
31349 \begin_inset Flex Code
31350 status collapsed
31351
31352 \begin_layout Plain Layout
31353 Format
31354 \end_layout
31355
31356 \end_inset
31357
31358  section.
31359 \end_layout
31360
31361 \begin_layout Section
31362 The substitution mechanism
31363 \end_layout
31364
31365 \begin_layout Standard
31366 When the external material facility invokes an external program, it is done
31367  on the basis of a command defined in the template configuration file.
31368  These commands can contain various macros that are expanded before execution.
31369  Execution always take place in the directory of the containing document.
31370 \end_layout
31371
31372 \begin_layout Standard
31373 Also, whenever external material is to be displayed, the name will be produced
31374  by the substitution mechanism, and most other commands in the template
31375  definition support substitution as well.
31376 \end_layout
31377
31378 \begin_layout Standard
31379 The available macros are the following:
31380 \end_layout
31381
31382 \begin_layout Description
31383 \begin_inset Flex Code
31384 status collapsed
31385
31386 \begin_layout Plain Layout
31387 $$AbsOrRelPathMaster
31388 \end_layout
31389
31390 \end_inset
31391
31392  The file path, absolute or relative to the master \SpecialChar LyX
31393  document.
31394 \end_layout
31395
31396 \begin_layout Description
31397 \begin_inset Flex Code
31398 status collapsed
31399
31400 \begin_layout Plain Layout
31401 $$AbsOrRelPathParent
31402 \end_layout
31403
31404 \end_inset
31405
31406  The file path, absolute or relative to the \SpecialChar LyX
31407  document.
31408 \end_layout
31409
31410 \begin_layout Description
31411 \begin_inset Flex Code
31412 status collapsed
31413
31414 \begin_layout Plain Layout
31415 $$AbsPath
31416 \end_layout
31417
31418 \end_inset
31419
31420  The absolute file path.
31421 \end_layout
31422
31423 \begin_layout Description
31424 \begin_inset Flex Code
31425 status collapsed
31426
31427 \begin_layout Plain Layout
31428 $$Basename
31429 \end_layout
31430
31431 \end_inset
31432
31433  The filename without path and without the extension.
31434 \end_layout
31435
31436 \begin_layout Description
31437 \begin_inset Flex Code
31438 status collapsed
31439
31440 \begin_layout Plain Layout
31441 $$Contents(
31442 \begin_inset Quotes eld
31443 \end_inset
31444
31445 filename.ext
31446 \begin_inset Quotes erd
31447 \end_inset
31448
31449 )
31450 \end_layout
31451
31452 \end_inset
31453
31454  This macro will expand to the contents of the file with the name 
31455 \begin_inset Flex Code
31456 status collapsed
31457
31458 \begin_layout Plain Layout
31459 filename.ext
31460 \end_layout
31461
31462 \end_inset
31463
31464 .
31465 \end_layout
31466
31467 \begin_layout Description
31468 \begin_inset Flex Code
31469 status collapsed
31470
31471 \begin_layout Plain Layout
31472 $$Extension
31473 \end_layout
31474
31475 \end_inset
31476
31477  The file extension (including the dot).
31478 \end_layout
31479
31480 \begin_layout Description
31481 \begin_inset Flex Code
31482 status collapsed
31483
31484 \begin_layout Plain Layout
31485 $$pngOrjpg
31486 \end_layout
31487
31488 \end_inset
31489
31490  This will be the string 
31491 \begin_inset Quotes eld
31492 \end_inset
31493
31494 jpg
31495 \begin_inset Quotes erd
31496 \end_inset
31497
31498  if the file is in JPEG format, otherwise it will be the string 
31499 \begin_inset Quotes eld
31500 \end_inset
31501
31502 png
31503 \begin_inset Quotes erd
31504 \end_inset
31505
31506 .
31507  This is useful to avoid uneeded conversions for output formats that support
31508  both PNG and JPEG fomats.
31509  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
31510  output
31511  format.
31512 \end_layout
31513
31514 \begin_layout Description
31515 \begin_inset Flex Code
31516 status collapsed
31517
31518 \begin_layout Plain Layout
31519 $$FName
31520 \end_layout
31521
31522 \end_inset
31523
31524  The filename of the file specified in the external material dialog.
31525  This is either an absolute name, or it is relative to the \SpecialChar LyX
31526  document.
31527 \end_layout
31528
31529 \begin_layout Description
31530 \begin_inset Flex Code
31531 status collapsed
31532
31533 \begin_layout Plain Layout
31534 $$FPath
31535 \end_layout
31536
31537 \end_inset
31538
31539  The path part of 
31540 \begin_inset Flex Code
31541 status collapsed
31542
31543 \begin_layout Plain Layout
31544 $$FName
31545 \end_layout
31546
31547 \end_inset
31548
31549  (absolute name or relative to the \SpecialChar LyX
31550  document).
31551 \end_layout
31552
31553 \begin_layout Description
31554 \begin_inset Flex Code
31555 status collapsed
31556
31557 \begin_layout Plain Layout
31558 $$RelPathMaster
31559 \end_layout
31560
31561 \end_inset
31562
31563  The file path, relative to the master \SpecialChar LyX
31564  document.
31565 \end_layout
31566
31567 \begin_layout Description
31568 \begin_inset Flex Code
31569 status collapsed
31570
31571 \begin_layout Plain Layout
31572 $$RelPathParent
31573 \end_layout
31574
31575 \end_inset
31576
31577  The file path, relative to the \SpecialChar LyX
31578  document.
31579 \end_layout
31580
31581 \begin_layout Description
31582 \begin_inset Flex Code
31583 status collapsed
31584
31585 \begin_layout Plain Layout
31586 $$Sysdir
31587 \end_layout
31588
31589 \end_inset
31590
31591  This macro will expand to the absolute path of the system directory.
31592  This is typically used to point to the various helper scripts that are
31593  bundled with \SpecialChar LyX
31594 .
31595 \end_layout
31596
31597 \begin_layout Description
31598 \begin_inset Flex Code
31599 status collapsed
31600
31601 \begin_layout Plain Layout
31602 $$Tempname
31603 \end_layout
31604
31605 \end_inset
31606
31607  A name and full path to a temporary file which will be automatically deleted
31608  whenever the containing document is closed, or the external material insertion
31609  deleted.
31610 \end_layout
31611
31612 \begin_layout Standard
31613 All path macros contain a trailing directory separator, so you can construct
31614  e.
31615 \begin_inset space \thinspace{}
31616 \end_inset
31617
31618 g.
31619 \begin_inset space \space{}
31620 \end_inset
31621
31622 the absolute filename with 
31623 \begin_inset Flex Code
31624 status collapsed
31625
31626 \begin_layout Plain Layout
31627 $$AbsPath$$Basename$$Extension
31628 \end_layout
31629
31630 \end_inset
31631
31632 .
31633 \end_layout
31634
31635 \begin_layout Standard
31636 The macros above are substituted in all commands unless otherwise noted.
31637  The command 
31638 \begin_inset Flex Code
31639 status collapsed
31640
31641 \begin_layout Plain Layout
31642 Product
31643 \end_layout
31644
31645 \end_inset
31646
31647  supports additionally the following substitutions if they are enabled by
31648  the 
31649 \begin_inset Flex Code
31650 status collapsed
31651
31652 \begin_layout Plain Layout
31653 Transform
31654 \end_layout
31655
31656 \end_inset
31657
31658  and 
31659 \begin_inset Flex Code
31660 status collapsed
31661
31662 \begin_layout Plain Layout
31663 TransformCommand
31664 \end_layout
31665
31666 \end_inset
31667
31668  commands:
31669 \end_layout
31670
31671 \begin_layout Description
31672 \begin_inset Flex Code
31673 status collapsed
31674
31675 \begin_layout Plain Layout
31676 $$ResizeFront
31677 \end_layout
31678
31679 \end_inset
31680
31681  The front part of the resize command.
31682 \end_layout
31683
31684 \begin_layout Description
31685 \begin_inset Flex Code
31686 status collapsed
31687
31688 \begin_layout Plain Layout
31689 $$ResizeBack
31690 \end_layout
31691
31692 \end_inset
31693
31694  The back part of the resize command.
31695 \end_layout
31696
31697 \begin_layout Description
31698 \begin_inset Flex Code
31699 status collapsed
31700
31701 \begin_layout Plain Layout
31702 $$RotateFront
31703 \end_layout
31704
31705 \end_inset
31706
31707  The front part of the rotation command.
31708 \end_layout
31709
31710 \begin_layout Description
31711 \begin_inset Flex Code
31712 status collapsed
31713
31714 \begin_layout Plain Layout
31715 $$RotateBack
31716 \end_layout
31717
31718 \end_inset
31719
31720  The back part of the rotation command.
31721 \end_layout
31722
31723 \begin_layout Standard
31724 The value string of the 
31725 \begin_inset Flex Code
31726 status collapsed
31727
31728 \begin_layout Plain Layout
31729 Option
31730 \end_layout
31731
31732 \end_inset
31733
31734  command supports additionally the following substitutions if they are enabled
31735  by the 
31736 \begin_inset Flex Code
31737 status collapsed
31738
31739 \begin_layout Plain Layout
31740 Transform
31741 \end_layout
31742
31743 \end_inset
31744
31745  and 
31746 \begin_inset Flex Code
31747 status collapsed
31748
31749 \begin_layout Plain Layout
31750 TransformOption
31751 \end_layout
31752
31753 \end_inset
31754
31755  commands:
31756 \end_layout
31757
31758 \begin_layout Description
31759 \begin_inset Flex Code
31760 status collapsed
31761
31762 \begin_layout Plain Layout
31763 $$Clip
31764 \end_layout
31765
31766 \end_inset
31767
31768  The clip option.
31769 \end_layout
31770
31771 \begin_layout Description
31772 \begin_inset Flex Code
31773 status collapsed
31774
31775 \begin_layout Plain Layout
31776 $$Extra
31777 \end_layout
31778
31779 \end_inset
31780
31781  The extra option.
31782 \end_layout
31783
31784 \begin_layout Description
31785 \begin_inset Flex Code
31786 status collapsed
31787
31788 \begin_layout Plain Layout
31789 $$Resize
31790 \end_layout
31791
31792 \end_inset
31793
31794  The resize option.
31795 \end_layout
31796
31797 \begin_layout Description
31798 \begin_inset Flex Code
31799 status collapsed
31800
31801 \begin_layout Plain Layout
31802 $$Rotate
31803 \end_layout
31804
31805 \end_inset
31806
31807  The rotation option.
31808 \end_layout
31809
31810 \begin_layout Standard
31811 You may ask why there are so many path macros.
31812  There are mainly two reasons:
31813 \end_layout
31814
31815 \begin_layout Enumerate
31816 Relative and absolute file names should remain relative or absolute, respectivel
31817 y.
31818  Users may have reasons to prefer either form.
31819  Relative names are useful for portable documents that should work on different
31820  machines, for example.
31821  Absolute names may be required by some programs.
31822 \end_layout
31823
31824 \begin_layout Enumerate
31825 \SpecialChar LaTeX
31826  treats relative file names differently than \SpecialChar LyX
31827  and other programs in nested
31828  included files.
31829  For \SpecialChar LyX
31830 , a relative file name is always relative to the document that contains
31831  the file name.
31832  For \SpecialChar LaTeX
31833 , it is always relative to the master document.
31834  These two definitions are identical if you have only one document, but
31835  differ if you have a master document that includes part documents.
31836  That means that relative filenames must be transformed when presented to
31837  \SpecialChar LaTeX
31838 .
31839  Fortunately \SpecialChar LyX
31840  does this automatically for you if you choose the right macros.
31841 \end_layout
31842
31843 \begin_layout Standard
31844 So which path macro should be used in new template definitions? The rule
31845  is not difficult:
31846 \end_layout
31847
31848 \begin_layout Itemize
31849 Use 
31850 \begin_inset Flex Code
31851 status collapsed
31852
31853 \begin_layout Plain Layout
31854 $$AbsPath
31855 \end_layout
31856
31857 \end_inset
31858
31859  if an absolute path is required.
31860 \end_layout
31861
31862 \begin_layout Itemize
31863 Use 
31864 \begin_inset Flex Code
31865 status collapsed
31866
31867 \begin_layout Plain Layout
31868 $$AbsOrRelPathMaster
31869 \end_layout
31870
31871 \end_inset
31872
31873  if the substituted string is some kind of \SpecialChar LaTeX
31874  input.
31875 \end_layout
31876
31877 \begin_layout Itemize
31878 Else use 
31879 \begin_inset Flex Code
31880 status collapsed
31881
31882 \begin_layout Plain Layout
31883 $$AbsOrRelPathParent
31884 \end_layout
31885
31886 \end_inset
31887
31888  in order to preserve the user's choice.
31889 \end_layout
31890
31891 \begin_layout Standard
31892 There are special cases where this rule does not work and e.
31893 \begin_inset space \thinspace{}
31894 \end_inset
31895
31896 g.
31897 \begin_inset space \space{}
31898 \end_inset
31899
31900 relative names are needed, but normally it will work just fine.
31901  One example for such a case is the command 
31902 \begin_inset Flex Code
31903 status collapsed
31904
31905 \begin_layout Plain Layout
31906 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
31907 \end_layout
31908
31909 \end_inset
31910
31911  in the XFig template above: We can't use the absolute name because the
31912  copier for 
31913 \begin_inset Flex Code
31914 status collapsed
31915
31916 \begin_layout Plain Layout
31917 .pstex_t
31918 \end_layout
31919
31920 \end_inset
31921
31922  files needs the relative name in order to rewrite the file content.
31923 \end_layout
31924
31925 \begin_layout Section
31926 Security discussion
31927 \begin_inset CommandInset label
31928 LatexCommand label
31929 name "sec:Security-discussion"
31930
31931 \end_inset
31932
31933
31934 \end_layout
31935
31936 \begin_layout Standard
31937 The external material feature interfaces with a lot of external programs
31938  and does so automatically, so we have to consider the security implications
31939  of this.
31940  In particular, since you have the option of including your own filenames
31941  and/or parameter strings and those are expanded into a command, it seems
31942  that it would be possible to create a malicious document which executes
31943  arbitrary commands when a user views or prints the document.
31944  This is something we definitely want to avoid.
31945 \end_layout
31946
31947 \begin_layout Standard
31948 However, since the external program commands are specified in the template
31949  configuration file only, there are no security issues if \SpecialChar LyX
31950  is properly configure
31951 d with safe templates only.
31952  This is so because the external programs are invoked with the 
31953 \begin_inset Flex Code
31954 status collapsed
31955
31956 \begin_layout Plain Layout
31957 execvp
31958 \end_layout
31959
31960 \end_inset
31961
31962 -system call rather than the 
31963 \begin_inset Flex Code
31964 status collapsed
31965
31966 \begin_layout Plain Layout
31967 system
31968 \end_layout
31969
31970 \end_inset
31971
31972  system-call, so it's not possible to execute arbitrary commands from the
31973  filename or parameter section via the shell.
31974 \end_layout
31975
31976 \begin_layout Standard
31977 This also implies that you are restricted in what command strings you can
31978  use in the external material templates.
31979  In particular, pipes and redirection are not readily available.
31980  This has to be so if \SpecialChar LyX
31981  should remain safe.
31982  If you want to use some of the shell features, you should write a safe
31983  script to do this in a controlled manner, and then invoke the script from
31984  the command string.
31985  
31986 \end_layout
31987
31988 \begin_layout Standard
31989 It is possible to design a template that interacts directly with the shell,
31990  but since this would allow a malicious user to execute arbitrary commands
31991  by writing clever filenames and/or parameters, we generally recommend that
31992  you only use safe scripts that work with the 
31993 \begin_inset Flex Code
31994 status collapsed
31995
31996 \begin_layout Plain Layout
31997 execvp
31998 \end_layout
31999
32000 \end_inset
32001
32002  system call in a controlled manner.
32003  Of course, for use in a controlled environment, it can be tempting to just
32004  fall back to use ordinary shell scripts.
32005  If you do so, be aware that you 
32006 \emph on
32007 will
32008 \emph default
32009  provide an easily exploitable security hole in your system.
32010  Of course it stands to reason that such unsafe templates will never be
32011  included in the standard \SpecialChar LyX
32012  distribution, although we do encourage people
32013  to submit new templates in the open source tradition.
32014  But \SpecialChar LyX
32015  as shipped from the official distribution channels will never have
32016  unsafe templates.
32017 \end_layout
32018
32019 \begin_layout Standard
32020 Including external material provides a lot of power, and you have to be
32021  careful not to introduce security hazards with this power.
32022  A subtle error in a single line in an innocent looking script can open
32023  the door to huge security problems.
32024  So if you do not fully understand the issues, we recommend that you consult
32025  a knowledgeable security professional or the \SpecialChar LyX
32026  development team if you have
32027  any questions about whether a given template is safe or not.
32028  And do this before you use it in an uncontrolled environment.
32029 \end_layout
32030
32031 \begin_layout Chapter
32032 \start_of_appendix
32033 List of supported \SpecialChar LyX
32034  functions to be used in layouts
32035 \begin_inset CommandInset label
32036 LatexCommand label
32037 name "chap:List-of-functions"
32038
32039 \end_inset
32040
32041
32042 \end_layout
32043
32044 \begin_layout Standard
32045 \align center
32046 \begin_inset Tabular
32047 <lyxtabular version="3" rows="11" columns="8">
32048 <features tabularvalignment="middle">
32049 <column alignment="left" valignment="top">
32050 <column alignment="left" valignment="top">
32051 <column alignment="left" valignment="top">
32052 <column alignment="left" valignment="top">
32053 <column alignment="left" valignment="top">
32054 <column alignment="left" valignment="top">
32055 <column alignment="left" valignment="top">
32056 <column alignment="left" valignment="top">
32057 <row>
32058 <cell alignment="left" valignment="top" usebox="none">
32059 \begin_inset Text
32060
32061 \begin_layout Plain Layout
32062 accents
32063 \end_layout
32064
32065 \end_inset
32066 </cell>
32067 <cell alignment="left" valignment="top" usebox="none">
32068 \begin_inset Text
32069
32070 \begin_layout Plain Layout
32071 booktabs
32072 \end_layout
32073
32074 \end_inset
32075 </cell>
32076 <cell alignment="left" valignment="top" usebox="none">
32077 \begin_inset Text
32078
32079 \begin_layout Plain Layout
32080 feyn
32081 \end_layout
32082
32083 \end_inset
32084 </cell>
32085 <cell alignment="left" valignment="top" usebox="none">
32086 \begin_inset Text
32087
32088 \begin_layout Plain Layout
32089 listings
32090 \end_layout
32091
32092 \end_inset
32093 </cell>
32094 <cell alignment="center" valignment="top" usebox="none">
32095 \begin_inset Text
32096
32097 \begin_layout Plain Layout
32098 natbib
32099 \end_layout
32100
32101 \end_inset
32102 </cell>
32103 <cell alignment="center" valignment="top" usebox="none">
32104 \begin_inset Text
32105
32106 \begin_layout Plain Layout
32107 rotfloat
32108 \end_layout
32109
32110 \end_inset
32111 </cell>
32112 <cell alignment="center" valignment="top" usebox="none">
32113 \begin_inset Text
32114
32115 \begin_layout Plain Layout
32116 tfrupee
32117 \end_layout
32118
32119 \end_inset
32120 </cell>
32121 <cell alignment="center" valignment="top" usebox="none">
32122 \begin_inset Text
32123
32124 \begin_layout Plain Layout
32125 wasysym
32126 \end_layout
32127
32128 \end_inset
32129 </cell>
32130 </row>
32131 <row>
32132 <cell alignment="left" valignment="top" usebox="none">
32133 \begin_inset Text
32134
32135 \begin_layout Plain Layout
32136 amsbsy
32137 \end_layout
32138
32139 \end_inset
32140 </cell>
32141 <cell alignment="left" valignment="top" usebox="none">
32142 \begin_inset Text
32143
32144 \begin_layout Plain Layout
32145 calc
32146 \end_layout
32147
32148 \end_inset
32149 </cell>
32150 <cell alignment="left" valignment="top" usebox="none">
32151 \begin_inset Text
32152
32153 \begin_layout Plain Layout
32154 fixltx2e
32155 \end_layout
32156
32157 \end_inset
32158 </cell>
32159 <cell alignment="left" valignment="top" usebox="none">
32160 \begin_inset Text
32161
32162 \begin_layout Plain Layout
32163 longtable
32164 \end_layout
32165
32166 \end_inset
32167 </cell>
32168 <cell alignment="center" valignment="top" usebox="none">
32169 \begin_inset Text
32170
32171 \begin_layout Plain Layout
32172 nomencl
32173 \end_layout
32174
32175 \end_inset
32176 </cell>
32177 <cell alignment="center" valignment="top" usebox="none">
32178 \begin_inset Text
32179
32180 \begin_layout Plain Layout
32181 rsphrase
32182 \end_layout
32183
32184 \end_inset
32185 </cell>
32186 <cell alignment="center" valignment="top" usebox="none">
32187 \begin_inset Text
32188
32189 \begin_layout Plain Layout
32190 tipa
32191 \end_layout
32192
32193 \end_inset
32194 </cell>
32195 <cell alignment="center" valignment="top" usebox="none">
32196 \begin_inset Text
32197
32198 \begin_layout Plain Layout
32199 wrapfig
32200 \end_layout
32201
32202 \end_inset
32203 </cell>
32204 </row>
32205 <row>
32206 <cell alignment="left" valignment="top" usebox="none">
32207 \begin_inset Text
32208
32209 \begin_layout Plain Layout
32210 amscd
32211 \end_layout
32212
32213 \end_inset
32214 </cell>
32215 <cell alignment="left" valignment="top" usebox="none">
32216 \begin_inset Text
32217
32218 \begin_layout Plain Layout
32219 CJK
32220 \end_layout
32221
32222 \end_inset
32223 </cell>
32224 <cell alignment="left" valignment="top" usebox="none">
32225 \begin_inset Text
32226
32227 \begin_layout Plain Layout
32228 float
32229 \end_layout
32230
32231 \end_inset
32232 </cell>
32233 <cell alignment="left" valignment="top" usebox="none">
32234 \begin_inset Text
32235
32236 \begin_layout Plain Layout
32237 lyxskak
32238 \end_layout
32239
32240 \end_inset
32241 </cell>
32242 <cell alignment="center" valignment="top" usebox="none">
32243 \begin_inset Text
32244
32245 \begin_layout Plain Layout
32246 pdfcolmk
32247 \end_layout
32248
32249 \end_inset
32250 </cell>
32251 <cell alignment="center" valignment="top" usebox="none">
32252 \begin_inset Text
32253
32254 \begin_layout Plain Layout
32255 setspace
32256 \end_layout
32257
32258 \end_inset
32259 </cell>
32260 <cell alignment="center" valignment="top" usebox="none">
32261 \begin_inset Text
32262
32263 \begin_layout Plain Layout
32264 tipx
32265 \end_layout
32266
32267 \end_inset
32268 </cell>
32269 <cell alignment="center" valignment="top" usebox="none">
32270 \begin_inset Text
32271
32272 \begin_layout Plain Layout
32273 xargs
32274 \end_layout
32275
32276 \end_inset
32277 </cell>
32278 </row>
32279 <row>
32280 <cell alignment="left" valignment="top" usebox="none">
32281 \begin_inset Text
32282
32283 \begin_layout Plain Layout
32284 amsmath
32285 \end_layout
32286
32287 \end_inset
32288 </cell>
32289 <cell alignment="left" valignment="top" usebox="none">
32290 \begin_inset Text
32291
32292 \begin_layout Plain Layout
32293 color
32294 \end_layout
32295
32296 \end_inset
32297 </cell>
32298 <cell alignment="left" valignment="top" usebox="none">
32299 \begin_inset Text
32300
32301 \begin_layout Plain Layout
32302 framed
32303 \end_layout
32304
32305 \end_inset
32306 </cell>
32307 <cell alignment="left" valignment="top" usebox="none">
32308 \begin_inset Text
32309
32310 \begin_layout Plain Layout
32311 makeidx
32312 \end_layout
32313
32314 \end_inset
32315 </cell>
32316 <cell alignment="center" valignment="top" usebox="none">
32317 \begin_inset Text
32318
32319 \begin_layout Plain Layout
32320 pdfpages
32321 \end_layout
32322
32323 \end_inset
32324 </cell>
32325 <cell alignment="center" valignment="top" usebox="none">
32326 \begin_inset Text
32327
32328 \begin_layout Plain Layout
32329 shapepar
32330 \end_layout
32331
32332 \end_inset
32333 </cell>
32334 <cell alignment="center" valignment="top" usebox="none">
32335 \begin_inset Text
32336
32337 \begin_layout Plain Layout
32338 tone
32339 \end_layout
32340
32341 \end_inset
32342 </cell>
32343 <cell alignment="center" valignment="top" usebox="none">
32344 \begin_inset Text
32345
32346 \begin_layout Plain Layout
32347 xcolor
32348 \end_layout
32349
32350 \end_inset
32351 </cell>
32352 </row>
32353 <row>
32354 <cell alignment="left" valignment="top" usebox="none">
32355 \begin_inset Text
32356
32357 \begin_layout Plain Layout
32358 amssymb
32359 \end_layout
32360
32361 \end_inset
32362 </cell>
32363 <cell alignment="left" valignment="top" usebox="none">
32364 \begin_inset Text
32365
32366 \begin_layout Plain Layout
32367 covington
32368 \end_layout
32369
32370 \end_inset
32371 </cell>
32372 <cell alignment="left" valignment="top" usebox="none">
32373 \begin_inset Text
32374
32375 \begin_layout Plain Layout
32376 graphicx
32377 \end_layout
32378
32379 \end_inset
32380 </cell>
32381 <cell alignment="left" valignment="top" usebox="none">
32382 \begin_inset Text
32383
32384 \begin_layout Plain Layout
32385 marvosym
32386 \end_layout
32387
32388 \end_inset
32389 </cell>
32390 <cell alignment="center" valignment="top" usebox="none">
32391 \begin_inset Text
32392
32393 \begin_layout Plain Layout
32394 pifont
32395 \end_layout
32396
32397 \end_inset
32398 </cell>
32399 <cell alignment="center" valignment="top" usebox="none">
32400 \begin_inset Text
32401
32402 \begin_layout Plain Layout
32403 slashed
32404 \end_layout
32405
32406 \end_inset
32407 </cell>
32408 <cell alignment="center" valignment="top" usebox="none">
32409 \begin_inset Text
32410
32411 \begin_layout Plain Layout
32412 txfonts
32413 \end_layout
32414
32415 \end_inset
32416 </cell>
32417 <cell alignment="center" valignment="top" usebox="none">
32418 \begin_inset Text
32419
32420 \begin_layout Plain Layout
32421 xy
32422 \end_layout
32423
32424 \end_inset
32425 </cell>
32426 </row>
32427 <row>
32428 <cell alignment="left" valignment="top" usebox="none">
32429 \begin_inset Text
32430
32431 \begin_layout Plain Layout
32432 amstext
32433 \end_layout
32434
32435 \end_inset
32436 </cell>
32437 <cell alignment="left" valignment="top" usebox="none">
32438 \begin_inset Text
32439
32440 \begin_layout Plain Layout
32441 csquotes
32442 \end_layout
32443
32444 \end_inset
32445 </cell>
32446 <cell alignment="left" valignment="top" usebox="none">
32447 \begin_inset Text
32448
32449 \begin_layout Plain Layout
32450 hhline
32451 \end_layout
32452
32453 \end_inset
32454 </cell>
32455 <cell alignment="left" valignment="top" usebox="none">
32456 \begin_inset Text
32457
32458 \begin_layout Plain Layout
32459 mathdesign
32460 \end_layout
32461
32462 \end_inset
32463 </cell>
32464 <cell alignment="center" valignment="top" usebox="none">
32465 \begin_inset Text
32466
32467 \begin_layout Plain Layout
32468 pmboxdraw
32469 \end_layout
32470
32471 \end_inset
32472 </cell>
32473 <cell alignment="center" valignment="top" usebox="none">
32474 \begin_inset Text
32475
32476 \begin_layout Plain Layout
32477 soul
32478 \end_layout
32479
32480 \end_inset
32481 </cell>
32482 <cell alignment="center" valignment="top" usebox="none">
32483 \begin_inset Text
32484
32485 \begin_layout Plain Layout
32486 ulem
32487 \end_layout
32488
32489 \end_inset
32490 </cell>
32491 <cell alignment="center" valignment="top" usebox="none">
32492 \begin_inset Text
32493
32494 \begin_layout Plain Layout
32495 yhmath
32496 \end_layout
32497
32498 \end_inset
32499 </cell>
32500 </row>
32501 <row>
32502 <cell alignment="left" valignment="top" usebox="none">
32503 \begin_inset Text
32504
32505 \begin_layout Plain Layout
32506 amsthm
32507 \end_layout
32508
32509 \end_inset
32510 </cell>
32511 <cell alignment="left" valignment="top" usebox="none">
32512 \begin_inset Text
32513
32514 \begin_layout Plain Layout
32515 dvipost
32516 \end_layout
32517
32518 \end_inset
32519 </cell>
32520 <cell alignment="left" valignment="top" usebox="none">
32521 \begin_inset Text
32522
32523 \begin_layout Plain Layout
32524 hyperref
32525 \end_layout
32526
32527 \end_inset
32528 </cell>
32529 <cell alignment="left" valignment="top" usebox="none">
32530 \begin_inset Text
32531
32532 \begin_layout Plain Layout
32533 mathdots
32534 \end_layout
32535
32536 \end_inset
32537 </cell>
32538 <cell alignment="center" valignment="top" usebox="none">
32539 \begin_inset Text
32540
32541 \begin_layout Plain Layout
32542 polyglossia
32543 \end_layout
32544
32545 \end_inset
32546 </cell>
32547 <cell alignment="center" valignment="top" usebox="none">
32548 \begin_inset Text
32549
32550 \begin_layout Plain Layout
32551 splitidx
32552 \end_layout
32553
32554 \end_inset
32555 </cell>
32556 <cell alignment="center" valignment="top" usebox="none">
32557 \begin_inset Text
32558
32559 \begin_layout Plain Layout
32560 undertilde
32561 \end_layout
32562
32563 \end_inset
32564 </cell>
32565 <cell alignment="center" valignment="top" usebox="none">
32566 \begin_inset Text
32567
32568 \begin_layout Plain Layout
32569
32570 \end_layout
32571
32572 \end_inset
32573 </cell>
32574 </row>
32575 <row>
32576 <cell alignment="left" valignment="top" usebox="none">
32577 \begin_inset Text
32578
32579 \begin_layout Plain Layout
32580 array
32581 \end_layout
32582
32583 \end_inset
32584 </cell>
32585 <cell alignment="left" valignment="top" usebox="none">
32586 \begin_inset Text
32587
32588 \begin_layout Plain Layout
32589 endnotes
32590 \end_layout
32591
32592 \end_inset
32593 </cell>
32594 <cell alignment="left" valignment="top" usebox="none">
32595 \begin_inset Text
32596
32597 \begin_layout Plain Layout
32598 ifsym
32599 \end_layout
32600
32601 \end_inset
32602 </cell>
32603 <cell alignment="left" valignment="top" usebox="none">
32604 \begin_inset Text
32605
32606 \begin_layout Plain Layout
32607 mathrsfs
32608 \end_layout
32609
32610 \end_inset
32611 </cell>
32612 <cell alignment="center" valignment="top" usebox="none">
32613 \begin_inset Text
32614
32615 \begin_layout Plain Layout
32616 prettyref
32617 \end_layout
32618
32619 \end_inset
32620 </cell>
32621 <cell alignment="center" valignment="top" usebox="none">
32622 \begin_inset Text
32623
32624 \begin_layout Plain Layout
32625 subfig
32626 \end_layout
32627
32628 \end_inset
32629 </cell>
32630 <cell alignment="center" valignment="top" usebox="none">
32631 \begin_inset Text
32632
32633 \begin_layout Plain Layout
32634 units
32635 \end_layout
32636
32637 \end_inset
32638 </cell>
32639 <cell alignment="center" valignment="top" usebox="none">
32640 \begin_inset Text
32641
32642 \begin_layout Plain Layout
32643
32644 \end_layout
32645
32646 \end_inset
32647 </cell>
32648 </row>
32649 <row>
32650 <cell alignment="left" valignment="top" usebox="none">
32651 \begin_inset Text
32652
32653 \begin_layout Plain Layout
32654 ascii
32655 \end_layout
32656
32657 \end_inset
32658 </cell>
32659 <cell alignment="left" valignment="top" usebox="none">
32660 \begin_inset Text
32661
32662 \begin_layout Plain Layout
32663 enumitem
32664 \end_layout
32665
32666 \end_inset
32667 </cell>
32668 <cell alignment="left" valignment="top" usebox="none">
32669 \begin_inset Text
32670
32671 \begin_layout Plain Layout
32672 ifthen
32673 \end_layout
32674
32675 \end_inset
32676 </cell>
32677 <cell alignment="left" valignment="top" usebox="none">
32678 \begin_inset Text
32679
32680 \begin_layout Plain Layout
32681 mhchem
32682 \end_layout
32683
32684 \end_inset
32685 </cell>
32686 <cell alignment="center" valignment="top" usebox="none">
32687 \begin_inset Text
32688
32689 \begin_layout Plain Layout
32690 pxfonts
32691 \end_layout
32692
32693 \end_inset
32694 </cell>
32695 <cell alignment="center" valignment="top" usebox="none">
32696 \begin_inset Text
32697
32698 \begin_layout Plain Layout
32699 subscript
32700 \end_layout
32701
32702 \end_inset
32703 </cell>
32704 <cell alignment="center" valignment="top" usebox="none">
32705 \begin_inset Text
32706
32707 \begin_layout Plain Layout
32708 url
32709 \end_layout
32710
32711 \end_inset
32712 </cell>
32713 <cell alignment="center" valignment="top" usebox="none">
32714 \begin_inset Text
32715
32716 \begin_layout Plain Layout
32717
32718 \end_layout
32719
32720 \end_inset
32721 </cell>
32722 </row>
32723 <row>
32724 <cell alignment="left" valignment="top" usebox="none">
32725 \begin_inset Text
32726
32727 \begin_layout Plain Layout
32728 bbding
32729 \end_layout
32730
32731 \end_inset
32732 </cell>
32733 <cell alignment="left" valignment="top" usebox="none">
32734 \begin_inset Text
32735
32736 \begin_layout Plain Layout
32737 esint
32738 \end_layout
32739
32740 \end_inset
32741 </cell>
32742 <cell alignment="left" valignment="top" usebox="none">
32743 \begin_inset Text
32744
32745 \begin_layout Plain Layout
32746 jurabib
32747 \end_layout
32748
32749 \end_inset
32750 </cell>
32751 <cell alignment="left" valignment="top" usebox="none">
32752 \begin_inset Text
32753
32754 \begin_layout Plain Layout
32755 multicol
32756 \end_layout
32757
32758 \end_inset
32759 </cell>
32760 <cell alignment="center" valignment="top" usebox="none">
32761 \begin_inset Text
32762
32763 \begin_layout Plain Layout
32764 refstyle
32765 \end_layout
32766
32767 \end_inset
32768 </cell>
32769 <cell alignment="center" valignment="top" usebox="none">
32770 \begin_inset Text
32771
32772 \begin_layout Plain Layout
32773 textcomp
32774 \end_layout
32775
32776 \end_inset
32777 </cell>
32778 <cell alignment="center" valignment="top" usebox="none">
32779 \begin_inset Text
32780
32781 \begin_layout Plain Layout
32782 varioref
32783 \end_layout
32784
32785 \end_inset
32786 </cell>
32787 <cell alignment="center" valignment="top" usebox="none">
32788 \begin_inset Text
32789
32790 \begin_layout Plain Layout
32791
32792 \end_layout
32793
32794 \end_inset
32795 </cell>
32796 </row>
32797 <row>
32798 <cell alignment="center" valignment="top" usebox="none">
32799 \begin_inset Text
32800
32801 \begin_layout Plain Layout
32802 bm
32803 \end_layout
32804
32805 \end_inset
32806 </cell>
32807 <cell alignment="center" valignment="top" usebox="none">
32808 \begin_inset Text
32809
32810 \begin_layout Plain Layout
32811 fancybox
32812 \end_layout
32813
32814 \end_inset
32815 </cell>
32816 <cell alignment="center" valignment="top" usebox="none">
32817 \begin_inset Text
32818
32819 \begin_layout Plain Layout
32820 latexsym
32821 \end_layout
32822
32823 \end_inset
32824 </cell>
32825 <cell alignment="center" valignment="top" usebox="none">
32826 \begin_inset Text
32827
32828 \begin_layout Plain Layout
32829 multirow
32830 \end_layout
32831
32832 \end_inset
32833 </cell>
32834 <cell alignment="center" valignment="top" usebox="none">
32835 \begin_inset Text
32836
32837 \begin_layout Plain Layout
32838 rotating
32839 \end_layout
32840
32841 \end_inset
32842 </cell>
32843 <cell alignment="center" valignment="top" usebox="none">
32844 \begin_inset Text
32845
32846 \begin_layout Plain Layout
32847 textgreek
32848 \end_layout
32849
32850 \end_inset
32851 </cell>
32852 <cell alignment="center" valignment="top" usebox="none">
32853 \begin_inset Text
32854
32855 \begin_layout Plain Layout
32856 verbatim
32857 \end_layout
32858
32859 \end_inset
32860 </cell>
32861 <cell alignment="center" valignment="top" usebox="none">
32862 \begin_inset Text
32863
32864 \begin_layout Plain Layout
32865
32866 \end_layout
32867
32868 \end_inset
32869 </cell>
32870 </row>
32871 </lyxtabular>
32872
32873 \end_inset
32874
32875
32876 \end_layout
32877
32878 \begin_layout Chapter
32879 Names of available colors to be used in layouts
32880 \begin_inset CommandInset label
32881 LatexCommand label
32882 name "chap:Names-of-colors"
32883
32884 \end_inset
32885
32886
32887 \end_layout
32888
32889 \begin_layout Standard
32890 The colors listed below are the standard colors and those that you can adjust
32891  in the \SpecialChar LyX
32892  preferences.
32893 \end_layout
32894
32895 \begin_layout Section
32896 Color functions
32897 \end_layout
32898
32899 \begin_layout Standard
32900 The following are no real colors, but rather act on color definitions:
32901 \end_layout
32902
32903 \begin_layout Description
32904 ignore The color is ignored
32905 \end_layout
32906
32907 \begin_layout Description
32908 inherit The color is inherited
32909 \end_layout
32910
32911 \begin_layout Description
32912 none
32913 \family roman
32914 \series medium
32915 \shape up
32916 \size normal
32917 \emph off
32918 \bar no
32919 \strikeout off
32920 \uuline off
32921 \uwave off
32922 \noun off
32923 \color none
32924  No particular color – clear or default
32925 \end_layout
32926
32927 \begin_layout Section
32928 Static colors
32929 \end_layout
32930
32931 \begin_layout Standard
32932 These are fixed colors that cannot be customized
32933 \change_inserted -712698321 1607683177
32934 .
32935  Please do 
32936 \emph on
32937 not
32938 \emph default
32939  use these colors in layout definitions, since they will not work well with
32940  some color themes (such as dark themes)
32941 \change_unchanged
32942 :
32943 \end_layout
32944
32945 \begin_layout Description
32946 black
32947 \end_layout
32948
32949 \begin_layout Description
32950 white
32951 \end_layout
32952
32953 \begin_layout Description
32954 blue
32955 \end_layout
32956
32957 \begin_layout Description
32958 brown
32959 \end_layout
32960
32961 \begin_layout Description
32962 cyan
32963 \end_layout
32964
32965 \begin_layout Description
32966 darkgray
32967 \end_layout
32968
32969 \begin_layout Description
32970 gray
32971 \end_layout
32972
32973 \begin_layout Description
32974 green
32975 \end_layout
32976
32977 \begin_layout Description
32978 lightgray
32979 \end_layout
32980
32981 \begin_layout Description
32982 lime
32983 \end_layout
32984
32985 \begin_layout Description
32986 magenta
32987 \end_layout
32988
32989 \begin_layout Description
32990 olive
32991 \end_layout
32992
32993 \begin_layout Description
32994 orange
32995 \end_layout
32996
32997 \begin_layout Description
32998 pink
32999 \end_layout
33000
33001 \begin_layout Description
33002 purple
33003 \end_layout
33004
33005 \begin_layout Description
33006 red
33007 \end_layout
33008
33009 \begin_layout Description
33010 teal
33011 \end_layout
33012
33013 \begin_layout Description
33014 violet
33015 \end_layout
33016
33017 \begin_layout Description
33018 yellow
33019 \end_layout
33020
33021 \begin_layout Section
33022 Dynamic colors
33023 \end_layout
33024
33025 \begin_layout Standard
33026 These are the colors allocated to specific elements in 
33027 \begin_inset Info
33028 type  "menu"
33029 arg   "dialog-show prefs"
33030 \end_inset
33031
33032 :
33033 \end_layout
33034
33035 \begin_layout Description
33036 added_space Added space color
33037 \end_layout
33038
33039 \begin_layout Description
33040 addedtext Added text color
33041 \end_layout
33042
33043 \begin_layout Description
33044 appendix Appendix marker color
33045 \end_layout
33046
33047 \begin_layout Description
33048 background Background color
33049 \end_layout
33050
33051 \begin_layout Description
33052 bottomarea Bottom area color
33053 \end_layout
33054
33055 \begin_layout Description
33056 branchlabel Label color for branches
33057 \end_layout
33058
33059 \begin_layout Description
33060 buttonbg Color used for button background
33061 \end_layout
33062
33063 \begin_layout Description
33064 buttonframe Color for inset button frames
33065 \end_layout
33066
33067 \begin_layout Description
33068 buttonhoverbg Color used for button background under focus
33069 \end_layout
33070
33071 \begin_layout Description
33072 changebar Changebar color
33073 \end_layout
33074
33075 \begin_layout Description
33076 changedtextauthor1 Changed text color author 1
33077 \end_layout
33078
33079 \begin_layout Description
33080 changedtextauthor2 Changed text color author 2
33081 \end_layout
33082
33083 \begin_layout Description
33084 changedtextauthor3 Changed text color author 3
33085 \end_layout
33086
33087 \begin_layout Description
33088 changedtextauthor4 Changed text color author 4
33089 \end_layout
33090
33091 \begin_layout Description
33092 changedtextauthor5 Changed text color author 5
33093 \end_layout
33094
33095 \begin_layout Description
33096 collapsible Collapsible insets text color
33097 \end_layout
33098
33099 \begin_layout Description
33100 collapsibleframe Collapsible insets framecolor
33101 \end_layout
33102
33103 \begin_layout Description
33104 command Text color for command insets
33105 \end_layout
33106
33107 \begin_layout Description
33108 commandbg Background color for command insets
33109 \end_layout
33110
33111 \begin_layout Description
33112 commandframe Frame color for command insets
33113 \end_layout
33114
33115 \begin_layout Description
33116 comment Label color for comments
33117 \end_layout
33118
33119 \begin_layout Description
33120 commentbg Background color of comments
33121 \end_layout
33122
33123 \begin_layout Description
33124 cursor Cursor color
33125 \end_layout
33126
33127 \begin_layout Description
33128 deletedtext Deleted text color
33129 \end_layout
33130
33131 \begin_layout Description
33132 deletedtextmodifier Deleted text modifying color
33133 \end_layout
33134
33135 \begin_layout Description
33136 depthbar Color for the depth bars in the margin
33137 \end_layout
33138
33139 \begin_layout Description
33140 eolmarker End of line marker color
33141 \end_layout
33142
33143 \begin_layout Description
33144 error Color of the \SpecialChar LaTeX
33145  error box
33146 \end_layout
33147
33148 \begin_layout Description
33149 footlabel Label color for footnotes
33150 \end_layout
33151
33152 \begin_layout Description
33153 foreground Foreground color
33154 \end_layout
33155
33156 \begin_layout Description
33157 graphicsbg Graphics inset background color
33158 \end_layout
33159
33160 \begin_layout Description
33161 greyedoutbg Background color of greyedout inset
33162 \end_layout
33163
33164 \begin_layout Description
33165 greyedoutlabel Label color for greyedout insets
33166 \end_layout
33167
33168 \begin_layout Description
33169 greyedouttext Color for greyedout inset text
33170 \end_layout
33171
33172 \begin_layout Description
33173 indexlabel Label color for index insets
33174 \end_layout
33175
33176 \begin_layout Description
33177 inlinecompletion Inline completion color
33178 \end_layout
33179
33180 \begin_layout Description
33181 insetbg Inset marker background color
33182 \end_layout
33183
33184 \begin_layout Description
33185 insetframe Inset marker frame color
33186 \end_layout
33187
33188 \begin_layout Description
33189 language Color for marking foreign language words
33190 \end_layout
33191
33192 \begin_layout Description
33193 latex Text color in \SpecialChar LaTeX
33194  mode
33195 \end_layout
33196
33197 \begin_layout Description
33198 listingsbg Background color of listings inset
33199 \end_layout
33200
33201 \begin_layout Description
33202 marginlabel Label color for margin notes
33203 \end_layout
33204
33205 \begin_layout Description
33206 math Math inset text color
33207 \end_layout
33208
33209 \begin_layout Description
33210 mathbg Math inset background color
33211 \end_layout
33212
33213 \begin_layout Description
33214 mathcorners Math inset frame color not under focus
33215 \end_layout
33216
33217 \begin_layout Description
33218 mathframe Math inset frame color under focus
33219 \end_layout
33220
33221 \begin_layout Description
33222 mathline Math line color
33223 \end_layout
33224
33225 \begin_layout Description
33226 mathmacrobg Macro math inset background color
33227 \end_layout
33228
33229 \begin_layout Description
33230 mathmacroblend Macro math blended color
33231 \end_layout
33232
33233 \begin_layout Description
33234 mathmacroframe Macro math frame color
33235 \end_layout
33236
33237 \begin_layout Description
33238 mathmacrohoverbg Macro math inset background color hovered
33239 \end_layout
33240
33241 \begin_layout Description
33242 mathmacrolabel Macro math label color
33243 \end_layout
33244
33245 \begin_layout Description
33246 mathmacronewarg Macro template color for new parameters
33247 \end_layout
33248
33249 \begin_layout Description
33250 mathmacrooldarg Macro template color for old parameters
33251 \end_layout
33252
33253 \begin_layout Description
33254 newpage New page color
33255 \end_layout
33256
33257 \begin_layout Description
33258 nonunique_inlinecompletion Inline completion color for the non-unique part
33259 \end_layout
33260
33261 \begin_layout Description
33262 note Label color for notes
33263 \end_layout
33264
33265 \begin_layout Description
33266 notebg Background color of notes
33267 \end_layout
33268
33269 \begin_layout Description
33270 pagebreak Page break/line break color
33271 \end_layout
33272
33273 \begin_layout Description
33274 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
33275 \end_layout
33276
33277 \begin_layout Description
33278 phantomtext Text color for phantom insets
33279 \end_layout
33280
33281 \begin_layout Description
33282 preview The color used for previews
33283 \end_layout
33284
33285 \begin_layout Description
33286 previewframe Preview frame color
33287 \end_layout
33288
33289 \begin_layout Description
33290 regexpframe Color for regexp frame
33291 \end_layout
33292
33293 \begin_layout Description
33294 scroll Color that indicates when a row can be scrolled 
33295 \end_layout
33296
33297 \begin_layout Description
33298 selection Background color of selected text
33299 \end_layout
33300
33301 \begin_layout Description
33302 selectiontext Foreground color of selected text
33303 \end_layout
33304
33305 \begin_layout Description
33306 shadedbg Background color of shaded box
33307 \end_layout
33308
33309 \begin_layout Description
33310 special Special chars text color
33311 \end_layout
33312
33313 \begin_layout Description
33314 tabularline Table line color
33315 \end_layout
33316
33317 \begin_layout Description
33318 tabularonoffline Table line color
33319 \change_inserted -712698321 1607682522
33320
33321 \end_layout
33322
33323 \begin_layout Description
33324
33325 \change_inserted -712698321 1607682563
33326 textlabel1 Color 1 of layout and custom inset labels
33327 \end_layout
33328
33329 \begin_layout Description
33330
33331 \change_inserted -712698321 1607682565
33332 textlabel2 Color 2 of layout and custom inset labels
33333 \end_layout
33334
33335 \begin_layout Description
33336
33337 \change_inserted -712698321 1607682568
33338 textlabel3 Color 3 of layout and custom inset labels
33339 \change_unchanged
33340
33341 \end_layout
33342
33343 \begin_layout Description
33344 urllabel Label color for URL insets
33345 \end_layout
33346
33347 \begin_layout Description
33348 urltext Color for URL inset text
33349 \end_layout
33350
33351 \end_body
33352 \end_document