]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
UserGuide: Casing fixes
[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 -495245474 "Jean-Marc Lasgouttes"
142 \author 5863208 "ab"
143 \author 232239728 "Owner"
144 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
145 \author 1075283030 "Thibaut"
146 \end_header
147
148 \begin_body
149
150 \begin_layout Title
151 Customizing \SpecialChar LyX
152 : Features for the Advanced User
153 \end_layout
154
155 \begin_layout Author
156 by the \SpecialChar LyX
157  Team
158 \begin_inset Foot
159 status collapsed
160
161 \begin_layout Plain Layout
162 If you have comments or error corrections, please send them to the \SpecialChar LyX
163  Documentatio
164 n mailing list, 
165 \begin_inset CommandInset href
166 LatexCommand href
167 target "lyx-docs@lists.lyx.org"
168 type "mailto:"
169 literal "false"
170
171 \end_inset
172
173 .
174  Include 
175 \begin_inset Quotes eld
176 \end_inset
177
178 [Customization]
179 \begin_inset Quotes erd
180 \end_inset
181
182  in the subject header, and please cc the current maintainer of this file,
183  Richard 
184 \change_inserted 5863208 1604930692
185 Kimberly 
186 \change_unchanged
187 Heck <
188 \change_inserted 5863208 1604930729
189 rikiheck@lyx.org
190 \change_deleted 5863208 1604930668
191 rgheck@comcast.net
192 \change_unchanged
193 >.
194 \end_layout
195
196 \end_inset
197
198
199 \begin_inset Newline newline
200 \end_inset
201
202
203 \begin_inset Newline newline
204 \end_inset
205
206 Version 2.4.x
207 \end_layout
208
209 \begin_layout Standard
210 \begin_inset CommandInset toc
211 LatexCommand tableofcontents
212
213 \end_inset
214
215
216 \end_layout
217
218 \begin_layout Standard
219 \begin_inset Note Note
220 status open
221
222 \begin_layout Plain Layout
223 Please use change tracking when modifying this document.
224  This makes it easier for our translators to recognize things that have
225  been changed, and it helps the maintainer keep up-to-date with what's been
226  done.
227 \end_layout
228
229 \end_inset
230
231
232 \end_layout
233
234 \begin_layout Chapter
235 Introduction
236 \end_layout
237
238 \begin_layout Standard
239 This manual covers the customization features present in \SpecialChar LyX
240 .
241  In it, we discuss issues like keyboard shortcuts, screen previewing options,
242  printer options, sending commands to \SpecialChar LyX
243  via the \SpecialChar LyX
244  Server, internationalization,
245  installing new \SpecialChar LaTeX
246  classes and \SpecialChar LyX
247  layouts, etc.
248  We can't possibly hope to touch on everything you can change—our developers
249  add new features faster than we can document them—but we will explain the
250  most common customizations and hopefully point you in the right direction
251  for some of the more obscure ones.
252 \end_layout
253
254 \begin_layout Standard
255 \begin_inset Branch OutDated
256 inverted 0
257 status collapsed
258
259 \begin_layout Standard
260 Information from previous versions of this document that now seems to be
261  outdated is contained in the OutDated branch of this document.
262  By default, this information will not appear in the \SpecialChar LaTeX
263  output.
264 \end_layout
265
266 \end_inset
267
268
269 \end_layout
270
271 \begin_layout Chapter
272 \SpecialChar LyX
273  configuration files
274 \end_layout
275
276 \begin_layout Standard
277 This chapter aims to help you to find your way through the \SpecialChar LyX
278  configuration
279  files.
280  Before continuing to read this chapter, you should find out where your
281  \SpecialChar LyX
282  library and user directories are by using 
283 \begin_inset Flex Noun
284 status collapsed
285
286 \begin_layout Plain Layout
287 Help\SpecialChar menuseparator
288 About
289 \begin_inset space ~
290 \end_inset
291
292 LyX
293 \end_layout
294
295 \end_inset
296
297 .
298  The library directory is the place where \SpecialChar LyX
299  places its system-wide configuration
300  files; the user directory is where you can place your modified versions.
301  We will call the former 
302 \begin_inset Flex Code
303 status collapsed
304
305 \begin_layout Plain Layout
306 LyXDir
307 \end_layout
308
309 \end_inset
310
311  and the latter 
312 \begin_inset Flex Noun
313 status collapsed
314
315 \begin_layout Plain Layout
316 UserDir
317 \end_layout
318
319 \end_inset
320
321  in the remainder of this document.
322  
323 \end_layout
324
325 \begin_layout Section
326 What's in 
327 \begin_inset Flex Code
328 status collapsed
329
330 \begin_layout Plain Layout
331 LyXDir
332 \end_layout
333
334 \end_inset
335
336 ?
337 \end_layout
338
339 \begin_layout Standard
340 \begin_inset Flex Code
341 status collapsed
342
343 \begin_layout Plain Layout
344 LyXDir
345 \end_layout
346
347 \end_inset
348
349  and its sub-directories contain a number of files 
350 \change_deleted 232239728 1604787780
351 and
352 \change_unchanged
353  that can be used to customize \SpecialChar LyX
354 's behavior.
355  You can change many of these files from within \SpecialChar LyX
356  itself through the 
357 \begin_inset Flex Noun
358 status collapsed
359
360 \begin_layout Plain Layout
361 Tools\SpecialChar menuseparator
362 Preferences
363 \end_layout
364
365 \end_inset
366
367  dialog.
368  Most customization that you will want to do in \SpecialChar LyX
369  is possible through this
370  dialog.
371  However, many other inner aspects of \SpecialChar LyX
372  can be customized by modifying the
373  files in 
374 \begin_inset Flex Code
375 status collapsed
376
377 \begin_layout Plain Layout
378 LyXDir
379 \end_layout
380
381 \end_inset
382
383 .
384  These files fall in different categories, described in the following subsection
385 s.
386 \end_layout
387
388 \begin_layout Subsection
389 Automatically generated files
390 \end_layout
391
392 \begin_layout Standard
393 The files found in 
394 \begin_inset Flex Noun
395 status collapsed
396
397 \begin_layout Plain Layout
398 UserDir
399 \end_layout
400
401 \end_inset
402
403  are generated when you configure \SpecialChar LyX
404 .
405  They contain various default values that are 
406 \change_inserted 5863208 1604919565
407 automatically detected during reconfiguration.
408 \change_deleted 232239728 1604788241
409 guessed by inspection
410 \change_unchanged
411  In general, it is not a good idea to modify them, since they might be overwritt
412 en at any time.
413 \end_layout
414
415 \begin_layout Labeling
416 \labelwidthstring 00.00.0000
417 \begin_inset Flex Code
418 status collapsed
419
420 \begin_layout Plain Layout
421 lyxrc.defaults
422 \end_layout
423
424 \end_inset
425
426  
427 \change_deleted 5863208 1604919950
428
429 \begin_inset Note Note
430 status collapsed
431
432 \begin_layout Plain Layout
433
434 \change_inserted 232239728 1604853928
435 I capitalized the first word in all of these lists.
436  To me it looks better but it really is a stylistic thing, your call.
437  However if you are not going to capitalize them, the english in some needs
438  to be modified to make it read correctly as a sentence.
439 \change_unchanged
440
441 \end_layout
442
443 \end_inset
444
445
446 \change_deleted 232239728 1604853510
447 c
448 \change_inserted 232239728 1604853510
449 C
450 \change_unchanged
451 ontains defaults for various commands.
452 \end_layout
453
454 \begin_layout Labeling
455 \labelwidthstring 00.00.0000
456 \begin_inset Flex Code
457 status collapsed
458
459 \begin_layout Plain Layout
460 packages.lst
461 \end_layout
462
463 \end_inset
464
465  
466 \change_deleted 232239728 1604853512
467 c
468 \change_inserted 232239728 1604853512
469 C
470 \change_unchanged
471 ontains the list of packages that have been recognized by \SpecialChar LyX
472 .
473  It is currently unused by the \SpecialChar LyX
474  program itself, but the information extracted,
475  and more, is made available with 
476 \begin_inset Flex Noun
477 status collapsed
478
479 \begin_layout Plain Layout
480 Help\SpecialChar menuseparator
481 \SpecialChar LaTeX
482
483 \begin_inset space ~
484 \end_inset
485
486 Configuration
487 \end_layout
488
489 \end_inset
490
491 .
492 \end_layout
493
494 \begin_layout Labeling
495 \labelwidthstring 00.00.0000
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500 textclass.lst
501 \end_layout
502
503 \end_inset
504
505  
506 \change_deleted 232239728 1604853515
507 t
508 \change_inserted 232239728 1604853515
509 T
510 \change_unchanged
511 he list of text classes that have been found in your 
512 \begin_inset Flex Code
513 status collapsed
514
515 \begin_layout Plain Layout
516 layout/
517 \end_layout
518
519 \end_inset
520
521  directories, along with the associated \SpecialChar LaTeX
522  document class and their description.
523 \end_layout
524
525 \begin_layout Labeling
526 \labelwidthstring 00.00.0000
527 \begin_inset Flex Code
528 status collapsed
529
530 \begin_layout Plain Layout
531 lyxmodules.lst
532 \end_layout
533
534 \end_inset
535
536  
537 \change_deleted 232239728 1604853518
538 t
539 \change_inserted 232239728 1604853518
540 T
541 \change_unchanged
542 he list of layout modules found in your 
543 \begin_inset Flex Code
544 status collapsed
545
546 \begin_layout Plain Layout
547 layout/
548 \end_layout
549
550 \end_inset
551
552  directories
553 \end_layout
554
555 \begin_layout Labeling
556 \labelwidthstring 00.00.0000
557 \begin_inset Flex Code
558 status open
559
560 \begin_layout Plain Layout
561 *files.lst
562 \end_layout
563
564 \end_inset
565
566  
567 \change_deleted 232239728 1604853523
568 l
569 \change_inserted 232239728 1604853523
570 L
571 \change_unchanged
572 ists of various sorts of \SpecialChar LaTeX
573 -related files found on your system
574 \end_layout
575
576 \begin_layout Labeling
577 \labelwidthstring 00.00.0000
578 \begin_inset Flex Code
579 status open
580
581 \begin_layout Plain Layout
582 doc/\SpecialChar LaTeX
583 Config.lyx
584 \end_layout
585
586 \end_inset
587
588  is automatically generated during configuration from the file 
589 \begin_inset Flex Code
590 status collapsed
591
592 \begin_layout Plain Layout
593 \SpecialChar LaTeX
594 Config.lyx.in
595 \end_layout
596
597 \end_inset
598
599 .
600  It contains information on your \SpecialChar LaTeX
601  configuration.
602 \end_layout
603
604 \begin_layout Subsection
605 Directories
606 \end_layout
607
608 \begin_layout Standard
609 The
610 \change_deleted 5863208 1604928729
611 se
612 \change_unchanged
613  
614 \change_inserted 5863208 1604928636
615 following 
616 \change_unchanged
617 directories 
618 \change_inserted 5863208 1604928661
619 in 
620 \change_unchanged
621
622 \begin_inset Flex Code
623 status collapsed
624
625 \begin_layout Plain Layout
626 LyXDir
627 \end_layout
628
629 \end_inset
630
631
632 \change_inserted 5863208 1604928662
633  can be
634 \change_deleted 5863208 1604928642
635 are
636 \change_unchanged
637  duplicated 
638 \change_deleted 5863208 1604928669
639 between 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 LyXDir
645 \end_layout
646
647 \end_inset
648
649  and
650 \change_inserted 5863208 1604928680
651 in
652 \change_unchanged
653  
654 \begin_inset Flex Code
655 status collapsed
656
657 \begin_layout Plain Layout
658 UserDir
659 \end_layout
660
661 \end_inset
662
663 .
664  If a particular file
665 \change_deleted 232239728 1604794430
666 s
667 \change_unchanged
668  exists in both places, the one in 
669 \begin_inset Flex Code
670 status collapsed
671
672 \begin_layout Plain Layout
673 UserDir
674 \end_layout
675
676 \end_inset
677
678  will be used.
679 \end_layout
680
681 \begin_layout Labeling
682 \labelwidthstring 00.00.0000
683 \begin_inset Flex Code
684 status collapsed
685
686 \begin_layout Plain Layout
687 bind/
688 \end_layout
689
690 \end_inset
691
692  
693 \change_deleted 232239728 1604794460
694 t
695 \change_inserted 232239728 1604794460
696 T
697 \change_unchanged
698 his directory contains files with the extension 
699 \begin_inset Flex Code
700 status collapsed
701
702 \begin_layout Plain Layout
703 .bind
704 \end_layout
705
706 \end_inset
707
708  that define the keybindings used in \SpecialChar LyX
709 .
710  If there exists an internationalized version of the bind file named 
711 \begin_inset Flex Code
712 status collapsed
713
714 \begin_layout Plain Layout
715 $LANG_xxx.bind
716 \end_layout
717
718 \end_inset
719
720 , that will be used first.
721 \end_layout
722
723 \begin_layout Labeling
724 \labelwidthstring 00.00.0000
725 \begin_inset Flex Code
726 status collapsed
727
728 \begin_layout Plain Layout
729 citeengines/
730 \end_layout
731
732 \end_inset
733
734  
735 \change_deleted 232239728 1604794478
736 c
737 \change_inserted 232239728 1604794478
738 C
739 \change_unchanged
740 ontains files with the extension 
741 \begin_inset Flex Code
742 status collapsed
743
744 \begin_layout Plain Layout
745 .citeengine
746 \end_layout
747
748 \end_inset
749
750  which define the diverse citation possibilities (natbib, biblatex etc.).
751  See 
752 \begin_inset CommandInset ref
753 LatexCommand ref
754 reference "subsec:Cite-Engine-Files"
755 plural "false"
756 caps "false"
757 noprefix "false"
758
759 \end_inset
760
761  for details.
762 \end_layout
763
764 \begin_layout Labeling
765 \labelwidthstring 00.00.0000
766 \begin_inset Flex Code
767 status collapsed
768
769 \begin_layout Plain Layout
770 clipart/
771 \end_layout
772
773 \end_inset
774
775  
776 \change_deleted 232239728 1604794483
777 c
778 \change_inserted 232239728 1604794486
779 C
780 \change_unchanged
781 ontains graphics files that can be included in documents.
782  
783 \end_layout
784
785 \begin_layout Labeling
786 \labelwidthstring 00.00.0000
787 \begin_inset Flex Code
788 status collapsed
789
790 \begin_layout Plain Layout
791 doc/
792 \end_layout
793
794 \end_inset
795
796  
797 \change_deleted 232239728 1604794492
798 c
799 \change_inserted 232239728 1604794492
800 C
801 \change_unchanged
802 ontains \SpecialChar LyX
803  documentation files (including the one you are currently reading).
804  The file 
805 \begin_inset Flex Code
806 status collapsed
807
808 \begin_layout Plain Layout
809
810 \change_deleted 232239728 1604794660
811 \SpecialChar LaTeX
812
813 \change_inserted 232239728 1604794661
814 LaTex
815 \change_unchanged
816 Config.lyx
817 \end_layout
818
819 \end_inset
820
821  deserves special attention, as noted above.
822  The internationalized help docs are in subdirectories 
823 \begin_inset Flex Code
824 status collapsed
825
826 \begin_layout Plain Layout
827 doc/xx
828 \end_layout
829
830 \end_inset
831
832  where 
833 \begin_inset Quotes eld
834 \end_inset
835
836 xx
837 \begin_inset Quotes erd
838 \end_inset
839
840  is the ISO language code.
841  See 
842 \begin_inset CommandInset ref
843 LatexCommand ref
844 reference "cha:Internationalizing-LyX"
845
846 \end_inset
847
848  for details.
849 \end_layout
850
851 \begin_layout Labeling
852 \labelwidthstring 00.00.0000
853 \begin_inset Flex Code
854 status collapsed
855
856 \begin_layout Plain Layout
857 examples/
858 \end_layout
859
860 \end_inset
861
862  
863 \change_deleted 232239728 1604794497
864 c
865 \change_inserted 232239728 1604794497
866 C
867 \change_unchanged
868 ontains example files that explain how to use some features.
869  In the file browser, press the 
870 \begin_inset Flex Noun
871 status collapsed
872
873 \begin_layout Plain Layout
874 Examples
875 \end_layout
876
877 \end_inset
878
879  button to get there.
880 \end_layout
881
882 \begin_layout Labeling
883 \labelwidthstring 00.00.0000
884 \begin_inset Flex Code
885 status collapsed
886
887 \begin_layout Plain Layout
888 images/
889 \end_layout
890
891 \end_inset
892
893  
894 \change_deleted 232239728 1604794500
895 c
896 \change_inserted 232239728 1604794500
897 C
898 \change_unchanged
899 ontains image files that are used by the 
900 \begin_inset Flex Noun
901 status collapsed
902
903 \begin_layout Plain Layout
904 Document
905 \end_layout
906
907 \end_inset
908
909  dialog.
910  In addition, it also contains the individual icons used in the toolbar
911  and the banners that can be shown when \SpecialChar LyX
912  is launched.
913 \end_layout
914
915 \begin_layout Labeling
916 \labelwidthstring 00.00.0000
917 \begin_inset Flex Code
918 status collapsed
919
920 \begin_layout Plain Layout
921 kbd/
922 \end_layout
923
924 \end_inset
925
926  
927 \change_deleted 232239728 1604794505
928 c
929 \change_inserted 232239728 1604794505
930 C
931 \change_unchanged
932 ontains keyboard keymapping files.
933  See 
934 \begin_inset CommandInset ref
935 LatexCommand ref
936 reference "sec:International-Keymap-Stuff"
937
938 \end_inset
939
940  for details.
941 \end_layout
942
943 \begin_layout Labeling
944 \labelwidthstring 00.00.0000
945 \begin_inset Flex Code
946 status collapsed
947
948 \begin_layout Plain Layout
949 layouts/
950 \end_layout
951
952 \end_inset
953
954  
955 \change_deleted 232239728 1604794508
956 c
957 \change_inserted 232239728 1604794508
958 C
959 \change_unchanged
960 ontains the text class and module files described in 
961 \begin_inset CommandInset ref
962 LatexCommand ref
963 reference "cha:Installing-New-Document"
964
965 \end_inset
966
967 .
968 \end_layout
969
970 \begin_layout Labeling
971 \labelwidthstring 00.00.0000
972 \begin_inset Flex Code
973 status collapsed
974
975 \begin_layout Plain Layout
976 lyx2lyx
977 \end_layout
978
979 \end_inset
980
981  
982 \change_deleted 232239728 1604794513
983 c
984 \change_inserted 232239728 1604794513
985 C
986 \change_unchanged
987 ontains the 
988 \begin_inset Flex Code
989 status collapsed
990
991 \begin_layout Plain Layout
992 lyx2lyx
993 \end_layout
994
995 \end_inset
996
997  Python scripts used to convert between \SpecialChar LyX
998  versions.
999  These can be run from the command line if
1000 \change_deleted 232239728 1604794749
1001 , say,
1002 \change_unchanged
1003  you want to batch-convert files.
1004 \end_layout
1005
1006 \begin_layout Labeling
1007 \labelwidthstring 00.00.0000
1008 \begin_inset Flex Code
1009 status collapsed
1010
1011 \begin_layout Plain Layout
1012 scripts/
1013 \end_layout
1014
1015 \end_inset
1016
1017  
1018 \change_deleted 232239728 1604794516
1019 c
1020 \change_inserted 232239728 1604794516
1021 C
1022 \change_unchanged
1023 ontains some files that demonstrate the capabilities of the 
1024 \begin_inset Flex Noun
1025 status collapsed
1026
1027 \begin_layout Plain Layout
1028 External
1029 \begin_inset space ~
1030 \end_inset
1031
1032 Template
1033 \end_layout
1034
1035 \end_inset
1036
1037  feature.
1038  Also contains some scripts used by \SpecialChar LyX
1039  itself.
1040 \end_layout
1041
1042 \begin_layout Labeling
1043 \labelwidthstring 00.00.0000
1044 \begin_inset Flex Code
1045 status collapsed
1046
1047 \begin_layout Plain Layout
1048 templates/
1049 \end_layout
1050
1051 \end_inset
1052
1053  
1054 \change_deleted 232239728 1604794520
1055 c
1056 \change_inserted 232239728 1604794520
1057 C
1058 \change_unchanged
1059 ontains the standard \SpecialChar LyX
1060  template files described in 
1061 \begin_inset CommandInset ref
1062 LatexCommand ref
1063 reference "subsec:Creating-Templates"
1064
1065 \end_inset
1066
1067 .
1068 \end_layout
1069
1070 \begin_layout Labeling
1071 \labelwidthstring 00.00.0000
1072 \begin_inset Flex Code
1073 status collapsed
1074
1075 \begin_layout Plain Layout
1076 ui/
1077 \end_layout
1078
1079 \end_inset
1080
1081  
1082 \change_deleted 232239728 1604794524
1083 c
1084 \change_inserted 232239728 1604794524
1085 C
1086 \change_unchanged
1087 ontains files with the extension 
1088 \begin_inset Flex Code
1089 status collapsed
1090
1091 \begin_layout Plain Layout
1092 .ui
1093 \end_layout
1094
1095 \end_inset
1096
1097  that define the user interface to \SpecialChar LyX
1098 .
1099  That is, the files define which items appear in which menus and the items
1100  appearing on the toolbar.
1101 \end_layout
1102
1103 \begin_layout Labeling
1104 \labelwidthstring 00.00.0000
1105 \begin_inset Flex Code
1106 status collapsed
1107
1108 \begin_layout Plain Layout
1109 xtemplates/
1110 \end_layout
1111
1112 \end_inset
1113
1114  
1115 \change_deleted 232239728 1604794528
1116 c
1117 \change_inserted 232239728 1604794528
1118 C
1119 \change_unchanged
1120 ontains files with the extension 
1121 \begin_inset Flex Code
1122 status collapsed
1123
1124 \begin_layout Plain Layout
1125 .xtemplate
1126 \end_layout
1127
1128 \end_inset
1129
1130  which define the templates for the insertion of external material to a
1131  \SpecialChar LyX
1132  document; see 
1133 \begin_inset CommandInset ref
1134 LatexCommand ref
1135 reference "chap:Including-External-Material"
1136
1137 \end_inset
1138
1139 .
1140 \end_layout
1141
1142 \begin_layout Subsection
1143 Files you don't want to modify
1144 \end_layout
1145
1146 \begin_layout Standard
1147 These files are used internally by \SpecialChar LyX
1148  and you generally do not need to modify
1149  them unless you are a developer.
1150 \end_layout
1151
1152 \begin_layout Labeling
1153 \labelwidthstring 00.00.0000
1154 \begin_inset Flex Code
1155 status collapsed
1156
1157 \begin_layout Plain Layout
1158 CREDITS
1159 \end_layout
1160
1161 \end_inset
1162
1163  
1164 \change_deleted 232239728 1604797616
1165 t
1166 \change_inserted 232239728 1604797616
1167 T
1168 \change_unchanged
1169 his file contains the list of \SpecialChar LyX
1170  developers.
1171  The contents are displayed with the menu entry 
1172 \begin_inset Flex Noun
1173 status collapsed
1174
1175 \begin_layout Plain Layout
1176 Help\SpecialChar menuseparator
1177 About
1178 \begin_inset space ~
1179 \end_inset
1180
1181 LyX
1182 \end_layout
1183
1184 \end_inset
1185
1186 .
1187 \end_layout
1188
1189 \begin_layout Labeling
1190 \labelwidthstring 00.00.0000
1191 \begin_inset Flex Code
1192 status collapsed
1193
1194 \begin_layout Plain Layout
1195 chkconfig.ltx
1196 \end_layout
1197
1198 \end_inset
1199
1200  
1201 \change_deleted 232239728 1604797620
1202 t
1203 \change_inserted 232239728 1604797620
1204 T
1205 \change_unchanged
1206 his is a \SpecialChar LaTeX
1207  script used during the configuration process.
1208  Do not run directly.
1209 \end_layout
1210
1211 \begin_layout Labeling
1212 \labelwidthstring 00.00.0000
1213 \begin_inset Flex Code
1214 status collapsed
1215
1216 \begin_layout Plain Layout
1217 configure.py
1218 \end_layout
1219
1220 \end_inset
1221
1222  
1223 \change_deleted 232239728 1604797624
1224 t
1225 \change_inserted 232239728 1604797624
1226 T
1227 \change_unchanged
1228 his is a Python script that is used to re-configure \SpecialChar LyX
1229 .
1230  It creates configuration files in the directory it was run from.
1231 \end_layout
1232
1233 \begin_layout Subsection
1234 Other files needing a line or two
1235 \end_layout
1236
1237 \begin_layout Labeling
1238 \labelwidthstring 00.00.0000
1239 \begin_inset Flex Code
1240 status collapsed
1241
1242 \begin_layout Plain Layout
1243 encodings
1244 \end_layout
1245
1246 \end_inset
1247
1248  
1249 \change_deleted 232239728 1604797580
1250 t
1251 \change_inserted 232239728 1604797580
1252 T
1253 \change_unchanged
1254 his contains tables describing how different character encodings can be
1255  mapped to Unicode
1256 \end_layout
1257
1258 \begin_layout Labeling
1259 \labelwidthstring 00.00.0000
1260 \begin_inset Flex Code
1261 status collapsed
1262
1263 \begin_layout Plain Layout
1264 languages
1265 \end_layout
1266
1267 \end_inset
1268
1269  
1270 \change_deleted 232239728 1604797584
1271 t
1272 \change_inserted 232239728 1604797584
1273 T
1274 \change_unchanged
1275 his file contains a list of all the languages currently supported by \SpecialChar LyX
1276 .
1277 \end_layout
1278
1279 \begin_layout Labeling
1280 \labelwidthstring 00.00.0000
1281 \begin_inset Flex Code
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 latexfonts
1286 \end_layout
1287
1288 \end_inset
1289
1290  
1291 \change_deleted 232239728 1604797587
1292 c
1293 \change_inserted 232239728 1604797587
1294 C
1295 \change_unchanged
1296 ontains information about the supported fonts.
1297 \end_layout
1298
1299 \begin_layout Labeling
1300 \labelwidthstring 00.00.0000
1301 \begin_inset Flex Code
1302 status collapsed
1303
1304 \begin_layout Plain Layout
1305 layouttranslations
1306 \end_layout
1307
1308 \end_inset
1309
1310  
1311 \change_deleted 232239728 1604797591
1312 t
1313 \change_inserted 232239728 1604797591
1314 T
1315 \change_unchanged
1316 his file contains translations for internationalized paragraph styles (see
1317  
1318 \begin_inset CommandInset ref
1319 LatexCommand ref
1320 reference "subsec:I18n"
1321
1322 \end_inset
1323
1324 ).
1325 \end_layout
1326
1327 \begin_layout Labeling
1328 \labelwidthstring 00.00.0000
1329 \begin_inset Flex Code
1330 status collapsed
1331
1332 \begin_layout Plain Layout
1333 unicodesymbols
1334 \end_layout
1335
1336 \end_inset
1337
1338  
1339 \change_deleted 232239728 1604797594
1340 t
1341 \change_inserted 232239728 1604797594
1342 T
1343 \change_unchanged
1344 his file contains information about Unicode-encoded glyphs and the way they
1345  are supported by \SpecialChar LyX
1346  via \SpecialChar LaTeX
1347 .
1348 \end_layout
1349
1350 \begin_layout Section
1351 Your local configuration directory
1352 \end_layout
1353
1354 \begin_layout Standard
1355 Even if you are using \SpecialChar LyX
1356  as an unprivileged user, you might want to change
1357  \SpecialChar LyX
1358  configuration for your own use.
1359  The 
1360 \begin_inset Flex Code
1361 status collapsed
1362
1363 \begin_layout Plain Layout
1364 UserDir
1365 \end_layout
1366
1367 \end_inset
1368
1369  directory contains all your personal configuration files.
1370  This is the directory described as 
1371 \begin_inset Quotes eld
1372 \end_inset
1373
1374 user directory
1375 \begin_inset Quotes erd
1376 \end_inset
1377
1378  in 
1379 \begin_inset Flex Noun
1380 status collapsed
1381
1382 \begin_layout Plain Layout
1383 Help\SpecialChar menuseparator
1384 About
1385 \begin_inset space ~
1386 \end_inset
1387
1388 LyX
1389 \end_layout
1390
1391 \end_inset
1392
1393 .
1394  This directory is used as a mirror of 
1395 \begin_inset Flex Code
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399 LyXDir
1400 \end_layout
1401
1402 \end_inset
1403
1404 , which means that every file in 
1405 \begin_inset Flex Code
1406 status collapsed
1407
1408 \begin_layout Plain Layout
1409 UserDir
1410 \end_layout
1411
1412 \end_inset
1413
1414  is a replacement for the corresponding file in 
1415 \begin_inset Flex Code
1416 status collapsed
1417
1418 \begin_layout Plain Layout
1419 LyXDir
1420 \end_layout
1421
1422 \end_inset
1423
1424 .
1425  Any configuration file described in the above sections can be placed either
1426  in the system-wide directory, in which case it will affect all users, or
1427  in your local directory for your own use.
1428 \end_layout
1429
1430 \begin_layout Standard
1431 To make things clearer, let's provide a few examples:
1432 \end_layout
1433
1434 \begin_layout Itemize
1435 The preferences set in the 
1436 \begin_inset Flex Noun
1437 status collapsed
1438
1439 \begin_layout Plain Layout
1440 Tools\SpecialChar menuseparator
1441 Preferences
1442 \end_layout
1443
1444 \end_inset
1445
1446  dialog are saved to a file 
1447 \begin_inset Flex Code
1448 status collapsed
1449
1450 \begin_layout Plain Layout
1451 preferences
1452 \end_layout
1453
1454 \end_inset
1455
1456  in 
1457 \begin_inset Flex Code
1458 status collapsed
1459
1460 \begin_layout Plain Layout
1461 UserDir
1462 \end_layout
1463
1464 \end_inset
1465
1466 .
1467 \end_layout
1468
1469 \begin_layout Itemize
1470 When you reconfigure using 
1471 \begin_inset Flex Noun
1472 status collapsed
1473
1474 \begin_layout Plain Layout
1475 Tools\SpecialChar menuseparator
1476 Reconfigure
1477 \end_layout
1478
1479 \end_inset
1480
1481 , \SpecialChar LyX
1482  runs the 
1483 \begin_inset Flex Code
1484 status collapsed
1485
1486 \begin_layout Plain Layout
1487 configure.py
1488 \end_layout
1489
1490 \end_inset
1491
1492  script, and the resulting files are written in your local configuration
1493  directory.
1494  This means that any additional text class file that you might have added
1495  in 
1496 \begin_inset Flex Code
1497 status collapsed
1498
1499 \begin_layout Plain Layout
1500 UserDir/layouts
1501 \end_layout
1502
1503 \end_inset
1504
1505  will be added to the list of classes in the 
1506 \begin_inset Flex Noun
1507 status collapsed
1508
1509 \begin_layout Plain Layout
1510 Document\SpecialChar menuseparator
1511 Settings
1512 \end_layout
1513
1514 \end_inset
1515
1516  dialog.
1517 \end_layout
1518
1519 \begin_layout Itemize
1520 If you get some updated documentation from
1521 \change_inserted 232239728 1604798171
1522  a
1523 \change_unchanged
1524  \SpecialChar LyX
1525  ftp site and cannot install it because you do not have sysadmin rights
1526  on your system, you can just copy the files 
1527 \change_deleted 232239728 1604798193
1528 in
1529 \change_inserted 232239728 1604798193
1530 to
1531 \change_unchanged
1532  
1533 \begin_inset Flex Code
1534 status collapsed
1535
1536 \begin_layout Plain Layout
1537 UserDir/doc/
1538 \end_layout
1539
1540 \end_inset
1541
1542  and the items in the 
1543 \begin_inset Flex Noun
1544 status collapsed
1545
1546 \begin_layout Plain Layout
1547 Help
1548 \end_layout
1549
1550 \end_inset
1551
1552  menu will open them!
1553 \end_layout
1554
1555 \begin_layout Section
1556 Running \SpecialChar LyX
1557  with multiple configurations
1558 \end_layout
1559
1560 \begin_layout Standard
1561 The configuration freedom of the local configuration directory may not suffice
1562  if you want to have more than one configuration at your disposal.
1563  For example, you may want to 
1564 \change_deleted 232239728 1604798238
1565 be 
1566 \change_unchanged
1567 use different key bindings or printer settings at different times.
1568  You can achieve this by having several such directories.
1569  You then specify which directory to use at run-time.
1570 \end_layout
1571
1572 \begin_layout Standard
1573 Invoking \SpecialChar LyX
1574  with the command line switch 
1575 \begin_inset Flex Code
1576 status collapsed
1577
1578 \begin_layout Plain Layout
1579 -userdir
1580 \end_layout
1581
1582 \end_inset
1583
1584  
1585 \emph on
1586 <some directory>
1587 \emph default
1588  instructs the program to read the configuration from that directory, and
1589  not from the default directory.
1590  (You can determine the default directory by running \SpecialChar LyX
1591  without the 
1592 \begin_inset Flex Code
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596 -userdir
1597 \end_layout
1598
1599 \end_inset
1600
1601  switch.) If the specified directory does not exist, \SpecialChar LyX
1602  offers to create it
1603  for you, just like it does for the default directory 
1604 \change_deleted 232239728 1604798318
1605 on
1606 \change_unchanged
1607  the first time you run the program.
1608  You can modify the configuration options in this additional user directory
1609  exactly as you would for the default directory.
1610  These directories are completely independent (but read on).
1611  Note that setting the environment variable 
1612 \begin_inset Flex Code
1613 status collapsed
1614
1615 \begin_layout Plain Layout
1616 LYX_USERDIR_24x
1617 \end_layout
1618
1619 \end_inset
1620
1621  to some value has exactly the same effect.
1622 \end_layout
1623
1624 \begin_layout Standard
1625 Having several configurations also requires more maintenance: if you want
1626  to add a new layout to 
1627 \begin_inset Flex Code
1628 status collapsed
1629
1630 \begin_layout Plain Layout
1631 NewUserDir/layouts
1632 \end_layout
1633
1634 \end_inset
1635
1636  which you want available from all your configurations, you must add it
1637  to each directory separately.
1638  You can avoid this with the following trick: after \SpecialChar LyX
1639  creates the additional
1640  directory, most of the subdirectories (see above) are empty.
1641  If you want the new configuration to mirror an existing one, replace the
1642  empty subdirectory with a symbolic link to the matching subdirectory in
1643  the existing configuration.
1644  Take care with the 
1645 \begin_inset Flex Code
1646 status collapsed
1647
1648 \begin_layout Plain Layout
1649 doc/
1650 \end_layout
1651
1652 \end_inset
1653
1654  subdirectory, however, since it contains a file written by the configuration
1655  script (also accessible through 
1656 \begin_inset Flex Noun
1657 status collapsed
1658
1659 \begin_layout Plain Layout
1660 Tools\SpecialChar menuseparator
1661 Reconfigure
1662 \end_layout
1663
1664 \end_inset
1665
1666 ) which is configuration
1667 \change_deleted 232239728 1604798083
1668 -
1669 \change_inserted 232239728 1604798100
1670  
1671 \change_unchanged
1672 specific.
1673 \end_layout
1674
1675 \begin_layout Chapter
1676 The Preferences dialog
1677 \end_layout
1678
1679 \begin_layout Standard
1680 All options of the preferences dialog are described in the Appendix 
1681 \emph on
1682 The Preferences Dialog
1683 \emph default
1684  in the 
1685 \emph on
1686 User's Guide
1687 \emph default
1688 .
1689  For some options you might find here more details.
1690 \end_layout
1691
1692 \begin_layout Section
1693 Formats
1694 \begin_inset CommandInset label
1695 LatexCommand label
1696 name "sec:Formats"
1697
1698 \end_inset
1699
1700
1701 \end_layout
1702
1703 \begin_layout Standard
1704 The first step is to define your file formats if they are not already defined.
1705  To do so, open the 
1706 \begin_inset Flex Noun
1707 status collapsed
1708
1709 \begin_layout Plain Layout
1710 Tools\SpecialChar menuseparator
1711 Preferences
1712 \end_layout
1713
1714 \end_inset
1715
1716  dialog.
1717  Under 
1718 \begin_inset Flex Noun
1719 status collapsed
1720
1721 \begin_layout Plain Layout
1722 File Handling\SpecialChar menuseparator
1723 File formats
1724 \end_layout
1725
1726 \end_inset
1727
1728  press the 
1729 \begin_inset Flex Noun
1730 status collapsed
1731
1732 \begin_layout Plain Layout
1733 New
1734 \end_layout
1735
1736 \end_inset
1737
1738  button to define your new format.
1739  The 
1740 \begin_inset Flex Noun
1741 status collapsed
1742
1743 \begin_layout Plain Layout
1744 Format
1745 \end_layout
1746
1747 \end_inset
1748
1749  field contains the name used to identify the format in the GUI.
1750  The 
1751 \begin_inset Flex Noun
1752 status collapsed
1753
1754 \begin_layout Plain Layout
1755 Short Name
1756 \end_layout
1757
1758 \end_inset
1759
1760  is used to identify the format internally.
1761  You will also need to enter a file extension.
1762  These are all required.
1763  The optional 
1764 \begin_inset Flex Noun
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 Shortcut
1769 \end_layout
1770
1771 \end_inset
1772
1773  field is used to provide a keyboard shortcut on the menus.
1774  (For example, pressing 
1775 \begin_inset Flex Noun
1776 status collapsed
1777
1778 \begin_layout Plain Layout
1779 Ctrl+D
1780 \end_layout
1781
1782 \end_inset
1783
1784  will 
1785 \begin_inset Flex Noun
1786 status collapsed
1787
1788 \begin_layout Plain Layout
1789 Document\SpecialChar menuseparator
1790 View (Other Formats)\SpecialChar menuseparator
1791 DVI
1792 \end_layout
1793
1794 \end_inset
1795
1796 .) 
1797 \end_layout
1798
1799 \begin_layout Standard
1800 A Format can have a 
1801 \begin_inset Flex Noun
1802 status collapsed
1803
1804 \begin_layout Plain Layout
1805 Viewer
1806 \end_layout
1807
1808 \end_inset
1809
1810  and an 
1811 \begin_inset Flex Noun
1812 status collapsed
1813
1814 \begin_layout Plain Layout
1815 Editor
1816 \end_layout
1817
1818 \end_inset
1819
1820  associated with it.
1821  For example, you might want to use 
1822 \begin_inset Flex Noun
1823 status collapsed
1824
1825 \begin_layout Plain Layout
1826 Ghostview
1827 \end_layout
1828
1829 \end_inset
1830
1831  to view PostScript files.
1832  You can enter the command needed to start the program in the corresponding
1833  fields.
1834  In defining this command, you can use the four variables listed in the
1835  next section.
1836  The viewer is launched when you view an image in \SpecialChar LyX
1837  or use the 
1838 \begin_inset Flex Noun
1839 status collapsed
1840
1841 \begin_layout Plain Layout
1842 Document\SpecialChar menuseparator
1843 View
1844 \end_layout
1845
1846 \end_inset
1847
1848  menu.
1849  The editor is for example launched when you right-click on an image and
1850  choose 
1851 \begin_inset Flex Noun
1852 status collapsed
1853
1854 \begin_layout Plain Layout
1855 Edit externally
1856 \end_layout
1857
1858 \end_inset
1859
1860  in the appearing context menu.
1861 \end_layout
1862
1863 \begin_layout Standard
1864 The 
1865 \begin_inset Flex Noun
1866 status collapsed
1867
1868 \begin_layout Plain Layout
1869 MIME
1870 \end_layout
1871
1872 \end_inset
1873
1874  type of a format is optional, but if it is specified, it must be unique
1875  across all formats.
1876  It is used to detect files of this format from the file contents.
1877  For some important file formats there is no MIME type officially registered
1878  with the 
1879 \begin_inset CommandInset href
1880 LatexCommand href
1881 name "IANA"
1882 target "http://www.iana.org/assignments/media-types/"
1883 literal "false"
1884
1885 \end_inset
1886
1887 .
1888  Therefore \SpecialChar LyX
1889  uses the extended list of MIME types as specified by 
1890 \begin_inset CommandInset href
1891 LatexCommand href
1892 name "freedesktop.org"
1893 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1894 literal "false"
1895
1896 \end_inset
1897
1898 .
1899 \end_layout
1900
1901 \begin_layout Standard
1902 The 
1903 \begin_inset Flex Noun
1904 status collapsed
1905
1906 \begin_layout Plain Layout
1907 Document format
1908 \end_layout
1909
1910 \end_inset
1911
1912  option tells \SpecialChar LyX
1913  that a format is suitable for document export.
1914  If this is set and if a suitable conversion route exists (see 
1915 \begin_inset CommandInset ref
1916 LatexCommand ref
1917 reference "sec:Converters"
1918
1919 \end_inset
1920
1921 ), the format will appear in the 
1922 \begin_inset Flex Noun
1923 status collapsed
1924
1925 \begin_layout Plain Layout
1926 File\SpecialChar menuseparator
1927 Export
1928 \end_layout
1929
1930 \end_inset
1931
1932  menu.
1933  The format will also appear in the 
1934 \begin_inset Flex Noun
1935 status collapsed
1936
1937 \begin_layout Plain Layout
1938 Document\SpecialChar menuseparator
1939 View
1940 \end_layout
1941
1942 \end_inset
1943
1944  menu if a viewer is specified for the format.
1945  Pure image formats, such as 
1946 \begin_inset Flex Code
1947 status collapsed
1948
1949 \begin_layout Plain Layout
1950 png
1951 \end_layout
1952
1953 \end_inset
1954
1955 , should not use this option.
1956  Formats that can both represent vector graphics and documents like 
1957 \begin_inset Flex Code
1958 status collapsed
1959
1960 \begin_layout Plain Layout
1961 pdf
1962 \end_layout
1963
1964 \end_inset
1965
1966  should use it.
1967 \end_layout
1968
1969 \begin_layout Standard
1970 The option 
1971 \begin_inset Flex Noun
1972 status collapsed
1973
1974 \begin_layout Plain Layout
1975 Vector graphics format
1976 \end_layout
1977
1978 \end_inset
1979
1980  tells \SpecialChar LyX
1981  that a format can contain vector graphics.
1982  This information is used to determine the target format of included graphics
1983  for 
1984 \begin_inset Flex Noun
1985 status collapsed
1986
1987 \begin_layout Plain Layout
1988 pdflatex
1989 \end_layout
1990
1991 \end_inset
1992
1993  export.
1994  Included graphics may need to be converted to either 
1995 \begin_inset Flex Noun
1996 status collapsed
1997
1998 \begin_layout Plain Layout
1999 pdf
2000 \end_layout
2001
2002 \end_inset
2003
2004
2005 \begin_inset Flex Noun
2006 status collapsed
2007
2008 \begin_layout Plain Layout
2009 png
2010 \end_layout
2011
2012 \end_inset
2013
2014 , or 
2015 \begin_inset Flex Noun
2016 status collapsed
2017
2018 \begin_layout Plain Layout
2019 jpg
2020 \end_layout
2021
2022 \end_inset
2023
2024 , since 
2025 \begin_inset Flex Noun
2026 status collapsed
2027
2028 \begin_layout Plain Layout
2029 pdflatex
2030 \end_layout
2031
2032 \end_inset
2033
2034  cannot handle other image formats.
2035  If an included graphic is not already in 
2036 \begin_inset Flex Noun
2037 status collapsed
2038
2039 \begin_layout Plain Layout
2040 pdf
2041 \end_layout
2042
2043 \end_inset
2044
2045
2046 \begin_inset Flex Noun
2047 status collapsed
2048
2049 \begin_layout Plain Layout
2050 png
2051 \end_layout
2052
2053 \end_inset
2054
2055 , or 
2056 \begin_inset Flex Noun
2057 status collapsed
2058
2059 \begin_layout Plain Layout
2060 jpg
2061 \end_layout
2062
2063 \end_inset
2064
2065  format, it is converted to 
2066 \begin_inset Flex Noun
2067 status collapsed
2068
2069 \begin_layout Plain Layout
2070 pdf
2071 \end_layout
2072
2073 \end_inset
2074
2075  if the vector format option is set, and otherwise to 
2076 \begin_inset Flex Noun
2077 status collapsed
2078
2079 \begin_layout Plain Layout
2080 png
2081 \end_layout
2082
2083 \end_inset
2084
2085 .
2086 \end_layout
2087
2088 \begin_layout Section
2089 Copiers
2090 \end_layout
2091
2092 \begin_layout Standard
2093 Since all conversions from one format to another take place in \SpecialChar LyX
2094 's temporary
2095  directory, it is sometimes necessary to modify a file before copying it
2096  to the temporary directory in order that the conversion may be performed.
2097 \begin_inset Foot
2098 status collapsed
2099
2100 \begin_layout Plain Layout
2101 For example, the file may refer to other files—images, for example—using
2102  relative file names, and these may become invalid when the file is copied
2103  to the temporary directory.
2104 \end_layout
2105
2106 \end_inset
2107
2108  This is done by a Copier: It copies a file to (or from) the temporary directory
2109  and may modify it in the process.
2110 \end_layout
2111
2112 \begin_layout Standard
2113 The definitions of the copiers may use eight variables:
2114 \end_layout
2115
2116 \begin_layout Labeling
2117 \labelwidthstring 00.00.0000
2118 \begin_inset Flex Code
2119 status collapsed
2120
2121 \begin_layout Plain Layout
2122 $$s
2123 \end_layout
2124
2125 \end_inset
2126
2127  The \SpecialChar LyX
2128  system directory (e.
2129 \begin_inset space \thinspace{}
2130 \end_inset
2131
2132 g.
2133 \begin_inset space \space{}
2134 \end_inset
2135
2136
2137 \begin_inset Flex Noun
2138 status collapsed
2139
2140 \begin_layout Plain Layout
2141 /usr/share/lyx
2142 \end_layout
2143
2144 \end_inset
2145
2146 ).
2147 \end_layout
2148
2149 \begin_layout Labeling
2150 \labelwidthstring 00.00.0000
2151 \begin_inset Flex Code
2152 status collapsed
2153
2154 \begin_layout Plain Layout
2155 $$i
2156 \end_layout
2157
2158 \end_inset
2159
2160  The input file
2161 \end_layout
2162
2163 \begin_layout Labeling
2164 \labelwidthstring 00.00.0000
2165 \begin_inset Flex Code
2166 status collapsed
2167
2168 \begin_layout Plain Layout
2169 $$o
2170 \end_layout
2171
2172 \end_inset
2173
2174  The output file
2175 \end_layout
2176
2177 \begin_layout Labeling
2178 \labelwidthstring 00.00.0000
2179 \begin_inset Flex Code
2180 status collapsed
2181
2182 \begin_layout Plain Layout
2183 $$b
2184 \end_layout
2185
2186 \end_inset
2187
2188  The base name (without filename extension) in the \SpecialChar LyX
2189  temporary directory
2190 \end_layout
2191
2192 \begin_layout Labeling
2193 \labelwidthstring 00.00.0000
2194 \begin_inset Flex Code
2195 status collapsed
2196
2197 \begin_layout Plain Layout
2198 $$p
2199 \end_layout
2200
2201 \end_inset
2202
2203  The full directory path of the \SpecialChar LyX
2204  temporary directory
2205 \end_layout
2206
2207 \begin_layout Labeling
2208 \labelwidthstring 00.00.0000
2209 \begin_inset Flex Code
2210 status collapsed
2211
2212 \begin_layout Plain Layout
2213 $$r
2214 \end_layout
2215
2216 \end_inset
2217
2218  The full pathname to the original \SpecialChar LyX
2219  file being processed
2220 \end_layout
2221
2222 \begin_layout Labeling
2223 \labelwidthstring 00.00.0000
2224 \begin_inset Flex Code
2225 status collapsed
2226
2227 \begin_layout Plain Layout
2228 $$f
2229 \end_layout
2230
2231 \end_inset
2232
2233  The filename (without any directory path) of the \SpecialChar LyX
2234  file.
2235 \end_layout
2236
2237 \begin_layout Labeling
2238 \labelwidthstring 00.00.0000
2239 \begin_inset Flex Code
2240 status collapsed
2241
2242 \begin_layout Plain Layout
2243 $$l
2244 \end_layout
2245
2246 \end_inset
2247
2248  The `\SpecialChar LaTeX
2249  name'
2250 \end_layout
2251
2252 \begin_layout Standard
2253 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2254 's 
2255 \series bold
2256
2257 \backslash
2258 include
2259 \series default
2260  command.
2261  It is relevant only when exporting files suitable for such inclusion.
2262 \end_layout
2263
2264 \begin_layout Standard
2265 Copiers can be used to do almost anything with output files.
2266  For example, suppose you want generated pdf files to be copied to a special
2267  directory, 
2268 \begin_inset Flex Code
2269 status collapsed
2270
2271 \begin_layout Plain Layout
2272 /home/you/pdf/
2273 \end_layout
2274
2275 \end_inset
2276
2277 .
2278  Then you could write a shell script such as this one:
2279 \end_layout
2280
2281 \begin_layout Standard
2282 \begin_inset listings
2283 inline false
2284 status open
2285
2286 \begin_layout Plain Layout
2287
2288 #!/bin/bash
2289 \end_layout
2290
2291 \begin_layout Plain Layout
2292
2293 FROMFILE=$1
2294 \end_layout
2295
2296 \begin_layout Plain Layout
2297
2298 TOFILE=`basename $2`
2299 \end_layout
2300
2301 \begin_layout Plain Layout
2302
2303 cp $FROMFILE /home/you/pdf/$TOFILE
2304 \end_layout
2305
2306 \end_inset
2307
2308 Save it in your local \SpecialChar LyX
2309  directory—say, 
2310 \begin_inset Flex Code
2311 status collapsed
2312
2313 \begin_layout Plain Layout
2314 /home/you/.lyx/scripts/pdfcopier.sh
2315 \end_layout
2316
2317 \end_inset
2318
2319 —and make it executable, if you need to do so on your platform.
2320  Then, in the 
2321 \begin_inset Flex Noun
2322 status collapsed
2323
2324 \begin_layout Plain Layout
2325 Tools\SpecialChar menuseparator
2326 Preferences
2327 \end_layout
2328
2329 \end_inset
2330
2331  dialog, select under 
2332 \begin_inset Flex Noun
2333 status collapsed
2334
2335 \begin_layout Plain Layout
2336 File Handling\SpecialChar menuseparator
2337 File formats
2338 \end_layout
2339
2340 \end_inset
2341
2342  the 
2343 \begin_inset Flex Noun
2344 status collapsed
2345
2346 \begin_layout Plain Layout
2347 PDF(pdflatex)
2348 \end_layout
2349
2350 \end_inset
2351
2352  format—or one of the other pdf formats—and enter 
2353 \begin_inset Flex Code
2354 status collapsed
2355
2356 \begin_layout Plain Layout
2357 pdfcopier.sh $$i $$o
2358 \end_layout
2359
2360 \end_inset
2361
2362  into the 
2363 \begin_inset Flex Noun
2364 status collapsed
2365
2366 \begin_layout Plain Layout
2367 Copier
2368 \end_layout
2369
2370 \end_inset
2371
2372  field.
2373  
2374 \end_layout
2375
2376 \begin_layout Standard
2377 Copiers are used by \SpecialChar LyX
2378  in various of its own conversions.
2379  For example, if appropriate programs are found, \SpecialChar LyX
2380  will automatically install
2381  copiers for the 
2382 \begin_inset Flex Noun
2383 status collapsed
2384
2385 \begin_layout Plain Layout
2386 HTML
2387 \end_layout
2388
2389 \end_inset
2390
2391  and 
2392 \begin_inset Flex Noun
2393 status collapsed
2394
2395 \begin_layout Plain Layout
2396 HTML
2397 \begin_inset space ~
2398 \end_inset
2399
2400 (MS Word)
2401 \end_layout
2402
2403 \end_inset
2404
2405  formats.
2406  When these formats are exported, the copier sees that not just the main
2407  HTML file but various associated files (style files, images, etc.) are also
2408  copied.
2409  All these files are written to a subdirectory of the directory in which
2410  the original \SpecialChar LyX
2411  file was found.
2412 \begin_inset Foot
2413 status collapsed
2414
2415 \begin_layout Plain Layout
2416 This copier can be customized.
2417  The optional 
2418 \begin_inset Quotes eld
2419 \end_inset
2420
2421 -e
2422 \begin_inset Quotes erd
2423 \end_inset
2424
2425  argument takes a comma-separated list of extensions to be copied; if it
2426  is omitted, all files will be copied.
2427  The 
2428 \begin_inset Quotes eld
2429 \end_inset
2430
2431 -t
2432 \begin_inset Quotes erd
2433 \end_inset
2434
2435  argument determines the extension added to the generated directory.
2436  By default, it is 
2437 \begin_inset Quotes eld
2438 \end_inset
2439
2440
2441 \begin_inset Flex Noun
2442 status collapsed
2443
2444 \begin_layout Plain Layout
2445 LyXconv
2446 \end_layout
2447
2448 \end_inset
2449
2450
2451 \begin_inset Quotes erd
2452 \end_inset
2453
2454 , so HTML generated from 
2455 \begin_inset Flex Noun
2456 status collapsed
2457
2458 \begin_layout Plain Layout
2459 /path/to/filename.lyx
2460 \end_layout
2461
2462 \end_inset
2463
2464  will end up in 
2465 \begin_inset Flex Noun
2466 status collapsed
2467
2468 \begin_layout Plain Layout
2469 /path/to/filename.html.LyXconv
2470 \end_layout
2471
2472 \end_inset
2473
2474 .
2475  
2476 \end_layout
2477
2478 \end_inset
2479
2480
2481 \end_layout
2482
2483 \begin_layout Section
2484 Converters
2485 \begin_inset CommandInset label
2486 LatexCommand label
2487 name "sec:Converters"
2488
2489 \end_inset
2490
2491
2492 \end_layout
2493
2494 \begin_layout Standard
2495 You can define your own Converters to convert files between different formats.
2496  This is done in the 
2497 \begin_inset Flex Noun
2498 status collapsed
2499
2500 \begin_layout Plain Layout
2501 Tools\SpecialChar menuseparator
2502 Preferences\SpecialChar menuseparator
2503 File Handling\SpecialChar menuseparator
2504 Converters
2505 \end_layout
2506
2507 \end_inset
2508
2509  dialog.
2510 \end_layout
2511
2512 \begin_layout Standard
2513 To define a new converter, select the 
2514 \begin_inset Flex Noun
2515 status collapsed
2516
2517 \begin_layout Plain Layout
2518 From
2519 \begin_inset space ~
2520 \end_inset
2521
2522 format
2523 \end_layout
2524
2525 \end_inset
2526
2527  and 
2528 \begin_inset Flex Noun
2529 status collapsed
2530
2531 \begin_layout Plain Layout
2532 To
2533 \begin_inset space ~
2534 \end_inset
2535
2536 format
2537 \end_layout
2538
2539 \end_inset
2540
2541  from the drop-down lists, enter the command needed for the conversion,
2542  and then press the 
2543 \begin_inset Flex Noun
2544 status collapsed
2545
2546 \begin_layout Plain Layout
2547 Add
2548 \end_layout
2549
2550 \end_inset
2551
2552  button.
2553  Several variables can be used in the definition of converters:
2554 \end_layout
2555
2556 \begin_layout Labeling
2557 \labelwidthstring 00.00.0000
2558 \begin_inset Flex Code
2559 status collapsed
2560
2561 \begin_layout Plain Layout
2562 $$s
2563 \end_layout
2564
2565 \end_inset
2566
2567  The \SpecialChar LyX
2568  system directory
2569 \end_layout
2570
2571 \begin_layout Labeling
2572 \labelwidthstring 00.00.0000
2573 \begin_inset Flex Code
2574 status collapsed
2575
2576 \begin_layout Plain Layout
2577 $$i
2578 \end_layout
2579
2580 \end_inset
2581
2582  The input file
2583 \end_layout
2584
2585 \begin_layout Labeling
2586 \labelwidthstring 00.00.0000
2587 \begin_inset Flex Code
2588 status collapsed
2589
2590 \begin_layout Plain Layout
2591 $$o
2592 \end_layout
2593
2594 \end_inset
2595
2596  The output file
2597 \end_layout
2598
2599 \begin_layout Labeling
2600 \labelwidthstring 00.00.0000
2601 \begin_inset Flex Code
2602 status collapsed
2603
2604 \begin_layout Plain Layout
2605 $$b
2606 \end_layout
2607
2608 \end_inset
2609
2610  The base filename of the input file (i.
2611 \begin_inset space \thinspace{}
2612 \end_inset
2613
2614 g., without the extension)
2615 \end_layout
2616
2617 \begin_layout Labeling
2618 \labelwidthstring 00.00.0000
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 $$p
2624 \end_layout
2625
2626 \end_inset
2627
2628  The path to the input file
2629 \end_layout
2630
2631 \begin_layout Labeling
2632 \labelwidthstring 00.00.0000
2633 \begin_inset Flex Code
2634 status collapsed
2635
2636 \begin_layout Plain Layout
2637 $$r
2638 \end_layout
2639
2640 \end_inset
2641
2642  The path to the original input file (this is different from $$p when a
2643  chain of converters is called)
2644 \end_layout
2645
2646 \begin_layout Labeling
2647 \labelwidthstring 00.00.0000
2648 \begin_inset Flex Code
2649 status collapsed
2650
2651 \begin_layout Plain Layout
2652 $$e
2653 \end_layout
2654
2655 \end_inset
2656
2657  The iconv name for the encoding of the document.
2658 \end_layout
2659
2660 \begin_layout Standard
2661 In the 
2662 \begin_inset Flex Noun
2663 status collapsed
2664
2665 \begin_layout Plain Layout
2666 Extra
2667 \begin_inset space ~
2668 \end_inset
2669
2670 Flag
2671 \end_layout
2672
2673 \end_inset
2674
2675  field you can enter the following flags, separated by commas:
2676 \end_layout
2677
2678 \begin_layout Labeling
2679 \labelwidthstring 00.00.0000
2680 \begin_inset Flex Code
2681 status collapsed
2682
2683 \begin_layout Plain Layout
2684 latex
2685 \change_inserted -712698321 1524656940
2686 =flavor
2687 \change_unchanged
2688
2689 \end_layout
2690
2691 \end_inset
2692
2693  This converter runs some form of \SpecialChar LaTeX
2694 .
2695  This will make \SpecialChar LyX
2696 's \SpecialChar LaTeX
2697  error logs available.
2698
2699 \change_inserted -712698321 1524657018
2700  The optional 
2701 \begin_inset Flex Code
2702 status open
2703
2704 \begin_layout Plain Layout
2705
2706 \change_inserted -712698321 1524657012
2707 flavor
2708 \change_unchanged
2709
2710 \end_layout
2711
2712 \end_inset
2713
2714  value specifies the form of \SpecialChar LaTeX
2715  that is run (
2716 \begin_inset Flex Code
2717 status open
2718
2719 \begin_layout Plain Layout
2720
2721 \change_inserted -712698321 1524657005
2722 latex, pdflatex, platex, xetex, luatex
2723 \change_unchanged
2724
2725 \end_layout
2726
2727 \end_inset
2728
2729 ).
2730  If no value is specified, 
2731 \begin_inset Flex Code
2732 status open
2733
2734 \begin_layout Plain Layout
2735
2736 \change_inserted -712698321 1524657018
2737 latex
2738 \change_unchanged
2739
2740 \end_layout
2741
2742 \end_inset
2743
2744  is used.
2745 \change_unchanged
2746
2747 \end_layout
2748
2749 \begin_layout Labeling
2750 \labelwidthstring 00.00.0000
2751 \begin_inset Flex Code
2752 status collapsed
2753
2754 \begin_layout Plain Layout
2755 needaux
2756 \change_inserted -712698321 1524656935
2757 =flavor
2758 \change_unchanged
2759
2760 \end_layout
2761
2762 \end_inset
2763
2764  Needs the \SpecialChar LaTeX
2765  
2766 \begin_inset Flex Noun
2767 status collapsed
2768
2769 \begin_layout Plain Layout
2770 .aux
2771 \end_layout
2772
2773 \end_inset
2774
2775  file for the conversion.
2776
2777 \change_inserted -712698321 1524657047
2778  The optional 
2779 \begin_inset Flex Code
2780 status open
2781
2782 \begin_layout Plain Layout
2783
2784 \change_inserted -712698321 1524657030
2785 flavor
2786 \change_unchanged
2787
2788 \end_layout
2789
2790 \end_inset
2791
2792  value specifies the form of \SpecialChar LaTeX
2793  that is run in order to generate the 
2794 \begin_inset Flex Noun
2795 status collapsed
2796
2797 \begin_layout Plain Layout
2798
2799 \change_inserted -712698321 1524657047
2800 .aux
2801 \change_unchanged
2802
2803 \end_layout
2804
2805 \end_inset
2806
2807  file (
2808 \begin_inset Flex Code
2809 status open
2810
2811 \begin_layout Plain Layout
2812
2813 \change_inserted -712698321 1524657030
2814 latex, pdflatex, platex, xetex, luatex
2815 \change_unchanged
2816
2817 \end_layout
2818
2819 \end_inset
2820
2821 ).
2822  If no value is specified, 
2823 \begin_inset Flex Code
2824 status open
2825
2826 \begin_layout Plain Layout
2827
2828 \change_inserted -712698321 1524657030
2829 latex
2830 \change_unchanged
2831
2832 \end_layout
2833
2834 \end_inset
2835
2836  is used.
2837 \change_unchanged
2838
2839 \end_layout
2840
2841 \begin_layout Labeling
2842 \labelwidthstring 00.00.0000
2843 \begin_inset Flex Code
2844 status collapsed
2845
2846 \begin_layout Plain Layout
2847 nice
2848 \end_layout
2849
2850 \end_inset
2851
2852  Needs a 
2853 \begin_inset Quotes eld
2854 \end_inset
2855
2856 nice
2857 \begin_inset Quotes erd
2858 \end_inset
2859
2860  file from the backend, which in practice means a \SpecialChar LaTeX
2861  file like the one we
2862  would export, without 
2863 \begin_inset Flex Code
2864 status collapsed
2865
2866 \begin_layout Plain Layout
2867 input@path
2868 \end_layout
2869
2870 \end_inset
2871
2872 .
2873 \end_layout
2874
2875 \begin_layout Labeling
2876 \labelwidthstring 00.00.0000
2877 \begin_inset Flex Code
2878 status collapsed
2879
2880 \begin_layout Plain Layout
2881 xml
2882 \end_layout
2883
2884 \end_inset
2885
2886  Output is XML.
2887 \end_layout
2888
2889 \begin_layout Standard
2890 The following three flags are not really flags at all because they take
2891  an argument in the 
2892 \begin_inset Flex Noun
2893 status collapsed
2894
2895 \begin_layout Plain Layout
2896 key
2897 \begin_inset space ~
2898 \end_inset
2899
2900 =
2901 \begin_inset space ~
2902 \end_inset
2903
2904 value
2905 \end_layout
2906
2907 \end_inset
2908
2909  format:
2910 \end_layout
2911
2912 \begin_layout Labeling
2913 \labelwidthstring 00.00.0000
2914
2915 \change_inserted -712698321 1523206314
2916 \begin_inset Flex Code
2917 status collapsed
2918
2919 \begin_layout Plain Layout
2920
2921 \change_inserted -712698321 1523206193
2922 hyperref-driver
2923 \change_unchanged
2924
2925 \end_layout
2926
2927 \end_inset
2928
2929  The name of the driver that needs to be loaded with the 
2930 \family sans
2931 hyperref
2932 \family default
2933  package for this converter.
2934  The loading of the correct driver is necessary to get some PDF-specific
2935  features.
2936  See the 
2937 \family sans
2938 hyperref
2939 \family default
2940  manual for details.
2941 \end_layout
2942
2943 \begin_layout Labeling
2944 \labelwidthstring 00.00.0000
2945 \begin_inset Flex Code
2946 status collapsed
2947
2948 \begin_layout Plain Layout
2949 parselog
2950 \end_layout
2951
2952 \end_inset
2953
2954  If set, the converter's standard error will be redirected to a file 
2955 \begin_inset Flex Code
2956 status collapsed
2957
2958 \begin_layout Plain Layout
2959 infile.out
2960 \end_layout
2961
2962 \end_inset
2963
2964 , and the script given as argument will be run as: 
2965 \begin_inset Flex Code
2966 status collapsed
2967
2968 \begin_layout Plain Layout
2969 script < infile.out > infile.log
2970 \end_layout
2971
2972 \end_inset
2973
2974 .
2975  The argument may contain 
2976 \begin_inset Flex Code
2977 status collapsed
2978
2979 \begin_layout Plain Layout
2980 $$s
2981 \end_layout
2982
2983 \end_inset
2984
2985 .
2986 \end_layout
2987
2988 \begin_layout Labeling
2989 \labelwidthstring 00.00.0000
2990 \begin_inset Flex Code
2991 status collapsed
2992
2993 \begin_layout Plain Layout
2994 resultdir
2995 \end_layout
2996
2997 \end_inset
2998
2999  The name of the directory in which the converter will dump the generated
3000  files.
3001  \SpecialChar LyX
3002  will not create this directory, and it does not copy anything into it,
3003  though it will copy this directory to the destination.
3004  The argument may contain 
3005 \begin_inset Flex Code
3006 status collapsed
3007
3008 \begin_layout Plain Layout
3009 $$b
3010 \end_layout
3011
3012 \end_inset
3013
3014 , which will be replaced by the base name of the input and output files,
3015  respectively, when the directory is copied.
3016 \begin_inset Newline newline
3017 \end_inset
3018
3019 Note that resultdir and usetempdir make no sense together.
3020  The latter will be ignored if the former is given.
3021 \end_layout
3022
3023 \begin_layout Labeling
3024 \labelwidthstring 00.00.0000
3025 \begin_inset Flex Code
3026 status collapsed
3027
3028 \begin_layout Plain Layout
3029 resultfile
3030 \end_layout
3031
3032 \end_inset
3033
3034  Determines the output file name and may, contain 
3035 \begin_inset Flex Code
3036 status collapsed
3037
3038 \begin_layout Plain Layout
3039 $$b
3040 \end_layout
3041
3042 \end_inset
3043
3044 .
3045  Sensible only with resultdir and optional even then; if not given, it defaults
3046  to `index'.
3047 \end_layout
3048
3049 \begin_layout Standard
3050
3051 \change_inserted -712698321 1523206384
3052 A suitable hyperref-driver is set for some converters that are installed
3053  with \SpecialChar LyX
3054 .
3055  
3056 \change_deleted -712698321 1523206388
3057 None of these
3058 \change_inserted -712698321 1523206389
3059 The
3060 \change_unchanged
3061  last three
3062 \change_inserted -712698321 1523206400
3063  flags, however,
3064 \change_unchanged
3065  are presently 
3066 \change_inserted -712698321 1523206407
3067 not 
3068 \change_unchanged
3069 used in any of the 
3070 \change_inserted -712698321 1523206437
3071 pre-installed 
3072 \change_unchanged
3073 converters
3074 \change_deleted -712698321 1523206442
3075  that are installed with \SpecialChar LyX
3076
3077 \change_unchanged
3078 .
3079  
3080 \end_layout
3081
3082 \begin_layout Standard
3083 You do not have to define converters for all formats between which you want
3084  to convert.
3085  For example, you will note that there is no `\SpecialChar LyX
3086  to PostScript' converter,
3087  but \SpecialChar LyX
3088  will export PostScript.
3089  It does so by first creating a \SpecialChar LaTeX
3090  file (no converter needs to be defined
3091  for this) which is then converted to DVI using the `\SpecialChar LaTeX
3092  to DVI' converter,
3093  and finally converting the resulting DVI file to PostScript.
3094  \SpecialChar LyX
3095  finds such `chains' of converters automatically, and it will always choose
3096  the shortest possible chain.
3097  You can, though, still define multiple conversion methods between file
3098  formats.
3099  For example, the standard \SpecialChar LyX
3100  configuration provides five ways to convert
3101  \SpecialChar LaTeX
3102  to PDF:
3103 \end_layout
3104
3105 \begin_layout Enumerate
3106 Directly, using 
3107 \begin_inset Flex Noun
3108 status collapsed
3109
3110 \begin_layout Plain Layout
3111 pdflatex
3112 \end_layout
3113
3114 \end_inset
3115
3116
3117 \end_layout
3118
3119 \begin_layout Enumerate
3120 via (DVI and) PostScript, using 
3121 \begin_inset Flex Noun
3122 status collapsed
3123
3124 \begin_layout Plain Layout
3125 ps2pdf
3126 \end_layout
3127
3128 \end_inset
3129
3130
3131 \end_layout
3132
3133 \begin_layout Enumerate
3134 via DVI, using 
3135 \begin_inset Flex Noun
3136 status collapsed
3137
3138 \begin_layout Plain Layout
3139 dvipdfm
3140 \end_layout
3141
3142 \end_inset
3143
3144
3145 \end_layout
3146
3147 \begin_layout Enumerate
3148 directly using 
3149 \begin_inset Flex Noun
3150 status collapsed
3151
3152 \begin_layout Plain Layout
3153 Xe\SpecialChar TeX
3154
3155 \end_layout
3156
3157 \end_inset
3158
3159
3160 \end_layout
3161
3162 \begin_layout Enumerate
3163 directly using 
3164 \begin_inset Flex Noun
3165 status collapsed
3166
3167 \begin_layout Plain Layout
3168 Lua\SpecialChar TeX
3169
3170 \end_layout
3171
3172 \end_inset
3173
3174
3175 \end_layout
3176
3177 \begin_layout Standard
3178 To define such alternate chains, you must define multiple target `file formats',
3179  as described in 
3180 \begin_inset CommandInset ref
3181 LatexCommand ref
3182 reference "sec:Formats"
3183
3184 \end_inset
3185
3186 .
3187  For example, in the standard configuration, the formats named 
3188 \begin_inset Flex Noun
3189 status collapsed
3190
3191 \begin_layout Plain Layout
3192 pdf
3193 \end_layout
3194
3195 \end_inset
3196
3197  (for 
3198 \begin_inset Flex Noun
3199 status collapsed
3200
3201 \begin_layout Plain Layout
3202 ps2pdf
3203 \end_layout
3204
3205 \end_inset
3206
3207 ), 
3208 \begin_inset Flex Noun
3209 status collapsed
3210
3211 \begin_layout Plain Layout
3212 pdf2
3213 \end_layout
3214
3215 \end_inset
3216
3217  (for 
3218 \begin_inset Flex Noun
3219 status collapsed
3220
3221 \begin_layout Plain Layout
3222 pdflatex
3223 \end_layout
3224
3225 \end_inset
3226
3227 ), 
3228 \begin_inset Flex Noun
3229 status collapsed
3230
3231 \begin_layout Plain Layout
3232 pdf3
3233 \end_layout
3234
3235 \end_inset
3236
3237  (for 
3238 \begin_inset Flex Noun
3239 status collapsed
3240
3241 \begin_layout Plain Layout
3242 dvipdfm
3243 \end_layout
3244
3245 \end_inset
3246
3247 ), 
3248 \begin_inset Flex Noun
3249 status collapsed
3250
3251 \begin_layout Plain Layout
3252 pdf4
3253 \end_layout
3254
3255 \end_inset
3256
3257  (for 
3258 \begin_inset Flex Noun
3259 status collapsed
3260
3261 \begin_layout Plain Layout
3262 Xe\SpecialChar TeX
3263
3264 \end_layout
3265
3266 \end_inset
3267
3268 ), and 
3269 \begin_inset Flex Noun
3270 status collapsed
3271
3272 \begin_layout Plain Layout
3273 pdf5
3274 \end_layout
3275
3276 \end_inset
3277
3278  (for 
3279 \begin_inset Flex Noun
3280 status collapsed
3281
3282 \begin_layout Plain Layout
3283 Lua\SpecialChar TeX
3284
3285 \end_layout
3286
3287 \end_inset
3288
3289 ) are defined, all of which share the extension 
3290 \begin_inset Flex Noun
3291 status collapsed
3292
3293 \begin_layout Plain Layout
3294 .pdf
3295 \end_layout
3296
3297 \end_inset
3298
3299 , and which correspond to the conversion methods just mentioned.
3300 \end_layout
3301
3302 \begin_layout Chapter
3303 Internationalizing \SpecialChar LyX
3304
3305 \begin_inset CommandInset label
3306 LatexCommand label
3307 name "cha:Internationalizing-LyX"
3308
3309 \end_inset
3310
3311
3312 \end_layout
3313
3314 \begin_layout Standard
3315 \SpecialChar LyX
3316  supports using a translated interface.
3317  Last time we checked, \SpecialChar LyX
3318  provided text in thirty languages.
3319  The language of choice is called your 
3320 \emph on
3321 locale
3322 \emph default
3323 .
3324  (For further reading on locale settings, see also the documentation for
3325  locale that comes with your operating system.
3326  For Linux, the manual page for 
3327 \begin_inset Flex Code
3328 status collapsed
3329
3330 \begin_layout Plain Layout
3331 locale(5)
3332 \end_layout
3333
3334 \end_inset
3335
3336  could be a good place to start).
3337 \end_layout
3338
3339 \begin_layout Standard
3340 Notice that these translations will work, but do contain a few flaws.
3341  In particular, all dialogs have been designed with the English text in
3342  mind, which means that some of the translated text will be too large to
3343  fit within the space allocated.
3344  This is only a display problem and will not cause any harm.
3345  Also, you will find that some of the translations do not define shortcut
3346  keys for everything.
3347  Sometimes, there are simply not enough free letters to do it.
3348  Other times, the translator just hasn't got around to doing it yet.
3349  Our localization team, which you may wish to join,
3350 \begin_inset Foot
3351 status collapsed
3352
3353 \begin_layout Plain Layout
3354 If you are a fluent speaker of a language other than English, joining these
3355  teams is a great way to give back to the \SpecialChar LyX
3356  community!
3357 \end_layout
3358
3359 \end_inset
3360
3361  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3362 .
3363 \end_layout
3364
3365 \begin_layout Section
3366 Translating \SpecialChar LyX
3367
3368 \end_layout
3369
3370 \begin_layout Subsection
3371 Translating the graphical user interface (text messages).
3372 \end_layout
3373
3374 \begin_layout Standard
3375 \SpecialChar LyX
3376  uses the GNU 
3377 \begin_inset Flex Code
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 gettext
3382 \end_layout
3383
3384 \end_inset
3385
3386  library to handle the internationalization of the interface.
3387  To have \SpecialChar LyX
3388  speak your favorite language in all menus and dialogs, you need
3389  a 
3390 \begin_inset Flex Code
3391 status collapsed
3392
3393 \begin_layout Plain Layout
3394 po
3395 \end_layout
3396
3397 \end_inset
3398
3399 -file for that language.
3400  When this is available, you'll have to generate a 
3401 \begin_inset Flex Code
3402 status collapsed
3403
3404 \begin_layout Plain Layout
3405 mo
3406 \end_layout
3407
3408 \end_inset
3409
3410 -file from it and install the 
3411 \begin_inset Flex Code
3412 status collapsed
3413
3414 \begin_layout Plain Layout
3415 mo
3416 \end_layout
3417
3418 \end_inset
3419
3420 -file.
3421  The process of doing all of this is explained in the documentation for
3422  GNU 
3423 \begin_inset Flex Code
3424 status collapsed
3425
3426 \begin_layout Plain Layout
3427 gettext
3428 \end_layout
3429
3430 \end_inset
3431
3432 .
3433  It is possible to do this just for yourself, but if you're going to do
3434  it, you might as well share the results of your labors with the rest of
3435  the \SpecialChar LyX
3436  community.
3437  Send a message to the \SpecialChar LyX
3438  developers' list for more information about how
3439  to proceed.
3440 \end_layout
3441
3442 \begin_layout Standard
3443 In short, this is what you should do (xx denotes the language code):
3444 \end_layout
3445
3446 \begin_layout Itemize
3447 Check out the \SpecialChar LyX
3448  source code.
3449  (See the 
3450 \begin_inset CommandInset href
3451 LatexCommand href
3452 name "information on the web"
3453 target "https://www.lyx.org/HowToUseGIT"
3454 literal "false"
3455
3456 \end_inset
3457
3458 .)
3459 \end_layout
3460
3461 \begin_layout Itemize
3462 Copy the file 
3463 \begin_inset Flex Code
3464 status collapsed
3465
3466 \begin_layout Plain Layout
3467 lyx.pot
3468 \end_layout
3469
3470 \end_inset
3471
3472  to the folder of the 
3473 \begin_inset Flex Code
3474 status collapsed
3475
3476 \begin_layout Plain Layout
3477 **.po
3478 \end_layout
3479
3480 \end_inset
3481
3482  files.
3483  Then rename it to 
3484 \begin_inset Flex Code
3485 status collapsed
3486
3487 \begin_layout Plain Layout
3488 xx.po
3489 \end_layout
3490
3491 \end_inset
3492
3493 .
3494  (If 
3495 \begin_inset Flex Code
3496 status collapsed
3497
3498 \begin_layout Plain Layout
3499 lyx.pot
3500 \end_layout
3501
3502 \end_inset
3503
3504  doesn't exist anywhere, it can be remade with the console command 
3505 \begin_inset Flex Code
3506 status collapsed
3507
3508 \begin_layout Plain Layout
3509 make lyx.pot
3510 \end_layout
3511
3512 \end_inset
3513
3514  in that directory, or you can use an existing po-file for some other language
3515  as a template).
3516 \end_layout
3517
3518 \begin_layout Itemize
3519 Edit 
3520 \begin_inset Flex Code
3521 status collapsed
3522
3523 \begin_layout Plain Layout
3524 xx.po
3525 \end_layout
3526
3527 \end_inset
3528
3529 .
3530 \begin_inset Foot
3531 status collapsed
3532
3533 \begin_layout Plain Layout
3534 This is just a text file, so it can be edited in any text editor.
3535  But there are also specialized programs that support such editing, such
3536  as 
3537 \family typewriter
3538 Poedit
3539 \family default
3540  (for all platforms) or 
3541 \family typewriter
3542 KBabel
3543 \family default
3544  (for KDE).
3545  
3546 \family typewriter
3547 Emacs
3548 \family default
3549  contains a `mode' for editing 
3550 \begin_inset Flex Code
3551 status collapsed
3552
3553 \begin_layout Plain Layout
3554 po
3555 \end_layout
3556
3557 \end_inset
3558
3559  files, as well, see 
3560 \begin_inset Flex URL
3561 status open
3562
3563 \begin_layout Plain Layout
3564
3565 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3566 \end_layout
3567
3568 \end_inset
3569
3570 .
3571 \end_layout
3572
3573 \end_inset
3574
3575  For some menu- and widget-labels, there are also shortcut keys that should
3576  be translated.
3577  Those keys are marked after a `|', and should be translated according to
3578  the words and phrases of the language.
3579  You should also fill also out the information at the beginning of the new
3580  
3581 \begin_inset Flex Code
3582 status collapsed
3583
3584 \begin_layout Plain Layout
3585 po
3586 \end_layout
3587
3588 \end_inset
3589
3590 -file with your email-address, etc., so people know where to reach you with
3591  suggestions and entertaining flames.
3592 \end_layout
3593
3594 \begin_layout Standard
3595 If you are just doing this on your own, then:
3596 \end_layout
3597
3598 \begin_layout Itemize
3599 Generate 
3600 \begin_inset Flex Code
3601 status collapsed
3602
3603 \begin_layout Plain Layout
3604 xx.mo
3605 \end_layout
3606
3607 \end_inset
3608
3609 .
3610  This can be done with 
3611 \begin_inset Flex Code
3612 status collapsed
3613
3614 \begin_layout Plain Layout
3615 msgfmt -o xx.mo < xx.po
3616 \end_layout
3617
3618 \end_inset
3619
3620 .
3621 \end_layout
3622
3623 \begin_layout Itemize
3624 Copy the 
3625 \begin_inset Flex Code
3626 status collapsed
3627
3628 \begin_layout Plain Layout
3629 mo
3630 \end_layout
3631
3632 \end_inset
3633
3634 -file to your locale-tree, at the correct directory for application messages
3635  for the language
3636 \series bold
3637  
3638 \series default
3639 xx, and under the name 
3640 \begin_inset Flex Code
3641 status collapsed
3642
3643 \begin_layout Plain Layout
3644 lyx.mo
3645 \end_layout
3646
3647 \end_inset
3648
3649  (e.
3650 \begin_inset space \thinspace{}
3651 \end_inset
3652
3653 g.
3654 \begin_inset space \space{}
3655 \end_inset
3656
3657
3658 \begin_inset Flex Code
3659 status collapsed
3660
3661 \begin_layout Plain Layout
3662 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3663 \end_layout
3664
3665 \end_inset
3666
3667
3668 \series bold
3669 .
3670 \end_layout
3671
3672 \begin_layout Standard
3673 As said, however, it would be best if the new 
3674 \begin_inset Flex Code
3675 status collapsed
3676
3677 \begin_layout Plain Layout
3678 po
3679 \end_layout
3680
3681 \end_inset
3682
3683  file could be added to the \SpecialChar LyX
3684  distribution, so others can use it.
3685  Adding it involves making additional changes to \SpecialChar LyX
3686 .
3687  So send an email to the developers' mailing list if you're interested in
3688  doing that.
3689 \end_layout
3690
3691 \begin_layout Subsubsection
3692 Ambiguous messages
3693 \end_layout
3694
3695 \begin_layout Standard
3696 Sometimes it turns out that one English message needs to be translated into
3697  different messages in the target language.
3698  One example is the message 
3699 \begin_inset Flex Code
3700 status collapsed
3701
3702 \begin_layout Plain Layout
3703 To
3704 \end_layout
3705
3706 \end_inset
3707
3708  which has the German translation 
3709 \lang german
3710 Nach
3711 \lang english
3712  or 
3713 \lang german
3714 Bis
3715 \lang english
3716 , depending upon exactly what the English 
3717 \begin_inset Quotes eld
3718 \end_inset
3719
3720 to
3721 \begin_inset Quotes erd
3722 \end_inset
3723
3724  means.
3725  GNU 
3726 \begin_inset Flex Code
3727 status collapsed
3728
3729 \begin_layout Plain Layout
3730 gettext
3731 \end_layout
3732
3733 \end_inset
3734
3735  does not handle such ambiguous translations.
3736  Therefore you have to add some context information to the message: Instead
3737  of 
3738 \begin_inset Flex Code
3739 status collapsed
3740
3741 \begin_layout Plain Layout
3742 To
3743 \end_layout
3744
3745 \end_inset
3746
3747  it becomes 
3748 \begin_inset Flex Code
3749 status collapsed
3750
3751 \begin_layout Plain Layout
3752 To[[as in 'From format x to format y']]
3753 \end_layout
3754
3755 \end_inset
3756
3757  and 
3758 \begin_inset Flex Code
3759 status collapsed
3760
3761 \begin_layout Plain Layout
3762 To[[as in 'From page x to page y']].
3763 \end_layout
3764
3765 \end_inset
3766
3767  Now the two occurrences of 
3768 \begin_inset Flex Code
3769 status collapsed
3770
3771 \begin_layout Plain Layout
3772 To
3773 \end_layout
3774
3775 \end_inset
3776
3777  are different for 
3778 \begin_inset Flex Code
3779 status collapsed
3780
3781 \begin_layout Plain Layout
3782 gettext
3783 \end_layout
3784
3785 \end_inset
3786
3787  and can be translated correctly to 
3788 \lang german
3789 Nach
3790 \lang english
3791  and 
3792 \lang german
3793 Bis
3794 \lang english
3795 , respectively.
3796 \end_layout
3797
3798 \begin_layout Standard
3799 Of course the context information needs to be stripped off the original
3800  message when no translation is used.
3801  Therefore you have to put it in double square brackets at the end of the
3802  message (see the example above).
3803  The translation mechanism of \SpecialChar LyX
3804  ensures that everything in double square
3805  brackets at the end of messages is removed before displaying the message.
3806 \end_layout
3807
3808 \begin_layout Subsection
3809 Translating the documentation.
3810 \end_layout
3811
3812 \begin_layout Standard
3813 The online documentation (in the 
3814 \begin_inset Flex Noun
3815 status collapsed
3816
3817 \begin_layout Plain Layout
3818 Help
3819 \end_layout
3820
3821 \end_inset
3822
3823 -menu) can (and should!) be translated.
3824  If there are translated versions of the documentation available
3825 \begin_inset Foot
3826 status collapsed
3827
3828 \begin_layout Plain Layout
3829 As of March 2008, at least some of the documents have been translated into
3830  fourteen languages, with the Tutorial available in a few more.
3831 \end_layout
3832
3833 \end_inset
3834
3835  and the locale is set accordingly, these will be used automagically by
3836  \SpecialChar LyX
3837 .
3838  \SpecialChar LyX
3839  looks for translated versions as 
3840 \begin_inset Flex Code
3841 status collapsed
3842
3843 \begin_layout Plain Layout
3844 LyXDir/doc/xx/DocName.lyx
3845 \end_layout
3846
3847 \end_inset
3848
3849 , where 
3850 \begin_inset Flex Code
3851 status collapsed
3852
3853 \begin_layout Plain Layout
3854 xx
3855 \end_layout
3856
3857 \end_inset
3858
3859  is the code for the language currently in use.
3860  If there are no translated documents, the default English versions will
3861  be displayed.
3862  Note that the translated versions must have the same filenames (
3863 \begin_inset Flex Code
3864 status collapsed
3865
3866 \begin_layout Plain Layout
3867 DocName
3868 \end_layout
3869
3870 \end_inset
3871
3872  above) as the original.
3873  If you feel up to translating the documentation (an excellent way to proof-read
3874  the original documentation by the way!), there are a few things you should
3875  do right away:
3876 \end_layout
3877
3878 \begin_layout Itemize
3879 Check out the documentation translation web page at 
3880 \begin_inset CommandInset href
3881 LatexCommand href
3882 name "https://www.lyx.org/Translation"
3883 target "https://www.lyx.org/Translation"
3884 literal "false"
3885
3886 \end_inset
3887
3888 .
3889  That way, you can find out which (if any) documents have already been translate
3890 d into your language.
3891  You can also find out who (if anyone) is organizing the effort to translate
3892  the documentation into your language.
3893  If no one is organizing the effort, please let us know that you're interested.
3894 \end_layout
3895
3896 \begin_layout Standard
3897 Once you get to actually translating, here's a few hints for you that may
3898  save you trouble:
3899 \end_layout
3900
3901 \begin_layout Itemize
3902 Join the documentation team! There is information on how to do that in 
3903 \begin_inset Flex Code
3904 status collapsed
3905
3906 \begin_layout Plain Layout
3907 Intro.lyx
3908 \end_layout
3909
3910 \end_inset
3911
3912  (
3913 \begin_inset Flex Noun
3914 status collapsed
3915
3916 \begin_layout Plain Layout
3917 Help\SpecialChar menuseparator
3918 Introduction
3919 \end_layout
3920
3921 \end_inset
3922
3923 ), which by the way is the first document you should translate.
3924 \end_layout
3925
3926 \begin_layout Itemize
3927 Learn the typographic conventions for the language you are translating to.
3928  Typography is an ancient art and over the centuries, a great variety of
3929  conventions have developed throughout different parts of the world.
3930  Also study the professional terminology amongst typographers in your country.
3931  Inventing your own terminology will only confuse the users.
3932  
3933 \emph on
3934 (Warning! Typography is addictive!)
3935 \end_layout
3936
3937 \begin_layout Itemize
3938 Make a copy of the document.
3939  This will be your working copy.
3940  You can use this as your personal translated help-file by placing it in
3941  your 
3942 \begin_inset Flex Code
3943 status collapsed
3944
3945 \begin_layout Plain Layout
3946 UserDir/doc/xx/
3947 \end_layout
3948
3949 \end_inset
3950
3951  directory.
3952 \begin_inset Note Greyedout
3953 status open
3954
3955 \begin_layout Plain Layout
3956
3957 \series bold
3958 Note:
3959 \series default
3960  For a complex document with external material (images, etc.), if you make
3961  a copy e.
3962 \begin_inset space \thinspace{}
3963 \end_inset
3964
3965 g.
3966 \begin_inset space \space{}
3967 \end_inset
3968
3969 in a temp dir, beware that the links to external material may be broken
3970  when the document is moved to a different place.
3971  The best way is to retrieve the \SpecialChar LyX
3972  tree from git (see 
3973 \begin_inset Flex URL
3974 status collapsed
3975
3976 \begin_layout Plain Layout
3977
3978 https://www.lyx.org/HowToUseGIT
3979 \end_layout
3980
3981 \end_inset
3982
3983 ) and to edit the doc file in place.
3984 \end_layout
3985
3986 \end_inset
3987
3988
3989 \end_layout
3990
3991 \begin_layout Itemize
3992 Sometimes the original document (from the \SpecialChar LyX
3993  team) will be updated.
3994  Use the source viewer at 
3995 \begin_inset CommandInset href
3996 LatexCommand href
3997 name "https://www.lyx.org/trac/timeline"
3998 target "https://www.lyx.org/trac/timeline"
3999 literal "false"
4000
4001 \end_inset
4002
4003  to see what has been changed.
4004  That way you can easily see which parts of the translated document need
4005  to be updated.
4006 \end_layout
4007
4008 \begin_layout Standard
4009 If you ever find an error in the original document, fix it and notify the
4010  rest of the documentation team of the changes! (You didn't forget to join
4011  the documentation team, did you?)
4012 \end_layout
4013
4014 \begin_layout Standard
4015 \begin_inset Branch OutDated
4016 inverted 0
4017 status collapsed
4018
4019 \begin_layout Section
4020 International Keyboard Support
4021 \end_layout
4022
4023 \begin_layout Standard
4024
4025 \emph on
4026 [Editor's Note: The following section is by
4027 \emph default
4028  
4029 \shape smallcaps
4030 \emph on
4031 Ivan Schreter
4032 \shape default
4033 .
4034  It needs to be fixed to conform to the new Documentation Style sheet and
4035  to make use of the new v1.0 features.
4036  The whole thing also needs to be merged with the section following it.-jw
4037  It may also be badly out of date.-rh (2008)]
4038 \end_layout
4039
4040 \begin_layout Subsection
4041 Defining Own Keymaps: Keymap File Format
4042 \end_layout
4043
4044 \begin_layout Standard
4045 Let's look at a keyboard definition file a little closer.
4046  It is a plain text file defining
4047 \end_layout
4048
4049 \begin_layout Itemize
4050 key-to-key or key-to-string translations
4051 \end_layout
4052
4053 \begin_layout Itemize
4054 dead keys
4055 \end_layout
4056
4057 \begin_layout Itemize
4058 dead keys exceptions
4059 \end_layout
4060
4061 \begin_layout Standard
4062 To define key-to-key or key-to-string translation, use this command:
4063 \end_layout
4064
4065 \begin_layout Quotation
4066 \begin_inset Flex Code
4067 status collapsed
4068
4069 \begin_layout Plain Layout
4070
4071 \backslash
4072 kmap
4073 \end_layout
4074
4075 \end_inset
4076
4077  
4078 \begin_inset Flex Code
4079 status collapsed
4080
4081 \begin_layout Plain Layout
4082 key
4083 \end_layout
4084
4085 \end_inset
4086
4087  outstring 
4088 \end_layout
4089
4090 \begin_layout Standard
4091 where 
4092 \begin_inset Flex Code
4093 status collapsed
4094
4095 \begin_layout Plain Layout
4096 key
4097 \end_layout
4098
4099 \end_inset
4100
4101  is the key to be translated and 
4102 \begin_inset Flex Code
4103 status collapsed
4104
4105 \begin_layout Plain Layout
4106 outstring
4107 \end_layout
4108
4109 \end_inset
4110
4111  is the string to be inserted into the document.
4112  To define dead keys, use:
4113 \end_layout
4114
4115 \begin_layout Quotation
4116 \begin_inset Flex Code
4117 status collapsed
4118
4119 \begin_layout Plain Layout
4120
4121 \backslash
4122 kmod
4123 \end_layout
4124
4125 \end_inset
4126
4127  
4128 \begin_inset Flex Code
4129 status collapsed
4130
4131 \begin_layout Plain Layout
4132 key
4133 \end_layout
4134
4135 \end_inset
4136
4137  deadkey
4138 \end_layout
4139
4140 \begin_layout Standard
4141 where 
4142 \begin_inset Flex Code
4143 status collapsed
4144
4145 \begin_layout Plain Layout
4146 key
4147 \end_layout
4148
4149 \end_inset
4150
4151  is a keyboard key and 
4152 \begin_inset Flex Code
4153 status collapsed
4154
4155 \begin_layout Plain Layout
4156 deadkey
4157 \end_layout
4158
4159 \end_inset
4160
4161  is dead key name.
4162  The following dead keys are supported (shortcut name is in parentheses):
4163 \end_layout
4164
4165 \begin_layout Quotation
4166
4167 \emph on
4168 Name
4169 \begin_inset space \hfill{}
4170 \end_inset
4171
4172 Example
4173 \end_layout
4174
4175 \begin_layout Quotation
4176 acute (acu)
4177 \begin_inset space \hfill{}
4178 \end_inset
4179
4180 áéíóú
4181 \end_layout
4182
4183 \begin_layout Quotation
4184 grave (gra)
4185 \begin_inset space \hfill{}
4186 \end_inset
4187
4188 àèìòù
4189 \end_layout
4190
4191 \begin_layout Quotation
4192 macron (mac)
4193 \begin_inset space \hfill{}
4194 \end_inset
4195
4196  ō
4197 \end_layout
4198
4199 \begin_layout Quotation
4200 tilde (til)
4201 \begin_inset space \hfill{}
4202 \end_inset
4203
4204 ñÑ
4205 \end_layout
4206
4207 \begin_layout Quotation
4208 underbar (underb)
4209 \begin_inset space \hfill{}
4210 \end_inset
4211
4212
4213 \begin_inset ERT
4214 status open
4215
4216 \begin_layout Plain Layout
4217
4218
4219 \backslash
4220 b o
4221 \end_layout
4222
4223 \end_inset
4224
4225
4226 \end_layout
4227
4228 \begin_layout Quotation
4229 cedilla (ced)
4230 \begin_inset space \hfill{}
4231 \end_inset
4232
4233 çÇ
4234 \end_layout
4235
4236 \begin_layout Quotation
4237 underdot (underd)
4238 \begin_inset space \hfill{}
4239 \end_inset
4240
4241
4242 \begin_inset ERT
4243 status open
4244
4245 \begin_layout Plain Layout
4246
4247
4248 \backslash
4249 d o
4250 \end_layout
4251
4252 \end_inset
4253
4254
4255 \end_layout
4256
4257 \begin_layout Quotation
4258 circumflex (circu)
4259 \begin_inset space \hfill{}
4260 \end_inset
4261
4262 âêîôû
4263 \end_layout
4264
4265 \begin_layout Quotation
4266 circle (circl)
4267 \begin_inset space \hfill{}
4268 \end_inset
4269
4270 ÅůŮ
4271 \end_layout
4272
4273 \begin_layout Quotation
4274 tie (tie)
4275 \begin_inset space \hfill{}
4276 \end_inset
4277
4278
4279 \begin_inset ERT
4280 status open
4281
4282 \begin_layout Plain Layout
4283
4284
4285 \backslash
4286 t o
4287 \end_layout
4288
4289 \end_inset
4290
4291
4292 \end_layout
4293
4294 \begin_layout Quotation
4295 breve (bre)
4296 \begin_inset space \hfill{}
4297 \end_inset
4298
4299 ă
4300 \begin_inset ERT
4301 status open
4302
4303 \begin_layout Plain Layout
4304
4305
4306 \backslash
4307 u o
4308 \end_layout
4309
4310 \end_inset
4311
4312
4313 \end_layout
4314
4315 \begin_layout Quotation
4316 caron (car)
4317 \begin_inset space \hfill{}
4318 \end_inset
4319
4320 čšž
4321 \end_layout
4322
4323 \begin_layout Quotation
4324 hungarian umlaut (hug)
4325 \begin_inset space \hfill{}
4326 \end_inset
4327
4328 őű
4329 \end_layout
4330
4331 \begin_layout Quotation
4332 umlaut (uml)
4333 \begin_inset space \hfill{}
4334 \end_inset
4335
4336 äöü
4337 \end_layout
4338
4339 \begin_layout Quotation
4340 dot (dot)
4341 \begin_inset space \hfill{}
4342 \end_inset
4343
4344 ż
4345 \begin_inset ERT
4346 status open
4347
4348 \begin_layout Plain Layout
4349
4350
4351 \backslash
4352 .s
4353 \end_layout
4354
4355 \end_inset
4356
4357
4358 \end_layout
4359
4360 \begin_layout Standard
4361 Since in many international keyboards there are exceptions to what some
4362  dead keys should do, you can define them using
4363 \end_layout
4364
4365 \begin_layout Quotation
4366 \begin_inset Flex Code
4367 status collapsed
4368
4369 \begin_layout Plain Layout
4370
4371 \backslash
4372 kxmod
4373 \end_layout
4374
4375 \end_inset
4376
4377  deadkey key outstring
4378 \end_layout
4379
4380 \begin_layout Standard
4381 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4382 , so you put in
4383 \end_layout
4384
4385 \begin_layout Quotation
4386 \begin_inset Flex Code
4387 status collapsed
4388
4389 \begin_layout Plain Layout
4390
4391 \backslash
4392 kxmod
4393 \end_layout
4394
4395 \end_inset
4396
4397  caron o "
4398 \backslash
4399 ^o"
4400 \end_layout
4401
4402 \begin_layout Standard
4403 to make it work correctly.
4404  Also, you have to define as exceptions dead keys over i and j, to remove
4405  the dot from them before inserting an accent mark.
4406  I will change this when the time comes, but so far I haven't had time.
4407 \end_layout
4408
4409 \begin_layout Standard
4410 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4411  double backslash.
4412  Also, quotes and 
4413 \begin_inset Flex Code
4414 status collapsed
4415
4416 \begin_layout Plain Layout
4417 #
4418 \end_layout
4419
4420 \end_inset
4421
4422  have different meaning.
4423  
4424 \begin_inset Flex Code
4425 status collapsed
4426
4427 \begin_layout Plain Layout
4428 #
4429 \end_layout
4430
4431 \end_inset
4432
4433  marks comments, quotes start and end \SpecialChar LaTeX
4434 -style commands.
4435  To enter quote, you'll need to use 
4436 \begin_inset Flex Code
4437 status collapsed
4438
4439 \begin_layout Plain Layout
4440
4441 \backslash
4442 "
4443 \end_layout
4444
4445 \end_inset
4446
4447 , to enter 
4448 \begin_inset Flex Code
4449 status collapsed
4450
4451 \begin_layout Plain Layout
4452 #
4453 \end_layout
4454
4455 \end_inset
4456
4457 , use 
4458 \begin_inset Flex Code
4459 status collapsed
4460
4461 \begin_layout Plain Layout
4462
4463 \backslash
4464 #
4465 \end_layout
4466
4467 \end_inset
4468
4469 .
4470 \end_layout
4471
4472 \begin_layout Standard
4473 If you make a keyboard description file that works for your language, please
4474  mail it to me, so I can include it in the next keymap distribution.
4475 \end_layout
4476
4477 \begin_layout Standard
4478 More keywords will be supported in keymap configuration file in future,
4479  like
4480 \end_layout
4481
4482 \begin_layout Itemize
4483 \begin_inset Flex Code
4484 status collapsed
4485
4486 \begin_layout Plain Layout
4487
4488 \backslash
4489 kinclude filename
4490 \end_layout
4491
4492 \end_inset
4493
4494
4495 \emph on
4496
4497 \begin_inset space \hfill{}
4498 \end_inset
4499
4500
4501 \begin_inset Flex Code
4502 status collapsed
4503
4504 \begin_layout Plain Layout
4505 include
4506 \end_layout
4507
4508 \end_inset
4509
4510  another file
4511 \end_layout
4512
4513 \begin_layout Itemize
4514 \begin_inset Flex Code
4515 status collapsed
4516
4517 \begin_layout Plain Layout
4518
4519 \backslash
4520 kprog program
4521 \end_layout
4522
4523 \end_inset
4524
4525
4526 \emph on
4527
4528 \begin_inset space \hfill{}
4529 \end_inset
4530
4531
4532 \begin_inset Flex Code
4533 status collapsed
4534
4535 \begin_layout Plain Layout
4536 define
4537 \end_layout
4538
4539 \end_inset
4540
4541  an external keymap translation program 
4542 \end_layout
4543
4544 \begin_layout Standard
4545 Also, it should look into 
4546 \begin_inset Flex Code
4547 status collapsed
4548
4549 \begin_layout Plain Layout
4550 lyxrc
4551 \end_layout
4552
4553 \end_inset
4554
4555  file for defaults, too (for example, a 
4556 \begin_inset Flex Code
4557 status collapsed
4558
4559 \begin_layout Plain Layout
4560
4561 \backslash
4562 kinclude
4563 \end_layout
4564
4565 \end_inset
4566
4567  option to include default keyboard).
4568 \end_layout
4569
4570 \end_inset
4571
4572
4573 \end_layout
4574
4575 \begin_layout Section
4576 International Keymap Stuff
4577 \begin_inset CommandInset label
4578 LatexCommand label
4579 name "sec:International-Keymap-Stuff"
4580
4581 \end_inset
4582
4583
4584 \end_layout
4585
4586 \begin_layout Standard
4587 \begin_inset Note Note
4588 status open
4589
4590 \begin_layout Plain Layout
4591 In doing the revisions on this document in March 2008, I did not look over
4592  this stuff, as I do not understand it.
4593  It would be good if someone else could do so.
4594  (RH)
4595 \end_layout
4596
4597 \end_inset
4598
4599
4600 \end_layout
4601
4602 \begin_layout Standard
4603 The next two sections describe the 
4604 \begin_inset Flex Code
4605 status collapsed
4606
4607 \begin_layout Plain Layout
4608
4609 \shape up
4610 .kmap
4611 \end_layout
4612
4613 \end_inset
4614
4615  and 
4616 \begin_inset Flex Code
4617 status collapsed
4618
4619 \begin_layout Plain Layout
4620
4621 \shape up
4622 .cdef
4623 \end_layout
4624
4625 \end_inset
4626
4627  file syntax in detail.
4628  These sections should help you design your own key map if the ones provided
4629  do not meet your needs.
4630 \end_layout
4631
4632 \begin_layout Subsection
4633 The .kmap File
4634 \end_layout
4635
4636 \begin_layout Standard
4637
4638 \shape up
4639 .
4640 \begin_inset Flex Code
4641 status collapsed
4642
4643 \begin_layout Plain Layout
4644 kmap
4645 \end_layout
4646
4647 \end_inset
4648
4649  file maps keystrokes to characters or strings.
4650  As the name suggests, it sets a keyboard mapping.
4651  The 
4652 \begin_inset Flex Code
4653 status collapsed
4654
4655 \begin_layout Plain Layout
4656 .kmap
4657 \end_layout
4658
4659 \end_inset
4660
4661
4662 \shape default
4663  file keywords 
4664 \shape up
4665
4666 \begin_inset Flex Code
4667 status collapsed
4668
4669 \begin_layout Plain Layout
4670
4671 \shape up
4672 kmap
4673 \end_layout
4674
4675 \end_inset
4676
4677
4678 \shape default
4679 ,
4680 \shape up
4681  
4682 \shape default
4683
4684 \begin_inset Flex Code
4685 status collapsed
4686
4687 \begin_layout Plain Layout
4688
4689 \shape up
4690 kmod
4691 \end_layout
4692
4693 \end_inset
4694
4695 ,
4696 \shape up
4697  
4698 \shape default
4699
4700 \begin_inset Flex Code
4701 status collapsed
4702
4703 \begin_layout Plain Layout
4704
4705 \shape up
4706 kxmod
4707 \end_layout
4708
4709 \end_inset
4710
4711 , and 
4712 \begin_inset Flex Code
4713 status collapsed
4714
4715 \begin_layout Plain Layout
4716
4717 \shape up
4718 kcomb
4719 \end_layout
4720
4721 \end_inset
4722
4723  are described in this section.
4724 \end_layout
4725
4726 \begin_layout Labeling
4727 \labelwidthstring 00.00.0000
4728 \begin_inset Flex Code
4729 status collapsed
4730
4731 \begin_layout Plain Layout
4732
4733 \shape up
4734 kmap
4735 \end_layout
4736
4737 \end_inset
4738
4739  Map a character to a string
4740 \end_layout
4741
4742 \begin_layout LyX-Code
4743
4744 \backslash
4745 kmap 
4746 \family roman
4747 \emph on
4748 char
4749 \family default
4750 \emph default
4751  
4752 \family roman
4753 \emph on
4754 string
4755 \end_layout
4756
4757 \begin_layout Standard
4758 This will ma
4759 \family roman
4760 p
4761 \family default
4762  
4763 \family roman
4764 \emph on
4765 char
4766 \family default
4767 \emph default
4768  
4769 \family roman
4770 to
4771 \family default
4772  
4773 \family roman
4774 \emph on
4775 string
4776 \emph default
4777 .
4778  Note that in
4779 \family default
4780  
4781 \family roman
4782 \emph on
4783 string
4784 \emph default
4785 ,
4786 \family default
4787  
4788 \family roman
4789 \shape up
4790 the double-quote (")
4791 \family default
4792 \shape default
4793  
4794 \family roman
4795 and
4796 \family default
4797  
4798 \family roman
4799 \shape up
4800 the backslash (
4801 \backslash
4802 )
4803 \family default
4804 \shape default
4805  
4806 \family roman
4807 must be escaped with a preceding backslash (
4808 \shape up
4809
4810 \backslash
4811
4812 \shape default
4813 )
4814 \family default
4815 .
4816 \end_layout
4817
4818 \begin_layout Standard
4819 An example of a 
4820 \begin_inset Flex Noun
4821 status collapsed
4822
4823 \begin_layout Plain Layout
4824
4825 \shape up
4826 kmap
4827 \end_layout
4828
4829 \end_inset
4830
4831  statement to cause the symbol 
4832 \begin_inset Flex Noun
4833 status collapsed
4834
4835 \begin_layout Plain Layout
4836
4837 \shape up
4838 /
4839 \end_layout
4840
4841 \end_inset
4842
4843  to be output for the keystroke 
4844 \begin_inset Flex Noun
4845 status collapsed
4846
4847 \begin_layout Plain Layout
4848
4849 \shape up
4850 &
4851 \end_layout
4852
4853 \end_inset
4854
4855  is:
4856 \end_layout
4857
4858 \begin_layout LyX-Code
4859
4860 \backslash
4861 kmap & /
4862 \end_layout
4863
4864 \begin_layout Labeling
4865 \labelwidthstring 00.00.0000
4866 \begin_inset Flex Code
4867 status collapsed
4868
4869 \begin_layout Plain Layout
4870
4871 \shape up
4872 kmod
4873 \end_layout
4874
4875 \end_inset
4876
4877  Specify an accent character
4878 \end_layout
4879
4880 \begin_layout LyX-Code
4881
4882 \backslash
4883 kmod 
4884 \family roman
4885 \emph on
4886 char accent allowed
4887 \end_layout
4888
4889 \begin_layout Standard
4890 This will make the cha
4891 \family roman
4892 racter
4893 \family default
4894  
4895 \family roman
4896 \emph on
4897 char
4898 \family default
4899 \emph default
4900  
4901 \family roman
4902 \shape up
4903 \emph on
4904 be an accent
4905 \family default
4906 \shape default
4907 \emph default
4908  
4909 \family roman
4910 \shape up
4911 on the
4912 \family default
4913 \shape default
4914  
4915 \family roman
4916 \shape up
4917 \emph on
4918 allowed
4919 \family default
4920 \shape default
4921 \emph default
4922  
4923 \family roman
4924 \shape up
4925 cha
4926 \family default
4927 racter(s).
4928  This is the dead key
4929 \begin_inset Foot
4930 status collapsed
4931
4932 \begin_layout Plain Layout
4933 The term 
4934 \family roman
4935 \emph on
4936 dead key
4937 \family default
4938 \emph default
4939  refers to a key that does not produce a character by itself, but when followed
4940  with another key, produces the desired accent character.
4941  For example, a German characte
4942 \family roman
4943 r with an umlaut like
4944 \family default
4945  
4946 \family roman
4947 \emph on
4948 ä
4949 \family default
4950 \emph default
4951  
4952 \family roman
4953 can be produced in this manner.
4954 \end_layout
4955
4956 \end_inset
4957
4958  mechanism.
4959  
4960 \end_layout
4961
4962 \begin_layout Standard
4963 If you 
4964 \family roman
4965 hit
4966 \family default
4967  
4968 \family roman
4969 \emph on
4970 char
4971 \family default
4972 \emph default
4973  
4974 \family roman
4975 and then another key not in
4976 \family default
4977  
4978 \family roman
4979 \emph on
4980 allowed
4981 \emph default
4982 , you will get a
4983 \family default
4984  
4985 \family roman
4986 \emph on
4987 char
4988 \family default
4989 \emph default
4990  
4991 \family roman
4992 followed by the other, not allowed key, as output.
4993
4994 \family default
4995  Note that a 
4996 \begin_inset Flex Noun
4997 status collapsed
4998
4999 \begin_layout Plain Layout
5000
5001 \shape up
5002 Backspace
5003 \end_layout
5004
5005 \end_inset
5006
5007  cancels a dead key, so if 
5008 \family roman
5009 you hit
5010 \family default
5011  
5012 \family roman
5013 \emph on
5014 char
5015 \family default
5016 \emph default
5017  
5018 \begin_inset Flex Noun
5019 status collapsed
5020
5021 \begin_layout Plain Layout
5022
5023 \shape up
5024 \emph on
5025 Backspace
5026 \end_layout
5027
5028 \end_inset
5029
5030 , the cursor will not go one position backwards but will instead cancel
5031  the effect t
5032 \family roman
5033 hat
5034 \family default
5035  
5036 \family roman
5037 \shape up
5038 \emph on
5039 char
5040 \family default
5041 \shape default
5042 \emph default
5043  
5044 \family roman
5045 \shape up
5046 might have had on the next keystroke.
5047  
5048 \end_layout
5049
5050 \begin_layout Standard
5051 The following example specifies that the character ' is to be an acute accent,
5052  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
5053 \end_layout
5054
5055 \begin_layout LyX-Code
5056
5057 \backslash
5058 kmod ' acute aeiouAEIOU
5059 \end_layout
5060
5061 \begin_layout Labeling
5062 \labelwidthstring 00.00.0000
5063 \begin_inset Flex Code
5064 status collapsed
5065
5066 \begin_layout Plain Layout
5067 kxmod
5068 \end_layout
5069
5070 \end_inset
5071
5072  Specify an exception to the accent character
5073 \end_layout
5074
5075 \begin_layout LyX-Code
5076
5077 \backslash
5078 kxmod  
5079 \family roman
5080 \emph on
5081 accent char result
5082 \end_layout
5083
5084 \begin_layout Standard
5085 This defines an exce
5086 \family roman
5087 ption for
5088 \family default
5089  
5090 \family roman
5091 \emph on
5092 accent
5093 \family default
5094 \emph default
5095  
5096 \family roman
5097 on
5098 \family default
5099  
5100 \family roman
5101 \emph on
5102 char
5103 \emph default
5104 .
5105  T
5106 \shape up
5107 he
5108 \family default
5109 \shape default
5110  
5111 \family roman
5112 \shape up
5113 \emph on
5114 accent
5115 \family default
5116 \shape default
5117 \emph default
5118  
5119 \family roman
5120 \shape up
5121 must
5122 \family default
5123 \shape default
5124  
5125 \shape up
5126 have been assigned a keystroke with a previous
5127 \shape default
5128  
5129 \begin_inset Flex Code
5130 status collapsed
5131
5132 \begin_layout Plain Layout
5133
5134 \shape up
5135
5136 \backslash
5137 kmo
5138 \shape default
5139 d
5140 \end_layout
5141
5142 \end_inset
5143
5144  declar
5145 \family roman
5146 ation and
5147 \family default
5148  
5149 \family roman
5150 \emph on
5151 char
5152 \family default
5153 \emph default
5154  
5155 \family roman
5156 must not belong in the
5157 \family default
5158  
5159 \family roman
5160 \emph on
5161 allowed
5162 \family default
5163 \emph default
5164  
5165 \family roman
5166 set of
5167 \family default
5168  
5169 \family roman
5170 \emph on
5171 accent
5172 \emph default
5173 .
5174  When
5175 \family default
5176  
5177 \family roman
5178 \shape up
5179 you enter the
5180 \family default
5181 \shape default
5182  
5183 \family roman
5184 \shape up
5185 \emph on
5186 accent char
5187 \family default
5188 \shape default
5189 \emph default
5190  
5191 \family roman
5192 \shape up
5193 sequence,
5194 \family default
5195 \shape default
5196  
5197 \family roman
5198 \shape up
5199 \emph on
5200 result
5201 \emph default
5202  is produced.
5203  If such a declaration does not exist in
5204 \family default
5205 \shape default
5206  
5207 \shape up
5208 the
5209 \shape default
5210  
5211 \begin_inset Flex Code
5212 status collapsed
5213
5214 \begin_layout Plain Layout
5215
5216 \shape up
5217 .kmap
5218 \end_layout
5219
5220 \end_inset
5221
5222  file and yo
5223 \family roman
5224 u enter
5225 \family default
5226  
5227 \family roman
5228 \emph on
5229 accent char
5230 \emph default
5231 , you get
5232 \family default
5233  
5234 \family roman
5235 \emph on
5236 accent_key char
5237 \emph default
5238  where
5239 \family default
5240  
5241 \family roman
5242 \emph on
5243 accent_key
5244 \emph default
5245  is the first arg
5246 \family default
5247 ument of the 
5248 \begin_inset Flex Code
5249 status collapsed
5250
5251 \begin_layout Plain Layout
5252
5253 \shape up
5254
5255 \backslash
5256 kmod
5257 \end_layout
5258
5259 \end_inset
5260
5261  declaration.
5262  
5263 \end_layout
5264
5265 \begin_layout Standard
5266 The following command produces causes äi to be produced when you enter acute-i
5267  ('i):
5268 \end_layout
5269
5270 \begin_layout LyX-Code
5271
5272 \backslash
5273 kxmod acute i "
5274 \backslash
5275
5276 \backslash
5277 '{
5278 \backslash
5279
5280 \backslash
5281 i}"
5282 \end_layout
5283
5284 \begin_layout Labeling
5285 \labelwidthstring 00.00.0000
5286 \begin_inset Flex Code
5287 status collapsed
5288
5289 \begin_layout Plain Layout
5290 kcomb
5291 \end_layout
5292
5293 \end_inset
5294
5295  Combine two accent characters
5296 \end_layout
5297
5298 \begin_layout LyX-Code
5299
5300 \backslash
5301 kcomb 
5302 \family roman
5303 \emph on
5304 accent1 accent2 allowed
5305 \end_layout
5306
5307 \begin_layout Standard
5308 This one is getting pretty esoteric.
5309  It allows you to combine the effect 
5310 \family roman
5311 of
5312 \family default
5313  
5314 \family roman
5315 \emph on
5316 accent1
5317 \family default
5318 \emph default
5319  
5320 \family roman
5321 and
5322 \family default
5323  
5324 \family roman
5325 \emph on
5326 accent2
5327 \family default
5328 \emph default
5329  
5330 \family roman
5331 (in that order!) on
5332 \family default
5333  
5334 \family roman
5335 \emph on
5336 allowed
5337 \family default
5338 \emph default
5339  
5340 \family roman
5341 chars.
5342  The keystrokes for
5343 \family default
5344  
5345 \family roman
5346 \emph on
5347 accent1
5348 \family default
5349 \emph default
5350  
5351 \family roman
5352 and
5353 \family default
5354  
5355 \family roman
5356 \emph on
5357 accent2
5358 \family default
5359 \emph default
5360  
5361 \family roman
5362 must have be
5363 \family default
5364 en set with a 
5365 \begin_inset Flex Code
5366 status collapsed
5367
5368 \begin_layout Plain Layout
5369
5370 \shape up
5371
5372 \backslash
5373 kmod
5374 \end_layout
5375
5376 \end_inset
5377
5378  command at 
5379 \family roman
5380 a
5381 \family default
5382  
5383 \family roman
5384 \emph on
5385 previous
5386 \family default
5387 \emph default
5388  
5389 \family roman
5390 point in the
5391 \family default
5392  file.
5393  
5394 \end_layout
5395
5396 \begin_layout Standard
5397 Consider this example from the 
5398 \begin_inset Flex Code
5399 status collapsed
5400
5401 \begin_layout Plain Layout
5402
5403 \shape up
5404 greek.kmap
5405 \end_layout
5406
5407 \end_inset
5408
5409  file:
5410 \end_layout
5411
5412 \begin_layout LyX-Code
5413
5414 \backslash
5415 kmod ; acute aeioyvhAEIOYVH 
5416 \backslash
5417 kmod : umlaut iyIY 
5418 \backslash
5419 kcomb acute umlaut iyIY
5420 \end_layout
5421
5422 \begin_layout Standard
5423 This allows you to press 
5424 \begin_inset Flex Noun
5425 status collapsed
5426
5427 \begin_layout Plain Layout
5428
5429 \shape up
5430 ;:i
5431 \end_layout
5432
5433 \end_inset
5434
5435  and get the effect of 
5436 \begin_inset Flex Code
5437 status collapsed
5438
5439 \begin_layout Plain Layout
5440
5441 \shape up
5442
5443 \backslash
5444 '{
5445 \backslash
5446 "{i}}
5447 \end_layout
5448
5449 \end_inset
5450
5451 .
5452  
5453 \family roman
5454 \shape up
5455 A backspace
5456 \family default
5457 \shape default
5458  in this case cancels the last dead key, so if you press 
5459 \begin_inset Flex Noun
5460 status collapsed
5461
5462 \begin_layout Plain Layout
5463
5464 \shape up
5465 ;: Backspace i
5466 \end_layout
5467
5468 \end_inset
5469
5470  you get 
5471 \begin_inset Flex Code
5472 status collapsed
5473
5474 \begin_layout Plain Layout
5475
5476 \shape up
5477
5478 \backslash
5479 '{i}
5480 \end_layout
5481
5482 \end_inset
5483
5484 .
5485 \end_layout
5486
5487 \begin_layout Subsection
5488 The .cdef File
5489 \end_layout
5490
5491 \begin_layout Standard
5492 After the 
5493 \begin_inset Flex Code
5494 status collapsed
5495
5496 \begin_layout Plain Layout
5497
5498 \shape up
5499 .kmap
5500 \end_layout
5501
5502 \end_inset
5503
5504  mapping is performed, a 
5505 \begin_inset Flex Code
5506 status collapsed
5507
5508 \begin_layout Plain Layout
5509
5510 \shape up
5511 .cde
5512 \shape default
5513 f
5514 \end_layout
5515
5516 \end_inset
5517
5518  file maps the strings that the symbols generate to characters in the current
5519  font.
5520  The \SpecialChar LyX
5521  distribution currently includes at least the 
5522 \begin_inset Flex Code
5523 status collapsed
5524
5525 \begin_layout Plain Layout
5526
5527 \shape up
5528 iso8859-1.cdef
5529 \end_layout
5530
5531 \end_inset
5532
5533  and 
5534 \begin_inset Flex Code
5535 status collapsed
5536
5537 \begin_layout Plain Layout
5538
5539 \shape up
5540 iso8859-2.cdef
5541 \end_layout
5542
5543 \end_inset
5544
5545  files.
5546 \end_layout
5547
5548 \begin_layout Standard
5549 In general the 
5550 \begin_inset Flex Code
5551 status collapsed
5552
5553 \begin_layout Plain Layout
5554
5555 \shape up
5556 .cdef
5557 \end_layout
5558
5559 \end_inset
5560
5561  file is a sequence of declarations of the form
5562 \end_layout
5563
5564 \begin_layout LyX-Code
5565
5566 \family roman
5567 \emph on
5568 char_index_in_set
5569 \family default
5570 \emph default
5571  
5572 \family roman
5573 \emph on
5574  string
5575 \end_layout
5576
5577 \begin_layout Standard
5578 For example, in order to map 
5579 \begin_inset Flex Noun
5580 status collapsed
5581
5582 \begin_layout Plain Layout
5583
5584 \shape up
5585
5586 \backslash
5587 '{e}
5588 \end_layout
5589
5590 \end_inset
5591
5592  to the corresponding character in the iso-8859-1 set (233), the following
5593  declaration is used
5594 \end_layout
5595
5596 \begin_layout LyX-Code
5597 233 "
5598 \backslash
5599
5600 \backslash
5601 '{e}"
5602 \end_layout
5603
5604 \begin_layout Standard
5605 with 
5606 \begin_inset Flex Code
5607 status collapsed
5608
5609 \begin_layout Plain Layout
5610
5611 \backslash
5612
5613 \end_layout
5614
5615 \end_inset
5616
5617  and 
5618 \begin_inset Flex Code
5619 status collapsed
5620
5621 \begin_layout Plain Layout
5622 "
5623 \end_layout
5624
5625 \end_inset
5626
5627  being escap
5628 \family roman
5629 ed in
5630 \family default
5631  
5632 \family roman
5633 \emph on
5634 string
5635 \emph default
5636 .
5637  Note that
5638 \family default
5639  the same character can apply to more than one string.
5640  In the 
5641 \begin_inset Flex Code
5642 status collapsed
5643
5644 \begin_layout Plain Layout
5645 i
5646 \shape up
5647 so-8859-7.cdef
5648 \end_layout
5649
5650 \end_inset
5651
5652  file you have
5653 \end_layout
5654
5655 \begin_layout LyX-Code
5656 192 "
5657 \backslash
5658
5659 \backslash
5660 '{
5661 \backslash
5662
5663 \backslash
5664
5665 \backslash
5666 "{i}}"
5667 \begin_inset Newline newline
5668 \end_inset
5669
5670 192 "
5671 \backslash
5672
5673 \backslash
5674
5675 \backslash
5676 "{
5677 \backslash
5678
5679 \backslash
5680 '{i}}"
5681 \end_layout
5682
5683 \begin_layout Standard
5684 If \SpecialChar LyX
5685  cannot find a mapping for the string produced by the keystroke or a
5686  deadkey sequence, it will check if it looks like an accented char and try
5687  to draw an accent over the character on screen.
5688 \end_layout
5689
5690 \begin_layout Subsection
5691 Dead Keys
5692 \end_layout
5693
5694 \begin_layout Standard
5695 There is a second way to add support for international characters through
5696  so-called dead-keys.
5697  A dead-key works in combination with a letter to produce an accented character.
5698  Here, we'll explain how to create a really simple dead-key to illustrate
5699  how they work.
5700 \end_layout
5701
5702 \begin_layout Standard
5703 Suppose you happen to need the circumflex character, 
5704 \begin_inset Quotes eld
5705 \end_inset
5706
5707  ̂
5708 \begin_inset Quotes erd
5709 \end_inset
5710
5711 .
5712  You could bind the 
5713 \begin_inset Flex Noun
5714 status collapsed
5715
5716 \begin_layout Plain Layout
5717 ^
5718 \end_layout
5719
5720 \end_inset
5721
5722 -key [a.k.a.
5723 \begin_inset space ~
5724 \end_inset
5725
5726
5727 \begin_inset Flex Noun
5728 status collapsed
5729
5730 \begin_layout Plain Layout
5731 Shift-6
5732 \end_layout
5733
5734 \end_inset
5735
5736 ] to the \SpecialChar LyX
5737  command 
5738 \begin_inset Flex Code
5739 status collapsed
5740
5741 \begin_layout Plain Layout
5742 accent-circumflex
5743 \end_layout
5744
5745 \end_inset
5746
5747  in your 
5748 \begin_inset Flex Code
5749 status collapsed
5750
5751 \begin_layout Plain Layout
5752 lyxrc
5753 \end_layout
5754
5755 \end_inset
5756
5757  file.
5758  Now, whenever you type the 
5759 \begin_inset Flex Noun
5760 status collapsed
5761
5762 \begin_layout Plain Layout
5763 ^
5764 \end_layout
5765
5766 \end_inset
5767
5768 -key followed by a letter, that letter will have a circumflex accent on
5769  it.
5770  For example, the sequence 
5771 \begin_inset Quotes eld
5772 \end_inset
5773
5774
5775 \begin_inset Flex Noun
5776 status collapsed
5777
5778 \begin_layout Plain Layout
5779 ^e
5780 \end_layout
5781
5782 \end_inset
5783
5784
5785 \begin_inset Quotes erd
5786 \end_inset
5787
5788  produces the letter: 
5789 \begin_inset Quotes eld
5790 \end_inset
5791
5792 ê
5793 \begin_inset Quotes erd
5794 \end_inset
5795
5796 .
5797  If you tried to type 
5798 \begin_inset Quotes eld
5799 \end_inset
5800
5801
5802 \begin_inset Flex Noun
5803 status collapsed
5804
5805 \begin_layout Plain Layout
5806 ^t
5807 \end_layout
5808
5809 \end_inset
5810
5811
5812 \begin_inset Quotes erd
5813 \end_inset
5814
5815 , however, \SpecialChar LyX
5816  will complain with a beep, since a 
5817 \begin_inset Quotes eld
5818 \end_inset
5819
5820
5821 \begin_inset Flex Noun
5822 status collapsed
5823
5824 \begin_layout Plain Layout
5825 t
5826 \end_layout
5827
5828 \end_inset
5829
5830
5831 \begin_inset Quotes erd
5832 \end_inset
5833
5834  never takes a circumflex accent.
5835  Hitting 
5836 \begin_inset Flex Noun
5837 status collapsed
5838
5839 \begin_layout Plain Layout
5840 Space
5841 \end_layout
5842
5843 \end_inset
5844
5845  after a dead-key produces the bare-accent.
5846  Please note this last point! If you bind a key to a dead-key, you'll need
5847  to rebind the character on that key to yet another key.
5848  Binding the 
5849 \begin_inset Flex Noun
5850 status collapsed
5851
5852 \begin_layout Plain Layout
5853 ,-key
5854 \end_layout
5855
5856 \end_inset
5857
5858  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5859 \end_layout
5860
5861 \begin_layout Standard
5862 One common way to bind dead-keys is to use 
5863 \begin_inset Flex Noun
5864 status collapsed
5865
5866 \begin_layout Plain Layout
5867 Meta-
5868 \end_layout
5869
5870 \end_inset
5871
5872
5873 \begin_inset Flex Noun
5874 status collapsed
5875
5876 \begin_layout Plain Layout
5877 Ctrl-
5878 \end_layout
5879
5880 \end_inset
5881
5882 , and 
5883 \begin_inset Flex Noun
5884 status collapsed
5885
5886 \begin_layout Plain Layout
5887 Shift-
5888 \end_layout
5889
5890 \end_inset
5891
5892  in combination with an accent, like 
5893 \begin_inset Quotes eld
5894 \end_inset
5895
5896
5897 \begin_inset Flex Noun
5898 status collapsed
5899
5900 \begin_layout Plain Layout
5901 ~
5902 \end_layout
5903
5904 \end_inset
5905
5906
5907 \begin_inset Quotes erd
5908 \end_inset
5909
5910  or 
5911 \begin_inset Quotes eld
5912 \end_inset
5913
5914
5915 \begin_inset Flex Noun
5916 status collapsed
5917
5918 \begin_layout Plain Layout
5919 ,
5920 \end_layout
5921
5922 \end_inset
5923
5924
5925 \begin_inset Quotes erd
5926 \end_inset
5927
5928  or 
5929 \begin_inset Quotes eld
5930 \end_inset
5931
5932
5933 \begin_inset Flex Noun
5934 status collapsed
5935
5936 \begin_layout Plain Layout
5937 ^
5938 \end_layout
5939
5940 \end_inset
5941
5942
5943 \begin_inset Quotes erd
5944 \end_inset
5945
5946 .
5947  Another way involves using 
5948 \begin_inset Flex Code
5949 status collapsed
5950
5951 \begin_layout Plain Layout
5952 xmodmap
5953 \end_layout
5954
5955 \end_inset
5956
5957  and 
5958 \begin_inset Flex Code
5959 status collapsed
5960
5961 \begin_layout Plain Layout
5962 xkeycaps
5963 \end_layout
5964
5965 \end_inset
5966
5967  to set up the special 
5968 \begin_inset Flex Code
5969 status collapsed
5970
5971 \begin_layout Plain Layout
5972 Mode_Switch
5973 \end_layout
5974
5975 \end_inset
5976
5977  key.
5978  The 
5979 \begin_inset Flex Code
5980 status collapsed
5981
5982 \begin_layout Plain Layout
5983 Mode_Switch
5984 \end_layout
5985
5986 \end_inset
5987
5988  acts in some ways just like 
5989 \begin_inset Flex Noun
5990 status collapsed
5991
5992 \begin_layout Plain Layout
5993 Shift
5994 \end_layout
5995
5996 \end_inset
5997
5998  and permits you to bind keys to accented characters.
5999  You can also turn keys into dead-keys by binding them to something like
6000  
6001 \begin_inset Flex Code
6002 status collapsed
6003
6004 \begin_layout Plain Layout
6005 usldead_cedilla
6006 \end_layout
6007
6008 \end_inset
6009
6010  and then binding this symbolic key to the corresponding \SpecialChar LyX
6011  command.
6012 \begin_inset Foot
6013 status collapsed
6014
6015 \begin_layout Plain Layout
6016 Note from 
6017 \noun on
6018 John Weiss
6019 \noun default
6020 : This is exactly what I do in my 
6021 \begin_inset Flex Code
6022 status collapsed
6023
6024 \begin_layout Plain Layout
6025 ~/.lyx/lyxrc
6026 \end_layout
6027
6028 \end_inset
6029
6030  and my 
6031 \begin_inset Flex Code
6032 status collapsed
6033
6034 \begin_layout Plain Layout
6035 ~/.xmodmap
6036 \end_layout
6037
6038 \end_inset
6039
6040  files.
6041  I have my 
6042 \begin_inset Flex Noun
6043 status collapsed
6044
6045 \begin_layout Plain Layout
6046 Scroll
6047 \begin_inset space ~
6048 \end_inset
6049
6050 Lock
6051 \end_layout
6052
6053 \end_inset
6054
6055  key set up as 
6056 \begin_inset Flex Code
6057 status collapsed
6058
6059 \begin_layout Plain Layout
6060 Mode_Shift
6061 \end_layout
6062
6063 \end_inset
6064
6065  and a bunch of these 
6066 \begin_inset Quotes eld
6067 \end_inset
6068
6069
6070 \begin_inset Flex Code
6071 status collapsed
6072
6073 \begin_layout Plain Layout
6074 usldead_*
6075 \end_layout
6076
6077 \end_inset
6078
6079
6080 \begin_inset Quotes erd
6081 \end_inset
6082
6083  symbolic keys bound such things as 
6084 \begin_inset Flex Noun
6085 status collapsed
6086
6087 \begin_layout Plain Layout
6088 Scroll
6089 \begin_inset space ~
6090 \end_inset
6091
6092 Lock-^
6093 \end_layout
6094
6095 \end_inset
6096
6097  and 
6098 \begin_inset Flex Noun
6099 status collapsed
6100
6101 \begin_layout Plain Layout
6102 Scroll
6103 \begin_inset space ~
6104 \end_inset
6105
6106 Lock-~
6107 \end_layout
6108
6109 \end_inset
6110
6111 .
6112  This is how I produce my accented characters.
6113 \end_layout
6114
6115 \end_inset
6116
6117  You can make just about anything into the 
6118 \begin_inset Flex Code
6119 status collapsed
6120
6121 \begin_layout Plain Layout
6122 Mode_Switch
6123 \end_layout
6124
6125 \end_inset
6126
6127  key: One of the 
6128 \begin_inset Flex Noun
6129 status collapsed
6130
6131 \begin_layout Plain Layout
6132 Ctrl-
6133 \end_layout
6134
6135 \end_inset
6136
6137  keys, a spare function key, etc.
6138  As for the \SpecialChar LyX
6139  commands that produce accents, check the entry for 
6140 \begin_inset Flex Code
6141 status collapsed
6142
6143 \begin_layout Plain Layout
6144 accent-acute
6145 \end_layout
6146
6147 \end_inset
6148
6149  in the 
6150 \emph on
6151 Reference Manual
6152 \emph default
6153 .
6154  You'll find the complete list there.
6155 \end_layout
6156
6157 \begin_layout Subsection
6158 Saving your Language Configuration
6159 \end_layout
6160
6161 \begin_layout Standard
6162 You can edit your preferences so that your desired language environment
6163  is automatically configured when \SpecialChar LyX
6164  starts up, via the 
6165 \begin_inset Flex Noun
6166 status collapsed
6167
6168 \begin_layout Plain Layout
6169 Edit\SpecialChar menuseparator
6170 Preferences
6171 \end_layout
6172
6173 \end_inset
6174
6175  dialog.
6176 \end_layout
6177
6178 \begin_layout Chapter
6179 Installing New Document Classes, Layouts, and Templates
6180 \begin_inset CommandInset label
6181 LatexCommand label
6182 name "cha:Installing-New-Document"
6183
6184 \end_inset
6185
6186
6187 \begin_inset Argument 1
6188 status collapsed
6189
6190 \begin_layout Plain Layout
6191 Installing New Document Classes
6192 \end_layout
6193
6194 \end_inset
6195
6196
6197 \end_layout
6198
6199 \begin_layout Standard
6200 In this chapter, we describe the procedures for creating and installing
6201  new \SpecialChar LyX
6202  layout and template files, as well as offer a refresher on correctly
6203  installing new \SpecialChar LaTeX
6204  document classes.
6205  
6206 \end_layout
6207
6208 \begin_layout Standard
6209 First, let us a say a few words about how one ought to think about the relation
6210  between \SpecialChar LyX
6211  and \SpecialChar LaTeX
6212 .
6213  The thing to understand is that, in a certain sense, \SpecialChar LyX
6214  doesn't know anything
6215  about \SpecialChar LaTeX
6216 .
6217  Indeed, from \SpecialChar LyX
6218 's point of view, \SpecialChar LaTeX
6219  is just one of several 
6220 \begin_inset Quotes eld
6221 \end_inset
6222
6223 backend formats
6224 \begin_inset Quotes erd
6225 \end_inset
6226
6227  in which it is capable of producing output.
6228  Other such formats are DocBook, plaintext, and XHTML.
6229  \SpecialChar LaTeX
6230  is, of course, a particularly important format, but very little of the
6231  information \SpecialChar LyX
6232  has about \SpecialChar LaTeX
6233  is actually contained in the program itself.
6234 \begin_inset Foot
6235 status collapsed
6236
6237 \begin_layout Plain Layout
6238 Some commands are sufficiently complex that they are 
6239 \begin_inset Quotes eld
6240 \end_inset
6241
6242 hardcoded
6243 \begin_inset Quotes erd
6244 \end_inset
6245
6246  into \SpecialChar LyX
6247 .
6248  But the developers generally regard this as a Bad Thing.
6249 \end_layout
6250
6251 \end_inset
6252
6253  Rather, that information, even for the standard classes like 
6254 \begin_inset Flex Code
6255 status collapsed
6256
6257 \begin_layout Plain Layout
6258 article.cls
6259 \end_layout
6260
6261 \end_inset
6262
6263 , is contained in `layout files'.
6264  Similarly, \SpecialChar LyX
6265  itself does not know much about DocBook or XHTML.
6266  What it knows is contained in layout files.
6267 \end_layout
6268
6269 \begin_layout Standard
6270 You can think of the layout file for a given document class as a translation
6271  manual between \SpecialChar LyX
6272  constructs—paragraphs with their corresponding styles,
6273  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6274 , DocBook, or XHTML
6275  constructs.
6276  Almost everything \SpecialChar LyX
6277  knows about 
6278 \begin_inset Flex Code
6279 status collapsed
6280
6281 \begin_layout Plain Layout
6282 article.cls
6283 \end_layout
6284
6285 \end_inset
6286
6287 , for example, is contained in the file 
6288 \begin_inset Flex Code
6289 status collapsed
6290
6291 \begin_layout Plain Layout
6292 article.layout
6293 \end_layout
6294
6295 \end_inset
6296
6297  and in various other files it includes.
6298  For this reason, anyone intending to write layout files should plan to
6299  study the existing files.
6300  A good place to start is with 
6301 \begin_inset Flex Code
6302 status collapsed
6303
6304 \begin_layout Plain Layout
6305 stdsections.inc
6306 \end_layout
6307
6308 \end_inset
6309
6310 , which is included in 
6311 \begin_inset Flex Code
6312 status collapsed
6313
6314 \begin_layout Plain Layout
6315 article.layout
6316 \end_layout
6317
6318 \end_inset
6319
6320
6321 \begin_inset Flex Code
6322 status collapsed
6323
6324 \begin_layout Plain Layout
6325 book.layout
6326 \end_layout
6327
6328 \end_inset
6329
6330 , and many of the other layout files for document classes.
6331  This file is where sections and the like are defined: 
6332 \begin_inset Flex Code
6333 status collapsed
6334
6335 \begin_layout Plain Layout
6336 stdsections.inc
6337 \end_layout
6338
6339 \end_inset
6340
6341  tells \SpecialChar LyX
6342  how paragraphs that are marked with the Section, Subsection, etc,
6343  styles can be translated into corresponding \SpecialChar LaTeX
6344 , DocBook, and XHTML commands
6345  and tags.
6346  The 
6347 \begin_inset Flex Code
6348 status collapsed
6349
6350 \begin_layout Plain Layout
6351 article.layout
6352 \end_layout
6353
6354 \end_inset
6355
6356  file basically just includes several of these 
6357 \begin_inset Flex Code
6358 status collapsed
6359
6360 \begin_layout Plain Layout
6361 std*.inc
6362 \end_layout
6363
6364 \end_inset
6365
6366  files.
6367 \end_layout
6368
6369 \begin_layout Standard
6370 Defining the \SpecialChar LyX
6371 –\SpecialChar LaTeX
6372  correspondence is not the only thing layout files do, though.
6373  Their other job is to define how the \SpecialChar LyX
6374  constructs themselves will appear
6375  on-screen.
6376  The fact that layout files have these two jobs is often a source of confusion,
6377  because they are completely separate.
6378  Telling \SpecialChar LyX
6379  how to translate a certain paragraph style into \SpecialChar LaTeX
6380  does not tell
6381  \SpecialChar LyX
6382  how to display it; conversely, telling \SpecialChar LyX
6383  how to display a certain paragraph
6384  style does not tell \SpecialChar LyX
6385  how to translate it into \SpecialChar LaTeX
6386  (let alone tell \SpecialChar LaTeX
6387  how to
6388  display it).
6389  So, in general, when you define a new \SpecialChar LyX
6390  construct, you must always do two
6391  quite separate things: (i)
6392 \begin_inset space ~
6393 \end_inset
6394
6395 tell \SpecialChar LyX
6396  how to translate it into \SpecialChar LaTeX
6397  and (ii)
6398 \begin_inset space ~
6399 \end_inset
6400
6401 tell \SpecialChar LyX
6402  how to display it.
6403 \end_layout
6404
6405 \begin_layout Standard
6406 Much the same is true, of course, as regards \SpecialChar LyX
6407 's other backend formats, though
6408  XHTML is in some ways different, because in that case \SpecialChar LyX
6409  
6410 \emph on
6411 is
6412 \emph default
6413  able, to some extent, to use information about how it should display a
6414  paragraph on the screen to output information (in the form of CSS) about
6415  how the paragraph should be displayed in a browser.
6416  Even in this case, however, the distinction between what \SpecialChar LyX
6417  does internally
6418  and how things are rendered externally remains in force, and the two can
6419  be controlled separately.
6420  See 
6421 \begin_inset CommandInset ref
6422 LatexCommand ref
6423 reference "sec:Tags-for-XHTML"
6424
6425 \end_inset
6426
6427  for the details.
6428 \end_layout
6429
6430 \begin_layout Section
6431 Installing new \SpecialChar LaTeX
6432  files
6433 \end_layout
6434
6435 \begin_layout Standard
6436 Some installations may not include a \SpecialChar LaTeX
6437  package or class file that you would
6438  like to use within \SpecialChar LyX
6439 .
6440  For example, you might need Foil\SpecialChar TeX
6441 , a package for preparing slides for overhead
6442  projectors.
6443  Modern \SpecialChar LaTeX
6444  distributions like \SpecialChar TeX
6445 Live (2008 or newer) or MiK\SpecialChar TeX
6446  provide a user interface
6447  for installing such packages.
6448  For example, with MiK\SpecialChar TeX
6449 , you start the program 
6450 \begin_inset Quotes eld
6451 \end_inset
6452
6453 Package
6454 \begin_inset space ~
6455 \end_inset
6456
6457 Manager
6458 \begin_inset Quotes erd
6459 \end_inset
6460
6461  to get a list of available packages.
6462  To install one of them, right click on it or use the corresponding toolbar
6463  button.
6464 \end_layout
6465
6466 \begin_layout Standard
6467 If your \SpecialChar LaTeX
6468  distribution does not provide such a `package manager', or if the
6469  package is not available from your distribution, then follow these steps
6470  to install it manually:
6471 \end_layout
6472
6473 \begin_layout Enumerate
6474 Get the package from 
6475 \begin_inset CommandInset href
6476 LatexCommand href
6477 name "CTAN"
6478 target "http://www.ctan.org/"
6479 literal "false"
6480
6481 \end_inset
6482
6483  or wherever.
6484 \end_layout
6485
6486 \begin_layout Enumerate
6487 If the package contains a file with the ending 
6488 \begin_inset Quotes eld
6489 \end_inset
6490
6491
6492 \begin_inset Flex Code
6493 status collapsed
6494
6495 \begin_layout Plain Layout
6496 .ins
6497 \end_layout
6498
6499 \end_inset
6500
6501
6502 \begin_inset Quotes erd
6503 \end_inset
6504
6505  (is the case for Foil\SpecialChar TeX
6506 ) then open a console, change to the folder of this
6507  file and execute the command 
6508 \begin_inset Flex Code
6509 status collapsed
6510
6511 \begin_layout Plain Layout
6512 latex foiltex.ins
6513 \end_layout
6514
6515 \end_inset
6516
6517 .
6518  You have now unpacked the package and have all files to install it.
6519  Most \SpecialChar LaTeX
6520 -packages are not packed and you can skip this step.
6521 \end_layout
6522
6523 \begin_layout Enumerate
6524 Now you need to decide if the package should be available for all users
6525  or only for you.
6526 \end_layout
6527
6528 \begin_deeper
6529 \begin_layout Enumerate
6530 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6531  for all users on your system, then install it in your `local' \SpecialChar TeX
6532  tree, otherwise
6533  install it in your own `user' \SpecialChar TeX
6534  tree.
6535  Where these trees should be created, if they do not already exist, depends
6536  on your system.
6537  To find this out, look in the file 
6538 \begin_inset Flex Code
6539 status collapsed
6540
6541 \begin_layout Plain Layout
6542 texmf.cnf
6543 \end_layout
6544
6545 \end_inset
6546
6547 .
6548 \begin_inset Foot
6549 status collapsed
6550
6551 \begin_layout Plain Layout
6552 This is usually in the directory 
6553 \begin_inset Flex Code
6554 status collapsed
6555
6556 \begin_layout Plain Layout
6557 $TEXMF/web2c
6558 \end_layout
6559
6560 \end_inset
6561
6562 , though you can execute the command 
6563 \begin_inset Flex Code
6564 status collapsed
6565
6566 \begin_layout Plain Layout
6567 kpsewhich texmf.cnf
6568 \end_layout
6569
6570 \end_inset
6571
6572  to locate it.
6573 \end_layout
6574
6575 \end_inset
6576
6577  The location of the `local' \SpecialChar TeX
6578  tree is defined by the 
6579 \begin_inset Flex Code
6580 status collapsed
6581
6582 \begin_layout Plain Layout
6583 TEXMFLOCAL
6584 \end_layout
6585
6586 \end_inset
6587
6588  variable; this is usually somewhere like 
6589 \begin_inset Flex Code
6590 status collapsed
6591
6592 \begin_layout Plain Layout
6593 /usr/local/share/texmf
6594 \end_layout
6595
6596 \end_inset
6597
6598  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6599 Live
6600  distribution.
6601  The location of the `user' \SpecialChar TeX
6602  tree is defined by 
6603 \begin_inset Flex Code
6604 status collapsed
6605
6606 \begin_layout Plain Layout
6607 TEXMFHOME
6608 \end_layout
6609
6610 \end_inset
6611
6612  and is commonly 
6613 \begin_inset Flex Code
6614 status collapsed
6615
6616 \begin_layout Plain Layout
6617 $HOME/texmf
6618 \end_layout
6619
6620 \end_inset
6621
6622  or 
6623 \begin_inset Flex Code
6624 status collapsed
6625
6626 \begin_layout Plain Layout
6627
6628 \family sans
6629 $HOME/.texliveXXXX
6630 \end_layout
6631
6632 \end_inset
6633
6634 .
6635  (If these variables are not predefined, you have to define them.) You'll
6636  probably need root permissions to create or modify the `local' tree, but
6637  not for your `user' tree.
6638 \begin_inset Newline newline
6639 \end_inset
6640
6641 In general, it is recommended to install in the user tree because your user
6642  will not be modified or even overwritten when you upgrade your system.
6643  It will typically also be backed up together with everything else when
6644  you backup your home directory (which, of course, you do on a regular basis).
6645 \end_layout
6646
6647 \begin_layout Enumerate
6648 On Windows, if you want the new package to be available for all users on
6649  your system, change to the folder where \SpecialChar LaTeX
6650  is installed and then change to
6651  the subfolder 
6652 \begin_inset Flex Code
6653 status collapsed
6654
6655 \begin_layout Plain Layout
6656 ~
6657 \backslash
6658 tex
6659 \backslash
6660 latex
6661 \end_layout
6662
6663 \end_inset
6664
6665 .
6666  (For MiK\SpecialChar TeX
6667 , this would be by default the folder 
6668 \begin_inset Flex Code
6669 status collapsed
6670
6671 \begin_layout Plain Layout
6672 ~:
6673 \backslash
6674 Programs
6675 \backslash
6676 MiKTeX
6677 \backslash
6678 tex
6679 \backslash
6680 latex
6681 \end_layout
6682
6683 \end_inset
6684
6685 .)
6686 \begin_inset Foot
6687 status collapsed
6688
6689 \begin_layout Plain Layout
6690 Note that this will be the correct path only on English installations.
6691  On a German one, it would be 
6692 \begin_inset Flex Code
6693 status collapsed
6694
6695 \begin_layout Plain Layout
6696 ~:
6697 \backslash
6698 Programme
6699 \backslash
6700 MiKTeX
6701 \backslash
6702 tex
6703 \backslash
6704 latex
6705 \end_layout
6706
6707 \end_inset
6708
6709 , and similarly for other languages.
6710 \end_layout
6711
6712 \end_inset
6713
6714  Create there a new folder 
6715 \begin_inset Flex Code
6716 status collapsed
6717
6718 \begin_layout Plain Layout
6719 foiltex
6720 \end_layout
6721
6722 \end_inset
6723
6724  and copy all files of the package into it.
6725  
6726 \begin_inset Newline newline
6727 \end_inset
6728
6729 If the package should only available for you or you don't have admin permissions
6730 , do the same, but in the local \SpecialChar LaTeX
6731  folder.
6732  E.
6733 \begin_inset space \thinspace{}
6734 \end_inset
6735
6736 g., for MiK\SpecialChar TeX
6737
6738 \begin_inset space ~
6739 \end_inset
6740
6741 2.8 under Windows XP, this would be the folder:
6742 \begin_inset Newline newline
6743 \end_inset
6744
6745
6746 \family sans
6747
6748 \begin_inset Flex Code
6749 status collapsed
6750
6751 \begin_layout Plain Layout
6752 ~:
6753 \backslash
6754 Documents and Settings
6755 \backslash
6756 <username>
6757 \backslash
6758 Application Data
6759 \backslash
6760
6761 \end_layout
6762
6763 \end_inset
6764
6765
6766 \begin_inset Newline newline
6767 \end_inset
6768
6769
6770 \family default
6771
6772 \begin_inset Phantom HPhantom
6773 status open
6774
6775 \begin_layout Plain Layout
6776
6777 \family sans
6778 ~:
6779 \backslash
6780
6781 \end_layout
6782
6783 \end_inset
6784
6785
6786 \begin_inset Flex Code
6787 status collapsed
6788
6789 \begin_layout Plain Layout
6790 MiKTeX
6791 \backslash
6792 2.8
6793 \backslash
6794 tex
6795 \backslash
6796 latex
6797 \end_layout
6798
6799 \end_inset
6800
6801
6802 \begin_inset Newline newline
6803 \end_inset
6804
6805 On Vista, it would be:
6806 \begin_inset Newline newline
6807 \end_inset
6808
6809
6810 \begin_inset Flex Code
6811 status collapsed
6812
6813 \begin_layout Plain Layout
6814 ~:
6815 \backslash
6816 Users
6817 \backslash
6818 <username>
6819 \backslash
6820 AppData
6821 \backslash
6822 Roaming
6823 \backslash
6824 2.8
6825 \backslash
6826 MiKTeX
6827 \backslash
6828 tex
6829 \backslash
6830 latex
6831 \end_layout
6832
6833 \end_inset
6834
6835
6836 \end_layout
6837
6838 \end_deeper
6839 \begin_layout Enumerate
6840 Now one only need to tell \SpecialChar LaTeX
6841  that there are new files.
6842  This depends on the used \SpecialChar LaTeX
6843 -Distribution:
6844 \end_layout
6845
6846 \begin_deeper
6847 \begin_layout Enumerate
6848 For \SpecialChar TeX
6849 Live execute the command 
6850 \begin_inset Flex Code
6851 status collapsed
6852
6853 \begin_layout Plain Layout
6854 texhash
6855 \end_layout
6856
6857 \end_inset
6858
6859  from a console.
6860  If you installed the package for all users, then you will probably need
6861  to have root permissions for that.
6862 \end_layout
6863
6864 \begin_layout Enumerate
6865 For MiK\SpecialChar TeX
6866 , if you have installed the package for all users, start the program
6867  
6868 \begin_inset Quotes eld
6869 \end_inset
6870
6871 Settings
6872 \begin_inset space ~
6873 \end_inset
6874
6875 (Admin)
6876 \begin_inset Quotes erd
6877 \end_inset
6878
6879  and press the button marked 
6880 \begin_inset Quotes eld
6881 \end_inset
6882
6883 Refresh FNDB
6884 \begin_inset Quotes erd
6885 \end_inset
6886
6887 .
6888  Otherwise start the program 
6889 \begin_inset Quotes eld
6890 \end_inset
6891
6892 Settings
6893 \begin_inset Quotes erd
6894 \end_inset
6895
6896  and do the same.
6897 \end_layout
6898
6899 \end_deeper
6900 \begin_layout Enumerate
6901 Finally, you need to tell \SpecialChar LyX
6902  that there are new packages available.
6903  So, in \SpecialChar LyX
6904 , use the menu 
6905 \begin_inset Flex Noun
6906 status collapsed
6907
6908 \begin_layout Plain Layout
6909 Tools
6910 \family sans
6911 \SpecialChar menuseparator
6912 Reconfigure
6913 \end_layout
6914
6915 \end_inset
6916
6917  and then restart \SpecialChar LyX
6918 .
6919 \end_layout
6920
6921 \begin_layout Standard
6922 Now the package is installed.
6923  In our example, the document class 
6924 \begin_inset Flex Code
6925 status collapsed
6926
6927 \begin_layout Plain Layout
6928 FoilTex
6929 \end_layout
6930
6931 \end_inset
6932
6933  will now be available under 
6934 \begin_inset Flex Noun
6935 status collapsed
6936
6937 \begin_layout Plain Layout
6938 Document\SpecialChar menuseparator
6939 Settings\SpecialChar menuseparator
6940 Document Class
6941 \end_layout
6942
6943 \end_inset
6944
6945  (in the 
6946 \begin_inset Quotes eld
6947 \end_inset
6948
6949 Presentations
6950 \begin_inset Quotes erd
6951 \end_inset
6952
6953  category).
6954  
6955 \end_layout
6956
6957 \begin_layout Standard
6958 If you would like to use a \SpecialChar LaTeX
6959  document class that is not even listed in the
6960  menu 
6961 \begin_inset Flex Noun
6962 status collapsed
6963
6964 \begin_layout Plain Layout
6965 Document\SpecialChar menuseparator
6966 Settings\SpecialChar menuseparator
6967 Document Class
6968 \end_layout
6969
6970 \end_inset
6971
6972 , then you need to create a `layout' file for it.
6973  That is the topic of the next section.
6974 \end_layout
6975
6976 \begin_layout Section
6977 Types of layout files
6978 \end_layout
6979
6980 \begin_layout Standard
6981 This section describes the various sorts of \SpecialChar LyX
6982  files that contain layout informati
6983 on.
6984  These files describe various paragraph and character styles, determining
6985  how \SpecialChar LyX
6986  should display them and how they should be translated into \SpecialChar LaTeX
6987 , DocBook,
6988  XHTML, or whatever output format is being used.
6989  
6990 \end_layout
6991
6992 \begin_layout Standard
6993 We shall try to provide a thorough description of the process of writing
6994  layout files here.
6995  However, there are so many different types of documents supported even
6996  by just \SpecialChar LaTeX
6997  that we can't hope to cover every different possibility or problem
6998  you might encounter.
6999  The \SpecialChar LyX
7000  users' list is frequented by people with lots of experience with layout
7001  design who are willing to share what they've learned, so please feel free
7002  to ask questions there.
7003 \end_layout
7004
7005 \begin_layout Standard
7006 As you prepare to write a new layout, it is extremely helpful to look at
7007  the layouts distributed with \SpecialChar LyX
7008 .
7009  If you write a \SpecialChar LyX
7010  layout for a \SpecialChar LaTeX
7011  document class that might also be used by
7012  others, or write a module that might be useful to others, then you should
7013  consider posting your layout to the 
7014 \begin_inset CommandInset href
7015 LatexCommand href
7016 name "layout section on the LyX wiki"
7017 target "https://wiki.lyx.org/Layouts/Layouts"
7018 literal "false"
7019
7020 \end_inset
7021
7022  or even to the \SpecialChar LyX
7023  developers' list, so that it might be included in \SpecialChar LyX
7024  itself.
7025 \begin_inset Foot
7026 status collapsed
7027
7028 \begin_layout Plain Layout
7029 Note that \SpecialChar LyX
7030  is licensed under the General Public License, so any material
7031  that is contributed to \SpecialChar LyX
7032  must be similarly licensed.
7033 \end_layout
7034
7035 \end_inset
7036
7037
7038 \end_layout
7039
7040 \begin_layout Subsection
7041 Layout modules
7042 \begin_inset CommandInset label
7043 LatexCommand label
7044 name "subsec:Layout-modules"
7045
7046 \end_inset
7047
7048
7049 \end_layout
7050
7051 \begin_layout Standard
7052 We have spoken to this point about `layout files'.
7053  But there are different sorts of files that contain layout information.
7054  Layout files, strictly so called, have the 
7055 \begin_inset Flex Code
7056 status collapsed
7057
7058 \begin_layout Plain Layout
7059 .layout
7060 \end_layout
7061
7062 \end_inset
7063
7064  extension and provide \SpecialChar LyX
7065  with information about document classes.
7066  Since \SpecialChar LyX
7067  1.6 layout information can also be contained in layout 
7068 \emph on
7069 modules
7070 \emph default
7071 , which have the 
7072 \begin_inset Flex Code
7073 status collapsed
7074
7075 \begin_layout Plain Layout
7076 .module
7077 \end_layout
7078
7079 \end_inset
7080
7081  extension.
7082  Modules are to \SpecialChar LaTeX
7083  packages much as layouts are to \SpecialChar LaTeX
7084  classes, and some modules—such
7085  as the 
7086 \begin_inset Flex Code
7087 status collapsed
7088
7089 \begin_layout Plain Layout
7090 endnotes
7091 \end_layout
7092
7093 \end_inset
7094
7095  module—specifically provide support for one package.
7096  In a sense, layout modules are similar to included
7097 \begin_inset Foot
7098 status collapsed
7099
7100 \begin_layout Plain Layout
7101 These can have any extension, but by convention have the 
7102 \begin_inset Flex Code
7103 status collapsed
7104
7105 \begin_layout Plain Layout
7106 .inc
7107 \end_layout
7108
7109 \end_inset
7110
7111  extension.
7112 \end_layout
7113
7114 \end_inset
7115
7116  files—files like 
7117 \begin_inset Flex Code
7118 status collapsed
7119
7120 \begin_layout Plain Layout
7121 stdsections.inc
7122 \end_layout
7123
7124 \end_inset
7125
7126 —in that modules are not specific to a given document class but may be used
7127  with many different classes.
7128  The difference is that using an included file with 
7129 \begin_inset Flex Code
7130 status collapsed
7131
7132 \begin_layout Plain Layout
7133 article.cls
7134 \end_layout
7135
7136 \end_inset
7137
7138  requires editing that file.
7139  Modules, by contrast, are selected in the 
7140 \begin_inset Flex Noun
7141 status collapsed
7142
7143 \begin_layout Plain Layout
7144 Document\SpecialChar menuseparator
7145 Settings
7146 \end_layout
7147
7148 \end_inset
7149
7150  dialog.
7151 \end_layout
7152
7153 \begin_layout Standard
7154 Building modules is the easiest way to get started with layout editing,
7155  since it can be as simple as adding a single new paragraph style or flex
7156  inset.
7157  But modules may, in principle, contain anything a layout file can contain.
7158 \end_layout
7159
7160 \begin_layout Standard
7161 After creating a new module and copying it to the 
7162 \begin_inset Flex Code
7163 status collapsed
7164
7165 \begin_layout Plain Layout
7166 layouts/
7167 \end_layout
7168
7169 \end_inset
7170
7171  folder, you will need to reconfigure and then restart \SpecialChar LyX
7172  for the module to
7173  appear in the menu.
7174  However, changes you make to the module will be seen immediately, if you
7175  open 
7176 \begin_inset Flex Noun
7177 status collapsed
7178
7179 \begin_layout Plain Layout
7180 Document\SpecialChar menuseparator
7181 Settings
7182 \end_layout
7183
7184 \end_inset
7185
7186 , highlight something, and then hit 
7187 \begin_inset Quotes eld
7188 \end_inset
7189
7190 OK
7191 \begin_inset Quotes erd
7192 \end_inset
7193
7194 .
7195  
7196 \emph on
7197 It is strongly recommended that you save your work before doing this
7198 \emph default
7199 .
7200  In fact, 
7201 \emph on
7202 it is strongly recommended that you not attempt to edit modules while simultaneo
7203 usly working on actual documents
7204 \emph default
7205 .
7206  Though of course the developers strive to keep \SpecialChar LyX
7207  stable in such situations,
7208  syntax errors and the like in your module file could cause strange behavior.
7209 \end_layout
7210
7211 \begin_layout Subsubsection
7212 Local Layout
7213 \end_layout
7214
7215 \begin_layout Standard
7216 Modules are to \SpecialChar LyX
7217  as packages are to \SpecialChar LaTeX
7218 .
7219  Sometimes, however, you find yourself wanting a specific inset or character
7220  style just for one document and writing a module that will also be available
7221  to other documents makes little sense.
7222  What you need is \SpecialChar LyX
7223 's 
7224 \begin_inset Quotes eld
7225 \end_inset
7226
7227 Local Layout
7228 \begin_inset Quotes erd
7229 \end_inset
7230
7231 .
7232 \end_layout
7233
7234 \begin_layout Standard
7235 You will find it under 
7236 \family sans
7237 Document\SpecialChar menuseparator
7238 Settings\SpecialChar menuseparator
7239 Local Layout
7240 \family default
7241 .
7242  The large text box allows you to enter anything that you might enter in
7243  a layout file or module.
7244  You can think of a document's local layout, in fact, as a module that belongs
7245  just to it.
7246  So, in particular, you must enter a 
7247 \begin_inset Flex Code
7248 status collapsed
7249
7250 \begin_layout Plain Layout
7251 Format
7252 \end_layout
7253
7254 \end_inset
7255
7256  tag.
7257  Any format is acceptable, but one would normally use the format current
7258  at the time.
7259  (In \SpecialChar LyX
7260  
7261 \begin_inset Info
7262 type  "lyxinfo"
7263 arg   "version"
7264 \end_inset
7265
7266 , the current layout format is 
7267 \begin_inset Info
7268 type  "lyxinfo"
7269 arg   "layoutformat"
7270 \end_inset
7271
7272 .)
7273 \end_layout
7274
7275 \begin_layout Standard
7276 When you have entered something in the 
7277 \begin_inset Flex Code
7278 status collapsed
7279
7280 \begin_layout Plain Layout
7281 Local Layout
7282 \end_layout
7283
7284 \end_inset
7285
7286  pane, \SpecialChar LyX
7287  will enable the 
7288 \begin_inset Quotes eld
7289 \end_inset
7290
7291 Validate
7292 \begin_inset Quotes erd
7293 \end_inset
7294
7295  button at the bottom.
7296  Clicking this button will cause \SpecialChar LyX
7297  to determine whether what you have entered
7298  is valid layout information for the chosen format.
7299  \SpecialChar LyX
7300  will report the result but, unfortunately, will not tell you what errors
7301  there might have been.
7302  These will be written to the terminal, however, if \SpecialChar LyX
7303  is started from a terminal.
7304  You will not be permitted to save your local layout until you have entered
7305  something valid.
7306 \end_layout
7307
7308 \begin_layout Standard
7309 The warnings at the end of the previous section apply here, too.
7310  Do not play with local layout while you are actually working, especially
7311  if you have not saved your document.
7312  That said, using local layout with a test document can be a very convenient
7313  way to try out layout ideas, or even to start developing a module.
7314 \end_layout
7315
7316 \begin_layout Subsection
7317 Layout for 
7318 \begin_inset Flex Noun
7319 status collapsed
7320
7321 \begin_layout Plain Layout
7322 .sty
7323 \end_layout
7324
7325 \end_inset
7326
7327  files
7328 \end_layout
7329
7330 \begin_layout Standard
7331 There are two situations you are likely to encounter when wanting to support
7332  a new \SpecialChar LaTeX
7333  document class, involving style (
7334 \begin_inset Flex Code
7335 status collapsed
7336
7337 \begin_layout Plain Layout
7338 .sty
7339 \end_layout
7340
7341 \end_inset
7342
7343 ) files and \SpecialChar LaTeX2e
7344  class (
7345 \begin_inset Flex Code
7346 status collapsed
7347
7348 \begin_layout Plain Layout
7349 .cls
7350 \end_layout
7351
7352 \end_inset
7353
7354 ) .
7355  Supporting a style file is usually fairly easy.
7356  Supporting a new class file is a bit harder.
7357  We'll discuss the former in this section and the latter in the next.
7358  
7359 \change_deleted 5863208 1594239023
7360 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7361 \change_unchanged
7362
7363 \end_layout
7364
7365 \begin_layout Standard
7366 The easier case is the one in which your new document class is provided
7367  as a style file that is to be used in conjunction with an already supported
7368  document class.
7369  For the sake of the example, we'll assume that the style file is called
7370  
7371 \begin_inset Flex Noun
7372 status collapsed
7373
7374 \begin_layout Plain Layout
7375 myclass.sty
7376 \end_layout
7377
7378 \end_inset
7379
7380  and that it is meant to be used with 
7381 \begin_inset Flex Noun
7382 status collapsed
7383
7384 \begin_layout Plain Layout
7385 report.cls
7386 \end_layout
7387
7388 \end_inset
7389
7390 , which is a standard class.
7391  
7392 \end_layout
7393
7394 \begin_layout Standard
7395 Start by copying the existing class's layout file into your local directory:
7396 \begin_inset Foot
7397 status collapsed
7398
7399 \begin_layout Plain Layout
7400 Of course, which directory is your local directory will vary by platform,
7401  and \SpecialChar LyX
7402  allows you to specify your local directory on startup, too, using
7403  the 
7404 \begin_inset Flex Code
7405 status collapsed
7406
7407 \begin_layout Plain Layout
7408 -userdir
7409 \end_layout
7410
7411 \end_inset
7412
7413  option.
7414 \end_layout
7415
7416 \end_inset
7417
7418
7419 \end_layout
7420
7421 \begin_layout LyX-Code
7422 cp report.layout ~/.lyx/layouts/myclass.layout
7423 \end_layout
7424
7425 \begin_layout Standard
7426 Then edit 
7427 \begin_inset Flex Code
7428 status collapsed
7429
7430 \begin_layout Plain Layout
7431 myclass.layout
7432 \end_layout
7433
7434 \end_inset
7435
7436  and change the line: 
7437 \end_layout
7438
7439 \begin_layout LyX-Code
7440
7441 \backslash
7442 DeclareLaTeXClass{Report (Standard Class)}
7443 \end_layout
7444
7445 \begin_layout Standard
7446 to read
7447 \end_layout
7448
7449 \begin_layout LyX-Code
7450
7451 \backslash
7452 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7453 \end_layout
7454
7455 \begin_layout Standard
7456 Then add:
7457 \end_layout
7458
7459 \begin_layout LyX-Code
7460 Preamble 
7461 \begin_inset Newline newline
7462 \end_inset
7463
7464     
7465 \backslash
7466 usepackage{myclass}
7467 \begin_inset Newline newline
7468 \end_inset
7469
7470 EndPreamble
7471 \end_layout
7472
7473 \begin_layout Standard
7474 near the top of the file.
7475 \end_layout
7476
7477 \begin_layout Standard
7478 Start \SpecialChar LyX
7479  and select 
7480 \begin_inset Flex Noun
7481 status collapsed
7482
7483 \begin_layout Plain Layout
7484 Tools\SpecialChar menuseparator
7485 Reconfigure
7486 \end_layout
7487
7488 \end_inset
7489
7490 .
7491  Then restart \SpecialChar LyX
7492  and try creating a new document.
7493  You should see "
7494 \begin_inset Flex Noun
7495 status collapsed
7496
7497 \begin_layout Plain Layout
7498 Report (My Class)
7499 \end_layout
7500
7501 \end_inset
7502
7503 " as a document class option in the 
7504 \begin_inset Flex Noun
7505 status collapsed
7506
7507 \begin_layout Plain Layout
7508 Document\SpecialChar menuseparator
7509 Settings
7510 \end_layout
7511
7512 \end_inset
7513
7514  dialog.
7515  It is likely that some of the sectioning commands and such in your new
7516  class will work differently from how they worked in the base class—
7517 \begin_inset Flex Code
7518 status collapsed
7519
7520 \begin_layout Plain Layout
7521 report
7522 \end_layout
7523
7524 \end_inset
7525
7526  in this example—so you can fiddle around with the settings for the different
7527  sections if you wish.
7528  The layout information for sections is contained in 
7529 \begin_inset Flex Code
7530 status collapsed
7531
7532 \begin_layout Plain Layout
7533 stdsections.inc
7534 \end_layout
7535
7536 \end_inset
7537
7538 , but you do not need to copy and change this file.
7539  Instead, you can simply add your changes to your layout file, after the
7540  line 
7541 \begin_inset Flex Code
7542 status collapsed
7543
7544 \begin_layout Plain Layout
7545 Input stdclass.inc
7546 \end_layout
7547
7548 \end_inset
7549
7550 , which itself includes 
7551 \begin_inset Flex Code
7552 status collapsed
7553
7554 \begin_layout Plain Layout
7555 stdsections.inc
7556 \end_layout
7557
7558 \end_inset
7559
7560 .
7561  For example, you might add these lines:
7562 \end_layout
7563
7564 \begin_layout LyX-Code
7565 Style Chapter
7566 \end_layout
7567
7568 \begin_layout LyX-Code
7569     Font
7570 \end_layout
7571
7572 \begin_layout LyX-Code
7573         Family Sans
7574 \end_layout
7575
7576 \begin_layout LyX-Code
7577     EndFont
7578 \end_layout
7579
7580 \begin_layout LyX-Code
7581 End
7582 \end_layout
7583
7584 \begin_layout Standard
7585 to change the font for chapter headings to sans-serif.
7586  This will override (or, in this case, add to) the existing declaration
7587  for the Chapter style.
7588  
7589 \end_layout
7590
7591 \begin_layout Standard
7592 Your new package may also provide commands or environments not present in
7593  the base class.
7594  In this case, you will want to add these to the layout file.
7595  See 
7596 \begin_inset CommandInset ref
7597 LatexCommand ref
7598 reference "sec:TextClass"
7599
7600 \end_inset
7601
7602  for information on how to do so.
7603 \end_layout
7604
7605 \begin_layout Standard
7606 If 
7607 \begin_inset Flex Noun
7608 status collapsed
7609
7610 \begin_layout Plain Layout
7611 myclass.sty
7612 \end_layout
7613
7614 \end_inset
7615
7616  can be used with several different document classes, and even if it cannot,
7617  you might find it easiest just to write a module that you can load with
7618  the base class.
7619  The simplest possible such module would be:
7620 \end_layout
7621
7622 \begin_layout LyX-Code
7623 #
7624 \backslash
7625 DeclareLyXModule{My Class} 
7626 \end_layout
7627
7628 \begin_layout LyX-Code
7629 #DescriptionBegin 
7630 \end_layout
7631
7632 \begin_layout LyX-Code
7633 #Support for myclass.sty.
7634 \end_layout
7635
7636 \begin_layout LyX-Code
7637 #DescriptionEnd
7638 \begin_inset Newline newline
7639 \end_inset
7640
7641
7642 \end_layout
7643
7644 \begin_layout LyX-Code
7645 Format 
7646 \begin_inset Info
7647 type  "lyxinfo"
7648 arg   "layoutformat"
7649 \end_inset
7650
7651
7652 \begin_inset Newline newline
7653 \end_inset
7654
7655
7656 \end_layout
7657
7658 \begin_layout LyX-Code
7659 Preamble
7660 \begin_inset Newline newline
7661 \end_inset
7662
7663     
7664 \backslash
7665 usepackage{myclass}
7666 \begin_inset Newline newline
7667 \end_inset
7668
7669 EndPreamble
7670 \end_layout
7671
7672 \begin_layout Standard
7673 A more complex module might modify the behavior of some existing constructs
7674  or define some new ones.
7675  Again, see 
7676 \begin_inset CommandInset ref
7677 LatexCommand ref
7678 reference "sec:TextClass"
7679
7680 \end_inset
7681
7682  for discussion.
7683 \end_layout
7684
7685 \begin_layout Subsection
7686 Layout for 
7687 \begin_inset Flex Noun
7688 status collapsed
7689
7690 \begin_layout Plain Layout
7691 .cls
7692 \end_layout
7693
7694 \end_inset
7695
7696  files
7697 \end_layout
7698
7699 \begin_layout Standard
7700 There are two possibilities here.
7701  One is that the class file is itself based upon an existing document class.
7702  For example, many thesis classes are based upon 
7703 \begin_inset Flex Noun
7704 status collapsed
7705
7706 \begin_layout Plain Layout
7707 book.cls
7708 \end_layout
7709
7710 \end_inset
7711
7712 .
7713  To see whether yours is, look for a line like
7714 \end_layout
7715
7716 \begin_layout LyX-Code
7717
7718 \backslash
7719 LoadClass{book}
7720 \end_layout
7721
7722 \begin_layout Standard
7723 in the file.
7724  If so, then you may proceed largely as in the previous section, though
7725  the 
7726 \begin_inset Flex Code
7727 status collapsed
7728
7729 \begin_layout Plain Layout
7730 Declare\SpecialChar LaTeX
7731 Class
7732 \end_layout
7733
7734 \end_inset
7735
7736  line will be different.
7737  If your new class is 
7738 \begin_inset Flex Code
7739 status collapsed
7740
7741 \begin_layout Plain Layout
7742 thesis
7743 \end_layout
7744
7745 \end_inset
7746
7747  and it is based upon 
7748 \begin_inset Flex Code
7749 status collapsed
7750
7751 \begin_layout Plain Layout
7752 book
7753 \end_layout
7754
7755 \end_inset
7756
7757 , then the line should read:
7758 \begin_inset Foot
7759 status collapsed
7760
7761 \begin_layout Plain Layout
7762 And it will be easiest if you save the file to 
7763 \begin_inset Flex Code
7764 status collapsed
7765
7766 \begin_layout Plain Layout
7767 thesis.layout
7768 \end_layout
7769
7770 \end_inset
7771
7772 : \SpecialChar LyX
7773  assumes that the document class has the same name as the layout file.
7774  
7775 \end_layout
7776
7777 \end_inset
7778
7779
7780 \end_layout
7781
7782 \begin_layout LyX-Code
7783
7784 \backslash
7785 DeclareLaTeXClass[thesis,book]{thesis}
7786 \end_layout
7787
7788 \begin_layout Standard
7789 If, on the other hand, the new class is not based upon an existing class,
7790  you will probably have to 
7791 \begin_inset Quotes eld
7792 \end_inset
7793
7794 roll your own
7795 \begin_inset Quotes erd
7796 \end_inset
7797
7798  layout.
7799  We strongly suggest copying an existing layout file which uses a similar
7800  \SpecialChar LaTeX
7801  class and then modifying it, if you can do so.
7802  At least use an existing file as a starting point so you can find out what
7803  items you need to worry about.
7804  Again, the specifics are covered below.
7805 \end_layout
7806
7807 \begin_layout Subsection
7808 Creating templates
7809 \begin_inset CommandInset label
7810 LatexCommand label
7811 name "subsec:Creating-Templates"
7812
7813 \end_inset
7814
7815
7816 \end_layout
7817
7818 \begin_layout Standard
7819 Once you have written a layout file for a new document class, you might
7820  want to consider writing a 
7821 \emph on
7822 template
7823 \emph default
7824  for it, too.
7825  A template acts as a kind of tutorial for your layout, showing how it might
7826  be used, though containing dummy content.
7827  You can of course look at the various templates included with \SpecialChar LyX
7828  for ideas.
7829 \end_layout
7830
7831 \begin_layout Standard
7832 Templates are created just like usual documents: using \SpecialChar LyX
7833 .
7834  The only difference is that usual documents contain all possible settings,
7835  including the font scheme and the paper size.
7836  Usually a user doesn't want a template to overwrite his preferred settings
7837  for such parameters.
7838  For that reason, the designer of a template should remove the corresponding
7839  commands like 
7840 \begin_inset Flex Code
7841 status collapsed
7842
7843 \begin_layout Plain Layout
7844
7845 \backslash
7846 font_roman
7847 \end_layout
7848
7849 \end_inset
7850
7851  or 
7852 \begin_inset Flex Code
7853 status collapsed
7854
7855 \begin_layout Plain Layout
7856
7857 \backslash
7858 papersize
7859 \end_layout
7860
7861 \end_inset
7862
7863  from the template \SpecialChar LyX
7864  file.
7865  This can be done with any simple text-editor, for example 
7866 \begin_inset Flex Code
7867 status collapsed
7868
7869 \begin_layout Plain Layout
7870 vi
7871 \end_layout
7872
7873 \end_inset
7874
7875  or 
7876 \begin_inset Flex Code
7877 status collapsed
7878
7879 \begin_layout Plain Layout
7880 notepad
7881 \end_layout
7882
7883 \end_inset
7884
7885 .
7886 \end_layout
7887
7888 \begin_layout Standard
7889 Put the edited template files you create in 
7890 \begin_inset Flex Code
7891 status collapsed
7892
7893 \begin_layout Plain Layout
7894 UserDir/templates/
7895 \end_layout
7896
7897 \end_inset
7898
7899 , copy the ones you use from the global template directory in 
7900 \begin_inset Flex Code
7901 status collapsed
7902
7903 \begin_layout Plain Layout
7904 LyXDir/templates/
7905 \end_layout
7906
7907 \end_inset
7908
7909  to the same place, and redefine the template path in the 
7910 \begin_inset Flex Noun
7911 status collapsed
7912
7913 \begin_layout Plain Layout
7914 Tools\SpecialChar menuseparator
7915 Preferences\SpecialChar menuseparator
7916 Paths
7917 \end_layout
7918
7919 \end_inset
7920
7921  dialog.
7922 \end_layout
7923
7924 \begin_layout Standard
7925 Note, by the way, that there is a template which has a particular meaning:
7926 \begin_inset Newline linebreak
7927 \end_inset
7928
7929
7930 \begin_inset Flex Code
7931 status collapsed
7932
7933 \begin_layout Plain Layout
7934 defaults.lyx
7935 \end_layout
7936
7937 \end_inset
7938
7939 .
7940  This template is loaded every time you create a new document with 
7941 \begin_inset Flex Noun
7942 status collapsed
7943
7944 \begin_layout Plain Layout
7945 File\SpecialChar menuseparator
7946 New
7947 \end_layout
7948
7949 \end_inset
7950
7951  in order to provide useful defaults.
7952  To create this template from inside \SpecialChar LyX
7953 , all you have to do is to open a document
7954  with the correct settings, and use the 
7955 \begin_inset Flex Noun
7956 status collapsed
7957
7958 \begin_layout Plain Layout
7959 Save as Document Defaults
7960 \end_layout
7961
7962 \end_inset
7963
7964  button.
7965 \end_layout
7966
7967 \begin_layout Subsection
7968 Upgrading old layout files
7969 \end_layout
7970
7971 \begin_layout Standard
7972 The format of layout files changes with each \SpecialChar LyX
7973  release, so old layout files
7974  need to be converted to the new format.
7975  If \SpecialChar LyX
7976  reads a layout file in an older format, it automatically calls the
7977  script 
7978 \begin_inset Flex Code
7979 status collapsed
7980
7981 \begin_layout Plain Layout
7982 layout2layout.py
7983 \end_layout
7984
7985 \end_inset
7986
7987  to convert it to a temporary file in current format.
7988  The original file is left untouched.
7989  If you use the layout file often, then, you may want to convert it permanently,
7990  so that \SpecialChar LyX
7991  does not have to do so itself every time.
7992  To do this, you can call the converter manually:
7993 \end_layout
7994
7995 \begin_layout Enumerate
7996 rename the file 
7997 \begin_inset Flex Code
7998 status collapsed
7999
8000 \begin_layout Plain Layout
8001 myclass.layout
8002 \end_layout
8003
8004 \end_inset
8005
8006  to 
8007 \begin_inset Flex Code
8008 status collapsed
8009
8010 \begin_layout Plain Layout
8011 myclass.old
8012 \end_layout
8013
8014 \end_inset
8015
8016
8017 \end_layout
8018
8019 \begin_layout Enumerate
8020 Call the command
8021 \begin_inset Newline newline
8022 \end_inset
8023
8024
8025 \begin_inset Flex Code
8026 status collapsed
8027
8028 \begin_layout Plain Layout
8029 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8030 \end_layout
8031
8032 \end_inset
8033
8034
8035 \begin_inset Newline newline
8036 \end_inset
8037
8038 where 
8039 \begin_inset Flex Code
8040 status collapsed
8041
8042 \begin_layout Plain Layout
8043 LyXDir
8044 \end_layout
8045
8046 \end_inset
8047
8048  is the name of your \SpecialChar LyX
8049  system directory.
8050 \end_layout
8051
8052 \begin_layout Standard
8053 Note that manual conversion does not affect included files, so these will
8054  have to be converted separately.
8055 \end_layout
8056
8057 \begin_layout Subsection
8058 \begin_inset CommandInset label
8059 LatexCommand label
8060 name "subsec:Cite-Engine-Files"
8061
8062 \end_inset
8063
8064 Cite engine files
8065 \end_layout
8066
8067 \begin_layout Standard
8068 A specific form of layout files are the so-called 
8069 \begin_inset Flex Code
8070 status collapsed
8071
8072 \begin_layout Plain Layout
8073 *.citeengine
8074 \end_layout
8075
8076 \end_inset
8077
8078  files that are located in the 
8079 \begin_inset Flex Code
8080 status collapsed
8081
8082 \begin_layout Plain Layout
8083 citeengines/
8084 \end_layout
8085
8086 \end_inset
8087
8088  sub-directory.
8089  Their purpose is to define the specifics of \SpecialChar LaTeX
8090  packages aimed at bibliography
8091  generation, such as 
8092 \family sans
8093 natbib
8094 \family default
8095 ,
8096 \family sans
8097  jurabib
8098 \family default
8099  or 
8100 \family sans
8101 biblatex
8102 \family default
8103 , but also the way how normal Bib\SpecialChar TeX
8104  citations (without additional packages)
8105  are handled in \SpecialChar LyX
8106  is defined in such a file.
8107  
8108 \end_layout
8109
8110 \begin_layout Standard
8111 More specifically, it is defined which packages \SpecialChar LyX
8112  needs to load, which citation
8113  commands are available, how these are to be displayed in \SpecialChar LyX
8114  (in the workarea,
8115  the dialogs, the context menus) as well as in the XHTML and plain text
8116  output.
8117  Furthermore, the files specify available style variants (author-year, numerical
8118 , etc.) and their specifics.
8119  The cite engine files are also used to generate the options that are available
8120  in 
8121 \family sans
8122 Document\SpecialChar menuseparator
8123 Settings\SpecialChar menuseparator
8124 Bibliography\SpecialChar menuseparator
8125 Style engine
8126 \family default
8127 .
8128 \end_layout
8129
8130 \begin_layout Standard
8131 Even though a cite engine file is essentially a normal layout file that
8132  could theoretically include any layout information, it usually primarily
8133  includes some specific parameters such as 
8134 \begin_inset Flex Code
8135 status collapsed
8136
8137 \begin_layout Plain Layout
8138 MaxCiteNames
8139 \end_layout
8140
8141 \end_inset
8142
8143
8144 \begin_inset Flex Code
8145 status collapsed
8146
8147 \begin_layout Plain Layout
8148 CiteFramework
8149 \end_layout
8150
8151 \end_inset
8152
8153
8154 \begin_inset Flex Code
8155 status collapsed
8156
8157 \begin_layout Plain Layout
8158 CiteEngine
8159 \end_layout
8160
8161 \end_inset
8162
8163  and 
8164 \begin_inset Flex Code
8165 status collapsed
8166
8167 \begin_layout Plain Layout
8168 CiteFormat
8169 \end_layout
8170
8171 \end_inset
8172
8173  blocks.
8174  The syntax of the latter two is described in 
8175 \begin_inset CommandInset ref
8176 LatexCommand ref
8177 reference "subsec:Citation-engine-description"
8178 plural "false"
8179 caps "false"
8180 noprefix "false"
8181
8182 \end_inset
8183
8184  and 
8185 \begin_inset CommandInset ref
8186 LatexCommand ref
8187 reference "subsec:Citation-format-description"
8188
8189 \end_inset
8190
8191 , as well as in the files themselves.
8192 \end_layout
8193
8194 \begin_layout Section
8195 \begin_inset CommandInset label
8196 LatexCommand label
8197 name "sec:TextClass"
8198
8199 \end_inset
8200
8201 The layout file format
8202 \end_layout
8203
8204 \begin_layout Standard
8205 The following sections describe how layout files are structured and written.
8206  Our advice is to go slowly, save and test often.
8207  It is really not that hard, except that the multitude of options can become
8208  overwhelming, especially if you try to check out too many at once.
8209  It becomes easier if you use existing layouts of \SpecialChar LyX
8210  as examples/reference
8211  or if you modify an existing layout to your needs.
8212 \end_layout
8213
8214 \begin_layout Standard
8215 Note that all the tags used in layout files are case-insensitive.
8216  This means that 
8217 \begin_inset Flex Code
8218 status collapsed
8219
8220 \begin_layout Plain Layout
8221 Style
8222 \end_layout
8223
8224 \end_inset
8225
8226
8227 \begin_inset Flex Code
8228 status collapsed
8229
8230 \begin_layout Plain Layout
8231 style
8232 \end_layout
8233
8234 \end_inset
8235
8236  and 
8237 \begin_inset Flex Code
8238 status collapsed
8239
8240 \begin_layout Plain Layout
8241 StYlE
8242 \end_layout
8243
8244 \end_inset
8245
8246  are really the same tag.
8247  The possible arguments are printed in brackets after the tag's name.
8248  The default argument is typeset 
8249 \begin_inset Flex Code
8250 status collapsed
8251
8252 \begin_layout Plain Layout
8253
8254 \emph on
8255 emphasized
8256 \end_layout
8257
8258 \end_inset
8259
8260 .
8261  If the argument has a data type like 
8262 \begin_inset Quotes eld
8263 \end_inset
8264
8265 string
8266 \begin_inset Quotes erd
8267 \end_inset
8268
8269  or 
8270 \begin_inset Quotes eld
8271 \end_inset
8272
8273 float
8274 \begin_inset Quotes erd
8275 \end_inset
8276
8277 , the default is shown like this: 
8278 \begin_inset Flex Code
8279 status collapsed
8280
8281 \begin_layout Plain Layout
8282 float=
8283 \emph on
8284 default
8285 \end_layout
8286
8287 \end_inset
8288
8289 .
8290 \end_layout
8291
8292 \begin_layout Subsection
8293 The document class declaration and classification
8294 \end_layout
8295
8296 \begin_layout Standard
8297 Lines in a layout file which begin with 
8298 \begin_inset Flex Code
8299 status collapsed
8300
8301 \begin_layout Plain Layout
8302 #
8303 \end_layout
8304
8305 \end_inset
8306
8307  are comments.
8308  There is one exception to this rule.
8309  All 
8310 \begin_inset Flex Code
8311 status collapsed
8312
8313 \begin_layout Plain Layout
8314 *.layout
8315 \end_layout
8316
8317 \end_inset
8318
8319  files should begin with lines like:
8320 \end_layout
8321
8322 \begin_layout LyX-Code
8323
8324 \size small
8325 #% Do not delete the line below; configure depends on this 
8326 \end_layout
8327
8328 \begin_layout LyX-Code
8329
8330 \size small
8331 #  
8332 \backslash
8333 DeclareLaTeXClass{Article (Standard Class)}
8334 \end_layout
8335
8336 \begin_layout LyX-Code
8337
8338 \size small
8339 #  
8340 \backslash
8341 DeclareCategory{Articles}
8342 \end_layout
8343
8344 \begin_layout Standard
8345 The second and third lines are used when you (re)configure \SpecialChar LyX
8346 .
8347  The layout file is read by the \SpecialChar LaTeX
8348  script 
8349 \begin_inset Flex Code
8350 status collapsed
8351
8352 \begin_layout Plain Layout
8353 chkconfig.ltx
8354 \end_layout
8355
8356 \end_inset
8357
8358 , in a special mode where 
8359 \begin_inset Flex Code
8360 status collapsed
8361
8362 \begin_layout Plain Layout
8363 #
8364 \end_layout
8365
8366 \end_inset
8367
8368  is ignored.
8369  The first line is just a \SpecialChar LaTeX
8370  comment, the second one contains the mandatory
8371  declaration of the text class and the third line contains the optional
8372  classification of the class.
8373  If these lines appear in a file named 
8374 \begin_inset Flex Code
8375 status collapsed
8376
8377 \begin_layout Plain Layout
8378 article.layout
8379 \end_layout
8380
8381 \end_inset
8382
8383 , then they define a text class of name 
8384 \begin_inset Flex Code
8385 status collapsed
8386
8387 \begin_layout Plain Layout
8388 article
8389 \end_layout
8390
8391 \end_inset
8392
8393  (the name of the layout file) which uses the \SpecialChar LaTeX
8394  document class 
8395 \begin_inset Flex Code
8396 status collapsed
8397
8398 \begin_layout Plain Layout
8399 article.cls
8400 \end_layout
8401
8402 \end_inset
8403
8404  (the default is to use the same name as the layout).
8405  The string 
8406 \begin_inset Quotes eld
8407 \end_inset
8408
8409 Article (Standard Class)
8410 \begin_inset Quotes erd
8411 \end_inset
8412
8413  that appears above is used as a description of the text class in the 
8414 \begin_inset Flex Noun
8415 status collapsed
8416
8417 \begin_layout Plain Layout
8418 Document\SpecialChar menuseparator
8419 Settings
8420 \end_layout
8421
8422 \end_inset
8423
8424  dialog.
8425  The category (
8426 \begin_inset Quotes eld
8427 \end_inset
8428
8429 Articles
8430 \begin_inset Quotes erd
8431 \end_inset
8432
8433  in the example) is also used in the 
8434 \begin_inset Flex Noun
8435 status collapsed
8436
8437 \begin_layout Plain Layout
8438 Document\SpecialChar menuseparator
8439 Settings
8440 \end_layout
8441
8442 \end_inset
8443
8444  dialog: the text classes are grouped by these categories (which are usually
8445  genres, so typical categories are 
8446 \begin_inset Quotes eld
8447 \end_inset
8448
8449 Articles
8450 \begin_inset Quotes erd
8451 \end_inset
8452
8453
8454 \begin_inset Quotes eld
8455 \end_inset
8456
8457 Books
8458 \begin_inset Quotes erd
8459 \end_inset
8460
8461
8462 \begin_inset Quotes eld
8463 \end_inset
8464
8465 Reports
8466 \begin_inset Quotes erd
8467 \end_inset
8468
8469
8470 \begin_inset Quotes eld
8471 \end_inset
8472
8473 Letters
8474 \begin_inset Quotes erd
8475 \end_inset
8476
8477
8478 \begin_inset Quotes eld
8479 \end_inset
8480
8481 Presentations
8482 \begin_inset Quotes erd
8483 \end_inset
8484
8485
8486 \begin_inset Quotes eld
8487 \end_inset
8488
8489 Curricula Vitae
8490 \begin_inset Quotes erd
8491 \end_inset
8492
8493  etc.).
8494  If no category has been declared, the class will be put in the 
8495 \begin_inset Quotes eld
8496 \end_inset
8497
8498 Uncategorized
8499 \begin_inset Quotes erd
8500 \end_inset
8501
8502  group.
8503 \end_layout
8504
8505 \begin_layout Standard
8506 Let's assume that you wrote your own text class that uses the 
8507 \begin_inset Flex Code
8508 status collapsed
8509
8510 \begin_layout Plain Layout
8511 article.cls
8512 \end_layout
8513
8514 \end_inset
8515
8516  document class, but where you changed the appearance of the section headings.
8517  If you put it in a file 
8518 \begin_inset Flex Code
8519 status collapsed
8520
8521 \begin_layout Plain Layout
8522 myarticle.layout
8523 \end_layout
8524
8525 \end_inset
8526
8527 , the header of this file should be:
8528 \end_layout
8529
8530 \begin_layout LyX-Code
8531
8532 \size small
8533 #% Do not delete the line below; configure depends on this 
8534 \end_layout
8535
8536 \begin_layout LyX-Code
8537
8538 \size small
8539 #  
8540 \backslash
8541 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8542 \end_layout
8543
8544 \begin_layout LyX-Code
8545
8546 \size small
8547 #  
8548 \backslash
8549 DeclareCategory{Articles}
8550 \end_layout
8551
8552 \begin_layout Standard
8553 This declares a text class 
8554 \begin_inset Flex Code
8555 status collapsed
8556
8557 \begin_layout Plain Layout
8558 myarticle
8559 \end_layout
8560
8561 \end_inset
8562
8563 , associated with the \SpecialChar LaTeX
8564  document class 
8565 \begin_inset Flex Code
8566 status collapsed
8567
8568 \begin_layout Plain Layout
8569 article.cls
8570 \end_layout
8571
8572 \end_inset
8573
8574  and described as 
8575 \begin_inset Quotes eld
8576 \end_inset
8577
8578 Article (with My Own Headings)
8579 \begin_inset Quotes erd
8580 \end_inset
8581
8582 .
8583  If your text class depends on several packages, you can declare it as:
8584 \end_layout
8585
8586 \begin_layout LyX-Code
8587
8588 \size small
8589 #% Do not delete the line below; configure depends on this 
8590 \end_layout
8591
8592 \begin_layout LyX-Code
8593
8594 \size small
8595 #  
8596 \backslash
8597 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8598 \end_layout
8599
8600 \begin_layout LyX-Code
8601
8602 \size small
8603 #  
8604 \backslash
8605 DeclareCategory{Articles}
8606 \end_layout
8607
8608 \begin_layout Standard
8609 This indicates that your text class uses the 
8610 \begin_inset Flex Code
8611 status collapsed
8612
8613 \begin_layout Plain Layout
8614 foo.sty
8615 \end_layout
8616
8617 \end_inset
8618
8619  package.
8620  
8621 \change_deleted 5863208 1594239179
8622 Finally, it is also possible to declare classes for DocBook code.
8623  Typical declarations will look like:
8624 \end_layout
8625
8626 \begin_layout LyX-Code
8627
8628 \change_deleted 5863208 1594239179
8629
8630 \size small
8631 #% Do not delete the line below; configure depends on this 
8632 \end_layout
8633
8634 \begin_layout LyX-Code
8635
8636 \change_deleted 5863208 1594239179
8637
8638 \size small
8639
8640 \backslash
8641 DeclareDocBookClass[article]{SGML (DocBook Article)}
8642 \end_layout
8643
8644 \begin_layout LyX-Code
8645
8646 \change_deleted 5863208 1594239179
8647
8648 \size small
8649
8650 \backslash
8651 DeclareCategory{Articles (DocBook)}
8652 \change_unchanged
8653
8654 \end_layout
8655
8656 \begin_layout Standard
8657 Note that these declarations can also be given an optional parameter declaring
8658  the name of the document class (but not a list).
8659 \end_layout
8660
8661 \begin_layout Standard
8662 So, to be as explicit as possible, the form of the layout declaration is:
8663 \end_layout
8664
8665 \begin_layout LyX-Code
8666
8667 \size small
8668 #  
8669 \backslash
8670 DeclareLaTeXClass[class,package.sty]{layout description}
8671 \end_layout
8672
8673 \begin_layout LyX-Code
8674
8675 \size small
8676 #  
8677 \backslash
8678 DeclareCategory{category}
8679 \end_layout
8680
8681 \begin_layout Standard
8682 The class need only be specified if the name of the \SpecialChar LaTeX
8683  class file and the
8684  name of the layout file are different or if there are packages to load.
8685  If the name of the class file is not specified, then \SpecialChar LyX
8686  will simply assume
8687  that it is the same as the name of the layout file.
8688 \end_layout
8689
8690 \begin_layout Standard
8691 When the text class has been modified to your taste, all you have to do
8692  is to copy it either to 
8693 \begin_inset Flex Code
8694 status collapsed
8695
8696 \begin_layout Plain Layout
8697 LyXDir/layouts/
8698 \end_layout
8699
8700 \end_inset
8701
8702  or to 
8703 \begin_inset Flex Code
8704 status collapsed
8705
8706 \begin_layout Plain Layout
8707 UserDir/layouts
8708 \end_layout
8709
8710 \end_inset
8711
8712 , run 
8713 \begin_inset Flex Noun
8714 status collapsed
8715
8716 \begin_layout Plain Layout
8717 Tools\SpecialChar menuseparator
8718 Reconfigure
8719 \end_layout
8720
8721 \end_inset
8722
8723 , exit \SpecialChar LyX
8724  and restart.
8725  Then your new text class should be available along with the others.
8726 \end_layout
8727
8728 \begin_layout Standard
8729 Once the layout file is installed, you can edit it and see your changes
8730  without having to reconfigure or to restart \SpecialChar LyX
8731 .
8732 \begin_inset Foot
8733 status collapsed
8734
8735 \begin_layout Plain Layout
8736 In versions of \SpecialChar LyX
8737  prior to 1.6, this was not true.
8738  As a result, editing layout files was very time consuming, since you had
8739  constantly to restart \SpecialChar LyX
8740  to see changes.
8741 \end_layout
8742
8743 \end_inset
8744
8745  You can force a reload of the current layout by using the \SpecialChar LyX
8746  function 
8747 \begin_inset Flex Noun
8748 status collapsed
8749
8750 \begin_layout Plain Layout
8751 layout-reload
8752 \end_layout
8753
8754 \end_inset
8755
8756 .
8757  There is no default binding for this function—though, of course, you can
8758  bind it to a key yourself.
8759  But you will normally use this function simply by entering it in the mini-buffe
8760 r.
8761  
8762 \end_layout
8763
8764 \begin_layout Standard
8765
8766 \emph on
8767 Warning
8768 \emph default
8769
8770 \begin_inset Flex Noun
8771 status collapsed
8772
8773 \begin_layout Plain Layout
8774 layout-reload
8775 \end_layout
8776
8777 \end_inset
8778
8779  is very much an `advanced feature'.
8780  It is 
8781 \emph on
8782 strongly
8783 \emph default
8784  recommended that you save your work before using this function.
8785  In fact, it is 
8786 \emph on
8787 strongly
8788 \emph default
8789  recommended that you not attempt to edit layout information while simultaneousl
8790 y working on a document that you care about.
8791  Use a test document.
8792  Syntax errors and the like in your layout file could cause peculiar behavior.
8793  In particular, such errors could cause \SpecialChar LyX
8794  to regard the current layout as
8795  invalid and to attempt to switch to some other layout.
8796 \begin_inset Foot
8797 status collapsed
8798
8799 \begin_layout Plain Layout
8800 Really bad syntax errors may even caused \SpecialChar LyX
8801  to exit.
8802  This is because certain sorts of errors may make \SpecialChar LyX
8803  unable to read 
8804 \emph on
8805 any
8806 \emph default
8807  layout information.
8808  Please be careful.
8809 \end_layout
8810
8811 \end_inset
8812
8813  The \SpecialChar LyX
8814  team strives to keep \SpecialChar LyX
8815  stable in such situations, but safe is better
8816  than sorry.
8817 \begin_inset Foot
8818 status collapsed
8819
8820 \begin_layout Plain Layout
8821 While we're giving advice: make regular backups.
8822  And be nice to your mother.
8823 \end_layout
8824
8825 \end_inset
8826
8827
8828 \end_layout
8829
8830 \begin_layout Subsection
8831 The Module declaration
8832 \end_layout
8833
8834 \begin_layout Standard
8835 A module must begin with a line like the following:
8836 \end_layout
8837
8838 \begin_layout LyX-Code
8839 #
8840 \backslash
8841 DeclareLyXModule[endnotes.sty]{Endnotes}
8842 \change_inserted -712698321 1554395911
8843
8844 \end_layout
8845
8846 \begin_layout LyX-Code
8847
8848 \change_inserted -712698321 1554395924
8849
8850 \size small
8851 #
8852 \backslash
8853 DeclareCategory{Foot- and Endnotes}
8854 \change_deleted -712698321 1554395911
8855
8856 \size default
8857  
8858 \change_unchanged
8859
8860 \end_layout
8861
8862 \begin_layout Standard
8863 The mandatory argument
8864 \change_inserted -712698321 1554395956
8865  of 
8866 \family typewriter
8867
8868 \backslash
8869 DeclareLyXModule
8870 \change_unchanged
8871
8872 \family default
8873 , in curly brackets, is the name of the module, as it should appear in 
8874 \begin_inset Flex Noun
8875 status collapsed
8876
8877 \begin_layout Plain Layout
8878 Document\SpecialChar menuseparator
8879 Settings\SpecialChar menuseparator
8880 Modules
8881 \end_layout
8882
8883 \end_inset
8884
8885 .
8886  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8887  packages
8888  on which the module depends.
8889  It is also possible to use the form 
8890 \begin_inset Flex Noun
8891 status collapsed
8892
8893 \begin_layout Plain Layout
8894 from->to
8895 \end_layout
8896
8897 \end_inset
8898
8899  as an optional argument, which declares that the module can only be used
8900  when there exists a conversion chain between the formats `
8901 \begin_inset Flex Code
8902 status collapsed
8903
8904 \begin_layout Plain Layout
8905 from
8906 \end_layout
8907
8908 \end_inset
8909
8910 ' and `
8911 \begin_inset Flex Code
8912 status collapsed
8913
8914 \begin_layout Plain Layout
8915 to
8916 \end_layout
8917
8918 \end_inset
8919
8920 '.
8921
8922 \change_inserted -712698321 1554396133
8923  The 
8924 \family typewriter
8925
8926 \backslash
8927 DeclareCategory
8928 \family default
8929  declaration is not strictly mandatory, but you should add it, since it
8930  is helpful to find the module.
8931  Please have a look at the existing module categories and if appropriate,
8932  use one of those.
8933 \change_unchanged
8934
8935 \end_layout
8936
8937 \begin_layout Standard
8938 The module 
8939 \change_inserted -712698321 1554395988
8940 and category 
8941 \change_unchanged
8942 declaration should then be followed by lines like the following:
8943 \begin_inset Foot
8944 status collapsed
8945
8946 \begin_layout Plain Layout
8947 Preferably in English if the module should be published with \SpecialChar LyX
8948 .
8949  This description will appear in the list of messages to be translated and
8950  will be thus translated with the next interface update.
8951 \end_layout
8952
8953 \end_inset
8954
8955
8956 \end_layout
8957
8958 \begin_layout LyX-Code
8959 #DescriptionBegin 
8960 \end_layout
8961
8962 \begin_layout LyX-Code
8963 #Adds an endnote command, in addition to footnotes.
8964  
8965 \end_layout
8966
8967 \begin_layout LyX-Code
8968 #You will need to add  
8969 \backslash
8970 theendnotes in TeX code where you 
8971 \end_layout
8972
8973 \begin_layout LyX-Code
8974 #want the endnotes to appear.
8975  
8976 \end_layout
8977
8978 \begin_layout LyX-Code
8979 #DescriptionEnd 
8980 \end_layout
8981
8982 \begin_layout LyX-Code
8983 #Requires: somemodule | othermodule
8984 \end_layout
8985
8986 \begin_layout LyX-Code
8987 #Excludes: badmodule
8988 \end_layout
8989
8990 \begin_layout Standard
8991 The description is used in 
8992 \begin_inset Flex Noun
8993 status collapsed
8994
8995 \begin_layout Plain Layout
8996 Document\SpecialChar menuseparator
8997 Settings\SpecialChar menuseparator
8998 Modules
8999 \end_layout
9000
9001 \end_inset
9002
9003  to provide the user with information about what the module does.
9004  The 
9005 \begin_inset Flex Code
9006 status collapsed
9007
9008 \begin_layout Plain Layout
9009 Requires
9010 \end_layout
9011
9012 \end_inset
9013
9014  line is used to identify other modules with which this one must be used;
9015  the 
9016 \begin_inset Flex Code
9017 status collapsed
9018
9019 \begin_layout Plain Layout
9020 Excludes
9021 \end_layout
9022
9023 \end_inset
9024
9025  line is used to identify modules with which this one may not be used.
9026  Both are optional, and, as shown, multiple modules should be separated
9027  with the pipe symbol: |.
9028  Note that the required modules are treated disjunctively: 
9029 \emph on
9030 at least one
9031 \emph default
9032  of the required modules must be used.
9033  Similarly, 
9034 \emph on
9035 no
9036 \emph default
9037  excluded module may be used.
9038  Note that modules are identified here by their filenames without the 
9039 \begin_inset Flex Code
9040 status collapsed
9041
9042 \begin_layout Plain Layout
9043 .module
9044 \end_layout
9045
9046 \end_inset
9047
9048  extension.
9049  So 
9050 \begin_inset Flex Code
9051 status collapsed
9052
9053 \begin_layout Plain Layout
9054 somemodule
9055 \end_layout
9056
9057 \end_inset
9058
9059  is really 
9060 \begin_inset Flex Code
9061 status collapsed
9062
9063 \begin_layout Plain Layout
9064 somemodule.module
9065 \end_layout
9066
9067 \end_inset
9068
9069 .
9070 \end_layout
9071
9072 \begin_layout Subsection
9073 The CiteEngine file declaration
9074 \end_layout
9075
9076 \begin_layout Standard
9077 A cite engine file must begin with a line like the following:
9078 \end_layout
9079
9080 \begin_layout LyX-Code
9081 #
9082 \backslash
9083 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9084 \end_layout
9085
9086 \begin_layout Standard
9087 The mandatory argument, in curly brackets, is the name of the cite style,
9088  as it should appear in 
9089 \begin_inset Flex Noun
9090 status collapsed
9091
9092 \begin_layout Plain Layout
9093 Document\SpecialChar menuseparator
9094 Settings\SpecialChar menuseparator
9095 Bibliography
9096 \end_layout
9097
9098 \end_inset
9099
9100 .
9101  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
9102  packages
9103  on which the cite engine depends.
9104 \end_layout
9105
9106 \begin_layout Standard
9107 The cite engine declaration should then be followed by lines like the following:
9108 \begin_inset Foot
9109 status collapsed
9110
9111 \begin_layout Plain Layout
9112 Preferably in English if the module should be published with \SpecialChar LyX
9113 .
9114  This description will appear in the list of messages to be translated and
9115  will be thus translated with the next interface update.
9116 \end_layout
9117
9118 \end_inset
9119
9120
9121 \end_layout
9122
9123 \begin_layout LyX-Code
9124 # DescriptionBegin
9125 \end_layout
9126
9127 \begin_layout LyX-Code
9128 #   Biblatex supports many author-year and numerical styles.
9129 \end_layout
9130
9131 \begin_layout LyX-Code
9132 #   It is mainly aimed at the Humanities.
9133  It is highly
9134 \end_layout
9135
9136 \begin_layout LyX-Code
9137 #   customizable, fully localized and provides many features
9138 \end_layout
9139
9140 \begin_layout LyX-Code
9141 #   that are not possible with BibTeX.
9142  The use of 'biber' as
9143 \end_layout
9144
9145 \begin_layout LyX-Code
9146 #   bibliography processor is advised.
9147 \end_layout
9148
9149 \begin_layout LyX-Code
9150 # DescriptionEnd
9151 \end_layout
9152
9153 \begin_layout Standard
9154 The description is used in 
9155 \begin_inset Flex Noun
9156 status collapsed
9157
9158 \begin_layout Plain Layout
9159 Document\SpecialChar menuseparator
9160 Settings\SpecialChar menuseparator
9161 Bibliography
9162 \end_layout
9163
9164 \end_inset
9165
9166  to provide the user with information about the cite engine.
9167 \end_layout
9168
9169 \begin_layout Subsection
9170 Format number
9171 \end_layout
9172
9173 \begin_layout Standard
9174 The first non-comment line of any layout file, included file, or module
9175  
9176 \emph on
9177 must
9178 \emph default
9179  contain the file format number:
9180 \end_layout
9181
9182 \begin_layout Description
9183 \begin_inset Flex Code
9184 status collapsed
9185
9186 \begin_layout Plain Layout
9187 Format
9188 \end_layout
9189
9190 \end_inset
9191
9192  [
9193 \begin_inset Flex Code
9194 status collapsed
9195
9196 \begin_layout Plain Layout
9197 int
9198 \end_layout
9199
9200 \end_inset
9201
9202 ] The format number of the layout file.
9203 \end_layout
9204
9205 \begin_layout Standard
9206 This tag was introduced with \SpecialChar LyX
9207
9208 \begin_inset space ~
9209 \end_inset
9210
9211 1.4.0.
9212  Layout files from older \SpecialChar LyX
9213  versions do not have an explicit file format and
9214  are considered to have 
9215 \begin_inset Flex Code
9216 status collapsed
9217
9218 \begin_layout Plain Layout
9219 Format
9220 \begin_inset space ~
9221 \end_inset
9222
9223 1
9224 \end_layout
9225
9226 \end_inset
9227
9228 .
9229  The format for the present version of \SpecialChar LyX
9230  is format 60.
9231  But each version of \SpecialChar LyX
9232  is capable of reading earlier versions' layout files,
9233  just as they are capable of reading files produced by earlier versions
9234  of \SpecialChar LyX
9235 .
9236  There is, however, no provision for converting to earlier formats.
9237 \end_layout
9238
9239 \begin_layout Subsection
9240 \begin_inset CommandInset label
9241 LatexCommand label
9242 name "subsec:General-text-class"
9243
9244 \end_inset
9245
9246 General text class parameters
9247 \end_layout
9248
9249 \begin_layout Standard
9250 These are general parameters that govern the behavior of an entire document
9251  class.
9252  (This does 
9253 \emph on
9254 not
9255 \emph default
9256  mean that they must appear in 
9257 \begin_inset Flex Code
9258 status collapsed
9259
9260 \begin_layout Plain Layout
9261 .layout
9262 \end_layout
9263
9264 \end_inset
9265
9266  files rather than in modules.
9267  A module can contain any layout tag.)
9268 \end_layout
9269
9270 \begin_layout Description
9271
9272 \change_inserted -712698321 1526899478
9273 \begin_inset Flex Code
9274 status collapsed
9275
9276 \begin_layout Plain Layout
9277
9278 \change_inserted -712698321 1526898610
9279 AddToCiteEngine <engine>
9280 \change_unchanged
9281
9282 \end_layout
9283
9284 \end_inset
9285
9286  Extends the possibilities for displaying citation references.
9287  See 
9288 \begin_inset CommandInset ref
9289 LatexCommand ref
9290 reference "subsec:Citation-engine-description"
9291 plural "false"
9292 caps "false"
9293 noprefix "false"
9294
9295 \end_inset
9296
9297  for details.
9298  Must end with 
9299 \begin_inset Flex Code
9300 status collapsed
9301
9302 \begin_layout Plain Layout
9303
9304 \change_inserted -712698321 1526898823
9305 End
9306 \change_unchanged
9307
9308 \end_layout
9309
9310 \end_inset
9311
9312 .
9313 \end_layout
9314
9315 \begin_layout Description
9316 \begin_inset Flex Code
9317 status collapsed
9318
9319 \begin_layout Plain Layout
9320 AddToHTMLPreamble
9321 \end_layout
9322
9323 \end_inset
9324
9325  Adds information that will be output in the 
9326 \begin_inset Flex Code
9327 status collapsed
9328
9329 \begin_layout Plain Layout
9330 <head>
9331 \end_layout
9332
9333 \end_inset
9334
9335  block when the document is output to XHTML.
9336  Typically, this would be used to output CSS style information, but it can
9337  be used for anything that can appear in 
9338 \begin_inset Flex Code
9339 status collapsed
9340
9341 \begin_layout Plain Layout
9342 <head>
9343 \end_layout
9344
9345 \end_inset
9346
9347 .
9348  Must end with 
9349 \begin_inset Quotes eld
9350 \end_inset
9351
9352
9353 \begin_inset Flex Code
9354 status collapsed
9355
9356 \begin_layout Plain Layout
9357 EndPreamble
9358 \end_layout
9359
9360 \end_inset
9361
9362
9363 \begin_inset Quotes erd
9364 \end_inset
9365
9366 .
9367 \end_layout
9368
9369 \begin_layout Description
9370 \begin_inset Flex Code
9371 status collapsed
9372
9373 \begin_layout Plain Layout
9374 AddToPreamble
9375 \end_layout
9376
9377 \end_inset
9378
9379  Adds information to the document preamble.
9380  Must end with
9381 \begin_inset Newline newline
9382 \end_inset
9383
9384
9385 \begin_inset Quotes eld
9386 \end_inset
9387
9388
9389 \begin_inset Flex Code
9390 status collapsed
9391
9392 \begin_layout Plain Layout
9393 EndPreamble
9394 \end_layout
9395
9396 \end_inset
9397
9398
9399 \begin_inset Quotes erd
9400 \end_inset
9401
9402 .
9403 \change_inserted -712698321 1562592950
9404
9405 \end_layout
9406
9407 \begin_layout Description
9408
9409 \change_inserted -712698321 1562593040
9410 \begin_inset Flex Code
9411 status collapsed
9412
9413 \begin_layout Plain Layout
9414
9415 \change_inserted -712698321 1562592954
9416 BibInToc
9417 \change_unchanged
9418
9419 \end_layout
9420
9421 \end_inset
9422
9423  [
9424 \begin_inset Flex Code
9425 status collapsed
9426
9427 \begin_layout Plain Layout
9428
9429 \change_inserted -712698321 1562592950
9430
9431 \emph on
9432 0
9433 \change_unchanged
9434
9435 \end_layout
9436
9437 \end_inset
9438
9439 ,
9440 \begin_inset space \thinspace{}
9441 \end_inset
9442
9443
9444 \begin_inset Flex Code
9445 status collapsed
9446
9447 \begin_layout Plain Layout
9448
9449 \change_inserted -712698321 1562592950
9450 1
9451 \change_unchanged
9452
9453 \end_layout
9454
9455 \end_inset
9456
9457 ] If the document class adds the bibliography to the table of contents,
9458  add this option with value 
9459 \begin_inset Flex Code
9460 status collapsed
9461
9462 \begin_layout Plain Layout
9463
9464 \change_inserted -712698321 1562592996
9465 1
9466 \change_unchanged
9467
9468 \end_layout
9469
9470 \end_inset
9471
9472  (or 
9473 \begin_inset Flex Code
9474 status collapsed
9475
9476 \begin_layout Plain Layout
9477
9478 \change_inserted -712698321 1562593006
9479 true
9480 \change_unchanged
9481
9482 \end_layout
9483
9484 \end_inset
9485
9486 ).
9487  This prevents the bibliography from being added twice.
9488 \change_unchanged
9489
9490 \end_layout
9491
9492 \begin_layout Description
9493 \begin_inset Flex Code
9494 status collapsed
9495
9496 \begin_layout Plain Layout
9497 CiteEngine <engine>
9498 \end_layout
9499
9500 \end_inset
9501
9502  Defines the possibilities for displaying citation references.
9503  See 
9504 \begin_inset CommandInset ref
9505 LatexCommand ref
9506 reference "subsec:Citation-engine-description"
9507 plural "false"
9508 caps "false"
9509 noprefix "false"
9510
9511 \end_inset
9512
9513  for details.
9514  Must end with 
9515 \begin_inset Quotes eld
9516 \end_inset
9517
9518
9519 \begin_inset Flex Code
9520 status collapsed
9521
9522 \begin_layout Plain Layout
9523 End
9524 \end_layout
9525
9526 \end_inset
9527
9528
9529 \begin_inset Quotes erd
9530 \end_inset
9531
9532 .
9533  Primarily used in cite engine files (see 
9534 \begin_inset CommandInset ref
9535 LatexCommand ref
9536 reference "subsec:Cite-Engine-Files"
9537 plural "false"
9538 caps "false"
9539 noprefix "false"
9540
9541 \end_inset
9542
9543 ).
9544
9545 \change_inserted -712698321 1526898530
9546  Note that if you specify this in a layout file or module, any cite engine
9547  definition will be overridden.
9548  Also see 
9549 \begin_inset Flex Code
9550 status collapsed
9551
9552 \begin_layout Plain Layout
9553
9554 \change_inserted -712698321 1526898530
9555 AddToCiteEngine
9556 \change_unchanged
9557
9558 \end_layout
9559
9560 \end_inset
9561
9562 .
9563 \change_unchanged
9564
9565 \end_layout
9566
9567 \begin_layout Description
9568 \begin_inset Flex Code
9569 status collapsed
9570
9571 \begin_layout Plain Layout
9572 CiteFormat
9573 \end_layout
9574
9575 \end_inset
9576
9577  Defines formats for use in the display of bibliographic information.
9578  See 
9579 \begin_inset CommandInset ref
9580 LatexCommand ref
9581 reference "subsec:Citation-format-description"
9582
9583 \end_inset
9584
9585  for details.
9586  Must end with 
9587 \begin_inset Quotes eld
9588 \end_inset
9589
9590
9591 \begin_inset Flex Code
9592 status collapsed
9593
9594 \begin_layout Plain Layout
9595 End
9596 \end_layout
9597
9598 \end_inset
9599
9600
9601 \begin_inset Quotes erd
9602 \end_inset
9603
9604 .
9605  Primarily used in cite engine files (see 
9606 \begin_inset CommandInset ref
9607 LatexCommand ref
9608 reference "subsec:Cite-Engine-Files"
9609 plural "false"
9610 caps "false"
9611 noprefix "false"
9612
9613 \end_inset
9614
9615 ).
9616
9617 \change_inserted -712698321 1526898585
9618  A cite format defined in a layout or module will override the cite engine
9619  definition.
9620 \change_unchanged
9621
9622 \end_layout
9623
9624 \begin_layout Description
9625 \begin_inset Flex Code
9626 status collapsed
9627
9628 \begin_layout Plain Layout
9629 CiteFramework
9630 \end_layout
9631
9632 \end_inset
9633
9634  [
9635 \begin_inset Flex Code
9636 status collapsed
9637
9638 \begin_layout Plain Layout
9639
9640 \emph on
9641 bibtex
9642 \end_layout
9643
9644 \end_inset
9645
9646 ,
9647 \begin_inset Flex Code
9648 status collapsed
9649
9650 \begin_layout Plain Layout
9651 biblatex
9652 \end_layout
9653
9654 \end_inset
9655
9656 ] Determines whether 
9657 \family sans
9658 Biblatex
9659 \family default
9660  or Bib\SpecialChar TeX
9661  is used to generate a Bibliography.
9662  Primarily used in cite engine files (see 
9663 \begin_inset CommandInset ref
9664 LatexCommand ref
9665 reference "subsec:Cite-Engine-Files"
9666 plural "false"
9667 caps "false"
9668 noprefix "false"
9669
9670 \end_inset
9671
9672 ).
9673 \end_layout
9674
9675 \begin_layout Description
9676 \begin_inset Flex Code
9677 status collapsed
9678
9679 \begin_layout Plain Layout
9680 ClassOptions
9681 \end_layout
9682
9683 \end_inset
9684
9685  Describes various global options supported by the document class.
9686  See 
9687 \begin_inset CommandInset ref
9688 LatexCommand ref
9689 reference "subsec:ClassOptions"
9690
9691 \end_inset
9692
9693  for a description.
9694  Must end with 
9695 \begin_inset Quotes eld
9696 \end_inset
9697
9698
9699 \begin_inset Flex Code
9700 status collapsed
9701
9702 \begin_layout Plain Layout
9703 End
9704 \end_layout
9705
9706 \end_inset
9707
9708
9709 \begin_inset Quotes erd
9710 \end_inset
9711
9712 .
9713 \end_layout
9714
9715 \begin_layout Description
9716 \begin_inset Flex Code
9717 status collapsed
9718
9719 \begin_layout Plain Layout
9720 Columns
9721 \end_layout
9722
9723 \end_inset
9724
9725  [
9726 \begin_inset Flex Code
9727 status collapsed
9728
9729 \begin_layout Plain Layout
9730
9731 \emph on
9732 1
9733 \end_layout
9734
9735 \end_inset
9736
9737 ,
9738 \begin_inset space \thinspace{}
9739 \end_inset
9740
9741
9742 \begin_inset Flex Code
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746 2
9747 \end_layout
9748
9749 \end_inset
9750
9751 ] Whether the class should 
9752 \emph on
9753 default
9754 \emph default
9755  to having one or two columns.
9756  Can be changed in the 
9757 \begin_inset Flex Noun
9758 status collapsed
9759
9760 \begin_layout Plain Layout
9761 Document\SpecialChar menuseparator
9762 Settings
9763 \end_layout
9764
9765 \end_inset
9766
9767  dialog.
9768 \end_layout
9769
9770 \begin_layout Description
9771 \begin_inset Flex Code
9772 status collapsed
9773
9774 \begin_layout Plain Layout
9775 Counter
9776 \end_layout
9777
9778 \end_inset
9779
9780  [
9781 \begin_inset Flex Code
9782 status collapsed
9783
9784 \begin_layout Plain Layout
9785 string
9786 \end_layout
9787
9788 \end_inset
9789
9790 ] This sequence defines the properties for a counter.
9791  If the counter does not yet exist, it is created; if it does exist, it
9792  is modified.
9793  Must end with 
9794 \begin_inset Quotes eld
9795 \end_inset
9796
9797
9798 \begin_inset Flex Code
9799 status collapsed
9800
9801 \begin_layout Plain Layout
9802 End
9803 \end_layout
9804
9805 \end_inset
9806
9807
9808 \begin_inset Quotes erd
9809 \end_inset
9810
9811 .
9812 \begin_inset Newline newline
9813 \end_inset
9814
9815 See 
9816 \begin_inset CommandInset ref
9817 LatexCommand ref
9818 reference "subsec:Counters"
9819
9820 \end_inset
9821
9822  for details on counters.
9823 \end_layout
9824
9825 \begin_layout Description
9826 \begin_inset Flex Code
9827 status collapsed
9828
9829 \begin_layout Plain Layout
9830 DefaultFont
9831 \end_layout
9832
9833 \end_inset
9834
9835  Sets the default font used to display the document.
9836  See 
9837 \begin_inset CommandInset ref
9838 LatexCommand ref
9839 reference "subsec:Font-description"
9840
9841 \end_inset
9842
9843  for how to declare fonts.
9844  Must end with 
9845 \begin_inset Quotes eld
9846 \end_inset
9847
9848
9849 \begin_inset Flex Code
9850 status collapsed
9851
9852 \begin_layout Plain Layout
9853 EndFont
9854 \end_layout
9855
9856 \end_inset
9857
9858
9859 \begin_inset Quotes erd
9860 \end_inset
9861
9862 .
9863 \end_layout
9864
9865 \begin_layout Description
9866 \begin_inset Flex Code
9867 status collapsed
9868
9869 \begin_layout Plain Layout
9870 DefaultModule
9871 \end_layout
9872
9873 \end_inset
9874
9875  [
9876 \begin_inset Flex Code
9877 status collapsed
9878
9879 \begin_layout Plain Layout
9880 <module>
9881 \end_layout
9882
9883 \end_inset
9884
9885 ] Specifies a module to be included by default with this document class.
9886  The module is specified as filename without the 
9887 \begin_inset Flex Code
9888 status collapsed
9889
9890 \begin_layout Plain Layout
9891 .module
9892 \end_layout
9893
9894 \end_inset
9895
9896  extension.
9897  The user can still remove the module, but it will be active at the outset.
9898  (This applies only when new files are created, or when this class is chosen
9899  for an existing document.)
9900 \end_layout
9901
9902 \begin_layout Description
9903 \begin_inset Flex Code
9904 status collapsed
9905
9906 \begin_layout Plain Layout
9907 DefaultStyle
9908 \end_layout
9909
9910 \end_inset
9911
9912  [
9913 \begin_inset Flex Code
9914 status collapsed
9915
9916 \begin_layout Plain Layout
9917 <style>
9918 \end_layout
9919
9920 \end_inset
9921
9922 ] This is the style that will be assigned to new paragraphs, usually 
9923 \begin_inset Flex Noun
9924 status collapsed
9925
9926 \begin_layout Plain Layout
9927 Standard
9928 \end_layout
9929
9930 \end_inset
9931
9932 .
9933  This will default to the first defined style if not given, but you are
9934  encouraged to use this directive.
9935 \end_layout
9936
9937 \begin_layout Description
9938
9939 \change_inserted -970929547 1515112870
9940 \begin_inset Flex Code
9941 status collapsed
9942
9943 \begin_layout Plain Layout
9944
9945 \change_inserted -970929547 1515112782
9946 DocBookRoot
9947 \change_unchanged
9948
9949 \end_layout
9950
9951 \end_inset
9952
9953  [
9954 \begin_inset Flex Code
9955 status collapsed
9956
9957 \begin_layout Plain Layout
9958
9959 \change_inserted -970929547 1515112766
9960 string
9961 \change_unchanged
9962
9963 \end_layout
9964
9965 \end_inset
9966
9967 ] The root element (at the top of the document) to use when outputting documents
9968  with this class in DocBook.
9969  The default value is 
9970 \begin_inset Quotes eld
9971 \end_inset
9972
9973
9974 \begin_inset Flex Code
9975 status collapsed
9976
9977 \begin_layout Plain Layout
9978
9979 \change_inserted -970929547 1515112845
9980 article
9981 \change_unchanged
9982
9983 \end_layout
9984
9985 \end_inset
9986
9987
9988 \begin_inset Quotes erd
9989 \end_inset
9990
9991 .
9992
9993 \change_deleted 1075283030 1594226862
9994  
9995 \change_inserted 1075283030 1594226777
9996
9997 \end_layout
9998
9999 \begin_layout Description
10000
10001 \change_inserted 1075283030 1594226859
10002 \begin_inset Flex Code
10003 status collapsed
10004
10005 \begin_layout Plain Layout
10006
10007 \change_inserted 1075283030 1594226785
10008 DocBookForceAbstract
10009 \change_unchanged
10010
10011 \end_layout
10012
10013 \end_inset
10014
10015  [
10016 \begin_inset Flex Code
10017 status collapsed
10018
10019 \begin_layout Plain Layout
10020
10021 \change_inserted 1075283030 1594226804
10022 boolean
10023 \change_unchanged
10024
10025 \end_layout
10026
10027 \end_inset
10028
10029 ] If 
10030 \begin_inset Quotes eld
10031 \end_inset
10032
10033
10034 \family typewriter
10035 true
10036 \family default
10037
10038 \begin_inset Quotes erd
10039 \end_inset
10040
10041 , the root element will always have an 
10042 \family typewriter
10043 <abstract>
10044 \family default
10045  tag.
10046  The default value is 
10047 \begin_inset Quotes eld
10048 \end_inset
10049
10050
10051 \family typewriter
10052 false
10053 \family default
10054
10055 \begin_inset Quotes erd
10056 \end_inset
10057
10058 .
10059 \change_unchanged
10060
10061 \end_layout
10062
10063 \begin_layout Description
10064 \begin_inset Flex Code
10065 status collapsed
10066
10067 \begin_layout Plain Layout
10068 ExcludesModule
10069 \end_layout
10070
10071 \end_inset
10072
10073  [
10074 \begin_inset Flex Code
10075 status collapsed
10076
10077 \begin_layout Plain Layout
10078 <module>
10079 \end_layout
10080
10081 \end_inset
10082
10083 ] This tag indicates that the module (which is specified by filename without
10084  the 
10085 \begin_inset Flex Code
10086 status collapsed
10087
10088 \begin_layout Plain Layout
10089 .module
10090 \end_layout
10091
10092 \end_inset
10093
10094  extension) cannot be used with this document class.
10095  This might be used in a journal-specific layout file to prevent, say, the
10096  use of the 
10097 \begin_inset Flex Code
10098 status collapsed
10099
10100 \begin_layout Plain Layout
10101 theorems-sec
10102 \end_layout
10103
10104 \end_inset
10105
10106  module that numbers theorems by section.
10107  This tag may 
10108 \emph on
10109 not
10110 \emph default
10111  be used in a module.
10112  Modules have their own way of excluding other modules (see 
10113 \begin_inset CommandInset ref
10114 LatexCommand ref
10115 reference "subsec:Layout-modules"
10116
10117 \end_inset
10118
10119 ).
10120 \end_layout
10121
10122 \begin_layout Description
10123 \begin_inset Flex Code
10124 status collapsed
10125
10126 \begin_layout Plain Layout
10127 Float
10128 \end_layout
10129
10130 \end_inset
10131
10132  Defines a new float.
10133  See 
10134 \begin_inset CommandInset ref
10135 LatexCommand ref
10136 reference "subsec:Floats"
10137
10138 \end_inset
10139
10140  for details.
10141  Must end with 
10142 \begin_inset Quotes eld
10143 \end_inset
10144
10145
10146 \begin_inset Flex Code
10147 status collapsed
10148
10149 \begin_layout Plain Layout
10150 End
10151 \end_layout
10152
10153 \end_inset
10154
10155
10156 \begin_inset Quotes erd
10157 \end_inset
10158
10159 .
10160 \end_layout
10161
10162 \begin_layout Description
10163 \begin_inset Flex Code
10164 status collapsed
10165
10166 \begin_layout Plain Layout
10167 HTMLPreamble
10168 \end_layout
10169
10170 \end_inset
10171
10172  Sets the information that will be output in the 
10173 \begin_inset Flex Code
10174 status collapsed
10175
10176 \begin_layout Plain Layout
10177 <head>
10178 \end_layout
10179
10180 \end_inset
10181
10182  block when this document class is output to XHTML.
10183  Note that this will completely override any prior 
10184 \begin_inset Flex Code
10185 status collapsed
10186
10187 \begin_layout Plain Layout
10188 HTMLPreamble
10189 \end_layout
10190
10191 \end_inset
10192
10193  or 
10194 \begin_inset Flex Code
10195 status collapsed
10196
10197 \begin_layout Plain Layout
10198 AddToHTMLPreamble
10199 \end_layout
10200
10201 \end_inset
10202
10203  declarations.
10204  (Use
10205 \begin_inset Newline newline
10206 \end_inset
10207
10208
10209 \begin_inset Flex Code
10210 status collapsed
10211
10212 \begin_layout Plain Layout
10213 AddToHTMLPreamble
10214 \end_layout
10215
10216 \end_inset
10217
10218  if you just want to add material to the preamble.) Must end with 
10219 \begin_inset Quotes eld
10220 \end_inset
10221
10222
10223 \begin_inset Flex Code
10224 status collapsed
10225
10226 \begin_layout Plain Layout
10227 EndPreamble
10228 \end_layout
10229
10230 \end_inset
10231
10232
10233 \begin_inset Quotes erd
10234 \end_inset
10235
10236 .
10237 \end_layout
10238
10239 \begin_layout Description
10240 \begin_inset Flex Code
10241 status collapsed
10242
10243 \begin_layout Plain Layout
10244 HTMLTOCSection
10245 \end_layout
10246
10247 \end_inset
10248
10249  [
10250 \begin_inset Flex Code
10251 status collapsed
10252
10253 \begin_layout Plain Layout
10254 <style>
10255 \end_layout
10256
10257 \end_inset
10258
10259 ] The style to use for the table of contents, bibliography, and so forth,
10260  when the document is output to HTML.
10261  For articles, this should normally be 
10262 \begin_inset Flex Code
10263 status collapsed
10264
10265 \begin_layout Plain Layout
10266 Section
10267 \end_layout
10268
10269 \end_inset
10270
10271 ; for books 
10272 \begin_inset Flex Code
10273 status collapsed
10274
10275 \begin_layout Plain Layout
10276 Chapter
10277 \end_layout
10278
10279 \end_inset
10280
10281 .
10282  If it is not given, then \SpecialChar LyX
10283  will attempt to figure out which layout to use.
10284 \end_layout
10285
10286 \begin_layout Description
10287 \begin_inset Flex Code
10288 status collapsed
10289
10290 \begin_layout Plain Layout
10291 IfCounter
10292 \end_layout
10293
10294 \end_inset
10295
10296  [
10297 \begin_inset Flex Code
10298 status collapsed
10299
10300 \begin_layout Plain Layout
10301 <counter>
10302 \end_layout
10303
10304 \end_inset
10305
10306 ] Modifies the properties of the given counter.
10307  If the counter does not exist, the statement is ignored.
10308  Must end with 
10309 \begin_inset Quotes eld
10310 \end_inset
10311
10312
10313 \begin_inset Flex Code
10314 status collapsed
10315
10316 \begin_layout Plain Layout
10317 End
10318 \end_layout
10319
10320 \end_inset
10321
10322
10323 \begin_inset Quotes erd
10324 \end_inset
10325
10326 .
10327 \begin_inset Newline newline
10328 \end_inset
10329
10330 See 
10331 \begin_inset CommandInset ref
10332 LatexCommand ref
10333 reference "subsec:Counters"
10334
10335 \end_inset
10336
10337  for details on counters.
10338 \end_layout
10339
10340 \begin_layout Description
10341 \begin_inset Flex Code
10342 status collapsed
10343
10344 \begin_layout Plain Layout
10345 Input
10346 \end_layout
10347
10348 \end_inset
10349
10350  [
10351 \begin_inset Flex Code
10352 status collapsed
10353
10354 \begin_layout Plain Layout
10355 <filename>
10356 \end_layout
10357
10358 \end_inset
10359
10360 ] This allows you to include another layout definition file within yours
10361  to avoid duplicating commands.
10362  Common examples are the standard layout files, for example, 
10363 \begin_inset Flex Code
10364 status collapsed
10365
10366 \begin_layout Plain Layout
10367 stdclass.inc
10368 \end_layout
10369
10370 \end_inset
10371
10372 , which contains most of the basic layouts.
10373 \end_layout
10374
10375 \begin_layout Description
10376 \begin_inset Flex Code
10377 status collapsed
10378
10379 \begin_layout Plain Layout
10380 InsetLayout
10381 \end_layout
10382
10383 \end_inset
10384
10385  [
10386 \begin_inset Flex Code
10387 status collapsed
10388
10389 \begin_layout Plain Layout
10390 <type>
10391 \end_layout
10392
10393 \end_inset
10394
10395 ] This section (re-)defines the layout of an inset.
10396  It can be applied to an existing inset or to a new, user-defined inset,
10397  e.g., a new character style.
10398  Must end with 
10399 \begin_inset Quotes eld
10400 \end_inset
10401
10402
10403 \begin_inset Flex Code
10404 status collapsed
10405
10406 \begin_layout Plain Layout
10407 End
10408 \end_layout
10409
10410 \end_inset
10411
10412
10413 \begin_inset Quotes erd
10414 \end_inset
10415
10416 .
10417 \begin_inset Newline newline
10418 \end_inset
10419
10420 See 
10421 \begin_inset CommandInset ref
10422 LatexCommand ref
10423 reference "subsec:Flex-insets-and"
10424
10425 \end_inset
10426
10427  for more information.
10428  
10429 \end_layout
10430
10431 \begin_layout Description
10432 \begin_inset Flex Code
10433 status collapsed
10434
10435 \begin_layout Plain Layout
10436 LeftMargin
10437 \end_layout
10438
10439 \end_inset
10440
10441  [
10442 \begin_inset Flex Code
10443 status collapsed
10444
10445 \begin_layout Plain Layout
10446 string
10447 \end_layout
10448
10449 \end_inset
10450
10451 ] A string that indicates the width of the left margin on the screen, for
10452  example, 
10453 \begin_inset Quotes eld
10454 \end_inset
10455
10456
10457 \begin_inset Flex Code
10458 status collapsed
10459
10460 \begin_layout Plain Layout
10461 MMMMM
10462 \end_layout
10463
10464 \end_inset
10465
10466
10467 \begin_inset Quotes erd
10468 \end_inset
10469
10470 .
10471  (Note that this is not a `length', like 
10472 \begin_inset Quotes eld
10473 \end_inset
10474
10475 2ex
10476 \begin_inset Quotes erd
10477 \end_inset
10478
10479 .)
10480 \end_layout
10481
10482 \begin_layout Description
10483 \begin_inset Flex Code
10484 status collapsed
10485
10486 \begin_layout Plain Layout
10487 MaxCiteNames
10488 \end_layout
10489
10490 \end_inset
10491
10492  [
10493 \begin_inset Flex Code
10494 status collapsed
10495
10496 \begin_layout Plain Layout
10497 integer
10498 \end_layout
10499
10500 \end_inset
10501
10502 ] An integer that determines the maximal number of names displayed in an
10503  author-year citation before the citation switches to 
10504 \begin_inset Quotes eld
10505 \end_inset
10506
10507 FirstAuthor et al.
10508 \begin_inset Quotes erd
10509 \end_inset
10510
10511 .
10512  Primarily used in cite engine files (see 
10513 \begin_inset CommandInset ref
10514 LatexCommand ref
10515 reference "subsec:Cite-Engine-Files"
10516 plural "false"
10517 caps "false"
10518 noprefix "false"
10519
10520 \end_inset
10521
10522 ).
10523 \end_layout
10524
10525 \begin_layout Description
10526 \begin_inset Flex Code
10527 status collapsed
10528
10529 \begin_layout Plain Layout
10530 ModifyStyle
10531 \end_layout
10532
10533 \end_inset
10534
10535  [
10536 \begin_inset Flex Code
10537 status collapsed
10538
10539 \begin_layout Plain Layout
10540 <style>
10541 \end_layout
10542
10543 \end_inset
10544
10545 ] Modifies the properties of the given paragraph style.
10546  If the style does not exist, this section is ignored.
10547  Must end with 
10548 \begin_inset Quotes eld
10549 \end_inset
10550
10551
10552 \begin_inset Flex Code
10553 status collapsed
10554
10555 \begin_layout Plain Layout
10556 End
10557 \end_layout
10558
10559 \end_inset
10560
10561
10562 \begin_inset Quotes erd
10563 \end_inset
10564
10565 .
10566 \end_layout
10567
10568 \begin_layout Description
10569 \begin_inset Flex Code
10570 status collapsed
10571
10572 \begin_layout Plain Layout
10573 NoCounter
10574 \end_layout
10575
10576 \end_inset
10577
10578  [
10579 \begin_inset Flex Code
10580 status collapsed
10581
10582 \begin_layout Plain Layout
10583 <counter>
10584 \end_layout
10585
10586 \end_inset
10587
10588 ] Deletes an existing counter, usually one defined in an included file.
10589 \end_layout
10590
10591 \begin_layout Description
10592 \begin_inset Flex Code
10593 status collapsed
10594
10595 \begin_layout Plain Layout
10596 NoFloat
10597 \end_layout
10598
10599 \end_inset
10600
10601  [
10602 \begin_inset Flex Code
10603 status collapsed
10604
10605 \begin_layout Plain Layout
10606 <float>
10607 \end_layout
10608
10609 \end_inset
10610
10611 ] Deletes an existing float.
10612  This is particularly useful when you want to suppress a float that has
10613  been defined in an input file.
10614 \end_layout
10615
10616 \begin_layout Description
10617 \begin_inset Flex Code
10618 status collapsed
10619
10620 \begin_layout Plain Layout
10621 NoStyle
10622 \end_layout
10623
10624 \end_inset
10625
10626  [
10627 \begin_inset Flex Code
10628 status collapsed
10629
10630 \begin_layout Plain Layout
10631 <style>
10632 \end_layout
10633
10634 \end_inset
10635
10636 ] Deletes an existing style.
10637 \end_layout
10638
10639 \begin_layout Description
10640 \begin_inset Flex Code
10641 status collapsed
10642
10643 \begin_layout Plain Layout
10644 OutlinerName
10645 \end_layout
10646
10647 \end_inset
10648
10649  [
10650 \begin_inset Flex Code
10651 status collapsed
10652
10653 \begin_layout Plain Layout
10654 <type>
10655 \end_layout
10656
10657 \end_inset
10658
10659 ] [
10660 \begin_inset Flex Code
10661 status collapsed
10662
10663 \begin_layout Plain Layout
10664 <string>
10665 \end_layout
10666
10667 \end_inset
10668
10669 ] Define a new table of contents with type 
10670 \begin_inset Flex Code
10671 status collapsed
10672
10673 \begin_layout Plain Layout
10674 <type>
10675 \end_layout
10676
10677 \end_inset
10678
10679  and name 
10680 \begin_inset Flex Code
10681 status collapsed
10682
10683 \begin_layout Plain Layout
10684 <string>
10685 \end_layout
10686
10687 \end_inset
10688
10689 .
10690  See also the AddToToc commands.
10691 \end_layout
10692
10693 \begin_layout Description
10694 \begin_inset Flex Code
10695 status collapsed
10696
10697 \begin_layout Plain Layout
10698 OutputFormat
10699 \end_layout
10700
10701 \end_inset
10702
10703  [
10704 \begin_inset Flex Code
10705 status collapsed
10706
10707 \begin_layout Plain Layout
10708 <format>
10709 \end_layout
10710
10711 \end_inset
10712
10713 ] The file format (as defined in the \SpecialChar LyX
10714  preferences) produced by this document
10715  class.
10716  It is mainly useful when 
10717 \begin_inset Flex Code
10718 status collapsed
10719
10720 \begin_layout Plain Layout
10721 OutputType
10722 \end_layout
10723
10724 \end_inset
10725
10726  is 
10727 \begin_inset Flex Code
10728 status collapsed
10729
10730 \begin_layout Plain Layout
10731 literate
10732 \end_layout
10733
10734 \end_inset
10735
10736  and one wants to define a new type of literate document.
10737  The format is reset to 
10738 \change_deleted 5863208 1594239413
10739
10740 \begin_inset Quotes eld
10741 \end_inset
10742
10743
10744 \begin_inset Flex Code
10745 status collapsed
10746
10747 \begin_layout Plain Layout
10748 docbook
10749 \end_layout
10750
10751 \end_inset
10752
10753
10754 \begin_inset Quotes erd
10755 \end_inset
10756
10757  or
10758 \change_unchanged
10759  
10760 \begin_inset Quotes eld
10761 \end_inset
10762
10763
10764 \begin_inset Flex Code
10765 status collapsed
10766
10767 \begin_layout Plain Layout
10768 latex
10769 \end_layout
10770
10771 \end_inset
10772
10773
10774 \begin_inset Quotes erd
10775 \end_inset
10776
10777  when the corresponding 
10778 \begin_inset Flex Code
10779 status collapsed
10780
10781 \begin_layout Plain Layout
10782 OutputType
10783 \end_layout
10784
10785 \end_inset
10786
10787  parameter is encountered.
10788 \end_layout
10789
10790 \begin_layout Description
10791 \begin_inset Flex Code
10792 status collapsed
10793
10794 \begin_layout Plain Layout
10795 OutputType
10796 \end_layout
10797
10798 \end_inset
10799
10800  [
10801 \begin_inset Flex Code
10802 status collapsed
10803
10804 \begin_layout Plain Layout
10805
10806 \emph on
10807 lat
10808 \emph default
10809 ex
10810 \end_layout
10811
10812 \end_inset
10813
10814
10815 \change_deleted 5863208 1594239430
10816
10817 \begin_inset Flex Code
10818 status collapsed
10819
10820 \begin_layout Plain Layout
10821 docbook
10822 \end_layout
10823
10824 \end_inset
10825
10826 ,
10827 \change_unchanged
10828  
10829 \begin_inset Flex Code
10830 status collapsed
10831
10832 \begin_layout Plain Layout
10833 literate
10834 \end_layout
10835
10836 \end_inset
10837
10838 ] Specifies what sort of output documents using this class will produce.
10839 \end_layout
10840
10841 \begin_layout Description
10842 \begin_inset Flex Code
10843 status collapsed
10844
10845 \begin_layout Plain Layout
10846 PackageOptions
10847 \end_layout
10848
10849 \end_inset
10850
10851  [
10852 \begin_inset Flex Code
10853 status collapsed
10854
10855 \begin_layout Plain Layout
10856 string
10857 \end_layout
10858
10859 \end_inset
10860
10861  
10862 \begin_inset Flex Code
10863 status collapsed
10864
10865 \begin_layout Plain Layout
10866 string
10867 \end_layout
10868
10869 \end_inset
10870
10871 ] Specifies options, given in the second string, for the package named by
10872  the first string.
10873  For example, 
10874 \begin_inset Quotes eld
10875 \end_inset
10876
10877
10878 \begin_inset Flex Code
10879 status collapsed
10880
10881 \begin_layout Plain Layout
10882 PackageOptions natbib square
10883 \end_layout
10884
10885 \end_inset
10886
10887
10888 \begin_inset Quotes erd
10889 \end_inset
10890
10891  will cause 
10892 \begin_inset Flex Code
10893 status collapsed
10894
10895 \begin_layout Plain Layout
10896 natbib
10897 \end_layout
10898
10899 \end_inset
10900
10901  to be loaded with the 
10902 \begin_inset Flex Code
10903 status collapsed
10904
10905 \begin_layout Plain Layout
10906 square
10907 \end_layout
10908
10909 \end_inset
10910
10911  option.
10912  (For \SpecialChar TeX
10913 perts, this causes \SpecialChar LyX
10914  to output: 
10915 \begin_inset Flex Code
10916 status collapsed
10917
10918 \begin_layout Plain Layout
10919
10920 \backslash
10921 PassOptionsToPackage{natbib}{square}
10922 \end_layout
10923
10924 \end_inset
10925
10926  prior to loading 
10927 \begin_inset Flex Code
10928 status collapsed
10929
10930 \begin_layout Plain Layout
10931 natbib
10932 \end_layout
10933
10934 \end_inset
10935
10936 .)
10937 \change_inserted -712698321 1565102364
10938
10939 \end_layout
10940
10941 \begin_layout Description
10942
10943 \change_inserted -712698321 1565102470
10944 \begin_inset Flex Code
10945 status collapsed
10946
10947 \begin_layout Plain Layout
10948
10949 \change_inserted -712698321 1565102365
10950 PageSize
10951 \change_unchanged
10952
10953 \end_layout
10954
10955 \end_inset
10956
10957  [
10958 \begin_inset Flex Code
10959 status collapsed
10960
10961 \begin_layout Plain Layout
10962
10963 \change_inserted -712698321 1565105222
10964
10965 \emph on
10966 custom
10967 \emph default
10968 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
10969  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
10970 \change_unchanged
10971
10972 \end_layout
10973
10974 \end_inset
10975
10976 ] The default page size.
10977  This is used by some converters.
10978 \change_unchanged
10979
10980 \end_layout
10981
10982 \begin_layout Description
10983 \begin_inset Flex Code
10984 status collapsed
10985
10986 \begin_layout Plain Layout
10987 PageStyle
10988 \end_layout
10989
10990 \end_inset
10991
10992  [
10993 \begin_inset Flex Code
10994 status collapsed
10995
10996 \begin_layout Plain Layout
10997
10998 \emph on
10999 plain
11000 \end_layout
11001
11002 \end_inset
11003
11004
11005 \begin_inset Flex Code
11006 status collapsed
11007
11008 \begin_layout Plain Layout
11009 empty
11010 \end_layout
11011
11012 \end_inset
11013
11014
11015 \begin_inset Flex Code
11016 status collapsed
11017
11018 \begin_layout Plain Layout
11019 headings
11020 \end_layout
11021
11022 \end_inset
11023
11024 ] The default pagestyle.
11025  Can be changed in the 
11026 \begin_inset Flex Noun
11027 status collapsed
11028
11029 \begin_layout Plain Layout
11030 Document\SpecialChar menuseparator
11031 Settings
11032 \end_layout
11033
11034 \end_inset
11035
11036  dialog.
11037 \end_layout
11038
11039 \begin_layout Description
11040 \begin_inset Flex Code
11041 status collapsed
11042
11043 \begin_layout Plain Layout
11044 Preamble
11045 \end_layout
11046
11047 \end_inset
11048
11049  Sets the preamble for the \SpecialChar LaTeX
11050  document.
11051  Note that this will completely override any prior 
11052 \begin_inset Flex Code
11053 status collapsed
11054
11055 \begin_layout Plain Layout
11056 Preamble
11057 \end_layout
11058
11059 \end_inset
11060
11061  or 
11062 \begin_inset Flex Code
11063 status collapsed
11064
11065 \begin_layout Plain Layout
11066 AddToPreamble
11067 \end_layout
11068
11069 \end_inset
11070
11071  declarations.
11072  (Use 
11073 \begin_inset Flex Code
11074 status collapsed
11075
11076 \begin_layout Plain Layout
11077 AddToPreamble
11078 \end_layout
11079
11080 \end_inset
11081
11082  if you just want to add material to the preamble.) Must end with 
11083 \begin_inset Quotes eld
11084 \end_inset
11085
11086
11087 \begin_inset Flex Code
11088 status collapsed
11089
11090 \begin_layout Plain Layout
11091 EndPreamble
11092 \end_layout
11093
11094 \end_inset
11095
11096
11097 \begin_inset Quotes erd
11098 \end_inset
11099
11100 .
11101 \end_layout
11102
11103 \begin_layout Description
11104 \begin_inset Flex Code
11105 status collapsed
11106
11107 \begin_layout Plain Layout
11108 Provides
11109 \end_layout
11110
11111 \end_inset
11112
11113  [
11114 \begin_inset Flex Code
11115 status collapsed
11116
11117 \begin_layout Plain Layout
11118 string
11119 \end_layout
11120
11121 \end_inset
11122
11123 ] [
11124 \begin_inset Flex Code
11125 status collapsed
11126
11127 \begin_layout Plain Layout
11128
11129 \emph on
11130 0
11131 \end_layout
11132
11133 \end_inset
11134
11135 ,
11136 \begin_inset space \thinspace{}
11137 \end_inset
11138
11139
11140 \begin_inset Flex Code
11141 status collapsed
11142
11143 \begin_layout Plain Layout
11144 1
11145 \end_layout
11146
11147 \end_inset
11148
11149 ] Whether the class already provides the feature 
11150 \begin_inset Flex Code
11151 status collapsed
11152
11153 \begin_layout Plain Layout
11154 string
11155 \end_layout
11156
11157 \end_inset
11158
11159 .
11160  A feature is in general the name of a package (e.
11161 \begin_inset space \thinspace{}
11162 \end_inset
11163
11164 g.
11165 \begin_inset space \space{}
11166 \end_inset
11167
11168
11169 \begin_inset Flex Code
11170 status collapsed
11171
11172 \begin_layout Plain Layout
11173 amsmath
11174 \end_layout
11175
11176 \end_inset
11177
11178  or 
11179 \begin_inset Flex Code
11180 status collapsed
11181
11182 \begin_layout Plain Layout
11183 makeidx
11184 \end_layout
11185
11186 \end_inset
11187
11188 ) or a macro (e.
11189 \begin_inset space \thinspace{}
11190 \end_inset
11191
11192 g.
11193 \begin_inset space \space{}
11194 \end_inset
11195
11196
11197 \begin_inset Flex Code
11198 status collapsed
11199
11200 \begin_layout Plain Layout
11201 url
11202 \end_layout
11203
11204 \end_inset
11205
11206  or 
11207 \begin_inset Flex Code
11208 status collapsed
11209
11210 \begin_layout Plain Layout
11211 boldsymbol
11212 \end_layout
11213
11214 \end_inset
11215
11216 ).
11217  See 
11218 \begin_inset CommandInset ref
11219 LatexCommand ref
11220 reference "chap:List-of-functions"
11221
11222 \end_inset
11223
11224  for the list of features.
11225 \end_layout
11226
11227 \begin_layout Description
11228 \begin_inset Flex Code
11229 status collapsed
11230
11231 \begin_layout Plain Layout
11232 ProvidesModule
11233 \end_layout
11234
11235 \end_inset
11236
11237  [
11238 \begin_inset Flex Code
11239 status collapsed
11240
11241 \begin_layout Plain Layout
11242 string
11243 \end_layout
11244
11245 \end_inset
11246
11247 ] Indicates that this layout provides the functionality of the module mentioned,
11248  which should be specified by the filename without the 
11249 \begin_inset Flex Code
11250 status collapsed
11251
11252 \begin_layout Plain Layout
11253 .module
11254 \end_layout
11255
11256 \end_inset
11257
11258  extension.
11259  This will typically be used if the layout includes the module directly,
11260  rather than using the 
11261 \begin_inset Flex Code
11262 status collapsed
11263
11264 \begin_layout Plain Layout
11265 DefaultModule
11266 \end_layout
11267
11268 \end_inset
11269
11270  tag to indicate that it ought to be used.
11271  It could also be used in a module that provided an alternate implementation
11272  of the same functionality.
11273 \end_layout
11274
11275 \begin_layout Description
11276 \begin_inset Flex Code
11277 status collapsed
11278
11279 \begin_layout Plain Layout
11280 ProvideStyle
11281 \end_layout
11282
11283 \end_inset
11284
11285  [
11286 \begin_inset Flex Code
11287 status collapsed
11288
11289 \begin_layout Plain Layout
11290 <style>
11291 \end_layout
11292
11293 \end_inset
11294
11295 ] Creates a new paragraph style if it does not already exist.
11296  If the style does exist, this section is ignored.
11297  Must end with 
11298 \begin_inset Quotes eld
11299 \end_inset
11300
11301
11302 \begin_inset Flex Code
11303 status collapsed
11304
11305 \begin_layout Plain Layout
11306 End
11307 \end_layout
11308
11309 \end_inset
11310
11311
11312 \begin_inset Quotes erd
11313 \end_inset
11314
11315 .
11316 \end_layout
11317
11318 \begin_layout Description
11319 \begin_inset Flex Code
11320 status collapsed
11321
11322 \begin_layout Plain Layout
11323 Requires
11324 \end_layout
11325
11326 \end_inset
11327
11328  [
11329 \begin_inset Flex Code
11330 status collapsed
11331
11332 \begin_layout Plain Layout
11333 string
11334 \end_layout
11335
11336 \end_inset
11337
11338 ] Whether the class requires the feature 
11339 \begin_inset Flex Code
11340 status collapsed
11341
11342 \begin_layout Plain Layout
11343 string
11344 \end_layout
11345
11346 \end_inset
11347
11348 .
11349  Multiple features must be separated by commas.
11350  Note that you can only request supported features.
11351  (See 
11352 \begin_inset CommandInset ref
11353 LatexCommand ref
11354 reference "chap:List-of-functions"
11355
11356 \end_inset
11357
11358  for the list of features.).
11359  If you require a package with specific options, you can additionally use
11360  
11361 \begin_inset Flex Code
11362 status collapsed
11363
11364 \begin_layout Plain Layout
11365 PackageOptions
11366 \end_layout
11367
11368 \end_inset
11369
11370 .
11371 \end_layout
11372
11373 \begin_layout Description
11374 \begin_inset Flex Code
11375 status collapsed
11376
11377 \begin_layout Plain Layout
11378 RightMargin
11379 \end_layout
11380
11381 \end_inset
11382
11383  [
11384 \begin_inset Flex Code
11385 status collapsed
11386
11387 \begin_layout Plain Layout
11388 string
11389 \end_layout
11390
11391 \end_inset
11392
11393 ] A string that indicates the width of the right margin on the screen, for
11394  example, 
11395 \begin_inset Quotes eld
11396 \end_inset
11397
11398
11399 \begin_inset Flex Code
11400 status collapsed
11401
11402 \begin_layout Plain Layout
11403 MMMMM
11404 \end_layout
11405
11406 \end_inset
11407
11408
11409 \begin_inset Quotes erd
11410 \end_inset
11411
11412 .
11413 \end_layout
11414
11415 \begin_layout Description
11416 \begin_inset Flex Code
11417 status collapsed
11418
11419 \begin_layout Plain Layout
11420 SecNumDepth
11421 \end_layout
11422
11423 \end_inset
11424
11425  [
11426 \begin_inset Flex Code
11427 status collapsed
11428
11429 \begin_layout Plain Layout
11430 int=3
11431 \end_layout
11432
11433 \end_inset
11434
11435 ] Sets which divisions get numbered.
11436  Corresponds to the
11437 \begin_inset Newline newline
11438 \end_inset
11439
11440
11441 \begin_inset Flex Code
11442 status collapsed
11443
11444 \begin_layout Plain Layout
11445 secnumdepth
11446 \end_layout
11447
11448 \end_inset
11449
11450  counter in \SpecialChar LaTeX
11451 .
11452 \end_layout
11453
11454 \begin_layout Description
11455 \begin_inset Flex Code
11456 status collapsed
11457
11458 \begin_layout Plain Layout
11459 Sides
11460 \end_layout
11461
11462 \end_inset
11463
11464  [
11465 \begin_inset Flex Code
11466 status collapsed
11467
11468 \begin_layout Plain Layout
11469
11470 \emph on
11471 1
11472 \end_layout
11473
11474 \end_inset
11475
11476 ,
11477 \begin_inset space \thinspace{}
11478 \end_inset
11479
11480
11481 \begin_inset Flex Code
11482 status collapsed
11483
11484 \begin_layout Plain Layout
11485 2
11486 \end_layout
11487
11488 \end_inset
11489
11490 ] Whether the class-default should be printing on one or both sides of the
11491  paper.
11492  Can be changed in the 
11493 \begin_inset Flex Noun
11494 status collapsed
11495
11496 \begin_layout Plain Layout
11497 Document\SpecialChar menuseparator
11498 Settings
11499 \end_layout
11500
11501 \end_inset
11502
11503  dialog.
11504 \end_layout
11505
11506 \begin_layout Description
11507 \begin_inset Flex Code
11508 status collapsed
11509
11510 \begin_layout Plain Layout
11511 Style
11512 \end_layout
11513
11514 \end_inset
11515
11516  [
11517 \begin_inset Flex Code
11518 status collapsed
11519
11520 \begin_layout Plain Layout
11521 <name>
11522 \end_layout
11523
11524 \end_inset
11525
11526 ] This sequence defines a paragraph style.
11527  If the style does not yet exist, it is created; if it does exist, its parameter
11528 s are modified.
11529  Must end with 
11530 \begin_inset Quotes eld
11531 \end_inset
11532
11533
11534 \begin_inset Flex Code
11535 status collapsed
11536
11537 \begin_layout Plain Layout
11538 End
11539 \end_layout
11540
11541 \end_inset
11542
11543
11544 \begin_inset Quotes erd
11545 \end_inset
11546
11547 .
11548 \begin_inset Newline newline
11549 \end_inset
11550
11551 See 
11552 \begin_inset CommandInset ref
11553 LatexCommand ref
11554 reference "subsec:Paragraph-Styles"
11555
11556 \end_inset
11557
11558  for details on paragraph styles.
11559 \change_inserted -712698321 1553617804
11560
11561 \end_layout
11562
11563 \begin_layout Description
11564
11565 \change_inserted -712698321 1553617862
11566 \begin_inset Flex Code
11567 status collapsed
11568
11569 \begin_layout Plain Layout
11570
11571 \change_inserted -712698321 1553617809
11572 TableStyle
11573 \change_unchanged
11574
11575 \end_layout
11576
11577 \end_inset
11578
11579  [
11580 \begin_inset Flex Code
11581 status collapsed
11582
11583 \begin_layout Plain Layout
11584
11585 \change_inserted -712698321 1553617805
11586 <name>
11587 \change_unchanged
11588
11589 \end_layout
11590
11591 \end_inset
11592
11593 ] defines the default table style that is used when inserting a table.
11594  The following styles are available:
11595 \end_layout
11596
11597 \begin_deeper
11598 \begin_layout Itemize
11599
11600 \change_inserted -712698321 1554308039
11601 \begin_inset Flex Code
11602 status collapsed
11603
11604 \begin_layout Plain Layout
11605
11606 \change_inserted -712698321 1554307928
11607 Formal_with_Footline
11608 \change_unchanged
11609
11610 \end_layout
11611
11612 \end_inset
11613
11614 : formal (
11615 \begin_inset Quotes eld
11616 \end_inset
11617
11618 booktabs
11619 \begin_inset Quotes erd
11620 \end_inset
11621
11622 ) style with horizontal lines only, using a bold top and bottom line, the
11623  first and last row are additionally separated from the table body with
11624  a thin middle line.
11625 \end_layout
11626
11627 \begin_layout Itemize
11628
11629 \change_inserted -712698321 1554308087
11630 \begin_inset Flex Code
11631 status collapsed
11632
11633 \begin_layout Plain Layout
11634
11635 \change_inserted -712698321 1554308042
11636 Formal_without_Footline
11637 \change_unchanged
11638
11639 \end_layout
11640
11641 \end_inset
11642
11643 : same as the above, but the last row is not separated with a middle line
11644  from the body.
11645 \end_layout
11646
11647 \begin_layout Itemize
11648
11649 \change_inserted -712698321 1553618031
11650 \begin_inset Flex Code
11651 status collapsed
11652
11653 \begin_layout Plain Layout
11654
11655 \change_inserted -712698321 1553618006
11656 Simple_Grid
11657 \change_unchanged
11658
11659 \end_layout
11660
11661 \end_inset
11662
11663 : Simple table lines.
11664 \end_layout
11665
11666 \begin_layout Itemize
11667
11668 \change_inserted -712698321 1553618309
11669 \begin_inset Flex Code
11670 status collapsed
11671
11672 \begin_layout Plain Layout
11673
11674 \change_inserted -712698321 1553618031
11675 Grid_with_Head
11676 \change_unchanged
11677
11678 \end_layout
11679
11680 \end_inset
11681
11682 : Like 
11683 \begin_inset Flex Code
11684 status collapsed
11685
11686 \begin_layout Plain Layout
11687
11688 \change_inserted -712698321 1553618043
11689 Simple_Grid
11690 \change_unchanged
11691
11692 \end_layout
11693
11694 \end_inset
11695
11696 , but with the header column offset with a second horizontal line.
11697  This is also the default style of \SpecialChar LyX
11698 .
11699 \end_layout
11700
11701 \begin_layout Itemize
11702
11703 \change_inserted -712698321 1553618280
11704 \begin_inset Flex Code
11705 status collapsed
11706
11707 \begin_layout Plain Layout
11708
11709 \change_inserted -712698321 1553618261
11710 No_Borders
11711 \change_unchanged
11712
11713 \end_layout
11714
11715 \end_inset
11716
11717 : Table without lines.
11718 \change_unchanged
11719
11720 \end_layout
11721
11722 \end_deeper
11723 \begin_layout Description
11724 \begin_inset Flex Code
11725 status collapsed
11726
11727 \begin_layout Plain Layout
11728 TitleLatexName
11729 \end_layout
11730
11731 \end_inset
11732
11733  [
11734 \begin_inset Flex Code
11735 status collapsed
11736
11737 \begin_layout Plain Layout
11738 string="maketitle"
11739 \end_layout
11740
11741 \end_inset
11742
11743 ] The name of the command or environment to be used with 
11744 \begin_inset Flex Code
11745 status collapsed
11746
11747 \begin_layout Plain Layout
11748 TitleLatexType
11749 \end_layout
11750
11751 \end_inset
11752
11753 .
11754 \end_layout
11755
11756 \begin_layout Description
11757 \begin_inset Flex Code
11758 status collapsed
11759
11760 \begin_layout Plain Layout
11761 TitleLatexType
11762 \end_layout
11763
11764 \end_inset
11765
11766  [
11767 \begin_inset Flex Code
11768 status collapsed
11769
11770 \begin_layout Plain Layout
11771
11772 \emph on
11773 CommandAfter
11774 \end_layout
11775
11776 \end_inset
11777
11778
11779 \begin_inset Flex Code
11780 status collapsed
11781
11782 \begin_layout Plain Layout
11783 Environment
11784 \end_layout
11785
11786 \end_inset
11787
11788 ] Indicates what kind of markup is used to define the title of a document.
11789  
11790 \begin_inset Flex Code
11791 status collapsed
11792
11793 \begin_layout Plain Layout
11794 CommandAfter
11795 \end_layout
11796
11797 \end_inset
11798
11799  means that the macro with name 
11800 \begin_inset Flex Code
11801 status collapsed
11802
11803 \begin_layout Plain Layout
11804 TitleLatexName
11805 \end_layout
11806
11807 \end_inset
11808
11809  will be inserted after the last layout which has 
11810 \begin_inset Quotes eld
11811 \end_inset
11812
11813
11814 \begin_inset Flex Code
11815 status collapsed
11816
11817 \begin_layout Plain Layout
11818 InTitle
11819 \begin_inset space ~
11820 \end_inset
11821
11822 1
11823 \end_layout
11824
11825 \end_inset
11826
11827
11828 \begin_inset Quotes erd
11829 \end_inset
11830
11831 .
11832  
11833 \begin_inset Flex Code
11834 status collapsed
11835
11836 \begin_layout Plain Layout
11837 Environment
11838 \end_layout
11839
11840 \end_inset
11841
11842  corresponds to the case where all layouts which have 
11843 \begin_inset Quotes eld
11844 \end_inset
11845
11846
11847 \begin_inset Flex Code
11848 status collapsed
11849
11850 \begin_layout Plain Layout
11851 InTitle
11852 \begin_inset space ~
11853 \end_inset
11854
11855 1
11856 \end_layout
11857
11858 \end_inset
11859
11860
11861 \begin_inset Quotes erd
11862 \end_inset
11863
11864  should be enclosed into the 
11865 \begin_inset Flex Code
11866 status collapsed
11867
11868 \begin_layout Plain Layout
11869 TitleLatexName
11870 \end_layout
11871
11872 \end_inset
11873
11874  environment.
11875 \end_layout
11876
11877 \begin_layout Description
11878 \begin_inset Flex Code
11879 status collapsed
11880
11881 \begin_layout Plain Layout
11882 TocDepth
11883 \end_layout
11884
11885 \end_inset
11886
11887  [
11888 \begin_inset Flex Code
11889 status collapsed
11890
11891 \begin_layout Plain Layout
11892 int=3
11893 \end_layout
11894
11895 \end_inset
11896
11897 ] Sets which divisions are included in the table of contents.
11898  Corresponds to the 
11899 \begin_inset Flex Code
11900 status collapsed
11901
11902 \begin_layout Plain Layout
11903 tocdepth
11904 \end_layout
11905
11906 \end_inset
11907
11908  counter in \SpecialChar LaTeX
11909 .
11910 \end_layout
11911
11912 \begin_layout Subsection
11913 \begin_inset Flex Code
11914 status collapsed
11915
11916 \begin_layout Plain Layout
11917 ClassOptions
11918 \end_layout
11919
11920 \end_inset
11921
11922  section
11923 \begin_inset CommandInset label
11924 LatexCommand label
11925 name "subsec:ClassOptions"
11926
11927 \end_inset
11928
11929
11930 \end_layout
11931
11932 \begin_layout Standard
11933 The 
11934 \begin_inset Flex Code
11935 status collapsed
11936
11937 \begin_layout Plain Layout
11938 ClassOptions
11939 \end_layout
11940
11941 \end_inset
11942
11943  section can contain the following entries:
11944 \end_layout
11945
11946 \begin_layout Description
11947 \begin_inset Flex Code
11948 status collapsed
11949
11950 \begin_layout Plain Layout
11951 FontSize
11952 \end_layout
11953
11954 \end_inset
11955
11956  [
11957 \begin_inset Flex Code
11958 status collapsed
11959
11960 \begin_layout Plain Layout
11961 string="10|11|12"
11962 \end_layout
11963
11964 \end_inset
11965
11966 ] The list of available font sizes for the document's main font, separated
11967  by 
11968 \begin_inset Quotes eld
11969 \end_inset
11970
11971
11972 \begin_inset Flex Code
11973 status collapsed
11974
11975 \begin_layout Plain Layout
11976 |
11977 \end_layout
11978
11979 \end_inset
11980
11981
11982 \begin_inset Quotes erd
11983 \end_inset
11984
11985 .
11986
11987 \change_inserted -712698321 1565110196
11988  Any number is possible.
11989 \end_layout
11990
11991 \begin_layout Description
11992
11993 \change_inserted -712698321 1565110259
11994 \begin_inset Flex Code
11995 status collapsed
11996
11997 \begin_layout Plain Layout
11998
11999 \change_inserted -712698321 1565110199
12000 FontSizeFormat
12001 \change_unchanged
12002
12003 \end_layout
12004
12005 \end_inset
12006
12007  [
12008 \begin_inset Flex Code
12009 status collapsed
12010
12011 \begin_layout Plain Layout
12012
12013 \change_inserted -712698321 1565110196
12014 string
12015 \change_unchanged
12016
12017 \end_layout
12018
12019 \end_inset
12020
12021 ] The format for the font size option.
12022  Default: 
12023 \begin_inset Flex Code
12024 status collapsed
12025
12026 \begin_layout Plain Layout
12027
12028 \change_inserted -712698321 1565110238
12029 $$spt
12030 \change_unchanged
12031
12032 \end_layout
12033
12034 \end_inset
12035
12036 .
12037  
12038 \begin_inset Flex Code
12039 status collapsed
12040
12041 \begin_layout Plain Layout
12042
12043 \change_inserted -712698321 1565110248
12044 $$s
12045 \change_unchanged
12046
12047 \end_layout
12048
12049 \end_inset
12050
12051  is a placeholder for the font size.
12052 \change_unchanged
12053
12054 \end_layout
12055
12056 \begin_layout Description
12057
12058 \change_deleted 5863208 1594239483
12059 \begin_inset Flex Code
12060 status collapsed
12061
12062 \begin_layout Plain Layout
12063 Header
12064 \end_layout
12065
12066 \end_inset
12067
12068  Used to set the DTD line with XML-based output classes.
12069  E.
12070 \begin_inset space \thinspace{}
12071 \end_inset
12072
12073 g.: PUBLIC 
12074 \begin_inset Quotes eld
12075 \end_inset
12076
12077 -//OASIS//DTD DocBook V4.2//EN
12078 \begin_inset Quotes erd
12079 \end_inset
12080
12081 .
12082 \change_inserted -712698321 1565101761
12083
12084 \end_layout
12085
12086 \begin_layout Description
12087
12088 \change_inserted -712698321 1565180598
12089 \begin_inset Flex Code
12090 status collapsed
12091
12092 \begin_layout Plain Layout
12093
12094 \change_inserted -712698321 1565101918
12095 PageSize
12096 \change_unchanged
12097
12098 \end_layout
12099
12100 \end_inset
12101
12102  [
12103 \begin_inset Flex Code
12104 status collapsed
12105
12106 \begin_layout Plain Layout
12107
12108 \change_inserted -712698321 1565105399
12109 string="letter|\SpecialChar allowbreak
12110 legal|\SpecialChar allowbreak
12111 executive|\SpecialChar allowbreak
12112 a0|\SpecialChar allowbreak
12113 a1|\SpecialChar allowbreak
12114 a2|\SpecialChar allowbreak
12115 a3|\SpecialChar allowbreak
12116 a4|\SpecialChar allowbreak
12117 a5|\SpecialChar allowbreak
12118 a6|\SpecialChar allowbreak
12119 b0|\SpecialChar allowbreak
12120 b1|\SpecialChar allowbreak
12121 b2|\SpecialChar allowbreak
12122 b3|\SpecialChar allowbreak
12123 b4|\SpecialChar allowbreak
12124 b5|\SpecialChar allowbreak
12125 b6|\SpecialChar allowbreak
12126 c0|\SpecialChar allowbreak
12127 c1|\SpecialChar allowbreak
12128 c
12129 2|\SpecialChar allowbreak
12130 c3|\SpecialChar allowbreak
12131 c4|\SpecialChar allowbreak
12132 c5|\SpecialChar allowbreak
12133 c6|\SpecialChar allowbreak
12134 b0j|\SpecialChar allowbreak
12135 b1j|\SpecialChar allowbreak
12136 b2j|\SpecialChar allowbreak
12137 b3j|\SpecialChar allowbreak
12138 b4j|\SpecialChar allowbreak
12139 b5j|\SpecialChar allowbreak
12140 b6j"
12141 \change_unchanged
12142
12143 \end_layout
12144
12145 \end_inset
12146
12147 ] The list of available page sizes, separated by 
12148 \begin_inset Quotes eld
12149 \end_inset
12150
12151
12152 \begin_inset Flex Code
12153 status collapsed
12154
12155 \begin_layout Plain Layout
12156
12157 \change_inserted -712698321 1565101779
12158 |
12159 \change_unchanged
12160
12161 \end_layout
12162
12163 \end_inset
12164
12165
12166 \begin_inset Quotes erd
12167 \end_inset
12168
12169 .
12170  Currently, only the listed sizes are supported.
12171  Other sizes might be entered as custom class option.
12172 \end_layout
12173
12174 \begin_layout Description
12175
12176 \change_inserted -712698321 1565180623
12177 \begin_inset Flex Code
12178 status collapsed
12179
12180 \begin_layout Plain Layout
12181
12182 \change_inserted -712698321 1565180605
12183 PageSizeFormat
12184 \change_unchanged
12185
12186 \end_layout
12187
12188 \end_inset
12189
12190  [
12191 \begin_inset Flex Code
12192 status collapsed
12193
12194 \begin_layout Plain Layout
12195
12196 \change_inserted -712698321 1565180601
12197 string
12198 \change_unchanged
12199
12200 \end_layout
12201
12202 \end_inset
12203
12204 ] The format for the page size option.
12205  Default: 
12206 \begin_inset Flex Code
12207 status collapsed
12208
12209 \begin_layout Plain Layout
12210
12211 \change_inserted -712698321 1565180618
12212 $$spaper
12213 \change_unchanged
12214
12215 \end_layout
12216
12217 \end_inset
12218
12219 .
12220  
12221 \begin_inset Flex Code
12222 status collapsed
12223
12224 \begin_layout Plain Layout
12225
12226 \change_inserted -712698321 1565180601
12227 $$s
12228 \change_unchanged
12229
12230 \end_layout
12231
12232 \end_inset
12233
12234  is a placeholder for the paper size.
12235 \change_unchanged
12236
12237 \end_layout
12238
12239 \begin_layout Description
12240 \begin_inset Flex Code
12241 status collapsed
12242
12243 \begin_layout Plain Layout
12244 PageStyle
12245 \end_layout
12246
12247 \end_inset
12248
12249  [
12250 \begin_inset Flex Code
12251 status collapsed
12252
12253 \begin_layout Plain Layout
12254 string="empty|plain|headings|fancy"
12255 \end_layout
12256
12257 \end_inset
12258
12259 ] The list of available page sty\SpecialChar softhyphen
12260 les, separated by 
12261 \begin_inset Quotes eld
12262 \end_inset
12263
12264
12265 \begin_inset Flex Code
12266 status collapsed
12267
12268 \begin_layout Plain Layout
12269 |
12270 \end_layout
12271
12272 \end_inset
12273
12274
12275 \begin_inset Quotes erd
12276 \end_inset
12277
12278 .
12279 \end_layout
12280
12281 \begin_layout Description
12282 \begin_inset Flex Code
12283 status collapsed
12284
12285 \begin_layout Plain Layout
12286 Other
12287 \end_layout
12288
12289 \end_inset
12290
12291  [
12292 \begin_inset Flex Code
12293 status collapsed
12294
12295 \begin_layout Plain Layout
12296 string=""
12297 \end_layout
12298
12299 \end_inset
12300
12301 ] Some document class options, separated by a comma, that will be added
12302  to the optional part of the 
12303 \begin_inset Flex Code
12304 status collapsed
12305
12306 \begin_layout Plain Layout
12307
12308 \backslash
12309 documentclass
12310 \end_layout
12311
12312 \end_inset
12313
12314  command.
12315 \end_layout
12316
12317 \begin_layout Standard
12318 The 
12319 \begin_inset Flex Code
12320 status collapsed
12321
12322 \begin_layout Plain Layout
12323 ClassOptions
12324 \end_layout
12325
12326 \end_inset
12327
12328  section must end with 
12329 \begin_inset Quotes eld
12330 \end_inset
12331
12332
12333 \begin_inset Flex Code
12334 status collapsed
12335
12336 \begin_layout Plain Layout
12337 End
12338 \end_layout
12339
12340 \end_inset
12341
12342
12343 \begin_inset Quotes erd
12344 \end_inset
12345
12346 .
12347 \end_layout
12348
12349 \begin_layout Subsection
12350 Paragraph styles
12351 \begin_inset CommandInset label
12352 LatexCommand label
12353 name "subsec:Paragraph-Styles"
12354
12355 \end_inset
12356
12357
12358 \end_layout
12359
12360 \begin_layout Standard
12361 A paragraph style description looks like this:
12362 \begin_inset Foot
12363 status collapsed
12364
12365 \begin_layout Plain Layout
12366 Note that this will either define a new style or modify an existing one.
12367 \end_layout
12368
12369 \end_inset
12370
12371
12372 \end_layout
12373
12374 \begin_layout LyX-Code
12375 Style 
12376 \family roman
12377 \emph on
12378 name
12379 \end_layout
12380
12381 \begin_layout LyX-Code
12382  ...
12383 \end_layout
12384
12385 \begin_layout LyX-Code
12386 End
12387 \end_layout
12388
12389 \begin_layout Standard
12390 where the following commands are allowed:
12391 \end_layout
12392
12393 \begin_layout Description
12394 \begin_inset Flex Code
12395 status collapsed
12396
12397 \begin_layout Plain Layout
12398 AddToToc
12399 \end_layout
12400
12401 \end_inset
12402
12403  [
12404 \begin_inset Flex Code
12405 status collapsed
12406
12407 \begin_layout Plain Layout
12408 string
12409 \end_layout
12410
12411 \end_inset
12412
12413 =""] This paragraph will appear in the table of contents of the given type.
12414  An empty string disables.
12415  See also the OutlinerName and the IsTocCaption commands.
12416  Default: disabled.
12417 \end_layout
12418
12419 \begin_layout Description
12420 \begin_inset Flex Code
12421 status collapsed
12422
12423 \begin_layout Plain Layout
12424 Align
12425 \end_layout
12426
12427 \end_inset
12428
12429  [
12430 \begin_inset Flex Code
12431 status collapsed
12432
12433 \begin_layout Plain Layout
12434
12435 \emph on
12436 block
12437 \emph default
12438 , left, right, center
12439 \end_layout
12440
12441 \end_inset
12442
12443 ] Paragraph alignment.
12444 \end_layout
12445
12446 \begin_layout Description
12447 \begin_inset Flex Code
12448 status collapsed
12449
12450 \begin_layout Plain Layout
12451 AlignPossible
12452 \end_layout
12453
12454 \end_inset
12455
12456  [
12457 \begin_inset Flex Code
12458 status collapsed
12459
12460 \begin_layout Plain Layout
12461
12462 \emph on
12463 block
12464 \emph default
12465 , left, right, center
12466 \end_layout
12467
12468 \end_inset
12469
12470 ] A comma separated list of permitted alignments.
12471  (Some \SpecialChar LaTeX
12472  styles prohibit certain alignments, since those wouldn't make sense.
12473  For example a right-aligned or centered enumeration isn't possible.)
12474 \end_layout
12475
12476 \begin_layout Description
12477 \begin_inset Flex Code
12478 status collapsed
12479
12480 \begin_layout Plain Layout
12481 Argument
12482 \end_layout
12483
12484 \end_inset
12485
12486  [
12487 \begin_inset Flex Code
12488 status collapsed
12489
12490 \begin_layout Plain Layout
12491 int
12492 \end_layout
12493
12494 \end_inset
12495
12496 ] Defines argument number <int> of a command\SpecialChar breakableslash
12497 environment associated with
12498  the current style.
12499  This is useful for things like section headings, and only makes sense with
12500  \SpecialChar LaTeX
12501 .
12502  Every (optional or required) argument of a command or environment – except
12503  for the required argument that is associated with the content of the paragraph
12504  itself – has a separate definition, where the number specifies the order
12505  of the arguments.
12506  The definition must end with 
12507 \begin_inset Flex Code
12508 status collapsed
12509
12510 \begin_layout Plain Layout
12511 EndArgument
12512 \end_layout
12513
12514 \end_inset
12515
12516 .
12517  So a command with two optional arguments has:
12518 \end_layout
12519
12520 \begin_deeper
12521 \begin_layout Quote
12522
12523 \family typewriter
12524 Argument 1
12525 \end_layout
12526
12527 \begin_layout Quote
12528
12529 \family typewriter
12530 ...
12531 \end_layout
12532
12533 \begin_layout Quote
12534
12535 \family typewriter
12536 EndArgument
12537 \end_layout
12538
12539 \begin_layout Quote
12540
12541 \family typewriter
12542 Argument 2
12543 \end_layout
12544
12545 \begin_layout Quote
12546
12547 \family typewriter
12548 ...
12549 \end_layout
12550
12551 \begin_layout Quote
12552
12553 \family typewriter
12554 EndArgument
12555 \end_layout
12556
12557 \begin_layout Standard
12558 Inside the 
12559 \begin_inset Flex Code
12560 status collapsed
12561
12562 \begin_layout Plain Layout
12563 Argument
12564 \end_layout
12565
12566 \end_inset
12567
12568  definition, the following specifications are possible:
12569 \end_layout
12570
12571 \begin_layout Itemize
12572 \begin_inset Flex Code
12573 status collapsed
12574
12575 \begin_layout Plain Layout
12576 LabelString
12577 \end_layout
12578
12579 \end_inset
12580
12581  
12582 \begin_inset Flex Code
12583 status collapsed
12584
12585 \begin_layout Plain Layout
12586 [string]
12587 \end_layout
12588
12589 \end_inset
12590
12591  The string that will appear both in the menu (to insert this argument)
12592  and on the argument inset button (unless you also specify a separate 
12593 \begin_inset Flex Code
12594 status collapsed
12595
12596 \begin_layout Plain Layout
12597 MenuString
12598 \end_layout
12599
12600 \end_inset
12601
12602 ).
12603  For the menu, you can define an accelerator by appending the respective
12604  character to the string, divided by 
12605 \begin_inset Quotes eld
12606 \end_inset
12607
12608 |
12609 \begin_inset Quotes erd
12610 \end_inset
12611
12612  (e.
12613 \begin_inset space \thinspace{}
12614 \end_inset
12615
12616 g.
12617 \begin_inset space \space{}
12618 \end_inset
12619
12620
12621 \begin_inset Quotes eld
12622 \end_inset
12623
12624
12625 \begin_inset Flex Code
12626 status collapsed
12627
12628 \begin_layout Plain Layout
12629 Short Title|S
12630 \end_layout
12631
12632 \end_inset
12633
12634
12635 \begin_inset Quotes erd
12636 \end_inset
12637
12638 ).
12639 \end_layout
12640
12641 \begin_layout Itemize
12642 \begin_inset Flex Code
12643 status collapsed
12644
12645 \begin_layout Plain Layout
12646 MenuString
12647 \end_layout
12648
12649 \end_inset
12650
12651  
12652 \begin_inset Flex Code
12653 status collapsed
12654
12655 \begin_layout Plain Layout
12656 [string]
12657 \end_layout
12658
12659 \end_inset
12660
12661  A separate string for the menu.
12662  You can define an accelerator by appending the respective character to
12663  the string, divided by 
12664 \begin_inset Quotes eld
12665 \end_inset
12666
12667 |
12668 \begin_inset Quotes erd
12669 \end_inset
12670
12671  (e.
12672 \begin_inset space \thinspace{}
12673 \end_inset
12674
12675 g.
12676 \begin_inset space \space{}
12677 \end_inset
12678
12679
12680 \begin_inset Quotes eld
12681 \end_inset
12682
12683
12684 \begin_inset Flex Code
12685 status collapsed
12686
12687 \begin_layout Plain Layout
12688 Short Title|S
12689 \end_layout
12690
12691 \end_inset
12692
12693
12694 \begin_inset Quotes erd
12695 \end_inset
12696
12697 ).
12698  This specification is optional.
12699  If it is not given the 
12700 \begin_inset Flex Code
12701 status collapsed
12702
12703 \begin_layout Plain Layout
12704 LabelString
12705 \end_layout
12706
12707 \end_inset
12708
12709  will be used instead for the menu.
12710 \end_layout
12711
12712 \begin_layout Itemize
12713 \begin_inset Flex Code
12714 status collapsed
12715
12716 \begin_layout Plain Layout
12717 Tooltip
12718 \end_layout
12719
12720 \end_inset
12721
12722  
12723 \begin_inset Flex Code
12724 status collapsed
12725
12726 \begin_layout Plain Layout
12727 [string]
12728 \end_layout
12729
12730 \end_inset
12731
12732  A longer explanatory text that appears in the tooltip when hovering over
12733  the argument inset.
12734 \end_layout
12735
12736 \begin_layout Itemize
12737 \begin_inset Flex Code
12738 status collapsed
12739
12740 \begin_layout Plain Layout
12741 Mandatory
12742 \end_layout
12743
12744 \end_inset
12745
12746  [
12747 \begin_inset Flex Code
12748 status collapsed
12749
12750 \begin_layout Plain Layout
12751
12752 \emph on
12753 0
12754 \end_layout
12755
12756 \end_inset
12757
12758 ,
12759 \begin_inset space \thinspace{}
12760 \end_inset
12761
12762
12763 \begin_inset Flex Code
12764 status collapsed
12765
12766 \begin_layout Plain Layout
12767 1
12768 \end_layout
12769
12770 \end_inset
12771
12772 ] Declare if this is a mandatory (1) or an optional (0) argument.
12773  Mandatory arguments will be output empty if not given, while optional arguments
12774  will not be output at all.
12775  By default, mandatory arguments are delimited by 
12776 \begin_inset Flex Code
12777 status collapsed
12778
12779 \begin_layout Plain Layout
12780 {...}
12781 \end_layout
12782
12783 \end_inset
12784
12785 , while optional arguments are delimited by 
12786 \begin_inset Flex Code
12787 status collapsed
12788
12789 \begin_layout Plain Layout
12790 [...]
12791 \end_layout
12792
12793 \end_inset
12794
12795
12796 \change_inserted -712698321 1555579782
12797
12798 \end_layout
12799
12800 \begin_layout Itemize
12801
12802 \change_inserted -712698321 1555579780
12803 \begin_inset Flex Code
12804 status collapsed
12805
12806 \begin_layout Plain Layout
12807
12808 \change_inserted -712698321 1555579780
12809 NewlineCmd
12810 \change_unchanged
12811
12812 \end_layout
12813
12814 \end_inset
12815
12816  
12817 \begin_inset Flex Code
12818 status collapsed
12819
12820 \begin_layout Plain Layout
12821
12822 \change_inserted -712698321 1555579780
12823 [string]
12824 \change_unchanged
12825
12826 \end_layout
12827
12828 \end_inset
12829
12830  Option to define a different command (from the default 
12831 \begin_inset Flex Code
12832 status collapsed
12833
12834 \begin_layout Plain Layout
12835
12836 \change_inserted -712698321 1555579780
12837
12838 \backslash
12839
12840 \backslash
12841
12842 \change_unchanged
12843
12844 \end_layout
12845
12846 \end_inset
12847
12848 ) to be used for line breaks.
12849  The initial backslash must not be specified.
12850 \change_unchanged
12851
12852 \end_layout
12853
12854 \begin_layout Itemize
12855 \begin_inset Flex Code
12856 status collapsed
12857
12858 \begin_layout Plain Layout
12859 Requires
12860 \end_layout
12861
12862 \end_inset
12863
12864  
12865 \begin_inset Flex Code
12866 status collapsed
12867
12868 \begin_layout Plain Layout
12869 [int=0]
12870 \end_layout
12871
12872 \end_inset
12873
12874  defines another argument (by its number) which this argument requires to
12875  be output if it is itself output.
12876  E.
12877 \begin_inset space \thinspace{}
12878 \end_inset
12879
12880 g., in \SpecialChar LaTeX
12881  commands, optional arguments often require previous optional arguments
12882  to be output (at least empty), as in 
12883 \begin_inset Flex Code
12884 status collapsed
12885
12886 \begin_layout Plain Layout
12887
12888 \backslash
12889 command[][argument]{text}
12890 \end_layout
12891
12892 \end_inset
12893
12894 .
12895  This can be achieved by the statement 
12896 \begin_inset Flex Code
12897 status collapsed
12898
12899 \begin_layout Plain Layout
12900 Requires 1
12901 \end_layout
12902
12903 \end_inset
12904
12905  within 
12906 \begin_inset Flex Code
12907 status collapsed
12908
12909 \begin_layout Plain Layout
12910 Argument 2
12911 \end_layout
12912
12913 \end_inset
12914
12915 .
12916 \end_layout
12917
12918 \begin_layout Itemize
12919 \begin_inset Flex Code
12920 status collapsed
12921
12922 \begin_layout Plain Layout
12923 LeftDelim
12924 \end_layout
12925
12926 \end_inset
12927
12928  
12929 \begin_inset Flex Code
12930 status collapsed
12931
12932 \begin_layout Plain Layout
12933 [string]
12934 \end_layout
12935
12936 \end_inset
12937
12938  defines a custom left delimiter (instead of 
12939 \begin_inset Flex Code
12940 status collapsed
12941
12942 \begin_layout Plain Layout
12943 {
12944 \end_layout
12945
12946 \end_inset
12947
12948  or 
12949 \begin_inset Flex Code
12950 status collapsed
12951
12952 \begin_layout Plain Layout
12953 [
12954 \end_layout
12955
12956 \end_inset
12957
12958 ).
12959  A line break in the output can be indicated by 
12960 \begin_inset Flex Code
12961 status collapsed
12962
12963 \begin_layout Plain Layout
12964 <br/>
12965 \end_layout
12966
12967 \end_inset
12968
12969 .
12970 \end_layout
12971
12972 \begin_layout Itemize
12973 \begin_inset Flex Code
12974 status collapsed
12975
12976 \begin_layout Plain Layout
12977 RightDelim
12978 \end_layout
12979
12980 \end_inset
12981
12982  
12983 \begin_inset Flex Code
12984 status collapsed
12985
12986 \begin_layout Plain Layout
12987 [string]
12988 \end_layout
12989
12990 \end_inset
12991
12992  defines a custom right delimiter (instead of 
12993 \begin_inset Flex Code
12994 status collapsed
12995
12996 \begin_layout Plain Layout
12997 }
12998 \end_layout
12999
13000 \end_inset
13001
13002  or 
13003 \begin_inset Flex Code
13004 status collapsed
13005
13006 \begin_layout Plain Layout
13007 ]
13008 \end_layout
13009
13010 \end_inset
13011
13012 ).
13013  A line break in the output can be indicated by 
13014 \begin_inset Flex Code
13015 status collapsed
13016
13017 \begin_layout Plain Layout
13018 <br/>
13019 \end_layout
13020
13021 \end_inset
13022
13023 .
13024 \end_layout
13025
13026 \begin_layout Itemize
13027 \begin_inset Flex Code
13028 status collapsed
13029
13030 \begin_layout Plain Layout
13031 DefaultArg
13032 \end_layout
13033
13034 \end_inset
13035
13036  
13037 \begin_inset Flex Code
13038 status collapsed
13039
13040 \begin_layout Plain Layout
13041 [string]
13042 \end_layout
13043
13044 \end_inset
13045
13046  defines an argument that is inserted if and only if no user-specified arguments
13047  were given, i.
13048 \begin_inset space \thinspace{}
13049 \end_inset
13050
13051 e.
13052 \begin_inset space \space{}
13053 \end_inset
13054
13055 if no argument inset has been inserted (note that also an empty argument
13056  inset omits the DefaultArg).
13057  Multiple arguments need to be separated by comma.
13058 \end_layout
13059
13060 \begin_layout Itemize
13061 \begin_inset Flex Code
13062 status collapsed
13063
13064 \begin_layout Plain Layout
13065 PresetArg
13066 \end_layout
13067
13068 \end_inset
13069
13070  
13071 \begin_inset Flex Code
13072 status collapsed
13073
13074 \begin_layout Plain Layout
13075 [string]
13076 \end_layout
13077
13078 \end_inset
13079
13080  defines an argument that is inserted in any case (alone or in addition
13081  to user-specified arguments).
13082  Multiple arguments need to be separated by comma.
13083 \end_layout
13084
13085 \begin_layout Itemize
13086 \begin_inset Flex Code
13087 status collapsed
13088
13089 \begin_layout Plain Layout
13090 Font
13091 \end_layout
13092
13093 \end_inset
13094
13095  The font used for the argument content, see 
13096 \begin_inset CommandInset ref
13097 LatexCommand ref
13098 reference "subsec:Font-description"
13099
13100 \end_inset
13101
13102 .
13103 \change_inserted -712698321 1559484228
13104
13105 \end_layout
13106
13107 \begin_layout Itemize
13108
13109 \change_inserted -712698321 1559484228
13110 \begin_inset Flex Code
13111 status collapsed
13112
13113 \begin_layout Plain Layout
13114
13115 \change_inserted -712698321 1559484228
13116 FreeSpacing
13117 \change_unchanged
13118
13119 \end_layout
13120
13121 \end_inset
13122
13123  [
13124 \begin_inset Flex Code
13125 status collapsed
13126
13127 \begin_layout Plain Layout
13128
13129 \change_inserted -712698321 1559484228
13130
13131 \emph on
13132 0
13133 \change_unchanged
13134
13135 \end_layout
13136
13137 \end_inset
13138
13139 ,
13140 \begin_inset space \thinspace{}
13141 \end_inset
13142
13143
13144 \begin_inset Flex Code
13145 status collapsed
13146
13147 \begin_layout Plain Layout
13148
13149 \change_inserted -712698321 1559484228
13150 1
13151 \change_unchanged
13152
13153 \end_layout
13154
13155 \end_inset
13156
13157 ] As with paragraph styles, see 
13158 \begin_inset CommandInset ref
13159 LatexCommand ref
13160 reference "subsec:Paragraph-Styles"
13161
13162 \end_inset
13163
13164 .
13165 \change_unchanged
13166
13167 \end_layout
13168
13169 \begin_layout Itemize
13170 \begin_inset Flex Code
13171 status collapsed
13172
13173 \begin_layout Plain Layout
13174 LabelFont
13175 \end_layout
13176
13177 \end_inset
13178
13179  The font used for the label; see 
13180 \begin_inset CommandInset ref
13181 LatexCommand ref
13182 reference "subsec:Font-description"
13183
13184 \end_inset
13185
13186 .
13187 \end_layout
13188
13189 \begin_layout Itemize
13190 \begin_inset Flex Code
13191 status collapsed
13192
13193 \begin_layout Plain Layout
13194 Decoration
13195 \end_layout
13196
13197 \end_inset
13198
13199  [
13200 \begin_inset Flex Code
13201 status collapsed
13202
13203 \begin_layout Plain Layout
13204
13205 \emph on
13206 Classic
13207 \emph default
13208 , Minimalistic, Conglomerate
13209 \end_layout
13210
13211 \end_inset
13212
13213 ] describes the rendering style used for the inset's frame and buttons.
13214 \end_layout
13215
13216 \begin_layout Itemize
13217 \begin_inset Flex Code
13218 status collapsed
13219
13220 \begin_layout Plain Layout
13221 AutoInsert
13222 \end_layout
13223
13224 \end_inset
13225
13226  
13227 \begin_inset Flex Code
13228 status collapsed
13229
13230 \begin_layout Plain Layout
13231 [int=0]
13232 \end_layout
13233
13234 \end_inset
13235
13236  If this is set to 
13237 \begin_inset Flex Code
13238 status collapsed
13239
13240 \begin_layout Plain Layout
13241 1
13242 \end_layout
13243
13244 \end_inset
13245
13246 , this argument is automatically inserted when the respective style is selected.
13247
13248 \change_deleted -712698321 1559484200
13249  Currently, only one argument per style\SpecialChar breakableslash
13250 layout can be automatically inserted.
13251 \change_unchanged
13252
13253 \end_layout
13254
13255 \begin_layout Itemize
13256
13257 \change_inserted -712698321 1559491402
13258 \begin_inset Flex Code
13259 status collapsed
13260
13261 \begin_layout Plain Layout
13262
13263 \change_inserted -712698321 1559490711
13264 InsertOnNewline
13265 \change_unchanged
13266
13267 \end_layout
13268
13269 \end_inset
13270
13271  
13272 \begin_inset Flex Code
13273 status collapsed
13274
13275 \begin_layout Plain Layout
13276
13277 \change_inserted -712698321 1559490703
13278 [int=0]
13279 \change_unchanged
13280
13281 \end_layout
13282
13283 \end_inset
13284
13285  If this is set to 
13286 \begin_inset Flex Code
13287 status collapsed
13288
13289 \begin_layout Plain Layout
13290
13291 \change_inserted -712698321 1559490703
13292 1
13293 \change_unchanged
13294
13295 \end_layout
13296
13297 \end_inset
13298
13299 , this argument will be inserted on a new line with 
13300 \begin_inset Flex Code
13301 status collapsed
13302
13303 \begin_layout Plain Layout
13304
13305 \change_inserted -712698321 1559491402
13306 AutoInsert
13307 \change_unchanged
13308
13309 \end_layout
13310
13311 \end_inset
13312
13313  (only available within Flex insets).
13314 \end_layout
13315
13316 \begin_layout Itemize
13317 \begin_inset Flex Code
13318 status collapsed
13319
13320 \begin_layout Plain Layout
13321 InsertCotext
13322 \end_layout
13323
13324 \end_inset
13325
13326  
13327 \begin_inset Flex Code
13328 status collapsed
13329
13330 \begin_layout Plain Layout
13331 [int=0]
13332 \end_layout
13333
13334 \end_inset
13335
13336  If this is set to 
13337 \begin_inset Flex Code
13338 status collapsed
13339
13340 \begin_layout Plain Layout
13341 1
13342 \end_layout
13343
13344 \end_inset
13345
13346 , this argument will be inserted with a copy of the co-text (either selected
13347  text or the whole paragraph) as content.
13348 \end_layout
13349
13350 \begin_layout Itemize
13351 \begin_inset Flex Code
13352 status collapsed
13353
13354 \begin_layout Plain Layout
13355 PassThru
13356 \end_layout
13357
13358 \end_inset
13359
13360  [
13361 \begin_inset Flex Code
13362 status collapsed
13363
13364 \begin_layout Plain Layout
13365
13366 \emph on
13367 inherited
13368 \emph default
13369 , true, false
13370 \end_layout
13371
13372 \end_inset
13373
13374 ] Whether the contents of this argument should be output in raw form, meaning
13375  without special translations that \SpecialChar LaTeX
13376  would require.
13377  By default, the 
13378 \begin_inset Flex Code
13379 status collapsed
13380
13381 \begin_layout Plain Layout
13382 PassThru
13383 \end_layout
13384
13385 \end_inset
13386
13387  status is inherited by the inset or paragraph layout the argument belongs
13388  to, true and false change the status for the given argument only.
13389 \end_layout
13390
13391 \begin_layout Itemize
13392 \begin_inset Flex Code
13393 status collapsed
13394
13395 \begin_layout Plain Layout
13396 PassThruChars
13397 \end_layout
13398
13399 \end_inset
13400
13401  [
13402 \begin_inset Flex Code
13403 status collapsed
13404
13405 \begin_layout Plain Layout
13406 string of characters
13407 \end_layout
13408
13409 \end_inset
13410
13411 ]
13412 \family typewriter
13413  
13414 \family default
13415 Defines individual characters
13416 \begin_inset Newline linebreak
13417 \end_inset
13418
13419 that should be output in raw form, meaning without special translations
13420  that \SpecialChar LaTeX
13421  would require.
13422  Note that, contrary to PassThru, this needs to be explicitly defined for
13423  arguments.
13424  That is, arguments do not inherit PassThruChars from their parent inset
13425  or layout.
13426 \end_layout
13427
13428 \begin_layout Itemize
13429 \begin_inset Flex Code
13430 status collapsed
13431
13432 \begin_layout Plain Layout
13433 IsTocCaption
13434 \end_layout
13435
13436 \end_inset
13437
13438  [
13439 \begin_inset Flex Code
13440 status collapsed
13441
13442 \begin_layout Plain Layout
13443
13444 \emph on
13445 0
13446 \end_layout
13447
13448 \end_inset
13449
13450 ,
13451 \begin_inset space \thinspace{}
13452 \end_inset
13453
13454
13455 \begin_inset Flex Code
13456 status collapsed
13457
13458 \begin_layout Plain Layout
13459 1
13460 \end_layout
13461
13462 \end_inset
13463
13464 ] If this is set to 1, the argument will output its content in the corresponding
13465  item in the table of contents.
13466  See AddToToc.
13467 \end_layout
13468
13469 \begin_layout Standard
13470 By default, the text entered in the \SpecialChar LyX
13471  workarea in the respective layout is
13472  the last (mandatory) argument of a command if the 
13473 \begin_inset Flex Code
13474 status collapsed
13475
13476 \begin_layout Plain Layout
13477 LatexType
13478 \end_layout
13479
13480 \end_inset
13481
13482  is 
13483 \begin_inset Flex Code
13484 status collapsed
13485
13486 \begin_layout Plain Layout
13487 Command
13488 \end_layout
13489
13490 \end_inset
13491
13492 .
13493  However, arguments with the prefix 
13494 \begin_inset Flex Code
13495 status collapsed
13496
13497 \begin_layout Plain Layout
13498 post:
13499 \end_layout
13500
13501 \end_inset
13502
13503  are output after this workarea argument.
13504  Note that post-argument numbering restarts at 1, so the first argument
13505  following the workarea argument is 
13506 \begin_inset Flex Code
13507 status collapsed
13508
13509 \begin_layout Plain Layout
13510 post:1
13511 \end_layout
13512
13513 \end_inset
13514
13515 .
13516  Post-arguments are ignored in any other 
13517 \begin_inset Flex Code
13518 status collapsed
13519
13520 \begin_layout Plain Layout
13521 LatexType
13522 \end_layout
13523
13524 \end_inset
13525
13526  than 
13527 \begin_inset Flex Code
13528 status collapsed
13529
13530 \begin_layout Plain Layout
13531 Command
13532 \end_layout
13533
13534 \end_inset
13535
13536 .
13537 \end_layout
13538
13539 \begin_layout Standard
13540 Arguments for list 
13541 \begin_inset Flex Code
13542 status collapsed
13543
13544 \begin_layout Plain Layout
13545
13546 \backslash
13547 item
13548 \end_layout
13549
13550 \end_inset
13551
13552 s (as in 
13553 \begin_inset Flex Code
13554 status collapsed
13555
13556 \begin_layout Plain Layout
13557
13558 \backslash
13559 item[foo]
13560 \end_layout
13561
13562 \end_inset
13563
13564 ) have the prefix 
13565 \begin_inset Flex Code
13566 status collapsed
13567
13568 \begin_layout Plain Layout
13569 item:
13570 \end_layout
13571
13572 \end_inset
13573
13574  followed by the number (e.
13575 \begin_inset space \thinspace{}
13576 \end_inset
13577
13578 g.
13579 \begin_inset space \space{}
13580 \end_inset
13581
13582
13583 \begin_inset Flex Code
13584 status collapsed
13585
13586 \begin_layout Plain Layout
13587 Argument item:1
13588 \end_layout
13589
13590 \end_inset
13591
13592 ).
13593 \change_inserted -712698321 1534487781
13594
13595 \end_layout
13596
13597 \begin_layout Standard
13598
13599 \change_inserted -712698321 1534488561
13600 Finally, there is a special argument type with the prefix 
13601 \begin_inset Flex Code
13602 status collapsed
13603
13604 \begin_layout Plain Layout
13605
13606 \change_inserted -712698321 1534487844
13607 listpreamble:
13608 \change_unchanged
13609
13610 \end_layout
13611
13612 \end_inset
13613
13614 .
13615  It is not really an argument, but uses the argument interface (thus, the
13616  prefix is also followed by a number, e.
13617 \begin_inset space \thinspace{}
13618 \end_inset
13619
13620 g.
13621  
13622 \begin_inset Flex Code
13623 status collapsed
13624
13625 \begin_layout Plain Layout
13626
13627 \change_inserted -712698321 1534488412
13628 Argument listpreamble:1
13629 \change_unchanged
13630
13631 \end_layout
13632
13633 \end_inset
13634
13635 ).
13636  As the name implies, it is targeted at lists such as 
13637 \family sans
13638 Itemize
13639 \family default
13640
13641 \family sans
13642 Enumerate
13643 \family default
13644
13645 \family sans
13646 Description
13647 \family default
13648 , or 
13649 \family sans
13650 Bibliography
13651 \family default
13652 .
13653  Its content will be output at the list start, before the first 
13654 \begin_inset Flex Code
13655 status collapsed
13656
13657 \begin_layout Plain Layout
13658
13659 \change_inserted -712698321 1534488058
13660
13661 \backslash
13662 item
13663 \change_unchanged
13664
13665 \end_layout
13666
13667 \end_inset
13668
13669 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13670 ).
13671  This way, users can insert redefinitions (of lengths etc.) to individual
13672  lists.
13673  By default, these arguments do not have a delimiter.
13674 \change_unchanged
13675
13676 \end_layout
13677
13678 \end_deeper
13679 \begin_layout Description
13680 \begin_inset Flex Code
13681 status collapsed
13682
13683 \begin_layout Plain Layout
13684 AutoNests
13685 \end_layout
13686
13687 \end_inset
13688
13689  Includes a comma-separated list of layouts that should be nested in and
13690  after the current layout.
13691  Only makes sense for nestable layouts (such as environments).
13692  Must be ended by 
13693 \begin_inset Quotes eld
13694 \end_inset
13695
13696
13697 \begin_inset Flex Code
13698 status collapsed
13699
13700 \begin_layout Plain Layout
13701 EndAutoNests
13702 \end_layout
13703
13704 \end_inset
13705
13706
13707 \begin_inset Quotes erd
13708 \end_inset
13709
13710 .
13711  See also 
13712 \begin_inset Flex Code
13713 status collapsed
13714
13715 \begin_layout Plain Layout
13716 IsAutoNestedBy
13717 \end_layout
13718
13719 \end_inset
13720
13721 .
13722 \end_layout
13723
13724 \begin_layout Description
13725 \begin_inset Flex Code
13726 status collapsed
13727
13728 \begin_layout Plain Layout
13729 BabelPreamble
13730 \end_layout
13731
13732 \end_inset
13733
13734  Note that this will completely override any prior 
13735 \begin_inset Flex Code
13736 status collapsed
13737
13738 \begin_layout Plain Layout
13739 BabelPreamble
13740 \end_layout
13741
13742 \end_inset
13743
13744  declaration for this style.
13745  Must end with 
13746 \begin_inset Quotes eld
13747 \end_inset
13748
13749
13750 \begin_inset Flex Code
13751 status collapsed
13752
13753 \begin_layout Plain Layout
13754 EndBabelPreamble
13755 \end_layout
13756
13757 \end_inset
13758
13759
13760 \begin_inset Quotes erd
13761 \end_inset
13762
13763 .
13764  See 
13765 \begin_inset CommandInset ref
13766 LatexCommand ref
13767 reference "subsec:I18n"
13768
13769 \end_inset
13770
13771  for details on its use.
13772 \end_layout
13773
13774 \begin_layout Description
13775 \begin_inset Flex Code
13776 status collapsed
13777
13778 \begin_layout Plain Layout
13779 BottomSep
13780 \end_layout
13781
13782 \end_inset
13783
13784  [
13785 \begin_inset Flex Code
13786 status collapsed
13787
13788 \begin_layout Plain Layout
13789 float=0
13790 \end_layout
13791
13792 \end_inset
13793
13794 ]
13795 \begin_inset Foot
13796 status collapsed
13797
13798 \begin_layout Plain Layout
13799 Note that a `float' here is a real number, such as: 1.5.
13800 \end_layout
13801
13802 \end_inset
13803
13804  The vertical space with which the last of a chain of paragraphs with this
13805  style is separated from the following paragraph.
13806  If the next paragraph has another style, the separations are not simply
13807  added, but the maximum is taken.
13808 \end_layout
13809
13810 \begin_layout Description
13811 \begin_inset Flex Code
13812 status collapsed
13813
13814 \begin_layout Plain Layout
13815 Category
13816 \end_layout
13817
13818 \end_inset
13819
13820  [
13821 \begin_inset Flex Code
13822 status collapsed
13823
13824 \begin_layout Plain Layout
13825 string
13826 \end_layout
13827
13828 \end_inset
13829
13830 ] The category for this style.
13831  This is used to group related styles in the style combobox on the toolbar.
13832  Any string can be used, but you may want to use existing categories with
13833  your own styles.
13834  
13835 \end_layout
13836
13837 \begin_layout Description
13838 \begin_inset Flex Code
13839 status collapsed
13840
13841 \begin_layout Plain Layout
13842 CommandDepth
13843 \end_layout
13844
13845 \end_inset
13846
13847  Depth of XML command.
13848  Used only with XML-type formats.
13849 \end_layout
13850
13851 \begin_layout Description
13852 \begin_inset Flex Code
13853 status collapsed
13854
13855 \begin_layout Plain Layout
13856 CopyStyle
13857 \end_layout
13858
13859 \end_inset
13860
13861  [
13862 \begin_inset Flex Code
13863 status collapsed
13864
13865 \begin_layout Plain Layout
13866 string
13867 \end_layout
13868
13869 \end_inset
13870
13871 ] Copies all the features of an existing style into the current one.
13872  
13873 \end_layout
13874
13875 \begin_layout Description
13876 \begin_inset Flex Code
13877 status collapsed
13878
13879 \begin_layout Plain Layout
13880 DependsOn
13881 \end_layout
13882
13883 \end_inset
13884
13885  [
13886 \begin_inset Flex Code
13887 status collapsed
13888
13889 \begin_layout Plain Layout
13890 <name>
13891 \end_layout
13892
13893 \end_inset
13894
13895 ] The name of a style whose preamble should be output 
13896 \emph on
13897 before
13898 \emph default
13899  this one.
13900  This allows to ensure some ordering of the preamble snippets when macros
13901  definitions depend on one another.
13902 \begin_inset Foot
13903 status collapsed
13904
13905 \begin_layout Plain Layout
13906 Note that, besides that functionality, there is no way to ensure any ordering
13907  of preambles.
13908  The ordering that you see in a given version of \SpecialChar LyX
13909  may change without warning
13910  in later versions.
13911 \end_layout
13912
13913 \end_inset
13914
13915
13916 \end_layout
13917
13918 \begin_layout Description
13919 \begin_inset Flex Code
13920 status collapsed
13921
13922 \begin_layout Plain Layout
13923 EndLabeltype
13924 \end_layout
13925
13926 \end_inset
13927
13928  [
13929 \begin_inset Flex Code
13930 status collapsed
13931
13932 \begin_layout Plain Layout
13933
13934 \emph on
13935 No_Label
13936 \emph default
13937 , Box, Filled_Box, Static
13938 \end_layout
13939
13940 \end_inset
13941
13942 ] The type of label that stands at the end of the paragraph (or sequence
13943  of paragraphs if 
13944 \begin_inset Flex Code
13945 status collapsed
13946
13947 \begin_layout Plain Layout
13948 LatexType
13949 \end_layout
13950
13951 \end_inset
13952
13953  is
13954 \begin_inset Newline newline
13955 \end_inset
13956
13957
13958 \begin_inset Flex Code
13959 status collapsed
13960
13961 \begin_layout Plain Layout
13962 Environment
13963 \end_layout
13964
13965 \end_inset
13966
13967
13968 \begin_inset Flex Code
13969 status collapsed
13970
13971 \begin_layout Plain Layout
13972 Item_Environment
13973 \end_layout
13974
13975 \end_inset
13976
13977  or 
13978 \begin_inset Flex Code
13979 status collapsed
13980
13981 \begin_layout Plain Layout
13982 List_Environment
13983 \end_layout
13984
13985 \end_inset
13986
13987 ).
13988  
13989 \begin_inset Flex Code
13990 status collapsed
13991
13992 \begin_layout Plain Layout
13993 No_Label
13994 \end_layout
13995
13996 \end_inset
13997
13998  means 
13999 \begin_inset Quotes eld
14000 \end_inset
14001
14002 nothing
14003 \begin_inset Quotes erd
14004 \end_inset
14005
14006
14007 \begin_inset Flex Code
14008 status collapsed
14009
14010 \begin_layout Plain Layout
14011 Box
14012 \end_layout
14013
14014 \end_inset
14015
14016  (resp.
14017 \begin_inset space \space{}
14018 \end_inset
14019
14020
14021 \begin_inset Flex Code
14022 status collapsed
14023
14024 \begin_layout Plain Layout
14025 Filled_Box
14026 \end_layout
14027
14028 \end_inset
14029
14030 ) is a white (resp.
14031 \begin_inset space ~
14032 \end_inset
14033
14034 black) square suitable for end of proof markers, 
14035 \begin_inset Flex Code
14036 status collapsed
14037
14038 \begin_layout Plain Layout
14039 Static
14040 \end_layout
14041
14042 \end_inset
14043
14044  is an explicit text string.
14045 \end_layout
14046
14047 \begin_layout Description
14048 \begin_inset Flex Code
14049 status collapsed
14050
14051 \begin_layout Plain Layout
14052 EndLabelString
14053 \end_layout
14054
14055 \end_inset
14056
14057  [
14058 \begin_inset Flex Code
14059 status collapsed
14060
14061 \begin_layout Plain Layout
14062 string=""
14063 \end_layout
14064
14065 \end_inset
14066
14067 ] The string used for a label with a 
14068 \begin_inset Flex Code
14069 status collapsed
14070
14071 \begin_layout Plain Layout
14072 Static
14073 \end_layout
14074
14075 \end_inset
14076
14077
14078 \begin_inset Newline newline
14079 \end_inset
14080
14081
14082 \begin_inset Flex Code
14083 status collapsed
14084
14085 \begin_layout Plain Layout
14086 EndLabelType
14087 \end_layout
14088
14089 \end_inset
14090
14091 .
14092  
14093 \end_layout
14094
14095 \begin_layout Description
14096 \begin_inset Flex Code
14097 status collapsed
14098
14099 \begin_layout Plain Layout
14100 Font
14101 \end_layout
14102
14103 \end_inset
14104
14105  The font used for both the text body 
14106 \emph on
14107 and
14108 \emph default
14109  the label.
14110  See 
14111 \begin_inset CommandInset ref
14112 LatexCommand ref
14113 reference "subsec:Font-description"
14114
14115 \end_inset
14116
14117 .
14118  Note that defining this font automatically defines the 
14119 \begin_inset Flex Code
14120 status collapsed
14121
14122 \begin_layout Plain Layout
14123 LabelFont
14124 \end_layout
14125
14126 \end_inset
14127
14128  to the same value.
14129  So you should define this one first if you also want to define 
14130 \begin_inset Flex Code
14131 status collapsed
14132
14133 \begin_layout Plain Layout
14134 LabelFont
14135 \end_layout
14136
14137 \end_inset
14138
14139 .
14140 \end_layout
14141
14142 \begin_layout Description
14143 \begin_inset Flex Code
14144 status collapsed
14145
14146 \begin_layout Plain Layout
14147 ForceLocal
14148 \end_layout
14149
14150 \end_inset
14151
14152  [
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 int=0
14158 \end_layout
14159
14160 \end_inset
14161
14162 ] Used for backporting new styles to stable \SpecialChar LyX
14163  versions.
14164  The first stable version that supports this tag is \SpecialChar LyX
14165  2.1.0.
14166  The argument is a number which may either be 0, -1 or any value greater
14167  than zero.
14168  If the 
14169 \begin_inset Flex Code
14170 status collapsed
14171
14172 \begin_layout Plain Layout
14173 ForceLocal
14174 \end_layout
14175
14176 \end_inset
14177
14178  flag of a style is greater than zero, it will always be written to the
14179  document header.
14180  If a .lyx file is read, the style definitions from the document header are
14181  added to the document class.
14182  Therefore even older \SpecialChar LyX
14183  versions can handle the style.
14184  The argument of 
14185 \begin_inset Flex Code
14186 status collapsed
14187
14188 \begin_layout Plain Layout
14189 ForceLocal
14190 \end_layout
14191
14192 \end_inset
14193
14194  is a version number: if the style is read, and the version number is less
14195  than the version number of the already existing style in the document class,
14196  the new style is ignored.
14197  If the version number is greater, the new style replaces the existing style.
14198  A value of -1 means an infinite version number, i.
14199 \begin_inset space \thinspace{}
14200 \end_inset
14201
14202 e.
14203 \begin_inset space \space{}
14204 \end_inset
14205
14206 the style is always used.
14207 \end_layout
14208
14209 \begin_layout Description
14210 \begin_inset Flex Code
14211 status collapsed
14212
14213 \begin_layout Plain Layout
14214 FreeSpacing
14215 \end_layout
14216
14217 \end_inset
14218
14219  [
14220 \begin_inset Flex Code
14221 status collapsed
14222
14223 \begin_layout Plain Layout
14224
14225 \emph on
14226 0
14227 \end_layout
14228
14229 \end_inset
14230
14231 ,
14232 \begin_inset space \thinspace{}
14233 \end_inset
14234
14235
14236 \begin_inset Flex Code
14237 status collapsed
14238
14239 \begin_layout Plain Layout
14240 1
14241 \end_layout
14242
14243 \end_inset
14244
14245 ] Usually \SpecialChar LyX
14246  does not allow you to insert more than one space between words,
14247  since a space is considered as the separation between two words, not a
14248  character or symbol of its own.
14249  This is a very fine thing but sometimes annoying, for example, when typing
14250  program code or plain \SpecialChar LaTeX
14251  code.
14252  For this reason, 
14253 \begin_inset Flex Code
14254 status collapsed
14255
14256 \begin_layout Plain Layout
14257 FreeSpacing
14258 \end_layout
14259
14260 \end_inset
14261
14262  can be enabled.
14263  
14264 \change_deleted -495245474 1550490105
14265 Note that 
14266 \change_unchanged
14267 \SpecialChar LyX
14268  will create protected blanks for the additional blanks when in 
14269 \change_inserted -495245474 1550490096
14270
14271 \begin_inset Flex Code
14272 status collapsed
14273
14274 \begin_layout Plain Layout
14275
14276 \change_inserted -495245474 1550490089
14277 Passthru 1
14278 \change_unchanged
14279
14280 \end_layout
14281
14282 \end_inset
14283
14284  is not specified.
14285 \change_deleted -495245474 1550490116
14286 another mode than \SpecialChar LaTeX
14287 -mode.
14288
14289 \change_inserted -495245474 1550247760
14290  Note that 
14291 \begin_inset Flex Code
14292 status collapsed
14293
14294 \begin_layout Plain Layout
14295
14296 \change_inserted -495245474 1550247736
14297 FreeSpacing
14298 \change_unchanged
14299
14300 \end_layout
14301
14302 \end_inset
14303
14304  implies 
14305 \begin_inset Flex Code
14306 status collapsed
14307
14308 \begin_layout Plain Layout
14309
14310 \change_inserted -495245474 1550247755
14311 KeepEmpty
14312 \change_unchanged
14313
14314 \end_layout
14315
14316 \end_inset
14317
14318 .
14319 \change_unchanged
14320
14321 \end_layout
14322
14323 \begin_layout Description
14324 \begin_inset Flex Code
14325 status collapsed
14326
14327 \begin_layout Plain Layout
14328 HTML*
14329 \end_layout
14330
14331 \end_inset
14332
14333  These tags are used with XHTML output.
14334  See 
14335 \begin_inset CommandInset ref
14336 LatexCommand ref
14337 reference "subsec:Paragraph-Style-XHTML"
14338
14339 \end_inset
14340
14341 .
14342 \end_layout
14343
14344 \begin_layout Description
14345 \begin_inset Flex Code
14346 status collapsed
14347
14348 \begin_layout Plain Layout
14349 InnerTag
14350 \end_layout
14351
14352 \end_inset
14353
14354  [FIXME] (Used only with XML-type formats.)
14355 \end_layout
14356
14357 \begin_layout Description
14358 \begin_inset Flex Code
14359 status collapsed
14360
14361 \begin_layout Plain Layout
14362 InPreamble
14363 \end_layout
14364
14365 \end_inset
14366
14367  [
14368 \begin_inset Flex Code
14369 status collapsed
14370
14371 \begin_layout Plain Layout
14372
14373 \emph on
14374 0
14375 \end_layout
14376
14377 \end_inset
14378
14379 ,
14380 \begin_inset space \thinspace{}
14381 \end_inset
14382
14383
14384 \begin_inset Flex Code
14385 status collapsed
14386
14387 \begin_layout Plain Layout
14388 1
14389 \end_layout
14390
14391 \end_inset
14392
14393 ] If 
14394 \begin_inset Flex Code
14395 status collapsed
14396
14397 \begin_layout Plain Layout
14398 1
14399 \end_layout
14400
14401 \end_inset
14402
14403 , marks the style as to be included in the document preamble and not in
14404  the document body.
14405  This is useful for document classes that want such information as the title
14406  and author to appear in the preamble.
14407  Note that this works only for styles for which the 
14408 \begin_inset Flex Code
14409 status collapsed
14410
14411 \begin_layout Plain Layout
14412 LatexType
14413 \end_layout
14414
14415 \end_inset
14416
14417  is 
14418 \begin_inset Flex Code
14419 status collapsed
14420
14421 \begin_layout Plain Layout
14422 Command
14423 \end_layout
14424
14425 \end_inset
14426
14427  or 
14428 \begin_inset Flex Code
14429 status collapsed
14430
14431 \begin_layout Plain Layout
14432 Paragraph
14433 \end_layout
14434
14435 \end_inset
14436
14437 .
14438 \end_layout
14439
14440 \begin_layout Description
14441 \begin_inset Flex Code
14442 status collapsed
14443
14444 \begin_layout Plain Layout
14445 InTitle
14446 \end_layout
14447
14448 \end_inset
14449
14450  [
14451 \begin_inset Flex Code
14452 status collapsed
14453
14454 \begin_layout Plain Layout
14455
14456 \emph on
14457 0
14458 \end_layout
14459
14460 \end_inset
14461
14462 ,
14463 \begin_inset space \thinspace{}
14464 \end_inset
14465
14466
14467 \begin_inset Flex Code
14468 status collapsed
14469
14470 \begin_layout Plain Layout
14471 1
14472 \end_layout
14473
14474 \end_inset
14475
14476 ] If 
14477 \begin_inset Flex Code
14478 status collapsed
14479
14480 \begin_layout Plain Layout
14481 1
14482 \end_layout
14483
14484 \end_inset
14485
14486 , marks the style as being part of a title block (see also the 
14487 \begin_inset Flex Code
14488 status collapsed
14489
14490 \begin_layout Plain Layout
14491 TitleLatexType
14492 \end_layout
14493
14494 \end_inset
14495
14496  and 
14497 \begin_inset Flex Code
14498 status collapsed
14499
14500 \begin_layout Plain Layout
14501 TitleLatexName
14502 \end_layout
14503
14504 \end_inset
14505
14506  global entries).
14507 \end_layout
14508
14509 \begin_layout Description
14510 \begin_inset Flex Code
14511 status collapsed
14512
14513 \begin_layout Plain Layout
14514 IsAutoNestedBy
14515 \end_layout
14516
14517 \end_inset
14518
14519  Includes a comma-separated list of layouts after which this one should
14520  be nested.
14521  Only makes sense with regard to nestable layouts (such as environments).
14522  Must be ended by 
14523 \begin_inset Quotes eld
14524 \end_inset
14525
14526
14527 \begin_inset Flex Code
14528 status collapsed
14529
14530 \begin_layout Plain Layout
14531 EndIsAutoNestedBy
14532 \end_layout
14533
14534 \end_inset
14535
14536
14537 \begin_inset Quotes erd
14538 \end_inset
14539
14540 .
14541  See also 
14542 \begin_inset Flex Code
14543 status collapsed
14544
14545 \begin_layout Plain Layout
14546 AutoNests
14547 \end_layout
14548
14549 \end_inset
14550
14551 .
14552 \end_layout
14553
14554 \begin_layout Description
14555 \begin_inset Flex Code
14556 status collapsed
14557
14558 \begin_layout Plain Layout
14559 IsTocCaption
14560 \end_layout
14561
14562 \end_inset
14563
14564  [
14565 \begin_inset Flex Code
14566 status collapsed
14567
14568 \begin_layout Plain Layout
14569
14570 \emph on
14571 0
14572 \end_layout
14573
14574 \end_inset
14575
14576 ,
14577 \begin_inset space \thinspace{}
14578 \end_inset
14579
14580
14581 \begin_inset Flex Code
14582 status collapsed
14583
14584 \begin_layout Plain Layout
14585 1
14586 \end_layout
14587
14588 \end_inset
14589
14590 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14591  of its contents in its item in the table of contents.
14592  Otherwise, only the label, if it exists, appears.
14593 \end_layout
14594
14595 \begin_layout Description
14596 \begin_inset Flex Code
14597 status collapsed
14598
14599 \begin_layout Plain Layout
14600 ItemCommand
14601 \end_layout
14602
14603 \end_inset
14604
14605  [
14606 \begin_inset Flex Code
14607 status collapsed
14608
14609 \begin_layout Plain Layout
14610 string="item"
14611 \end_layout
14612
14613 \end_inset
14614
14615 ] The \SpecialChar LaTeX
14616  command sequence declaring an item in a list.
14617  The command is to be defined without the preceding backslash (the default
14618  is 
14619 \begin_inset Quotes eld
14620 \end_inset
14621
14622 item
14623 \begin_inset Quotes erd
14624 \end_inset
14625
14626 , resulting in 
14627 \begin_inset Flex Code
14628 status collapsed
14629
14630 \begin_layout Plain Layout
14631
14632 \backslash
14633 item
14634 \end_layout
14635
14636 \end_inset
14637
14638  in the \SpecialChar LaTeX
14639  output).
14640 \end_layout
14641
14642 \begin_layout Description
14643 \begin_inset Flex Code
14644 status collapsed
14645
14646 \begin_layout Plain Layout
14647 ItemSep
14648 \end_layout
14649
14650 \end_inset
14651
14652  [
14653 \begin_inset Flex Code
14654 status collapsed
14655
14656 \begin_layout Plain Layout
14657 float=0
14658 \end_layout
14659
14660 \end_inset
14661
14662 ] This provides extra space between paragraphs that have the same style.
14663  If you put other styles into an environment, each is separated with the
14664  environment's 
14665 \begin_inset Flex Code
14666 status collapsed
14667
14668 \begin_layout Plain Layout
14669 ParSep
14670 \end_layout
14671
14672 \end_inset
14673
14674 .
14675  But the whole items of the environment are additionally separated with
14676  this 
14677 \begin_inset Flex Code
14678 status collapsed
14679
14680 \begin_layout Plain Layout
14681 ItemSep
14682 \end_layout
14683
14684 \end_inset
14685
14686 .
14687  Note that this is a
14688 \emph on
14689  multiplier.
14690 \end_layout
14691
14692 \begin_layout Description
14693 \begin_inset Flex Code
14694 status collapsed
14695
14696 \begin_layout Plain Layout
14697 ItemTag
14698 \end_layout
14699
14700 \end_inset
14701
14702  [FIXME] (Used only with XML-type formats.)
14703 \end_layout
14704
14705 \begin_layout Description
14706 \begin_inset Flex Code
14707 status collapsed
14708
14709 \begin_layout Plain Layout
14710 KeepEmpty
14711 \end_layout
14712
14713 \end_inset
14714
14715  [
14716 \begin_inset Flex Code
14717 status collapsed
14718
14719 \begin_layout Plain Layout
14720
14721 \emph on
14722 0
14723 \end_layout
14724
14725 \end_inset
14726
14727 ,
14728 \begin_inset space \thinspace{}
14729 \end_inset
14730
14731
14732 \begin_inset Flex Code
14733 status collapsed
14734
14735 \begin_layout Plain Layout
14736 1
14737 \end_layout
14738
14739 \end_inset
14740
14741 ] Usually \SpecialChar LyX
14742  does not allow you to leave a paragraph empty, since it would
14743  lead to empty \SpecialChar LaTeX
14744  output.
14745  There are some cases where this could be desirable however: in a letter
14746  template, the required fields can be provided as empty fields, so that
14747  people do not forget them; in some special classes, a style can be used
14748  as some kind of break, which does not contain actual text.
14749 \end_layout
14750
14751 \begin_layout Description
14752 \begin_inset Flex Code
14753 status collapsed
14754
14755 \begin_layout Plain Layout
14756 LabelBottomsep
14757 \end_layout
14758
14759 \end_inset
14760
14761  [
14762 \begin_inset Flex Code
14763 status collapsed
14764
14765 \begin_layout Plain Layout
14766 float=0
14767 \end_layout
14768
14769 \end_inset
14770
14771 ] The vertical space between the label and the text body.
14772  Only used for labels that are above the text body (
14773 \begin_inset Flex Code
14774 status collapsed
14775
14776 \begin_layout Plain Layout
14777 Top_Environment
14778 \end_layout
14779
14780 \end_inset
14781
14782  and
14783 \begin_inset Newline newline
14784 \end_inset
14785
14786
14787 \begin_inset Flex Code
14788 status collapsed
14789
14790 \begin_layout Plain Layout
14791 Centered_Top_Environment
14792 \end_layout
14793
14794 \end_inset
14795
14796 ).
14797 \end_layout
14798
14799 \begin_layout Description
14800 \begin_inset Flex Code
14801 status collapsed
14802
14803 \begin_layout Plain Layout
14804 LabelCounter
14805 \end_layout
14806
14807 \end_inset
14808
14809  [
14810 \begin_inset Flex Code
14811 status collapsed
14812
14813 \begin_layout Plain Layout
14814 string=""
14815 \end_layout
14816
14817 \end_inset
14818
14819 ] The name of the counter for automatic numbering.
14820  In order to have the counter appear with your label, you will need to reference
14821  it in the 
14822 \begin_inset Flex Code
14823 status collapsed
14824
14825 \begin_layout Plain Layout
14826
14827 \family typewriter
14828 LabelString
14829 \end_layout
14830
14831 \end_inset
14832
14833 .
14834  This will work with 
14835 \begin_inset Flex Code
14836 status collapsed
14837
14838 \begin_layout Plain Layout
14839 LabelType
14840 \end_layout
14841
14842 \end_inset
14843
14844 s, 
14845 \begin_inset Flex Code
14846 status collapsed
14847
14848 \begin_layout Plain Layout
14849 Static
14850 \end_layout
14851
14852 \end_inset
14853
14854
14855 \begin_inset Flex Code
14856 status collapsed
14857
14858 \begin_layout Plain Layout
14859 Above
14860 \end_layout
14861
14862 \end_inset
14863
14864  and 
14865 \begin_inset Flex Code
14866 status collapsed
14867
14868 \begin_layout Plain Layout
14869 Centered
14870 \end_layout
14871
14872 \end_inset
14873
14874 , at least.
14875 \begin_inset Newline newline
14876 \end_inset
14877
14878 This 
14879 \emph on
14880 may
14881 \emph default
14882  also be given if 
14883 \begin_inset Flex Code
14884 status collapsed
14885
14886 \begin_layout Plain Layout
14887 LabelType
14888 \end_layout
14889
14890 \end_inset
14891
14892  is 
14893 \begin_inset Flex Code
14894 status collapsed
14895
14896 \begin_layout Plain Layout
14897 Enumerate
14898 \end_layout
14899
14900 \end_inset
14901
14902 , though this case is a bit complicated.
14903  Suppose you declare 
14904 \begin_inset Quotes eld
14905 \end_inset
14906
14907
14908 \begin_inset Flex Code
14909 status collapsed
14910
14911 \begin_layout Plain Layout
14912 LabelCounter myenum
14913 \end_layout
14914
14915 \end_inset
14916
14917
14918 \begin_inset Quotes erd
14919 \end_inset
14920
14921 .
14922  Then the actual counters used are 
14923 \begin_inset Flex Code
14924 status collapsed
14925
14926 \begin_layout Plain Layout
14927 myenumi
14928 \end_layout
14929
14930 \end_inset
14931
14932
14933 \begin_inset Flex Code
14934 status collapsed
14935
14936 \begin_layout Plain Layout
14937 myenumii
14938 \end_layout
14939
14940 \end_inset
14941
14942
14943 \begin_inset Flex Code
14944 status collapsed
14945
14946 \begin_layout Plain Layout
14947 myenumiii
14948 \end_layout
14949
14950 \end_inset
14951
14952  and 
14953 \begin_inset Flex Code
14954 status collapsed
14955
14956 \begin_layout Plain Layout
14957 myenumiv
14958 \end_layout
14959
14960 \end_inset
14961
14962 , much as in \SpecialChar LaTeX
14963 .
14964  These counters must all be declared separately.
14965 \begin_inset Newline newline
14966 \end_inset
14967
14968 See 
14969 \begin_inset CommandInset ref
14970 LatexCommand ref
14971 reference "subsec:Counters"
14972
14973 \end_inset
14974
14975  for details on counters.
14976 \end_layout
14977
14978 \begin_layout Description
14979 \begin_inset Flex Code
14980 status collapsed
14981
14982 \begin_layout Plain Layout
14983 LabelFont
14984 \end_layout
14985
14986 \end_inset
14987
14988  The font used for the label.
14989  See 
14990 \begin_inset CommandInset ref
14991 LatexCommand ref
14992 reference "subsec:Font-description"
14993
14994 \end_inset
14995
14996 .
14997 \end_layout
14998
14999 \begin_layout Description
15000 \begin_inset Flex Code
15001 status collapsed
15002
15003 \begin_layout Plain Layout
15004 LabelIndent
15005 \end_layout
15006
15007 \end_inset
15008
15009  [
15010 \begin_inset Flex Code
15011 status collapsed
15012
15013 \begin_layout Plain Layout
15014 string=""
15015 \end_layout
15016
15017 \end_inset
15018
15019 ] Text that indicates how far a label should be indented.
15020 \end_layout
15021
15022 \begin_layout Description
15023 \begin_inset Flex Code
15024 status collapsed
15025
15026 \begin_layout Plain Layout
15027 LabelSep
15028 \end_layout
15029
15030 \end_inset
15031
15032  [
15033 \begin_inset Flex Code
15034 status collapsed
15035
15036 \begin_layout Plain Layout
15037 string=""
15038 \end_layout
15039
15040 \end_inset
15041
15042 ] Text that indicates the amount of horizontal space between the label and
15043  the text body.
15044  Only used for labels that are not above the text body.
15045 \end_layout
15046
15047 \begin_layout Description
15048 \begin_inset Flex Code
15049 status collapsed
15050
15051 \begin_layout Plain Layout
15052 LabelString
15053 \end_layout
15054
15055 \end_inset
15056
15057  [
15058 \begin_inset Flex Code
15059 status collapsed
15060
15061 \begin_layout Plain Layout
15062 string=""
15063 \end_layout
15064
15065 \end_inset
15066
15067 ] The string used for the label.
15068  When 
15069 \begin_inset Flex Code
15070 status collapsed
15071
15072 \begin_layout Plain Layout
15073 LabelCounter
15074 \end_layout
15075
15076 \end_inset
15077
15078  is set, this string can be contain the special formatting commands described
15079  in 
15080 \begin_inset CommandInset ref
15081 LatexCommand ref
15082 reference "subsec:Counters"
15083
15084 \end_inset
15085
15086 .
15087 \end_layout
15088
15089 \begin_layout Description
15090 \begin_inset Flex Code
15091 status collapsed
15092
15093 \begin_layout Plain Layout
15094 LabelStringAppendix
15095 \end_layout
15096
15097 \end_inset
15098
15099  [
15100 \begin_inset Flex Code
15101 status collapsed
15102
15103 \begin_layout Plain Layout
15104 string=""
15105 \end_layout
15106
15107 \end_inset
15108
15109 ] This is used inside the appendix instead of
15110 \begin_inset Newline newline
15111 \end_inset
15112
15113
15114 \begin_inset Flex Code
15115 status collapsed
15116
15117 \begin_layout Plain Layout
15118 LabelString
15119 \end_layout
15120
15121 \end_inset
15122
15123 .
15124  Note that every 
15125 \begin_inset Flex Code
15126 status collapsed
15127
15128 \begin_layout Plain Layout
15129 LabelString
15130 \end_layout
15131
15132 \end_inset
15133
15134  statement resets
15135 \begin_inset Newline newline
15136 \end_inset
15137
15138
15139 \begin_inset Flex Code
15140 status collapsed
15141
15142 \begin_layout Plain Layout
15143 LabelStringAppendix
15144 \end_layout
15145
15146 \end_inset
15147
15148  too.
15149 \end_layout
15150
15151 \begin_layout Description
15152 \begin_inset Flex Code
15153 status collapsed
15154
15155 \begin_layout Plain Layout
15156 LabelTag
15157 \end_layout
15158
15159 \end_inset
15160
15161  [FIXME] (Used only with XML-type formats.)
15162 \end_layout
15163
15164 \begin_layout Description
15165 \begin_inset Flex Code
15166 status collapsed
15167
15168 \begin_layout Plain Layout
15169 LabelType
15170 \end_layout
15171
15172 \end_inset
15173
15174  [
15175 \begin_inset Flex Code
15176 status collapsed
15177
15178 \begin_layout Plain Layout
15179
15180 \emph on
15181 No_Label
15182 \emph default
15183 , Manual, Static, Above, 
15184 \begin_inset Newline newline
15185 \end_inset
15186
15187 Centered, Sensitive, Enumerate,
15188 \begin_inset Newline newline
15189 \end_inset
15190
15191 Itemize, Bibliography
15192 \end_layout
15193
15194 \end_inset
15195
15196 ]
15197 \end_layout
15198
15199 \begin_deeper
15200 \begin_layout Description
15201 \begin_inset Flex Code
15202 status collapsed
15203
15204 \begin_layout Plain Layout
15205 Manual
15206 \end_layout
15207
15208 \end_inset
15209
15210  means the label is the very first word (up to the first real blank).
15211  Use protected spaces if you want more than one word as the label.
15212  
15213 \end_layout
15214
15215 \begin_layout Description
15216 \begin_inset Flex Code
15217 status collapsed
15218
15219 \begin_layout Plain Layout
15220 Static
15221 \end_layout
15222
15223 \end_inset
15224
15225  means the label is simply what is declared as 
15226 \begin_inset Flex Code
15227 status collapsed
15228
15229 \begin_layout Plain Layout
15230 LabelString
15231 \end_layout
15232
15233 \end_inset
15234
15235 .
15236  This will be displayed 
15237 \begin_inset Quotes eld
15238 \end_inset
15239
15240 inline
15241 \begin_inset Quotes erd
15242 \end_inset
15243
15244 , at the beginning of the paragraph.
15245  If the 
15246 \begin_inset Flex Code
15247 status collapsed
15248
15249 \begin_layout Plain Layout
15250 LatexType
15251 \end_layout
15252
15253 \end_inset
15254
15255  is 
15256 \begin_inset Flex Code
15257 status collapsed
15258
15259 \begin_layout Plain Layout
15260 Environment
15261 \end_layout
15262
15263 \end_inset
15264
15265 , then it will be displayed only in the first paragraph of any sequence
15266  of paragraphs with the same 
15267 \begin_inset Flex Code
15268 status collapsed
15269
15270 \begin_layout Plain Layout
15271 Style
15272 \end_layout
15273
15274 \end_inset
15275
15276 .
15277 \end_layout
15278
15279 \begin_layout Description
15280 \begin_inset Flex Code
15281 status collapsed
15282
15283 \begin_layout Plain Layout
15284 Above
15285 \end_layout
15286
15287 \end_inset
15288
15289
15290 \begin_inset space ~
15291 \end_inset
15292
15293 and
15294 \begin_inset space ~
15295 \end_inset
15296
15297
15298 \begin_inset Flex Code
15299 status collapsed
15300
15301 \begin_layout Plain Layout
15302 Centered
15303 \end_layout
15304
15305 \end_inset
15306
15307  are special cases of 
15308 \begin_inset Flex Code
15309 status collapsed
15310
15311 \begin_layout Plain Layout
15312 Static
15313 \end_layout
15314
15315 \end_inset
15316
15317 .
15318  The label will be printed above the paragraph either at the beginning of
15319  the line or centered.
15320 \end_layout
15321
15322 \begin_layout Description
15323 \begin_inset Flex Code
15324 status collapsed
15325
15326 \begin_layout Plain Layout
15327 Sensitive
15328 \end_layout
15329
15330 \end_inset
15331
15332  is a special case for the caption-labels 
15333 \begin_inset Quotes eld
15334 \end_inset
15335
15336 Figure
15337 \begin_inset Quotes erd
15338 \end_inset
15339
15340  and 
15341 \begin_inset Quotes eld
15342 \end_inset
15343
15344 Table
15345 \begin_inset Quotes erd
15346 \end_inset
15347
15348 .
15349 \begin_inset Newline newline
15350 \end_inset
15351
15352
15353 \begin_inset Flex Code
15354 status collapsed
15355
15356 \begin_layout Plain Layout
15357 Sensitive
15358 \end_layout
15359
15360 \end_inset
15361
15362  means the (hardcoded) label string depends on the kind of float: It is
15363  hardcoded to be `FloatType N', where N is the value of the counter associated
15364  with the float.
15365  For the case that a caption is inserted outside of a float the 
15366 \begin_inset Flex Code
15367 status collapsed
15368
15369 \begin_layout Plain Layout
15370 LabelString
15371 \end_layout
15372
15373 \end_inset
15374
15375  will appear as 
15376 \begin_inset Quotes eld
15377 \end_inset
15378
15379 Senseless!
15380 \begin_inset Quotes erd
15381 \end_inset
15382
15383 .
15384 \end_layout
15385
15386 \begin_layout Description
15387 \begin_inset Flex Code
15388 status collapsed
15389
15390 \begin_layout Plain Layout
15391 Enumerate
15392 \end_layout
15393
15394 \end_inset
15395
15396  produces the usual sort of enumeration labels.
15397  The number type needs to be set in the 
15398 \family sans
15399 Counter
15400 \family default
15401 , see 
15402 \begin_inset CommandInset ref
15403 LatexCommand ref
15404 reference "subsec:Counters"
15405
15406 \end_inset
15407
15408 .
15409 \end_layout
15410
15411 \begin_layout Description
15412 \begin_inset Flex Code
15413 status collapsed
15414
15415 \begin_layout Plain Layout
15416 Itemize
15417 \end_layout
15418
15419 \end_inset
15420
15421  produces various bullets at the different levels.
15422  The bullet types displayed can be set via 
15423 \begin_inset Flex Noun
15424 status collapsed
15425
15426 \begin_layout Plain Layout
15427 Document\SpecialChar menuseparator
15428 Settings\SpecialChar menuseparator
15429 Bullets
15430 \end_layout
15431
15432 \end_inset
15433
15434 .
15435 \end_layout
15436
15437 \begin_layout Description
15438 \begin_inset Flex Code
15439 status collapsed
15440
15441 \begin_layout Plain Layout
15442 Bibliography
15443 \end_layout
15444
15445 \end_inset
15446
15447  should be used only with 
15448 \begin_inset Flex Code
15449 status collapsed
15450
15451 \begin_layout Plain Layout
15452 LatexType BibEnvironment
15453 \end_layout
15454
15455 \end_inset
15456
15457 .
15458 \end_layout
15459
15460 \end_deeper
15461 \begin_layout Description
15462 \begin_inset Flex Code
15463 status collapsed
15464
15465 \begin_layout Plain Layout
15466 LangPreamble
15467 \end_layout
15468
15469 \end_inset
15470
15471  Note that this will completely override any prior 
15472 \begin_inset Flex Code
15473 status collapsed
15474
15475 \begin_layout Plain Layout
15476 LangPreamble
15477 \end_layout
15478
15479 \end_inset
15480
15481  declaration for this style.
15482  Must end with 
15483 \begin_inset Quotes eld
15484 \end_inset
15485
15486
15487 \begin_inset Flex Code
15488 status collapsed
15489
15490 \begin_layout Plain Layout
15491 EndLangPreamble
15492 \end_layout
15493
15494 \end_inset
15495
15496
15497 \begin_inset Quotes erd
15498 \end_inset
15499
15500 .
15501  See 
15502 \begin_inset CommandInset ref
15503 LatexCommand ref
15504 reference "subsec:I18n"
15505
15506 \end_inset
15507
15508  for details on its use.
15509 \end_layout
15510
15511 \begin_layout Description
15512 \begin_inset Flex Code
15513 status collapsed
15514
15515 \begin_layout Plain Layout
15516 LatexName
15517 \end_layout
15518
15519 \end_inset
15520
15521  [
15522 \begin_inset Flex Code
15523 status collapsed
15524
15525 \begin_layout Plain Layout
15526 <name>
15527 \end_layout
15528
15529 \end_inset
15530
15531 ] The name of the corresponding \SpecialChar LaTeX
15532  stuff.
15533  Either the environment or command name.
15534 \end_layout
15535
15536 \begin_layout Description
15537 \begin_inset Flex Code
15538 status collapsed
15539
15540 \begin_layout Plain Layout
15541 LatexParam
15542 \end_layout
15543
15544 \end_inset
15545
15546  [
15547 \begin_inset Flex Code
15548 status collapsed
15549
15550 \begin_layout Plain Layout
15551 <parameter>
15552 \end_layout
15553
15554 \end_inset
15555
15556 ] An optional parameter for the corresponding 
15557 \begin_inset Flex Code
15558 status collapsed
15559
15560 \begin_layout Plain Layout
15561 LatexName
15562 \end_layout
15563
15564 \end_inset
15565
15566  stuff.
15567  This parameter cannot be changed from within \SpecialChar LyX
15568  (use 
15569 \begin_inset Flex Code
15570 status collapsed
15571
15572 \begin_layout Plain Layout
15573 Argument
15574 \end_layout
15575
15576 \end_inset
15577
15578  for customizable parameters).
15579  This will be output as is after all \SpecialChar LaTeX
15580  
15581 \begin_inset Flex Code
15582 status collapsed
15583
15584 \begin_layout Plain Layout
15585 Argument
15586 \end_layout
15587
15588 \end_inset
15589
15590 s.
15591 \end_layout
15592
15593 \begin_layout Description
15594 \begin_inset Flex Code
15595 status collapsed
15596
15597 \begin_layout Plain Layout
15598 LatexType
15599 \end_layout
15600
15601 \end_inset
15602
15603  [
15604 \begin_inset Flex Code
15605 status collapsed
15606
15607 \begin_layout Plain Layout
15608
15609 \emph on
15610 Paragraph
15611 \emph default
15612 , Command, Environment, Item_Environment,
15613 \begin_inset Newline newline
15614 \end_inset
15615
15616 List_Environment, Bib_Environment
15617 \end_layout
15618
15619 \end_inset
15620
15621 ] How the style should be translated into \SpecialChar LaTeX
15622 .
15623 \begin_inset Foot
15624 status collapsed
15625
15626 \begin_layout Plain Layout
15627 \begin_inset Flex Code
15628 status collapsed
15629
15630 \begin_layout Plain Layout
15631 LatexType
15632 \end_layout
15633
15634 \end_inset
15635
15636  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15637  Visit the SGML class files for specific examples.
15638 \end_layout
15639
15640 \end_inset
15641
15642
15643 \end_layout
15644
15645 \begin_deeper
15646 \begin_layout Description
15647 \begin_inset Flex Code
15648 status collapsed
15649
15650 \begin_layout Plain Layout
15651 Paragraph
15652 \end_layout
15653
15654 \end_inset
15655
15656  means nothing special.
15657 \end_layout
15658
15659 \begin_layout Description
15660 \begin_inset Flex Code
15661 status collapsed
15662
15663 \begin_layout Plain Layout
15664 Command
15665 \end_layout
15666
15667 \end_inset
15668
15669  means 
15670 \begin_inset Flex Code
15671 status collapsed
15672
15673 \begin_layout Plain Layout
15674
15675 \backslash
15676
15677 \emph on
15678 LatexName
15679 \emph default
15680 {\SpecialChar ldots
15681 }
15682 \end_layout
15683
15684 \end_inset
15685
15686 .
15687 \end_layout
15688
15689 \begin_layout Description
15690 \begin_inset Flex Code
15691 status collapsed
15692
15693 \begin_layout Plain Layout
15694 Environment
15695 \end_layout
15696
15697 \end_inset
15698
15699  means 
15700 \begin_inset Flex Code
15701 status collapsed
15702
15703 \begin_layout Plain Layout
15704
15705 \backslash
15706 begin{
15707 \emph on
15708 LatexName
15709 \emph default
15710 }\SpecialChar ldots
15711
15712 \backslash
15713 end{
15714 \emph on
15715 LatexName
15716 \emph default
15717 }
15718 \end_layout
15719
15720 \end_inset
15721
15722 .
15723  
15724 \end_layout
15725
15726 \begin_layout Description
15727 \begin_inset Flex Code
15728 status collapsed
15729
15730 \begin_layout Plain Layout
15731 Item_Environment
15732 \end_layout
15733
15734 \end_inset
15735
15736  is the same as 
15737 \begin_inset Flex Code
15738 status collapsed
15739
15740 \begin_layout Plain Layout
15741 Environment
15742 \end_layout
15743
15744 \end_inset
15745
15746 , except that an 
15747 \begin_inset Flex Code
15748 status collapsed
15749
15750 \begin_layout Plain Layout
15751
15752 \backslash
15753 item
15754 \end_layout
15755
15756 \end_inset
15757
15758  is generated for each paragraph of this environment.
15759  
15760 \end_layout
15761
15762 \begin_layout Description
15763 \begin_inset Flex Code
15764 status collapsed
15765
15766 \begin_layout Plain Layout
15767 List_Environment
15768 \end_layout
15769
15770 \end_inset
15771
15772  is the same as 
15773 \begin_inset Flex Code
15774 status collapsed
15775
15776 \begin_layout Plain Layout
15777 Item_Environment
15778 \end_layout
15779
15780 \end_inset
15781
15782 , except that
15783 \begin_inset Newline newline
15784 \end_inset
15785
15786
15787 \begin_inset Flex Code
15788 status collapsed
15789
15790 \begin_layout Plain Layout
15791 LabelWidthString
15792 \end_layout
15793
15794 \end_inset
15795
15796  is passed as an argument to the environment.
15797 \begin_inset Newline newline
15798 \end_inset
15799
15800
15801 \begin_inset Flex Code
15802 status collapsed
15803
15804 \begin_layout Plain Layout
15805 LabelWidthString
15806 \end_layout
15807
15808 \end_inset
15809
15810  can be defined in the 
15811 \begin_inset Flex Noun
15812 status collapsed
15813
15814 \begin_layout Plain Layout
15815 Edit\SpecialChar menuseparator
15816 Paragraph
15817 \begin_inset space ~
15818 \end_inset
15819
15820 settings
15821 \end_layout
15822
15823 \end_inset
15824
15825  dialog.
15826 \end_layout
15827
15828 \begin_layout Description
15829 \begin_inset Flex Code
15830 status collapsed
15831
15832 \begin_layout Plain Layout
15833 Bib_Environment
15834 \end_layout
15835
15836 \end_inset
15837
15838  is like 
15839 \begin_inset Flex Code
15840 status collapsed
15841
15842 \begin_layout Plain Layout
15843 Environment
15844 \end_layout
15845
15846 \end_inset
15847
15848  but adds the necessary mandatory argument (the longest label) to the begin
15849  statement of the bibliography environment:
15850 \begin_inset Newline newline
15851 \end_inset
15852
15853
15854 \begin_inset Flex Code
15855 status collapsed
15856
15857 \begin_layout Plain Layout
15858
15859 \backslash
15860 begin{thebibliography}{99}
15861 \end_layout
15862
15863 \end_inset
15864
15865 .
15866  It is therefore only useful for bibliography environments.
15867  The default longest label 
15868 \begin_inset Quotes eld
15869 \end_inset
15870
15871 99
15872 \begin_inset Quotes erd
15873 \end_inset
15874
15875  can be changed by the user in the paragraph settings of a bibliography
15876  item.
15877 \end_layout
15878
15879 \begin_layout Standard
15880 Putting the last few things together, the \SpecialChar LaTeX
15881  output will be either: 
15882 \end_layout
15883
15884 \begin_layout LyX-Code
15885
15886 \backslash
15887 LatexName[LatexParam]{\SpecialChar ldots
15888 }
15889 \end_layout
15890
15891 \begin_layout Standard
15892 or: 
15893 \end_layout
15894
15895 \begin_layout LyX-Code
15896
15897 \backslash
15898 begin{LatexName}[LatexParam] \SpecialChar ldots
15899  
15900 \backslash
15901 end{LatexName}.
15902 \end_layout
15903
15904 \begin_layout Standard
15905 depending upon the \SpecialChar LaTeX
15906  type.
15907 \end_layout
15908
15909 \end_deeper
15910 \begin_layout Description
15911 \begin_inset Flex Code
15912 status collapsed
15913
15914 \begin_layout Plain Layout
15915 LeftDelim
15916 \end_layout
15917
15918 \end_inset
15919
15920  [
15921 \begin_inset Flex Code
15922 status collapsed
15923
15924 \begin_layout Plain Layout
15925 string
15926 \end_layout
15927
15928 \end_inset
15929
15930 ] A string that is put at the beginning of the style content.
15931  A line break in the output can be indicated by 
15932 \begin_inset Flex Code
15933 status collapsed
15934
15935 \begin_layout Plain Layout
15936 <br/>
15937 \end_layout
15938
15939 \end_inset
15940
15941 .
15942 \end_layout
15943
15944 \begin_layout Description
15945 \begin_inset Flex Code
15946 status collapsed
15947
15948 \begin_layout Plain Layout
15949 LeftMargin
15950 \end_layout
15951
15952 \end_inset
15953
15954  [
15955 \begin_inset Flex Code
15956 status collapsed
15957
15958 \begin_layout Plain Layout
15959 string=""
15960 \end_layout
15961
15962 \end_inset
15963
15964 ] If you put styles into environments, the different 
15965 \begin_inset Flex Code
15966 status collapsed
15967
15968 \begin_layout Plain Layout
15969 LeftMargin
15970 \end_layout
15971
15972 \end_inset
15973
15974  are not simply added, but added with a factor 
15975 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15976 \end_inset
15977
15978 .
15979  Note that this parameter is also used when 
15980 \begin_inset Flex Code
15981 status collapsed
15982
15983 \begin_layout Plain Layout
15984 Margin
15985 \end_layout
15986
15987 \end_inset
15988
15989  is defined as 
15990 \begin_inset Flex Code
15991 status collapsed
15992
15993 \begin_layout Plain Layout
15994 Manual
15995 \end_layout
15996
15997 \end_inset
15998
15999  or 
16000 \begin_inset Flex Code
16001 status collapsed
16002
16003 \begin_layout Plain Layout
16004 Dynamic
16005 \end_layout
16006
16007 \end_inset
16008
16009 .
16010  Then it is added to the manual or dynamic margin.
16011 \begin_inset Newline newline
16012 \end_inset
16013
16014 For example 
16015 \begin_inset Quotes eld
16016 \end_inset
16017
16018
16019 \begin_inset Flex Code
16020 status collapsed
16021
16022 \begin_layout Plain Layout
16023 MM
16024 \end_layout
16025
16026 \end_inset
16027
16028
16029 \begin_inset Quotes erd
16030 \end_inset
16031
16032  means that the paragraph is indented with the width of 
16033 \begin_inset Quotes eld
16034 \end_inset
16035
16036
16037 \begin_inset Flex Code
16038 status collapsed
16039
16040 \begin_layout Plain Layout
16041 MM
16042 \end_layout
16043
16044 \end_inset
16045
16046
16047 \begin_inset Quotes erd
16048 \end_inset
16049
16050  in the normal font.
16051  You can get a negative width by prefixing the string with 
16052 \begin_inset Quotes eld
16053 \end_inset
16054
16055
16056 \begin_inset Flex Code
16057 status collapsed
16058
16059 \begin_layout Plain Layout
16060 -
16061 \end_layout
16062
16063 \end_inset
16064
16065
16066 \begin_inset Quotes erd
16067 \end_inset
16068
16069 .
16070  This way was chosen so that the look is the same with each used screen
16071  font.
16072 \end_layout
16073
16074 \begin_layout Description
16075 \begin_inset Flex Code
16076 status collapsed
16077
16078 \begin_layout Plain Layout
16079 Margin
16080 \end_layout
16081
16082 \end_inset
16083
16084  [
16085 \begin_inset Flex Code
16086 status collapsed
16087
16088 \begin_layout Plain Layout
16089
16090 \emph on
16091 Static
16092 \emph default
16093 , Manual, Dynamic, First_Dynamic, Right_Address_Box
16094 \end_layout
16095
16096 \end_inset
16097
16098
16099 \begin_inset Newline newline
16100 \end_inset
16101
16102 The kind of margin that the style has on the left side.
16103 \end_layout
16104
16105 \begin_deeper
16106 \begin_layout Description
16107 \begin_inset Flex Code
16108 status collapsed
16109
16110 \begin_layout Plain Layout
16111 Static
16112 \end_layout
16113
16114 \end_inset
16115
16116  just means a fixed margin.
16117 \end_layout
16118
16119 \begin_layout Description
16120 \begin_inset Flex Code
16121 status collapsed
16122
16123 \begin_layout Plain Layout
16124 Manual
16125 \end_layout
16126
16127 \end_inset
16128
16129  means that the left margin depends on the string entered in the 
16130 \begin_inset Flex Noun
16131 status collapsed
16132
16133 \begin_layout Plain Layout
16134 Edit\SpecialChar menuseparator
16135 Paragraph
16136 \begin_inset space ~
16137 \end_inset
16138
16139 Settings
16140 \end_layout
16141
16142 \end_inset
16143
16144  dialog.
16145  This is used to typeset nice lists without tabulators.
16146 \end_layout
16147
16148 \begin_layout Description
16149 \begin_inset Flex Code
16150 status collapsed
16151
16152 \begin_layout Plain Layout
16153 Dynamic
16154 \end_layout
16155
16156 \end_inset
16157
16158  means that the margin depends on the size of the label.
16159  This is used for automatic enumerated headlines.
16160  It is obvious that the headline 
16161 \begin_inset Quotes eld
16162 \end_inset
16163
16164 5.4.3.2.1 Very long headline
16165 \begin_inset Quotes erd
16166 \end_inset
16167
16168  must have a wider left margin (as wide as 
16169 \begin_inset Quotes eld
16170 \end_inset
16171
16172 5.4.3.2.1
16173 \begin_inset Quotes erd
16174 \end_inset
16175
16176  plus the space) than 
16177 \begin_inset Quotes eld
16178 \end_inset
16179
16180 3.2 Very long headline
16181 \begin_inset Quotes erd
16182 \end_inset
16183
16184 , even if standard 
16185 \begin_inset Quotes eld
16186 \end_inset
16187
16188 word processors
16189 \begin_inset Quotes erd
16190 \end_inset
16191
16192  are not able to do this.
16193 \end_layout
16194
16195 \begin_layout Description
16196 \begin_inset Flex Code
16197 status collapsed
16198
16199 \begin_layout Plain Layout
16200 First_Dynamic
16201 \end_layout
16202
16203 \end_inset
16204
16205  is similar, but only the very first row of the paragraph is dynamic, while
16206  the others are static; this is used, for example, for descriptions.
16207 \end_layout
16208
16209 \begin_layout Description
16210 \begin_inset Flex Code
16211 status collapsed
16212
16213 \begin_layout Plain Layout
16214 Right_Address_Box
16215 \end_layout
16216
16217 \end_inset
16218
16219  means the margin is chosen in a way that the longest row of this paragraph
16220  fits to the right margin.
16221  This is used to typeset an address on the right edge of the page.
16222 \end_layout
16223
16224 \end_deeper
16225 \begin_layout Description
16226 \begin_inset Flex Code
16227 status collapsed
16228
16229 \begin_layout Plain Layout
16230 NeedProtect
16231 \end_layout
16232
16233 \end_inset
16234
16235  [
16236 \begin_inset Flex Code
16237 status collapsed
16238
16239 \begin_layout Plain Layout
16240
16241 \emph on
16242 0
16243 \end_layout
16244
16245 \end_inset
16246
16247 ,
16248 \begin_inset space \thinspace{}
16249 \end_inset
16250
16251
16252 \begin_inset Flex Code
16253 status collapsed
16254
16255 \begin_layout Plain Layout
16256 1
16257 \end_layout
16258
16259 \end_inset
16260
16261 ] Whether fragile commands in this style should be 
16262 \begin_inset Flex Code
16263 status collapsed
16264
16265 \begin_layout Plain Layout
16266
16267 \backslash
16268 protect
16269 \end_layout
16270
16271 \end_inset
16272
16273 'ed.
16274  (Note: This is 
16275 \emph on
16276 not
16277 \emph default
16278  whether this command should itself be protected.)
16279 \change_inserted -712698321 1523696949
16280
16281 \end_layout
16282
16283 \begin_layout Description
16284
16285 \change_inserted -712698321 1552395557
16286 \begin_inset Flex Code
16287 status collapsed
16288
16289 \begin_layout Plain Layout
16290
16291 \change_inserted -712698321 1523696950
16292 NeedCProtect
16293 \change_unchanged
16294
16295 \end_layout
16296
16297 \end_inset
16298
16299  [
16300 \begin_inset Flex Code
16301 status collapsed
16302
16303 \begin_layout Plain Layout
16304
16305 \change_inserted -712698321 1523696950
16306
16307 \emph on
16308 0
16309 \change_unchanged
16310
16311 \end_layout
16312
16313 \end_inset
16314
16315 ,
16316 \begin_inset space \thinspace{}
16317 \end_inset
16318
16319
16320 \begin_inset Flex Code
16321 status collapsed
16322
16323 \begin_layout Plain Layout
16324
16325 \change_inserted -712698321 1523696950
16326 1
16327 \change_unchanged
16328
16329 \end_layout
16330
16331 \end_inset
16332
16333 ] This causes macros that contain this layout to be protected with 
16334 \begin_inset Flex Code
16335 status collapsed
16336
16337 \begin_layout Plain Layout
16338
16339 \change_inserted -712698321 1523696950
16340
16341 \backslash
16342 cprotect
16343 \change_unchanged
16344
16345 \end_layout
16346
16347 \end_inset
16348
16349  (cf.
16350  package 
16351 \family sans
16352 cprotect
16353 \family default
16354 ) if necessary and thus allows (some) verbatim stuff in macros.
16355 \end_layout
16356
16357 \begin_layout Description
16358
16359 \change_inserted -712698321 1552395844
16360 \begin_inset Flex Code
16361 status collapsed
16362
16363 \begin_layout Plain Layout
16364
16365 \change_inserted -712698321 1552395561
16366 NeedMBoxProtect
16367 \change_unchanged
16368
16369 \end_layout
16370
16371 \end_inset
16372
16373  [
16374 \begin_inset Flex Code
16375 status collapsed
16376
16377 \begin_layout Plain Layout
16378
16379 \change_inserted -712698321 1552395557
16380
16381 \emph on
16382 0
16383 \change_unchanged
16384
16385 \end_layout
16386
16387 \end_inset
16388
16389 ,
16390 \begin_inset space \thinspace{}
16391 \end_inset
16392
16393
16394 \begin_inset Flex Code
16395 status collapsed
16396
16397 \begin_layout Plain Layout
16398
16399 \change_inserted -712698321 1552395557
16400 1
16401 \change_unchanged
16402
16403 \end_layout
16404
16405 \end_inset
16406
16407 ] Whether specific commands in this style (such as 
16408 \begin_inset Flex Code
16409 status collapsed
16410
16411 \begin_layout Plain Layout
16412
16413 \change_inserted -712698321 1552395655
16414
16415 \backslash
16416 cite
16417 \change_unchanged
16418
16419 \end_layout
16420
16421 \end_inset
16422
16423  and 
16424 \begin_inset Flex Code
16425 status collapsed
16426
16427 \begin_layout Plain Layout
16428
16429 \change_inserted -712698321 1552395661
16430
16431 \backslash
16432 ref
16433 \change_unchanged
16434
16435 \end_layout
16436
16437 \end_inset
16438
16439 ) should be protected in an 
16440 \begin_inset Flex Code
16441 status collapsed
16442
16443 \begin_layout Plain Layout
16444
16445 \change_inserted -712698321 1552395631
16446
16447 \backslash
16448 mbox
16449 \change_unchanged
16450
16451 \end_layout
16452
16453 \end_inset
16454
16455 .
16456  This is particularly needed for styles that draw on 
16457 \family sans
16458 ulem
16459 \family default
16460  or 
16461 \family sans
16462 soul
16463 \family default
16464  commands which parse their content in complex ways.
16465 \change_unchanged
16466
16467 \end_layout
16468
16469 \begin_layout Description
16470 \begin_inset Flex Code
16471 status collapsed
16472
16473 \begin_layout Plain Layout
16474 Newline
16475 \end_layout
16476
16477 \end_inset
16478
16479  [
16480 \begin_inset Flex Code
16481 status collapsed
16482
16483 \begin_layout Plain Layout
16484 0
16485 \end_layout
16486
16487 \end_inset
16488
16489 ,
16490 \begin_inset space \thinspace{}
16491 \end_inset
16492
16493
16494 \begin_inset Flex Code
16495 status collapsed
16496
16497 \begin_layout Plain Layout
16498
16499 \emph on
16500 1
16501 \end_layout
16502
16503 \end_inset
16504
16505 ] Whether newlines are translated into \SpecialChar LaTeX
16506  newlines (
16507 \begin_inset Flex Code
16508 status collapsed
16509
16510 \begin_layout Plain Layout
16511
16512 \backslash
16513
16514 \backslash
16515
16516 \end_layout
16517
16518 \end_inset
16519
16520 ) or not.
16521  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16522  editing
16523  inside \SpecialChar LyX
16524 .
16525 \end_layout
16526
16527 \begin_layout Description
16528 \begin_inset Flex Code
16529 status collapsed
16530
16531 \begin_layout Plain Layout
16532 NextNoIndent
16533 \end_layout
16534
16535 \end_inset
16536
16537  [
16538 \begin_inset Flex Code
16539 status collapsed
16540
16541 \begin_layout Plain Layout
16542
16543 \emph on
16544 0
16545 \end_layout
16546
16547 \end_inset
16548
16549 ,
16550 \begin_inset space \thinspace{}
16551 \end_inset
16552
16553
16554 \begin_inset Flex Code
16555 status collapsed
16556
16557 \begin_layout Plain Layout
16558 1
16559 \end_layout
16560
16561 \end_inset
16562
16563 ] If set to true, and if 
16564 \begin_inset Flex Code
16565 status collapsed
16566
16567 \begin_layout Plain Layout
16568 DefaultStyle
16569 \end_layout
16570
16571 \end_inset
16572
16573  (usually 
16574 \begin_inset Flex Code
16575 status collapsed
16576
16577 \begin_layout Plain Layout
16578 Standard
16579 \end_layout
16580
16581 \end_inset
16582
16583 ) paragraphs are being indented, then the indentation of such a paragraph
16584  following one of this type will be suppressed.
16585  (So this will not affect the display of non-default paragraphs.)
16586 \end_layout
16587
16588 \begin_layout Description
16589 \begin_inset Flex Code
16590 status collapsed
16591
16592 \begin_layout Plain Layout
16593 ObsoletedBy
16594 \end_layout
16595
16596 \end_inset
16597
16598  [
16599 \begin_inset Flex Code
16600 status collapsed
16601
16602 \begin_layout Plain Layout
16603 <name>
16604 \end_layout
16605
16606 \end_inset
16607
16608 ] Name of a style that has replaced this style.
16609  This is used to rename a style, while keeping backward compatibility.
16610 \end_layout
16611
16612 \begin_layout Description
16613 \begin_inset Flex Code
16614 status collapsed
16615
16616 \begin_layout Plain Layout
16617 ParagraphGroup
16618 \end_layout
16619
16620 \end_inset
16621
16622  [
16623 \begin_inset Flex Code
16624 status collapsed
16625
16626 \begin_layout Plain Layout
16627 0
16628 \end_layout
16629
16630 \end_inset
16631
16632 ,
16633 \begin_inset space \thinspace{}
16634 \end_inset
16635
16636
16637 \begin_inset Flex Code
16638 status collapsed
16639
16640 \begin_layout Plain Layout
16641 1
16642 \end_layout
16643
16644 \end_inset
16645
16646 ] Determines whether consecutive paragraphs of the same type are treated
16647  as belonging together.
16648  This has the effect that the 
16649 \begin_inset Flex Code
16650 status collapsed
16651
16652 \begin_layout Plain Layout
16653 GuiLabel
16654 \end_layout
16655
16656 \end_inset
16657
16658  is only printed once before such a group.
16659  By default, this is true for 
16660 \begin_inset Flex Code
16661 status collapsed
16662
16663 \begin_layout Plain Layout
16664 LaTeXType
16665 \end_layout
16666
16667 \end_inset
16668
16669  
16670 \begin_inset Flex Code
16671 status collapsed
16672
16673 \begin_layout Plain Layout
16674 Environment
16675 \end_layout
16676
16677 \end_inset
16678
16679  and 
16680 \begin_inset Flex Code
16681 status collapsed
16682
16683 \begin_layout Plain Layout
16684 Bib_Environment
16685 \end_layout
16686
16687 \end_inset
16688
16689  and false for all other types.
16690 \end_layout
16691
16692 \begin_layout Description
16693 \begin_inset Flex Code
16694 status collapsed
16695
16696 \begin_layout Plain Layout
16697 ParbreakIsNewline
16698 \end_layout
16699
16700 \end_inset
16701
16702  [
16703 \begin_inset Flex Code
16704 status collapsed
16705
16706 \begin_layout Plain Layout
16707
16708 \emph on
16709 0
16710 \end_layout
16711
16712 \end_inset
16713
16714 ,
16715 \begin_inset space \thinspace{}
16716 \end_inset
16717
16718
16719 \begin_inset Flex Code
16720 status collapsed
16721
16722 \begin_layout Plain Layout
16723 1
16724 \end_layout
16725
16726 \end_inset
16727
16728 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16729  output,
16730  but only by a line break; together with 
16731 \begin_inset Flex Code
16732 status collapsed
16733
16734 \begin_layout Plain Layout
16735 PassThru 1
16736 \end_layout
16737
16738 \end_inset
16739
16740 , this allows to emulate a plain text editor (like the ERT inset).
16741 \end_layout
16742
16743 \begin_layout Description
16744 \begin_inset Flex Code
16745 status collapsed
16746
16747 \begin_layout Plain Layout
16748 ParIndent
16749 \end_layout
16750
16751 \end_inset
16752
16753  [
16754 \begin_inset Flex Code
16755 status collapsed
16756
16757 \begin_layout Plain Layout
16758 string=""
16759 \end_layout
16760
16761 \end_inset
16762
16763 ] The indent of the very first line of a paragraph.
16764  The
16765 \begin_inset Newline newline
16766 \end_inset
16767
16768
16769 \begin_inset Flex Code
16770 status collapsed
16771
16772 \begin_layout Plain Layout
16773 Parindent
16774 \end_layout
16775
16776 \end_inset
16777
16778  will be fixed for a certain style.
16779  The exception is the default style, since the indentation for these paragraphs
16780  can be prohibited with 
16781 \begin_inset Flex Code
16782 status collapsed
16783
16784 \begin_layout Plain Layout
16785 NextNoIndent
16786 \end_layout
16787
16788 \end_inset
16789
16790 .
16791  Also, 
16792 \begin_inset Flex Code
16793 status collapsed
16794
16795 \begin_layout Plain Layout
16796 Standard
16797 \end_layout
16798
16799 \end_inset
16800
16801  style paragraphs inside environments use the 
16802 \begin_inset Flex Code
16803 status collapsed
16804
16805 \begin_layout Plain Layout
16806 Parindent
16807 \end_layout
16808
16809 \end_inset
16810
16811  of the environment, not their native one.
16812  For example, 
16813 \begin_inset Flex Code
16814 status collapsed
16815
16816 \begin_layout Plain Layout
16817 Standard
16818 \end_layout
16819
16820 \end_inset
16821
16822  paragraphs inside an enumeration are not indented.
16823 \end_layout
16824
16825 \begin_layout Description
16826 \begin_inset Flex Code
16827 status collapsed
16828
16829 \begin_layout Plain Layout
16830 ParSep
16831 \end_layout
16832
16833 \end_inset
16834
16835  [
16836 \begin_inset Flex Code
16837 status collapsed
16838
16839 \begin_layout Plain Layout
16840 float=0
16841 \end_layout
16842
16843 \end_inset
16844
16845 ] The vertical space between two paragraphs of this style.
16846 \end_layout
16847
16848 \begin_layout Description
16849 \begin_inset Flex Code
16850 status collapsed
16851
16852 \begin_layout Plain Layout
16853 Parskip
16854 \end_layout
16855
16856 \end_inset
16857
16858  [
16859 \begin_inset Flex Code
16860 status collapsed
16861
16862 \begin_layout Plain Layout
16863 float=0
16864 \end_layout
16865
16866 \end_inset
16867
16868 ] \SpecialChar LyX
16869  allows the user to choose either 
16870 \begin_inset Quotes eld
16871 \end_inset
16872
16873 indent
16874 \begin_inset Quotes erd
16875 \end_inset
16876
16877  or 
16878 \begin_inset Quotes eld
16879 \end_inset
16880
16881 skip
16882 \begin_inset Quotes erd
16883 \end_inset
16884
16885  to separate paragraphs.
16886  When 
16887 \begin_inset Quotes eld
16888 \end_inset
16889
16890 indent
16891 \begin_inset Quotes erd
16892 \end_inset
16893
16894  is chosen, 
16895 \begin_inset Flex Code
16896 status collapsed
16897
16898 \begin_layout Plain Layout
16899 Parskip
16900 \end_layout
16901
16902 \end_inset
16903
16904  is ignored.
16905  When 
16906 \begin_inset Quotes eld
16907 \end_inset
16908
16909 skip
16910 \begin_inset Quotes erd
16911 \end_inset
16912
16913  is chosen, 
16914 \begin_inset Flex Code
16915 status collapsed
16916
16917 \begin_layout Plain Layout
16918 ParIndent
16919 \end_layout
16920
16921 \end_inset
16922
16923  is ignored and all paragraphs are separated by the 
16924 \begin_inset Flex Code
16925 status collapsed
16926
16927 \begin_layout Plain Layout
16928 Parskip
16929 \end_layout
16930
16931 \end_inset
16932
16933  argument.
16934  The vertical space is calculated with 
16935 \begin_inset Flex Code
16936 status collapsed
16937
16938 \begin_layout Plain Layout
16939 Parskip
16940 \begin_inset space ~
16941 \end_inset
16942
16943 * DefaultHeight
16944 \end_layout
16945
16946 \end_inset
16947
16948  where 
16949 \begin_inset Flex Code
16950 status collapsed
16951
16952 \begin_layout Plain Layout
16953 DefaultHeight
16954 \end_layout
16955
16956 \end_inset
16957
16958  is the height of a row with the normal font.
16959  This way, the look stays the same with different screen fonts.
16960 \end_layout
16961
16962 \begin_layout Description
16963 \begin_inset Flex Code
16964 status collapsed
16965
16966 \begin_layout Plain Layout
16967 PassThru
16968 \end_layout
16969
16970 \end_inset
16971
16972  [
16973 \begin_inset Flex Code
16974 status collapsed
16975
16976 \begin_layout Plain Layout
16977
16978 \emph on
16979 0
16980 \end_layout
16981
16982 \end_inset
16983
16984 ,
16985 \begin_inset space \thinspace{}
16986 \end_inset
16987
16988
16989 \begin_inset Flex Code
16990 status collapsed
16991
16992 \begin_layout Plain Layout
16993 1
16994 \end_layout
16995
16996 \end_inset
16997
16998 ] Whether the contents of this paragraph should be output in raw form, meaning
16999  without special translations that \SpecialChar LaTeX
17000  would require.
17001 \end_layout
17002
17003 \begin_layout Description
17004 \begin_inset Flex Code
17005 status collapsed
17006
17007 \begin_layout Plain Layout
17008 PassThruChars
17009 \end_layout
17010
17011 \end_inset
17012
17013  [
17014 \begin_inset Flex Code
17015 status collapsed
17016
17017 \begin_layout Plain Layout
17018 string
17019 \end_layout
17020
17021 \end_inset
17022
17023 ]
17024 \family typewriter
17025  
17026 \family default
17027 Defines individual characters that should be output in raw form, meaning
17028  without special translations that \SpecialChar LaTeX
17029  would require.
17030 \end_layout
17031
17032 \begin_layout Description
17033 \begin_inset Flex Code
17034 status collapsed
17035
17036 \begin_layout Plain Layout
17037 Preamble
17038 \end_layout
17039
17040 \end_inset
17041
17042  Information to be included in the \SpecialChar LaTeX
17043  preamble when this style is used.
17044  Used to define macros, load packages, etc., required by this particular
17045  style.
17046  Must end with 
17047 \begin_inset Quotes eld
17048 \end_inset
17049
17050
17051 \begin_inset Flex Code
17052 status collapsed
17053
17054 \begin_layout Plain Layout
17055 EndPreamble
17056 \end_layout
17057
17058 \end_inset
17059
17060
17061 \begin_inset Quotes erd
17062 \end_inset
17063
17064 .
17065 \end_layout
17066
17067 \begin_layout Description
17068 \begin_inset Flex Code
17069 status collapsed
17070
17071 \begin_layout Plain Layout
17072 RefPrefix
17073 \end_layout
17074
17075 \end_inset
17076
17077  [
17078 \begin_inset Flex Code
17079 status collapsed
17080
17081 \begin_layout Plain Layout
17082 string
17083 \end_layout
17084
17085 \end_inset
17086
17087 ] The prefix to use when creating labels referring to paragraphs of this
17088  type.
17089  This allows the use of formatted references.
17090 \end_layout
17091
17092 \begin_layout Description
17093 \begin_inset Flex Code
17094 status collapsed
17095
17096 \begin_layout Plain Layout
17097 Requires 
17098 \end_layout
17099
17100 \end_inset
17101
17102  [
17103 \begin_inset Flex Code
17104 status collapsed
17105
17106 \begin_layout Plain Layout
17107 string
17108 \end_layout
17109
17110 \end_inset
17111
17112 ] Whether the style requires the feature 
17113 \begin_inset Flex Code
17114 status collapsed
17115
17116 \begin_layout Plain Layout
17117 string
17118 \end_layout
17119
17120 \end_inset
17121
17122  (see 
17123 \begin_inset CommandInset ref
17124 LatexCommand ref
17125 reference "chap:List-of-functions"
17126
17127 \end_inset
17128
17129  for the list of features).
17130  If you require a package with specific options, you can additionally use
17131  
17132 \begin_inset Flex Code
17133 status collapsed
17134
17135 \begin_layout Plain Layout
17136 PackageOptions
17137 \end_layout
17138
17139 \end_inset
17140
17141  as a general text class parameter (see 
17142 \begin_inset CommandInset ref
17143 LatexCommand ref
17144 reference "subsec:General-text-class"
17145
17146 \end_inset
17147
17148 ).
17149 \end_layout
17150
17151 \begin_layout Description
17152 \begin_inset Flex Code
17153 status collapsed
17154
17155 \begin_layout Plain Layout
17156 ResetArgs
17157 \end_layout
17158
17159 \end_inset
17160
17161  [
17162 \begin_inset Flex Code
17163 status collapsed
17164
17165 \begin_layout Plain Layout
17166
17167 \emph on
17168 0
17169 \end_layout
17170
17171 \end_inset
17172
17173 ,
17174 \begin_inset Flex Code
17175 status collapsed
17176
17177 \begin_layout Plain Layout
17178 1
17179 \end_layout
17180
17181 \end_inset
17182
17183 ] Resets the \SpecialChar LaTeX
17184  arguments of this style (as defined via the 
17185 \begin_inset Flex Code
17186 status collapsed
17187
17188 \begin_layout Plain Layout
17189 Argument
17190 \end_layout
17191
17192 \end_inset
17193
17194  tag).
17195  This is useful if you have copied a style via 
17196 \begin_inset Flex Code
17197 status collapsed
17198
17199 \begin_layout Plain Layout
17200 CopyStyle
17201 \end_layout
17202
17203 \end_inset
17204
17205 , but you do not want to inherit its (required and optional) arguments.
17206 \end_layout
17207
17208 \begin_layout Description
17209 \begin_inset Flex Code
17210 status collapsed
17211
17212 \begin_layout Plain Layout
17213 ResumeCounter
17214 \end_layout
17215
17216 \end_inset
17217
17218  [
17219 \begin_inset Flex Code
17220 status collapsed
17221
17222 \begin_layout Plain Layout
17223
17224 \emph on
17225 0
17226 \end_layout
17227
17228 \end_inset
17229
17230 ,
17231 \begin_inset Flex Code
17232 status collapsed
17233
17234 \begin_layout Plain Layout
17235 1
17236 \end_layout
17237
17238 \end_inset
17239
17240 ] Resumes a counter that is usually reset at each new sequence of layouts.
17241  This is currently only useful when 
17242 \begin_inset Flex Code
17243 status collapsed
17244
17245 \begin_layout Plain Layout
17246 LabelType
17247 \end_layout
17248
17249 \end_inset
17250
17251  is 
17252 \begin_inset Flex Code
17253 status collapsed
17254
17255 \begin_layout Plain Layout
17256 Enumerate
17257 \end_layout
17258
17259 \end_inset
17260
17261 .
17262 \end_layout
17263
17264 \begin_layout Description
17265 \begin_inset Flex Code
17266 status collapsed
17267
17268 \begin_layout Plain Layout
17269 RightDelim
17270 \end_layout
17271
17272 \end_inset
17273
17274  [
17275 \begin_inset Flex Code
17276 status collapsed
17277
17278 \begin_layout Plain Layout
17279 string
17280 \end_layout
17281
17282 \end_inset
17283
17284 ] A string that is put at the end of the layout content.
17285  A line break in the output can be indicated by 
17286 \begin_inset Flex Code
17287 status collapsed
17288
17289 \begin_layout Plain Layout
17290 <br/>
17291 \end_layout
17292
17293 \end_inset
17294
17295 .
17296 \end_layout
17297
17298 \begin_layout Description
17299 \begin_inset Flex Code
17300 status collapsed
17301
17302 \begin_layout Plain Layout
17303 RightMargin
17304 \end_layout
17305
17306 \end_inset
17307
17308  [
17309 \begin_inset Flex Code
17310 status collapsed
17311
17312 \begin_layout Plain Layout
17313 string=""
17314 \end_layout
17315
17316 \end_inset
17317
17318 ] Similar to 
17319 \begin_inset Flex Code
17320 status collapsed
17321
17322 \begin_layout Plain Layout
17323 LeftMargin
17324 \end_layout
17325
17326 \end_inset
17327
17328 .
17329 \end_layout
17330
17331 \begin_layout Description
17332 \begin_inset Flex Code
17333 status collapsed
17334
17335 \begin_layout Plain Layout
17336 Spacing
17337 \end_layout
17338
17339 \end_inset
17340
17341  [
17342 \begin_inset Flex Code
17343 status collapsed
17344
17345 \begin_layout Plain Layout
17346
17347 \emph on
17348 single
17349 \end_layout
17350
17351 \end_inset
17352
17353
17354 \begin_inset Flex Code
17355 status collapsed
17356
17357 \begin_layout Plain Layout
17358 onehalf
17359 \end_layout
17360
17361 \end_inset
17362
17363
17364 \begin_inset Flex Code
17365 status collapsed
17366
17367 \begin_layout Plain Layout
17368 double
17369 \end_layout
17370
17371 \end_inset
17372
17373
17374 \begin_inset Flex Code
17375 status collapsed
17376
17377 \begin_layout Plain Layout
17378 other
17379 \begin_inset space ~
17380 \end_inset
17381
17382 <value>
17383 \end_layout
17384
17385 \end_inset
17386
17387 ] This defines what the default spacing should be in the style.
17388  The arguments 
17389 \begin_inset Flex Code
17390 status collapsed
17391
17392 \begin_layout Plain Layout
17393 single
17394 \end_layout
17395
17396 \end_inset
17397
17398
17399 \begin_inset Flex Code
17400 status collapsed
17401
17402 \begin_layout Plain Layout
17403 onehalf
17404 \end_layout
17405
17406 \end_inset
17407
17408  and 
17409 \begin_inset Flex Code
17410 status collapsed
17411
17412 \begin_layout Plain Layout
17413 double
17414 \end_layout
17415
17416 \end_inset
17417
17418  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17419  If you specify the argument 
17420 \begin_inset Flex Code
17421 status collapsed
17422
17423 \begin_layout Plain Layout
17424 other
17425 \end_layout
17426
17427 \end_inset
17428
17429 , then you must also provide a value argument which will be the actual multiplie
17430 r value.
17431  Note that, contrary to other parameters, 
17432 \begin_inset Flex Code
17433 status collapsed
17434
17435 \begin_layout Plain Layout
17436 Spacing
17437 \end_layout
17438
17439 \end_inset
17440
17441  implies the generation of specific \SpecialChar LaTeX
17442  code, using the \SpecialChar LaTeX
17443  package 
17444 \family roman
17445
17446 \begin_inset Flex Code
17447 status collapsed
17448
17449 \begin_layout Plain Layout
17450 setspace
17451 \end_layout
17452
17453 \end_inset
17454
17455 .
17456 \end_layout
17457
17458 \begin_layout Description
17459 \begin_inset Flex Code
17460 status collapsed
17461
17462 \begin_layout Plain Layout
17463 Spellcheck
17464 \end_layout
17465
17466 \end_inset
17467
17468  [
17469 \begin_inset Flex Code
17470 status collapsed
17471
17472 \begin_layout Plain Layout
17473 0
17474 \end_layout
17475
17476 \end_inset
17477
17478 ,
17479 \begin_inset space \thinspace{}
17480 \end_inset
17481
17482
17483 \begin_inset Flex Code
17484 status collapsed
17485
17486 \begin_layout Plain Layout
17487
17488 \emph on
17489 1
17490 \end_layout
17491
17492 \end_inset
17493
17494 ] Allow spell-checking paragraphs of this style.
17495  Default is true.
17496 \end_layout
17497
17498 \begin_layout Description
17499 \begin_inset Flex Code
17500 status collapsed
17501
17502 \begin_layout Plain Layout
17503 Step
17504 \change_deleted 731793113 1604355211
17505 Master
17506 \change_inserted 731793113 1604355212
17507 Parent
17508 \change_unchanged
17509 Counter
17510 \end_layout
17511
17512 \end_inset
17513
17514  [
17515 \begin_inset Flex Code
17516 status collapsed
17517
17518 \begin_layout Plain Layout
17519
17520 \emph on
17521 0
17522 \end_layout
17523
17524 \end_inset
17525
17526 ,
17527 \begin_inset Flex Code
17528 status collapsed
17529
17530 \begin_layout Plain Layout
17531 1
17532 \end_layout
17533
17534 \end_inset
17535
17536 ] Steps the 
17537 \change_deleted 731793113 1604355214
17538 master
17539 \change_inserted 731793113 1604355216
17540 parent
17541 \change_unchanged
17542  counter of a given counter at the beginning of a new sequence of layouts.
17543  This is currently only useful when 
17544 \begin_inset Flex Code
17545 status collapsed
17546
17547 \begin_layout Plain Layout
17548 LabelType
17549 \end_layout
17550
17551 \end_inset
17552
17553  is 
17554 \begin_inset Flex Code
17555 status collapsed
17556
17557 \begin_layout Plain Layout
17558 Enumerate
17559 \end_layout
17560
17561 \end_inset
17562
17563 .
17564 \end_layout
17565
17566 \begin_layout Description
17567 \begin_inset Flex Code
17568 status collapsed
17569
17570 \begin_layout Plain Layout
17571 TextFont
17572 \end_layout
17573
17574 \end_inset
17575
17576  The font used for the text body .
17577  See 
17578 \begin_inset CommandInset ref
17579 LatexCommand ref
17580 reference "subsec:Font-description"
17581
17582 \end_inset
17583
17584 .
17585 \end_layout
17586
17587 \begin_layout Description
17588 \begin_inset Flex Code
17589 status collapsed
17590
17591 \begin_layout Plain Layout
17592 TocLevel
17593 \end_layout
17594
17595 \end_inset
17596
17597
17598 \series medium
17599  [
17600 \begin_inset Flex Code
17601 status collapsed
17602
17603 \begin_layout Plain Layout
17604
17605 \series medium
17606 int=3
17607 \end_layout
17608
17609 \end_inset
17610
17611 ]
17612 \series default
17613  The level of the style in the table of contents.
17614  This is used for automatic numbering of section headings.
17615 \end_layout
17616
17617 \begin_layout Description
17618 \begin_inset Flex Code
17619 status collapsed
17620
17621 \begin_layout Plain Layout
17622 ToggleIndent
17623 \end_layout
17624
17625 \end_inset
17626
17627  [
17628 \emph on
17629
17630 \begin_inset Flex Code
17631 status collapsed
17632
17633 \begin_layout Plain Layout
17634
17635 \emph on
17636 default
17637 \end_layout
17638
17639 \end_inset
17640
17641
17642 \emph default
17643
17644 \begin_inset Flex Code
17645 status collapsed
17646
17647 \begin_layout Plain Layout
17648 always
17649 \end_layout
17650
17651 \end_inset
17652
17653
17654 \begin_inset Flex Code
17655 status collapsed
17656
17657 \begin_layout Plain Layout
17658 never
17659 \end_layout
17660
17661 \end_inset
17662
17663 ] This tag determines whether the first line indentation of this paragraph
17664  can be toggled via the Paragraph settings dialog.
17665  If 
17666 \emph on
17667
17668 \begin_inset Flex Code
17669 status collapsed
17670
17671 \begin_layout Plain Layout
17672
17673 \emph off
17674 default
17675 \end_layout
17676
17677 \end_inset
17678
17679
17680 \emph default
17681  is set, indentation can be toggled if the document settings use 
17682 \begin_inset Quotes eld
17683 \end_inset
17684
17685 indent
17686 \begin_inset Quotes erd
17687 \end_inset
17688
17689  paragraph style, with 
17690 \begin_inset Flex Code
17691 status collapsed
17692
17693 \begin_layout Plain Layout
17694 always
17695 \end_layout
17696
17697 \end_inset
17698
17699 , indentation can always be toggled, notwithstanding the document settings,
17700  with 
17701 \begin_inset Flex Code
17702 status collapsed
17703
17704 \begin_layout Plain Layout
17705 never
17706 \end_layout
17707
17708 \end_inset
17709
17710 , indentation can never be toggled.
17711 \end_layout
17712
17713 \begin_layout Description
17714 \begin_inset Flex Code
17715 status collapsed
17716
17717 \begin_layout Plain Layout
17718 TopSep
17719 \end_layout
17720
17721 \end_inset
17722
17723  [
17724 \begin_inset Flex Code
17725 status collapsed
17726
17727 \begin_layout Plain Layout
17728 float=0
17729 \end_layout
17730
17731 \end_inset
17732
17733 ] The vertical space with which the very first of a chain of paragraphs
17734  with this style is separated from the previous paragraph.
17735  If the previous paragraph has another style, the separations are not simply
17736  added, but the maximum is taken.
17737 \end_layout
17738
17739 \begin_layout Subsection
17740 \begin_inset CommandInset label
17741 LatexCommand label
17742 name "subsec:I18n"
17743
17744 \end_inset
17745
17746 Internationalization of Paragraph Styles
17747 \end_layout
17748
17749 \begin_layout Standard
17750 \SpecialChar LyX
17751  has long supported internationalization of layout information, but, until
17752  version 2.0, this applied only to the user interface and not to, say, PDF
17753  output.
17754  Thus, French authors were forced to resort to ugly hacks if they wanted
17755  `
17756 \lang french
17757 Théorème
17758 \lang english
17759  1' instead of `Theorem 1'.
17760  Thanks to Georg Baum, that is no longer the case.
17761 \end_layout
17762
17763 \begin_layout Standard
17764 If a 
17765 \begin_inset Flex Code
17766 status collapsed
17767
17768 \begin_layout Plain Layout
17769 Style
17770 \end_layout
17771
17772 \end_inset
17773
17774  defines text that is to appear in the typeset document, it may use 
17775 \begin_inset Flex Code
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779 LangPreamble
17780 \end_layout
17781
17782 \end_inset
17783
17784  and 
17785 \begin_inset Flex Code
17786 status collapsed
17787
17788 \begin_layout Plain Layout
17789 BabelPreamble
17790 \end_layout
17791
17792 \end_inset
17793
17794  to support non-English and even multi-language documents correctly.
17795  The following excerpt (from the 
17796 \begin_inset Flex Code
17797 status collapsed
17798
17799 \begin_layout Plain Layout
17800 theorems-ams.inc
17801 \end_layout
17802
17803 \end_inset
17804
17805  file) shows how this works:
17806 \end_layout
17807
17808 \begin_layout LyX-Code
17809 Preamble
17810 \end_layout
17811
17812 \begin_deeper
17813 \begin_layout LyX-Code
17814   
17815 \backslash
17816 theoremstyle{remark}
17817 \end_layout
17818
17819 \begin_layout LyX-Code
17820   
17821 \backslash
17822 newtheorem{claim}[thm]{
17823 \backslash
17824 protect
17825 \backslash
17826 claimname}
17827 \end_layout
17828
17829 \begin_layout LyX-Code
17830 EndPreamble
17831 \end_layout
17832
17833 \begin_layout LyX-Code
17834 LangPreamble
17835 \end_layout
17836
17837 \begin_layout LyX-Code
17838   
17839 \backslash
17840 providecommand{
17841 \backslash
17842 claimname}{_(Claim)}
17843 \end_layout
17844
17845 \begin_layout LyX-Code
17846 EndLangPreamble
17847 \end_layout
17848
17849 \begin_layout LyX-Code
17850 BabelPreamble
17851 \end_layout
17852
17853 \begin_layout LyX-Code
17854     
17855 \backslash
17856 addto
17857 \backslash
17858 captions$$lang{
17859 \backslash
17860 renewcommand{
17861 \backslash
17862 claimname}{_(Claim)}}
17863 \end_layout
17864
17865 \begin_layout LyX-Code
17866 EndBabelPreamble
17867 \end_layout
17868
17869 \end_deeper
17870 \begin_layout Standard
17871 In principle, any legal \SpecialChar LaTeX
17872  may appear in the 
17873 \begin_inset Flex Code
17874 status collapsed
17875
17876 \begin_layout Plain Layout
17877 LangPreamble
17878 \end_layout
17879
17880 \end_inset
17881
17882  and 
17883 \begin_inset Flex Code
17884 status collapsed
17885
17886 \begin_layout Plain Layout
17887 BabelPreamble
17888 \end_layout
17889
17890 \end_inset
17891
17892  tags, but in practice they will typically look as they do here.
17893  The key to correct translation of the typeset text is the definition of
17894  the \SpecialChar LaTeX
17895  command 
17896 \begin_inset Flex Code
17897 status collapsed
17898
17899 \begin_layout Plain Layout
17900
17901 \backslash
17902 claimname
17903 \end_layout
17904
17905 \end_inset
17906
17907  and its use in 
17908 \begin_inset Flex Code
17909 status collapsed
17910
17911 \begin_layout Plain Layout
17912
17913 \backslash
17914 newtheorem
17915 \end_layout
17916
17917 \end_inset
17918
17919 .
17920  
17921 \end_layout
17922
17923 \begin_layout Standard
17924 The 
17925 \begin_inset Flex Code
17926 status collapsed
17927
17928 \begin_layout Plain Layout
17929 LangPreamble
17930 \end_layout
17931
17932 \end_inset
17933
17934  tag provides for internationalization based upon the overall language of
17935  the document.
17936  The contents of the tag will be included in the preamble, just as with
17937  the 
17938 \begin_inset Flex Code
17939 status collapsed
17940
17941 \begin_layout Plain Layout
17942 Preamble
17943 \end_layout
17944
17945 \end_inset
17946
17947  tag.
17948  What makes it special is the use of the 
17949 \begin_inset Quotes eld
17950 \end_inset
17951
17952 function
17953 \begin_inset Quotes erd
17954 \end_inset
17955
17956  
17957 \begin_inset Flex Code
17958 status collapsed
17959
17960 \begin_layout Plain Layout
17961 _()
17962 \end_layout
17963
17964 \end_inset
17965
17966 , which will be replaced, when \SpecialChar LyX
17967  produces \SpecialChar LaTeX
17968  output, with the translation of
17969  its argument into the document language.
17970 \end_layout
17971
17972 \begin_layout Standard
17973 The 
17974 \begin_inset Flex Code
17975 status collapsed
17976
17977 \begin_layout Plain Layout
17978 BabelPreamble
17979 \end_layout
17980
17981 \end_inset
17982
17983  tag is more complex, since it is meant to provide support for multi-language
17984  documents and so offers an interface to the 
17985 \begin_inset Flex Code
17986 status collapsed
17987
17988 \begin_layout Plain Layout
17989 babel
17990 \end_layout
17991
17992 \end_inset
17993
17994  package.
17995  Its contents will be added to the preamble once for each language that
17996  appears in the document.
17997  In this case, the argument to 
17998 \begin_inset Flex Code
17999 status collapsed
18000
18001 \begin_layout Plain Layout
18002 _()
18003 \end_layout
18004
18005 \end_inset
18006
18007  will be replaced with its translation into the language in question; the
18008  expression 
18009 \begin_inset Flex Code
18010 status collapsed
18011
18012 \begin_layout Plain Layout
18013 $$lang
18014 \end_layout
18015
18016 \end_inset
18017
18018  is replaced by the language name (as used by the babel package).
18019 \end_layout
18020
18021 \begin_layout Standard
18022 A German document that also included a French section would thus have the
18023  following in the preamble:
18024 \end_layout
18025
18026 \begin_layout LyX-Code
18027
18028 \backslash
18029 addto
18030 \backslash
18031 captionsfrench{
18032 \backslash
18033 renewcommand{
18034 \backslash
18035 claimname}{Affirmation}}
18036 \begin_inset Newline newline
18037 \end_inset
18038
18039
18040 \backslash
18041 addto
18042 \backslash
18043 captionsngerman{
18044 \backslash
18045 renewcommand{
18046 \backslash
18047 claimname}{Behauptung}}
18048 \begin_inset Newline newline
18049 \end_inset
18050
18051
18052 \backslash
18053 providecommand{
18054 \backslash
18055 claimname}{Behauptung}
18056 \end_layout
18057
18058 \begin_layout Standard
18059 \SpecialChar LaTeX
18060  and 
18061 \begin_inset Flex Code
18062 status collapsed
18063
18064 \begin_layout Plain Layout
18065 babel
18066 \end_layout
18067
18068 \end_inset
18069
18070  will then conspire to produce the correct text in the output.
18071 \end_layout
18072
18073 \begin_layout Standard
18074 One important point to note here is that the translations are provided by
18075  \SpecialChar LyX
18076  itself, through the file 
18077 \begin_inset Flex Code
18078 status collapsed
18079
18080 \begin_layout Plain Layout
18081 layouttranslations
18082 \end_layout
18083
18084 \end_inset
18085
18086 .
18087  This means, in effect, that 
18088 \begin_inset Flex Code
18089 status collapsed
18090
18091 \begin_layout Plain Layout
18092 LangPreamble
18093 \end_layout
18094
18095 \end_inset
18096
18097  and 
18098 \begin_inset Flex Code
18099 status collapsed
18100
18101 \begin_layout Plain Layout
18102 BabelPreamble
18103 \end_layout
18104
18105 \end_inset
18106
18107  are really only of use in layout files that are provided with \SpecialChar LyX
18108 , since text
18109  entered in user-created layout files will not be seen by \SpecialChar LyX
18110 's internationalizatio
18111 n routines unless the 
18112 \begin_inset Flex Code
18113 status collapsed
18114
18115 \begin_layout Plain Layout
18116 layouttranslations
18117 \end_layout
18118
18119 \end_inset
18120
18121  file is modified accordingly.
18122  That said, however, any layout created with the intention that it will
18123  be included with \SpecialChar LyX
18124  should use these tags where appropriate.
18125  Please note that the paragraph style translations provided by \SpecialChar LyX
18126  will never
18127  change with a minor update (e.
18128 \begin_inset space \thinspace{}
18129 \end_inset
18130
18131 g.
18132 \begin_inset space \space{}
18133 \end_inset
18134
18135 from version 2.1.x to 2.1.y).
18136  It is however quite likely that a major update (e.
18137 \begin_inset space \thinspace{}
18138 \end_inset
18139
18140 g.
18141 \begin_inset space \space{}
18142 \end_inset
18143
18144 from 2.0.x to 2.1.0) will introduce new translations or corrections.
18145 \end_layout
18146
18147 \begin_layout Subsection
18148 Floats
18149 \begin_inset CommandInset label
18150 LatexCommand label
18151 name "subsec:Floats"
18152
18153 \end_inset
18154
18155
18156 \end_layout
18157
18158 \begin_layout Standard
18159 It is necessary to define the floats (
18160 \begin_inset Flex Noun
18161 status collapsed
18162
18163 \begin_layout Plain Layout
18164 figure
18165 \end_layout
18166
18167 \end_inset
18168
18169
18170 \begin_inset Flex Noun
18171 status collapsed
18172
18173 \begin_layout Plain Layout
18174 table
18175 \end_layout
18176
18177 \end_inset
18178
18179 , \SpecialChar ldots
18180 ) in the text class itself.
18181  Standard floats are included in the file 
18182 \begin_inset Flex Code
18183 status collapsed
18184
18185 \begin_layout Plain Layout
18186 stdfloats.inc
18187 \end_layout
18188
18189 \end_inset
18190
18191 , so you may have to do no more than add
18192 \end_layout
18193
18194 \begin_layout LyX-Code
18195 Input stdfloats.inc
18196 \end_layout
18197
18198 \begin_layout Standard
18199 to your layout file.
18200  If you want to implement a text class that proposes some other float types
18201  (like the AGU class bundled with \SpecialChar LyX
18202 ), the information below will hopefully
18203  help you:
18204 \end_layout
18205
18206 \begin_layout Description
18207 \begin_inset Flex Code
18208 status collapsed
18209
18210 \begin_layout Plain Layout
18211 AllowedPlacement
18212 \end_layout
18213
18214 \end_inset
18215
18216  [
18217 \begin_inset Flex Code
18218 status collapsed
18219
18220 \begin_layout Plain Layout
18221 string
18222 \end_layout
18223
18224 \end_inset
18225
18226 =!htbpH] Allowed placement options for this float type.
18227  The value is a string of placement characters.
18228  Possible characters include: 
18229 \emph on
18230 h
18231 \emph default
18232  (
18233 \begin_inset Quotes eld
18234 \end_inset
18235
18236 here if possible
18237 \begin_inset Quotes erd
18238 \end_inset
18239
18240 ), 
18241 \emph on
18242 t
18243 \emph default
18244  (
18245 \begin_inset Quotes eld
18246 \end_inset
18247
18248 top of page
18249 \begin_inset Quotes erd
18250 \end_inset
18251
18252 ), 
18253 \emph on
18254 b
18255 \emph default
18256  (
18257 \begin_inset Quotes eld
18258 \end_inset
18259
18260 bottom of page
18261 \begin_inset Quotes erd
18262 \end_inset
18263
18264 ), 
18265 \emph on
18266 p
18267 \emph default
18268  (
18269 \begin_inset Quotes eld
18270 \end_inset
18271
18272 page of floats
18273 \begin_inset Quotes erd
18274 \end_inset
18275
18276 ), 
18277 \emph on
18278 H
18279 \emph default
18280  (
18281 \begin_inset Quotes eld
18282 \end_inset
18283
18284 here definitely
18285 \begin_inset Quotes erd
18286 \end_inset
18287
18288 ) and 
18289 \emph on
18290 !
18291 \emph default
18292  (
18293 \begin_inset Quotes eld
18294 \end_inset
18295
18296 ignore LaTeX rules
18297 \begin_inset Quotes erd
18298 \end_inset
18299
18300 ).
18301  The order of the characters in the string does not matter.
18302  If no placement options are allowed, use the string 
18303 \emph on
18304 none
18305 \emph default
18306 .
18307 \end_layout
18308
18309 \begin_layout Description
18310 \begin_inset Flex Code
18311 status collapsed
18312
18313 \begin_layout Plain Layout
18314 AllowsSideways
18315 \end_layout
18316
18317 \end_inset
18318
18319  [
18320 \begin_inset Flex Code
18321 status collapsed
18322
18323 \begin_layout Plain Layout
18324
18325 \emph off
18326 0
18327 \end_layout
18328
18329 \end_inset
18330
18331 ,
18332 \begin_inset space \thinspace{}
18333 \end_inset
18334
18335
18336 \emph on
18337
18338 \begin_inset Flex Code
18339 status collapsed
18340
18341 \begin_layout Plain Layout
18342
18343 \emph on
18344 1
18345 \end_layout
18346
18347 \end_inset
18348
18349
18350 \emph default
18351 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
18352 -package 
18353 \family typewriter
18354 rotfloat
18355 \family default
18356  (sidewaysfloat).
18357  Set to 
18358 \begin_inset Flex Code
18359 status collapsed
18360
18361 \begin_layout Plain Layout
18362 0
18363 \end_layout
18364
18365 \end_inset
18366
18367  if the float does not support this feature.
18368 \end_layout
18369
18370 \begin_layout Description
18371 \begin_inset Flex Code
18372 status collapsed
18373
18374 \begin_layout Plain Layout
18375 AllowsWide
18376 \end_layout
18377
18378 \end_inset
18379
18380  [
18381 \begin_inset Flex Code
18382 status collapsed
18383
18384 \begin_layout Plain Layout
18385
18386 \emph off
18387 0
18388 \end_layout
18389
18390 \end_inset
18391
18392 ,
18393 \begin_inset space \thinspace{}
18394 \end_inset
18395
18396
18397 \emph on
18398
18399 \begin_inset Flex Code
18400 status collapsed
18401
18402 \begin_layout Plain Layout
18403
18404 \emph on
18405 1
18406 \end_layout
18407
18408 \end_inset
18409
18410
18411 \emph default
18412 ] Defines whether the float has a starred variant that spans columns in
18413  a two column paragraph.
18414  Set to 
18415 \begin_inset Flex Code
18416 status collapsed
18417
18418 \begin_layout Plain Layout
18419 0
18420 \end_layout
18421
18422 \end_inset
18423
18424  if the float does not support this feature.
18425 \end_layout
18426
18427 \begin_layout Description
18428 \begin_inset Flex Code
18429 status collapsed
18430
18431 \begin_layout Plain Layout
18432 Extension
18433 \end_layout
18434
18435 \end_inset
18436
18437  [
18438 \begin_inset Flex Code
18439 status collapsed
18440
18441 \begin_layout Plain Layout
18442 string
18443 \end_layout
18444
18445 \end_inset
18446
18447 =
18448 \begin_inset Quotes erd
18449 \end_inset
18450
18451
18452 \begin_inset Quotes erd
18453 \end_inset
18454
18455 ] The file name extension of an auxiliary file for the list of figures (or
18456  whatever).
18457  \SpecialChar LaTeX
18458  writes the captions to this file.
18459 \end_layout
18460
18461 \begin_layout Description
18462 \begin_inset Flex Code
18463 status collapsed
18464
18465 \begin_layout Plain Layout
18466 GuiName
18467 \end_layout
18468
18469 \end_inset
18470
18471  [
18472 \begin_inset Flex Code
18473 status collapsed
18474
18475 \begin_layout Plain Layout
18476 string
18477 \end_layout
18478
18479 \end_inset
18480
18481 =
18482 \begin_inset Quotes erd
18483 \end_inset
18484
18485
18486 \begin_inset Quotes erd
18487 \end_inset
18488
18489 ] The string that will be used in the menus and also for the caption.
18490  This is translated to the current language if babel is used.
18491 \end_layout
18492
18493 \begin_layout Description
18494 \begin_inset Flex Code
18495 status collapsed
18496
18497 \begin_layout Plain Layout
18498 HTML*
18499 \end_layout
18500
18501 \end_inset
18502
18503  These tags control the XHTML output.
18504  See 
18505 \begin_inset CommandInset ref
18506 LatexCommand ref
18507 reference "sec:Tags-for-XHTML"
18508
18509 \end_inset
18510
18511 .
18512 \end_layout
18513
18514 \begin_layout Description
18515 \begin_inset Flex Code
18516 status collapsed
18517
18518 \begin_layout Plain Layout
18519 IsPredefined
18520 \end_layout
18521
18522 \end_inset
18523
18524  [
18525 \emph on
18526
18527 \begin_inset Flex Code
18528 status collapsed
18529
18530 \begin_layout Plain Layout
18531 0
18532 \end_layout
18533
18534 \end_inset
18535
18536
18537 \emph default
18538 ,
18539 \begin_inset space \thinspace{}
18540 \end_inset
18541
18542
18543 \begin_inset Flex Code
18544 status collapsed
18545
18546 \begin_layout Plain Layout
18547 1
18548 \end_layout
18549
18550 \end_inset
18551
18552 ] Indicates whether the float is already defined in the document class or
18553  if instead the \SpecialChar LaTeX
18554  package 
18555 \begin_inset Flex Code
18556 status collapsed
18557
18558 \begin_layout Plain Layout
18559 float
18560 \end_layout
18561
18562 \end_inset
18563
18564  needs to be loaded to define it on-the-fly.
18565  The default is 
18566 \begin_inset Flex Code
18567 status collapsed
18568
18569 \begin_layout Plain Layout
18570 0
18571 \end_layout
18572
18573 \end_inset
18574
18575 , which means: 
18576 \begin_inset Flex Code
18577 status collapsed
18578
18579 \begin_layout Plain Layout
18580 float
18581 \end_layout
18582
18583 \end_inset
18584
18585  is used.
18586  It should be set to 
18587 \begin_inset Flex Code
18588 status collapsed
18589
18590 \begin_layout Plain Layout
18591 1
18592 \end_layout
18593
18594 \end_inset
18595
18596  if the float is already defined by the \SpecialChar LaTeX
18597  document class.
18598 \end_layout
18599
18600 \begin_layout Description
18601 \begin_inset Flex Code
18602 status collapsed
18603
18604 \begin_layout Plain Layout
18605 ListCommand
18606 \end_layout
18607
18608 \end_inset
18609
18610  [
18611 \begin_inset Flex Code
18612 status collapsed
18613
18614 \begin_layout Plain Layout
18615 string
18616 \end_layout
18617
18618 \end_inset
18619
18620 =
18621 \begin_inset Quotes erd
18622 \end_inset
18623
18624
18625 \begin_inset Quotes erd
18626 \end_inset
18627
18628 ] The command used to generate a list of floats of this type; the leading
18629  `
18630 \backslash
18631 ' must be omitted.
18632  This 
18633 \emph on
18634 must
18635 \emph default
18636  be given if 
18637 \begin_inset Flex Code
18638 status collapsed
18639
18640 \begin_layout Plain Layout
18641 UsesFloatPkg
18642 \end_layout
18643
18644 \end_inset
18645
18646  is false, since there is no standard way to generate this command.
18647  It is ignored if 
18648 \begin_inset Flex Code
18649 status collapsed
18650
18651 \begin_layout Plain Layout
18652 UsesFloatPkg
18653 \end_layout
18654
18655 \end_inset
18656
18657  is true, since in that case there is a standard way to define the command.
18658 \end_layout
18659
18660 \begin_layout Description
18661 \begin_inset Flex Code
18662 status collapsed
18663
18664 \begin_layout Plain Layout
18665 ListName
18666 \end_layout
18667
18668 \end_inset
18669
18670  [
18671 \begin_inset Flex Code
18672 status collapsed
18673
18674 \begin_layout Plain Layout
18675 string
18676 \end_layout
18677
18678 \end_inset
18679
18680 =
18681 \begin_inset Quotes erd
18682 \end_inset
18683
18684
18685 \begin_inset Quotes erd
18686 \end_inset
18687
18688 ] A title for a list of floats of this kind (list of figures, tables, or
18689  whatever).
18690  It is used for the screen label within \SpecialChar LyX
18691 , it is used by \SpecialChar LaTeX
18692  for the title and
18693  it is used as the title in the XHTML output.
18694  It will be translated to the document language.
18695 \end_layout
18696
18697 \begin_layout Description
18698 \begin_inset Flex Code
18699 status collapsed
18700
18701 \begin_layout Plain Layout
18702 NumberWithin
18703 \end_layout
18704
18705 \end_inset
18706
18707  [
18708 \begin_inset Flex Code
18709 status collapsed
18710
18711 \begin_layout Plain Layout
18712 string
18713 \end_layout
18714
18715 \end_inset
18716
18717 =
18718 \begin_inset Quotes erd
18719 \end_inset
18720
18721
18722 \begin_inset Quotes erd
18723 \end_inset
18724
18725 ] This (optional) argument determines whether floats of this class will
18726  be numbered within some sectional unit of the document.
18727  For example, if 
18728 \begin_inset Flex Code
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 NumberWithin
18733 \end_layout
18734
18735 \end_inset
18736
18737  is set to 
18738 \begin_inset Quotes eld
18739 \end_inset
18740
18741
18742 \begin_inset Flex Code
18743 status collapsed
18744
18745 \begin_layout Plain Layout
18746 chapter
18747 \end_layout
18748
18749 \end_inset
18750
18751
18752 \begin_inset Quotes erd
18753 \end_inset
18754
18755 , the floats will be numbered within chapters.
18756  
18757 \end_layout
18758
18759 \begin_layout Description
18760 \begin_inset Flex Code
18761 status collapsed
18762
18763 \begin_layout Plain Layout
18764 Placement
18765 \end_layout
18766
18767 \end_inset
18768
18769  [
18770 \begin_inset Flex Code
18771 status collapsed
18772
18773 \begin_layout Plain Layout
18774 string
18775 \end_layout
18776
18777 \end_inset
18778
18779 =
18780 \begin_inset Quotes erd
18781 \end_inset
18782
18783
18784 \begin_inset Quotes erd
18785 \end_inset
18786
18787 ] The default placement for the given class of floats.
18788  The string should be as in standard \SpecialChar LaTeX
18789
18790 \begin_inset Flex Code
18791 status collapsed
18792
18793 \begin_layout Plain Layout
18794 t
18795 \end_layout
18796
18797 \end_inset
18798
18799
18800 \begin_inset Flex Code
18801 status collapsed
18802
18803 \begin_layout Plain Layout
18804 b
18805 \end_layout
18806
18807 \end_inset
18808
18809
18810 \begin_inset Flex Code
18811 status collapsed
18812
18813 \begin_layout Plain Layout
18814 p
18815 \end_layout
18816
18817 \end_inset
18818
18819  and 
18820 \begin_inset Flex Code
18821 status collapsed
18822
18823 \begin_layout Plain Layout
18824 h
18825 \end_layout
18826
18827 \end_inset
18828
18829  for top, bottom, page, and here, respectively.
18830 \begin_inset Foot
18831 status collapsed
18832
18833 \begin_layout Plain Layout
18834 Note that the order of these letters in the string is irrelevant, like in
18835  \SpecialChar LaTeX
18836 .
18837 \end_layout
18838
18839 \end_inset
18840
18841  On top of that there is a new type, 
18842 \begin_inset Flex Code
18843 status collapsed
18844
18845 \begin_layout Plain Layout
18846 H
18847 \end_layout
18848
18849 \end_inset
18850
18851 , which does not really correspond to a float, since it means: put it 
18852 \begin_inset Quotes eld
18853 \end_inset
18854
18855 here
18856 \begin_inset Quotes erd
18857 \end_inset
18858
18859  and nowhere else.
18860  Note however that the 
18861 \begin_inset Flex Code
18862 status collapsed
18863
18864 \begin_layout Plain Layout
18865 H
18866 \end_layout
18867
18868 \end_inset
18869
18870  specifier is special and, because of implementation details, cannot be
18871  used in non-built in float types.
18872  If you do not understand what this means, just use 
18873 \begin_inset Quotes eld
18874 \end_inset
18875
18876
18877 \begin_inset Flex Code
18878 status collapsed
18879
18880 \begin_layout Plain Layout
18881 tbp
18882 \end_layout
18883
18884 \end_inset
18885
18886
18887 \begin_inset Quotes erd
18888 \end_inset
18889
18890 .
18891 \end_layout
18892
18893 \begin_layout Description
18894 \begin_inset Flex Code
18895 status collapsed
18896
18897 \begin_layout Plain Layout
18898 RefPrefix
18899 \end_layout
18900
18901 \end_inset
18902
18903  [
18904 \begin_inset Flex Code
18905 status collapsed
18906
18907 \begin_layout Plain Layout
18908 string
18909 \end_layout
18910
18911 \end_inset
18912
18913 ] The prefix to use when creating labels referring to floats of this type.
18914  This allows the use of formatted references.
18915  Note that you can remove any 
18916 \begin_inset Flex Code
18917 status collapsed
18918
18919 \begin_layout Plain Layout
18920 RefPrefix
18921 \end_layout
18922
18923 \end_inset
18924
18925  set by a copied style by using the special value 
18926 \begin_inset Quotes eld
18927 \end_inset
18928
18929 OFF
18930 \begin_inset Quotes erd
18931 \end_inset
18932
18933 , which must be all caps.
18934 \change_inserted -712698321 1565605014
18935
18936 \end_layout
18937
18938 \begin_layout Description
18939
18940 \change_inserted -712698321 1565605014
18941 \begin_inset Flex Code
18942 status collapsed
18943
18944 \begin_layout Plain Layout
18945
18946 \change_inserted -712698321 1565605014
18947 Requires
18948 \change_unchanged
18949
18950 \end_layout
18951
18952 \end_inset
18953
18954  [
18955 \begin_inset Flex Code
18956 status collapsed
18957
18958 \begin_layout Plain Layout
18959
18960 \change_inserted -712698321 1565605014
18961 string
18962 \change_unchanged
18963
18964 \end_layout
18965
18966 \end_inset
18967
18968 ] As with paragraph styles, see 
18969 \begin_inset CommandInset ref
18970 LatexCommand ref
18971 reference "subsec:Paragraph-Styles"
18972
18973 \end_inset
18974
18975 .
18976 \change_unchanged
18977
18978 \end_layout
18979
18980 \begin_layout Description
18981 \begin_inset Flex Code
18982 status collapsed
18983
18984 \begin_layout Plain Layout
18985 Style
18986 \end_layout
18987
18988 \end_inset
18989
18990  [
18991 \begin_inset Flex Code
18992 status collapsed
18993
18994 \begin_layout Plain Layout
18995 string
18996 \end_layout
18997
18998 \end_inset
18999
19000 =
19001 \begin_inset Quotes erd
19002 \end_inset
19003
19004
19005 \begin_inset Quotes erd
19006 \end_inset
19007
19008 ] The style used when defining the float using 
19009 \begin_inset Flex Code
19010 status collapsed
19011
19012 \begin_layout Plain Layout
19013
19014 \backslash
19015 newfloat
19016 \end_layout
19017
19018 \end_inset
19019
19020 .
19021 \end_layout
19022
19023 \begin_layout Description
19024 \begin_inset Flex Code
19025 status collapsed
19026
19027 \begin_layout Plain Layout
19028 Type
19029 \end_layout
19030
19031 \end_inset
19032
19033  [
19034 \begin_inset Flex Code
19035 status collapsed
19036
19037 \begin_layout Plain Layout
19038 string
19039 \end_layout
19040
19041 \end_inset
19042
19043 =
19044 \begin_inset Quotes erd
19045 \end_inset
19046
19047
19048 \begin_inset Quotes erd
19049 \end_inset
19050
19051 ] The 
19052 \begin_inset Quotes eld
19053 \end_inset
19054
19055 type
19056 \begin_inset Quotes erd
19057 \end_inset
19058
19059  of the new class of floats, like program or algorithm.
19060  After the appropriate 
19061 \begin_inset Flex Code
19062 status collapsed
19063
19064 \begin_layout Plain Layout
19065
19066 \backslash
19067 newfloat
19068 \end_layout
19069
19070 \end_inset
19071
19072 , commands such as 
19073 \begin_inset Flex Code
19074 status collapsed
19075
19076 \begin_layout Plain Layout
19077
19078 \backslash
19079 begin{program}
19080 \end_layout
19081
19082 \end_inset
19083
19084  or 
19085 \begin_inset Flex Code
19086 status collapsed
19087
19088 \begin_layout Plain Layout
19089
19090 \backslash
19091 end{algorithm*}
19092 \end_layout
19093
19094 \end_inset
19095
19096  will be available.
19097 \end_layout
19098
19099 \begin_layout Description
19100 \begin_inset Flex Code
19101 status collapsed
19102
19103 \begin_layout Plain Layout
19104 UsesFloatPkg
19105 \end_layout
19106
19107 \end_inset
19108
19109  [
19110 \begin_inset Flex Code
19111 status collapsed
19112
19113 \begin_layout Plain Layout
19114 0
19115 \end_layout
19116
19117 \end_inset
19118
19119 ,
19120 \begin_inset space \thinspace{}
19121 \end_inset
19122
19123
19124 \begin_inset Flex Code
19125 status collapsed
19126
19127 \begin_layout Plain Layout
19128
19129 \emph on
19130 1
19131 \end_layout
19132
19133 \end_inset
19134
19135 ] Specifies whether this float is defined using the \SpecialChar LaTeX
19136  package 
19137 \begin_inset Flex Code
19138 status collapsed
19139
19140 \begin_layout Plain Layout
19141 float
19142 \end_layout
19143
19144 \end_inset
19145
19146 , either by the class file, another package or on-the-fly by \SpecialChar LyX
19147  itself.
19148 \end_layout
19149
19150 \begin_layout Standard
19151 Note that defining a float with type 
19152 \begin_inset Flex Code
19153 status collapsed
19154
19155 \begin_layout Plain Layout
19156
19157 \emph on
19158 type
19159 \end_layout
19160
19161 \end_inset
19162
19163  automatically defines the corresponding counter with name 
19164 \begin_inset Flex Code
19165 status collapsed
19166
19167 \begin_layout Plain Layout
19168
19169 \emph on
19170 type
19171 \end_layout
19172
19173 \end_inset
19174
19175 .
19176 \end_layout
19177
19178 \begin_layout Subsection
19179 Flex insets and InsetLayout
19180 \begin_inset CommandInset label
19181 LatexCommand label
19182 name "subsec:Flex-insets-and"
19183
19184 \end_inset
19185
19186
19187 \end_layout
19188
19189 \begin_layout Standard
19190 Flex insets come in 
19191 \change_deleted 5863208 1594239511
19192 three
19193 \change_inserted 5863208 1594239512
19194 two
19195 \change_unchanged
19196  different kinds: 
19197 \end_layout
19198
19199 \begin_layout Itemize
19200 character style (
19201 \begin_inset Flex Code
19202 status collapsed
19203
19204 \begin_layout Plain Layout
19205 CharStyle
19206 \end_layout
19207
19208 \end_inset
19209
19210 ): These define semantic markup corresponding to such \SpecialChar LaTeX
19211  commands as 
19212 \begin_inset Flex Code
19213 status collapsed
19214
19215 \begin_layout Plain Layout
19216
19217 \backslash
19218 noun
19219 \end_layout
19220
19221 \end_inset
19222
19223  and 
19224 \begin_inset Flex Code
19225 status collapsed
19226
19227 \begin_layout Plain Layout
19228
19229 \backslash
19230 code
19231 \end_layout
19232
19233 \end_inset
19234
19235 .
19236 \end_layout
19237
19238 \begin_layout Itemize
19239 user custom (
19240 \begin_inset Flex Code
19241 status collapsed
19242
19243 \begin_layout Plain Layout
19244 Custom
19245 \end_layout
19246
19247 \end_inset
19248
19249 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
19250  code,
19251  footnote, and the like.
19252  An obvious example is an endnote inset, which is defined in the 
19253 \begin_inset Flex Code
19254 status collapsed
19255
19256 \begin_layout Plain Layout
19257 endnote
19258 \end_layout
19259
19260 \end_inset
19261
19262  module.
19263 \end_layout
19264
19265 \begin_layout Itemize
19266
19267 \change_deleted 5863208 1594239528
19268 XML elements (
19269 \begin_inset Flex Code
19270 status collapsed
19271
19272 \begin_layout Plain Layout
19273 Element
19274 \end_layout
19275
19276 \end_inset
19277
19278 ): For use with DocBook classes.
19279 \change_unchanged
19280
19281 \end_layout
19282
19283 \begin_layout Standard
19284 Flex insets are defined using the 
19285 \begin_inset Flex Code
19286 status collapsed
19287
19288 \begin_layout Plain Layout
19289 InsetLayout
19290 \end_layout
19291
19292 \end_inset
19293
19294  tag, which shall be explained in a moment.
19295 \end_layout
19296
19297 \begin_layout Standard
19298 The 
19299 \begin_inset Flex Code
19300 status collapsed
19301
19302 \begin_layout Plain Layout
19303 InsetLayout
19304 \end_layout
19305
19306 \end_inset
19307
19308  tag also serves another function: It can be used to customize the general
19309  layout of many different types of insets.
19310  Currently, 
19311 \begin_inset Flex Code
19312 status collapsed
19313
19314 \begin_layout Plain Layout
19315 InsetLayout
19316 \end_layout
19317
19318 \end_inset
19319
19320  can be used to customize the layout parameters for footnotes, marginal
19321  notes, note insets, \SpecialChar TeX
19322  code (ERT) insets, branches, listings, indexes, boxes,
19323  tables, algorithms, URLs, and captions, as well as to define Flex insets.
19324 \end_layout
19325
19326 \begin_layout Standard
19327 The 
19328 \begin_inset Flex Code
19329 status collapsed
19330
19331 \begin_layout Plain Layout
19332 InsetLayout
19333 \end_layout
19334
19335 \end_inset
19336
19337  definition must begin with a line of the form:
19338 \end_layout
19339
19340 \begin_layout LyX-Code
19341 InsetLayout <type>
19342 \end_layout
19343
19344 \begin_layout Standard
19345 Here 
19346 \begin_inset Flex Code
19347 status collapsed
19348
19349 \begin_layout Plain Layout
19350 <Type>
19351 \end_layout
19352
19353 \end_inset
19354
19355  indicates the inset whose layout is being defined, and here there are four
19356  cases.
19357 \end_layout
19358
19359 \begin_layout Enumerate
19360 The layout for a pre-existing inset is being modified.
19361  In this case, can be 
19362 \begin_inset Flex Code
19363 status collapsed
19364
19365 \begin_layout Plain Layout
19366 <Type>
19367 \end_layout
19368
19369 \end_inset
19370
19371  any one of the following: 
19372 \begin_inset Flex Code
19373 status collapsed
19374
19375 \begin_layout Plain Layout
19376 Algorithm
19377 \end_layout
19378
19379 \end_inset
19380
19381
19382 \begin_inset Flex Code
19383 status collapsed
19384
19385 \begin_layout Plain Layout
19386 Branch
19387 \end_layout
19388
19389 \end_inset
19390
19391
19392 \begin_inset Flex Code
19393 status collapsed
19394
19395 \begin_layout Plain Layout
19396 Box
19397 \end_layout
19398
19399 \end_inset
19400
19401
19402 \begin_inset Flex Code
19403 status collapsed
19404
19405 \begin_layout Plain Layout
19406 Box:shaded
19407 \end_layout
19408
19409 \end_inset
19410
19411
19412 \begin_inset Flex Code
19413 status collapsed
19414
19415 \begin_layout Plain Layout
19416 Caption:Standard
19417 \end_layout
19418
19419 \end_inset
19420
19421
19422 \begin_inset Flex Code
19423 status collapsed
19424
19425 \begin_layout Plain Layout
19426 ERT
19427 \end_layout
19428
19429 \end_inset
19430
19431
19432 \begin_inset Flex Code
19433 status collapsed
19434
19435 \begin_layout Plain Layout
19436 Figure
19437 \end_layout
19438
19439 \end_inset
19440
19441
19442 \begin_inset Flex Code
19443 status collapsed
19444
19445 \begin_layout Plain Layout
19446 Foot
19447 \end_layout
19448
19449 \end_inset
19450
19451
19452 \begin_inset Flex Code
19453 status collapsed
19454
19455 \begin_layout Plain Layout
19456 Index
19457 \end_layout
19458
19459 \end_inset
19460
19461
19462 \begin_inset Flex Code
19463 status collapsed
19464
19465 \begin_layout Plain Layout
19466 Info
19467 \end_layout
19468
19469 \end_inset
19470
19471
19472 \begin_inset Flex Code
19473 status collapsed
19474
19475 \begin_layout Plain Layout
19476 Info:menu
19477 \end_layout
19478
19479 \end_inset
19480
19481
19482 \begin_inset Flex Code
19483 status collapsed
19484
19485 \begin_layout Plain Layout
19486 Info:shortcut
19487 \end_layout
19488
19489 \end_inset
19490
19491
19492 \begin_inset Flex Code
19493 status collapsed
19494
19495 \begin_layout Plain Layout
19496 Info:shortcuts
19497 \end_layout
19498
19499 \end_inset
19500
19501
19502 \begin_inset Flex Code
19503 status collapsed
19504
19505 \begin_layout Plain Layout
19506 Listings
19507 \end_layout
19508
19509 \end_inset
19510
19511
19512 \begin_inset Flex Code
19513 status collapsed
19514
19515 \begin_layout Plain Layout
19516 Marginal
19517 \end_layout
19518
19519 \end_inset
19520
19521
19522 \begin_inset Flex Code
19523 status collapsed
19524
19525 \begin_layout Plain Layout
19526 Note:Comment
19527 \end_layout
19528
19529 \end_inset
19530
19531
19532 \begin_inset Flex Code
19533 status collapsed
19534
19535 \begin_layout Plain Layout
19536 Note:Note
19537 \end_layout
19538
19539 \end_inset
19540
19541
19542 \begin_inset Flex Code
19543 status collapsed
19544
19545 \begin_layout Plain Layout
19546 Note:Greyedout
19547 \end_layout
19548
19549 \end_inset
19550
19551
19552 \begin_inset Flex Code
19553 status collapsed
19554
19555 \begin_layout Plain Layout
19556 Table
19557 \end_layout
19558
19559 \end_inset
19560
19561 , or 
19562 \begin_inset Flex Code
19563 status collapsed
19564
19565 \begin_layout Plain Layout
19566 URL
19567 \end_layout
19568
19569 \end_inset
19570
19571 .
19572 \end_layout
19573
19574 \begin_layout Enumerate
19575 The layout for a Flex inset is being defined.
19576  In this case, 
19577 \begin_inset Flex Code
19578 status collapsed
19579
19580 \begin_layout Plain Layout
19581 <Type>
19582 \end_layout
19583
19584 \end_inset
19585
19586  must be of the form 
19587 \begin_inset Quotes eld
19588 \end_inset
19589
19590
19591 \begin_inset Flex Code
19592 status collapsed
19593
19594 \begin_layout Plain Layout
19595 Flex:<name>
19596 \end_layout
19597
19598 \end_inset
19599
19600
19601 \begin_inset Quotes erd
19602 \end_inset
19603
19604 , where 
19605 \begin_inset Flex Code
19606 status collapsed
19607
19608 \begin_layout Plain Layout
19609 name
19610 \end_layout
19611
19612 \end_inset
19613
19614  may be be any valid identifier not used by a pre-existing Flex inset.
19615  The identifier may include spaces, but in that case the whole thing must
19616  be wrapped in quotes.
19617  Note that the definition of a flex inset 
19618 \emph on
19619 must 
19620 \emph default
19621 also include a 
19622 \begin_inset Flex Code
19623 status collapsed
19624
19625 \begin_layout Plain Layout
19626 LyXType
19627 \end_layout
19628
19629 \end_inset
19630
19631  entry, declaring which type of inset it defines.
19632 \end_layout
19633
19634 \begin_layout Enumerate
19635 The layout for user specific branch is being defined.
19636  In this case, 
19637 \begin_inset Flex Code
19638 status collapsed
19639
19640 \begin_layout Plain Layout
19641 <Type>
19642 \end_layout
19643
19644 \end_inset
19645
19646  must be of the form 
19647 \begin_inset Quotes eld
19648 \end_inset
19649
19650
19651 \begin_inset Flex Code
19652 status collapsed
19653
19654 \begin_layout Plain Layout
19655 Branch:<name>
19656 \end_layout
19657
19658 \end_inset
19659
19660
19661 \begin_inset Quotes erd
19662 \end_inset
19663
19664 , where 
19665 \begin_inset Flex Code
19666 status collapsed
19667
19668 \begin_layout Plain Layout
19669 name
19670 \end_layout
19671
19672 \end_inset
19673
19674  may be be any valid identifier of branch defined in user's document.
19675  The identifier may include spaces, but in that case the whole thing must
19676  be wrapped in quotes.
19677  The main purpose of this feature is to allow \SpecialChar LaTeX
19678  wrapping around specific
19679  branches as user needs.
19680 \end_layout
19681
19682 \begin_layout Enumerate
19683 The layout of a user (or class) specific caption is being defined.
19684  In this case, 
19685 \begin_inset Flex Code
19686 status collapsed
19687
19688 \begin_layout Plain Layout
19689 <Type>
19690 \end_layout
19691
19692 \end_inset
19693
19694  must be of the form 
19695 \begin_inset Quotes eld
19696 \end_inset
19697
19698
19699 \begin_inset Flex Code
19700 status collapsed
19701
19702 \begin_layout Plain Layout
19703 Caption:<name>
19704 \end_layout
19705
19706 \end_inset
19707
19708
19709 \begin_inset Quotes erd
19710 \end_inset
19711
19712 , where 
19713 \begin_inset Flex Code
19714 status collapsed
19715
19716 \begin_layout Plain Layout
19717 name
19718 \end_layout
19719
19720 \end_inset
19721
19722  specifies the name of the caption as it appears in the menu.
19723  Have a look at the standard caption (
19724 \begin_inset Flex Code
19725 status collapsed
19726
19727 \begin_layout Plain Layout
19728 Caption:Standard
19729 \end_layout
19730
19731 \end_inset
19732
19733 ), the specific captions of the KOMA-Script classes (
19734 \begin_inset Flex Code
19735 status collapsed
19736
19737 \begin_layout Plain Layout
19738 Caption:Above
19739 \end_layout
19740
19741 \end_inset
19742
19743
19744 \begin_inset Flex Code
19745 status collapsed
19746
19747 \begin_layout Plain Layout
19748 Caption:Below
19749 \end_layout
19750
19751 \end_inset
19752
19753 ) or the module 
19754 \family sans
19755 Multilingual
19756 \begin_inset space ~
19757 \end_inset
19758
19759 Captions
19760 \begin_inset Newline linebreak
19761 \end_inset
19762
19763
19764 \family default
19765 (
19766 \begin_inset Flex Code
19767 status collapsed
19768
19769 \begin_layout Plain Layout
19770 Caption:Bicaption
19771 \end_layout
19772
19773 \end_inset
19774
19775 ) for applications.
19776 \end_layout
19777
19778 \begin_layout Standard
19779 The 
19780 \begin_inset Flex Code
19781 status collapsed
19782
19783 \begin_layout Plain Layout
19784 InsetLayout
19785 \end_layout
19786
19787 \end_inset
19788
19789  definition can contain the following entries:
19790 \end_layout
19791
19792 \begin_layout Description
19793 \begin_inset Flex Code
19794 status collapsed
19795
19796 \begin_layout Plain Layout
19797 AddToToc
19798 \end_layout
19799
19800 \end_inset
19801
19802  [
19803 \begin_inset Flex Code
19804 status collapsed
19805
19806 \begin_layout Plain Layout
19807 string
19808 \end_layout
19809
19810 \end_inset
19811
19812 =""] This inset will appear in the table of contents of the given type.
19813  An empty string disables.
19814  See also the OutlinerName and the IsTocCaption commands.
19815  This is only implemented for Flex insets.
19816  Default: disabled.
19817 \end_layout
19818
19819 \begin_layout Description
19820 \begin_inset Flex Code
19821 status collapsed
19822
19823 \begin_layout Plain Layout
19824 Argument
19825 \end_layout
19826
19827 \end_inset
19828
19829  [
19830 \begin_inset Flex Code
19831 status collapsed
19832
19833 \begin_layout Plain Layout
19834 int
19835 \end_layout
19836
19837 \end_inset
19838
19839 ] Defines argument number of a command\SpecialChar breakableslash
19840 environment associated with the current
19841  layout.
19842  The definition must end with 
19843 \begin_inset Flex Code
19844 status collapsed
19845
19846 \begin_layout Plain Layout
19847 EndArgument
19848 \end_layout
19849
19850 \end_inset
19851
19852 .
19853  See 
19854 \begin_inset CommandInset ref
19855 LatexCommand ref
19856 reference "subsec:Paragraph-Styles"
19857
19858 \end_inset
19859
19860  for details.
19861 \end_layout
19862
19863 \begin_layout Description
19864 \begin_inset Flex Code
19865 status collapsed
19866
19867 \begin_layout Plain Layout
19868 BabelPreamble
19869 \end_layout
19870
19871 \end_inset
19872
19873  Preamble for changing language commands; see 
19874 \begin_inset CommandInset ref
19875 LatexCommand ref
19876 reference "subsec:I18n"
19877
19878 \end_inset
19879
19880 .
19881 \end_layout
19882
19883 \begin_layout Description
19884 \begin_inset Flex Code
19885 status collapsed
19886
19887 \begin_layout Plain Layout
19888 BgColor
19889 \end_layout
19890
19891 \end_inset
19892
19893  [
19894 \begin_inset Flex Code
19895 status collapsed
19896
19897 \begin_layout Plain Layout
19898 <name>
19899 \end_layout
19900
19901 \end_inset
19902
19903 ] The color for the inset's background.
19904  See 
19905 \begin_inset CommandInset ref
19906 LatexCommand ref
19907 reference "chap:Names-of-colors"
19908
19909 \end_inset
19910
19911  for a list of the available color names.
19912 \end_layout
19913
19914 \begin_layout Description
19915 \begin_inset Flex Code
19916 status collapsed
19917
19918 \begin_layout Plain Layout
19919 ContentAsLabel
19920 \end_layout
19921
19922 \end_inset
19923
19924  [
19925 \begin_inset Flex Code
19926 status collapsed
19927
19928 \begin_layout Plain Layout
19929
19930 \emph on
19931 0
19932 \end_layout
19933
19934 \end_inset
19935
19936 ,
19937 \begin_inset space \thinspace{}
19938 \end_inset
19939
19940
19941 \begin_inset Flex Code
19942 status collapsed
19943
19944 \begin_layout Plain Layout
19945 1
19946 \end_layout
19947
19948 \end_inset
19949
19950 ] Whether to use the content of the inset as the label, when the inset is
19951  closed.
19952  Default is false.
19953 \end_layout
19954
19955 \begin_layout Description
19956 \begin_inset Flex Code
19957 status collapsed
19958
19959 \begin_layout Plain Layout
19960 CopyStyle
19961 \end_layout
19962
19963 \end_inset
19964
19965  [
19966 \begin_inset Flex Code
19967 status collapsed
19968
19969 \begin_layout Plain Layout
19970 <type>
19971 \end_layout
19972
19973 \end_inset
19974
19975 ] As with paragraph styles, see 
19976 \begin_inset CommandInset ref
19977 LatexCommand ref
19978 reference "subsec:Paragraph-Styles"
19979
19980 \end_inset
19981
19982 .
19983  Note that you need to specify the complete type, e.
19984 \begin_inset space \thinspace{}
19985 \end_inset
19986
19987 g.
19988 \begin_inset space ~
19989 \end_inset
19990
19991
19992 \begin_inset Flex Code
19993 status collapsed
19994
19995 \begin_layout Plain Layout
19996 CopyStyle Flex:<name>
19997 \end_layout
19998
19999 \end_inset
20000
20001 .
20002 \end_layout
20003
20004 \begin_layout Description
20005 \begin_inset Flex Code
20006 status collapsed
20007
20008 \begin_layout Plain Layout
20009 CustomPars
20010 \end_layout
20011
20012 \end_inset
20013
20014  [
20015 \begin_inset Flex Code
20016 status collapsed
20017
20018 \begin_layout Plain Layout
20019
20020 \emph on
20021 0
20022 \end_layout
20023
20024 \end_inset
20025
20026 ,
20027 \begin_inset space \thinspace{}
20028 \end_inset
20029
20030
20031 \begin_inset Flex Code
20032 status collapsed
20033
20034 \begin_layout Plain Layout
20035 1
20036 \end_layout
20037
20038 \end_inset
20039
20040 ] Indicates whether the user may employ the Paragraph Settings dialog to
20041  customize the paragraph.
20042 \end_layout
20043
20044 \begin_layout Description
20045 \begin_inset Flex Code
20046 status collapsed
20047
20048 \begin_layout Plain Layout
20049 Decoration
20050 \end_layout
20051
20052 \end_inset
20053
20054  can be 
20055 \begin_inset Flex Code
20056 status collapsed
20057
20058 \begin_layout Plain Layout
20059 Classic
20060 \end_layout
20061
20062 \end_inset
20063
20064
20065 \begin_inset Flex Code
20066 status collapsed
20067
20068 \begin_layout Plain Layout
20069 Minimalistic
20070 \end_layout
20071
20072 \end_inset
20073
20074 , or 
20075 \begin_inset Flex Code
20076 status collapsed
20077
20078 \begin_layout Plain Layout
20079 Conglomerate
20080 \end_layout
20081
20082 \end_inset
20083
20084 , describing the rendering style used for the inset's frame and buttons.
20085  Footnotes generally use 
20086 \begin_inset Flex Code
20087 status collapsed
20088
20089 \begin_layout Plain Layout
20090 Classic
20091 \end_layout
20092
20093 \end_inset
20094
20095 , ERT insets generally 
20096 \begin_inset Flex Code
20097 status collapsed
20098
20099 \begin_layout Plain Layout
20100 Minimalistic
20101 \end_layout
20102
20103 \end_inset
20104
20105 , and character styles 
20106 \begin_inset Flex Code
20107 status collapsed
20108
20109 \begin_layout Plain Layout
20110 Conglomerate
20111 \end_layout
20112
20113 \end_inset
20114
20115 .
20116 \end_layout
20117
20118 \begin_layout Description
20119 \begin_inset Flex Code
20120 status collapsed
20121
20122 \begin_layout Plain Layout
20123 Display
20124 \end_layout
20125
20126 \end_inset
20127
20128  [
20129 \begin_inset Flex Code
20130 status collapsed
20131
20132 \begin_layout Plain Layout
20133 0
20134 \end_layout
20135
20136 \end_inset
20137
20138 ,
20139 \emph on
20140
20141 \begin_inset space \thinspace{}
20142 \end_inset
20143
20144
20145 \emph default
20146
20147 \begin_inset Flex Code
20148 status collapsed
20149
20150 \begin_layout Plain Layout
20151
20152 \emph on
20153 1
20154 \end_layout
20155
20156 \end_inset
20157
20158 ] Only useful if 
20159 \begin_inset Flex Code
20160 status collapsed
20161
20162 \begin_layout Plain Layout
20163 LatexType
20164 \end_layout
20165
20166 \end_inset
20167
20168  is 
20169 \begin_inset Flex Code
20170 status collapsed
20171
20172 \begin_layout Plain Layout
20173 Environment
20174 \end_layout
20175
20176 \end_inset
20177
20178 .
20179  Indicates whether the environment will stand on its own in the output or
20180  will appear inline with the surrounding text.
20181  If set to false, it is supposed that the \SpecialChar LaTeX
20182  environment ignores white space
20183  (including one newline character) after the 
20184 \begin_inset Flex Code
20185 status collapsed
20186
20187 \begin_layout Plain Layout
20188
20189 \backslash
20190 begin{
20191 \emph on
20192 LatexName
20193 \emph default
20194 }
20195 \end_layout
20196
20197 \end_inset
20198
20199  and 
20200 \begin_inset Flex Code
20201 status collapsed
20202
20203 \begin_layout Plain Layout
20204
20205 \backslash
20206 end{
20207 \emph on
20208 LatexName
20209 \emph default
20210 }
20211 \end_layout
20212
20213 \end_inset
20214
20215  tags.
20216  Default is true.
20217 \change_inserted 731793113 1538674858
20218
20219 \end_layout
20220
20221 \begin_layout Description
20222
20223 \change_inserted 731793113 1538674891
20224 \begin_inset Flex Code
20225 status open
20226
20227 \begin_layout Plain Layout
20228
20229 \change_inserted 731793113 1538674863
20230 EditExternal
20231 \change_unchanged
20232
20233 \end_layout
20234
20235 \end_inset
20236
20237  [
20238 \emph on
20239 0
20240 \emph default
20241 ,1] Allow the contents of the inset to be edited externally (using whatever
20242  editor is defined for the document's output format).
20243 \change_unchanged
20244
20245 \end_layout
20246
20247 \begin_layout Description
20248 \begin_inset Flex Code
20249 status collapsed
20250
20251 \begin_layout Plain Layout
20252 End
20253 \end_layout
20254
20255 \end_inset
20256
20257  Required at the end of the 
20258 \begin_inset Flex Code
20259 status collapsed
20260
20261 \begin_layout Plain Layout
20262 InsetLayout
20263 \end_layout
20264
20265 \end_inset
20266
20267  declarations.
20268 \end_layout
20269
20270 \begin_layout Description
20271 \begin_inset Flex Code
20272 status collapsed
20273
20274 \begin_layout Plain Layout
20275 Font
20276 \end_layout
20277
20278 \end_inset
20279
20280  The font used for both the text body 
20281 \emph on
20282 and
20283 \emph default
20284  the label.
20285  See 
20286 \begin_inset CommandInset ref
20287 LatexCommand ref
20288 reference "subsec:Font-description"
20289
20290 \end_inset
20291
20292 .
20293  Note that defining this font automatically defines the 
20294 \begin_inset Flex Code
20295 status collapsed
20296
20297 \begin_layout Plain Layout
20298 LabelFont
20299 \end_layout
20300
20301 \end_inset
20302
20303  to the same value, so define this first and define 
20304 \begin_inset Flex Code
20305 status collapsed
20306
20307 \begin_layout Plain Layout
20308 LabelFont
20309 \end_layout
20310
20311 \end_inset
20312
20313  later if you want them to be different.
20314 \end_layout
20315
20316 \begin_layout Description
20317 \begin_inset Flex Code
20318 status collapsed
20319
20320 \begin_layout Plain Layout
20321 FixedWidthPreambleEncoding
20322 \end_layout
20323
20324 \end_inset
20325
20326  [
20327 \begin_inset Flex Code
20328 status collapsed
20329
20330 \begin_layout Plain Layout
20331
20332 \emph on
20333 0
20334 \end_layout
20335
20336 \end_inset
20337
20338 ,
20339 \begin_inset space \thinspace{}
20340 \end_inset
20341
20342
20343 \begin_inset Flex Code
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347 1
20348 \end_layout
20349
20350 \end_inset
20351
20352 ] Force a fixed width encoding for the translated contents of 
20353 \begin_inset Flex Code
20354 status collapsed
20355
20356 \begin_layout Plain Layout
20357 BabelPreamble
20358 \end_layout
20359
20360 \end_inset
20361
20362  and 
20363 \begin_inset Flex Code
20364 status collapsed
20365
20366 \begin_layout Plain Layout
20367 LangPreamble
20368 \end_layout
20369
20370 \end_inset
20371
20372  code generated by this layout.
20373  This is needed for special \SpecialChar LaTeX
20374 -packages like 
20375 \family typewriter
20376 listings
20377 \family default
20378  that do not work with variable width encodings such as 
20379 \family sans
20380 utf8
20381 \family default
20382 .
20383  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
20384  backends such as Xe\SpecialChar TeX
20385  or
20386  Lua\SpecialChar TeX
20387  are used.
20388 \end_layout
20389
20390 \begin_layout Description
20391 \begin_inset Flex Code
20392 status collapsed
20393
20394 \begin_layout Plain Layout
20395 ForceLocalFontSwitch
20396 \end_layout
20397
20398 \end_inset
20399
20400  [
20401 \begin_inset Flex Code
20402 status collapsed
20403
20404 \begin_layout Plain Layout
20405
20406 \emph on
20407 0
20408 \end_layout
20409
20410 \end_inset
20411
20412 ,
20413 \begin_inset space \thinspace{}
20414 \end_inset
20415
20416
20417 \begin_inset Flex Code
20418 status collapsed
20419
20420 \begin_layout Plain Layout
20421 1
20422 \end_layout
20423
20424 \end_inset
20425
20426 ] When using babel, always use a local font switch (
20427 \begin_inset Flex Code
20428 status collapsed
20429
20430 \begin_layout Plain Layout
20431
20432 \backslash
20433 foreignlanguage
20434 \end_layout
20435
20436 \end_inset
20437
20438 ), never a global one (such as 
20439 \begin_inset Flex Code
20440 status collapsed
20441
20442 \begin_layout Plain Layout
20443
20444 \backslash
20445 selectlanguage
20446 \end_layout
20447
20448 \end_inset
20449
20450 ).
20451 \end_layout
20452
20453 \begin_layout Description
20454 \begin_inset Flex Code
20455 status collapsed
20456
20457 \begin_layout Plain Layout
20458 ForceLTR
20459 \end_layout
20460
20461 \end_inset
20462
20463  [
20464 \begin_inset Flex Code
20465 status collapsed
20466
20467 \begin_layout Plain Layout
20468
20469 \emph on
20470 0
20471 \end_layout
20472
20473 \end_inset
20474
20475 ,
20476 \begin_inset space \thinspace{}
20477 \end_inset
20478
20479
20480 \begin_inset Flex Code
20481 status collapsed
20482
20483 \begin_layout Plain Layout
20484 1
20485 \end_layout
20486
20487 \end_inset
20488
20489 ] Force the 
20490 \begin_inset Quotes eld
20491 \end_inset
20492
20493 latex
20494 \begin_inset Quotes erd
20495 \end_inset
20496
20497  language, leading to Left-to-Right (Latin) output, e.
20498 \begin_inset space \thinspace{}
20499 \end_inset
20500
20501 g.
20502 \begin_inset space \space{}
20503 \end_inset
20504
20505 in \SpecialChar TeX
20506  code or URL.
20507  A kludge.
20508 \end_layout
20509
20510 \begin_layout Description
20511 \begin_inset Flex Code
20512 status collapsed
20513
20514 \begin_layout Plain Layout
20515 ForceOwnlines
20516 \end_layout
20517
20518 \end_inset
20519
20520  [
20521 \begin_inset Flex Code
20522 status collapsed
20523
20524 \begin_layout Plain Layout
20525
20526 \emph on
20527 0
20528 \end_layout
20529
20530 \end_inset
20531
20532 ,
20533 \begin_inset space \thinspace{}
20534 \end_inset
20535
20536
20537 \begin_inset Flex Code
20538 status collapsed
20539
20540 \begin_layout Plain Layout
20541 1
20542 \end_layout
20543
20544 \end_inset
20545
20546 ] Force a a line break in the \SpecialChar LaTeX
20547  output before the inset starts and after
20548  the inset ends.
20549  This assures the inset itself is output on its own lines, for parsing purposes.
20550 \end_layout
20551
20552 \begin_layout Description
20553 \begin_inset Flex Code
20554 status collapsed
20555
20556 \begin_layout Plain Layout
20557 ForcePlain
20558 \end_layout
20559
20560 \end_inset
20561
20562  [
20563 \begin_inset Flex Code
20564 status collapsed
20565
20566 \begin_layout Plain Layout
20567
20568 \emph on
20569 0
20570 \end_layout
20571
20572 \end_inset
20573
20574 ,
20575 \begin_inset space \thinspace{}
20576 \end_inset
20577
20578
20579 \begin_inset Flex Code
20580 status collapsed
20581
20582 \begin_layout Plain Layout
20583 1
20584 \end_layout
20585
20586 \end_inset
20587
20588 ] Indicates whether the 
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593 PlainLayout
20594 \end_layout
20595
20596 \end_inset
20597
20598  should be used or, instead, the user can change the paragraph style used
20599  in the inset.
20600  Default is false.
20601 \end_layout
20602
20603 \begin_layout Description
20604 \begin_inset Flex Code
20605 status collapsed
20606
20607 \begin_layout Plain Layout
20608 FreeSpacing
20609 \end_layout
20610
20611 \end_inset
20612
20613  [
20614 \begin_inset Flex Code
20615 status collapsed
20616
20617 \begin_layout Plain Layout
20618
20619 \emph on
20620 0
20621 \end_layout
20622
20623 \end_inset
20624
20625 ,
20626 \begin_inset space \thinspace{}
20627 \end_inset
20628
20629
20630 \begin_inset Flex Code
20631 status collapsed
20632
20633 \begin_layout Plain Layout
20634 1
20635 \end_layout
20636
20637 \end_inset
20638
20639 ] As with paragraph styles, see 
20640 \begin_inset CommandInset ref
20641 LatexCommand ref
20642 reference "subsec:Paragraph-Styles"
20643
20644 \end_inset
20645
20646 .
20647 \end_layout
20648
20649 \begin_layout Description
20650 \begin_inset Flex Code
20651 status collapsed
20652
20653 \begin_layout Plain Layout
20654 HTML*
20655 \end_layout
20656
20657 \end_inset
20658
20659  These tags control the XHTML output.
20660  See 
20661 \begin_inset CommandInset ref
20662 LatexCommand ref
20663 reference "sec:Tags-for-XHTML"
20664
20665 \end_inset
20666
20667 .
20668 \end_layout
20669
20670 \begin_layout Description
20671 \begin_inset Flex Code
20672 status collapsed
20673
20674 \begin_layout Plain Layout
20675 InToc
20676 \end_layout
20677
20678 \end_inset
20679
20680  [
20681 \begin_inset Flex Code
20682 status collapsed
20683
20684 \begin_layout Plain Layout
20685
20686 \emph on
20687 0
20688 \end_layout
20689
20690 \end_inset
20691
20692 ,
20693 \begin_inset space \thinspace{}
20694 \end_inset
20695
20696
20697 \begin_inset Flex Code
20698 status collapsed
20699
20700 \begin_layout Plain Layout
20701 1
20702 \end_layout
20703
20704 \end_inset
20705
20706 ] Whether to include the contents of this inset in the strings generated
20707  for the `Outline' pane for all table of contents, regardless of the AddToToc
20708  setting.
20709  One would not, for example, want the content of a footnote in a section
20710  header to be included in the TOC displayed in the outline, but one would
20711  normally want the content of a character style displayed.
20712  Default is false: not to include.
20713 \end_layout
20714
20715 \begin_layout Description
20716 \begin_inset Flex Code
20717 status collapsed
20718
20719 \begin_layout Plain Layout
20720 IsTocCaption
20721 \end_layout
20722
20723 \end_inset
20724
20725  [
20726 \begin_inset Flex Code
20727 status collapsed
20728
20729 \begin_layout Plain Layout
20730
20731 \emph on
20732 0
20733 \end_layout
20734
20735 \end_inset
20736
20737 ,
20738 \begin_inset space \thinspace{}
20739 \end_inset
20740
20741
20742 \begin_inset Flex Code
20743 status collapsed
20744
20745 \begin_layout Plain Layout
20746 1
20747 \end_layout
20748
20749 \end_inset
20750
20751 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20752  of its contents in its item in the table of contents.
20753  Otherwise, only the label appears.
20754 \end_layout
20755
20756 \begin_layout Description
20757 \begin_inset Flex Code
20758 status collapsed
20759
20760 \begin_layout Plain Layout
20761 KeepEmpty
20762 \end_layout
20763
20764 \end_inset
20765
20766  [
20767 \emph on
20768
20769 \begin_inset Flex Code
20770 status collapsed
20771
20772 \begin_layout Plain Layout
20773 0
20774 \end_layout
20775
20776 \end_inset
20777
20778
20779 \emph default
20780 ,
20781 \begin_inset space \thinspace{}
20782 \end_inset
20783
20784
20785 \begin_inset Flex Code
20786 status collapsed
20787
20788 \begin_layout Plain Layout
20789 1
20790 \end_layout
20791
20792 \end_inset
20793
20794 ] As with paragraph styles, see 
20795 \begin_inset CommandInset ref
20796 LatexCommand ref
20797 reference "subsec:Paragraph-Styles"
20798
20799 \end_inset
20800
20801 .
20802 \end_layout
20803
20804 \begin_layout Description
20805 \begin_inset Flex Code
20806 status collapsed
20807
20808 \begin_layout Plain Layout
20809 LabelFont
20810 \end_layout
20811
20812 \end_inset
20813
20814  The font used for the label.
20815  See 
20816 \begin_inset CommandInset ref
20817 LatexCommand ref
20818 reference "subsec:Font-description"
20819
20820 \end_inset
20821
20822 .
20823  Note that this definition can never appear before 
20824 \begin_inset Flex Code
20825 status collapsed
20826
20827 \begin_layout Plain Layout
20828 Font
20829 \end_layout
20830
20831 \end_inset
20832
20833 , lest it be ineffective.
20834 \end_layout
20835
20836 \begin_layout Description
20837 \begin_inset Flex Code
20838 status collapsed
20839
20840 \begin_layout Plain Layout
20841 LabelString
20842 \end_layout
20843
20844 \end_inset
20845
20846  [
20847 \begin_inset Flex Code
20848 status collapsed
20849
20850 \begin_layout Plain Layout
20851 string
20852 \end_layout
20853
20854 \end_inset
20855
20856 =
20857 \begin_inset Quotes erd
20858 \end_inset
20859
20860
20861 \begin_inset Quotes erd
20862 \end_inset
20863
20864 ] What will be displayed on the button or elsewhere as the inset label.
20865  Some inset types (
20866 \begin_inset Flex Code
20867 status collapsed
20868
20869 \begin_layout Plain Layout
20870 \SpecialChar TeX
20871  code
20872 \end_layout
20873
20874 \end_inset
20875
20876  and 
20877 \begin_inset Flex Code
20878 status collapsed
20879
20880 \begin_layout Plain Layout
20881 Branch
20882 \end_layout
20883
20884 \end_inset
20885
20886 ) modify this label on the fly.
20887 \end_layout
20888
20889 \begin_layout Description
20890 \begin_inset Flex Code
20891 status collapsed
20892
20893 \begin_layout Plain Layout
20894 LangPreamble
20895 \end_layout
20896
20897 \end_inset
20898
20899  Language dependent preamble; see 
20900 \begin_inset CommandInset ref
20901 LatexCommand ref
20902 reference "subsec:I18n"
20903
20904 \end_inset
20905
20906 .
20907 \end_layout
20908
20909 \begin_layout Description
20910 \begin_inset Flex Code
20911 status collapsed
20912
20913 \begin_layout Plain Layout
20914 LatexName
20915 \end_layout
20916
20917 \end_inset
20918
20919  [
20920 \begin_inset Flex Code
20921 status collapsed
20922
20923 \begin_layout Plain Layout
20924 <name>
20925 \end_layout
20926
20927 \end_inset
20928
20929 ] The name of the corresponding \SpecialChar LaTeX
20930  stuff.
20931  Either the environment or command name.
20932 \end_layout
20933
20934 \begin_layout Description
20935 \begin_inset Flex Code
20936 status collapsed
20937
20938 \begin_layout Plain Layout
20939 LatexParam
20940 \end_layout
20941
20942 \end_inset
20943
20944  [
20945 \begin_inset Flex Code
20946 status collapsed
20947
20948 \begin_layout Plain Layout
20949 <parameter>
20950 \end_layout
20951
20952 \end_inset
20953
20954 ] The optional parameter for the corresponding 
20955 \begin_inset Flex Code
20956 status collapsed
20957
20958 \begin_layout Plain Layout
20959 LatexName
20960 \end_layout
20961
20962 \end_inset
20963
20964  stuff, including possible bracket pairs like 
20965 \begin_inset Flex Code
20966 status collapsed
20967
20968 \begin_layout Plain Layout
20969 []
20970 \end_layout
20971
20972 \end_inset
20973
20974 .
20975  This parameter cannot be changed from within \SpecialChar LyX
20976  (use 
20977 \begin_inset Flex Code
20978 status collapsed
20979
20980 \begin_layout Plain Layout
20981 Argument
20982 \end_layout
20983
20984 \end_inset
20985
20986  for customizable parameters).
20987  It will be output as is after all \SpecialChar LaTeX
20988  
20989 \begin_inset Flex Code
20990 status collapsed
20991
20992 \begin_layout Plain Layout
20993 Argument
20994 \end_layout
20995
20996 \end_inset
20997
20998 s.
20999 \end_layout
21000
21001 \begin_layout Description
21002 \begin_inset Flex Code
21003 status collapsed
21004
21005 \begin_layout Plain Layout
21006 LatexType
21007 \end_layout
21008
21009 \end_inset
21010
21011  [
21012 \begin_inset Flex Code
21013 status collapsed
21014
21015 \begin_layout Plain Layout
21016 Command, Environment, None
21017 \end_layout
21018
21019 \end_inset
21020
21021 ] How the style should be translated into \SpecialChar LaTeX
21022 .
21023 \begin_inset Foot
21024 status collapsed
21025
21026 \begin_layout Plain Layout
21027 \begin_inset Flex Code
21028 status collapsed
21029
21030 \begin_layout Plain Layout
21031 LatexType
21032 \end_layout
21033
21034 \end_inset
21035
21036  is perhaps a bit misleading, since these rules apply to SGML classes too.
21037  Visit the SGML class files for specific examples.
21038 \end_layout
21039
21040 \end_inset
21041
21042
21043 \end_layout
21044
21045 \begin_deeper
21046 \begin_layout Description
21047 \begin_inset Flex Code
21048 status collapsed
21049
21050 \begin_layout Plain Layout
21051 None
21052 \end_layout
21053
21054 \end_inset
21055
21056  means nothing special
21057 \end_layout
21058
21059 \begin_layout Description
21060 \begin_inset Flex Code
21061 status collapsed
21062
21063 \begin_layout Plain Layout
21064 Command
21065 \end_layout
21066
21067 \end_inset
21068
21069  means 
21070 \begin_inset Flex Code
21071 status collapsed
21072
21073 \begin_layout Plain Layout
21074
21075 \backslash
21076
21077 \emph on
21078 LatexName
21079 \emph default
21080 {\SpecialChar ldots
21081 }
21082 \end_layout
21083
21084 \end_inset
21085
21086
21087 \end_layout
21088
21089 \begin_layout Description
21090 \begin_inset Flex Code
21091 status collapsed
21092
21093 \begin_layout Plain Layout
21094 Environment
21095 \end_layout
21096
21097 \end_inset
21098
21099  means 
21100 \begin_inset Flex Code
21101 status collapsed
21102
21103 \begin_layout Plain Layout
21104
21105 \backslash
21106 begin{
21107 \emph on
21108 LatexName
21109 \emph default
21110 }\SpecialChar ldots
21111
21112 \backslash
21113 end{
21114 \emph on
21115 LatexName
21116 \emph default
21117 }
21118 \end_layout
21119
21120 \end_inset
21121
21122
21123 \end_layout
21124
21125 \begin_layout Standard
21126 Putting the last few things together, the \SpecialChar LaTeX
21127  output will be either: 
21128 \end_layout
21129
21130 \begin_layout LyX-Code
21131
21132 \backslash
21133 LatexName[LatexParam]{\SpecialChar ldots
21134 }
21135 \end_layout
21136
21137 \begin_layout Standard
21138 or: 
21139 \end_layout
21140
21141 \begin_layout LyX-Code
21142
21143 \backslash
21144 begin{LatexName}[LatexParam] \SpecialChar ldots
21145  
21146 \backslash
21147 end{LatexName}
21148 \end_layout
21149
21150 \begin_layout Standard
21151 depending upon the \SpecialChar LaTeX
21152  type.
21153 \end_layout
21154
21155 \end_deeper
21156 \begin_layout Description
21157 \begin_inset Flex Code
21158 status collapsed
21159
21160 \begin_layout Plain Layout
21161 LeftDelim
21162 \end_layout
21163
21164 \end_inset
21165
21166  [
21167 \begin_inset Flex Code
21168 status collapsed
21169
21170 \begin_layout Plain Layout
21171 string
21172 \end_layout
21173
21174 \end_inset
21175
21176 ] A string that is put at the beginning of the layout content.
21177  A line break in the output can be indicated by 
21178 \begin_inset Flex Code
21179 status collapsed
21180
21181 \begin_layout Plain Layout
21182 <br/>
21183 \end_layout
21184
21185 \end_inset
21186
21187 .
21188 \end_layout
21189
21190 \begin_layout Description
21191 \begin_inset Flex Code
21192 status collapsed
21193
21194 \begin_layout Plain Layout
21195 LyxType
21196 \end_layout
21197
21198 \end_inset
21199
21200  Can be 
21201 \begin_inset Flex Code
21202 status collapsed
21203
21204 \begin_layout Plain Layout
21205 charstyle
21206 \end_layout
21207
21208 \end_inset
21209
21210
21211 \begin_inset Flex Code
21212 status collapsed
21213
21214 \begin_layout Plain Layout
21215 custom
21216 \end_layout
21217
21218 \end_inset
21219
21220
21221 \begin_inset Flex Code
21222 status collapsed
21223
21224 \begin_layout Plain Layout
21225 element
21226 \end_layout
21227
21228 \end_inset
21229
21230  or 
21231 \begin_inset Flex Code
21232 status collapsed
21233
21234 \begin_layout Plain Layout
21235 end
21236 \end_layout
21237
21238 \end_inset
21239
21240  (indicating a dummy definition ending definitions of charstyles, etc).
21241  This entry is required in and is only meaningful for Flex insets.
21242  Among other things, it determines on which menu this inset will appear.
21243  Setting 
21244 \begin_inset Flex Code
21245 status collapsed
21246
21247 \begin_layout Plain Layout
21248 LyxType
21249 \end_layout
21250
21251 \end_inset
21252
21253  to 
21254 \begin_inset Flex Code
21255 status collapsed
21256
21257 \begin_layout Plain Layout
21258 charstyle
21259 \end_layout
21260
21261 \end_inset
21262
21263  will automatically set 
21264 \begin_inset Flex Code
21265 status collapsed
21266
21267 \begin_layout Plain Layout
21268 MultiPar
21269 \end_layout
21270
21271 \end_inset
21272
21273  to false and 
21274 \begin_inset Flex Code
21275 status collapsed
21276
21277 \begin_layout Plain Layout
21278 ForcePlain
21279 \end_layout
21280
21281 \end_inset
21282
21283  to true.
21284  
21285 \begin_inset Flex Code
21286 status collapsed
21287
21288 \begin_layout Plain Layout
21289 MultiPar
21290 \end_layout
21291
21292 \end_inset
21293
21294  can be set to true, or 
21295 \begin_inset Flex Code
21296 status collapsed
21297
21298 \begin_layout Plain Layout
21299 ForcePlain
21300 \end_layout
21301
21302 \end_inset
21303
21304  to false, for 
21305 \begin_inset Flex Code
21306 status collapsed
21307
21308 \begin_layout Plain Layout
21309 charstyle
21310 \end_layout
21311
21312 \end_inset
21313
21314  insets by setting it 
21315 \emph on
21316 after
21317 \emph default
21318  you set the 
21319 \begin_inset Flex Code
21320 status collapsed
21321
21322 \begin_layout Plain Layout
21323 LyxType
21324 \end_layout
21325
21326 \end_inset
21327
21328 .
21329 \change_inserted -712698321 1555575738
21330
21331 \end_layout
21332
21333 \begin_layout Description
21334
21335 \change_inserted -712698321 1555575844
21336 \begin_inset Flex Code
21337 status collapsed
21338
21339 \begin_layout Plain Layout
21340
21341 \change_inserted -712698321 1555575740
21342 MenuString
21343 \change_unchanged
21344
21345 \end_layout
21346
21347 \end_inset
21348
21349  
21350 \begin_inset Flex Code
21351 status collapsed
21352
21353 \begin_layout Plain Layout
21354
21355 \change_inserted -712698321 1555575740
21356 [string]
21357 \change_unchanged
21358
21359 \end_layout
21360
21361 \end_inset
21362
21363  A dedicated string for the menu.
21364  You can define an accelerator by appending the respective character to
21365  the string, divided by 
21366 \begin_inset Quotes eld
21367 \end_inset
21368
21369 |
21370 \begin_inset Quotes erd
21371 \end_inset
21372
21373  (e.
21374 \begin_inset space \thinspace{}
21375 \end_inset
21376
21377 g.
21378 \begin_inset space \space{}
21379 \end_inset
21380
21381
21382 \begin_inset Quotes eld
21383 \end_inset
21384
21385
21386 \begin_inset Flex Code
21387 status collapsed
21388
21389 \begin_layout Plain Layout
21390
21391 \change_inserted -712698321 1555575781
21392 My Inset|M
21393 \change_unchanged
21394
21395 \end_layout
21396
21397 \end_inset
21398
21399
21400 \begin_inset Quotes erd
21401 \end_inset
21402
21403 ).
21404  This specification is optional.
21405  If it is not given the inset name as specified in the type declaration
21406  will be used instead for the menu.
21407 \change_unchanged
21408
21409 \end_layout
21410
21411 \begin_layout Description
21412 \begin_inset Flex Code
21413 status collapsed
21414
21415 \begin_layout Plain Layout
21416 MultiPar
21417 \end_layout
21418
21419 \end_inset
21420
21421  [
21422 \begin_inset Flex Code
21423 status collapsed
21424
21425 \begin_layout Plain Layout
21426
21427 \emph on
21428 0
21429 \end_layout
21430
21431 \end_inset
21432
21433 ,
21434 \begin_inset space \thinspace{}
21435 \end_inset
21436
21437
21438 \begin_inset Flex Code
21439 status collapsed
21440
21441 \begin_layout Plain Layout
21442 1
21443 \end_layout
21444
21445 \end_inset
21446
21447 ] Whether multiple paragraphs are permitted in this inset.
21448  This will also set 
21449 \begin_inset Flex Code
21450 status collapsed
21451
21452 \begin_layout Plain Layout
21453 CustomPars
21454 \end_layout
21455
21456 \end_inset
21457
21458  to the same value and 
21459 \begin_inset Flex Code
21460 status collapsed
21461
21462 \begin_layout Plain Layout
21463 ForcePlain
21464 \end_layout
21465
21466 \end_inset
21467
21468  to the opposite value.
21469  These can be reset to other values, if they are used 
21470 \emph on
21471 after
21472 \emph default
21473  
21474 \begin_inset Flex Code
21475 status collapsed
21476
21477 \begin_layout Plain Layout
21478 MultiPar
21479 \end_layout
21480
21481 \end_inset
21482
21483 .
21484  Default is true.
21485 \end_layout
21486
21487 \begin_layout Description
21488 \begin_inset Flex Code
21489 status collapsed
21490
21491 \begin_layout Plain Layout
21492 NeedProtect
21493 \end_layout
21494
21495 \end_inset
21496
21497  [
21498 \begin_inset Flex Code
21499 status collapsed
21500
21501 \begin_layout Plain Layout
21502
21503 \emph on
21504 0
21505 \end_layout
21506
21507 \end_inset
21508
21509 ,
21510 \begin_inset space \thinspace{}
21511 \end_inset
21512
21513
21514 \begin_inset Flex Code
21515 status collapsed
21516
21517 \begin_layout Plain Layout
21518 1
21519 \end_layout
21520
21521 \end_inset
21522
21523 ] Whether fragile commands in this inset should be 
21524 \begin_inset Flex Code
21525 status collapsed
21526
21527 \begin_layout Plain Layout
21528
21529 \backslash
21530 protect
21531 \end_layout
21532
21533 \end_inset
21534
21535 'ed.
21536  (Note: This is 
21537 \emph on
21538 not
21539 \emph default
21540  whether the command should itself be protected.) Default is false.
21541 \change_inserted -712698321 1523633958
21542
21543 \end_layout
21544
21545 \begin_layout Description
21546
21547 \change_inserted -712698321 1552395786
21548 \begin_inset Flex Code
21549 status collapsed
21550
21551 \begin_layout Plain Layout
21552
21553 \change_inserted -712698321 1523633961
21554 NeedCProtect
21555 \change_unchanged
21556
21557 \end_layout
21558
21559 \end_inset
21560
21561  [
21562 \begin_inset Flex Code
21563 status collapsed
21564
21565 \begin_layout Plain Layout
21566
21567 \change_inserted -712698321 1523633958
21568
21569 \emph on
21570 0
21571 \change_unchanged
21572
21573 \end_layout
21574
21575 \end_inset
21576
21577 ,
21578 \begin_inset space \thinspace{}
21579 \end_inset
21580
21581
21582 \begin_inset Flex Code
21583 status collapsed
21584
21585 \begin_layout Plain Layout
21586
21587 \change_inserted -712698321 1523633958
21588 1
21589 \change_unchanged
21590
21591 \end_layout
21592
21593 \end_inset
21594
21595 ] This causes macros that contain this inset to be protected with 
21596 \begin_inset Flex Code
21597 status collapsed
21598
21599 \begin_layout Plain Layout
21600
21601 \change_inserted -712698321 1523634038
21602
21603 \backslash
21604 cprotect
21605 \change_unchanged
21606
21607 \end_layout
21608
21609 \end_inset
21610
21611  (cf.
21612  package 
21613 \family sans
21614 cprotect
21615 \family default
21616 ) if necessary and thus allows (some) verbatim stuff in macros.
21617  Default is false.
21618 \end_layout
21619
21620 \begin_layout Description
21621
21622 \change_inserted -712698321 1555579651
21623 \begin_inset Flex Code
21624 status collapsed
21625
21626 \begin_layout Plain Layout
21627
21628 \change_inserted -712698321 1552395787
21629 NeedMBoxProtect
21630 \change_unchanged
21631
21632 \end_layout
21633
21634 \end_inset
21635
21636  [
21637 \begin_inset Flex Code
21638 status collapsed
21639
21640 \begin_layout Plain Layout
21641
21642 \change_inserted -712698321 1552395787
21643
21644 \emph on
21645 0
21646 \change_unchanged
21647
21648 \end_layout
21649
21650 \end_inset
21651
21652 ,
21653 \begin_inset space \thinspace{}
21654 \end_inset
21655
21656
21657 \begin_inset Flex Code
21658 status collapsed
21659
21660 \begin_layout Plain Layout
21661
21662 \change_inserted -712698321 1552395787
21663 1
21664 \change_unchanged
21665
21666 \end_layout
21667
21668 \end_inset
21669
21670 ] Whether specific commands in this inset (such as 
21671 \begin_inset Flex Code
21672 status collapsed
21673
21674 \begin_layout Plain Layout
21675
21676 \change_inserted -712698321 1552395787
21677
21678 \backslash
21679 cite
21680 \change_unchanged
21681
21682 \end_layout
21683
21684 \end_inset
21685
21686  and 
21687 \begin_inset Flex Code
21688 status collapsed
21689
21690 \begin_layout Plain Layout
21691
21692 \change_inserted -712698321 1552395787
21693
21694 \backslash
21695 ref
21696 \change_unchanged
21697
21698 \end_layout
21699
21700 \end_inset
21701
21702 ) should be protected in an 
21703 \begin_inset Flex Code
21704 status collapsed
21705
21706 \begin_layout Plain Layout
21707
21708 \change_inserted -712698321 1552395787
21709
21710 \backslash
21711 mbox
21712 \change_unchanged
21713
21714 \end_layout
21715
21716 \end_inset
21717
21718 .
21719  This is particularly needed for insets that draw on 
21720 \family sans
21721 ulem
21722 \family default
21723  or 
21724 \family sans
21725 soul
21726 \family default
21727  commands which parse their content in complex ways.
21728  Default is false.
21729 \end_layout
21730
21731 \begin_layout Description
21732
21733 \change_inserted -712698321 1555579742
21734 \begin_inset Flex Code
21735 status collapsed
21736
21737 \begin_layout Plain Layout
21738
21739 \change_inserted -712698321 1555579658
21740 NewlineCmd
21741 \change_unchanged
21742
21743 \end_layout
21744
21745 \end_inset
21746
21747  
21748 \begin_inset Flex Code
21749 status collapsed
21750
21751 \begin_layout Plain Layout
21752
21753 \change_inserted -712698321 1555579651
21754 [string]
21755 \change_unchanged
21756
21757 \end_layout
21758
21759 \end_inset
21760
21761  Option to define a different command (from the default 
21762 \begin_inset Flex Code
21763 status collapsed
21764
21765 \begin_layout Plain Layout
21766
21767 \change_inserted -712698321 1555579742
21768
21769 \backslash
21770
21771 \backslash
21772
21773 \change_unchanged
21774
21775 \end_layout
21776
21777 \end_inset
21778
21779 ) to be used for line breaks.
21780  The initial backslash must not be specified.
21781 \change_unchanged
21782
21783 \end_layout
21784
21785 \begin_layout Description
21786 \begin_inset Flex Code
21787 status collapsed
21788
21789 \begin_layout Plain Layout
21790 NoInsetLayout
21791 \end_layout
21792
21793 \end_inset
21794
21795  [
21796 \begin_inset Flex Code
21797 status collapsed
21798
21799 \begin_layout Plain Layout
21800 <layout>
21801 \end_layout
21802
21803 \end_inset
21804
21805 ] Deletes an existing 
21806 \begin_inset Flex Code
21807 status collapsed
21808
21809 \begin_layout Plain Layout
21810 InsetLayout
21811 \end_layout
21812
21813 \end_inset
21814
21815 .
21816 \end_layout
21817
21818 \begin_layout Description
21819 \begin_inset Flex Code
21820 status collapsed
21821
21822 \begin_layout Plain Layout
21823 ObsoletedBy
21824 \end_layout
21825
21826 \end_inset
21827
21828  [
21829 \begin_inset Flex Code
21830 status collapsed
21831
21832 \begin_layout Plain Layout
21833 <layout>
21834 \end_layout
21835
21836 \end_inset
21837
21838 ] Name of an 
21839 \begin_inset Flex Code
21840 status collapsed
21841
21842 \begin_layout Plain Layout
21843 InsetLayout
21844 \end_layout
21845
21846 \end_inset
21847
21848  that has replaced this 
21849 \begin_inset Flex Code
21850 status collapsed
21851
21852 \begin_layout Plain Layout
21853 InsetLayout
21854 \end_layout
21855
21856 \end_inset
21857
21858 .
21859  This is used to rename an 
21860 \begin_inset Flex Code
21861 status collapsed
21862
21863 \begin_layout Plain Layout
21864 InsetLayout
21865 \end_layout
21866
21867 \end_inset
21868
21869 , while keeping backward compatibility.
21870 \change_inserted -712698321 1559491850
21871
21872 \end_layout
21873
21874 \begin_layout Description
21875
21876 \change_inserted -712698321 1559492002
21877 \begin_inset Flex Code
21878 status collapsed
21879
21880 \begin_layout Plain Layout
21881
21882 \change_inserted -712698321 1559491854
21883 ParbreakIgnored
21884 \change_unchanged
21885
21886 \end_layout
21887
21888 \end_inset
21889
21890  [
21891 \begin_inset Flex Code
21892 status collapsed
21893
21894 \begin_layout Plain Layout
21895
21896 \change_inserted -712698321 1559491850
21897
21898 \emph on
21899 0
21900 \change_unchanged
21901
21902 \end_layout
21903
21904 \end_inset
21905
21906 ,
21907 \begin_inset space \thinspace{}
21908 \end_inset
21909
21910
21911 \begin_inset Flex Code
21912 status collapsed
21913
21914 \begin_layout Plain Layout
21915
21916 \change_inserted -712698321 1559491850
21917 1
21918 \change_unchanged
21919
21920 \end_layout
21921
21922 \end_inset
21923
21924 ] If this is set to 
21925 \begin_inset Flex Code
21926 status collapsed
21927
21928 \begin_layout Plain Layout
21929
21930 \change_inserted -712698321 1559491881
21931 1
21932 \change_unchanged
21933
21934 \end_layout
21935
21936 \end_inset
21937
21938 , paragraph breaks will be ignored in the output.
21939  This might be useful for insets where the content should be alignable on
21940  different lines only in the \SpecialChar LyX
21941  workarea, without any effect in the output.
21942 \change_unchanged
21943
21944 \end_layout
21945
21946 \begin_layout Description
21947 \begin_inset Flex Code
21948 status collapsed
21949
21950 \begin_layout Plain Layout
21951 ParbreakIsNewline
21952 \end_layout
21953
21954 \end_inset
21955
21956  [
21957 \begin_inset Flex Code
21958 status collapsed
21959
21960 \begin_layout Plain Layout
21961
21962 \emph on
21963 0
21964 \end_layout
21965
21966 \end_inset
21967
21968 ,
21969 \begin_inset space \thinspace{}
21970 \end_inset
21971
21972
21973 \begin_inset Flex Code
21974 status collapsed
21975
21976 \begin_layout Plain Layout
21977 1
21978 \end_layout
21979
21980 \end_inset
21981
21982 ] As with paragraph styles, see 
21983 \begin_inset CommandInset ref
21984 LatexCommand ref
21985 reference "subsec:Paragraph-Styles"
21986
21987 \end_inset
21988
21989 .
21990  Default is false.
21991 \end_layout
21992
21993 \begin_layout Description
21994 \begin_inset Flex Code
21995 status collapsed
21996
21997 \begin_layout Plain Layout
21998 PassThru
21999 \end_layout
22000
22001 \end_inset
22002
22003  [
22004 \begin_inset Flex Code
22005 status collapsed
22006
22007 \begin_layout Plain Layout
22008
22009 \emph on
22010 0
22011 \end_layout
22012
22013 \end_inset
22014
22015 ,
22016 \begin_inset space \thinspace{}
22017 \end_inset
22018
22019
22020 \begin_inset Flex Code
22021 status collapsed
22022
22023 \begin_layout Plain Layout
22024 1
22025 \end_layout
22026
22027 \end_inset
22028
22029 ] As with paragraph styles, see 
22030 \begin_inset CommandInset ref
22031 LatexCommand ref
22032 reference "subsec:Paragraph-Styles"
22033
22034 \end_inset
22035
22036 .
22037  Default is false.
22038 \end_layout
22039
22040 \begin_layout Description
22041 \begin_inset Flex Code
22042 status collapsed
22043
22044 \begin_layout Plain Layout
22045 Preamble
22046 \end_layout
22047
22048 \end_inset
22049
22050  As with paragraph styles, see 
22051 \begin_inset CommandInset ref
22052 LatexCommand ref
22053 reference "subsec:Paragraph-Styles"
22054
22055 \end_inset
22056
22057 .
22058 \end_layout
22059
22060 \begin_layout Description
22061 \begin_inset Flex Code
22062 status collapsed
22063
22064 \begin_layout Plain Layout
22065 RefPrefix
22066 \end_layout
22067
22068 \end_inset
22069
22070  [
22071 \begin_inset Flex Code
22072 status collapsed
22073
22074 \begin_layout Plain Layout
22075 string
22076 \end_layout
22077
22078 \end_inset
22079
22080 ] The prefix to use when creating labels referring to insets of this type.
22081  This allows the use of formatted references.
22082 \end_layout
22083
22084 \begin_layout Description
22085 \begin_inset Flex Code
22086 status collapsed
22087
22088 \begin_layout Plain Layout
22089 Requires
22090 \end_layout
22091
22092 \end_inset
22093
22094  [
22095 \begin_inset Flex Code
22096 status collapsed
22097
22098 \begin_layout Plain Layout
22099 string
22100 \end_layout
22101
22102 \end_inset
22103
22104 ] As with paragraph styles, see 
22105 \begin_inset CommandInset ref
22106 LatexCommand ref
22107 reference "subsec:Paragraph-Styles"
22108
22109 \end_inset
22110
22111 .
22112 \end_layout
22113
22114 \begin_layout Description
22115 \begin_inset Flex Code
22116 status collapsed
22117
22118 \begin_layout Plain Layout
22119 ResetArgs
22120 \end_layout
22121
22122 \end_inset
22123
22124  [
22125 \begin_inset Flex Code
22126 status collapsed
22127
22128 \begin_layout Plain Layout
22129
22130 \emph on
22131 0
22132 \end_layout
22133
22134 \end_inset
22135
22136 ,
22137 \begin_inset space \thinspace{}
22138 \end_inset
22139
22140
22141 \begin_inset Flex Code
22142 status collapsed
22143
22144 \begin_layout Plain Layout
22145 1
22146 \end_layout
22147
22148 \end_inset
22149
22150 ] Resets the \SpecialChar LaTeX
22151  arguments of this layout (as defined via the 
22152 \begin_inset Flex Code
22153 status collapsed
22154
22155 \begin_layout Plain Layout
22156 Argument
22157 \end_layout
22158
22159 \end_inset
22160
22161  tag).
22162  This is useful if you have copied a style via 
22163 \begin_inset Flex Code
22164 status collapsed
22165
22166 \begin_layout Plain Layout
22167 CopyStyle
22168 \end_layout
22169
22170 \end_inset
22171
22172 , but you do not want to inherit its (required and optional) arguments.
22173 \end_layout
22174
22175 \begin_layout Description
22176 \begin_inset Flex Code
22177 status collapsed
22178
22179 \begin_layout Plain Layout
22180 ResetsFont
22181 \end_layout
22182
22183 \end_inset
22184
22185  [
22186 \begin_inset Flex Code
22187 status collapsed
22188
22189 \begin_layout Plain Layout
22190
22191 \emph on
22192 0
22193 \end_layout
22194
22195 \end_inset
22196
22197 ,
22198 \begin_inset space \thinspace{}
22199 \end_inset
22200
22201
22202 \begin_inset Flex Code
22203 status collapsed
22204
22205 \begin_layout Plain Layout
22206 1
22207 \end_layout
22208
22209 \end_inset
22210
22211
22212 \change_inserted -712698321 1597733473
22213 If 
22214 \begin_inset Flex Code
22215 status collapsed
22216
22217 \begin_layout Plain Layout
22218
22219 \change_inserted -712698321 1597732178
22220 1
22221 \change_unchanged
22222
22223 \end_layout
22224
22225 \end_inset
22226
22227 , font changes are redone inside the respective inset (in the output) even
22228  if the inset itself is in the context of this font changes (e.
22229 \begin_inset space \thinspace{}
22230 \end_inset
22231
22232 g., 
22233 \begin_inset Flex Code
22234 status collapsed
22235
22236 \begin_layout Plain Layout
22237
22238 \change_inserted -712698321 1597733683
22239
22240 \backslash
22241 textbf{Sourrounding text 
22242 \backslash
22243 myinset{
22244 \backslash
22245 textbf{content}}\SpecialChar ldots
22246 }
22247 \change_unchanged
22248
22249 \end_layout
22250
22251 \end_inset
22252
22253  rather than 
22254 \begin_inset Flex Code
22255 status collapsed
22256
22257 \begin_layout Plain Layout
22258
22259 \change_inserted -712698321 1597733686
22260
22261 \backslash
22262 textbf{Sourrounding text 
22263 \backslash
22264 myinset{content}\SpecialChar ldots
22265 }
22266 \change_unchanged
22267
22268 \end_layout
22269
22270 \end_inset
22271
22272 .
22273  Setting this makes sense for commands that internally reset font settings
22274  (e.
22275 \begin_inset space \thinspace{}
22276 \end_inset
22277
22278 g., footnotes).
22279  Note that wrongly setting this might lead to unwanted result (e.
22280 \begin_inset space \thinspace{}
22281 \end_inset
22282
22283 g., with 
22284 \begin_inset Flex Code
22285 status collapsed
22286
22287 \begin_layout Plain Layout
22288
22289 \change_inserted -712698321 1597733688
22290
22291 \backslash
22292 emph{Sourrounding text 
22293 \backslash
22294 myinset{
22295 \backslash
22296 emph{content}}\SpecialChar ldots
22297 }
22298 \change_unchanged
22299
22300 \end_layout
22301
22302 \end_inset
22303
22304 , content is upright, as 
22305 \begin_inset Flex Code
22306 status collapsed
22307
22308 \begin_layout Plain Layout
22309
22310 \change_inserted -712698321 1597733278
22311
22312 \backslash
22313 emph
22314 \change_unchanged
22315
22316 \end_layout
22317
22318 \end_inset
22319
22320  toggles.
22321  
22322 \change_deleted -712698321 1597733283
22323 Whether this inset should use the font of its surrounding environment or
22324  uses its own.
22325  
22326 \change_unchanged
22327 Default is 
22328 \change_deleted -712698321 1597733290
22329 false
22330 \change_inserted -712698321 1597733290
22331
22332 \begin_inset Flex Code
22333 status collapsed
22334
22335 \begin_layout Plain Layout
22336
22337 \change_inserted -712698321 1597733292
22338 0
22339 \change_unchanged
22340
22341 \end_layout
22342
22343 \end_inset
22344
22345
22346 \change_unchanged
22347
22348 \change_deleted -712698321 1597733327
22349 use the font of the surrounding environment
22350 \change_inserted -712698321 1597733343
22351 font changes are not redone inside the inset
22352 \change_unchanged
22353 .
22354 \end_layout
22355
22356 \begin_layout Description
22357 \begin_inset Flex Code
22358 status collapsed
22359
22360 \begin_layout Plain Layout
22361 RightDelim
22362 \end_layout
22363
22364 \end_inset
22365
22366  [
22367 \begin_inset Flex Code
22368 status collapsed
22369
22370 \begin_layout Plain Layout
22371 string
22372 \end_layout
22373
22374 \end_inset
22375
22376 ] A string that is put at the end of the layout content.
22377  A line break in the output can be indicated by 
22378 \begin_inset Flex Code
22379 status collapsed
22380
22381 \begin_layout Plain Layout
22382 <br/>
22383 \end_layout
22384
22385 \end_inset
22386
22387 .
22388 \end_layout
22389
22390 \begin_layout Description
22391 \begin_inset Flex Code
22392 status collapsed
22393
22394 \begin_layout Plain Layout
22395 Spellcheck
22396 \end_layout
22397
22398 \end_inset
22399
22400  [
22401 \begin_inset Flex Code
22402 status collapsed
22403
22404 \begin_layout Plain Layout
22405 0
22406 \end_layout
22407
22408 \end_inset
22409
22410 ,
22411 \begin_inset space \thinspace{}
22412 \end_inset
22413
22414
22415 \begin_inset Flex Code
22416 status collapsed
22417
22418 \begin_layout Plain Layout
22419
22420 \emph on
22421 1
22422 \end_layout
22423
22424 \end_inset
22425
22426 ] Allow spell-checking the contents of this inset.
22427  Default is true.
22428 \end_layout
22429
22430 \begin_layout Subsection
22431 Counters
22432 \begin_inset CommandInset label
22433 LatexCommand label
22434 name "subsec:Counters"
22435
22436 \end_inset
22437
22438
22439 \end_layout
22440
22441 \begin_layout Standard
22442 It is necessary to define the counters (
22443 \begin_inset Flex Noun
22444 status collapsed
22445
22446 \begin_layout Plain Layout
22447 chapter
22448 \end_layout
22449
22450 \end_inset
22451
22452
22453 \begin_inset Flex Noun
22454 status collapsed
22455
22456 \begin_layout Plain Layout
22457 figure
22458 \end_layout
22459
22460 \end_inset
22461
22462 , \SpecialChar ldots
22463 ) in the text class itself.
22464  The standard counters are defined in the file 
22465 \begin_inset Flex Code
22466 status collapsed
22467
22468 \begin_layout Plain Layout
22469 stdcounters.inc
22470 \end_layout
22471
22472 \end_inset
22473
22474 , so you may have to do no more than add
22475 \end_layout
22476
22477 \begin_layout LyX-Code
22478 Input stdcounters.inc
22479 \end_layout
22480
22481 \begin_layout Standard
22482 to your layout file to get them to work.
22483  But if you want to define custom counters, then you can do so.
22484  The counter declaration must begin with:
22485 \end_layout
22486
22487 \begin_layout LyX-Code
22488 Counter CounterName
22489 \end_layout
22490
22491 \begin_layout Standard
22492 where of course `
22493 \begin_inset Flex Code
22494 status collapsed
22495
22496 \begin_layout Plain Layout
22497 CounterName
22498 \end_layout
22499
22500 \end_inset
22501
22502 ' is replaced by the name of the counter.
22503  And it must end with 
22504 \begin_inset Quotes eld
22505 \end_inset
22506
22507
22508 \begin_inset Flex Code
22509 status collapsed
22510
22511 \begin_layout Plain Layout
22512 End
22513 \end_layout
22514
22515 \end_inset
22516
22517
22518 \begin_inset Quotes erd
22519 \end_inset
22520
22521 .
22522  The following parameters can also be used:
22523 \end_layout
22524
22525 \begin_layout Description
22526 \begin_inset Flex Code
22527 status collapsed
22528
22529 \begin_layout Plain Layout
22530 InitialValue
22531 \end_layout
22532
22533 \end_inset
22534
22535  [
22536 \begin_inset Flex Code
22537 status collapsed
22538
22539 \begin_layout Plain Layout
22540 int=1
22541 \end_layout
22542
22543 \end_inset
22544
22545 ] Sets the initial value for the counter, to which it will be reset whenever
22546  that happens.
22547  Normally, one will want the default, 1.
22548 \end_layout
22549
22550 \begin_layout Description
22551 \begin_inset Flex Code
22552 status collapsed
22553
22554 \begin_layout Plain Layout
22555 LabelString
22556 \end_layout
22557
22558 \end_inset
22559
22560  [
22561 \begin_inset Flex Code
22562 status collapsed
22563
22564 \begin_layout Plain Layout
22565 string
22566 \end_layout
22567
22568 \end_inset
22569
22570 =
22571 \begin_inset Quotes erd
22572 \end_inset
22573
22574
22575 \begin_inset Quotes erd
22576 \end_inset
22577
22578 ] When defined, this string defines how the counter is displayed.
22579  Setting this value sets 
22580 \begin_inset Flex Code
22581 status collapsed
22582
22583 \begin_layout Plain Layout
22584 LabelStringAppendix
22585 \end_layout
22586
22587 \end_inset
22588
22589  to the same value.
22590  The following special constructs can be used in the string:
22591 \end_layout
22592
22593 \begin_deeper
22594 \begin_layout Itemize
22595 \begin_inset Flex Code
22596 status collapsed
22597
22598 \begin_layout Plain Layout
22599
22600 \backslash
22601 thecounter
22602 \end_layout
22603
22604 \end_inset
22605
22606  will be replaced by the expansion of the 
22607 \begin_inset Flex Code
22608 status collapsed
22609
22610 \begin_layout Plain Layout
22611 LabelString
22612 \end_layout
22613
22614 \end_inset
22615
22616  (or 
22617 \begin_inset Flex Code
22618 status collapsed
22619
22620 \begin_layout Plain Layout
22621 LabelStringAppendix
22622 \end_layout
22623
22624 \end_inset
22625
22626 ) of the counter 
22627 \begin_inset Flex Code
22628 status collapsed
22629
22630 \begin_layout Plain Layout
22631 counter
22632 \end_layout
22633
22634 \end_inset
22635
22636 .
22637  
22638 \end_layout
22639
22640 \begin_layout Itemize
22641 counter values can be expressed using \SpecialChar LaTeX
22642 -like macros
22643 \begin_inset Newline newline
22644 \end_inset
22645
22646
22647 \begin_inset Flex Code
22648 status collapsed
22649
22650 \begin_layout Plain Layout
22651
22652 \backslash
22653
22654 \emph on
22655 numbertype
22656 \emph default
22657 {
22658 \emph on
22659 counter
22660 \emph default
22661 }
22662 \end_layout
22663
22664 \end_inset
22665
22666 , where 
22667 \begin_inset Flex Code
22668 status collapsed
22669
22670 \begin_layout Plain Layout
22671
22672 \emph on
22673 numbertype
22674 \end_layout
22675
22676 \end_inset
22677
22678  can be:
22679 \begin_inset Foot
22680 status collapsed
22681
22682 \begin_layout Plain Layout
22683
22684 \family roman
22685 \series medium
22686 \shape up
22687 \size normal
22688 \emph off
22689 \bar no
22690 \noun off
22691 \color none
22692 Actually, the situation is a bit more complicated: any
22693 \family default
22694 \series default
22695 \shape default
22696 \emph default
22697 \bar default
22698  
22699 \size default
22700 \emph on
22701 \noun default
22702 \color inherit
22703 numbertype
22704 \family roman
22705 \series medium
22706 \shape up
22707 \size normal
22708 \emph off
22709 \bar no
22710 \noun off
22711  other than those described below will produce arabic numerals.
22712  It would not be surprising to see this change in the future.
22713 \end_layout
22714
22715 \end_inset
22716
22717  
22718 \begin_inset Flex Code
22719 status collapsed
22720
22721 \begin_layout Plain Layout
22722 arabic
22723 \end_layout
22724
22725 \end_inset
22726
22727 : 1, 2, 3,\SpecialChar ldots
22728
22729 \begin_inset Flex Code
22730 status collapsed
22731
22732 \begin_layout Plain Layout
22733 alph
22734 \end_layout
22735
22736 \end_inset
22737
22738  for lower-case letters: a, b, c, \SpecialChar ldots
22739
22740 \begin_inset Flex Code
22741 status collapsed
22742
22743 \begin_layout Plain Layout
22744 Alph
22745 \end_layout
22746
22747 \end_inset
22748
22749  for upper-case letters: A, B, C, \SpecialChar ldots
22750
22751 \begin_inset Flex Code
22752 status collapsed
22753
22754 \begin_layout Plain Layout
22755 roman
22756 \end_layout
22757
22758 \end_inset
22759
22760  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
22761
22762 \begin_inset Flex Code
22763 status collapsed
22764
22765 \begin_layout Plain Layout
22766 Roman
22767 \end_layout
22768
22769 \end_inset
22770
22771  for upper-case roman numerals: I, II, III\SpecialChar ldots
22772
22773 \begin_inset Flex Code
22774 status collapsed
22775
22776 \begin_layout Plain Layout
22777 hebrew
22778 \end_layout
22779
22780 \end_inset
22781
22782  for hebrew numerals.
22783 \end_layout
22784
22785 \end_deeper
22786 \begin_layout Standard
22787 If LabelString is not defined, a default value is constructed as follows:
22788  if the counter has a 
22789 \change_deleted 731793113 1604355218
22790 master
22791 \change_inserted 731793113 1604355221
22792 parent
22793 \change_unchanged
22794  counter 
22795 \begin_inset Flex Code
22796 status collapsed
22797
22798 \begin_layout Plain Layout
22799
22800 \change_deleted 731793113 1604355223
22801 master
22802 \change_inserted 731793113 1604355226
22803 parent
22804 \change_unchanged
22805
22806 \end_layout
22807
22808 \end_inset
22809
22810  (defined via 
22811 \begin_inset Flex Code
22812 status collapsed
22813
22814 \begin_layout Plain Layout
22815 Within
22816 \end_layout
22817
22818 \end_inset
22819
22820 ), the string
22821 \begin_inset Newline newline
22822 \end_inset
22823
22824
22825 \begin_inset Flex Code
22826 status collapsed
22827
22828 \begin_layout Plain Layout
22829
22830 \backslash
22831 the
22832 \change_inserted 731793113 1604355228
22833 parent
22834 \change_deleted 731793113 1604355230
22835 master
22836 \change_unchanged
22837 .
22838 \backslash
22839 arabic{counter}
22840 \end_layout
22841
22842 \end_inset
22843
22844  is used; otherwise the string 
22845 \begin_inset Flex Code
22846 status collapsed
22847
22848 \begin_layout Plain Layout
22849
22850 \backslash
22851 arabic{counter}
22852 \end_layout
22853
22854 \end_inset
22855
22856  is used.
22857 \end_layout
22858
22859 \begin_layout Description
22860 \begin_inset Flex Code
22861 status collapsed
22862
22863 \begin_layout Plain Layout
22864 LabelStringAppendix
22865 \end_layout
22866
22867 \end_inset
22868
22869  [
22870 \begin_inset Flex Code
22871 status collapsed
22872
22873 \begin_layout Plain Layout
22874 string
22875 \end_layout
22876
22877 \end_inset
22878
22879 =
22880 \begin_inset Quotes erd
22881 \end_inset
22882
22883
22884 \begin_inset Quotes erd
22885 \end_inset
22886
22887 ] Same as 
22888 \begin_inset Flex Code
22889 status collapsed
22890
22891 \begin_layout Plain Layout
22892 LabelString
22893 \end_layout
22894
22895 \end_inset
22896
22897 , but for use in the Appendix.
22898 \end_layout
22899
22900 \begin_layout Description
22901 \begin_inset Flex Code
22902 status collapsed
22903
22904 \begin_layout Plain Layout
22905 PrettyFormat
22906 \end_layout
22907
22908 \end_inset
22909
22910  [
22911 \begin_inset Flex Code
22912 status collapsed
22913
22914 \begin_layout Plain Layout
22915 string
22916 \end_layout
22917
22918 \end_inset
22919
22920 =
22921 \begin_inset Quotes erd
22922 \end_inset
22923
22924
22925 \begin_inset Quotes erd
22926 \end_inset
22927
22928 ] A format for use with formatted references to this counter.
22929  For example, one might want to have references to section numbers appear
22930  as 
22931 \begin_inset Quotes eld
22932 \end_inset
22933
22934 Section 2.4
22935 \begin_inset Quotes erd
22936 \end_inset
22937
22938 .
22939  The string should contain 
22940 \begin_inset Quotes eld
22941 \end_inset
22942
22943 ##
22944 \begin_inset Quotes erd
22945 \end_inset
22946
22947 .
22948  This will be replaced by the counter number itself.
22949  So, for sections, it would be: Section ##.
22950 \end_layout
22951
22952 \begin_layout Description
22953 \begin_inset Flex Code
22954 status collapsed
22955
22956 \begin_layout Plain Layout
22957 Within
22958 \end_layout
22959
22960 \end_inset
22961
22962  [
22963 \begin_inset Flex Code
22964 status collapsed
22965
22966 \begin_layout Plain Layout
22967 string
22968 \end_layout
22969
22970 \end_inset
22971
22972 =
22973 \begin_inset Quotes erd
22974 \end_inset
22975
22976
22977 \begin_inset Quotes erd
22978 \end_inset
22979
22980 ] If this is set to the name of another counter, the present counter will
22981  be reset every time the other one is increased.
22982  For example, 
22983 \begin_inset Flex Code
22984 status collapsed
22985
22986 \begin_layout Plain Layout
22987 subsection
22988 \end_layout
22989
22990 \end_inset
22991
22992  is numbered inside 
22993 \begin_inset Flex Code
22994 status collapsed
22995
22996 \begin_layout Plain Layout
22997 section
22998 \end_layout
22999
23000 \end_inset
23001
23002 .
23003 \end_layout
23004
23005 \begin_layout Subsection
23006 Font description
23007 \begin_inset CommandInset label
23008 LatexCommand label
23009 name "subsec:Font-description"
23010
23011 \end_inset
23012
23013
23014 \end_layout
23015
23016 \begin_layout Standard
23017 A font description looks like this:
23018 \end_layout
23019
23020 \begin_layout LyX-Code
23021 Font 
23022 \family roman
23023 \emph on
23024 or
23025 \family default
23026 \emph default
23027  LabelFont
23028 \emph on
23029  
23030 \family roman
23031 or
23032 \family default
23033 \emph default
23034  DefaultFont
23035 \end_layout
23036
23037 \begin_layout LyX-Code
23038  ...
23039 \end_layout
23040
23041 \begin_layout LyX-Code
23042 EndFont
23043 \end_layout
23044
23045 \begin_layout Standard
23046 The following commands are available:
23047 \end_layout
23048
23049 \begin_layout Description
23050 \begin_inset Flex Code
23051 status collapsed
23052
23053 \begin_layout Plain Layout
23054 Color
23055 \end_layout
23056
23057 \end_inset
23058
23059  [
23060 \begin_inset Flex Code
23061 status collapsed
23062
23063 \begin_layout Plain Layout
23064
23065 \emph on
23066 none
23067 \end_layout
23068
23069 \end_inset
23070
23071
23072 \begin_inset Flex Code
23073 status collapsed
23074
23075 \begin_layout Plain Layout
23076 black
23077 \end_layout
23078
23079 \end_inset
23080
23081
23082 \begin_inset Flex Code
23083 status collapsed
23084
23085 \begin_layout Plain Layout
23086 white
23087 \end_layout
23088
23089 \end_inset
23090
23091
23092 \begin_inset Flex Code
23093 status collapsed
23094
23095 \begin_layout Plain Layout
23096 red
23097 \end_layout
23098
23099 \end_inset
23100
23101
23102 \begin_inset Flex Code
23103 status collapsed
23104
23105 \begin_layout Plain Layout
23106 green
23107 \end_layout
23108
23109 \end_inset
23110
23111
23112 \begin_inset Flex Code
23113 status collapsed
23114
23115 \begin_layout Plain Layout
23116 blue
23117 \end_layout
23118
23119 \end_inset
23120
23121
23122 \begin_inset Flex Code
23123 status collapsed
23124
23125 \begin_layout Plain Layout
23126 cyan
23127 \end_layout
23128
23129 \end_inset
23130
23131
23132 \begin_inset Flex Code
23133 status collapsed
23134
23135 \begin_layout Plain Layout
23136 magenta
23137 \end_layout
23138
23139 \end_inset
23140
23141
23142 \begin_inset Flex Code
23143 status collapsed
23144
23145 \begin_layout Plain Layout
23146 yellow
23147 \end_layout
23148
23149 \end_inset
23150
23151
23152 \begin_inset Flex Code
23153 status collapsed
23154
23155 \begin_layout Plain Layout
23156 brown
23157 \end_layout
23158
23159 \end_inset
23160
23161
23162 \begin_inset Flex Code
23163 status collapsed
23164
23165 \begin_layout Plain Layout
23166 darkgray
23167 \end_layout
23168
23169 \end_inset
23170
23171
23172 \begin_inset Flex Code
23173 status collapsed
23174
23175 \begin_layout Plain Layout
23176 gray
23177 \end_layout
23178
23179 \end_inset
23180
23181
23182 \begin_inset Flex Code
23183 status collapsed
23184
23185 \begin_layout Plain Layout
23186 lightgray
23187 \end_layout
23188
23189 \end_inset
23190
23191
23192 \begin_inset Flex Code
23193 status collapsed
23194
23195 \begin_layout Plain Layout
23196 lime
23197 \end_layout
23198
23199 \end_inset
23200
23201
23202 \begin_inset Flex Code
23203 status collapsed
23204
23205 \begin_layout Plain Layout
23206 orange
23207 \end_layout
23208
23209 \end_inset
23210
23211
23212 \begin_inset Flex Code
23213 status collapsed
23214
23215 \begin_layout Plain Layout
23216 olive
23217 \end_layout
23218
23219 \end_inset
23220
23221
23222 \begin_inset Flex Code
23223 status collapsed
23224
23225 \begin_layout Plain Layout
23226 pink
23227 \end_layout
23228
23229 \end_inset
23230
23231
23232 \begin_inset Flex Code
23233 status collapsed
23234
23235 \begin_layout Plain Layout
23236 purple
23237 \end_layout
23238
23239 \end_inset
23240
23241
23242 \begin_inset Flex Code
23243 status collapsed
23244
23245 \begin_layout Plain Layout
23246 teal
23247 \end_layout
23248
23249 \end_inset
23250
23251
23252 \begin_inset Flex Code
23253 status collapsed
23254
23255 \begin_layout Plain Layout
23256 violet
23257 \end_layout
23258
23259 \end_inset
23260
23261 ]
23262 \end_layout
23263
23264 \begin_layout Description
23265 \begin_inset Flex Code
23266 status collapsed
23267
23268 \begin_layout Plain Layout
23269 Family
23270 \end_layout
23271
23272 \end_inset
23273
23274  [
23275 \begin_inset Flex Code
23276 status collapsed
23277
23278 \begin_layout Plain Layout
23279
23280 \emph on
23281 Roman
23282 \end_layout
23283
23284 \end_inset
23285
23286
23287 \begin_inset Flex Code
23288 status collapsed
23289
23290 \begin_layout Plain Layout
23291 Sans
23292 \end_layout
23293
23294 \end_inset
23295
23296
23297 \begin_inset Flex Code
23298 status collapsed
23299
23300 \begin_layout Plain Layout
23301 Typewriter
23302 \end_layout
23303
23304 \end_inset
23305
23306 ]
23307 \end_layout
23308
23309 \begin_layout Description
23310 \begin_inset Flex Code
23311 status collapsed
23312
23313 \begin_layout Plain Layout
23314 Misc
23315 \end_layout
23316
23317 \end_inset
23318
23319  [
23320 \begin_inset Flex Code
23321 status collapsed
23322
23323 \begin_layout Plain Layout
23324 string
23325 \end_layout
23326
23327 \end_inset
23328
23329 ] Valid arguments are: 
23330 \begin_inset Flex Code
23331 status collapsed
23332
23333 \begin_layout Plain Layout
23334 emph
23335 \end_layout
23336
23337 \end_inset
23338
23339
23340 \begin_inset Flex Code
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344 noun
23345 \end_layout
23346
23347 \end_inset
23348
23349
23350 \begin_inset Flex Code
23351 status collapsed
23352
23353 \begin_layout Plain Layout
23354 strikeout
23355 \end_layout
23356
23357 \end_inset
23358
23359
23360 \begin_inset Flex Code
23361 status collapsed
23362
23363 \begin_layout Plain Layout
23364 underbar
23365 \end_layout
23366
23367 \end_inset
23368
23369
23370 \begin_inset Flex Code
23371 status collapsed
23372
23373 \begin_layout Plain Layout
23374 uuline
23375 \end_layout
23376
23377 \end_inset
23378
23379
23380 \begin_inset Flex Code
23381 status collapsed
23382
23383 \begin_layout Plain Layout
23384 uwave
23385 \end_layout
23386
23387 \end_inset
23388
23389
23390 \begin_inset Flex Code
23391 status collapsed
23392
23393 \begin_layout Plain Layout
23394 no_emph
23395 \end_layout
23396
23397 \end_inset
23398
23399
23400 \begin_inset Flex Code
23401 status collapsed
23402
23403 \begin_layout Plain Layout
23404 no_noun
23405 \end_layout
23406
23407 \end_inset
23408
23409
23410 \begin_inset Flex Code
23411 status collapsed
23412
23413 \begin_layout Plain Layout
23414 no_strikeout
23415 \end_layout
23416
23417 \end_inset
23418
23419
23420 \begin_inset Flex Code
23421 status collapsed
23422
23423 \begin_layout Plain Layout
23424 no_bar
23425 \end_layout
23426
23427 \end_inset
23428
23429
23430 \begin_inset Flex Code
23431 status collapsed
23432
23433 \begin_layout Plain Layout
23434 no_uuline
23435 \end_layout
23436
23437 \end_inset
23438
23439  and 
23440 \begin_inset Flex Code
23441 status collapsed
23442
23443 \begin_layout Plain Layout
23444 no_uwave
23445 \end_layout
23446
23447 \end_inset
23448
23449 .
23450  Each of these turns on or off the corresponding attribute.
23451  For example, 
23452 \begin_inset Flex Code
23453 status collapsed
23454
23455 \begin_layout Plain Layout
23456 emph
23457 \end_layout
23458
23459 \end_inset
23460
23461  turns on emphasis, and 
23462 \begin_inset Flex Code
23463 status collapsed
23464
23465 \begin_layout Plain Layout
23466 no_emph
23467 \end_layout
23468
23469 \end_inset
23470
23471  turns it off.
23472  
23473 \begin_inset Newline newline
23474 \end_inset
23475
23476 If the latter seems puzzling, remember that the font settings for the present
23477  context are generally inherited from the surrounding context.
23478  So 
23479 \begin_inset Flex Code
23480 status collapsed
23481
23482 \begin_layout Plain Layout
23483 no_emph
23484 \end_layout
23485
23486 \end_inset
23487
23488  would turn off the emphasis that was anyway in effect, say, in a theorem
23489  environment.
23490 \end_layout
23491
23492 \begin_layout Description
23493 \begin_inset Flex Code
23494 status collapsed
23495
23496 \begin_layout Plain Layout
23497 Series
23498 \end_layout
23499
23500 \end_inset
23501
23502  [
23503 \begin_inset Flex Code
23504 status collapsed
23505
23506 \begin_layout Plain Layout
23507
23508 \emph on
23509 Medium
23510 \end_layout
23511
23512 \end_inset
23513
23514
23515 \begin_inset Flex Code
23516 status collapsed
23517
23518 \begin_layout Plain Layout
23519 Bold
23520 \end_layout
23521
23522 \end_inset
23523
23524
23525 \end_layout
23526
23527 \begin_layout Description
23528 \begin_inset Flex Code
23529 status collapsed
23530
23531 \begin_layout Plain Layout
23532 Shape
23533 \end_layout
23534
23535 \end_inset
23536
23537  [
23538 \begin_inset Flex Code
23539 status collapsed
23540
23541 \begin_layout Plain Layout
23542
23543 \emph on
23544 Up
23545 \end_layout
23546
23547 \end_inset
23548
23549
23550 \begin_inset Flex Code
23551 status collapsed
23552
23553 \begin_layout Plain Layout
23554 Italic
23555 \end_layout
23556
23557 \end_inset
23558
23559
23560 \begin_inset Flex Code
23561 status collapsed
23562
23563 \begin_layout Plain Layout
23564 SmallCaps
23565 \end_layout
23566
23567 \end_inset
23568
23569
23570 \begin_inset Flex Code
23571 status collapsed
23572
23573 \begin_layout Plain Layout
23574 Slanted
23575 \end_layout
23576
23577 \end_inset
23578
23579
23580 \end_layout
23581
23582 \begin_layout Description
23583 \begin_inset Flex Code
23584 status collapsed
23585
23586 \begin_layout Plain Layout
23587 Size
23588 \end_layout
23589
23590 \end_inset
23591
23592  [
23593 \begin_inset Flex Code
23594 status collapsed
23595
23596 \begin_layout Plain Layout
23597 tiny
23598 \end_layout
23599
23600 \end_inset
23601
23602
23603 \begin_inset Flex Code
23604 status collapsed
23605
23606 \begin_layout Plain Layout
23607 small
23608 \end_layout
23609
23610 \end_inset
23611
23612
23613 \begin_inset Flex Code
23614 status collapsed
23615
23616 \begin_layout Plain Layout
23617
23618 \emph on
23619 normal
23620 \end_layout
23621
23622 \end_inset
23623
23624
23625 \begin_inset Flex Code
23626 status collapsed
23627
23628 \begin_layout Plain Layout
23629 large
23630 \end_layout
23631
23632 \end_inset
23633
23634
23635 \begin_inset Flex Code
23636 status collapsed
23637
23638 \begin_layout Plain Layout
23639 larger
23640 \end_layout
23641
23642 \end_inset
23643
23644
23645 \begin_inset Flex Code
23646 status collapsed
23647
23648 \begin_layout Plain Layout
23649 largest
23650 \end_layout
23651
23652 \end_inset
23653
23654
23655 \begin_inset Flex Code
23656 status collapsed
23657
23658 \begin_layout Plain Layout
23659 huge
23660 \end_layout
23661
23662 \end_inset
23663
23664
23665 \begin_inset Flex Code
23666 status collapsed
23667
23668 \begin_layout Plain Layout
23669 giant
23670 \end_layout
23671
23672 \end_inset
23673
23674 ]
23675 \end_layout
23676
23677 \begin_layout Subsection
23678 \begin_inset CommandInset label
23679 LatexCommand label
23680 name "subsec:Citation-engine-description"
23681
23682 \end_inset
23683
23684 Cite engine description
23685 \end_layout
23686
23687 \begin_layout Standard
23688 The 
23689 \begin_inset Flex Code
23690 status collapsed
23691
23692 \begin_layout Plain Layout
23693 CiteEngine
23694 \end_layout
23695
23696 \end_inset
23697
23698  blocks, as used mainly in cite engine files (see 
23699 \begin_inset CommandInset ref
23700 LatexCommand ref
23701 reference "subsec:Cite-Engine-Files"
23702 plural "false"
23703 caps "false"
23704 noprefix "false"
23705
23706 \end_inset
23707
23708 ), define the citation commands provided by a specific 
23709 \begin_inset Quotes eld
23710 \end_inset
23711
23712 cite engine
23713 \begin_inset Quotes erd
23714 \end_inset
23715
23716 .
23717  A cite engine, in \SpecialChar LyX
23718  terms, is way specific way to format citations, using
23719  numbers, author names and/or years.
23720  Currently, \SpecialChar LyX
23721  supports three such engine types, namely:
23722 \end_layout
23723
23724 \begin_layout Enumerate
23725 \begin_inset Flex Code
23726 status collapsed
23727
23728 \begin_layout Plain Layout
23729 default
23730 \end_layout
23731
23732 \end_inset
23733
23734 : the default Bib\SpecialChar TeX
23735  way to format citations, a simple numeric style (e.
23736 \begin_inset space \thinspace{}
23737 \end_inset
23738
23739 g., 
23740 \begin_inset Quotes eld
23741 \end_inset
23742
23743 [1]
23744 \begin_inset Quotes erd
23745 \end_inset
23746
23747 )
23748 \end_layout
23749
23750 \begin_layout Enumerate
23751 \begin_inset Flex Code
23752 status collapsed
23753
23754 \begin_layout Plain Layout
23755 authoryear
23756 \end_layout
23757
23758 \end_inset
23759
23760 : Harvard-styled citations using author names and publication year (e.
23761 \begin_inset space \thinspace{}
23762 \end_inset
23763
23764 g., 
23765 \begin_inset Quotes eld
23766 \end_inset
23767
23768 Smith and Miller (2017b)
23769 \begin_inset Quotes erd
23770 \end_inset
23771
23772 )
23773 \end_layout
23774
23775 \begin_layout Enumerate
23776 \begin_inset Flex Code
23777 status collapsed
23778
23779 \begin_layout Plain Layout
23780 numerical
23781 \end_layout
23782
23783 \end_inset
23784
23785 : extended numerical citations that also allow for author or title next
23786  to the number (e.
23787 \begin_inset space \thinspace{}
23788 \end_inset
23789
23790 g., 
23791 \begin_inset Quotes eld
23792 \end_inset
23793
23794 Smith and Miller [1]
23795 \begin_inset Quotes erd
23796 \end_inset
23797
23798 )
23799 \end_layout
23800
23801 \begin_layout Standard
23802 \begin_inset Flex Code
23803 status collapsed
23804
23805 \begin_layout Plain Layout
23806 CiteEngine
23807 \end_layout
23808
23809 \end_inset
23810
23811  blocks look like this:
23812 \end_layout
23813
23814 \begin_layout LyX-Code
23815 CiteEngine default
23816 \end_layout
23817
23818 \begin_layout LyX-Code
23819  cite
23820 \end_layout
23821
23822 \begin_layout LyX-Code
23823  Citep*[][]
23824 \end_layout
23825
23826 \begin_layout LyX-Code
23827  citeyearpar[][]=parencite*
23828 \end_layout
23829
23830 \begin_layout LyX-Code
23831  ...
23832 \end_layout
23833
23834 \begin_layout LyX-Code
23835 End
23836 \end_layout
23837
23838 \begin_layout Standard
23839 The tag following 
23840 \begin_inset Flex Code
23841 status collapsed
23842
23843 \begin_layout Plain Layout
23844 CiteEngine
23845 \end_layout
23846
23847 \end_inset
23848
23849  denotes the engine.
23850  The individual lines respectively define a cite command or cite command
23851  paradigm supported by this engine.
23852  The line can be as simple as a cite command that is used both to name the
23853  respective \SpecialChar LyX
23854  command and the \SpecialChar LaTeX
23855  output or more complex in order to differentiate
23856  things.
23857  The full syntax is:
23858 \end_layout
23859
23860 \begin_layout LyX-Code
23861 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23862 \end_layout
23863
23864 \begin_layout Itemize
23865 \begin_inset Flex Code
23866 status collapsed
23867
23868 \begin_layout Plain Layout
23869 LyXName
23870 \end_layout
23871
23872 \end_inset
23873
23874 : The name as used in the 
23875 \begin_inset Flex Code
23876 status collapsed
23877
23878 \begin_layout Plain Layout
23879 *.lyx
23880 \end_layout
23881
23882 \end_inset
23883
23884  file.
23885 \end_layout
23886
23887 \begin_deeper
23888 \begin_layout Standard
23889 For portability reasons, we try to use the same name for same-formatted
23890  commands in different cite packages (thus many names stem from natbib,
23891  and thus we need to differentiate a 
23892 \begin_inset Flex Code
23893 status collapsed
23894
23895 \begin_layout Plain Layout
23896 latexcmd
23897 \end_layout
23898
23899 \end_inset
23900
23901  sometimes, if the \SpecialChar LaTeX
23902  command names differ).
23903 \end_layout
23904
23905 \end_deeper
23906 \begin_layout Itemize
23907 \begin_inset Flex Code
23908 status collapsed
23909
23910 \begin_layout Plain Layout
23911 alias
23912 \end_layout
23913
23914 \end_inset
23915
23916 : a (comma-separated) list of commands that fall back to the given 
23917 \begin_inset Flex Code
23918 status collapsed
23919
23920 \begin_layout Plain Layout
23921 LyXName
23922 \end_layout
23923
23924 \end_inset
23925
23926  in the current engine.
23927  This eases the switch of citation packages and engines.
23928  The 
23929 \begin_inset Flex Code
23930 status collapsed
23931
23932 \begin_layout Plain Layout
23933 alias
23934 \end_layout
23935
23936 \end_inset
23937
23938  can be compared to 
23939 \begin_inset Flex Code
23940 status collapsed
23941
23942 \begin_layout Plain Layout
23943 ObsoletedBy
23944 \end_layout
23945
23946 \end_inset
23947
23948  in layout definitions.
23949 \end_layout
23950
23951 \begin_layout Itemize
23952 \begin_inset Flex Code
23953 status collapsed
23954
23955 \begin_layout Plain Layout
23956 latexcmd
23957 \end_layout
23958
23959 \end_inset
23960
23961 : The actual \SpecialChar LaTeX
23962  command that is output.
23963  
23964 \end_layout
23965
23966 \begin_layout Standard
23967 \begin_inset Flex Code
23968 status collapsed
23969
23970 \begin_layout Plain Layout
23971 Alias
23972 \end_layout
23973
23974 \end_inset
23975
23976  and 
23977 \begin_inset Flex Code
23978 status collapsed
23979
23980 \begin_layout Plain Layout
23981 latexcmd
23982 \end_layout
23983
23984 \end_inset
23985
23986  are optional.
23987  If no 
23988 \begin_inset Flex Code
23989 status collapsed
23990
23991 \begin_layout Plain Layout
23992 latexcmd
23993 \end_layout
23994
23995 \end_inset
23996
23997  is given, the 
23998 \begin_inset Flex Code
23999 status collapsed
24000
24001 \begin_layout Plain Layout
24002 LyXName
24003 \end_layout
24004
24005 \end_inset
24006
24007  will be output to \SpecialChar LaTeX
24008 .
24009 \end_layout
24010
24011 \begin_layout Standard
24012 Note further:
24013 \end_layout
24014
24015 \begin_layout Itemize
24016 Capitalization indicates that the command also has a capitalized form (
24017 \begin_inset Flex Code
24018 status collapsed
24019
24020 \begin_layout Plain Layout
24021
24022 \backslash
24023 Latexcmd
24024 \end_layout
24025
24026 \end_inset
24027
24028  vs.
24029  
24030 \begin_inset Flex Code
24031 status collapsed
24032
24033 \begin_layout Plain Layout
24034
24035 \backslash
24036 latexcmd
24037 \end_layout
24038
24039 \end_inset
24040
24041 ).
24042  These usually enforce up-casing of name prefixes (
24043 \emph on
24044 von Goethe
24045 \emph default
24046  
24047 \begin_inset Formula $\Rightarrow$
24048 \end_inset
24049
24050  
24051 \emph on
24052 Von Goethe
24053 \emph default
24054 ).
24055 \end_layout
24056
24057 \begin_layout Itemize
24058 Brackets 
24059 \begin_inset Flex Code
24060 status collapsed
24061
24062 \begin_layout Plain Layout
24063 []
24064 \end_layout
24065
24066 \end_inset
24067
24068  indicate the number of optional arguments (there can be 0–2).
24069 \end_layout
24070
24071 \begin_layout Itemize
24072 A star 
24073 \begin_inset Flex Code
24074 status collapsed
24075
24076 \begin_layout Plain Layout
24077 *
24078 \end_layout
24079
24080 \end_inset
24081
24082  indicates there is a starred version of the command (
24083 \begin_inset Flex Code
24084 status collapsed
24085
24086 \begin_layout Plain Layout
24087
24088 \backslash
24089 latexcmd*
24090 \end_layout
24091
24092 \end_inset
24093
24094  vs.
24095  
24096 \begin_inset Flex Code
24097 status collapsed
24098
24099 \begin_layout Plain Layout
24100
24101 \backslash
24102 latexcmd
24103 \end_layout
24104
24105 \end_inset
24106
24107 ).
24108  
24109 \end_layout
24110
24111 \begin_deeper
24112 \begin_layout Standard
24113 By default, the starred version means: Output all authors even if it should
24114  be shortened with 
24115 \begin_inset Quotes eld
24116 \end_inset
24117
24118 et al.
24119 \begin_inset Quotes erd
24120 \end_inset
24121
24122  due to the 
24123 \begin_inset Flex Code
24124 status collapsed
24125
24126 \begin_layout Plain Layout
24127 MaxCiteNames
24128 \end_layout
24129
24130 \end_inset
24131
24132  threshold.
24133 \end_layout
24134
24135 \begin_layout Standard
24136 If the star has a different meaning for a given command, it can be specified
24137  in angle brackets: 
24138 \begin_inset Flex Code
24139 status collapsed
24140
24141 \begin_layout Plain Layout
24142 <!_stardesc!_stardesctooltip>
24143 \end_layout
24144
24145 \end_inset
24146
24147 .
24148  Maximal two translatable macro keywords, marked by the prefix 
24149 \begin_inset Flex Code
24150 status collapsed
24151
24152 \begin_layout Plain Layout
24153 !_
24154 \end_layout
24155
24156 \end_inset
24157
24158 , can be given.
24159  The first points to the string that replaces the 
24160 \begin_inset Quotes eld
24161 \end_inset
24162
24163 Full aut&hor list
24164 \begin_inset Quotes erd
24165 \end_inset
24166
24167  checkbox label in the citation dialog, the second one to an optional tool
24168  tip for this checkbox.
24169  
24170 \end_layout
24171
24172 \begin_layout Standard
24173 Note that these two macros have to be defined in a 
24174 \begin_inset Flex Code
24175 status collapsed
24176
24177 \begin_layout Plain Layout
24178 CiteFormat
24179 \end_layout
24180
24181 \end_inset
24182
24183  (see next section), dropping the 
24184 \begin_inset Flex Code
24185 status collapsed
24186
24187 \begin_layout Plain Layout
24188 !
24189 \end_layout
24190
24191 \end_inset
24192
24193  from the prefix, like this: 
24194 \end_layout
24195
24196 \begin_layout LyX-Code
24197 _stardesc Sta&rred command label
24198 \end_layout
24199
24200 \begin_layout LyX-Code
24201 _stardesctooltip Tooltip for the starred command checkbox.
24202 \end_layout
24203
24204 \end_deeper
24205 \begin_layout Itemize
24206 A dollar sign 
24207 \begin_inset Flex Code
24208 status collapsed
24209
24210 \begin_layout Plain Layout
24211 $
24212 \end_layout
24213
24214 \end_inset
24215
24216  indicates that this command features 
24217 \begin_inset Quotes eld
24218 \end_inset
24219
24220 qualified citation lists
24221 \begin_inset Quotes erd
24222 \end_inset
24223
24224 .
24225  This is a 
24226 \family sans
24227 Biblatex
24228 \family default
24229 -specific feature for multi-reference citations where an individual pre-
24230  and postnote can be given to each reference in the list.
24231  Please refer to the 
24232 \family sans
24233 Biblatex
24234 \family default
24235  manual for details.
24236 \change_inserted -712698321 1526898670
24237
24238 \end_layout
24239
24240 \begin_layout Standard
24241
24242 \change_inserted -712698321 1526899524
24243 If you want to add a cite command to a cite engine (e.
24244 \begin_inset space \thinspace{}
24245 \end_inset
24246
24247 g., add a specific command provided by a class), you can use 
24248 \begin_inset Flex Code
24249 status collapsed
24250
24251 \begin_layout Plain Layout
24252
24253 \change_inserted -712698321 1526898768
24254 AddToCiteEngine <engine type> \SpecialChar ldots
24255  End
24256 \change_unchanged
24257
24258 \end_layout
24259
24260 \end_inset
24261
24262 .
24263  Note that only cite commands that do not exist yet are added.
24264 \change_unchanged
24265
24266 \end_layout
24267
24268 \begin_layout Subsection
24269 \begin_inset CommandInset label
24270 LatexCommand label
24271 name "subsec:Citation-format-description"
24272
24273 \end_inset
24274
24275 Cite format description
24276 \end_layout
24277
24278 \begin_layout Standard
24279 The 
24280 \begin_inset Flex Code
24281 status collapsed
24282
24283 \begin_layout Plain Layout
24284 CiteFormat
24285 \end_layout
24286
24287 \end_inset
24288
24289  blocks are used to describe how bibliographic information should be displayed,
24290  both within \SpecialChar LyX
24291  itself (in the citation dialog and in tooltips, for example)
24292  and in XHTML output.
24293  Such a block might look like this:
24294 \end_layout
24295
24296 \begin_layout LyX-Code
24297 CiteFormat
24298 \end_layout
24299
24300 \begin_layout LyX-Code
24301  article ...
24302 \end_layout
24303
24304 \begin_layout LyX-Code
24305  book ...
24306 \end_layout
24307
24308 \begin_layout LyX-Code
24309 End
24310 \end_layout
24311
24312 \begin_layout Standard
24313 or
24314 \end_layout
24315
24316 \begin_layout LyX-Code
24317 CiteFormat
24318 \end_layout
24319
24320 \begin_layout LyX-Code
24321  cite ...
24322 \end_layout
24323
24324 \begin_layout LyX-Code
24325  citet*[][] ...
24326 \end_layout
24327
24328 \begin_layout LyX-Code
24329 End
24330 \end_layout
24331
24332 \begin_layout Standard
24333 In the first case, the individual lines define how the bibliographic information
24334  associated with an article or book, respectively, is to be displayed, and
24335  such a definition can be given for any 
24336 \begin_inset Quotes els
24337 \end_inset
24338
24339 entry type
24340 \begin_inset Quotes ers
24341 \end_inset
24342
24343  that might be present in a Bib\SpecialChar TeX
24344  file.
24345  \SpecialChar LyX
24346  defines a default format in the source code that will be used if no specific
24347  definition has been given.
24348  \SpecialChar LyX
24349  predefines several formats in the file 
24350 \begin_inset Flex Code
24351 status collapsed
24352
24353 \begin_layout Plain Layout
24354 stdciteformats.inc
24355 \end_layout
24356
24357 \end_inset
24358
24359 , which is included in most of \SpecialChar LyX
24360 's document classes.
24361 \end_layout
24362
24363 \begin_layout Standard
24364 In the second case, the lines define how a specific citation command (in
24365  the example 
24366 \begin_inset Flex Code
24367 status collapsed
24368
24369 \begin_layout Plain Layout
24370
24371 \backslash
24372 cite
24373 \end_layout
24374
24375 \end_inset
24376
24377
24378 \begin_inset Flex Code
24379 status collapsed
24380
24381 \begin_layout Plain Layout
24382
24383 \backslash
24384 citet
24385 \end_layout
24386
24387 \end_inset
24388
24389 ) is to be displayed on the citation inset label, in the citation dialog,
24390  menu or XHTML output.
24391  \SpecialChar LyX
24392  defines such formats for the citation style variants it supports via 
24393 \family sans
24394 Document\SpecialChar menuseparator
24395 Setting\SpecialChar menuseparator
24396 Bibliography\SpecialChar ldots
24397
24398 \family default
24399  in specific 
24400 \begin_inset Flex Code
24401 status collapsed
24402
24403 \begin_layout Plain Layout
24404 *.citeengine
24405 \end_layout
24406
24407 \end_inset
24408
24409  files that are shipped with \SpecialChar LyX
24410  (see 
24411 \begin_inset CommandInset ref
24412 LatexCommand ref
24413 reference "subsec:Cite-Engine-Files"
24414 plural "false"
24415 caps "false"
24416 noprefix "false"
24417
24418 \end_inset
24419
24420 ).
24421 \end_layout
24422
24423 \begin_layout Standard
24424 The definitions use a simple language that allows Bib\SpecialChar TeX
24425  keys to be replaced
24426  with their values.
24427  Keys should be enclosed in 
24428 \begin_inset Flex Code
24429 status collapsed
24430
24431 \begin_layout Plain Layout
24432 %
24433 \end_layout
24434
24435 \end_inset
24436
24437  signs, e.g.: 
24438 \begin_inset Flex Code
24439 status collapsed
24440
24441 \begin_layout Plain Layout
24442 %author%
24443 \end_layout
24444
24445 \end_inset
24446
24447 .
24448  So a simple definition might look like this:
24449 \end_layout
24450
24451 \begin_layout LyX-Code
24452 misc %author%, 
24453 \begin_inset Quotes eld
24454 \end_inset
24455
24456 %title%
24457 \begin_inset Quotes erd
24458 \end_inset
24459
24460 .
24461 \end_layout
24462
24463 \begin_layout Standard
24464 This would print the author, followed by a comma, followed by the title,
24465  in quotes, followed by a period.
24466 \end_layout
24467
24468 \begin_layout Standard
24469 Of course, sometimes you may want to print a key only if it exists.
24470  This can be done by using a conditional construction, such as: 
24471 \begin_inset Flex Code
24472 status collapsed
24473
24474 \begin_layout Plain Layout
24475 {%volume%[[vol.
24476 \begin_inset space ~
24477 \end_inset
24478
24479 %volume%]]}
24480 \end_layout
24481
24482 \end_inset
24483
24484 .
24485  This says: If the 
24486 \begin_inset Flex Code
24487 status collapsed
24488
24489 \begin_layout Plain Layout
24490 volume
24491 \end_layout
24492
24493 \end_inset
24494
24495  key exists, then print 
24496 \begin_inset Quotes eld
24497 \end_inset
24498
24499 vol.
24500 \begin_inset space ~
24501 \end_inset
24502
24503
24504 \begin_inset Quotes erd
24505 \end_inset
24506
24507  followed by the volume key.
24508  It is also possible to have an else clause in the conditional, such as:
24509 \begin_inset Newline newline
24510 \end_inset
24511
24512
24513 \begin_inset Flex Code
24514 status collapsed
24515
24516 \begin_layout Plain Layout
24517 {%author%[[%author%]][[%editor%, ed.]]}
24518 \end_layout
24519
24520 \end_inset
24521
24522 .
24523 \begin_inset Newline newline
24524 \end_inset
24525
24526 Here, the 
24527 \begin_inset Flex Code
24528 status collapsed
24529
24530 \begin_layout Plain Layout
24531 author
24532 \end_layout
24533
24534 \end_inset
24535
24536  key is printed if it exists; otherwise, the editor key is printed, followed
24537  by 
24538 \begin_inset Quotes eld
24539 \end_inset
24540
24541 ,
24542 \begin_inset space ~
24543 \end_inset
24544
24545 ed.
24546 \begin_inset Quotes erd
24547 \end_inset
24548
24549  Note that the key is again enclosed in 
24550 \begin_inset Flex Code
24551 status collapsed
24552
24553 \begin_layout Plain Layout
24554 %
24555 \end_layout
24556
24557 \end_inset
24558
24559  signs; the entire conditional is enclosed in braces; and the if and else
24560  clauses are enclosed in double brackets, 
24561 \begin_inset Quotes eld
24562 \end_inset
24563
24564
24565 \begin_inset Flex Code
24566 status collapsed
24567
24568 \begin_layout Plain Layout
24569 [[
24570 \end_layout
24571
24572 \end_inset
24573
24574
24575 \begin_inset Quotes eld
24576 \end_inset
24577
24578  and 
24579 \begin_inset Quotes eld
24580 \end_inset
24581
24582
24583 \begin_inset Flex Code
24584 status collapsed
24585
24586 \begin_layout Plain Layout
24587 ]]
24588 \end_layout
24589
24590 \end_inset
24591
24592
24593 \begin_inset Quotes erd
24594 \end_inset
24595
24596 .
24597  There must be no space between any of these.
24598 \end_layout
24599
24600 \begin_layout Standard
24601 Next to the entry keys, there are some special keys that can be used for
24602  these conditionals:
24603 \end_layout
24604
24605 \begin_layout Itemize
24606 \begin_inset Flex Code
24607 status collapsed
24608
24609 \begin_layout Plain Layout
24610 {%dialog%[[true]][[false]]}
24611 \end_layout
24612
24613 \end_inset
24614
24615 : process the 
24616 \begin_inset Quotes eld
24617 \end_inset
24618
24619 true
24620 \begin_inset Quotes erd
24621 \end_inset
24622
24623  part for dialogs and menus, the 
24624 \begin_inset Quotes eld
24625 \end_inset
24626
24627 false
24628 \begin_inset Quotes erd
24629 \end_inset
24630
24631  part for other contexts (workarea, export)
24632 \end_layout
24633
24634 \begin_layout Itemize
24635 \begin_inset Flex Code
24636 status collapsed
24637
24638 \begin_layout Plain Layout
24639 {%export%[[true]][[false]]}
24640 \end_layout
24641
24642 \end_inset
24643
24644 : process the 
24645 \begin_inset Quotes eld
24646 \end_inset
24647
24648 true
24649 \begin_inset Quotes erd
24650 \end_inset
24651
24652  part for export and menus, the 
24653 \begin_inset Quotes eld
24654 \end_inset
24655
24656 false
24657 \begin_inset Quotes erd
24658 \end_inset
24659
24660  part for other contexts (workarea, dialog)
24661 \end_layout
24662
24663 \begin_layout Itemize
24664 \begin_inset Flex Code
24665 status collapsed
24666
24667 \begin_layout Plain Layout
24668 {%next%[[true]]}
24669 \end_layout
24670
24671 \end_inset
24672
24673 : process the 
24674 \begin_inset Quotes eld
24675 \end_inset
24676
24677 true
24678 \begin_inset Quotes erd
24679 \end_inset
24680
24681  part if another item follows (e.
24682 \begin_inset space \thinspace{}
24683 \end_inset
24684
24685 g., in a citation with multiple keys)
24686 \end_layout
24687
24688 \begin_layout Itemize
24689 \begin_inset Flex Code
24690 status collapsed
24691
24692 \begin_layout Plain Layout
24693 {%second%[[true]][[false]]}
24694 \end_layout
24695
24696 \end_inset
24697
24698 : process the 
24699 \begin_inset Quotes eld
24700 \end_inset
24701
24702 true
24703 \begin_inset Quotes erd
24704 \end_inset
24705
24706  if this is the second of multiple items, else the 
24707 \begin_inset Quotes eld
24708 \end_inset
24709
24710 false
24711 \begin_inset Quotes erd
24712 \end_inset
24713
24714  part
24715 \end_layout
24716
24717 \begin_layout Itemize
24718 \begin_inset Flex Code
24719 status collapsed
24720
24721 \begin_layout Plain Layout
24722 {%ifstar%[[true]][[false]]}
24723 \end_layout
24724
24725 \end_inset
24726
24727 : process the 
24728 \begin_inset Quotes eld
24729 \end_inset
24730
24731 true
24732 \begin_inset Quotes erd
24733 \end_inset
24734
24735  part for starred citation commands (such as 
24736 \begin_inset Flex Code
24737 status collapsed
24738
24739 \begin_layout Plain Layout
24740
24741 \backslash
24742 cite*
24743 \end_layout
24744
24745 \end_inset
24746
24747 ), the false part for unstarred
24748 \end_layout
24749
24750 \begin_layout Itemize
24751 \begin_inset Flex Code
24752 status collapsed
24753
24754 \begin_layout Plain Layout
24755 {%ifentrytype:<type>%[[true]][[false]]}
24756 \end_layout
24757
24758 \end_inset
24759
24760 : process the 
24761 \begin_inset Quotes eld
24762 \end_inset
24763
24764 true
24765 \begin_inset Quotes erd
24766 \end_inset
24767
24768  if the current entry type matches 
24769 \begin_inset Flex Code
24770 status collapsed
24771
24772 \begin_layout Plain Layout
24773 <type>
24774 \end_layout
24775
24776 \end_inset
24777
24778 , else the false part (e.g., in a citation definition: 
24779 \begin_inset Flex Code
24780 status collapsed
24781
24782 \begin_layout Plain Layout
24783 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24784 \end_layout
24785
24786 \end_inset
24787
24788 )
24789 \end_layout
24790
24791 \begin_layout Itemize
24792 \begin_inset Flex Code
24793 status collapsed
24794
24795 \begin_layout Plain Layout
24796 {%ifmultiple:<authortype>%[[true]][[false]]}
24797 \end_layout
24798
24799 \end_inset
24800
24801 : process the 
24802 \begin_inset Quotes eld
24803 \end_inset
24804
24805 true
24806 \begin_inset Quotes erd
24807 \end_inset
24808
24809  if the current author type (author, editor etc.) has multiple authors, else
24810  the false part (e.g., in a bibliography definition: 
24811 \begin_inset Flex Code
24812 status collapsed
24813
24814 \begin_layout Plain Layout
24815 {%ifmultiple:editor%[[eds.]][[ed.]]}
24816 \end_layout
24817
24818 \end_inset
24819
24820 )
24821 \end_layout
24822
24823 \begin_layout Itemize
24824 \begin_inset Flex Code
24825 status collapsed
24826
24827 \begin_layout Plain Layout
24828 {%ifqualified%[[true]][[false]]}
24829 \end_layout
24830
24831 \end_inset
24832
24833 : process the 
24834 \begin_inset Quotes eld
24835 \end_inset
24836
24837 true
24838 \begin_inset Quotes erd
24839 \end_inset
24840
24841  part if the current citation is a qualified citation list (a specific 
24842 \family sans
24843 Biblatex
24844 \family default
24845  format for multi-reference citations), the false part if this is not the
24846  case.
24847 \end_layout
24848
24849 \begin_layout Standard
24850 We said that 
24851 \begin_inset Flex Code
24852 status collapsed
24853
24854 \begin_layout Plain Layout
24855 %author%
24856 \end_layout
24857
24858 \end_inset
24859
24860  prints the author key as it is recorded in the bibliography file.
24861  This might not be what you want, since it will result in a string such
24862  as 
24863 \begin_inset Quotes eld
24864 \end_inset
24865
24866 Miller, Peter and Smith, Mary and White, Jane
24867 \begin_inset Quotes erd
24868 \end_inset
24869
24870  (since 
24871 \begin_inset Quotes eld
24872 \end_inset
24873
24874 and
24875 \begin_inset Quotes erd
24876 \end_inset
24877
24878  is used by Bib\SpecialChar TeX
24879  to delimit authors).
24880  \SpecialChar LyX
24881  therefore provides some methods to get properly formatted name lists (which
24882  will also get translated).
24883  The following keys are provided:
24884 \end_layout
24885
24886 \begin_layout Enumerate
24887 For name lists with pre- and surname, suitable for the main authors/editors
24888  of a bibliography item.
24889  The 
24890 \begin_inset Flex Code
24891 status collapsed
24892
24893 \begin_layout Plain Layout
24894 <nametype>
24895 \end_layout
24896
24897 \end_inset
24898
24899  part denotes the kind of list that is requested (e.g.
24900  
24901 \begin_inset Flex Code
24902 status collapsed
24903
24904 \begin_layout Plain Layout
24905 <nametype:author>
24906 \end_layout
24907
24908 \end_inset
24909
24910 ):
24911 \end_layout
24912
24913 \begin_deeper
24914 \begin_layout Itemize
24915 \begin_inset Flex Code
24916 status collapsed
24917
24918 \begin_layout Plain Layout
24919 %abbrvnames:<nametype>%
24920 \end_layout
24921
24922 \end_inset
24923
24924 : Provides a name list which is abbreviated (with 
24925 \begin_inset Quotes eld
24926 \end_inset
24927
24928 et al.
24929 \begin_inset Quotes erd
24930 \end_inset
24931
24932 ) when 
24933 \begin_inset Flex Code
24934 status collapsed
24935
24936 \begin_layout Plain Layout
24937 MaxCiteNames
24938 \end_layout
24939
24940 \end_inset
24941
24942  is reached.
24943 \end_layout
24944
24945 \begin_layout Itemize
24946 \begin_inset Flex Code
24947 status collapsed
24948
24949 \begin_layout Plain Layout
24950 %fullnames:<nametype>%
24951 \end_layout
24952
24953 \end_inset
24954
24955 : Provides a full name list (never abbreviated with 
24956 \begin_inset Quotes eld
24957 \end_inset
24958
24959 et al.
24960 \begin_inset Quotes erd
24961 \end_inset
24962
24963 ).
24964 \end_layout
24965
24966 \begin_layout Itemize
24967 \begin_inset Flex Code
24968 status collapsed
24969
24970 \begin_layout Plain Layout
24971 %forceabbrvnames:<nametype>%
24972 \end_layout
24973
24974 \end_inset
24975
24976 : Provides a name list which is always abbreviated (with 
24977 \begin_inset Quotes eld
24978 \end_inset
24979
24980 et al.
24981 \begin_inset Quotes erd
24982 \end_inset
24983
24984 ) irrespective of 
24985 \begin_inset Flex Code
24986 status collapsed
24987
24988 \begin_layout Plain Layout
24989 MaxCiteNames
24990 \end_layout
24991
24992 \end_inset
24993
24994 .
24995 \end_layout
24996
24997 \end_deeper
24998 \begin_layout Enumerate
24999 Alternative name lists with pre- and surname, if the order of pre- and surname
25000  inside the bibliography item differs (as in: 
25001 \begin_inset Quotes eld
25002 \end_inset
25003
25004 Miller, John: Some text, in: Mary Smith, ed.: A volume
25005 \begin_inset Quotes erd
25006 \end_inset
25007
25008 ):
25009 \end_layout
25010
25011 \begin_deeper
25012 \begin_layout Itemize
25013 \begin_inset Flex Code
25014 status collapsed
25015
25016 \begin_layout Plain Layout
25017 %abbrvbynames:<nametype>%
25018 \end_layout
25019
25020 \end_inset
25021
25022 : Provides a name list which is abbreviated (with 
25023 \begin_inset Quotes eld
25024 \end_inset
25025
25026 et al.
25027 \begin_inset Quotes erd
25028 \end_inset
25029
25030 ) when 
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  is reached.
25041 \end_layout
25042
25043 \begin_layout Itemize
25044 \begin_inset Flex Code
25045 status collapsed
25046
25047 \begin_layout Plain Layout
25048 %fullbynames:<nametype>%
25049 \end_layout
25050
25051 \end_inset
25052
25053 : Provides a full name list (never abbreviated with 
25054 \begin_inset Quotes eld
25055 \end_inset
25056
25057 et al.
25058 \begin_inset Quotes erd
25059 \end_inset
25060
25061 ).
25062 \end_layout
25063
25064 \begin_layout Itemize
25065 \begin_inset Flex Code
25066 status collapsed
25067
25068 \begin_layout Plain Layout
25069 %forceabbrvbynames:<nametype>%
25070 \end_layout
25071
25072 \end_inset
25073
25074 : Provides a name list which is always abbreviated (with 
25075 \begin_inset Quotes eld
25076 \end_inset
25077
25078 et al.
25079 \begin_inset Quotes erd
25080 \end_inset
25081
25082 ) irrespective of 
25083 \begin_inset Flex Code
25084 status collapsed
25085
25086 \begin_layout Plain Layout
25087 MaxCiteNames
25088 \end_layout
25089
25090 \end_inset
25091
25092 .
25093 \end_layout
25094
25095 \end_deeper
25096 \begin_layout Enumerate
25097 And finally name lists which consist of family names only, as used in author-yea
25098 r citation labels.
25099  These do not take a 
25100 \begin_inset Flex Code
25101 status collapsed
25102
25103 \begin_layout Plain Layout
25104 <nametype>
25105 \end_layout
25106
25107 \end_inset
25108
25109  part, but always return either an author list or, if this does not exist,
25110  an editor list (as common in author-year labels):
25111 \end_layout
25112
25113 \begin_deeper
25114 \begin_layout Itemize
25115 \begin_inset Flex Code
25116 status collapsed
25117
25118 \begin_layout Plain Layout
25119 %abbrvciteauthor%
25120 \end_layout
25121
25122 \end_inset
25123
25124 : Provides a name list which is abbreviated (with 
25125 \begin_inset Quotes eld
25126 \end_inset
25127
25128 et al.
25129 \begin_inset Quotes erd
25130 \end_inset
25131
25132 ) when 
25133 \begin_inset Flex Code
25134 status collapsed
25135
25136 \begin_layout Plain Layout
25137 MaxCiteNames
25138 \end_layout
25139
25140 \end_inset
25141
25142  is reached.
25143 \end_layout
25144
25145 \begin_layout Itemize
25146 \begin_inset Flex Code
25147 status collapsed
25148
25149 \begin_layout Plain Layout
25150 %fullciteauthor%
25151 \end_layout
25152
25153 \end_inset
25154
25155 : Provides a full name list (never abbreviated with 
25156 \begin_inset Quotes eld
25157 \end_inset
25158
25159 et al.
25160 \begin_inset Quotes erd
25161 \end_inset
25162
25163 ).
25164 \end_layout
25165
25166 \begin_layout Itemize
25167 \begin_inset Flex Code
25168 status collapsed
25169
25170 \begin_layout Plain Layout
25171 %forceabbrvciteauthor%
25172 \end_layout
25173
25174 \end_inset
25175
25176 : Provides a name list which is always abbreviated (with 
25177 \begin_inset Quotes eld
25178 \end_inset
25179
25180 et al.
25181 \begin_inset Quotes erd
25182 \end_inset
25183
25184 ) irrespective of 
25185 \begin_inset Flex Code
25186 status collapsed
25187
25188 \begin_layout Plain Layout
25189 MaxCiteNames
25190 \end_layout
25191
25192 \end_inset
25193
25194 .
25195 \end_layout
25196
25197 \end_deeper
25198 \begin_layout Standard
25199 The order of pre- and surname in the former two lists can be adjusted by
25200  these macros:
25201 \end_layout
25202
25203 \begin_layout Itemize
25204 \begin_inset Flex Code
25205 status collapsed
25206
25207 \begin_layout Plain Layout
25208 !firstnameform %surname%, %prename%
25209 \end_layout
25210
25211 \end_inset
25212
25213  (first author in lists of type 1)
25214 \end_layout
25215
25216 \begin_layout Itemize
25217 \begin_inset Flex Code
25218 status collapsed
25219
25220 \begin_layout Plain Layout
25221 !othernameform %surname%, %prename%
25222 \end_layout
25223
25224 \end_inset
25225
25226  (other authors in lists of type 1)
25227 \end_layout
25228
25229 \begin_layout Itemize
25230 \begin_inset Flex Code
25231 status collapsed
25232
25233 \begin_layout Plain Layout
25234 !firstbynameform %prename% %surname%
25235 \end_layout
25236
25237 \end_inset
25238
25239  (first author in lists of type 2)
25240 \end_layout
25241
25242 \begin_layout Itemize
25243 \begin_inset Flex Code
25244 status collapsed
25245
25246 \begin_layout Plain Layout
25247 !otherbynameform %prename% %surname%
25248 \end_layout
25249
25250 \end_inset
25251
25252  (other authors in lists of type 2)
25253 \end_layout
25254
25255 \begin_layout Standard
25256 This allows you to configure namings like 
25257 \begin_inset Quotes eld
25258 \end_inset
25259
25260 Miller, Peter and Mary Smith: \SpecialChar ldots
25261 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
25262
25263 \begin_inset Quotes erd
25264 \end_inset
25265
25266 .
25267 \end_layout
25268
25269 \begin_layout Standard
25270 There is one other piece of syntax available in definitions, which looks
25271  like this: 
25272 \begin_inset Flex Code
25273 status collapsed
25274
25275 \begin_layout Plain Layout
25276 {!<i>!}
25277 \end_layout
25278
25279 \end_inset
25280
25281 .
25282  This defines a piece of formatting information that is to be used when
25283  creating 
25284 \begin_inset Quotes eld
25285 \end_inset
25286
25287 rich text
25288 \begin_inset Quotes erd
25289 \end_inset
25290
25291 .
25292  Obviously, we do not want to output HTML tags when writing plain text,
25293  so they should be wrapped in 
25294 \begin_inset Quotes eld
25295 \end_inset
25296
25297 {!
25298 \begin_inset Quotes erd
25299 \end_inset
25300
25301  and 
25302 \begin_inset Quotes eld
25303 \end_inset
25304
25305 !}
25306 \begin_inset Quotes erd
25307 \end_inset
25308
25309 .
25310 \end_layout
25311
25312 \begin_layout Standard
25313 Two special sorts of definitions are also possible in a 
25314 \begin_inset Flex Code
25315 status collapsed
25316
25317 \begin_layout Plain Layout
25318 CiteFormat
25319 \end_layout
25320
25321 \end_inset
25322
25323  block.
25324  An example of the first would be:
25325 \end_layout
25326
25327 \begin_layout LyX-Code
25328 !quotetitle 
25329 \begin_inset Quotes eld
25330 \end_inset
25331
25332 %title%
25333 \begin_inset Quotes erd
25334 \end_inset
25335
25336
25337 \end_layout
25338
25339 \begin_layout Standard
25340 This is an abbreviation, or macro, and it can be used by treating it as
25341  if it were a key: 
25342 \begin_inset Flex Code
25343 status collapsed
25344
25345 \begin_layout Plain Layout
25346 %!quotetitle%
25347 \end_layout
25348
25349 \end_inset
25350
25351 .
25352  \SpecialChar LyX
25353  will treat 
25354 \begin_inset Flex Code
25355 status collapsed
25356
25357 \begin_layout Plain Layout
25358 %!quotetitle%
25359 \end_layout
25360
25361 \end_inset
25362
25363  exactly as it would treat its definition.
25364  So, let us issue the obvious 
25365 \emph on
25366 warning
25367 \emph default
25368 .
25369  Do not do this:
25370 \end_layout
25371
25372 \begin_layout LyX-Code
25373 !funfun %funfun%
25374 \end_layout
25375
25376 \begin_layout Standard
25377 or anything like it.
25378  \SpecialChar LyX
25379  shouldn't go into an infinite loop, but it may go into a long one before
25380  it gives up.
25381 \end_layout
25382
25383 \begin_layout Standard
25384 The second sort of special definition might look like this:
25385 \end_layout
25386
25387 \begin_layout LyX-Code
25388 B_pptext pp.
25389 \end_layout
25390
25391 \begin_layout Standard
25392 This defines a translatable piece of text, which allows relevant parts of
25393  the bibliography or citation to be translated.
25394  It can be included in a definition by treating it as a key: 
25395 \begin_inset Flex Code
25396 status collapsed
25397
25398 \begin_layout Plain Layout
25399 %B_pptext%
25400 \end_layout
25401
25402 \end_inset
25403
25404 .
25405  Note that there are two different translation paths: All definitions starting
25406  with 
25407 \begin_inset Flex Code
25408 status collapsed
25409
25410 \begin_layout Plain Layout
25411 B_
25412 \end_layout
25413
25414 \end_inset
25415
25416 , such as in the example above, will be translated to the currently active
25417  buffer language (so the translation will match the generated document).
25418  All definitions starting with underscore only will be translated to the
25419  GUI language.
25420  This is the proper translation for strings that only occur in the dialogs
25421  or on buttons, such as this one:
25422 \end_layout
25423
25424 \begin_layout LyX-Code
25425 _addtobib Add to bibliography only.
25426 \end_layout
25427
25428 \begin_layout Standard
25429 Several of these translatable strings are predefined in 
25430 \begin_inset Flex Code
25431 status collapsed
25432
25433 \begin_layout Plain Layout
25434 stdciteformats.inc
25435 \end_layout
25436
25437 \end_inset
25438
25439  and the diverse 
25440 \begin_inset Flex Code
25441 status collapsed
25442
25443 \begin_layout Plain Layout
25444 *.citeengine
25445 \end_layout
25446
25447 \end_inset
25448
25449  files.
25450  Note that these are not macros, in the sense just defined.
25451  They will not be expanded.
25452 \end_layout
25453
25454 \begin_layout Standard
25455 So here then is an example that uses several of these features:
25456 \begin_inset VSpace defskip
25457 \end_inset
25458
25459
25460 \end_layout
25461
25462 \begin_layout Standard
25463 \noindent
25464
25465 \family sans
25466 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
25467 \end_layout
25468
25469 \begin_layout Standard
25470 \begin_inset VSpace defskip
25471 \end_inset
25472
25473 This defines a macro that prints the author, followed by a comma, if the
25474  
25475 \begin_inset Flex Code
25476 status collapsed
25477
25478 \begin_layout Plain Layout
25479 author
25480 \end_layout
25481
25482 \end_inset
25483
25484  key is defined, or else prints the name of the editor, followed by the
25485  
25486 \begin_inset Flex Code
25487 status collapsed
25488
25489 \begin_layout Plain Layout
25490 B_edtext
25491 \end_layout
25492
25493 \end_inset
25494
25495  or its translation (it is by default 
25496 \begin_inset Quotes eld
25497 \end_inset
25498
25499 ed.
25500 \begin_inset Quotes erd
25501 \end_inset
25502
25503 ), if the 
25504 \begin_inset Flex Code
25505 status collapsed
25506
25507 \begin_layout Plain Layout
25508 editor
25509 \end_layout
25510
25511 \end_inset
25512
25513  key is defined.
25514  Note that this is in fact defined in 
25515 \begin_inset Flex Code
25516 status collapsed
25517
25518 \begin_layout Plain Layout
25519 stdciteformats.inc
25520 \end_layout
25521
25522 \end_inset
25523
25524 , so you can use it in your own definitions, or re-definitions, if you load
25525  that file first.
25526 \end_layout
25527
25528 \begin_layout Section
25529 \begin_inset CommandInset label
25530 LatexCommand label
25531 name "sec:Tags-for-XHTML"
25532
25533 \end_inset
25534
25535 Tags for XHTML output
25536 \end_layout
25537
25538 \begin_layout Standard
25539 As with \SpecialChar LaTeX
25540  or DocBook, the format of \SpecialChar LyX
25541 's XHTML output is also controlled by
25542  layout information.
25543  In general, \SpecialChar LyX
25544  provides sensible defaults and, as mentioned earlier, it will
25545  even construct default CSS style rules from the other layout tags.
25546  For example, \SpecialChar LyX
25547  will attempt to use the information provided in the 
25548 \begin_inset Flex Code
25549 status collapsed
25550
25551 \begin_layout Plain Layout
25552 Font
25553 \end_layout
25554
25555 \end_inset
25556
25557  declaration for the Chapter style to write CSS that will appropriately
25558  format chapter headings.
25559 \end_layout
25560
25561 \begin_layout Standard
25562 In many cases, then, you may not have to do anything at all to get acceptable
25563  XHTML output for your own environments, custom insets, and so forth.
25564  But in some cases you will, and so \SpecialChar LyX
25565  provides a number of layout tags that
25566  can be used to customize the XHTML and CSS that are generated.
25567 \end_layout
25568
25569 \begin_layout Standard
25570 Note that there are two tags, 
25571 \begin_inset Flex Code
25572 status collapsed
25573
25574 \begin_layout Plain Layout
25575 HTMLPreamble
25576 \end_layout
25577
25578 \end_inset
25579
25580  and 
25581 \begin_inset Flex Code
25582 status collapsed
25583
25584 \begin_layout Plain Layout
25585 AddToHTMLPreamble
25586 \end_layout
25587
25588 \end_inset
25589
25590  that may appear outside style and inset declarations.
25591  See 
25592 \begin_inset CommandInset ref
25593 LatexCommand ref
25594 reference "subsec:General-text-class"
25595
25596 \end_inset
25597
25598  for details on these.
25599 \end_layout
25600
25601 \begin_layout Subsection
25602 \begin_inset CommandInset label
25603 LatexCommand label
25604 name "subsec:Paragraph-Style-XHTML"
25605
25606 \end_inset
25607
25608 Paragraph styles
25609 \end_layout
25610
25611 \begin_layout Standard
25612 The sort of XHTML \SpecialChar LyX
25613  outputs for a paragraph depends upon whether we are dealing
25614  with a normal paragraph, a command, or an environment, where this is itself
25615  determined by the contents of the corresponding 
25616 \begin_inset Flex Code
25617 status collapsed
25618
25619 \begin_layout Plain Layout
25620 \SpecialChar LaTeX
25621 Type
25622 \end_layout
25623
25624 \end_inset
25625
25626  tag.
25627  
25628 \end_layout
25629
25630 \begin_layout Standard
25631 For a command or normal paragraph, the output XHTML has the following form:
25632 \end_layout
25633
25634 \begin_layout LyX-Code
25635
25636 \family sans
25637 <tag attr=
25638 \begin_inset Quotes erd
25639 \end_inset
25640
25641 value
25642 \begin_inset Quotes erd
25643 \end_inset
25644
25645 >
25646 \end_layout
25647
25648 \begin_layout LyX-Code
25649
25650 \family sans
25651 <labeltag attr=
25652 \begin_inset Quotes erd
25653 \end_inset
25654
25655 value
25656 \begin_inset Quotes erd
25657 \end_inset
25658
25659 >Label</labeltag>
25660 \end_layout
25661
25662 \begin_layout LyX-Code
25663
25664 \family sans
25665 Contents of the paragraph.
25666 \end_layout
25667
25668 \begin_layout LyX-Code
25669
25670 \family sans
25671 </tag>
25672 \end_layout
25673
25674 \begin_layout Standard
25675 The label tags are of course omitted if the paragraph does not have a label.
25676 \end_layout
25677
25678 \begin_layout Standard
25679 For an environment that is not some sort of list, the XHTML takes this form:
25680 \end_layout
25681
25682 \begin_layout LyX-Code
25683
25684 \family sans
25685 <tag attr=
25686 \begin_inset Quotes erd
25687 \end_inset
25688
25689 value
25690 \begin_inset Quotes erd
25691 \end_inset
25692
25693 >
25694 \end_layout
25695
25696 \begin_layout LyX-Code
25697
25698 \family sans
25699 <itemtag attr=
25700 \begin_inset Quotes erd
25701 \end_inset
25702
25703 value
25704 \begin_inset Quotes erd
25705 \end_inset
25706
25707 ><labeltag attr=
25708 \begin_inset Quotes erd
25709 \end_inset
25710
25711 value
25712 \begin_inset Quotes erd
25713 \end_inset
25714
25715 >Environment Label</labeltag>First paragraph.</itemtag>
25716 \end_layout
25717
25718 \begin_layout LyX-Code
25719
25720 \family sans
25721 <itemtag>Second paragraph.</itemtag>
25722 \end_layout
25723
25724 \begin_layout LyX-Code
25725
25726 \family sans
25727 </tag>
25728 \end_layout
25729
25730 \begin_layout Standard
25731 Note that the label is output only for the first paragraph, as it should
25732  be for a theorem, for example.
25733  
25734 \end_layout
25735
25736 \begin_layout Standard
25737 For a list, we have one of these forms:
25738 \end_layout
25739
25740 \begin_layout LyX-Code
25741
25742 \family sans
25743 <tag attr=
25744 \begin_inset Quotes erd
25745 \end_inset
25746
25747 value
25748 \begin_inset Quotes erd
25749 \end_inset
25750
25751 >
25752 \end_layout
25753
25754 \begin_layout LyX-Code
25755
25756 \family sans
25757 <itemtag attr=
25758 \begin_inset Quotes erd
25759 \end_inset
25760
25761 value
25762 \begin_inset Quotes erd
25763 \end_inset
25764
25765 ><labeltag attr=
25766 \begin_inset Quotes erd
25767 \end_inset
25768
25769 value
25770 \begin_inset Quotes erd
25771 \end_inset
25772
25773 >List Label</labeltag>First item.</itemtag>
25774 \end_layout
25775
25776 \begin_layout LyX-Code
25777
25778 \family sans
25779 <itemtag attr=
25780 \begin_inset Quotes erd
25781 \end_inset
25782
25783 value
25784 \begin_inset Quotes erd
25785 \end_inset
25786
25787 ><labeltag attr=
25788 \begin_inset Quotes erd
25789 \end_inset
25790
25791 value
25792 \begin_inset Quotes erd
25793 \end_inset
25794
25795 >List Label</labeltag>Second item.</itemtag>
25796 \end_layout
25797
25798 \begin_layout LyX-Code
25799
25800 \family sans
25801 </tag>
25802 \end_layout
25803
25804 \begin_layout LyX-Code
25805
25806 \end_layout
25807
25808 \begin_layout LyX-Code
25809
25810 \family sans
25811 <tag attr=
25812 \begin_inset Quotes erd
25813 \end_inset
25814
25815 value
25816 \begin_inset Quotes erd
25817 \end_inset
25818
25819 >
25820 \end_layout
25821
25822 \begin_layout LyX-Code
25823
25824 \family sans
25825 <labeltag attr=
25826 \begin_inset Quotes erd
25827 \end_inset
25828
25829 value
25830 \begin_inset Quotes erd
25831 \end_inset
25832
25833 >List Label</labeltag><itemtag attr=
25834 \begin_inset Quotes erd
25835 \end_inset
25836
25837 value
25838 \begin_inset Quotes erd
25839 \end_inset
25840
25841 >First item.</itemtag>
25842 \end_layout
25843
25844 \begin_layout LyX-Code
25845
25846 \family sans
25847 <labeltag attr=
25848 \begin_inset Quotes erd
25849 \end_inset
25850
25851 value
25852 \begin_inset Quotes erd
25853 \end_inset
25854
25855 >List Label</labeltag><itemtag attr=
25856 \begin_inset Quotes erd
25857 \end_inset
25858
25859 value
25860 \begin_inset Quotes erd
25861 \end_inset
25862
25863 >Second item.</itemtag>
25864 \end_layout
25865
25866 \begin_layout LyX-Code
25867
25868 \family sans
25869 </tag>
25870 \end_layout
25871
25872 \begin_layout Standard
25873 Note the different orders of 
25874 \begin_inset Flex Code
25875 status collapsed
25876
25877 \begin_layout Plain Layout
25878 labeltag
25879 \end_layout
25880
25881 \end_inset
25882
25883  and 
25884 \begin_inset Flex Code
25885 status collapsed
25886
25887 \begin_layout Plain Layout
25888 itemtag
25889 \end_layout
25890
25891 \end_inset
25892
25893 .
25894  Which order we get depends upon the setting of 
25895 \begin_inset Flex Code
25896 status collapsed
25897
25898 \begin_layout Plain Layout
25899 HTMLLabelFirst
25900 \end_layout
25901
25902 \end_inset
25903
25904 : If 
25905 \begin_inset Flex Code
25906 status collapsed
25907
25908 \begin_layout Plain Layout
25909 HTMLLabelFirst
25910 \end_layout
25911
25912 \end_inset
25913
25914  is false (the default), you get the first of these, with the label within
25915  the item; if true, you get the second, with the label outside the item.
25916 \end_layout
25917
25918 \begin_layout Standard
25919 The specific tags and attributes output for each paragraph type can be controlle
25920 d by means of the layout tags we are about to describe.
25921  As mentioned earlier, however, \SpecialChar LyX
25922  uses sensible defaults for many of these,
25923  so you often may not need to do very much to get good XHTML output.
25924  Think of the available tags as there so you can tweak things to your liking.
25925 \end_layout
25926
25927 \begin_layout Description
25928 \begin_inset Flex Code
25929 status collapsed
25930
25931 \begin_layout Plain Layout
25932 HTMLAttr
25933 \end_layout
25934
25935 \end_inset
25936
25937  [
25938 \begin_inset Flex Code
25939 status collapsed
25940
25941 \begin_layout Plain Layout
25942 string
25943 \end_layout
25944
25945 \end_inset
25946
25947 ] Specifies attribute information to be output with the main tag.
25948  For example, 
25949 \begin_inset Quotes eld
25950 \end_inset
25951
25952
25953 \begin_inset Flex Code
25954 status collapsed
25955
25956 \begin_layout Plain Layout
25957 class=`mydiv'
25958 \end_layout
25959
25960 \end_inset
25961
25962
25963 \begin_inset Quotes erd
25964 \end_inset
25965
25966 .
25967  By default, \SpecialChar LyX
25968  will output 
25969 \begin_inset Quotes eld
25970 \end_inset
25971
25972
25973 \begin_inset Flex Code
25974 status collapsed
25975
25976 \begin_layout Plain Layout
25977 class=`layoutname'
25978 \end_layout
25979
25980 \end_inset
25981
25982
25983 \begin_inset Quotes erd
25984 \end_inset
25985
25986 , where 
25987 \begin_inset Flex Code
25988 status collapsed
25989
25990 \begin_layout Plain Layout
25991 layoutname
25992 \end_layout
25993
25994 \end_inset
25995
25996  is the \SpecialChar LyX
25997  name of the layout, made lowercase, for example: chapter.
25998  This should 
25999 \emph on
26000 not
26001 \emph default
26002  contain any style information.
26003  Use 
26004 \begin_inset Flex Code
26005 status collapsed
26006
26007 \begin_layout Plain Layout
26008 HTMLStyle
26009 \end_layout
26010
26011 \end_inset
26012
26013  for that purpose.
26014 \end_layout
26015
26016 \begin_layout Description
26017 \begin_inset Flex Code
26018 status collapsed
26019
26020 \begin_layout Plain Layout
26021 HTMLForceCSS
26022 \end_layout
26023
26024 \end_inset
26025
26026  [
26027 \begin_inset Flex Code
26028 status collapsed
26029
26030 \begin_layout Plain Layout
26031
26032 \emph on
26033 0
26034 \emph default
26035 ,1
26036 \end_layout
26037
26038 \end_inset
26039
26040 ] Whether to output the default CSS information \SpecialChar LyX
26041  generates for this layout,
26042  even if additional information is explicitly provided via 
26043 \begin_inset Flex Code
26044 status collapsed
26045
26046 \begin_layout Plain Layout
26047 HTMLStyle
26048 \end_layout
26049
26050 \end_inset
26051
26052 .
26053  Setting this to 
26054 \begin_inset Flex Code
26055 status collapsed
26056
26057 \begin_layout Plain Layout
26058 1
26059 \end_layout
26060
26061 \end_inset
26062
26063  allows you to alter or augment the generated CSS, rather than to override
26064  it completely.
26065  Default is 
26066 \begin_inset Flex Code
26067 status collapsed
26068
26069 \begin_layout Plain Layout
26070 0
26071 \end_layout
26072
26073 \end_inset
26074
26075 .
26076 \end_layout
26077
26078 \begin_layout Description
26079 \begin_inset Flex Code
26080 status collapsed
26081
26082 \begin_layout Plain Layout
26083 HTMLItem
26084 \end_layout
26085
26086 \end_inset
26087
26088  [
26089 \begin_inset Flex Code
26090 status collapsed
26091
26092 \begin_layout Plain Layout
26093 string
26094 \end_layout
26095
26096 \end_inset
26097
26098 ] The tag to be used for individual paragraphs of environments, replacing
26099  
26100 \begin_inset Flex Code
26101 status collapsed
26102
26103 \begin_layout Plain Layout
26104 itemtag
26105 \end_layout
26106
26107 \end_inset
26108
26109  in the examples above.
26110  Defaults to 
26111 \begin_inset Flex Code
26112 status collapsed
26113
26114 \begin_layout Plain Layout
26115 div
26116 \end_layout
26117
26118 \end_inset
26119
26120 .
26121 \end_layout
26122
26123 \begin_layout Description
26124 \begin_inset Flex Code
26125 status collapsed
26126
26127 \begin_layout Plain Layout
26128 HTMLItemAttr
26129 \end_layout
26130
26131 \end_inset
26132
26133  [
26134 \begin_inset Flex Code
26135 status collapsed
26136
26137 \begin_layout Plain Layout
26138 string
26139 \end_layout
26140
26141 \end_inset
26142
26143 ] Attributes for the item tag.
26144  Defaults to
26145 \begin_inset Newline newline
26146 \end_inset
26147
26148
26149 \begin_inset Quotes eld
26150 \end_inset
26151
26152
26153 \begin_inset Flex Code
26154 status collapsed
26155
26156 \begin_layout Plain Layout
26157 class=`layoutname_item'
26158 \end_layout
26159
26160 \end_inset
26161
26162
26163 \begin_inset Quotes erd
26164 \end_inset
26165
26166 .
26167  This should 
26168 \emph on
26169 not
26170 \emph default
26171  contain any style information.
26172  Use 
26173 \begin_inset Flex Code
26174 status collapsed
26175
26176 \begin_layout Plain Layout
26177 HTMLStyle
26178 \end_layout
26179
26180 \end_inset
26181
26182  for that purpose.
26183 \end_layout
26184
26185 \begin_layout Description
26186 \begin_inset Flex Code
26187 status collapsed
26188
26189 \begin_layout Plain Layout
26190 HTMLLabel
26191 \end_layout
26192
26193 \end_inset
26194
26195  [
26196 \begin_inset Flex Code
26197 status collapsed
26198
26199 \begin_layout Plain Layout
26200 string
26201 \end_layout
26202
26203 \end_inset
26204
26205 ] The tag to be used for paragraph and item labels, replacing 
26206 \begin_inset Flex Code
26207 status collapsed
26208
26209 \begin_layout Plain Layout
26210 labeltag
26211 \end_layout
26212
26213 \end_inset
26214
26215  in the examples above.
26216  Defaults to 
26217 \begin_inset Flex Code
26218 status collapsed
26219
26220 \begin_layout Plain Layout
26221 span
26222 \end_layout
26223
26224 \end_inset
26225
26226 , unless 
26227 \begin_inset Flex Code
26228 status collapsed
26229
26230 \begin_layout Plain Layout
26231 LabelType
26232 \end_layout
26233
26234 \end_inset
26235
26236  is either 
26237 \begin_inset Flex Code
26238 status collapsed
26239
26240 \begin_layout Plain Layout
26241 Top_Environment
26242 \end_layout
26243
26244 \end_inset
26245
26246  or 
26247 \begin_inset Flex Code
26248 status collapsed
26249
26250 \begin_layout Plain Layout
26251 Centered_Top_Environment
26252 \end_layout
26253
26254 \end_inset
26255
26256 , in which case it defaults to 
26257 \begin_inset Flex Code
26258 status collapsed
26259
26260 \begin_layout Plain Layout
26261 div
26262 \end_layout
26263
26264 \end_inset
26265
26266 .
26267 \end_layout
26268
26269 \begin_layout Description
26270 \begin_inset Flex Code
26271 status collapsed
26272
26273 \begin_layout Plain Layout
26274 HTMLLabelAttr
26275 \end_layout
26276
26277 \end_inset
26278
26279  [
26280 \begin_inset Flex Code
26281 status collapsed
26282
26283 \begin_layout Plain Layout
26284 string
26285 \end_layout
26286
26287 \end_inset
26288
26289 ] Attributes for the label tag.
26290  Defaults to
26291 \begin_inset Newline newline
26292 \end_inset
26293
26294
26295 \begin_inset Quotes eld
26296 \end_inset
26297
26298
26299 \begin_inset Flex Code
26300 status collapsed
26301
26302 \begin_layout Plain Layout
26303 class=`layoutname_label'
26304 \end_layout
26305
26306 \end_inset
26307
26308
26309 \begin_inset Quotes erd
26310 \end_inset
26311
26312 .
26313  This should 
26314 \emph on
26315 not
26316 \emph default
26317  contain any style information.
26318  Use 
26319 \begin_inset Flex Code
26320 status collapsed
26321
26322 \begin_layout Plain Layout
26323 HTMLStyle
26324 \end_layout
26325
26326 \end_inset
26327
26328  for that purpose.
26329 \end_layout
26330
26331 \begin_layout Description
26332 \begin_inset Flex Code
26333 status collapsed
26334
26335 \begin_layout Plain Layout
26336 HTMLLabelFirst
26337 \end_layout
26338
26339 \end_inset
26340
26341  [
26342 \begin_inset Flex Code
26343 status collapsed
26344
26345 \begin_layout Plain Layout
26346
26347 \emph on
26348 0
26349 \emph default
26350 ,1
26351 \end_layout
26352
26353 \end_inset
26354
26355 ] Meaningful only for list-like environments, this tag controls whether
26356  the label tag is output before or inside the item tag.
26357  This is used, for example, in the description environment, where we want
26358  `
26359 \begin_inset Flex Code
26360 status collapsed
26361
26362 \begin_layout Plain Layout
26363 <dt>\SpecialChar ldots
26364 </dt><dd>\SpecialChar ldots
26365 </dd>
26366 \end_layout
26367
26368 \end_inset
26369
26370 .
26371  Default is 
26372 \begin_inset Flex Code
26373 status collapsed
26374
26375 \begin_layout Plain Layout
26376 0
26377 \end_layout
26378
26379 \end_inset
26380
26381 : The label tag is output inside the item tag.
26382 \end_layout
26383
26384 \begin_layout Description
26385 \begin_inset Flex Code
26386 status collapsed
26387
26388 \begin_layout Plain Layout
26389 HTMLPreamble
26390 \end_layout
26391
26392 \end_inset
26393
26394  Information to be output in the 
26395 \begin_inset Flex Code
26396 status collapsed
26397
26398 \begin_layout Plain Layout
26399 <head>
26400 \end_layout
26401
26402 \end_inset
26403
26404  section when this style is used.
26405  This might, for example, be used to include a 
26406 \begin_inset Flex Code
26407 status collapsed
26408
26409 \begin_layout Plain Layout
26410 <script>
26411 \end_layout
26412
26413 \end_inset
26414
26415  block defining an 
26416 \begin_inset Flex Code
26417 status collapsed
26418
26419 \begin_layout Plain Layout
26420 onclick
26421 \end_layout
26422
26423 \end_inset
26424
26425  handler.
26426 \end_layout
26427
26428 \begin_layout Description
26429 \begin_inset Flex Code
26430 status collapsed
26431
26432 \begin_layout Plain Layout
26433 HTMLStyle
26434 \end_layout
26435
26436 \end_inset
26437
26438  CSS style information to be included when this style is used.
26439  Note that this will automatically be wrapped in a layout-generated 
26440 \begin_inset Flex Code
26441 status collapsed
26442
26443 \begin_layout Plain Layout
26444 <style>
26445 \end_layout
26446
26447 \end_inset
26448
26449  block, so only the CSS itself need be included.
26450  Must end with 
26451 \begin_inset Flex Code
26452 status collapsed
26453
26454 \begin_layout Plain Layout
26455 EndHTMLStyle
26456 \end_layout
26457
26458 \end_inset
26459
26460 .
26461 \end_layout
26462
26463 \begin_layout Description
26464 \begin_inset Flex Code
26465 status collapsed
26466
26467 \begin_layout Plain Layout
26468 HTMLTag
26469 \end_layout
26470
26471 \end_inset
26472
26473  [
26474 \begin_inset Flex Code
26475 status collapsed
26476
26477 \begin_layout Plain Layout
26478 string
26479 \end_layout
26480
26481 \end_inset
26482
26483 ] The tag to be used for the main label, replacing 
26484 \begin_inset Flex Code
26485 status collapsed
26486
26487 \begin_layout Plain Layout
26488 tag
26489 \end_layout
26490
26491 \end_inset
26492
26493  in the examples above.
26494  Defaults to 
26495 \begin_inset Flex Code
26496 status collapsed
26497
26498 \begin_layout Plain Layout
26499 div
26500 \end_layout
26501
26502 \end_inset
26503
26504 .
26505 \end_layout
26506
26507 \begin_layout Description
26508 \begin_inset Flex Code
26509 status collapsed
26510
26511 \begin_layout Plain Layout
26512 HTMLTitle
26513 \end_layout
26514
26515 \end_inset
26516
26517  [
26518 \begin_inset Flex Code
26519 status collapsed
26520
26521 \begin_layout Plain Layout
26522
26523 \emph on
26524 0
26525 \emph default
26526 ,1
26527 \end_layout
26528
26529 \end_inset
26530
26531 ] Marks this style as the one to be used to generate the 
26532 \begin_inset Flex Code
26533 status collapsed
26534
26535 \begin_layout Plain Layout
26536 <title>
26537 \end_layout
26538
26539 \end_inset
26540
26541  tag for the XHTML file.
26542  By default, it is false.
26543  The 
26544 \begin_inset Flex Code
26545 status collapsed
26546
26547 \begin_layout Plain Layout
26548 stdtitle.inc
26549 \end_layout
26550
26551 \end_inset
26552
26553  file sets it to true for the 
26554 \begin_inset Flex Code
26555 status collapsed
26556
26557 \begin_layout Plain Layout
26558 title
26559 \end_layout
26560
26561 \end_inset
26562
26563  environment.
26564  
26565 \end_layout
26566
26567 \begin_layout Subsection
26568 InsetLayout XHTML
26569 \end_layout
26570
26571 \begin_layout Standard
26572 The XHTML output of insets can also be controlled by information in layout
26573  files.
26574 \begin_inset Foot
26575 status collapsed
26576
26577 \begin_layout Plain Layout
26578 At present, this is true only for 
26579 \begin_inset Quotes eld
26580 \end_inset
26581
26582 text
26583 \begin_inset Quotes erd
26584 \end_inset
26585
26586  insets (insets you can type into) and is not true for 
26587 \begin_inset Quotes eld
26588 \end_inset
26589
26590 command
26591 \begin_inset Quotes erd
26592 \end_inset
26593
26594  insets (insets that are associated with dialog boxes).
26595 \end_layout
26596
26597 \end_inset
26598
26599  Here, too, \SpecialChar LyX
26600  tries to provide sensible defaults, and it constructs default
26601  CSS style rules.
26602  But everything can be customized.
26603 \end_layout
26604
26605 \begin_layout Standard
26606 The XHTML \SpecialChar LyX
26607  outputs for an inset has the following form:
26608 \end_layout
26609
26610 \begin_layout LyX-Code
26611 <tag attr=
26612 \begin_inset Quotes erd
26613 \end_inset
26614
26615 value
26616 \begin_inset Quotes erd
26617 \end_inset
26618
26619 >
26620 \end_layout
26621
26622 \begin_layout LyX-Code
26623 <labeltag>Label</labeltag>
26624 \end_layout
26625
26626 \begin_layout LyX-Code
26627 <innertag attr=
26628 \begin_inset Quotes erd
26629 \end_inset
26630
26631 value
26632 \begin_inset Quotes erd
26633 \end_inset
26634
26635 >Contents of the inset.</innertag>
26636 \end_layout
26637
26638 \begin_layout LyX-Code
26639 </tag>
26640 \end_layout
26641
26642 \begin_layout Standard
26643 If the inset permits multiple paragraphs—that is, if 
26644 \begin_inset Flex Code
26645 status collapsed
26646
26647 \begin_layout Plain Layout
26648 MultiPar
26649 \end_layout
26650
26651 \end_inset
26652
26653  is true—then the contents of the inset will itself be output as paragraphs
26654  formatted according to the styles used for those paragraphs (standard,
26655  quote, and the like).
26656  The label tag is of course omitted if the paragraph does not have a label
26657  and, at present, is always 
26658 \begin_inset Flex Code
26659 status collapsed
26660
26661 \begin_layout Plain Layout
26662 span
26663 \end_layout
26664
26665 \end_inset
26666
26667 .
26668  The inner tag is optional and, by default, does not appear.
26669 \end_layout
26670
26671 \begin_layout Standard
26672 The specific tags and attributes output for each inset can be controlled
26673  by means of the following layout tags.
26674 \end_layout
26675
26676 \begin_layout Description
26677 \begin_inset Flex Code
26678 status collapsed
26679
26680 \begin_layout Plain Layout
26681 HTMLAttr
26682 \end_layout
26683
26684 \end_inset
26685
26686  [
26687 \begin_inset Flex Code
26688 status collapsed
26689
26690 \begin_layout Plain Layout
26691 string
26692 \end_layout
26693
26694 \end_inset
26695
26696 ] Specifies attribute information to be output with the main tag.
26697  For example, 
26698 \begin_inset Quotes eld
26699 \end_inset
26700
26701
26702 \begin_inset Flex Code
26703 status collapsed
26704
26705 \begin_layout Plain Layout
26706 class=`myinset' onclick=`\SpecialChar ldots
26707 '
26708 \end_layout
26709
26710 \end_inset
26711
26712
26713 \begin_inset Quotes erd
26714 \end_inset
26715
26716 .
26717  By default, \SpecialChar LyX
26718  will output 
26719 \begin_inset Quotes eld
26720 \end_inset
26721
26722
26723 \begin_inset Flex Code
26724 status collapsed
26725
26726 \begin_layout Plain Layout
26727 class=`insetname'
26728 \end_layout
26729
26730 \end_inset
26731
26732
26733 \begin_inset Quotes erd
26734 \end_inset
26735
26736 , where 
26737 \begin_inset Flex Code
26738 status collapsed
26739
26740 \begin_layout Plain Layout
26741 insetname
26742 \end_layout
26743
26744 \end_inset
26745
26746  is the \SpecialChar LyX
26747  name of the inset, made lowercase and with non-alphanumeric characters
26748  converted to underscores, for example: footnote.
26749 \end_layout
26750
26751 \begin_layout Description
26752 \begin_inset Flex Code
26753 status collapsed
26754
26755 \begin_layout Plain Layout
26756 HTMLForceCSS
26757 \end_layout
26758
26759 \end_inset
26760
26761  [
26762 \begin_inset Flex Code
26763 status collapsed
26764
26765 \begin_layout Plain Layout
26766
26767 \emph on
26768 0
26769 \emph default
26770 ,1
26771 \end_layout
26772
26773 \end_inset
26774
26775 ] Whether to output the default CSS information \SpecialChar LyX
26776  generates for this layout,
26777  even if additional information is explicitly provided via 
26778 \begin_inset Flex Code
26779 status collapsed
26780
26781 \begin_layout Plain Layout
26782 HTMLStyle
26783 \end_layout
26784
26785 \end_inset
26786
26787 .
26788  Setting this to 
26789 \begin_inset Flex Code
26790 status collapsed
26791
26792 \begin_layout Plain Layout
26793 1
26794 \end_layout
26795
26796 \end_inset
26797
26798  allows you to alter or augment the generated CSS, rather than to override
26799  it completely.
26800  Default is 0.
26801 \end_layout
26802
26803 \begin_layout Description
26804 \begin_inset Flex Code
26805 status collapsed
26806
26807 \begin_layout Plain Layout
26808 HTMLInnerAttr
26809 \end_layout
26810
26811 \end_inset
26812
26813  [
26814 \begin_inset Flex Code
26815 status collapsed
26816
26817 \begin_layout Plain Layout
26818 string
26819 \end_layout
26820
26821 \end_inset
26822
26823 ] Attributes for the inner tag.
26824  Defaults to
26825 \begin_inset Newline newline
26826 \end_inset
26827
26828
26829 \begin_inset Quotes eld
26830 \end_inset
26831
26832
26833 \begin_inset Flex Code
26834 status collapsed
26835
26836 \begin_layout Plain Layout
26837 class=`insetname_inner'
26838 \end_layout
26839
26840 \end_inset
26841
26842
26843 \begin_inset Quotes erd
26844 \end_inset
26845
26846 .
26847 \end_layout
26848
26849 \begin_layout Description
26850 \begin_inset Flex Code
26851 status collapsed
26852
26853 \begin_layout Plain Layout
26854 HTMLInnerTag
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 ] The inner tag, replacing 
26870 \begin_inset Flex Code
26871 status collapsed
26872
26873 \begin_layout Plain Layout
26874 innertag
26875 \end_layout
26876
26877 \end_inset
26878
26879  in the examples above.
26880  By default, there is none.
26881 \end_layout
26882
26883 \begin_layout Description
26884 \begin_inset Flex Code
26885 status collapsed
26886
26887 \begin_layout Plain Layout
26888 HTMLIsBlock
26889 \end_layout
26890
26891 \end_inset
26892
26893  [
26894 \begin_inset Flex Code
26895 status collapsed
26896
26897 \begin_layout Plain Layout
26898 0,
26899 \emph on
26900 1
26901 \end_layout
26902
26903 \end_inset
26904
26905 ] Whether this inset represents a standalone block of text (such as a footnote)
26906  or instead represents material that is included in the surrounding text
26907  (such as a branch).
26908  Defaults to 1.
26909 \end_layout
26910
26911 \begin_layout Description
26912 \begin_inset Flex Code
26913 status collapsed
26914
26915 \begin_layout Plain Layout
26916 HTMLLabel
26917 \end_layout
26918
26919 \end_inset
26920
26921  [
26922 \begin_inset Flex Code
26923 status collapsed
26924
26925 \begin_layout Plain Layout
26926 string
26927 \end_layout
26928
26929 \end_inset
26930
26931 ] A label for this inset, possibly including a reference to a counter.
26932  For example, for footnote, it might be: 
26933 \begin_inset Flex Code
26934 status collapsed
26935
26936 \begin_layout Plain Layout
26937
26938 \backslash
26939 arabic{footnote}
26940 \end_layout
26941
26942 \end_inset
26943
26944 .
26945  This is optional, and there is no default.
26946 \end_layout
26947
26948 \begin_layout Description
26949 \begin_inset Flex Code
26950 status collapsed
26951
26952 \begin_layout Plain Layout
26953 HTMLPreamble
26954 \end_layout
26955
26956 \end_inset
26957
26958  Information to be output in the 
26959 \begin_inset Flex Code
26960 status collapsed
26961
26962 \begin_layout Plain Layout
26963 <head>
26964 \end_layout
26965
26966 \end_inset
26967
26968  section when this style is used.
26969  This might, for example, be used to include a 
26970 \begin_inset Flex Code
26971 status collapsed
26972
26973 \begin_layout Plain Layout
26974 <script>
26975 \end_layout
26976
26977 \end_inset
26978
26979  block defining an 
26980 \begin_inset Flex Code
26981 status collapsed
26982
26983 \begin_layout Plain Layout
26984 onclick
26985 \end_layout
26986
26987 \end_inset
26988
26989  handler.
26990 \end_layout
26991
26992 \begin_layout Description
26993 \begin_inset Flex Code
26994 status collapsed
26995
26996 \begin_layout Plain Layout
26997 HTMLStyle
26998 \end_layout
26999
27000 \end_inset
27001
27002  CSS style information to be included when this style is used.
27003  Note that this will automatically be wrapped in a layout-generated 
27004 \begin_inset Flex Code
27005 status collapsed
27006
27007 \begin_layout Plain Layout
27008 <style>
27009 \end_layout
27010
27011 \end_inset
27012
27013  block, so only the CSS itself need be included.
27014 \end_layout
27015
27016 \begin_layout Description
27017 \begin_inset Flex Code
27018 status collapsed
27019
27020 \begin_layout Plain Layout
27021 HTMLTag
27022 \end_layout
27023
27024 \end_inset
27025
27026  [
27027 \begin_inset Flex Code
27028 status collapsed
27029
27030 \begin_layout Plain Layout
27031 string
27032 \end_layout
27033
27034 \end_inset
27035
27036 ] The tag to be used for the main label, replacing 
27037 \begin_inset Flex Code
27038 status collapsed
27039
27040 \begin_layout Plain Layout
27041 tag
27042 \end_layout
27043
27044 \end_inset
27045
27046  in the examples above.
27047  The default depends upon the setting of 
27048 \begin_inset Flex Code
27049 status collapsed
27050
27051 \begin_layout Plain Layout
27052 MultiPar
27053 \end_layout
27054
27055 \end_inset
27056
27057 : If 
27058 \begin_inset Flex Code
27059 status collapsed
27060
27061 \begin_layout Plain Layout
27062 MultiPar
27063 \end_layout
27064
27065 \end_inset
27066
27067  is true, the default is 
27068 \begin_inset Flex Code
27069 status collapsed
27070
27071 \begin_layout Plain Layout
27072 div
27073 \end_layout
27074
27075 \end_inset
27076
27077 ; if it is false, the default is 
27078 \begin_inset Flex Code
27079 status collapsed
27080
27081 \begin_layout Plain Layout
27082 span
27083 \end_layout
27084
27085 \end_inset
27086
27087 .
27088 \end_layout
27089
27090 \begin_layout Subsection
27091 Float XHTML
27092 \end_layout
27093
27094 \begin_layout Standard
27095 The XHTML output for floats too can be controlled by layout information.
27096  The output has the following form:
27097 \end_layout
27098
27099 \begin_layout LyX-Code
27100 <tag attr=
27101 \begin_inset Quotes erd
27102 \end_inset
27103
27104 value
27105 \begin_inset Quotes erd
27106 \end_inset
27107
27108 >
27109 \end_layout
27110
27111 \begin_layout LyX-Code
27112 Contents of the float.
27113 \end_layout
27114
27115 \begin_layout LyX-Code
27116 </tag>
27117 \end_layout
27118
27119 \begin_layout Standard
27120 The caption, if there is one, is a separate inset and will be output as
27121  such.
27122  Its appearance can be controlled via the InsetLayout for caption insets.
27123  
27124 \end_layout
27125
27126 \begin_layout Description
27127 \begin_inset Flex Code
27128 status collapsed
27129
27130 \begin_layout Plain Layout
27131 HTMLAttr
27132 \end_layout
27133
27134 \end_inset
27135
27136  [
27137 \begin_inset Flex Code
27138 status collapsed
27139
27140 \begin_layout Plain Layout
27141 string
27142 \end_layout
27143
27144 \end_inset
27145
27146 ] Specifies attribute information to be output with the main tag.
27147  For example, 
27148 \begin_inset Quotes eld
27149 \end_inset
27150
27151
27152 \begin_inset Flex Code
27153 status collapsed
27154
27155 \begin_layout Plain Layout
27156 class=`myfloat' onclick=`\SpecialChar ldots
27157 '
27158 \end_layout
27159
27160 \end_inset
27161
27162
27163 \begin_inset Quotes erd
27164 \end_inset
27165
27166 .
27167  By default, \SpecialChar LyX
27168  will output 
27169 \begin_inset Quotes eld
27170 \end_inset
27171
27172
27173 \begin_inset Flex Code
27174 status collapsed
27175
27176 \begin_layout Plain Layout
27177 class=`float float-floattype'
27178 \end_layout
27179
27180 \end_inset
27181
27182
27183 \begin_inset Quotes erd
27184 \end_inset
27185
27186 , where 
27187 \begin_inset Flex Code
27188 status collapsed
27189
27190 \begin_layout Plain Layout
27191 floattype
27192 \end_layout
27193
27194 \end_inset
27195
27196  is \SpecialChar LyX
27197 's name for this type of float, as determined by the float declaration
27198  (see 
27199 \begin_inset CommandInset ref
27200 LatexCommand ref
27201 reference "subsec:Floats"
27202
27203 \end_inset
27204
27205 ), though made lowercase and with non-alphanumeric characters converted
27206  to underscores, for example: float-table.
27207 \end_layout
27208
27209 \begin_layout Description
27210 \begin_inset Flex Code
27211 status collapsed
27212
27213 \begin_layout Plain Layout
27214 HTMLStyle
27215 \end_layout
27216
27217 \end_inset
27218
27219  CSS style information to be included when this float is used.
27220  Note that this will automatically be wrapped in a layout-generated 
27221 \begin_inset Flex Code
27222 status collapsed
27223
27224 \begin_layout Plain Layout
27225 <style>
27226 \end_layout
27227
27228 \end_inset
27229
27230  block, so only the CSS itself need be included.
27231 \end_layout
27232
27233 \begin_layout Description
27234 \begin_inset Flex Code
27235 status collapsed
27236
27237 \begin_layout Plain Layout
27238 HTMLTag
27239 \end_layout
27240
27241 \end_inset
27242
27243  [
27244 \begin_inset Flex Code
27245 status collapsed
27246
27247 \begin_layout Plain Layout
27248 string
27249 \end_layout
27250
27251 \end_inset
27252
27253 ] The tag to be used for this float, replacing 
27254 \begin_inset Quotes eld
27255 \end_inset
27256
27257
27258 \begin_inset Flex Code
27259 status collapsed
27260
27261 \begin_layout Plain Layout
27262 tag
27263 \end_layout
27264
27265 \end_inset
27266
27267
27268 \begin_inset Quotes erd
27269 \end_inset
27270
27271  in the example above.
27272  The default is 
27273 \begin_inset Flex Code
27274 status collapsed
27275
27276 \begin_layout Plain Layout
27277 div
27278 \end_layout
27279
27280 \end_inset
27281
27282  and will rarely need changing.
27283 \end_layout
27284
27285 \begin_layout Subsection
27286 Bibliography formatting
27287 \end_layout
27288
27289 \begin_layout Standard
27290 The bibliography can be formatted using 
27291 \begin_inset Flex Code
27292 status collapsed
27293
27294 \begin_layout Plain Layout
27295 CiteFormat
27296 \end_layout
27297
27298 \end_inset
27299
27300  blocks.
27301  See 
27302 \begin_inset CommandInset ref
27303 LatexCommand ref
27304 reference "subsec:Citation-format-description"
27305
27306 \end_inset
27307
27308  for the details.
27309 \end_layout
27310
27311 \begin_layout Subsection
27312 \SpecialChar LyX
27313 -generated CSS
27314 \end_layout
27315
27316 \begin_layout Standard
27317 We have several times mentioned that \SpecialChar LyX
27318  will generate default CSS style rules
27319  for both insets and paragraph styles, based upon the other layout information
27320  that is provided.
27321  In this section, we shall say a word about which layout information \SpecialChar LyX
27322  uses
27323  and how.
27324 \end_layout
27325
27326 \begin_layout Standard
27327 At present, \SpecialChar LyX
27328  auto-generates CSS only for font information, making use of
27329  the 
27330 \begin_inset Flex Code
27331 status collapsed
27332
27333 \begin_layout Plain Layout
27334 Family
27335 \end_layout
27336
27337 \end_inset
27338
27339
27340 \begin_inset Flex Code
27341 status collapsed
27342
27343 \begin_layout Plain Layout
27344 Series
27345 \end_layout
27346
27347 \end_inset
27348
27349
27350 \begin_inset Flex Code
27351 status collapsed
27352
27353 \begin_layout Plain Layout
27354 Shape
27355 \end_layout
27356
27357 \end_inset
27358
27359 , and 
27360 \begin_inset Flex Code
27361 status collapsed
27362
27363 \begin_layout Plain Layout
27364 Size
27365 \end_layout
27366
27367 \end_inset
27368
27369  specified in the 
27370 \begin_inset Flex Code
27371 status collapsed
27372
27373 \begin_layout Plain Layout
27374 Font
27375 \end_layout
27376
27377 \end_inset
27378
27379  declaration (see 
27380 \begin_inset CommandInset ref
27381 LatexCommand ref
27382 reference "subsec:Font-description"
27383
27384 \end_inset
27385
27386 ).
27387  The translation is mostly straightforward and obvious.
27388  For example, 
27389 \begin_inset Quotes eld
27390 \end_inset
27391
27392
27393 \begin_inset Flex Code
27394 status collapsed
27395
27396 \begin_layout Plain Layout
27397 Family Sans
27398 \end_layout
27399
27400 \end_inset
27401
27402
27403 \begin_inset Quotes erd
27404 \end_inset
27405
27406  becomes 
27407 \begin_inset Quotes eld
27408 \end_inset
27409
27410
27411 \begin_inset Flex Code
27412 status collapsed
27413
27414 \begin_layout Plain Layout
27415 font-family: sans-serif;
27416 \end_layout
27417
27418 \end_inset
27419
27420
27421 \begin_inset Quotes erd
27422 \end_inset
27423
27424 .
27425  The correspondence of \SpecialChar LyX
27426  sizes and CSS sizes is a little less obvious but
27427  nonetheless intuitive.
27428  See the 
27429 \begin_inset Flex Code
27430 status collapsed
27431
27432 \begin_layout Plain Layout
27433 getSizeCSS()
27434 \end_layout
27435
27436 \end_inset
27437
27438  function in 
27439 \begin_inset Flex URL
27440 status collapsed
27441
27442 \begin_layout Plain Layout
27443
27444 src/FontInfo.cpp
27445 \end_layout
27446
27447 \end_inset
27448
27449  for the details.
27450 \change_inserted -970929547 1496610908
27451
27452 \end_layout
27453
27454 \begin_layout Section
27455
27456 \change_inserted -970929547 1496610966
27457 \begin_inset CommandInset label
27458 LatexCommand label
27459 name "sec:Tags-for-DocBook"
27460
27461 \end_inset
27462
27463 Tags for DocBook output
27464 \end_layout
27465
27466 \begin_layout Standard
27467
27468 \change_inserted -970929547 1496611615
27469 As with \SpecialChar LaTeX
27470  or XHTML, the format of \SpecialChar LyX
27471 's DocBook output is also controlled by
27472  layout information.
27473  In general, \SpecialChar LyX
27474  provides sensible defaults; however, much of the styling is
27475  lost during the conversion, as DocBook is strictly semantic and does not
27476  allow formatting.
27477  When possible, information from \SpecialChar LyX
27478  will be rendered in 
27479 \family typewriter
27480 role
27481 \family default
27482  attributes.
27483  
27484 \end_layout
27485
27486 \begin_layout Standard
27487
27488 \change_inserted -970929547 1496612080
27489 In many cases, then, you may not have to do anything at all to get acceptable
27490  DocBook output for your own environments, custom insets, and so forth.
27491  But in some cases you will, and so \SpecialChar LyX
27492  provides a number of layout tags that
27493  can be used to customize the DocBook that is generated.
27494 \end_layout
27495
27496 \begin_layout Standard
27497
27498 \change_inserted -970929547 1515109912
27499 Labels are rarely output, as they are redundant in DocBook: this information
27500  is carried by the tags themselves, and whether labels appear in the final
27501  documents (after processing of DocBook files) is controlled by the stylesheets.
27502  However, sometimes, labels are not redundant content, such as definition
27503  lists: in this case, the term being defined will be the label.
27504  
27505 \end_layout
27506
27507 \begin_layout Subsection
27508
27509 \change_inserted 1075283030 1597699417
27510 \begin_inset CommandInset label
27511 LatexCommand label
27512 name "subsec:Paragraph-Style-DocBook"
27513
27514 \end_inset
27515
27516
27517 \change_deleted 1075283030 1597699417
27518
27519 \begin_inset CommandInset label
27520 LatexCommand label
27521 name "subsec:Paragraph-Style-XHTML-1"
27522
27523 \end_inset
27524
27525
27526 \change_inserted -970929547 1496610966
27527 Paragraph styles
27528 \end_layout
27529
27530 \begin_layout Standard
27531
27532 \change_inserted -970929547 1496612059
27533 The sort of DocBook \SpecialChar LyX
27534  outputs for a paragraph depends upon whether we are
27535  dealing with a normal paragraph, a command, or an environment, where this
27536  is itself determined by the contents of the corresponding 
27537 \begin_inset Flex Code
27538 status collapsed
27539
27540 \begin_layout Plain Layout
27541
27542 \change_inserted -970929547 1496610966
27543 \SpecialChar LaTeX
27544 Type
27545 \change_unchanged
27546
27547 \end_layout
27548
27549 \end_inset
27550
27551  tag.
27552  
27553 \end_layout
27554
27555 \begin_layout Standard
27556
27557 \change_inserted -970929547 1496612107
27558 For a command or normal paragraph, the output DocBook has the following
27559  form:
27560 \end_layout
27561
27562 \begin_layout LyX-Code
27563
27564 \change_inserted -970929547 1515109666
27565 <tag attr>
27566 \end_layout
27567
27568 \begin_layout LyX-Code
27569
27570 \change_inserted -970929547 1496610966
27571 Contents of the paragraph.
27572 \end_layout
27573
27574 \begin_layout LyX-Code
27575
27576 \change_inserted -970929547 1496610966
27577 </tag>
27578 \end_layout
27579
27580 \begin_layout Standard
27581
27582 \change_inserted -970929547 1515109821
27583 For an environment that is not some sort of list, the generated DocBook
27584  takes this form:
27585 \end_layout
27586
27587 \begin_layout LyX-Code
27588
27589 \change_inserted -970929547 1515109671
27590 <tag attr>
27591 \end_layout
27592
27593 \begin_layout LyX-Code
27594
27595 \change_inserted -970929547 1496612114
27596 <itemtag>First paragraph.</itemtag>
27597 \end_layout
27598
27599 \begin_layout LyX-Code
27600
27601 \change_inserted -970929547 1496610966
27602 <itemtag>Second paragraph.</itemtag>
27603 \end_layout
27604
27605 \begin_layout LyX-Code
27606
27607 \change_inserted -970929547 1496610966
27608 </tag>
27609 \end_layout
27610
27611 \begin_layout Standard
27612
27613 \change_inserted -970929547 1515109825
27614 For a list, the resulting DocBook takes this form:
27615 \end_layout
27616
27617 \begin_layout LyX-Code
27618
27619 \change_inserted -970929547 1515109672
27620 <tag attr>
27621 \end_layout
27622
27623 \begin_layout LyX-Code
27624
27625 \change_inserted -970929547 1515109676
27626 <itemtag attr>First item.</itemtag>
27627 \end_layout
27628
27629 \begin_layout LyX-Code
27630
27631 \change_inserted -970929547 1515109678
27632 <itemtag attr>Second item.</itemtag>
27633 \end_layout
27634
27635 \begin_layout LyX-Code
27636
27637 \change_inserted -970929547 1496610966
27638 </tag>
27639 \end_layout
27640
27641 \begin_layout Standard
27642
27643 \change_inserted -970929547 1496612243
27644 The specific tags and roles output for each paragraph type can be controlled
27645  by means of the layout tags we are about to describe.
27646  Please note that, due to the very nature of DocBook, no sensible defaults
27647  really exist, and the values must always be carefully chosen.
27648  
27649 \end_layout
27650
27651 \begin_layout Description
27652
27653 \change_inserted -970929547 1515110057
27654 \begin_inset Flex Code
27655 status collapsed
27656
27657 \begin_layout Plain Layout
27658
27659 \change_inserted -970929547 1515109656
27660 DocBookAttr
27661 \change_unchanged
27662
27663 \end_layout
27664
27665 \end_inset
27666
27667  [
27668 \begin_inset Flex Code
27669 status collapsed
27670
27671 \begin_layout Plain Layout
27672
27673 \change_inserted -970929547 1496610966
27674 string
27675 \change_unchanged
27676
27677 \end_layout
27678
27679 \end_inset
27680
27681 ] Specifies attribute information to be output with the main tag, replacing
27682  
27683 \begin_inset Quotes eld
27684 \end_inset
27685
27686
27687 \begin_inset Flex Code
27688 status collapsed
27689
27690 \begin_layout Plain Layout
27691
27692 \change_inserted -970929547 1515110057
27693 attr
27694 \change_unchanged
27695
27696 \end_layout
27697
27698 \end_inset
27699
27700
27701 \begin_inset Quotes erd
27702 \end_inset
27703
27704  in the example above.
27705  This information can be used in further processing of the DocBook files.
27706  
27707 \change_unchanged
27708
27709 \end_layout
27710
27711 \begin_layout Description
27712
27713 \change_inserted -970929547 1496612296
27714 \begin_inset Flex Code
27715 status collapsed
27716
27717 \begin_layout Plain Layout
27718
27719 \change_inserted -970929547 1496612269
27720 DocBookTag
27721 \change_unchanged
27722
27723 \end_layout
27724
27725 \end_inset
27726
27727  [
27728 \begin_inset Flex Code
27729 status collapsed
27730
27731 \begin_layout Plain Layout
27732
27733 \change_inserted -970929547 1496610966
27734 string
27735 \change_unchanged
27736
27737 \end_layout
27738
27739 \end_inset
27740
27741 ] The tag to be used for this inset, replacing 
27742 \begin_inset Quotes eld
27743 \end_inset
27744
27745
27746 \begin_inset Flex Code
27747 status collapsed
27748
27749 \begin_layout Plain Layout
27750
27751 \change_inserted -970929547 1496612296
27752 tag
27753 \change_unchanged
27754
27755 \end_layout
27756
27757 \end_inset
27758
27759
27760 \begin_inset Quotes erd
27761 \end_inset
27762
27763  in the example above.
27764  The default is the name of the float and always needs to be changed, as
27765  DocBook provides no generic tag.
27766 \change_inserted 1075283030 1597698868
27767
27768 \end_layout
27769
27770 \begin_layout Description
27771
27772 \change_inserted 1075283030 1597699399
27773 \begin_inset Flex Code
27774 status collapsed
27775
27776 \begin_layout Plain Layout
27777
27778 \change_inserted 1075283030 1597698872
27779 DocBookTagType
27780 \change_unchanged
27781
27782 \end_layout
27783
27784 \end_inset
27785
27786  [
27787 \begin_inset Flex Code
27788 status collapsed
27789
27790 \begin_layout Plain Layout
27791
27792 \change_inserted 1075283030 1597700585
27793 block, paragraph, inline
27794 \change_unchanged
27795
27796 \end_layout
27797
27798 \end_inset
27799
27800 ] The new-line policy for this tag, see Section
27801 \begin_inset space ~
27802 \end_inset
27803
27804
27805 \begin_inset CommandInset ref
27806 LatexCommand ref
27807 reference "subsec:DocBook-New-line-policy"
27808 plural "false"
27809 caps "false"
27810 noprefix "false"
27811
27812 \end_inset
27813
27814  for the details.
27815  
27816 \change_unchanged
27817
27818 \end_layout
27819
27820 \begin_layout Subsection
27821
27822 \change_inserted 1075283030 1597699385
27823 New-line policy
27824 \begin_inset CommandInset label
27825 LatexCommand label
27826 name "subsec:DocBook-New-line-policy"
27827
27828 \end_inset
27829
27830
27831 \end_layout
27832
27833 \begin_layout Standard
27834
27835 \change_inserted 1075283030 1597698993
27836 For all tags, there are three possible policies for outputting new lines
27837  (given in the 
27838 \begin_inset Flex Code
27839 status collapsed
27840
27841 \begin_layout Plain Layout
27842
27843 \change_inserted 1075283030 1597698987
27844 DocBook*TagType
27845 \change_unchanged
27846
27847 \end_layout
27848
27849 \end_inset
27850
27851  attribute): 
27852 \end_layout
27853
27854 \begin_layout Itemize
27855
27856 \change_inserted 1075283030 1597699279
27857 \begin_inset Quotes eld
27858 \end_inset
27859
27860
27861 \begin_inset Flex Code
27862 status collapsed
27863
27864 \begin_layout Plain Layout
27865
27866 \change_inserted 1075283030 1597699012
27867 block
27868 \change_unchanged
27869
27870 \end_layout
27871
27872 \end_inset
27873
27874
27875 \begin_inset Quotes erd
27876 \end_inset
27877
27878 : the opening and closing tags are on their own lines (i.e.
27879  a line feed after and before the opening and the closing tags).
27880  Typical elements are floats.
27881  For instance: 
27882 \end_layout
27883
27884 \begin_layout LyX-Code
27885
27886 \change_inserted 1075283030 1597699194
27887 Content before
27888 \end_layout
27889
27890 \begin_layout LyX-Code
27891
27892 \change_inserted 1075283030 1597699194
27893 <blocktag>
27894 \end_layout
27895
27896 \begin_layout LyX-Code
27897
27898 \change_inserted 1075283030 1597699098
27899   Contents of the block.
27900 \end_layout
27901
27902 \begin_layout LyX-Code
27903
27904 \change_inserted 1075283030 1597699196
27905 </blocktag>
27906 \end_layout
27907
27908 \begin_layout LyX-Code
27909
27910 \change_inserted 1075283030 1597699198
27911 Content after
27912 \end_layout
27913
27914 \begin_layout Itemize
27915
27916 \change_inserted 1075283030 1597699289
27917 \begin_inset Quotes eld
27918 \end_inset
27919
27920
27921 \begin_inset Flex Code
27922 status collapsed
27923
27924 \begin_layout Plain Layout
27925
27926 \change_inserted 1075283030 1597699113
27927 paragraph
27928 \change_unchanged
27929
27930 \end_layout
27931
27932 \end_inset
27933
27934
27935 \begin_inset Quotes erd
27936 \end_inset
27937
27938 : the opening and closing tags are on the same, new line; a line feed is
27939  output before the opening tag and after the closing tag.
27940  Typical elements are paragraphs and list items.
27941  For instance: 
27942 \end_layout
27943
27944 \begin_layout LyX-Code
27945
27946 \change_inserted 1075283030 1597699186
27947 Content before
27948 \end_layout
27949
27950 \begin_layout LyX-Code
27951
27952 \change_inserted 1075283030 1597699357
27953 <paratag>Contents of the paragraph.</paratag>
27954 \end_layout
27955
27956 \begin_layout LyX-Code
27957
27958 \change_inserted 1075283030 1597699231
27959 Content after
27960 \end_layout
27961
27962 \begin_layout Itemize
27963
27964 \change_inserted 1075283030 1597699343
27965 \begin_inset Quotes eld
27966 \end_inset
27967
27968
27969 \begin_inset Flex Code
27970 status collapsed
27971
27972 \begin_layout Plain Layout
27973
27974 \change_inserted 1075283030 1597699307
27975 inline
27976 \change_unchanged
27977
27978 \end_layout
27979
27980 \end_inset
27981
27982
27983 \begin_inset Quotes erd
27984 \end_inset
27985
27986 : the opening and closing tags are on the same line as the rest of the content.
27987  No line feeds are output.
27988  Typical elements are fonts.
27989  For instance: 
27990 \end_layout
27991
27992 \begin_layout LyX-Code
27993
27994 \change_inserted 1075283030 1597699585
27995 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
27996 \end_layout
27997
27998 \begin_layout Standard
27999
28000 \change_inserted 1075283030 1597699585
28001 The default value is always 
28002 \begin_inset Quotes eld
28003 \end_inset
28004
28005
28006 \begin_inset Flex Code
28007 status collapsed
28008
28009 \begin_layout Plain Layout
28010
28011 \change_inserted 1075283030 1597699585
28012 block
28013 \change_unchanged
28014
28015 \end_layout
28016
28017 \end_inset
28018
28019
28020 \begin_inset Quotes erd
28021 \end_inset
28022
28023 .
28024 \change_unchanged
28025
28026 \end_layout
28027
28028 \begin_layout Subsection
28029
28030 \change_inserted -970929547 1515111533
28031 InsetLayout DocBook
28032 \change_unchanged
28033
28034 \end_layout
28035
28036 \begin_layout Standard
28037
28038 \change_inserted -970929547 1496611894
28039 The DocBook output of insets can also be controlled by information in layout
28040  files.
28041 \end_layout
28042
28043 \begin_layout Standard
28044
28045 \change_inserted -970929547 1496612045
28046 The DocBook \SpecialChar LyX
28047  outputs for an inset has the following form:
28048 \end_layout
28049
28050 \begin_layout LyX-Code
28051
28052 \change_inserted -970929547 1515110861
28053 <wrappertag wrapperattr>
28054 \end_layout
28055
28056 \begin_layout LyX-Code
28057
28058 \change_inserted -970929547 1515110868
28059   <tag attr>
28060 \end_layout
28061
28062 \begin_layout LyX-Code
28063
28064 \change_inserted -970929547 1515110869
28065     <innertag innerattr>
28066 \end_layout
28067
28068 \begin_layout LyX-Code
28069
28070 \change_inserted -970929547 1515110869
28071       Contents of the inset.
28072 \end_layout
28073
28074 \begin_layout LyX-Code
28075
28076 \change_inserted -970929547 1515110870
28077     </innertag>
28078 \end_layout
28079
28080 \begin_layout LyX-Code
28081
28082 \change_inserted -970929547 1515110871
28083   </tag>
28084 \end_layout
28085
28086 \begin_layout LyX-Code
28087
28088 \change_inserted -970929547 1515111172
28089 </wrappertag>
28090 \end_layout
28091
28092 \begin_layout Standard
28093
28094 \change_inserted -970929547 1515111186
28095 For an itemising inset, it rather looks like this: 
28096 \end_layout
28097
28098 \begin_layout LyX-Code
28099
28100 \change_inserted -970929547 1515111186
28101 <wrappertag wrapperattr>
28102 \end_layout
28103
28104 \begin_layout LyX-Code
28105
28106 \change_inserted -970929547 1515111186
28107   <tag attr>
28108 \end_layout
28109
28110 \begin_layout LyX-Code
28111
28112 \change_inserted -970929547 1515111186
28113     <innertag innerattr>
28114 \end_layout
28115
28116 \begin_layout LyX-Code
28117
28118 \change_inserted -970929547 1515111362
28119       <itemwrappertag itemwrapperattr>
28120 \end_layout
28121
28122 \begin_layout LyX-Code
28123
28124 \change_inserted -970929547 1515111364
28125         <itemlabeltag itemattr>
28126 \end_layout
28127
28128 \begin_layout LyX-Code
28129
28130 \change_inserted -970929547 1515111367
28131           Label of the first item.
28132 \end_layout
28133
28134 \begin_layout LyX-Code
28135
28136 \change_inserted -970929547 1515111362
28137         </itemtag>
28138 \change_unchanged
28139
28140 \end_layout
28141
28142 \begin_layout LyX-Code
28143
28144 \change_inserted -970929547 1515111517
28145         <itemtag itemattr>
28146 \end_layout
28147
28148 \begin_layout LyX-Code
28149
28150 \change_inserted -970929547 1515111517
28151           <itemtag itemattr>
28152 \change_unchanged
28153
28154 \end_layout
28155
28156 \begin_layout LyX-Code
28157
28158 \change_inserted -970929547 1515111516
28159             Contents of the first item.
28160 \end_layout
28161
28162 \begin_layout LyX-Code
28163
28164 \change_inserted -970929547 1515111514
28165           </itemtag>
28166 \change_unchanged
28167
28168 \end_layout
28169
28170 \begin_layout LyX-Code
28171
28172 \change_inserted -970929547 1515111247
28173         </itemtag>
28174 \change_unchanged
28175
28176 \end_layout
28177
28178 \begin_layout LyX-Code
28179
28180 \change_inserted -970929547 1515111221
28181       </itemwrappertag>
28182 \end_layout
28183
28184 \begin_layout LyX-Code
28185
28186 \change_inserted -970929547 1515111370
28187       <itemwrappertag itemwrapperattr>
28188 \end_layout
28189
28190 \begin_layout LyX-Code
28191
28192 \change_inserted -970929547 1515111370
28193         <itemlabeltag itemattr>
28194 \end_layout
28195
28196 \begin_layout LyX-Code
28197
28198 \change_inserted -970929547 1515111372
28199           Label of the second item.
28200 \end_layout
28201
28202 \begin_layout LyX-Code
28203
28204 \change_inserted -970929547 1515111370
28205         </itemtag>
28206 \change_unchanged
28207
28208 \end_layout
28209
28210 \begin_layout LyX-Code
28211
28212 \change_inserted -970929547 1515111504
28213         <itemtag itemattr>
28214 \end_layout
28215
28216 \begin_layout LyX-Code
28217
28218 \change_inserted -970929547 1515111505
28219           <itemtag itemattr>
28220 \change_unchanged
28221
28222 \end_layout
28223
28224 \begin_layout LyX-Code
28225
28226 \change_inserted -970929547 1515111507
28227             Contents of the second item.
28228 \end_layout
28229
28230 \begin_layout LyX-Code
28231
28232 \change_inserted -970929547 1515111509
28233           </itemtag>
28234 \change_unchanged
28235
28236 \end_layout
28237
28238 \begin_layout LyX-Code
28239
28240 \change_inserted -970929547 1515111251
28241         </itemtag>
28242 \change_unchanged
28243
28244 \end_layout
28245
28246 \begin_layout LyX-Code
28247
28248 \change_inserted -970929547 1515111221
28249       </itemwrappertag>
28250 \change_unchanged
28251
28252 \end_layout
28253
28254 \begin_layout LyX-Code
28255
28256 \change_inserted -970929547 1515111219
28257       ...
28258 \change_unchanged
28259
28260 \end_layout
28261
28262 \begin_layout LyX-Code
28263
28264 \change_inserted -970929547 1515111186
28265     </innertag>
28266 \end_layout
28267
28268 \begin_layout LyX-Code
28269
28270 \change_inserted -970929547 1515111186
28271   </tag>
28272 \end_layout
28273
28274 \begin_layout LyX-Code
28275
28276 \change_inserted -970929547 1515111186
28277 </wrappertag>
28278 \end_layout
28279
28280 \begin_layout Standard
28281
28282 \change_inserted -970929547 1515111183
28283 If the inset permits multiple paragraphs—that is, if 
28284 \begin_inset Flex Code
28285 status collapsed
28286
28287 \begin_layout Plain Layout
28288
28289 \change_inserted -970929547 1496610966
28290 MultiPar
28291 \change_unchanged
28292
28293 \end_layout
28294
28295 \end_inset
28296
28297  is true—then the contents of the inset will itself be output as paragraphs
28298  formatted according to the styles used for those paragraphs (standard,
28299  quote, and the like).
28300  The inner tag is optional and, by default, does not appear.
28301 \end_layout
28302
28303 \begin_layout Standard
28304
28305 \change_inserted -970929547 1496610966
28306 The specific tags and attributes output for each inset can be controlled
28307  by means of the following layout tags.
28308 \end_layout
28309
28310 \begin_layout Description
28311
28312 \change_inserted -970929547 1515110317
28313 \begin_inset Flex Code
28314 status collapsed
28315
28316 \begin_layout Plain Layout
28317
28318 \change_inserted -970929547 1515109695
28319 DocBookAttr
28320 \change_unchanged
28321
28322 \end_layout
28323
28324 \end_inset
28325
28326  [
28327 \begin_inset Flex Code
28328 status collapsed
28329
28330 \begin_layout Plain Layout
28331
28332 \change_inserted -970929547 1496611854
28333 string
28334 \change_unchanged
28335
28336 \end_layout
28337
28338 \end_inset
28339
28340 ] Specifies attribute information to be output with the main tag, replacing
28341  
28342 \begin_inset Quotes eld
28343 \end_inset
28344
28345
28346 \begin_inset Flex Code
28347 status collapsed
28348
28349 \begin_layout Plain Layout
28350
28351 \change_inserted -970929547 1515110044
28352 attr
28353 \change_unchanged
28354
28355 \end_layout
28356
28357 \end_inset
28358
28359
28360 \begin_inset Quotes erd
28361 \end_inset
28362
28363  in the example above.
28364  This information can be used in further processing of the DocBook files.
28365  
28366 \end_layout
28367
28368 \begin_layout Description
28369
28370 \change_inserted -970929547 1515110973
28371 \begin_inset Flex Code
28372 status collapsed
28373
28374 \begin_layout Plain Layout
28375
28376 \change_inserted -970929547 1515110319
28377 DocBookInInfo
28378 \change_unchanged
28379
28380 \end_layout
28381
28382 \end_inset
28383
28384  [
28385 \begin_inset Flex Code
28386 status collapsed
28387
28388 \begin_layout Plain Layout
28389
28390 \change_inserted -970929547 1515110384
28391 never, always, maybe
28392 \change_unchanged
28393
28394 \end_layout
28395
28396 \end_inset
28397
28398 ] Specifies whether this tag goes into the 
28399 \begin_inset Flex Code
28400 status collapsed
28401
28402 \begin_layout Plain Layout
28403
28404 \change_inserted -970929547 1515110412
28405 <info>
28406 \change_unchanged
28407
28408 \end_layout
28409
28410 \end_inset
28411
28412  tag at the beginning of the parent layout.
28413  
28414 \begin_inset Flex Code
28415 status collapsed
28416
28417 \begin_layout Plain Layout
28418
28419 \change_inserted -970929547 1515110437
28420 never
28421 \change_unchanged
28422
28423 \end_layout
28424
28425 \end_inset
28426
28427  indicates that the tag never goes into 
28428 \begin_inset Flex Code
28429 status collapsed
28430
28431 \begin_layout Plain Layout
28432
28433 \change_inserted -970929547 1515110497
28434 <info>
28435 \change_unchanged
28436
28437 \end_layout
28438
28439 \end_inset
28440
28441  (this is default value, and corresponds to usual content).
28442  
28443 \begin_inset Flex Code
28444 status collapsed
28445
28446 \begin_layout Plain Layout
28447
28448 \change_inserted -970929547 1515110517
28449 always
28450 \change_unchanged
28451
28452 \end_layout
28453
28454 \end_inset
28455
28456  indicates that the tag always goes into 
28457 \begin_inset Flex Code
28458 status collapsed
28459
28460 \begin_layout Plain Layout
28461
28462 \change_inserted -970929547 1515110514
28463 <info>
28464 \change_unchanged
28465
28466 \end_layout
28467
28468 \end_inset
28469
28470  (this corresponds to usual metadata): if there is no 
28471 \begin_inset Flex Code
28472 status collapsed
28473
28474 \begin_layout Plain Layout
28475
28476 \change_inserted -970929547 1515110550
28477 <info>
28478 \change_unchanged
28479
28480 \end_layout
28481
28482 \end_inset
28483
28484  tag for the parent, one 
28485 \series bold
28486 will
28487 \series default
28488  be generated.
28489  
28490 \begin_inset Flex Code
28491 status collapsed
28492
28493 \begin_layout Plain Layout
28494
28495 \change_inserted -970929547 1515110540
28496 maybe
28497 \change_unchanged
28498
28499 \end_layout
28500
28501 \end_inset
28502
28503  indicates that the tag may go into 
28504 \begin_inset Flex Code
28505 status collapsed
28506
28507 \begin_layout Plain Layout
28508
28509 \change_inserted -970929547 1515110538
28510 <info>
28511 \change_unchanged
28512
28513 \end_layout
28514
28515 \end_inset
28516
28517  (this is only the case for titles): if there is no 
28518 \begin_inset Flex Code
28519 status collapsed
28520
28521 \begin_layout Plain Layout
28522
28523 \change_inserted -970929547 1515110585
28524 <info>
28525 \change_unchanged
28526
28527 \end_layout
28528
28529 \end_inset
28530
28531  tag for the parent, 
28532 \series bold
28533 none
28534 \series default
28535  will be generated, the corresponding tag will be output directly as content.
28536  
28537 \end_layout
28538
28539 \begin_layout Description
28540
28541 \change_inserted -970929547 1515111461
28542 \begin_inset Flex Code
28543 status collapsed
28544
28545 \begin_layout Plain Layout
28546
28547 \change_inserted -970929547 1515110974
28548 DocBookItemAttr
28549 \change_unchanged
28550
28551 \end_layout
28552
28553 \end_inset
28554
28555  [
28556 \begin_inset Flex Code
28557 status collapsed
28558
28559 \begin_layout Plain Layout
28560
28561 \change_inserted -970929547 1515110973
28562 string
28563 \change_unchanged
28564
28565 \end_layout
28566
28567 \end_inset
28568
28569 ] Specifies attribute information to be output with the item tag, replacing
28570  
28571 \begin_inset Quotes eld
28572 \end_inset
28573
28574
28575 \begin_inset Flex Code
28576 status collapsed
28577
28578 \begin_layout Plain Layout
28579
28580 \change_inserted -970929547 1515110984
28581 itemattr
28582 \change_unchanged
28583
28584 \end_layout
28585
28586 \end_inset
28587
28588
28589 \begin_inset Quotes erd
28590 \end_inset
28591
28592  in the example above.
28593  This information can be used in further processing of the DocBook files.
28594  
28595 \end_layout
28596
28597 \begin_layout Description
28598
28599 \change_inserted -970929547 1515111471
28600 \begin_inset Flex Code
28601 status collapsed
28602
28603 \begin_layout Plain Layout
28604
28605 \change_inserted -970929547 1515111465
28606 DocBookItemInnerAttr
28607 \change_unchanged
28608
28609 \end_layout
28610
28611 \end_inset
28612
28613  [
28614 \begin_inset Flex Code
28615 status collapsed
28616
28617 \begin_layout Plain Layout
28618
28619 \change_inserted -970929547 1515111461
28620 string
28621 \change_unchanged
28622
28623 \end_layout
28624
28625 \end_inset
28626
28627 ] Specifies attribute information to be output with the item inner tag,
28628  replacing 
28629 \begin_inset Quotes eld
28630 \end_inset
28631
28632
28633 \begin_inset Flex Code
28634 status collapsed
28635
28636 \begin_layout Plain Layout
28637
28638 \change_inserted -970929547 1515111476
28639 iteminnerattr
28640 \change_unchanged
28641
28642 \end_layout
28643
28644 \end_inset
28645
28646
28647 \begin_inset Quotes erd
28648 \end_inset
28649
28650  in the example above.
28651  This information can be used in further processing of the DocBook files.
28652  
28653 \end_layout
28654
28655 \begin_layout Description
28656
28657 \change_inserted -970929547 1515111494
28658 \begin_inset Flex Code
28659 status collapsed
28660
28661 \begin_layout Plain Layout
28662
28663 \change_inserted -970929547 1515111467
28664 DocBookItemInnerTag
28665 \change_unchanged
28666
28667 \end_layout
28668
28669 \end_inset
28670
28671  [
28672 \begin_inset Flex Code
28673 status collapsed
28674
28675 \begin_layout Plain Layout
28676
28677 \change_inserted -970929547 1515111461
28678 string
28679 \change_unchanged
28680
28681 \end_layout
28682
28683 \end_inset
28684
28685 ] The tag to be used for the item inner tag within the inset, replacing
28686  
28687 \begin_inset Quotes eld
28688 \end_inset
28689
28690
28691 \begin_inset Flex Code
28692 status collapsed
28693
28694 \begin_layout Plain Layout
28695
28696 \change_inserted -970929547 1515111486
28697 iteminnertag
28698 \change_unchanged
28699
28700 \end_layout
28701
28702 \end_inset
28703
28704
28705 \begin_inset Quotes erd
28706 \end_inset
28707
28708  in the example above.
28709  The default is 
28710 \begin_inset Flex Code
28711 status collapsed
28712
28713 \begin_layout Plain Layout
28714
28715 \change_inserted -970929547 1515111461
28716 NONE
28717 \change_unchanged
28718
28719 \end_layout
28720
28721 \end_inset
28722
28723 , indicating that there is no item inner tag: content is directly output
28724  without it for each itemised element.
28725  This parameter only makes sense when itemising layouts are used, such as
28726  lists.
28727  
28728 \change_inserted 1075283030 1598469472
28729 The most likely value is 
28730 \begin_inset Quotes eld
28731 \end_inset
28732
28733
28734 \begin_inset Flex Code
28735 status collapsed
28736
28737 \begin_layout Plain Layout
28738
28739 \change_inserted 1075283030 1598469476
28740 para
28741 \change_unchanged
28742
28743 \end_layout
28744
28745 \end_inset
28746
28747
28748 \begin_inset Quotes erd
28749 \end_inset
28750
28751 .
28752 \begin_inset Newline newline
28753 \end_inset
28754
28755 When a list item is split using a new line, the item inner tag will be repeated
28756  for each part of the paragraph, parts being separated by new lines.
28757  
28758 \end_layout
28759
28760 \begin_layout Description
28761
28762 \change_inserted 1075283030 1597699866
28763 \begin_inset Flex Code
28764 status collapsed
28765
28766 \begin_layout Plain Layout
28767
28768 \change_inserted 1075283030 1597699853
28769 DocBookItemInnerTagType
28770 \change_unchanged
28771
28772 \end_layout
28773
28774 \end_inset
28775
28776  [
28777 \begin_inset Flex Code
28778 status collapsed
28779
28780 \begin_layout Plain Layout
28781
28782 \change_inserted 1075283030 1597699866
28783 block, paragraph, inline
28784 \change_unchanged
28785
28786 \end_layout
28787
28788 \end_inset
28789
28790 ] The new-line policy for this tag, see Section
28791 \begin_inset space ~
28792 \end_inset
28793
28794
28795 \begin_inset CommandInset ref
28796 LatexCommand ref
28797 reference "subsec:DocBook-New-line-policy"
28798 plural "false"
28799 caps "false"
28800 noprefix "false"
28801
28802 \end_inset
28803
28804  for the details.
28805  
28806 \change_unchanged
28807
28808 \end_layout
28809
28810 \begin_layout Description
28811
28812 \change_inserted -970929547 1515111290
28813 \begin_inset Flex Code
28814 status collapsed
28815
28816 \begin_layout Plain Layout
28817
28818 \change_inserted -970929547 1515111283
28819 DocBookItemLabelAttr
28820 \change_unchanged
28821
28822 \end_layout
28823
28824 \end_inset
28825
28826  [
28827 \begin_inset Flex Code
28828 status collapsed
28829
28830 \begin_layout Plain Layout
28831
28832 \change_inserted -970929547 1515111279
28833 string
28834 \change_unchanged
28835
28836 \end_layout
28837
28838 \end_inset
28839
28840 ] Specifies attribute information to be output with the item label tag,
28841  replacing 
28842 \begin_inset Quotes eld
28843 \end_inset
28844
28845
28846 \begin_inset Flex Code
28847 status collapsed
28848
28849 \begin_layout Plain Layout
28850
28851 \change_inserted -970929547 1515111304
28852 itemlabelattr
28853 \change_unchanged
28854
28855 \end_layout
28856
28857 \end_inset
28858
28859
28860 \begin_inset Quotes erd
28861 \end_inset
28862
28863  in the example above.
28864  This information can be used in further processing of the DocBook files.
28865  
28866 \end_layout
28867
28868 \begin_layout Description
28869
28870 \change_inserted -970929547 1515111337
28871 \begin_inset Flex Code
28872 status collapsed
28873
28874 \begin_layout Plain Layout
28875
28876 \change_inserted -970929547 1515111285
28877 DocBookItemLabelTag
28878 \change_unchanged
28879
28880 \end_layout
28881
28882 \end_inset
28883
28884  [
28885 \begin_inset Flex Code
28886 status collapsed
28887
28888 \begin_layout Plain Layout
28889
28890 \change_inserted -970929547 1515111279
28891 string
28892 \change_unchanged
28893
28894 \end_layout
28895
28896 \end_inset
28897
28898 ] The tag to be used for the item label tag within the inset, replacing
28899  
28900 \begin_inset Quotes eld
28901 \end_inset
28902
28903
28904 \begin_inset Flex Code
28905 status collapsed
28906
28907 \begin_layout Plain Layout
28908
28909 \change_inserted -970929547 1515111311
28910 itemlabeltag
28911 \change_unchanged
28912
28913 \end_layout
28914
28915 \end_inset
28916
28917
28918 \begin_inset Quotes erd
28919 \end_inset
28920
28921  in the example above.
28922  This parameter only makes sense when itemising layouts are used with a
28923  notion of labels, such as definition lists.
28924  
28925 \change_inserted 1075283030 1597699874
28926
28927 \end_layout
28928
28929 \begin_layout Description
28930
28931 \change_inserted 1075283030 1597699874
28932 \begin_inset Flex Code
28933 status collapsed
28934
28935 \begin_layout Plain Layout
28936
28937 \change_inserted 1075283030 1597699880
28938 DocBookItemLabelTagType
28939 \change_unchanged
28940
28941 \end_layout
28942
28943 \end_inset
28944
28945  [
28946 \begin_inset Flex Code
28947 status collapsed
28948
28949 \begin_layout Plain Layout
28950
28951 \change_inserted 1075283030 1597699874
28952 block, paragraph, inline
28953 \change_unchanged
28954
28955 \end_layout
28956
28957 \end_inset
28958
28959 ] The new-line policy for this tag, see Section
28960 \begin_inset space ~
28961 \end_inset
28962
28963
28964 \begin_inset CommandInset ref
28965 LatexCommand ref
28966 reference "subsec:DocBook-New-line-policy"
28967 plural "false"
28968 caps "false"
28969 noprefix "false"
28970
28971 \end_inset
28972
28973  for the details.
28974  
28975 \change_unchanged
28976
28977 \end_layout
28978
28979 \begin_layout Description
28980
28981 \change_inserted -970929547 1515111124
28982 \begin_inset Flex Code
28983 status collapsed
28984
28985 \begin_layout Plain Layout
28986
28987 \change_inserted -970929547 1515111060
28988 DocBookItemTag
28989 \change_unchanged
28990
28991 \end_layout
28992
28993 \end_inset
28994
28995  [
28996 \begin_inset Flex Code
28997 status collapsed
28998
28999 \begin_layout Plain Layout
29000
29001 \change_inserted -970929547 1515111060
29002 string
29003 \change_unchanged
29004
29005 \end_layout
29006
29007 \end_inset
29008
29009 ] The tag to be used for the item tag within the inset, replacing 
29010 \begin_inset Quotes eld
29011 \end_inset
29012
29013
29014 \begin_inset Flex Code
29015 status collapsed
29016
29017 \begin_layout Plain Layout
29018
29019 \change_inserted -970929547 1515111060
29020 itemtag
29021 \change_unchanged
29022
29023 \end_layout
29024
29025 \end_inset
29026
29027
29028 \begin_inset Quotes erd
29029 \end_inset
29030
29031  in the example above.
29032  The default is 
29033 \begin_inset Flex Code
29034 status collapsed
29035
29036 \begin_layout Plain Layout
29037
29038 \change_inserted -970929547 1515111060
29039 NONE
29040 \change_unchanged
29041
29042 \end_layout
29043
29044 \end_inset
29045
29046 , indicating that there is no item tag.
29047  This parameter only makes sense when itemising layouts are used, such as
29048  lists.
29049  
29050 \change_inserted 1075283030 1597699890
29051
29052 \end_layout
29053
29054 \begin_layout Description
29055
29056 \change_inserted 1075283030 1597699890
29057 \begin_inset Flex Code
29058 status collapsed
29059
29060 \begin_layout Plain Layout
29061
29062 \change_inserted 1075283030 1597699890
29063 DocBookItemTagType
29064 \change_unchanged
29065
29066 \end_layout
29067
29068 \end_inset
29069
29070  [
29071 \begin_inset Flex Code
29072 status collapsed
29073
29074 \begin_layout Plain Layout
29075
29076 \change_inserted 1075283030 1597699890
29077 block, paragraph, inline
29078 \change_unchanged
29079
29080 \end_layout
29081
29082 \end_inset
29083
29084 ] The new-line policy for this tag, see Section
29085 \begin_inset space ~
29086 \end_inset
29087
29088
29089 \begin_inset CommandInset ref
29090 LatexCommand ref
29091 reference "subsec:DocBook-New-line-policy"
29092 plural "false"
29093 caps "false"
29094 noprefix "false"
29095
29096 \end_inset
29097
29098  for the details.
29099  
29100 \change_unchanged
29101
29102 \end_layout
29103
29104 \begin_layout Description
29105
29106 \change_inserted -970929547 1515111298
29107 \begin_inset Flex Code
29108 status collapsed
29109
29110 \begin_layout Plain Layout
29111
29112 \change_inserted -970929547 1515111124
29113 DocBookItemWrapperAttr
29114 \change_unchanged
29115
29116 \end_layout
29117
29118 \end_inset
29119
29120  [
29121 \begin_inset Flex Code
29122 status collapsed
29123
29124 \begin_layout Plain Layout
29125
29126 \change_inserted -970929547 1515111124
29127 string
29128 \change_unchanged
29129
29130 \end_layout
29131
29132 \end_inset
29133
29134 ] Specifies attribute information to be output with the item wrapper tag,
29135  replacing 
29136 \begin_inset Quotes eld
29137 \end_inset
29138
29139
29140 \begin_inset Flex Code
29141 status collapsed
29142
29143 \begin_layout Plain Layout
29144
29145 \change_inserted -970929547 1515111150
29146 itemwrapperattr
29147 \change_unchanged
29148
29149 \end_layout
29150
29151 \end_inset
29152
29153
29154 \begin_inset Quotes erd
29155 \end_inset
29156
29157  in the example above.
29158  This information can be used in further processing of the DocBook files.
29159  
29160 \change_unchanged
29161
29162 \end_layout
29163
29164 \begin_layout Description
29165
29166 \change_inserted -970929547 1515111113
29167 \begin_inset Flex Code
29168 status collapsed
29169
29170 \begin_layout Plain Layout
29171
29172 \change_inserted -970929547 1515111073
29173 DocBookItemWrapperTag
29174 \change_unchanged
29175
29176 \end_layout
29177
29178 \end_inset
29179
29180  [
29181 \begin_inset Flex Code
29182 status collapsed
29183
29184 \begin_layout Plain Layout
29185
29186 \change_inserted -970929547 1515111073
29187 string
29188 \change_unchanged
29189
29190 \end_layout
29191
29192 \end_inset
29193
29194 ] The tag to be used for the item wrapper tag within the inset, replacing
29195  
29196 \begin_inset Quotes eld
29197 \end_inset
29198
29199
29200 \begin_inset Flex Code
29201 status collapsed
29202
29203 \begin_layout Plain Layout
29204
29205 \change_inserted -970929547 1515111083
29206 itemwrappertag
29207 \change_unchanged
29208
29209 \end_layout
29210
29211 \end_inset
29212
29213
29214 \begin_inset Quotes erd
29215 \end_inset
29216
29217  in the example above.
29218  The default is 
29219 \begin_inset Flex Code
29220 status collapsed
29221
29222 \begin_layout Plain Layout
29223
29224 \change_inserted -970929547 1515111073
29225 NONE
29226 \change_unchanged
29227
29228 \end_layout
29229
29230 \end_inset
29231
29232 , indicating that there is no item wrapper tag: tag and content are directly
29233  output without it for each itemised element.
29234  This parameter only makes sense when itemising layouts are used, such as
29235  lists.
29236  
29237 \change_inserted 1075283030 1597699897
29238
29239 \end_layout
29240
29241 \begin_layout Description
29242
29243 \change_inserted 1075283030 1597699897
29244 \begin_inset Flex Code
29245 status collapsed
29246
29247 \begin_layout Plain Layout
29248
29249 \change_inserted 1075283030 1597699900
29250 DocBookItemWrapperTagType
29251 \change_unchanged
29252
29253 \end_layout
29254
29255 \end_inset
29256
29257  [
29258 \begin_inset Flex Code
29259 status collapsed
29260
29261 \begin_layout Plain Layout
29262
29263 \change_inserted 1075283030 1597699897
29264 block, paragraph, inline
29265 \change_unchanged
29266
29267 \end_layout
29268
29269 \end_inset
29270
29271 ] The new-line policy for this tag, see Section
29272 \begin_inset space ~
29273 \end_inset
29274
29275
29276 \begin_inset CommandInset ref
29277 LatexCommand ref
29278 reference "subsec:DocBook-New-line-policy"
29279 plural "false"
29280 caps "false"
29281 noprefix "false"
29282
29283 \end_inset
29284
29285  for the details.
29286  
29287 \change_unchanged
29288
29289 \end_layout
29290
29291 \begin_layout Description
29292
29293 \change_inserted -970929547 1515110104
29294 \begin_inset Flex Code
29295 status collapsed
29296
29297 \begin_layout Plain Layout
29298
29299 \change_inserted -970929547 1515110104
29300 DocBookInnerAttr
29301 \change_unchanged
29302
29303 \end_layout
29304
29305 \end_inset
29306
29307  [
29308 \begin_inset Flex Code
29309 status collapsed
29310
29311 \begin_layout Plain Layout
29312
29313 \change_inserted -970929547 1515110104
29314 string
29315 \change_unchanged
29316
29317 \end_layout
29318
29319 \end_inset
29320
29321 ] Specifies attribute information to be output with the inner tag, replacing
29322  
29323 \begin_inset Quotes eld
29324 \end_inset
29325
29326
29327 \begin_inset Flex Code
29328 status collapsed
29329
29330 \begin_layout Plain Layout
29331
29332 \change_inserted -970929547 1515110104
29333 innerattr
29334 \change_unchanged
29335
29336 \end_layout
29337
29338 \end_inset
29339
29340
29341 \begin_inset Quotes erd
29342 \end_inset
29343
29344  in the example above.
29345  This information can be used in further processing of the DocBook files.
29346  
29347 \end_layout
29348
29349 \begin_layout Description
29350
29351 \change_inserted -970929547 1515110906
29352 \begin_inset Flex Code
29353 status collapsed
29354
29355 \begin_layout Plain Layout
29356
29357 \change_inserted -970929547 1515110104
29358 DocBookInnerTag
29359 \change_unchanged
29360
29361 \end_layout
29362
29363 \end_inset
29364
29365  [
29366 \begin_inset Flex Code
29367 status collapsed
29368
29369 \begin_layout Plain Layout
29370
29371 \change_inserted -970929547 1515110104
29372 string
29373 \change_unchanged
29374
29375 \end_layout
29376
29377 \end_inset
29378
29379 ] The tag to be used for the inner tag within the inset, replacing 
29380 \begin_inset Quotes eld
29381 \end_inset
29382
29383
29384 \begin_inset Flex Code
29385 status collapsed
29386
29387 \begin_layout Plain Layout
29388
29389 \change_inserted -970929547 1515110104
29390 innertag
29391 \change_unchanged
29392
29393 \end_layout
29394
29395 \end_inset
29396
29397
29398 \begin_inset Quotes erd
29399 \end_inset
29400
29401  in the example above.
29402  The default is 
29403 \begin_inset Flex Code
29404 status collapsed
29405
29406 \begin_layout Plain Layout
29407
29408 \change_inserted -970929547 1515110791
29409 NONE
29410 \change_unchanged
29411
29412 \end_layout
29413
29414 \end_inset
29415
29416 , indicating that there is no inner tag: content is directly output without
29417  it.
29418 \change_inserted 1075283030 1597699904
29419
29420 \end_layout
29421
29422 \begin_layout Description
29423
29424 \change_inserted 1075283030 1597699904
29425 \begin_inset Flex Code
29426 status collapsed
29427
29428 \begin_layout Plain Layout
29429
29430 \change_inserted 1075283030 1597699904
29431 DocBookInnerTagType
29432 \change_unchanged
29433
29434 \end_layout
29435
29436 \end_inset
29437
29438  [
29439 \begin_inset Flex Code
29440 status collapsed
29441
29442 \begin_layout Plain Layout
29443
29444 \change_inserted 1075283030 1597699904
29445 block, paragraph, inline
29446 \change_unchanged
29447
29448 \end_layout
29449
29450 \end_inset
29451
29452 ] The new-line policy for this tag, see Section
29453 \begin_inset space ~
29454 \end_inset
29455
29456
29457 \begin_inset CommandInset ref
29458 LatexCommand ref
29459 reference "subsec:DocBook-New-line-policy"
29460 plural "false"
29461 caps "false"
29462 noprefix "false"
29463
29464 \end_inset
29465
29466  for the details.
29467  
29468 \change_unchanged
29469
29470 \end_layout
29471
29472 \begin_layout Description
29473
29474 \change_inserted -970929547 1515110753
29475 \begin_inset Flex Code
29476 status collapsed
29477
29478 \begin_layout Plain Layout
29479
29480 \change_inserted -970929547 1515110665
29481 DocBookSectionTag
29482 \change_unchanged
29483
29484 \end_layout
29485
29486 \end_inset
29487
29488  [
29489 \begin_inset Flex Code
29490 status collapsed
29491
29492 \begin_layout Plain Layout
29493
29494 \change_inserted -970929547 1515110661
29495 string
29496 \change_unchanged
29497
29498 \end_layout
29499
29500 \end_inset
29501
29502 ] Specifies the tag that corresponds to this kind of section.
29503  This parameter only makes sense for sectioning elements (part, chapter,
29504  section, etc.).
29505  The default value is 
29506 \begin_inset Flex Code
29507 status collapsed
29508
29509 \begin_layout Plain Layout
29510
29511 \change_inserted -970929547 1515110721
29512 section
29513 \change_unchanged
29514
29515 \end_layout
29516
29517 \end_inset
29518
29519 , and is only overridden when DocBook uses something else for sectioning
29520  (
29521 \change_inserted 1075283030 1597699921
29522 typically, 
29523 \change_inserted -970929547 1515110753
29524 parts and chapters of a book).
29525  
29526 \change_unchanged
29527
29528 \end_layout
29529
29530 \begin_layout Description
29531
29532 \change_inserted -970929547 1515110811
29533 \begin_inset Flex Code
29534 status collapsed
29535
29536 \begin_layout Plain Layout
29537
29538 \change_inserted -970929547 1496612023
29539 DocBookTag
29540 \change_unchanged
29541
29542 \end_layout
29543
29544 \end_inset
29545
29546  [
29547 \begin_inset Flex Code
29548 status collapsed
29549
29550 \begin_layout Plain Layout
29551
29552 \change_inserted -970929547 1496610966
29553 string
29554 \change_unchanged
29555
29556 \end_layout
29557
29558 \end_inset
29559
29560 ] The tag to be used for this inset, replacing 
29561 \begin_inset Quotes eld
29562 \end_inset
29563
29564
29565 \begin_inset Flex Code
29566 status collapsed
29567
29568 \begin_layout Plain Layout
29569
29570 \change_inserted -970929547 1496612033
29571 tag
29572 \change_unchanged
29573
29574 \end_layout
29575
29576 \end_inset
29577
29578
29579 \begin_inset Quotes erd
29580 \end_inset
29581
29582  in the example above.
29583  The default is the name of the float and always needs to be changed, as
29584  DocBook provides no generic inset tag.
29585 \change_inserted 1075283030 1597699924
29586
29587 \end_layout
29588
29589 \begin_layout Description
29590
29591 \change_inserted 1075283030 1597699924
29592 \begin_inset Flex Code
29593 status collapsed
29594
29595 \begin_layout Plain Layout
29596
29597 \change_inserted 1075283030 1597699924
29598 DocBookTagType
29599 \change_unchanged
29600
29601 \end_layout
29602
29603 \end_inset
29604
29605  [
29606 \begin_inset Flex Code
29607 status collapsed
29608
29609 \begin_layout Plain Layout
29610
29611 \change_inserted 1075283030 1597699924
29612 block, paragraph, inline
29613 \change_unchanged
29614
29615 \end_layout
29616
29617 \end_inset
29618
29619 ] The new-line policy for this tag, see Section
29620 \begin_inset space ~
29621 \end_inset
29622
29623
29624 \begin_inset CommandInset ref
29625 LatexCommand ref
29626 reference "subsec:DocBook-New-line-policy"
29627 plural "false"
29628 caps "false"
29629 noprefix "false"
29630
29631 \end_inset
29632
29633  for the details.
29634  
29635 \change_unchanged
29636
29637 \end_layout
29638
29639 \begin_layout Description
29640
29641 \change_inserted -970929547 1515110832
29642 \begin_inset Flex Code
29643 status collapsed
29644
29645 \begin_layout Plain Layout
29646
29647 \change_inserted -970929547 1515110822
29648 DocBookWrapperAttr
29649 \change_unchanged
29650
29651 \end_layout
29652
29653 \end_inset
29654
29655  [
29656 \begin_inset Flex Code
29657 status collapsed
29658
29659 \begin_layout Plain Layout
29660
29661 \change_inserted -970929547 1515110811
29662 string
29663 \change_unchanged
29664
29665 \end_layout
29666
29667 \end_inset
29668
29669 ] Specifies attribute information to be output with the outer tag, replacing
29670  
29671 \begin_inset Quotes eld
29672 \end_inset
29673
29674
29675 \begin_inset Flex Code
29676 status collapsed
29677
29678 \begin_layout Plain Layout
29679
29680 \change_inserted -970929547 1515110845
29681 wrapperattr
29682 \change_unchanged
29683
29684 \end_layout
29685
29686 \end_inset
29687
29688
29689 \begin_inset Quotes erd
29690 \end_inset
29691
29692  in the example above.
29693  This information can be used in further processing of the DocBook files.
29694  
29695 \end_layout
29696
29697 \begin_layout Description
29698
29699 \change_inserted -970929547 1515110917
29700 \begin_inset Flex Code
29701 status collapsed
29702
29703 \begin_layout Plain Layout
29704
29705 \change_inserted -970929547 1515110826
29706 DocBookWrapperTag
29707 \change_unchanged
29708
29709 \end_layout
29710
29711 \end_inset
29712
29713  [
29714 \begin_inset Flex Code
29715 status collapsed
29716
29717 \begin_layout Plain Layout
29718
29719 \change_inserted -970929547 1515110811
29720 string
29721 \change_unchanged
29722
29723 \end_layout
29724
29725 \end_inset
29726
29727 ] The tag to be used for the wrapper tag around the inset, replacing 
29728 \begin_inset Quotes eld
29729 \end_inset
29730
29731
29732 \begin_inset Flex Code
29733 status collapsed
29734
29735 \begin_layout Plain Layout
29736
29737 \change_inserted -970929547 1515110842
29738 wrappertag
29739 \change_unchanged
29740
29741 \end_layout
29742
29743 \end_inset
29744
29745
29746 \begin_inset Quotes erd
29747 \end_inset
29748
29749  in the example above.
29750  The default is 
29751 \begin_inset Flex Code
29752 status collapsed
29753
29754 \begin_layout Plain Layout
29755
29756 \change_inserted -970929547 1515110811
29757 NONE
29758 \change_unchanged
29759
29760 \end_layout
29761
29762 \end_inset
29763
29764 , indicating that there is no wrapper tag: tag and content are directly
29765  output without it.
29766 \change_inserted 1075283030 1597699929
29767
29768 \end_layout
29769
29770 \begin_layout Description
29771
29772 \change_inserted 1075283030 1597699929
29773 \begin_inset Flex Code
29774 status collapsed
29775
29776 \begin_layout Plain Layout
29777
29778 \change_inserted 1075283030 1597699932
29779 DocBookWrapperTagType
29780 \change_unchanged
29781
29782 \end_layout
29783
29784 \end_inset
29785
29786  [
29787 \begin_inset Flex Code
29788 status collapsed
29789
29790 \begin_layout Plain Layout
29791
29792 \change_inserted 1075283030 1597699929
29793 block, paragraph, inline
29794 \change_unchanged
29795
29796 \end_layout
29797
29798 \end_inset
29799
29800 ] The new-line policy for this tag, see Section
29801 \begin_inset space ~
29802 \end_inset
29803
29804
29805 \begin_inset CommandInset ref
29806 LatexCommand ref
29807 reference "subsec:DocBook-New-line-policy"
29808 plural "false"
29809 caps "false"
29810 noprefix "false"
29811
29812 \end_inset
29813
29814  for the details.
29815  
29816 \change_unchanged
29817
29818 \end_layout
29819
29820 \begin_layout Subsection
29821
29822 \change_inserted -970929547 1515110040
29823 Float DocBook
29824 \end_layout
29825
29826 \begin_layout Standard
29827
29828 \change_inserted -970929547 1496611700
29829 The DocBook output for floats too can be controlled by layout information.
29830  The output has the following form:
29831 \end_layout
29832
29833 \begin_layout LyX-Code
29834
29835 \change_inserted -970929547 1515109700
29836 <tag attr>
29837 \end_layout
29838
29839 \begin_layout LyX-Code
29840
29841 \change_inserted -970929547 1515110138
29842   Contents of the float as DocBook.
29843 \end_layout
29844
29845 \begin_layout LyX-Code
29846
29847 \change_inserted -970929547 1496610966
29848 </tag>
29849 \end_layout
29850
29851 \begin_layout Standard
29852
29853 \change_inserted -970929547 1496611715
29854 The caption, if there is one, is a separate inset and will be output as
29855  a title.
29856  
29857 \end_layout
29858
29859 \begin_layout Description
29860
29861 \change_inserted -970929547 1515110033
29862 \begin_inset Flex Code
29863 status collapsed
29864
29865 \begin_layout Plain Layout
29866
29867 \change_inserted -970929547 1515109702
29868 DocBookAttr
29869 \change_unchanged
29870
29871 \end_layout
29872
29873 \end_inset
29874
29875  [
29876 \begin_inset Flex Code
29877 status collapsed
29878
29879 \begin_layout Plain Layout
29880
29881 \change_inserted -970929547 1496610966
29882 string
29883 \change_unchanged
29884
29885 \end_layout
29886
29887 \end_inset
29888
29889 ] Specifies attribute information to be output with the main tag, replacing
29890  
29891 \begin_inset Quotes eld
29892 \end_inset
29893
29894
29895 \begin_inset Flex Code
29896 status collapsed
29897
29898 \begin_layout Plain Layout
29899
29900 \change_inserted -970929547 1515110035
29901 attr
29902 \change_unchanged
29903
29904 \end_layout
29905
29906 \end_inset
29907
29908
29909 \begin_inset Quotes erd
29910 \end_inset
29911
29912  in the example above.
29913  This information can be used in further processing of the DocBook files.
29914  
29915 \end_layout
29916
29917 \begin_layout Description
29918
29919 \change_inserted -970929547 1515110157
29920 \begin_inset Flex Code
29921 status collapsed
29922
29923 \begin_layout Plain Layout
29924
29925 \change_inserted -970929547 1496611782
29926 DocBookTag
29927 \change_unchanged
29928
29929 \end_layout
29930
29931 \end_inset
29932
29933  [
29934 \begin_inset Flex Code
29935 status collapsed
29936
29937 \begin_layout Plain Layout
29938
29939 \change_inserted -970929547 1496610966
29940 string
29941 \change_unchanged
29942
29943 \end_layout
29944
29945 \end_inset
29946
29947 ] The tag to be used for this float, replacing 
29948 \begin_inset Quotes eld
29949 \end_inset
29950
29951
29952 \begin_inset Flex Code
29953 status collapsed
29954
29955 \begin_layout Plain Layout
29956
29957 \change_inserted -970929547 1496610966
29958 tag
29959 \change_unchanged
29960
29961 \end_layout
29962
29963 \end_inset
29964
29965
29966 \begin_inset Quotes erd
29967 \end_inset
29968
29969  in the example above.
29970  The default is the name of the float and always needs to be changed, as
29971  DocBook provides no generic float tag.
29972 \end_layout
29973
29974 \begin_layout Subsection
29975
29976 \change_inserted -970929547 1515110157
29977 Bibliography formatting
29978 \end_layout
29979
29980 \begin_layout Standard
29981
29982 \change_deleted 1075283030 1597699984
29983 The 
29984 \change_inserted 1075283030 1597699985
29985 Included 
29986 \change_inserted -970929547 1515110187
29987 bibliograph
29988 \change_deleted 1075283030 1597699987
29989 y
29990 \change_inserted 1075283030 1597699987
29991 ies
29992 \change_inserted -970929547 1515110187
29993  cannot be formatted: all fields are always output in the database-like
29994  DocBook format (equivalent to a BibTeX file)
29995 \change_inserted 1075283030 1597700117
29996 , using the 
29997 \begin_inset Flex Code
29998 status collapsed
29999
30000 \begin_layout Plain Layout
30001
30002 \change_inserted 1075283030 1597700120
30003 biblioentry
30004 \change_unchanged
30005
30006 \end_layout
30007
30008 \end_inset
30009
30010  tag
30011 \change_inserted -970929547 1515110187
30012 .
30013 \change_inserted 1075283030 1597700092
30014
30015 \end_layout
30016
30017 \begin_layout Standard
30018
30019 \change_inserted 1075283030 1597700112
30020 When the bibliographic entries are manually inserted into the LyX document
30021  as Bibliography Items, the user deals with formatting themself: there is
30022  no attempt of parsing what the user wrote, the string is directly used
30023  (with the 
30024 \begin_inset Flex Code
30025 status collapsed
30026
30027 \begin_layout Plain Layout
30028
30029 \change_inserted 1075283030 1597700076
30030 bibliomixed
30031 \change_unchanged
30032
30033 \end_layout
30034
30035 \end_inset
30036
30037  tag).
30038  
30039 \change_unchanged
30040
30041 \end_layout
30042
30043 \begin_layout Chapter
30044 Including External Material
30045 \begin_inset CommandInset label
30046 LatexCommand label
30047 name "chap:Including-External-Material"
30048
30049 \end_inset
30050
30051
30052 \end_layout
30053
30054 \begin_layout Standard
30055 \begin_inset Box Shadowbox
30056 position "t"
30057 hor_pos "c"
30058 has_inner_box 1
30059 inner_pos "t"
30060 use_parbox 0
30061 use_makebox 0
30062 width "100col%"
30063 special "none"
30064 height "1in"
30065 height_special "totalheight"
30066 thickness "0.4pt"
30067 separation "3pt"
30068 shadowsize "4pt"
30069 framecolor "black"
30070 backgroundcolor "none"
30071 status open
30072
30073 \begin_layout Plain Layout
30074 WARNING: This portion of the documentation has not been updated for some
30075  time.
30076  We certainly hope that it is still accurate, but there are no guarantees.
30077 \end_layout
30078
30079 \end_inset
30080
30081
30082 \end_layout
30083
30084 \begin_layout Standard
30085 The use of material from sources external to \SpecialChar LyX
30086  is covered in detail in the
30087  
30088 \emph on
30089 Embedded Objects
30090 \emph default
30091  manual.
30092  This part of the manual covers what needs to happen behind the scenes for
30093  new sorts of material to be included.
30094 \end_layout
30095
30096 \begin_layout Section
30097 How does it work?
30098 \end_layout
30099
30100 \begin_layout Standard
30101 The external material feature is based on the concept of a 
30102 \emph on
30103 template
30104 \emph default
30105 .
30106  A template is a specification of how \SpecialChar LyX
30107  should interface with a certain kind
30108  of material.
30109  As bundled, \SpecialChar LyX
30110  comes with predefined templates for Xfig figures, various
30111  raster format images, chess diagrams, and LilyPond music notation.
30112  You can check the actual list by using the menu 
30113 \begin_inset Flex Noun
30114 status collapsed
30115
30116 \begin_layout Plain Layout
30117 Insert\SpecialChar menuseparator
30118 File\SpecialChar menuseparator
30119 External Material
30120 \end_layout
30121
30122 \end_inset
30123
30124 .
30125  Furthermore, it is possible to roll your own template to support a specific
30126  kind of material.
30127  Later we'll describe in more detail what is involved, and hopefully you
30128  will submit all the templates you create so we can include them in a later
30129  \SpecialChar LyX
30130  version.
30131 \end_layout
30132
30133 \begin_layout Standard
30134 Another basic idea of the external material feature is to distinguish between
30135  the original file that serves as a base for final material and the produced
30136  file that is included in your exported or printed document.
30137  For example, consider the case of a figure produced with 
30138 \begin_inset Flex Code
30139 status collapsed
30140
30141 \begin_layout Plain Layout
30142 Xfig
30143 \end_layout
30144
30145 \end_inset
30146
30147 .
30148  The Xfig application itself works on an original file with the 
30149 \begin_inset Flex Code
30150 status collapsed
30151
30152 \begin_layout Plain Layout
30153 .fig
30154 \end_layout
30155
30156 \end_inset
30157
30158  extension.
30159  Within Xfig, you create and change your figure, and when you are done,
30160  you save the 
30161 \begin_inset Flex Code
30162 status collapsed
30163
30164 \begin_layout Plain Layout
30165 fig
30166 \end_layout
30167
30168 \end_inset
30169
30170 -file.
30171  When you want to include the figure in your document, you invoke 
30172 \begin_inset Flex Code
30173 status collapsed
30174
30175 \begin_layout Plain Layout
30176 transfig
30177 \end_layout
30178
30179 \end_inset
30180
30181  in order to create a PostScript file that can readily be included in your
30182  \SpecialChar LaTeX
30183  file.
30184  In this case, the 
30185 \begin_inset Flex Code
30186 status collapsed
30187
30188 \begin_layout Plain Layout
30189 .fig
30190 \end_layout
30191
30192 \end_inset
30193
30194  file is the original file, and the PostScript file is the produced file.
30195 \end_layout
30196
30197 \begin_layout Standard
30198 This distinction is important in order to allow updating of the material
30199  while you are in the process of writing the document.
30200  Furthermore, it provides us with the flexibility that is needed to support
30201  multiple export formats.
30202  For instance, in the case of a plain text file, it is not exactly an award-winn
30203 ing idea to include the figure as raw PostScript.
30204  Instead, you would either prefer to just include a reference to the figure
30205  or try to invoke some graphics to ASCII converter to make the final result
30206  look similar to the real graphics.
30207  The external material management allows you to do this, because it is parametri
30208 zed on the different export formats that \SpecialChar LyX
30209  supports.
30210 \end_layout
30211
30212 \begin_layout Standard
30213 Besides supporting the production of different products according to the
30214  exported format, it supports tight integration with editing and viewing
30215  applications.
30216  In the case of an Xfig figure, you are able to invoke Xfig on the original
30217  file with a single click from within the external material dialog in \SpecialChar LyX
30218 ,
30219  and also preview the produced PostScript file with Ghostview with another
30220  click.
30221  No more fiddling around with the command line and/or file browsers to locate
30222  and manipulate the original or produced files.
30223  In this way, you are finally able to take full advantage of the many different
30224  applications that are relevant to use when you write your documents, and
30225  ultimately be more productive.
30226 \end_layout
30227
30228 \begin_layout Section
30229 The external template configuration files
30230 \end_layout
30231
30232 \begin_layout Standard
30233 It is relatively easy to add custom external template definitions to \SpecialChar LyX
30234 .
30235  However, be aware that doing this in an careless manner most probably 
30236 \emph on
30237 will
30238 \emph default
30239  introduce an easily exploitable security hole.
30240  So before you do this, please read the discussion about security in 
30241 \begin_inset CommandInset ref
30242 LatexCommand ref
30243 reference "sec:Security-discussion"
30244
30245 \end_inset
30246
30247 .
30248 \end_layout
30249
30250 \begin_layout Standard
30251 Having said that, we encourage you to submit any interesting templates that
30252  you create.
30253  
30254 \end_layout
30255
30256 \begin_layout Standard
30257 The external templates are defined in the 
30258 \begin_inset Flex Code
30259 status collapsed
30260
30261 \begin_layout Plain Layout
30262 *.xtemplate
30263 \end_layout
30264
30265 \end_inset
30266
30267  files that are stored in the 
30268 \begin_inset Flex Code
30269 status collapsed
30270
30271 \begin_layout Plain Layout
30272 LyXDir/lib/xtemplates/
30273 \end_layout
30274
30275 \end_inset
30276
30277  directory.
30278  Each template is defined in a file of its own.
30279  You can place your own templates in 
30280 \begin_inset Flex Code
30281 status collapsed
30282
30283 \begin_layout Plain Layout
30284 UserDir/xtemplates/
30285 \end_layout
30286
30287 \end_inset
30288
30289  or copy existing templates to that directory in order to modify them.
30290 \end_layout
30291
30292 \begin_layout Standard
30293 A typical template looks like this:
30294 \end_layout
30295
30296 \begin_layout LyX-Code
30297 Template XFig
30298 \end_layout
30299
30300 \begin_layout LyX-Code
30301 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
30302 \end_layout
30303
30304 \begin_layout LyX-Code
30305 HelpText
30306 \end_layout
30307
30308 \begin_layout LyX-Code
30309 An XFig figure.
30310 \end_layout
30311
30312 \begin_layout LyX-Code
30313 HelpTextEnd
30314 \end_layout
30315
30316 \begin_layout LyX-Code
30317 InputFormat fig
30318 \end_layout
30319
30320 \begin_layout LyX-Code
30321 FileFilter "*.fig"
30322 \end_layout
30323
30324 \begin_layout LyX-Code
30325 AutomaticProduction true
30326 \end_layout
30327
30328 \begin_layout LyX-Code
30329 Transform Rotate
30330 \end_layout
30331
30332 \begin_layout LyX-Code
30333 Transform Resize
30334 \end_layout
30335
30336 \begin_layout LyX-Code
30337 Format LaTeX
30338 \end_layout
30339
30340 \begin_layout LyX-Code
30341 TransformCommand Rotate RotationLatexCommand
30342 \end_layout
30343
30344 \begin_layout LyX-Code
30345 TransformCommand Resize ResizeLatexCommand
30346 \end_layout
30347
30348 \begin_layout LyX-Code
30349 Product "$$RotateFront$$ResizeFront
30350 \end_layout
30351
30352 \begin_layout LyX-Code
30353          
30354 \backslash
30355
30356 \backslash
30357 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
30358 \end_layout
30359
30360 \begin_layout LyX-Code
30361          $$ResizeBack$$RotateBack"
30362 \end_layout
30363
30364 \begin_layout LyX-Code
30365 UpdateFormat pstex
30366 \end_layout
30367
30368 \begin_layout LyX-Code
30369 UpdateResult "$$AbsPath$$Basename.pstex_t"
30370 \end_layout
30371
30372 \begin_layout LyX-Code
30373 Requirement "graphicx"
30374 \end_layout
30375
30376 \begin_layout LyX-Code
30377 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
30378 \end_layout
30379
30380 \begin_layout LyX-Code
30381 ReferencedFile latex "$$AbsPath$$Basename.eps"
30382 \end_layout
30383
30384 \begin_layout LyX-Code
30385 ReferencedFile dvi "$$AbsPath$$Basename.eps"
30386 \end_layout
30387
30388 \begin_layout LyX-Code
30389 FormatEnd
30390 \end_layout
30391
30392 \begin_layout LyX-Code
30393 Format PDFLaTeX
30394 \end_layout
30395
30396 \begin_layout LyX-Code
30397 TransformCommand Rotate RotationLatexCommand
30398 \end_layout
30399
30400 \begin_layout LyX-Code
30401 TransformCommand Resize ResizeLatexCommand
30402 \end_layout
30403
30404 \begin_layout LyX-Code
30405 Product "$$RotateFront$$ResizeFront
30406 \end_layout
30407
30408 \begin_layout LyX-Code
30409          
30410 \backslash
30411
30412 \backslash
30413 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
30414 \end_layout
30415
30416 \begin_layout LyX-Code
30417          $$ResizeBack$$RotateBack"
30418 \end_layout
30419
30420 \begin_layout LyX-Code
30421 UpdateFormat pdftex
30422 \end_layout
30423
30424 \begin_layout LyX-Code
30425 UpdateResult "$$AbsPath$$Basename.pdftex_t"
30426 \end_layout
30427
30428 \begin_layout LyX-Code
30429 Requirement "graphicx"
30430 \end_layout
30431
30432 \begin_layout LyX-Code
30433 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
30434 \end_layout
30435
30436 \begin_layout LyX-Code
30437 ReferencedFile latex "$$AbsPath$$Basename.pdf"
30438 \end_layout
30439
30440 \begin_layout LyX-Code
30441 FormatEnd
30442 \end_layout
30443
30444 \begin_layout LyX-Code
30445 Format Ascii
30446 \end_layout
30447
30448 \begin_layout LyX-Code
30449 Product "[XFig: $$FName]"
30450 \end_layout
30451
30452 \begin_layout LyX-Code
30453 FormatEnd
30454 \end_layout
30455
30456 \begin_layout LyX-Code
30457 Format DocBook
30458 \end_layout
30459
30460 \begin_layout LyX-Code
30461 Product "<graphic fileref=
30462 \backslash
30463 "$$AbsOrRelPathMaster$$Basename.eps
30464 \backslash
30465 ">
30466 \end_layout
30467
30468 \begin_layout LyX-Code
30469          </graphic>"
30470 \end_layout
30471
30472 \begin_layout LyX-Code
30473 UpdateFormat eps
30474 \end_layout
30475
30476 \begin_layout LyX-Code
30477 UpdateResult "$$AbsPath$$Basename.eps"
30478 \end_layout
30479
30480 \begin_layout LyX-Code
30481 ReferencedFile docbook "$$AbsPath$$Basename.eps"
30482 \end_layout
30483
30484 \begin_layout LyX-Code
30485 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
30486 \end_layout
30487
30488 \begin_layout LyX-Code
30489 FormatEnd
30490 \end_layout
30491
30492 \begin_layout LyX-Code
30493 TemplateEnd
30494 \end_layout
30495
30496 \begin_layout Standard
30497 As you can see, the template is enclosed in 
30498 \begin_inset Flex Code
30499 status collapsed
30500
30501 \begin_layout Plain Layout
30502 Template
30503 \end_layout
30504
30505 \end_inset
30506
30507  \SpecialChar ldots
30508  
30509 \begin_inset Flex Code
30510 status collapsed
30511
30512 \begin_layout Plain Layout
30513 TemplateEnd
30514 \end_layout
30515
30516 \end_inset
30517
30518 .
30519  It contains a header specifying some general settings and, for each supported
30520  primary document file format, a section 
30521 \begin_inset Flex Code
30522 status collapsed
30523
30524 \begin_layout Plain Layout
30525 Format
30526 \end_layout
30527
30528 \end_inset
30529
30530  \SpecialChar ldots
30531  
30532 \begin_inset Flex Code
30533 status collapsed
30534
30535 \begin_layout Plain Layout
30536 FormatEnd
30537 \end_layout
30538
30539 \end_inset
30540
30541 .
30542 \end_layout
30543
30544 \begin_layout Subsection
30545 The template header
30546 \end_layout
30547
30548 \begin_layout Description
30549 \begin_inset Flex Code
30550 status collapsed
30551
30552 \begin_layout Plain Layout
30553 AutomaticProduction
30554 \begin_inset space ~
30555 \end_inset
30556
30557 true|false
30558 \end_layout
30559
30560 \end_inset
30561
30562  Whether the file represented by the template must be generated by \SpecialChar LyX
30563 .
30564  This command must occur exactly once.
30565 \end_layout
30566
30567 \begin_layout Description
30568 \begin_inset Flex Code
30569 status collapsed
30570
30571 \begin_layout Plain Layout
30572 FileFilter
30573 \begin_inset space ~
30574 \end_inset
30575
30576 <pattern>
30577 \end_layout
30578
30579 \end_inset
30580
30581  A glob pattern that is used in the file dialog to filter out the desired
30582  files.
30583  If there is more than one possible file extension (e.
30584 \begin_inset space \thinspace{}
30585 \end_inset
30586
30587 g.
30588 \begin_inset space \space{}
30589 \end_inset
30590
30591 tgif has 
30592 \begin_inset Flex Code
30593 status collapsed
30594
30595 \begin_layout Plain Layout
30596 .obj
30597 \end_layout
30598
30599 \end_inset
30600
30601  and 
30602 \begin_inset Flex Code
30603 status collapsed
30604
30605 \begin_layout Plain Layout
30606 .tgo
30607 \end_layout
30608
30609 \end_inset
30610
30611 ), use something like 
30612 \begin_inset Flex Code
30613 status collapsed
30614
30615 \begin_layout Plain Layout
30616 "*.{obj,tgo}"
30617 \end_layout
30618
30619 \end_inset
30620
30621 .
30622  This command must occur exactly once.
30623 \end_layout
30624
30625 \begin_layout Description
30626 \begin_inset Flex Code
30627 status collapsed
30628
30629 \begin_layout Plain Layout
30630 GuiName
30631 \begin_inset space ~
30632 \end_inset
30633
30634 <guiname>
30635 \end_layout
30636
30637 \end_inset
30638
30639  The text that is displayed on the button.
30640  This command must occur exactly once.
30641 \end_layout
30642
30643 \begin_layout Description
30644 \begin_inset Flex Code
30645 status collapsed
30646
30647 \begin_layout Plain Layout
30648 HelpText
30649 \begin_inset space ~
30650 \end_inset
30651
30652 <text>
30653 \begin_inset space ~
30654 \end_inset
30655
30656 HelpTextEnd
30657 \end_layout
30658
30659 \end_inset
30660
30661  The help text that is used in the External dialog.
30662  Provide enough information to explain to the user just what the template
30663  can provide him with.
30664  This command must occur exactly once.
30665 \end_layout
30666
30667 \begin_layout Description
30668 \begin_inset Flex Code
30669 status collapsed
30670
30671 \begin_layout Plain Layout
30672 InputFormat
30673 \begin_inset space ~
30674 \end_inset
30675
30676 <format>
30677 \end_layout
30678
30679 \end_inset
30680
30681  The file format of the original file.
30682  This must be the name of a format that is known to \SpecialChar LyX
30683  (see 
30684 \begin_inset CommandInset ref
30685 LatexCommand ref
30686 reference "sec:Formats"
30687
30688 \end_inset
30689
30690 ).
30691  Use 
30692 \begin_inset Quotes eld
30693 \end_inset
30694
30695
30696 \begin_inset Flex Code
30697 status collapsed
30698
30699 \begin_layout Plain Layout
30700 *
30701 \end_layout
30702
30703 \end_inset
30704
30705
30706 \begin_inset Quotes erd
30707 \end_inset
30708
30709  if the template can handle original files of more than one format.
30710  \SpecialChar LyX
30711  will attempt to interrogate the file itself in order to deduce its format
30712  in this case.
30713  This command must occur exactly once.
30714 \end_layout
30715
30716 \begin_layout Description
30717 \begin_inset Flex Code
30718 status collapsed
30719
30720 \begin_layout Plain Layout
30721 Template
30722 \begin_inset space ~
30723 \end_inset
30724
30725 <id>
30726 \end_layout
30727
30728 \end_inset
30729
30730  A unique name for the template.
30731  It must not contain substitution macros (see below).
30732 \end_layout
30733
30734 \begin_layout Description
30735 \begin_inset Flex Code
30736 status collapsed
30737
30738 \begin_layout Plain Layout
30739 Transform
30740 \begin_inset space ~
30741 \end_inset
30742
30743 Rotate|Resize|Clip|Extra
30744 \end_layout
30745
30746 \end_inset
30747
30748  This command specifies which transformations are supported by this template.
30749  It may occur zero or more times.
30750  This command enables the corresponding tabs in the external dialog.
30751  Each 
30752 \begin_inset Flex Code
30753 status collapsed
30754
30755 \begin_layout Plain Layout
30756 Transform
30757 \end_layout
30758
30759 \end_inset
30760
30761  command must have either a corresponding 
30762 \begin_inset Flex Code
30763 status collapsed
30764
30765 \begin_layout Plain Layout
30766 TransformCommand
30767 \end_layout
30768
30769 \end_inset
30770
30771  or a 
30772 \begin_inset Flex Code
30773 status collapsed
30774
30775 \begin_layout Plain Layout
30776 TransformOption
30777 \end_layout
30778
30779 \end_inset
30780
30781  command in the 
30782 \begin_inset Flex Code
30783 status collapsed
30784
30785 \begin_layout Plain Layout
30786 Format
30787 \end_layout
30788
30789 \end_inset
30790
30791  section.
30792  Otherwise the transformation will not be supported by that format.
30793 \end_layout
30794
30795 \begin_layout Subsection
30796 The Format section
30797 \end_layout
30798
30799 \begin_layout Description
30800 \begin_inset Flex Code
30801 status collapsed
30802
30803 \begin_layout Plain Layout
30804 Format
30805 \begin_inset space ~
30806 \end_inset
30807
30808 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
30809 \end_layout
30810
30811 \end_inset
30812
30813  The primary document file format that this format definition is for.
30814  Not every template has a sensible representation in all document file formats.
30815  Please define nevertheless a 
30816 \begin_inset Flex Code
30817 status collapsed
30818
30819 \begin_layout Plain Layout
30820 Format
30821 \end_layout
30822
30823 \end_inset
30824
30825  section for all templates.
30826  Use a dummy text when no representation is available.
30827  Then you can at least see a reference to the external material in the exported
30828  document.
30829 \end_layout
30830
30831 \begin_layout Description
30832 \begin_inset Flex Code
30833 status collapsed
30834
30835 \begin_layout Plain Layout
30836 Option
30837 \begin_inset space ~
30838 \end_inset
30839
30840 <name>
30841 \begin_inset space ~
30842 \end_inset
30843
30844 <value>
30845 \end_layout
30846
30847 \end_inset
30848
30849  This command defines an additional macro 
30850 \begin_inset Flex Code
30851 status collapsed
30852
30853 \begin_layout Plain Layout
30854 $$<name>
30855 \end_layout
30856
30857 \end_inset
30858
30859  for substitution in 
30860 \begin_inset Flex Code
30861 status collapsed
30862
30863 \begin_layout Plain Layout
30864 Product
30865 \end_layout
30866
30867 \end_inset
30868
30869 .
30870  
30871 \begin_inset Flex Code
30872 status collapsed
30873
30874 \begin_layout Plain Layout
30875 <value>
30876 \end_layout
30877
30878 \end_inset
30879
30880  itself may contain substitution macros.
30881  The advantage over using 
30882 \begin_inset Flex Code
30883 status collapsed
30884
30885 \begin_layout Plain Layout
30886 <value>
30887 \end_layout
30888
30889 \end_inset
30890
30891  directly in 
30892 \begin_inset Flex Code
30893 status collapsed
30894
30895 \begin_layout Plain Layout
30896 Product
30897 \end_layout
30898
30899 \end_inset
30900
30901  is that the substituted value of 
30902 \begin_inset Flex Code
30903 status collapsed
30904
30905 \begin_layout Plain Layout
30906 $$<name>
30907 \end_layout
30908
30909 \end_inset
30910
30911  is sanitized so that it is a valid optional argument in the document format.
30912  This command may occur zero or more times.
30913 \end_layout
30914
30915 \begin_layout Description
30916 \begin_inset Flex Code
30917 status collapsed
30918
30919 \begin_layout Plain Layout
30920 Product
30921 \begin_inset space ~
30922 \end_inset
30923
30924 <text>
30925 \end_layout
30926
30927 \end_inset
30928
30929  The text that is inserted in the exported document.
30930  This is actually the most important command and can be quite complex.
30931  This command must occur exactly once.
30932 \end_layout
30933
30934 \begin_layout Description
30935 \begin_inset Flex Code
30936 status collapsed
30937
30938 \begin_layout Plain Layout
30939 Preamble
30940 \begin_inset space ~
30941 \end_inset
30942
30943 <name>
30944 \end_layout
30945
30946 \end_inset
30947
30948  This command specifies a preamble snippet that will be included in the
30949  \SpecialChar LaTeX
30950  preamble.
30951  It has to be defined using 
30952 \begin_inset Flex Code
30953 status collapsed
30954
30955 \begin_layout Plain Layout
30956 PreambleDef
30957 \end_layout
30958
30959 \end_inset
30960
30961  \SpecialChar ldots
30962  
30963 \begin_inset Flex Code
30964 status collapsed
30965
30966 \begin_layout Plain Layout
30967 PreambleDefEnd
30968 \end_layout
30969
30970 \end_inset
30971
30972 .
30973  This command may occur zero or more times.
30974 \end_layout
30975
30976 \begin_layout Description
30977 \begin_inset Flex Code
30978 status collapsed
30979
30980 \begin_layout Plain Layout
30981 ReferencedFile
30982 \begin_inset space ~
30983 \end_inset
30984
30985 <format>
30986 \begin_inset space ~
30987 \end_inset
30988
30989 <filename>
30990 \end_layout
30991
30992 \end_inset
30993
30994  This command denotes files that are created by the conversion process and
30995  are needed for a particular export format.
30996  If the filename is relative, it is interpreted relative to the master document.
30997  This command may be given zero or more times.
30998 \end_layout
30999
31000 \begin_layout Description
31001 \begin_inset Flex Code
31002 status collapsed
31003
31004 \begin_layout Plain Layout
31005 Requirement
31006 \begin_inset space ~
31007 \end_inset
31008
31009 <package>
31010 \end_layout
31011
31012 \end_inset
31013
31014  The name of a required \SpecialChar LaTeX
31015  package.
31016  The package is included via 
31017 \begin_inset Flex Code
31018 status collapsed
31019
31020 \begin_layout Plain Layout
31021
31022 \backslash
31023 usepackage{}
31024 \end_layout
31025
31026 \end_inset
31027
31028  in the \SpecialChar LaTeX
31029  preamble.
31030  This command may occur zero or more times.
31031 \end_layout
31032
31033 \begin_layout Description
31034 \begin_inset Flex Code
31035 status collapsed
31036
31037 \begin_layout Plain Layout
31038 TransformCommand
31039 \begin_inset space ~
31040 \end_inset
31041
31042 Rotate
31043 \begin_inset space ~
31044 \end_inset
31045
31046 RotationLatexCommand
31047 \end_layout
31048
31049 \end_inset
31050
31051  This command specifies that the built in \SpecialChar LaTeX
31052  command should be used for rotation.
31053  This command may occur once or not at all.
31054 \end_layout
31055
31056 \begin_layout Description
31057 \begin_inset Flex Code
31058 status collapsed
31059
31060 \begin_layout Plain Layout
31061 TransformCommand
31062 \begin_inset space ~
31063 \end_inset
31064
31065 Resize
31066 \begin_inset space ~
31067 \end_inset
31068
31069 ResizeLatexCommand
31070 \end_layout
31071
31072 \end_inset
31073
31074  This command specifies that the built in \SpecialChar LaTeX
31075  command should be used for resizing.
31076  This command may occur once or not at all.
31077 \end_layout
31078
31079 \begin_layout Description
31080 \begin_inset Flex Code
31081 status collapsed
31082
31083 \begin_layout Plain Layout
31084 TransformOption
31085 \begin_inset space ~
31086 \end_inset
31087
31088 Rotate
31089 \begin_inset space ~
31090 \end_inset
31091
31092 RotationLatexOption
31093 \end_layout
31094
31095 \end_inset
31096
31097  This command specifies that rotation is done via an optional argument.
31098  This command may occur once or not at all.
31099 \end_layout
31100
31101 \begin_layout Description
31102 \begin_inset Flex Code
31103 status collapsed
31104
31105 \begin_layout Plain Layout
31106 TransformOption
31107 \begin_inset space ~
31108 \end_inset
31109
31110 Resize
31111 \begin_inset space ~
31112 \end_inset
31113
31114 ResizeLatexOption
31115 \end_layout
31116
31117 \end_inset
31118
31119  This command specifies that resizing is done via an optional argument.
31120  This command may occur once or not at all.
31121 \end_layout
31122
31123 \begin_layout Description
31124 \begin_inset Flex Code
31125 status collapsed
31126
31127 \begin_layout Plain Layout
31128 TransformOption
31129 \begin_inset space ~
31130 \end_inset
31131
31132 Clip
31133 \begin_inset space ~
31134 \end_inset
31135
31136 ClipLatexOption
31137 \end_layout
31138
31139 \end_inset
31140
31141  This command specifies that clipping is done via an optional argument.
31142  This command may occur once or not at all.
31143 \end_layout
31144
31145 \begin_layout Description
31146 \begin_inset Flex Code
31147 status collapsed
31148
31149 \begin_layout Plain Layout
31150 TransformOption
31151 \begin_inset space ~
31152 \end_inset
31153
31154 Extra
31155 \begin_inset space ~
31156 \end_inset
31157
31158 ExtraLatexOption
31159 \end_layout
31160
31161 \end_inset
31162
31163  This command specifies that an extra optional argument is used.
31164  This command may occur once or not at all.
31165 \end_layout
31166
31167 \begin_layout Description
31168 \begin_inset Flex Code
31169 status collapsed
31170
31171 \begin_layout Plain Layout
31172 UpdateFormat
31173 \begin_inset space ~
31174 \end_inset
31175
31176 <format>
31177 \end_layout
31178
31179 \end_inset
31180
31181  The file format of the converted file.
31182  This must be the name of a format that is known to \SpecialChar LyX
31183  (see the 
31184 \begin_inset Flex Noun
31185 status collapsed
31186
31187 \begin_layout Plain Layout
31188 Tools\SpecialChar menuseparator
31189 Preferences\SpecialChar menuseparator
31190 File Handling\SpecialChar menuseparator
31191 File Format
31192 \end_layout
31193
31194 \end_inset
31195
31196  dialog).
31197  This command must occur exactly once.
31198  If the resulting file format is PDF, you need to specify the format 
31199 \begin_inset Flex Code
31200 status collapsed
31201
31202 \begin_layout Plain Layout
31203 pdf6
31204 \end_layout
31205
31206 \end_inset
31207
31208 .
31209  This is the PDF format used for including graphics.
31210  The other defined PDF formats are for document export.
31211 \end_layout
31212
31213 \begin_layout Description
31214 \begin_inset Flex Code
31215 status collapsed
31216
31217 \begin_layout Plain Layout
31218 UpdateResult
31219 \begin_inset space ~
31220 \end_inset
31221
31222 <filename>
31223 \end_layout
31224
31225 \end_inset
31226
31227  The file name of the converted file.
31228  The file name must be absolute.
31229  This command must occur exactly once.
31230 \end_layout
31231
31232 \begin_layout Subsection
31233 Preamble definitions
31234 \end_layout
31235
31236 \begin_layout Standard
31237 The external template configuration file may contain additional preamble
31238  definitions enclosed by 
31239 \begin_inset Flex Code
31240 status collapsed
31241
31242 \begin_layout Plain Layout
31243 PreambleDef
31244 \end_layout
31245
31246 \end_inset
31247
31248  \SpecialChar ldots
31249  
31250 \begin_inset Flex Code
31251 status collapsed
31252
31253 \begin_layout Plain Layout
31254 PreambleDefEnd
31255 \end_layout
31256
31257 \end_inset
31258
31259 .
31260  They can be used by the templates in the 
31261 \begin_inset Flex Code
31262 status collapsed
31263
31264 \begin_layout Plain Layout
31265 Format
31266 \end_layout
31267
31268 \end_inset
31269
31270  section.
31271 \end_layout
31272
31273 \begin_layout Section
31274 The substitution mechanism
31275 \end_layout
31276
31277 \begin_layout Standard
31278 When the external material facility invokes an external program, it is done
31279  on the basis of a command defined in the template configuration file.
31280  These commands can contain various macros that are expanded before execution.
31281  Execution always take place in the directory of the containing document.
31282 \end_layout
31283
31284 \begin_layout Standard
31285 Also, whenever external material is to be displayed, the name will be produced
31286  by the substitution mechanism, and most other commands in the template
31287  definition support substitution as well.
31288 \end_layout
31289
31290 \begin_layout Standard
31291 The available macros are the following:
31292 \end_layout
31293
31294 \begin_layout Description
31295 \begin_inset Flex Code
31296 status collapsed
31297
31298 \begin_layout Plain Layout
31299 $$AbsOrRelPathMaster
31300 \end_layout
31301
31302 \end_inset
31303
31304  The file path, absolute or relative to the master \SpecialChar LyX
31305  document.
31306 \end_layout
31307
31308 \begin_layout Description
31309 \begin_inset Flex Code
31310 status collapsed
31311
31312 \begin_layout Plain Layout
31313 $$AbsOrRelPathParent
31314 \end_layout
31315
31316 \end_inset
31317
31318  The file path, absolute or relative to the \SpecialChar LyX
31319  document.
31320 \end_layout
31321
31322 \begin_layout Description
31323 \begin_inset Flex Code
31324 status collapsed
31325
31326 \begin_layout Plain Layout
31327 $$AbsPath
31328 \end_layout
31329
31330 \end_inset
31331
31332  The absolute file path.
31333 \end_layout
31334
31335 \begin_layout Description
31336 \begin_inset Flex Code
31337 status collapsed
31338
31339 \begin_layout Plain Layout
31340 $$Basename
31341 \end_layout
31342
31343 \end_inset
31344
31345  The filename without path and without the extension.
31346 \end_layout
31347
31348 \begin_layout Description
31349 \begin_inset Flex Code
31350 status collapsed
31351
31352 \begin_layout Plain Layout
31353 $$Contents(
31354 \begin_inset Quotes eld
31355 \end_inset
31356
31357 filename.ext
31358 \begin_inset Quotes erd
31359 \end_inset
31360
31361 )
31362 \end_layout
31363
31364 \end_inset
31365
31366  This macro will expand to the contents of the file with the name 
31367 \begin_inset Flex Code
31368 status collapsed
31369
31370 \begin_layout Plain Layout
31371 filename.ext
31372 \end_layout
31373
31374 \end_inset
31375
31376 .
31377 \end_layout
31378
31379 \begin_layout Description
31380 \begin_inset Flex Code
31381 status collapsed
31382
31383 \begin_layout Plain Layout
31384 $$Extension
31385 \end_layout
31386
31387 \end_inset
31388
31389  The file extension (including the dot).
31390 \end_layout
31391
31392 \begin_layout Description
31393 \begin_inset Flex Code
31394 status collapsed
31395
31396 \begin_layout Plain Layout
31397 $$pngOrjpg
31398 \end_layout
31399
31400 \end_inset
31401
31402  This will be the string 
31403 \begin_inset Quotes eld
31404 \end_inset
31405
31406 jpg
31407 \begin_inset Quotes erd
31408 \end_inset
31409
31410  if the file is in JPEG format, otherwise it will be the string 
31411 \begin_inset Quotes eld
31412 \end_inset
31413
31414 png
31415 \begin_inset Quotes erd
31416 \end_inset
31417
31418 .
31419  This is useful to avoid uneeded conversions for output formats that support
31420  both PNG and JPEG fomats.
31421  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
31422  output
31423  format.
31424 \end_layout
31425
31426 \begin_layout Description
31427 \begin_inset Flex Code
31428 status collapsed
31429
31430 \begin_layout Plain Layout
31431 $$FName
31432 \end_layout
31433
31434 \end_inset
31435
31436  The filename of the file specified in the external material dialog.
31437  This is either an absolute name, or it is relative to the \SpecialChar LyX
31438  document.
31439 \end_layout
31440
31441 \begin_layout Description
31442 \begin_inset Flex Code
31443 status collapsed
31444
31445 \begin_layout Plain Layout
31446 $$FPath
31447 \end_layout
31448
31449 \end_inset
31450
31451  The path part of 
31452 \begin_inset Flex Code
31453 status collapsed
31454
31455 \begin_layout Plain Layout
31456 $$FName
31457 \end_layout
31458
31459 \end_inset
31460
31461  (absolute name or relative to the \SpecialChar LyX
31462  document).
31463 \end_layout
31464
31465 \begin_layout Description
31466 \begin_inset Flex Code
31467 status collapsed
31468
31469 \begin_layout Plain Layout
31470 $$RelPathMaster
31471 \end_layout
31472
31473 \end_inset
31474
31475  The file path, relative to the master \SpecialChar LyX
31476  document.
31477 \end_layout
31478
31479 \begin_layout Description
31480 \begin_inset Flex Code
31481 status collapsed
31482
31483 \begin_layout Plain Layout
31484 $$RelPathParent
31485 \end_layout
31486
31487 \end_inset
31488
31489  The file path, relative to the \SpecialChar LyX
31490  document.
31491 \end_layout
31492
31493 \begin_layout Description
31494 \begin_inset Flex Code
31495 status collapsed
31496
31497 \begin_layout Plain Layout
31498 $$Sysdir
31499 \end_layout
31500
31501 \end_inset
31502
31503  This macro will expand to the absolute path of the system directory.
31504  This is typically used to point to the various helper scripts that are
31505  bundled with \SpecialChar LyX
31506 .
31507 \end_layout
31508
31509 \begin_layout Description
31510 \begin_inset Flex Code
31511 status collapsed
31512
31513 \begin_layout Plain Layout
31514 $$Tempname
31515 \end_layout
31516
31517 \end_inset
31518
31519  A name and full path to a temporary file which will be automatically deleted
31520  whenever the containing document is closed, or the external material insertion
31521  deleted.
31522 \end_layout
31523
31524 \begin_layout Standard
31525 All path macros contain a trailing directory separator, so you can construct
31526  e.
31527 \begin_inset space \thinspace{}
31528 \end_inset
31529
31530 g.
31531 \begin_inset space \space{}
31532 \end_inset
31533
31534 the absolute filename with 
31535 \begin_inset Flex Code
31536 status collapsed
31537
31538 \begin_layout Plain Layout
31539 $$AbsPath$$Basename$$Extension
31540 \end_layout
31541
31542 \end_inset
31543
31544 .
31545 \end_layout
31546
31547 \begin_layout Standard
31548 The macros above are substituted in all commands unless otherwise noted.
31549  The command 
31550 \begin_inset Flex Code
31551 status collapsed
31552
31553 \begin_layout Plain Layout
31554 Product
31555 \end_layout
31556
31557 \end_inset
31558
31559  supports additionally the following substitutions if they are enabled by
31560  the 
31561 \begin_inset Flex Code
31562 status collapsed
31563
31564 \begin_layout Plain Layout
31565 Transform
31566 \end_layout
31567
31568 \end_inset
31569
31570  and 
31571 \begin_inset Flex Code
31572 status collapsed
31573
31574 \begin_layout Plain Layout
31575 TransformCommand
31576 \end_layout
31577
31578 \end_inset
31579
31580  commands:
31581 \end_layout
31582
31583 \begin_layout Description
31584 \begin_inset Flex Code
31585 status collapsed
31586
31587 \begin_layout Plain Layout
31588 $$ResizeFront
31589 \end_layout
31590
31591 \end_inset
31592
31593  The front part of the resize command.
31594 \end_layout
31595
31596 \begin_layout Description
31597 \begin_inset Flex Code
31598 status collapsed
31599
31600 \begin_layout Plain Layout
31601 $$ResizeBack
31602 \end_layout
31603
31604 \end_inset
31605
31606  The back part of the resize command.
31607 \end_layout
31608
31609 \begin_layout Description
31610 \begin_inset Flex Code
31611 status collapsed
31612
31613 \begin_layout Plain Layout
31614 $$RotateFront
31615 \end_layout
31616
31617 \end_inset
31618
31619  The front part of the rotation command.
31620 \end_layout
31621
31622 \begin_layout Description
31623 \begin_inset Flex Code
31624 status collapsed
31625
31626 \begin_layout Plain Layout
31627 $$RotateBack
31628 \end_layout
31629
31630 \end_inset
31631
31632  The back part of the rotation command.
31633 \end_layout
31634
31635 \begin_layout Standard
31636 The value string of the 
31637 \begin_inset Flex Code
31638 status collapsed
31639
31640 \begin_layout Plain Layout
31641 Option
31642 \end_layout
31643
31644 \end_inset
31645
31646  command supports additionally the following substitutions if they are enabled
31647  by the 
31648 \begin_inset Flex Code
31649 status collapsed
31650
31651 \begin_layout Plain Layout
31652 Transform
31653 \end_layout
31654
31655 \end_inset
31656
31657  and 
31658 \begin_inset Flex Code
31659 status collapsed
31660
31661 \begin_layout Plain Layout
31662 TransformOption
31663 \end_layout
31664
31665 \end_inset
31666
31667  commands:
31668 \end_layout
31669
31670 \begin_layout Description
31671 \begin_inset Flex Code
31672 status collapsed
31673
31674 \begin_layout Plain Layout
31675 $$Clip
31676 \end_layout
31677
31678 \end_inset
31679
31680  The clip option.
31681 \end_layout
31682
31683 \begin_layout Description
31684 \begin_inset Flex Code
31685 status collapsed
31686
31687 \begin_layout Plain Layout
31688 $$Extra
31689 \end_layout
31690
31691 \end_inset
31692
31693  The extra option.
31694 \end_layout
31695
31696 \begin_layout Description
31697 \begin_inset Flex Code
31698 status collapsed
31699
31700 \begin_layout Plain Layout
31701 $$Resize
31702 \end_layout
31703
31704 \end_inset
31705
31706  The resize option.
31707 \end_layout
31708
31709 \begin_layout Description
31710 \begin_inset Flex Code
31711 status collapsed
31712
31713 \begin_layout Plain Layout
31714 $$Rotate
31715 \end_layout
31716
31717 \end_inset
31718
31719  The rotation option.
31720 \end_layout
31721
31722 \begin_layout Standard
31723 You may ask why there are so many path macros.
31724  There are mainly two reasons:
31725 \end_layout
31726
31727 \begin_layout Enumerate
31728 Relative and absolute file names should remain relative or absolute, respectivel
31729 y.
31730  Users may have reasons to prefer either form.
31731  Relative names are useful for portable documents that should work on different
31732  machines, for example.
31733  Absolute names may be required by some programs.
31734 \end_layout
31735
31736 \begin_layout Enumerate
31737 \SpecialChar LaTeX
31738  treats relative file names differently than \SpecialChar LyX
31739  and other programs in nested
31740  included files.
31741  For \SpecialChar LyX
31742 , a relative file name is always relative to the document that contains
31743  the file name.
31744  For \SpecialChar LaTeX
31745 , it is always relative to the master document.
31746  These two definitions are identical if you have only one document, but
31747  differ if you have a master document that includes part documents.
31748  That means that relative filenames must be transformed when presented to
31749  \SpecialChar LaTeX
31750 .
31751  Fortunately \SpecialChar LyX
31752  does this automatically for you if you choose the right macros.
31753 \end_layout
31754
31755 \begin_layout Standard
31756 So which path macro should be used in new template definitions? The rule
31757  is not difficult:
31758 \end_layout
31759
31760 \begin_layout Itemize
31761 Use 
31762 \begin_inset Flex Code
31763 status collapsed
31764
31765 \begin_layout Plain Layout
31766 $$AbsPath
31767 \end_layout
31768
31769 \end_inset
31770
31771  if an absolute path is required.
31772 \end_layout
31773
31774 \begin_layout Itemize
31775 Use 
31776 \begin_inset Flex Code
31777 status collapsed
31778
31779 \begin_layout Plain Layout
31780 $$AbsOrRelPathMaster
31781 \end_layout
31782
31783 \end_inset
31784
31785  if the substituted string is some kind of \SpecialChar LaTeX
31786  input.
31787 \end_layout
31788
31789 \begin_layout Itemize
31790 Else use 
31791 \begin_inset Flex Code
31792 status collapsed
31793
31794 \begin_layout Plain Layout
31795 $$AbsOrRelPathParent
31796 \end_layout
31797
31798 \end_inset
31799
31800  in order to preserve the user's choice.
31801 \end_layout
31802
31803 \begin_layout Standard
31804 There are special cases where this rule does not work and e.
31805 \begin_inset space \thinspace{}
31806 \end_inset
31807
31808 g.
31809 \begin_inset space \space{}
31810 \end_inset
31811
31812 relative names are needed, but normally it will work just fine.
31813  One example for such a case is the command 
31814 \begin_inset Flex Code
31815 status collapsed
31816
31817 \begin_layout Plain Layout
31818 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
31819 \end_layout
31820
31821 \end_inset
31822
31823  in the XFig template above: We can't use the absolute name because the
31824  copier for 
31825 \begin_inset Flex Code
31826 status collapsed
31827
31828 \begin_layout Plain Layout
31829 .pstex_t
31830 \end_layout
31831
31832 \end_inset
31833
31834  files needs the relative name in order to rewrite the file content.
31835 \end_layout
31836
31837 \begin_layout Section
31838 Security discussion
31839 \begin_inset CommandInset label
31840 LatexCommand label
31841 name "sec:Security-discussion"
31842
31843 \end_inset
31844
31845
31846 \end_layout
31847
31848 \begin_layout Standard
31849 The external material feature interfaces with a lot of external programs
31850  and does so automatically, so we have to consider the security implications
31851  of this.
31852  In particular, since you have the option of including your own filenames
31853  and/or parameter strings and those are expanded into a command, it seems
31854  that it would be possible to create a malicious document which executes
31855  arbitrary commands when a user views or prints the document.
31856  This is something we definitely want to avoid.
31857 \end_layout
31858
31859 \begin_layout Standard
31860 However, since the external program commands are specified in the template
31861  configuration file only, there are no security issues if \SpecialChar LyX
31862  is properly configure
31863 d with safe templates only.
31864  This is so because the external programs are invoked with the 
31865 \begin_inset Flex Code
31866 status collapsed
31867
31868 \begin_layout Plain Layout
31869 execvp
31870 \end_layout
31871
31872 \end_inset
31873
31874 -system call rather than the 
31875 \begin_inset Flex Code
31876 status collapsed
31877
31878 \begin_layout Plain Layout
31879 system
31880 \end_layout
31881
31882 \end_inset
31883
31884  system-call, so it's not possible to execute arbitrary commands from the
31885  filename or parameter section via the shell.
31886 \end_layout
31887
31888 \begin_layout Standard
31889 This also implies that you are restricted in what command strings you can
31890  use in the external material templates.
31891  In particular, pipes and redirection are not readily available.
31892  This has to be so if \SpecialChar LyX
31893  should remain safe.
31894  If you want to use some of the shell features, you should write a safe
31895  script to do this in a controlled manner, and then invoke the script from
31896  the command string.
31897  
31898 \end_layout
31899
31900 \begin_layout Standard
31901 It is possible to design a template that interacts directly with the shell,
31902  but since this would allow a malicious user to execute arbitrary commands
31903  by writing clever filenames and/or parameters, we generally recommend that
31904  you only use safe scripts that work with the 
31905 \begin_inset Flex Code
31906 status collapsed
31907
31908 \begin_layout Plain Layout
31909 execvp
31910 \end_layout
31911
31912 \end_inset
31913
31914  system call in a controlled manner.
31915  Of course, for use in a controlled environment, it can be tempting to just
31916  fall back to use ordinary shell scripts.
31917  If you do so, be aware that you 
31918 \emph on
31919 will
31920 \emph default
31921  provide an easily exploitable security hole in your system.
31922  Of course it stands to reason that such unsafe templates will never be
31923  included in the standard \SpecialChar LyX
31924  distribution, although we do encourage people
31925  to submit new templates in the open source tradition.
31926  But \SpecialChar LyX
31927  as shipped from the official distribution channels will never have
31928  unsafe templates.
31929 \end_layout
31930
31931 \begin_layout Standard
31932 Including external material provides a lot of power, and you have to be
31933  careful not to introduce security hazards with this power.
31934  A subtle error in a single line in an innocent looking script can open
31935  the door to huge security problems.
31936  So if you do not fully understand the issues, we recommend that you consult
31937  a knowledgeable security professional or the \SpecialChar LyX
31938  development team if you have
31939  any questions about whether a given template is safe or not.
31940  And do this before you use it in an uncontrolled environment.
31941 \end_layout
31942
31943 \begin_layout Chapter
31944 \start_of_appendix
31945 List of supported \SpecialChar LyX
31946  functions to be used in layouts
31947 \begin_inset CommandInset label
31948 LatexCommand label
31949 name "chap:List-of-functions"
31950
31951 \end_inset
31952
31953
31954 \end_layout
31955
31956 \begin_layout Standard
31957 \align center
31958 \begin_inset Tabular
31959 <lyxtabular version="3" rows="11" columns="8">
31960 <features tabularvalignment="middle">
31961 <column alignment="left" valignment="top">
31962 <column alignment="left" valignment="top">
31963 <column alignment="left" valignment="top">
31964 <column alignment="left" valignment="top">
31965 <column alignment="left" valignment="top">
31966 <column alignment="left" valignment="top">
31967 <column alignment="left" valignment="top">
31968 <column alignment="left" valignment="top">
31969 <row>
31970 <cell alignment="left" valignment="top" usebox="none">
31971 \begin_inset Text
31972
31973 \begin_layout Plain Layout
31974 accents
31975 \end_layout
31976
31977 \end_inset
31978 </cell>
31979 <cell alignment="left" valignment="top" usebox="none">
31980 \begin_inset Text
31981
31982 \begin_layout Plain Layout
31983 booktabs
31984 \end_layout
31985
31986 \end_inset
31987 </cell>
31988 <cell alignment="left" valignment="top" usebox="none">
31989 \begin_inset Text
31990
31991 \begin_layout Plain Layout
31992 feyn
31993 \end_layout
31994
31995 \end_inset
31996 </cell>
31997 <cell alignment="left" valignment="top" usebox="none">
31998 \begin_inset Text
31999
32000 \begin_layout Plain Layout
32001 listings
32002 \end_layout
32003
32004 \end_inset
32005 </cell>
32006 <cell alignment="center" valignment="top" usebox="none">
32007 \begin_inset Text
32008
32009 \begin_layout Plain Layout
32010 natbib
32011 \end_layout
32012
32013 \end_inset
32014 </cell>
32015 <cell alignment="center" valignment="top" usebox="none">
32016 \begin_inset Text
32017
32018 \begin_layout Plain Layout
32019 rotfloat
32020 \end_layout
32021
32022 \end_inset
32023 </cell>
32024 <cell alignment="center" valignment="top" usebox="none">
32025 \begin_inset Text
32026
32027 \begin_layout Plain Layout
32028 tfrupee
32029 \end_layout
32030
32031 \end_inset
32032 </cell>
32033 <cell alignment="center" valignment="top" usebox="none">
32034 \begin_inset Text
32035
32036 \begin_layout Plain Layout
32037 wasysym
32038 \end_layout
32039
32040 \end_inset
32041 </cell>
32042 </row>
32043 <row>
32044 <cell alignment="left" valignment="top" usebox="none">
32045 \begin_inset Text
32046
32047 \begin_layout Plain Layout
32048 amsbsy
32049 \end_layout
32050
32051 \end_inset
32052 </cell>
32053 <cell alignment="left" valignment="top" usebox="none">
32054 \begin_inset Text
32055
32056 \begin_layout Plain Layout
32057 calc
32058 \end_layout
32059
32060 \end_inset
32061 </cell>
32062 <cell alignment="left" valignment="top" usebox="none">
32063 \begin_inset Text
32064
32065 \begin_layout Plain Layout
32066 fixltx2e
32067 \end_layout
32068
32069 \end_inset
32070 </cell>
32071 <cell alignment="left" valignment="top" usebox="none">
32072 \begin_inset Text
32073
32074 \begin_layout Plain Layout
32075 longtable
32076 \end_layout
32077
32078 \end_inset
32079 </cell>
32080 <cell alignment="center" valignment="top" usebox="none">
32081 \begin_inset Text
32082
32083 \begin_layout Plain Layout
32084 nomencl
32085 \end_layout
32086
32087 \end_inset
32088 </cell>
32089 <cell alignment="center" valignment="top" usebox="none">
32090 \begin_inset Text
32091
32092 \begin_layout Plain Layout
32093 rsphrase
32094 \end_layout
32095
32096 \end_inset
32097 </cell>
32098 <cell alignment="center" valignment="top" usebox="none">
32099 \begin_inset Text
32100
32101 \begin_layout Plain Layout
32102 tipa
32103 \end_layout
32104
32105 \end_inset
32106 </cell>
32107 <cell alignment="center" valignment="top" usebox="none">
32108 \begin_inset Text
32109
32110 \begin_layout Plain Layout
32111 wrapfig
32112 \end_layout
32113
32114 \end_inset
32115 </cell>
32116 </row>
32117 <row>
32118 <cell alignment="left" valignment="top" usebox="none">
32119 \begin_inset Text
32120
32121 \begin_layout Plain Layout
32122 amscd
32123 \end_layout
32124
32125 \end_inset
32126 </cell>
32127 <cell alignment="left" valignment="top" usebox="none">
32128 \begin_inset Text
32129
32130 \begin_layout Plain Layout
32131 CJK
32132 \end_layout
32133
32134 \end_inset
32135 </cell>
32136 <cell alignment="left" valignment="top" usebox="none">
32137 \begin_inset Text
32138
32139 \begin_layout Plain Layout
32140 float
32141 \end_layout
32142
32143 \end_inset
32144 </cell>
32145 <cell alignment="left" valignment="top" usebox="none">
32146 \begin_inset Text
32147
32148 \begin_layout Plain Layout
32149 lyxskak
32150 \end_layout
32151
32152 \end_inset
32153 </cell>
32154 <cell alignment="center" valignment="top" usebox="none">
32155 \begin_inset Text
32156
32157 \begin_layout Plain Layout
32158 pdfcolmk
32159 \end_layout
32160
32161 \end_inset
32162 </cell>
32163 <cell alignment="center" valignment="top" usebox="none">
32164 \begin_inset Text
32165
32166 \begin_layout Plain Layout
32167 setspace
32168 \end_layout
32169
32170 \end_inset
32171 </cell>
32172 <cell alignment="center" valignment="top" usebox="none">
32173 \begin_inset Text
32174
32175 \begin_layout Plain Layout
32176 tipx
32177 \end_layout
32178
32179 \end_inset
32180 </cell>
32181 <cell alignment="center" valignment="top" usebox="none">
32182 \begin_inset Text
32183
32184 \begin_layout Plain Layout
32185 xargs
32186 \end_layout
32187
32188 \end_inset
32189 </cell>
32190 </row>
32191 <row>
32192 <cell alignment="left" valignment="top" usebox="none">
32193 \begin_inset Text
32194
32195 \begin_layout Plain Layout
32196 amsmath
32197 \end_layout
32198
32199 \end_inset
32200 </cell>
32201 <cell alignment="left" valignment="top" usebox="none">
32202 \begin_inset Text
32203
32204 \begin_layout Plain Layout
32205 color
32206 \end_layout
32207
32208 \end_inset
32209 </cell>
32210 <cell alignment="left" valignment="top" usebox="none">
32211 \begin_inset Text
32212
32213 \begin_layout Plain Layout
32214 framed
32215 \end_layout
32216
32217 \end_inset
32218 </cell>
32219 <cell alignment="left" valignment="top" usebox="none">
32220 \begin_inset Text
32221
32222 \begin_layout Plain Layout
32223 makeidx
32224 \end_layout
32225
32226 \end_inset
32227 </cell>
32228 <cell alignment="center" valignment="top" usebox="none">
32229 \begin_inset Text
32230
32231 \begin_layout Plain Layout
32232 pdfpages
32233 \end_layout
32234
32235 \end_inset
32236 </cell>
32237 <cell alignment="center" valignment="top" usebox="none">
32238 \begin_inset Text
32239
32240 \begin_layout Plain Layout
32241 shapepar
32242 \end_layout
32243
32244 \end_inset
32245 </cell>
32246 <cell alignment="center" valignment="top" usebox="none">
32247 \begin_inset Text
32248
32249 \begin_layout Plain Layout
32250 tone
32251 \end_layout
32252
32253 \end_inset
32254 </cell>
32255 <cell alignment="center" valignment="top" usebox="none">
32256 \begin_inset Text
32257
32258 \begin_layout Plain Layout
32259 xcolor
32260 \end_layout
32261
32262 \end_inset
32263 </cell>
32264 </row>
32265 <row>
32266 <cell alignment="left" valignment="top" usebox="none">
32267 \begin_inset Text
32268
32269 \begin_layout Plain Layout
32270 amssymb
32271 \end_layout
32272
32273 \end_inset
32274 </cell>
32275 <cell alignment="left" valignment="top" usebox="none">
32276 \begin_inset Text
32277
32278 \begin_layout Plain Layout
32279 covington
32280 \end_layout
32281
32282 \end_inset
32283 </cell>
32284 <cell alignment="left" valignment="top" usebox="none">
32285 \begin_inset Text
32286
32287 \begin_layout Plain Layout
32288 graphicx
32289 \end_layout
32290
32291 \end_inset
32292 </cell>
32293 <cell alignment="left" valignment="top" usebox="none">
32294 \begin_inset Text
32295
32296 \begin_layout Plain Layout
32297 marvosym
32298 \end_layout
32299
32300 \end_inset
32301 </cell>
32302 <cell alignment="center" valignment="top" usebox="none">
32303 \begin_inset Text
32304
32305 \begin_layout Plain Layout
32306 pifont
32307 \end_layout
32308
32309 \end_inset
32310 </cell>
32311 <cell alignment="center" valignment="top" usebox="none">
32312 \begin_inset Text
32313
32314 \begin_layout Plain Layout
32315 slashed
32316 \end_layout
32317
32318 \end_inset
32319 </cell>
32320 <cell alignment="center" valignment="top" usebox="none">
32321 \begin_inset Text
32322
32323 \begin_layout Plain Layout
32324 txfonts
32325 \end_layout
32326
32327 \end_inset
32328 </cell>
32329 <cell alignment="center" valignment="top" usebox="none">
32330 \begin_inset Text
32331
32332 \begin_layout Plain Layout
32333 xy
32334 \end_layout
32335
32336 \end_inset
32337 </cell>
32338 </row>
32339 <row>
32340 <cell alignment="left" valignment="top" usebox="none">
32341 \begin_inset Text
32342
32343 \begin_layout Plain Layout
32344 amstext
32345 \end_layout
32346
32347 \end_inset
32348 </cell>
32349 <cell alignment="left" valignment="top" usebox="none">
32350 \begin_inset Text
32351
32352 \begin_layout Plain Layout
32353 csquotes
32354 \end_layout
32355
32356 \end_inset
32357 </cell>
32358 <cell alignment="left" valignment="top" usebox="none">
32359 \begin_inset Text
32360
32361 \begin_layout Plain Layout
32362 hhline
32363 \end_layout
32364
32365 \end_inset
32366 </cell>
32367 <cell alignment="left" valignment="top" usebox="none">
32368 \begin_inset Text
32369
32370 \begin_layout Plain Layout
32371 mathdesign
32372 \end_layout
32373
32374 \end_inset
32375 </cell>
32376 <cell alignment="center" valignment="top" usebox="none">
32377 \begin_inset Text
32378
32379 \begin_layout Plain Layout
32380 pmboxdraw
32381 \end_layout
32382
32383 \end_inset
32384 </cell>
32385 <cell alignment="center" valignment="top" usebox="none">
32386 \begin_inset Text
32387
32388 \begin_layout Plain Layout
32389 soul
32390 \end_layout
32391
32392 \end_inset
32393 </cell>
32394 <cell alignment="center" valignment="top" usebox="none">
32395 \begin_inset Text
32396
32397 \begin_layout Plain Layout
32398 ulem
32399 \end_layout
32400
32401 \end_inset
32402 </cell>
32403 <cell alignment="center" valignment="top" usebox="none">
32404 \begin_inset Text
32405
32406 \begin_layout Plain Layout
32407 yhmath
32408 \end_layout
32409
32410 \end_inset
32411 </cell>
32412 </row>
32413 <row>
32414 <cell alignment="left" valignment="top" usebox="none">
32415 \begin_inset Text
32416
32417 \begin_layout Plain Layout
32418 amsthm
32419 \end_layout
32420
32421 \end_inset
32422 </cell>
32423 <cell alignment="left" valignment="top" usebox="none">
32424 \begin_inset Text
32425
32426 \begin_layout Plain Layout
32427 dvipost
32428 \end_layout
32429
32430 \end_inset
32431 </cell>
32432 <cell alignment="left" valignment="top" usebox="none">
32433 \begin_inset Text
32434
32435 \begin_layout Plain Layout
32436 hyperref
32437 \end_layout
32438
32439 \end_inset
32440 </cell>
32441 <cell alignment="left" valignment="top" usebox="none">
32442 \begin_inset Text
32443
32444 \begin_layout Plain Layout
32445 mathdots
32446 \end_layout
32447
32448 \end_inset
32449 </cell>
32450 <cell alignment="center" valignment="top" usebox="none">
32451 \begin_inset Text
32452
32453 \begin_layout Plain Layout
32454 polyglossia
32455 \end_layout
32456
32457 \end_inset
32458 </cell>
32459 <cell alignment="center" valignment="top" usebox="none">
32460 \begin_inset Text
32461
32462 \begin_layout Plain Layout
32463 splitidx
32464 \end_layout
32465
32466 \end_inset
32467 </cell>
32468 <cell alignment="center" valignment="top" usebox="none">
32469 \begin_inset Text
32470
32471 \begin_layout Plain Layout
32472 undertilde
32473 \end_layout
32474
32475 \end_inset
32476 </cell>
32477 <cell alignment="center" valignment="top" usebox="none">
32478 \begin_inset Text
32479
32480 \begin_layout Plain Layout
32481
32482 \end_layout
32483
32484 \end_inset
32485 </cell>
32486 </row>
32487 <row>
32488 <cell alignment="left" valignment="top" usebox="none">
32489 \begin_inset Text
32490
32491 \begin_layout Plain Layout
32492 array
32493 \end_layout
32494
32495 \end_inset
32496 </cell>
32497 <cell alignment="left" valignment="top" usebox="none">
32498 \begin_inset Text
32499
32500 \begin_layout Plain Layout
32501 endnotes
32502 \end_layout
32503
32504 \end_inset
32505 </cell>
32506 <cell alignment="left" valignment="top" usebox="none">
32507 \begin_inset Text
32508
32509 \begin_layout Plain Layout
32510 ifsym
32511 \end_layout
32512
32513 \end_inset
32514 </cell>
32515 <cell alignment="left" valignment="top" usebox="none">
32516 \begin_inset Text
32517
32518 \begin_layout Plain Layout
32519 mathrsfs
32520 \end_layout
32521
32522 \end_inset
32523 </cell>
32524 <cell alignment="center" valignment="top" usebox="none">
32525 \begin_inset Text
32526
32527 \begin_layout Plain Layout
32528 prettyref
32529 \end_layout
32530
32531 \end_inset
32532 </cell>
32533 <cell alignment="center" valignment="top" usebox="none">
32534 \begin_inset Text
32535
32536 \begin_layout Plain Layout
32537 subfig
32538 \end_layout
32539
32540 \end_inset
32541 </cell>
32542 <cell alignment="center" valignment="top" usebox="none">
32543 \begin_inset Text
32544
32545 \begin_layout Plain Layout
32546 units
32547 \end_layout
32548
32549 \end_inset
32550 </cell>
32551 <cell alignment="center" valignment="top" usebox="none">
32552 \begin_inset Text
32553
32554 \begin_layout Plain Layout
32555
32556 \end_layout
32557
32558 \end_inset
32559 </cell>
32560 </row>
32561 <row>
32562 <cell alignment="left" valignment="top" usebox="none">
32563 \begin_inset Text
32564
32565 \begin_layout Plain Layout
32566 ascii
32567 \end_layout
32568
32569 \end_inset
32570 </cell>
32571 <cell alignment="left" valignment="top" usebox="none">
32572 \begin_inset Text
32573
32574 \begin_layout Plain Layout
32575 enumitem
32576 \end_layout
32577
32578 \end_inset
32579 </cell>
32580 <cell alignment="left" valignment="top" usebox="none">
32581 \begin_inset Text
32582
32583 \begin_layout Plain Layout
32584 ifthen
32585 \end_layout
32586
32587 \end_inset
32588 </cell>
32589 <cell alignment="left" valignment="top" usebox="none">
32590 \begin_inset Text
32591
32592 \begin_layout Plain Layout
32593 mhchem
32594 \end_layout
32595
32596 \end_inset
32597 </cell>
32598 <cell alignment="center" valignment="top" usebox="none">
32599 \begin_inset Text
32600
32601 \begin_layout Plain Layout
32602 pxfonts
32603 \end_layout
32604
32605 \end_inset
32606 </cell>
32607 <cell alignment="center" valignment="top" usebox="none">
32608 \begin_inset Text
32609
32610 \begin_layout Plain Layout
32611 subscript
32612 \end_layout
32613
32614 \end_inset
32615 </cell>
32616 <cell alignment="center" valignment="top" usebox="none">
32617 \begin_inset Text
32618
32619 \begin_layout Plain Layout
32620 url
32621 \end_layout
32622
32623 \end_inset
32624 </cell>
32625 <cell alignment="center" valignment="top" usebox="none">
32626 \begin_inset Text
32627
32628 \begin_layout Plain Layout
32629
32630 \end_layout
32631
32632 \end_inset
32633 </cell>
32634 </row>
32635 <row>
32636 <cell alignment="left" valignment="top" usebox="none">
32637 \begin_inset Text
32638
32639 \begin_layout Plain Layout
32640 bbding
32641 \end_layout
32642
32643 \end_inset
32644 </cell>
32645 <cell alignment="left" valignment="top" usebox="none">
32646 \begin_inset Text
32647
32648 \begin_layout Plain Layout
32649 esint
32650 \end_layout
32651
32652 \end_inset
32653 </cell>
32654 <cell alignment="left" valignment="top" usebox="none">
32655 \begin_inset Text
32656
32657 \begin_layout Plain Layout
32658 jurabib
32659 \end_layout
32660
32661 \end_inset
32662 </cell>
32663 <cell alignment="left" valignment="top" usebox="none">
32664 \begin_inset Text
32665
32666 \begin_layout Plain Layout
32667 multicol
32668 \end_layout
32669
32670 \end_inset
32671 </cell>
32672 <cell alignment="center" valignment="top" usebox="none">
32673 \begin_inset Text
32674
32675 \begin_layout Plain Layout
32676 refstyle
32677 \end_layout
32678
32679 \end_inset
32680 </cell>
32681 <cell alignment="center" valignment="top" usebox="none">
32682 \begin_inset Text
32683
32684 \begin_layout Plain Layout
32685 textcomp
32686 \end_layout
32687
32688 \end_inset
32689 </cell>
32690 <cell alignment="center" valignment="top" usebox="none">
32691 \begin_inset Text
32692
32693 \begin_layout Plain Layout
32694 varioref
32695 \end_layout
32696
32697 \end_inset
32698 </cell>
32699 <cell alignment="center" valignment="top" usebox="none">
32700 \begin_inset Text
32701
32702 \begin_layout Plain Layout
32703
32704 \end_layout
32705
32706 \end_inset
32707 </cell>
32708 </row>
32709 <row>
32710 <cell alignment="center" valignment="top" usebox="none">
32711 \begin_inset Text
32712
32713 \begin_layout Plain Layout
32714 bm
32715 \end_layout
32716
32717 \end_inset
32718 </cell>
32719 <cell alignment="center" valignment="top" usebox="none">
32720 \begin_inset Text
32721
32722 \begin_layout Plain Layout
32723 fancybox
32724 \end_layout
32725
32726 \end_inset
32727 </cell>
32728 <cell alignment="center" valignment="top" usebox="none">
32729 \begin_inset Text
32730
32731 \begin_layout Plain Layout
32732 latexsym
32733 \end_layout
32734
32735 \end_inset
32736 </cell>
32737 <cell alignment="center" valignment="top" usebox="none">
32738 \begin_inset Text
32739
32740 \begin_layout Plain Layout
32741 multirow
32742 \end_layout
32743
32744 \end_inset
32745 </cell>
32746 <cell alignment="center" valignment="top" usebox="none">
32747 \begin_inset Text
32748
32749 \begin_layout Plain Layout
32750 rotating
32751 \end_layout
32752
32753 \end_inset
32754 </cell>
32755 <cell alignment="center" valignment="top" usebox="none">
32756 \begin_inset Text
32757
32758 \begin_layout Plain Layout
32759 textgreek
32760 \end_layout
32761
32762 \end_inset
32763 </cell>
32764 <cell alignment="center" valignment="top" usebox="none">
32765 \begin_inset Text
32766
32767 \begin_layout Plain Layout
32768 verbatim
32769 \end_layout
32770
32771 \end_inset
32772 </cell>
32773 <cell alignment="center" valignment="top" usebox="none">
32774 \begin_inset Text
32775
32776 \begin_layout Plain Layout
32777
32778 \end_layout
32779
32780 \end_inset
32781 </cell>
32782 </row>
32783 </lyxtabular>
32784
32785 \end_inset
32786
32787
32788 \end_layout
32789
32790 \begin_layout Chapter
32791 Names of available colors to be used in layouts
32792 \begin_inset CommandInset label
32793 LatexCommand label
32794 name "chap:Names-of-colors"
32795
32796 \end_inset
32797
32798
32799 \end_layout
32800
32801 \begin_layout Standard
32802 The colors listed below are the standard colors and those that you can adjust
32803  in the \SpecialChar LyX
32804  preferences.
32805 \end_layout
32806
32807 \begin_layout Section
32808 Color functions
32809 \end_layout
32810
32811 \begin_layout Standard
32812 The following are no real colors, but rather act on color definitions:
32813 \end_layout
32814
32815 \begin_layout Description
32816 ignore The color is ignored
32817 \end_layout
32818
32819 \begin_layout Description
32820 inherit The color is inherited
32821 \end_layout
32822
32823 \begin_layout Description
32824 none
32825 \family roman
32826 \series medium
32827 \shape up
32828 \size normal
32829 \emph off
32830 \bar no
32831 \strikeout off
32832 \uuline off
32833 \uwave off
32834 \noun off
32835 \color none
32836  No particular color – clear or default
32837 \end_layout
32838
32839 \begin_layout Section
32840 Static colors
32841 \end_layout
32842
32843 \begin_layout Standard
32844 These are fixed colors that cannot be customized:
32845 \end_layout
32846
32847 \begin_layout Description
32848 black
32849 \end_layout
32850
32851 \begin_layout Description
32852 white
32853 \end_layout
32854
32855 \begin_layout Description
32856 blue
32857 \end_layout
32858
32859 \begin_layout Description
32860 brown
32861 \end_layout
32862
32863 \begin_layout Description
32864 cyan
32865 \end_layout
32866
32867 \begin_layout Description
32868 darkgray
32869 \end_layout
32870
32871 \begin_layout Description
32872 gray
32873 \end_layout
32874
32875 \begin_layout Description
32876 green
32877 \end_layout
32878
32879 \begin_layout Description
32880 lightgray
32881 \end_layout
32882
32883 \begin_layout Description
32884 lime
32885 \end_layout
32886
32887 \begin_layout Description
32888 magenta
32889 \end_layout
32890
32891 \begin_layout Description
32892 olive
32893 \end_layout
32894
32895 \begin_layout Description
32896 orange
32897 \end_layout
32898
32899 \begin_layout Description
32900 pink
32901 \end_layout
32902
32903 \begin_layout Description
32904 purple
32905 \end_layout
32906
32907 \begin_layout Description
32908 red
32909 \end_layout
32910
32911 \begin_layout Description
32912 teal
32913 \end_layout
32914
32915 \begin_layout Description
32916 violet
32917 \end_layout
32918
32919 \begin_layout Description
32920 yellow
32921 \end_layout
32922
32923 \begin_layout Section
32924 Dynamic colors
32925 \end_layout
32926
32927 \begin_layout Standard
32928 These are the colors allocated to specific elements in 
32929 \begin_inset Info
32930 type  "menu"
32931 arg   "dialog-show prefs"
32932 \end_inset
32933
32934 :
32935 \end_layout
32936
32937 \begin_layout Description
32938 added_space Added space color
32939 \end_layout
32940
32941 \begin_layout Description
32942 addedtext Added text color
32943 \end_layout
32944
32945 \begin_layout Description
32946 appendix Appendix marker color
32947 \end_layout
32948
32949 \begin_layout Description
32950 background Background color
32951 \end_layout
32952
32953 \begin_layout Description
32954 bottomarea Bottom area color
32955 \end_layout
32956
32957 \begin_layout Description
32958 branchlabel Label color for branches
32959 \end_layout
32960
32961 \begin_layout Description
32962 buttonbg Color used for button background
32963 \end_layout
32964
32965 \begin_layout Description
32966 buttonframe Color for inset button frames
32967 \end_layout
32968
32969 \begin_layout Description
32970 buttonhoverbg Color used for button background under focus
32971 \end_layout
32972
32973 \begin_layout Description
32974 changebar Changebar color
32975 \end_layout
32976
32977 \begin_layout Description
32978 changedtextauthor1 Changed text color author 1
32979 \end_layout
32980
32981 \begin_layout Description
32982 changedtextauthor2 Changed text color author 2
32983 \end_layout
32984
32985 \begin_layout Description
32986 changedtextauthor3 Changed text color author 3
32987 \end_layout
32988
32989 \begin_layout Description
32990 changedtextauthor4 Changed text color author 4
32991 \end_layout
32992
32993 \begin_layout Description
32994 changedtextauthor5 Changed text color author 5
32995 \end_layout
32996
32997 \begin_layout Description
32998 collapsible Collapsible insets text color
32999 \end_layout
33000
33001 \begin_layout Description
33002 collapsibleframe Collapsible insets framecolor
33003 \end_layout
33004
33005 \begin_layout Description
33006 command Text color for command insets
33007 \end_layout
33008
33009 \begin_layout Description
33010 commandbg Background color for command insets
33011 \end_layout
33012
33013 \begin_layout Description
33014 commandframe Frame color for command insets
33015 \end_layout
33016
33017 \begin_layout Description
33018 comment Label color for comments
33019 \end_layout
33020
33021 \begin_layout Description
33022 commentbg Background color of comments
33023 \end_layout
33024
33025 \begin_layout Description
33026 cursor Cursor color
33027 \end_layout
33028
33029 \begin_layout Description
33030 deletedtext Deleted text color
33031 \end_layout
33032
33033 \begin_layout Description
33034 deletedtextmodifier Deleted text modifying color
33035 \end_layout
33036
33037 \begin_layout Description
33038 depthbar Color for the depth bars in the margin
33039 \end_layout
33040
33041 \begin_layout Description
33042 eolmarker End of line marker color
33043 \end_layout
33044
33045 \begin_layout Description
33046 error Color of the \SpecialChar LaTeX
33047  error box
33048 \end_layout
33049
33050 \begin_layout Description
33051 footlabel Label color for footnotes
33052 \end_layout
33053
33054 \begin_layout Description
33055 foreground Foreground color
33056 \end_layout
33057
33058 \begin_layout Description
33059 graphicsbg Graphics inset background color
33060 \end_layout
33061
33062 \begin_layout Description
33063 greyedoutbg Background color of greyedout inset
33064 \end_layout
33065
33066 \begin_layout Description
33067 greyedoutlabel Label color for greyedout insets
33068 \end_layout
33069
33070 \begin_layout Description
33071 greyedouttext Color for greyedout inset text
33072 \end_layout
33073
33074 \begin_layout Description
33075 indexlabel Label color for index insets
33076 \end_layout
33077
33078 \begin_layout Description
33079 inlinecompletion Inline completion color
33080 \end_layout
33081
33082 \begin_layout Description
33083 insetbg Inset marker background color
33084 \end_layout
33085
33086 \begin_layout Description
33087 insetframe Inset marker frame color
33088 \end_layout
33089
33090 \begin_layout Description
33091 language Color for marking foreign language words
33092 \end_layout
33093
33094 \begin_layout Description
33095 latex Text color in \SpecialChar LaTeX
33096  mode
33097 \end_layout
33098
33099 \begin_layout Description
33100 listingsbg Background color of listings inset
33101 \end_layout
33102
33103 \begin_layout Description
33104 marginlabel Label color for margin notes
33105 \end_layout
33106
33107 \begin_layout Description
33108 math Math inset text color
33109 \end_layout
33110
33111 \begin_layout Description
33112 mathbg Math inset background color
33113 \end_layout
33114
33115 \begin_layout Description
33116 mathcorners Math inset frame color not under focus
33117 \end_layout
33118
33119 \begin_layout Description
33120 mathframe Math inset frame color under focus
33121 \end_layout
33122
33123 \begin_layout Description
33124 mathline Math line color
33125 \end_layout
33126
33127 \begin_layout Description
33128 mathmacrobg Macro math inset background color
33129 \end_layout
33130
33131 \begin_layout Description
33132 mathmacroblend Macro math blended color
33133 \end_layout
33134
33135 \begin_layout Description
33136 mathmacroframe Macro math frame color
33137 \end_layout
33138
33139 \begin_layout Description
33140 mathmacrohoverbg Macro math inset background color hovered
33141 \end_layout
33142
33143 \begin_layout Description
33144 mathmacrolabel Macro math label color
33145 \end_layout
33146
33147 \begin_layout Description
33148 mathmacronewarg Macro template color for new parameters
33149 \end_layout
33150
33151 \begin_layout Description
33152 mathmacrooldarg Macro template color for old parameters
33153 \end_layout
33154
33155 \begin_layout Description
33156 newpage New page color
33157 \end_layout
33158
33159 \begin_layout Description
33160 nonunique_inlinecompletion Inline completion color for the non-unique part
33161 \end_layout
33162
33163 \begin_layout Description
33164 note Label color for notes
33165 \end_layout
33166
33167 \begin_layout Description
33168 notebg Background color of notes
33169 \end_layout
33170
33171 \begin_layout Description
33172 pagebreak Page break/line break color
33173 \end_layout
33174
33175 \begin_layout Description
33176 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
33177 \end_layout
33178
33179 \begin_layout Description
33180 phantomtext Text color for phantom insets
33181 \end_layout
33182
33183 \begin_layout Description
33184 preview The color used for previews
33185 \end_layout
33186
33187 \begin_layout Description
33188 previewframe Preview frame color
33189 \end_layout
33190
33191 \begin_layout Description
33192 regexpframe Color for regexp frame
33193 \end_layout
33194
33195 \begin_layout Description
33196 scroll Color that indicates when a row can be scrolled 
33197 \end_layout
33198
33199 \begin_layout Description
33200 selection Background color of selected text
33201 \end_layout
33202
33203 \begin_layout Description
33204 selectiontext Foreground color of selected text
33205 \end_layout
33206
33207 \begin_layout Description
33208 shadedbg Background color of shaded box
33209 \end_layout
33210
33211 \begin_layout Description
33212 special Special chars text color
33213 \end_layout
33214
33215 \begin_layout Description
33216 tabularline Table line color
33217 \end_layout
33218
33219 \begin_layout Description
33220 tabularonoffline Table line color
33221 \end_layout
33222
33223 \begin_layout Description
33224 urllabel Label color for URL insets
33225 \end_layout
33226
33227 \begin_layout Description
33228 urltext Color for URL inset text
33229 \end_layout
33230
33231 \end_body
33232 \end_document