]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Change name and email in some other files
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 599
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children no
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX Configuration Manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX-documentation Customization"
74 \pdf_keywords "LyX, documentation, customization"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen true
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize default
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \use_lineno 0
108 \notefontcolor #0000ff
109 \branch OutDated
110 \selected 0
111 \filename_suffix 0
112 \color #f5fae7
113 \end_branch
114 \index Index
115 \shortcut idx
116 \color #008000
117 \end_index
118 \secnumdepth 3
119 \tocdepth 3
120 \paragraph_separation indent
121 \paragraph_indentation default
122 \is_math_indent 1
123 \math_indentation default
124 \math_numbering_side default
125 \quotes_style english
126 \dynamic_quotes 0
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tablestyle default
131 \tracking_changes true
132 \output_changes false
133 \change_bars false
134 \postpone_fragile_content false
135 \html_math_output 0
136 \html_css_as_file 0
137 \html_be_strict true
138 \docbook_table_output 0
139 \author -970929547 "Thibaut Cuvelier"
140 \author -712698321 "Jürgen Spitzmüller"
141 \author -584632292 "Richard Kimberly Heck"
142 \author -495245474 "Jean-Marc Lasgouttes"
143 \author 5863208 "ab"
144 \author 232239728 "Owner"
145 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
146 \author 1075283030 "Thibaut"
147 \end_header
148
149 \begin_body
150
151 \begin_layout Title
152 Customizing \SpecialChar LyX
153 : Features for the Advanced User
154 \end_layout
155
156 \begin_layout Author
157 by the \SpecialChar LyX
158  Team
159 \begin_inset Foot
160 status collapsed
161
162 \begin_layout Plain Layout
163 If you have comments or error corrections, please send them to the \SpecialChar LyX
164  Documentatio
165 n mailing list, 
166 \begin_inset CommandInset href
167 LatexCommand href
168 target "lyx-docs@lists.lyx.org"
169 type "mailto:"
170 literal "false"
171
172 \end_inset
173
174 .
175  Include 
176 \begin_inset Quotes eld
177 \end_inset
178
179 [Customization]
180 \begin_inset Quotes erd
181 \end_inset
182
183  in the subject header, and please cc the current maintainer of this file,
184  Richard 
185 \change_inserted 5863208 1604930692
186 Kimberly 
187 \change_unchanged
188 Heck <
189 \change_inserted 5863208 1604930729
190 rikiheck@lyx.org
191 \change_deleted 5863208 1604930668
192 rikiheck@lyx.org
193 \change_unchanged
194 >.
195 \end_layout
196
197 \end_inset
198
199
200 \begin_inset Newline newline
201 \end_inset
202
203
204 \begin_inset Newline newline
205 \end_inset
206
207 Version 2.4.x
208 \end_layout
209
210 \begin_layout Standard
211 \begin_inset CommandInset toc
212 LatexCommand tableofcontents
213
214 \end_inset
215
216
217 \end_layout
218
219 \begin_layout Standard
220 \begin_inset Note Note
221 status open
222
223 \begin_layout Plain Layout
224 Please use change tracking when modifying this document.
225  This makes it easier for our translators to recognize things that have
226  been changed, and it helps the maintainer keep up-to-date with what's been
227  done.
228 \end_layout
229
230 \end_inset
231
232
233 \end_layout
234
235 \begin_layout Chapter
236 Introduction
237 \end_layout
238
239 \begin_layout Standard
240 This manual covers the customization features present in \SpecialChar LyX
241 .
242  In it, we discuss issues like keyboard shortcuts, screen previewing options,
243  printer options, sending commands to \SpecialChar LyX
244  via the \SpecialChar LyX
245  Server, internationalization,
246  installing new \SpecialChar LaTeX
247  classes and \SpecialChar LyX
248  layouts, etc.
249  We can't possibly hope to touch on everything you can change—our developers
250  add new features faster than we can document them—but we will explain the
251  most common customizations and hopefully point you in the right direction
252  for some of the more obscure ones.
253 \end_layout
254
255 \begin_layout Standard
256 \begin_inset Branch OutDated
257 inverted 0
258 status collapsed
259
260 \begin_layout Standard
261 Information from previous versions of this document that now seems to be
262  outdated is contained in the OutDated branch of this document.
263  By default, this information will not appear in the \SpecialChar LaTeX
264  output.
265 \end_layout
266
267 \end_inset
268
269
270 \end_layout
271
272 \begin_layout Chapter
273 \SpecialChar LyX
274  configuration files
275 \end_layout
276
277 \begin_layout Standard
278 This chapter aims to help you to find your way through the \SpecialChar LyX
279  configuration
280  files.
281  Before continuing to read this chapter, you should find out where your
282  \SpecialChar LyX
283  library and user directories are by using 
284 \begin_inset Flex Noun
285 status collapsed
286
287 \begin_layout Plain Layout
288 Help\SpecialChar menuseparator
289 About
290 \begin_inset space ~
291 \end_inset
292
293 LyX
294 \end_layout
295
296 \end_inset
297
298 .
299  The library directory is the place where \SpecialChar LyX
300  places its system-wide configuration
301  files; the user directory is where you can place your modified versions.
302  We will call the former 
303 \begin_inset Flex Code
304 status collapsed
305
306 \begin_layout Plain Layout
307 LyXDir
308 \end_layout
309
310 \end_inset
311
312  and the latter 
313 \begin_inset Flex Noun
314 status collapsed
315
316 \begin_layout Plain Layout
317 UserDir
318 \end_layout
319
320 \end_inset
321
322  in the remainder of this document.
323  
324 \end_layout
325
326 \begin_layout Section
327 What's in 
328 \begin_inset Flex Code
329 status collapsed
330
331 \begin_layout Plain Layout
332 LyXDir
333 \end_layout
334
335 \end_inset
336
337 ?
338 \end_layout
339
340 \begin_layout Standard
341 \begin_inset Flex Code
342 status collapsed
343
344 \begin_layout Plain Layout
345 LyXDir
346 \end_layout
347
348 \end_inset
349
350  and its sub-directories contain a number of files 
351 \change_deleted 232239728 1604787780
352 and
353 \change_unchanged
354  that can be used to customize \SpecialChar LyX
355 's behavior.
356  You can change many of these files from within \SpecialChar LyX
357  itself through the 
358 \begin_inset Flex Noun
359 status collapsed
360
361 \begin_layout Plain Layout
362 Tools\SpecialChar menuseparator
363 Preferences
364 \end_layout
365
366 \end_inset
367
368  dialog.
369  Most customization that you will want to do in \SpecialChar LyX
370  is possible through this
371  dialog.
372  However, many other inner aspects of \SpecialChar LyX
373  can be customized by modifying the
374  files in 
375 \begin_inset Flex Code
376 status collapsed
377
378 \begin_layout Plain Layout
379 LyXDir
380 \end_layout
381
382 \end_inset
383
384 .
385  These files fall in different categories, described in the following subsection
386 s.
387 \end_layout
388
389 \begin_layout Subsection
390 Automatically generated files
391 \end_layout
392
393 \begin_layout Standard
394 The files found in 
395 \begin_inset Flex Noun
396 status collapsed
397
398 \begin_layout Plain Layout
399 UserDir
400 \end_layout
401
402 \end_inset
403
404  are generated when you configure \SpecialChar LyX
405 .
406  They contain various default values that are 
407 \change_inserted 5863208 1604919565
408 automatically detected during reconfiguration.
409 \change_deleted 232239728 1604788241
410 guessed by inspection
411 \change_unchanged
412  In general, it is not a good idea to modify them, since they might be overwritt
413 en at any time.
414 \end_layout
415
416 \begin_layout Labeling
417 \labelwidthstring 00.00.0000
418 \begin_inset Flex Code
419 status collapsed
420
421 \begin_layout Plain Layout
422 lyxrc.defaults
423 \end_layout
424
425 \end_inset
426
427  
428 \change_deleted 5863208 1604919950
429
430 \begin_inset Note Note
431 status collapsed
432
433 \begin_layout Plain Layout
434
435 \change_inserted 232239728 1604853928
436 I capitalized the first word in all of these lists.
437  To me it looks better but it really is a stylistic thing, your call.
438  However if you are not going to capitalize them, the english in some needs
439  to be modified to make it read correctly as a sentence.
440 \change_unchanged
441
442 \end_layout
443
444 \end_inset
445
446
447 \change_deleted 232239728 1604853510
448 c
449 \change_inserted 232239728 1604853510
450 C
451 \change_unchanged
452 ontains defaults for various commands.
453 \end_layout
454
455 \begin_layout Labeling
456 \labelwidthstring 00.00.0000
457 \begin_inset Flex Code
458 status collapsed
459
460 \begin_layout Plain Layout
461 packages.lst
462 \end_layout
463
464 \end_inset
465
466  
467 \change_deleted 232239728 1604853512
468 c
469 \change_inserted 232239728 1604853512
470 C
471 \change_unchanged
472 ontains the list of packages that have been recognized by \SpecialChar LyX
473 .
474  It is currently unused by the \SpecialChar LyX
475  program itself, but the information extracted,
476  and more, is made available with 
477 \begin_inset Flex Noun
478 status collapsed
479
480 \begin_layout Plain Layout
481 Help\SpecialChar menuseparator
482 \SpecialChar LaTeX
483
484 \begin_inset space ~
485 \end_inset
486
487 Configuration
488 \end_layout
489
490 \end_inset
491
492 .
493 \end_layout
494
495 \begin_layout Labeling
496 \labelwidthstring 00.00.0000
497 \begin_inset Flex Code
498 status collapsed
499
500 \begin_layout Plain Layout
501 textclass.lst
502 \end_layout
503
504 \end_inset
505
506  
507 \change_deleted 232239728 1604853515
508 t
509 \change_inserted 232239728 1604853515
510 T
511 \change_unchanged
512 he list of text classes that have been found in your 
513 \begin_inset Flex Code
514 status collapsed
515
516 \begin_layout Plain Layout
517 layout/
518 \end_layout
519
520 \end_inset
521
522  directories, along with the associated \SpecialChar LaTeX
523  document class and their description.
524 \end_layout
525
526 \begin_layout Labeling
527 \labelwidthstring 00.00.0000
528 \begin_inset Flex Code
529 status collapsed
530
531 \begin_layout Plain Layout
532 lyxmodules.lst
533 \end_layout
534
535 \end_inset
536
537  
538 \change_deleted 232239728 1604853518
539 t
540 \change_inserted 232239728 1604853518
541 T
542 \change_unchanged
543 he list of layout modules found in your 
544 \begin_inset Flex Code
545 status collapsed
546
547 \begin_layout Plain Layout
548 layout/
549 \end_layout
550
551 \end_inset
552
553  directories
554 \end_layout
555
556 \begin_layout Labeling
557 \labelwidthstring 00.00.0000
558 \begin_inset Flex Code
559 status open
560
561 \begin_layout Plain Layout
562 *files.lst
563 \end_layout
564
565 \end_inset
566
567  
568 \change_deleted 232239728 1604853523
569 l
570 \change_inserted 232239728 1604853523
571 L
572 \change_unchanged
573 ists of various sorts of \SpecialChar LaTeX
574 -related files found on your system
575 \end_layout
576
577 \begin_layout Labeling
578 \labelwidthstring 00.00.0000
579 \begin_inset Flex Code
580 status open
581
582 \begin_layout Plain Layout
583 doc/\SpecialChar LaTeX
584 Config.lyx
585 \end_layout
586
587 \end_inset
588
589  is automatically generated during configuration from the file 
590 \begin_inset Flex Code
591 status collapsed
592
593 \begin_layout Plain Layout
594 \SpecialChar LaTeX
595 Config.lyx.in
596 \end_layout
597
598 \end_inset
599
600 .
601  It contains information on your \SpecialChar LaTeX
602  configuration.
603 \end_layout
604
605 \begin_layout Subsection
606 Directories
607 \end_layout
608
609 \begin_layout Standard
610 The
611 \change_deleted 5863208 1604928729
612 se
613 \change_unchanged
614  
615 \change_inserted 5863208 1604928636
616 following 
617 \change_unchanged
618 directories 
619 \change_inserted 5863208 1604928661
620 in 
621 \change_unchanged
622
623 \begin_inset Flex Code
624 status collapsed
625
626 \begin_layout Plain Layout
627 LyXDir
628 \end_layout
629
630 \end_inset
631
632
633 \change_inserted 5863208 1604928662
634  can be
635 \change_deleted 5863208 1604928642
636 are
637 \change_unchanged
638  duplicated 
639 \change_deleted 5863208 1604928669
640 between 
641 \begin_inset Flex Code
642 status collapsed
643
644 \begin_layout Plain Layout
645 LyXDir
646 \end_layout
647
648 \end_inset
649
650  and
651 \change_inserted 5863208 1604928680
652 in
653 \change_unchanged
654  
655 \begin_inset Flex Code
656 status collapsed
657
658 \begin_layout Plain Layout
659 UserDir
660 \end_layout
661
662 \end_inset
663
664 .
665  If a particular file
666 \change_deleted 232239728 1604794430
667 s
668 \change_unchanged
669  exists in both places, the one in 
670 \begin_inset Flex Code
671 status collapsed
672
673 \begin_layout Plain Layout
674 UserDir
675 \end_layout
676
677 \end_inset
678
679  will be used.
680 \end_layout
681
682 \begin_layout Labeling
683 \labelwidthstring 00.00.0000
684 \begin_inset Flex Code
685 status collapsed
686
687 \begin_layout Plain Layout
688 bind/
689 \end_layout
690
691 \end_inset
692
693  
694 \change_deleted 232239728 1604794460
695 t
696 \change_inserted 232239728 1604794460
697 T
698 \change_unchanged
699 his directory contains files with the extension 
700 \begin_inset Flex Code
701 status collapsed
702
703 \begin_layout Plain Layout
704 .bind
705 \end_layout
706
707 \end_inset
708
709  that define the keybindings used in \SpecialChar LyX
710 .
711  If there exists an internationalized version of the bind file named 
712 \begin_inset Flex Code
713 status collapsed
714
715 \begin_layout Plain Layout
716 $LANG_xxx.bind
717 \end_layout
718
719 \end_inset
720
721 , that will be used first.
722 \end_layout
723
724 \begin_layout Labeling
725 \labelwidthstring 00.00.0000
726 \begin_inset Flex Code
727 status collapsed
728
729 \begin_layout Plain Layout
730 citeengines/
731 \end_layout
732
733 \end_inset
734
735  
736 \change_deleted 232239728 1604794478
737 c
738 \change_inserted 232239728 1604794478
739 C
740 \change_unchanged
741 ontains files with the extension 
742 \begin_inset Flex Code
743 status collapsed
744
745 \begin_layout Plain Layout
746 .citeengine
747 \end_layout
748
749 \end_inset
750
751  which define the diverse citation possibilities (natbib, biblatex etc.).
752  See 
753 \begin_inset CommandInset ref
754 LatexCommand ref
755 reference "subsec:Cite-Engine-Files"
756 plural "false"
757 caps "false"
758 noprefix "false"
759
760 \end_inset
761
762  for details.
763 \end_layout
764
765 \begin_layout Labeling
766 \labelwidthstring 00.00.0000
767 \begin_inset Flex Code
768 status collapsed
769
770 \begin_layout Plain Layout
771 clipart/
772 \end_layout
773
774 \end_inset
775
776  
777 \change_deleted 232239728 1604794483
778 c
779 \change_inserted 232239728 1604794486
780 C
781 \change_unchanged
782 ontains graphics files that can be included in documents.
783  
784 \end_layout
785
786 \begin_layout Labeling
787 \labelwidthstring 00.00.0000
788 \begin_inset Flex Code
789 status collapsed
790
791 \begin_layout Plain Layout
792 doc/
793 \end_layout
794
795 \end_inset
796
797  
798 \change_deleted 232239728 1604794492
799 c
800 \change_inserted 232239728 1604794492
801 C
802 \change_unchanged
803 ontains \SpecialChar LyX
804  documentation files (including the one you are currently reading).
805  The file 
806 \begin_inset Flex Code
807 status collapsed
808
809 \begin_layout Plain Layout
810
811 \change_deleted 232239728 1604794660
812 \SpecialChar LaTeX
813
814 \change_inserted 232239728 1604794661
815 LaTex
816 \change_unchanged
817 Config.lyx
818 \end_layout
819
820 \end_inset
821
822  deserves special attention, as noted above.
823  The internationalized help docs are in subdirectories 
824 \begin_inset Flex Code
825 status collapsed
826
827 \begin_layout Plain Layout
828 doc/xx
829 \end_layout
830
831 \end_inset
832
833  where 
834 \begin_inset Quotes eld
835 \end_inset
836
837 xx
838 \begin_inset Quotes erd
839 \end_inset
840
841  is the ISO language code.
842  See 
843 \begin_inset CommandInset ref
844 LatexCommand ref
845 reference "cha:Internationalizing-LyX"
846
847 \end_inset
848
849  for details.
850 \end_layout
851
852 \begin_layout Labeling
853 \labelwidthstring 00.00.0000
854 \begin_inset Flex Code
855 status collapsed
856
857 \begin_layout Plain Layout
858 examples/
859 \end_layout
860
861 \end_inset
862
863  
864 \change_deleted 232239728 1604794497
865 c
866 \change_inserted 232239728 1604794497
867 C
868 \change_unchanged
869 ontains example files that explain how to use some features.
870  In the file browser, press the 
871 \begin_inset Flex Noun
872 status collapsed
873
874 \begin_layout Plain Layout
875 Examples
876 \end_layout
877
878 \end_inset
879
880  button to get there.
881 \end_layout
882
883 \begin_layout Labeling
884 \labelwidthstring 00.00.0000
885 \begin_inset Flex Code
886 status collapsed
887
888 \begin_layout Plain Layout
889 images/
890 \end_layout
891
892 \end_inset
893
894  
895 \change_deleted 232239728 1604794500
896 c
897 \change_inserted 232239728 1604794500
898 C
899 \change_unchanged
900 ontains image files that are used by the 
901 \begin_inset Flex Noun
902 status collapsed
903
904 \begin_layout Plain Layout
905 Document
906 \end_layout
907
908 \end_inset
909
910  dialog.
911  In addition, it also contains the individual icons used in the toolbar
912  and the banners that can be shown when \SpecialChar LyX
913  is launched.
914 \end_layout
915
916 \begin_layout Labeling
917 \labelwidthstring 00.00.0000
918 \begin_inset Flex Code
919 status collapsed
920
921 \begin_layout Plain Layout
922 kbd/
923 \end_layout
924
925 \end_inset
926
927  
928 \change_deleted 232239728 1604794505
929 c
930 \change_inserted 232239728 1604794505
931 C
932 \change_unchanged
933 ontains keyboard keymapping files.
934  See 
935 \begin_inset CommandInset ref
936 LatexCommand ref
937 reference "sec:International-Keymap-Stuff"
938
939 \end_inset
940
941  for details.
942 \end_layout
943
944 \begin_layout Labeling
945 \labelwidthstring 00.00.0000
946 \begin_inset Flex Code
947 status collapsed
948
949 \begin_layout Plain Layout
950 layouts/
951 \end_layout
952
953 \end_inset
954
955  
956 \change_deleted 232239728 1604794508
957 c
958 \change_inserted 232239728 1604794508
959 C
960 \change_unchanged
961 ontains the text class and module files described in 
962 \begin_inset CommandInset ref
963 LatexCommand ref
964 reference "cha:Installing-New-Document"
965
966 \end_inset
967
968 .
969 \end_layout
970
971 \begin_layout Labeling
972 \labelwidthstring 00.00.0000
973 \begin_inset Flex Code
974 status collapsed
975
976 \begin_layout Plain Layout
977 lyx2lyx
978 \end_layout
979
980 \end_inset
981
982  
983 \change_deleted 232239728 1604794513
984 c
985 \change_inserted 232239728 1604794513
986 C
987 \change_unchanged
988 ontains the 
989 \begin_inset Flex Code
990 status collapsed
991
992 \begin_layout Plain Layout
993 lyx2lyx
994 \end_layout
995
996 \end_inset
997
998  Python scripts used to convert between \SpecialChar LyX
999  versions.
1000  These can be run from the command line if
1001 \change_deleted 232239728 1604794749
1002 , say,
1003 \change_unchanged
1004  you want to batch-convert files.
1005 \end_layout
1006
1007 \begin_layout Labeling
1008 \labelwidthstring 00.00.0000
1009 \begin_inset Flex Code
1010 status collapsed
1011
1012 \begin_layout Plain Layout
1013 scripts/
1014 \end_layout
1015
1016 \end_inset
1017
1018  
1019 \change_deleted 232239728 1604794516
1020 c
1021 \change_inserted 232239728 1604794516
1022 C
1023 \change_unchanged
1024 ontains some files that demonstrate the capabilities of the 
1025 \begin_inset Flex Noun
1026 status collapsed
1027
1028 \begin_layout Plain Layout
1029 External
1030 \begin_inset space ~
1031 \end_inset
1032
1033 Template
1034 \end_layout
1035
1036 \end_inset
1037
1038  feature.
1039  Also contains some scripts used by \SpecialChar LyX
1040  itself.
1041 \end_layout
1042
1043 \begin_layout Labeling
1044 \labelwidthstring 00.00.0000
1045 \begin_inset Flex Code
1046 status collapsed
1047
1048 \begin_layout Plain Layout
1049 templates/
1050 \end_layout
1051
1052 \end_inset
1053
1054  
1055 \change_deleted 232239728 1604794520
1056 c
1057 \change_inserted 232239728 1604794520
1058 C
1059 \change_unchanged
1060 ontains the standard \SpecialChar LyX
1061  template files described in 
1062 \begin_inset CommandInset ref
1063 LatexCommand ref
1064 reference "subsec:Creating-Templates"
1065
1066 \end_inset
1067
1068 .
1069 \end_layout
1070
1071 \begin_layout Labeling
1072 \labelwidthstring 00.00.0000
1073 \begin_inset Flex Code
1074 status collapsed
1075
1076 \begin_layout Plain Layout
1077 ui/
1078 \end_layout
1079
1080 \end_inset
1081
1082  
1083 \change_deleted 232239728 1604794524
1084 c
1085 \change_inserted 232239728 1604794524
1086 C
1087 \change_unchanged
1088 ontains files with the extension 
1089 \begin_inset Flex Code
1090 status collapsed
1091
1092 \begin_layout Plain Layout
1093 .ui
1094 \end_layout
1095
1096 \end_inset
1097
1098  that define the user interface to \SpecialChar LyX
1099 .
1100  That is, the files define which items appear in which menus and the items
1101  appearing on the toolbar.
1102 \end_layout
1103
1104 \begin_layout Labeling
1105 \labelwidthstring 00.00.0000
1106 \begin_inset Flex Code
1107 status collapsed
1108
1109 \begin_layout Plain Layout
1110 xtemplates/
1111 \end_layout
1112
1113 \end_inset
1114
1115  
1116 \change_deleted 232239728 1604794528
1117 c
1118 \change_inserted 232239728 1604794528
1119 C
1120 \change_unchanged
1121 ontains files with the extension 
1122 \begin_inset Flex Code
1123 status collapsed
1124
1125 \begin_layout Plain Layout
1126 .xtemplate
1127 \end_layout
1128
1129 \end_inset
1130
1131  which define the templates for the insertion of external material to a
1132  \SpecialChar LyX
1133  document; see 
1134 \begin_inset CommandInset ref
1135 LatexCommand ref
1136 reference "chap:Including-External-Material"
1137
1138 \end_inset
1139
1140 .
1141 \end_layout
1142
1143 \begin_layout Subsection
1144 Files you don't want to modify
1145 \end_layout
1146
1147 \begin_layout Standard
1148 These files are used internally by \SpecialChar LyX
1149  and you generally do not need to modify
1150  them unless you are a developer.
1151 \end_layout
1152
1153 \begin_layout Labeling
1154 \labelwidthstring 00.00.0000
1155 \begin_inset Flex Code
1156 status collapsed
1157
1158 \begin_layout Plain Layout
1159 CREDITS
1160 \end_layout
1161
1162 \end_inset
1163
1164  
1165 \change_deleted 232239728 1604797616
1166 t
1167 \change_inserted 232239728 1604797616
1168 T
1169 \change_unchanged
1170 his file contains the list of \SpecialChar LyX
1171  developers.
1172  The contents are displayed with the menu entry 
1173 \begin_inset Flex Noun
1174 status collapsed
1175
1176 \begin_layout Plain Layout
1177 Help\SpecialChar menuseparator
1178 About
1179 \begin_inset space ~
1180 \end_inset
1181
1182 LyX
1183 \end_layout
1184
1185 \end_inset
1186
1187 .
1188 \end_layout
1189
1190 \begin_layout Labeling
1191 \labelwidthstring 00.00.0000
1192 \begin_inset Flex Code
1193 status collapsed
1194
1195 \begin_layout Plain Layout
1196 chkconfig.ltx
1197 \end_layout
1198
1199 \end_inset
1200
1201  
1202 \change_deleted 232239728 1604797620
1203 t
1204 \change_inserted 232239728 1604797620
1205 T
1206 \change_unchanged
1207 his is a \SpecialChar LaTeX
1208  script used during the configuration process.
1209  Do not run directly.
1210 \end_layout
1211
1212 \begin_layout Labeling
1213 \labelwidthstring 00.00.0000
1214 \begin_inset Flex Code
1215 status collapsed
1216
1217 \begin_layout Plain Layout
1218 configure.py
1219 \end_layout
1220
1221 \end_inset
1222
1223  
1224 \change_deleted 232239728 1604797624
1225 t
1226 \change_inserted 232239728 1604797624
1227 T
1228 \change_unchanged
1229 his is a Python script that is used to re-configure \SpecialChar LyX
1230 .
1231  It creates configuration files in the directory it was run from.
1232 \end_layout
1233
1234 \begin_layout Subsection
1235 Other files needing a line or two
1236 \end_layout
1237
1238 \begin_layout Labeling
1239 \labelwidthstring 00.00.0000
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 encodings
1245 \end_layout
1246
1247 \end_inset
1248
1249  
1250 \change_deleted 232239728 1604797580
1251 t
1252 \change_inserted 232239728 1604797580
1253 T
1254 \change_unchanged
1255 his contains tables describing how different character encodings can be
1256  mapped to Unicode
1257 \end_layout
1258
1259 \begin_layout Labeling
1260 \labelwidthstring 00.00.0000
1261 \begin_inset Flex Code
1262 status collapsed
1263
1264 \begin_layout Plain Layout
1265 languages
1266 \end_layout
1267
1268 \end_inset
1269
1270  
1271 \change_deleted 232239728 1604797584
1272 t
1273 \change_inserted 232239728 1604797584
1274 T
1275 \change_unchanged
1276 his file contains a list of all the languages currently supported by \SpecialChar LyX
1277 .
1278 \end_layout
1279
1280 \begin_layout Labeling
1281 \labelwidthstring 00.00.0000
1282 \begin_inset Flex Code
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 latexfonts
1287 \end_layout
1288
1289 \end_inset
1290
1291  
1292 \change_deleted 232239728 1604797587
1293 c
1294 \change_inserted 232239728 1604797587
1295 C
1296 \change_unchanged
1297 ontains information about the supported fonts.
1298 \end_layout
1299
1300 \begin_layout Labeling
1301 \labelwidthstring 00.00.0000
1302 \begin_inset Flex Code
1303 status collapsed
1304
1305 \begin_layout Plain Layout
1306 layouttranslations
1307 \end_layout
1308
1309 \end_inset
1310
1311  
1312 \change_deleted 232239728 1604797591
1313 t
1314 \change_inserted 232239728 1604797591
1315 T
1316 \change_unchanged
1317 his file contains translations for internationalized paragraph styles (see
1318  
1319 \begin_inset CommandInset ref
1320 LatexCommand ref
1321 reference "subsec:I18n"
1322
1323 \end_inset
1324
1325 ).
1326 \end_layout
1327
1328 \begin_layout Labeling
1329 \labelwidthstring 00.00.0000
1330 \begin_inset Flex Code
1331 status collapsed
1332
1333 \begin_layout Plain Layout
1334 unicodesymbols
1335 \end_layout
1336
1337 \end_inset
1338
1339  
1340 \change_deleted 232239728 1604797594
1341 t
1342 \change_inserted 232239728 1604797594
1343 T
1344 \change_unchanged
1345 his file contains information about Unicode-encoded glyphs and the way they
1346  are supported by \SpecialChar LyX
1347  via \SpecialChar LaTeX
1348 .
1349 \end_layout
1350
1351 \begin_layout Section
1352 Your local configuration directory
1353 \end_layout
1354
1355 \begin_layout Standard
1356 Even if you are using \SpecialChar LyX
1357  as an unprivileged user, you might want to change
1358  \SpecialChar LyX
1359  configuration for your own use.
1360  The 
1361 \begin_inset Flex Code
1362 status collapsed
1363
1364 \begin_layout Plain Layout
1365 UserDir
1366 \end_layout
1367
1368 \end_inset
1369
1370  directory contains all your personal configuration files.
1371  This is the directory described as 
1372 \begin_inset Quotes eld
1373 \end_inset
1374
1375 user directory
1376 \begin_inset Quotes erd
1377 \end_inset
1378
1379  in 
1380 \begin_inset Flex Noun
1381 status collapsed
1382
1383 \begin_layout Plain Layout
1384 Help\SpecialChar menuseparator
1385 About
1386 \begin_inset space ~
1387 \end_inset
1388
1389 LyX
1390 \end_layout
1391
1392 \end_inset
1393
1394 .
1395  This directory is used as a mirror of 
1396 \begin_inset Flex Code
1397 status collapsed
1398
1399 \begin_layout Plain Layout
1400 LyXDir
1401 \end_layout
1402
1403 \end_inset
1404
1405 , which means that every file in 
1406 \begin_inset Flex Code
1407 status collapsed
1408
1409 \begin_layout Plain Layout
1410 UserDir
1411 \end_layout
1412
1413 \end_inset
1414
1415  is a replacement for the corresponding file in 
1416 \begin_inset Flex Code
1417 status collapsed
1418
1419 \begin_layout Plain Layout
1420 LyXDir
1421 \end_layout
1422
1423 \end_inset
1424
1425 .
1426  Any configuration file described in the above sections can be placed either
1427  in the system-wide directory, in which case it will affect all users, or
1428  in your local directory for your own use.
1429 \end_layout
1430
1431 \begin_layout Standard
1432 To make things clearer, let's provide a few examples:
1433 \end_layout
1434
1435 \begin_layout Itemize
1436 The preferences set in the 
1437 \begin_inset Flex Noun
1438 status collapsed
1439
1440 \begin_layout Plain Layout
1441 Tools\SpecialChar menuseparator
1442 Preferences
1443 \end_layout
1444
1445 \end_inset
1446
1447  dialog are saved to a file 
1448 \begin_inset Flex Code
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452 preferences
1453 \end_layout
1454
1455 \end_inset
1456
1457  in 
1458 \begin_inset Flex Code
1459 status collapsed
1460
1461 \begin_layout Plain Layout
1462 UserDir
1463 \end_layout
1464
1465 \end_inset
1466
1467 .
1468 \end_layout
1469
1470 \begin_layout Itemize
1471 When you reconfigure using 
1472 \begin_inset Flex Noun
1473 status collapsed
1474
1475 \begin_layout Plain Layout
1476 Tools\SpecialChar menuseparator
1477 Reconfigure
1478 \end_layout
1479
1480 \end_inset
1481
1482 , \SpecialChar LyX
1483  runs the 
1484 \begin_inset Flex Code
1485 status collapsed
1486
1487 \begin_layout Plain Layout
1488 configure.py
1489 \end_layout
1490
1491 \end_inset
1492
1493  script, and the resulting files are written in your local configuration
1494  directory.
1495  This means that any additional text class file that you might have added
1496  in 
1497 \begin_inset Flex Code
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 UserDir/layouts
1502 \end_layout
1503
1504 \end_inset
1505
1506  will be added to the list of classes in the 
1507 \begin_inset Flex Noun
1508 status collapsed
1509
1510 \begin_layout Plain Layout
1511 Document\SpecialChar menuseparator
1512 Settings
1513 \end_layout
1514
1515 \end_inset
1516
1517  dialog.
1518 \end_layout
1519
1520 \begin_layout Itemize
1521 If you get some updated documentation from
1522 \change_inserted 232239728 1604798171
1523  a
1524 \change_unchanged
1525  \SpecialChar LyX
1526  ftp site and cannot install it because you do not have sysadmin rights
1527  on your system, you can just copy the files 
1528 \change_deleted 232239728 1604798193
1529 in
1530 \change_inserted 232239728 1604798193
1531 to
1532 \change_unchanged
1533  
1534 \begin_inset Flex Code
1535 status collapsed
1536
1537 \begin_layout Plain Layout
1538 UserDir/doc/
1539 \end_layout
1540
1541 \end_inset
1542
1543  and the items in the 
1544 \begin_inset Flex Noun
1545 status collapsed
1546
1547 \begin_layout Plain Layout
1548 Help
1549 \end_layout
1550
1551 \end_inset
1552
1553  menu will open them!
1554 \end_layout
1555
1556 \begin_layout Section
1557 Running \SpecialChar LyX
1558  with multiple configurations
1559 \end_layout
1560
1561 \begin_layout Standard
1562 The configuration freedom of the local configuration directory may not suffice
1563  if you want to have more than one configuration at your disposal.
1564  For example, you may want to 
1565 \change_deleted 232239728 1604798238
1566 be 
1567 \change_unchanged
1568 use different key bindings or printer settings at different times.
1569  You can achieve this by having several such directories.
1570  You then specify which directory to use at run-time.
1571 \end_layout
1572
1573 \begin_layout Standard
1574 Invoking \SpecialChar LyX
1575  with the command line switch 
1576 \begin_inset Flex Code
1577 status collapsed
1578
1579 \begin_layout Plain Layout
1580 -userdir
1581 \end_layout
1582
1583 \end_inset
1584
1585  
1586 \emph on
1587 <some directory>
1588 \emph default
1589  instructs the program to read the configuration from that directory, and
1590  not from the default directory.
1591  (You can determine the default directory by running \SpecialChar LyX
1592  without the 
1593 \begin_inset Flex Code
1594 status collapsed
1595
1596 \begin_layout Plain Layout
1597 -userdir
1598 \end_layout
1599
1600 \end_inset
1601
1602  switch.) If the specified directory does not exist, \SpecialChar LyX
1603  offers to create it
1604  for you, just like it does for the default directory 
1605 \change_deleted 232239728 1604798318
1606 on
1607 \change_unchanged
1608  the first time you run the program.
1609  You can modify the configuration options in this additional user directory
1610  exactly as you would for the default directory.
1611  These directories are completely independent (but read on).
1612  Note that setting the environment variable 
1613 \begin_inset Flex Code
1614 status collapsed
1615
1616 \begin_layout Plain Layout
1617 LYX_USERDIR_24x
1618 \end_layout
1619
1620 \end_inset
1621
1622  to some value has exactly the same effect.
1623 \end_layout
1624
1625 \begin_layout Standard
1626 Having several configurations also requires more maintenance: if you want
1627  to add a new layout to 
1628 \begin_inset Flex Code
1629 status collapsed
1630
1631 \begin_layout Plain Layout
1632 NewUserDir/layouts
1633 \end_layout
1634
1635 \end_inset
1636
1637  which you want available from all your configurations, you must add it
1638  to each directory separately.
1639  You can avoid this with the following trick: after \SpecialChar LyX
1640  creates the additional
1641  directory, most of the subdirectories (see above) are empty.
1642  If you want the new configuration to mirror an existing one, replace the
1643  empty subdirectory with a symbolic link to the matching subdirectory in
1644  the existing configuration.
1645  Take care with the 
1646 \begin_inset Flex Code
1647 status collapsed
1648
1649 \begin_layout Plain Layout
1650 doc/
1651 \end_layout
1652
1653 \end_inset
1654
1655  subdirectory, however, since it contains a file written by the configuration
1656  script (also accessible through 
1657 \begin_inset Flex Noun
1658 status collapsed
1659
1660 \begin_layout Plain Layout
1661 Tools\SpecialChar menuseparator
1662 Reconfigure
1663 \end_layout
1664
1665 \end_inset
1666
1667 ) which is configuration
1668 \change_deleted 232239728 1604798083
1669 -
1670 \change_inserted 232239728 1604798100
1671  
1672 \change_unchanged
1673 specific.
1674 \end_layout
1675
1676 \begin_layout Chapter
1677 The Preferences dialog
1678 \end_layout
1679
1680 \begin_layout Standard
1681 All options of the preferences dialog are described in the Appendix 
1682 \emph on
1683 The Preferences Dialog
1684 \emph default
1685  in the 
1686 \emph on
1687 User's Guide
1688 \emph default
1689 .
1690  For some options you might find here more details.
1691 \end_layout
1692
1693 \begin_layout Section
1694 Formats
1695 \begin_inset CommandInset label
1696 LatexCommand label
1697 name "sec:Formats"
1698
1699 \end_inset
1700
1701
1702 \end_layout
1703
1704 \begin_layout Standard
1705 The first step is to define your file formats if they are not already defined.
1706  To do so, open the 
1707 \begin_inset Flex Noun
1708 status collapsed
1709
1710 \begin_layout Plain Layout
1711 Tools\SpecialChar menuseparator
1712 Preferences
1713 \end_layout
1714
1715 \end_inset
1716
1717  dialog.
1718  Under 
1719 \begin_inset Flex Noun
1720 status collapsed
1721
1722 \begin_layout Plain Layout
1723 File Handling\SpecialChar menuseparator
1724 File formats
1725 \end_layout
1726
1727 \end_inset
1728
1729  press the 
1730 \begin_inset Flex Noun
1731 status collapsed
1732
1733 \begin_layout Plain Layout
1734 New
1735 \end_layout
1736
1737 \end_inset
1738
1739  button to define your new format.
1740  The 
1741 \begin_inset Flex Noun
1742 status collapsed
1743
1744 \begin_layout Plain Layout
1745 Format
1746 \end_layout
1747
1748 \end_inset
1749
1750  field contains the name used to identify the format in the GUI.
1751  The 
1752 \begin_inset Flex Noun
1753 status collapsed
1754
1755 \begin_layout Plain Layout
1756 Short Name
1757 \end_layout
1758
1759 \end_inset
1760
1761  is used to identify the format internally.
1762  You will also need to enter a file extension.
1763  These are all required.
1764  The optional 
1765 \begin_inset Flex Noun
1766 status collapsed
1767
1768 \begin_layout Plain Layout
1769 Shortcut
1770 \end_layout
1771
1772 \end_inset
1773
1774  field is used to provide a keyboard shortcut on the menus.
1775  (For example, pressing 
1776 \begin_inset Flex Noun
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 Ctrl+D
1781 \end_layout
1782
1783 \end_inset
1784
1785  will 
1786 \begin_inset Flex Noun
1787 status collapsed
1788
1789 \begin_layout Plain Layout
1790 Document\SpecialChar menuseparator
1791 View (Other Formats)\SpecialChar menuseparator
1792 DVI
1793 \end_layout
1794
1795 \end_inset
1796
1797 .) 
1798 \end_layout
1799
1800 \begin_layout Standard
1801 A Format can have a 
1802 \begin_inset Flex Noun
1803 status collapsed
1804
1805 \begin_layout Plain Layout
1806 Viewer
1807 \end_layout
1808
1809 \end_inset
1810
1811  and an 
1812 \begin_inset Flex Noun
1813 status collapsed
1814
1815 \begin_layout Plain Layout
1816 Editor
1817 \end_layout
1818
1819 \end_inset
1820
1821  associated with it.
1822  For example, you might want to use 
1823 \begin_inset Flex Noun
1824 status collapsed
1825
1826 \begin_layout Plain Layout
1827 Ghostview
1828 \end_layout
1829
1830 \end_inset
1831
1832  to view PostScript files.
1833  You can enter the command needed to start the program in the corresponding
1834  fields.
1835  In defining this command, you can use the four variables listed in the
1836  next section.
1837  The viewer is launched when you view an image in \SpecialChar LyX
1838  or use the 
1839 \begin_inset Flex Noun
1840 status collapsed
1841
1842 \begin_layout Plain Layout
1843 Document\SpecialChar menuseparator
1844 View
1845 \end_layout
1846
1847 \end_inset
1848
1849  menu.
1850  The editor is for example launched when you right-click on an image and
1851  choose 
1852 \begin_inset Flex Noun
1853 status collapsed
1854
1855 \begin_layout Plain Layout
1856 Edit externally
1857 \end_layout
1858
1859 \end_inset
1860
1861  in the appearing context menu.
1862 \end_layout
1863
1864 \begin_layout Standard
1865 The 
1866 \begin_inset Flex Noun
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 MIME
1871 \end_layout
1872
1873 \end_inset
1874
1875  type of a format is optional, but if it is specified, it must be unique
1876  across all formats.
1877  It is used to detect files of this format from the file contents.
1878  For some important file formats there is no MIME type officially registered
1879  with the 
1880 \begin_inset CommandInset href
1881 LatexCommand href
1882 name "IANA"
1883 target "http://www.iana.org/assignments/media-types/"
1884 literal "false"
1885
1886 \end_inset
1887
1888 .
1889  Therefore \SpecialChar LyX
1890  uses the extended list of MIME types as specified by 
1891 \begin_inset CommandInset href
1892 LatexCommand href
1893 name "freedesktop.org"
1894 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1895 literal "false"
1896
1897 \end_inset
1898
1899 .
1900 \end_layout
1901
1902 \begin_layout Standard
1903 The 
1904 \begin_inset Flex Noun
1905 status collapsed
1906
1907 \begin_layout Plain Layout
1908 Document format
1909 \end_layout
1910
1911 \end_inset
1912
1913  option tells \SpecialChar LyX
1914  that a format is suitable for document export.
1915  If this is set and if a suitable conversion route exists (see 
1916 \begin_inset CommandInset ref
1917 LatexCommand ref
1918 reference "sec:Converters"
1919
1920 \end_inset
1921
1922 ), the format will appear in the 
1923 \begin_inset Flex Noun
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927 File\SpecialChar menuseparator
1928 Export
1929 \end_layout
1930
1931 \end_inset
1932
1933  menu.
1934  The format will also appear in the 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document\SpecialChar menuseparator
1940 View
1941 \end_layout
1942
1943 \end_inset
1944
1945  menu if a viewer is specified for the format.
1946  Pure image formats, such as 
1947 \begin_inset Flex Code
1948 status collapsed
1949
1950 \begin_layout Plain Layout
1951 png
1952 \end_layout
1953
1954 \end_inset
1955
1956 , should not use this option.
1957  Formats that can both represent vector graphics and documents like 
1958 \begin_inset Flex Code
1959 status collapsed
1960
1961 \begin_layout Plain Layout
1962 pdf
1963 \end_layout
1964
1965 \end_inset
1966
1967  should use it.
1968 \end_layout
1969
1970 \begin_layout Standard
1971 The option 
1972 \begin_inset Flex Noun
1973 status collapsed
1974
1975 \begin_layout Plain Layout
1976 Vector graphics format
1977 \end_layout
1978
1979 \end_inset
1980
1981  tells \SpecialChar LyX
1982  that a format can contain vector graphics.
1983  This information is used to determine the target format of included graphics
1984  for 
1985 \begin_inset Flex Noun
1986 status collapsed
1987
1988 \begin_layout Plain Layout
1989 pdflatex
1990 \end_layout
1991
1992 \end_inset
1993
1994  export.
1995  Included graphics may need to be converted to either 
1996 \begin_inset Flex Noun
1997 status collapsed
1998
1999 \begin_layout Plain Layout
2000 pdf
2001 \end_layout
2002
2003 \end_inset
2004
2005
2006 \begin_inset Flex Noun
2007 status collapsed
2008
2009 \begin_layout Plain Layout
2010 png
2011 \end_layout
2012
2013 \end_inset
2014
2015 , or 
2016 \begin_inset Flex Noun
2017 status collapsed
2018
2019 \begin_layout Plain Layout
2020 jpg
2021 \end_layout
2022
2023 \end_inset
2024
2025 , since 
2026 \begin_inset Flex Noun
2027 status collapsed
2028
2029 \begin_layout Plain Layout
2030 pdflatex
2031 \end_layout
2032
2033 \end_inset
2034
2035  cannot handle other image formats.
2036  If an included graphic is not already in 
2037 \begin_inset Flex Noun
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 pdf
2042 \end_layout
2043
2044 \end_inset
2045
2046
2047 \begin_inset Flex Noun
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051 png
2052 \end_layout
2053
2054 \end_inset
2055
2056 , or 
2057 \begin_inset Flex Noun
2058 status collapsed
2059
2060 \begin_layout Plain Layout
2061 jpg
2062 \end_layout
2063
2064 \end_inset
2065
2066  format, it is converted to 
2067 \begin_inset Flex Noun
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071 pdf
2072 \end_layout
2073
2074 \end_inset
2075
2076  if the vector format option is set, and otherwise to 
2077 \begin_inset Flex Noun
2078 status collapsed
2079
2080 \begin_layout Plain Layout
2081 png
2082 \end_layout
2083
2084 \end_inset
2085
2086 .
2087 \end_layout
2088
2089 \begin_layout Section
2090 Copiers
2091 \end_layout
2092
2093 \begin_layout Standard
2094 Since all conversions from one format to another take place in \SpecialChar LyX
2095 's temporary
2096  directory, it is sometimes necessary to modify a file before copying it
2097  to the temporary directory in order that the conversion may be performed.
2098 \begin_inset Foot
2099 status collapsed
2100
2101 \begin_layout Plain Layout
2102 For example, the file may refer to other files—images, for example—using
2103  relative file names, and these may become invalid when the file is copied
2104  to the temporary directory.
2105 \end_layout
2106
2107 \end_inset
2108
2109  This is done by a Copier: It copies a file to (or from) the temporary directory
2110  and may modify it in the process.
2111 \end_layout
2112
2113 \begin_layout Standard
2114 The definitions of the copiers may use eight variables:
2115 \end_layout
2116
2117 \begin_layout Labeling
2118 \labelwidthstring 00.00.0000
2119 \begin_inset Flex Code
2120 status collapsed
2121
2122 \begin_layout Plain Layout
2123 $$s
2124 \end_layout
2125
2126 \end_inset
2127
2128  The \SpecialChar LyX
2129  system directory (e.
2130 \begin_inset space \thinspace{}
2131 \end_inset
2132
2133 g.
2134 \begin_inset space \space{}
2135 \end_inset
2136
2137
2138 \begin_inset Flex Noun
2139 status collapsed
2140
2141 \begin_layout Plain Layout
2142 /usr/share/lyx
2143 \end_layout
2144
2145 \end_inset
2146
2147 ).
2148 \end_layout
2149
2150 \begin_layout Labeling
2151 \labelwidthstring 00.00.0000
2152 \begin_inset Flex Code
2153 status collapsed
2154
2155 \begin_layout Plain Layout
2156 $$i
2157 \end_layout
2158
2159 \end_inset
2160
2161  The input file
2162 \end_layout
2163
2164 \begin_layout Labeling
2165 \labelwidthstring 00.00.0000
2166 \begin_inset Flex Code
2167 status collapsed
2168
2169 \begin_layout Plain Layout
2170 $$o
2171 \end_layout
2172
2173 \end_inset
2174
2175  The output file
2176 \end_layout
2177
2178 \begin_layout Labeling
2179 \labelwidthstring 00.00.0000
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 $$b
2185 \end_layout
2186
2187 \end_inset
2188
2189  The base name (without filename extension) in the \SpecialChar LyX
2190  temporary directory
2191 \end_layout
2192
2193 \begin_layout Labeling
2194 \labelwidthstring 00.00.0000
2195 \begin_inset Flex Code
2196 status collapsed
2197
2198 \begin_layout Plain Layout
2199 $$p
2200 \end_layout
2201
2202 \end_inset
2203
2204  The full directory path of the \SpecialChar LyX
2205  temporary directory
2206 \end_layout
2207
2208 \begin_layout Labeling
2209 \labelwidthstring 00.00.0000
2210 \begin_inset Flex Code
2211 status collapsed
2212
2213 \begin_layout Plain Layout
2214 $$r
2215 \end_layout
2216
2217 \end_inset
2218
2219  The full pathname to the original \SpecialChar LyX
2220  file being processed
2221 \end_layout
2222
2223 \begin_layout Labeling
2224 \labelwidthstring 00.00.0000
2225 \begin_inset Flex Code
2226 status collapsed
2227
2228 \begin_layout Plain Layout
2229 $$f
2230 \end_layout
2231
2232 \end_inset
2233
2234  The filename (without any directory path) of the \SpecialChar LyX
2235  file.
2236 \end_layout
2237
2238 \begin_layout Labeling
2239 \labelwidthstring 00.00.0000
2240 \begin_inset Flex Code
2241 status collapsed
2242
2243 \begin_layout Plain Layout
2244 $$l
2245 \end_layout
2246
2247 \end_inset
2248
2249  The `\SpecialChar LaTeX
2250  name'
2251 \end_layout
2252
2253 \begin_layout Standard
2254 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2255 's 
2256 \series bold
2257
2258 \backslash
2259 include
2260 \series default
2261  command.
2262  It is relevant only when exporting files suitable for such inclusion.
2263 \end_layout
2264
2265 \begin_layout Standard
2266 Copiers can be used to do almost anything with output files.
2267  For example, suppose you want generated pdf files to be copied to a special
2268  directory, 
2269 \begin_inset Flex Code
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273 /home/you/pdf/
2274 \end_layout
2275
2276 \end_inset
2277
2278 .
2279  Then you could write a shell script such as this one:
2280 \end_layout
2281
2282 \begin_layout Standard
2283 \begin_inset listings
2284 inline false
2285 status open
2286
2287 \begin_layout Plain Layout
2288
2289 #!/bin/bash
2290 \end_layout
2291
2292 \begin_layout Plain Layout
2293
2294 FROMFILE=$1
2295 \end_layout
2296
2297 \begin_layout Plain Layout
2298
2299 TOFILE=`basename $2`
2300 \end_layout
2301
2302 \begin_layout Plain Layout
2303
2304 cp $FROMFILE /home/you/pdf/$TOFILE
2305 \end_layout
2306
2307 \end_inset
2308
2309 Save it in your local \SpecialChar LyX
2310  directory—say, 
2311 \begin_inset Flex Code
2312 status collapsed
2313
2314 \begin_layout Plain Layout
2315 /home/you/.lyx/scripts/pdfcopier.sh
2316 \end_layout
2317
2318 \end_inset
2319
2320 —and make it executable, if you need to do so on your platform.
2321  Then, in the 
2322 \begin_inset Flex Noun
2323 status collapsed
2324
2325 \begin_layout Plain Layout
2326 Tools\SpecialChar menuseparator
2327 Preferences
2328 \end_layout
2329
2330 \end_inset
2331
2332  dialog, select under 
2333 \begin_inset Flex Noun
2334 status collapsed
2335
2336 \begin_layout Plain Layout
2337 File Handling\SpecialChar menuseparator
2338 File formats
2339 \end_layout
2340
2341 \end_inset
2342
2343  the 
2344 \begin_inset Flex Noun
2345 status collapsed
2346
2347 \begin_layout Plain Layout
2348 PDF(pdflatex)
2349 \end_layout
2350
2351 \end_inset
2352
2353  format—or one of the other pdf formats—and enter 
2354 \begin_inset Flex Code
2355 status collapsed
2356
2357 \begin_layout Plain Layout
2358 pdfcopier.sh $$i $$o
2359 \end_layout
2360
2361 \end_inset
2362
2363  into the 
2364 \begin_inset Flex Noun
2365 status collapsed
2366
2367 \begin_layout Plain Layout
2368 Copier
2369 \end_layout
2370
2371 \end_inset
2372
2373  field.
2374  
2375 \end_layout
2376
2377 \begin_layout Standard
2378 Copiers are used by \SpecialChar LyX
2379  in various of its own conversions.
2380  For example, if appropriate programs are found, \SpecialChar LyX
2381  will automatically install
2382  copiers for the 
2383 \begin_inset Flex Noun
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 HTML
2388 \end_layout
2389
2390 \end_inset
2391
2392  and 
2393 \begin_inset Flex Noun
2394 status collapsed
2395
2396 \begin_layout Plain Layout
2397 HTML
2398 \begin_inset space ~
2399 \end_inset
2400
2401 (MS Word)
2402 \end_layout
2403
2404 \end_inset
2405
2406  formats.
2407  When these formats are exported, the copier sees that not just the main
2408  HTML file but various associated files (style files, images, etc.) are also
2409  copied.
2410  All these files are written to a subdirectory of the directory in which
2411  the original \SpecialChar LyX
2412  file was found.
2413 \begin_inset Foot
2414 status collapsed
2415
2416 \begin_layout Plain Layout
2417 This copier can be customized.
2418  The optional 
2419 \begin_inset Quotes eld
2420 \end_inset
2421
2422 -e
2423 \begin_inset Quotes erd
2424 \end_inset
2425
2426  argument takes a comma-separated list of extensions to be copied; if it
2427  is omitted, all files will be copied.
2428  The 
2429 \begin_inset Quotes eld
2430 \end_inset
2431
2432 -t
2433 \begin_inset Quotes erd
2434 \end_inset
2435
2436  argument determines the extension added to the generated directory.
2437  By default, it is 
2438 \begin_inset Quotes eld
2439 \end_inset
2440
2441
2442 \begin_inset Flex Noun
2443 status collapsed
2444
2445 \begin_layout Plain Layout
2446 LyXconv
2447 \end_layout
2448
2449 \end_inset
2450
2451
2452 \begin_inset Quotes erd
2453 \end_inset
2454
2455 , so HTML generated from 
2456 \begin_inset Flex Noun
2457 status collapsed
2458
2459 \begin_layout Plain Layout
2460 /path/to/filename.lyx
2461 \end_layout
2462
2463 \end_inset
2464
2465  will end up in 
2466 \begin_inset Flex Noun
2467 status collapsed
2468
2469 \begin_layout Plain Layout
2470 /path/to/filename.html.LyXconv
2471 \end_layout
2472
2473 \end_inset
2474
2475 .
2476  
2477 \end_layout
2478
2479 \end_inset
2480
2481
2482 \end_layout
2483
2484 \begin_layout Section
2485 Converters
2486 \begin_inset CommandInset label
2487 LatexCommand label
2488 name "sec:Converters"
2489
2490 \end_inset
2491
2492
2493 \end_layout
2494
2495 \begin_layout Standard
2496 You can define your own Converters to convert files between different formats.
2497  This is done in the 
2498 \begin_inset Flex Noun
2499 status collapsed
2500
2501 \begin_layout Plain Layout
2502 Tools\SpecialChar menuseparator
2503 Preferences\SpecialChar menuseparator
2504 File Handling\SpecialChar menuseparator
2505 Converters
2506 \end_layout
2507
2508 \end_inset
2509
2510  dialog.
2511 \end_layout
2512
2513 \begin_layout Standard
2514 To define a new converter, select the 
2515 \begin_inset Flex Noun
2516 status collapsed
2517
2518 \begin_layout Plain Layout
2519 From
2520 \begin_inset space ~
2521 \end_inset
2522
2523 format
2524 \end_layout
2525
2526 \end_inset
2527
2528  and 
2529 \begin_inset Flex Noun
2530 status collapsed
2531
2532 \begin_layout Plain Layout
2533 To
2534 \begin_inset space ~
2535 \end_inset
2536
2537 format
2538 \end_layout
2539
2540 \end_inset
2541
2542  from the drop-down lists, enter the command needed for the conversion,
2543  and then press the 
2544 \begin_inset Flex Noun
2545 status collapsed
2546
2547 \begin_layout Plain Layout
2548 Add
2549 \end_layout
2550
2551 \end_inset
2552
2553  button.
2554  Several variables can be used in the definition of converters:
2555 \end_layout
2556
2557 \begin_layout Labeling
2558 \labelwidthstring 00.00.0000
2559 \begin_inset Flex Code
2560 status collapsed
2561
2562 \begin_layout Plain Layout
2563 $$s
2564 \end_layout
2565
2566 \end_inset
2567
2568  The \SpecialChar LyX
2569  system directory
2570 \end_layout
2571
2572 \begin_layout Labeling
2573 \labelwidthstring 00.00.0000
2574 \begin_inset Flex Code
2575 status collapsed
2576
2577 \begin_layout Plain Layout
2578 $$i
2579 \end_layout
2580
2581 \end_inset
2582
2583  The input file
2584 \end_layout
2585
2586 \begin_layout Labeling
2587 \labelwidthstring 00.00.0000
2588 \begin_inset Flex Code
2589 status collapsed
2590
2591 \begin_layout Plain Layout
2592 $$o
2593 \end_layout
2594
2595 \end_inset
2596
2597  The output file
2598 \end_layout
2599
2600 \begin_layout Labeling
2601 \labelwidthstring 00.00.0000
2602 \begin_inset Flex Code
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 $$b
2607 \end_layout
2608
2609 \end_inset
2610
2611  The base filename of the input file (i.
2612 \begin_inset space \thinspace{}
2613 \end_inset
2614
2615 g., without the extension)
2616 \end_layout
2617
2618 \begin_layout Labeling
2619 \labelwidthstring 00.00.0000
2620 \begin_inset Flex Code
2621 status collapsed
2622
2623 \begin_layout Plain Layout
2624 $$p
2625 \end_layout
2626
2627 \end_inset
2628
2629  The path to the input file
2630 \end_layout
2631
2632 \begin_layout Labeling
2633 \labelwidthstring 00.00.0000
2634 \begin_inset Flex Code
2635 status collapsed
2636
2637 \begin_layout Plain Layout
2638 $$r
2639 \end_layout
2640
2641 \end_inset
2642
2643  The path to the original input file (this is different from $$p when a
2644  chain of converters is called)
2645 \end_layout
2646
2647 \begin_layout Labeling
2648 \labelwidthstring 00.00.0000
2649 \begin_inset Flex Code
2650 status collapsed
2651
2652 \begin_layout Plain Layout
2653 $$e
2654 \end_layout
2655
2656 \end_inset
2657
2658  The iconv name for the encoding of the document.
2659 \end_layout
2660
2661 \begin_layout Standard
2662 In the 
2663 \begin_inset Flex Noun
2664 status collapsed
2665
2666 \begin_layout Plain Layout
2667 Extra
2668 \begin_inset space ~
2669 \end_inset
2670
2671 Flag
2672 \end_layout
2673
2674 \end_inset
2675
2676  field you can enter the following flags, separated by commas:
2677 \end_layout
2678
2679 \begin_layout Labeling
2680 \labelwidthstring 00.00.0000
2681 \begin_inset Flex Code
2682 status collapsed
2683
2684 \begin_layout Plain Layout
2685 latex
2686 \change_inserted -712698321 1524656940
2687 =flavor
2688 \change_unchanged
2689
2690 \end_layout
2691
2692 \end_inset
2693
2694  This converter runs some form of \SpecialChar LaTeX
2695 .
2696  This will make \SpecialChar LyX
2697 's \SpecialChar LaTeX
2698  error logs available.
2699
2700 \change_inserted -712698321 1524657018
2701  The optional 
2702 \begin_inset Flex Code
2703 status open
2704
2705 \begin_layout Plain Layout
2706
2707 \change_inserted -712698321 1524657012
2708 flavor
2709 \change_unchanged
2710
2711 \end_layout
2712
2713 \end_inset
2714
2715  value specifies the form of \SpecialChar LaTeX
2716  that is run (
2717 \begin_inset Flex Code
2718 status open
2719
2720 \begin_layout Plain Layout
2721
2722 \change_inserted -712698321 1524657005
2723 latex, pdflatex, platex, xetex, luatex
2724 \change_unchanged
2725
2726 \end_layout
2727
2728 \end_inset
2729
2730 ).
2731  If no value is specified, 
2732 \begin_inset Flex Code
2733 status open
2734
2735 \begin_layout Plain Layout
2736
2737 \change_inserted -712698321 1524657018
2738 latex
2739 \change_unchanged
2740
2741 \end_layout
2742
2743 \end_inset
2744
2745  is used.
2746 \change_unchanged
2747
2748 \end_layout
2749
2750 \begin_layout Labeling
2751 \labelwidthstring 00.00.0000
2752 \begin_inset Flex Code
2753 status collapsed
2754
2755 \begin_layout Plain Layout
2756 needaux
2757 \change_inserted -712698321 1524656935
2758 =flavor
2759 \change_unchanged
2760
2761 \end_layout
2762
2763 \end_inset
2764
2765  Needs the \SpecialChar LaTeX
2766  
2767 \begin_inset Flex Noun
2768 status collapsed
2769
2770 \begin_layout Plain Layout
2771 .aux
2772 \end_layout
2773
2774 \end_inset
2775
2776  file for the conversion.
2777
2778 \change_inserted -712698321 1524657047
2779  The optional 
2780 \begin_inset Flex Code
2781 status open
2782
2783 \begin_layout Plain Layout
2784
2785 \change_inserted -712698321 1524657030
2786 flavor
2787 \change_unchanged
2788
2789 \end_layout
2790
2791 \end_inset
2792
2793  value specifies the form of \SpecialChar LaTeX
2794  that is run in order to generate the 
2795 \begin_inset Flex Noun
2796 status collapsed
2797
2798 \begin_layout Plain Layout
2799
2800 \change_inserted -712698321 1524657047
2801 .aux
2802 \change_unchanged
2803
2804 \end_layout
2805
2806 \end_inset
2807
2808  file (
2809 \begin_inset Flex Code
2810 status open
2811
2812 \begin_layout Plain Layout
2813
2814 \change_inserted -712698321 1524657030
2815 latex, pdflatex, platex, xetex, luatex
2816 \change_unchanged
2817
2818 \end_layout
2819
2820 \end_inset
2821
2822 ).
2823  If no value is specified, 
2824 \begin_inset Flex Code
2825 status open
2826
2827 \begin_layout Plain Layout
2828
2829 \change_inserted -712698321 1524657030
2830 latex
2831 \change_unchanged
2832
2833 \end_layout
2834
2835 \end_inset
2836
2837  is used.
2838 \change_unchanged
2839
2840 \end_layout
2841
2842 \begin_layout Labeling
2843 \labelwidthstring 00.00.0000
2844 \begin_inset Flex Code
2845 status collapsed
2846
2847 \begin_layout Plain Layout
2848 nice
2849 \end_layout
2850
2851 \end_inset
2852
2853  Needs a 
2854 \begin_inset Quotes eld
2855 \end_inset
2856
2857 nice
2858 \begin_inset Quotes erd
2859 \end_inset
2860
2861  file from the backend, which in practice means a \SpecialChar LaTeX
2862  file like the one we
2863  would export, without 
2864 \begin_inset Flex Code
2865 status collapsed
2866
2867 \begin_layout Plain Layout
2868 input@path
2869 \end_layout
2870
2871 \end_inset
2872
2873 .
2874 \end_layout
2875
2876 \begin_layout Labeling
2877 \labelwidthstring 00.00.0000
2878 \begin_inset Flex Code
2879 status collapsed
2880
2881 \begin_layout Plain Layout
2882 xml
2883 \end_layout
2884
2885 \end_inset
2886
2887  Output is XML.
2888 \end_layout
2889
2890 \begin_layout Standard
2891 The following three flags are not really flags at all because they take
2892  an argument in the 
2893 \begin_inset Flex Noun
2894 status collapsed
2895
2896 \begin_layout Plain Layout
2897 key
2898 \begin_inset space ~
2899 \end_inset
2900
2901 =
2902 \begin_inset space ~
2903 \end_inset
2904
2905 value
2906 \end_layout
2907
2908 \end_inset
2909
2910  format:
2911 \end_layout
2912
2913 \begin_layout Labeling
2914 \labelwidthstring 00.00.0000
2915
2916 \change_inserted -712698321 1523206314
2917 \begin_inset Flex Code
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921
2922 \change_inserted -712698321 1523206193
2923 hyperref-driver
2924 \change_unchanged
2925
2926 \end_layout
2927
2928 \end_inset
2929
2930  The name of the driver that needs to be loaded with the 
2931 \family sans
2932 hyperref
2933 \family default
2934  package for this converter.
2935  The loading of the correct driver is necessary to get some PDF-specific
2936  features.
2937  See the 
2938 \family sans
2939 hyperref
2940 \family default
2941  manual for details.
2942 \end_layout
2943
2944 \begin_layout Labeling
2945 \labelwidthstring 00.00.0000
2946 \begin_inset Flex Code
2947 status collapsed
2948
2949 \begin_layout Plain Layout
2950 parselog
2951 \end_layout
2952
2953 \end_inset
2954
2955  If set, the converter's standard error will be redirected to a file 
2956 \begin_inset Flex Code
2957 status collapsed
2958
2959 \begin_layout Plain Layout
2960 infile.out
2961 \end_layout
2962
2963 \end_inset
2964
2965 , and the script given as argument will be run as: 
2966 \begin_inset Flex Code
2967 status collapsed
2968
2969 \begin_layout Plain Layout
2970 script < infile.out > infile.log
2971 \end_layout
2972
2973 \end_inset
2974
2975 .
2976  The argument may contain 
2977 \begin_inset Flex Code
2978 status collapsed
2979
2980 \begin_layout Plain Layout
2981 $$s
2982 \end_layout
2983
2984 \end_inset
2985
2986 .
2987 \end_layout
2988
2989 \begin_layout Labeling
2990 \labelwidthstring 00.00.0000
2991 \begin_inset Flex Code
2992 status collapsed
2993
2994 \begin_layout Plain Layout
2995 resultdir
2996 \end_layout
2997
2998 \end_inset
2999
3000  The name of the directory in which the converter will dump the generated
3001  files.
3002  \SpecialChar LyX
3003  will not create this directory, and it does not copy anything into it,
3004  though it will copy this directory to the destination.
3005  The argument may contain 
3006 \begin_inset Flex Code
3007 status collapsed
3008
3009 \begin_layout Plain Layout
3010 $$b
3011 \end_layout
3012
3013 \end_inset
3014
3015 , which will be replaced by the base name of the input and output files,
3016  respectively, when the directory is copied.
3017 \begin_inset Newline newline
3018 \end_inset
3019
3020 Note that resultdir and usetempdir make no sense together.
3021  The latter will be ignored if the former is given.
3022 \end_layout
3023
3024 \begin_layout Labeling
3025 \labelwidthstring 00.00.0000
3026 \begin_inset Flex Code
3027 status collapsed
3028
3029 \begin_layout Plain Layout
3030 resultfile
3031 \end_layout
3032
3033 \end_inset
3034
3035  Determines the output file name and may, contain 
3036 \begin_inset Flex Code
3037 status collapsed
3038
3039 \begin_layout Plain Layout
3040 $$b
3041 \end_layout
3042
3043 \end_inset
3044
3045 .
3046  Sensible only with resultdir and optional even then; if not given, it defaults
3047  to `index'.
3048 \end_layout
3049
3050 \begin_layout Standard
3051
3052 \change_inserted -712698321 1523206384
3053 A suitable hyperref-driver is set for some converters that are installed
3054  with \SpecialChar LyX
3055 .
3056  
3057 \change_deleted -712698321 1523206388
3058 None of these
3059 \change_inserted -712698321 1523206389
3060 The
3061 \change_unchanged
3062  last three
3063 \change_inserted -712698321 1523206400
3064  flags, however,
3065 \change_unchanged
3066  are presently 
3067 \change_inserted -712698321 1523206407
3068 not 
3069 \change_unchanged
3070 used in any of the 
3071 \change_inserted -712698321 1523206437
3072 pre-installed 
3073 \change_unchanged
3074 converters
3075 \change_deleted -712698321 1523206442
3076  that are installed with \SpecialChar LyX
3077
3078 \change_unchanged
3079 .
3080  
3081 \end_layout
3082
3083 \begin_layout Standard
3084 You do not have to define converters for all formats between which you want
3085  to convert.
3086  For example, you will note that there is no `\SpecialChar LyX
3087  to PostScript' converter,
3088  but \SpecialChar LyX
3089  will export PostScript.
3090  It does so by first creating a \SpecialChar LaTeX
3091  file (no converter needs to be defined
3092  for this) which is then converted to DVI using the `\SpecialChar LaTeX
3093  to DVI' converter,
3094  and finally converting the resulting DVI file to PostScript.
3095  \SpecialChar LyX
3096  finds such `chains' of converters automatically, and it will always choose
3097  the shortest possible chain.
3098  You can, though, still define multiple conversion methods between file
3099  formats.
3100  For example, the standard \SpecialChar LyX
3101  configuration provides five ways to convert
3102  \SpecialChar LaTeX
3103  to PDF:
3104 \end_layout
3105
3106 \begin_layout Enumerate
3107 Directly, using 
3108 \begin_inset Flex Noun
3109 status collapsed
3110
3111 \begin_layout Plain Layout
3112 pdflatex
3113 \end_layout
3114
3115 \end_inset
3116
3117
3118 \end_layout
3119
3120 \begin_layout Enumerate
3121 via (DVI and) PostScript, using 
3122 \begin_inset Flex Noun
3123 status collapsed
3124
3125 \begin_layout Plain Layout
3126 ps2pdf
3127 \end_layout
3128
3129 \end_inset
3130
3131
3132 \end_layout
3133
3134 \begin_layout Enumerate
3135 via DVI, using 
3136 \begin_inset Flex Noun
3137 status collapsed
3138
3139 \begin_layout Plain Layout
3140 dvipdfm
3141 \end_layout
3142
3143 \end_inset
3144
3145
3146 \end_layout
3147
3148 \begin_layout Enumerate
3149 directly using 
3150 \begin_inset Flex Noun
3151 status collapsed
3152
3153 \begin_layout Plain Layout
3154 Xe\SpecialChar TeX
3155
3156 \end_layout
3157
3158 \end_inset
3159
3160
3161 \end_layout
3162
3163 \begin_layout Enumerate
3164 directly using 
3165 \begin_inset Flex Noun
3166 status collapsed
3167
3168 \begin_layout Plain Layout
3169 Lua\SpecialChar TeX
3170
3171 \end_layout
3172
3173 \end_inset
3174
3175
3176 \end_layout
3177
3178 \begin_layout Standard
3179 To define such alternate chains, you must define multiple target `file formats',
3180  as described in 
3181 \begin_inset CommandInset ref
3182 LatexCommand ref
3183 reference "sec:Formats"
3184
3185 \end_inset
3186
3187 .
3188  For example, in the standard configuration, the formats named 
3189 \begin_inset Flex Noun
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 pdf
3194 \end_layout
3195
3196 \end_inset
3197
3198  (for 
3199 \begin_inset Flex Noun
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 ps2pdf
3204 \end_layout
3205
3206 \end_inset
3207
3208 ), 
3209 \begin_inset Flex Noun
3210 status collapsed
3211
3212 \begin_layout Plain Layout
3213 pdf2
3214 \end_layout
3215
3216 \end_inset
3217
3218  (for 
3219 \begin_inset Flex Noun
3220 status collapsed
3221
3222 \begin_layout Plain Layout
3223 pdflatex
3224 \end_layout
3225
3226 \end_inset
3227
3228 ), 
3229 \begin_inset Flex Noun
3230 status collapsed
3231
3232 \begin_layout Plain Layout
3233 pdf3
3234 \end_layout
3235
3236 \end_inset
3237
3238  (for 
3239 \begin_inset Flex Noun
3240 status collapsed
3241
3242 \begin_layout Plain Layout
3243 dvipdfm
3244 \end_layout
3245
3246 \end_inset
3247
3248 ), 
3249 \begin_inset Flex Noun
3250 status collapsed
3251
3252 \begin_layout Plain Layout
3253 pdf4
3254 \end_layout
3255
3256 \end_inset
3257
3258  (for 
3259 \begin_inset Flex Noun
3260 status collapsed
3261
3262 \begin_layout Plain Layout
3263 Xe\SpecialChar TeX
3264
3265 \end_layout
3266
3267 \end_inset
3268
3269 ), and 
3270 \begin_inset Flex Noun
3271 status collapsed
3272
3273 \begin_layout Plain Layout
3274 pdf5
3275 \end_layout
3276
3277 \end_inset
3278
3279  (for 
3280 \begin_inset Flex Noun
3281 status collapsed
3282
3283 \begin_layout Plain Layout
3284 Lua\SpecialChar TeX
3285
3286 \end_layout
3287
3288 \end_inset
3289
3290 ) are defined, all of which share the extension 
3291 \begin_inset Flex Noun
3292 status collapsed
3293
3294 \begin_layout Plain Layout
3295 .pdf
3296 \end_layout
3297
3298 \end_inset
3299
3300 , and which correspond to the conversion methods just mentioned.
3301 \end_layout
3302
3303 \begin_layout Chapter
3304 Internationalizing \SpecialChar LyX
3305
3306 \begin_inset CommandInset label
3307 LatexCommand label
3308 name "cha:Internationalizing-LyX"
3309
3310 \end_inset
3311
3312
3313 \end_layout
3314
3315 \begin_layout Standard
3316 \SpecialChar LyX
3317  supports using a translated interface.
3318  Last time we checked, \SpecialChar LyX
3319  provided text in thirty languages.
3320  The language of choice is called your 
3321 \emph on
3322 locale
3323 \emph default
3324 .
3325  (For further reading on locale settings, see also the documentation for
3326  locale that comes with your operating system.
3327  For Linux, the manual page for 
3328 \begin_inset Flex Code
3329 status collapsed
3330
3331 \begin_layout Plain Layout
3332 locale(5)
3333 \end_layout
3334
3335 \end_inset
3336
3337  could be a good place to start).
3338 \end_layout
3339
3340 \begin_layout Standard
3341 Notice that these translations will work, but do contain a few flaws.
3342  In particular, all dialogs have been designed with the English text in
3343  mind, which means that some of the translated text will be too large to
3344  fit within the space allocated.
3345  This is only a display problem and will not cause any harm.
3346  Also, you will find that some of the translations do not define shortcut
3347  keys for everything.
3348  Sometimes, there are simply not enough free letters to do it.
3349  Other times, the translator just hasn't got around to doing it yet.
3350  Our localization team, which you may wish to join,
3351 \begin_inset Foot
3352 status collapsed
3353
3354 \begin_layout Plain Layout
3355 If you are a fluent speaker of a language other than English, joining these
3356  teams is a great way to give back to the \SpecialChar LyX
3357  community!
3358 \end_layout
3359
3360 \end_inset
3361
3362  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3363 .
3364 \end_layout
3365
3366 \begin_layout Section
3367 Translating \SpecialChar LyX
3368
3369 \end_layout
3370
3371 \begin_layout Subsection
3372 Translating the graphical user interface (text messages).
3373 \end_layout
3374
3375 \begin_layout Standard
3376 \SpecialChar LyX
3377  uses the GNU 
3378 \begin_inset Flex Code
3379 status collapsed
3380
3381 \begin_layout Plain Layout
3382 gettext
3383 \end_layout
3384
3385 \end_inset
3386
3387  library to handle the internationalization of the interface.
3388  To have \SpecialChar LyX
3389  speak your favorite language in all menus and dialogs, you need
3390  a 
3391 \begin_inset Flex Code
3392 status collapsed
3393
3394 \begin_layout Plain Layout
3395 po
3396 \end_layout
3397
3398 \end_inset
3399
3400 -file for that language.
3401  When this is available, you'll have to generate a 
3402 \begin_inset Flex Code
3403 status collapsed
3404
3405 \begin_layout Plain Layout
3406 mo
3407 \end_layout
3408
3409 \end_inset
3410
3411 -file from it and install the 
3412 \begin_inset Flex Code
3413 status collapsed
3414
3415 \begin_layout Plain Layout
3416 mo
3417 \end_layout
3418
3419 \end_inset
3420
3421 -file.
3422  The process of doing all of this is explained in the documentation for
3423  GNU 
3424 \begin_inset Flex Code
3425 status collapsed
3426
3427 \begin_layout Plain Layout
3428 gettext
3429 \end_layout
3430
3431 \end_inset
3432
3433 .
3434  It is possible to do this just for yourself, but if you're going to do
3435  it, you might as well share the results of your labors with the rest of
3436  the \SpecialChar LyX
3437  community.
3438  Send a message to the \SpecialChar LyX
3439  developers' list for more information about how
3440  to proceed.
3441 \end_layout
3442
3443 \begin_layout Standard
3444 In short, this is what you should do (xx denotes the language code):
3445 \end_layout
3446
3447 \begin_layout Itemize
3448 Check out the \SpecialChar LyX
3449  source code.
3450  (See the 
3451 \begin_inset CommandInset href
3452 LatexCommand href
3453 name "information on the web"
3454 target "https://www.lyx.org/HowToUseGIT"
3455 literal "false"
3456
3457 \end_inset
3458
3459 .)
3460 \end_layout
3461
3462 \begin_layout Itemize
3463 Copy the file 
3464 \begin_inset Flex Code
3465 status collapsed
3466
3467 \begin_layout Plain Layout
3468 lyx.pot
3469 \end_layout
3470
3471 \end_inset
3472
3473  to the folder of the 
3474 \begin_inset Flex Code
3475 status collapsed
3476
3477 \begin_layout Plain Layout
3478 **.po
3479 \end_layout
3480
3481 \end_inset
3482
3483  files.
3484  Then rename it to 
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489 xx.po
3490 \end_layout
3491
3492 \end_inset
3493
3494 .
3495  (If 
3496 \begin_inset Flex Code
3497 status collapsed
3498
3499 \begin_layout Plain Layout
3500 lyx.pot
3501 \end_layout
3502
3503 \end_inset
3504
3505  doesn't exist anywhere, it can be remade with the console command 
3506 \begin_inset Flex Code
3507 status collapsed
3508
3509 \begin_layout Plain Layout
3510 make lyx.pot
3511 \end_layout
3512
3513 \end_inset
3514
3515  in that directory, or you can use an existing po-file for some other language
3516  as a template).
3517 \end_layout
3518
3519 \begin_layout Itemize
3520 Edit 
3521 \begin_inset Flex Code
3522 status collapsed
3523
3524 \begin_layout Plain Layout
3525 xx.po
3526 \end_layout
3527
3528 \end_inset
3529
3530 .
3531 \begin_inset Foot
3532 status collapsed
3533
3534 \begin_layout Plain Layout
3535 This is just a text file, so it can be edited in any text editor.
3536  But there are also specialized programs that support such editing, such
3537  as 
3538 \family typewriter
3539 Poedit
3540 \family default
3541  (for all platforms) or 
3542 \family typewriter
3543 KBabel
3544 \family default
3545  (for KDE).
3546  
3547 \family typewriter
3548 Emacs
3549 \family default
3550  contains a `mode' for editing 
3551 \begin_inset Flex Code
3552 status collapsed
3553
3554 \begin_layout Plain Layout
3555 po
3556 \end_layout
3557
3558 \end_inset
3559
3560  files, as well, see 
3561 \begin_inset Flex URL
3562 status open
3563
3564 \begin_layout Plain Layout
3565
3566 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3567 \end_layout
3568
3569 \end_inset
3570
3571 .
3572 \end_layout
3573
3574 \end_inset
3575
3576  For some menu- and widget-labels, there are also shortcut keys that should
3577  be translated.
3578  Those keys are marked after a `|', and should be translated according to
3579  the words and phrases of the language.
3580  You should also fill also out the information at the beginning of the new
3581  
3582 \begin_inset Flex Code
3583 status collapsed
3584
3585 \begin_layout Plain Layout
3586 po
3587 \end_layout
3588
3589 \end_inset
3590
3591 -file with your email-address, etc., so people know where to reach you with
3592  suggestions and entertaining flames.
3593 \end_layout
3594
3595 \begin_layout Standard
3596 If you are just doing this on your own, then:
3597 \end_layout
3598
3599 \begin_layout Itemize
3600 Generate 
3601 \begin_inset Flex Code
3602 status collapsed
3603
3604 \begin_layout Plain Layout
3605 xx.mo
3606 \end_layout
3607
3608 \end_inset
3609
3610 .
3611  This can be done with 
3612 \begin_inset Flex Code
3613 status collapsed
3614
3615 \begin_layout Plain Layout
3616 msgfmt -o xx.mo < xx.po
3617 \end_layout
3618
3619 \end_inset
3620
3621 .
3622 \end_layout
3623
3624 \begin_layout Itemize
3625 Copy the 
3626 \begin_inset Flex Code
3627 status collapsed
3628
3629 \begin_layout Plain Layout
3630 mo
3631 \end_layout
3632
3633 \end_inset
3634
3635 -file to your locale-tree, at the correct directory for application messages
3636  for the language
3637 \series bold
3638  
3639 \series default
3640 xx, and under the name 
3641 \begin_inset Flex Code
3642 status collapsed
3643
3644 \begin_layout Plain Layout
3645 lyx.mo
3646 \end_layout
3647
3648 \end_inset
3649
3650  (e.
3651 \begin_inset space \thinspace{}
3652 \end_inset
3653
3654 g.
3655 \begin_inset space \space{}
3656 \end_inset
3657
3658
3659 \begin_inset Flex Code
3660 status collapsed
3661
3662 \begin_layout Plain Layout
3663 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3664 \end_layout
3665
3666 \end_inset
3667
3668
3669 \series bold
3670 .
3671 \end_layout
3672
3673 \begin_layout Standard
3674 As said, however, it would be best if the new 
3675 \begin_inset Flex Code
3676 status collapsed
3677
3678 \begin_layout Plain Layout
3679 po
3680 \end_layout
3681
3682 \end_inset
3683
3684  file could be added to the \SpecialChar LyX
3685  distribution, so others can use it.
3686  Adding it involves making additional changes to \SpecialChar LyX
3687 .
3688  So send an email to the developers' mailing list if you're interested in
3689  doing that.
3690 \end_layout
3691
3692 \begin_layout Subsubsection
3693 Ambiguous messages
3694 \end_layout
3695
3696 \begin_layout Standard
3697 Sometimes it turns out that one English message needs to be translated into
3698  different messages in the target language.
3699  One example is the message 
3700 \begin_inset Flex Code
3701 status collapsed
3702
3703 \begin_layout Plain Layout
3704 To
3705 \end_layout
3706
3707 \end_inset
3708
3709  which has the German translation 
3710 \lang german
3711 Nach
3712 \lang english
3713  or 
3714 \lang german
3715 Bis
3716 \lang english
3717 , depending upon exactly what the English 
3718 \begin_inset Quotes eld
3719 \end_inset
3720
3721 to
3722 \begin_inset Quotes erd
3723 \end_inset
3724
3725  means.
3726  GNU 
3727 \begin_inset Flex Code
3728 status collapsed
3729
3730 \begin_layout Plain Layout
3731 gettext
3732 \end_layout
3733
3734 \end_inset
3735
3736  does not handle such ambiguous translations.
3737  Therefore you have to add some context information to the message: Instead
3738  of 
3739 \begin_inset Flex Code
3740 status collapsed
3741
3742 \begin_layout Plain Layout
3743 To
3744 \end_layout
3745
3746 \end_inset
3747
3748  it becomes 
3749 \begin_inset Flex Code
3750 status collapsed
3751
3752 \begin_layout Plain Layout
3753 To[[as in 'From format x to format y']]
3754 \end_layout
3755
3756 \end_inset
3757
3758  and 
3759 \begin_inset Flex Code
3760 status collapsed
3761
3762 \begin_layout Plain Layout
3763 To[[as in 'From page x to page y']].
3764 \end_layout
3765
3766 \end_inset
3767
3768  Now the two occurrences of 
3769 \begin_inset Flex Code
3770 status collapsed
3771
3772 \begin_layout Plain Layout
3773 To
3774 \end_layout
3775
3776 \end_inset
3777
3778  are different for 
3779 \begin_inset Flex Code
3780 status collapsed
3781
3782 \begin_layout Plain Layout
3783 gettext
3784 \end_layout
3785
3786 \end_inset
3787
3788  and can be translated correctly to 
3789 \lang german
3790 Nach
3791 \lang english
3792  and 
3793 \lang german
3794 Bis
3795 \lang english
3796 , respectively.
3797 \end_layout
3798
3799 \begin_layout Standard
3800 Of course the context information needs to be stripped off the original
3801  message when no translation is used.
3802  Therefore you have to put it in double square brackets at the end of the
3803  message (see the example above).
3804  The translation mechanism of \SpecialChar LyX
3805  ensures that everything in double square
3806  brackets at the end of messages is removed before displaying the message.
3807 \end_layout
3808
3809 \begin_layout Subsection
3810 Translating the documentation.
3811 \end_layout
3812
3813 \begin_layout Standard
3814 The online documentation (in the 
3815 \begin_inset Flex Noun
3816 status collapsed
3817
3818 \begin_layout Plain Layout
3819 Help
3820 \end_layout
3821
3822 \end_inset
3823
3824 -menu) can (and should!) be translated.
3825  If there are translated versions of the documentation available
3826 \begin_inset Foot
3827 status collapsed
3828
3829 \begin_layout Plain Layout
3830 As of March 2008, at least some of the documents have been translated into
3831  fourteen languages, with the Tutorial available in a few more.
3832 \end_layout
3833
3834 \end_inset
3835
3836  and the locale is set accordingly, these will be used automagically by
3837  \SpecialChar LyX
3838 .
3839  \SpecialChar LyX
3840  looks for translated versions as 
3841 \begin_inset Flex Code
3842 status collapsed
3843
3844 \begin_layout Plain Layout
3845 LyXDir/doc/xx/DocName.lyx
3846 \end_layout
3847
3848 \end_inset
3849
3850 , where 
3851 \begin_inset Flex Code
3852 status collapsed
3853
3854 \begin_layout Plain Layout
3855 xx
3856 \end_layout
3857
3858 \end_inset
3859
3860  is the code for the language currently in use.
3861  If there are no translated documents, the default English versions will
3862  be displayed.
3863  Note that the translated versions must have the same filenames (
3864 \begin_inset Flex Code
3865 status collapsed
3866
3867 \begin_layout Plain Layout
3868 DocName
3869 \end_layout
3870
3871 \end_inset
3872
3873  above) as the original.
3874  If you feel up to translating the documentation (an excellent way to proof-read
3875  the original documentation by the way!), there are a few things you should
3876  do right away:
3877 \end_layout
3878
3879 \begin_layout Itemize
3880 Check out the documentation translation web page at 
3881 \begin_inset CommandInset href
3882 LatexCommand href
3883 name "https://www.lyx.org/Translation"
3884 target "https://www.lyx.org/Translation"
3885 literal "false"
3886
3887 \end_inset
3888
3889 .
3890  That way, you can find out which (if any) documents have already been translate
3891 d into your language.
3892  You can also find out who (if anyone) is organizing the effort to translate
3893  the documentation into your language.
3894  If no one is organizing the effort, please let us know that you're interested.
3895 \end_layout
3896
3897 \begin_layout Standard
3898 Once you get to actually translating, here's a few hints for you that may
3899  save you trouble:
3900 \end_layout
3901
3902 \begin_layout Itemize
3903 Join the documentation team! There is information on how to do that in 
3904 \begin_inset Flex Code
3905 status collapsed
3906
3907 \begin_layout Plain Layout
3908 Intro.lyx
3909 \end_layout
3910
3911 \end_inset
3912
3913  (
3914 \begin_inset Flex Noun
3915 status collapsed
3916
3917 \begin_layout Plain Layout
3918 Help\SpecialChar menuseparator
3919 Introduction
3920 \end_layout
3921
3922 \end_inset
3923
3924 ), which by the way is the first document you should translate.
3925 \end_layout
3926
3927 \begin_layout Itemize
3928 Learn the typographic conventions for the language you are translating to.
3929  Typography is an ancient art and over the centuries, a great variety of
3930  conventions have developed throughout different parts of the world.
3931  Also study the professional terminology amongst typographers in your country.
3932  Inventing your own terminology will only confuse the users.
3933  
3934 \emph on
3935 (Warning! Typography is addictive!)
3936 \end_layout
3937
3938 \begin_layout Itemize
3939 Make a copy of the document.
3940  This will be your working copy.
3941  You can use this as your personal translated help-file by placing it in
3942  your 
3943 \begin_inset Flex Code
3944 status collapsed
3945
3946 \begin_layout Plain Layout
3947 UserDir/doc/xx/
3948 \end_layout
3949
3950 \end_inset
3951
3952  directory.
3953 \begin_inset Note Greyedout
3954 status open
3955
3956 \begin_layout Plain Layout
3957
3958 \series bold
3959 Note:
3960 \series default
3961  For a complex document with external material (images, etc.), if you make
3962  a copy e.
3963 \begin_inset space \thinspace{}
3964 \end_inset
3965
3966 g.
3967 \begin_inset space \space{}
3968 \end_inset
3969
3970 in a temp dir, beware that the links to external material may be broken
3971  when the document is moved to a different place.
3972  The best way is to retrieve the \SpecialChar LyX
3973  tree from git (see 
3974 \begin_inset Flex URL
3975 status collapsed
3976
3977 \begin_layout Plain Layout
3978
3979 https://www.lyx.org/HowToUseGIT
3980 \end_layout
3981
3982 \end_inset
3983
3984 ) and to edit the doc file in place.
3985 \end_layout
3986
3987 \end_inset
3988
3989
3990 \end_layout
3991
3992 \begin_layout Itemize
3993 Sometimes the original document (from the \SpecialChar LyX
3994  team) will be updated.
3995  Use the source viewer at 
3996 \begin_inset CommandInset href
3997 LatexCommand href
3998 name "https://www.lyx.org/trac/timeline"
3999 target "https://www.lyx.org/trac/timeline"
4000 literal "false"
4001
4002 \end_inset
4003
4004  to see what has been changed.
4005  That way you can easily see which parts of the translated document need
4006  to be updated.
4007 \end_layout
4008
4009 \begin_layout Standard
4010 If you ever find an error in the original document, fix it and notify the
4011  rest of the documentation team of the changes! (You didn't forget to join
4012  the documentation team, did you?)
4013 \end_layout
4014
4015 \begin_layout Standard
4016 \begin_inset Branch OutDated
4017 inverted 0
4018 status collapsed
4019
4020 \begin_layout Section
4021 International Keyboard Support
4022 \end_layout
4023
4024 \begin_layout Standard
4025
4026 \emph on
4027 [Editor's Note: The following section is by
4028 \emph default
4029  
4030 \shape smallcaps
4031 \emph on
4032 Ivan Schreter
4033 \shape default
4034 .
4035  It needs to be fixed to conform to the new Documentation Style sheet and
4036  to make use of the new v1.0 features.
4037  The whole thing also needs to be merged with the section following it.-jw
4038  It may also be badly out of date.-rh (2008)]
4039 \end_layout
4040
4041 \begin_layout Subsection
4042 Defining Own Keymaps: Keymap File Format
4043 \end_layout
4044
4045 \begin_layout Standard
4046 Let's look at a keyboard definition file a little closer.
4047  It is a plain text file defining
4048 \end_layout
4049
4050 \begin_layout Itemize
4051 key-to-key or key-to-string translations
4052 \end_layout
4053
4054 \begin_layout Itemize
4055 dead keys
4056 \end_layout
4057
4058 \begin_layout Itemize
4059 dead keys exceptions
4060 \end_layout
4061
4062 \begin_layout Standard
4063 To define key-to-key or key-to-string translation, use this command:
4064 \end_layout
4065
4066 \begin_layout Quotation
4067 \begin_inset Flex Code
4068 status collapsed
4069
4070 \begin_layout Plain Layout
4071
4072 \backslash
4073 kmap
4074 \end_layout
4075
4076 \end_inset
4077
4078  
4079 \begin_inset Flex Code
4080 status collapsed
4081
4082 \begin_layout Plain Layout
4083 key
4084 \end_layout
4085
4086 \end_inset
4087
4088  outstring 
4089 \end_layout
4090
4091 \begin_layout Standard
4092 where 
4093 \begin_inset Flex Code
4094 status collapsed
4095
4096 \begin_layout Plain Layout
4097 key
4098 \end_layout
4099
4100 \end_inset
4101
4102  is the key to be translated and 
4103 \begin_inset Flex Code
4104 status collapsed
4105
4106 \begin_layout Plain Layout
4107 outstring
4108 \end_layout
4109
4110 \end_inset
4111
4112  is the string to be inserted into the document.
4113  To define dead keys, use:
4114 \end_layout
4115
4116 \begin_layout Quotation
4117 \begin_inset Flex Code
4118 status collapsed
4119
4120 \begin_layout Plain Layout
4121
4122 \backslash
4123 kmod
4124 \end_layout
4125
4126 \end_inset
4127
4128  
4129 \begin_inset Flex Code
4130 status collapsed
4131
4132 \begin_layout Plain Layout
4133 key
4134 \end_layout
4135
4136 \end_inset
4137
4138  deadkey
4139 \end_layout
4140
4141 \begin_layout Standard
4142 where 
4143 \begin_inset Flex Code
4144 status collapsed
4145
4146 \begin_layout Plain Layout
4147 key
4148 \end_layout
4149
4150 \end_inset
4151
4152  is a keyboard key and 
4153 \begin_inset Flex Code
4154 status collapsed
4155
4156 \begin_layout Plain Layout
4157 deadkey
4158 \end_layout
4159
4160 \end_inset
4161
4162  is dead key name.
4163  The following dead keys are supported (shortcut name is in parentheses):
4164 \end_layout
4165
4166 \begin_layout Quotation
4167
4168 \emph on
4169 Name
4170 \begin_inset space \hfill{}
4171 \end_inset
4172
4173 Example
4174 \end_layout
4175
4176 \begin_layout Quotation
4177 acute (acu)
4178 \begin_inset space \hfill{}
4179 \end_inset
4180
4181 áéíóú
4182 \end_layout
4183
4184 \begin_layout Quotation
4185 grave (gra)
4186 \begin_inset space \hfill{}
4187 \end_inset
4188
4189 àèìòù
4190 \end_layout
4191
4192 \begin_layout Quotation
4193 macron (mac)
4194 \begin_inset space \hfill{}
4195 \end_inset
4196
4197  ō
4198 \end_layout
4199
4200 \begin_layout Quotation
4201 tilde (til)
4202 \begin_inset space \hfill{}
4203 \end_inset
4204
4205 ñÑ
4206 \end_layout
4207
4208 \begin_layout Quotation
4209 underbar (underb)
4210 \begin_inset space \hfill{}
4211 \end_inset
4212
4213
4214 \begin_inset ERT
4215 status open
4216
4217 \begin_layout Plain Layout
4218
4219
4220 \backslash
4221 b o
4222 \end_layout
4223
4224 \end_inset
4225
4226
4227 \end_layout
4228
4229 \begin_layout Quotation
4230 cedilla (ced)
4231 \begin_inset space \hfill{}
4232 \end_inset
4233
4234 çÇ
4235 \end_layout
4236
4237 \begin_layout Quotation
4238 underdot (underd)
4239 \begin_inset space \hfill{}
4240 \end_inset
4241
4242
4243 \begin_inset ERT
4244 status open
4245
4246 \begin_layout Plain Layout
4247
4248
4249 \backslash
4250 d o
4251 \end_layout
4252
4253 \end_inset
4254
4255
4256 \end_layout
4257
4258 \begin_layout Quotation
4259 circumflex (circu)
4260 \begin_inset space \hfill{}
4261 \end_inset
4262
4263 âêîôû
4264 \end_layout
4265
4266 \begin_layout Quotation
4267 circle (circl)
4268 \begin_inset space \hfill{}
4269 \end_inset
4270
4271 ÅůŮ
4272 \end_layout
4273
4274 \begin_layout Quotation
4275 tie (tie)
4276 \begin_inset space \hfill{}
4277 \end_inset
4278
4279
4280 \begin_inset ERT
4281 status open
4282
4283 \begin_layout Plain Layout
4284
4285
4286 \backslash
4287 t o
4288 \end_layout
4289
4290 \end_inset
4291
4292
4293 \end_layout
4294
4295 \begin_layout Quotation
4296 breve (bre)
4297 \begin_inset space \hfill{}
4298 \end_inset
4299
4300 ă
4301 \begin_inset ERT
4302 status open
4303
4304 \begin_layout Plain Layout
4305
4306
4307 \backslash
4308 u o
4309 \end_layout
4310
4311 \end_inset
4312
4313
4314 \end_layout
4315
4316 \begin_layout Quotation
4317 caron (car)
4318 \begin_inset space \hfill{}
4319 \end_inset
4320
4321 čšž
4322 \end_layout
4323
4324 \begin_layout Quotation
4325 hungarian umlaut (hug)
4326 \begin_inset space \hfill{}
4327 \end_inset
4328
4329 őű
4330 \end_layout
4331
4332 \begin_layout Quotation
4333 umlaut (uml)
4334 \begin_inset space \hfill{}
4335 \end_inset
4336
4337 äöü
4338 \end_layout
4339
4340 \begin_layout Quotation
4341 dot (dot)
4342 \begin_inset space \hfill{}
4343 \end_inset
4344
4345 ż
4346 \begin_inset ERT
4347 status open
4348
4349 \begin_layout Plain Layout
4350
4351
4352 \backslash
4353 .s
4354 \end_layout
4355
4356 \end_inset
4357
4358
4359 \end_layout
4360
4361 \begin_layout Standard
4362 Since in many international keyboards there are exceptions to what some
4363  dead keys should do, you can define them using
4364 \end_layout
4365
4366 \begin_layout Quotation
4367 \begin_inset Flex Code
4368 status collapsed
4369
4370 \begin_layout Plain Layout
4371
4372 \backslash
4373 kxmod
4374 \end_layout
4375
4376 \end_inset
4377
4378  deadkey key outstring
4379 \end_layout
4380
4381 \begin_layout Standard
4382 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4383 , so you put in
4384 \end_layout
4385
4386 \begin_layout Quotation
4387 \begin_inset Flex Code
4388 status collapsed
4389
4390 \begin_layout Plain Layout
4391
4392 \backslash
4393 kxmod
4394 \end_layout
4395
4396 \end_inset
4397
4398  caron o "
4399 \backslash
4400 ^o"
4401 \end_layout
4402
4403 \begin_layout Standard
4404 to make it work correctly.
4405  Also, you have to define as exceptions dead keys over i and j, to remove
4406  the dot from them before inserting an accent mark.
4407  I will change this when the time comes, but so far I haven't had time.
4408 \end_layout
4409
4410 \begin_layout Standard
4411 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4412  double backslash.
4413  Also, quotes and 
4414 \begin_inset Flex Code
4415 status collapsed
4416
4417 \begin_layout Plain Layout
4418 #
4419 \end_layout
4420
4421 \end_inset
4422
4423  have different meaning.
4424  
4425 \begin_inset Flex Code
4426 status collapsed
4427
4428 \begin_layout Plain Layout
4429 #
4430 \end_layout
4431
4432 \end_inset
4433
4434  marks comments, quotes start and end \SpecialChar LaTeX
4435 -style commands.
4436  To enter quote, you'll need to use 
4437 \begin_inset Flex Code
4438 status collapsed
4439
4440 \begin_layout Plain Layout
4441
4442 \backslash
4443 "
4444 \end_layout
4445
4446 \end_inset
4447
4448 , to enter 
4449 \begin_inset Flex Code
4450 status collapsed
4451
4452 \begin_layout Plain Layout
4453 #
4454 \end_layout
4455
4456 \end_inset
4457
4458 , use 
4459 \begin_inset Flex Code
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463
4464 \backslash
4465 #
4466 \end_layout
4467
4468 \end_inset
4469
4470 .
4471 \end_layout
4472
4473 \begin_layout Standard
4474 If you make a keyboard description file that works for your language, please
4475  mail it to me, so I can include it in the next keymap distribution.
4476 \end_layout
4477
4478 \begin_layout Standard
4479 More keywords will be supported in keymap configuration file in future,
4480  like
4481 \end_layout
4482
4483 \begin_layout Itemize
4484 \begin_inset Flex Code
4485 status collapsed
4486
4487 \begin_layout Plain Layout
4488
4489 \backslash
4490 kinclude filename
4491 \end_layout
4492
4493 \end_inset
4494
4495
4496 \emph on
4497
4498 \begin_inset space \hfill{}
4499 \end_inset
4500
4501
4502 \begin_inset Flex Code
4503 status collapsed
4504
4505 \begin_layout Plain Layout
4506 include
4507 \end_layout
4508
4509 \end_inset
4510
4511  another file
4512 \end_layout
4513
4514 \begin_layout Itemize
4515 \begin_inset Flex Code
4516 status collapsed
4517
4518 \begin_layout Plain Layout
4519
4520 \backslash
4521 kprog program
4522 \end_layout
4523
4524 \end_inset
4525
4526
4527 \emph on
4528
4529 \begin_inset space \hfill{}
4530 \end_inset
4531
4532
4533 \begin_inset Flex Code
4534 status collapsed
4535
4536 \begin_layout Plain Layout
4537 define
4538 \end_layout
4539
4540 \end_inset
4541
4542  an external keymap translation program 
4543 \end_layout
4544
4545 \begin_layout Standard
4546 Also, it should look into 
4547 \begin_inset Flex Code
4548 status collapsed
4549
4550 \begin_layout Plain Layout
4551 lyxrc
4552 \end_layout
4553
4554 \end_inset
4555
4556  file for defaults, too (for example, a 
4557 \begin_inset Flex Code
4558 status collapsed
4559
4560 \begin_layout Plain Layout
4561
4562 \backslash
4563 kinclude
4564 \end_layout
4565
4566 \end_inset
4567
4568  option to include default keyboard).
4569 \end_layout
4570
4571 \end_inset
4572
4573
4574 \end_layout
4575
4576 \begin_layout Section
4577 International Keymap Stuff
4578 \begin_inset CommandInset label
4579 LatexCommand label
4580 name "sec:International-Keymap-Stuff"
4581
4582 \end_inset
4583
4584
4585 \end_layout
4586
4587 \begin_layout Standard
4588 \begin_inset Note Note
4589 status open
4590
4591 \begin_layout Plain Layout
4592 In doing the revisions on this document in March 2008, I did not look over
4593  this stuff, as I do not understand it.
4594  It would be good if someone else could do so.
4595  (RH)
4596 \end_layout
4597
4598 \end_inset
4599
4600
4601 \end_layout
4602
4603 \begin_layout Standard
4604 The next two sections describe the 
4605 \begin_inset Flex Code
4606 status collapsed
4607
4608 \begin_layout Plain Layout
4609
4610 \shape up
4611 .kmap
4612 \end_layout
4613
4614 \end_inset
4615
4616  and 
4617 \begin_inset Flex Code
4618 status collapsed
4619
4620 \begin_layout Plain Layout
4621
4622 \shape up
4623 .cdef
4624 \end_layout
4625
4626 \end_inset
4627
4628  file syntax in detail.
4629  These sections should help you design your own key map if the ones provided
4630  do not meet your needs.
4631 \end_layout
4632
4633 \begin_layout Subsection
4634 The .kmap File
4635 \end_layout
4636
4637 \begin_layout Standard
4638
4639 \shape up
4640 .
4641 \begin_inset Flex Code
4642 status collapsed
4643
4644 \begin_layout Plain Layout
4645 kmap
4646 \end_layout
4647
4648 \end_inset
4649
4650  file maps keystrokes to characters or strings.
4651  As the name suggests, it sets a keyboard mapping.
4652  The 
4653 \begin_inset Flex Code
4654 status collapsed
4655
4656 \begin_layout Plain Layout
4657 .kmap
4658 \end_layout
4659
4660 \end_inset
4661
4662
4663 \shape default
4664  file keywords 
4665 \shape up
4666
4667 \begin_inset Flex Code
4668 status collapsed
4669
4670 \begin_layout Plain Layout
4671
4672 \shape up
4673 kmap
4674 \end_layout
4675
4676 \end_inset
4677
4678
4679 \shape default
4680 ,
4681 \shape up
4682  
4683 \shape default
4684
4685 \begin_inset Flex Code
4686 status collapsed
4687
4688 \begin_layout Plain Layout
4689
4690 \shape up
4691 kmod
4692 \end_layout
4693
4694 \end_inset
4695
4696 ,
4697 \shape up
4698  
4699 \shape default
4700
4701 \begin_inset Flex Code
4702 status collapsed
4703
4704 \begin_layout Plain Layout
4705
4706 \shape up
4707 kxmod
4708 \end_layout
4709
4710 \end_inset
4711
4712 , and 
4713 \begin_inset Flex Code
4714 status collapsed
4715
4716 \begin_layout Plain Layout
4717
4718 \shape up
4719 kcomb
4720 \end_layout
4721
4722 \end_inset
4723
4724  are described in this section.
4725 \end_layout
4726
4727 \begin_layout Labeling
4728 \labelwidthstring 00.00.0000
4729 \begin_inset Flex Code
4730 status collapsed
4731
4732 \begin_layout Plain Layout
4733
4734 \shape up
4735 kmap
4736 \end_layout
4737
4738 \end_inset
4739
4740  Map a character to a string
4741 \end_layout
4742
4743 \begin_layout LyX-Code
4744
4745 \backslash
4746 kmap 
4747 \family roman
4748 \emph on
4749 char
4750 \family default
4751 \emph default
4752  
4753 \family roman
4754 \emph on
4755 string
4756 \end_layout
4757
4758 \begin_layout Standard
4759 This will ma
4760 \family roman
4761 p
4762 \family default
4763  
4764 \family roman
4765 \emph on
4766 char
4767 \family default
4768 \emph default
4769  
4770 \family roman
4771 to
4772 \family default
4773  
4774 \family roman
4775 \emph on
4776 string
4777 \emph default
4778 .
4779  Note that in
4780 \family default
4781  
4782 \family roman
4783 \emph on
4784 string
4785 \emph default
4786 ,
4787 \family default
4788  
4789 \family roman
4790 \shape up
4791 the double-quote (")
4792 \family default
4793 \shape default
4794  
4795 \family roman
4796 and
4797 \family default
4798  
4799 \family roman
4800 \shape up
4801 the backslash (
4802 \backslash
4803 )
4804 \family default
4805 \shape default
4806  
4807 \family roman
4808 must be escaped with a preceding backslash (
4809 \shape up
4810
4811 \backslash
4812
4813 \shape default
4814 )
4815 \family default
4816 .
4817 \end_layout
4818
4819 \begin_layout Standard
4820 An example of a 
4821 \begin_inset Flex Noun
4822 status collapsed
4823
4824 \begin_layout Plain Layout
4825
4826 \shape up
4827 kmap
4828 \end_layout
4829
4830 \end_inset
4831
4832  statement to cause the symbol 
4833 \begin_inset Flex Noun
4834 status collapsed
4835
4836 \begin_layout Plain Layout
4837
4838 \shape up
4839 /
4840 \end_layout
4841
4842 \end_inset
4843
4844  to be output for the keystroke 
4845 \begin_inset Flex Noun
4846 status collapsed
4847
4848 \begin_layout Plain Layout
4849
4850 \shape up
4851 &
4852 \end_layout
4853
4854 \end_inset
4855
4856  is:
4857 \end_layout
4858
4859 \begin_layout LyX-Code
4860
4861 \backslash
4862 kmap & /
4863 \end_layout
4864
4865 \begin_layout Labeling
4866 \labelwidthstring 00.00.0000
4867 \begin_inset Flex Code
4868 status collapsed
4869
4870 \begin_layout Plain Layout
4871
4872 \shape up
4873 kmod
4874 \end_layout
4875
4876 \end_inset
4877
4878  Specify an accent character
4879 \end_layout
4880
4881 \begin_layout LyX-Code
4882
4883 \backslash
4884 kmod 
4885 \family roman
4886 \emph on
4887 char accent allowed
4888 \end_layout
4889
4890 \begin_layout Standard
4891 This will make the cha
4892 \family roman
4893 racter
4894 \family default
4895  
4896 \family roman
4897 \emph on
4898 char
4899 \family default
4900 \emph default
4901  
4902 \family roman
4903 \shape up
4904 \emph on
4905 be an accent
4906 \family default
4907 \shape default
4908 \emph default
4909  
4910 \family roman
4911 \shape up
4912 on the
4913 \family default
4914 \shape default
4915  
4916 \family roman
4917 \shape up
4918 \emph on
4919 allowed
4920 \family default
4921 \shape default
4922 \emph default
4923  
4924 \family roman
4925 \shape up
4926 cha
4927 \family default
4928 racter(s).
4929  This is the dead key
4930 \begin_inset Foot
4931 status collapsed
4932
4933 \begin_layout Plain Layout
4934 The term 
4935 \family roman
4936 \emph on
4937 dead key
4938 \family default
4939 \emph default
4940  refers to a key that does not produce a character by itself, but when followed
4941  with another key, produces the desired accent character.
4942  For example, a German characte
4943 \family roman
4944 r with an umlaut like
4945 \family default
4946  
4947 \family roman
4948 \emph on
4949 ä
4950 \family default
4951 \emph default
4952  
4953 \family roman
4954 can be produced in this manner.
4955 \end_layout
4956
4957 \end_inset
4958
4959  mechanism.
4960  
4961 \end_layout
4962
4963 \begin_layout Standard
4964 If you 
4965 \family roman
4966 hit
4967 \family default
4968  
4969 \family roman
4970 \emph on
4971 char
4972 \family default
4973 \emph default
4974  
4975 \family roman
4976 and then another key not in
4977 \family default
4978  
4979 \family roman
4980 \emph on
4981 allowed
4982 \emph default
4983 , you will get a
4984 \family default
4985  
4986 \family roman
4987 \emph on
4988 char
4989 \family default
4990 \emph default
4991  
4992 \family roman
4993 followed by the other, not allowed key, as output.
4994
4995 \family default
4996  Note that a 
4997 \begin_inset Flex Noun
4998 status collapsed
4999
5000 \begin_layout Plain Layout
5001
5002 \shape up
5003 Backspace
5004 \end_layout
5005
5006 \end_inset
5007
5008  cancels a dead key, so if 
5009 \family roman
5010 you hit
5011 \family default
5012  
5013 \family roman
5014 \emph on
5015 char
5016 \family default
5017 \emph default
5018  
5019 \begin_inset Flex Noun
5020 status collapsed
5021
5022 \begin_layout Plain Layout
5023
5024 \shape up
5025 \emph on
5026 Backspace
5027 \end_layout
5028
5029 \end_inset
5030
5031 , the cursor will not go one position backwards but will instead cancel
5032  the effect t
5033 \family roman
5034 hat
5035 \family default
5036  
5037 \family roman
5038 \shape up
5039 \emph on
5040 char
5041 \family default
5042 \shape default
5043 \emph default
5044  
5045 \family roman
5046 \shape up
5047 might have had on the next keystroke.
5048  
5049 \end_layout
5050
5051 \begin_layout Standard
5052 The following example specifies that the character ' is to be an acute accent,
5053  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
5054 \end_layout
5055
5056 \begin_layout LyX-Code
5057
5058 \backslash
5059 kmod ' acute aeiouAEIOU
5060 \end_layout
5061
5062 \begin_layout Labeling
5063 \labelwidthstring 00.00.0000
5064 \begin_inset Flex Code
5065 status collapsed
5066
5067 \begin_layout Plain Layout
5068 kxmod
5069 \end_layout
5070
5071 \end_inset
5072
5073  Specify an exception to the accent character
5074 \end_layout
5075
5076 \begin_layout LyX-Code
5077
5078 \backslash
5079 kxmod  
5080 \family roman
5081 \emph on
5082 accent char result
5083 \end_layout
5084
5085 \begin_layout Standard
5086 This defines an exce
5087 \family roman
5088 ption for
5089 \family default
5090  
5091 \family roman
5092 \emph on
5093 accent
5094 \family default
5095 \emph default
5096  
5097 \family roman
5098 on
5099 \family default
5100  
5101 \family roman
5102 \emph on
5103 char
5104 \emph default
5105 .
5106  T
5107 \shape up
5108 he
5109 \family default
5110 \shape default
5111  
5112 \family roman
5113 \shape up
5114 \emph on
5115 accent
5116 \family default
5117 \shape default
5118 \emph default
5119  
5120 \family roman
5121 \shape up
5122 must
5123 \family default
5124 \shape default
5125  
5126 \shape up
5127 have been assigned a keystroke with a previous
5128 \shape default
5129  
5130 \begin_inset Flex Code
5131 status collapsed
5132
5133 \begin_layout Plain Layout
5134
5135 \shape up
5136
5137 \backslash
5138 kmo
5139 \shape default
5140 d
5141 \end_layout
5142
5143 \end_inset
5144
5145  declar
5146 \family roman
5147 ation and
5148 \family default
5149  
5150 \family roman
5151 \emph on
5152 char
5153 \family default
5154 \emph default
5155  
5156 \family roman
5157 must not belong in the
5158 \family default
5159  
5160 \family roman
5161 \emph on
5162 allowed
5163 \family default
5164 \emph default
5165  
5166 \family roman
5167 set of
5168 \family default
5169  
5170 \family roman
5171 \emph on
5172 accent
5173 \emph default
5174 .
5175  When
5176 \family default
5177  
5178 \family roman
5179 \shape up
5180 you enter the
5181 \family default
5182 \shape default
5183  
5184 \family roman
5185 \shape up
5186 \emph on
5187 accent char
5188 \family default
5189 \shape default
5190 \emph default
5191  
5192 \family roman
5193 \shape up
5194 sequence,
5195 \family default
5196 \shape default
5197  
5198 \family roman
5199 \shape up
5200 \emph on
5201 result
5202 \emph default
5203  is produced.
5204  If such a declaration does not exist in
5205 \family default
5206 \shape default
5207  
5208 \shape up
5209 the
5210 \shape default
5211  
5212 \begin_inset Flex Code
5213 status collapsed
5214
5215 \begin_layout Plain Layout
5216
5217 \shape up
5218 .kmap
5219 \end_layout
5220
5221 \end_inset
5222
5223  file and yo
5224 \family roman
5225 u enter
5226 \family default
5227  
5228 \family roman
5229 \emph on
5230 accent char
5231 \emph default
5232 , you get
5233 \family default
5234  
5235 \family roman
5236 \emph on
5237 accent_key char
5238 \emph default
5239  where
5240 \family default
5241  
5242 \family roman
5243 \emph on
5244 accent_key
5245 \emph default
5246  is the first arg
5247 \family default
5248 ument of the 
5249 \begin_inset Flex Code
5250 status collapsed
5251
5252 \begin_layout Plain Layout
5253
5254 \shape up
5255
5256 \backslash
5257 kmod
5258 \end_layout
5259
5260 \end_inset
5261
5262  declaration.
5263  
5264 \end_layout
5265
5266 \begin_layout Standard
5267 The following command produces causes äi to be produced when you enter acute-i
5268  ('i):
5269 \end_layout
5270
5271 \begin_layout LyX-Code
5272
5273 \backslash
5274 kxmod acute i "
5275 \backslash
5276
5277 \backslash
5278 '{
5279 \backslash
5280
5281 \backslash
5282 i}"
5283 \end_layout
5284
5285 \begin_layout Labeling
5286 \labelwidthstring 00.00.0000
5287 \begin_inset Flex Code
5288 status collapsed
5289
5290 \begin_layout Plain Layout
5291 kcomb
5292 \end_layout
5293
5294 \end_inset
5295
5296  Combine two accent characters
5297 \end_layout
5298
5299 \begin_layout LyX-Code
5300
5301 \backslash
5302 kcomb 
5303 \family roman
5304 \emph on
5305 accent1 accent2 allowed
5306 \end_layout
5307
5308 \begin_layout Standard
5309 This one is getting pretty esoteric.
5310  It allows you to combine the effect 
5311 \family roman
5312 of
5313 \family default
5314  
5315 \family roman
5316 \emph on
5317 accent1
5318 \family default
5319 \emph default
5320  
5321 \family roman
5322 and
5323 \family default
5324  
5325 \family roman
5326 \emph on
5327 accent2
5328 \family default
5329 \emph default
5330  
5331 \family roman
5332 (in that order!) on
5333 \family default
5334  
5335 \family roman
5336 \emph on
5337 allowed
5338 \family default
5339 \emph default
5340  
5341 \family roman
5342 chars.
5343  The keystrokes for
5344 \family default
5345  
5346 \family roman
5347 \emph on
5348 accent1
5349 \family default
5350 \emph default
5351  
5352 \family roman
5353 and
5354 \family default
5355  
5356 \family roman
5357 \emph on
5358 accent2
5359 \family default
5360 \emph default
5361  
5362 \family roman
5363 must have be
5364 \family default
5365 en set with a 
5366 \begin_inset Flex Code
5367 status collapsed
5368
5369 \begin_layout Plain Layout
5370
5371 \shape up
5372
5373 \backslash
5374 kmod
5375 \end_layout
5376
5377 \end_inset
5378
5379  command at 
5380 \family roman
5381 a
5382 \family default
5383  
5384 \family roman
5385 \emph on
5386 previous
5387 \family default
5388 \emph default
5389  
5390 \family roman
5391 point in the
5392 \family default
5393  file.
5394  
5395 \end_layout
5396
5397 \begin_layout Standard
5398 Consider this example from the 
5399 \begin_inset Flex Code
5400 status collapsed
5401
5402 \begin_layout Plain Layout
5403
5404 \shape up
5405 greek.kmap
5406 \end_layout
5407
5408 \end_inset
5409
5410  file:
5411 \end_layout
5412
5413 \begin_layout LyX-Code
5414
5415 \backslash
5416 kmod ; acute aeioyvhAEIOYVH 
5417 \backslash
5418 kmod : umlaut iyIY 
5419 \backslash
5420 kcomb acute umlaut iyIY
5421 \end_layout
5422
5423 \begin_layout Standard
5424 This allows you to press 
5425 \begin_inset Flex Noun
5426 status collapsed
5427
5428 \begin_layout Plain Layout
5429
5430 \shape up
5431 ;:i
5432 \end_layout
5433
5434 \end_inset
5435
5436  and get the effect of 
5437 \begin_inset Flex Code
5438 status collapsed
5439
5440 \begin_layout Plain Layout
5441
5442 \shape up
5443
5444 \backslash
5445 '{
5446 \backslash
5447 "{i}}
5448 \end_layout
5449
5450 \end_inset
5451
5452 .
5453  
5454 \family roman
5455 \shape up
5456 A backspace
5457 \family default
5458 \shape default
5459  in this case cancels the last dead key, so if you press 
5460 \begin_inset Flex Noun
5461 status collapsed
5462
5463 \begin_layout Plain Layout
5464
5465 \shape up
5466 ;: Backspace i
5467 \end_layout
5468
5469 \end_inset
5470
5471  you get 
5472 \begin_inset Flex Code
5473 status collapsed
5474
5475 \begin_layout Plain Layout
5476
5477 \shape up
5478
5479 \backslash
5480 '{i}
5481 \end_layout
5482
5483 \end_inset
5484
5485 .
5486 \end_layout
5487
5488 \begin_layout Subsection
5489 The .cdef File
5490 \end_layout
5491
5492 \begin_layout Standard
5493 After the 
5494 \begin_inset Flex Code
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498
5499 \shape up
5500 .kmap
5501 \end_layout
5502
5503 \end_inset
5504
5505  mapping is performed, a 
5506 \begin_inset Flex Code
5507 status collapsed
5508
5509 \begin_layout Plain Layout
5510
5511 \shape up
5512 .cde
5513 \shape default
5514 f
5515 \end_layout
5516
5517 \end_inset
5518
5519  file maps the strings that the symbols generate to characters in the current
5520  font.
5521  The \SpecialChar LyX
5522  distribution currently includes at least the 
5523 \begin_inset Flex Code
5524 status collapsed
5525
5526 \begin_layout Plain Layout
5527
5528 \shape up
5529 iso8859-1.cdef
5530 \end_layout
5531
5532 \end_inset
5533
5534  and 
5535 \begin_inset Flex Code
5536 status collapsed
5537
5538 \begin_layout Plain Layout
5539
5540 \shape up
5541 iso8859-2.cdef
5542 \end_layout
5543
5544 \end_inset
5545
5546  files.
5547 \end_layout
5548
5549 \begin_layout Standard
5550 In general the 
5551 \begin_inset Flex Code
5552 status collapsed
5553
5554 \begin_layout Plain Layout
5555
5556 \shape up
5557 .cdef
5558 \end_layout
5559
5560 \end_inset
5561
5562  file is a sequence of declarations of the form
5563 \end_layout
5564
5565 \begin_layout LyX-Code
5566
5567 \family roman
5568 \emph on
5569 char_index_in_set
5570 \family default
5571 \emph default
5572  
5573 \family roman
5574 \emph on
5575  string
5576 \end_layout
5577
5578 \begin_layout Standard
5579 For example, in order to map 
5580 \begin_inset Flex Noun
5581 status collapsed
5582
5583 \begin_layout Plain Layout
5584
5585 \shape up
5586
5587 \backslash
5588 '{e}
5589 \end_layout
5590
5591 \end_inset
5592
5593  to the corresponding character in the iso-8859-1 set (233), the following
5594  declaration is used
5595 \end_layout
5596
5597 \begin_layout LyX-Code
5598 233 "
5599 \backslash
5600
5601 \backslash
5602 '{e}"
5603 \end_layout
5604
5605 \begin_layout Standard
5606 with 
5607 \begin_inset Flex Code
5608 status collapsed
5609
5610 \begin_layout Plain Layout
5611
5612 \backslash
5613
5614 \end_layout
5615
5616 \end_inset
5617
5618  and 
5619 \begin_inset Flex Code
5620 status collapsed
5621
5622 \begin_layout Plain Layout
5623 "
5624 \end_layout
5625
5626 \end_inset
5627
5628  being escap
5629 \family roman
5630 ed in
5631 \family default
5632  
5633 \family roman
5634 \emph on
5635 string
5636 \emph default
5637 .
5638  Note that
5639 \family default
5640  the same character can apply to more than one string.
5641  In the 
5642 \begin_inset Flex Code
5643 status collapsed
5644
5645 \begin_layout Plain Layout
5646 i
5647 \shape up
5648 so-8859-7.cdef
5649 \end_layout
5650
5651 \end_inset
5652
5653  file you have
5654 \end_layout
5655
5656 \begin_layout LyX-Code
5657 192 "
5658 \backslash
5659
5660 \backslash
5661 '{
5662 \backslash
5663
5664 \backslash
5665
5666 \backslash
5667 "{i}}"
5668 \begin_inset Newline newline
5669 \end_inset
5670
5671 192 "
5672 \backslash
5673
5674 \backslash
5675
5676 \backslash
5677 "{
5678 \backslash
5679
5680 \backslash
5681 '{i}}"
5682 \end_layout
5683
5684 \begin_layout Standard
5685 If \SpecialChar LyX
5686  cannot find a mapping for the string produced by the keystroke or a
5687  deadkey sequence, it will check if it looks like an accented char and try
5688  to draw an accent over the character on screen.
5689 \end_layout
5690
5691 \begin_layout Subsection
5692 Dead Keys
5693 \end_layout
5694
5695 \begin_layout Standard
5696 There is a second way to add support for international characters through
5697  so-called dead-keys.
5698  A dead-key works in combination with a letter to produce an accented character.
5699  Here, we'll explain how to create a really simple dead-key to illustrate
5700  how they work.
5701 \end_layout
5702
5703 \begin_layout Standard
5704 Suppose you happen to need the circumflex character, 
5705 \begin_inset Quotes eld
5706 \end_inset
5707
5708  ̂
5709 \begin_inset Quotes erd
5710 \end_inset
5711
5712 .
5713  You could bind the 
5714 \begin_inset Flex Noun
5715 status collapsed
5716
5717 \begin_layout Plain Layout
5718 ^
5719 \end_layout
5720
5721 \end_inset
5722
5723 -key [a.k.a.
5724 \begin_inset space ~
5725 \end_inset
5726
5727
5728 \begin_inset Flex Noun
5729 status collapsed
5730
5731 \begin_layout Plain Layout
5732 Shift-6
5733 \end_layout
5734
5735 \end_inset
5736
5737 ] to the \SpecialChar LyX
5738  command 
5739 \begin_inset Flex Code
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 accent-circumflex
5744 \end_layout
5745
5746 \end_inset
5747
5748  in your 
5749 \begin_inset Flex Code
5750 status collapsed
5751
5752 \begin_layout Plain Layout
5753 lyxrc
5754 \end_layout
5755
5756 \end_inset
5757
5758  file.
5759  Now, whenever you type the 
5760 \begin_inset Flex Noun
5761 status collapsed
5762
5763 \begin_layout Plain Layout
5764 ^
5765 \end_layout
5766
5767 \end_inset
5768
5769 -key followed by a letter, that letter will have a circumflex accent on
5770  it.
5771  For example, the sequence 
5772 \begin_inset Quotes eld
5773 \end_inset
5774
5775
5776 \begin_inset Flex Noun
5777 status collapsed
5778
5779 \begin_layout Plain Layout
5780 ^e
5781 \end_layout
5782
5783 \end_inset
5784
5785
5786 \begin_inset Quotes erd
5787 \end_inset
5788
5789  produces the letter: 
5790 \begin_inset Quotes eld
5791 \end_inset
5792
5793 ê
5794 \begin_inset Quotes erd
5795 \end_inset
5796
5797 .
5798  If you tried to type 
5799 \begin_inset Quotes eld
5800 \end_inset
5801
5802
5803 \begin_inset Flex Noun
5804 status collapsed
5805
5806 \begin_layout Plain Layout
5807 ^t
5808 \end_layout
5809
5810 \end_inset
5811
5812
5813 \begin_inset Quotes erd
5814 \end_inset
5815
5816 , however, \SpecialChar LyX
5817  will complain with a beep, since a 
5818 \begin_inset Quotes eld
5819 \end_inset
5820
5821
5822 \begin_inset Flex Noun
5823 status collapsed
5824
5825 \begin_layout Plain Layout
5826 t
5827 \end_layout
5828
5829 \end_inset
5830
5831
5832 \begin_inset Quotes erd
5833 \end_inset
5834
5835  never takes a circumflex accent.
5836  Hitting 
5837 \begin_inset Flex Noun
5838 status collapsed
5839
5840 \begin_layout Plain Layout
5841 Space
5842 \end_layout
5843
5844 \end_inset
5845
5846  after a dead-key produces the bare-accent.
5847  Please note this last point! If you bind a key to a dead-key, you'll need
5848  to rebind the character on that key to yet another key.
5849  Binding the 
5850 \begin_inset Flex Noun
5851 status collapsed
5852
5853 \begin_layout Plain Layout
5854 ,-key
5855 \end_layout
5856
5857 \end_inset
5858
5859  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5860 \end_layout
5861
5862 \begin_layout Standard
5863 One common way to bind dead-keys is to use 
5864 \begin_inset Flex Noun
5865 status collapsed
5866
5867 \begin_layout Plain Layout
5868 Meta-
5869 \end_layout
5870
5871 \end_inset
5872
5873
5874 \begin_inset Flex Noun
5875 status collapsed
5876
5877 \begin_layout Plain Layout
5878 Ctrl-
5879 \end_layout
5880
5881 \end_inset
5882
5883 , and 
5884 \begin_inset Flex Noun
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 Shift-
5889 \end_layout
5890
5891 \end_inset
5892
5893  in combination with an accent, like 
5894 \begin_inset Quotes eld
5895 \end_inset
5896
5897
5898 \begin_inset Flex Noun
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902 ~
5903 \end_layout
5904
5905 \end_inset
5906
5907
5908 \begin_inset Quotes erd
5909 \end_inset
5910
5911  or 
5912 \begin_inset Quotes eld
5913 \end_inset
5914
5915
5916 \begin_inset Flex Noun
5917 status collapsed
5918
5919 \begin_layout Plain Layout
5920 ,
5921 \end_layout
5922
5923 \end_inset
5924
5925
5926 \begin_inset Quotes erd
5927 \end_inset
5928
5929  or 
5930 \begin_inset Quotes eld
5931 \end_inset
5932
5933
5934 \begin_inset Flex Noun
5935 status collapsed
5936
5937 \begin_layout Plain Layout
5938 ^
5939 \end_layout
5940
5941 \end_inset
5942
5943
5944 \begin_inset Quotes erd
5945 \end_inset
5946
5947 .
5948  Another way involves using 
5949 \begin_inset Flex Code
5950 status collapsed
5951
5952 \begin_layout Plain Layout
5953 xmodmap
5954 \end_layout
5955
5956 \end_inset
5957
5958  and 
5959 \begin_inset Flex Code
5960 status collapsed
5961
5962 \begin_layout Plain Layout
5963 xkeycaps
5964 \end_layout
5965
5966 \end_inset
5967
5968  to set up the special 
5969 \begin_inset Flex Code
5970 status collapsed
5971
5972 \begin_layout Plain Layout
5973 Mode_Switch
5974 \end_layout
5975
5976 \end_inset
5977
5978  key.
5979  The 
5980 \begin_inset Flex Code
5981 status collapsed
5982
5983 \begin_layout Plain Layout
5984 Mode_Switch
5985 \end_layout
5986
5987 \end_inset
5988
5989  acts in some ways just like 
5990 \begin_inset Flex Noun
5991 status collapsed
5992
5993 \begin_layout Plain Layout
5994 Shift
5995 \end_layout
5996
5997 \end_inset
5998
5999  and permits you to bind keys to accented characters.
6000  You can also turn keys into dead-keys by binding them to something like
6001  
6002 \begin_inset Flex Code
6003 status collapsed
6004
6005 \begin_layout Plain Layout
6006 usldead_cedilla
6007 \end_layout
6008
6009 \end_inset
6010
6011  and then binding this symbolic key to the corresponding \SpecialChar LyX
6012  command.
6013 \begin_inset Foot
6014 status collapsed
6015
6016 \begin_layout Plain Layout
6017 Note from 
6018 \noun on
6019 John Weiss
6020 \noun default
6021 : This is exactly what I do in my 
6022 \begin_inset Flex Code
6023 status collapsed
6024
6025 \begin_layout Plain Layout
6026 ~/.lyx/lyxrc
6027 \end_layout
6028
6029 \end_inset
6030
6031  and my 
6032 \begin_inset Flex Code
6033 status collapsed
6034
6035 \begin_layout Plain Layout
6036 ~/.xmodmap
6037 \end_layout
6038
6039 \end_inset
6040
6041  files.
6042  I have my 
6043 \begin_inset Flex Noun
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 Scroll
6048 \begin_inset space ~
6049 \end_inset
6050
6051 Lock
6052 \end_layout
6053
6054 \end_inset
6055
6056  key set up as 
6057 \begin_inset Flex Code
6058 status collapsed
6059
6060 \begin_layout Plain Layout
6061 Mode_Shift
6062 \end_layout
6063
6064 \end_inset
6065
6066  and a bunch of these 
6067 \begin_inset Quotes eld
6068 \end_inset
6069
6070
6071 \begin_inset Flex Code
6072 status collapsed
6073
6074 \begin_layout Plain Layout
6075 usldead_*
6076 \end_layout
6077
6078 \end_inset
6079
6080
6081 \begin_inset Quotes erd
6082 \end_inset
6083
6084  symbolic keys bound such things as 
6085 \begin_inset Flex Noun
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 Scroll
6090 \begin_inset space ~
6091 \end_inset
6092
6093 Lock-^
6094 \end_layout
6095
6096 \end_inset
6097
6098  and 
6099 \begin_inset Flex Noun
6100 status collapsed
6101
6102 \begin_layout Plain Layout
6103 Scroll
6104 \begin_inset space ~
6105 \end_inset
6106
6107 Lock-~
6108 \end_layout
6109
6110 \end_inset
6111
6112 .
6113  This is how I produce my accented characters.
6114 \end_layout
6115
6116 \end_inset
6117
6118  You can make just about anything into the 
6119 \begin_inset Flex Code
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 Mode_Switch
6124 \end_layout
6125
6126 \end_inset
6127
6128  key: One of the 
6129 \begin_inset Flex Noun
6130 status collapsed
6131
6132 \begin_layout Plain Layout
6133 Ctrl-
6134 \end_layout
6135
6136 \end_inset
6137
6138  keys, a spare function key, etc.
6139  As for the \SpecialChar LyX
6140  commands that produce accents, check the entry for 
6141 \begin_inset Flex Code
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145 accent-acute
6146 \end_layout
6147
6148 \end_inset
6149
6150  in the 
6151 \emph on
6152 Reference Manual
6153 \emph default
6154 .
6155  You'll find the complete list there.
6156 \end_layout
6157
6158 \begin_layout Subsection
6159 Saving your Language Configuration
6160 \end_layout
6161
6162 \begin_layout Standard
6163 You can edit your preferences so that your desired language environment
6164  is automatically configured when \SpecialChar LyX
6165  starts up, via the 
6166 \begin_inset Flex Noun
6167 status collapsed
6168
6169 \begin_layout Plain Layout
6170 Edit\SpecialChar menuseparator
6171 Preferences
6172 \end_layout
6173
6174 \end_inset
6175
6176  dialog.
6177 \end_layout
6178
6179 \begin_layout Chapter
6180 Installing New Document Classes, Layouts, and Templates
6181 \begin_inset CommandInset label
6182 LatexCommand label
6183 name "cha:Installing-New-Document"
6184
6185 \end_inset
6186
6187
6188 \begin_inset Argument 1
6189 status collapsed
6190
6191 \begin_layout Plain Layout
6192 Installing New Document Classes
6193 \end_layout
6194
6195 \end_inset
6196
6197
6198 \end_layout
6199
6200 \begin_layout Standard
6201 In this chapter, we describe the procedures for creating and installing
6202  new \SpecialChar LyX
6203  layout and template files, as well as offer a refresher on correctly
6204  installing new \SpecialChar LaTeX
6205  document classes.
6206  
6207 \end_layout
6208
6209 \begin_layout Standard
6210 First, let us a say a few words about how one ought to think about the relation
6211  between \SpecialChar LyX
6212  and \SpecialChar LaTeX
6213 .
6214  The thing to understand is that, in a certain sense, \SpecialChar LyX
6215  doesn't know anything
6216  about \SpecialChar LaTeX
6217 .
6218  Indeed, from \SpecialChar LyX
6219 's point of view, \SpecialChar LaTeX
6220  is just one of several 
6221 \begin_inset Quotes eld
6222 \end_inset
6223
6224 backend formats
6225 \begin_inset Quotes erd
6226 \end_inset
6227
6228  in which it is capable of producing output.
6229  Other such formats are DocBook, plaintext, and XHTML.
6230  \SpecialChar LaTeX
6231  is, of course, a particularly important format, but very little of the
6232  information \SpecialChar LyX
6233  has about \SpecialChar LaTeX
6234  is actually contained in the program itself.
6235 \begin_inset Foot
6236 status collapsed
6237
6238 \begin_layout Plain Layout
6239 Some commands are sufficiently complex that they are 
6240 \begin_inset Quotes eld
6241 \end_inset
6242
6243 hardcoded
6244 \begin_inset Quotes erd
6245 \end_inset
6246
6247  into \SpecialChar LyX
6248 .
6249  But the developers generally regard this as a Bad Thing.
6250 \end_layout
6251
6252 \end_inset
6253
6254  Rather, that information, even for the standard classes like 
6255 \begin_inset Flex Code
6256 status collapsed
6257
6258 \begin_layout Plain Layout
6259 article.cls
6260 \end_layout
6261
6262 \end_inset
6263
6264 , is contained in `layout files'.
6265  Similarly, \SpecialChar LyX
6266  itself does not know much about DocBook or XHTML.
6267  What it knows is contained in layout files.
6268 \end_layout
6269
6270 \begin_layout Standard
6271 You can think of the layout file for a given document class as a translation
6272  manual between \SpecialChar LyX
6273  constructs—paragraphs with their corresponding styles,
6274  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6275 , DocBook, or XHTML
6276  constructs.
6277  Almost everything \SpecialChar LyX
6278  knows about 
6279 \begin_inset Flex Code
6280 status collapsed
6281
6282 \begin_layout Plain Layout
6283 article.cls
6284 \end_layout
6285
6286 \end_inset
6287
6288 , for example, is contained in the file 
6289 \begin_inset Flex Code
6290 status collapsed
6291
6292 \begin_layout Plain Layout
6293 article.layout
6294 \end_layout
6295
6296 \end_inset
6297
6298  and in various other files it includes.
6299  For this reason, anyone intending to write layout files should plan to
6300  study the existing files.
6301  A good place to start is with 
6302 \begin_inset Flex Code
6303 status collapsed
6304
6305 \begin_layout Plain Layout
6306 stdsections.inc
6307 \end_layout
6308
6309 \end_inset
6310
6311 , which is included in 
6312 \begin_inset Flex Code
6313 status collapsed
6314
6315 \begin_layout Plain Layout
6316 article.layout
6317 \end_layout
6318
6319 \end_inset
6320
6321
6322 \begin_inset Flex Code
6323 status collapsed
6324
6325 \begin_layout Plain Layout
6326 book.layout
6327 \end_layout
6328
6329 \end_inset
6330
6331 , and many of the other layout files for document classes.
6332  This file is where sections and the like are defined: 
6333 \begin_inset Flex Code
6334 status collapsed
6335
6336 \begin_layout Plain Layout
6337 stdsections.inc
6338 \end_layout
6339
6340 \end_inset
6341
6342  tells \SpecialChar LyX
6343  how paragraphs that are marked with the Section, Subsection, etc,
6344  styles can be translated into corresponding \SpecialChar LaTeX
6345 , DocBook, and XHTML commands
6346  and tags.
6347  The 
6348 \begin_inset Flex Code
6349 status collapsed
6350
6351 \begin_layout Plain Layout
6352 article.layout
6353 \end_layout
6354
6355 \end_inset
6356
6357  file basically just includes several of these 
6358 \begin_inset Flex Code
6359 status collapsed
6360
6361 \begin_layout Plain Layout
6362 std*.inc
6363 \end_layout
6364
6365 \end_inset
6366
6367  files.
6368 \end_layout
6369
6370 \begin_layout Standard
6371 Defining the \SpecialChar LyX
6372 –\SpecialChar LaTeX
6373  correspondence is not the only thing layout files do, though.
6374  Their other job is to define how the \SpecialChar LyX
6375  constructs themselves will appear
6376  on-screen.
6377  The fact that layout files have these two jobs is often a source of confusion,
6378  because they are completely separate.
6379  Telling \SpecialChar LyX
6380  how to translate a certain paragraph style into \SpecialChar LaTeX
6381  does not tell
6382  \SpecialChar LyX
6383  how to display it; conversely, telling \SpecialChar LyX
6384  how to display a certain paragraph
6385  style does not tell \SpecialChar LyX
6386  how to translate it into \SpecialChar LaTeX
6387  (let alone tell \SpecialChar LaTeX
6388  how to
6389  display it).
6390  So, in general, when you define a new \SpecialChar LyX
6391  construct, you must always do two
6392  quite separate things: (i)
6393 \begin_inset space ~
6394 \end_inset
6395
6396 tell \SpecialChar LyX
6397  how to translate it into \SpecialChar LaTeX
6398  and (ii)
6399 \begin_inset space ~
6400 \end_inset
6401
6402 tell \SpecialChar LyX
6403  how to display it.
6404 \end_layout
6405
6406 \begin_layout Standard
6407 Much the same is true, of course, as regards \SpecialChar LyX
6408 's other backend formats, though
6409  XHTML is in some ways different, because in that case \SpecialChar LyX
6410  
6411 \emph on
6412 is
6413 \emph default
6414  able, to some extent, to use information about how it should display a
6415  paragraph on the screen to output information (in the form of CSS) about
6416  how the paragraph should be displayed in a browser.
6417  Even in this case, however, the distinction between what \SpecialChar LyX
6418  does internally
6419  and how things are rendered externally remains in force, and the two can
6420  be controlled separately.
6421  See 
6422 \begin_inset CommandInset ref
6423 LatexCommand ref
6424 reference "sec:Tags-for-XHTML"
6425
6426 \end_inset
6427
6428  for the details.
6429 \end_layout
6430
6431 \begin_layout Section
6432 Installing new \SpecialChar LaTeX
6433  files
6434 \end_layout
6435
6436 \begin_layout Standard
6437 Some installations may not include a \SpecialChar LaTeX
6438  package or class file that you would
6439  like to use within \SpecialChar LyX
6440 .
6441  For example, you might need Foil\SpecialChar TeX
6442 , a package for preparing slides for overhead
6443  projectors.
6444  Modern \SpecialChar LaTeX
6445  distributions like \SpecialChar TeX
6446 Live (2008 or newer) or MiK\SpecialChar TeX
6447  provide a user interface
6448  for installing such packages.
6449  For example, with MiK\SpecialChar TeX
6450 , you start the program 
6451 \begin_inset Quotes eld
6452 \end_inset
6453
6454 Package
6455 \begin_inset space ~
6456 \end_inset
6457
6458 Manager
6459 \begin_inset Quotes erd
6460 \end_inset
6461
6462  to get a list of available packages.
6463  To install one of them, right click on it or use the corresponding toolbar
6464  button.
6465 \end_layout
6466
6467 \begin_layout Standard
6468 If your \SpecialChar LaTeX
6469  distribution does not provide such a `package manager', or if the
6470  package is not available from your distribution, then follow these steps
6471  to install it manually:
6472 \end_layout
6473
6474 \begin_layout Enumerate
6475 Get the package from 
6476 \begin_inset CommandInset href
6477 LatexCommand href
6478 name "CTAN"
6479 target "http://www.ctan.org/"
6480 literal "false"
6481
6482 \end_inset
6483
6484  or wherever.
6485 \end_layout
6486
6487 \begin_layout Enumerate
6488 If the package contains a file with the ending 
6489 \begin_inset Quotes eld
6490 \end_inset
6491
6492
6493 \begin_inset Flex Code
6494 status collapsed
6495
6496 \begin_layout Plain Layout
6497 .ins
6498 \end_layout
6499
6500 \end_inset
6501
6502
6503 \begin_inset Quotes erd
6504 \end_inset
6505
6506  (is the case for Foil\SpecialChar TeX
6507 ) then open a console, change to the folder of this
6508  file and execute the command 
6509 \begin_inset Flex Code
6510 status collapsed
6511
6512 \begin_layout Plain Layout
6513 latex foiltex.ins
6514 \end_layout
6515
6516 \end_inset
6517
6518 .
6519  You have now unpacked the package and have all files to install it.
6520  Most \SpecialChar LaTeX
6521 -packages are not packed and you can skip this step.
6522 \end_layout
6523
6524 \begin_layout Enumerate
6525 Now you need to decide if the package should be available for all users
6526  or only for you.
6527 \end_layout
6528
6529 \begin_deeper
6530 \begin_layout Enumerate
6531 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6532  for all users on your system, then install it in your `local' \SpecialChar TeX
6533  tree, otherwise
6534  install it in your own `user' \SpecialChar TeX
6535  tree.
6536  Where these trees should be created, if they do not already exist, depends
6537  on your system.
6538  To find this out, look in the file 
6539 \begin_inset Flex Code
6540 status collapsed
6541
6542 \begin_layout Plain Layout
6543 texmf.cnf
6544 \end_layout
6545
6546 \end_inset
6547
6548 .
6549 \begin_inset Foot
6550 status collapsed
6551
6552 \begin_layout Plain Layout
6553 This is usually in the directory 
6554 \begin_inset Flex Code
6555 status collapsed
6556
6557 \begin_layout Plain Layout
6558 $TEXMF/web2c
6559 \end_layout
6560
6561 \end_inset
6562
6563 , though you can execute the command 
6564 \begin_inset Flex Code
6565 status collapsed
6566
6567 \begin_layout Plain Layout
6568 kpsewhich texmf.cnf
6569 \end_layout
6570
6571 \end_inset
6572
6573  to locate it.
6574 \end_layout
6575
6576 \end_inset
6577
6578  The location of the `local' \SpecialChar TeX
6579  tree is defined by the 
6580 \begin_inset Flex Code
6581 status collapsed
6582
6583 \begin_layout Plain Layout
6584 TEXMFLOCAL
6585 \end_layout
6586
6587 \end_inset
6588
6589  variable; this is usually somewhere like 
6590 \begin_inset Flex Code
6591 status collapsed
6592
6593 \begin_layout Plain Layout
6594 /usr/local/share/texmf
6595 \end_layout
6596
6597 \end_inset
6598
6599  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6600 Live
6601  distribution.
6602  The location of the `user' \SpecialChar TeX
6603  tree is defined by 
6604 \begin_inset Flex Code
6605 status collapsed
6606
6607 \begin_layout Plain Layout
6608 TEXMFHOME
6609 \end_layout
6610
6611 \end_inset
6612
6613  and is commonly 
6614 \begin_inset Flex Code
6615 status collapsed
6616
6617 \begin_layout Plain Layout
6618 $HOME/texmf
6619 \end_layout
6620
6621 \end_inset
6622
6623  or 
6624 \begin_inset Flex Code
6625 status collapsed
6626
6627 \begin_layout Plain Layout
6628
6629 \family sans
6630 $HOME/.texliveXXXX
6631 \end_layout
6632
6633 \end_inset
6634
6635 .
6636  (If these variables are not predefined, you have to define them.) You'll
6637  probably need root permissions to create or modify the `local' tree, but
6638  not for your `user' tree.
6639 \begin_inset Newline newline
6640 \end_inset
6641
6642 In general, it is recommended to install in the user tree because your user
6643  will not be modified or even overwritten when you upgrade your system.
6644  It will typically also be backed up together with everything else when
6645  you backup your home directory (which, of course, you do on a regular basis).
6646 \end_layout
6647
6648 \begin_layout Enumerate
6649 On Windows, if you want the new package to be available for all users on
6650  your system, change to the folder where \SpecialChar LaTeX
6651  is installed and then change to
6652  the subfolder 
6653 \begin_inset Flex Code
6654 status collapsed
6655
6656 \begin_layout Plain Layout
6657 ~
6658 \backslash
6659 tex
6660 \backslash
6661 latex
6662 \end_layout
6663
6664 \end_inset
6665
6666 .
6667  (For MiK\SpecialChar TeX
6668 , this would be by default the folder 
6669 \begin_inset Flex Code
6670 status collapsed
6671
6672 \begin_layout Plain Layout
6673 ~:
6674 \backslash
6675 Programs
6676 \backslash
6677 MiKTeX
6678 \backslash
6679 tex
6680 \backslash
6681 latex
6682 \end_layout
6683
6684 \end_inset
6685
6686 .)
6687 \begin_inset Foot
6688 status collapsed
6689
6690 \begin_layout Plain Layout
6691 Note that this will be the correct path only on English installations.
6692  On a German one, it would be 
6693 \begin_inset Flex Code
6694 status collapsed
6695
6696 \begin_layout Plain Layout
6697 ~:
6698 \backslash
6699 Programme
6700 \backslash
6701 MiKTeX
6702 \backslash
6703 tex
6704 \backslash
6705 latex
6706 \end_layout
6707
6708 \end_inset
6709
6710 , and similarly for other languages.
6711 \end_layout
6712
6713 \end_inset
6714
6715  Create there a new folder 
6716 \begin_inset Flex Code
6717 status collapsed
6718
6719 \begin_layout Plain Layout
6720 foiltex
6721 \end_layout
6722
6723 \end_inset
6724
6725  and copy all files of the package into it.
6726  
6727 \begin_inset Newline newline
6728 \end_inset
6729
6730 If the package should only available for you or you don't have admin permissions
6731 , do the same, but in the local \SpecialChar LaTeX
6732  folder.
6733  E.
6734 \begin_inset space \thinspace{}
6735 \end_inset
6736
6737 g., for MiK\SpecialChar TeX
6738
6739 \begin_inset space ~
6740 \end_inset
6741
6742 2.8 under Windows XP, this would be the folder:
6743 \begin_inset Newline newline
6744 \end_inset
6745
6746
6747 \family sans
6748
6749 \begin_inset Flex Code
6750 status collapsed
6751
6752 \begin_layout Plain Layout
6753 ~:
6754 \backslash
6755 Documents and Settings
6756 \backslash
6757 <username>
6758 \backslash
6759 Application Data
6760 \backslash
6761
6762 \end_layout
6763
6764 \end_inset
6765
6766
6767 \begin_inset Newline newline
6768 \end_inset
6769
6770
6771 \family default
6772
6773 \begin_inset Phantom HPhantom
6774 status open
6775
6776 \begin_layout Plain Layout
6777
6778 \family sans
6779 ~:
6780 \backslash
6781
6782 \end_layout
6783
6784 \end_inset
6785
6786
6787 \begin_inset Flex Code
6788 status collapsed
6789
6790 \begin_layout Plain Layout
6791 MiKTeX
6792 \backslash
6793 2.8
6794 \backslash
6795 tex
6796 \backslash
6797 latex
6798 \end_layout
6799
6800 \end_inset
6801
6802
6803 \begin_inset Newline newline
6804 \end_inset
6805
6806 On Vista, it would be:
6807 \begin_inset Newline newline
6808 \end_inset
6809
6810
6811 \begin_inset Flex Code
6812 status collapsed
6813
6814 \begin_layout Plain Layout
6815 ~:
6816 \backslash
6817 Users
6818 \backslash
6819 <username>
6820 \backslash
6821 AppData
6822 \backslash
6823 Roaming
6824 \backslash
6825 2.8
6826 \backslash
6827 MiKTeX
6828 \backslash
6829 tex
6830 \backslash
6831 latex
6832 \end_layout
6833
6834 \end_inset
6835
6836
6837 \end_layout
6838
6839 \end_deeper
6840 \begin_layout Enumerate
6841 Now one only need to tell \SpecialChar LaTeX
6842  that there are new files.
6843  This depends on the used \SpecialChar LaTeX
6844 -Distribution:
6845 \end_layout
6846
6847 \begin_deeper
6848 \begin_layout Enumerate
6849 For \SpecialChar TeX
6850 Live execute the command 
6851 \begin_inset Flex Code
6852 status collapsed
6853
6854 \begin_layout Plain Layout
6855 texhash
6856 \end_layout
6857
6858 \end_inset
6859
6860  from a console.
6861  If you installed the package for all users, then you will probably need
6862  to have root permissions for that.
6863 \end_layout
6864
6865 \begin_layout Enumerate
6866 For MiK\SpecialChar TeX
6867 , if you have installed the package for all users, start the program
6868  
6869 \begin_inset Quotes eld
6870 \end_inset
6871
6872 Settings
6873 \begin_inset space ~
6874 \end_inset
6875
6876 (Admin)
6877 \begin_inset Quotes erd
6878 \end_inset
6879
6880  and press the button marked 
6881 \begin_inset Quotes eld
6882 \end_inset
6883
6884 Refresh FNDB
6885 \begin_inset Quotes erd
6886 \end_inset
6887
6888 .
6889  Otherwise start the program 
6890 \begin_inset Quotes eld
6891 \end_inset
6892
6893 Settings
6894 \begin_inset Quotes erd
6895 \end_inset
6896
6897  and do the same.
6898 \end_layout
6899
6900 \end_deeper
6901 \begin_layout Enumerate
6902 Finally, you need to tell \SpecialChar LyX
6903  that there are new packages available.
6904  So, in \SpecialChar LyX
6905 , use the menu 
6906 \begin_inset Flex Noun
6907 status collapsed
6908
6909 \begin_layout Plain Layout
6910 Tools
6911 \family sans
6912 \SpecialChar menuseparator
6913 Reconfigure
6914 \end_layout
6915
6916 \end_inset
6917
6918  and then restart \SpecialChar LyX
6919 .
6920 \end_layout
6921
6922 \begin_layout Standard
6923 Now the package is installed.
6924  In our example, the document class 
6925 \begin_inset Flex Code
6926 status collapsed
6927
6928 \begin_layout Plain Layout
6929 FoilTex
6930 \end_layout
6931
6932 \end_inset
6933
6934  will now be available under 
6935 \begin_inset Flex Noun
6936 status collapsed
6937
6938 \begin_layout Plain Layout
6939 Document\SpecialChar menuseparator
6940 Settings\SpecialChar menuseparator
6941 Document Class
6942 \end_layout
6943
6944 \end_inset
6945
6946  (in the 
6947 \begin_inset Quotes eld
6948 \end_inset
6949
6950 Presentations
6951 \begin_inset Quotes erd
6952 \end_inset
6953
6954  category).
6955  
6956 \end_layout
6957
6958 \begin_layout Standard
6959 If you would like to use a \SpecialChar LaTeX
6960  document class that is not even listed in the
6961  menu 
6962 \begin_inset Flex Noun
6963 status collapsed
6964
6965 \begin_layout Plain Layout
6966 Document\SpecialChar menuseparator
6967 Settings\SpecialChar menuseparator
6968 Document Class
6969 \end_layout
6970
6971 \end_inset
6972
6973 , then you need to create a `layout' file for it.
6974  That is the topic of the next section.
6975 \end_layout
6976
6977 \begin_layout Section
6978 Types of layout files
6979 \end_layout
6980
6981 \begin_layout Standard
6982 This section describes the various sorts of \SpecialChar LyX
6983  files that contain layout informati
6984 on.
6985  These files describe various paragraph and character styles, determining
6986  how \SpecialChar LyX
6987  should display them and how they should be translated into \SpecialChar LaTeX
6988 , DocBook,
6989  XHTML, or whatever output format is being used.
6990  
6991 \end_layout
6992
6993 \begin_layout Standard
6994 We shall try to provide a thorough description of the process of writing
6995  layout files here.
6996  However, there are so many different types of documents supported even
6997  by just \SpecialChar LaTeX
6998  that we can't hope to cover every different possibility or problem
6999  you might encounter.
7000  The \SpecialChar LyX
7001  users' list is frequented by people with lots of experience with layout
7002  design who are willing to share what they've learned, so please feel free
7003  to ask questions there.
7004 \end_layout
7005
7006 \begin_layout Standard
7007 As you prepare to write a new layout, it is extremely helpful to look at
7008  the layouts distributed with \SpecialChar LyX
7009 .
7010  If you write a \SpecialChar LyX
7011  layout for a \SpecialChar LaTeX
7012  document class that might also be used by
7013  others, or write a module that might be useful to others, then you should
7014  consider posting your layout to the 
7015 \begin_inset CommandInset href
7016 LatexCommand href
7017 name "layout section on the LyX wiki"
7018 target "https://wiki.lyx.org/Layouts/Layouts"
7019 literal "false"
7020
7021 \end_inset
7022
7023  or even to the \SpecialChar LyX
7024  developers' list, so that it might be included in \SpecialChar LyX
7025  itself.
7026 \begin_inset Foot
7027 status collapsed
7028
7029 \begin_layout Plain Layout
7030 Note that \SpecialChar LyX
7031  is licensed under the General Public License, so any material
7032  that is contributed to \SpecialChar LyX
7033  must be similarly licensed.
7034 \end_layout
7035
7036 \end_inset
7037
7038
7039 \end_layout
7040
7041 \begin_layout Subsection
7042 Layout modules
7043 \begin_inset CommandInset label
7044 LatexCommand label
7045 name "subsec:Layout-modules"
7046
7047 \end_inset
7048
7049
7050 \end_layout
7051
7052 \begin_layout Standard
7053 We have spoken to this point about `layout files'.
7054  But there are different sorts of files that contain layout information.
7055  Layout files, strictly so called, have the 
7056 \begin_inset Flex Code
7057 status collapsed
7058
7059 \begin_layout Plain Layout
7060 .layout
7061 \end_layout
7062
7063 \end_inset
7064
7065  extension and provide \SpecialChar LyX
7066  with information about document classes.
7067  Since \SpecialChar LyX
7068  1.6 layout information can also be contained in layout 
7069 \emph on
7070 modules
7071 \emph default
7072 , which have the 
7073 \begin_inset Flex Code
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 .module
7078 \end_layout
7079
7080 \end_inset
7081
7082  extension.
7083  Modules are to \SpecialChar LaTeX
7084  packages much as layouts are to \SpecialChar LaTeX
7085  classes, and some modules—such
7086  as the 
7087 \begin_inset Flex Code
7088 status collapsed
7089
7090 \begin_layout Plain Layout
7091 endnotes
7092 \end_layout
7093
7094 \end_inset
7095
7096  module—specifically provide support for one package.
7097  In a sense, layout modules are similar to included
7098 \begin_inset Foot
7099 status collapsed
7100
7101 \begin_layout Plain Layout
7102 These can have any extension, but by convention have the 
7103 \begin_inset Flex Code
7104 status collapsed
7105
7106 \begin_layout Plain Layout
7107 .inc
7108 \end_layout
7109
7110 \end_inset
7111
7112  extension.
7113 \end_layout
7114
7115 \end_inset
7116
7117  files—files like 
7118 \begin_inset Flex Code
7119 status collapsed
7120
7121 \begin_layout Plain Layout
7122 stdsections.inc
7123 \end_layout
7124
7125 \end_inset
7126
7127 —in that modules are not specific to a given document class but may be used
7128  with many different classes.
7129  The difference is that using an included file with 
7130 \begin_inset Flex Code
7131 status collapsed
7132
7133 \begin_layout Plain Layout
7134 article.cls
7135 \end_layout
7136
7137 \end_inset
7138
7139  requires editing that file.
7140  Modules, by contrast, are selected in the 
7141 \begin_inset Flex Noun
7142 status collapsed
7143
7144 \begin_layout Plain Layout
7145 Document\SpecialChar menuseparator
7146 Settings
7147 \end_layout
7148
7149 \end_inset
7150
7151  dialog.
7152 \end_layout
7153
7154 \begin_layout Standard
7155 Building modules is the easiest way to get started with layout editing,
7156  since it can be as simple as adding a single new paragraph style or flex
7157  inset.
7158  But modules may, in principle, contain anything a layout file can contain.
7159 \end_layout
7160
7161 \begin_layout Standard
7162 After creating a new module and copying it to the 
7163 \begin_inset Flex Code
7164 status collapsed
7165
7166 \begin_layout Plain Layout
7167 layouts/
7168 \end_layout
7169
7170 \end_inset
7171
7172  folder, you will need to reconfigure and then restart \SpecialChar LyX
7173  for the module to
7174  appear in the menu.
7175  However, changes you make to the module will be seen immediately, if you
7176  open 
7177 \begin_inset Flex Noun
7178 status collapsed
7179
7180 \begin_layout Plain Layout
7181 Document\SpecialChar menuseparator
7182 Settings
7183 \end_layout
7184
7185 \end_inset
7186
7187 , highlight something, and then hit 
7188 \begin_inset Quotes eld
7189 \end_inset
7190
7191 OK
7192 \begin_inset Quotes erd
7193 \end_inset
7194
7195 .
7196  
7197 \emph on
7198 It is strongly recommended that you save your work before doing this
7199 \emph default
7200 .
7201  In fact, 
7202 \emph on
7203 it is strongly recommended that you not attempt to edit modules while simultaneo
7204 usly working on actual documents
7205 \emph default
7206 .
7207  Though of course the developers strive to keep \SpecialChar LyX
7208  stable in such situations,
7209  syntax errors and the like in your module file could cause strange behavior.
7210 \end_layout
7211
7212 \begin_layout Subsubsection
7213 Local Layout
7214 \end_layout
7215
7216 \begin_layout Standard
7217 Modules are to \SpecialChar LyX
7218  as packages are to \SpecialChar LaTeX
7219 .
7220  Sometimes, however, you find yourself wanting a specific inset or character
7221  style just for one document and writing a module that will also be available
7222  to other documents makes little sense.
7223  What you need is \SpecialChar LyX
7224 's 
7225 \begin_inset Quotes eld
7226 \end_inset
7227
7228 Local Layout
7229 \begin_inset Quotes erd
7230 \end_inset
7231
7232 .
7233 \end_layout
7234
7235 \begin_layout Standard
7236 You will find it under 
7237 \family sans
7238 Document\SpecialChar menuseparator
7239 Settings\SpecialChar menuseparator
7240 Local Layout
7241 \family default
7242 .
7243  The large text box allows you to enter anything that you might enter in
7244  a layout file or module.
7245  You can think of a document's local layout, in fact, as a module that belongs
7246  just to it.
7247  So, in particular, you must enter a 
7248 \begin_inset Flex Code
7249 status collapsed
7250
7251 \begin_layout Plain Layout
7252 Format
7253 \end_layout
7254
7255 \end_inset
7256
7257  tag.
7258  Any format is acceptable, but one would normally use the format current
7259  at the time.
7260  (In \SpecialChar LyX
7261  
7262 \begin_inset Info
7263 type  "lyxinfo"
7264 arg   "version"
7265 \end_inset
7266
7267 , the current layout format is 
7268 \begin_inset Info
7269 type  "lyxinfo"
7270 arg   "layoutformat"
7271 \end_inset
7272
7273 .)
7274 \end_layout
7275
7276 \begin_layout Standard
7277 When you have entered something in the 
7278 \begin_inset Flex Code
7279 status collapsed
7280
7281 \begin_layout Plain Layout
7282 Local Layout
7283 \end_layout
7284
7285 \end_inset
7286
7287  pane, \SpecialChar LyX
7288  will enable the 
7289 \begin_inset Quotes eld
7290 \end_inset
7291
7292 Validate
7293 \begin_inset Quotes erd
7294 \end_inset
7295
7296  button at the bottom.
7297  Clicking this button will cause \SpecialChar LyX
7298  to determine whether what you have entered
7299  is valid layout information for the chosen format.
7300  \SpecialChar LyX
7301  will report the result but, unfortunately, will not tell you what errors
7302  there might have been.
7303  These will be written to the terminal, however, if \SpecialChar LyX
7304  is started from a terminal.
7305  You will not be permitted to save your local layout until you have entered
7306  something valid.
7307 \end_layout
7308
7309 \begin_layout Standard
7310 The warnings at the end of the previous section apply here, too.
7311  Do not play with local layout while you are actually working, especially
7312  if you have not saved your document.
7313  That said, using local layout with a test document can be a very convenient
7314  way to try out layout ideas, or even to start developing a module.
7315 \end_layout
7316
7317 \begin_layout Subsection
7318 Layout for 
7319 \begin_inset Flex Noun
7320 status collapsed
7321
7322 \begin_layout Plain Layout
7323 .sty
7324 \end_layout
7325
7326 \end_inset
7327
7328  files
7329 \end_layout
7330
7331 \begin_layout Standard
7332 There are two situations you are likely to encounter when wanting to support
7333  a new \SpecialChar LaTeX
7334  document class, involving style (
7335 \begin_inset Flex Code
7336 status collapsed
7337
7338 \begin_layout Plain Layout
7339 .sty
7340 \end_layout
7341
7342 \end_inset
7343
7344 ) files and \SpecialChar LaTeX2e
7345  class (
7346 \begin_inset Flex Code
7347 status collapsed
7348
7349 \begin_layout Plain Layout
7350 .cls
7351 \end_layout
7352
7353 \end_inset
7354
7355 ) .
7356  Supporting a style file is usually fairly easy.
7357  Supporting a new class file is a bit harder.
7358  We'll discuss the former in this section and the latter in the next.
7359  
7360 \change_deleted 5863208 1594239023
7361 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7362 \change_unchanged
7363
7364 \end_layout
7365
7366 \begin_layout Standard
7367 The easier case is the one in which your new document class is provided
7368  as a style file that is to be used in conjunction with an already supported
7369  document class.
7370  For the sake of the example, we'll assume that the style file is called
7371  
7372 \begin_inset Flex Noun
7373 status collapsed
7374
7375 \begin_layout Plain Layout
7376 myclass.sty
7377 \end_layout
7378
7379 \end_inset
7380
7381  and that it is meant to be used with 
7382 \begin_inset Flex Noun
7383 status collapsed
7384
7385 \begin_layout Plain Layout
7386 report.cls
7387 \end_layout
7388
7389 \end_inset
7390
7391 , which is a standard class.
7392  
7393 \end_layout
7394
7395 \begin_layout Standard
7396 Start by copying the existing class's layout file into your local directory:
7397 \begin_inset Foot
7398 status collapsed
7399
7400 \begin_layout Plain Layout
7401 Of course, which directory is your local directory will vary by platform,
7402  and \SpecialChar LyX
7403  allows you to specify your local directory on startup, too, using
7404  the 
7405 \begin_inset Flex Code
7406 status collapsed
7407
7408 \begin_layout Plain Layout
7409 -userdir
7410 \end_layout
7411
7412 \end_inset
7413
7414  option.
7415 \end_layout
7416
7417 \end_inset
7418
7419
7420 \end_layout
7421
7422 \begin_layout LyX-Code
7423 cp report.layout ~/.lyx/layouts/myclass.layout
7424 \end_layout
7425
7426 \begin_layout Standard
7427 Then edit 
7428 \begin_inset Flex Code
7429 status collapsed
7430
7431 \begin_layout Plain Layout
7432 myclass.layout
7433 \end_layout
7434
7435 \end_inset
7436
7437  and change the line: 
7438 \end_layout
7439
7440 \begin_layout LyX-Code
7441
7442 \backslash
7443 DeclareLaTeXClass{Report (Standard Class)}
7444 \end_layout
7445
7446 \begin_layout Standard
7447 to read
7448 \end_layout
7449
7450 \begin_layout LyX-Code
7451
7452 \backslash
7453 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7454 \end_layout
7455
7456 \begin_layout Standard
7457 Then add:
7458 \end_layout
7459
7460 \begin_layout LyX-Code
7461 Preamble 
7462 \begin_inset Newline newline
7463 \end_inset
7464
7465     
7466 \backslash
7467 usepackage{myclass}
7468 \begin_inset Newline newline
7469 \end_inset
7470
7471 EndPreamble
7472 \end_layout
7473
7474 \begin_layout Standard
7475 near the top of the file.
7476 \end_layout
7477
7478 \begin_layout Standard
7479 Start \SpecialChar LyX
7480  and select 
7481 \begin_inset Flex Noun
7482 status collapsed
7483
7484 \begin_layout Plain Layout
7485 Tools\SpecialChar menuseparator
7486 Reconfigure
7487 \end_layout
7488
7489 \end_inset
7490
7491 .
7492  Then restart \SpecialChar LyX
7493  and try creating a new document.
7494  You should see "
7495 \begin_inset Flex Noun
7496 status collapsed
7497
7498 \begin_layout Plain Layout
7499 Report (My Class)
7500 \end_layout
7501
7502 \end_inset
7503
7504 " as a document class option in the 
7505 \begin_inset Flex Noun
7506 status collapsed
7507
7508 \begin_layout Plain Layout
7509 Document\SpecialChar menuseparator
7510 Settings
7511 \end_layout
7512
7513 \end_inset
7514
7515  dialog.
7516  It is likely that some of the sectioning commands and such in your new
7517  class will work differently from how they worked in the base class—
7518 \begin_inset Flex Code
7519 status collapsed
7520
7521 \begin_layout Plain Layout
7522 report
7523 \end_layout
7524
7525 \end_inset
7526
7527  in this example—so you can fiddle around with the settings for the different
7528  sections if you wish.
7529  The layout information for sections is contained in 
7530 \begin_inset Flex Code
7531 status collapsed
7532
7533 \begin_layout Plain Layout
7534 stdsections.inc
7535 \end_layout
7536
7537 \end_inset
7538
7539 , but you do not need to copy and change this file.
7540  Instead, you can simply add your changes to your layout file, after the
7541  line 
7542 \begin_inset Flex Code
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546 Input stdclass.inc
7547 \end_layout
7548
7549 \end_inset
7550
7551 , which itself includes 
7552 \begin_inset Flex Code
7553 status collapsed
7554
7555 \begin_layout Plain Layout
7556 stdsections.inc
7557 \end_layout
7558
7559 \end_inset
7560
7561 .
7562  For example, you might add these lines:
7563 \end_layout
7564
7565 \begin_layout LyX-Code
7566 Style Chapter
7567 \end_layout
7568
7569 \begin_layout LyX-Code
7570     Font
7571 \end_layout
7572
7573 \begin_layout LyX-Code
7574         Family Sans
7575 \end_layout
7576
7577 \begin_layout LyX-Code
7578     EndFont
7579 \end_layout
7580
7581 \begin_layout LyX-Code
7582 End
7583 \end_layout
7584
7585 \begin_layout Standard
7586 to change the font for chapter headings to sans-serif.
7587  This will override (or, in this case, add to) the existing declaration
7588  for the Chapter style.
7589  
7590 \end_layout
7591
7592 \begin_layout Standard
7593 Your new package may also provide commands or environments not present in
7594  the base class.
7595  In this case, you will want to add these to the layout file.
7596  See 
7597 \begin_inset CommandInset ref
7598 LatexCommand ref
7599 reference "sec:TextClass"
7600
7601 \end_inset
7602
7603  for information on how to do so.
7604 \end_layout
7605
7606 \begin_layout Standard
7607 If 
7608 \begin_inset Flex Noun
7609 status collapsed
7610
7611 \begin_layout Plain Layout
7612 myclass.sty
7613 \end_layout
7614
7615 \end_inset
7616
7617  can be used with several different document classes, and even if it cannot,
7618  you might find it easiest just to write a module that you can load with
7619  the base class.
7620  The simplest possible such module would be:
7621 \end_layout
7622
7623 \begin_layout LyX-Code
7624 #
7625 \backslash
7626 DeclareLyXModule{My Class} 
7627 \end_layout
7628
7629 \begin_layout LyX-Code
7630 #DescriptionBegin 
7631 \end_layout
7632
7633 \begin_layout LyX-Code
7634 #Support for myclass.sty.
7635 \end_layout
7636
7637 \begin_layout LyX-Code
7638 #DescriptionEnd
7639 \begin_inset Newline newline
7640 \end_inset
7641
7642
7643 \end_layout
7644
7645 \begin_layout LyX-Code
7646 Format 
7647 \begin_inset Info
7648 type  "lyxinfo"
7649 arg   "layoutformat"
7650 \end_inset
7651
7652
7653 \begin_inset Newline newline
7654 \end_inset
7655
7656
7657 \end_layout
7658
7659 \begin_layout LyX-Code
7660 Preamble
7661 \begin_inset Newline newline
7662 \end_inset
7663
7664     
7665 \backslash
7666 usepackage{myclass}
7667 \begin_inset Newline newline
7668 \end_inset
7669
7670 EndPreamble
7671 \end_layout
7672
7673 \begin_layout Standard
7674 A more complex module might modify the behavior of some existing constructs
7675  or define some new ones.
7676  Again, see 
7677 \begin_inset CommandInset ref
7678 LatexCommand ref
7679 reference "sec:TextClass"
7680
7681 \end_inset
7682
7683  for discussion.
7684 \end_layout
7685
7686 \begin_layout Subsection
7687 Layout for 
7688 \begin_inset Flex Noun
7689 status collapsed
7690
7691 \begin_layout Plain Layout
7692 .cls
7693 \end_layout
7694
7695 \end_inset
7696
7697  files
7698 \end_layout
7699
7700 \begin_layout Standard
7701 There are two possibilities here.
7702  One is that the class file is itself based upon an existing document class.
7703  For example, many thesis classes are based upon 
7704 \begin_inset Flex Noun
7705 status collapsed
7706
7707 \begin_layout Plain Layout
7708 book.cls
7709 \end_layout
7710
7711 \end_inset
7712
7713 .
7714  To see whether yours is, look for a line like
7715 \end_layout
7716
7717 \begin_layout LyX-Code
7718
7719 \backslash
7720 LoadClass{book}
7721 \end_layout
7722
7723 \begin_layout Standard
7724 in the file.
7725  If so, then you may proceed largely as in the previous section, though
7726  the 
7727 \begin_inset Flex Code
7728 status collapsed
7729
7730 \begin_layout Plain Layout
7731 Declare\SpecialChar LaTeX
7732 Class
7733 \end_layout
7734
7735 \end_inset
7736
7737  line will be different.
7738  If your new class is 
7739 \begin_inset Flex Code
7740 status collapsed
7741
7742 \begin_layout Plain Layout
7743 thesis
7744 \end_layout
7745
7746 \end_inset
7747
7748  and it is based upon 
7749 \begin_inset Flex Code
7750 status collapsed
7751
7752 \begin_layout Plain Layout
7753 book
7754 \end_layout
7755
7756 \end_inset
7757
7758 , then the line should read:
7759 \begin_inset Foot
7760 status collapsed
7761
7762 \begin_layout Plain Layout
7763 And it will be easiest if you save the file to 
7764 \begin_inset Flex Code
7765 status collapsed
7766
7767 \begin_layout Plain Layout
7768 thesis.layout
7769 \end_layout
7770
7771 \end_inset
7772
7773 : \SpecialChar LyX
7774  assumes that the document class has the same name as the layout file.
7775  
7776 \end_layout
7777
7778 \end_inset
7779
7780
7781 \end_layout
7782
7783 \begin_layout LyX-Code
7784
7785 \backslash
7786 DeclareLaTeXClass[thesis,book]{thesis}
7787 \end_layout
7788
7789 \begin_layout Standard
7790 If, on the other hand, the new class is not based upon an existing class,
7791  you will probably have to 
7792 \begin_inset Quotes eld
7793 \end_inset
7794
7795 roll your own
7796 \begin_inset Quotes erd
7797 \end_inset
7798
7799  layout.
7800  We strongly suggest copying an existing layout file which uses a similar
7801  \SpecialChar LaTeX
7802  class and then modifying it, if you can do so.
7803  At least use an existing file as a starting point so you can find out what
7804  items you need to worry about.
7805  Again, the specifics are covered below.
7806 \end_layout
7807
7808 \begin_layout Subsection
7809 Creating templates
7810 \begin_inset CommandInset label
7811 LatexCommand label
7812 name "subsec:Creating-Templates"
7813
7814 \end_inset
7815
7816
7817 \end_layout
7818
7819 \begin_layout Standard
7820 Once you have written a layout file for a new document class, you might
7821  want to consider writing a 
7822 \emph on
7823 template
7824 \emph default
7825  for it, too.
7826  A template acts as a kind of tutorial for your layout, showing how it might
7827  be used, though containing dummy content.
7828  You can of course look at the various templates included with \SpecialChar LyX
7829  for ideas.
7830 \end_layout
7831
7832 \begin_layout Standard
7833 Templates are created just like usual documents: using \SpecialChar LyX
7834 .
7835  The only difference is that usual documents contain all possible settings,
7836  including the font scheme and the paper size.
7837  Usually a user doesn't want a template to overwrite his preferred settings
7838  for such parameters.
7839  For that reason, the designer of a template should remove the corresponding
7840  commands like 
7841 \begin_inset Flex Code
7842 status collapsed
7843
7844 \begin_layout Plain Layout
7845
7846 \backslash
7847 font_roman
7848 \end_layout
7849
7850 \end_inset
7851
7852  or 
7853 \begin_inset Flex Code
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857
7858 \backslash
7859 papersize
7860 \end_layout
7861
7862 \end_inset
7863
7864  from the template \SpecialChar LyX
7865  file.
7866  This can be done with any simple text-editor, for example 
7867 \begin_inset Flex Code
7868 status collapsed
7869
7870 \begin_layout Plain Layout
7871 vi
7872 \end_layout
7873
7874 \end_inset
7875
7876  or 
7877 \begin_inset Flex Code
7878 status collapsed
7879
7880 \begin_layout Plain Layout
7881 notepad
7882 \end_layout
7883
7884 \end_inset
7885
7886 .
7887 \end_layout
7888
7889 \begin_layout Standard
7890 Put the edited template files you create in 
7891 \begin_inset Flex Code
7892 status collapsed
7893
7894 \begin_layout Plain Layout
7895 UserDir/templates/
7896 \end_layout
7897
7898 \end_inset
7899
7900 , copy the ones you use from the global template directory in 
7901 \begin_inset Flex Code
7902 status collapsed
7903
7904 \begin_layout Plain Layout
7905 LyXDir/templates/
7906 \end_layout
7907
7908 \end_inset
7909
7910  to the same place, and redefine the template path in the 
7911 \begin_inset Flex Noun
7912 status collapsed
7913
7914 \begin_layout Plain Layout
7915 Tools\SpecialChar menuseparator
7916 Preferences\SpecialChar menuseparator
7917 Paths
7918 \end_layout
7919
7920 \end_inset
7921
7922  dialog.
7923 \end_layout
7924
7925 \begin_layout Standard
7926 Note, by the way, that there is a template which has a particular meaning:
7927 \begin_inset Newline linebreak
7928 \end_inset
7929
7930
7931 \begin_inset Flex Code
7932 status collapsed
7933
7934 \begin_layout Plain Layout
7935 defaults.lyx
7936 \end_layout
7937
7938 \end_inset
7939
7940 .
7941  This template is loaded every time you create a new document with 
7942 \begin_inset Flex Noun
7943 status collapsed
7944
7945 \begin_layout Plain Layout
7946 File\SpecialChar menuseparator
7947 New
7948 \end_layout
7949
7950 \end_inset
7951
7952  in order to provide useful defaults.
7953  To create this template from inside \SpecialChar LyX
7954 , all you have to do is to open a document
7955  with the correct settings, and use the 
7956 \begin_inset Flex Noun
7957 status collapsed
7958
7959 \begin_layout Plain Layout
7960 Save as Document Defaults
7961 \end_layout
7962
7963 \end_inset
7964
7965  button.
7966 \end_layout
7967
7968 \begin_layout Subsection
7969 Upgrading old layout files
7970 \end_layout
7971
7972 \begin_layout Standard
7973 The format of layout files changes with each \SpecialChar LyX
7974  release, so old layout files
7975  need to be converted to the new format.
7976  If \SpecialChar LyX
7977  reads a layout file in an older format, it automatically calls the
7978  script 
7979 \begin_inset Flex Code
7980 status collapsed
7981
7982 \begin_layout Plain Layout
7983 layout2layout.py
7984 \end_layout
7985
7986 \end_inset
7987
7988  to convert it to a temporary file in current format.
7989  The original file is left untouched.
7990  If you use the layout file often, then, you may want to convert it permanently,
7991  so that \SpecialChar LyX
7992  does not have to do so itself every time.
7993  To do this, you can call the converter manually:
7994 \end_layout
7995
7996 \begin_layout Enumerate
7997 rename the file 
7998 \begin_inset Flex Code
7999 status collapsed
8000
8001 \begin_layout Plain Layout
8002 myclass.layout
8003 \end_layout
8004
8005 \end_inset
8006
8007  to 
8008 \begin_inset Flex Code
8009 status collapsed
8010
8011 \begin_layout Plain Layout
8012 myclass.old
8013 \end_layout
8014
8015 \end_inset
8016
8017
8018 \end_layout
8019
8020 \begin_layout Enumerate
8021 Call the command
8022 \begin_inset Newline newline
8023 \end_inset
8024
8025
8026 \begin_inset Flex Code
8027 status collapsed
8028
8029 \begin_layout Plain Layout
8030 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8031 \end_layout
8032
8033 \end_inset
8034
8035
8036 \begin_inset Newline newline
8037 \end_inset
8038
8039 where 
8040 \begin_inset Flex Code
8041 status collapsed
8042
8043 \begin_layout Plain Layout
8044 LyXDir
8045 \end_layout
8046
8047 \end_inset
8048
8049  is the name of your \SpecialChar LyX
8050  system directory.
8051 \end_layout
8052
8053 \begin_layout Standard
8054 Note that manual conversion does not affect included files, so these will
8055  have to be converted separately.
8056 \end_layout
8057
8058 \begin_layout Subsection
8059 \begin_inset CommandInset label
8060 LatexCommand label
8061 name "subsec:Cite-Engine-Files"
8062
8063 \end_inset
8064
8065 Cite engine files
8066 \end_layout
8067
8068 \begin_layout Standard
8069 A specific form of layout files are the so-called 
8070 \begin_inset Flex Code
8071 status collapsed
8072
8073 \begin_layout Plain Layout
8074 *.citeengine
8075 \end_layout
8076
8077 \end_inset
8078
8079  files that are located in the 
8080 \begin_inset Flex Code
8081 status collapsed
8082
8083 \begin_layout Plain Layout
8084 citeengines/
8085 \end_layout
8086
8087 \end_inset
8088
8089  sub-directory.
8090  Their purpose is to define the specifics of \SpecialChar LaTeX
8091  packages aimed at bibliography
8092  generation, such as 
8093 \family sans
8094 natbib
8095 \family default
8096 ,
8097 \family sans
8098  jurabib
8099 \family default
8100  or 
8101 \family sans
8102 biblatex
8103 \family default
8104 , but also the way how normal Bib\SpecialChar TeX
8105  citations (without additional packages)
8106  are handled in \SpecialChar LyX
8107  is defined in such a file.
8108  
8109 \end_layout
8110
8111 \begin_layout Standard
8112 More specifically, it is defined which packages \SpecialChar LyX
8113  needs to load, which citation
8114  commands are available, how these are to be displayed in \SpecialChar LyX
8115  (in the workarea,
8116  the dialogs, the context menus) as well as in the XHTML and plain text
8117  output.
8118  Furthermore, the files specify available style variants (author-year, numerical
8119 , etc.) and their specifics.
8120  The cite engine files are also used to generate the options that are available
8121  in 
8122 \family sans
8123 Document\SpecialChar menuseparator
8124 Settings\SpecialChar menuseparator
8125 Bibliography\SpecialChar menuseparator
8126 Style engine
8127 \family default
8128 .
8129 \end_layout
8130
8131 \begin_layout Standard
8132 Even though a cite engine file is essentially a normal layout file that
8133  could theoretically include any layout information, it usually primarily
8134  includes some specific parameters such as 
8135 \begin_inset Flex Code
8136 status collapsed
8137
8138 \begin_layout Plain Layout
8139 MaxCiteNames
8140 \end_layout
8141
8142 \end_inset
8143
8144
8145 \begin_inset Flex Code
8146 status collapsed
8147
8148 \begin_layout Plain Layout
8149 CiteFramework
8150 \end_layout
8151
8152 \end_inset
8153
8154
8155 \begin_inset Flex Code
8156 status collapsed
8157
8158 \begin_layout Plain Layout
8159 CiteEngine
8160 \end_layout
8161
8162 \end_inset
8163
8164  and 
8165 \begin_inset Flex Code
8166 status collapsed
8167
8168 \begin_layout Plain Layout
8169 CiteFormat
8170 \end_layout
8171
8172 \end_inset
8173
8174  blocks.
8175  The syntax of the latter two is described in 
8176 \begin_inset CommandInset ref
8177 LatexCommand ref
8178 reference "subsec:Citation-engine-description"
8179 plural "false"
8180 caps "false"
8181 noprefix "false"
8182
8183 \end_inset
8184
8185  and 
8186 \begin_inset CommandInset ref
8187 LatexCommand ref
8188 reference "subsec:Citation-format-description"
8189
8190 \end_inset
8191
8192 , as well as in the files themselves.
8193 \end_layout
8194
8195 \begin_layout Section
8196 \begin_inset CommandInset label
8197 LatexCommand label
8198 name "sec:TextClass"
8199
8200 \end_inset
8201
8202 The layout file format
8203 \end_layout
8204
8205 \begin_layout Standard
8206 The following sections describe how layout files are structured and written.
8207  Our advice is to go slowly, save and test often.
8208  It is really not that hard, except that the multitude of options can become
8209  overwhelming, especially if you try to check out too many at once.
8210  It becomes easier if you use existing layouts of \SpecialChar LyX
8211  as examples/reference
8212  or if you modify an existing layout to your needs.
8213 \end_layout
8214
8215 \begin_layout Standard
8216 Note that all the tags used in layout files are case-insensitive.
8217  This means that 
8218 \begin_inset Flex Code
8219 status collapsed
8220
8221 \begin_layout Plain Layout
8222 Style
8223 \end_layout
8224
8225 \end_inset
8226
8227
8228 \begin_inset Flex Code
8229 status collapsed
8230
8231 \begin_layout Plain Layout
8232 style
8233 \end_layout
8234
8235 \end_inset
8236
8237  and 
8238 \begin_inset Flex Code
8239 status collapsed
8240
8241 \begin_layout Plain Layout
8242 StYlE
8243 \end_layout
8244
8245 \end_inset
8246
8247  are really the same tag.
8248  The possible arguments are printed in brackets after the tag's name.
8249  The default argument is typeset 
8250 \begin_inset Flex Code
8251 status collapsed
8252
8253 \begin_layout Plain Layout
8254
8255 \emph on
8256 emphasized
8257 \end_layout
8258
8259 \end_inset
8260
8261 .
8262  If the argument has a data type like 
8263 \begin_inset Quotes eld
8264 \end_inset
8265
8266 string
8267 \begin_inset Quotes erd
8268 \end_inset
8269
8270  or 
8271 \begin_inset Quotes eld
8272 \end_inset
8273
8274 float
8275 \begin_inset Quotes erd
8276 \end_inset
8277
8278 , the default is shown like this: 
8279 \begin_inset Flex Code
8280 status collapsed
8281
8282 \begin_layout Plain Layout
8283 float=
8284 \emph on
8285 default
8286 \end_layout
8287
8288 \end_inset
8289
8290 .
8291 \end_layout
8292
8293 \begin_layout Subsection
8294 The document class declaration and classification
8295 \end_layout
8296
8297 \begin_layout Standard
8298 Lines in a layout file which begin with 
8299 \begin_inset Flex Code
8300 status collapsed
8301
8302 \begin_layout Plain Layout
8303 #
8304 \end_layout
8305
8306 \end_inset
8307
8308  are comments.
8309  There is one exception to this rule.
8310  All 
8311 \begin_inset Flex Code
8312 status collapsed
8313
8314 \begin_layout Plain Layout
8315 *.layout
8316 \end_layout
8317
8318 \end_inset
8319
8320  files should begin with lines like:
8321 \end_layout
8322
8323 \begin_layout LyX-Code
8324
8325 \size small
8326 #% Do not delete the line below; configure depends on this 
8327 \end_layout
8328
8329 \begin_layout LyX-Code
8330
8331 \size small
8332 #  
8333 \backslash
8334 DeclareLaTeXClass{Article (Standard Class)}
8335 \end_layout
8336
8337 \begin_layout LyX-Code
8338
8339 \size small
8340 #  
8341 \backslash
8342 DeclareCategory{Articles}
8343 \end_layout
8344
8345 \begin_layout Standard
8346 The second and third lines are used when you (re)configure \SpecialChar LyX
8347 .
8348  The layout file is read by the \SpecialChar LaTeX
8349  script 
8350 \begin_inset Flex Code
8351 status collapsed
8352
8353 \begin_layout Plain Layout
8354 chkconfig.ltx
8355 \end_layout
8356
8357 \end_inset
8358
8359 , in a special mode where 
8360 \begin_inset Flex Code
8361 status collapsed
8362
8363 \begin_layout Plain Layout
8364 #
8365 \end_layout
8366
8367 \end_inset
8368
8369  is ignored.
8370  The first line is just a \SpecialChar LaTeX
8371  comment, the second one contains the mandatory
8372  declaration of the text class and the third line contains the optional
8373  classification of the class.
8374  If these lines appear in a file named 
8375 \begin_inset Flex Code
8376 status collapsed
8377
8378 \begin_layout Plain Layout
8379 article.layout
8380 \end_layout
8381
8382 \end_inset
8383
8384 , then they define a text class of name 
8385 \begin_inset Flex Code
8386 status collapsed
8387
8388 \begin_layout Plain Layout
8389 article
8390 \end_layout
8391
8392 \end_inset
8393
8394  (the name of the layout file) which uses the \SpecialChar LaTeX
8395  document class 
8396 \begin_inset Flex Code
8397 status collapsed
8398
8399 \begin_layout Plain Layout
8400 article.cls
8401 \end_layout
8402
8403 \end_inset
8404
8405  (the default is to use the same name as the layout).
8406  The string 
8407 \begin_inset Quotes eld
8408 \end_inset
8409
8410 Article (Standard Class)
8411 \begin_inset Quotes erd
8412 \end_inset
8413
8414  that appears above is used as a description of the text class in the 
8415 \begin_inset Flex Noun
8416 status collapsed
8417
8418 \begin_layout Plain Layout
8419 Document\SpecialChar menuseparator
8420 Settings
8421 \end_layout
8422
8423 \end_inset
8424
8425  dialog.
8426  The category (
8427 \begin_inset Quotes eld
8428 \end_inset
8429
8430 Articles
8431 \begin_inset Quotes erd
8432 \end_inset
8433
8434  in the example) is also used in the 
8435 \begin_inset Flex Noun
8436 status collapsed
8437
8438 \begin_layout Plain Layout
8439 Document\SpecialChar menuseparator
8440 Settings
8441 \end_layout
8442
8443 \end_inset
8444
8445  dialog: the text classes are grouped by these categories (which are usually
8446  genres, so typical categories are 
8447 \begin_inset Quotes eld
8448 \end_inset
8449
8450 Articles
8451 \begin_inset Quotes erd
8452 \end_inset
8453
8454
8455 \begin_inset Quotes eld
8456 \end_inset
8457
8458 Books
8459 \begin_inset Quotes erd
8460 \end_inset
8461
8462
8463 \begin_inset Quotes eld
8464 \end_inset
8465
8466 Reports
8467 \begin_inset Quotes erd
8468 \end_inset
8469
8470
8471 \begin_inset Quotes eld
8472 \end_inset
8473
8474 Letters
8475 \begin_inset Quotes erd
8476 \end_inset
8477
8478
8479 \begin_inset Quotes eld
8480 \end_inset
8481
8482 Presentations
8483 \begin_inset Quotes erd
8484 \end_inset
8485
8486
8487 \begin_inset Quotes eld
8488 \end_inset
8489
8490 Curricula Vitae
8491 \begin_inset Quotes erd
8492 \end_inset
8493
8494  etc.).
8495  If no category has been declared, the class will be put in the 
8496 \begin_inset Quotes eld
8497 \end_inset
8498
8499 Uncategorized
8500 \begin_inset Quotes erd
8501 \end_inset
8502
8503  group.
8504 \end_layout
8505
8506 \begin_layout Standard
8507 Let's assume that you wrote your own text class that uses the 
8508 \begin_inset Flex Code
8509 status collapsed
8510
8511 \begin_layout Plain Layout
8512 article.cls
8513 \end_layout
8514
8515 \end_inset
8516
8517  document class, but where you changed the appearance of the section headings.
8518  If you put it in a file 
8519 \begin_inset Flex Code
8520 status collapsed
8521
8522 \begin_layout Plain Layout
8523 myarticle.layout
8524 \end_layout
8525
8526 \end_inset
8527
8528 , the header of this file should be:
8529 \end_layout
8530
8531 \begin_layout LyX-Code
8532
8533 \size small
8534 #% Do not delete the line below; configure depends on this 
8535 \end_layout
8536
8537 \begin_layout LyX-Code
8538
8539 \size small
8540 #  
8541 \backslash
8542 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8543 \end_layout
8544
8545 \begin_layout LyX-Code
8546
8547 \size small
8548 #  
8549 \backslash
8550 DeclareCategory{Articles}
8551 \end_layout
8552
8553 \begin_layout Standard
8554 This declares a text class 
8555 \begin_inset Flex Code
8556 status collapsed
8557
8558 \begin_layout Plain Layout
8559 myarticle
8560 \end_layout
8561
8562 \end_inset
8563
8564 , associated with the \SpecialChar LaTeX
8565  document class 
8566 \begin_inset Flex Code
8567 status collapsed
8568
8569 \begin_layout Plain Layout
8570 article.cls
8571 \end_layout
8572
8573 \end_inset
8574
8575  and described as 
8576 \begin_inset Quotes eld
8577 \end_inset
8578
8579 Article (with My Own Headings)
8580 \begin_inset Quotes erd
8581 \end_inset
8582
8583 .
8584  If your text class depends on several packages, you can declare it as:
8585 \end_layout
8586
8587 \begin_layout LyX-Code
8588
8589 \size small
8590 #% Do not delete the line below; configure depends on this 
8591 \end_layout
8592
8593 \begin_layout LyX-Code
8594
8595 \size small
8596 #  
8597 \backslash
8598 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8599 \end_layout
8600
8601 \begin_layout LyX-Code
8602
8603 \size small
8604 #  
8605 \backslash
8606 DeclareCategory{Articles}
8607 \end_layout
8608
8609 \begin_layout Standard
8610 This indicates that your text class uses the 
8611 \begin_inset Flex Code
8612 status collapsed
8613
8614 \begin_layout Plain Layout
8615 foo.sty
8616 \end_layout
8617
8618 \end_inset
8619
8620  package.
8621  
8622 \change_deleted 5863208 1594239179
8623 Finally, it is also possible to declare classes for DocBook code.
8624  Typical declarations will look like:
8625 \end_layout
8626
8627 \begin_layout LyX-Code
8628
8629 \change_deleted 5863208 1594239179
8630
8631 \size small
8632 #% Do not delete the line below; configure depends on this 
8633 \end_layout
8634
8635 \begin_layout LyX-Code
8636
8637 \change_deleted 5863208 1594239179
8638
8639 \size small
8640
8641 \backslash
8642 DeclareDocBookClass[article]{SGML (DocBook Article)}
8643 \end_layout
8644
8645 \begin_layout LyX-Code
8646
8647 \change_deleted 5863208 1594239179
8648
8649 \size small
8650
8651 \backslash
8652 DeclareCategory{Articles (DocBook)}
8653 \change_unchanged
8654
8655 \end_layout
8656
8657 \begin_layout Standard
8658 Note that these declarations can also be given an optional parameter declaring
8659  the name of the document class (but not a list).
8660 \end_layout
8661
8662 \begin_layout Standard
8663 So, to be as explicit as possible, the form of the layout declaration is:
8664 \end_layout
8665
8666 \begin_layout LyX-Code
8667
8668 \size small
8669 #  
8670 \backslash
8671 DeclareLaTeXClass[class,package.sty]{layout description}
8672 \end_layout
8673
8674 \begin_layout LyX-Code
8675
8676 \size small
8677 #  
8678 \backslash
8679 DeclareCategory{category}
8680 \end_layout
8681
8682 \begin_layout Standard
8683 The class need only be specified if the name of the \SpecialChar LaTeX
8684  class file and the
8685  name of the layout file are different or if there are packages to load.
8686  If the name of the class file is not specified, then \SpecialChar LyX
8687  will simply assume
8688  that it is the same as the name of the layout file.
8689 \end_layout
8690
8691 \begin_layout Standard
8692 When the text class has been modified to your taste, all you have to do
8693  is to copy it either to 
8694 \begin_inset Flex Code
8695 status collapsed
8696
8697 \begin_layout Plain Layout
8698 LyXDir/layouts/
8699 \end_layout
8700
8701 \end_inset
8702
8703  or to 
8704 \begin_inset Flex Code
8705 status collapsed
8706
8707 \begin_layout Plain Layout
8708 UserDir/layouts
8709 \end_layout
8710
8711 \end_inset
8712
8713 , run 
8714 \begin_inset Flex Noun
8715 status collapsed
8716
8717 \begin_layout Plain Layout
8718 Tools\SpecialChar menuseparator
8719 Reconfigure
8720 \end_layout
8721
8722 \end_inset
8723
8724 , exit \SpecialChar LyX
8725  and restart.
8726  Then your new text class should be available along with the others.
8727 \end_layout
8728
8729 \begin_layout Standard
8730 Once the layout file is installed, you can edit it and see your changes
8731  without having to reconfigure or to restart \SpecialChar LyX
8732 .
8733 \begin_inset Foot
8734 status collapsed
8735
8736 \begin_layout Plain Layout
8737 In versions of \SpecialChar LyX
8738  prior to 1.6, this was not true.
8739  As a result, editing layout files was very time consuming, since you had
8740  constantly to restart \SpecialChar LyX
8741  to see changes.
8742 \end_layout
8743
8744 \end_inset
8745
8746  You can force a reload of the current layout by using the \SpecialChar LyX
8747  function 
8748 \begin_inset Flex Noun
8749 status collapsed
8750
8751 \begin_layout Plain Layout
8752 layout-reload
8753 \end_layout
8754
8755 \end_inset
8756
8757 .
8758  There is no default binding for this function—though, of course, you can
8759  bind it to a key yourself.
8760  But you will normally use this function simply by entering it in the mini-buffe
8761 r.
8762  
8763 \end_layout
8764
8765 \begin_layout Standard
8766
8767 \emph on
8768 Warning
8769 \emph default
8770
8771 \begin_inset Flex Noun
8772 status collapsed
8773
8774 \begin_layout Plain Layout
8775 layout-reload
8776 \end_layout
8777
8778 \end_inset
8779
8780  is very much an `advanced feature'.
8781  It is 
8782 \emph on
8783 strongly
8784 \emph default
8785  recommended that you save your work before using this function.
8786  In fact, it is 
8787 \emph on
8788 strongly
8789 \emph default
8790  recommended that you not attempt to edit layout information while simultaneousl
8791 y working on a document that you care about.
8792  Use a test document.
8793  Syntax errors and the like in your layout file could cause peculiar behavior.
8794  In particular, such errors could cause \SpecialChar LyX
8795  to regard the current layout as
8796  invalid and to attempt to switch to some other layout.
8797 \begin_inset Foot
8798 status collapsed
8799
8800 \begin_layout Plain Layout
8801 Really bad syntax errors may even caused \SpecialChar LyX
8802  to exit.
8803  This is because certain sorts of errors may make \SpecialChar LyX
8804  unable to read 
8805 \emph on
8806 any
8807 \emph default
8808  layout information.
8809  Please be careful.
8810 \end_layout
8811
8812 \end_inset
8813
8814  The \SpecialChar LyX
8815  team strives to keep \SpecialChar LyX
8816  stable in such situations, but safe is better
8817  than sorry.
8818 \begin_inset Foot
8819 status collapsed
8820
8821 \begin_layout Plain Layout
8822 While we're giving advice: make regular backups.
8823  And be nice to your mother.
8824 \end_layout
8825
8826 \end_inset
8827
8828
8829 \end_layout
8830
8831 \begin_layout Subsection
8832 The Module declaration
8833 \end_layout
8834
8835 \begin_layout Standard
8836 A module must begin with a line like the following:
8837 \end_layout
8838
8839 \begin_layout LyX-Code
8840 #
8841 \backslash
8842 DeclareLyXModule[endnotes.sty]{Endnotes}
8843 \change_inserted -712698321 1554395911
8844
8845 \end_layout
8846
8847 \begin_layout LyX-Code
8848
8849 \change_inserted -712698321 1554395924
8850
8851 \size small
8852 #
8853 \backslash
8854 DeclareCategory{Foot- and Endnotes}
8855 \change_deleted -712698321 1554395911
8856
8857 \size default
8858  
8859 \change_unchanged
8860
8861 \end_layout
8862
8863 \begin_layout Standard
8864 The mandatory argument
8865 \change_inserted -712698321 1554395956
8866  of 
8867 \family typewriter
8868
8869 \backslash
8870 DeclareLyXModule
8871 \change_unchanged
8872
8873 \family default
8874 , in curly brackets, is the name of the module, as it should appear in 
8875 \begin_inset Flex Noun
8876 status collapsed
8877
8878 \begin_layout Plain Layout
8879 Document\SpecialChar menuseparator
8880 Settings\SpecialChar menuseparator
8881 Modules
8882 \end_layout
8883
8884 \end_inset
8885
8886 .
8887  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8888  packages
8889  on which the module depends.
8890  It is also possible to use the form 
8891 \begin_inset Flex Noun
8892 status collapsed
8893
8894 \begin_layout Plain Layout
8895 from->to
8896 \end_layout
8897
8898 \end_inset
8899
8900  as an optional argument, which declares that the module can only be used
8901  when there exists a conversion chain between the formats `
8902 \begin_inset Flex Code
8903 status collapsed
8904
8905 \begin_layout Plain Layout
8906 from
8907 \end_layout
8908
8909 \end_inset
8910
8911 ' and `
8912 \begin_inset Flex Code
8913 status collapsed
8914
8915 \begin_layout Plain Layout
8916 to
8917 \end_layout
8918
8919 \end_inset
8920
8921 '.
8922
8923 \change_inserted -712698321 1554396133
8924  The 
8925 \family typewriter
8926
8927 \backslash
8928 DeclareCategory
8929 \family default
8930  declaration is not strictly mandatory, but you should add it, since it
8931  is helpful to find the module.
8932  Please have a look at the existing module categories and if appropriate,
8933  use one of those.
8934 \change_unchanged
8935
8936 \end_layout
8937
8938 \begin_layout Standard
8939 The module 
8940 \change_inserted -712698321 1554395988
8941 and category 
8942 \change_unchanged
8943 declaration should then be followed by lines like the following:
8944 \begin_inset Foot
8945 status collapsed
8946
8947 \begin_layout Plain Layout
8948 Preferably in English if the module should be published with \SpecialChar LyX
8949 .
8950  This description will appear in the list of messages to be translated and
8951  will be thus translated with the next interface update.
8952 \end_layout
8953
8954 \end_inset
8955
8956
8957 \end_layout
8958
8959 \begin_layout LyX-Code
8960 #DescriptionBegin 
8961 \end_layout
8962
8963 \begin_layout LyX-Code
8964 #Adds an endnote command, in addition to footnotes.
8965  
8966 \end_layout
8967
8968 \begin_layout LyX-Code
8969 #You will need to add  
8970 \backslash
8971 theendnotes in TeX code where you 
8972 \end_layout
8973
8974 \begin_layout LyX-Code
8975 #want the endnotes to appear.
8976  
8977 \end_layout
8978
8979 \begin_layout LyX-Code
8980 #DescriptionEnd 
8981 \end_layout
8982
8983 \begin_layout LyX-Code
8984 #Requires: somemodule | othermodule
8985 \end_layout
8986
8987 \begin_layout LyX-Code
8988 #Excludes: badmodule
8989 \end_layout
8990
8991 \begin_layout Standard
8992 The description is used in 
8993 \begin_inset Flex Noun
8994 status collapsed
8995
8996 \begin_layout Plain Layout
8997 Document\SpecialChar menuseparator
8998 Settings\SpecialChar menuseparator
8999 Modules
9000 \end_layout
9001
9002 \end_inset
9003
9004  to provide the user with information about what the module does.
9005  The 
9006 \begin_inset Flex Code
9007 status collapsed
9008
9009 \begin_layout Plain Layout
9010 Requires
9011 \end_layout
9012
9013 \end_inset
9014
9015  line is used to identify other modules with which this one must be used;
9016  the 
9017 \begin_inset Flex Code
9018 status collapsed
9019
9020 \begin_layout Plain Layout
9021 Excludes
9022 \end_layout
9023
9024 \end_inset
9025
9026  line is used to identify modules with which this one may not be used.
9027  Both are optional, and, as shown, multiple modules should be separated
9028  with the pipe symbol: |.
9029  Note that the required modules are treated disjunctively: 
9030 \emph on
9031 at least one
9032 \emph default
9033  of the required modules must be used.
9034  Similarly, 
9035 \emph on
9036 no
9037 \emph default
9038  excluded module may be used.
9039  Note that modules are identified here by their filenames without the 
9040 \begin_inset Flex Code
9041 status collapsed
9042
9043 \begin_layout Plain Layout
9044 .module
9045 \end_layout
9046
9047 \end_inset
9048
9049  extension.
9050  So 
9051 \begin_inset Flex Code
9052 status collapsed
9053
9054 \begin_layout Plain Layout
9055 somemodule
9056 \end_layout
9057
9058 \end_inset
9059
9060  is really 
9061 \begin_inset Flex Code
9062 status collapsed
9063
9064 \begin_layout Plain Layout
9065 somemodule.module
9066 \end_layout
9067
9068 \end_inset
9069
9070 .
9071 \end_layout
9072
9073 \begin_layout Subsection
9074 The CiteEngine file declaration
9075 \end_layout
9076
9077 \begin_layout Standard
9078 A cite engine file must begin with a line like the following:
9079 \end_layout
9080
9081 \begin_layout LyX-Code
9082 #
9083 \backslash
9084 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9085 \end_layout
9086
9087 \begin_layout Standard
9088 The mandatory argument, in curly brackets, is the name of the cite style,
9089  as it should appear in 
9090 \begin_inset Flex Noun
9091 status collapsed
9092
9093 \begin_layout Plain Layout
9094 Document\SpecialChar menuseparator
9095 Settings\SpecialChar menuseparator
9096 Bibliography
9097 \end_layout
9098
9099 \end_inset
9100
9101 .
9102  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
9103  packages
9104  on which the cite engine depends.
9105 \end_layout
9106
9107 \begin_layout Standard
9108 The cite engine declaration should then be followed by lines like the following:
9109 \begin_inset Foot
9110 status collapsed
9111
9112 \begin_layout Plain Layout
9113 Preferably in English if the module should be published with \SpecialChar LyX
9114 .
9115  This description will appear in the list of messages to be translated and
9116  will be thus translated with the next interface update.
9117 \end_layout
9118
9119 \end_inset
9120
9121
9122 \end_layout
9123
9124 \begin_layout LyX-Code
9125 # DescriptionBegin
9126 \end_layout
9127
9128 \begin_layout LyX-Code
9129 #   Biblatex supports many author-year and numerical styles.
9130 \end_layout
9131
9132 \begin_layout LyX-Code
9133 #   It is mainly aimed at the Humanities.
9134  It is highly
9135 \end_layout
9136
9137 \begin_layout LyX-Code
9138 #   customizable, fully localized and provides many features
9139 \end_layout
9140
9141 \begin_layout LyX-Code
9142 #   that are not possible with BibTeX.
9143  The use of 'biber' as
9144 \end_layout
9145
9146 \begin_layout LyX-Code
9147 #   bibliography processor is advised.
9148 \end_layout
9149
9150 \begin_layout LyX-Code
9151 # DescriptionEnd
9152 \end_layout
9153
9154 \begin_layout Standard
9155 The description is used in 
9156 \begin_inset Flex Noun
9157 status collapsed
9158
9159 \begin_layout Plain Layout
9160 Document\SpecialChar menuseparator
9161 Settings\SpecialChar menuseparator
9162 Bibliography
9163 \end_layout
9164
9165 \end_inset
9166
9167  to provide the user with information about the cite engine.
9168 \end_layout
9169
9170 \begin_layout Subsection
9171 Format number
9172 \end_layout
9173
9174 \begin_layout Standard
9175 The first non-comment line of any layout file, included file, or module
9176  
9177 \emph on
9178 must
9179 \emph default
9180  contain the file format number:
9181 \end_layout
9182
9183 \begin_layout Description
9184 \begin_inset Flex Code
9185 status collapsed
9186
9187 \begin_layout Plain Layout
9188 Format
9189 \end_layout
9190
9191 \end_inset
9192
9193  [
9194 \begin_inset Flex Code
9195 status collapsed
9196
9197 \begin_layout Plain Layout
9198 int
9199 \end_layout
9200
9201 \end_inset
9202
9203 ] The format number of the layout file.
9204 \end_layout
9205
9206 \begin_layout Standard
9207 This tag was introduced with \SpecialChar LyX
9208
9209 \begin_inset space ~
9210 \end_inset
9211
9212 1.4.0.
9213  Layout files from older \SpecialChar LyX
9214  versions do not have an explicit file format and
9215  are considered to have 
9216 \begin_inset Flex Code
9217 status collapsed
9218
9219 \begin_layout Plain Layout
9220 Format
9221 \begin_inset space ~
9222 \end_inset
9223
9224 1
9225 \end_layout
9226
9227 \end_inset
9228
9229 .
9230  The format for the present version of \SpecialChar LyX
9231  is format 60.
9232  But each version of \SpecialChar LyX
9233  is capable of reading earlier versions' layout files,
9234  just as they are capable of reading files produced by earlier versions
9235  of \SpecialChar LyX
9236 .
9237  There is, however, no provision for converting to earlier formats.
9238 \end_layout
9239
9240 \begin_layout Subsection
9241 \begin_inset CommandInset label
9242 LatexCommand label
9243 name "subsec:General-text-class"
9244
9245 \end_inset
9246
9247 General text class parameters
9248 \end_layout
9249
9250 \begin_layout Standard
9251 These are general parameters that govern the behavior of an entire document
9252  class.
9253  (This does 
9254 \emph on
9255 not
9256 \emph default
9257  mean that they must appear in 
9258 \begin_inset Flex Code
9259 status collapsed
9260
9261 \begin_layout Plain Layout
9262 .layout
9263 \end_layout
9264
9265 \end_inset
9266
9267  files rather than in modules.
9268  A module can contain any layout tag.)
9269 \end_layout
9270
9271 \begin_layout Description
9272
9273 \change_inserted -712698321 1526899478
9274 \begin_inset Flex Code
9275 status collapsed
9276
9277 \begin_layout Plain Layout
9278
9279 \change_inserted -712698321 1526898610
9280 AddToCiteEngine <engine>
9281 \change_unchanged
9282
9283 \end_layout
9284
9285 \end_inset
9286
9287  Extends the possibilities for displaying citation references.
9288  See 
9289 \begin_inset CommandInset ref
9290 LatexCommand ref
9291 reference "subsec:Citation-engine-description"
9292 plural "false"
9293 caps "false"
9294 noprefix "false"
9295
9296 \end_inset
9297
9298  for details.
9299  Must end with 
9300 \begin_inset Flex Code
9301 status collapsed
9302
9303 \begin_layout Plain Layout
9304
9305 \change_inserted -712698321 1526898823
9306 End
9307 \change_unchanged
9308
9309 \end_layout
9310
9311 \end_inset
9312
9313 .
9314 \end_layout
9315
9316 \begin_layout Description
9317 \begin_inset Flex Code
9318 status collapsed
9319
9320 \begin_layout Plain Layout
9321 AddToHTMLPreamble
9322 \end_layout
9323
9324 \end_inset
9325
9326  Adds information that will be output in the 
9327 \begin_inset Flex Code
9328 status collapsed
9329
9330 \begin_layout Plain Layout
9331 <head>
9332 \end_layout
9333
9334 \end_inset
9335
9336  block when the document is output to XHTML.
9337  Typically, this would be used to output CSS style information, but it can
9338  be used for anything that can appear in 
9339 \begin_inset Flex Code
9340 status collapsed
9341
9342 \begin_layout Plain Layout
9343 <head>
9344 \end_layout
9345
9346 \end_inset
9347
9348 .
9349  Must end with 
9350 \begin_inset Quotes eld
9351 \end_inset
9352
9353
9354 \begin_inset Flex Code
9355 status collapsed
9356
9357 \begin_layout Plain Layout
9358 EndPreamble
9359 \end_layout
9360
9361 \end_inset
9362
9363
9364 \begin_inset Quotes erd
9365 \end_inset
9366
9367 .
9368 \end_layout
9369
9370 \begin_layout Description
9371 \begin_inset Flex Code
9372 status collapsed
9373
9374 \begin_layout Plain Layout
9375 AddToPreamble
9376 \end_layout
9377
9378 \end_inset
9379
9380  Adds information to the document preamble.
9381  Must end with
9382 \begin_inset Newline newline
9383 \end_inset
9384
9385
9386 \begin_inset Quotes eld
9387 \end_inset
9388
9389
9390 \begin_inset Flex Code
9391 status collapsed
9392
9393 \begin_layout Plain Layout
9394 EndPreamble
9395 \end_layout
9396
9397 \end_inset
9398
9399
9400 \begin_inset Quotes erd
9401 \end_inset
9402
9403 .
9404 \change_inserted -712698321 1562592950
9405
9406 \end_layout
9407
9408 \begin_layout Description
9409
9410 \change_inserted -712698321 1562593040
9411 \begin_inset Flex Code
9412 status collapsed
9413
9414 \begin_layout Plain Layout
9415
9416 \change_inserted -712698321 1562592954
9417 BibInToc
9418 \change_unchanged
9419
9420 \end_layout
9421
9422 \end_inset
9423
9424  [
9425 \begin_inset Flex Code
9426 status collapsed
9427
9428 \begin_layout Plain Layout
9429
9430 \change_inserted -712698321 1562592950
9431
9432 \emph on
9433 0
9434 \change_unchanged
9435
9436 \end_layout
9437
9438 \end_inset
9439
9440 ,
9441 \begin_inset space \thinspace{}
9442 \end_inset
9443
9444
9445 \begin_inset Flex Code
9446 status collapsed
9447
9448 \begin_layout Plain Layout
9449
9450 \change_inserted -712698321 1562592950
9451 1
9452 \change_unchanged
9453
9454 \end_layout
9455
9456 \end_inset
9457
9458 ] If the document class adds the bibliography to the table of contents,
9459  add this option with value 
9460 \begin_inset Flex Code
9461 status collapsed
9462
9463 \begin_layout Plain Layout
9464
9465 \change_inserted -712698321 1562592996
9466 1
9467 \change_unchanged
9468
9469 \end_layout
9470
9471 \end_inset
9472
9473  (or 
9474 \begin_inset Flex Code
9475 status collapsed
9476
9477 \begin_layout Plain Layout
9478
9479 \change_inserted -712698321 1562593006
9480 true
9481 \change_unchanged
9482
9483 \end_layout
9484
9485 \end_inset
9486
9487 ).
9488  This prevents the bibliography from being added twice.
9489 \change_unchanged
9490
9491 \end_layout
9492
9493 \begin_layout Description
9494 \begin_inset Flex Code
9495 status collapsed
9496
9497 \begin_layout Plain Layout
9498 CiteEngine <engine>
9499 \end_layout
9500
9501 \end_inset
9502
9503  Defines the possibilities for displaying citation references.
9504  See 
9505 \begin_inset CommandInset ref
9506 LatexCommand ref
9507 reference "subsec:Citation-engine-description"
9508 plural "false"
9509 caps "false"
9510 noprefix "false"
9511
9512 \end_inset
9513
9514  for details.
9515  Must end with 
9516 \begin_inset Quotes eld
9517 \end_inset
9518
9519
9520 \begin_inset Flex Code
9521 status collapsed
9522
9523 \begin_layout Plain Layout
9524 End
9525 \end_layout
9526
9527 \end_inset
9528
9529
9530 \begin_inset Quotes erd
9531 \end_inset
9532
9533 .
9534  Primarily used in cite engine files (see 
9535 \begin_inset CommandInset ref
9536 LatexCommand ref
9537 reference "subsec:Cite-Engine-Files"
9538 plural "false"
9539 caps "false"
9540 noprefix "false"
9541
9542 \end_inset
9543
9544 ).
9545
9546 \change_inserted -712698321 1526898530
9547  Note that if you specify this in a layout file or module, any cite engine
9548  definition will be overridden.
9549  Also see 
9550 \begin_inset Flex Code
9551 status collapsed
9552
9553 \begin_layout Plain Layout
9554
9555 \change_inserted -712698321 1526898530
9556 AddToCiteEngine
9557 \change_unchanged
9558
9559 \end_layout
9560
9561 \end_inset
9562
9563 .
9564 \change_unchanged
9565
9566 \end_layout
9567
9568 \begin_layout Description
9569 \begin_inset Flex Code
9570 status collapsed
9571
9572 \begin_layout Plain Layout
9573 CiteFormat
9574 \end_layout
9575
9576 \end_inset
9577
9578  Defines formats for use in the display of bibliographic information.
9579  See 
9580 \begin_inset CommandInset ref
9581 LatexCommand ref
9582 reference "subsec:Citation-format-description"
9583
9584 \end_inset
9585
9586  for details.
9587  Must end with 
9588 \begin_inset Quotes eld
9589 \end_inset
9590
9591
9592 \begin_inset Flex Code
9593 status collapsed
9594
9595 \begin_layout Plain Layout
9596 End
9597 \end_layout
9598
9599 \end_inset
9600
9601
9602 \begin_inset Quotes erd
9603 \end_inset
9604
9605 .
9606  Primarily used in cite engine files (see 
9607 \begin_inset CommandInset ref
9608 LatexCommand ref
9609 reference "subsec:Cite-Engine-Files"
9610 plural "false"
9611 caps "false"
9612 noprefix "false"
9613
9614 \end_inset
9615
9616 ).
9617
9618 \change_inserted -712698321 1526898585
9619  A cite format defined in a layout or module will override the cite engine
9620  definition.
9621 \change_unchanged
9622
9623 \end_layout
9624
9625 \begin_layout Description
9626 \begin_inset Flex Code
9627 status collapsed
9628
9629 \begin_layout Plain Layout
9630 CiteFramework
9631 \end_layout
9632
9633 \end_inset
9634
9635  [
9636 \begin_inset Flex Code
9637 status collapsed
9638
9639 \begin_layout Plain Layout
9640
9641 \emph on
9642 bibtex
9643 \end_layout
9644
9645 \end_inset
9646
9647 ,
9648 \begin_inset Flex Code
9649 status collapsed
9650
9651 \begin_layout Plain Layout
9652 biblatex
9653 \end_layout
9654
9655 \end_inset
9656
9657 ] Determines whether 
9658 \family sans
9659 Biblatex
9660 \family default
9661  or Bib\SpecialChar TeX
9662  is used to generate a Bibliography.
9663  Primarily used in cite engine files (see 
9664 \begin_inset CommandInset ref
9665 LatexCommand ref
9666 reference "subsec:Cite-Engine-Files"
9667 plural "false"
9668 caps "false"
9669 noprefix "false"
9670
9671 \end_inset
9672
9673 ).
9674 \end_layout
9675
9676 \begin_layout Description
9677 \begin_inset Flex Code
9678 status collapsed
9679
9680 \begin_layout Plain Layout
9681 ClassOptions
9682 \end_layout
9683
9684 \end_inset
9685
9686  Describes various global options supported by the document class.
9687  See 
9688 \begin_inset CommandInset ref
9689 LatexCommand ref
9690 reference "subsec:ClassOptions"
9691
9692 \end_inset
9693
9694  for a description.
9695  Must end with 
9696 \begin_inset Quotes eld
9697 \end_inset
9698
9699
9700 \begin_inset Flex Code
9701 status collapsed
9702
9703 \begin_layout Plain Layout
9704 End
9705 \end_layout
9706
9707 \end_inset
9708
9709
9710 \begin_inset Quotes erd
9711 \end_inset
9712
9713 .
9714 \end_layout
9715
9716 \begin_layout Description
9717 \begin_inset Flex Code
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721 Columns
9722 \end_layout
9723
9724 \end_inset
9725
9726  [
9727 \begin_inset Flex Code
9728 status collapsed
9729
9730 \begin_layout Plain Layout
9731
9732 \emph on
9733 1
9734 \end_layout
9735
9736 \end_inset
9737
9738 ,
9739 \begin_inset space \thinspace{}
9740 \end_inset
9741
9742
9743 \begin_inset Flex Code
9744 status collapsed
9745
9746 \begin_layout Plain Layout
9747 2
9748 \end_layout
9749
9750 \end_inset
9751
9752 ] Whether the class should 
9753 \emph on
9754 default
9755 \emph default
9756  to having one or two columns.
9757  Can be changed in the 
9758 \begin_inset Flex Noun
9759 status collapsed
9760
9761 \begin_layout Plain Layout
9762 Document\SpecialChar menuseparator
9763 Settings
9764 \end_layout
9765
9766 \end_inset
9767
9768  dialog.
9769 \end_layout
9770
9771 \begin_layout Description
9772 \begin_inset Flex Code
9773 status collapsed
9774
9775 \begin_layout Plain Layout
9776 Counter
9777 \end_layout
9778
9779 \end_inset
9780
9781  [
9782 \begin_inset Flex Code
9783 status collapsed
9784
9785 \begin_layout Plain Layout
9786 string
9787 \end_layout
9788
9789 \end_inset
9790
9791 ] This sequence defines the properties for a counter.
9792  If the counter does not yet exist, it is created; if it does exist, it
9793  is modified.
9794  Must end with 
9795 \begin_inset Quotes eld
9796 \end_inset
9797
9798
9799 \begin_inset Flex Code
9800 status collapsed
9801
9802 \begin_layout Plain Layout
9803 End
9804 \end_layout
9805
9806 \end_inset
9807
9808
9809 \begin_inset Quotes erd
9810 \end_inset
9811
9812 .
9813 \begin_inset Newline newline
9814 \end_inset
9815
9816 See 
9817 \begin_inset CommandInset ref
9818 LatexCommand ref
9819 reference "subsec:Counters"
9820
9821 \end_inset
9822
9823  for details on counters.
9824 \end_layout
9825
9826 \begin_layout Description
9827 \begin_inset Flex Code
9828 status collapsed
9829
9830 \begin_layout Plain Layout
9831 DefaultFont
9832 \end_layout
9833
9834 \end_inset
9835
9836  Sets the default font used to display the document.
9837  See 
9838 \begin_inset CommandInset ref
9839 LatexCommand ref
9840 reference "subsec:Font-description"
9841
9842 \end_inset
9843
9844  for how to declare fonts.
9845  Must end with 
9846 \begin_inset Quotes eld
9847 \end_inset
9848
9849
9850 \begin_inset Flex Code
9851 status collapsed
9852
9853 \begin_layout Plain Layout
9854 EndFont
9855 \end_layout
9856
9857 \end_inset
9858
9859
9860 \begin_inset Quotes erd
9861 \end_inset
9862
9863 .
9864 \end_layout
9865
9866 \begin_layout Description
9867 \begin_inset Flex Code
9868 status collapsed
9869
9870 \begin_layout Plain Layout
9871 DefaultModule
9872 \end_layout
9873
9874 \end_inset
9875
9876  [
9877 \begin_inset Flex Code
9878 status collapsed
9879
9880 \begin_layout Plain Layout
9881 <module>
9882 \end_layout
9883
9884 \end_inset
9885
9886 ] Specifies a module to be included by default with this document class.
9887  The module is specified as filename without the 
9888 \begin_inset Flex Code
9889 status collapsed
9890
9891 \begin_layout Plain Layout
9892 .module
9893 \end_layout
9894
9895 \end_inset
9896
9897  extension.
9898  The user can still remove the module, but it will be active at the outset.
9899  (This applies only when new files are created, or when this class is chosen
9900  for an existing document.)
9901 \end_layout
9902
9903 \begin_layout Description
9904 \begin_inset Flex Code
9905 status collapsed
9906
9907 \begin_layout Plain Layout
9908 DefaultStyle
9909 \end_layout
9910
9911 \end_inset
9912
9913  [
9914 \begin_inset Flex Code
9915 status collapsed
9916
9917 \begin_layout Plain Layout
9918 <style>
9919 \end_layout
9920
9921 \end_inset
9922
9923 ] This is the style that will be assigned to new paragraphs, usually 
9924 \begin_inset Flex Noun
9925 status collapsed
9926
9927 \begin_layout Plain Layout
9928 Standard
9929 \end_layout
9930
9931 \end_inset
9932
9933 .
9934  This will default to the first defined style if not given, but you are
9935  encouraged to use this directive.
9936 \end_layout
9937
9938 \begin_layout Description
9939
9940 \change_inserted -970929547 1515112870
9941 \begin_inset Flex Code
9942 status collapsed
9943
9944 \begin_layout Plain Layout
9945
9946 \change_inserted -970929547 1515112782
9947 DocBookRoot
9948 \change_unchanged
9949
9950 \end_layout
9951
9952 \end_inset
9953
9954  [
9955 \begin_inset Flex Code
9956 status collapsed
9957
9958 \begin_layout Plain Layout
9959
9960 \change_inserted -970929547 1515112766
9961 string
9962 \change_unchanged
9963
9964 \end_layout
9965
9966 \end_inset
9967
9968 ] The root element (at the top of the document) to use when outputting documents
9969  with this class in DocBook.
9970  The default value is 
9971 \begin_inset Quotes eld
9972 \end_inset
9973
9974
9975 \begin_inset Flex Code
9976 status collapsed
9977
9978 \begin_layout Plain Layout
9979
9980 \change_inserted -970929547 1515112845
9981 article
9982 \change_unchanged
9983
9984 \end_layout
9985
9986 \end_inset
9987
9988
9989 \begin_inset Quotes erd
9990 \end_inset
9991
9992 .
9993
9994 \change_deleted 1075283030 1594226862
9995  
9996 \change_inserted 1075283030 1594226777
9997
9998 \end_layout
9999
10000 \begin_layout Description
10001
10002 \change_inserted 1075283030 1594226859
10003 \begin_inset Flex Code
10004 status collapsed
10005
10006 \begin_layout Plain Layout
10007
10008 \change_inserted 1075283030 1594226785
10009 DocBookForceAbstract
10010 \change_unchanged
10011
10012 \end_layout
10013
10014 \end_inset
10015
10016  [
10017 \begin_inset Flex Code
10018 status collapsed
10019
10020 \begin_layout Plain Layout
10021
10022 \change_inserted 1075283030 1594226804
10023 boolean
10024 \change_unchanged
10025
10026 \end_layout
10027
10028 \end_inset
10029
10030 ] If 
10031 \begin_inset Quotes eld
10032 \end_inset
10033
10034
10035 \family typewriter
10036 true
10037 \family default
10038
10039 \begin_inset Quotes erd
10040 \end_inset
10041
10042 , the root element will always have an 
10043 \family typewriter
10044 <abstract>
10045 \family default
10046  tag.
10047  The default value is 
10048 \begin_inset Quotes eld
10049 \end_inset
10050
10051
10052 \family typewriter
10053 false
10054 \family default
10055
10056 \begin_inset Quotes erd
10057 \end_inset
10058
10059 .
10060 \change_unchanged
10061
10062 \end_layout
10063
10064 \begin_layout Description
10065 \begin_inset Flex Code
10066 status collapsed
10067
10068 \begin_layout Plain Layout
10069 ExcludesModule
10070 \end_layout
10071
10072 \end_inset
10073
10074  [
10075 \begin_inset Flex Code
10076 status collapsed
10077
10078 \begin_layout Plain Layout
10079 <module>
10080 \end_layout
10081
10082 \end_inset
10083
10084 ] This tag indicates that the module (which is specified by filename without
10085  the 
10086 \begin_inset Flex Code
10087 status collapsed
10088
10089 \begin_layout Plain Layout
10090 .module
10091 \end_layout
10092
10093 \end_inset
10094
10095  extension) cannot be used with this document class.
10096  This might be used in a journal-specific layout file to prevent, say, the
10097  use of the 
10098 \begin_inset Flex Code
10099 status collapsed
10100
10101 \begin_layout Plain Layout
10102 theorems-sec
10103 \end_layout
10104
10105 \end_inset
10106
10107  module that numbers theorems by section.
10108  This tag may 
10109 \emph on
10110 not
10111 \emph default
10112  be used in a module.
10113  Modules have their own way of excluding other modules (see 
10114 \begin_inset CommandInset ref
10115 LatexCommand ref
10116 reference "subsec:Layout-modules"
10117
10118 \end_inset
10119
10120 ).
10121 \end_layout
10122
10123 \begin_layout Description
10124 \begin_inset Flex Code
10125 status collapsed
10126
10127 \begin_layout Plain Layout
10128 Float
10129 \end_layout
10130
10131 \end_inset
10132
10133  Defines a new float.
10134  See 
10135 \begin_inset CommandInset ref
10136 LatexCommand ref
10137 reference "subsec:Floats"
10138
10139 \end_inset
10140
10141  for details.
10142  Must end with 
10143 \begin_inset Quotes eld
10144 \end_inset
10145
10146
10147 \begin_inset Flex Code
10148 status collapsed
10149
10150 \begin_layout Plain Layout
10151 End
10152 \end_layout
10153
10154 \end_inset
10155
10156
10157 \begin_inset Quotes erd
10158 \end_inset
10159
10160 .
10161 \end_layout
10162
10163 \begin_layout Description
10164 \begin_inset Flex Code
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 HTMLPreamble
10169 \end_layout
10170
10171 \end_inset
10172
10173  Sets the information that will be output in the 
10174 \begin_inset Flex Code
10175 status collapsed
10176
10177 \begin_layout Plain Layout
10178 <head>
10179 \end_layout
10180
10181 \end_inset
10182
10183  block when this document class is output to XHTML.
10184  Note that this will completely override any prior 
10185 \begin_inset Flex Code
10186 status collapsed
10187
10188 \begin_layout Plain Layout
10189 HTMLPreamble
10190 \end_layout
10191
10192 \end_inset
10193
10194  or 
10195 \begin_inset Flex Code
10196 status collapsed
10197
10198 \begin_layout Plain Layout
10199 AddToHTMLPreamble
10200 \end_layout
10201
10202 \end_inset
10203
10204  declarations.
10205  (Use
10206 \begin_inset Newline newline
10207 \end_inset
10208
10209
10210 \begin_inset Flex Code
10211 status collapsed
10212
10213 \begin_layout Plain Layout
10214 AddToHTMLPreamble
10215 \end_layout
10216
10217 \end_inset
10218
10219  if you just want to add material to the preamble.) Must end with 
10220 \begin_inset Quotes eld
10221 \end_inset
10222
10223
10224 \begin_inset Flex Code
10225 status collapsed
10226
10227 \begin_layout Plain Layout
10228 EndPreamble
10229 \end_layout
10230
10231 \end_inset
10232
10233
10234 \begin_inset Quotes erd
10235 \end_inset
10236
10237 .
10238 \end_layout
10239
10240 \begin_layout Description
10241 \begin_inset Flex Code
10242 status collapsed
10243
10244 \begin_layout Plain Layout
10245 HTMLTOCSection
10246 \end_layout
10247
10248 \end_inset
10249
10250  [
10251 \begin_inset Flex Code
10252 status collapsed
10253
10254 \begin_layout Plain Layout
10255 <style>
10256 \end_layout
10257
10258 \end_inset
10259
10260 ] The style to use for the table of contents, bibliography, and so forth,
10261  when the document is output to HTML.
10262  For articles, this should normally be 
10263 \begin_inset Flex Code
10264 status collapsed
10265
10266 \begin_layout Plain Layout
10267 Section
10268 \end_layout
10269
10270 \end_inset
10271
10272 ; for books 
10273 \begin_inset Flex Code
10274 status collapsed
10275
10276 \begin_layout Plain Layout
10277 Chapter
10278 \end_layout
10279
10280 \end_inset
10281
10282 .
10283  If it is not given, then \SpecialChar LyX
10284  will attempt to figure out which layout to use.
10285 \end_layout
10286
10287 \begin_layout Description
10288 \begin_inset Flex Code
10289 status collapsed
10290
10291 \begin_layout Plain Layout
10292 IfCounter
10293 \end_layout
10294
10295 \end_inset
10296
10297  [
10298 \begin_inset Flex Code
10299 status collapsed
10300
10301 \begin_layout Plain Layout
10302 <counter>
10303 \end_layout
10304
10305 \end_inset
10306
10307 ] Modifies the properties of the given counter.
10308  If the counter does not exist, the statement is ignored.
10309  Must end with 
10310 \begin_inset Quotes eld
10311 \end_inset
10312
10313
10314 \begin_inset Flex Code
10315 status collapsed
10316
10317 \begin_layout Plain Layout
10318 End
10319 \end_layout
10320
10321 \end_inset
10322
10323
10324 \begin_inset Quotes erd
10325 \end_inset
10326
10327 .
10328 \begin_inset Newline newline
10329 \end_inset
10330
10331 See 
10332 \begin_inset CommandInset ref
10333 LatexCommand ref
10334 reference "subsec:Counters"
10335
10336 \end_inset
10337
10338  for details on counters.
10339 \end_layout
10340
10341 \begin_layout Description
10342 \begin_inset Flex Code
10343 status collapsed
10344
10345 \begin_layout Plain Layout
10346 Input
10347 \end_layout
10348
10349 \end_inset
10350
10351  [
10352 \begin_inset Flex Code
10353 status collapsed
10354
10355 \begin_layout Plain Layout
10356 <filename>
10357 \end_layout
10358
10359 \end_inset
10360
10361 ] This allows you to include another layout definition file within yours
10362  to avoid duplicating commands.
10363  Common examples are the standard layout files, for example, 
10364 \begin_inset Flex Code
10365 status collapsed
10366
10367 \begin_layout Plain Layout
10368 stdclass.inc
10369 \end_layout
10370
10371 \end_inset
10372
10373 , which contains most of the basic layouts.
10374 \end_layout
10375
10376 \begin_layout Description
10377 \begin_inset Flex Code
10378 status collapsed
10379
10380 \begin_layout Plain Layout
10381 InsetLayout
10382 \end_layout
10383
10384 \end_inset
10385
10386  [
10387 \begin_inset Flex Code
10388 status collapsed
10389
10390 \begin_layout Plain Layout
10391 <type>
10392 \end_layout
10393
10394 \end_inset
10395
10396 ] This section (re-)defines the layout of an inset.
10397  It can be applied to an existing inset or to a new, user-defined inset,
10398  e.g., a new character style.
10399  Must end with 
10400 \begin_inset Quotes eld
10401 \end_inset
10402
10403
10404 \begin_inset Flex Code
10405 status collapsed
10406
10407 \begin_layout Plain Layout
10408 End
10409 \end_layout
10410
10411 \end_inset
10412
10413
10414 \begin_inset Quotes erd
10415 \end_inset
10416
10417 .
10418 \begin_inset Newline newline
10419 \end_inset
10420
10421 See 
10422 \begin_inset CommandInset ref
10423 LatexCommand ref
10424 reference "subsec:Flex-insets-and"
10425
10426 \end_inset
10427
10428  for more information.
10429  
10430 \end_layout
10431
10432 \begin_layout Description
10433 \begin_inset Flex Code
10434 status collapsed
10435
10436 \begin_layout Plain Layout
10437 LeftMargin
10438 \end_layout
10439
10440 \end_inset
10441
10442  [
10443 \begin_inset Flex Code
10444 status collapsed
10445
10446 \begin_layout Plain Layout
10447 string
10448 \end_layout
10449
10450 \end_inset
10451
10452 ] A string that indicates the width of the left margin on the screen, for
10453  example, 
10454 \begin_inset Quotes eld
10455 \end_inset
10456
10457
10458 \begin_inset Flex Code
10459 status collapsed
10460
10461 \begin_layout Plain Layout
10462 MMMMM
10463 \end_layout
10464
10465 \end_inset
10466
10467
10468 \begin_inset Quotes erd
10469 \end_inset
10470
10471 .
10472  (Note that this is not a `length', like 
10473 \begin_inset Quotes eld
10474 \end_inset
10475
10476 2ex
10477 \begin_inset Quotes erd
10478 \end_inset
10479
10480 .)
10481 \end_layout
10482
10483 \begin_layout Description
10484 \begin_inset Flex Code
10485 status collapsed
10486
10487 \begin_layout Plain Layout
10488 MaxCiteNames
10489 \end_layout
10490
10491 \end_inset
10492
10493  [
10494 \begin_inset Flex Code
10495 status collapsed
10496
10497 \begin_layout Plain Layout
10498 integer
10499 \end_layout
10500
10501 \end_inset
10502
10503 ] An integer that determines the maximal number of names displayed in an
10504  author-year citation before the citation switches to 
10505 \begin_inset Quotes eld
10506 \end_inset
10507
10508 FirstAuthor et al.
10509 \begin_inset Quotes erd
10510 \end_inset
10511
10512 .
10513  Primarily used in cite engine files (see 
10514 \begin_inset CommandInset ref
10515 LatexCommand ref
10516 reference "subsec:Cite-Engine-Files"
10517 plural "false"
10518 caps "false"
10519 noprefix "false"
10520
10521 \end_inset
10522
10523 ).
10524 \end_layout
10525
10526 \begin_layout Description
10527 \begin_inset Flex Code
10528 status collapsed
10529
10530 \begin_layout Plain Layout
10531 ModifyStyle
10532 \end_layout
10533
10534 \end_inset
10535
10536  [
10537 \begin_inset Flex Code
10538 status collapsed
10539
10540 \begin_layout Plain Layout
10541 <style>
10542 \end_layout
10543
10544 \end_inset
10545
10546 ] Modifies the properties of the given paragraph style.
10547  If the style does not exist, this section is ignored.
10548  Must end with 
10549 \begin_inset Quotes eld
10550 \end_inset
10551
10552
10553 \begin_inset Flex Code
10554 status collapsed
10555
10556 \begin_layout Plain Layout
10557 End
10558 \end_layout
10559
10560 \end_inset
10561
10562
10563 \begin_inset Quotes erd
10564 \end_inset
10565
10566 .
10567 \end_layout
10568
10569 \begin_layout Description
10570 \begin_inset Flex Code
10571 status collapsed
10572
10573 \begin_layout Plain Layout
10574 NoCounter
10575 \end_layout
10576
10577 \end_inset
10578
10579  [
10580 \begin_inset Flex Code
10581 status collapsed
10582
10583 \begin_layout Plain Layout
10584 <counter>
10585 \end_layout
10586
10587 \end_inset
10588
10589 ] Deletes an existing counter, usually one defined in an included file.
10590 \end_layout
10591
10592 \begin_layout Description
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 NoFloat
10598 \end_layout
10599
10600 \end_inset
10601
10602  [
10603 \begin_inset Flex Code
10604 status collapsed
10605
10606 \begin_layout Plain Layout
10607 <float>
10608 \end_layout
10609
10610 \end_inset
10611
10612 ] Deletes an existing float.
10613  This is particularly useful when you want to suppress a float that has
10614  been defined in an input file.
10615 \end_layout
10616
10617 \begin_layout Description
10618 \begin_inset Flex Code
10619 status collapsed
10620
10621 \begin_layout Plain Layout
10622 NoStyle
10623 \end_layout
10624
10625 \end_inset
10626
10627  [
10628 \begin_inset Flex Code
10629 status collapsed
10630
10631 \begin_layout Plain Layout
10632 <style>
10633 \end_layout
10634
10635 \end_inset
10636
10637 ] Deletes an existing style.
10638 \end_layout
10639
10640 \begin_layout Description
10641 \begin_inset Flex Code
10642 status collapsed
10643
10644 \begin_layout Plain Layout
10645 OutlinerName
10646 \end_layout
10647
10648 \end_inset
10649
10650  [
10651 \begin_inset Flex Code
10652 status collapsed
10653
10654 \begin_layout Plain Layout
10655 <type>
10656 \end_layout
10657
10658 \end_inset
10659
10660 ] [
10661 \begin_inset Flex Code
10662 status collapsed
10663
10664 \begin_layout Plain Layout
10665 <string>
10666 \end_layout
10667
10668 \end_inset
10669
10670 ] Define a new table of contents with type 
10671 \begin_inset Flex Code
10672 status collapsed
10673
10674 \begin_layout Plain Layout
10675 <type>
10676 \end_layout
10677
10678 \end_inset
10679
10680  and name 
10681 \begin_inset Flex Code
10682 status collapsed
10683
10684 \begin_layout Plain Layout
10685 <string>
10686 \end_layout
10687
10688 \end_inset
10689
10690 .
10691  See also the AddToToc commands.
10692 \end_layout
10693
10694 \begin_layout Description
10695 \begin_inset Flex Code
10696 status collapsed
10697
10698 \begin_layout Plain Layout
10699 OutputFormat
10700 \end_layout
10701
10702 \end_inset
10703
10704  [
10705 \begin_inset Flex Code
10706 status collapsed
10707
10708 \begin_layout Plain Layout
10709 <format>
10710 \end_layout
10711
10712 \end_inset
10713
10714 ] The file format (as defined in the \SpecialChar LyX
10715  preferences) produced by this document
10716  class.
10717  It is mainly useful when 
10718 \begin_inset Flex Code
10719 status collapsed
10720
10721 \begin_layout Plain Layout
10722 OutputType
10723 \end_layout
10724
10725 \end_inset
10726
10727  is 
10728 \begin_inset Flex Code
10729 status collapsed
10730
10731 \begin_layout Plain Layout
10732 literate
10733 \end_layout
10734
10735 \end_inset
10736
10737  and one wants to define a new type of literate document.
10738  The format is reset to 
10739 \change_deleted 5863208 1594239413
10740
10741 \begin_inset Quotes eld
10742 \end_inset
10743
10744
10745 \begin_inset Flex Code
10746 status collapsed
10747
10748 \begin_layout Plain Layout
10749 docbook
10750 \end_layout
10751
10752 \end_inset
10753
10754
10755 \begin_inset Quotes erd
10756 \end_inset
10757
10758  or
10759 \change_unchanged
10760  
10761 \begin_inset Quotes eld
10762 \end_inset
10763
10764
10765 \begin_inset Flex Code
10766 status collapsed
10767
10768 \begin_layout Plain Layout
10769 latex
10770 \end_layout
10771
10772 \end_inset
10773
10774
10775 \begin_inset Quotes erd
10776 \end_inset
10777
10778  when the corresponding 
10779 \begin_inset Flex Code
10780 status collapsed
10781
10782 \begin_layout Plain Layout
10783 OutputType
10784 \end_layout
10785
10786 \end_inset
10787
10788  parameter is encountered.
10789 \end_layout
10790
10791 \begin_layout Description
10792 \begin_inset Flex Code
10793 status collapsed
10794
10795 \begin_layout Plain Layout
10796 OutputType
10797 \end_layout
10798
10799 \end_inset
10800
10801  [
10802 \begin_inset Flex Code
10803 status collapsed
10804
10805 \begin_layout Plain Layout
10806
10807 \emph on
10808 lat
10809 \emph default
10810 ex
10811 \end_layout
10812
10813 \end_inset
10814
10815
10816 \change_deleted 5863208 1594239430
10817
10818 \begin_inset Flex Code
10819 status collapsed
10820
10821 \begin_layout Plain Layout
10822 docbook
10823 \end_layout
10824
10825 \end_inset
10826
10827 ,
10828 \change_unchanged
10829  
10830 \begin_inset Flex Code
10831 status collapsed
10832
10833 \begin_layout Plain Layout
10834 literate
10835 \end_layout
10836
10837 \end_inset
10838
10839 ] Specifies what sort of output documents using this class will produce.
10840 \end_layout
10841
10842 \begin_layout Description
10843 \begin_inset Flex Code
10844 status collapsed
10845
10846 \begin_layout Plain Layout
10847 PackageOptions
10848 \end_layout
10849
10850 \end_inset
10851
10852  [
10853 \begin_inset Flex Code
10854 status collapsed
10855
10856 \begin_layout Plain Layout
10857 string
10858 \end_layout
10859
10860 \end_inset
10861
10862  
10863 \begin_inset Flex Code
10864 status collapsed
10865
10866 \begin_layout Plain Layout
10867 string
10868 \end_layout
10869
10870 \end_inset
10871
10872 ] Specifies options, given in the second string, for the package named by
10873  the first string.
10874  For example, 
10875 \begin_inset Quotes eld
10876 \end_inset
10877
10878
10879 \begin_inset Flex Code
10880 status collapsed
10881
10882 \begin_layout Plain Layout
10883 PackageOptions natbib square
10884 \end_layout
10885
10886 \end_inset
10887
10888
10889 \begin_inset Quotes erd
10890 \end_inset
10891
10892  will cause 
10893 \begin_inset Flex Code
10894 status collapsed
10895
10896 \begin_layout Plain Layout
10897 natbib
10898 \end_layout
10899
10900 \end_inset
10901
10902  to be loaded with the 
10903 \begin_inset Flex Code
10904 status collapsed
10905
10906 \begin_layout Plain Layout
10907 square
10908 \end_layout
10909
10910 \end_inset
10911
10912  option.
10913  (For \SpecialChar TeX
10914 perts, this causes \SpecialChar LyX
10915  to output: 
10916 \begin_inset Flex Code
10917 status collapsed
10918
10919 \begin_layout Plain Layout
10920
10921 \backslash
10922 PassOptionsToPackage{natbib}{square}
10923 \end_layout
10924
10925 \end_inset
10926
10927  prior to loading 
10928 \begin_inset Flex Code
10929 status collapsed
10930
10931 \begin_layout Plain Layout
10932 natbib
10933 \end_layout
10934
10935 \end_inset
10936
10937 .)
10938 \change_inserted -712698321 1565102364
10939
10940 \end_layout
10941
10942 \begin_layout Description
10943
10944 \change_inserted -712698321 1565102470
10945 \begin_inset Flex Code
10946 status collapsed
10947
10948 \begin_layout Plain Layout
10949
10950 \change_inserted -712698321 1565102365
10951 PageSize
10952 \change_unchanged
10953
10954 \end_layout
10955
10956 \end_inset
10957
10958  [
10959 \begin_inset Flex Code
10960 status collapsed
10961
10962 \begin_layout Plain Layout
10963
10964 \change_inserted -712698321 1565105222
10965
10966 \emph on
10967 custom
10968 \emph default
10969 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
10970  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
10971 \change_unchanged
10972
10973 \end_layout
10974
10975 \end_inset
10976
10977 ] The default page size.
10978  This is used by some converters.
10979 \change_unchanged
10980
10981 \end_layout
10982
10983 \begin_layout Description
10984 \begin_inset Flex Code
10985 status collapsed
10986
10987 \begin_layout Plain Layout
10988 PageStyle
10989 \end_layout
10990
10991 \end_inset
10992
10993  [
10994 \begin_inset Flex Code
10995 status collapsed
10996
10997 \begin_layout Plain Layout
10998
10999 \emph on
11000 plain
11001 \end_layout
11002
11003 \end_inset
11004
11005
11006 \begin_inset Flex Code
11007 status collapsed
11008
11009 \begin_layout Plain Layout
11010 empty
11011 \end_layout
11012
11013 \end_inset
11014
11015
11016 \begin_inset Flex Code
11017 status collapsed
11018
11019 \begin_layout Plain Layout
11020 headings
11021 \end_layout
11022
11023 \end_inset
11024
11025 ] The default pagestyle.
11026  Can be changed in the 
11027 \begin_inset Flex Noun
11028 status collapsed
11029
11030 \begin_layout Plain Layout
11031 Document\SpecialChar menuseparator
11032 Settings
11033 \end_layout
11034
11035 \end_inset
11036
11037  dialog.
11038 \end_layout
11039
11040 \begin_layout Description
11041 \begin_inset Flex Code
11042 status collapsed
11043
11044 \begin_layout Plain Layout
11045 Preamble
11046 \end_layout
11047
11048 \end_inset
11049
11050  Sets the preamble for the \SpecialChar LaTeX
11051  document.
11052  Note that this will completely override any prior 
11053 \begin_inset Flex Code
11054 status collapsed
11055
11056 \begin_layout Plain Layout
11057 Preamble
11058 \end_layout
11059
11060 \end_inset
11061
11062  or 
11063 \begin_inset Flex Code
11064 status collapsed
11065
11066 \begin_layout Plain Layout
11067 AddToPreamble
11068 \end_layout
11069
11070 \end_inset
11071
11072  declarations.
11073  (Use 
11074 \begin_inset Flex Code
11075 status collapsed
11076
11077 \begin_layout Plain Layout
11078 AddToPreamble
11079 \end_layout
11080
11081 \end_inset
11082
11083  if you just want to add material to the preamble.) Must end with 
11084 \begin_inset Quotes eld
11085 \end_inset
11086
11087
11088 \begin_inset Flex Code
11089 status collapsed
11090
11091 \begin_layout Plain Layout
11092 EndPreamble
11093 \end_layout
11094
11095 \end_inset
11096
11097
11098 \begin_inset Quotes erd
11099 \end_inset
11100
11101 .
11102 \end_layout
11103
11104 \begin_layout Description
11105 \begin_inset Flex Code
11106 status collapsed
11107
11108 \begin_layout Plain Layout
11109 Provides
11110 \end_layout
11111
11112 \end_inset
11113
11114  [
11115 \begin_inset Flex Code
11116 status collapsed
11117
11118 \begin_layout Plain Layout
11119 string
11120 \end_layout
11121
11122 \end_inset
11123
11124 ] [
11125 \begin_inset Flex Code
11126 status collapsed
11127
11128 \begin_layout Plain Layout
11129
11130 \emph on
11131 0
11132 \end_layout
11133
11134 \end_inset
11135
11136 ,
11137 \begin_inset space \thinspace{}
11138 \end_inset
11139
11140
11141 \begin_inset Flex Code
11142 status collapsed
11143
11144 \begin_layout Plain Layout
11145 1
11146 \end_layout
11147
11148 \end_inset
11149
11150 ] Whether the class already provides the feature 
11151 \begin_inset Flex Code
11152 status collapsed
11153
11154 \begin_layout Plain Layout
11155 string
11156 \end_layout
11157
11158 \end_inset
11159
11160 .
11161  A feature is in general the name of a package (e.
11162 \begin_inset space \thinspace{}
11163 \end_inset
11164
11165 g.
11166 \begin_inset space \space{}
11167 \end_inset
11168
11169
11170 \begin_inset Flex Code
11171 status collapsed
11172
11173 \begin_layout Plain Layout
11174 amsmath
11175 \end_layout
11176
11177 \end_inset
11178
11179  or 
11180 \begin_inset Flex Code
11181 status collapsed
11182
11183 \begin_layout Plain Layout
11184 makeidx
11185 \end_layout
11186
11187 \end_inset
11188
11189 ) or a macro (e.
11190 \begin_inset space \thinspace{}
11191 \end_inset
11192
11193 g.
11194 \begin_inset space \space{}
11195 \end_inset
11196
11197
11198 \begin_inset Flex Code
11199 status collapsed
11200
11201 \begin_layout Plain Layout
11202 url
11203 \end_layout
11204
11205 \end_inset
11206
11207  or 
11208 \begin_inset Flex Code
11209 status collapsed
11210
11211 \begin_layout Plain Layout
11212 boldsymbol
11213 \end_layout
11214
11215 \end_inset
11216
11217 ).
11218  See 
11219 \begin_inset CommandInset ref
11220 LatexCommand ref
11221 reference "chap:List-of-functions"
11222
11223 \end_inset
11224
11225  for the list of features.
11226 \end_layout
11227
11228 \begin_layout Description
11229 \begin_inset Flex Code
11230 status collapsed
11231
11232 \begin_layout Plain Layout
11233 ProvidesModule
11234 \end_layout
11235
11236 \end_inset
11237
11238  [
11239 \begin_inset Flex Code
11240 status collapsed
11241
11242 \begin_layout Plain Layout
11243 string
11244 \end_layout
11245
11246 \end_inset
11247
11248 ] Indicates that this layout provides the functionality of the module mentioned,
11249  which should be specified by the filename without the 
11250 \begin_inset Flex Code
11251 status collapsed
11252
11253 \begin_layout Plain Layout
11254 .module
11255 \end_layout
11256
11257 \end_inset
11258
11259  extension.
11260  This will typically be used if the layout includes the module directly,
11261  rather than using the 
11262 \begin_inset Flex Code
11263 status collapsed
11264
11265 \begin_layout Plain Layout
11266 DefaultModule
11267 \end_layout
11268
11269 \end_inset
11270
11271  tag to indicate that it ought to be used.
11272  It could also be used in a module that provided an alternate implementation
11273  of the same functionality.
11274 \end_layout
11275
11276 \begin_layout Description
11277 \begin_inset Flex Code
11278 status collapsed
11279
11280 \begin_layout Plain Layout
11281 ProvideStyle
11282 \end_layout
11283
11284 \end_inset
11285
11286  [
11287 \begin_inset Flex Code
11288 status collapsed
11289
11290 \begin_layout Plain Layout
11291 <style>
11292 \end_layout
11293
11294 \end_inset
11295
11296 ] Creates a new paragraph style if it does not already exist.
11297  If the style does exist, this section is ignored.
11298  Must end with 
11299 \begin_inset Quotes eld
11300 \end_inset
11301
11302
11303 \begin_inset Flex Code
11304 status collapsed
11305
11306 \begin_layout Plain Layout
11307 End
11308 \end_layout
11309
11310 \end_inset
11311
11312
11313 \begin_inset Quotes erd
11314 \end_inset
11315
11316 .
11317 \end_layout
11318
11319 \begin_layout Description
11320 \begin_inset Flex Code
11321 status collapsed
11322
11323 \begin_layout Plain Layout
11324 Requires
11325 \end_layout
11326
11327 \end_inset
11328
11329  [
11330 \begin_inset Flex Code
11331 status collapsed
11332
11333 \begin_layout Plain Layout
11334 string
11335 \end_layout
11336
11337 \end_inset
11338
11339 ] Whether the class requires the feature 
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 string
11345 \end_layout
11346
11347 \end_inset
11348
11349 .
11350  Multiple features must be separated by commas.
11351  Note that you can only request supported features.
11352  (See 
11353 \begin_inset CommandInset ref
11354 LatexCommand ref
11355 reference "chap:List-of-functions"
11356
11357 \end_inset
11358
11359  for the list of features.).
11360  If you require a package with specific options, you can additionally use
11361  
11362 \begin_inset Flex Code
11363 status collapsed
11364
11365 \begin_layout Plain Layout
11366 PackageOptions
11367 \end_layout
11368
11369 \end_inset
11370
11371 .
11372 \end_layout
11373
11374 \begin_layout Description
11375 \begin_inset Flex Code
11376 status collapsed
11377
11378 \begin_layout Plain Layout
11379 RightMargin
11380 \end_layout
11381
11382 \end_inset
11383
11384  [
11385 \begin_inset Flex Code
11386 status collapsed
11387
11388 \begin_layout Plain Layout
11389 string
11390 \end_layout
11391
11392 \end_inset
11393
11394 ] A string that indicates the width of the right margin on the screen, for
11395  example, 
11396 \begin_inset Quotes eld
11397 \end_inset
11398
11399
11400 \begin_inset Flex Code
11401 status collapsed
11402
11403 \begin_layout Plain Layout
11404 MMMMM
11405 \end_layout
11406
11407 \end_inset
11408
11409
11410 \begin_inset Quotes erd
11411 \end_inset
11412
11413 .
11414 \end_layout
11415
11416 \begin_layout Description
11417 \begin_inset Flex Code
11418 status collapsed
11419
11420 \begin_layout Plain Layout
11421 SecNumDepth
11422 \end_layout
11423
11424 \end_inset
11425
11426  [
11427 \begin_inset Flex Code
11428 status collapsed
11429
11430 \begin_layout Plain Layout
11431 int=3
11432 \end_layout
11433
11434 \end_inset
11435
11436 ] Sets which divisions get numbered.
11437  Corresponds to the
11438 \begin_inset Newline newline
11439 \end_inset
11440
11441
11442 \begin_inset Flex Code
11443 status collapsed
11444
11445 \begin_layout Plain Layout
11446 secnumdepth
11447 \end_layout
11448
11449 \end_inset
11450
11451  counter in \SpecialChar LaTeX
11452 .
11453 \end_layout
11454
11455 \begin_layout Description
11456 \begin_inset Flex Code
11457 status collapsed
11458
11459 \begin_layout Plain Layout
11460 Sides
11461 \end_layout
11462
11463 \end_inset
11464
11465  [
11466 \begin_inset Flex Code
11467 status collapsed
11468
11469 \begin_layout Plain Layout
11470
11471 \emph on
11472 1
11473 \end_layout
11474
11475 \end_inset
11476
11477 ,
11478 \begin_inset space \thinspace{}
11479 \end_inset
11480
11481
11482 \begin_inset Flex Code
11483 status collapsed
11484
11485 \begin_layout Plain Layout
11486 2
11487 \end_layout
11488
11489 \end_inset
11490
11491 ] Whether the class-default should be printing on one or both sides of the
11492  paper.
11493  Can be changed in the 
11494 \begin_inset Flex Noun
11495 status collapsed
11496
11497 \begin_layout Plain Layout
11498 Document\SpecialChar menuseparator
11499 Settings
11500 \end_layout
11501
11502 \end_inset
11503
11504  dialog.
11505 \end_layout
11506
11507 \begin_layout Description
11508 \begin_inset Flex Code
11509 status collapsed
11510
11511 \begin_layout Plain Layout
11512 Style
11513 \end_layout
11514
11515 \end_inset
11516
11517  [
11518 \begin_inset Flex Code
11519 status collapsed
11520
11521 \begin_layout Plain Layout
11522 <name>
11523 \end_layout
11524
11525 \end_inset
11526
11527 ] This sequence defines a paragraph style.
11528  If the style does not yet exist, it is created; if it does exist, its parameter
11529 s are modified.
11530  Must end with 
11531 \begin_inset Quotes eld
11532 \end_inset
11533
11534
11535 \begin_inset Flex Code
11536 status collapsed
11537
11538 \begin_layout Plain Layout
11539 End
11540 \end_layout
11541
11542 \end_inset
11543
11544
11545 \begin_inset Quotes erd
11546 \end_inset
11547
11548 .
11549 \begin_inset Newline newline
11550 \end_inset
11551
11552 See 
11553 \begin_inset CommandInset ref
11554 LatexCommand ref
11555 reference "subsec:Paragraph-Styles"
11556
11557 \end_inset
11558
11559  for details on paragraph styles.
11560 \change_inserted -712698321 1553617804
11561
11562 \end_layout
11563
11564 \begin_layout Description
11565
11566 \change_inserted -712698321 1553617862
11567 \begin_inset Flex Code
11568 status collapsed
11569
11570 \begin_layout Plain Layout
11571
11572 \change_inserted -712698321 1553617809
11573 TableStyle
11574 \change_unchanged
11575
11576 \end_layout
11577
11578 \end_inset
11579
11580  [
11581 \begin_inset Flex Code
11582 status collapsed
11583
11584 \begin_layout Plain Layout
11585
11586 \change_inserted -712698321 1553617805
11587 <name>
11588 \change_unchanged
11589
11590 \end_layout
11591
11592 \end_inset
11593
11594 ] defines the default table style that is used when inserting a table.
11595  The following styles are available:
11596 \end_layout
11597
11598 \begin_deeper
11599 \begin_layout Itemize
11600
11601 \change_inserted -712698321 1554308039
11602 \begin_inset Flex Code
11603 status collapsed
11604
11605 \begin_layout Plain Layout
11606
11607 \change_inserted -712698321 1554307928
11608 Formal_with_Footline
11609 \change_unchanged
11610
11611 \end_layout
11612
11613 \end_inset
11614
11615 : formal (
11616 \begin_inset Quotes eld
11617 \end_inset
11618
11619 booktabs
11620 \begin_inset Quotes erd
11621 \end_inset
11622
11623 ) style with horizontal lines only, using a bold top and bottom line, the
11624  first and last row are additionally separated from the table body with
11625  a thin middle line.
11626 \end_layout
11627
11628 \begin_layout Itemize
11629
11630 \change_inserted -712698321 1554308087
11631 \begin_inset Flex Code
11632 status collapsed
11633
11634 \begin_layout Plain Layout
11635
11636 \change_inserted -712698321 1554308042
11637 Formal_without_Footline
11638 \change_unchanged
11639
11640 \end_layout
11641
11642 \end_inset
11643
11644 : same as the above, but the last row is not separated with a middle line
11645  from the body.
11646 \end_layout
11647
11648 \begin_layout Itemize
11649
11650 \change_inserted -712698321 1553618031
11651 \begin_inset Flex Code
11652 status collapsed
11653
11654 \begin_layout Plain Layout
11655
11656 \change_inserted -712698321 1553618006
11657 Simple_Grid
11658 \change_unchanged
11659
11660 \end_layout
11661
11662 \end_inset
11663
11664 : Simple table lines.
11665 \end_layout
11666
11667 \begin_layout Itemize
11668
11669 \change_inserted -712698321 1553618309
11670 \begin_inset Flex Code
11671 status collapsed
11672
11673 \begin_layout Plain Layout
11674
11675 \change_inserted -712698321 1553618031
11676 Grid_with_Head
11677 \change_unchanged
11678
11679 \end_layout
11680
11681 \end_inset
11682
11683 : Like 
11684 \begin_inset Flex Code
11685 status collapsed
11686
11687 \begin_layout Plain Layout
11688
11689 \change_inserted -712698321 1553618043
11690 Simple_Grid
11691 \change_unchanged
11692
11693 \end_layout
11694
11695 \end_inset
11696
11697 , but with the header column offset with a second horizontal line.
11698  This is also the default style of \SpecialChar LyX
11699 .
11700 \end_layout
11701
11702 \begin_layout Itemize
11703
11704 \change_inserted -712698321 1553618280
11705 \begin_inset Flex Code
11706 status collapsed
11707
11708 \begin_layout Plain Layout
11709
11710 \change_inserted -712698321 1553618261
11711 No_Borders
11712 \change_unchanged
11713
11714 \end_layout
11715
11716 \end_inset
11717
11718 : Table without lines.
11719 \change_unchanged
11720
11721 \end_layout
11722
11723 \end_deeper
11724 \begin_layout Description
11725 \begin_inset Flex Code
11726 status collapsed
11727
11728 \begin_layout Plain Layout
11729 TitleLatexName
11730 \end_layout
11731
11732 \end_inset
11733
11734  [
11735 \begin_inset Flex Code
11736 status collapsed
11737
11738 \begin_layout Plain Layout
11739 string="maketitle"
11740 \end_layout
11741
11742 \end_inset
11743
11744 ] The name of the command or environment to be used with 
11745 \begin_inset Flex Code
11746 status collapsed
11747
11748 \begin_layout Plain Layout
11749 TitleLatexType
11750 \end_layout
11751
11752 \end_inset
11753
11754 .
11755 \end_layout
11756
11757 \begin_layout Description
11758 \begin_inset Flex Code
11759 status collapsed
11760
11761 \begin_layout Plain Layout
11762 TitleLatexType
11763 \end_layout
11764
11765 \end_inset
11766
11767  [
11768 \begin_inset Flex Code
11769 status collapsed
11770
11771 \begin_layout Plain Layout
11772
11773 \emph on
11774 CommandAfter
11775 \end_layout
11776
11777 \end_inset
11778
11779
11780 \begin_inset Flex Code
11781 status collapsed
11782
11783 \begin_layout Plain Layout
11784 Environment
11785 \end_layout
11786
11787 \end_inset
11788
11789 ] Indicates what kind of markup is used to define the title of a document.
11790  
11791 \begin_inset Flex Code
11792 status collapsed
11793
11794 \begin_layout Plain Layout
11795 CommandAfter
11796 \end_layout
11797
11798 \end_inset
11799
11800  means that the macro with name 
11801 \begin_inset Flex Code
11802 status collapsed
11803
11804 \begin_layout Plain Layout
11805 TitleLatexName
11806 \end_layout
11807
11808 \end_inset
11809
11810  will be inserted after the last layout which has 
11811 \begin_inset Quotes eld
11812 \end_inset
11813
11814
11815 \begin_inset Flex Code
11816 status collapsed
11817
11818 \begin_layout Plain Layout
11819 InTitle
11820 \begin_inset space ~
11821 \end_inset
11822
11823 1
11824 \end_layout
11825
11826 \end_inset
11827
11828
11829 \begin_inset Quotes erd
11830 \end_inset
11831
11832 .
11833  
11834 \begin_inset Flex Code
11835 status collapsed
11836
11837 \begin_layout Plain Layout
11838 Environment
11839 \end_layout
11840
11841 \end_inset
11842
11843  corresponds to the case where all layouts which have 
11844 \begin_inset Quotes eld
11845 \end_inset
11846
11847
11848 \begin_inset Flex Code
11849 status collapsed
11850
11851 \begin_layout Plain Layout
11852 InTitle
11853 \begin_inset space ~
11854 \end_inset
11855
11856 1
11857 \end_layout
11858
11859 \end_inset
11860
11861
11862 \begin_inset Quotes erd
11863 \end_inset
11864
11865  should be enclosed into the 
11866 \begin_inset Flex Code
11867 status collapsed
11868
11869 \begin_layout Plain Layout
11870 TitleLatexName
11871 \end_layout
11872
11873 \end_inset
11874
11875  environment.
11876 \end_layout
11877
11878 \begin_layout Description
11879 \begin_inset Flex Code
11880 status collapsed
11881
11882 \begin_layout Plain Layout
11883 TocDepth
11884 \end_layout
11885
11886 \end_inset
11887
11888  [
11889 \begin_inset Flex Code
11890 status collapsed
11891
11892 \begin_layout Plain Layout
11893 int=3
11894 \end_layout
11895
11896 \end_inset
11897
11898 ] Sets which divisions are included in the table of contents.
11899  Corresponds to the 
11900 \begin_inset Flex Code
11901 status collapsed
11902
11903 \begin_layout Plain Layout
11904 tocdepth
11905 \end_layout
11906
11907 \end_inset
11908
11909  counter in \SpecialChar LaTeX
11910 .
11911 \end_layout
11912
11913 \begin_layout Subsection
11914 \begin_inset Flex Code
11915 status collapsed
11916
11917 \begin_layout Plain Layout
11918 ClassOptions
11919 \end_layout
11920
11921 \end_inset
11922
11923  section
11924 \begin_inset CommandInset label
11925 LatexCommand label
11926 name "subsec:ClassOptions"
11927
11928 \end_inset
11929
11930
11931 \end_layout
11932
11933 \begin_layout Standard
11934 The 
11935 \begin_inset Flex Code
11936 status collapsed
11937
11938 \begin_layout Plain Layout
11939 ClassOptions
11940 \end_layout
11941
11942 \end_inset
11943
11944  section can contain the following entries:
11945 \end_layout
11946
11947 \begin_layout Description
11948 \begin_inset Flex Code
11949 status collapsed
11950
11951 \begin_layout Plain Layout
11952 FontSize
11953 \end_layout
11954
11955 \end_inset
11956
11957  [
11958 \begin_inset Flex Code
11959 status collapsed
11960
11961 \begin_layout Plain Layout
11962 string="10|11|12"
11963 \end_layout
11964
11965 \end_inset
11966
11967 ] The list of available font sizes for the document's main font, separated
11968  by 
11969 \begin_inset Quotes eld
11970 \end_inset
11971
11972
11973 \begin_inset Flex Code
11974 status collapsed
11975
11976 \begin_layout Plain Layout
11977 |
11978 \end_layout
11979
11980 \end_inset
11981
11982
11983 \begin_inset Quotes erd
11984 \end_inset
11985
11986 .
11987
11988 \change_inserted -712698321 1565110196
11989  Any number is possible.
11990 \end_layout
11991
11992 \begin_layout Description
11993
11994 \change_inserted -712698321 1565110259
11995 \begin_inset Flex Code
11996 status collapsed
11997
11998 \begin_layout Plain Layout
11999
12000 \change_inserted -712698321 1565110199
12001 FontSizeFormat
12002 \change_unchanged
12003
12004 \end_layout
12005
12006 \end_inset
12007
12008  [
12009 \begin_inset Flex Code
12010 status collapsed
12011
12012 \begin_layout Plain Layout
12013
12014 \change_inserted -712698321 1565110196
12015 string
12016 \change_unchanged
12017
12018 \end_layout
12019
12020 \end_inset
12021
12022 ] The format for the font size option.
12023  Default: 
12024 \begin_inset Flex Code
12025 status collapsed
12026
12027 \begin_layout Plain Layout
12028
12029 \change_inserted -712698321 1565110238
12030 $$spt
12031 \change_unchanged
12032
12033 \end_layout
12034
12035 \end_inset
12036
12037 .
12038  
12039 \begin_inset Flex Code
12040 status collapsed
12041
12042 \begin_layout Plain Layout
12043
12044 \change_inserted -712698321 1565110248
12045 $$s
12046 \change_unchanged
12047
12048 \end_layout
12049
12050 \end_inset
12051
12052  is a placeholder for the font size.
12053 \change_unchanged
12054
12055 \end_layout
12056
12057 \begin_layout Description
12058
12059 \change_deleted 5863208 1594239483
12060 \begin_inset Flex Code
12061 status collapsed
12062
12063 \begin_layout Plain Layout
12064 Header
12065 \end_layout
12066
12067 \end_inset
12068
12069  Used to set the DTD line with XML-based output classes.
12070  E.
12071 \begin_inset space \thinspace{}
12072 \end_inset
12073
12074 g.: PUBLIC 
12075 \begin_inset Quotes eld
12076 \end_inset
12077
12078 -//OASIS//DTD DocBook V4.2//EN
12079 \begin_inset Quotes erd
12080 \end_inset
12081
12082 .
12083 \change_inserted -712698321 1565101761
12084
12085 \end_layout
12086
12087 \begin_layout Description
12088
12089 \change_inserted -712698321 1565180598
12090 \begin_inset Flex Code
12091 status collapsed
12092
12093 \begin_layout Plain Layout
12094
12095 \change_inserted -712698321 1565101918
12096 PageSize
12097 \change_unchanged
12098
12099 \end_layout
12100
12101 \end_inset
12102
12103  [
12104 \begin_inset Flex Code
12105 status collapsed
12106
12107 \begin_layout Plain Layout
12108
12109 \change_inserted -712698321 1565105399
12110 string="letter|\SpecialChar allowbreak
12111 legal|\SpecialChar allowbreak
12112 executive|\SpecialChar allowbreak
12113 a0|\SpecialChar allowbreak
12114 a1|\SpecialChar allowbreak
12115 a2|\SpecialChar allowbreak
12116 a3|\SpecialChar allowbreak
12117 a4|\SpecialChar allowbreak
12118 a5|\SpecialChar allowbreak
12119 a6|\SpecialChar allowbreak
12120 b0|\SpecialChar allowbreak
12121 b1|\SpecialChar allowbreak
12122 b2|\SpecialChar allowbreak
12123 b3|\SpecialChar allowbreak
12124 b4|\SpecialChar allowbreak
12125 b5|\SpecialChar allowbreak
12126 b6|\SpecialChar allowbreak
12127 c0|\SpecialChar allowbreak
12128 c1|\SpecialChar allowbreak
12129 c
12130 2|\SpecialChar allowbreak
12131 c3|\SpecialChar allowbreak
12132 c4|\SpecialChar allowbreak
12133 c5|\SpecialChar allowbreak
12134 c6|\SpecialChar allowbreak
12135 b0j|\SpecialChar allowbreak
12136 b1j|\SpecialChar allowbreak
12137 b2j|\SpecialChar allowbreak
12138 b3j|\SpecialChar allowbreak
12139 b4j|\SpecialChar allowbreak
12140 b5j|\SpecialChar allowbreak
12141 b6j"
12142 \change_unchanged
12143
12144 \end_layout
12145
12146 \end_inset
12147
12148 ] The list of available page sizes, separated by 
12149 \begin_inset Quotes eld
12150 \end_inset
12151
12152
12153 \begin_inset Flex Code
12154 status collapsed
12155
12156 \begin_layout Plain Layout
12157
12158 \change_inserted -712698321 1565101779
12159 |
12160 \change_unchanged
12161
12162 \end_layout
12163
12164 \end_inset
12165
12166
12167 \begin_inset Quotes erd
12168 \end_inset
12169
12170 .
12171  Currently, only the listed sizes are supported.
12172  Other sizes might be entered as custom class option.
12173 \end_layout
12174
12175 \begin_layout Description
12176
12177 \change_inserted -712698321 1565180623
12178 \begin_inset Flex Code
12179 status collapsed
12180
12181 \begin_layout Plain Layout
12182
12183 \change_inserted -712698321 1565180605
12184 PageSizeFormat
12185 \change_unchanged
12186
12187 \end_layout
12188
12189 \end_inset
12190
12191  [
12192 \begin_inset Flex Code
12193 status collapsed
12194
12195 \begin_layout Plain Layout
12196
12197 \change_inserted -712698321 1565180601
12198 string
12199 \change_unchanged
12200
12201 \end_layout
12202
12203 \end_inset
12204
12205 ] The format for the page size option.
12206  Default: 
12207 \begin_inset Flex Code
12208 status collapsed
12209
12210 \begin_layout Plain Layout
12211
12212 \change_inserted -712698321 1565180618
12213 $$spaper
12214 \change_unchanged
12215
12216 \end_layout
12217
12218 \end_inset
12219
12220 .
12221  
12222 \begin_inset Flex Code
12223 status collapsed
12224
12225 \begin_layout Plain Layout
12226
12227 \change_inserted -712698321 1565180601
12228 $$s
12229 \change_unchanged
12230
12231 \end_layout
12232
12233 \end_inset
12234
12235  is a placeholder for the paper size.
12236 \change_unchanged
12237
12238 \end_layout
12239
12240 \begin_layout Description
12241 \begin_inset Flex Code
12242 status collapsed
12243
12244 \begin_layout Plain Layout
12245 PageStyle
12246 \end_layout
12247
12248 \end_inset
12249
12250  [
12251 \begin_inset Flex Code
12252 status collapsed
12253
12254 \begin_layout Plain Layout
12255 string="empty|plain|headings|fancy"
12256 \end_layout
12257
12258 \end_inset
12259
12260 ] The list of available page sty\SpecialChar softhyphen
12261 les, separated by 
12262 \begin_inset Quotes eld
12263 \end_inset
12264
12265
12266 \begin_inset Flex Code
12267 status collapsed
12268
12269 \begin_layout Plain Layout
12270 |
12271 \end_layout
12272
12273 \end_inset
12274
12275
12276 \begin_inset Quotes erd
12277 \end_inset
12278
12279 .
12280 \end_layout
12281
12282 \begin_layout Description
12283 \begin_inset Flex Code
12284 status collapsed
12285
12286 \begin_layout Plain Layout
12287 Other
12288 \end_layout
12289
12290 \end_inset
12291
12292  [
12293 \begin_inset Flex Code
12294 status collapsed
12295
12296 \begin_layout Plain Layout
12297 string=""
12298 \end_layout
12299
12300 \end_inset
12301
12302 ] Some document class options, separated by a comma, that will be added
12303  to the optional part of the 
12304 \begin_inset Flex Code
12305 status collapsed
12306
12307 \begin_layout Plain Layout
12308
12309 \backslash
12310 documentclass
12311 \end_layout
12312
12313 \end_inset
12314
12315  command.
12316 \end_layout
12317
12318 \begin_layout Standard
12319 The 
12320 \begin_inset Flex Code
12321 status collapsed
12322
12323 \begin_layout Plain Layout
12324 ClassOptions
12325 \end_layout
12326
12327 \end_inset
12328
12329  section must end with 
12330 \begin_inset Quotes eld
12331 \end_inset
12332
12333
12334 \begin_inset Flex Code
12335 status collapsed
12336
12337 \begin_layout Plain Layout
12338 End
12339 \end_layout
12340
12341 \end_inset
12342
12343
12344 \begin_inset Quotes erd
12345 \end_inset
12346
12347 .
12348 \end_layout
12349
12350 \begin_layout Subsection
12351 Paragraph styles
12352 \begin_inset CommandInset label
12353 LatexCommand label
12354 name "subsec:Paragraph-Styles"
12355
12356 \end_inset
12357
12358
12359 \end_layout
12360
12361 \begin_layout Standard
12362 A paragraph style description looks like this:
12363 \begin_inset Foot
12364 status collapsed
12365
12366 \begin_layout Plain Layout
12367 Note that this will either define a new style or modify an existing one.
12368 \end_layout
12369
12370 \end_inset
12371
12372
12373 \end_layout
12374
12375 \begin_layout LyX-Code
12376 Style 
12377 \family roman
12378 \emph on
12379 name
12380 \end_layout
12381
12382 \begin_layout LyX-Code
12383  ...
12384 \end_layout
12385
12386 \begin_layout LyX-Code
12387 End
12388 \end_layout
12389
12390 \begin_layout Standard
12391 where the following commands are allowed:
12392 \end_layout
12393
12394 \begin_layout Description
12395 \begin_inset Flex Code
12396 status collapsed
12397
12398 \begin_layout Plain Layout
12399 AddToToc
12400 \end_layout
12401
12402 \end_inset
12403
12404  [
12405 \begin_inset Flex Code
12406 status collapsed
12407
12408 \begin_layout Plain Layout
12409 string
12410 \end_layout
12411
12412 \end_inset
12413
12414 =""] This paragraph will appear in the table of contents of the given type.
12415  An empty string disables.
12416  See also the OutlinerName and the IsTocCaption commands.
12417  Default: disabled.
12418 \end_layout
12419
12420 \begin_layout Description
12421 \begin_inset Flex Code
12422 status collapsed
12423
12424 \begin_layout Plain Layout
12425 Align
12426 \end_layout
12427
12428 \end_inset
12429
12430  [
12431 \begin_inset Flex Code
12432 status collapsed
12433
12434 \begin_layout Plain Layout
12435
12436 \emph on
12437 block
12438 \emph default
12439 , left, right, center
12440 \end_layout
12441
12442 \end_inset
12443
12444 ] Paragraph alignment.
12445 \end_layout
12446
12447 \begin_layout Description
12448 \begin_inset Flex Code
12449 status collapsed
12450
12451 \begin_layout Plain Layout
12452 AlignPossible
12453 \end_layout
12454
12455 \end_inset
12456
12457  [
12458 \begin_inset Flex Code
12459 status collapsed
12460
12461 \begin_layout Plain Layout
12462
12463 \emph on
12464 block
12465 \emph default
12466 , left, right, center
12467 \end_layout
12468
12469 \end_inset
12470
12471 ] A comma separated list of permitted alignments.
12472  (Some \SpecialChar LaTeX
12473  styles prohibit certain alignments, since those wouldn't make sense.
12474  For example a right-aligned or centered enumeration isn't possible.)
12475 \end_layout
12476
12477 \begin_layout Description
12478 \begin_inset Flex Code
12479 status collapsed
12480
12481 \begin_layout Plain Layout
12482 Argument
12483 \end_layout
12484
12485 \end_inset
12486
12487  [
12488 \begin_inset Flex Code
12489 status collapsed
12490
12491 \begin_layout Plain Layout
12492 int
12493 \end_layout
12494
12495 \end_inset
12496
12497 ] Defines argument number <int> of a command\SpecialChar breakableslash
12498 environment associated with
12499  the current style.
12500  This is useful for things like section headings, and only makes sense with
12501  \SpecialChar LaTeX
12502 .
12503  Every (optional or required) argument of a command or environment – except
12504  for the required argument that is associated with the content of the paragraph
12505  itself – has a separate definition, where the number specifies the order
12506  of the arguments.
12507  The definition must end with 
12508 \begin_inset Flex Code
12509 status collapsed
12510
12511 \begin_layout Plain Layout
12512 EndArgument
12513 \end_layout
12514
12515 \end_inset
12516
12517 .
12518  So a command with two optional arguments has:
12519 \end_layout
12520
12521 \begin_deeper
12522 \begin_layout Quote
12523
12524 \family typewriter
12525 Argument 1
12526 \end_layout
12527
12528 \begin_layout Quote
12529
12530 \family typewriter
12531 ...
12532 \end_layout
12533
12534 \begin_layout Quote
12535
12536 \family typewriter
12537 EndArgument
12538 \end_layout
12539
12540 \begin_layout Quote
12541
12542 \family typewriter
12543 Argument 2
12544 \end_layout
12545
12546 \begin_layout Quote
12547
12548 \family typewriter
12549 ...
12550 \end_layout
12551
12552 \begin_layout Quote
12553
12554 \family typewriter
12555 EndArgument
12556 \end_layout
12557
12558 \begin_layout Standard
12559 Inside the 
12560 \begin_inset Flex Code
12561 status collapsed
12562
12563 \begin_layout Plain Layout
12564 Argument
12565 \end_layout
12566
12567 \end_inset
12568
12569  definition, the following specifications are possible:
12570 \end_layout
12571
12572 \begin_layout Itemize
12573 \begin_inset Flex Code
12574 status collapsed
12575
12576 \begin_layout Plain Layout
12577 LabelString
12578 \end_layout
12579
12580 \end_inset
12581
12582  
12583 \begin_inset Flex Code
12584 status collapsed
12585
12586 \begin_layout Plain Layout
12587 [string]
12588 \end_layout
12589
12590 \end_inset
12591
12592  The string that will appear both in the menu (to insert this argument)
12593  and on the argument inset button (unless you also specify a separate 
12594 \begin_inset Flex Code
12595 status collapsed
12596
12597 \begin_layout Plain Layout
12598 MenuString
12599 \end_layout
12600
12601 \end_inset
12602
12603 ).
12604  For the menu, you can define an accelerator by appending the respective
12605  character to the string, divided by 
12606 \begin_inset Quotes eld
12607 \end_inset
12608
12609 |
12610 \begin_inset Quotes erd
12611 \end_inset
12612
12613  (e.
12614 \begin_inset space \thinspace{}
12615 \end_inset
12616
12617 g.
12618 \begin_inset space \space{}
12619 \end_inset
12620
12621
12622 \begin_inset Quotes eld
12623 \end_inset
12624
12625
12626 \begin_inset Flex Code
12627 status collapsed
12628
12629 \begin_layout Plain Layout
12630 Short Title|S
12631 \end_layout
12632
12633 \end_inset
12634
12635
12636 \begin_inset Quotes erd
12637 \end_inset
12638
12639 ).
12640 \end_layout
12641
12642 \begin_layout Itemize
12643 \begin_inset Flex Code
12644 status collapsed
12645
12646 \begin_layout Plain Layout
12647 MenuString
12648 \end_layout
12649
12650 \end_inset
12651
12652  
12653 \begin_inset Flex Code
12654 status collapsed
12655
12656 \begin_layout Plain Layout
12657 [string]
12658 \end_layout
12659
12660 \end_inset
12661
12662  A separate string for the menu.
12663  You can define an accelerator by appending the respective character to
12664  the string, divided by 
12665 \begin_inset Quotes eld
12666 \end_inset
12667
12668 |
12669 \begin_inset Quotes erd
12670 \end_inset
12671
12672  (e.
12673 \begin_inset space \thinspace{}
12674 \end_inset
12675
12676 g.
12677 \begin_inset space \space{}
12678 \end_inset
12679
12680
12681 \begin_inset Quotes eld
12682 \end_inset
12683
12684
12685 \begin_inset Flex Code
12686 status collapsed
12687
12688 \begin_layout Plain Layout
12689 Short Title|S
12690 \end_layout
12691
12692 \end_inset
12693
12694
12695 \begin_inset Quotes erd
12696 \end_inset
12697
12698 ).
12699  This specification is optional.
12700  If it is not given the 
12701 \begin_inset Flex Code
12702 status collapsed
12703
12704 \begin_layout Plain Layout
12705 LabelString
12706 \end_layout
12707
12708 \end_inset
12709
12710  will be used instead for the menu.
12711 \end_layout
12712
12713 \begin_layout Itemize
12714 \begin_inset Flex Code
12715 status collapsed
12716
12717 \begin_layout Plain Layout
12718 Tooltip
12719 \end_layout
12720
12721 \end_inset
12722
12723  
12724 \begin_inset Flex Code
12725 status collapsed
12726
12727 \begin_layout Plain Layout
12728 [string]
12729 \end_layout
12730
12731 \end_inset
12732
12733  A longer explanatory text that appears in the tooltip when hovering over
12734  the argument inset.
12735 \end_layout
12736
12737 \begin_layout Itemize
12738 \begin_inset Flex Code
12739 status collapsed
12740
12741 \begin_layout Plain Layout
12742 Mandatory
12743 \end_layout
12744
12745 \end_inset
12746
12747  [
12748 \begin_inset Flex Code
12749 status collapsed
12750
12751 \begin_layout Plain Layout
12752
12753 \emph on
12754 0
12755 \end_layout
12756
12757 \end_inset
12758
12759 ,
12760 \begin_inset space \thinspace{}
12761 \end_inset
12762
12763
12764 \begin_inset Flex Code
12765 status collapsed
12766
12767 \begin_layout Plain Layout
12768 1
12769 \end_layout
12770
12771 \end_inset
12772
12773 ] Declare if this is a mandatory (1) or an optional (0) argument.
12774  Mandatory arguments will be output empty if not given, while optional arguments
12775  will not be output at all.
12776  By default, mandatory arguments are delimited by 
12777 \begin_inset Flex Code
12778 status collapsed
12779
12780 \begin_layout Plain Layout
12781 {...}
12782 \end_layout
12783
12784 \end_inset
12785
12786 , while optional arguments are delimited by 
12787 \begin_inset Flex Code
12788 status collapsed
12789
12790 \begin_layout Plain Layout
12791 [...]
12792 \end_layout
12793
12794 \end_inset
12795
12796
12797 \change_inserted -712698321 1555579782
12798
12799 \end_layout
12800
12801 \begin_layout Itemize
12802
12803 \change_inserted -712698321 1555579780
12804 \begin_inset Flex Code
12805 status collapsed
12806
12807 \begin_layout Plain Layout
12808
12809 \change_inserted -712698321 1555579780
12810 NewlineCmd
12811 \change_unchanged
12812
12813 \end_layout
12814
12815 \end_inset
12816
12817  
12818 \begin_inset Flex Code
12819 status collapsed
12820
12821 \begin_layout Plain Layout
12822
12823 \change_inserted -712698321 1555579780
12824 [string]
12825 \change_unchanged
12826
12827 \end_layout
12828
12829 \end_inset
12830
12831  Option to define a different command (from the default 
12832 \begin_inset Flex Code
12833 status collapsed
12834
12835 \begin_layout Plain Layout
12836
12837 \change_inserted -712698321 1555579780
12838
12839 \backslash
12840
12841 \backslash
12842
12843 \change_unchanged
12844
12845 \end_layout
12846
12847 \end_inset
12848
12849 ) to be used for line breaks.
12850  The initial backslash must not be specified.
12851 \change_unchanged
12852
12853 \end_layout
12854
12855 \begin_layout Itemize
12856 \begin_inset Flex Code
12857 status collapsed
12858
12859 \begin_layout Plain Layout
12860 Requires
12861 \end_layout
12862
12863 \end_inset
12864
12865  
12866 \begin_inset Flex Code
12867 status collapsed
12868
12869 \begin_layout Plain Layout
12870 [int=0]
12871 \end_layout
12872
12873 \end_inset
12874
12875  defines another argument (by its number) which this argument requires to
12876  be output if it is itself output.
12877  E.
12878 \begin_inset space \thinspace{}
12879 \end_inset
12880
12881 g., in \SpecialChar LaTeX
12882  commands, optional arguments often require previous optional arguments
12883  to be output (at least empty), as in 
12884 \begin_inset Flex Code
12885 status collapsed
12886
12887 \begin_layout Plain Layout
12888
12889 \backslash
12890 command[][argument]{text}
12891 \end_layout
12892
12893 \end_inset
12894
12895 .
12896  This can be achieved by the statement 
12897 \begin_inset Flex Code
12898 status collapsed
12899
12900 \begin_layout Plain Layout
12901 Requires 1
12902 \end_layout
12903
12904 \end_inset
12905
12906  within 
12907 \begin_inset Flex Code
12908 status collapsed
12909
12910 \begin_layout Plain Layout
12911 Argument 2
12912 \end_layout
12913
12914 \end_inset
12915
12916 .
12917 \end_layout
12918
12919 \begin_layout Itemize
12920 \begin_inset Flex Code
12921 status collapsed
12922
12923 \begin_layout Plain Layout
12924 LeftDelim
12925 \end_layout
12926
12927 \end_inset
12928
12929  
12930 \begin_inset Flex Code
12931 status collapsed
12932
12933 \begin_layout Plain Layout
12934 [string]
12935 \end_layout
12936
12937 \end_inset
12938
12939  defines a custom left delimiter (instead of 
12940 \begin_inset Flex Code
12941 status collapsed
12942
12943 \begin_layout Plain Layout
12944 {
12945 \end_layout
12946
12947 \end_inset
12948
12949  or 
12950 \begin_inset Flex Code
12951 status collapsed
12952
12953 \begin_layout Plain Layout
12954 [
12955 \end_layout
12956
12957 \end_inset
12958
12959 ).
12960  A line break in the output can be indicated by 
12961 \begin_inset Flex Code
12962 status collapsed
12963
12964 \begin_layout Plain Layout
12965 <br/>
12966 \end_layout
12967
12968 \end_inset
12969
12970 .
12971 \end_layout
12972
12973 \begin_layout Itemize
12974 \begin_inset Flex Code
12975 status collapsed
12976
12977 \begin_layout Plain Layout
12978 RightDelim
12979 \end_layout
12980
12981 \end_inset
12982
12983  
12984 \begin_inset Flex Code
12985 status collapsed
12986
12987 \begin_layout Plain Layout
12988 [string]
12989 \end_layout
12990
12991 \end_inset
12992
12993  defines a custom right delimiter (instead of 
12994 \begin_inset Flex Code
12995 status collapsed
12996
12997 \begin_layout Plain Layout
12998 }
12999 \end_layout
13000
13001 \end_inset
13002
13003  or 
13004 \begin_inset Flex Code
13005 status collapsed
13006
13007 \begin_layout Plain Layout
13008 ]
13009 \end_layout
13010
13011 \end_inset
13012
13013 ).
13014  A line break in the output can be indicated by 
13015 \begin_inset Flex Code
13016 status collapsed
13017
13018 \begin_layout Plain Layout
13019 <br/>
13020 \end_layout
13021
13022 \end_inset
13023
13024 .
13025 \end_layout
13026
13027 \begin_layout Itemize
13028 \begin_inset Flex Code
13029 status collapsed
13030
13031 \begin_layout Plain Layout
13032 DefaultArg
13033 \end_layout
13034
13035 \end_inset
13036
13037  
13038 \begin_inset Flex Code
13039 status collapsed
13040
13041 \begin_layout Plain Layout
13042 [string]
13043 \end_layout
13044
13045 \end_inset
13046
13047  defines an argument that is inserted if and only if no user-specified arguments
13048  were given, i.
13049 \begin_inset space \thinspace{}
13050 \end_inset
13051
13052 e.
13053 \begin_inset space \space{}
13054 \end_inset
13055
13056 if no argument inset has been inserted (note that also an empty argument
13057  inset omits the DefaultArg).
13058  Multiple arguments need to be separated by comma.
13059 \end_layout
13060
13061 \begin_layout Itemize
13062 \begin_inset Flex Code
13063 status collapsed
13064
13065 \begin_layout Plain Layout
13066 PresetArg
13067 \end_layout
13068
13069 \end_inset
13070
13071  
13072 \begin_inset Flex Code
13073 status collapsed
13074
13075 \begin_layout Plain Layout
13076 [string]
13077 \end_layout
13078
13079 \end_inset
13080
13081  defines an argument that is inserted in any case (alone or in addition
13082  to user-specified arguments).
13083  Multiple arguments need to be separated by comma.
13084 \end_layout
13085
13086 \begin_layout Itemize
13087 \begin_inset Flex Code
13088 status collapsed
13089
13090 \begin_layout Plain Layout
13091 Font
13092 \end_layout
13093
13094 \end_inset
13095
13096  The font used for the argument content, see 
13097 \begin_inset CommandInset ref
13098 LatexCommand ref
13099 reference "subsec:Font-description"
13100
13101 \end_inset
13102
13103 .
13104 \change_inserted -712698321 1559484228
13105
13106 \end_layout
13107
13108 \begin_layout Itemize
13109
13110 \change_inserted -712698321 1559484228
13111 \begin_inset Flex Code
13112 status collapsed
13113
13114 \begin_layout Plain Layout
13115
13116 \change_inserted -712698321 1559484228
13117 FreeSpacing
13118 \change_unchanged
13119
13120 \end_layout
13121
13122 \end_inset
13123
13124  [
13125 \begin_inset Flex Code
13126 status collapsed
13127
13128 \begin_layout Plain Layout
13129
13130 \change_inserted -712698321 1559484228
13131
13132 \emph on
13133 0
13134 \change_unchanged
13135
13136 \end_layout
13137
13138 \end_inset
13139
13140 ,
13141 \begin_inset space \thinspace{}
13142 \end_inset
13143
13144
13145 \begin_inset Flex Code
13146 status collapsed
13147
13148 \begin_layout Plain Layout
13149
13150 \change_inserted -712698321 1559484228
13151 1
13152 \change_unchanged
13153
13154 \end_layout
13155
13156 \end_inset
13157
13158 ] As with paragraph styles, see 
13159 \begin_inset CommandInset ref
13160 LatexCommand ref
13161 reference "subsec:Paragraph-Styles"
13162
13163 \end_inset
13164
13165 .
13166 \change_unchanged
13167
13168 \end_layout
13169
13170 \begin_layout Itemize
13171 \begin_inset Flex Code
13172 status collapsed
13173
13174 \begin_layout Plain Layout
13175 LabelFont
13176 \end_layout
13177
13178 \end_inset
13179
13180  The font used for the label; see 
13181 \begin_inset CommandInset ref
13182 LatexCommand ref
13183 reference "subsec:Font-description"
13184
13185 \end_inset
13186
13187 .
13188 \end_layout
13189
13190 \begin_layout Itemize
13191 \begin_inset Flex Code
13192 status collapsed
13193
13194 \begin_layout Plain Layout
13195 Decoration
13196 \end_layout
13197
13198 \end_inset
13199
13200  [
13201 \begin_inset Flex Code
13202 status collapsed
13203
13204 \begin_layout Plain Layout
13205
13206 \emph on
13207 Classic
13208 \emph default
13209 , Minimalistic, Conglomerate
13210 \end_layout
13211
13212 \end_inset
13213
13214 ] describes the rendering style used for the inset's frame and buttons.
13215 \end_layout
13216
13217 \begin_layout Itemize
13218 \begin_inset Flex Code
13219 status collapsed
13220
13221 \begin_layout Plain Layout
13222 AutoInsert
13223 \end_layout
13224
13225 \end_inset
13226
13227  
13228 \begin_inset Flex Code
13229 status collapsed
13230
13231 \begin_layout Plain Layout
13232 [int=0]
13233 \end_layout
13234
13235 \end_inset
13236
13237  If this is set to 
13238 \begin_inset Flex Code
13239 status collapsed
13240
13241 \begin_layout Plain Layout
13242 1
13243 \end_layout
13244
13245 \end_inset
13246
13247 , this argument is automatically inserted when the respective style is selected.
13248
13249 \change_deleted -712698321 1559484200
13250  Currently, only one argument per style\SpecialChar breakableslash
13251 layout can be automatically inserted.
13252 \change_unchanged
13253
13254 \end_layout
13255
13256 \begin_layout Itemize
13257
13258 \change_inserted -712698321 1559491402
13259 \begin_inset Flex Code
13260 status collapsed
13261
13262 \begin_layout Plain Layout
13263
13264 \change_inserted -712698321 1559490711
13265 InsertOnNewline
13266 \change_unchanged
13267
13268 \end_layout
13269
13270 \end_inset
13271
13272  
13273 \begin_inset Flex Code
13274 status collapsed
13275
13276 \begin_layout Plain Layout
13277
13278 \change_inserted -712698321 1559490703
13279 [int=0]
13280 \change_unchanged
13281
13282 \end_layout
13283
13284 \end_inset
13285
13286  If this is set to 
13287 \begin_inset Flex Code
13288 status collapsed
13289
13290 \begin_layout Plain Layout
13291
13292 \change_inserted -712698321 1559490703
13293 1
13294 \change_unchanged
13295
13296 \end_layout
13297
13298 \end_inset
13299
13300 , this argument will be inserted on a new line with 
13301 \begin_inset Flex Code
13302 status collapsed
13303
13304 \begin_layout Plain Layout
13305
13306 \change_inserted -712698321 1559491402
13307 AutoInsert
13308 \change_unchanged
13309
13310 \end_layout
13311
13312 \end_inset
13313
13314  (only available within Flex insets).
13315 \end_layout
13316
13317 \begin_layout Itemize
13318 \begin_inset Flex Code
13319 status collapsed
13320
13321 \begin_layout Plain Layout
13322 InsertCotext
13323 \end_layout
13324
13325 \end_inset
13326
13327  
13328 \begin_inset Flex Code
13329 status collapsed
13330
13331 \begin_layout Plain Layout
13332 [int=0]
13333 \end_layout
13334
13335 \end_inset
13336
13337  If this is set to 
13338 \begin_inset Flex Code
13339 status collapsed
13340
13341 \begin_layout Plain Layout
13342 1
13343 \end_layout
13344
13345 \end_inset
13346
13347 , this argument will be inserted with a copy of the co-text (either selected
13348  text or the whole paragraph) as content.
13349 \end_layout
13350
13351 \begin_layout Itemize
13352 \begin_inset Flex Code
13353 status collapsed
13354
13355 \begin_layout Plain Layout
13356 PassThru
13357 \end_layout
13358
13359 \end_inset
13360
13361  [
13362 \begin_inset Flex Code
13363 status collapsed
13364
13365 \begin_layout Plain Layout
13366
13367 \emph on
13368 inherited
13369 \emph default
13370 , true, false
13371 \end_layout
13372
13373 \end_inset
13374
13375 ] Whether the contents of this argument should be output in raw form, meaning
13376  without special translations that \SpecialChar LaTeX
13377  would require.
13378  By default, the 
13379 \begin_inset Flex Code
13380 status collapsed
13381
13382 \begin_layout Plain Layout
13383 PassThru
13384 \end_layout
13385
13386 \end_inset
13387
13388  status is inherited by the inset or paragraph layout the argument belongs
13389  to, true and false change the status for the given argument only.
13390 \end_layout
13391
13392 \begin_layout Itemize
13393 \begin_inset Flex Code
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397 PassThruChars
13398 \end_layout
13399
13400 \end_inset
13401
13402  [
13403 \begin_inset Flex Code
13404 status collapsed
13405
13406 \begin_layout Plain Layout
13407 string of characters
13408 \end_layout
13409
13410 \end_inset
13411
13412 ]
13413 \family typewriter
13414  
13415 \family default
13416 Defines individual characters
13417 \begin_inset Newline linebreak
13418 \end_inset
13419
13420 that should be output in raw form, meaning without special translations
13421  that \SpecialChar LaTeX
13422  would require.
13423  Note that, contrary to PassThru, this needs to be explicitly defined for
13424  arguments.
13425  That is, arguments do not inherit PassThruChars from their parent inset
13426  or layout.
13427 \end_layout
13428
13429 \begin_layout Itemize
13430 \begin_inset Flex Code
13431 status collapsed
13432
13433 \begin_layout Plain Layout
13434 IsTocCaption
13435 \end_layout
13436
13437 \end_inset
13438
13439  [
13440 \begin_inset Flex Code
13441 status collapsed
13442
13443 \begin_layout Plain Layout
13444
13445 \emph on
13446 0
13447 \end_layout
13448
13449 \end_inset
13450
13451 ,
13452 \begin_inset space \thinspace{}
13453 \end_inset
13454
13455
13456 \begin_inset Flex Code
13457 status collapsed
13458
13459 \begin_layout Plain Layout
13460 1
13461 \end_layout
13462
13463 \end_inset
13464
13465 ] If this is set to 1, the argument will output its content in the corresponding
13466  item in the table of contents.
13467  See AddToToc.
13468 \end_layout
13469
13470 \begin_layout Standard
13471 By default, the text entered in the \SpecialChar LyX
13472  workarea in the respective layout is
13473  the last (mandatory) argument of a command if the 
13474 \begin_inset Flex Code
13475 status collapsed
13476
13477 \begin_layout Plain Layout
13478 LatexType
13479 \end_layout
13480
13481 \end_inset
13482
13483  is 
13484 \begin_inset Flex Code
13485 status collapsed
13486
13487 \begin_layout Plain Layout
13488 Command
13489 \end_layout
13490
13491 \end_inset
13492
13493 .
13494  However, arguments with the prefix 
13495 \begin_inset Flex Code
13496 status collapsed
13497
13498 \begin_layout Plain Layout
13499 post:
13500 \end_layout
13501
13502 \end_inset
13503
13504  are output after this workarea argument.
13505  Note that post-argument numbering restarts at 1, so the first argument
13506  following the workarea argument is 
13507 \begin_inset Flex Code
13508 status collapsed
13509
13510 \begin_layout Plain Layout
13511 post:1
13512 \end_layout
13513
13514 \end_inset
13515
13516 .
13517  Post-arguments are ignored in any other 
13518 \begin_inset Flex Code
13519 status collapsed
13520
13521 \begin_layout Plain Layout
13522 LatexType
13523 \end_layout
13524
13525 \end_inset
13526
13527  than 
13528 \begin_inset Flex Code
13529 status collapsed
13530
13531 \begin_layout Plain Layout
13532 Command
13533 \end_layout
13534
13535 \end_inset
13536
13537 .
13538 \end_layout
13539
13540 \begin_layout Standard
13541 Arguments for list 
13542 \begin_inset Flex Code
13543 status collapsed
13544
13545 \begin_layout Plain Layout
13546
13547 \backslash
13548 item
13549 \end_layout
13550
13551 \end_inset
13552
13553 s (as in 
13554 \begin_inset Flex Code
13555 status collapsed
13556
13557 \begin_layout Plain Layout
13558
13559 \backslash
13560 item[foo]
13561 \end_layout
13562
13563 \end_inset
13564
13565 ) have the prefix 
13566 \begin_inset Flex Code
13567 status collapsed
13568
13569 \begin_layout Plain Layout
13570 item:
13571 \end_layout
13572
13573 \end_inset
13574
13575  followed by the number (e.
13576 \begin_inset space \thinspace{}
13577 \end_inset
13578
13579 g.
13580 \begin_inset space \space{}
13581 \end_inset
13582
13583
13584 \begin_inset Flex Code
13585 status collapsed
13586
13587 \begin_layout Plain Layout
13588 Argument item:1
13589 \end_layout
13590
13591 \end_inset
13592
13593 ).
13594 \change_inserted -712698321 1534487781
13595
13596 \end_layout
13597
13598 \begin_layout Standard
13599
13600 \change_inserted -712698321 1534488561
13601 Finally, there is a special argument type with the prefix 
13602 \begin_inset Flex Code
13603 status collapsed
13604
13605 \begin_layout Plain Layout
13606
13607 \change_inserted -712698321 1534487844
13608 listpreamble:
13609 \change_unchanged
13610
13611 \end_layout
13612
13613 \end_inset
13614
13615 .
13616  It is not really an argument, but uses the argument interface (thus, the
13617  prefix is also followed by a number, e.
13618 \begin_inset space \thinspace{}
13619 \end_inset
13620
13621 g.
13622  
13623 \begin_inset Flex Code
13624 status collapsed
13625
13626 \begin_layout Plain Layout
13627
13628 \change_inserted -712698321 1534488412
13629 Argument listpreamble:1
13630 \change_unchanged
13631
13632 \end_layout
13633
13634 \end_inset
13635
13636 ).
13637  As the name implies, it is targeted at lists such as 
13638 \family sans
13639 Itemize
13640 \family default
13641
13642 \family sans
13643 Enumerate
13644 \family default
13645
13646 \family sans
13647 Description
13648 \family default
13649 , or 
13650 \family sans
13651 Bibliography
13652 \family default
13653 .
13654  Its content will be output at the list start, before the first 
13655 \begin_inset Flex Code
13656 status collapsed
13657
13658 \begin_layout Plain Layout
13659
13660 \change_inserted -712698321 1534488058
13661
13662 \backslash
13663 item
13664 \change_unchanged
13665
13666 \end_layout
13667
13668 \end_inset
13669
13670 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13671 ).
13672  This way, users can insert redefinitions (of lengths etc.) to individual
13673  lists.
13674  By default, these arguments do not have a delimiter.
13675 \change_unchanged
13676
13677 \end_layout
13678
13679 \end_deeper
13680 \begin_layout Description
13681 \begin_inset Flex Code
13682 status collapsed
13683
13684 \begin_layout Plain Layout
13685 AutoNests
13686 \end_layout
13687
13688 \end_inset
13689
13690  Includes a comma-separated list of layouts that should be nested in and
13691  after the current layout.
13692  Only makes sense for nestable layouts (such as environments).
13693  Must be ended by 
13694 \begin_inset Quotes eld
13695 \end_inset
13696
13697
13698 \begin_inset Flex Code
13699 status collapsed
13700
13701 \begin_layout Plain Layout
13702 EndAutoNests
13703 \end_layout
13704
13705 \end_inset
13706
13707
13708 \begin_inset Quotes erd
13709 \end_inset
13710
13711 .
13712  See also 
13713 \begin_inset Flex Code
13714 status collapsed
13715
13716 \begin_layout Plain Layout
13717 IsAutoNestedBy
13718 \end_layout
13719
13720 \end_inset
13721
13722 .
13723 \end_layout
13724
13725 \begin_layout Description
13726 \begin_inset Flex Code
13727 status collapsed
13728
13729 \begin_layout Plain Layout
13730 BabelPreamble
13731 \end_layout
13732
13733 \end_inset
13734
13735  Note that this will completely override any prior 
13736 \begin_inset Flex Code
13737 status collapsed
13738
13739 \begin_layout Plain Layout
13740 BabelPreamble
13741 \end_layout
13742
13743 \end_inset
13744
13745  declaration for this style.
13746  Must end with 
13747 \begin_inset Quotes eld
13748 \end_inset
13749
13750
13751 \begin_inset Flex Code
13752 status collapsed
13753
13754 \begin_layout Plain Layout
13755 EndBabelPreamble
13756 \end_layout
13757
13758 \end_inset
13759
13760
13761 \begin_inset Quotes erd
13762 \end_inset
13763
13764 .
13765  See 
13766 \begin_inset CommandInset ref
13767 LatexCommand ref
13768 reference "subsec:I18n"
13769
13770 \end_inset
13771
13772  for details on its use.
13773 \end_layout
13774
13775 \begin_layout Description
13776 \begin_inset Flex Code
13777 status collapsed
13778
13779 \begin_layout Plain Layout
13780 BottomSep
13781 \end_layout
13782
13783 \end_inset
13784
13785  [
13786 \begin_inset Flex Code
13787 status collapsed
13788
13789 \begin_layout Plain Layout
13790 float=0
13791 \end_layout
13792
13793 \end_inset
13794
13795 ]
13796 \begin_inset Foot
13797 status collapsed
13798
13799 \begin_layout Plain Layout
13800 Note that a `float' here is a real number, such as: 1.5.
13801 \end_layout
13802
13803 \end_inset
13804
13805  The vertical space with which the last of a chain of paragraphs with this
13806  style is separated from the following paragraph.
13807  If the next paragraph has another style, the separations are not simply
13808  added, but the maximum is taken.
13809 \end_layout
13810
13811 \begin_layout Description
13812 \begin_inset Flex Code
13813 status collapsed
13814
13815 \begin_layout Plain Layout
13816 Category
13817 \end_layout
13818
13819 \end_inset
13820
13821  [
13822 \begin_inset Flex Code
13823 status collapsed
13824
13825 \begin_layout Plain Layout
13826 string
13827 \end_layout
13828
13829 \end_inset
13830
13831 ] The category for this style.
13832  This is used to group related styles in the style combobox on the toolbar.
13833  Any string can be used, but you may want to use existing categories with
13834  your own styles.
13835  
13836 \end_layout
13837
13838 \begin_layout Description
13839 \begin_inset Flex Code
13840 status collapsed
13841
13842 \begin_layout Plain Layout
13843 CommandDepth
13844 \end_layout
13845
13846 \end_inset
13847
13848  Depth of XML command.
13849  Used only with XML-type formats.
13850 \end_layout
13851
13852 \begin_layout Description
13853 \begin_inset Flex Code
13854 status collapsed
13855
13856 \begin_layout Plain Layout
13857 CopyStyle
13858 \end_layout
13859
13860 \end_inset
13861
13862  [
13863 \begin_inset Flex Code
13864 status collapsed
13865
13866 \begin_layout Plain Layout
13867 string
13868 \end_layout
13869
13870 \end_inset
13871
13872 ] Copies all the features of an existing style into the current one.
13873  
13874 \end_layout
13875
13876 \begin_layout Description
13877 \begin_inset Flex Code
13878 status collapsed
13879
13880 \begin_layout Plain Layout
13881 DependsOn
13882 \end_layout
13883
13884 \end_inset
13885
13886  [
13887 \begin_inset Flex Code
13888 status collapsed
13889
13890 \begin_layout Plain Layout
13891 <name>
13892 \end_layout
13893
13894 \end_inset
13895
13896 ] The name of a style whose preamble should be output 
13897 \emph on
13898 before
13899 \emph default
13900  this one.
13901  This allows to ensure some ordering of the preamble snippets when macros
13902  definitions depend on one another.
13903 \begin_inset Foot
13904 status collapsed
13905
13906 \begin_layout Plain Layout
13907 Note that, besides that functionality, there is no way to ensure any ordering
13908  of preambles.
13909  The ordering that you see in a given version of \SpecialChar LyX
13910  may change without warning
13911  in later versions.
13912 \end_layout
13913
13914 \end_inset
13915
13916
13917 \end_layout
13918
13919 \begin_layout Description
13920 \begin_inset Flex Code
13921 status collapsed
13922
13923 \begin_layout Plain Layout
13924 EndLabeltype
13925 \end_layout
13926
13927 \end_inset
13928
13929  [
13930 \begin_inset Flex Code
13931 status collapsed
13932
13933 \begin_layout Plain Layout
13934
13935 \emph on
13936 No_Label
13937 \emph default
13938 , Box, Filled_Box, Static
13939 \end_layout
13940
13941 \end_inset
13942
13943 ] The type of label that stands at the end of the paragraph (or sequence
13944  of paragraphs if 
13945 \begin_inset Flex Code
13946 status collapsed
13947
13948 \begin_layout Plain Layout
13949 LatexType
13950 \end_layout
13951
13952 \end_inset
13953
13954  is
13955 \begin_inset Newline newline
13956 \end_inset
13957
13958
13959 \begin_inset Flex Code
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963 Environment
13964 \end_layout
13965
13966 \end_inset
13967
13968
13969 \begin_inset Flex Code
13970 status collapsed
13971
13972 \begin_layout Plain Layout
13973 Item_Environment
13974 \end_layout
13975
13976 \end_inset
13977
13978  or 
13979 \begin_inset Flex Code
13980 status collapsed
13981
13982 \begin_layout Plain Layout
13983 List_Environment
13984 \end_layout
13985
13986 \end_inset
13987
13988 ).
13989  
13990 \begin_inset Flex Code
13991 status collapsed
13992
13993 \begin_layout Plain Layout
13994 No_Label
13995 \end_layout
13996
13997 \end_inset
13998
13999  means 
14000 \begin_inset Quotes eld
14001 \end_inset
14002
14003 nothing
14004 \begin_inset Quotes erd
14005 \end_inset
14006
14007
14008 \begin_inset Flex Code
14009 status collapsed
14010
14011 \begin_layout Plain Layout
14012 Box
14013 \end_layout
14014
14015 \end_inset
14016
14017  (resp.
14018 \begin_inset space \space{}
14019 \end_inset
14020
14021
14022 \begin_inset Flex Code
14023 status collapsed
14024
14025 \begin_layout Plain Layout
14026 Filled_Box
14027 \end_layout
14028
14029 \end_inset
14030
14031 ) is a white (resp.
14032 \begin_inset space ~
14033 \end_inset
14034
14035 black) square suitable for end of proof markers, 
14036 \begin_inset Flex Code
14037 status collapsed
14038
14039 \begin_layout Plain Layout
14040 Static
14041 \end_layout
14042
14043 \end_inset
14044
14045  is an explicit text string.
14046 \end_layout
14047
14048 \begin_layout Description
14049 \begin_inset Flex Code
14050 status collapsed
14051
14052 \begin_layout Plain Layout
14053 EndLabelString
14054 \end_layout
14055
14056 \end_inset
14057
14058  [
14059 \begin_inset Flex Code
14060 status collapsed
14061
14062 \begin_layout Plain Layout
14063 string=""
14064 \end_layout
14065
14066 \end_inset
14067
14068 ] The string used for a label with a 
14069 \begin_inset Flex Code
14070 status collapsed
14071
14072 \begin_layout Plain Layout
14073 Static
14074 \end_layout
14075
14076 \end_inset
14077
14078
14079 \begin_inset Newline newline
14080 \end_inset
14081
14082
14083 \begin_inset Flex Code
14084 status collapsed
14085
14086 \begin_layout Plain Layout
14087 EndLabelType
14088 \end_layout
14089
14090 \end_inset
14091
14092 .
14093  
14094 \end_layout
14095
14096 \begin_layout Description
14097 \begin_inset Flex Code
14098 status collapsed
14099
14100 \begin_layout Plain Layout
14101 Font
14102 \end_layout
14103
14104 \end_inset
14105
14106  The font used for both the text body 
14107 \emph on
14108 and
14109 \emph default
14110  the label.
14111  See 
14112 \begin_inset CommandInset ref
14113 LatexCommand ref
14114 reference "subsec:Font-description"
14115
14116 \end_inset
14117
14118 .
14119  Note that defining this font automatically defines the 
14120 \begin_inset Flex Code
14121 status collapsed
14122
14123 \begin_layout Plain Layout
14124 LabelFont
14125 \end_layout
14126
14127 \end_inset
14128
14129  to the same value.
14130  So you should define this one first if you also want to define 
14131 \begin_inset Flex Code
14132 status collapsed
14133
14134 \begin_layout Plain Layout
14135 LabelFont
14136 \end_layout
14137
14138 \end_inset
14139
14140 .
14141 \end_layout
14142
14143 \begin_layout Description
14144 \begin_inset Flex Code
14145 status collapsed
14146
14147 \begin_layout Plain Layout
14148 ForceLocal
14149 \end_layout
14150
14151 \end_inset
14152
14153  [
14154 \begin_inset Flex Code
14155 status collapsed
14156
14157 \begin_layout Plain Layout
14158 int=0
14159 \end_layout
14160
14161 \end_inset
14162
14163 ] Used for backporting new styles to stable \SpecialChar LyX
14164  versions.
14165  The first stable version that supports this tag is \SpecialChar LyX
14166  2.1.0.
14167  The argument is a number which may either be 0, -1 or any value greater
14168  than zero.
14169  If the 
14170 \begin_inset Flex Code
14171 status collapsed
14172
14173 \begin_layout Plain Layout
14174 ForceLocal
14175 \end_layout
14176
14177 \end_inset
14178
14179  flag of a style is greater than zero, it will always be written to the
14180  document header.
14181  If a .lyx file is read, the style definitions from the document header are
14182  added to the document class.
14183  Therefore even older \SpecialChar LyX
14184  versions can handle the style.
14185  The argument of 
14186 \begin_inset Flex Code
14187 status collapsed
14188
14189 \begin_layout Plain Layout
14190 ForceLocal
14191 \end_layout
14192
14193 \end_inset
14194
14195  is a version number: if the style is read, and the version number is less
14196  than the version number of the already existing style in the document class,
14197  the new style is ignored.
14198  If the version number is greater, the new style replaces the existing style.
14199  A value of -1 means an infinite version number, i.
14200 \begin_inset space \thinspace{}
14201 \end_inset
14202
14203 e.
14204 \begin_inset space \space{}
14205 \end_inset
14206
14207 the style is always used.
14208 \end_layout
14209
14210 \begin_layout Description
14211 \begin_inset Flex Code
14212 status collapsed
14213
14214 \begin_layout Plain Layout
14215 FreeSpacing
14216 \end_layout
14217
14218 \end_inset
14219
14220  [
14221 \begin_inset Flex Code
14222 status collapsed
14223
14224 \begin_layout Plain Layout
14225
14226 \emph on
14227 0
14228 \end_layout
14229
14230 \end_inset
14231
14232 ,
14233 \begin_inset space \thinspace{}
14234 \end_inset
14235
14236
14237 \begin_inset Flex Code
14238 status collapsed
14239
14240 \begin_layout Plain Layout
14241 1
14242 \end_layout
14243
14244 \end_inset
14245
14246 ] Usually \SpecialChar LyX
14247  does not allow you to insert more than one space between words,
14248  since a space is considered as the separation between two words, not a
14249  character or symbol of its own.
14250  This is a very fine thing but sometimes annoying, for example, when typing
14251  program code or plain \SpecialChar LaTeX
14252  code.
14253  For this reason, 
14254 \begin_inset Flex Code
14255 status collapsed
14256
14257 \begin_layout Plain Layout
14258 FreeSpacing
14259 \end_layout
14260
14261 \end_inset
14262
14263  can be enabled.
14264  
14265 \change_deleted -495245474 1550490105
14266 Note that 
14267 \change_unchanged
14268 \SpecialChar LyX
14269  will create protected blanks for the additional blanks when in 
14270 \change_inserted -495245474 1550490096
14271
14272 \begin_inset Flex Code
14273 status collapsed
14274
14275 \begin_layout Plain Layout
14276
14277 \change_inserted -495245474 1550490089
14278 Passthru 1
14279 \change_unchanged
14280
14281 \end_layout
14282
14283 \end_inset
14284
14285  is not specified.
14286 \change_deleted -495245474 1550490116
14287 another mode than \SpecialChar LaTeX
14288 -mode.
14289
14290 \change_inserted -495245474 1550247760
14291  Note that 
14292 \begin_inset Flex Code
14293 status collapsed
14294
14295 \begin_layout Plain Layout
14296
14297 \change_inserted -495245474 1550247736
14298 FreeSpacing
14299 \change_unchanged
14300
14301 \end_layout
14302
14303 \end_inset
14304
14305  implies 
14306 \begin_inset Flex Code
14307 status collapsed
14308
14309 \begin_layout Plain Layout
14310
14311 \change_inserted -495245474 1550247755
14312 KeepEmpty
14313 \change_unchanged
14314
14315 \end_layout
14316
14317 \end_inset
14318
14319 .
14320 \change_unchanged
14321
14322 \end_layout
14323
14324 \begin_layout Description
14325 \begin_inset Flex Code
14326 status collapsed
14327
14328 \begin_layout Plain Layout
14329 HTML*
14330 \end_layout
14331
14332 \end_inset
14333
14334  These tags are used with XHTML output.
14335  See 
14336 \begin_inset CommandInset ref
14337 LatexCommand ref
14338 reference "subsec:Paragraph-Style-XHTML"
14339
14340 \end_inset
14341
14342 .
14343 \end_layout
14344
14345 \begin_layout Description
14346 \begin_inset Flex Code
14347 status collapsed
14348
14349 \begin_layout Plain Layout
14350 InnerTag
14351 \end_layout
14352
14353 \end_inset
14354
14355  [FIXME] (Used only with XML-type formats.)
14356 \end_layout
14357
14358 \begin_layout Description
14359 \begin_inset Flex Code
14360 status collapsed
14361
14362 \begin_layout Plain Layout
14363 InPreamble
14364 \end_layout
14365
14366 \end_inset
14367
14368  [
14369 \begin_inset Flex Code
14370 status collapsed
14371
14372 \begin_layout Plain Layout
14373
14374 \emph on
14375 0
14376 \end_layout
14377
14378 \end_inset
14379
14380 ,
14381 \begin_inset space \thinspace{}
14382 \end_inset
14383
14384
14385 \begin_inset Flex Code
14386 status collapsed
14387
14388 \begin_layout Plain Layout
14389 1
14390 \end_layout
14391
14392 \end_inset
14393
14394 ] If 
14395 \begin_inset Flex Code
14396 status collapsed
14397
14398 \begin_layout Plain Layout
14399 1
14400 \end_layout
14401
14402 \end_inset
14403
14404 , marks the style as to be included in the document preamble and not in
14405  the document body.
14406  This is useful for document classes that want such information as the title
14407  and author to appear in the preamble.
14408  Note that this works only for styles for which the 
14409 \begin_inset Flex Code
14410 status collapsed
14411
14412 \begin_layout Plain Layout
14413 LatexType
14414 \end_layout
14415
14416 \end_inset
14417
14418  is 
14419 \begin_inset Flex Code
14420 status collapsed
14421
14422 \begin_layout Plain Layout
14423 Command
14424 \end_layout
14425
14426 \end_inset
14427
14428  or 
14429 \begin_inset Flex Code
14430 status collapsed
14431
14432 \begin_layout Plain Layout
14433 Paragraph
14434 \end_layout
14435
14436 \end_inset
14437
14438 .
14439 \end_layout
14440
14441 \begin_layout Description
14442 \begin_inset Flex Code
14443 status collapsed
14444
14445 \begin_layout Plain Layout
14446 InTitle
14447 \end_layout
14448
14449 \end_inset
14450
14451  [
14452 \begin_inset Flex Code
14453 status collapsed
14454
14455 \begin_layout Plain Layout
14456
14457 \emph on
14458 0
14459 \end_layout
14460
14461 \end_inset
14462
14463 ,
14464 \begin_inset space \thinspace{}
14465 \end_inset
14466
14467
14468 \begin_inset Flex Code
14469 status collapsed
14470
14471 \begin_layout Plain Layout
14472 1
14473 \end_layout
14474
14475 \end_inset
14476
14477 ] If 
14478 \begin_inset Flex Code
14479 status collapsed
14480
14481 \begin_layout Plain Layout
14482 1
14483 \end_layout
14484
14485 \end_inset
14486
14487 , marks the style as being part of a title block (see also the 
14488 \begin_inset Flex Code
14489 status collapsed
14490
14491 \begin_layout Plain Layout
14492 TitleLatexType
14493 \end_layout
14494
14495 \end_inset
14496
14497  and 
14498 \begin_inset Flex Code
14499 status collapsed
14500
14501 \begin_layout Plain Layout
14502 TitleLatexName
14503 \end_layout
14504
14505 \end_inset
14506
14507  global entries).
14508 \end_layout
14509
14510 \begin_layout Description
14511 \begin_inset Flex Code
14512 status collapsed
14513
14514 \begin_layout Plain Layout
14515 IsAutoNestedBy
14516 \end_layout
14517
14518 \end_inset
14519
14520  Includes a comma-separated list of layouts after which this one should
14521  be nested.
14522  Only makes sense with regard to nestable layouts (such as environments).
14523  Must be ended by 
14524 \begin_inset Quotes eld
14525 \end_inset
14526
14527
14528 \begin_inset Flex Code
14529 status collapsed
14530
14531 \begin_layout Plain Layout
14532 EndIsAutoNestedBy
14533 \end_layout
14534
14535 \end_inset
14536
14537
14538 \begin_inset Quotes erd
14539 \end_inset
14540
14541 .
14542  See also 
14543 \begin_inset Flex Code
14544 status collapsed
14545
14546 \begin_layout Plain Layout
14547 AutoNests
14548 \end_layout
14549
14550 \end_inset
14551
14552 .
14553 \end_layout
14554
14555 \begin_layout Description
14556 \begin_inset Flex Code
14557 status collapsed
14558
14559 \begin_layout Plain Layout
14560 IsTocCaption
14561 \end_layout
14562
14563 \end_inset
14564
14565  [
14566 \begin_inset Flex Code
14567 status collapsed
14568
14569 \begin_layout Plain Layout
14570
14571 \emph on
14572 0
14573 \end_layout
14574
14575 \end_inset
14576
14577 ,
14578 \begin_inset space \thinspace{}
14579 \end_inset
14580
14581
14582 \begin_inset Flex Code
14583 status collapsed
14584
14585 \begin_layout Plain Layout
14586 1
14587 \end_layout
14588
14589 \end_inset
14590
14591 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14592  of its contents in its item in the table of contents.
14593  Otherwise, only the label, if it exists, appears.
14594 \end_layout
14595
14596 \begin_layout Description
14597 \begin_inset Flex Code
14598 status collapsed
14599
14600 \begin_layout Plain Layout
14601 ItemCommand
14602 \end_layout
14603
14604 \end_inset
14605
14606  [
14607 \begin_inset Flex Code
14608 status collapsed
14609
14610 \begin_layout Plain Layout
14611 string="item"
14612 \end_layout
14613
14614 \end_inset
14615
14616 ] The \SpecialChar LaTeX
14617  command sequence declaring an item in a list.
14618  The command is to be defined without the preceding backslash (the default
14619  is 
14620 \begin_inset Quotes eld
14621 \end_inset
14622
14623 item
14624 \begin_inset Quotes erd
14625 \end_inset
14626
14627 , resulting in 
14628 \begin_inset Flex Code
14629 status collapsed
14630
14631 \begin_layout Plain Layout
14632
14633 \backslash
14634 item
14635 \end_layout
14636
14637 \end_inset
14638
14639  in the \SpecialChar LaTeX
14640  output).
14641 \end_layout
14642
14643 \begin_layout Description
14644 \begin_inset Flex Code
14645 status collapsed
14646
14647 \begin_layout Plain Layout
14648 ItemSep
14649 \end_layout
14650
14651 \end_inset
14652
14653  [
14654 \begin_inset Flex Code
14655 status collapsed
14656
14657 \begin_layout Plain Layout
14658 float=0
14659 \end_layout
14660
14661 \end_inset
14662
14663 ] This provides extra space between paragraphs that have the same style.
14664  If you put other styles into an environment, each is separated with the
14665  environment's 
14666 \begin_inset Flex Code
14667 status collapsed
14668
14669 \begin_layout Plain Layout
14670 ParSep
14671 \end_layout
14672
14673 \end_inset
14674
14675 .
14676  But the whole items of the environment are additionally separated with
14677  this 
14678 \begin_inset Flex Code
14679 status collapsed
14680
14681 \begin_layout Plain Layout
14682 ItemSep
14683 \end_layout
14684
14685 \end_inset
14686
14687 .
14688  Note that this is a
14689 \emph on
14690  multiplier.
14691 \end_layout
14692
14693 \begin_layout Description
14694 \begin_inset Flex Code
14695 status collapsed
14696
14697 \begin_layout Plain Layout
14698 ItemTag
14699 \end_layout
14700
14701 \end_inset
14702
14703  [FIXME] (Used only with XML-type formats.)
14704 \end_layout
14705
14706 \begin_layout Description
14707 \begin_inset Flex Code
14708 status collapsed
14709
14710 \begin_layout Plain Layout
14711 KeepEmpty
14712 \end_layout
14713
14714 \end_inset
14715
14716  [
14717 \begin_inset Flex Code
14718 status collapsed
14719
14720 \begin_layout Plain Layout
14721
14722 \emph on
14723 0
14724 \end_layout
14725
14726 \end_inset
14727
14728 ,
14729 \begin_inset space \thinspace{}
14730 \end_inset
14731
14732
14733 \begin_inset Flex Code
14734 status collapsed
14735
14736 \begin_layout Plain Layout
14737 1
14738 \end_layout
14739
14740 \end_inset
14741
14742 ] Usually \SpecialChar LyX
14743  does not allow you to leave a paragraph empty, since it would
14744  lead to empty \SpecialChar LaTeX
14745  output.
14746  There are some cases where this could be desirable however: in a letter
14747  template, the required fields can be provided as empty fields, so that
14748  people do not forget them; in some special classes, a style can be used
14749  as some kind of break, which does not contain actual text.
14750 \end_layout
14751
14752 \begin_layout Description
14753 \begin_inset Flex Code
14754 status collapsed
14755
14756 \begin_layout Plain Layout
14757 LabelBottomsep
14758 \end_layout
14759
14760 \end_inset
14761
14762  [
14763 \begin_inset Flex Code
14764 status collapsed
14765
14766 \begin_layout Plain Layout
14767 float=0
14768 \end_layout
14769
14770 \end_inset
14771
14772 ] The vertical space between the label and the text body.
14773  Only used for labels that are above the text body (
14774 \begin_inset Flex Code
14775 status collapsed
14776
14777 \begin_layout Plain Layout
14778 Top_Environment
14779 \end_layout
14780
14781 \end_inset
14782
14783  and
14784 \begin_inset Newline newline
14785 \end_inset
14786
14787
14788 \begin_inset Flex Code
14789 status collapsed
14790
14791 \begin_layout Plain Layout
14792 Centered_Top_Environment
14793 \end_layout
14794
14795 \end_inset
14796
14797 ).
14798 \end_layout
14799
14800 \begin_layout Description
14801 \begin_inset Flex Code
14802 status collapsed
14803
14804 \begin_layout Plain Layout
14805 LabelCounter
14806 \end_layout
14807
14808 \end_inset
14809
14810  [
14811 \begin_inset Flex Code
14812 status collapsed
14813
14814 \begin_layout Plain Layout
14815 string=""
14816 \end_layout
14817
14818 \end_inset
14819
14820 ] The name of the counter for automatic numbering.
14821  In order to have the counter appear with your label, you will need to reference
14822  it in the 
14823 \begin_inset Flex Code
14824 status collapsed
14825
14826 \begin_layout Plain Layout
14827
14828 \family typewriter
14829 LabelString
14830 \end_layout
14831
14832 \end_inset
14833
14834 .
14835  This will work with 
14836 \begin_inset Flex Code
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840 LabelType
14841 \end_layout
14842
14843 \end_inset
14844
14845 s, 
14846 \begin_inset Flex Code
14847 status collapsed
14848
14849 \begin_layout Plain Layout
14850 Static
14851 \end_layout
14852
14853 \end_inset
14854
14855
14856 \begin_inset Flex Code
14857 status collapsed
14858
14859 \begin_layout Plain Layout
14860 Above
14861 \end_layout
14862
14863 \end_inset
14864
14865  and 
14866 \begin_inset Flex Code
14867 status collapsed
14868
14869 \begin_layout Plain Layout
14870 Centered
14871 \end_layout
14872
14873 \end_inset
14874
14875 , at least.
14876 \begin_inset Newline newline
14877 \end_inset
14878
14879 This 
14880 \emph on
14881 may
14882 \emph default
14883  also be given if 
14884 \begin_inset Flex Code
14885 status collapsed
14886
14887 \begin_layout Plain Layout
14888 LabelType
14889 \end_layout
14890
14891 \end_inset
14892
14893  is 
14894 \begin_inset Flex Code
14895 status collapsed
14896
14897 \begin_layout Plain Layout
14898 Enumerate
14899 \end_layout
14900
14901 \end_inset
14902
14903 , though this case is a bit complicated.
14904  Suppose you declare 
14905 \begin_inset Quotes eld
14906 \end_inset
14907
14908
14909 \begin_inset Flex Code
14910 status collapsed
14911
14912 \begin_layout Plain Layout
14913 LabelCounter myenum
14914 \end_layout
14915
14916 \end_inset
14917
14918
14919 \begin_inset Quotes erd
14920 \end_inset
14921
14922 .
14923  Then the actual counters used are 
14924 \begin_inset Flex Code
14925 status collapsed
14926
14927 \begin_layout Plain Layout
14928 myenumi
14929 \end_layout
14930
14931 \end_inset
14932
14933
14934 \begin_inset Flex Code
14935 status collapsed
14936
14937 \begin_layout Plain Layout
14938 myenumii
14939 \end_layout
14940
14941 \end_inset
14942
14943
14944 \begin_inset Flex Code
14945 status collapsed
14946
14947 \begin_layout Plain Layout
14948 myenumiii
14949 \end_layout
14950
14951 \end_inset
14952
14953  and 
14954 \begin_inset Flex Code
14955 status collapsed
14956
14957 \begin_layout Plain Layout
14958 myenumiv
14959 \end_layout
14960
14961 \end_inset
14962
14963 , much as in \SpecialChar LaTeX
14964 .
14965  These counters must all be declared separately.
14966 \begin_inset Newline newline
14967 \end_inset
14968
14969 See 
14970 \begin_inset CommandInset ref
14971 LatexCommand ref
14972 reference "subsec:Counters"
14973
14974 \end_inset
14975
14976  for details on counters.
14977 \end_layout
14978
14979 \begin_layout Description
14980 \begin_inset Flex Code
14981 status collapsed
14982
14983 \begin_layout Plain Layout
14984 LabelFont
14985 \end_layout
14986
14987 \end_inset
14988
14989  The font used for the label.
14990  See 
14991 \begin_inset CommandInset ref
14992 LatexCommand ref
14993 reference "subsec:Font-description"
14994
14995 \end_inset
14996
14997 .
14998 \end_layout
14999
15000 \begin_layout Description
15001 \begin_inset Flex Code
15002 status collapsed
15003
15004 \begin_layout Plain Layout
15005 LabelIndent
15006 \end_layout
15007
15008 \end_inset
15009
15010  [
15011 \begin_inset Flex Code
15012 status collapsed
15013
15014 \begin_layout Plain Layout
15015 string=""
15016 \end_layout
15017
15018 \end_inset
15019
15020 ] Text that indicates how far a label should be indented.
15021 \end_layout
15022
15023 \begin_layout Description
15024 \begin_inset Flex Code
15025 status collapsed
15026
15027 \begin_layout Plain Layout
15028 LabelSep
15029 \end_layout
15030
15031 \end_inset
15032
15033  [
15034 \begin_inset Flex Code
15035 status collapsed
15036
15037 \begin_layout Plain Layout
15038 string=""
15039 \end_layout
15040
15041 \end_inset
15042
15043 ] Text that indicates the amount of horizontal space between the label and
15044  the text body.
15045  Only used for labels that are not above the text body.
15046 \end_layout
15047
15048 \begin_layout Description
15049 \begin_inset Flex Code
15050 status collapsed
15051
15052 \begin_layout Plain Layout
15053 LabelString
15054 \end_layout
15055
15056 \end_inset
15057
15058  [
15059 \begin_inset Flex Code
15060 status collapsed
15061
15062 \begin_layout Plain Layout
15063 string=""
15064 \end_layout
15065
15066 \end_inset
15067
15068 ] The string used for the label.
15069  When 
15070 \begin_inset Flex Code
15071 status collapsed
15072
15073 \begin_layout Plain Layout
15074 LabelCounter
15075 \end_layout
15076
15077 \end_inset
15078
15079  is set, this string can be contain the special formatting commands described
15080  in 
15081 \begin_inset CommandInset ref
15082 LatexCommand ref
15083 reference "subsec:Counters"
15084
15085 \end_inset
15086
15087 .
15088 \end_layout
15089
15090 \begin_layout Description
15091 \begin_inset Flex Code
15092 status collapsed
15093
15094 \begin_layout Plain Layout
15095 LabelStringAppendix
15096 \end_layout
15097
15098 \end_inset
15099
15100  [
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105 string=""
15106 \end_layout
15107
15108 \end_inset
15109
15110 ] This is used inside the appendix instead of
15111 \begin_inset Newline newline
15112 \end_inset
15113
15114
15115 \begin_inset Flex Code
15116 status collapsed
15117
15118 \begin_layout Plain Layout
15119 LabelString
15120 \end_layout
15121
15122 \end_inset
15123
15124 .
15125  Note that every 
15126 \begin_inset Flex Code
15127 status collapsed
15128
15129 \begin_layout Plain Layout
15130 LabelString
15131 \end_layout
15132
15133 \end_inset
15134
15135  statement resets
15136 \begin_inset Newline newline
15137 \end_inset
15138
15139
15140 \begin_inset Flex Code
15141 status collapsed
15142
15143 \begin_layout Plain Layout
15144 LabelStringAppendix
15145 \end_layout
15146
15147 \end_inset
15148
15149  too.
15150 \end_layout
15151
15152 \begin_layout Description
15153 \begin_inset Flex Code
15154 status collapsed
15155
15156 \begin_layout Plain Layout
15157 LabelTag
15158 \end_layout
15159
15160 \end_inset
15161
15162  [FIXME] (Used only with XML-type formats.)
15163 \end_layout
15164
15165 \begin_layout Description
15166 \begin_inset Flex Code
15167 status collapsed
15168
15169 \begin_layout Plain Layout
15170 LabelType
15171 \end_layout
15172
15173 \end_inset
15174
15175  [
15176 \begin_inset Flex Code
15177 status collapsed
15178
15179 \begin_layout Plain Layout
15180
15181 \emph on
15182 No_Label
15183 \emph default
15184 , Manual, Static, Above, 
15185 \begin_inset Newline newline
15186 \end_inset
15187
15188 Centered, Sensitive, Enumerate,
15189 \begin_inset Newline newline
15190 \end_inset
15191
15192 Itemize, Bibliography
15193 \end_layout
15194
15195 \end_inset
15196
15197 ]
15198 \end_layout
15199
15200 \begin_deeper
15201 \begin_layout Description
15202 \begin_inset Flex Code
15203 status collapsed
15204
15205 \begin_layout Plain Layout
15206 Manual
15207 \end_layout
15208
15209 \end_inset
15210
15211  means the label is the very first word (up to the first real blank).
15212  Use protected spaces if you want more than one word as the label.
15213  
15214 \end_layout
15215
15216 \begin_layout Description
15217 \begin_inset Flex Code
15218 status collapsed
15219
15220 \begin_layout Plain Layout
15221 Static
15222 \end_layout
15223
15224 \end_inset
15225
15226  means the label is simply what is declared as 
15227 \begin_inset Flex Code
15228 status collapsed
15229
15230 \begin_layout Plain Layout
15231 LabelString
15232 \end_layout
15233
15234 \end_inset
15235
15236 .
15237  This will be displayed 
15238 \begin_inset Quotes eld
15239 \end_inset
15240
15241 inline
15242 \begin_inset Quotes erd
15243 \end_inset
15244
15245 , at the beginning of the paragraph.
15246  If the 
15247 \begin_inset Flex Code
15248 status collapsed
15249
15250 \begin_layout Plain Layout
15251 LatexType
15252 \end_layout
15253
15254 \end_inset
15255
15256  is 
15257 \begin_inset Flex Code
15258 status collapsed
15259
15260 \begin_layout Plain Layout
15261 Environment
15262 \end_layout
15263
15264 \end_inset
15265
15266 , then it will be displayed only in the first paragraph of any sequence
15267  of paragraphs with the same 
15268 \begin_inset Flex Code
15269 status collapsed
15270
15271 \begin_layout Plain Layout
15272 Style
15273 \end_layout
15274
15275 \end_inset
15276
15277 .
15278 \end_layout
15279
15280 \begin_layout Description
15281 \begin_inset Flex Code
15282 status collapsed
15283
15284 \begin_layout Plain Layout
15285 Above
15286 \end_layout
15287
15288 \end_inset
15289
15290
15291 \begin_inset space ~
15292 \end_inset
15293
15294 and
15295 \begin_inset space ~
15296 \end_inset
15297
15298
15299 \begin_inset Flex Code
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303 Centered
15304 \end_layout
15305
15306 \end_inset
15307
15308  are special cases of 
15309 \begin_inset Flex Code
15310 status collapsed
15311
15312 \begin_layout Plain Layout
15313 Static
15314 \end_layout
15315
15316 \end_inset
15317
15318 .
15319  The label will be printed above the paragraph either at the beginning of
15320  the line or centered.
15321 \end_layout
15322
15323 \begin_layout Description
15324 \begin_inset Flex Code
15325 status collapsed
15326
15327 \begin_layout Plain Layout
15328 Sensitive
15329 \end_layout
15330
15331 \end_inset
15332
15333  is a special case for the caption-labels 
15334 \begin_inset Quotes eld
15335 \end_inset
15336
15337 Figure
15338 \begin_inset Quotes erd
15339 \end_inset
15340
15341  and 
15342 \begin_inset Quotes eld
15343 \end_inset
15344
15345 Table
15346 \begin_inset Quotes erd
15347 \end_inset
15348
15349 .
15350 \begin_inset Newline newline
15351 \end_inset
15352
15353
15354 \begin_inset Flex Code
15355 status collapsed
15356
15357 \begin_layout Plain Layout
15358 Sensitive
15359 \end_layout
15360
15361 \end_inset
15362
15363  means the (hardcoded) label string depends on the kind of float: It is
15364  hardcoded to be `FloatType N', where N is the value of the counter associated
15365  with the float.
15366  For the case that a caption is inserted outside of a float the 
15367 \begin_inset Flex Code
15368 status collapsed
15369
15370 \begin_layout Plain Layout
15371 LabelString
15372 \end_layout
15373
15374 \end_inset
15375
15376  will appear as 
15377 \begin_inset Quotes eld
15378 \end_inset
15379
15380 Senseless!
15381 \begin_inset Quotes erd
15382 \end_inset
15383
15384 .
15385 \end_layout
15386
15387 \begin_layout Description
15388 \begin_inset Flex Code
15389 status collapsed
15390
15391 \begin_layout Plain Layout
15392 Enumerate
15393 \end_layout
15394
15395 \end_inset
15396
15397  produces the usual sort of enumeration labels.
15398  The number type needs to be set in the 
15399 \family sans
15400 Counter
15401 \family default
15402 , see 
15403 \begin_inset CommandInset ref
15404 LatexCommand ref
15405 reference "subsec:Counters"
15406
15407 \end_inset
15408
15409 .
15410 \end_layout
15411
15412 \begin_layout Description
15413 \begin_inset Flex Code
15414 status collapsed
15415
15416 \begin_layout Plain Layout
15417 Itemize
15418 \end_layout
15419
15420 \end_inset
15421
15422  produces various bullets at the different levels.
15423  The bullet types displayed can be set via 
15424 \begin_inset Flex Noun
15425 status collapsed
15426
15427 \begin_layout Plain Layout
15428 Document\SpecialChar menuseparator
15429 Settings\SpecialChar menuseparator
15430 Bullets
15431 \end_layout
15432
15433 \end_inset
15434
15435 .
15436 \end_layout
15437
15438 \begin_layout Description
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443 Bibliography
15444 \end_layout
15445
15446 \end_inset
15447
15448  should be used only with 
15449 \begin_inset Flex Code
15450 status collapsed
15451
15452 \begin_layout Plain Layout
15453 LatexType BibEnvironment
15454 \end_layout
15455
15456 \end_inset
15457
15458 .
15459 \end_layout
15460
15461 \end_deeper
15462 \begin_layout Description
15463 \begin_inset Flex Code
15464 status collapsed
15465
15466 \begin_layout Plain Layout
15467 LangPreamble
15468 \end_layout
15469
15470 \end_inset
15471
15472  Note that this will completely override any prior 
15473 \begin_inset Flex Code
15474 status collapsed
15475
15476 \begin_layout Plain Layout
15477 LangPreamble
15478 \end_layout
15479
15480 \end_inset
15481
15482  declaration for this style.
15483  Must end with 
15484 \begin_inset Quotes eld
15485 \end_inset
15486
15487
15488 \begin_inset Flex Code
15489 status collapsed
15490
15491 \begin_layout Plain Layout
15492 EndLangPreamble
15493 \end_layout
15494
15495 \end_inset
15496
15497
15498 \begin_inset Quotes erd
15499 \end_inset
15500
15501 .
15502  See 
15503 \begin_inset CommandInset ref
15504 LatexCommand ref
15505 reference "subsec:I18n"
15506
15507 \end_inset
15508
15509  for details on its use.
15510 \end_layout
15511
15512 \begin_layout Description
15513 \begin_inset Flex Code
15514 status collapsed
15515
15516 \begin_layout Plain Layout
15517 LatexName
15518 \end_layout
15519
15520 \end_inset
15521
15522  [
15523 \begin_inset Flex Code
15524 status collapsed
15525
15526 \begin_layout Plain Layout
15527 <name>
15528 \end_layout
15529
15530 \end_inset
15531
15532 ] The name of the corresponding \SpecialChar LaTeX
15533  stuff.
15534  Either the environment or command name.
15535 \end_layout
15536
15537 \begin_layout Description
15538 \begin_inset Flex Code
15539 status collapsed
15540
15541 \begin_layout Plain Layout
15542 LatexParam
15543 \end_layout
15544
15545 \end_inset
15546
15547  [
15548 \begin_inset Flex Code
15549 status collapsed
15550
15551 \begin_layout Plain Layout
15552 <parameter>
15553 \end_layout
15554
15555 \end_inset
15556
15557 ] An optional parameter for the corresponding 
15558 \begin_inset Flex Code
15559 status collapsed
15560
15561 \begin_layout Plain Layout
15562 LatexName
15563 \end_layout
15564
15565 \end_inset
15566
15567  stuff.
15568  This parameter cannot be changed from within \SpecialChar LyX
15569  (use 
15570 \begin_inset Flex Code
15571 status collapsed
15572
15573 \begin_layout Plain Layout
15574 Argument
15575 \end_layout
15576
15577 \end_inset
15578
15579  for customizable parameters).
15580  This will be output as is after all \SpecialChar LaTeX
15581  
15582 \begin_inset Flex Code
15583 status collapsed
15584
15585 \begin_layout Plain Layout
15586 Argument
15587 \end_layout
15588
15589 \end_inset
15590
15591 s.
15592 \end_layout
15593
15594 \begin_layout Description
15595 \begin_inset Flex Code
15596 status collapsed
15597
15598 \begin_layout Plain Layout
15599 LatexType
15600 \end_layout
15601
15602 \end_inset
15603
15604  [
15605 \begin_inset Flex Code
15606 status collapsed
15607
15608 \begin_layout Plain Layout
15609
15610 \emph on
15611 Paragraph
15612 \emph default
15613 , Command, Environment, Item_Environment,
15614 \begin_inset Newline newline
15615 \end_inset
15616
15617 List_Environment, Bib_Environment
15618 \end_layout
15619
15620 \end_inset
15621
15622 ] How the style should be translated into \SpecialChar LaTeX
15623 .
15624 \begin_inset Foot
15625 status collapsed
15626
15627 \begin_layout Plain Layout
15628 \begin_inset Flex Code
15629 status collapsed
15630
15631 \begin_layout Plain Layout
15632 LatexType
15633 \end_layout
15634
15635 \end_inset
15636
15637  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15638  Visit the SGML class files for specific examples.
15639 \end_layout
15640
15641 \end_inset
15642
15643
15644 \end_layout
15645
15646 \begin_deeper
15647 \begin_layout Description
15648 \begin_inset Flex Code
15649 status collapsed
15650
15651 \begin_layout Plain Layout
15652 Paragraph
15653 \end_layout
15654
15655 \end_inset
15656
15657  means nothing special.
15658 \end_layout
15659
15660 \begin_layout Description
15661 \begin_inset Flex Code
15662 status collapsed
15663
15664 \begin_layout Plain Layout
15665 Command
15666 \end_layout
15667
15668 \end_inset
15669
15670  means 
15671 \begin_inset Flex Code
15672 status collapsed
15673
15674 \begin_layout Plain Layout
15675
15676 \backslash
15677
15678 \emph on
15679 LatexName
15680 \emph default
15681 {\SpecialChar ldots
15682 }
15683 \end_layout
15684
15685 \end_inset
15686
15687 .
15688 \end_layout
15689
15690 \begin_layout Description
15691 \begin_inset Flex Code
15692 status collapsed
15693
15694 \begin_layout Plain Layout
15695 Environment
15696 \end_layout
15697
15698 \end_inset
15699
15700  means 
15701 \begin_inset Flex Code
15702 status collapsed
15703
15704 \begin_layout Plain Layout
15705
15706 \backslash
15707 begin{
15708 \emph on
15709 LatexName
15710 \emph default
15711 }\SpecialChar ldots
15712
15713 \backslash
15714 end{
15715 \emph on
15716 LatexName
15717 \emph default
15718 }
15719 \end_layout
15720
15721 \end_inset
15722
15723 .
15724  
15725 \end_layout
15726
15727 \begin_layout Description
15728 \begin_inset Flex Code
15729 status collapsed
15730
15731 \begin_layout Plain Layout
15732 Item_Environment
15733 \end_layout
15734
15735 \end_inset
15736
15737  is the same as 
15738 \begin_inset Flex Code
15739 status collapsed
15740
15741 \begin_layout Plain Layout
15742 Environment
15743 \end_layout
15744
15745 \end_inset
15746
15747 , except that an 
15748 \begin_inset Flex Code
15749 status collapsed
15750
15751 \begin_layout Plain Layout
15752
15753 \backslash
15754 item
15755 \end_layout
15756
15757 \end_inset
15758
15759  is generated for each paragraph of this environment.
15760  
15761 \end_layout
15762
15763 \begin_layout Description
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 List_Environment
15769 \end_layout
15770
15771 \end_inset
15772
15773  is the same as 
15774 \begin_inset Flex Code
15775 status collapsed
15776
15777 \begin_layout Plain Layout
15778 Item_Environment
15779 \end_layout
15780
15781 \end_inset
15782
15783 , except that
15784 \begin_inset Newline newline
15785 \end_inset
15786
15787
15788 \begin_inset Flex Code
15789 status collapsed
15790
15791 \begin_layout Plain Layout
15792 LabelWidthString
15793 \end_layout
15794
15795 \end_inset
15796
15797  is passed as an argument to the environment.
15798 \begin_inset Newline newline
15799 \end_inset
15800
15801
15802 \begin_inset Flex Code
15803 status collapsed
15804
15805 \begin_layout Plain Layout
15806 LabelWidthString
15807 \end_layout
15808
15809 \end_inset
15810
15811  can be defined in the 
15812 \begin_inset Flex Noun
15813 status collapsed
15814
15815 \begin_layout Plain Layout
15816 Edit\SpecialChar menuseparator
15817 Paragraph
15818 \begin_inset space ~
15819 \end_inset
15820
15821 settings
15822 \end_layout
15823
15824 \end_inset
15825
15826  dialog.
15827 \end_layout
15828
15829 \begin_layout Description
15830 \begin_inset Flex Code
15831 status collapsed
15832
15833 \begin_layout Plain Layout
15834 Bib_Environment
15835 \end_layout
15836
15837 \end_inset
15838
15839  is like 
15840 \begin_inset Flex Code
15841 status collapsed
15842
15843 \begin_layout Plain Layout
15844 Environment
15845 \end_layout
15846
15847 \end_inset
15848
15849  but adds the necessary mandatory argument (the longest label) to the begin
15850  statement of the bibliography environment:
15851 \begin_inset Newline newline
15852 \end_inset
15853
15854
15855 \begin_inset Flex Code
15856 status collapsed
15857
15858 \begin_layout Plain Layout
15859
15860 \backslash
15861 begin{thebibliography}{99}
15862 \end_layout
15863
15864 \end_inset
15865
15866 .
15867  It is therefore only useful for bibliography environments.
15868  The default longest label 
15869 \begin_inset Quotes eld
15870 \end_inset
15871
15872 99
15873 \begin_inset Quotes erd
15874 \end_inset
15875
15876  can be changed by the user in the paragraph settings of a bibliography
15877  item.
15878 \end_layout
15879
15880 \begin_layout Standard
15881 Putting the last few things together, the \SpecialChar LaTeX
15882  output will be either: 
15883 \end_layout
15884
15885 \begin_layout LyX-Code
15886
15887 \backslash
15888 LatexName[LatexParam]{\SpecialChar ldots
15889 }
15890 \end_layout
15891
15892 \begin_layout Standard
15893 or: 
15894 \end_layout
15895
15896 \begin_layout LyX-Code
15897
15898 \backslash
15899 begin{LatexName}[LatexParam] \SpecialChar ldots
15900  
15901 \backslash
15902 end{LatexName}.
15903 \end_layout
15904
15905 \begin_layout Standard
15906 depending upon the \SpecialChar LaTeX
15907  type.
15908 \end_layout
15909
15910 \end_deeper
15911 \begin_layout Description
15912 \begin_inset Flex Code
15913 status collapsed
15914
15915 \begin_layout Plain Layout
15916 LeftDelim
15917 \end_layout
15918
15919 \end_inset
15920
15921  [
15922 \begin_inset Flex Code
15923 status collapsed
15924
15925 \begin_layout Plain Layout
15926 string
15927 \end_layout
15928
15929 \end_inset
15930
15931 ] A string that is put at the beginning of the style content.
15932  A line break in the output can be indicated by 
15933 \begin_inset Flex Code
15934 status collapsed
15935
15936 \begin_layout Plain Layout
15937 <br/>
15938 \end_layout
15939
15940 \end_inset
15941
15942 .
15943 \end_layout
15944
15945 \begin_layout Description
15946 \begin_inset Flex Code
15947 status collapsed
15948
15949 \begin_layout Plain Layout
15950 LeftMargin
15951 \end_layout
15952
15953 \end_inset
15954
15955  [
15956 \begin_inset Flex Code
15957 status collapsed
15958
15959 \begin_layout Plain Layout
15960 string=""
15961 \end_layout
15962
15963 \end_inset
15964
15965 ] If you put styles into environments, the different 
15966 \begin_inset Flex Code
15967 status collapsed
15968
15969 \begin_layout Plain Layout
15970 LeftMargin
15971 \end_layout
15972
15973 \end_inset
15974
15975  are not simply added, but added with a factor 
15976 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15977 \end_inset
15978
15979 .
15980  Note that this parameter is also used when 
15981 \begin_inset Flex Code
15982 status collapsed
15983
15984 \begin_layout Plain Layout
15985 Margin
15986 \end_layout
15987
15988 \end_inset
15989
15990  is defined as 
15991 \begin_inset Flex Code
15992 status collapsed
15993
15994 \begin_layout Plain Layout
15995 Manual
15996 \end_layout
15997
15998 \end_inset
15999
16000  or 
16001 \begin_inset Flex Code
16002 status collapsed
16003
16004 \begin_layout Plain Layout
16005 Dynamic
16006 \end_layout
16007
16008 \end_inset
16009
16010 .
16011  Then it is added to the manual or dynamic margin.
16012 \begin_inset Newline newline
16013 \end_inset
16014
16015 For example 
16016 \begin_inset Quotes eld
16017 \end_inset
16018
16019
16020 \begin_inset Flex Code
16021 status collapsed
16022
16023 \begin_layout Plain Layout
16024 MM
16025 \end_layout
16026
16027 \end_inset
16028
16029
16030 \begin_inset Quotes erd
16031 \end_inset
16032
16033  means that the paragraph is indented with the width of 
16034 \begin_inset Quotes eld
16035 \end_inset
16036
16037
16038 \begin_inset Flex Code
16039 status collapsed
16040
16041 \begin_layout Plain Layout
16042 MM
16043 \end_layout
16044
16045 \end_inset
16046
16047
16048 \begin_inset Quotes erd
16049 \end_inset
16050
16051  in the normal font.
16052  You can get a negative width by prefixing the string with 
16053 \begin_inset Quotes eld
16054 \end_inset
16055
16056
16057 \begin_inset Flex Code
16058 status collapsed
16059
16060 \begin_layout Plain Layout
16061 -
16062 \end_layout
16063
16064 \end_inset
16065
16066
16067 \begin_inset Quotes erd
16068 \end_inset
16069
16070 .
16071  This way was chosen so that the look is the same with each used screen
16072  font.
16073 \end_layout
16074
16075 \begin_layout Description
16076 \begin_inset Flex Code
16077 status collapsed
16078
16079 \begin_layout Plain Layout
16080 Margin
16081 \end_layout
16082
16083 \end_inset
16084
16085  [
16086 \begin_inset Flex Code
16087 status collapsed
16088
16089 \begin_layout Plain Layout
16090
16091 \emph on
16092 Static
16093 \emph default
16094 , Manual, Dynamic, First_Dynamic, Right_Address_Box
16095 \end_layout
16096
16097 \end_inset
16098
16099
16100 \begin_inset Newline newline
16101 \end_inset
16102
16103 The kind of margin that the style has on the left side.
16104 \end_layout
16105
16106 \begin_deeper
16107 \begin_layout Description
16108 \begin_inset Flex Code
16109 status collapsed
16110
16111 \begin_layout Plain Layout
16112 Static
16113 \end_layout
16114
16115 \end_inset
16116
16117  just means a fixed margin.
16118 \end_layout
16119
16120 \begin_layout Description
16121 \begin_inset Flex Code
16122 status collapsed
16123
16124 \begin_layout Plain Layout
16125 Manual
16126 \end_layout
16127
16128 \end_inset
16129
16130  means that the left margin depends on the string entered in the 
16131 \begin_inset Flex Noun
16132 status collapsed
16133
16134 \begin_layout Plain Layout
16135 Edit\SpecialChar menuseparator
16136 Paragraph
16137 \begin_inset space ~
16138 \end_inset
16139
16140 Settings
16141 \end_layout
16142
16143 \end_inset
16144
16145  dialog.
16146  This is used to typeset nice lists without tabulators.
16147 \end_layout
16148
16149 \begin_layout Description
16150 \begin_inset Flex Code
16151 status collapsed
16152
16153 \begin_layout Plain Layout
16154 Dynamic
16155 \end_layout
16156
16157 \end_inset
16158
16159  means that the margin depends on the size of the label.
16160  This is used for automatic enumerated headlines.
16161  It is obvious that the headline 
16162 \begin_inset Quotes eld
16163 \end_inset
16164
16165 5.4.3.2.1 Very long headline
16166 \begin_inset Quotes erd
16167 \end_inset
16168
16169  must have a wider left margin (as wide as 
16170 \begin_inset Quotes eld
16171 \end_inset
16172
16173 5.4.3.2.1
16174 \begin_inset Quotes erd
16175 \end_inset
16176
16177  plus the space) than 
16178 \begin_inset Quotes eld
16179 \end_inset
16180
16181 3.2 Very long headline
16182 \begin_inset Quotes erd
16183 \end_inset
16184
16185 , even if standard 
16186 \begin_inset Quotes eld
16187 \end_inset
16188
16189 word processors
16190 \begin_inset Quotes erd
16191 \end_inset
16192
16193  are not able to do this.
16194 \end_layout
16195
16196 \begin_layout Description
16197 \begin_inset Flex Code
16198 status collapsed
16199
16200 \begin_layout Plain Layout
16201 First_Dynamic
16202 \end_layout
16203
16204 \end_inset
16205
16206  is similar, but only the very first row of the paragraph is dynamic, while
16207  the others are static; this is used, for example, for descriptions.
16208 \end_layout
16209
16210 \begin_layout Description
16211 \begin_inset Flex Code
16212 status collapsed
16213
16214 \begin_layout Plain Layout
16215 Right_Address_Box
16216 \end_layout
16217
16218 \end_inset
16219
16220  means the margin is chosen in a way that the longest row of this paragraph
16221  fits to the right margin.
16222  This is used to typeset an address on the right edge of the page.
16223 \end_layout
16224
16225 \end_deeper
16226 \begin_layout Description
16227 \begin_inset Flex Code
16228 status collapsed
16229
16230 \begin_layout Plain Layout
16231 NeedProtect
16232 \end_layout
16233
16234 \end_inset
16235
16236  [
16237 \begin_inset Flex Code
16238 status collapsed
16239
16240 \begin_layout Plain Layout
16241
16242 \emph on
16243 0
16244 \end_layout
16245
16246 \end_inset
16247
16248 ,
16249 \begin_inset space \thinspace{}
16250 \end_inset
16251
16252
16253 \begin_inset Flex Code
16254 status collapsed
16255
16256 \begin_layout Plain Layout
16257 1
16258 \end_layout
16259
16260 \end_inset
16261
16262 ] Whether fragile commands in this style should be 
16263 \begin_inset Flex Code
16264 status collapsed
16265
16266 \begin_layout Plain Layout
16267
16268 \backslash
16269 protect
16270 \end_layout
16271
16272 \end_inset
16273
16274 'ed.
16275  (Note: This is 
16276 \emph on
16277 not
16278 \emph default
16279  whether this command should itself be protected.)
16280 \change_inserted -712698321 1523696949
16281
16282 \end_layout
16283
16284 \begin_layout Description
16285
16286 \change_inserted -712698321 1552395557
16287 \begin_inset Flex Code
16288 status collapsed
16289
16290 \begin_layout Plain Layout
16291
16292 \change_inserted -712698321 1523696950
16293 NeedCProtect
16294 \change_unchanged
16295
16296 \end_layout
16297
16298 \end_inset
16299
16300  [
16301 \begin_inset Flex Code
16302 status collapsed
16303
16304 \begin_layout Plain Layout
16305
16306 \change_inserted -712698321 1523696950
16307
16308 \emph on
16309 0
16310 \change_unchanged
16311
16312 \end_layout
16313
16314 \end_inset
16315
16316 ,
16317 \begin_inset space \thinspace{}
16318 \end_inset
16319
16320
16321 \begin_inset Flex Code
16322 status collapsed
16323
16324 \begin_layout Plain Layout
16325
16326 \change_inserted -712698321 1523696950
16327 1
16328 \change_unchanged
16329
16330 \end_layout
16331
16332 \end_inset
16333
16334 ] This causes macros that contain this layout to be protected with 
16335 \begin_inset Flex Code
16336 status collapsed
16337
16338 \begin_layout Plain Layout
16339
16340 \change_inserted -712698321 1523696950
16341
16342 \backslash
16343 cprotect
16344 \change_unchanged
16345
16346 \end_layout
16347
16348 \end_inset
16349
16350  (cf.
16351  package 
16352 \family sans
16353 cprotect
16354 \family default
16355 ) if necessary and thus allows (some) verbatim stuff in macros.
16356 \end_layout
16357
16358 \begin_layout Description
16359
16360 \change_inserted -712698321 1552395844
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365
16366 \change_inserted -712698321 1552395561
16367 NeedMBoxProtect
16368 \change_unchanged
16369
16370 \end_layout
16371
16372 \end_inset
16373
16374  [
16375 \begin_inset Flex Code
16376 status collapsed
16377
16378 \begin_layout Plain Layout
16379
16380 \change_inserted -712698321 1552395557
16381
16382 \emph on
16383 0
16384 \change_unchanged
16385
16386 \end_layout
16387
16388 \end_inset
16389
16390 ,
16391 \begin_inset space \thinspace{}
16392 \end_inset
16393
16394
16395 \begin_inset Flex Code
16396 status collapsed
16397
16398 \begin_layout Plain Layout
16399
16400 \change_inserted -712698321 1552395557
16401 1
16402 \change_unchanged
16403
16404 \end_layout
16405
16406 \end_inset
16407
16408 ] Whether specific commands in this style (such as 
16409 \begin_inset Flex Code
16410 status collapsed
16411
16412 \begin_layout Plain Layout
16413
16414 \change_inserted -712698321 1552395655
16415
16416 \backslash
16417 cite
16418 \change_unchanged
16419
16420 \end_layout
16421
16422 \end_inset
16423
16424  and 
16425 \begin_inset Flex Code
16426 status collapsed
16427
16428 \begin_layout Plain Layout
16429
16430 \change_inserted -712698321 1552395661
16431
16432 \backslash
16433 ref
16434 \change_unchanged
16435
16436 \end_layout
16437
16438 \end_inset
16439
16440 ) should be protected in an 
16441 \begin_inset Flex Code
16442 status collapsed
16443
16444 \begin_layout Plain Layout
16445
16446 \change_inserted -712698321 1552395631
16447
16448 \backslash
16449 mbox
16450 \change_unchanged
16451
16452 \end_layout
16453
16454 \end_inset
16455
16456 .
16457  This is particularly needed for styles that draw on 
16458 \family sans
16459 ulem
16460 \family default
16461  or 
16462 \family sans
16463 soul
16464 \family default
16465  commands which parse their content in complex ways.
16466 \change_unchanged
16467
16468 \end_layout
16469
16470 \begin_layout Description
16471 \begin_inset Flex Code
16472 status collapsed
16473
16474 \begin_layout Plain Layout
16475 Newline
16476 \end_layout
16477
16478 \end_inset
16479
16480  [
16481 \begin_inset Flex Code
16482 status collapsed
16483
16484 \begin_layout Plain Layout
16485 0
16486 \end_layout
16487
16488 \end_inset
16489
16490 ,
16491 \begin_inset space \thinspace{}
16492 \end_inset
16493
16494
16495 \begin_inset Flex Code
16496 status collapsed
16497
16498 \begin_layout Plain Layout
16499
16500 \emph on
16501 1
16502 \end_layout
16503
16504 \end_inset
16505
16506 ] Whether newlines are translated into \SpecialChar LaTeX
16507  newlines (
16508 \begin_inset Flex Code
16509 status collapsed
16510
16511 \begin_layout Plain Layout
16512
16513 \backslash
16514
16515 \backslash
16516
16517 \end_layout
16518
16519 \end_inset
16520
16521 ) or not.
16522  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16523  editing
16524  inside \SpecialChar LyX
16525 .
16526 \end_layout
16527
16528 \begin_layout Description
16529 \begin_inset Flex Code
16530 status collapsed
16531
16532 \begin_layout Plain Layout
16533 NextNoIndent
16534 \end_layout
16535
16536 \end_inset
16537
16538  [
16539 \begin_inset Flex Code
16540 status collapsed
16541
16542 \begin_layout Plain Layout
16543
16544 \emph on
16545 0
16546 \end_layout
16547
16548 \end_inset
16549
16550 ,
16551 \begin_inset space \thinspace{}
16552 \end_inset
16553
16554
16555 \begin_inset Flex Code
16556 status collapsed
16557
16558 \begin_layout Plain Layout
16559 1
16560 \end_layout
16561
16562 \end_inset
16563
16564 ] If set to true, and if 
16565 \begin_inset Flex Code
16566 status collapsed
16567
16568 \begin_layout Plain Layout
16569 DefaultStyle
16570 \end_layout
16571
16572 \end_inset
16573
16574  (usually 
16575 \begin_inset Flex Code
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579 Standard
16580 \end_layout
16581
16582 \end_inset
16583
16584 ) paragraphs are being indented, then the indentation of such a paragraph
16585  following one of this type will be suppressed.
16586  (So this will not affect the display of non-default paragraphs.)
16587 \end_layout
16588
16589 \begin_layout Description
16590 \begin_inset Flex Code
16591 status collapsed
16592
16593 \begin_layout Plain Layout
16594 ObsoletedBy
16595 \end_layout
16596
16597 \end_inset
16598
16599  [
16600 \begin_inset Flex Code
16601 status collapsed
16602
16603 \begin_layout Plain Layout
16604 <name>
16605 \end_layout
16606
16607 \end_inset
16608
16609 ] Name of a style that has replaced this style.
16610  This is used to rename a style, while keeping backward compatibility.
16611 \end_layout
16612
16613 \begin_layout Description
16614 \begin_inset Flex Code
16615 status collapsed
16616
16617 \begin_layout Plain Layout
16618 ParagraphGroup
16619 \end_layout
16620
16621 \end_inset
16622
16623  [
16624 \begin_inset Flex Code
16625 status collapsed
16626
16627 \begin_layout Plain Layout
16628 0
16629 \end_layout
16630
16631 \end_inset
16632
16633 ,
16634 \begin_inset space \thinspace{}
16635 \end_inset
16636
16637
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 1
16643 \end_layout
16644
16645 \end_inset
16646
16647 ] Determines whether consecutive paragraphs of the same type are treated
16648  as belonging together.
16649  This has the effect that the 
16650 \begin_inset Flex Code
16651 status collapsed
16652
16653 \begin_layout Plain Layout
16654 GuiLabel
16655 \end_layout
16656
16657 \end_inset
16658
16659  is only printed once before such a group.
16660  By default, this is true for 
16661 \begin_inset Flex Code
16662 status collapsed
16663
16664 \begin_layout Plain Layout
16665 LaTeXType
16666 \end_layout
16667
16668 \end_inset
16669
16670  
16671 \begin_inset Flex Code
16672 status collapsed
16673
16674 \begin_layout Plain Layout
16675 Environment
16676 \end_layout
16677
16678 \end_inset
16679
16680  and 
16681 \begin_inset Flex Code
16682 status collapsed
16683
16684 \begin_layout Plain Layout
16685 Bib_Environment
16686 \end_layout
16687
16688 \end_inset
16689
16690  and false for all other types.
16691 \end_layout
16692
16693 \begin_layout Description
16694 \begin_inset Flex Code
16695 status collapsed
16696
16697 \begin_layout Plain Layout
16698 ParbreakIsNewline
16699 \end_layout
16700
16701 \end_inset
16702
16703  [
16704 \begin_inset Flex Code
16705 status collapsed
16706
16707 \begin_layout Plain Layout
16708
16709 \emph on
16710 0
16711 \end_layout
16712
16713 \end_inset
16714
16715 ,
16716 \begin_inset space \thinspace{}
16717 \end_inset
16718
16719
16720 \begin_inset Flex Code
16721 status collapsed
16722
16723 \begin_layout Plain Layout
16724 1
16725 \end_layout
16726
16727 \end_inset
16728
16729 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16730  output,
16731  but only by a line break; together with 
16732 \begin_inset Flex Code
16733 status collapsed
16734
16735 \begin_layout Plain Layout
16736 PassThru 1
16737 \end_layout
16738
16739 \end_inset
16740
16741 , this allows to emulate a plain text editor (like the ERT inset).
16742 \end_layout
16743
16744 \begin_layout Description
16745 \begin_inset Flex Code
16746 status collapsed
16747
16748 \begin_layout Plain Layout
16749 ParIndent
16750 \end_layout
16751
16752 \end_inset
16753
16754  [
16755 \begin_inset Flex Code
16756 status collapsed
16757
16758 \begin_layout Plain Layout
16759 string=""
16760 \end_layout
16761
16762 \end_inset
16763
16764 ] The indent of the very first line of a paragraph.
16765  The
16766 \begin_inset Newline newline
16767 \end_inset
16768
16769
16770 \begin_inset Flex Code
16771 status collapsed
16772
16773 \begin_layout Plain Layout
16774 Parindent
16775 \end_layout
16776
16777 \end_inset
16778
16779  will be fixed for a certain style.
16780  The exception is the default style, since the indentation for these paragraphs
16781  can be prohibited with 
16782 \begin_inset Flex Code
16783 status collapsed
16784
16785 \begin_layout Plain Layout
16786 NextNoIndent
16787 \end_layout
16788
16789 \end_inset
16790
16791 .
16792  Also, 
16793 \begin_inset Flex Code
16794 status collapsed
16795
16796 \begin_layout Plain Layout
16797 Standard
16798 \end_layout
16799
16800 \end_inset
16801
16802  style paragraphs inside environments use the 
16803 \begin_inset Flex Code
16804 status collapsed
16805
16806 \begin_layout Plain Layout
16807 Parindent
16808 \end_layout
16809
16810 \end_inset
16811
16812  of the environment, not their native one.
16813  For example, 
16814 \begin_inset Flex Code
16815 status collapsed
16816
16817 \begin_layout Plain Layout
16818 Standard
16819 \end_layout
16820
16821 \end_inset
16822
16823  paragraphs inside an enumeration are not indented.
16824 \end_layout
16825
16826 \begin_layout Description
16827 \begin_inset Flex Code
16828 status collapsed
16829
16830 \begin_layout Plain Layout
16831 ParSep
16832 \end_layout
16833
16834 \end_inset
16835
16836  [
16837 \begin_inset Flex Code
16838 status collapsed
16839
16840 \begin_layout Plain Layout
16841 float=0
16842 \end_layout
16843
16844 \end_inset
16845
16846 ] The vertical space between two paragraphs of this style.
16847 \end_layout
16848
16849 \begin_layout Description
16850 \begin_inset Flex Code
16851 status collapsed
16852
16853 \begin_layout Plain Layout
16854 Parskip
16855 \end_layout
16856
16857 \end_inset
16858
16859  [
16860 \begin_inset Flex Code
16861 status collapsed
16862
16863 \begin_layout Plain Layout
16864 float=0
16865 \end_layout
16866
16867 \end_inset
16868
16869 ] \SpecialChar LyX
16870  allows the user to choose either 
16871 \begin_inset Quotes eld
16872 \end_inset
16873
16874 indent
16875 \begin_inset Quotes erd
16876 \end_inset
16877
16878  or 
16879 \begin_inset Quotes eld
16880 \end_inset
16881
16882 skip
16883 \begin_inset Quotes erd
16884 \end_inset
16885
16886  to separate paragraphs.
16887  When 
16888 \begin_inset Quotes eld
16889 \end_inset
16890
16891 indent
16892 \begin_inset Quotes erd
16893 \end_inset
16894
16895  is chosen, 
16896 \begin_inset Flex Code
16897 status collapsed
16898
16899 \begin_layout Plain Layout
16900 Parskip
16901 \end_layout
16902
16903 \end_inset
16904
16905  is ignored.
16906  When 
16907 \begin_inset Quotes eld
16908 \end_inset
16909
16910 skip
16911 \begin_inset Quotes erd
16912 \end_inset
16913
16914  is chosen, 
16915 \begin_inset Flex Code
16916 status collapsed
16917
16918 \begin_layout Plain Layout
16919 ParIndent
16920 \end_layout
16921
16922 \end_inset
16923
16924  is ignored and all paragraphs are separated by the 
16925 \begin_inset Flex Code
16926 status collapsed
16927
16928 \begin_layout Plain Layout
16929 Parskip
16930 \end_layout
16931
16932 \end_inset
16933
16934  argument.
16935  The vertical space is calculated with 
16936 \begin_inset Flex Code
16937 status collapsed
16938
16939 \begin_layout Plain Layout
16940 Parskip
16941 \begin_inset space ~
16942 \end_inset
16943
16944 * DefaultHeight
16945 \end_layout
16946
16947 \end_inset
16948
16949  where 
16950 \begin_inset Flex Code
16951 status collapsed
16952
16953 \begin_layout Plain Layout
16954 DefaultHeight
16955 \end_layout
16956
16957 \end_inset
16958
16959  is the height of a row with the normal font.
16960  This way, the look stays the same with different screen fonts.
16961 \end_layout
16962
16963 \begin_layout Description
16964 \begin_inset Flex Code
16965 status collapsed
16966
16967 \begin_layout Plain Layout
16968 PassThru
16969 \end_layout
16970
16971 \end_inset
16972
16973  [
16974 \begin_inset Flex Code
16975 status collapsed
16976
16977 \begin_layout Plain Layout
16978
16979 \emph on
16980 0
16981 \end_layout
16982
16983 \end_inset
16984
16985 ,
16986 \begin_inset space \thinspace{}
16987 \end_inset
16988
16989
16990 \begin_inset Flex Code
16991 status collapsed
16992
16993 \begin_layout Plain Layout
16994 1
16995 \end_layout
16996
16997 \end_inset
16998
16999 ] Whether the contents of this paragraph should be output in raw form, meaning
17000  without special translations that \SpecialChar LaTeX
17001  would require.
17002 \end_layout
17003
17004 \begin_layout Description
17005 \begin_inset Flex Code
17006 status collapsed
17007
17008 \begin_layout Plain Layout
17009 PassThruChars
17010 \end_layout
17011
17012 \end_inset
17013
17014  [
17015 \begin_inset Flex Code
17016 status collapsed
17017
17018 \begin_layout Plain Layout
17019 string
17020 \end_layout
17021
17022 \end_inset
17023
17024 ]
17025 \family typewriter
17026  
17027 \family default
17028 Defines individual characters that should be output in raw form, meaning
17029  without special translations that \SpecialChar LaTeX
17030  would require.
17031 \end_layout
17032
17033 \begin_layout Description
17034 \begin_inset Flex Code
17035 status collapsed
17036
17037 \begin_layout Plain Layout
17038 Preamble
17039 \end_layout
17040
17041 \end_inset
17042
17043  Information to be included in the \SpecialChar LaTeX
17044  preamble when this style is used.
17045  Used to define macros, load packages, etc., required by this particular
17046  style.
17047  Must end with 
17048 \begin_inset Quotes eld
17049 \end_inset
17050
17051
17052 \begin_inset Flex Code
17053 status collapsed
17054
17055 \begin_layout Plain Layout
17056 EndPreamble
17057 \end_layout
17058
17059 \end_inset
17060
17061
17062 \begin_inset Quotes erd
17063 \end_inset
17064
17065 .
17066 \end_layout
17067
17068 \begin_layout Description
17069 \begin_inset Flex Code
17070 status collapsed
17071
17072 \begin_layout Plain Layout
17073 RefPrefix
17074 \end_layout
17075
17076 \end_inset
17077
17078  [
17079 \begin_inset Flex Code
17080 status collapsed
17081
17082 \begin_layout Plain Layout
17083 string
17084 \end_layout
17085
17086 \end_inset
17087
17088 ] The prefix to use when creating labels referring to paragraphs of this
17089  type.
17090  This allows the use of formatted references.
17091 \end_layout
17092
17093 \begin_layout Description
17094 \begin_inset Flex Code
17095 status collapsed
17096
17097 \begin_layout Plain Layout
17098 Requires 
17099 \end_layout
17100
17101 \end_inset
17102
17103  [
17104 \begin_inset Flex Code
17105 status collapsed
17106
17107 \begin_layout Plain Layout
17108 string
17109 \end_layout
17110
17111 \end_inset
17112
17113 ] Whether the style requires the feature 
17114 \begin_inset Flex Code
17115 status collapsed
17116
17117 \begin_layout Plain Layout
17118 string
17119 \end_layout
17120
17121 \end_inset
17122
17123  (see 
17124 \begin_inset CommandInset ref
17125 LatexCommand ref
17126 reference "chap:List-of-functions"
17127
17128 \end_inset
17129
17130  for the list of features).
17131  If you require a package with specific options, you can additionally use
17132  
17133 \begin_inset Flex Code
17134 status collapsed
17135
17136 \begin_layout Plain Layout
17137 PackageOptions
17138 \end_layout
17139
17140 \end_inset
17141
17142  as a general text class parameter (see 
17143 \begin_inset CommandInset ref
17144 LatexCommand ref
17145 reference "subsec:General-text-class"
17146
17147 \end_inset
17148
17149 ).
17150 \end_layout
17151
17152 \begin_layout Description
17153 \begin_inset Flex Code
17154 status collapsed
17155
17156 \begin_layout Plain Layout
17157 ResetArgs
17158 \end_layout
17159
17160 \end_inset
17161
17162  [
17163 \begin_inset Flex Code
17164 status collapsed
17165
17166 \begin_layout Plain Layout
17167
17168 \emph on
17169 0
17170 \end_layout
17171
17172 \end_inset
17173
17174 ,
17175 \begin_inset Flex Code
17176 status collapsed
17177
17178 \begin_layout Plain Layout
17179 1
17180 \end_layout
17181
17182 \end_inset
17183
17184 ] Resets the \SpecialChar LaTeX
17185  arguments of this style (as defined via the 
17186 \begin_inset Flex Code
17187 status collapsed
17188
17189 \begin_layout Plain Layout
17190 Argument
17191 \end_layout
17192
17193 \end_inset
17194
17195  tag).
17196  This is useful if you have copied a style via 
17197 \begin_inset Flex Code
17198 status collapsed
17199
17200 \begin_layout Plain Layout
17201 CopyStyle
17202 \end_layout
17203
17204 \end_inset
17205
17206 , but you do not want to inherit its (required and optional) arguments.
17207 \end_layout
17208
17209 \begin_layout Description
17210 \begin_inset Flex Code
17211 status collapsed
17212
17213 \begin_layout Plain Layout
17214 ResumeCounter
17215 \end_layout
17216
17217 \end_inset
17218
17219  [
17220 \begin_inset Flex Code
17221 status collapsed
17222
17223 \begin_layout Plain Layout
17224
17225 \emph on
17226 0
17227 \end_layout
17228
17229 \end_inset
17230
17231 ,
17232 \begin_inset Flex Code
17233 status collapsed
17234
17235 \begin_layout Plain Layout
17236 1
17237 \end_layout
17238
17239 \end_inset
17240
17241 ] Resumes a counter that is usually reset at each new sequence of layouts.
17242  This is currently only useful when 
17243 \begin_inset Flex Code
17244 status collapsed
17245
17246 \begin_layout Plain Layout
17247 LabelType
17248 \end_layout
17249
17250 \end_inset
17251
17252  is 
17253 \begin_inset Flex Code
17254 status collapsed
17255
17256 \begin_layout Plain Layout
17257 Enumerate
17258 \end_layout
17259
17260 \end_inset
17261
17262 .
17263 \end_layout
17264
17265 \begin_layout Description
17266 \begin_inset Flex Code
17267 status collapsed
17268
17269 \begin_layout Plain Layout
17270 RightDelim
17271 \end_layout
17272
17273 \end_inset
17274
17275  [
17276 \begin_inset Flex Code
17277 status collapsed
17278
17279 \begin_layout Plain Layout
17280 string
17281 \end_layout
17282
17283 \end_inset
17284
17285 ] A string that is put at the end of the layout content.
17286  A line break in the output can be indicated by 
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291 <br/>
17292 \end_layout
17293
17294 \end_inset
17295
17296 .
17297 \end_layout
17298
17299 \begin_layout Description
17300 \begin_inset Flex Code
17301 status collapsed
17302
17303 \begin_layout Plain Layout
17304 RightMargin
17305 \end_layout
17306
17307 \end_inset
17308
17309  [
17310 \begin_inset Flex Code
17311 status collapsed
17312
17313 \begin_layout Plain Layout
17314 string=""
17315 \end_layout
17316
17317 \end_inset
17318
17319 ] Similar to 
17320 \begin_inset Flex Code
17321 status collapsed
17322
17323 \begin_layout Plain Layout
17324 LeftMargin
17325 \end_layout
17326
17327 \end_inset
17328
17329 .
17330 \end_layout
17331
17332 \begin_layout Description
17333 \begin_inset Flex Code
17334 status collapsed
17335
17336 \begin_layout Plain Layout
17337 Spacing
17338 \end_layout
17339
17340 \end_inset
17341
17342  [
17343 \begin_inset Flex Code
17344 status collapsed
17345
17346 \begin_layout Plain Layout
17347
17348 \emph on
17349 single
17350 \end_layout
17351
17352 \end_inset
17353
17354
17355 \begin_inset Flex Code
17356 status collapsed
17357
17358 \begin_layout Plain Layout
17359 onehalf
17360 \end_layout
17361
17362 \end_inset
17363
17364
17365 \begin_inset Flex Code
17366 status collapsed
17367
17368 \begin_layout Plain Layout
17369 double
17370 \end_layout
17371
17372 \end_inset
17373
17374
17375 \begin_inset Flex Code
17376 status collapsed
17377
17378 \begin_layout Plain Layout
17379 other
17380 \begin_inset space ~
17381 \end_inset
17382
17383 <value>
17384 \end_layout
17385
17386 \end_inset
17387
17388 ] This defines what the default spacing should be in the style.
17389  The arguments 
17390 \begin_inset Flex Code
17391 status collapsed
17392
17393 \begin_layout Plain Layout
17394 single
17395 \end_layout
17396
17397 \end_inset
17398
17399
17400 \begin_inset Flex Code
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404 onehalf
17405 \end_layout
17406
17407 \end_inset
17408
17409  and 
17410 \begin_inset Flex Code
17411 status collapsed
17412
17413 \begin_layout Plain Layout
17414 double
17415 \end_layout
17416
17417 \end_inset
17418
17419  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17420  If you specify the argument 
17421 \begin_inset Flex Code
17422 status collapsed
17423
17424 \begin_layout Plain Layout
17425 other
17426 \end_layout
17427
17428 \end_inset
17429
17430 , then you must also provide a value argument which will be the actual multiplie
17431 r value.
17432  Note that, contrary to other parameters, 
17433 \begin_inset Flex Code
17434 status collapsed
17435
17436 \begin_layout Plain Layout
17437 Spacing
17438 \end_layout
17439
17440 \end_inset
17441
17442  implies the generation of specific \SpecialChar LaTeX
17443  code, using the \SpecialChar LaTeX
17444  package 
17445 \family roman
17446
17447 \begin_inset Flex Code
17448 status collapsed
17449
17450 \begin_layout Plain Layout
17451 setspace
17452 \end_layout
17453
17454 \end_inset
17455
17456 .
17457 \end_layout
17458
17459 \begin_layout Description
17460 \begin_inset Flex Code
17461 status collapsed
17462
17463 \begin_layout Plain Layout
17464 Spellcheck
17465 \end_layout
17466
17467 \end_inset
17468
17469  [
17470 \begin_inset Flex Code
17471 status collapsed
17472
17473 \begin_layout Plain Layout
17474 0
17475 \end_layout
17476
17477 \end_inset
17478
17479 ,
17480 \begin_inset space \thinspace{}
17481 \end_inset
17482
17483
17484 \begin_inset Flex Code
17485 status collapsed
17486
17487 \begin_layout Plain Layout
17488
17489 \emph on
17490 1
17491 \end_layout
17492
17493 \end_inset
17494
17495 ] Allow spell-checking paragraphs of this style.
17496  Default is true.
17497 \end_layout
17498
17499 \begin_layout Description
17500 \begin_inset Flex Code
17501 status collapsed
17502
17503 \begin_layout Plain Layout
17504 Step
17505 \change_deleted 731793113 1604355211
17506 Master
17507 \change_inserted 731793113 1604355212
17508 Parent
17509 \change_unchanged
17510 Counter
17511 \end_layout
17512
17513 \end_inset
17514
17515  [
17516 \begin_inset Flex Code
17517 status collapsed
17518
17519 \begin_layout Plain Layout
17520
17521 \emph on
17522 0
17523 \end_layout
17524
17525 \end_inset
17526
17527 ,
17528 \begin_inset Flex Code
17529 status collapsed
17530
17531 \begin_layout Plain Layout
17532 1
17533 \end_layout
17534
17535 \end_inset
17536
17537 ] Steps the 
17538 \change_deleted 731793113 1604355214
17539 master
17540 \change_inserted 731793113 1604355216
17541 parent
17542 \change_unchanged
17543  counter of a given counter at the beginning of a new sequence of layouts.
17544  This is currently only useful when 
17545 \begin_inset Flex Code
17546 status collapsed
17547
17548 \begin_layout Plain Layout
17549 LabelType
17550 \end_layout
17551
17552 \end_inset
17553
17554  is 
17555 \begin_inset Flex Code
17556 status collapsed
17557
17558 \begin_layout Plain Layout
17559 Enumerate
17560 \end_layout
17561
17562 \end_inset
17563
17564 .
17565 \end_layout
17566
17567 \begin_layout Description
17568 \begin_inset Flex Code
17569 status collapsed
17570
17571 \begin_layout Plain Layout
17572 TextFont
17573 \end_layout
17574
17575 \end_inset
17576
17577  The font used for the text body .
17578  See 
17579 \begin_inset CommandInset ref
17580 LatexCommand ref
17581 reference "subsec:Font-description"
17582
17583 \end_inset
17584
17585 .
17586 \end_layout
17587
17588 \begin_layout Description
17589 \begin_inset Flex Code
17590 status collapsed
17591
17592 \begin_layout Plain Layout
17593 TocLevel
17594 \end_layout
17595
17596 \end_inset
17597
17598
17599 \series medium
17600  [
17601 \begin_inset Flex Code
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605
17606 \series medium
17607 int=3
17608 \end_layout
17609
17610 \end_inset
17611
17612 ]
17613 \series default
17614  The level of the style in the table of contents.
17615  This is used for automatic numbering of section headings.
17616 \end_layout
17617
17618 \begin_layout Description
17619 \begin_inset Flex Code
17620 status collapsed
17621
17622 \begin_layout Plain Layout
17623 ToggleIndent
17624 \end_layout
17625
17626 \end_inset
17627
17628  [
17629 \emph on
17630
17631 \begin_inset Flex Code
17632 status collapsed
17633
17634 \begin_layout Plain Layout
17635
17636 \emph on
17637 default
17638 \end_layout
17639
17640 \end_inset
17641
17642
17643 \emph default
17644
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 always
17650 \end_layout
17651
17652 \end_inset
17653
17654
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659 never
17660 \end_layout
17661
17662 \end_inset
17663
17664 ] This tag determines whether the first line indentation of this paragraph
17665  can be toggled via the Paragraph settings dialog.
17666  If 
17667 \emph on
17668
17669 \begin_inset Flex Code
17670 status collapsed
17671
17672 \begin_layout Plain Layout
17673
17674 \emph off
17675 default
17676 \end_layout
17677
17678 \end_inset
17679
17680
17681 \emph default
17682  is set, indentation can be toggled if the document settings use 
17683 \begin_inset Quotes eld
17684 \end_inset
17685
17686 indent
17687 \begin_inset Quotes erd
17688 \end_inset
17689
17690  paragraph style, with 
17691 \begin_inset Flex Code
17692 status collapsed
17693
17694 \begin_layout Plain Layout
17695 always
17696 \end_layout
17697
17698 \end_inset
17699
17700 , indentation can always be toggled, notwithstanding the document settings,
17701  with 
17702 \begin_inset Flex Code
17703 status collapsed
17704
17705 \begin_layout Plain Layout
17706 never
17707 \end_layout
17708
17709 \end_inset
17710
17711 , indentation can never be toggled.
17712 \end_layout
17713
17714 \begin_layout Description
17715 \begin_inset Flex Code
17716 status collapsed
17717
17718 \begin_layout Plain Layout
17719 TopSep
17720 \end_layout
17721
17722 \end_inset
17723
17724  [
17725 \begin_inset Flex Code
17726 status collapsed
17727
17728 \begin_layout Plain Layout
17729 float=0
17730 \end_layout
17731
17732 \end_inset
17733
17734 ] The vertical space with which the very first of a chain of paragraphs
17735  with this style is separated from the previous paragraph.
17736  If the previous paragraph has another style, the separations are not simply
17737  added, but the maximum is taken.
17738 \end_layout
17739
17740 \begin_layout Subsection
17741 \begin_inset CommandInset label
17742 LatexCommand label
17743 name "subsec:I18n"
17744
17745 \end_inset
17746
17747 Internationalization of Paragraph Styles
17748 \end_layout
17749
17750 \begin_layout Standard
17751 \SpecialChar LyX
17752  has long supported internationalization of layout information, but, until
17753  version 2.0, this applied only to the user interface and not to, say, PDF
17754  output.
17755  Thus, French authors were forced to resort to ugly hacks if they wanted
17756  `
17757 \lang french
17758 Théorème
17759 \lang english
17760  1' instead of `Theorem 1'.
17761  Thanks to Georg Baum, that is no longer the case.
17762 \end_layout
17763
17764 \begin_layout Standard
17765 If a 
17766 \begin_inset Flex Code
17767 status collapsed
17768
17769 \begin_layout Plain Layout
17770 Style
17771 \end_layout
17772
17773 \end_inset
17774
17775  defines text that is to appear in the typeset document, it may use 
17776 \begin_inset Flex Code
17777 status collapsed
17778
17779 \begin_layout Plain Layout
17780 LangPreamble
17781 \end_layout
17782
17783 \end_inset
17784
17785  and 
17786 \begin_inset Flex Code
17787 status collapsed
17788
17789 \begin_layout Plain Layout
17790 BabelPreamble
17791 \end_layout
17792
17793 \end_inset
17794
17795  to support non-English and even multi-language documents correctly.
17796  The following excerpt (from the 
17797 \begin_inset Flex Code
17798 status collapsed
17799
17800 \begin_layout Plain Layout
17801 theorems-ams.inc
17802 \end_layout
17803
17804 \end_inset
17805
17806  file) shows how this works:
17807 \end_layout
17808
17809 \begin_layout LyX-Code
17810 Preamble
17811 \end_layout
17812
17813 \begin_deeper
17814 \begin_layout LyX-Code
17815   
17816 \backslash
17817 theoremstyle{remark}
17818 \end_layout
17819
17820 \begin_layout LyX-Code
17821   
17822 \backslash
17823 newtheorem{claim}[thm]{
17824 \backslash
17825 protect
17826 \backslash
17827 claimname}
17828 \end_layout
17829
17830 \begin_layout LyX-Code
17831 EndPreamble
17832 \end_layout
17833
17834 \begin_layout LyX-Code
17835 LangPreamble
17836 \end_layout
17837
17838 \begin_layout LyX-Code
17839   
17840 \backslash
17841 providecommand{
17842 \backslash
17843 claimname}{_(Claim)}
17844 \end_layout
17845
17846 \begin_layout LyX-Code
17847 EndLangPreamble
17848 \end_layout
17849
17850 \begin_layout LyX-Code
17851 BabelPreamble
17852 \end_layout
17853
17854 \begin_layout LyX-Code
17855     
17856 \backslash
17857 addto
17858 \backslash
17859 captions$$lang{
17860 \backslash
17861 renewcommand{
17862 \backslash
17863 claimname}{_(Claim)}}
17864 \end_layout
17865
17866 \begin_layout LyX-Code
17867 EndBabelPreamble
17868 \end_layout
17869
17870 \end_deeper
17871 \begin_layout Standard
17872 In principle, any legal \SpecialChar LaTeX
17873  may appear in the 
17874 \begin_inset Flex Code
17875 status collapsed
17876
17877 \begin_layout Plain Layout
17878 LangPreamble
17879 \end_layout
17880
17881 \end_inset
17882
17883  and 
17884 \begin_inset Flex Code
17885 status collapsed
17886
17887 \begin_layout Plain Layout
17888 BabelPreamble
17889 \end_layout
17890
17891 \end_inset
17892
17893  tags, but in practice they will typically look as they do here.
17894  The key to correct translation of the typeset text is the definition of
17895  the \SpecialChar LaTeX
17896  command 
17897 \begin_inset Flex Code
17898 status collapsed
17899
17900 \begin_layout Plain Layout
17901
17902 \backslash
17903 claimname
17904 \end_layout
17905
17906 \end_inset
17907
17908  and its use in 
17909 \begin_inset Flex Code
17910 status collapsed
17911
17912 \begin_layout Plain Layout
17913
17914 \backslash
17915 newtheorem
17916 \end_layout
17917
17918 \end_inset
17919
17920 .
17921  
17922 \end_layout
17923
17924 \begin_layout Standard
17925 The 
17926 \begin_inset Flex Code
17927 status collapsed
17928
17929 \begin_layout Plain Layout
17930 LangPreamble
17931 \end_layout
17932
17933 \end_inset
17934
17935  tag provides for internationalization based upon the overall language of
17936  the document.
17937  The contents of the tag will be included in the preamble, just as with
17938  the 
17939 \begin_inset Flex Code
17940 status collapsed
17941
17942 \begin_layout Plain Layout
17943 Preamble
17944 \end_layout
17945
17946 \end_inset
17947
17948  tag.
17949  What makes it special is the use of the 
17950 \begin_inset Quotes eld
17951 \end_inset
17952
17953 function
17954 \begin_inset Quotes erd
17955 \end_inset
17956
17957  
17958 \begin_inset Flex Code
17959 status collapsed
17960
17961 \begin_layout Plain Layout
17962 _()
17963 \end_layout
17964
17965 \end_inset
17966
17967 , which will be replaced, when \SpecialChar LyX
17968  produces \SpecialChar LaTeX
17969  output, with the translation of
17970  its argument into the document language.
17971 \end_layout
17972
17973 \begin_layout Standard
17974 The 
17975 \begin_inset Flex Code
17976 status collapsed
17977
17978 \begin_layout Plain Layout
17979 BabelPreamble
17980 \end_layout
17981
17982 \end_inset
17983
17984  tag is more complex, since it is meant to provide support for multi-language
17985  documents and so offers an interface to the 
17986 \begin_inset Flex Code
17987 status collapsed
17988
17989 \begin_layout Plain Layout
17990 babel
17991 \end_layout
17992
17993 \end_inset
17994
17995  package.
17996  Its contents will be added to the preamble once for each language that
17997  appears in the document.
17998  In this case, the argument to 
17999 \begin_inset Flex Code
18000 status collapsed
18001
18002 \begin_layout Plain Layout
18003 _()
18004 \end_layout
18005
18006 \end_inset
18007
18008  will be replaced with its translation into the language in question; the
18009  expression 
18010 \begin_inset Flex Code
18011 status collapsed
18012
18013 \begin_layout Plain Layout
18014 $$lang
18015 \end_layout
18016
18017 \end_inset
18018
18019  is replaced by the language name (as used by the babel package).
18020 \end_layout
18021
18022 \begin_layout Standard
18023 A German document that also included a French section would thus have the
18024  following in the preamble:
18025 \end_layout
18026
18027 \begin_layout LyX-Code
18028
18029 \backslash
18030 addto
18031 \backslash
18032 captionsfrench{
18033 \backslash
18034 renewcommand{
18035 \backslash
18036 claimname}{Affirmation}}
18037 \begin_inset Newline newline
18038 \end_inset
18039
18040
18041 \backslash
18042 addto
18043 \backslash
18044 captionsngerman{
18045 \backslash
18046 renewcommand{
18047 \backslash
18048 claimname}{Behauptung}}
18049 \begin_inset Newline newline
18050 \end_inset
18051
18052
18053 \backslash
18054 providecommand{
18055 \backslash
18056 claimname}{Behauptung}
18057 \end_layout
18058
18059 \begin_layout Standard
18060 \SpecialChar LaTeX
18061  and 
18062 \begin_inset Flex Code
18063 status collapsed
18064
18065 \begin_layout Plain Layout
18066 babel
18067 \end_layout
18068
18069 \end_inset
18070
18071  will then conspire to produce the correct text in the output.
18072 \end_layout
18073
18074 \begin_layout Standard
18075 One important point to note here is that the translations are provided by
18076  \SpecialChar LyX
18077  itself, through the file 
18078 \begin_inset Flex Code
18079 status collapsed
18080
18081 \begin_layout Plain Layout
18082 layouttranslations
18083 \end_layout
18084
18085 \end_inset
18086
18087 .
18088  This means, in effect, that 
18089 \begin_inset Flex Code
18090 status collapsed
18091
18092 \begin_layout Plain Layout
18093 LangPreamble
18094 \end_layout
18095
18096 \end_inset
18097
18098  and 
18099 \begin_inset Flex Code
18100 status collapsed
18101
18102 \begin_layout Plain Layout
18103 BabelPreamble
18104 \end_layout
18105
18106 \end_inset
18107
18108  are really only of use in layout files that are provided with \SpecialChar LyX
18109 , since text
18110  entered in user-created layout files will not be seen by \SpecialChar LyX
18111 's internationalizatio
18112 n routines unless the 
18113 \begin_inset Flex Code
18114 status collapsed
18115
18116 \begin_layout Plain Layout
18117 layouttranslations
18118 \end_layout
18119
18120 \end_inset
18121
18122  file is modified accordingly.
18123  That said, however, any layout created with the intention that it will
18124  be included with \SpecialChar LyX
18125  should use these tags where appropriate.
18126  Please note that the paragraph style translations provided by \SpecialChar LyX
18127  will never
18128  change with a minor update (e.
18129 \begin_inset space \thinspace{}
18130 \end_inset
18131
18132 g.
18133 \begin_inset space \space{}
18134 \end_inset
18135
18136 from version 2.1.x to 2.1.y).
18137  It is however quite likely that a major update (e.
18138 \begin_inset space \thinspace{}
18139 \end_inset
18140
18141 g.
18142 \begin_inset space \space{}
18143 \end_inset
18144
18145 from 2.0.x to 2.1.0) will introduce new translations or corrections.
18146 \end_layout
18147
18148 \begin_layout Subsection
18149 Floats
18150 \begin_inset CommandInset label
18151 LatexCommand label
18152 name "subsec:Floats"
18153
18154 \end_inset
18155
18156
18157 \end_layout
18158
18159 \begin_layout Standard
18160 It is necessary to define the floats (
18161 \begin_inset Flex Noun
18162 status collapsed
18163
18164 \begin_layout Plain Layout
18165 figure
18166 \end_layout
18167
18168 \end_inset
18169
18170
18171 \begin_inset Flex Noun
18172 status collapsed
18173
18174 \begin_layout Plain Layout
18175 table
18176 \end_layout
18177
18178 \end_inset
18179
18180 , \SpecialChar ldots
18181 ) in the text class itself.
18182  Standard floats are included in the file 
18183 \begin_inset Flex Code
18184 status collapsed
18185
18186 \begin_layout Plain Layout
18187 stdfloats.inc
18188 \end_layout
18189
18190 \end_inset
18191
18192 , so you may have to do no more than add
18193 \end_layout
18194
18195 \begin_layout LyX-Code
18196 Input stdfloats.inc
18197 \end_layout
18198
18199 \begin_layout Standard
18200 to your layout file.
18201  If you want to implement a text class that proposes some other float types
18202  (like the AGU class bundled with \SpecialChar LyX
18203 ), the information below will hopefully
18204  help you:
18205 \end_layout
18206
18207 \begin_layout Description
18208 \begin_inset Flex Code
18209 status collapsed
18210
18211 \begin_layout Plain Layout
18212 AllowedPlacement
18213 \end_layout
18214
18215 \end_inset
18216
18217  [
18218 \begin_inset Flex Code
18219 status collapsed
18220
18221 \begin_layout Plain Layout
18222 string
18223 \end_layout
18224
18225 \end_inset
18226
18227 =!htbpH] Allowed placement options for this float type.
18228  The value is a string of placement characters.
18229  Possible characters include: 
18230 \emph on
18231 h
18232 \emph default
18233  (
18234 \begin_inset Quotes eld
18235 \end_inset
18236
18237 here if possible
18238 \begin_inset Quotes erd
18239 \end_inset
18240
18241 ), 
18242 \emph on
18243 t
18244 \emph default
18245  (
18246 \begin_inset Quotes eld
18247 \end_inset
18248
18249 top of page
18250 \begin_inset Quotes erd
18251 \end_inset
18252
18253 ), 
18254 \emph on
18255 b
18256 \emph default
18257  (
18258 \begin_inset Quotes eld
18259 \end_inset
18260
18261 bottom of page
18262 \begin_inset Quotes erd
18263 \end_inset
18264
18265 ), 
18266 \emph on
18267 p
18268 \emph default
18269  (
18270 \begin_inset Quotes eld
18271 \end_inset
18272
18273 page of floats
18274 \begin_inset Quotes erd
18275 \end_inset
18276
18277 ), 
18278 \emph on
18279 H
18280 \emph default
18281  (
18282 \begin_inset Quotes eld
18283 \end_inset
18284
18285 here definitely
18286 \begin_inset Quotes erd
18287 \end_inset
18288
18289 ) and 
18290 \emph on
18291 !
18292 \emph default
18293  (
18294 \begin_inset Quotes eld
18295 \end_inset
18296
18297 ignore LaTeX rules
18298 \begin_inset Quotes erd
18299 \end_inset
18300
18301 ).
18302  The order of the characters in the string does not matter.
18303  If no placement options are allowed, use the string 
18304 \emph on
18305 none
18306 \emph default
18307 .
18308 \end_layout
18309
18310 \begin_layout Description
18311 \begin_inset Flex Code
18312 status collapsed
18313
18314 \begin_layout Plain Layout
18315 AllowsSideways
18316 \end_layout
18317
18318 \end_inset
18319
18320  [
18321 \begin_inset Flex Code
18322 status collapsed
18323
18324 \begin_layout Plain Layout
18325
18326 \emph off
18327 0
18328 \end_layout
18329
18330 \end_inset
18331
18332 ,
18333 \begin_inset space \thinspace{}
18334 \end_inset
18335
18336
18337 \emph on
18338
18339 \begin_inset Flex Code
18340 status collapsed
18341
18342 \begin_layout Plain Layout
18343
18344 \emph on
18345 1
18346 \end_layout
18347
18348 \end_inset
18349
18350
18351 \emph default
18352 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
18353 -package 
18354 \family typewriter
18355 rotfloat
18356 \family default
18357  (sidewaysfloat).
18358  Set to 
18359 \begin_inset Flex Code
18360 status collapsed
18361
18362 \begin_layout Plain Layout
18363 0
18364 \end_layout
18365
18366 \end_inset
18367
18368  if the float does not support this feature.
18369 \end_layout
18370
18371 \begin_layout Description
18372 \begin_inset Flex Code
18373 status collapsed
18374
18375 \begin_layout Plain Layout
18376 AllowsWide
18377 \end_layout
18378
18379 \end_inset
18380
18381  [
18382 \begin_inset Flex Code
18383 status collapsed
18384
18385 \begin_layout Plain Layout
18386
18387 \emph off
18388 0
18389 \end_layout
18390
18391 \end_inset
18392
18393 ,
18394 \begin_inset space \thinspace{}
18395 \end_inset
18396
18397
18398 \emph on
18399
18400 \begin_inset Flex Code
18401 status collapsed
18402
18403 \begin_layout Plain Layout
18404
18405 \emph on
18406 1
18407 \end_layout
18408
18409 \end_inset
18410
18411
18412 \emph default
18413 ] Defines whether the float has a starred variant that spans columns in
18414  a two column paragraph.
18415  Set to 
18416 \begin_inset Flex Code
18417 status collapsed
18418
18419 \begin_layout Plain Layout
18420 0
18421 \end_layout
18422
18423 \end_inset
18424
18425  if the float does not support this feature.
18426 \end_layout
18427
18428 \begin_layout Description
18429 \begin_inset Flex Code
18430 status collapsed
18431
18432 \begin_layout Plain Layout
18433 Extension
18434 \end_layout
18435
18436 \end_inset
18437
18438  [
18439 \begin_inset Flex Code
18440 status collapsed
18441
18442 \begin_layout Plain Layout
18443 string
18444 \end_layout
18445
18446 \end_inset
18447
18448 =
18449 \begin_inset Quotes erd
18450 \end_inset
18451
18452
18453 \begin_inset Quotes erd
18454 \end_inset
18455
18456 ] The file name extension of an auxiliary file for the list of figures (or
18457  whatever).
18458  \SpecialChar LaTeX
18459  writes the captions to this file.
18460 \end_layout
18461
18462 \begin_layout Description
18463 \begin_inset Flex Code
18464 status collapsed
18465
18466 \begin_layout Plain Layout
18467 GuiName
18468 \end_layout
18469
18470 \end_inset
18471
18472  [
18473 \begin_inset Flex Code
18474 status collapsed
18475
18476 \begin_layout Plain Layout
18477 string
18478 \end_layout
18479
18480 \end_inset
18481
18482 =
18483 \begin_inset Quotes erd
18484 \end_inset
18485
18486
18487 \begin_inset Quotes erd
18488 \end_inset
18489
18490 ] The string that will be used in the menus and also for the caption.
18491  This is translated to the current language if babel is used.
18492 \end_layout
18493
18494 \begin_layout Description
18495 \begin_inset Flex Code
18496 status collapsed
18497
18498 \begin_layout Plain Layout
18499 HTML*
18500 \end_layout
18501
18502 \end_inset
18503
18504  These tags control the XHTML output.
18505  See 
18506 \begin_inset CommandInset ref
18507 LatexCommand ref
18508 reference "sec:Tags-for-XHTML"
18509
18510 \end_inset
18511
18512 .
18513 \end_layout
18514
18515 \begin_layout Description
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520 IsPredefined
18521 \end_layout
18522
18523 \end_inset
18524
18525  [
18526 \emph on
18527
18528 \begin_inset Flex Code
18529 status collapsed
18530
18531 \begin_layout Plain Layout
18532 0
18533 \end_layout
18534
18535 \end_inset
18536
18537
18538 \emph default
18539 ,
18540 \begin_inset space \thinspace{}
18541 \end_inset
18542
18543
18544 \begin_inset Flex Code
18545 status collapsed
18546
18547 \begin_layout Plain Layout
18548 1
18549 \end_layout
18550
18551 \end_inset
18552
18553 ] Indicates whether the float is already defined in the document class or
18554  if instead the \SpecialChar LaTeX
18555  package 
18556 \begin_inset Flex Code
18557 status collapsed
18558
18559 \begin_layout Plain Layout
18560 float
18561 \end_layout
18562
18563 \end_inset
18564
18565  needs to be loaded to define it on-the-fly.
18566  The default is 
18567 \begin_inset Flex Code
18568 status collapsed
18569
18570 \begin_layout Plain Layout
18571 0
18572 \end_layout
18573
18574 \end_inset
18575
18576 , which means: 
18577 \begin_inset Flex Code
18578 status collapsed
18579
18580 \begin_layout Plain Layout
18581 float
18582 \end_layout
18583
18584 \end_inset
18585
18586  is used.
18587  It should be set to 
18588 \begin_inset Flex Code
18589 status collapsed
18590
18591 \begin_layout Plain Layout
18592 1
18593 \end_layout
18594
18595 \end_inset
18596
18597  if the float is already defined by the \SpecialChar LaTeX
18598  document class.
18599 \end_layout
18600
18601 \begin_layout Description
18602 \begin_inset Flex Code
18603 status collapsed
18604
18605 \begin_layout Plain Layout
18606 ListCommand
18607 \end_layout
18608
18609 \end_inset
18610
18611  [
18612 \begin_inset Flex Code
18613 status collapsed
18614
18615 \begin_layout Plain Layout
18616 string
18617 \end_layout
18618
18619 \end_inset
18620
18621 =
18622 \begin_inset Quotes erd
18623 \end_inset
18624
18625
18626 \begin_inset Quotes erd
18627 \end_inset
18628
18629 ] The command used to generate a list of floats of this type; the leading
18630  `
18631 \backslash
18632 ' must be omitted.
18633  This 
18634 \emph on
18635 must
18636 \emph default
18637  be given if 
18638 \begin_inset Flex Code
18639 status collapsed
18640
18641 \begin_layout Plain Layout
18642 UsesFloatPkg
18643 \end_layout
18644
18645 \end_inset
18646
18647  is false, since there is no standard way to generate this command.
18648  It is ignored if 
18649 \begin_inset Flex Code
18650 status collapsed
18651
18652 \begin_layout Plain Layout
18653 UsesFloatPkg
18654 \end_layout
18655
18656 \end_inset
18657
18658  is true, since in that case there is a standard way to define the command.
18659 \end_layout
18660
18661 \begin_layout Description
18662 \begin_inset Flex Code
18663 status collapsed
18664
18665 \begin_layout Plain Layout
18666 ListName
18667 \end_layout
18668
18669 \end_inset
18670
18671  [
18672 \begin_inset Flex Code
18673 status collapsed
18674
18675 \begin_layout Plain Layout
18676 string
18677 \end_layout
18678
18679 \end_inset
18680
18681 =
18682 \begin_inset Quotes erd
18683 \end_inset
18684
18685
18686 \begin_inset Quotes erd
18687 \end_inset
18688
18689 ] A title for a list of floats of this kind (list of figures, tables, or
18690  whatever).
18691  It is used for the screen label within \SpecialChar LyX
18692 , it is used by \SpecialChar LaTeX
18693  for the title and
18694  it is used as the title in the XHTML output.
18695  It will be translated to the document language.
18696 \end_layout
18697
18698 \begin_layout Description
18699 \begin_inset Flex Code
18700 status collapsed
18701
18702 \begin_layout Plain Layout
18703 NumberWithin
18704 \end_layout
18705
18706 \end_inset
18707
18708  [
18709 \begin_inset Flex Code
18710 status collapsed
18711
18712 \begin_layout Plain Layout
18713 string
18714 \end_layout
18715
18716 \end_inset
18717
18718 =
18719 \begin_inset Quotes erd
18720 \end_inset
18721
18722
18723 \begin_inset Quotes erd
18724 \end_inset
18725
18726 ] This (optional) argument determines whether floats of this class will
18727  be numbered within some sectional unit of the document.
18728  For example, if 
18729 \begin_inset Flex Code
18730 status collapsed
18731
18732 \begin_layout Plain Layout
18733 NumberWithin
18734 \end_layout
18735
18736 \end_inset
18737
18738  is set to 
18739 \begin_inset Quotes eld
18740 \end_inset
18741
18742
18743 \begin_inset Flex Code
18744 status collapsed
18745
18746 \begin_layout Plain Layout
18747 chapter
18748 \end_layout
18749
18750 \end_inset
18751
18752
18753 \begin_inset Quotes erd
18754 \end_inset
18755
18756 , the floats will be numbered within chapters.
18757  
18758 \end_layout
18759
18760 \begin_layout Description
18761 \begin_inset Flex Code
18762 status collapsed
18763
18764 \begin_layout Plain Layout
18765 Placement
18766 \end_layout
18767
18768 \end_inset
18769
18770  [
18771 \begin_inset Flex Code
18772 status collapsed
18773
18774 \begin_layout Plain Layout
18775 string
18776 \end_layout
18777
18778 \end_inset
18779
18780 =
18781 \begin_inset Quotes erd
18782 \end_inset
18783
18784
18785 \begin_inset Quotes erd
18786 \end_inset
18787
18788 ] The default placement for the given class of floats.
18789  The string should be as in standard \SpecialChar LaTeX
18790
18791 \begin_inset Flex Code
18792 status collapsed
18793
18794 \begin_layout Plain Layout
18795 t
18796 \end_layout
18797
18798 \end_inset
18799
18800
18801 \begin_inset Flex Code
18802 status collapsed
18803
18804 \begin_layout Plain Layout
18805 b
18806 \end_layout
18807
18808 \end_inset
18809
18810
18811 \begin_inset Flex Code
18812 status collapsed
18813
18814 \begin_layout Plain Layout
18815 p
18816 \end_layout
18817
18818 \end_inset
18819
18820  and 
18821 \begin_inset Flex Code
18822 status collapsed
18823
18824 \begin_layout Plain Layout
18825 h
18826 \end_layout
18827
18828 \end_inset
18829
18830  for top, bottom, page, and here, respectively.
18831 \begin_inset Foot
18832 status collapsed
18833
18834 \begin_layout Plain Layout
18835 Note that the order of these letters in the string is irrelevant, like in
18836  \SpecialChar LaTeX
18837 .
18838 \end_layout
18839
18840 \end_inset
18841
18842  On top of that there is a new type, 
18843 \begin_inset Flex Code
18844 status collapsed
18845
18846 \begin_layout Plain Layout
18847 H
18848 \end_layout
18849
18850 \end_inset
18851
18852 , which does not really correspond to a float, since it means: put it 
18853 \begin_inset Quotes eld
18854 \end_inset
18855
18856 here
18857 \begin_inset Quotes erd
18858 \end_inset
18859
18860  and nowhere else.
18861  Note however that the 
18862 \begin_inset Flex Code
18863 status collapsed
18864
18865 \begin_layout Plain Layout
18866 H
18867 \end_layout
18868
18869 \end_inset
18870
18871  specifier is special and, because of implementation details, cannot be
18872  used in non-built in float types.
18873  If you do not understand what this means, just use 
18874 \begin_inset Quotes eld
18875 \end_inset
18876
18877
18878 \begin_inset Flex Code
18879 status collapsed
18880
18881 \begin_layout Plain Layout
18882 tbp
18883 \end_layout
18884
18885 \end_inset
18886
18887
18888 \begin_inset Quotes erd
18889 \end_inset
18890
18891 .
18892 \end_layout
18893
18894 \begin_layout Description
18895 \begin_inset Flex Code
18896 status collapsed
18897
18898 \begin_layout Plain Layout
18899 RefPrefix
18900 \end_layout
18901
18902 \end_inset
18903
18904  [
18905 \begin_inset Flex Code
18906 status collapsed
18907
18908 \begin_layout Plain Layout
18909 string
18910 \end_layout
18911
18912 \end_inset
18913
18914 ] The prefix to use when creating labels referring to floats of this type.
18915  This allows the use of formatted references.
18916  Note that you can remove any 
18917 \begin_inset Flex Code
18918 status collapsed
18919
18920 \begin_layout Plain Layout
18921 RefPrefix
18922 \end_layout
18923
18924 \end_inset
18925
18926  set by a copied style by using the special value 
18927 \begin_inset Quotes eld
18928 \end_inset
18929
18930 OFF
18931 \begin_inset Quotes erd
18932 \end_inset
18933
18934 , which must be all caps.
18935 \change_inserted -712698321 1565605014
18936
18937 \end_layout
18938
18939 \begin_layout Description
18940
18941 \change_inserted -712698321 1565605014
18942 \begin_inset Flex Code
18943 status collapsed
18944
18945 \begin_layout Plain Layout
18946
18947 \change_inserted -712698321 1565605014
18948 Requires
18949 \change_unchanged
18950
18951 \end_layout
18952
18953 \end_inset
18954
18955  [
18956 \begin_inset Flex Code
18957 status collapsed
18958
18959 \begin_layout Plain Layout
18960
18961 \change_inserted -712698321 1565605014
18962 string
18963 \change_unchanged
18964
18965 \end_layout
18966
18967 \end_inset
18968
18969 ] As with paragraph styles, see 
18970 \begin_inset CommandInset ref
18971 LatexCommand ref
18972 reference "subsec:Paragraph-Styles"
18973
18974 \end_inset
18975
18976 .
18977 \change_unchanged
18978
18979 \end_layout
18980
18981 \begin_layout Description
18982 \begin_inset Flex Code
18983 status collapsed
18984
18985 \begin_layout Plain Layout
18986 Style
18987 \end_layout
18988
18989 \end_inset
18990
18991  [
18992 \begin_inset Flex Code
18993 status collapsed
18994
18995 \begin_layout Plain Layout
18996 string
18997 \end_layout
18998
18999 \end_inset
19000
19001 =
19002 \begin_inset Quotes erd
19003 \end_inset
19004
19005
19006 \begin_inset Quotes erd
19007 \end_inset
19008
19009 ] The style used when defining the float using 
19010 \begin_inset Flex Code
19011 status collapsed
19012
19013 \begin_layout Plain Layout
19014
19015 \backslash
19016 newfloat
19017 \end_layout
19018
19019 \end_inset
19020
19021 .
19022 \end_layout
19023
19024 \begin_layout Description
19025 \begin_inset Flex Code
19026 status collapsed
19027
19028 \begin_layout Plain Layout
19029 Type
19030 \end_layout
19031
19032 \end_inset
19033
19034  [
19035 \begin_inset Flex Code
19036 status collapsed
19037
19038 \begin_layout Plain Layout
19039 string
19040 \end_layout
19041
19042 \end_inset
19043
19044 =
19045 \begin_inset Quotes erd
19046 \end_inset
19047
19048
19049 \begin_inset Quotes erd
19050 \end_inset
19051
19052 ] The 
19053 \begin_inset Quotes eld
19054 \end_inset
19055
19056 type
19057 \begin_inset Quotes erd
19058 \end_inset
19059
19060  of the new class of floats, like program or algorithm.
19061  After the appropriate 
19062 \begin_inset Flex Code
19063 status collapsed
19064
19065 \begin_layout Plain Layout
19066
19067 \backslash
19068 newfloat
19069 \end_layout
19070
19071 \end_inset
19072
19073 , commands such as 
19074 \begin_inset Flex Code
19075 status collapsed
19076
19077 \begin_layout Plain Layout
19078
19079 \backslash
19080 begin{program}
19081 \end_layout
19082
19083 \end_inset
19084
19085  or 
19086 \begin_inset Flex Code
19087 status collapsed
19088
19089 \begin_layout Plain Layout
19090
19091 \backslash
19092 end{algorithm*}
19093 \end_layout
19094
19095 \end_inset
19096
19097  will be available.
19098 \end_layout
19099
19100 \begin_layout Description
19101 \begin_inset Flex Code
19102 status collapsed
19103
19104 \begin_layout Plain Layout
19105 UsesFloatPkg
19106 \end_layout
19107
19108 \end_inset
19109
19110  [
19111 \begin_inset Flex Code
19112 status collapsed
19113
19114 \begin_layout Plain Layout
19115 0
19116 \end_layout
19117
19118 \end_inset
19119
19120 ,
19121 \begin_inset space \thinspace{}
19122 \end_inset
19123
19124
19125 \begin_inset Flex Code
19126 status collapsed
19127
19128 \begin_layout Plain Layout
19129
19130 \emph on
19131 1
19132 \end_layout
19133
19134 \end_inset
19135
19136 ] Specifies whether this float is defined using the \SpecialChar LaTeX
19137  package 
19138 \begin_inset Flex Code
19139 status collapsed
19140
19141 \begin_layout Plain Layout
19142 float
19143 \end_layout
19144
19145 \end_inset
19146
19147 , either by the class file, another package or on-the-fly by \SpecialChar LyX
19148  itself.
19149 \end_layout
19150
19151 \begin_layout Standard
19152 Note that defining a float with type 
19153 \begin_inset Flex Code
19154 status collapsed
19155
19156 \begin_layout Plain Layout
19157
19158 \emph on
19159 type
19160 \end_layout
19161
19162 \end_inset
19163
19164  automatically defines the corresponding counter with name 
19165 \begin_inset Flex Code
19166 status collapsed
19167
19168 \begin_layout Plain Layout
19169
19170 \emph on
19171 type
19172 \end_layout
19173
19174 \end_inset
19175
19176 .
19177 \end_layout
19178
19179 \begin_layout Subsection
19180 Flex insets and InsetLayout
19181 \begin_inset CommandInset label
19182 LatexCommand label
19183 name "subsec:Flex-insets-and"
19184
19185 \end_inset
19186
19187
19188 \end_layout
19189
19190 \begin_layout Standard
19191 Flex insets come in 
19192 \change_deleted 5863208 1594239511
19193 three
19194 \change_inserted 5863208 1594239512
19195 two
19196 \change_unchanged
19197  different kinds: 
19198 \end_layout
19199
19200 \begin_layout Itemize
19201 character style (
19202 \begin_inset Flex Code
19203 status collapsed
19204
19205 \begin_layout Plain Layout
19206 CharStyle
19207 \end_layout
19208
19209 \end_inset
19210
19211 ): These define semantic markup corresponding to such \SpecialChar LaTeX
19212  commands as 
19213 \begin_inset Flex Code
19214 status collapsed
19215
19216 \begin_layout Plain Layout
19217
19218 \backslash
19219 noun
19220 \end_layout
19221
19222 \end_inset
19223
19224  and 
19225 \begin_inset Flex Code
19226 status collapsed
19227
19228 \begin_layout Plain Layout
19229
19230 \backslash
19231 code
19232 \end_layout
19233
19234 \end_inset
19235
19236 .
19237 \end_layout
19238
19239 \begin_layout Itemize
19240 user custom (
19241 \begin_inset Flex Code
19242 status collapsed
19243
19244 \begin_layout Plain Layout
19245 Custom
19246 \end_layout
19247
19248 \end_inset
19249
19250 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
19251  code,
19252  footnote, and the like.
19253  An obvious example is an endnote inset, which is defined in the 
19254 \begin_inset Flex Code
19255 status collapsed
19256
19257 \begin_layout Plain Layout
19258 endnote
19259 \end_layout
19260
19261 \end_inset
19262
19263  module.
19264 \end_layout
19265
19266 \begin_layout Itemize
19267
19268 \change_deleted 5863208 1594239528
19269 XML elements (
19270 \begin_inset Flex Code
19271 status collapsed
19272
19273 \begin_layout Plain Layout
19274 Element
19275 \end_layout
19276
19277 \end_inset
19278
19279 ): For use with DocBook classes.
19280 \change_unchanged
19281
19282 \end_layout
19283
19284 \begin_layout Standard
19285 Flex insets are defined using the 
19286 \begin_inset Flex Code
19287 status collapsed
19288
19289 \begin_layout Plain Layout
19290 InsetLayout
19291 \end_layout
19292
19293 \end_inset
19294
19295  tag, which shall be explained in a moment.
19296 \end_layout
19297
19298 \begin_layout Standard
19299 The 
19300 \begin_inset Flex Code
19301 status collapsed
19302
19303 \begin_layout Plain Layout
19304 InsetLayout
19305 \end_layout
19306
19307 \end_inset
19308
19309  tag also serves another function: It can be used to customize the general
19310  layout of many different types of insets.
19311  Currently, 
19312 \begin_inset Flex Code
19313 status collapsed
19314
19315 \begin_layout Plain Layout
19316 InsetLayout
19317 \end_layout
19318
19319 \end_inset
19320
19321  can be used to customize the layout parameters for footnotes, marginal
19322  notes, note insets, \SpecialChar TeX
19323  code (ERT) insets, branches, listings, indexes, boxes,
19324  tables, algorithms, URLs, and captions, as well as to define Flex insets.
19325 \end_layout
19326
19327 \begin_layout Standard
19328 The 
19329 \begin_inset Flex Code
19330 status collapsed
19331
19332 \begin_layout Plain Layout
19333 InsetLayout
19334 \end_layout
19335
19336 \end_inset
19337
19338  definition must begin with a line of the form:
19339 \end_layout
19340
19341 \begin_layout LyX-Code
19342 InsetLayout <type>
19343 \end_layout
19344
19345 \begin_layout Standard
19346 Here 
19347 \begin_inset Flex Code
19348 status collapsed
19349
19350 \begin_layout Plain Layout
19351 <Type>
19352 \end_layout
19353
19354 \end_inset
19355
19356  indicates the inset whose layout is being defined, and here there are four
19357  cases.
19358 \end_layout
19359
19360 \begin_layout Enumerate
19361 The layout for a pre-existing inset is being modified.
19362  In this case, can be 
19363 \begin_inset Flex Code
19364 status collapsed
19365
19366 \begin_layout Plain Layout
19367 <Type>
19368 \end_layout
19369
19370 \end_inset
19371
19372  any one of the following: 
19373 \begin_inset Flex Code
19374 status collapsed
19375
19376 \begin_layout Plain Layout
19377 Algorithm
19378 \end_layout
19379
19380 \end_inset
19381
19382
19383 \begin_inset Flex Code
19384 status collapsed
19385
19386 \begin_layout Plain Layout
19387 Branch
19388 \end_layout
19389
19390 \end_inset
19391
19392
19393 \begin_inset Flex Code
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 Box
19398 \end_layout
19399
19400 \end_inset
19401
19402
19403 \begin_inset Flex Code
19404 status collapsed
19405
19406 \begin_layout Plain Layout
19407 Box:shaded
19408 \end_layout
19409
19410 \end_inset
19411
19412
19413 \begin_inset Flex Code
19414 status collapsed
19415
19416 \begin_layout Plain Layout
19417 Caption:Standard
19418 \end_layout
19419
19420 \end_inset
19421
19422
19423 \begin_inset Flex Code
19424 status collapsed
19425
19426 \begin_layout Plain Layout
19427 ERT
19428 \end_layout
19429
19430 \end_inset
19431
19432
19433 \begin_inset Flex Code
19434 status collapsed
19435
19436 \begin_layout Plain Layout
19437 Figure
19438 \end_layout
19439
19440 \end_inset
19441
19442
19443 \begin_inset Flex Code
19444 status collapsed
19445
19446 \begin_layout Plain Layout
19447 Foot
19448 \end_layout
19449
19450 \end_inset
19451
19452
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 Index
19458 \end_layout
19459
19460 \end_inset
19461
19462
19463 \begin_inset Flex Code
19464 status collapsed
19465
19466 \begin_layout Plain Layout
19467 Info
19468 \end_layout
19469
19470 \end_inset
19471
19472
19473 \begin_inset Flex Code
19474 status collapsed
19475
19476 \begin_layout Plain Layout
19477 Info:menu
19478 \end_layout
19479
19480 \end_inset
19481
19482
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 Info:shortcut
19488 \end_layout
19489
19490 \end_inset
19491
19492
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497 Info:shortcuts
19498 \end_layout
19499
19500 \end_inset
19501
19502
19503 \begin_inset Flex Code
19504 status collapsed
19505
19506 \begin_layout Plain Layout
19507 Listings
19508 \end_layout
19509
19510 \end_inset
19511
19512
19513 \begin_inset Flex Code
19514 status collapsed
19515
19516 \begin_layout Plain Layout
19517 Marginal
19518 \end_layout
19519
19520 \end_inset
19521
19522
19523 \begin_inset Flex Code
19524 status collapsed
19525
19526 \begin_layout Plain Layout
19527 Note:Comment
19528 \end_layout
19529
19530 \end_inset
19531
19532
19533 \begin_inset Flex Code
19534 status collapsed
19535
19536 \begin_layout Plain Layout
19537 Note:Note
19538 \end_layout
19539
19540 \end_inset
19541
19542
19543 \begin_inset Flex Code
19544 status collapsed
19545
19546 \begin_layout Plain Layout
19547 Note:Greyedout
19548 \end_layout
19549
19550 \end_inset
19551
19552
19553 \begin_inset Flex Code
19554 status collapsed
19555
19556 \begin_layout Plain Layout
19557 Table
19558 \end_layout
19559
19560 \end_inset
19561
19562 , or 
19563 \begin_inset Flex Code
19564 status collapsed
19565
19566 \begin_layout Plain Layout
19567 URL
19568 \end_layout
19569
19570 \end_inset
19571
19572 .
19573 \end_layout
19574
19575 \begin_layout Enumerate
19576 The layout for a Flex inset is being defined.
19577  In this case, 
19578 \begin_inset Flex Code
19579 status collapsed
19580
19581 \begin_layout Plain Layout
19582 <Type>
19583 \end_layout
19584
19585 \end_inset
19586
19587  must be of the form 
19588 \begin_inset Quotes eld
19589 \end_inset
19590
19591
19592 \begin_inset Flex Code
19593 status collapsed
19594
19595 \begin_layout Plain Layout
19596 Flex:<name>
19597 \end_layout
19598
19599 \end_inset
19600
19601
19602 \begin_inset Quotes erd
19603 \end_inset
19604
19605 , where 
19606 \begin_inset Flex Code
19607 status collapsed
19608
19609 \begin_layout Plain Layout
19610 name
19611 \end_layout
19612
19613 \end_inset
19614
19615  may be be any valid identifier not used by a pre-existing Flex inset.
19616  The identifier may include spaces, but in that case the whole thing must
19617  be wrapped in quotes.
19618  Note that the definition of a flex inset 
19619 \emph on
19620 must 
19621 \emph default
19622 also include a 
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627 LyXType
19628 \end_layout
19629
19630 \end_inset
19631
19632  entry, declaring which type of inset it defines.
19633 \end_layout
19634
19635 \begin_layout Enumerate
19636 The layout for user specific branch is being defined.
19637  In this case, 
19638 \begin_inset Flex Code
19639 status collapsed
19640
19641 \begin_layout Plain Layout
19642 <Type>
19643 \end_layout
19644
19645 \end_inset
19646
19647  must be of the form 
19648 \begin_inset Quotes eld
19649 \end_inset
19650
19651
19652 \begin_inset Flex Code
19653 status collapsed
19654
19655 \begin_layout Plain Layout
19656 Branch:<name>
19657 \end_layout
19658
19659 \end_inset
19660
19661
19662 \begin_inset Quotes erd
19663 \end_inset
19664
19665 , where 
19666 \begin_inset Flex Code
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670 name
19671 \end_layout
19672
19673 \end_inset
19674
19675  may be be any valid identifier of branch defined in user's document.
19676  The identifier may include spaces, but in that case the whole thing must
19677  be wrapped in quotes.
19678  The main purpose of this feature is to allow \SpecialChar LaTeX
19679  wrapping around specific
19680  branches as user needs.
19681 \end_layout
19682
19683 \begin_layout Enumerate
19684 The layout of a user (or class) specific caption is being defined.
19685  In this case, 
19686 \begin_inset Flex Code
19687 status collapsed
19688
19689 \begin_layout Plain Layout
19690 <Type>
19691 \end_layout
19692
19693 \end_inset
19694
19695  must be of the form 
19696 \begin_inset Quotes eld
19697 \end_inset
19698
19699
19700 \begin_inset Flex Code
19701 status collapsed
19702
19703 \begin_layout Plain Layout
19704 Caption:<name>
19705 \end_layout
19706
19707 \end_inset
19708
19709
19710 \begin_inset Quotes erd
19711 \end_inset
19712
19713 , where 
19714 \begin_inset Flex Code
19715 status collapsed
19716
19717 \begin_layout Plain Layout
19718 name
19719 \end_layout
19720
19721 \end_inset
19722
19723  specifies the name of the caption as it appears in the menu.
19724  Have a look at the standard caption (
19725 \begin_inset Flex Code
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729 Caption:Standard
19730 \end_layout
19731
19732 \end_inset
19733
19734 ), the specific captions of the KOMA-Script classes (
19735 \begin_inset Flex Code
19736 status collapsed
19737
19738 \begin_layout Plain Layout
19739 Caption:Above
19740 \end_layout
19741
19742 \end_inset
19743
19744
19745 \begin_inset Flex Code
19746 status collapsed
19747
19748 \begin_layout Plain Layout
19749 Caption:Below
19750 \end_layout
19751
19752 \end_inset
19753
19754 ) or the module 
19755 \family sans
19756 Multilingual
19757 \begin_inset space ~
19758 \end_inset
19759
19760 Captions
19761 \begin_inset Newline linebreak
19762 \end_inset
19763
19764
19765 \family default
19766 (
19767 \begin_inset Flex Code
19768 status collapsed
19769
19770 \begin_layout Plain Layout
19771 Caption:Bicaption
19772 \end_layout
19773
19774 \end_inset
19775
19776 ) for applications.
19777 \end_layout
19778
19779 \begin_layout Standard
19780 The 
19781 \begin_inset Flex Code
19782 status collapsed
19783
19784 \begin_layout Plain Layout
19785 InsetLayout
19786 \end_layout
19787
19788 \end_inset
19789
19790  definition can contain the following entries:
19791 \end_layout
19792
19793 \begin_layout Description
19794 \begin_inset Flex Code
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 AddToToc
19799 \end_layout
19800
19801 \end_inset
19802
19803  [
19804 \begin_inset Flex Code
19805 status collapsed
19806
19807 \begin_layout Plain Layout
19808 string
19809 \end_layout
19810
19811 \end_inset
19812
19813 =""] This inset will appear in the table of contents of the given type.
19814  An empty string disables.
19815  See also the OutlinerName and the IsTocCaption commands.
19816  This is only implemented for Flex insets.
19817  Default: disabled.
19818 \end_layout
19819
19820 \begin_layout Description
19821 \begin_inset Flex Code
19822 status collapsed
19823
19824 \begin_layout Plain Layout
19825 Argument
19826 \end_layout
19827
19828 \end_inset
19829
19830  [
19831 \begin_inset Flex Code
19832 status collapsed
19833
19834 \begin_layout Plain Layout
19835 int
19836 \end_layout
19837
19838 \end_inset
19839
19840 ] Defines argument number of a command\SpecialChar breakableslash
19841 environment associated with the current
19842  layout.
19843  The definition must end with 
19844 \begin_inset Flex Code
19845 status collapsed
19846
19847 \begin_layout Plain Layout
19848 EndArgument
19849 \end_layout
19850
19851 \end_inset
19852
19853 .
19854  See 
19855 \begin_inset CommandInset ref
19856 LatexCommand ref
19857 reference "subsec:Paragraph-Styles"
19858
19859 \end_inset
19860
19861  for details.
19862 \end_layout
19863
19864 \begin_layout Description
19865 \begin_inset Flex Code
19866 status collapsed
19867
19868 \begin_layout Plain Layout
19869 BabelPreamble
19870 \end_layout
19871
19872 \end_inset
19873
19874  Preamble for changing language commands; see 
19875 \begin_inset CommandInset ref
19876 LatexCommand ref
19877 reference "subsec:I18n"
19878
19879 \end_inset
19880
19881 .
19882 \end_layout
19883
19884 \begin_layout Description
19885 \begin_inset Flex Code
19886 status collapsed
19887
19888 \begin_layout Plain Layout
19889 BgColor
19890 \end_layout
19891
19892 \end_inset
19893
19894  [
19895 \begin_inset Flex Code
19896 status collapsed
19897
19898 \begin_layout Plain Layout
19899 <name>
19900 \end_layout
19901
19902 \end_inset
19903
19904 ] The color for the inset's background.
19905  See 
19906 \begin_inset CommandInset ref
19907 LatexCommand ref
19908 reference "chap:Names-of-colors"
19909
19910 \end_inset
19911
19912  for a list of the available color names.
19913 \end_layout
19914
19915 \begin_layout Description
19916 \begin_inset Flex Code
19917 status collapsed
19918
19919 \begin_layout Plain Layout
19920 ContentAsLabel
19921 \end_layout
19922
19923 \end_inset
19924
19925  [
19926 \begin_inset Flex Code
19927 status collapsed
19928
19929 \begin_layout Plain Layout
19930
19931 \emph on
19932 0
19933 \end_layout
19934
19935 \end_inset
19936
19937 ,
19938 \begin_inset space \thinspace{}
19939 \end_inset
19940
19941
19942 \begin_inset Flex Code
19943 status collapsed
19944
19945 \begin_layout Plain Layout
19946 1
19947 \end_layout
19948
19949 \end_inset
19950
19951 ] Whether to use the content of the inset as the label, when the inset is
19952  closed.
19953  Default is false.
19954 \end_layout
19955
19956 \begin_layout Description
19957 \begin_inset Flex Code
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961 CopyStyle
19962 \end_layout
19963
19964 \end_inset
19965
19966  [
19967 \begin_inset Flex Code
19968 status collapsed
19969
19970 \begin_layout Plain Layout
19971 <type>
19972 \end_layout
19973
19974 \end_inset
19975
19976 ] As with paragraph styles, see 
19977 \begin_inset CommandInset ref
19978 LatexCommand ref
19979 reference "subsec:Paragraph-Styles"
19980
19981 \end_inset
19982
19983 .
19984  Note that you need to specify the complete type, e.
19985 \begin_inset space \thinspace{}
19986 \end_inset
19987
19988 g.
19989 \begin_inset space ~
19990 \end_inset
19991
19992
19993 \begin_inset Flex Code
19994 status collapsed
19995
19996 \begin_layout Plain Layout
19997 CopyStyle Flex:<name>
19998 \end_layout
19999
20000 \end_inset
20001
20002 .
20003 \end_layout
20004
20005 \begin_layout Description
20006 \begin_inset Flex Code
20007 status collapsed
20008
20009 \begin_layout Plain Layout
20010 CustomPars
20011 \end_layout
20012
20013 \end_inset
20014
20015  [
20016 \begin_inset Flex Code
20017 status collapsed
20018
20019 \begin_layout Plain Layout
20020
20021 \emph on
20022 0
20023 \end_layout
20024
20025 \end_inset
20026
20027 ,
20028 \begin_inset space \thinspace{}
20029 \end_inset
20030
20031
20032 \begin_inset Flex Code
20033 status collapsed
20034
20035 \begin_layout Plain Layout
20036 1
20037 \end_layout
20038
20039 \end_inset
20040
20041 ] Indicates whether the user may employ the Paragraph Settings dialog to
20042  customize the paragraph.
20043 \end_layout
20044
20045 \begin_layout Description
20046 \begin_inset Flex Code
20047 status collapsed
20048
20049 \begin_layout Plain Layout
20050 Decoration
20051 \end_layout
20052
20053 \end_inset
20054
20055  can be 
20056 \begin_inset Flex Code
20057 status collapsed
20058
20059 \begin_layout Plain Layout
20060 Classic
20061 \end_layout
20062
20063 \end_inset
20064
20065
20066 \begin_inset Flex Code
20067 status collapsed
20068
20069 \begin_layout Plain Layout
20070 Minimalistic
20071 \end_layout
20072
20073 \end_inset
20074
20075 , or 
20076 \begin_inset Flex Code
20077 status collapsed
20078
20079 \begin_layout Plain Layout
20080 Conglomerate
20081 \end_layout
20082
20083 \end_inset
20084
20085 , describing the rendering style used for the inset's frame and buttons.
20086  Footnotes generally use 
20087 \begin_inset Flex Code
20088 status collapsed
20089
20090 \begin_layout Plain Layout
20091 Classic
20092 \end_layout
20093
20094 \end_inset
20095
20096 , ERT insets generally 
20097 \begin_inset Flex Code
20098 status collapsed
20099
20100 \begin_layout Plain Layout
20101 Minimalistic
20102 \end_layout
20103
20104 \end_inset
20105
20106 , and character styles 
20107 \begin_inset Flex Code
20108 status collapsed
20109
20110 \begin_layout Plain Layout
20111 Conglomerate
20112 \end_layout
20113
20114 \end_inset
20115
20116 .
20117 \end_layout
20118
20119 \begin_layout Description
20120 \begin_inset Flex Code
20121 status collapsed
20122
20123 \begin_layout Plain Layout
20124 Display
20125 \end_layout
20126
20127 \end_inset
20128
20129  [
20130 \begin_inset Flex Code
20131 status collapsed
20132
20133 \begin_layout Plain Layout
20134 0
20135 \end_layout
20136
20137 \end_inset
20138
20139 ,
20140 \emph on
20141
20142 \begin_inset space \thinspace{}
20143 \end_inset
20144
20145
20146 \emph default
20147
20148 \begin_inset Flex Code
20149 status collapsed
20150
20151 \begin_layout Plain Layout
20152
20153 \emph on
20154 1
20155 \end_layout
20156
20157 \end_inset
20158
20159 ] Only useful if 
20160 \begin_inset Flex Code
20161 status collapsed
20162
20163 \begin_layout Plain Layout
20164 LatexType
20165 \end_layout
20166
20167 \end_inset
20168
20169  is 
20170 \begin_inset Flex Code
20171 status collapsed
20172
20173 \begin_layout Plain Layout
20174 Environment
20175 \end_layout
20176
20177 \end_inset
20178
20179 .
20180  Indicates whether the environment will stand on its own in the output or
20181  will appear inline with the surrounding text.
20182  If set to false, it is supposed that the \SpecialChar LaTeX
20183  environment ignores white space
20184  (including one newline character) after the 
20185 \begin_inset Flex Code
20186 status collapsed
20187
20188 \begin_layout Plain Layout
20189
20190 \backslash
20191 begin{
20192 \emph on
20193 LatexName
20194 \emph default
20195 }
20196 \end_layout
20197
20198 \end_inset
20199
20200  and 
20201 \begin_inset Flex Code
20202 status collapsed
20203
20204 \begin_layout Plain Layout
20205
20206 \backslash
20207 end{
20208 \emph on
20209 LatexName
20210 \emph default
20211 }
20212 \end_layout
20213
20214 \end_inset
20215
20216  tags.
20217  Default is true.
20218 \change_inserted 731793113 1538674858
20219
20220 \end_layout
20221
20222 \begin_layout Description
20223
20224 \change_inserted 731793113 1538674891
20225 \begin_inset Flex Code
20226 status open
20227
20228 \begin_layout Plain Layout
20229
20230 \change_inserted 731793113 1538674863
20231 EditExternal
20232 \change_unchanged
20233
20234 \end_layout
20235
20236 \end_inset
20237
20238  [
20239 \emph on
20240 0
20241 \emph default
20242 ,1] Allow the contents of the inset to be edited externally (using whatever
20243  editor is defined for the document's output format).
20244 \change_unchanged
20245
20246 \end_layout
20247
20248 \begin_layout Description
20249 \begin_inset Flex Code
20250 status collapsed
20251
20252 \begin_layout Plain Layout
20253 End
20254 \end_layout
20255
20256 \end_inset
20257
20258  Required at the end of the 
20259 \begin_inset Flex Code
20260 status collapsed
20261
20262 \begin_layout Plain Layout
20263 InsetLayout
20264 \end_layout
20265
20266 \end_inset
20267
20268  declarations.
20269 \end_layout
20270
20271 \begin_layout Description
20272 \begin_inset Flex Code
20273 status collapsed
20274
20275 \begin_layout Plain Layout
20276 Font
20277 \end_layout
20278
20279 \end_inset
20280
20281  The font used for both the text body 
20282 \emph on
20283 and
20284 \emph default
20285  the label.
20286  See 
20287 \begin_inset CommandInset ref
20288 LatexCommand ref
20289 reference "subsec:Font-description"
20290
20291 \end_inset
20292
20293 .
20294  Note that defining this font automatically defines the 
20295 \begin_inset Flex Code
20296 status collapsed
20297
20298 \begin_layout Plain Layout
20299 LabelFont
20300 \end_layout
20301
20302 \end_inset
20303
20304  to the same value, so define this first and define 
20305 \begin_inset Flex Code
20306 status collapsed
20307
20308 \begin_layout Plain Layout
20309 LabelFont
20310 \end_layout
20311
20312 \end_inset
20313
20314  later if you want them to be different.
20315 \end_layout
20316
20317 \begin_layout Description
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322 FixedWidthPreambleEncoding
20323 \end_layout
20324
20325 \end_inset
20326
20327  [
20328 \begin_inset Flex Code
20329 status collapsed
20330
20331 \begin_layout Plain Layout
20332
20333 \emph on
20334 0
20335 \end_layout
20336
20337 \end_inset
20338
20339 ,
20340 \begin_inset space \thinspace{}
20341 \end_inset
20342
20343
20344 \begin_inset Flex Code
20345 status collapsed
20346
20347 \begin_layout Plain Layout
20348 1
20349 \end_layout
20350
20351 \end_inset
20352
20353 ] Force a fixed width encoding for the translated contents of 
20354 \begin_inset Flex Code
20355 status collapsed
20356
20357 \begin_layout Plain Layout
20358 BabelPreamble
20359 \end_layout
20360
20361 \end_inset
20362
20363  and 
20364 \begin_inset Flex Code
20365 status collapsed
20366
20367 \begin_layout Plain Layout
20368 LangPreamble
20369 \end_layout
20370
20371 \end_inset
20372
20373  code generated by this layout.
20374  This is needed for special \SpecialChar LaTeX
20375 -packages like 
20376 \family typewriter
20377 listings
20378 \family default
20379  that do not work with variable width encodings such as 
20380 \family sans
20381 utf8
20382 \family default
20383 .
20384  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
20385  backends such as Xe\SpecialChar TeX
20386  or
20387  Lua\SpecialChar TeX
20388  are used.
20389 \end_layout
20390
20391 \begin_layout Description
20392 \begin_inset Flex Code
20393 status collapsed
20394
20395 \begin_layout Plain Layout
20396 ForceLocalFontSwitch
20397 \end_layout
20398
20399 \end_inset
20400
20401  [
20402 \begin_inset Flex Code
20403 status collapsed
20404
20405 \begin_layout Plain Layout
20406
20407 \emph on
20408 0
20409 \end_layout
20410
20411 \end_inset
20412
20413 ,
20414 \begin_inset space \thinspace{}
20415 \end_inset
20416
20417
20418 \begin_inset Flex Code
20419 status collapsed
20420
20421 \begin_layout Plain Layout
20422 1
20423 \end_layout
20424
20425 \end_inset
20426
20427 ] When using babel, always use a local font switch (
20428 \begin_inset Flex Code
20429 status collapsed
20430
20431 \begin_layout Plain Layout
20432
20433 \backslash
20434 foreignlanguage
20435 \end_layout
20436
20437 \end_inset
20438
20439 ), never a global one (such as 
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444
20445 \backslash
20446 selectlanguage
20447 \end_layout
20448
20449 \end_inset
20450
20451 ).
20452 \end_layout
20453
20454 \begin_layout Description
20455 \begin_inset Flex Code
20456 status collapsed
20457
20458 \begin_layout Plain Layout
20459 ForceLTR
20460 \end_layout
20461
20462 \end_inset
20463
20464  [
20465 \begin_inset Flex Code
20466 status collapsed
20467
20468 \begin_layout Plain Layout
20469
20470 \emph on
20471 0
20472 \end_layout
20473
20474 \end_inset
20475
20476 ,
20477 \begin_inset space \thinspace{}
20478 \end_inset
20479
20480
20481 \begin_inset Flex Code
20482 status collapsed
20483
20484 \begin_layout Plain Layout
20485 1
20486 \end_layout
20487
20488 \end_inset
20489
20490 ] Force the 
20491 \begin_inset Quotes eld
20492 \end_inset
20493
20494 latex
20495 \begin_inset Quotes erd
20496 \end_inset
20497
20498  language, leading to Left-to-Right (Latin) output, e.
20499 \begin_inset space \thinspace{}
20500 \end_inset
20501
20502 g.
20503 \begin_inset space \space{}
20504 \end_inset
20505
20506 in \SpecialChar TeX
20507  code or URL.
20508  A kludge.
20509 \end_layout
20510
20511 \begin_layout Description
20512 \begin_inset Flex Code
20513 status collapsed
20514
20515 \begin_layout Plain Layout
20516 ForceOwnlines
20517 \end_layout
20518
20519 \end_inset
20520
20521  [
20522 \begin_inset Flex Code
20523 status collapsed
20524
20525 \begin_layout Plain Layout
20526
20527 \emph on
20528 0
20529 \end_layout
20530
20531 \end_inset
20532
20533 ,
20534 \begin_inset space \thinspace{}
20535 \end_inset
20536
20537
20538 \begin_inset Flex Code
20539 status collapsed
20540
20541 \begin_layout Plain Layout
20542 1
20543 \end_layout
20544
20545 \end_inset
20546
20547 ] Force a a line break in the \SpecialChar LaTeX
20548  output before the inset starts and after
20549  the inset ends.
20550  This assures the inset itself is output on its own lines, for parsing purposes.
20551 \end_layout
20552
20553 \begin_layout Description
20554 \begin_inset Flex Code
20555 status collapsed
20556
20557 \begin_layout Plain Layout
20558 ForcePlain
20559 \end_layout
20560
20561 \end_inset
20562
20563  [
20564 \begin_inset Flex Code
20565 status collapsed
20566
20567 \begin_layout Plain Layout
20568
20569 \emph on
20570 0
20571 \end_layout
20572
20573 \end_inset
20574
20575 ,
20576 \begin_inset space \thinspace{}
20577 \end_inset
20578
20579
20580 \begin_inset Flex Code
20581 status collapsed
20582
20583 \begin_layout Plain Layout
20584 1
20585 \end_layout
20586
20587 \end_inset
20588
20589 ] Indicates whether the 
20590 \begin_inset Flex Code
20591 status collapsed
20592
20593 \begin_layout Plain Layout
20594 PlainLayout
20595 \end_layout
20596
20597 \end_inset
20598
20599  should be used or, instead, the user can change the paragraph style used
20600  in the inset.
20601  Default is false.
20602 \end_layout
20603
20604 \begin_layout Description
20605 \begin_inset Flex Code
20606 status collapsed
20607
20608 \begin_layout Plain Layout
20609 FreeSpacing
20610 \end_layout
20611
20612 \end_inset
20613
20614  [
20615 \begin_inset Flex Code
20616 status collapsed
20617
20618 \begin_layout Plain Layout
20619
20620 \emph on
20621 0
20622 \end_layout
20623
20624 \end_inset
20625
20626 ,
20627 \begin_inset space \thinspace{}
20628 \end_inset
20629
20630
20631 \begin_inset Flex Code
20632 status collapsed
20633
20634 \begin_layout Plain Layout
20635 1
20636 \end_layout
20637
20638 \end_inset
20639
20640 ] As with paragraph styles, see 
20641 \begin_inset CommandInset ref
20642 LatexCommand ref
20643 reference "subsec:Paragraph-Styles"
20644
20645 \end_inset
20646
20647 .
20648 \end_layout
20649
20650 \begin_layout Description
20651 \begin_inset Flex Code
20652 status collapsed
20653
20654 \begin_layout Plain Layout
20655 HTML*
20656 \end_layout
20657
20658 \end_inset
20659
20660  These tags control the XHTML output.
20661  See 
20662 \begin_inset CommandInset ref
20663 LatexCommand ref
20664 reference "sec:Tags-for-XHTML"
20665
20666 \end_inset
20667
20668 .
20669 \end_layout
20670
20671 \begin_layout Description
20672 \begin_inset Flex Code
20673 status collapsed
20674
20675 \begin_layout Plain Layout
20676 InToc
20677 \end_layout
20678
20679 \end_inset
20680
20681  [
20682 \begin_inset Flex Code
20683 status collapsed
20684
20685 \begin_layout Plain Layout
20686
20687 \emph on
20688 0
20689 \end_layout
20690
20691 \end_inset
20692
20693 ,
20694 \begin_inset space \thinspace{}
20695 \end_inset
20696
20697
20698 \begin_inset Flex Code
20699 status collapsed
20700
20701 \begin_layout Plain Layout
20702 1
20703 \end_layout
20704
20705 \end_inset
20706
20707 ] Whether to include the contents of this inset in the strings generated
20708  for the `Outline' pane for all table of contents, regardless of the AddToToc
20709  setting.
20710  One would not, for example, want the content of a footnote in a section
20711  header to be included in the TOC displayed in the outline, but one would
20712  normally want the content of a character style displayed.
20713  Default is false: not to include.
20714 \end_layout
20715
20716 \begin_layout Description
20717 \begin_inset Flex Code
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721 IsTocCaption
20722 \end_layout
20723
20724 \end_inset
20725
20726  [
20727 \begin_inset Flex Code
20728 status collapsed
20729
20730 \begin_layout Plain Layout
20731
20732 \emph on
20733 0
20734 \end_layout
20735
20736 \end_inset
20737
20738 ,
20739 \begin_inset space \thinspace{}
20740 \end_inset
20741
20742
20743 \begin_inset Flex Code
20744 status collapsed
20745
20746 \begin_layout Plain Layout
20747 1
20748 \end_layout
20749
20750 \end_inset
20751
20752 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20753  of its contents in its item in the table of contents.
20754  Otherwise, only the label appears.
20755 \end_layout
20756
20757 \begin_layout Description
20758 \begin_inset Flex Code
20759 status collapsed
20760
20761 \begin_layout Plain Layout
20762 KeepEmpty
20763 \end_layout
20764
20765 \end_inset
20766
20767  [
20768 \emph on
20769
20770 \begin_inset Flex Code
20771 status collapsed
20772
20773 \begin_layout Plain Layout
20774 0
20775 \end_layout
20776
20777 \end_inset
20778
20779
20780 \emph default
20781 ,
20782 \begin_inset space \thinspace{}
20783 \end_inset
20784
20785
20786 \begin_inset Flex Code
20787 status collapsed
20788
20789 \begin_layout Plain Layout
20790 1
20791 \end_layout
20792
20793 \end_inset
20794
20795 ] As with paragraph styles, see 
20796 \begin_inset CommandInset ref
20797 LatexCommand ref
20798 reference "subsec:Paragraph-Styles"
20799
20800 \end_inset
20801
20802 .
20803 \end_layout
20804
20805 \begin_layout Description
20806 \begin_inset Flex Code
20807 status collapsed
20808
20809 \begin_layout Plain Layout
20810 LabelFont
20811 \end_layout
20812
20813 \end_inset
20814
20815  The font used for the label.
20816  See 
20817 \begin_inset CommandInset ref
20818 LatexCommand ref
20819 reference "subsec:Font-description"
20820
20821 \end_inset
20822
20823 .
20824  Note that this definition can never appear before 
20825 \begin_inset Flex Code
20826 status collapsed
20827
20828 \begin_layout Plain Layout
20829 Font
20830 \end_layout
20831
20832 \end_inset
20833
20834 , lest it be ineffective.
20835 \end_layout
20836
20837 \begin_layout Description
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842 LabelString
20843 \end_layout
20844
20845 \end_inset
20846
20847  [
20848 \begin_inset Flex Code
20849 status collapsed
20850
20851 \begin_layout Plain Layout
20852 string
20853 \end_layout
20854
20855 \end_inset
20856
20857 =
20858 \begin_inset Quotes erd
20859 \end_inset
20860
20861
20862 \begin_inset Quotes erd
20863 \end_inset
20864
20865 ] What will be displayed on the button or elsewhere as the inset label.
20866  Some inset types (
20867 \begin_inset Flex Code
20868 status collapsed
20869
20870 \begin_layout Plain Layout
20871 \SpecialChar TeX
20872  code
20873 \end_layout
20874
20875 \end_inset
20876
20877  and 
20878 \begin_inset Flex Code
20879 status collapsed
20880
20881 \begin_layout Plain Layout
20882 Branch
20883 \end_layout
20884
20885 \end_inset
20886
20887 ) modify this label on the fly.
20888 \end_layout
20889
20890 \begin_layout Description
20891 \begin_inset Flex Code
20892 status collapsed
20893
20894 \begin_layout Plain Layout
20895 LangPreamble
20896 \end_layout
20897
20898 \end_inset
20899
20900  Language dependent preamble; see 
20901 \begin_inset CommandInset ref
20902 LatexCommand ref
20903 reference "subsec:I18n"
20904
20905 \end_inset
20906
20907 .
20908 \end_layout
20909
20910 \begin_layout Description
20911 \begin_inset Flex Code
20912 status collapsed
20913
20914 \begin_layout Plain Layout
20915 LatexName
20916 \end_layout
20917
20918 \end_inset
20919
20920  [
20921 \begin_inset Flex Code
20922 status collapsed
20923
20924 \begin_layout Plain Layout
20925 <name>
20926 \end_layout
20927
20928 \end_inset
20929
20930 ] The name of the corresponding \SpecialChar LaTeX
20931  stuff.
20932  Either the environment or command name.
20933 \end_layout
20934
20935 \begin_layout Description
20936 \begin_inset Flex Code
20937 status collapsed
20938
20939 \begin_layout Plain Layout
20940 LatexParam
20941 \end_layout
20942
20943 \end_inset
20944
20945  [
20946 \begin_inset Flex Code
20947 status collapsed
20948
20949 \begin_layout Plain Layout
20950 <parameter>
20951 \end_layout
20952
20953 \end_inset
20954
20955 ] The optional parameter for the corresponding 
20956 \begin_inset Flex Code
20957 status collapsed
20958
20959 \begin_layout Plain Layout
20960 LatexName
20961 \end_layout
20962
20963 \end_inset
20964
20965  stuff, including possible bracket pairs like 
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 []
20971 \end_layout
20972
20973 \end_inset
20974
20975 .
20976  This parameter cannot be changed from within \SpecialChar LyX
20977  (use 
20978 \begin_inset Flex Code
20979 status collapsed
20980
20981 \begin_layout Plain Layout
20982 Argument
20983 \end_layout
20984
20985 \end_inset
20986
20987  for customizable parameters).
20988  It will be output as is after all \SpecialChar LaTeX
20989  
20990 \begin_inset Flex Code
20991 status collapsed
20992
20993 \begin_layout Plain Layout
20994 Argument
20995 \end_layout
20996
20997 \end_inset
20998
20999 s.
21000 \end_layout
21001
21002 \begin_layout Description
21003 \begin_inset Flex Code
21004 status collapsed
21005
21006 \begin_layout Plain Layout
21007 LatexType
21008 \end_layout
21009
21010 \end_inset
21011
21012  [
21013 \begin_inset Flex Code
21014 status collapsed
21015
21016 \begin_layout Plain Layout
21017 Command, Environment, None
21018 \end_layout
21019
21020 \end_inset
21021
21022 ] How the style should be translated into \SpecialChar LaTeX
21023 .
21024 \begin_inset Foot
21025 status collapsed
21026
21027 \begin_layout Plain Layout
21028 \begin_inset Flex Code
21029 status collapsed
21030
21031 \begin_layout Plain Layout
21032 LatexType
21033 \end_layout
21034
21035 \end_inset
21036
21037  is perhaps a bit misleading, since these rules apply to SGML classes too.
21038  Visit the SGML class files for specific examples.
21039 \end_layout
21040
21041 \end_inset
21042
21043
21044 \end_layout
21045
21046 \begin_deeper
21047 \begin_layout Description
21048 \begin_inset Flex Code
21049 status collapsed
21050
21051 \begin_layout Plain Layout
21052 None
21053 \end_layout
21054
21055 \end_inset
21056
21057  means nothing special
21058 \end_layout
21059
21060 \begin_layout Description
21061 \begin_inset Flex Code
21062 status collapsed
21063
21064 \begin_layout Plain Layout
21065 Command
21066 \end_layout
21067
21068 \end_inset
21069
21070  means 
21071 \begin_inset Flex Code
21072 status collapsed
21073
21074 \begin_layout Plain Layout
21075
21076 \backslash
21077
21078 \emph on
21079 LatexName
21080 \emph default
21081 {\SpecialChar ldots
21082 }
21083 \end_layout
21084
21085 \end_inset
21086
21087
21088 \end_layout
21089
21090 \begin_layout Description
21091 \begin_inset Flex Code
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095 Environment
21096 \end_layout
21097
21098 \end_inset
21099
21100  means 
21101 \begin_inset Flex Code
21102 status collapsed
21103
21104 \begin_layout Plain Layout
21105
21106 \backslash
21107 begin{
21108 \emph on
21109 LatexName
21110 \emph default
21111 }\SpecialChar ldots
21112
21113 \backslash
21114 end{
21115 \emph on
21116 LatexName
21117 \emph default
21118 }
21119 \end_layout
21120
21121 \end_inset
21122
21123
21124 \end_layout
21125
21126 \begin_layout Standard
21127 Putting the last few things together, the \SpecialChar LaTeX
21128  output will be either: 
21129 \end_layout
21130
21131 \begin_layout LyX-Code
21132
21133 \backslash
21134 LatexName[LatexParam]{\SpecialChar ldots
21135 }
21136 \end_layout
21137
21138 \begin_layout Standard
21139 or: 
21140 \end_layout
21141
21142 \begin_layout LyX-Code
21143
21144 \backslash
21145 begin{LatexName}[LatexParam] \SpecialChar ldots
21146  
21147 \backslash
21148 end{LatexName}
21149 \end_layout
21150
21151 \begin_layout Standard
21152 depending upon the \SpecialChar LaTeX
21153  type.
21154 \end_layout
21155
21156 \end_deeper
21157 \begin_layout Description
21158 \begin_inset Flex Code
21159 status collapsed
21160
21161 \begin_layout Plain Layout
21162 LeftDelim
21163 \end_layout
21164
21165 \end_inset
21166
21167  [
21168 \begin_inset Flex Code
21169 status collapsed
21170
21171 \begin_layout Plain Layout
21172 string
21173 \end_layout
21174
21175 \end_inset
21176
21177 ] A string that is put at the beginning of the layout content.
21178  A line break in the output can be indicated by 
21179 \begin_inset Flex Code
21180 status collapsed
21181
21182 \begin_layout Plain Layout
21183 <br/>
21184 \end_layout
21185
21186 \end_inset
21187
21188 .
21189 \end_layout
21190
21191 \begin_layout Description
21192 \begin_inset Flex Code
21193 status collapsed
21194
21195 \begin_layout Plain Layout
21196 LyxType
21197 \end_layout
21198
21199 \end_inset
21200
21201  Can be 
21202 \begin_inset Flex Code
21203 status collapsed
21204
21205 \begin_layout Plain Layout
21206 charstyle
21207 \end_layout
21208
21209 \end_inset
21210
21211
21212 \begin_inset Flex Code
21213 status collapsed
21214
21215 \begin_layout Plain Layout
21216 custom
21217 \end_layout
21218
21219 \end_inset
21220
21221
21222 \begin_inset Flex Code
21223 status collapsed
21224
21225 \begin_layout Plain Layout
21226 element
21227 \end_layout
21228
21229 \end_inset
21230
21231  or 
21232 \begin_inset Flex Code
21233 status collapsed
21234
21235 \begin_layout Plain Layout
21236 end
21237 \end_layout
21238
21239 \end_inset
21240
21241  (indicating a dummy definition ending definitions of charstyles, etc).
21242  This entry is required in and is only meaningful for Flex insets.
21243  Among other things, it determines on which menu this inset will appear.
21244  Setting 
21245 \begin_inset Flex Code
21246 status collapsed
21247
21248 \begin_layout Plain Layout
21249 LyxType
21250 \end_layout
21251
21252 \end_inset
21253
21254  to 
21255 \begin_inset Flex Code
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259 charstyle
21260 \end_layout
21261
21262 \end_inset
21263
21264  will automatically set 
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 MultiPar
21270 \end_layout
21271
21272 \end_inset
21273
21274  to false and 
21275 \begin_inset Flex Code
21276 status collapsed
21277
21278 \begin_layout Plain Layout
21279 ForcePlain
21280 \end_layout
21281
21282 \end_inset
21283
21284  to true.
21285  
21286 \begin_inset Flex Code
21287 status collapsed
21288
21289 \begin_layout Plain Layout
21290 MultiPar
21291 \end_layout
21292
21293 \end_inset
21294
21295  can be set to true, or 
21296 \begin_inset Flex Code
21297 status collapsed
21298
21299 \begin_layout Plain Layout
21300 ForcePlain
21301 \end_layout
21302
21303 \end_inset
21304
21305  to false, for 
21306 \begin_inset Flex Code
21307 status collapsed
21308
21309 \begin_layout Plain Layout
21310 charstyle
21311 \end_layout
21312
21313 \end_inset
21314
21315  insets by setting it 
21316 \emph on
21317 after
21318 \emph default
21319  you set the 
21320 \begin_inset Flex Code
21321 status collapsed
21322
21323 \begin_layout Plain Layout
21324 LyxType
21325 \end_layout
21326
21327 \end_inset
21328
21329 .
21330 \change_inserted -712698321 1555575738
21331
21332 \end_layout
21333
21334 \begin_layout Description
21335
21336 \change_inserted -712698321 1555575844
21337 \begin_inset Flex Code
21338 status collapsed
21339
21340 \begin_layout Plain Layout
21341
21342 \change_inserted -712698321 1555575740
21343 MenuString
21344 \change_unchanged
21345
21346 \end_layout
21347
21348 \end_inset
21349
21350  
21351 \begin_inset Flex Code
21352 status collapsed
21353
21354 \begin_layout Plain Layout
21355
21356 \change_inserted -712698321 1555575740
21357 [string]
21358 \change_unchanged
21359
21360 \end_layout
21361
21362 \end_inset
21363
21364  A dedicated string for the menu.
21365  You can define an accelerator by appending the respective character to
21366  the string, divided by 
21367 \begin_inset Quotes eld
21368 \end_inset
21369
21370 |
21371 \begin_inset Quotes erd
21372 \end_inset
21373
21374  (e.
21375 \begin_inset space \thinspace{}
21376 \end_inset
21377
21378 g.
21379 \begin_inset space \space{}
21380 \end_inset
21381
21382
21383 \begin_inset Quotes eld
21384 \end_inset
21385
21386
21387 \begin_inset Flex Code
21388 status collapsed
21389
21390 \begin_layout Plain Layout
21391
21392 \change_inserted -712698321 1555575781
21393 My Inset|M
21394 \change_unchanged
21395
21396 \end_layout
21397
21398 \end_inset
21399
21400
21401 \begin_inset Quotes erd
21402 \end_inset
21403
21404 ).
21405  This specification is optional.
21406  If it is not given the inset name as specified in the type declaration
21407  will be used instead for the menu.
21408 \change_unchanged
21409
21410 \end_layout
21411
21412 \begin_layout Description
21413 \begin_inset Flex Code
21414 status collapsed
21415
21416 \begin_layout Plain Layout
21417 MultiPar
21418 \end_layout
21419
21420 \end_inset
21421
21422  [
21423 \begin_inset Flex Code
21424 status collapsed
21425
21426 \begin_layout Plain Layout
21427
21428 \emph on
21429 0
21430 \end_layout
21431
21432 \end_inset
21433
21434 ,
21435 \begin_inset space \thinspace{}
21436 \end_inset
21437
21438
21439 \begin_inset Flex Code
21440 status collapsed
21441
21442 \begin_layout Plain Layout
21443 1
21444 \end_layout
21445
21446 \end_inset
21447
21448 ] Whether multiple paragraphs are permitted in this inset.
21449  This will also set 
21450 \begin_inset Flex Code
21451 status collapsed
21452
21453 \begin_layout Plain Layout
21454 CustomPars
21455 \end_layout
21456
21457 \end_inset
21458
21459  to the same value and 
21460 \begin_inset Flex Code
21461 status collapsed
21462
21463 \begin_layout Plain Layout
21464 ForcePlain
21465 \end_layout
21466
21467 \end_inset
21468
21469  to the opposite value.
21470  These can be reset to other values, if they are used 
21471 \emph on
21472 after
21473 \emph default
21474  
21475 \begin_inset Flex Code
21476 status collapsed
21477
21478 \begin_layout Plain Layout
21479 MultiPar
21480 \end_layout
21481
21482 \end_inset
21483
21484 .
21485  Default is true.
21486 \end_layout
21487
21488 \begin_layout Description
21489 \begin_inset Flex Code
21490 status collapsed
21491
21492 \begin_layout Plain Layout
21493 NeedProtect
21494 \end_layout
21495
21496 \end_inset
21497
21498  [
21499 \begin_inset Flex Code
21500 status collapsed
21501
21502 \begin_layout Plain Layout
21503
21504 \emph on
21505 0
21506 \end_layout
21507
21508 \end_inset
21509
21510 ,
21511 \begin_inset space \thinspace{}
21512 \end_inset
21513
21514
21515 \begin_inset Flex Code
21516 status collapsed
21517
21518 \begin_layout Plain Layout
21519 1
21520 \end_layout
21521
21522 \end_inset
21523
21524 ] Whether fragile commands in this inset should be 
21525 \begin_inset Flex Code
21526 status collapsed
21527
21528 \begin_layout Plain Layout
21529
21530 \backslash
21531 protect
21532 \end_layout
21533
21534 \end_inset
21535
21536 'ed.
21537  (Note: This is 
21538 \emph on
21539 not
21540 \emph default
21541  whether the command should itself be protected.) Default is false.
21542 \change_inserted -712698321 1523633958
21543
21544 \end_layout
21545
21546 \begin_layout Description
21547
21548 \change_inserted -712698321 1552395786
21549 \begin_inset Flex Code
21550 status collapsed
21551
21552 \begin_layout Plain Layout
21553
21554 \change_inserted -712698321 1523633961
21555 NeedCProtect
21556 \change_unchanged
21557
21558 \end_layout
21559
21560 \end_inset
21561
21562  [
21563 \begin_inset Flex Code
21564 status collapsed
21565
21566 \begin_layout Plain Layout
21567
21568 \change_inserted -712698321 1523633958
21569
21570 \emph on
21571 0
21572 \change_unchanged
21573
21574 \end_layout
21575
21576 \end_inset
21577
21578 ,
21579 \begin_inset space \thinspace{}
21580 \end_inset
21581
21582
21583 \begin_inset Flex Code
21584 status collapsed
21585
21586 \begin_layout Plain Layout
21587
21588 \change_inserted -712698321 1523633958
21589 1
21590 \change_unchanged
21591
21592 \end_layout
21593
21594 \end_inset
21595
21596 ] This causes macros that contain this inset to be protected with 
21597 \begin_inset Flex Code
21598 status collapsed
21599
21600 \begin_layout Plain Layout
21601
21602 \change_inserted -712698321 1523634038
21603
21604 \backslash
21605 cprotect
21606 \change_unchanged
21607
21608 \end_layout
21609
21610 \end_inset
21611
21612  (cf.
21613  package 
21614 \family sans
21615 cprotect
21616 \family default
21617 ) if necessary and thus allows (some) verbatim stuff in macros.
21618  Default is false.
21619 \end_layout
21620
21621 \begin_layout Description
21622
21623 \change_inserted -712698321 1555579651
21624 \begin_inset Flex Code
21625 status collapsed
21626
21627 \begin_layout Plain Layout
21628
21629 \change_inserted -712698321 1552395787
21630 NeedMBoxProtect
21631 \change_unchanged
21632
21633 \end_layout
21634
21635 \end_inset
21636
21637  [
21638 \begin_inset Flex Code
21639 status collapsed
21640
21641 \begin_layout Plain Layout
21642
21643 \change_inserted -712698321 1552395787
21644
21645 \emph on
21646 0
21647 \change_unchanged
21648
21649 \end_layout
21650
21651 \end_inset
21652
21653 ,
21654 \begin_inset space \thinspace{}
21655 \end_inset
21656
21657
21658 \begin_inset Flex Code
21659 status collapsed
21660
21661 \begin_layout Plain Layout
21662
21663 \change_inserted -712698321 1552395787
21664 1
21665 \change_unchanged
21666
21667 \end_layout
21668
21669 \end_inset
21670
21671 ] Whether specific commands in this inset (such as 
21672 \begin_inset Flex Code
21673 status collapsed
21674
21675 \begin_layout Plain Layout
21676
21677 \change_inserted -712698321 1552395787
21678
21679 \backslash
21680 cite
21681 \change_unchanged
21682
21683 \end_layout
21684
21685 \end_inset
21686
21687  and 
21688 \begin_inset Flex Code
21689 status collapsed
21690
21691 \begin_layout Plain Layout
21692
21693 \change_inserted -712698321 1552395787
21694
21695 \backslash
21696 ref
21697 \change_unchanged
21698
21699 \end_layout
21700
21701 \end_inset
21702
21703 ) should be protected in an 
21704 \begin_inset Flex Code
21705 status collapsed
21706
21707 \begin_layout Plain Layout
21708
21709 \change_inserted -712698321 1552395787
21710
21711 \backslash
21712 mbox
21713 \change_unchanged
21714
21715 \end_layout
21716
21717 \end_inset
21718
21719 .
21720  This is particularly needed for insets that draw on 
21721 \family sans
21722 ulem
21723 \family default
21724  or 
21725 \family sans
21726 soul
21727 \family default
21728  commands which parse their content in complex ways.
21729  Default is false.
21730 \end_layout
21731
21732 \begin_layout Description
21733
21734 \change_inserted -712698321 1555579742
21735 \begin_inset Flex Code
21736 status collapsed
21737
21738 \begin_layout Plain Layout
21739
21740 \change_inserted -712698321 1555579658
21741 NewlineCmd
21742 \change_unchanged
21743
21744 \end_layout
21745
21746 \end_inset
21747
21748  
21749 \begin_inset Flex Code
21750 status collapsed
21751
21752 \begin_layout Plain Layout
21753
21754 \change_inserted -712698321 1555579651
21755 [string]
21756 \change_unchanged
21757
21758 \end_layout
21759
21760 \end_inset
21761
21762  Option to define a different command (from the default 
21763 \begin_inset Flex Code
21764 status collapsed
21765
21766 \begin_layout Plain Layout
21767
21768 \change_inserted -712698321 1555579742
21769
21770 \backslash
21771
21772 \backslash
21773
21774 \change_unchanged
21775
21776 \end_layout
21777
21778 \end_inset
21779
21780 ) to be used for line breaks.
21781  The initial backslash must not be specified.
21782 \change_unchanged
21783
21784 \end_layout
21785
21786 \begin_layout Description
21787 \begin_inset Flex Code
21788 status collapsed
21789
21790 \begin_layout Plain Layout
21791 NoInsetLayout
21792 \end_layout
21793
21794 \end_inset
21795
21796  [
21797 \begin_inset Flex Code
21798 status collapsed
21799
21800 \begin_layout Plain Layout
21801 <layout>
21802 \end_layout
21803
21804 \end_inset
21805
21806 ] Deletes an existing 
21807 \begin_inset Flex Code
21808 status collapsed
21809
21810 \begin_layout Plain Layout
21811 InsetLayout
21812 \end_layout
21813
21814 \end_inset
21815
21816 .
21817 \end_layout
21818
21819 \begin_layout Description
21820 \begin_inset Flex Code
21821 status collapsed
21822
21823 \begin_layout Plain Layout
21824 ObsoletedBy
21825 \end_layout
21826
21827 \end_inset
21828
21829  [
21830 \begin_inset Flex Code
21831 status collapsed
21832
21833 \begin_layout Plain Layout
21834 <layout>
21835 \end_layout
21836
21837 \end_inset
21838
21839 ] Name of an 
21840 \begin_inset Flex Code
21841 status collapsed
21842
21843 \begin_layout Plain Layout
21844 InsetLayout
21845 \end_layout
21846
21847 \end_inset
21848
21849  that has replaced this 
21850 \begin_inset Flex Code
21851 status collapsed
21852
21853 \begin_layout Plain Layout
21854 InsetLayout
21855 \end_layout
21856
21857 \end_inset
21858
21859 .
21860  This is used to rename an 
21861 \begin_inset Flex Code
21862 status collapsed
21863
21864 \begin_layout Plain Layout
21865 InsetLayout
21866 \end_layout
21867
21868 \end_inset
21869
21870 , while keeping backward compatibility.
21871 \change_inserted -712698321 1559491850
21872
21873 \end_layout
21874
21875 \begin_layout Description
21876
21877 \change_inserted -712698321 1559492002
21878 \begin_inset Flex Code
21879 status collapsed
21880
21881 \begin_layout Plain Layout
21882
21883 \change_inserted -712698321 1559491854
21884 ParbreakIgnored
21885 \change_unchanged
21886
21887 \end_layout
21888
21889 \end_inset
21890
21891  [
21892 \begin_inset Flex Code
21893 status collapsed
21894
21895 \begin_layout Plain Layout
21896
21897 \change_inserted -712698321 1559491850
21898
21899 \emph on
21900 0
21901 \change_unchanged
21902
21903 \end_layout
21904
21905 \end_inset
21906
21907 ,
21908 \begin_inset space \thinspace{}
21909 \end_inset
21910
21911
21912 \begin_inset Flex Code
21913 status collapsed
21914
21915 \begin_layout Plain Layout
21916
21917 \change_inserted -712698321 1559491850
21918 1
21919 \change_unchanged
21920
21921 \end_layout
21922
21923 \end_inset
21924
21925 ] If this is set to 
21926 \begin_inset Flex Code
21927 status collapsed
21928
21929 \begin_layout Plain Layout
21930
21931 \change_inserted -712698321 1559491881
21932 1
21933 \change_unchanged
21934
21935 \end_layout
21936
21937 \end_inset
21938
21939 , paragraph breaks will be ignored in the output.
21940  This might be useful for insets where the content should be alignable on
21941  different lines only in the \SpecialChar LyX
21942  workarea, without any effect in the output.
21943 \change_unchanged
21944
21945 \end_layout
21946
21947 \begin_layout Description
21948 \begin_inset Flex Code
21949 status collapsed
21950
21951 \begin_layout Plain Layout
21952 ParbreakIsNewline
21953 \end_layout
21954
21955 \end_inset
21956
21957  [
21958 \begin_inset Flex Code
21959 status collapsed
21960
21961 \begin_layout Plain Layout
21962
21963 \emph on
21964 0
21965 \end_layout
21966
21967 \end_inset
21968
21969 ,
21970 \begin_inset space \thinspace{}
21971 \end_inset
21972
21973
21974 \begin_inset Flex Code
21975 status collapsed
21976
21977 \begin_layout Plain Layout
21978 1
21979 \end_layout
21980
21981 \end_inset
21982
21983 ] As with paragraph styles, see 
21984 \begin_inset CommandInset ref
21985 LatexCommand ref
21986 reference "subsec:Paragraph-Styles"
21987
21988 \end_inset
21989
21990 .
21991  Default is false.
21992 \end_layout
21993
21994 \begin_layout Description
21995 \begin_inset Flex Code
21996 status collapsed
21997
21998 \begin_layout Plain Layout
21999 PassThru
22000 \end_layout
22001
22002 \end_inset
22003
22004  [
22005 \begin_inset Flex Code
22006 status collapsed
22007
22008 \begin_layout Plain Layout
22009
22010 \emph on
22011 0
22012 \end_layout
22013
22014 \end_inset
22015
22016 ,
22017 \begin_inset space \thinspace{}
22018 \end_inset
22019
22020
22021 \begin_inset Flex Code
22022 status collapsed
22023
22024 \begin_layout Plain Layout
22025 1
22026 \end_layout
22027
22028 \end_inset
22029
22030 ] As with paragraph styles, see 
22031 \begin_inset CommandInset ref
22032 LatexCommand ref
22033 reference "subsec:Paragraph-Styles"
22034
22035 \end_inset
22036
22037 .
22038  Default is false.
22039 \end_layout
22040
22041 \begin_layout Description
22042 \begin_inset Flex Code
22043 status collapsed
22044
22045 \begin_layout Plain Layout
22046 Preamble
22047 \end_layout
22048
22049 \end_inset
22050
22051  As with paragraph styles, see 
22052 \begin_inset CommandInset ref
22053 LatexCommand ref
22054 reference "subsec:Paragraph-Styles"
22055
22056 \end_inset
22057
22058 .
22059 \end_layout
22060
22061 \begin_layout Description
22062 \begin_inset Flex Code
22063 status collapsed
22064
22065 \begin_layout Plain Layout
22066 RefPrefix
22067 \end_layout
22068
22069 \end_inset
22070
22071  [
22072 \begin_inset Flex Code
22073 status collapsed
22074
22075 \begin_layout Plain Layout
22076 string
22077 \end_layout
22078
22079 \end_inset
22080
22081 ] The prefix to use when creating labels referring to insets of this type.
22082  This allows the use of formatted references.
22083 \end_layout
22084
22085 \begin_layout Description
22086 \begin_inset Flex Code
22087 status collapsed
22088
22089 \begin_layout Plain Layout
22090 Requires
22091 \end_layout
22092
22093 \end_inset
22094
22095  [
22096 \begin_inset Flex Code
22097 status collapsed
22098
22099 \begin_layout Plain Layout
22100 string
22101 \end_layout
22102
22103 \end_inset
22104
22105 ] As with paragraph styles, see 
22106 \begin_inset CommandInset ref
22107 LatexCommand ref
22108 reference "subsec:Paragraph-Styles"
22109
22110 \end_inset
22111
22112 .
22113 \end_layout
22114
22115 \begin_layout Description
22116 \begin_inset Flex Code
22117 status collapsed
22118
22119 \begin_layout Plain Layout
22120 ResetArgs
22121 \end_layout
22122
22123 \end_inset
22124
22125  [
22126 \begin_inset Flex Code
22127 status collapsed
22128
22129 \begin_layout Plain Layout
22130
22131 \emph on
22132 0
22133 \end_layout
22134
22135 \end_inset
22136
22137 ,
22138 \begin_inset space \thinspace{}
22139 \end_inset
22140
22141
22142 \begin_inset Flex Code
22143 status collapsed
22144
22145 \begin_layout Plain Layout
22146 1
22147 \end_layout
22148
22149 \end_inset
22150
22151 ] Resets the \SpecialChar LaTeX
22152  arguments of this layout (as defined via the 
22153 \begin_inset Flex Code
22154 status collapsed
22155
22156 \begin_layout Plain Layout
22157 Argument
22158 \end_layout
22159
22160 \end_inset
22161
22162  tag).
22163  This is useful if you have copied a style via 
22164 \begin_inset Flex Code
22165 status collapsed
22166
22167 \begin_layout Plain Layout
22168 CopyStyle
22169 \end_layout
22170
22171 \end_inset
22172
22173 , but you do not want to inherit its (required and optional) arguments.
22174 \end_layout
22175
22176 \begin_layout Description
22177 \begin_inset Flex Code
22178 status collapsed
22179
22180 \begin_layout Plain Layout
22181 ResetsFont
22182 \end_layout
22183
22184 \end_inset
22185
22186  [
22187 \begin_inset Flex Code
22188 status collapsed
22189
22190 \begin_layout Plain Layout
22191
22192 \emph on
22193 0
22194 \end_layout
22195
22196 \end_inset
22197
22198 ,
22199 \begin_inset space \thinspace{}
22200 \end_inset
22201
22202
22203 \begin_inset Flex Code
22204 status collapsed
22205
22206 \begin_layout Plain Layout
22207 1
22208 \end_layout
22209
22210 \end_inset
22211
22212
22213 \change_inserted -712698321 1597733473
22214 If 
22215 \begin_inset Flex Code
22216 status collapsed
22217
22218 \begin_layout Plain Layout
22219
22220 \change_inserted -712698321 1597732178
22221 1
22222 \change_unchanged
22223
22224 \end_layout
22225
22226 \end_inset
22227
22228 , font changes are redone inside the respective inset (in the output) even
22229  if the inset itself is in the context of this font changes (e.
22230 \begin_inset space \thinspace{}
22231 \end_inset
22232
22233 g., 
22234 \begin_inset Flex Code
22235 status collapsed
22236
22237 \begin_layout Plain Layout
22238
22239 \change_inserted -712698321 1597733683
22240
22241 \backslash
22242 textbf{Sourrounding text 
22243 \backslash
22244 myinset{
22245 \backslash
22246 textbf{content}}\SpecialChar ldots
22247 }
22248 \change_unchanged
22249
22250 \end_layout
22251
22252 \end_inset
22253
22254  rather than 
22255 \begin_inset Flex Code
22256 status collapsed
22257
22258 \begin_layout Plain Layout
22259
22260 \change_inserted -712698321 1597733686
22261
22262 \backslash
22263 textbf{Sourrounding text 
22264 \backslash
22265 myinset{content}\SpecialChar ldots
22266 }
22267 \change_unchanged
22268
22269 \end_layout
22270
22271 \end_inset
22272
22273 .
22274  Setting this makes sense for commands that internally reset font settings
22275  (e.
22276 \begin_inset space \thinspace{}
22277 \end_inset
22278
22279 g., footnotes).
22280  Note that wrongly setting this might lead to unwanted result (e.
22281 \begin_inset space \thinspace{}
22282 \end_inset
22283
22284 g., with 
22285 \begin_inset Flex Code
22286 status collapsed
22287
22288 \begin_layout Plain Layout
22289
22290 \change_inserted -712698321 1597733688
22291
22292 \backslash
22293 emph{Sourrounding text 
22294 \backslash
22295 myinset{
22296 \backslash
22297 emph{content}}\SpecialChar ldots
22298 }
22299 \change_unchanged
22300
22301 \end_layout
22302
22303 \end_inset
22304
22305 , content is upright, as 
22306 \begin_inset Flex Code
22307 status collapsed
22308
22309 \begin_layout Plain Layout
22310
22311 \change_inserted -712698321 1597733278
22312
22313 \backslash
22314 emph
22315 \change_unchanged
22316
22317 \end_layout
22318
22319 \end_inset
22320
22321  toggles.
22322  
22323 \change_deleted -712698321 1597733283
22324 Whether this inset should use the font of its surrounding environment or
22325  uses its own.
22326  
22327 \change_unchanged
22328 Default is 
22329 \change_deleted -712698321 1597733290
22330 false
22331 \change_inserted -712698321 1597733290
22332
22333 \begin_inset Flex Code
22334 status collapsed
22335
22336 \begin_layout Plain Layout
22337
22338 \change_inserted -712698321 1597733292
22339 0
22340 \change_unchanged
22341
22342 \end_layout
22343
22344 \end_inset
22345
22346
22347 \change_unchanged
22348
22349 \change_deleted -712698321 1597733327
22350 use the font of the surrounding environment
22351 \change_inserted -712698321 1597733343
22352 font changes are not redone inside the inset
22353 \change_unchanged
22354 .
22355 \end_layout
22356
22357 \begin_layout Description
22358 \begin_inset Flex Code
22359 status collapsed
22360
22361 \begin_layout Plain Layout
22362 RightDelim
22363 \end_layout
22364
22365 \end_inset
22366
22367  [
22368 \begin_inset Flex Code
22369 status collapsed
22370
22371 \begin_layout Plain Layout
22372 string
22373 \end_layout
22374
22375 \end_inset
22376
22377 ] A string that is put at the end of the layout content.
22378  A line break in the output can be indicated by 
22379 \begin_inset Flex Code
22380 status collapsed
22381
22382 \begin_layout Plain Layout
22383 <br/>
22384 \end_layout
22385
22386 \end_inset
22387
22388 .
22389 \end_layout
22390
22391 \begin_layout Description
22392 \begin_inset Flex Code
22393 status collapsed
22394
22395 \begin_layout Plain Layout
22396 Spellcheck
22397 \end_layout
22398
22399 \end_inset
22400
22401  [
22402 \begin_inset Flex Code
22403 status collapsed
22404
22405 \begin_layout Plain Layout
22406 0
22407 \end_layout
22408
22409 \end_inset
22410
22411 ,
22412 \begin_inset space \thinspace{}
22413 \end_inset
22414
22415
22416 \begin_inset Flex Code
22417 status collapsed
22418
22419 \begin_layout Plain Layout
22420
22421 \emph on
22422 1
22423 \end_layout
22424
22425 \end_inset
22426
22427 ] Allow spell-checking the contents of this inset.
22428  Default is true.
22429 \end_layout
22430
22431 \begin_layout Subsection
22432 Counters
22433 \begin_inset CommandInset label
22434 LatexCommand label
22435 name "subsec:Counters"
22436
22437 \end_inset
22438
22439
22440 \end_layout
22441
22442 \begin_layout Standard
22443 It is necessary to define the counters (
22444 \begin_inset Flex Noun
22445 status collapsed
22446
22447 \begin_layout Plain Layout
22448 chapter
22449 \end_layout
22450
22451 \end_inset
22452
22453
22454 \begin_inset Flex Noun
22455 status collapsed
22456
22457 \begin_layout Plain Layout
22458 figure
22459 \end_layout
22460
22461 \end_inset
22462
22463 , \SpecialChar ldots
22464 ) in the text class itself.
22465  The standard counters are defined in the file 
22466 \begin_inset Flex Code
22467 status collapsed
22468
22469 \begin_layout Plain Layout
22470 stdcounters.inc
22471 \end_layout
22472
22473 \end_inset
22474
22475 , so you may have to do no more than add
22476 \end_layout
22477
22478 \begin_layout LyX-Code
22479 Input stdcounters.inc
22480 \end_layout
22481
22482 \begin_layout Standard
22483 to your layout file to get them to work.
22484  But if you want to define custom counters, then you can do so.
22485  The counter declaration must begin with:
22486 \end_layout
22487
22488 \begin_layout LyX-Code
22489 Counter CounterName
22490 \end_layout
22491
22492 \begin_layout Standard
22493 where of course `
22494 \begin_inset Flex Code
22495 status collapsed
22496
22497 \begin_layout Plain Layout
22498 CounterName
22499 \end_layout
22500
22501 \end_inset
22502
22503 ' is replaced by the name of the counter.
22504  And it must end with 
22505 \begin_inset Quotes eld
22506 \end_inset
22507
22508
22509 \begin_inset Flex Code
22510 status collapsed
22511
22512 \begin_layout Plain Layout
22513 End
22514 \end_layout
22515
22516 \end_inset
22517
22518
22519 \begin_inset Quotes erd
22520 \end_inset
22521
22522 .
22523  The following parameters can also be used:
22524 \end_layout
22525
22526 \begin_layout Description
22527 \begin_inset Flex Code
22528 status collapsed
22529
22530 \begin_layout Plain Layout
22531 InitialValue
22532 \end_layout
22533
22534 \end_inset
22535
22536  [
22537 \begin_inset Flex Code
22538 status collapsed
22539
22540 \begin_layout Plain Layout
22541 int=1
22542 \end_layout
22543
22544 \end_inset
22545
22546 ] Sets the initial value for the counter, to which it will be reset whenever
22547  that happens.
22548  Normally, one will want the default, 1.
22549 \end_layout
22550
22551 \begin_layout Description
22552 \begin_inset Flex Code
22553 status collapsed
22554
22555 \begin_layout Plain Layout
22556 LabelString
22557 \end_layout
22558
22559 \end_inset
22560
22561  [
22562 \begin_inset Flex Code
22563 status collapsed
22564
22565 \begin_layout Plain Layout
22566 string
22567 \end_layout
22568
22569 \end_inset
22570
22571 =
22572 \begin_inset Quotes erd
22573 \end_inset
22574
22575
22576 \begin_inset Quotes erd
22577 \end_inset
22578
22579 ] When defined, this string defines how the counter is displayed.
22580  Setting this value sets 
22581 \begin_inset Flex Code
22582 status collapsed
22583
22584 \begin_layout Plain Layout
22585 LabelStringAppendix
22586 \end_layout
22587
22588 \end_inset
22589
22590  to the same value.
22591  The following special constructs can be used in the string:
22592 \end_layout
22593
22594 \begin_deeper
22595 \begin_layout Itemize
22596 \begin_inset Flex Code
22597 status collapsed
22598
22599 \begin_layout Plain Layout
22600
22601 \backslash
22602 thecounter
22603 \end_layout
22604
22605 \end_inset
22606
22607  will be replaced by the expansion of the 
22608 \begin_inset Flex Code
22609 status collapsed
22610
22611 \begin_layout Plain Layout
22612 LabelString
22613 \end_layout
22614
22615 \end_inset
22616
22617  (or 
22618 \begin_inset Flex Code
22619 status collapsed
22620
22621 \begin_layout Plain Layout
22622 LabelStringAppendix
22623 \end_layout
22624
22625 \end_inset
22626
22627 ) of the counter 
22628 \begin_inset Flex Code
22629 status collapsed
22630
22631 \begin_layout Plain Layout
22632 counter
22633 \end_layout
22634
22635 \end_inset
22636
22637 .
22638  
22639 \end_layout
22640
22641 \begin_layout Itemize
22642 counter values can be expressed using \SpecialChar LaTeX
22643 -like macros
22644 \begin_inset Newline newline
22645 \end_inset
22646
22647
22648 \begin_inset Flex Code
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652
22653 \backslash
22654
22655 \emph on
22656 numbertype
22657 \emph default
22658 {
22659 \emph on
22660 counter
22661 \emph default
22662 }
22663 \end_layout
22664
22665 \end_inset
22666
22667 , where 
22668 \begin_inset Flex Code
22669 status collapsed
22670
22671 \begin_layout Plain Layout
22672
22673 \emph on
22674 numbertype
22675 \end_layout
22676
22677 \end_inset
22678
22679  can be:
22680 \begin_inset Foot
22681 status collapsed
22682
22683 \begin_layout Plain Layout
22684
22685 \family roman
22686 \series medium
22687 \shape up
22688 \size normal
22689 \emph off
22690 \bar no
22691 \noun off
22692 \color none
22693 Actually, the situation is a bit more complicated: any
22694 \family default
22695 \series default
22696 \shape default
22697 \emph default
22698 \bar default
22699  
22700 \size default
22701 \emph on
22702 \noun default
22703 \color inherit
22704 numbertype
22705 \family roman
22706 \series medium
22707 \shape up
22708 \size normal
22709 \emph off
22710 \bar no
22711 \noun off
22712  other than those described below will produce arabic numerals.
22713  It would not be surprising to see this change in the future.
22714 \end_layout
22715
22716 \end_inset
22717
22718  
22719 \begin_inset Flex Code
22720 status collapsed
22721
22722 \begin_layout Plain Layout
22723 arabic
22724 \end_layout
22725
22726 \end_inset
22727
22728 : 1, 2, 3,\SpecialChar ldots
22729
22730 \begin_inset Flex Code
22731 status collapsed
22732
22733 \begin_layout Plain Layout
22734 alph
22735 \end_layout
22736
22737 \end_inset
22738
22739  for lower-case letters: a, b, c, \SpecialChar ldots
22740
22741 \begin_inset Flex Code
22742 status collapsed
22743
22744 \begin_layout Plain Layout
22745 Alph
22746 \end_layout
22747
22748 \end_inset
22749
22750  for upper-case letters: A, B, C, \SpecialChar ldots
22751
22752 \begin_inset Flex Code
22753 status collapsed
22754
22755 \begin_layout Plain Layout
22756 roman
22757 \end_layout
22758
22759 \end_inset
22760
22761  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
22762
22763 \begin_inset Flex Code
22764 status collapsed
22765
22766 \begin_layout Plain Layout
22767 Roman
22768 \end_layout
22769
22770 \end_inset
22771
22772  for upper-case roman numerals: I, II, III\SpecialChar ldots
22773
22774 \begin_inset Flex Code
22775 status collapsed
22776
22777 \begin_layout Plain Layout
22778 hebrew
22779 \end_layout
22780
22781 \end_inset
22782
22783  for hebrew numerals.
22784 \end_layout
22785
22786 \end_deeper
22787 \begin_layout Standard
22788 If LabelString is not defined, a default value is constructed as follows:
22789  if the counter has a 
22790 \change_deleted 731793113 1604355218
22791 master
22792 \change_inserted 731793113 1604355221
22793 parent
22794 \change_unchanged
22795  counter 
22796 \begin_inset Flex Code
22797 status collapsed
22798
22799 \begin_layout Plain Layout
22800
22801 \change_deleted 731793113 1604355223
22802 master
22803 \change_inserted 731793113 1604355226
22804 parent
22805 \change_unchanged
22806
22807 \end_layout
22808
22809 \end_inset
22810
22811  (defined via 
22812 \begin_inset Flex Code
22813 status collapsed
22814
22815 \begin_layout Plain Layout
22816 Within
22817 \end_layout
22818
22819 \end_inset
22820
22821 ), the string
22822 \begin_inset Newline newline
22823 \end_inset
22824
22825
22826 \begin_inset Flex Code
22827 status collapsed
22828
22829 \begin_layout Plain Layout
22830
22831 \backslash
22832 the
22833 \change_inserted 731793113 1604355228
22834 parent
22835 \change_deleted 731793113 1604355230
22836 master
22837 \change_unchanged
22838 .
22839 \backslash
22840 arabic{counter}
22841 \end_layout
22842
22843 \end_inset
22844
22845  is used; otherwise the string 
22846 \begin_inset Flex Code
22847 status collapsed
22848
22849 \begin_layout Plain Layout
22850
22851 \backslash
22852 arabic{counter}
22853 \end_layout
22854
22855 \end_inset
22856
22857  is used.
22858 \end_layout
22859
22860 \begin_layout Description
22861 \begin_inset Flex Code
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865 LabelStringAppendix
22866 \end_layout
22867
22868 \end_inset
22869
22870  [
22871 \begin_inset Flex Code
22872 status collapsed
22873
22874 \begin_layout Plain Layout
22875 string
22876 \end_layout
22877
22878 \end_inset
22879
22880
22881 \begin_inset Quotes eld
22882 \end_inset
22883
22884
22885 \begin_inset Quotes erd
22886 \end_inset
22887
22888 ] Same as 
22889 \begin_inset Flex Code
22890 status collapsed
22891
22892 \begin_layout Plain Layout
22893 LabelString
22894 \end_layout
22895
22896 \end_inset
22897
22898 , but for use in the Appendix.
22899 \change_inserted -584632292 1607202551
22900
22901 \end_layout
22902
22903 \begin_layout Description
22904
22905 \change_inserted -584632292 1607202682
22906 \begin_inset Flex Code
22907 status open
22908
22909 \begin_layout Plain Layout
22910 LaTeXName
22911 \end_layout
22912
22913 \end_inset
22914
22915  [
22916 \begin_inset Flex Code
22917 status open
22918
22919 \begin_layout Plain Layout
22920
22921 \change_inserted -584632292 1607202576
22922 string
22923 \change_unchanged
22924
22925 \end_layout
22926
22927 \end_inset
22928
22929  = 
22930 \begin_inset Quotes eld
22931 \end_inset
22932
22933
22934 \begin_inset Quotes erd
22935 \end_inset
22936
22937 ] The counter name as used in \SpecialChar LaTeX
22938 .
22939  (E.g., in \SpecialChar LyX
22940 , there is a counter named `theorem', but it is output to \SpecialChar LaTeX
22941  as `thm'.)
22942 \change_unchanged
22943
22944 \end_layout
22945
22946 \begin_layout Description
22947 \begin_inset Flex Code
22948 status collapsed
22949
22950 \begin_layout Plain Layout
22951 PrettyFormat
22952 \end_layout
22953
22954 \end_inset
22955
22956  [
22957 \begin_inset Flex Code
22958 status collapsed
22959
22960 \begin_layout Plain Layout
22961 string
22962 \end_layout
22963
22964 \end_inset
22965
22966 =
22967 \begin_inset Quotes erd
22968 \end_inset
22969
22970
22971 \begin_inset Quotes erd
22972 \end_inset
22973
22974 ] A format for use with formatted references to this counter.
22975  For example, one might want to have references to section numbers appear
22976  as 
22977 \begin_inset Quotes eld
22978 \end_inset
22979
22980 Section 2.4
22981 \begin_inset Quotes erd
22982 \end_inset
22983
22984 .
22985  The string should contain 
22986 \begin_inset Quotes eld
22987 \end_inset
22988
22989 ##
22990 \begin_inset Quotes erd
22991 \end_inset
22992
22993 .
22994  This will be replaced by the counter number itself.
22995  So, for sections, it would be: Section ##.
22996 \end_layout
22997
22998 \begin_layout Description
22999 \begin_inset Flex Code
23000 status collapsed
23001
23002 \begin_layout Plain Layout
23003 Within
23004 \end_layout
23005
23006 \end_inset
23007
23008  [
23009 \begin_inset Flex Code
23010 status collapsed
23011
23012 \begin_layout Plain Layout
23013 string
23014 \end_layout
23015
23016 \end_inset
23017
23018 =
23019 \begin_inset Quotes erd
23020 \end_inset
23021
23022
23023 \begin_inset Quotes erd
23024 \end_inset
23025
23026 ] If this is set to the name of another counter, the present counter will
23027  be reset every time the other one is increased.
23028  For example, 
23029 \begin_inset Flex Code
23030 status collapsed
23031
23032 \begin_layout Plain Layout
23033 subsection
23034 \end_layout
23035
23036 \end_inset
23037
23038  is numbered inside 
23039 \begin_inset Flex Code
23040 status collapsed
23041
23042 \begin_layout Plain Layout
23043 section
23044 \end_layout
23045
23046 \end_inset
23047
23048 .
23049 \end_layout
23050
23051 \begin_layout Subsection
23052 Font description
23053 \begin_inset CommandInset label
23054 LatexCommand label
23055 name "subsec:Font-description"
23056
23057 \end_inset
23058
23059
23060 \end_layout
23061
23062 \begin_layout Standard
23063 A font description looks like this:
23064 \end_layout
23065
23066 \begin_layout LyX-Code
23067 Font 
23068 \family roman
23069 \emph on
23070 or
23071 \family default
23072 \emph default
23073  LabelFont
23074 \emph on
23075  
23076 \family roman
23077 or
23078 \family default
23079 \emph default
23080  DefaultFont
23081 \end_layout
23082
23083 \begin_layout LyX-Code
23084  ...
23085 \end_layout
23086
23087 \begin_layout LyX-Code
23088 EndFont
23089 \end_layout
23090
23091 \begin_layout Standard
23092 The following commands are available:
23093 \end_layout
23094
23095 \begin_layout Description
23096 \begin_inset Flex Code
23097 status collapsed
23098
23099 \begin_layout Plain Layout
23100 Color
23101 \end_layout
23102
23103 \end_inset
23104
23105  [
23106 \begin_inset Flex Code
23107 status collapsed
23108
23109 \begin_layout Plain Layout
23110
23111 \emph on
23112 none
23113 \end_layout
23114
23115 \end_inset
23116
23117
23118 \begin_inset Flex Code
23119 status collapsed
23120
23121 \begin_layout Plain Layout
23122 black
23123 \end_layout
23124
23125 \end_inset
23126
23127
23128 \begin_inset Flex Code
23129 status collapsed
23130
23131 \begin_layout Plain Layout
23132 white
23133 \end_layout
23134
23135 \end_inset
23136
23137
23138 \begin_inset Flex Code
23139 status collapsed
23140
23141 \begin_layout Plain Layout
23142 red
23143 \end_layout
23144
23145 \end_inset
23146
23147
23148 \begin_inset Flex Code
23149 status collapsed
23150
23151 \begin_layout Plain Layout
23152 green
23153 \end_layout
23154
23155 \end_inset
23156
23157
23158 \begin_inset Flex Code
23159 status collapsed
23160
23161 \begin_layout Plain Layout
23162 blue
23163 \end_layout
23164
23165 \end_inset
23166
23167
23168 \begin_inset Flex Code
23169 status collapsed
23170
23171 \begin_layout Plain Layout
23172 cyan
23173 \end_layout
23174
23175 \end_inset
23176
23177
23178 \begin_inset Flex Code
23179 status collapsed
23180
23181 \begin_layout Plain Layout
23182 magenta
23183 \end_layout
23184
23185 \end_inset
23186
23187
23188 \begin_inset Flex Code
23189 status collapsed
23190
23191 \begin_layout Plain Layout
23192 yellow
23193 \end_layout
23194
23195 \end_inset
23196
23197
23198 \begin_inset Flex Code
23199 status collapsed
23200
23201 \begin_layout Plain Layout
23202 brown
23203 \end_layout
23204
23205 \end_inset
23206
23207
23208 \begin_inset Flex Code
23209 status collapsed
23210
23211 \begin_layout Plain Layout
23212 darkgray
23213 \end_layout
23214
23215 \end_inset
23216
23217
23218 \begin_inset Flex Code
23219 status collapsed
23220
23221 \begin_layout Plain Layout
23222 gray
23223 \end_layout
23224
23225 \end_inset
23226
23227
23228 \begin_inset Flex Code
23229 status collapsed
23230
23231 \begin_layout Plain Layout
23232 lightgray
23233 \end_layout
23234
23235 \end_inset
23236
23237
23238 \begin_inset Flex Code
23239 status collapsed
23240
23241 \begin_layout Plain Layout
23242 lime
23243 \end_layout
23244
23245 \end_inset
23246
23247
23248 \begin_inset Flex Code
23249 status collapsed
23250
23251 \begin_layout Plain Layout
23252 orange
23253 \end_layout
23254
23255 \end_inset
23256
23257
23258 \begin_inset Flex Code
23259 status collapsed
23260
23261 \begin_layout Plain Layout
23262 olive
23263 \end_layout
23264
23265 \end_inset
23266
23267
23268 \begin_inset Flex Code
23269 status collapsed
23270
23271 \begin_layout Plain Layout
23272 pink
23273 \end_layout
23274
23275 \end_inset
23276
23277
23278 \begin_inset Flex Code
23279 status collapsed
23280
23281 \begin_layout Plain Layout
23282 purple
23283 \end_layout
23284
23285 \end_inset
23286
23287
23288 \begin_inset Flex Code
23289 status collapsed
23290
23291 \begin_layout Plain Layout
23292 teal
23293 \end_layout
23294
23295 \end_inset
23296
23297
23298 \begin_inset Flex Code
23299 status collapsed
23300
23301 \begin_layout Plain Layout
23302 violet
23303 \end_layout
23304
23305 \end_inset
23306
23307 ]
23308 \end_layout
23309
23310 \begin_layout Description
23311 \begin_inset Flex Code
23312 status collapsed
23313
23314 \begin_layout Plain Layout
23315 Family
23316 \end_layout
23317
23318 \end_inset
23319
23320  [
23321 \begin_inset Flex Code
23322 status collapsed
23323
23324 \begin_layout Plain Layout
23325
23326 \emph on
23327 Roman
23328 \end_layout
23329
23330 \end_inset
23331
23332
23333 \begin_inset Flex Code
23334 status collapsed
23335
23336 \begin_layout Plain Layout
23337 Sans
23338 \end_layout
23339
23340 \end_inset
23341
23342
23343 \begin_inset Flex Code
23344 status collapsed
23345
23346 \begin_layout Plain Layout
23347 Typewriter
23348 \end_layout
23349
23350 \end_inset
23351
23352 ]
23353 \end_layout
23354
23355 \begin_layout Description
23356 \begin_inset Flex Code
23357 status collapsed
23358
23359 \begin_layout Plain Layout
23360 Misc
23361 \end_layout
23362
23363 \end_inset
23364
23365  [
23366 \begin_inset Flex Code
23367 status collapsed
23368
23369 \begin_layout Plain Layout
23370 string
23371 \end_layout
23372
23373 \end_inset
23374
23375 ] Valid arguments are: 
23376 \begin_inset Flex Code
23377 status collapsed
23378
23379 \begin_layout Plain Layout
23380 emph
23381 \end_layout
23382
23383 \end_inset
23384
23385
23386 \begin_inset Flex Code
23387 status collapsed
23388
23389 \begin_layout Plain Layout
23390 noun
23391 \end_layout
23392
23393 \end_inset
23394
23395
23396 \begin_inset Flex Code
23397 status collapsed
23398
23399 \begin_layout Plain Layout
23400 strikeout
23401 \end_layout
23402
23403 \end_inset
23404
23405
23406 \begin_inset Flex Code
23407 status collapsed
23408
23409 \begin_layout Plain Layout
23410 underbar
23411 \end_layout
23412
23413 \end_inset
23414
23415
23416 \begin_inset Flex Code
23417 status collapsed
23418
23419 \begin_layout Plain Layout
23420 uuline
23421 \end_layout
23422
23423 \end_inset
23424
23425
23426 \begin_inset Flex Code
23427 status collapsed
23428
23429 \begin_layout Plain Layout
23430 uwave
23431 \end_layout
23432
23433 \end_inset
23434
23435
23436 \begin_inset Flex Code
23437 status collapsed
23438
23439 \begin_layout Plain Layout
23440 no_emph
23441 \end_layout
23442
23443 \end_inset
23444
23445
23446 \begin_inset Flex Code
23447 status collapsed
23448
23449 \begin_layout Plain Layout
23450 no_noun
23451 \end_layout
23452
23453 \end_inset
23454
23455
23456 \begin_inset Flex Code
23457 status collapsed
23458
23459 \begin_layout Plain Layout
23460 no_strikeout
23461 \end_layout
23462
23463 \end_inset
23464
23465
23466 \begin_inset Flex Code
23467 status collapsed
23468
23469 \begin_layout Plain Layout
23470 no_bar
23471 \end_layout
23472
23473 \end_inset
23474
23475
23476 \begin_inset Flex Code
23477 status collapsed
23478
23479 \begin_layout Plain Layout
23480 no_uuline
23481 \end_layout
23482
23483 \end_inset
23484
23485  and 
23486 \begin_inset Flex Code
23487 status collapsed
23488
23489 \begin_layout Plain Layout
23490 no_uwave
23491 \end_layout
23492
23493 \end_inset
23494
23495 .
23496  Each of these turns on or off the corresponding attribute.
23497  For example, 
23498 \begin_inset Flex Code
23499 status collapsed
23500
23501 \begin_layout Plain Layout
23502 emph
23503 \end_layout
23504
23505 \end_inset
23506
23507  turns on emphasis, and 
23508 \begin_inset Flex Code
23509 status collapsed
23510
23511 \begin_layout Plain Layout
23512 no_emph
23513 \end_layout
23514
23515 \end_inset
23516
23517  turns it off.
23518  
23519 \begin_inset Newline newline
23520 \end_inset
23521
23522 If the latter seems puzzling, remember that the font settings for the present
23523  context are generally inherited from the surrounding context.
23524  So 
23525 \begin_inset Flex Code
23526 status collapsed
23527
23528 \begin_layout Plain Layout
23529 no_emph
23530 \end_layout
23531
23532 \end_inset
23533
23534  would turn off the emphasis that was anyway in effect, say, in a theorem
23535  environment.
23536 \end_layout
23537
23538 \begin_layout Description
23539 \begin_inset Flex Code
23540 status collapsed
23541
23542 \begin_layout Plain Layout
23543 Series
23544 \end_layout
23545
23546 \end_inset
23547
23548  [
23549 \begin_inset Flex Code
23550 status collapsed
23551
23552 \begin_layout Plain Layout
23553
23554 \emph on
23555 Medium
23556 \end_layout
23557
23558 \end_inset
23559
23560
23561 \begin_inset Flex Code
23562 status collapsed
23563
23564 \begin_layout Plain Layout
23565 Bold
23566 \end_layout
23567
23568 \end_inset
23569
23570
23571 \end_layout
23572
23573 \begin_layout Description
23574 \begin_inset Flex Code
23575 status collapsed
23576
23577 \begin_layout Plain Layout
23578 Shape
23579 \end_layout
23580
23581 \end_inset
23582
23583  [
23584 \begin_inset Flex Code
23585 status collapsed
23586
23587 \begin_layout Plain Layout
23588
23589 \emph on
23590 Up
23591 \end_layout
23592
23593 \end_inset
23594
23595
23596 \begin_inset Flex Code
23597 status collapsed
23598
23599 \begin_layout Plain Layout
23600 Italic
23601 \end_layout
23602
23603 \end_inset
23604
23605
23606 \begin_inset Flex Code
23607 status collapsed
23608
23609 \begin_layout Plain Layout
23610 SmallCaps
23611 \end_layout
23612
23613 \end_inset
23614
23615
23616 \begin_inset Flex Code
23617 status collapsed
23618
23619 \begin_layout Plain Layout
23620 Slanted
23621 \end_layout
23622
23623 \end_inset
23624
23625
23626 \end_layout
23627
23628 \begin_layout Description
23629 \begin_inset Flex Code
23630 status collapsed
23631
23632 \begin_layout Plain Layout
23633 Size
23634 \end_layout
23635
23636 \end_inset
23637
23638  [
23639 \begin_inset Flex Code
23640 status collapsed
23641
23642 \begin_layout Plain Layout
23643 tiny
23644 \end_layout
23645
23646 \end_inset
23647
23648
23649 \begin_inset Flex Code
23650 status collapsed
23651
23652 \begin_layout Plain Layout
23653 small
23654 \end_layout
23655
23656 \end_inset
23657
23658
23659 \begin_inset Flex Code
23660 status collapsed
23661
23662 \begin_layout Plain Layout
23663
23664 \emph on
23665 normal
23666 \end_layout
23667
23668 \end_inset
23669
23670
23671 \begin_inset Flex Code
23672 status collapsed
23673
23674 \begin_layout Plain Layout
23675 large
23676 \end_layout
23677
23678 \end_inset
23679
23680
23681 \begin_inset Flex Code
23682 status collapsed
23683
23684 \begin_layout Plain Layout
23685 larger
23686 \end_layout
23687
23688 \end_inset
23689
23690
23691 \begin_inset Flex Code
23692 status collapsed
23693
23694 \begin_layout Plain Layout
23695 largest
23696 \end_layout
23697
23698 \end_inset
23699
23700
23701 \begin_inset Flex Code
23702 status collapsed
23703
23704 \begin_layout Plain Layout
23705 huge
23706 \end_layout
23707
23708 \end_inset
23709
23710
23711 \begin_inset Flex Code
23712 status collapsed
23713
23714 \begin_layout Plain Layout
23715 giant
23716 \end_layout
23717
23718 \end_inset
23719
23720 ]
23721 \end_layout
23722
23723 \begin_layout Subsection
23724 \begin_inset CommandInset label
23725 LatexCommand label
23726 name "subsec:Citation-engine-description"
23727
23728 \end_inset
23729
23730 Cite engine description
23731 \end_layout
23732
23733 \begin_layout Standard
23734 The 
23735 \begin_inset Flex Code
23736 status collapsed
23737
23738 \begin_layout Plain Layout
23739 CiteEngine
23740 \end_layout
23741
23742 \end_inset
23743
23744  blocks, as used mainly in cite engine files (see 
23745 \begin_inset CommandInset ref
23746 LatexCommand ref
23747 reference "subsec:Cite-Engine-Files"
23748 plural "false"
23749 caps "false"
23750 noprefix "false"
23751
23752 \end_inset
23753
23754 ), define the citation commands provided by a specific 
23755 \begin_inset Quotes eld
23756 \end_inset
23757
23758 cite engine
23759 \begin_inset Quotes erd
23760 \end_inset
23761
23762 .
23763  A cite engine, in \SpecialChar LyX
23764  terms, is way specific way to format citations, using
23765  numbers, author names and/or years.
23766  Currently, \SpecialChar LyX
23767  supports three such engine types, namely:
23768 \end_layout
23769
23770 \begin_layout Enumerate
23771 \begin_inset Flex Code
23772 status collapsed
23773
23774 \begin_layout Plain Layout
23775 default
23776 \end_layout
23777
23778 \end_inset
23779
23780 : the default Bib\SpecialChar TeX
23781  way to format citations, a simple numeric style (e.
23782 \begin_inset space \thinspace{}
23783 \end_inset
23784
23785 g., 
23786 \begin_inset Quotes eld
23787 \end_inset
23788
23789 [1]
23790 \begin_inset Quotes erd
23791 \end_inset
23792
23793 )
23794 \end_layout
23795
23796 \begin_layout Enumerate
23797 \begin_inset Flex Code
23798 status collapsed
23799
23800 \begin_layout Plain Layout
23801 authoryear
23802 \end_layout
23803
23804 \end_inset
23805
23806 : Harvard-styled citations using author names and publication year (e.
23807 \begin_inset space \thinspace{}
23808 \end_inset
23809
23810 g., 
23811 \begin_inset Quotes eld
23812 \end_inset
23813
23814 Smith and Miller (2017b)
23815 \begin_inset Quotes erd
23816 \end_inset
23817
23818 )
23819 \end_layout
23820
23821 \begin_layout Enumerate
23822 \begin_inset Flex Code
23823 status collapsed
23824
23825 \begin_layout Plain Layout
23826 numerical
23827 \end_layout
23828
23829 \end_inset
23830
23831 : extended numerical citations that also allow for author or title next
23832  to the number (e.
23833 \begin_inset space \thinspace{}
23834 \end_inset
23835
23836 g., 
23837 \begin_inset Quotes eld
23838 \end_inset
23839
23840 Smith and Miller [1]
23841 \begin_inset Quotes erd
23842 \end_inset
23843
23844 )
23845 \end_layout
23846
23847 \begin_layout Standard
23848 \begin_inset Flex Code
23849 status collapsed
23850
23851 \begin_layout Plain Layout
23852 CiteEngine
23853 \end_layout
23854
23855 \end_inset
23856
23857  blocks look like this:
23858 \end_layout
23859
23860 \begin_layout LyX-Code
23861 CiteEngine default
23862 \end_layout
23863
23864 \begin_layout LyX-Code
23865  cite
23866 \end_layout
23867
23868 \begin_layout LyX-Code
23869  Citep*[][]
23870 \end_layout
23871
23872 \begin_layout LyX-Code
23873  citeyearpar[][]=parencite*
23874 \end_layout
23875
23876 \begin_layout LyX-Code
23877  ...
23878 \end_layout
23879
23880 \begin_layout LyX-Code
23881 End
23882 \end_layout
23883
23884 \begin_layout Standard
23885 The tag following 
23886 \begin_inset Flex Code
23887 status collapsed
23888
23889 \begin_layout Plain Layout
23890 CiteEngine
23891 \end_layout
23892
23893 \end_inset
23894
23895  denotes the engine.
23896  The individual lines respectively define a cite command or cite command
23897  paradigm supported by this engine.
23898  The line can be as simple as a cite command that is used both to name the
23899  respective \SpecialChar LyX
23900  command and the \SpecialChar LaTeX
23901  output or more complex in order to differentiate
23902  things.
23903  The full syntax is:
23904 \end_layout
23905
23906 \begin_layout LyX-Code
23907 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23908 \end_layout
23909
23910 \begin_layout Itemize
23911 \begin_inset Flex Code
23912 status collapsed
23913
23914 \begin_layout Plain Layout
23915 LyXName
23916 \end_layout
23917
23918 \end_inset
23919
23920 : The name as used in the 
23921 \begin_inset Flex Code
23922 status collapsed
23923
23924 \begin_layout Plain Layout
23925 *.lyx
23926 \end_layout
23927
23928 \end_inset
23929
23930  file.
23931 \end_layout
23932
23933 \begin_deeper
23934 \begin_layout Standard
23935 For portability reasons, we try to use the same name for same-formatted
23936  commands in different cite packages (thus many names stem from natbib,
23937  and thus we need to differentiate a 
23938 \begin_inset Flex Code
23939 status collapsed
23940
23941 \begin_layout Plain Layout
23942 latexcmd
23943 \end_layout
23944
23945 \end_inset
23946
23947  sometimes, if the \SpecialChar LaTeX
23948  command names differ).
23949 \end_layout
23950
23951 \end_deeper
23952 \begin_layout Itemize
23953 \begin_inset Flex Code
23954 status collapsed
23955
23956 \begin_layout Plain Layout
23957 alias
23958 \end_layout
23959
23960 \end_inset
23961
23962 : a (comma-separated) list of commands that fall back to the given 
23963 \begin_inset Flex Code
23964 status collapsed
23965
23966 \begin_layout Plain Layout
23967 LyXName
23968 \end_layout
23969
23970 \end_inset
23971
23972  in the current engine.
23973  This eases the switch of citation packages and engines.
23974  The 
23975 \begin_inset Flex Code
23976 status collapsed
23977
23978 \begin_layout Plain Layout
23979 alias
23980 \end_layout
23981
23982 \end_inset
23983
23984  can be compared to 
23985 \begin_inset Flex Code
23986 status collapsed
23987
23988 \begin_layout Plain Layout
23989 ObsoletedBy
23990 \end_layout
23991
23992 \end_inset
23993
23994  in layout definitions.
23995 \end_layout
23996
23997 \begin_layout Itemize
23998 \begin_inset Flex Code
23999 status collapsed
24000
24001 \begin_layout Plain Layout
24002 latexcmd
24003 \end_layout
24004
24005 \end_inset
24006
24007 : The actual \SpecialChar LaTeX
24008  command that is output.
24009  
24010 \end_layout
24011
24012 \begin_layout Standard
24013 \begin_inset Flex Code
24014 status collapsed
24015
24016 \begin_layout Plain Layout
24017 Alias
24018 \end_layout
24019
24020 \end_inset
24021
24022  and 
24023 \begin_inset Flex Code
24024 status collapsed
24025
24026 \begin_layout Plain Layout
24027 latexcmd
24028 \end_layout
24029
24030 \end_inset
24031
24032  are optional.
24033  If no 
24034 \begin_inset Flex Code
24035 status collapsed
24036
24037 \begin_layout Plain Layout
24038 latexcmd
24039 \end_layout
24040
24041 \end_inset
24042
24043  is given, the 
24044 \begin_inset Flex Code
24045 status collapsed
24046
24047 \begin_layout Plain Layout
24048 LyXName
24049 \end_layout
24050
24051 \end_inset
24052
24053  will be output to \SpecialChar LaTeX
24054 .
24055 \end_layout
24056
24057 \begin_layout Standard
24058 Note further:
24059 \end_layout
24060
24061 \begin_layout Itemize
24062 Capitalization indicates that the command also has a capitalized form (
24063 \begin_inset Flex Code
24064 status collapsed
24065
24066 \begin_layout Plain Layout
24067
24068 \backslash
24069 Latexcmd
24070 \end_layout
24071
24072 \end_inset
24073
24074  vs.
24075  
24076 \begin_inset Flex Code
24077 status collapsed
24078
24079 \begin_layout Plain Layout
24080
24081 \backslash
24082 latexcmd
24083 \end_layout
24084
24085 \end_inset
24086
24087 ).
24088  These usually enforce up-casing of name prefixes (
24089 \emph on
24090 von Goethe
24091 \emph default
24092  
24093 \begin_inset Formula $\Rightarrow$
24094 \end_inset
24095
24096  
24097 \emph on
24098 Von Goethe
24099 \emph default
24100 ).
24101 \end_layout
24102
24103 \begin_layout Itemize
24104 Brackets 
24105 \begin_inset Flex Code
24106 status collapsed
24107
24108 \begin_layout Plain Layout
24109 []
24110 \end_layout
24111
24112 \end_inset
24113
24114  indicate the number of optional arguments (there can be 0–2).
24115 \end_layout
24116
24117 \begin_layout Itemize
24118 A star 
24119 \begin_inset Flex Code
24120 status collapsed
24121
24122 \begin_layout Plain Layout
24123 *
24124 \end_layout
24125
24126 \end_inset
24127
24128  indicates there is a starred version of the command (
24129 \begin_inset Flex Code
24130 status collapsed
24131
24132 \begin_layout Plain Layout
24133
24134 \backslash
24135 latexcmd*
24136 \end_layout
24137
24138 \end_inset
24139
24140  vs.
24141  
24142 \begin_inset Flex Code
24143 status collapsed
24144
24145 \begin_layout Plain Layout
24146
24147 \backslash
24148 latexcmd
24149 \end_layout
24150
24151 \end_inset
24152
24153 ).
24154  
24155 \end_layout
24156
24157 \begin_deeper
24158 \begin_layout Standard
24159 By default, the starred version means: Output all authors even if it should
24160  be shortened with 
24161 \begin_inset Quotes eld
24162 \end_inset
24163
24164 et al.
24165 \begin_inset Quotes erd
24166 \end_inset
24167
24168  due to the 
24169 \begin_inset Flex Code
24170 status collapsed
24171
24172 \begin_layout Plain Layout
24173 MaxCiteNames
24174 \end_layout
24175
24176 \end_inset
24177
24178  threshold.
24179 \end_layout
24180
24181 \begin_layout Standard
24182 If the star has a different meaning for a given command, it can be specified
24183  in angle brackets: 
24184 \begin_inset Flex Code
24185 status collapsed
24186
24187 \begin_layout Plain Layout
24188 <!_stardesc!_stardesctooltip>
24189 \end_layout
24190
24191 \end_inset
24192
24193 .
24194  Maximal two translatable macro keywords, marked by the prefix 
24195 \begin_inset Flex Code
24196 status collapsed
24197
24198 \begin_layout Plain Layout
24199 !_
24200 \end_layout
24201
24202 \end_inset
24203
24204 , can be given.
24205  The first points to the string that replaces the 
24206 \begin_inset Quotes eld
24207 \end_inset
24208
24209 Full aut&hor list
24210 \begin_inset Quotes erd
24211 \end_inset
24212
24213  checkbox label in the citation dialog, the second one to an optional tool
24214  tip for this checkbox.
24215  
24216 \end_layout
24217
24218 \begin_layout Standard
24219 Note that these two macros have to be defined in a 
24220 \begin_inset Flex Code
24221 status collapsed
24222
24223 \begin_layout Plain Layout
24224 CiteFormat
24225 \end_layout
24226
24227 \end_inset
24228
24229  (see next section), dropping the 
24230 \begin_inset Flex Code
24231 status collapsed
24232
24233 \begin_layout Plain Layout
24234 !
24235 \end_layout
24236
24237 \end_inset
24238
24239  from the prefix, like this: 
24240 \end_layout
24241
24242 \begin_layout LyX-Code
24243 _stardesc Sta&rred command label
24244 \end_layout
24245
24246 \begin_layout LyX-Code
24247 _stardesctooltip Tooltip for the starred command checkbox.
24248 \end_layout
24249
24250 \end_deeper
24251 \begin_layout Itemize
24252 A dollar sign 
24253 \begin_inset Flex Code
24254 status collapsed
24255
24256 \begin_layout Plain Layout
24257 $
24258 \end_layout
24259
24260 \end_inset
24261
24262  indicates that this command features 
24263 \begin_inset Quotes eld
24264 \end_inset
24265
24266 qualified citation lists
24267 \begin_inset Quotes erd
24268 \end_inset
24269
24270 .
24271  This is a 
24272 \family sans
24273 Biblatex
24274 \family default
24275 -specific feature for multi-reference citations where an individual pre-
24276  and postnote can be given to each reference in the list.
24277  Please refer to the 
24278 \family sans
24279 Biblatex
24280 \family default
24281  manual for details.
24282 \change_inserted -712698321 1526898670
24283
24284 \end_layout
24285
24286 \begin_layout Standard
24287
24288 \change_inserted -712698321 1526899524
24289 If you want to add a cite command to a cite engine (e.
24290 \begin_inset space \thinspace{}
24291 \end_inset
24292
24293 g., add a specific command provided by a class), you can use 
24294 \begin_inset Flex Code
24295 status collapsed
24296
24297 \begin_layout Plain Layout
24298
24299 \change_inserted -712698321 1526898768
24300 AddToCiteEngine <engine type> \SpecialChar ldots
24301  End
24302 \change_unchanged
24303
24304 \end_layout
24305
24306 \end_inset
24307
24308 .
24309  Note that only cite commands that do not exist yet are added.
24310 \change_unchanged
24311
24312 \end_layout
24313
24314 \begin_layout Subsection
24315 \begin_inset CommandInset label
24316 LatexCommand label
24317 name "subsec:Citation-format-description"
24318
24319 \end_inset
24320
24321 Cite format description
24322 \end_layout
24323
24324 \begin_layout Standard
24325 The 
24326 \begin_inset Flex Code
24327 status collapsed
24328
24329 \begin_layout Plain Layout
24330 CiteFormat
24331 \end_layout
24332
24333 \end_inset
24334
24335  blocks are used to describe how bibliographic information should be displayed,
24336  both within \SpecialChar LyX
24337  itself (in the citation dialog and in tooltips, for example)
24338  and in XHTML output.
24339  Such a block might look like this:
24340 \end_layout
24341
24342 \begin_layout LyX-Code
24343 CiteFormat
24344 \end_layout
24345
24346 \begin_layout LyX-Code
24347  article ...
24348 \end_layout
24349
24350 \begin_layout LyX-Code
24351  book ...
24352 \end_layout
24353
24354 \begin_layout LyX-Code
24355 End
24356 \end_layout
24357
24358 \begin_layout Standard
24359 or
24360 \end_layout
24361
24362 \begin_layout LyX-Code
24363 CiteFormat
24364 \end_layout
24365
24366 \begin_layout LyX-Code
24367  cite ...
24368 \end_layout
24369
24370 \begin_layout LyX-Code
24371  citet*[][] ...
24372 \end_layout
24373
24374 \begin_layout LyX-Code
24375 End
24376 \end_layout
24377
24378 \begin_layout Standard
24379 In the first case, the individual lines define how the bibliographic information
24380  associated with an article or book, respectively, is to be displayed, and
24381  such a definition can be given for any 
24382 \begin_inset Quotes els
24383 \end_inset
24384
24385 entry type
24386 \begin_inset Quotes ers
24387 \end_inset
24388
24389  that might be present in a Bib\SpecialChar TeX
24390  file.
24391  \SpecialChar LyX
24392  defines a default format in the source code that will be used if no specific
24393  definition has been given.
24394  \SpecialChar LyX
24395  predefines several formats in the file 
24396 \begin_inset Flex Code
24397 status collapsed
24398
24399 \begin_layout Plain Layout
24400 stdciteformats.inc
24401 \end_layout
24402
24403 \end_inset
24404
24405 , which is included in most of \SpecialChar LyX
24406 's document classes.
24407 \end_layout
24408
24409 \begin_layout Standard
24410 In the second case, the lines define how a specific citation command (in
24411  the example 
24412 \begin_inset Flex Code
24413 status collapsed
24414
24415 \begin_layout Plain Layout
24416
24417 \backslash
24418 cite
24419 \end_layout
24420
24421 \end_inset
24422
24423
24424 \begin_inset Flex Code
24425 status collapsed
24426
24427 \begin_layout Plain Layout
24428
24429 \backslash
24430 citet
24431 \end_layout
24432
24433 \end_inset
24434
24435 ) is to be displayed on the citation inset label, in the citation dialog,
24436  menu or XHTML output.
24437  \SpecialChar LyX
24438  defines such formats for the citation style variants it supports via 
24439 \family sans
24440 Document\SpecialChar menuseparator
24441 Setting\SpecialChar menuseparator
24442 Bibliography\SpecialChar ldots
24443
24444 \family default
24445  in specific 
24446 \begin_inset Flex Code
24447 status collapsed
24448
24449 \begin_layout Plain Layout
24450 *.citeengine
24451 \end_layout
24452
24453 \end_inset
24454
24455  files that are shipped with \SpecialChar LyX
24456  (see 
24457 \begin_inset CommandInset ref
24458 LatexCommand ref
24459 reference "subsec:Cite-Engine-Files"
24460 plural "false"
24461 caps "false"
24462 noprefix "false"
24463
24464 \end_inset
24465
24466 ).
24467 \end_layout
24468
24469 \begin_layout Standard
24470 The definitions use a simple language that allows Bib\SpecialChar TeX
24471  keys to be replaced
24472  with their values.
24473  Keys should be enclosed in 
24474 \begin_inset Flex Code
24475 status collapsed
24476
24477 \begin_layout Plain Layout
24478 %
24479 \end_layout
24480
24481 \end_inset
24482
24483  signs, e.g.: 
24484 \begin_inset Flex Code
24485 status collapsed
24486
24487 \begin_layout Plain Layout
24488 %author%
24489 \end_layout
24490
24491 \end_inset
24492
24493 .
24494  So a simple definition might look like this:
24495 \end_layout
24496
24497 \begin_layout LyX-Code
24498 misc %author%, 
24499 \begin_inset Quotes eld
24500 \end_inset
24501
24502 %title%
24503 \begin_inset Quotes erd
24504 \end_inset
24505
24506 .
24507 \end_layout
24508
24509 \begin_layout Standard
24510 This would print the author, followed by a comma, followed by the title,
24511  in quotes, followed by a period.
24512 \end_layout
24513
24514 \begin_layout Standard
24515 Of course, sometimes you may want to print a key only if it exists.
24516  This can be done by using a conditional construction, such as: 
24517 \begin_inset Flex Code
24518 status collapsed
24519
24520 \begin_layout Plain Layout
24521 {%volume%[[vol.
24522 \begin_inset space ~
24523 \end_inset
24524
24525 %volume%]]}
24526 \end_layout
24527
24528 \end_inset
24529
24530 .
24531  This says: If the 
24532 \begin_inset Flex Code
24533 status collapsed
24534
24535 \begin_layout Plain Layout
24536 volume
24537 \end_layout
24538
24539 \end_inset
24540
24541  key exists, then print 
24542 \begin_inset Quotes eld
24543 \end_inset
24544
24545 vol.
24546 \begin_inset space ~
24547 \end_inset
24548
24549
24550 \begin_inset Quotes erd
24551 \end_inset
24552
24553  followed by the volume key.
24554  It is also possible to have an else clause in the conditional, such as:
24555 \begin_inset Newline newline
24556 \end_inset
24557
24558
24559 \begin_inset Flex Code
24560 status collapsed
24561
24562 \begin_layout Plain Layout
24563 {%author%[[%author%]][[%editor%, ed.]]}
24564 \end_layout
24565
24566 \end_inset
24567
24568 .
24569 \begin_inset Newline newline
24570 \end_inset
24571
24572 Here, the 
24573 \begin_inset Flex Code
24574 status collapsed
24575
24576 \begin_layout Plain Layout
24577 author
24578 \end_layout
24579
24580 \end_inset
24581
24582  key is printed if it exists; otherwise, the editor key is printed, followed
24583  by 
24584 \begin_inset Quotes eld
24585 \end_inset
24586
24587 ,
24588 \begin_inset space ~
24589 \end_inset
24590
24591 ed.
24592 \begin_inset Quotes erd
24593 \end_inset
24594
24595  Note that the key is again enclosed in 
24596 \begin_inset Flex Code
24597 status collapsed
24598
24599 \begin_layout Plain Layout
24600 %
24601 \end_layout
24602
24603 \end_inset
24604
24605  signs; the entire conditional is enclosed in braces; and the if and else
24606  clauses are enclosed in double brackets, 
24607 \begin_inset Quotes eld
24608 \end_inset
24609
24610
24611 \begin_inset Flex Code
24612 status collapsed
24613
24614 \begin_layout Plain Layout
24615 [[
24616 \end_layout
24617
24618 \end_inset
24619
24620
24621 \begin_inset Quotes eld
24622 \end_inset
24623
24624  and 
24625 \begin_inset Quotes eld
24626 \end_inset
24627
24628
24629 \begin_inset Flex Code
24630 status collapsed
24631
24632 \begin_layout Plain Layout
24633 ]]
24634 \end_layout
24635
24636 \end_inset
24637
24638
24639 \begin_inset Quotes erd
24640 \end_inset
24641
24642 .
24643  There must be no space between any of these.
24644 \end_layout
24645
24646 \begin_layout Standard
24647 Next to the entry keys, there are some special keys that can be used for
24648  these conditionals:
24649 \end_layout
24650
24651 \begin_layout Itemize
24652 \begin_inset Flex Code
24653 status collapsed
24654
24655 \begin_layout Plain Layout
24656 {%dialog%[[true]][[false]]}
24657 \end_layout
24658
24659 \end_inset
24660
24661 : process the 
24662 \begin_inset Quotes eld
24663 \end_inset
24664
24665 true
24666 \begin_inset Quotes erd
24667 \end_inset
24668
24669  part for dialogs and menus, the 
24670 \begin_inset Quotes eld
24671 \end_inset
24672
24673 false
24674 \begin_inset Quotes erd
24675 \end_inset
24676
24677  part for other contexts (workarea, export)
24678 \end_layout
24679
24680 \begin_layout Itemize
24681 \begin_inset Flex Code
24682 status collapsed
24683
24684 \begin_layout Plain Layout
24685 {%export%[[true]][[false]]}
24686 \end_layout
24687
24688 \end_inset
24689
24690 : process the 
24691 \begin_inset Quotes eld
24692 \end_inset
24693
24694 true
24695 \begin_inset Quotes erd
24696 \end_inset
24697
24698  part for export and menus, the 
24699 \begin_inset Quotes eld
24700 \end_inset
24701
24702 false
24703 \begin_inset Quotes erd
24704 \end_inset
24705
24706  part for other contexts (workarea, dialog)
24707 \end_layout
24708
24709 \begin_layout Itemize
24710 \begin_inset Flex Code
24711 status collapsed
24712
24713 \begin_layout Plain Layout
24714 {%next%[[true]]}
24715 \end_layout
24716
24717 \end_inset
24718
24719 : process the 
24720 \begin_inset Quotes eld
24721 \end_inset
24722
24723 true
24724 \begin_inset Quotes erd
24725 \end_inset
24726
24727  part if another item follows (e.
24728 \begin_inset space \thinspace{}
24729 \end_inset
24730
24731 g., in a citation with multiple keys)
24732 \end_layout
24733
24734 \begin_layout Itemize
24735 \begin_inset Flex Code
24736 status collapsed
24737
24738 \begin_layout Plain Layout
24739 {%second%[[true]][[false]]}
24740 \end_layout
24741
24742 \end_inset
24743
24744 : process the 
24745 \begin_inset Quotes eld
24746 \end_inset
24747
24748 true
24749 \begin_inset Quotes erd
24750 \end_inset
24751
24752  if this is the second of multiple items, else the 
24753 \begin_inset Quotes eld
24754 \end_inset
24755
24756 false
24757 \begin_inset Quotes erd
24758 \end_inset
24759
24760  part
24761 \end_layout
24762
24763 \begin_layout Itemize
24764 \begin_inset Flex Code
24765 status collapsed
24766
24767 \begin_layout Plain Layout
24768 {%ifstar%[[true]][[false]]}
24769 \end_layout
24770
24771 \end_inset
24772
24773 : process the 
24774 \begin_inset Quotes eld
24775 \end_inset
24776
24777 true
24778 \begin_inset Quotes erd
24779 \end_inset
24780
24781  part for starred citation commands (such as 
24782 \begin_inset Flex Code
24783 status collapsed
24784
24785 \begin_layout Plain Layout
24786
24787 \backslash
24788 cite*
24789 \end_layout
24790
24791 \end_inset
24792
24793 ), the false part for unstarred
24794 \end_layout
24795
24796 \begin_layout Itemize
24797 \begin_inset Flex Code
24798 status collapsed
24799
24800 \begin_layout Plain Layout
24801 {%ifentrytype:<type>%[[true]][[false]]}
24802 \end_layout
24803
24804 \end_inset
24805
24806 : process the 
24807 \begin_inset Quotes eld
24808 \end_inset
24809
24810 true
24811 \begin_inset Quotes erd
24812 \end_inset
24813
24814  if the current entry type matches 
24815 \begin_inset Flex Code
24816 status collapsed
24817
24818 \begin_layout Plain Layout
24819 <type>
24820 \end_layout
24821
24822 \end_inset
24823
24824 , else the false part (e.g., in a citation definition: 
24825 \begin_inset Flex Code
24826 status collapsed
24827
24828 \begin_layout Plain Layout
24829 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24830 \end_layout
24831
24832 \end_inset
24833
24834 )
24835 \end_layout
24836
24837 \begin_layout Itemize
24838 \begin_inset Flex Code
24839 status collapsed
24840
24841 \begin_layout Plain Layout
24842 {%ifmultiple:<authortype>%[[true]][[false]]}
24843 \end_layout
24844
24845 \end_inset
24846
24847 : process the 
24848 \begin_inset Quotes eld
24849 \end_inset
24850
24851 true
24852 \begin_inset Quotes erd
24853 \end_inset
24854
24855  if the current author type (author, editor etc.) has multiple authors, else
24856  the false part (e.g., in a bibliography definition: 
24857 \begin_inset Flex Code
24858 status collapsed
24859
24860 \begin_layout Plain Layout
24861 {%ifmultiple:editor%[[eds.]][[ed.]]}
24862 \end_layout
24863
24864 \end_inset
24865
24866 )
24867 \end_layout
24868
24869 \begin_layout Itemize
24870 \begin_inset Flex Code
24871 status collapsed
24872
24873 \begin_layout Plain Layout
24874 {%ifqualified%[[true]][[false]]}
24875 \end_layout
24876
24877 \end_inset
24878
24879 : process the 
24880 \begin_inset Quotes eld
24881 \end_inset
24882
24883 true
24884 \begin_inset Quotes erd
24885 \end_inset
24886
24887  part if the current citation is a qualified citation list (a specific 
24888 \family sans
24889 Biblatex
24890 \family default
24891  format for multi-reference citations), the false part if this is not the
24892  case.
24893 \end_layout
24894
24895 \begin_layout Standard
24896 We said that 
24897 \begin_inset Flex Code
24898 status collapsed
24899
24900 \begin_layout Plain Layout
24901 %author%
24902 \end_layout
24903
24904 \end_inset
24905
24906  prints the author key as it is recorded in the bibliography file.
24907  This might not be what you want, since it will result in a string such
24908  as 
24909 \begin_inset Quotes eld
24910 \end_inset
24911
24912 Miller, Peter and Smith, Mary and White, Jane
24913 \begin_inset Quotes erd
24914 \end_inset
24915
24916  (since 
24917 \begin_inset Quotes eld
24918 \end_inset
24919
24920 and
24921 \begin_inset Quotes erd
24922 \end_inset
24923
24924  is used by Bib\SpecialChar TeX
24925  to delimit authors).
24926  \SpecialChar LyX
24927  therefore provides some methods to get properly formatted name lists (which
24928  will also get translated).
24929  The following keys are provided:
24930 \end_layout
24931
24932 \begin_layout Enumerate
24933 For name lists with pre- and surname, suitable for the main authors/editors
24934  of a bibliography item.
24935  The 
24936 \begin_inset Flex Code
24937 status collapsed
24938
24939 \begin_layout Plain Layout
24940 <nametype>
24941 \end_layout
24942
24943 \end_inset
24944
24945  part denotes the kind of list that is requested (e.g.
24946  
24947 \begin_inset Flex Code
24948 status collapsed
24949
24950 \begin_layout Plain Layout
24951 <nametype:author>
24952 \end_layout
24953
24954 \end_inset
24955
24956 ):
24957 \end_layout
24958
24959 \begin_deeper
24960 \begin_layout Itemize
24961 \begin_inset Flex Code
24962 status collapsed
24963
24964 \begin_layout Plain Layout
24965 %abbrvnames:<nametype>%
24966 \end_layout
24967
24968 \end_inset
24969
24970 : Provides a name list which is abbreviated (with 
24971 \begin_inset Quotes eld
24972 \end_inset
24973
24974 et al.
24975 \begin_inset Quotes erd
24976 \end_inset
24977
24978 ) when 
24979 \begin_inset Flex Code
24980 status collapsed
24981
24982 \begin_layout Plain Layout
24983 MaxCiteNames
24984 \end_layout
24985
24986 \end_inset
24987
24988  is reached.
24989 \end_layout
24990
24991 \begin_layout Itemize
24992 \begin_inset Flex Code
24993 status collapsed
24994
24995 \begin_layout Plain Layout
24996 %fullnames:<nametype>%
24997 \end_layout
24998
24999 \end_inset
25000
25001 : Provides a full name list (never abbreviated with 
25002 \begin_inset Quotes eld
25003 \end_inset
25004
25005 et al.
25006 \begin_inset Quotes erd
25007 \end_inset
25008
25009 ).
25010 \end_layout
25011
25012 \begin_layout Itemize
25013 \begin_inset Flex Code
25014 status collapsed
25015
25016 \begin_layout Plain Layout
25017 %forceabbrvnames:<nametype>%
25018 \end_layout
25019
25020 \end_inset
25021
25022 : Provides a name list which is always abbreviated (with 
25023 \begin_inset Quotes eld
25024 \end_inset
25025
25026 et al.
25027 \begin_inset Quotes erd
25028 \end_inset
25029
25030 ) irrespective of 
25031 \begin_inset Flex Code
25032 status collapsed
25033
25034 \begin_layout Plain Layout
25035 MaxCiteNames
25036 \end_layout
25037
25038 \end_inset
25039
25040 .
25041 \end_layout
25042
25043 \end_deeper
25044 \begin_layout Enumerate
25045 Alternative name lists with pre- and surname, if the order of pre- and surname
25046  inside the bibliography item differs (as in: 
25047 \begin_inset Quotes eld
25048 \end_inset
25049
25050 Miller, John: Some text, in: Mary Smith, ed.: A volume
25051 \begin_inset Quotes erd
25052 \end_inset
25053
25054 ):
25055 \end_layout
25056
25057 \begin_deeper
25058 \begin_layout Itemize
25059 \begin_inset Flex Code
25060 status collapsed
25061
25062 \begin_layout Plain Layout
25063 %abbrvbynames:<nametype>%
25064 \end_layout
25065
25066 \end_inset
25067
25068 : Provides a name list which is abbreviated (with 
25069 \begin_inset Quotes eld
25070 \end_inset
25071
25072 et al.
25073 \begin_inset Quotes erd
25074 \end_inset
25075
25076 ) when 
25077 \begin_inset Flex Code
25078 status collapsed
25079
25080 \begin_layout Plain Layout
25081 MaxCiteNames
25082 \end_layout
25083
25084 \end_inset
25085
25086  is reached.
25087 \end_layout
25088
25089 \begin_layout Itemize
25090 \begin_inset Flex Code
25091 status collapsed
25092
25093 \begin_layout Plain Layout
25094 %fullbynames:<nametype>%
25095 \end_layout
25096
25097 \end_inset
25098
25099 : Provides a full name list (never abbreviated with 
25100 \begin_inset Quotes eld
25101 \end_inset
25102
25103 et al.
25104 \begin_inset Quotes erd
25105 \end_inset
25106
25107 ).
25108 \end_layout
25109
25110 \begin_layout Itemize
25111 \begin_inset Flex Code
25112 status collapsed
25113
25114 \begin_layout Plain Layout
25115 %forceabbrvbynames:<nametype>%
25116 \end_layout
25117
25118 \end_inset
25119
25120 : Provides a name list which is always abbreviated (with 
25121 \begin_inset Quotes eld
25122 \end_inset
25123
25124 et al.
25125 \begin_inset Quotes erd
25126 \end_inset
25127
25128 ) irrespective of 
25129 \begin_inset Flex Code
25130 status collapsed
25131
25132 \begin_layout Plain Layout
25133 MaxCiteNames
25134 \end_layout
25135
25136 \end_inset
25137
25138 .
25139 \end_layout
25140
25141 \end_deeper
25142 \begin_layout Enumerate
25143 And finally name lists which consist of family names only, as used in author-yea
25144 r citation labels.
25145  These do not take a 
25146 \begin_inset Flex Code
25147 status collapsed
25148
25149 \begin_layout Plain Layout
25150 <nametype>
25151 \end_layout
25152
25153 \end_inset
25154
25155  part, but always return either an author list or, if this does not exist,
25156  an editor list (as common in author-year labels):
25157 \end_layout
25158
25159 \begin_deeper
25160 \begin_layout Itemize
25161 \begin_inset Flex Code
25162 status collapsed
25163
25164 \begin_layout Plain Layout
25165 %abbrvciteauthor%
25166 \end_layout
25167
25168 \end_inset
25169
25170 : Provides a name list which is abbreviated (with 
25171 \begin_inset Quotes eld
25172 \end_inset
25173
25174 et al.
25175 \begin_inset Quotes erd
25176 \end_inset
25177
25178 ) when 
25179 \begin_inset Flex Code
25180 status collapsed
25181
25182 \begin_layout Plain Layout
25183 MaxCiteNames
25184 \end_layout
25185
25186 \end_inset
25187
25188  is reached.
25189 \end_layout
25190
25191 \begin_layout Itemize
25192 \begin_inset Flex Code
25193 status collapsed
25194
25195 \begin_layout Plain Layout
25196 %fullciteauthor%
25197 \end_layout
25198
25199 \end_inset
25200
25201 : Provides a full name list (never abbreviated with 
25202 \begin_inset Quotes eld
25203 \end_inset
25204
25205 et al.
25206 \begin_inset Quotes erd
25207 \end_inset
25208
25209 ).
25210 \end_layout
25211
25212 \begin_layout Itemize
25213 \begin_inset Flex Code
25214 status collapsed
25215
25216 \begin_layout Plain Layout
25217 %forceabbrvciteauthor%
25218 \end_layout
25219
25220 \end_inset
25221
25222 : Provides a name list which is always abbreviated (with 
25223 \begin_inset Quotes eld
25224 \end_inset
25225
25226 et al.
25227 \begin_inset Quotes erd
25228 \end_inset
25229
25230 ) irrespective of 
25231 \begin_inset Flex Code
25232 status collapsed
25233
25234 \begin_layout Plain Layout
25235 MaxCiteNames
25236 \end_layout
25237
25238 \end_inset
25239
25240 .
25241 \end_layout
25242
25243 \end_deeper
25244 \begin_layout Standard
25245 The order of pre- and surname in the former two lists can be adjusted by
25246  these macros:
25247 \end_layout
25248
25249 \begin_layout Itemize
25250 \begin_inset Flex Code
25251 status collapsed
25252
25253 \begin_layout Plain Layout
25254 !firstnameform %surname%, %prename%
25255 \end_layout
25256
25257 \end_inset
25258
25259  (first author in lists of type 1)
25260 \end_layout
25261
25262 \begin_layout Itemize
25263 \begin_inset Flex Code
25264 status collapsed
25265
25266 \begin_layout Plain Layout
25267 !othernameform %surname%, %prename%
25268 \end_layout
25269
25270 \end_inset
25271
25272  (other authors in lists of type 1)
25273 \end_layout
25274
25275 \begin_layout Itemize
25276 \begin_inset Flex Code
25277 status collapsed
25278
25279 \begin_layout Plain Layout
25280 !firstbynameform %prename% %surname%
25281 \end_layout
25282
25283 \end_inset
25284
25285  (first author in lists of type 2)
25286 \end_layout
25287
25288 \begin_layout Itemize
25289 \begin_inset Flex Code
25290 status collapsed
25291
25292 \begin_layout Plain Layout
25293 !otherbynameform %prename% %surname%
25294 \end_layout
25295
25296 \end_inset
25297
25298  (other authors in lists of type 2)
25299 \end_layout
25300
25301 \begin_layout Standard
25302 This allows you to configure namings like 
25303 \begin_inset Quotes eld
25304 \end_inset
25305
25306 Miller, Peter and Mary Smith: \SpecialChar ldots
25307 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
25308
25309 \begin_inset Quotes erd
25310 \end_inset
25311
25312 .
25313 \end_layout
25314
25315 \begin_layout Standard
25316 There is one other piece of syntax available in definitions, which looks
25317  like this: 
25318 \begin_inset Flex Code
25319 status collapsed
25320
25321 \begin_layout Plain Layout
25322 {!<i>!}
25323 \end_layout
25324
25325 \end_inset
25326
25327 .
25328  This defines a piece of formatting information that is to be used when
25329  creating 
25330 \begin_inset Quotes eld
25331 \end_inset
25332
25333 rich text
25334 \begin_inset Quotes erd
25335 \end_inset
25336
25337 .
25338  Obviously, we do not want to output HTML tags when writing plain text,
25339  so they should be wrapped in 
25340 \begin_inset Quotes eld
25341 \end_inset
25342
25343 {!
25344 \begin_inset Quotes erd
25345 \end_inset
25346
25347  and 
25348 \begin_inset Quotes eld
25349 \end_inset
25350
25351 !}
25352 \begin_inset Quotes erd
25353 \end_inset
25354
25355 .
25356 \end_layout
25357
25358 \begin_layout Standard
25359 Two special sorts of definitions are also possible in a 
25360 \begin_inset Flex Code
25361 status collapsed
25362
25363 \begin_layout Plain Layout
25364 CiteFormat
25365 \end_layout
25366
25367 \end_inset
25368
25369  block.
25370  An example of the first would be:
25371 \end_layout
25372
25373 \begin_layout LyX-Code
25374 !quotetitle 
25375 \begin_inset Quotes eld
25376 \end_inset
25377
25378 %title%
25379 \begin_inset Quotes erd
25380 \end_inset
25381
25382
25383 \end_layout
25384
25385 \begin_layout Standard
25386 This is an abbreviation, or macro, and it can be used by treating it as
25387  if it were a key: 
25388 \begin_inset Flex Code
25389 status collapsed
25390
25391 \begin_layout Plain Layout
25392 %!quotetitle%
25393 \end_layout
25394
25395 \end_inset
25396
25397 .
25398  \SpecialChar LyX
25399  will treat 
25400 \begin_inset Flex Code
25401 status collapsed
25402
25403 \begin_layout Plain Layout
25404 %!quotetitle%
25405 \end_layout
25406
25407 \end_inset
25408
25409  exactly as it would treat its definition.
25410  So, let us issue the obvious 
25411 \emph on
25412 warning
25413 \emph default
25414 .
25415  Do not do this:
25416 \end_layout
25417
25418 \begin_layout LyX-Code
25419 !funfun %funfun%
25420 \end_layout
25421
25422 \begin_layout Standard
25423 or anything like it.
25424  \SpecialChar LyX
25425  shouldn't go into an infinite loop, but it may go into a long one before
25426  it gives up.
25427 \end_layout
25428
25429 \begin_layout Standard
25430 The second sort of special definition might look like this:
25431 \end_layout
25432
25433 \begin_layout LyX-Code
25434 B_pptext pp.
25435 \end_layout
25436
25437 \begin_layout Standard
25438 This defines a translatable piece of text, which allows relevant parts of
25439  the bibliography or citation to be translated.
25440  It can be included in a definition by treating it as a key: 
25441 \begin_inset Flex Code
25442 status collapsed
25443
25444 \begin_layout Plain Layout
25445 %B_pptext%
25446 \end_layout
25447
25448 \end_inset
25449
25450 .
25451  Note that there are two different translation paths: All definitions starting
25452  with 
25453 \begin_inset Flex Code
25454 status collapsed
25455
25456 \begin_layout Plain Layout
25457 B_
25458 \end_layout
25459
25460 \end_inset
25461
25462 , such as in the example above, will be translated to the currently active
25463  buffer language (so the translation will match the generated document).
25464  All definitions starting with underscore only will be translated to the
25465  GUI language.
25466  This is the proper translation for strings that only occur in the dialogs
25467  or on buttons, such as this one:
25468 \end_layout
25469
25470 \begin_layout LyX-Code
25471 _addtobib Add to bibliography only.
25472 \end_layout
25473
25474 \begin_layout Standard
25475 Several of these translatable strings are predefined in 
25476 \begin_inset Flex Code
25477 status collapsed
25478
25479 \begin_layout Plain Layout
25480 stdciteformats.inc
25481 \end_layout
25482
25483 \end_inset
25484
25485  and the diverse 
25486 \begin_inset Flex Code
25487 status collapsed
25488
25489 \begin_layout Plain Layout
25490 *.citeengine
25491 \end_layout
25492
25493 \end_inset
25494
25495  files.
25496  Note that these are not macros, in the sense just defined.
25497  They will not be expanded.
25498 \end_layout
25499
25500 \begin_layout Standard
25501 So here then is an example that uses several of these features:
25502 \begin_inset VSpace defskip
25503 \end_inset
25504
25505
25506 \end_layout
25507
25508 \begin_layout Standard
25509 \noindent
25510
25511 \family sans
25512 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
25513 \end_layout
25514
25515 \begin_layout Standard
25516 \begin_inset VSpace defskip
25517 \end_inset
25518
25519 This defines a macro that prints the author, followed by a comma, if the
25520  
25521 \begin_inset Flex Code
25522 status collapsed
25523
25524 \begin_layout Plain Layout
25525 author
25526 \end_layout
25527
25528 \end_inset
25529
25530  key is defined, or else prints the name of the editor, followed by the
25531  
25532 \begin_inset Flex Code
25533 status collapsed
25534
25535 \begin_layout Plain Layout
25536 B_edtext
25537 \end_layout
25538
25539 \end_inset
25540
25541  or its translation (it is by default 
25542 \begin_inset Quotes eld
25543 \end_inset
25544
25545 ed.
25546 \begin_inset Quotes erd
25547 \end_inset
25548
25549 ), if the 
25550 \begin_inset Flex Code
25551 status collapsed
25552
25553 \begin_layout Plain Layout
25554 editor
25555 \end_layout
25556
25557 \end_inset
25558
25559  key is defined.
25560  Note that this is in fact defined in 
25561 \begin_inset Flex Code
25562 status collapsed
25563
25564 \begin_layout Plain Layout
25565 stdciteformats.inc
25566 \end_layout
25567
25568 \end_inset
25569
25570 , so you can use it in your own definitions, or re-definitions, if you load
25571  that file first.
25572 \end_layout
25573
25574 \begin_layout Section
25575 \begin_inset CommandInset label
25576 LatexCommand label
25577 name "sec:Tags-for-XHTML"
25578
25579 \end_inset
25580
25581 Tags for XHTML output
25582 \end_layout
25583
25584 \begin_layout Standard
25585 As with \SpecialChar LaTeX
25586  or DocBook, the format of \SpecialChar LyX
25587 's XHTML output is also controlled by
25588  layout information.
25589  In general, \SpecialChar LyX
25590  provides sensible defaults and, as mentioned earlier, it will
25591  even construct default CSS style rules from the other layout tags.
25592  For example, \SpecialChar LyX
25593  will attempt to use the information provided in the 
25594 \begin_inset Flex Code
25595 status collapsed
25596
25597 \begin_layout Plain Layout
25598 Font
25599 \end_layout
25600
25601 \end_inset
25602
25603  declaration for the Chapter style to write CSS that will appropriately
25604  format chapter headings.
25605 \end_layout
25606
25607 \begin_layout Standard
25608 In many cases, then, you may not have to do anything at all to get acceptable
25609  XHTML output for your own environments, custom insets, and so forth.
25610  But in some cases you will, and so \SpecialChar LyX
25611  provides a number of layout tags that
25612  can be used to customize the XHTML and CSS that are generated.
25613 \end_layout
25614
25615 \begin_layout Standard
25616 Note that there are two tags, 
25617 \begin_inset Flex Code
25618 status collapsed
25619
25620 \begin_layout Plain Layout
25621 HTMLPreamble
25622 \end_layout
25623
25624 \end_inset
25625
25626  and 
25627 \begin_inset Flex Code
25628 status collapsed
25629
25630 \begin_layout Plain Layout
25631 AddToHTMLPreamble
25632 \end_layout
25633
25634 \end_inset
25635
25636  that may appear outside style and inset declarations.
25637  See 
25638 \begin_inset CommandInset ref
25639 LatexCommand ref
25640 reference "subsec:General-text-class"
25641
25642 \end_inset
25643
25644  for details on these.
25645 \end_layout
25646
25647 \begin_layout Subsection
25648 \begin_inset CommandInset label
25649 LatexCommand label
25650 name "subsec:Paragraph-Style-XHTML"
25651
25652 \end_inset
25653
25654 Paragraph styles
25655 \end_layout
25656
25657 \begin_layout Standard
25658 The sort of XHTML \SpecialChar LyX
25659  outputs for a paragraph depends upon whether we are dealing
25660  with a normal paragraph, a command, or an environment, where this is itself
25661  determined by the contents of the corresponding 
25662 \begin_inset Flex Code
25663 status collapsed
25664
25665 \begin_layout Plain Layout
25666 \SpecialChar LaTeX
25667 Type
25668 \end_layout
25669
25670 \end_inset
25671
25672  tag.
25673  
25674 \end_layout
25675
25676 \begin_layout Standard
25677 For a command or normal paragraph, the output XHTML has the following form:
25678 \end_layout
25679
25680 \begin_layout LyX-Code
25681
25682 \family sans
25683 <tag attr=
25684 \begin_inset Quotes erd
25685 \end_inset
25686
25687 value
25688 \begin_inset Quotes erd
25689 \end_inset
25690
25691 >
25692 \end_layout
25693
25694 \begin_layout LyX-Code
25695
25696 \family sans
25697 <labeltag attr=
25698 \begin_inset Quotes erd
25699 \end_inset
25700
25701 value
25702 \begin_inset Quotes erd
25703 \end_inset
25704
25705 >Label</labeltag>
25706 \end_layout
25707
25708 \begin_layout LyX-Code
25709
25710 \family sans
25711 Contents of the paragraph.
25712 \end_layout
25713
25714 \begin_layout LyX-Code
25715
25716 \family sans
25717 </tag>
25718 \end_layout
25719
25720 \begin_layout Standard
25721 The label tags are of course omitted if the paragraph does not have a label.
25722 \end_layout
25723
25724 \begin_layout Standard
25725 For an environment that is not some sort of list, the XHTML takes this form:
25726 \end_layout
25727
25728 \begin_layout LyX-Code
25729
25730 \family sans
25731 <tag attr=
25732 \begin_inset Quotes erd
25733 \end_inset
25734
25735 value
25736 \begin_inset Quotes erd
25737 \end_inset
25738
25739 >
25740 \end_layout
25741
25742 \begin_layout LyX-Code
25743
25744 \family sans
25745 <itemtag attr=
25746 \begin_inset Quotes erd
25747 \end_inset
25748
25749 value
25750 \begin_inset Quotes erd
25751 \end_inset
25752
25753 ><labeltag attr=
25754 \begin_inset Quotes erd
25755 \end_inset
25756
25757 value
25758 \begin_inset Quotes erd
25759 \end_inset
25760
25761 >Environment Label</labeltag>First paragraph.</itemtag>
25762 \end_layout
25763
25764 \begin_layout LyX-Code
25765
25766 \family sans
25767 <itemtag>Second paragraph.</itemtag>
25768 \end_layout
25769
25770 \begin_layout LyX-Code
25771
25772 \family sans
25773 </tag>
25774 \end_layout
25775
25776 \begin_layout Standard
25777 Note that the label is output only for the first paragraph, as it should
25778  be for a theorem, for example.
25779  
25780 \end_layout
25781
25782 \begin_layout Standard
25783 For a list, we have one of these forms:
25784 \end_layout
25785
25786 \begin_layout LyX-Code
25787
25788 \family sans
25789 <tag attr=
25790 \begin_inset Quotes erd
25791 \end_inset
25792
25793 value
25794 \begin_inset Quotes erd
25795 \end_inset
25796
25797 >
25798 \end_layout
25799
25800 \begin_layout LyX-Code
25801
25802 \family sans
25803 <itemtag attr=
25804 \begin_inset Quotes erd
25805 \end_inset
25806
25807 value
25808 \begin_inset Quotes erd
25809 \end_inset
25810
25811 ><labeltag attr=
25812 \begin_inset Quotes erd
25813 \end_inset
25814
25815 value
25816 \begin_inset Quotes erd
25817 \end_inset
25818
25819 >List Label</labeltag>First item.</itemtag>
25820 \end_layout
25821
25822 \begin_layout LyX-Code
25823
25824 \family sans
25825 <itemtag attr=
25826 \begin_inset Quotes erd
25827 \end_inset
25828
25829 value
25830 \begin_inset Quotes erd
25831 \end_inset
25832
25833 ><labeltag attr=
25834 \begin_inset Quotes erd
25835 \end_inset
25836
25837 value
25838 \begin_inset Quotes erd
25839 \end_inset
25840
25841 >List Label</labeltag>Second item.</itemtag>
25842 \end_layout
25843
25844 \begin_layout LyX-Code
25845
25846 \family sans
25847 </tag>
25848 \end_layout
25849
25850 \begin_layout LyX-Code
25851
25852 \end_layout
25853
25854 \begin_layout LyX-Code
25855
25856 \family sans
25857 <tag attr=
25858 \begin_inset Quotes erd
25859 \end_inset
25860
25861 value
25862 \begin_inset Quotes erd
25863 \end_inset
25864
25865 >
25866 \end_layout
25867
25868 \begin_layout LyX-Code
25869
25870 \family sans
25871 <labeltag attr=
25872 \begin_inset Quotes erd
25873 \end_inset
25874
25875 value
25876 \begin_inset Quotes erd
25877 \end_inset
25878
25879 >List Label</labeltag><itemtag attr=
25880 \begin_inset Quotes erd
25881 \end_inset
25882
25883 value
25884 \begin_inset Quotes erd
25885 \end_inset
25886
25887 >First item.</itemtag>
25888 \end_layout
25889
25890 \begin_layout LyX-Code
25891
25892 \family sans
25893 <labeltag attr=
25894 \begin_inset Quotes erd
25895 \end_inset
25896
25897 value
25898 \begin_inset Quotes erd
25899 \end_inset
25900
25901 >List Label</labeltag><itemtag attr=
25902 \begin_inset Quotes erd
25903 \end_inset
25904
25905 value
25906 \begin_inset Quotes erd
25907 \end_inset
25908
25909 >Second item.</itemtag>
25910 \end_layout
25911
25912 \begin_layout LyX-Code
25913
25914 \family sans
25915 </tag>
25916 \end_layout
25917
25918 \begin_layout Standard
25919 Note the different orders of 
25920 \begin_inset Flex Code
25921 status collapsed
25922
25923 \begin_layout Plain Layout
25924 labeltag
25925 \end_layout
25926
25927 \end_inset
25928
25929  and 
25930 \begin_inset Flex Code
25931 status collapsed
25932
25933 \begin_layout Plain Layout
25934 itemtag
25935 \end_layout
25936
25937 \end_inset
25938
25939 .
25940  Which order we get depends upon the setting of 
25941 \begin_inset Flex Code
25942 status collapsed
25943
25944 \begin_layout Plain Layout
25945 HTMLLabelFirst
25946 \end_layout
25947
25948 \end_inset
25949
25950 : If 
25951 \begin_inset Flex Code
25952 status collapsed
25953
25954 \begin_layout Plain Layout
25955 HTMLLabelFirst
25956 \end_layout
25957
25958 \end_inset
25959
25960  is false (the default), you get the first of these, with the label within
25961  the item; if true, you get the second, with the label outside the item.
25962 \end_layout
25963
25964 \begin_layout Standard
25965 The specific tags and attributes output for each paragraph type can be controlle
25966 d by means of the layout tags we are about to describe.
25967  As mentioned earlier, however, \SpecialChar LyX
25968  uses sensible defaults for many of these,
25969  so you often may not need to do very much to get good XHTML output.
25970  Think of the available tags as there so you can tweak things to your liking.
25971 \end_layout
25972
25973 \begin_layout Description
25974 \begin_inset Flex Code
25975 status collapsed
25976
25977 \begin_layout Plain Layout
25978 HTMLAttr
25979 \end_layout
25980
25981 \end_inset
25982
25983  [
25984 \begin_inset Flex Code
25985 status collapsed
25986
25987 \begin_layout Plain Layout
25988 string
25989 \end_layout
25990
25991 \end_inset
25992
25993 ] Specifies attribute information to be output with the main tag.
25994  For example, 
25995 \begin_inset Quotes eld
25996 \end_inset
25997
25998
25999 \begin_inset Flex Code
26000 status collapsed
26001
26002 \begin_layout Plain Layout
26003 class=`mydiv'
26004 \end_layout
26005
26006 \end_inset
26007
26008
26009 \begin_inset Quotes erd
26010 \end_inset
26011
26012 .
26013  By default, \SpecialChar LyX
26014  will output 
26015 \begin_inset Quotes eld
26016 \end_inset
26017
26018
26019 \begin_inset Flex Code
26020 status collapsed
26021
26022 \begin_layout Plain Layout
26023 class=`layoutname'
26024 \end_layout
26025
26026 \end_inset
26027
26028
26029 \begin_inset Quotes erd
26030 \end_inset
26031
26032 , where 
26033 \begin_inset Flex Code
26034 status collapsed
26035
26036 \begin_layout Plain Layout
26037 layoutname
26038 \end_layout
26039
26040 \end_inset
26041
26042  is the \SpecialChar LyX
26043  name of the layout, made lowercase, for example: chapter.
26044  This should 
26045 \emph on
26046 not
26047 \emph default
26048  contain any style information.
26049  Use 
26050 \begin_inset Flex Code
26051 status collapsed
26052
26053 \begin_layout Plain Layout
26054 HTMLStyle
26055 \end_layout
26056
26057 \end_inset
26058
26059  for that purpose.
26060 \end_layout
26061
26062 \begin_layout Description
26063 \begin_inset Flex Code
26064 status collapsed
26065
26066 \begin_layout Plain Layout
26067 HTMLForceCSS
26068 \end_layout
26069
26070 \end_inset
26071
26072  [
26073 \begin_inset Flex Code
26074 status collapsed
26075
26076 \begin_layout Plain Layout
26077
26078 \emph on
26079 0
26080 \emph default
26081 ,1
26082 \end_layout
26083
26084 \end_inset
26085
26086 ] Whether to output the default CSS information \SpecialChar LyX
26087  generates for this layout,
26088  even if additional information is explicitly provided via 
26089 \begin_inset Flex Code
26090 status collapsed
26091
26092 \begin_layout Plain Layout
26093 HTMLStyle
26094 \end_layout
26095
26096 \end_inset
26097
26098 .
26099  Setting this to 
26100 \begin_inset Flex Code
26101 status collapsed
26102
26103 \begin_layout Plain Layout
26104 1
26105 \end_layout
26106
26107 \end_inset
26108
26109  allows you to alter or augment the generated CSS, rather than to override
26110  it completely.
26111  Default is 
26112 \begin_inset Flex Code
26113 status collapsed
26114
26115 \begin_layout Plain Layout
26116 0
26117 \end_layout
26118
26119 \end_inset
26120
26121 .
26122 \end_layout
26123
26124 \begin_layout Description
26125 \begin_inset Flex Code
26126 status collapsed
26127
26128 \begin_layout Plain Layout
26129 HTMLItem
26130 \end_layout
26131
26132 \end_inset
26133
26134  [
26135 \begin_inset Flex Code
26136 status collapsed
26137
26138 \begin_layout Plain Layout
26139 string
26140 \end_layout
26141
26142 \end_inset
26143
26144 ] The tag to be used for individual paragraphs of environments, replacing
26145  
26146 \begin_inset Flex Code
26147 status collapsed
26148
26149 \begin_layout Plain Layout
26150 itemtag
26151 \end_layout
26152
26153 \end_inset
26154
26155  in the examples above.
26156  Defaults to 
26157 \begin_inset Flex Code
26158 status collapsed
26159
26160 \begin_layout Plain Layout
26161 div
26162 \end_layout
26163
26164 \end_inset
26165
26166 .
26167 \end_layout
26168
26169 \begin_layout Description
26170 \begin_inset Flex Code
26171 status collapsed
26172
26173 \begin_layout Plain Layout
26174 HTMLItemAttr
26175 \end_layout
26176
26177 \end_inset
26178
26179  [
26180 \begin_inset Flex Code
26181 status collapsed
26182
26183 \begin_layout Plain Layout
26184 string
26185 \end_layout
26186
26187 \end_inset
26188
26189 ] Attributes for the item tag.
26190  Defaults to
26191 \begin_inset Newline newline
26192 \end_inset
26193
26194
26195 \begin_inset Quotes eld
26196 \end_inset
26197
26198
26199 \begin_inset Flex Code
26200 status collapsed
26201
26202 \begin_layout Plain Layout
26203 class=`layoutname_item'
26204 \end_layout
26205
26206 \end_inset
26207
26208
26209 \begin_inset Quotes erd
26210 \end_inset
26211
26212 .
26213  This should 
26214 \emph on
26215 not
26216 \emph default
26217  contain any style information.
26218  Use 
26219 \begin_inset Flex Code
26220 status collapsed
26221
26222 \begin_layout Plain Layout
26223 HTMLStyle
26224 \end_layout
26225
26226 \end_inset
26227
26228  for that purpose.
26229 \end_layout
26230
26231 \begin_layout Description
26232 \begin_inset Flex Code
26233 status collapsed
26234
26235 \begin_layout Plain Layout
26236 HTMLLabel
26237 \end_layout
26238
26239 \end_inset
26240
26241  [
26242 \begin_inset Flex Code
26243 status collapsed
26244
26245 \begin_layout Plain Layout
26246 string
26247 \end_layout
26248
26249 \end_inset
26250
26251 ] The tag to be used for paragraph and item labels, replacing 
26252 \begin_inset Flex Code
26253 status collapsed
26254
26255 \begin_layout Plain Layout
26256 labeltag
26257 \end_layout
26258
26259 \end_inset
26260
26261  in the examples above.
26262  Defaults to 
26263 \begin_inset Flex Code
26264 status collapsed
26265
26266 \begin_layout Plain Layout
26267 span
26268 \end_layout
26269
26270 \end_inset
26271
26272 , unless 
26273 \begin_inset Flex Code
26274 status collapsed
26275
26276 \begin_layout Plain Layout
26277 LabelType
26278 \end_layout
26279
26280 \end_inset
26281
26282  is either 
26283 \begin_inset Flex Code
26284 status collapsed
26285
26286 \begin_layout Plain Layout
26287 Top_Environment
26288 \end_layout
26289
26290 \end_inset
26291
26292  or 
26293 \begin_inset Flex Code
26294 status collapsed
26295
26296 \begin_layout Plain Layout
26297 Centered_Top_Environment
26298 \end_layout
26299
26300 \end_inset
26301
26302 , in which case it defaults to 
26303 \begin_inset Flex Code
26304 status collapsed
26305
26306 \begin_layout Plain Layout
26307 div
26308 \end_layout
26309
26310 \end_inset
26311
26312 .
26313 \end_layout
26314
26315 \begin_layout Description
26316 \begin_inset Flex Code
26317 status collapsed
26318
26319 \begin_layout Plain Layout
26320 HTMLLabelAttr
26321 \end_layout
26322
26323 \end_inset
26324
26325  [
26326 \begin_inset Flex Code
26327 status collapsed
26328
26329 \begin_layout Plain Layout
26330 string
26331 \end_layout
26332
26333 \end_inset
26334
26335 ] Attributes for the label tag.
26336  Defaults to
26337 \begin_inset Newline newline
26338 \end_inset
26339
26340
26341 \begin_inset Quotes eld
26342 \end_inset
26343
26344
26345 \begin_inset Flex Code
26346 status collapsed
26347
26348 \begin_layout Plain Layout
26349 class=`layoutname_label'
26350 \end_layout
26351
26352 \end_inset
26353
26354
26355 \begin_inset Quotes erd
26356 \end_inset
26357
26358 .
26359  This should 
26360 \emph on
26361 not
26362 \emph default
26363  contain any style information.
26364  Use 
26365 \begin_inset Flex Code
26366 status collapsed
26367
26368 \begin_layout Plain Layout
26369 HTMLStyle
26370 \end_layout
26371
26372 \end_inset
26373
26374  for that purpose.
26375 \end_layout
26376
26377 \begin_layout Description
26378 \begin_inset Flex Code
26379 status collapsed
26380
26381 \begin_layout Plain Layout
26382 HTMLLabelFirst
26383 \end_layout
26384
26385 \end_inset
26386
26387  [
26388 \begin_inset Flex Code
26389 status collapsed
26390
26391 \begin_layout Plain Layout
26392
26393 \emph on
26394 0
26395 \emph default
26396 ,1
26397 \end_layout
26398
26399 \end_inset
26400
26401 ] Meaningful only for list-like environments, this tag controls whether
26402  the label tag is output before or inside the item tag.
26403  This is used, for example, in the description environment, where we want
26404  `
26405 \begin_inset Flex Code
26406 status collapsed
26407
26408 \begin_layout Plain Layout
26409 <dt>\SpecialChar ldots
26410 </dt><dd>\SpecialChar ldots
26411 </dd>
26412 \end_layout
26413
26414 \end_inset
26415
26416 .
26417  Default is 
26418 \begin_inset Flex Code
26419 status collapsed
26420
26421 \begin_layout Plain Layout
26422 0
26423 \end_layout
26424
26425 \end_inset
26426
26427 : The label tag is output inside the item tag.
26428 \end_layout
26429
26430 \begin_layout Description
26431 \begin_inset Flex Code
26432 status collapsed
26433
26434 \begin_layout Plain Layout
26435 HTMLPreamble
26436 \end_layout
26437
26438 \end_inset
26439
26440  Information to be output in the 
26441 \begin_inset Flex Code
26442 status collapsed
26443
26444 \begin_layout Plain Layout
26445 <head>
26446 \end_layout
26447
26448 \end_inset
26449
26450  section when this style is used.
26451  This might, for example, be used to include a 
26452 \begin_inset Flex Code
26453 status collapsed
26454
26455 \begin_layout Plain Layout
26456 <script>
26457 \end_layout
26458
26459 \end_inset
26460
26461  block defining an 
26462 \begin_inset Flex Code
26463 status collapsed
26464
26465 \begin_layout Plain Layout
26466 onclick
26467 \end_layout
26468
26469 \end_inset
26470
26471  handler.
26472 \end_layout
26473
26474 \begin_layout Description
26475 \begin_inset Flex Code
26476 status collapsed
26477
26478 \begin_layout Plain Layout
26479 HTMLStyle
26480 \end_layout
26481
26482 \end_inset
26483
26484  CSS style information to be included when this style is used.
26485  Note that this will automatically be wrapped in a layout-generated 
26486 \begin_inset Flex Code
26487 status collapsed
26488
26489 \begin_layout Plain Layout
26490 <style>
26491 \end_layout
26492
26493 \end_inset
26494
26495  block, so only the CSS itself need be included.
26496  Must end with 
26497 \begin_inset Flex Code
26498 status collapsed
26499
26500 \begin_layout Plain Layout
26501 EndHTMLStyle
26502 \end_layout
26503
26504 \end_inset
26505
26506 .
26507 \end_layout
26508
26509 \begin_layout Description
26510 \begin_inset Flex Code
26511 status collapsed
26512
26513 \begin_layout Plain Layout
26514 HTMLTag
26515 \end_layout
26516
26517 \end_inset
26518
26519  [
26520 \begin_inset Flex Code
26521 status collapsed
26522
26523 \begin_layout Plain Layout
26524 string
26525 \end_layout
26526
26527 \end_inset
26528
26529 ] The tag to be used for the main label, replacing 
26530 \begin_inset Flex Code
26531 status collapsed
26532
26533 \begin_layout Plain Layout
26534 tag
26535 \end_layout
26536
26537 \end_inset
26538
26539  in the examples above.
26540  Defaults to 
26541 \begin_inset Flex Code
26542 status collapsed
26543
26544 \begin_layout Plain Layout
26545 div
26546 \end_layout
26547
26548 \end_inset
26549
26550 .
26551 \end_layout
26552
26553 \begin_layout Description
26554 \begin_inset Flex Code
26555 status collapsed
26556
26557 \begin_layout Plain Layout
26558 HTMLTitle
26559 \end_layout
26560
26561 \end_inset
26562
26563  [
26564 \begin_inset Flex Code
26565 status collapsed
26566
26567 \begin_layout Plain Layout
26568
26569 \emph on
26570 0
26571 \emph default
26572 ,1
26573 \end_layout
26574
26575 \end_inset
26576
26577 ] Marks this style as the one to be used to generate the 
26578 \begin_inset Flex Code
26579 status collapsed
26580
26581 \begin_layout Plain Layout
26582 <title>
26583 \end_layout
26584
26585 \end_inset
26586
26587  tag for the XHTML file.
26588  By default, it is false.
26589  The 
26590 \begin_inset Flex Code
26591 status collapsed
26592
26593 \begin_layout Plain Layout
26594 stdtitle.inc
26595 \end_layout
26596
26597 \end_inset
26598
26599  file sets it to true for the 
26600 \begin_inset Flex Code
26601 status collapsed
26602
26603 \begin_layout Plain Layout
26604 title
26605 \end_layout
26606
26607 \end_inset
26608
26609  environment.
26610  
26611 \end_layout
26612
26613 \begin_layout Subsection
26614 InsetLayout XHTML
26615 \end_layout
26616
26617 \begin_layout Standard
26618 The XHTML output of insets can also be controlled by information in layout
26619  files.
26620 \begin_inset Foot
26621 status collapsed
26622
26623 \begin_layout Plain Layout
26624 At present, this is true only for 
26625 \begin_inset Quotes eld
26626 \end_inset
26627
26628 text
26629 \begin_inset Quotes erd
26630 \end_inset
26631
26632  insets (insets you can type into) and is not true for 
26633 \begin_inset Quotes eld
26634 \end_inset
26635
26636 command
26637 \begin_inset Quotes erd
26638 \end_inset
26639
26640  insets (insets that are associated with dialog boxes).
26641 \end_layout
26642
26643 \end_inset
26644
26645  Here, too, \SpecialChar LyX
26646  tries to provide sensible defaults, and it constructs default
26647  CSS style rules.
26648  But everything can be customized.
26649 \end_layout
26650
26651 \begin_layout Standard
26652 The XHTML \SpecialChar LyX
26653  outputs for an inset has the following form:
26654 \end_layout
26655
26656 \begin_layout LyX-Code
26657 <tag attr=
26658 \begin_inset Quotes erd
26659 \end_inset
26660
26661 value
26662 \begin_inset Quotes erd
26663 \end_inset
26664
26665 >
26666 \end_layout
26667
26668 \begin_layout LyX-Code
26669 <labeltag>Label</labeltag>
26670 \end_layout
26671
26672 \begin_layout LyX-Code
26673 <innertag attr=
26674 \begin_inset Quotes erd
26675 \end_inset
26676
26677 value
26678 \begin_inset Quotes erd
26679 \end_inset
26680
26681 >Contents of the inset.</innertag>
26682 \end_layout
26683
26684 \begin_layout LyX-Code
26685 </tag>
26686 \end_layout
26687
26688 \begin_layout Standard
26689 If the inset permits multiple paragraphs—that is, if 
26690 \begin_inset Flex Code
26691 status collapsed
26692
26693 \begin_layout Plain Layout
26694 MultiPar
26695 \end_layout
26696
26697 \end_inset
26698
26699  is true—then the contents of the inset will itself be output as paragraphs
26700  formatted according to the styles used for those paragraphs (standard,
26701  quote, and the like).
26702  The label tag is of course omitted if the paragraph does not have a label
26703  and, at present, is always 
26704 \begin_inset Flex Code
26705 status collapsed
26706
26707 \begin_layout Plain Layout
26708 span
26709 \end_layout
26710
26711 \end_inset
26712
26713 .
26714  The inner tag is optional and, by default, does not appear.
26715 \end_layout
26716
26717 \begin_layout Standard
26718 The specific tags and attributes output for each inset can be controlled
26719  by means of the following layout tags.
26720 \end_layout
26721
26722 \begin_layout Description
26723 \begin_inset Flex Code
26724 status collapsed
26725
26726 \begin_layout Plain Layout
26727 HTMLAttr
26728 \end_layout
26729
26730 \end_inset
26731
26732  [
26733 \begin_inset Flex Code
26734 status collapsed
26735
26736 \begin_layout Plain Layout
26737 string
26738 \end_layout
26739
26740 \end_inset
26741
26742 ] Specifies attribute information to be output with the main tag.
26743  For example, 
26744 \begin_inset Quotes eld
26745 \end_inset
26746
26747
26748 \begin_inset Flex Code
26749 status collapsed
26750
26751 \begin_layout Plain Layout
26752 class=`myinset' onclick=`\SpecialChar ldots
26753 '
26754 \end_layout
26755
26756 \end_inset
26757
26758
26759 \begin_inset Quotes erd
26760 \end_inset
26761
26762 .
26763  By default, \SpecialChar LyX
26764  will output 
26765 \begin_inset Quotes eld
26766 \end_inset
26767
26768
26769 \begin_inset Flex Code
26770 status collapsed
26771
26772 \begin_layout Plain Layout
26773 class=`insetname'
26774 \end_layout
26775
26776 \end_inset
26777
26778
26779 \begin_inset Quotes erd
26780 \end_inset
26781
26782 , where 
26783 \begin_inset Flex Code
26784 status collapsed
26785
26786 \begin_layout Plain Layout
26787 insetname
26788 \end_layout
26789
26790 \end_inset
26791
26792  is the \SpecialChar LyX
26793  name of the inset, made lowercase and with non-alphanumeric characters
26794  converted to underscores, for example: footnote.
26795 \end_layout
26796
26797 \begin_layout Description
26798 \begin_inset Flex Code
26799 status collapsed
26800
26801 \begin_layout Plain Layout
26802 HTMLForceCSS
26803 \end_layout
26804
26805 \end_inset
26806
26807  [
26808 \begin_inset Flex Code
26809 status collapsed
26810
26811 \begin_layout Plain Layout
26812
26813 \emph on
26814 0
26815 \emph default
26816 ,1
26817 \end_layout
26818
26819 \end_inset
26820
26821 ] Whether to output the default CSS information \SpecialChar LyX
26822  generates for this layout,
26823  even if additional information is explicitly provided via 
26824 \begin_inset Flex Code
26825 status collapsed
26826
26827 \begin_layout Plain Layout
26828 HTMLStyle
26829 \end_layout
26830
26831 \end_inset
26832
26833 .
26834  Setting this to 
26835 \begin_inset Flex Code
26836 status collapsed
26837
26838 \begin_layout Plain Layout
26839 1
26840 \end_layout
26841
26842 \end_inset
26843
26844  allows you to alter or augment the generated CSS, rather than to override
26845  it completely.
26846  Default is 0.
26847 \end_layout
26848
26849 \begin_layout Description
26850 \begin_inset Flex Code
26851 status collapsed
26852
26853 \begin_layout Plain Layout
26854 HTMLInnerAttr
26855 \end_layout
26856
26857 \end_inset
26858
26859  [
26860 \begin_inset Flex Code
26861 status collapsed
26862
26863 \begin_layout Plain Layout
26864 string
26865 \end_layout
26866
26867 \end_inset
26868
26869 ] Attributes for the inner tag.
26870  Defaults to
26871 \begin_inset Newline newline
26872 \end_inset
26873
26874
26875 \begin_inset Quotes eld
26876 \end_inset
26877
26878
26879 \begin_inset Flex Code
26880 status collapsed
26881
26882 \begin_layout Plain Layout
26883 class=`insetname_inner'
26884 \end_layout
26885
26886 \end_inset
26887
26888
26889 \begin_inset Quotes erd
26890 \end_inset
26891
26892 .
26893 \end_layout
26894
26895 \begin_layout Description
26896 \begin_inset Flex Code
26897 status collapsed
26898
26899 \begin_layout Plain Layout
26900 HTMLInnerTag
26901 \end_layout
26902
26903 \end_inset
26904
26905  [
26906 \begin_inset Flex Code
26907 status collapsed
26908
26909 \begin_layout Plain Layout
26910 string
26911 \end_layout
26912
26913 \end_inset
26914
26915 ] The inner tag, replacing 
26916 \begin_inset Flex Code
26917 status collapsed
26918
26919 \begin_layout Plain Layout
26920 innertag
26921 \end_layout
26922
26923 \end_inset
26924
26925  in the examples above.
26926  By default, there is none.
26927 \end_layout
26928
26929 \begin_layout Description
26930 \begin_inset Flex Code
26931 status collapsed
26932
26933 \begin_layout Plain Layout
26934 HTMLIsBlock
26935 \end_layout
26936
26937 \end_inset
26938
26939  [
26940 \begin_inset Flex Code
26941 status collapsed
26942
26943 \begin_layout Plain Layout
26944 0,
26945 \emph on
26946 1
26947 \end_layout
26948
26949 \end_inset
26950
26951 ] Whether this inset represents a standalone block of text (such as a footnote)
26952  or instead represents material that is included in the surrounding text
26953  (such as a branch).
26954  Defaults to 1.
26955 \end_layout
26956
26957 \begin_layout Description
26958 \begin_inset Flex Code
26959 status collapsed
26960
26961 \begin_layout Plain Layout
26962 HTMLLabel
26963 \end_layout
26964
26965 \end_inset
26966
26967  [
26968 \begin_inset Flex Code
26969 status collapsed
26970
26971 \begin_layout Plain Layout
26972 string
26973 \end_layout
26974
26975 \end_inset
26976
26977 ] A label for this inset, possibly including a reference to a counter.
26978  For example, for footnote, it might be: 
26979 \begin_inset Flex Code
26980 status collapsed
26981
26982 \begin_layout Plain Layout
26983
26984 \backslash
26985 arabic{footnote}
26986 \end_layout
26987
26988 \end_inset
26989
26990 .
26991  This is optional, and there is no default.
26992 \end_layout
26993
26994 \begin_layout Description
26995 \begin_inset Flex Code
26996 status collapsed
26997
26998 \begin_layout Plain Layout
26999 HTMLPreamble
27000 \end_layout
27001
27002 \end_inset
27003
27004  Information to be output in the 
27005 \begin_inset Flex Code
27006 status collapsed
27007
27008 \begin_layout Plain Layout
27009 <head>
27010 \end_layout
27011
27012 \end_inset
27013
27014  section when this style is used.
27015  This might, for example, be used to include a 
27016 \begin_inset Flex Code
27017 status collapsed
27018
27019 \begin_layout Plain Layout
27020 <script>
27021 \end_layout
27022
27023 \end_inset
27024
27025  block defining an 
27026 \begin_inset Flex Code
27027 status collapsed
27028
27029 \begin_layout Plain Layout
27030 onclick
27031 \end_layout
27032
27033 \end_inset
27034
27035  handler.
27036 \end_layout
27037
27038 \begin_layout Description
27039 \begin_inset Flex Code
27040 status collapsed
27041
27042 \begin_layout Plain Layout
27043 HTMLStyle
27044 \end_layout
27045
27046 \end_inset
27047
27048  CSS style information to be included when this style is used.
27049  Note that this will automatically be wrapped in a layout-generated 
27050 \begin_inset Flex Code
27051 status collapsed
27052
27053 \begin_layout Plain Layout
27054 <style>
27055 \end_layout
27056
27057 \end_inset
27058
27059  block, so only the CSS itself need be included.
27060 \end_layout
27061
27062 \begin_layout Description
27063 \begin_inset Flex Code
27064 status collapsed
27065
27066 \begin_layout Plain Layout
27067 HTMLTag
27068 \end_layout
27069
27070 \end_inset
27071
27072  [
27073 \begin_inset Flex Code
27074 status collapsed
27075
27076 \begin_layout Plain Layout
27077 string
27078 \end_layout
27079
27080 \end_inset
27081
27082 ] The tag to be used for the main label, replacing 
27083 \begin_inset Flex Code
27084 status collapsed
27085
27086 \begin_layout Plain Layout
27087 tag
27088 \end_layout
27089
27090 \end_inset
27091
27092  in the examples above.
27093  The default depends upon the setting of 
27094 \begin_inset Flex Code
27095 status collapsed
27096
27097 \begin_layout Plain Layout
27098 MultiPar
27099 \end_layout
27100
27101 \end_inset
27102
27103 : If 
27104 \begin_inset Flex Code
27105 status collapsed
27106
27107 \begin_layout Plain Layout
27108 MultiPar
27109 \end_layout
27110
27111 \end_inset
27112
27113  is true, the default is 
27114 \begin_inset Flex Code
27115 status collapsed
27116
27117 \begin_layout Plain Layout
27118 div
27119 \end_layout
27120
27121 \end_inset
27122
27123 ; if it is false, the default is 
27124 \begin_inset Flex Code
27125 status collapsed
27126
27127 \begin_layout Plain Layout
27128 span
27129 \end_layout
27130
27131 \end_inset
27132
27133 .
27134 \end_layout
27135
27136 \begin_layout Subsection
27137 Float XHTML
27138 \end_layout
27139
27140 \begin_layout Standard
27141 The XHTML output for floats too can be controlled by layout information.
27142  The output has the following form:
27143 \end_layout
27144
27145 \begin_layout LyX-Code
27146 <tag attr=
27147 \begin_inset Quotes erd
27148 \end_inset
27149
27150 value
27151 \begin_inset Quotes erd
27152 \end_inset
27153
27154 >
27155 \end_layout
27156
27157 \begin_layout LyX-Code
27158 Contents of the float.
27159 \end_layout
27160
27161 \begin_layout LyX-Code
27162 </tag>
27163 \end_layout
27164
27165 \begin_layout Standard
27166 The caption, if there is one, is a separate inset and will be output as
27167  such.
27168  Its appearance can be controlled via the InsetLayout for caption insets.
27169  
27170 \end_layout
27171
27172 \begin_layout Description
27173 \begin_inset Flex Code
27174 status collapsed
27175
27176 \begin_layout Plain Layout
27177 HTMLAttr
27178 \end_layout
27179
27180 \end_inset
27181
27182  [
27183 \begin_inset Flex Code
27184 status collapsed
27185
27186 \begin_layout Plain Layout
27187 string
27188 \end_layout
27189
27190 \end_inset
27191
27192 ] Specifies attribute information to be output with the main tag.
27193  For example, 
27194 \begin_inset Quotes eld
27195 \end_inset
27196
27197
27198 \begin_inset Flex Code
27199 status collapsed
27200
27201 \begin_layout Plain Layout
27202 class=`myfloat' onclick=`\SpecialChar ldots
27203 '
27204 \end_layout
27205
27206 \end_inset
27207
27208
27209 \begin_inset Quotes erd
27210 \end_inset
27211
27212 .
27213  By default, \SpecialChar LyX
27214  will output 
27215 \begin_inset Quotes eld
27216 \end_inset
27217
27218
27219 \begin_inset Flex Code
27220 status collapsed
27221
27222 \begin_layout Plain Layout
27223 class=`float float-floattype'
27224 \end_layout
27225
27226 \end_inset
27227
27228
27229 \begin_inset Quotes erd
27230 \end_inset
27231
27232 , where 
27233 \begin_inset Flex Code
27234 status collapsed
27235
27236 \begin_layout Plain Layout
27237 floattype
27238 \end_layout
27239
27240 \end_inset
27241
27242  is \SpecialChar LyX
27243 's name for this type of float, as determined by the float declaration
27244  (see 
27245 \begin_inset CommandInset ref
27246 LatexCommand ref
27247 reference "subsec:Floats"
27248
27249 \end_inset
27250
27251 ), though made lowercase and with non-alphanumeric characters converted
27252  to underscores, for example: float-table.
27253 \end_layout
27254
27255 \begin_layout Description
27256 \begin_inset Flex Code
27257 status collapsed
27258
27259 \begin_layout Plain Layout
27260 HTMLStyle
27261 \end_layout
27262
27263 \end_inset
27264
27265  CSS style information to be included when this float is used.
27266  Note that this will automatically be wrapped in a layout-generated 
27267 \begin_inset Flex Code
27268 status collapsed
27269
27270 \begin_layout Plain Layout
27271 <style>
27272 \end_layout
27273
27274 \end_inset
27275
27276  block, so only the CSS itself need be included.
27277 \end_layout
27278
27279 \begin_layout Description
27280 \begin_inset Flex Code
27281 status collapsed
27282
27283 \begin_layout Plain Layout
27284 HTMLTag
27285 \end_layout
27286
27287 \end_inset
27288
27289  [
27290 \begin_inset Flex Code
27291 status collapsed
27292
27293 \begin_layout Plain Layout
27294 string
27295 \end_layout
27296
27297 \end_inset
27298
27299 ] The tag to be used for this float, replacing 
27300 \begin_inset Quotes eld
27301 \end_inset
27302
27303
27304 \begin_inset Flex Code
27305 status collapsed
27306
27307 \begin_layout Plain Layout
27308 tag
27309 \end_layout
27310
27311 \end_inset
27312
27313
27314 \begin_inset Quotes erd
27315 \end_inset
27316
27317  in the example above.
27318  The default is 
27319 \begin_inset Flex Code
27320 status collapsed
27321
27322 \begin_layout Plain Layout
27323 div
27324 \end_layout
27325
27326 \end_inset
27327
27328  and will rarely need changing.
27329 \end_layout
27330
27331 \begin_layout Subsection
27332 Bibliography formatting
27333 \end_layout
27334
27335 \begin_layout Standard
27336 The bibliography can be formatted using 
27337 \begin_inset Flex Code
27338 status collapsed
27339
27340 \begin_layout Plain Layout
27341 CiteFormat
27342 \end_layout
27343
27344 \end_inset
27345
27346  blocks.
27347  See 
27348 \begin_inset CommandInset ref
27349 LatexCommand ref
27350 reference "subsec:Citation-format-description"
27351
27352 \end_inset
27353
27354  for the details.
27355 \end_layout
27356
27357 \begin_layout Subsection
27358 \SpecialChar LyX
27359 -generated CSS
27360 \end_layout
27361
27362 \begin_layout Standard
27363 We have several times mentioned that \SpecialChar LyX
27364  will generate default CSS style rules
27365  for both insets and paragraph styles, based upon the other layout information
27366  that is provided.
27367  In this section, we shall say a word about which layout information \SpecialChar LyX
27368  uses
27369  and how.
27370 \end_layout
27371
27372 \begin_layout Standard
27373 At present, \SpecialChar LyX
27374  auto-generates CSS only for font information, making use of
27375  the 
27376 \begin_inset Flex Code
27377 status collapsed
27378
27379 \begin_layout Plain Layout
27380 Family
27381 \end_layout
27382
27383 \end_inset
27384
27385
27386 \begin_inset Flex Code
27387 status collapsed
27388
27389 \begin_layout Plain Layout
27390 Series
27391 \end_layout
27392
27393 \end_inset
27394
27395
27396 \begin_inset Flex Code
27397 status collapsed
27398
27399 \begin_layout Plain Layout
27400 Shape
27401 \end_layout
27402
27403 \end_inset
27404
27405 , and 
27406 \begin_inset Flex Code
27407 status collapsed
27408
27409 \begin_layout Plain Layout
27410 Size
27411 \end_layout
27412
27413 \end_inset
27414
27415  specified in the 
27416 \begin_inset Flex Code
27417 status collapsed
27418
27419 \begin_layout Plain Layout
27420 Font
27421 \end_layout
27422
27423 \end_inset
27424
27425  declaration (see 
27426 \begin_inset CommandInset ref
27427 LatexCommand ref
27428 reference "subsec:Font-description"
27429
27430 \end_inset
27431
27432 ).
27433  The translation is mostly straightforward and obvious.
27434  For example, 
27435 \begin_inset Quotes eld
27436 \end_inset
27437
27438
27439 \begin_inset Flex Code
27440 status collapsed
27441
27442 \begin_layout Plain Layout
27443 Family Sans
27444 \end_layout
27445
27446 \end_inset
27447
27448
27449 \begin_inset Quotes erd
27450 \end_inset
27451
27452  becomes 
27453 \begin_inset Quotes eld
27454 \end_inset
27455
27456
27457 \begin_inset Flex Code
27458 status collapsed
27459
27460 \begin_layout Plain Layout
27461 font-family: sans-serif;
27462 \end_layout
27463
27464 \end_inset
27465
27466
27467 \begin_inset Quotes erd
27468 \end_inset
27469
27470 .
27471  The correspondence of \SpecialChar LyX
27472  sizes and CSS sizes is a little less obvious but
27473  nonetheless intuitive.
27474  See the 
27475 \begin_inset Flex Code
27476 status collapsed
27477
27478 \begin_layout Plain Layout
27479 getSizeCSS()
27480 \end_layout
27481
27482 \end_inset
27483
27484  function in 
27485 \begin_inset Flex URL
27486 status collapsed
27487
27488 \begin_layout Plain Layout
27489
27490 src/FontInfo.cpp
27491 \end_layout
27492
27493 \end_inset
27494
27495  for the details.
27496 \change_inserted -970929547 1496610908
27497
27498 \end_layout
27499
27500 \begin_layout Section
27501
27502 \change_inserted -970929547 1496610966
27503 \begin_inset CommandInset label
27504 LatexCommand label
27505 name "sec:Tags-for-DocBook"
27506
27507 \end_inset
27508
27509 Tags for DocBook output
27510 \end_layout
27511
27512 \begin_layout Standard
27513
27514 \change_inserted -970929547 1496611615
27515 As with \SpecialChar LaTeX
27516  or XHTML, the format of \SpecialChar LyX
27517 's DocBook output is also controlled by
27518  layout information.
27519  In general, \SpecialChar LyX
27520  provides sensible defaults; however, much of the styling is
27521  lost during the conversion, as DocBook is strictly semantic and does not
27522  allow formatting.
27523  When possible, information from \SpecialChar LyX
27524  will be rendered in 
27525 \family typewriter
27526 role
27527 \family default
27528  attributes.
27529  
27530 \end_layout
27531
27532 \begin_layout Standard
27533
27534 \change_inserted -970929547 1496612080
27535 In many cases, then, you may not have to do anything at all to get acceptable
27536  DocBook output for your own environments, custom insets, and so forth.
27537  But in some cases you will, and so \SpecialChar LyX
27538  provides a number of layout tags that
27539  can be used to customize the DocBook that is generated.
27540 \end_layout
27541
27542 \begin_layout Standard
27543
27544 \change_inserted -970929547 1515109912
27545 Labels are rarely output, as they are redundant in DocBook: this information
27546  is carried by the tags themselves, and whether labels appear in the final
27547  documents (after processing of DocBook files) is controlled by the stylesheets.
27548  However, sometimes, labels are not redundant content, such as definition
27549  lists: in this case, the term being defined will be the label.
27550  
27551 \end_layout
27552
27553 \begin_layout Subsection
27554
27555 \change_inserted 1075283030 1597699417
27556 \begin_inset CommandInset label
27557 LatexCommand label
27558 name "subsec:Paragraph-Style-DocBook"
27559
27560 \end_inset
27561
27562
27563 \change_deleted 1075283030 1597699417
27564
27565 \begin_inset CommandInset label
27566 LatexCommand label
27567 name "subsec:Paragraph-Style-XHTML-1"
27568
27569 \end_inset
27570
27571
27572 \change_inserted -970929547 1496610966
27573 Paragraph styles
27574 \end_layout
27575
27576 \begin_layout Standard
27577
27578 \change_inserted -970929547 1496612059
27579 The sort of DocBook \SpecialChar LyX
27580  outputs for a paragraph depends upon whether we are
27581  dealing with a normal paragraph, a command, or an environment, where this
27582  is itself determined by the contents of the corresponding 
27583 \begin_inset Flex Code
27584 status collapsed
27585
27586 \begin_layout Plain Layout
27587
27588 \change_inserted -970929547 1496610966
27589 \SpecialChar LaTeX
27590 Type
27591 \change_unchanged
27592
27593 \end_layout
27594
27595 \end_inset
27596
27597  tag.
27598  
27599 \end_layout
27600
27601 \begin_layout Standard
27602
27603 \change_inserted -970929547 1496612107
27604 For a command or normal paragraph, the output DocBook has the following
27605  form:
27606 \end_layout
27607
27608 \begin_layout LyX-Code
27609
27610 \change_inserted -970929547 1515109666
27611 <tag attr>
27612 \end_layout
27613
27614 \begin_layout LyX-Code
27615
27616 \change_inserted -970929547 1496610966
27617 Contents of the paragraph.
27618 \end_layout
27619
27620 \begin_layout LyX-Code
27621
27622 \change_inserted -970929547 1496610966
27623 </tag>
27624 \end_layout
27625
27626 \begin_layout Standard
27627
27628 \change_inserted -970929547 1515109821
27629 For an environment that is not some sort of list, the generated DocBook
27630  takes this form:
27631 \end_layout
27632
27633 \begin_layout LyX-Code
27634
27635 \change_inserted -970929547 1515109671
27636 <tag attr>
27637 \end_layout
27638
27639 \begin_layout LyX-Code
27640
27641 \change_inserted -970929547 1496612114
27642 <itemtag>First paragraph.</itemtag>
27643 \end_layout
27644
27645 \begin_layout LyX-Code
27646
27647 \change_inserted -970929547 1496610966
27648 <itemtag>Second paragraph.</itemtag>
27649 \end_layout
27650
27651 \begin_layout LyX-Code
27652
27653 \change_inserted -970929547 1496610966
27654 </tag>
27655 \end_layout
27656
27657 \begin_layout Standard
27658
27659 \change_inserted -970929547 1515109825
27660 For a list, the resulting DocBook takes this form:
27661 \end_layout
27662
27663 \begin_layout LyX-Code
27664
27665 \change_inserted -970929547 1515109672
27666 <tag attr>
27667 \end_layout
27668
27669 \begin_layout LyX-Code
27670
27671 \change_inserted -970929547 1515109676
27672 <itemtag attr>First item.</itemtag>
27673 \end_layout
27674
27675 \begin_layout LyX-Code
27676
27677 \change_inserted -970929547 1515109678
27678 <itemtag attr>Second item.</itemtag>
27679 \end_layout
27680
27681 \begin_layout LyX-Code
27682
27683 \change_inserted -970929547 1496610966
27684 </tag>
27685 \end_layout
27686
27687 \begin_layout Standard
27688
27689 \change_inserted -970929547 1496612243
27690 The specific tags and roles output for each paragraph type can be controlled
27691  by means of the layout tags we are about to describe.
27692  Please note that, due to the very nature of DocBook, no sensible defaults
27693  really exist, and the values must always be carefully chosen.
27694  
27695 \end_layout
27696
27697 \begin_layout Description
27698
27699 \change_inserted -970929547 1515110057
27700 \begin_inset Flex Code
27701 status collapsed
27702
27703 \begin_layout Plain Layout
27704
27705 \change_inserted -970929547 1515109656
27706 DocBookAttr
27707 \change_unchanged
27708
27709 \end_layout
27710
27711 \end_inset
27712
27713  [
27714 \begin_inset Flex Code
27715 status collapsed
27716
27717 \begin_layout Plain Layout
27718
27719 \change_inserted -970929547 1496610966
27720 string
27721 \change_unchanged
27722
27723 \end_layout
27724
27725 \end_inset
27726
27727 ] Specifies attribute information to be output with the main tag, replacing
27728  
27729 \begin_inset Quotes eld
27730 \end_inset
27731
27732
27733 \begin_inset Flex Code
27734 status collapsed
27735
27736 \begin_layout Plain Layout
27737
27738 \change_inserted -970929547 1515110057
27739 attr
27740 \change_unchanged
27741
27742 \end_layout
27743
27744 \end_inset
27745
27746
27747 \begin_inset Quotes erd
27748 \end_inset
27749
27750  in the example above.
27751  This information can be used in further processing of the DocBook files.
27752  
27753 \change_unchanged
27754
27755 \end_layout
27756
27757 \begin_layout Description
27758
27759 \change_inserted -970929547 1496612296
27760 \begin_inset Flex Code
27761 status collapsed
27762
27763 \begin_layout Plain Layout
27764
27765 \change_inserted -970929547 1496612269
27766 DocBookTag
27767 \change_unchanged
27768
27769 \end_layout
27770
27771 \end_inset
27772
27773  [
27774 \begin_inset Flex Code
27775 status collapsed
27776
27777 \begin_layout Plain Layout
27778
27779 \change_inserted -970929547 1496610966
27780 string
27781 \change_unchanged
27782
27783 \end_layout
27784
27785 \end_inset
27786
27787 ] The tag to be used for this inset, replacing 
27788 \begin_inset Quotes eld
27789 \end_inset
27790
27791
27792 \begin_inset Flex Code
27793 status collapsed
27794
27795 \begin_layout Plain Layout
27796
27797 \change_inserted -970929547 1496612296
27798 tag
27799 \change_unchanged
27800
27801 \end_layout
27802
27803 \end_inset
27804
27805
27806 \begin_inset Quotes erd
27807 \end_inset
27808
27809  in the example above.
27810  The default is the name of the float and always needs to be changed, as
27811  DocBook provides no generic tag.
27812 \change_inserted 1075283030 1597698868
27813
27814 \end_layout
27815
27816 \begin_layout Description
27817
27818 \change_inserted 1075283030 1597699399
27819 \begin_inset Flex Code
27820 status collapsed
27821
27822 \begin_layout Plain Layout
27823
27824 \change_inserted 1075283030 1597698872
27825 DocBookTagType
27826 \change_unchanged
27827
27828 \end_layout
27829
27830 \end_inset
27831
27832  [
27833 \begin_inset Flex Code
27834 status collapsed
27835
27836 \begin_layout Plain Layout
27837
27838 \change_inserted 1075283030 1597700585
27839 block, paragraph, inline
27840 \change_unchanged
27841
27842 \end_layout
27843
27844 \end_inset
27845
27846 ] The new-line policy for this tag, see Section
27847 \begin_inset space ~
27848 \end_inset
27849
27850
27851 \begin_inset CommandInset ref
27852 LatexCommand ref
27853 reference "subsec:DocBook-New-line-policy"
27854 plural "false"
27855 caps "false"
27856 noprefix "false"
27857
27858 \end_inset
27859
27860  for the details.
27861  
27862 \change_unchanged
27863
27864 \end_layout
27865
27866 \begin_layout Subsection
27867
27868 \change_inserted 1075283030 1597699385
27869 New-line policy
27870 \begin_inset CommandInset label
27871 LatexCommand label
27872 name "subsec:DocBook-New-line-policy"
27873
27874 \end_inset
27875
27876
27877 \end_layout
27878
27879 \begin_layout Standard
27880
27881 \change_inserted 1075283030 1597698993
27882 For all tags, there are three possible policies for outputting new lines
27883  (given in the 
27884 \begin_inset Flex Code
27885 status collapsed
27886
27887 \begin_layout Plain Layout
27888
27889 \change_inserted 1075283030 1597698987
27890 DocBook*TagType
27891 \change_unchanged
27892
27893 \end_layout
27894
27895 \end_inset
27896
27897  attribute): 
27898 \end_layout
27899
27900 \begin_layout Itemize
27901
27902 \change_inserted 1075283030 1597699279
27903 \begin_inset Quotes eld
27904 \end_inset
27905
27906
27907 \begin_inset Flex Code
27908 status collapsed
27909
27910 \begin_layout Plain Layout
27911
27912 \change_inserted 1075283030 1597699012
27913 block
27914 \change_unchanged
27915
27916 \end_layout
27917
27918 \end_inset
27919
27920
27921 \begin_inset Quotes erd
27922 \end_inset
27923
27924 : the opening and closing tags are on their own lines (i.e.
27925  a line feed after and before the opening and the closing tags).
27926  Typical elements are floats.
27927  For instance: 
27928 \end_layout
27929
27930 \begin_layout LyX-Code
27931
27932 \change_inserted 1075283030 1597699194
27933 Content before
27934 \end_layout
27935
27936 \begin_layout LyX-Code
27937
27938 \change_inserted 1075283030 1597699194
27939 <blocktag>
27940 \end_layout
27941
27942 \begin_layout LyX-Code
27943
27944 \change_inserted 1075283030 1597699098
27945   Contents of the block.
27946 \end_layout
27947
27948 \begin_layout LyX-Code
27949
27950 \change_inserted 1075283030 1597699196
27951 </blocktag>
27952 \end_layout
27953
27954 \begin_layout LyX-Code
27955
27956 \change_inserted 1075283030 1597699198
27957 Content after
27958 \end_layout
27959
27960 \begin_layout Itemize
27961
27962 \change_inserted 1075283030 1597699289
27963 \begin_inset Quotes eld
27964 \end_inset
27965
27966
27967 \begin_inset Flex Code
27968 status collapsed
27969
27970 \begin_layout Plain Layout
27971
27972 \change_inserted 1075283030 1597699113
27973 paragraph
27974 \change_unchanged
27975
27976 \end_layout
27977
27978 \end_inset
27979
27980
27981 \begin_inset Quotes erd
27982 \end_inset
27983
27984 : the opening and closing tags are on the same, new line; a line feed is
27985  output before the opening tag and after the closing tag.
27986  Typical elements are paragraphs and list items.
27987  For instance: 
27988 \end_layout
27989
27990 \begin_layout LyX-Code
27991
27992 \change_inserted 1075283030 1597699186
27993 Content before
27994 \end_layout
27995
27996 \begin_layout LyX-Code
27997
27998 \change_inserted 1075283030 1597699357
27999 <paratag>Contents of the paragraph.</paratag>
28000 \end_layout
28001
28002 \begin_layout LyX-Code
28003
28004 \change_inserted 1075283030 1597699231
28005 Content after
28006 \end_layout
28007
28008 \begin_layout Itemize
28009
28010 \change_inserted 1075283030 1597699343
28011 \begin_inset Quotes eld
28012 \end_inset
28013
28014
28015 \begin_inset Flex Code
28016 status collapsed
28017
28018 \begin_layout Plain Layout
28019
28020 \change_inserted 1075283030 1597699307
28021 inline
28022 \change_unchanged
28023
28024 \end_layout
28025
28026 \end_inset
28027
28028
28029 \begin_inset Quotes erd
28030 \end_inset
28031
28032 : the opening and closing tags are on the same line as the rest of the content.
28033  No line feeds are output.
28034  Typical elements are fonts.
28035  For instance: 
28036 \end_layout
28037
28038 \begin_layout LyX-Code
28039
28040 \change_inserted 1075283030 1597699585
28041 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
28042 \end_layout
28043
28044 \begin_layout Standard
28045
28046 \change_inserted 1075283030 1597699585
28047 The default value is always 
28048 \begin_inset Quotes eld
28049 \end_inset
28050
28051
28052 \begin_inset Flex Code
28053 status collapsed
28054
28055 \begin_layout Plain Layout
28056
28057 \change_inserted 1075283030 1597699585
28058 block
28059 \change_unchanged
28060
28061 \end_layout
28062
28063 \end_inset
28064
28065
28066 \begin_inset Quotes erd
28067 \end_inset
28068
28069 .
28070 \change_unchanged
28071
28072 \end_layout
28073
28074 \begin_layout Subsection
28075
28076 \change_inserted -970929547 1515111533
28077 InsetLayout DocBook
28078 \change_unchanged
28079
28080 \end_layout
28081
28082 \begin_layout Standard
28083
28084 \change_inserted -970929547 1496611894
28085 The DocBook output of insets can also be controlled by information in layout
28086  files.
28087 \end_layout
28088
28089 \begin_layout Standard
28090
28091 \change_inserted -970929547 1496612045
28092 The DocBook \SpecialChar LyX
28093  outputs for an inset has the following form:
28094 \end_layout
28095
28096 \begin_layout LyX-Code
28097
28098 \change_inserted -970929547 1515110861
28099 <wrappertag wrapperattr>
28100 \end_layout
28101
28102 \begin_layout LyX-Code
28103
28104 \change_inserted -970929547 1515110868
28105   <tag attr>
28106 \end_layout
28107
28108 \begin_layout LyX-Code
28109
28110 \change_inserted -970929547 1515110869
28111     <innertag innerattr>
28112 \end_layout
28113
28114 \begin_layout LyX-Code
28115
28116 \change_inserted -970929547 1515110869
28117       Contents of the inset.
28118 \end_layout
28119
28120 \begin_layout LyX-Code
28121
28122 \change_inserted -970929547 1515110870
28123     </innertag>
28124 \end_layout
28125
28126 \begin_layout LyX-Code
28127
28128 \change_inserted -970929547 1515110871
28129   </tag>
28130 \end_layout
28131
28132 \begin_layout LyX-Code
28133
28134 \change_inserted -970929547 1515111172
28135 </wrappertag>
28136 \end_layout
28137
28138 \begin_layout Standard
28139
28140 \change_inserted -970929547 1515111186
28141 For an itemising inset, it rather looks like this: 
28142 \end_layout
28143
28144 \begin_layout LyX-Code
28145
28146 \change_inserted -970929547 1515111186
28147 <wrappertag wrapperattr>
28148 \end_layout
28149
28150 \begin_layout LyX-Code
28151
28152 \change_inserted -970929547 1515111186
28153   <tag attr>
28154 \end_layout
28155
28156 \begin_layout LyX-Code
28157
28158 \change_inserted -970929547 1515111186
28159     <innertag innerattr>
28160 \end_layout
28161
28162 \begin_layout LyX-Code
28163
28164 \change_inserted -970929547 1515111362
28165       <itemwrappertag itemwrapperattr>
28166 \end_layout
28167
28168 \begin_layout LyX-Code
28169
28170 \change_inserted -970929547 1515111364
28171         <itemlabeltag itemattr>
28172 \end_layout
28173
28174 \begin_layout LyX-Code
28175
28176 \change_inserted -970929547 1515111367
28177           Label of the first item.
28178 \end_layout
28179
28180 \begin_layout LyX-Code
28181
28182 \change_inserted -970929547 1515111362
28183         </itemtag>
28184 \change_unchanged
28185
28186 \end_layout
28187
28188 \begin_layout LyX-Code
28189
28190 \change_inserted -970929547 1515111517
28191         <itemtag itemattr>
28192 \end_layout
28193
28194 \begin_layout LyX-Code
28195
28196 \change_inserted -970929547 1515111517
28197           <itemtag itemattr>
28198 \change_unchanged
28199
28200 \end_layout
28201
28202 \begin_layout LyX-Code
28203
28204 \change_inserted -970929547 1515111516
28205             Contents of the first item.
28206 \end_layout
28207
28208 \begin_layout LyX-Code
28209
28210 \change_inserted -970929547 1515111514
28211           </itemtag>
28212 \change_unchanged
28213
28214 \end_layout
28215
28216 \begin_layout LyX-Code
28217
28218 \change_inserted -970929547 1515111247
28219         </itemtag>
28220 \change_unchanged
28221
28222 \end_layout
28223
28224 \begin_layout LyX-Code
28225
28226 \change_inserted -970929547 1515111221
28227       </itemwrappertag>
28228 \end_layout
28229
28230 \begin_layout LyX-Code
28231
28232 \change_inserted -970929547 1515111370
28233       <itemwrappertag itemwrapperattr>
28234 \end_layout
28235
28236 \begin_layout LyX-Code
28237
28238 \change_inserted -970929547 1515111370
28239         <itemlabeltag itemattr>
28240 \end_layout
28241
28242 \begin_layout LyX-Code
28243
28244 \change_inserted -970929547 1515111372
28245           Label of the second item.
28246 \end_layout
28247
28248 \begin_layout LyX-Code
28249
28250 \change_inserted -970929547 1515111370
28251         </itemtag>
28252 \change_unchanged
28253
28254 \end_layout
28255
28256 \begin_layout LyX-Code
28257
28258 \change_inserted -970929547 1515111504
28259         <itemtag itemattr>
28260 \end_layout
28261
28262 \begin_layout LyX-Code
28263
28264 \change_inserted -970929547 1515111505
28265           <itemtag itemattr>
28266 \change_unchanged
28267
28268 \end_layout
28269
28270 \begin_layout LyX-Code
28271
28272 \change_inserted -970929547 1515111507
28273             Contents of the second item.
28274 \end_layout
28275
28276 \begin_layout LyX-Code
28277
28278 \change_inserted -970929547 1515111509
28279           </itemtag>
28280 \change_unchanged
28281
28282 \end_layout
28283
28284 \begin_layout LyX-Code
28285
28286 \change_inserted -970929547 1515111251
28287         </itemtag>
28288 \change_unchanged
28289
28290 \end_layout
28291
28292 \begin_layout LyX-Code
28293
28294 \change_inserted -970929547 1515111221
28295       </itemwrappertag>
28296 \change_unchanged
28297
28298 \end_layout
28299
28300 \begin_layout LyX-Code
28301
28302 \change_inserted -970929547 1515111219
28303       ...
28304 \change_unchanged
28305
28306 \end_layout
28307
28308 \begin_layout LyX-Code
28309
28310 \change_inserted -970929547 1515111186
28311     </innertag>
28312 \end_layout
28313
28314 \begin_layout LyX-Code
28315
28316 \change_inserted -970929547 1515111186
28317   </tag>
28318 \end_layout
28319
28320 \begin_layout LyX-Code
28321
28322 \change_inserted -970929547 1515111186
28323 </wrappertag>
28324 \end_layout
28325
28326 \begin_layout Standard
28327
28328 \change_inserted -970929547 1515111183
28329 If the inset permits multiple paragraphs—that is, if 
28330 \begin_inset Flex Code
28331 status collapsed
28332
28333 \begin_layout Plain Layout
28334
28335 \change_inserted -970929547 1496610966
28336 MultiPar
28337 \change_unchanged
28338
28339 \end_layout
28340
28341 \end_inset
28342
28343  is true—then the contents of the inset will itself be output as paragraphs
28344  formatted according to the styles used for those paragraphs (standard,
28345  quote, and the like).
28346  The inner tag is optional and, by default, does not appear.
28347 \end_layout
28348
28349 \begin_layout Standard
28350
28351 \change_inserted -970929547 1496610966
28352 The specific tags and attributes output for each inset can be controlled
28353  by means of the following layout tags.
28354 \end_layout
28355
28356 \begin_layout Description
28357
28358 \change_inserted -970929547 1515110317
28359 \begin_inset Flex Code
28360 status collapsed
28361
28362 \begin_layout Plain Layout
28363
28364 \change_inserted -970929547 1515109695
28365 DocBookAttr
28366 \change_unchanged
28367
28368 \end_layout
28369
28370 \end_inset
28371
28372  [
28373 \begin_inset Flex Code
28374 status collapsed
28375
28376 \begin_layout Plain Layout
28377
28378 \change_inserted -970929547 1496611854
28379 string
28380 \change_unchanged
28381
28382 \end_layout
28383
28384 \end_inset
28385
28386 ] Specifies attribute information to be output with the main tag, replacing
28387  
28388 \begin_inset Quotes eld
28389 \end_inset
28390
28391
28392 \begin_inset Flex Code
28393 status collapsed
28394
28395 \begin_layout Plain Layout
28396
28397 \change_inserted -970929547 1515110044
28398 attr
28399 \change_unchanged
28400
28401 \end_layout
28402
28403 \end_inset
28404
28405
28406 \begin_inset Quotes erd
28407 \end_inset
28408
28409  in the example above.
28410  This information can be used in further processing of the DocBook files.
28411  
28412 \end_layout
28413
28414 \begin_layout Description
28415
28416 \change_inserted -970929547 1515110973
28417 \begin_inset Flex Code
28418 status collapsed
28419
28420 \begin_layout Plain Layout
28421
28422 \change_inserted -970929547 1515110319
28423 DocBookInInfo
28424 \change_unchanged
28425
28426 \end_layout
28427
28428 \end_inset
28429
28430  [
28431 \begin_inset Flex Code
28432 status collapsed
28433
28434 \begin_layout Plain Layout
28435
28436 \change_inserted -970929547 1515110384
28437 never, always, maybe
28438 \change_unchanged
28439
28440 \end_layout
28441
28442 \end_inset
28443
28444 ] Specifies whether this tag goes into the 
28445 \begin_inset Flex Code
28446 status collapsed
28447
28448 \begin_layout Plain Layout
28449
28450 \change_inserted -970929547 1515110412
28451 <info>
28452 \change_unchanged
28453
28454 \end_layout
28455
28456 \end_inset
28457
28458  tag at the beginning of the parent layout.
28459  
28460 \begin_inset Flex Code
28461 status collapsed
28462
28463 \begin_layout Plain Layout
28464
28465 \change_inserted -970929547 1515110437
28466 never
28467 \change_unchanged
28468
28469 \end_layout
28470
28471 \end_inset
28472
28473  indicates that the tag never goes into 
28474 \begin_inset Flex Code
28475 status collapsed
28476
28477 \begin_layout Plain Layout
28478
28479 \change_inserted -970929547 1515110497
28480 <info>
28481 \change_unchanged
28482
28483 \end_layout
28484
28485 \end_inset
28486
28487  (this is default value, and corresponds to usual content).
28488  
28489 \begin_inset Flex Code
28490 status collapsed
28491
28492 \begin_layout Plain Layout
28493
28494 \change_inserted -970929547 1515110517
28495 always
28496 \change_unchanged
28497
28498 \end_layout
28499
28500 \end_inset
28501
28502  indicates that the tag always goes into 
28503 \begin_inset Flex Code
28504 status collapsed
28505
28506 \begin_layout Plain Layout
28507
28508 \change_inserted -970929547 1515110514
28509 <info>
28510 \change_unchanged
28511
28512 \end_layout
28513
28514 \end_inset
28515
28516  (this corresponds to usual metadata): if there is no 
28517 \begin_inset Flex Code
28518 status collapsed
28519
28520 \begin_layout Plain Layout
28521
28522 \change_inserted -970929547 1515110550
28523 <info>
28524 \change_unchanged
28525
28526 \end_layout
28527
28528 \end_inset
28529
28530  tag for the parent, one 
28531 \series bold
28532 will
28533 \series default
28534  be generated.
28535  
28536 \begin_inset Flex Code
28537 status collapsed
28538
28539 \begin_layout Plain Layout
28540
28541 \change_inserted -970929547 1515110540
28542 maybe
28543 \change_unchanged
28544
28545 \end_layout
28546
28547 \end_inset
28548
28549  indicates that the tag may go into 
28550 \begin_inset Flex Code
28551 status collapsed
28552
28553 \begin_layout Plain Layout
28554
28555 \change_inserted -970929547 1515110538
28556 <info>
28557 \change_unchanged
28558
28559 \end_layout
28560
28561 \end_inset
28562
28563  (this is only the case for titles): if there is no 
28564 \begin_inset Flex Code
28565 status collapsed
28566
28567 \begin_layout Plain Layout
28568
28569 \change_inserted -970929547 1515110585
28570 <info>
28571 \change_unchanged
28572
28573 \end_layout
28574
28575 \end_inset
28576
28577  tag for the parent, 
28578 \series bold
28579 none
28580 \series default
28581  will be generated, the corresponding tag will be output directly as content.
28582  
28583 \end_layout
28584
28585 \begin_layout Description
28586
28587 \change_inserted -970929547 1515111461
28588 \begin_inset Flex Code
28589 status collapsed
28590
28591 \begin_layout Plain Layout
28592
28593 \change_inserted -970929547 1515110974
28594 DocBookItemAttr
28595 \change_unchanged
28596
28597 \end_layout
28598
28599 \end_inset
28600
28601  [
28602 \begin_inset Flex Code
28603 status collapsed
28604
28605 \begin_layout Plain Layout
28606
28607 \change_inserted -970929547 1515110973
28608 string
28609 \change_unchanged
28610
28611 \end_layout
28612
28613 \end_inset
28614
28615 ] Specifies attribute information to be output with the item tag, replacing
28616  
28617 \begin_inset Quotes eld
28618 \end_inset
28619
28620
28621 \begin_inset Flex Code
28622 status collapsed
28623
28624 \begin_layout Plain Layout
28625
28626 \change_inserted -970929547 1515110984
28627 itemattr
28628 \change_unchanged
28629
28630 \end_layout
28631
28632 \end_inset
28633
28634
28635 \begin_inset Quotes erd
28636 \end_inset
28637
28638  in the example above.
28639  This information can be used in further processing of the DocBook files.
28640  
28641 \end_layout
28642
28643 \begin_layout Description
28644
28645 \change_inserted -970929547 1515111471
28646 \begin_inset Flex Code
28647 status collapsed
28648
28649 \begin_layout Plain Layout
28650
28651 \change_inserted -970929547 1515111465
28652 DocBookItemInnerAttr
28653 \change_unchanged
28654
28655 \end_layout
28656
28657 \end_inset
28658
28659  [
28660 \begin_inset Flex Code
28661 status collapsed
28662
28663 \begin_layout Plain Layout
28664
28665 \change_inserted -970929547 1515111461
28666 string
28667 \change_unchanged
28668
28669 \end_layout
28670
28671 \end_inset
28672
28673 ] Specifies attribute information to be output with the item inner tag,
28674  replacing 
28675 \begin_inset Quotes eld
28676 \end_inset
28677
28678
28679 \begin_inset Flex Code
28680 status collapsed
28681
28682 \begin_layout Plain Layout
28683
28684 \change_inserted -970929547 1515111476
28685 iteminnerattr
28686 \change_unchanged
28687
28688 \end_layout
28689
28690 \end_inset
28691
28692
28693 \begin_inset Quotes erd
28694 \end_inset
28695
28696  in the example above.
28697  This information can be used in further processing of the DocBook files.
28698  
28699 \end_layout
28700
28701 \begin_layout Description
28702
28703 \change_inserted -970929547 1515111494
28704 \begin_inset Flex Code
28705 status collapsed
28706
28707 \begin_layout Plain Layout
28708
28709 \change_inserted -970929547 1515111467
28710 DocBookItemInnerTag
28711 \change_unchanged
28712
28713 \end_layout
28714
28715 \end_inset
28716
28717  [
28718 \begin_inset Flex Code
28719 status collapsed
28720
28721 \begin_layout Plain Layout
28722
28723 \change_inserted -970929547 1515111461
28724 string
28725 \change_unchanged
28726
28727 \end_layout
28728
28729 \end_inset
28730
28731 ] The tag to be used for the item inner tag within the inset, replacing
28732  
28733 \begin_inset Quotes eld
28734 \end_inset
28735
28736
28737 \begin_inset Flex Code
28738 status collapsed
28739
28740 \begin_layout Plain Layout
28741
28742 \change_inserted -970929547 1515111486
28743 iteminnertag
28744 \change_unchanged
28745
28746 \end_layout
28747
28748 \end_inset
28749
28750
28751 \begin_inset Quotes erd
28752 \end_inset
28753
28754  in the example above.
28755  The default is 
28756 \begin_inset Flex Code
28757 status collapsed
28758
28759 \begin_layout Plain Layout
28760
28761 \change_inserted -970929547 1515111461
28762 NONE
28763 \change_unchanged
28764
28765 \end_layout
28766
28767 \end_inset
28768
28769 , indicating that there is no item inner tag: content is directly output
28770  without it for each itemised element.
28771  This parameter only makes sense when itemising layouts are used, such as
28772  lists.
28773  
28774 \change_inserted 1075283030 1598469472
28775 The most likely value is 
28776 \begin_inset Quotes eld
28777 \end_inset
28778
28779
28780 \begin_inset Flex Code
28781 status collapsed
28782
28783 \begin_layout Plain Layout
28784
28785 \change_inserted 1075283030 1598469476
28786 para
28787 \change_unchanged
28788
28789 \end_layout
28790
28791 \end_inset
28792
28793
28794 \begin_inset Quotes erd
28795 \end_inset
28796
28797 .
28798 \begin_inset Newline newline
28799 \end_inset
28800
28801 When a list item is split using a new line, the item inner tag will be repeated
28802  for each part of the paragraph, parts being separated by new lines.
28803  
28804 \end_layout
28805
28806 \begin_layout Description
28807
28808 \change_inserted 1075283030 1597699866
28809 \begin_inset Flex Code
28810 status collapsed
28811
28812 \begin_layout Plain Layout
28813
28814 \change_inserted 1075283030 1597699853
28815 DocBookItemInnerTagType
28816 \change_unchanged
28817
28818 \end_layout
28819
28820 \end_inset
28821
28822  [
28823 \begin_inset Flex Code
28824 status collapsed
28825
28826 \begin_layout Plain Layout
28827
28828 \change_inserted 1075283030 1597699866
28829 block, paragraph, inline
28830 \change_unchanged
28831
28832 \end_layout
28833
28834 \end_inset
28835
28836 ] The new-line policy for this tag, see Section
28837 \begin_inset space ~
28838 \end_inset
28839
28840
28841 \begin_inset CommandInset ref
28842 LatexCommand ref
28843 reference "subsec:DocBook-New-line-policy"
28844 plural "false"
28845 caps "false"
28846 noprefix "false"
28847
28848 \end_inset
28849
28850  for the details.
28851  
28852 \change_unchanged
28853
28854 \end_layout
28855
28856 \begin_layout Description
28857
28858 \change_inserted -970929547 1515111290
28859 \begin_inset Flex Code
28860 status collapsed
28861
28862 \begin_layout Plain Layout
28863
28864 \change_inserted -970929547 1515111283
28865 DocBookItemLabelAttr
28866 \change_unchanged
28867
28868 \end_layout
28869
28870 \end_inset
28871
28872  [
28873 \begin_inset Flex Code
28874 status collapsed
28875
28876 \begin_layout Plain Layout
28877
28878 \change_inserted -970929547 1515111279
28879 string
28880 \change_unchanged
28881
28882 \end_layout
28883
28884 \end_inset
28885
28886 ] Specifies attribute information to be output with the item label tag,
28887  replacing 
28888 \begin_inset Quotes eld
28889 \end_inset
28890
28891
28892 \begin_inset Flex Code
28893 status collapsed
28894
28895 \begin_layout Plain Layout
28896
28897 \change_inserted -970929547 1515111304
28898 itemlabelattr
28899 \change_unchanged
28900
28901 \end_layout
28902
28903 \end_inset
28904
28905
28906 \begin_inset Quotes erd
28907 \end_inset
28908
28909  in the example above.
28910  This information can be used in further processing of the DocBook files.
28911  
28912 \end_layout
28913
28914 \begin_layout Description
28915
28916 \change_inserted -970929547 1515111337
28917 \begin_inset Flex Code
28918 status collapsed
28919
28920 \begin_layout Plain Layout
28921
28922 \change_inserted -970929547 1515111285
28923 DocBookItemLabelTag
28924 \change_unchanged
28925
28926 \end_layout
28927
28928 \end_inset
28929
28930  [
28931 \begin_inset Flex Code
28932 status collapsed
28933
28934 \begin_layout Plain Layout
28935
28936 \change_inserted -970929547 1515111279
28937 string
28938 \change_unchanged
28939
28940 \end_layout
28941
28942 \end_inset
28943
28944 ] The tag to be used for the item label tag within the inset, replacing
28945  
28946 \begin_inset Quotes eld
28947 \end_inset
28948
28949
28950 \begin_inset Flex Code
28951 status collapsed
28952
28953 \begin_layout Plain Layout
28954
28955 \change_inserted -970929547 1515111311
28956 itemlabeltag
28957 \change_unchanged
28958
28959 \end_layout
28960
28961 \end_inset
28962
28963
28964 \begin_inset Quotes erd
28965 \end_inset
28966
28967  in the example above.
28968  This parameter only makes sense when itemising layouts are used with a
28969  notion of labels, such as definition lists.
28970  
28971 \change_inserted 1075283030 1597699874
28972
28973 \end_layout
28974
28975 \begin_layout Description
28976
28977 \change_inserted 1075283030 1597699874
28978 \begin_inset Flex Code
28979 status collapsed
28980
28981 \begin_layout Plain Layout
28982
28983 \change_inserted 1075283030 1597699880
28984 DocBookItemLabelTagType
28985 \change_unchanged
28986
28987 \end_layout
28988
28989 \end_inset
28990
28991  [
28992 \begin_inset Flex Code
28993 status collapsed
28994
28995 \begin_layout Plain Layout
28996
28997 \change_inserted 1075283030 1597699874
28998 block, paragraph, inline
28999 \change_unchanged
29000
29001 \end_layout
29002
29003 \end_inset
29004
29005 ] The new-line policy for this tag, see Section
29006 \begin_inset space ~
29007 \end_inset
29008
29009
29010 \begin_inset CommandInset ref
29011 LatexCommand ref
29012 reference "subsec:DocBook-New-line-policy"
29013 plural "false"
29014 caps "false"
29015 noprefix "false"
29016
29017 \end_inset
29018
29019  for the details.
29020  
29021 \change_unchanged
29022
29023 \end_layout
29024
29025 \begin_layout Description
29026
29027 \change_inserted -970929547 1515111124
29028 \begin_inset Flex Code
29029 status collapsed
29030
29031 \begin_layout Plain Layout
29032
29033 \change_inserted -970929547 1515111060
29034 DocBookItemTag
29035 \change_unchanged
29036
29037 \end_layout
29038
29039 \end_inset
29040
29041  [
29042 \begin_inset Flex Code
29043 status collapsed
29044
29045 \begin_layout Plain Layout
29046
29047 \change_inserted -970929547 1515111060
29048 string
29049 \change_unchanged
29050
29051 \end_layout
29052
29053 \end_inset
29054
29055 ] The tag to be used for the item tag within the inset, replacing 
29056 \begin_inset Quotes eld
29057 \end_inset
29058
29059
29060 \begin_inset Flex Code
29061 status collapsed
29062
29063 \begin_layout Plain Layout
29064
29065 \change_inserted -970929547 1515111060
29066 itemtag
29067 \change_unchanged
29068
29069 \end_layout
29070
29071 \end_inset
29072
29073
29074 \begin_inset Quotes erd
29075 \end_inset
29076
29077  in the example above.
29078  The default is 
29079 \begin_inset Flex Code
29080 status collapsed
29081
29082 \begin_layout Plain Layout
29083
29084 \change_inserted -970929547 1515111060
29085 NONE
29086 \change_unchanged
29087
29088 \end_layout
29089
29090 \end_inset
29091
29092 , indicating that there is no item tag.
29093  This parameter only makes sense when itemising layouts are used, such as
29094  lists.
29095  
29096 \change_inserted 1075283030 1597699890
29097
29098 \end_layout
29099
29100 \begin_layout Description
29101
29102 \change_inserted 1075283030 1597699890
29103 \begin_inset Flex Code
29104 status collapsed
29105
29106 \begin_layout Plain Layout
29107
29108 \change_inserted 1075283030 1597699890
29109 DocBookItemTagType
29110 \change_unchanged
29111
29112 \end_layout
29113
29114 \end_inset
29115
29116  [
29117 \begin_inset Flex Code
29118 status collapsed
29119
29120 \begin_layout Plain Layout
29121
29122 \change_inserted 1075283030 1597699890
29123 block, paragraph, inline
29124 \change_unchanged
29125
29126 \end_layout
29127
29128 \end_inset
29129
29130 ] The new-line policy for this tag, see Section
29131 \begin_inset space ~
29132 \end_inset
29133
29134
29135 \begin_inset CommandInset ref
29136 LatexCommand ref
29137 reference "subsec:DocBook-New-line-policy"
29138 plural "false"
29139 caps "false"
29140 noprefix "false"
29141
29142 \end_inset
29143
29144  for the details.
29145  
29146 \change_unchanged
29147
29148 \end_layout
29149
29150 \begin_layout Description
29151
29152 \change_inserted -970929547 1515111298
29153 \begin_inset Flex Code
29154 status collapsed
29155
29156 \begin_layout Plain Layout
29157
29158 \change_inserted -970929547 1515111124
29159 DocBookItemWrapperAttr
29160 \change_unchanged
29161
29162 \end_layout
29163
29164 \end_inset
29165
29166  [
29167 \begin_inset Flex Code
29168 status collapsed
29169
29170 \begin_layout Plain Layout
29171
29172 \change_inserted -970929547 1515111124
29173 string
29174 \change_unchanged
29175
29176 \end_layout
29177
29178 \end_inset
29179
29180 ] Specifies attribute information to be output with the item wrapper tag,
29181  replacing 
29182 \begin_inset Quotes eld
29183 \end_inset
29184
29185
29186 \begin_inset Flex Code
29187 status collapsed
29188
29189 \begin_layout Plain Layout
29190
29191 \change_inserted -970929547 1515111150
29192 itemwrapperattr
29193 \change_unchanged
29194
29195 \end_layout
29196
29197 \end_inset
29198
29199
29200 \begin_inset Quotes erd
29201 \end_inset
29202
29203  in the example above.
29204  This information can be used in further processing of the DocBook files.
29205  
29206 \change_unchanged
29207
29208 \end_layout
29209
29210 \begin_layout Description
29211
29212 \change_inserted -970929547 1515111113
29213 \begin_inset Flex Code
29214 status collapsed
29215
29216 \begin_layout Plain Layout
29217
29218 \change_inserted -970929547 1515111073
29219 DocBookItemWrapperTag
29220 \change_unchanged
29221
29222 \end_layout
29223
29224 \end_inset
29225
29226  [
29227 \begin_inset Flex Code
29228 status collapsed
29229
29230 \begin_layout Plain Layout
29231
29232 \change_inserted -970929547 1515111073
29233 string
29234 \change_unchanged
29235
29236 \end_layout
29237
29238 \end_inset
29239
29240 ] The tag to be used for the item wrapper tag within the inset, replacing
29241  
29242 \begin_inset Quotes eld
29243 \end_inset
29244
29245
29246 \begin_inset Flex Code
29247 status collapsed
29248
29249 \begin_layout Plain Layout
29250
29251 \change_inserted -970929547 1515111083
29252 itemwrappertag
29253 \change_unchanged
29254
29255 \end_layout
29256
29257 \end_inset
29258
29259
29260 \begin_inset Quotes erd
29261 \end_inset
29262
29263  in the example above.
29264  The default is 
29265 \begin_inset Flex Code
29266 status collapsed
29267
29268 \begin_layout Plain Layout
29269
29270 \change_inserted -970929547 1515111073
29271 NONE
29272 \change_unchanged
29273
29274 \end_layout
29275
29276 \end_inset
29277
29278 , indicating that there is no item wrapper tag: tag and content are directly
29279  output without it for each itemised element.
29280  This parameter only makes sense when itemising layouts are used, such as
29281  lists.
29282  
29283 \change_inserted 1075283030 1597699897
29284
29285 \end_layout
29286
29287 \begin_layout Description
29288
29289 \change_inserted 1075283030 1597699897
29290 \begin_inset Flex Code
29291 status collapsed
29292
29293 \begin_layout Plain Layout
29294
29295 \change_inserted 1075283030 1597699900
29296 DocBookItemWrapperTagType
29297 \change_unchanged
29298
29299 \end_layout
29300
29301 \end_inset
29302
29303  [
29304 \begin_inset Flex Code
29305 status collapsed
29306
29307 \begin_layout Plain Layout
29308
29309 \change_inserted 1075283030 1597699897
29310 block, paragraph, inline
29311 \change_unchanged
29312
29313 \end_layout
29314
29315 \end_inset
29316
29317 ] The new-line policy for this tag, see Section
29318 \begin_inset space ~
29319 \end_inset
29320
29321
29322 \begin_inset CommandInset ref
29323 LatexCommand ref
29324 reference "subsec:DocBook-New-line-policy"
29325 plural "false"
29326 caps "false"
29327 noprefix "false"
29328
29329 \end_inset
29330
29331  for the details.
29332  
29333 \change_unchanged
29334
29335 \end_layout
29336
29337 \begin_layout Description
29338
29339 \change_inserted -970929547 1515110104
29340 \begin_inset Flex Code
29341 status collapsed
29342
29343 \begin_layout Plain Layout
29344
29345 \change_inserted -970929547 1515110104
29346 DocBookInnerAttr
29347 \change_unchanged
29348
29349 \end_layout
29350
29351 \end_inset
29352
29353  [
29354 \begin_inset Flex Code
29355 status collapsed
29356
29357 \begin_layout Plain Layout
29358
29359 \change_inserted -970929547 1515110104
29360 string
29361 \change_unchanged
29362
29363 \end_layout
29364
29365 \end_inset
29366
29367 ] Specifies attribute information to be output with the inner tag, replacing
29368  
29369 \begin_inset Quotes eld
29370 \end_inset
29371
29372
29373 \begin_inset Flex Code
29374 status collapsed
29375
29376 \begin_layout Plain Layout
29377
29378 \change_inserted -970929547 1515110104
29379 innerattr
29380 \change_unchanged
29381
29382 \end_layout
29383
29384 \end_inset
29385
29386
29387 \begin_inset Quotes erd
29388 \end_inset
29389
29390  in the example above.
29391  This information can be used in further processing of the DocBook files.
29392  
29393 \end_layout
29394
29395 \begin_layout Description
29396
29397 \change_inserted -970929547 1515110906
29398 \begin_inset Flex Code
29399 status collapsed
29400
29401 \begin_layout Plain Layout
29402
29403 \change_inserted -970929547 1515110104
29404 DocBookInnerTag
29405 \change_unchanged
29406
29407 \end_layout
29408
29409 \end_inset
29410
29411  [
29412 \begin_inset Flex Code
29413 status collapsed
29414
29415 \begin_layout Plain Layout
29416
29417 \change_inserted -970929547 1515110104
29418 string
29419 \change_unchanged
29420
29421 \end_layout
29422
29423 \end_inset
29424
29425 ] The tag to be used for the inner tag within the inset, replacing 
29426 \begin_inset Quotes eld
29427 \end_inset
29428
29429
29430 \begin_inset Flex Code
29431 status collapsed
29432
29433 \begin_layout Plain Layout
29434
29435 \change_inserted -970929547 1515110104
29436 innertag
29437 \change_unchanged
29438
29439 \end_layout
29440
29441 \end_inset
29442
29443
29444 \begin_inset Quotes erd
29445 \end_inset
29446
29447  in the example above.
29448  The default is 
29449 \begin_inset Flex Code
29450 status collapsed
29451
29452 \begin_layout Plain Layout
29453
29454 \change_inserted -970929547 1515110791
29455 NONE
29456 \change_unchanged
29457
29458 \end_layout
29459
29460 \end_inset
29461
29462 , indicating that there is no inner tag: content is directly output without
29463  it.
29464 \change_inserted 1075283030 1597699904
29465
29466 \end_layout
29467
29468 \begin_layout Description
29469
29470 \change_inserted 1075283030 1597699904
29471 \begin_inset Flex Code
29472 status collapsed
29473
29474 \begin_layout Plain Layout
29475
29476 \change_inserted 1075283030 1597699904
29477 DocBookInnerTagType
29478 \change_unchanged
29479
29480 \end_layout
29481
29482 \end_inset
29483
29484  [
29485 \begin_inset Flex Code
29486 status collapsed
29487
29488 \begin_layout Plain Layout
29489
29490 \change_inserted 1075283030 1597699904
29491 block, paragraph, inline
29492 \change_unchanged
29493
29494 \end_layout
29495
29496 \end_inset
29497
29498 ] The new-line policy for this tag, see Section
29499 \begin_inset space ~
29500 \end_inset
29501
29502
29503 \begin_inset CommandInset ref
29504 LatexCommand ref
29505 reference "subsec:DocBook-New-line-policy"
29506 plural "false"
29507 caps "false"
29508 noprefix "false"
29509
29510 \end_inset
29511
29512  for the details.
29513  
29514 \change_unchanged
29515
29516 \end_layout
29517
29518 \begin_layout Description
29519
29520 \change_inserted -970929547 1515110753
29521 \begin_inset Flex Code
29522 status collapsed
29523
29524 \begin_layout Plain Layout
29525
29526 \change_inserted -970929547 1515110665
29527 DocBookSectionTag
29528 \change_unchanged
29529
29530 \end_layout
29531
29532 \end_inset
29533
29534  [
29535 \begin_inset Flex Code
29536 status collapsed
29537
29538 \begin_layout Plain Layout
29539
29540 \change_inserted -970929547 1515110661
29541 string
29542 \change_unchanged
29543
29544 \end_layout
29545
29546 \end_inset
29547
29548 ] Specifies the tag that corresponds to this kind of section.
29549  This parameter only makes sense for sectioning elements (part, chapter,
29550  section, etc.).
29551  The default value is 
29552 \begin_inset Flex Code
29553 status collapsed
29554
29555 \begin_layout Plain Layout
29556
29557 \change_inserted -970929547 1515110721
29558 section
29559 \change_unchanged
29560
29561 \end_layout
29562
29563 \end_inset
29564
29565 , and is only overridden when DocBook uses something else for sectioning
29566  (
29567 \change_inserted 1075283030 1597699921
29568 typically, 
29569 \change_inserted -970929547 1515110753
29570 parts and chapters of a book).
29571  
29572 \change_unchanged
29573
29574 \end_layout
29575
29576 \begin_layout Description
29577
29578 \change_inserted -970929547 1515110811
29579 \begin_inset Flex Code
29580 status collapsed
29581
29582 \begin_layout Plain Layout
29583
29584 \change_inserted -970929547 1496612023
29585 DocBookTag
29586 \change_unchanged
29587
29588 \end_layout
29589
29590 \end_inset
29591
29592  [
29593 \begin_inset Flex Code
29594 status collapsed
29595
29596 \begin_layout Plain Layout
29597
29598 \change_inserted -970929547 1496610966
29599 string
29600 \change_unchanged
29601
29602 \end_layout
29603
29604 \end_inset
29605
29606 ] The tag to be used for this inset, replacing 
29607 \begin_inset Quotes eld
29608 \end_inset
29609
29610
29611 \begin_inset Flex Code
29612 status collapsed
29613
29614 \begin_layout Plain Layout
29615
29616 \change_inserted -970929547 1496612033
29617 tag
29618 \change_unchanged
29619
29620 \end_layout
29621
29622 \end_inset
29623
29624
29625 \begin_inset Quotes erd
29626 \end_inset
29627
29628  in the example above.
29629  The default is the name of the float and always needs to be changed, as
29630  DocBook provides no generic inset tag.
29631 \change_inserted 1075283030 1597699924
29632
29633 \end_layout
29634
29635 \begin_layout Description
29636
29637 \change_inserted 1075283030 1597699924
29638 \begin_inset Flex Code
29639 status collapsed
29640
29641 \begin_layout Plain Layout
29642
29643 \change_inserted 1075283030 1597699924
29644 DocBookTagType
29645 \change_unchanged
29646
29647 \end_layout
29648
29649 \end_inset
29650
29651  [
29652 \begin_inset Flex Code
29653 status collapsed
29654
29655 \begin_layout Plain Layout
29656
29657 \change_inserted 1075283030 1597699924
29658 block, paragraph, inline
29659 \change_unchanged
29660
29661 \end_layout
29662
29663 \end_inset
29664
29665 ] The new-line policy for this tag, see Section
29666 \begin_inset space ~
29667 \end_inset
29668
29669
29670 \begin_inset CommandInset ref
29671 LatexCommand ref
29672 reference "subsec:DocBook-New-line-policy"
29673 plural "false"
29674 caps "false"
29675 noprefix "false"
29676
29677 \end_inset
29678
29679  for the details.
29680  
29681 \change_unchanged
29682
29683 \end_layout
29684
29685 \begin_layout Description
29686
29687 \change_inserted -970929547 1515110832
29688 \begin_inset Flex Code
29689 status collapsed
29690
29691 \begin_layout Plain Layout
29692
29693 \change_inserted -970929547 1515110822
29694 DocBookWrapperAttr
29695 \change_unchanged
29696
29697 \end_layout
29698
29699 \end_inset
29700
29701  [
29702 \begin_inset Flex Code
29703 status collapsed
29704
29705 \begin_layout Plain Layout
29706
29707 \change_inserted -970929547 1515110811
29708 string
29709 \change_unchanged
29710
29711 \end_layout
29712
29713 \end_inset
29714
29715 ] Specifies attribute information to be output with the outer tag, replacing
29716  
29717 \begin_inset Quotes eld
29718 \end_inset
29719
29720
29721 \begin_inset Flex Code
29722 status collapsed
29723
29724 \begin_layout Plain Layout
29725
29726 \change_inserted -970929547 1515110845
29727 wrapperattr
29728 \change_unchanged
29729
29730 \end_layout
29731
29732 \end_inset
29733
29734
29735 \begin_inset Quotes erd
29736 \end_inset
29737
29738  in the example above.
29739  This information can be used in further processing of the DocBook files.
29740  
29741 \end_layout
29742
29743 \begin_layout Description
29744
29745 \change_inserted -970929547 1515110917
29746 \begin_inset Flex Code
29747 status collapsed
29748
29749 \begin_layout Plain Layout
29750
29751 \change_inserted -970929547 1515110826
29752 DocBookWrapperTag
29753 \change_unchanged
29754
29755 \end_layout
29756
29757 \end_inset
29758
29759  [
29760 \begin_inset Flex Code
29761 status collapsed
29762
29763 \begin_layout Plain Layout
29764
29765 \change_inserted -970929547 1515110811
29766 string
29767 \change_unchanged
29768
29769 \end_layout
29770
29771 \end_inset
29772
29773 ] The tag to be used for the wrapper tag around the inset, replacing 
29774 \begin_inset Quotes eld
29775 \end_inset
29776
29777
29778 \begin_inset Flex Code
29779 status collapsed
29780
29781 \begin_layout Plain Layout
29782
29783 \change_inserted -970929547 1515110842
29784 wrappertag
29785 \change_unchanged
29786
29787 \end_layout
29788
29789 \end_inset
29790
29791
29792 \begin_inset Quotes erd
29793 \end_inset
29794
29795  in the example above.
29796  The default is 
29797 \begin_inset Flex Code
29798 status collapsed
29799
29800 \begin_layout Plain Layout
29801
29802 \change_inserted -970929547 1515110811
29803 NONE
29804 \change_unchanged
29805
29806 \end_layout
29807
29808 \end_inset
29809
29810 , indicating that there is no wrapper tag: tag and content are directly
29811  output without it.
29812 \change_inserted 1075283030 1597699929
29813
29814 \end_layout
29815
29816 \begin_layout Description
29817
29818 \change_inserted 1075283030 1597699929
29819 \begin_inset Flex Code
29820 status collapsed
29821
29822 \begin_layout Plain Layout
29823
29824 \change_inserted 1075283030 1597699932
29825 DocBookWrapperTagType
29826 \change_unchanged
29827
29828 \end_layout
29829
29830 \end_inset
29831
29832  [
29833 \begin_inset Flex Code
29834 status collapsed
29835
29836 \begin_layout Plain Layout
29837
29838 \change_inserted 1075283030 1597699929
29839 block, paragraph, inline
29840 \change_unchanged
29841
29842 \end_layout
29843
29844 \end_inset
29845
29846 ] The new-line policy for this tag, see Section
29847 \begin_inset space ~
29848 \end_inset
29849
29850
29851 \begin_inset CommandInset ref
29852 LatexCommand ref
29853 reference "subsec:DocBook-New-line-policy"
29854 plural "false"
29855 caps "false"
29856 noprefix "false"
29857
29858 \end_inset
29859
29860  for the details.
29861  
29862 \change_unchanged
29863
29864 \end_layout
29865
29866 \begin_layout Subsection
29867
29868 \change_inserted -970929547 1515110040
29869 Float DocBook
29870 \end_layout
29871
29872 \begin_layout Standard
29873
29874 \change_inserted -970929547 1496611700
29875 The DocBook output for floats too can be controlled by layout information.
29876  The output has the following form:
29877 \end_layout
29878
29879 \begin_layout LyX-Code
29880
29881 \change_inserted -970929547 1515109700
29882 <tag attr>
29883 \end_layout
29884
29885 \begin_layout LyX-Code
29886
29887 \change_inserted -970929547 1515110138
29888   Contents of the float as DocBook.
29889 \end_layout
29890
29891 \begin_layout LyX-Code
29892
29893 \change_inserted -970929547 1496610966
29894 </tag>
29895 \end_layout
29896
29897 \begin_layout Standard
29898
29899 \change_inserted -970929547 1496611715
29900 The caption, if there is one, is a separate inset and will be output as
29901  a title.
29902  
29903 \end_layout
29904
29905 \begin_layout Description
29906
29907 \change_inserted -970929547 1515110033
29908 \begin_inset Flex Code
29909 status collapsed
29910
29911 \begin_layout Plain Layout
29912
29913 \change_inserted -970929547 1515109702
29914 DocBookAttr
29915 \change_unchanged
29916
29917 \end_layout
29918
29919 \end_inset
29920
29921  [
29922 \begin_inset Flex Code
29923 status collapsed
29924
29925 \begin_layout Plain Layout
29926
29927 \change_inserted -970929547 1496610966
29928 string
29929 \change_unchanged
29930
29931 \end_layout
29932
29933 \end_inset
29934
29935 ] Specifies attribute information to be output with the main tag, replacing
29936  
29937 \begin_inset Quotes eld
29938 \end_inset
29939
29940
29941 \begin_inset Flex Code
29942 status collapsed
29943
29944 \begin_layout Plain Layout
29945
29946 \change_inserted -970929547 1515110035
29947 attr
29948 \change_unchanged
29949
29950 \end_layout
29951
29952 \end_inset
29953
29954
29955 \begin_inset Quotes erd
29956 \end_inset
29957
29958  in the example above.
29959  This information can be used in further processing of the DocBook files.
29960  
29961 \end_layout
29962
29963 \begin_layout Description
29964
29965 \change_inserted -970929547 1515110157
29966 \begin_inset Flex Code
29967 status collapsed
29968
29969 \begin_layout Plain Layout
29970
29971 \change_inserted -970929547 1496611782
29972 DocBookTag
29973 \change_unchanged
29974
29975 \end_layout
29976
29977 \end_inset
29978
29979  [
29980 \begin_inset Flex Code
29981 status collapsed
29982
29983 \begin_layout Plain Layout
29984
29985 \change_inserted -970929547 1496610966
29986 string
29987 \change_unchanged
29988
29989 \end_layout
29990
29991 \end_inset
29992
29993 ] The tag to be used for this float, replacing 
29994 \begin_inset Quotes eld
29995 \end_inset
29996
29997
29998 \begin_inset Flex Code
29999 status collapsed
30000
30001 \begin_layout Plain Layout
30002
30003 \change_inserted -970929547 1496610966
30004 tag
30005 \change_unchanged
30006
30007 \end_layout
30008
30009 \end_inset
30010
30011
30012 \begin_inset Quotes erd
30013 \end_inset
30014
30015  in the example above.
30016  The default is the name of the float and always needs to be changed, as
30017  DocBook provides no generic float tag.
30018 \end_layout
30019
30020 \begin_layout Subsection
30021
30022 \change_inserted -970929547 1515110157
30023 Bibliography formatting
30024 \end_layout
30025
30026 \begin_layout Standard
30027
30028 \change_deleted 1075283030 1597699984
30029 The 
30030 \change_inserted 1075283030 1597699985
30031 Included 
30032 \change_inserted -970929547 1515110187
30033 bibliograph
30034 \change_deleted 1075283030 1597699987
30035 y
30036 \change_inserted 1075283030 1597699987
30037 ies
30038 \change_inserted -970929547 1515110187
30039  cannot be formatted: all fields are always output in the database-like
30040  DocBook format (equivalent to a BibTeX file)
30041 \change_inserted 1075283030 1597700117
30042 , using the 
30043 \begin_inset Flex Code
30044 status collapsed
30045
30046 \begin_layout Plain Layout
30047
30048 \change_inserted 1075283030 1597700120
30049 biblioentry
30050 \change_unchanged
30051
30052 \end_layout
30053
30054 \end_inset
30055
30056  tag
30057 \change_inserted -970929547 1515110187
30058 .
30059 \change_inserted 1075283030 1597700092
30060
30061 \end_layout
30062
30063 \begin_layout Standard
30064
30065 \change_inserted 1075283030 1597700112
30066 When the bibliographic entries are manually inserted into the LyX document
30067  as Bibliography Items, the user deals with formatting themself: there is
30068  no attempt of parsing what the user wrote, the string is directly used
30069  (with the 
30070 \begin_inset Flex Code
30071 status collapsed
30072
30073 \begin_layout Plain Layout
30074
30075 \change_inserted 1075283030 1597700076
30076 bibliomixed
30077 \change_unchanged
30078
30079 \end_layout
30080
30081 \end_inset
30082
30083  tag).
30084  
30085 \change_unchanged
30086
30087 \end_layout
30088
30089 \begin_layout Chapter
30090 Including External Material
30091 \begin_inset CommandInset label
30092 LatexCommand label
30093 name "chap:Including-External-Material"
30094
30095 \end_inset
30096
30097
30098 \end_layout
30099
30100 \begin_layout Standard
30101 \begin_inset Box Shadowbox
30102 position "t"
30103 hor_pos "c"
30104 has_inner_box 1
30105 inner_pos "t"
30106 use_parbox 0
30107 use_makebox 0
30108 width "100col%"
30109 special "none"
30110 height "1in"
30111 height_special "totalheight"
30112 thickness "0.4pt"
30113 separation "3pt"
30114 shadowsize "4pt"
30115 framecolor "black"
30116 backgroundcolor "none"
30117 status open
30118
30119 \begin_layout Plain Layout
30120 WARNING: This portion of the documentation has not been updated for some
30121  time.
30122  We certainly hope that it is still accurate, but there are no guarantees.
30123 \end_layout
30124
30125 \end_inset
30126
30127
30128 \end_layout
30129
30130 \begin_layout Standard
30131 The use of material from sources external to \SpecialChar LyX
30132  is covered in detail in the
30133  
30134 \emph on
30135 Embedded Objects
30136 \emph default
30137  manual.
30138  This part of the manual covers what needs to happen behind the scenes for
30139  new sorts of material to be included.
30140 \end_layout
30141
30142 \begin_layout Section
30143 How does it work?
30144 \end_layout
30145
30146 \begin_layout Standard
30147 The external material feature is based on the concept of a 
30148 \emph on
30149 template
30150 \emph default
30151 .
30152  A template is a specification of how \SpecialChar LyX
30153  should interface with a certain kind
30154  of material.
30155  As bundled, \SpecialChar LyX
30156  comes with predefined templates for Xfig figures, various
30157  raster format images, chess diagrams, and LilyPond music notation.
30158  You can check the actual list by using the menu 
30159 \begin_inset Flex Noun
30160 status collapsed
30161
30162 \begin_layout Plain Layout
30163 Insert\SpecialChar menuseparator
30164 File\SpecialChar menuseparator
30165 External Material
30166 \end_layout
30167
30168 \end_inset
30169
30170 .
30171  Furthermore, it is possible to roll your own template to support a specific
30172  kind of material.
30173  Later we'll describe in more detail what is involved, and hopefully you
30174  will submit all the templates you create so we can include them in a later
30175  \SpecialChar LyX
30176  version.
30177 \end_layout
30178
30179 \begin_layout Standard
30180 Another basic idea of the external material feature is to distinguish between
30181  the original file that serves as a base for final material and the produced
30182  file that is included in your exported or printed document.
30183  For example, consider the case of a figure produced with 
30184 \begin_inset Flex Code
30185 status collapsed
30186
30187 \begin_layout Plain Layout
30188 Xfig
30189 \end_layout
30190
30191 \end_inset
30192
30193 .
30194  The Xfig application itself works on an original file with the 
30195 \begin_inset Flex Code
30196 status collapsed
30197
30198 \begin_layout Plain Layout
30199 .fig
30200 \end_layout
30201
30202 \end_inset
30203
30204  extension.
30205  Within Xfig, you create and change your figure, and when you are done,
30206  you save the 
30207 \begin_inset Flex Code
30208 status collapsed
30209
30210 \begin_layout Plain Layout
30211 fig
30212 \end_layout
30213
30214 \end_inset
30215
30216 -file.
30217  When you want to include the figure in your document, you invoke 
30218 \begin_inset Flex Code
30219 status collapsed
30220
30221 \begin_layout Plain Layout
30222 transfig
30223 \end_layout
30224
30225 \end_inset
30226
30227  in order to create a PostScript file that can readily be included in your
30228  \SpecialChar LaTeX
30229  file.
30230  In this case, the 
30231 \begin_inset Flex Code
30232 status collapsed
30233
30234 \begin_layout Plain Layout
30235 .fig
30236 \end_layout
30237
30238 \end_inset
30239
30240  file is the original file, and the PostScript file is the produced file.
30241 \end_layout
30242
30243 \begin_layout Standard
30244 This distinction is important in order to allow updating of the material
30245  while you are in the process of writing the document.
30246  Furthermore, it provides us with the flexibility that is needed to support
30247  multiple export formats.
30248  For instance, in the case of a plain text file, it is not exactly an award-winn
30249 ing idea to include the figure as raw PostScript.
30250  Instead, you would either prefer to just include a reference to the figure
30251  or try to invoke some graphics to ASCII converter to make the final result
30252  look similar to the real graphics.
30253  The external material management allows you to do this, because it is parametri
30254 zed on the different export formats that \SpecialChar LyX
30255  supports.
30256 \end_layout
30257
30258 \begin_layout Standard
30259 Besides supporting the production of different products according to the
30260  exported format, it supports tight integration with editing and viewing
30261  applications.
30262  In the case of an Xfig figure, you are able to invoke Xfig on the original
30263  file with a single click from within the external material dialog in \SpecialChar LyX
30264 ,
30265  and also preview the produced PostScript file with Ghostview with another
30266  click.
30267  No more fiddling around with the command line and/or file browsers to locate
30268  and manipulate the original or produced files.
30269  In this way, you are finally able to take full advantage of the many different
30270  applications that are relevant to use when you write your documents, and
30271  ultimately be more productive.
30272 \end_layout
30273
30274 \begin_layout Section
30275 The external template configuration files
30276 \end_layout
30277
30278 \begin_layout Standard
30279 It is relatively easy to add custom external template definitions to \SpecialChar LyX
30280 .
30281  However, be aware that doing this in an careless manner most probably 
30282 \emph on
30283 will
30284 \emph default
30285  introduce an easily exploitable security hole.
30286  So before you do this, please read the discussion about security in 
30287 \begin_inset CommandInset ref
30288 LatexCommand ref
30289 reference "sec:Security-discussion"
30290
30291 \end_inset
30292
30293 .
30294 \end_layout
30295
30296 \begin_layout Standard
30297 Having said that, we encourage you to submit any interesting templates that
30298  you create.
30299  
30300 \end_layout
30301
30302 \begin_layout Standard
30303 The external templates are defined in the 
30304 \begin_inset Flex Code
30305 status collapsed
30306
30307 \begin_layout Plain Layout
30308 *.xtemplate
30309 \end_layout
30310
30311 \end_inset
30312
30313  files that are stored in the 
30314 \begin_inset Flex Code
30315 status collapsed
30316
30317 \begin_layout Plain Layout
30318 LyXDir/lib/xtemplates/
30319 \end_layout
30320
30321 \end_inset
30322
30323  directory.
30324  Each template is defined in a file of its own.
30325  You can place your own templates in 
30326 \begin_inset Flex Code
30327 status collapsed
30328
30329 \begin_layout Plain Layout
30330 UserDir/xtemplates/
30331 \end_layout
30332
30333 \end_inset
30334
30335  or copy existing templates to that directory in order to modify them.
30336 \end_layout
30337
30338 \begin_layout Standard
30339 A typical template looks like this:
30340 \end_layout
30341
30342 \begin_layout LyX-Code
30343 Template XFig
30344 \end_layout
30345
30346 \begin_layout LyX-Code
30347 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
30348 \end_layout
30349
30350 \begin_layout LyX-Code
30351 HelpText
30352 \end_layout
30353
30354 \begin_layout LyX-Code
30355 An XFig figure.
30356 \end_layout
30357
30358 \begin_layout LyX-Code
30359 HelpTextEnd
30360 \end_layout
30361
30362 \begin_layout LyX-Code
30363 InputFormat fig
30364 \end_layout
30365
30366 \begin_layout LyX-Code
30367 FileFilter "*.fig"
30368 \end_layout
30369
30370 \begin_layout LyX-Code
30371 AutomaticProduction true
30372 \end_layout
30373
30374 \begin_layout LyX-Code
30375 Transform Rotate
30376 \end_layout
30377
30378 \begin_layout LyX-Code
30379 Transform Resize
30380 \end_layout
30381
30382 \begin_layout LyX-Code
30383 Format LaTeX
30384 \end_layout
30385
30386 \begin_layout LyX-Code
30387 TransformCommand Rotate RotationLatexCommand
30388 \end_layout
30389
30390 \begin_layout LyX-Code
30391 TransformCommand Resize ResizeLatexCommand
30392 \end_layout
30393
30394 \begin_layout LyX-Code
30395 Product "$$RotateFront$$ResizeFront
30396 \end_layout
30397
30398 \begin_layout LyX-Code
30399          
30400 \backslash
30401
30402 \backslash
30403 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
30404 \end_layout
30405
30406 \begin_layout LyX-Code
30407          $$ResizeBack$$RotateBack"
30408 \end_layout
30409
30410 \begin_layout LyX-Code
30411 UpdateFormat pstex
30412 \end_layout
30413
30414 \begin_layout LyX-Code
30415 UpdateResult "$$AbsPath$$Basename.pstex_t"
30416 \end_layout
30417
30418 \begin_layout LyX-Code
30419 Requirement "graphicx"
30420 \end_layout
30421
30422 \begin_layout LyX-Code
30423 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
30424 \end_layout
30425
30426 \begin_layout LyX-Code
30427 ReferencedFile latex "$$AbsPath$$Basename.eps"
30428 \end_layout
30429
30430 \begin_layout LyX-Code
30431 ReferencedFile dvi "$$AbsPath$$Basename.eps"
30432 \end_layout
30433
30434 \begin_layout LyX-Code
30435 FormatEnd
30436 \end_layout
30437
30438 \begin_layout LyX-Code
30439 Format PDFLaTeX
30440 \end_layout
30441
30442 \begin_layout LyX-Code
30443 TransformCommand Rotate RotationLatexCommand
30444 \end_layout
30445
30446 \begin_layout LyX-Code
30447 TransformCommand Resize ResizeLatexCommand
30448 \end_layout
30449
30450 \begin_layout LyX-Code
30451 Product "$$RotateFront$$ResizeFront
30452 \end_layout
30453
30454 \begin_layout LyX-Code
30455          
30456 \backslash
30457
30458 \backslash
30459 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
30460 \end_layout
30461
30462 \begin_layout LyX-Code
30463          $$ResizeBack$$RotateBack"
30464 \end_layout
30465
30466 \begin_layout LyX-Code
30467 UpdateFormat pdftex
30468 \end_layout
30469
30470 \begin_layout LyX-Code
30471 UpdateResult "$$AbsPath$$Basename.pdftex_t"
30472 \end_layout
30473
30474 \begin_layout LyX-Code
30475 Requirement "graphicx"
30476 \end_layout
30477
30478 \begin_layout LyX-Code
30479 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
30480 \end_layout
30481
30482 \begin_layout LyX-Code
30483 ReferencedFile latex "$$AbsPath$$Basename.pdf"
30484 \end_layout
30485
30486 \begin_layout LyX-Code
30487 FormatEnd
30488 \end_layout
30489
30490 \begin_layout LyX-Code
30491 Format Ascii
30492 \end_layout
30493
30494 \begin_layout LyX-Code
30495 Product "[XFig: $$FName]"
30496 \end_layout
30497
30498 \begin_layout LyX-Code
30499 FormatEnd
30500 \end_layout
30501
30502 \begin_layout LyX-Code
30503 Format DocBook
30504 \end_layout
30505
30506 \begin_layout LyX-Code
30507 Product "<graphic fileref=
30508 \backslash
30509 "$$AbsOrRelPathMaster$$Basename.eps
30510 \backslash
30511 ">
30512 \end_layout
30513
30514 \begin_layout LyX-Code
30515          </graphic>"
30516 \end_layout
30517
30518 \begin_layout LyX-Code
30519 UpdateFormat eps
30520 \end_layout
30521
30522 \begin_layout LyX-Code
30523 UpdateResult "$$AbsPath$$Basename.eps"
30524 \end_layout
30525
30526 \begin_layout LyX-Code
30527 ReferencedFile docbook "$$AbsPath$$Basename.eps"
30528 \end_layout
30529
30530 \begin_layout LyX-Code
30531 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
30532 \end_layout
30533
30534 \begin_layout LyX-Code
30535 FormatEnd
30536 \end_layout
30537
30538 \begin_layout LyX-Code
30539 TemplateEnd
30540 \end_layout
30541
30542 \begin_layout Standard
30543 As you can see, the template is enclosed in 
30544 \begin_inset Flex Code
30545 status collapsed
30546
30547 \begin_layout Plain Layout
30548 Template
30549 \end_layout
30550
30551 \end_inset
30552
30553  \SpecialChar ldots
30554  
30555 \begin_inset Flex Code
30556 status collapsed
30557
30558 \begin_layout Plain Layout
30559 TemplateEnd
30560 \end_layout
30561
30562 \end_inset
30563
30564 .
30565  It contains a header specifying some general settings and, for each supported
30566  primary document file format, a section 
30567 \begin_inset Flex Code
30568 status collapsed
30569
30570 \begin_layout Plain Layout
30571 Format
30572 \end_layout
30573
30574 \end_inset
30575
30576  \SpecialChar ldots
30577  
30578 \begin_inset Flex Code
30579 status collapsed
30580
30581 \begin_layout Plain Layout
30582 FormatEnd
30583 \end_layout
30584
30585 \end_inset
30586
30587 .
30588 \end_layout
30589
30590 \begin_layout Subsection
30591 The template header
30592 \end_layout
30593
30594 \begin_layout Description
30595 \begin_inset Flex Code
30596 status collapsed
30597
30598 \begin_layout Plain Layout
30599 AutomaticProduction
30600 \begin_inset space ~
30601 \end_inset
30602
30603 true|false
30604 \end_layout
30605
30606 \end_inset
30607
30608  Whether the file represented by the template must be generated by \SpecialChar LyX
30609 .
30610  This command must occur exactly once.
30611 \end_layout
30612
30613 \begin_layout Description
30614 \begin_inset Flex Code
30615 status collapsed
30616
30617 \begin_layout Plain Layout
30618 FileFilter
30619 \begin_inset space ~
30620 \end_inset
30621
30622 <pattern>
30623 \end_layout
30624
30625 \end_inset
30626
30627  A glob pattern that is used in the file dialog to filter out the desired
30628  files.
30629  If there is more than one possible file extension (e.
30630 \begin_inset space \thinspace{}
30631 \end_inset
30632
30633 g.
30634 \begin_inset space \space{}
30635 \end_inset
30636
30637 tgif has 
30638 \begin_inset Flex Code
30639 status collapsed
30640
30641 \begin_layout Plain Layout
30642 .obj
30643 \end_layout
30644
30645 \end_inset
30646
30647  and 
30648 \begin_inset Flex Code
30649 status collapsed
30650
30651 \begin_layout Plain Layout
30652 .tgo
30653 \end_layout
30654
30655 \end_inset
30656
30657 ), use something like 
30658 \begin_inset Flex Code
30659 status collapsed
30660
30661 \begin_layout Plain Layout
30662 "*.{obj,tgo}"
30663 \end_layout
30664
30665 \end_inset
30666
30667 .
30668  This command must occur exactly once.
30669 \end_layout
30670
30671 \begin_layout Description
30672 \begin_inset Flex Code
30673 status collapsed
30674
30675 \begin_layout Plain Layout
30676 GuiName
30677 \begin_inset space ~
30678 \end_inset
30679
30680 <guiname>
30681 \end_layout
30682
30683 \end_inset
30684
30685  The text that is displayed on the button.
30686  This command must occur exactly once.
30687 \end_layout
30688
30689 \begin_layout Description
30690 \begin_inset Flex Code
30691 status collapsed
30692
30693 \begin_layout Plain Layout
30694 HelpText
30695 \begin_inset space ~
30696 \end_inset
30697
30698 <text>
30699 \begin_inset space ~
30700 \end_inset
30701
30702 HelpTextEnd
30703 \end_layout
30704
30705 \end_inset
30706
30707  The help text that is used in the External dialog.
30708  Provide enough information to explain to the user just what the template
30709  can provide him with.
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 InputFormat
30719 \begin_inset space ~
30720 \end_inset
30721
30722 <format>
30723 \end_layout
30724
30725 \end_inset
30726
30727  The file format of the original file.
30728  This must be the name of a format that is known to \SpecialChar LyX
30729  (see 
30730 \begin_inset CommandInset ref
30731 LatexCommand ref
30732 reference "sec:Formats"
30733
30734 \end_inset
30735
30736 ).
30737  Use 
30738 \begin_inset Quotes eld
30739 \end_inset
30740
30741
30742 \begin_inset Flex Code
30743 status collapsed
30744
30745 \begin_layout Plain Layout
30746 *
30747 \end_layout
30748
30749 \end_inset
30750
30751
30752 \begin_inset Quotes erd
30753 \end_inset
30754
30755  if the template can handle original files of more than one format.
30756  \SpecialChar LyX
30757  will attempt to interrogate the file itself in order to deduce its format
30758  in this case.
30759  This command must occur exactly once.
30760 \end_layout
30761
30762 \begin_layout Description
30763 \begin_inset Flex Code
30764 status collapsed
30765
30766 \begin_layout Plain Layout
30767 Template
30768 \begin_inset space ~
30769 \end_inset
30770
30771 <id>
30772 \end_layout
30773
30774 \end_inset
30775
30776  A unique name for the template.
30777  It must not contain substitution macros (see below).
30778 \end_layout
30779
30780 \begin_layout Description
30781 \begin_inset Flex Code
30782 status collapsed
30783
30784 \begin_layout Plain Layout
30785 Transform
30786 \begin_inset space ~
30787 \end_inset
30788
30789 Rotate|Resize|Clip|Extra
30790 \end_layout
30791
30792 \end_inset
30793
30794  This command specifies which transformations are supported by this template.
30795  It may occur zero or more times.
30796  This command enables the corresponding tabs in the external dialog.
30797  Each 
30798 \begin_inset Flex Code
30799 status collapsed
30800
30801 \begin_layout Plain Layout
30802 Transform
30803 \end_layout
30804
30805 \end_inset
30806
30807  command must have either a corresponding 
30808 \begin_inset Flex Code
30809 status collapsed
30810
30811 \begin_layout Plain Layout
30812 TransformCommand
30813 \end_layout
30814
30815 \end_inset
30816
30817  or a 
30818 \begin_inset Flex Code
30819 status collapsed
30820
30821 \begin_layout Plain Layout
30822 TransformOption
30823 \end_layout
30824
30825 \end_inset
30826
30827  command in the 
30828 \begin_inset Flex Code
30829 status collapsed
30830
30831 \begin_layout Plain Layout
30832 Format
30833 \end_layout
30834
30835 \end_inset
30836
30837  section.
30838  Otherwise the transformation will not be supported by that format.
30839 \end_layout
30840
30841 \begin_layout Subsection
30842 The Format section
30843 \end_layout
30844
30845 \begin_layout Description
30846 \begin_inset Flex Code
30847 status collapsed
30848
30849 \begin_layout Plain Layout
30850 Format
30851 \begin_inset space ~
30852 \end_inset
30853
30854 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
30855 \end_layout
30856
30857 \end_inset
30858
30859  The primary document file format that this format definition is for.
30860  Not every template has a sensible representation in all document file formats.
30861  Please define nevertheless a 
30862 \begin_inset Flex Code
30863 status collapsed
30864
30865 \begin_layout Plain Layout
30866 Format
30867 \end_layout
30868
30869 \end_inset
30870
30871  section for all templates.
30872  Use a dummy text when no representation is available.
30873  Then you can at least see a reference to the external material in the exported
30874  document.
30875 \end_layout
30876
30877 \begin_layout Description
30878 \begin_inset Flex Code
30879 status collapsed
30880
30881 \begin_layout Plain Layout
30882 Option
30883 \begin_inset space ~
30884 \end_inset
30885
30886 <name>
30887 \begin_inset space ~
30888 \end_inset
30889
30890 <value>
30891 \end_layout
30892
30893 \end_inset
30894
30895  This command defines an additional macro 
30896 \begin_inset Flex Code
30897 status collapsed
30898
30899 \begin_layout Plain Layout
30900 $$<name>
30901 \end_layout
30902
30903 \end_inset
30904
30905  for substitution in 
30906 \begin_inset Flex Code
30907 status collapsed
30908
30909 \begin_layout Plain Layout
30910 Product
30911 \end_layout
30912
30913 \end_inset
30914
30915 .
30916  
30917 \begin_inset Flex Code
30918 status collapsed
30919
30920 \begin_layout Plain Layout
30921 <value>
30922 \end_layout
30923
30924 \end_inset
30925
30926  itself may contain substitution macros.
30927  The advantage over using 
30928 \begin_inset Flex Code
30929 status collapsed
30930
30931 \begin_layout Plain Layout
30932 <value>
30933 \end_layout
30934
30935 \end_inset
30936
30937  directly in 
30938 \begin_inset Flex Code
30939 status collapsed
30940
30941 \begin_layout Plain Layout
30942 Product
30943 \end_layout
30944
30945 \end_inset
30946
30947  is that the substituted value of 
30948 \begin_inset Flex Code
30949 status collapsed
30950
30951 \begin_layout Plain Layout
30952 $$<name>
30953 \end_layout
30954
30955 \end_inset
30956
30957  is sanitized so that it is a valid optional argument in the document format.
30958  This command may occur zero or more times.
30959 \end_layout
30960
30961 \begin_layout Description
30962 \begin_inset Flex Code
30963 status collapsed
30964
30965 \begin_layout Plain Layout
30966 Product
30967 \begin_inset space ~
30968 \end_inset
30969
30970 <text>
30971 \end_layout
30972
30973 \end_inset
30974
30975  The text that is inserted in the exported document.
30976  This is actually the most important command and can be quite complex.
30977  This command must occur exactly once.
30978 \end_layout
30979
30980 \begin_layout Description
30981 \begin_inset Flex Code
30982 status collapsed
30983
30984 \begin_layout Plain Layout
30985 Preamble
30986 \begin_inset space ~
30987 \end_inset
30988
30989 <name>
30990 \end_layout
30991
30992 \end_inset
30993
30994  This command specifies a preamble snippet that will be included in the
30995  \SpecialChar LaTeX
30996  preamble.
30997  It has to be defined using 
30998 \begin_inset Flex Code
30999 status collapsed
31000
31001 \begin_layout Plain Layout
31002 PreambleDef
31003 \end_layout
31004
31005 \end_inset
31006
31007  \SpecialChar ldots
31008  
31009 \begin_inset Flex Code
31010 status collapsed
31011
31012 \begin_layout Plain Layout
31013 PreambleDefEnd
31014 \end_layout
31015
31016 \end_inset
31017
31018 .
31019  This command may occur zero or more times.
31020 \end_layout
31021
31022 \begin_layout Description
31023 \begin_inset Flex Code
31024 status collapsed
31025
31026 \begin_layout Plain Layout
31027 ReferencedFile
31028 \begin_inset space ~
31029 \end_inset
31030
31031 <format>
31032 \begin_inset space ~
31033 \end_inset
31034
31035 <filename>
31036 \end_layout
31037
31038 \end_inset
31039
31040  This command denotes files that are created by the conversion process and
31041  are needed for a particular export format.
31042  If the filename is relative, it is interpreted relative to the master document.
31043  This command may be given zero or more times.
31044 \end_layout
31045
31046 \begin_layout Description
31047 \begin_inset Flex Code
31048 status collapsed
31049
31050 \begin_layout Plain Layout
31051 Requirement
31052 \begin_inset space ~
31053 \end_inset
31054
31055 <package>
31056 \end_layout
31057
31058 \end_inset
31059
31060  The name of a required \SpecialChar LaTeX
31061  package.
31062  The package is included via 
31063 \begin_inset Flex Code
31064 status collapsed
31065
31066 \begin_layout Plain Layout
31067
31068 \backslash
31069 usepackage{}
31070 \end_layout
31071
31072 \end_inset
31073
31074  in the \SpecialChar LaTeX
31075  preamble.
31076  This command may occur zero or more times.
31077 \end_layout
31078
31079 \begin_layout Description
31080 \begin_inset Flex Code
31081 status collapsed
31082
31083 \begin_layout Plain Layout
31084 TransformCommand
31085 \begin_inset space ~
31086 \end_inset
31087
31088 Rotate
31089 \begin_inset space ~
31090 \end_inset
31091
31092 RotationLatexCommand
31093 \end_layout
31094
31095 \end_inset
31096
31097  This command specifies that the built in \SpecialChar LaTeX
31098  command should be used for rotation.
31099  This command may occur once or not at all.
31100 \end_layout
31101
31102 \begin_layout Description
31103 \begin_inset Flex Code
31104 status collapsed
31105
31106 \begin_layout Plain Layout
31107 TransformCommand
31108 \begin_inset space ~
31109 \end_inset
31110
31111 Resize
31112 \begin_inset space ~
31113 \end_inset
31114
31115 ResizeLatexCommand
31116 \end_layout
31117
31118 \end_inset
31119
31120  This command specifies that the built in \SpecialChar LaTeX
31121  command should be used for resizing.
31122  This command may occur once or not at all.
31123 \end_layout
31124
31125 \begin_layout Description
31126 \begin_inset Flex Code
31127 status collapsed
31128
31129 \begin_layout Plain Layout
31130 TransformOption
31131 \begin_inset space ~
31132 \end_inset
31133
31134 Rotate
31135 \begin_inset space ~
31136 \end_inset
31137
31138 RotationLatexOption
31139 \end_layout
31140
31141 \end_inset
31142
31143  This command specifies that rotation is done via an optional argument.
31144  This command may occur once or not at all.
31145 \end_layout
31146
31147 \begin_layout Description
31148 \begin_inset Flex Code
31149 status collapsed
31150
31151 \begin_layout Plain Layout
31152 TransformOption
31153 \begin_inset space ~
31154 \end_inset
31155
31156 Resize
31157 \begin_inset space ~
31158 \end_inset
31159
31160 ResizeLatexOption
31161 \end_layout
31162
31163 \end_inset
31164
31165  This command specifies that resizing is done via an optional argument.
31166  This command may occur once or not at all.
31167 \end_layout
31168
31169 \begin_layout Description
31170 \begin_inset Flex Code
31171 status collapsed
31172
31173 \begin_layout Plain Layout
31174 TransformOption
31175 \begin_inset space ~
31176 \end_inset
31177
31178 Clip
31179 \begin_inset space ~
31180 \end_inset
31181
31182 ClipLatexOption
31183 \end_layout
31184
31185 \end_inset
31186
31187  This command specifies that clipping is done via an optional argument.
31188  This command may occur once or not at all.
31189 \end_layout
31190
31191 \begin_layout Description
31192 \begin_inset Flex Code
31193 status collapsed
31194
31195 \begin_layout Plain Layout
31196 TransformOption
31197 \begin_inset space ~
31198 \end_inset
31199
31200 Extra
31201 \begin_inset space ~
31202 \end_inset
31203
31204 ExtraLatexOption
31205 \end_layout
31206
31207 \end_inset
31208
31209  This command specifies that an extra optional argument is used.
31210  This command may occur once or not at all.
31211 \end_layout
31212
31213 \begin_layout Description
31214 \begin_inset Flex Code
31215 status collapsed
31216
31217 \begin_layout Plain Layout
31218 UpdateFormat
31219 \begin_inset space ~
31220 \end_inset
31221
31222 <format>
31223 \end_layout
31224
31225 \end_inset
31226
31227  The file format of the converted file.
31228  This must be the name of a format that is known to \SpecialChar LyX
31229  (see the 
31230 \begin_inset Flex Noun
31231 status collapsed
31232
31233 \begin_layout Plain Layout
31234 Tools\SpecialChar menuseparator
31235 Preferences\SpecialChar menuseparator
31236 File Handling\SpecialChar menuseparator
31237 File Format
31238 \end_layout
31239
31240 \end_inset
31241
31242  dialog).
31243  This command must occur exactly once.
31244  If the resulting file format is PDF, you need to specify the format 
31245 \begin_inset Flex Code
31246 status collapsed
31247
31248 \begin_layout Plain Layout
31249 pdf6
31250 \end_layout
31251
31252 \end_inset
31253
31254 .
31255  This is the PDF format used for including graphics.
31256  The other defined PDF formats are for document export.
31257 \end_layout
31258
31259 \begin_layout Description
31260 \begin_inset Flex Code
31261 status collapsed
31262
31263 \begin_layout Plain Layout
31264 UpdateResult
31265 \begin_inset space ~
31266 \end_inset
31267
31268 <filename>
31269 \end_layout
31270
31271 \end_inset
31272
31273  The file name of the converted file.
31274  The file name must be absolute.
31275  This command must occur exactly once.
31276 \end_layout
31277
31278 \begin_layout Subsection
31279 Preamble definitions
31280 \end_layout
31281
31282 \begin_layout Standard
31283 The external template configuration file may contain additional preamble
31284  definitions enclosed by 
31285 \begin_inset Flex Code
31286 status collapsed
31287
31288 \begin_layout Plain Layout
31289 PreambleDef
31290 \end_layout
31291
31292 \end_inset
31293
31294  \SpecialChar ldots
31295  
31296 \begin_inset Flex Code
31297 status collapsed
31298
31299 \begin_layout Plain Layout
31300 PreambleDefEnd
31301 \end_layout
31302
31303 \end_inset
31304
31305 .
31306  They can be used by the templates in the 
31307 \begin_inset Flex Code
31308 status collapsed
31309
31310 \begin_layout Plain Layout
31311 Format
31312 \end_layout
31313
31314 \end_inset
31315
31316  section.
31317 \end_layout
31318
31319 \begin_layout Section
31320 The substitution mechanism
31321 \end_layout
31322
31323 \begin_layout Standard
31324 When the external material facility invokes an external program, it is done
31325  on the basis of a command defined in the template configuration file.
31326  These commands can contain various macros that are expanded before execution.
31327  Execution always take place in the directory of the containing document.
31328 \end_layout
31329
31330 \begin_layout Standard
31331 Also, whenever external material is to be displayed, the name will be produced
31332  by the substitution mechanism, and most other commands in the template
31333  definition support substitution as well.
31334 \end_layout
31335
31336 \begin_layout Standard
31337 The available macros are the following:
31338 \end_layout
31339
31340 \begin_layout Description
31341 \begin_inset Flex Code
31342 status collapsed
31343
31344 \begin_layout Plain Layout
31345 $$AbsOrRelPathMaster
31346 \end_layout
31347
31348 \end_inset
31349
31350  The file path, absolute or relative to the master \SpecialChar LyX
31351  document.
31352 \end_layout
31353
31354 \begin_layout Description
31355 \begin_inset Flex Code
31356 status collapsed
31357
31358 \begin_layout Plain Layout
31359 $$AbsOrRelPathParent
31360 \end_layout
31361
31362 \end_inset
31363
31364  The file path, absolute or relative to the \SpecialChar LyX
31365  document.
31366 \end_layout
31367
31368 \begin_layout Description
31369 \begin_inset Flex Code
31370 status collapsed
31371
31372 \begin_layout Plain Layout
31373 $$AbsPath
31374 \end_layout
31375
31376 \end_inset
31377
31378  The absolute file path.
31379 \end_layout
31380
31381 \begin_layout Description
31382 \begin_inset Flex Code
31383 status collapsed
31384
31385 \begin_layout Plain Layout
31386 $$Basename
31387 \end_layout
31388
31389 \end_inset
31390
31391  The filename without path and without the extension.
31392 \end_layout
31393
31394 \begin_layout Description
31395 \begin_inset Flex Code
31396 status collapsed
31397
31398 \begin_layout Plain Layout
31399 $$Contents(
31400 \begin_inset Quotes eld
31401 \end_inset
31402
31403 filename.ext
31404 \begin_inset Quotes erd
31405 \end_inset
31406
31407 )
31408 \end_layout
31409
31410 \end_inset
31411
31412  This macro will expand to the contents of the file with the name 
31413 \begin_inset Flex Code
31414 status collapsed
31415
31416 \begin_layout Plain Layout
31417 filename.ext
31418 \end_layout
31419
31420 \end_inset
31421
31422 .
31423 \end_layout
31424
31425 \begin_layout Description
31426 \begin_inset Flex Code
31427 status collapsed
31428
31429 \begin_layout Plain Layout
31430 $$Extension
31431 \end_layout
31432
31433 \end_inset
31434
31435  The file extension (including the dot).
31436 \end_layout
31437
31438 \begin_layout Description
31439 \begin_inset Flex Code
31440 status collapsed
31441
31442 \begin_layout Plain Layout
31443 $$pngOrjpg
31444 \end_layout
31445
31446 \end_inset
31447
31448  This will be the string 
31449 \begin_inset Quotes eld
31450 \end_inset
31451
31452 jpg
31453 \begin_inset Quotes erd
31454 \end_inset
31455
31456  if the file is in JPEG format, otherwise it will be the string 
31457 \begin_inset Quotes eld
31458 \end_inset
31459
31460 png
31461 \begin_inset Quotes erd
31462 \end_inset
31463
31464 .
31465  This is useful to avoid uneeded conversions for output formats that support
31466  both PNG and JPEG fomats.
31467  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
31468  output
31469  format.
31470 \end_layout
31471
31472 \begin_layout Description
31473 \begin_inset Flex Code
31474 status collapsed
31475
31476 \begin_layout Plain Layout
31477 $$FName
31478 \end_layout
31479
31480 \end_inset
31481
31482  The filename of the file specified in the external material dialog.
31483  This is either an absolute name, or it is relative to the \SpecialChar LyX
31484  document.
31485 \end_layout
31486
31487 \begin_layout Description
31488 \begin_inset Flex Code
31489 status collapsed
31490
31491 \begin_layout Plain Layout
31492 $$FPath
31493 \end_layout
31494
31495 \end_inset
31496
31497  The path part of 
31498 \begin_inset Flex Code
31499 status collapsed
31500
31501 \begin_layout Plain Layout
31502 $$FName
31503 \end_layout
31504
31505 \end_inset
31506
31507  (absolute name or relative to the \SpecialChar LyX
31508  document).
31509 \end_layout
31510
31511 \begin_layout Description
31512 \begin_inset Flex Code
31513 status collapsed
31514
31515 \begin_layout Plain Layout
31516 $$RelPathMaster
31517 \end_layout
31518
31519 \end_inset
31520
31521  The file path, relative to the master \SpecialChar LyX
31522  document.
31523 \end_layout
31524
31525 \begin_layout Description
31526 \begin_inset Flex Code
31527 status collapsed
31528
31529 \begin_layout Plain Layout
31530 $$RelPathParent
31531 \end_layout
31532
31533 \end_inset
31534
31535  The file path, relative to the \SpecialChar LyX
31536  document.
31537 \end_layout
31538
31539 \begin_layout Description
31540 \begin_inset Flex Code
31541 status collapsed
31542
31543 \begin_layout Plain Layout
31544 $$Sysdir
31545 \end_layout
31546
31547 \end_inset
31548
31549  This macro will expand to the absolute path of the system directory.
31550  This is typically used to point to the various helper scripts that are
31551  bundled with \SpecialChar LyX
31552 .
31553 \end_layout
31554
31555 \begin_layout Description
31556 \begin_inset Flex Code
31557 status collapsed
31558
31559 \begin_layout Plain Layout
31560 $$Tempname
31561 \end_layout
31562
31563 \end_inset
31564
31565  A name and full path to a temporary file which will be automatically deleted
31566  whenever the containing document is closed, or the external material insertion
31567  deleted.
31568 \end_layout
31569
31570 \begin_layout Standard
31571 All path macros contain a trailing directory separator, so you can construct
31572  e.
31573 \begin_inset space \thinspace{}
31574 \end_inset
31575
31576 g.
31577 \begin_inset space \space{}
31578 \end_inset
31579
31580 the absolute filename with 
31581 \begin_inset Flex Code
31582 status collapsed
31583
31584 \begin_layout Plain Layout
31585 $$AbsPath$$Basename$$Extension
31586 \end_layout
31587
31588 \end_inset
31589
31590 .
31591 \end_layout
31592
31593 \begin_layout Standard
31594 The macros above are substituted in all commands unless otherwise noted.
31595  The command 
31596 \begin_inset Flex Code
31597 status collapsed
31598
31599 \begin_layout Plain Layout
31600 Product
31601 \end_layout
31602
31603 \end_inset
31604
31605  supports additionally the following substitutions if they are enabled by
31606  the 
31607 \begin_inset Flex Code
31608 status collapsed
31609
31610 \begin_layout Plain Layout
31611 Transform
31612 \end_layout
31613
31614 \end_inset
31615
31616  and 
31617 \begin_inset Flex Code
31618 status collapsed
31619
31620 \begin_layout Plain Layout
31621 TransformCommand
31622 \end_layout
31623
31624 \end_inset
31625
31626  commands:
31627 \end_layout
31628
31629 \begin_layout Description
31630 \begin_inset Flex Code
31631 status collapsed
31632
31633 \begin_layout Plain Layout
31634 $$ResizeFront
31635 \end_layout
31636
31637 \end_inset
31638
31639  The front part of the resize command.
31640 \end_layout
31641
31642 \begin_layout Description
31643 \begin_inset Flex Code
31644 status collapsed
31645
31646 \begin_layout Plain Layout
31647 $$ResizeBack
31648 \end_layout
31649
31650 \end_inset
31651
31652  The back part of the resize command.
31653 \end_layout
31654
31655 \begin_layout Description
31656 \begin_inset Flex Code
31657 status collapsed
31658
31659 \begin_layout Plain Layout
31660 $$RotateFront
31661 \end_layout
31662
31663 \end_inset
31664
31665  The front part of the rotation command.
31666 \end_layout
31667
31668 \begin_layout Description
31669 \begin_inset Flex Code
31670 status collapsed
31671
31672 \begin_layout Plain Layout
31673 $$RotateBack
31674 \end_layout
31675
31676 \end_inset
31677
31678  The back part of the rotation command.
31679 \end_layout
31680
31681 \begin_layout Standard
31682 The value string of the 
31683 \begin_inset Flex Code
31684 status collapsed
31685
31686 \begin_layout Plain Layout
31687 Option
31688 \end_layout
31689
31690 \end_inset
31691
31692  command supports additionally the following substitutions if they are enabled
31693  by the 
31694 \begin_inset Flex Code
31695 status collapsed
31696
31697 \begin_layout Plain Layout
31698 Transform
31699 \end_layout
31700
31701 \end_inset
31702
31703  and 
31704 \begin_inset Flex Code
31705 status collapsed
31706
31707 \begin_layout Plain Layout
31708 TransformOption
31709 \end_layout
31710
31711 \end_inset
31712
31713  commands:
31714 \end_layout
31715
31716 \begin_layout Description
31717 \begin_inset Flex Code
31718 status collapsed
31719
31720 \begin_layout Plain Layout
31721 $$Clip
31722 \end_layout
31723
31724 \end_inset
31725
31726  The clip option.
31727 \end_layout
31728
31729 \begin_layout Description
31730 \begin_inset Flex Code
31731 status collapsed
31732
31733 \begin_layout Plain Layout
31734 $$Extra
31735 \end_layout
31736
31737 \end_inset
31738
31739  The extra option.
31740 \end_layout
31741
31742 \begin_layout Description
31743 \begin_inset Flex Code
31744 status collapsed
31745
31746 \begin_layout Plain Layout
31747 $$Resize
31748 \end_layout
31749
31750 \end_inset
31751
31752  The resize option.
31753 \end_layout
31754
31755 \begin_layout Description
31756 \begin_inset Flex Code
31757 status collapsed
31758
31759 \begin_layout Plain Layout
31760 $$Rotate
31761 \end_layout
31762
31763 \end_inset
31764
31765  The rotation option.
31766 \end_layout
31767
31768 \begin_layout Standard
31769 You may ask why there are so many path macros.
31770  There are mainly two reasons:
31771 \end_layout
31772
31773 \begin_layout Enumerate
31774 Relative and absolute file names should remain relative or absolute, respectivel
31775 y.
31776  Users may have reasons to prefer either form.
31777  Relative names are useful for portable documents that should work on different
31778  machines, for example.
31779  Absolute names may be required by some programs.
31780 \end_layout
31781
31782 \begin_layout Enumerate
31783 \SpecialChar LaTeX
31784  treats relative file names differently than \SpecialChar LyX
31785  and other programs in nested
31786  included files.
31787  For \SpecialChar LyX
31788 , a relative file name is always relative to the document that contains
31789  the file name.
31790  For \SpecialChar LaTeX
31791 , it is always relative to the master document.
31792  These two definitions are identical if you have only one document, but
31793  differ if you have a master document that includes part documents.
31794  That means that relative filenames must be transformed when presented to
31795  \SpecialChar LaTeX
31796 .
31797  Fortunately \SpecialChar LyX
31798  does this automatically for you if you choose the right macros.
31799 \end_layout
31800
31801 \begin_layout Standard
31802 So which path macro should be used in new template definitions? The rule
31803  is not difficult:
31804 \end_layout
31805
31806 \begin_layout Itemize
31807 Use 
31808 \begin_inset Flex Code
31809 status collapsed
31810
31811 \begin_layout Plain Layout
31812 $$AbsPath
31813 \end_layout
31814
31815 \end_inset
31816
31817  if an absolute path is required.
31818 \end_layout
31819
31820 \begin_layout Itemize
31821 Use 
31822 \begin_inset Flex Code
31823 status collapsed
31824
31825 \begin_layout Plain Layout
31826 $$AbsOrRelPathMaster
31827 \end_layout
31828
31829 \end_inset
31830
31831  if the substituted string is some kind of \SpecialChar LaTeX
31832  input.
31833 \end_layout
31834
31835 \begin_layout Itemize
31836 Else use 
31837 \begin_inset Flex Code
31838 status collapsed
31839
31840 \begin_layout Plain Layout
31841 $$AbsOrRelPathParent
31842 \end_layout
31843
31844 \end_inset
31845
31846  in order to preserve the user's choice.
31847 \end_layout
31848
31849 \begin_layout Standard
31850 There are special cases where this rule does not work and e.
31851 \begin_inset space \thinspace{}
31852 \end_inset
31853
31854 g.
31855 \begin_inset space \space{}
31856 \end_inset
31857
31858 relative names are needed, but normally it will work just fine.
31859  One example for such a case is the command 
31860 \begin_inset Flex Code
31861 status collapsed
31862
31863 \begin_layout Plain Layout
31864 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
31865 \end_layout
31866
31867 \end_inset
31868
31869  in the XFig template above: We can't use the absolute name because the
31870  copier for 
31871 \begin_inset Flex Code
31872 status collapsed
31873
31874 \begin_layout Plain Layout
31875 .pstex_t
31876 \end_layout
31877
31878 \end_inset
31879
31880  files needs the relative name in order to rewrite the file content.
31881 \end_layout
31882
31883 \begin_layout Section
31884 Security discussion
31885 \begin_inset CommandInset label
31886 LatexCommand label
31887 name "sec:Security-discussion"
31888
31889 \end_inset
31890
31891
31892 \end_layout
31893
31894 \begin_layout Standard
31895 The external material feature interfaces with a lot of external programs
31896  and does so automatically, so we have to consider the security implications
31897  of this.
31898  In particular, since you have the option of including your own filenames
31899  and/or parameter strings and those are expanded into a command, it seems
31900  that it would be possible to create a malicious document which executes
31901  arbitrary commands when a user views or prints the document.
31902  This is something we definitely want to avoid.
31903 \end_layout
31904
31905 \begin_layout Standard
31906 However, since the external program commands are specified in the template
31907  configuration file only, there are no security issues if \SpecialChar LyX
31908  is properly configure
31909 d with safe templates only.
31910  This is so because the external programs are invoked with the 
31911 \begin_inset Flex Code
31912 status collapsed
31913
31914 \begin_layout Plain Layout
31915 execvp
31916 \end_layout
31917
31918 \end_inset
31919
31920 -system call rather than the 
31921 \begin_inset Flex Code
31922 status collapsed
31923
31924 \begin_layout Plain Layout
31925 system
31926 \end_layout
31927
31928 \end_inset
31929
31930  system-call, so it's not possible to execute arbitrary commands from the
31931  filename or parameter section via the shell.
31932 \end_layout
31933
31934 \begin_layout Standard
31935 This also implies that you are restricted in what command strings you can
31936  use in the external material templates.
31937  In particular, pipes and redirection are not readily available.
31938  This has to be so if \SpecialChar LyX
31939  should remain safe.
31940  If you want to use some of the shell features, you should write a safe
31941  script to do this in a controlled manner, and then invoke the script from
31942  the command string.
31943  
31944 \end_layout
31945
31946 \begin_layout Standard
31947 It is possible to design a template that interacts directly with the shell,
31948  but since this would allow a malicious user to execute arbitrary commands
31949  by writing clever filenames and/or parameters, we generally recommend that
31950  you only use safe scripts that work with the 
31951 \begin_inset Flex Code
31952 status collapsed
31953
31954 \begin_layout Plain Layout
31955 execvp
31956 \end_layout
31957
31958 \end_inset
31959
31960  system call in a controlled manner.
31961  Of course, for use in a controlled environment, it can be tempting to just
31962  fall back to use ordinary shell scripts.
31963  If you do so, be aware that you 
31964 \emph on
31965 will
31966 \emph default
31967  provide an easily exploitable security hole in your system.
31968  Of course it stands to reason that such unsafe templates will never be
31969  included in the standard \SpecialChar LyX
31970  distribution, although we do encourage people
31971  to submit new templates in the open source tradition.
31972  But \SpecialChar LyX
31973  as shipped from the official distribution channels will never have
31974  unsafe templates.
31975 \end_layout
31976
31977 \begin_layout Standard
31978 Including external material provides a lot of power, and you have to be
31979  careful not to introduce security hazards with this power.
31980  A subtle error in a single line in an innocent looking script can open
31981  the door to huge security problems.
31982  So if you do not fully understand the issues, we recommend that you consult
31983  a knowledgeable security professional or the \SpecialChar LyX
31984  development team if you have
31985  any questions about whether a given template is safe or not.
31986  And do this before you use it in an uncontrolled environment.
31987 \end_layout
31988
31989 \begin_layout Chapter
31990 \start_of_appendix
31991 List of supported \SpecialChar LyX
31992  functions to be used in layouts
31993 \begin_inset CommandInset label
31994 LatexCommand label
31995 name "chap:List-of-functions"
31996
31997 \end_inset
31998
31999
32000 \end_layout
32001
32002 \begin_layout Standard
32003 \align center
32004 \begin_inset Tabular
32005 <lyxtabular version="3" rows="11" columns="8">
32006 <features tabularvalignment="middle">
32007 <column alignment="left" valignment="top">
32008 <column alignment="left" valignment="top">
32009 <column alignment="left" valignment="top">
32010 <column alignment="left" valignment="top">
32011 <column alignment="left" valignment="top">
32012 <column alignment="left" valignment="top">
32013 <column alignment="left" valignment="top">
32014 <column alignment="left" valignment="top">
32015 <row>
32016 <cell alignment="left" valignment="top" usebox="none">
32017 \begin_inset Text
32018
32019 \begin_layout Plain Layout
32020 accents
32021 \end_layout
32022
32023 \end_inset
32024 </cell>
32025 <cell alignment="left" valignment="top" usebox="none">
32026 \begin_inset Text
32027
32028 \begin_layout Plain Layout
32029 booktabs
32030 \end_layout
32031
32032 \end_inset
32033 </cell>
32034 <cell alignment="left" valignment="top" usebox="none">
32035 \begin_inset Text
32036
32037 \begin_layout Plain Layout
32038 feyn
32039 \end_layout
32040
32041 \end_inset
32042 </cell>
32043 <cell alignment="left" valignment="top" usebox="none">
32044 \begin_inset Text
32045
32046 \begin_layout Plain Layout
32047 listings
32048 \end_layout
32049
32050 \end_inset
32051 </cell>
32052 <cell alignment="center" valignment="top" usebox="none">
32053 \begin_inset Text
32054
32055 \begin_layout Plain Layout
32056 natbib
32057 \end_layout
32058
32059 \end_inset
32060 </cell>
32061 <cell alignment="center" valignment="top" usebox="none">
32062 \begin_inset Text
32063
32064 \begin_layout Plain Layout
32065 rotfloat
32066 \end_layout
32067
32068 \end_inset
32069 </cell>
32070 <cell alignment="center" valignment="top" usebox="none">
32071 \begin_inset Text
32072
32073 \begin_layout Plain Layout
32074 tfrupee
32075 \end_layout
32076
32077 \end_inset
32078 </cell>
32079 <cell alignment="center" valignment="top" usebox="none">
32080 \begin_inset Text
32081
32082 \begin_layout Plain Layout
32083 wasysym
32084 \end_layout
32085
32086 \end_inset
32087 </cell>
32088 </row>
32089 <row>
32090 <cell alignment="left" valignment="top" usebox="none">
32091 \begin_inset Text
32092
32093 \begin_layout Plain Layout
32094 amsbsy
32095 \end_layout
32096
32097 \end_inset
32098 </cell>
32099 <cell alignment="left" valignment="top" usebox="none">
32100 \begin_inset Text
32101
32102 \begin_layout Plain Layout
32103 calc
32104 \end_layout
32105
32106 \end_inset
32107 </cell>
32108 <cell alignment="left" valignment="top" usebox="none">
32109 \begin_inset Text
32110
32111 \begin_layout Plain Layout
32112 fixltx2e
32113 \end_layout
32114
32115 \end_inset
32116 </cell>
32117 <cell alignment="left" valignment="top" usebox="none">
32118 \begin_inset Text
32119
32120 \begin_layout Plain Layout
32121 longtable
32122 \end_layout
32123
32124 \end_inset
32125 </cell>
32126 <cell alignment="center" valignment="top" usebox="none">
32127 \begin_inset Text
32128
32129 \begin_layout Plain Layout
32130 nomencl
32131 \end_layout
32132
32133 \end_inset
32134 </cell>
32135 <cell alignment="center" valignment="top" usebox="none">
32136 \begin_inset Text
32137
32138 \begin_layout Plain Layout
32139 rsphrase
32140 \end_layout
32141
32142 \end_inset
32143 </cell>
32144 <cell alignment="center" valignment="top" usebox="none">
32145 \begin_inset Text
32146
32147 \begin_layout Plain Layout
32148 tipa
32149 \end_layout
32150
32151 \end_inset
32152 </cell>
32153 <cell alignment="center" valignment="top" usebox="none">
32154 \begin_inset Text
32155
32156 \begin_layout Plain Layout
32157 wrapfig
32158 \end_layout
32159
32160 \end_inset
32161 </cell>
32162 </row>
32163 <row>
32164 <cell alignment="left" valignment="top" usebox="none">
32165 \begin_inset Text
32166
32167 \begin_layout Plain Layout
32168 amscd
32169 \end_layout
32170
32171 \end_inset
32172 </cell>
32173 <cell alignment="left" valignment="top" usebox="none">
32174 \begin_inset Text
32175
32176 \begin_layout Plain Layout
32177 CJK
32178 \end_layout
32179
32180 \end_inset
32181 </cell>
32182 <cell alignment="left" valignment="top" usebox="none">
32183 \begin_inset Text
32184
32185 \begin_layout Plain Layout
32186 float
32187 \end_layout
32188
32189 \end_inset
32190 </cell>
32191 <cell alignment="left" valignment="top" usebox="none">
32192 \begin_inset Text
32193
32194 \begin_layout Plain Layout
32195 lyxskak
32196 \end_layout
32197
32198 \end_inset
32199 </cell>
32200 <cell alignment="center" valignment="top" usebox="none">
32201 \begin_inset Text
32202
32203 \begin_layout Plain Layout
32204 pdfcolmk
32205 \end_layout
32206
32207 \end_inset
32208 </cell>
32209 <cell alignment="center" valignment="top" usebox="none">
32210 \begin_inset Text
32211
32212 \begin_layout Plain Layout
32213 setspace
32214 \end_layout
32215
32216 \end_inset
32217 </cell>
32218 <cell alignment="center" valignment="top" usebox="none">
32219 \begin_inset Text
32220
32221 \begin_layout Plain Layout
32222 tipx
32223 \end_layout
32224
32225 \end_inset
32226 </cell>
32227 <cell alignment="center" valignment="top" usebox="none">
32228 \begin_inset Text
32229
32230 \begin_layout Plain Layout
32231 xargs
32232 \end_layout
32233
32234 \end_inset
32235 </cell>
32236 </row>
32237 <row>
32238 <cell alignment="left" valignment="top" usebox="none">
32239 \begin_inset Text
32240
32241 \begin_layout Plain Layout
32242 amsmath
32243 \end_layout
32244
32245 \end_inset
32246 </cell>
32247 <cell alignment="left" valignment="top" usebox="none">
32248 \begin_inset Text
32249
32250 \begin_layout Plain Layout
32251 color
32252 \end_layout
32253
32254 \end_inset
32255 </cell>
32256 <cell alignment="left" valignment="top" usebox="none">
32257 \begin_inset Text
32258
32259 \begin_layout Plain Layout
32260 framed
32261 \end_layout
32262
32263 \end_inset
32264 </cell>
32265 <cell alignment="left" valignment="top" usebox="none">
32266 \begin_inset Text
32267
32268 \begin_layout Plain Layout
32269 makeidx
32270 \end_layout
32271
32272 \end_inset
32273 </cell>
32274 <cell alignment="center" valignment="top" usebox="none">
32275 \begin_inset Text
32276
32277 \begin_layout Plain Layout
32278 pdfpages
32279 \end_layout
32280
32281 \end_inset
32282 </cell>
32283 <cell alignment="center" valignment="top" usebox="none">
32284 \begin_inset Text
32285
32286 \begin_layout Plain Layout
32287 shapepar
32288 \end_layout
32289
32290 \end_inset
32291 </cell>
32292 <cell alignment="center" valignment="top" usebox="none">
32293 \begin_inset Text
32294
32295 \begin_layout Plain Layout
32296 tone
32297 \end_layout
32298
32299 \end_inset
32300 </cell>
32301 <cell alignment="center" valignment="top" usebox="none">
32302 \begin_inset Text
32303
32304 \begin_layout Plain Layout
32305 xcolor
32306 \end_layout
32307
32308 \end_inset
32309 </cell>
32310 </row>
32311 <row>
32312 <cell alignment="left" valignment="top" usebox="none">
32313 \begin_inset Text
32314
32315 \begin_layout Plain Layout
32316 amssymb
32317 \end_layout
32318
32319 \end_inset
32320 </cell>
32321 <cell alignment="left" valignment="top" usebox="none">
32322 \begin_inset Text
32323
32324 \begin_layout Plain Layout
32325 covington
32326 \end_layout
32327
32328 \end_inset
32329 </cell>
32330 <cell alignment="left" valignment="top" usebox="none">
32331 \begin_inset Text
32332
32333 \begin_layout Plain Layout
32334 graphicx
32335 \end_layout
32336
32337 \end_inset
32338 </cell>
32339 <cell alignment="left" valignment="top" usebox="none">
32340 \begin_inset Text
32341
32342 \begin_layout Plain Layout
32343 marvosym
32344 \end_layout
32345
32346 \end_inset
32347 </cell>
32348 <cell alignment="center" valignment="top" usebox="none">
32349 \begin_inset Text
32350
32351 \begin_layout Plain Layout
32352 pifont
32353 \end_layout
32354
32355 \end_inset
32356 </cell>
32357 <cell alignment="center" valignment="top" usebox="none">
32358 \begin_inset Text
32359
32360 \begin_layout Plain Layout
32361 slashed
32362 \end_layout
32363
32364 \end_inset
32365 </cell>
32366 <cell alignment="center" valignment="top" usebox="none">
32367 \begin_inset Text
32368
32369 \begin_layout Plain Layout
32370 txfonts
32371 \end_layout
32372
32373 \end_inset
32374 </cell>
32375 <cell alignment="center" valignment="top" usebox="none">
32376 \begin_inset Text
32377
32378 \begin_layout Plain Layout
32379 xy
32380 \end_layout
32381
32382 \end_inset
32383 </cell>
32384 </row>
32385 <row>
32386 <cell alignment="left" valignment="top" usebox="none">
32387 \begin_inset Text
32388
32389 \begin_layout Plain Layout
32390 amstext
32391 \end_layout
32392
32393 \end_inset
32394 </cell>
32395 <cell alignment="left" valignment="top" usebox="none">
32396 \begin_inset Text
32397
32398 \begin_layout Plain Layout
32399 csquotes
32400 \end_layout
32401
32402 \end_inset
32403 </cell>
32404 <cell alignment="left" valignment="top" usebox="none">
32405 \begin_inset Text
32406
32407 \begin_layout Plain Layout
32408 hhline
32409 \end_layout
32410
32411 \end_inset
32412 </cell>
32413 <cell alignment="left" valignment="top" usebox="none">
32414 \begin_inset Text
32415
32416 \begin_layout Plain Layout
32417 mathdesign
32418 \end_layout
32419
32420 \end_inset
32421 </cell>
32422 <cell alignment="center" valignment="top" usebox="none">
32423 \begin_inset Text
32424
32425 \begin_layout Plain Layout
32426 pmboxdraw
32427 \end_layout
32428
32429 \end_inset
32430 </cell>
32431 <cell alignment="center" valignment="top" usebox="none">
32432 \begin_inset Text
32433
32434 \begin_layout Plain Layout
32435 soul
32436 \end_layout
32437
32438 \end_inset
32439 </cell>
32440 <cell alignment="center" valignment="top" usebox="none">
32441 \begin_inset Text
32442
32443 \begin_layout Plain Layout
32444 ulem
32445 \end_layout
32446
32447 \end_inset
32448 </cell>
32449 <cell alignment="center" valignment="top" usebox="none">
32450 \begin_inset Text
32451
32452 \begin_layout Plain Layout
32453 yhmath
32454 \end_layout
32455
32456 \end_inset
32457 </cell>
32458 </row>
32459 <row>
32460 <cell alignment="left" valignment="top" usebox="none">
32461 \begin_inset Text
32462
32463 \begin_layout Plain Layout
32464 amsthm
32465 \end_layout
32466
32467 \end_inset
32468 </cell>
32469 <cell alignment="left" valignment="top" usebox="none">
32470 \begin_inset Text
32471
32472 \begin_layout Plain Layout
32473 dvipost
32474 \end_layout
32475
32476 \end_inset
32477 </cell>
32478 <cell alignment="left" valignment="top" usebox="none">
32479 \begin_inset Text
32480
32481 \begin_layout Plain Layout
32482 hyperref
32483 \end_layout
32484
32485 \end_inset
32486 </cell>
32487 <cell alignment="left" valignment="top" usebox="none">
32488 \begin_inset Text
32489
32490 \begin_layout Plain Layout
32491 mathdots
32492 \end_layout
32493
32494 \end_inset
32495 </cell>
32496 <cell alignment="center" valignment="top" usebox="none">
32497 \begin_inset Text
32498
32499 \begin_layout Plain Layout
32500 polyglossia
32501 \end_layout
32502
32503 \end_inset
32504 </cell>
32505 <cell alignment="center" valignment="top" usebox="none">
32506 \begin_inset Text
32507
32508 \begin_layout Plain Layout
32509 splitidx
32510 \end_layout
32511
32512 \end_inset
32513 </cell>
32514 <cell alignment="center" valignment="top" usebox="none">
32515 \begin_inset Text
32516
32517 \begin_layout Plain Layout
32518 undertilde
32519 \end_layout
32520
32521 \end_inset
32522 </cell>
32523 <cell alignment="center" valignment="top" usebox="none">
32524 \begin_inset Text
32525
32526 \begin_layout Plain Layout
32527
32528 \end_layout
32529
32530 \end_inset
32531 </cell>
32532 </row>
32533 <row>
32534 <cell alignment="left" valignment="top" usebox="none">
32535 \begin_inset Text
32536
32537 \begin_layout Plain Layout
32538 array
32539 \end_layout
32540
32541 \end_inset
32542 </cell>
32543 <cell alignment="left" valignment="top" usebox="none">
32544 \begin_inset Text
32545
32546 \begin_layout Plain Layout
32547 endnotes
32548 \end_layout
32549
32550 \end_inset
32551 </cell>
32552 <cell alignment="left" valignment="top" usebox="none">
32553 \begin_inset Text
32554
32555 \begin_layout Plain Layout
32556 ifsym
32557 \end_layout
32558
32559 \end_inset
32560 </cell>
32561 <cell alignment="left" valignment="top" usebox="none">
32562 \begin_inset Text
32563
32564 \begin_layout Plain Layout
32565 mathrsfs
32566 \end_layout
32567
32568 \end_inset
32569 </cell>
32570 <cell alignment="center" valignment="top" usebox="none">
32571 \begin_inset Text
32572
32573 \begin_layout Plain Layout
32574 prettyref
32575 \end_layout
32576
32577 \end_inset
32578 </cell>
32579 <cell alignment="center" valignment="top" usebox="none">
32580 \begin_inset Text
32581
32582 \begin_layout Plain Layout
32583 subfig
32584 \end_layout
32585
32586 \end_inset
32587 </cell>
32588 <cell alignment="center" valignment="top" usebox="none">
32589 \begin_inset Text
32590
32591 \begin_layout Plain Layout
32592 units
32593 \end_layout
32594
32595 \end_inset
32596 </cell>
32597 <cell alignment="center" valignment="top" usebox="none">
32598 \begin_inset Text
32599
32600 \begin_layout Plain Layout
32601
32602 \end_layout
32603
32604 \end_inset
32605 </cell>
32606 </row>
32607 <row>
32608 <cell alignment="left" valignment="top" usebox="none">
32609 \begin_inset Text
32610
32611 \begin_layout Plain Layout
32612 ascii
32613 \end_layout
32614
32615 \end_inset
32616 </cell>
32617 <cell alignment="left" valignment="top" usebox="none">
32618 \begin_inset Text
32619
32620 \begin_layout Plain Layout
32621 enumitem
32622 \end_layout
32623
32624 \end_inset
32625 </cell>
32626 <cell alignment="left" valignment="top" usebox="none">
32627 \begin_inset Text
32628
32629 \begin_layout Plain Layout
32630 ifthen
32631 \end_layout
32632
32633 \end_inset
32634 </cell>
32635 <cell alignment="left" valignment="top" usebox="none">
32636 \begin_inset Text
32637
32638 \begin_layout Plain Layout
32639 mhchem
32640 \end_layout
32641
32642 \end_inset
32643 </cell>
32644 <cell alignment="center" valignment="top" usebox="none">
32645 \begin_inset Text
32646
32647 \begin_layout Plain Layout
32648 pxfonts
32649 \end_layout
32650
32651 \end_inset
32652 </cell>
32653 <cell alignment="center" valignment="top" usebox="none">
32654 \begin_inset Text
32655
32656 \begin_layout Plain Layout
32657 subscript
32658 \end_layout
32659
32660 \end_inset
32661 </cell>
32662 <cell alignment="center" valignment="top" usebox="none">
32663 \begin_inset Text
32664
32665 \begin_layout Plain Layout
32666 url
32667 \end_layout
32668
32669 \end_inset
32670 </cell>
32671 <cell alignment="center" valignment="top" usebox="none">
32672 \begin_inset Text
32673
32674 \begin_layout Plain Layout
32675
32676 \end_layout
32677
32678 \end_inset
32679 </cell>
32680 </row>
32681 <row>
32682 <cell alignment="left" valignment="top" usebox="none">
32683 \begin_inset Text
32684
32685 \begin_layout Plain Layout
32686 bbding
32687 \end_layout
32688
32689 \end_inset
32690 </cell>
32691 <cell alignment="left" valignment="top" usebox="none">
32692 \begin_inset Text
32693
32694 \begin_layout Plain Layout
32695 esint
32696 \end_layout
32697
32698 \end_inset
32699 </cell>
32700 <cell alignment="left" valignment="top" usebox="none">
32701 \begin_inset Text
32702
32703 \begin_layout Plain Layout
32704 jurabib
32705 \end_layout
32706
32707 \end_inset
32708 </cell>
32709 <cell alignment="left" valignment="top" usebox="none">
32710 \begin_inset Text
32711
32712 \begin_layout Plain Layout
32713 multicol
32714 \end_layout
32715
32716 \end_inset
32717 </cell>
32718 <cell alignment="center" valignment="top" usebox="none">
32719 \begin_inset Text
32720
32721 \begin_layout Plain Layout
32722 refstyle
32723 \end_layout
32724
32725 \end_inset
32726 </cell>
32727 <cell alignment="center" valignment="top" usebox="none">
32728 \begin_inset Text
32729
32730 \begin_layout Plain Layout
32731 textcomp
32732 \end_layout
32733
32734 \end_inset
32735 </cell>
32736 <cell alignment="center" valignment="top" usebox="none">
32737 \begin_inset Text
32738
32739 \begin_layout Plain Layout
32740 varioref
32741 \end_layout
32742
32743 \end_inset
32744 </cell>
32745 <cell alignment="center" valignment="top" usebox="none">
32746 \begin_inset Text
32747
32748 \begin_layout Plain Layout
32749
32750 \end_layout
32751
32752 \end_inset
32753 </cell>
32754 </row>
32755 <row>
32756 <cell alignment="center" valignment="top" usebox="none">
32757 \begin_inset Text
32758
32759 \begin_layout Plain Layout
32760 bm
32761 \end_layout
32762
32763 \end_inset
32764 </cell>
32765 <cell alignment="center" valignment="top" usebox="none">
32766 \begin_inset Text
32767
32768 \begin_layout Plain Layout
32769 fancybox
32770 \end_layout
32771
32772 \end_inset
32773 </cell>
32774 <cell alignment="center" valignment="top" usebox="none">
32775 \begin_inset Text
32776
32777 \begin_layout Plain Layout
32778 latexsym
32779 \end_layout
32780
32781 \end_inset
32782 </cell>
32783 <cell alignment="center" valignment="top" usebox="none">
32784 \begin_inset Text
32785
32786 \begin_layout Plain Layout
32787 multirow
32788 \end_layout
32789
32790 \end_inset
32791 </cell>
32792 <cell alignment="center" valignment="top" usebox="none">
32793 \begin_inset Text
32794
32795 \begin_layout Plain Layout
32796 rotating
32797 \end_layout
32798
32799 \end_inset
32800 </cell>
32801 <cell alignment="center" valignment="top" usebox="none">
32802 \begin_inset Text
32803
32804 \begin_layout Plain Layout
32805 textgreek
32806 \end_layout
32807
32808 \end_inset
32809 </cell>
32810 <cell alignment="center" valignment="top" usebox="none">
32811 \begin_inset Text
32812
32813 \begin_layout Plain Layout
32814 verbatim
32815 \end_layout
32816
32817 \end_inset
32818 </cell>
32819 <cell alignment="center" valignment="top" usebox="none">
32820 \begin_inset Text
32821
32822 \begin_layout Plain Layout
32823
32824 \end_layout
32825
32826 \end_inset
32827 </cell>
32828 </row>
32829 </lyxtabular>
32830
32831 \end_inset
32832
32833
32834 \end_layout
32835
32836 \begin_layout Chapter
32837 Names of available colors to be used in layouts
32838 \begin_inset CommandInset label
32839 LatexCommand label
32840 name "chap:Names-of-colors"
32841
32842 \end_inset
32843
32844
32845 \end_layout
32846
32847 \begin_layout Standard
32848 The colors listed below are the standard colors and those that you can adjust
32849  in the \SpecialChar LyX
32850  preferences.
32851 \end_layout
32852
32853 \begin_layout Section
32854 Color functions
32855 \end_layout
32856
32857 \begin_layout Standard
32858 The following are no real colors, but rather act on color definitions:
32859 \end_layout
32860
32861 \begin_layout Description
32862 ignore The color is ignored
32863 \end_layout
32864
32865 \begin_layout Description
32866 inherit The color is inherited
32867 \end_layout
32868
32869 \begin_layout Description
32870 none
32871 \family roman
32872 \series medium
32873 \shape up
32874 \size normal
32875 \emph off
32876 \bar no
32877 \strikeout off
32878 \uuline off
32879 \uwave off
32880 \noun off
32881 \color none
32882  No particular color – clear or default
32883 \end_layout
32884
32885 \begin_layout Section
32886 Static colors
32887 \end_layout
32888
32889 \begin_layout Standard
32890 These are fixed colors that cannot be customized:
32891 \end_layout
32892
32893 \begin_layout Description
32894 black
32895 \end_layout
32896
32897 \begin_layout Description
32898 white
32899 \end_layout
32900
32901 \begin_layout Description
32902 blue
32903 \end_layout
32904
32905 \begin_layout Description
32906 brown
32907 \end_layout
32908
32909 \begin_layout Description
32910 cyan
32911 \end_layout
32912
32913 \begin_layout Description
32914 darkgray
32915 \end_layout
32916
32917 \begin_layout Description
32918 gray
32919 \end_layout
32920
32921 \begin_layout Description
32922 green
32923 \end_layout
32924
32925 \begin_layout Description
32926 lightgray
32927 \end_layout
32928
32929 \begin_layout Description
32930 lime
32931 \end_layout
32932
32933 \begin_layout Description
32934 magenta
32935 \end_layout
32936
32937 \begin_layout Description
32938 olive
32939 \end_layout
32940
32941 \begin_layout Description
32942 orange
32943 \end_layout
32944
32945 \begin_layout Description
32946 pink
32947 \end_layout
32948
32949 \begin_layout Description
32950 purple
32951 \end_layout
32952
32953 \begin_layout Description
32954 red
32955 \end_layout
32956
32957 \begin_layout Description
32958 teal
32959 \end_layout
32960
32961 \begin_layout Description
32962 violet
32963 \end_layout
32964
32965 \begin_layout Description
32966 yellow
32967 \end_layout
32968
32969 \begin_layout Section
32970 Dynamic colors
32971 \end_layout
32972
32973 \begin_layout Standard
32974 These are the colors allocated to specific elements in 
32975 \begin_inset Info
32976 type  "menu"
32977 arg   "dialog-show prefs"
32978 \end_inset
32979
32980 :
32981 \end_layout
32982
32983 \begin_layout Description
32984 added_space Added space color
32985 \end_layout
32986
32987 \begin_layout Description
32988 addedtext Added text color
32989 \end_layout
32990
32991 \begin_layout Description
32992 appendix Appendix marker color
32993 \end_layout
32994
32995 \begin_layout Description
32996 background Background color
32997 \end_layout
32998
32999 \begin_layout Description
33000 bottomarea Bottom area color
33001 \end_layout
33002
33003 \begin_layout Description
33004 branchlabel Label color for branches
33005 \end_layout
33006
33007 \begin_layout Description
33008 buttonbg Color used for button background
33009 \end_layout
33010
33011 \begin_layout Description
33012 buttonframe Color for inset button frames
33013 \end_layout
33014
33015 \begin_layout Description
33016 buttonhoverbg Color used for button background under focus
33017 \end_layout
33018
33019 \begin_layout Description
33020 changebar Changebar color
33021 \end_layout
33022
33023 \begin_layout Description
33024 changedtextauthor1 Changed text color author 1
33025 \end_layout
33026
33027 \begin_layout Description
33028 changedtextauthor2 Changed text color author 2
33029 \end_layout
33030
33031 \begin_layout Description
33032 changedtextauthor3 Changed text color author 3
33033 \end_layout
33034
33035 \begin_layout Description
33036 changedtextauthor4 Changed text color author 4
33037 \end_layout
33038
33039 \begin_layout Description
33040 changedtextauthor5 Changed text color author 5
33041 \end_layout
33042
33043 \begin_layout Description
33044 collapsible Collapsible insets text color
33045 \end_layout
33046
33047 \begin_layout Description
33048 collapsibleframe Collapsible insets framecolor
33049 \end_layout
33050
33051 \begin_layout Description
33052 command Text color for command insets
33053 \end_layout
33054
33055 \begin_layout Description
33056 commandbg Background color for command insets
33057 \end_layout
33058
33059 \begin_layout Description
33060 commandframe Frame color for command insets
33061 \end_layout
33062
33063 \begin_layout Description
33064 comment Label color for comments
33065 \end_layout
33066
33067 \begin_layout Description
33068 commentbg Background color of comments
33069 \end_layout
33070
33071 \begin_layout Description
33072 cursor Cursor color
33073 \end_layout
33074
33075 \begin_layout Description
33076 deletedtext Deleted text color
33077 \end_layout
33078
33079 \begin_layout Description
33080 deletedtextmodifier Deleted text modifying color
33081 \end_layout
33082
33083 \begin_layout Description
33084 depthbar Color for the depth bars in the margin
33085 \end_layout
33086
33087 \begin_layout Description
33088 eolmarker End of line marker color
33089 \end_layout
33090
33091 \begin_layout Description
33092 error Color of the \SpecialChar LaTeX
33093  error box
33094 \end_layout
33095
33096 \begin_layout Description
33097 footlabel Label color for footnotes
33098 \end_layout
33099
33100 \begin_layout Description
33101 foreground Foreground color
33102 \end_layout
33103
33104 \begin_layout Description
33105 graphicsbg Graphics inset background color
33106 \end_layout
33107
33108 \begin_layout Description
33109 greyedoutbg Background color of greyedout inset
33110 \end_layout
33111
33112 \begin_layout Description
33113 greyedoutlabel Label color for greyedout insets
33114 \end_layout
33115
33116 \begin_layout Description
33117 greyedouttext Color for greyedout inset text
33118 \end_layout
33119
33120 \begin_layout Description
33121 indexlabel Label color for index insets
33122 \end_layout
33123
33124 \begin_layout Description
33125 inlinecompletion Inline completion color
33126 \end_layout
33127
33128 \begin_layout Description
33129 insetbg Inset marker background color
33130 \end_layout
33131
33132 \begin_layout Description
33133 insetframe Inset marker frame color
33134 \end_layout
33135
33136 \begin_layout Description
33137 language Color for marking foreign language words
33138 \end_layout
33139
33140 \begin_layout Description
33141 latex Text color in \SpecialChar LaTeX
33142  mode
33143 \end_layout
33144
33145 \begin_layout Description
33146 listingsbg Background color of listings inset
33147 \end_layout
33148
33149 \begin_layout Description
33150 marginlabel Label color for margin notes
33151 \end_layout
33152
33153 \begin_layout Description
33154 math Math inset text color
33155 \end_layout
33156
33157 \begin_layout Description
33158 mathbg Math inset background color
33159 \end_layout
33160
33161 \begin_layout Description
33162 mathcorners Math inset frame color not under focus
33163 \end_layout
33164
33165 \begin_layout Description
33166 mathframe Math inset frame color under focus
33167 \end_layout
33168
33169 \begin_layout Description
33170 mathline Math line color
33171 \end_layout
33172
33173 \begin_layout Description
33174 mathmacrobg Macro math inset background color
33175 \end_layout
33176
33177 \begin_layout Description
33178 mathmacroblend Macro math blended color
33179 \end_layout
33180
33181 \begin_layout Description
33182 mathmacroframe Macro math frame color
33183 \end_layout
33184
33185 \begin_layout Description
33186 mathmacrohoverbg Macro math inset background color hovered
33187 \end_layout
33188
33189 \begin_layout Description
33190 mathmacrolabel Macro math label color
33191 \end_layout
33192
33193 \begin_layout Description
33194 mathmacronewarg Macro template color for new parameters
33195 \end_layout
33196
33197 \begin_layout Description
33198 mathmacrooldarg Macro template color for old parameters
33199 \end_layout
33200
33201 \begin_layout Description
33202 newpage New page color
33203 \end_layout
33204
33205 \begin_layout Description
33206 nonunique_inlinecompletion Inline completion color for the non-unique part
33207 \end_layout
33208
33209 \begin_layout Description
33210 note Label color for notes
33211 \end_layout
33212
33213 \begin_layout Description
33214 notebg Background color of notes
33215 \end_layout
33216
33217 \begin_layout Description
33218 pagebreak Page break/line break color
33219 \end_layout
33220
33221 \begin_layout Description
33222 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
33223 \end_layout
33224
33225 \begin_layout Description
33226 phantomtext Text color for phantom insets
33227 \end_layout
33228
33229 \begin_layout Description
33230 preview The color used for previews
33231 \end_layout
33232
33233 \begin_layout Description
33234 previewframe Preview frame color
33235 \end_layout
33236
33237 \begin_layout Description
33238 regexpframe Color for regexp frame
33239 \end_layout
33240
33241 \begin_layout Description
33242 scroll Color that indicates when a row can be scrolled 
33243 \end_layout
33244
33245 \begin_layout Description
33246 selection Background color of selected text
33247 \end_layout
33248
33249 \begin_layout Description
33250 selectiontext Foreground color of selected text
33251 \end_layout
33252
33253 \begin_layout Description
33254 shadedbg Background color of shaded box
33255 \end_layout
33256
33257 \begin_layout Description
33258 special Special chars text color
33259 \end_layout
33260
33261 \begin_layout Description
33262 tabularline Table line color
33263 \end_layout
33264
33265 \begin_layout Description
33266 tabularonoffline Table line color
33267 \end_layout
33268
33269 \begin_layout Description
33270 urllabel Label color for URL insets
33271 \end_layout
33272
33273 \begin_layout Description
33274 urltext Color for URL inset text
33275 \end_layout
33276
33277 \end_body
33278 \end_document