]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
fcfc513f0cca46dbc54b152a5ea6659a90e79e3e
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 605
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children no
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX Configuration Manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX-documentation Customization"
74 \pdf_keywords "LyX, documentation, customization"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen true
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize default
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \use_lineno 0
108 \notefontcolor #0000ff
109 \branch OutDated
110 \selected 0
111 \filename_suffix 0
112 \color #f5fae7 #0a0518
113 \end_branch
114 \index Index
115 \shortcut idx
116 \color #008000
117 \end_index
118 \secnumdepth 3
119 \tocdepth 3
120 \paragraph_separation indent
121 \paragraph_indentation default
122 \is_math_indent 1
123 \math_indentation default
124 \math_numbering_side default
125 \quotes_style english
126 \dynamic_quotes 0
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tablestyle default
131 \tracking_changes true
132 \output_changes false
133 \change_bars false
134 \postpone_fragile_content false
135 \html_math_output 0
136 \html_css_as_file 0
137 \html_be_strict true
138 \docbook_table_output 0
139 \author -970929547 "Thibaut Cuvelier"
140 \author -712698321 "Jürgen Spitzmüller"
141 \author -584632292 "Richard Kimberly Heck"
142 \author -495245474 "Jean-Marc Lasgouttes"
143 \author 5863208 "ab"
144 \author 232239728 "Owner"
145 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
146 \author 1075283030 "Thibaut"
147 \end_header
148
149 \begin_body
150
151 \begin_layout Title
152 Customizing \SpecialChar LyX
153 : Features for the Advanced User
154 \end_layout
155
156 \begin_layout Author
157 by the \SpecialChar LyX
158  Team
159 \begin_inset Foot
160 status collapsed
161
162 \begin_layout Plain Layout
163 If you have comments or error corrections, please send them to the \SpecialChar LyX
164  Documentatio
165 n mailing list, 
166 \begin_inset CommandInset href
167 LatexCommand href
168 target "lyx-docs@lists.lyx.org"
169 type "mailto:"
170 literal "false"
171
172 \end_inset
173
174 .
175  Include 
176 \begin_inset Quotes eld
177 \end_inset
178
179 [Customization]
180 \begin_inset Quotes erd
181 \end_inset
182
183  in the subject header, and please cc the current maintainer of this file,
184  Richard 
185 \change_inserted 5863208 1604930692
186 Kimberly 
187 \change_unchanged
188 Heck <
189 \change_inserted 5863208 1604930729
190 rikiheck@lyx.org
191 \change_deleted 5863208 1604930668
192 rikiheck@lyx.org
193 \change_unchanged
194 >.
195 \end_layout
196
197 \end_inset
198
199
200 \begin_inset Newline newline
201 \end_inset
202
203
204 \begin_inset Newline newline
205 \end_inset
206
207 Version 2.4.x
208 \end_layout
209
210 \begin_layout Standard
211 \begin_inset CommandInset toc
212 LatexCommand tableofcontents
213
214 \end_inset
215
216
217 \end_layout
218
219 \begin_layout Standard
220 \begin_inset Note Note
221 status open
222
223 \begin_layout Plain Layout
224 Please use change tracking when modifying this document.
225  This makes it easier for our translators to recognize things that have
226  been changed, and it helps the maintainer keep up-to-date with what's been
227  done.
228 \end_layout
229
230 \end_inset
231
232
233 \end_layout
234
235 \begin_layout Chapter
236 Introduction
237 \end_layout
238
239 \begin_layout Standard
240 This manual covers the customization features present in \SpecialChar LyX
241 .
242  In it, we discuss issues like keyboard shortcuts, screen previewing options,
243  printer options, sending commands to \SpecialChar LyX
244  via the \SpecialChar LyX
245  Server, internationalization,
246  installing new \SpecialChar LaTeX
247  classes and \SpecialChar LyX
248  layouts, etc.
249  We can't possibly hope to touch on everything you can change—our developers
250  add new features faster than we can document them—but we will explain the
251  most common customizations and hopefully point you in the right direction
252  for some of the more obscure ones.
253 \end_layout
254
255 \begin_layout Standard
256 \begin_inset Branch OutDated
257 inverted 0
258 status collapsed
259
260 \begin_layout Standard
261 Information from previous versions of this document that now seems to be
262  outdated is contained in the OutDated branch of this document.
263  By default, this information will not appear in the \SpecialChar LaTeX
264  output.
265 \end_layout
266
267 \end_inset
268
269
270 \end_layout
271
272 \begin_layout Chapter
273 \SpecialChar LyX
274  configuration files
275 \end_layout
276
277 \begin_layout Standard
278 This chapter aims to help you to find your way through the \SpecialChar LyX
279  configuration
280  files.
281  Before continuing to read this chapter, you should find out where your
282  \SpecialChar LyX
283  library and user directories are by using 
284 \begin_inset Flex Noun
285 status collapsed
286
287 \begin_layout Plain Layout
288 Help\SpecialChar menuseparator
289 About
290 \begin_inset space ~
291 \end_inset
292
293 LyX
294 \end_layout
295
296 \end_inset
297
298 .
299  The library directory is the place where \SpecialChar LyX
300  places its system-wide configuration
301  files; the user directory is where you can place your modified versions.
302  We will call the former 
303 \begin_inset Flex Code
304 status collapsed
305
306 \begin_layout Plain Layout
307 LyXDir
308 \end_layout
309
310 \end_inset
311
312  and the latter 
313 \begin_inset Flex Noun
314 status collapsed
315
316 \begin_layout Plain Layout
317 UserDir
318 \end_layout
319
320 \end_inset
321
322  in the remainder of this document.
323  
324 \end_layout
325
326 \begin_layout Section
327 What's in 
328 \begin_inset Flex Code
329 status collapsed
330
331 \begin_layout Plain Layout
332 LyXDir
333 \end_layout
334
335 \end_inset
336
337 ?
338 \end_layout
339
340 \begin_layout Standard
341 \begin_inset Flex Code
342 status collapsed
343
344 \begin_layout Plain Layout
345 LyXDir
346 \end_layout
347
348 \end_inset
349
350  and its sub-directories contain a number of files 
351 \change_deleted 232239728 1604787780
352 and
353 \change_unchanged
354  that can be used to customize \SpecialChar LyX
355 's behavior.
356  You can change many of these files from within \SpecialChar LyX
357  itself through the 
358 \begin_inset Flex Noun
359 status collapsed
360
361 \begin_layout Plain Layout
362 Tools\SpecialChar menuseparator
363 Preferences
364 \end_layout
365
366 \end_inset
367
368  dialog.
369  Most customization that you will want to do in \SpecialChar LyX
370  is possible through this
371  dialog.
372  However, many other inner aspects of \SpecialChar LyX
373  can be customized by modifying the
374  files in 
375 \begin_inset Flex Code
376 status collapsed
377
378 \begin_layout Plain Layout
379 LyXDir
380 \end_layout
381
382 \end_inset
383
384 .
385  These files fall in different categories, described in the following subsection
386 s.
387 \end_layout
388
389 \begin_layout Subsection
390 Automatically generated files
391 \end_layout
392
393 \begin_layout Standard
394 The files found in 
395 \begin_inset Flex Noun
396 status collapsed
397
398 \begin_layout Plain Layout
399 UserDir
400 \end_layout
401
402 \end_inset
403
404  are generated when you configure \SpecialChar LyX
405 .
406  They contain various default values that are 
407 \change_inserted 5863208 1604919565
408 automatically detected during reconfiguration.
409 \change_deleted 232239728 1604788241
410 guessed by inspection
411 \change_unchanged
412  In general, it is not a good idea to modify them, since they might be overwritt
413 en at any time.
414 \end_layout
415
416 \begin_layout Labeling
417 \labelwidthstring 00.00.0000
418 \begin_inset Flex Code
419 status collapsed
420
421 \begin_layout Plain Layout
422 lyxrc.defaults
423 \end_layout
424
425 \end_inset
426
427  
428 \change_deleted 5863208 1604919950
429
430 \begin_inset Note Note
431 status collapsed
432
433 \begin_layout Plain Layout
434
435 \change_inserted 232239728 1604853928
436 I capitalized the first word in all of these lists.
437  To me it looks better but it really is a stylistic thing, your call.
438  However if you are not going to capitalize them, the english in some needs
439  to be modified to make it read correctly as a sentence.
440 \change_unchanged
441
442 \end_layout
443
444 \end_inset
445
446
447 \change_deleted 232239728 1604853510
448 c
449 \change_inserted 232239728 1604853510
450 C
451 \change_unchanged
452 ontains defaults for various commands.
453 \end_layout
454
455 \begin_layout Labeling
456 \labelwidthstring 00.00.0000
457 \begin_inset Flex Code
458 status collapsed
459
460 \begin_layout Plain Layout
461 packages.lst
462 \end_layout
463
464 \end_inset
465
466  
467 \change_deleted 232239728 1604853512
468 c
469 \change_inserted 232239728 1604853512
470 C
471 \change_unchanged
472 ontains the list of packages that have been recognized by \SpecialChar LyX
473 .
474  It is currently unused by the \SpecialChar LyX
475  program itself, but the information extracted,
476  and more, is made available with 
477 \begin_inset Flex Noun
478 status collapsed
479
480 \begin_layout Plain Layout
481 Help\SpecialChar menuseparator
482 \SpecialChar LaTeX
483
484 \begin_inset space ~
485 \end_inset
486
487 Configuration
488 \end_layout
489
490 \end_inset
491
492 .
493 \end_layout
494
495 \begin_layout Labeling
496 \labelwidthstring 00.00.0000
497 \begin_inset Flex Code
498 status collapsed
499
500 \begin_layout Plain Layout
501 textclass.lst
502 \end_layout
503
504 \end_inset
505
506  
507 \change_deleted 232239728 1604853515
508 t
509 \change_inserted 232239728 1604853515
510 T
511 \change_unchanged
512 he list of text classes that have been found in your 
513 \begin_inset Flex Code
514 status collapsed
515
516 \begin_layout Plain Layout
517 layout/
518 \end_layout
519
520 \end_inset
521
522  directories, along with the associated \SpecialChar LaTeX
523  document class and their description.
524 \end_layout
525
526 \begin_layout Labeling
527 \labelwidthstring 00.00.0000
528 \begin_inset Flex Code
529 status collapsed
530
531 \begin_layout Plain Layout
532 lyxmodules.lst
533 \end_layout
534
535 \end_inset
536
537  
538 \change_deleted 232239728 1604853518
539 t
540 \change_inserted 232239728 1604853518
541 T
542 \change_unchanged
543 he list of layout modules found in your 
544 \begin_inset Flex Code
545 status collapsed
546
547 \begin_layout Plain Layout
548 layout/
549 \end_layout
550
551 \end_inset
552
553  directories
554 \end_layout
555
556 \begin_layout Labeling
557 \labelwidthstring 00.00.0000
558 \begin_inset Flex Code
559 status open
560
561 \begin_layout Plain Layout
562 *files.lst
563 \end_layout
564
565 \end_inset
566
567  
568 \change_deleted 232239728 1604853523
569 l
570 \change_inserted 232239728 1604853523
571 L
572 \change_unchanged
573 ists of various sorts of \SpecialChar LaTeX
574 -related files found on your system
575 \end_layout
576
577 \begin_layout Labeling
578 \labelwidthstring 00.00.0000
579 \begin_inset Flex Code
580 status open
581
582 \begin_layout Plain Layout
583 doc/\SpecialChar LaTeX
584 Config.lyx
585 \end_layout
586
587 \end_inset
588
589  is automatically generated during configuration from the file 
590 \begin_inset Flex Code
591 status collapsed
592
593 \begin_layout Plain Layout
594 \SpecialChar LaTeX
595 Config.lyx.in
596 \end_layout
597
598 \end_inset
599
600 .
601  It contains information on your \SpecialChar LaTeX
602  configuration.
603 \end_layout
604
605 \begin_layout Subsection
606 Directories
607 \end_layout
608
609 \begin_layout Standard
610 The
611 \change_deleted 5863208 1604928729
612 se
613 \change_unchanged
614  
615 \change_inserted 5863208 1604928636
616 following 
617 \change_unchanged
618 directories 
619 \change_inserted 5863208 1604928661
620 in 
621 \change_unchanged
622
623 \begin_inset Flex Code
624 status collapsed
625
626 \begin_layout Plain Layout
627 LyXDir
628 \end_layout
629
630 \end_inset
631
632
633 \change_inserted 5863208 1604928662
634  can be
635 \change_deleted 5863208 1604928642
636 are
637 \change_unchanged
638  duplicated 
639 \change_deleted 5863208 1604928669
640 between 
641 \begin_inset Flex Code
642 status collapsed
643
644 \begin_layout Plain Layout
645 LyXDir
646 \end_layout
647
648 \end_inset
649
650  and
651 \change_inserted 5863208 1604928680
652 in
653 \change_unchanged
654  
655 \begin_inset Flex Code
656 status collapsed
657
658 \begin_layout Plain Layout
659 UserDir
660 \end_layout
661
662 \end_inset
663
664 .
665  If a particular file
666 \change_deleted 232239728 1604794430
667 s
668 \change_unchanged
669  exists in both places, the one in 
670 \begin_inset Flex Code
671 status collapsed
672
673 \begin_layout Plain Layout
674 UserDir
675 \end_layout
676
677 \end_inset
678
679  will be used.
680 \end_layout
681
682 \begin_layout Labeling
683 \labelwidthstring 00.00.0000
684 \begin_inset Flex Code
685 status collapsed
686
687 \begin_layout Plain Layout
688 bind/
689 \end_layout
690
691 \end_inset
692
693  
694 \change_deleted 232239728 1604794460
695 t
696 \change_inserted 232239728 1604794460
697 T
698 \change_unchanged
699 his directory contains files with the extension 
700 \begin_inset Flex Code
701 status collapsed
702
703 \begin_layout Plain Layout
704 .bind
705 \end_layout
706
707 \end_inset
708
709  that define the keybindings used in \SpecialChar LyX
710 .
711  If there exists an internationalized version of the bind file named 
712 \begin_inset Flex Code
713 status collapsed
714
715 \begin_layout Plain Layout
716 $LANG_xxx.bind
717 \end_layout
718
719 \end_inset
720
721 , that will be used first.
722 \end_layout
723
724 \begin_layout Labeling
725 \labelwidthstring 00.00.0000
726 \begin_inset Flex Code
727 status collapsed
728
729 \begin_layout Plain Layout
730 citeengines/
731 \end_layout
732
733 \end_inset
734
735  
736 \change_deleted 232239728 1604794478
737 c
738 \change_inserted 232239728 1604794478
739 C
740 \change_unchanged
741 ontains files with the extension 
742 \begin_inset Flex Code
743 status collapsed
744
745 \begin_layout Plain Layout
746 .citeengine
747 \end_layout
748
749 \end_inset
750
751  which define the diverse citation possibilities (natbib, biblatex etc.).
752  See 
753 \begin_inset CommandInset ref
754 LatexCommand ref
755 reference "subsec:Cite-Engine-Files"
756 plural "false"
757 caps "false"
758 noprefix "false"
759
760 \end_inset
761
762  for details.
763 \end_layout
764
765 \begin_layout Labeling
766 \labelwidthstring 00.00.0000
767 \begin_inset Flex Code
768 status collapsed
769
770 \begin_layout Plain Layout
771 clipart/
772 \end_layout
773
774 \end_inset
775
776  
777 \change_deleted 232239728 1604794483
778 c
779 \change_inserted 232239728 1604794486
780 C
781 \change_unchanged
782 ontains graphics files that can be included in documents.
783  
784 \end_layout
785
786 \begin_layout Labeling
787 \labelwidthstring 00.00.0000
788 \begin_inset Flex Code
789 status collapsed
790
791 \begin_layout Plain Layout
792 doc/
793 \end_layout
794
795 \end_inset
796
797  
798 \change_deleted 232239728 1604794492
799 c
800 \change_inserted 232239728 1604794492
801 C
802 \change_unchanged
803 ontains \SpecialChar LyX
804  documentation files (including the one you are currently reading).
805  The file 
806 \begin_inset Flex Code
807 status collapsed
808
809 \begin_layout Plain Layout
810
811 \change_deleted 232239728 1604794660
812 \SpecialChar LaTeX
813
814 \change_inserted 232239728 1604794661
815 LaTex
816 \change_unchanged
817 Config.lyx
818 \end_layout
819
820 \end_inset
821
822  deserves special attention, as noted above.
823  The internationalized help docs are in subdirectories 
824 \begin_inset Flex Code
825 status collapsed
826
827 \begin_layout Plain Layout
828 doc/xx
829 \end_layout
830
831 \end_inset
832
833  where 
834 \begin_inset Quotes eld
835 \end_inset
836
837 xx
838 \begin_inset Quotes erd
839 \end_inset
840
841  is the ISO language code.
842  See 
843 \begin_inset CommandInset ref
844 LatexCommand ref
845 reference "cha:Internationalizing-LyX"
846
847 \end_inset
848
849  for details.
850 \end_layout
851
852 \begin_layout Labeling
853 \labelwidthstring 00.00.0000
854 \begin_inset Flex Code
855 status collapsed
856
857 \begin_layout Plain Layout
858 examples/
859 \end_layout
860
861 \end_inset
862
863  
864 \change_deleted 232239728 1604794497
865 c
866 \change_inserted 232239728 1604794497
867 C
868 \change_unchanged
869 ontains example files that explain how to use some features.
870  In the file browser, press the 
871 \begin_inset Flex Noun
872 status collapsed
873
874 \begin_layout Plain Layout
875 Examples
876 \end_layout
877
878 \end_inset
879
880  button to get there.
881 \end_layout
882
883 \begin_layout Labeling
884 \labelwidthstring 00.00.0000
885 \begin_inset Flex Code
886 status collapsed
887
888 \begin_layout Plain Layout
889 images/
890 \end_layout
891
892 \end_inset
893
894  
895 \change_deleted 232239728 1604794500
896 c
897 \change_inserted 232239728 1604794500
898 C
899 \change_unchanged
900 ontains image files that are used by the 
901 \begin_inset Flex Noun
902 status collapsed
903
904 \begin_layout Plain Layout
905 Document
906 \end_layout
907
908 \end_inset
909
910  dialog.
911  In addition, it also contains the individual icons used in the toolbar
912  and the banners that can be shown when \SpecialChar LyX
913  is launched.
914 \end_layout
915
916 \begin_layout Labeling
917 \labelwidthstring 00.00.0000
918 \begin_inset Flex Code
919 status collapsed
920
921 \begin_layout Plain Layout
922 kbd/
923 \end_layout
924
925 \end_inset
926
927  
928 \change_deleted 232239728 1604794505
929 c
930 \change_inserted 232239728 1604794505
931 C
932 \change_unchanged
933 ontains keyboard keymapping files.
934  See 
935 \begin_inset CommandInset ref
936 LatexCommand ref
937 reference "sec:International-Keymap-Stuff"
938
939 \end_inset
940
941  for details.
942 \end_layout
943
944 \begin_layout Labeling
945 \labelwidthstring 00.00.0000
946 \begin_inset Flex Code
947 status collapsed
948
949 \begin_layout Plain Layout
950 layouts/
951 \end_layout
952
953 \end_inset
954
955  
956 \change_deleted 232239728 1604794508
957 c
958 \change_inserted 232239728 1604794508
959 C
960 \change_unchanged
961 ontains the text class and module files described in 
962 \begin_inset CommandInset ref
963 LatexCommand ref
964 reference "cha:Installing-New-Document"
965
966 \end_inset
967
968 .
969 \end_layout
970
971 \begin_layout Labeling
972 \labelwidthstring 00.00.0000
973 \begin_inset Flex Code
974 status collapsed
975
976 \begin_layout Plain Layout
977 lyx2lyx
978 \end_layout
979
980 \end_inset
981
982  
983 \change_deleted 232239728 1604794513
984 c
985 \change_inserted 232239728 1604794513
986 C
987 \change_unchanged
988 ontains the 
989 \begin_inset Flex Code
990 status collapsed
991
992 \begin_layout Plain Layout
993 lyx2lyx
994 \end_layout
995
996 \end_inset
997
998  Python scripts used to convert between \SpecialChar LyX
999  versions.
1000  These can be run from the command line if
1001 \change_deleted 232239728 1604794749
1002 , say,
1003 \change_unchanged
1004  you want to batch-convert files.
1005 \end_layout
1006
1007 \begin_layout Labeling
1008 \labelwidthstring 00.00.0000
1009 \begin_inset Flex Code
1010 status collapsed
1011
1012 \begin_layout Plain Layout
1013 scripts/
1014 \end_layout
1015
1016 \end_inset
1017
1018  
1019 \change_deleted 232239728 1604794516
1020 c
1021 \change_inserted 232239728 1604794516
1022 C
1023 \change_unchanged
1024 ontains some files that demonstrate the capabilities of the 
1025 \begin_inset Flex Noun
1026 status collapsed
1027
1028 \begin_layout Plain Layout
1029 External
1030 \begin_inset space ~
1031 \end_inset
1032
1033 Template
1034 \end_layout
1035
1036 \end_inset
1037
1038  feature.
1039  Also contains some scripts used by \SpecialChar LyX
1040  itself.
1041 \end_layout
1042
1043 \begin_layout Labeling
1044 \labelwidthstring 00.00.0000
1045 \begin_inset Flex Code
1046 status collapsed
1047
1048 \begin_layout Plain Layout
1049 templates/
1050 \end_layout
1051
1052 \end_inset
1053
1054  
1055 \change_deleted 232239728 1604794520
1056 c
1057 \change_inserted 232239728 1604794520
1058 C
1059 \change_unchanged
1060 ontains the standard \SpecialChar LyX
1061  template files described in 
1062 \begin_inset CommandInset ref
1063 LatexCommand ref
1064 reference "subsec:Creating-Templates"
1065
1066 \end_inset
1067
1068 .
1069 \end_layout
1070
1071 \begin_layout Labeling
1072 \labelwidthstring 00.00.0000
1073 \begin_inset Flex Code
1074 status collapsed
1075
1076 \begin_layout Plain Layout
1077 ui/
1078 \end_layout
1079
1080 \end_inset
1081
1082  
1083 \change_deleted 232239728 1604794524
1084 c
1085 \change_inserted 232239728 1604794524
1086 C
1087 \change_unchanged
1088 ontains files with the extension 
1089 \begin_inset Flex Code
1090 status collapsed
1091
1092 \begin_layout Plain Layout
1093 .ui
1094 \end_layout
1095
1096 \end_inset
1097
1098  that define the user interface to \SpecialChar LyX
1099 .
1100  That is, the files define which items appear in which menus and the items
1101  appearing on the toolbar.
1102 \end_layout
1103
1104 \begin_layout Labeling
1105 \labelwidthstring 00.00.0000
1106 \begin_inset Flex Code
1107 status collapsed
1108
1109 \begin_layout Plain Layout
1110 xtemplates/
1111 \end_layout
1112
1113 \end_inset
1114
1115  
1116 \change_deleted 232239728 1604794528
1117 c
1118 \change_inserted 232239728 1604794528
1119 C
1120 \change_unchanged
1121 ontains files with the extension 
1122 \begin_inset Flex Code
1123 status collapsed
1124
1125 \begin_layout Plain Layout
1126 .xtemplate
1127 \end_layout
1128
1129 \end_inset
1130
1131  which define the templates for the insertion of external material to a
1132  \SpecialChar LyX
1133  document; see 
1134 \begin_inset CommandInset ref
1135 LatexCommand ref
1136 reference "chap:Including-External-Material"
1137
1138 \end_inset
1139
1140 .
1141 \end_layout
1142
1143 \begin_layout Subsection
1144 Files you don't want to modify
1145 \end_layout
1146
1147 \begin_layout Standard
1148 These files are used internally by \SpecialChar LyX
1149  and you generally do not need to modify
1150  them unless you are a developer.
1151 \end_layout
1152
1153 \begin_layout Labeling
1154 \labelwidthstring 00.00.0000
1155 \begin_inset Flex Code
1156 status collapsed
1157
1158 \begin_layout Plain Layout
1159 CREDITS
1160 \end_layout
1161
1162 \end_inset
1163
1164  
1165 \change_deleted 232239728 1604797616
1166 t
1167 \change_inserted 232239728 1604797616
1168 T
1169 \change_unchanged
1170 his file contains the list of \SpecialChar LyX
1171  developers.
1172  The contents are displayed with the menu entry 
1173 \begin_inset Flex Noun
1174 status collapsed
1175
1176 \begin_layout Plain Layout
1177 Help\SpecialChar menuseparator
1178 About
1179 \begin_inset space ~
1180 \end_inset
1181
1182 LyX
1183 \end_layout
1184
1185 \end_inset
1186
1187 .
1188 \end_layout
1189
1190 \begin_layout Labeling
1191 \labelwidthstring 00.00.0000
1192 \begin_inset Flex Code
1193 status collapsed
1194
1195 \begin_layout Plain Layout
1196 chkconfig.ltx
1197 \end_layout
1198
1199 \end_inset
1200
1201  
1202 \change_deleted 232239728 1604797620
1203 t
1204 \change_inserted 232239728 1604797620
1205 T
1206 \change_unchanged
1207 his is a \SpecialChar LaTeX
1208  script used during the configuration process.
1209  Do not run directly.
1210 \end_layout
1211
1212 \begin_layout Labeling
1213 \labelwidthstring 00.00.0000
1214 \begin_inset Flex Code
1215 status collapsed
1216
1217 \begin_layout Plain Layout
1218 configure.py
1219 \end_layout
1220
1221 \end_inset
1222
1223  
1224 \change_deleted 232239728 1604797624
1225 t
1226 \change_inserted 232239728 1604797624
1227 T
1228 \change_unchanged
1229 his is a Python script that is used to re-configure \SpecialChar LyX
1230 .
1231  It creates configuration files in the directory it was run from.
1232 \end_layout
1233
1234 \begin_layout Subsection
1235 Other files needing a line or two
1236 \end_layout
1237
1238 \begin_layout Labeling
1239 \labelwidthstring 00.00.0000
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 encodings
1245 \end_layout
1246
1247 \end_inset
1248
1249  
1250 \change_deleted 232239728 1604797580
1251 t
1252 \change_inserted 232239728 1604797580
1253 T
1254 \change_unchanged
1255 his contains tables describing how different character encodings can be
1256  mapped to Unicode
1257 \end_layout
1258
1259 \begin_layout Labeling
1260 \labelwidthstring 00.00.0000
1261 \begin_inset Flex Code
1262 status collapsed
1263
1264 \begin_layout Plain Layout
1265 languages
1266 \end_layout
1267
1268 \end_inset
1269
1270  
1271 \change_deleted 232239728 1604797584
1272 t
1273 \change_inserted 232239728 1604797584
1274 T
1275 \change_unchanged
1276 his file contains a list of all the languages currently supported by \SpecialChar LyX
1277 .
1278 \end_layout
1279
1280 \begin_layout Labeling
1281 \labelwidthstring 00.00.0000
1282 \begin_inset Flex Code
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 latexfonts
1287 \end_layout
1288
1289 \end_inset
1290
1291  
1292 \change_deleted 232239728 1604797587
1293 c
1294 \change_inserted 232239728 1604797587
1295 C
1296 \change_unchanged
1297 ontains information about the supported fonts.
1298 \end_layout
1299
1300 \begin_layout Labeling
1301 \labelwidthstring 00.00.0000
1302 \begin_inset Flex Code
1303 status collapsed
1304
1305 \begin_layout Plain Layout
1306 layouttranslations
1307 \end_layout
1308
1309 \end_inset
1310
1311  
1312 \change_deleted 232239728 1604797591
1313 t
1314 \change_inserted 232239728 1604797591
1315 T
1316 \change_unchanged
1317 his file contains translations for internationalized paragraph styles (see
1318  
1319 \begin_inset CommandInset ref
1320 LatexCommand ref
1321 reference "subsec:I18n"
1322
1323 \end_inset
1324
1325 ).
1326 \end_layout
1327
1328 \begin_layout Labeling
1329 \labelwidthstring 00.00.0000
1330 \begin_inset Flex Code
1331 status collapsed
1332
1333 \begin_layout Plain Layout
1334 unicodesymbols
1335 \end_layout
1336
1337 \end_inset
1338
1339  
1340 \change_deleted 232239728 1604797594
1341 t
1342 \change_inserted 232239728 1604797594
1343 T
1344 \change_unchanged
1345 his file contains information about Unicode-encoded glyphs and the way they
1346  are supported by \SpecialChar LyX
1347  via \SpecialChar LaTeX
1348 .
1349 \end_layout
1350
1351 \begin_layout Section
1352 Your local configuration directory
1353 \end_layout
1354
1355 \begin_layout Standard
1356 Even if you are using \SpecialChar LyX
1357  as an unprivileged user, you might want to change
1358  \SpecialChar LyX
1359  configuration for your own use.
1360  The 
1361 \begin_inset Flex Code
1362 status collapsed
1363
1364 \begin_layout Plain Layout
1365 UserDir
1366 \end_layout
1367
1368 \end_inset
1369
1370  directory contains all your personal configuration files.
1371  This is the directory described as 
1372 \begin_inset Quotes eld
1373 \end_inset
1374
1375 user directory
1376 \begin_inset Quotes erd
1377 \end_inset
1378
1379  in 
1380 \begin_inset Flex Noun
1381 status collapsed
1382
1383 \begin_layout Plain Layout
1384 Help\SpecialChar menuseparator
1385 About
1386 \begin_inset space ~
1387 \end_inset
1388
1389 LyX
1390 \end_layout
1391
1392 \end_inset
1393
1394 .
1395  This directory is used as a mirror of 
1396 \begin_inset Flex Code
1397 status collapsed
1398
1399 \begin_layout Plain Layout
1400 LyXDir
1401 \end_layout
1402
1403 \end_inset
1404
1405 , which means that every file in 
1406 \begin_inset Flex Code
1407 status collapsed
1408
1409 \begin_layout Plain Layout
1410 UserDir
1411 \end_layout
1412
1413 \end_inset
1414
1415  is a replacement for the corresponding file in 
1416 \begin_inset Flex Code
1417 status collapsed
1418
1419 \begin_layout Plain Layout
1420 LyXDir
1421 \end_layout
1422
1423 \end_inset
1424
1425 .
1426  Any configuration file described in the above sections can be placed either
1427  in the system-wide directory, in which case it will affect all users, or
1428  in your local directory for your own use.
1429 \end_layout
1430
1431 \begin_layout Standard
1432 To make things clearer, let's provide a few examples:
1433 \end_layout
1434
1435 \begin_layout Itemize
1436 The preferences set in the 
1437 \begin_inset Flex Noun
1438 status collapsed
1439
1440 \begin_layout Plain Layout
1441 Tools\SpecialChar menuseparator
1442 Preferences
1443 \end_layout
1444
1445 \end_inset
1446
1447  dialog are saved to a file 
1448 \begin_inset Flex Code
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452 preferences
1453 \end_layout
1454
1455 \end_inset
1456
1457  in 
1458 \begin_inset Flex Code
1459 status collapsed
1460
1461 \begin_layout Plain Layout
1462 UserDir
1463 \end_layout
1464
1465 \end_inset
1466
1467 .
1468 \end_layout
1469
1470 \begin_layout Itemize
1471 When you reconfigure using 
1472 \begin_inset Flex Noun
1473 status collapsed
1474
1475 \begin_layout Plain Layout
1476 Tools\SpecialChar menuseparator
1477 Reconfigure
1478 \end_layout
1479
1480 \end_inset
1481
1482 , \SpecialChar LyX
1483  runs the 
1484 \begin_inset Flex Code
1485 status collapsed
1486
1487 \begin_layout Plain Layout
1488 configure.py
1489 \end_layout
1490
1491 \end_inset
1492
1493  script, and the resulting files are written in your local configuration
1494  directory.
1495  This means that any additional text class file that you might have added
1496  in 
1497 \begin_inset Flex Code
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 UserDir/layouts
1502 \end_layout
1503
1504 \end_inset
1505
1506  will be added to the list of classes in the 
1507 \begin_inset Flex Noun
1508 status collapsed
1509
1510 \begin_layout Plain Layout
1511 Document\SpecialChar menuseparator
1512 Settings
1513 \end_layout
1514
1515 \end_inset
1516
1517  dialog.
1518 \end_layout
1519
1520 \begin_layout Itemize
1521 If you get some updated documentation from
1522 \change_inserted 232239728 1604798171
1523  a
1524 \change_unchanged
1525  \SpecialChar LyX
1526  ftp site and cannot install it because you do not have sysadmin rights
1527  on your system, you can just copy the files 
1528 \change_deleted 232239728 1604798193
1529 in
1530 \change_inserted 232239728 1604798193
1531 to
1532 \change_unchanged
1533  
1534 \begin_inset Flex Code
1535 status collapsed
1536
1537 \begin_layout Plain Layout
1538 UserDir/doc/
1539 \end_layout
1540
1541 \end_inset
1542
1543  and the items in the 
1544 \begin_inset Flex Noun
1545 status collapsed
1546
1547 \begin_layout Plain Layout
1548 Help
1549 \end_layout
1550
1551 \end_inset
1552
1553  menu will open them!
1554 \end_layout
1555
1556 \begin_layout Section
1557 Running \SpecialChar LyX
1558  with multiple configurations
1559 \end_layout
1560
1561 \begin_layout Standard
1562 The configuration freedom of the local configuration directory may not suffice
1563  if you want to have more than one configuration at your disposal.
1564  For example, you may want to 
1565 \change_deleted 232239728 1604798238
1566 be 
1567 \change_unchanged
1568 use different key bindings or printer settings at different times.
1569  You can achieve this by having several such directories.
1570  You then specify which directory to use at run-time.
1571 \end_layout
1572
1573 \begin_layout Standard
1574 Invoking \SpecialChar LyX
1575  with the command line switch 
1576 \begin_inset Flex Code
1577 status collapsed
1578
1579 \begin_layout Plain Layout
1580 -userdir
1581 \end_layout
1582
1583 \end_inset
1584
1585  
1586 \emph on
1587 <some directory>
1588 \emph default
1589  instructs the program to read the configuration from that directory, and
1590  not from the default directory.
1591  (You can determine the default directory by running \SpecialChar LyX
1592  without the 
1593 \begin_inset Flex Code
1594 status collapsed
1595
1596 \begin_layout Plain Layout
1597 -userdir
1598 \end_layout
1599
1600 \end_inset
1601
1602  switch.) If the specified directory does not exist, \SpecialChar LyX
1603  offers to create it
1604  for you, just like it does for the default directory 
1605 \change_deleted 232239728 1604798318
1606 on
1607 \change_unchanged
1608  the first time you run the program.
1609  You can modify the configuration options in this additional user directory
1610  exactly as you would for the default directory.
1611  These directories are completely independent (but read on).
1612  Note that setting the environment variable 
1613 \begin_inset Flex Code
1614 status collapsed
1615
1616 \begin_layout Plain Layout
1617 LYX_USERDIR_24x
1618 \end_layout
1619
1620 \end_inset
1621
1622  to some value has exactly the same effect.
1623 \end_layout
1624
1625 \begin_layout Standard
1626 Having several configurations also requires more maintenance: if you want
1627  to add a new layout to 
1628 \begin_inset Flex Code
1629 status collapsed
1630
1631 \begin_layout Plain Layout
1632 NewUserDir/layouts
1633 \end_layout
1634
1635 \end_inset
1636
1637  which you want available from all your configurations, you must add it
1638  to each directory separately.
1639  You can avoid this with the following trick: after \SpecialChar LyX
1640  creates the additional
1641  directory, most of the subdirectories (see above) are empty.
1642  If you want the new configuration to mirror an existing one, replace the
1643  empty subdirectory with a symbolic link to the matching subdirectory in
1644  the existing configuration.
1645  Take care with the 
1646 \begin_inset Flex Code
1647 status collapsed
1648
1649 \begin_layout Plain Layout
1650 doc/
1651 \end_layout
1652
1653 \end_inset
1654
1655  subdirectory, however, since it contains a file written by the configuration
1656  script (also accessible through 
1657 \begin_inset Flex Noun
1658 status collapsed
1659
1660 \begin_layout Plain Layout
1661 Tools\SpecialChar menuseparator
1662 Reconfigure
1663 \end_layout
1664
1665 \end_inset
1666
1667 ) which is configuration
1668 \change_deleted 232239728 1604798083
1669 -
1670 \change_inserted 232239728 1604798100
1671  
1672 \change_unchanged
1673 specific.
1674 \end_layout
1675
1676 \begin_layout Chapter
1677 The Preferences dialog
1678 \end_layout
1679
1680 \begin_layout Standard
1681 All options of the preferences dialog are described in the Appendix 
1682 \emph on
1683 The Preferences Dialog
1684 \emph default
1685  in the 
1686 \emph on
1687 User's Guide
1688 \emph default
1689 .
1690  For some options you might find here more details.
1691 \end_layout
1692
1693 \begin_layout Section
1694 Formats
1695 \begin_inset CommandInset label
1696 LatexCommand label
1697 name "sec:Formats"
1698
1699 \end_inset
1700
1701
1702 \end_layout
1703
1704 \begin_layout Standard
1705 The first step is to define your file formats if they are not already defined.
1706  To do so, open the 
1707 \begin_inset Flex Noun
1708 status collapsed
1709
1710 \begin_layout Plain Layout
1711 Tools\SpecialChar menuseparator
1712 Preferences
1713 \end_layout
1714
1715 \end_inset
1716
1717  dialog.
1718  Under 
1719 \begin_inset Flex Noun
1720 status collapsed
1721
1722 \begin_layout Plain Layout
1723 File Handling\SpecialChar menuseparator
1724 File formats
1725 \end_layout
1726
1727 \end_inset
1728
1729  press the 
1730 \begin_inset Flex Noun
1731 status collapsed
1732
1733 \begin_layout Plain Layout
1734 New
1735 \end_layout
1736
1737 \end_inset
1738
1739  button to define your new format.
1740  The 
1741 \begin_inset Flex Noun
1742 status collapsed
1743
1744 \begin_layout Plain Layout
1745 Format
1746 \end_layout
1747
1748 \end_inset
1749
1750  field contains the name used to identify the format in the GUI.
1751  The 
1752 \begin_inset Flex Noun
1753 status collapsed
1754
1755 \begin_layout Plain Layout
1756 Short Name
1757 \end_layout
1758
1759 \end_inset
1760
1761  is used to identify the format internally.
1762  You will also need to enter a file extension.
1763  These are all required.
1764  The optional 
1765 \begin_inset Flex Noun
1766 status collapsed
1767
1768 \begin_layout Plain Layout
1769 Shortcut
1770 \end_layout
1771
1772 \end_inset
1773
1774  field is used to provide a keyboard shortcut on the menus.
1775  (For example, pressing 
1776 \begin_inset Flex Noun
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 Ctrl+D
1781 \end_layout
1782
1783 \end_inset
1784
1785  will 
1786 \begin_inset Flex Noun
1787 status collapsed
1788
1789 \begin_layout Plain Layout
1790 Document\SpecialChar menuseparator
1791 View (Other Formats)\SpecialChar menuseparator
1792 DVI
1793 \end_layout
1794
1795 \end_inset
1796
1797 .) 
1798 \end_layout
1799
1800 \begin_layout Standard
1801 A Format can have a 
1802 \begin_inset Flex Noun
1803 status collapsed
1804
1805 \begin_layout Plain Layout
1806 Viewer
1807 \end_layout
1808
1809 \end_inset
1810
1811  and an 
1812 \begin_inset Flex Noun
1813 status collapsed
1814
1815 \begin_layout Plain Layout
1816 Editor
1817 \end_layout
1818
1819 \end_inset
1820
1821  associated with it.
1822  For example, you might want to use 
1823 \begin_inset Flex Noun
1824 status collapsed
1825
1826 \begin_layout Plain Layout
1827 Ghostview
1828 \end_layout
1829
1830 \end_inset
1831
1832  to view PostScript files.
1833  You can enter the command needed to start the program in the corresponding
1834  fields.
1835  In defining this command, you can use the four variables listed in the
1836  next section.
1837  The viewer is launched when you view an image in \SpecialChar LyX
1838  or use the 
1839 \begin_inset Flex Noun
1840 status collapsed
1841
1842 \begin_layout Plain Layout
1843 Document\SpecialChar menuseparator
1844 View
1845 \end_layout
1846
1847 \end_inset
1848
1849  menu.
1850  The editor is for example launched when you right-click on an image and
1851  choose 
1852 \begin_inset Flex Noun
1853 status collapsed
1854
1855 \begin_layout Plain Layout
1856 Edit externally
1857 \end_layout
1858
1859 \end_inset
1860
1861  in the appearing context menu.
1862 \end_layout
1863
1864 \begin_layout Standard
1865 The 
1866 \begin_inset Flex Noun
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 MIME
1871 \end_layout
1872
1873 \end_inset
1874
1875  type of a format is optional, but if it is specified, it must be unique
1876  across all formats.
1877  It is used to detect files of this format from the file contents.
1878  For some important file formats there is no MIME type officially registered
1879  with the 
1880 \begin_inset CommandInset href
1881 LatexCommand href
1882 name "IANA"
1883 target "http://www.iana.org/assignments/media-types/"
1884 literal "false"
1885
1886 \end_inset
1887
1888 .
1889  Therefore \SpecialChar LyX
1890  uses the extended list of MIME types as specified by 
1891 \begin_inset CommandInset href
1892 LatexCommand href
1893 name "freedesktop.org"
1894 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1895 literal "false"
1896
1897 \end_inset
1898
1899 .
1900 \end_layout
1901
1902 \begin_layout Standard
1903 The 
1904 \begin_inset Flex Noun
1905 status collapsed
1906
1907 \begin_layout Plain Layout
1908 Document format
1909 \end_layout
1910
1911 \end_inset
1912
1913  option tells \SpecialChar LyX
1914  that a format is suitable for document export.
1915  If this is set and if a suitable conversion route exists (see 
1916 \begin_inset CommandInset ref
1917 LatexCommand ref
1918 reference "sec:Converters"
1919
1920 \end_inset
1921
1922 ), the format will appear in the 
1923 \begin_inset Flex Noun
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927 File\SpecialChar menuseparator
1928 Export
1929 \end_layout
1930
1931 \end_inset
1932
1933  menu.
1934  The format will also appear in the 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document\SpecialChar menuseparator
1940 View
1941 \end_layout
1942
1943 \end_inset
1944
1945  menu if a viewer is specified for the format.
1946  Pure image formats, such as 
1947 \begin_inset Flex Code
1948 status collapsed
1949
1950 \begin_layout Plain Layout
1951 png
1952 \end_layout
1953
1954 \end_inset
1955
1956 , should not use this option.
1957  Formats that can both represent vector graphics and documents like 
1958 \begin_inset Flex Code
1959 status collapsed
1960
1961 \begin_layout Plain Layout
1962 pdf
1963 \end_layout
1964
1965 \end_inset
1966
1967  should use it.
1968 \end_layout
1969
1970 \begin_layout Standard
1971 The option 
1972 \begin_inset Flex Noun
1973 status collapsed
1974
1975 \begin_layout Plain Layout
1976 Vector graphics format
1977 \end_layout
1978
1979 \end_inset
1980
1981  tells \SpecialChar LyX
1982  that a format can contain vector graphics.
1983  This information is used to determine the target format of included graphics
1984  for 
1985 \begin_inset Flex Noun
1986 status collapsed
1987
1988 \begin_layout Plain Layout
1989 pdflatex
1990 \end_layout
1991
1992 \end_inset
1993
1994  export.
1995  Included graphics may need to be converted to either 
1996 \begin_inset Flex Noun
1997 status collapsed
1998
1999 \begin_layout Plain Layout
2000 pdf
2001 \end_layout
2002
2003 \end_inset
2004
2005
2006 \begin_inset Flex Noun
2007 status collapsed
2008
2009 \begin_layout Plain Layout
2010 png
2011 \end_layout
2012
2013 \end_inset
2014
2015 , or 
2016 \begin_inset Flex Noun
2017 status collapsed
2018
2019 \begin_layout Plain Layout
2020 jpg
2021 \end_layout
2022
2023 \end_inset
2024
2025 , since 
2026 \begin_inset Flex Noun
2027 status collapsed
2028
2029 \begin_layout Plain Layout
2030 pdflatex
2031 \end_layout
2032
2033 \end_inset
2034
2035  cannot handle other image formats.
2036  If an included graphic is not already in 
2037 \begin_inset Flex Noun
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 pdf
2042 \end_layout
2043
2044 \end_inset
2045
2046
2047 \begin_inset Flex Noun
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051 png
2052 \end_layout
2053
2054 \end_inset
2055
2056 , or 
2057 \begin_inset Flex Noun
2058 status collapsed
2059
2060 \begin_layout Plain Layout
2061 jpg
2062 \end_layout
2063
2064 \end_inset
2065
2066  format, it is converted to 
2067 \begin_inset Flex Noun
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071 pdf
2072 \end_layout
2073
2074 \end_inset
2075
2076  if the vector format option is set, and otherwise to 
2077 \begin_inset Flex Noun
2078 status collapsed
2079
2080 \begin_layout Plain Layout
2081 png
2082 \end_layout
2083
2084 \end_inset
2085
2086 .
2087 \end_layout
2088
2089 \begin_layout Section
2090 Copiers
2091 \end_layout
2092
2093 \begin_layout Standard
2094 Since all conversions from one format to another take place in \SpecialChar LyX
2095 's temporary
2096  directory, it is sometimes necessary to modify a file before copying it
2097  to the temporary directory in order that the conversion may be performed.
2098 \begin_inset Foot
2099 status collapsed
2100
2101 \begin_layout Plain Layout
2102 For example, the file may refer to other files—images, for example—using
2103  relative file names, and these may become invalid when the file is copied
2104  to the temporary directory.
2105 \end_layout
2106
2107 \end_inset
2108
2109  This is done by a Copier: It copies a file to (or from) the temporary directory
2110  and may modify it in the process.
2111 \end_layout
2112
2113 \begin_layout Standard
2114 The definitions of the copiers may use eight variables:
2115 \end_layout
2116
2117 \begin_layout Labeling
2118 \labelwidthstring 00.00.0000
2119 \begin_inset Flex Code
2120 status collapsed
2121
2122 \begin_layout Plain Layout
2123 $$s
2124 \end_layout
2125
2126 \end_inset
2127
2128  The \SpecialChar LyX
2129  system directory (e.
2130 \begin_inset space \thinspace{}
2131 \end_inset
2132
2133 g.
2134 \begin_inset space \space{}
2135 \end_inset
2136
2137
2138 \begin_inset Flex Noun
2139 status collapsed
2140
2141 \begin_layout Plain Layout
2142 /usr/share/lyx
2143 \end_layout
2144
2145 \end_inset
2146
2147 ).
2148 \end_layout
2149
2150 \begin_layout Labeling
2151 \labelwidthstring 00.00.0000
2152 \begin_inset Flex Code
2153 status collapsed
2154
2155 \begin_layout Plain Layout
2156 $$i
2157 \end_layout
2158
2159 \end_inset
2160
2161  The input file
2162 \end_layout
2163
2164 \begin_layout Labeling
2165 \labelwidthstring 00.00.0000
2166 \begin_inset Flex Code
2167 status collapsed
2168
2169 \begin_layout Plain Layout
2170 $$o
2171 \end_layout
2172
2173 \end_inset
2174
2175  The output file
2176 \end_layout
2177
2178 \begin_layout Labeling
2179 \labelwidthstring 00.00.0000
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 $$b
2185 \end_layout
2186
2187 \end_inset
2188
2189  The base name (without filename extension) in the \SpecialChar LyX
2190  temporary directory
2191 \end_layout
2192
2193 \begin_layout Labeling
2194 \labelwidthstring 00.00.0000
2195 \begin_inset Flex Code
2196 status collapsed
2197
2198 \begin_layout Plain Layout
2199 $$p
2200 \end_layout
2201
2202 \end_inset
2203
2204  The full directory path of the \SpecialChar LyX
2205  temporary directory
2206 \end_layout
2207
2208 \begin_layout Labeling
2209 \labelwidthstring 00.00.0000
2210 \begin_inset Flex Code
2211 status collapsed
2212
2213 \begin_layout Plain Layout
2214 $$r
2215 \end_layout
2216
2217 \end_inset
2218
2219  The full pathname to the original \SpecialChar LyX
2220  file being processed
2221 \end_layout
2222
2223 \begin_layout Labeling
2224 \labelwidthstring 00.00.0000
2225 \begin_inset Flex Code
2226 status collapsed
2227
2228 \begin_layout Plain Layout
2229 $$f
2230 \end_layout
2231
2232 \end_inset
2233
2234  The filename (without any directory path) of the \SpecialChar LyX
2235  file.
2236 \end_layout
2237
2238 \begin_layout Labeling
2239 \labelwidthstring 00.00.0000
2240 \begin_inset Flex Code
2241 status collapsed
2242
2243 \begin_layout Plain Layout
2244 $$l
2245 \end_layout
2246
2247 \end_inset
2248
2249  The `\SpecialChar LaTeX
2250  name'
2251 \end_layout
2252
2253 \begin_layout Standard
2254 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2255 's 
2256 \series bold
2257
2258 \backslash
2259 include
2260 \series default
2261  command.
2262  It is relevant only when exporting files suitable for such inclusion.
2263 \end_layout
2264
2265 \begin_layout Standard
2266 Copiers can be used to do almost anything with output files.
2267  For example, suppose you want generated pdf files to be copied to a special
2268  directory, 
2269 \begin_inset Flex Code
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273 /home/you/pdf/
2274 \end_layout
2275
2276 \end_inset
2277
2278 .
2279  Then you could write a shell script such as this one:
2280 \end_layout
2281
2282 \begin_layout Standard
2283 \begin_inset listings
2284 inline false
2285 status open
2286
2287 \begin_layout Plain Layout
2288
2289 #!/bin/bash
2290 \end_layout
2291
2292 \begin_layout Plain Layout
2293
2294 FROMFILE=$1
2295 \end_layout
2296
2297 \begin_layout Plain Layout
2298
2299 TOFILE=`basename $2`
2300 \end_layout
2301
2302 \begin_layout Plain Layout
2303
2304 cp $FROMFILE /home/you/pdf/$TOFILE
2305 \end_layout
2306
2307 \end_inset
2308
2309 Save it in your local \SpecialChar LyX
2310  directory—say, 
2311 \begin_inset Flex Code
2312 status collapsed
2313
2314 \begin_layout Plain Layout
2315 /home/you/.lyx/scripts/pdfcopier.sh
2316 \end_layout
2317
2318 \end_inset
2319
2320 —and make it executable, if you need to do so on your platform.
2321  Then, in the 
2322 \begin_inset Flex Noun
2323 status collapsed
2324
2325 \begin_layout Plain Layout
2326 Tools\SpecialChar menuseparator
2327 Preferences
2328 \end_layout
2329
2330 \end_inset
2331
2332  dialog, select under 
2333 \begin_inset Flex Noun
2334 status collapsed
2335
2336 \begin_layout Plain Layout
2337 File Handling\SpecialChar menuseparator
2338 File formats
2339 \end_layout
2340
2341 \end_inset
2342
2343  the 
2344 \begin_inset Flex Noun
2345 status collapsed
2346
2347 \begin_layout Plain Layout
2348 PDF(pdflatex)
2349 \end_layout
2350
2351 \end_inset
2352
2353  format—or one of the other pdf formats—and enter 
2354 \begin_inset Flex Code
2355 status collapsed
2356
2357 \begin_layout Plain Layout
2358 pdfcopier.sh $$i $$o
2359 \end_layout
2360
2361 \end_inset
2362
2363  into the 
2364 \begin_inset Flex Noun
2365 status collapsed
2366
2367 \begin_layout Plain Layout
2368 Copier
2369 \end_layout
2370
2371 \end_inset
2372
2373  field.
2374  
2375 \end_layout
2376
2377 \begin_layout Standard
2378 Copiers are used by \SpecialChar LyX
2379  in various of its own conversions.
2380  For example, if appropriate programs are found, \SpecialChar LyX
2381  will automatically install
2382  copiers for the 
2383 \begin_inset Flex Noun
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 HTML
2388 \end_layout
2389
2390 \end_inset
2391
2392  and 
2393 \begin_inset Flex Noun
2394 status collapsed
2395
2396 \begin_layout Plain Layout
2397 HTML
2398 \begin_inset space ~
2399 \end_inset
2400
2401 (MS Word)
2402 \end_layout
2403
2404 \end_inset
2405
2406  formats.
2407  When these formats are exported, the copier sees that not just the main
2408  HTML file but various associated files (style files, images, etc.) are also
2409  copied.
2410  All these files are written to a subdirectory of the directory in which
2411  the original \SpecialChar LyX
2412  file was found.
2413 \begin_inset Foot
2414 status collapsed
2415
2416 \begin_layout Plain Layout
2417 This copier can be customized.
2418  The optional 
2419 \begin_inset Quotes eld
2420 \end_inset
2421
2422 -e
2423 \begin_inset Quotes erd
2424 \end_inset
2425
2426  argument takes a comma-separated list of extensions to be copied; if it
2427  is omitted, all files will be copied.
2428  The 
2429 \begin_inset Quotes eld
2430 \end_inset
2431
2432 -t
2433 \begin_inset Quotes erd
2434 \end_inset
2435
2436  argument determines the extension added to the generated directory.
2437  By default, it is 
2438 \begin_inset Quotes eld
2439 \end_inset
2440
2441
2442 \begin_inset Flex Noun
2443 status collapsed
2444
2445 \begin_layout Plain Layout
2446 LyXconv
2447 \end_layout
2448
2449 \end_inset
2450
2451
2452 \begin_inset Quotes erd
2453 \end_inset
2454
2455 , so HTML generated from 
2456 \begin_inset Flex Noun
2457 status collapsed
2458
2459 \begin_layout Plain Layout
2460 /path/to/filename.lyx
2461 \end_layout
2462
2463 \end_inset
2464
2465  will end up in 
2466 \begin_inset Flex Noun
2467 status collapsed
2468
2469 \begin_layout Plain Layout
2470 /path/to/filename.html.LyXconv
2471 \end_layout
2472
2473 \end_inset
2474
2475 .
2476  
2477 \end_layout
2478
2479 \end_inset
2480
2481
2482 \end_layout
2483
2484 \begin_layout Section
2485 Converters
2486 \begin_inset CommandInset label
2487 LatexCommand label
2488 name "sec:Converters"
2489
2490 \end_inset
2491
2492
2493 \end_layout
2494
2495 \begin_layout Standard
2496 You can define your own Converters to convert files between different formats.
2497  This is done in the 
2498 \begin_inset Flex Noun
2499 status collapsed
2500
2501 \begin_layout Plain Layout
2502 Tools\SpecialChar menuseparator
2503 Preferences\SpecialChar menuseparator
2504 File Handling\SpecialChar menuseparator
2505 Converters
2506 \end_layout
2507
2508 \end_inset
2509
2510  dialog.
2511 \end_layout
2512
2513 \begin_layout Standard
2514 To define a new converter, select the 
2515 \begin_inset Flex Noun
2516 status collapsed
2517
2518 \begin_layout Plain Layout
2519 From
2520 \begin_inset space ~
2521 \end_inset
2522
2523 format
2524 \end_layout
2525
2526 \end_inset
2527
2528  and 
2529 \begin_inset Flex Noun
2530 status collapsed
2531
2532 \begin_layout Plain Layout
2533 To
2534 \begin_inset space ~
2535 \end_inset
2536
2537 format
2538 \end_layout
2539
2540 \end_inset
2541
2542  from the drop-down lists, enter the command needed for the conversion,
2543  and then press the 
2544 \begin_inset Flex Noun
2545 status collapsed
2546
2547 \begin_layout Plain Layout
2548 Add
2549 \end_layout
2550
2551 \end_inset
2552
2553  button.
2554  Several variables can be used in the definition of converters:
2555 \end_layout
2556
2557 \begin_layout Labeling
2558 \labelwidthstring 00.00.0000
2559 \begin_inset Flex Code
2560 status collapsed
2561
2562 \begin_layout Plain Layout
2563 $$s
2564 \end_layout
2565
2566 \end_inset
2567
2568  The \SpecialChar LyX
2569  system directory
2570 \end_layout
2571
2572 \begin_layout Labeling
2573 \labelwidthstring 00.00.0000
2574 \begin_inset Flex Code
2575 status collapsed
2576
2577 \begin_layout Plain Layout
2578 $$i
2579 \end_layout
2580
2581 \end_inset
2582
2583  The input file
2584 \end_layout
2585
2586 \begin_layout Labeling
2587 \labelwidthstring 00.00.0000
2588 \begin_inset Flex Code
2589 status collapsed
2590
2591 \begin_layout Plain Layout
2592 $$o
2593 \end_layout
2594
2595 \end_inset
2596
2597  The output file
2598 \end_layout
2599
2600 \begin_layout Labeling
2601 \labelwidthstring 00.00.0000
2602 \begin_inset Flex Code
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 $$b
2607 \end_layout
2608
2609 \end_inset
2610
2611  The base filename of the input file (i.
2612 \begin_inset space \thinspace{}
2613 \end_inset
2614
2615 g., without the extension)
2616 \end_layout
2617
2618 \begin_layout Labeling
2619 \labelwidthstring 00.00.0000
2620 \begin_inset Flex Code
2621 status collapsed
2622
2623 \begin_layout Plain Layout
2624 $$p
2625 \end_layout
2626
2627 \end_inset
2628
2629  The path to the input file
2630 \end_layout
2631
2632 \begin_layout Labeling
2633 \labelwidthstring 00.00.0000
2634 \begin_inset Flex Code
2635 status collapsed
2636
2637 \begin_layout Plain Layout
2638 $$r
2639 \end_layout
2640
2641 \end_inset
2642
2643  The path to the original input file (this is different from $$p when a
2644  chain of converters is called)
2645 \end_layout
2646
2647 \begin_layout Labeling
2648 \labelwidthstring 00.00.0000
2649 \begin_inset Flex Code
2650 status collapsed
2651
2652 \begin_layout Plain Layout
2653 $$e
2654 \end_layout
2655
2656 \end_inset
2657
2658  The iconv name for the encoding of the document.
2659 \end_layout
2660
2661 \begin_layout Standard
2662 In the 
2663 \begin_inset Flex Noun
2664 status collapsed
2665
2666 \begin_layout Plain Layout
2667 Extra
2668 \begin_inset space ~
2669 \end_inset
2670
2671 Flag
2672 \end_layout
2673
2674 \end_inset
2675
2676  field you can enter the following flags, separated by commas:
2677 \end_layout
2678
2679 \begin_layout Labeling
2680 \labelwidthstring 00.00.0000
2681 \begin_inset Flex Code
2682 status collapsed
2683
2684 \begin_layout Plain Layout
2685 latex
2686 \change_inserted -712698321 1524656940
2687 =flavor
2688 \change_unchanged
2689
2690 \end_layout
2691
2692 \end_inset
2693
2694  This converter runs some form of \SpecialChar LaTeX
2695 .
2696  This will make \SpecialChar LyX
2697 's \SpecialChar LaTeX
2698  error logs available.
2699
2700 \change_inserted -712698321 1524657018
2701  The optional 
2702 \begin_inset Flex Code
2703 status open
2704
2705 \begin_layout Plain Layout
2706
2707 \change_inserted -712698321 1524657012
2708 flavor
2709 \change_unchanged
2710
2711 \end_layout
2712
2713 \end_inset
2714
2715  value specifies the form of \SpecialChar LaTeX
2716  that is run (
2717 \begin_inset Flex Code
2718 status open
2719
2720 \begin_layout Plain Layout
2721
2722 \change_inserted -712698321 1524657005
2723 latex, pdflatex, platex, xetex, luatex
2724 \change_unchanged
2725
2726 \end_layout
2727
2728 \end_inset
2729
2730 ).
2731  If no value is specified, 
2732 \begin_inset Flex Code
2733 status open
2734
2735 \begin_layout Plain Layout
2736
2737 \change_inserted -712698321 1524657018
2738 latex
2739 \change_unchanged
2740
2741 \end_layout
2742
2743 \end_inset
2744
2745  is used.
2746 \change_unchanged
2747
2748 \end_layout
2749
2750 \begin_layout Labeling
2751 \labelwidthstring 00.00.0000
2752 \begin_inset Flex Code
2753 status collapsed
2754
2755 \begin_layout Plain Layout
2756 needaux
2757 \change_inserted -712698321 1524656935
2758 =flavor
2759 \change_unchanged
2760
2761 \end_layout
2762
2763 \end_inset
2764
2765  Needs the \SpecialChar LaTeX
2766  
2767 \begin_inset Flex Noun
2768 status collapsed
2769
2770 \begin_layout Plain Layout
2771 .aux
2772 \end_layout
2773
2774 \end_inset
2775
2776  file for the conversion.
2777
2778 \change_inserted -712698321 1524657047
2779  The optional 
2780 \begin_inset Flex Code
2781 status open
2782
2783 \begin_layout Plain Layout
2784
2785 \change_inserted -712698321 1524657030
2786 flavor
2787 \change_unchanged
2788
2789 \end_layout
2790
2791 \end_inset
2792
2793  value specifies the form of \SpecialChar LaTeX
2794  that is run in order to generate the 
2795 \begin_inset Flex Noun
2796 status collapsed
2797
2798 \begin_layout Plain Layout
2799
2800 \change_inserted -712698321 1524657047
2801 .aux
2802 \change_unchanged
2803
2804 \end_layout
2805
2806 \end_inset
2807
2808  file (
2809 \begin_inset Flex Code
2810 status open
2811
2812 \begin_layout Plain Layout
2813
2814 \change_inserted -712698321 1524657030
2815 latex, pdflatex, platex, xetex, luatex
2816 \change_unchanged
2817
2818 \end_layout
2819
2820 \end_inset
2821
2822 ).
2823  If no value is specified, 
2824 \begin_inset Flex Code
2825 status open
2826
2827 \begin_layout Plain Layout
2828
2829 \change_inserted -712698321 1524657030
2830 latex
2831 \change_unchanged
2832
2833 \end_layout
2834
2835 \end_inset
2836
2837  is used.
2838 \change_unchanged
2839
2840 \end_layout
2841
2842 \begin_layout Labeling
2843 \labelwidthstring 00.00.0000
2844 \begin_inset Flex Code
2845 status collapsed
2846
2847 \begin_layout Plain Layout
2848 nice
2849 \end_layout
2850
2851 \end_inset
2852
2853  Needs a 
2854 \begin_inset Quotes eld
2855 \end_inset
2856
2857 nice
2858 \begin_inset Quotes erd
2859 \end_inset
2860
2861  file from the backend, which in practice means a \SpecialChar LaTeX
2862  file like the one we
2863  would export, without 
2864 \begin_inset Flex Code
2865 status collapsed
2866
2867 \begin_layout Plain Layout
2868 input@path
2869 \end_layout
2870
2871 \end_inset
2872
2873 .
2874 \end_layout
2875
2876 \begin_layout Labeling
2877 \labelwidthstring 00.00.0000
2878 \begin_inset Flex Code
2879 status collapsed
2880
2881 \begin_layout Plain Layout
2882 xml
2883 \end_layout
2884
2885 \end_inset
2886
2887  Output is XML.
2888 \end_layout
2889
2890 \begin_layout Standard
2891 The following three flags are not really flags at all because they take
2892  an argument in the 
2893 \begin_inset Flex Noun
2894 status collapsed
2895
2896 \begin_layout Plain Layout
2897 key
2898 \begin_inset space ~
2899 \end_inset
2900
2901 =
2902 \begin_inset space ~
2903 \end_inset
2904
2905 value
2906 \end_layout
2907
2908 \end_inset
2909
2910  format:
2911 \end_layout
2912
2913 \begin_layout Labeling
2914 \labelwidthstring 00.00.0000
2915
2916 \change_inserted -712698321 1523206314
2917 \begin_inset Flex Code
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921
2922 \change_inserted -712698321 1523206193
2923 hyperref-driver
2924 \change_unchanged
2925
2926 \end_layout
2927
2928 \end_inset
2929
2930  The name of the driver that needs to be loaded with the 
2931 \family sans
2932 hyperref
2933 \family default
2934  package for this converter.
2935  The loading of the correct driver is necessary to get some PDF-specific
2936  features.
2937  See the 
2938 \family sans
2939 hyperref
2940 \family default
2941  manual for details.
2942 \end_layout
2943
2944 \begin_layout Labeling
2945 \labelwidthstring 00.00.0000
2946 \begin_inset Flex Code
2947 status collapsed
2948
2949 \begin_layout Plain Layout
2950 parselog
2951 \end_layout
2952
2953 \end_inset
2954
2955  If set, the converter's standard error will be redirected to a file 
2956 \begin_inset Flex Code
2957 status collapsed
2958
2959 \begin_layout Plain Layout
2960 infile.out
2961 \end_layout
2962
2963 \end_inset
2964
2965 , and the script given as argument will be run as: 
2966 \begin_inset Flex Code
2967 status collapsed
2968
2969 \begin_layout Plain Layout
2970 script < infile.out > infile.log
2971 \end_layout
2972
2973 \end_inset
2974
2975 .
2976  The argument may contain 
2977 \begin_inset Flex Code
2978 status collapsed
2979
2980 \begin_layout Plain Layout
2981 $$s
2982 \end_layout
2983
2984 \end_inset
2985
2986 .
2987 \end_layout
2988
2989 \begin_layout Labeling
2990 \labelwidthstring 00.00.0000
2991 \begin_inset Flex Code
2992 status collapsed
2993
2994 \begin_layout Plain Layout
2995 resultdir
2996 \end_layout
2997
2998 \end_inset
2999
3000  The name of the directory in which the converter will dump the generated
3001  files.
3002  \SpecialChar LyX
3003  will not create this directory, and it does not copy anything into it,
3004  though it will copy this directory to the destination.
3005  The argument may contain 
3006 \begin_inset Flex Code
3007 status collapsed
3008
3009 \begin_layout Plain Layout
3010 $$b
3011 \end_layout
3012
3013 \end_inset
3014
3015 , which will be replaced by the base name of the input and output files,
3016  respectively, when the directory is copied.
3017 \begin_inset Newline newline
3018 \end_inset
3019
3020 Note that resultdir and usetempdir make no sense together.
3021  The latter will be ignored if the former is given.
3022 \end_layout
3023
3024 \begin_layout Labeling
3025 \labelwidthstring 00.00.0000
3026 \begin_inset Flex Code
3027 status collapsed
3028
3029 \begin_layout Plain Layout
3030 resultfile
3031 \end_layout
3032
3033 \end_inset
3034
3035  Determines the output file name and may, contain 
3036 \begin_inset Flex Code
3037 status collapsed
3038
3039 \begin_layout Plain Layout
3040 $$b
3041 \end_layout
3042
3043 \end_inset
3044
3045 .
3046  Sensible only with resultdir and optional even then; if not given, it defaults
3047  to `index'.
3048 \end_layout
3049
3050 \begin_layout Standard
3051
3052 \change_inserted -712698321 1523206384
3053 A suitable hyperref-driver is set for some converters that are installed
3054  with \SpecialChar LyX
3055 .
3056  
3057 \change_deleted -712698321 1523206388
3058 None of these
3059 \change_inserted -712698321 1523206389
3060 The
3061 \change_unchanged
3062  last three
3063 \change_inserted -712698321 1523206400
3064  flags, however,
3065 \change_unchanged
3066  are presently 
3067 \change_inserted -712698321 1523206407
3068 not 
3069 \change_unchanged
3070 used in any of the 
3071 \change_inserted -712698321 1523206437
3072 pre-installed 
3073 \change_unchanged
3074 converters
3075 \change_deleted -712698321 1523206442
3076  that are installed with \SpecialChar LyX
3077
3078 \change_unchanged
3079 .
3080  
3081 \end_layout
3082
3083 \begin_layout Standard
3084 You do not have to define converters for all formats between which you want
3085  to convert.
3086  For example, you will note that there is no `\SpecialChar LyX
3087  to PostScript' converter,
3088  but \SpecialChar LyX
3089  will export PostScript.
3090  It does so by first creating a \SpecialChar LaTeX
3091  file (no converter needs to be defined
3092  for this) which is then converted to DVI using the `\SpecialChar LaTeX
3093  to DVI' converter,
3094  and finally converting the resulting DVI file to PostScript.
3095  \SpecialChar LyX
3096  finds such `chains' of converters automatically, and it will always choose
3097  the shortest possible chain.
3098  You can, though, still define multiple conversion methods between file
3099  formats.
3100  For example, the standard \SpecialChar LyX
3101  configuration provides five ways to convert
3102  \SpecialChar LaTeX
3103  to PDF:
3104 \end_layout
3105
3106 \begin_layout Enumerate
3107 Directly, using 
3108 \begin_inset Flex Noun
3109 status collapsed
3110
3111 \begin_layout Plain Layout
3112 pdflatex
3113 \end_layout
3114
3115 \end_inset
3116
3117
3118 \end_layout
3119
3120 \begin_layout Enumerate
3121 via (DVI and) PostScript, using 
3122 \begin_inset Flex Noun
3123 status collapsed
3124
3125 \begin_layout Plain Layout
3126 ps2pdf
3127 \end_layout
3128
3129 \end_inset
3130
3131
3132 \end_layout
3133
3134 \begin_layout Enumerate
3135 via DVI, using 
3136 \begin_inset Flex Noun
3137 status collapsed
3138
3139 \begin_layout Plain Layout
3140 dvipdfm
3141 \end_layout
3142
3143 \end_inset
3144
3145
3146 \end_layout
3147
3148 \begin_layout Enumerate
3149 directly using 
3150 \begin_inset Flex Noun
3151 status collapsed
3152
3153 \begin_layout Plain Layout
3154 Xe\SpecialChar TeX
3155
3156 \end_layout
3157
3158 \end_inset
3159
3160
3161 \end_layout
3162
3163 \begin_layout Enumerate
3164 directly using 
3165 \begin_inset Flex Noun
3166 status collapsed
3167
3168 \begin_layout Plain Layout
3169 Lua\SpecialChar TeX
3170
3171 \end_layout
3172
3173 \end_inset
3174
3175
3176 \end_layout
3177
3178 \begin_layout Standard
3179 To define such alternate chains, you must define multiple target `file formats',
3180  as described in 
3181 \begin_inset CommandInset ref
3182 LatexCommand ref
3183 reference "sec:Formats"
3184
3185 \end_inset
3186
3187 .
3188  For example, in the standard configuration, the formats named 
3189 \begin_inset Flex Noun
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 pdf
3194 \end_layout
3195
3196 \end_inset
3197
3198  (for 
3199 \begin_inset Flex Noun
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 ps2pdf
3204 \end_layout
3205
3206 \end_inset
3207
3208 ), 
3209 \begin_inset Flex Noun
3210 status collapsed
3211
3212 \begin_layout Plain Layout
3213 pdf2
3214 \end_layout
3215
3216 \end_inset
3217
3218  (for 
3219 \begin_inset Flex Noun
3220 status collapsed
3221
3222 \begin_layout Plain Layout
3223 pdflatex
3224 \end_layout
3225
3226 \end_inset
3227
3228 ), 
3229 \begin_inset Flex Noun
3230 status collapsed
3231
3232 \begin_layout Plain Layout
3233 pdf3
3234 \end_layout
3235
3236 \end_inset
3237
3238  (for 
3239 \begin_inset Flex Noun
3240 status collapsed
3241
3242 \begin_layout Plain Layout
3243 dvipdfm
3244 \end_layout
3245
3246 \end_inset
3247
3248 ), 
3249 \begin_inset Flex Noun
3250 status collapsed
3251
3252 \begin_layout Plain Layout
3253 pdf4
3254 \end_layout
3255
3256 \end_inset
3257
3258  (for 
3259 \begin_inset Flex Noun
3260 status collapsed
3261
3262 \begin_layout Plain Layout
3263 Xe\SpecialChar TeX
3264
3265 \end_layout
3266
3267 \end_inset
3268
3269 ), and 
3270 \begin_inset Flex Noun
3271 status collapsed
3272
3273 \begin_layout Plain Layout
3274 pdf5
3275 \end_layout
3276
3277 \end_inset
3278
3279  (for 
3280 \begin_inset Flex Noun
3281 status collapsed
3282
3283 \begin_layout Plain Layout
3284 Lua\SpecialChar TeX
3285
3286 \end_layout
3287
3288 \end_inset
3289
3290 ) are defined, all of which share the extension 
3291 \begin_inset Flex Noun
3292 status collapsed
3293
3294 \begin_layout Plain Layout
3295 .pdf
3296 \end_layout
3297
3298 \end_inset
3299
3300 , and which correspond to the conversion methods just mentioned.
3301 \end_layout
3302
3303 \begin_layout Chapter
3304 Internationalizing \SpecialChar LyX
3305
3306 \begin_inset CommandInset label
3307 LatexCommand label
3308 name "cha:Internationalizing-LyX"
3309
3310 \end_inset
3311
3312
3313 \end_layout
3314
3315 \begin_layout Standard
3316 \SpecialChar LyX
3317  supports using a translated interface.
3318  Last time we checked, \SpecialChar LyX
3319  provided text in thirty languages.
3320  The language of choice is called your 
3321 \emph on
3322 locale
3323 \emph default
3324 .
3325  (For further reading on locale settings, see also the documentation for
3326  locale that comes with your operating system.
3327  For Linux, the manual page for 
3328 \begin_inset Flex Code
3329 status collapsed
3330
3331 \begin_layout Plain Layout
3332 locale(5)
3333 \end_layout
3334
3335 \end_inset
3336
3337  could be a good place to start).
3338 \end_layout
3339
3340 \begin_layout Standard
3341 Notice that these translations will work, but do contain a few flaws.
3342  In particular, all dialogs have been designed with the English text in
3343  mind, which means that some of the translated text will be too large to
3344  fit within the space allocated.
3345  This is only a display problem and will not cause any harm.
3346  Also, you will find that some of the translations do not define shortcut
3347  keys for everything.
3348  Sometimes, there are simply not enough free letters to do it.
3349  Other times, the translator just hasn't got around to doing it yet.
3350  Our localization team, which you may wish to join,
3351 \begin_inset Foot
3352 status collapsed
3353
3354 \begin_layout Plain Layout
3355 If you are a fluent speaker of a language other than English, joining these
3356  teams is a great way to give back to the \SpecialChar LyX
3357  community!
3358 \end_layout
3359
3360 \end_inset
3361
3362  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3363 .
3364 \end_layout
3365
3366 \begin_layout Section
3367 Translating \SpecialChar LyX
3368
3369 \end_layout
3370
3371 \begin_layout Subsection
3372 Translating the graphical user interface (text messages).
3373 \end_layout
3374
3375 \begin_layout Standard
3376 \SpecialChar LyX
3377  uses the GNU 
3378 \begin_inset Flex Code
3379 status collapsed
3380
3381 \begin_layout Plain Layout
3382 gettext
3383 \end_layout
3384
3385 \end_inset
3386
3387  library to handle the internationalization of the interface.
3388  To have \SpecialChar LyX
3389  speak your favorite language in all menus and dialogs, you need
3390  a 
3391 \begin_inset Flex Code
3392 status collapsed
3393
3394 \begin_layout Plain Layout
3395 po
3396 \end_layout
3397
3398 \end_inset
3399
3400 -file for that language.
3401  When this is available, you'll have to generate a 
3402 \begin_inset Flex Code
3403 status collapsed
3404
3405 \begin_layout Plain Layout
3406 mo
3407 \end_layout
3408
3409 \end_inset
3410
3411 -file from it and install the 
3412 \begin_inset Flex Code
3413 status collapsed
3414
3415 \begin_layout Plain Layout
3416 mo
3417 \end_layout
3418
3419 \end_inset
3420
3421 -file.
3422  The process of doing all of this is explained in the documentation for
3423  GNU 
3424 \begin_inset Flex Code
3425 status collapsed
3426
3427 \begin_layout Plain Layout
3428 gettext
3429 \end_layout
3430
3431 \end_inset
3432
3433 .
3434  It is possible to do this just for yourself, but if you're going to do
3435  it, you might as well share the results of your labors with the rest of
3436  the \SpecialChar LyX
3437  community.
3438  Send a message to the \SpecialChar LyX
3439  developers' list for more information about how
3440  to proceed.
3441 \end_layout
3442
3443 \begin_layout Standard
3444 In short, this is what you should do (xx denotes the language code):
3445 \end_layout
3446
3447 \begin_layout Itemize
3448 Check out the \SpecialChar LyX
3449  source code.
3450  (See the 
3451 \begin_inset CommandInset href
3452 LatexCommand href
3453 name "information on the web"
3454 target "https://www.lyx.org/HowToUseGIT"
3455 literal "false"
3456
3457 \end_inset
3458
3459 .)
3460 \end_layout
3461
3462 \begin_layout Itemize
3463 Copy the file 
3464 \begin_inset Flex Code
3465 status collapsed
3466
3467 \begin_layout Plain Layout
3468 lyx.pot
3469 \end_layout
3470
3471 \end_inset
3472
3473  to the folder of the 
3474 \begin_inset Flex Code
3475 status collapsed
3476
3477 \begin_layout Plain Layout
3478 **.po
3479 \end_layout
3480
3481 \end_inset
3482
3483  files.
3484  Then rename it to 
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489 xx.po
3490 \end_layout
3491
3492 \end_inset
3493
3494 .
3495  (If 
3496 \begin_inset Flex Code
3497 status collapsed
3498
3499 \begin_layout Plain Layout
3500 lyx.pot
3501 \end_layout
3502
3503 \end_inset
3504
3505  doesn't exist anywhere, it can be remade with the console command 
3506 \begin_inset Flex Code
3507 status collapsed
3508
3509 \begin_layout Plain Layout
3510 make lyx.pot
3511 \end_layout
3512
3513 \end_inset
3514
3515  in that directory, or you can use an existing po-file for some other language
3516  as a template).
3517 \end_layout
3518
3519 \begin_layout Itemize
3520 Edit 
3521 \begin_inset Flex Code
3522 status collapsed
3523
3524 \begin_layout Plain Layout
3525 xx.po
3526 \end_layout
3527
3528 \end_inset
3529
3530 .
3531 \begin_inset Foot
3532 status collapsed
3533
3534 \begin_layout Plain Layout
3535 This is just a text file, so it can be edited in any text editor.
3536  But there are also specialized programs that support such editing, such
3537  as 
3538 \family typewriter
3539 Poedit
3540 \family default
3541  (for all platforms) or 
3542 \family typewriter
3543 KBabel
3544 \family default
3545  (for KDE).
3546  
3547 \family typewriter
3548 Emacs
3549 \family default
3550  contains a `mode' for editing 
3551 \begin_inset Flex Code
3552 status collapsed
3553
3554 \begin_layout Plain Layout
3555 po
3556 \end_layout
3557
3558 \end_inset
3559
3560  files, as well, see 
3561 \begin_inset Flex URL
3562 status open
3563
3564 \begin_layout Plain Layout
3565
3566 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3567 \end_layout
3568
3569 \end_inset
3570
3571 .
3572 \end_layout
3573
3574 \end_inset
3575
3576  For some menu- and widget-labels, there are also shortcut keys that should
3577  be translated.
3578  Those keys are marked after a `|', and should be translated according to
3579  the words and phrases of the language.
3580  You should also fill also out the information at the beginning of the new
3581  
3582 \begin_inset Flex Code
3583 status collapsed
3584
3585 \begin_layout Plain Layout
3586 po
3587 \end_layout
3588
3589 \end_inset
3590
3591 -file with your email-address, etc., so people know where to reach you with
3592  suggestions and entertaining flames.
3593 \end_layout
3594
3595 \begin_layout Standard
3596 If you are just doing this on your own, then:
3597 \end_layout
3598
3599 \begin_layout Itemize
3600 Generate 
3601 \begin_inset Flex Code
3602 status collapsed
3603
3604 \begin_layout Plain Layout
3605 xx.mo
3606 \end_layout
3607
3608 \end_inset
3609
3610 .
3611  This can be done with 
3612 \begin_inset Flex Code
3613 status collapsed
3614
3615 \begin_layout Plain Layout
3616 msgfmt -o xx.mo < xx.po
3617 \end_layout
3618
3619 \end_inset
3620
3621 .
3622 \end_layout
3623
3624 \begin_layout Itemize
3625 Copy the 
3626 \begin_inset Flex Code
3627 status collapsed
3628
3629 \begin_layout Plain Layout
3630 mo
3631 \end_layout
3632
3633 \end_inset
3634
3635 -file to your locale-tree, at the correct directory for application messages
3636  for the language
3637 \series bold
3638  
3639 \series default
3640 xx, and under the name 
3641 \begin_inset Flex Code
3642 status collapsed
3643
3644 \begin_layout Plain Layout
3645 lyx.mo
3646 \end_layout
3647
3648 \end_inset
3649
3650  (e.
3651 \begin_inset space \thinspace{}
3652 \end_inset
3653
3654 g.
3655 \begin_inset space \space{}
3656 \end_inset
3657
3658
3659 \begin_inset Flex Code
3660 status collapsed
3661
3662 \begin_layout Plain Layout
3663 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3664 \end_layout
3665
3666 \end_inset
3667
3668
3669 \series bold
3670 .
3671 \end_layout
3672
3673 \begin_layout Standard
3674 As said, however, it would be best if the new 
3675 \begin_inset Flex Code
3676 status collapsed
3677
3678 \begin_layout Plain Layout
3679 po
3680 \end_layout
3681
3682 \end_inset
3683
3684  file could be added to the \SpecialChar LyX
3685  distribution, so others can use it.
3686  Adding it involves making additional changes to \SpecialChar LyX
3687 .
3688  So send an email to the developers' mailing list if you're interested in
3689  doing that.
3690 \end_layout
3691
3692 \begin_layout Subsubsection
3693 Ambiguous messages
3694 \end_layout
3695
3696 \begin_layout Standard
3697 Sometimes it turns out that one English message needs to be translated into
3698  different messages in the target language.
3699  One example is the message 
3700 \begin_inset Flex Code
3701 status collapsed
3702
3703 \begin_layout Plain Layout
3704 To
3705 \end_layout
3706
3707 \end_inset
3708
3709  which has the German translation 
3710 \lang german
3711 Nach
3712 \lang english
3713  or 
3714 \lang german
3715 Bis
3716 \lang english
3717 , depending upon exactly what the English 
3718 \begin_inset Quotes eld
3719 \end_inset
3720
3721 to
3722 \begin_inset Quotes erd
3723 \end_inset
3724
3725  means.
3726  GNU 
3727 \begin_inset Flex Code
3728 status collapsed
3729
3730 \begin_layout Plain Layout
3731 gettext
3732 \end_layout
3733
3734 \end_inset
3735
3736  does not handle such ambiguous translations.
3737  Therefore you have to add some context information to the message: Instead
3738  of 
3739 \begin_inset Flex Code
3740 status collapsed
3741
3742 \begin_layout Plain Layout
3743 To
3744 \end_layout
3745
3746 \end_inset
3747
3748  it becomes 
3749 \begin_inset Flex Code
3750 status collapsed
3751
3752 \begin_layout Plain Layout
3753 To[[as in 'From format x to format y']]
3754 \end_layout
3755
3756 \end_inset
3757
3758  and 
3759 \begin_inset Flex Code
3760 status collapsed
3761
3762 \begin_layout Plain Layout
3763 To[[as in 'From page x to page y']].
3764 \end_layout
3765
3766 \end_inset
3767
3768  Now the two occurrences of 
3769 \begin_inset Flex Code
3770 status collapsed
3771
3772 \begin_layout Plain Layout
3773 To
3774 \end_layout
3775
3776 \end_inset
3777
3778  are different for 
3779 \begin_inset Flex Code
3780 status collapsed
3781
3782 \begin_layout Plain Layout
3783 gettext
3784 \end_layout
3785
3786 \end_inset
3787
3788  and can be translated correctly to 
3789 \lang german
3790 Nach
3791 \lang english
3792  and 
3793 \lang german
3794 Bis
3795 \lang english
3796 , respectively.
3797 \end_layout
3798
3799 \begin_layout Standard
3800 Of course the context information needs to be stripped off the original
3801  message when no translation is used.
3802  Therefore you have to put it in double square brackets at the end of the
3803  message (see the example above).
3804  The translation mechanism of \SpecialChar LyX
3805  ensures that everything in double square
3806  brackets at the end of messages is removed before displaying the message.
3807 \end_layout
3808
3809 \begin_layout Subsection
3810 Translating the documentation.
3811 \end_layout
3812
3813 \begin_layout Standard
3814 The online documentation (in the 
3815 \begin_inset Flex Noun
3816 status collapsed
3817
3818 \begin_layout Plain Layout
3819 Help
3820 \end_layout
3821
3822 \end_inset
3823
3824 -menu) can (and should!) be translated.
3825  If there are translated versions of the documentation available
3826 \begin_inset Foot
3827 status collapsed
3828
3829 \begin_layout Plain Layout
3830 As of March 2008, at least some of the documents have been translated into
3831  fourteen languages, with the Tutorial available in a few more.
3832 \end_layout
3833
3834 \end_inset
3835
3836  and the locale is set accordingly, these will be used automagically by
3837  \SpecialChar LyX
3838 .
3839  \SpecialChar LyX
3840  looks for translated versions as 
3841 \begin_inset Flex Code
3842 status collapsed
3843
3844 \begin_layout Plain Layout
3845 LyXDir/doc/xx/DocName.lyx
3846 \end_layout
3847
3848 \end_inset
3849
3850 , where 
3851 \begin_inset Flex Code
3852 status collapsed
3853
3854 \begin_layout Plain Layout
3855 xx
3856 \end_layout
3857
3858 \end_inset
3859
3860  is the code for the language currently in use.
3861  If there are no translated documents, the default English versions will
3862  be displayed.
3863  Note that the translated versions must have the same filenames (
3864 \begin_inset Flex Code
3865 status collapsed
3866
3867 \begin_layout Plain Layout
3868 DocName
3869 \end_layout
3870
3871 \end_inset
3872
3873  above) as the original.
3874  If you feel up to translating the documentation (an excellent way to proof-read
3875  the original documentation by the way!), there are a few things you should
3876  do right away:
3877 \end_layout
3878
3879 \begin_layout Itemize
3880 Check out the documentation translation web page at 
3881 \begin_inset CommandInset href
3882 LatexCommand href
3883 name "https://www.lyx.org/Translation"
3884 target "https://www.lyx.org/Translation"
3885 literal "false"
3886
3887 \end_inset
3888
3889 .
3890  That way, you can find out which (if any) documents have already been translate
3891 d into your language.
3892  You can also find out who (if anyone) is organizing the effort to translate
3893  the documentation into your language.
3894  If no one is organizing the effort, please let us know that you're interested.
3895 \end_layout
3896
3897 \begin_layout Standard
3898 Once you get to actually translating, here's a few hints for you that may
3899  save you trouble:
3900 \end_layout
3901
3902 \begin_layout Itemize
3903 Join the documentation team! There is information on how to do that in 
3904 \begin_inset Flex Code
3905 status collapsed
3906
3907 \begin_layout Plain Layout
3908 Intro.lyx
3909 \end_layout
3910
3911 \end_inset
3912
3913  (
3914 \begin_inset Flex Noun
3915 status collapsed
3916
3917 \begin_layout Plain Layout
3918 Help\SpecialChar menuseparator
3919 Introduction
3920 \end_layout
3921
3922 \end_inset
3923
3924 ), which by the way is the first document you should translate.
3925 \end_layout
3926
3927 \begin_layout Itemize
3928 Learn the typographic conventions for the language you are translating to.
3929  Typography is an ancient art and over the centuries, a great variety of
3930  conventions have developed throughout different parts of the world.
3931  Also study the professional terminology amongst typographers in your country.
3932  Inventing your own terminology will only confuse the users.
3933  
3934 \emph on
3935 (Warning! Typography is addictive!)
3936 \end_layout
3937
3938 \begin_layout Itemize
3939 Make a copy of the document.
3940  This will be your working copy.
3941  You can use this as your personal translated help-file by placing it in
3942  your 
3943 \begin_inset Flex Code
3944 status collapsed
3945
3946 \begin_layout Plain Layout
3947 UserDir/doc/xx/
3948 \end_layout
3949
3950 \end_inset
3951
3952  directory.
3953 \begin_inset Note Greyedout
3954 status open
3955
3956 \begin_layout Plain Layout
3957
3958 \series bold
3959 Note:
3960 \series default
3961  For a complex document with external material (images, etc.), if you make
3962  a copy e.
3963 \begin_inset space \thinspace{}
3964 \end_inset
3965
3966 g.
3967 \begin_inset space \space{}
3968 \end_inset
3969
3970 in a temp dir, beware that the links to external material may be broken
3971  when the document is moved to a different place.
3972  The best way is to retrieve the \SpecialChar LyX
3973  tree from git (see 
3974 \begin_inset Flex URL
3975 status collapsed
3976
3977 \begin_layout Plain Layout
3978
3979 https://www.lyx.org/HowToUseGIT
3980 \end_layout
3981
3982 \end_inset
3983
3984 ) and to edit the doc file in place.
3985 \end_layout
3986
3987 \end_inset
3988
3989
3990 \end_layout
3991
3992 \begin_layout Itemize
3993 Sometimes the original document (from the \SpecialChar LyX
3994  team) will be updated.
3995  Use the source viewer at 
3996 \begin_inset CommandInset href
3997 LatexCommand href
3998 name "https://www.lyx.org/trac/timeline"
3999 target "https://www.lyx.org/trac/timeline"
4000 literal "false"
4001
4002 \end_inset
4003
4004  to see what has been changed.
4005  That way you can easily see which parts of the translated document need
4006  to be updated.
4007 \end_layout
4008
4009 \begin_layout Standard
4010 If you ever find an error in the original document, fix it and notify the
4011  rest of the documentation team of the changes! (You didn't forget to join
4012  the documentation team, did you?)
4013 \end_layout
4014
4015 \begin_layout Standard
4016 \begin_inset Branch OutDated
4017 inverted 0
4018 status collapsed
4019
4020 \begin_layout Section
4021 International Keyboard Support
4022 \end_layout
4023
4024 \begin_layout Standard
4025
4026 \emph on
4027 [Editor's Note: The following section is by
4028 \emph default
4029  
4030 \shape smallcaps
4031 \emph on
4032 Ivan Schreter
4033 \shape default
4034 .
4035  It needs to be fixed to conform to the new Documentation Style sheet and
4036  to make use of the new v1.0 features.
4037  The whole thing also needs to be merged with the section following it.-jw
4038  It may also be badly out of date.-rh (2008)]
4039 \end_layout
4040
4041 \begin_layout Subsection
4042 Defining Own Keymaps: Keymap File Format
4043 \end_layout
4044
4045 \begin_layout Standard
4046 Let's look at a keyboard definition file a little closer.
4047  It is a plain text file defining
4048 \end_layout
4049
4050 \begin_layout Itemize
4051 key-to-key or key-to-string translations
4052 \end_layout
4053
4054 \begin_layout Itemize
4055 dead keys
4056 \end_layout
4057
4058 \begin_layout Itemize
4059 dead keys exceptions
4060 \end_layout
4061
4062 \begin_layout Standard
4063 To define key-to-key or key-to-string translation, use this command:
4064 \end_layout
4065
4066 \begin_layout Quotation
4067 \begin_inset Flex Code
4068 status collapsed
4069
4070 \begin_layout Plain Layout
4071
4072 \backslash
4073 kmap
4074 \end_layout
4075
4076 \end_inset
4077
4078  
4079 \begin_inset Flex Code
4080 status collapsed
4081
4082 \begin_layout Plain Layout
4083 key
4084 \end_layout
4085
4086 \end_inset
4087
4088  outstring 
4089 \end_layout
4090
4091 \begin_layout Standard
4092 where 
4093 \begin_inset Flex Code
4094 status collapsed
4095
4096 \begin_layout Plain Layout
4097 key
4098 \end_layout
4099
4100 \end_inset
4101
4102  is the key to be translated and 
4103 \begin_inset Flex Code
4104 status collapsed
4105
4106 \begin_layout Plain Layout
4107 outstring
4108 \end_layout
4109
4110 \end_inset
4111
4112  is the string to be inserted into the document.
4113  To define dead keys, use:
4114 \end_layout
4115
4116 \begin_layout Quotation
4117 \begin_inset Flex Code
4118 status collapsed
4119
4120 \begin_layout Plain Layout
4121
4122 \backslash
4123 kmod
4124 \end_layout
4125
4126 \end_inset
4127
4128  
4129 \begin_inset Flex Code
4130 status collapsed
4131
4132 \begin_layout Plain Layout
4133 key
4134 \end_layout
4135
4136 \end_inset
4137
4138  deadkey
4139 \end_layout
4140
4141 \begin_layout Standard
4142 where 
4143 \begin_inset Flex Code
4144 status collapsed
4145
4146 \begin_layout Plain Layout
4147 key
4148 \end_layout
4149
4150 \end_inset
4151
4152  is a keyboard key and 
4153 \begin_inset Flex Code
4154 status collapsed
4155
4156 \begin_layout Plain Layout
4157 deadkey
4158 \end_layout
4159
4160 \end_inset
4161
4162  is dead key name.
4163  The following dead keys are supported (shortcut name is in parentheses):
4164 \end_layout
4165
4166 \begin_layout Quotation
4167
4168 \emph on
4169 Name
4170 \begin_inset space \hfill{}
4171 \end_inset
4172
4173 Example
4174 \end_layout
4175
4176 \begin_layout Quotation
4177 acute (acu)
4178 \begin_inset space \hfill{}
4179 \end_inset
4180
4181 áéíóú
4182 \end_layout
4183
4184 \begin_layout Quotation
4185 grave (gra)
4186 \begin_inset space \hfill{}
4187 \end_inset
4188
4189 àèìòù
4190 \end_layout
4191
4192 \begin_layout Quotation
4193 macron (mac)
4194 \begin_inset space \hfill{}
4195 \end_inset
4196
4197  ō
4198 \end_layout
4199
4200 \begin_layout Quotation
4201 tilde (til)
4202 \begin_inset space \hfill{}
4203 \end_inset
4204
4205 ñÑ
4206 \end_layout
4207
4208 \begin_layout Quotation
4209 underbar (underb)
4210 \begin_inset space \hfill{}
4211 \end_inset
4212
4213
4214 \begin_inset ERT
4215 status open
4216
4217 \begin_layout Plain Layout
4218
4219
4220 \backslash
4221 b o
4222 \end_layout
4223
4224 \end_inset
4225
4226
4227 \end_layout
4228
4229 \begin_layout Quotation
4230 cedilla (ced)
4231 \begin_inset space \hfill{}
4232 \end_inset
4233
4234 çÇ
4235 \end_layout
4236
4237 \begin_layout Quotation
4238 underdot (underd)
4239 \begin_inset space \hfill{}
4240 \end_inset
4241
4242
4243 \begin_inset ERT
4244 status open
4245
4246 \begin_layout Plain Layout
4247
4248
4249 \backslash
4250 d o
4251 \end_layout
4252
4253 \end_inset
4254
4255
4256 \end_layout
4257
4258 \begin_layout Quotation
4259 circumflex (circu)
4260 \begin_inset space \hfill{}
4261 \end_inset
4262
4263 âêîôû
4264 \end_layout
4265
4266 \begin_layout Quotation
4267 circle (circl)
4268 \begin_inset space \hfill{}
4269 \end_inset
4270
4271 ÅůŮ
4272 \end_layout
4273
4274 \begin_layout Quotation
4275 tie (tie)
4276 \begin_inset space \hfill{}
4277 \end_inset
4278
4279
4280 \begin_inset ERT
4281 status open
4282
4283 \begin_layout Plain Layout
4284
4285
4286 \backslash
4287 t o
4288 \end_layout
4289
4290 \end_inset
4291
4292
4293 \end_layout
4294
4295 \begin_layout Quotation
4296 breve (bre)
4297 \begin_inset space \hfill{}
4298 \end_inset
4299
4300 ă
4301 \begin_inset ERT
4302 status open
4303
4304 \begin_layout Plain Layout
4305
4306
4307 \backslash
4308 u o
4309 \end_layout
4310
4311 \end_inset
4312
4313
4314 \end_layout
4315
4316 \begin_layout Quotation
4317 caron (car)
4318 \begin_inset space \hfill{}
4319 \end_inset
4320
4321 čšž
4322 \end_layout
4323
4324 \begin_layout Quotation
4325 hungarian umlaut (hug)
4326 \begin_inset space \hfill{}
4327 \end_inset
4328
4329 őű
4330 \end_layout
4331
4332 \begin_layout Quotation
4333 umlaut (uml)
4334 \begin_inset space \hfill{}
4335 \end_inset
4336
4337 äöü
4338 \end_layout
4339
4340 \begin_layout Quotation
4341 dot (dot)
4342 \begin_inset space \hfill{}
4343 \end_inset
4344
4345 ż
4346 \begin_inset ERT
4347 status open
4348
4349 \begin_layout Plain Layout
4350
4351
4352 \backslash
4353 .s
4354 \end_layout
4355
4356 \end_inset
4357
4358
4359 \end_layout
4360
4361 \begin_layout Standard
4362 Since in many international keyboards there are exceptions to what some
4363  dead keys should do, you can define them using
4364 \end_layout
4365
4366 \begin_layout Quotation
4367 \begin_inset Flex Code
4368 status collapsed
4369
4370 \begin_layout Plain Layout
4371
4372 \backslash
4373 kxmod
4374 \end_layout
4375
4376 \end_inset
4377
4378  deadkey key outstring
4379 \end_layout
4380
4381 \begin_layout Standard
4382 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4383 , so you put in
4384 \end_layout
4385
4386 \begin_layout Quotation
4387 \begin_inset Flex Code
4388 status collapsed
4389
4390 \begin_layout Plain Layout
4391
4392 \backslash
4393 kxmod
4394 \end_layout
4395
4396 \end_inset
4397
4398  caron o "
4399 \backslash
4400 ^o"
4401 \end_layout
4402
4403 \begin_layout Standard
4404 to make it work correctly.
4405  Also, you have to define as exceptions dead keys over i and j, to remove
4406  the dot from them before inserting an accent mark.
4407  I will change this when the time comes, but so far I haven't had time.
4408 \end_layout
4409
4410 \begin_layout Standard
4411 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4412  double backslash.
4413  Also, quotes and 
4414 \begin_inset Flex Code
4415 status collapsed
4416
4417 \begin_layout Plain Layout
4418 #
4419 \end_layout
4420
4421 \end_inset
4422
4423  have different meaning.
4424  
4425 \begin_inset Flex Code
4426 status collapsed
4427
4428 \begin_layout Plain Layout
4429 #
4430 \end_layout
4431
4432 \end_inset
4433
4434  marks comments, quotes start and end \SpecialChar LaTeX
4435 -style commands.
4436  To enter quote, you'll need to use 
4437 \begin_inset Flex Code
4438 status collapsed
4439
4440 \begin_layout Plain Layout
4441
4442 \backslash
4443 "
4444 \end_layout
4445
4446 \end_inset
4447
4448 , to enter 
4449 \begin_inset Flex Code
4450 status collapsed
4451
4452 \begin_layout Plain Layout
4453 #
4454 \end_layout
4455
4456 \end_inset
4457
4458 , use 
4459 \begin_inset Flex Code
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463
4464 \backslash
4465 #
4466 \end_layout
4467
4468 \end_inset
4469
4470 .
4471 \end_layout
4472
4473 \begin_layout Standard
4474 If you make a keyboard description file that works for your language, please
4475  mail it to me, so I can include it in the next keymap distribution.
4476 \end_layout
4477
4478 \begin_layout Standard
4479 More keywords will be supported in keymap configuration file in future,
4480  like
4481 \end_layout
4482
4483 \begin_layout Itemize
4484 \begin_inset Flex Code
4485 status collapsed
4486
4487 \begin_layout Plain Layout
4488
4489 \backslash
4490 kinclude filename
4491 \end_layout
4492
4493 \end_inset
4494
4495
4496 \emph on
4497
4498 \begin_inset space \hfill{}
4499 \end_inset
4500
4501
4502 \begin_inset Flex Code
4503 status collapsed
4504
4505 \begin_layout Plain Layout
4506 include
4507 \end_layout
4508
4509 \end_inset
4510
4511  another file
4512 \end_layout
4513
4514 \begin_layout Itemize
4515 \begin_inset Flex Code
4516 status collapsed
4517
4518 \begin_layout Plain Layout
4519
4520 \backslash
4521 kprog program
4522 \end_layout
4523
4524 \end_inset
4525
4526
4527 \emph on
4528
4529 \begin_inset space \hfill{}
4530 \end_inset
4531
4532
4533 \begin_inset Flex Code
4534 status collapsed
4535
4536 \begin_layout Plain Layout
4537 define
4538 \end_layout
4539
4540 \end_inset
4541
4542  an external keymap translation program 
4543 \end_layout
4544
4545 \begin_layout Standard
4546 Also, it should look into 
4547 \begin_inset Flex Code
4548 status collapsed
4549
4550 \begin_layout Plain Layout
4551 lyxrc
4552 \end_layout
4553
4554 \end_inset
4555
4556  file for defaults, too (for example, a 
4557 \begin_inset Flex Code
4558 status collapsed
4559
4560 \begin_layout Plain Layout
4561
4562 \backslash
4563 kinclude
4564 \end_layout
4565
4566 \end_inset
4567
4568  option to include default keyboard).
4569 \end_layout
4570
4571 \end_inset
4572
4573
4574 \end_layout
4575
4576 \begin_layout Section
4577 International Keymap Stuff
4578 \begin_inset CommandInset label
4579 LatexCommand label
4580 name "sec:International-Keymap-Stuff"
4581
4582 \end_inset
4583
4584
4585 \end_layout
4586
4587 \begin_layout Standard
4588 \begin_inset Note Note
4589 status open
4590
4591 \begin_layout Plain Layout
4592 In doing the revisions on this document in March 2008, I did not look over
4593  this stuff, as I do not understand it.
4594  It would be good if someone else could do so.
4595  (RH)
4596 \end_layout
4597
4598 \end_inset
4599
4600
4601 \end_layout
4602
4603 \begin_layout Standard
4604 The next two sections describe the 
4605 \begin_inset Flex Code
4606 status collapsed
4607
4608 \begin_layout Plain Layout
4609
4610 \shape up
4611 .kmap
4612 \end_layout
4613
4614 \end_inset
4615
4616  and 
4617 \begin_inset Flex Code
4618 status collapsed
4619
4620 \begin_layout Plain Layout
4621
4622 \shape up
4623 .cdef
4624 \end_layout
4625
4626 \end_inset
4627
4628  file syntax in detail.
4629  These sections should help you design your own key map if the ones provided
4630  do not meet your needs.
4631 \end_layout
4632
4633 \begin_layout Subsection
4634 The .kmap File
4635 \end_layout
4636
4637 \begin_layout Standard
4638
4639 \shape up
4640 .
4641 \begin_inset Flex Code
4642 status collapsed
4643
4644 \begin_layout Plain Layout
4645 kmap
4646 \end_layout
4647
4648 \end_inset
4649
4650  file maps keystrokes to characters or strings.
4651  As the name suggests, it sets a keyboard mapping.
4652  The 
4653 \begin_inset Flex Code
4654 status collapsed
4655
4656 \begin_layout Plain Layout
4657 .kmap
4658 \end_layout
4659
4660 \end_inset
4661
4662
4663 \shape default
4664  file keywords 
4665 \shape up
4666
4667 \begin_inset Flex Code
4668 status collapsed
4669
4670 \begin_layout Plain Layout
4671
4672 \shape up
4673 kmap
4674 \end_layout
4675
4676 \end_inset
4677
4678
4679 \shape default
4680 ,
4681 \shape up
4682  
4683 \shape default
4684
4685 \begin_inset Flex Code
4686 status collapsed
4687
4688 \begin_layout Plain Layout
4689
4690 \shape up
4691 kmod
4692 \end_layout
4693
4694 \end_inset
4695
4696 ,
4697 \shape up
4698  
4699 \shape default
4700
4701 \begin_inset Flex Code
4702 status collapsed
4703
4704 \begin_layout Plain Layout
4705
4706 \shape up
4707 kxmod
4708 \end_layout
4709
4710 \end_inset
4711
4712 , and 
4713 \begin_inset Flex Code
4714 status collapsed
4715
4716 \begin_layout Plain Layout
4717
4718 \shape up
4719 kcomb
4720 \end_layout
4721
4722 \end_inset
4723
4724  are described in this section.
4725 \end_layout
4726
4727 \begin_layout Labeling
4728 \labelwidthstring 00.00.0000
4729 \begin_inset Flex Code
4730 status collapsed
4731
4732 \begin_layout Plain Layout
4733
4734 \shape up
4735 kmap
4736 \end_layout
4737
4738 \end_inset
4739
4740  Map a character to a string
4741 \end_layout
4742
4743 \begin_layout LyX-Code
4744
4745 \backslash
4746 kmap 
4747 \family roman
4748 \emph on
4749 char
4750 \family default
4751 \emph default
4752  
4753 \family roman
4754 \emph on
4755 string
4756 \end_layout
4757
4758 \begin_layout Standard
4759 This will ma
4760 \family roman
4761 p
4762 \family default
4763  
4764 \family roman
4765 \emph on
4766 char
4767 \family default
4768 \emph default
4769  
4770 \family roman
4771 to
4772 \family default
4773  
4774 \family roman
4775 \emph on
4776 string
4777 \emph default
4778 .
4779  Note that in
4780 \family default
4781  
4782 \family roman
4783 \emph on
4784 string
4785 \emph default
4786 ,
4787 \family default
4788  
4789 \family roman
4790 \shape up
4791 the double-quote (")
4792 \family default
4793 \shape default
4794  
4795 \family roman
4796 and
4797 \family default
4798  
4799 \family roman
4800 \shape up
4801 the backslash (
4802 \backslash
4803 )
4804 \family default
4805 \shape default
4806  
4807 \family roman
4808 must be escaped with a preceding backslash (
4809 \shape up
4810
4811 \backslash
4812
4813 \shape default
4814 )
4815 \family default
4816 .
4817 \end_layout
4818
4819 \begin_layout Standard
4820 An example of a 
4821 \begin_inset Flex Noun
4822 status collapsed
4823
4824 \begin_layout Plain Layout
4825
4826 \shape up
4827 kmap
4828 \end_layout
4829
4830 \end_inset
4831
4832  statement to cause the symbol 
4833 \begin_inset Flex Noun
4834 status collapsed
4835
4836 \begin_layout Plain Layout
4837
4838 \shape up
4839 /
4840 \end_layout
4841
4842 \end_inset
4843
4844  to be output for the keystroke 
4845 \begin_inset Flex Noun
4846 status collapsed
4847
4848 \begin_layout Plain Layout
4849
4850 \shape up
4851 &
4852 \end_layout
4853
4854 \end_inset
4855
4856  is:
4857 \end_layout
4858
4859 \begin_layout LyX-Code
4860
4861 \backslash
4862 kmap & /
4863 \end_layout
4864
4865 \begin_layout Labeling
4866 \labelwidthstring 00.00.0000
4867 \begin_inset Flex Code
4868 status collapsed
4869
4870 \begin_layout Plain Layout
4871
4872 \shape up
4873 kmod
4874 \end_layout
4875
4876 \end_inset
4877
4878  Specify an accent character
4879 \end_layout
4880
4881 \begin_layout LyX-Code
4882
4883 \backslash
4884 kmod 
4885 \family roman
4886 \emph on
4887 char accent allowed
4888 \end_layout
4889
4890 \begin_layout Standard
4891 This will make the cha
4892 \family roman
4893 racter
4894 \family default
4895  
4896 \family roman
4897 \emph on
4898 char
4899 \family default
4900 \emph default
4901  
4902 \family roman
4903 \shape up
4904 \emph on
4905 be an accent
4906 \family default
4907 \shape default
4908 \emph default
4909  
4910 \family roman
4911 \shape up
4912 on the
4913 \family default
4914 \shape default
4915  
4916 \family roman
4917 \shape up
4918 \emph on
4919 allowed
4920 \family default
4921 \shape default
4922 \emph default
4923  
4924 \family roman
4925 \shape up
4926 cha
4927 \family default
4928 racter(s).
4929  This is the dead key
4930 \begin_inset Foot
4931 status collapsed
4932
4933 \begin_layout Plain Layout
4934 The term 
4935 \family roman
4936 \emph on
4937 dead key
4938 \family default
4939 \emph default
4940  refers to a key that does not produce a character by itself, but when followed
4941  with another key, produces the desired accent character.
4942  For example, a German characte
4943 \family roman
4944 r with an umlaut like
4945 \family default
4946  
4947 \family roman
4948 \emph on
4949 ä
4950 \family default
4951 \emph default
4952  
4953 \family roman
4954 can be produced in this manner.
4955 \end_layout
4956
4957 \end_inset
4958
4959  mechanism.
4960  
4961 \end_layout
4962
4963 \begin_layout Standard
4964 If you 
4965 \family roman
4966 hit
4967 \family default
4968  
4969 \family roman
4970 \emph on
4971 char
4972 \family default
4973 \emph default
4974  
4975 \family roman
4976 and then another key not in
4977 \family default
4978  
4979 \family roman
4980 \emph on
4981 allowed
4982 \emph default
4983 , you will get a
4984 \family default
4985  
4986 \family roman
4987 \emph on
4988 char
4989 \family default
4990 \emph default
4991  
4992 \family roman
4993 followed by the other, not allowed key, as output.
4994
4995 \family default
4996  Note that a 
4997 \begin_inset Flex Noun
4998 status collapsed
4999
5000 \begin_layout Plain Layout
5001
5002 \shape up
5003 Backspace
5004 \end_layout
5005
5006 \end_inset
5007
5008  cancels a dead key, so if 
5009 \family roman
5010 you hit
5011 \family default
5012  
5013 \family roman
5014 \emph on
5015 char
5016 \family default
5017 \emph default
5018  
5019 \begin_inset Flex Noun
5020 status collapsed
5021
5022 \begin_layout Plain Layout
5023
5024 \shape up
5025 \emph on
5026 Backspace
5027 \end_layout
5028
5029 \end_inset
5030
5031 , the cursor will not go one position backwards but will instead cancel
5032  the effect t
5033 \family roman
5034 hat
5035 \family default
5036  
5037 \family roman
5038 \shape up
5039 \emph on
5040 char
5041 \family default
5042 \shape default
5043 \emph default
5044  
5045 \family roman
5046 \shape up
5047 might have had on the next keystroke.
5048  
5049 \end_layout
5050
5051 \begin_layout Standard
5052 The following example specifies that the character ' is to be an acute accent,
5053  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
5054 \end_layout
5055
5056 \begin_layout LyX-Code
5057
5058 \backslash
5059 kmod ' acute aeiouAEIOU
5060 \end_layout
5061
5062 \begin_layout Labeling
5063 \labelwidthstring 00.00.0000
5064 \begin_inset Flex Code
5065 status collapsed
5066
5067 \begin_layout Plain Layout
5068 kxmod
5069 \end_layout
5070
5071 \end_inset
5072
5073  Specify an exception to the accent character
5074 \end_layout
5075
5076 \begin_layout LyX-Code
5077
5078 \backslash
5079 kxmod  
5080 \family roman
5081 \emph on
5082 accent char result
5083 \end_layout
5084
5085 \begin_layout Standard
5086 This defines an exce
5087 \family roman
5088 ption for
5089 \family default
5090  
5091 \family roman
5092 \emph on
5093 accent
5094 \family default
5095 \emph default
5096  
5097 \family roman
5098 on
5099 \family default
5100  
5101 \family roman
5102 \emph on
5103 char
5104 \emph default
5105 .
5106  T
5107 \shape up
5108 he
5109 \family default
5110 \shape default
5111  
5112 \family roman
5113 \shape up
5114 \emph on
5115 accent
5116 \family default
5117 \shape default
5118 \emph default
5119  
5120 \family roman
5121 \shape up
5122 must
5123 \family default
5124 \shape default
5125  
5126 \shape up
5127 have been assigned a keystroke with a previous
5128 \shape default
5129  
5130 \begin_inset Flex Code
5131 status collapsed
5132
5133 \begin_layout Plain Layout
5134
5135 \shape up
5136
5137 \backslash
5138 kmo
5139 \shape default
5140 d
5141 \end_layout
5142
5143 \end_inset
5144
5145  declar
5146 \family roman
5147 ation and
5148 \family default
5149  
5150 \family roman
5151 \emph on
5152 char
5153 \family default
5154 \emph default
5155  
5156 \family roman
5157 must not belong in the
5158 \family default
5159  
5160 \family roman
5161 \emph on
5162 allowed
5163 \family default
5164 \emph default
5165  
5166 \family roman
5167 set of
5168 \family default
5169  
5170 \family roman
5171 \emph on
5172 accent
5173 \emph default
5174 .
5175  When
5176 \family default
5177  
5178 \family roman
5179 \shape up
5180 you enter the
5181 \family default
5182 \shape default
5183  
5184 \family roman
5185 \shape up
5186 \emph on
5187 accent char
5188 \family default
5189 \shape default
5190 \emph default
5191  
5192 \family roman
5193 \shape up
5194 sequence,
5195 \family default
5196 \shape default
5197  
5198 \family roman
5199 \shape up
5200 \emph on
5201 result
5202 \emph default
5203  is produced.
5204  If such a declaration does not exist in
5205 \family default
5206 \shape default
5207  
5208 \shape up
5209 the
5210 \shape default
5211  
5212 \begin_inset Flex Code
5213 status collapsed
5214
5215 \begin_layout Plain Layout
5216
5217 \shape up
5218 .kmap
5219 \end_layout
5220
5221 \end_inset
5222
5223  file and yo
5224 \family roman
5225 u enter
5226 \family default
5227  
5228 \family roman
5229 \emph on
5230 accent char
5231 \emph default
5232 , you get
5233 \family default
5234  
5235 \family roman
5236 \emph on
5237 accent_key char
5238 \emph default
5239  where
5240 \family default
5241  
5242 \family roman
5243 \emph on
5244 accent_key
5245 \emph default
5246  is the first arg
5247 \family default
5248 ument of the 
5249 \begin_inset Flex Code
5250 status collapsed
5251
5252 \begin_layout Plain Layout
5253
5254 \shape up
5255
5256 \backslash
5257 kmod
5258 \end_layout
5259
5260 \end_inset
5261
5262  declaration.
5263  
5264 \end_layout
5265
5266 \begin_layout Standard
5267 The following command produces causes äi to be produced when you enter acute-i
5268  ('i):
5269 \end_layout
5270
5271 \begin_layout LyX-Code
5272
5273 \backslash
5274 kxmod acute i "
5275 \backslash
5276
5277 \backslash
5278 '{
5279 \backslash
5280
5281 \backslash
5282 i}"
5283 \end_layout
5284
5285 \begin_layout Labeling
5286 \labelwidthstring 00.00.0000
5287 \begin_inset Flex Code
5288 status collapsed
5289
5290 \begin_layout Plain Layout
5291 kcomb
5292 \end_layout
5293
5294 \end_inset
5295
5296  Combine two accent characters
5297 \end_layout
5298
5299 \begin_layout LyX-Code
5300
5301 \backslash
5302 kcomb 
5303 \family roman
5304 \emph on
5305 accent1 accent2 allowed
5306 \end_layout
5307
5308 \begin_layout Standard
5309 This one is getting pretty esoteric.
5310  It allows you to combine the effect 
5311 \family roman
5312 of
5313 \family default
5314  
5315 \family roman
5316 \emph on
5317 accent1
5318 \family default
5319 \emph default
5320  
5321 \family roman
5322 and
5323 \family default
5324  
5325 \family roman
5326 \emph on
5327 accent2
5328 \family default
5329 \emph default
5330  
5331 \family roman
5332 (in that order!) on
5333 \family default
5334  
5335 \family roman
5336 \emph on
5337 allowed
5338 \family default
5339 \emph default
5340  
5341 \family roman
5342 chars.
5343  The keystrokes for
5344 \family default
5345  
5346 \family roman
5347 \emph on
5348 accent1
5349 \family default
5350 \emph default
5351  
5352 \family roman
5353 and
5354 \family default
5355  
5356 \family roman
5357 \emph on
5358 accent2
5359 \family default
5360 \emph default
5361  
5362 \family roman
5363 must have be
5364 \family default
5365 en set with a 
5366 \begin_inset Flex Code
5367 status collapsed
5368
5369 \begin_layout Plain Layout
5370
5371 \shape up
5372
5373 \backslash
5374 kmod
5375 \end_layout
5376
5377 \end_inset
5378
5379  command at 
5380 \family roman
5381 a
5382 \family default
5383  
5384 \family roman
5385 \emph on
5386 previous
5387 \family default
5388 \emph default
5389  
5390 \family roman
5391 point in the
5392 \family default
5393  file.
5394  
5395 \end_layout
5396
5397 \begin_layout Standard
5398 Consider this example from the 
5399 \begin_inset Flex Code
5400 status collapsed
5401
5402 \begin_layout Plain Layout
5403
5404 \shape up
5405 greek.kmap
5406 \end_layout
5407
5408 \end_inset
5409
5410  file:
5411 \end_layout
5412
5413 \begin_layout LyX-Code
5414
5415 \backslash
5416 kmod ; acute aeioyvhAEIOYVH 
5417 \backslash
5418 kmod : umlaut iyIY 
5419 \backslash
5420 kcomb acute umlaut iyIY
5421 \end_layout
5422
5423 \begin_layout Standard
5424 This allows you to press 
5425 \begin_inset Flex Noun
5426 status collapsed
5427
5428 \begin_layout Plain Layout
5429
5430 \shape up
5431 ;:i
5432 \end_layout
5433
5434 \end_inset
5435
5436  and get the effect of 
5437 \begin_inset Flex Code
5438 status collapsed
5439
5440 \begin_layout Plain Layout
5441
5442 \shape up
5443
5444 \backslash
5445 '{
5446 \backslash
5447 "{i}}
5448 \end_layout
5449
5450 \end_inset
5451
5452 .
5453  
5454 \family roman
5455 \shape up
5456 A backspace
5457 \family default
5458 \shape default
5459  in this case cancels the last dead key, so if you press 
5460 \begin_inset Flex Noun
5461 status collapsed
5462
5463 \begin_layout Plain Layout
5464
5465 \shape up
5466 ;: Backspace i
5467 \end_layout
5468
5469 \end_inset
5470
5471  you get 
5472 \begin_inset Flex Code
5473 status collapsed
5474
5475 \begin_layout Plain Layout
5476
5477 \shape up
5478
5479 \backslash
5480 '{i}
5481 \end_layout
5482
5483 \end_inset
5484
5485 .
5486 \end_layout
5487
5488 \begin_layout Subsection
5489 The .cdef File
5490 \end_layout
5491
5492 \begin_layout Standard
5493 After the 
5494 \begin_inset Flex Code
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498
5499 \shape up
5500 .kmap
5501 \end_layout
5502
5503 \end_inset
5504
5505  mapping is performed, a 
5506 \begin_inset Flex Code
5507 status collapsed
5508
5509 \begin_layout Plain Layout
5510
5511 \shape up
5512 .cde
5513 \shape default
5514 f
5515 \end_layout
5516
5517 \end_inset
5518
5519  file maps the strings that the symbols generate to characters in the current
5520  font.
5521  The \SpecialChar LyX
5522  distribution currently includes at least the 
5523 \begin_inset Flex Code
5524 status collapsed
5525
5526 \begin_layout Plain Layout
5527
5528 \shape up
5529 iso8859-1.cdef
5530 \end_layout
5531
5532 \end_inset
5533
5534  and 
5535 \begin_inset Flex Code
5536 status collapsed
5537
5538 \begin_layout Plain Layout
5539
5540 \shape up
5541 iso8859-2.cdef
5542 \end_layout
5543
5544 \end_inset
5545
5546  files.
5547 \end_layout
5548
5549 \begin_layout Standard
5550 In general the 
5551 \begin_inset Flex Code
5552 status collapsed
5553
5554 \begin_layout Plain Layout
5555
5556 \shape up
5557 .cdef
5558 \end_layout
5559
5560 \end_inset
5561
5562  file is a sequence of declarations of the form
5563 \end_layout
5564
5565 \begin_layout LyX-Code
5566
5567 \family roman
5568 \emph on
5569 char_index_in_set
5570 \family default
5571 \emph default
5572  
5573 \family roman
5574 \emph on
5575  string
5576 \end_layout
5577
5578 \begin_layout Standard
5579 For example, in order to map 
5580 \begin_inset Flex Noun
5581 status collapsed
5582
5583 \begin_layout Plain Layout
5584
5585 \shape up
5586
5587 \backslash
5588 '{e}
5589 \end_layout
5590
5591 \end_inset
5592
5593  to the corresponding character in the iso-8859-1 set (233), the following
5594  declaration is used
5595 \end_layout
5596
5597 \begin_layout LyX-Code
5598 233 "
5599 \backslash
5600
5601 \backslash
5602 '{e}"
5603 \end_layout
5604
5605 \begin_layout Standard
5606 with 
5607 \begin_inset Flex Code
5608 status collapsed
5609
5610 \begin_layout Plain Layout
5611
5612 \backslash
5613
5614 \end_layout
5615
5616 \end_inset
5617
5618  and 
5619 \begin_inset Flex Code
5620 status collapsed
5621
5622 \begin_layout Plain Layout
5623 "
5624 \end_layout
5625
5626 \end_inset
5627
5628  being escap
5629 \family roman
5630 ed in
5631 \family default
5632  
5633 \family roman
5634 \emph on
5635 string
5636 \emph default
5637 .
5638  Note that
5639 \family default
5640  the same character can apply to more than one string.
5641  In the 
5642 \begin_inset Flex Code
5643 status collapsed
5644
5645 \begin_layout Plain Layout
5646 i
5647 \shape up
5648 so-8859-7.cdef
5649 \end_layout
5650
5651 \end_inset
5652
5653  file you have
5654 \end_layout
5655
5656 \begin_layout LyX-Code
5657 192 "
5658 \backslash
5659
5660 \backslash
5661 '{
5662 \backslash
5663
5664 \backslash
5665
5666 \backslash
5667 "{i}}"
5668 \begin_inset Newline newline
5669 \end_inset
5670
5671 192 "
5672 \backslash
5673
5674 \backslash
5675
5676 \backslash
5677 "{
5678 \backslash
5679
5680 \backslash
5681 '{i}}"
5682 \end_layout
5683
5684 \begin_layout Standard
5685 If \SpecialChar LyX
5686  cannot find a mapping for the string produced by the keystroke or a
5687  deadkey sequence, it will check if it looks like an accented char and try
5688  to draw an accent over the character on screen.
5689 \end_layout
5690
5691 \begin_layout Subsection
5692 Dead Keys
5693 \end_layout
5694
5695 \begin_layout Standard
5696 There is a second way to add support for international characters through
5697  so-called dead-keys.
5698  A dead-key works in combination with a letter to produce an accented character.
5699  Here, we'll explain how to create a really simple dead-key to illustrate
5700  how they work.
5701 \end_layout
5702
5703 \begin_layout Standard
5704 Suppose you happen to need the circumflex character, 
5705 \begin_inset Quotes eld
5706 \end_inset
5707
5708  ̂
5709 \begin_inset Quotes erd
5710 \end_inset
5711
5712 .
5713  You could bind the 
5714 \begin_inset Flex Noun
5715 status collapsed
5716
5717 \begin_layout Plain Layout
5718 ^
5719 \end_layout
5720
5721 \end_inset
5722
5723 -key [a.k.a.
5724 \begin_inset space ~
5725 \end_inset
5726
5727
5728 \begin_inset Flex Noun
5729 status collapsed
5730
5731 \begin_layout Plain Layout
5732 Shift-6
5733 \end_layout
5734
5735 \end_inset
5736
5737 ] to the \SpecialChar LyX
5738  command 
5739 \begin_inset Flex Code
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 accent-circumflex
5744 \end_layout
5745
5746 \end_inset
5747
5748  in your 
5749 \begin_inset Flex Code
5750 status collapsed
5751
5752 \begin_layout Plain Layout
5753 lyxrc
5754 \end_layout
5755
5756 \end_inset
5757
5758  file.
5759  Now, whenever you type the 
5760 \begin_inset Flex Noun
5761 status collapsed
5762
5763 \begin_layout Plain Layout
5764 ^
5765 \end_layout
5766
5767 \end_inset
5768
5769 -key followed by a letter, that letter will have a circumflex accent on
5770  it.
5771  For example, the sequence 
5772 \begin_inset Quotes eld
5773 \end_inset
5774
5775
5776 \begin_inset Flex Noun
5777 status collapsed
5778
5779 \begin_layout Plain Layout
5780 ^e
5781 \end_layout
5782
5783 \end_inset
5784
5785
5786 \begin_inset Quotes erd
5787 \end_inset
5788
5789  produces the letter: 
5790 \begin_inset Quotes eld
5791 \end_inset
5792
5793 ê
5794 \begin_inset Quotes erd
5795 \end_inset
5796
5797 .
5798  If you tried to type 
5799 \begin_inset Quotes eld
5800 \end_inset
5801
5802
5803 \begin_inset Flex Noun
5804 status collapsed
5805
5806 \begin_layout Plain Layout
5807 ^t
5808 \end_layout
5809
5810 \end_inset
5811
5812
5813 \begin_inset Quotes erd
5814 \end_inset
5815
5816 , however, \SpecialChar LyX
5817  will complain with a beep, since a 
5818 \begin_inset Quotes eld
5819 \end_inset
5820
5821
5822 \begin_inset Flex Noun
5823 status collapsed
5824
5825 \begin_layout Plain Layout
5826 t
5827 \end_layout
5828
5829 \end_inset
5830
5831
5832 \begin_inset Quotes erd
5833 \end_inset
5834
5835  never takes a circumflex accent.
5836  Hitting 
5837 \begin_inset Flex Noun
5838 status collapsed
5839
5840 \begin_layout Plain Layout
5841 Space
5842 \end_layout
5843
5844 \end_inset
5845
5846  after a dead-key produces the bare-accent.
5847  Please note this last point! If you bind a key to a dead-key, you'll need
5848  to rebind the character on that key to yet another key.
5849  Binding the 
5850 \begin_inset Flex Noun
5851 status collapsed
5852
5853 \begin_layout Plain Layout
5854 ,-key
5855 \end_layout
5856
5857 \end_inset
5858
5859  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5860 \end_layout
5861
5862 \begin_layout Standard
5863 One common way to bind dead-keys is to use 
5864 \begin_inset Flex Noun
5865 status collapsed
5866
5867 \begin_layout Plain Layout
5868 Meta-
5869 \end_layout
5870
5871 \end_inset
5872
5873
5874 \begin_inset Flex Noun
5875 status collapsed
5876
5877 \begin_layout Plain Layout
5878 Ctrl-
5879 \end_layout
5880
5881 \end_inset
5882
5883 , and 
5884 \begin_inset Flex Noun
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 Shift-
5889 \end_layout
5890
5891 \end_inset
5892
5893  in combination with an accent, like 
5894 \begin_inset Quotes eld
5895 \end_inset
5896
5897
5898 \begin_inset Flex Noun
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902 ~
5903 \end_layout
5904
5905 \end_inset
5906
5907
5908 \begin_inset Quotes erd
5909 \end_inset
5910
5911  or 
5912 \begin_inset Quotes eld
5913 \end_inset
5914
5915
5916 \begin_inset Flex Noun
5917 status collapsed
5918
5919 \begin_layout Plain Layout
5920 ,
5921 \end_layout
5922
5923 \end_inset
5924
5925
5926 \begin_inset Quotes erd
5927 \end_inset
5928
5929  or 
5930 \begin_inset Quotes eld
5931 \end_inset
5932
5933
5934 \begin_inset Flex Noun
5935 status collapsed
5936
5937 \begin_layout Plain Layout
5938 ^
5939 \end_layout
5940
5941 \end_inset
5942
5943
5944 \begin_inset Quotes erd
5945 \end_inset
5946
5947 .
5948  Another way involves using 
5949 \begin_inset Flex Code
5950 status collapsed
5951
5952 \begin_layout Plain Layout
5953 xmodmap
5954 \end_layout
5955
5956 \end_inset
5957
5958  and 
5959 \begin_inset Flex Code
5960 status collapsed
5961
5962 \begin_layout Plain Layout
5963 xkeycaps
5964 \end_layout
5965
5966 \end_inset
5967
5968  to set up the special 
5969 \begin_inset Flex Code
5970 status collapsed
5971
5972 \begin_layout Plain Layout
5973 Mode_Switch
5974 \end_layout
5975
5976 \end_inset
5977
5978  key.
5979  The 
5980 \begin_inset Flex Code
5981 status collapsed
5982
5983 \begin_layout Plain Layout
5984 Mode_Switch
5985 \end_layout
5986
5987 \end_inset
5988
5989  acts in some ways just like 
5990 \begin_inset Flex Noun
5991 status collapsed
5992
5993 \begin_layout Plain Layout
5994 Shift
5995 \end_layout
5996
5997 \end_inset
5998
5999  and permits you to bind keys to accented characters.
6000  You can also turn keys into dead-keys by binding them to something like
6001  
6002 \begin_inset Flex Code
6003 status collapsed
6004
6005 \begin_layout Plain Layout
6006 usldead_cedilla
6007 \end_layout
6008
6009 \end_inset
6010
6011  and then binding this symbolic key to the corresponding \SpecialChar LyX
6012  command.
6013 \begin_inset Foot
6014 status collapsed
6015
6016 \begin_layout Plain Layout
6017 Note from 
6018 \noun on
6019 John Weiss
6020 \noun default
6021 : This is exactly what I do in my 
6022 \begin_inset Flex Code
6023 status collapsed
6024
6025 \begin_layout Plain Layout
6026 ~/.lyx/lyxrc
6027 \end_layout
6028
6029 \end_inset
6030
6031  and my 
6032 \begin_inset Flex Code
6033 status collapsed
6034
6035 \begin_layout Plain Layout
6036 ~/.xmodmap
6037 \end_layout
6038
6039 \end_inset
6040
6041  files.
6042  I have my 
6043 \begin_inset Flex Noun
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 Scroll
6048 \begin_inset space ~
6049 \end_inset
6050
6051 Lock
6052 \end_layout
6053
6054 \end_inset
6055
6056  key set up as 
6057 \begin_inset Flex Code
6058 status collapsed
6059
6060 \begin_layout Plain Layout
6061 Mode_Shift
6062 \end_layout
6063
6064 \end_inset
6065
6066  and a bunch of these 
6067 \begin_inset Quotes eld
6068 \end_inset
6069
6070
6071 \begin_inset Flex Code
6072 status collapsed
6073
6074 \begin_layout Plain Layout
6075 usldead_*
6076 \end_layout
6077
6078 \end_inset
6079
6080
6081 \begin_inset Quotes erd
6082 \end_inset
6083
6084  symbolic keys bound such things as 
6085 \begin_inset Flex Noun
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 Scroll
6090 \begin_inset space ~
6091 \end_inset
6092
6093 Lock-^
6094 \end_layout
6095
6096 \end_inset
6097
6098  and 
6099 \begin_inset Flex Noun
6100 status collapsed
6101
6102 \begin_layout Plain Layout
6103 Scroll
6104 \begin_inset space ~
6105 \end_inset
6106
6107 Lock-~
6108 \end_layout
6109
6110 \end_inset
6111
6112 .
6113  This is how I produce my accented characters.
6114 \end_layout
6115
6116 \end_inset
6117
6118  You can make just about anything into the 
6119 \begin_inset Flex Code
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 Mode_Switch
6124 \end_layout
6125
6126 \end_inset
6127
6128  key: One of the 
6129 \begin_inset Flex Noun
6130 status collapsed
6131
6132 \begin_layout Plain Layout
6133 Ctrl-
6134 \end_layout
6135
6136 \end_inset
6137
6138  keys, a spare function key, etc.
6139  As for the \SpecialChar LyX
6140  commands that produce accents, check the entry for 
6141 \begin_inset Flex Code
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145 accent-acute
6146 \end_layout
6147
6148 \end_inset
6149
6150  in the 
6151 \emph on
6152 Reference Manual
6153 \emph default
6154 .
6155  You'll find the complete list there.
6156 \end_layout
6157
6158 \begin_layout Subsection
6159 Saving your Language Configuration
6160 \end_layout
6161
6162 \begin_layout Standard
6163 You can edit your preferences so that your desired language environment
6164  is automatically configured when \SpecialChar LyX
6165  starts up, via the 
6166 \begin_inset Flex Noun
6167 status collapsed
6168
6169 \begin_layout Plain Layout
6170 Edit\SpecialChar menuseparator
6171 Preferences
6172 \end_layout
6173
6174 \end_inset
6175
6176  dialog.
6177 \end_layout
6178
6179 \begin_layout Chapter
6180
6181 \change_inserted -584632292 1610232084
6182 Creating and 
6183 \change_unchanged
6184 Installing New Document Classes, Layouts, and Templates
6185 \begin_inset CommandInset label
6186 LatexCommand label
6187 name "cha:Installing-New-Document"
6188
6189 \end_inset
6190
6191
6192 \begin_inset Argument 1
6193 status collapsed
6194
6195 \begin_layout Plain Layout
6196 Installing New Document Classes
6197 \end_layout
6198
6199 \end_inset
6200
6201
6202 \end_layout
6203
6204 \begin_layout Standard
6205 In this chapter, we describe the procedures for creating and installing
6206  new \SpecialChar LyX
6207  layout and template files, as well as offer a refresher on correctly
6208  installing new \SpecialChar LaTeX
6209  document classes.
6210  
6211 \end_layout
6212
6213 \begin_layout Standard
6214 First, let us a say a few words about how one ought to think about the relation
6215  between \SpecialChar LyX
6216  and \SpecialChar LaTeX
6217 .
6218  The thing to understand is that, in a certain sense, \SpecialChar LyX
6219  doesn't know anything
6220  about \SpecialChar LaTeX
6221 .
6222  Indeed, from \SpecialChar LyX
6223 's point of view, \SpecialChar LaTeX
6224  is just one of several 
6225 \begin_inset Quotes eld
6226 \end_inset
6227
6228 backend formats
6229 \begin_inset Quotes erd
6230 \end_inset
6231
6232  in which it is capable of producing output.
6233  Other such formats are DocBook, plaintext, and XHTML.
6234  \SpecialChar LaTeX
6235  is, of course, a particularly important format, but very little of the
6236  information \SpecialChar LyX
6237  has about \SpecialChar LaTeX
6238  is actually contained in the program itself.
6239 \begin_inset Foot
6240 status collapsed
6241
6242 \begin_layout Plain Layout
6243 Some commands are sufficiently complex that they are 
6244 \begin_inset Quotes eld
6245 \end_inset
6246
6247 hardcoded
6248 \begin_inset Quotes erd
6249 \end_inset
6250
6251  into \SpecialChar LyX
6252 .
6253  But the developers generally regard this as a Bad Thing.
6254 \end_layout
6255
6256 \end_inset
6257
6258  Rather, that information, even for the standard classes like 
6259 \begin_inset Flex Code
6260 status collapsed
6261
6262 \begin_layout Plain Layout
6263 article.cls
6264 \end_layout
6265
6266 \end_inset
6267
6268 , is contained in `layout files'.
6269  Similarly, \SpecialChar LyX
6270  itself does not know much about DocBook or XHTML.
6271  What it knows is contained in layout files.
6272 \end_layout
6273
6274 \begin_layout Standard
6275 You can think of the layout file for a given document class as a translation
6276  manual between \SpecialChar LyX
6277  constructs—paragraphs with their corresponding styles,
6278  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6279 , DocBook, or XHTML
6280  constructs.
6281  Almost everything \SpecialChar LyX
6282  knows about 
6283 \begin_inset Flex Code
6284 status collapsed
6285
6286 \begin_layout Plain Layout
6287 article.cls
6288 \end_layout
6289
6290 \end_inset
6291
6292 , for example, is contained in the file 
6293 \begin_inset Flex Code
6294 status collapsed
6295
6296 \begin_layout Plain Layout
6297 article.layout
6298 \end_layout
6299
6300 \end_inset
6301
6302  and in various other files it includes.
6303  For this reason, anyone intending to write layout files should plan to
6304  study the existing files.
6305  A good place to start is with 
6306 \begin_inset Flex Code
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 stdsections.inc
6311 \end_layout
6312
6313 \end_inset
6314
6315 , which is included in 
6316 \begin_inset Flex Code
6317 status collapsed
6318
6319 \begin_layout Plain Layout
6320 article.layout
6321 \end_layout
6322
6323 \end_inset
6324
6325
6326 \begin_inset Flex Code
6327 status collapsed
6328
6329 \begin_layout Plain Layout
6330 book.layout
6331 \end_layout
6332
6333 \end_inset
6334
6335 , and many of the other layout files for document classes.
6336  This file is where sections and the like are defined: 
6337 \begin_inset Flex Code
6338 status collapsed
6339
6340 \begin_layout Plain Layout
6341 stdsections.inc
6342 \end_layout
6343
6344 \end_inset
6345
6346  tells \SpecialChar LyX
6347  how paragraphs that are marked with the Section, Subsection, etc,
6348  styles can be translated into corresponding \SpecialChar LaTeX
6349 , DocBook, and XHTML commands
6350  and tags.
6351  The 
6352 \begin_inset Flex Code
6353 status collapsed
6354
6355 \begin_layout Plain Layout
6356 article.layout
6357 \end_layout
6358
6359 \end_inset
6360
6361  file basically just includes several of these 
6362 \begin_inset Flex Code
6363 status collapsed
6364
6365 \begin_layout Plain Layout
6366 std*.inc
6367 \end_layout
6368
6369 \end_inset
6370
6371  files.
6372 \end_layout
6373
6374 \begin_layout Standard
6375 Defining the \SpecialChar LyX
6376 –\SpecialChar LaTeX
6377  correspondence is not the only thing layout files do, though.
6378  Their other job is to define how the \SpecialChar LyX
6379  constructs themselves will appear
6380  on-screen.
6381  The fact that layout files have these two jobs is often a source of confusion,
6382  because they are completely separate.
6383  Telling \SpecialChar LyX
6384  how to translate a certain paragraph style into \SpecialChar LaTeX
6385  does not tell
6386  \SpecialChar LyX
6387  how to display it; conversely, telling \SpecialChar LyX
6388  how to display a certain paragraph
6389  style does not tell \SpecialChar LyX
6390  how to translate it into \SpecialChar LaTeX
6391  (let alone tell \SpecialChar LaTeX
6392  how to
6393  display it).
6394  So, in general, when you define a new \SpecialChar LyX
6395  construct, you must always do two
6396  quite separate things: (i)
6397 \begin_inset space ~
6398 \end_inset
6399
6400 tell \SpecialChar LyX
6401  how to translate it into \SpecialChar LaTeX
6402  and (ii)
6403 \begin_inset space ~
6404 \end_inset
6405
6406 tell \SpecialChar LyX
6407  how to display it.
6408 \end_layout
6409
6410 \begin_layout Standard
6411 Much the same is true, of course, as regards \SpecialChar LyX
6412 's other backend formats, though
6413  XHTML is in some ways different, because in that case \SpecialChar LyX
6414  
6415 \emph on
6416 is
6417 \emph default
6418  able, to some extent, to use information about how it should display a
6419  paragraph on the screen to output information (in the form of CSS) about
6420  how the paragraph should be displayed in a browser.
6421  Even in this case, however, the distinction between what \SpecialChar LyX
6422  does internally
6423  and how things are rendered externally remains in force, and the two can
6424  be controlled separately.
6425  See 
6426 \begin_inset CommandInset ref
6427 LatexCommand ref
6428 reference "sec:Tags-for-XHTML"
6429
6430 \end_inset
6431
6432  for the details.
6433 \end_layout
6434
6435 \begin_layout Section
6436 Installing new \SpecialChar LaTeX
6437  files
6438 \end_layout
6439
6440 \begin_layout Standard
6441 Some installations may not include a \SpecialChar LaTeX
6442  package or class file that you would
6443  like to use within \SpecialChar LyX
6444 .
6445  For example, you might need Foil\SpecialChar TeX
6446 , a package for preparing slides for overhead
6447  projectors.
6448  Modern \SpecialChar LaTeX
6449  distributions like \SpecialChar TeX
6450 Live (2008 or newer) or MiK\SpecialChar TeX
6451  provide a user interface
6452  for installing such packages.
6453  For example, with MiK\SpecialChar TeX
6454 , you start the program 
6455 \begin_inset Quotes eld
6456 \end_inset
6457
6458 Package
6459 \begin_inset space ~
6460 \end_inset
6461
6462 Manager
6463 \begin_inset Quotes erd
6464 \end_inset
6465
6466  to get a list of available packages.
6467  To install one of them, right click on it or use the corresponding toolbar
6468  button.
6469 \end_layout
6470
6471 \begin_layout Standard
6472 If your \SpecialChar LaTeX
6473  distribution does not provide such a `package manager', or if the
6474  package is not available from your distribution, then follow these steps
6475  to install it manually:
6476 \end_layout
6477
6478 \begin_layout Enumerate
6479 Get the package from 
6480 \begin_inset CommandInset href
6481 LatexCommand href
6482 name "CTAN"
6483 target "http://www.ctan.org/"
6484 literal "false"
6485
6486 \end_inset
6487
6488  or wherever.
6489 \end_layout
6490
6491 \begin_layout Enumerate
6492 If the package contains a file with the ending 
6493 \begin_inset Quotes eld
6494 \end_inset
6495
6496
6497 \begin_inset Flex Code
6498 status collapsed
6499
6500 \begin_layout Plain Layout
6501 .ins
6502 \end_layout
6503
6504 \end_inset
6505
6506
6507 \begin_inset Quotes erd
6508 \end_inset
6509
6510  (is the case for Foil\SpecialChar TeX
6511 ) then open a console, change to the folder of this
6512  file and execute the command 
6513 \begin_inset Flex Code
6514 status collapsed
6515
6516 \begin_layout Plain Layout
6517 latex foiltex.ins
6518 \end_layout
6519
6520 \end_inset
6521
6522 .
6523  You have now unpacked the package and have all files to install it.
6524  Most \SpecialChar LaTeX
6525 -packages are not packed and you can skip this step.
6526 \end_layout
6527
6528 \begin_layout Enumerate
6529 Now you need to decide if the package should be available for all users
6530  or only for you.
6531 \end_layout
6532
6533 \begin_deeper
6534 \begin_layout Enumerate
6535 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6536  for all users on your system, then install it in your `local' \SpecialChar TeX
6537  tree, otherwise
6538  install it in your own `user' \SpecialChar TeX
6539  tree.
6540  Where these trees should be created, if they do not already exist, depends
6541  on your system.
6542  To find this out, look in the file 
6543 \begin_inset Flex Code
6544 status collapsed
6545
6546 \begin_layout Plain Layout
6547 texmf.cnf
6548 \end_layout
6549
6550 \end_inset
6551
6552 .
6553 \begin_inset Foot
6554 status collapsed
6555
6556 \begin_layout Plain Layout
6557 This is usually in the directory 
6558 \begin_inset Flex Code
6559 status collapsed
6560
6561 \begin_layout Plain Layout
6562 $TEXMF/web2c
6563 \end_layout
6564
6565 \end_inset
6566
6567 , though you can execute the command 
6568 \begin_inset Flex Code
6569 status collapsed
6570
6571 \begin_layout Plain Layout
6572 kpsewhich texmf.cnf
6573 \end_layout
6574
6575 \end_inset
6576
6577  to locate it.
6578 \end_layout
6579
6580 \end_inset
6581
6582  The location of the `local' \SpecialChar TeX
6583  tree is defined by the 
6584 \begin_inset Flex Code
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588 TEXMFLOCAL
6589 \end_layout
6590
6591 \end_inset
6592
6593  variable; this is usually somewhere like 
6594 \begin_inset Flex Code
6595 status collapsed
6596
6597 \begin_layout Plain Layout
6598 /usr/local/share/texmf
6599 \end_layout
6600
6601 \end_inset
6602
6603  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6604 Live
6605  distribution.
6606  The location of the `user' \SpecialChar TeX
6607  tree is defined by 
6608 \begin_inset Flex Code
6609 status collapsed
6610
6611 \begin_layout Plain Layout
6612 TEXMFHOME
6613 \end_layout
6614
6615 \end_inset
6616
6617  and is commonly 
6618 \begin_inset Flex Code
6619 status collapsed
6620
6621 \begin_layout Plain Layout
6622 $HOME/texmf
6623 \end_layout
6624
6625 \end_inset
6626
6627  or 
6628 \begin_inset Flex Code
6629 status collapsed
6630
6631 \begin_layout Plain Layout
6632
6633 \family sans
6634 $HOME/.texliveXXXX
6635 \end_layout
6636
6637 \end_inset
6638
6639 .
6640  (If these variables are not predefined, you have to define them.) You'll
6641  probably need root permissions to create or modify the `local' tree, but
6642  not for your `user' tree.
6643 \begin_inset Newline newline
6644 \end_inset
6645
6646 In general, it is recommended to install in the user tree because your user
6647  will not be modified or even overwritten when you upgrade your system.
6648  It will typically also be backed up together with everything else when
6649  you backup your home directory (which, of course, you do on a regular basis).
6650 \end_layout
6651
6652 \begin_layout Enumerate
6653 On Windows, if you want the new package to be available for all users on
6654  your system, change to the folder where \SpecialChar LaTeX
6655  is installed and then change to
6656  the subfolder 
6657 \begin_inset Flex Code
6658 status collapsed
6659
6660 \begin_layout Plain Layout
6661 ~
6662 \backslash
6663 tex
6664 \backslash
6665 latex
6666 \end_layout
6667
6668 \end_inset
6669
6670 .
6671  (For MiK\SpecialChar TeX
6672 , this would be by default the folder 
6673 \begin_inset Flex Code
6674 status collapsed
6675
6676 \begin_layout Plain Layout
6677 ~:
6678 \backslash
6679 Programs
6680 \backslash
6681 MiKTeX
6682 \backslash
6683 tex
6684 \backslash
6685 latex
6686 \end_layout
6687
6688 \end_inset
6689
6690 .)
6691 \begin_inset Foot
6692 status collapsed
6693
6694 \begin_layout Plain Layout
6695 Note that this will be the correct path only on English installations.
6696  On a German one, it would be 
6697 \begin_inset Flex Code
6698 status collapsed
6699
6700 \begin_layout Plain Layout
6701 ~:
6702 \backslash
6703 Programme
6704 \backslash
6705 MiKTeX
6706 \backslash
6707 tex
6708 \backslash
6709 latex
6710 \end_layout
6711
6712 \end_inset
6713
6714 , and similarly for other languages.
6715 \end_layout
6716
6717 \end_inset
6718
6719  Create there a new folder 
6720 \begin_inset Flex Code
6721 status collapsed
6722
6723 \begin_layout Plain Layout
6724 foiltex
6725 \end_layout
6726
6727 \end_inset
6728
6729  and copy all files of the package into it.
6730  
6731 \begin_inset Newline newline
6732 \end_inset
6733
6734 If the package should only available for you or you don't have admin permissions
6735 , do the same, but in the local \SpecialChar LaTeX
6736  folder.
6737  E.
6738 \begin_inset space \thinspace{}
6739 \end_inset
6740
6741 g., for MiK\SpecialChar TeX
6742
6743 \begin_inset space ~
6744 \end_inset
6745
6746 2.8 under Windows XP, this would be the folder:
6747 \begin_inset Newline newline
6748 \end_inset
6749
6750
6751 \family sans
6752
6753 \begin_inset Flex Code
6754 status collapsed
6755
6756 \begin_layout Plain Layout
6757 ~:
6758 \backslash
6759 Documents and Settings
6760 \backslash
6761 <username>
6762 \backslash
6763 Application Data
6764 \backslash
6765
6766 \end_layout
6767
6768 \end_inset
6769
6770
6771 \begin_inset Newline newline
6772 \end_inset
6773
6774
6775 \family default
6776
6777 \begin_inset Phantom HPhantom
6778 status open
6779
6780 \begin_layout Plain Layout
6781
6782 \family sans
6783 ~:
6784 \backslash
6785
6786 \end_layout
6787
6788 \end_inset
6789
6790
6791 \begin_inset Flex Code
6792 status collapsed
6793
6794 \begin_layout Plain Layout
6795 MiKTeX
6796 \backslash
6797 2.8
6798 \backslash
6799 tex
6800 \backslash
6801 latex
6802 \end_layout
6803
6804 \end_inset
6805
6806
6807 \begin_inset Newline newline
6808 \end_inset
6809
6810 On Vista, it would be:
6811 \begin_inset Newline newline
6812 \end_inset
6813
6814
6815 \begin_inset Flex Code
6816 status collapsed
6817
6818 \begin_layout Plain Layout
6819 ~:
6820 \backslash
6821 Users
6822 \backslash
6823 <username>
6824 \backslash
6825 AppData
6826 \backslash
6827 Roaming
6828 \backslash
6829 2.8
6830 \backslash
6831 MiKTeX
6832 \backslash
6833 tex
6834 \backslash
6835 latex
6836 \end_layout
6837
6838 \end_inset
6839
6840
6841 \end_layout
6842
6843 \end_deeper
6844 \begin_layout Enumerate
6845 Now one only need to tell \SpecialChar LaTeX
6846  that there are new files.
6847  This depends on the used \SpecialChar LaTeX
6848 -Distribution:
6849 \end_layout
6850
6851 \begin_deeper
6852 \begin_layout Enumerate
6853 For \SpecialChar TeX
6854 Live execute the command 
6855 \begin_inset Flex Code
6856 status collapsed
6857
6858 \begin_layout Plain Layout
6859 texhash
6860 \end_layout
6861
6862 \end_inset
6863
6864  from a console.
6865  If you installed the package for all users, then you will probably need
6866  to have root permissions for that.
6867 \end_layout
6868
6869 \begin_layout Enumerate
6870 For MiK\SpecialChar TeX
6871 , if you have installed the package for all users, start the program
6872  
6873 \begin_inset Quotes eld
6874 \end_inset
6875
6876 Settings
6877 \begin_inset space ~
6878 \end_inset
6879
6880 (Admin)
6881 \begin_inset Quotes erd
6882 \end_inset
6883
6884  and press the button marked 
6885 \begin_inset Quotes eld
6886 \end_inset
6887
6888 Refresh FNDB
6889 \begin_inset Quotes erd
6890 \end_inset
6891
6892 .
6893  Otherwise start the program 
6894 \begin_inset Quotes eld
6895 \end_inset
6896
6897 Settings
6898 \begin_inset Quotes erd
6899 \end_inset
6900
6901  and do the same.
6902 \end_layout
6903
6904 \end_deeper
6905 \begin_layout Enumerate
6906 Finally, you need to tell \SpecialChar LyX
6907  that there are new packages available.
6908  So, in \SpecialChar LyX
6909 , use the menu 
6910 \begin_inset Flex Noun
6911 status collapsed
6912
6913 \begin_layout Plain Layout
6914 Tools
6915 \family sans
6916 \SpecialChar menuseparator
6917 Reconfigure
6918 \end_layout
6919
6920 \end_inset
6921
6922  and then restart \SpecialChar LyX
6923 .
6924 \end_layout
6925
6926 \begin_layout Standard
6927 Now the package is installed.
6928  In our example, the document class 
6929 \begin_inset Flex Code
6930 status collapsed
6931
6932 \begin_layout Plain Layout
6933 FoilTex
6934 \end_layout
6935
6936 \end_inset
6937
6938  will now be available under 
6939 \begin_inset Flex Noun
6940 status collapsed
6941
6942 \begin_layout Plain Layout
6943 Document\SpecialChar menuseparator
6944 Settings\SpecialChar menuseparator
6945 Document Class
6946 \end_layout
6947
6948 \end_inset
6949
6950  (in the 
6951 \begin_inset Quotes eld
6952 \end_inset
6953
6954 Presentations
6955 \begin_inset Quotes erd
6956 \end_inset
6957
6958  category).
6959  
6960 \end_layout
6961
6962 \begin_layout Standard
6963 If you would like to use a \SpecialChar LaTeX
6964  document class that is not even listed in the
6965  menu 
6966 \begin_inset Flex Noun
6967 status collapsed
6968
6969 \begin_layout Plain Layout
6970 Document\SpecialChar menuseparator
6971 Settings\SpecialChar menuseparator
6972 Document Class
6973 \end_layout
6974
6975 \end_inset
6976
6977 , then you need to create a `layout' file for it.
6978  That is the topic of the next section.
6979 \end_layout
6980
6981 \begin_layout Section
6982 Types of layout files
6983 \end_layout
6984
6985 \begin_layout Standard
6986 This section describes the various sorts of \SpecialChar LyX
6987  files that contain layout informati
6988 on.
6989  These files describe various paragraph and character styles, determining
6990  how \SpecialChar LyX
6991  should display them and how they should be translated into \SpecialChar LaTeX
6992 , DocBook,
6993  XHTML, or whatever output format is being used.
6994  
6995 \end_layout
6996
6997 \begin_layout Standard
6998 We shall try to provide a thorough description of the process of writing
6999  layout files here.
7000  However, there are so many different types of documents supported even
7001  by just \SpecialChar LaTeX
7002  that we can't hope to cover every different possibility or problem
7003  you might encounter.
7004  The \SpecialChar LyX
7005  users' list is frequented by people with lots of experience with layout
7006  design who are willing to share what they've learned, so please feel free
7007  to ask questions there.
7008 \end_layout
7009
7010 \begin_layout Standard
7011 As you prepare to write a new layout, it is extremely helpful to look at
7012  the layouts distributed with \SpecialChar LyX
7013 .
7014  If you write a \SpecialChar LyX
7015  layout for a \SpecialChar LaTeX
7016  document class that might also be used by
7017  others, or write a module that might be useful to others, then you should
7018  consider posting your layout to the 
7019 \begin_inset CommandInset href
7020 LatexCommand href
7021 name "layout section on the LyX wiki"
7022 target "https://wiki.lyx.org/Layouts/Layouts"
7023 literal "false"
7024
7025 \end_inset
7026
7027  or even to the \SpecialChar LyX
7028  developers' list, so that it might be included in \SpecialChar LyX
7029  itself.
7030 \begin_inset Foot
7031 status collapsed
7032
7033 \begin_layout Plain Layout
7034 Note that \SpecialChar LyX
7035  is licensed under the General Public License, so any material
7036  that is contributed to \SpecialChar LyX
7037  must be similarly licensed.
7038 \end_layout
7039
7040 \end_inset
7041
7042
7043 \end_layout
7044
7045 \begin_layout Subsection
7046 Layout modules
7047 \begin_inset CommandInset label
7048 LatexCommand label
7049 name "subsec:Layout-modules"
7050
7051 \end_inset
7052
7053
7054 \end_layout
7055
7056 \begin_layout Standard
7057 We have spoken to this point about `layout files'.
7058  But there are different sorts of files that contain layout information.
7059  Layout files, strictly so called, have the 
7060 \begin_inset Flex Code
7061 status collapsed
7062
7063 \begin_layout Plain Layout
7064 .layout
7065 \end_layout
7066
7067 \end_inset
7068
7069  extension and provide \SpecialChar LyX
7070  with information about document classes.
7071  Since \SpecialChar LyX
7072  1.6 layout information can also be contained in layout 
7073 \emph on
7074 modules
7075 \emph default
7076 , which have the 
7077 \begin_inset Flex Code
7078 status collapsed
7079
7080 \begin_layout Plain Layout
7081 .module
7082 \end_layout
7083
7084 \end_inset
7085
7086  extension.
7087  Modules are to \SpecialChar LaTeX
7088  packages much as layouts are to \SpecialChar LaTeX
7089  classes, and some modules—such
7090  as the 
7091 \begin_inset Flex Code
7092 status collapsed
7093
7094 \begin_layout Plain Layout
7095 endnotes
7096 \end_layout
7097
7098 \end_inset
7099
7100  module—specifically provide support for one package.
7101  In a sense, layout modules are similar to included
7102 \begin_inset Foot
7103 status collapsed
7104
7105 \begin_layout Plain Layout
7106 These can have any extension, but by convention have the 
7107 \begin_inset Flex Code
7108 status collapsed
7109
7110 \begin_layout Plain Layout
7111 .inc
7112 \end_layout
7113
7114 \end_inset
7115
7116  extension.
7117 \end_layout
7118
7119 \end_inset
7120
7121  files—files like 
7122 \begin_inset Flex Code
7123 status collapsed
7124
7125 \begin_layout Plain Layout
7126 stdsections.inc
7127 \end_layout
7128
7129 \end_inset
7130
7131 —in that modules are not specific to a given document class but may be used
7132  with many different classes.
7133  The difference is that using an included file with 
7134 \begin_inset Flex Code
7135 status collapsed
7136
7137 \begin_layout Plain Layout
7138 article.cls
7139 \end_layout
7140
7141 \end_inset
7142
7143  requires editing that file.
7144  Modules, by contrast, are selected in the 
7145 \begin_inset Flex Noun
7146 status collapsed
7147
7148 \begin_layout Plain Layout
7149 Document\SpecialChar menuseparator
7150 Settings
7151 \end_layout
7152
7153 \end_inset
7154
7155  dialog.
7156 \end_layout
7157
7158 \begin_layout Standard
7159 Building modules is the easiest way to get started with layout editing,
7160  since it can be as simple as adding a single new paragraph style or flex
7161  inset.
7162  But modules may, in principle, contain anything a layout file can contain.
7163 \end_layout
7164
7165 \begin_layout Standard
7166 After creating a new module and copying it to the 
7167 \begin_inset Flex Code
7168 status collapsed
7169
7170 \begin_layout Plain Layout
7171 layouts/
7172 \end_layout
7173
7174 \end_inset
7175
7176  folder, you will need to reconfigure and then restart \SpecialChar LyX
7177  for the module to
7178  appear in the menu.
7179  However, changes you make to the module will be seen immediately, if you
7180  open 
7181 \begin_inset Flex Noun
7182 status collapsed
7183
7184 \begin_layout Plain Layout
7185 Document\SpecialChar menuseparator
7186 Settings
7187 \end_layout
7188
7189 \end_inset
7190
7191 , highlight something, and then hit 
7192 \begin_inset Quotes eld
7193 \end_inset
7194
7195 OK
7196 \begin_inset Quotes erd
7197 \end_inset
7198
7199 .
7200  
7201 \emph on
7202 It is strongly recommended that you save your work before doing this
7203 \emph default
7204 .
7205  In fact, 
7206 \emph on
7207 it is strongly recommended that you not attempt to edit modules while simultaneo
7208 usly working on actual documents
7209 \emph default
7210 .
7211  Though of course the developers strive to keep \SpecialChar LyX
7212  stable in such situations,
7213  syntax errors and the like in your module file could cause strange behavior.
7214 \end_layout
7215
7216 \begin_layout Subsubsection
7217 Local Layout
7218 \end_layout
7219
7220 \begin_layout Standard
7221 Modules are to \SpecialChar LyX
7222  as packages are to \SpecialChar LaTeX
7223 .
7224  Sometimes, however, you find yourself wanting a specific inset or character
7225  style just for one document and writing a module that will also be available
7226  to other documents makes little sense.
7227  What you need is \SpecialChar LyX
7228 's 
7229 \begin_inset Quotes eld
7230 \end_inset
7231
7232 Local Layout
7233 \begin_inset Quotes erd
7234 \end_inset
7235
7236 .
7237 \end_layout
7238
7239 \begin_layout Standard
7240 You will find it under 
7241 \family sans
7242 Document\SpecialChar menuseparator
7243 Settings\SpecialChar menuseparator
7244 Local Layout
7245 \family default
7246 .
7247  The large text box allows you to enter anything that you might enter in
7248  a layout file or module.
7249  You can think of a document's local layout, in fact, as a module that belongs
7250  just to it.
7251  So, in particular, you must enter a 
7252 \begin_inset Flex Code
7253 status collapsed
7254
7255 \begin_layout Plain Layout
7256 Format
7257 \end_layout
7258
7259 \end_inset
7260
7261  tag.
7262  Any format is acceptable, but one would normally use the format current
7263  at the time.
7264  (In \SpecialChar LyX
7265  
7266 \begin_inset Info
7267 type  "lyxinfo"
7268 arg   "version"
7269 \end_inset
7270
7271 , the current layout format is 
7272 \begin_inset Info
7273 type  "lyxinfo"
7274 arg   "layoutformat"
7275 \end_inset
7276
7277 .)
7278 \end_layout
7279
7280 \begin_layout Standard
7281 When you have entered something in the 
7282 \begin_inset Flex Code
7283 status collapsed
7284
7285 \begin_layout Plain Layout
7286 Local Layout
7287 \end_layout
7288
7289 \end_inset
7290
7291  pane, \SpecialChar LyX
7292  will enable the 
7293 \begin_inset Quotes eld
7294 \end_inset
7295
7296 Validate
7297 \begin_inset Quotes erd
7298 \end_inset
7299
7300  button at the bottom.
7301  Clicking this button will cause \SpecialChar LyX
7302  to determine whether what you have entered
7303  is valid layout information for the chosen format.
7304  \SpecialChar LyX
7305  will report the result but, unfortunately, will not tell you what errors
7306  there might have been.
7307  These will be written to the terminal, however, if \SpecialChar LyX
7308  is started from a terminal.
7309  You will not be permitted to save your local layout until you have entered
7310  something valid.
7311 \end_layout
7312
7313 \begin_layout Standard
7314 The warnings at the end of the previous section apply here, too.
7315  Do not play with local layout while you are actually working, especially
7316  if you have not saved your document.
7317  That said, using local layout with a test document can be a very convenient
7318  way to try out layout ideas, or even to start developing a module.
7319 \end_layout
7320
7321 \begin_layout Subsection
7322 Layout for 
7323 \begin_inset Flex Noun
7324 status collapsed
7325
7326 \begin_layout Plain Layout
7327 .sty
7328 \end_layout
7329
7330 \end_inset
7331
7332  files
7333 \end_layout
7334
7335 \begin_layout Standard
7336 There are two situations you are likely to encounter when wanting to support
7337  a new \SpecialChar LaTeX
7338  document class, involving style (
7339 \begin_inset Flex Code
7340 status collapsed
7341
7342 \begin_layout Plain Layout
7343 .sty
7344 \end_layout
7345
7346 \end_inset
7347
7348 ) files and \SpecialChar LaTeX2e
7349  class (
7350 \begin_inset Flex Code
7351 status collapsed
7352
7353 \begin_layout Plain Layout
7354 .cls
7355 \end_layout
7356
7357 \end_inset
7358
7359 ) .
7360  Supporting a style file is usually fairly easy.
7361  Supporting a new class file is a bit harder.
7362  We'll discuss the former in this section and the latter in the next.
7363  
7364 \change_deleted 5863208 1594239023
7365 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7366 \change_unchanged
7367
7368 \end_layout
7369
7370 \begin_layout Standard
7371 The easier case is the one in which your new document class is provided
7372  as a style file that is to be used in conjunction with an already supported
7373  document class.
7374  For the sake of the example, we'll assume that the style file is called
7375  
7376 \begin_inset Flex Noun
7377 status collapsed
7378
7379 \begin_layout Plain Layout
7380 myclass.sty
7381 \end_layout
7382
7383 \end_inset
7384
7385  and that it is meant to be used with 
7386 \begin_inset Flex Noun
7387 status collapsed
7388
7389 \begin_layout Plain Layout
7390 report.cls
7391 \end_layout
7392
7393 \end_inset
7394
7395 , which is a standard class.
7396  
7397 \end_layout
7398
7399 \begin_layout Standard
7400 Start by copying the existing class's layout file into your local directory:
7401 \begin_inset Foot
7402 status collapsed
7403
7404 \begin_layout Plain Layout
7405 Of course, which directory is your local directory will vary by platform,
7406  and \SpecialChar LyX
7407  allows you to specify your local directory on startup, too, using
7408  the 
7409 \begin_inset Flex Code
7410 status collapsed
7411
7412 \begin_layout Plain Layout
7413 -userdir
7414 \end_layout
7415
7416 \end_inset
7417
7418  option.
7419 \end_layout
7420
7421 \end_inset
7422
7423
7424 \end_layout
7425
7426 \begin_layout LyX-Code
7427 cp report.layout ~/.lyx/layouts/myclass.layout
7428 \end_layout
7429
7430 \begin_layout Standard
7431 Then edit 
7432 \begin_inset Flex Code
7433 status collapsed
7434
7435 \begin_layout Plain Layout
7436 myclass.layout
7437 \end_layout
7438
7439 \end_inset
7440
7441  and change the line: 
7442 \end_layout
7443
7444 \begin_layout LyX-Code
7445
7446 \backslash
7447 DeclareLaTeXClass{Report (Standard Class)}
7448 \end_layout
7449
7450 \begin_layout Standard
7451 to read
7452 \end_layout
7453
7454 \begin_layout LyX-Code
7455
7456 \backslash
7457 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7458 \end_layout
7459
7460 \begin_layout Standard
7461 Then add:
7462 \end_layout
7463
7464 \begin_layout LyX-Code
7465 Preamble 
7466 \begin_inset Newline newline
7467 \end_inset
7468
7469     
7470 \backslash
7471 usepackage{myclass}
7472 \begin_inset Newline newline
7473 \end_inset
7474
7475 EndPreamble
7476 \end_layout
7477
7478 \begin_layout Standard
7479 near the top of the file.
7480 \end_layout
7481
7482 \begin_layout Standard
7483 Start \SpecialChar LyX
7484  and select 
7485 \begin_inset Flex Noun
7486 status collapsed
7487
7488 \begin_layout Plain Layout
7489 Tools\SpecialChar menuseparator
7490 Reconfigure
7491 \end_layout
7492
7493 \end_inset
7494
7495 .
7496  Then restart \SpecialChar LyX
7497  and try creating a new document.
7498  You should see "
7499 \begin_inset Flex Noun
7500 status collapsed
7501
7502 \begin_layout Plain Layout
7503 Report (My Class)
7504 \end_layout
7505
7506 \end_inset
7507
7508 " as a document class option in the 
7509 \begin_inset Flex Noun
7510 status collapsed
7511
7512 \begin_layout Plain Layout
7513 Document\SpecialChar menuseparator
7514 Settings
7515 \end_layout
7516
7517 \end_inset
7518
7519  dialog.
7520  It is likely that some of the sectioning commands and such in your new
7521  class will work differently from how they worked in the base class—
7522 \begin_inset Flex Code
7523 status collapsed
7524
7525 \begin_layout Plain Layout
7526 report
7527 \end_layout
7528
7529 \end_inset
7530
7531  in this example—so you can fiddle around with the settings for the different
7532  sections if you wish.
7533  The layout information for sections is contained in 
7534 \begin_inset Flex Code
7535 status collapsed
7536
7537 \begin_layout Plain Layout
7538 stdsections.inc
7539 \end_layout
7540
7541 \end_inset
7542
7543 , but you do not need to copy and change this file.
7544  Instead, you can simply add your changes to your layout file, after the
7545  line 
7546 \begin_inset Flex Code
7547 status collapsed
7548
7549 \begin_layout Plain Layout
7550 Input stdclass.inc
7551 \end_layout
7552
7553 \end_inset
7554
7555 , which itself includes 
7556 \begin_inset Flex Code
7557 status collapsed
7558
7559 \begin_layout Plain Layout
7560 stdsections.inc
7561 \end_layout
7562
7563 \end_inset
7564
7565 .
7566  For example, you might add these lines:
7567 \end_layout
7568
7569 \begin_layout LyX-Code
7570 Style Chapter
7571 \end_layout
7572
7573 \begin_layout LyX-Code
7574     Font
7575 \end_layout
7576
7577 \begin_layout LyX-Code
7578         Family Sans
7579 \end_layout
7580
7581 \begin_layout LyX-Code
7582     EndFont
7583 \end_layout
7584
7585 \begin_layout LyX-Code
7586 End
7587 \end_layout
7588
7589 \begin_layout Standard
7590 to change the font for chapter headings to sans-serif.
7591  This will override (or, in this case, add to) the existing declaration
7592  for the Chapter style.
7593  
7594 \end_layout
7595
7596 \begin_layout Standard
7597 Your new package may also provide commands or environments not present in
7598  the base class.
7599  In this case, you will want to add these to the layout file.
7600  See 
7601 \begin_inset CommandInset ref
7602 LatexCommand ref
7603 reference "sec:TextClass"
7604
7605 \end_inset
7606
7607  for information on how to do so.
7608 \end_layout
7609
7610 \begin_layout Standard
7611 If 
7612 \begin_inset Flex Noun
7613 status collapsed
7614
7615 \begin_layout Plain Layout
7616 myclass.sty
7617 \end_layout
7618
7619 \end_inset
7620
7621  can be used with several different document classes, and even if it cannot,
7622  you might find it easiest just to write a module that you can load with
7623  the base class.
7624  The simplest possible such module would be:
7625 \end_layout
7626
7627 \begin_layout LyX-Code
7628 #
7629 \backslash
7630 DeclareLyXModule{My Class} 
7631 \end_layout
7632
7633 \begin_layout LyX-Code
7634 #DescriptionBegin 
7635 \end_layout
7636
7637 \begin_layout LyX-Code
7638 #Support for myclass.sty.
7639 \end_layout
7640
7641 \begin_layout LyX-Code
7642 #DescriptionEnd
7643 \begin_inset Newline newline
7644 \end_inset
7645
7646
7647 \end_layout
7648
7649 \begin_layout LyX-Code
7650 Format 
7651 \begin_inset Info
7652 type  "lyxinfo"
7653 arg   "layoutformat"
7654 \end_inset
7655
7656
7657 \begin_inset Newline newline
7658 \end_inset
7659
7660
7661 \end_layout
7662
7663 \begin_layout LyX-Code
7664 Preamble
7665 \begin_inset Newline newline
7666 \end_inset
7667
7668     
7669 \backslash
7670 usepackage{myclass}
7671 \begin_inset Newline newline
7672 \end_inset
7673
7674 EndPreamble
7675 \end_layout
7676
7677 \begin_layout Standard
7678 A more complex module might modify the behavior of some existing constructs
7679  or define some new ones.
7680  Again, see 
7681 \begin_inset CommandInset ref
7682 LatexCommand ref
7683 reference "sec:TextClass"
7684
7685 \end_inset
7686
7687  for discussion.
7688 \end_layout
7689
7690 \begin_layout Subsection
7691 Layout for 
7692 \begin_inset Flex Noun
7693 status collapsed
7694
7695 \begin_layout Plain Layout
7696 .cls
7697 \end_layout
7698
7699 \end_inset
7700
7701  files
7702 \end_layout
7703
7704 \begin_layout Standard
7705 There are two possibilities here.
7706  One is that the class file is itself based upon an existing document class.
7707  For example, many thesis classes are based upon 
7708 \begin_inset Flex Noun
7709 status collapsed
7710
7711 \begin_layout Plain Layout
7712 book.cls
7713 \end_layout
7714
7715 \end_inset
7716
7717 .
7718  To see whether yours is, look for a line like
7719 \end_layout
7720
7721 \begin_layout LyX-Code
7722
7723 \backslash
7724 LoadClass{book}
7725 \end_layout
7726
7727 \begin_layout Standard
7728 in the file.
7729  If so, then you may proceed largely as in the previous section, though
7730  the 
7731 \begin_inset Flex Code
7732 status collapsed
7733
7734 \begin_layout Plain Layout
7735 Declare\SpecialChar LaTeX
7736 Class
7737 \end_layout
7738
7739 \end_inset
7740
7741  line will be different.
7742  If your new class is 
7743 \begin_inset Flex Code
7744 status collapsed
7745
7746 \begin_layout Plain Layout
7747 thesis
7748 \end_layout
7749
7750 \end_inset
7751
7752  and it is based upon 
7753 \begin_inset Flex Code
7754 status collapsed
7755
7756 \begin_layout Plain Layout
7757 book
7758 \end_layout
7759
7760 \end_inset
7761
7762 , then the line should read:
7763 \begin_inset Foot
7764 status collapsed
7765
7766 \begin_layout Plain Layout
7767 And it will be easiest if you save the file to 
7768 \begin_inset Flex Code
7769 status collapsed
7770
7771 \begin_layout Plain Layout
7772 thesis.layout
7773 \end_layout
7774
7775 \end_inset
7776
7777 : \SpecialChar LyX
7778  assumes that the document class has the same name as the layout file.
7779  
7780 \end_layout
7781
7782 \end_inset
7783
7784
7785 \end_layout
7786
7787 \begin_layout LyX-Code
7788
7789 \backslash
7790 DeclareLaTeXClass[thesis,book]{thesis}
7791 \end_layout
7792
7793 \begin_layout Standard
7794 If, on the other hand, the new class is not based upon an existing class,
7795  you will probably have to 
7796 \begin_inset Quotes eld
7797 \end_inset
7798
7799 roll your own
7800 \begin_inset Quotes erd
7801 \end_inset
7802
7803  layout.
7804  We strongly suggest copying an existing layout file which uses a similar
7805  \SpecialChar LaTeX
7806  class and then modifying it, if you can do so.
7807  At least use an existing file as a starting point so you can find out what
7808  items you need to worry about.
7809  Again, the specifics are covered below.
7810 \end_layout
7811
7812 \begin_layout Subsection
7813 Creating templates
7814 \begin_inset CommandInset label
7815 LatexCommand label
7816 name "subsec:Creating-Templates"
7817
7818 \end_inset
7819
7820
7821 \end_layout
7822
7823 \begin_layout Standard
7824 Once you have written a layout file for a new document class, you might
7825  want to consider writing a 
7826 \emph on
7827 template
7828 \emph default
7829  for it, too.
7830  A template acts as a kind of tutorial for your layout, showing how it might
7831  be used, though containing dummy content.
7832  You can of course look at the various templates included with \SpecialChar LyX
7833  for ideas.
7834 \end_layout
7835
7836 \begin_layout Standard
7837 Templates are created just like usual documents: using \SpecialChar LyX
7838 .
7839  The only difference is that usual documents contain all possible settings,
7840  including the font scheme and the paper size.
7841  Usually a user doesn't want a template to overwrite his preferred settings
7842  for such parameters.
7843  For that reason, the designer of a template should remove the corresponding
7844  commands like 
7845 \begin_inset Flex Code
7846 status collapsed
7847
7848 \begin_layout Plain Layout
7849
7850 \backslash
7851 font_roman
7852 \end_layout
7853
7854 \end_inset
7855
7856  or 
7857 \begin_inset Flex Code
7858 status collapsed
7859
7860 \begin_layout Plain Layout
7861
7862 \backslash
7863 papersize
7864 \end_layout
7865
7866 \end_inset
7867
7868  from the template \SpecialChar LyX
7869  file.
7870  This can be done with any simple text-editor, for example 
7871 \begin_inset Flex Code
7872 status collapsed
7873
7874 \begin_layout Plain Layout
7875 vi
7876 \end_layout
7877
7878 \end_inset
7879
7880  or 
7881 \begin_inset Flex Code
7882 status collapsed
7883
7884 \begin_layout Plain Layout
7885 notepad
7886 \end_layout
7887
7888 \end_inset
7889
7890 .
7891 \end_layout
7892
7893 \begin_layout Standard
7894 Put the edited template files you create in 
7895 \begin_inset Flex Code
7896 status collapsed
7897
7898 \begin_layout Plain Layout
7899 UserDir/templates/
7900 \end_layout
7901
7902 \end_inset
7903
7904 , copy the ones you use from the global template directory in 
7905 \begin_inset Flex Code
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909 LyXDir/templates/
7910 \end_layout
7911
7912 \end_inset
7913
7914  to the same place, and redefine the template path in the 
7915 \begin_inset Flex Noun
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919 Tools\SpecialChar menuseparator
7920 Preferences\SpecialChar menuseparator
7921 Paths
7922 \end_layout
7923
7924 \end_inset
7925
7926  dialog.
7927 \end_layout
7928
7929 \begin_layout Standard
7930 Note, by the way, that there is a template which has a particular meaning:
7931 \begin_inset Newline linebreak
7932 \end_inset
7933
7934
7935 \begin_inset Flex Code
7936 status collapsed
7937
7938 \begin_layout Plain Layout
7939 defaults.lyx
7940 \end_layout
7941
7942 \end_inset
7943
7944 .
7945  This template is loaded every time you create a new document with 
7946 \begin_inset Flex Noun
7947 status collapsed
7948
7949 \begin_layout Plain Layout
7950 File\SpecialChar menuseparator
7951 New
7952 \end_layout
7953
7954 \end_inset
7955
7956  in order to provide useful defaults.
7957  To create this template from inside \SpecialChar LyX
7958 , all you have to do is to open a document
7959  with the correct settings, and use the 
7960 \begin_inset Flex Noun
7961 status collapsed
7962
7963 \begin_layout Plain Layout
7964 Save as Document Defaults
7965 \end_layout
7966
7967 \end_inset
7968
7969  button.
7970 \end_layout
7971
7972 \begin_layout Subsection
7973 Upgrading old layout files
7974 \end_layout
7975
7976 \begin_layout Standard
7977 The format of layout files changes with each \SpecialChar LyX
7978  release, so old layout files
7979  need to be converted to the new format.
7980  If \SpecialChar LyX
7981  reads a layout file in an older format, it automatically calls the
7982  script 
7983 \begin_inset Flex Code
7984 status collapsed
7985
7986 \begin_layout Plain Layout
7987 layout2layout.py
7988 \end_layout
7989
7990 \end_inset
7991
7992  to convert it to a temporary file in current format.
7993  The original file is left untouched.
7994  If you use the layout file often, then, you may want to convert it permanently,
7995  so that \SpecialChar LyX
7996  does not have to do so itself every time.
7997  To do this, you can call the converter manually:
7998 \end_layout
7999
8000 \begin_layout Enumerate
8001 rename the file 
8002 \begin_inset Flex Code
8003 status collapsed
8004
8005 \begin_layout Plain Layout
8006 myclass.layout
8007 \end_layout
8008
8009 \end_inset
8010
8011  to 
8012 \begin_inset Flex Code
8013 status collapsed
8014
8015 \begin_layout Plain Layout
8016 myclass.old
8017 \end_layout
8018
8019 \end_inset
8020
8021
8022 \end_layout
8023
8024 \begin_layout Enumerate
8025 Call the command
8026 \begin_inset Newline newline
8027 \end_inset
8028
8029
8030 \begin_inset Flex Code
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8035 \end_layout
8036
8037 \end_inset
8038
8039
8040 \begin_inset Newline newline
8041 \end_inset
8042
8043 where 
8044 \begin_inset Flex Code
8045 status collapsed
8046
8047 \begin_layout Plain Layout
8048 LyXDir
8049 \end_layout
8050
8051 \end_inset
8052
8053  is the name of your \SpecialChar LyX
8054  system directory.
8055 \end_layout
8056
8057 \begin_layout Standard
8058 Note that manual conversion does not affect included files, so these will
8059  have to be converted separately.
8060 \end_layout
8061
8062 \begin_layout Subsection
8063 \begin_inset CommandInset label
8064 LatexCommand label
8065 name "subsec:Cite-Engine-Files"
8066
8067 \end_inset
8068
8069 Cite engine files
8070 \end_layout
8071
8072 \begin_layout Standard
8073 A specific form of layout files are the so-called 
8074 \begin_inset Flex Code
8075 status collapsed
8076
8077 \begin_layout Plain Layout
8078 *.citeengine
8079 \end_layout
8080
8081 \end_inset
8082
8083  files that are located in the 
8084 \begin_inset Flex Code
8085 status collapsed
8086
8087 \begin_layout Plain Layout
8088 citeengines/
8089 \end_layout
8090
8091 \end_inset
8092
8093  sub-directory.
8094  Their purpose is to define the specifics of \SpecialChar LaTeX
8095  packages aimed at bibliography
8096  generation, such as 
8097 \family sans
8098 natbib
8099 \family default
8100 ,
8101 \family sans
8102  jurabib
8103 \family default
8104  or 
8105 \family sans
8106 biblatex
8107 \family default
8108 , but also the way how normal Bib\SpecialChar TeX
8109  citations (without additional packages)
8110  are handled in \SpecialChar LyX
8111  is defined in such a file.
8112  
8113 \end_layout
8114
8115 \begin_layout Standard
8116 More specifically, it is defined which packages \SpecialChar LyX
8117  needs to load, which citation
8118  commands are available, how these are to be displayed in \SpecialChar LyX
8119  (in the workarea,
8120  the dialogs, the context menus) as well as in the XHTML and plain text
8121  output.
8122  Furthermore, the files specify available style variants (author-year, numerical
8123 , etc.) and their specifics.
8124  The cite engine files are also used to generate the options that are available
8125  in 
8126 \family sans
8127 Document\SpecialChar menuseparator
8128 Settings\SpecialChar menuseparator
8129 Bibliography\SpecialChar menuseparator
8130 Style engine
8131 \family default
8132 .
8133 \end_layout
8134
8135 \begin_layout Standard
8136 Even though a cite engine file is essentially a normal layout file that
8137  could theoretically include any layout information, it usually primarily
8138  includes some specific parameters such as 
8139 \begin_inset Flex Code
8140 status collapsed
8141
8142 \begin_layout Plain Layout
8143 MaxCiteNames
8144 \end_layout
8145
8146 \end_inset
8147
8148
8149 \begin_inset Flex Code
8150 status collapsed
8151
8152 \begin_layout Plain Layout
8153 CiteFramework
8154 \end_layout
8155
8156 \end_inset
8157
8158
8159 \begin_inset Flex Code
8160 status collapsed
8161
8162 \begin_layout Plain Layout
8163 CiteEngine
8164 \end_layout
8165
8166 \end_inset
8167
8168  and 
8169 \begin_inset Flex Code
8170 status collapsed
8171
8172 \begin_layout Plain Layout
8173 CiteFormat
8174 \end_layout
8175
8176 \end_inset
8177
8178  blocks.
8179  The syntax of the latter two is described in 
8180 \begin_inset CommandInset ref
8181 LatexCommand ref
8182 reference "subsec:Citation-engine-description"
8183 plural "false"
8184 caps "false"
8185 noprefix "false"
8186
8187 \end_inset
8188
8189  and 
8190 \begin_inset CommandInset ref
8191 LatexCommand ref
8192 reference "subsec:Citation-format-description"
8193
8194 \end_inset
8195
8196 , as well as in the files themselves.
8197 \end_layout
8198
8199 \begin_layout Section
8200 \begin_inset CommandInset label
8201 LatexCommand label
8202 name "sec:TextClass"
8203
8204 \end_inset
8205
8206 The layout file format
8207 \end_layout
8208
8209 \begin_layout Standard
8210 The following sections describe how layout files are structured and written.
8211  Our advice is to go slowly, save and test often.
8212  It is really not that hard, except that the multitude of options can become
8213  overwhelming, especially if you try to check out too many at once.
8214  It becomes easier if you use existing layouts of \SpecialChar LyX
8215  as examples/reference
8216  or if you modify an existing layout to your needs.
8217 \end_layout
8218
8219 \begin_layout Standard
8220 Note that all the tags used in layout files are case-insensitive.
8221  This means that 
8222 \begin_inset Flex Code
8223 status collapsed
8224
8225 \begin_layout Plain Layout
8226 Style
8227 \end_layout
8228
8229 \end_inset
8230
8231
8232 \begin_inset Flex Code
8233 status collapsed
8234
8235 \begin_layout Plain Layout
8236 style
8237 \end_layout
8238
8239 \end_inset
8240
8241  and 
8242 \begin_inset Flex Code
8243 status collapsed
8244
8245 \begin_layout Plain Layout
8246 StYlE
8247 \end_layout
8248
8249 \end_inset
8250
8251  are really the same tag.
8252  The possible arguments are printed in brackets after the tag's name.
8253  The default argument is typeset 
8254 \begin_inset Flex Code
8255 status collapsed
8256
8257 \begin_layout Plain Layout
8258
8259 \emph on
8260 emphasized
8261 \end_layout
8262
8263 \end_inset
8264
8265 .
8266  If the argument has a data type like 
8267 \begin_inset Quotes eld
8268 \end_inset
8269
8270 string
8271 \begin_inset Quotes erd
8272 \end_inset
8273
8274  or 
8275 \begin_inset Quotes eld
8276 \end_inset
8277
8278 float
8279 \begin_inset Quotes erd
8280 \end_inset
8281
8282 , the default is shown like this: 
8283 \begin_inset Flex Code
8284 status collapsed
8285
8286 \begin_layout Plain Layout
8287 float=
8288 \emph on
8289 default
8290 \end_layout
8291
8292 \end_inset
8293
8294 .
8295 \end_layout
8296
8297 \begin_layout Subsection
8298 The document class declaration and classification
8299 \end_layout
8300
8301 \begin_layout Standard
8302 Lines in a layout file which begin with 
8303 \begin_inset Flex Code
8304 status collapsed
8305
8306 \begin_layout Plain Layout
8307 #
8308 \end_layout
8309
8310 \end_inset
8311
8312  are comments.
8313  There is one exception to this rule.
8314  All 
8315 \begin_inset Flex Code
8316 status collapsed
8317
8318 \begin_layout Plain Layout
8319 *.layout
8320 \end_layout
8321
8322 \end_inset
8323
8324  files should begin with lines like:
8325 \end_layout
8326
8327 \begin_layout LyX-Code
8328
8329 \size small
8330 #% Do not delete the line below; configure depends on this 
8331 \end_layout
8332
8333 \begin_layout LyX-Code
8334
8335 \size small
8336 #  
8337 \backslash
8338 DeclareLaTeXClass{Article (Standard Class)}
8339 \end_layout
8340
8341 \begin_layout LyX-Code
8342
8343 \size small
8344 #  
8345 \backslash
8346 DeclareCategory{Articles}
8347 \end_layout
8348
8349 \begin_layout Standard
8350 The second and third lines are used when you (re)configure \SpecialChar LyX
8351 .
8352  The layout file is read by the \SpecialChar LaTeX
8353  script 
8354 \begin_inset Flex Code
8355 status collapsed
8356
8357 \begin_layout Plain Layout
8358 chkconfig.ltx
8359 \end_layout
8360
8361 \end_inset
8362
8363 , in a special mode where 
8364 \begin_inset Flex Code
8365 status collapsed
8366
8367 \begin_layout Plain Layout
8368 #
8369 \end_layout
8370
8371 \end_inset
8372
8373  is ignored.
8374  The first line is just a \SpecialChar LaTeX
8375  comment, the second one contains the mandatory
8376  declaration of the text class and the third line contains the optional
8377  classification of the class.
8378  If these lines appear in a file named 
8379 \begin_inset Flex Code
8380 status collapsed
8381
8382 \begin_layout Plain Layout
8383 article.layout
8384 \end_layout
8385
8386 \end_inset
8387
8388 , then they define a text class of name 
8389 \begin_inset Flex Code
8390 status collapsed
8391
8392 \begin_layout Plain Layout
8393 article
8394 \end_layout
8395
8396 \end_inset
8397
8398  (the name of the layout file) which uses the \SpecialChar LaTeX
8399  document class 
8400 \begin_inset Flex Code
8401 status collapsed
8402
8403 \begin_layout Plain Layout
8404 article.cls
8405 \end_layout
8406
8407 \end_inset
8408
8409  (the default is to use the same name as the layout).
8410  The string 
8411 \begin_inset Quotes eld
8412 \end_inset
8413
8414 Article (Standard Class)
8415 \begin_inset Quotes erd
8416 \end_inset
8417
8418  that appears above is used as a description of the text class in the 
8419 \begin_inset Flex Noun
8420 status collapsed
8421
8422 \begin_layout Plain Layout
8423 Document\SpecialChar menuseparator
8424 Settings
8425 \end_layout
8426
8427 \end_inset
8428
8429  dialog.
8430  The category (
8431 \begin_inset Quotes eld
8432 \end_inset
8433
8434 Articles
8435 \begin_inset Quotes erd
8436 \end_inset
8437
8438  in the example) is also used in the 
8439 \begin_inset Flex Noun
8440 status collapsed
8441
8442 \begin_layout Plain Layout
8443 Document\SpecialChar menuseparator
8444 Settings
8445 \end_layout
8446
8447 \end_inset
8448
8449  dialog: the text classes are grouped by these categories (which are usually
8450  genres, so typical categories are 
8451 \begin_inset Quotes eld
8452 \end_inset
8453
8454 Articles
8455 \begin_inset Quotes erd
8456 \end_inset
8457
8458
8459 \begin_inset Quotes eld
8460 \end_inset
8461
8462 Books
8463 \begin_inset Quotes erd
8464 \end_inset
8465
8466
8467 \begin_inset Quotes eld
8468 \end_inset
8469
8470 Reports
8471 \begin_inset Quotes erd
8472 \end_inset
8473
8474
8475 \begin_inset Quotes eld
8476 \end_inset
8477
8478 Letters
8479 \begin_inset Quotes erd
8480 \end_inset
8481
8482
8483 \begin_inset Quotes eld
8484 \end_inset
8485
8486 Presentations
8487 \begin_inset Quotes erd
8488 \end_inset
8489
8490
8491 \begin_inset Quotes eld
8492 \end_inset
8493
8494 Curricula Vitae
8495 \begin_inset Quotes erd
8496 \end_inset
8497
8498  etc.).
8499  If no category has been declared, the class will be put in the 
8500 \begin_inset Quotes eld
8501 \end_inset
8502
8503 Uncategorized
8504 \begin_inset Quotes erd
8505 \end_inset
8506
8507  group.
8508 \end_layout
8509
8510 \begin_layout Standard
8511 Let's assume that you wrote your own text class that uses the 
8512 \begin_inset Flex Code
8513 status collapsed
8514
8515 \begin_layout Plain Layout
8516 article.cls
8517 \end_layout
8518
8519 \end_inset
8520
8521  document class, but where you changed the appearance of the section headings.
8522  If you put it in a file 
8523 \begin_inset Flex Code
8524 status collapsed
8525
8526 \begin_layout Plain Layout
8527 myarticle.layout
8528 \end_layout
8529
8530 \end_inset
8531
8532 , the header of this file should be:
8533 \end_layout
8534
8535 \begin_layout LyX-Code
8536
8537 \size small
8538 #% Do not delete the line below; configure depends on this 
8539 \end_layout
8540
8541 \begin_layout LyX-Code
8542
8543 \size small
8544 #  
8545 \backslash
8546 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8547 \end_layout
8548
8549 \begin_layout LyX-Code
8550
8551 \size small
8552 #  
8553 \backslash
8554 DeclareCategory{Articles}
8555 \end_layout
8556
8557 \begin_layout Standard
8558 This declares a text class 
8559 \begin_inset Flex Code
8560 status collapsed
8561
8562 \begin_layout Plain Layout
8563 myarticle
8564 \end_layout
8565
8566 \end_inset
8567
8568 , associated with the \SpecialChar LaTeX
8569  document class 
8570 \begin_inset Flex Code
8571 status collapsed
8572
8573 \begin_layout Plain Layout
8574 article.cls
8575 \end_layout
8576
8577 \end_inset
8578
8579  and described as 
8580 \begin_inset Quotes eld
8581 \end_inset
8582
8583 Article (with My Own Headings)
8584 \begin_inset Quotes erd
8585 \end_inset
8586
8587 .
8588  If your text class depends on several packages, you can declare it as:
8589 \end_layout
8590
8591 \begin_layout LyX-Code
8592
8593 \size small
8594 #% Do not delete the line below; configure depends on this 
8595 \end_layout
8596
8597 \begin_layout LyX-Code
8598
8599 \size small
8600 #  
8601 \backslash
8602 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8603 \end_layout
8604
8605 \begin_layout LyX-Code
8606
8607 \size small
8608 #  
8609 \backslash
8610 DeclareCategory{Articles}
8611 \end_layout
8612
8613 \begin_layout Standard
8614 This indicates that your text class uses the 
8615 \begin_inset Flex Code
8616 status collapsed
8617
8618 \begin_layout Plain Layout
8619 foo.sty
8620 \end_layout
8621
8622 \end_inset
8623
8624  package.
8625  
8626 \change_deleted 5863208 1594239179
8627 Finally, it is also possible to declare classes for DocBook code.
8628  Typical declarations will look like:
8629 \end_layout
8630
8631 \begin_layout LyX-Code
8632
8633 \change_deleted 5863208 1594239179
8634
8635 \size small
8636 #% Do not delete the line below; configure depends on this 
8637 \end_layout
8638
8639 \begin_layout LyX-Code
8640
8641 \change_deleted 5863208 1594239179
8642
8643 \size small
8644
8645 \backslash
8646 DeclareDocBookClass[article]{SGML (DocBook Article)}
8647 \end_layout
8648
8649 \begin_layout LyX-Code
8650
8651 \change_deleted 5863208 1594239179
8652
8653 \size small
8654
8655 \backslash
8656 DeclareCategory{Articles (DocBook)}
8657 \change_unchanged
8658
8659 \end_layout
8660
8661 \begin_layout Standard
8662 Note that these declarations can also be given an optional parameter declaring
8663  the name of the document class (but not a list).
8664 \end_layout
8665
8666 \begin_layout Standard
8667 So, to be as explicit as possible, the form of the layout declaration is:
8668 \end_layout
8669
8670 \begin_layout LyX-Code
8671
8672 \size small
8673 #  
8674 \backslash
8675 DeclareLaTeXClass[class,package.sty]{layout description}
8676 \end_layout
8677
8678 \begin_layout LyX-Code
8679
8680 \size small
8681 #  
8682 \backslash
8683 DeclareCategory{category}
8684 \end_layout
8685
8686 \begin_layout Standard
8687 The class need only be specified if the name of the \SpecialChar LaTeX
8688  class file and the
8689  name of the layout file are different or if there are packages to load.
8690  If the name of the class file is not specified, then \SpecialChar LyX
8691  will simply assume
8692  that it is the same as the name of the layout file.
8693 \end_layout
8694
8695 \begin_layout Standard
8696 When the text class has been modified to your taste, all you have to do
8697  is to copy it either to 
8698 \begin_inset Flex Code
8699 status collapsed
8700
8701 \begin_layout Plain Layout
8702 LyXDir/layouts/
8703 \end_layout
8704
8705 \end_inset
8706
8707  or to 
8708 \begin_inset Flex Code
8709 status collapsed
8710
8711 \begin_layout Plain Layout
8712 UserDir/layouts
8713 \end_layout
8714
8715 \end_inset
8716
8717 , run 
8718 \begin_inset Flex Noun
8719 status collapsed
8720
8721 \begin_layout Plain Layout
8722 Tools\SpecialChar menuseparator
8723 Reconfigure
8724 \end_layout
8725
8726 \end_inset
8727
8728 , exit \SpecialChar LyX
8729  and restart.
8730  Then your new text class should be available along with the others.
8731 \end_layout
8732
8733 \begin_layout Standard
8734 Once the layout file is installed, you can edit it and see your changes
8735  without having to reconfigure or to restart \SpecialChar LyX
8736 .
8737 \begin_inset Foot
8738 status collapsed
8739
8740 \begin_layout Plain Layout
8741 In versions of \SpecialChar LyX
8742  prior to 1.6, this was not true.
8743  As a result, editing layout files was very time consuming, since you had
8744  constantly to restart \SpecialChar LyX
8745  to see changes.
8746 \end_layout
8747
8748 \end_inset
8749
8750  You can force a reload of the current layout by using the \SpecialChar LyX
8751  function 
8752 \begin_inset Flex Noun
8753 status collapsed
8754
8755 \begin_layout Plain Layout
8756 layout-reload
8757 \end_layout
8758
8759 \end_inset
8760
8761 .
8762  There is no default binding for this function—though, of course, you can
8763  bind it to a key yourself.
8764  But you will normally use this function simply by entering it in the mini-buffe
8765 r.
8766  
8767 \end_layout
8768
8769 \begin_layout Standard
8770
8771 \emph on
8772 Warning
8773 \emph default
8774
8775 \begin_inset Flex Noun
8776 status collapsed
8777
8778 \begin_layout Plain Layout
8779 layout-reload
8780 \end_layout
8781
8782 \end_inset
8783
8784  is very much an `advanced feature'.
8785  It is 
8786 \emph on
8787 strongly
8788 \emph default
8789  recommended that you save your work before using this function.
8790  In fact, it is 
8791 \emph on
8792 strongly
8793 \emph default
8794  recommended that you not attempt to edit layout information while simultaneousl
8795 y working on a document that you care about.
8796  Use a test document.
8797  Syntax errors and the like in your layout file could cause peculiar behavior.
8798  In particular, such errors could cause \SpecialChar LyX
8799  to regard the current layout as
8800  invalid and to attempt to switch to some other layout.
8801 \begin_inset Foot
8802 status collapsed
8803
8804 \begin_layout Plain Layout
8805 Really bad syntax errors may even caused \SpecialChar LyX
8806  to exit.
8807  This is because certain sorts of errors may make \SpecialChar LyX
8808  unable to read 
8809 \emph on
8810 any
8811 \emph default
8812  layout information.
8813  Please be careful.
8814 \end_layout
8815
8816 \end_inset
8817
8818  The \SpecialChar LyX
8819  team strives to keep \SpecialChar LyX
8820  stable in such situations, but safe is better
8821  than sorry.
8822 \begin_inset Foot
8823 status collapsed
8824
8825 \begin_layout Plain Layout
8826 While we're giving advice: make regular backups.
8827  And be nice to your mother.
8828 \end_layout
8829
8830 \end_inset
8831
8832
8833 \end_layout
8834
8835 \begin_layout Subsection
8836 The Module declaration
8837 \end_layout
8838
8839 \begin_layout Standard
8840 A module must begin with a line like the following:
8841 \end_layout
8842
8843 \begin_layout LyX-Code
8844 #
8845 \backslash
8846 DeclareLyXModule[endnotes.sty]{Endnotes}
8847 \change_inserted -712698321 1554395911
8848
8849 \end_layout
8850
8851 \begin_layout LyX-Code
8852
8853 \change_inserted -712698321 1554395924
8854
8855 \size small
8856 #
8857 \backslash
8858 DeclareCategory{Foot- and Endnotes}
8859 \change_deleted -712698321 1554395911
8860
8861 \size default
8862  
8863 \change_unchanged
8864
8865 \end_layout
8866
8867 \begin_layout Standard
8868 The mandatory argument
8869 \change_inserted -712698321 1554395956
8870  of 
8871 \family typewriter
8872
8873 \backslash
8874 DeclareLyXModule
8875 \change_unchanged
8876
8877 \family default
8878 , in curly brackets, is the name of the module, as it should appear in 
8879 \begin_inset Flex Noun
8880 status collapsed
8881
8882 \begin_layout Plain Layout
8883 Document\SpecialChar menuseparator
8884 Settings\SpecialChar menuseparator
8885 Modules
8886 \end_layout
8887
8888 \end_inset
8889
8890 .
8891  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8892  packages
8893  on which the module depends.
8894  It is also possible to use the form 
8895 \begin_inset Flex Noun
8896 status collapsed
8897
8898 \begin_layout Plain Layout
8899 from->to
8900 \end_layout
8901
8902 \end_inset
8903
8904  as an optional argument, which declares that the module can only be used
8905  when there exists a conversion chain between the formats `
8906 \begin_inset Flex Code
8907 status collapsed
8908
8909 \begin_layout Plain Layout
8910 from
8911 \end_layout
8912
8913 \end_inset
8914
8915 ' and `
8916 \begin_inset Flex Code
8917 status collapsed
8918
8919 \begin_layout Plain Layout
8920 to
8921 \end_layout
8922
8923 \end_inset
8924
8925 '.
8926
8927 \change_inserted -712698321 1554396133
8928  The 
8929 \family typewriter
8930
8931 \backslash
8932 DeclareCategory
8933 \family default
8934  declaration is not strictly mandatory, but you should add it, since it
8935  is helpful to find the module.
8936  Please have a look at the existing module categories and if appropriate,
8937  use one of those.
8938 \change_unchanged
8939
8940 \end_layout
8941
8942 \begin_layout Standard
8943 The module 
8944 \change_inserted -712698321 1554395988
8945 and category 
8946 \change_unchanged
8947 declaration should then be followed by lines like the following:
8948 \begin_inset Foot
8949 status collapsed
8950
8951 \begin_layout Plain Layout
8952 Preferably in English if the module should be published with \SpecialChar LyX
8953 .
8954  This description will appear in the list of messages to be translated and
8955  will be thus translated with the next interface update.
8956 \end_layout
8957
8958 \end_inset
8959
8960
8961 \end_layout
8962
8963 \begin_layout LyX-Code
8964 #DescriptionBegin 
8965 \end_layout
8966
8967 \begin_layout LyX-Code
8968 #Adds an endnote command, in addition to footnotes.
8969  
8970 \end_layout
8971
8972 \begin_layout LyX-Code
8973 #You will need to add  
8974 \backslash
8975 theendnotes in TeX code where you 
8976 \end_layout
8977
8978 \begin_layout LyX-Code
8979 #want the endnotes to appear.
8980  
8981 \end_layout
8982
8983 \begin_layout LyX-Code
8984 #DescriptionEnd 
8985 \end_layout
8986
8987 \begin_layout LyX-Code
8988 #Requires: somemodule | othermodule
8989 \end_layout
8990
8991 \begin_layout LyX-Code
8992 #Excludes: badmodule
8993 \end_layout
8994
8995 \begin_layout Standard
8996 The description is used in 
8997 \begin_inset Flex Noun
8998 status collapsed
8999
9000 \begin_layout Plain Layout
9001 Document\SpecialChar menuseparator
9002 Settings\SpecialChar menuseparator
9003 Modules
9004 \end_layout
9005
9006 \end_inset
9007
9008  to provide the user with information about what the module does.
9009  The 
9010 \begin_inset Flex Code
9011 status collapsed
9012
9013 \begin_layout Plain Layout
9014 Requires
9015 \end_layout
9016
9017 \end_inset
9018
9019  line is used to identify other modules with which this one must be used;
9020  the 
9021 \begin_inset Flex Code
9022 status collapsed
9023
9024 \begin_layout Plain Layout
9025 Excludes
9026 \end_layout
9027
9028 \end_inset
9029
9030  line is used to identify modules with which this one may not be used.
9031  Both are optional, and, as shown, multiple modules should be separated
9032  with the pipe symbol: |.
9033  Note that the required modules are treated disjunctively: 
9034 \emph on
9035 at least one
9036 \emph default
9037  of the required modules must be used.
9038  Similarly, 
9039 \emph on
9040 no
9041 \emph default
9042  excluded module may be used.
9043  Note that modules are identified here by their filenames without the 
9044 \begin_inset Flex Code
9045 status collapsed
9046
9047 \begin_layout Plain Layout
9048 .module
9049 \end_layout
9050
9051 \end_inset
9052
9053  extension.
9054  So 
9055 \begin_inset Flex Code
9056 status collapsed
9057
9058 \begin_layout Plain Layout
9059 somemodule
9060 \end_layout
9061
9062 \end_inset
9063
9064  is really 
9065 \begin_inset Flex Code
9066 status collapsed
9067
9068 \begin_layout Plain Layout
9069 somemodule.module
9070 \end_layout
9071
9072 \end_inset
9073
9074 .
9075 \end_layout
9076
9077 \begin_layout Subsection
9078 The CiteEngine file declaration
9079 \end_layout
9080
9081 \begin_layout Standard
9082 A cite engine file must begin with a line like the following:
9083 \end_layout
9084
9085 \begin_layout LyX-Code
9086 #
9087 \backslash
9088 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9089 \end_layout
9090
9091 \begin_layout Standard
9092 The mandatory argument, in curly brackets, is the name of the cite style,
9093  as it should appear in 
9094 \begin_inset Flex Noun
9095 status collapsed
9096
9097 \begin_layout Plain Layout
9098 Document\SpecialChar menuseparator
9099 Settings\SpecialChar menuseparator
9100 Bibliography
9101 \end_layout
9102
9103 \end_inset
9104
9105 .
9106  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
9107  packages
9108  on which the cite engine depends.
9109 \end_layout
9110
9111 \begin_layout Standard
9112 The cite engine declaration should then be followed by lines like the following:
9113 \begin_inset Foot
9114 status collapsed
9115
9116 \begin_layout Plain Layout
9117 Preferably in English if the module should be published with \SpecialChar LyX
9118 .
9119  This description will appear in the list of messages to be translated and
9120  will be thus translated with the next interface update.
9121 \end_layout
9122
9123 \end_inset
9124
9125
9126 \end_layout
9127
9128 \begin_layout LyX-Code
9129 # DescriptionBegin
9130 \end_layout
9131
9132 \begin_layout LyX-Code
9133 #   Biblatex supports many author-year and numerical styles.
9134 \end_layout
9135
9136 \begin_layout LyX-Code
9137 #   It is mainly aimed at the Humanities.
9138  It is highly
9139 \end_layout
9140
9141 \begin_layout LyX-Code
9142 #   customizable, fully localized and provides many features
9143 \end_layout
9144
9145 \begin_layout LyX-Code
9146 #   that are not possible with BibTeX.
9147  The use of 'biber' as
9148 \end_layout
9149
9150 \begin_layout LyX-Code
9151 #   bibliography processor is advised.
9152 \end_layout
9153
9154 \begin_layout LyX-Code
9155 # DescriptionEnd
9156 \end_layout
9157
9158 \begin_layout Standard
9159 The description is used in 
9160 \begin_inset Flex Noun
9161 status collapsed
9162
9163 \begin_layout Plain Layout
9164 Document\SpecialChar menuseparator
9165 Settings\SpecialChar menuseparator
9166 Bibliography
9167 \end_layout
9168
9169 \end_inset
9170
9171  to provide the user with information about the cite engine.
9172 \end_layout
9173
9174 \begin_layout Subsection
9175 Format number
9176 \end_layout
9177
9178 \begin_layout Standard
9179 The first non-comment line of any layout file, included file, or module
9180  
9181 \emph on
9182 must
9183 \emph default
9184  contain the file format number:
9185 \end_layout
9186
9187 \begin_layout Description
9188 \begin_inset Flex Code
9189 status collapsed
9190
9191 \begin_layout Plain Layout
9192 Format
9193 \end_layout
9194
9195 \end_inset
9196
9197  [
9198 \begin_inset Flex Code
9199 status collapsed
9200
9201 \begin_layout Plain Layout
9202 int
9203 \end_layout
9204
9205 \end_inset
9206
9207 ] The format number of the layout file.
9208 \end_layout
9209
9210 \begin_layout Standard
9211 This tag was introduced with \SpecialChar LyX
9212
9213 \begin_inset space ~
9214 \end_inset
9215
9216 1.4.0.
9217  Layout files from older \SpecialChar LyX
9218  versions do not have an explicit file format and
9219  are considered to have 
9220 \begin_inset Flex Code
9221 status collapsed
9222
9223 \begin_layout Plain Layout
9224 Format
9225 \begin_inset space ~
9226 \end_inset
9227
9228 1
9229 \end_layout
9230
9231 \end_inset
9232
9233 .
9234  The format for the present version of \SpecialChar LyX
9235  is format 60.
9236  But each version of \SpecialChar LyX
9237  is capable of reading earlier versions' layout files,
9238  just as they are capable of reading files produced by earlier versions
9239  of \SpecialChar LyX
9240 .
9241  There is, however, no provision for converting to earlier formats.
9242 \end_layout
9243
9244 \begin_layout Subsection
9245 \begin_inset CommandInset label
9246 LatexCommand label
9247 name "subsec:General-text-class"
9248
9249 \end_inset
9250
9251 General text class parameters
9252 \end_layout
9253
9254 \begin_layout Standard
9255 These are general parameters that govern the behavior of an entire document
9256  class.
9257  (This does 
9258 \emph on
9259 not
9260 \emph default
9261  mean that they must appear in 
9262 \begin_inset Flex Code
9263 status collapsed
9264
9265 \begin_layout Plain Layout
9266 .layout
9267 \end_layout
9268
9269 \end_inset
9270
9271  files rather than in modules.
9272  A module can contain any layout tag.)
9273 \end_layout
9274
9275 \begin_layout Description
9276
9277 \change_inserted -712698321 1526899478
9278 \begin_inset Flex Code
9279 status collapsed
9280
9281 \begin_layout Plain Layout
9282
9283 \change_inserted -712698321 1526898610
9284 AddToCiteEngine <engine>
9285 \change_unchanged
9286
9287 \end_layout
9288
9289 \end_inset
9290
9291  Extends the possibilities for displaying citation references.
9292  See 
9293 \begin_inset CommandInset ref
9294 LatexCommand ref
9295 reference "subsec:Citation-engine-description"
9296 plural "false"
9297 caps "false"
9298 noprefix "false"
9299
9300 \end_inset
9301
9302  for details.
9303  Must end with 
9304 \begin_inset Flex Code
9305 status collapsed
9306
9307 \begin_layout Plain Layout
9308
9309 \change_inserted -712698321 1526898823
9310 End
9311 \change_unchanged
9312
9313 \end_layout
9314
9315 \end_inset
9316
9317 .
9318 \end_layout
9319
9320 \begin_layout Description
9321 \begin_inset Flex Code
9322 status collapsed
9323
9324 \begin_layout Plain Layout
9325 AddToHTMLPreamble
9326 \end_layout
9327
9328 \end_inset
9329
9330  Adds information that will be output in the 
9331 \begin_inset Flex Code
9332 status collapsed
9333
9334 \begin_layout Plain Layout
9335 <head>
9336 \end_layout
9337
9338 \end_inset
9339
9340  block when the document is output to XHTML.
9341  Typically, this would be used to output CSS style information, but it can
9342  be used for anything that can appear in 
9343 \begin_inset Flex Code
9344 status collapsed
9345
9346 \begin_layout Plain Layout
9347 <head>
9348 \end_layout
9349
9350 \end_inset
9351
9352 .
9353  Must end with 
9354 \begin_inset Quotes eld
9355 \end_inset
9356
9357
9358 \begin_inset Flex Code
9359 status collapsed
9360
9361 \begin_layout Plain Layout
9362 EndPreamble
9363 \end_layout
9364
9365 \end_inset
9366
9367
9368 \begin_inset Quotes erd
9369 \end_inset
9370
9371 .
9372 \end_layout
9373
9374 \begin_layout Description
9375 \begin_inset Flex Code
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 AddToPreamble
9380 \end_layout
9381
9382 \end_inset
9383
9384  Adds information to the document preamble.
9385  Must end with
9386 \begin_inset Newline newline
9387 \end_inset
9388
9389
9390 \begin_inset Quotes eld
9391 \end_inset
9392
9393
9394 \begin_inset Flex Code
9395 status collapsed
9396
9397 \begin_layout Plain Layout
9398 EndPreamble
9399 \end_layout
9400
9401 \end_inset
9402
9403
9404 \begin_inset Quotes erd
9405 \end_inset
9406
9407 .
9408 \change_inserted -712698321 1562592950
9409
9410 \end_layout
9411
9412 \begin_layout Description
9413
9414 \change_inserted -712698321 1562593040
9415 \begin_inset Flex Code
9416 status collapsed
9417
9418 \begin_layout Plain Layout
9419
9420 \change_inserted -712698321 1562592954
9421 BibInToc
9422 \change_unchanged
9423
9424 \end_layout
9425
9426 \end_inset
9427
9428  [
9429 \begin_inset Flex Code
9430 status collapsed
9431
9432 \begin_layout Plain Layout
9433
9434 \change_inserted -712698321 1562592950
9435
9436 \emph on
9437 0
9438 \change_unchanged
9439
9440 \end_layout
9441
9442 \end_inset
9443
9444 ,
9445 \begin_inset space \thinspace{}
9446 \end_inset
9447
9448
9449 \begin_inset Flex Code
9450 status collapsed
9451
9452 \begin_layout Plain Layout
9453
9454 \change_inserted -712698321 1562592950
9455 1
9456 \change_unchanged
9457
9458 \end_layout
9459
9460 \end_inset
9461
9462 ] If the document class adds the bibliography to the table of contents,
9463  add this option with value 
9464 \begin_inset Flex Code
9465 status collapsed
9466
9467 \begin_layout Plain Layout
9468
9469 \change_inserted -712698321 1562592996
9470 1
9471 \change_unchanged
9472
9473 \end_layout
9474
9475 \end_inset
9476
9477  (or 
9478 \begin_inset Flex Code
9479 status collapsed
9480
9481 \begin_layout Plain Layout
9482
9483 \change_inserted -712698321 1562593006
9484 true
9485 \change_unchanged
9486
9487 \end_layout
9488
9489 \end_inset
9490
9491 ).
9492  This prevents the bibliography from being added twice.
9493 \change_unchanged
9494
9495 \end_layout
9496
9497 \begin_layout Description
9498 \begin_inset Flex Code
9499 status collapsed
9500
9501 \begin_layout Plain Layout
9502 CiteEngine <engine>
9503 \end_layout
9504
9505 \end_inset
9506
9507  Defines the possibilities for displaying citation references.
9508  See 
9509 \begin_inset CommandInset ref
9510 LatexCommand ref
9511 reference "subsec:Citation-engine-description"
9512 plural "false"
9513 caps "false"
9514 noprefix "false"
9515
9516 \end_inset
9517
9518  for details.
9519  Must end with 
9520 \begin_inset Quotes eld
9521 \end_inset
9522
9523
9524 \begin_inset Flex Code
9525 status collapsed
9526
9527 \begin_layout Plain Layout
9528 End
9529 \end_layout
9530
9531 \end_inset
9532
9533
9534 \begin_inset Quotes erd
9535 \end_inset
9536
9537 .
9538  Primarily used in cite engine files (see 
9539 \begin_inset CommandInset ref
9540 LatexCommand ref
9541 reference "subsec:Cite-Engine-Files"
9542 plural "false"
9543 caps "false"
9544 noprefix "false"
9545
9546 \end_inset
9547
9548 ).
9549
9550 \change_inserted -712698321 1526898530
9551  Note that if you specify this in a layout file or module, any cite engine
9552  definition will be overridden.
9553  Also see 
9554 \begin_inset Flex Code
9555 status collapsed
9556
9557 \begin_layout Plain Layout
9558
9559 \change_inserted -712698321 1526898530
9560 AddToCiteEngine
9561 \change_unchanged
9562
9563 \end_layout
9564
9565 \end_inset
9566
9567 .
9568 \change_unchanged
9569
9570 \end_layout
9571
9572 \begin_layout Description
9573 \begin_inset Flex Code
9574 status collapsed
9575
9576 \begin_layout Plain Layout
9577 CiteFormat
9578 \end_layout
9579
9580 \end_inset
9581
9582  Defines formats for use in the display of bibliographic information.
9583  See 
9584 \begin_inset CommandInset ref
9585 LatexCommand ref
9586 reference "subsec:Citation-format-description"
9587
9588 \end_inset
9589
9590  for details.
9591  Must end with 
9592 \begin_inset Quotes eld
9593 \end_inset
9594
9595
9596 \begin_inset Flex Code
9597 status collapsed
9598
9599 \begin_layout Plain Layout
9600 End
9601 \end_layout
9602
9603 \end_inset
9604
9605
9606 \begin_inset Quotes erd
9607 \end_inset
9608
9609 .
9610  Primarily used in cite engine files (see 
9611 \begin_inset CommandInset ref
9612 LatexCommand ref
9613 reference "subsec:Cite-Engine-Files"
9614 plural "false"
9615 caps "false"
9616 noprefix "false"
9617
9618 \end_inset
9619
9620 ).
9621
9622 \change_inserted -712698321 1526898585
9623  A cite format defined in a layout or module will override the cite engine
9624  definition.
9625 \change_unchanged
9626
9627 \end_layout
9628
9629 \begin_layout Description
9630 \begin_inset Flex Code
9631 status collapsed
9632
9633 \begin_layout Plain Layout
9634 CiteFramework
9635 \end_layout
9636
9637 \end_inset
9638
9639  [
9640 \begin_inset Flex Code
9641 status collapsed
9642
9643 \begin_layout Plain Layout
9644
9645 \emph on
9646 bibtex
9647 \end_layout
9648
9649 \end_inset
9650
9651 ,
9652 \begin_inset Flex Code
9653 status collapsed
9654
9655 \begin_layout Plain Layout
9656 biblatex
9657 \end_layout
9658
9659 \end_inset
9660
9661 ] Determines whether 
9662 \family sans
9663 Biblatex
9664 \family default
9665  or Bib\SpecialChar TeX
9666  is used to generate a Bibliography.
9667  Primarily used in cite engine files (see 
9668 \begin_inset CommandInset ref
9669 LatexCommand ref
9670 reference "subsec:Cite-Engine-Files"
9671 plural "false"
9672 caps "false"
9673 noprefix "false"
9674
9675 \end_inset
9676
9677 ).
9678 \end_layout
9679
9680 \begin_layout Description
9681 \begin_inset Flex Code
9682 status collapsed
9683
9684 \begin_layout Plain Layout
9685 ClassOptions
9686 \end_layout
9687
9688 \end_inset
9689
9690  Describes various global options supported by the document class.
9691  See 
9692 \begin_inset CommandInset ref
9693 LatexCommand ref
9694 reference "subsec:ClassOptions"
9695
9696 \end_inset
9697
9698  for a description.
9699  Must end with 
9700 \begin_inset Quotes eld
9701 \end_inset
9702
9703
9704 \begin_inset Flex Code
9705 status collapsed
9706
9707 \begin_layout Plain Layout
9708 End
9709 \end_layout
9710
9711 \end_inset
9712
9713
9714 \begin_inset Quotes erd
9715 \end_inset
9716
9717 .
9718 \end_layout
9719
9720 \begin_layout Description
9721 \begin_inset Flex Code
9722 status collapsed
9723
9724 \begin_layout Plain Layout
9725 Columns
9726 \end_layout
9727
9728 \end_inset
9729
9730  [
9731 \begin_inset Flex Code
9732 status collapsed
9733
9734 \begin_layout Plain Layout
9735
9736 \emph on
9737 1
9738 \end_layout
9739
9740 \end_inset
9741
9742 ,
9743 \begin_inset space \thinspace{}
9744 \end_inset
9745
9746
9747 \begin_inset Flex Code
9748 status collapsed
9749
9750 \begin_layout Plain Layout
9751 2
9752 \end_layout
9753
9754 \end_inset
9755
9756 ] Whether the class should 
9757 \emph on
9758 default
9759 \emph default
9760  to having one or two columns.
9761  Can be changed in the 
9762 \begin_inset Flex Noun
9763 status collapsed
9764
9765 \begin_layout Plain Layout
9766 Document\SpecialChar menuseparator
9767 Settings
9768 \end_layout
9769
9770 \end_inset
9771
9772  dialog.
9773 \end_layout
9774
9775 \begin_layout Description
9776 \begin_inset Flex Code
9777 status collapsed
9778
9779 \begin_layout Plain Layout
9780 Counter
9781 \end_layout
9782
9783 \end_inset
9784
9785  [
9786 \begin_inset Flex Code
9787 status collapsed
9788
9789 \begin_layout Plain Layout
9790 string
9791 \end_layout
9792
9793 \end_inset
9794
9795 ] This sequence defines the properties for a counter.
9796  If the counter does not yet exist, it is created; if it does exist, it
9797  is modified.
9798  Must end with 
9799 \begin_inset Quotes eld
9800 \end_inset
9801
9802
9803 \begin_inset Flex Code
9804 status collapsed
9805
9806 \begin_layout Plain Layout
9807 End
9808 \end_layout
9809
9810 \end_inset
9811
9812
9813 \begin_inset Quotes erd
9814 \end_inset
9815
9816 .
9817 \begin_inset Newline newline
9818 \end_inset
9819
9820 See 
9821 \begin_inset CommandInset ref
9822 LatexCommand ref
9823 reference "subsec:Counters"
9824
9825 \end_inset
9826
9827  for details on counters.
9828 \end_layout
9829
9830 \begin_layout Description
9831 \begin_inset Flex Code
9832 status collapsed
9833
9834 \begin_layout Plain Layout
9835 DefaultFont
9836 \end_layout
9837
9838 \end_inset
9839
9840  Sets the default font used to display the document.
9841  See 
9842 \begin_inset CommandInset ref
9843 LatexCommand ref
9844 reference "subsec:Font-description"
9845
9846 \end_inset
9847
9848  for how to declare fonts.
9849  Must end with 
9850 \begin_inset Quotes eld
9851 \end_inset
9852
9853
9854 \begin_inset Flex Code
9855 status collapsed
9856
9857 \begin_layout Plain Layout
9858 EndFont
9859 \end_layout
9860
9861 \end_inset
9862
9863
9864 \begin_inset Quotes erd
9865 \end_inset
9866
9867 .
9868 \end_layout
9869
9870 \begin_layout Description
9871 \begin_inset Flex Code
9872 status collapsed
9873
9874 \begin_layout Plain Layout
9875 DefaultModule
9876 \end_layout
9877
9878 \end_inset
9879
9880  [
9881 \begin_inset Flex Code
9882 status collapsed
9883
9884 \begin_layout Plain Layout
9885 <module>
9886 \end_layout
9887
9888 \end_inset
9889
9890 ] Specifies a module to be included by default with this document class.
9891  The module is specified as filename without the 
9892 \begin_inset Flex Code
9893 status collapsed
9894
9895 \begin_layout Plain Layout
9896 .module
9897 \end_layout
9898
9899 \end_inset
9900
9901  extension.
9902  The user can still remove the module, but it will be active at the outset.
9903  (This applies only when new files are created, or when this class is chosen
9904  for an existing document.)
9905 \end_layout
9906
9907 \begin_layout Description
9908 \begin_inset Flex Code
9909 status collapsed
9910
9911 \begin_layout Plain Layout
9912 DefaultStyle
9913 \end_layout
9914
9915 \end_inset
9916
9917  [
9918 \begin_inset Flex Code
9919 status collapsed
9920
9921 \begin_layout Plain Layout
9922 <style>
9923 \end_layout
9924
9925 \end_inset
9926
9927 ] This is the style that will be assigned to new paragraphs, usually 
9928 \begin_inset Flex Noun
9929 status collapsed
9930
9931 \begin_layout Plain Layout
9932 Standard
9933 \end_layout
9934
9935 \end_inset
9936
9937 .
9938  This will default to the first defined style if not given, but you are
9939  encouraged to use this directive.
9940 \end_layout
9941
9942 \begin_layout Description
9943
9944 \change_inserted -970929547 1515112870
9945 \begin_inset Flex Code
9946 status collapsed
9947
9948 \begin_layout Plain Layout
9949
9950 \change_inserted -970929547 1515112782
9951 DocBookRoot
9952 \change_unchanged
9953
9954 \end_layout
9955
9956 \end_inset
9957
9958  [
9959 \begin_inset Flex Code
9960 status collapsed
9961
9962 \begin_layout Plain Layout
9963
9964 \change_inserted -970929547 1515112766
9965 string
9966 \change_unchanged
9967
9968 \end_layout
9969
9970 \end_inset
9971
9972 ] The root element (at the top of the document) to use when outputting documents
9973  with this class in DocBook.
9974  The default value is 
9975 \begin_inset Quotes eld
9976 \end_inset
9977
9978
9979 \begin_inset Flex Code
9980 status collapsed
9981
9982 \begin_layout Plain Layout
9983
9984 \change_inserted -970929547 1515112845
9985 article
9986 \change_unchanged
9987
9988 \end_layout
9989
9990 \end_inset
9991
9992
9993 \begin_inset Quotes erd
9994 \end_inset
9995
9996 .
9997
9998 \change_deleted 1075283030 1594226862
9999  
10000 \change_inserted 1075283030 1594226777
10001
10002 \end_layout
10003
10004 \begin_layout Description
10005
10006 \change_inserted 1075283030 1594226859
10007 \begin_inset Flex Code
10008 status collapsed
10009
10010 \begin_layout Plain Layout
10011
10012 \change_inserted 1075283030 1594226785
10013 DocBookForceAbstract
10014 \change_unchanged
10015
10016 \end_layout
10017
10018 \end_inset
10019
10020  [
10021 \begin_inset Flex Code
10022 status collapsed
10023
10024 \begin_layout Plain Layout
10025
10026 \change_inserted 1075283030 1594226804
10027 boolean
10028 \change_unchanged
10029
10030 \end_layout
10031
10032 \end_inset
10033
10034 ] If 
10035 \begin_inset Quotes eld
10036 \end_inset
10037
10038
10039 \family typewriter
10040 true
10041 \family default
10042
10043 \begin_inset Quotes erd
10044 \end_inset
10045
10046 , the root element will always have an 
10047 \family typewriter
10048 <abstract>
10049 \family default
10050  tag.
10051  The default value is 
10052 \begin_inset Quotes eld
10053 \end_inset
10054
10055
10056 \family typewriter
10057 false
10058 \family default
10059
10060 \begin_inset Quotes erd
10061 \end_inset
10062
10063 .
10064 \change_unchanged
10065
10066 \end_layout
10067
10068 \begin_layout Description
10069 \begin_inset Flex Code
10070 status collapsed
10071
10072 \begin_layout Plain Layout
10073 ExcludesModule
10074 \end_layout
10075
10076 \end_inset
10077
10078  [
10079 \begin_inset Flex Code
10080 status collapsed
10081
10082 \begin_layout Plain Layout
10083 <module>
10084 \end_layout
10085
10086 \end_inset
10087
10088 ] This tag indicates that the module (which is specified by filename without
10089  the 
10090 \begin_inset Flex Code
10091 status collapsed
10092
10093 \begin_layout Plain Layout
10094 .module
10095 \end_layout
10096
10097 \end_inset
10098
10099  extension) cannot be used with this document class.
10100  This might be used in a journal-specific layout file to prevent, say, the
10101  use of the 
10102 \begin_inset Flex Code
10103 status collapsed
10104
10105 \begin_layout Plain Layout
10106 theorems-sec
10107 \end_layout
10108
10109 \end_inset
10110
10111  module that numbers theorems by section.
10112  This tag may 
10113 \emph on
10114 not
10115 \emph default
10116  be used in a module.
10117  Modules have their own way of excluding other modules (see 
10118 \begin_inset CommandInset ref
10119 LatexCommand ref
10120 reference "subsec:Layout-modules"
10121
10122 \end_inset
10123
10124 ).
10125 \end_layout
10126
10127 \begin_layout Description
10128 \begin_inset Flex Code
10129 status collapsed
10130
10131 \begin_layout Plain Layout
10132 Float
10133 \end_layout
10134
10135 \end_inset
10136
10137  Defines a new float.
10138  See 
10139 \begin_inset CommandInset ref
10140 LatexCommand ref
10141 reference "subsec:Floats"
10142
10143 \end_inset
10144
10145  for details.
10146  Must end with 
10147 \begin_inset Quotes eld
10148 \end_inset
10149
10150
10151 \begin_inset Flex Code
10152 status collapsed
10153
10154 \begin_layout Plain Layout
10155 End
10156 \end_layout
10157
10158 \end_inset
10159
10160
10161 \begin_inset Quotes erd
10162 \end_inset
10163
10164 .
10165 \end_layout
10166
10167 \begin_layout Description
10168 \begin_inset Flex Code
10169 status collapsed
10170
10171 \begin_layout Plain Layout
10172 HTMLPreamble
10173 \end_layout
10174
10175 \end_inset
10176
10177  Sets the information that will be output in the 
10178 \begin_inset Flex Code
10179 status collapsed
10180
10181 \begin_layout Plain Layout
10182 <head>
10183 \end_layout
10184
10185 \end_inset
10186
10187  block when this document class is output to XHTML.
10188  Note that this will completely override any prior 
10189 \begin_inset Flex Code
10190 status collapsed
10191
10192 \begin_layout Plain Layout
10193 HTMLPreamble
10194 \end_layout
10195
10196 \end_inset
10197
10198  or 
10199 \begin_inset Flex Code
10200 status collapsed
10201
10202 \begin_layout Plain Layout
10203 AddToHTMLPreamble
10204 \end_layout
10205
10206 \end_inset
10207
10208  declarations.
10209  (Use
10210 \begin_inset Newline newline
10211 \end_inset
10212
10213
10214 \begin_inset Flex Code
10215 status collapsed
10216
10217 \begin_layout Plain Layout
10218 AddToHTMLPreamble
10219 \end_layout
10220
10221 \end_inset
10222
10223  if you just want to add material to the preamble.) Must end with 
10224 \begin_inset Quotes eld
10225 \end_inset
10226
10227
10228 \begin_inset Flex Code
10229 status collapsed
10230
10231 \begin_layout Plain Layout
10232 EndPreamble
10233 \end_layout
10234
10235 \end_inset
10236
10237
10238 \begin_inset Quotes erd
10239 \end_inset
10240
10241 .
10242 \end_layout
10243
10244 \begin_layout Description
10245 \begin_inset Flex Code
10246 status collapsed
10247
10248 \begin_layout Plain Layout
10249 HTMLTOCSection
10250 \end_layout
10251
10252 \end_inset
10253
10254  [
10255 \begin_inset Flex Code
10256 status collapsed
10257
10258 \begin_layout Plain Layout
10259 <style>
10260 \end_layout
10261
10262 \end_inset
10263
10264 ] The style to use for the table of contents, bibliography, and so forth,
10265  when the document is output to HTML.
10266  For articles, this should normally be 
10267 \begin_inset Flex Code
10268 status collapsed
10269
10270 \begin_layout Plain Layout
10271 Section
10272 \end_layout
10273
10274 \end_inset
10275
10276 ; for books 
10277 \begin_inset Flex Code
10278 status collapsed
10279
10280 \begin_layout Plain Layout
10281 Chapter
10282 \end_layout
10283
10284 \end_inset
10285
10286 .
10287  If it is not given, then \SpecialChar LyX
10288  will attempt to figure out which layout to use.
10289 \end_layout
10290
10291 \begin_layout Description
10292 \begin_inset Flex Code
10293 status collapsed
10294
10295 \begin_layout Plain Layout
10296 IfCounter
10297 \end_layout
10298
10299 \end_inset
10300
10301  [
10302 \begin_inset Flex Code
10303 status collapsed
10304
10305 \begin_layout Plain Layout
10306 <counter>
10307 \end_layout
10308
10309 \end_inset
10310
10311 ] Modifies the properties of the given counter.
10312  If the counter does not exist, the statement is ignored.
10313  Must end with 
10314 \begin_inset Quotes eld
10315 \end_inset
10316
10317
10318 \begin_inset Flex Code
10319 status collapsed
10320
10321 \begin_layout Plain Layout
10322 End
10323 \end_layout
10324
10325 \end_inset
10326
10327
10328 \begin_inset Quotes erd
10329 \end_inset
10330
10331 .
10332 \begin_inset Newline newline
10333 \end_inset
10334
10335 See 
10336 \begin_inset CommandInset ref
10337 LatexCommand ref
10338 reference "subsec:Counters"
10339
10340 \end_inset
10341
10342  for details on counters.
10343 \end_layout
10344
10345 \begin_layout Description
10346 \begin_inset Flex Code
10347 status collapsed
10348
10349 \begin_layout Plain Layout
10350 Input
10351 \end_layout
10352
10353 \end_inset
10354
10355  [
10356 \begin_inset Flex Code
10357 status collapsed
10358
10359 \begin_layout Plain Layout
10360 <filename>
10361 \end_layout
10362
10363 \end_inset
10364
10365 ] This allows you to include another layout definition file within yours
10366  to avoid duplicating commands.
10367  Common examples are the standard layout files, for example, 
10368 \begin_inset Flex Code
10369 status collapsed
10370
10371 \begin_layout Plain Layout
10372 stdclass.inc
10373 \end_layout
10374
10375 \end_inset
10376
10377 , which contains most of the basic layouts.
10378 \change_inserted -712698321 1611646803
10379
10380 \end_layout
10381
10382 \begin_layout Description
10383
10384 \change_inserted -712698321 1611646804
10385 \begin_inset Flex Code
10386 status collapsed
10387
10388 \begin_layout Plain Layout
10389
10390 \change_inserted -712698321 1611646837
10391 InputGlobal
10392 \end_layout
10393
10394 \end_inset
10395
10396  [
10397 \begin_inset Flex Code
10398 status collapsed
10399
10400 \begin_layout Plain Layout
10401
10402 \change_inserted -712698321 1611646804
10403 <filename>
10404 \end_layout
10405
10406 \end_inset
10407
10408 ] is a variant of the 
10409 \begin_inset Flex Code
10410 status collapsed
10411
10412 \begin_layout Plain Layout
10413
10414 \change_inserted -712698321 1611646804
10415 Input
10416 \end_layout
10417
10418 \end_inset
10419
10420  command which does not look for files in the user directory.
10421  This allows to create a file 
10422 \begin_inset Flex Code
10423 status collapsed
10424
10425 \begin_layout Plain Layout
10426
10427 \change_inserted -712698321 1611646804
10428 name.layout
10429 \end_layout
10430
10431 \end_inset
10432
10433  or 
10434 \begin_inset Flex Code
10435 status collapsed
10436
10437 \begin_layout Plain Layout
10438
10439 \change_inserted -712698321 1611646804
10440 name.inc
10441 \end_layout
10442
10443 \end_inset
10444
10445  in the user directory which includes a global file with the same name via
10446  
10447 \begin_inset Flex Code
10448 status collapsed
10449
10450 \begin_layout Plain Layout
10451
10452 \change_inserted -712698321 1611646853
10453 InputGlobal name
10454 \end_layout
10455
10456 \end_inset
10457
10458  or 
10459 \begin_inset Flex Code
10460 status collapsed
10461
10462 \begin_layout Plain Layout
10463
10464 \change_inserted -712698321 1611646855
10465 InputGlobal name.inc
10466 \end_layout
10467
10468 \end_inset
10469
10470 , respectively (with 
10471 \begin_inset Flex Code
10472 status collapsed
10473
10474 \begin_layout Plain Layout
10475
10476 \change_inserted -712698321 1611646804
10477 Input
10478 \end_layout
10479
10480 \end_inset
10481
10482 , the file would recursively include itself).
10483  This way, you can modify global files without having to completely copy
10484  them.
10485 \change_unchanged
10486
10487 \end_layout
10488
10489 \begin_layout Description
10490 \begin_inset Flex Code
10491 status collapsed
10492
10493 \begin_layout Plain Layout
10494 InsetLayout
10495 \end_layout
10496
10497 \end_inset
10498
10499  [
10500 \begin_inset Flex Code
10501 status collapsed
10502
10503 \begin_layout Plain Layout
10504 <type>
10505 \end_layout
10506
10507 \end_inset
10508
10509 ] This section (re-)defines the layout of an inset.
10510  It can be applied to an existing inset or to a new, user-defined inset,
10511  e.g., a new character style.
10512  Must end with 
10513 \begin_inset Quotes eld
10514 \end_inset
10515
10516
10517 \begin_inset Flex Code
10518 status collapsed
10519
10520 \begin_layout Plain Layout
10521 End
10522 \end_layout
10523
10524 \end_inset
10525
10526
10527 \begin_inset Quotes erd
10528 \end_inset
10529
10530 .
10531 \begin_inset Newline newline
10532 \end_inset
10533
10534 See 
10535 \begin_inset CommandInset ref
10536 LatexCommand ref
10537 reference "subsec:Flex-insets-and"
10538
10539 \end_inset
10540
10541  for more information.
10542  
10543 \end_layout
10544
10545 \begin_layout Description
10546 \begin_inset Flex Code
10547 status collapsed
10548
10549 \begin_layout Plain Layout
10550 LeftMargin
10551 \end_layout
10552
10553 \end_inset
10554
10555  [
10556 \begin_inset Flex Code
10557 status collapsed
10558
10559 \begin_layout Plain Layout
10560 string
10561 \end_layout
10562
10563 \end_inset
10564
10565 ] A string that indicates the width of the left margin on the screen, for
10566  example, 
10567 \begin_inset Quotes eld
10568 \end_inset
10569
10570
10571 \begin_inset Flex Code
10572 status collapsed
10573
10574 \begin_layout Plain Layout
10575 MMMMM
10576 \end_layout
10577
10578 \end_inset
10579
10580
10581 \begin_inset Quotes erd
10582 \end_inset
10583
10584 .
10585  (Note that this is not a `length', like 
10586 \begin_inset Quotes eld
10587 \end_inset
10588
10589 2ex
10590 \begin_inset Quotes erd
10591 \end_inset
10592
10593 .)
10594 \end_layout
10595
10596 \begin_layout Description
10597 \begin_inset Flex Code
10598 status collapsed
10599
10600 \begin_layout Plain Layout
10601 MaxCiteNames
10602 \end_layout
10603
10604 \end_inset
10605
10606  [
10607 \begin_inset Flex Code
10608 status collapsed
10609
10610 \begin_layout Plain Layout
10611 integer
10612 \end_layout
10613
10614 \end_inset
10615
10616 ] An integer that determines the maximal number of names displayed in an
10617  author-year citation before the citation switches to 
10618 \begin_inset Quotes eld
10619 \end_inset
10620
10621 FirstAuthor et al.
10622 \begin_inset Quotes erd
10623 \end_inset
10624
10625 .
10626  Primarily used in cite engine files (see 
10627 \begin_inset CommandInset ref
10628 LatexCommand ref
10629 reference "subsec:Cite-Engine-Files"
10630 plural "false"
10631 caps "false"
10632 noprefix "false"
10633
10634 \end_inset
10635
10636 ).
10637 \end_layout
10638
10639 \begin_layout Description
10640 \begin_inset Flex Code
10641 status collapsed
10642
10643 \begin_layout Plain Layout
10644 ModifyStyle
10645 \end_layout
10646
10647 \end_inset
10648
10649  [
10650 \begin_inset Flex Code
10651 status collapsed
10652
10653 \begin_layout Plain Layout
10654 <style>
10655 \end_layout
10656
10657 \end_inset
10658
10659 ] Modifies the properties of the given paragraph style.
10660  If the style does not exist, this section is ignored.
10661  Must end with 
10662 \begin_inset Quotes eld
10663 \end_inset
10664
10665
10666 \begin_inset Flex Code
10667 status collapsed
10668
10669 \begin_layout Plain Layout
10670 End
10671 \end_layout
10672
10673 \end_inset
10674
10675
10676 \begin_inset Quotes erd
10677 \end_inset
10678
10679 .
10680 \end_layout
10681
10682 \begin_layout Description
10683 \begin_inset Flex Code
10684 status collapsed
10685
10686 \begin_layout Plain Layout
10687 NoCounter
10688 \end_layout
10689
10690 \end_inset
10691
10692  [
10693 \begin_inset Flex Code
10694 status collapsed
10695
10696 \begin_layout Plain Layout
10697 <counter>
10698 \end_layout
10699
10700 \end_inset
10701
10702 ] Deletes an existing counter, usually one defined in an included file.
10703 \end_layout
10704
10705 \begin_layout Description
10706 \begin_inset Flex Code
10707 status collapsed
10708
10709 \begin_layout Plain Layout
10710 NoFloat
10711 \end_layout
10712
10713 \end_inset
10714
10715  [
10716 \begin_inset Flex Code
10717 status collapsed
10718
10719 \begin_layout Plain Layout
10720 <float>
10721 \end_layout
10722
10723 \end_inset
10724
10725 ] Deletes an existing float.
10726  This is particularly useful when you want to suppress a float that has
10727  been defined in an input file.
10728 \end_layout
10729
10730 \begin_layout Description
10731 \begin_inset Flex Code
10732 status collapsed
10733
10734 \begin_layout Plain Layout
10735 NoStyle
10736 \end_layout
10737
10738 \end_inset
10739
10740  [
10741 \begin_inset Flex Code
10742 status collapsed
10743
10744 \begin_layout Plain Layout
10745 <style>
10746 \end_layout
10747
10748 \end_inset
10749
10750 ] Deletes an existing style.
10751 \end_layout
10752
10753 \begin_layout Description
10754 \begin_inset Flex Code
10755 status collapsed
10756
10757 \begin_layout Plain Layout
10758 OutlinerName
10759 \end_layout
10760
10761 \end_inset
10762
10763  [
10764 \begin_inset Flex Code
10765 status collapsed
10766
10767 \begin_layout Plain Layout
10768 <type>
10769 \end_layout
10770
10771 \end_inset
10772
10773 ] [
10774 \begin_inset Flex Code
10775 status collapsed
10776
10777 \begin_layout Plain Layout
10778 <string>
10779 \end_layout
10780
10781 \end_inset
10782
10783 ] Define a new table of contents with type 
10784 \begin_inset Flex Code
10785 status collapsed
10786
10787 \begin_layout Plain Layout
10788 <type>
10789 \end_layout
10790
10791 \end_inset
10792
10793  and name 
10794 \begin_inset Flex Code
10795 status collapsed
10796
10797 \begin_layout Plain Layout
10798 <string>
10799 \end_layout
10800
10801 \end_inset
10802
10803 .
10804  See also the AddToToc commands.
10805 \end_layout
10806
10807 \begin_layout Description
10808 \begin_inset Flex Code
10809 status collapsed
10810
10811 \begin_layout Plain Layout
10812 OutputFormat
10813 \end_layout
10814
10815 \end_inset
10816
10817  [
10818 \begin_inset Flex Code
10819 status collapsed
10820
10821 \begin_layout Plain Layout
10822 <format>
10823 \end_layout
10824
10825 \end_inset
10826
10827 ] The file format (as defined in the \SpecialChar LyX
10828  preferences) produced by this document
10829  class.
10830  It is mainly useful when 
10831 \begin_inset Flex Code
10832 status collapsed
10833
10834 \begin_layout Plain Layout
10835 OutputType
10836 \end_layout
10837
10838 \end_inset
10839
10840  is 
10841 \begin_inset Flex Code
10842 status collapsed
10843
10844 \begin_layout Plain Layout
10845 literate
10846 \end_layout
10847
10848 \end_inset
10849
10850  and one wants to define a new type of literate document.
10851  The format is reset to 
10852 \change_deleted 5863208 1594239413
10853
10854 \begin_inset Quotes eld
10855 \end_inset
10856
10857
10858 \begin_inset Flex Code
10859 status collapsed
10860
10861 \begin_layout Plain Layout
10862 docbook
10863 \end_layout
10864
10865 \end_inset
10866
10867
10868 \begin_inset Quotes erd
10869 \end_inset
10870
10871  or
10872 \change_unchanged
10873  
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 latex
10883 \end_layout
10884
10885 \end_inset
10886
10887
10888 \begin_inset Quotes erd
10889 \end_inset
10890
10891  when the corresponding 
10892 \begin_inset Flex Code
10893 status collapsed
10894
10895 \begin_layout Plain Layout
10896 OutputType
10897 \end_layout
10898
10899 \end_inset
10900
10901  parameter is encountered.
10902 \end_layout
10903
10904 \begin_layout Description
10905 \begin_inset Flex Code
10906 status collapsed
10907
10908 \begin_layout Plain Layout
10909 OutputType
10910 \end_layout
10911
10912 \end_inset
10913
10914  [
10915 \begin_inset Flex Code
10916 status collapsed
10917
10918 \begin_layout Plain Layout
10919
10920 \emph on
10921 lat
10922 \emph default
10923 ex
10924 \end_layout
10925
10926 \end_inset
10927
10928
10929 \change_deleted 5863208 1594239430
10930
10931 \begin_inset Flex Code
10932 status collapsed
10933
10934 \begin_layout Plain Layout
10935 docbook
10936 \end_layout
10937
10938 \end_inset
10939
10940 ,
10941 \change_unchanged
10942  
10943 \begin_inset Flex Code
10944 status collapsed
10945
10946 \begin_layout Plain Layout
10947 literate
10948 \end_layout
10949
10950 \end_inset
10951
10952 ] Specifies what sort of output documents using this class will produce.
10953 \end_layout
10954
10955 \begin_layout Description
10956 \begin_inset Flex Code
10957 status collapsed
10958
10959 \begin_layout Plain Layout
10960 PackageOptions
10961 \end_layout
10962
10963 \end_inset
10964
10965  [
10966 \begin_inset Flex Code
10967 status collapsed
10968
10969 \begin_layout Plain Layout
10970 string
10971 \end_layout
10972
10973 \end_inset
10974
10975  
10976 \begin_inset Flex Code
10977 status collapsed
10978
10979 \begin_layout Plain Layout
10980 string
10981 \end_layout
10982
10983 \end_inset
10984
10985 ] Specifies options, given in the second string, for the package named by
10986  the first string.
10987  For example, 
10988 \begin_inset Quotes eld
10989 \end_inset
10990
10991
10992 \begin_inset Flex Code
10993 status collapsed
10994
10995 \begin_layout Plain Layout
10996 PackageOptions natbib square
10997 \end_layout
10998
10999 \end_inset
11000
11001
11002 \begin_inset Quotes erd
11003 \end_inset
11004
11005  will cause 
11006 \begin_inset Flex Code
11007 status collapsed
11008
11009 \begin_layout Plain Layout
11010 natbib
11011 \end_layout
11012
11013 \end_inset
11014
11015  to be loaded with the 
11016 \begin_inset Flex Code
11017 status collapsed
11018
11019 \begin_layout Plain Layout
11020 square
11021 \end_layout
11022
11023 \end_inset
11024
11025  option.
11026  (For \SpecialChar TeX
11027 perts, this causes \SpecialChar LyX
11028  to output: 
11029 \begin_inset Flex Code
11030 status collapsed
11031
11032 \begin_layout Plain Layout
11033
11034 \backslash
11035 PassOptionsToPackage{natbib}{square}
11036 \end_layout
11037
11038 \end_inset
11039
11040  prior to loading 
11041 \begin_inset Flex Code
11042 status collapsed
11043
11044 \begin_layout Plain Layout
11045 natbib
11046 \end_layout
11047
11048 \end_inset
11049
11050 .)
11051 \change_inserted -712698321 1565102364
11052
11053 \end_layout
11054
11055 \begin_layout Description
11056
11057 \change_inserted -712698321 1565102470
11058 \begin_inset Flex Code
11059 status collapsed
11060
11061 \begin_layout Plain Layout
11062
11063 \change_inserted -712698321 1565102365
11064 PageSize
11065 \change_unchanged
11066
11067 \end_layout
11068
11069 \end_inset
11070
11071  [
11072 \begin_inset Flex Code
11073 status collapsed
11074
11075 \begin_layout Plain Layout
11076
11077 \change_inserted -712698321 1565105222
11078
11079 \emph on
11080 custom
11081 \emph default
11082 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
11083  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
11084 \change_unchanged
11085
11086 \end_layout
11087
11088 \end_inset
11089
11090 ] The default page size.
11091  This is used by some converters.
11092 \change_unchanged
11093
11094 \end_layout
11095
11096 \begin_layout Description
11097 \begin_inset Flex Code
11098 status collapsed
11099
11100 \begin_layout Plain Layout
11101 PageStyle
11102 \end_layout
11103
11104 \end_inset
11105
11106  [
11107 \begin_inset Flex Code
11108 status collapsed
11109
11110 \begin_layout Plain Layout
11111
11112 \emph on
11113 plain
11114 \end_layout
11115
11116 \end_inset
11117
11118
11119 \begin_inset Flex Code
11120 status collapsed
11121
11122 \begin_layout Plain Layout
11123 empty
11124 \end_layout
11125
11126 \end_inset
11127
11128
11129 \begin_inset Flex Code
11130 status collapsed
11131
11132 \begin_layout Plain Layout
11133 headings
11134 \end_layout
11135
11136 \end_inset
11137
11138 ] The default pagestyle.
11139  Can be changed in the 
11140 \begin_inset Flex Noun
11141 status collapsed
11142
11143 \begin_layout Plain Layout
11144 Document\SpecialChar menuseparator
11145 Settings
11146 \end_layout
11147
11148 \end_inset
11149
11150  dialog.
11151 \end_layout
11152
11153 \begin_layout Description
11154 \begin_inset Flex Code
11155 status collapsed
11156
11157 \begin_layout Plain Layout
11158 Preamble
11159 \end_layout
11160
11161 \end_inset
11162
11163  Sets the preamble for the \SpecialChar LaTeX
11164  document.
11165  Note that this will completely override any prior 
11166 \begin_inset Flex Code
11167 status collapsed
11168
11169 \begin_layout Plain Layout
11170 Preamble
11171 \end_layout
11172
11173 \end_inset
11174
11175  or 
11176 \begin_inset Flex Code
11177 status collapsed
11178
11179 \begin_layout Plain Layout
11180 AddToPreamble
11181 \end_layout
11182
11183 \end_inset
11184
11185  declarations.
11186  (Use 
11187 \begin_inset Flex Code
11188 status collapsed
11189
11190 \begin_layout Plain Layout
11191 AddToPreamble
11192 \end_layout
11193
11194 \end_inset
11195
11196  if you just want to add material to the preamble.) Must end with 
11197 \begin_inset Quotes eld
11198 \end_inset
11199
11200
11201 \begin_inset Flex Code
11202 status collapsed
11203
11204 \begin_layout Plain Layout
11205 EndPreamble
11206 \end_layout
11207
11208 \end_inset
11209
11210
11211 \begin_inset Quotes erd
11212 \end_inset
11213
11214 .
11215 \end_layout
11216
11217 \begin_layout Description
11218 \begin_inset Flex Code
11219 status collapsed
11220
11221 \begin_layout Plain Layout
11222 Provides
11223 \end_layout
11224
11225 \end_inset
11226
11227  [
11228 \begin_inset Flex Code
11229 status collapsed
11230
11231 \begin_layout Plain Layout
11232 string
11233 \end_layout
11234
11235 \end_inset
11236
11237 ] [
11238 \begin_inset Flex Code
11239 status collapsed
11240
11241 \begin_layout Plain Layout
11242
11243 \emph on
11244 0
11245 \end_layout
11246
11247 \end_inset
11248
11249 ,
11250 \begin_inset space \thinspace{}
11251 \end_inset
11252
11253
11254 \begin_inset Flex Code
11255 status collapsed
11256
11257 \begin_layout Plain Layout
11258 1
11259 \end_layout
11260
11261 \end_inset
11262
11263 ] Whether the class already provides the feature 
11264 \begin_inset Flex Code
11265 status collapsed
11266
11267 \begin_layout Plain Layout
11268 string
11269 \end_layout
11270
11271 \end_inset
11272
11273 .
11274  A feature is in general the name of a package (e.
11275 \begin_inset space \thinspace{}
11276 \end_inset
11277
11278 g.
11279 \begin_inset space \space{}
11280 \end_inset
11281
11282
11283 \begin_inset Flex Code
11284 status collapsed
11285
11286 \begin_layout Plain Layout
11287 amsmath
11288 \end_layout
11289
11290 \end_inset
11291
11292  or 
11293 \begin_inset Flex Code
11294 status collapsed
11295
11296 \begin_layout Plain Layout
11297 makeidx
11298 \end_layout
11299
11300 \end_inset
11301
11302 ) or a macro (e.
11303 \begin_inset space \thinspace{}
11304 \end_inset
11305
11306 g.
11307 \begin_inset space \space{}
11308 \end_inset
11309
11310
11311 \begin_inset Flex Code
11312 status collapsed
11313
11314 \begin_layout Plain Layout
11315 url
11316 \end_layout
11317
11318 \end_inset
11319
11320  or 
11321 \begin_inset Flex Code
11322 status collapsed
11323
11324 \begin_layout Plain Layout
11325 boldsymbol
11326 \end_layout
11327
11328 \end_inset
11329
11330 ).
11331  See 
11332 \begin_inset CommandInset ref
11333 LatexCommand ref
11334 reference "chap:List-of-functions"
11335
11336 \end_inset
11337
11338  for the list of features.
11339 \end_layout
11340
11341 \begin_layout Description
11342 \begin_inset Flex Code
11343 status collapsed
11344
11345 \begin_layout Plain Layout
11346 ProvidesModule
11347 \end_layout
11348
11349 \end_inset
11350
11351  [
11352 \begin_inset Flex Code
11353 status collapsed
11354
11355 \begin_layout Plain Layout
11356 string
11357 \end_layout
11358
11359 \end_inset
11360
11361 ] Indicates that this layout provides the functionality of the module mentioned,
11362  which should be specified by the filename without the 
11363 \begin_inset Flex Code
11364 status collapsed
11365
11366 \begin_layout Plain Layout
11367 .module
11368 \end_layout
11369
11370 \end_inset
11371
11372  extension.
11373  This will typically be used if the layout includes the module directly,
11374  rather than using the 
11375 \begin_inset Flex Code
11376 status collapsed
11377
11378 \begin_layout Plain Layout
11379 DefaultModule
11380 \end_layout
11381
11382 \end_inset
11383
11384  tag to indicate that it ought to be used.
11385  It could also be used in a module that provided an alternate implementation
11386  of the same functionality.
11387 \end_layout
11388
11389 \begin_layout Description
11390 \begin_inset Flex Code
11391 status collapsed
11392
11393 \begin_layout Plain Layout
11394 ProvideStyle
11395 \end_layout
11396
11397 \end_inset
11398
11399  [
11400 \begin_inset Flex Code
11401 status collapsed
11402
11403 \begin_layout Plain Layout
11404 <style>
11405 \end_layout
11406
11407 \end_inset
11408
11409 ] Creates a new paragraph style if it does not already exist.
11410  If the style does exist, this section is ignored.
11411  Must end with 
11412 \begin_inset Quotes eld
11413 \end_inset
11414
11415
11416 \begin_inset Flex Code
11417 status collapsed
11418
11419 \begin_layout Plain Layout
11420 End
11421 \end_layout
11422
11423 \end_inset
11424
11425
11426 \begin_inset Quotes erd
11427 \end_inset
11428
11429 .
11430 \end_layout
11431
11432 \begin_layout Description
11433 \begin_inset Flex Code
11434 status collapsed
11435
11436 \begin_layout Plain Layout
11437 Requires
11438 \end_layout
11439
11440 \end_inset
11441
11442  [
11443 \begin_inset Flex Code
11444 status collapsed
11445
11446 \begin_layout Plain Layout
11447 string
11448 \end_layout
11449
11450 \end_inset
11451
11452 ] Whether the class requires the feature 
11453 \begin_inset Flex Code
11454 status collapsed
11455
11456 \begin_layout Plain Layout
11457 string
11458 \end_layout
11459
11460 \end_inset
11461
11462 .
11463  Multiple features must be separated by commas.
11464  Note that you can only request supported features.
11465  (See 
11466 \begin_inset CommandInset ref
11467 LatexCommand ref
11468 reference "chap:List-of-functions"
11469
11470 \end_inset
11471
11472  for the list of features.).
11473  If you require a package with specific options, you can additionally use
11474  
11475 \begin_inset Flex Code
11476 status collapsed
11477
11478 \begin_layout Plain Layout
11479 PackageOptions
11480 \end_layout
11481
11482 \end_inset
11483
11484 .
11485 \end_layout
11486
11487 \begin_layout Description
11488 \begin_inset Flex Code
11489 status collapsed
11490
11491 \begin_layout Plain Layout
11492 RightMargin
11493 \end_layout
11494
11495 \end_inset
11496
11497  [
11498 \begin_inset Flex Code
11499 status collapsed
11500
11501 \begin_layout Plain Layout
11502 string
11503 \end_layout
11504
11505 \end_inset
11506
11507 ] A string that indicates the width of the right margin on the screen, for
11508  example, 
11509 \begin_inset Quotes eld
11510 \end_inset
11511
11512
11513 \begin_inset Flex Code
11514 status collapsed
11515
11516 \begin_layout Plain Layout
11517 MMMMM
11518 \end_layout
11519
11520 \end_inset
11521
11522
11523 \begin_inset Quotes erd
11524 \end_inset
11525
11526 .
11527 \end_layout
11528
11529 \begin_layout Description
11530 \begin_inset Flex Code
11531 status collapsed
11532
11533 \begin_layout Plain Layout
11534 SecNumDepth
11535 \end_layout
11536
11537 \end_inset
11538
11539  [
11540 \begin_inset Flex Code
11541 status collapsed
11542
11543 \begin_layout Plain Layout
11544 int=3
11545 \end_layout
11546
11547 \end_inset
11548
11549 ] Sets which divisions get numbered.
11550  Corresponds to the
11551 \begin_inset Newline newline
11552 \end_inset
11553
11554
11555 \begin_inset Flex Code
11556 status collapsed
11557
11558 \begin_layout Plain Layout
11559 secnumdepth
11560 \end_layout
11561
11562 \end_inset
11563
11564  counter in \SpecialChar LaTeX
11565 .
11566 \end_layout
11567
11568 \begin_layout Description
11569 \begin_inset Flex Code
11570 status collapsed
11571
11572 \begin_layout Plain Layout
11573 Sides
11574 \end_layout
11575
11576 \end_inset
11577
11578  [
11579 \begin_inset Flex Code
11580 status collapsed
11581
11582 \begin_layout Plain Layout
11583
11584 \emph on
11585 1
11586 \end_layout
11587
11588 \end_inset
11589
11590 ,
11591 \begin_inset space \thinspace{}
11592 \end_inset
11593
11594
11595 \begin_inset Flex Code
11596 status collapsed
11597
11598 \begin_layout Plain Layout
11599 2
11600 \end_layout
11601
11602 \end_inset
11603
11604 ] Whether the class-default should be printing on one or both sides of the
11605  paper.
11606  Can be changed in the 
11607 \begin_inset Flex Noun
11608 status collapsed
11609
11610 \begin_layout Plain Layout
11611 Document\SpecialChar menuseparator
11612 Settings
11613 \end_layout
11614
11615 \end_inset
11616
11617  dialog.
11618 \end_layout
11619
11620 \begin_layout Description
11621 \begin_inset Flex Code
11622 status collapsed
11623
11624 \begin_layout Plain Layout
11625 Style
11626 \end_layout
11627
11628 \end_inset
11629
11630  [
11631 \begin_inset Flex Code
11632 status collapsed
11633
11634 \begin_layout Plain Layout
11635 <name>
11636 \end_layout
11637
11638 \end_inset
11639
11640 ] This sequence defines a paragraph style.
11641  If the style does not yet exist, it is created; if it does exist, its parameter
11642 s are modified.
11643  Must end with 
11644 \begin_inset Quotes eld
11645 \end_inset
11646
11647
11648 \begin_inset Flex Code
11649 status collapsed
11650
11651 \begin_layout Plain Layout
11652 End
11653 \end_layout
11654
11655 \end_inset
11656
11657
11658 \begin_inset Quotes erd
11659 \end_inset
11660
11661 .
11662 \begin_inset Newline newline
11663 \end_inset
11664
11665 See 
11666 \begin_inset CommandInset ref
11667 LatexCommand ref
11668 reference "subsec:Paragraph-Styles"
11669
11670 \end_inset
11671
11672  for details on paragraph styles.
11673 \change_inserted -712698321 1553617804
11674
11675 \end_layout
11676
11677 \begin_layout Description
11678
11679 \change_inserted -712698321 1553617862
11680 \begin_inset Flex Code
11681 status collapsed
11682
11683 \begin_layout Plain Layout
11684
11685 \change_inserted -712698321 1553617809
11686 TableStyle
11687 \change_unchanged
11688
11689 \end_layout
11690
11691 \end_inset
11692
11693  [
11694 \begin_inset Flex Code
11695 status collapsed
11696
11697 \begin_layout Plain Layout
11698
11699 \change_inserted -712698321 1553617805
11700 <name>
11701 \change_unchanged
11702
11703 \end_layout
11704
11705 \end_inset
11706
11707 ] defines the default table style that is used when inserting a table.
11708  The following styles are available:
11709 \end_layout
11710
11711 \begin_deeper
11712 \begin_layout Itemize
11713
11714 \change_inserted -712698321 1554308039
11715 \begin_inset Flex Code
11716 status collapsed
11717
11718 \begin_layout Plain Layout
11719
11720 \change_inserted -712698321 1554307928
11721 Formal_with_Footline
11722 \change_unchanged
11723
11724 \end_layout
11725
11726 \end_inset
11727
11728 : formal (
11729 \begin_inset Quotes eld
11730 \end_inset
11731
11732 booktabs
11733 \begin_inset Quotes erd
11734 \end_inset
11735
11736 ) style with horizontal lines only, using a bold top and bottom line, the
11737  first and last row are additionally separated from the table body with
11738  a thin middle line.
11739 \end_layout
11740
11741 \begin_layout Itemize
11742
11743 \change_inserted -712698321 1554308087
11744 \begin_inset Flex Code
11745 status collapsed
11746
11747 \begin_layout Plain Layout
11748
11749 \change_inserted -712698321 1554308042
11750 Formal_without_Footline
11751 \change_unchanged
11752
11753 \end_layout
11754
11755 \end_inset
11756
11757 : same as the above, but the last row is not separated with a middle line
11758  from the body.
11759 \end_layout
11760
11761 \begin_layout Itemize
11762
11763 \change_inserted -712698321 1553618031
11764 \begin_inset Flex Code
11765 status collapsed
11766
11767 \begin_layout Plain Layout
11768
11769 \change_inserted -712698321 1553618006
11770 Simple_Grid
11771 \change_unchanged
11772
11773 \end_layout
11774
11775 \end_inset
11776
11777 : Simple table lines.
11778 \end_layout
11779
11780 \begin_layout Itemize
11781
11782 \change_inserted -712698321 1553618309
11783 \begin_inset Flex Code
11784 status collapsed
11785
11786 \begin_layout Plain Layout
11787
11788 \change_inserted -712698321 1553618031
11789 Grid_with_Head
11790 \change_unchanged
11791
11792 \end_layout
11793
11794 \end_inset
11795
11796 : Like 
11797 \begin_inset Flex Code
11798 status collapsed
11799
11800 \begin_layout Plain Layout
11801
11802 \change_inserted -712698321 1553618043
11803 Simple_Grid
11804 \change_unchanged
11805
11806 \end_layout
11807
11808 \end_inset
11809
11810 , but with the header column offset with a second horizontal line.
11811  This is also the default style of \SpecialChar LyX
11812 .
11813 \end_layout
11814
11815 \begin_layout Itemize
11816
11817 \change_inserted -712698321 1553618280
11818 \begin_inset Flex Code
11819 status collapsed
11820
11821 \begin_layout Plain Layout
11822
11823 \change_inserted -712698321 1553618261
11824 No_Borders
11825 \change_unchanged
11826
11827 \end_layout
11828
11829 \end_inset
11830
11831 : Table without lines.
11832 \change_unchanged
11833
11834 \end_layout
11835
11836 \end_deeper
11837 \begin_layout Description
11838 \begin_inset Flex Code
11839 status collapsed
11840
11841 \begin_layout Plain Layout
11842 TitleLatexName
11843 \end_layout
11844
11845 \end_inset
11846
11847  [
11848 \begin_inset Flex Code
11849 status collapsed
11850
11851 \begin_layout Plain Layout
11852 string="maketitle"
11853 \end_layout
11854
11855 \end_inset
11856
11857 ] The name of the command or environment to be used with 
11858 \begin_inset Flex Code
11859 status collapsed
11860
11861 \begin_layout Plain Layout
11862 TitleLatexType
11863 \end_layout
11864
11865 \end_inset
11866
11867 .
11868 \end_layout
11869
11870 \begin_layout Description
11871 \begin_inset Flex Code
11872 status collapsed
11873
11874 \begin_layout Plain Layout
11875 TitleLatexType
11876 \end_layout
11877
11878 \end_inset
11879
11880  [
11881 \begin_inset Flex Code
11882 status collapsed
11883
11884 \begin_layout Plain Layout
11885
11886 \emph on
11887 CommandAfter
11888 \end_layout
11889
11890 \end_inset
11891
11892
11893 \begin_inset Flex Code
11894 status collapsed
11895
11896 \begin_layout Plain Layout
11897 Environment
11898 \end_layout
11899
11900 \end_inset
11901
11902 ] Indicates what kind of markup is used to define the title of a document.
11903  
11904 \begin_inset Flex Code
11905 status collapsed
11906
11907 \begin_layout Plain Layout
11908 CommandAfter
11909 \end_layout
11910
11911 \end_inset
11912
11913  means that the macro with name 
11914 \begin_inset Flex Code
11915 status collapsed
11916
11917 \begin_layout Plain Layout
11918 TitleLatexName
11919 \end_layout
11920
11921 \end_inset
11922
11923  will be inserted after the last layout which has 
11924 \begin_inset Quotes eld
11925 \end_inset
11926
11927
11928 \begin_inset Flex Code
11929 status collapsed
11930
11931 \begin_layout Plain Layout
11932 InTitle
11933 \begin_inset space ~
11934 \end_inset
11935
11936 1
11937 \end_layout
11938
11939 \end_inset
11940
11941
11942 \begin_inset Quotes erd
11943 \end_inset
11944
11945 .
11946  
11947 \begin_inset Flex Code
11948 status collapsed
11949
11950 \begin_layout Plain Layout
11951 Environment
11952 \end_layout
11953
11954 \end_inset
11955
11956  corresponds to the case where all layouts which have 
11957 \begin_inset Quotes eld
11958 \end_inset
11959
11960
11961 \begin_inset Flex Code
11962 status collapsed
11963
11964 \begin_layout Plain Layout
11965 InTitle
11966 \begin_inset space ~
11967 \end_inset
11968
11969 1
11970 \end_layout
11971
11972 \end_inset
11973
11974
11975 \begin_inset Quotes erd
11976 \end_inset
11977
11978  should be enclosed into the 
11979 \begin_inset Flex Code
11980 status collapsed
11981
11982 \begin_layout Plain Layout
11983 TitleLatexName
11984 \end_layout
11985
11986 \end_inset
11987
11988  environment.
11989 \end_layout
11990
11991 \begin_layout Description
11992 \begin_inset Flex Code
11993 status collapsed
11994
11995 \begin_layout Plain Layout
11996 TocDepth
11997 \end_layout
11998
11999 \end_inset
12000
12001  [
12002 \begin_inset Flex Code
12003 status collapsed
12004
12005 \begin_layout Plain Layout
12006 int=3
12007 \end_layout
12008
12009 \end_inset
12010
12011 ] Sets which divisions are included in the table of contents.
12012  Corresponds to the 
12013 \begin_inset Flex Code
12014 status collapsed
12015
12016 \begin_layout Plain Layout
12017 tocdepth
12018 \end_layout
12019
12020 \end_inset
12021
12022  counter in \SpecialChar LaTeX
12023 .
12024 \end_layout
12025
12026 \begin_layout Subsection
12027 \begin_inset Flex Code
12028 status collapsed
12029
12030 \begin_layout Plain Layout
12031 ClassOptions
12032 \end_layout
12033
12034 \end_inset
12035
12036  section
12037 \begin_inset CommandInset label
12038 LatexCommand label
12039 name "subsec:ClassOptions"
12040
12041 \end_inset
12042
12043
12044 \end_layout
12045
12046 \begin_layout Standard
12047 The 
12048 \begin_inset Flex Code
12049 status collapsed
12050
12051 \begin_layout Plain Layout
12052 ClassOptions
12053 \end_layout
12054
12055 \end_inset
12056
12057  section can contain the following entries:
12058 \end_layout
12059
12060 \begin_layout Description
12061 \begin_inset Flex Code
12062 status collapsed
12063
12064 \begin_layout Plain Layout
12065 FontSize
12066 \end_layout
12067
12068 \end_inset
12069
12070  [
12071 \begin_inset Flex Code
12072 status collapsed
12073
12074 \begin_layout Plain Layout
12075 string="10|11|12"
12076 \end_layout
12077
12078 \end_inset
12079
12080 ] The list of available font sizes for the document's main font, separated
12081  by 
12082 \begin_inset Quotes eld
12083 \end_inset
12084
12085
12086 \begin_inset Flex Code
12087 status collapsed
12088
12089 \begin_layout Plain Layout
12090 |
12091 \end_layout
12092
12093 \end_inset
12094
12095
12096 \begin_inset Quotes erd
12097 \end_inset
12098
12099 .
12100
12101 \change_inserted -712698321 1565110196
12102  Any number is possible.
12103 \end_layout
12104
12105 \begin_layout Description
12106
12107 \change_inserted -712698321 1565110259
12108 \begin_inset Flex Code
12109 status collapsed
12110
12111 \begin_layout Plain Layout
12112
12113 \change_inserted -712698321 1565110199
12114 FontSizeFormat
12115 \change_unchanged
12116
12117 \end_layout
12118
12119 \end_inset
12120
12121  [
12122 \begin_inset Flex Code
12123 status collapsed
12124
12125 \begin_layout Plain Layout
12126
12127 \change_inserted -712698321 1565110196
12128 string
12129 \change_unchanged
12130
12131 \end_layout
12132
12133 \end_inset
12134
12135 ] The format for the font size option.
12136  Default: 
12137 \begin_inset Flex Code
12138 status collapsed
12139
12140 \begin_layout Plain Layout
12141
12142 \change_inserted -712698321 1565110238
12143 $$spt
12144 \change_unchanged
12145
12146 \end_layout
12147
12148 \end_inset
12149
12150 .
12151  
12152 \begin_inset Flex Code
12153 status collapsed
12154
12155 \begin_layout Plain Layout
12156
12157 \change_inserted -712698321 1565110248
12158 $$s
12159 \change_unchanged
12160
12161 \end_layout
12162
12163 \end_inset
12164
12165  is a placeholder for the font size.
12166 \change_unchanged
12167
12168 \end_layout
12169
12170 \begin_layout Description
12171
12172 \change_deleted 5863208 1594239483
12173 \begin_inset Flex Code
12174 status collapsed
12175
12176 \begin_layout Plain Layout
12177 Header
12178 \end_layout
12179
12180 \end_inset
12181
12182  Used to set the DTD line with XML-based output classes.
12183  E.
12184 \begin_inset space \thinspace{}
12185 \end_inset
12186
12187 g.: PUBLIC 
12188 \begin_inset Quotes eld
12189 \end_inset
12190
12191 -//OASIS//DTD DocBook V4.2//EN
12192 \begin_inset Quotes erd
12193 \end_inset
12194
12195 .
12196 \change_inserted -712698321 1565101761
12197
12198 \end_layout
12199
12200 \begin_layout Description
12201
12202 \change_inserted -712698321 1565180598
12203 \begin_inset Flex Code
12204 status collapsed
12205
12206 \begin_layout Plain Layout
12207
12208 \change_inserted -712698321 1565101918
12209 PageSize
12210 \change_unchanged
12211
12212 \end_layout
12213
12214 \end_inset
12215
12216  [
12217 \begin_inset Flex Code
12218 status collapsed
12219
12220 \begin_layout Plain Layout
12221
12222 \change_inserted -712698321 1565105399
12223 string="letter|\SpecialChar allowbreak
12224 legal|\SpecialChar allowbreak
12225 executive|\SpecialChar allowbreak
12226 a0|\SpecialChar allowbreak
12227 a1|\SpecialChar allowbreak
12228 a2|\SpecialChar allowbreak
12229 a3|\SpecialChar allowbreak
12230 a4|\SpecialChar allowbreak
12231 a5|\SpecialChar allowbreak
12232 a6|\SpecialChar allowbreak
12233 b0|\SpecialChar allowbreak
12234 b1|\SpecialChar allowbreak
12235 b2|\SpecialChar allowbreak
12236 b3|\SpecialChar allowbreak
12237 b4|\SpecialChar allowbreak
12238 b5|\SpecialChar allowbreak
12239 b6|\SpecialChar allowbreak
12240 c0|\SpecialChar allowbreak
12241 c1|\SpecialChar allowbreak
12242 c
12243 2|\SpecialChar allowbreak
12244 c3|\SpecialChar allowbreak
12245 c4|\SpecialChar allowbreak
12246 c5|\SpecialChar allowbreak
12247 c6|\SpecialChar allowbreak
12248 b0j|\SpecialChar allowbreak
12249 b1j|\SpecialChar allowbreak
12250 b2j|\SpecialChar allowbreak
12251 b3j|\SpecialChar allowbreak
12252 b4j|\SpecialChar allowbreak
12253 b5j|\SpecialChar allowbreak
12254 b6j"
12255 \change_unchanged
12256
12257 \end_layout
12258
12259 \end_inset
12260
12261 ] The list of available page sizes, separated by 
12262 \begin_inset Quotes eld
12263 \end_inset
12264
12265
12266 \begin_inset Flex Code
12267 status collapsed
12268
12269 \begin_layout Plain Layout
12270
12271 \change_inserted -712698321 1565101779
12272 |
12273 \change_unchanged
12274
12275 \end_layout
12276
12277 \end_inset
12278
12279
12280 \begin_inset Quotes erd
12281 \end_inset
12282
12283 .
12284  Currently, only the listed sizes are supported.
12285  Other sizes might be entered as custom class option.
12286 \end_layout
12287
12288 \begin_layout Description
12289
12290 \change_inserted -712698321 1565180623
12291 \begin_inset Flex Code
12292 status collapsed
12293
12294 \begin_layout Plain Layout
12295
12296 \change_inserted -712698321 1565180605
12297 PageSizeFormat
12298 \change_unchanged
12299
12300 \end_layout
12301
12302 \end_inset
12303
12304  [
12305 \begin_inset Flex Code
12306 status collapsed
12307
12308 \begin_layout Plain Layout
12309
12310 \change_inserted -712698321 1565180601
12311 string
12312 \change_unchanged
12313
12314 \end_layout
12315
12316 \end_inset
12317
12318 ] The format for the page size option.
12319  Default: 
12320 \begin_inset Flex Code
12321 status collapsed
12322
12323 \begin_layout Plain Layout
12324
12325 \change_inserted -712698321 1565180618
12326 $$spaper
12327 \change_unchanged
12328
12329 \end_layout
12330
12331 \end_inset
12332
12333 .
12334  
12335 \begin_inset Flex Code
12336 status collapsed
12337
12338 \begin_layout Plain Layout
12339
12340 \change_inserted -712698321 1565180601
12341 $$s
12342 \change_unchanged
12343
12344 \end_layout
12345
12346 \end_inset
12347
12348  is a placeholder for the paper size.
12349 \change_unchanged
12350
12351 \end_layout
12352
12353 \begin_layout Description
12354 \begin_inset Flex Code
12355 status collapsed
12356
12357 \begin_layout Plain Layout
12358 PageStyle
12359 \end_layout
12360
12361 \end_inset
12362
12363  [
12364 \begin_inset Flex Code
12365 status collapsed
12366
12367 \begin_layout Plain Layout
12368 string="empty|plain|headings|fancy"
12369 \end_layout
12370
12371 \end_inset
12372
12373 ] The list of available page sty\SpecialChar softhyphen
12374 les, separated by 
12375 \begin_inset Quotes eld
12376 \end_inset
12377
12378
12379 \begin_inset Flex Code
12380 status collapsed
12381
12382 \begin_layout Plain Layout
12383 |
12384 \end_layout
12385
12386 \end_inset
12387
12388
12389 \begin_inset Quotes erd
12390 \end_inset
12391
12392 .
12393 \end_layout
12394
12395 \begin_layout Description
12396 \begin_inset Flex Code
12397 status collapsed
12398
12399 \begin_layout Plain Layout
12400 Other
12401 \end_layout
12402
12403 \end_inset
12404
12405  [
12406 \begin_inset Flex Code
12407 status collapsed
12408
12409 \begin_layout Plain Layout
12410 string=""
12411 \end_layout
12412
12413 \end_inset
12414
12415 ] Some document class options, separated by a comma, that will be added
12416  to the optional part of the 
12417 \begin_inset Flex Code
12418 status collapsed
12419
12420 \begin_layout Plain Layout
12421
12422 \backslash
12423 documentclass
12424 \end_layout
12425
12426 \end_inset
12427
12428  command.
12429 \end_layout
12430
12431 \begin_layout Standard
12432 The 
12433 \begin_inset Flex Code
12434 status collapsed
12435
12436 \begin_layout Plain Layout
12437 ClassOptions
12438 \end_layout
12439
12440 \end_inset
12441
12442  section must end with 
12443 \begin_inset Quotes eld
12444 \end_inset
12445
12446
12447 \begin_inset Flex Code
12448 status collapsed
12449
12450 \begin_layout Plain Layout
12451 End
12452 \end_layout
12453
12454 \end_inset
12455
12456
12457 \begin_inset Quotes erd
12458 \end_inset
12459
12460 .
12461 \end_layout
12462
12463 \begin_layout Subsection
12464 Paragraph styles
12465 \begin_inset CommandInset label
12466 LatexCommand label
12467 name "subsec:Paragraph-Styles"
12468
12469 \end_inset
12470
12471
12472 \end_layout
12473
12474 \begin_layout Standard
12475 A paragraph style description looks like this:
12476 \begin_inset Foot
12477 status collapsed
12478
12479 \begin_layout Plain Layout
12480 Note that this will either define a new style or modify an existing one.
12481 \end_layout
12482
12483 \end_inset
12484
12485
12486 \end_layout
12487
12488 \begin_layout LyX-Code
12489 Style 
12490 \family roman
12491 \emph on
12492 name
12493 \end_layout
12494
12495 \begin_layout LyX-Code
12496  ...
12497 \end_layout
12498
12499 \begin_layout LyX-Code
12500 End
12501 \end_layout
12502
12503 \begin_layout Standard
12504 where the following commands are allowed:
12505 \end_layout
12506
12507 \begin_layout Description
12508 \begin_inset Flex Code
12509 status collapsed
12510
12511 \begin_layout Plain Layout
12512 AddToToc
12513 \end_layout
12514
12515 \end_inset
12516
12517  [
12518 \begin_inset Flex Code
12519 status collapsed
12520
12521 \begin_layout Plain Layout
12522 string
12523 \end_layout
12524
12525 \end_inset
12526
12527 =""] This paragraph will appear in the table of contents of the given type.
12528  An empty string disables.
12529  See also the OutlinerName and the IsTocCaption commands.
12530  Default: disabled.
12531 \end_layout
12532
12533 \begin_layout Description
12534 \begin_inset Flex Code
12535 status collapsed
12536
12537 \begin_layout Plain Layout
12538 Align
12539 \end_layout
12540
12541 \end_inset
12542
12543  [
12544 \begin_inset Flex Code
12545 status collapsed
12546
12547 \begin_layout Plain Layout
12548
12549 \emph on
12550 block
12551 \emph default
12552 , left, right, center
12553 \end_layout
12554
12555 \end_inset
12556
12557 ] Paragraph alignment.
12558 \end_layout
12559
12560 \begin_layout Description
12561 \begin_inset Flex Code
12562 status collapsed
12563
12564 \begin_layout Plain Layout
12565 AlignPossible
12566 \end_layout
12567
12568 \end_inset
12569
12570  [
12571 \begin_inset Flex Code
12572 status collapsed
12573
12574 \begin_layout Plain Layout
12575
12576 \emph on
12577 block
12578 \emph default
12579 , left, right, center
12580 \end_layout
12581
12582 \end_inset
12583
12584 ] A comma separated list of permitted alignments.
12585  (Some \SpecialChar LaTeX
12586  styles prohibit certain alignments, since those wouldn't make sense.
12587  For example a right-aligned or centered enumeration isn't possible.)
12588 \end_layout
12589
12590 \begin_layout Description
12591 \begin_inset Flex Code
12592 status collapsed
12593
12594 \begin_layout Plain Layout
12595 Argument
12596 \end_layout
12597
12598 \end_inset
12599
12600  [
12601 \begin_inset Flex Code
12602 status collapsed
12603
12604 \begin_layout Plain Layout
12605 int
12606 \end_layout
12607
12608 \end_inset
12609
12610 ] Defines argument number <int> of a command\SpecialChar breakableslash
12611 environment associated with
12612  the current style.
12613  This is useful for things like section headings, and only makes sense with
12614  \SpecialChar LaTeX
12615 .
12616  Every (optional or required) argument of a command or environment – except
12617  for the required argument that is associated with the content of the paragraph
12618  itself – has a separate definition, where the number specifies the order
12619  of the arguments.
12620  The definition must end with 
12621 \begin_inset Flex Code
12622 status collapsed
12623
12624 \begin_layout Plain Layout
12625 EndArgument
12626 \end_layout
12627
12628 \end_inset
12629
12630 .
12631  So a command with two optional arguments has:
12632 \end_layout
12633
12634 \begin_deeper
12635 \begin_layout Quote
12636
12637 \family typewriter
12638 Argument 1
12639 \end_layout
12640
12641 \begin_layout Quote
12642
12643 \family typewriter
12644 ...
12645 \end_layout
12646
12647 \begin_layout Quote
12648
12649 \family typewriter
12650 EndArgument
12651 \end_layout
12652
12653 \begin_layout Quote
12654
12655 \family typewriter
12656 Argument 2
12657 \end_layout
12658
12659 \begin_layout Quote
12660
12661 \family typewriter
12662 ...
12663 \end_layout
12664
12665 \begin_layout Quote
12666
12667 \family typewriter
12668 EndArgument
12669 \end_layout
12670
12671 \begin_layout Standard
12672 Inside the 
12673 \begin_inset Flex Code
12674 status collapsed
12675
12676 \begin_layout Plain Layout
12677 Argument
12678 \end_layout
12679
12680 \end_inset
12681
12682  definition, the following specifications are possible:
12683 \end_layout
12684
12685 \begin_layout Itemize
12686 \begin_inset Flex Code
12687 status collapsed
12688
12689 \begin_layout Plain Layout
12690 LabelString
12691 \end_layout
12692
12693 \end_inset
12694
12695  
12696 \begin_inset Flex Code
12697 status collapsed
12698
12699 \begin_layout Plain Layout
12700 [string]
12701 \end_layout
12702
12703 \end_inset
12704
12705  The string that will appear both in the menu (to insert this argument)
12706  and on the argument inset button (unless you also specify a separate 
12707 \begin_inset Flex Code
12708 status collapsed
12709
12710 \begin_layout Plain Layout
12711 MenuString
12712 \end_layout
12713
12714 \end_inset
12715
12716 ).
12717  For the menu, you can define an accelerator by appending the respective
12718  character to the string, divided by 
12719 \begin_inset Quotes eld
12720 \end_inset
12721
12722 |
12723 \begin_inset Quotes erd
12724 \end_inset
12725
12726  (e.
12727 \begin_inset space \thinspace{}
12728 \end_inset
12729
12730 g.
12731 \begin_inset space \space{}
12732 \end_inset
12733
12734
12735 \begin_inset Quotes eld
12736 \end_inset
12737
12738
12739 \begin_inset Flex Code
12740 status collapsed
12741
12742 \begin_layout Plain Layout
12743 Short Title|S
12744 \end_layout
12745
12746 \end_inset
12747
12748
12749 \begin_inset Quotes erd
12750 \end_inset
12751
12752 ).
12753 \end_layout
12754
12755 \begin_layout Itemize
12756 \begin_inset Flex Code
12757 status collapsed
12758
12759 \begin_layout Plain Layout
12760 MenuString
12761 \end_layout
12762
12763 \end_inset
12764
12765  
12766 \begin_inset Flex Code
12767 status collapsed
12768
12769 \begin_layout Plain Layout
12770 [string]
12771 \end_layout
12772
12773 \end_inset
12774
12775  A separate string for the menu.
12776  You can define an accelerator by appending the respective character to
12777  the string, divided by 
12778 \begin_inset Quotes eld
12779 \end_inset
12780
12781 |
12782 \begin_inset Quotes erd
12783 \end_inset
12784
12785  (e.
12786 \begin_inset space \thinspace{}
12787 \end_inset
12788
12789 g.
12790 \begin_inset space \space{}
12791 \end_inset
12792
12793
12794 \begin_inset Quotes eld
12795 \end_inset
12796
12797
12798 \begin_inset Flex Code
12799 status collapsed
12800
12801 \begin_layout Plain Layout
12802 Short Title|S
12803 \end_layout
12804
12805 \end_inset
12806
12807
12808 \begin_inset Quotes erd
12809 \end_inset
12810
12811 ).
12812  This specification is optional.
12813  If it is not given the 
12814 \begin_inset Flex Code
12815 status collapsed
12816
12817 \begin_layout Plain Layout
12818 LabelString
12819 \end_layout
12820
12821 \end_inset
12822
12823  will be used instead for the menu.
12824 \end_layout
12825
12826 \begin_layout Itemize
12827 \begin_inset Flex Code
12828 status collapsed
12829
12830 \begin_layout Plain Layout
12831 Tooltip
12832 \end_layout
12833
12834 \end_inset
12835
12836  
12837 \begin_inset Flex Code
12838 status collapsed
12839
12840 \begin_layout Plain Layout
12841 [string]
12842 \end_layout
12843
12844 \end_inset
12845
12846  A longer explanatory text that appears in the tooltip when hovering over
12847  the argument inset.
12848 \end_layout
12849
12850 \begin_layout Itemize
12851 \begin_inset Flex Code
12852 status collapsed
12853
12854 \begin_layout Plain Layout
12855 Mandatory
12856 \end_layout
12857
12858 \end_inset
12859
12860  [
12861 \begin_inset Flex Code
12862 status collapsed
12863
12864 \begin_layout Plain Layout
12865
12866 \emph on
12867 0
12868 \end_layout
12869
12870 \end_inset
12871
12872 ,
12873 \begin_inset space \thinspace{}
12874 \end_inset
12875
12876
12877 \begin_inset Flex Code
12878 status collapsed
12879
12880 \begin_layout Plain Layout
12881 1
12882 \end_layout
12883
12884 \end_inset
12885
12886 ] Declare if this is a mandatory (1) or an optional (0) argument.
12887  Mandatory arguments will be output empty if not given, while optional arguments
12888  will not be output at all.
12889  By default, mandatory arguments are delimited by 
12890 \begin_inset Flex Code
12891 status collapsed
12892
12893 \begin_layout Plain Layout
12894 {...}
12895 \end_layout
12896
12897 \end_inset
12898
12899 , while optional arguments are delimited by 
12900 \begin_inset Flex Code
12901 status collapsed
12902
12903 \begin_layout Plain Layout
12904 [...]
12905 \end_layout
12906
12907 \end_inset
12908
12909
12910 \change_inserted -712698321 1555579782
12911
12912 \end_layout
12913
12914 \begin_layout Itemize
12915
12916 \change_inserted -712698321 1555579780
12917 \begin_inset Flex Code
12918 status collapsed
12919
12920 \begin_layout Plain Layout
12921
12922 \change_inserted -712698321 1555579780
12923 NewlineCmd
12924 \change_unchanged
12925
12926 \end_layout
12927
12928 \end_inset
12929
12930  
12931 \begin_inset Flex Code
12932 status collapsed
12933
12934 \begin_layout Plain Layout
12935
12936 \change_inserted -712698321 1555579780
12937 [string]
12938 \change_unchanged
12939
12940 \end_layout
12941
12942 \end_inset
12943
12944  Option to define a different command (from the default 
12945 \begin_inset Flex Code
12946 status collapsed
12947
12948 \begin_layout Plain Layout
12949
12950 \change_inserted -712698321 1555579780
12951
12952 \backslash
12953
12954 \backslash
12955
12956 \change_unchanged
12957
12958 \end_layout
12959
12960 \end_inset
12961
12962 ) to be used for line breaks.
12963  The initial backslash must not be specified.
12964 \change_unchanged
12965
12966 \end_layout
12967
12968 \begin_layout Itemize
12969 \begin_inset Flex Code
12970 status collapsed
12971
12972 \begin_layout Plain Layout
12973 Requires
12974 \end_layout
12975
12976 \end_inset
12977
12978  
12979 \begin_inset Flex Code
12980 status collapsed
12981
12982 \begin_layout Plain Layout
12983 [int=0]
12984 \end_layout
12985
12986 \end_inset
12987
12988  defines another argument (by its number) which this argument requires to
12989  be output if it is itself output.
12990  E.
12991 \begin_inset space \thinspace{}
12992 \end_inset
12993
12994 g., in \SpecialChar LaTeX
12995  commands, optional arguments often require previous optional arguments
12996  to be output (at least empty), as in 
12997 \begin_inset Flex Code
12998 status collapsed
12999
13000 \begin_layout Plain Layout
13001
13002 \backslash
13003 command[][argument]{text}
13004 \end_layout
13005
13006 \end_inset
13007
13008 .
13009  This can be achieved by the statement 
13010 \begin_inset Flex Code
13011 status collapsed
13012
13013 \begin_layout Plain Layout
13014 Requires 1
13015 \end_layout
13016
13017 \end_inset
13018
13019  within 
13020 \begin_inset Flex Code
13021 status collapsed
13022
13023 \begin_layout Plain Layout
13024 Argument 2
13025 \end_layout
13026
13027 \end_inset
13028
13029 .
13030 \end_layout
13031
13032 \begin_layout Itemize
13033 \begin_inset Flex Code
13034 status collapsed
13035
13036 \begin_layout Plain Layout
13037 LeftDelim
13038 \end_layout
13039
13040 \end_inset
13041
13042  
13043 \begin_inset Flex Code
13044 status collapsed
13045
13046 \begin_layout Plain Layout
13047 [string]
13048 \end_layout
13049
13050 \end_inset
13051
13052  defines a custom left delimiter (instead of 
13053 \begin_inset Flex Code
13054 status collapsed
13055
13056 \begin_layout Plain Layout
13057 {
13058 \end_layout
13059
13060 \end_inset
13061
13062  or 
13063 \begin_inset Flex Code
13064 status collapsed
13065
13066 \begin_layout Plain Layout
13067 [
13068 \end_layout
13069
13070 \end_inset
13071
13072 ).
13073  A line break in the output can be indicated by 
13074 \begin_inset Flex Code
13075 status collapsed
13076
13077 \begin_layout Plain Layout
13078 <br/>
13079 \end_layout
13080
13081 \end_inset
13082
13083 .
13084 \end_layout
13085
13086 \begin_layout Itemize
13087 \begin_inset Flex Code
13088 status collapsed
13089
13090 \begin_layout Plain Layout
13091 RightDelim
13092 \end_layout
13093
13094 \end_inset
13095
13096  
13097 \begin_inset Flex Code
13098 status collapsed
13099
13100 \begin_layout Plain Layout
13101 [string]
13102 \end_layout
13103
13104 \end_inset
13105
13106  defines a custom right delimiter (instead of 
13107 \begin_inset Flex Code
13108 status collapsed
13109
13110 \begin_layout Plain Layout
13111 }
13112 \end_layout
13113
13114 \end_inset
13115
13116  or 
13117 \begin_inset Flex Code
13118 status collapsed
13119
13120 \begin_layout Plain Layout
13121 ]
13122 \end_layout
13123
13124 \end_inset
13125
13126 ).
13127  A line break in the output can be indicated by 
13128 \begin_inset Flex Code
13129 status collapsed
13130
13131 \begin_layout Plain Layout
13132 <br/>
13133 \end_layout
13134
13135 \end_inset
13136
13137 .
13138 \end_layout
13139
13140 \begin_layout Itemize
13141 \begin_inset Flex Code
13142 status collapsed
13143
13144 \begin_layout Plain Layout
13145 DefaultArg
13146 \end_layout
13147
13148 \end_inset
13149
13150  
13151 \begin_inset Flex Code
13152 status collapsed
13153
13154 \begin_layout Plain Layout
13155 [string]
13156 \end_layout
13157
13158 \end_inset
13159
13160  defines an argument that is inserted if and only if no user-specified arguments
13161  were given, i.
13162 \begin_inset space \thinspace{}
13163 \end_inset
13164
13165 e.
13166 \begin_inset space \space{}
13167 \end_inset
13168
13169 if no argument inset has been inserted (note that also an empty argument
13170  inset omits the DefaultArg).
13171  Multiple arguments need to be separated by comma.
13172 \end_layout
13173
13174 \begin_layout Itemize
13175 \begin_inset Flex Code
13176 status collapsed
13177
13178 \begin_layout Plain Layout
13179 PresetArg
13180 \end_layout
13181
13182 \end_inset
13183
13184  
13185 \begin_inset Flex Code
13186 status collapsed
13187
13188 \begin_layout Plain Layout
13189 [string]
13190 \end_layout
13191
13192 \end_inset
13193
13194  defines an argument that is inserted in any case (alone or in addition
13195  to user-specified arguments).
13196  Multiple arguments need to be separated by comma.
13197 \end_layout
13198
13199 \begin_layout Itemize
13200 \begin_inset Flex Code
13201 status collapsed
13202
13203 \begin_layout Plain Layout
13204 Font
13205 \end_layout
13206
13207 \end_inset
13208
13209  The font used for the argument content, see 
13210 \begin_inset CommandInset ref
13211 LatexCommand ref
13212 reference "subsec:Font-description"
13213
13214 \end_inset
13215
13216 .
13217 \change_inserted -712698321 1559484228
13218
13219 \end_layout
13220
13221 \begin_layout Itemize
13222
13223 \change_inserted -712698321 1559484228
13224 \begin_inset Flex Code
13225 status collapsed
13226
13227 \begin_layout Plain Layout
13228
13229 \change_inserted -712698321 1559484228
13230 FreeSpacing
13231 \change_unchanged
13232
13233 \end_layout
13234
13235 \end_inset
13236
13237  [
13238 \begin_inset Flex Code
13239 status collapsed
13240
13241 \begin_layout Plain Layout
13242
13243 \change_inserted -712698321 1559484228
13244
13245 \emph on
13246 0
13247 \change_unchanged
13248
13249 \end_layout
13250
13251 \end_inset
13252
13253 ,
13254 \begin_inset space \thinspace{}
13255 \end_inset
13256
13257
13258 \begin_inset Flex Code
13259 status collapsed
13260
13261 \begin_layout Plain Layout
13262
13263 \change_inserted -712698321 1559484228
13264 1
13265 \change_unchanged
13266
13267 \end_layout
13268
13269 \end_inset
13270
13271 ] As with paragraph styles, see 
13272 \begin_inset CommandInset ref
13273 LatexCommand ref
13274 reference "subsec:Paragraph-Styles"
13275
13276 \end_inset
13277
13278 .
13279 \change_unchanged
13280
13281 \end_layout
13282
13283 \begin_layout Itemize
13284 \begin_inset Flex Code
13285 status collapsed
13286
13287 \begin_layout Plain Layout
13288 LabelFont
13289 \end_layout
13290
13291 \end_inset
13292
13293  The font used for the label; see 
13294 \begin_inset CommandInset ref
13295 LatexCommand ref
13296 reference "subsec:Font-description"
13297
13298 \end_inset
13299
13300 .
13301 \end_layout
13302
13303 \begin_layout Itemize
13304 \begin_inset Flex Code
13305 status collapsed
13306
13307 \begin_layout Plain Layout
13308 Decoration
13309 \end_layout
13310
13311 \end_inset
13312
13313  [
13314 \begin_inset Flex Code
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318
13319 \emph on
13320 Classic
13321 \emph default
13322 , Minimalistic, Conglomerate
13323 \end_layout
13324
13325 \end_inset
13326
13327 ] describes the rendering style used for the inset's frame and buttons.
13328 \end_layout
13329
13330 \begin_layout Itemize
13331 \begin_inset Flex Code
13332 status collapsed
13333
13334 \begin_layout Plain Layout
13335 AutoInsert
13336 \end_layout
13337
13338 \end_inset
13339
13340  
13341 \begin_inset Flex Code
13342 status collapsed
13343
13344 \begin_layout Plain Layout
13345 [int=0]
13346 \end_layout
13347
13348 \end_inset
13349
13350  If this is set to 
13351 \begin_inset Flex Code
13352 status collapsed
13353
13354 \begin_layout Plain Layout
13355 1
13356 \end_layout
13357
13358 \end_inset
13359
13360 , this argument is automatically inserted when the respective style is selected.
13361
13362 \change_deleted -712698321 1559484200
13363  Currently, only one argument per style\SpecialChar breakableslash
13364 layout can be automatically inserted.
13365 \change_unchanged
13366
13367 \end_layout
13368
13369 \begin_layout Itemize
13370
13371 \change_inserted -712698321 1559491402
13372 \begin_inset Flex Code
13373 status collapsed
13374
13375 \begin_layout Plain Layout
13376
13377 \change_inserted -712698321 1559490711
13378 InsertOnNewline
13379 \change_unchanged
13380
13381 \end_layout
13382
13383 \end_inset
13384
13385  
13386 \begin_inset Flex Code
13387 status collapsed
13388
13389 \begin_layout Plain Layout
13390
13391 \change_inserted -712698321 1559490703
13392 [int=0]
13393 \change_unchanged
13394
13395 \end_layout
13396
13397 \end_inset
13398
13399  If this is set to 
13400 \begin_inset Flex Code
13401 status collapsed
13402
13403 \begin_layout Plain Layout
13404
13405 \change_inserted -712698321 1559490703
13406 1
13407 \change_unchanged
13408
13409 \end_layout
13410
13411 \end_inset
13412
13413 , this argument will be inserted on a new line with 
13414 \begin_inset Flex Code
13415 status collapsed
13416
13417 \begin_layout Plain Layout
13418
13419 \change_inserted -712698321 1559491402
13420 AutoInsert
13421 \change_unchanged
13422
13423 \end_layout
13424
13425 \end_inset
13426
13427  (only available within Flex insets).
13428 \end_layout
13429
13430 \begin_layout Itemize
13431 \begin_inset Flex Code
13432 status collapsed
13433
13434 \begin_layout Plain Layout
13435 InsertCotext
13436 \end_layout
13437
13438 \end_inset
13439
13440  
13441 \begin_inset Flex Code
13442 status collapsed
13443
13444 \begin_layout Plain Layout
13445 [int=0]
13446 \end_layout
13447
13448 \end_inset
13449
13450  If this is set to 
13451 \begin_inset Flex Code
13452 status collapsed
13453
13454 \begin_layout Plain Layout
13455 1
13456 \end_layout
13457
13458 \end_inset
13459
13460 , this argument will be inserted with a copy of the co-text (either selected
13461  text or the whole paragraph) as content.
13462 \end_layout
13463
13464 \begin_layout Itemize
13465 \begin_inset Flex Code
13466 status collapsed
13467
13468 \begin_layout Plain Layout
13469 PassThru
13470 \end_layout
13471
13472 \end_inset
13473
13474  [
13475 \begin_inset Flex Code
13476 status collapsed
13477
13478 \begin_layout Plain Layout
13479
13480 \emph on
13481 inherited
13482 \emph default
13483 , true, false
13484 \end_layout
13485
13486 \end_inset
13487
13488 ] Whether the contents of this argument should be output in raw form, meaning
13489  without special translations that \SpecialChar LaTeX
13490  would require.
13491  By default, the 
13492 \begin_inset Flex Code
13493 status collapsed
13494
13495 \begin_layout Plain Layout
13496 PassThru
13497 \end_layout
13498
13499 \end_inset
13500
13501  status is inherited by the inset or paragraph layout the argument belongs
13502  to, true and false change the status for the given argument only.
13503 \end_layout
13504
13505 \begin_layout Itemize
13506 \begin_inset Flex Code
13507 status collapsed
13508
13509 \begin_layout Plain Layout
13510 PassThruChars
13511 \end_layout
13512
13513 \end_inset
13514
13515  [
13516 \begin_inset Flex Code
13517 status collapsed
13518
13519 \begin_layout Plain Layout
13520 string of characters
13521 \end_layout
13522
13523 \end_inset
13524
13525 ]
13526 \family typewriter
13527  
13528 \family default
13529 Defines individual characters
13530 \begin_inset Newline linebreak
13531 \end_inset
13532
13533 that should be output in raw form, meaning without special translations
13534  that \SpecialChar LaTeX
13535  would require.
13536  Note that, contrary to PassThru, this needs to be explicitly defined for
13537  arguments.
13538  That is, arguments do not inherit PassThruChars from their parent inset
13539  or layout.
13540 \end_layout
13541
13542 \begin_layout Itemize
13543 \begin_inset Flex Code
13544 status collapsed
13545
13546 \begin_layout Plain Layout
13547 IsTocCaption
13548 \end_layout
13549
13550 \end_inset
13551
13552  [
13553 \begin_inset Flex Code
13554 status collapsed
13555
13556 \begin_layout Plain Layout
13557
13558 \emph on
13559 0
13560 \end_layout
13561
13562 \end_inset
13563
13564 ,
13565 \begin_inset space \thinspace{}
13566 \end_inset
13567
13568
13569 \begin_inset Flex Code
13570 status collapsed
13571
13572 \begin_layout Plain Layout
13573 1
13574 \end_layout
13575
13576 \end_inset
13577
13578 ] If this is set to 1, the argument will output its content in the corresponding
13579  item in the table of contents.
13580  See AddToToc.
13581 \end_layout
13582
13583 \begin_layout Standard
13584 By default, the text entered in the \SpecialChar LyX
13585  workarea in the respective layout is
13586  the last (mandatory) argument of a command if the 
13587 \begin_inset Flex Code
13588 status collapsed
13589
13590 \begin_layout Plain Layout
13591 LatexType
13592 \end_layout
13593
13594 \end_inset
13595
13596  is 
13597 \begin_inset Flex Code
13598 status collapsed
13599
13600 \begin_layout Plain Layout
13601 Command
13602 \end_layout
13603
13604 \end_inset
13605
13606 .
13607  However, arguments with the prefix 
13608 \begin_inset Flex Code
13609 status collapsed
13610
13611 \begin_layout Plain Layout
13612 post:
13613 \end_layout
13614
13615 \end_inset
13616
13617  are output after this workarea argument.
13618  Note that post-argument numbering restarts at 1, so the first argument
13619  following the workarea argument is 
13620 \begin_inset Flex Code
13621 status collapsed
13622
13623 \begin_layout Plain Layout
13624 post:1
13625 \end_layout
13626
13627 \end_inset
13628
13629 .
13630  Post-arguments are ignored in any other 
13631 \begin_inset Flex Code
13632 status collapsed
13633
13634 \begin_layout Plain Layout
13635 LatexType
13636 \end_layout
13637
13638 \end_inset
13639
13640  than 
13641 \begin_inset Flex Code
13642 status collapsed
13643
13644 \begin_layout Plain Layout
13645 Command
13646 \end_layout
13647
13648 \end_inset
13649
13650 .
13651 \end_layout
13652
13653 \begin_layout Standard
13654 Arguments for list 
13655 \begin_inset Flex Code
13656 status collapsed
13657
13658 \begin_layout Plain Layout
13659
13660 \backslash
13661 item
13662 \end_layout
13663
13664 \end_inset
13665
13666 s (as in 
13667 \begin_inset Flex Code
13668 status collapsed
13669
13670 \begin_layout Plain Layout
13671
13672 \backslash
13673 item[foo]
13674 \end_layout
13675
13676 \end_inset
13677
13678 ) have the prefix 
13679 \begin_inset Flex Code
13680 status collapsed
13681
13682 \begin_layout Plain Layout
13683 item:
13684 \end_layout
13685
13686 \end_inset
13687
13688  followed by the number (e.
13689 \begin_inset space \thinspace{}
13690 \end_inset
13691
13692 g.
13693 \begin_inset space \space{}
13694 \end_inset
13695
13696
13697 \begin_inset Flex Code
13698 status collapsed
13699
13700 \begin_layout Plain Layout
13701 Argument item:1
13702 \end_layout
13703
13704 \end_inset
13705
13706 ).
13707 \change_inserted -712698321 1534487781
13708
13709 \end_layout
13710
13711 \begin_layout Standard
13712
13713 \change_inserted -712698321 1534488561
13714 Finally, there is a special argument type with the prefix 
13715 \begin_inset Flex Code
13716 status collapsed
13717
13718 \begin_layout Plain Layout
13719
13720 \change_inserted -712698321 1534487844
13721 listpreamble:
13722 \change_unchanged
13723
13724 \end_layout
13725
13726 \end_inset
13727
13728 .
13729  It is not really an argument, but uses the argument interface (thus, the
13730  prefix is also followed by a number, e.
13731 \begin_inset space \thinspace{}
13732 \end_inset
13733
13734 g.
13735  
13736 \begin_inset Flex Code
13737 status collapsed
13738
13739 \begin_layout Plain Layout
13740
13741 \change_inserted -712698321 1534488412
13742 Argument listpreamble:1
13743 \change_unchanged
13744
13745 \end_layout
13746
13747 \end_inset
13748
13749 ).
13750  As the name implies, it is targeted at lists such as 
13751 \family sans
13752 Itemize
13753 \family default
13754
13755 \family sans
13756 Enumerate
13757 \family default
13758
13759 \family sans
13760 Description
13761 \family default
13762 , or 
13763 \family sans
13764 Bibliography
13765 \family default
13766 .
13767  Its content will be output at the list start, before the first 
13768 \begin_inset Flex Code
13769 status collapsed
13770
13771 \begin_layout Plain Layout
13772
13773 \change_inserted -712698321 1534488058
13774
13775 \backslash
13776 item
13777 \change_unchanged
13778
13779 \end_layout
13780
13781 \end_inset
13782
13783 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13784 ).
13785  This way, users can insert redefinitions (of lengths etc.) to individual
13786  lists.
13787  By default, these arguments do not have a delimiter.
13788 \change_unchanged
13789
13790 \end_layout
13791
13792 \end_deeper
13793 \begin_layout Description
13794 \begin_inset Flex Code
13795 status collapsed
13796
13797 \begin_layout Plain Layout
13798 AutoNests
13799 \end_layout
13800
13801 \end_inset
13802
13803  Includes a comma-separated list of layouts that should be nested in and
13804  after the current layout.
13805  Only makes sense for nestable layouts (such as environments).
13806  Must be ended by 
13807 \begin_inset Quotes eld
13808 \end_inset
13809
13810
13811 \begin_inset Flex Code
13812 status collapsed
13813
13814 \begin_layout Plain Layout
13815 EndAutoNests
13816 \end_layout
13817
13818 \end_inset
13819
13820
13821 \begin_inset Quotes erd
13822 \end_inset
13823
13824 .
13825  See also 
13826 \begin_inset Flex Code
13827 status collapsed
13828
13829 \begin_layout Plain Layout
13830 IsAutoNestedBy
13831 \end_layout
13832
13833 \end_inset
13834
13835 .
13836 \end_layout
13837
13838 \begin_layout Description
13839 \begin_inset Flex Code
13840 status collapsed
13841
13842 \begin_layout Plain Layout
13843 BabelPreamble
13844 \end_layout
13845
13846 \end_inset
13847
13848  Note that this will completely override any prior 
13849 \begin_inset Flex Code
13850 status collapsed
13851
13852 \begin_layout Plain Layout
13853 BabelPreamble
13854 \end_layout
13855
13856 \end_inset
13857
13858  declaration for this style.
13859  Must end with 
13860 \begin_inset Quotes eld
13861 \end_inset
13862
13863
13864 \begin_inset Flex Code
13865 status collapsed
13866
13867 \begin_layout Plain Layout
13868 EndBabelPreamble
13869 \end_layout
13870
13871 \end_inset
13872
13873
13874 \begin_inset Quotes erd
13875 \end_inset
13876
13877 .
13878  See 
13879 \begin_inset CommandInset ref
13880 LatexCommand ref
13881 reference "subsec:I18n"
13882
13883 \end_inset
13884
13885  for details on its use.
13886 \end_layout
13887
13888 \begin_layout Description
13889 \begin_inset Flex Code
13890 status collapsed
13891
13892 \begin_layout Plain Layout
13893 BottomSep
13894 \end_layout
13895
13896 \end_inset
13897
13898  [
13899 \begin_inset Flex Code
13900 status collapsed
13901
13902 \begin_layout Plain Layout
13903 float=0
13904 \end_layout
13905
13906 \end_inset
13907
13908 ]
13909 \begin_inset Foot
13910 status collapsed
13911
13912 \begin_layout Plain Layout
13913 Note that a `float' here is a real number, such as: 1.5.
13914 \end_layout
13915
13916 \end_inset
13917
13918  The vertical space with which the last of a chain of paragraphs with this
13919  style is separated from the following paragraph.
13920  If the next paragraph has another style, the separations are not simply
13921  added, but the maximum is taken.
13922 \end_layout
13923
13924 \begin_layout Description
13925 \begin_inset Flex Code
13926 status collapsed
13927
13928 \begin_layout Plain Layout
13929 Category
13930 \end_layout
13931
13932 \end_inset
13933
13934  [
13935 \begin_inset Flex Code
13936 status collapsed
13937
13938 \begin_layout Plain Layout
13939 string
13940 \end_layout
13941
13942 \end_inset
13943
13944 ] The category for this style.
13945  This is used to group related styles in the style combobox on the toolbar.
13946  Any string can be used, but you may want to use existing categories with
13947  your own styles.
13948  
13949 \end_layout
13950
13951 \begin_layout Description
13952 \begin_inset Flex Code
13953 status collapsed
13954
13955 \begin_layout Plain Layout
13956 CommandDepth
13957 \end_layout
13958
13959 \end_inset
13960
13961  Depth of XML command.
13962  Used only with XML-type formats.
13963 \end_layout
13964
13965 \begin_layout Description
13966 \begin_inset Flex Code
13967 status collapsed
13968
13969 \begin_layout Plain Layout
13970 CopyStyle
13971 \end_layout
13972
13973 \end_inset
13974
13975  [
13976 \begin_inset Flex Code
13977 status collapsed
13978
13979 \begin_layout Plain Layout
13980 string
13981 \end_layout
13982
13983 \end_inset
13984
13985 ] Copies all the features of an existing style into the current one.
13986  
13987 \end_layout
13988
13989 \begin_layout Description
13990 \begin_inset Flex Code
13991 status collapsed
13992
13993 \begin_layout Plain Layout
13994 DependsOn
13995 \end_layout
13996
13997 \end_inset
13998
13999  [
14000 \begin_inset Flex Code
14001 status collapsed
14002
14003 \begin_layout Plain Layout
14004 <name>
14005 \end_layout
14006
14007 \end_inset
14008
14009 ] The name of a style whose preamble should be output 
14010 \emph on
14011 before
14012 \emph default
14013  this one.
14014  This allows to ensure some ordering of the preamble snippets when macros
14015  definitions depend on one another.
14016 \begin_inset Foot
14017 status collapsed
14018
14019 \begin_layout Plain Layout
14020 Note that, besides that functionality, there is no way to ensure any ordering
14021  of preambles.
14022  The ordering that you see in a given version of \SpecialChar LyX
14023  may change without warning
14024  in later versions.
14025 \end_layout
14026
14027 \end_inset
14028
14029
14030 \end_layout
14031
14032 \begin_layout Description
14033 \begin_inset Flex Code
14034 status collapsed
14035
14036 \begin_layout Plain Layout
14037 EndLabeltype
14038 \end_layout
14039
14040 \end_inset
14041
14042  [
14043 \begin_inset Flex Code
14044 status collapsed
14045
14046 \begin_layout Plain Layout
14047
14048 \emph on
14049 No_Label
14050 \emph default
14051 , Box, Filled_Box, Static
14052 \end_layout
14053
14054 \end_inset
14055
14056 ] The type of label that stands at the end of the paragraph (or sequence
14057  of paragraphs if 
14058 \begin_inset Flex Code
14059 status collapsed
14060
14061 \begin_layout Plain Layout
14062 LatexType
14063 \end_layout
14064
14065 \end_inset
14066
14067  is
14068 \begin_inset Newline newline
14069 \end_inset
14070
14071
14072 \begin_inset Flex Code
14073 status collapsed
14074
14075 \begin_layout Plain Layout
14076 Environment
14077 \end_layout
14078
14079 \end_inset
14080
14081
14082 \begin_inset Flex Code
14083 status collapsed
14084
14085 \begin_layout Plain Layout
14086 Item_Environment
14087 \end_layout
14088
14089 \end_inset
14090
14091  or 
14092 \begin_inset Flex Code
14093 status collapsed
14094
14095 \begin_layout Plain Layout
14096 List_Environment
14097 \end_layout
14098
14099 \end_inset
14100
14101 ).
14102  
14103 \begin_inset Flex Code
14104 status collapsed
14105
14106 \begin_layout Plain Layout
14107 No_Label
14108 \end_layout
14109
14110 \end_inset
14111
14112  means 
14113 \begin_inset Quotes eld
14114 \end_inset
14115
14116 nothing
14117 \begin_inset Quotes erd
14118 \end_inset
14119
14120
14121 \begin_inset Flex Code
14122 status collapsed
14123
14124 \begin_layout Plain Layout
14125 Box
14126 \end_layout
14127
14128 \end_inset
14129
14130  (resp.
14131 \begin_inset space \space{}
14132 \end_inset
14133
14134
14135 \begin_inset Flex Code
14136 status collapsed
14137
14138 \begin_layout Plain Layout
14139 Filled_Box
14140 \end_layout
14141
14142 \end_inset
14143
14144 ) is a white (resp.
14145 \begin_inset space ~
14146 \end_inset
14147
14148 black) square suitable for end of proof markers, 
14149 \begin_inset Flex Code
14150 status collapsed
14151
14152 \begin_layout Plain Layout
14153 Static
14154 \end_layout
14155
14156 \end_inset
14157
14158  is an explicit text string.
14159 \end_layout
14160
14161 \begin_layout Description
14162 \begin_inset Flex Code
14163 status collapsed
14164
14165 \begin_layout Plain Layout
14166 EndLabelString
14167 \end_layout
14168
14169 \end_inset
14170
14171  [
14172 \begin_inset Flex Code
14173 status collapsed
14174
14175 \begin_layout Plain Layout
14176 string=""
14177 \end_layout
14178
14179 \end_inset
14180
14181 ] The string used for a label with a 
14182 \begin_inset Flex Code
14183 status collapsed
14184
14185 \begin_layout Plain Layout
14186 Static
14187 \end_layout
14188
14189 \end_inset
14190
14191
14192 \begin_inset Newline newline
14193 \end_inset
14194
14195
14196 \begin_inset Flex Code
14197 status collapsed
14198
14199 \begin_layout Plain Layout
14200 EndLabelType
14201 \end_layout
14202
14203 \end_inset
14204
14205 .
14206  
14207 \end_layout
14208
14209 \begin_layout Description
14210 \begin_inset Flex Code
14211 status collapsed
14212
14213 \begin_layout Plain Layout
14214 Font
14215 \end_layout
14216
14217 \end_inset
14218
14219  The font used for both the text body 
14220 \emph on
14221 and
14222 \emph default
14223  the label.
14224  See 
14225 \begin_inset CommandInset ref
14226 LatexCommand ref
14227 reference "subsec:Font-description"
14228
14229 \end_inset
14230
14231 .
14232  Note that defining this font automatically defines the 
14233 \begin_inset Flex Code
14234 status collapsed
14235
14236 \begin_layout Plain Layout
14237 LabelFont
14238 \end_layout
14239
14240 \end_inset
14241
14242  to the same value.
14243  So you should define this one first if you also want to define 
14244 \begin_inset Flex Code
14245 status collapsed
14246
14247 \begin_layout Plain Layout
14248 LabelFont
14249 \end_layout
14250
14251 \end_inset
14252
14253 .
14254 \end_layout
14255
14256 \begin_layout Description
14257 \begin_inset Flex Code
14258 status collapsed
14259
14260 \begin_layout Plain Layout
14261 ForceLocal
14262 \end_layout
14263
14264 \end_inset
14265
14266  [
14267 \begin_inset Flex Code
14268 status collapsed
14269
14270 \begin_layout Plain Layout
14271 int=0
14272 \end_layout
14273
14274 \end_inset
14275
14276 ] Used for backporting new styles to stable \SpecialChar LyX
14277  versions.
14278  The first stable version that supports this tag is \SpecialChar LyX
14279  2.1.0.
14280  The argument is a number which may either be 0, -1 or any value greater
14281  than zero.
14282  If the 
14283 \begin_inset Flex Code
14284 status collapsed
14285
14286 \begin_layout Plain Layout
14287 ForceLocal
14288 \end_layout
14289
14290 \end_inset
14291
14292  flag of a style is greater than zero, it will always be written to the
14293  document header.
14294  If a .lyx file is read, the style definitions from the document header are
14295  added to the document class.
14296  Therefore even older \SpecialChar LyX
14297  versions can handle the style.
14298  The argument of 
14299 \begin_inset Flex Code
14300 status collapsed
14301
14302 \begin_layout Plain Layout
14303 ForceLocal
14304 \end_layout
14305
14306 \end_inset
14307
14308  is a version number: if the style is read, and the version number is less
14309  than the version number of the already existing style in the document class,
14310  the new style is ignored.
14311  If the version number is greater, the new style replaces the existing style.
14312  A value of -1 means an infinite version number, i.
14313 \begin_inset space \thinspace{}
14314 \end_inset
14315
14316 e.
14317 \begin_inset space \space{}
14318 \end_inset
14319
14320 the style is always used.
14321 \end_layout
14322
14323 \begin_layout Description
14324 \begin_inset Flex Code
14325 status collapsed
14326
14327 \begin_layout Plain Layout
14328 FreeSpacing
14329 \end_layout
14330
14331 \end_inset
14332
14333  [
14334 \begin_inset Flex Code
14335 status collapsed
14336
14337 \begin_layout Plain Layout
14338
14339 \emph on
14340 0
14341 \end_layout
14342
14343 \end_inset
14344
14345 ,
14346 \begin_inset space \thinspace{}
14347 \end_inset
14348
14349
14350 \begin_inset Flex Code
14351 status collapsed
14352
14353 \begin_layout Plain Layout
14354 1
14355 \end_layout
14356
14357 \end_inset
14358
14359 ] Usually \SpecialChar LyX
14360  does not allow you to insert more than one space between words,
14361  since a space is considered as the separation between two words, not a
14362  character or symbol of its own.
14363  This is a very fine thing but sometimes annoying, for example, when typing
14364  program code or plain \SpecialChar LaTeX
14365  code.
14366  For this reason, 
14367 \begin_inset Flex Code
14368 status collapsed
14369
14370 \begin_layout Plain Layout
14371 FreeSpacing
14372 \end_layout
14373
14374 \end_inset
14375
14376  can be enabled.
14377  
14378 \change_deleted -495245474 1550490105
14379 Note that 
14380 \change_unchanged
14381 \SpecialChar LyX
14382  will create protected blanks for the additional blanks when in 
14383 \change_inserted -495245474 1550490096
14384
14385 \begin_inset Flex Code
14386 status collapsed
14387
14388 \begin_layout Plain Layout
14389
14390 \change_inserted -495245474 1550490089
14391 Passthru 1
14392 \change_unchanged
14393
14394 \end_layout
14395
14396 \end_inset
14397
14398  is not specified.
14399 \change_deleted -495245474 1550490116
14400 another mode than \SpecialChar LaTeX
14401 -mode.
14402
14403 \change_inserted -495245474 1550247760
14404  Note that 
14405 \begin_inset Flex Code
14406 status collapsed
14407
14408 \begin_layout Plain Layout
14409
14410 \change_inserted -495245474 1550247736
14411 FreeSpacing
14412 \change_unchanged
14413
14414 \end_layout
14415
14416 \end_inset
14417
14418  implies 
14419 \begin_inset Flex Code
14420 status collapsed
14421
14422 \begin_layout Plain Layout
14423
14424 \change_inserted -495245474 1550247755
14425 KeepEmpty
14426 \change_unchanged
14427
14428 \end_layout
14429
14430 \end_inset
14431
14432 .
14433 \change_unchanged
14434
14435 \end_layout
14436
14437 \begin_layout Description
14438 \begin_inset Flex Code
14439 status collapsed
14440
14441 \begin_layout Plain Layout
14442 HTML*
14443 \end_layout
14444
14445 \end_inset
14446
14447  These tags are used with XHTML output.
14448  See 
14449 \begin_inset CommandInset ref
14450 LatexCommand ref
14451 reference "subsec:Paragraph-Style-XHTML"
14452
14453 \end_inset
14454
14455 .
14456 \end_layout
14457
14458 \begin_layout Description
14459 \begin_inset Flex Code
14460 status collapsed
14461
14462 \begin_layout Plain Layout
14463 InnerTag
14464 \end_layout
14465
14466 \end_inset
14467
14468  [FIXME] (Used only with XML-type formats.)
14469 \end_layout
14470
14471 \begin_layout Description
14472 \begin_inset Flex Code
14473 status collapsed
14474
14475 \begin_layout Plain Layout
14476 InPreamble
14477 \end_layout
14478
14479 \end_inset
14480
14481  [
14482 \begin_inset Flex Code
14483 status collapsed
14484
14485 \begin_layout Plain Layout
14486
14487 \emph on
14488 0
14489 \end_layout
14490
14491 \end_inset
14492
14493 ,
14494 \begin_inset space \thinspace{}
14495 \end_inset
14496
14497
14498 \begin_inset Flex Code
14499 status collapsed
14500
14501 \begin_layout Plain Layout
14502 1
14503 \end_layout
14504
14505 \end_inset
14506
14507 ] If 
14508 \begin_inset Flex Code
14509 status collapsed
14510
14511 \begin_layout Plain Layout
14512 1
14513 \end_layout
14514
14515 \end_inset
14516
14517 , marks the style as to be included in the document preamble and not in
14518  the document body.
14519  This is useful for document classes that want such information as the title
14520  and author to appear in the preamble.
14521  Note that this works only for styles for which the 
14522 \begin_inset Flex Code
14523 status collapsed
14524
14525 \begin_layout Plain Layout
14526 LatexType
14527 \end_layout
14528
14529 \end_inset
14530
14531  is 
14532 \begin_inset Flex Code
14533 status collapsed
14534
14535 \begin_layout Plain Layout
14536 Command
14537 \end_layout
14538
14539 \end_inset
14540
14541  or 
14542 \begin_inset Flex Code
14543 status collapsed
14544
14545 \begin_layout Plain Layout
14546 Paragraph
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 InTitle
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 
14591 \begin_inset Flex Code
14592 status collapsed
14593
14594 \begin_layout Plain Layout
14595 1
14596 \end_layout
14597
14598 \end_inset
14599
14600 , marks the style as being part of a title block (see also the 
14601 \begin_inset Flex Code
14602 status collapsed
14603
14604 \begin_layout Plain Layout
14605 TitleLatexType
14606 \end_layout
14607
14608 \end_inset
14609
14610  and 
14611 \begin_inset Flex Code
14612 status collapsed
14613
14614 \begin_layout Plain Layout
14615 TitleLatexName
14616 \end_layout
14617
14618 \end_inset
14619
14620  global entries).
14621 \end_layout
14622
14623 \begin_layout Description
14624 \begin_inset Flex Code
14625 status collapsed
14626
14627 \begin_layout Plain Layout
14628 IsAutoNestedBy
14629 \end_layout
14630
14631 \end_inset
14632
14633  Includes a comma-separated list of layouts after which this one should
14634  be nested.
14635  Only makes sense with regard to nestable layouts (such as environments).
14636  Must be ended by 
14637 \begin_inset Quotes eld
14638 \end_inset
14639
14640
14641 \begin_inset Flex Code
14642 status collapsed
14643
14644 \begin_layout Plain Layout
14645 EndIsAutoNestedBy
14646 \end_layout
14647
14648 \end_inset
14649
14650
14651 \begin_inset Quotes erd
14652 \end_inset
14653
14654 .
14655  See also 
14656 \begin_inset Flex Code
14657 status collapsed
14658
14659 \begin_layout Plain Layout
14660 AutoNests
14661 \end_layout
14662
14663 \end_inset
14664
14665 .
14666 \end_layout
14667
14668 \begin_layout Description
14669 \begin_inset Flex Code
14670 status collapsed
14671
14672 \begin_layout Plain Layout
14673 IsTocCaption
14674 \end_layout
14675
14676 \end_inset
14677
14678  [
14679 \begin_inset Flex Code
14680 status collapsed
14681
14682 \begin_layout Plain Layout
14683
14684 \emph on
14685 0
14686 \end_layout
14687
14688 \end_inset
14689
14690 ,
14691 \begin_inset space \thinspace{}
14692 \end_inset
14693
14694
14695 \begin_inset Flex Code
14696 status collapsed
14697
14698 \begin_layout Plain Layout
14699 1
14700 \end_layout
14701
14702 \end_inset
14703
14704 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14705  of its contents in its item in the table of contents.
14706  Otherwise, only the label, if it exists, appears.
14707 \end_layout
14708
14709 \begin_layout Description
14710 \begin_inset Flex Code
14711 status collapsed
14712
14713 \begin_layout Plain Layout
14714 ItemCommand
14715 \end_layout
14716
14717 \end_inset
14718
14719  [
14720 \begin_inset Flex Code
14721 status collapsed
14722
14723 \begin_layout Plain Layout
14724 string="item"
14725 \end_layout
14726
14727 \end_inset
14728
14729 ] The \SpecialChar LaTeX
14730  command sequence declaring an item in a list.
14731  The command is to be defined without the preceding backslash (the default
14732  is 
14733 \begin_inset Quotes eld
14734 \end_inset
14735
14736 item
14737 \begin_inset Quotes erd
14738 \end_inset
14739
14740 , resulting in 
14741 \begin_inset Flex Code
14742 status collapsed
14743
14744 \begin_layout Plain Layout
14745
14746 \backslash
14747 item
14748 \end_layout
14749
14750 \end_inset
14751
14752  in the \SpecialChar LaTeX
14753  output).
14754 \end_layout
14755
14756 \begin_layout Description
14757 \begin_inset Flex Code
14758 status collapsed
14759
14760 \begin_layout Plain Layout
14761 ItemSep
14762 \end_layout
14763
14764 \end_inset
14765
14766  [
14767 \begin_inset Flex Code
14768 status collapsed
14769
14770 \begin_layout Plain Layout
14771 float=0
14772 \end_layout
14773
14774 \end_inset
14775
14776 ] This provides extra space between paragraphs that have the same style.
14777  If you put other styles into an environment, each is separated with the
14778  environment's 
14779 \begin_inset Flex Code
14780 status collapsed
14781
14782 \begin_layout Plain Layout
14783 ParSep
14784 \end_layout
14785
14786 \end_inset
14787
14788 .
14789  But the whole items of the environment are additionally separated with
14790  this 
14791 \begin_inset Flex Code
14792 status collapsed
14793
14794 \begin_layout Plain Layout
14795 ItemSep
14796 \end_layout
14797
14798 \end_inset
14799
14800 .
14801  Note that this is a
14802 \emph on
14803  multiplier.
14804 \end_layout
14805
14806 \begin_layout Description
14807 \begin_inset Flex Code
14808 status collapsed
14809
14810 \begin_layout Plain Layout
14811 ItemTag
14812 \end_layout
14813
14814 \end_inset
14815
14816  [FIXME] (Used only with XML-type formats.)
14817 \end_layout
14818
14819 \begin_layout Description
14820 \begin_inset Flex Code
14821 status collapsed
14822
14823 \begin_layout Plain Layout
14824 KeepEmpty
14825 \end_layout
14826
14827 \end_inset
14828
14829  [
14830 \begin_inset Flex Code
14831 status collapsed
14832
14833 \begin_layout Plain Layout
14834
14835 \emph on
14836 0
14837 \end_layout
14838
14839 \end_inset
14840
14841 ,
14842 \begin_inset space \thinspace{}
14843 \end_inset
14844
14845
14846 \begin_inset Flex Code
14847 status collapsed
14848
14849 \begin_layout Plain Layout
14850 1
14851 \end_layout
14852
14853 \end_inset
14854
14855 ] Usually \SpecialChar LyX
14856  does not allow you to leave a paragraph empty, since it would
14857  lead to empty \SpecialChar LaTeX
14858  output.
14859  There are some cases where this could be desirable however: in a letter
14860  template, the required fields can be provided as empty fields, so that
14861  people do not forget them; in some special classes, a style can be used
14862  as some kind of break, which does not contain actual text.
14863 \end_layout
14864
14865 \begin_layout Description
14866 \begin_inset Flex Code
14867 status collapsed
14868
14869 \begin_layout Plain Layout
14870 LabelBottomsep
14871 \end_layout
14872
14873 \end_inset
14874
14875  [
14876 \begin_inset Flex Code
14877 status collapsed
14878
14879 \begin_layout Plain Layout
14880 float=0
14881 \end_layout
14882
14883 \end_inset
14884
14885 ] The vertical space between the label and the text body.
14886  Only used for labels that are above the text body (
14887 \begin_inset Flex Code
14888 status collapsed
14889
14890 \begin_layout Plain Layout
14891 Top_Environment
14892 \end_layout
14893
14894 \end_inset
14895
14896  and
14897 \begin_inset Newline newline
14898 \end_inset
14899
14900
14901 \begin_inset Flex Code
14902 status collapsed
14903
14904 \begin_layout Plain Layout
14905 Centered_Top_Environment
14906 \end_layout
14907
14908 \end_inset
14909
14910 ).
14911 \end_layout
14912
14913 \begin_layout Description
14914 \begin_inset Flex Code
14915 status collapsed
14916
14917 \begin_layout Plain Layout
14918 LabelCounter
14919 \end_layout
14920
14921 \end_inset
14922
14923  [
14924 \begin_inset Flex Code
14925 status collapsed
14926
14927 \begin_layout Plain Layout
14928 string=""
14929 \end_layout
14930
14931 \end_inset
14932
14933 ] The name of the counter for automatic numbering.
14934  In order to have the counter appear with your label, you will need to reference
14935  it in the 
14936 \begin_inset Flex Code
14937 status collapsed
14938
14939 \begin_layout Plain Layout
14940
14941 \family typewriter
14942 LabelString
14943 \end_layout
14944
14945 \end_inset
14946
14947 .
14948  This will work with 
14949 \begin_inset Flex Code
14950 status collapsed
14951
14952 \begin_layout Plain Layout
14953 LabelType
14954 \end_layout
14955
14956 \end_inset
14957
14958 s, 
14959 \begin_inset Flex Code
14960 status collapsed
14961
14962 \begin_layout Plain Layout
14963 Static
14964 \end_layout
14965
14966 \end_inset
14967
14968
14969 \begin_inset Flex Code
14970 status collapsed
14971
14972 \begin_layout Plain Layout
14973 Above
14974 \end_layout
14975
14976 \end_inset
14977
14978  and 
14979 \begin_inset Flex Code
14980 status collapsed
14981
14982 \begin_layout Plain Layout
14983 Centered
14984 \end_layout
14985
14986 \end_inset
14987
14988 , at least.
14989 \begin_inset Newline newline
14990 \end_inset
14991
14992 This 
14993 \emph on
14994 may
14995 \emph default
14996  also be given if 
14997 \begin_inset Flex Code
14998 status collapsed
14999
15000 \begin_layout Plain Layout
15001 LabelType
15002 \end_layout
15003
15004 \end_inset
15005
15006  is 
15007 \begin_inset Flex Code
15008 status collapsed
15009
15010 \begin_layout Plain Layout
15011 Enumerate
15012 \end_layout
15013
15014 \end_inset
15015
15016 , though this case is a bit complicated.
15017  Suppose you declare 
15018 \begin_inset Quotes eld
15019 \end_inset
15020
15021
15022 \begin_inset Flex Code
15023 status collapsed
15024
15025 \begin_layout Plain Layout
15026 LabelCounter myenum
15027 \end_layout
15028
15029 \end_inset
15030
15031
15032 \begin_inset Quotes erd
15033 \end_inset
15034
15035 .
15036  Then the actual counters used are 
15037 \begin_inset Flex Code
15038 status collapsed
15039
15040 \begin_layout Plain Layout
15041 myenumi
15042 \end_layout
15043
15044 \end_inset
15045
15046
15047 \begin_inset Flex Code
15048 status collapsed
15049
15050 \begin_layout Plain Layout
15051 myenumii
15052 \end_layout
15053
15054 \end_inset
15055
15056
15057 \begin_inset Flex Code
15058 status collapsed
15059
15060 \begin_layout Plain Layout
15061 myenumiii
15062 \end_layout
15063
15064 \end_inset
15065
15066  and 
15067 \begin_inset Flex Code
15068 status collapsed
15069
15070 \begin_layout Plain Layout
15071 myenumiv
15072 \end_layout
15073
15074 \end_inset
15075
15076 , much as in \SpecialChar LaTeX
15077 .
15078  These counters must all be declared separately.
15079 \begin_inset Newline newline
15080 \end_inset
15081
15082 See 
15083 \begin_inset CommandInset ref
15084 LatexCommand ref
15085 reference "subsec:Counters"
15086
15087 \end_inset
15088
15089  for details on counters.
15090 \end_layout
15091
15092 \begin_layout Description
15093 \begin_inset Flex Code
15094 status collapsed
15095
15096 \begin_layout Plain Layout
15097 LabelFont
15098 \end_layout
15099
15100 \end_inset
15101
15102  The font used for the label.
15103  See 
15104 \begin_inset CommandInset ref
15105 LatexCommand ref
15106 reference "subsec:Font-description"
15107
15108 \end_inset
15109
15110 .
15111 \end_layout
15112
15113 \begin_layout Description
15114 \begin_inset Flex Code
15115 status collapsed
15116
15117 \begin_layout Plain Layout
15118 LabelIndent
15119 \end_layout
15120
15121 \end_inset
15122
15123  [
15124 \begin_inset Flex Code
15125 status collapsed
15126
15127 \begin_layout Plain Layout
15128 string=""
15129 \end_layout
15130
15131 \end_inset
15132
15133 ] Text that indicates how far a label should be indented.
15134 \end_layout
15135
15136 \begin_layout Description
15137 \begin_inset Flex Code
15138 status collapsed
15139
15140 \begin_layout Plain Layout
15141 LabelSep
15142 \end_layout
15143
15144 \end_inset
15145
15146  [
15147 \begin_inset Flex Code
15148 status collapsed
15149
15150 \begin_layout Plain Layout
15151 string=""
15152 \end_layout
15153
15154 \end_inset
15155
15156 ] Text that indicates the amount of horizontal space between the label and
15157  the text body.
15158  Only used for labels that are not above the text body.
15159 \end_layout
15160
15161 \begin_layout Description
15162 \begin_inset Flex Code
15163 status collapsed
15164
15165 \begin_layout Plain Layout
15166 LabelString
15167 \end_layout
15168
15169 \end_inset
15170
15171  [
15172 \begin_inset Flex Code
15173 status collapsed
15174
15175 \begin_layout Plain Layout
15176 string=""
15177 \end_layout
15178
15179 \end_inset
15180
15181 ] The string used for the label.
15182  When 
15183 \begin_inset Flex Code
15184 status collapsed
15185
15186 \begin_layout Plain Layout
15187 LabelCounter
15188 \end_layout
15189
15190 \end_inset
15191
15192  is set, this string can be contain the special formatting commands described
15193  in 
15194 \begin_inset CommandInset ref
15195 LatexCommand ref
15196 reference "subsec:Counters"
15197
15198 \end_inset
15199
15200 .
15201 \end_layout
15202
15203 \begin_layout Description
15204 \begin_inset Flex Code
15205 status collapsed
15206
15207 \begin_layout Plain Layout
15208 LabelStringAppendix
15209 \end_layout
15210
15211 \end_inset
15212
15213  [
15214 \begin_inset Flex Code
15215 status collapsed
15216
15217 \begin_layout Plain Layout
15218 string=""
15219 \end_layout
15220
15221 \end_inset
15222
15223 ] This is used inside the appendix instead of
15224 \begin_inset Newline newline
15225 \end_inset
15226
15227
15228 \begin_inset Flex Code
15229 status collapsed
15230
15231 \begin_layout Plain Layout
15232 LabelString
15233 \end_layout
15234
15235 \end_inset
15236
15237 .
15238  Note that every 
15239 \begin_inset Flex Code
15240 status collapsed
15241
15242 \begin_layout Plain Layout
15243 LabelString
15244 \end_layout
15245
15246 \end_inset
15247
15248  statement resets
15249 \begin_inset Newline newline
15250 \end_inset
15251
15252
15253 \begin_inset Flex Code
15254 status collapsed
15255
15256 \begin_layout Plain Layout
15257 LabelStringAppendix
15258 \end_layout
15259
15260 \end_inset
15261
15262  too.
15263 \end_layout
15264
15265 \begin_layout Description
15266 \begin_inset Flex Code
15267 status collapsed
15268
15269 \begin_layout Plain Layout
15270 LabelTag
15271 \end_layout
15272
15273 \end_inset
15274
15275  [FIXME] (Used only with XML-type formats.)
15276 \end_layout
15277
15278 \begin_layout Description
15279 \begin_inset Flex Code
15280 status collapsed
15281
15282 \begin_layout Plain Layout
15283 LabelType
15284 \end_layout
15285
15286 \end_inset
15287
15288  [
15289 \begin_inset Flex Code
15290 status collapsed
15291
15292 \begin_layout Plain Layout
15293
15294 \emph on
15295 No_Label
15296 \emph default
15297 , Manual, Static, Above, 
15298 \begin_inset Newline newline
15299 \end_inset
15300
15301 Centered, Sensitive, Enumerate,
15302 \begin_inset Newline newline
15303 \end_inset
15304
15305 Itemize, Bibliography
15306 \end_layout
15307
15308 \end_inset
15309
15310 ]
15311 \end_layout
15312
15313 \begin_deeper
15314 \begin_layout Description
15315 \begin_inset Flex Code
15316 status collapsed
15317
15318 \begin_layout Plain Layout
15319 Manual
15320 \end_layout
15321
15322 \end_inset
15323
15324  means the label is the very first word (up to the first real blank).
15325  Use protected spaces if you want more than one word as the label.
15326  
15327 \end_layout
15328
15329 \begin_layout Description
15330 \begin_inset Flex Code
15331 status collapsed
15332
15333 \begin_layout Plain Layout
15334 Static
15335 \end_layout
15336
15337 \end_inset
15338
15339  means the label is simply what is declared as 
15340 \begin_inset Flex Code
15341 status collapsed
15342
15343 \begin_layout Plain Layout
15344 LabelString
15345 \end_layout
15346
15347 \end_inset
15348
15349 .
15350  This will be displayed 
15351 \begin_inset Quotes eld
15352 \end_inset
15353
15354 inline
15355 \begin_inset Quotes erd
15356 \end_inset
15357
15358 , at the beginning of the paragraph.
15359  If the 
15360 \begin_inset Flex Code
15361 status collapsed
15362
15363 \begin_layout Plain Layout
15364 LatexType
15365 \end_layout
15366
15367 \end_inset
15368
15369  is 
15370 \begin_inset Flex Code
15371 status collapsed
15372
15373 \begin_layout Plain Layout
15374 Environment
15375 \end_layout
15376
15377 \end_inset
15378
15379 , then it will be displayed only in the first paragraph of any sequence
15380  of paragraphs with the same 
15381 \begin_inset Flex Code
15382 status collapsed
15383
15384 \begin_layout Plain Layout
15385 Style
15386 \end_layout
15387
15388 \end_inset
15389
15390 .
15391 \end_layout
15392
15393 \begin_layout Description
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 Above
15399 \end_layout
15400
15401 \end_inset
15402
15403
15404 \begin_inset space ~
15405 \end_inset
15406
15407 and
15408 \begin_inset space ~
15409 \end_inset
15410
15411
15412 \begin_inset Flex Code
15413 status collapsed
15414
15415 \begin_layout Plain Layout
15416 Centered
15417 \end_layout
15418
15419 \end_inset
15420
15421  are special cases of 
15422 \begin_inset Flex Code
15423 status collapsed
15424
15425 \begin_layout Plain Layout
15426 Static
15427 \end_layout
15428
15429 \end_inset
15430
15431 .
15432  The label will be printed above the paragraph either at the beginning of
15433  the line or centered.
15434 \end_layout
15435
15436 \begin_layout Description
15437 \begin_inset Flex Code
15438 status collapsed
15439
15440 \begin_layout Plain Layout
15441 Sensitive
15442 \end_layout
15443
15444 \end_inset
15445
15446  is a special case for the caption-labels 
15447 \begin_inset Quotes eld
15448 \end_inset
15449
15450 Figure
15451 \begin_inset Quotes erd
15452 \end_inset
15453
15454  and 
15455 \begin_inset Quotes eld
15456 \end_inset
15457
15458 Table
15459 \begin_inset Quotes erd
15460 \end_inset
15461
15462 .
15463 \begin_inset Newline newline
15464 \end_inset
15465
15466
15467 \begin_inset Flex Code
15468 status collapsed
15469
15470 \begin_layout Plain Layout
15471 Sensitive
15472 \end_layout
15473
15474 \end_inset
15475
15476  means the (hardcoded) label string depends on the kind of float: It is
15477  hardcoded to be `FloatType N', where N is the value of the counter associated
15478  with the float.
15479  For the case that a caption is inserted outside of a float the 
15480 \begin_inset Flex Code
15481 status collapsed
15482
15483 \begin_layout Plain Layout
15484 LabelString
15485 \end_layout
15486
15487 \end_inset
15488
15489  will appear as 
15490 \begin_inset Quotes eld
15491 \end_inset
15492
15493 Senseless!
15494 \begin_inset Quotes erd
15495 \end_inset
15496
15497 .
15498 \end_layout
15499
15500 \begin_layout Description
15501 \begin_inset Flex Code
15502 status collapsed
15503
15504 \begin_layout Plain Layout
15505 Enumerate
15506 \end_layout
15507
15508 \end_inset
15509
15510  produces the usual sort of enumeration labels.
15511  The number type needs to be set in the 
15512 \family sans
15513 Counter
15514 \family default
15515 , see 
15516 \begin_inset CommandInset ref
15517 LatexCommand ref
15518 reference "subsec:Counters"
15519
15520 \end_inset
15521
15522 .
15523 \end_layout
15524
15525 \begin_layout Description
15526 \begin_inset Flex Code
15527 status collapsed
15528
15529 \begin_layout Plain Layout
15530 Itemize
15531 \end_layout
15532
15533 \end_inset
15534
15535  produces various bullets at the different levels.
15536  The bullet types displayed can be set via 
15537 \begin_inset Flex Noun
15538 status collapsed
15539
15540 \begin_layout Plain Layout
15541 Document\SpecialChar menuseparator
15542 Settings\SpecialChar menuseparator
15543 Bullets
15544 \end_layout
15545
15546 \end_inset
15547
15548 .
15549 \end_layout
15550
15551 \begin_layout Description
15552 \begin_inset Flex Code
15553 status collapsed
15554
15555 \begin_layout Plain Layout
15556 Bibliography
15557 \end_layout
15558
15559 \end_inset
15560
15561  should be used only with 
15562 \begin_inset Flex Code
15563 status collapsed
15564
15565 \begin_layout Plain Layout
15566 LatexType BibEnvironment
15567 \end_layout
15568
15569 \end_inset
15570
15571 .
15572 \end_layout
15573
15574 \end_deeper
15575 \begin_layout Description
15576 \begin_inset Flex Code
15577 status collapsed
15578
15579 \begin_layout Plain Layout
15580 LangPreamble
15581 \end_layout
15582
15583 \end_inset
15584
15585  Note that this will completely override any prior 
15586 \begin_inset Flex Code
15587 status collapsed
15588
15589 \begin_layout Plain Layout
15590 LangPreamble
15591 \end_layout
15592
15593 \end_inset
15594
15595  declaration for this style.
15596  Must end with 
15597 \begin_inset Quotes eld
15598 \end_inset
15599
15600
15601 \begin_inset Flex Code
15602 status collapsed
15603
15604 \begin_layout Plain Layout
15605 EndLangPreamble
15606 \end_layout
15607
15608 \end_inset
15609
15610
15611 \begin_inset Quotes erd
15612 \end_inset
15613
15614 .
15615  See 
15616 \begin_inset CommandInset ref
15617 LatexCommand ref
15618 reference "subsec:I18n"
15619
15620 \end_inset
15621
15622  for details on its use.
15623 \end_layout
15624
15625 \begin_layout Description
15626 \begin_inset Flex Code
15627 status collapsed
15628
15629 \begin_layout Plain Layout
15630 LatexName
15631 \end_layout
15632
15633 \end_inset
15634
15635  [
15636 \begin_inset Flex Code
15637 status collapsed
15638
15639 \begin_layout Plain Layout
15640 <name>
15641 \end_layout
15642
15643 \end_inset
15644
15645 ] The name of the corresponding \SpecialChar LaTeX
15646  stuff.
15647  Either the environment or command name.
15648 \end_layout
15649
15650 \begin_layout Description
15651 \begin_inset Flex Code
15652 status collapsed
15653
15654 \begin_layout Plain Layout
15655 LatexParam
15656 \end_layout
15657
15658 \end_inset
15659
15660  [
15661 \begin_inset Flex Code
15662 status collapsed
15663
15664 \begin_layout Plain Layout
15665 <parameter>
15666 \end_layout
15667
15668 \end_inset
15669
15670 ] An optional parameter for the corresponding 
15671 \begin_inset Flex Code
15672 status collapsed
15673
15674 \begin_layout Plain Layout
15675 LatexName
15676 \end_layout
15677
15678 \end_inset
15679
15680  stuff.
15681  This parameter cannot be changed from within \SpecialChar LyX
15682  (use 
15683 \begin_inset Flex Code
15684 status collapsed
15685
15686 \begin_layout Plain Layout
15687 Argument
15688 \end_layout
15689
15690 \end_inset
15691
15692  for customizable parameters).
15693  This will be output as is after all \SpecialChar LaTeX
15694  
15695 \begin_inset Flex Code
15696 status collapsed
15697
15698 \begin_layout Plain Layout
15699 Argument
15700 \end_layout
15701
15702 \end_inset
15703
15704 s.
15705 \end_layout
15706
15707 \begin_layout Description
15708 \begin_inset Flex Code
15709 status collapsed
15710
15711 \begin_layout Plain Layout
15712 LatexType
15713 \end_layout
15714
15715 \end_inset
15716
15717  [
15718 \begin_inset Flex Code
15719 status collapsed
15720
15721 \begin_layout Plain Layout
15722
15723 \emph on
15724 Paragraph
15725 \emph default
15726 , Command, Environment, Item_Environment,
15727 \begin_inset Newline newline
15728 \end_inset
15729
15730 List_Environment, Bib_Environment
15731 \end_layout
15732
15733 \end_inset
15734
15735 ] How the style should be translated into \SpecialChar LaTeX
15736 .
15737 \begin_inset Foot
15738 status collapsed
15739
15740 \begin_layout Plain Layout
15741 \begin_inset Flex Code
15742 status collapsed
15743
15744 \begin_layout Plain Layout
15745 LatexType
15746 \end_layout
15747
15748 \end_inset
15749
15750  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15751  Visit the SGML class files for specific examples.
15752 \end_layout
15753
15754 \end_inset
15755
15756
15757 \end_layout
15758
15759 \begin_deeper
15760 \begin_layout Description
15761 \begin_inset Flex Code
15762 status collapsed
15763
15764 \begin_layout Plain Layout
15765 Paragraph
15766 \end_layout
15767
15768 \end_inset
15769
15770  means nothing special.
15771 \end_layout
15772
15773 \begin_layout Description
15774 \begin_inset Flex Code
15775 status collapsed
15776
15777 \begin_layout Plain Layout
15778 Command
15779 \end_layout
15780
15781 \end_inset
15782
15783  means 
15784 \begin_inset Flex Code
15785 status collapsed
15786
15787 \begin_layout Plain Layout
15788
15789 \backslash
15790
15791 \emph on
15792 LatexName
15793 \emph default
15794 {\SpecialChar ldots
15795 }
15796 \end_layout
15797
15798 \end_inset
15799
15800 .
15801 \end_layout
15802
15803 \begin_layout Description
15804 \begin_inset Flex Code
15805 status collapsed
15806
15807 \begin_layout Plain Layout
15808 Environment
15809 \end_layout
15810
15811 \end_inset
15812
15813  means 
15814 \begin_inset Flex Code
15815 status collapsed
15816
15817 \begin_layout Plain Layout
15818
15819 \backslash
15820 begin{
15821 \emph on
15822 LatexName
15823 \emph default
15824 }\SpecialChar ldots
15825
15826 \backslash
15827 end{
15828 \emph on
15829 LatexName
15830 \emph default
15831 }
15832 \end_layout
15833
15834 \end_inset
15835
15836 .
15837  
15838 \end_layout
15839
15840 \begin_layout Description
15841 \begin_inset Flex Code
15842 status collapsed
15843
15844 \begin_layout Plain Layout
15845 Item_Environment
15846 \end_layout
15847
15848 \end_inset
15849
15850  is the same as 
15851 \begin_inset Flex Code
15852 status collapsed
15853
15854 \begin_layout Plain Layout
15855 Environment
15856 \end_layout
15857
15858 \end_inset
15859
15860 , except that an 
15861 \begin_inset Flex Code
15862 status collapsed
15863
15864 \begin_layout Plain Layout
15865
15866 \backslash
15867 item
15868 \end_layout
15869
15870 \end_inset
15871
15872  is generated for each paragraph of this environment.
15873  
15874 \end_layout
15875
15876 \begin_layout Description
15877 \begin_inset Flex Code
15878 status collapsed
15879
15880 \begin_layout Plain Layout
15881 List_Environment
15882 \end_layout
15883
15884 \end_inset
15885
15886  is the same as 
15887 \begin_inset Flex Code
15888 status collapsed
15889
15890 \begin_layout Plain Layout
15891 Item_Environment
15892 \end_layout
15893
15894 \end_inset
15895
15896 , except that
15897 \begin_inset Newline newline
15898 \end_inset
15899
15900
15901 \begin_inset Flex Code
15902 status collapsed
15903
15904 \begin_layout Plain Layout
15905 LabelWidthString
15906 \end_layout
15907
15908 \end_inset
15909
15910  is passed as an argument to the environment.
15911 \begin_inset Newline newline
15912 \end_inset
15913
15914
15915 \begin_inset Flex Code
15916 status collapsed
15917
15918 \begin_layout Plain Layout
15919 LabelWidthString
15920 \end_layout
15921
15922 \end_inset
15923
15924  can be defined in the 
15925 \begin_inset Flex Noun
15926 status collapsed
15927
15928 \begin_layout Plain Layout
15929 Edit\SpecialChar menuseparator
15930 Paragraph
15931 \begin_inset space ~
15932 \end_inset
15933
15934 settings
15935 \end_layout
15936
15937 \end_inset
15938
15939  dialog.
15940 \end_layout
15941
15942 \begin_layout Description
15943 \begin_inset Flex Code
15944 status collapsed
15945
15946 \begin_layout Plain Layout
15947 Bib_Environment
15948 \end_layout
15949
15950 \end_inset
15951
15952  is like 
15953 \begin_inset Flex Code
15954 status collapsed
15955
15956 \begin_layout Plain Layout
15957 Environment
15958 \end_layout
15959
15960 \end_inset
15961
15962  but adds the necessary mandatory argument (the longest label) to the begin
15963  statement of the bibliography environment:
15964 \begin_inset Newline newline
15965 \end_inset
15966
15967
15968 \begin_inset Flex Code
15969 status collapsed
15970
15971 \begin_layout Plain Layout
15972
15973 \backslash
15974 begin{thebibliography}{99}
15975 \end_layout
15976
15977 \end_inset
15978
15979 .
15980  It is therefore only useful for bibliography environments.
15981  The default longest label 
15982 \begin_inset Quotes eld
15983 \end_inset
15984
15985 99
15986 \begin_inset Quotes erd
15987 \end_inset
15988
15989  can be changed by the user in the paragraph settings of a bibliography
15990  item.
15991 \end_layout
15992
15993 \begin_layout Standard
15994 Putting the last few things together, the \SpecialChar LaTeX
15995  output will be either: 
15996 \end_layout
15997
15998 \begin_layout LyX-Code
15999
16000 \backslash
16001 LatexName[LatexParam]{\SpecialChar ldots
16002 }
16003 \end_layout
16004
16005 \begin_layout Standard
16006 or: 
16007 \end_layout
16008
16009 \begin_layout LyX-Code
16010
16011 \backslash
16012 begin{LatexName}[LatexParam] \SpecialChar ldots
16013  
16014 \backslash
16015 end{LatexName}.
16016 \end_layout
16017
16018 \begin_layout Standard
16019 depending upon the \SpecialChar LaTeX
16020  type.
16021 \end_layout
16022
16023 \end_deeper
16024 \begin_layout Description
16025 \begin_inset Flex Code
16026 status collapsed
16027
16028 \begin_layout Plain Layout
16029 LeftDelim
16030 \end_layout
16031
16032 \end_inset
16033
16034  [
16035 \begin_inset Flex Code
16036 status collapsed
16037
16038 \begin_layout Plain Layout
16039 string
16040 \end_layout
16041
16042 \end_inset
16043
16044 ] A string that is put at the beginning of the style content.
16045  A line break in the output can be indicated by 
16046 \begin_inset Flex Code
16047 status collapsed
16048
16049 \begin_layout Plain Layout
16050 <br/>
16051 \end_layout
16052
16053 \end_inset
16054
16055 .
16056 \end_layout
16057
16058 \begin_layout Description
16059 \begin_inset Flex Code
16060 status collapsed
16061
16062 \begin_layout Plain Layout
16063 LeftMargin
16064 \end_layout
16065
16066 \end_inset
16067
16068  [
16069 \begin_inset Flex Code
16070 status collapsed
16071
16072 \begin_layout Plain Layout
16073 string=""
16074 \end_layout
16075
16076 \end_inset
16077
16078 ] If you put styles into environments, the different 
16079 \begin_inset Flex Code
16080 status collapsed
16081
16082 \begin_layout Plain Layout
16083 LeftMargin
16084 \end_layout
16085
16086 \end_inset
16087
16088  are not simply added, but added with a factor 
16089 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16090 \end_inset
16091
16092 .
16093  Note that this parameter is also used when 
16094 \begin_inset Flex Code
16095 status collapsed
16096
16097 \begin_layout Plain Layout
16098 Margin
16099 \end_layout
16100
16101 \end_inset
16102
16103  is defined as 
16104 \begin_inset Flex Code
16105 status collapsed
16106
16107 \begin_layout Plain Layout
16108 Manual
16109 \end_layout
16110
16111 \end_inset
16112
16113  or 
16114 \begin_inset Flex Code
16115 status collapsed
16116
16117 \begin_layout Plain Layout
16118 Dynamic
16119 \end_layout
16120
16121 \end_inset
16122
16123 .
16124  Then it is added to the manual or dynamic margin.
16125 \begin_inset Newline newline
16126 \end_inset
16127
16128 For example 
16129 \begin_inset Quotes eld
16130 \end_inset
16131
16132
16133 \begin_inset Flex Code
16134 status collapsed
16135
16136 \begin_layout Plain Layout
16137 MM
16138 \end_layout
16139
16140 \end_inset
16141
16142
16143 \begin_inset Quotes erd
16144 \end_inset
16145
16146  means that the paragraph is indented with the width of 
16147 \begin_inset Quotes eld
16148 \end_inset
16149
16150
16151 \begin_inset Flex Code
16152 status collapsed
16153
16154 \begin_layout Plain Layout
16155 MM
16156 \end_layout
16157
16158 \end_inset
16159
16160
16161 \begin_inset Quotes erd
16162 \end_inset
16163
16164  in the normal font.
16165  You can get a negative width by prefixing the string with 
16166 \begin_inset Quotes eld
16167 \end_inset
16168
16169
16170 \begin_inset Flex Code
16171 status collapsed
16172
16173 \begin_layout Plain Layout
16174 -
16175 \end_layout
16176
16177 \end_inset
16178
16179
16180 \begin_inset Quotes erd
16181 \end_inset
16182
16183 .
16184  This way was chosen so that the look is the same with each used screen
16185  font.
16186 \end_layout
16187
16188 \begin_layout Description
16189 \begin_inset Flex Code
16190 status collapsed
16191
16192 \begin_layout Plain Layout
16193 Margin
16194 \end_layout
16195
16196 \end_inset
16197
16198  [
16199 \begin_inset Flex Code
16200 status collapsed
16201
16202 \begin_layout Plain Layout
16203
16204 \emph on
16205 Static
16206 \emph default
16207 , Manual, Dynamic, First_Dynamic, Right_Address_Box
16208 \end_layout
16209
16210 \end_inset
16211
16212
16213 \begin_inset Newline newline
16214 \end_inset
16215
16216 The kind of margin that the style has on the left side.
16217 \end_layout
16218
16219 \begin_deeper
16220 \begin_layout Description
16221 \begin_inset Flex Code
16222 status collapsed
16223
16224 \begin_layout Plain Layout
16225 Static
16226 \end_layout
16227
16228 \end_inset
16229
16230  just means a fixed margin.
16231 \end_layout
16232
16233 \begin_layout Description
16234 \begin_inset Flex Code
16235 status collapsed
16236
16237 \begin_layout Plain Layout
16238 Manual
16239 \end_layout
16240
16241 \end_inset
16242
16243  means that the left margin depends on the string entered in the 
16244 \begin_inset Flex Noun
16245 status collapsed
16246
16247 \begin_layout Plain Layout
16248 Edit\SpecialChar menuseparator
16249 Paragraph
16250 \begin_inset space ~
16251 \end_inset
16252
16253 Settings
16254 \end_layout
16255
16256 \end_inset
16257
16258  dialog.
16259  This is used to typeset nice lists without tabulators.
16260 \end_layout
16261
16262 \begin_layout Description
16263 \begin_inset Flex Code
16264 status collapsed
16265
16266 \begin_layout Plain Layout
16267 Dynamic
16268 \end_layout
16269
16270 \end_inset
16271
16272  means that the margin depends on the size of the label.
16273  This is used for automatic enumerated headlines.
16274  It is obvious that the headline 
16275 \begin_inset Quotes eld
16276 \end_inset
16277
16278 5.4.3.2.1 Very long headline
16279 \begin_inset Quotes erd
16280 \end_inset
16281
16282  must have a wider left margin (as wide as 
16283 \begin_inset Quotes eld
16284 \end_inset
16285
16286 5.4.3.2.1
16287 \begin_inset Quotes erd
16288 \end_inset
16289
16290  plus the space) than 
16291 \begin_inset Quotes eld
16292 \end_inset
16293
16294 3.2 Very long headline
16295 \begin_inset Quotes erd
16296 \end_inset
16297
16298 , even if standard 
16299 \begin_inset Quotes eld
16300 \end_inset
16301
16302 word processors
16303 \begin_inset Quotes erd
16304 \end_inset
16305
16306  are not able to do this.
16307 \end_layout
16308
16309 \begin_layout Description
16310 \begin_inset Flex Code
16311 status collapsed
16312
16313 \begin_layout Plain Layout
16314 First_Dynamic
16315 \end_layout
16316
16317 \end_inset
16318
16319  is similar, but only the very first row of the paragraph is dynamic, while
16320  the others are static; this is used, for example, for descriptions.
16321 \end_layout
16322
16323 \begin_layout Description
16324 \begin_inset Flex Code
16325 status collapsed
16326
16327 \begin_layout Plain Layout
16328 Right_Address_Box
16329 \end_layout
16330
16331 \end_inset
16332
16333  means the margin is chosen in a way that the longest row of this paragraph
16334  fits to the right margin.
16335  This is used to typeset an address on the right edge of the page.
16336 \end_layout
16337
16338 \end_deeper
16339 \begin_layout Description
16340 \begin_inset Flex Code
16341 status collapsed
16342
16343 \begin_layout Plain Layout
16344 NeedProtect
16345 \end_layout
16346
16347 \end_inset
16348
16349  [
16350 \begin_inset Flex Code
16351 status collapsed
16352
16353 \begin_layout Plain Layout
16354
16355 \emph on
16356 0
16357 \end_layout
16358
16359 \end_inset
16360
16361 ,
16362 \begin_inset space \thinspace{}
16363 \end_inset
16364
16365
16366 \begin_inset Flex Code
16367 status collapsed
16368
16369 \begin_layout Plain Layout
16370 1
16371 \end_layout
16372
16373 \end_inset
16374
16375 ] Whether fragile commands in this style should be 
16376 \begin_inset Flex Code
16377 status collapsed
16378
16379 \begin_layout Plain Layout
16380
16381 \backslash
16382 protect
16383 \end_layout
16384
16385 \end_inset
16386
16387 'ed.
16388  (Note: This is 
16389 \emph on
16390 not
16391 \emph default
16392  whether this command should itself be protected.)
16393 \change_inserted -712698321 1523696949
16394
16395 \end_layout
16396
16397 \begin_layout Description
16398
16399 \change_inserted -712698321 1552395557
16400 \begin_inset Flex Code
16401 status collapsed
16402
16403 \begin_layout Plain Layout
16404
16405 \change_inserted -712698321 1523696950
16406 NeedCProtect
16407 \change_unchanged
16408
16409 \end_layout
16410
16411 \end_inset
16412
16413  [
16414 \begin_inset Flex Code
16415 status collapsed
16416
16417 \begin_layout Plain Layout
16418
16419 \change_inserted -712698321 1523696950
16420
16421 \emph on
16422 0
16423 \change_unchanged
16424
16425 \end_layout
16426
16427 \end_inset
16428
16429 ,
16430 \begin_inset space \thinspace{}
16431 \end_inset
16432
16433
16434 \begin_inset Flex Code
16435 status collapsed
16436
16437 \begin_layout Plain Layout
16438
16439 \change_inserted -712698321 1523696950
16440 1
16441 \change_unchanged
16442
16443 \end_layout
16444
16445 \end_inset
16446
16447 ] This causes macros that contain this layout to be protected with 
16448 \begin_inset Flex Code
16449 status collapsed
16450
16451 \begin_layout Plain Layout
16452
16453 \change_inserted -712698321 1523696950
16454
16455 \backslash
16456 cprotect
16457 \change_unchanged
16458
16459 \end_layout
16460
16461 \end_inset
16462
16463  (cf.
16464  package 
16465 \family sans
16466 cprotect
16467 \family default
16468 ) if necessary and thus allows (some) verbatim stuff in macros.
16469 \end_layout
16470
16471 \begin_layout Description
16472
16473 \change_inserted -712698321 1552395844
16474 \begin_inset Flex Code
16475 status collapsed
16476
16477 \begin_layout Plain Layout
16478
16479 \change_inserted -712698321 1552395561
16480 NeedMBoxProtect
16481 \change_unchanged
16482
16483 \end_layout
16484
16485 \end_inset
16486
16487  [
16488 \begin_inset Flex Code
16489 status collapsed
16490
16491 \begin_layout Plain Layout
16492
16493 \change_inserted -712698321 1552395557
16494
16495 \emph on
16496 0
16497 \change_unchanged
16498
16499 \end_layout
16500
16501 \end_inset
16502
16503 ,
16504 \begin_inset space \thinspace{}
16505 \end_inset
16506
16507
16508 \begin_inset Flex Code
16509 status collapsed
16510
16511 \begin_layout Plain Layout
16512
16513 \change_inserted -712698321 1552395557
16514 1
16515 \change_unchanged
16516
16517 \end_layout
16518
16519 \end_inset
16520
16521 ] Whether specific commands in this style (such as 
16522 \begin_inset Flex Code
16523 status collapsed
16524
16525 \begin_layout Plain Layout
16526
16527 \change_inserted -712698321 1552395655
16528
16529 \backslash
16530 cite
16531 \change_unchanged
16532
16533 \end_layout
16534
16535 \end_inset
16536
16537  and 
16538 \begin_inset Flex Code
16539 status collapsed
16540
16541 \begin_layout Plain Layout
16542
16543 \change_inserted -712698321 1552395661
16544
16545 \backslash
16546 ref
16547 \change_unchanged
16548
16549 \end_layout
16550
16551 \end_inset
16552
16553 ) should be protected in an 
16554 \begin_inset Flex Code
16555 status collapsed
16556
16557 \begin_layout Plain Layout
16558
16559 \change_inserted -712698321 1552395631
16560
16561 \backslash
16562 mbox
16563 \change_unchanged
16564
16565 \end_layout
16566
16567 \end_inset
16568
16569 .
16570  This is particularly needed for styles that draw on 
16571 \family sans
16572 ulem
16573 \family default
16574  or 
16575 \family sans
16576 soul
16577 \family default
16578  commands which parse their content in complex ways.
16579 \change_unchanged
16580
16581 \end_layout
16582
16583 \begin_layout Description
16584 \begin_inset Flex Code
16585 status collapsed
16586
16587 \begin_layout Plain Layout
16588 Newline
16589 \end_layout
16590
16591 \end_inset
16592
16593  [
16594 \begin_inset Flex Code
16595 status collapsed
16596
16597 \begin_layout Plain Layout
16598 0
16599 \end_layout
16600
16601 \end_inset
16602
16603 ,
16604 \begin_inset space \thinspace{}
16605 \end_inset
16606
16607
16608 \begin_inset Flex Code
16609 status collapsed
16610
16611 \begin_layout Plain Layout
16612
16613 \emph on
16614 1
16615 \end_layout
16616
16617 \end_inset
16618
16619 ] Whether newlines are translated into \SpecialChar LaTeX
16620  newlines (
16621 \begin_inset Flex Code
16622 status collapsed
16623
16624 \begin_layout Plain Layout
16625
16626 \backslash
16627
16628 \backslash
16629
16630 \end_layout
16631
16632 \end_inset
16633
16634 ) or not.
16635  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16636  editing
16637  inside \SpecialChar LyX
16638 .
16639 \end_layout
16640
16641 \begin_layout Description
16642 \begin_inset Flex Code
16643 status collapsed
16644
16645 \begin_layout Plain Layout
16646 NextNoIndent
16647 \end_layout
16648
16649 \end_inset
16650
16651  [
16652 \begin_inset Flex Code
16653 status collapsed
16654
16655 \begin_layout Plain Layout
16656
16657 \emph on
16658 0
16659 \end_layout
16660
16661 \end_inset
16662
16663 ,
16664 \begin_inset space \thinspace{}
16665 \end_inset
16666
16667
16668 \begin_inset Flex Code
16669 status collapsed
16670
16671 \begin_layout Plain Layout
16672 1
16673 \end_layout
16674
16675 \end_inset
16676
16677 ] If set to true, and if 
16678 \begin_inset Flex Code
16679 status collapsed
16680
16681 \begin_layout Plain Layout
16682 DefaultStyle
16683 \end_layout
16684
16685 \end_inset
16686
16687  (usually 
16688 \begin_inset Flex Code
16689 status collapsed
16690
16691 \begin_layout Plain Layout
16692 Standard
16693 \end_layout
16694
16695 \end_inset
16696
16697 ) paragraphs are being indented, then the indentation of such a paragraph
16698  following one of this type will be suppressed.
16699  (So this will not affect the display of non-default paragraphs.)
16700 \end_layout
16701
16702 \begin_layout Description
16703 \begin_inset Flex Code
16704 status collapsed
16705
16706 \begin_layout Plain Layout
16707 ObsoletedBy
16708 \end_layout
16709
16710 \end_inset
16711
16712  [
16713 \begin_inset Flex Code
16714 status collapsed
16715
16716 \begin_layout Plain Layout
16717 <name>
16718 \end_layout
16719
16720 \end_inset
16721
16722 ] Name of a style that has replaced this style.
16723  This is used to rename a style, while keeping backward compatibility.
16724 \end_layout
16725
16726 \begin_layout Description
16727 \begin_inset Flex Code
16728 status collapsed
16729
16730 \begin_layout Plain Layout
16731 ParagraphGroup
16732 \end_layout
16733
16734 \end_inset
16735
16736  [
16737 \begin_inset Flex Code
16738 status collapsed
16739
16740 \begin_layout Plain Layout
16741 0
16742 \end_layout
16743
16744 \end_inset
16745
16746 ,
16747 \begin_inset space \thinspace{}
16748 \end_inset
16749
16750
16751 \begin_inset Flex Code
16752 status collapsed
16753
16754 \begin_layout Plain Layout
16755 1
16756 \end_layout
16757
16758 \end_inset
16759
16760 ] Determines whether consecutive paragraphs of the same type are treated
16761  as belonging together.
16762  This has the effect that the 
16763 \begin_inset Flex Code
16764 status collapsed
16765
16766 \begin_layout Plain Layout
16767 GuiLabel
16768 \end_layout
16769
16770 \end_inset
16771
16772  is only printed once before such a group.
16773  By default, this is true for 
16774 \begin_inset Flex Code
16775 status collapsed
16776
16777 \begin_layout Plain Layout
16778 LaTeXType
16779 \end_layout
16780
16781 \end_inset
16782
16783  
16784 \begin_inset Flex Code
16785 status collapsed
16786
16787 \begin_layout Plain Layout
16788 Environment
16789 \end_layout
16790
16791 \end_inset
16792
16793  and 
16794 \begin_inset Flex Code
16795 status collapsed
16796
16797 \begin_layout Plain Layout
16798 Bib_Environment
16799 \end_layout
16800
16801 \end_inset
16802
16803  and false for all other types.
16804 \end_layout
16805
16806 \begin_layout Description
16807 \begin_inset Flex Code
16808 status collapsed
16809
16810 \begin_layout Plain Layout
16811 ParbreakIsNewline
16812 \end_layout
16813
16814 \end_inset
16815
16816  [
16817 \begin_inset Flex Code
16818 status collapsed
16819
16820 \begin_layout Plain Layout
16821
16822 \emph on
16823 0
16824 \end_layout
16825
16826 \end_inset
16827
16828 ,
16829 \begin_inset space \thinspace{}
16830 \end_inset
16831
16832
16833 \begin_inset Flex Code
16834 status collapsed
16835
16836 \begin_layout Plain Layout
16837 1
16838 \end_layout
16839
16840 \end_inset
16841
16842 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16843  output,
16844  but only by a line break; together with 
16845 \begin_inset Flex Code
16846 status collapsed
16847
16848 \begin_layout Plain Layout
16849 PassThru 1
16850 \end_layout
16851
16852 \end_inset
16853
16854 , this allows to emulate a plain text editor (like the ERT inset).
16855 \end_layout
16856
16857 \begin_layout Description
16858 \begin_inset Flex Code
16859 status collapsed
16860
16861 \begin_layout Plain Layout
16862 ParIndent
16863 \end_layout
16864
16865 \end_inset
16866
16867  [
16868 \begin_inset Flex Code
16869 status collapsed
16870
16871 \begin_layout Plain Layout
16872 string=""
16873 \end_layout
16874
16875 \end_inset
16876
16877 ] The indent of the very first line of a paragraph.
16878  The
16879 \begin_inset Newline newline
16880 \end_inset
16881
16882
16883 \begin_inset Flex Code
16884 status collapsed
16885
16886 \begin_layout Plain Layout
16887 Parindent
16888 \end_layout
16889
16890 \end_inset
16891
16892  will be fixed for a certain style.
16893  The exception is the default style, since the indentation for these paragraphs
16894  can be prohibited with 
16895 \begin_inset Flex Code
16896 status collapsed
16897
16898 \begin_layout Plain Layout
16899 NextNoIndent
16900 \end_layout
16901
16902 \end_inset
16903
16904 .
16905  Also, 
16906 \begin_inset Flex Code
16907 status collapsed
16908
16909 \begin_layout Plain Layout
16910 Standard
16911 \end_layout
16912
16913 \end_inset
16914
16915  style paragraphs inside environments use the 
16916 \begin_inset Flex Code
16917 status collapsed
16918
16919 \begin_layout Plain Layout
16920 Parindent
16921 \end_layout
16922
16923 \end_inset
16924
16925  of the environment, not their native one.
16926  For example, 
16927 \begin_inset Flex Code
16928 status collapsed
16929
16930 \begin_layout Plain Layout
16931 Standard
16932 \end_layout
16933
16934 \end_inset
16935
16936  paragraphs inside an enumeration are not indented.
16937 \end_layout
16938
16939 \begin_layout Description
16940 \begin_inset Flex Code
16941 status collapsed
16942
16943 \begin_layout Plain Layout
16944 ParSep
16945 \end_layout
16946
16947 \end_inset
16948
16949  [
16950 \begin_inset Flex Code
16951 status collapsed
16952
16953 \begin_layout Plain Layout
16954 float=0
16955 \end_layout
16956
16957 \end_inset
16958
16959 ] The vertical space between two paragraphs of this style.
16960 \end_layout
16961
16962 \begin_layout Description
16963 \begin_inset Flex Code
16964 status collapsed
16965
16966 \begin_layout Plain Layout
16967 Parskip
16968 \end_layout
16969
16970 \end_inset
16971
16972  [
16973 \begin_inset Flex Code
16974 status collapsed
16975
16976 \begin_layout Plain Layout
16977 float=0
16978 \end_layout
16979
16980 \end_inset
16981
16982 ] \SpecialChar LyX
16983  allows the user to choose either 
16984 \begin_inset Quotes eld
16985 \end_inset
16986
16987 indent
16988 \begin_inset Quotes erd
16989 \end_inset
16990
16991  or 
16992 \begin_inset Quotes eld
16993 \end_inset
16994
16995 skip
16996 \begin_inset Quotes erd
16997 \end_inset
16998
16999  to separate paragraphs.
17000  When 
17001 \begin_inset Quotes eld
17002 \end_inset
17003
17004 indent
17005 \begin_inset Quotes erd
17006 \end_inset
17007
17008  is chosen, 
17009 \begin_inset Flex Code
17010 status collapsed
17011
17012 \begin_layout Plain Layout
17013 Parskip
17014 \end_layout
17015
17016 \end_inset
17017
17018  is ignored.
17019  When 
17020 \begin_inset Quotes eld
17021 \end_inset
17022
17023 skip
17024 \begin_inset Quotes erd
17025 \end_inset
17026
17027  is chosen, 
17028 \begin_inset Flex Code
17029 status collapsed
17030
17031 \begin_layout Plain Layout
17032 ParIndent
17033 \end_layout
17034
17035 \end_inset
17036
17037  is ignored and all paragraphs are separated by the 
17038 \begin_inset Flex Code
17039 status collapsed
17040
17041 \begin_layout Plain Layout
17042 Parskip
17043 \end_layout
17044
17045 \end_inset
17046
17047  argument.
17048  The vertical space is calculated with 
17049 \begin_inset Flex Code
17050 status collapsed
17051
17052 \begin_layout Plain Layout
17053 Parskip
17054 \begin_inset space ~
17055 \end_inset
17056
17057 * DefaultHeight
17058 \end_layout
17059
17060 \end_inset
17061
17062  where 
17063 \begin_inset Flex Code
17064 status collapsed
17065
17066 \begin_layout Plain Layout
17067 DefaultHeight
17068 \end_layout
17069
17070 \end_inset
17071
17072  is the height of a row with the normal font.
17073  This way, the look stays the same with different screen fonts.
17074 \end_layout
17075
17076 \begin_layout Description
17077 \begin_inset Flex Code
17078 status collapsed
17079
17080 \begin_layout Plain Layout
17081 PassThru
17082 \end_layout
17083
17084 \end_inset
17085
17086  [
17087 \begin_inset Flex Code
17088 status collapsed
17089
17090 \begin_layout Plain Layout
17091
17092 \emph on
17093 0
17094 \end_layout
17095
17096 \end_inset
17097
17098 ,
17099 \begin_inset space \thinspace{}
17100 \end_inset
17101
17102
17103 \begin_inset Flex Code
17104 status collapsed
17105
17106 \begin_layout Plain Layout
17107 1
17108 \end_layout
17109
17110 \end_inset
17111
17112 ] Whether the contents of this paragraph should be output in raw form, meaning
17113  without special translations that \SpecialChar LaTeX
17114  would require.
17115 \end_layout
17116
17117 \begin_layout Description
17118 \begin_inset Flex Code
17119 status collapsed
17120
17121 \begin_layout Plain Layout
17122 PassThruChars
17123 \end_layout
17124
17125 \end_inset
17126
17127  [
17128 \begin_inset Flex Code
17129 status collapsed
17130
17131 \begin_layout Plain Layout
17132 string
17133 \end_layout
17134
17135 \end_inset
17136
17137 ]
17138 \family typewriter
17139  
17140 \family default
17141 Defines individual characters that should be output in raw form, meaning
17142  without special translations that \SpecialChar LaTeX
17143  would require.
17144 \end_layout
17145
17146 \begin_layout Description
17147 \begin_inset Flex Code
17148 status collapsed
17149
17150 \begin_layout Plain Layout
17151 Preamble
17152 \end_layout
17153
17154 \end_inset
17155
17156  Information to be included in the \SpecialChar LaTeX
17157  preamble when this style is used.
17158  Used to define macros, load packages, etc., required by this particular
17159  style.
17160  Must end with 
17161 \begin_inset Quotes eld
17162 \end_inset
17163
17164
17165 \begin_inset Flex Code
17166 status collapsed
17167
17168 \begin_layout Plain Layout
17169 EndPreamble
17170 \end_layout
17171
17172 \end_inset
17173
17174
17175 \begin_inset Quotes erd
17176 \end_inset
17177
17178 .
17179 \end_layout
17180
17181 \begin_layout Description
17182 \begin_inset Flex Code
17183 status collapsed
17184
17185 \begin_layout Plain Layout
17186 RefPrefix
17187 \end_layout
17188
17189 \end_inset
17190
17191  [
17192 \begin_inset Flex Code
17193 status collapsed
17194
17195 \begin_layout Plain Layout
17196 string
17197 \end_layout
17198
17199 \end_inset
17200
17201 ] The prefix to use when creating labels referring to paragraphs of this
17202  type.
17203  This allows the use of formatted references.
17204 \end_layout
17205
17206 \begin_layout Description
17207 \begin_inset Flex Code
17208 status collapsed
17209
17210 \begin_layout Plain Layout
17211 Requires 
17212 \end_layout
17213
17214 \end_inset
17215
17216  [
17217 \begin_inset Flex Code
17218 status collapsed
17219
17220 \begin_layout Plain Layout
17221 string
17222 \end_layout
17223
17224 \end_inset
17225
17226 ] Whether the style requires the feature 
17227 \begin_inset Flex Code
17228 status collapsed
17229
17230 \begin_layout Plain Layout
17231 string
17232 \end_layout
17233
17234 \end_inset
17235
17236  (see 
17237 \begin_inset CommandInset ref
17238 LatexCommand ref
17239 reference "chap:List-of-functions"
17240
17241 \end_inset
17242
17243  for the list of features).
17244  If you require a package with specific options, you can additionally use
17245  
17246 \begin_inset Flex Code
17247 status collapsed
17248
17249 \begin_layout Plain Layout
17250 PackageOptions
17251 \end_layout
17252
17253 \end_inset
17254
17255  as a general text class parameter (see 
17256 \begin_inset CommandInset ref
17257 LatexCommand ref
17258 reference "subsec:General-text-class"
17259
17260 \end_inset
17261
17262 ).
17263 \end_layout
17264
17265 \begin_layout Description
17266 \begin_inset Flex Code
17267 status collapsed
17268
17269 \begin_layout Plain Layout
17270 ResetArgs
17271 \end_layout
17272
17273 \end_inset
17274
17275  [
17276 \begin_inset Flex Code
17277 status collapsed
17278
17279 \begin_layout Plain Layout
17280
17281 \emph on
17282 0
17283 \end_layout
17284
17285 \end_inset
17286
17287 ,
17288 \begin_inset Flex Code
17289 status collapsed
17290
17291 \begin_layout Plain Layout
17292 1
17293 \end_layout
17294
17295 \end_inset
17296
17297 ] Resets the \SpecialChar LaTeX
17298  arguments of this style (as defined via the 
17299 \begin_inset Flex Code
17300 status collapsed
17301
17302 \begin_layout Plain Layout
17303 Argument
17304 \end_layout
17305
17306 \end_inset
17307
17308  tag).
17309  This is useful if you have copied a style via 
17310 \begin_inset Flex Code
17311 status collapsed
17312
17313 \begin_layout Plain Layout
17314 CopyStyle
17315 \end_layout
17316
17317 \end_inset
17318
17319 , but you do not want to inherit its (required and optional) arguments.
17320 \end_layout
17321
17322 \begin_layout Description
17323 \begin_inset Flex Code
17324 status collapsed
17325
17326 \begin_layout Plain Layout
17327 ResumeCounter
17328 \end_layout
17329
17330 \end_inset
17331
17332  [
17333 \begin_inset Flex Code
17334 status collapsed
17335
17336 \begin_layout Plain Layout
17337
17338 \emph on
17339 0
17340 \end_layout
17341
17342 \end_inset
17343
17344 ,
17345 \begin_inset Flex Code
17346 status collapsed
17347
17348 \begin_layout Plain Layout
17349 1
17350 \end_layout
17351
17352 \end_inset
17353
17354 ] Resumes a counter that is usually reset at each new sequence of layouts.
17355  This is currently only useful when 
17356 \begin_inset Flex Code
17357 status collapsed
17358
17359 \begin_layout Plain Layout
17360 LabelType
17361 \end_layout
17362
17363 \end_inset
17364
17365  is 
17366 \begin_inset Flex Code
17367 status collapsed
17368
17369 \begin_layout Plain Layout
17370 Enumerate
17371 \end_layout
17372
17373 \end_inset
17374
17375 .
17376 \end_layout
17377
17378 \begin_layout Description
17379 \begin_inset Flex Code
17380 status collapsed
17381
17382 \begin_layout Plain Layout
17383 RightDelim
17384 \end_layout
17385
17386 \end_inset
17387
17388  [
17389 \begin_inset Flex Code
17390 status collapsed
17391
17392 \begin_layout Plain Layout
17393 string
17394 \end_layout
17395
17396 \end_inset
17397
17398 ] A string that is put at the end of the layout content.
17399  A line break in the output can be indicated by 
17400 \begin_inset Flex Code
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404 <br/>
17405 \end_layout
17406
17407 \end_inset
17408
17409 .
17410 \end_layout
17411
17412 \begin_layout Description
17413 \begin_inset Flex Code
17414 status collapsed
17415
17416 \begin_layout Plain Layout
17417 RightMargin
17418 \end_layout
17419
17420 \end_inset
17421
17422  [
17423 \begin_inset Flex Code
17424 status collapsed
17425
17426 \begin_layout Plain Layout
17427 string=""
17428 \end_layout
17429
17430 \end_inset
17431
17432 ] Similar to 
17433 \begin_inset Flex Code
17434 status collapsed
17435
17436 \begin_layout Plain Layout
17437 LeftMargin
17438 \end_layout
17439
17440 \end_inset
17441
17442 .
17443 \end_layout
17444
17445 \begin_layout Description
17446 \begin_inset Flex Code
17447 status collapsed
17448
17449 \begin_layout Plain Layout
17450 Spacing
17451 \end_layout
17452
17453 \end_inset
17454
17455  [
17456 \begin_inset Flex Code
17457 status collapsed
17458
17459 \begin_layout Plain Layout
17460
17461 \emph on
17462 single
17463 \end_layout
17464
17465 \end_inset
17466
17467
17468 \begin_inset Flex Code
17469 status collapsed
17470
17471 \begin_layout Plain Layout
17472 onehalf
17473 \end_layout
17474
17475 \end_inset
17476
17477
17478 \begin_inset Flex Code
17479 status collapsed
17480
17481 \begin_layout Plain Layout
17482 double
17483 \end_layout
17484
17485 \end_inset
17486
17487
17488 \begin_inset Flex Code
17489 status collapsed
17490
17491 \begin_layout Plain Layout
17492 other
17493 \begin_inset space ~
17494 \end_inset
17495
17496 <value>
17497 \end_layout
17498
17499 \end_inset
17500
17501 ] This defines what the default spacing should be in the style.
17502  The arguments 
17503 \begin_inset Flex Code
17504 status collapsed
17505
17506 \begin_layout Plain Layout
17507 single
17508 \end_layout
17509
17510 \end_inset
17511
17512
17513 \begin_inset Flex Code
17514 status collapsed
17515
17516 \begin_layout Plain Layout
17517 onehalf
17518 \end_layout
17519
17520 \end_inset
17521
17522  and 
17523 \begin_inset Flex Code
17524 status collapsed
17525
17526 \begin_layout Plain Layout
17527 double
17528 \end_layout
17529
17530 \end_inset
17531
17532  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17533  If you specify the argument 
17534 \begin_inset Flex Code
17535 status collapsed
17536
17537 \begin_layout Plain Layout
17538 other
17539 \end_layout
17540
17541 \end_inset
17542
17543 , then you must also provide a value argument which will be the actual multiplie
17544 r value.
17545  Note that, contrary to other parameters, 
17546 \begin_inset Flex Code
17547 status collapsed
17548
17549 \begin_layout Plain Layout
17550 Spacing
17551 \end_layout
17552
17553 \end_inset
17554
17555  implies the generation of specific \SpecialChar LaTeX
17556  code, using the \SpecialChar LaTeX
17557  package 
17558 \family roman
17559
17560 \begin_inset Flex Code
17561 status collapsed
17562
17563 \begin_layout Plain Layout
17564 setspace
17565 \end_layout
17566
17567 \end_inset
17568
17569 .
17570 \end_layout
17571
17572 \begin_layout Description
17573 \begin_inset Flex Code
17574 status collapsed
17575
17576 \begin_layout Plain Layout
17577 Spellcheck
17578 \end_layout
17579
17580 \end_inset
17581
17582  [
17583 \begin_inset Flex Code
17584 status collapsed
17585
17586 \begin_layout Plain Layout
17587 0
17588 \end_layout
17589
17590 \end_inset
17591
17592 ,
17593 \begin_inset space \thinspace{}
17594 \end_inset
17595
17596
17597 \begin_inset Flex Code
17598 status collapsed
17599
17600 \begin_layout Plain Layout
17601
17602 \emph on
17603 1
17604 \end_layout
17605
17606 \end_inset
17607
17608 ] Allow spell-checking paragraphs of this style.
17609  Default is true.
17610 \end_layout
17611
17612 \begin_layout Description
17613 \begin_inset Flex Code
17614 status collapsed
17615
17616 \begin_layout Plain Layout
17617 Step
17618 \change_deleted 731793113 1604355211
17619 Master
17620 \change_inserted 731793113 1604355212
17621 Parent
17622 \change_unchanged
17623 Counter
17624 \end_layout
17625
17626 \end_inset
17627
17628  [
17629 \begin_inset Flex Code
17630 status collapsed
17631
17632 \begin_layout Plain Layout
17633
17634 \emph on
17635 0
17636 \end_layout
17637
17638 \end_inset
17639
17640 ,
17641 \begin_inset Flex Code
17642 status collapsed
17643
17644 \begin_layout Plain Layout
17645 1
17646 \end_layout
17647
17648 \end_inset
17649
17650 ] Steps the 
17651 \change_deleted 731793113 1604355214
17652 master
17653 \change_inserted 731793113 1604355216
17654 parent
17655 \change_unchanged
17656  counter of a given counter at the beginning of a new sequence of layouts.
17657  This is currently only useful when 
17658 \begin_inset Flex Code
17659 status collapsed
17660
17661 \begin_layout Plain Layout
17662 LabelType
17663 \end_layout
17664
17665 \end_inset
17666
17667  is 
17668 \begin_inset Flex Code
17669 status collapsed
17670
17671 \begin_layout Plain Layout
17672 Enumerate
17673 \end_layout
17674
17675 \end_inset
17676
17677 .
17678 \end_layout
17679
17680 \begin_layout Description
17681 \begin_inset Flex Code
17682 status collapsed
17683
17684 \begin_layout Plain Layout
17685 TextFont
17686 \end_layout
17687
17688 \end_inset
17689
17690  The font used for the text body .
17691  See 
17692 \begin_inset CommandInset ref
17693 LatexCommand ref
17694 reference "subsec:Font-description"
17695
17696 \end_inset
17697
17698 .
17699 \end_layout
17700
17701 \begin_layout Description
17702 \begin_inset Flex Code
17703 status collapsed
17704
17705 \begin_layout Plain Layout
17706 TocLevel
17707 \end_layout
17708
17709 \end_inset
17710
17711
17712 \series medium
17713  [
17714 \begin_inset Flex Code
17715 status collapsed
17716
17717 \begin_layout Plain Layout
17718
17719 \series medium
17720 int=3
17721 \end_layout
17722
17723 \end_inset
17724
17725 ]
17726 \series default
17727  The level of the style in the table of contents.
17728  This is used for automatic numbering of section headings.
17729 \end_layout
17730
17731 \begin_layout Description
17732 \begin_inset Flex Code
17733 status collapsed
17734
17735 \begin_layout Plain Layout
17736 ToggleIndent
17737 \end_layout
17738
17739 \end_inset
17740
17741  [
17742 \emph on
17743
17744 \begin_inset Flex Code
17745 status collapsed
17746
17747 \begin_layout Plain Layout
17748
17749 \emph on
17750 default
17751 \end_layout
17752
17753 \end_inset
17754
17755
17756 \emph default
17757
17758 \begin_inset Flex Code
17759 status collapsed
17760
17761 \begin_layout Plain Layout
17762 always
17763 \end_layout
17764
17765 \end_inset
17766
17767
17768 \begin_inset Flex Code
17769 status collapsed
17770
17771 \begin_layout Plain Layout
17772 never
17773 \end_layout
17774
17775 \end_inset
17776
17777 ] This tag determines whether the first line indentation of this paragraph
17778  can be toggled via the Paragraph settings dialog.
17779  If 
17780 \emph on
17781
17782 \begin_inset Flex Code
17783 status collapsed
17784
17785 \begin_layout Plain Layout
17786
17787 \emph off
17788 default
17789 \end_layout
17790
17791 \end_inset
17792
17793
17794 \emph default
17795  is set, indentation can be toggled if the document settings use 
17796 \begin_inset Quotes eld
17797 \end_inset
17798
17799 indent
17800 \begin_inset Quotes erd
17801 \end_inset
17802
17803  paragraph style, with 
17804 \begin_inset Flex Code
17805 status collapsed
17806
17807 \begin_layout Plain Layout
17808 always
17809 \end_layout
17810
17811 \end_inset
17812
17813 , indentation can always be toggled, notwithstanding the document settings,
17814  with 
17815 \begin_inset Flex Code
17816 status collapsed
17817
17818 \begin_layout Plain Layout
17819 never
17820 \end_layout
17821
17822 \end_inset
17823
17824 , indentation can never be toggled.
17825 \end_layout
17826
17827 \begin_layout Description
17828 \begin_inset Flex Code
17829 status collapsed
17830
17831 \begin_layout Plain Layout
17832 TopSep
17833 \end_layout
17834
17835 \end_inset
17836
17837  [
17838 \begin_inset Flex Code
17839 status collapsed
17840
17841 \begin_layout Plain Layout
17842 float=0
17843 \end_layout
17844
17845 \end_inset
17846
17847 ] The vertical space with which the very first of a chain of paragraphs
17848  with this style is separated from the previous paragraph.
17849  If the previous paragraph has another style, the separations are not simply
17850  added, but the maximum is taken.
17851 \end_layout
17852
17853 \begin_layout Subsection
17854 \begin_inset CommandInset label
17855 LatexCommand label
17856 name "subsec:I18n"
17857
17858 \end_inset
17859
17860 Internationalization of Paragraph Styles
17861 \end_layout
17862
17863 \begin_layout Standard
17864 \SpecialChar LyX
17865  has long supported internationalization of layout information, but, until
17866  version 2.0, this applied only to the user interface and not to, say, PDF
17867  output.
17868  Thus, French authors were forced to resort to ugly hacks if they wanted
17869  `
17870 \lang french
17871 Théorème
17872 \lang english
17873  1' instead of `Theorem 1'.
17874  Thanks to Georg Baum, that is no longer the case.
17875 \end_layout
17876
17877 \begin_layout Standard
17878 If a 
17879 \begin_inset Flex Code
17880 status collapsed
17881
17882 \begin_layout Plain Layout
17883 Style
17884 \end_layout
17885
17886 \end_inset
17887
17888  defines text that is to appear in the typeset document, it may use 
17889 \begin_inset Flex Code
17890 status collapsed
17891
17892 \begin_layout Plain Layout
17893 LangPreamble
17894 \end_layout
17895
17896 \end_inset
17897
17898  and 
17899 \begin_inset Flex Code
17900 status collapsed
17901
17902 \begin_layout Plain Layout
17903 BabelPreamble
17904 \end_layout
17905
17906 \end_inset
17907
17908  to support non-English and even multi-language documents correctly.
17909  The following excerpt (from the 
17910 \begin_inset Flex Code
17911 status collapsed
17912
17913 \begin_layout Plain Layout
17914 theorems-ams.inc
17915 \end_layout
17916
17917 \end_inset
17918
17919  file) shows how this works:
17920 \end_layout
17921
17922 \begin_layout LyX-Code
17923 Preamble
17924 \end_layout
17925
17926 \begin_deeper
17927 \begin_layout LyX-Code
17928   
17929 \backslash
17930 theoremstyle{remark}
17931 \end_layout
17932
17933 \begin_layout LyX-Code
17934   
17935 \backslash
17936 newtheorem{claim}[thm]{
17937 \backslash
17938 protect
17939 \backslash
17940 claimname}
17941 \end_layout
17942
17943 \begin_layout LyX-Code
17944 EndPreamble
17945 \end_layout
17946
17947 \begin_layout LyX-Code
17948 LangPreamble
17949 \end_layout
17950
17951 \begin_layout LyX-Code
17952   
17953 \backslash
17954 providecommand{
17955 \backslash
17956 claimname}{_(Claim)}
17957 \end_layout
17958
17959 \begin_layout LyX-Code
17960 EndLangPreamble
17961 \end_layout
17962
17963 \begin_layout LyX-Code
17964 BabelPreamble
17965 \end_layout
17966
17967 \begin_layout LyX-Code
17968     
17969 \backslash
17970 addto
17971 \backslash
17972 captions$$lang{
17973 \backslash
17974 renewcommand{
17975 \backslash
17976 claimname}{_(Claim)}}
17977 \end_layout
17978
17979 \begin_layout LyX-Code
17980 EndBabelPreamble
17981 \end_layout
17982
17983 \end_deeper
17984 \begin_layout Standard
17985 In principle, any legal \SpecialChar LaTeX
17986  may appear in the 
17987 \begin_inset Flex Code
17988 status collapsed
17989
17990 \begin_layout Plain Layout
17991 LangPreamble
17992 \end_layout
17993
17994 \end_inset
17995
17996  and 
17997 \begin_inset Flex Code
17998 status collapsed
17999
18000 \begin_layout Plain Layout
18001 BabelPreamble
18002 \end_layout
18003
18004 \end_inset
18005
18006  tags, but in practice they will typically look as they do here.
18007  The key to correct translation of the typeset text is the definition of
18008  the \SpecialChar LaTeX
18009  command 
18010 \begin_inset Flex Code
18011 status collapsed
18012
18013 \begin_layout Plain Layout
18014
18015 \backslash
18016 claimname
18017 \end_layout
18018
18019 \end_inset
18020
18021  and its use in 
18022 \begin_inset Flex Code
18023 status collapsed
18024
18025 \begin_layout Plain Layout
18026
18027 \backslash
18028 newtheorem
18029 \end_layout
18030
18031 \end_inset
18032
18033 .
18034  
18035 \end_layout
18036
18037 \begin_layout Standard
18038 The 
18039 \begin_inset Flex Code
18040 status collapsed
18041
18042 \begin_layout Plain Layout
18043 LangPreamble
18044 \end_layout
18045
18046 \end_inset
18047
18048  tag provides for internationalization based upon the overall language of
18049  the document.
18050  The contents of the tag will be included in the preamble, just as with
18051  the 
18052 \begin_inset Flex Code
18053 status collapsed
18054
18055 \begin_layout Plain Layout
18056 Preamble
18057 \end_layout
18058
18059 \end_inset
18060
18061  tag.
18062  What makes it special is the use of the 
18063 \begin_inset Quotes eld
18064 \end_inset
18065
18066 function
18067 \begin_inset Quotes erd
18068 \end_inset
18069
18070  
18071 \begin_inset Flex Code
18072 status collapsed
18073
18074 \begin_layout Plain Layout
18075 _()
18076 \end_layout
18077
18078 \end_inset
18079
18080 , which will be replaced, when \SpecialChar LyX
18081  produces \SpecialChar LaTeX
18082  output, with the translation of
18083  its argument into the document language.
18084 \end_layout
18085
18086 \begin_layout Standard
18087 The 
18088 \begin_inset Flex Code
18089 status collapsed
18090
18091 \begin_layout Plain Layout
18092 BabelPreamble
18093 \end_layout
18094
18095 \end_inset
18096
18097  tag is more complex, since it is meant to provide support for multi-language
18098  documents and so offers an interface to the 
18099 \begin_inset Flex Code
18100 status collapsed
18101
18102 \begin_layout Plain Layout
18103 babel
18104 \end_layout
18105
18106 \end_inset
18107
18108  package.
18109  Its contents will be added to the preamble once for each language that
18110  appears in the document.
18111  In this case, the argument to 
18112 \begin_inset Flex Code
18113 status collapsed
18114
18115 \begin_layout Plain Layout
18116 _()
18117 \end_layout
18118
18119 \end_inset
18120
18121  will be replaced with its translation into the language in question; the
18122  expression 
18123 \begin_inset Flex Code
18124 status collapsed
18125
18126 \begin_layout Plain Layout
18127 $$lang
18128 \end_layout
18129
18130 \end_inset
18131
18132  is replaced by the language name (as used by the babel package).
18133 \end_layout
18134
18135 \begin_layout Standard
18136 A German document that also included a French section would thus have the
18137  following in the preamble:
18138 \end_layout
18139
18140 \begin_layout LyX-Code
18141
18142 \backslash
18143 addto
18144 \backslash
18145 captionsfrench{
18146 \backslash
18147 renewcommand{
18148 \backslash
18149 claimname}{Affirmation}}
18150 \begin_inset Newline newline
18151 \end_inset
18152
18153
18154 \backslash
18155 addto
18156 \backslash
18157 captionsngerman{
18158 \backslash
18159 renewcommand{
18160 \backslash
18161 claimname}{Behauptung}}
18162 \begin_inset Newline newline
18163 \end_inset
18164
18165
18166 \backslash
18167 providecommand{
18168 \backslash
18169 claimname}{Behauptung}
18170 \end_layout
18171
18172 \begin_layout Standard
18173 \SpecialChar LaTeX
18174  and 
18175 \begin_inset Flex Code
18176 status collapsed
18177
18178 \begin_layout Plain Layout
18179 babel
18180 \end_layout
18181
18182 \end_inset
18183
18184  will then conspire to produce the correct text in the output.
18185 \end_layout
18186
18187 \begin_layout Standard
18188 One important point to note here is that the translations are provided by
18189  \SpecialChar LyX
18190  itself, through the file 
18191 \begin_inset Flex Code
18192 status collapsed
18193
18194 \begin_layout Plain Layout
18195 layouttranslations
18196 \end_layout
18197
18198 \end_inset
18199
18200 .
18201  This means, in effect, that 
18202 \begin_inset Flex Code
18203 status collapsed
18204
18205 \begin_layout Plain Layout
18206 LangPreamble
18207 \end_layout
18208
18209 \end_inset
18210
18211  and 
18212 \begin_inset Flex Code
18213 status collapsed
18214
18215 \begin_layout Plain Layout
18216 BabelPreamble
18217 \end_layout
18218
18219 \end_inset
18220
18221  are really only of use in layout files that are provided with \SpecialChar LyX
18222 , since text
18223  entered in user-created layout files will not be seen by \SpecialChar LyX
18224 's internationalizatio
18225 n routines unless the 
18226 \begin_inset Flex Code
18227 status collapsed
18228
18229 \begin_layout Plain Layout
18230 layouttranslations
18231 \end_layout
18232
18233 \end_inset
18234
18235  file is modified accordingly.
18236  That said, however, any layout created with the intention that it will
18237  be included with \SpecialChar LyX
18238  should use these tags where appropriate.
18239  Please note that the paragraph style translations provided by \SpecialChar LyX
18240  will never
18241  change with a minor update (e.
18242 \begin_inset space \thinspace{}
18243 \end_inset
18244
18245 g.
18246 \begin_inset space \space{}
18247 \end_inset
18248
18249 from version 2.1.x to 2.1.y).
18250  It is however quite likely that a major update (e.
18251 \begin_inset space \thinspace{}
18252 \end_inset
18253
18254 g.
18255 \begin_inset space \space{}
18256 \end_inset
18257
18258 from 2.0.x to 2.1.0) will introduce new translations or corrections.
18259 \end_layout
18260
18261 \begin_layout Subsection
18262 Floats
18263 \begin_inset CommandInset label
18264 LatexCommand label
18265 name "subsec:Floats"
18266
18267 \end_inset
18268
18269
18270 \end_layout
18271
18272 \begin_layout Standard
18273 It is necessary to define the floats (
18274 \begin_inset Flex Noun
18275 status collapsed
18276
18277 \begin_layout Plain Layout
18278 figure
18279 \end_layout
18280
18281 \end_inset
18282
18283
18284 \begin_inset Flex Noun
18285 status collapsed
18286
18287 \begin_layout Plain Layout
18288 table
18289 \end_layout
18290
18291 \end_inset
18292
18293 , \SpecialChar ldots
18294 ) in the text class itself.
18295  Standard floats are included in the file 
18296 \begin_inset Flex Code
18297 status collapsed
18298
18299 \begin_layout Plain Layout
18300 stdfloats.inc
18301 \end_layout
18302
18303 \end_inset
18304
18305 , so you may have to do no more than add
18306 \end_layout
18307
18308 \begin_layout LyX-Code
18309 Input stdfloats.inc
18310 \end_layout
18311
18312 \begin_layout Standard
18313 to your layout file.
18314  If you want to implement a text class that proposes some other float types
18315  (like the AGU class bundled with \SpecialChar LyX
18316 ), the information below will hopefully
18317  help you:
18318 \end_layout
18319
18320 \begin_layout Description
18321 \begin_inset Flex Code
18322 status collapsed
18323
18324 \begin_layout Plain Layout
18325 AllowedPlacement
18326 \end_layout
18327
18328 \end_inset
18329
18330  [
18331 \begin_inset Flex Code
18332 status collapsed
18333
18334 \begin_layout Plain Layout
18335 string
18336 \end_layout
18337
18338 \end_inset
18339
18340 =!htbpH] Allowed placement options for this float type.
18341  The value is a string of placement characters.
18342  Possible characters include: 
18343 \emph on
18344 h
18345 \emph default
18346  (
18347 \begin_inset Quotes eld
18348 \end_inset
18349
18350 here if possible
18351 \begin_inset Quotes erd
18352 \end_inset
18353
18354 ), 
18355 \emph on
18356 t
18357 \emph default
18358  (
18359 \begin_inset Quotes eld
18360 \end_inset
18361
18362 top of page
18363 \begin_inset Quotes erd
18364 \end_inset
18365
18366 ), 
18367 \emph on
18368 b
18369 \emph default
18370  (
18371 \begin_inset Quotes eld
18372 \end_inset
18373
18374 bottom of page
18375 \begin_inset Quotes erd
18376 \end_inset
18377
18378 ), 
18379 \emph on
18380 p
18381 \emph default
18382  (
18383 \begin_inset Quotes eld
18384 \end_inset
18385
18386 page of floats
18387 \begin_inset Quotes erd
18388 \end_inset
18389
18390 ), 
18391 \emph on
18392 H
18393 \emph default
18394  (
18395 \begin_inset Quotes eld
18396 \end_inset
18397
18398 here definitely
18399 \begin_inset Quotes erd
18400 \end_inset
18401
18402 ) and 
18403 \emph on
18404 !
18405 \emph default
18406  (
18407 \begin_inset Quotes eld
18408 \end_inset
18409
18410 ignore LaTeX rules
18411 \begin_inset Quotes erd
18412 \end_inset
18413
18414 ).
18415  The order of the characters in the string does not matter.
18416  If no placement options are allowed, use the string 
18417 \emph on
18418 none
18419 \emph default
18420 .
18421 \end_layout
18422
18423 \begin_layout Description
18424 \begin_inset Flex Code
18425 status collapsed
18426
18427 \begin_layout Plain Layout
18428 AllowsSideways
18429 \end_layout
18430
18431 \end_inset
18432
18433  [
18434 \begin_inset Flex Code
18435 status collapsed
18436
18437 \begin_layout Plain Layout
18438
18439 \emph off
18440 0
18441 \end_layout
18442
18443 \end_inset
18444
18445 ,
18446 \begin_inset space \thinspace{}
18447 \end_inset
18448
18449
18450 \emph on
18451
18452 \begin_inset Flex Code
18453 status collapsed
18454
18455 \begin_layout Plain Layout
18456
18457 \emph on
18458 1
18459 \end_layout
18460
18461 \end_inset
18462
18463
18464 \emph default
18465 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
18466 -package 
18467 \family typewriter
18468 rotfloat
18469 \family default
18470  (sidewaysfloat).
18471  Set to 
18472 \begin_inset Flex Code
18473 status collapsed
18474
18475 \begin_layout Plain Layout
18476 0
18477 \end_layout
18478
18479 \end_inset
18480
18481  if the float does not support this feature.
18482 \end_layout
18483
18484 \begin_layout Description
18485 \begin_inset Flex Code
18486 status collapsed
18487
18488 \begin_layout Plain Layout
18489 AllowsWide
18490 \end_layout
18491
18492 \end_inset
18493
18494  [
18495 \begin_inset Flex Code
18496 status collapsed
18497
18498 \begin_layout Plain Layout
18499
18500 \emph off
18501 0
18502 \end_layout
18503
18504 \end_inset
18505
18506 ,
18507 \begin_inset space \thinspace{}
18508 \end_inset
18509
18510
18511 \emph on
18512
18513 \begin_inset Flex Code
18514 status collapsed
18515
18516 \begin_layout Plain Layout
18517
18518 \emph on
18519 1
18520 \end_layout
18521
18522 \end_inset
18523
18524
18525 \emph default
18526 ] Defines whether the float has a starred variant that spans columns in
18527  a two column paragraph.
18528  Set to 
18529 \begin_inset Flex Code
18530 status collapsed
18531
18532 \begin_layout Plain Layout
18533 0
18534 \end_layout
18535
18536 \end_inset
18537
18538  if the float does not support this feature.
18539 \end_layout
18540
18541 \begin_layout Description
18542 \begin_inset Flex Code
18543 status collapsed
18544
18545 \begin_layout Plain Layout
18546 Extension
18547 \end_layout
18548
18549 \end_inset
18550
18551  [
18552 \begin_inset Flex Code
18553 status collapsed
18554
18555 \begin_layout Plain Layout
18556 string
18557 \end_layout
18558
18559 \end_inset
18560
18561 =
18562 \begin_inset Quotes erd
18563 \end_inset
18564
18565
18566 \begin_inset Quotes erd
18567 \end_inset
18568
18569 ] The file name extension of an auxiliary file for the list of figures (or
18570  whatever).
18571  \SpecialChar LaTeX
18572  writes the captions to this file.
18573 \end_layout
18574
18575 \begin_layout Description
18576 \begin_inset Flex Code
18577 status collapsed
18578
18579 \begin_layout Plain Layout
18580 GuiName
18581 \end_layout
18582
18583 \end_inset
18584
18585  [
18586 \begin_inset Flex Code
18587 status collapsed
18588
18589 \begin_layout Plain Layout
18590 string
18591 \end_layout
18592
18593 \end_inset
18594
18595 =
18596 \begin_inset Quotes erd
18597 \end_inset
18598
18599
18600 \begin_inset Quotes erd
18601 \end_inset
18602
18603 ] The string that will be used in the menus and also for the caption.
18604  This is translated to the current language if babel is used.
18605 \end_layout
18606
18607 \begin_layout Description
18608 \begin_inset Flex Code
18609 status collapsed
18610
18611 \begin_layout Plain Layout
18612 HTML*
18613 \end_layout
18614
18615 \end_inset
18616
18617  These tags control the XHTML output.
18618  See 
18619 \begin_inset CommandInset ref
18620 LatexCommand ref
18621 reference "sec:Tags-for-XHTML"
18622
18623 \end_inset
18624
18625 .
18626 \end_layout
18627
18628 \begin_layout Description
18629 \begin_inset Flex Code
18630 status collapsed
18631
18632 \begin_layout Plain Layout
18633 IsPredefined
18634 \end_layout
18635
18636 \end_inset
18637
18638  [
18639 \emph on
18640
18641 \begin_inset Flex Code
18642 status collapsed
18643
18644 \begin_layout Plain Layout
18645 0
18646 \end_layout
18647
18648 \end_inset
18649
18650
18651 \emph default
18652 ,
18653 \begin_inset space \thinspace{}
18654 \end_inset
18655
18656
18657 \begin_inset Flex Code
18658 status collapsed
18659
18660 \begin_layout Plain Layout
18661 1
18662 \end_layout
18663
18664 \end_inset
18665
18666 ] Indicates whether the float is already defined in the document class or
18667  if instead the \SpecialChar LaTeX
18668  package 
18669 \begin_inset Flex Code
18670 status collapsed
18671
18672 \begin_layout Plain Layout
18673 float
18674 \end_layout
18675
18676 \end_inset
18677
18678  needs to be loaded to define it on-the-fly.
18679  The default is 
18680 \begin_inset Flex Code
18681 status collapsed
18682
18683 \begin_layout Plain Layout
18684 0
18685 \end_layout
18686
18687 \end_inset
18688
18689 , which means: 
18690 \begin_inset Flex Code
18691 status collapsed
18692
18693 \begin_layout Plain Layout
18694 float
18695 \end_layout
18696
18697 \end_inset
18698
18699  is used.
18700  It should be set to 
18701 \begin_inset Flex Code
18702 status collapsed
18703
18704 \begin_layout Plain Layout
18705 1
18706 \end_layout
18707
18708 \end_inset
18709
18710  if the float is already defined by the \SpecialChar LaTeX
18711  document class.
18712 \end_layout
18713
18714 \begin_layout Description
18715 \begin_inset Flex Code
18716 status collapsed
18717
18718 \begin_layout Plain Layout
18719 ListCommand
18720 \end_layout
18721
18722 \end_inset
18723
18724  [
18725 \begin_inset Flex Code
18726 status collapsed
18727
18728 \begin_layout Plain Layout
18729 string
18730 \end_layout
18731
18732 \end_inset
18733
18734 =
18735 \begin_inset Quotes erd
18736 \end_inset
18737
18738
18739 \begin_inset Quotes erd
18740 \end_inset
18741
18742 ] The command used to generate a list of floats of this type; the leading
18743  `
18744 \backslash
18745 ' must be omitted.
18746  This 
18747 \emph on
18748 must
18749 \emph default
18750  be given if 
18751 \begin_inset Flex Code
18752 status collapsed
18753
18754 \begin_layout Plain Layout
18755 UsesFloatPkg
18756 \end_layout
18757
18758 \end_inset
18759
18760  is false, since there is no standard way to generate this command.
18761  It is ignored if 
18762 \begin_inset Flex Code
18763 status collapsed
18764
18765 \begin_layout Plain Layout
18766 UsesFloatPkg
18767 \end_layout
18768
18769 \end_inset
18770
18771  is true, since in that case there is a standard way to define the command.
18772 \end_layout
18773
18774 \begin_layout Description
18775 \begin_inset Flex Code
18776 status collapsed
18777
18778 \begin_layout Plain Layout
18779 ListName
18780 \end_layout
18781
18782 \end_inset
18783
18784  [
18785 \begin_inset Flex Code
18786 status collapsed
18787
18788 \begin_layout Plain Layout
18789 string
18790 \end_layout
18791
18792 \end_inset
18793
18794 =
18795 \begin_inset Quotes erd
18796 \end_inset
18797
18798
18799 \begin_inset Quotes erd
18800 \end_inset
18801
18802 ] A title for a list of floats of this kind (list of figures, tables, or
18803  whatever).
18804  It is used for the screen label within \SpecialChar LyX
18805 , it is used by \SpecialChar LaTeX
18806  for the title and
18807  it is used as the title in the XHTML output.
18808  It will be translated to the document language.
18809 \end_layout
18810
18811 \begin_layout Description
18812 \begin_inset Flex Code
18813 status collapsed
18814
18815 \begin_layout Plain Layout
18816 NumberWithin
18817 \end_layout
18818
18819 \end_inset
18820
18821  [
18822 \begin_inset Flex Code
18823 status collapsed
18824
18825 \begin_layout Plain Layout
18826 string
18827 \end_layout
18828
18829 \end_inset
18830
18831 =
18832 \begin_inset Quotes erd
18833 \end_inset
18834
18835
18836 \begin_inset Quotes erd
18837 \end_inset
18838
18839 ] This (optional) argument determines whether floats of this class will
18840  be numbered within some sectional unit of the document.
18841  For example, if 
18842 \begin_inset Flex Code
18843 status collapsed
18844
18845 \begin_layout Plain Layout
18846 NumberWithin
18847 \end_layout
18848
18849 \end_inset
18850
18851  is set to 
18852 \begin_inset Quotes eld
18853 \end_inset
18854
18855
18856 \begin_inset Flex Code
18857 status collapsed
18858
18859 \begin_layout Plain Layout
18860 chapter
18861 \end_layout
18862
18863 \end_inset
18864
18865
18866 \begin_inset Quotes erd
18867 \end_inset
18868
18869 , the floats will be numbered within chapters.
18870  
18871 \end_layout
18872
18873 \begin_layout Description
18874 \begin_inset Flex Code
18875 status collapsed
18876
18877 \begin_layout Plain Layout
18878 Placement
18879 \end_layout
18880
18881 \end_inset
18882
18883  [
18884 \begin_inset Flex Code
18885 status collapsed
18886
18887 \begin_layout Plain Layout
18888 string
18889 \end_layout
18890
18891 \end_inset
18892
18893 =
18894 \begin_inset Quotes erd
18895 \end_inset
18896
18897
18898 \begin_inset Quotes erd
18899 \end_inset
18900
18901 ] The default placement for the given class of floats.
18902  The string should be as in standard \SpecialChar LaTeX
18903
18904 \begin_inset Flex Code
18905 status collapsed
18906
18907 \begin_layout Plain Layout
18908 t
18909 \end_layout
18910
18911 \end_inset
18912
18913
18914 \begin_inset Flex Code
18915 status collapsed
18916
18917 \begin_layout Plain Layout
18918 b
18919 \end_layout
18920
18921 \end_inset
18922
18923
18924 \begin_inset Flex Code
18925 status collapsed
18926
18927 \begin_layout Plain Layout
18928 p
18929 \end_layout
18930
18931 \end_inset
18932
18933  and 
18934 \begin_inset Flex Code
18935 status collapsed
18936
18937 \begin_layout Plain Layout
18938 h
18939 \end_layout
18940
18941 \end_inset
18942
18943  for top, bottom, page, and here, respectively.
18944 \begin_inset Foot
18945 status collapsed
18946
18947 \begin_layout Plain Layout
18948 Note that the order of these letters in the string is irrelevant, like in
18949  \SpecialChar LaTeX
18950 .
18951 \end_layout
18952
18953 \end_inset
18954
18955  On top of that there is a new type, 
18956 \begin_inset Flex Code
18957 status collapsed
18958
18959 \begin_layout Plain Layout
18960 H
18961 \end_layout
18962
18963 \end_inset
18964
18965 , which does not really correspond to a float, since it means: put it 
18966 \begin_inset Quotes eld
18967 \end_inset
18968
18969 here
18970 \begin_inset Quotes erd
18971 \end_inset
18972
18973  and nowhere else.
18974  Note however that the 
18975 \begin_inset Flex Code
18976 status collapsed
18977
18978 \begin_layout Plain Layout
18979 H
18980 \end_layout
18981
18982 \end_inset
18983
18984  specifier is special and, because of implementation details, cannot be
18985  used in non-built in float types.
18986  If you do not understand what this means, just use 
18987 \begin_inset Quotes eld
18988 \end_inset
18989
18990
18991 \begin_inset Flex Code
18992 status collapsed
18993
18994 \begin_layout Plain Layout
18995 tbp
18996 \end_layout
18997
18998 \end_inset
18999
19000
19001 \begin_inset Quotes erd
19002 \end_inset
19003
19004 .
19005 \end_layout
19006
19007 \begin_layout Description
19008 \begin_inset Flex Code
19009 status collapsed
19010
19011 \begin_layout Plain Layout
19012 RefPrefix
19013 \end_layout
19014
19015 \end_inset
19016
19017  [
19018 \begin_inset Flex Code
19019 status collapsed
19020
19021 \begin_layout Plain Layout
19022 string
19023 \end_layout
19024
19025 \end_inset
19026
19027 ] The prefix to use when creating labels referring to floats of this type.
19028  This allows the use of formatted references.
19029  Note that you can remove any 
19030 \begin_inset Flex Code
19031 status collapsed
19032
19033 \begin_layout Plain Layout
19034 RefPrefix
19035 \end_layout
19036
19037 \end_inset
19038
19039  set by a copied style by using the special value 
19040 \begin_inset Quotes eld
19041 \end_inset
19042
19043 OFF
19044 \begin_inset Quotes erd
19045 \end_inset
19046
19047 , which must be all caps.
19048 \change_inserted -712698321 1565605014
19049
19050 \end_layout
19051
19052 \begin_layout Description
19053
19054 \change_inserted -712698321 1565605014
19055 \begin_inset Flex Code
19056 status collapsed
19057
19058 \begin_layout Plain Layout
19059
19060 \change_inserted -712698321 1565605014
19061 Requires
19062 \change_unchanged
19063
19064 \end_layout
19065
19066 \end_inset
19067
19068  [
19069 \begin_inset Flex Code
19070 status collapsed
19071
19072 \begin_layout Plain Layout
19073
19074 \change_inserted -712698321 1565605014
19075 string
19076 \change_unchanged
19077
19078 \end_layout
19079
19080 \end_inset
19081
19082 ] As with paragraph styles, see 
19083 \begin_inset CommandInset ref
19084 LatexCommand ref
19085 reference "subsec:Paragraph-Styles"
19086
19087 \end_inset
19088
19089 .
19090 \change_unchanged
19091
19092 \end_layout
19093
19094 \begin_layout Description
19095 \begin_inset Flex Code
19096 status collapsed
19097
19098 \begin_layout Plain Layout
19099 Style
19100 \end_layout
19101
19102 \end_inset
19103
19104  [
19105 \begin_inset Flex Code
19106 status collapsed
19107
19108 \begin_layout Plain Layout
19109 string
19110 \end_layout
19111
19112 \end_inset
19113
19114 =
19115 \begin_inset Quotes erd
19116 \end_inset
19117
19118
19119 \begin_inset Quotes erd
19120 \end_inset
19121
19122 ] The style used when defining the float using 
19123 \begin_inset Flex Code
19124 status collapsed
19125
19126 \begin_layout Plain Layout
19127
19128 \backslash
19129 newfloat
19130 \end_layout
19131
19132 \end_inset
19133
19134 .
19135 \end_layout
19136
19137 \begin_layout Description
19138 \begin_inset Flex Code
19139 status collapsed
19140
19141 \begin_layout Plain Layout
19142 Type
19143 \end_layout
19144
19145 \end_inset
19146
19147  [
19148 \begin_inset Flex Code
19149 status collapsed
19150
19151 \begin_layout Plain Layout
19152 string
19153 \end_layout
19154
19155 \end_inset
19156
19157 =
19158 \begin_inset Quotes erd
19159 \end_inset
19160
19161
19162 \begin_inset Quotes erd
19163 \end_inset
19164
19165 ] The 
19166 \begin_inset Quotes eld
19167 \end_inset
19168
19169 type
19170 \begin_inset Quotes erd
19171 \end_inset
19172
19173  of the new class of floats, like program or algorithm.
19174  After the appropriate 
19175 \begin_inset Flex Code
19176 status collapsed
19177
19178 \begin_layout Plain Layout
19179
19180 \backslash
19181 newfloat
19182 \end_layout
19183
19184 \end_inset
19185
19186 , commands such as 
19187 \begin_inset Flex Code
19188 status collapsed
19189
19190 \begin_layout Plain Layout
19191
19192 \backslash
19193 begin{program}
19194 \end_layout
19195
19196 \end_inset
19197
19198  or 
19199 \begin_inset Flex Code
19200 status collapsed
19201
19202 \begin_layout Plain Layout
19203
19204 \backslash
19205 end{algorithm*}
19206 \end_layout
19207
19208 \end_inset
19209
19210  will be available.
19211 \end_layout
19212
19213 \begin_layout Description
19214 \begin_inset Flex Code
19215 status collapsed
19216
19217 \begin_layout Plain Layout
19218 UsesFloatPkg
19219 \end_layout
19220
19221 \end_inset
19222
19223  [
19224 \begin_inset Flex Code
19225 status collapsed
19226
19227 \begin_layout Plain Layout
19228 0
19229 \end_layout
19230
19231 \end_inset
19232
19233 ,
19234 \begin_inset space \thinspace{}
19235 \end_inset
19236
19237
19238 \begin_inset Flex Code
19239 status collapsed
19240
19241 \begin_layout Plain Layout
19242
19243 \emph on
19244 1
19245 \end_layout
19246
19247 \end_inset
19248
19249 ] Specifies whether this float is defined using the \SpecialChar LaTeX
19250  package 
19251 \begin_inset Flex Code
19252 status collapsed
19253
19254 \begin_layout Plain Layout
19255 float
19256 \end_layout
19257
19258 \end_inset
19259
19260 , either by the class file, another package or on-the-fly by \SpecialChar LyX
19261  itself.
19262 \end_layout
19263
19264 \begin_layout Standard
19265 Note that defining a float with type 
19266 \begin_inset Flex Code
19267 status collapsed
19268
19269 \begin_layout Plain Layout
19270
19271 \emph on
19272 type
19273 \end_layout
19274
19275 \end_inset
19276
19277  automatically defines the corresponding counter with name 
19278 \begin_inset Flex Code
19279 status collapsed
19280
19281 \begin_layout Plain Layout
19282
19283 \emph on
19284 type
19285 \end_layout
19286
19287 \end_inset
19288
19289 .
19290 \end_layout
19291
19292 \begin_layout Subsection
19293 Flex insets and InsetLayout
19294 \begin_inset CommandInset label
19295 LatexCommand label
19296 name "subsec:Flex-insets-and"
19297
19298 \end_inset
19299
19300
19301 \end_layout
19302
19303 \begin_layout Standard
19304 Flex insets come in 
19305 \change_deleted 5863208 1594239511
19306 three
19307 \change_inserted 5863208 1594239512
19308 two
19309 \change_unchanged
19310  different kinds: 
19311 \end_layout
19312
19313 \begin_layout Itemize
19314 character style (
19315 \begin_inset Flex Code
19316 status collapsed
19317
19318 \begin_layout Plain Layout
19319 CharStyle
19320 \end_layout
19321
19322 \end_inset
19323
19324 ): These define semantic markup corresponding to such \SpecialChar LaTeX
19325  commands as 
19326 \begin_inset Flex Code
19327 status collapsed
19328
19329 \begin_layout Plain Layout
19330
19331 \backslash
19332 noun
19333 \end_layout
19334
19335 \end_inset
19336
19337  and 
19338 \begin_inset Flex Code
19339 status collapsed
19340
19341 \begin_layout Plain Layout
19342
19343 \backslash
19344 code
19345 \end_layout
19346
19347 \end_inset
19348
19349 .
19350 \end_layout
19351
19352 \begin_layout Itemize
19353 user custom (
19354 \begin_inset Flex Code
19355 status collapsed
19356
19357 \begin_layout Plain Layout
19358 Custom
19359 \end_layout
19360
19361 \end_inset
19362
19363 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
19364  code,
19365  footnote, and the like.
19366  An obvious example is an endnote inset, which is defined in the 
19367 \begin_inset Flex Code
19368 status collapsed
19369
19370 \begin_layout Plain Layout
19371 endnote
19372 \end_layout
19373
19374 \end_inset
19375
19376  module.
19377 \end_layout
19378
19379 \begin_layout Itemize
19380
19381 \change_deleted 5863208 1594239528
19382 XML elements (
19383 \begin_inset Flex Code
19384 status collapsed
19385
19386 \begin_layout Plain Layout
19387 Element
19388 \end_layout
19389
19390 \end_inset
19391
19392 ): For use with DocBook classes.
19393 \change_unchanged
19394
19395 \end_layout
19396
19397 \begin_layout Standard
19398 Flex insets are defined using the 
19399 \begin_inset Flex Code
19400 status collapsed
19401
19402 \begin_layout Plain Layout
19403 InsetLayout
19404 \end_layout
19405
19406 \end_inset
19407
19408  tag, which shall be explained in a moment.
19409 \end_layout
19410
19411 \begin_layout Standard
19412 The 
19413 \begin_inset Flex Code
19414 status collapsed
19415
19416 \begin_layout Plain Layout
19417 InsetLayout
19418 \end_layout
19419
19420 \end_inset
19421
19422  tag also serves another function: It can be used to customize the general
19423  layout of many different types of insets.
19424  Currently, 
19425 \begin_inset Flex Code
19426 status collapsed
19427
19428 \begin_layout Plain Layout
19429 InsetLayout
19430 \end_layout
19431
19432 \end_inset
19433
19434  can be used to customize the layout parameters for footnotes, marginal
19435  notes, note insets, \SpecialChar TeX
19436  code (ERT) insets, branches, listings, indexes, boxes,
19437  tables, algorithms, URLs, and captions, as well as to define Flex insets.
19438 \end_layout
19439
19440 \begin_layout Standard
19441 The 
19442 \begin_inset Flex Code
19443 status collapsed
19444
19445 \begin_layout Plain Layout
19446 InsetLayout
19447 \end_layout
19448
19449 \end_inset
19450
19451  definition must begin with a line of the form:
19452 \end_layout
19453
19454 \begin_layout LyX-Code
19455 InsetLayout <type>
19456 \end_layout
19457
19458 \begin_layout Standard
19459 Here 
19460 \begin_inset Flex Code
19461 status collapsed
19462
19463 \begin_layout Plain Layout
19464 <Type>
19465 \end_layout
19466
19467 \end_inset
19468
19469  indicates the inset whose layout is being defined, and here there are four
19470  cases.
19471 \end_layout
19472
19473 \begin_layout Enumerate
19474 The layout for a pre-existing inset is being modified.
19475  In this case, can be 
19476 \begin_inset Flex Code
19477 status collapsed
19478
19479 \begin_layout Plain Layout
19480 <Type>
19481 \end_layout
19482
19483 \end_inset
19484
19485  any one of the following: 
19486 \begin_inset Flex Code
19487 status collapsed
19488
19489 \begin_layout Plain Layout
19490 Algorithm
19491 \end_layout
19492
19493 \end_inset
19494
19495
19496 \begin_inset Flex Code
19497 status collapsed
19498
19499 \begin_layout Plain Layout
19500 Branch
19501 \end_layout
19502
19503 \end_inset
19504
19505
19506 \begin_inset Flex Code
19507 status collapsed
19508
19509 \begin_layout Plain Layout
19510 Box
19511 \end_layout
19512
19513 \end_inset
19514
19515
19516 \begin_inset Flex Code
19517 status collapsed
19518
19519 \begin_layout Plain Layout
19520 Box:shaded
19521 \end_layout
19522
19523 \end_inset
19524
19525
19526 \begin_inset Flex Code
19527 status collapsed
19528
19529 \begin_layout Plain Layout
19530 Caption:Standard
19531 \end_layout
19532
19533 \end_inset
19534
19535
19536 \begin_inset Flex Code
19537 status collapsed
19538
19539 \begin_layout Plain Layout
19540 ERT
19541 \end_layout
19542
19543 \end_inset
19544
19545
19546 \begin_inset Flex Code
19547 status collapsed
19548
19549 \begin_layout Plain Layout
19550 Figure
19551 \end_layout
19552
19553 \end_inset
19554
19555
19556 \begin_inset Flex Code
19557 status collapsed
19558
19559 \begin_layout Plain Layout
19560 Foot
19561 \end_layout
19562
19563 \end_inset
19564
19565
19566 \begin_inset Flex Code
19567 status collapsed
19568
19569 \begin_layout Plain Layout
19570 Index
19571 \end_layout
19572
19573 \end_inset
19574
19575
19576 \begin_inset Flex Code
19577 status collapsed
19578
19579 \begin_layout Plain Layout
19580 Info
19581 \end_layout
19582
19583 \end_inset
19584
19585
19586 \begin_inset Flex Code
19587 status collapsed
19588
19589 \begin_layout Plain Layout
19590 Info:menu
19591 \end_layout
19592
19593 \end_inset
19594
19595
19596 \begin_inset Flex Code
19597 status collapsed
19598
19599 \begin_layout Plain Layout
19600 Info:shortcut
19601 \end_layout
19602
19603 \end_inset
19604
19605
19606 \begin_inset Flex Code
19607 status collapsed
19608
19609 \begin_layout Plain Layout
19610 Info:shortcuts
19611 \end_layout
19612
19613 \end_inset
19614
19615
19616 \begin_inset Flex Code
19617 status collapsed
19618
19619 \begin_layout Plain Layout
19620 Listings
19621 \end_layout
19622
19623 \end_inset
19624
19625
19626 \begin_inset Flex Code
19627 status collapsed
19628
19629 \begin_layout Plain Layout
19630 Marginal
19631 \end_layout
19632
19633 \end_inset
19634
19635
19636 \begin_inset Flex Code
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640 Note:Comment
19641 \end_layout
19642
19643 \end_inset
19644
19645
19646 \begin_inset Flex Code
19647 status collapsed
19648
19649 \begin_layout Plain Layout
19650 Note:Note
19651 \end_layout
19652
19653 \end_inset
19654
19655
19656 \begin_inset Flex Code
19657 status collapsed
19658
19659 \begin_layout Plain Layout
19660 Note:Greyedout
19661 \end_layout
19662
19663 \end_inset
19664
19665
19666 \begin_inset Flex Code
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670 Table
19671 \end_layout
19672
19673 \end_inset
19674
19675 , or 
19676 \begin_inset Flex Code
19677 status collapsed
19678
19679 \begin_layout Plain Layout
19680 URL
19681 \end_layout
19682
19683 \end_inset
19684
19685 .
19686 \end_layout
19687
19688 \begin_layout Enumerate
19689 The layout for a Flex inset is being defined.
19690  In this case, 
19691 \begin_inset Flex Code
19692 status collapsed
19693
19694 \begin_layout Plain Layout
19695 <Type>
19696 \end_layout
19697
19698 \end_inset
19699
19700  must be of the form 
19701 \begin_inset Quotes eld
19702 \end_inset
19703
19704
19705 \begin_inset Flex Code
19706 status collapsed
19707
19708 \begin_layout Plain Layout
19709 Flex:<name>
19710 \end_layout
19711
19712 \end_inset
19713
19714
19715 \begin_inset Quotes erd
19716 \end_inset
19717
19718 , where 
19719 \begin_inset Flex Code
19720 status collapsed
19721
19722 \begin_layout Plain Layout
19723 name
19724 \end_layout
19725
19726 \end_inset
19727
19728  may be any valid identifier not used by a pre-existing Flex inset.
19729  The identifier may include spaces, but in that case the whole thing must
19730  be wrapped in quotes.
19731  Note that the definition of a flex inset 
19732 \emph on
19733 must 
19734 \emph default
19735 also include a 
19736 \begin_inset Flex Code
19737 status collapsed
19738
19739 \begin_layout Plain Layout
19740 LyXType
19741 \end_layout
19742
19743 \end_inset
19744
19745  entry, declaring which type of inset it defines.
19746 \end_layout
19747
19748 \begin_layout Enumerate
19749 The layout for user specific branch is being defined.
19750  In this case, 
19751 \begin_inset Flex Code
19752 status collapsed
19753
19754 \begin_layout Plain Layout
19755 <Type>
19756 \end_layout
19757
19758 \end_inset
19759
19760  must be of the form 
19761 \begin_inset Quotes eld
19762 \end_inset
19763
19764
19765 \begin_inset Flex Code
19766 status collapsed
19767
19768 \begin_layout Plain Layout
19769 Branch:<name>
19770 \end_layout
19771
19772 \end_inset
19773
19774
19775 \begin_inset Quotes erd
19776 \end_inset
19777
19778 , where 
19779 \begin_inset Flex Code
19780 status collapsed
19781
19782 \begin_layout Plain Layout
19783 name
19784 \end_layout
19785
19786 \end_inset
19787
19788  may be any valid identifier of branch defined in user's document.
19789  The identifier may include spaces, but in that case the whole thing must
19790  be wrapped in quotes.
19791  The main purpose of this feature is to allow \SpecialChar LaTeX
19792  wrapping around specific
19793  branches as user needs.
19794 \end_layout
19795
19796 \begin_layout Enumerate
19797 The layout of a user (or class) specific caption is being defined.
19798  In this case, 
19799 \begin_inset Flex Code
19800 status collapsed
19801
19802 \begin_layout Plain Layout
19803 <Type>
19804 \end_layout
19805
19806 \end_inset
19807
19808  must be of the form 
19809 \begin_inset Quotes eld
19810 \end_inset
19811
19812
19813 \begin_inset Flex Code
19814 status collapsed
19815
19816 \begin_layout Plain Layout
19817 Caption:<name>
19818 \end_layout
19819
19820 \end_inset
19821
19822
19823 \begin_inset Quotes erd
19824 \end_inset
19825
19826 , where 
19827 \begin_inset Flex Code
19828 status collapsed
19829
19830 \begin_layout Plain Layout
19831 name
19832 \end_layout
19833
19834 \end_inset
19835
19836  specifies the name of the caption as it appears in the menu.
19837  Have a look at the standard caption (
19838 \begin_inset Flex Code
19839 status collapsed
19840
19841 \begin_layout Plain Layout
19842 Caption:Standard
19843 \end_layout
19844
19845 \end_inset
19846
19847 ), the specific captions of the KOMA-Script classes (
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852 Caption:Above
19853 \end_layout
19854
19855 \end_inset
19856
19857
19858 \begin_inset Flex Code
19859 status collapsed
19860
19861 \begin_layout Plain Layout
19862 Caption:Below
19863 \end_layout
19864
19865 \end_inset
19866
19867 ) or the module 
19868 \family sans
19869 Multilingual
19870 \begin_inset space ~
19871 \end_inset
19872
19873 Captions
19874 \begin_inset Newline linebreak
19875 \end_inset
19876
19877
19878 \family default
19879 (
19880 \begin_inset Flex Code
19881 status collapsed
19882
19883 \begin_layout Plain Layout
19884 Caption:Bicaption
19885 \end_layout
19886
19887 \end_inset
19888
19889 ) for applications.
19890 \end_layout
19891
19892 \begin_layout Standard
19893 The 
19894 \begin_inset Flex Code
19895 status collapsed
19896
19897 \begin_layout Plain Layout
19898 InsetLayout
19899 \end_layout
19900
19901 \end_inset
19902
19903  definition can contain the following entries:
19904 \end_layout
19905
19906 \begin_layout Description
19907 \begin_inset Flex Code
19908 status collapsed
19909
19910 \begin_layout Plain Layout
19911 AddToToc
19912 \end_layout
19913
19914 \end_inset
19915
19916  [
19917 \begin_inset Flex Code
19918 status collapsed
19919
19920 \begin_layout Plain Layout
19921 string
19922 \end_layout
19923
19924 \end_inset
19925
19926 =""] This inset will appear in the table of contents of the given type.
19927  An empty string disables.
19928  See also the OutlinerName and the IsTocCaption commands.
19929  This is only implemented for Flex insets.
19930  Default: disabled.
19931 \end_layout
19932
19933 \begin_layout Description
19934 \begin_inset Flex Code
19935 status collapsed
19936
19937 \begin_layout Plain Layout
19938 Argument
19939 \end_layout
19940
19941 \end_inset
19942
19943  [
19944 \begin_inset Flex Code
19945 status collapsed
19946
19947 \begin_layout Plain Layout
19948 int
19949 \end_layout
19950
19951 \end_inset
19952
19953 ] Defines argument number of a command\SpecialChar breakableslash
19954 environment associated with the current
19955  layout.
19956  The definition must end with 
19957 \begin_inset Flex Code
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961 EndArgument
19962 \end_layout
19963
19964 \end_inset
19965
19966 .
19967  See 
19968 \begin_inset CommandInset ref
19969 LatexCommand ref
19970 reference "subsec:Paragraph-Styles"
19971
19972 \end_inset
19973
19974  for details.
19975 \end_layout
19976
19977 \begin_layout Description
19978 \begin_inset Flex Code
19979 status collapsed
19980
19981 \begin_layout Plain Layout
19982 BabelPreamble
19983 \end_layout
19984
19985 \end_inset
19986
19987  Preamble for changing language commands; see 
19988 \begin_inset CommandInset ref
19989 LatexCommand ref
19990 reference "subsec:I18n"
19991
19992 \end_inset
19993
19994 .
19995 \end_layout
19996
19997 \begin_layout Description
19998 \begin_inset Flex Code
19999 status collapsed
20000
20001 \begin_layout Plain Layout
20002 BgColor
20003 \end_layout
20004
20005 \end_inset
20006
20007  [
20008 \begin_inset Flex Code
20009 status collapsed
20010
20011 \begin_layout Plain Layout
20012 <name>
20013 \end_layout
20014
20015 \end_inset
20016
20017 ] The color for the inset's background.
20018  See 
20019 \begin_inset CommandInset ref
20020 LatexCommand ref
20021 reference "chap:Names-of-colors"
20022
20023 \end_inset
20024
20025  for a list of the available color names.
20026 \end_layout
20027
20028 \begin_layout Description
20029 \begin_inset Flex Code
20030 status collapsed
20031
20032 \begin_layout Plain Layout
20033 ContentAsLabel
20034 \end_layout
20035
20036 \end_inset
20037
20038  [
20039 \begin_inset Flex Code
20040 status collapsed
20041
20042 \begin_layout Plain Layout
20043
20044 \emph on
20045 0
20046 \end_layout
20047
20048 \end_inset
20049
20050 ,
20051 \begin_inset space \thinspace{}
20052 \end_inset
20053
20054
20055 \begin_inset Flex Code
20056 status collapsed
20057
20058 \begin_layout Plain Layout
20059 1
20060 \end_layout
20061
20062 \end_inset
20063
20064 ] Whether to use the content of the inset as the label, when the inset is
20065  closed.
20066  Default is false.
20067 \end_layout
20068
20069 \begin_layout Description
20070 \begin_inset Flex Code
20071 status collapsed
20072
20073 \begin_layout Plain Layout
20074 CopyStyle
20075 \end_layout
20076
20077 \end_inset
20078
20079  [
20080 \begin_inset Flex Code
20081 status collapsed
20082
20083 \begin_layout Plain Layout
20084 <type>
20085 \end_layout
20086
20087 \end_inset
20088
20089 ] As with paragraph styles, see 
20090 \begin_inset CommandInset ref
20091 LatexCommand ref
20092 reference "subsec:Paragraph-Styles"
20093
20094 \end_inset
20095
20096 .
20097  Note that you need to specify the complete type, e.
20098 \begin_inset space \thinspace{}
20099 \end_inset
20100
20101 g.
20102 \begin_inset space ~
20103 \end_inset
20104
20105
20106 \begin_inset Flex Code
20107 status collapsed
20108
20109 \begin_layout Plain Layout
20110 CopyStyle Flex:<name>
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 CustomPars
20124 \end_layout
20125
20126 \end_inset
20127
20128  [
20129 \begin_inset Flex Code
20130 status collapsed
20131
20132 \begin_layout Plain Layout
20133
20134 \emph on
20135 0
20136 \end_layout
20137
20138 \end_inset
20139
20140 ,
20141 \begin_inset space \thinspace{}
20142 \end_inset
20143
20144
20145 \begin_inset Flex Code
20146 status collapsed
20147
20148 \begin_layout Plain Layout
20149 1
20150 \end_layout
20151
20152 \end_inset
20153
20154 ] Indicates whether the user may employ the Paragraph Settings dialog to
20155  customize the paragraph.
20156 \end_layout
20157
20158 \begin_layout Description
20159 \begin_inset Flex Code
20160 status collapsed
20161
20162 \begin_layout Plain Layout
20163 Decoration
20164 \end_layout
20165
20166 \end_inset
20167
20168  can be 
20169 \begin_inset Flex Code
20170 status collapsed
20171
20172 \begin_layout Plain Layout
20173 Classic
20174 \end_layout
20175
20176 \end_inset
20177
20178
20179 \begin_inset Flex Code
20180 status collapsed
20181
20182 \begin_layout Plain Layout
20183 Minimalistic
20184 \end_layout
20185
20186 \end_inset
20187
20188 , or 
20189 \begin_inset Flex Code
20190 status collapsed
20191
20192 \begin_layout Plain Layout
20193 Conglomerate
20194 \end_layout
20195
20196 \end_inset
20197
20198 , describing the rendering style used for the inset's frame and buttons.
20199  Footnotes generally use 
20200 \begin_inset Flex Code
20201 status collapsed
20202
20203 \begin_layout Plain Layout
20204 Classic
20205 \end_layout
20206
20207 \end_inset
20208
20209 , ERT insets generally 
20210 \begin_inset Flex Code
20211 status collapsed
20212
20213 \begin_layout Plain Layout
20214 Minimalistic
20215 \end_layout
20216
20217 \end_inset
20218
20219 , and character styles 
20220 \begin_inset Flex Code
20221 status collapsed
20222
20223 \begin_layout Plain Layout
20224 Conglomerate
20225 \end_layout
20226
20227 \end_inset
20228
20229 .
20230 \end_layout
20231
20232 \begin_layout Description
20233 \begin_inset Flex Code
20234 status collapsed
20235
20236 \begin_layout Plain Layout
20237 Display
20238 \end_layout
20239
20240 \end_inset
20241
20242  [
20243 \begin_inset Flex Code
20244 status collapsed
20245
20246 \begin_layout Plain Layout
20247 0
20248 \end_layout
20249
20250 \end_inset
20251
20252 ,
20253 \emph on
20254
20255 \begin_inset space \thinspace{}
20256 \end_inset
20257
20258
20259 \emph default
20260
20261 \begin_inset Flex Code
20262 status collapsed
20263
20264 \begin_layout Plain Layout
20265
20266 \emph on
20267 1
20268 \end_layout
20269
20270 \end_inset
20271
20272 ] Only useful if 
20273 \begin_inset Flex Code
20274 status collapsed
20275
20276 \begin_layout Plain Layout
20277 LatexType
20278 \end_layout
20279
20280 \end_inset
20281
20282  is 
20283 \begin_inset Flex Code
20284 status collapsed
20285
20286 \begin_layout Plain Layout
20287 Environment
20288 \end_layout
20289
20290 \end_inset
20291
20292 .
20293  Indicates whether the environment will stand on its own in the output or
20294  will appear inline with the surrounding text.
20295  If set to false, it is supposed that the \SpecialChar LaTeX
20296  environment ignores white space
20297  (including one newline character) after the 
20298 \begin_inset Flex Code
20299 status collapsed
20300
20301 \begin_layout Plain Layout
20302
20303 \backslash
20304 begin{
20305 \emph on
20306 LatexName
20307 \emph default
20308 }
20309 \end_layout
20310
20311 \end_inset
20312
20313  and 
20314 \begin_inset Flex Code
20315 status collapsed
20316
20317 \begin_layout Plain Layout
20318
20319 \backslash
20320 end{
20321 \emph on
20322 LatexName
20323 \emph default
20324 }
20325 \end_layout
20326
20327 \end_inset
20328
20329  tags.
20330  Default is true.
20331 \change_inserted 731793113 1538674858
20332
20333 \end_layout
20334
20335 \begin_layout Description
20336
20337 \change_inserted 731793113 1538674891
20338 \begin_inset Flex Code
20339 status open
20340
20341 \begin_layout Plain Layout
20342
20343 \change_inserted 731793113 1538674863
20344 EditExternal
20345 \change_unchanged
20346
20347 \end_layout
20348
20349 \end_inset
20350
20351  [
20352 \emph on
20353 0
20354 \emph default
20355 ,1] Allow the contents of the inset to be edited externally (using whatever
20356  editor is defined for the document's output format).
20357 \change_unchanged
20358
20359 \end_layout
20360
20361 \begin_layout Description
20362 \begin_inset Flex Code
20363 status collapsed
20364
20365 \begin_layout Plain Layout
20366 End
20367 \end_layout
20368
20369 \end_inset
20370
20371  Required at the end of the 
20372 \begin_inset Flex Code
20373 status collapsed
20374
20375 \begin_layout Plain Layout
20376 InsetLayout
20377 \end_layout
20378
20379 \end_inset
20380
20381  declarations.
20382 \end_layout
20383
20384 \begin_layout Description
20385 \begin_inset Flex Code
20386 status collapsed
20387
20388 \begin_layout Plain Layout
20389 Font
20390 \end_layout
20391
20392 \end_inset
20393
20394  The font used for both the text body 
20395 \emph on
20396 and
20397 \emph default
20398  the label.
20399  See 
20400 \begin_inset CommandInset ref
20401 LatexCommand ref
20402 reference "subsec:Font-description"
20403
20404 \end_inset
20405
20406 .
20407  Note that defining this font automatically defines the 
20408 \begin_inset Flex Code
20409 status collapsed
20410
20411 \begin_layout Plain Layout
20412 LabelFont
20413 \end_layout
20414
20415 \end_inset
20416
20417  to the same value, so define this first and define 
20418 \begin_inset Flex Code
20419 status collapsed
20420
20421 \begin_layout Plain Layout
20422 LabelFont
20423 \end_layout
20424
20425 \end_inset
20426
20427  later if you want them to be different.
20428 \end_layout
20429
20430 \begin_layout Description
20431 \begin_inset Flex Code
20432 status collapsed
20433
20434 \begin_layout Plain Layout
20435 FixedWidthPreambleEncoding
20436 \end_layout
20437
20438 \end_inset
20439
20440  [
20441 \begin_inset Flex Code
20442 status collapsed
20443
20444 \begin_layout Plain Layout
20445
20446 \emph on
20447 0
20448 \end_layout
20449
20450 \end_inset
20451
20452 ,
20453 \begin_inset space \thinspace{}
20454 \end_inset
20455
20456
20457 \begin_inset Flex Code
20458 status collapsed
20459
20460 \begin_layout Plain Layout
20461 1
20462 \end_layout
20463
20464 \end_inset
20465
20466 ] Force a fixed width encoding for the translated contents of 
20467 \begin_inset Flex Code
20468 status collapsed
20469
20470 \begin_layout Plain Layout
20471 BabelPreamble
20472 \end_layout
20473
20474 \end_inset
20475
20476  and 
20477 \begin_inset Flex Code
20478 status collapsed
20479
20480 \begin_layout Plain Layout
20481 LangPreamble
20482 \end_layout
20483
20484 \end_inset
20485
20486  code generated by this layout.
20487  This is needed for special \SpecialChar LaTeX
20488 -packages like 
20489 \family typewriter
20490 listings
20491 \family default
20492  that do not work with variable width encodings such as 
20493 \family sans
20494 utf8
20495 \family default
20496 .
20497  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
20498  backends such as Xe\SpecialChar TeX
20499  or
20500  Lua\SpecialChar TeX
20501  are used.
20502 \end_layout
20503
20504 \begin_layout Description
20505 \begin_inset Flex Code
20506 status collapsed
20507
20508 \begin_layout Plain Layout
20509 ForceLocalFontSwitch
20510 \end_layout
20511
20512 \end_inset
20513
20514  [
20515 \begin_inset Flex Code
20516 status collapsed
20517
20518 \begin_layout Plain Layout
20519
20520 \emph on
20521 0
20522 \end_layout
20523
20524 \end_inset
20525
20526 ,
20527 \begin_inset space \thinspace{}
20528 \end_inset
20529
20530
20531 \begin_inset Flex Code
20532 status collapsed
20533
20534 \begin_layout Plain Layout
20535 1
20536 \end_layout
20537
20538 \end_inset
20539
20540 ] When using babel, always use a local font switch (
20541 \begin_inset Flex Code
20542 status collapsed
20543
20544 \begin_layout Plain Layout
20545
20546 \backslash
20547 foreignlanguage
20548 \end_layout
20549
20550 \end_inset
20551
20552 ), never a global one (such as 
20553 \begin_inset Flex Code
20554 status collapsed
20555
20556 \begin_layout Plain Layout
20557
20558 \backslash
20559 selectlanguage
20560 \end_layout
20561
20562 \end_inset
20563
20564 ).
20565 \end_layout
20566
20567 \begin_layout Description
20568 \begin_inset Flex Code
20569 status collapsed
20570
20571 \begin_layout Plain Layout
20572 ForceLTR
20573 \end_layout
20574
20575 \end_inset
20576
20577  [
20578 \begin_inset Flex Code
20579 status collapsed
20580
20581 \begin_layout Plain Layout
20582
20583 \emph on
20584 0
20585 \end_layout
20586
20587 \end_inset
20588
20589 ,
20590 \begin_inset space \thinspace{}
20591 \end_inset
20592
20593
20594 \begin_inset Flex Code
20595 status collapsed
20596
20597 \begin_layout Plain Layout
20598 1
20599 \end_layout
20600
20601 \end_inset
20602
20603 ] Force the 
20604 \begin_inset Quotes eld
20605 \end_inset
20606
20607 latex
20608 \begin_inset Quotes erd
20609 \end_inset
20610
20611  language, leading to Left-to-Right (Latin) output, e.
20612 \begin_inset space \thinspace{}
20613 \end_inset
20614
20615 g.
20616 \begin_inset space \space{}
20617 \end_inset
20618
20619 in \SpecialChar TeX
20620  code or URL.
20621  A kludge.
20622 \end_layout
20623
20624 \begin_layout Description
20625 \begin_inset Flex Code
20626 status collapsed
20627
20628 \begin_layout Plain Layout
20629 ForceOwnlines
20630 \end_layout
20631
20632 \end_inset
20633
20634  [
20635 \begin_inset Flex Code
20636 status collapsed
20637
20638 \begin_layout Plain Layout
20639
20640 \emph on
20641 0
20642 \end_layout
20643
20644 \end_inset
20645
20646 ,
20647 \begin_inset space \thinspace{}
20648 \end_inset
20649
20650
20651 \begin_inset Flex Code
20652 status collapsed
20653
20654 \begin_layout Plain Layout
20655 1
20656 \end_layout
20657
20658 \end_inset
20659
20660 ] Force a line break in the \SpecialChar LaTeX
20661  output before the inset starts and after the
20662  inset ends.
20663  This assures the inset itself is output on its own lines, for parsing purposes.
20664 \end_layout
20665
20666 \begin_layout Description
20667 \begin_inset Flex Code
20668 status collapsed
20669
20670 \begin_layout Plain Layout
20671 ForcePlain
20672 \end_layout
20673
20674 \end_inset
20675
20676  [
20677 \begin_inset Flex Code
20678 status collapsed
20679
20680 \begin_layout Plain Layout
20681
20682 \emph on
20683 0
20684 \end_layout
20685
20686 \end_inset
20687
20688 ,
20689 \begin_inset space \thinspace{}
20690 \end_inset
20691
20692
20693 \begin_inset Flex Code
20694 status collapsed
20695
20696 \begin_layout Plain Layout
20697 1
20698 \end_layout
20699
20700 \end_inset
20701
20702 ] Indicates whether the 
20703 \begin_inset Flex Code
20704 status collapsed
20705
20706 \begin_layout Plain Layout
20707 PlainLayout
20708 \end_layout
20709
20710 \end_inset
20711
20712  should be used or, instead, the user can change the paragraph style used
20713  in the inset.
20714  Default is false.
20715 \end_layout
20716
20717 \begin_layout Description
20718 \begin_inset Flex Code
20719 status collapsed
20720
20721 \begin_layout Plain Layout
20722 FreeSpacing
20723 \end_layout
20724
20725 \end_inset
20726
20727  [
20728 \begin_inset Flex Code
20729 status collapsed
20730
20731 \begin_layout Plain Layout
20732
20733 \emph on
20734 0
20735 \end_layout
20736
20737 \end_inset
20738
20739 ,
20740 \begin_inset space \thinspace{}
20741 \end_inset
20742
20743
20744 \begin_inset Flex Code
20745 status collapsed
20746
20747 \begin_layout Plain Layout
20748 1
20749 \end_layout
20750
20751 \end_inset
20752
20753 ] As with paragraph styles, see 
20754 \begin_inset CommandInset ref
20755 LatexCommand ref
20756 reference "subsec:Paragraph-Styles"
20757
20758 \end_inset
20759
20760 .
20761 \end_layout
20762
20763 \begin_layout Description
20764 \begin_inset Flex Code
20765 status collapsed
20766
20767 \begin_layout Plain Layout
20768 HTML*
20769 \end_layout
20770
20771 \end_inset
20772
20773  These tags control the XHTML output.
20774  See 
20775 \begin_inset CommandInset ref
20776 LatexCommand ref
20777 reference "sec:Tags-for-XHTML"
20778
20779 \end_inset
20780
20781 .
20782 \end_layout
20783
20784 \begin_layout Description
20785 \begin_inset Flex Code
20786 status collapsed
20787
20788 \begin_layout Plain Layout
20789 InToc
20790 \end_layout
20791
20792 \end_inset
20793
20794  [
20795 \begin_inset Flex Code
20796 status collapsed
20797
20798 \begin_layout Plain Layout
20799
20800 \emph on
20801 0
20802 \end_layout
20803
20804 \end_inset
20805
20806 ,
20807 \begin_inset space \thinspace{}
20808 \end_inset
20809
20810
20811 \begin_inset Flex Code
20812 status collapsed
20813
20814 \begin_layout Plain Layout
20815 1
20816 \end_layout
20817
20818 \end_inset
20819
20820 ] Whether to include the contents of this inset in the strings generated
20821  for the `Outline' pane for all table of contents, regardless of the AddToToc
20822  setting.
20823  One would not, for example, want the content of a footnote in a section
20824  header to be included in the TOC displayed in the outline, but one would
20825  normally want the content of a character style displayed.
20826  Default is false: not to include.
20827 \end_layout
20828
20829 \begin_layout Description
20830 \begin_inset Flex Code
20831 status collapsed
20832
20833 \begin_layout Plain Layout
20834 IsTocCaption
20835 \end_layout
20836
20837 \end_inset
20838
20839  [
20840 \begin_inset Flex Code
20841 status collapsed
20842
20843 \begin_layout Plain Layout
20844
20845 \emph on
20846 0
20847 \end_layout
20848
20849 \end_inset
20850
20851 ,
20852 \begin_inset space \thinspace{}
20853 \end_inset
20854
20855
20856 \begin_inset Flex Code
20857 status collapsed
20858
20859 \begin_layout Plain Layout
20860 1
20861 \end_layout
20862
20863 \end_inset
20864
20865 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20866  of its contents in its item in the table of contents.
20867  Otherwise, only the label appears.
20868 \end_layout
20869
20870 \begin_layout Description
20871 \begin_inset Flex Code
20872 status collapsed
20873
20874 \begin_layout Plain Layout
20875 KeepEmpty
20876 \end_layout
20877
20878 \end_inset
20879
20880  [
20881 \emph on
20882
20883 \begin_inset Flex Code
20884 status collapsed
20885
20886 \begin_layout Plain Layout
20887 0
20888 \end_layout
20889
20890 \end_inset
20891
20892
20893 \emph default
20894 ,
20895 \begin_inset space \thinspace{}
20896 \end_inset
20897
20898
20899 \begin_inset Flex Code
20900 status collapsed
20901
20902 \begin_layout Plain Layout
20903 1
20904 \end_layout
20905
20906 \end_inset
20907
20908 ] As with paragraph styles, see 
20909 \begin_inset CommandInset ref
20910 LatexCommand ref
20911 reference "subsec:Paragraph-Styles"
20912
20913 \end_inset
20914
20915 .
20916 \end_layout
20917
20918 \begin_layout Description
20919 \begin_inset Flex Code
20920 status collapsed
20921
20922 \begin_layout Plain Layout
20923 LabelFont
20924 \end_layout
20925
20926 \end_inset
20927
20928  The font used for the label.
20929  See 
20930 \begin_inset CommandInset ref
20931 LatexCommand ref
20932 reference "subsec:Font-description"
20933
20934 \end_inset
20935
20936 .
20937  Note that this definition can never appear before 
20938 \begin_inset Flex Code
20939 status collapsed
20940
20941 \begin_layout Plain Layout
20942 Font
20943 \end_layout
20944
20945 \end_inset
20946
20947 , lest it be ineffective.
20948 \end_layout
20949
20950 \begin_layout Description
20951 \begin_inset Flex Code
20952 status collapsed
20953
20954 \begin_layout Plain Layout
20955 LabelString
20956 \end_layout
20957
20958 \end_inset
20959
20960  [
20961 \begin_inset Flex Code
20962 status collapsed
20963
20964 \begin_layout Plain Layout
20965 string
20966 \end_layout
20967
20968 \end_inset
20969
20970 =
20971 \begin_inset Quotes erd
20972 \end_inset
20973
20974
20975 \begin_inset Quotes erd
20976 \end_inset
20977
20978 ] What will be displayed on the button or elsewhere as the inset label.
20979  Some inset types (
20980 \begin_inset Flex Code
20981 status collapsed
20982
20983 \begin_layout Plain Layout
20984 \SpecialChar TeX
20985  code
20986 \end_layout
20987
20988 \end_inset
20989
20990  and 
20991 \begin_inset Flex Code
20992 status collapsed
20993
20994 \begin_layout Plain Layout
20995 Branch
20996 \end_layout
20997
20998 \end_inset
20999
21000 ) modify this label on the fly.
21001 \end_layout
21002
21003 \begin_layout Description
21004 \begin_inset Flex Code
21005 status collapsed
21006
21007 \begin_layout Plain Layout
21008 LangPreamble
21009 \end_layout
21010
21011 \end_inset
21012
21013  Language dependent preamble; see 
21014 \begin_inset CommandInset ref
21015 LatexCommand ref
21016 reference "subsec:I18n"
21017
21018 \end_inset
21019
21020 .
21021 \end_layout
21022
21023 \begin_layout Description
21024 \begin_inset Flex Code
21025 status collapsed
21026
21027 \begin_layout Plain Layout
21028 LatexName
21029 \end_layout
21030
21031 \end_inset
21032
21033  [
21034 \begin_inset Flex Code
21035 status collapsed
21036
21037 \begin_layout Plain Layout
21038 <name>
21039 \end_layout
21040
21041 \end_inset
21042
21043 ] The name of the corresponding \SpecialChar LaTeX
21044  stuff.
21045  Either the environment or command name.
21046 \end_layout
21047
21048 \begin_layout Description
21049 \begin_inset Flex Code
21050 status collapsed
21051
21052 \begin_layout Plain Layout
21053 LatexParam
21054 \end_layout
21055
21056 \end_inset
21057
21058  [
21059 \begin_inset Flex Code
21060 status collapsed
21061
21062 \begin_layout Plain Layout
21063 <parameter>
21064 \end_layout
21065
21066 \end_inset
21067
21068 ] The optional parameter for the corresponding 
21069 \begin_inset Flex Code
21070 status collapsed
21071
21072 \begin_layout Plain Layout
21073 LatexName
21074 \end_layout
21075
21076 \end_inset
21077
21078  stuff, including possible bracket pairs like 
21079 \begin_inset Flex Code
21080 status collapsed
21081
21082 \begin_layout Plain Layout
21083 []
21084 \end_layout
21085
21086 \end_inset
21087
21088 .
21089  This parameter cannot be changed from within \SpecialChar LyX
21090  (use 
21091 \begin_inset Flex Code
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095 Argument
21096 \end_layout
21097
21098 \end_inset
21099
21100  for customizable parameters).
21101  It will be output as is after all \SpecialChar LaTeX
21102  
21103 \begin_inset Flex Code
21104 status collapsed
21105
21106 \begin_layout Plain Layout
21107 Argument
21108 \end_layout
21109
21110 \end_inset
21111
21112 s.
21113 \end_layout
21114
21115 \begin_layout Description
21116 \begin_inset Flex Code
21117 status collapsed
21118
21119 \begin_layout Plain Layout
21120 LatexType
21121 \end_layout
21122
21123 \end_inset
21124
21125  [
21126 \begin_inset Flex Code
21127 status collapsed
21128
21129 \begin_layout Plain Layout
21130 Command, Environment, None
21131 \end_layout
21132
21133 \end_inset
21134
21135 ] How the style should be translated into \SpecialChar LaTeX
21136 .
21137 \begin_inset Foot
21138 status collapsed
21139
21140 \begin_layout Plain Layout
21141 \begin_inset Flex Code
21142 status collapsed
21143
21144 \begin_layout Plain Layout
21145 LatexType
21146 \end_layout
21147
21148 \end_inset
21149
21150  is perhaps a bit misleading, since these rules apply to SGML classes too.
21151  Visit the SGML class files for specific examples.
21152 \end_layout
21153
21154 \end_inset
21155
21156
21157 \end_layout
21158
21159 \begin_deeper
21160 \begin_layout Description
21161 \begin_inset Flex Code
21162 status collapsed
21163
21164 \begin_layout Plain Layout
21165 None
21166 \end_layout
21167
21168 \end_inset
21169
21170  means nothing special
21171 \end_layout
21172
21173 \begin_layout Description
21174 \begin_inset Flex Code
21175 status collapsed
21176
21177 \begin_layout Plain Layout
21178 Command
21179 \end_layout
21180
21181 \end_inset
21182
21183  means 
21184 \begin_inset Flex Code
21185 status collapsed
21186
21187 \begin_layout Plain Layout
21188
21189 \backslash
21190
21191 \emph on
21192 LatexName
21193 \emph default
21194 {\SpecialChar ldots
21195 }
21196 \end_layout
21197
21198 \end_inset
21199
21200
21201 \end_layout
21202
21203 \begin_layout Description
21204 \begin_inset Flex Code
21205 status collapsed
21206
21207 \begin_layout Plain Layout
21208 Environment
21209 \end_layout
21210
21211 \end_inset
21212
21213  means 
21214 \begin_inset Flex Code
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218
21219 \backslash
21220 begin{
21221 \emph on
21222 LatexName
21223 \emph default
21224 }\SpecialChar ldots
21225
21226 \backslash
21227 end{
21228 \emph on
21229 LatexName
21230 \emph default
21231 }
21232 \end_layout
21233
21234 \end_inset
21235
21236
21237 \end_layout
21238
21239 \begin_layout Standard
21240 Putting the last few things together, the \SpecialChar LaTeX
21241  output will be either: 
21242 \end_layout
21243
21244 \begin_layout LyX-Code
21245
21246 \backslash
21247 LatexName[LatexParam]{\SpecialChar ldots
21248 }
21249 \end_layout
21250
21251 \begin_layout Standard
21252 or: 
21253 \end_layout
21254
21255 \begin_layout LyX-Code
21256
21257 \backslash
21258 begin{LatexName}[LatexParam] \SpecialChar ldots
21259  
21260 \backslash
21261 end{LatexName}
21262 \end_layout
21263
21264 \begin_layout Standard
21265 depending upon the \SpecialChar LaTeX
21266  type.
21267 \end_layout
21268
21269 \end_deeper
21270 \begin_layout Description
21271 \begin_inset Flex Code
21272 status collapsed
21273
21274 \begin_layout Plain Layout
21275 LeftDelim
21276 \end_layout
21277
21278 \end_inset
21279
21280  [
21281 \begin_inset Flex Code
21282 status collapsed
21283
21284 \begin_layout Plain Layout
21285 string
21286 \end_layout
21287
21288 \end_inset
21289
21290 ] A string that is put at the beginning of the layout content.
21291  A line break in the output can be indicated by 
21292 \begin_inset Flex Code
21293 status collapsed
21294
21295 \begin_layout Plain Layout
21296 <br/>
21297 \end_layout
21298
21299 \end_inset
21300
21301 .
21302 \end_layout
21303
21304 \begin_layout Description
21305 \begin_inset Flex Code
21306 status collapsed
21307
21308 \begin_layout Plain Layout
21309 LyxType
21310 \end_layout
21311
21312 \end_inset
21313
21314  Can be 
21315 \begin_inset Flex Code
21316 status collapsed
21317
21318 \begin_layout Plain Layout
21319 charstyle
21320 \end_layout
21321
21322 \end_inset
21323
21324
21325 \begin_inset Flex Code
21326 status collapsed
21327
21328 \begin_layout Plain Layout
21329 custom
21330 \end_layout
21331
21332 \end_inset
21333
21334
21335 \begin_inset Flex Code
21336 status collapsed
21337
21338 \begin_layout Plain Layout
21339 element
21340 \end_layout
21341
21342 \end_inset
21343
21344  or 
21345 \begin_inset Flex Code
21346 status collapsed
21347
21348 \begin_layout Plain Layout
21349 end
21350 \end_layout
21351
21352 \end_inset
21353
21354  (indicating a dummy definition ending definitions of charstyles, etc).
21355  This entry is required in and is only meaningful for Flex insets.
21356  Among other things, it determines on which menu this inset will appear.
21357  Setting 
21358 \begin_inset Flex Code
21359 status collapsed
21360
21361 \begin_layout Plain Layout
21362 LyxType
21363 \end_layout
21364
21365 \end_inset
21366
21367  to 
21368 \begin_inset Flex Code
21369 status collapsed
21370
21371 \begin_layout Plain Layout
21372 charstyle
21373 \end_layout
21374
21375 \end_inset
21376
21377  will automatically set 
21378 \begin_inset Flex Code
21379 status collapsed
21380
21381 \begin_layout Plain Layout
21382 MultiPar
21383 \end_layout
21384
21385 \end_inset
21386
21387  to false and 
21388 \begin_inset Flex Code
21389 status collapsed
21390
21391 \begin_layout Plain Layout
21392 ForcePlain
21393 \end_layout
21394
21395 \end_inset
21396
21397  to true.
21398  
21399 \begin_inset Flex Code
21400 status collapsed
21401
21402 \begin_layout Plain Layout
21403 MultiPar
21404 \end_layout
21405
21406 \end_inset
21407
21408  can be set to true, or 
21409 \begin_inset Flex Code
21410 status collapsed
21411
21412 \begin_layout Plain Layout
21413 ForcePlain
21414 \end_layout
21415
21416 \end_inset
21417
21418  to false, for 
21419 \begin_inset Flex Code
21420 status collapsed
21421
21422 \begin_layout Plain Layout
21423 charstyle
21424 \end_layout
21425
21426 \end_inset
21427
21428  insets by setting it 
21429 \emph on
21430 after
21431 \emph default
21432  you set the 
21433 \begin_inset Flex Code
21434 status collapsed
21435
21436 \begin_layout Plain Layout
21437 LyxType
21438 \end_layout
21439
21440 \end_inset
21441
21442 .
21443 \change_inserted -712698321 1555575738
21444
21445 \end_layout
21446
21447 \begin_layout Description
21448
21449 \change_inserted -712698321 1555575844
21450 \begin_inset Flex Code
21451 status collapsed
21452
21453 \begin_layout Plain Layout
21454
21455 \change_inserted -712698321 1555575740
21456 MenuString
21457 \change_unchanged
21458
21459 \end_layout
21460
21461 \end_inset
21462
21463  
21464 \begin_inset Flex Code
21465 status collapsed
21466
21467 \begin_layout Plain Layout
21468
21469 \change_inserted -712698321 1555575740
21470 [string]
21471 \change_unchanged
21472
21473 \end_layout
21474
21475 \end_inset
21476
21477  A dedicated string for the menu.
21478  You can define an accelerator by appending the respective character to
21479  the string, divided by 
21480 \begin_inset Quotes eld
21481 \end_inset
21482
21483 |
21484 \begin_inset Quotes erd
21485 \end_inset
21486
21487  (e.
21488 \begin_inset space \thinspace{}
21489 \end_inset
21490
21491 g.
21492 \begin_inset space \space{}
21493 \end_inset
21494
21495
21496 \begin_inset Quotes eld
21497 \end_inset
21498
21499
21500 \begin_inset Flex Code
21501 status collapsed
21502
21503 \begin_layout Plain Layout
21504
21505 \change_inserted -712698321 1555575781
21506 My Inset|M
21507 \change_unchanged
21508
21509 \end_layout
21510
21511 \end_inset
21512
21513
21514 \begin_inset Quotes erd
21515 \end_inset
21516
21517 ).
21518  This specification is optional.
21519  If it is not given the inset name as specified in the type declaration
21520  will be used instead for the menu.
21521 \change_unchanged
21522
21523 \end_layout
21524
21525 \begin_layout Description
21526 \begin_inset Flex Code
21527 status collapsed
21528
21529 \begin_layout Plain Layout
21530 MultiPar
21531 \end_layout
21532
21533 \end_inset
21534
21535  [
21536 \begin_inset Flex Code
21537 status collapsed
21538
21539 \begin_layout Plain Layout
21540
21541 \emph on
21542 0
21543 \end_layout
21544
21545 \end_inset
21546
21547 ,
21548 \begin_inset space \thinspace{}
21549 \end_inset
21550
21551
21552 \begin_inset Flex Code
21553 status collapsed
21554
21555 \begin_layout Plain Layout
21556 1
21557 \end_layout
21558
21559 \end_inset
21560
21561 ] Whether multiple paragraphs are permitted in this inset.
21562  This will also set 
21563 \begin_inset Flex Code
21564 status collapsed
21565
21566 \begin_layout Plain Layout
21567 CustomPars
21568 \end_layout
21569
21570 \end_inset
21571
21572  to the same value and 
21573 \begin_inset Flex Code
21574 status collapsed
21575
21576 \begin_layout Plain Layout
21577 ForcePlain
21578 \end_layout
21579
21580 \end_inset
21581
21582  to the opposite value.
21583  These can be reset to other values, if they are used 
21584 \emph on
21585 after
21586 \emph default
21587  
21588 \begin_inset Flex Code
21589 status collapsed
21590
21591 \begin_layout Plain Layout
21592 MultiPar
21593 \end_layout
21594
21595 \end_inset
21596
21597 .
21598  Default is true.
21599 \end_layout
21600
21601 \begin_layout Description
21602 \begin_inset Flex Code
21603 status collapsed
21604
21605 \begin_layout Plain Layout
21606 NeedProtect
21607 \end_layout
21608
21609 \end_inset
21610
21611  [
21612 \begin_inset Flex Code
21613 status collapsed
21614
21615 \begin_layout Plain Layout
21616
21617 \emph on
21618 0
21619 \end_layout
21620
21621 \end_inset
21622
21623 ,
21624 \begin_inset space \thinspace{}
21625 \end_inset
21626
21627
21628 \begin_inset Flex Code
21629 status collapsed
21630
21631 \begin_layout Plain Layout
21632 1
21633 \end_layout
21634
21635 \end_inset
21636
21637 ] Whether fragile commands in this inset should be 
21638 \begin_inset Flex Code
21639 status collapsed
21640
21641 \begin_layout Plain Layout
21642
21643 \backslash
21644 protect
21645 \end_layout
21646
21647 \end_inset
21648
21649 'ed.
21650  (Note: This is 
21651 \emph on
21652 not
21653 \emph default
21654  whether the command should itself be protected.) Default is false.
21655 \change_inserted -712698321 1523633958
21656
21657 \end_layout
21658
21659 \begin_layout Description
21660
21661 \change_inserted -712698321 1552395786
21662 \begin_inset Flex Code
21663 status collapsed
21664
21665 \begin_layout Plain Layout
21666
21667 \change_inserted -712698321 1523633961
21668 NeedCProtect
21669 \change_unchanged
21670
21671 \end_layout
21672
21673 \end_inset
21674
21675  [
21676 \begin_inset Flex Code
21677 status collapsed
21678
21679 \begin_layout Plain Layout
21680
21681 \change_inserted -712698321 1523633958
21682
21683 \emph on
21684 0
21685 \change_unchanged
21686
21687 \end_layout
21688
21689 \end_inset
21690
21691 ,
21692 \begin_inset space \thinspace{}
21693 \end_inset
21694
21695
21696 \begin_inset Flex Code
21697 status collapsed
21698
21699 \begin_layout Plain Layout
21700
21701 \change_inserted -712698321 1523633958
21702 1
21703 \change_unchanged
21704
21705 \end_layout
21706
21707 \end_inset
21708
21709 ] This causes macros that contain this inset to be protected with 
21710 \begin_inset Flex Code
21711 status collapsed
21712
21713 \begin_layout Plain Layout
21714
21715 \change_inserted -712698321 1523634038
21716
21717 \backslash
21718 cprotect
21719 \change_unchanged
21720
21721 \end_layout
21722
21723 \end_inset
21724
21725  (cf.
21726  package 
21727 \family sans
21728 cprotect
21729 \family default
21730 ) if necessary and thus allows (some) verbatim stuff in macros.
21731  Default is false.
21732 \end_layout
21733
21734 \begin_layout Description
21735
21736 \change_inserted -712698321 1555579651
21737 \begin_inset Flex Code
21738 status collapsed
21739
21740 \begin_layout Plain Layout
21741
21742 \change_inserted -712698321 1552395787
21743 NeedMBoxProtect
21744 \change_unchanged
21745
21746 \end_layout
21747
21748 \end_inset
21749
21750  [
21751 \begin_inset Flex Code
21752 status collapsed
21753
21754 \begin_layout Plain Layout
21755
21756 \change_inserted -712698321 1552395787
21757
21758 \emph on
21759 0
21760 \change_unchanged
21761
21762 \end_layout
21763
21764 \end_inset
21765
21766 ,
21767 \begin_inset space \thinspace{}
21768 \end_inset
21769
21770
21771 \begin_inset Flex Code
21772 status collapsed
21773
21774 \begin_layout Plain Layout
21775
21776 \change_inserted -712698321 1552395787
21777 1
21778 \change_unchanged
21779
21780 \end_layout
21781
21782 \end_inset
21783
21784 ] Whether specific commands in this inset (such as 
21785 \begin_inset Flex Code
21786 status collapsed
21787
21788 \begin_layout Plain Layout
21789
21790 \change_inserted -712698321 1552395787
21791
21792 \backslash
21793 cite
21794 \change_unchanged
21795
21796 \end_layout
21797
21798 \end_inset
21799
21800  and 
21801 \begin_inset Flex Code
21802 status collapsed
21803
21804 \begin_layout Plain Layout
21805
21806 \change_inserted -712698321 1552395787
21807
21808 \backslash
21809 ref
21810 \change_unchanged
21811
21812 \end_layout
21813
21814 \end_inset
21815
21816 ) should be protected in an 
21817 \begin_inset Flex Code
21818 status collapsed
21819
21820 \begin_layout Plain Layout
21821
21822 \change_inserted -712698321 1552395787
21823
21824 \backslash
21825 mbox
21826 \change_unchanged
21827
21828 \end_layout
21829
21830 \end_inset
21831
21832 .
21833  This is particularly needed for insets that draw on 
21834 \family sans
21835 ulem
21836 \family default
21837  or 
21838 \family sans
21839 soul
21840 \family default
21841  commands which parse their content in complex ways.
21842  Default is false.
21843 \end_layout
21844
21845 \begin_layout Description
21846
21847 \change_inserted -712698321 1555579742
21848 \begin_inset Flex Code
21849 status collapsed
21850
21851 \begin_layout Plain Layout
21852
21853 \change_inserted -712698321 1555579658
21854 NewlineCmd
21855 \change_unchanged
21856
21857 \end_layout
21858
21859 \end_inset
21860
21861  
21862 \begin_inset Flex Code
21863 status collapsed
21864
21865 \begin_layout Plain Layout
21866
21867 \change_inserted -712698321 1555579651
21868 [string]
21869 \change_unchanged
21870
21871 \end_layout
21872
21873 \end_inset
21874
21875  Option to define a different command (from the default 
21876 \begin_inset Flex Code
21877 status collapsed
21878
21879 \begin_layout Plain Layout
21880
21881 \change_inserted -712698321 1555579742
21882
21883 \backslash
21884
21885 \backslash
21886
21887 \change_unchanged
21888
21889 \end_layout
21890
21891 \end_inset
21892
21893 ) to be used for line breaks.
21894  The initial backslash must not be specified.
21895 \change_unchanged
21896
21897 \end_layout
21898
21899 \begin_layout Description
21900 \begin_inset Flex Code
21901 status collapsed
21902
21903 \begin_layout Plain Layout
21904 NoInsetLayout
21905 \end_layout
21906
21907 \end_inset
21908
21909  [
21910 \begin_inset Flex Code
21911 status collapsed
21912
21913 \begin_layout Plain Layout
21914 <layout>
21915 \end_layout
21916
21917 \end_inset
21918
21919 ] Deletes an existing 
21920 \begin_inset Flex Code
21921 status collapsed
21922
21923 \begin_layout Plain Layout
21924 InsetLayout
21925 \end_layout
21926
21927 \end_inset
21928
21929 .
21930 \end_layout
21931
21932 \begin_layout Description
21933 \begin_inset Flex Code
21934 status collapsed
21935
21936 \begin_layout Plain Layout
21937 ObsoletedBy
21938 \end_layout
21939
21940 \end_inset
21941
21942  [
21943 \begin_inset Flex Code
21944 status collapsed
21945
21946 \begin_layout Plain Layout
21947 <layout>
21948 \end_layout
21949
21950 \end_inset
21951
21952 ] Name of an 
21953 \begin_inset Flex Code
21954 status collapsed
21955
21956 \begin_layout Plain Layout
21957 InsetLayout
21958 \end_layout
21959
21960 \end_inset
21961
21962  that has replaced this 
21963 \begin_inset Flex Code
21964 status collapsed
21965
21966 \begin_layout Plain Layout
21967 InsetLayout
21968 \end_layout
21969
21970 \end_inset
21971
21972 .
21973  This is used to rename an 
21974 \begin_inset Flex Code
21975 status collapsed
21976
21977 \begin_layout Plain Layout
21978 InsetLayout
21979 \end_layout
21980
21981 \end_inset
21982
21983 , while keeping backward compatibility.
21984 \change_inserted -712698321 1559491850
21985
21986 \end_layout
21987
21988 \begin_layout Description
21989
21990 \change_inserted -712698321 1559492002
21991 \begin_inset Flex Code
21992 status collapsed
21993
21994 \begin_layout Plain Layout
21995
21996 \change_inserted -712698321 1559491854
21997 ParbreakIgnored
21998 \change_unchanged
21999
22000 \end_layout
22001
22002 \end_inset
22003
22004  [
22005 \begin_inset Flex Code
22006 status collapsed
22007
22008 \begin_layout Plain Layout
22009
22010 \change_inserted -712698321 1559491850
22011
22012 \emph on
22013 0
22014 \change_unchanged
22015
22016 \end_layout
22017
22018 \end_inset
22019
22020 ,
22021 \begin_inset space \thinspace{}
22022 \end_inset
22023
22024
22025 \begin_inset Flex Code
22026 status collapsed
22027
22028 \begin_layout Plain Layout
22029
22030 \change_inserted -712698321 1559491850
22031 1
22032 \change_unchanged
22033
22034 \end_layout
22035
22036 \end_inset
22037
22038 ] If this is set to 
22039 \begin_inset Flex Code
22040 status collapsed
22041
22042 \begin_layout Plain Layout
22043
22044 \change_inserted -712698321 1559491881
22045 1
22046 \change_unchanged
22047
22048 \end_layout
22049
22050 \end_inset
22051
22052 , paragraph breaks will be ignored in the output.
22053  This might be useful for insets where the content should be alignable on
22054  different lines only in the \SpecialChar LyX
22055  workarea, without any effect in the output.
22056 \change_unchanged
22057
22058 \end_layout
22059
22060 \begin_layout Description
22061 \begin_inset Flex Code
22062 status collapsed
22063
22064 \begin_layout Plain Layout
22065 ParbreakIsNewline
22066 \end_layout
22067
22068 \end_inset
22069
22070  [
22071 \begin_inset Flex Code
22072 status collapsed
22073
22074 \begin_layout Plain Layout
22075
22076 \emph on
22077 0
22078 \end_layout
22079
22080 \end_inset
22081
22082 ,
22083 \begin_inset space \thinspace{}
22084 \end_inset
22085
22086
22087 \begin_inset Flex Code
22088 status collapsed
22089
22090 \begin_layout Plain Layout
22091 1
22092 \end_layout
22093
22094 \end_inset
22095
22096 ] As with paragraph styles, see 
22097 \begin_inset CommandInset ref
22098 LatexCommand ref
22099 reference "subsec:Paragraph-Styles"
22100
22101 \end_inset
22102
22103 .
22104  Default is false.
22105 \end_layout
22106
22107 \begin_layout Description
22108 \begin_inset Flex Code
22109 status collapsed
22110
22111 \begin_layout Plain Layout
22112 PassThru
22113 \end_layout
22114
22115 \end_inset
22116
22117  [
22118 \begin_inset Flex Code
22119 status collapsed
22120
22121 \begin_layout Plain Layout
22122
22123 \emph on
22124 0
22125 \end_layout
22126
22127 \end_inset
22128
22129 ,
22130 \begin_inset space \thinspace{}
22131 \end_inset
22132
22133
22134 \begin_inset Flex Code
22135 status collapsed
22136
22137 \begin_layout Plain Layout
22138 1
22139 \end_layout
22140
22141 \end_inset
22142
22143 ] As with paragraph styles, see 
22144 \begin_inset CommandInset ref
22145 LatexCommand ref
22146 reference "subsec:Paragraph-Styles"
22147
22148 \end_inset
22149
22150 .
22151  Default is false.
22152 \end_layout
22153
22154 \begin_layout Description
22155 \begin_inset Flex Code
22156 status collapsed
22157
22158 \begin_layout Plain Layout
22159 Preamble
22160 \end_layout
22161
22162 \end_inset
22163
22164  As with paragraph styles, see 
22165 \begin_inset CommandInset ref
22166 LatexCommand ref
22167 reference "subsec:Paragraph-Styles"
22168
22169 \end_inset
22170
22171 .
22172 \end_layout
22173
22174 \begin_layout Description
22175 \begin_inset Flex Code
22176 status collapsed
22177
22178 \begin_layout Plain Layout
22179 RefPrefix
22180 \end_layout
22181
22182 \end_inset
22183
22184  [
22185 \begin_inset Flex Code
22186 status collapsed
22187
22188 \begin_layout Plain Layout
22189 string
22190 \end_layout
22191
22192 \end_inset
22193
22194 ] The prefix to use when creating labels referring to insets of this type.
22195  This allows the use of formatted references.
22196 \end_layout
22197
22198 \begin_layout Description
22199 \begin_inset Flex Code
22200 status collapsed
22201
22202 \begin_layout Plain Layout
22203 Requires
22204 \end_layout
22205
22206 \end_inset
22207
22208  [
22209 \begin_inset Flex Code
22210 status collapsed
22211
22212 \begin_layout Plain Layout
22213 string
22214 \end_layout
22215
22216 \end_inset
22217
22218 ] As with paragraph styles, see 
22219 \begin_inset CommandInset ref
22220 LatexCommand ref
22221 reference "subsec:Paragraph-Styles"
22222
22223 \end_inset
22224
22225 .
22226 \end_layout
22227
22228 \begin_layout Description
22229 \begin_inset Flex Code
22230 status collapsed
22231
22232 \begin_layout Plain Layout
22233 ResetArgs
22234 \end_layout
22235
22236 \end_inset
22237
22238  [
22239 \begin_inset Flex Code
22240 status collapsed
22241
22242 \begin_layout Plain Layout
22243
22244 \emph on
22245 0
22246 \end_layout
22247
22248 \end_inset
22249
22250 ,
22251 \begin_inset space \thinspace{}
22252 \end_inset
22253
22254
22255 \begin_inset Flex Code
22256 status collapsed
22257
22258 \begin_layout Plain Layout
22259 1
22260 \end_layout
22261
22262 \end_inset
22263
22264 ] Resets the \SpecialChar LaTeX
22265  arguments of this layout (as defined via the 
22266 \begin_inset Flex Code
22267 status collapsed
22268
22269 \begin_layout Plain Layout
22270 Argument
22271 \end_layout
22272
22273 \end_inset
22274
22275  tag).
22276  This is useful if you have copied a style via 
22277 \begin_inset Flex Code
22278 status collapsed
22279
22280 \begin_layout Plain Layout
22281 CopyStyle
22282 \end_layout
22283
22284 \end_inset
22285
22286 , but you do not want to inherit its (required and optional) arguments.
22287 \end_layout
22288
22289 \begin_layout Description
22290 \begin_inset Flex Code
22291 status collapsed
22292
22293 \begin_layout Plain Layout
22294 ResetsFont
22295 \end_layout
22296
22297 \end_inset
22298
22299  [
22300 \begin_inset Flex Code
22301 status collapsed
22302
22303 \begin_layout Plain Layout
22304
22305 \emph on
22306 0
22307 \end_layout
22308
22309 \end_inset
22310
22311 ,
22312 \begin_inset space \thinspace{}
22313 \end_inset
22314
22315
22316 \begin_inset Flex Code
22317 status collapsed
22318
22319 \begin_layout Plain Layout
22320 1
22321 \end_layout
22322
22323 \end_inset
22324
22325
22326 \change_inserted -712698321 1597733473
22327 If 
22328 \begin_inset Flex Code
22329 status collapsed
22330
22331 \begin_layout Plain Layout
22332
22333 \change_inserted -712698321 1597732178
22334 1
22335 \change_unchanged
22336
22337 \end_layout
22338
22339 \end_inset
22340
22341 , font changes are redone inside the respective inset (in the output) even
22342  if the inset itself is in the context of this font changes (e.
22343 \begin_inset space \thinspace{}
22344 \end_inset
22345
22346 g., 
22347 \begin_inset Flex Code
22348 status collapsed
22349
22350 \begin_layout Plain Layout
22351
22352 \change_inserted -712698321 1597733683
22353
22354 \backslash
22355 textbf{Sourrounding text 
22356 \backslash
22357 myinset{
22358 \backslash
22359 textbf{content}}\SpecialChar ldots
22360 }
22361 \change_unchanged
22362
22363 \end_layout
22364
22365 \end_inset
22366
22367  rather than 
22368 \begin_inset Flex Code
22369 status collapsed
22370
22371 \begin_layout Plain Layout
22372
22373 \change_inserted -712698321 1597733686
22374
22375 \backslash
22376 textbf{Sourrounding text 
22377 \backslash
22378 myinset{content}\SpecialChar ldots
22379 }
22380 \change_unchanged
22381
22382 \end_layout
22383
22384 \end_inset
22385
22386 .
22387  Setting this makes sense for commands that internally reset font settings
22388  (e.
22389 \begin_inset space \thinspace{}
22390 \end_inset
22391
22392 g., footnotes).
22393  Note that wrongly setting this might lead to unwanted result (e.
22394 \begin_inset space \thinspace{}
22395 \end_inset
22396
22397 g., with 
22398 \begin_inset Flex Code
22399 status collapsed
22400
22401 \begin_layout Plain Layout
22402
22403 \change_inserted -712698321 1597733688
22404
22405 \backslash
22406 emph{Sourrounding text 
22407 \backslash
22408 myinset{
22409 \backslash
22410 emph{content}}\SpecialChar ldots
22411 }
22412 \change_unchanged
22413
22414 \end_layout
22415
22416 \end_inset
22417
22418 , content is upright, as 
22419 \begin_inset Flex Code
22420 status collapsed
22421
22422 \begin_layout Plain Layout
22423
22424 \change_inserted -712698321 1597733278
22425
22426 \backslash
22427 emph
22428 \change_unchanged
22429
22430 \end_layout
22431
22432 \end_inset
22433
22434  toggles.
22435  
22436 \change_deleted -712698321 1597733283
22437 Whether this inset should use the font of its surrounding environment or
22438  uses its own.
22439  
22440 \change_unchanged
22441 Default is 
22442 \change_deleted -712698321 1597733290
22443 false
22444 \change_inserted -712698321 1597733290
22445
22446 \begin_inset Flex Code
22447 status collapsed
22448
22449 \begin_layout Plain Layout
22450
22451 \change_inserted -712698321 1597733292
22452 0
22453 \change_unchanged
22454
22455 \end_layout
22456
22457 \end_inset
22458
22459
22460 \change_unchanged
22461
22462 \change_deleted -712698321 1597733327
22463 use the font of the surrounding environment
22464 \change_inserted -712698321 1597733343
22465 font changes are not redone inside the inset
22466 \change_unchanged
22467 .
22468 \end_layout
22469
22470 \begin_layout Description
22471 \begin_inset Flex Code
22472 status collapsed
22473
22474 \begin_layout Plain Layout
22475 RightDelim
22476 \end_layout
22477
22478 \end_inset
22479
22480  [
22481 \begin_inset Flex Code
22482 status collapsed
22483
22484 \begin_layout Plain Layout
22485 string
22486 \end_layout
22487
22488 \end_inset
22489
22490 ] A string that is put at the end of the layout content.
22491  A line break in the output can be indicated by 
22492 \begin_inset Flex Code
22493 status collapsed
22494
22495 \begin_layout Plain Layout
22496 <br/>
22497 \end_layout
22498
22499 \end_inset
22500
22501 .
22502 \end_layout
22503
22504 \begin_layout Description
22505 \begin_inset Flex Code
22506 status collapsed
22507
22508 \begin_layout Plain Layout
22509 Spellcheck
22510 \end_layout
22511
22512 \end_inset
22513
22514  [
22515 \begin_inset Flex Code
22516 status collapsed
22517
22518 \begin_layout Plain Layout
22519 0
22520 \end_layout
22521
22522 \end_inset
22523
22524 ,
22525 \begin_inset space \thinspace{}
22526 \end_inset
22527
22528
22529 \begin_inset Flex Code
22530 status collapsed
22531
22532 \begin_layout Plain Layout
22533
22534 \emph on
22535 1
22536 \end_layout
22537
22538 \end_inset
22539
22540 ] Allow spell-checking the contents of this inset.
22541  Default is true.
22542 \end_layout
22543
22544 \begin_layout Subsection
22545 Counters
22546 \begin_inset CommandInset label
22547 LatexCommand label
22548 name "subsec:Counters"
22549
22550 \end_inset
22551
22552
22553 \end_layout
22554
22555 \begin_layout Standard
22556 It is necessary to define the counters (
22557 \begin_inset Flex Noun
22558 status collapsed
22559
22560 \begin_layout Plain Layout
22561 chapter
22562 \end_layout
22563
22564 \end_inset
22565
22566
22567 \begin_inset Flex Noun
22568 status collapsed
22569
22570 \begin_layout Plain Layout
22571 figure
22572 \end_layout
22573
22574 \end_inset
22575
22576 , \SpecialChar ldots
22577 ) in the text class itself.
22578  The standard counters are defined in the file 
22579 \begin_inset Flex Code
22580 status collapsed
22581
22582 \begin_layout Plain Layout
22583 stdcounters.inc
22584 \end_layout
22585
22586 \end_inset
22587
22588 , so you may have to do no more than add
22589 \end_layout
22590
22591 \begin_layout LyX-Code
22592 Input stdcounters.inc
22593 \end_layout
22594
22595 \begin_layout Standard
22596 to your layout file to get them to work.
22597  But if you want to define custom counters, then you can do so.
22598  The counter declaration must begin with:
22599 \end_layout
22600
22601 \begin_layout LyX-Code
22602 Counter CounterName
22603 \end_layout
22604
22605 \begin_layout Standard
22606 where of course `
22607 \begin_inset Flex Code
22608 status collapsed
22609
22610 \begin_layout Plain Layout
22611 CounterName
22612 \end_layout
22613
22614 \end_inset
22615
22616 ' is replaced by the name of the counter.
22617  And it must end with 
22618 \begin_inset Quotes eld
22619 \end_inset
22620
22621
22622 \begin_inset Flex Code
22623 status collapsed
22624
22625 \begin_layout Plain Layout
22626 End
22627 \end_layout
22628
22629 \end_inset
22630
22631
22632 \begin_inset Quotes erd
22633 \end_inset
22634
22635 .
22636  The following parameters can also be used:
22637 \end_layout
22638
22639 \begin_layout Description
22640 \begin_inset Flex Code
22641 status collapsed
22642
22643 \begin_layout Plain Layout
22644 InitialValue
22645 \end_layout
22646
22647 \end_inset
22648
22649  [
22650 \begin_inset Flex Code
22651 status collapsed
22652
22653 \begin_layout Plain Layout
22654 int=1
22655 \end_layout
22656
22657 \end_inset
22658
22659 ] Sets the initial value for the counter, to which it will be reset whenever
22660  that happens.
22661  Normally, one will want the default, 1.
22662 \end_layout
22663
22664 \begin_layout Description
22665 \begin_inset Flex Code
22666 status collapsed
22667
22668 \begin_layout Plain Layout
22669 LabelString
22670 \end_layout
22671
22672 \end_inset
22673
22674  [
22675 \begin_inset Flex Code
22676 status collapsed
22677
22678 \begin_layout Plain Layout
22679 string
22680 \end_layout
22681
22682 \end_inset
22683
22684 =
22685 \begin_inset Quotes erd
22686 \end_inset
22687
22688
22689 \begin_inset Quotes erd
22690 \end_inset
22691
22692 ] When defined, this string defines how the counter is displayed.
22693  Setting this value sets 
22694 \begin_inset Flex Code
22695 status collapsed
22696
22697 \begin_layout Plain Layout
22698 LabelStringAppendix
22699 \end_layout
22700
22701 \end_inset
22702
22703  to the same value.
22704  The following special constructs can be used in the string:
22705 \end_layout
22706
22707 \begin_deeper
22708 \begin_layout Itemize
22709 \begin_inset Flex Code
22710 status collapsed
22711
22712 \begin_layout Plain Layout
22713
22714 \backslash
22715 thecounter
22716 \end_layout
22717
22718 \end_inset
22719
22720  will be replaced by the expansion of the 
22721 \begin_inset Flex Code
22722 status collapsed
22723
22724 \begin_layout Plain Layout
22725 LabelString
22726 \end_layout
22727
22728 \end_inset
22729
22730  (or 
22731 \begin_inset Flex Code
22732 status collapsed
22733
22734 \begin_layout Plain Layout
22735 LabelStringAppendix
22736 \end_layout
22737
22738 \end_inset
22739
22740 ) of the counter 
22741 \begin_inset Flex Code
22742 status collapsed
22743
22744 \begin_layout Plain Layout
22745 counter
22746 \end_layout
22747
22748 \end_inset
22749
22750 .
22751  
22752 \end_layout
22753
22754 \begin_layout Itemize
22755 counter values can be expressed using \SpecialChar LaTeX
22756 -like macros
22757 \begin_inset Newline newline
22758 \end_inset
22759
22760
22761 \begin_inset Flex Code
22762 status collapsed
22763
22764 \begin_layout Plain Layout
22765
22766 \backslash
22767
22768 \emph on
22769 numbertype
22770 \emph default
22771 {
22772 \emph on
22773 counter
22774 \emph default
22775 }
22776 \end_layout
22777
22778 \end_inset
22779
22780 , where 
22781 \begin_inset Flex Code
22782 status collapsed
22783
22784 \begin_layout Plain Layout
22785
22786 \emph on
22787 numbertype
22788 \end_layout
22789
22790 \end_inset
22791
22792  can be:
22793 \begin_inset Foot
22794 status collapsed
22795
22796 \begin_layout Plain Layout
22797
22798 \family roman
22799 \series medium
22800 \shape up
22801 \size normal
22802 \emph off
22803 \bar no
22804 \noun off
22805 \color none
22806 Actually, the situation is a bit more complicated: any
22807 \family default
22808 \series default
22809 \shape default
22810 \emph default
22811 \bar default
22812  
22813 \size default
22814 \emph on
22815 \noun default
22816 \color inherit
22817 numbertype
22818 \family roman
22819 \series medium
22820 \shape up
22821 \size normal
22822 \emph off
22823 \bar no
22824 \noun off
22825  other than those described below will produce arabic numerals.
22826  It would not be surprising to see this change in the future.
22827 \end_layout
22828
22829 \end_inset
22830
22831  
22832 \begin_inset Flex Code
22833 status collapsed
22834
22835 \begin_layout Plain Layout
22836 arabic
22837 \end_layout
22838
22839 \end_inset
22840
22841 : 1, 2, 3,\SpecialChar ldots
22842
22843 \begin_inset Flex Code
22844 status collapsed
22845
22846 \begin_layout Plain Layout
22847 alph
22848 \end_layout
22849
22850 \end_inset
22851
22852  for lower-case letters: a, b, c, \SpecialChar ldots
22853
22854 \begin_inset Flex Code
22855 status collapsed
22856
22857 \begin_layout Plain Layout
22858 Alph
22859 \end_layout
22860
22861 \end_inset
22862
22863  for upper-case letters: A, B, C, \SpecialChar ldots
22864
22865 \begin_inset Flex Code
22866 status collapsed
22867
22868 \begin_layout Plain Layout
22869 roman
22870 \end_layout
22871
22872 \end_inset
22873
22874  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
22875
22876 \begin_inset Flex Code
22877 status collapsed
22878
22879 \begin_layout Plain Layout
22880 Roman
22881 \end_layout
22882
22883 \end_inset
22884
22885  for upper-case roman numerals: I, II, III\SpecialChar ldots
22886
22887 \begin_inset Flex Code
22888 status collapsed
22889
22890 \begin_layout Plain Layout
22891 hebrew
22892 \end_layout
22893
22894 \end_inset
22895
22896  for hebrew numerals.
22897 \end_layout
22898
22899 \end_deeper
22900 \begin_layout Standard
22901 If LabelString is not defined, a default value is constructed as follows:
22902  if the counter has a 
22903 \change_deleted 731793113 1604355218
22904 master
22905 \change_inserted 731793113 1604355221
22906 parent
22907 \change_unchanged
22908  counter 
22909 \begin_inset Flex Code
22910 status collapsed
22911
22912 \begin_layout Plain Layout
22913
22914 \change_deleted 731793113 1604355223
22915 master
22916 \change_inserted 731793113 1604355226
22917 parent
22918 \change_unchanged
22919
22920 \end_layout
22921
22922 \end_inset
22923
22924  (defined via 
22925 \begin_inset Flex Code
22926 status collapsed
22927
22928 \begin_layout Plain Layout
22929 Within
22930 \end_layout
22931
22932 \end_inset
22933
22934 ), the string
22935 \begin_inset Newline newline
22936 \end_inset
22937
22938
22939 \begin_inset Flex Code
22940 status collapsed
22941
22942 \begin_layout Plain Layout
22943
22944 \backslash
22945 the
22946 \change_inserted 731793113 1604355228
22947 parent
22948 \change_deleted 731793113 1604355230
22949 master
22950 \change_unchanged
22951 .
22952 \backslash
22953 arabic{counter}
22954 \end_layout
22955
22956 \end_inset
22957
22958  is used; otherwise the string 
22959 \begin_inset Flex Code
22960 status collapsed
22961
22962 \begin_layout Plain Layout
22963
22964 \backslash
22965 arabic{counter}
22966 \end_layout
22967
22968 \end_inset
22969
22970  is used.
22971 \end_layout
22972
22973 \begin_layout Description
22974 \begin_inset Flex Code
22975 status collapsed
22976
22977 \begin_layout Plain Layout
22978 LabelStringAppendix
22979 \end_layout
22980
22981 \end_inset
22982
22983  [
22984 \begin_inset Flex Code
22985 status collapsed
22986
22987 \begin_layout Plain Layout
22988 string
22989 \end_layout
22990
22991 \end_inset
22992
22993
22994 \begin_inset Quotes eld
22995 \end_inset
22996
22997
22998 \begin_inset Quotes erd
22999 \end_inset
23000
23001 ] Same as 
23002 \begin_inset Flex Code
23003 status collapsed
23004
23005 \begin_layout Plain Layout
23006 LabelString
23007 \end_layout
23008
23009 \end_inset
23010
23011 , but for use in the Appendix.
23012 \change_inserted -584632292 1607202551
23013
23014 \end_layout
23015
23016 \begin_layout Description
23017
23018 \change_inserted -584632292 1607202682
23019 \begin_inset Flex Code
23020 status open
23021
23022 \begin_layout Plain Layout
23023 LaTeXName
23024 \end_layout
23025
23026 \end_inset
23027
23028  [
23029 \begin_inset Flex Code
23030 status open
23031
23032 \begin_layout Plain Layout
23033
23034 \change_inserted -584632292 1607202576
23035 string
23036 \change_unchanged
23037
23038 \end_layout
23039
23040 \end_inset
23041
23042  = 
23043 \begin_inset Quotes eld
23044 \end_inset
23045
23046
23047 \begin_inset Quotes erd
23048 \end_inset
23049
23050 ] The counter name as used in \SpecialChar LaTeX
23051 .
23052  (E.g., in \SpecialChar LyX
23053 , there is a counter named `theorem', but it is output to \SpecialChar LaTeX
23054  as `thm'.)
23055 \change_unchanged
23056
23057 \end_layout
23058
23059 \begin_layout Description
23060 \begin_inset Flex Code
23061 status collapsed
23062
23063 \begin_layout Plain Layout
23064 PrettyFormat
23065 \end_layout
23066
23067 \end_inset
23068
23069  [
23070 \begin_inset Flex Code
23071 status collapsed
23072
23073 \begin_layout Plain Layout
23074 string
23075 \end_layout
23076
23077 \end_inset
23078
23079 =
23080 \begin_inset Quotes erd
23081 \end_inset
23082
23083
23084 \begin_inset Quotes erd
23085 \end_inset
23086
23087 ] A format for use with formatted references to this counter.
23088  For example, one might want to have references to section numbers appear
23089  as 
23090 \begin_inset Quotes eld
23091 \end_inset
23092
23093 Section 2.4
23094 \begin_inset Quotes erd
23095 \end_inset
23096
23097 .
23098  The string should contain 
23099 \begin_inset Quotes eld
23100 \end_inset
23101
23102 ##
23103 \begin_inset Quotes erd
23104 \end_inset
23105
23106 .
23107  This will be replaced by the counter number itself.
23108  So, for sections, it would be: Section ##.
23109 \end_layout
23110
23111 \begin_layout Description
23112 \begin_inset Flex Code
23113 status collapsed
23114
23115 \begin_layout Plain Layout
23116 Within
23117 \end_layout
23118
23119 \end_inset
23120
23121  [
23122 \begin_inset Flex Code
23123 status collapsed
23124
23125 \begin_layout Plain Layout
23126 string
23127 \end_layout
23128
23129 \end_inset
23130
23131 =
23132 \begin_inset Quotes erd
23133 \end_inset
23134
23135
23136 \begin_inset Quotes erd
23137 \end_inset
23138
23139 ] If this is set to the name of another counter, the present counter will
23140  be reset every time the other one is increased.
23141  For example, 
23142 \begin_inset Flex Code
23143 status collapsed
23144
23145 \begin_layout Plain Layout
23146 subsection
23147 \end_layout
23148
23149 \end_inset
23150
23151  is numbered inside 
23152 \begin_inset Flex Code
23153 status collapsed
23154
23155 \begin_layout Plain Layout
23156 section
23157 \end_layout
23158
23159 \end_inset
23160
23161 .
23162 \end_layout
23163
23164 \begin_layout Subsection
23165 Font description
23166 \begin_inset CommandInset label
23167 LatexCommand label
23168 name "subsec:Font-description"
23169
23170 \end_inset
23171
23172
23173 \end_layout
23174
23175 \begin_layout Standard
23176 A font description looks like this:
23177 \end_layout
23178
23179 \begin_layout LyX-Code
23180 Font 
23181 \family roman
23182 \emph on
23183 or
23184 \family default
23185 \emph default
23186  LabelFont
23187 \emph on
23188  
23189 \family roman
23190 or
23191 \family default
23192 \emph default
23193  DefaultFont
23194 \end_layout
23195
23196 \begin_layout LyX-Code
23197  ...
23198 \end_layout
23199
23200 \begin_layout LyX-Code
23201 EndFont
23202 \end_layout
23203
23204 \begin_layout Standard
23205 The following commands are available:
23206 \end_layout
23207
23208 \begin_layout Description
23209 \begin_inset Flex Code
23210 status collapsed
23211
23212 \begin_layout Plain Layout
23213 Color
23214 \end_layout
23215
23216 \end_inset
23217
23218  [
23219 \change_deleted -712698321 1607682984
23220
23221 \begin_inset Flex Code
23222 status collapsed
23223
23224 \begin_layout Plain Layout
23225
23226 \emph on
23227 none
23228 \end_layout
23229
23230 \end_inset
23231
23232
23233 \begin_inset Flex Code
23234 status collapsed
23235
23236 \begin_layout Plain Layout
23237 black
23238 \end_layout
23239
23240 \end_inset
23241
23242
23243 \begin_inset Flex Code
23244 status collapsed
23245
23246 \begin_layout Plain Layout
23247 white
23248 \end_layout
23249
23250 \end_inset
23251
23252
23253 \begin_inset Flex Code
23254 status collapsed
23255
23256 \begin_layout Plain Layout
23257 red
23258 \end_layout
23259
23260 \end_inset
23261
23262
23263 \begin_inset Flex Code
23264 status collapsed
23265
23266 \begin_layout Plain Layout
23267 green
23268 \end_layout
23269
23270 \end_inset
23271
23272
23273 \begin_inset Flex Code
23274 status collapsed
23275
23276 \begin_layout Plain Layout
23277 blue
23278 \end_layout
23279
23280 \end_inset
23281
23282
23283 \begin_inset Flex Code
23284 status collapsed
23285
23286 \begin_layout Plain Layout
23287 cyan
23288 \end_layout
23289
23290 \end_inset
23291
23292
23293 \begin_inset Flex Code
23294 status collapsed
23295
23296 \begin_layout Plain Layout
23297 magenta
23298 \end_layout
23299
23300 \end_inset
23301
23302
23303 \begin_inset Flex Code
23304 status collapsed
23305
23306 \begin_layout Plain Layout
23307 yellow
23308 \end_layout
23309
23310 \end_inset
23311
23312
23313 \begin_inset Flex Code
23314 status collapsed
23315
23316 \begin_layout Plain Layout
23317 brown
23318 \end_layout
23319
23320 \end_inset
23321
23322
23323 \begin_inset Flex Code
23324 status collapsed
23325
23326 \begin_layout Plain Layout
23327 darkgray
23328 \end_layout
23329
23330 \end_inset
23331
23332
23333 \begin_inset Flex Code
23334 status collapsed
23335
23336 \begin_layout Plain Layout
23337 gray
23338 \end_layout
23339
23340 \end_inset
23341
23342
23343 \begin_inset Flex Code
23344 status collapsed
23345
23346 \begin_layout Plain Layout
23347 lightgray
23348 \end_layout
23349
23350 \end_inset
23351
23352
23353 \begin_inset Flex Code
23354 status collapsed
23355
23356 \begin_layout Plain Layout
23357 lime
23358 \end_layout
23359
23360 \end_inset
23361
23362
23363 \begin_inset Flex Code
23364 status collapsed
23365
23366 \begin_layout Plain Layout
23367 orange
23368 \end_layout
23369
23370 \end_inset
23371
23372
23373 \begin_inset Flex Code
23374 status collapsed
23375
23376 \begin_layout Plain Layout
23377 olive
23378 \end_layout
23379
23380 \end_inset
23381
23382
23383 \begin_inset Flex Code
23384 status collapsed
23385
23386 \begin_layout Plain Layout
23387 pink
23388 \end_layout
23389
23390 \end_inset
23391
23392
23393 \begin_inset Flex Code
23394 status collapsed
23395
23396 \begin_layout Plain Layout
23397 purple
23398 \end_layout
23399
23400 \end_inset
23401
23402
23403 \begin_inset Flex Code
23404 status collapsed
23405
23406 \begin_layout Plain Layout
23407 teal
23408 \end_layout
23409
23410 \end_inset
23411
23412
23413 \begin_inset Flex Code
23414 status collapsed
23415
23416 \begin_layout Plain Layout
23417 violet
23418 \end_layout
23419
23420 \end_inset
23421
23422
23423 \change_inserted -712698321 1607683139
23424
23425 \begin_inset Flex Code
23426 status collapsed
23427
23428 \begin_layout Plain Layout
23429
23430 \change_inserted -712698321 1607683135
23431 string
23432 \change_unchanged
23433
23434 \end_layout
23435
23436 \end_inset
23437
23438 ] See appendix
23439 \begin_inset space ~
23440 \end_inset
23441
23442
23443 \begin_inset CommandInset ref
23444 LatexCommand ref
23445 reference "chap:Names-of-colors"
23446 plural "false"
23447 caps "false"
23448 noprefix "false"
23449
23450 \end_inset
23451
23452  for 
23453 \change_deleted -712698321 1607683144
23454 ]
23455 \change_inserted -712698321 1607683146
23456 valid arguments.
23457 \change_unchanged
23458
23459 \end_layout
23460
23461 \begin_layout Description
23462 \begin_inset Flex Code
23463 status collapsed
23464
23465 \begin_layout Plain Layout
23466 Family
23467 \end_layout
23468
23469 \end_inset
23470
23471  [
23472 \begin_inset Flex Code
23473 status collapsed
23474
23475 \begin_layout Plain Layout
23476
23477 \emph on
23478 Roman
23479 \end_layout
23480
23481 \end_inset
23482
23483
23484 \begin_inset Flex Code
23485 status collapsed
23486
23487 \begin_layout Plain Layout
23488 Sans
23489 \end_layout
23490
23491 \end_inset
23492
23493
23494 \begin_inset Flex Code
23495 status collapsed
23496
23497 \begin_layout Plain Layout
23498 Typewriter
23499 \end_layout
23500
23501 \end_inset
23502
23503 ]
23504 \end_layout
23505
23506 \begin_layout Description
23507 \begin_inset Flex Code
23508 status collapsed
23509
23510 \begin_layout Plain Layout
23511 Misc
23512 \end_layout
23513
23514 \end_inset
23515
23516  [
23517 \begin_inset Flex Code
23518 status collapsed
23519
23520 \begin_layout Plain Layout
23521 string
23522 \end_layout
23523
23524 \end_inset
23525
23526 ] Valid arguments are: 
23527 \begin_inset Flex Code
23528 status collapsed
23529
23530 \begin_layout Plain Layout
23531 emph
23532 \end_layout
23533
23534 \end_inset
23535
23536
23537 \begin_inset Flex Code
23538 status collapsed
23539
23540 \begin_layout Plain Layout
23541 noun
23542 \end_layout
23543
23544 \end_inset
23545
23546
23547 \begin_inset Flex Code
23548 status collapsed
23549
23550 \begin_layout Plain Layout
23551 strikeout
23552 \end_layout
23553
23554 \end_inset
23555
23556
23557 \begin_inset Flex Code
23558 status collapsed
23559
23560 \begin_layout Plain Layout
23561 underbar
23562 \end_layout
23563
23564 \end_inset
23565
23566
23567 \begin_inset Flex Code
23568 status collapsed
23569
23570 \begin_layout Plain Layout
23571 uuline
23572 \end_layout
23573
23574 \end_inset
23575
23576
23577 \begin_inset Flex Code
23578 status collapsed
23579
23580 \begin_layout Plain Layout
23581 uwave
23582 \end_layout
23583
23584 \end_inset
23585
23586
23587 \begin_inset Flex Code
23588 status collapsed
23589
23590 \begin_layout Plain Layout
23591 no_emph
23592 \end_layout
23593
23594 \end_inset
23595
23596
23597 \begin_inset Flex Code
23598 status collapsed
23599
23600 \begin_layout Plain Layout
23601 no_noun
23602 \end_layout
23603
23604 \end_inset
23605
23606
23607 \begin_inset Flex Code
23608 status collapsed
23609
23610 \begin_layout Plain Layout
23611 no_strikeout
23612 \end_layout
23613
23614 \end_inset
23615
23616
23617 \begin_inset Flex Code
23618 status collapsed
23619
23620 \begin_layout Plain Layout
23621 no_bar
23622 \end_layout
23623
23624 \end_inset
23625
23626
23627 \begin_inset Flex Code
23628 status collapsed
23629
23630 \begin_layout Plain Layout
23631 no_uuline
23632 \end_layout
23633
23634 \end_inset
23635
23636  and 
23637 \begin_inset Flex Code
23638 status collapsed
23639
23640 \begin_layout Plain Layout
23641 no_uwave
23642 \end_layout
23643
23644 \end_inset
23645
23646 .
23647  Each of these turns on or off the corresponding attribute.
23648  For example, 
23649 \begin_inset Flex Code
23650 status collapsed
23651
23652 \begin_layout Plain Layout
23653 emph
23654 \end_layout
23655
23656 \end_inset
23657
23658  turns on emphasis, and 
23659 \begin_inset Flex Code
23660 status collapsed
23661
23662 \begin_layout Plain Layout
23663 no_emph
23664 \end_layout
23665
23666 \end_inset
23667
23668  turns it off.
23669  
23670 \begin_inset Newline newline
23671 \end_inset
23672
23673 If the latter seems puzzling, remember that the font settings for the present
23674  context are generally inherited from the surrounding context.
23675  So 
23676 \begin_inset Flex Code
23677 status collapsed
23678
23679 \begin_layout Plain Layout
23680 no_emph
23681 \end_layout
23682
23683 \end_inset
23684
23685  would turn off the emphasis that was anyway in effect, say, in a theorem
23686  environment.
23687 \end_layout
23688
23689 \begin_layout Description
23690 \begin_inset Flex Code
23691 status collapsed
23692
23693 \begin_layout Plain Layout
23694 Series
23695 \end_layout
23696
23697 \end_inset
23698
23699  [
23700 \begin_inset Flex Code
23701 status collapsed
23702
23703 \begin_layout Plain Layout
23704
23705 \emph on
23706 Medium
23707 \end_layout
23708
23709 \end_inset
23710
23711
23712 \begin_inset Flex Code
23713 status collapsed
23714
23715 \begin_layout Plain Layout
23716 Bold
23717 \end_layout
23718
23719 \end_inset
23720
23721
23722 \end_layout
23723
23724 \begin_layout Description
23725 \begin_inset Flex Code
23726 status collapsed
23727
23728 \begin_layout Plain Layout
23729 Shape
23730 \end_layout
23731
23732 \end_inset
23733
23734  [
23735 \begin_inset Flex Code
23736 status collapsed
23737
23738 \begin_layout Plain Layout
23739
23740 \emph on
23741 Up
23742 \end_layout
23743
23744 \end_inset
23745
23746
23747 \begin_inset Flex Code
23748 status collapsed
23749
23750 \begin_layout Plain Layout
23751 Italic
23752 \end_layout
23753
23754 \end_inset
23755
23756
23757 \begin_inset Flex Code
23758 status collapsed
23759
23760 \begin_layout Plain Layout
23761 SmallCaps
23762 \end_layout
23763
23764 \end_inset
23765
23766
23767 \begin_inset Flex Code
23768 status collapsed
23769
23770 \begin_layout Plain Layout
23771 Slanted
23772 \end_layout
23773
23774 \end_inset
23775
23776
23777 \end_layout
23778
23779 \begin_layout Description
23780 \begin_inset Flex Code
23781 status collapsed
23782
23783 \begin_layout Plain Layout
23784 Size
23785 \end_layout
23786
23787 \end_inset
23788
23789  [
23790 \begin_inset Flex Code
23791 status collapsed
23792
23793 \begin_layout Plain Layout
23794 tiny
23795 \end_layout
23796
23797 \end_inset
23798
23799
23800 \begin_inset Flex Code
23801 status collapsed
23802
23803 \begin_layout Plain Layout
23804 small
23805 \end_layout
23806
23807 \end_inset
23808
23809
23810 \begin_inset Flex Code
23811 status collapsed
23812
23813 \begin_layout Plain Layout
23814
23815 \emph on
23816 normal
23817 \end_layout
23818
23819 \end_inset
23820
23821
23822 \begin_inset Flex Code
23823 status collapsed
23824
23825 \begin_layout Plain Layout
23826 large
23827 \end_layout
23828
23829 \end_inset
23830
23831
23832 \begin_inset Flex Code
23833 status collapsed
23834
23835 \begin_layout Plain Layout
23836 larger
23837 \end_layout
23838
23839 \end_inset
23840
23841
23842 \begin_inset Flex Code
23843 status collapsed
23844
23845 \begin_layout Plain Layout
23846 largest
23847 \end_layout
23848
23849 \end_inset
23850
23851
23852 \begin_inset Flex Code
23853 status collapsed
23854
23855 \begin_layout Plain Layout
23856 huge
23857 \end_layout
23858
23859 \end_inset
23860
23861
23862 \begin_inset Flex Code
23863 status collapsed
23864
23865 \begin_layout Plain Layout
23866 giant
23867 \end_layout
23868
23869 \end_inset
23870
23871 ]
23872 \end_layout
23873
23874 \begin_layout Subsection
23875 \begin_inset CommandInset label
23876 LatexCommand label
23877 name "subsec:Citation-engine-description"
23878
23879 \end_inset
23880
23881 Cite engine description
23882 \end_layout
23883
23884 \begin_layout Standard
23885 The 
23886 \begin_inset Flex Code
23887 status collapsed
23888
23889 \begin_layout Plain Layout
23890 CiteEngine
23891 \end_layout
23892
23893 \end_inset
23894
23895  blocks, as used mainly in cite engine files (see 
23896 \begin_inset CommandInset ref
23897 LatexCommand ref
23898 reference "subsec:Cite-Engine-Files"
23899 plural "false"
23900 caps "false"
23901 noprefix "false"
23902
23903 \end_inset
23904
23905 ), define the citation commands provided by a specific 
23906 \begin_inset Quotes eld
23907 \end_inset
23908
23909 cite engine
23910 \begin_inset Quotes erd
23911 \end_inset
23912
23913 .
23914  A cite engine, in \SpecialChar LyX
23915  terms, is way specific way to format citations, using
23916  numbers, author names and/or years.
23917  Currently, \SpecialChar LyX
23918  supports three such engine types, namely:
23919 \end_layout
23920
23921 \begin_layout Enumerate
23922 \begin_inset Flex Code
23923 status collapsed
23924
23925 \begin_layout Plain Layout
23926 default
23927 \end_layout
23928
23929 \end_inset
23930
23931 : the default Bib\SpecialChar TeX
23932  way to format citations, a simple numeric style (e.
23933 \begin_inset space \thinspace{}
23934 \end_inset
23935
23936 g., 
23937 \begin_inset Quotes eld
23938 \end_inset
23939
23940 [1]
23941 \begin_inset Quotes erd
23942 \end_inset
23943
23944 )
23945 \end_layout
23946
23947 \begin_layout Enumerate
23948 \begin_inset Flex Code
23949 status collapsed
23950
23951 \begin_layout Plain Layout
23952 authoryear
23953 \end_layout
23954
23955 \end_inset
23956
23957 : Harvard-styled citations using author names and publication year (e.
23958 \begin_inset space \thinspace{}
23959 \end_inset
23960
23961 g., 
23962 \begin_inset Quotes eld
23963 \end_inset
23964
23965 Smith and Miller (2017b)
23966 \begin_inset Quotes erd
23967 \end_inset
23968
23969 )
23970 \end_layout
23971
23972 \begin_layout Enumerate
23973 \begin_inset Flex Code
23974 status collapsed
23975
23976 \begin_layout Plain Layout
23977 numerical
23978 \end_layout
23979
23980 \end_inset
23981
23982 : extended numerical citations that also allow for author or title next
23983  to the number (e.
23984 \begin_inset space \thinspace{}
23985 \end_inset
23986
23987 g., 
23988 \begin_inset Quotes eld
23989 \end_inset
23990
23991 Smith and Miller [1]
23992 \begin_inset Quotes erd
23993 \end_inset
23994
23995 )
23996 \end_layout
23997
23998 \begin_layout Standard
23999 \begin_inset Flex Code
24000 status collapsed
24001
24002 \begin_layout Plain Layout
24003 CiteEngine
24004 \end_layout
24005
24006 \end_inset
24007
24008  blocks look like this:
24009 \end_layout
24010
24011 \begin_layout LyX-Code
24012 CiteEngine default
24013 \end_layout
24014
24015 \begin_layout LyX-Code
24016  cite
24017 \end_layout
24018
24019 \begin_layout LyX-Code
24020  Citep*[][]
24021 \end_layout
24022
24023 \begin_layout LyX-Code
24024  citeyearpar[][]=parencite*
24025 \end_layout
24026
24027 \begin_layout LyX-Code
24028  ...
24029 \end_layout
24030
24031 \begin_layout LyX-Code
24032 End
24033 \end_layout
24034
24035 \begin_layout Standard
24036 The tag following 
24037 \begin_inset Flex Code
24038 status collapsed
24039
24040 \begin_layout Plain Layout
24041 CiteEngine
24042 \end_layout
24043
24044 \end_inset
24045
24046  denotes the engine.
24047  The individual lines respectively define a cite command or cite command
24048  paradigm supported by this engine.
24049  The line can be as simple as a cite command that is used both to name the
24050  respective \SpecialChar LyX
24051  command and the \SpecialChar LaTeX
24052  output or more complex in order to differentiate
24053  things.
24054  The full syntax is:
24055 \end_layout
24056
24057 \begin_layout LyX-Code
24058 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
24059 \end_layout
24060
24061 \begin_layout Itemize
24062 \begin_inset Flex Code
24063 status collapsed
24064
24065 \begin_layout Plain Layout
24066 LyXName
24067 \end_layout
24068
24069 \end_inset
24070
24071 : The name as used in the 
24072 \begin_inset Flex Code
24073 status collapsed
24074
24075 \begin_layout Plain Layout
24076 *.lyx
24077 \end_layout
24078
24079 \end_inset
24080
24081  file.
24082 \end_layout
24083
24084 \begin_deeper
24085 \begin_layout Standard
24086 For portability reasons, we try to use the same name for same-formatted
24087  commands in different cite packages (thus many names stem from natbib,
24088  and thus we need to differentiate a 
24089 \begin_inset Flex Code
24090 status collapsed
24091
24092 \begin_layout Plain Layout
24093 latexcmd
24094 \end_layout
24095
24096 \end_inset
24097
24098  sometimes, if the \SpecialChar LaTeX
24099  command names differ).
24100 \end_layout
24101
24102 \end_deeper
24103 \begin_layout Itemize
24104 \begin_inset Flex Code
24105 status collapsed
24106
24107 \begin_layout Plain Layout
24108 alias
24109 \end_layout
24110
24111 \end_inset
24112
24113 : a (comma-separated) list of commands that fall back to the given 
24114 \begin_inset Flex Code
24115 status collapsed
24116
24117 \begin_layout Plain Layout
24118 LyXName
24119 \end_layout
24120
24121 \end_inset
24122
24123  in the current engine.
24124  This eases the switch of citation packages and engines.
24125  The 
24126 \begin_inset Flex Code
24127 status collapsed
24128
24129 \begin_layout Plain Layout
24130 alias
24131 \end_layout
24132
24133 \end_inset
24134
24135  can be compared to 
24136 \begin_inset Flex Code
24137 status collapsed
24138
24139 \begin_layout Plain Layout
24140 ObsoletedBy
24141 \end_layout
24142
24143 \end_inset
24144
24145  in layout definitions.
24146 \end_layout
24147
24148 \begin_layout Itemize
24149 \begin_inset Flex Code
24150 status collapsed
24151
24152 \begin_layout Plain Layout
24153 latexcmd
24154 \end_layout
24155
24156 \end_inset
24157
24158 : The actual \SpecialChar LaTeX
24159  command that is output.
24160  
24161 \end_layout
24162
24163 \begin_layout Standard
24164 \begin_inset Flex Code
24165 status collapsed
24166
24167 \begin_layout Plain Layout
24168 Alias
24169 \end_layout
24170
24171 \end_inset
24172
24173  and 
24174 \begin_inset Flex Code
24175 status collapsed
24176
24177 \begin_layout Plain Layout
24178 latexcmd
24179 \end_layout
24180
24181 \end_inset
24182
24183  are optional.
24184  If no 
24185 \begin_inset Flex Code
24186 status collapsed
24187
24188 \begin_layout Plain Layout
24189 latexcmd
24190 \end_layout
24191
24192 \end_inset
24193
24194  is given, the 
24195 \begin_inset Flex Code
24196 status collapsed
24197
24198 \begin_layout Plain Layout
24199 LyXName
24200 \end_layout
24201
24202 \end_inset
24203
24204  will be output to \SpecialChar LaTeX
24205 .
24206 \end_layout
24207
24208 \begin_layout Standard
24209 Note further:
24210 \end_layout
24211
24212 \begin_layout Itemize
24213 Capitalization indicates that the command also has a capitalized form (
24214 \begin_inset Flex Code
24215 status collapsed
24216
24217 \begin_layout Plain Layout
24218
24219 \backslash
24220 Latexcmd
24221 \end_layout
24222
24223 \end_inset
24224
24225  vs.
24226  
24227 \begin_inset Flex Code
24228 status collapsed
24229
24230 \begin_layout Plain Layout
24231
24232 \backslash
24233 latexcmd
24234 \end_layout
24235
24236 \end_inset
24237
24238 ).
24239  These usually enforce up-casing of name prefixes (
24240 \emph on
24241 von Goethe
24242 \emph default
24243  
24244 \begin_inset Formula $\Rightarrow$
24245 \end_inset
24246
24247  
24248 \emph on
24249 Von Goethe
24250 \emph default
24251 ).
24252 \end_layout
24253
24254 \begin_layout Itemize
24255 Brackets 
24256 \begin_inset Flex Code
24257 status collapsed
24258
24259 \begin_layout Plain Layout
24260 []
24261 \end_layout
24262
24263 \end_inset
24264
24265  indicate the number of optional arguments (there can be 0–2).
24266 \end_layout
24267
24268 \begin_layout Itemize
24269 A star 
24270 \begin_inset Flex Code
24271 status collapsed
24272
24273 \begin_layout Plain Layout
24274 *
24275 \end_layout
24276
24277 \end_inset
24278
24279  indicates there is a starred version of the command (
24280 \begin_inset Flex Code
24281 status collapsed
24282
24283 \begin_layout Plain Layout
24284
24285 \backslash
24286 latexcmd*
24287 \end_layout
24288
24289 \end_inset
24290
24291  vs.
24292  
24293 \begin_inset Flex Code
24294 status collapsed
24295
24296 \begin_layout Plain Layout
24297
24298 \backslash
24299 latexcmd
24300 \end_layout
24301
24302 \end_inset
24303
24304 ).
24305  
24306 \end_layout
24307
24308 \begin_deeper
24309 \begin_layout Standard
24310 By default, the starred version means: Output all authors even if it should
24311  be shortened with 
24312 \begin_inset Quotes eld
24313 \end_inset
24314
24315 et al.
24316 \begin_inset Quotes erd
24317 \end_inset
24318
24319  due to the 
24320 \begin_inset Flex Code
24321 status collapsed
24322
24323 \begin_layout Plain Layout
24324 MaxCiteNames
24325 \end_layout
24326
24327 \end_inset
24328
24329  threshold.
24330 \end_layout
24331
24332 \begin_layout Standard
24333 If the star has a different meaning for a given command, it can be specified
24334  in angle brackets: 
24335 \begin_inset Flex Code
24336 status collapsed
24337
24338 \begin_layout Plain Layout
24339 <!_stardesc!_stardesctooltip>
24340 \end_layout
24341
24342 \end_inset
24343
24344 .
24345  Maximal two translatable macro keywords, marked by the prefix 
24346 \begin_inset Flex Code
24347 status collapsed
24348
24349 \begin_layout Plain Layout
24350 !_
24351 \end_layout
24352
24353 \end_inset
24354
24355 , can be given.
24356  The first points to the string that replaces the 
24357 \begin_inset Quotes eld
24358 \end_inset
24359
24360 Full aut&hor list
24361 \begin_inset Quotes erd
24362 \end_inset
24363
24364  checkbox label in the citation dialog, the second one to an optional tool
24365  tip for this checkbox.
24366  
24367 \end_layout
24368
24369 \begin_layout Standard
24370 Note that these two macros have to be defined in a 
24371 \begin_inset Flex Code
24372 status collapsed
24373
24374 \begin_layout Plain Layout
24375 CiteFormat
24376 \end_layout
24377
24378 \end_inset
24379
24380  (see next section), dropping the 
24381 \begin_inset Flex Code
24382 status collapsed
24383
24384 \begin_layout Plain Layout
24385 !
24386 \end_layout
24387
24388 \end_inset
24389
24390  from the prefix, like this: 
24391 \end_layout
24392
24393 \begin_layout LyX-Code
24394 _stardesc Sta&rred command label
24395 \end_layout
24396
24397 \begin_layout LyX-Code
24398 _stardesctooltip Tooltip for the starred command checkbox.
24399 \end_layout
24400
24401 \end_deeper
24402 \begin_layout Itemize
24403 A dollar sign 
24404 \begin_inset Flex Code
24405 status collapsed
24406
24407 \begin_layout Plain Layout
24408 $
24409 \end_layout
24410
24411 \end_inset
24412
24413  indicates that this command features 
24414 \begin_inset Quotes eld
24415 \end_inset
24416
24417 qualified citation lists
24418 \begin_inset Quotes erd
24419 \end_inset
24420
24421 .
24422  This is a 
24423 \family sans
24424 Biblatex
24425 \family default
24426 -specific feature for multi-reference citations where an individual pre-
24427  and postnote can be given to each reference in the list.
24428  Please refer to the 
24429 \family sans
24430 Biblatex
24431 \family default
24432  manual for details.
24433 \change_inserted -712698321 1526898670
24434
24435 \end_layout
24436
24437 \begin_layout Standard
24438
24439 \change_inserted -712698321 1526899524
24440 If you want to add a cite command to a cite engine (e.
24441 \begin_inset space \thinspace{}
24442 \end_inset
24443
24444 g., add a specific command provided by a class), you can use 
24445 \begin_inset Flex Code
24446 status collapsed
24447
24448 \begin_layout Plain Layout
24449
24450 \change_inserted -712698321 1526898768
24451 AddToCiteEngine <engine type> \SpecialChar ldots
24452  End
24453 \change_unchanged
24454
24455 \end_layout
24456
24457 \end_inset
24458
24459 .
24460  Note that only cite commands that do not exist yet are added.
24461 \change_unchanged
24462
24463 \end_layout
24464
24465 \begin_layout Subsection
24466 \begin_inset CommandInset label
24467 LatexCommand label
24468 name "subsec:Citation-format-description"
24469
24470 \end_inset
24471
24472 Cite format description
24473 \end_layout
24474
24475 \begin_layout Standard
24476 The 
24477 \begin_inset Flex Code
24478 status collapsed
24479
24480 \begin_layout Plain Layout
24481 CiteFormat
24482 \end_layout
24483
24484 \end_inset
24485
24486  blocks are used to describe how bibliographic information should be displayed,
24487  both within \SpecialChar LyX
24488  itself (in the citation dialog and in tooltips, for example)
24489  and in XHTML output.
24490  Such a block might look like this:
24491 \end_layout
24492
24493 \begin_layout LyX-Code
24494 CiteFormat
24495 \end_layout
24496
24497 \begin_layout LyX-Code
24498  article ...
24499 \end_layout
24500
24501 \begin_layout LyX-Code
24502  book ...
24503 \end_layout
24504
24505 \begin_layout LyX-Code
24506 End
24507 \end_layout
24508
24509 \begin_layout Standard
24510 or
24511 \end_layout
24512
24513 \begin_layout LyX-Code
24514 CiteFormat
24515 \end_layout
24516
24517 \begin_layout LyX-Code
24518  cite ...
24519 \end_layout
24520
24521 \begin_layout LyX-Code
24522  citet*[][] ...
24523 \end_layout
24524
24525 \begin_layout LyX-Code
24526 End
24527 \end_layout
24528
24529 \begin_layout Standard
24530 In the first case, the individual lines define how the bibliographic information
24531  associated with an article or book, respectively, is to be displayed, and
24532  such a definition can be given for any 
24533 \begin_inset Quotes els
24534 \end_inset
24535
24536 entry type
24537 \begin_inset Quotes ers
24538 \end_inset
24539
24540  that might be present in a Bib\SpecialChar TeX
24541  file.
24542  \SpecialChar LyX
24543  defines a default format in the source code that will be used if no specific
24544  definition has been given.
24545  \SpecialChar LyX
24546  predefines several formats in the file 
24547 \begin_inset Flex Code
24548 status collapsed
24549
24550 \begin_layout Plain Layout
24551 stdciteformats.inc
24552 \end_layout
24553
24554 \end_inset
24555
24556 , which is included in most of \SpecialChar LyX
24557 's document classes.
24558 \end_layout
24559
24560 \begin_layout Standard
24561 In the second case, the lines define how a specific citation command (in
24562  the example 
24563 \begin_inset Flex Code
24564 status collapsed
24565
24566 \begin_layout Plain Layout
24567
24568 \backslash
24569 cite
24570 \end_layout
24571
24572 \end_inset
24573
24574
24575 \begin_inset Flex Code
24576 status collapsed
24577
24578 \begin_layout Plain Layout
24579
24580 \backslash
24581 citet
24582 \end_layout
24583
24584 \end_inset
24585
24586 ) is to be displayed on the citation inset label, in the citation dialog,
24587  menu or XHTML output.
24588  \SpecialChar LyX
24589  defines such formats for the citation style variants it supports via 
24590 \family sans
24591 Document\SpecialChar menuseparator
24592 Setting\SpecialChar menuseparator
24593 Bibliography\SpecialChar ldots
24594
24595 \family default
24596  in specific 
24597 \begin_inset Flex Code
24598 status collapsed
24599
24600 \begin_layout Plain Layout
24601 *.citeengine
24602 \end_layout
24603
24604 \end_inset
24605
24606  files that are shipped with \SpecialChar LyX
24607  (see 
24608 \begin_inset CommandInset ref
24609 LatexCommand ref
24610 reference "subsec:Cite-Engine-Files"
24611 plural "false"
24612 caps "false"
24613 noprefix "false"
24614
24615 \end_inset
24616
24617 ).
24618 \end_layout
24619
24620 \begin_layout Standard
24621 The definitions use a simple language that allows Bib\SpecialChar TeX
24622  keys to be replaced
24623  with their values.
24624  Keys should be enclosed in 
24625 \begin_inset Flex Code
24626 status collapsed
24627
24628 \begin_layout Plain Layout
24629 %
24630 \end_layout
24631
24632 \end_inset
24633
24634  signs, e.g.: 
24635 \begin_inset Flex Code
24636 status collapsed
24637
24638 \begin_layout Plain Layout
24639 %author%
24640 \end_layout
24641
24642 \end_inset
24643
24644 .
24645  So a simple definition might look like this:
24646 \end_layout
24647
24648 \begin_layout LyX-Code
24649 misc %author%, 
24650 \begin_inset Quotes eld
24651 \end_inset
24652
24653 %title%
24654 \begin_inset Quotes erd
24655 \end_inset
24656
24657 .
24658 \end_layout
24659
24660 \begin_layout Standard
24661 This would print the author, followed by a comma, followed by the title,
24662  in quotes, followed by a period.
24663 \end_layout
24664
24665 \begin_layout Standard
24666 Of course, sometimes you may want to print a key only if it exists.
24667  This can be done by using a conditional construction, such as: 
24668 \begin_inset Flex Code
24669 status collapsed
24670
24671 \begin_layout Plain Layout
24672 {%volume%[[vol.
24673 \begin_inset space ~
24674 \end_inset
24675
24676 %volume%]]}
24677 \end_layout
24678
24679 \end_inset
24680
24681 .
24682  This says: If the 
24683 \begin_inset Flex Code
24684 status collapsed
24685
24686 \begin_layout Plain Layout
24687 volume
24688 \end_layout
24689
24690 \end_inset
24691
24692  key exists, then print 
24693 \begin_inset Quotes eld
24694 \end_inset
24695
24696 vol.
24697 \begin_inset space ~
24698 \end_inset
24699
24700
24701 \begin_inset Quotes erd
24702 \end_inset
24703
24704  followed by the volume key.
24705  It is also possible to have an else clause in the conditional, such as:
24706 \begin_inset Newline newline
24707 \end_inset
24708
24709
24710 \begin_inset Flex Code
24711 status collapsed
24712
24713 \begin_layout Plain Layout
24714 {%author%[[%author%]][[%editor%, ed.]]}
24715 \end_layout
24716
24717 \end_inset
24718
24719 .
24720 \begin_inset Newline newline
24721 \end_inset
24722
24723 Here, the 
24724 \begin_inset Flex Code
24725 status collapsed
24726
24727 \begin_layout Plain Layout
24728 author
24729 \end_layout
24730
24731 \end_inset
24732
24733  key is printed if it exists; otherwise, the editor key is printed, followed
24734  by 
24735 \begin_inset Quotes eld
24736 \end_inset
24737
24738 ,
24739 \begin_inset space ~
24740 \end_inset
24741
24742 ed.
24743 \begin_inset Quotes erd
24744 \end_inset
24745
24746  Note that the key is again enclosed in 
24747 \begin_inset Flex Code
24748 status collapsed
24749
24750 \begin_layout Plain Layout
24751 %
24752 \end_layout
24753
24754 \end_inset
24755
24756  signs; the entire conditional is enclosed in braces; and the if and else
24757  clauses are enclosed in double brackets, 
24758 \begin_inset Quotes eld
24759 \end_inset
24760
24761
24762 \begin_inset Flex Code
24763 status collapsed
24764
24765 \begin_layout Plain Layout
24766 [[
24767 \end_layout
24768
24769 \end_inset
24770
24771
24772 \begin_inset Quotes eld
24773 \end_inset
24774
24775  and 
24776 \begin_inset Quotes eld
24777 \end_inset
24778
24779
24780 \begin_inset Flex Code
24781 status collapsed
24782
24783 \begin_layout Plain Layout
24784 ]]
24785 \end_layout
24786
24787 \end_inset
24788
24789
24790 \begin_inset Quotes erd
24791 \end_inset
24792
24793 .
24794  There must be no space between any of these.
24795 \end_layout
24796
24797 \begin_layout Standard
24798 Next to the entry keys, there are some special keys that can be used for
24799  these conditionals:
24800 \end_layout
24801
24802 \begin_layout Itemize
24803 \begin_inset Flex Code
24804 status collapsed
24805
24806 \begin_layout Plain Layout
24807 {%dialog%[[true]][[false]]}
24808 \end_layout
24809
24810 \end_inset
24811
24812 : process the 
24813 \begin_inset Quotes eld
24814 \end_inset
24815
24816 true
24817 \begin_inset Quotes erd
24818 \end_inset
24819
24820  part for dialogs and menus, the 
24821 \begin_inset Quotes eld
24822 \end_inset
24823
24824 false
24825 \begin_inset Quotes erd
24826 \end_inset
24827
24828  part for other contexts (workarea, export)
24829 \end_layout
24830
24831 \begin_layout Itemize
24832 \begin_inset Flex Code
24833 status collapsed
24834
24835 \begin_layout Plain Layout
24836 {%export%[[true]][[false]]}
24837 \end_layout
24838
24839 \end_inset
24840
24841 : process the 
24842 \begin_inset Quotes eld
24843 \end_inset
24844
24845 true
24846 \begin_inset Quotes erd
24847 \end_inset
24848
24849  part for export and menus, the 
24850 \begin_inset Quotes eld
24851 \end_inset
24852
24853 false
24854 \begin_inset Quotes erd
24855 \end_inset
24856
24857  part for other contexts (workarea, dialog)
24858 \end_layout
24859
24860 \begin_layout Itemize
24861 \begin_inset Flex Code
24862 status collapsed
24863
24864 \begin_layout Plain Layout
24865 {%next%[[true]]}
24866 \end_layout
24867
24868 \end_inset
24869
24870 : process the 
24871 \begin_inset Quotes eld
24872 \end_inset
24873
24874 true
24875 \begin_inset Quotes erd
24876 \end_inset
24877
24878  part if another item follows (e.
24879 \begin_inset space \thinspace{}
24880 \end_inset
24881
24882 g., in a citation with multiple keys)
24883 \end_layout
24884
24885 \begin_layout Itemize
24886 \begin_inset Flex Code
24887 status collapsed
24888
24889 \begin_layout Plain Layout
24890 {%second%[[true]][[false]]}
24891 \end_layout
24892
24893 \end_inset
24894
24895 : process the 
24896 \begin_inset Quotes eld
24897 \end_inset
24898
24899 true
24900 \begin_inset Quotes erd
24901 \end_inset
24902
24903  if this is the second of multiple items, else the 
24904 \begin_inset Quotes eld
24905 \end_inset
24906
24907 false
24908 \begin_inset Quotes erd
24909 \end_inset
24910
24911  part
24912 \end_layout
24913
24914 \begin_layout Itemize
24915 \begin_inset Flex Code
24916 status collapsed
24917
24918 \begin_layout Plain Layout
24919 {%ifstar%[[true]][[false]]}
24920 \end_layout
24921
24922 \end_inset
24923
24924 : process the 
24925 \begin_inset Quotes eld
24926 \end_inset
24927
24928 true
24929 \begin_inset Quotes erd
24930 \end_inset
24931
24932  part for starred citation commands (such as 
24933 \begin_inset Flex Code
24934 status collapsed
24935
24936 \begin_layout Plain Layout
24937
24938 \backslash
24939 cite*
24940 \end_layout
24941
24942 \end_inset
24943
24944 ), the false part for unstarred
24945 \end_layout
24946
24947 \begin_layout Itemize
24948 \begin_inset Flex Code
24949 status collapsed
24950
24951 \begin_layout Plain Layout
24952 {%ifentrytype:<type>%[[true]][[false]]}
24953 \end_layout
24954
24955 \end_inset
24956
24957 : process the 
24958 \begin_inset Quotes eld
24959 \end_inset
24960
24961 true
24962 \begin_inset Quotes erd
24963 \end_inset
24964
24965  if the current entry type matches 
24966 \begin_inset Flex Code
24967 status collapsed
24968
24969 \begin_layout Plain Layout
24970 <type>
24971 \end_layout
24972
24973 \end_inset
24974
24975 , else the false part (e.g., in a citation definition: 
24976 \begin_inset Flex Code
24977 status collapsed
24978
24979 \begin_layout Plain Layout
24980 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24981 \end_layout
24982
24983 \end_inset
24984
24985 )
24986 \end_layout
24987
24988 \begin_layout Itemize
24989 \begin_inset Flex Code
24990 status collapsed
24991
24992 \begin_layout Plain Layout
24993 {%ifmultiple:<authortype>%[[true]][[false]]}
24994 \end_layout
24995
24996 \end_inset
24997
24998 : process the 
24999 \begin_inset Quotes eld
25000 \end_inset
25001
25002 true
25003 \begin_inset Quotes erd
25004 \end_inset
25005
25006  if the current author type (author, editor etc.) has multiple authors, else
25007  the false part (e.g., in a bibliography definition: 
25008 \begin_inset Flex Code
25009 status collapsed
25010
25011 \begin_layout Plain Layout
25012 {%ifmultiple:editor%[[eds.]][[ed.]]}
25013 \end_layout
25014
25015 \end_inset
25016
25017 )
25018 \end_layout
25019
25020 \begin_layout Itemize
25021 \begin_inset Flex Code
25022 status collapsed
25023
25024 \begin_layout Plain Layout
25025 {%ifqualified%[[true]][[false]]}
25026 \end_layout
25027
25028 \end_inset
25029
25030 : process the 
25031 \begin_inset Quotes eld
25032 \end_inset
25033
25034 true
25035 \begin_inset Quotes erd
25036 \end_inset
25037
25038  part if the current citation is a qualified citation list (a specific 
25039 \family sans
25040 Biblatex
25041 \family default
25042  format for multi-reference citations), the false part if this is not the
25043  case.
25044 \end_layout
25045
25046 \begin_layout Standard
25047 We said that 
25048 \begin_inset Flex Code
25049 status collapsed
25050
25051 \begin_layout Plain Layout
25052 %author%
25053 \end_layout
25054
25055 \end_inset
25056
25057  prints the author key as it is recorded in the bibliography file.
25058  This might not be what you want, since it will result in a string such
25059  as 
25060 \begin_inset Quotes eld
25061 \end_inset
25062
25063 Miller, Peter and Smith, Mary and White, Jane
25064 \begin_inset Quotes erd
25065 \end_inset
25066
25067  (since 
25068 \begin_inset Quotes eld
25069 \end_inset
25070
25071 and
25072 \begin_inset Quotes erd
25073 \end_inset
25074
25075  is used by Bib\SpecialChar TeX
25076  to delimit authors).
25077  \SpecialChar LyX
25078  therefore provides some methods to get properly formatted name lists (which
25079  will also get translated).
25080  The following keys are provided:
25081 \end_layout
25082
25083 \begin_layout Enumerate
25084 For name lists with pre- and surname, suitable for the main authors/editors
25085  of a bibliography item.
25086  The 
25087 \begin_inset Flex Code
25088 status collapsed
25089
25090 \begin_layout Plain Layout
25091 <nametype>
25092 \end_layout
25093
25094 \end_inset
25095
25096  part denotes the kind of list that is requested (e.g.
25097  
25098 \begin_inset Flex Code
25099 status collapsed
25100
25101 \begin_layout Plain Layout
25102 <nametype:author>
25103 \end_layout
25104
25105 \end_inset
25106
25107 ):
25108 \end_layout
25109
25110 \begin_deeper
25111 \begin_layout Itemize
25112 \begin_inset Flex Code
25113 status collapsed
25114
25115 \begin_layout Plain Layout
25116 %abbrvnames:<nametype>%
25117 \end_layout
25118
25119 \end_inset
25120
25121 : Provides a name list which is abbreviated (with 
25122 \begin_inset Quotes eld
25123 \end_inset
25124
25125 et al.
25126 \begin_inset Quotes erd
25127 \end_inset
25128
25129 ) when 
25130 \begin_inset Flex Code
25131 status collapsed
25132
25133 \begin_layout Plain Layout
25134 MaxCiteNames
25135 \end_layout
25136
25137 \end_inset
25138
25139  is reached.
25140 \end_layout
25141
25142 \begin_layout Itemize
25143 \begin_inset Flex Code
25144 status collapsed
25145
25146 \begin_layout Plain Layout
25147 %fullnames:<nametype>%
25148 \end_layout
25149
25150 \end_inset
25151
25152 : Provides a full name list (never abbreviated with 
25153 \begin_inset Quotes eld
25154 \end_inset
25155
25156 et al.
25157 \begin_inset Quotes erd
25158 \end_inset
25159
25160 ).
25161 \end_layout
25162
25163 \begin_layout Itemize
25164 \begin_inset Flex Code
25165 status collapsed
25166
25167 \begin_layout Plain Layout
25168 %forceabbrvnames:<nametype>%
25169 \end_layout
25170
25171 \end_inset
25172
25173 : Provides a name list which is always abbreviated (with 
25174 \begin_inset Quotes eld
25175 \end_inset
25176
25177 et al.
25178 \begin_inset Quotes erd
25179 \end_inset
25180
25181 ) irrespective of 
25182 \begin_inset Flex Code
25183 status collapsed
25184
25185 \begin_layout Plain Layout
25186 MaxCiteNames
25187 \end_layout
25188
25189 \end_inset
25190
25191 .
25192 \end_layout
25193
25194 \end_deeper
25195 \begin_layout Enumerate
25196 Alternative name lists with pre- and surname, if the order of pre- and surname
25197  inside the bibliography item differs (as in: 
25198 \begin_inset Quotes eld
25199 \end_inset
25200
25201 Miller, John: Some text, in: Mary Smith, ed.: A volume
25202 \begin_inset Quotes erd
25203 \end_inset
25204
25205 ):
25206 \end_layout
25207
25208 \begin_deeper
25209 \begin_layout Itemize
25210 \begin_inset Flex Code
25211 status collapsed
25212
25213 \begin_layout Plain Layout
25214 %abbrvbynames:<nametype>%
25215 \end_layout
25216
25217 \end_inset
25218
25219 : Provides a name list which is abbreviated (with 
25220 \begin_inset Quotes eld
25221 \end_inset
25222
25223 et al.
25224 \begin_inset Quotes erd
25225 \end_inset
25226
25227 ) when 
25228 \begin_inset Flex Code
25229 status collapsed
25230
25231 \begin_layout Plain Layout
25232 MaxCiteNames
25233 \end_layout
25234
25235 \end_inset
25236
25237  is reached.
25238 \end_layout
25239
25240 \begin_layout Itemize
25241 \begin_inset Flex Code
25242 status collapsed
25243
25244 \begin_layout Plain Layout
25245 %fullbynames:<nametype>%
25246 \end_layout
25247
25248 \end_inset
25249
25250 : Provides a full name list (never abbreviated with 
25251 \begin_inset Quotes eld
25252 \end_inset
25253
25254 et al.
25255 \begin_inset Quotes erd
25256 \end_inset
25257
25258 ).
25259 \end_layout
25260
25261 \begin_layout Itemize
25262 \begin_inset Flex Code
25263 status collapsed
25264
25265 \begin_layout Plain Layout
25266 %forceabbrvbynames:<nametype>%
25267 \end_layout
25268
25269 \end_inset
25270
25271 : Provides a name list which is always abbreviated (with 
25272 \begin_inset Quotes eld
25273 \end_inset
25274
25275 et al.
25276 \begin_inset Quotes erd
25277 \end_inset
25278
25279 ) irrespective of 
25280 \begin_inset Flex Code
25281 status collapsed
25282
25283 \begin_layout Plain Layout
25284 MaxCiteNames
25285 \end_layout
25286
25287 \end_inset
25288
25289 .
25290 \end_layout
25291
25292 \end_deeper
25293 \begin_layout Enumerate
25294 And finally name lists which consist of family names only, as used in author-yea
25295 r citation labels.
25296  These do not take a 
25297 \begin_inset Flex Code
25298 status collapsed
25299
25300 \begin_layout Plain Layout
25301 <nametype>
25302 \end_layout
25303
25304 \end_inset
25305
25306  part, but always return either an author list or, if this does not exist,
25307  an editor list (as common in author-year labels):
25308 \end_layout
25309
25310 \begin_deeper
25311 \begin_layout Itemize
25312 \begin_inset Flex Code
25313 status collapsed
25314
25315 \begin_layout Plain Layout
25316 %abbrvciteauthor%
25317 \end_layout
25318
25319 \end_inset
25320
25321 : Provides a name list which is abbreviated (with 
25322 \begin_inset Quotes eld
25323 \end_inset
25324
25325 et al.
25326 \begin_inset Quotes erd
25327 \end_inset
25328
25329 ) when 
25330 \begin_inset Flex Code
25331 status collapsed
25332
25333 \begin_layout Plain Layout
25334 MaxCiteNames
25335 \end_layout
25336
25337 \end_inset
25338
25339  is reached.
25340 \end_layout
25341
25342 \begin_layout Itemize
25343 \begin_inset Flex Code
25344 status collapsed
25345
25346 \begin_layout Plain Layout
25347 %fullciteauthor%
25348 \end_layout
25349
25350 \end_inset
25351
25352 : Provides a full name list (never abbreviated with 
25353 \begin_inset Quotes eld
25354 \end_inset
25355
25356 et al.
25357 \begin_inset Quotes erd
25358 \end_inset
25359
25360 ).
25361 \end_layout
25362
25363 \begin_layout Itemize
25364 \begin_inset Flex Code
25365 status collapsed
25366
25367 \begin_layout Plain Layout
25368 %forceabbrvciteauthor%
25369 \end_layout
25370
25371 \end_inset
25372
25373 : Provides a name list which is always abbreviated (with 
25374 \begin_inset Quotes eld
25375 \end_inset
25376
25377 et al.
25378 \begin_inset Quotes erd
25379 \end_inset
25380
25381 ) irrespective of 
25382 \begin_inset Flex Code
25383 status collapsed
25384
25385 \begin_layout Plain Layout
25386 MaxCiteNames
25387 \end_layout
25388
25389 \end_inset
25390
25391 .
25392 \end_layout
25393
25394 \end_deeper
25395 \begin_layout Standard
25396 The order of pre- and surname in the former two lists can be adjusted by
25397  these macros:
25398 \end_layout
25399
25400 \begin_layout Itemize
25401 \begin_inset Flex Code
25402 status collapsed
25403
25404 \begin_layout Plain Layout
25405 !firstnameform %surname%, %prename%
25406 \end_layout
25407
25408 \end_inset
25409
25410  (first author in lists of type 1)
25411 \end_layout
25412
25413 \begin_layout Itemize
25414 \begin_inset Flex Code
25415 status collapsed
25416
25417 \begin_layout Plain Layout
25418 !othernameform %surname%, %prename%
25419 \end_layout
25420
25421 \end_inset
25422
25423  (other authors in lists of type 1)
25424 \end_layout
25425
25426 \begin_layout Itemize
25427 \begin_inset Flex Code
25428 status collapsed
25429
25430 \begin_layout Plain Layout
25431 !firstbynameform %prename% %surname%
25432 \end_layout
25433
25434 \end_inset
25435
25436  (first author in lists of type 2)
25437 \end_layout
25438
25439 \begin_layout Itemize
25440 \begin_inset Flex Code
25441 status collapsed
25442
25443 \begin_layout Plain Layout
25444 !otherbynameform %prename% %surname%
25445 \end_layout
25446
25447 \end_inset
25448
25449  (other authors in lists of type 2)
25450 \end_layout
25451
25452 \begin_layout Standard
25453 This allows you to configure namings like 
25454 \begin_inset Quotes eld
25455 \end_inset
25456
25457 Miller, Peter and Mary Smith: \SpecialChar ldots
25458 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
25459
25460 \begin_inset Quotes erd
25461 \end_inset
25462
25463 .
25464 \end_layout
25465
25466 \begin_layout Standard
25467 There is one other piece of syntax available in definitions, which looks
25468  like this: 
25469 \begin_inset Flex Code
25470 status collapsed
25471
25472 \begin_layout Plain Layout
25473 {!<i>!}
25474 \end_layout
25475
25476 \end_inset
25477
25478 .
25479  This defines a piece of formatting information that is to be used when
25480  creating 
25481 \begin_inset Quotes eld
25482 \end_inset
25483
25484 rich text
25485 \begin_inset Quotes erd
25486 \end_inset
25487
25488 .
25489  Obviously, we do not want to output HTML tags when writing plain text,
25490  so they should be wrapped in 
25491 \begin_inset Quotes eld
25492 \end_inset
25493
25494 {!
25495 \begin_inset Quotes erd
25496 \end_inset
25497
25498  and 
25499 \begin_inset Quotes eld
25500 \end_inset
25501
25502 !}
25503 \begin_inset Quotes erd
25504 \end_inset
25505
25506 .
25507 \end_layout
25508
25509 \begin_layout Standard
25510 Two special sorts of definitions are also possible in a 
25511 \begin_inset Flex Code
25512 status collapsed
25513
25514 \begin_layout Plain Layout
25515 CiteFormat
25516 \end_layout
25517
25518 \end_inset
25519
25520  block.
25521  An example of the first would be:
25522 \end_layout
25523
25524 \begin_layout LyX-Code
25525 !quotetitle 
25526 \begin_inset Quotes eld
25527 \end_inset
25528
25529 %title%
25530 \begin_inset Quotes erd
25531 \end_inset
25532
25533
25534 \end_layout
25535
25536 \begin_layout Standard
25537 This is an abbreviation, or macro, and it can be used by treating it as
25538  if it were a key: 
25539 \begin_inset Flex Code
25540 status collapsed
25541
25542 \begin_layout Plain Layout
25543 %!quotetitle%
25544 \end_layout
25545
25546 \end_inset
25547
25548 .
25549  \SpecialChar LyX
25550  will treat 
25551 \begin_inset Flex Code
25552 status collapsed
25553
25554 \begin_layout Plain Layout
25555 %!quotetitle%
25556 \end_layout
25557
25558 \end_inset
25559
25560  exactly as it would treat its definition.
25561  So, let us issue the obvious 
25562 \emph on
25563 warning
25564 \emph default
25565 .
25566  Do not do this:
25567 \end_layout
25568
25569 \begin_layout LyX-Code
25570 !funfun %funfun%
25571 \end_layout
25572
25573 \begin_layout Standard
25574 or anything like it.
25575  \SpecialChar LyX
25576  shouldn't go into an infinite loop, but it may go into a long one before
25577  it gives up.
25578 \end_layout
25579
25580 \begin_layout Standard
25581 The second sort of special definition might look like this:
25582 \end_layout
25583
25584 \begin_layout LyX-Code
25585 B_pptext pp.
25586 \end_layout
25587
25588 \begin_layout Standard
25589 This defines a translatable piece of text, which allows relevant parts of
25590  the bibliography or citation to be translated.
25591  It can be included in a definition by treating it as a key: 
25592 \begin_inset Flex Code
25593 status collapsed
25594
25595 \begin_layout Plain Layout
25596 %B_pptext%
25597 \end_layout
25598
25599 \end_inset
25600
25601 .
25602  Note that there are two different translation paths: All definitions starting
25603  with 
25604 \begin_inset Flex Code
25605 status collapsed
25606
25607 \begin_layout Plain Layout
25608 B_
25609 \end_layout
25610
25611 \end_inset
25612
25613 , such as in the example above, will be translated to the currently active
25614  buffer language (so the translation will match the generated document).
25615  All definitions starting with underscore only will be translated to the
25616  GUI language.
25617  This is the proper translation for strings that only occur in the dialogs
25618  or on buttons, such as this one:
25619 \end_layout
25620
25621 \begin_layout LyX-Code
25622 _addtobib Add to bibliography only.
25623 \end_layout
25624
25625 \begin_layout Standard
25626 Several of these translatable strings are predefined in 
25627 \begin_inset Flex Code
25628 status collapsed
25629
25630 \begin_layout Plain Layout
25631 stdciteformats.inc
25632 \end_layout
25633
25634 \end_inset
25635
25636  and the diverse 
25637 \begin_inset Flex Code
25638 status collapsed
25639
25640 \begin_layout Plain Layout
25641 *.citeengine
25642 \end_layout
25643
25644 \end_inset
25645
25646  files.
25647  Note that these are not macros, in the sense just defined.
25648  They will not be expanded.
25649 \end_layout
25650
25651 \begin_layout Standard
25652 So here then is an example that uses several of these features:
25653 \begin_inset VSpace defskip
25654 \end_inset
25655
25656
25657 \end_layout
25658
25659 \begin_layout Standard
25660 \noindent
25661
25662 \family sans
25663 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
25664 \end_layout
25665
25666 \begin_layout Standard
25667 \begin_inset VSpace defskip
25668 \end_inset
25669
25670 This defines a macro that prints the author, followed by a comma, if the
25671  
25672 \begin_inset Flex Code
25673 status collapsed
25674
25675 \begin_layout Plain Layout
25676 author
25677 \end_layout
25678
25679 \end_inset
25680
25681  key is defined, or else prints the name of the editor, followed by the
25682  
25683 \begin_inset Flex Code
25684 status collapsed
25685
25686 \begin_layout Plain Layout
25687 B_edtext
25688 \end_layout
25689
25690 \end_inset
25691
25692  or its translation (it is by default 
25693 \begin_inset Quotes eld
25694 \end_inset
25695
25696 ed.
25697 \begin_inset Quotes erd
25698 \end_inset
25699
25700 ), if the 
25701 \begin_inset Flex Code
25702 status collapsed
25703
25704 \begin_layout Plain Layout
25705 editor
25706 \end_layout
25707
25708 \end_inset
25709
25710  key is defined.
25711  Note that this is in fact defined in 
25712 \begin_inset Flex Code
25713 status collapsed
25714
25715 \begin_layout Plain Layout
25716 stdciteformats.inc
25717 \end_layout
25718
25719 \end_inset
25720
25721 , so you can use it in your own definitions, or re-definitions, if you load
25722  that file first.
25723 \end_layout
25724
25725 \begin_layout Section
25726 \begin_inset CommandInset label
25727 LatexCommand label
25728 name "sec:Tags-for-XHTML"
25729
25730 \end_inset
25731
25732 Tags for XHTML output
25733 \end_layout
25734
25735 \begin_layout Standard
25736 As with \SpecialChar LaTeX
25737  or DocBook, the format of \SpecialChar LyX
25738 's XHTML output is also controlled by
25739  layout information.
25740  In general, \SpecialChar LyX
25741  provides sensible defaults and, as mentioned earlier, it will
25742  even construct default CSS style rules from the other layout tags.
25743  For example, \SpecialChar LyX
25744  will attempt to use the information provided in the 
25745 \begin_inset Flex Code
25746 status collapsed
25747
25748 \begin_layout Plain Layout
25749 Font
25750 \end_layout
25751
25752 \end_inset
25753
25754  declaration for the Chapter style to write CSS that will appropriately
25755  format chapter headings.
25756 \end_layout
25757
25758 \begin_layout Standard
25759 In many cases, then, you may not have to do anything at all to get acceptable
25760  XHTML output for your own environments, custom insets, and so forth.
25761  But in some cases you will, and so \SpecialChar LyX
25762  provides a number of layout tags that
25763  can be used to customize the XHTML and CSS that are generated.
25764 \end_layout
25765
25766 \begin_layout Standard
25767 Note that there are two tags, 
25768 \begin_inset Flex Code
25769 status collapsed
25770
25771 \begin_layout Plain Layout
25772 HTMLPreamble
25773 \end_layout
25774
25775 \end_inset
25776
25777  and 
25778 \begin_inset Flex Code
25779 status collapsed
25780
25781 \begin_layout Plain Layout
25782 AddToHTMLPreamble
25783 \end_layout
25784
25785 \end_inset
25786
25787  that may appear outside style and inset declarations.
25788  See 
25789 \begin_inset CommandInset ref
25790 LatexCommand ref
25791 reference "subsec:General-text-class"
25792
25793 \end_inset
25794
25795  for details on these.
25796 \end_layout
25797
25798 \begin_layout Subsection
25799 \begin_inset CommandInset label
25800 LatexCommand label
25801 name "subsec:Paragraph-Style-XHTML"
25802
25803 \end_inset
25804
25805 Paragraph styles
25806 \end_layout
25807
25808 \begin_layout Standard
25809 The sort of XHTML \SpecialChar LyX
25810  outputs for a paragraph depends upon whether we are dealing
25811  with a normal paragraph, a command, or an environment, where this is itself
25812  determined by the contents of the corresponding 
25813 \begin_inset Flex Code
25814 status collapsed
25815
25816 \begin_layout Plain Layout
25817 \SpecialChar LaTeX
25818 Type
25819 \end_layout
25820
25821 \end_inset
25822
25823  tag.
25824  
25825 \end_layout
25826
25827 \begin_layout Standard
25828 For a command or normal paragraph, the output XHTML has the following form:
25829 \end_layout
25830
25831 \begin_layout LyX-Code
25832
25833 \family sans
25834 <tag attr=
25835 \begin_inset Quotes erd
25836 \end_inset
25837
25838 value
25839 \begin_inset Quotes erd
25840 \end_inset
25841
25842 >
25843 \end_layout
25844
25845 \begin_layout LyX-Code
25846
25847 \family sans
25848 <labeltag attr=
25849 \begin_inset Quotes erd
25850 \end_inset
25851
25852 value
25853 \begin_inset Quotes erd
25854 \end_inset
25855
25856 >Label</labeltag>
25857 \end_layout
25858
25859 \begin_layout LyX-Code
25860
25861 \family sans
25862 Contents of the paragraph.
25863 \end_layout
25864
25865 \begin_layout LyX-Code
25866
25867 \family sans
25868 </tag>
25869 \end_layout
25870
25871 \begin_layout Standard
25872 The label tags are of course omitted if the paragraph does not have a label.
25873 \end_layout
25874
25875 \begin_layout Standard
25876 For an environment that is not some sort of list, the XHTML takes this form:
25877 \end_layout
25878
25879 \begin_layout LyX-Code
25880
25881 \family sans
25882 <tag attr=
25883 \begin_inset Quotes erd
25884 \end_inset
25885
25886 value
25887 \begin_inset Quotes erd
25888 \end_inset
25889
25890 >
25891 \end_layout
25892
25893 \begin_layout LyX-Code
25894
25895 \family sans
25896 <itemtag attr=
25897 \begin_inset Quotes erd
25898 \end_inset
25899
25900 value
25901 \begin_inset Quotes erd
25902 \end_inset
25903
25904 ><labeltag attr=
25905 \begin_inset Quotes erd
25906 \end_inset
25907
25908 value
25909 \begin_inset Quotes erd
25910 \end_inset
25911
25912 >Environment Label</labeltag>First paragraph.</itemtag>
25913 \end_layout
25914
25915 \begin_layout LyX-Code
25916
25917 \family sans
25918 <itemtag>Second paragraph.</itemtag>
25919 \end_layout
25920
25921 \begin_layout LyX-Code
25922
25923 \family sans
25924 </tag>
25925 \end_layout
25926
25927 \begin_layout Standard
25928 Note that the label is output only for the first paragraph, as it should
25929  be for a theorem, for example.
25930  
25931 \end_layout
25932
25933 \begin_layout Standard
25934 For a list, we have one of these forms:
25935 \end_layout
25936
25937 \begin_layout LyX-Code
25938
25939 \family sans
25940 <tag attr=
25941 \begin_inset Quotes erd
25942 \end_inset
25943
25944 value
25945 \begin_inset Quotes erd
25946 \end_inset
25947
25948 >
25949 \end_layout
25950
25951 \begin_layout LyX-Code
25952
25953 \family sans
25954 <itemtag attr=
25955 \begin_inset Quotes erd
25956 \end_inset
25957
25958 value
25959 \begin_inset Quotes erd
25960 \end_inset
25961
25962 ><labeltag attr=
25963 \begin_inset Quotes erd
25964 \end_inset
25965
25966 value
25967 \begin_inset Quotes erd
25968 \end_inset
25969
25970 >List Label</labeltag>First item.</itemtag>
25971 \end_layout
25972
25973 \begin_layout LyX-Code
25974
25975 \family sans
25976 <itemtag attr=
25977 \begin_inset Quotes erd
25978 \end_inset
25979
25980 value
25981 \begin_inset Quotes erd
25982 \end_inset
25983
25984 ><labeltag attr=
25985 \begin_inset Quotes erd
25986 \end_inset
25987
25988 value
25989 \begin_inset Quotes erd
25990 \end_inset
25991
25992 >List Label</labeltag>Second item.</itemtag>
25993 \end_layout
25994
25995 \begin_layout LyX-Code
25996
25997 \family sans
25998 </tag>
25999 \end_layout
26000
26001 \begin_layout LyX-Code
26002
26003 \end_layout
26004
26005 \begin_layout LyX-Code
26006
26007 \family sans
26008 <tag attr=
26009 \begin_inset Quotes erd
26010 \end_inset
26011
26012 value
26013 \begin_inset Quotes erd
26014 \end_inset
26015
26016 >
26017 \end_layout
26018
26019 \begin_layout LyX-Code
26020
26021 \family sans
26022 <labeltag attr=
26023 \begin_inset Quotes erd
26024 \end_inset
26025
26026 value
26027 \begin_inset Quotes erd
26028 \end_inset
26029
26030 >List Label</labeltag><itemtag attr=
26031 \begin_inset Quotes erd
26032 \end_inset
26033
26034 value
26035 \begin_inset Quotes erd
26036 \end_inset
26037
26038 >First item.</itemtag>
26039 \end_layout
26040
26041 \begin_layout LyX-Code
26042
26043 \family sans
26044 <labeltag attr=
26045 \begin_inset Quotes erd
26046 \end_inset
26047
26048 value
26049 \begin_inset Quotes erd
26050 \end_inset
26051
26052 >List Label</labeltag><itemtag attr=
26053 \begin_inset Quotes erd
26054 \end_inset
26055
26056 value
26057 \begin_inset Quotes erd
26058 \end_inset
26059
26060 >Second item.</itemtag>
26061 \end_layout
26062
26063 \begin_layout LyX-Code
26064
26065 \family sans
26066 </tag>
26067 \end_layout
26068
26069 \begin_layout Standard
26070 Note the different orders of 
26071 \begin_inset Flex Code
26072 status collapsed
26073
26074 \begin_layout Plain Layout
26075 labeltag
26076 \end_layout
26077
26078 \end_inset
26079
26080  and 
26081 \begin_inset Flex Code
26082 status collapsed
26083
26084 \begin_layout Plain Layout
26085 itemtag
26086 \end_layout
26087
26088 \end_inset
26089
26090 .
26091  Which order we get depends upon the setting of 
26092 \begin_inset Flex Code
26093 status collapsed
26094
26095 \begin_layout Plain Layout
26096 HTMLLabelFirst
26097 \end_layout
26098
26099 \end_inset
26100
26101 : If 
26102 \begin_inset Flex Code
26103 status collapsed
26104
26105 \begin_layout Plain Layout
26106 HTMLLabelFirst
26107 \end_layout
26108
26109 \end_inset
26110
26111  is false (the default), you get the first of these, with the label within
26112  the item; if true, you get the second, with the label outside the item.
26113 \end_layout
26114
26115 \begin_layout Standard
26116 The specific tags and attributes output for each paragraph type can be controlle
26117 d by means of the layout tags we are about to describe.
26118  As mentioned earlier, however, \SpecialChar LyX
26119  uses sensible defaults for many of these,
26120  so you often may not need to do very much to get good XHTML output.
26121  Think of the available tags as there so you can tweak things to your liking.
26122 \end_layout
26123
26124 \begin_layout Description
26125 \begin_inset Flex Code
26126 status collapsed
26127
26128 \begin_layout Plain Layout
26129 HTMLAttr
26130 \end_layout
26131
26132 \end_inset
26133
26134  [
26135 \begin_inset Flex Code
26136 status collapsed
26137
26138 \begin_layout Plain Layout
26139 string
26140 \end_layout
26141
26142 \end_inset
26143
26144 ] Specifies attribute information to be output with the main tag.
26145  For example, 
26146 \begin_inset Quotes eld
26147 \end_inset
26148
26149
26150 \begin_inset Flex Code
26151 status collapsed
26152
26153 \begin_layout Plain Layout
26154 class=`mydiv'
26155 \end_layout
26156
26157 \end_inset
26158
26159
26160 \begin_inset Quotes erd
26161 \end_inset
26162
26163 .
26164  By default, \SpecialChar LyX
26165  will output 
26166 \begin_inset Quotes eld
26167 \end_inset
26168
26169
26170 \begin_inset Flex Code
26171 status collapsed
26172
26173 \begin_layout Plain Layout
26174 class=`layoutname'
26175 \end_layout
26176
26177 \end_inset
26178
26179
26180 \begin_inset Quotes erd
26181 \end_inset
26182
26183 , where 
26184 \begin_inset Flex Code
26185 status collapsed
26186
26187 \begin_layout Plain Layout
26188 layoutname
26189 \end_layout
26190
26191 \end_inset
26192
26193  is the \SpecialChar LyX
26194  name of the layout, made lowercase, for example: chapter.
26195  This should 
26196 \emph on
26197 not
26198 \emph default
26199  contain any style information.
26200  Use 
26201 \begin_inset Flex Code
26202 status collapsed
26203
26204 \begin_layout Plain Layout
26205 HTMLStyle
26206 \end_layout
26207
26208 \end_inset
26209
26210  for that purpose.
26211 \end_layout
26212
26213 \begin_layout Description
26214 \begin_inset Flex Code
26215 status collapsed
26216
26217 \begin_layout Plain Layout
26218 HTMLForceCSS
26219 \end_layout
26220
26221 \end_inset
26222
26223  [
26224 \begin_inset Flex Code
26225 status collapsed
26226
26227 \begin_layout Plain Layout
26228
26229 \emph on
26230 0
26231 \emph default
26232 ,1
26233 \end_layout
26234
26235 \end_inset
26236
26237 ] Whether to output the default CSS information \SpecialChar LyX
26238  generates for this layout,
26239  even if additional information is explicitly provided via 
26240 \begin_inset Flex Code
26241 status collapsed
26242
26243 \begin_layout Plain Layout
26244 HTMLStyle
26245 \end_layout
26246
26247 \end_inset
26248
26249 .
26250  Setting this to 
26251 \begin_inset Flex Code
26252 status collapsed
26253
26254 \begin_layout Plain Layout
26255 1
26256 \end_layout
26257
26258 \end_inset
26259
26260  allows you to alter or augment the generated CSS, rather than to override
26261  it completely.
26262  Default is 
26263 \begin_inset Flex Code
26264 status collapsed
26265
26266 \begin_layout Plain Layout
26267 0
26268 \end_layout
26269
26270 \end_inset
26271
26272 .
26273 \end_layout
26274
26275 \begin_layout Description
26276 \begin_inset Flex Code
26277 status collapsed
26278
26279 \begin_layout Plain Layout
26280 HTMLItem
26281 \end_layout
26282
26283 \end_inset
26284
26285  [
26286 \begin_inset Flex Code
26287 status collapsed
26288
26289 \begin_layout Plain Layout
26290 string
26291 \end_layout
26292
26293 \end_inset
26294
26295 ] The tag to be used for individual paragraphs of environments, replacing
26296  
26297 \begin_inset Flex Code
26298 status collapsed
26299
26300 \begin_layout Plain Layout
26301 itemtag
26302 \end_layout
26303
26304 \end_inset
26305
26306  in the examples above.
26307  Defaults to 
26308 \begin_inset Flex Code
26309 status collapsed
26310
26311 \begin_layout Plain Layout
26312 div
26313 \end_layout
26314
26315 \end_inset
26316
26317 .
26318 \end_layout
26319
26320 \begin_layout Description
26321 \begin_inset Flex Code
26322 status collapsed
26323
26324 \begin_layout Plain Layout
26325 HTMLItemAttr
26326 \end_layout
26327
26328 \end_inset
26329
26330  [
26331 \begin_inset Flex Code
26332 status collapsed
26333
26334 \begin_layout Plain Layout
26335 string
26336 \end_layout
26337
26338 \end_inset
26339
26340 ] Attributes for the item tag.
26341  Defaults to
26342 \begin_inset Newline newline
26343 \end_inset
26344
26345
26346 \begin_inset Quotes eld
26347 \end_inset
26348
26349
26350 \begin_inset Flex Code
26351 status collapsed
26352
26353 \begin_layout Plain Layout
26354 class=`layoutname_item'
26355 \end_layout
26356
26357 \end_inset
26358
26359
26360 \begin_inset Quotes erd
26361 \end_inset
26362
26363 .
26364  This should 
26365 \emph on
26366 not
26367 \emph default
26368  contain any style information.
26369  Use 
26370 \begin_inset Flex Code
26371 status collapsed
26372
26373 \begin_layout Plain Layout
26374 HTMLStyle
26375 \end_layout
26376
26377 \end_inset
26378
26379  for that purpose.
26380 \end_layout
26381
26382 \begin_layout Description
26383 \begin_inset Flex Code
26384 status collapsed
26385
26386 \begin_layout Plain Layout
26387 HTMLLabel
26388 \end_layout
26389
26390 \end_inset
26391
26392  [
26393 \begin_inset Flex Code
26394 status collapsed
26395
26396 \begin_layout Plain Layout
26397 string
26398 \end_layout
26399
26400 \end_inset
26401
26402 ] The tag to be used for paragraph and item labels, replacing 
26403 \begin_inset Flex Code
26404 status collapsed
26405
26406 \begin_layout Plain Layout
26407 labeltag
26408 \end_layout
26409
26410 \end_inset
26411
26412  in the examples above.
26413  Defaults to 
26414 \begin_inset Flex Code
26415 status collapsed
26416
26417 \begin_layout Plain Layout
26418 span
26419 \end_layout
26420
26421 \end_inset
26422
26423 , unless 
26424 \begin_inset Flex Code
26425 status collapsed
26426
26427 \begin_layout Plain Layout
26428 LabelType
26429 \end_layout
26430
26431 \end_inset
26432
26433  is either 
26434 \begin_inset Flex Code
26435 status collapsed
26436
26437 \begin_layout Plain Layout
26438 Top_Environment
26439 \end_layout
26440
26441 \end_inset
26442
26443  or 
26444 \begin_inset Flex Code
26445 status collapsed
26446
26447 \begin_layout Plain Layout
26448 Centered_Top_Environment
26449 \end_layout
26450
26451 \end_inset
26452
26453 , in which case it defaults to 
26454 \begin_inset Flex Code
26455 status collapsed
26456
26457 \begin_layout Plain Layout
26458 div
26459 \end_layout
26460
26461 \end_inset
26462
26463 .
26464 \end_layout
26465
26466 \begin_layout Description
26467 \begin_inset Flex Code
26468 status collapsed
26469
26470 \begin_layout Plain Layout
26471 HTMLLabelAttr
26472 \end_layout
26473
26474 \end_inset
26475
26476  [
26477 \begin_inset Flex Code
26478 status collapsed
26479
26480 \begin_layout Plain Layout
26481 string
26482 \end_layout
26483
26484 \end_inset
26485
26486 ] Attributes for the label tag.
26487  Defaults to
26488 \begin_inset Newline newline
26489 \end_inset
26490
26491
26492 \begin_inset Quotes eld
26493 \end_inset
26494
26495
26496 \begin_inset Flex Code
26497 status collapsed
26498
26499 \begin_layout Plain Layout
26500 class=`layoutname_label'
26501 \end_layout
26502
26503 \end_inset
26504
26505
26506 \begin_inset Quotes erd
26507 \end_inset
26508
26509 .
26510  This should 
26511 \emph on
26512 not
26513 \emph default
26514  contain any style information.
26515  Use 
26516 \begin_inset Flex Code
26517 status collapsed
26518
26519 \begin_layout Plain Layout
26520 HTMLStyle
26521 \end_layout
26522
26523 \end_inset
26524
26525  for that purpose.
26526 \end_layout
26527
26528 \begin_layout Description
26529 \begin_inset Flex Code
26530 status collapsed
26531
26532 \begin_layout Plain Layout
26533 HTMLLabelFirst
26534 \end_layout
26535
26536 \end_inset
26537
26538  [
26539 \begin_inset Flex Code
26540 status collapsed
26541
26542 \begin_layout Plain Layout
26543
26544 \emph on
26545 0
26546 \emph default
26547 ,1
26548 \end_layout
26549
26550 \end_inset
26551
26552 ] Meaningful only for list-like environments, this tag controls whether
26553  the label tag is output before or inside the item tag.
26554  This is used, for example, in the description environment, where we want
26555  `
26556 \begin_inset Flex Code
26557 status collapsed
26558
26559 \begin_layout Plain Layout
26560 <dt>\SpecialChar ldots
26561 </dt><dd>\SpecialChar ldots
26562 </dd>
26563 \end_layout
26564
26565 \end_inset
26566
26567 .
26568  Default is 
26569 \begin_inset Flex Code
26570 status collapsed
26571
26572 \begin_layout Plain Layout
26573 0
26574 \end_layout
26575
26576 \end_inset
26577
26578 : The label tag is output inside the item tag.
26579 \end_layout
26580
26581 \begin_layout Description
26582 \begin_inset Flex Code
26583 status collapsed
26584
26585 \begin_layout Plain Layout
26586 HTMLPreamble
26587 \end_layout
26588
26589 \end_inset
26590
26591  Information to be output in the 
26592 \begin_inset Flex Code
26593 status collapsed
26594
26595 \begin_layout Plain Layout
26596 <head>
26597 \end_layout
26598
26599 \end_inset
26600
26601  section when this style is used.
26602  This might, for example, be used to include a 
26603 \begin_inset Flex Code
26604 status collapsed
26605
26606 \begin_layout Plain Layout
26607 <script>
26608 \end_layout
26609
26610 \end_inset
26611
26612  block defining an 
26613 \begin_inset Flex Code
26614 status collapsed
26615
26616 \begin_layout Plain Layout
26617 onclick
26618 \end_layout
26619
26620 \end_inset
26621
26622  handler.
26623 \end_layout
26624
26625 \begin_layout Description
26626 \begin_inset Flex Code
26627 status collapsed
26628
26629 \begin_layout Plain Layout
26630 HTMLStyle
26631 \end_layout
26632
26633 \end_inset
26634
26635  CSS style information to be included when this style is used.
26636  Note that this will automatically be wrapped in a layout-generated 
26637 \begin_inset Flex Code
26638 status collapsed
26639
26640 \begin_layout Plain Layout
26641 <style>
26642 \end_layout
26643
26644 \end_inset
26645
26646  block, so only the CSS itself need be included.
26647  Must end with 
26648 \begin_inset Flex Code
26649 status collapsed
26650
26651 \begin_layout Plain Layout
26652 EndHTMLStyle
26653 \end_layout
26654
26655 \end_inset
26656
26657 .
26658 \end_layout
26659
26660 \begin_layout Description
26661 \begin_inset Flex Code
26662 status collapsed
26663
26664 \begin_layout Plain Layout
26665 HTMLTag
26666 \end_layout
26667
26668 \end_inset
26669
26670  [
26671 \begin_inset Flex Code
26672 status collapsed
26673
26674 \begin_layout Plain Layout
26675 string
26676 \end_layout
26677
26678 \end_inset
26679
26680 ] The tag to be used for the main label, replacing 
26681 \begin_inset Flex Code
26682 status collapsed
26683
26684 \begin_layout Plain Layout
26685 tag
26686 \end_layout
26687
26688 \end_inset
26689
26690  in the examples above.
26691  Defaults to 
26692 \begin_inset Flex Code
26693 status collapsed
26694
26695 \begin_layout Plain Layout
26696 div
26697 \end_layout
26698
26699 \end_inset
26700
26701 .
26702 \end_layout
26703
26704 \begin_layout Description
26705 \begin_inset Flex Code
26706 status collapsed
26707
26708 \begin_layout Plain Layout
26709 HTMLTitle
26710 \end_layout
26711
26712 \end_inset
26713
26714  [
26715 \begin_inset Flex Code
26716 status collapsed
26717
26718 \begin_layout Plain Layout
26719
26720 \emph on
26721 0
26722 \emph default
26723 ,1
26724 \end_layout
26725
26726 \end_inset
26727
26728 ] Marks this style as the one to be used to generate the 
26729 \begin_inset Flex Code
26730 status collapsed
26731
26732 \begin_layout Plain Layout
26733 <title>
26734 \end_layout
26735
26736 \end_inset
26737
26738  tag for the XHTML file.
26739  By default, it is false.
26740  The 
26741 \begin_inset Flex Code
26742 status collapsed
26743
26744 \begin_layout Plain Layout
26745 stdtitle.inc
26746 \end_layout
26747
26748 \end_inset
26749
26750  file sets it to true for the 
26751 \begin_inset Flex Code
26752 status collapsed
26753
26754 \begin_layout Plain Layout
26755 title
26756 \end_layout
26757
26758 \end_inset
26759
26760  environment.
26761  
26762 \end_layout
26763
26764 \begin_layout Subsection
26765 InsetLayout XHTML
26766 \end_layout
26767
26768 \begin_layout Standard
26769 The XHTML output of insets can also be controlled by information in layout
26770  files.
26771 \begin_inset Foot
26772 status collapsed
26773
26774 \begin_layout Plain Layout
26775 At present, this is true only for 
26776 \begin_inset Quotes eld
26777 \end_inset
26778
26779 text
26780 \begin_inset Quotes erd
26781 \end_inset
26782
26783  insets (insets you can type into) and is not true for 
26784 \begin_inset Quotes eld
26785 \end_inset
26786
26787 command
26788 \begin_inset Quotes erd
26789 \end_inset
26790
26791  insets (insets that are associated with dialog boxes).
26792 \end_layout
26793
26794 \end_inset
26795
26796  Here, too, \SpecialChar LyX
26797  tries to provide sensible defaults, and it constructs default
26798  CSS style rules.
26799  But everything can be customized.
26800 \end_layout
26801
26802 \begin_layout Standard
26803 The XHTML \SpecialChar LyX
26804  outputs for an inset has the following form:
26805 \end_layout
26806
26807 \begin_layout LyX-Code
26808 <tag attr=
26809 \begin_inset Quotes erd
26810 \end_inset
26811
26812 value
26813 \begin_inset Quotes erd
26814 \end_inset
26815
26816 >
26817 \end_layout
26818
26819 \begin_layout LyX-Code
26820 <labeltag>Label</labeltag>
26821 \end_layout
26822
26823 \begin_layout LyX-Code
26824 <innertag attr=
26825 \begin_inset Quotes erd
26826 \end_inset
26827
26828 value
26829 \begin_inset Quotes erd
26830 \end_inset
26831
26832 >Contents of the inset.</innertag>
26833 \end_layout
26834
26835 \begin_layout LyX-Code
26836 </tag>
26837 \end_layout
26838
26839 \begin_layout Standard
26840 If the inset permits multiple paragraphs—that is, if 
26841 \begin_inset Flex Code
26842 status collapsed
26843
26844 \begin_layout Plain Layout
26845 MultiPar
26846 \end_layout
26847
26848 \end_inset
26849
26850  is true—then the contents of the inset will itself be output as paragraphs
26851  formatted according to the styles used for those paragraphs (standard,
26852  quote, and the like).
26853  The label tag is of course omitted if the paragraph does not have a label
26854  and, at present, is always 
26855 \begin_inset Flex Code
26856 status collapsed
26857
26858 \begin_layout Plain Layout
26859 span
26860 \end_layout
26861
26862 \end_inset
26863
26864 .
26865  The inner tag is optional and, by default, does not appear.
26866 \end_layout
26867
26868 \begin_layout Standard
26869 The specific tags and attributes output for each inset can be controlled
26870  by means of the following layout tags.
26871 \end_layout
26872
26873 \begin_layout Description
26874 \begin_inset Flex Code
26875 status collapsed
26876
26877 \begin_layout Plain Layout
26878 HTMLAttr
26879 \end_layout
26880
26881 \end_inset
26882
26883  [
26884 \begin_inset Flex Code
26885 status collapsed
26886
26887 \begin_layout Plain Layout
26888 string
26889 \end_layout
26890
26891 \end_inset
26892
26893 ] Specifies attribute information to be output with the main tag.
26894  For example, 
26895 \begin_inset Quotes eld
26896 \end_inset
26897
26898
26899 \begin_inset Flex Code
26900 status collapsed
26901
26902 \begin_layout Plain Layout
26903 class=`myinset' onclick=`\SpecialChar ldots
26904 '
26905 \end_layout
26906
26907 \end_inset
26908
26909
26910 \begin_inset Quotes erd
26911 \end_inset
26912
26913 .
26914  By default, \SpecialChar LyX
26915  will output 
26916 \begin_inset Quotes eld
26917 \end_inset
26918
26919
26920 \begin_inset Flex Code
26921 status collapsed
26922
26923 \begin_layout Plain Layout
26924 class=`insetname'
26925 \end_layout
26926
26927 \end_inset
26928
26929
26930 \begin_inset Quotes erd
26931 \end_inset
26932
26933 , where 
26934 \begin_inset Flex Code
26935 status collapsed
26936
26937 \begin_layout Plain Layout
26938 insetname
26939 \end_layout
26940
26941 \end_inset
26942
26943  is the \SpecialChar LyX
26944  name of the inset, made lowercase and with non-alphanumeric characters
26945  converted to underscores, for example: footnote.
26946 \end_layout
26947
26948 \begin_layout Description
26949 \begin_inset Flex Code
26950 status collapsed
26951
26952 \begin_layout Plain Layout
26953 HTMLForceCSS
26954 \end_layout
26955
26956 \end_inset
26957
26958  [
26959 \begin_inset Flex Code
26960 status collapsed
26961
26962 \begin_layout Plain Layout
26963
26964 \emph on
26965 0
26966 \emph default
26967 ,1
26968 \end_layout
26969
26970 \end_inset
26971
26972 ] Whether to output the default CSS information \SpecialChar LyX
26973  generates for this layout,
26974  even if additional information is explicitly provided via 
26975 \begin_inset Flex Code
26976 status collapsed
26977
26978 \begin_layout Plain Layout
26979 HTMLStyle
26980 \end_layout
26981
26982 \end_inset
26983
26984 .
26985  Setting this to 
26986 \begin_inset Flex Code
26987 status collapsed
26988
26989 \begin_layout Plain Layout
26990 1
26991 \end_layout
26992
26993 \end_inset
26994
26995  allows you to alter or augment the generated CSS, rather than to override
26996  it completely.
26997  Default is 0.
26998 \end_layout
26999
27000 \begin_layout Description
27001 \begin_inset Flex Code
27002 status collapsed
27003
27004 \begin_layout Plain Layout
27005 HTMLInnerAttr
27006 \end_layout
27007
27008 \end_inset
27009
27010  [
27011 \begin_inset Flex Code
27012 status collapsed
27013
27014 \begin_layout Plain Layout
27015 string
27016 \end_layout
27017
27018 \end_inset
27019
27020 ] Attributes for the inner tag.
27021  Defaults to
27022 \begin_inset Newline newline
27023 \end_inset
27024
27025
27026 \begin_inset Quotes eld
27027 \end_inset
27028
27029
27030 \begin_inset Flex Code
27031 status collapsed
27032
27033 \begin_layout Plain Layout
27034 class=`insetname_inner'
27035 \end_layout
27036
27037 \end_inset
27038
27039
27040 \begin_inset Quotes erd
27041 \end_inset
27042
27043 .
27044 \end_layout
27045
27046 \begin_layout Description
27047 \begin_inset Flex Code
27048 status collapsed
27049
27050 \begin_layout Plain Layout
27051 HTMLInnerTag
27052 \end_layout
27053
27054 \end_inset
27055
27056  [
27057 \begin_inset Flex Code
27058 status collapsed
27059
27060 \begin_layout Plain Layout
27061 string
27062 \end_layout
27063
27064 \end_inset
27065
27066 ] The inner tag, replacing 
27067 \begin_inset Flex Code
27068 status collapsed
27069
27070 \begin_layout Plain Layout
27071 innertag
27072 \end_layout
27073
27074 \end_inset
27075
27076  in the examples above.
27077  By default, there is none.
27078 \end_layout
27079
27080 \begin_layout Description
27081 \begin_inset Flex Code
27082 status collapsed
27083
27084 \begin_layout Plain Layout
27085 HTMLIsBlock
27086 \end_layout
27087
27088 \end_inset
27089
27090  [
27091 \begin_inset Flex Code
27092 status collapsed
27093
27094 \begin_layout Plain Layout
27095 0,
27096 \emph on
27097 1
27098 \end_layout
27099
27100 \end_inset
27101
27102 ] Whether this inset represents a standalone block of text (such as a footnote)
27103  or instead represents material that is included in the surrounding text
27104  (such as a branch).
27105  Defaults to 1.
27106 \end_layout
27107
27108 \begin_layout Description
27109 \begin_inset Flex Code
27110 status collapsed
27111
27112 \begin_layout Plain Layout
27113 HTMLLabel
27114 \end_layout
27115
27116 \end_inset
27117
27118  [
27119 \begin_inset Flex Code
27120 status collapsed
27121
27122 \begin_layout Plain Layout
27123 string
27124 \end_layout
27125
27126 \end_inset
27127
27128 ] A label for this inset, possibly including a reference to a counter.
27129  For example, for footnote, it might be: 
27130 \begin_inset Flex Code
27131 status collapsed
27132
27133 \begin_layout Plain Layout
27134
27135 \backslash
27136 arabic{footnote}
27137 \end_layout
27138
27139 \end_inset
27140
27141 .
27142  This is optional, and there is no default.
27143 \end_layout
27144
27145 \begin_layout Description
27146 \begin_inset Flex Code
27147 status collapsed
27148
27149 \begin_layout Plain Layout
27150 HTMLPreamble
27151 \end_layout
27152
27153 \end_inset
27154
27155  Information to be output in the 
27156 \begin_inset Flex Code
27157 status collapsed
27158
27159 \begin_layout Plain Layout
27160 <head>
27161 \end_layout
27162
27163 \end_inset
27164
27165  section when this style is used.
27166  This might, for example, be used to include a 
27167 \begin_inset Flex Code
27168 status collapsed
27169
27170 \begin_layout Plain Layout
27171 <script>
27172 \end_layout
27173
27174 \end_inset
27175
27176  block defining an 
27177 \begin_inset Flex Code
27178 status collapsed
27179
27180 \begin_layout Plain Layout
27181 onclick
27182 \end_layout
27183
27184 \end_inset
27185
27186  handler.
27187 \end_layout
27188
27189 \begin_layout Description
27190 \begin_inset Flex Code
27191 status collapsed
27192
27193 \begin_layout Plain Layout
27194 HTMLStyle
27195 \end_layout
27196
27197 \end_inset
27198
27199  CSS style information to be included when this style is used.
27200  Note that this will automatically be wrapped in a layout-generated 
27201 \begin_inset Flex Code
27202 status collapsed
27203
27204 \begin_layout Plain Layout
27205 <style>
27206 \end_layout
27207
27208 \end_inset
27209
27210  block, so only the CSS itself need be included.
27211 \end_layout
27212
27213 \begin_layout Description
27214 \begin_inset Flex Code
27215 status collapsed
27216
27217 \begin_layout Plain Layout
27218 HTMLTag
27219 \end_layout
27220
27221 \end_inset
27222
27223  [
27224 \begin_inset Flex Code
27225 status collapsed
27226
27227 \begin_layout Plain Layout
27228 string
27229 \end_layout
27230
27231 \end_inset
27232
27233 ] The tag to be used for the main label, replacing 
27234 \begin_inset Flex Code
27235 status collapsed
27236
27237 \begin_layout Plain Layout
27238 tag
27239 \end_layout
27240
27241 \end_inset
27242
27243  in the examples above.
27244  The default depends upon the setting of 
27245 \begin_inset Flex Code
27246 status collapsed
27247
27248 \begin_layout Plain Layout
27249 MultiPar
27250 \end_layout
27251
27252 \end_inset
27253
27254 : If 
27255 \begin_inset Flex Code
27256 status collapsed
27257
27258 \begin_layout Plain Layout
27259 MultiPar
27260 \end_layout
27261
27262 \end_inset
27263
27264  is true, the default is 
27265 \begin_inset Flex Code
27266 status collapsed
27267
27268 \begin_layout Plain Layout
27269 div
27270 \end_layout
27271
27272 \end_inset
27273
27274 ; if it is false, the default is 
27275 \begin_inset Flex Code
27276 status collapsed
27277
27278 \begin_layout Plain Layout
27279 span
27280 \end_layout
27281
27282 \end_inset
27283
27284 .
27285 \end_layout
27286
27287 \begin_layout Subsection
27288 Float XHTML
27289 \end_layout
27290
27291 \begin_layout Standard
27292 The XHTML output for floats too can be controlled by layout information.
27293  The output has the following form:
27294 \end_layout
27295
27296 \begin_layout LyX-Code
27297 <tag attr=
27298 \begin_inset Quotes erd
27299 \end_inset
27300
27301 value
27302 \begin_inset Quotes erd
27303 \end_inset
27304
27305 >
27306 \end_layout
27307
27308 \begin_layout LyX-Code
27309 Contents of the float.
27310 \end_layout
27311
27312 \begin_layout LyX-Code
27313 </tag>
27314 \end_layout
27315
27316 \begin_layout Standard
27317 The caption, if there is one, is a separate inset and will be output as
27318  such.
27319  Its appearance can be controlled via the InsetLayout for caption insets.
27320  
27321 \end_layout
27322
27323 \begin_layout Description
27324 \begin_inset Flex Code
27325 status collapsed
27326
27327 \begin_layout Plain Layout
27328 HTMLAttr
27329 \end_layout
27330
27331 \end_inset
27332
27333  [
27334 \begin_inset Flex Code
27335 status collapsed
27336
27337 \begin_layout Plain Layout
27338 string
27339 \end_layout
27340
27341 \end_inset
27342
27343 ] Specifies attribute information to be output with the main tag.
27344  For example, 
27345 \begin_inset Quotes eld
27346 \end_inset
27347
27348
27349 \begin_inset Flex Code
27350 status collapsed
27351
27352 \begin_layout Plain Layout
27353 class=`myfloat' onclick=`\SpecialChar ldots
27354 '
27355 \end_layout
27356
27357 \end_inset
27358
27359
27360 \begin_inset Quotes erd
27361 \end_inset
27362
27363 .
27364  By default, \SpecialChar LyX
27365  will output 
27366 \begin_inset Quotes eld
27367 \end_inset
27368
27369
27370 \begin_inset Flex Code
27371 status collapsed
27372
27373 \begin_layout Plain Layout
27374 class=`float float-floattype'
27375 \end_layout
27376
27377 \end_inset
27378
27379
27380 \begin_inset Quotes erd
27381 \end_inset
27382
27383 , where 
27384 \begin_inset Flex Code
27385 status collapsed
27386
27387 \begin_layout Plain Layout
27388 floattype
27389 \end_layout
27390
27391 \end_inset
27392
27393  is \SpecialChar LyX
27394 's name for this type of float, as determined by the float declaration
27395  (see 
27396 \begin_inset CommandInset ref
27397 LatexCommand ref
27398 reference "subsec:Floats"
27399
27400 \end_inset
27401
27402 ), though made lowercase and with non-alphanumeric characters converted
27403  to underscores, for example: float-table.
27404 \end_layout
27405
27406 \begin_layout Description
27407 \begin_inset Flex Code
27408 status collapsed
27409
27410 \begin_layout Plain Layout
27411 HTMLStyle
27412 \end_layout
27413
27414 \end_inset
27415
27416  CSS style information to be included when this float is used.
27417  Note that this will automatically be wrapped in a layout-generated 
27418 \begin_inset Flex Code
27419 status collapsed
27420
27421 \begin_layout Plain Layout
27422 <style>
27423 \end_layout
27424
27425 \end_inset
27426
27427  block, so only the CSS itself need be included.
27428 \end_layout
27429
27430 \begin_layout Description
27431 \begin_inset Flex Code
27432 status collapsed
27433
27434 \begin_layout Plain Layout
27435 HTMLTag
27436 \end_layout
27437
27438 \end_inset
27439
27440  [
27441 \begin_inset Flex Code
27442 status collapsed
27443
27444 \begin_layout Plain Layout
27445 string
27446 \end_layout
27447
27448 \end_inset
27449
27450 ] The tag to be used for this float, replacing 
27451 \begin_inset Quotes eld
27452 \end_inset
27453
27454
27455 \begin_inset Flex Code
27456 status collapsed
27457
27458 \begin_layout Plain Layout
27459 tag
27460 \end_layout
27461
27462 \end_inset
27463
27464
27465 \begin_inset Quotes erd
27466 \end_inset
27467
27468  in the example above.
27469  The default is 
27470 \begin_inset Flex Code
27471 status collapsed
27472
27473 \begin_layout Plain Layout
27474 div
27475 \end_layout
27476
27477 \end_inset
27478
27479  and will rarely need changing.
27480 \end_layout
27481
27482 \begin_layout Subsection
27483 Bibliography formatting
27484 \end_layout
27485
27486 \begin_layout Standard
27487 The bibliography can be formatted using 
27488 \begin_inset Flex Code
27489 status collapsed
27490
27491 \begin_layout Plain Layout
27492 CiteFormat
27493 \end_layout
27494
27495 \end_inset
27496
27497  blocks.
27498  See 
27499 \begin_inset CommandInset ref
27500 LatexCommand ref
27501 reference "subsec:Citation-format-description"
27502
27503 \end_inset
27504
27505  for the details.
27506 \end_layout
27507
27508 \begin_layout Subsection
27509 \SpecialChar LyX
27510 -generated CSS
27511 \end_layout
27512
27513 \begin_layout Standard
27514 We have several times mentioned that \SpecialChar LyX
27515  will generate default CSS style rules
27516  for both insets and paragraph styles, based upon the other layout information
27517  that is provided.
27518  In this section, we shall say a word about which layout information \SpecialChar LyX
27519  uses
27520  and how.
27521 \end_layout
27522
27523 \begin_layout Standard
27524 At present, \SpecialChar LyX
27525  auto-generates CSS only for font information, making use of
27526  the 
27527 \begin_inset Flex Code
27528 status collapsed
27529
27530 \begin_layout Plain Layout
27531 Family
27532 \end_layout
27533
27534 \end_inset
27535
27536
27537 \begin_inset Flex Code
27538 status collapsed
27539
27540 \begin_layout Plain Layout
27541 Series
27542 \end_layout
27543
27544 \end_inset
27545
27546
27547 \begin_inset Flex Code
27548 status collapsed
27549
27550 \begin_layout Plain Layout
27551 Shape
27552 \end_layout
27553
27554 \end_inset
27555
27556 , and 
27557 \begin_inset Flex Code
27558 status collapsed
27559
27560 \begin_layout Plain Layout
27561 Size
27562 \end_layout
27563
27564 \end_inset
27565
27566  specified in the 
27567 \begin_inset Flex Code
27568 status collapsed
27569
27570 \begin_layout Plain Layout
27571 Font
27572 \end_layout
27573
27574 \end_inset
27575
27576  declaration (see 
27577 \begin_inset CommandInset ref
27578 LatexCommand ref
27579 reference "subsec:Font-description"
27580
27581 \end_inset
27582
27583 ).
27584  The translation is mostly straightforward and obvious.
27585  For example, 
27586 \begin_inset Quotes eld
27587 \end_inset
27588
27589
27590 \begin_inset Flex Code
27591 status collapsed
27592
27593 \begin_layout Plain Layout
27594 Family Sans
27595 \end_layout
27596
27597 \end_inset
27598
27599
27600 \begin_inset Quotes erd
27601 \end_inset
27602
27603  becomes 
27604 \begin_inset Quotes eld
27605 \end_inset
27606
27607
27608 \begin_inset Flex Code
27609 status collapsed
27610
27611 \begin_layout Plain Layout
27612 font-family: sans-serif;
27613 \end_layout
27614
27615 \end_inset
27616
27617
27618 \begin_inset Quotes erd
27619 \end_inset
27620
27621 .
27622  The correspondence of \SpecialChar LyX
27623  sizes and CSS sizes is a little less obvious but
27624  nonetheless intuitive.
27625  See the 
27626 \begin_inset Flex Code
27627 status collapsed
27628
27629 \begin_layout Plain Layout
27630 getSizeCSS()
27631 \end_layout
27632
27633 \end_inset
27634
27635  function in 
27636 \begin_inset Flex URL
27637 status collapsed
27638
27639 \begin_layout Plain Layout
27640
27641 src/FontInfo.cpp
27642 \end_layout
27643
27644 \end_inset
27645
27646  for the details.
27647 \change_inserted -970929547 1496610908
27648
27649 \end_layout
27650
27651 \begin_layout Section
27652
27653 \change_inserted -970929547 1496610966
27654 \begin_inset CommandInset label
27655 LatexCommand label
27656 name "sec:Tags-for-DocBook"
27657
27658 \end_inset
27659
27660 Tags for DocBook output
27661 \end_layout
27662
27663 \begin_layout Standard
27664
27665 \change_inserted -970929547 1496611615
27666 As with \SpecialChar LaTeX
27667  or XHTML, the format of \SpecialChar LyX
27668 's DocBook output is also controlled by
27669  layout information.
27670  In general, \SpecialChar LyX
27671  provides sensible defaults; however, much of the styling is
27672  lost during the conversion, as DocBook is strictly semantic and does not
27673  allow formatting.
27674  When possible, information from \SpecialChar LyX
27675  will be rendered in 
27676 \family typewriter
27677 role
27678 \family default
27679  attributes.
27680  
27681 \end_layout
27682
27683 \begin_layout Standard
27684
27685 \change_inserted -970929547 1496612080
27686 In many cases, then, you may not have to do anything at all to get acceptable
27687  DocBook output for your own environments, custom insets, and so forth.
27688  But in some cases you will, and so \SpecialChar LyX
27689  provides a number of layout tags that
27690  can be used to customize the DocBook that is generated.
27691 \end_layout
27692
27693 \begin_layout Standard
27694
27695 \change_inserted -970929547 1515109912
27696 Labels are rarely output, as they are redundant in DocBook: this information
27697  is carried by the tags themselves, and whether labels appear in the final
27698  documents (after processing of DocBook files) is controlled by the stylesheets.
27699  However, sometimes, labels are not redundant content, such as definition
27700  lists: in this case, the term being defined will be the label.
27701  
27702 \end_layout
27703
27704 \begin_layout Subsection
27705
27706 \change_inserted 1075283030 1597699417
27707 \begin_inset CommandInset label
27708 LatexCommand label
27709 name "subsec:Paragraph-Style-DocBook"
27710
27711 \end_inset
27712
27713
27714 \change_deleted 1075283030 1597699417
27715
27716 \begin_inset CommandInset label
27717 LatexCommand label
27718 name "subsec:Paragraph-Style-XHTML-1"
27719
27720 \end_inset
27721
27722
27723 \change_inserted -970929547 1496610966
27724 Paragraph styles
27725 \end_layout
27726
27727 \begin_layout Standard
27728
27729 \change_inserted -970929547 1496612059
27730 The sort of DocBook \SpecialChar LyX
27731  outputs for a paragraph depends upon whether we are
27732  dealing with a normal paragraph, a command, or an environment, where this
27733  is itself determined by the contents of the corresponding 
27734 \begin_inset Flex Code
27735 status collapsed
27736
27737 \begin_layout Plain Layout
27738
27739 \change_inserted -970929547 1496610966
27740 \SpecialChar LaTeX
27741 Type
27742 \change_unchanged
27743
27744 \end_layout
27745
27746 \end_inset
27747
27748  tag.
27749  
27750 \end_layout
27751
27752 \begin_layout Standard
27753
27754 \change_inserted -970929547 1496612107
27755 For a command or normal paragraph, the output DocBook has the following
27756  form:
27757 \end_layout
27758
27759 \begin_layout LyX-Code
27760
27761 \change_inserted -970929547 1515109666
27762 <tag attr>
27763 \end_layout
27764
27765 \begin_layout LyX-Code
27766
27767 \change_inserted -970929547 1496610966
27768 Contents of the paragraph.
27769 \end_layout
27770
27771 \begin_layout LyX-Code
27772
27773 \change_inserted -970929547 1496610966
27774 </tag>
27775 \end_layout
27776
27777 \begin_layout Standard
27778
27779 \change_inserted -970929547 1515109821
27780 For an environment that is not some sort of list, the generated DocBook
27781  takes this form:
27782 \end_layout
27783
27784 \begin_layout LyX-Code
27785
27786 \change_inserted -970929547 1515109671
27787 <tag attr>
27788 \end_layout
27789
27790 \begin_layout LyX-Code
27791
27792 \change_inserted -970929547 1496612114
27793 <itemtag>First paragraph.</itemtag>
27794 \end_layout
27795
27796 \begin_layout LyX-Code
27797
27798 \change_inserted -970929547 1496610966
27799 <itemtag>Second paragraph.</itemtag>
27800 \end_layout
27801
27802 \begin_layout LyX-Code
27803
27804 \change_inserted -970929547 1496610966
27805 </tag>
27806 \end_layout
27807
27808 \begin_layout Standard
27809
27810 \change_inserted -970929547 1515109825
27811 For a list, the resulting DocBook takes this form:
27812 \end_layout
27813
27814 \begin_layout LyX-Code
27815
27816 \change_inserted -970929547 1515109672
27817 <tag attr>
27818 \end_layout
27819
27820 \begin_layout LyX-Code
27821
27822 \change_inserted -970929547 1515109676
27823 <itemtag attr>First item.</itemtag>
27824 \end_layout
27825
27826 \begin_layout LyX-Code
27827
27828 \change_inserted -970929547 1515109678
27829 <itemtag attr>Second item.</itemtag>
27830 \end_layout
27831
27832 \begin_layout LyX-Code
27833
27834 \change_inserted -970929547 1496610966
27835 </tag>
27836 \end_layout
27837
27838 \begin_layout Standard
27839
27840 \change_inserted -970929547 1496612243
27841 The specific tags and roles output for each paragraph type can be controlled
27842  by means of the layout tags we are about to describe.
27843  Please note that, due to the very nature of DocBook, no sensible defaults
27844  really exist, and the values must always be carefully chosen.
27845  
27846 \end_layout
27847
27848 \begin_layout Description
27849
27850 \change_inserted -970929547 1515110057
27851 \begin_inset Flex Code
27852 status collapsed
27853
27854 \begin_layout Plain Layout
27855
27856 \change_inserted -970929547 1515109656
27857 DocBookAttr
27858 \change_unchanged
27859
27860 \end_layout
27861
27862 \end_inset
27863
27864  [
27865 \begin_inset Flex Code
27866 status collapsed
27867
27868 \begin_layout Plain Layout
27869
27870 \change_inserted -970929547 1496610966
27871 string
27872 \change_unchanged
27873
27874 \end_layout
27875
27876 \end_inset
27877
27878 ] Specifies attribute information to be output with the main tag, replacing
27879  
27880 \begin_inset Quotes eld
27881 \end_inset
27882
27883
27884 \begin_inset Flex Code
27885 status collapsed
27886
27887 \begin_layout Plain Layout
27888
27889 \change_inserted -970929547 1515110057
27890 attr
27891 \change_unchanged
27892
27893 \end_layout
27894
27895 \end_inset
27896
27897
27898 \begin_inset Quotes erd
27899 \end_inset
27900
27901  in the example above.
27902  This information can be used in further processing of the DocBook files.
27903  
27904 \change_unchanged
27905
27906 \end_layout
27907
27908 \begin_layout Description
27909
27910 \change_inserted -970929547 1496612296
27911 \begin_inset Flex Code
27912 status collapsed
27913
27914 \begin_layout Plain Layout
27915
27916 \change_inserted -970929547 1496612269
27917 DocBookTag
27918 \change_unchanged
27919
27920 \end_layout
27921
27922 \end_inset
27923
27924  [
27925 \begin_inset Flex Code
27926 status collapsed
27927
27928 \begin_layout Plain Layout
27929
27930 \change_inserted -970929547 1496610966
27931 string
27932 \change_unchanged
27933
27934 \end_layout
27935
27936 \end_inset
27937
27938 ] The tag to be used for this inset, replacing 
27939 \begin_inset Quotes eld
27940 \end_inset
27941
27942
27943 \begin_inset Flex Code
27944 status collapsed
27945
27946 \begin_layout Plain Layout
27947
27948 \change_inserted -970929547 1496612296
27949 tag
27950 \change_unchanged
27951
27952 \end_layout
27953
27954 \end_inset
27955
27956
27957 \begin_inset Quotes erd
27958 \end_inset
27959
27960  in the example above.
27961  The default is the name of the float and always needs to be changed, as
27962  DocBook provides no generic tag.
27963 \change_inserted 1075283030 1597698868
27964
27965 \end_layout
27966
27967 \begin_layout Description
27968
27969 \change_inserted 1075283030 1597699399
27970 \begin_inset Flex Code
27971 status collapsed
27972
27973 \begin_layout Plain Layout
27974
27975 \change_inserted 1075283030 1597698872
27976 DocBookTagType
27977 \change_unchanged
27978
27979 \end_layout
27980
27981 \end_inset
27982
27983  [
27984 \begin_inset Flex Code
27985 status collapsed
27986
27987 \begin_layout Plain Layout
27988
27989 \change_inserted 1075283030 1597700585
27990 block, paragraph, inline
27991 \change_unchanged
27992
27993 \end_layout
27994
27995 \end_inset
27996
27997 ] The new-line policy for this tag, see Section
27998 \begin_inset space ~
27999 \end_inset
28000
28001
28002 \begin_inset CommandInset ref
28003 LatexCommand ref
28004 reference "subsec:DocBook-New-line-policy"
28005 plural "false"
28006 caps "false"
28007 noprefix "false"
28008
28009 \end_inset
28010
28011  for the details.
28012  
28013 \change_unchanged
28014
28015 \end_layout
28016
28017 \begin_layout Subsection
28018
28019 \change_inserted 1075283030 1597699385
28020 New-line policy
28021 \begin_inset CommandInset label
28022 LatexCommand label
28023 name "subsec:DocBook-New-line-policy"
28024
28025 \end_inset
28026
28027
28028 \end_layout
28029
28030 \begin_layout Standard
28031
28032 \change_inserted 1075283030 1597698993
28033 For all tags, there are three possible policies for outputting new lines
28034  (given in the 
28035 \begin_inset Flex Code
28036 status collapsed
28037
28038 \begin_layout Plain Layout
28039
28040 \change_inserted 1075283030 1597698987
28041 DocBook*TagType
28042 \change_unchanged
28043
28044 \end_layout
28045
28046 \end_inset
28047
28048  attribute): 
28049 \end_layout
28050
28051 \begin_layout Itemize
28052
28053 \change_inserted 1075283030 1597699279
28054 \begin_inset Quotes eld
28055 \end_inset
28056
28057
28058 \begin_inset Flex Code
28059 status collapsed
28060
28061 \begin_layout Plain Layout
28062
28063 \change_inserted 1075283030 1597699012
28064 block
28065 \change_unchanged
28066
28067 \end_layout
28068
28069 \end_inset
28070
28071
28072 \begin_inset Quotes erd
28073 \end_inset
28074
28075 : the opening and closing tags are on their own lines (i.e.
28076  a line feed after and before the opening and the closing tags).
28077  Typical elements are floats.
28078  For instance: 
28079 \end_layout
28080
28081 \begin_layout LyX-Code
28082
28083 \change_inserted 1075283030 1597699194
28084 Content before
28085 \end_layout
28086
28087 \begin_layout LyX-Code
28088
28089 \change_inserted 1075283030 1597699194
28090 <blocktag>
28091 \end_layout
28092
28093 \begin_layout LyX-Code
28094
28095 \change_inserted 1075283030 1597699098
28096   Contents of the block.
28097 \end_layout
28098
28099 \begin_layout LyX-Code
28100
28101 \change_inserted 1075283030 1597699196
28102 </blocktag>
28103 \end_layout
28104
28105 \begin_layout LyX-Code
28106
28107 \change_inserted 1075283030 1597699198
28108 Content after
28109 \end_layout
28110
28111 \begin_layout Itemize
28112
28113 \change_inserted 1075283030 1597699289
28114 \begin_inset Quotes eld
28115 \end_inset
28116
28117
28118 \begin_inset Flex Code
28119 status collapsed
28120
28121 \begin_layout Plain Layout
28122
28123 \change_inserted 1075283030 1597699113
28124 paragraph
28125 \change_unchanged
28126
28127 \end_layout
28128
28129 \end_inset
28130
28131
28132 \begin_inset Quotes erd
28133 \end_inset
28134
28135 : the opening and closing tags are on the same, new line; a line feed is
28136  output before the opening tag and after the closing tag.
28137  Typical elements are paragraphs and list items.
28138  For instance: 
28139 \end_layout
28140
28141 \begin_layout LyX-Code
28142
28143 \change_inserted 1075283030 1597699186
28144 Content before
28145 \end_layout
28146
28147 \begin_layout LyX-Code
28148
28149 \change_inserted 1075283030 1597699357
28150 <paratag>Contents of the paragraph.</paratag>
28151 \end_layout
28152
28153 \begin_layout LyX-Code
28154
28155 \change_inserted 1075283030 1597699231
28156 Content after
28157 \end_layout
28158
28159 \begin_layout Itemize
28160
28161 \change_inserted 1075283030 1597699343
28162 \begin_inset Quotes eld
28163 \end_inset
28164
28165
28166 \begin_inset Flex Code
28167 status collapsed
28168
28169 \begin_layout Plain Layout
28170
28171 \change_inserted 1075283030 1597699307
28172 inline
28173 \change_unchanged
28174
28175 \end_layout
28176
28177 \end_inset
28178
28179
28180 \begin_inset Quotes erd
28181 \end_inset
28182
28183 : the opening and closing tags are on the same line as the rest of the content.
28184  No line feeds are output.
28185  Typical elements are fonts.
28186  For instance: 
28187 \end_layout
28188
28189 \begin_layout LyX-Code
28190
28191 \change_inserted 1075283030 1597699585
28192 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
28193 \end_layout
28194
28195 \begin_layout Standard
28196
28197 \change_inserted 1075283030 1597699585
28198 The default value is always 
28199 \begin_inset Quotes eld
28200 \end_inset
28201
28202
28203 \begin_inset Flex Code
28204 status collapsed
28205
28206 \begin_layout Plain Layout
28207
28208 \change_inserted 1075283030 1597699585
28209 block
28210 \change_unchanged
28211
28212 \end_layout
28213
28214 \end_inset
28215
28216
28217 \begin_inset Quotes erd
28218 \end_inset
28219
28220 .
28221 \change_unchanged
28222
28223 \end_layout
28224
28225 \begin_layout Subsection
28226
28227 \change_inserted -970929547 1515111533
28228 InsetLayout DocBook
28229 \change_unchanged
28230
28231 \end_layout
28232
28233 \begin_layout Standard
28234
28235 \change_inserted -970929547 1496611894
28236 The DocBook output of insets can also be controlled by information in layout
28237  files.
28238 \end_layout
28239
28240 \begin_layout Standard
28241
28242 \change_inserted -970929547 1496612045
28243 The DocBook \SpecialChar LyX
28244  outputs for an inset has the following form:
28245 \end_layout
28246
28247 \begin_layout LyX-Code
28248
28249 \change_inserted -970929547 1515110861
28250 <wrappertag wrapperattr>
28251 \end_layout
28252
28253 \begin_layout LyX-Code
28254
28255 \change_inserted -970929547 1515110868
28256   <tag attr>
28257 \end_layout
28258
28259 \begin_layout LyX-Code
28260
28261 \change_inserted -970929547 1515110869
28262     <innertag innerattr>
28263 \end_layout
28264
28265 \begin_layout LyX-Code
28266
28267 \change_inserted -970929547 1515110869
28268       Contents of the inset.
28269 \end_layout
28270
28271 \begin_layout LyX-Code
28272
28273 \change_inserted -970929547 1515110870
28274     </innertag>
28275 \end_layout
28276
28277 \begin_layout LyX-Code
28278
28279 \change_inserted -970929547 1515110871
28280   </tag>
28281 \end_layout
28282
28283 \begin_layout LyX-Code
28284
28285 \change_inserted -970929547 1515111172
28286 </wrappertag>
28287 \end_layout
28288
28289 \begin_layout Standard
28290
28291 \change_inserted -970929547 1515111186
28292 For an itemising inset, it rather looks like this: 
28293 \end_layout
28294
28295 \begin_layout LyX-Code
28296
28297 \change_inserted -970929547 1515111186
28298 <wrappertag wrapperattr>
28299 \end_layout
28300
28301 \begin_layout LyX-Code
28302
28303 \change_inserted -970929547 1515111186
28304   <tag attr>
28305 \end_layout
28306
28307 \begin_layout LyX-Code
28308
28309 \change_inserted -970929547 1515111186
28310     <innertag innerattr>
28311 \end_layout
28312
28313 \begin_layout LyX-Code
28314
28315 \change_inserted -970929547 1515111362
28316       <itemwrappertag itemwrapperattr>
28317 \end_layout
28318
28319 \begin_layout LyX-Code
28320
28321 \change_inserted -970929547 1515111364
28322         <itemlabeltag itemattr>
28323 \end_layout
28324
28325 \begin_layout LyX-Code
28326
28327 \change_inserted -970929547 1515111367
28328           Label of the first item.
28329 \end_layout
28330
28331 \begin_layout LyX-Code
28332
28333 \change_inserted -970929547 1515111362
28334         </itemtag>
28335 \change_unchanged
28336
28337 \end_layout
28338
28339 \begin_layout LyX-Code
28340
28341 \change_inserted -970929547 1515111517
28342         <itemtag itemattr>
28343 \end_layout
28344
28345 \begin_layout LyX-Code
28346
28347 \change_inserted -970929547 1515111517
28348           <itemtag itemattr>
28349 \change_unchanged
28350
28351 \end_layout
28352
28353 \begin_layout LyX-Code
28354
28355 \change_inserted -970929547 1515111516
28356             Contents of the first item.
28357 \end_layout
28358
28359 \begin_layout LyX-Code
28360
28361 \change_inserted -970929547 1515111514
28362           </itemtag>
28363 \change_unchanged
28364
28365 \end_layout
28366
28367 \begin_layout LyX-Code
28368
28369 \change_inserted -970929547 1515111247
28370         </itemtag>
28371 \change_unchanged
28372
28373 \end_layout
28374
28375 \begin_layout LyX-Code
28376
28377 \change_inserted -970929547 1515111221
28378       </itemwrappertag>
28379 \end_layout
28380
28381 \begin_layout LyX-Code
28382
28383 \change_inserted -970929547 1515111370
28384       <itemwrappertag itemwrapperattr>
28385 \end_layout
28386
28387 \begin_layout LyX-Code
28388
28389 \change_inserted -970929547 1515111370
28390         <itemlabeltag itemattr>
28391 \end_layout
28392
28393 \begin_layout LyX-Code
28394
28395 \change_inserted -970929547 1515111372
28396           Label of the second item.
28397 \end_layout
28398
28399 \begin_layout LyX-Code
28400
28401 \change_inserted -970929547 1515111370
28402         </itemtag>
28403 \change_unchanged
28404
28405 \end_layout
28406
28407 \begin_layout LyX-Code
28408
28409 \change_inserted -970929547 1515111504
28410         <itemtag itemattr>
28411 \end_layout
28412
28413 \begin_layout LyX-Code
28414
28415 \change_inserted -970929547 1515111505
28416           <itemtag itemattr>
28417 \change_unchanged
28418
28419 \end_layout
28420
28421 \begin_layout LyX-Code
28422
28423 \change_inserted -970929547 1515111507
28424             Contents of the second item.
28425 \end_layout
28426
28427 \begin_layout LyX-Code
28428
28429 \change_inserted -970929547 1515111509
28430           </itemtag>
28431 \change_unchanged
28432
28433 \end_layout
28434
28435 \begin_layout LyX-Code
28436
28437 \change_inserted -970929547 1515111251
28438         </itemtag>
28439 \change_unchanged
28440
28441 \end_layout
28442
28443 \begin_layout LyX-Code
28444
28445 \change_inserted -970929547 1515111221
28446       </itemwrappertag>
28447 \change_unchanged
28448
28449 \end_layout
28450
28451 \begin_layout LyX-Code
28452
28453 \change_inserted -970929547 1515111219
28454       ...
28455 \change_unchanged
28456
28457 \end_layout
28458
28459 \begin_layout LyX-Code
28460
28461 \change_inserted -970929547 1515111186
28462     </innertag>
28463 \end_layout
28464
28465 \begin_layout LyX-Code
28466
28467 \change_inserted -970929547 1515111186
28468   </tag>
28469 \end_layout
28470
28471 \begin_layout LyX-Code
28472
28473 \change_inserted -970929547 1515111186
28474 </wrappertag>
28475 \end_layout
28476
28477 \begin_layout Standard
28478
28479 \change_inserted -970929547 1515111183
28480 If the inset permits multiple paragraphs—that is, if 
28481 \begin_inset Flex Code
28482 status collapsed
28483
28484 \begin_layout Plain Layout
28485
28486 \change_inserted -970929547 1496610966
28487 MultiPar
28488 \change_unchanged
28489
28490 \end_layout
28491
28492 \end_inset
28493
28494  is true—then the contents of the inset will itself be output as paragraphs
28495  formatted according to the styles used for those paragraphs (standard,
28496  quote, and the like).
28497  The inner tag is optional and, by default, does not appear.
28498 \end_layout
28499
28500 \begin_layout Standard
28501
28502 \change_inserted -970929547 1496610966
28503 The specific tags and attributes output for each inset can be controlled
28504  by means of the following layout tags.
28505 \end_layout
28506
28507 \begin_layout Description
28508
28509 \change_inserted -970929547 1515110317
28510 \begin_inset Flex Code
28511 status collapsed
28512
28513 \begin_layout Plain Layout
28514
28515 \change_inserted -970929547 1515109695
28516 DocBookAttr
28517 \change_unchanged
28518
28519 \end_layout
28520
28521 \end_inset
28522
28523  [
28524 \begin_inset Flex Code
28525 status collapsed
28526
28527 \begin_layout Plain Layout
28528
28529 \change_inserted -970929547 1496611854
28530 string
28531 \change_unchanged
28532
28533 \end_layout
28534
28535 \end_inset
28536
28537 ] Specifies attribute information to be output with the main tag, replacing
28538  
28539 \begin_inset Quotes eld
28540 \end_inset
28541
28542
28543 \begin_inset Flex Code
28544 status collapsed
28545
28546 \begin_layout Plain Layout
28547
28548 \change_inserted -970929547 1515110044
28549 attr
28550 \change_unchanged
28551
28552 \end_layout
28553
28554 \end_inset
28555
28556
28557 \begin_inset Quotes erd
28558 \end_inset
28559
28560  in the example above.
28561  This information can be used in further processing of the DocBook files.
28562  
28563 \end_layout
28564
28565 \begin_layout Description
28566
28567 \change_inserted -970929547 1515110973
28568 \begin_inset Flex Code
28569 status collapsed
28570
28571 \begin_layout Plain Layout
28572
28573 \change_inserted -970929547 1515110319
28574 DocBookInInfo
28575 \change_unchanged
28576
28577 \end_layout
28578
28579 \end_inset
28580
28581  [
28582 \begin_inset Flex Code
28583 status collapsed
28584
28585 \begin_layout Plain Layout
28586
28587 \change_inserted -970929547 1515110384
28588 never, always, maybe
28589 \change_unchanged
28590
28591 \end_layout
28592
28593 \end_inset
28594
28595 ] Specifies whether this tag goes into the 
28596 \begin_inset Flex Code
28597 status collapsed
28598
28599 \begin_layout Plain Layout
28600
28601 \change_inserted -970929547 1515110412
28602 <info>
28603 \change_unchanged
28604
28605 \end_layout
28606
28607 \end_inset
28608
28609  tag at the beginning of the parent layout.
28610  
28611 \begin_inset Flex Code
28612 status collapsed
28613
28614 \begin_layout Plain Layout
28615
28616 \change_inserted -970929547 1515110437
28617 never
28618 \change_unchanged
28619
28620 \end_layout
28621
28622 \end_inset
28623
28624  indicates that the tag never goes into 
28625 \begin_inset Flex Code
28626 status collapsed
28627
28628 \begin_layout Plain Layout
28629
28630 \change_inserted -970929547 1515110497
28631 <info>
28632 \change_unchanged
28633
28634 \end_layout
28635
28636 \end_inset
28637
28638  (this is default value, and corresponds to usual content).
28639  
28640 \begin_inset Flex Code
28641 status collapsed
28642
28643 \begin_layout Plain Layout
28644
28645 \change_inserted -970929547 1515110517
28646 always
28647 \change_unchanged
28648
28649 \end_layout
28650
28651 \end_inset
28652
28653  indicates that the tag always goes into 
28654 \begin_inset Flex Code
28655 status collapsed
28656
28657 \begin_layout Plain Layout
28658
28659 \change_inserted -970929547 1515110514
28660 <info>
28661 \change_unchanged
28662
28663 \end_layout
28664
28665 \end_inset
28666
28667  (this corresponds to usual metadata): if there is no 
28668 \begin_inset Flex Code
28669 status collapsed
28670
28671 \begin_layout Plain Layout
28672
28673 \change_inserted -970929547 1515110550
28674 <info>
28675 \change_unchanged
28676
28677 \end_layout
28678
28679 \end_inset
28680
28681  tag for the parent, one 
28682 \series bold
28683 will
28684 \series default
28685  be generated.
28686  
28687 \begin_inset Flex Code
28688 status collapsed
28689
28690 \begin_layout Plain Layout
28691
28692 \change_inserted -970929547 1515110540
28693 maybe
28694 \change_unchanged
28695
28696 \end_layout
28697
28698 \end_inset
28699
28700  indicates that the tag may go into 
28701 \begin_inset Flex Code
28702 status collapsed
28703
28704 \begin_layout Plain Layout
28705
28706 \change_inserted -970929547 1515110538
28707 <info>
28708 \change_unchanged
28709
28710 \end_layout
28711
28712 \end_inset
28713
28714  (this is only the case for titles): if there is no 
28715 \begin_inset Flex Code
28716 status collapsed
28717
28718 \begin_layout Plain Layout
28719
28720 \change_inserted -970929547 1515110585
28721 <info>
28722 \change_unchanged
28723
28724 \end_layout
28725
28726 \end_inset
28727
28728  tag for the parent, 
28729 \series bold
28730 none
28731 \series default
28732  will be generated, the corresponding tag will be output directly as content.
28733  
28734 \end_layout
28735
28736 \begin_layout Description
28737
28738 \change_inserted -970929547 1515111461
28739 \begin_inset Flex Code
28740 status collapsed
28741
28742 \begin_layout Plain Layout
28743
28744 \change_inserted -970929547 1515110974
28745 DocBookItemAttr
28746 \change_unchanged
28747
28748 \end_layout
28749
28750 \end_inset
28751
28752  [
28753 \begin_inset Flex Code
28754 status collapsed
28755
28756 \begin_layout Plain Layout
28757
28758 \change_inserted -970929547 1515110973
28759 string
28760 \change_unchanged
28761
28762 \end_layout
28763
28764 \end_inset
28765
28766 ] Specifies attribute information to be output with the item tag, replacing
28767  
28768 \begin_inset Quotes eld
28769 \end_inset
28770
28771
28772 \begin_inset Flex Code
28773 status collapsed
28774
28775 \begin_layout Plain Layout
28776
28777 \change_inserted -970929547 1515110984
28778 itemattr
28779 \change_unchanged
28780
28781 \end_layout
28782
28783 \end_inset
28784
28785
28786 \begin_inset Quotes erd
28787 \end_inset
28788
28789  in the example above.
28790  This information can be used in further processing of the DocBook files.
28791  
28792 \end_layout
28793
28794 \begin_layout Description
28795
28796 \change_inserted -970929547 1515111471
28797 \begin_inset Flex Code
28798 status collapsed
28799
28800 \begin_layout Plain Layout
28801
28802 \change_inserted -970929547 1515111465
28803 DocBookItemInnerAttr
28804 \change_unchanged
28805
28806 \end_layout
28807
28808 \end_inset
28809
28810  [
28811 \begin_inset Flex Code
28812 status collapsed
28813
28814 \begin_layout Plain Layout
28815
28816 \change_inserted -970929547 1515111461
28817 string
28818 \change_unchanged
28819
28820 \end_layout
28821
28822 \end_inset
28823
28824 ] Specifies attribute information to be output with the item inner tag,
28825  replacing 
28826 \begin_inset Quotes eld
28827 \end_inset
28828
28829
28830 \begin_inset Flex Code
28831 status collapsed
28832
28833 \begin_layout Plain Layout
28834
28835 \change_inserted -970929547 1515111476
28836 iteminnerattr
28837 \change_unchanged
28838
28839 \end_layout
28840
28841 \end_inset
28842
28843
28844 \begin_inset Quotes erd
28845 \end_inset
28846
28847  in the example above.
28848  This information can be used in further processing of the DocBook files.
28849  
28850 \end_layout
28851
28852 \begin_layout Description
28853
28854 \change_inserted -970929547 1515111494
28855 \begin_inset Flex Code
28856 status collapsed
28857
28858 \begin_layout Plain Layout
28859
28860 \change_inserted -970929547 1515111467
28861 DocBookItemInnerTag
28862 \change_unchanged
28863
28864 \end_layout
28865
28866 \end_inset
28867
28868  [
28869 \begin_inset Flex Code
28870 status collapsed
28871
28872 \begin_layout Plain Layout
28873
28874 \change_inserted -970929547 1515111461
28875 string
28876 \change_unchanged
28877
28878 \end_layout
28879
28880 \end_inset
28881
28882 ] The tag to be used for the item inner tag within the inset, replacing
28883  
28884 \begin_inset Quotes eld
28885 \end_inset
28886
28887
28888 \begin_inset Flex Code
28889 status collapsed
28890
28891 \begin_layout Plain Layout
28892
28893 \change_inserted -970929547 1515111486
28894 iteminnertag
28895 \change_unchanged
28896
28897 \end_layout
28898
28899 \end_inset
28900
28901
28902 \begin_inset Quotes erd
28903 \end_inset
28904
28905  in the example above.
28906  The default is 
28907 \begin_inset Flex Code
28908 status collapsed
28909
28910 \begin_layout Plain Layout
28911
28912 \change_inserted -970929547 1515111461
28913 NONE
28914 \change_unchanged
28915
28916 \end_layout
28917
28918 \end_inset
28919
28920 , indicating that there is no item inner tag: content is directly output
28921  without it for each itemised element.
28922  This parameter only makes sense when itemising layouts are used, such as
28923  lists.
28924  
28925 \change_inserted 1075283030 1598469472
28926 The most likely value is 
28927 \begin_inset Quotes eld
28928 \end_inset
28929
28930
28931 \begin_inset Flex Code
28932 status collapsed
28933
28934 \begin_layout Plain Layout
28935
28936 \change_inserted 1075283030 1598469476
28937 para
28938 \change_unchanged
28939
28940 \end_layout
28941
28942 \end_inset
28943
28944
28945 \begin_inset Quotes erd
28946 \end_inset
28947
28948 .
28949 \begin_inset Newline newline
28950 \end_inset
28951
28952 When a list item is split using a new line, the item inner tag will be repeated
28953  for each part of the paragraph, parts being separated by new lines.
28954  
28955 \end_layout
28956
28957 \begin_layout Description
28958
28959 \change_inserted 1075283030 1597699866
28960 \begin_inset Flex Code
28961 status collapsed
28962
28963 \begin_layout Plain Layout
28964
28965 \change_inserted 1075283030 1597699853
28966 DocBookItemInnerTagType
28967 \change_unchanged
28968
28969 \end_layout
28970
28971 \end_inset
28972
28973  [
28974 \begin_inset Flex Code
28975 status collapsed
28976
28977 \begin_layout Plain Layout
28978
28979 \change_inserted 1075283030 1597699866
28980 block, paragraph, inline
28981 \change_unchanged
28982
28983 \end_layout
28984
28985 \end_inset
28986
28987 ] The new-line policy for this tag, see Section
28988 \begin_inset space ~
28989 \end_inset
28990
28991
28992 \begin_inset CommandInset ref
28993 LatexCommand ref
28994 reference "subsec:DocBook-New-line-policy"
28995 plural "false"
28996 caps "false"
28997 noprefix "false"
28998
28999 \end_inset
29000
29001  for the details.
29002  
29003 \change_unchanged
29004
29005 \end_layout
29006
29007 \begin_layout Description
29008
29009 \change_inserted -970929547 1515111290
29010 \begin_inset Flex Code
29011 status collapsed
29012
29013 \begin_layout Plain Layout
29014
29015 \change_inserted -970929547 1515111283
29016 DocBookItemLabelAttr
29017 \change_unchanged
29018
29019 \end_layout
29020
29021 \end_inset
29022
29023  [
29024 \begin_inset Flex Code
29025 status collapsed
29026
29027 \begin_layout Plain Layout
29028
29029 \change_inserted -970929547 1515111279
29030 string
29031 \change_unchanged
29032
29033 \end_layout
29034
29035 \end_inset
29036
29037 ] Specifies attribute information to be output with the item label tag,
29038  replacing 
29039 \begin_inset Quotes eld
29040 \end_inset
29041
29042
29043 \begin_inset Flex Code
29044 status collapsed
29045
29046 \begin_layout Plain Layout
29047
29048 \change_inserted -970929547 1515111304
29049 itemlabelattr
29050 \change_unchanged
29051
29052 \end_layout
29053
29054 \end_inset
29055
29056
29057 \begin_inset Quotes erd
29058 \end_inset
29059
29060  in the example above.
29061  This information can be used in further processing of the DocBook files.
29062  
29063 \end_layout
29064
29065 \begin_layout Description
29066
29067 \change_inserted -970929547 1515111337
29068 \begin_inset Flex Code
29069 status collapsed
29070
29071 \begin_layout Plain Layout
29072
29073 \change_inserted -970929547 1515111285
29074 DocBookItemLabelTag
29075 \change_unchanged
29076
29077 \end_layout
29078
29079 \end_inset
29080
29081  [
29082 \begin_inset Flex Code
29083 status collapsed
29084
29085 \begin_layout Plain Layout
29086
29087 \change_inserted -970929547 1515111279
29088 string
29089 \change_unchanged
29090
29091 \end_layout
29092
29093 \end_inset
29094
29095 ] The tag to be used for the item label tag within the inset, replacing
29096  
29097 \begin_inset Quotes eld
29098 \end_inset
29099
29100
29101 \begin_inset Flex Code
29102 status collapsed
29103
29104 \begin_layout Plain Layout
29105
29106 \change_inserted -970929547 1515111311
29107 itemlabeltag
29108 \change_unchanged
29109
29110 \end_layout
29111
29112 \end_inset
29113
29114
29115 \begin_inset Quotes erd
29116 \end_inset
29117
29118  in the example above.
29119  This parameter only makes sense when itemising layouts are used with a
29120  notion of labels, such as definition lists.
29121  
29122 \change_inserted 1075283030 1597699874
29123
29124 \end_layout
29125
29126 \begin_layout Description
29127
29128 \change_inserted 1075283030 1597699874
29129 \begin_inset Flex Code
29130 status collapsed
29131
29132 \begin_layout Plain Layout
29133
29134 \change_inserted 1075283030 1597699880
29135 DocBookItemLabelTagType
29136 \change_unchanged
29137
29138 \end_layout
29139
29140 \end_inset
29141
29142  [
29143 \begin_inset Flex Code
29144 status collapsed
29145
29146 \begin_layout Plain Layout
29147
29148 \change_inserted 1075283030 1597699874
29149 block, paragraph, inline
29150 \change_unchanged
29151
29152 \end_layout
29153
29154 \end_inset
29155
29156 ] The new-line policy for this tag, see Section
29157 \begin_inset space ~
29158 \end_inset
29159
29160
29161 \begin_inset CommandInset ref
29162 LatexCommand ref
29163 reference "subsec:DocBook-New-line-policy"
29164 plural "false"
29165 caps "false"
29166 noprefix "false"
29167
29168 \end_inset
29169
29170  for the details.
29171  
29172 \change_unchanged
29173
29174 \end_layout
29175
29176 \begin_layout Description
29177
29178 \change_inserted -970929547 1515111124
29179 \begin_inset Flex Code
29180 status collapsed
29181
29182 \begin_layout Plain Layout
29183
29184 \change_inserted -970929547 1515111060
29185 DocBookItemTag
29186 \change_unchanged
29187
29188 \end_layout
29189
29190 \end_inset
29191
29192  [
29193 \begin_inset Flex Code
29194 status collapsed
29195
29196 \begin_layout Plain Layout
29197
29198 \change_inserted -970929547 1515111060
29199 string
29200 \change_unchanged
29201
29202 \end_layout
29203
29204 \end_inset
29205
29206 ] The tag to be used for the item tag within the inset, replacing 
29207 \begin_inset Quotes eld
29208 \end_inset
29209
29210
29211 \begin_inset Flex Code
29212 status collapsed
29213
29214 \begin_layout Plain Layout
29215
29216 \change_inserted -970929547 1515111060
29217 itemtag
29218 \change_unchanged
29219
29220 \end_layout
29221
29222 \end_inset
29223
29224
29225 \begin_inset Quotes erd
29226 \end_inset
29227
29228  in the example above.
29229  The default is 
29230 \begin_inset Flex Code
29231 status collapsed
29232
29233 \begin_layout Plain Layout
29234
29235 \change_inserted -970929547 1515111060
29236 NONE
29237 \change_unchanged
29238
29239 \end_layout
29240
29241 \end_inset
29242
29243 , indicating that there is no item tag.
29244  This parameter only makes sense when itemising layouts are used, such as
29245  lists.
29246  
29247 \change_inserted 1075283030 1597699890
29248
29249 \end_layout
29250
29251 \begin_layout Description
29252
29253 \change_inserted 1075283030 1597699890
29254 \begin_inset Flex Code
29255 status collapsed
29256
29257 \begin_layout Plain Layout
29258
29259 \change_inserted 1075283030 1597699890
29260 DocBookItemTagType
29261 \change_unchanged
29262
29263 \end_layout
29264
29265 \end_inset
29266
29267  [
29268 \begin_inset Flex Code
29269 status collapsed
29270
29271 \begin_layout Plain Layout
29272
29273 \change_inserted 1075283030 1597699890
29274 block, paragraph, inline
29275 \change_unchanged
29276
29277 \end_layout
29278
29279 \end_inset
29280
29281 ] The new-line policy for this tag, see Section
29282 \begin_inset space ~
29283 \end_inset
29284
29285
29286 \begin_inset CommandInset ref
29287 LatexCommand ref
29288 reference "subsec:DocBook-New-line-policy"
29289 plural "false"
29290 caps "false"
29291 noprefix "false"
29292
29293 \end_inset
29294
29295  for the details.
29296  
29297 \change_unchanged
29298
29299 \end_layout
29300
29301 \begin_layout Description
29302
29303 \change_inserted -970929547 1515111298
29304 \begin_inset Flex Code
29305 status collapsed
29306
29307 \begin_layout Plain Layout
29308
29309 \change_inserted -970929547 1515111124
29310 DocBookItemWrapperAttr
29311 \change_unchanged
29312
29313 \end_layout
29314
29315 \end_inset
29316
29317  [
29318 \begin_inset Flex Code
29319 status collapsed
29320
29321 \begin_layout Plain Layout
29322
29323 \change_inserted -970929547 1515111124
29324 string
29325 \change_unchanged
29326
29327 \end_layout
29328
29329 \end_inset
29330
29331 ] Specifies attribute information to be output with the item wrapper tag,
29332  replacing 
29333 \begin_inset Quotes eld
29334 \end_inset
29335
29336
29337 \begin_inset Flex Code
29338 status collapsed
29339
29340 \begin_layout Plain Layout
29341
29342 \change_inserted -970929547 1515111150
29343 itemwrapperattr
29344 \change_unchanged
29345
29346 \end_layout
29347
29348 \end_inset
29349
29350
29351 \begin_inset Quotes erd
29352 \end_inset
29353
29354  in the example above.
29355  This information can be used in further processing of the DocBook files.
29356  
29357 \change_unchanged
29358
29359 \end_layout
29360
29361 \begin_layout Description
29362
29363 \change_inserted -970929547 1515111113
29364 \begin_inset Flex Code
29365 status collapsed
29366
29367 \begin_layout Plain Layout
29368
29369 \change_inserted -970929547 1515111073
29370 DocBookItemWrapperTag
29371 \change_unchanged
29372
29373 \end_layout
29374
29375 \end_inset
29376
29377  [
29378 \begin_inset Flex Code
29379 status collapsed
29380
29381 \begin_layout Plain Layout
29382
29383 \change_inserted -970929547 1515111073
29384 string
29385 \change_unchanged
29386
29387 \end_layout
29388
29389 \end_inset
29390
29391 ] The tag to be used for the item wrapper tag within the inset, replacing
29392  
29393 \begin_inset Quotes eld
29394 \end_inset
29395
29396
29397 \begin_inset Flex Code
29398 status collapsed
29399
29400 \begin_layout Plain Layout
29401
29402 \change_inserted -970929547 1515111083
29403 itemwrappertag
29404 \change_unchanged
29405
29406 \end_layout
29407
29408 \end_inset
29409
29410
29411 \begin_inset Quotes erd
29412 \end_inset
29413
29414  in the example above.
29415  The default is 
29416 \begin_inset Flex Code
29417 status collapsed
29418
29419 \begin_layout Plain Layout
29420
29421 \change_inserted -970929547 1515111073
29422 NONE
29423 \change_unchanged
29424
29425 \end_layout
29426
29427 \end_inset
29428
29429 , indicating that there is no item wrapper tag: tag and content are directly
29430  output without it for each itemised element.
29431  This parameter only makes sense when itemising layouts are used, such as
29432  lists.
29433  
29434 \change_inserted 1075283030 1597699897
29435
29436 \end_layout
29437
29438 \begin_layout Description
29439
29440 \change_inserted 1075283030 1597699897
29441 \begin_inset Flex Code
29442 status collapsed
29443
29444 \begin_layout Plain Layout
29445
29446 \change_inserted 1075283030 1597699900
29447 DocBookItemWrapperTagType
29448 \change_unchanged
29449
29450 \end_layout
29451
29452 \end_inset
29453
29454  [
29455 \begin_inset Flex Code
29456 status collapsed
29457
29458 \begin_layout Plain Layout
29459
29460 \change_inserted 1075283030 1597699897
29461 block, paragraph, inline
29462 \change_unchanged
29463
29464 \end_layout
29465
29466 \end_inset
29467
29468 ] The new-line policy for this tag, see Section
29469 \begin_inset space ~
29470 \end_inset
29471
29472
29473 \begin_inset CommandInset ref
29474 LatexCommand ref
29475 reference "subsec:DocBook-New-line-policy"
29476 plural "false"
29477 caps "false"
29478 noprefix "false"
29479
29480 \end_inset
29481
29482  for the details.
29483  
29484 \change_unchanged
29485
29486 \end_layout
29487
29488 \begin_layout Description
29489
29490 \change_inserted -970929547 1515110104
29491 \begin_inset Flex Code
29492 status collapsed
29493
29494 \begin_layout Plain Layout
29495
29496 \change_inserted -970929547 1515110104
29497 DocBookInnerAttr
29498 \change_unchanged
29499
29500 \end_layout
29501
29502 \end_inset
29503
29504  [
29505 \begin_inset Flex Code
29506 status collapsed
29507
29508 \begin_layout Plain Layout
29509
29510 \change_inserted -970929547 1515110104
29511 string
29512 \change_unchanged
29513
29514 \end_layout
29515
29516 \end_inset
29517
29518 ] Specifies attribute information to be output with the inner tag, replacing
29519  
29520 \begin_inset Quotes eld
29521 \end_inset
29522
29523
29524 \begin_inset Flex Code
29525 status collapsed
29526
29527 \begin_layout Plain Layout
29528
29529 \change_inserted -970929547 1515110104
29530 innerattr
29531 \change_unchanged
29532
29533 \end_layout
29534
29535 \end_inset
29536
29537
29538 \begin_inset Quotes erd
29539 \end_inset
29540
29541  in the example above.
29542  This information can be used in further processing of the DocBook files.
29543  
29544 \end_layout
29545
29546 \begin_layout Description
29547
29548 \change_inserted -970929547 1515110906
29549 \begin_inset Flex Code
29550 status collapsed
29551
29552 \begin_layout Plain Layout
29553
29554 \change_inserted -970929547 1515110104
29555 DocBookInnerTag
29556 \change_unchanged
29557
29558 \end_layout
29559
29560 \end_inset
29561
29562  [
29563 \begin_inset Flex Code
29564 status collapsed
29565
29566 \begin_layout Plain Layout
29567
29568 \change_inserted -970929547 1515110104
29569 string
29570 \change_unchanged
29571
29572 \end_layout
29573
29574 \end_inset
29575
29576 ] The tag to be used for the inner tag within the inset, replacing 
29577 \begin_inset Quotes eld
29578 \end_inset
29579
29580
29581 \begin_inset Flex Code
29582 status collapsed
29583
29584 \begin_layout Plain Layout
29585
29586 \change_inserted -970929547 1515110104
29587 innertag
29588 \change_unchanged
29589
29590 \end_layout
29591
29592 \end_inset
29593
29594
29595 \begin_inset Quotes erd
29596 \end_inset
29597
29598  in the example above.
29599  The default is 
29600 \begin_inset Flex Code
29601 status collapsed
29602
29603 \begin_layout Plain Layout
29604
29605 \change_inserted -970929547 1515110791
29606 NONE
29607 \change_unchanged
29608
29609 \end_layout
29610
29611 \end_inset
29612
29613 , indicating that there is no inner tag: content is directly output without
29614  it.
29615 \change_inserted 1075283030 1597699904
29616
29617 \end_layout
29618
29619 \begin_layout Description
29620
29621 \change_inserted 1075283030 1597699904
29622 \begin_inset Flex Code
29623 status collapsed
29624
29625 \begin_layout Plain Layout
29626
29627 \change_inserted 1075283030 1597699904
29628 DocBookInnerTagType
29629 \change_unchanged
29630
29631 \end_layout
29632
29633 \end_inset
29634
29635  [
29636 \begin_inset Flex Code
29637 status collapsed
29638
29639 \begin_layout Plain Layout
29640
29641 \change_inserted 1075283030 1597699904
29642 block, paragraph, inline
29643 \change_unchanged
29644
29645 \end_layout
29646
29647 \end_inset
29648
29649 ] The new-line policy for this tag, see Section
29650 \begin_inset space ~
29651 \end_inset
29652
29653
29654 \begin_inset CommandInset ref
29655 LatexCommand ref
29656 reference "subsec:DocBook-New-line-policy"
29657 plural "false"
29658 caps "false"
29659 noprefix "false"
29660
29661 \end_inset
29662
29663  for the details.
29664  
29665 \change_unchanged
29666
29667 \end_layout
29668
29669 \begin_layout Description
29670
29671 \change_inserted -970929547 1515110753
29672 \begin_inset Flex Code
29673 status collapsed
29674
29675 \begin_layout Plain Layout
29676
29677 \change_inserted -970929547 1515110665
29678 DocBookSectionTag
29679 \change_unchanged
29680
29681 \end_layout
29682
29683 \end_inset
29684
29685  [
29686 \begin_inset Flex Code
29687 status collapsed
29688
29689 \begin_layout Plain Layout
29690
29691 \change_inserted -970929547 1515110661
29692 string
29693 \change_unchanged
29694
29695 \end_layout
29696
29697 \end_inset
29698
29699 ] Specifies the tag that corresponds to this kind of section.
29700  This parameter only makes sense for sectioning elements (part, chapter,
29701  section, etc.).
29702  The default value is 
29703 \begin_inset Flex Code
29704 status collapsed
29705
29706 \begin_layout Plain Layout
29707
29708 \change_inserted -970929547 1515110721
29709 section
29710 \change_unchanged
29711
29712 \end_layout
29713
29714 \end_inset
29715
29716 , and is only overridden when DocBook uses something else for sectioning
29717  (
29718 \change_inserted 1075283030 1597699921
29719 typically, 
29720 \change_inserted -970929547 1515110753
29721 parts and chapters of a book).
29722  
29723 \change_unchanged
29724
29725 \end_layout
29726
29727 \begin_layout Description
29728
29729 \change_inserted -970929547 1515110811
29730 \begin_inset Flex Code
29731 status collapsed
29732
29733 \begin_layout Plain Layout
29734
29735 \change_inserted -970929547 1496612023
29736 DocBookTag
29737 \change_unchanged
29738
29739 \end_layout
29740
29741 \end_inset
29742
29743  [
29744 \begin_inset Flex Code
29745 status collapsed
29746
29747 \begin_layout Plain Layout
29748
29749 \change_inserted -970929547 1496610966
29750 string
29751 \change_unchanged
29752
29753 \end_layout
29754
29755 \end_inset
29756
29757 ] The tag to be used for this inset, replacing 
29758 \begin_inset Quotes eld
29759 \end_inset
29760
29761
29762 \begin_inset Flex Code
29763 status collapsed
29764
29765 \begin_layout Plain Layout
29766
29767 \change_inserted -970929547 1496612033
29768 tag
29769 \change_unchanged
29770
29771 \end_layout
29772
29773 \end_inset
29774
29775
29776 \begin_inset Quotes erd
29777 \end_inset
29778
29779  in the example above.
29780  The default is the name of the float and always needs to be changed, as
29781  DocBook provides no generic inset tag.
29782 \change_inserted 1075283030 1597699924
29783
29784 \end_layout
29785
29786 \begin_layout Description
29787
29788 \change_inserted 1075283030 1597699924
29789 \begin_inset Flex Code
29790 status collapsed
29791
29792 \begin_layout Plain Layout
29793
29794 \change_inserted 1075283030 1597699924
29795 DocBookTagType
29796 \change_unchanged
29797
29798 \end_layout
29799
29800 \end_inset
29801
29802  [
29803 \begin_inset Flex Code
29804 status collapsed
29805
29806 \begin_layout Plain Layout
29807
29808 \change_inserted 1075283030 1597699924
29809 block, paragraph, inline
29810 \change_unchanged
29811
29812 \end_layout
29813
29814 \end_inset
29815
29816 ] The new-line policy for this tag, see Section
29817 \begin_inset space ~
29818 \end_inset
29819
29820
29821 \begin_inset CommandInset ref
29822 LatexCommand ref
29823 reference "subsec:DocBook-New-line-policy"
29824 plural "false"
29825 caps "false"
29826 noprefix "false"
29827
29828 \end_inset
29829
29830  for the details.
29831  
29832 \change_unchanged
29833
29834 \end_layout
29835
29836 \begin_layout Description
29837
29838 \change_inserted -970929547 1515110832
29839 \begin_inset Flex Code
29840 status collapsed
29841
29842 \begin_layout Plain Layout
29843
29844 \change_inserted -970929547 1515110822
29845 DocBookWrapperAttr
29846 \change_unchanged
29847
29848 \end_layout
29849
29850 \end_inset
29851
29852  [
29853 \begin_inset Flex Code
29854 status collapsed
29855
29856 \begin_layout Plain Layout
29857
29858 \change_inserted -970929547 1515110811
29859 string
29860 \change_unchanged
29861
29862 \end_layout
29863
29864 \end_inset
29865
29866 ] Specifies attribute information to be output with the outer tag, replacing
29867  
29868 \begin_inset Quotes eld
29869 \end_inset
29870
29871
29872 \begin_inset Flex Code
29873 status collapsed
29874
29875 \begin_layout Plain Layout
29876
29877 \change_inserted -970929547 1515110845
29878 wrapperattr
29879 \change_unchanged
29880
29881 \end_layout
29882
29883 \end_inset
29884
29885
29886 \begin_inset Quotes erd
29887 \end_inset
29888
29889  in the example above.
29890  This information can be used in further processing of the DocBook files.
29891  
29892 \end_layout
29893
29894 \begin_layout Description
29895
29896 \change_inserted -970929547 1515110917
29897 \begin_inset Flex Code
29898 status collapsed
29899
29900 \begin_layout Plain Layout
29901
29902 \change_inserted -970929547 1515110826
29903 DocBookWrapperTag
29904 \change_unchanged
29905
29906 \end_layout
29907
29908 \end_inset
29909
29910  [
29911 \begin_inset Flex Code
29912 status collapsed
29913
29914 \begin_layout Plain Layout
29915
29916 \change_inserted -970929547 1515110811
29917 string
29918 \change_unchanged
29919
29920 \end_layout
29921
29922 \end_inset
29923
29924 ] The tag to be used for the wrapper tag around the inset, replacing 
29925 \begin_inset Quotes eld
29926 \end_inset
29927
29928
29929 \begin_inset Flex Code
29930 status collapsed
29931
29932 \begin_layout Plain Layout
29933
29934 \change_inserted -970929547 1515110842
29935 wrappertag
29936 \change_unchanged
29937
29938 \end_layout
29939
29940 \end_inset
29941
29942
29943 \begin_inset Quotes erd
29944 \end_inset
29945
29946  in the example above.
29947  The default is 
29948 \begin_inset Flex Code
29949 status collapsed
29950
29951 \begin_layout Plain Layout
29952
29953 \change_inserted -970929547 1515110811
29954 NONE
29955 \change_unchanged
29956
29957 \end_layout
29958
29959 \end_inset
29960
29961 , indicating that there is no wrapper tag: tag and content are directly
29962  output without it.
29963 \change_inserted 1075283030 1597699929
29964
29965 \end_layout
29966
29967 \begin_layout Description
29968
29969 \change_inserted 1075283030 1597699929
29970 \begin_inset Flex Code
29971 status collapsed
29972
29973 \begin_layout Plain Layout
29974
29975 \change_inserted 1075283030 1597699932
29976 DocBookWrapperTagType
29977 \change_unchanged
29978
29979 \end_layout
29980
29981 \end_inset
29982
29983  [
29984 \begin_inset Flex Code
29985 status collapsed
29986
29987 \begin_layout Plain Layout
29988
29989 \change_inserted 1075283030 1597699929
29990 block, paragraph, inline
29991 \change_unchanged
29992
29993 \end_layout
29994
29995 \end_inset
29996
29997 ] The new-line policy for this tag, see Section
29998 \begin_inset space ~
29999 \end_inset
30000
30001
30002 \begin_inset CommandInset ref
30003 LatexCommand ref
30004 reference "subsec:DocBook-New-line-policy"
30005 plural "false"
30006 caps "false"
30007 noprefix "false"
30008
30009 \end_inset
30010
30011  for the details.
30012  
30013 \change_unchanged
30014
30015 \end_layout
30016
30017 \begin_layout Subsection
30018
30019 \change_inserted -970929547 1515110040
30020 Float DocBook
30021 \end_layout
30022
30023 \begin_layout Standard
30024
30025 \change_inserted -970929547 1496611700
30026 The DocBook output for floats too can be controlled by layout information.
30027  The output has the following form:
30028 \end_layout
30029
30030 \begin_layout LyX-Code
30031
30032 \change_inserted -970929547 1515109700
30033 <tag attr>
30034 \end_layout
30035
30036 \begin_layout LyX-Code
30037
30038 \change_inserted -970929547 1515110138
30039   Contents of the float as DocBook.
30040 \end_layout
30041
30042 \begin_layout LyX-Code
30043
30044 \change_inserted -970929547 1496610966
30045 </tag>
30046 \end_layout
30047
30048 \begin_layout Standard
30049
30050 \change_inserted -970929547 1496611715
30051 The caption, if there is one, is a separate inset and will be output as
30052  a title.
30053  
30054 \end_layout
30055
30056 \begin_layout Description
30057
30058 \change_inserted -970929547 1515110033
30059 \begin_inset Flex Code
30060 status collapsed
30061
30062 \begin_layout Plain Layout
30063
30064 \change_inserted -970929547 1515109702
30065 DocBookAttr
30066 \change_unchanged
30067
30068 \end_layout
30069
30070 \end_inset
30071
30072  [
30073 \begin_inset Flex Code
30074 status collapsed
30075
30076 \begin_layout Plain Layout
30077
30078 \change_inserted -970929547 1496610966
30079 string
30080 \change_unchanged
30081
30082 \end_layout
30083
30084 \end_inset
30085
30086 ] Specifies attribute information to be output with the main tag, replacing
30087  
30088 \begin_inset Quotes eld
30089 \end_inset
30090
30091
30092 \begin_inset Flex Code
30093 status collapsed
30094
30095 \begin_layout Plain Layout
30096
30097 \change_inserted -970929547 1515110035
30098 attr
30099 \change_unchanged
30100
30101 \end_layout
30102
30103 \end_inset
30104
30105
30106 \begin_inset Quotes erd
30107 \end_inset
30108
30109  in the example above.
30110  This information can be used in further processing of the DocBook files.
30111  
30112 \end_layout
30113
30114 \begin_layout Description
30115
30116 \change_inserted -970929547 1515110157
30117 \begin_inset Flex Code
30118 status collapsed
30119
30120 \begin_layout Plain Layout
30121
30122 \change_inserted -970929547 1496611782
30123 DocBookTag
30124 \change_unchanged
30125
30126 \end_layout
30127
30128 \end_inset
30129
30130  [
30131 \begin_inset Flex Code
30132 status collapsed
30133
30134 \begin_layout Plain Layout
30135
30136 \change_inserted -970929547 1496610966
30137 string
30138 \change_unchanged
30139
30140 \end_layout
30141
30142 \end_inset
30143
30144 ] The tag to be used for this float, replacing 
30145 \begin_inset Quotes eld
30146 \end_inset
30147
30148
30149 \begin_inset Flex Code
30150 status collapsed
30151
30152 \begin_layout Plain Layout
30153
30154 \change_inserted -970929547 1496610966
30155 tag
30156 \change_unchanged
30157
30158 \end_layout
30159
30160 \end_inset
30161
30162
30163 \begin_inset Quotes erd
30164 \end_inset
30165
30166  in the example above.
30167  The default is the name of the float and always needs to be changed, as
30168  DocBook provides no generic float tag.
30169 \end_layout
30170
30171 \begin_layout Subsection
30172
30173 \change_inserted -970929547 1515110157
30174 Bibliography formatting
30175 \end_layout
30176
30177 \begin_layout Standard
30178
30179 \change_deleted 1075283030 1597699984
30180 The 
30181 \change_inserted 1075283030 1597699985
30182 Included 
30183 \change_inserted -970929547 1515110187
30184 bibliograph
30185 \change_deleted 1075283030 1597699987
30186 y
30187 \change_inserted 1075283030 1597699987
30188 ies
30189 \change_inserted -970929547 1515110187
30190  cannot be formatted: all fields are always output in the database-like
30191  DocBook format (equivalent to a BibTeX file)
30192 \change_inserted 1075283030 1597700117
30193 , using the 
30194 \begin_inset Flex Code
30195 status collapsed
30196
30197 \begin_layout Plain Layout
30198
30199 \change_inserted 1075283030 1597700120
30200 biblioentry
30201 \change_unchanged
30202
30203 \end_layout
30204
30205 \end_inset
30206
30207  tag
30208 \change_inserted -970929547 1515110187
30209 .
30210 \change_inserted 1075283030 1597700092
30211
30212 \end_layout
30213
30214 \begin_layout Standard
30215
30216 \change_inserted 1075283030 1597700112
30217 When the bibliographic entries are manually inserted into the LyX document
30218  as Bibliography Items, the user deals with formatting themself: there is
30219  no attempt of parsing what the user wrote, the string is directly used
30220  (with the 
30221 \begin_inset Flex Code
30222 status collapsed
30223
30224 \begin_layout Plain Layout
30225
30226 \change_inserted 1075283030 1597700076
30227 bibliomixed
30228 \change_unchanged
30229
30230 \end_layout
30231
30232 \end_inset
30233
30234  tag).
30235  
30236 \change_unchanged
30237
30238 \end_layout
30239
30240 \begin_layout Chapter
30241 Including External Material
30242 \begin_inset CommandInset label
30243 LatexCommand label
30244 name "chap:Including-External-Material"
30245
30246 \end_inset
30247
30248
30249 \end_layout
30250
30251 \begin_layout Standard
30252 \begin_inset Box Shadowbox
30253 position "t"
30254 hor_pos "c"
30255 has_inner_box 1
30256 inner_pos "t"
30257 use_parbox 0
30258 use_makebox 0
30259 width "100col%"
30260 special "none"
30261 height "1in"
30262 height_special "totalheight"
30263 thickness "0.4pt"
30264 separation "3pt"
30265 shadowsize "4pt"
30266 framecolor "black"
30267 backgroundcolor "none"
30268 status open
30269
30270 \begin_layout Plain Layout
30271 WARNING: This portion of the documentation has not been updated for some
30272  time.
30273  We certainly hope that it is still accurate, but there are no guarantees.
30274 \end_layout
30275
30276 \end_inset
30277
30278
30279 \end_layout
30280
30281 \begin_layout Standard
30282 The use of material from sources external to \SpecialChar LyX
30283  is covered in detail in the
30284  
30285 \emph on
30286 Embedded Objects
30287 \emph default
30288  manual.
30289  This part of the manual covers what needs to happen behind the scenes for
30290  new sorts of material to be included.
30291 \end_layout
30292
30293 \begin_layout Section
30294 How does it work?
30295 \end_layout
30296
30297 \begin_layout Standard
30298 The external material feature is based on the concept of a 
30299 \emph on
30300 template
30301 \emph default
30302 .
30303  A template is a specification of how \SpecialChar LyX
30304  should interface with a certain kind
30305  of material.
30306  As bundled, \SpecialChar LyX
30307  comes with predefined templates for Xfig figures, various
30308  raster format images, chess diagrams, and LilyPond music notation.
30309  You can check the actual list by using the menu 
30310 \begin_inset Flex Noun
30311 status collapsed
30312
30313 \begin_layout Plain Layout
30314 Insert\SpecialChar menuseparator
30315 File\SpecialChar menuseparator
30316 External Material
30317 \end_layout
30318
30319 \end_inset
30320
30321 .
30322  Furthermore, it is possible to roll your own template to support a specific
30323  kind of material.
30324  Later we'll describe in more detail what is involved, and hopefully you
30325  will submit all the templates you create so we can include them in a later
30326  \SpecialChar LyX
30327  version.
30328 \end_layout
30329
30330 \begin_layout Standard
30331 Another basic idea of the external material feature is to distinguish between
30332  the original file that serves as a base for final material and the produced
30333  file that is included in your exported or printed document.
30334  For example, consider the case of a figure produced with 
30335 \begin_inset Flex Code
30336 status collapsed
30337
30338 \begin_layout Plain Layout
30339 Xfig
30340 \end_layout
30341
30342 \end_inset
30343
30344 .
30345  The Xfig application itself works on an original file with the 
30346 \begin_inset Flex Code
30347 status collapsed
30348
30349 \begin_layout Plain Layout
30350 .fig
30351 \end_layout
30352
30353 \end_inset
30354
30355  extension.
30356  Within Xfig, you create and change your figure, and when you are done,
30357  you save the 
30358 \begin_inset Flex Code
30359 status collapsed
30360
30361 \begin_layout Plain Layout
30362 fig
30363 \end_layout
30364
30365 \end_inset
30366
30367 -file.
30368  When you want to include the figure in your document, you invoke 
30369 \begin_inset Flex Code
30370 status collapsed
30371
30372 \begin_layout Plain Layout
30373 transfig
30374 \end_layout
30375
30376 \end_inset
30377
30378  in order to create a PostScript file that can readily be included in your
30379  \SpecialChar LaTeX
30380  file.
30381  In this case, the 
30382 \begin_inset Flex Code
30383 status collapsed
30384
30385 \begin_layout Plain Layout
30386 .fig
30387 \end_layout
30388
30389 \end_inset
30390
30391  file is the original file, and the PostScript file is the produced file.
30392 \end_layout
30393
30394 \begin_layout Standard
30395 This distinction is important in order to allow updating of the material
30396  while you are in the process of writing the document.
30397  Furthermore, it provides us with the flexibility that is needed to support
30398  multiple export formats.
30399  For instance, in the case of a plain text file, it is not exactly an award-winn
30400 ing idea to include the figure as raw PostScript.
30401  Instead, you would either prefer to just include a reference to the figure
30402  or try to invoke some graphics to ASCII converter to make the final result
30403  look similar to the real graphics.
30404  The external material management allows you to do this, because it is parametri
30405 zed on the different export formats that \SpecialChar LyX
30406  supports.
30407 \end_layout
30408
30409 \begin_layout Standard
30410 Besides supporting the production of different products according to the
30411  exported format, it supports tight integration with editing and viewing
30412  applications.
30413  In the case of an Xfig figure, you are able to invoke Xfig on the original
30414  file with a single click from within the external material dialog in \SpecialChar LyX
30415 ,
30416  and also preview the produced PostScript file with Ghostview with another
30417  click.
30418  No more fiddling around with the command line and/or file browsers to locate
30419  and manipulate the original or produced files.
30420  In this way, you are finally able to take full advantage of the many different
30421  applications that are relevant to use when you write your documents, and
30422  ultimately be more productive.
30423 \end_layout
30424
30425 \begin_layout Section
30426 The external template configuration files
30427 \end_layout
30428
30429 \begin_layout Standard
30430 It is relatively easy to add custom external template definitions to \SpecialChar LyX
30431 .
30432  However, be aware that doing this in an careless manner most probably 
30433 \emph on
30434 will
30435 \emph default
30436  introduce an easily exploitable security hole.
30437  So before you do this, please read the discussion about security in 
30438 \begin_inset CommandInset ref
30439 LatexCommand ref
30440 reference "sec:Security-discussion"
30441
30442 \end_inset
30443
30444 .
30445 \end_layout
30446
30447 \begin_layout Standard
30448 Having said that, we encourage you to submit any interesting templates that
30449  you create.
30450  
30451 \end_layout
30452
30453 \begin_layout Standard
30454 The external templates are defined in the 
30455 \begin_inset Flex Code
30456 status collapsed
30457
30458 \begin_layout Plain Layout
30459 *.xtemplate
30460 \end_layout
30461
30462 \end_inset
30463
30464  files that are stored in the 
30465 \begin_inset Flex Code
30466 status collapsed
30467
30468 \begin_layout Plain Layout
30469 LyXDir/lib/xtemplates/
30470 \end_layout
30471
30472 \end_inset
30473
30474  directory.
30475  Each template is defined in a file of its own.
30476  You can place your own templates in 
30477 \begin_inset Flex Code
30478 status collapsed
30479
30480 \begin_layout Plain Layout
30481 UserDir/xtemplates/
30482 \end_layout
30483
30484 \end_inset
30485
30486  or copy existing templates to that directory in order to modify them.
30487 \end_layout
30488
30489 \begin_layout Standard
30490 A typical template looks like this:
30491 \end_layout
30492
30493 \begin_layout LyX-Code
30494 Template XFig
30495 \end_layout
30496
30497 \begin_layout LyX-Code
30498 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
30499 \end_layout
30500
30501 \begin_layout LyX-Code
30502 HelpText
30503 \end_layout
30504
30505 \begin_layout LyX-Code
30506 An XFig figure.
30507 \end_layout
30508
30509 \begin_layout LyX-Code
30510 HelpTextEnd
30511 \end_layout
30512
30513 \begin_layout LyX-Code
30514 InputFormat fig
30515 \end_layout
30516
30517 \begin_layout LyX-Code
30518 FileFilter "*.fig"
30519 \end_layout
30520
30521 \begin_layout LyX-Code
30522 AutomaticProduction true
30523 \end_layout
30524
30525 \begin_layout LyX-Code
30526 Transform Rotate
30527 \end_layout
30528
30529 \begin_layout LyX-Code
30530 Transform Resize
30531 \end_layout
30532
30533 \begin_layout LyX-Code
30534 Format LaTeX
30535 \end_layout
30536
30537 \begin_layout LyX-Code
30538 TransformCommand Rotate RotationLatexCommand
30539 \end_layout
30540
30541 \begin_layout LyX-Code
30542 TransformCommand Resize ResizeLatexCommand
30543 \end_layout
30544
30545 \begin_layout LyX-Code
30546 Product "$$RotateFront$$ResizeFront
30547 \end_layout
30548
30549 \begin_layout LyX-Code
30550          
30551 \backslash
30552
30553 \backslash
30554 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
30555 \end_layout
30556
30557 \begin_layout LyX-Code
30558          $$ResizeBack$$RotateBack"
30559 \end_layout
30560
30561 \begin_layout LyX-Code
30562 UpdateFormat pstex
30563 \end_layout
30564
30565 \begin_layout LyX-Code
30566 UpdateResult "$$AbsPath$$Basename.pstex_t"
30567 \end_layout
30568
30569 \begin_layout LyX-Code
30570 Requirement "graphicx"
30571 \end_layout
30572
30573 \begin_layout LyX-Code
30574 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
30575 \end_layout
30576
30577 \begin_layout LyX-Code
30578 ReferencedFile latex "$$AbsPath$$Basename.eps"
30579 \end_layout
30580
30581 \begin_layout LyX-Code
30582 ReferencedFile dvi "$$AbsPath$$Basename.eps"
30583 \end_layout
30584
30585 \begin_layout LyX-Code
30586 FormatEnd
30587 \end_layout
30588
30589 \begin_layout LyX-Code
30590 Format PDFLaTeX
30591 \end_layout
30592
30593 \begin_layout LyX-Code
30594 TransformCommand Rotate RotationLatexCommand
30595 \end_layout
30596
30597 \begin_layout LyX-Code
30598 TransformCommand Resize ResizeLatexCommand
30599 \end_layout
30600
30601 \begin_layout LyX-Code
30602 Product "$$RotateFront$$ResizeFront
30603 \end_layout
30604
30605 \begin_layout LyX-Code
30606          
30607 \backslash
30608
30609 \backslash
30610 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
30611 \end_layout
30612
30613 \begin_layout LyX-Code
30614          $$ResizeBack$$RotateBack"
30615 \end_layout
30616
30617 \begin_layout LyX-Code
30618 UpdateFormat pdftex
30619 \end_layout
30620
30621 \begin_layout LyX-Code
30622 UpdateResult "$$AbsPath$$Basename.pdftex_t"
30623 \end_layout
30624
30625 \begin_layout LyX-Code
30626 Requirement "graphicx"
30627 \end_layout
30628
30629 \begin_layout LyX-Code
30630 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
30631 \end_layout
30632
30633 \begin_layout LyX-Code
30634 ReferencedFile latex "$$AbsPath$$Basename.pdf"
30635 \end_layout
30636
30637 \begin_layout LyX-Code
30638 FormatEnd
30639 \end_layout
30640
30641 \begin_layout LyX-Code
30642 Format Ascii
30643 \end_layout
30644
30645 \begin_layout LyX-Code
30646 Product "[XFig: $$FName]"
30647 \end_layout
30648
30649 \begin_layout LyX-Code
30650 FormatEnd
30651 \end_layout
30652
30653 \begin_layout LyX-Code
30654 Format DocBook
30655 \end_layout
30656
30657 \begin_layout LyX-Code
30658 Product "<graphic fileref=
30659 \backslash
30660 "$$AbsOrRelPathMaster$$Basename.eps
30661 \backslash
30662 ">
30663 \end_layout
30664
30665 \begin_layout LyX-Code
30666          </graphic>"
30667 \end_layout
30668
30669 \begin_layout LyX-Code
30670 UpdateFormat eps
30671 \end_layout
30672
30673 \begin_layout LyX-Code
30674 UpdateResult "$$AbsPath$$Basename.eps"
30675 \end_layout
30676
30677 \begin_layout LyX-Code
30678 ReferencedFile docbook "$$AbsPath$$Basename.eps"
30679 \end_layout
30680
30681 \begin_layout LyX-Code
30682 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
30683 \end_layout
30684
30685 \begin_layout LyX-Code
30686 FormatEnd
30687 \end_layout
30688
30689 \begin_layout LyX-Code
30690 TemplateEnd
30691 \end_layout
30692
30693 \begin_layout Standard
30694 As you can see, the template is enclosed in 
30695 \begin_inset Flex Code
30696 status collapsed
30697
30698 \begin_layout Plain Layout
30699 Template
30700 \end_layout
30701
30702 \end_inset
30703
30704  \SpecialChar ldots
30705  
30706 \begin_inset Flex Code
30707 status collapsed
30708
30709 \begin_layout Plain Layout
30710 TemplateEnd
30711 \end_layout
30712
30713 \end_inset
30714
30715 .
30716  It contains a header specifying some general settings and, for each supported
30717  primary document file format, a section 
30718 \begin_inset Flex Code
30719 status collapsed
30720
30721 \begin_layout Plain Layout
30722 Format
30723 \end_layout
30724
30725 \end_inset
30726
30727  \SpecialChar ldots
30728  
30729 \begin_inset Flex Code
30730 status collapsed
30731
30732 \begin_layout Plain Layout
30733 FormatEnd
30734 \end_layout
30735
30736 \end_inset
30737
30738 .
30739 \end_layout
30740
30741 \begin_layout Subsection
30742 The template header
30743 \end_layout
30744
30745 \begin_layout Description
30746 \begin_inset Flex Code
30747 status collapsed
30748
30749 \begin_layout Plain Layout
30750 AutomaticProduction
30751 \begin_inset space ~
30752 \end_inset
30753
30754 true|false
30755 \end_layout
30756
30757 \end_inset
30758
30759  Whether the file represented by the template must be generated by \SpecialChar LyX
30760 .
30761  This command must occur exactly once.
30762 \end_layout
30763
30764 \begin_layout Description
30765 \begin_inset Flex Code
30766 status collapsed
30767
30768 \begin_layout Plain Layout
30769 FileFilter
30770 \begin_inset space ~
30771 \end_inset
30772
30773 <pattern>
30774 \end_layout
30775
30776 \end_inset
30777
30778  A glob pattern that is used in the file dialog to filter out the desired
30779  files.
30780  If there is more than one possible file extension (e.
30781 \begin_inset space \thinspace{}
30782 \end_inset
30783
30784 g.
30785 \begin_inset space \space{}
30786 \end_inset
30787
30788 tgif has 
30789 \begin_inset Flex Code
30790 status collapsed
30791
30792 \begin_layout Plain Layout
30793 .obj
30794 \end_layout
30795
30796 \end_inset
30797
30798  and 
30799 \begin_inset Flex Code
30800 status collapsed
30801
30802 \begin_layout Plain Layout
30803 .tgo
30804 \end_layout
30805
30806 \end_inset
30807
30808 ), use something like 
30809 \begin_inset Flex Code
30810 status collapsed
30811
30812 \begin_layout Plain Layout
30813 "*.{obj,tgo}"
30814 \end_layout
30815
30816 \end_inset
30817
30818 .
30819  This command must occur exactly once.
30820 \end_layout
30821
30822 \begin_layout Description
30823 \begin_inset Flex Code
30824 status collapsed
30825
30826 \begin_layout Plain Layout
30827 GuiName
30828 \begin_inset space ~
30829 \end_inset
30830
30831 <guiname>
30832 \end_layout
30833
30834 \end_inset
30835
30836  The text that is displayed on the button.
30837  This command must occur exactly once.
30838 \end_layout
30839
30840 \begin_layout Description
30841 \begin_inset Flex Code
30842 status collapsed
30843
30844 \begin_layout Plain Layout
30845 HelpText
30846 \begin_inset space ~
30847 \end_inset
30848
30849 <text>
30850 \begin_inset space ~
30851 \end_inset
30852
30853 HelpTextEnd
30854 \end_layout
30855
30856 \end_inset
30857
30858  The help text that is used in the External dialog.
30859  Provide enough information to explain to the user just what the template
30860  can provide him with.
30861  This command must occur exactly once.
30862 \end_layout
30863
30864 \begin_layout Description
30865 \begin_inset Flex Code
30866 status collapsed
30867
30868 \begin_layout Plain Layout
30869 InputFormat
30870 \begin_inset space ~
30871 \end_inset
30872
30873 <format>
30874 \end_layout
30875
30876 \end_inset
30877
30878  The file format of the original file.
30879  This must be the name of a format that is known to \SpecialChar LyX
30880  (see 
30881 \begin_inset CommandInset ref
30882 LatexCommand ref
30883 reference "sec:Formats"
30884
30885 \end_inset
30886
30887 ).
30888  Use 
30889 \begin_inset Quotes eld
30890 \end_inset
30891
30892
30893 \begin_inset Flex Code
30894 status collapsed
30895
30896 \begin_layout Plain Layout
30897 *
30898 \end_layout
30899
30900 \end_inset
30901
30902
30903 \begin_inset Quotes erd
30904 \end_inset
30905
30906  if the template can handle original files of more than one format.
30907  \SpecialChar LyX
30908  will attempt to interrogate the file itself in order to deduce its format
30909  in this case.
30910  This command must occur exactly once.
30911 \end_layout
30912
30913 \begin_layout Description
30914 \begin_inset Flex Code
30915 status collapsed
30916
30917 \begin_layout Plain Layout
30918 Template
30919 \begin_inset space ~
30920 \end_inset
30921
30922 <id>
30923 \end_layout
30924
30925 \end_inset
30926
30927  A unique name for the template.
30928  It must not contain substitution macros (see below).
30929 \end_layout
30930
30931 \begin_layout Description
30932 \begin_inset Flex Code
30933 status collapsed
30934
30935 \begin_layout Plain Layout
30936 Transform
30937 \begin_inset space ~
30938 \end_inset
30939
30940 Rotate|Resize|Clip|Extra
30941 \end_layout
30942
30943 \end_inset
30944
30945  This command specifies which transformations are supported by this template.
30946  It may occur zero or more times.
30947  This command enables the corresponding tabs in the external dialog.
30948  Each 
30949 \begin_inset Flex Code
30950 status collapsed
30951
30952 \begin_layout Plain Layout
30953 Transform
30954 \end_layout
30955
30956 \end_inset
30957
30958  command must have either a corresponding 
30959 \begin_inset Flex Code
30960 status collapsed
30961
30962 \begin_layout Plain Layout
30963 TransformCommand
30964 \end_layout
30965
30966 \end_inset
30967
30968  or a 
30969 \begin_inset Flex Code
30970 status collapsed
30971
30972 \begin_layout Plain Layout
30973 TransformOption
30974 \end_layout
30975
30976 \end_inset
30977
30978  command in the 
30979 \begin_inset Flex Code
30980 status collapsed
30981
30982 \begin_layout Plain Layout
30983 Format
30984 \end_layout
30985
30986 \end_inset
30987
30988  section.
30989  Otherwise the transformation will not be supported by that format.
30990 \end_layout
30991
30992 \begin_layout Subsection
30993 The Format section
30994 \end_layout
30995
30996 \begin_layout Description
30997 \begin_inset Flex Code
30998 status collapsed
30999
31000 \begin_layout Plain Layout
31001 Format
31002 \begin_inset space ~
31003 \end_inset
31004
31005 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
31006 \end_layout
31007
31008 \end_inset
31009
31010  The primary document file format that this format definition is for.
31011  Not every template has a sensible representation in all document file formats.
31012  Please define nevertheless a 
31013 \begin_inset Flex Code
31014 status collapsed
31015
31016 \begin_layout Plain Layout
31017 Format
31018 \end_layout
31019
31020 \end_inset
31021
31022  section for all templates.
31023  Use a dummy text when no representation is available.
31024  Then you can at least see a reference to the external material in the exported
31025  document.
31026 \end_layout
31027
31028 \begin_layout Description
31029 \begin_inset Flex Code
31030 status collapsed
31031
31032 \begin_layout Plain Layout
31033 Option
31034 \begin_inset space ~
31035 \end_inset
31036
31037 <name>
31038 \begin_inset space ~
31039 \end_inset
31040
31041 <value>
31042 \end_layout
31043
31044 \end_inset
31045
31046  This command defines an additional macro 
31047 \begin_inset Flex Code
31048 status collapsed
31049
31050 \begin_layout Plain Layout
31051 $$<name>
31052 \end_layout
31053
31054 \end_inset
31055
31056  for substitution in 
31057 \begin_inset Flex Code
31058 status collapsed
31059
31060 \begin_layout Plain Layout
31061 Product
31062 \end_layout
31063
31064 \end_inset
31065
31066 .
31067  
31068 \begin_inset Flex Code
31069 status collapsed
31070
31071 \begin_layout Plain Layout
31072 <value>
31073 \end_layout
31074
31075 \end_inset
31076
31077  itself may contain substitution macros.
31078  The advantage over using 
31079 \begin_inset Flex Code
31080 status collapsed
31081
31082 \begin_layout Plain Layout
31083 <value>
31084 \end_layout
31085
31086 \end_inset
31087
31088  directly in 
31089 \begin_inset Flex Code
31090 status collapsed
31091
31092 \begin_layout Plain Layout
31093 Product
31094 \end_layout
31095
31096 \end_inset
31097
31098  is that the substituted value of 
31099 \begin_inset Flex Code
31100 status collapsed
31101
31102 \begin_layout Plain Layout
31103 $$<name>
31104 \end_layout
31105
31106 \end_inset
31107
31108  is sanitized so that it is a valid optional argument in the document format.
31109  This command may occur zero or more times.
31110 \end_layout
31111
31112 \begin_layout Description
31113 \begin_inset Flex Code
31114 status collapsed
31115
31116 \begin_layout Plain Layout
31117 Product
31118 \begin_inset space ~
31119 \end_inset
31120
31121 <text>
31122 \end_layout
31123
31124 \end_inset
31125
31126  The text that is inserted in the exported document.
31127  This is actually the most important command and can be quite complex.
31128  This command must occur exactly once.
31129 \end_layout
31130
31131 \begin_layout Description
31132 \begin_inset Flex Code
31133 status collapsed
31134
31135 \begin_layout Plain Layout
31136 Preamble
31137 \begin_inset space ~
31138 \end_inset
31139
31140 <name>
31141 \end_layout
31142
31143 \end_inset
31144
31145  This command specifies a preamble snippet that will be included in the
31146  \SpecialChar LaTeX
31147  preamble.
31148  It has to be defined using 
31149 \begin_inset Flex Code
31150 status collapsed
31151
31152 \begin_layout Plain Layout
31153 PreambleDef
31154 \end_layout
31155
31156 \end_inset
31157
31158  \SpecialChar ldots
31159  
31160 \begin_inset Flex Code
31161 status collapsed
31162
31163 \begin_layout Plain Layout
31164 PreambleDefEnd
31165 \end_layout
31166
31167 \end_inset
31168
31169 .
31170  This command may occur zero or more times.
31171 \end_layout
31172
31173 \begin_layout Description
31174 \begin_inset Flex Code
31175 status collapsed
31176
31177 \begin_layout Plain Layout
31178 ReferencedFile
31179 \begin_inset space ~
31180 \end_inset
31181
31182 <format>
31183 \begin_inset space ~
31184 \end_inset
31185
31186 <filename>
31187 \end_layout
31188
31189 \end_inset
31190
31191  This command denotes files that are created by the conversion process and
31192  are needed for a particular export format.
31193  If the filename is relative, it is interpreted relative to the master document.
31194  This command may be given zero or more times.
31195 \end_layout
31196
31197 \begin_layout Description
31198 \begin_inset Flex Code
31199 status collapsed
31200
31201 \begin_layout Plain Layout
31202 Requirement
31203 \begin_inset space ~
31204 \end_inset
31205
31206 <package>
31207 \end_layout
31208
31209 \end_inset
31210
31211  The name of a required \SpecialChar LaTeX
31212  package.
31213  The package is included via 
31214 \begin_inset Flex Code
31215 status collapsed
31216
31217 \begin_layout Plain Layout
31218
31219 \backslash
31220 usepackage{}
31221 \end_layout
31222
31223 \end_inset
31224
31225  in the \SpecialChar LaTeX
31226  preamble.
31227  This command may occur zero or more times.
31228 \end_layout
31229
31230 \begin_layout Description
31231 \begin_inset Flex Code
31232 status collapsed
31233
31234 \begin_layout Plain Layout
31235 TransformCommand
31236 \begin_inset space ~
31237 \end_inset
31238
31239 Rotate
31240 \begin_inset space ~
31241 \end_inset
31242
31243 RotationLatexCommand
31244 \end_layout
31245
31246 \end_inset
31247
31248  This command specifies that the built in \SpecialChar LaTeX
31249  command should be used for rotation.
31250  This command may occur once or not at all.
31251 \end_layout
31252
31253 \begin_layout Description
31254 \begin_inset Flex Code
31255 status collapsed
31256
31257 \begin_layout Plain Layout
31258 TransformCommand
31259 \begin_inset space ~
31260 \end_inset
31261
31262 Resize
31263 \begin_inset space ~
31264 \end_inset
31265
31266 ResizeLatexCommand
31267 \end_layout
31268
31269 \end_inset
31270
31271  This command specifies that the built in \SpecialChar LaTeX
31272  command should be used for resizing.
31273  This command may occur once or not at all.
31274 \end_layout
31275
31276 \begin_layout Description
31277 \begin_inset Flex Code
31278 status collapsed
31279
31280 \begin_layout Plain Layout
31281 TransformOption
31282 \begin_inset space ~
31283 \end_inset
31284
31285 Rotate
31286 \begin_inset space ~
31287 \end_inset
31288
31289 RotationLatexOption
31290 \end_layout
31291
31292 \end_inset
31293
31294  This command specifies that rotation is done via an optional argument.
31295  This command may occur once or not at all.
31296 \end_layout
31297
31298 \begin_layout Description
31299 \begin_inset Flex Code
31300 status collapsed
31301
31302 \begin_layout Plain Layout
31303 TransformOption
31304 \begin_inset space ~
31305 \end_inset
31306
31307 Resize
31308 \begin_inset space ~
31309 \end_inset
31310
31311 ResizeLatexOption
31312 \end_layout
31313
31314 \end_inset
31315
31316  This command specifies that resizing is done via an optional argument.
31317  This command may occur once or not at all.
31318 \end_layout
31319
31320 \begin_layout Description
31321 \begin_inset Flex Code
31322 status collapsed
31323
31324 \begin_layout Plain Layout
31325 TransformOption
31326 \begin_inset space ~
31327 \end_inset
31328
31329 Clip
31330 \begin_inset space ~
31331 \end_inset
31332
31333 ClipLatexOption
31334 \end_layout
31335
31336 \end_inset
31337
31338  This command specifies that clipping is done via an optional argument.
31339  This command may occur once or not at all.
31340 \end_layout
31341
31342 \begin_layout Description
31343 \begin_inset Flex Code
31344 status collapsed
31345
31346 \begin_layout Plain Layout
31347 TransformOption
31348 \begin_inset space ~
31349 \end_inset
31350
31351 Extra
31352 \begin_inset space ~
31353 \end_inset
31354
31355 ExtraLatexOption
31356 \end_layout
31357
31358 \end_inset
31359
31360  This command specifies that an extra optional argument is used.
31361  This command may occur once or not at all.
31362 \end_layout
31363
31364 \begin_layout Description
31365 \begin_inset Flex Code
31366 status collapsed
31367
31368 \begin_layout Plain Layout
31369 UpdateFormat
31370 \begin_inset space ~
31371 \end_inset
31372
31373 <format>
31374 \end_layout
31375
31376 \end_inset
31377
31378  The file format of the converted file.
31379  This must be the name of a format that is known to \SpecialChar LyX
31380  (see the 
31381 \begin_inset Flex Noun
31382 status collapsed
31383
31384 \begin_layout Plain Layout
31385 Tools\SpecialChar menuseparator
31386 Preferences\SpecialChar menuseparator
31387 File Handling\SpecialChar menuseparator
31388 File Format
31389 \end_layout
31390
31391 \end_inset
31392
31393  dialog).
31394  This command must occur exactly once.
31395  If the resulting file format is PDF, you need to specify the format 
31396 \begin_inset Flex Code
31397 status collapsed
31398
31399 \begin_layout Plain Layout
31400 pdf6
31401 \end_layout
31402
31403 \end_inset
31404
31405 .
31406  This is the PDF format used for including graphics.
31407  The other defined PDF formats are for document export.
31408 \end_layout
31409
31410 \begin_layout Description
31411 \begin_inset Flex Code
31412 status collapsed
31413
31414 \begin_layout Plain Layout
31415 UpdateResult
31416 \begin_inset space ~
31417 \end_inset
31418
31419 <filename>
31420 \end_layout
31421
31422 \end_inset
31423
31424  The file name of the converted file.
31425  The file name must be absolute.
31426  This command must occur exactly once.
31427 \end_layout
31428
31429 \begin_layout Subsection
31430 Preamble definitions
31431 \end_layout
31432
31433 \begin_layout Standard
31434 The external template configuration file may contain additional preamble
31435  definitions enclosed by 
31436 \begin_inset Flex Code
31437 status collapsed
31438
31439 \begin_layout Plain Layout
31440 PreambleDef
31441 \end_layout
31442
31443 \end_inset
31444
31445  \SpecialChar ldots
31446  
31447 \begin_inset Flex Code
31448 status collapsed
31449
31450 \begin_layout Plain Layout
31451 PreambleDefEnd
31452 \end_layout
31453
31454 \end_inset
31455
31456 .
31457  They can be used by the templates in the 
31458 \begin_inset Flex Code
31459 status collapsed
31460
31461 \begin_layout Plain Layout
31462 Format
31463 \end_layout
31464
31465 \end_inset
31466
31467  section.
31468 \end_layout
31469
31470 \begin_layout Section
31471 The substitution mechanism
31472 \end_layout
31473
31474 \begin_layout Standard
31475 When the external material facility invokes an external program, it is done
31476  on the basis of a command defined in the template configuration file.
31477  These commands can contain various macros that are expanded before execution.
31478  Execution always take place in the directory of the containing document.
31479 \end_layout
31480
31481 \begin_layout Standard
31482 Also, whenever external material is to be displayed, the name will be produced
31483  by the substitution mechanism, and most other commands in the template
31484  definition support substitution as well.
31485 \end_layout
31486
31487 \begin_layout Standard
31488 The available macros are the following:
31489 \end_layout
31490
31491 \begin_layout Description
31492 \begin_inset Flex Code
31493 status collapsed
31494
31495 \begin_layout Plain Layout
31496 $$AbsOrRelPathMaster
31497 \end_layout
31498
31499 \end_inset
31500
31501  The file path, absolute or relative to the master \SpecialChar LyX
31502  document.
31503 \end_layout
31504
31505 \begin_layout Description
31506 \begin_inset Flex Code
31507 status collapsed
31508
31509 \begin_layout Plain Layout
31510 $$AbsOrRelPathParent
31511 \end_layout
31512
31513 \end_inset
31514
31515  The file path, absolute or relative to the \SpecialChar LyX
31516  document.
31517 \end_layout
31518
31519 \begin_layout Description
31520 \begin_inset Flex Code
31521 status collapsed
31522
31523 \begin_layout Plain Layout
31524 $$AbsPath
31525 \end_layout
31526
31527 \end_inset
31528
31529  The absolute file path.
31530 \end_layout
31531
31532 \begin_layout Description
31533 \begin_inset Flex Code
31534 status collapsed
31535
31536 \begin_layout Plain Layout
31537 $$Basename
31538 \end_layout
31539
31540 \end_inset
31541
31542  The filename without path and without the extension.
31543 \end_layout
31544
31545 \begin_layout Description
31546 \begin_inset Flex Code
31547 status collapsed
31548
31549 \begin_layout Plain Layout
31550 $$Contents(
31551 \begin_inset Quotes eld
31552 \end_inset
31553
31554 filename.ext
31555 \begin_inset Quotes erd
31556 \end_inset
31557
31558 )
31559 \end_layout
31560
31561 \end_inset
31562
31563  This macro will expand to the contents of the file with the name 
31564 \begin_inset Flex Code
31565 status collapsed
31566
31567 \begin_layout Plain Layout
31568 filename.ext
31569 \end_layout
31570
31571 \end_inset
31572
31573 .
31574 \end_layout
31575
31576 \begin_layout Description
31577 \begin_inset Flex Code
31578 status collapsed
31579
31580 \begin_layout Plain Layout
31581 $$Extension
31582 \end_layout
31583
31584 \end_inset
31585
31586  The file extension (including the dot).
31587 \end_layout
31588
31589 \begin_layout Description
31590 \begin_inset Flex Code
31591 status collapsed
31592
31593 \begin_layout Plain Layout
31594 $$pngOrjpg
31595 \end_layout
31596
31597 \end_inset
31598
31599  This will be the string 
31600 \begin_inset Quotes eld
31601 \end_inset
31602
31603 jpg
31604 \begin_inset Quotes erd
31605 \end_inset
31606
31607  if the file is in JPEG format, otherwise it will be the string 
31608 \begin_inset Quotes eld
31609 \end_inset
31610
31611 png
31612 \begin_inset Quotes erd
31613 \end_inset
31614
31615 .
31616  This is useful to avoid uneeded conversions for output formats that support
31617  both PNG and JPEG fomats.
31618  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
31619  output
31620  format.
31621 \end_layout
31622
31623 \begin_layout Description
31624 \begin_inset Flex Code
31625 status collapsed
31626
31627 \begin_layout Plain Layout
31628 $$FName
31629 \end_layout
31630
31631 \end_inset
31632
31633  The filename of the file specified in the external material dialog.
31634  This is either an absolute name, or it is relative to the \SpecialChar LyX
31635  document.
31636 \end_layout
31637
31638 \begin_layout Description
31639 \begin_inset Flex Code
31640 status collapsed
31641
31642 \begin_layout Plain Layout
31643 $$FPath
31644 \end_layout
31645
31646 \end_inset
31647
31648  The path part of 
31649 \begin_inset Flex Code
31650 status collapsed
31651
31652 \begin_layout Plain Layout
31653 $$FName
31654 \end_layout
31655
31656 \end_inset
31657
31658  (absolute name or relative to the \SpecialChar LyX
31659  document).
31660 \end_layout
31661
31662 \begin_layout Description
31663 \begin_inset Flex Code
31664 status collapsed
31665
31666 \begin_layout Plain Layout
31667 $$RelPathMaster
31668 \end_layout
31669
31670 \end_inset
31671
31672  The file path, relative to the master \SpecialChar LyX
31673  document.
31674 \end_layout
31675
31676 \begin_layout Description
31677 \begin_inset Flex Code
31678 status collapsed
31679
31680 \begin_layout Plain Layout
31681 $$RelPathParent
31682 \end_layout
31683
31684 \end_inset
31685
31686  The file path, relative to the \SpecialChar LyX
31687  document.
31688 \end_layout
31689
31690 \begin_layout Description
31691 \begin_inset Flex Code
31692 status collapsed
31693
31694 \begin_layout Plain Layout
31695 $$Sysdir
31696 \end_layout
31697
31698 \end_inset
31699
31700  This macro will expand to the absolute path of the system directory.
31701  This is typically used to point to the various helper scripts that are
31702  bundled with \SpecialChar LyX
31703 .
31704 \end_layout
31705
31706 \begin_layout Description
31707 \begin_inset Flex Code
31708 status collapsed
31709
31710 \begin_layout Plain Layout
31711 $$Tempname
31712 \end_layout
31713
31714 \end_inset
31715
31716  A name and full path to a temporary file which will be automatically deleted
31717  whenever the containing document is closed, or the external material insertion
31718  deleted.
31719 \end_layout
31720
31721 \begin_layout Standard
31722 All path macros contain a trailing directory separator, so you can construct
31723  e.
31724 \begin_inset space \thinspace{}
31725 \end_inset
31726
31727 g.
31728 \begin_inset space \space{}
31729 \end_inset
31730
31731 the absolute filename with 
31732 \begin_inset Flex Code
31733 status collapsed
31734
31735 \begin_layout Plain Layout
31736 $$AbsPath$$Basename$$Extension
31737 \end_layout
31738
31739 \end_inset
31740
31741 .
31742 \end_layout
31743
31744 \begin_layout Standard
31745 The macros above are substituted in all commands unless otherwise noted.
31746  The command 
31747 \begin_inset Flex Code
31748 status collapsed
31749
31750 \begin_layout Plain Layout
31751 Product
31752 \end_layout
31753
31754 \end_inset
31755
31756  supports additionally the following substitutions if they are enabled by
31757  the 
31758 \begin_inset Flex Code
31759 status collapsed
31760
31761 \begin_layout Plain Layout
31762 Transform
31763 \end_layout
31764
31765 \end_inset
31766
31767  and 
31768 \begin_inset Flex Code
31769 status collapsed
31770
31771 \begin_layout Plain Layout
31772 TransformCommand
31773 \end_layout
31774
31775 \end_inset
31776
31777  commands:
31778 \end_layout
31779
31780 \begin_layout Description
31781 \begin_inset Flex Code
31782 status collapsed
31783
31784 \begin_layout Plain Layout
31785 $$ResizeFront
31786 \end_layout
31787
31788 \end_inset
31789
31790  The front part of the resize command.
31791 \end_layout
31792
31793 \begin_layout Description
31794 \begin_inset Flex Code
31795 status collapsed
31796
31797 \begin_layout Plain Layout
31798 $$ResizeBack
31799 \end_layout
31800
31801 \end_inset
31802
31803  The back part of the resize command.
31804 \end_layout
31805
31806 \begin_layout Description
31807 \begin_inset Flex Code
31808 status collapsed
31809
31810 \begin_layout Plain Layout
31811 $$RotateFront
31812 \end_layout
31813
31814 \end_inset
31815
31816  The front part of the rotation command.
31817 \end_layout
31818
31819 \begin_layout Description
31820 \begin_inset Flex Code
31821 status collapsed
31822
31823 \begin_layout Plain Layout
31824 $$RotateBack
31825 \end_layout
31826
31827 \end_inset
31828
31829  The back part of the rotation command.
31830 \end_layout
31831
31832 \begin_layout Standard
31833 The value string of the 
31834 \begin_inset Flex Code
31835 status collapsed
31836
31837 \begin_layout Plain Layout
31838 Option
31839 \end_layout
31840
31841 \end_inset
31842
31843  command supports additionally the following substitutions if they are enabled
31844  by the 
31845 \begin_inset Flex Code
31846 status collapsed
31847
31848 \begin_layout Plain Layout
31849 Transform
31850 \end_layout
31851
31852 \end_inset
31853
31854  and 
31855 \begin_inset Flex Code
31856 status collapsed
31857
31858 \begin_layout Plain Layout
31859 TransformOption
31860 \end_layout
31861
31862 \end_inset
31863
31864  commands:
31865 \end_layout
31866
31867 \begin_layout Description
31868 \begin_inset Flex Code
31869 status collapsed
31870
31871 \begin_layout Plain Layout
31872 $$Clip
31873 \end_layout
31874
31875 \end_inset
31876
31877  The clip option.
31878 \end_layout
31879
31880 \begin_layout Description
31881 \begin_inset Flex Code
31882 status collapsed
31883
31884 \begin_layout Plain Layout
31885 $$Extra
31886 \end_layout
31887
31888 \end_inset
31889
31890  The extra option.
31891 \end_layout
31892
31893 \begin_layout Description
31894 \begin_inset Flex Code
31895 status collapsed
31896
31897 \begin_layout Plain Layout
31898 $$Resize
31899 \end_layout
31900
31901 \end_inset
31902
31903  The resize option.
31904 \end_layout
31905
31906 \begin_layout Description
31907 \begin_inset Flex Code
31908 status collapsed
31909
31910 \begin_layout Plain Layout
31911 $$Rotate
31912 \end_layout
31913
31914 \end_inset
31915
31916  The rotation option.
31917 \end_layout
31918
31919 \begin_layout Standard
31920 You may ask why there are so many path macros.
31921  There are mainly two reasons:
31922 \end_layout
31923
31924 \begin_layout Enumerate
31925 Relative and absolute file names should remain relative or absolute, respectivel
31926 y.
31927  Users may have reasons to prefer either form.
31928  Relative names are useful for portable documents that should work on different
31929  machines, for example.
31930  Absolute names may be required by some programs.
31931 \end_layout
31932
31933 \begin_layout Enumerate
31934 \SpecialChar LaTeX
31935  treats relative file names differently than \SpecialChar LyX
31936  and other programs in nested
31937  included files.
31938  For \SpecialChar LyX
31939 , a relative file name is always relative to the document that contains
31940  the file name.
31941  For \SpecialChar LaTeX
31942 , it is always relative to the master document.
31943  These two definitions are identical if you have only one document, but
31944  differ if you have a master document that includes part documents.
31945  That means that relative filenames must be transformed when presented to
31946  \SpecialChar LaTeX
31947 .
31948  Fortunately \SpecialChar LyX
31949  does this automatically for you if you choose the right macros.
31950 \end_layout
31951
31952 \begin_layout Standard
31953 So which path macro should be used in new template definitions? The rule
31954  is not difficult:
31955 \end_layout
31956
31957 \begin_layout Itemize
31958 Use 
31959 \begin_inset Flex Code
31960 status collapsed
31961
31962 \begin_layout Plain Layout
31963 $$AbsPath
31964 \end_layout
31965
31966 \end_inset
31967
31968  if an absolute path is required.
31969 \end_layout
31970
31971 \begin_layout Itemize
31972 Use 
31973 \begin_inset Flex Code
31974 status collapsed
31975
31976 \begin_layout Plain Layout
31977 $$AbsOrRelPathMaster
31978 \end_layout
31979
31980 \end_inset
31981
31982  if the substituted string is some kind of \SpecialChar LaTeX
31983  input.
31984 \end_layout
31985
31986 \begin_layout Itemize
31987 Else use 
31988 \begin_inset Flex Code
31989 status collapsed
31990
31991 \begin_layout Plain Layout
31992 $$AbsOrRelPathParent
31993 \end_layout
31994
31995 \end_inset
31996
31997  in order to preserve the user's choice.
31998 \end_layout
31999
32000 \begin_layout Standard
32001 There are special cases where this rule does not work and e.
32002 \begin_inset space \thinspace{}
32003 \end_inset
32004
32005 g.
32006 \begin_inset space \space{}
32007 \end_inset
32008
32009 relative names are needed, but normally it will work just fine.
32010  One example for such a case is the command 
32011 \begin_inset Flex Code
32012 status collapsed
32013
32014 \begin_layout Plain Layout
32015 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
32016 \end_layout
32017
32018 \end_inset
32019
32020  in the XFig template above: We can't use the absolute name because the
32021  copier for 
32022 \begin_inset Flex Code
32023 status collapsed
32024
32025 \begin_layout Plain Layout
32026 .pstex_t
32027 \end_layout
32028
32029 \end_inset
32030
32031  files needs the relative name in order to rewrite the file content.
32032 \end_layout
32033
32034 \begin_layout Section
32035 Security discussion
32036 \begin_inset CommandInset label
32037 LatexCommand label
32038 name "sec:Security-discussion"
32039
32040 \end_inset
32041
32042
32043 \end_layout
32044
32045 \begin_layout Standard
32046 The external material feature interfaces with a lot of external programs
32047  and does so automatically, so we have to consider the security implications
32048  of this.
32049  In particular, since you have the option of including your own filenames
32050  and/or parameter strings and those are expanded into a command, it seems
32051  that it would be possible to create a malicious document which executes
32052  arbitrary commands when a user views or prints the document.
32053  This is something we definitely want to avoid.
32054 \end_layout
32055
32056 \begin_layout Standard
32057 However, since the external program commands are specified in the template
32058  configuration file only, there are no security issues if \SpecialChar LyX
32059  is properly configure
32060 d with safe templates only.
32061  This is so because the external programs are invoked with the 
32062 \begin_inset Flex Code
32063 status collapsed
32064
32065 \begin_layout Plain Layout
32066 execvp
32067 \end_layout
32068
32069 \end_inset
32070
32071 -system call rather than the 
32072 \begin_inset Flex Code
32073 status collapsed
32074
32075 \begin_layout Plain Layout
32076 system
32077 \end_layout
32078
32079 \end_inset
32080
32081  system-call, so it's not possible to execute arbitrary commands from the
32082  filename or parameter section via the shell.
32083 \end_layout
32084
32085 \begin_layout Standard
32086 This also implies that you are restricted in what command strings you can
32087  use in the external material templates.
32088  In particular, pipes and redirection are not readily available.
32089  This has to be so if \SpecialChar LyX
32090  should remain safe.
32091  If you want to use some of the shell features, you should write a safe
32092  script to do this in a controlled manner, and then invoke the script from
32093  the command string.
32094  
32095 \end_layout
32096
32097 \begin_layout Standard
32098 It is possible to design a template that interacts directly with the shell,
32099  but since this would allow a malicious user to execute arbitrary commands
32100  by writing clever filenames and/or parameters, we generally recommend that
32101  you only use safe scripts that work with the 
32102 \begin_inset Flex Code
32103 status collapsed
32104
32105 \begin_layout Plain Layout
32106 execvp
32107 \end_layout
32108
32109 \end_inset
32110
32111  system call in a controlled manner.
32112  Of course, for use in a controlled environment, it can be tempting to just
32113  fall back to use ordinary shell scripts.
32114  If you do so, be aware that you 
32115 \emph on
32116 will
32117 \emph default
32118  provide an easily exploitable security hole in your system.
32119  Of course it stands to reason that such unsafe templates will never be
32120  included in the standard \SpecialChar LyX
32121  distribution, although we do encourage people
32122  to submit new templates in the open source tradition.
32123  But \SpecialChar LyX
32124  as shipped from the official distribution channels will never have
32125  unsafe templates.
32126 \end_layout
32127
32128 \begin_layout Standard
32129 Including external material provides a lot of power, and you have to be
32130  careful not to introduce security hazards with this power.
32131  A subtle error in a single line in an innocent looking script can open
32132  the door to huge security problems.
32133  So if you do not fully understand the issues, we recommend that you consult
32134  a knowledgeable security professional or the \SpecialChar LyX
32135  development team if you have
32136  any questions about whether a given template is safe or not.
32137  And do this before you use it in an uncontrolled environment.
32138 \end_layout
32139
32140 \begin_layout Chapter
32141 \start_of_appendix
32142 List of supported \SpecialChar LyX
32143  functions to be used in layouts
32144 \begin_inset CommandInset label
32145 LatexCommand label
32146 name "chap:List-of-functions"
32147
32148 \end_inset
32149
32150
32151 \end_layout
32152
32153 \begin_layout Standard
32154 \align center
32155 \begin_inset Tabular
32156 <lyxtabular version="3" rows="11" columns="8">
32157 <features tabularvalignment="middle">
32158 <column alignment="left" valignment="top">
32159 <column alignment="left" valignment="top">
32160 <column alignment="left" valignment="top">
32161 <column alignment="left" valignment="top">
32162 <column alignment="left" valignment="top">
32163 <column alignment="left" valignment="top">
32164 <column alignment="left" valignment="top">
32165 <column alignment="left" valignment="top">
32166 <row>
32167 <cell alignment="left" valignment="top" usebox="none">
32168 \begin_inset Text
32169
32170 \begin_layout Plain Layout
32171 accents
32172 \end_layout
32173
32174 \end_inset
32175 </cell>
32176 <cell alignment="left" valignment="top" usebox="none">
32177 \begin_inset Text
32178
32179 \begin_layout Plain Layout
32180 booktabs
32181 \end_layout
32182
32183 \end_inset
32184 </cell>
32185 <cell alignment="left" valignment="top" usebox="none">
32186 \begin_inset Text
32187
32188 \begin_layout Plain Layout
32189 feyn
32190 \end_layout
32191
32192 \end_inset
32193 </cell>
32194 <cell alignment="left" valignment="top" usebox="none">
32195 \begin_inset Text
32196
32197 \begin_layout Plain Layout
32198 listings
32199 \end_layout
32200
32201 \end_inset
32202 </cell>
32203 <cell alignment="center" valignment="top" usebox="none">
32204 \begin_inset Text
32205
32206 \begin_layout Plain Layout
32207 natbib
32208 \end_layout
32209
32210 \end_inset
32211 </cell>
32212 <cell alignment="center" valignment="top" usebox="none">
32213 \begin_inset Text
32214
32215 \begin_layout Plain Layout
32216 rotfloat
32217 \end_layout
32218
32219 \end_inset
32220 </cell>
32221 <cell alignment="center" valignment="top" usebox="none">
32222 \begin_inset Text
32223
32224 \begin_layout Plain Layout
32225 tfrupee
32226 \end_layout
32227
32228 \end_inset
32229 </cell>
32230 <cell alignment="center" valignment="top" usebox="none">
32231 \begin_inset Text
32232
32233 \begin_layout Plain Layout
32234 wasysym
32235 \end_layout
32236
32237 \end_inset
32238 </cell>
32239 </row>
32240 <row>
32241 <cell alignment="left" valignment="top" usebox="none">
32242 \begin_inset Text
32243
32244 \begin_layout Plain Layout
32245 amsbsy
32246 \end_layout
32247
32248 \end_inset
32249 </cell>
32250 <cell alignment="left" valignment="top" usebox="none">
32251 \begin_inset Text
32252
32253 \begin_layout Plain Layout
32254 calc
32255 \end_layout
32256
32257 \end_inset
32258 </cell>
32259 <cell alignment="left" valignment="top" usebox="none">
32260 \begin_inset Text
32261
32262 \begin_layout Plain Layout
32263 fixltx2e
32264 \end_layout
32265
32266 \end_inset
32267 </cell>
32268 <cell alignment="left" valignment="top" usebox="none">
32269 \begin_inset Text
32270
32271 \begin_layout Plain Layout
32272 longtable
32273 \end_layout
32274
32275 \end_inset
32276 </cell>
32277 <cell alignment="center" valignment="top" usebox="none">
32278 \begin_inset Text
32279
32280 \begin_layout Plain Layout
32281 nomencl
32282 \end_layout
32283
32284 \end_inset
32285 </cell>
32286 <cell alignment="center" valignment="top" usebox="none">
32287 \begin_inset Text
32288
32289 \begin_layout Plain Layout
32290 rsphrase
32291 \end_layout
32292
32293 \end_inset
32294 </cell>
32295 <cell alignment="center" valignment="top" usebox="none">
32296 \begin_inset Text
32297
32298 \begin_layout Plain Layout
32299 tipa
32300 \end_layout
32301
32302 \end_inset
32303 </cell>
32304 <cell alignment="center" valignment="top" usebox="none">
32305 \begin_inset Text
32306
32307 \begin_layout Plain Layout
32308 wrapfig
32309 \end_layout
32310
32311 \end_inset
32312 </cell>
32313 </row>
32314 <row>
32315 <cell alignment="left" valignment="top" usebox="none">
32316 \begin_inset Text
32317
32318 \begin_layout Plain Layout
32319 amscd
32320 \end_layout
32321
32322 \end_inset
32323 </cell>
32324 <cell alignment="left" valignment="top" usebox="none">
32325 \begin_inset Text
32326
32327 \begin_layout Plain Layout
32328 CJK
32329 \end_layout
32330
32331 \end_inset
32332 </cell>
32333 <cell alignment="left" valignment="top" usebox="none">
32334 \begin_inset Text
32335
32336 \begin_layout Plain Layout
32337 float
32338 \end_layout
32339
32340 \end_inset
32341 </cell>
32342 <cell alignment="left" valignment="top" usebox="none">
32343 \begin_inset Text
32344
32345 \begin_layout Plain Layout
32346 lyxskak
32347 \end_layout
32348
32349 \end_inset
32350 </cell>
32351 <cell alignment="center" valignment="top" usebox="none">
32352 \begin_inset Text
32353
32354 \begin_layout Plain Layout
32355 pdfcolmk
32356 \end_layout
32357
32358 \end_inset
32359 </cell>
32360 <cell alignment="center" valignment="top" usebox="none">
32361 \begin_inset Text
32362
32363 \begin_layout Plain Layout
32364 setspace
32365 \end_layout
32366
32367 \end_inset
32368 </cell>
32369 <cell alignment="center" valignment="top" usebox="none">
32370 \begin_inset Text
32371
32372 \begin_layout Plain Layout
32373 tipx
32374 \end_layout
32375
32376 \end_inset
32377 </cell>
32378 <cell alignment="center" valignment="top" usebox="none">
32379 \begin_inset Text
32380
32381 \begin_layout Plain Layout
32382 xargs
32383 \end_layout
32384
32385 \end_inset
32386 </cell>
32387 </row>
32388 <row>
32389 <cell alignment="left" valignment="top" usebox="none">
32390 \begin_inset Text
32391
32392 \begin_layout Plain Layout
32393 amsmath
32394 \end_layout
32395
32396 \end_inset
32397 </cell>
32398 <cell alignment="left" valignment="top" usebox="none">
32399 \begin_inset Text
32400
32401 \begin_layout Plain Layout
32402 color
32403 \end_layout
32404
32405 \end_inset
32406 </cell>
32407 <cell alignment="left" valignment="top" usebox="none">
32408 \begin_inset Text
32409
32410 \begin_layout Plain Layout
32411 framed
32412 \end_layout
32413
32414 \end_inset
32415 </cell>
32416 <cell alignment="left" valignment="top" usebox="none">
32417 \begin_inset Text
32418
32419 \begin_layout Plain Layout
32420 makeidx
32421 \end_layout
32422
32423 \end_inset
32424 </cell>
32425 <cell alignment="center" valignment="top" usebox="none">
32426 \begin_inset Text
32427
32428 \begin_layout Plain Layout
32429 pdfpages
32430 \end_layout
32431
32432 \end_inset
32433 </cell>
32434 <cell alignment="center" valignment="top" usebox="none">
32435 \begin_inset Text
32436
32437 \begin_layout Plain Layout
32438 shapepar
32439 \end_layout
32440
32441 \end_inset
32442 </cell>
32443 <cell alignment="center" valignment="top" usebox="none">
32444 \begin_inset Text
32445
32446 \begin_layout Plain Layout
32447 tone
32448 \end_layout
32449
32450 \end_inset
32451 </cell>
32452 <cell alignment="center" valignment="top" usebox="none">
32453 \begin_inset Text
32454
32455 \begin_layout Plain Layout
32456 xcolor
32457 \end_layout
32458
32459 \end_inset
32460 </cell>
32461 </row>
32462 <row>
32463 <cell alignment="left" valignment="top" usebox="none">
32464 \begin_inset Text
32465
32466 \begin_layout Plain Layout
32467 amssymb
32468 \end_layout
32469
32470 \end_inset
32471 </cell>
32472 <cell alignment="left" valignment="top" usebox="none">
32473 \begin_inset Text
32474
32475 \begin_layout Plain Layout
32476 covington
32477 \end_layout
32478
32479 \end_inset
32480 </cell>
32481 <cell alignment="left" valignment="top" usebox="none">
32482 \begin_inset Text
32483
32484 \begin_layout Plain Layout
32485 graphicx
32486 \end_layout
32487
32488 \end_inset
32489 </cell>
32490 <cell alignment="left" valignment="top" usebox="none">
32491 \begin_inset Text
32492
32493 \begin_layout Plain Layout
32494 marvosym
32495 \end_layout
32496
32497 \end_inset
32498 </cell>
32499 <cell alignment="center" valignment="top" usebox="none">
32500 \begin_inset Text
32501
32502 \begin_layout Plain Layout
32503 pifont
32504 \end_layout
32505
32506 \end_inset
32507 </cell>
32508 <cell alignment="center" valignment="top" usebox="none">
32509 \begin_inset Text
32510
32511 \begin_layout Plain Layout
32512 slashed
32513 \end_layout
32514
32515 \end_inset
32516 </cell>
32517 <cell alignment="center" valignment="top" usebox="none">
32518 \begin_inset Text
32519
32520 \begin_layout Plain Layout
32521 txfonts
32522 \end_layout
32523
32524 \end_inset
32525 </cell>
32526 <cell alignment="center" valignment="top" usebox="none">
32527 \begin_inset Text
32528
32529 \begin_layout Plain Layout
32530 xy
32531 \end_layout
32532
32533 \end_inset
32534 </cell>
32535 </row>
32536 <row>
32537 <cell alignment="left" valignment="top" usebox="none">
32538 \begin_inset Text
32539
32540 \begin_layout Plain Layout
32541 amstext
32542 \end_layout
32543
32544 \end_inset
32545 </cell>
32546 <cell alignment="left" valignment="top" usebox="none">
32547 \begin_inset Text
32548
32549 \begin_layout Plain Layout
32550 csquotes
32551 \end_layout
32552
32553 \end_inset
32554 </cell>
32555 <cell alignment="left" valignment="top" usebox="none">
32556 \begin_inset Text
32557
32558 \begin_layout Plain Layout
32559 hhline
32560 \end_layout
32561
32562 \end_inset
32563 </cell>
32564 <cell alignment="left" valignment="top" usebox="none">
32565 \begin_inset Text
32566
32567 \begin_layout Plain Layout
32568 mathdesign
32569 \end_layout
32570
32571 \end_inset
32572 </cell>
32573 <cell alignment="center" valignment="top" usebox="none">
32574 \begin_inset Text
32575
32576 \begin_layout Plain Layout
32577 pmboxdraw
32578 \end_layout
32579
32580 \end_inset
32581 </cell>
32582 <cell alignment="center" valignment="top" usebox="none">
32583 \begin_inset Text
32584
32585 \begin_layout Plain Layout
32586 soul
32587 \end_layout
32588
32589 \end_inset
32590 </cell>
32591 <cell alignment="center" valignment="top" usebox="none">
32592 \begin_inset Text
32593
32594 \begin_layout Plain Layout
32595 ulem
32596 \end_layout
32597
32598 \end_inset
32599 </cell>
32600 <cell alignment="center" valignment="top" usebox="none">
32601 \begin_inset Text
32602
32603 \begin_layout Plain Layout
32604 yhmath
32605 \end_layout
32606
32607 \end_inset
32608 </cell>
32609 </row>
32610 <row>
32611 <cell alignment="left" valignment="top" usebox="none">
32612 \begin_inset Text
32613
32614 \begin_layout Plain Layout
32615 amsthm
32616 \end_layout
32617
32618 \end_inset
32619 </cell>
32620 <cell alignment="left" valignment="top" usebox="none">
32621 \begin_inset Text
32622
32623 \begin_layout Plain Layout
32624 dvipost
32625 \end_layout
32626
32627 \end_inset
32628 </cell>
32629 <cell alignment="left" valignment="top" usebox="none">
32630 \begin_inset Text
32631
32632 \begin_layout Plain Layout
32633 hyperref
32634 \end_layout
32635
32636 \end_inset
32637 </cell>
32638 <cell alignment="left" valignment="top" usebox="none">
32639 \begin_inset Text
32640
32641 \begin_layout Plain Layout
32642 mathdots
32643 \end_layout
32644
32645 \end_inset
32646 </cell>
32647 <cell alignment="center" valignment="top" usebox="none">
32648 \begin_inset Text
32649
32650 \begin_layout Plain Layout
32651 polyglossia
32652 \end_layout
32653
32654 \end_inset
32655 </cell>
32656 <cell alignment="center" valignment="top" usebox="none">
32657 \begin_inset Text
32658
32659 \begin_layout Plain Layout
32660 splitidx
32661 \end_layout
32662
32663 \end_inset
32664 </cell>
32665 <cell alignment="center" valignment="top" usebox="none">
32666 \begin_inset Text
32667
32668 \begin_layout Plain Layout
32669 undertilde
32670 \end_layout
32671
32672 \end_inset
32673 </cell>
32674 <cell alignment="center" valignment="top" usebox="none">
32675 \begin_inset Text
32676
32677 \begin_layout Plain Layout
32678
32679 \end_layout
32680
32681 \end_inset
32682 </cell>
32683 </row>
32684 <row>
32685 <cell alignment="left" valignment="top" usebox="none">
32686 \begin_inset Text
32687
32688 \begin_layout Plain Layout
32689 array
32690 \end_layout
32691
32692 \end_inset
32693 </cell>
32694 <cell alignment="left" valignment="top" usebox="none">
32695 \begin_inset Text
32696
32697 \begin_layout Plain Layout
32698 endnotes
32699 \end_layout
32700
32701 \end_inset
32702 </cell>
32703 <cell alignment="left" valignment="top" usebox="none">
32704 \begin_inset Text
32705
32706 \begin_layout Plain Layout
32707 ifsym
32708 \end_layout
32709
32710 \end_inset
32711 </cell>
32712 <cell alignment="left" valignment="top" usebox="none">
32713 \begin_inset Text
32714
32715 \begin_layout Plain Layout
32716 mathrsfs
32717 \end_layout
32718
32719 \end_inset
32720 </cell>
32721 <cell alignment="center" valignment="top" usebox="none">
32722 \begin_inset Text
32723
32724 \begin_layout Plain Layout
32725 prettyref
32726 \end_layout
32727
32728 \end_inset
32729 </cell>
32730 <cell alignment="center" valignment="top" usebox="none">
32731 \begin_inset Text
32732
32733 \begin_layout Plain Layout
32734 subfig
32735 \end_layout
32736
32737 \end_inset
32738 </cell>
32739 <cell alignment="center" valignment="top" usebox="none">
32740 \begin_inset Text
32741
32742 \begin_layout Plain Layout
32743 units
32744 \end_layout
32745
32746 \end_inset
32747 </cell>
32748 <cell alignment="center" valignment="top" usebox="none">
32749 \begin_inset Text
32750
32751 \begin_layout Plain Layout
32752
32753 \end_layout
32754
32755 \end_inset
32756 </cell>
32757 </row>
32758 <row>
32759 <cell alignment="left" valignment="top" usebox="none">
32760 \begin_inset Text
32761
32762 \begin_layout Plain Layout
32763 ascii
32764 \end_layout
32765
32766 \end_inset
32767 </cell>
32768 <cell alignment="left" valignment="top" usebox="none">
32769 \begin_inset Text
32770
32771 \begin_layout Plain Layout
32772 enumitem
32773 \end_layout
32774
32775 \end_inset
32776 </cell>
32777 <cell alignment="left" valignment="top" usebox="none">
32778 \begin_inset Text
32779
32780 \begin_layout Plain Layout
32781 ifthen
32782 \end_layout
32783
32784 \end_inset
32785 </cell>
32786 <cell alignment="left" valignment="top" usebox="none">
32787 \begin_inset Text
32788
32789 \begin_layout Plain Layout
32790 mhchem
32791 \end_layout
32792
32793 \end_inset
32794 </cell>
32795 <cell alignment="center" valignment="top" usebox="none">
32796 \begin_inset Text
32797
32798 \begin_layout Plain Layout
32799 pxfonts
32800 \end_layout
32801
32802 \end_inset
32803 </cell>
32804 <cell alignment="center" valignment="top" usebox="none">
32805 \begin_inset Text
32806
32807 \begin_layout Plain Layout
32808 subscript
32809 \end_layout
32810
32811 \end_inset
32812 </cell>
32813 <cell alignment="center" valignment="top" usebox="none">
32814 \begin_inset Text
32815
32816 \begin_layout Plain Layout
32817 url
32818 \end_layout
32819
32820 \end_inset
32821 </cell>
32822 <cell alignment="center" valignment="top" usebox="none">
32823 \begin_inset Text
32824
32825 \begin_layout Plain Layout
32826
32827 \end_layout
32828
32829 \end_inset
32830 </cell>
32831 </row>
32832 <row>
32833 <cell alignment="left" valignment="top" usebox="none">
32834 \begin_inset Text
32835
32836 \begin_layout Plain Layout
32837 bbding
32838 \end_layout
32839
32840 \end_inset
32841 </cell>
32842 <cell alignment="left" valignment="top" usebox="none">
32843 \begin_inset Text
32844
32845 \begin_layout Plain Layout
32846 esint
32847 \end_layout
32848
32849 \end_inset
32850 </cell>
32851 <cell alignment="left" valignment="top" usebox="none">
32852 \begin_inset Text
32853
32854 \begin_layout Plain Layout
32855 jurabib
32856 \end_layout
32857
32858 \end_inset
32859 </cell>
32860 <cell alignment="left" valignment="top" usebox="none">
32861 \begin_inset Text
32862
32863 \begin_layout Plain Layout
32864 multicol
32865 \end_layout
32866
32867 \end_inset
32868 </cell>
32869 <cell alignment="center" valignment="top" usebox="none">
32870 \begin_inset Text
32871
32872 \begin_layout Plain Layout
32873 refstyle
32874 \end_layout
32875
32876 \end_inset
32877 </cell>
32878 <cell alignment="center" valignment="top" usebox="none">
32879 \begin_inset Text
32880
32881 \begin_layout Plain Layout
32882 textcomp
32883 \end_layout
32884
32885 \end_inset
32886 </cell>
32887 <cell alignment="center" valignment="top" usebox="none">
32888 \begin_inset Text
32889
32890 \begin_layout Plain Layout
32891 varioref
32892 \end_layout
32893
32894 \end_inset
32895 </cell>
32896 <cell alignment="center" valignment="top" usebox="none">
32897 \begin_inset Text
32898
32899 \begin_layout Plain Layout
32900
32901 \end_layout
32902
32903 \end_inset
32904 </cell>
32905 </row>
32906 <row>
32907 <cell alignment="center" valignment="top" usebox="none">
32908 \begin_inset Text
32909
32910 \begin_layout Plain Layout
32911 bm
32912 \end_layout
32913
32914 \end_inset
32915 </cell>
32916 <cell alignment="center" valignment="top" usebox="none">
32917 \begin_inset Text
32918
32919 \begin_layout Plain Layout
32920 fancybox
32921 \end_layout
32922
32923 \end_inset
32924 </cell>
32925 <cell alignment="center" valignment="top" usebox="none">
32926 \begin_inset Text
32927
32928 \begin_layout Plain Layout
32929 latexsym
32930 \end_layout
32931
32932 \end_inset
32933 </cell>
32934 <cell alignment="center" valignment="top" usebox="none">
32935 \begin_inset Text
32936
32937 \begin_layout Plain Layout
32938 multirow
32939 \end_layout
32940
32941 \end_inset
32942 </cell>
32943 <cell alignment="center" valignment="top" usebox="none">
32944 \begin_inset Text
32945
32946 \begin_layout Plain Layout
32947 rotating
32948 \end_layout
32949
32950 \end_inset
32951 </cell>
32952 <cell alignment="center" valignment="top" usebox="none">
32953 \begin_inset Text
32954
32955 \begin_layout Plain Layout
32956 textgreek
32957 \end_layout
32958
32959 \end_inset
32960 </cell>
32961 <cell alignment="center" valignment="top" usebox="none">
32962 \begin_inset Text
32963
32964 \begin_layout Plain Layout
32965 verbatim
32966 \end_layout
32967
32968 \end_inset
32969 </cell>
32970 <cell alignment="center" valignment="top" usebox="none">
32971 \begin_inset Text
32972
32973 \begin_layout Plain Layout
32974
32975 \end_layout
32976
32977 \end_inset
32978 </cell>
32979 </row>
32980 </lyxtabular>
32981
32982 \end_inset
32983
32984
32985 \end_layout
32986
32987 \begin_layout Chapter
32988 Names of available colors to be used in layouts
32989 \begin_inset CommandInset label
32990 LatexCommand label
32991 name "chap:Names-of-colors"
32992
32993 \end_inset
32994
32995
32996 \end_layout
32997
32998 \begin_layout Standard
32999 The colors listed below are the standard colors and those that you can adjust
33000  in the \SpecialChar LyX
33001  preferences.
33002 \end_layout
33003
33004 \begin_layout Section
33005 Color functions
33006 \end_layout
33007
33008 \begin_layout Standard
33009 The following are no real colors, but rather act on color definitions:
33010 \end_layout
33011
33012 \begin_layout Description
33013 ignore The color is ignored
33014 \end_layout
33015
33016 \begin_layout Description
33017 inherit The color is inherited
33018 \end_layout
33019
33020 \begin_layout Description
33021 none
33022 \family roman
33023 \series medium
33024 \shape up
33025 \size normal
33026 \emph off
33027 \bar no
33028 \strikeout off
33029 \uuline off
33030 \uwave off
33031 \noun off
33032 \color none
33033  No particular color – clear or default
33034 \end_layout
33035
33036 \begin_layout Section
33037 Static colors
33038 \end_layout
33039
33040 \begin_layout Standard
33041 These are fixed colors that cannot be customized
33042 \change_inserted -712698321 1607683177
33043 .
33044  Please do 
33045 \emph on
33046 not
33047 \emph default
33048  use these colors in layout definitions, since they will not work well with
33049  some color themes (such as dark themes)
33050 \change_unchanged
33051 :
33052 \end_layout
33053
33054 \begin_layout Description
33055 black
33056 \end_layout
33057
33058 \begin_layout Description
33059 white
33060 \end_layout
33061
33062 \begin_layout Description
33063 blue
33064 \end_layout
33065
33066 \begin_layout Description
33067 brown
33068 \end_layout
33069
33070 \begin_layout Description
33071 cyan
33072 \end_layout
33073
33074 \begin_layout Description
33075 darkgray
33076 \end_layout
33077
33078 \begin_layout Description
33079 gray
33080 \end_layout
33081
33082 \begin_layout Description
33083 green
33084 \end_layout
33085
33086 \begin_layout Description
33087 lightgray
33088 \end_layout
33089
33090 \begin_layout Description
33091 lime
33092 \end_layout
33093
33094 \begin_layout Description
33095 magenta
33096 \end_layout
33097
33098 \begin_layout Description
33099 olive
33100 \end_layout
33101
33102 \begin_layout Description
33103 orange
33104 \end_layout
33105
33106 \begin_layout Description
33107 pink
33108 \end_layout
33109
33110 \begin_layout Description
33111 purple
33112 \end_layout
33113
33114 \begin_layout Description
33115 red
33116 \end_layout
33117
33118 \begin_layout Description
33119 teal
33120 \end_layout
33121
33122 \begin_layout Description
33123 violet
33124 \end_layout
33125
33126 \begin_layout Description
33127 yellow
33128 \end_layout
33129
33130 \begin_layout Section
33131 Dynamic colors
33132 \end_layout
33133
33134 \begin_layout Standard
33135 These are the colors allocated to specific elements in 
33136 \begin_inset Info
33137 type  "menu"
33138 arg   "dialog-show prefs"
33139 \end_inset
33140
33141 :
33142 \end_layout
33143
33144 \begin_layout Description
33145 added_space Added space color
33146 \end_layout
33147
33148 \begin_layout Description
33149 addedtext Added text color
33150 \end_layout
33151
33152 \begin_layout Description
33153 appendix Appendix marker color
33154 \end_layout
33155
33156 \begin_layout Description
33157 background Background color
33158 \end_layout
33159
33160 \begin_layout Description
33161 bottomarea Bottom area color
33162 \end_layout
33163
33164 \begin_layout Description
33165 branchlabel Label color for branches
33166 \end_layout
33167
33168 \begin_layout Description
33169 buttonbg Color used for button background
33170 \end_layout
33171
33172 \begin_layout Description
33173 buttonframe Color for inset button frames
33174 \end_layout
33175
33176 \begin_layout Description
33177 buttonhoverbg Color used for button background under focus
33178 \end_layout
33179
33180 \begin_layout Description
33181 changebar Changebar color
33182 \end_layout
33183
33184 \begin_layout Description
33185 changedtextauthor1 Changed text color author 1
33186 \end_layout
33187
33188 \begin_layout Description
33189 changedtextauthor2 Changed text color author 2
33190 \end_layout
33191
33192 \begin_layout Description
33193 changedtextauthor3 Changed text color author 3
33194 \end_layout
33195
33196 \begin_layout Description
33197 changedtextauthor4 Changed text color author 4
33198 \end_layout
33199
33200 \begin_layout Description
33201 changedtextauthor5 Changed text color author 5
33202 \end_layout
33203
33204 \begin_layout Description
33205 collapsible Collapsible insets text color
33206 \end_layout
33207
33208 \begin_layout Description
33209 collapsibleframe Collapsible insets framecolor
33210 \end_layout
33211
33212 \begin_layout Description
33213 command Text color for command insets
33214 \end_layout
33215
33216 \begin_layout Description
33217 commandbg Background color for command insets
33218 \end_layout
33219
33220 \begin_layout Description
33221 commandframe Frame color for command insets
33222 \end_layout
33223
33224 \begin_layout Description
33225 comment Label color for comments
33226 \end_layout
33227
33228 \begin_layout Description
33229 commentbg Background color of comments
33230 \end_layout
33231
33232 \begin_layout Description
33233 cursor Cursor color
33234 \end_layout
33235
33236 \begin_layout Description
33237 deletedtext Deleted text color
33238 \end_layout
33239
33240 \begin_layout Description
33241 deletedtextmodifier Deleted text modifying color
33242 \end_layout
33243
33244 \begin_layout Description
33245 depthbar Color for the depth bars in the margin
33246 \end_layout
33247
33248 \begin_layout Description
33249 eolmarker End of line marker color
33250 \end_layout
33251
33252 \begin_layout Description
33253 error Color of the \SpecialChar LaTeX
33254  error box
33255 \end_layout
33256
33257 \begin_layout Description
33258 footlabel Label color for footnotes
33259 \end_layout
33260
33261 \begin_layout Description
33262 foreground Foreground color
33263 \end_layout
33264
33265 \begin_layout Description
33266 graphicsbg Graphics inset background color
33267 \end_layout
33268
33269 \begin_layout Description
33270 greyedoutbg Background color of greyedout inset
33271 \end_layout
33272
33273 \begin_layout Description
33274 greyedoutlabel Label color for greyedout insets
33275 \end_layout
33276
33277 \begin_layout Description
33278 greyedouttext Color for greyedout inset text
33279 \end_layout
33280
33281 \begin_layout Description
33282 indexlabel Label color for index insets
33283 \end_layout
33284
33285 \begin_layout Description
33286 inlinecompletion Inline completion color
33287 \end_layout
33288
33289 \begin_layout Description
33290 insetbg Inset marker background color
33291 \end_layout
33292
33293 \begin_layout Description
33294 insetframe Inset marker frame color
33295 \end_layout
33296
33297 \begin_layout Description
33298 language Color for marking foreign language words
33299 \end_layout
33300
33301 \begin_layout Description
33302 latex Text color in \SpecialChar LaTeX
33303  mode
33304 \end_layout
33305
33306 \begin_layout Description
33307 listingsbg Background color of listings inset
33308 \end_layout
33309
33310 \begin_layout Description
33311 marginlabel Label color for margin notes
33312 \end_layout
33313
33314 \begin_layout Description
33315 math Math inset text color
33316 \end_layout
33317
33318 \begin_layout Description
33319 mathbg Math inset background color
33320 \end_layout
33321
33322 \begin_layout Description
33323 mathcorners Math inset frame color not under focus
33324 \end_layout
33325
33326 \begin_layout Description
33327 mathframe Math inset frame color under focus
33328 \end_layout
33329
33330 \begin_layout Description
33331 mathline Math line color
33332 \end_layout
33333
33334 \begin_layout Description
33335 mathmacrobg Macro math inset background color
33336 \end_layout
33337
33338 \begin_layout Description
33339 mathmacroblend Macro math blended color
33340 \end_layout
33341
33342 \begin_layout Description
33343 mathmacroframe Macro math frame color
33344 \end_layout
33345
33346 \begin_layout Description
33347 mathmacrohoverbg Macro math inset background color hovered
33348 \end_layout
33349
33350 \begin_layout Description
33351 mathmacrolabel Macro math label color
33352 \end_layout
33353
33354 \begin_layout Description
33355 mathmacronewarg Macro template color for new parameters
33356 \end_layout
33357
33358 \begin_layout Description
33359 mathmacrooldarg Macro template color for old parameters
33360 \end_layout
33361
33362 \begin_layout Description
33363 newpage New page color
33364 \end_layout
33365
33366 \begin_layout Description
33367 nonunique_inlinecompletion Inline completion color for the non-unique part
33368 \end_layout
33369
33370 \begin_layout Description
33371 note Label color for notes
33372 \end_layout
33373
33374 \begin_layout Description
33375 notebg Background color of notes
33376 \end_layout
33377
33378 \begin_layout Description
33379 pagebreak Page break/line break color
33380 \end_layout
33381
33382 \begin_layout Description
33383 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
33384 \end_layout
33385
33386 \begin_layout Description
33387 phantomtext Text color for phantom insets
33388 \end_layout
33389
33390 \begin_layout Description
33391 preview The color used for previews
33392 \end_layout
33393
33394 \begin_layout Description
33395 previewframe Preview frame color
33396 \end_layout
33397
33398 \begin_layout Description
33399 regexpframe Color for regexp frame
33400 \end_layout
33401
33402 \begin_layout Description
33403 scroll Color that indicates when a row can be scrolled 
33404 \end_layout
33405
33406 \begin_layout Description
33407 selection Background color of selected text
33408 \end_layout
33409
33410 \begin_layout Description
33411 selectiontext Foreground color of selected text
33412 \end_layout
33413
33414 \begin_layout Description
33415 shadedbg Background color of shaded box
33416 \end_layout
33417
33418 \begin_layout Description
33419 special Special chars text color
33420 \end_layout
33421
33422 \begin_layout Description
33423 tabularline Table line color
33424 \end_layout
33425
33426 \begin_layout Description
33427 tabularonoffline Table line color
33428 \change_inserted -712698321 1607682522
33429
33430 \end_layout
33431
33432 \begin_layout Description
33433
33434 \change_inserted -712698321 1607682563
33435 textlabel1 Color 1 of layout and custom inset labels
33436 \end_layout
33437
33438 \begin_layout Description
33439
33440 \change_inserted -712698321 1607682565
33441 textlabel2 Color 2 of layout and custom inset labels
33442 \end_layout
33443
33444 \begin_layout Description
33445
33446 \change_inserted -712698321 1607682568
33447 textlabel3 Color 3 of layout and custom inset labels
33448 \change_unchanged
33449
33450 \end_layout
33451
33452 \begin_layout Description
33453 urllabel Label color for URL insets
33454 \end_layout
33455
33456 \begin_layout Description
33457 urltext Color for URL inset text
33458 \end_layout
33459
33460 \end_body
33461 \end_document