]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Fix LyX version number
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 608
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 \docbook_mathml_prefix 1
140 \author -970929547 "Thibaut Cuvelier"
141 \author -712698321 "Jürgen Spitzmüller"
142 \author -584632292 "Richard Kimberly Heck"
143 \author -495245474 "Jean-Marc Lasgouttes"
144 \author 5863208 "ab"
145 \author 34634807 "Jean-Pierre"
146 \author 232239728 "Owner"
147 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
148 \author 1075283030 "Thibaut"
149 \end_header
150
151 \begin_body
152
153 \begin_layout Title
154 Customizing \SpecialChar LyX
155 : Features for the Advanced User
156 \end_layout
157
158 \begin_layout Author
159 by the \SpecialChar LyX
160  Team
161 \begin_inset Foot
162 status collapsed
163
164 \begin_layout Plain Layout
165 If you have comments or error corrections, please send them to the \SpecialChar LyX
166  Documentatio
167 n mailing list, 
168 \begin_inset CommandInset href
169 LatexCommand href
170 target "lyx-docs@lists.lyx.org"
171 type "mailto:"
172 literal "false"
173
174 \end_inset
175
176 .
177  Include 
178 \begin_inset Quotes eld
179 \end_inset
180
181 [Customization]
182 \begin_inset Quotes erd
183 \end_inset
184
185  in the subject header, and please cc the current maintainer of this file,
186  Richard 
187 \change_inserted 5863208 1604930692
188 Kimberly 
189 \change_unchanged
190 Heck <
191 \change_inserted 5863208 1604930729
192 rikiheck@lyx.org
193 \change_deleted 5863208 1604930668
194 rikiheck@lyx.org
195 \change_unchanged
196 >.
197 \end_layout
198
199 \end_inset
200
201
202 \begin_inset Newline newline
203 \end_inset
204
205
206 \begin_inset Newline newline
207 \end_inset
208
209 Version 2.4.x
210 \end_layout
211
212 \begin_layout Standard
213 \begin_inset CommandInset toc
214 LatexCommand tableofcontents
215
216 \end_inset
217
218
219 \end_layout
220
221 \begin_layout Standard
222 \begin_inset Note Note
223 status open
224
225 \begin_layout Plain Layout
226 Please use change tracking when modifying this document.
227  This makes it easier for our translators to recognize things that have
228  been changed, and it helps the maintainer keep up-to-date with what's been
229  done.
230 \end_layout
231
232 \end_inset
233
234
235 \end_layout
236
237 \begin_layout Chapter
238 Introduction
239 \end_layout
240
241 \begin_layout Standard
242 This manual covers the customization features present in \SpecialChar LyX
243 .
244  In it, we discuss issues like keyboard shortcuts, screen previewing options,
245  printer options, sending commands to \SpecialChar LyX
246  via the \SpecialChar LyX
247  Server, internationalization,
248  installing new \SpecialChar LaTeX
249  classes and \SpecialChar LyX
250  layouts, etc.
251  We can't possibly hope to touch on everything you can change—our developers
252  add new features faster than we can document them—but we will explain the
253  most common customizations and hopefully point you in the right direction
254  for some of the more obscure ones.
255 \end_layout
256
257 \begin_layout Standard
258 \begin_inset Branch OutDated
259 inverted 0
260 status collapsed
261
262 \begin_layout Standard
263 Information from previous versions of this document that now seems to be
264  outdated is contained in the OutDated branch of this document.
265  By default, this information will not appear in the \SpecialChar LaTeX
266  output.
267 \end_layout
268
269 \end_inset
270
271
272 \end_layout
273
274 \begin_layout Chapter
275 \SpecialChar LyX
276  configuration files
277 \end_layout
278
279 \begin_layout Standard
280 This chapter aims to help you to find your way through the \SpecialChar LyX
281  configuration
282  files.
283  Before continuing to read this chapter, you should find out where your
284  \SpecialChar LyX
285  library and user directories are by using 
286 \begin_inset Flex Noun
287 status collapsed
288
289 \begin_layout Plain Layout
290 Help\SpecialChar menuseparator
291 About
292 \begin_inset space ~
293 \end_inset
294
295 LyX
296 \end_layout
297
298 \end_inset
299
300 .
301  The library directory is the place where \SpecialChar LyX
302  places its system-wide configuration
303  files; the user directory is where you can place your modified versions.
304  We will call the former 
305 \begin_inset Flex Code
306 status collapsed
307
308 \begin_layout Plain Layout
309 LyXDir
310 \end_layout
311
312 \end_inset
313
314  and the latter 
315 \begin_inset Flex Noun
316 status collapsed
317
318 \begin_layout Plain Layout
319 UserDir
320 \end_layout
321
322 \end_inset
323
324  in the remainder of this document.
325  
326 \end_layout
327
328 \begin_layout Section
329 What's in 
330 \begin_inset Flex Code
331 status collapsed
332
333 \begin_layout Plain Layout
334 LyXDir
335 \end_layout
336
337 \end_inset
338
339 ?
340 \end_layout
341
342 \begin_layout Standard
343 \begin_inset Flex Code
344 status collapsed
345
346 \begin_layout Plain Layout
347 LyXDir
348 \end_layout
349
350 \end_inset
351
352  and its sub-directories contain a number of files 
353 \change_deleted 232239728 1604787780
354 and
355 \change_unchanged
356  that can be used to customize \SpecialChar LyX
357 's behavior.
358  You can change many of these files from within \SpecialChar LyX
359  itself through the 
360 \begin_inset Flex Noun
361 status collapsed
362
363 \begin_layout Plain Layout
364 Tools\SpecialChar menuseparator
365 Preferences
366 \end_layout
367
368 \end_inset
369
370  dialog.
371  Most customization that you will want to do in \SpecialChar LyX
372  is possible through this
373  dialog.
374  However, many other inner aspects of \SpecialChar LyX
375  can be customized by modifying the
376  files in 
377 \begin_inset Flex Code
378 status collapsed
379
380 \begin_layout Plain Layout
381 LyXDir
382 \end_layout
383
384 \end_inset
385
386 .
387  These files fall in different categories, described in the following subsection
388 s.
389 \end_layout
390
391 \begin_layout Subsection
392 Automatically generated files
393 \end_layout
394
395 \begin_layout Standard
396 The files found in 
397 \begin_inset Flex Noun
398 status collapsed
399
400 \begin_layout Plain Layout
401 UserDir
402 \end_layout
403
404 \end_inset
405
406  are generated when you configure \SpecialChar LyX
407 .
408  They contain various default values that are 
409 \change_inserted 5863208 1604919565
410 automatically detected during reconfiguration.
411 \change_deleted 232239728 1604788241
412 guessed by inspection
413 \change_unchanged
414  In general, it is not a good idea to modify them, since they might be overwritt
415 en at any time.
416 \end_layout
417
418 \begin_layout Labeling
419 \labelwidthstring 00.00.0000
420 \begin_inset Flex Code
421 status collapsed
422
423 \begin_layout Plain Layout
424 lyxrc.defaults
425 \end_layout
426
427 \end_inset
428
429  
430 \change_deleted 5863208 1604919950
431
432 \begin_inset Note Note
433 status collapsed
434
435 \begin_layout Plain Layout
436
437 \change_inserted 232239728 1604853928
438 I capitalized the first word in all of these lists.
439  To me it looks better but it really is a stylistic thing, your call.
440  However if you are not going to capitalize them, the english in some needs
441  to be modified to make it read correctly as a sentence.
442 \change_unchanged
443
444 \end_layout
445
446 \end_inset
447
448
449 \change_deleted 232239728 1604853510
450 c
451 \change_inserted 232239728 1604853510
452 C
453 \change_unchanged
454 ontains defaults for various commands.
455 \end_layout
456
457 \begin_layout Labeling
458 \labelwidthstring 00.00.0000
459 \begin_inset Flex Code
460 status collapsed
461
462 \begin_layout Plain Layout
463 packages.lst
464 \end_layout
465
466 \end_inset
467
468  
469 \change_deleted 232239728 1604853512
470 c
471 \change_inserted 232239728 1604853512
472 C
473 \change_unchanged
474 ontains the list of packages that have been recognized by \SpecialChar LyX
475 .
476  It is currently unused by the \SpecialChar LyX
477  program itself, but the information extracted,
478  and more, is made available with 
479 \begin_inset Flex Noun
480 status collapsed
481
482 \begin_layout Plain Layout
483 Help\SpecialChar menuseparator
484 \SpecialChar LaTeX
485
486 \begin_inset space ~
487 \end_inset
488
489 Configuration
490 \end_layout
491
492 \end_inset
493
494 .
495 \end_layout
496
497 \begin_layout Labeling
498 \labelwidthstring 00.00.0000
499 \begin_inset Flex Code
500 status collapsed
501
502 \begin_layout Plain Layout
503 textclass.lst
504 \end_layout
505
506 \end_inset
507
508  
509 \change_deleted 232239728 1604853515
510 t
511 \change_inserted 232239728 1604853515
512 T
513 \change_unchanged
514 he list of text classes that have been found in your 
515 \begin_inset Flex Code
516 status collapsed
517
518 \begin_layout Plain Layout
519 layout/
520 \end_layout
521
522 \end_inset
523
524  directories, along with the associated \SpecialChar LaTeX
525  document class and their description.
526 \end_layout
527
528 \begin_layout Labeling
529 \labelwidthstring 00.00.0000
530 \begin_inset Flex Code
531 status collapsed
532
533 \begin_layout Plain Layout
534 lyxmodules.lst
535 \end_layout
536
537 \end_inset
538
539  
540 \change_deleted 232239728 1604853518
541 t
542 \change_inserted 232239728 1604853518
543 T
544 \change_unchanged
545 he list of layout modules found in your 
546 \begin_inset Flex Code
547 status collapsed
548
549 \begin_layout Plain Layout
550 layout/
551 \end_layout
552
553 \end_inset
554
555  directories
556 \end_layout
557
558 \begin_layout Labeling
559 \labelwidthstring 00.00.0000
560 \begin_inset Flex Code
561 status open
562
563 \begin_layout Plain Layout
564 *files.lst
565 \end_layout
566
567 \end_inset
568
569  
570 \change_deleted 232239728 1604853523
571 l
572 \change_inserted 232239728 1604853523
573 L
574 \change_unchanged
575 ists of various sorts of \SpecialChar LaTeX
576 -related files found on your system
577 \end_layout
578
579 \begin_layout Labeling
580 \labelwidthstring 00.00.0000
581 \begin_inset Flex Code
582 status open
583
584 \begin_layout Plain Layout
585 doc/\SpecialChar LaTeX
586 Config.lyx
587 \end_layout
588
589 \end_inset
590
591  is automatically generated during configuration from the file 
592 \begin_inset Flex Code
593 status collapsed
594
595 \begin_layout Plain Layout
596 \SpecialChar LaTeX
597 Config.lyx.in
598 \end_layout
599
600 \end_inset
601
602 .
603  It contains information on your \SpecialChar LaTeX
604  configuration.
605 \end_layout
606
607 \begin_layout Subsection
608 Directories
609 \end_layout
610
611 \begin_layout Standard
612 The
613 \change_deleted 5863208 1604928729
614 se
615 \change_unchanged
616  
617 \change_inserted 5863208 1604928636
618 following 
619 \change_unchanged
620 directories 
621 \change_inserted 5863208 1604928661
622 in 
623 \change_unchanged
624
625 \begin_inset Flex Code
626 status collapsed
627
628 \begin_layout Plain Layout
629 LyXDir
630 \end_layout
631
632 \end_inset
633
634
635 \change_inserted 5863208 1604928662
636  can be
637 \change_deleted 5863208 1604928642
638 are
639 \change_unchanged
640  duplicated 
641 \change_deleted 5863208 1604928669
642 between 
643 \begin_inset Flex Code
644 status collapsed
645
646 \begin_layout Plain Layout
647 LyXDir
648 \end_layout
649
650 \end_inset
651
652  and
653 \change_inserted 5863208 1604928680
654 in
655 \change_unchanged
656  
657 \begin_inset Flex Code
658 status collapsed
659
660 \begin_layout Plain Layout
661 UserDir
662 \end_layout
663
664 \end_inset
665
666 .
667  If a particular file
668 \change_deleted 232239728 1604794430
669 s
670 \change_unchanged
671  exists in both places, the one in 
672 \begin_inset Flex Code
673 status collapsed
674
675 \begin_layout Plain Layout
676 UserDir
677 \end_layout
678
679 \end_inset
680
681  will be used.
682 \end_layout
683
684 \begin_layout Labeling
685 \labelwidthstring 00.00.0000
686 \begin_inset Flex Code
687 status collapsed
688
689 \begin_layout Plain Layout
690 bind/
691 \end_layout
692
693 \end_inset
694
695  
696 \change_deleted 232239728 1604794460
697 t
698 \change_inserted 232239728 1604794460
699 T
700 \change_unchanged
701 his directory contains files with the extension 
702 \begin_inset Flex Code
703 status collapsed
704
705 \begin_layout Plain Layout
706 .bind
707 \end_layout
708
709 \end_inset
710
711  that define the keybindings used in \SpecialChar LyX
712 .
713  If there exists an internationalized version of the bind file named 
714 \begin_inset Flex Code
715 status collapsed
716
717 \begin_layout Plain Layout
718 $LANG_xxx.bind
719 \end_layout
720
721 \end_inset
722
723 , that will be used first.
724 \end_layout
725
726 \begin_layout Labeling
727 \labelwidthstring 00.00.0000
728 \begin_inset Flex Code
729 status collapsed
730
731 \begin_layout Plain Layout
732 citeengines/
733 \end_layout
734
735 \end_inset
736
737  
738 \change_deleted 232239728 1604794478
739 c
740 \change_inserted 232239728 1604794478
741 C
742 \change_unchanged
743 ontains files with the extension 
744 \begin_inset Flex Code
745 status collapsed
746
747 \begin_layout Plain Layout
748 .citeengine
749 \end_layout
750
751 \end_inset
752
753  which define the diverse citation possibilities (natbib, biblatex etc.).
754  See 
755 \begin_inset CommandInset ref
756 LatexCommand ref
757 reference "subsec:Cite-Engine-Files"
758 plural "false"
759 caps "false"
760 noprefix "false"
761
762 \end_inset
763
764  for details.
765 \end_layout
766
767 \begin_layout Labeling
768 \labelwidthstring 00.00.0000
769 \begin_inset Flex Code
770 status collapsed
771
772 \begin_layout Plain Layout
773 clipart/
774 \end_layout
775
776 \end_inset
777
778  
779 \change_deleted 232239728 1604794483
780 c
781 \change_inserted 232239728 1604794486
782 C
783 \change_unchanged
784 ontains graphics files that can be included in documents.
785  
786 \end_layout
787
788 \begin_layout Labeling
789 \labelwidthstring 00.00.0000
790 \begin_inset Flex Code
791 status collapsed
792
793 \begin_layout Plain Layout
794 doc/
795 \end_layout
796
797 \end_inset
798
799  
800 \change_deleted 232239728 1604794492
801 c
802 \change_inserted 232239728 1604794492
803 C
804 \change_unchanged
805 ontains \SpecialChar LyX
806  documentation files (including the one you are currently reading).
807  The file 
808 \begin_inset Flex Code
809 status collapsed
810
811 \begin_layout Plain Layout
812
813 \change_deleted 232239728 1604794660
814 \SpecialChar LaTeX
815
816 \change_inserted 232239728 1604794661
817 LaTex
818 \change_unchanged
819 Config.lyx
820 \end_layout
821
822 \end_inset
823
824  deserves special attention, as noted above.
825  The internationalized help docs are in subdirectories 
826 \begin_inset Flex Code
827 status collapsed
828
829 \begin_layout Plain Layout
830 doc/xx
831 \end_layout
832
833 \end_inset
834
835  where 
836 \begin_inset Quotes eld
837 \end_inset
838
839 xx
840 \begin_inset Quotes erd
841 \end_inset
842
843  is the ISO language code.
844  See 
845 \begin_inset CommandInset ref
846 LatexCommand ref
847 reference "cha:Internationalizing-LyX"
848
849 \end_inset
850
851  for details.
852 \end_layout
853
854 \begin_layout Labeling
855 \labelwidthstring 00.00.0000
856 \begin_inset Flex Code
857 status collapsed
858
859 \begin_layout Plain Layout
860 examples/
861 \end_layout
862
863 \end_inset
864
865  
866 \change_deleted 232239728 1604794497
867 c
868 \change_inserted 232239728 1604794497
869 C
870 \change_unchanged
871 ontains example files that explain how to use some features.
872  In the file browser, press the 
873 \begin_inset Flex Noun
874 status collapsed
875
876 \begin_layout Plain Layout
877 Examples
878 \end_layout
879
880 \end_inset
881
882  button to get there.
883 \end_layout
884
885 \begin_layout Labeling
886 \labelwidthstring 00.00.0000
887 \begin_inset Flex Code
888 status collapsed
889
890 \begin_layout Plain Layout
891 images/
892 \end_layout
893
894 \end_inset
895
896  
897 \change_deleted 232239728 1604794500
898 c
899 \change_inserted 232239728 1604794500
900 C
901 \change_unchanged
902 ontains image files that are used by the 
903 \begin_inset Flex Noun
904 status collapsed
905
906 \begin_layout Plain Layout
907 Document
908 \end_layout
909
910 \end_inset
911
912  dialog.
913  In addition, it also contains the individual icons used in the toolbar
914  and the banners that can be shown when \SpecialChar LyX
915  is launched.
916 \end_layout
917
918 \begin_layout Labeling
919 \labelwidthstring 00.00.0000
920 \begin_inset Flex Code
921 status collapsed
922
923 \begin_layout Plain Layout
924 kbd/
925 \end_layout
926
927 \end_inset
928
929  
930 \change_deleted 232239728 1604794505
931 c
932 \change_inserted 232239728 1604794505
933 C
934 \change_unchanged
935 ontains keyboard keymapping files.
936  See 
937 \begin_inset CommandInset ref
938 LatexCommand ref
939 reference "sec:International-Keymap-Stuff"
940
941 \end_inset
942
943  for details.
944 \end_layout
945
946 \begin_layout Labeling
947 \labelwidthstring 00.00.0000
948 \begin_inset Flex Code
949 status collapsed
950
951 \begin_layout Plain Layout
952 layouts/
953 \end_layout
954
955 \end_inset
956
957  
958 \change_deleted 232239728 1604794508
959 c
960 \change_inserted 232239728 1604794508
961 C
962 \change_unchanged
963 ontains the text class and module files described in 
964 \begin_inset CommandInset ref
965 LatexCommand ref
966 reference "cha:Installing-New-Document"
967
968 \end_inset
969
970 .
971 \end_layout
972
973 \begin_layout Labeling
974 \labelwidthstring 00.00.0000
975 \begin_inset Flex Code
976 status collapsed
977
978 \begin_layout Plain Layout
979 lyx2lyx
980 \end_layout
981
982 \end_inset
983
984  
985 \change_deleted 232239728 1604794513
986 c
987 \change_inserted 232239728 1604794513
988 C
989 \change_unchanged
990 ontains the 
991 \begin_inset Flex Code
992 status collapsed
993
994 \begin_layout Plain Layout
995 lyx2lyx
996 \end_layout
997
998 \end_inset
999
1000  Python scripts used to convert between \SpecialChar LyX
1001  versions.
1002  These can be run from the command line if
1003 \change_deleted 232239728 1604794749
1004 , say,
1005 \change_unchanged
1006  you want to batch-convert files.
1007 \end_layout
1008
1009 \begin_layout Labeling
1010 \labelwidthstring 00.00.0000
1011 \begin_inset Flex Code
1012 status collapsed
1013
1014 \begin_layout Plain Layout
1015 scripts/
1016 \end_layout
1017
1018 \end_inset
1019
1020  
1021 \change_deleted 232239728 1604794516
1022 c
1023 \change_inserted 232239728 1604794516
1024 C
1025 \change_unchanged
1026 ontains some files that demonstrate the capabilities of the 
1027 \begin_inset Flex Noun
1028 status collapsed
1029
1030 \begin_layout Plain Layout
1031 External
1032 \begin_inset space ~
1033 \end_inset
1034
1035 Template
1036 \end_layout
1037
1038 \end_inset
1039
1040  feature.
1041  Also contains some scripts used by \SpecialChar LyX
1042  itself.
1043 \end_layout
1044
1045 \begin_layout Labeling
1046 \labelwidthstring 00.00.0000
1047 \begin_inset Flex Code
1048 status collapsed
1049
1050 \begin_layout Plain Layout
1051 templates/
1052 \end_layout
1053
1054 \end_inset
1055
1056  
1057 \change_deleted 232239728 1604794520
1058 c
1059 \change_inserted 232239728 1604794520
1060 C
1061 \change_unchanged
1062 ontains the standard \SpecialChar LyX
1063  template files described in 
1064 \begin_inset CommandInset ref
1065 LatexCommand ref
1066 reference "subsec:Creating-Templates"
1067
1068 \end_inset
1069
1070 .
1071 \end_layout
1072
1073 \begin_layout Labeling
1074 \labelwidthstring 00.00.0000
1075 \begin_inset Flex Code
1076 status collapsed
1077
1078 \begin_layout Plain Layout
1079 ui/
1080 \end_layout
1081
1082 \end_inset
1083
1084  
1085 \change_deleted 232239728 1604794524
1086 c
1087 \change_inserted 232239728 1604794524
1088 C
1089 \change_unchanged
1090 ontains files with the extension 
1091 \begin_inset Flex Code
1092 status collapsed
1093
1094 \begin_layout Plain Layout
1095 .ui
1096 \end_layout
1097
1098 \end_inset
1099
1100  that define the user interface to \SpecialChar LyX
1101 .
1102  That is, the files define which items appear in which menus and the items
1103  appearing on the toolbar.
1104 \end_layout
1105
1106 \begin_layout Labeling
1107 \labelwidthstring 00.00.0000
1108 \begin_inset Flex Code
1109 status collapsed
1110
1111 \begin_layout Plain Layout
1112 xtemplates/
1113 \end_layout
1114
1115 \end_inset
1116
1117  
1118 \change_deleted 232239728 1604794528
1119 c
1120 \change_inserted 232239728 1604794528
1121 C
1122 \change_unchanged
1123 ontains files with the extension 
1124 \begin_inset Flex Code
1125 status collapsed
1126
1127 \begin_layout Plain Layout
1128 .xtemplate
1129 \end_layout
1130
1131 \end_inset
1132
1133  which define the templates for the insertion of external material to a
1134  \SpecialChar LyX
1135  document; see 
1136 \begin_inset CommandInset ref
1137 LatexCommand ref
1138 reference "chap:Including-External-Material"
1139
1140 \end_inset
1141
1142 .
1143 \end_layout
1144
1145 \begin_layout Subsection
1146 Files you don't want to modify
1147 \end_layout
1148
1149 \begin_layout Standard
1150 These files are used internally by \SpecialChar LyX
1151  and you generally do not need to modify
1152  them unless you are a developer.
1153 \end_layout
1154
1155 \begin_layout Labeling
1156 \labelwidthstring 00.00.0000
1157 \begin_inset Flex Code
1158 status collapsed
1159
1160 \begin_layout Plain Layout
1161 CREDITS
1162 \end_layout
1163
1164 \end_inset
1165
1166  
1167 \change_deleted 232239728 1604797616
1168 t
1169 \change_inserted 232239728 1604797616
1170 T
1171 \change_unchanged
1172 his file contains the list of \SpecialChar LyX
1173  developers.
1174  The contents are displayed with the menu entry 
1175 \begin_inset Flex Noun
1176 status collapsed
1177
1178 \begin_layout Plain Layout
1179 Help\SpecialChar menuseparator
1180 About
1181 \begin_inset space ~
1182 \end_inset
1183
1184 LyX
1185 \end_layout
1186
1187 \end_inset
1188
1189 .
1190 \end_layout
1191
1192 \begin_layout Labeling
1193 \labelwidthstring 00.00.0000
1194 \begin_inset Flex Code
1195 status collapsed
1196
1197 \begin_layout Plain Layout
1198 chkconfig.ltx
1199 \end_layout
1200
1201 \end_inset
1202
1203  
1204 \change_deleted 232239728 1604797620
1205 t
1206 \change_inserted 232239728 1604797620
1207 T
1208 \change_unchanged
1209 his is a \SpecialChar LaTeX
1210  script used during the configuration process.
1211  Do not run directly.
1212 \end_layout
1213
1214 \begin_layout Labeling
1215 \labelwidthstring 00.00.0000
1216 \begin_inset Flex Code
1217 status collapsed
1218
1219 \begin_layout Plain Layout
1220 configure.py
1221 \end_layout
1222
1223 \end_inset
1224
1225  
1226 \change_deleted 232239728 1604797624
1227 t
1228 \change_inserted 232239728 1604797624
1229 T
1230 \change_unchanged
1231 his is a Python script that is used to re-configure \SpecialChar LyX
1232 .
1233  It creates configuration files in the directory it was run from.
1234 \end_layout
1235
1236 \begin_layout Subsection
1237 Other files needing a line or two
1238 \end_layout
1239
1240 \begin_layout Labeling
1241 \labelwidthstring 00.00.0000
1242 \begin_inset Flex Code
1243 status collapsed
1244
1245 \begin_layout Plain Layout
1246 encodings
1247 \end_layout
1248
1249 \end_inset
1250
1251  
1252 \change_deleted 232239728 1604797580
1253 t
1254 \change_inserted 232239728 1604797580
1255 T
1256 \change_unchanged
1257 his contains tables describing how different character encodings can be
1258  mapped to Unicode
1259 \end_layout
1260
1261 \begin_layout Labeling
1262 \labelwidthstring 00.00.0000
1263 \begin_inset Flex Code
1264 status collapsed
1265
1266 \begin_layout Plain Layout
1267 languages
1268 \end_layout
1269
1270 \end_inset
1271
1272  
1273 \change_deleted 232239728 1604797584
1274 t
1275 \change_inserted 232239728 1604797584
1276 T
1277 \change_unchanged
1278 his file contains a list of all the languages currently supported by \SpecialChar LyX
1279 .
1280 \end_layout
1281
1282 \begin_layout Labeling
1283 \labelwidthstring 00.00.0000
1284 \begin_inset Flex Code
1285 status collapsed
1286
1287 \begin_layout Plain Layout
1288 latexfonts
1289 \end_layout
1290
1291 \end_inset
1292
1293  
1294 \change_deleted 232239728 1604797587
1295 c
1296 \change_inserted 232239728 1604797587
1297 C
1298 \change_unchanged
1299 ontains information about the supported fonts.
1300 \end_layout
1301
1302 \begin_layout Labeling
1303 \labelwidthstring 00.00.0000
1304 \begin_inset Flex Code
1305 status collapsed
1306
1307 \begin_layout Plain Layout
1308 layouttranslations
1309 \end_layout
1310
1311 \end_inset
1312
1313  
1314 \change_deleted 232239728 1604797591
1315 t
1316 \change_inserted 232239728 1604797591
1317 T
1318 \change_unchanged
1319 his file contains translations for internationalized paragraph styles (see
1320  
1321 \begin_inset CommandInset ref
1322 LatexCommand ref
1323 reference "subsec:I18n"
1324
1325 \end_inset
1326
1327 ).
1328 \end_layout
1329
1330 \begin_layout Labeling
1331 \labelwidthstring 00.00.0000
1332 \begin_inset Flex Code
1333 status collapsed
1334
1335 \begin_layout Plain Layout
1336 unicodesymbols
1337 \end_layout
1338
1339 \end_inset
1340
1341  
1342 \change_deleted 232239728 1604797594
1343 t
1344 \change_inserted 232239728 1604797594
1345 T
1346 \change_unchanged
1347 his file contains information about Unicode-encoded glyphs and the way they
1348  are supported by \SpecialChar LyX
1349  via \SpecialChar LaTeX
1350 .
1351 \end_layout
1352
1353 \begin_layout Section
1354 Your local configuration directory
1355 \end_layout
1356
1357 \begin_layout Standard
1358 Even if you are using \SpecialChar LyX
1359  as an unprivileged user, you might want to change
1360  \SpecialChar LyX
1361  configuration for your own use.
1362  The 
1363 \begin_inset Flex Code
1364 status collapsed
1365
1366 \begin_layout Plain Layout
1367 UserDir
1368 \end_layout
1369
1370 \end_inset
1371
1372  directory contains all your personal configuration files.
1373  This is the directory described as 
1374 \begin_inset Quotes eld
1375 \end_inset
1376
1377 user directory
1378 \begin_inset Quotes erd
1379 \end_inset
1380
1381  in 
1382 \begin_inset Flex Noun
1383 status collapsed
1384
1385 \begin_layout Plain Layout
1386 Help\SpecialChar menuseparator
1387 About
1388 \begin_inset space ~
1389 \end_inset
1390
1391 LyX
1392 \end_layout
1393
1394 \end_inset
1395
1396 .
1397  This directory is used as a mirror of 
1398 \begin_inset Flex Code
1399 status collapsed
1400
1401 \begin_layout Plain Layout
1402 LyXDir
1403 \end_layout
1404
1405 \end_inset
1406
1407 , which means that every file in 
1408 \begin_inset Flex Code
1409 status collapsed
1410
1411 \begin_layout Plain Layout
1412 UserDir
1413 \end_layout
1414
1415 \end_inset
1416
1417  is a replacement for the corresponding file in 
1418 \begin_inset Flex Code
1419 status collapsed
1420
1421 \begin_layout Plain Layout
1422 LyXDir
1423 \end_layout
1424
1425 \end_inset
1426
1427 .
1428  Any configuration file described in the above sections can be placed either
1429  in the system-wide directory, in which case it will affect all users, or
1430  in your local directory for your own use.
1431 \end_layout
1432
1433 \begin_layout Standard
1434 To make things clearer, let's provide a few examples:
1435 \end_layout
1436
1437 \begin_layout Itemize
1438 The preferences set in the 
1439 \begin_inset Flex Noun
1440 status collapsed
1441
1442 \begin_layout Plain Layout
1443 Tools\SpecialChar menuseparator
1444 Preferences
1445 \end_layout
1446
1447 \end_inset
1448
1449  dialog are saved to a file 
1450 \begin_inset Flex Code
1451 status collapsed
1452
1453 \begin_layout Plain Layout
1454 preferences
1455 \end_layout
1456
1457 \end_inset
1458
1459  in 
1460 \begin_inset Flex Code
1461 status collapsed
1462
1463 \begin_layout Plain Layout
1464 UserDir
1465 \end_layout
1466
1467 \end_inset
1468
1469 .
1470 \end_layout
1471
1472 \begin_layout Itemize
1473 When you reconfigure using 
1474 \begin_inset Flex Noun
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478 Tools\SpecialChar menuseparator
1479 Reconfigure
1480 \end_layout
1481
1482 \end_inset
1483
1484 , \SpecialChar LyX
1485  runs the 
1486 \begin_inset Flex Code
1487 status collapsed
1488
1489 \begin_layout Plain Layout
1490 configure.py
1491 \end_layout
1492
1493 \end_inset
1494
1495  script, and the resulting files are written in your local configuration
1496  directory.
1497  This means that any additional text class file that you might have added
1498  in 
1499 \begin_inset Flex Code
1500 status collapsed
1501
1502 \begin_layout Plain Layout
1503 UserDir/layouts
1504 \end_layout
1505
1506 \end_inset
1507
1508  will be added to the list of classes in the 
1509 \begin_inset Flex Noun
1510 status collapsed
1511
1512 \begin_layout Plain Layout
1513 Document\SpecialChar menuseparator
1514 Settings
1515 \end_layout
1516
1517 \end_inset
1518
1519  dialog.
1520 \end_layout
1521
1522 \begin_layout Itemize
1523 If you get some updated documentation from
1524 \change_inserted 232239728 1604798171
1525  a
1526 \change_unchanged
1527  \SpecialChar LyX
1528  ftp site and cannot install it because you do not have sysadmin rights
1529  on your system, you can just copy the files 
1530 \change_deleted 232239728 1604798193
1531 in
1532 \change_inserted 232239728 1604798193
1533 to
1534 \change_unchanged
1535  
1536 \begin_inset Flex Code
1537 status collapsed
1538
1539 \begin_layout Plain Layout
1540 UserDir/doc/
1541 \end_layout
1542
1543 \end_inset
1544
1545  and the items in the 
1546 \begin_inset Flex Noun
1547 status collapsed
1548
1549 \begin_layout Plain Layout
1550 Help
1551 \end_layout
1552
1553 \end_inset
1554
1555  menu will open them!
1556 \end_layout
1557
1558 \begin_layout Section
1559 Running \SpecialChar LyX
1560  with multiple configurations
1561 \end_layout
1562
1563 \begin_layout Standard
1564 The configuration freedom of the local configuration directory may not suffice
1565  if you want to have more than one configuration at your disposal.
1566  For example, you may want to 
1567 \change_deleted 232239728 1604798238
1568 be 
1569 \change_unchanged
1570 use different key bindings or printer settings at different times.
1571  You can achieve this by having several such directories.
1572  You then specify which directory to use at run-time.
1573 \end_layout
1574
1575 \begin_layout Standard
1576 Invoking \SpecialChar LyX
1577  with the command line switch 
1578 \begin_inset Flex Code
1579 status collapsed
1580
1581 \begin_layout Plain Layout
1582 -userdir
1583 \end_layout
1584
1585 \end_inset
1586
1587  
1588 \emph on
1589 <some directory>
1590 \emph default
1591  instructs the program to read the configuration from that directory, and
1592  not from the default directory.
1593  (You can determine the default directory by running \SpecialChar LyX
1594  without the 
1595 \begin_inset Flex Code
1596 status collapsed
1597
1598 \begin_layout Plain Layout
1599 -userdir
1600 \end_layout
1601
1602 \end_inset
1603
1604  switch.) If the specified directory does not exist, \SpecialChar LyX
1605  offers to create it
1606  for you, just like it does for the default directory 
1607 \change_deleted 232239728 1604798318
1608 on
1609 \change_unchanged
1610  the first time you run the program.
1611  You can modify the configuration options in this additional user directory
1612  exactly as you would for the default directory.
1613  These directories are completely independent (but read on).
1614  Note that setting the environment variable 
1615 \begin_inset Flex Code
1616 status collapsed
1617
1618 \begin_layout Plain Layout
1619 LYX_USERDIR_24x
1620 \end_layout
1621
1622 \end_inset
1623
1624  to some value has exactly the same effect.
1625 \end_layout
1626
1627 \begin_layout Standard
1628 Having several configurations also requires more maintenance: if you want
1629  to add a new layout to 
1630 \begin_inset Flex Code
1631 status collapsed
1632
1633 \begin_layout Plain Layout
1634 NewUserDir/layouts
1635 \end_layout
1636
1637 \end_inset
1638
1639  which you want available from all your configurations, you must add it
1640  to each directory separately.
1641  You can avoid this with the following trick: after \SpecialChar LyX
1642  creates the additional
1643  directory, most of the subdirectories (see above) are empty.
1644  If you want the new configuration to mirror an existing one, replace the
1645  empty subdirectory with a symbolic link to the matching subdirectory in
1646  the existing configuration.
1647  Take care with the 
1648 \begin_inset Flex Code
1649 status collapsed
1650
1651 \begin_layout Plain Layout
1652 doc/
1653 \end_layout
1654
1655 \end_inset
1656
1657  subdirectory, however, since it contains a file written by the configuration
1658  script (also accessible through 
1659 \begin_inset Flex Noun
1660 status collapsed
1661
1662 \begin_layout Plain Layout
1663 Tools\SpecialChar menuseparator
1664 Reconfigure
1665 \end_layout
1666
1667 \end_inset
1668
1669 ) which is configuration
1670 \change_deleted 232239728 1604798083
1671 -
1672 \change_inserted 232239728 1604798100
1673  
1674 \change_unchanged
1675 specific.
1676 \end_layout
1677
1678 \begin_layout Chapter
1679 The Preferences dialog
1680 \end_layout
1681
1682 \begin_layout Standard
1683 All options of the preferences dialog are described in the Appendix 
1684 \emph on
1685 The Preferences Dialog
1686 \emph default
1687  in the 
1688 \emph on
1689 User's Guide
1690 \emph default
1691 .
1692  For some options you might find here more details.
1693 \end_layout
1694
1695 \begin_layout Section
1696 Formats
1697 \begin_inset CommandInset label
1698 LatexCommand label
1699 name "sec:Formats"
1700
1701 \end_inset
1702
1703
1704 \end_layout
1705
1706 \begin_layout Standard
1707 The first step is to define your file formats if they are not already defined.
1708  To do so, open the 
1709 \begin_inset Flex Noun
1710 status collapsed
1711
1712 \begin_layout Plain Layout
1713 Tools\SpecialChar menuseparator
1714 Preferences
1715 \end_layout
1716
1717 \end_inset
1718
1719  dialog.
1720  Under 
1721 \begin_inset Flex Noun
1722 status collapsed
1723
1724 \begin_layout Plain Layout
1725 File Handling\SpecialChar menuseparator
1726 File formats
1727 \end_layout
1728
1729 \end_inset
1730
1731  press the 
1732 \begin_inset Flex Noun
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 New
1737 \end_layout
1738
1739 \end_inset
1740
1741  button to define your new format.
1742  The 
1743 \begin_inset Flex Noun
1744 status collapsed
1745
1746 \begin_layout Plain Layout
1747 Format
1748 \end_layout
1749
1750 \end_inset
1751
1752  field contains the name used to identify the format in the GUI.
1753  The 
1754 \begin_inset Flex Noun
1755 status collapsed
1756
1757 \begin_layout Plain Layout
1758 Short Name
1759 \end_layout
1760
1761 \end_inset
1762
1763  is used to identify the format internally.
1764  You will also need to enter a file extension.
1765  These are all required.
1766  The optional 
1767 \begin_inset Flex Noun
1768 status collapsed
1769
1770 \begin_layout Plain Layout
1771 Shortcut
1772 \end_layout
1773
1774 \end_inset
1775
1776  field is used to provide a keyboard shortcut on the menus.
1777  (For example, pressing 
1778 \begin_inset Flex Noun
1779 status collapsed
1780
1781 \begin_layout Plain Layout
1782 Ctrl+D
1783 \end_layout
1784
1785 \end_inset
1786
1787  will 
1788 \begin_inset Flex Noun
1789 status collapsed
1790
1791 \begin_layout Plain Layout
1792 Document\SpecialChar menuseparator
1793 View (Other Formats)\SpecialChar menuseparator
1794 DVI
1795 \end_layout
1796
1797 \end_inset
1798
1799 .) 
1800 \end_layout
1801
1802 \begin_layout Standard
1803 A Format can have a 
1804 \begin_inset Flex Noun
1805 status collapsed
1806
1807 \begin_layout Plain Layout
1808 Viewer
1809 \end_layout
1810
1811 \end_inset
1812
1813  and an 
1814 \begin_inset Flex Noun
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 Editor
1819 \end_layout
1820
1821 \end_inset
1822
1823  associated with it.
1824  For example, you might want to use 
1825 \begin_inset Flex Noun
1826 status collapsed
1827
1828 \begin_layout Plain Layout
1829 Ghostview
1830 \end_layout
1831
1832 \end_inset
1833
1834  to view PostScript files.
1835  You can enter the command needed to start the program in the corresponding
1836  fields.
1837  In defining this command, you can use the four variables listed in the
1838  next section.
1839  The viewer is launched when you view an image in \SpecialChar LyX
1840  or use the 
1841 \begin_inset Flex Noun
1842 status collapsed
1843
1844 \begin_layout Plain Layout
1845 Document\SpecialChar menuseparator
1846 View
1847 \end_layout
1848
1849 \end_inset
1850
1851  menu.
1852  The editor is for example launched when you right-click on an image and
1853  choose 
1854 \begin_inset Flex Noun
1855 status collapsed
1856
1857 \begin_layout Plain Layout
1858 Edit externally
1859 \end_layout
1860
1861 \end_inset
1862
1863  in the appearing context menu.
1864 \end_layout
1865
1866 \begin_layout Standard
1867 The 
1868 \begin_inset Flex Noun
1869 status collapsed
1870
1871 \begin_layout Plain Layout
1872 MIME
1873 \end_layout
1874
1875 \end_inset
1876
1877  type of a format is optional, but if it is specified, it must be unique
1878  across all formats.
1879  It is used to detect files of this format from the file contents.
1880  For some important file formats there is no MIME type officially registered
1881  with the 
1882 \begin_inset CommandInset href
1883 LatexCommand href
1884 name "IANA"
1885 target "http://www.iana.org/assignments/media-types/"
1886 literal "false"
1887
1888 \end_inset
1889
1890 .
1891  Therefore \SpecialChar LyX
1892  uses the extended list of MIME types as specified by 
1893 \begin_inset CommandInset href
1894 LatexCommand href
1895 name "freedesktop.org"
1896 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1897 literal "false"
1898
1899 \end_inset
1900
1901 .
1902 \end_layout
1903
1904 \begin_layout Standard
1905 The 
1906 \begin_inset Flex Noun
1907 status collapsed
1908
1909 \begin_layout Plain Layout
1910 Document format
1911 \end_layout
1912
1913 \end_inset
1914
1915  option tells \SpecialChar LyX
1916  that a format is suitable for document export.
1917  If this is set and if a suitable conversion route exists (see 
1918 \begin_inset CommandInset ref
1919 LatexCommand ref
1920 reference "sec:Converters"
1921
1922 \end_inset
1923
1924 ), the format will appear in the 
1925 \begin_inset Flex Noun
1926 status collapsed
1927
1928 \begin_layout Plain Layout
1929 File\SpecialChar menuseparator
1930 Export
1931 \end_layout
1932
1933 \end_inset
1934
1935  menu.
1936  The format will also appear in the 
1937 \begin_inset Flex Noun
1938 status collapsed
1939
1940 \begin_layout Plain Layout
1941 Document\SpecialChar menuseparator
1942 View
1943 \end_layout
1944
1945 \end_inset
1946
1947  menu if a viewer is specified for the format.
1948  Pure image formats, such as 
1949 \begin_inset Flex Code
1950 status collapsed
1951
1952 \begin_layout Plain Layout
1953 png
1954 \end_layout
1955
1956 \end_inset
1957
1958 , should not use this option.
1959  Formats that can both represent vector graphics and documents like 
1960 \begin_inset Flex Code
1961 status collapsed
1962
1963 \begin_layout Plain Layout
1964 pdf
1965 \end_layout
1966
1967 \end_inset
1968
1969  should use it.
1970 \end_layout
1971
1972 \begin_layout Standard
1973 The option 
1974 \begin_inset Flex Noun
1975 status collapsed
1976
1977 \begin_layout Plain Layout
1978 Vector graphics format
1979 \end_layout
1980
1981 \end_inset
1982
1983  tells \SpecialChar LyX
1984  that a format can contain vector graphics.
1985  This information is used to determine the target format of included graphics
1986  for 
1987 \begin_inset Flex Noun
1988 status collapsed
1989
1990 \begin_layout Plain Layout
1991 pdflatex
1992 \end_layout
1993
1994 \end_inset
1995
1996  export.
1997  Included graphics may need to be converted to either 
1998 \begin_inset Flex Noun
1999 status collapsed
2000
2001 \begin_layout Plain Layout
2002 pdf
2003 \end_layout
2004
2005 \end_inset
2006
2007
2008 \begin_inset Flex Noun
2009 status collapsed
2010
2011 \begin_layout Plain Layout
2012 png
2013 \end_layout
2014
2015 \end_inset
2016
2017 , or 
2018 \begin_inset Flex Noun
2019 status collapsed
2020
2021 \begin_layout Plain Layout
2022 jpg
2023 \end_layout
2024
2025 \end_inset
2026
2027 , since 
2028 \begin_inset Flex Noun
2029 status collapsed
2030
2031 \begin_layout Plain Layout
2032 pdflatex
2033 \end_layout
2034
2035 \end_inset
2036
2037  cannot handle other image formats.
2038  If an included graphic is not already in 
2039 \begin_inset Flex Noun
2040 status collapsed
2041
2042 \begin_layout Plain Layout
2043 pdf
2044 \end_layout
2045
2046 \end_inset
2047
2048
2049 \begin_inset Flex Noun
2050 status collapsed
2051
2052 \begin_layout Plain Layout
2053 png
2054 \end_layout
2055
2056 \end_inset
2057
2058 , or 
2059 \begin_inset Flex Noun
2060 status collapsed
2061
2062 \begin_layout Plain Layout
2063 jpg
2064 \end_layout
2065
2066 \end_inset
2067
2068  format, it is converted to 
2069 \begin_inset Flex Noun
2070 status collapsed
2071
2072 \begin_layout Plain Layout
2073 pdf
2074 \end_layout
2075
2076 \end_inset
2077
2078  if the vector format option is set, and otherwise to 
2079 \begin_inset Flex Noun
2080 status collapsed
2081
2082 \begin_layout Plain Layout
2083 png
2084 \end_layout
2085
2086 \end_inset
2087
2088 .
2089 \end_layout
2090
2091 \begin_layout Section
2092 Copiers
2093 \end_layout
2094
2095 \begin_layout Standard
2096 Since all conversions from one format to another take place in \SpecialChar LyX
2097 's temporary
2098  directory, it is sometimes necessary to modify a file before copying it
2099  to the temporary directory in order that the conversion may be performed.
2100 \begin_inset Foot
2101 status collapsed
2102
2103 \begin_layout Plain Layout
2104 For example, the file may refer to other files—images, for example—using
2105  relative file names, and these may become invalid when the file is copied
2106  to the temporary directory.
2107 \end_layout
2108
2109 \end_inset
2110
2111  This is done by a Copier: It copies a file to (or from) the temporary directory
2112  and may modify it in the process.
2113 \end_layout
2114
2115 \begin_layout Standard
2116 The definitions of the copiers may use eight variables:
2117 \end_layout
2118
2119 \begin_layout Labeling
2120 \labelwidthstring 00.00.0000
2121 \begin_inset Flex Code
2122 status collapsed
2123
2124 \begin_layout Plain Layout
2125 $$s
2126 \end_layout
2127
2128 \end_inset
2129
2130  The \SpecialChar LyX
2131  system directory (e.
2132 \begin_inset space \thinspace{}
2133 \end_inset
2134
2135 g.
2136 \begin_inset space \space{}
2137 \end_inset
2138
2139
2140 \begin_inset Flex Noun
2141 status collapsed
2142
2143 \begin_layout Plain Layout
2144 /usr/share/lyx
2145 \end_layout
2146
2147 \end_inset
2148
2149 ).
2150 \end_layout
2151
2152 \begin_layout Labeling
2153 \labelwidthstring 00.00.0000
2154 \begin_inset Flex Code
2155 status collapsed
2156
2157 \begin_layout Plain Layout
2158 $$i
2159 \end_layout
2160
2161 \end_inset
2162
2163  The input file
2164 \end_layout
2165
2166 \begin_layout Labeling
2167 \labelwidthstring 00.00.0000
2168 \begin_inset Flex Code
2169 status collapsed
2170
2171 \begin_layout Plain Layout
2172 $$o
2173 \end_layout
2174
2175 \end_inset
2176
2177  The output file
2178 \end_layout
2179
2180 \begin_layout Labeling
2181 \labelwidthstring 00.00.0000
2182 \begin_inset Flex Code
2183 status collapsed
2184
2185 \begin_layout Plain Layout
2186 $$b
2187 \end_layout
2188
2189 \end_inset
2190
2191  The base name (without filename extension) in the \SpecialChar LyX
2192  temporary directory
2193 \end_layout
2194
2195 \begin_layout Labeling
2196 \labelwidthstring 00.00.0000
2197 \begin_inset Flex Code
2198 status collapsed
2199
2200 \begin_layout Plain Layout
2201 $$p
2202 \end_layout
2203
2204 \end_inset
2205
2206  The full directory path of the \SpecialChar LyX
2207  temporary directory
2208 \end_layout
2209
2210 \begin_layout Labeling
2211 \labelwidthstring 00.00.0000
2212 \begin_inset Flex Code
2213 status collapsed
2214
2215 \begin_layout Plain Layout
2216 $$r
2217 \end_layout
2218
2219 \end_inset
2220
2221  The full pathname to the original \SpecialChar LyX
2222  file being processed
2223 \end_layout
2224
2225 \begin_layout Labeling
2226 \labelwidthstring 00.00.0000
2227 \begin_inset Flex Code
2228 status collapsed
2229
2230 \begin_layout Plain Layout
2231 $$f
2232 \end_layout
2233
2234 \end_inset
2235
2236  The filename (without any directory path) of the \SpecialChar LyX
2237  file.
2238 \end_layout
2239
2240 \begin_layout Labeling
2241 \labelwidthstring 00.00.0000
2242 \begin_inset Flex Code
2243 status collapsed
2244
2245 \begin_layout Plain Layout
2246 $$l
2247 \end_layout
2248
2249 \end_inset
2250
2251  The `\SpecialChar LaTeX
2252  name'
2253 \end_layout
2254
2255 \begin_layout Standard
2256 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2257 's 
2258 \series bold
2259
2260 \backslash
2261 include
2262 \series default
2263  command.
2264  It is relevant only when exporting files suitable for such inclusion.
2265 \end_layout
2266
2267 \begin_layout Standard
2268 Copiers can be used to do almost anything with output files.
2269  For example, suppose you want generated pdf files to be copied to a special
2270  directory, 
2271 \begin_inset Flex Code
2272 status collapsed
2273
2274 \begin_layout Plain Layout
2275 /home/you/pdf/
2276 \end_layout
2277
2278 \end_inset
2279
2280 .
2281  Then you could write a shell script such as this one:
2282 \end_layout
2283
2284 \begin_layout Standard
2285 \begin_inset listings
2286 inline false
2287 status open
2288
2289 \begin_layout Plain Layout
2290
2291 #!/bin/bash
2292 \end_layout
2293
2294 \begin_layout Plain Layout
2295
2296 FROMFILE=$1
2297 \end_layout
2298
2299 \begin_layout Plain Layout
2300
2301 TOFILE=`basename $2`
2302 \end_layout
2303
2304 \begin_layout Plain Layout
2305
2306 cp $FROMFILE /home/you/pdf/$TOFILE
2307 \end_layout
2308
2309 \end_inset
2310
2311 Save it in your local \SpecialChar LyX
2312  directory—say, 
2313 \begin_inset Flex Code
2314 status collapsed
2315
2316 \begin_layout Plain Layout
2317 /home/you/.lyx/scripts/pdfcopier.sh
2318 \end_layout
2319
2320 \end_inset
2321
2322 —and make it executable, if you need to do so on your platform.
2323  Then, in the 
2324 \begin_inset Flex Noun
2325 status collapsed
2326
2327 \begin_layout Plain Layout
2328 Tools\SpecialChar menuseparator
2329 Preferences
2330 \end_layout
2331
2332 \end_inset
2333
2334  dialog, select under 
2335 \begin_inset Flex Noun
2336 status collapsed
2337
2338 \begin_layout Plain Layout
2339 File Handling\SpecialChar menuseparator
2340 File formats
2341 \end_layout
2342
2343 \end_inset
2344
2345  the 
2346 \begin_inset Flex Noun
2347 status collapsed
2348
2349 \begin_layout Plain Layout
2350 PDF(pdflatex)
2351 \end_layout
2352
2353 \end_inset
2354
2355  format—or one of the other pdf formats—and enter 
2356 \begin_inset Flex Code
2357 status collapsed
2358
2359 \begin_layout Plain Layout
2360 pdfcopier.sh $$i $$o
2361 \end_layout
2362
2363 \end_inset
2364
2365  into the 
2366 \begin_inset Flex Noun
2367 status collapsed
2368
2369 \begin_layout Plain Layout
2370 Copier
2371 \end_layout
2372
2373 \end_inset
2374
2375  field.
2376  
2377 \end_layout
2378
2379 \begin_layout Standard
2380 Copiers are used by \SpecialChar LyX
2381  in various of its own conversions.
2382  For example, if appropriate programs are found, \SpecialChar LyX
2383  will automatically install
2384  copiers for the 
2385 \begin_inset Flex Noun
2386 status collapsed
2387
2388 \begin_layout Plain Layout
2389 HTML
2390 \end_layout
2391
2392 \end_inset
2393
2394  and 
2395 \begin_inset Flex Noun
2396 status collapsed
2397
2398 \begin_layout Plain Layout
2399 HTML
2400 \begin_inset space ~
2401 \end_inset
2402
2403 (MS Word)
2404 \end_layout
2405
2406 \end_inset
2407
2408  formats.
2409  When these formats are exported, the copier sees that not just the main
2410  HTML file but various associated files (style files, images, etc.) are also
2411  copied.
2412  All these files are written to a subdirectory of the directory in which
2413  the original \SpecialChar LyX
2414  file was found.
2415 \begin_inset Foot
2416 status collapsed
2417
2418 \begin_layout Plain Layout
2419 This copier can be customized.
2420  The optional 
2421 \begin_inset Quotes eld
2422 \end_inset
2423
2424 -e
2425 \begin_inset Quotes erd
2426 \end_inset
2427
2428  argument takes a comma-separated list of extensions to be copied; if it
2429  is omitted, all files will be copied.
2430  The 
2431 \begin_inset Quotes eld
2432 \end_inset
2433
2434 -t
2435 \begin_inset Quotes erd
2436 \end_inset
2437
2438  argument determines the extension added to the generated directory.
2439  By default, it is 
2440 \begin_inset Quotes eld
2441 \end_inset
2442
2443
2444 \begin_inset Flex Noun
2445 status collapsed
2446
2447 \begin_layout Plain Layout
2448 LyXconv
2449 \end_layout
2450
2451 \end_inset
2452
2453
2454 \begin_inset Quotes erd
2455 \end_inset
2456
2457 , so HTML generated from 
2458 \begin_inset Flex Noun
2459 status collapsed
2460
2461 \begin_layout Plain Layout
2462 /path/to/filename.lyx
2463 \end_layout
2464
2465 \end_inset
2466
2467  will end up in 
2468 \begin_inset Flex Noun
2469 status collapsed
2470
2471 \begin_layout Plain Layout
2472 /path/to/filename.html.LyXconv
2473 \end_layout
2474
2475 \end_inset
2476
2477 .
2478  
2479 \end_layout
2480
2481 \end_inset
2482
2483
2484 \end_layout
2485
2486 \begin_layout Section
2487 Converters
2488 \begin_inset CommandInset label
2489 LatexCommand label
2490 name "sec:Converters"
2491
2492 \end_inset
2493
2494
2495 \end_layout
2496
2497 \begin_layout Standard
2498 You can define your own Converters to convert files between different formats.
2499  This is done in the 
2500 \begin_inset Flex Noun
2501 status collapsed
2502
2503 \begin_layout Plain Layout
2504 Tools\SpecialChar menuseparator
2505 Preferences\SpecialChar menuseparator
2506 File Handling\SpecialChar menuseparator
2507 Converters
2508 \end_layout
2509
2510 \end_inset
2511
2512  dialog.
2513 \end_layout
2514
2515 \begin_layout Standard
2516 To define a new converter, select the 
2517 \begin_inset Flex Noun
2518 status collapsed
2519
2520 \begin_layout Plain Layout
2521 From
2522 \begin_inset space ~
2523 \end_inset
2524
2525 format
2526 \end_layout
2527
2528 \end_inset
2529
2530  and 
2531 \begin_inset Flex Noun
2532 status collapsed
2533
2534 \begin_layout Plain Layout
2535 To
2536 \begin_inset space ~
2537 \end_inset
2538
2539 format
2540 \end_layout
2541
2542 \end_inset
2543
2544  from the drop-down lists, enter the command needed for the conversion,
2545  and then press the 
2546 \begin_inset Flex Noun
2547 status collapsed
2548
2549 \begin_layout Plain Layout
2550 Add
2551 \end_layout
2552
2553 \end_inset
2554
2555  button.
2556  Several variables can be used in the definition of converters:
2557 \end_layout
2558
2559 \begin_layout Labeling
2560 \labelwidthstring 00.00.0000
2561 \begin_inset Flex Code
2562 status collapsed
2563
2564 \begin_layout Plain Layout
2565 $$s
2566 \end_layout
2567
2568 \end_inset
2569
2570  The \SpecialChar LyX
2571  system directory
2572 \end_layout
2573
2574 \begin_layout Labeling
2575 \labelwidthstring 00.00.0000
2576 \begin_inset Flex Code
2577 status collapsed
2578
2579 \begin_layout Plain Layout
2580 $$i
2581 \end_layout
2582
2583 \end_inset
2584
2585  The input file
2586 \end_layout
2587
2588 \begin_layout Labeling
2589 \labelwidthstring 00.00.0000
2590 \begin_inset Flex Code
2591 status collapsed
2592
2593 \begin_layout Plain Layout
2594 $$o
2595 \end_layout
2596
2597 \end_inset
2598
2599  The output file
2600 \end_layout
2601
2602 \begin_layout Labeling
2603 \labelwidthstring 00.00.0000
2604 \begin_inset Flex Code
2605 status collapsed
2606
2607 \begin_layout Plain Layout
2608 $$b
2609 \end_layout
2610
2611 \end_inset
2612
2613  The base filename of the input file (i.
2614 \begin_inset space \thinspace{}
2615 \end_inset
2616
2617 g., without the extension)
2618 \end_layout
2619
2620 \begin_layout Labeling
2621 \labelwidthstring 00.00.0000
2622 \begin_inset Flex Code
2623 status collapsed
2624
2625 \begin_layout Plain Layout
2626 $$p
2627 \end_layout
2628
2629 \end_inset
2630
2631  The path to the input file
2632 \end_layout
2633
2634 \begin_layout Labeling
2635 \labelwidthstring 00.00.0000
2636 \begin_inset Flex Code
2637 status collapsed
2638
2639 \begin_layout Plain Layout
2640 $$r
2641 \end_layout
2642
2643 \end_inset
2644
2645  The path to the original input file (this is different from $$p when a
2646  chain of converters is called)
2647 \end_layout
2648
2649 \begin_layout Labeling
2650 \labelwidthstring 00.00.0000
2651 \begin_inset Flex Code
2652 status collapsed
2653
2654 \begin_layout Plain Layout
2655 $$e
2656 \end_layout
2657
2658 \end_inset
2659
2660  The iconv name for the encoding of the document.
2661 \end_layout
2662
2663 \begin_layout Standard
2664 In the 
2665 \begin_inset Flex Noun
2666 status collapsed
2667
2668 \begin_layout Plain Layout
2669 Extra
2670 \begin_inset space ~
2671 \end_inset
2672
2673 Flag
2674 \end_layout
2675
2676 \end_inset
2677
2678  field you can enter the following flags, separated by commas:
2679 \end_layout
2680
2681 \begin_layout Labeling
2682 \labelwidthstring 00.00.0000
2683 \begin_inset Flex Code
2684 status collapsed
2685
2686 \begin_layout Plain Layout
2687 latex
2688 \change_inserted -712698321 1524656940
2689 =flavor
2690 \change_unchanged
2691
2692 \end_layout
2693
2694 \end_inset
2695
2696  This converter runs some form of \SpecialChar LaTeX
2697 .
2698  This will make \SpecialChar LyX
2699 's \SpecialChar LaTeX
2700  error logs available.
2701
2702 \change_inserted -712698321 1524657018
2703  The optional 
2704 \begin_inset Flex Code
2705 status open
2706
2707 \begin_layout Plain Layout
2708
2709 \change_inserted -712698321 1524657012
2710 flavor
2711 \change_unchanged
2712
2713 \end_layout
2714
2715 \end_inset
2716
2717  value specifies the form of \SpecialChar LaTeX
2718  that is run (
2719 \begin_inset Flex Code
2720 status open
2721
2722 \begin_layout Plain Layout
2723
2724 \change_inserted -712698321 1524657005
2725 latex, pdflatex, platex, xetex, luatex
2726 \change_unchanged
2727
2728 \end_layout
2729
2730 \end_inset
2731
2732 ).
2733  If no value is specified, 
2734 \begin_inset Flex Code
2735 status open
2736
2737 \begin_layout Plain Layout
2738
2739 \change_inserted -712698321 1524657018
2740 latex
2741 \change_unchanged
2742
2743 \end_layout
2744
2745 \end_inset
2746
2747  is used.
2748 \change_unchanged
2749
2750 \end_layout
2751
2752 \begin_layout Labeling
2753 \labelwidthstring 00.00.0000
2754 \begin_inset Flex Code
2755 status collapsed
2756
2757 \begin_layout Plain Layout
2758 needaux
2759 \change_inserted -712698321 1524656935
2760 =flavor
2761 \change_unchanged
2762
2763 \end_layout
2764
2765 \end_inset
2766
2767  Needs the \SpecialChar LaTeX
2768  
2769 \begin_inset Flex Noun
2770 status collapsed
2771
2772 \begin_layout Plain Layout
2773 .aux
2774 \end_layout
2775
2776 \end_inset
2777
2778  file for the conversion.
2779
2780 \change_inserted -712698321 1524657047
2781  The optional 
2782 \begin_inset Flex Code
2783 status open
2784
2785 \begin_layout Plain Layout
2786
2787 \change_inserted -712698321 1524657030
2788 flavor
2789 \change_unchanged
2790
2791 \end_layout
2792
2793 \end_inset
2794
2795  value specifies the form of \SpecialChar LaTeX
2796  that is run in order to generate the 
2797 \begin_inset Flex Noun
2798 status collapsed
2799
2800 \begin_layout Plain Layout
2801
2802 \change_inserted -712698321 1524657047
2803 .aux
2804 \change_unchanged
2805
2806 \end_layout
2807
2808 \end_inset
2809
2810  file (
2811 \begin_inset Flex Code
2812 status open
2813
2814 \begin_layout Plain Layout
2815
2816 \change_inserted -712698321 1524657030
2817 latex, pdflatex, platex, xetex, luatex
2818 \change_unchanged
2819
2820 \end_layout
2821
2822 \end_inset
2823
2824 ).
2825  If no value is specified, 
2826 \begin_inset Flex Code
2827 status open
2828
2829 \begin_layout Plain Layout
2830
2831 \change_inserted -712698321 1524657030
2832 latex
2833 \change_unchanged
2834
2835 \end_layout
2836
2837 \end_inset
2838
2839  is used.
2840 \change_unchanged
2841
2842 \end_layout
2843
2844 \begin_layout Labeling
2845 \labelwidthstring 00.00.0000
2846 \begin_inset Flex Code
2847 status collapsed
2848
2849 \begin_layout Plain Layout
2850 nice
2851 \end_layout
2852
2853 \end_inset
2854
2855  Needs a 
2856 \begin_inset Quotes eld
2857 \end_inset
2858
2859 nice
2860 \begin_inset Quotes erd
2861 \end_inset
2862
2863  file from the backend, which in practice means a \SpecialChar LaTeX
2864  file like the one we
2865  would export, without 
2866 \begin_inset Flex Code
2867 status collapsed
2868
2869 \begin_layout Plain Layout
2870 input@path
2871 \end_layout
2872
2873 \end_inset
2874
2875 .
2876 \end_layout
2877
2878 \begin_layout Labeling
2879 \labelwidthstring 00.00.0000
2880 \begin_inset Flex Code
2881 status collapsed
2882
2883 \begin_layout Plain Layout
2884 xml
2885 \end_layout
2886
2887 \end_inset
2888
2889  Output is XML.
2890 \end_layout
2891
2892 \begin_layout Standard
2893 The following three flags are not really flags at all because they take
2894  an argument in the 
2895 \begin_inset Flex Noun
2896 status collapsed
2897
2898 \begin_layout Plain Layout
2899 key
2900 \begin_inset space ~
2901 \end_inset
2902
2903 =
2904 \begin_inset space ~
2905 \end_inset
2906
2907 value
2908 \end_layout
2909
2910 \end_inset
2911
2912  format:
2913 \end_layout
2914
2915 \begin_layout Labeling
2916 \labelwidthstring 00.00.0000
2917
2918 \change_inserted -712698321 1523206314
2919 \begin_inset Flex Code
2920 status collapsed
2921
2922 \begin_layout Plain Layout
2923
2924 \change_inserted -712698321 1523206193
2925 hyperref-driver
2926 \change_unchanged
2927
2928 \end_layout
2929
2930 \end_inset
2931
2932  The name of the driver that needs to be loaded with the 
2933 \family sans
2934 hyperref
2935 \family default
2936  package for this converter.
2937  The loading of the correct driver is necessary to get some PDF-specific
2938  features.
2939  See the 
2940 \family sans
2941 hyperref
2942 \family default
2943  manual for details.
2944 \end_layout
2945
2946 \begin_layout Labeling
2947 \labelwidthstring 00.00.0000
2948 \begin_inset Flex Code
2949 status collapsed
2950
2951 \begin_layout Plain Layout
2952 parselog
2953 \end_layout
2954
2955 \end_inset
2956
2957  If set, the converter's standard error will be redirected to a file 
2958 \begin_inset Flex Code
2959 status collapsed
2960
2961 \begin_layout Plain Layout
2962 infile.out
2963 \end_layout
2964
2965 \end_inset
2966
2967 , and the script given as argument will be run as: 
2968 \begin_inset Flex Code
2969 status collapsed
2970
2971 \begin_layout Plain Layout
2972 script < infile.out > infile.log
2973 \end_layout
2974
2975 \end_inset
2976
2977 .
2978  The argument may contain 
2979 \begin_inset Flex Code
2980 status collapsed
2981
2982 \begin_layout Plain Layout
2983 $$s
2984 \end_layout
2985
2986 \end_inset
2987
2988 .
2989 \end_layout
2990
2991 \begin_layout Labeling
2992 \labelwidthstring 00.00.0000
2993 \begin_inset Flex Code
2994 status collapsed
2995
2996 \begin_layout Plain Layout
2997 resultdir
2998 \end_layout
2999
3000 \end_inset
3001
3002  The name of the directory in which the converter will dump the generated
3003  files.
3004  \SpecialChar LyX
3005  will not create this directory, and it does not copy anything into it,
3006  though it will copy this directory to the destination.
3007  The argument may contain 
3008 \begin_inset Flex Code
3009 status collapsed
3010
3011 \begin_layout Plain Layout
3012 $$b
3013 \end_layout
3014
3015 \end_inset
3016
3017 , which will be replaced by the base name of the input and output files,
3018  respectively, when the directory is copied.
3019 \begin_inset Newline newline
3020 \end_inset
3021
3022 Note that resultdir and usetempdir make no sense together.
3023  The latter will be ignored if the former is given.
3024 \end_layout
3025
3026 \begin_layout Labeling
3027 \labelwidthstring 00.00.0000
3028 \begin_inset Flex Code
3029 status collapsed
3030
3031 \begin_layout Plain Layout
3032 resultfile
3033 \end_layout
3034
3035 \end_inset
3036
3037  Determines the output file name and may, contain 
3038 \begin_inset Flex Code
3039 status collapsed
3040
3041 \begin_layout Plain Layout
3042 $$b
3043 \end_layout
3044
3045 \end_inset
3046
3047 .
3048  Sensible only with resultdir and optional even then; if not given, it defaults
3049  to `index'.
3050 \end_layout
3051
3052 \begin_layout Standard
3053
3054 \change_inserted -712698321 1523206384
3055 A suitable hyperref-driver is set for some converters that are installed
3056  with \SpecialChar LyX
3057 .
3058  
3059 \change_deleted -712698321 1523206388
3060 None of these
3061 \change_inserted -712698321 1523206389
3062 The
3063 \change_unchanged
3064  last three
3065 \change_inserted -712698321 1523206400
3066  flags, however,
3067 \change_unchanged
3068  are presently 
3069 \change_inserted -712698321 1523206407
3070 not 
3071 \change_unchanged
3072 used in any of the 
3073 \change_inserted -712698321 1523206437
3074 pre-installed 
3075 \change_unchanged
3076 converters
3077 \change_deleted -712698321 1523206442
3078  that are installed with \SpecialChar LyX
3079
3080 \change_unchanged
3081 .
3082  
3083 \end_layout
3084
3085 \begin_layout Standard
3086 You do not have to define converters for all formats between which you want
3087  to convert.
3088  For example, you will note that there is no `\SpecialChar LyX
3089  to PostScript' converter,
3090  but \SpecialChar LyX
3091  will export PostScript.
3092  It does so by first creating a \SpecialChar LaTeX
3093  file (no converter needs to be defined
3094  for this) which is then converted to DVI using the `\SpecialChar LaTeX
3095  to DVI' converter,
3096  and finally converting the resulting DVI file to PostScript.
3097  \SpecialChar LyX
3098  finds such `chains' of converters automatically, and it will always choose
3099  the shortest possible chain.
3100  You can, though, still define multiple conversion methods between file
3101  formats.
3102  For example, the standard \SpecialChar LyX
3103  configuration provides five ways to convert
3104  \SpecialChar LaTeX
3105  to PDF:
3106 \end_layout
3107
3108 \begin_layout Enumerate
3109 Directly, using 
3110 \begin_inset Flex Noun
3111 status collapsed
3112
3113 \begin_layout Plain Layout
3114 pdflatex
3115 \end_layout
3116
3117 \end_inset
3118
3119
3120 \end_layout
3121
3122 \begin_layout Enumerate
3123 via (DVI and) PostScript, using 
3124 \begin_inset Flex Noun
3125 status collapsed
3126
3127 \begin_layout Plain Layout
3128 ps2pdf
3129 \end_layout
3130
3131 \end_inset
3132
3133
3134 \end_layout
3135
3136 \begin_layout Enumerate
3137 via DVI, using 
3138 \begin_inset Flex Noun
3139 status collapsed
3140
3141 \begin_layout Plain Layout
3142 dvipdfm
3143 \end_layout
3144
3145 \end_inset
3146
3147
3148 \end_layout
3149
3150 \begin_layout Enumerate
3151 directly using 
3152 \begin_inset Flex Noun
3153 status collapsed
3154
3155 \begin_layout Plain Layout
3156 Xe\SpecialChar TeX
3157
3158 \end_layout
3159
3160 \end_inset
3161
3162
3163 \end_layout
3164
3165 \begin_layout Enumerate
3166 directly using 
3167 \begin_inset Flex Noun
3168 status collapsed
3169
3170 \begin_layout Plain Layout
3171 Lua\SpecialChar TeX
3172
3173 \end_layout
3174
3175 \end_inset
3176
3177
3178 \end_layout
3179
3180 \begin_layout Standard
3181 To define such alternate chains, you must define multiple target `file formats',
3182  as described in 
3183 \begin_inset CommandInset ref
3184 LatexCommand ref
3185 reference "sec:Formats"
3186
3187 \end_inset
3188
3189 .
3190  For example, in the standard configuration, the formats named 
3191 \begin_inset Flex Noun
3192 status collapsed
3193
3194 \begin_layout Plain Layout
3195 pdf
3196 \end_layout
3197
3198 \end_inset
3199
3200  (for 
3201 \begin_inset Flex Noun
3202 status collapsed
3203
3204 \begin_layout Plain Layout
3205 ps2pdf
3206 \end_layout
3207
3208 \end_inset
3209
3210 ), 
3211 \begin_inset Flex Noun
3212 status collapsed
3213
3214 \begin_layout Plain Layout
3215 pdf2
3216 \end_layout
3217
3218 \end_inset
3219
3220  (for 
3221 \begin_inset Flex Noun
3222 status collapsed
3223
3224 \begin_layout Plain Layout
3225 pdflatex
3226 \end_layout
3227
3228 \end_inset
3229
3230 ), 
3231 \begin_inset Flex Noun
3232 status collapsed
3233
3234 \begin_layout Plain Layout
3235 pdf3
3236 \end_layout
3237
3238 \end_inset
3239
3240  (for 
3241 \begin_inset Flex Noun
3242 status collapsed
3243
3244 \begin_layout Plain Layout
3245 dvipdfm
3246 \end_layout
3247
3248 \end_inset
3249
3250 ), 
3251 \begin_inset Flex Noun
3252 status collapsed
3253
3254 \begin_layout Plain Layout
3255 pdf4
3256 \end_layout
3257
3258 \end_inset
3259
3260  (for 
3261 \begin_inset Flex Noun
3262 status collapsed
3263
3264 \begin_layout Plain Layout
3265 Xe\SpecialChar TeX
3266
3267 \end_layout
3268
3269 \end_inset
3270
3271 ), and 
3272 \begin_inset Flex Noun
3273 status collapsed
3274
3275 \begin_layout Plain Layout
3276 pdf5
3277 \end_layout
3278
3279 \end_inset
3280
3281  (for 
3282 \begin_inset Flex Noun
3283 status collapsed
3284
3285 \begin_layout Plain Layout
3286 Lua\SpecialChar TeX
3287
3288 \end_layout
3289
3290 \end_inset
3291
3292 ) are defined, all of which share the extension 
3293 \begin_inset Flex Noun
3294 status collapsed
3295
3296 \begin_layout Plain Layout
3297 .pdf
3298 \end_layout
3299
3300 \end_inset
3301
3302 , and which correspond to the conversion methods just mentioned.
3303 \end_layout
3304
3305 \begin_layout Chapter
3306 Internationalizing \SpecialChar LyX
3307
3308 \begin_inset CommandInset label
3309 LatexCommand label
3310 name "cha:Internationalizing-LyX"
3311
3312 \end_inset
3313
3314
3315 \end_layout
3316
3317 \begin_layout Standard
3318 \SpecialChar LyX
3319  supports using a translated interface.
3320  Last time we checked, \SpecialChar LyX
3321  provided text in thirty languages.
3322  The language of choice is called your 
3323 \emph on
3324 locale
3325 \emph default
3326 .
3327  (For further reading on locale settings, see also the documentation for
3328  locale that comes with your operating system.
3329  For Linux, the manual page for 
3330 \begin_inset Flex Code
3331 status collapsed
3332
3333 \begin_layout Plain Layout
3334 locale(5)
3335 \end_layout
3336
3337 \end_inset
3338
3339  could be a good place to start).
3340 \end_layout
3341
3342 \begin_layout Standard
3343 Notice that these translations will work, but do contain a few flaws.
3344  In particular, all dialogs have been designed with the English text in
3345  mind, which means that some of the translated text will be too large to
3346  fit within the space allocated.
3347  This is only a display problem and will not cause any harm.
3348  Also, you will find that some of the translations do not define shortcut
3349  keys for everything.
3350  Sometimes, there are simply not enough free letters to do it.
3351  Other times, the translator just hasn't got around to doing it yet.
3352  Our localization team, which you may wish to join,
3353 \begin_inset Foot
3354 status collapsed
3355
3356 \begin_layout Plain Layout
3357 If you are a fluent speaker of a language other than English, joining these
3358  teams is a great way to give back to the \SpecialChar LyX
3359  community!
3360 \end_layout
3361
3362 \end_inset
3363
3364  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3365 .
3366 \end_layout
3367
3368 \begin_layout Section
3369 Translating \SpecialChar LyX
3370
3371 \end_layout
3372
3373 \begin_layout Subsection
3374 Translating the graphical user interface (text messages).
3375 \end_layout
3376
3377 \begin_layout Standard
3378 \SpecialChar LyX
3379  uses the GNU 
3380 \begin_inset Flex Code
3381 status collapsed
3382
3383 \begin_layout Plain Layout
3384 gettext
3385 \end_layout
3386
3387 \end_inset
3388
3389  library to handle the internationalization of the interface.
3390  To have \SpecialChar LyX
3391  speak your favorite language in all menus and dialogs, you need
3392  a 
3393 \begin_inset Flex Code
3394 status collapsed
3395
3396 \begin_layout Plain Layout
3397 po
3398 \end_layout
3399
3400 \end_inset
3401
3402 -file for that language.
3403  When this is available, you'll have to generate a 
3404 \begin_inset Flex Code
3405 status collapsed
3406
3407 \begin_layout Plain Layout
3408 mo
3409 \end_layout
3410
3411 \end_inset
3412
3413 -file from it and install the 
3414 \begin_inset Flex Code
3415 status collapsed
3416
3417 \begin_layout Plain Layout
3418 mo
3419 \end_layout
3420
3421 \end_inset
3422
3423 -file.
3424  The process of doing all of this is explained in the documentation for
3425  GNU 
3426 \begin_inset Flex Code
3427 status collapsed
3428
3429 \begin_layout Plain Layout
3430 gettext
3431 \end_layout
3432
3433 \end_inset
3434
3435 .
3436  It is possible to do this just for yourself, but if you're going to do
3437  it, you might as well share the results of your labors with the rest of
3438  the \SpecialChar LyX
3439  community.
3440  Send a message to the \SpecialChar LyX
3441  developers' list for more information about how
3442  to proceed.
3443 \end_layout
3444
3445 \begin_layout Standard
3446 In short, this is what you should do (xx denotes the language code):
3447 \end_layout
3448
3449 \begin_layout Itemize
3450 Check out the \SpecialChar LyX
3451  source code.
3452  (See the 
3453 \begin_inset CommandInset href
3454 LatexCommand href
3455 name "information on the web"
3456 target "https://www.lyx.org/HowToUseGIT"
3457 literal "false"
3458
3459 \end_inset
3460
3461 .)
3462 \end_layout
3463
3464 \begin_layout Itemize
3465 Copy the file 
3466 \begin_inset Flex Code
3467 status collapsed
3468
3469 \begin_layout Plain Layout
3470 lyx.pot
3471 \end_layout
3472
3473 \end_inset
3474
3475  to the folder of the 
3476 \begin_inset Flex Code
3477 status collapsed
3478
3479 \begin_layout Plain Layout
3480 **.po
3481 \end_layout
3482
3483 \end_inset
3484
3485  files.
3486  Then rename it to 
3487 \begin_inset Flex Code
3488 status collapsed
3489
3490 \begin_layout Plain Layout
3491 xx.po
3492 \end_layout
3493
3494 \end_inset
3495
3496 .
3497  (If 
3498 \begin_inset Flex Code
3499 status collapsed
3500
3501 \begin_layout Plain Layout
3502 lyx.pot
3503 \end_layout
3504
3505 \end_inset
3506
3507  doesn't exist anywhere, it can be remade with the console command 
3508 \begin_inset Flex Code
3509 status collapsed
3510
3511 \begin_layout Plain Layout
3512 make lyx.pot
3513 \end_layout
3514
3515 \end_inset
3516
3517  in that directory, or you can use an existing po-file for some other language
3518  as a template).
3519 \end_layout
3520
3521 \begin_layout Itemize
3522 Edit 
3523 \begin_inset Flex Code
3524 status collapsed
3525
3526 \begin_layout Plain Layout
3527 xx.po
3528 \end_layout
3529
3530 \end_inset
3531
3532 .
3533 \begin_inset Foot
3534 status collapsed
3535
3536 \begin_layout Plain Layout
3537 This is just a text file, so it can be edited in any text editor.
3538  But there are also specialized programs that support such editing, such
3539  as 
3540 \family typewriter
3541 Poedit
3542 \family default
3543  (for all platforms) or 
3544 \family typewriter
3545 KBabel
3546 \family default
3547  (for KDE).
3548  
3549 \family typewriter
3550 Emacs
3551 \family default
3552  contains a `mode' for editing 
3553 \begin_inset Flex Code
3554 status collapsed
3555
3556 \begin_layout Plain Layout
3557 po
3558 \end_layout
3559
3560 \end_inset
3561
3562  files, as well, see 
3563 \begin_inset Flex URL
3564 status open
3565
3566 \begin_layout Plain Layout
3567
3568 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3569 \end_layout
3570
3571 \end_inset
3572
3573 .
3574 \end_layout
3575
3576 \end_inset
3577
3578  For some menu- and widget-labels, there are also shortcut keys that should
3579  be translated.
3580  Those keys are marked after a `|', and should be translated according to
3581  the words and phrases of the language.
3582  You should also fill also out the information at the beginning of the new
3583  
3584 \begin_inset Flex Code
3585 status collapsed
3586
3587 \begin_layout Plain Layout
3588 po
3589 \end_layout
3590
3591 \end_inset
3592
3593 -file with your email-address, etc., so people know where to reach you with
3594  suggestions and entertaining flames.
3595 \end_layout
3596
3597 \begin_layout Standard
3598 If you are just doing this on your own, then:
3599 \end_layout
3600
3601 \begin_layout Itemize
3602 Generate 
3603 \begin_inset Flex Code
3604 status collapsed
3605
3606 \begin_layout Plain Layout
3607 xx.mo
3608 \end_layout
3609
3610 \end_inset
3611
3612 .
3613  This can be done with 
3614 \begin_inset Flex Code
3615 status collapsed
3616
3617 \begin_layout Plain Layout
3618 msgfmt -o xx.mo < xx.po
3619 \end_layout
3620
3621 \end_inset
3622
3623 .
3624 \end_layout
3625
3626 \begin_layout Itemize
3627 Copy the 
3628 \begin_inset Flex Code
3629 status collapsed
3630
3631 \begin_layout Plain Layout
3632 mo
3633 \end_layout
3634
3635 \end_inset
3636
3637 -file to your locale-tree, at the correct directory for application messages
3638  for the language
3639 \series bold
3640  
3641 \series default
3642 xx, and under the name 
3643 \begin_inset Flex Code
3644 status collapsed
3645
3646 \begin_layout Plain Layout
3647 lyx.mo
3648 \end_layout
3649
3650 \end_inset
3651
3652  (e.
3653 \begin_inset space \thinspace{}
3654 \end_inset
3655
3656 g.
3657 \begin_inset space \space{}
3658 \end_inset
3659
3660
3661 \begin_inset Flex Code
3662 status collapsed
3663
3664 \begin_layout Plain Layout
3665 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3666 \end_layout
3667
3668 \end_inset
3669
3670
3671 \series bold
3672 .
3673 \end_layout
3674
3675 \begin_layout Standard
3676 As said, however, it would be best if the new 
3677 \begin_inset Flex Code
3678 status collapsed
3679
3680 \begin_layout Plain Layout
3681 po
3682 \end_layout
3683
3684 \end_inset
3685
3686  file could be added to the \SpecialChar LyX
3687  distribution, so others can use it.
3688  Adding it involves making additional changes to \SpecialChar LyX
3689 .
3690  So send an email to the developers' mailing list if you're interested in
3691  doing that.
3692 \end_layout
3693
3694 \begin_layout Subsubsection
3695 Ambiguous messages
3696 \end_layout
3697
3698 \begin_layout Standard
3699 Sometimes it turns out that one English message needs to be translated into
3700  different messages in the target language.
3701  One example is the message 
3702 \begin_inset Flex Code
3703 status collapsed
3704
3705 \begin_layout Plain Layout
3706 To
3707 \end_layout
3708
3709 \end_inset
3710
3711  which has the German translation 
3712 \lang german
3713 Nach
3714 \lang english
3715  or 
3716 \lang german
3717 Bis
3718 \lang english
3719 , depending upon exactly what the English 
3720 \begin_inset Quotes eld
3721 \end_inset
3722
3723 to
3724 \begin_inset Quotes erd
3725 \end_inset
3726
3727  means.
3728  GNU 
3729 \begin_inset Flex Code
3730 status collapsed
3731
3732 \begin_layout Plain Layout
3733 gettext
3734 \end_layout
3735
3736 \end_inset
3737
3738  does not handle such ambiguous translations.
3739  Therefore you have to add some context information to the message: Instead
3740  of 
3741 \begin_inset Flex Code
3742 status collapsed
3743
3744 \begin_layout Plain Layout
3745 To
3746 \end_layout
3747
3748 \end_inset
3749
3750  it becomes 
3751 \begin_inset Flex Code
3752 status collapsed
3753
3754 \begin_layout Plain Layout
3755 To[[as in 'From format x to format y']]
3756 \end_layout
3757
3758 \end_inset
3759
3760  and 
3761 \begin_inset Flex Code
3762 status collapsed
3763
3764 \begin_layout Plain Layout
3765 To[[as in 'From page x to page y']].
3766 \end_layout
3767
3768 \end_inset
3769
3770  Now the two occurrences of 
3771 \begin_inset Flex Code
3772 status collapsed
3773
3774 \begin_layout Plain Layout
3775 To
3776 \end_layout
3777
3778 \end_inset
3779
3780  are different for 
3781 \begin_inset Flex Code
3782 status collapsed
3783
3784 \begin_layout Plain Layout
3785 gettext
3786 \end_layout
3787
3788 \end_inset
3789
3790  and can be translated correctly to 
3791 \lang german
3792 Nach
3793 \lang english
3794  and 
3795 \lang german
3796 Bis
3797 \lang english
3798 , respectively.
3799 \end_layout
3800
3801 \begin_layout Standard
3802 Of course the context information needs to be stripped off the original
3803  message when no translation is used.
3804  Therefore you have to put it in double square brackets at the end of the
3805  message (see the example above).
3806  The translation mechanism of \SpecialChar LyX
3807  ensures that everything in double square
3808  brackets at the end of messages is removed before displaying the message.
3809 \end_layout
3810
3811 \begin_layout Subsection
3812 Translating the documentation.
3813 \end_layout
3814
3815 \begin_layout Standard
3816 The online documentation (in the 
3817 \begin_inset Flex Noun
3818 status collapsed
3819
3820 \begin_layout Plain Layout
3821 Help
3822 \end_layout
3823
3824 \end_inset
3825
3826 -menu) can (and should!) be translated.
3827  If there are translated versions of the documentation available
3828 \begin_inset Foot
3829 status collapsed
3830
3831 \begin_layout Plain Layout
3832 As of March 2008, at least some of the documents have been translated into
3833  fourteen languages, with the Tutorial available in a few more.
3834 \end_layout
3835
3836 \end_inset
3837
3838  and the locale is set accordingly, these will be used automagically by
3839  \SpecialChar LyX
3840 .
3841  \SpecialChar LyX
3842  looks for translated versions as 
3843 \begin_inset Flex Code
3844 status collapsed
3845
3846 \begin_layout Plain Layout
3847 LyXDir/doc/xx/DocName.lyx
3848 \end_layout
3849
3850 \end_inset
3851
3852 , where 
3853 \begin_inset Flex Code
3854 status collapsed
3855
3856 \begin_layout Plain Layout
3857 xx
3858 \end_layout
3859
3860 \end_inset
3861
3862  is the code for the language currently in use.
3863  If there are no translated documents, the default English versions will
3864  be displayed.
3865  Note that the translated versions must have the same filenames (
3866 \begin_inset Flex Code
3867 status collapsed
3868
3869 \begin_layout Plain Layout
3870 DocName
3871 \end_layout
3872
3873 \end_inset
3874
3875  above) as the original.
3876  If you feel up to translating the documentation (an excellent way to proof-read
3877  the original documentation by the way!), there are a few things you should
3878  do right away:
3879 \end_layout
3880
3881 \begin_layout Itemize
3882 Check out the documentation translation web page at 
3883 \begin_inset CommandInset href
3884 LatexCommand href
3885 name "https://www.lyx.org/Translation"
3886 target "https://www.lyx.org/Translation"
3887 literal "false"
3888
3889 \end_inset
3890
3891 .
3892  That way, you can find out which (if any) documents have already been translate
3893 d into your language.
3894  You can also find out who (if anyone) is organizing the effort to translate
3895  the documentation into your language.
3896  If no one is organizing the effort, please let us know that you're interested.
3897 \end_layout
3898
3899 \begin_layout Standard
3900 Once you get to actually translating, here's a few hints for you that may
3901  save you trouble:
3902 \end_layout
3903
3904 \begin_layout Itemize
3905 Join the documentation team! There is information on how to do that in 
3906 \begin_inset Flex Code
3907 status collapsed
3908
3909 \begin_layout Plain Layout
3910 Intro.lyx
3911 \end_layout
3912
3913 \end_inset
3914
3915  (
3916 \begin_inset Flex Noun
3917 status collapsed
3918
3919 \begin_layout Plain Layout
3920 Help\SpecialChar menuseparator
3921 Introduction
3922 \end_layout
3923
3924 \end_inset
3925
3926 ), which by the way is the first document you should translate.
3927 \end_layout
3928
3929 \begin_layout Itemize
3930 Learn the typographic conventions for the language you are translating to.
3931  Typography is an ancient art and over the centuries, a great variety of
3932  conventions have developed throughout different parts of the world.
3933  Also study the professional terminology amongst typographers in your country.
3934  Inventing your own terminology will only confuse the users.
3935  
3936 \emph on
3937 (Warning! Typography is addictive!)
3938 \end_layout
3939
3940 \begin_layout Itemize
3941 Make a copy of the document.
3942  This will be your working copy.
3943  You can use this as your personal translated help-file by placing it in
3944  your 
3945 \begin_inset Flex Code
3946 status collapsed
3947
3948 \begin_layout Plain Layout
3949 UserDir/doc/xx/
3950 \end_layout
3951
3952 \end_inset
3953
3954  directory.
3955 \begin_inset Note Greyedout
3956 status open
3957
3958 \begin_layout Plain Layout
3959
3960 \series bold
3961 Note:
3962 \series default
3963  For a complex document with external material (images, etc.), if you make
3964  a copy e.
3965 \begin_inset space \thinspace{}
3966 \end_inset
3967
3968 g.
3969 \begin_inset space \space{}
3970 \end_inset
3971
3972 in a temp dir, beware that the links to external material may be broken
3973  when the document is moved to a different place.
3974  The best way is to retrieve the \SpecialChar LyX
3975  tree from git (see 
3976 \begin_inset Flex URL
3977 status collapsed
3978
3979 \begin_layout Plain Layout
3980
3981 https://www.lyx.org/HowToUseGIT
3982 \end_layout
3983
3984 \end_inset
3985
3986 ) and to edit the doc file in place.
3987 \end_layout
3988
3989 \end_inset
3990
3991
3992 \end_layout
3993
3994 \begin_layout Itemize
3995 Sometimes the original document (from the \SpecialChar LyX
3996  team) will be updated.
3997  Use the source viewer at 
3998 \begin_inset CommandInset href
3999 LatexCommand href
4000 name "https://www.lyx.org/trac/timeline"
4001 target "https://www.lyx.org/trac/timeline"
4002 literal "false"
4003
4004 \end_inset
4005
4006  to see what has been changed.
4007  That way you can easily see which parts of the translated document need
4008  to be updated.
4009 \end_layout
4010
4011 \begin_layout Standard
4012 If you ever find an error in the original document, fix it and notify the
4013  rest of the documentation team of the changes! (You didn't forget to join
4014  the documentation team, did you?)
4015 \end_layout
4016
4017 \begin_layout Standard
4018 \begin_inset Branch OutDated
4019 inverted 0
4020 status collapsed
4021
4022 \begin_layout Section
4023 International Keyboard Support
4024 \end_layout
4025
4026 \begin_layout Standard
4027
4028 \emph on
4029 [Editor's Note: The following section is by
4030 \emph default
4031  
4032 \shape smallcaps
4033 \emph on
4034 Ivan Schreter
4035 \shape default
4036 .
4037  It needs to be fixed to conform to the new Documentation Style sheet and
4038  to make use of the new v1.0 features.
4039  The whole thing also needs to be merged with the section following it.-jw
4040  It may also be badly out of date.-rh (2008)]
4041 \end_layout
4042
4043 \begin_layout Subsection
4044 Defining Own Keymaps: Keymap File Format
4045 \end_layout
4046
4047 \begin_layout Standard
4048 Let's look at a keyboard definition file a little closer.
4049  It is a plain text file defining
4050 \end_layout
4051
4052 \begin_layout Itemize
4053 key-to-key or key-to-string translations
4054 \end_layout
4055
4056 \begin_layout Itemize
4057 dead keys
4058 \end_layout
4059
4060 \begin_layout Itemize
4061 dead keys exceptions
4062 \end_layout
4063
4064 \begin_layout Standard
4065 To define key-to-key or key-to-string translation, use this command:
4066 \end_layout
4067
4068 \begin_layout Quotation
4069 \begin_inset Flex Code
4070 status collapsed
4071
4072 \begin_layout Plain Layout
4073
4074 \backslash
4075 kmap
4076 \end_layout
4077
4078 \end_inset
4079
4080  
4081 \begin_inset Flex Code
4082 status collapsed
4083
4084 \begin_layout Plain Layout
4085 key
4086 \end_layout
4087
4088 \end_inset
4089
4090  outstring 
4091 \end_layout
4092
4093 \begin_layout Standard
4094 where 
4095 \begin_inset Flex Code
4096 status collapsed
4097
4098 \begin_layout Plain Layout
4099 key
4100 \end_layout
4101
4102 \end_inset
4103
4104  is the key to be translated and 
4105 \begin_inset Flex Code
4106 status collapsed
4107
4108 \begin_layout Plain Layout
4109 outstring
4110 \end_layout
4111
4112 \end_inset
4113
4114  is the string to be inserted into the document.
4115  To define dead keys, use:
4116 \end_layout
4117
4118 \begin_layout Quotation
4119 \begin_inset Flex Code
4120 status collapsed
4121
4122 \begin_layout Plain Layout
4123
4124 \backslash
4125 kmod
4126 \end_layout
4127
4128 \end_inset
4129
4130  
4131 \begin_inset Flex Code
4132 status collapsed
4133
4134 \begin_layout Plain Layout
4135 key
4136 \end_layout
4137
4138 \end_inset
4139
4140  deadkey
4141 \end_layout
4142
4143 \begin_layout Standard
4144 where 
4145 \begin_inset Flex Code
4146 status collapsed
4147
4148 \begin_layout Plain Layout
4149 key
4150 \end_layout
4151
4152 \end_inset
4153
4154  is a keyboard key and 
4155 \begin_inset Flex Code
4156 status collapsed
4157
4158 \begin_layout Plain Layout
4159 deadkey
4160 \end_layout
4161
4162 \end_inset
4163
4164  is dead key name.
4165  The following dead keys are supported (shortcut name is in parentheses):
4166 \end_layout
4167
4168 \begin_layout Quotation
4169
4170 \emph on
4171 Name
4172 \begin_inset space \hfill{}
4173 \end_inset
4174
4175 Example
4176 \end_layout
4177
4178 \begin_layout Quotation
4179 acute (acu)
4180 \begin_inset space \hfill{}
4181 \end_inset
4182
4183 áéíóú
4184 \end_layout
4185
4186 \begin_layout Quotation
4187 grave (gra)
4188 \begin_inset space \hfill{}
4189 \end_inset
4190
4191 àèìòù
4192 \end_layout
4193
4194 \begin_layout Quotation
4195 macron (mac)
4196 \begin_inset space \hfill{}
4197 \end_inset
4198
4199  ō
4200 \end_layout
4201
4202 \begin_layout Quotation
4203 tilde (til)
4204 \begin_inset space \hfill{}
4205 \end_inset
4206
4207 ñÑ
4208 \end_layout
4209
4210 \begin_layout Quotation
4211 underbar (underb)
4212 \begin_inset space \hfill{}
4213 \end_inset
4214
4215
4216 \begin_inset ERT
4217 status open
4218
4219 \begin_layout Plain Layout
4220
4221
4222 \backslash
4223 b o
4224 \end_layout
4225
4226 \end_inset
4227
4228
4229 \end_layout
4230
4231 \begin_layout Quotation
4232 cedilla (ced)
4233 \begin_inset space \hfill{}
4234 \end_inset
4235
4236 çÇ
4237 \end_layout
4238
4239 \begin_layout Quotation
4240 underdot (underd)
4241 \begin_inset space \hfill{}
4242 \end_inset
4243
4244
4245 \begin_inset ERT
4246 status open
4247
4248 \begin_layout Plain Layout
4249
4250
4251 \backslash
4252 d o
4253 \end_layout
4254
4255 \end_inset
4256
4257
4258 \end_layout
4259
4260 \begin_layout Quotation
4261 circumflex (circu)
4262 \begin_inset space \hfill{}
4263 \end_inset
4264
4265 âêîôû
4266 \end_layout
4267
4268 \begin_layout Quotation
4269 circle (circl)
4270 \begin_inset space \hfill{}
4271 \end_inset
4272
4273 ÅůŮ
4274 \end_layout
4275
4276 \begin_layout Quotation
4277 tie (tie)
4278 \begin_inset space \hfill{}
4279 \end_inset
4280
4281
4282 \begin_inset ERT
4283 status open
4284
4285 \begin_layout Plain Layout
4286
4287
4288 \backslash
4289 t o
4290 \end_layout
4291
4292 \end_inset
4293
4294
4295 \end_layout
4296
4297 \begin_layout Quotation
4298 breve (bre)
4299 \begin_inset space \hfill{}
4300 \end_inset
4301
4302 ă
4303 \begin_inset ERT
4304 status open
4305
4306 \begin_layout Plain Layout
4307
4308
4309 \backslash
4310 u o
4311 \end_layout
4312
4313 \end_inset
4314
4315
4316 \end_layout
4317
4318 \begin_layout Quotation
4319 caron (car)
4320 \begin_inset space \hfill{}
4321 \end_inset
4322
4323 čšž
4324 \end_layout
4325
4326 \begin_layout Quotation
4327 hungarian umlaut (hug)
4328 \begin_inset space \hfill{}
4329 \end_inset
4330
4331 őű
4332 \end_layout
4333
4334 \begin_layout Quotation
4335 umlaut (uml)
4336 \begin_inset space \hfill{}
4337 \end_inset
4338
4339 äöü
4340 \end_layout
4341
4342 \begin_layout Quotation
4343 dot (dot)
4344 \begin_inset space \hfill{}
4345 \end_inset
4346
4347 ż
4348 \begin_inset ERT
4349 status open
4350
4351 \begin_layout Plain Layout
4352
4353
4354 \backslash
4355 .s
4356 \end_layout
4357
4358 \end_inset
4359
4360
4361 \end_layout
4362
4363 \begin_layout Standard
4364 Since in many international keyboards there are exceptions to what some
4365  dead keys should do, you can define them using
4366 \end_layout
4367
4368 \begin_layout Quotation
4369 \begin_inset Flex Code
4370 status collapsed
4371
4372 \begin_layout Plain Layout
4373
4374 \backslash
4375 kxmod
4376 \end_layout
4377
4378 \end_inset
4379
4380  deadkey key outstring
4381 \end_layout
4382
4383 \begin_layout Standard
4384 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4385 , so you put in
4386 \end_layout
4387
4388 \begin_layout Quotation
4389 \begin_inset Flex Code
4390 status collapsed
4391
4392 \begin_layout Plain Layout
4393
4394 \backslash
4395 kxmod
4396 \end_layout
4397
4398 \end_inset
4399
4400  caron o "
4401 \backslash
4402 ^o"
4403 \end_layout
4404
4405 \begin_layout Standard
4406 to make it work correctly.
4407  Also, you have to define as exceptions dead keys over i and j, to remove
4408  the dot from them before inserting an accent mark.
4409  I will change this when the time comes, but so far I haven't had time.
4410 \end_layout
4411
4412 \begin_layout Standard
4413 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4414  double backslash.
4415  Also, quotes and 
4416 \begin_inset Flex Code
4417 status collapsed
4418
4419 \begin_layout Plain Layout
4420 #
4421 \end_layout
4422
4423 \end_inset
4424
4425  have different meaning.
4426  
4427 \begin_inset Flex Code
4428 status collapsed
4429
4430 \begin_layout Plain Layout
4431 #
4432 \end_layout
4433
4434 \end_inset
4435
4436  marks comments, quotes start and end \SpecialChar LaTeX
4437 -style commands.
4438  To enter quote, you'll need to use 
4439 \begin_inset Flex Code
4440 status collapsed
4441
4442 \begin_layout Plain Layout
4443
4444 \backslash
4445 "
4446 \end_layout
4447
4448 \end_inset
4449
4450 , to enter 
4451 \begin_inset Flex Code
4452 status collapsed
4453
4454 \begin_layout Plain Layout
4455 #
4456 \end_layout
4457
4458 \end_inset
4459
4460 , use 
4461 \begin_inset Flex Code
4462 status collapsed
4463
4464 \begin_layout Plain Layout
4465
4466 \backslash
4467 #
4468 \end_layout
4469
4470 \end_inset
4471
4472 .
4473 \end_layout
4474
4475 \begin_layout Standard
4476 If you make a keyboard description file that works for your language, please
4477  mail it to me, so I can include it in the next keymap distribution.
4478 \end_layout
4479
4480 \begin_layout Standard
4481 More keywords will be supported in keymap configuration file in future,
4482  like
4483 \end_layout
4484
4485 \begin_layout Itemize
4486 \begin_inset Flex Code
4487 status collapsed
4488
4489 \begin_layout Plain Layout
4490
4491 \backslash
4492 kinclude filename
4493 \end_layout
4494
4495 \end_inset
4496
4497
4498 \emph on
4499
4500 \begin_inset space \hfill{}
4501 \end_inset
4502
4503
4504 \begin_inset Flex Code
4505 status collapsed
4506
4507 \begin_layout Plain Layout
4508 include
4509 \end_layout
4510
4511 \end_inset
4512
4513  another file
4514 \end_layout
4515
4516 \begin_layout Itemize
4517 \begin_inset Flex Code
4518 status collapsed
4519
4520 \begin_layout Plain Layout
4521
4522 \backslash
4523 kprog program
4524 \end_layout
4525
4526 \end_inset
4527
4528
4529 \emph on
4530
4531 \begin_inset space \hfill{}
4532 \end_inset
4533
4534
4535 \begin_inset Flex Code
4536 status collapsed
4537
4538 \begin_layout Plain Layout
4539 define
4540 \end_layout
4541
4542 \end_inset
4543
4544  an external keymap translation program 
4545 \end_layout
4546
4547 \begin_layout Standard
4548 Also, it should look into 
4549 \begin_inset Flex Code
4550 status collapsed
4551
4552 \begin_layout Plain Layout
4553 lyxrc
4554 \end_layout
4555
4556 \end_inset
4557
4558  file for defaults, too (for example, a 
4559 \begin_inset Flex Code
4560 status collapsed
4561
4562 \begin_layout Plain Layout
4563
4564 \backslash
4565 kinclude
4566 \end_layout
4567
4568 \end_inset
4569
4570  option to include default keyboard).
4571 \end_layout
4572
4573 \end_inset
4574
4575
4576 \end_layout
4577
4578 \begin_layout Section
4579 International Keymap Stuff
4580 \begin_inset CommandInset label
4581 LatexCommand label
4582 name "sec:International-Keymap-Stuff"
4583
4584 \end_inset
4585
4586
4587 \end_layout
4588
4589 \begin_layout Standard
4590 \begin_inset Note Note
4591 status open
4592
4593 \begin_layout Plain Layout
4594 In doing the revisions on this document in March 2008, I did not look over
4595  this stuff, as I do not understand it.
4596  It would be good if someone else could do so.
4597  (RH)
4598 \end_layout
4599
4600 \end_inset
4601
4602
4603 \end_layout
4604
4605 \begin_layout Standard
4606 The next two sections describe the 
4607 \begin_inset Flex Code
4608 status collapsed
4609
4610 \begin_layout Plain Layout
4611
4612 \shape up
4613 .kmap
4614 \end_layout
4615
4616 \end_inset
4617
4618  and 
4619 \begin_inset Flex Code
4620 status collapsed
4621
4622 \begin_layout Plain Layout
4623
4624 \shape up
4625 .cdef
4626 \end_layout
4627
4628 \end_inset
4629
4630  file syntax in detail.
4631  These sections should help you design your own key map if the ones provided
4632  do not meet your needs.
4633 \end_layout
4634
4635 \begin_layout Subsection
4636 The .kmap File
4637 \end_layout
4638
4639 \begin_layout Standard
4640
4641 \shape up
4642 .
4643 \begin_inset Flex Code
4644 status collapsed
4645
4646 \begin_layout Plain Layout
4647 kmap
4648 \end_layout
4649
4650 \end_inset
4651
4652  file maps keystrokes to characters or strings.
4653  As the name suggests, it sets a keyboard mapping.
4654  The 
4655 \begin_inset Flex Code
4656 status collapsed
4657
4658 \begin_layout Plain Layout
4659 .kmap
4660 \end_layout
4661
4662 \end_inset
4663
4664
4665 \shape default
4666  file keywords 
4667 \shape up
4668
4669 \begin_inset Flex Code
4670 status collapsed
4671
4672 \begin_layout Plain Layout
4673
4674 \shape up
4675 kmap
4676 \end_layout
4677
4678 \end_inset
4679
4680
4681 \shape default
4682 ,
4683 \shape up
4684  
4685 \shape default
4686
4687 \begin_inset Flex Code
4688 status collapsed
4689
4690 \begin_layout Plain Layout
4691
4692 \shape up
4693 kmod
4694 \end_layout
4695
4696 \end_inset
4697
4698 ,
4699 \shape up
4700  
4701 \shape default
4702
4703 \begin_inset Flex Code
4704 status collapsed
4705
4706 \begin_layout Plain Layout
4707
4708 \shape up
4709 kxmod
4710 \end_layout
4711
4712 \end_inset
4713
4714 , and 
4715 \begin_inset Flex Code
4716 status collapsed
4717
4718 \begin_layout Plain Layout
4719
4720 \shape up
4721 kcomb
4722 \end_layout
4723
4724 \end_inset
4725
4726  are described in this section.
4727 \end_layout
4728
4729 \begin_layout Labeling
4730 \labelwidthstring 00.00.0000
4731 \begin_inset Flex Code
4732 status collapsed
4733
4734 \begin_layout Plain Layout
4735
4736 \shape up
4737 kmap
4738 \end_layout
4739
4740 \end_inset
4741
4742  Map a character to a string
4743 \end_layout
4744
4745 \begin_layout LyX-Code
4746
4747 \backslash
4748 kmap 
4749 \family roman
4750 \emph on
4751 char
4752 \family default
4753 \emph default
4754  
4755 \family roman
4756 \emph on
4757 string
4758 \end_layout
4759
4760 \begin_layout Standard
4761 This will ma
4762 \family roman
4763 p
4764 \family default
4765  
4766 \family roman
4767 \emph on
4768 char
4769 \family default
4770 \emph default
4771  
4772 \family roman
4773 to
4774 \family default
4775  
4776 \family roman
4777 \emph on
4778 string
4779 \emph default
4780 .
4781  Note that in
4782 \family default
4783  
4784 \family roman
4785 \emph on
4786 string
4787 \emph default
4788 ,
4789 \family default
4790  
4791 \family roman
4792 \shape up
4793 the double-quote (")
4794 \family default
4795 \shape default
4796  
4797 \family roman
4798 and
4799 \family default
4800  
4801 \family roman
4802 \shape up
4803 the backslash (
4804 \backslash
4805 )
4806 \family default
4807 \shape default
4808  
4809 \family roman
4810 must be escaped with a preceding backslash (
4811 \shape up
4812
4813 \backslash
4814
4815 \shape default
4816 )
4817 \family default
4818 .
4819 \end_layout
4820
4821 \begin_layout Standard
4822 An example of a 
4823 \begin_inset Flex Noun
4824 status collapsed
4825
4826 \begin_layout Plain Layout
4827
4828 \shape up
4829 kmap
4830 \end_layout
4831
4832 \end_inset
4833
4834  statement to cause the symbol 
4835 \begin_inset Flex Noun
4836 status collapsed
4837
4838 \begin_layout Plain Layout
4839
4840 \shape up
4841 /
4842 \end_layout
4843
4844 \end_inset
4845
4846  to be output for the keystroke 
4847 \begin_inset Flex Noun
4848 status collapsed
4849
4850 \begin_layout Plain Layout
4851
4852 \shape up
4853 &
4854 \end_layout
4855
4856 \end_inset
4857
4858  is:
4859 \end_layout
4860
4861 \begin_layout LyX-Code
4862
4863 \backslash
4864 kmap & /
4865 \end_layout
4866
4867 \begin_layout Labeling
4868 \labelwidthstring 00.00.0000
4869 \begin_inset Flex Code
4870 status collapsed
4871
4872 \begin_layout Plain Layout
4873
4874 \shape up
4875 kmod
4876 \end_layout
4877
4878 \end_inset
4879
4880  Specify an accent character
4881 \end_layout
4882
4883 \begin_layout LyX-Code
4884
4885 \backslash
4886 kmod 
4887 \family roman
4888 \emph on
4889 char accent allowed
4890 \end_layout
4891
4892 \begin_layout Standard
4893 This will make the cha
4894 \family roman
4895 racter
4896 \family default
4897  
4898 \family roman
4899 \emph on
4900 char
4901 \family default
4902 \emph default
4903  
4904 \family roman
4905 \shape up
4906 \emph on
4907 be an accent
4908 \family default
4909 \shape default
4910 \emph default
4911  
4912 \family roman
4913 \shape up
4914 on the
4915 \family default
4916 \shape default
4917  
4918 \family roman
4919 \shape up
4920 \emph on
4921 allowed
4922 \family default
4923 \shape default
4924 \emph default
4925  
4926 \family roman
4927 \shape up
4928 cha
4929 \family default
4930 racter(s).
4931  This is the dead key
4932 \begin_inset Foot
4933 status collapsed
4934
4935 \begin_layout Plain Layout
4936 The term 
4937 \family roman
4938 \emph on
4939 dead key
4940 \family default
4941 \emph default
4942  refers to a key that does not produce a character by itself, but when followed
4943  with another key, produces the desired accent character.
4944  For example, a German characte
4945 \family roman
4946 r with an umlaut like
4947 \family default
4948  
4949 \family roman
4950 \emph on
4951 ä
4952 \family default
4953 \emph default
4954  
4955 \family roman
4956 can be produced in this manner.
4957 \end_layout
4958
4959 \end_inset
4960
4961  mechanism.
4962  
4963 \end_layout
4964
4965 \begin_layout Standard
4966 If you 
4967 \family roman
4968 hit
4969 \family default
4970  
4971 \family roman
4972 \emph on
4973 char
4974 \family default
4975 \emph default
4976  
4977 \family roman
4978 and then another key not in
4979 \family default
4980  
4981 \family roman
4982 \emph on
4983 allowed
4984 \emph default
4985 , you will get a
4986 \family default
4987  
4988 \family roman
4989 \emph on
4990 char
4991 \family default
4992 \emph default
4993  
4994 \family roman
4995 followed by the other, not allowed key, as output.
4996
4997 \family default
4998  Note that a 
4999 \begin_inset Flex Noun
5000 status collapsed
5001
5002 \begin_layout Plain Layout
5003
5004 \shape up
5005 Backspace
5006 \end_layout
5007
5008 \end_inset
5009
5010  cancels a dead key, so if 
5011 \family roman
5012 you hit
5013 \family default
5014  
5015 \family roman
5016 \emph on
5017 char
5018 \family default
5019 \emph default
5020  
5021 \begin_inset Flex Noun
5022 status collapsed
5023
5024 \begin_layout Plain Layout
5025
5026 \shape up
5027 \emph on
5028 Backspace
5029 \end_layout
5030
5031 \end_inset
5032
5033 , the cursor will not go one position backwards but will instead cancel
5034  the effect t
5035 \family roman
5036 hat
5037 \family default
5038  
5039 \family roman
5040 \shape up
5041 \emph on
5042 char
5043 \family default
5044 \shape default
5045 \emph default
5046  
5047 \family roman
5048 \shape up
5049 might have had on the next keystroke.
5050  
5051 \end_layout
5052
5053 \begin_layout Standard
5054 The following example specifies that the character ' is to be an acute accent,
5055  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
5056 \end_layout
5057
5058 \begin_layout LyX-Code
5059
5060 \backslash
5061 kmod ' acute aeiouAEIOU
5062 \end_layout
5063
5064 \begin_layout Labeling
5065 \labelwidthstring 00.00.0000
5066 \begin_inset Flex Code
5067 status collapsed
5068
5069 \begin_layout Plain Layout
5070 kxmod
5071 \end_layout
5072
5073 \end_inset
5074
5075  Specify an exception to the accent character
5076 \end_layout
5077
5078 \begin_layout LyX-Code
5079
5080 \backslash
5081 kxmod  
5082 \family roman
5083 \emph on
5084 accent char result
5085 \end_layout
5086
5087 \begin_layout Standard
5088 This defines an exce
5089 \family roman
5090 ption for
5091 \family default
5092  
5093 \family roman
5094 \emph on
5095 accent
5096 \family default
5097 \emph default
5098  
5099 \family roman
5100 on
5101 \family default
5102  
5103 \family roman
5104 \emph on
5105 char
5106 \emph default
5107 .
5108  T
5109 \shape up
5110 he
5111 \family default
5112 \shape default
5113  
5114 \family roman
5115 \shape up
5116 \emph on
5117 accent
5118 \family default
5119 \shape default
5120 \emph default
5121  
5122 \family roman
5123 \shape up
5124 must
5125 \family default
5126 \shape default
5127  
5128 \shape up
5129 have been assigned a keystroke with a previous
5130 \shape default
5131  
5132 \begin_inset Flex Code
5133 status collapsed
5134
5135 \begin_layout Plain Layout
5136
5137 \shape up
5138
5139 \backslash
5140 kmo
5141 \shape default
5142 d
5143 \end_layout
5144
5145 \end_inset
5146
5147  declar
5148 \family roman
5149 ation and
5150 \family default
5151  
5152 \family roman
5153 \emph on
5154 char
5155 \family default
5156 \emph default
5157  
5158 \family roman
5159 must not belong in the
5160 \family default
5161  
5162 \family roman
5163 \emph on
5164 allowed
5165 \family default
5166 \emph default
5167  
5168 \family roman
5169 set of
5170 \family default
5171  
5172 \family roman
5173 \emph on
5174 accent
5175 \emph default
5176 .
5177  When
5178 \family default
5179  
5180 \family roman
5181 \shape up
5182 you enter the
5183 \family default
5184 \shape default
5185  
5186 \family roman
5187 \shape up
5188 \emph on
5189 accent char
5190 \family default
5191 \shape default
5192 \emph default
5193  
5194 \family roman
5195 \shape up
5196 sequence,
5197 \family default
5198 \shape default
5199  
5200 \family roman
5201 \shape up
5202 \emph on
5203 result
5204 \emph default
5205  is produced.
5206  If such a declaration does not exist in
5207 \family default
5208 \shape default
5209  
5210 \shape up
5211 the
5212 \shape default
5213  
5214 \begin_inset Flex Code
5215 status collapsed
5216
5217 \begin_layout Plain Layout
5218
5219 \shape up
5220 .kmap
5221 \end_layout
5222
5223 \end_inset
5224
5225  file and yo
5226 \family roman
5227 u enter
5228 \family default
5229  
5230 \family roman
5231 \emph on
5232 accent char
5233 \emph default
5234 , you get
5235 \family default
5236  
5237 \family roman
5238 \emph on
5239 accent_key char
5240 \emph default
5241  where
5242 \family default
5243  
5244 \family roman
5245 \emph on
5246 accent_key
5247 \emph default
5248  is the first arg
5249 \family default
5250 ument of the 
5251 \begin_inset Flex Code
5252 status collapsed
5253
5254 \begin_layout Plain Layout
5255
5256 \shape up
5257
5258 \backslash
5259 kmod
5260 \end_layout
5261
5262 \end_inset
5263
5264  declaration.
5265  
5266 \end_layout
5267
5268 \begin_layout Standard
5269 The following command produces causes äi to be produced when you enter acute-i
5270  ('i):
5271 \end_layout
5272
5273 \begin_layout LyX-Code
5274
5275 \backslash
5276 kxmod acute i "
5277 \backslash
5278
5279 \backslash
5280 '{
5281 \backslash
5282
5283 \backslash
5284 i}"
5285 \end_layout
5286
5287 \begin_layout Labeling
5288 \labelwidthstring 00.00.0000
5289 \begin_inset Flex Code
5290 status collapsed
5291
5292 \begin_layout Plain Layout
5293 kcomb
5294 \end_layout
5295
5296 \end_inset
5297
5298  Combine two accent characters
5299 \end_layout
5300
5301 \begin_layout LyX-Code
5302
5303 \backslash
5304 kcomb 
5305 \family roman
5306 \emph on
5307 accent1 accent2 allowed
5308 \end_layout
5309
5310 \begin_layout Standard
5311 This one is getting pretty esoteric.
5312  It allows you to combine the effect 
5313 \family roman
5314 of
5315 \family default
5316  
5317 \family roman
5318 \emph on
5319 accent1
5320 \family default
5321 \emph default
5322  
5323 \family roman
5324 and
5325 \family default
5326  
5327 \family roman
5328 \emph on
5329 accent2
5330 \family default
5331 \emph default
5332  
5333 \family roman
5334 (in that order!) on
5335 \family default
5336  
5337 \family roman
5338 \emph on
5339 allowed
5340 \family default
5341 \emph default
5342  
5343 \family roman
5344 chars.
5345  The keystrokes for
5346 \family default
5347  
5348 \family roman
5349 \emph on
5350 accent1
5351 \family default
5352 \emph default
5353  
5354 \family roman
5355 and
5356 \family default
5357  
5358 \family roman
5359 \emph on
5360 accent2
5361 \family default
5362 \emph default
5363  
5364 \family roman
5365 must have be
5366 \family default
5367 en set with a 
5368 \begin_inset Flex Code
5369 status collapsed
5370
5371 \begin_layout Plain Layout
5372
5373 \shape up
5374
5375 \backslash
5376 kmod
5377 \end_layout
5378
5379 \end_inset
5380
5381  command at 
5382 \family roman
5383 a
5384 \family default
5385  
5386 \family roman
5387 \emph on
5388 previous
5389 \family default
5390 \emph default
5391  
5392 \family roman
5393 point in the
5394 \family default
5395  file.
5396  
5397 \end_layout
5398
5399 \begin_layout Standard
5400 Consider this example from the 
5401 \begin_inset Flex Code
5402 status collapsed
5403
5404 \begin_layout Plain Layout
5405
5406 \shape up
5407 greek.kmap
5408 \end_layout
5409
5410 \end_inset
5411
5412  file:
5413 \end_layout
5414
5415 \begin_layout LyX-Code
5416
5417 \backslash
5418 kmod ; acute aeioyvhAEIOYVH 
5419 \backslash
5420 kmod : umlaut iyIY 
5421 \backslash
5422 kcomb acute umlaut iyIY
5423 \end_layout
5424
5425 \begin_layout Standard
5426 This allows you to press 
5427 \begin_inset Flex Noun
5428 status collapsed
5429
5430 \begin_layout Plain Layout
5431
5432 \shape up
5433 ;:i
5434 \end_layout
5435
5436 \end_inset
5437
5438  and get the effect of 
5439 \begin_inset Flex Code
5440 status collapsed
5441
5442 \begin_layout Plain Layout
5443
5444 \shape up
5445
5446 \backslash
5447 '{
5448 \backslash
5449 "{i}}
5450 \end_layout
5451
5452 \end_inset
5453
5454 .
5455  
5456 \family roman
5457 \shape up
5458 A backspace
5459 \family default
5460 \shape default
5461  in this case cancels the last dead key, so if you press 
5462 \begin_inset Flex Noun
5463 status collapsed
5464
5465 \begin_layout Plain Layout
5466
5467 \shape up
5468 ;: Backspace i
5469 \end_layout
5470
5471 \end_inset
5472
5473  you get 
5474 \begin_inset Flex Code
5475 status collapsed
5476
5477 \begin_layout Plain Layout
5478
5479 \shape up
5480
5481 \backslash
5482 '{i}
5483 \end_layout
5484
5485 \end_inset
5486
5487 .
5488 \end_layout
5489
5490 \begin_layout Subsection
5491 The .cdef File
5492 \end_layout
5493
5494 \begin_layout Standard
5495 After the 
5496 \begin_inset Flex Code
5497 status collapsed
5498
5499 \begin_layout Plain Layout
5500
5501 \shape up
5502 .kmap
5503 \end_layout
5504
5505 \end_inset
5506
5507  mapping is performed, a 
5508 \begin_inset Flex Code
5509 status collapsed
5510
5511 \begin_layout Plain Layout
5512
5513 \shape up
5514 .cde
5515 \shape default
5516 f
5517 \end_layout
5518
5519 \end_inset
5520
5521  file maps the strings that the symbols generate to characters in the current
5522  font.
5523  The \SpecialChar LyX
5524  distribution currently includes at least the 
5525 \begin_inset Flex Code
5526 status collapsed
5527
5528 \begin_layout Plain Layout
5529
5530 \shape up
5531 iso8859-1.cdef
5532 \end_layout
5533
5534 \end_inset
5535
5536  and 
5537 \begin_inset Flex Code
5538 status collapsed
5539
5540 \begin_layout Plain Layout
5541
5542 \shape up
5543 iso8859-2.cdef
5544 \end_layout
5545
5546 \end_inset
5547
5548  files.
5549 \end_layout
5550
5551 \begin_layout Standard
5552 In general the 
5553 \begin_inset Flex Code
5554 status collapsed
5555
5556 \begin_layout Plain Layout
5557
5558 \shape up
5559 .cdef
5560 \end_layout
5561
5562 \end_inset
5563
5564  file is a sequence of declarations of the form
5565 \end_layout
5566
5567 \begin_layout LyX-Code
5568
5569 \family roman
5570 \emph on
5571 char_index_in_set
5572 \family default
5573 \emph default
5574  
5575 \family roman
5576 \emph on
5577  string
5578 \end_layout
5579
5580 \begin_layout Standard
5581 For example, in order to map 
5582 \begin_inset Flex Noun
5583 status collapsed
5584
5585 \begin_layout Plain Layout
5586
5587 \shape up
5588
5589 \backslash
5590 '{e}
5591 \end_layout
5592
5593 \end_inset
5594
5595  to the corresponding character in the iso-8859-1 set (233), the following
5596  declaration is used
5597 \end_layout
5598
5599 \begin_layout LyX-Code
5600 233 "
5601 \backslash
5602
5603 \backslash
5604 '{e}"
5605 \end_layout
5606
5607 \begin_layout Standard
5608 with 
5609 \begin_inset Flex Code
5610 status collapsed
5611
5612 \begin_layout Plain Layout
5613
5614 \backslash
5615
5616 \end_layout
5617
5618 \end_inset
5619
5620  and 
5621 \begin_inset Flex Code
5622 status collapsed
5623
5624 \begin_layout Plain Layout
5625 "
5626 \end_layout
5627
5628 \end_inset
5629
5630  being escap
5631 \family roman
5632 ed in
5633 \family default
5634  
5635 \family roman
5636 \emph on
5637 string
5638 \emph default
5639 .
5640  Note that
5641 \family default
5642  the same character can apply to more than one string.
5643  In the 
5644 \begin_inset Flex Code
5645 status collapsed
5646
5647 \begin_layout Plain Layout
5648 i
5649 \shape up
5650 so-8859-7.cdef
5651 \end_layout
5652
5653 \end_inset
5654
5655  file you have
5656 \end_layout
5657
5658 \begin_layout LyX-Code
5659 192 "
5660 \backslash
5661
5662 \backslash
5663 '{
5664 \backslash
5665
5666 \backslash
5667
5668 \backslash
5669 "{i}}"
5670 \begin_inset Newline newline
5671 \end_inset
5672
5673 192 "
5674 \backslash
5675
5676 \backslash
5677
5678 \backslash
5679 "{
5680 \backslash
5681
5682 \backslash
5683 '{i}}"
5684 \end_layout
5685
5686 \begin_layout Standard
5687 If \SpecialChar LyX
5688  cannot find a mapping for the string produced by the keystroke or a
5689  deadkey sequence, it will check if it looks like an accented char and try
5690  to draw an accent over the character on screen.
5691 \end_layout
5692
5693 \begin_layout Subsection
5694 Dead Keys
5695 \end_layout
5696
5697 \begin_layout Standard
5698 There is a second way to add support for international characters through
5699  so-called dead-keys.
5700  A dead-key works in combination with a letter to produce an accented character.
5701  Here, we'll explain how to create a really simple dead-key to illustrate
5702  how they work.
5703 \end_layout
5704
5705 \begin_layout Standard
5706 Suppose you happen to need the circumflex character, 
5707 \begin_inset Quotes eld
5708 \end_inset
5709
5710  ̂
5711 \begin_inset Quotes erd
5712 \end_inset
5713
5714 .
5715  You could bind the 
5716 \begin_inset Flex Noun
5717 status collapsed
5718
5719 \begin_layout Plain Layout
5720 ^
5721 \end_layout
5722
5723 \end_inset
5724
5725 -key [a.k.a.
5726 \begin_inset space ~
5727 \end_inset
5728
5729
5730 \begin_inset Flex Noun
5731 status collapsed
5732
5733 \begin_layout Plain Layout
5734 Shift-6
5735 \end_layout
5736
5737 \end_inset
5738
5739 ] to the \SpecialChar LyX
5740  command 
5741 \begin_inset Flex Code
5742 status collapsed
5743
5744 \begin_layout Plain Layout
5745 accent-circumflex
5746 \end_layout
5747
5748 \end_inset
5749
5750  in your 
5751 \begin_inset Flex Code
5752 status collapsed
5753
5754 \begin_layout Plain Layout
5755 lyxrc
5756 \end_layout
5757
5758 \end_inset
5759
5760  file.
5761  Now, whenever you type the 
5762 \begin_inset Flex Noun
5763 status collapsed
5764
5765 \begin_layout Plain Layout
5766 ^
5767 \end_layout
5768
5769 \end_inset
5770
5771 -key followed by a letter, that letter will have a circumflex accent on
5772  it.
5773  For example, the sequence 
5774 \begin_inset Quotes eld
5775 \end_inset
5776
5777
5778 \begin_inset Flex Noun
5779 status collapsed
5780
5781 \begin_layout Plain Layout
5782 ^e
5783 \end_layout
5784
5785 \end_inset
5786
5787
5788 \begin_inset Quotes erd
5789 \end_inset
5790
5791  produces the letter: 
5792 \begin_inset Quotes eld
5793 \end_inset
5794
5795 ê
5796 \begin_inset Quotes erd
5797 \end_inset
5798
5799 .
5800  If you tried to type 
5801 \begin_inset Quotes eld
5802 \end_inset
5803
5804
5805 \begin_inset Flex Noun
5806 status collapsed
5807
5808 \begin_layout Plain Layout
5809 ^t
5810 \end_layout
5811
5812 \end_inset
5813
5814
5815 \begin_inset Quotes erd
5816 \end_inset
5817
5818 , however, \SpecialChar LyX
5819  will complain with a beep, since a 
5820 \begin_inset Quotes eld
5821 \end_inset
5822
5823
5824 \begin_inset Flex Noun
5825 status collapsed
5826
5827 \begin_layout Plain Layout
5828 t
5829 \end_layout
5830
5831 \end_inset
5832
5833
5834 \begin_inset Quotes erd
5835 \end_inset
5836
5837  never takes a circumflex accent.
5838  Hitting 
5839 \begin_inset Flex Noun
5840 status collapsed
5841
5842 \begin_layout Plain Layout
5843 Space
5844 \end_layout
5845
5846 \end_inset
5847
5848  after a dead-key produces the bare-accent.
5849  Please note this last point! If you bind a key to a dead-key, you'll need
5850  to rebind the character on that key to yet another key.
5851  Binding the 
5852 \begin_inset Flex Noun
5853 status collapsed
5854
5855 \begin_layout Plain Layout
5856 ,-key
5857 \end_layout
5858
5859 \end_inset
5860
5861  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5862 \end_layout
5863
5864 \begin_layout Standard
5865 One common way to bind dead-keys is to use 
5866 \begin_inset Flex Noun
5867 status collapsed
5868
5869 \begin_layout Plain Layout
5870 Meta-
5871 \end_layout
5872
5873 \end_inset
5874
5875
5876 \begin_inset Flex Noun
5877 status collapsed
5878
5879 \begin_layout Plain Layout
5880 Ctrl-
5881 \end_layout
5882
5883 \end_inset
5884
5885 , and 
5886 \begin_inset Flex Noun
5887 status collapsed
5888
5889 \begin_layout Plain Layout
5890 Shift-
5891 \end_layout
5892
5893 \end_inset
5894
5895  in combination with an accent, like 
5896 \begin_inset Quotes eld
5897 \end_inset
5898
5899
5900 \begin_inset Flex Noun
5901 status collapsed
5902
5903 \begin_layout Plain Layout
5904 ~
5905 \end_layout
5906
5907 \end_inset
5908
5909
5910 \begin_inset Quotes erd
5911 \end_inset
5912
5913  or 
5914 \begin_inset Quotes eld
5915 \end_inset
5916
5917
5918 \begin_inset Flex Noun
5919 status collapsed
5920
5921 \begin_layout Plain Layout
5922 ,
5923 \end_layout
5924
5925 \end_inset
5926
5927
5928 \begin_inset Quotes erd
5929 \end_inset
5930
5931  or 
5932 \begin_inset Quotes eld
5933 \end_inset
5934
5935
5936 \begin_inset Flex Noun
5937 status collapsed
5938
5939 \begin_layout Plain Layout
5940 ^
5941 \end_layout
5942
5943 \end_inset
5944
5945
5946 \begin_inset Quotes erd
5947 \end_inset
5948
5949 .
5950  Another way involves using 
5951 \begin_inset Flex Code
5952 status collapsed
5953
5954 \begin_layout Plain Layout
5955 xmodmap
5956 \end_layout
5957
5958 \end_inset
5959
5960  and 
5961 \begin_inset Flex Code
5962 status collapsed
5963
5964 \begin_layout Plain Layout
5965 xkeycaps
5966 \end_layout
5967
5968 \end_inset
5969
5970  to set up the special 
5971 \begin_inset Flex Code
5972 status collapsed
5973
5974 \begin_layout Plain Layout
5975 Mode_Switch
5976 \end_layout
5977
5978 \end_inset
5979
5980  key.
5981  The 
5982 \begin_inset Flex Code
5983 status collapsed
5984
5985 \begin_layout Plain Layout
5986 Mode_Switch
5987 \end_layout
5988
5989 \end_inset
5990
5991  acts in some ways just like 
5992 \begin_inset Flex Noun
5993 status collapsed
5994
5995 \begin_layout Plain Layout
5996 Shift
5997 \end_layout
5998
5999 \end_inset
6000
6001  and permits you to bind keys to accented characters.
6002  You can also turn keys into dead-keys by binding them to something like
6003  
6004 \begin_inset Flex Code
6005 status collapsed
6006
6007 \begin_layout Plain Layout
6008 usldead_cedilla
6009 \end_layout
6010
6011 \end_inset
6012
6013  and then binding this symbolic key to the corresponding \SpecialChar LyX
6014  command.
6015 \begin_inset Foot
6016 status collapsed
6017
6018 \begin_layout Plain Layout
6019 Note from 
6020 \noun on
6021 John Weiss
6022 \noun default
6023 : This is exactly what I do in my 
6024 \begin_inset Flex Code
6025 status collapsed
6026
6027 \begin_layout Plain Layout
6028 ~/.lyx/lyxrc
6029 \end_layout
6030
6031 \end_inset
6032
6033  and my 
6034 \begin_inset Flex Code
6035 status collapsed
6036
6037 \begin_layout Plain Layout
6038 ~/.xmodmap
6039 \end_layout
6040
6041 \end_inset
6042
6043  files.
6044  I have my 
6045 \begin_inset Flex Noun
6046 status collapsed
6047
6048 \begin_layout Plain Layout
6049 Scroll
6050 \begin_inset space ~
6051 \end_inset
6052
6053 Lock
6054 \end_layout
6055
6056 \end_inset
6057
6058  key set up as 
6059 \begin_inset Flex Code
6060 status collapsed
6061
6062 \begin_layout Plain Layout
6063 Mode_Shift
6064 \end_layout
6065
6066 \end_inset
6067
6068  and a bunch of these 
6069 \begin_inset Quotes eld
6070 \end_inset
6071
6072
6073 \begin_inset Flex Code
6074 status collapsed
6075
6076 \begin_layout Plain Layout
6077 usldead_*
6078 \end_layout
6079
6080 \end_inset
6081
6082
6083 \begin_inset Quotes erd
6084 \end_inset
6085
6086  symbolic keys bound such things as 
6087 \begin_inset Flex Noun
6088 status collapsed
6089
6090 \begin_layout Plain Layout
6091 Scroll
6092 \begin_inset space ~
6093 \end_inset
6094
6095 Lock-^
6096 \end_layout
6097
6098 \end_inset
6099
6100  and 
6101 \begin_inset Flex Noun
6102 status collapsed
6103
6104 \begin_layout Plain Layout
6105 Scroll
6106 \begin_inset space ~
6107 \end_inset
6108
6109 Lock-~
6110 \end_layout
6111
6112 \end_inset
6113
6114 .
6115  This is how I produce my accented characters.
6116 \end_layout
6117
6118 \end_inset
6119
6120  You can make just about anything into the 
6121 \begin_inset Flex Code
6122 status collapsed
6123
6124 \begin_layout Plain Layout
6125 Mode_Switch
6126 \end_layout
6127
6128 \end_inset
6129
6130  key: One of the 
6131 \begin_inset Flex Noun
6132 status collapsed
6133
6134 \begin_layout Plain Layout
6135 Ctrl-
6136 \end_layout
6137
6138 \end_inset
6139
6140  keys, a spare function key, etc.
6141  As for the \SpecialChar LyX
6142  commands that produce accents, check the entry for 
6143 \begin_inset Flex Code
6144 status collapsed
6145
6146 \begin_layout Plain Layout
6147 accent-acute
6148 \end_layout
6149
6150 \end_inset
6151
6152  in the 
6153 \emph on
6154 Reference Manual
6155 \emph default
6156 .
6157  You'll find the complete list there.
6158 \end_layout
6159
6160 \begin_layout Subsection
6161 Saving your Language Configuration
6162 \end_layout
6163
6164 \begin_layout Standard
6165 You can edit your preferences so that your desired language environment
6166  is automatically configured when \SpecialChar LyX
6167  starts up, via the 
6168 \begin_inset Flex Noun
6169 status collapsed
6170
6171 \begin_layout Plain Layout
6172 Edit\SpecialChar menuseparator
6173 Preferences
6174 \end_layout
6175
6176 \end_inset
6177
6178  dialog.
6179 \end_layout
6180
6181 \begin_layout Chapter
6182
6183 \change_inserted -584632292 1610232084
6184 Creating and 
6185 \change_unchanged
6186 Installing New Document Classes, Layouts, and Templates
6187 \begin_inset CommandInset label
6188 LatexCommand label
6189 name "cha:Installing-New-Document"
6190
6191 \end_inset
6192
6193
6194 \begin_inset Argument 1
6195 status collapsed
6196
6197 \begin_layout Plain Layout
6198 Installing New Document Classes
6199 \end_layout
6200
6201 \end_inset
6202
6203
6204 \end_layout
6205
6206 \begin_layout Standard
6207 In this chapter, we describe the procedures for creating and installing
6208  new \SpecialChar LyX
6209  layout and template files, as well as offer a refresher on correctly
6210  installing new \SpecialChar LaTeX
6211  document classes.
6212  
6213 \end_layout
6214
6215 \begin_layout Standard
6216 First, let us a say a few words about how one ought to think about the relation
6217  between \SpecialChar LyX
6218  and \SpecialChar LaTeX
6219 .
6220  The thing to understand is that, in a certain sense, \SpecialChar LyX
6221  doesn't know anything
6222  about \SpecialChar LaTeX
6223 .
6224  Indeed, from \SpecialChar LyX
6225 's point of view, \SpecialChar LaTeX
6226  is just one of several 
6227 \begin_inset Quotes eld
6228 \end_inset
6229
6230 backend formats
6231 \begin_inset Quotes erd
6232 \end_inset
6233
6234  in which it is capable of producing output.
6235  Other such formats are DocBook, plaintext, and XHTML.
6236  \SpecialChar LaTeX
6237  is, of course, a particularly important format, but very little of the
6238  information \SpecialChar LyX
6239  has about \SpecialChar LaTeX
6240  is actually contained in the program itself.
6241 \begin_inset Foot
6242 status collapsed
6243
6244 \begin_layout Plain Layout
6245 Some commands are sufficiently complex that they are 
6246 \begin_inset Quotes eld
6247 \end_inset
6248
6249 hardcoded
6250 \begin_inset Quotes erd
6251 \end_inset
6252
6253  into \SpecialChar LyX
6254 .
6255  But the developers generally regard this as a Bad Thing.
6256 \end_layout
6257
6258 \end_inset
6259
6260  Rather, that information, even for the standard classes like 
6261 \begin_inset Flex Code
6262 status collapsed
6263
6264 \begin_layout Plain Layout
6265 article.cls
6266 \end_layout
6267
6268 \end_inset
6269
6270 , is contained in `layout files'.
6271  Similarly, \SpecialChar LyX
6272  itself does not know much about DocBook or XHTML.
6273  What it knows is contained in layout files.
6274 \end_layout
6275
6276 \begin_layout Standard
6277 You can think of the layout file for a given document class as a translation
6278  manual between \SpecialChar LyX
6279  constructs—paragraphs with their corresponding styles,
6280  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6281 , DocBook, or XHTML
6282  constructs.
6283  Almost everything \SpecialChar LyX
6284  knows about 
6285 \begin_inset Flex Code
6286 status collapsed
6287
6288 \begin_layout Plain Layout
6289 article.cls
6290 \end_layout
6291
6292 \end_inset
6293
6294 , for example, is contained in the file 
6295 \begin_inset Flex Code
6296 status collapsed
6297
6298 \begin_layout Plain Layout
6299 article.layout
6300 \end_layout
6301
6302 \end_inset
6303
6304  and in various other files it includes.
6305  For this reason, anyone intending to write layout files should plan to
6306  study the existing files.
6307  A good place to start is with 
6308 \begin_inset Flex Code
6309 status collapsed
6310
6311 \begin_layout Plain Layout
6312 stdsections.inc
6313 \end_layout
6314
6315 \end_inset
6316
6317 , which is included in 
6318 \begin_inset Flex Code
6319 status collapsed
6320
6321 \begin_layout Plain Layout
6322 article.layout
6323 \end_layout
6324
6325 \end_inset
6326
6327
6328 \begin_inset Flex Code
6329 status collapsed
6330
6331 \begin_layout Plain Layout
6332 book.layout
6333 \end_layout
6334
6335 \end_inset
6336
6337 , and many of the other layout files for document classes.
6338  This file is where sections and the like are defined: 
6339 \begin_inset Flex Code
6340 status collapsed
6341
6342 \begin_layout Plain Layout
6343 stdsections.inc
6344 \end_layout
6345
6346 \end_inset
6347
6348  tells \SpecialChar LyX
6349  how paragraphs that are marked with the Section, Subsection, etc,
6350  styles can be translated into corresponding \SpecialChar LaTeX
6351 , DocBook, and XHTML commands
6352  and tags.
6353  The 
6354 \begin_inset Flex Code
6355 status collapsed
6356
6357 \begin_layout Plain Layout
6358 article.layout
6359 \end_layout
6360
6361 \end_inset
6362
6363  file basically just includes several of these 
6364 \begin_inset Flex Code
6365 status collapsed
6366
6367 \begin_layout Plain Layout
6368 std*.inc
6369 \end_layout
6370
6371 \end_inset
6372
6373  files.
6374 \end_layout
6375
6376 \begin_layout Standard
6377 Defining the \SpecialChar LyX
6378 –\SpecialChar LaTeX
6379  correspondence is not the only thing layout files do, though.
6380  Their other job is to define how the \SpecialChar LyX
6381  constructs themselves will appear
6382  on-screen.
6383  The fact that layout files have these two jobs is often a source of confusion,
6384  because they are completely separate.
6385  Telling \SpecialChar LyX
6386  how to translate a certain paragraph style into \SpecialChar LaTeX
6387  does not tell
6388  \SpecialChar LyX
6389  how to display it; conversely, telling \SpecialChar LyX
6390  how to display a certain paragraph
6391  style does not tell \SpecialChar LyX
6392  how to translate it into \SpecialChar LaTeX
6393  (let alone tell \SpecialChar LaTeX
6394  how to
6395  display it).
6396  So, in general, when you define a new \SpecialChar LyX
6397  construct, you must always do two
6398  quite separate things: (i)
6399 \begin_inset space ~
6400 \end_inset
6401
6402 tell \SpecialChar LyX
6403  how to translate it into \SpecialChar LaTeX
6404  and (ii)
6405 \begin_inset space ~
6406 \end_inset
6407
6408 tell \SpecialChar LyX
6409  how to display it.
6410 \end_layout
6411
6412 \begin_layout Standard
6413 Much the same is true, of course, as regards \SpecialChar LyX
6414 's other backend formats, though
6415  XHTML is in some ways different, because in that case \SpecialChar LyX
6416  
6417 \emph on
6418 is
6419 \emph default
6420  able, to some extent, to use information about how it should display a
6421  paragraph on the screen to output information (in the form of CSS) about
6422  how the paragraph should be displayed in a browser.
6423  Even in this case, however, the distinction between what \SpecialChar LyX
6424  does internally
6425  and how things are rendered externally remains in force, and the two can
6426  be controlled separately.
6427  See 
6428 \begin_inset CommandInset ref
6429 LatexCommand ref
6430 reference "sec:Tags-for-XHTML"
6431
6432 \end_inset
6433
6434  for the details.
6435 \end_layout
6436
6437 \begin_layout Section
6438 Installing new \SpecialChar LaTeX
6439  files
6440 \end_layout
6441
6442 \begin_layout Standard
6443 Some installations may not include a \SpecialChar LaTeX
6444  package or class file that you would
6445  like to use within \SpecialChar LyX
6446 .
6447  For example, you might need Foil\SpecialChar TeX
6448 , a package for preparing slides for overhead
6449  projectors.
6450  Modern \SpecialChar LaTeX
6451  distributions like \SpecialChar TeX
6452 Live (2008 or newer) or MiK\SpecialChar TeX
6453  provide a user interface
6454  for installing such packages.
6455  For example, with MiK\SpecialChar TeX
6456 , you start the program 
6457 \begin_inset Quotes eld
6458 \end_inset
6459
6460 Package
6461 \begin_inset space ~
6462 \end_inset
6463
6464 Manager
6465 \begin_inset Quotes erd
6466 \end_inset
6467
6468  to get a list of available packages.
6469  To install one of them, right click on it or use the corresponding toolbar
6470  button.
6471 \end_layout
6472
6473 \begin_layout Standard
6474 If your \SpecialChar LaTeX
6475  distribution does not provide such a `package manager', or if the
6476  package is not available from your distribution, then follow these steps
6477  to install it manually:
6478 \end_layout
6479
6480 \begin_layout Enumerate
6481 Get the package from 
6482 \begin_inset CommandInset href
6483 LatexCommand href
6484 name "CTAN"
6485 target "http://www.ctan.org/"
6486 literal "false"
6487
6488 \end_inset
6489
6490  or wherever.
6491 \end_layout
6492
6493 \begin_layout Enumerate
6494 If the package contains a file with the ending 
6495 \begin_inset Quotes eld
6496 \end_inset
6497
6498
6499 \begin_inset Flex Code
6500 status collapsed
6501
6502 \begin_layout Plain Layout
6503 .ins
6504 \end_layout
6505
6506 \end_inset
6507
6508
6509 \begin_inset Quotes erd
6510 \end_inset
6511
6512  (is the case for Foil\SpecialChar TeX
6513 ) then open a console, change to the folder of this
6514  file and execute the command 
6515 \begin_inset Flex Code
6516 status collapsed
6517
6518 \begin_layout Plain Layout
6519 latex foiltex.ins
6520 \end_layout
6521
6522 \end_inset
6523
6524 .
6525  You have now unpacked the package and have all files to install it.
6526  Most \SpecialChar LaTeX
6527 -packages are not packed and you can skip this step.
6528 \end_layout
6529
6530 \begin_layout Enumerate
6531 Now you need to decide if the package should be available for all users
6532  or only for you.
6533 \end_layout
6534
6535 \begin_deeper
6536 \begin_layout Enumerate
6537 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6538  for all users on your system, then install it in your `local' \SpecialChar TeX
6539  tree, otherwise
6540  install it in your own `user' \SpecialChar TeX
6541  tree.
6542  Where these trees should be created, if they do not already exist, depends
6543  on your system.
6544  To find this out, look in the file 
6545 \begin_inset Flex Code
6546 status collapsed
6547
6548 \begin_layout Plain Layout
6549 texmf.cnf
6550 \end_layout
6551
6552 \end_inset
6553
6554 .
6555 \begin_inset Foot
6556 status collapsed
6557
6558 \begin_layout Plain Layout
6559 This is usually in the directory 
6560 \begin_inset Flex Code
6561 status collapsed
6562
6563 \begin_layout Plain Layout
6564 $TEXMF/web2c
6565 \end_layout
6566
6567 \end_inset
6568
6569 , though you can execute the command 
6570 \begin_inset Flex Code
6571 status collapsed
6572
6573 \begin_layout Plain Layout
6574 kpsewhich texmf.cnf
6575 \end_layout
6576
6577 \end_inset
6578
6579  to locate it.
6580 \end_layout
6581
6582 \end_inset
6583
6584  The location of the `local' \SpecialChar TeX
6585  tree is defined by the 
6586 \begin_inset Flex Code
6587 status collapsed
6588
6589 \begin_layout Plain Layout
6590 TEXMFLOCAL
6591 \end_layout
6592
6593 \end_inset
6594
6595  variable; this is usually somewhere like 
6596 \begin_inset Flex Code
6597 status collapsed
6598
6599 \begin_layout Plain Layout
6600 /usr/local/share/texmf
6601 \end_layout
6602
6603 \end_inset
6604
6605  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6606 Live
6607  distribution.
6608  The location of the `user' \SpecialChar TeX
6609  tree is defined by 
6610 \begin_inset Flex Code
6611 status collapsed
6612
6613 \begin_layout Plain Layout
6614 TEXMFHOME
6615 \end_layout
6616
6617 \end_inset
6618
6619  and is commonly 
6620 \begin_inset Flex Code
6621 status collapsed
6622
6623 \begin_layout Plain Layout
6624 $HOME/texmf
6625 \end_layout
6626
6627 \end_inset
6628
6629  or 
6630 \begin_inset Flex Code
6631 status collapsed
6632
6633 \begin_layout Plain Layout
6634
6635 \family sans
6636 $HOME/.texliveXXXX
6637 \end_layout
6638
6639 \end_inset
6640
6641 .
6642  (If these variables are not predefined, you have to define them.) You'll
6643  probably need root permissions to create or modify the `local' tree, but
6644  not for your `user' tree.
6645 \begin_inset Newline newline
6646 \end_inset
6647
6648 In general, it is recommended to install in the user tree because your user
6649  will not be modified or even overwritten when you upgrade your system.
6650  It will typically also be backed up together with everything else when
6651  you backup your home directory (which, of course, you do on a regular basis).
6652 \end_layout
6653
6654 \begin_layout Enumerate
6655 On Windows, if you want the new package to be available for all users on
6656  your system, change to the folder where \SpecialChar LaTeX
6657  is installed and then change to
6658  the subfolder 
6659 \begin_inset Flex Code
6660 status collapsed
6661
6662 \begin_layout Plain Layout
6663 ~
6664 \backslash
6665 tex
6666 \backslash
6667 latex
6668 \end_layout
6669
6670 \end_inset
6671
6672 .
6673  (For MiK\SpecialChar TeX
6674 , this would be by default the folder 
6675 \begin_inset Flex Code
6676 status collapsed
6677
6678 \begin_layout Plain Layout
6679 ~:
6680 \backslash
6681 Programs
6682 \backslash
6683 MiKTeX
6684 \backslash
6685 tex
6686 \backslash
6687 latex
6688 \end_layout
6689
6690 \end_inset
6691
6692 .)
6693 \begin_inset Foot
6694 status collapsed
6695
6696 \begin_layout Plain Layout
6697 Note that this will be the correct path only on English installations.
6698  On a German one, it would be 
6699 \begin_inset Flex Code
6700 status collapsed
6701
6702 \begin_layout Plain Layout
6703 ~:
6704 \backslash
6705 Programme
6706 \backslash
6707 MiKTeX
6708 \backslash
6709 tex
6710 \backslash
6711 latex
6712 \end_layout
6713
6714 \end_inset
6715
6716 , and similarly for other languages.
6717 \end_layout
6718
6719 \end_inset
6720
6721  Create there a new folder 
6722 \begin_inset Flex Code
6723 status collapsed
6724
6725 \begin_layout Plain Layout
6726 foiltex
6727 \end_layout
6728
6729 \end_inset
6730
6731  and copy all files of the package into it.
6732  
6733 \begin_inset Newline newline
6734 \end_inset
6735
6736 If the package should only available for you or you don't have admin permissions
6737 , do the same, but in the local \SpecialChar LaTeX
6738  folder.
6739  E.
6740 \begin_inset space \thinspace{}
6741 \end_inset
6742
6743 g., for MiK\SpecialChar TeX
6744
6745 \begin_inset space ~
6746 \end_inset
6747
6748 2.8 under Windows XP, this would be the folder:
6749 \begin_inset Newline newline
6750 \end_inset
6751
6752
6753 \family sans
6754
6755 \begin_inset Flex Code
6756 status collapsed
6757
6758 \begin_layout Plain Layout
6759 ~:
6760 \backslash
6761 Documents and Settings
6762 \backslash
6763 <username>
6764 \backslash
6765 Application Data
6766 \backslash
6767
6768 \end_layout
6769
6770 \end_inset
6771
6772
6773 \begin_inset Newline newline
6774 \end_inset
6775
6776
6777 \family default
6778
6779 \begin_inset Phantom HPhantom
6780 status open
6781
6782 \begin_layout Plain Layout
6783
6784 \family sans
6785 ~:
6786 \backslash
6787
6788 \end_layout
6789
6790 \end_inset
6791
6792
6793 \begin_inset Flex Code
6794 status collapsed
6795
6796 \begin_layout Plain Layout
6797 MiKTeX
6798 \backslash
6799 2.8
6800 \backslash
6801 tex
6802 \backslash
6803 latex
6804 \end_layout
6805
6806 \end_inset
6807
6808
6809 \begin_inset Newline newline
6810 \end_inset
6811
6812 On Vista, it would be:
6813 \begin_inset Newline newline
6814 \end_inset
6815
6816
6817 \begin_inset Flex Code
6818 status collapsed
6819
6820 \begin_layout Plain Layout
6821 ~:
6822 \backslash
6823 Users
6824 \backslash
6825 <username>
6826 \backslash
6827 AppData
6828 \backslash
6829 Roaming
6830 \backslash
6831 2.8
6832 \backslash
6833 MiKTeX
6834 \backslash
6835 tex
6836 \backslash
6837 latex
6838 \end_layout
6839
6840 \end_inset
6841
6842
6843 \end_layout
6844
6845 \end_deeper
6846 \begin_layout Enumerate
6847 Now one only need to tell \SpecialChar LaTeX
6848  that there are new files.
6849  This depends on the used \SpecialChar LaTeX
6850 -Distribution:
6851 \end_layout
6852
6853 \begin_deeper
6854 \begin_layout Enumerate
6855 For \SpecialChar TeX
6856 Live execute the command 
6857 \begin_inset Flex Code
6858 status collapsed
6859
6860 \begin_layout Plain Layout
6861 texhash
6862 \end_layout
6863
6864 \end_inset
6865
6866  from a console.
6867  If you installed the package for all users, then you will probably need
6868  to have root permissions for that.
6869 \end_layout
6870
6871 \begin_layout Enumerate
6872 For MiK\SpecialChar TeX
6873 , if you have installed the package for all users, start the program
6874  
6875 \begin_inset Quotes eld
6876 \end_inset
6877
6878 Settings
6879 \begin_inset space ~
6880 \end_inset
6881
6882 (Admin)
6883 \begin_inset Quotes erd
6884 \end_inset
6885
6886  and press the button marked 
6887 \begin_inset Quotes eld
6888 \end_inset
6889
6890 Refresh FNDB
6891 \begin_inset Quotes erd
6892 \end_inset
6893
6894 .
6895  Otherwise start the program 
6896 \begin_inset Quotes eld
6897 \end_inset
6898
6899 Settings
6900 \begin_inset Quotes erd
6901 \end_inset
6902
6903  and do the same.
6904 \end_layout
6905
6906 \end_deeper
6907 \begin_layout Enumerate
6908 Finally, you need to tell \SpecialChar LyX
6909  that there are new packages available.
6910  So, in \SpecialChar LyX
6911 , use the menu 
6912 \begin_inset Flex Noun
6913 status collapsed
6914
6915 \begin_layout Plain Layout
6916 Tools
6917 \family sans
6918 \SpecialChar menuseparator
6919 Reconfigure
6920 \end_layout
6921
6922 \end_inset
6923
6924  and then restart \SpecialChar LyX
6925 .
6926 \end_layout
6927
6928 \begin_layout Standard
6929 Now the package is installed.
6930  In our example, the document class 
6931 \begin_inset Flex Code
6932 status collapsed
6933
6934 \begin_layout Plain Layout
6935 FoilTex
6936 \end_layout
6937
6938 \end_inset
6939
6940  will now be available under 
6941 \begin_inset Flex Noun
6942 status collapsed
6943
6944 \begin_layout Plain Layout
6945 Document\SpecialChar menuseparator
6946 Settings\SpecialChar menuseparator
6947 Document Class
6948 \end_layout
6949
6950 \end_inset
6951
6952  (in the 
6953 \begin_inset Quotes eld
6954 \end_inset
6955
6956 Presentations
6957 \begin_inset Quotes erd
6958 \end_inset
6959
6960  category).
6961  
6962 \end_layout
6963
6964 \begin_layout Standard
6965 If you would like to use a \SpecialChar LaTeX
6966  document class that is not even listed in the
6967  menu 
6968 \begin_inset Flex Noun
6969 status collapsed
6970
6971 \begin_layout Plain Layout
6972 Document\SpecialChar menuseparator
6973 Settings\SpecialChar menuseparator
6974 Document Class
6975 \end_layout
6976
6977 \end_inset
6978
6979 , then you need to create a `layout' file for it.
6980  That is the topic of the next section.
6981 \end_layout
6982
6983 \begin_layout Section
6984 Types of layout files
6985 \end_layout
6986
6987 \begin_layout Standard
6988 This section describes the various sorts of \SpecialChar LyX
6989  files that contain layout informati
6990 on.
6991  These files describe various paragraph and character styles, determining
6992  how \SpecialChar LyX
6993  should display them and how they should be translated into \SpecialChar LaTeX
6994 , DocBook,
6995  XHTML, or whatever output format is being used.
6996  
6997 \end_layout
6998
6999 \begin_layout Standard
7000 We shall try to provide a thorough description of the process of writing
7001  layout files here.
7002  However, there are so many different types of documents supported even
7003  by just \SpecialChar LaTeX
7004  that we can't hope to cover every different possibility or problem
7005  you might encounter.
7006  The \SpecialChar LyX
7007  users' list is frequented by people with lots of experience with layout
7008  design who are willing to share what they've learned, so please feel free
7009  to ask questions there.
7010 \end_layout
7011
7012 \begin_layout Standard
7013 As you prepare to write a new layout, it is extremely helpful to look at
7014  the layouts distributed with \SpecialChar LyX
7015 .
7016  If you write a \SpecialChar LyX
7017  layout for a \SpecialChar LaTeX
7018  document class that might also be used by
7019  others, or write a module that might be useful to others, then you should
7020  consider posting your layout to the 
7021 \begin_inset CommandInset href
7022 LatexCommand href
7023 name "layout section on the LyX wiki"
7024 target "https://wiki.lyx.org/Layouts/Layouts"
7025 literal "false"
7026
7027 \end_inset
7028
7029  or even to the \SpecialChar LyX
7030  developers' list, so that it might be included in \SpecialChar LyX
7031  itself.
7032 \begin_inset Foot
7033 status collapsed
7034
7035 \begin_layout Plain Layout
7036 Note that \SpecialChar LyX
7037  is licensed under the General Public License, so any material
7038  that is contributed to \SpecialChar LyX
7039  must be similarly licensed.
7040 \end_layout
7041
7042 \end_inset
7043
7044
7045 \end_layout
7046
7047 \begin_layout Subsection
7048 Layout modules
7049 \begin_inset CommandInset label
7050 LatexCommand label
7051 name "subsec:Layout-modules"
7052
7053 \end_inset
7054
7055
7056 \end_layout
7057
7058 \begin_layout Standard
7059 We have spoken to this point about `layout files'.
7060  But there are different sorts of files that contain layout information.
7061  Layout files, strictly so called, have the 
7062 \begin_inset Flex Code
7063 status collapsed
7064
7065 \begin_layout Plain Layout
7066 .layout
7067 \end_layout
7068
7069 \end_inset
7070
7071  extension and provide \SpecialChar LyX
7072  with information about document classes.
7073  Since \SpecialChar LyX
7074  1.6 layout information can also be contained in layout 
7075 \emph on
7076 modules
7077 \emph default
7078 , which have the 
7079 \begin_inset Flex Code
7080 status collapsed
7081
7082 \begin_layout Plain Layout
7083 .module
7084 \end_layout
7085
7086 \end_inset
7087
7088  extension.
7089  Modules are to \SpecialChar LaTeX
7090  packages much as layouts are to \SpecialChar LaTeX
7091  classes, and some modules—such
7092  as the 
7093 \begin_inset Flex Code
7094 status collapsed
7095
7096 \begin_layout Plain Layout
7097 endnotes
7098 \end_layout
7099
7100 \end_inset
7101
7102  module—specifically provide support for one package.
7103  In a sense, layout modules are similar to included
7104 \begin_inset Foot
7105 status collapsed
7106
7107 \begin_layout Plain Layout
7108 These can have any extension, but by convention have the 
7109 \begin_inset Flex Code
7110 status collapsed
7111
7112 \begin_layout Plain Layout
7113 .inc
7114 \end_layout
7115
7116 \end_inset
7117
7118  extension.
7119 \end_layout
7120
7121 \end_inset
7122
7123  files—files like 
7124 \begin_inset Flex Code
7125 status collapsed
7126
7127 \begin_layout Plain Layout
7128 stdsections.inc
7129 \end_layout
7130
7131 \end_inset
7132
7133 —in that modules are not specific to a given document class but may be used
7134  with many different classes.
7135  The difference is that using an included file with 
7136 \begin_inset Flex Code
7137 status collapsed
7138
7139 \begin_layout Plain Layout
7140 article.cls
7141 \end_layout
7142
7143 \end_inset
7144
7145  requires editing that file.
7146  Modules, by contrast, are selected in the 
7147 \begin_inset Flex Noun
7148 status collapsed
7149
7150 \begin_layout Plain Layout
7151 Document\SpecialChar menuseparator
7152 Settings
7153 \end_layout
7154
7155 \end_inset
7156
7157  dialog.
7158 \end_layout
7159
7160 \begin_layout Standard
7161 Building modules is the easiest way to get started with layout editing,
7162  since it can be as simple as adding a single new paragraph style or flex
7163  inset.
7164  But modules may, in principle, contain anything a layout file can contain.
7165 \end_layout
7166
7167 \begin_layout Standard
7168 After creating a new module and copying it to the 
7169 \begin_inset Flex Code
7170 status collapsed
7171
7172 \begin_layout Plain Layout
7173 layouts/
7174 \end_layout
7175
7176 \end_inset
7177
7178  folder, you will need to reconfigure and then restart \SpecialChar LyX
7179  for the module to
7180  appear in the menu.
7181  However, changes you make to the module will be seen immediately, if you
7182  open 
7183 \begin_inset Flex Noun
7184 status collapsed
7185
7186 \begin_layout Plain Layout
7187 Document\SpecialChar menuseparator
7188 Settings
7189 \end_layout
7190
7191 \end_inset
7192
7193 , highlight something, and then hit 
7194 \begin_inset Quotes eld
7195 \end_inset
7196
7197 OK
7198 \begin_inset Quotes erd
7199 \end_inset
7200
7201 .
7202  
7203 \emph on
7204 It is strongly recommended that you save your work before doing this
7205 \emph default
7206 .
7207  In fact, 
7208 \emph on
7209 it is strongly recommended that you not attempt to edit modules while simultaneo
7210 usly working on actual documents
7211 \emph default
7212 .
7213  Though of course the developers strive to keep \SpecialChar LyX
7214  stable in such situations,
7215  syntax errors and the like in your module file could cause strange behavior.
7216 \end_layout
7217
7218 \begin_layout Subsubsection
7219 Local Layout
7220 \end_layout
7221
7222 \begin_layout Standard
7223 Modules are to \SpecialChar LyX
7224  as packages are to \SpecialChar LaTeX
7225 .
7226  Sometimes, however, you find yourself wanting a specific inset or character
7227  style just for one document and writing a module that will also be available
7228  to other documents makes little sense.
7229  What you need is \SpecialChar LyX
7230 's 
7231 \begin_inset Quotes eld
7232 \end_inset
7233
7234 Local Layout
7235 \begin_inset Quotes erd
7236 \end_inset
7237
7238 .
7239 \end_layout
7240
7241 \begin_layout Standard
7242 You will find it under 
7243 \family sans
7244 Document\SpecialChar menuseparator
7245 Settings\SpecialChar menuseparator
7246 Local Layout
7247 \family default
7248 .
7249  The large text box allows you to enter anything that you might enter in
7250  a layout file or module.
7251  You can think of a document's local layout, in fact, as a module that belongs
7252  just to it.
7253  So, in particular, you must enter a 
7254 \begin_inset Flex Code
7255 status collapsed
7256
7257 \begin_layout Plain Layout
7258 Format
7259 \end_layout
7260
7261 \end_inset
7262
7263  tag.
7264  Any format is acceptable, but one would normally use the format current
7265  at the time.
7266  (In \SpecialChar LyX
7267  
7268 \begin_inset Info
7269 type  "lyxinfo"
7270 arg   "version"
7271 \end_inset
7272
7273 , the current layout format is 
7274 \begin_inset Info
7275 type  "lyxinfo"
7276 arg   "layoutformat"
7277 \end_inset
7278
7279 .)
7280 \end_layout
7281
7282 \begin_layout Standard
7283 When you have entered something in the 
7284 \begin_inset Flex Code
7285 status collapsed
7286
7287 \begin_layout Plain Layout
7288 Local Layout
7289 \end_layout
7290
7291 \end_inset
7292
7293  pane, \SpecialChar LyX
7294  will enable the 
7295 \begin_inset Quotes eld
7296 \end_inset
7297
7298 Validate
7299 \begin_inset Quotes erd
7300 \end_inset
7301
7302  button at the bottom.
7303  Clicking this button will cause \SpecialChar LyX
7304  to determine whether what you have entered
7305  is valid layout information for the chosen format.
7306  \SpecialChar LyX
7307  will report the result but, unfortunately, will not tell you what errors
7308  there might have been.
7309  These will be written to the terminal, however, if \SpecialChar LyX
7310  is started from a terminal.
7311  You will not be permitted to save your local layout until you have entered
7312  something valid.
7313 \end_layout
7314
7315 \begin_layout Standard
7316 The warnings at the end of the previous section apply here, too.
7317  Do not play with local layout while you are actually working, especially
7318  if you have not saved your document.
7319  That said, using local layout with a test document can be a very convenient
7320  way to try out layout ideas, or even to start developing a module.
7321 \end_layout
7322
7323 \begin_layout Subsection
7324 Layout for 
7325 \begin_inset Flex Noun
7326 status collapsed
7327
7328 \begin_layout Plain Layout
7329 .sty
7330 \end_layout
7331
7332 \end_inset
7333
7334  files
7335 \end_layout
7336
7337 \begin_layout Standard
7338 There are two situations you are likely to encounter when wanting to support
7339  a new \SpecialChar LaTeX
7340  document class, involving style (
7341 \begin_inset Flex Code
7342 status collapsed
7343
7344 \begin_layout Plain Layout
7345 .sty
7346 \end_layout
7347
7348 \end_inset
7349
7350 ) files and \SpecialChar LaTeX2e
7351  class (
7352 \begin_inset Flex Code
7353 status collapsed
7354
7355 \begin_layout Plain Layout
7356 .cls
7357 \end_layout
7358
7359 \end_inset
7360
7361 ) .
7362  Supporting a style file is usually fairly easy.
7363  Supporting a new class file is a bit harder.
7364  We'll discuss the former in this section and the latter in the next.
7365  
7366 \change_deleted 5863208 1594239023
7367 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7368 \change_unchanged
7369
7370 \end_layout
7371
7372 \begin_layout Standard
7373 The easier case is the one in which your new document class is provided
7374  as a style file that is to be used in conjunction with an already supported
7375  document class.
7376  For the sake of the example, we'll assume that the style file is called
7377  
7378 \begin_inset Flex Noun
7379 status collapsed
7380
7381 \begin_layout Plain Layout
7382 myclass.sty
7383 \end_layout
7384
7385 \end_inset
7386
7387  and that it is meant to be used with 
7388 \begin_inset Flex Noun
7389 status collapsed
7390
7391 \begin_layout Plain Layout
7392 report.cls
7393 \end_layout
7394
7395 \end_inset
7396
7397 , which is a standard class.
7398  
7399 \end_layout
7400
7401 \begin_layout Standard
7402 Start by copying the existing class's layout file into your local directory:
7403 \begin_inset Foot
7404 status collapsed
7405
7406 \begin_layout Plain Layout
7407 Of course, which directory is your local directory will vary by platform,
7408  and \SpecialChar LyX
7409  allows you to specify your local directory on startup, too, using
7410  the 
7411 \begin_inset Flex Code
7412 status collapsed
7413
7414 \begin_layout Plain Layout
7415 -userdir
7416 \end_layout
7417
7418 \end_inset
7419
7420  option.
7421 \end_layout
7422
7423 \end_inset
7424
7425
7426 \end_layout
7427
7428 \begin_layout LyX-Code
7429 cp report.layout ~/.lyx/layouts/myclass.layout
7430 \end_layout
7431
7432 \begin_layout Standard
7433 Then edit 
7434 \begin_inset Flex Code
7435 status collapsed
7436
7437 \begin_layout Plain Layout
7438 myclass.layout
7439 \end_layout
7440
7441 \end_inset
7442
7443  and change the line: 
7444 \end_layout
7445
7446 \begin_layout LyX-Code
7447
7448 \backslash
7449 DeclareLaTeXClass{Report (Standard Class)}
7450 \end_layout
7451
7452 \begin_layout Standard
7453 to read
7454 \end_layout
7455
7456 \begin_layout LyX-Code
7457
7458 \backslash
7459 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7460 \end_layout
7461
7462 \begin_layout Standard
7463 Then add:
7464 \end_layout
7465
7466 \begin_layout LyX-Code
7467 Preamble 
7468 \begin_inset Newline newline
7469 \end_inset
7470
7471     
7472 \backslash
7473 usepackage{myclass}
7474 \begin_inset Newline newline
7475 \end_inset
7476
7477 EndPreamble
7478 \end_layout
7479
7480 \begin_layout Standard
7481 near the top of the file.
7482 \end_layout
7483
7484 \begin_layout Standard
7485 Start \SpecialChar LyX
7486  and select 
7487 \begin_inset Flex Noun
7488 status collapsed
7489
7490 \begin_layout Plain Layout
7491 Tools\SpecialChar menuseparator
7492 Reconfigure
7493 \end_layout
7494
7495 \end_inset
7496
7497 .
7498  Then restart \SpecialChar LyX
7499  and try creating a new document.
7500  You should see "
7501 \begin_inset Flex Noun
7502 status collapsed
7503
7504 \begin_layout Plain Layout
7505 Report (My Class)
7506 \end_layout
7507
7508 \end_inset
7509
7510 " as a document class option in the 
7511 \begin_inset Flex Noun
7512 status collapsed
7513
7514 \begin_layout Plain Layout
7515 Document\SpecialChar menuseparator
7516 Settings
7517 \end_layout
7518
7519 \end_inset
7520
7521  dialog.
7522  It is likely that some of the sectioning commands and such in your new
7523  class will work differently from how they worked in the base class—
7524 \begin_inset Flex Code
7525 status collapsed
7526
7527 \begin_layout Plain Layout
7528 report
7529 \end_layout
7530
7531 \end_inset
7532
7533  in this example—so you can fiddle around with the settings for the different
7534  sections if you wish.
7535  The layout information for sections is contained in 
7536 \begin_inset Flex Code
7537 status collapsed
7538
7539 \begin_layout Plain Layout
7540 stdsections.inc
7541 \end_layout
7542
7543 \end_inset
7544
7545 , but you do not need to copy and change this file.
7546  Instead, you can simply add your changes to your layout file, after the
7547  line 
7548 \begin_inset Flex Code
7549 status collapsed
7550
7551 \begin_layout Plain Layout
7552 Input stdclass.inc
7553 \end_layout
7554
7555 \end_inset
7556
7557 , which itself includes 
7558 \begin_inset Flex Code
7559 status collapsed
7560
7561 \begin_layout Plain Layout
7562 stdsections.inc
7563 \end_layout
7564
7565 \end_inset
7566
7567 .
7568  For example, you might add these lines:
7569 \end_layout
7570
7571 \begin_layout LyX-Code
7572 Style Chapter
7573 \end_layout
7574
7575 \begin_layout LyX-Code
7576     Font
7577 \end_layout
7578
7579 \begin_layout LyX-Code
7580         Family Sans
7581 \end_layout
7582
7583 \begin_layout LyX-Code
7584     EndFont
7585 \end_layout
7586
7587 \begin_layout LyX-Code
7588 End
7589 \end_layout
7590
7591 \begin_layout Standard
7592 to change the font for chapter headings to sans-serif.
7593  This will override (or, in this case, add to) the existing declaration
7594  for the Chapter style.
7595  
7596 \end_layout
7597
7598 \begin_layout Standard
7599 Your new package may also provide commands or environments not present in
7600  the base class.
7601  In this case, you will want to add these to the layout file.
7602  See 
7603 \begin_inset CommandInset ref
7604 LatexCommand ref
7605 reference "sec:TextClass"
7606
7607 \end_inset
7608
7609  for information on how to do so.
7610 \end_layout
7611
7612 \begin_layout Standard
7613 If 
7614 \begin_inset Flex Noun
7615 status collapsed
7616
7617 \begin_layout Plain Layout
7618 myclass.sty
7619 \end_layout
7620
7621 \end_inset
7622
7623  can be used with several different document classes, and even if it cannot,
7624  you might find it easiest just to write a module that you can load with
7625  the base class.
7626  The simplest possible such module would be:
7627 \end_layout
7628
7629 \begin_layout LyX-Code
7630 #
7631 \backslash
7632 DeclareLyXModule{My Class} 
7633 \end_layout
7634
7635 \begin_layout LyX-Code
7636 #DescriptionBegin 
7637 \end_layout
7638
7639 \begin_layout LyX-Code
7640 #Support for myclass.sty.
7641 \end_layout
7642
7643 \begin_layout LyX-Code
7644 #DescriptionEnd
7645 \begin_inset Newline newline
7646 \end_inset
7647
7648
7649 \end_layout
7650
7651 \begin_layout LyX-Code
7652 Format 
7653 \begin_inset Info
7654 type  "lyxinfo"
7655 arg   "layoutformat"
7656 \end_inset
7657
7658
7659 \begin_inset Newline newline
7660 \end_inset
7661
7662
7663 \end_layout
7664
7665 \begin_layout LyX-Code
7666 Preamble
7667 \begin_inset Newline newline
7668 \end_inset
7669
7670     
7671 \backslash
7672 usepackage{myclass}
7673 \begin_inset Newline newline
7674 \end_inset
7675
7676 EndPreamble
7677 \end_layout
7678
7679 \begin_layout Standard
7680 A more complex module might modify the behavior of some existing constructs
7681  or define some new ones.
7682  Again, see 
7683 \begin_inset CommandInset ref
7684 LatexCommand ref
7685 reference "sec:TextClass"
7686
7687 \end_inset
7688
7689  for discussion.
7690 \end_layout
7691
7692 \begin_layout Subsection
7693 Layout for 
7694 \begin_inset Flex Noun
7695 status collapsed
7696
7697 \begin_layout Plain Layout
7698 .cls
7699 \end_layout
7700
7701 \end_inset
7702
7703  files
7704 \end_layout
7705
7706 \begin_layout Standard
7707 There are two possibilities here.
7708  One is that the class file is itself based upon an existing document class.
7709  For example, many thesis classes are based upon 
7710 \begin_inset Flex Noun
7711 status collapsed
7712
7713 \begin_layout Plain Layout
7714 book.cls
7715 \end_layout
7716
7717 \end_inset
7718
7719 .
7720  To see whether yours is, look for a line like
7721 \end_layout
7722
7723 \begin_layout LyX-Code
7724
7725 \backslash
7726 LoadClass{book}
7727 \end_layout
7728
7729 \begin_layout Standard
7730 in the file.
7731  If so, then you may proceed largely as in the previous section, though
7732  the 
7733 \begin_inset Flex Code
7734 status collapsed
7735
7736 \begin_layout Plain Layout
7737 Declare\SpecialChar LaTeX
7738 Class
7739 \end_layout
7740
7741 \end_inset
7742
7743  line will be different.
7744  If your new class is 
7745 \begin_inset Flex Code
7746 status collapsed
7747
7748 \begin_layout Plain Layout
7749 thesis
7750 \end_layout
7751
7752 \end_inset
7753
7754  and it is based upon 
7755 \begin_inset Flex Code
7756 status collapsed
7757
7758 \begin_layout Plain Layout
7759 book
7760 \end_layout
7761
7762 \end_inset
7763
7764 , then the line should read:
7765 \begin_inset Foot
7766 status collapsed
7767
7768 \begin_layout Plain Layout
7769 And it will be easiest if you save the file to 
7770 \begin_inset Flex Code
7771 status collapsed
7772
7773 \begin_layout Plain Layout
7774 thesis.layout
7775 \end_layout
7776
7777 \end_inset
7778
7779 : \SpecialChar LyX
7780  assumes that the document class has the same name as the layout file.
7781  
7782 \end_layout
7783
7784 \end_inset
7785
7786
7787 \end_layout
7788
7789 \begin_layout LyX-Code
7790
7791 \backslash
7792 DeclareLaTeXClass[thesis,book]{thesis}
7793 \end_layout
7794
7795 \begin_layout Standard
7796 If, on the other hand, the new class is not based upon an existing class,
7797  you will probably have to 
7798 \begin_inset Quotes eld
7799 \end_inset
7800
7801 roll your own
7802 \begin_inset Quotes erd
7803 \end_inset
7804
7805  layout.
7806  We strongly suggest copying an existing layout file which uses a similar
7807  \SpecialChar LaTeX
7808  class and then modifying it, if you can do so.
7809  At least use an existing file as a starting point so you can find out what
7810  items you need to worry about.
7811  Again, the specifics are covered below.
7812 \end_layout
7813
7814 \begin_layout Subsection
7815 Creating templates
7816 \begin_inset CommandInset label
7817 LatexCommand label
7818 name "subsec:Creating-Templates"
7819
7820 \end_inset
7821
7822
7823 \end_layout
7824
7825 \begin_layout Standard
7826 Once you have written a layout file for a new document class, you might
7827  want to consider writing a 
7828 \emph on
7829 template
7830 \emph default
7831  for it, too.
7832  A template acts as a kind of tutorial for your layout, showing how it might
7833  be used, though containing dummy content.
7834  You can of course look at the various templates included with \SpecialChar LyX
7835  for ideas.
7836 \end_layout
7837
7838 \begin_layout Standard
7839 Templates are created just like usual documents: using \SpecialChar LyX
7840 .
7841  The only difference is that usual documents contain all possible settings,
7842  including the font scheme and the paper size.
7843  Usually a user doesn't want a template to overwrite his preferred settings
7844  for such parameters.
7845  For that reason, the designer of a template should remove the corresponding
7846  commands like 
7847 \begin_inset Flex Code
7848 status collapsed
7849
7850 \begin_layout Plain Layout
7851
7852 \backslash
7853 font_roman
7854 \end_layout
7855
7856 \end_inset
7857
7858  or 
7859 \begin_inset Flex Code
7860 status collapsed
7861
7862 \begin_layout Plain Layout
7863
7864 \backslash
7865 papersize
7866 \end_layout
7867
7868 \end_inset
7869
7870  from the template \SpecialChar LyX
7871  file.
7872  This can be done with any simple text-editor, for example 
7873 \begin_inset Flex Code
7874 status collapsed
7875
7876 \begin_layout Plain Layout
7877 vi
7878 \end_layout
7879
7880 \end_inset
7881
7882  or 
7883 \begin_inset Flex Code
7884 status collapsed
7885
7886 \begin_layout Plain Layout
7887 notepad
7888 \end_layout
7889
7890 \end_inset
7891
7892 .
7893 \end_layout
7894
7895 \begin_layout Standard
7896 Put the edited template files you create in 
7897 \begin_inset Flex Code
7898 status collapsed
7899
7900 \begin_layout Plain Layout
7901 UserDir/templates/
7902 \end_layout
7903
7904 \end_inset
7905
7906 , copy the ones you use from the global template directory in 
7907 \begin_inset Flex Code
7908 status collapsed
7909
7910 \begin_layout Plain Layout
7911 LyXDir/templates/
7912 \end_layout
7913
7914 \end_inset
7915
7916  to the same place, and redefine the template path in the 
7917 \begin_inset Flex Noun
7918 status collapsed
7919
7920 \begin_layout Plain Layout
7921 Tools\SpecialChar menuseparator
7922 Preferences\SpecialChar menuseparator
7923 Paths
7924 \end_layout
7925
7926 \end_inset
7927
7928  dialog.
7929 \end_layout
7930
7931 \begin_layout Standard
7932 Note, by the way, that there is a template which has a particular meaning:
7933 \begin_inset Newline linebreak
7934 \end_inset
7935
7936
7937 \begin_inset Flex Code
7938 status collapsed
7939
7940 \begin_layout Plain Layout
7941 defaults.lyx
7942 \end_layout
7943
7944 \end_inset
7945
7946 .
7947  This template is loaded every time you create a new document with 
7948 \begin_inset Flex Noun
7949 status collapsed
7950
7951 \begin_layout Plain Layout
7952 File\SpecialChar menuseparator
7953 New
7954 \end_layout
7955
7956 \end_inset
7957
7958  in order to provide useful defaults.
7959  To create this template from inside \SpecialChar LyX
7960 , all you have to do is to open a document
7961  with the correct settings, and use the 
7962 \begin_inset Flex Noun
7963 status collapsed
7964
7965 \begin_layout Plain Layout
7966 Save as Document Defaults
7967 \end_layout
7968
7969 \end_inset
7970
7971  button.
7972 \end_layout
7973
7974 \begin_layout Subsection
7975 Upgrading old layout files
7976 \end_layout
7977
7978 \begin_layout Standard
7979 The format of layout files changes with each \SpecialChar LyX
7980  release, so old layout files
7981  need to be converted to the new format.
7982  If \SpecialChar LyX
7983  reads a layout file in an older format, it automatically calls the
7984  script 
7985 \begin_inset Flex Code
7986 status collapsed
7987
7988 \begin_layout Plain Layout
7989 layout2layout.py
7990 \end_layout
7991
7992 \end_inset
7993
7994  to convert it to a temporary file in current format.
7995  The original file is left untouched.
7996  If you use the layout file often, then, you may want to convert it permanently,
7997  so that \SpecialChar LyX
7998  does not have to do so itself every time.
7999  To do this, you can call the converter manually:
8000 \end_layout
8001
8002 \begin_layout Enumerate
8003 rename the file 
8004 \begin_inset Flex Code
8005 status collapsed
8006
8007 \begin_layout Plain Layout
8008 myclass.layout
8009 \end_layout
8010
8011 \end_inset
8012
8013  to 
8014 \begin_inset Flex Code
8015 status collapsed
8016
8017 \begin_layout Plain Layout
8018 myclass.old
8019 \end_layout
8020
8021 \end_inset
8022
8023
8024 \end_layout
8025
8026 \begin_layout Enumerate
8027 Call the command
8028 \begin_inset Newline newline
8029 \end_inset
8030
8031
8032 \begin_inset Flex Code
8033 status collapsed
8034
8035 \begin_layout Plain Layout
8036 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8037 \end_layout
8038
8039 \end_inset
8040
8041
8042 \begin_inset Newline newline
8043 \end_inset
8044
8045 where 
8046 \begin_inset Flex Code
8047 status collapsed
8048
8049 \begin_layout Plain Layout
8050 LyXDir
8051 \end_layout
8052
8053 \end_inset
8054
8055  is the name of your \SpecialChar LyX
8056  system directory.
8057 \end_layout
8058
8059 \begin_layout Standard
8060 Note that manual conversion does not affect included files, so these will
8061  have to be converted separately.
8062 \end_layout
8063
8064 \begin_layout Subsection
8065 \begin_inset CommandInset label
8066 LatexCommand label
8067 name "subsec:Cite-Engine-Files"
8068
8069 \end_inset
8070
8071 Cite engine files
8072 \end_layout
8073
8074 \begin_layout Standard
8075 A specific form of layout files are the so-called 
8076 \begin_inset Flex Code
8077 status collapsed
8078
8079 \begin_layout Plain Layout
8080 *.citeengine
8081 \end_layout
8082
8083 \end_inset
8084
8085  files that are located in the 
8086 \begin_inset Flex Code
8087 status collapsed
8088
8089 \begin_layout Plain Layout
8090 citeengines/
8091 \end_layout
8092
8093 \end_inset
8094
8095  sub-directory.
8096  Their purpose is to define the specifics of \SpecialChar LaTeX
8097  packages aimed at bibliography
8098  generation, such as 
8099 \family sans
8100 natbib
8101 \family default
8102 ,
8103 \family sans
8104  jurabib
8105 \family default
8106  or 
8107 \family sans
8108 biblatex
8109 \family default
8110 , but also the way how normal Bib\SpecialChar TeX
8111  citations (without additional packages)
8112  are handled in \SpecialChar LyX
8113  is defined in such a file.
8114  
8115 \end_layout
8116
8117 \begin_layout Standard
8118 More specifically, it is defined which packages \SpecialChar LyX
8119  needs to load, which citation
8120  commands are available, how these are to be displayed in \SpecialChar LyX
8121  (in the workarea,
8122  the dialogs, the context menus) as well as in the XHTML and plain text
8123  output.
8124  Furthermore, the files specify available style variants (author-year, numerical
8125 , etc.) and their specifics.
8126  The cite engine files are also used to generate the options that are available
8127  in 
8128 \family sans
8129 Document\SpecialChar menuseparator
8130 Settings\SpecialChar menuseparator
8131 Bibliography\SpecialChar menuseparator
8132 Style engine
8133 \family default
8134 .
8135 \end_layout
8136
8137 \begin_layout Standard
8138 Even though a cite engine file is essentially a normal layout file that
8139  could theoretically include any layout information, it usually primarily
8140  includes some specific parameters such as 
8141 \begin_inset Flex Code
8142 status collapsed
8143
8144 \begin_layout Plain Layout
8145 MaxCiteNames
8146 \end_layout
8147
8148 \end_inset
8149
8150
8151 \begin_inset Flex Code
8152 status collapsed
8153
8154 \begin_layout Plain Layout
8155 CiteFramework
8156 \end_layout
8157
8158 \end_inset
8159
8160
8161 \begin_inset Flex Code
8162 status collapsed
8163
8164 \begin_layout Plain Layout
8165 CiteEngine
8166 \end_layout
8167
8168 \end_inset
8169
8170  and 
8171 \begin_inset Flex Code
8172 status collapsed
8173
8174 \begin_layout Plain Layout
8175 CiteFormat
8176 \end_layout
8177
8178 \end_inset
8179
8180  blocks.
8181  The syntax of the latter two is described in 
8182 \begin_inset CommandInset ref
8183 LatexCommand ref
8184 reference "subsec:Citation-engine-description"
8185 plural "false"
8186 caps "false"
8187 noprefix "false"
8188
8189 \end_inset
8190
8191  and 
8192 \begin_inset CommandInset ref
8193 LatexCommand ref
8194 reference "subsec:Citation-format-description"
8195
8196 \end_inset
8197
8198 , as well as in the files themselves.
8199 \end_layout
8200
8201 \begin_layout Section
8202 \begin_inset CommandInset label
8203 LatexCommand label
8204 name "sec:TextClass"
8205
8206 \end_inset
8207
8208 The layout file format
8209 \end_layout
8210
8211 \begin_layout Standard
8212 The following sections describe how layout files are structured and written.
8213  Our advice is to go slowly, save and test often.
8214  It is really not that hard, except that the multitude of options can become
8215  overwhelming, especially if you try to check out too many at once.
8216  It becomes easier if you use existing layouts of \SpecialChar LyX
8217  as examples/reference
8218  or if you modify an existing layout to your needs.
8219 \end_layout
8220
8221 \begin_layout Standard
8222 Note that all the tags used in layout files are case-insensitive.
8223  This means that 
8224 \begin_inset Flex Code
8225 status collapsed
8226
8227 \begin_layout Plain Layout
8228 Style
8229 \end_layout
8230
8231 \end_inset
8232
8233
8234 \begin_inset Flex Code
8235 status collapsed
8236
8237 \begin_layout Plain Layout
8238 style
8239 \end_layout
8240
8241 \end_inset
8242
8243  and 
8244 \begin_inset Flex Code
8245 status collapsed
8246
8247 \begin_layout Plain Layout
8248 StYlE
8249 \end_layout
8250
8251 \end_inset
8252
8253  are really the same tag.
8254  The possible arguments are printed in brackets after the tag's name.
8255  The default argument is typeset 
8256 \begin_inset Flex Code
8257 status collapsed
8258
8259 \begin_layout Plain Layout
8260
8261 \emph on
8262 emphasized
8263 \end_layout
8264
8265 \end_inset
8266
8267 .
8268  If the argument has a data type like 
8269 \begin_inset Quotes eld
8270 \end_inset
8271
8272 string
8273 \begin_inset Quotes erd
8274 \end_inset
8275
8276  or 
8277 \begin_inset Quotes eld
8278 \end_inset
8279
8280 float
8281 \begin_inset Quotes erd
8282 \end_inset
8283
8284 , the default is shown like this: 
8285 \begin_inset Flex Code
8286 status collapsed
8287
8288 \begin_layout Plain Layout
8289 float=
8290 \emph on
8291 default
8292 \end_layout
8293
8294 \end_inset
8295
8296 .
8297 \end_layout
8298
8299 \begin_layout Subsection
8300 The document class declaration and classification
8301 \end_layout
8302
8303 \begin_layout Standard
8304 Lines in a layout file which begin with 
8305 \begin_inset Flex Code
8306 status collapsed
8307
8308 \begin_layout Plain Layout
8309 #
8310 \end_layout
8311
8312 \end_inset
8313
8314  are comments.
8315  There is one exception to this rule.
8316  All 
8317 \begin_inset Flex Code
8318 status collapsed
8319
8320 \begin_layout Plain Layout
8321 *.layout
8322 \end_layout
8323
8324 \end_inset
8325
8326  files should begin with lines like:
8327 \end_layout
8328
8329 \begin_layout LyX-Code
8330
8331 \size small
8332 #% Do not delete the line below; configure depends on this 
8333 \end_layout
8334
8335 \begin_layout LyX-Code
8336
8337 \size small
8338 #  
8339 \backslash
8340 DeclareLaTeXClass{Article (Standard Class)}
8341 \end_layout
8342
8343 \begin_layout LyX-Code
8344
8345 \size small
8346 #  
8347 \backslash
8348 DeclareCategory{Articles}
8349 \end_layout
8350
8351 \begin_layout Standard
8352 The second and third lines are used when you (re)configure \SpecialChar LyX
8353 .
8354  The layout file is read by the \SpecialChar LaTeX
8355  script 
8356 \begin_inset Flex Code
8357 status collapsed
8358
8359 \begin_layout Plain Layout
8360 chkconfig.ltx
8361 \end_layout
8362
8363 \end_inset
8364
8365 , in a special mode where 
8366 \begin_inset Flex Code
8367 status collapsed
8368
8369 \begin_layout Plain Layout
8370 #
8371 \end_layout
8372
8373 \end_inset
8374
8375  is ignored.
8376  The first line is just a \SpecialChar LaTeX
8377  comment, the second one contains the mandatory
8378  declaration of the text class and the third line contains the optional
8379  classification of the class.
8380  If these lines appear in a file named 
8381 \begin_inset Flex Code
8382 status collapsed
8383
8384 \begin_layout Plain Layout
8385 article.layout
8386 \end_layout
8387
8388 \end_inset
8389
8390 , then they define a text class of name 
8391 \begin_inset Flex Code
8392 status collapsed
8393
8394 \begin_layout Plain Layout
8395 article
8396 \end_layout
8397
8398 \end_inset
8399
8400  (the name of the layout file) which uses the \SpecialChar LaTeX
8401  document class 
8402 \begin_inset Flex Code
8403 status collapsed
8404
8405 \begin_layout Plain Layout
8406 article.cls
8407 \end_layout
8408
8409 \end_inset
8410
8411  (the default is to use the same name as the layout).
8412  The string 
8413 \begin_inset Quotes eld
8414 \end_inset
8415
8416 Article (Standard Class)
8417 \begin_inset Quotes erd
8418 \end_inset
8419
8420  that appears above is used as a description of the text class in the 
8421 \begin_inset Flex Noun
8422 status collapsed
8423
8424 \begin_layout Plain Layout
8425 Document\SpecialChar menuseparator
8426 Settings
8427 \end_layout
8428
8429 \end_inset
8430
8431  dialog.
8432  The category (
8433 \begin_inset Quotes eld
8434 \end_inset
8435
8436 Articles
8437 \begin_inset Quotes erd
8438 \end_inset
8439
8440  in the example) is also used in the 
8441 \begin_inset Flex Noun
8442 status collapsed
8443
8444 \begin_layout Plain Layout
8445 Document\SpecialChar menuseparator
8446 Settings
8447 \end_layout
8448
8449 \end_inset
8450
8451  dialog: the text classes are grouped by these categories (which are usually
8452  genres, so typical categories are 
8453 \begin_inset Quotes eld
8454 \end_inset
8455
8456 Articles
8457 \begin_inset Quotes erd
8458 \end_inset
8459
8460
8461 \begin_inset Quotes eld
8462 \end_inset
8463
8464 Books
8465 \begin_inset Quotes erd
8466 \end_inset
8467
8468
8469 \begin_inset Quotes eld
8470 \end_inset
8471
8472 Reports
8473 \begin_inset Quotes erd
8474 \end_inset
8475
8476
8477 \begin_inset Quotes eld
8478 \end_inset
8479
8480 Letters
8481 \begin_inset Quotes erd
8482 \end_inset
8483
8484
8485 \begin_inset Quotes eld
8486 \end_inset
8487
8488 Presentations
8489 \begin_inset Quotes erd
8490 \end_inset
8491
8492
8493 \begin_inset Quotes eld
8494 \end_inset
8495
8496 Curricula Vitae
8497 \begin_inset Quotes erd
8498 \end_inset
8499
8500  etc.).
8501  If no category has been declared, the class will be put in the 
8502 \begin_inset Quotes eld
8503 \end_inset
8504
8505 Uncategorized
8506 \begin_inset Quotes erd
8507 \end_inset
8508
8509  group.
8510 \end_layout
8511
8512 \begin_layout Standard
8513 Let's assume that you wrote your own text class that uses the 
8514 \begin_inset Flex Code
8515 status collapsed
8516
8517 \begin_layout Plain Layout
8518 article.cls
8519 \end_layout
8520
8521 \end_inset
8522
8523  document class, but where you changed the appearance of the section headings.
8524  If you put it in a file 
8525 \begin_inset Flex Code
8526 status collapsed
8527
8528 \begin_layout Plain Layout
8529 myarticle.layout
8530 \end_layout
8531
8532 \end_inset
8533
8534 , the header of this file should be:
8535 \end_layout
8536
8537 \begin_layout LyX-Code
8538
8539 \size small
8540 #% Do not delete the line below; configure depends on this 
8541 \end_layout
8542
8543 \begin_layout LyX-Code
8544
8545 \size small
8546 #  
8547 \backslash
8548 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8549 \end_layout
8550
8551 \begin_layout LyX-Code
8552
8553 \size small
8554 #  
8555 \backslash
8556 DeclareCategory{Articles}
8557 \end_layout
8558
8559 \begin_layout Standard
8560 This declares a text class 
8561 \begin_inset Flex Code
8562 status collapsed
8563
8564 \begin_layout Plain Layout
8565 myarticle
8566 \end_layout
8567
8568 \end_inset
8569
8570 , associated with the \SpecialChar LaTeX
8571  document class 
8572 \begin_inset Flex Code
8573 status collapsed
8574
8575 \begin_layout Plain Layout
8576 article.cls
8577 \end_layout
8578
8579 \end_inset
8580
8581  and described as 
8582 \begin_inset Quotes eld
8583 \end_inset
8584
8585 Article (with My Own Headings)
8586 \begin_inset Quotes erd
8587 \end_inset
8588
8589 .
8590  If your text class depends on several packages, you can declare it as:
8591 \end_layout
8592
8593 \begin_layout LyX-Code
8594
8595 \size small
8596 #% Do not delete the line below; configure depends on this 
8597 \end_layout
8598
8599 \begin_layout LyX-Code
8600
8601 \size small
8602 #  
8603 \backslash
8604 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8605 \end_layout
8606
8607 \begin_layout LyX-Code
8608
8609 \size small
8610 #  
8611 \backslash
8612 DeclareCategory{Articles}
8613 \end_layout
8614
8615 \begin_layout Standard
8616 This indicates that your text class uses the 
8617 \begin_inset Flex Code
8618 status collapsed
8619
8620 \begin_layout Plain Layout
8621 foo.sty
8622 \end_layout
8623
8624 \end_inset
8625
8626  package.
8627  
8628 \change_deleted 5863208 1594239179
8629 Finally, it is also possible to declare classes for DocBook code.
8630  Typical declarations will look like:
8631 \end_layout
8632
8633 \begin_layout LyX-Code
8634
8635 \change_deleted 5863208 1594239179
8636
8637 \size small
8638 #% Do not delete the line below; configure depends on this 
8639 \end_layout
8640
8641 \begin_layout LyX-Code
8642
8643 \change_deleted 5863208 1594239179
8644
8645 \size small
8646
8647 \backslash
8648 DeclareDocBookClass[article]{SGML (DocBook Article)}
8649 \end_layout
8650
8651 \begin_layout LyX-Code
8652
8653 \change_deleted 5863208 1594239179
8654
8655 \size small
8656
8657 \backslash
8658 DeclareCategory{Articles (DocBook)}
8659 \change_unchanged
8660
8661 \end_layout
8662
8663 \begin_layout Standard
8664 Note that these declarations can also be given an optional parameter declaring
8665  the name of the document class (but not a list).
8666 \end_layout
8667
8668 \begin_layout Standard
8669 So, to be as explicit as possible, the form of the layout declaration is:
8670 \end_layout
8671
8672 \begin_layout LyX-Code
8673
8674 \size small
8675 #  
8676 \backslash
8677 DeclareLaTeXClass[class,package.sty]{layout description}
8678 \end_layout
8679
8680 \begin_layout LyX-Code
8681
8682 \size small
8683 #  
8684 \backslash
8685 DeclareCategory{category}
8686 \end_layout
8687
8688 \begin_layout Standard
8689 The class need only be specified if the name of the \SpecialChar LaTeX
8690  class file and the
8691  name of the layout file are different or if there are packages to load.
8692  If the name of the class file is not specified, then \SpecialChar LyX
8693  will simply assume
8694  that it is the same as the name of the layout file.
8695 \end_layout
8696
8697 \begin_layout Standard
8698 When the text class has been modified to your taste, all you have to do
8699  is to copy it either to 
8700 \begin_inset Flex Code
8701 status collapsed
8702
8703 \begin_layout Plain Layout
8704 LyXDir/layouts/
8705 \end_layout
8706
8707 \end_inset
8708
8709  or to 
8710 \begin_inset Flex Code
8711 status collapsed
8712
8713 \begin_layout Plain Layout
8714 UserDir/layouts
8715 \end_layout
8716
8717 \end_inset
8718
8719 , run 
8720 \begin_inset Flex Noun
8721 status collapsed
8722
8723 \begin_layout Plain Layout
8724 Tools\SpecialChar menuseparator
8725 Reconfigure
8726 \end_layout
8727
8728 \end_inset
8729
8730 , exit \SpecialChar LyX
8731  and restart.
8732  Then your new text class should be available along with the others.
8733 \end_layout
8734
8735 \begin_layout Standard
8736 Once the layout file is installed, you can edit it and see your changes
8737  without having to reconfigure or to restart \SpecialChar LyX
8738 .
8739 \begin_inset Foot
8740 status collapsed
8741
8742 \begin_layout Plain Layout
8743 In versions of \SpecialChar LyX
8744  prior to 1.6, this was not true.
8745  As a result, editing layout files was very time consuming, since you had
8746  constantly to restart \SpecialChar LyX
8747  to see changes.
8748 \end_layout
8749
8750 \end_inset
8751
8752  You can force a reload of the current layout by using the \SpecialChar LyX
8753  function 
8754 \begin_inset Flex Noun
8755 status collapsed
8756
8757 \begin_layout Plain Layout
8758 layout-reload
8759 \end_layout
8760
8761 \end_inset
8762
8763 .
8764  There is no default binding for this function—though, of course, you can
8765  bind it to a key yourself.
8766  But you will normally use this function simply by entering it in the mini-buffe
8767 r.
8768  
8769 \end_layout
8770
8771 \begin_layout Standard
8772
8773 \emph on
8774 Warning
8775 \emph default
8776
8777 \begin_inset Flex Noun
8778 status collapsed
8779
8780 \begin_layout Plain Layout
8781 layout-reload
8782 \end_layout
8783
8784 \end_inset
8785
8786  is very much an `advanced feature'.
8787  It is 
8788 \emph on
8789 strongly
8790 \emph default
8791  recommended that you save your work before using this function.
8792  In fact, it is 
8793 \emph on
8794 strongly
8795 \emph default
8796  recommended that you not attempt to edit layout information while simultaneousl
8797 y working on a document that you care about.
8798  Use a test document.
8799  Syntax errors and the like in your layout file could cause peculiar behavior.
8800  In particular, such errors could cause \SpecialChar LyX
8801  to regard the current layout as
8802  invalid and to attempt to switch to some other layout.
8803 \begin_inset Foot
8804 status collapsed
8805
8806 \begin_layout Plain Layout
8807 Really bad syntax errors may even caused \SpecialChar LyX
8808  to exit.
8809  This is because certain sorts of errors may make \SpecialChar LyX
8810  unable to read 
8811 \emph on
8812 any
8813 \emph default
8814  layout information.
8815  Please be careful.
8816 \end_layout
8817
8818 \end_inset
8819
8820  The \SpecialChar LyX
8821  team strives to keep \SpecialChar LyX
8822  stable in such situations, but safe is better
8823  than sorry.
8824 \begin_inset Foot
8825 status collapsed
8826
8827 \begin_layout Plain Layout
8828 While we're giving advice: make regular backups.
8829  And be nice to your mother.
8830 \end_layout
8831
8832 \end_inset
8833
8834
8835 \end_layout
8836
8837 \begin_layout Subsection
8838 The Module declaration
8839 \end_layout
8840
8841 \begin_layout Standard
8842 A module must begin with a line like the following:
8843 \end_layout
8844
8845 \begin_layout LyX-Code
8846 #
8847 \backslash
8848 DeclareLyXModule[endnotes.sty]{Endnotes}
8849 \change_inserted -712698321 1554395911
8850
8851 \end_layout
8852
8853 \begin_layout LyX-Code
8854
8855 \change_inserted -712698321 1554395924
8856
8857 \size small
8858 #
8859 \backslash
8860 DeclareCategory{Foot- and Endnotes}
8861 \change_deleted -712698321 1554395911
8862
8863 \size default
8864  
8865 \change_unchanged
8866
8867 \end_layout
8868
8869 \begin_layout Standard
8870 The mandatory argument
8871 \change_inserted -712698321 1554395956
8872  of 
8873 \family typewriter
8874
8875 \backslash
8876 DeclareLyXModule
8877 \change_unchanged
8878
8879 \family default
8880 , in curly brackets, is the name of the module, as it should appear in 
8881 \begin_inset Flex Noun
8882 status collapsed
8883
8884 \begin_layout Plain Layout
8885 Document\SpecialChar menuseparator
8886 Settings\SpecialChar menuseparator
8887 Modules
8888 \end_layout
8889
8890 \end_inset
8891
8892 .
8893  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8894  packages
8895  on which the module depends.
8896  It is also possible to use the form 
8897 \begin_inset Flex Noun
8898 status collapsed
8899
8900 \begin_layout Plain Layout
8901 from->to
8902 \end_layout
8903
8904 \end_inset
8905
8906  as an optional argument, which declares that the module can only be used
8907  when there exists a conversion chain between the formats `
8908 \begin_inset Flex Code
8909 status collapsed
8910
8911 \begin_layout Plain Layout
8912 from
8913 \end_layout
8914
8915 \end_inset
8916
8917 ' and `
8918 \begin_inset Flex Code
8919 status collapsed
8920
8921 \begin_layout Plain Layout
8922 to
8923 \end_layout
8924
8925 \end_inset
8926
8927 '.
8928
8929 \change_inserted -712698321 1554396133
8930  The 
8931 \family typewriter
8932
8933 \backslash
8934 DeclareCategory
8935 \family default
8936  declaration is not strictly mandatory, but you should add it, since it
8937  is helpful to find the module.
8938  Please have a look at the existing module categories and if appropriate,
8939  use one of those.
8940 \change_unchanged
8941
8942 \end_layout
8943
8944 \begin_layout Standard
8945 The module 
8946 \change_inserted -712698321 1554395988
8947 and category 
8948 \change_unchanged
8949 declaration should then be followed by lines like the following:
8950 \begin_inset Foot
8951 status collapsed
8952
8953 \begin_layout Plain Layout
8954 Preferably in English if the module should be published with \SpecialChar LyX
8955 .
8956  This description will appear in the list of messages to be translated and
8957  will be thus translated with the next interface update.
8958 \end_layout
8959
8960 \end_inset
8961
8962
8963 \end_layout
8964
8965 \begin_layout LyX-Code
8966 #DescriptionBegin 
8967 \end_layout
8968
8969 \begin_layout LyX-Code
8970 #Adds an endnote command, in addition to footnotes.
8971  
8972 \end_layout
8973
8974 \begin_layout LyX-Code
8975 #You will need to add  
8976 \backslash
8977 theendnotes in TeX code where you 
8978 \end_layout
8979
8980 \begin_layout LyX-Code
8981 #want the endnotes to appear.
8982  
8983 \end_layout
8984
8985 \begin_layout LyX-Code
8986 #DescriptionEnd 
8987 \end_layout
8988
8989 \begin_layout LyX-Code
8990 #Requires: somemodule | othermodule
8991 \end_layout
8992
8993 \begin_layout LyX-Code
8994 #Excludes: badmodule
8995 \end_layout
8996
8997 \begin_layout Standard
8998 The description is used in 
8999 \begin_inset Flex Noun
9000 status collapsed
9001
9002 \begin_layout Plain Layout
9003 Document\SpecialChar menuseparator
9004 Settings\SpecialChar menuseparator
9005 Modules
9006 \end_layout
9007
9008 \end_inset
9009
9010  to provide the user with information about what the module does.
9011  The 
9012 \begin_inset Flex Code
9013 status collapsed
9014
9015 \begin_layout Plain Layout
9016 Requires
9017 \end_layout
9018
9019 \end_inset
9020
9021  line is used to identify other modules with which this one must be used;
9022  the 
9023 \begin_inset Flex Code
9024 status collapsed
9025
9026 \begin_layout Plain Layout
9027 Excludes
9028 \end_layout
9029
9030 \end_inset
9031
9032  line is used to identify modules with which this one may not be used.
9033  Both are optional, and, as shown, multiple modules should be separated
9034  with the pipe symbol: |.
9035  Note that the required modules are treated disjunctively: 
9036 \emph on
9037 at least one
9038 \emph default
9039  of the required modules must be used.
9040  Similarly, 
9041 \emph on
9042 no
9043 \emph default
9044  excluded module may be used.
9045  Note that modules are identified here by their filenames without the 
9046 \begin_inset Flex Code
9047 status collapsed
9048
9049 \begin_layout Plain Layout
9050 .module
9051 \end_layout
9052
9053 \end_inset
9054
9055  extension.
9056  So 
9057 \begin_inset Flex Code
9058 status collapsed
9059
9060 \begin_layout Plain Layout
9061 somemodule
9062 \end_layout
9063
9064 \end_inset
9065
9066  is really 
9067 \begin_inset Flex Code
9068 status collapsed
9069
9070 \begin_layout Plain Layout
9071 somemodule.module
9072 \end_layout
9073
9074 \end_inset
9075
9076 .
9077 \end_layout
9078
9079 \begin_layout Subsection
9080 The CiteEngine file declaration
9081 \end_layout
9082
9083 \begin_layout Standard
9084 A cite engine file must begin with a line like the following:
9085 \end_layout
9086
9087 \begin_layout LyX-Code
9088 #
9089 \backslash
9090 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9091 \end_layout
9092
9093 \begin_layout Standard
9094 The mandatory argument, in curly brackets, is the name of the cite style,
9095  as it should appear in 
9096 \begin_inset Flex Noun
9097 status collapsed
9098
9099 \begin_layout Plain Layout
9100 Document\SpecialChar menuseparator
9101 Settings\SpecialChar menuseparator
9102 Bibliography
9103 \end_layout
9104
9105 \end_inset
9106
9107 .
9108  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
9109  packages
9110  on which the cite engine depends.
9111 \end_layout
9112
9113 \begin_layout Standard
9114 The cite engine declaration should then be followed by lines like the following:
9115 \begin_inset Foot
9116 status collapsed
9117
9118 \begin_layout Plain Layout
9119 Preferably in English if the module should be published with \SpecialChar LyX
9120 .
9121  This description will appear in the list of messages to be translated and
9122  will be thus translated with the next interface update.
9123 \end_layout
9124
9125 \end_inset
9126
9127
9128 \end_layout
9129
9130 \begin_layout LyX-Code
9131 # DescriptionBegin
9132 \end_layout
9133
9134 \begin_layout LyX-Code
9135 #   Biblatex supports many author-year and numerical styles.
9136 \end_layout
9137
9138 \begin_layout LyX-Code
9139 #   It is mainly aimed at the Humanities.
9140  It is highly
9141 \end_layout
9142
9143 \begin_layout LyX-Code
9144 #   customizable, fully localized and provides many features
9145 \end_layout
9146
9147 \begin_layout LyX-Code
9148 #   that are not possible with BibTeX.
9149  The use of 'biber' as
9150 \end_layout
9151
9152 \begin_layout LyX-Code
9153 #   bibliography processor is advised.
9154 \end_layout
9155
9156 \begin_layout LyX-Code
9157 # DescriptionEnd
9158 \end_layout
9159
9160 \begin_layout Standard
9161 The description is used in 
9162 \begin_inset Flex Noun
9163 status collapsed
9164
9165 \begin_layout Plain Layout
9166 Document\SpecialChar menuseparator
9167 Settings\SpecialChar menuseparator
9168 Bibliography
9169 \end_layout
9170
9171 \end_inset
9172
9173  to provide the user with information about the cite engine.
9174 \end_layout
9175
9176 \begin_layout Subsection
9177 Format number
9178 \end_layout
9179
9180 \begin_layout Standard
9181 The first non-comment line of any layout file, included file, or module
9182  
9183 \emph on
9184 must
9185 \emph default
9186  contain the file format number:
9187 \end_layout
9188
9189 \begin_layout Description
9190 \begin_inset Flex Code
9191 status collapsed
9192
9193 \begin_layout Plain Layout
9194 Format
9195 \end_layout
9196
9197 \end_inset
9198
9199  [
9200 \begin_inset Flex Code
9201 status collapsed
9202
9203 \begin_layout Plain Layout
9204 int
9205 \end_layout
9206
9207 \end_inset
9208
9209 ] The format number of the layout file.
9210 \end_layout
9211
9212 \begin_layout Standard
9213 This tag was introduced with \SpecialChar LyX
9214
9215 \begin_inset space ~
9216 \end_inset
9217
9218 1.4.0.
9219  Layout files from older \SpecialChar LyX
9220  versions do not have an explicit file format and
9221  are considered to have 
9222 \begin_inset Flex Code
9223 status collapsed
9224
9225 \begin_layout Plain Layout
9226 Format
9227 \begin_inset space ~
9228 \end_inset
9229
9230 1
9231 \end_layout
9232
9233 \end_inset
9234
9235 .
9236  The format for the present version of \SpecialChar LyX
9237  is format 60.
9238  But each version of \SpecialChar LyX
9239  is capable of reading earlier versions' layout files,
9240  just as they are capable of reading files produced by earlier versions
9241  of \SpecialChar LyX
9242 .
9243  There is, however, no provision for converting to earlier formats.
9244 \end_layout
9245
9246 \begin_layout Subsection
9247 \begin_inset CommandInset label
9248 LatexCommand label
9249 name "subsec:General-text-class"
9250
9251 \end_inset
9252
9253 General text class parameters
9254 \end_layout
9255
9256 \begin_layout Standard
9257 These are general parameters that govern the behavior of an entire document
9258  class.
9259  (This does 
9260 \emph on
9261 not
9262 \emph default
9263  mean that they must appear in 
9264 \begin_inset Flex Code
9265 status collapsed
9266
9267 \begin_layout Plain Layout
9268 .layout
9269 \end_layout
9270
9271 \end_inset
9272
9273  files rather than in modules.
9274  A module can contain any layout tag.)
9275 \end_layout
9276
9277 \begin_layout Description
9278
9279 \change_inserted -712698321 1526899478
9280 \begin_inset Flex Code
9281 status collapsed
9282
9283 \begin_layout Plain Layout
9284
9285 \change_inserted -712698321 1526898610
9286 AddToCiteEngine <engine>
9287 \change_unchanged
9288
9289 \end_layout
9290
9291 \end_inset
9292
9293  Extends the possibilities for displaying citation references.
9294  See 
9295 \begin_inset CommandInset ref
9296 LatexCommand ref
9297 reference "subsec:Citation-engine-description"
9298 plural "false"
9299 caps "false"
9300 noprefix "false"
9301
9302 \end_inset
9303
9304  for details.
9305  Must end with 
9306 \begin_inset Flex Code
9307 status collapsed
9308
9309 \begin_layout Plain Layout
9310
9311 \change_inserted -712698321 1526898823
9312 End
9313 \change_unchanged
9314
9315 \end_layout
9316
9317 \end_inset
9318
9319 .
9320 \end_layout
9321
9322 \begin_layout Description
9323 \begin_inset Flex Code
9324 status collapsed
9325
9326 \begin_layout Plain Layout
9327 AddToHTMLPreamble
9328 \end_layout
9329
9330 \end_inset
9331
9332  Adds information that will be output in the 
9333 \begin_inset Flex Code
9334 status collapsed
9335
9336 \begin_layout Plain Layout
9337 <head>
9338 \end_layout
9339
9340 \end_inset
9341
9342  block when the document is output to XHTML.
9343  Typically, this would be used to output CSS style information, but it can
9344  be used for anything that can appear in 
9345 \begin_inset Flex Code
9346 status collapsed
9347
9348 \begin_layout Plain Layout
9349 <head>
9350 \end_layout
9351
9352 \end_inset
9353
9354 .
9355  Must end with 
9356 \begin_inset Quotes eld
9357 \end_inset
9358
9359
9360 \begin_inset Flex Code
9361 status collapsed
9362
9363 \begin_layout Plain Layout
9364 EndPreamble
9365 \end_layout
9366
9367 \end_inset
9368
9369
9370 \begin_inset Quotes erd
9371 \end_inset
9372
9373 .
9374 \end_layout
9375
9376 \begin_layout Description
9377 \begin_inset Flex Code
9378 status collapsed
9379
9380 \begin_layout Plain Layout
9381 AddToPreamble
9382 \end_layout
9383
9384 \end_inset
9385
9386  Adds information to the document preamble.
9387  Must end with
9388 \begin_inset Newline newline
9389 \end_inset
9390
9391
9392 \begin_inset Quotes eld
9393 \end_inset
9394
9395
9396 \begin_inset Flex Code
9397 status collapsed
9398
9399 \begin_layout Plain Layout
9400 EndPreamble
9401 \end_layout
9402
9403 \end_inset
9404
9405
9406 \begin_inset Quotes erd
9407 \end_inset
9408
9409 .
9410 \change_inserted -712698321 1562592950
9411
9412 \end_layout
9413
9414 \begin_layout Description
9415
9416 \change_inserted -712698321 1562593040
9417 \begin_inset Flex Code
9418 status collapsed
9419
9420 \begin_layout Plain Layout
9421
9422 \change_inserted -712698321 1562592954
9423 BibInToc
9424 \change_unchanged
9425
9426 \end_layout
9427
9428 \end_inset
9429
9430  [
9431 \begin_inset Flex Code
9432 status collapsed
9433
9434 \begin_layout Plain Layout
9435
9436 \change_inserted -712698321 1562592950
9437
9438 \emph on
9439 0
9440 \change_unchanged
9441
9442 \end_layout
9443
9444 \end_inset
9445
9446 ,
9447 \begin_inset space \thinspace{}
9448 \end_inset
9449
9450
9451 \begin_inset Flex Code
9452 status collapsed
9453
9454 \begin_layout Plain Layout
9455
9456 \change_inserted -712698321 1562592950
9457 1
9458 \change_unchanged
9459
9460 \end_layout
9461
9462 \end_inset
9463
9464 ] If the document class adds the bibliography to the table of contents,
9465  add this option with value 
9466 \begin_inset Flex Code
9467 status collapsed
9468
9469 \begin_layout Plain Layout
9470
9471 \change_inserted -712698321 1562592996
9472 1
9473 \change_unchanged
9474
9475 \end_layout
9476
9477 \end_inset
9478
9479  (or 
9480 \begin_inset Flex Code
9481 status collapsed
9482
9483 \begin_layout Plain Layout
9484
9485 \change_inserted -712698321 1562593006
9486 true
9487 \change_unchanged
9488
9489 \end_layout
9490
9491 \end_inset
9492
9493 ).
9494  This prevents the bibliography from being added twice.
9495 \change_unchanged
9496
9497 \end_layout
9498
9499 \begin_layout Description
9500 \begin_inset Flex Code
9501 status collapsed
9502
9503 \begin_layout Plain Layout
9504 CiteEngine <engine>
9505 \end_layout
9506
9507 \end_inset
9508
9509  Defines the possibilities for displaying citation references.
9510  See 
9511 \begin_inset CommandInset ref
9512 LatexCommand ref
9513 reference "subsec:Citation-engine-description"
9514 plural "false"
9515 caps "false"
9516 noprefix "false"
9517
9518 \end_inset
9519
9520  for details.
9521  Must end with 
9522 \begin_inset Quotes eld
9523 \end_inset
9524
9525
9526 \begin_inset Flex Code
9527 status collapsed
9528
9529 \begin_layout Plain Layout
9530 End
9531 \end_layout
9532
9533 \end_inset
9534
9535
9536 \begin_inset Quotes erd
9537 \end_inset
9538
9539 .
9540  Primarily used in cite engine files (see 
9541 \begin_inset CommandInset ref
9542 LatexCommand ref
9543 reference "subsec:Cite-Engine-Files"
9544 plural "false"
9545 caps "false"
9546 noprefix "false"
9547
9548 \end_inset
9549
9550 ).
9551
9552 \change_inserted -712698321 1526898530
9553  Note that if you specify this in a layout file or module, any cite engine
9554  definition will be overridden.
9555  Also see 
9556 \begin_inset Flex Code
9557 status collapsed
9558
9559 \begin_layout Plain Layout
9560
9561 \change_inserted -712698321 1526898530
9562 AddToCiteEngine
9563 \change_unchanged
9564
9565 \end_layout
9566
9567 \end_inset
9568
9569 .
9570 \change_unchanged
9571
9572 \end_layout
9573
9574 \begin_layout Description
9575 \begin_inset Flex Code
9576 status collapsed
9577
9578 \begin_layout Plain Layout
9579 CiteFormat
9580 \end_layout
9581
9582 \end_inset
9583
9584  Defines formats for use in the display of bibliographic information.
9585  See 
9586 \begin_inset CommandInset ref
9587 LatexCommand ref
9588 reference "subsec:Citation-format-description"
9589
9590 \end_inset
9591
9592  for details.
9593  Must end with 
9594 \begin_inset Quotes eld
9595 \end_inset
9596
9597
9598 \begin_inset Flex Code
9599 status collapsed
9600
9601 \begin_layout Plain Layout
9602 End
9603 \end_layout
9604
9605 \end_inset
9606
9607
9608 \begin_inset Quotes erd
9609 \end_inset
9610
9611 .
9612  Primarily used in cite engine files (see 
9613 \begin_inset CommandInset ref
9614 LatexCommand ref
9615 reference "subsec:Cite-Engine-Files"
9616 plural "false"
9617 caps "false"
9618 noprefix "false"
9619
9620 \end_inset
9621
9622 ).
9623
9624 \change_inserted -712698321 1526898585
9625  A cite format defined in a layout or module will override the cite engine
9626  definition.
9627 \change_unchanged
9628
9629 \end_layout
9630
9631 \begin_layout Description
9632 \begin_inset Flex Code
9633 status collapsed
9634
9635 \begin_layout Plain Layout
9636 CiteFramework
9637 \end_layout
9638
9639 \end_inset
9640
9641  [
9642 \begin_inset Flex Code
9643 status collapsed
9644
9645 \begin_layout Plain Layout
9646
9647 \emph on
9648 bibtex
9649 \end_layout
9650
9651 \end_inset
9652
9653 ,
9654 \begin_inset Flex Code
9655 status collapsed
9656
9657 \begin_layout Plain Layout
9658 biblatex
9659 \end_layout
9660
9661 \end_inset
9662
9663 ] Determines whether 
9664 \family sans
9665 Biblatex
9666 \family default
9667  or Bib\SpecialChar TeX
9668  is used to generate a Bibliography.
9669  Primarily used in cite engine files (see 
9670 \begin_inset CommandInset ref
9671 LatexCommand ref
9672 reference "subsec:Cite-Engine-Files"
9673 plural "false"
9674 caps "false"
9675 noprefix "false"
9676
9677 \end_inset
9678
9679 ).
9680 \end_layout
9681
9682 \begin_layout Description
9683 \begin_inset Flex Code
9684 status collapsed
9685
9686 \begin_layout Plain Layout
9687 ClassOptions
9688 \end_layout
9689
9690 \end_inset
9691
9692  Describes various global options supported by the document class.
9693  See 
9694 \begin_inset CommandInset ref
9695 LatexCommand ref
9696 reference "subsec:ClassOptions"
9697
9698 \end_inset
9699
9700  for a description.
9701  Must end with 
9702 \begin_inset Quotes eld
9703 \end_inset
9704
9705
9706 \begin_inset Flex Code
9707 status collapsed
9708
9709 \begin_layout Plain Layout
9710 End
9711 \end_layout
9712
9713 \end_inset
9714
9715
9716 \begin_inset Quotes erd
9717 \end_inset
9718
9719 .
9720 \end_layout
9721
9722 \begin_layout Description
9723 \begin_inset Flex Code
9724 status collapsed
9725
9726 \begin_layout Plain Layout
9727 Columns
9728 \end_layout
9729
9730 \end_inset
9731
9732  [
9733 \begin_inset Flex Code
9734 status collapsed
9735
9736 \begin_layout Plain Layout
9737
9738 \emph on
9739 1
9740 \end_layout
9741
9742 \end_inset
9743
9744 ,
9745 \begin_inset space \thinspace{}
9746 \end_inset
9747
9748
9749 \begin_inset Flex Code
9750 status collapsed
9751
9752 \begin_layout Plain Layout
9753 2
9754 \end_layout
9755
9756 \end_inset
9757
9758 ] Whether the class should 
9759 \emph on
9760 default
9761 \emph default
9762  to having one or two columns.
9763  Can be changed in the 
9764 \begin_inset Flex Noun
9765 status collapsed
9766
9767 \begin_layout Plain Layout
9768 Document\SpecialChar menuseparator
9769 Settings
9770 \end_layout
9771
9772 \end_inset
9773
9774  dialog.
9775 \end_layout
9776
9777 \begin_layout Description
9778 \begin_inset Flex Code
9779 status collapsed
9780
9781 \begin_layout Plain Layout
9782 Counter
9783 \end_layout
9784
9785 \end_inset
9786
9787  [
9788 \begin_inset Flex Code
9789 status collapsed
9790
9791 \begin_layout Plain Layout
9792 string
9793 \end_layout
9794
9795 \end_inset
9796
9797 ] This sequence defines the properties for a counter.
9798  If the counter does not yet exist, it is created; if it does exist, it
9799  is modified.
9800  Must end with 
9801 \begin_inset Quotes eld
9802 \end_inset
9803
9804
9805 \begin_inset Flex Code
9806 status collapsed
9807
9808 \begin_layout Plain Layout
9809 End
9810 \end_layout
9811
9812 \end_inset
9813
9814
9815 \begin_inset Quotes erd
9816 \end_inset
9817
9818 .
9819 \begin_inset Newline newline
9820 \end_inset
9821
9822 See 
9823 \begin_inset CommandInset ref
9824 LatexCommand ref
9825 reference "subsec:Counters"
9826
9827 \end_inset
9828
9829  for details on counters.
9830 \end_layout
9831
9832 \begin_layout Description
9833 \begin_inset Flex Code
9834 status collapsed
9835
9836 \begin_layout Plain Layout
9837 DefaultFont
9838 \end_layout
9839
9840 \end_inset
9841
9842  Sets the default font used to display the document.
9843  See 
9844 \begin_inset CommandInset ref
9845 LatexCommand ref
9846 reference "subsec:Font-description"
9847
9848 \end_inset
9849
9850  for how to declare fonts.
9851  Must end with 
9852 \begin_inset Quotes eld
9853 \end_inset
9854
9855
9856 \begin_inset Flex Code
9857 status collapsed
9858
9859 \begin_layout Plain Layout
9860 EndFont
9861 \end_layout
9862
9863 \end_inset
9864
9865
9866 \begin_inset Quotes erd
9867 \end_inset
9868
9869 .
9870 \end_layout
9871
9872 \begin_layout Description
9873 \begin_inset Flex Code
9874 status collapsed
9875
9876 \begin_layout Plain Layout
9877 DefaultModule
9878 \end_layout
9879
9880 \end_inset
9881
9882  [
9883 \begin_inset Flex Code
9884 status collapsed
9885
9886 \begin_layout Plain Layout
9887 <module>
9888 \end_layout
9889
9890 \end_inset
9891
9892 ] Specifies a module to be included by default with this document class.
9893  The module is specified as filename without the 
9894 \begin_inset Flex Code
9895 status collapsed
9896
9897 \begin_layout Plain Layout
9898 .module
9899 \end_layout
9900
9901 \end_inset
9902
9903  extension.
9904  The user can still remove the module, but it will be active at the outset.
9905  (This applies only when new files are created, or when this class is chosen
9906  for an existing document.)
9907 \end_layout
9908
9909 \begin_layout Description
9910 \begin_inset Flex Code
9911 status collapsed
9912
9913 \begin_layout Plain Layout
9914 DefaultStyle
9915 \end_layout
9916
9917 \end_inset
9918
9919  [
9920 \begin_inset Flex Code
9921 status collapsed
9922
9923 \begin_layout Plain Layout
9924 <style>
9925 \end_layout
9926
9927 \end_inset
9928
9929 ] This is the style that will be assigned to new paragraphs, usually 
9930 \begin_inset Flex Noun
9931 status collapsed
9932
9933 \begin_layout Plain Layout
9934 Standard
9935 \end_layout
9936
9937 \end_inset
9938
9939 .
9940  This will default to the first defined style if not given, but you are
9941  encouraged to use this directive.
9942 \end_layout
9943
9944 \begin_layout Description
9945
9946 \change_inserted -970929547 1515112870
9947 \begin_inset Flex Code
9948 status collapsed
9949
9950 \begin_layout Plain Layout
9951
9952 \change_inserted -970929547 1515112782
9953 DocBookRoot
9954 \change_unchanged
9955
9956 \end_layout
9957
9958 \end_inset
9959
9960  [
9961 \begin_inset Flex Code
9962 status collapsed
9963
9964 \begin_layout Plain Layout
9965
9966 \change_inserted -970929547 1515112766
9967 string
9968 \change_unchanged
9969
9970 \end_layout
9971
9972 \end_inset
9973
9974 ] The root element (at the top of the document) to use when outputting documents
9975  with this class in DocBook.
9976  The default value is 
9977 \begin_inset Quotes eld
9978 \end_inset
9979
9980
9981 \begin_inset Flex Code
9982 status collapsed
9983
9984 \begin_layout Plain Layout
9985
9986 \change_inserted -970929547 1515112845
9987 article
9988 \change_unchanged
9989
9990 \end_layout
9991
9992 \end_inset
9993
9994
9995 \begin_inset Quotes erd
9996 \end_inset
9997
9998 .
9999
10000 \change_deleted 1075283030 1594226862
10001  
10002 \change_inserted 1075283030 1594226777
10003
10004 \end_layout
10005
10006 \begin_layout Description
10007
10008 \change_inserted 1075283030 1594226859
10009 \begin_inset Flex Code
10010 status collapsed
10011
10012 \begin_layout Plain Layout
10013
10014 \change_inserted 1075283030 1594226785
10015 DocBookForceAbstract
10016 \change_unchanged
10017
10018 \end_layout
10019
10020 \end_inset
10021
10022  [
10023 \begin_inset Flex Code
10024 status collapsed
10025
10026 \begin_layout Plain Layout
10027
10028 \change_inserted 1075283030 1594226804
10029 boolean
10030 \change_unchanged
10031
10032 \end_layout
10033
10034 \end_inset
10035
10036 ] If 
10037 \begin_inset Quotes eld
10038 \end_inset
10039
10040
10041 \family typewriter
10042 true
10043 \family default
10044
10045 \begin_inset Quotes erd
10046 \end_inset
10047
10048 , the root element will always have an 
10049 \family typewriter
10050 <abstract>
10051 \family default
10052  tag.
10053  The default value is 
10054 \begin_inset Quotes eld
10055 \end_inset
10056
10057
10058 \family typewriter
10059 false
10060 \family default
10061
10062 \begin_inset Quotes erd
10063 \end_inset
10064
10065 .
10066 \change_unchanged
10067
10068 \end_layout
10069
10070 \begin_layout Description
10071 \begin_inset Flex Code
10072 status collapsed
10073
10074 \begin_layout Plain Layout
10075 ExcludesModule
10076 \end_layout
10077
10078 \end_inset
10079
10080  [
10081 \begin_inset Flex Code
10082 status collapsed
10083
10084 \begin_layout Plain Layout
10085 <module>
10086 \end_layout
10087
10088 \end_inset
10089
10090 ] This tag indicates that the module (which is specified by filename without
10091  the 
10092 \begin_inset Flex Code
10093 status collapsed
10094
10095 \begin_layout Plain Layout
10096 .module
10097 \end_layout
10098
10099 \end_inset
10100
10101  extension) cannot be used with this document class.
10102  This might be used in a journal-specific layout file to prevent, say, the
10103  use of the 
10104 \begin_inset Flex Code
10105 status collapsed
10106
10107 \begin_layout Plain Layout
10108 theorems-sec
10109 \end_layout
10110
10111 \end_inset
10112
10113  module that numbers theorems by section.
10114  This tag may 
10115 \emph on
10116 not
10117 \emph default
10118  be used in a module.
10119  Modules have their own way of excluding other modules (see 
10120 \begin_inset CommandInset ref
10121 LatexCommand ref
10122 reference "subsec:Layout-modules"
10123
10124 \end_inset
10125
10126 ).
10127 \end_layout
10128
10129 \begin_layout Description
10130 \begin_inset Flex Code
10131 status collapsed
10132
10133 \begin_layout Plain Layout
10134 Float
10135 \end_layout
10136
10137 \end_inset
10138
10139  Defines a new float.
10140  See 
10141 \begin_inset CommandInset ref
10142 LatexCommand ref
10143 reference "subsec:Floats"
10144
10145 \end_inset
10146
10147  for details.
10148  Must end with 
10149 \begin_inset Quotes eld
10150 \end_inset
10151
10152
10153 \begin_inset Flex Code
10154 status collapsed
10155
10156 \begin_layout Plain Layout
10157 End
10158 \end_layout
10159
10160 \end_inset
10161
10162
10163 \begin_inset Quotes erd
10164 \end_inset
10165
10166 .
10167 \end_layout
10168
10169 \begin_layout Description
10170 \begin_inset Flex Code
10171 status collapsed
10172
10173 \begin_layout Plain Layout
10174 HTMLPreamble
10175 \end_layout
10176
10177 \end_inset
10178
10179  Sets the information that will be output in the 
10180 \begin_inset Flex Code
10181 status collapsed
10182
10183 \begin_layout Plain Layout
10184 <head>
10185 \end_layout
10186
10187 \end_inset
10188
10189  block when this document class is output to XHTML.
10190  Note that this will completely override any prior 
10191 \begin_inset Flex Code
10192 status collapsed
10193
10194 \begin_layout Plain Layout
10195 HTMLPreamble
10196 \end_layout
10197
10198 \end_inset
10199
10200  or 
10201 \begin_inset Flex Code
10202 status collapsed
10203
10204 \begin_layout Plain Layout
10205 AddToHTMLPreamble
10206 \end_layout
10207
10208 \end_inset
10209
10210  declarations.
10211  (Use
10212 \begin_inset Newline newline
10213 \end_inset
10214
10215
10216 \begin_inset Flex Code
10217 status collapsed
10218
10219 \begin_layout Plain Layout
10220 AddToHTMLPreamble
10221 \end_layout
10222
10223 \end_inset
10224
10225  if you just want to add material to the preamble.) Must end with 
10226 \begin_inset Quotes eld
10227 \end_inset
10228
10229
10230 \begin_inset Flex Code
10231 status collapsed
10232
10233 \begin_layout Plain Layout
10234 EndPreamble
10235 \end_layout
10236
10237 \end_inset
10238
10239
10240 \begin_inset Quotes erd
10241 \end_inset
10242
10243 .
10244 \end_layout
10245
10246 \begin_layout Description
10247 \begin_inset Flex Code
10248 status collapsed
10249
10250 \begin_layout Plain Layout
10251 HTMLTOCSection
10252 \end_layout
10253
10254 \end_inset
10255
10256  [
10257 \begin_inset Flex Code
10258 status collapsed
10259
10260 \begin_layout Plain Layout
10261 <style>
10262 \end_layout
10263
10264 \end_inset
10265
10266 ] The style to use for the table of contents, bibliography, and so forth,
10267  when the document is output to HTML.
10268  For articles, this should normally be 
10269 \begin_inset Flex Code
10270 status collapsed
10271
10272 \begin_layout Plain Layout
10273 Section
10274 \end_layout
10275
10276 \end_inset
10277
10278 ; for books 
10279 \begin_inset Flex Code
10280 status collapsed
10281
10282 \begin_layout Plain Layout
10283 Chapter
10284 \end_layout
10285
10286 \end_inset
10287
10288 .
10289  If it is not given, then \SpecialChar LyX
10290  will attempt to figure out which layout to use.
10291 \end_layout
10292
10293 \begin_layout Description
10294 \begin_inset Flex Code
10295 status collapsed
10296
10297 \begin_layout Plain Layout
10298 IfCounter
10299 \end_layout
10300
10301 \end_inset
10302
10303  [
10304 \begin_inset Flex Code
10305 status collapsed
10306
10307 \begin_layout Plain Layout
10308 <counter>
10309 \end_layout
10310
10311 \end_inset
10312
10313 ] Modifies the properties of the given counter.
10314  If the counter does not exist, the statement is ignored.
10315  Must end with 
10316 \begin_inset Quotes eld
10317 \end_inset
10318
10319
10320 \begin_inset Flex Code
10321 status collapsed
10322
10323 \begin_layout Plain Layout
10324 End
10325 \end_layout
10326
10327 \end_inset
10328
10329
10330 \begin_inset Quotes erd
10331 \end_inset
10332
10333 .
10334 \begin_inset Newline newline
10335 \end_inset
10336
10337 See 
10338 \begin_inset CommandInset ref
10339 LatexCommand ref
10340 reference "subsec:Counters"
10341
10342 \end_inset
10343
10344  for details on counters.
10345 \end_layout
10346
10347 \begin_layout Description
10348 \begin_inset Flex Code
10349 status collapsed
10350
10351 \begin_layout Plain Layout
10352 Input
10353 \end_layout
10354
10355 \end_inset
10356
10357  [
10358 \begin_inset Flex Code
10359 status collapsed
10360
10361 \begin_layout Plain Layout
10362 <filename>
10363 \end_layout
10364
10365 \end_inset
10366
10367 ] This allows you to include another layout definition file within yours
10368  to avoid duplicating commands.
10369  Common examples are the standard layout files, for example, 
10370 \begin_inset Flex Code
10371 status collapsed
10372
10373 \begin_layout Plain Layout
10374 stdclass.inc
10375 \end_layout
10376
10377 \end_inset
10378
10379 , which contains most of the basic layouts.
10380 \change_inserted -712698321 1611646803
10381
10382 \end_layout
10383
10384 \begin_layout Description
10385
10386 \change_inserted -712698321 1611646804
10387 \begin_inset Flex Code
10388 status collapsed
10389
10390 \begin_layout Plain Layout
10391
10392 \change_inserted -712698321 1611646837
10393 InputGlobal
10394 \change_unchanged
10395
10396 \end_layout
10397
10398 \end_inset
10399
10400  [
10401 \begin_inset Flex Code
10402 status collapsed
10403
10404 \begin_layout Plain Layout
10405
10406 \change_inserted -712698321 1611646804
10407 <filename>
10408 \change_unchanged
10409
10410 \end_layout
10411
10412 \end_inset
10413
10414 ] is a variant of the 
10415 \begin_inset Flex Code
10416 status collapsed
10417
10418 \begin_layout Plain Layout
10419
10420 \change_inserted -712698321 1611646804
10421 Input
10422 \change_unchanged
10423
10424 \end_layout
10425
10426 \end_inset
10427
10428  command which does not look for files in the user directory.
10429  This allows to create a file 
10430 \begin_inset Flex Code
10431 status collapsed
10432
10433 \begin_layout Plain Layout
10434
10435 \change_inserted -712698321 1611646804
10436 name.layout
10437 \change_unchanged
10438
10439 \end_layout
10440
10441 \end_inset
10442
10443  or 
10444 \begin_inset Flex Code
10445 status collapsed
10446
10447 \begin_layout Plain Layout
10448
10449 \change_inserted -712698321 1611646804
10450 name.inc
10451 \change_unchanged
10452
10453 \end_layout
10454
10455 \end_inset
10456
10457  in the user directory which includes a global file with the same name via
10458  
10459 \begin_inset Flex Code
10460 status collapsed
10461
10462 \begin_layout Plain Layout
10463
10464 \change_inserted -712698321 1611646853
10465 InputGlobal name
10466 \change_unchanged
10467
10468 \end_layout
10469
10470 \end_inset
10471
10472  or 
10473 \begin_inset Flex Code
10474 status collapsed
10475
10476 \begin_layout Plain Layout
10477
10478 \change_inserted -712698321 1611646855
10479 InputGlobal name.inc
10480 \change_unchanged
10481
10482 \end_layout
10483
10484 \end_inset
10485
10486 , respectively (with 
10487 \begin_inset Flex Code
10488 status collapsed
10489
10490 \begin_layout Plain Layout
10491
10492 \change_inserted -712698321 1611646804
10493 Input
10494 \change_unchanged
10495
10496 \end_layout
10497
10498 \end_inset
10499
10500 , the file would recursively include itself).
10501  This way, you can modify global files without having to completely copy
10502  them.
10503 \change_unchanged
10504
10505 \end_layout
10506
10507 \begin_layout Description
10508 \begin_inset Flex Code
10509 status collapsed
10510
10511 \begin_layout Plain Layout
10512 InsetLayout
10513 \end_layout
10514
10515 \end_inset
10516
10517  [
10518 \begin_inset Flex Code
10519 status collapsed
10520
10521 \begin_layout Plain Layout
10522 <type>
10523 \end_layout
10524
10525 \end_inset
10526
10527 ] This section (re-)defines the layout of an inset.
10528  It can be applied to an existing inset or to a new, user-defined inset,
10529  e.g., a new character style.
10530  Must end with 
10531 \begin_inset Quotes eld
10532 \end_inset
10533
10534
10535 \begin_inset Flex Code
10536 status collapsed
10537
10538 \begin_layout Plain Layout
10539 End
10540 \end_layout
10541
10542 \end_inset
10543
10544
10545 \begin_inset Quotes erd
10546 \end_inset
10547
10548 .
10549 \begin_inset Newline newline
10550 \end_inset
10551
10552 See 
10553 \begin_inset CommandInset ref
10554 LatexCommand ref
10555 reference "subsec:Flex-insets-and"
10556
10557 \end_inset
10558
10559  for more information.
10560  
10561 \end_layout
10562
10563 \begin_layout Description
10564 \begin_inset Flex Code
10565 status collapsed
10566
10567 \begin_layout Plain Layout
10568 LeftMargin
10569 \end_layout
10570
10571 \end_inset
10572
10573  [
10574 \begin_inset Flex Code
10575 status collapsed
10576
10577 \begin_layout Plain Layout
10578 string
10579 \end_layout
10580
10581 \end_inset
10582
10583 ] A string that indicates the width of the left margin on the screen, for
10584  example, 
10585 \begin_inset Quotes eld
10586 \end_inset
10587
10588
10589 \begin_inset Flex Code
10590 status collapsed
10591
10592 \begin_layout Plain Layout
10593 MMMMM
10594 \end_layout
10595
10596 \end_inset
10597
10598
10599 \begin_inset Quotes erd
10600 \end_inset
10601
10602 .
10603  (Note that this is not a `length', like 
10604 \begin_inset Quotes eld
10605 \end_inset
10606
10607 2ex
10608 \begin_inset Quotes erd
10609 \end_inset
10610
10611 .)
10612 \end_layout
10613
10614 \begin_layout Description
10615 \begin_inset Flex Code
10616 status collapsed
10617
10618 \begin_layout Plain Layout
10619 MaxCiteNames
10620 \end_layout
10621
10622 \end_inset
10623
10624  [
10625 \begin_inset Flex Code
10626 status collapsed
10627
10628 \begin_layout Plain Layout
10629 integer
10630 \end_layout
10631
10632 \end_inset
10633
10634 ] An integer that determines the maximal number of names displayed in an
10635  author-year citation before the citation switches to 
10636 \begin_inset Quotes eld
10637 \end_inset
10638
10639 FirstAuthor et al.
10640 \begin_inset Quotes erd
10641 \end_inset
10642
10643 .
10644  Primarily used in cite engine files (see 
10645 \begin_inset CommandInset ref
10646 LatexCommand ref
10647 reference "subsec:Cite-Engine-Files"
10648 plural "false"
10649 caps "false"
10650 noprefix "false"
10651
10652 \end_inset
10653
10654 ).
10655 \end_layout
10656
10657 \begin_layout Description
10658
10659 \change_inserted -712698321 1612018485
10660 \begin_inset Flex Code
10661 status collapsed
10662
10663 \begin_layout Plain Layout
10664
10665 \change_inserted -712698321 1612018457
10666 ModifyInsetLayout
10667 \change_unchanged
10668
10669 \end_layout
10670
10671 \end_inset
10672
10673  [
10674 \begin_inset Flex Code
10675 status collapsed
10676
10677 \begin_layout Plain Layout
10678
10679 \change_inserted -712698321 1612018466
10680 <type>
10681 \change_unchanged
10682
10683 \end_layout
10684
10685 \end_inset
10686
10687 ] Modifies the layout of an inset.
10688  If the layout does not exist, this section is ignored.
10689  Must end with 
10690 \begin_inset Quotes eld
10691 \end_inset
10692
10693
10694 \begin_inset Flex Code
10695 status collapsed
10696
10697 \begin_layout Plain Layout
10698
10699 \change_inserted -712698321 1612018452
10700 End
10701 \change_unchanged
10702
10703 \end_layout
10704
10705 \end_inset
10706
10707
10708 \begin_inset Quotes erd
10709 \end_inset
10710
10711 .
10712 \end_layout
10713
10714 \begin_layout Description
10715 \begin_inset Flex Code
10716 status collapsed
10717
10718 \begin_layout Plain Layout
10719 ModifyStyle
10720 \end_layout
10721
10722 \end_inset
10723
10724  [
10725 \begin_inset Flex Code
10726 status collapsed
10727
10728 \begin_layout Plain Layout
10729 <style>
10730 \end_layout
10731
10732 \end_inset
10733
10734 ] Modifies the properties of the given paragraph style.
10735  If the style does not exist, this section is ignored.
10736  Must end with 
10737 \begin_inset Quotes eld
10738 \end_inset
10739
10740
10741 \begin_inset Flex Code
10742 status collapsed
10743
10744 \begin_layout Plain Layout
10745 End
10746 \end_layout
10747
10748 \end_inset
10749
10750
10751 \begin_inset Quotes erd
10752 \end_inset
10753
10754 .
10755 \end_layout
10756
10757 \begin_layout Description
10758 \begin_inset Flex Code
10759 status collapsed
10760
10761 \begin_layout Plain Layout
10762 NoCounter
10763 \end_layout
10764
10765 \end_inset
10766
10767  [
10768 \begin_inset Flex Code
10769 status collapsed
10770
10771 \begin_layout Plain Layout
10772 <counter>
10773 \end_layout
10774
10775 \end_inset
10776
10777 ] Deletes an existing counter, usually one defined in an included file.
10778 \end_layout
10779
10780 \begin_layout Description
10781 \begin_inset Flex Code
10782 status collapsed
10783
10784 \begin_layout Plain Layout
10785 NoFloat
10786 \end_layout
10787
10788 \end_inset
10789
10790  [
10791 \begin_inset Flex Code
10792 status collapsed
10793
10794 \begin_layout Plain Layout
10795 <float>
10796 \end_layout
10797
10798 \end_inset
10799
10800 ] Deletes an existing float.
10801  This is particularly useful when you want to suppress a float that has
10802  been defined in an input file.
10803 \end_layout
10804
10805 \begin_layout Description
10806 \begin_inset Flex Code
10807 status collapsed
10808
10809 \begin_layout Plain Layout
10810 NoStyle
10811 \end_layout
10812
10813 \end_inset
10814
10815  [
10816 \begin_inset Flex Code
10817 status collapsed
10818
10819 \begin_layout Plain Layout
10820 <style>
10821 \end_layout
10822
10823 \end_inset
10824
10825 ] Deletes an existing style.
10826 \end_layout
10827
10828 \begin_layout Description
10829 \begin_inset Flex Code
10830 status collapsed
10831
10832 \begin_layout Plain Layout
10833 OutlinerName
10834 \end_layout
10835
10836 \end_inset
10837
10838  [
10839 \begin_inset Flex Code
10840 status collapsed
10841
10842 \begin_layout Plain Layout
10843 <type>
10844 \end_layout
10845
10846 \end_inset
10847
10848 ] [
10849 \begin_inset Flex Code
10850 status collapsed
10851
10852 \begin_layout Plain Layout
10853 <string>
10854 \end_layout
10855
10856 \end_inset
10857
10858 ] Define a new table of contents with type 
10859 \begin_inset Flex Code
10860 status collapsed
10861
10862 \begin_layout Plain Layout
10863 <type>
10864 \end_layout
10865
10866 \end_inset
10867
10868  and name 
10869 \begin_inset Flex Code
10870 status collapsed
10871
10872 \begin_layout Plain Layout
10873 <string>
10874 \end_layout
10875
10876 \end_inset
10877
10878 .
10879  See also the AddToToc commands.
10880 \end_layout
10881
10882 \begin_layout Description
10883 \begin_inset Flex Code
10884 status collapsed
10885
10886 \begin_layout Plain Layout
10887 OutputFormat
10888 \end_layout
10889
10890 \end_inset
10891
10892  [
10893 \begin_inset Flex Code
10894 status collapsed
10895
10896 \begin_layout Plain Layout
10897 <format>
10898 \end_layout
10899
10900 \end_inset
10901
10902 ] The file format (as defined in the \SpecialChar LyX
10903  preferences) produced by this document
10904  class.
10905  It is mainly useful when 
10906 \begin_inset Flex Code
10907 status collapsed
10908
10909 \begin_layout Plain Layout
10910 OutputType
10911 \end_layout
10912
10913 \end_inset
10914
10915  is 
10916 \begin_inset Flex Code
10917 status collapsed
10918
10919 \begin_layout Plain Layout
10920 literate
10921 \end_layout
10922
10923 \end_inset
10924
10925  and one wants to define a new type of literate document.
10926  The format is reset to 
10927 \change_deleted 5863208 1594239413
10928
10929 \begin_inset Quotes eld
10930 \end_inset
10931
10932
10933 \begin_inset Flex Code
10934 status collapsed
10935
10936 \begin_layout Plain Layout
10937 docbook
10938 \end_layout
10939
10940 \end_inset
10941
10942
10943 \begin_inset Quotes erd
10944 \end_inset
10945
10946  or
10947 \change_unchanged
10948  
10949 \begin_inset Quotes eld
10950 \end_inset
10951
10952
10953 \begin_inset Flex Code
10954 status collapsed
10955
10956 \begin_layout Plain Layout
10957 latex
10958 \end_layout
10959
10960 \end_inset
10961
10962
10963 \begin_inset Quotes erd
10964 \end_inset
10965
10966  when the corresponding 
10967 \begin_inset Flex Code
10968 status collapsed
10969
10970 \begin_layout Plain Layout
10971 OutputType
10972 \end_layout
10973
10974 \end_inset
10975
10976  parameter is encountered.
10977 \end_layout
10978
10979 \begin_layout Description
10980 \begin_inset Flex Code
10981 status collapsed
10982
10983 \begin_layout Plain Layout
10984 OutputType
10985 \end_layout
10986
10987 \end_inset
10988
10989  [
10990 \begin_inset Flex Code
10991 status collapsed
10992
10993 \begin_layout Plain Layout
10994
10995 \emph on
10996 lat
10997 \emph default
10998 ex
10999 \end_layout
11000
11001 \end_inset
11002
11003
11004 \change_deleted 5863208 1594239430
11005
11006 \begin_inset Flex Code
11007 status collapsed
11008
11009 \begin_layout Plain Layout
11010 docbook
11011 \end_layout
11012
11013 \end_inset
11014
11015 ,
11016 \change_unchanged
11017  
11018 \begin_inset Flex Code
11019 status collapsed
11020
11021 \begin_layout Plain Layout
11022 literate
11023 \end_layout
11024
11025 \end_inset
11026
11027 ] Specifies what sort of output documents using this class will produce.
11028 \end_layout
11029
11030 \begin_layout Description
11031 \begin_inset Flex Code
11032 status collapsed
11033
11034 \begin_layout Plain Layout
11035 PackageOptions
11036 \end_layout
11037
11038 \end_inset
11039
11040  [
11041 \begin_inset Flex Code
11042 status collapsed
11043
11044 \begin_layout Plain Layout
11045 string
11046 \end_layout
11047
11048 \end_inset
11049
11050  
11051 \begin_inset Flex Code
11052 status collapsed
11053
11054 \begin_layout Plain Layout
11055 string
11056 \end_layout
11057
11058 \end_inset
11059
11060 ] Specifies options, given in the second string, for the package named by
11061  the first string.
11062  For example, 
11063 \begin_inset Quotes eld
11064 \end_inset
11065
11066
11067 \begin_inset Flex Code
11068 status collapsed
11069
11070 \begin_layout Plain Layout
11071 PackageOptions natbib square
11072 \end_layout
11073
11074 \end_inset
11075
11076
11077 \begin_inset Quotes erd
11078 \end_inset
11079
11080  will cause 
11081 \begin_inset Flex Code
11082 status collapsed
11083
11084 \begin_layout Plain Layout
11085 natbib
11086 \end_layout
11087
11088 \end_inset
11089
11090  to be loaded with the 
11091 \begin_inset Flex Code
11092 status collapsed
11093
11094 \begin_layout Plain Layout
11095 square
11096 \end_layout
11097
11098 \end_inset
11099
11100  option.
11101  (For \SpecialChar TeX
11102 perts, this causes \SpecialChar LyX
11103  to output: 
11104 \begin_inset Flex Code
11105 status collapsed
11106
11107 \begin_layout Plain Layout
11108
11109 \backslash
11110 PassOptionsToPackage{natbib}{square}
11111 \end_layout
11112
11113 \end_inset
11114
11115  prior to loading 
11116 \begin_inset Flex Code
11117 status collapsed
11118
11119 \begin_layout Plain Layout
11120 natbib
11121 \end_layout
11122
11123 \end_inset
11124
11125 .)
11126 \change_inserted -712698321 1565102364
11127
11128 \end_layout
11129
11130 \begin_layout Description
11131
11132 \change_inserted -712698321 1565102470
11133 \begin_inset Flex Code
11134 status collapsed
11135
11136 \begin_layout Plain Layout
11137
11138 \change_inserted -712698321 1565102365
11139 PageSize
11140 \change_unchanged
11141
11142 \end_layout
11143
11144 \end_inset
11145
11146  [
11147 \begin_inset Flex Code
11148 status collapsed
11149
11150 \begin_layout Plain Layout
11151
11152 \change_inserted -712698321 1565105222
11153
11154 \emph on
11155 custom
11156 \emph default
11157 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
11158  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
11159 \change_unchanged
11160
11161 \end_layout
11162
11163 \end_inset
11164
11165 ] The default page size.
11166  This is used by some converters.
11167 \change_unchanged
11168
11169 \end_layout
11170
11171 \begin_layout Description
11172 \begin_inset Flex Code
11173 status collapsed
11174
11175 \begin_layout Plain Layout
11176 PageStyle
11177 \end_layout
11178
11179 \end_inset
11180
11181  [
11182 \begin_inset Flex Code
11183 status collapsed
11184
11185 \begin_layout Plain Layout
11186
11187 \emph on
11188 plain
11189 \end_layout
11190
11191 \end_inset
11192
11193
11194 \begin_inset Flex Code
11195 status collapsed
11196
11197 \begin_layout Plain Layout
11198 empty
11199 \end_layout
11200
11201 \end_inset
11202
11203
11204 \begin_inset Flex Code
11205 status collapsed
11206
11207 \begin_layout Plain Layout
11208 headings
11209 \end_layout
11210
11211 \end_inset
11212
11213 ] The default pagestyle.
11214  Can be changed in the 
11215 \begin_inset Flex Noun
11216 status collapsed
11217
11218 \begin_layout Plain Layout
11219 Document\SpecialChar menuseparator
11220 Settings
11221 \end_layout
11222
11223 \end_inset
11224
11225  dialog.
11226 \end_layout
11227
11228 \begin_layout Description
11229 \begin_inset Flex Code
11230 status collapsed
11231
11232 \begin_layout Plain Layout
11233 Preamble
11234 \end_layout
11235
11236 \end_inset
11237
11238  Sets the preamble for the \SpecialChar LaTeX
11239  document.
11240  Note that this will completely override any prior 
11241 \begin_inset Flex Code
11242 status collapsed
11243
11244 \begin_layout Plain Layout
11245 Preamble
11246 \end_layout
11247
11248 \end_inset
11249
11250  or 
11251 \begin_inset Flex Code
11252 status collapsed
11253
11254 \begin_layout Plain Layout
11255 AddToPreamble
11256 \end_layout
11257
11258 \end_inset
11259
11260  declarations.
11261  (Use 
11262 \begin_inset Flex Code
11263 status collapsed
11264
11265 \begin_layout Plain Layout
11266 AddToPreamble
11267 \end_layout
11268
11269 \end_inset
11270
11271  if you just want to add material to the preamble.) Must end with 
11272 \begin_inset Quotes eld
11273 \end_inset
11274
11275
11276 \begin_inset Flex Code
11277 status collapsed
11278
11279 \begin_layout Plain Layout
11280 EndPreamble
11281 \end_layout
11282
11283 \end_inset
11284
11285
11286 \begin_inset Quotes erd
11287 \end_inset
11288
11289 .
11290 \change_inserted -712698321 1612018500
11291
11292 \end_layout
11293
11294 \begin_layout Description
11295
11296 \change_inserted -712698321 1612018547
11297 \begin_inset Flex Code
11298 status collapsed
11299
11300 \begin_layout Plain Layout
11301
11302 \change_inserted -712698321 1612018506
11303 ProvideInsetLayout
11304 \change_unchanged
11305
11306 \end_layout
11307
11308 \end_inset
11309
11310  [
11311 \begin_inset Flex Code
11312 status collapsed
11313
11314 \begin_layout Plain Layout
11315
11316 \change_inserted -712698321 1612018509
11317 <type>
11318 \change_unchanged
11319
11320 \end_layout
11321
11322 \end_inset
11323
11324 ] Defines the layout of an inset if it does not already exist.
11325  If the layout does exist, this section is ignored.
11326  Must end with 
11327 \begin_inset Quotes eld
11328 \end_inset
11329
11330
11331 \begin_inset Flex Code
11332 status collapsed
11333
11334 \begin_layout Plain Layout
11335
11336 \change_inserted -712698321 1612018500
11337 End
11338 \change_unchanged
11339
11340 \end_layout
11341
11342 \end_inset
11343
11344
11345 \begin_inset Quotes erd
11346 \end_inset
11347
11348 .
11349 \change_unchanged
11350
11351 \end_layout
11352
11353 \begin_layout Description
11354 \begin_inset Flex Code
11355 status collapsed
11356
11357 \begin_layout Plain Layout
11358 Provides
11359 \end_layout
11360
11361 \end_inset
11362
11363  [
11364 \begin_inset Flex Code
11365 status collapsed
11366
11367 \begin_layout Plain Layout
11368 string
11369 \end_layout
11370
11371 \end_inset
11372
11373 ] [
11374 \begin_inset Flex Code
11375 status collapsed
11376
11377 \begin_layout Plain Layout
11378
11379 \emph on
11380 0
11381 \end_layout
11382
11383 \end_inset
11384
11385 ,
11386 \begin_inset space \thinspace{}
11387 \end_inset
11388
11389
11390 \begin_inset Flex Code
11391 status collapsed
11392
11393 \begin_layout Plain Layout
11394 1
11395 \end_layout
11396
11397 \end_inset
11398
11399 ] Whether the class already provides the feature 
11400 \begin_inset Flex Code
11401 status collapsed
11402
11403 \begin_layout Plain Layout
11404 string
11405 \end_layout
11406
11407 \end_inset
11408
11409 .
11410  A feature is in general the name of a package (e.
11411 \begin_inset space \thinspace{}
11412 \end_inset
11413
11414 g.
11415 \begin_inset space \space{}
11416 \end_inset
11417
11418
11419 \begin_inset Flex Code
11420 status collapsed
11421
11422 \begin_layout Plain Layout
11423 amsmath
11424 \end_layout
11425
11426 \end_inset
11427
11428  or 
11429 \begin_inset Flex Code
11430 status collapsed
11431
11432 \begin_layout Plain Layout
11433 makeidx
11434 \end_layout
11435
11436 \end_inset
11437
11438 ) or a macro (e.
11439 \begin_inset space \thinspace{}
11440 \end_inset
11441
11442 g.
11443 \begin_inset space \space{}
11444 \end_inset
11445
11446
11447 \begin_inset Flex Code
11448 status collapsed
11449
11450 \begin_layout Plain Layout
11451 url
11452 \end_layout
11453
11454 \end_inset
11455
11456  or 
11457 \begin_inset Flex Code
11458 status collapsed
11459
11460 \begin_layout Plain Layout
11461 boldsymbol
11462 \end_layout
11463
11464 \end_inset
11465
11466 ).
11467  See 
11468 \begin_inset CommandInset ref
11469 LatexCommand ref
11470 reference "chap:List-of-functions"
11471
11472 \end_inset
11473
11474  for the list of features.
11475 \end_layout
11476
11477 \begin_layout Description
11478 \begin_inset Flex Code
11479 status collapsed
11480
11481 \begin_layout Plain Layout
11482 ProvidesModule
11483 \end_layout
11484
11485 \end_inset
11486
11487  [
11488 \begin_inset Flex Code
11489 status collapsed
11490
11491 \begin_layout Plain Layout
11492 string
11493 \end_layout
11494
11495 \end_inset
11496
11497 ] Indicates that this layout provides the functionality of the module mentioned,
11498  which should be specified by the filename without the 
11499 \begin_inset Flex Code
11500 status collapsed
11501
11502 \begin_layout Plain Layout
11503 .module
11504 \end_layout
11505
11506 \end_inset
11507
11508  extension.
11509  This will typically be used if the layout includes the module directly,
11510  rather than using the 
11511 \begin_inset Flex Code
11512 status collapsed
11513
11514 \begin_layout Plain Layout
11515 DefaultModule
11516 \end_layout
11517
11518 \end_inset
11519
11520  tag to indicate that it ought to be used.
11521  It could also be used in a module that provided an alternate implementation
11522  of the same functionality.
11523 \end_layout
11524
11525 \begin_layout Description
11526 \begin_inset Flex Code
11527 status collapsed
11528
11529 \begin_layout Plain Layout
11530 ProvideStyle
11531 \end_layout
11532
11533 \end_inset
11534
11535  [
11536 \begin_inset Flex Code
11537 status collapsed
11538
11539 \begin_layout Plain Layout
11540 <style>
11541 \end_layout
11542
11543 \end_inset
11544
11545 ] Creates a new paragraph style if it does not already exist.
11546  If the style does exist, this section is ignored.
11547  Must end with 
11548 \begin_inset Quotes eld
11549 \end_inset
11550
11551
11552 \begin_inset Flex Code
11553 status collapsed
11554
11555 \begin_layout Plain Layout
11556 End
11557 \end_layout
11558
11559 \end_inset
11560
11561
11562 \begin_inset Quotes erd
11563 \end_inset
11564
11565 .
11566 \end_layout
11567
11568 \begin_layout Description
11569 \begin_inset Flex Code
11570 status collapsed
11571
11572 \begin_layout Plain Layout
11573 Requires
11574 \end_layout
11575
11576 \end_inset
11577
11578  [
11579 \begin_inset Flex Code
11580 status collapsed
11581
11582 \begin_layout Plain Layout
11583 string
11584 \end_layout
11585
11586 \end_inset
11587
11588 ] Whether the class requires the feature 
11589 \begin_inset Flex Code
11590 status collapsed
11591
11592 \begin_layout Plain Layout
11593 string
11594 \end_layout
11595
11596 \end_inset
11597
11598 .
11599  Multiple features must be separated by commas.
11600  Note that you can only request supported features.
11601  (See 
11602 \begin_inset CommandInset ref
11603 LatexCommand ref
11604 reference "chap:List-of-functions"
11605
11606 \end_inset
11607
11608  for the list of features.).
11609  If you require a package with specific options, you can additionally use
11610  
11611 \begin_inset Flex Code
11612 status collapsed
11613
11614 \begin_layout Plain Layout
11615 PackageOptions
11616 \end_layout
11617
11618 \end_inset
11619
11620 .
11621 \end_layout
11622
11623 \begin_layout Description
11624 \begin_inset Flex Code
11625 status collapsed
11626
11627 \begin_layout Plain Layout
11628 RightMargin
11629 \end_layout
11630
11631 \end_inset
11632
11633  [
11634 \begin_inset Flex Code
11635 status collapsed
11636
11637 \begin_layout Plain Layout
11638 string
11639 \end_layout
11640
11641 \end_inset
11642
11643 ] A string that indicates the width of the right margin on the screen, for
11644  example, 
11645 \begin_inset Quotes eld
11646 \end_inset
11647
11648
11649 \begin_inset Flex Code
11650 status collapsed
11651
11652 \begin_layout Plain Layout
11653 MMMMM
11654 \end_layout
11655
11656 \end_inset
11657
11658
11659 \begin_inset Quotes erd
11660 \end_inset
11661
11662 .
11663 \end_layout
11664
11665 \begin_layout Description
11666 \begin_inset Flex Code
11667 status collapsed
11668
11669 \begin_layout Plain Layout
11670 SecNumDepth
11671 \end_layout
11672
11673 \end_inset
11674
11675  [
11676 \begin_inset Flex Code
11677 status collapsed
11678
11679 \begin_layout Plain Layout
11680 int=3
11681 \end_layout
11682
11683 \end_inset
11684
11685 ] Sets which divisions get numbered.
11686  Corresponds to the
11687 \begin_inset Newline newline
11688 \end_inset
11689
11690
11691 \begin_inset Flex Code
11692 status collapsed
11693
11694 \begin_layout Plain Layout
11695 secnumdepth
11696 \end_layout
11697
11698 \end_inset
11699
11700  counter in \SpecialChar LaTeX
11701 .
11702 \end_layout
11703
11704 \begin_layout Description
11705 \begin_inset Flex Code
11706 status collapsed
11707
11708 \begin_layout Plain Layout
11709 Sides
11710 \end_layout
11711
11712 \end_inset
11713
11714  [
11715 \begin_inset Flex Code
11716 status collapsed
11717
11718 \begin_layout Plain Layout
11719
11720 \emph on
11721 1
11722 \end_layout
11723
11724 \end_inset
11725
11726 ,
11727 \begin_inset space \thinspace{}
11728 \end_inset
11729
11730
11731 \begin_inset Flex Code
11732 status collapsed
11733
11734 \begin_layout Plain Layout
11735 2
11736 \end_layout
11737
11738 \end_inset
11739
11740 ] Whether the class-default should be printing on one or both sides of the
11741  paper.
11742  Can be changed in the 
11743 \begin_inset Flex Noun
11744 status collapsed
11745
11746 \begin_layout Plain Layout
11747 Document\SpecialChar menuseparator
11748 Settings
11749 \end_layout
11750
11751 \end_inset
11752
11753  dialog.
11754 \end_layout
11755
11756 \begin_layout Description
11757 \begin_inset Flex Code
11758 status collapsed
11759
11760 \begin_layout Plain Layout
11761 Style
11762 \end_layout
11763
11764 \end_inset
11765
11766  [
11767 \begin_inset Flex Code
11768 status collapsed
11769
11770 \begin_layout Plain Layout
11771 <name>
11772 \end_layout
11773
11774 \end_inset
11775
11776 ] This sequence defines a paragraph style.
11777  If the style does not yet exist, it is created; if it does exist, its parameter
11778 s are modified.
11779  Must end with 
11780 \begin_inset Quotes eld
11781 \end_inset
11782
11783
11784 \begin_inset Flex Code
11785 status collapsed
11786
11787 \begin_layout Plain Layout
11788 End
11789 \end_layout
11790
11791 \end_inset
11792
11793
11794 \begin_inset Quotes erd
11795 \end_inset
11796
11797 .
11798 \begin_inset Newline newline
11799 \end_inset
11800
11801 See 
11802 \begin_inset CommandInset ref
11803 LatexCommand ref
11804 reference "subsec:Paragraph-Styles"
11805
11806 \end_inset
11807
11808  for details on paragraph styles.
11809 \change_inserted -712698321 1553617804
11810
11811 \end_layout
11812
11813 \begin_layout Description
11814
11815 \change_inserted -712698321 1553617862
11816 \begin_inset Flex Code
11817 status collapsed
11818
11819 \begin_layout Plain Layout
11820
11821 \change_inserted -712698321 1553617809
11822 TableStyle
11823 \change_unchanged
11824
11825 \end_layout
11826
11827 \end_inset
11828
11829  [
11830 \begin_inset Flex Code
11831 status collapsed
11832
11833 \begin_layout Plain Layout
11834
11835 \change_inserted -712698321 1553617805
11836 <name>
11837 \change_unchanged
11838
11839 \end_layout
11840
11841 \end_inset
11842
11843 ] defines the default table style that is used when inserting a table.
11844  The following styles are available:
11845 \end_layout
11846
11847 \begin_deeper
11848 \begin_layout Itemize
11849
11850 \change_inserted -712698321 1554308039
11851 \begin_inset Flex Code
11852 status collapsed
11853
11854 \begin_layout Plain Layout
11855
11856 \change_inserted -712698321 1554307928
11857 Formal_with_Footline
11858 \change_unchanged
11859
11860 \end_layout
11861
11862 \end_inset
11863
11864 : formal (
11865 \begin_inset Quotes eld
11866 \end_inset
11867
11868 booktabs
11869 \begin_inset Quotes erd
11870 \end_inset
11871
11872 ) style with horizontal lines only, using a bold top and bottom line, the
11873  first and last row are additionally separated from the table body with
11874  a thin middle line.
11875 \end_layout
11876
11877 \begin_layout Itemize
11878
11879 \change_inserted -712698321 1554308087
11880 \begin_inset Flex Code
11881 status collapsed
11882
11883 \begin_layout Plain Layout
11884
11885 \change_inserted -712698321 1554308042
11886 Formal_without_Footline
11887 \change_unchanged
11888
11889 \end_layout
11890
11891 \end_inset
11892
11893 : same as the above, but the last row is not separated with a middle line
11894  from the body.
11895 \end_layout
11896
11897 \begin_layout Itemize
11898
11899 \change_inserted -712698321 1553618031
11900 \begin_inset Flex Code
11901 status collapsed
11902
11903 \begin_layout Plain Layout
11904
11905 \change_inserted -712698321 1553618006
11906 Simple_Grid
11907 \change_unchanged
11908
11909 \end_layout
11910
11911 \end_inset
11912
11913 : Simple table lines.
11914 \end_layout
11915
11916 \begin_layout Itemize
11917
11918 \change_inserted -712698321 1553618309
11919 \begin_inset Flex Code
11920 status collapsed
11921
11922 \begin_layout Plain Layout
11923
11924 \change_inserted -712698321 1553618031
11925 Grid_with_Head
11926 \change_unchanged
11927
11928 \end_layout
11929
11930 \end_inset
11931
11932 : Like 
11933 \begin_inset Flex Code
11934 status collapsed
11935
11936 \begin_layout Plain Layout
11937
11938 \change_inserted -712698321 1553618043
11939 Simple_Grid
11940 \change_unchanged
11941
11942 \end_layout
11943
11944 \end_inset
11945
11946 , but with the header 
11947 \change_deleted 34634807 1619712593
11948 column
11949 \change_inserted 34634807 1619712594
11950 row
11951 \change_inserted -712698321 1553618309
11952  offset with a second horizontal line.
11953  This is also the default style of \SpecialChar LyX
11954 .
11955 \end_layout
11956
11957 \begin_layout Itemize
11958
11959 \change_inserted -712698321 1553618280
11960 \begin_inset Flex Code
11961 status collapsed
11962
11963 \begin_layout Plain Layout
11964
11965 \change_inserted -712698321 1553618261
11966 No_Borders
11967 \change_unchanged
11968
11969 \end_layout
11970
11971 \end_inset
11972
11973 : Table without lines.
11974 \change_unchanged
11975
11976 \end_layout
11977
11978 \end_deeper
11979 \begin_layout Description
11980 \begin_inset Flex Code
11981 status collapsed
11982
11983 \begin_layout Plain Layout
11984 TitleLatexName
11985 \end_layout
11986
11987 \end_inset
11988
11989  [
11990 \begin_inset Flex Code
11991 status collapsed
11992
11993 \begin_layout Plain Layout
11994 string="maketitle"
11995 \end_layout
11996
11997 \end_inset
11998
11999 ] The name of the command or environment to be used with 
12000 \begin_inset Flex Code
12001 status collapsed
12002
12003 \begin_layout Plain Layout
12004 TitleLatexType
12005 \end_layout
12006
12007 \end_inset
12008
12009 .
12010 \end_layout
12011
12012 \begin_layout Description
12013 \begin_inset Flex Code
12014 status collapsed
12015
12016 \begin_layout Plain Layout
12017 TitleLatexType
12018 \end_layout
12019
12020 \end_inset
12021
12022  [
12023 \begin_inset Flex Code
12024 status collapsed
12025
12026 \begin_layout Plain Layout
12027
12028 \emph on
12029 CommandAfter
12030 \end_layout
12031
12032 \end_inset
12033
12034
12035 \begin_inset Flex Code
12036 status collapsed
12037
12038 \begin_layout Plain Layout
12039 Environment
12040 \end_layout
12041
12042 \end_inset
12043
12044 ] Indicates what kind of markup is used to define the title of a document.
12045  
12046 \begin_inset Flex Code
12047 status collapsed
12048
12049 \begin_layout Plain Layout
12050 CommandAfter
12051 \end_layout
12052
12053 \end_inset
12054
12055  means that the macro with name 
12056 \begin_inset Flex Code
12057 status collapsed
12058
12059 \begin_layout Plain Layout
12060 TitleLatexName
12061 \end_layout
12062
12063 \end_inset
12064
12065  will be inserted after the last layout which has 
12066 \begin_inset Quotes eld
12067 \end_inset
12068
12069
12070 \begin_inset Flex Code
12071 status collapsed
12072
12073 \begin_layout Plain Layout
12074 InTitle
12075 \begin_inset space ~
12076 \end_inset
12077
12078 1
12079 \end_layout
12080
12081 \end_inset
12082
12083
12084 \begin_inset Quotes erd
12085 \end_inset
12086
12087 .
12088  
12089 \begin_inset Flex Code
12090 status collapsed
12091
12092 \begin_layout Plain Layout
12093 Environment
12094 \end_layout
12095
12096 \end_inset
12097
12098  corresponds to the case where all layouts which have 
12099 \begin_inset Quotes eld
12100 \end_inset
12101
12102
12103 \begin_inset Flex Code
12104 status collapsed
12105
12106 \begin_layout Plain Layout
12107 InTitle
12108 \begin_inset space ~
12109 \end_inset
12110
12111 1
12112 \end_layout
12113
12114 \end_inset
12115
12116
12117 \begin_inset Quotes erd
12118 \end_inset
12119
12120  should be enclosed into the 
12121 \begin_inset Flex Code
12122 status collapsed
12123
12124 \begin_layout Plain Layout
12125 TitleLatexName
12126 \end_layout
12127
12128 \end_inset
12129
12130  environment.
12131 \end_layout
12132
12133 \begin_layout Description
12134 \begin_inset Flex Code
12135 status collapsed
12136
12137 \begin_layout Plain Layout
12138 TocDepth
12139 \end_layout
12140
12141 \end_inset
12142
12143  [
12144 \begin_inset Flex Code
12145 status collapsed
12146
12147 \begin_layout Plain Layout
12148 int=3
12149 \end_layout
12150
12151 \end_inset
12152
12153 ] Sets which divisions are included in the table of contents.
12154  Corresponds to the 
12155 \begin_inset Flex Code
12156 status collapsed
12157
12158 \begin_layout Plain Layout
12159 tocdepth
12160 \end_layout
12161
12162 \end_inset
12163
12164  counter in \SpecialChar LaTeX
12165 .
12166 \end_layout
12167
12168 \begin_layout Subsection
12169 \begin_inset Flex Code
12170 status collapsed
12171
12172 \begin_layout Plain Layout
12173 ClassOptions
12174 \end_layout
12175
12176 \end_inset
12177
12178  section
12179 \begin_inset CommandInset label
12180 LatexCommand label
12181 name "subsec:ClassOptions"
12182
12183 \end_inset
12184
12185
12186 \end_layout
12187
12188 \begin_layout Standard
12189 The 
12190 \begin_inset Flex Code
12191 status collapsed
12192
12193 \begin_layout Plain Layout
12194 ClassOptions
12195 \end_layout
12196
12197 \end_inset
12198
12199  section can contain the following entries:
12200 \end_layout
12201
12202 \begin_layout Description
12203 \begin_inset Flex Code
12204 status collapsed
12205
12206 \begin_layout Plain Layout
12207 FontSize
12208 \end_layout
12209
12210 \end_inset
12211
12212  [
12213 \begin_inset Flex Code
12214 status collapsed
12215
12216 \begin_layout Plain Layout
12217 string="10|11|12"
12218 \end_layout
12219
12220 \end_inset
12221
12222 ] The list of available font sizes for the document's main font, separated
12223  by 
12224 \begin_inset Quotes eld
12225 \end_inset
12226
12227
12228 \begin_inset Flex Code
12229 status collapsed
12230
12231 \begin_layout Plain Layout
12232 |
12233 \end_layout
12234
12235 \end_inset
12236
12237
12238 \begin_inset Quotes erd
12239 \end_inset
12240
12241 .
12242
12243 \change_inserted -712698321 1565110196
12244  Any number is possible.
12245 \end_layout
12246
12247 \begin_layout Description
12248
12249 \change_inserted -712698321 1565110259
12250 \begin_inset Flex Code
12251 status collapsed
12252
12253 \begin_layout Plain Layout
12254
12255 \change_inserted -712698321 1565110199
12256 FontSizeFormat
12257 \change_unchanged
12258
12259 \end_layout
12260
12261 \end_inset
12262
12263  [
12264 \begin_inset Flex Code
12265 status collapsed
12266
12267 \begin_layout Plain Layout
12268
12269 \change_inserted -712698321 1565110196
12270 string
12271 \change_unchanged
12272
12273 \end_layout
12274
12275 \end_inset
12276
12277 ] The format for the font size option.
12278  Default: 
12279 \begin_inset Flex Code
12280 status collapsed
12281
12282 \begin_layout Plain Layout
12283
12284 \change_inserted -712698321 1565110238
12285 $$spt
12286 \change_unchanged
12287
12288 \end_layout
12289
12290 \end_inset
12291
12292 .
12293  
12294 \begin_inset Flex Code
12295 status collapsed
12296
12297 \begin_layout Plain Layout
12298
12299 \change_inserted -712698321 1565110248
12300 $$s
12301 \change_unchanged
12302
12303 \end_layout
12304
12305 \end_inset
12306
12307  is a placeholder for the font size.
12308 \change_unchanged
12309
12310 \end_layout
12311
12312 \begin_layout Description
12313
12314 \change_deleted 5863208 1594239483
12315 \begin_inset Flex Code
12316 status collapsed
12317
12318 \begin_layout Plain Layout
12319 Header
12320 \end_layout
12321
12322 \end_inset
12323
12324  Used to set the DTD line with XML-based output classes.
12325  E.
12326 \begin_inset space \thinspace{}
12327 \end_inset
12328
12329 g.: PUBLIC 
12330 \begin_inset Quotes eld
12331 \end_inset
12332
12333 -//OASIS//DTD DocBook V4.2//EN
12334 \begin_inset Quotes erd
12335 \end_inset
12336
12337 .
12338 \change_inserted -712698321 1565101761
12339
12340 \end_layout
12341
12342 \begin_layout Description
12343
12344 \change_inserted -712698321 1565180598
12345 \begin_inset Flex Code
12346 status collapsed
12347
12348 \begin_layout Plain Layout
12349
12350 \change_inserted -712698321 1565101918
12351 PageSize
12352 \change_unchanged
12353
12354 \end_layout
12355
12356 \end_inset
12357
12358  [
12359 \begin_inset Flex Code
12360 status collapsed
12361
12362 \begin_layout Plain Layout
12363
12364 \change_inserted -712698321 1565105399
12365 string="letter|\SpecialChar allowbreak
12366 legal|\SpecialChar allowbreak
12367 executive|\SpecialChar allowbreak
12368 a0|\SpecialChar allowbreak
12369 a1|\SpecialChar allowbreak
12370 a2|\SpecialChar allowbreak
12371 a3|\SpecialChar allowbreak
12372 a4|\SpecialChar allowbreak
12373 a5|\SpecialChar allowbreak
12374 a6|\SpecialChar allowbreak
12375 b0|\SpecialChar allowbreak
12376 b1|\SpecialChar allowbreak
12377 b2|\SpecialChar allowbreak
12378 b3|\SpecialChar allowbreak
12379 b4|\SpecialChar allowbreak
12380 b5|\SpecialChar allowbreak
12381 b6|\SpecialChar allowbreak
12382 c0|\SpecialChar allowbreak
12383 c1|\SpecialChar allowbreak
12384 c
12385 2|\SpecialChar allowbreak
12386 c3|\SpecialChar allowbreak
12387 c4|\SpecialChar allowbreak
12388 c5|\SpecialChar allowbreak
12389 c6|\SpecialChar allowbreak
12390 b0j|\SpecialChar allowbreak
12391 b1j|\SpecialChar allowbreak
12392 b2j|\SpecialChar allowbreak
12393 b3j|\SpecialChar allowbreak
12394 b4j|\SpecialChar allowbreak
12395 b5j|\SpecialChar allowbreak
12396 b6j"
12397 \change_unchanged
12398
12399 \end_layout
12400
12401 \end_inset
12402
12403 ] The list of available page sizes, separated by 
12404 \begin_inset Quotes eld
12405 \end_inset
12406
12407
12408 \begin_inset Flex Code
12409 status collapsed
12410
12411 \begin_layout Plain Layout
12412
12413 \change_inserted -712698321 1565101779
12414 |
12415 \change_unchanged
12416
12417 \end_layout
12418
12419 \end_inset
12420
12421
12422 \begin_inset Quotes erd
12423 \end_inset
12424
12425 .
12426  Currently, only the listed sizes are supported.
12427  Other sizes might be entered as custom class option.
12428 \end_layout
12429
12430 \begin_layout Description
12431
12432 \change_inserted -712698321 1565180623
12433 \begin_inset Flex Code
12434 status collapsed
12435
12436 \begin_layout Plain Layout
12437
12438 \change_inserted -712698321 1565180605
12439 PageSizeFormat
12440 \change_unchanged
12441
12442 \end_layout
12443
12444 \end_inset
12445
12446  [
12447 \begin_inset Flex Code
12448 status collapsed
12449
12450 \begin_layout Plain Layout
12451
12452 \change_inserted -712698321 1565180601
12453 string
12454 \change_unchanged
12455
12456 \end_layout
12457
12458 \end_inset
12459
12460 ] The format for the page size option.
12461  Default: 
12462 \begin_inset Flex Code
12463 status collapsed
12464
12465 \begin_layout Plain Layout
12466
12467 \change_inserted -712698321 1565180618
12468 $$spaper
12469 \change_unchanged
12470
12471 \end_layout
12472
12473 \end_inset
12474
12475 .
12476  
12477 \begin_inset Flex Code
12478 status collapsed
12479
12480 \begin_layout Plain Layout
12481
12482 \change_inserted -712698321 1565180601
12483 $$s
12484 \change_unchanged
12485
12486 \end_layout
12487
12488 \end_inset
12489
12490  is a placeholder for the paper size.
12491 \change_unchanged
12492
12493 \end_layout
12494
12495 \begin_layout Description
12496 \begin_inset Flex Code
12497 status collapsed
12498
12499 \begin_layout Plain Layout
12500 PageStyle
12501 \end_layout
12502
12503 \end_inset
12504
12505  [
12506 \begin_inset Flex Code
12507 status collapsed
12508
12509 \begin_layout Plain Layout
12510 string="empty|plain|headings|fancy"
12511 \end_layout
12512
12513 \end_inset
12514
12515 ] The list of available page sty\SpecialChar softhyphen
12516 les, separated by 
12517 \begin_inset Quotes eld
12518 \end_inset
12519
12520
12521 \begin_inset Flex Code
12522 status collapsed
12523
12524 \begin_layout Plain Layout
12525 |
12526 \end_layout
12527
12528 \end_inset
12529
12530
12531 \begin_inset Quotes erd
12532 \end_inset
12533
12534 .
12535 \end_layout
12536
12537 \begin_layout Description
12538 \begin_inset Flex Code
12539 status collapsed
12540
12541 \begin_layout Plain Layout
12542 Other
12543 \end_layout
12544
12545 \end_inset
12546
12547  [
12548 \begin_inset Flex Code
12549 status collapsed
12550
12551 \begin_layout Plain Layout
12552 string=""
12553 \end_layout
12554
12555 \end_inset
12556
12557 ] Some document class options, separated by a comma, that will be added
12558  to the optional part of the 
12559 \begin_inset Flex Code
12560 status collapsed
12561
12562 \begin_layout Plain Layout
12563
12564 \backslash
12565 documentclass
12566 \end_layout
12567
12568 \end_inset
12569
12570  command.
12571 \end_layout
12572
12573 \begin_layout Standard
12574 The 
12575 \begin_inset Flex Code
12576 status collapsed
12577
12578 \begin_layout Plain Layout
12579 ClassOptions
12580 \end_layout
12581
12582 \end_inset
12583
12584  section must end with 
12585 \begin_inset Quotes eld
12586 \end_inset
12587
12588
12589 \begin_inset Flex Code
12590 status collapsed
12591
12592 \begin_layout Plain Layout
12593 End
12594 \end_layout
12595
12596 \end_inset
12597
12598
12599 \begin_inset Quotes erd
12600 \end_inset
12601
12602 .
12603 \end_layout
12604
12605 \begin_layout Subsection
12606 Paragraph styles
12607 \begin_inset CommandInset label
12608 LatexCommand label
12609 name "subsec:Paragraph-Styles"
12610
12611 \end_inset
12612
12613
12614 \end_layout
12615
12616 \begin_layout Standard
12617 A paragraph style description looks like this:
12618 \begin_inset Foot
12619 status collapsed
12620
12621 \begin_layout Plain Layout
12622 Note that this will either define a new style or modify an existing one.
12623 \end_layout
12624
12625 \end_inset
12626
12627
12628 \end_layout
12629
12630 \begin_layout LyX-Code
12631 Style 
12632 \family roman
12633 \emph on
12634 name
12635 \end_layout
12636
12637 \begin_layout LyX-Code
12638  ...
12639 \end_layout
12640
12641 \begin_layout LyX-Code
12642 End
12643 \end_layout
12644
12645 \begin_layout Standard
12646 where the following commands are allowed:
12647 \end_layout
12648
12649 \begin_layout Description
12650 \begin_inset Flex Code
12651 status collapsed
12652
12653 \begin_layout Plain Layout
12654 AddToToc
12655 \end_layout
12656
12657 \end_inset
12658
12659  [
12660 \begin_inset Flex Code
12661 status collapsed
12662
12663 \begin_layout Plain Layout
12664 string
12665 \end_layout
12666
12667 \end_inset
12668
12669 =""] This paragraph will appear in the table of contents of the given type.
12670  An empty string disables.
12671  See also the OutlinerName and the IsTocCaption commands.
12672  Default: disabled.
12673 \end_layout
12674
12675 \begin_layout Description
12676 \begin_inset Flex Code
12677 status collapsed
12678
12679 \begin_layout Plain Layout
12680 Align
12681 \end_layout
12682
12683 \end_inset
12684
12685  [
12686 \begin_inset Flex Code
12687 status collapsed
12688
12689 \begin_layout Plain Layout
12690
12691 \emph on
12692 block
12693 \emph default
12694 , left, right, center
12695 \end_layout
12696
12697 \end_inset
12698
12699 ] Paragraph alignment.
12700 \end_layout
12701
12702 \begin_layout Description
12703 \begin_inset Flex Code
12704 status collapsed
12705
12706 \begin_layout Plain Layout
12707 AlignPossible
12708 \end_layout
12709
12710 \end_inset
12711
12712  [
12713 \begin_inset Flex Code
12714 status collapsed
12715
12716 \begin_layout Plain Layout
12717
12718 \emph on
12719 block
12720 \emph default
12721 , left, right, center
12722 \end_layout
12723
12724 \end_inset
12725
12726 ] A comma separated list of permitted alignments.
12727  (Some \SpecialChar LaTeX
12728  styles prohibit certain alignments, since those wouldn't make sense.
12729  For example a right-aligned or centered enumeration isn't possible.)
12730 \end_layout
12731
12732 \begin_layout Description
12733 \begin_inset Flex Code
12734 status collapsed
12735
12736 \begin_layout Plain Layout
12737 Argument
12738 \end_layout
12739
12740 \end_inset
12741
12742  [
12743 \begin_inset Flex Code
12744 status collapsed
12745
12746 \begin_layout Plain Layout
12747 int
12748 \end_layout
12749
12750 \end_inset
12751
12752 ] Defines argument number <int> of a command\SpecialChar breakableslash
12753 environment associated with
12754  the current style.
12755
12756 \change_inserted -584632292 1615846868
12757  The definition must end with 
12758 \begin_inset Flex Code
12759 status collapsed
12760
12761 \begin_layout Plain Layout
12762
12763 \change_inserted -584632292 1615846867
12764 EndArgument
12765 \change_unchanged
12766
12767 \end_layout
12768
12769 \end_inset
12770
12771 .
12772
12773 \change_unchanged
12774  
12775 \change_inserted -584632292 1615846880
12776 See 
12777 \begin_inset CommandInset ref
12778 LatexCommand ref
12779 reference "subsec:Arguments"
12780 plural "false"
12781 caps "false"
12782 noprefix "false"
12783
12784 \end_inset
12785
12786  for more information.
12787  
12788 \change_deleted -584632292 1615846694
12789 This is useful for things like section headings, and only makes sense with
12790  \SpecialChar LaTeX
12791 .
12792  Every (optional or required) argument of a command or environment – except
12793  for the required argument that is associated with the content of the paragraph
12794  itself – has a separate definition, where the number specifies the order
12795  of the arguments.
12796  The definition must end with 
12797 \begin_inset Flex Code
12798 status collapsed
12799
12800 \begin_layout Plain Layout
12801 EndArgument
12802 \end_layout
12803
12804 \end_inset
12805
12806 .
12807  So a command with two optional arguments has:
12808 \end_layout
12809
12810 \begin_deeper
12811 \begin_layout Quote
12812
12813 \change_deleted -584632292 1615846694
12814
12815 \family typewriter
12816 Argument 1
12817 \end_layout
12818
12819 \begin_layout Quote
12820
12821 \change_deleted -584632292 1615846694
12822
12823 \family typewriter
12824 ...
12825 \end_layout
12826
12827 \begin_layout Quote
12828
12829 \change_deleted -584632292 1615846694
12830
12831 \family typewriter
12832 EndArgument
12833 \end_layout
12834
12835 \begin_layout Quote
12836
12837 \change_deleted -584632292 1615846694
12838
12839 \family typewriter
12840 Argument 2
12841 \end_layout
12842
12843 \begin_layout Quote
12844
12845 \change_deleted -584632292 1615846694
12846
12847 \family typewriter
12848 ...
12849 \end_layout
12850
12851 \begin_layout Quote
12852
12853 \change_deleted -584632292 1615846694
12854
12855 \family typewriter
12856 EndArgument
12857 \end_layout
12858
12859 \begin_layout Standard
12860
12861 \change_deleted -584632292 1615846694
12862 Inside the 
12863 \begin_inset Flex Code
12864 status collapsed
12865
12866 \begin_layout Plain Layout
12867 Argument
12868 \end_layout
12869
12870 \end_inset
12871
12872  definition, the following specifications are possible:
12873 \end_layout
12874
12875 \begin_layout Itemize
12876
12877 \change_deleted -584632292 1615846694
12878 \begin_inset Flex Code
12879 status collapsed
12880
12881 \begin_layout Plain Layout
12882 LabelString
12883 \end_layout
12884
12885 \end_inset
12886
12887  
12888 \begin_inset Flex Code
12889 status collapsed
12890
12891 \begin_layout Plain Layout
12892 [string]
12893 \end_layout
12894
12895 \end_inset
12896
12897  The string that will appear both in the menu (to insert this argument)
12898  and on the argument inset button (unless you also specify a separate 
12899 \begin_inset Flex Code
12900 status collapsed
12901
12902 \begin_layout Plain Layout
12903 MenuString
12904 \end_layout
12905
12906 \end_inset
12907
12908 ).
12909  For the menu, you can define an accelerator by appending the respective
12910  character to the string, divided by 
12911 \begin_inset Quotes eld
12912 \end_inset
12913
12914 |
12915 \begin_inset Quotes erd
12916 \end_inset
12917
12918  (e.
12919 \begin_inset space \thinspace{}
12920 \end_inset
12921
12922 g.
12923 \begin_inset space \space{}
12924 \end_inset
12925
12926
12927 \begin_inset Quotes eld
12928 \end_inset
12929
12930
12931 \begin_inset Flex Code
12932 status collapsed
12933
12934 \begin_layout Plain Layout
12935 Short Title|S
12936 \end_layout
12937
12938 \end_inset
12939
12940
12941 \begin_inset Quotes erd
12942 \end_inset
12943
12944 ).
12945 \end_layout
12946
12947 \begin_layout Itemize
12948
12949 \change_deleted -584632292 1615846694
12950 \begin_inset Flex Code
12951 status collapsed
12952
12953 \begin_layout Plain Layout
12954 MenuString
12955 \end_layout
12956
12957 \end_inset
12958
12959  
12960 \begin_inset Flex Code
12961 status collapsed
12962
12963 \begin_layout Plain Layout
12964 [string]
12965 \end_layout
12966
12967 \end_inset
12968
12969  A separate string for the menu.
12970  You can define an accelerator by appending the respective character to
12971  the string, divided by 
12972 \begin_inset Quotes eld
12973 \end_inset
12974
12975 |
12976 \begin_inset Quotes erd
12977 \end_inset
12978
12979  (e.
12980 \begin_inset space \thinspace{}
12981 \end_inset
12982
12983 g.
12984 \begin_inset space \space{}
12985 \end_inset
12986
12987
12988 \begin_inset Quotes eld
12989 \end_inset
12990
12991
12992 \begin_inset Flex Code
12993 status collapsed
12994
12995 \begin_layout Plain Layout
12996 Short Title|S
12997 \end_layout
12998
12999 \end_inset
13000
13001
13002 \begin_inset Quotes erd
13003 \end_inset
13004
13005 ).
13006  This specification is optional.
13007  If it is not given the 
13008 \begin_inset Flex Code
13009 status collapsed
13010
13011 \begin_layout Plain Layout
13012 LabelString
13013 \end_layout
13014
13015 \end_inset
13016
13017  will be used instead for the menu.
13018 \end_layout
13019
13020 \begin_layout Itemize
13021
13022 \change_deleted -584632292 1615846694
13023 \begin_inset Flex Code
13024 status collapsed
13025
13026 \begin_layout Plain Layout
13027 Tooltip
13028 \end_layout
13029
13030 \end_inset
13031
13032  
13033 \begin_inset Flex Code
13034 status collapsed
13035
13036 \begin_layout Plain Layout
13037 [string]
13038 \end_layout
13039
13040 \end_inset
13041
13042  A longer explanatory text that appears in the tooltip when hovering over
13043  the argument inset.
13044 \end_layout
13045
13046 \begin_layout Itemize
13047
13048 \change_deleted -584632292 1615846694
13049 \begin_inset Flex Code
13050 status collapsed
13051
13052 \begin_layout Plain Layout
13053 Mandatory
13054 \end_layout
13055
13056 \end_inset
13057
13058  [
13059 \begin_inset Flex Code
13060 status collapsed
13061
13062 \begin_layout Plain Layout
13063
13064 \emph on
13065 0
13066 \end_layout
13067
13068 \end_inset
13069
13070 ,
13071 \begin_inset space \thinspace{}
13072 \end_inset
13073
13074
13075 \begin_inset Flex Code
13076 status collapsed
13077
13078 \begin_layout Plain Layout
13079 1
13080 \end_layout
13081
13082 \end_inset
13083
13084 ] Declare if this is a mandatory (1) or an optional (0) argument.
13085  Mandatory arguments will be output empty if not given, while optional arguments
13086  will not be output at all.
13087  By default, mandatory arguments are delimited by 
13088 \begin_inset Flex Code
13089 status collapsed
13090
13091 \begin_layout Plain Layout
13092 {...}
13093 \end_layout
13094
13095 \end_inset
13096
13097 , while optional arguments are delimited by 
13098 \begin_inset Flex Code
13099 status collapsed
13100
13101 \begin_layout Plain Layout
13102 [...]
13103 \end_layout
13104
13105 \end_inset
13106
13107
13108 \end_layout
13109
13110 \begin_layout Itemize
13111
13112 \change_deleted -584632292 1615846694
13113 \begin_inset Flex Code
13114 status collapsed
13115
13116 \begin_layout Plain Layout
13117
13118 \change_inserted -712698321 1555579780
13119 NewlineCmd
13120 \change_unchanged
13121
13122 \end_layout
13123
13124 \end_inset
13125
13126  
13127 \begin_inset Flex Code
13128 status collapsed
13129
13130 \begin_layout Plain Layout
13131
13132 \change_inserted -712698321 1555579780
13133 [string]
13134 \change_unchanged
13135
13136 \end_layout
13137
13138 \end_inset
13139
13140  Option to define a different command (from the default 
13141 \begin_inset Flex Code
13142 status collapsed
13143
13144 \begin_layout Plain Layout
13145
13146 \change_inserted -712698321 1555579780
13147
13148 \backslash
13149
13150 \backslash
13151
13152 \change_unchanged
13153
13154 \end_layout
13155
13156 \end_inset
13157
13158 ) to be used for line breaks.
13159  The initial backslash must not be specified.
13160 \end_layout
13161
13162 \begin_layout Itemize
13163
13164 \change_deleted -584632292 1615846694
13165 \begin_inset Flex Code
13166 status collapsed
13167
13168 \begin_layout Plain Layout
13169 Requires
13170 \end_layout
13171
13172 \end_inset
13173
13174  
13175 \begin_inset Flex Code
13176 status collapsed
13177
13178 \begin_layout Plain Layout
13179 [int=0]
13180 \end_layout
13181
13182 \end_inset
13183
13184  defines another argument (by its number) which this argument requires to
13185  be output if it is itself output.
13186  E.
13187 \begin_inset space \thinspace{}
13188 \end_inset
13189
13190 g., in \SpecialChar LaTeX
13191  commands, optional arguments often require previous optional arguments
13192  to be output (at least empty), as in 
13193 \begin_inset Flex Code
13194 status collapsed
13195
13196 \begin_layout Plain Layout
13197
13198 \backslash
13199 command[][argument]{text}
13200 \end_layout
13201
13202 \end_inset
13203
13204 .
13205  This can be achieved by the statement 
13206 \begin_inset Flex Code
13207 status collapsed
13208
13209 \begin_layout Plain Layout
13210 Requires 1
13211 \end_layout
13212
13213 \end_inset
13214
13215  within 
13216 \begin_inset Flex Code
13217 status collapsed
13218
13219 \begin_layout Plain Layout
13220 Argument 2
13221 \end_layout
13222
13223 \end_inset
13224
13225 .
13226 \end_layout
13227
13228 \begin_layout Itemize
13229
13230 \change_deleted -584632292 1615846694
13231 \begin_inset Flex Code
13232 status collapsed
13233
13234 \begin_layout Plain Layout
13235 LeftDelim
13236 \end_layout
13237
13238 \end_inset
13239
13240  
13241 \begin_inset Flex Code
13242 status collapsed
13243
13244 \begin_layout Plain Layout
13245 [string]
13246 \end_layout
13247
13248 \end_inset
13249
13250  defines a custom left delimiter (instead of 
13251 \begin_inset Flex Code
13252 status collapsed
13253
13254 \begin_layout Plain Layout
13255 {
13256 \end_layout
13257
13258 \end_inset
13259
13260  or 
13261 \begin_inset Flex Code
13262 status collapsed
13263
13264 \begin_layout Plain Layout
13265 [
13266 \end_layout
13267
13268 \end_inset
13269
13270 ).
13271  A line break in the output can be indicated by 
13272 \begin_inset Flex Code
13273 status collapsed
13274
13275 \begin_layout Plain Layout
13276 <br/>
13277 \end_layout
13278
13279 \end_inset
13280
13281 .
13282 \end_layout
13283
13284 \begin_layout Itemize
13285
13286 \change_deleted -584632292 1615846694
13287 \begin_inset Flex Code
13288 status collapsed
13289
13290 \begin_layout Plain Layout
13291 RightDelim
13292 \end_layout
13293
13294 \end_inset
13295
13296  
13297 \begin_inset Flex Code
13298 status collapsed
13299
13300 \begin_layout Plain Layout
13301 [string]
13302 \end_layout
13303
13304 \end_inset
13305
13306  defines a custom right delimiter (instead of 
13307 \begin_inset Flex Code
13308 status collapsed
13309
13310 \begin_layout Plain Layout
13311 }
13312 \end_layout
13313
13314 \end_inset
13315
13316  or 
13317 \begin_inset Flex Code
13318 status collapsed
13319
13320 \begin_layout Plain Layout
13321 ]
13322 \end_layout
13323
13324 \end_inset
13325
13326 ).
13327  A line break in the output can be indicated by 
13328 \begin_inset Flex Code
13329 status collapsed
13330
13331 \begin_layout Plain Layout
13332 <br/>
13333 \end_layout
13334
13335 \end_inset
13336
13337 .
13338 \end_layout
13339
13340 \begin_layout Itemize
13341
13342 \change_deleted -584632292 1615846694
13343 \begin_inset Flex Code
13344 status collapsed
13345
13346 \begin_layout Plain Layout
13347 DefaultArg
13348 \end_layout
13349
13350 \end_inset
13351
13352  
13353 \begin_inset Flex Code
13354 status collapsed
13355
13356 \begin_layout Plain Layout
13357 [string]
13358 \end_layout
13359
13360 \end_inset
13361
13362  defines an argument that is inserted if and only if no user-specified arguments
13363  were given, i.
13364 \begin_inset space \thinspace{}
13365 \end_inset
13366
13367 e.
13368 \begin_inset space \space{}
13369 \end_inset
13370
13371 if no argument inset has been inserted (note that also an empty argument
13372  inset omits the DefaultArg).
13373  Multiple arguments need to be separated by comma.
13374 \end_layout
13375
13376 \begin_layout Itemize
13377
13378 \change_deleted -584632292 1615846694
13379 \begin_inset Flex Code
13380 status collapsed
13381
13382 \begin_layout Plain Layout
13383 PresetArg
13384 \end_layout
13385
13386 \end_inset
13387
13388  
13389 \begin_inset Flex Code
13390 status collapsed
13391
13392 \begin_layout Plain Layout
13393 [string]
13394 \end_layout
13395
13396 \end_inset
13397
13398  defines an argument that is inserted in any case (alone or in addition
13399  to user-specified arguments).
13400  Multiple arguments need to be separated by comma.
13401 \end_layout
13402
13403 \begin_layout Itemize
13404
13405 \change_deleted -584632292 1615846694
13406 \begin_inset Flex Code
13407 status collapsed
13408
13409 \begin_layout Plain Layout
13410 Font
13411 \end_layout
13412
13413 \end_inset
13414
13415  The font used for the argument content, see 
13416 \begin_inset CommandInset ref
13417 LatexCommand ref
13418 reference "subsec:Font-description"
13419
13420 \end_inset
13421
13422 .
13423 \end_layout
13424
13425 \begin_layout Itemize
13426
13427 \change_deleted -584632292 1615846694
13428 \begin_inset Flex Code
13429 status collapsed
13430
13431 \begin_layout Plain Layout
13432
13433 \change_inserted -712698321 1559484228
13434 FreeSpacing
13435 \change_unchanged
13436
13437 \end_layout
13438
13439 \end_inset
13440
13441  [
13442 \begin_inset Flex Code
13443 status collapsed
13444
13445 \begin_layout Plain Layout
13446
13447 \change_inserted -712698321 1559484228
13448
13449 \emph on
13450 0
13451 \change_unchanged
13452
13453 \end_layout
13454
13455 \end_inset
13456
13457 ,
13458 \begin_inset space \thinspace{}
13459 \end_inset
13460
13461
13462 \begin_inset Flex Code
13463 status collapsed
13464
13465 \begin_layout Plain Layout
13466
13467 \change_inserted -712698321 1559484228
13468 1
13469 \change_unchanged
13470
13471 \end_layout
13472
13473 \end_inset
13474
13475 ] As with paragraph styles, see 
13476 \begin_inset CommandInset ref
13477 LatexCommand ref
13478 reference "subsec:Paragraph-Styles"
13479
13480 \end_inset
13481
13482 .
13483 \end_layout
13484
13485 \begin_layout Itemize
13486
13487 \change_deleted -584632292 1615846694
13488 \begin_inset Flex Code
13489 status collapsed
13490
13491 \begin_layout Plain Layout
13492 LabelFont
13493 \end_layout
13494
13495 \end_inset
13496
13497  The font used for the label; see 
13498 \begin_inset CommandInset ref
13499 LatexCommand ref
13500 reference "subsec:Font-description"
13501
13502 \end_inset
13503
13504 .
13505 \end_layout
13506
13507 \begin_layout Itemize
13508
13509 \change_deleted -584632292 1615846694
13510 \begin_inset Flex Code
13511 status collapsed
13512
13513 \begin_layout Plain Layout
13514 Decoration
13515 \end_layout
13516
13517 \end_inset
13518
13519  [
13520 \begin_inset Flex Code
13521 status collapsed
13522
13523 \begin_layout Plain Layout
13524
13525 \emph on
13526 Classic
13527 \emph default
13528 , Minimalistic, Conglomerate
13529 \end_layout
13530
13531 \end_inset
13532
13533 ] describes the rendering style used for the inset's frame and buttons.
13534 \end_layout
13535
13536 \begin_layout Itemize
13537
13538 \change_deleted -584632292 1615846694
13539 \begin_inset Flex Code
13540 status collapsed
13541
13542 \begin_layout Plain Layout
13543 AutoInsert
13544 \end_layout
13545
13546 \end_inset
13547
13548  
13549 \begin_inset Flex Code
13550 status collapsed
13551
13552 \begin_layout Plain Layout
13553 [int=0]
13554 \end_layout
13555
13556 \end_inset
13557
13558  If this is set to 
13559 \begin_inset Flex Code
13560 status collapsed
13561
13562 \begin_layout Plain Layout
13563 1
13564 \end_layout
13565
13566 \end_inset
13567
13568 , this argument is automatically inserted when the respective style is selected.
13569
13570 \change_deleted -712698321 1559484200
13571  Currently, only one argument per style\SpecialChar breakableslash
13572 layout can be automatically inserted.
13573 \change_deleted -584632292 1615846694
13574
13575 \end_layout
13576
13577 \begin_layout Itemize
13578
13579 \change_deleted -584632292 1615846694
13580 \begin_inset Flex Code
13581 status collapsed
13582
13583 \begin_layout Plain Layout
13584
13585 \change_inserted -712698321 1559490711
13586 InsertOnNewline
13587 \change_unchanged
13588
13589 \end_layout
13590
13591 \end_inset
13592
13593  
13594 \begin_inset Flex Code
13595 status collapsed
13596
13597 \begin_layout Plain Layout
13598
13599 \change_inserted -712698321 1559490703
13600 [int=0]
13601 \change_unchanged
13602
13603 \end_layout
13604
13605 \end_inset
13606
13607  If this is set to 
13608 \begin_inset Flex Code
13609 status collapsed
13610
13611 \begin_layout Plain Layout
13612
13613 \change_inserted -712698321 1559490703
13614 1
13615 \change_unchanged
13616
13617 \end_layout
13618
13619 \end_inset
13620
13621 , this argument will be inserted on a new line with 
13622 \begin_inset Flex Code
13623 status collapsed
13624
13625 \begin_layout Plain Layout
13626
13627 \change_inserted -712698321 1559491402
13628 AutoInsert
13629 \change_unchanged
13630
13631 \end_layout
13632
13633 \end_inset
13634
13635  (only available within Flex insets).
13636 \end_layout
13637
13638 \begin_layout Itemize
13639
13640 \change_deleted -584632292 1615846694
13641 \begin_inset Flex Code
13642 status collapsed
13643
13644 \begin_layout Plain Layout
13645 InsertCotext
13646 \end_layout
13647
13648 \end_inset
13649
13650  
13651 \begin_inset Flex Code
13652 status collapsed
13653
13654 \begin_layout Plain Layout
13655 [int=0]
13656 \end_layout
13657
13658 \end_inset
13659
13660  If this is set to 
13661 \begin_inset Flex Code
13662 status collapsed
13663
13664 \begin_layout Plain Layout
13665 1
13666 \end_layout
13667
13668 \end_inset
13669
13670 , this argument will be inserted with a copy of the co-text (either selected
13671  text or the whole paragraph) as content.
13672 \end_layout
13673
13674 \begin_layout Itemize
13675
13676 \change_deleted -584632292 1615846694
13677 \begin_inset Flex Code
13678 status collapsed
13679
13680 \begin_layout Plain Layout
13681 PassThru
13682 \end_layout
13683
13684 \end_inset
13685
13686  [
13687 \begin_inset Flex Code
13688 status collapsed
13689
13690 \begin_layout Plain Layout
13691
13692 \emph on
13693 inherited
13694 \emph default
13695 , true, false
13696 \end_layout
13697
13698 \end_inset
13699
13700 ] Whether the contents of this argument should be output in raw form, meaning
13701  without special translations that \SpecialChar LaTeX
13702  would require.
13703  By default, the 
13704 \begin_inset Flex Code
13705 status collapsed
13706
13707 \begin_layout Plain Layout
13708 PassThru
13709 \end_layout
13710
13711 \end_inset
13712
13713  status is inherited by the inset or paragraph layout the argument belongs
13714  to, true and false change the status for the given argument only.
13715 \end_layout
13716
13717 \begin_layout Itemize
13718
13719 \change_deleted -584632292 1615846694
13720 \begin_inset Flex Code
13721 status collapsed
13722
13723 \begin_layout Plain Layout
13724 PassThruChars
13725 \end_layout
13726
13727 \end_inset
13728
13729  [
13730 \begin_inset Flex Code
13731 status collapsed
13732
13733 \begin_layout Plain Layout
13734 string of characters
13735 \end_layout
13736
13737 \end_inset
13738
13739 ]
13740 \family typewriter
13741  
13742 \family default
13743 Defines individual characters
13744 \begin_inset Newline linebreak
13745 \end_inset
13746
13747 that should be output in raw form, meaning without special translations
13748  that \SpecialChar LaTeX
13749  would require.
13750  Note that, contrary to PassThru, this needs to be explicitly defined for
13751  arguments.
13752  That is, arguments do not inherit PassThruChars from their parent inset
13753  or layout.
13754 \end_layout
13755
13756 \begin_layout Itemize
13757
13758 \change_deleted -584632292 1615846694
13759 \begin_inset Flex Code
13760 status collapsed
13761
13762 \begin_layout Plain Layout
13763 IsTocCaption
13764 \end_layout
13765
13766 \end_inset
13767
13768  [
13769 \begin_inset Flex Code
13770 status collapsed
13771
13772 \begin_layout Plain Layout
13773
13774 \emph on
13775 0
13776 \end_layout
13777
13778 \end_inset
13779
13780 ,
13781 \begin_inset space \thinspace{}
13782 \end_inset
13783
13784
13785 \begin_inset Flex Code
13786 status collapsed
13787
13788 \begin_layout Plain Layout
13789 1
13790 \end_layout
13791
13792 \end_inset
13793
13794 ] If this is set to 1, the argument will output its content in the corresponding
13795  item in the table of contents.
13796  See AddToToc.
13797 \end_layout
13798
13799 \begin_layout Standard
13800
13801 \change_deleted -584632292 1615846694
13802 By default, the text entered in the \SpecialChar LyX
13803  workarea in the respective layout is
13804  the last (mandatory) argument of a command if the 
13805 \begin_inset Flex Code
13806 status collapsed
13807
13808 \begin_layout Plain Layout
13809 LatexType
13810 \end_layout
13811
13812 \end_inset
13813
13814  is 
13815 \begin_inset Flex Code
13816 status collapsed
13817
13818 \begin_layout Plain Layout
13819 Command
13820 \end_layout
13821
13822 \end_inset
13823
13824 .
13825  However, arguments with the prefix 
13826 \begin_inset Flex Code
13827 status collapsed
13828
13829 \begin_layout Plain Layout
13830 post:
13831 \end_layout
13832
13833 \end_inset
13834
13835  are output after this workarea argument.
13836  Note that post-argument numbering restarts at 1, so the first argument
13837  following the workarea argument is 
13838 \begin_inset Flex Code
13839 status collapsed
13840
13841 \begin_layout Plain Layout
13842 post:1
13843 \end_layout
13844
13845 \end_inset
13846
13847 .
13848  Post-arguments are ignored in any other 
13849 \begin_inset Flex Code
13850 status collapsed
13851
13852 \begin_layout Plain Layout
13853 LatexType
13854 \end_layout
13855
13856 \end_inset
13857
13858  than 
13859 \begin_inset Flex Code
13860 status collapsed
13861
13862 \begin_layout Plain Layout
13863 Command
13864 \end_layout
13865
13866 \end_inset
13867
13868 .
13869 \end_layout
13870
13871 \begin_layout Standard
13872
13873 \change_deleted -584632292 1615846694
13874 Arguments for list 
13875 \begin_inset Flex Code
13876 status collapsed
13877
13878 \begin_layout Plain Layout
13879
13880 \backslash
13881 item
13882 \end_layout
13883
13884 \end_inset
13885
13886 s (as in 
13887 \begin_inset Flex Code
13888 status collapsed
13889
13890 \begin_layout Plain Layout
13891
13892 \backslash
13893 item[foo]
13894 \end_layout
13895
13896 \end_inset
13897
13898 ) have the prefix 
13899 \begin_inset Flex Code
13900 status collapsed
13901
13902 \begin_layout Plain Layout
13903 item:
13904 \end_layout
13905
13906 \end_inset
13907
13908  followed by the number (e.
13909 \begin_inset space \thinspace{}
13910 \end_inset
13911
13912 g.
13913 \begin_inset space \space{}
13914 \end_inset
13915
13916
13917 \begin_inset Flex Code
13918 status collapsed
13919
13920 \begin_layout Plain Layout
13921 Argument item:1
13922 \end_layout
13923
13924 \end_inset
13925
13926 ).
13927 \end_layout
13928
13929 \begin_layout Standard
13930
13931 \change_deleted -584632292 1615846694
13932 Finally, there is a special argument type with the prefix 
13933 \begin_inset Flex Code
13934 status collapsed
13935
13936 \begin_layout Plain Layout
13937
13938 \change_inserted -712698321 1534487844
13939 listpreamble:
13940 \change_unchanged
13941
13942 \end_layout
13943
13944 \end_inset
13945
13946 .
13947  It is not really an argument, but uses the argument interface (thus, the
13948  prefix is also followed by a number, e.
13949 \begin_inset space \thinspace{}
13950 \end_inset
13951
13952 g.
13953  
13954 \begin_inset Flex Code
13955 status collapsed
13956
13957 \begin_layout Plain Layout
13958
13959 \change_inserted -712698321 1534488412
13960 Argument listpreamble:1
13961 \change_unchanged
13962
13963 \end_layout
13964
13965 \end_inset
13966
13967 ).
13968  As the name implies, it is targeted at lists such as 
13969 \family sans
13970 Itemize
13971 \family default
13972
13973 \family sans
13974 Enumerate
13975 \family default
13976
13977 \family sans
13978 Description
13979 \family default
13980 , or 
13981 \family sans
13982 Bibliography
13983 \family default
13984 .
13985  Its content will be output at the list start, before the first 
13986 \begin_inset Flex Code
13987 status collapsed
13988
13989 \begin_layout Plain Layout
13990
13991 \change_inserted -712698321 1534488058
13992
13993 \backslash
13994 item
13995 \change_unchanged
13996
13997 \end_layout
13998
13999 \end_inset
14000
14001 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
14002 ).
14003  This way, users can insert redefinitions (of lengths etc.) to individual
14004  lists.
14005  By default, these arguments do not have a delimiter.
14006 \change_unchanged
14007
14008 \end_layout
14009
14010 \end_deeper
14011 \begin_layout Description
14012 \begin_inset Flex Code
14013 status collapsed
14014
14015 \begin_layout Plain Layout
14016 AutoNests
14017 \end_layout
14018
14019 \end_inset
14020
14021  Includes a comma-separated list of layouts that should be nested in and
14022  after the current layout.
14023  Only makes sense for nestable layouts (such as environments).
14024  Must be ended by 
14025 \begin_inset Quotes eld
14026 \end_inset
14027
14028
14029 \begin_inset Flex Code
14030 status collapsed
14031
14032 \begin_layout Plain Layout
14033 EndAutoNests
14034 \end_layout
14035
14036 \end_inset
14037
14038
14039 \begin_inset Quotes erd
14040 \end_inset
14041
14042 .
14043  See also 
14044 \begin_inset Flex Code
14045 status collapsed
14046
14047 \begin_layout Plain Layout
14048 IsAutoNestedBy
14049 \end_layout
14050
14051 \end_inset
14052
14053 .
14054 \end_layout
14055
14056 \begin_layout Description
14057 \begin_inset Flex Code
14058 status collapsed
14059
14060 \begin_layout Plain Layout
14061 BabelPreamble
14062 \end_layout
14063
14064 \end_inset
14065
14066  Note that this will completely override any prior 
14067 \begin_inset Flex Code
14068 status collapsed
14069
14070 \begin_layout Plain Layout
14071 BabelPreamble
14072 \end_layout
14073
14074 \end_inset
14075
14076  declaration for this style.
14077  Must end with 
14078 \begin_inset Quotes eld
14079 \end_inset
14080
14081
14082 \begin_inset Flex Code
14083 status collapsed
14084
14085 \begin_layout Plain Layout
14086 EndBabelPreamble
14087 \end_layout
14088
14089 \end_inset
14090
14091
14092 \begin_inset Quotes erd
14093 \end_inset
14094
14095 .
14096  See 
14097 \begin_inset CommandInset ref
14098 LatexCommand ref
14099 reference "subsec:I18n"
14100
14101 \end_inset
14102
14103  for details on its use.
14104 \end_layout
14105
14106 \begin_layout Description
14107 \begin_inset Flex Code
14108 status collapsed
14109
14110 \begin_layout Plain Layout
14111 BottomSep
14112 \end_layout
14113
14114 \end_inset
14115
14116  [
14117 \begin_inset Flex Code
14118 status collapsed
14119
14120 \begin_layout Plain Layout
14121 float=0
14122 \end_layout
14123
14124 \end_inset
14125
14126 ]
14127 \begin_inset Foot
14128 status collapsed
14129
14130 \begin_layout Plain Layout
14131 Note that a `float' here is a real number, such as: 1.5.
14132 \end_layout
14133
14134 \end_inset
14135
14136  The vertical space with which the last of a chain of paragraphs with this
14137  style is separated from the following paragraph.
14138  If the next paragraph has another style, the separations are not simply
14139  added, but the maximum is taken.
14140 \end_layout
14141
14142 \begin_layout Description
14143 \begin_inset Flex Code
14144 status collapsed
14145
14146 \begin_layout Plain Layout
14147 Category
14148 \end_layout
14149
14150 \end_inset
14151
14152  [
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 string
14158 \end_layout
14159
14160 \end_inset
14161
14162 ] The category for this style.
14163  This is used to group related styles in the style combobox on the toolbar.
14164  Any string can be used, but you may want to use existing categories with
14165  your own styles.
14166  
14167 \end_layout
14168
14169 \begin_layout Description
14170 \begin_inset Flex Code
14171 status collapsed
14172
14173 \begin_layout Plain Layout
14174 CommandDepth
14175 \end_layout
14176
14177 \end_inset
14178
14179  Depth of XML command.
14180  Used only with XML-type formats.
14181 \end_layout
14182
14183 \begin_layout Description
14184 \begin_inset Flex Code
14185 status collapsed
14186
14187 \begin_layout Plain Layout
14188 CopyStyle
14189 \end_layout
14190
14191 \end_inset
14192
14193  [
14194 \begin_inset Flex Code
14195 status collapsed
14196
14197 \begin_layout Plain Layout
14198 string
14199 \end_layout
14200
14201 \end_inset
14202
14203 ] Copies all the features of an existing style into the current one.
14204  
14205 \end_layout
14206
14207 \begin_layout Description
14208 \begin_inset Flex Code
14209 status collapsed
14210
14211 \begin_layout Plain Layout
14212 DependsOn
14213 \end_layout
14214
14215 \end_inset
14216
14217  [
14218 \begin_inset Flex Code
14219 status collapsed
14220
14221 \begin_layout Plain Layout
14222 <name>
14223 \end_layout
14224
14225 \end_inset
14226
14227 ] The name of a style whose preamble should be output 
14228 \emph on
14229 before
14230 \emph default
14231  this one.
14232  This allows to ensure some ordering of the preamble snippets when macros
14233  definitions depend on one another.
14234 \begin_inset Foot
14235 status collapsed
14236
14237 \begin_layout Plain Layout
14238 Note that, besides that functionality, there is no way to ensure any ordering
14239  of preambles.
14240  The ordering that you see in a given version of \SpecialChar LyX
14241  may change without warning
14242  in later versions.
14243 \end_layout
14244
14245 \end_inset
14246
14247
14248 \end_layout
14249
14250 \begin_layout Description
14251 \begin_inset Flex Code
14252 status collapsed
14253
14254 \begin_layout Plain Layout
14255 EndLabeltype
14256 \end_layout
14257
14258 \end_inset
14259
14260  [
14261 \begin_inset Flex Code
14262 status collapsed
14263
14264 \begin_layout Plain Layout
14265
14266 \emph on
14267 No_Label
14268 \emph default
14269 , Box, Filled_Box, Static
14270 \end_layout
14271
14272 \end_inset
14273
14274 ] The type of label that stands at the end of the paragraph (or sequence
14275  of paragraphs if 
14276 \begin_inset Flex Code
14277 status collapsed
14278
14279 \begin_layout Plain Layout
14280 LatexType
14281 \end_layout
14282
14283 \end_inset
14284
14285  is
14286 \begin_inset Newline newline
14287 \end_inset
14288
14289
14290 \begin_inset Flex Code
14291 status collapsed
14292
14293 \begin_layout Plain Layout
14294 Environment
14295 \end_layout
14296
14297 \end_inset
14298
14299
14300 \begin_inset Flex Code
14301 status collapsed
14302
14303 \begin_layout Plain Layout
14304 Item_Environment
14305 \end_layout
14306
14307 \end_inset
14308
14309  or 
14310 \begin_inset Flex Code
14311 status collapsed
14312
14313 \begin_layout Plain Layout
14314 List_Environment
14315 \end_layout
14316
14317 \end_inset
14318
14319 ).
14320  
14321 \begin_inset Flex Code
14322 status collapsed
14323
14324 \begin_layout Plain Layout
14325 No_Label
14326 \end_layout
14327
14328 \end_inset
14329
14330  means 
14331 \begin_inset Quotes eld
14332 \end_inset
14333
14334 nothing
14335 \begin_inset Quotes erd
14336 \end_inset
14337
14338
14339 \begin_inset Flex Code
14340 status collapsed
14341
14342 \begin_layout Plain Layout
14343 Box
14344 \end_layout
14345
14346 \end_inset
14347
14348  (resp.
14349 \begin_inset space \space{}
14350 \end_inset
14351
14352
14353 \begin_inset Flex Code
14354 status collapsed
14355
14356 \begin_layout Plain Layout
14357 Filled_Box
14358 \end_layout
14359
14360 \end_inset
14361
14362 ) is a white (resp.
14363 \begin_inset space ~
14364 \end_inset
14365
14366 black) square suitable for end of proof markers, 
14367 \begin_inset Flex Code
14368 status collapsed
14369
14370 \begin_layout Plain Layout
14371 Static
14372 \end_layout
14373
14374 \end_inset
14375
14376  is an explicit text string.
14377 \end_layout
14378
14379 \begin_layout Description
14380 \begin_inset Flex Code
14381 status collapsed
14382
14383 \begin_layout Plain Layout
14384 EndLabelString
14385 \end_layout
14386
14387 \end_inset
14388
14389  [
14390 \begin_inset Flex Code
14391 status collapsed
14392
14393 \begin_layout Plain Layout
14394 string=""
14395 \end_layout
14396
14397 \end_inset
14398
14399 ] The string used for a label with a 
14400 \begin_inset Flex Code
14401 status collapsed
14402
14403 \begin_layout Plain Layout
14404 Static
14405 \end_layout
14406
14407 \end_inset
14408
14409
14410 \begin_inset Newline newline
14411 \end_inset
14412
14413
14414 \begin_inset Flex Code
14415 status collapsed
14416
14417 \begin_layout Plain Layout
14418 EndLabelType
14419 \end_layout
14420
14421 \end_inset
14422
14423 .
14424  
14425 \end_layout
14426
14427 \begin_layout Description
14428 \begin_inset Flex Code
14429 status collapsed
14430
14431 \begin_layout Plain Layout
14432 Font
14433 \end_layout
14434
14435 \end_inset
14436
14437  The font used for both the text body 
14438 \emph on
14439 and
14440 \emph default
14441  the label.
14442  See 
14443 \begin_inset CommandInset ref
14444 LatexCommand ref
14445 reference "subsec:Font-description"
14446
14447 \end_inset
14448
14449 .
14450  Note that defining this font automatically defines the 
14451 \begin_inset Flex Code
14452 status collapsed
14453
14454 \begin_layout Plain Layout
14455 LabelFont
14456 \end_layout
14457
14458 \end_inset
14459
14460  to the same value.
14461  So you should define this one first if you also want to define 
14462 \begin_inset Flex Code
14463 status collapsed
14464
14465 \begin_layout Plain Layout
14466 LabelFont
14467 \end_layout
14468
14469 \end_inset
14470
14471 .
14472 \end_layout
14473
14474 \begin_layout Description
14475 \begin_inset Flex Code
14476 status collapsed
14477
14478 \begin_layout Plain Layout
14479 ForceLocal
14480 \end_layout
14481
14482 \end_inset
14483
14484  [
14485 \begin_inset Flex Code
14486 status collapsed
14487
14488 \begin_layout Plain Layout
14489 int=0
14490 \end_layout
14491
14492 \end_inset
14493
14494 ] Used for backporting new styles to stable \SpecialChar LyX
14495  versions.
14496  The first stable version that supports this tag is \SpecialChar LyX
14497  2.1.0.
14498  The argument is a number which may either be 0, -1 or any value greater
14499  than zero.
14500  If the 
14501 \begin_inset Flex Code
14502 status collapsed
14503
14504 \begin_layout Plain Layout
14505 ForceLocal
14506 \end_layout
14507
14508 \end_inset
14509
14510  flag of a style is greater than zero, it will always be written to the
14511  document header.
14512  If a .lyx file is read, the style definitions from the document header are
14513  added to the document class.
14514  Therefore even older \SpecialChar LyX
14515  versions can handle the style.
14516  The argument of 
14517 \begin_inset Flex Code
14518 status collapsed
14519
14520 \begin_layout Plain Layout
14521 ForceLocal
14522 \end_layout
14523
14524 \end_inset
14525
14526  is a version number: if the style is read, and the version number is less
14527  than the version number of the already existing style in the document class,
14528  the new style is ignored.
14529  If the version number is greater, the new style replaces the existing style.
14530  A value of -1 means an infinite version number, i.
14531 \begin_inset space \thinspace{}
14532 \end_inset
14533
14534 e.
14535 \begin_inset space \space{}
14536 \end_inset
14537
14538 the style is always used.
14539 \end_layout
14540
14541 \begin_layout Description
14542 \begin_inset Flex Code
14543 status collapsed
14544
14545 \begin_layout Plain Layout
14546 FreeSpacing
14547 \end_layout
14548
14549 \end_inset
14550
14551  [
14552 \begin_inset Flex Code
14553 status collapsed
14554
14555 \begin_layout Plain Layout
14556
14557 \emph on
14558 0
14559 \end_layout
14560
14561 \end_inset
14562
14563 ,
14564 \begin_inset space \thinspace{}
14565 \end_inset
14566
14567
14568 \begin_inset Flex Code
14569 status collapsed
14570
14571 \begin_layout Plain Layout
14572 1
14573 \end_layout
14574
14575 \end_inset
14576
14577 ] Usually \SpecialChar LyX
14578  does not allow you to insert more than one space between words,
14579  since a space is considered as the separation between two words, not a
14580  character or symbol of its own.
14581  This is a very fine thing but sometimes annoying, for example, when typing
14582  program code or plain \SpecialChar LaTeX
14583  code.
14584  For this reason, 
14585 \begin_inset Flex Code
14586 status collapsed
14587
14588 \begin_layout Plain Layout
14589 FreeSpacing
14590 \end_layout
14591
14592 \end_inset
14593
14594  can be enabled.
14595  
14596 \change_deleted -495245474 1550490105
14597 Note that 
14598 \change_unchanged
14599 \SpecialChar LyX
14600  will create protected blanks for the additional blanks when
14601 \change_deleted 34634807 1619626461
14602  in
14603 \change_unchanged
14604  
14605 \change_inserted -495245474 1550490096
14606
14607 \begin_inset Flex Code
14608 status collapsed
14609
14610 \begin_layout Plain Layout
14611
14612 \change_inserted -495245474 1550490089
14613 Passthru 1
14614 \change_unchanged
14615
14616 \end_layout
14617
14618 \end_inset
14619
14620  is not specified.
14621 \change_deleted -495245474 1550490116
14622 another mode than \SpecialChar LaTeX
14623 -mode.
14624
14625 \change_inserted -495245474 1550247760
14626  Note that 
14627 \begin_inset Flex Code
14628 status collapsed
14629
14630 \begin_layout Plain Layout
14631
14632 \change_inserted -495245474 1550247736
14633 FreeSpacing
14634 \change_unchanged
14635
14636 \end_layout
14637
14638 \end_inset
14639
14640  implies 
14641 \begin_inset Flex Code
14642 status collapsed
14643
14644 \begin_layout Plain Layout
14645
14646 \change_inserted -495245474 1550247755
14647 KeepEmpty
14648 \change_unchanged
14649
14650 \end_layout
14651
14652 \end_inset
14653
14654 .
14655 \change_unchanged
14656
14657 \end_layout
14658
14659 \begin_layout Description
14660 \begin_inset Flex Code
14661 status collapsed
14662
14663 \begin_layout Plain Layout
14664 HTML*
14665 \end_layout
14666
14667 \end_inset
14668
14669  These tags are used with XHTML output.
14670  See 
14671 \begin_inset CommandInset ref
14672 LatexCommand ref
14673 reference "subsec:Paragraph-Style-XHTML"
14674
14675 \end_inset
14676
14677 .
14678 \end_layout
14679
14680 \begin_layout Description
14681 \begin_inset Flex Code
14682 status collapsed
14683
14684 \begin_layout Plain Layout
14685 InnerTag
14686 \end_layout
14687
14688 \end_inset
14689
14690  [FIXME] (Used only with XML-type formats.)
14691 \end_layout
14692
14693 \begin_layout Description
14694 \begin_inset Flex Code
14695 status collapsed
14696
14697 \begin_layout Plain Layout
14698 InPreamble
14699 \end_layout
14700
14701 \end_inset
14702
14703  [
14704 \begin_inset Flex Code
14705 status collapsed
14706
14707 \begin_layout Plain Layout
14708
14709 \emph on
14710 0
14711 \end_layout
14712
14713 \end_inset
14714
14715 ,
14716 \begin_inset space \thinspace{}
14717 \end_inset
14718
14719
14720 \begin_inset Flex Code
14721 status collapsed
14722
14723 \begin_layout Plain Layout
14724 1
14725 \end_layout
14726
14727 \end_inset
14728
14729 ] If 
14730 \begin_inset Flex Code
14731 status collapsed
14732
14733 \begin_layout Plain Layout
14734 1
14735 \end_layout
14736
14737 \end_inset
14738
14739 , marks the style as to be included in the document preamble and not in
14740  the document body.
14741  This is useful for document classes that want such information as the title
14742  and author to appear in the preamble.
14743  Note that this works only for styles for which the 
14744 \begin_inset Flex Code
14745 status collapsed
14746
14747 \begin_layout Plain Layout
14748 LatexType
14749 \end_layout
14750
14751 \end_inset
14752
14753  is 
14754 \begin_inset Flex Code
14755 status collapsed
14756
14757 \begin_layout Plain Layout
14758 Command
14759 \end_layout
14760
14761 \end_inset
14762
14763  or 
14764 \begin_inset Flex Code
14765 status collapsed
14766
14767 \begin_layout Plain Layout
14768 Paragraph
14769 \end_layout
14770
14771 \end_inset
14772
14773 .
14774 \end_layout
14775
14776 \begin_layout Description
14777 \begin_inset Flex Code
14778 status collapsed
14779
14780 \begin_layout Plain Layout
14781 InTitle
14782 \end_layout
14783
14784 \end_inset
14785
14786  [
14787 \begin_inset Flex Code
14788 status collapsed
14789
14790 \begin_layout Plain Layout
14791
14792 \emph on
14793 0
14794 \end_layout
14795
14796 \end_inset
14797
14798 ,
14799 \begin_inset space \thinspace{}
14800 \end_inset
14801
14802
14803 \begin_inset Flex Code
14804 status collapsed
14805
14806 \begin_layout Plain Layout
14807 1
14808 \end_layout
14809
14810 \end_inset
14811
14812 ] If 
14813 \begin_inset Flex Code
14814 status collapsed
14815
14816 \begin_layout Plain Layout
14817 1
14818 \end_layout
14819
14820 \end_inset
14821
14822 , marks the style as being part of a title block (see also the 
14823 \begin_inset Flex Code
14824 status collapsed
14825
14826 \begin_layout Plain Layout
14827 TitleLatexType
14828 \end_layout
14829
14830 \end_inset
14831
14832  and 
14833 \begin_inset Flex Code
14834 status collapsed
14835
14836 \begin_layout Plain Layout
14837 TitleLatexName
14838 \end_layout
14839
14840 \end_inset
14841
14842  global entries).
14843 \end_layout
14844
14845 \begin_layout Description
14846 \begin_inset Flex Code
14847 status collapsed
14848
14849 \begin_layout Plain Layout
14850 IsAutoNestedBy
14851 \end_layout
14852
14853 \end_inset
14854
14855  Includes a comma-separated list of layouts after which this one should
14856  be nested.
14857  Only makes sense with regard to nestable layouts (such as environments).
14858  Must be ended by 
14859 \begin_inset Quotes eld
14860 \end_inset
14861
14862
14863 \begin_inset Flex Code
14864 status collapsed
14865
14866 \begin_layout Plain Layout
14867 EndIsAutoNestedBy
14868 \end_layout
14869
14870 \end_inset
14871
14872
14873 \begin_inset Quotes erd
14874 \end_inset
14875
14876 .
14877  See also 
14878 \begin_inset Flex Code
14879 status collapsed
14880
14881 \begin_layout Plain Layout
14882 AutoNests
14883 \end_layout
14884
14885 \end_inset
14886
14887 .
14888 \end_layout
14889
14890 \begin_layout Description
14891 \begin_inset Flex Code
14892 status collapsed
14893
14894 \begin_layout Plain Layout
14895 IsTocCaption
14896 \end_layout
14897
14898 \end_inset
14899
14900  [
14901 \begin_inset Flex Code
14902 status collapsed
14903
14904 \begin_layout Plain Layout
14905
14906 \emph on
14907 0
14908 \end_layout
14909
14910 \end_inset
14911
14912 ,
14913 \begin_inset space \thinspace{}
14914 \end_inset
14915
14916
14917 \begin_inset Flex Code
14918 status collapsed
14919
14920 \begin_layout Plain Layout
14921 1
14922 \end_layout
14923
14924 \end_inset
14925
14926 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14927  of its contents in its item in the table of contents.
14928  Otherwise, only the label, if it exists, appears.
14929 \end_layout
14930
14931 \begin_layout Description
14932 \begin_inset Flex Code
14933 status collapsed
14934
14935 \begin_layout Plain Layout
14936 ItemCommand
14937 \end_layout
14938
14939 \end_inset
14940
14941  [
14942 \begin_inset Flex Code
14943 status collapsed
14944
14945 \begin_layout Plain Layout
14946 string="item"
14947 \end_layout
14948
14949 \end_inset
14950
14951 ] The \SpecialChar LaTeX
14952  command sequence declaring an item in a list.
14953  The command is to be defined without the preceding backslash (the default
14954  is 
14955 \begin_inset Quotes eld
14956 \end_inset
14957
14958 item
14959 \begin_inset Quotes erd
14960 \end_inset
14961
14962 , resulting in 
14963 \begin_inset Flex Code
14964 status collapsed
14965
14966 \begin_layout Plain Layout
14967
14968 \backslash
14969 item
14970 \end_layout
14971
14972 \end_inset
14973
14974  in the \SpecialChar LaTeX
14975  output).
14976 \end_layout
14977
14978 \begin_layout Description
14979 \begin_inset Flex Code
14980 status collapsed
14981
14982 \begin_layout Plain Layout
14983 ItemSep
14984 \end_layout
14985
14986 \end_inset
14987
14988  [
14989 \begin_inset Flex Code
14990 status collapsed
14991
14992 \begin_layout Plain Layout
14993 float=0
14994 \end_layout
14995
14996 \end_inset
14997
14998 ] This provides extra space between paragraphs that have the same style.
14999  If you put other styles into an environment, each is separated with the
15000  environment's 
15001 \begin_inset Flex Code
15002 status collapsed
15003
15004 \begin_layout Plain Layout
15005 ParSep
15006 \end_layout
15007
15008 \end_inset
15009
15010 .
15011  But the whole items of the environment are additionally separated with
15012  this 
15013 \begin_inset Flex Code
15014 status collapsed
15015
15016 \begin_layout Plain Layout
15017 ItemSep
15018 \end_layout
15019
15020 \end_inset
15021
15022 .
15023  Note that this is a
15024 \emph on
15025  multiplier.
15026 \end_layout
15027
15028 \begin_layout Description
15029 \begin_inset Flex Code
15030 status collapsed
15031
15032 \begin_layout Plain Layout
15033 ItemTag
15034 \end_layout
15035
15036 \end_inset
15037
15038  [FIXME] (Used only with XML-type formats.)
15039 \end_layout
15040
15041 \begin_layout Description
15042 \begin_inset Flex Code
15043 status collapsed
15044
15045 \begin_layout Plain Layout
15046 KeepEmpty
15047 \end_layout
15048
15049 \end_inset
15050
15051  [
15052 \begin_inset Flex Code
15053 status collapsed
15054
15055 \begin_layout Plain Layout
15056
15057 \emph on
15058 0
15059 \end_layout
15060
15061 \end_inset
15062
15063 ,
15064 \begin_inset space \thinspace{}
15065 \end_inset
15066
15067
15068 \begin_inset Flex Code
15069 status collapsed
15070
15071 \begin_layout Plain Layout
15072 1
15073 \end_layout
15074
15075 \end_inset
15076
15077 ] Usually \SpecialChar LyX
15078  does not allow you to leave a paragraph empty, since it would
15079  lead to empty \SpecialChar LaTeX
15080  output.
15081  There are some cases where this could be desirable however: in a letter
15082  template, the required fields can be provided as empty fields, so that
15083  people do not forget them; in some special classes, a style can be used
15084  as some kind of break, which does not contain actual text.
15085 \end_layout
15086
15087 \begin_layout Description
15088 \begin_inset Flex Code
15089 status collapsed
15090
15091 \begin_layout Plain Layout
15092 LabelBottomsep
15093 \end_layout
15094
15095 \end_inset
15096
15097  [
15098 \begin_inset Flex Code
15099 status collapsed
15100
15101 \begin_layout Plain Layout
15102 float=0
15103 \end_layout
15104
15105 \end_inset
15106
15107 ] The vertical space between the label and the text body.
15108  Only used for labels that are above the text body (
15109 \begin_inset Flex Code
15110 status collapsed
15111
15112 \begin_layout Plain Layout
15113 Top_Environment
15114 \end_layout
15115
15116 \end_inset
15117
15118  and
15119 \begin_inset Newline newline
15120 \end_inset
15121
15122
15123 \begin_inset Flex Code
15124 status collapsed
15125
15126 \begin_layout Plain Layout
15127 Centered_Top_Environment
15128 \end_layout
15129
15130 \end_inset
15131
15132 ).
15133 \end_layout
15134
15135 \begin_layout Description
15136 \begin_inset Flex Code
15137 status collapsed
15138
15139 \begin_layout Plain Layout
15140 LabelCounter
15141 \end_layout
15142
15143 \end_inset
15144
15145  [
15146 \begin_inset Flex Code
15147 status collapsed
15148
15149 \begin_layout Plain Layout
15150 string=""
15151 \end_layout
15152
15153 \end_inset
15154
15155 ] The name of the counter for automatic numbering.
15156  In order to have the counter appear with your label, you will need to reference
15157  it in the 
15158 \begin_inset Flex Code
15159 status collapsed
15160
15161 \begin_layout Plain Layout
15162
15163 \family typewriter
15164 LabelString
15165 \end_layout
15166
15167 \end_inset
15168
15169 .
15170  This will work with 
15171 \begin_inset Flex Code
15172 status collapsed
15173
15174 \begin_layout Plain Layout
15175 LabelType
15176 \end_layout
15177
15178 \end_inset
15179
15180 s, 
15181 \begin_inset Flex Code
15182 status collapsed
15183
15184 \begin_layout Plain Layout
15185 Static
15186 \end_layout
15187
15188 \end_inset
15189
15190
15191 \begin_inset Flex Code
15192 status collapsed
15193
15194 \begin_layout Plain Layout
15195 Above
15196 \end_layout
15197
15198 \end_inset
15199
15200  and 
15201 \begin_inset Flex Code
15202 status collapsed
15203
15204 \begin_layout Plain Layout
15205 Centered
15206 \end_layout
15207
15208 \end_inset
15209
15210 , at least.
15211 \begin_inset Newline newline
15212 \end_inset
15213
15214 This 
15215 \emph on
15216 may
15217 \emph default
15218  also be given if 
15219 \begin_inset Flex Code
15220 status collapsed
15221
15222 \begin_layout Plain Layout
15223 LabelType
15224 \end_layout
15225
15226 \end_inset
15227
15228  is 
15229 \begin_inset Flex Code
15230 status collapsed
15231
15232 \begin_layout Plain Layout
15233 Enumerate
15234 \end_layout
15235
15236 \end_inset
15237
15238 , though this case is a bit complicated.
15239  Suppose you declare 
15240 \begin_inset Quotes eld
15241 \end_inset
15242
15243
15244 \begin_inset Flex Code
15245 status collapsed
15246
15247 \begin_layout Plain Layout
15248 LabelCounter myenum
15249 \end_layout
15250
15251 \end_inset
15252
15253
15254 \begin_inset Quotes erd
15255 \end_inset
15256
15257 .
15258  Then the actual counters used are 
15259 \begin_inset Flex Code
15260 status collapsed
15261
15262 \begin_layout Plain Layout
15263 myenumi
15264 \end_layout
15265
15266 \end_inset
15267
15268
15269 \begin_inset Flex Code
15270 status collapsed
15271
15272 \begin_layout Plain Layout
15273 myenumii
15274 \end_layout
15275
15276 \end_inset
15277
15278
15279 \begin_inset Flex Code
15280 status collapsed
15281
15282 \begin_layout Plain Layout
15283 myenumiii
15284 \end_layout
15285
15286 \end_inset
15287
15288  and 
15289 \begin_inset Flex Code
15290 status collapsed
15291
15292 \begin_layout Plain Layout
15293 myenumiv
15294 \end_layout
15295
15296 \end_inset
15297
15298 , much as in \SpecialChar LaTeX
15299 .
15300  These counters must all be declared separately.
15301 \begin_inset Newline newline
15302 \end_inset
15303
15304 See 
15305 \begin_inset CommandInset ref
15306 LatexCommand ref
15307 reference "subsec:Counters"
15308
15309 \end_inset
15310
15311  for details on counters.
15312 \end_layout
15313
15314 \begin_layout Description
15315 \begin_inset Flex Code
15316 status collapsed
15317
15318 \begin_layout Plain Layout
15319 LabelFont
15320 \end_layout
15321
15322 \end_inset
15323
15324  The font used for the label.
15325  See 
15326 \begin_inset CommandInset ref
15327 LatexCommand ref
15328 reference "subsec:Font-description"
15329
15330 \end_inset
15331
15332 .
15333 \end_layout
15334
15335 \begin_layout Description
15336 \begin_inset Flex Code
15337 status collapsed
15338
15339 \begin_layout Plain Layout
15340 LabelIndent
15341 \end_layout
15342
15343 \end_inset
15344
15345  [
15346 \begin_inset Flex Code
15347 status collapsed
15348
15349 \begin_layout Plain Layout
15350 string=""
15351 \end_layout
15352
15353 \end_inset
15354
15355 ] Text that indicates how far a label should be indented.
15356 \end_layout
15357
15358 \begin_layout Description
15359 \begin_inset Flex Code
15360 status collapsed
15361
15362 \begin_layout Plain Layout
15363 LabelSep
15364 \end_layout
15365
15366 \end_inset
15367
15368  [
15369 \begin_inset Flex Code
15370 status collapsed
15371
15372 \begin_layout Plain Layout
15373 string=""
15374 \end_layout
15375
15376 \end_inset
15377
15378 ] Text that indicates the amount of horizontal space between the label and
15379  the text body.
15380  Only used for labels that are not above the text body.
15381 \end_layout
15382
15383 \begin_layout Description
15384 \begin_inset Flex Code
15385 status collapsed
15386
15387 \begin_layout Plain Layout
15388 LabelString
15389 \end_layout
15390
15391 \end_inset
15392
15393  [
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 string=""
15399 \end_layout
15400
15401 \end_inset
15402
15403 ] The string used for the label.
15404  When 
15405 \begin_inset Flex Code
15406 status collapsed
15407
15408 \begin_layout Plain Layout
15409 LabelCounter
15410 \end_layout
15411
15412 \end_inset
15413
15414  is set, this string can be contain the special formatting commands described
15415  in 
15416 \begin_inset CommandInset ref
15417 LatexCommand ref
15418 reference "subsec:Counters"
15419
15420 \end_inset
15421
15422 .
15423 \end_layout
15424
15425 \begin_layout Description
15426 \begin_inset Flex Code
15427 status collapsed
15428
15429 \begin_layout Plain Layout
15430 LabelStringAppendix
15431 \end_layout
15432
15433 \end_inset
15434
15435  [
15436 \begin_inset Flex Code
15437 status collapsed
15438
15439 \begin_layout Plain Layout
15440 string=""
15441 \end_layout
15442
15443 \end_inset
15444
15445 ] This is used inside the appendix instead of
15446 \begin_inset Newline newline
15447 \end_inset
15448
15449
15450 \begin_inset Flex Code
15451 status collapsed
15452
15453 \begin_layout Plain Layout
15454 LabelString
15455 \end_layout
15456
15457 \end_inset
15458
15459 .
15460  Note that every 
15461 \begin_inset Flex Code
15462 status collapsed
15463
15464 \begin_layout Plain Layout
15465 LabelString
15466 \end_layout
15467
15468 \end_inset
15469
15470  statement resets
15471 \begin_inset Newline newline
15472 \end_inset
15473
15474
15475 \begin_inset Flex Code
15476 status collapsed
15477
15478 \begin_layout Plain Layout
15479 LabelStringAppendix
15480 \end_layout
15481
15482 \end_inset
15483
15484  too.
15485 \end_layout
15486
15487 \begin_layout Description
15488 \begin_inset Flex Code
15489 status collapsed
15490
15491 \begin_layout Plain Layout
15492 LabelTag
15493 \end_layout
15494
15495 \end_inset
15496
15497  [FIXME] (Used only with XML-type formats.)
15498 \end_layout
15499
15500 \begin_layout Description
15501 \begin_inset Flex Code
15502 status collapsed
15503
15504 \begin_layout Plain Layout
15505 LabelType
15506 \end_layout
15507
15508 \end_inset
15509
15510  [
15511 \begin_inset Flex Code
15512 status collapsed
15513
15514 \begin_layout Plain Layout
15515
15516 \emph on
15517 No_Label
15518 \emph default
15519 , Manual, Static, Above, 
15520 \begin_inset Newline newline
15521 \end_inset
15522
15523 Centered, Sensitive, Enumerate,
15524 \begin_inset Newline newline
15525 \end_inset
15526
15527 Itemize, Bibliography
15528 \end_layout
15529
15530 \end_inset
15531
15532 ]
15533 \end_layout
15534
15535 \begin_deeper
15536 \begin_layout Description
15537 \begin_inset Flex Code
15538 status collapsed
15539
15540 \begin_layout Plain Layout
15541 Manual
15542 \end_layout
15543
15544 \end_inset
15545
15546  means the label is the very first word (up to the first real blank).
15547  Use protected spaces if you want more than one word as the label.
15548  
15549 \end_layout
15550
15551 \begin_layout Description
15552 \begin_inset Flex Code
15553 status collapsed
15554
15555 \begin_layout Plain Layout
15556 Static
15557 \end_layout
15558
15559 \end_inset
15560
15561  means the label is simply what is declared as 
15562 \begin_inset Flex Code
15563 status collapsed
15564
15565 \begin_layout Plain Layout
15566 LabelString
15567 \end_layout
15568
15569 \end_inset
15570
15571 .
15572  This will be displayed 
15573 \begin_inset Quotes eld
15574 \end_inset
15575
15576 inline
15577 \begin_inset Quotes erd
15578 \end_inset
15579
15580 , at the beginning of the paragraph.
15581  If the 
15582 \begin_inset Flex Code
15583 status collapsed
15584
15585 \begin_layout Plain Layout
15586 LatexType
15587 \end_layout
15588
15589 \end_inset
15590
15591  is 
15592 \begin_inset Flex Code
15593 status collapsed
15594
15595 \begin_layout Plain Layout
15596 Environment
15597 \end_layout
15598
15599 \end_inset
15600
15601 , then it will be displayed only in the first paragraph of any sequence
15602  of paragraphs with the same 
15603 \begin_inset Flex Code
15604 status collapsed
15605
15606 \begin_layout Plain Layout
15607 Style
15608 \end_layout
15609
15610 \end_inset
15611
15612 .
15613 \end_layout
15614
15615 \begin_layout Description
15616 \begin_inset Flex Code
15617 status collapsed
15618
15619 \begin_layout Plain Layout
15620 Above
15621 \end_layout
15622
15623 \end_inset
15624
15625
15626 \begin_inset space ~
15627 \end_inset
15628
15629 and
15630 \begin_inset space ~
15631 \end_inset
15632
15633
15634 \begin_inset Flex Code
15635 status collapsed
15636
15637 \begin_layout Plain Layout
15638 Centered
15639 \end_layout
15640
15641 \end_inset
15642
15643  are special cases of 
15644 \begin_inset Flex Code
15645 status collapsed
15646
15647 \begin_layout Plain Layout
15648 Static
15649 \end_layout
15650
15651 \end_inset
15652
15653 .
15654  The label will be printed above the paragraph either at the beginning of
15655  the line or centered.
15656 \end_layout
15657
15658 \begin_layout Description
15659 \begin_inset Flex Code
15660 status collapsed
15661
15662 \begin_layout Plain Layout
15663 Sensitive
15664 \end_layout
15665
15666 \end_inset
15667
15668  is a special case for the caption-labels 
15669 \begin_inset Quotes eld
15670 \end_inset
15671
15672 Figure
15673 \begin_inset Quotes erd
15674 \end_inset
15675
15676  and 
15677 \begin_inset Quotes eld
15678 \end_inset
15679
15680 Table
15681 \begin_inset Quotes erd
15682 \end_inset
15683
15684 .
15685 \begin_inset Newline newline
15686 \end_inset
15687
15688
15689 \begin_inset Flex Code
15690 status collapsed
15691
15692 \begin_layout Plain Layout
15693 Sensitive
15694 \end_layout
15695
15696 \end_inset
15697
15698  means the (hardcoded) label string depends on the kind of float: It is
15699  hardcoded to be `FloatType N', where N is the value of the counter associated
15700  with the float.
15701  For the case that a caption is inserted outside of a float the 
15702 \begin_inset Flex Code
15703 status collapsed
15704
15705 \begin_layout Plain Layout
15706 LabelString
15707 \end_layout
15708
15709 \end_inset
15710
15711  will appear as 
15712 \begin_inset Quotes eld
15713 \end_inset
15714
15715 Senseless!
15716 \begin_inset Quotes erd
15717 \end_inset
15718
15719 .
15720 \end_layout
15721
15722 \begin_layout Description
15723 \begin_inset Flex Code
15724 status collapsed
15725
15726 \begin_layout Plain Layout
15727 Enumerate
15728 \end_layout
15729
15730 \end_inset
15731
15732  produces the usual sort of enumeration labels.
15733  The number type needs to be set in the 
15734 \family sans
15735 Counter
15736 \family default
15737 , see 
15738 \begin_inset CommandInset ref
15739 LatexCommand ref
15740 reference "subsec:Counters"
15741
15742 \end_inset
15743
15744 .
15745 \end_layout
15746
15747 \begin_layout Description
15748 \begin_inset Flex Code
15749 status collapsed
15750
15751 \begin_layout Plain Layout
15752 Itemize
15753 \end_layout
15754
15755 \end_inset
15756
15757  produces various bullets at the different levels.
15758  The bullet types displayed can be set via 
15759 \begin_inset Flex Noun
15760 status collapsed
15761
15762 \begin_layout Plain Layout
15763 Document\SpecialChar menuseparator
15764 Settings\SpecialChar menuseparator
15765 Bullets
15766 \end_layout
15767
15768 \end_inset
15769
15770 .
15771 \end_layout
15772
15773 \begin_layout Description
15774 \begin_inset Flex Code
15775 status collapsed
15776
15777 \begin_layout Plain Layout
15778 Bibliography
15779 \end_layout
15780
15781 \end_inset
15782
15783  should be used only with 
15784 \begin_inset Flex Code
15785 status collapsed
15786
15787 \begin_layout Plain Layout
15788 LatexType BibEnvironment
15789 \end_layout
15790
15791 \end_inset
15792
15793 .
15794 \end_layout
15795
15796 \end_deeper
15797 \begin_layout Description
15798 \begin_inset Flex Code
15799 status collapsed
15800
15801 \begin_layout Plain Layout
15802 LangPreamble
15803 \end_layout
15804
15805 \end_inset
15806
15807  Note that this will completely override any prior 
15808 \begin_inset Flex Code
15809 status collapsed
15810
15811 \begin_layout Plain Layout
15812 LangPreamble
15813 \end_layout
15814
15815 \end_inset
15816
15817  declaration for this style.
15818  Must end with 
15819 \begin_inset Quotes eld
15820 \end_inset
15821
15822
15823 \begin_inset Flex Code
15824 status collapsed
15825
15826 \begin_layout Plain Layout
15827 EndLangPreamble
15828 \end_layout
15829
15830 \end_inset
15831
15832
15833 \begin_inset Quotes erd
15834 \end_inset
15835
15836 .
15837  See 
15838 \begin_inset CommandInset ref
15839 LatexCommand ref
15840 reference "subsec:I18n"
15841
15842 \end_inset
15843
15844  for details on its use.
15845 \end_layout
15846
15847 \begin_layout Description
15848 \begin_inset Flex Code
15849 status collapsed
15850
15851 \begin_layout Plain Layout
15852 LatexName
15853 \end_layout
15854
15855 \end_inset
15856
15857  [
15858 \begin_inset Flex Code
15859 status collapsed
15860
15861 \begin_layout Plain Layout
15862 <name>
15863 \end_layout
15864
15865 \end_inset
15866
15867 ] The name of the corresponding \SpecialChar LaTeX
15868  stuff.
15869  Either the environment or command name.
15870 \end_layout
15871
15872 \begin_layout Description
15873 \begin_inset Flex Code
15874 status collapsed
15875
15876 \begin_layout Plain Layout
15877 LatexParam
15878 \end_layout
15879
15880 \end_inset
15881
15882  [
15883 \begin_inset Flex Code
15884 status collapsed
15885
15886 \begin_layout Plain Layout
15887 <parameter>
15888 \end_layout
15889
15890 \end_inset
15891
15892 ] An optional parameter for the corresponding 
15893 \begin_inset Flex Code
15894 status collapsed
15895
15896 \begin_layout Plain Layout
15897 LatexName
15898 \end_layout
15899
15900 \end_inset
15901
15902  stuff.
15903  This parameter cannot be changed from within \SpecialChar LyX
15904  (use 
15905 \begin_inset Flex Code
15906 status collapsed
15907
15908 \begin_layout Plain Layout
15909 Argument
15910 \end_layout
15911
15912 \end_inset
15913
15914  for customizable parameters).
15915  This will be output as is after all \SpecialChar LaTeX
15916  
15917 \begin_inset Flex Code
15918 status collapsed
15919
15920 \begin_layout Plain Layout
15921 Argument
15922 \end_layout
15923
15924 \end_inset
15925
15926 s.
15927 \end_layout
15928
15929 \begin_layout Description
15930 \begin_inset Flex Code
15931 status collapsed
15932
15933 \begin_layout Plain Layout
15934 LatexType
15935 \end_layout
15936
15937 \end_inset
15938
15939  [
15940 \begin_inset Flex Code
15941 status collapsed
15942
15943 \begin_layout Plain Layout
15944
15945 \emph on
15946 Paragraph
15947 \emph default
15948 , Command, Environment, Item_Environment,
15949 \begin_inset Newline newline
15950 \end_inset
15951
15952 List_Environment, Bib_Environment
15953 \end_layout
15954
15955 \end_inset
15956
15957 ] How the style should be translated into \SpecialChar LaTeX
15958 .
15959 \begin_inset Foot
15960 status collapsed
15961
15962 \begin_layout Plain Layout
15963 \begin_inset Flex Code
15964 status collapsed
15965
15966 \begin_layout Plain Layout
15967 LatexType
15968 \end_layout
15969
15970 \end_inset
15971
15972  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15973  Visit the SGML class files for specific examples.
15974 \end_layout
15975
15976 \end_inset
15977
15978
15979 \end_layout
15980
15981 \begin_deeper
15982 \begin_layout Description
15983 \begin_inset Flex Code
15984 status collapsed
15985
15986 \begin_layout Plain Layout
15987 Paragraph
15988 \end_layout
15989
15990 \end_inset
15991
15992  means nothing special.
15993 \end_layout
15994
15995 \begin_layout Description
15996 \begin_inset Flex Code
15997 status collapsed
15998
15999 \begin_layout Plain Layout
16000 Command
16001 \end_layout
16002
16003 \end_inset
16004
16005  means 
16006 \begin_inset Flex Code
16007 status collapsed
16008
16009 \begin_layout Plain Layout
16010
16011 \backslash
16012
16013 \emph on
16014 LatexName
16015 \emph default
16016 {\SpecialChar ldots
16017 }
16018 \end_layout
16019
16020 \end_inset
16021
16022 .
16023 \end_layout
16024
16025 \begin_layout Description
16026 \begin_inset Flex Code
16027 status collapsed
16028
16029 \begin_layout Plain Layout
16030 Environment
16031 \end_layout
16032
16033 \end_inset
16034
16035  means 
16036 \begin_inset Flex Code
16037 status collapsed
16038
16039 \begin_layout Plain Layout
16040
16041 \backslash
16042 begin{
16043 \emph on
16044 LatexName
16045 \emph default
16046 }\SpecialChar ldots
16047
16048 \backslash
16049 end{
16050 \emph on
16051 LatexName
16052 \emph default
16053 }
16054 \end_layout
16055
16056 \end_inset
16057
16058 .
16059  
16060 \end_layout
16061
16062 \begin_layout Description
16063 \begin_inset Flex Code
16064 status collapsed
16065
16066 \begin_layout Plain Layout
16067 Item_Environment
16068 \end_layout
16069
16070 \end_inset
16071
16072  is the same as 
16073 \begin_inset Flex Code
16074 status collapsed
16075
16076 \begin_layout Plain Layout
16077 Environment
16078 \end_layout
16079
16080 \end_inset
16081
16082 , except that an 
16083 \begin_inset Flex Code
16084 status collapsed
16085
16086 \begin_layout Plain Layout
16087
16088 \backslash
16089 item
16090 \end_layout
16091
16092 \end_inset
16093
16094  is generated for each paragraph of this environment.
16095  
16096 \end_layout
16097
16098 \begin_layout Description
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103 List_Environment
16104 \end_layout
16105
16106 \end_inset
16107
16108  is the same as 
16109 \begin_inset Flex Code
16110 status collapsed
16111
16112 \begin_layout Plain Layout
16113 Item_Environment
16114 \end_layout
16115
16116 \end_inset
16117
16118 , except that
16119 \begin_inset Newline newline
16120 \end_inset
16121
16122
16123 \begin_inset Flex Code
16124 status collapsed
16125
16126 \begin_layout Plain Layout
16127 LabelWidthString
16128 \end_layout
16129
16130 \end_inset
16131
16132  is passed as an argument to the environment.
16133 \begin_inset Newline newline
16134 \end_inset
16135
16136
16137 \begin_inset Flex Code
16138 status collapsed
16139
16140 \begin_layout Plain Layout
16141 LabelWidthString
16142 \end_layout
16143
16144 \end_inset
16145
16146  can be defined in the 
16147 \begin_inset Flex Noun
16148 status collapsed
16149
16150 \begin_layout Plain Layout
16151 Edit\SpecialChar menuseparator
16152 Paragraph
16153 \begin_inset space ~
16154 \end_inset
16155
16156 settings
16157 \end_layout
16158
16159 \end_inset
16160
16161  dialog.
16162 \end_layout
16163
16164 \begin_layout Description
16165 \begin_inset Flex Code
16166 status collapsed
16167
16168 \begin_layout Plain Layout
16169 Bib_Environment
16170 \end_layout
16171
16172 \end_inset
16173
16174  is like 
16175 \begin_inset Flex Code
16176 status collapsed
16177
16178 \begin_layout Plain Layout
16179 Environment
16180 \end_layout
16181
16182 \end_inset
16183
16184  but adds the necessary mandatory argument (the longest label) to the begin
16185  statement of the bibliography environment:
16186 \begin_inset Newline newline
16187 \end_inset
16188
16189
16190 \begin_inset Flex Code
16191 status collapsed
16192
16193 \begin_layout Plain Layout
16194
16195 \backslash
16196 begin{thebibliography}{99}
16197 \end_layout
16198
16199 \end_inset
16200
16201 .
16202  It is therefore only useful for bibliography environments.
16203  The default longest label 
16204 \begin_inset Quotes eld
16205 \end_inset
16206
16207 99
16208 \begin_inset Quotes erd
16209 \end_inset
16210
16211  can be changed by the user in the paragraph settings of a bibliography
16212  item.
16213 \end_layout
16214
16215 \begin_layout Standard
16216 Putting the last few things together, the \SpecialChar LaTeX
16217  output will be either: 
16218 \end_layout
16219
16220 \begin_layout LyX-Code
16221
16222 \backslash
16223 LatexName[LatexParam]{\SpecialChar ldots
16224 }
16225 \end_layout
16226
16227 \begin_layout Standard
16228 or: 
16229 \end_layout
16230
16231 \begin_layout LyX-Code
16232
16233 \backslash
16234 begin{LatexName}[LatexParam] \SpecialChar ldots
16235  
16236 \backslash
16237 end{LatexName}.
16238 \end_layout
16239
16240 \begin_layout Standard
16241 depending upon the \SpecialChar LaTeX
16242  type.
16243 \end_layout
16244
16245 \end_deeper
16246 \begin_layout Description
16247 \begin_inset Flex Code
16248 status collapsed
16249
16250 \begin_layout Plain Layout
16251 LeftDelim
16252 \end_layout
16253
16254 \end_inset
16255
16256  [
16257 \begin_inset Flex Code
16258 status collapsed
16259
16260 \begin_layout Plain Layout
16261 string
16262 \end_layout
16263
16264 \end_inset
16265
16266 ] A string that is put at the beginning of the style content.
16267  A line break in the output can be indicated by 
16268 \begin_inset Flex Code
16269 status collapsed
16270
16271 \begin_layout Plain Layout
16272 <br/>
16273 \end_layout
16274
16275 \end_inset
16276
16277 .
16278 \end_layout
16279
16280 \begin_layout Description
16281 \begin_inset Flex Code
16282 status collapsed
16283
16284 \begin_layout Plain Layout
16285 LeftMargin
16286 \end_layout
16287
16288 \end_inset
16289
16290  [
16291 \begin_inset Flex Code
16292 status collapsed
16293
16294 \begin_layout Plain Layout
16295 string=""
16296 \end_layout
16297
16298 \end_inset
16299
16300 ] If you put styles into environments, the different 
16301 \begin_inset Flex Code
16302 status collapsed
16303
16304 \begin_layout Plain Layout
16305 LeftMargin
16306 \end_layout
16307
16308 \end_inset
16309
16310  are not simply added, but added with a factor 
16311 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16312 \end_inset
16313
16314 .
16315  Note that this parameter is also used when 
16316 \begin_inset Flex Code
16317 status collapsed
16318
16319 \begin_layout Plain Layout
16320 Margin
16321 \end_layout
16322
16323 \end_inset
16324
16325  is defined as 
16326 \begin_inset Flex Code
16327 status collapsed
16328
16329 \begin_layout Plain Layout
16330 Manual
16331 \end_layout
16332
16333 \end_inset
16334
16335  or 
16336 \begin_inset Flex Code
16337 status collapsed
16338
16339 \begin_layout Plain Layout
16340 Dynamic
16341 \end_layout
16342
16343 \end_inset
16344
16345 .
16346  Then it is added to the manual or dynamic margin.
16347 \begin_inset Newline newline
16348 \end_inset
16349
16350 For example 
16351 \begin_inset Quotes eld
16352 \end_inset
16353
16354
16355 \begin_inset Flex Code
16356 status collapsed
16357
16358 \begin_layout Plain Layout
16359 MM
16360 \end_layout
16361
16362 \end_inset
16363
16364
16365 \begin_inset Quotes erd
16366 \end_inset
16367
16368  means that the paragraph is indented with the width of 
16369 \begin_inset Quotes eld
16370 \end_inset
16371
16372
16373 \begin_inset Flex Code
16374 status collapsed
16375
16376 \begin_layout Plain Layout
16377 MM
16378 \end_layout
16379
16380 \end_inset
16381
16382
16383 \begin_inset Quotes erd
16384 \end_inset
16385
16386  in the normal font.
16387  You can get a negative width by prefixing the string with 
16388 \begin_inset Quotes eld
16389 \end_inset
16390
16391
16392 \begin_inset Flex Code
16393 status collapsed
16394
16395 \begin_layout Plain Layout
16396 -
16397 \end_layout
16398
16399 \end_inset
16400
16401
16402 \begin_inset Quotes erd
16403 \end_inset
16404
16405 .
16406  This way was chosen so that the look is the same with each used screen
16407  font.
16408 \end_layout
16409
16410 \begin_layout Description
16411 \begin_inset Flex Code
16412 status collapsed
16413
16414 \begin_layout Plain Layout
16415 Margin
16416 \end_layout
16417
16418 \end_inset
16419
16420  [
16421 \begin_inset Flex Code
16422 status collapsed
16423
16424 \begin_layout Plain Layout
16425
16426 \emph on
16427 Static
16428 \emph default
16429 , Manual, Dynamic, First_Dynamic, Right_Address_Box
16430 \end_layout
16431
16432 \end_inset
16433
16434
16435 \begin_inset Newline newline
16436 \end_inset
16437
16438 The kind of margin that the style has on the left side.
16439 \end_layout
16440
16441 \begin_deeper
16442 \begin_layout Description
16443 \begin_inset Flex Code
16444 status collapsed
16445
16446 \begin_layout Plain Layout
16447 Static
16448 \end_layout
16449
16450 \end_inset
16451
16452  just means a fixed margin.
16453 \end_layout
16454
16455 \begin_layout Description
16456 \begin_inset Flex Code
16457 status collapsed
16458
16459 \begin_layout Plain Layout
16460 Manual
16461 \end_layout
16462
16463 \end_inset
16464
16465  means that the left margin depends on the string entered in the 
16466 \begin_inset Flex Noun
16467 status collapsed
16468
16469 \begin_layout Plain Layout
16470 Edit\SpecialChar menuseparator
16471 Paragraph
16472 \begin_inset space ~
16473 \end_inset
16474
16475 Settings
16476 \end_layout
16477
16478 \end_inset
16479
16480  dialog.
16481  This is used to typeset nice lists without tabulators.
16482 \end_layout
16483
16484 \begin_layout Description
16485 \begin_inset Flex Code
16486 status collapsed
16487
16488 \begin_layout Plain Layout
16489 Dynamic
16490 \end_layout
16491
16492 \end_inset
16493
16494  means that the margin depends on the size of the label.
16495  This is used for automatic enumerated headlines.
16496  It is obvious that the headline 
16497 \begin_inset Quotes eld
16498 \end_inset
16499
16500 5.4.3.2.1 Very long headline
16501 \begin_inset Quotes erd
16502 \end_inset
16503
16504  must have a wider left margin (as wide as 
16505 \begin_inset Quotes eld
16506 \end_inset
16507
16508 5.4.3.2.1
16509 \begin_inset Quotes erd
16510 \end_inset
16511
16512  plus the space) than 
16513 \begin_inset Quotes eld
16514 \end_inset
16515
16516 3.2 Very long headline
16517 \begin_inset Quotes erd
16518 \end_inset
16519
16520 , even if standard 
16521 \begin_inset Quotes eld
16522 \end_inset
16523
16524 word processors
16525 \begin_inset Quotes erd
16526 \end_inset
16527
16528  are not able to do this.
16529 \end_layout
16530
16531 \begin_layout Description
16532 \begin_inset Flex Code
16533 status collapsed
16534
16535 \begin_layout Plain Layout
16536 First_Dynamic
16537 \end_layout
16538
16539 \end_inset
16540
16541  is similar, but only the very first row of the paragraph is dynamic, while
16542  the others are static; this is used, for example, for descriptions.
16543 \end_layout
16544
16545 \begin_layout Description
16546 \begin_inset Flex Code
16547 status collapsed
16548
16549 \begin_layout Plain Layout
16550 Right_Address_Box
16551 \end_layout
16552
16553 \end_inset
16554
16555  means the margin is chosen in a way that the longest row of this paragraph
16556  fits to the right margin.
16557  This is used to typeset an address on the right edge of the page.
16558 \end_layout
16559
16560 \end_deeper
16561 \begin_layout Description
16562 \begin_inset Flex Code
16563 status collapsed
16564
16565 \begin_layout Plain Layout
16566 NeedProtect
16567 \end_layout
16568
16569 \end_inset
16570
16571  [
16572 \begin_inset Flex Code
16573 status collapsed
16574
16575 \begin_layout Plain Layout
16576
16577 \emph on
16578 0
16579 \end_layout
16580
16581 \end_inset
16582
16583 ,
16584 \begin_inset space \thinspace{}
16585 \end_inset
16586
16587
16588 \begin_inset Flex Code
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592 1
16593 \end_layout
16594
16595 \end_inset
16596
16597 ] Whether fragile commands in this style should be 
16598 \begin_inset Flex Code
16599 status collapsed
16600
16601 \begin_layout Plain Layout
16602
16603 \backslash
16604 protect
16605 \end_layout
16606
16607 \end_inset
16608
16609 'ed.
16610  (Note: This is 
16611 \emph on
16612 not
16613 \emph default
16614  whether this command should itself be protected.)
16615 \change_inserted -712698321 1523696949
16616
16617 \end_layout
16618
16619 \begin_layout Description
16620
16621 \change_inserted -712698321 1552395557
16622 \begin_inset Flex Code
16623 status collapsed
16624
16625 \begin_layout Plain Layout
16626
16627 \change_inserted -712698321 1523696950
16628 NeedCProtect
16629 \change_unchanged
16630
16631 \end_layout
16632
16633 \end_inset
16634
16635  [
16636 \begin_inset Flex Code
16637 status collapsed
16638
16639 \begin_layout Plain Layout
16640
16641 \change_inserted -712698321 1523696950
16642
16643 \emph on
16644 0
16645 \change_unchanged
16646
16647 \end_layout
16648
16649 \end_inset
16650
16651 ,
16652 \begin_inset space \thinspace{}
16653 \end_inset
16654
16655
16656 \begin_inset Flex Code
16657 status collapsed
16658
16659 \begin_layout Plain Layout
16660
16661 \change_inserted -712698321 1523696950
16662 1
16663 \change_unchanged
16664
16665 \end_layout
16666
16667 \end_inset
16668
16669 ] This causes macros that contain this layout to be protected with 
16670 \begin_inset Flex Code
16671 status collapsed
16672
16673 \begin_layout Plain Layout
16674
16675 \change_inserted -712698321 1523696950
16676
16677 \backslash
16678 cprotect
16679 \change_unchanged
16680
16681 \end_layout
16682
16683 \end_inset
16684
16685  (cf.
16686  package 
16687 \family sans
16688 cprotect
16689 \family default
16690 ) if necessary and thus allows (some) verbatim stuff in macros.
16691 \end_layout
16692
16693 \begin_layout Description
16694
16695 \change_inserted -712698321 1552395844
16696 \begin_inset Flex Code
16697 status collapsed
16698
16699 \begin_layout Plain Layout
16700
16701 \change_inserted -712698321 1552395561
16702 NeedMBoxProtect
16703 \change_unchanged
16704
16705 \end_layout
16706
16707 \end_inset
16708
16709  [
16710 \begin_inset Flex Code
16711 status collapsed
16712
16713 \begin_layout Plain Layout
16714
16715 \change_inserted -712698321 1552395557
16716
16717 \emph on
16718 0
16719 \change_unchanged
16720
16721 \end_layout
16722
16723 \end_inset
16724
16725 ,
16726 \begin_inset space \thinspace{}
16727 \end_inset
16728
16729
16730 \begin_inset Flex Code
16731 status collapsed
16732
16733 \begin_layout Plain Layout
16734
16735 \change_inserted -712698321 1552395557
16736 1
16737 \change_unchanged
16738
16739 \end_layout
16740
16741 \end_inset
16742
16743 ] Whether specific commands in this style (such as 
16744 \begin_inset Flex Code
16745 status collapsed
16746
16747 \begin_layout Plain Layout
16748
16749 \change_inserted -712698321 1552395655
16750
16751 \backslash
16752 cite
16753 \change_unchanged
16754
16755 \end_layout
16756
16757 \end_inset
16758
16759  and 
16760 \begin_inset Flex Code
16761 status collapsed
16762
16763 \begin_layout Plain Layout
16764
16765 \change_inserted -712698321 1552395661
16766
16767 \backslash
16768 ref
16769 \change_unchanged
16770
16771 \end_layout
16772
16773 \end_inset
16774
16775 ) should be protected in an 
16776 \begin_inset Flex Code
16777 status collapsed
16778
16779 \begin_layout Plain Layout
16780
16781 \change_inserted -712698321 1552395631
16782
16783 \backslash
16784 mbox
16785 \change_unchanged
16786
16787 \end_layout
16788
16789 \end_inset
16790
16791 .
16792  This is particularly needed for styles that draw on 
16793 \family sans
16794 ulem
16795 \family default
16796  or 
16797 \family sans
16798 soul
16799 \family default
16800  commands which parse their content in complex ways.
16801 \change_unchanged
16802
16803 \end_layout
16804
16805 \begin_layout Description
16806 \begin_inset Flex Code
16807 status collapsed
16808
16809 \begin_layout Plain Layout
16810 Newline
16811 \end_layout
16812
16813 \end_inset
16814
16815  [
16816 \begin_inset Flex Code
16817 status collapsed
16818
16819 \begin_layout Plain Layout
16820 0
16821 \end_layout
16822
16823 \end_inset
16824
16825 ,
16826 \begin_inset space \thinspace{}
16827 \end_inset
16828
16829
16830 \begin_inset Flex Code
16831 status collapsed
16832
16833 \begin_layout Plain Layout
16834
16835 \emph on
16836 1
16837 \end_layout
16838
16839 \end_inset
16840
16841 ] Whether newlines are translated into \SpecialChar LaTeX
16842  newlines (
16843 \begin_inset Flex Code
16844 status collapsed
16845
16846 \begin_layout Plain Layout
16847
16848 \backslash
16849
16850 \backslash
16851
16852 \end_layout
16853
16854 \end_inset
16855
16856 ) or not.
16857  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16858  editing
16859  inside \SpecialChar LyX
16860 .
16861 \end_layout
16862
16863 \begin_layout Description
16864 \begin_inset Flex Code
16865 status collapsed
16866
16867 \begin_layout Plain Layout
16868 NextNoIndent
16869 \end_layout
16870
16871 \end_inset
16872
16873  [
16874 \begin_inset Flex Code
16875 status collapsed
16876
16877 \begin_layout Plain Layout
16878
16879 \emph on
16880 0
16881 \end_layout
16882
16883 \end_inset
16884
16885 ,
16886 \begin_inset space \thinspace{}
16887 \end_inset
16888
16889
16890 \begin_inset Flex Code
16891 status collapsed
16892
16893 \begin_layout Plain Layout
16894 1
16895 \end_layout
16896
16897 \end_inset
16898
16899 ] If set to true, and if 
16900 \begin_inset Flex Code
16901 status collapsed
16902
16903 \begin_layout Plain Layout
16904 DefaultStyle
16905 \end_layout
16906
16907 \end_inset
16908
16909  (usually 
16910 \begin_inset Flex Code
16911 status collapsed
16912
16913 \begin_layout Plain Layout
16914 Standard
16915 \end_layout
16916
16917 \end_inset
16918
16919 ) paragraphs are being indented, then the indentation of such a paragraph
16920  following one of this type will be suppressed.
16921  (So this will not affect the display of non-default paragraphs.)
16922 \end_layout
16923
16924 \begin_layout Description
16925 \begin_inset Flex Code
16926 status collapsed
16927
16928 \begin_layout Plain Layout
16929 ObsoletedBy
16930 \end_layout
16931
16932 \end_inset
16933
16934  [
16935 \begin_inset Flex Code
16936 status collapsed
16937
16938 \begin_layout Plain Layout
16939 <name>
16940 \end_layout
16941
16942 \end_inset
16943
16944 ] Name of a style that has replaced this style.
16945  This is used to rename a style, while keeping backward compatibility.
16946 \end_layout
16947
16948 \begin_layout Description
16949 \begin_inset Flex Code
16950 status collapsed
16951
16952 \begin_layout Plain Layout
16953 ParagraphGroup
16954 \end_layout
16955
16956 \end_inset
16957
16958  [
16959 \begin_inset Flex Code
16960 status collapsed
16961
16962 \begin_layout Plain Layout
16963 0
16964 \end_layout
16965
16966 \end_inset
16967
16968 ,
16969 \begin_inset space \thinspace{}
16970 \end_inset
16971
16972
16973 \begin_inset Flex Code
16974 status collapsed
16975
16976 \begin_layout Plain Layout
16977 1
16978 \end_layout
16979
16980 \end_inset
16981
16982 ] Determines whether consecutive paragraphs of the same type are treated
16983  as belonging together.
16984  This has the effect that the 
16985 \begin_inset Flex Code
16986 status collapsed
16987
16988 \begin_layout Plain Layout
16989 GuiLabel
16990 \end_layout
16991
16992 \end_inset
16993
16994  is only printed once before such a group.
16995  By default, this is true for 
16996 \begin_inset Flex Code
16997 status collapsed
16998
16999 \begin_layout Plain Layout
17000 LaTeXType
17001 \end_layout
17002
17003 \end_inset
17004
17005  
17006 \begin_inset Flex Code
17007 status collapsed
17008
17009 \begin_layout Plain Layout
17010 Environment
17011 \end_layout
17012
17013 \end_inset
17014
17015  and 
17016 \begin_inset Flex Code
17017 status collapsed
17018
17019 \begin_layout Plain Layout
17020 Bib_Environment
17021 \end_layout
17022
17023 \end_inset
17024
17025  and false for all other types.
17026 \end_layout
17027
17028 \begin_layout Description
17029 \begin_inset Flex Code
17030 status collapsed
17031
17032 \begin_layout Plain Layout
17033 ParbreakIsNewline
17034 \end_layout
17035
17036 \end_inset
17037
17038  [
17039 \begin_inset Flex Code
17040 status collapsed
17041
17042 \begin_layout Plain Layout
17043
17044 \emph on
17045 0
17046 \end_layout
17047
17048 \end_inset
17049
17050 ,
17051 \begin_inset space \thinspace{}
17052 \end_inset
17053
17054
17055 \begin_inset Flex Code
17056 status collapsed
17057
17058 \begin_layout Plain Layout
17059 1
17060 \end_layout
17061
17062 \end_inset
17063
17064 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
17065  output,
17066  but only by a line break; together with 
17067 \begin_inset Flex Code
17068 status collapsed
17069
17070 \begin_layout Plain Layout
17071 PassThru 1
17072 \end_layout
17073
17074 \end_inset
17075
17076 , this allows to emulate a plain text editor (like the ERT inset).
17077 \end_layout
17078
17079 \begin_layout Description
17080 \begin_inset Flex Code
17081 status collapsed
17082
17083 \begin_layout Plain Layout
17084 ParIndent
17085 \end_layout
17086
17087 \end_inset
17088
17089  [
17090 \begin_inset Flex Code
17091 status collapsed
17092
17093 \begin_layout Plain Layout
17094 string=""
17095 \end_layout
17096
17097 \end_inset
17098
17099 ] The indent of the very first line of a paragraph.
17100  The
17101 \begin_inset Newline newline
17102 \end_inset
17103
17104
17105 \begin_inset Flex Code
17106 status collapsed
17107
17108 \begin_layout Plain Layout
17109 Parindent
17110 \end_layout
17111
17112 \end_inset
17113
17114  will be fixed for a certain style.
17115  The exception is the default style, since the indentation for these paragraphs
17116  can be prohibited with 
17117 \begin_inset Flex Code
17118 status collapsed
17119
17120 \begin_layout Plain Layout
17121 NextNoIndent
17122 \end_layout
17123
17124 \end_inset
17125
17126 .
17127  Also, 
17128 \begin_inset Flex Code
17129 status collapsed
17130
17131 \begin_layout Plain Layout
17132 Standard
17133 \end_layout
17134
17135 \end_inset
17136
17137  style paragraphs inside environments use the 
17138 \begin_inset Flex Code
17139 status collapsed
17140
17141 \begin_layout Plain Layout
17142 Parindent
17143 \end_layout
17144
17145 \end_inset
17146
17147  of the environment, not their native one.
17148  For example, 
17149 \begin_inset Flex Code
17150 status collapsed
17151
17152 \begin_layout Plain Layout
17153 Standard
17154 \end_layout
17155
17156 \end_inset
17157
17158  paragraphs inside an enumeration are not indented.
17159 \end_layout
17160
17161 \begin_layout Description
17162 \begin_inset Flex Code
17163 status collapsed
17164
17165 \begin_layout Plain Layout
17166 ParSep
17167 \end_layout
17168
17169 \end_inset
17170
17171  [
17172 \begin_inset Flex Code
17173 status collapsed
17174
17175 \begin_layout Plain Layout
17176 float=0
17177 \end_layout
17178
17179 \end_inset
17180
17181 ] The vertical space between two paragraphs of this style.
17182 \end_layout
17183
17184 \begin_layout Description
17185 \begin_inset Flex Code
17186 status collapsed
17187
17188 \begin_layout Plain Layout
17189 Parskip
17190 \end_layout
17191
17192 \end_inset
17193
17194  [
17195 \begin_inset Flex Code
17196 status collapsed
17197
17198 \begin_layout Plain Layout
17199 float=0
17200 \end_layout
17201
17202 \end_inset
17203
17204 ] \SpecialChar LyX
17205  allows the user to choose either 
17206 \begin_inset Quotes eld
17207 \end_inset
17208
17209 indent
17210 \begin_inset Quotes erd
17211 \end_inset
17212
17213  or 
17214 \begin_inset Quotes eld
17215 \end_inset
17216
17217 skip
17218 \begin_inset Quotes erd
17219 \end_inset
17220
17221  to separate paragraphs.
17222  When 
17223 \begin_inset Quotes eld
17224 \end_inset
17225
17226 indent
17227 \begin_inset Quotes erd
17228 \end_inset
17229
17230  is chosen, 
17231 \begin_inset Flex Code
17232 status collapsed
17233
17234 \begin_layout Plain Layout
17235 Parskip
17236 \end_layout
17237
17238 \end_inset
17239
17240  is ignored.
17241  When 
17242 \begin_inset Quotes eld
17243 \end_inset
17244
17245 skip
17246 \begin_inset Quotes erd
17247 \end_inset
17248
17249  is chosen, 
17250 \begin_inset Flex Code
17251 status collapsed
17252
17253 \begin_layout Plain Layout
17254 ParIndent
17255 \end_layout
17256
17257 \end_inset
17258
17259  is ignored and all paragraphs are separated by the 
17260 \begin_inset Flex Code
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264 Parskip
17265 \end_layout
17266
17267 \end_inset
17268
17269  argument.
17270  The vertical space is calculated with 
17271 \begin_inset Flex Code
17272 status collapsed
17273
17274 \begin_layout Plain Layout
17275 Parskip
17276 \begin_inset space ~
17277 \end_inset
17278
17279 * DefaultHeight
17280 \end_layout
17281
17282 \end_inset
17283
17284  where 
17285 \begin_inset Flex Code
17286 status collapsed
17287
17288 \begin_layout Plain Layout
17289 DefaultHeight
17290 \end_layout
17291
17292 \end_inset
17293
17294  is the height of a row with the normal font.
17295  This way, the look stays the same with different screen fonts.
17296 \end_layout
17297
17298 \begin_layout Description
17299 \begin_inset Flex Code
17300 status collapsed
17301
17302 \begin_layout Plain Layout
17303 PassThru
17304 \end_layout
17305
17306 \end_inset
17307
17308  [
17309 \begin_inset Flex Code
17310 status collapsed
17311
17312 \begin_layout Plain Layout
17313
17314 \emph on
17315 0
17316 \end_layout
17317
17318 \end_inset
17319
17320 ,
17321 \begin_inset space \thinspace{}
17322 \end_inset
17323
17324
17325 \begin_inset Flex Code
17326 status collapsed
17327
17328 \begin_layout Plain Layout
17329 1
17330 \end_layout
17331
17332 \end_inset
17333
17334 ] Whether the contents of this paragraph should be output in raw form, meaning
17335  without special translations that \SpecialChar LaTeX
17336  would require.
17337 \end_layout
17338
17339 \begin_layout Description
17340 \begin_inset Flex Code
17341 status collapsed
17342
17343 \begin_layout Plain Layout
17344 PassThruChars
17345 \end_layout
17346
17347 \end_inset
17348
17349  [
17350 \begin_inset Flex Code
17351 status collapsed
17352
17353 \begin_layout Plain Layout
17354 string
17355 \end_layout
17356
17357 \end_inset
17358
17359 ]
17360 \family typewriter
17361  
17362 \family default
17363 Defines individual characters that should be output in raw form, meaning
17364  without special translations that \SpecialChar LaTeX
17365  would require.
17366 \end_layout
17367
17368 \begin_layout Description
17369 \begin_inset Flex Code
17370 status collapsed
17371
17372 \begin_layout Plain Layout
17373 Preamble
17374 \end_layout
17375
17376 \end_inset
17377
17378  Information to be included in the \SpecialChar LaTeX
17379  preamble when this style is used.
17380  Used to define macros, load packages, etc., required by this particular
17381  style.
17382  Must end with 
17383 \begin_inset Quotes eld
17384 \end_inset
17385
17386
17387 \begin_inset Flex Code
17388 status collapsed
17389
17390 \begin_layout Plain Layout
17391 EndPreamble
17392 \end_layout
17393
17394 \end_inset
17395
17396
17397 \begin_inset Quotes erd
17398 \end_inset
17399
17400 .
17401 \end_layout
17402
17403 \begin_layout Description
17404 \begin_inset Flex Code
17405 status collapsed
17406
17407 \begin_layout Plain Layout
17408 RefPrefix
17409 \end_layout
17410
17411 \end_inset
17412
17413  [
17414 \begin_inset Flex Code
17415 status collapsed
17416
17417 \begin_layout Plain Layout
17418 string
17419 \end_layout
17420
17421 \end_inset
17422
17423 ] The prefix to use when creating labels referring to paragraphs of this
17424  type.
17425  This allows the use of formatted references.
17426 \end_layout
17427
17428 \begin_layout Description
17429 \begin_inset Flex Code
17430 status collapsed
17431
17432 \begin_layout Plain Layout
17433 Requires 
17434 \end_layout
17435
17436 \end_inset
17437
17438  [
17439 \begin_inset Flex Code
17440 status collapsed
17441
17442 \begin_layout Plain Layout
17443 string
17444 \end_layout
17445
17446 \end_inset
17447
17448 ] Whether the style requires the feature 
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453 string
17454 \end_layout
17455
17456 \end_inset
17457
17458  (see 
17459 \begin_inset CommandInset ref
17460 LatexCommand ref
17461 reference "chap:List-of-functions"
17462
17463 \end_inset
17464
17465  for the list of features).
17466  If you require a package with specific options, you can additionally use
17467  
17468 \begin_inset Flex Code
17469 status collapsed
17470
17471 \begin_layout Plain Layout
17472 PackageOptions
17473 \end_layout
17474
17475 \end_inset
17476
17477  as a general text class parameter (see 
17478 \begin_inset CommandInset ref
17479 LatexCommand ref
17480 reference "subsec:General-text-class"
17481
17482 \end_inset
17483
17484 ).
17485 \end_layout
17486
17487 \begin_layout Description
17488 \begin_inset Flex Code
17489 status collapsed
17490
17491 \begin_layout Plain Layout
17492 ResetArgs
17493 \end_layout
17494
17495 \end_inset
17496
17497  [
17498 \begin_inset Flex Code
17499 status collapsed
17500
17501 \begin_layout Plain Layout
17502
17503 \emph on
17504 0
17505 \end_layout
17506
17507 \end_inset
17508
17509 ,
17510 \begin_inset Flex Code
17511 status collapsed
17512
17513 \begin_layout Plain Layout
17514 1
17515 \end_layout
17516
17517 \end_inset
17518
17519 ] Resets the \SpecialChar LaTeX
17520  arguments of this style (as defined via the 
17521 \begin_inset Flex Code
17522 status collapsed
17523
17524 \begin_layout Plain Layout
17525 Argument
17526 \end_layout
17527
17528 \end_inset
17529
17530  tag).
17531  This is useful if you have copied a style via 
17532 \begin_inset Flex Code
17533 status collapsed
17534
17535 \begin_layout Plain Layout
17536 CopyStyle
17537 \end_layout
17538
17539 \end_inset
17540
17541 , but you do not want to inherit its (required and optional) arguments.
17542 \end_layout
17543
17544 \begin_layout Description
17545 \begin_inset Flex Code
17546 status collapsed
17547
17548 \begin_layout Plain Layout
17549 ResumeCounter
17550 \end_layout
17551
17552 \end_inset
17553
17554  [
17555 \begin_inset Flex Code
17556 status collapsed
17557
17558 \begin_layout Plain Layout
17559
17560 \emph on
17561 0
17562 \end_layout
17563
17564 \end_inset
17565
17566 ,
17567 \begin_inset Flex Code
17568 status collapsed
17569
17570 \begin_layout Plain Layout
17571 1
17572 \end_layout
17573
17574 \end_inset
17575
17576 ] Resumes a counter that is usually reset at each new sequence of layouts.
17577  This is currently only useful when 
17578 \begin_inset Flex Code
17579 status collapsed
17580
17581 \begin_layout Plain Layout
17582 LabelType
17583 \end_layout
17584
17585 \end_inset
17586
17587  is 
17588 \begin_inset Flex Code
17589 status collapsed
17590
17591 \begin_layout Plain Layout
17592 Enumerate
17593 \end_layout
17594
17595 \end_inset
17596
17597 .
17598 \end_layout
17599
17600 \begin_layout Description
17601 \begin_inset Flex Code
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605 RightDelim
17606 \end_layout
17607
17608 \end_inset
17609
17610  [
17611 \begin_inset Flex Code
17612 status collapsed
17613
17614 \begin_layout Plain Layout
17615 string
17616 \end_layout
17617
17618 \end_inset
17619
17620 ] A string that is put at the end of the layout content.
17621  A line break in the output can be indicated by 
17622 \begin_inset Flex Code
17623 status collapsed
17624
17625 \begin_layout Plain Layout
17626 <br/>
17627 \end_layout
17628
17629 \end_inset
17630
17631 .
17632 \end_layout
17633
17634 \begin_layout Description
17635 \begin_inset Flex Code
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639 RightMargin
17640 \end_layout
17641
17642 \end_inset
17643
17644  [
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 string=""
17650 \end_layout
17651
17652 \end_inset
17653
17654 ] Similar to 
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659 LeftMargin
17660 \end_layout
17661
17662 \end_inset
17663
17664 .
17665 \end_layout
17666
17667 \begin_layout Description
17668 \begin_inset Flex Code
17669 status collapsed
17670
17671 \begin_layout Plain Layout
17672 Spacing
17673 \end_layout
17674
17675 \end_inset
17676
17677  [
17678 \begin_inset Flex Code
17679 status collapsed
17680
17681 \begin_layout Plain Layout
17682
17683 \emph on
17684 single
17685 \end_layout
17686
17687 \end_inset
17688
17689
17690 \begin_inset Flex Code
17691 status collapsed
17692
17693 \begin_layout Plain Layout
17694 onehalf
17695 \end_layout
17696
17697 \end_inset
17698
17699
17700 \begin_inset Flex Code
17701 status collapsed
17702
17703 \begin_layout Plain Layout
17704 double
17705 \end_layout
17706
17707 \end_inset
17708
17709
17710 \begin_inset Flex Code
17711 status collapsed
17712
17713 \begin_layout Plain Layout
17714 other
17715 \begin_inset space ~
17716 \end_inset
17717
17718 <value>
17719 \end_layout
17720
17721 \end_inset
17722
17723 ] This defines what the default spacing should be in the style.
17724  The arguments 
17725 \begin_inset Flex Code
17726 status collapsed
17727
17728 \begin_layout Plain Layout
17729 single
17730 \end_layout
17731
17732 \end_inset
17733
17734
17735 \begin_inset Flex Code
17736 status collapsed
17737
17738 \begin_layout Plain Layout
17739 onehalf
17740 \end_layout
17741
17742 \end_inset
17743
17744  and 
17745 \begin_inset Flex Code
17746 status collapsed
17747
17748 \begin_layout Plain Layout
17749 double
17750 \end_layout
17751
17752 \end_inset
17753
17754  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17755  If you specify the argument 
17756 \begin_inset Flex Code
17757 status collapsed
17758
17759 \begin_layout Plain Layout
17760 other
17761 \end_layout
17762
17763 \end_inset
17764
17765 , then you must also provide a value argument which will be the actual multiplie
17766 r value.
17767  Note that, contrary to other parameters, 
17768 \begin_inset Flex Code
17769 status collapsed
17770
17771 \begin_layout Plain Layout
17772 Spacing
17773 \end_layout
17774
17775 \end_inset
17776
17777  implies the generation of specific \SpecialChar LaTeX
17778  code, using the \SpecialChar LaTeX
17779  package 
17780 \family roman
17781
17782 \begin_inset Flex Code
17783 status collapsed
17784
17785 \begin_layout Plain Layout
17786 setspace
17787 \end_layout
17788
17789 \end_inset
17790
17791 .
17792 \end_layout
17793
17794 \begin_layout Description
17795 \begin_inset Flex Code
17796 status collapsed
17797
17798 \begin_layout Plain Layout
17799 Spellcheck
17800 \end_layout
17801
17802 \end_inset
17803
17804  [
17805 \begin_inset Flex Code
17806 status collapsed
17807
17808 \begin_layout Plain Layout
17809 0
17810 \end_layout
17811
17812 \end_inset
17813
17814 ,
17815 \begin_inset space \thinspace{}
17816 \end_inset
17817
17818
17819 \begin_inset Flex Code
17820 status collapsed
17821
17822 \begin_layout Plain Layout
17823
17824 \emph on
17825 1
17826 \end_layout
17827
17828 \end_inset
17829
17830 ] Allow spell-checking paragraphs of this style.
17831  Default is true.
17832 \end_layout
17833
17834 \begin_layout Description
17835 \begin_inset Flex Code
17836 status collapsed
17837
17838 \begin_layout Plain Layout
17839 Step
17840 \change_deleted 731793113 1604355211
17841 Master
17842 \change_inserted 731793113 1604355212
17843 Parent
17844 \change_unchanged
17845 Counter
17846 \end_layout
17847
17848 \end_inset
17849
17850  [
17851 \begin_inset Flex Code
17852 status collapsed
17853
17854 \begin_layout Plain Layout
17855
17856 \emph on
17857 0
17858 \end_layout
17859
17860 \end_inset
17861
17862 ,
17863 \begin_inset Flex Code
17864 status collapsed
17865
17866 \begin_layout Plain Layout
17867 1
17868 \end_layout
17869
17870 \end_inset
17871
17872 ] Steps the 
17873 \change_deleted 731793113 1604355214
17874 master
17875 \change_inserted 731793113 1604355216
17876 parent
17877 \change_unchanged
17878  counter of a given counter at the beginning of a new sequence of layouts.
17879  This is currently only useful when 
17880 \begin_inset Flex Code
17881 status collapsed
17882
17883 \begin_layout Plain Layout
17884 LabelType
17885 \end_layout
17886
17887 \end_inset
17888
17889  is 
17890 \begin_inset Flex Code
17891 status collapsed
17892
17893 \begin_layout Plain Layout
17894 Enumerate
17895 \end_layout
17896
17897 \end_inset
17898
17899 .
17900 \end_layout
17901
17902 \begin_layout Description
17903 \begin_inset Flex Code
17904 status collapsed
17905
17906 \begin_layout Plain Layout
17907 TextFont
17908 \end_layout
17909
17910 \end_inset
17911
17912  The font used for the text body .
17913  See 
17914 \begin_inset CommandInset ref
17915 LatexCommand ref
17916 reference "subsec:Font-description"
17917
17918 \end_inset
17919
17920 .
17921 \end_layout
17922
17923 \begin_layout Description
17924 \begin_inset Flex Code
17925 status collapsed
17926
17927 \begin_layout Plain Layout
17928 TocLevel
17929 \end_layout
17930
17931 \end_inset
17932
17933
17934 \series medium
17935  [
17936 \begin_inset Flex Code
17937 status collapsed
17938
17939 \begin_layout Plain Layout
17940
17941 \series medium
17942 int=3
17943 \end_layout
17944
17945 \end_inset
17946
17947 ]
17948 \series default
17949  The level of the style in the table of contents.
17950  This is used for automatic numbering of section headings.
17951 \end_layout
17952
17953 \begin_layout Description
17954 \begin_inset Flex Code
17955 status collapsed
17956
17957 \begin_layout Plain Layout
17958 ToggleIndent
17959 \end_layout
17960
17961 \end_inset
17962
17963  [
17964 \emph on
17965
17966 \begin_inset Flex Code
17967 status collapsed
17968
17969 \begin_layout Plain Layout
17970
17971 \emph on
17972 default
17973 \end_layout
17974
17975 \end_inset
17976
17977
17978 \emph default
17979
17980 \begin_inset Flex Code
17981 status collapsed
17982
17983 \begin_layout Plain Layout
17984 always
17985 \end_layout
17986
17987 \end_inset
17988
17989
17990 \begin_inset Flex Code
17991 status collapsed
17992
17993 \begin_layout Plain Layout
17994 never
17995 \end_layout
17996
17997 \end_inset
17998
17999 ] This tag determines whether the first line indentation of this paragraph
18000  can be toggled via the Paragraph settings dialog.
18001  If 
18002 \emph on
18003
18004 \begin_inset Flex Code
18005 status collapsed
18006
18007 \begin_layout Plain Layout
18008
18009 \emph off
18010 default
18011 \end_layout
18012
18013 \end_inset
18014
18015
18016 \emph default
18017  is set, indentation can be toggled if the document settings use 
18018 \begin_inset Quotes eld
18019 \end_inset
18020
18021 indent
18022 \begin_inset Quotes erd
18023 \end_inset
18024
18025  paragraph style, with 
18026 \begin_inset Flex Code
18027 status collapsed
18028
18029 \begin_layout Plain Layout
18030 always
18031 \end_layout
18032
18033 \end_inset
18034
18035 , indentation can always be toggled, notwithstanding the document settings,
18036  with 
18037 \begin_inset Flex Code
18038 status collapsed
18039
18040 \begin_layout Plain Layout
18041 never
18042 \end_layout
18043
18044 \end_inset
18045
18046 , indentation can never be toggled.
18047 \end_layout
18048
18049 \begin_layout Description
18050 \begin_inset Flex Code
18051 status collapsed
18052
18053 \begin_layout Plain Layout
18054 TopSep
18055 \end_layout
18056
18057 \end_inset
18058
18059  [
18060 \begin_inset Flex Code
18061 status collapsed
18062
18063 \begin_layout Plain Layout
18064 float=0
18065 \end_layout
18066
18067 \end_inset
18068
18069 ] The vertical space with which the very first of a chain of paragraphs
18070  with this style is separated from the previous paragraph.
18071  If the previous paragraph has another style, the separations are not simply
18072  added, but the maximum is taken.
18073 \end_layout
18074
18075 \begin_layout Subsection
18076 \begin_inset CommandInset label
18077 LatexCommand label
18078 name "subsec:I18n"
18079
18080 \end_inset
18081
18082 Internationalization of Paragraph Styles
18083 \end_layout
18084
18085 \begin_layout Standard
18086 \SpecialChar LyX
18087  has long supported internationalization of layout information, but, until
18088  version 2.0, this applied only to the user interface and not to, say, PDF
18089  output.
18090  Thus, French authors were forced to resort to ugly hacks if they wanted
18091  `
18092 \lang french
18093 Théorème
18094 \lang english
18095  1' instead of `Theorem 1'.
18096  Thanks to Georg Baum, that is no longer the case.
18097 \end_layout
18098
18099 \begin_layout Standard
18100 If a 
18101 \begin_inset Flex Code
18102 status collapsed
18103
18104 \begin_layout Plain Layout
18105 Style
18106 \end_layout
18107
18108 \end_inset
18109
18110  defines text that is to appear in the typeset document, it may use 
18111 \begin_inset Flex Code
18112 status collapsed
18113
18114 \begin_layout Plain Layout
18115 LangPreamble
18116 \end_layout
18117
18118 \end_inset
18119
18120  and 
18121 \begin_inset Flex Code
18122 status collapsed
18123
18124 \begin_layout Plain Layout
18125 BabelPreamble
18126 \end_layout
18127
18128 \end_inset
18129
18130  to support non-English and even multi-language documents correctly.
18131  The following excerpt (from the 
18132 \begin_inset Flex Code
18133 status collapsed
18134
18135 \begin_layout Plain Layout
18136 theorems-ams.inc
18137 \end_layout
18138
18139 \end_inset
18140
18141  file) shows how this works:
18142 \end_layout
18143
18144 \begin_layout LyX-Code
18145 Preamble
18146 \end_layout
18147
18148 \begin_deeper
18149 \begin_layout LyX-Code
18150   
18151 \backslash
18152 theoremstyle{remark}
18153 \end_layout
18154
18155 \begin_layout LyX-Code
18156   
18157 \backslash
18158 newtheorem{claim}[thm]{
18159 \backslash
18160 protect
18161 \backslash
18162 claimname}
18163 \end_layout
18164
18165 \begin_layout LyX-Code
18166 EndPreamble
18167 \end_layout
18168
18169 \begin_layout LyX-Code
18170 LangPreamble
18171 \end_layout
18172
18173 \begin_layout LyX-Code
18174   
18175 \backslash
18176 providecommand{
18177 \backslash
18178 claimname}{_(Claim)}
18179 \end_layout
18180
18181 \begin_layout LyX-Code
18182 EndLangPreamble
18183 \end_layout
18184
18185 \begin_layout LyX-Code
18186 BabelPreamble
18187 \end_layout
18188
18189 \begin_layout LyX-Code
18190     
18191 \backslash
18192 addto
18193 \backslash
18194 captions$$lang{
18195 \backslash
18196 renewcommand{
18197 \backslash
18198 claimname}{_(Claim)}}
18199 \end_layout
18200
18201 \begin_layout LyX-Code
18202 EndBabelPreamble
18203 \end_layout
18204
18205 \end_deeper
18206 \begin_layout Standard
18207 In principle, any legal \SpecialChar LaTeX
18208  may appear in the 
18209 \begin_inset Flex Code
18210 status collapsed
18211
18212 \begin_layout Plain Layout
18213 LangPreamble
18214 \end_layout
18215
18216 \end_inset
18217
18218  and 
18219 \begin_inset Flex Code
18220 status collapsed
18221
18222 \begin_layout Plain Layout
18223 BabelPreamble
18224 \end_layout
18225
18226 \end_inset
18227
18228  tags, but in practice they will typically look as they do here.
18229  The key to correct translation of the typeset text is the definition of
18230  the \SpecialChar LaTeX
18231  command 
18232 \begin_inset Flex Code
18233 status collapsed
18234
18235 \begin_layout Plain Layout
18236
18237 \backslash
18238 claimname
18239 \end_layout
18240
18241 \end_inset
18242
18243  and its use in 
18244 \begin_inset Flex Code
18245 status collapsed
18246
18247 \begin_layout Plain Layout
18248
18249 \backslash
18250 newtheorem
18251 \end_layout
18252
18253 \end_inset
18254
18255 .
18256  
18257 \end_layout
18258
18259 \begin_layout Standard
18260 The 
18261 \begin_inset Flex Code
18262 status collapsed
18263
18264 \begin_layout Plain Layout
18265 LangPreamble
18266 \end_layout
18267
18268 \end_inset
18269
18270  tag provides for internationalization based upon the overall language of
18271  the document.
18272  The contents of the tag will be included in the preamble, just as with
18273  the 
18274 \begin_inset Flex Code
18275 status collapsed
18276
18277 \begin_layout Plain Layout
18278 Preamble
18279 \end_layout
18280
18281 \end_inset
18282
18283  tag.
18284  What makes it special is the use of the 
18285 \begin_inset Quotes eld
18286 \end_inset
18287
18288 function
18289 \begin_inset Quotes erd
18290 \end_inset
18291
18292  
18293 \begin_inset Flex Code
18294 status collapsed
18295
18296 \begin_layout Plain Layout
18297 _()
18298 \end_layout
18299
18300 \end_inset
18301
18302 , which will be replaced, when \SpecialChar LyX
18303  produces \SpecialChar LaTeX
18304  output, with the translation of
18305  its argument into the document language.
18306 \end_layout
18307
18308 \begin_layout Standard
18309 The 
18310 \begin_inset Flex Code
18311 status collapsed
18312
18313 \begin_layout Plain Layout
18314 BabelPreamble
18315 \end_layout
18316
18317 \end_inset
18318
18319  tag is more complex, since it is meant to provide support for multi-language
18320  documents and so offers an interface to the 
18321 \begin_inset Flex Code
18322 status collapsed
18323
18324 \begin_layout Plain Layout
18325 babel
18326 \end_layout
18327
18328 \end_inset
18329
18330  package.
18331  Its contents will be added to the preamble once for each language that
18332  appears in the document.
18333  In this case, the argument to 
18334 \begin_inset Flex Code
18335 status collapsed
18336
18337 \begin_layout Plain Layout
18338 _()
18339 \end_layout
18340
18341 \end_inset
18342
18343  will be replaced with its translation into the language in question; the
18344  expression 
18345 \begin_inset Flex Code
18346 status collapsed
18347
18348 \begin_layout Plain Layout
18349 $$lang
18350 \end_layout
18351
18352 \end_inset
18353
18354  is replaced by the language name (as used by the babel package).
18355 \end_layout
18356
18357 \begin_layout Standard
18358 A German document that also included a French section would thus have the
18359  following in the preamble:
18360 \end_layout
18361
18362 \begin_layout LyX-Code
18363
18364 \backslash
18365 addto
18366 \backslash
18367 captionsfrench{
18368 \backslash
18369 renewcommand{
18370 \backslash
18371 claimname}{Affirmation}}
18372 \begin_inset Newline newline
18373 \end_inset
18374
18375
18376 \backslash
18377 addto
18378 \backslash
18379 captionsngerman{
18380 \backslash
18381 renewcommand{
18382 \backslash
18383 claimname}{Behauptung}}
18384 \begin_inset Newline newline
18385 \end_inset
18386
18387
18388 \backslash
18389 providecommand{
18390 \backslash
18391 claimname}{Behauptung}
18392 \end_layout
18393
18394 \begin_layout Standard
18395 \SpecialChar LaTeX
18396  and 
18397 \begin_inset Flex Code
18398 status collapsed
18399
18400 \begin_layout Plain Layout
18401 babel
18402 \end_layout
18403
18404 \end_inset
18405
18406  will then conspire to produce the correct text in the output.
18407 \end_layout
18408
18409 \begin_layout Standard
18410 One important point to note here is that the translations are provided by
18411  \SpecialChar LyX
18412  itself, through the file 
18413 \begin_inset Flex Code
18414 status collapsed
18415
18416 \begin_layout Plain Layout
18417 layouttranslations
18418 \end_layout
18419
18420 \end_inset
18421
18422 .
18423  This means, in effect, that 
18424 \begin_inset Flex Code
18425 status collapsed
18426
18427 \begin_layout Plain Layout
18428 LangPreamble
18429 \end_layout
18430
18431 \end_inset
18432
18433  and 
18434 \begin_inset Flex Code
18435 status collapsed
18436
18437 \begin_layout Plain Layout
18438 BabelPreamble
18439 \end_layout
18440
18441 \end_inset
18442
18443  are really only of use in layout files that are provided with \SpecialChar LyX
18444 , since text
18445  entered in user-created layout files will not be seen by \SpecialChar LyX
18446 's internationalizatio
18447 n routines unless the 
18448 \begin_inset Flex Code
18449 status collapsed
18450
18451 \begin_layout Plain Layout
18452 layouttranslations
18453 \end_layout
18454
18455 \end_inset
18456
18457  file is modified accordingly.
18458  That said, however, any layout created with the intention that it will
18459  be included with \SpecialChar LyX
18460  should use these tags where appropriate.
18461  Please note that the paragraph style translations provided by \SpecialChar LyX
18462  will never
18463  change with a minor update (e.
18464 \begin_inset space \thinspace{}
18465 \end_inset
18466
18467 g.
18468 \begin_inset space \space{}
18469 \end_inset
18470
18471 from version 2.1.x to 2.1.y).
18472  It is however quite likely that a major update (e.
18473 \begin_inset space \thinspace{}
18474 \end_inset
18475
18476 g.
18477 \begin_inset space \space{}
18478 \end_inset
18479
18480 from 2.0.x to 2.1.0) will introduce new translations or corrections.
18481 \end_layout
18482
18483 \begin_layout Subsection
18484 Floats
18485 \begin_inset CommandInset label
18486 LatexCommand label
18487 name "subsec:Floats"
18488
18489 \end_inset
18490
18491
18492 \end_layout
18493
18494 \begin_layout Standard
18495 It is necessary to define the floats (
18496 \begin_inset Flex Noun
18497 status collapsed
18498
18499 \begin_layout Plain Layout
18500 figure
18501 \end_layout
18502
18503 \end_inset
18504
18505
18506 \begin_inset Flex Noun
18507 status collapsed
18508
18509 \begin_layout Plain Layout
18510 table
18511 \end_layout
18512
18513 \end_inset
18514
18515 , \SpecialChar ldots
18516 ) in the text class itself.
18517  Standard floats are included in the file 
18518 \begin_inset Flex Code
18519 status collapsed
18520
18521 \begin_layout Plain Layout
18522 stdfloats.inc
18523 \end_layout
18524
18525 \end_inset
18526
18527 , so you may have to do no more than add
18528 \end_layout
18529
18530 \begin_layout LyX-Code
18531 Input stdfloats.inc
18532 \end_layout
18533
18534 \begin_layout Standard
18535 to your layout file.
18536  If you want to implement a text class that proposes some other float types
18537  (like the AGU class bundled with \SpecialChar LyX
18538 ), the information below will hopefully
18539  help you:
18540 \end_layout
18541
18542 \begin_layout Description
18543 \begin_inset Flex Code
18544 status collapsed
18545
18546 \begin_layout Plain Layout
18547 AllowedPlacement
18548 \end_layout
18549
18550 \end_inset
18551
18552  [
18553 \begin_inset Flex Code
18554 status collapsed
18555
18556 \begin_layout Plain Layout
18557 string
18558 \end_layout
18559
18560 \end_inset
18561
18562 =!htbpH] Allowed placement options for this float type.
18563  The value is a string of placement characters.
18564  Possible characters include: 
18565 \emph on
18566 h
18567 \emph default
18568  (
18569 \begin_inset Quotes eld
18570 \end_inset
18571
18572 here if possible
18573 \begin_inset Quotes erd
18574 \end_inset
18575
18576 ), 
18577 \emph on
18578 t
18579 \emph default
18580  (
18581 \begin_inset Quotes eld
18582 \end_inset
18583
18584 top of page
18585 \begin_inset Quotes erd
18586 \end_inset
18587
18588 ), 
18589 \emph on
18590 b
18591 \emph default
18592  (
18593 \begin_inset Quotes eld
18594 \end_inset
18595
18596 bottom of page
18597 \begin_inset Quotes erd
18598 \end_inset
18599
18600 ), 
18601 \emph on
18602 p
18603 \emph default
18604  (
18605 \begin_inset Quotes eld
18606 \end_inset
18607
18608 page of floats
18609 \begin_inset Quotes erd
18610 \end_inset
18611
18612 ), 
18613 \emph on
18614 H
18615 \emph default
18616  (
18617 \begin_inset Quotes eld
18618 \end_inset
18619
18620 here definitely
18621 \begin_inset Quotes erd
18622 \end_inset
18623
18624 ) and 
18625 \emph on
18626 !
18627 \emph default
18628  (
18629 \begin_inset Quotes eld
18630 \end_inset
18631
18632 ignore LaTeX rules
18633 \begin_inset Quotes erd
18634 \end_inset
18635
18636 ).
18637  The order of the characters in the string does not matter.
18638  If no placement options are allowed, use the string 
18639 \emph on
18640 none
18641 \emph default
18642 .
18643 \end_layout
18644
18645 \begin_layout Description
18646 \begin_inset Flex Code
18647 status collapsed
18648
18649 \begin_layout Plain Layout
18650 AllowsSideways
18651 \end_layout
18652
18653 \end_inset
18654
18655  [
18656 \begin_inset Flex Code
18657 status collapsed
18658
18659 \begin_layout Plain Layout
18660
18661 \emph off
18662 0
18663 \end_layout
18664
18665 \end_inset
18666
18667 ,
18668 \begin_inset space \thinspace{}
18669 \end_inset
18670
18671
18672 \emph on
18673
18674 \begin_inset Flex Code
18675 status collapsed
18676
18677 \begin_layout Plain Layout
18678
18679 \emph on
18680 1
18681 \end_layout
18682
18683 \end_inset
18684
18685
18686 \emph default
18687 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
18688 -package 
18689 \family typewriter
18690 rotfloat
18691 \family default
18692  (sidewaysfloat).
18693  Set to 
18694 \begin_inset Flex Code
18695 status collapsed
18696
18697 \begin_layout Plain Layout
18698 0
18699 \end_layout
18700
18701 \end_inset
18702
18703  if the float does not support this feature.
18704 \end_layout
18705
18706 \begin_layout Description
18707 \begin_inset Flex Code
18708 status collapsed
18709
18710 \begin_layout Plain Layout
18711 AllowsWide
18712 \end_layout
18713
18714 \end_inset
18715
18716  [
18717 \begin_inset Flex Code
18718 status collapsed
18719
18720 \begin_layout Plain Layout
18721
18722 \emph off
18723 0
18724 \end_layout
18725
18726 \end_inset
18727
18728 ,
18729 \begin_inset space \thinspace{}
18730 \end_inset
18731
18732
18733 \emph on
18734
18735 \begin_inset Flex Code
18736 status collapsed
18737
18738 \begin_layout Plain Layout
18739
18740 \emph on
18741 1
18742 \end_layout
18743
18744 \end_inset
18745
18746
18747 \emph default
18748 ] Defines whether the float has a starred variant that spans columns in
18749  a two column paragraph.
18750  Set to 
18751 \begin_inset Flex Code
18752 status collapsed
18753
18754 \begin_layout Plain Layout
18755 0
18756 \end_layout
18757
18758 \end_inset
18759
18760  if the float does not support this feature.
18761 \end_layout
18762
18763 \begin_layout Description
18764 \begin_inset Flex Code
18765 status collapsed
18766
18767 \begin_layout Plain Layout
18768 Extension
18769 \end_layout
18770
18771 \end_inset
18772
18773  [
18774 \begin_inset Flex Code
18775 status collapsed
18776
18777 \begin_layout Plain Layout
18778 string
18779 \end_layout
18780
18781 \end_inset
18782
18783 =
18784 \begin_inset Quotes erd
18785 \end_inset
18786
18787
18788 \begin_inset Quotes erd
18789 \end_inset
18790
18791 ] The file name extension of an auxiliary file for the list of figures (or
18792  whatever).
18793  \SpecialChar LaTeX
18794  writes the captions to this file.
18795 \end_layout
18796
18797 \begin_layout Description
18798 \begin_inset Flex Code
18799 status collapsed
18800
18801 \begin_layout Plain Layout
18802 GuiName
18803 \end_layout
18804
18805 \end_inset
18806
18807  [
18808 \begin_inset Flex Code
18809 status collapsed
18810
18811 \begin_layout Plain Layout
18812 string
18813 \end_layout
18814
18815 \end_inset
18816
18817 =
18818 \begin_inset Quotes erd
18819 \end_inset
18820
18821
18822 \begin_inset Quotes erd
18823 \end_inset
18824
18825 ] The string that will be used in the menus and also for the caption.
18826  This is translated to the current language if babel is used.
18827 \end_layout
18828
18829 \begin_layout Description
18830 \begin_inset Flex Code
18831 status collapsed
18832
18833 \begin_layout Plain Layout
18834 HTML*
18835 \end_layout
18836
18837 \end_inset
18838
18839  These tags control the XHTML output.
18840  See 
18841 \begin_inset CommandInset ref
18842 LatexCommand ref
18843 reference "sec:Tags-for-XHTML"
18844
18845 \end_inset
18846
18847 .
18848 \end_layout
18849
18850 \begin_layout Description
18851 \begin_inset Flex Code
18852 status collapsed
18853
18854 \begin_layout Plain Layout
18855 IsPredefined
18856 \end_layout
18857
18858 \end_inset
18859
18860  [
18861 \emph on
18862
18863 \begin_inset Flex Code
18864 status collapsed
18865
18866 \begin_layout Plain Layout
18867 0
18868 \end_layout
18869
18870 \end_inset
18871
18872
18873 \emph default
18874 ,
18875 \begin_inset space \thinspace{}
18876 \end_inset
18877
18878
18879 \begin_inset Flex Code
18880 status collapsed
18881
18882 \begin_layout Plain Layout
18883 1
18884 \end_layout
18885
18886 \end_inset
18887
18888 ] Indicates whether the float is already defined in the document class or
18889  if instead the \SpecialChar LaTeX
18890  package 
18891 \begin_inset Flex Code
18892 status collapsed
18893
18894 \begin_layout Plain Layout
18895 float
18896 \end_layout
18897
18898 \end_inset
18899
18900  needs to be loaded to define it on-the-fly.
18901  The default is 
18902 \begin_inset Flex Code
18903 status collapsed
18904
18905 \begin_layout Plain Layout
18906 0
18907 \end_layout
18908
18909 \end_inset
18910
18911 , which means: 
18912 \begin_inset Flex Code
18913 status collapsed
18914
18915 \begin_layout Plain Layout
18916 float
18917 \end_layout
18918
18919 \end_inset
18920
18921  is used.
18922  It should be set to 
18923 \begin_inset Flex Code
18924 status collapsed
18925
18926 \begin_layout Plain Layout
18927 1
18928 \end_layout
18929
18930 \end_inset
18931
18932  if the float is already defined by the \SpecialChar LaTeX
18933  document class.
18934 \end_layout
18935
18936 \begin_layout Description
18937 \begin_inset Flex Code
18938 status collapsed
18939
18940 \begin_layout Plain Layout
18941 ListCommand
18942 \end_layout
18943
18944 \end_inset
18945
18946  [
18947 \begin_inset Flex Code
18948 status collapsed
18949
18950 \begin_layout Plain Layout
18951 string
18952 \end_layout
18953
18954 \end_inset
18955
18956 =
18957 \begin_inset Quotes erd
18958 \end_inset
18959
18960
18961 \begin_inset Quotes erd
18962 \end_inset
18963
18964 ] The command used to generate a list of floats of this type; the leading
18965  `
18966 \backslash
18967 ' must be omitted.
18968  This 
18969 \emph on
18970 must
18971 \emph default
18972  be given if 
18973 \begin_inset Flex Code
18974 status collapsed
18975
18976 \begin_layout Plain Layout
18977 UsesFloatPkg
18978 \end_layout
18979
18980 \end_inset
18981
18982  is false, since there is no standard way to generate this command.
18983  It is ignored if 
18984 \begin_inset Flex Code
18985 status collapsed
18986
18987 \begin_layout Plain Layout
18988 UsesFloatPkg
18989 \end_layout
18990
18991 \end_inset
18992
18993  is true, since in that case there is a standard way to define the command.
18994 \end_layout
18995
18996 \begin_layout Description
18997 \begin_inset Flex Code
18998 status collapsed
18999
19000 \begin_layout Plain Layout
19001 ListName
19002 \end_layout
19003
19004 \end_inset
19005
19006  [
19007 \begin_inset Flex Code
19008 status collapsed
19009
19010 \begin_layout Plain Layout
19011 string
19012 \end_layout
19013
19014 \end_inset
19015
19016 =
19017 \begin_inset Quotes erd
19018 \end_inset
19019
19020
19021 \begin_inset Quotes erd
19022 \end_inset
19023
19024 ] A title for a list of floats of this kind (list of figures, tables, or
19025  whatever).
19026  It is used for the screen label within \SpecialChar LyX
19027 , it is used by \SpecialChar LaTeX
19028  for the title and
19029  it is used as the title in the XHTML output.
19030  It will be translated to the document language.
19031 \end_layout
19032
19033 \begin_layout Description
19034 \begin_inset Flex Code
19035 status collapsed
19036
19037 \begin_layout Plain Layout
19038 NumberWithin
19039 \end_layout
19040
19041 \end_inset
19042
19043  [
19044 \begin_inset Flex Code
19045 status collapsed
19046
19047 \begin_layout Plain Layout
19048 string
19049 \end_layout
19050
19051 \end_inset
19052
19053 =
19054 \begin_inset Quotes erd
19055 \end_inset
19056
19057
19058 \begin_inset Quotes erd
19059 \end_inset
19060
19061 ] This (optional) argument determines whether floats of this class will
19062  be numbered within some sectional unit of the document.
19063  For example, if 
19064 \begin_inset Flex Code
19065 status collapsed
19066
19067 \begin_layout Plain Layout
19068 NumberWithin
19069 \end_layout
19070
19071 \end_inset
19072
19073  is set to 
19074 \begin_inset Quotes eld
19075 \end_inset
19076
19077
19078 \begin_inset Flex Code
19079 status collapsed
19080
19081 \begin_layout Plain Layout
19082 chapter
19083 \end_layout
19084
19085 \end_inset
19086
19087
19088 \begin_inset Quotes erd
19089 \end_inset
19090
19091 , the floats will be numbered within chapters.
19092  
19093 \end_layout
19094
19095 \begin_layout Description
19096 \begin_inset Flex Code
19097 status collapsed
19098
19099 \begin_layout Plain Layout
19100 Placement
19101 \end_layout
19102
19103 \end_inset
19104
19105  [
19106 \begin_inset Flex Code
19107 status collapsed
19108
19109 \begin_layout Plain Layout
19110 string
19111 \end_layout
19112
19113 \end_inset
19114
19115 =
19116 \begin_inset Quotes erd
19117 \end_inset
19118
19119
19120 \begin_inset Quotes erd
19121 \end_inset
19122
19123 ] The default placement for the given class of floats.
19124  The string should be as in standard \SpecialChar LaTeX
19125
19126 \begin_inset Flex Code
19127 status collapsed
19128
19129 \begin_layout Plain Layout
19130 t
19131 \end_layout
19132
19133 \end_inset
19134
19135
19136 \begin_inset Flex Code
19137 status collapsed
19138
19139 \begin_layout Plain Layout
19140 b
19141 \end_layout
19142
19143 \end_inset
19144
19145
19146 \begin_inset Flex Code
19147 status collapsed
19148
19149 \begin_layout Plain Layout
19150 p
19151 \end_layout
19152
19153 \end_inset
19154
19155  and 
19156 \begin_inset Flex Code
19157 status collapsed
19158
19159 \begin_layout Plain Layout
19160 h
19161 \end_layout
19162
19163 \end_inset
19164
19165  for top, bottom, page, and here, respectively.
19166 \begin_inset Foot
19167 status collapsed
19168
19169 \begin_layout Plain Layout
19170 Note that the order of these letters in the string is irrelevant, like in
19171  \SpecialChar LaTeX
19172 .
19173 \end_layout
19174
19175 \end_inset
19176
19177  On top of that there is a new type, 
19178 \begin_inset Flex Code
19179 status collapsed
19180
19181 \begin_layout Plain Layout
19182 H
19183 \end_layout
19184
19185 \end_inset
19186
19187 , which does not really correspond to a float, since it means: put it 
19188 \begin_inset Quotes eld
19189 \end_inset
19190
19191 here
19192 \begin_inset Quotes erd
19193 \end_inset
19194
19195  and nowhere else.
19196  Note however that the 
19197 \begin_inset Flex Code
19198 status collapsed
19199
19200 \begin_layout Plain Layout
19201 H
19202 \end_layout
19203
19204 \end_inset
19205
19206  specifier is special and, because of implementation details, cannot be
19207  used in non-built in float types.
19208  If you do not understand what this means, just use 
19209 \begin_inset Quotes eld
19210 \end_inset
19211
19212
19213 \begin_inset Flex Code
19214 status collapsed
19215
19216 \begin_layout Plain Layout
19217 tbp
19218 \end_layout
19219
19220 \end_inset
19221
19222
19223 \begin_inset Quotes erd
19224 \end_inset
19225
19226 .
19227 \end_layout
19228
19229 \begin_layout Description
19230 \begin_inset Flex Code
19231 status collapsed
19232
19233 \begin_layout Plain Layout
19234 RefPrefix
19235 \end_layout
19236
19237 \end_inset
19238
19239  [
19240 \begin_inset Flex Code
19241 status collapsed
19242
19243 \begin_layout Plain Layout
19244 string
19245 \end_layout
19246
19247 \end_inset
19248
19249 ] The prefix to use when creating labels referring to floats of this type.
19250  This allows the use of formatted references.
19251  Note that you can remove any 
19252 \begin_inset Flex Code
19253 status collapsed
19254
19255 \begin_layout Plain Layout
19256 RefPrefix
19257 \end_layout
19258
19259 \end_inset
19260
19261  set by a copied style by using the special value 
19262 \begin_inset Quotes eld
19263 \end_inset
19264
19265 OFF
19266 \begin_inset Quotes erd
19267 \end_inset
19268
19269 , which must be all caps.
19270 \change_inserted -712698321 1565605014
19271
19272 \end_layout
19273
19274 \begin_layout Description
19275
19276 \change_inserted -712698321 1565605014
19277 \begin_inset Flex Code
19278 status collapsed
19279
19280 \begin_layout Plain Layout
19281
19282 \change_inserted -712698321 1565605014
19283 Requires
19284 \change_unchanged
19285
19286 \end_layout
19287
19288 \end_inset
19289
19290  [
19291 \begin_inset Flex Code
19292 status collapsed
19293
19294 \begin_layout Plain Layout
19295
19296 \change_inserted -712698321 1565605014
19297 string
19298 \change_unchanged
19299
19300 \end_layout
19301
19302 \end_inset
19303
19304 ] As with paragraph styles, see 
19305 \begin_inset CommandInset ref
19306 LatexCommand ref
19307 reference "subsec:Paragraph-Styles"
19308
19309 \end_inset
19310
19311 .
19312 \change_unchanged
19313
19314 \end_layout
19315
19316 \begin_layout Description
19317 \begin_inset Flex Code
19318 status collapsed
19319
19320 \begin_layout Plain Layout
19321 Style
19322 \end_layout
19323
19324 \end_inset
19325
19326  [
19327 \begin_inset Flex Code
19328 status collapsed
19329
19330 \begin_layout Plain Layout
19331 string
19332 \end_layout
19333
19334 \end_inset
19335
19336 =
19337 \begin_inset Quotes erd
19338 \end_inset
19339
19340
19341 \begin_inset Quotes erd
19342 \end_inset
19343
19344 ] The style used when defining the float using 
19345 \begin_inset Flex Code
19346 status collapsed
19347
19348 \begin_layout Plain Layout
19349
19350 \backslash
19351 newfloat
19352 \end_layout
19353
19354 \end_inset
19355
19356 .
19357 \end_layout
19358
19359 \begin_layout Description
19360 \begin_inset Flex Code
19361 status collapsed
19362
19363 \begin_layout Plain Layout
19364 Type
19365 \end_layout
19366
19367 \end_inset
19368
19369  [
19370 \begin_inset Flex Code
19371 status collapsed
19372
19373 \begin_layout Plain Layout
19374 string
19375 \end_layout
19376
19377 \end_inset
19378
19379 =
19380 \begin_inset Quotes erd
19381 \end_inset
19382
19383
19384 \begin_inset Quotes erd
19385 \end_inset
19386
19387 ] The 
19388 \begin_inset Quotes eld
19389 \end_inset
19390
19391 type
19392 \begin_inset Quotes erd
19393 \end_inset
19394
19395  of the new class of floats, like program or algorithm.
19396  After the appropriate 
19397 \begin_inset Flex Code
19398 status collapsed
19399
19400 \begin_layout Plain Layout
19401
19402 \backslash
19403 newfloat
19404 \end_layout
19405
19406 \end_inset
19407
19408 , commands such as 
19409 \begin_inset Flex Code
19410 status collapsed
19411
19412 \begin_layout Plain Layout
19413
19414 \backslash
19415 begin{program}
19416 \end_layout
19417
19418 \end_inset
19419
19420  or 
19421 \begin_inset Flex Code
19422 status collapsed
19423
19424 \begin_layout Plain Layout
19425
19426 \backslash
19427 end{algorithm*}
19428 \end_layout
19429
19430 \end_inset
19431
19432  will be available.
19433 \end_layout
19434
19435 \begin_layout Description
19436 \begin_inset Flex Code
19437 status collapsed
19438
19439 \begin_layout Plain Layout
19440 UsesFloatPkg
19441 \end_layout
19442
19443 \end_inset
19444
19445  [
19446 \begin_inset Flex Code
19447 status collapsed
19448
19449 \begin_layout Plain Layout
19450 0
19451 \end_layout
19452
19453 \end_inset
19454
19455 ,
19456 \begin_inset space \thinspace{}
19457 \end_inset
19458
19459
19460 \begin_inset Flex Code
19461 status collapsed
19462
19463 \begin_layout Plain Layout
19464
19465 \emph on
19466 1
19467 \end_layout
19468
19469 \end_inset
19470
19471 ] Specifies whether this float is defined using the \SpecialChar LaTeX
19472  package 
19473 \begin_inset Flex Code
19474 status collapsed
19475
19476 \begin_layout Plain Layout
19477 float
19478 \end_layout
19479
19480 \end_inset
19481
19482 , either by the class file, another package or on-the-fly by \SpecialChar LyX
19483  itself.
19484 \end_layout
19485
19486 \begin_layout Standard
19487 Note that defining a float with type 
19488 \begin_inset Flex Code
19489 status collapsed
19490
19491 \begin_layout Plain Layout
19492
19493 \emph on
19494 type
19495 \end_layout
19496
19497 \end_inset
19498
19499  automatically defines the corresponding counter with name 
19500 \begin_inset Flex Code
19501 status collapsed
19502
19503 \begin_layout Plain Layout
19504
19505 \emph on
19506 type
19507 \end_layout
19508
19509 \end_inset
19510
19511 .
19512 \end_layout
19513
19514 \begin_layout Subsection
19515 Flex insets and InsetLayout
19516 \begin_inset CommandInset label
19517 LatexCommand label
19518 name "subsec:Flex-insets-and"
19519
19520 \end_inset
19521
19522
19523 \end_layout
19524
19525 \begin_layout Standard
19526 Flex insets come in 
19527 \change_deleted 5863208 1594239511
19528 three
19529 \change_inserted 5863208 1594239512
19530 two
19531 \change_unchanged
19532  different kinds: 
19533 \end_layout
19534
19535 \begin_layout Itemize
19536 character style (
19537 \begin_inset Flex Code
19538 status collapsed
19539
19540 \begin_layout Plain Layout
19541 CharStyle
19542 \end_layout
19543
19544 \end_inset
19545
19546 ): These define semantic markup corresponding to such \SpecialChar LaTeX
19547  commands as 
19548 \begin_inset Flex Code
19549 status collapsed
19550
19551 \begin_layout Plain Layout
19552
19553 \backslash
19554 noun
19555 \end_layout
19556
19557 \end_inset
19558
19559  and 
19560 \begin_inset Flex Code
19561 status collapsed
19562
19563 \begin_layout Plain Layout
19564
19565 \backslash
19566 code
19567 \end_layout
19568
19569 \end_inset
19570
19571 .
19572 \end_layout
19573
19574 \begin_layout Itemize
19575 user custom (
19576 \begin_inset Flex Code
19577 status collapsed
19578
19579 \begin_layout Plain Layout
19580 Custom
19581 \end_layout
19582
19583 \end_inset
19584
19585 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
19586  code,
19587  footnote, and the like.
19588  An obvious example is an endnote inset, which is defined in the 
19589 \begin_inset Flex Code
19590 status collapsed
19591
19592 \begin_layout Plain Layout
19593 endnote
19594 \end_layout
19595
19596 \end_inset
19597
19598  module.
19599 \end_layout
19600
19601 \begin_layout Itemize
19602
19603 \change_deleted 5863208 1594239528
19604 XML elements (
19605 \begin_inset Flex Code
19606 status collapsed
19607
19608 \begin_layout Plain Layout
19609 Element
19610 \end_layout
19611
19612 \end_inset
19613
19614 ): For use with DocBook classes.
19615 \change_unchanged
19616
19617 \end_layout
19618
19619 \begin_layout Standard
19620 Flex insets are defined using the 
19621 \begin_inset Flex Code
19622 status collapsed
19623
19624 \begin_layout Plain Layout
19625 InsetLayout
19626 \end_layout
19627
19628 \end_inset
19629
19630  tag, which shall be explained in a moment.
19631 \end_layout
19632
19633 \begin_layout Standard
19634 The 
19635 \begin_inset Flex Code
19636 status collapsed
19637
19638 \begin_layout Plain Layout
19639 InsetLayout
19640 \end_layout
19641
19642 \end_inset
19643
19644  tag also serves another function: It can be used to customize the general
19645  layout of many different types of insets.
19646  Currently, 
19647 \begin_inset Flex Code
19648 status collapsed
19649
19650 \begin_layout Plain Layout
19651 InsetLayout
19652 \end_layout
19653
19654 \end_inset
19655
19656  can be used to customize the layout parameters for footnotes, marginal
19657  notes, note insets, \SpecialChar TeX
19658  code (ERT) insets, branches, listings, indexes, boxes,
19659  tables, algorithms, URLs, and captions, as well as to define Flex insets.
19660 \end_layout
19661
19662 \begin_layout Standard
19663 The 
19664 \begin_inset Flex Code
19665 status collapsed
19666
19667 \begin_layout Plain Layout
19668 InsetLayout
19669 \end_layout
19670
19671 \end_inset
19672
19673  definition must begin with a line of the form:
19674 \end_layout
19675
19676 \begin_layout LyX-Code
19677 InsetLayout <type>
19678 \end_layout
19679
19680 \begin_layout Standard
19681 Here 
19682 \begin_inset Flex Code
19683 status collapsed
19684
19685 \begin_layout Plain Layout
19686 <Type>
19687 \end_layout
19688
19689 \end_inset
19690
19691  indicates the inset whose layout is being defined, and here there are four
19692  cases.
19693 \end_layout
19694
19695 \begin_layout Enumerate
19696 The layout for a pre-existing inset is being modified.
19697  In this case, can be 
19698 \begin_inset Flex Code
19699 status collapsed
19700
19701 \begin_layout Plain Layout
19702 <Type>
19703 \end_layout
19704
19705 \end_inset
19706
19707  any one of the following: 
19708 \begin_inset Flex Code
19709 status collapsed
19710
19711 \begin_layout Plain Layout
19712 Algorithm
19713 \end_layout
19714
19715 \end_inset
19716
19717
19718 \begin_inset Flex Code
19719 status collapsed
19720
19721 \begin_layout Plain Layout
19722 Branch
19723 \end_layout
19724
19725 \end_inset
19726
19727
19728 \begin_inset Flex Code
19729 status collapsed
19730
19731 \begin_layout Plain Layout
19732 Box
19733 \end_layout
19734
19735 \end_inset
19736
19737
19738 \begin_inset Flex Code
19739 status collapsed
19740
19741 \begin_layout Plain Layout
19742 Box:shaded
19743 \end_layout
19744
19745 \end_inset
19746
19747
19748 \begin_inset Flex Code
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752 Caption:Standard
19753 \end_layout
19754
19755 \end_inset
19756
19757
19758 \begin_inset Flex Code
19759 status collapsed
19760
19761 \begin_layout Plain Layout
19762 ERT
19763 \end_layout
19764
19765 \end_inset
19766
19767
19768 \begin_inset Flex Code
19769 status collapsed
19770
19771 \begin_layout Plain Layout
19772 Figure
19773 \end_layout
19774
19775 \end_inset
19776
19777
19778 \begin_inset Flex Code
19779 status collapsed
19780
19781 \begin_layout Plain Layout
19782 Foot
19783 \end_layout
19784
19785 \end_inset
19786
19787
19788 \begin_inset Flex Code
19789 status collapsed
19790
19791 \begin_layout Plain Layout
19792 Index
19793 \end_layout
19794
19795 \end_inset
19796
19797
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 Info
19803 \end_layout
19804
19805 \end_inset
19806
19807
19808 \begin_inset Flex Code
19809 status collapsed
19810
19811 \begin_layout Plain Layout
19812 Info:menu
19813 \end_layout
19814
19815 \end_inset
19816
19817
19818 \begin_inset Flex Code
19819 status collapsed
19820
19821 \begin_layout Plain Layout
19822 Info:shortcut
19823 \end_layout
19824
19825 \end_inset
19826
19827
19828 \begin_inset Flex Code
19829 status collapsed
19830
19831 \begin_layout Plain Layout
19832 Info:shortcuts
19833 \end_layout
19834
19835 \end_inset
19836
19837
19838 \begin_inset Flex Code
19839 status collapsed
19840
19841 \begin_layout Plain Layout
19842 Listings
19843 \end_layout
19844
19845 \end_inset
19846
19847
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852 Marginal
19853 \end_layout
19854
19855 \end_inset
19856
19857
19858 \begin_inset Flex Code
19859 status collapsed
19860
19861 \begin_layout Plain Layout
19862 Note:Comment
19863 \end_layout
19864
19865 \end_inset
19866
19867
19868 \begin_inset Flex Code
19869 status collapsed
19870
19871 \begin_layout Plain Layout
19872 Note:Note
19873 \end_layout
19874
19875 \end_inset
19876
19877
19878 \begin_inset Flex Code
19879 status collapsed
19880
19881 \begin_layout Plain Layout
19882 Note:Greyedout
19883 \end_layout
19884
19885 \end_inset
19886
19887
19888 \begin_inset Flex Code
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892 Table
19893 \end_layout
19894
19895 \end_inset
19896
19897 , or 
19898 \begin_inset Flex Code
19899 status collapsed
19900
19901 \begin_layout Plain Layout
19902 URL
19903 \end_layout
19904
19905 \end_inset
19906
19907 .
19908 \end_layout
19909
19910 \begin_layout Enumerate
19911 The layout for a Flex inset is being defined.
19912  In this case, 
19913 \begin_inset Flex Code
19914 status collapsed
19915
19916 \begin_layout Plain Layout
19917 <Type>
19918 \end_layout
19919
19920 \end_inset
19921
19922  must be of the form 
19923 \begin_inset Quotes eld
19924 \end_inset
19925
19926
19927 \begin_inset Flex Code
19928 status collapsed
19929
19930 \begin_layout Plain Layout
19931 Flex:<name>
19932 \end_layout
19933
19934 \end_inset
19935
19936
19937 \begin_inset Quotes erd
19938 \end_inset
19939
19940 , where 
19941 \begin_inset Flex Code
19942 status collapsed
19943
19944 \begin_layout Plain Layout
19945 name
19946 \end_layout
19947
19948 \end_inset
19949
19950  may be any valid identifier not used by a pre-existing Flex inset.
19951  The identifier may include spaces, but in that case the whole thing must
19952  be wrapped in quotes.
19953  Note that the definition of a flex inset 
19954 \emph on
19955 must 
19956 \emph default
19957 also include a 
19958 \begin_inset Flex Code
19959 status collapsed
19960
19961 \begin_layout Plain Layout
19962 LyXType
19963 \end_layout
19964
19965 \end_inset
19966
19967  entry, declaring which type of inset it defines.
19968 \end_layout
19969
19970 \begin_layout Enumerate
19971 The layout for user specific branch is being defined.
19972  In this case, 
19973 \begin_inset Flex Code
19974 status collapsed
19975
19976 \begin_layout Plain Layout
19977 <Type>
19978 \end_layout
19979
19980 \end_inset
19981
19982  must be of the form 
19983 \begin_inset Quotes eld
19984 \end_inset
19985
19986
19987 \begin_inset Flex Code
19988 status collapsed
19989
19990 \begin_layout Plain Layout
19991 Branch:<name>
19992 \end_layout
19993
19994 \end_inset
19995
19996
19997 \begin_inset Quotes erd
19998 \end_inset
19999
20000 , where 
20001 \begin_inset Flex Code
20002 status collapsed
20003
20004 \begin_layout Plain Layout
20005 name
20006 \end_layout
20007
20008 \end_inset
20009
20010  may be any valid identifier of branch defined in user's document.
20011  The identifier may include spaces, but in that case the whole thing must
20012  be wrapped in quotes.
20013  The main purpose of this feature is to allow \SpecialChar LaTeX
20014  wrapping around specific
20015  branches as user needs.
20016 \end_layout
20017
20018 \begin_layout Enumerate
20019 The layout of a user (or class) specific caption is being defined.
20020  In this case, 
20021 \begin_inset Flex Code
20022 status collapsed
20023
20024 \begin_layout Plain Layout
20025 <Type>
20026 \end_layout
20027
20028 \end_inset
20029
20030  must be of the form 
20031 \begin_inset Quotes eld
20032 \end_inset
20033
20034
20035 \begin_inset Flex Code
20036 status collapsed
20037
20038 \begin_layout Plain Layout
20039 Caption:<name>
20040 \end_layout
20041
20042 \end_inset
20043
20044
20045 \begin_inset Quotes erd
20046 \end_inset
20047
20048 , where 
20049 \begin_inset Flex Code
20050 status collapsed
20051
20052 \begin_layout Plain Layout
20053 name
20054 \end_layout
20055
20056 \end_inset
20057
20058  specifies the name of the caption as it appears in the menu.
20059  Have a look at the standard caption (
20060 \begin_inset Flex Code
20061 status collapsed
20062
20063 \begin_layout Plain Layout
20064 Caption:Standard
20065 \end_layout
20066
20067 \end_inset
20068
20069 ), the specific captions of the KOMA-Script classes (
20070 \begin_inset Flex Code
20071 status collapsed
20072
20073 \begin_layout Plain Layout
20074 Caption:Above
20075 \end_layout
20076
20077 \end_inset
20078
20079
20080 \begin_inset Flex Code
20081 status collapsed
20082
20083 \begin_layout Plain Layout
20084 Caption:Below
20085 \end_layout
20086
20087 \end_inset
20088
20089 ) or the module 
20090 \family sans
20091 Multilingual
20092 \begin_inset space ~
20093 \end_inset
20094
20095 Captions
20096 \begin_inset Newline linebreak
20097 \end_inset
20098
20099
20100 \family default
20101 (
20102 \begin_inset Flex Code
20103 status collapsed
20104
20105 \begin_layout Plain Layout
20106 Caption:Bicaption
20107 \end_layout
20108
20109 \end_inset
20110
20111 ) for applications.
20112 \end_layout
20113
20114 \begin_layout Standard
20115 The 
20116 \begin_inset Flex Code
20117 status collapsed
20118
20119 \begin_layout Plain Layout
20120 InsetLayout
20121 \end_layout
20122
20123 \end_inset
20124
20125  definition can contain the following entries:
20126 \end_layout
20127
20128 \begin_layout Description
20129 \begin_inset Flex Code
20130 status collapsed
20131
20132 \begin_layout Plain Layout
20133 AddToToc
20134 \end_layout
20135
20136 \end_inset
20137
20138  [
20139 \begin_inset Flex Code
20140 status collapsed
20141
20142 \begin_layout Plain Layout
20143 string
20144 \end_layout
20145
20146 \end_inset
20147
20148 =""] This inset will appear in the table of contents of the given type.
20149  An empty string disables.
20150  See also the OutlinerName and the IsTocCaption commands.
20151  This is only implemented for Flex insets.
20152  Default: disabled.
20153 \end_layout
20154
20155 \begin_layout Description
20156 \begin_inset Flex Code
20157 status collapsed
20158
20159 \begin_layout Plain Layout
20160 Argument
20161 \end_layout
20162
20163 \end_inset
20164
20165  [
20166 \begin_inset Flex Code
20167 status collapsed
20168
20169 \begin_layout Plain Layout
20170 int
20171 \end_layout
20172
20173 \end_inset
20174
20175 ] Defines argument number of a command\SpecialChar breakableslash
20176 environment associated with the current
20177  layout.
20178  The definition must end with 
20179 \begin_inset Flex Code
20180 status collapsed
20181
20182 \begin_layout Plain Layout
20183 EndArgument
20184 \end_layout
20185
20186 \end_inset
20187
20188 .
20189  See 
20190 \change_inserted -584632292 1615846847
20191
20192 \begin_inset CommandInset ref
20193 LatexCommand ref
20194 reference "subsec:Arguments"
20195 plural "false"
20196 caps "false"
20197 noprefix "false"
20198
20199 \end_inset
20200
20201
20202 \change_deleted -584632292 1615846847
20203
20204 \begin_inset CommandInset ref
20205 LatexCommand ref
20206 reference "subsec:Paragraph-Styles"
20207
20208 \end_inset
20209
20210
20211 \change_unchanged
20212  for 
20213 \change_deleted -584632292 1615846902
20214 details
20215 \change_inserted -584632292 1615846906
20216 more information
20217 \change_unchanged
20218 .
20219 \end_layout
20220
20221 \begin_layout Description
20222 \begin_inset Flex Code
20223 status collapsed
20224
20225 \begin_layout Plain Layout
20226 BabelPreamble
20227 \end_layout
20228
20229 \end_inset
20230
20231  Preamble for changing language commands; see 
20232 \begin_inset CommandInset ref
20233 LatexCommand ref
20234 reference "subsec:I18n"
20235
20236 \end_inset
20237
20238 .
20239 \end_layout
20240
20241 \begin_layout Description
20242 \begin_inset Flex Code
20243 status collapsed
20244
20245 \begin_layout Plain Layout
20246 BgColor
20247 \end_layout
20248
20249 \end_inset
20250
20251  [
20252 \begin_inset Flex Code
20253 status collapsed
20254
20255 \begin_layout Plain Layout
20256 <name>
20257 \end_layout
20258
20259 \end_inset
20260
20261 ] The color for the inset's background.
20262  See 
20263 \begin_inset CommandInset ref
20264 LatexCommand ref
20265 reference "chap:Names-of-colors"
20266
20267 \end_inset
20268
20269  for a list of the available color names.
20270 \end_layout
20271
20272 \begin_layout Description
20273 \begin_inset Flex Code
20274 status collapsed
20275
20276 \begin_layout Plain Layout
20277 ContentAsLabel
20278 \end_layout
20279
20280 \end_inset
20281
20282  [
20283 \begin_inset Flex Code
20284 status collapsed
20285
20286 \begin_layout Plain Layout
20287
20288 \emph on
20289 0
20290 \end_layout
20291
20292 \end_inset
20293
20294 ,
20295 \begin_inset space \thinspace{}
20296 \end_inset
20297
20298
20299 \begin_inset Flex Code
20300 status collapsed
20301
20302 \begin_layout Plain Layout
20303 1
20304 \end_layout
20305
20306 \end_inset
20307
20308 ] Whether to use the content of the inset as the label, when the inset is
20309  closed.
20310  Default is false.
20311 \end_layout
20312
20313 \begin_layout Description
20314 \begin_inset Flex Code
20315 status collapsed
20316
20317 \begin_layout Plain Layout
20318 CopyStyle
20319 \end_layout
20320
20321 \end_inset
20322
20323  [
20324 \begin_inset Flex Code
20325 status collapsed
20326
20327 \begin_layout Plain Layout
20328 <type>
20329 \end_layout
20330
20331 \end_inset
20332
20333 ] As with paragraph styles, see 
20334 \begin_inset CommandInset ref
20335 LatexCommand ref
20336 reference "subsec:Paragraph-Styles"
20337
20338 \end_inset
20339
20340 .
20341  Note that you need to specify the complete type, e.
20342 \begin_inset space \thinspace{}
20343 \end_inset
20344
20345 g.
20346 \begin_inset space ~
20347 \end_inset
20348
20349
20350 \begin_inset Flex Code
20351 status collapsed
20352
20353 \begin_layout Plain Layout
20354 CopyStyle Flex:<name>
20355 \end_layout
20356
20357 \end_inset
20358
20359 .
20360 \end_layout
20361
20362 \begin_layout Description
20363 \begin_inset Flex Code
20364 status collapsed
20365
20366 \begin_layout Plain Layout
20367 CustomPars
20368 \end_layout
20369
20370 \end_inset
20371
20372  [
20373 \begin_inset Flex Code
20374 status collapsed
20375
20376 \begin_layout Plain Layout
20377
20378 \emph on
20379 0
20380 \end_layout
20381
20382 \end_inset
20383
20384 ,
20385 \begin_inset space \thinspace{}
20386 \end_inset
20387
20388
20389 \begin_inset Flex Code
20390 status collapsed
20391
20392 \begin_layout Plain Layout
20393 1
20394 \end_layout
20395
20396 \end_inset
20397
20398 ] Indicates whether the user may employ the Paragraph Settings dialog to
20399  customize the paragraph.
20400 \end_layout
20401
20402 \begin_layout Description
20403 \begin_inset Flex Code
20404 status collapsed
20405
20406 \begin_layout Plain Layout
20407 Decoration
20408 \end_layout
20409
20410 \end_inset
20411
20412  can be 
20413 \begin_inset Flex Code
20414 status collapsed
20415
20416 \begin_layout Plain Layout
20417 Classic
20418 \end_layout
20419
20420 \end_inset
20421
20422
20423 \begin_inset Flex Code
20424 status collapsed
20425
20426 \begin_layout Plain Layout
20427 Minimalistic
20428 \end_layout
20429
20430 \end_inset
20431
20432 , or 
20433 \begin_inset Flex Code
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437 Conglomerate
20438 \end_layout
20439
20440 \end_inset
20441
20442 , describing the rendering style used for the inset's frame and buttons.
20443  Footnotes generally use 
20444 \begin_inset Flex Code
20445 status collapsed
20446
20447 \begin_layout Plain Layout
20448 Classic
20449 \end_layout
20450
20451 \end_inset
20452
20453 , ERT insets generally 
20454 \begin_inset Flex Code
20455 status collapsed
20456
20457 \begin_layout Plain Layout
20458 Minimalistic
20459 \end_layout
20460
20461 \end_inset
20462
20463 , and character styles 
20464 \begin_inset Flex Code
20465 status collapsed
20466
20467 \begin_layout Plain Layout
20468 Conglomerate
20469 \end_layout
20470
20471 \end_inset
20472
20473 .
20474 \end_layout
20475
20476 \begin_layout Description
20477 \begin_inset Flex Code
20478 status collapsed
20479
20480 \begin_layout Plain Layout
20481 Display
20482 \end_layout
20483
20484 \end_inset
20485
20486  [
20487 \begin_inset Flex Code
20488 status collapsed
20489
20490 \begin_layout Plain Layout
20491 0
20492 \end_layout
20493
20494 \end_inset
20495
20496 ,
20497 \emph on
20498
20499 \begin_inset space \thinspace{}
20500 \end_inset
20501
20502
20503 \emph default
20504
20505 \begin_inset Flex Code
20506 status collapsed
20507
20508 \begin_layout Plain Layout
20509
20510 \emph on
20511 1
20512 \end_layout
20513
20514 \end_inset
20515
20516 ] Only useful if 
20517 \begin_inset Flex Code
20518 status collapsed
20519
20520 \begin_layout Plain Layout
20521 LatexType
20522 \end_layout
20523
20524 \end_inset
20525
20526  is 
20527 \begin_inset Flex Code
20528 status collapsed
20529
20530 \begin_layout Plain Layout
20531 Environment
20532 \end_layout
20533
20534 \end_inset
20535
20536 .
20537  Indicates whether the environment will stand on its own in the output or
20538  will appear inline with the surrounding text.
20539  If set to false, it is supposed that the \SpecialChar LaTeX
20540  environment ignores white space
20541  (including one newline character) after the 
20542 \begin_inset Flex Code
20543 status collapsed
20544
20545 \begin_layout Plain Layout
20546
20547 \backslash
20548 begin{
20549 \emph on
20550 LatexName
20551 \emph default
20552 }
20553 \end_layout
20554
20555 \end_inset
20556
20557  and 
20558 \begin_inset Flex Code
20559 status collapsed
20560
20561 \begin_layout Plain Layout
20562
20563 \backslash
20564 end{
20565 \emph on
20566 LatexName
20567 \emph default
20568 }
20569 \end_layout
20570
20571 \end_inset
20572
20573  tags.
20574  Default is true.
20575 \change_inserted 731793113 1538674858
20576
20577 \end_layout
20578
20579 \begin_layout Description
20580
20581 \change_inserted 731793113 1538674891
20582 \begin_inset Flex Code
20583 status open
20584
20585 \begin_layout Plain Layout
20586
20587 \change_inserted 731793113 1538674863
20588 EditExternal
20589 \change_unchanged
20590
20591 \end_layout
20592
20593 \end_inset
20594
20595  [
20596 \emph on
20597 0
20598 \emph default
20599 ,1] Allow the contents of the inset to be edited externally (using whatever
20600  editor is defined for the document's output format).
20601 \change_unchanged
20602
20603 \end_layout
20604
20605 \begin_layout Description
20606 \begin_inset Flex Code
20607 status collapsed
20608
20609 \begin_layout Plain Layout
20610 End
20611 \end_layout
20612
20613 \end_inset
20614
20615  Required at the end of the 
20616 \begin_inset Flex Code
20617 status collapsed
20618
20619 \begin_layout Plain Layout
20620 InsetLayout
20621 \end_layout
20622
20623 \end_inset
20624
20625  declarations.
20626 \end_layout
20627
20628 \begin_layout Description
20629 \begin_inset Flex Code
20630 status collapsed
20631
20632 \begin_layout Plain Layout
20633 Font
20634 \end_layout
20635
20636 \end_inset
20637
20638  The font used for both the text body 
20639 \emph on
20640 and
20641 \emph default
20642  the label.
20643  See 
20644 \begin_inset CommandInset ref
20645 LatexCommand ref
20646 reference "subsec:Font-description"
20647
20648 \end_inset
20649
20650 .
20651  Note that defining this font automatically defines the 
20652 \begin_inset Flex Code
20653 status collapsed
20654
20655 \begin_layout Plain Layout
20656 LabelFont
20657 \end_layout
20658
20659 \end_inset
20660
20661  to the same value, so define this first and define 
20662 \begin_inset Flex Code
20663 status collapsed
20664
20665 \begin_layout Plain Layout
20666 LabelFont
20667 \end_layout
20668
20669 \end_inset
20670
20671  later if you want them to be different.
20672 \end_layout
20673
20674 \begin_layout Description
20675 \begin_inset Flex Code
20676 status collapsed
20677
20678 \begin_layout Plain Layout
20679 FixedWidthPreambleEncoding
20680 \end_layout
20681
20682 \end_inset
20683
20684  [
20685 \begin_inset Flex Code
20686 status collapsed
20687
20688 \begin_layout Plain Layout
20689
20690 \emph on
20691 0
20692 \end_layout
20693
20694 \end_inset
20695
20696 ,
20697 \begin_inset space \thinspace{}
20698 \end_inset
20699
20700
20701 \begin_inset Flex Code
20702 status collapsed
20703
20704 \begin_layout Plain Layout
20705 1
20706 \end_layout
20707
20708 \end_inset
20709
20710 ] Force a fixed width encoding for the translated contents of 
20711 \begin_inset Flex Code
20712 status collapsed
20713
20714 \begin_layout Plain Layout
20715 BabelPreamble
20716 \end_layout
20717
20718 \end_inset
20719
20720  and 
20721 \begin_inset Flex Code
20722 status collapsed
20723
20724 \begin_layout Plain Layout
20725 LangPreamble
20726 \end_layout
20727
20728 \end_inset
20729
20730  code generated by this layout.
20731  This is needed for special \SpecialChar LaTeX
20732 -packages like 
20733 \family typewriter
20734 listings
20735 \family default
20736  that do not work with variable width encodings such as 
20737 \family sans
20738 utf8
20739 \family default
20740 .
20741  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
20742  backends such as Xe\SpecialChar TeX
20743  or
20744  Lua\SpecialChar TeX
20745  are used.
20746 \end_layout
20747
20748 \begin_layout Description
20749 \begin_inset Flex Code
20750 status collapsed
20751
20752 \begin_layout Plain Layout
20753 ForceLocalFontSwitch
20754 \end_layout
20755
20756 \end_inset
20757
20758  [
20759 \begin_inset Flex Code
20760 status collapsed
20761
20762 \begin_layout Plain Layout
20763
20764 \emph on
20765 0
20766 \end_layout
20767
20768 \end_inset
20769
20770 ,
20771 \begin_inset space \thinspace{}
20772 \end_inset
20773
20774
20775 \begin_inset Flex Code
20776 status collapsed
20777
20778 \begin_layout Plain Layout
20779 1
20780 \end_layout
20781
20782 \end_inset
20783
20784 ] When using babel, always use a local font switch (
20785 \begin_inset Flex Code
20786 status collapsed
20787
20788 \begin_layout Plain Layout
20789
20790 \backslash
20791 foreignlanguage
20792 \end_layout
20793
20794 \end_inset
20795
20796 ), never a global one (such as 
20797 \begin_inset Flex Code
20798 status collapsed
20799
20800 \begin_layout Plain Layout
20801
20802 \backslash
20803 selectlanguage
20804 \end_layout
20805
20806 \end_inset
20807
20808 ).
20809 \end_layout
20810
20811 \begin_layout Description
20812 \begin_inset Flex Code
20813 status collapsed
20814
20815 \begin_layout Plain Layout
20816 ForceLTR
20817 \end_layout
20818
20819 \end_inset
20820
20821  [
20822 \begin_inset Flex Code
20823 status collapsed
20824
20825 \begin_layout Plain Layout
20826
20827 \emph on
20828 0
20829 \end_layout
20830
20831 \end_inset
20832
20833 ,
20834 \begin_inset space \thinspace{}
20835 \end_inset
20836
20837
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842 1
20843 \end_layout
20844
20845 \end_inset
20846
20847 ] Force the 
20848 \begin_inset Quotes eld
20849 \end_inset
20850
20851 latex
20852 \begin_inset Quotes erd
20853 \end_inset
20854
20855  language, leading to Left-to-Right (Latin) output, e.
20856 \begin_inset space \thinspace{}
20857 \end_inset
20858
20859 g.
20860 \begin_inset space \space{}
20861 \end_inset
20862
20863 in \SpecialChar TeX
20864  code or URL.
20865  A kludge.
20866 \end_layout
20867
20868 \begin_layout Description
20869 \begin_inset Flex Code
20870 status collapsed
20871
20872 \begin_layout Plain Layout
20873 ForceOwnlines
20874 \end_layout
20875
20876 \end_inset
20877
20878  [
20879 \begin_inset Flex Code
20880 status collapsed
20881
20882 \begin_layout Plain Layout
20883
20884 \emph on
20885 0
20886 \end_layout
20887
20888 \end_inset
20889
20890 ,
20891 \begin_inset space \thinspace{}
20892 \end_inset
20893
20894
20895 \begin_inset Flex Code
20896 status collapsed
20897
20898 \begin_layout Plain Layout
20899 1
20900 \end_layout
20901
20902 \end_inset
20903
20904 ] Force a line break in the \SpecialChar LaTeX
20905  output before the inset starts and after the
20906  inset ends.
20907  This assures the inset itself is output on its own lines, for parsing purposes.
20908 \end_layout
20909
20910 \begin_layout Description
20911 \begin_inset Flex Code
20912 status collapsed
20913
20914 \begin_layout Plain Layout
20915 ForcePlain
20916 \end_layout
20917
20918 \end_inset
20919
20920  [
20921 \begin_inset Flex Code
20922 status collapsed
20923
20924 \begin_layout Plain Layout
20925
20926 \emph on
20927 0
20928 \end_layout
20929
20930 \end_inset
20931
20932 ,
20933 \begin_inset space \thinspace{}
20934 \end_inset
20935
20936
20937 \begin_inset Flex Code
20938 status collapsed
20939
20940 \begin_layout Plain Layout
20941 1
20942 \end_layout
20943
20944 \end_inset
20945
20946 ] Indicates whether the 
20947 \begin_inset Flex Code
20948 status collapsed
20949
20950 \begin_layout Plain Layout
20951 PlainLayout
20952 \end_layout
20953
20954 \end_inset
20955
20956  should be used or, instead, the user can change the paragraph style used
20957  in the inset.
20958  Default is false.
20959 \end_layout
20960
20961 \begin_layout Description
20962 \begin_inset Flex Code
20963 status collapsed
20964
20965 \begin_layout Plain Layout
20966 FreeSpacing
20967 \end_layout
20968
20969 \end_inset
20970
20971  [
20972 \begin_inset Flex Code
20973 status collapsed
20974
20975 \begin_layout Plain Layout
20976
20977 \emph on
20978 0
20979 \end_layout
20980
20981 \end_inset
20982
20983 ,
20984 \begin_inset space \thinspace{}
20985 \end_inset
20986
20987
20988 \begin_inset Flex Code
20989 status collapsed
20990
20991 \begin_layout Plain Layout
20992 1
20993 \end_layout
20994
20995 \end_inset
20996
20997 ] As with paragraph styles, see 
20998 \begin_inset CommandInset ref
20999 LatexCommand ref
21000 reference "subsec:Paragraph-Styles"
21001
21002 \end_inset
21003
21004 .
21005 \end_layout
21006
21007 \begin_layout Description
21008 \begin_inset Flex Code
21009 status collapsed
21010
21011 \begin_layout Plain Layout
21012 HTML*
21013 \end_layout
21014
21015 \end_inset
21016
21017  These tags control the XHTML output.
21018  See 
21019 \begin_inset CommandInset ref
21020 LatexCommand ref
21021 reference "sec:Tags-for-XHTML"
21022
21023 \end_inset
21024
21025 .
21026 \end_layout
21027
21028 \begin_layout Description
21029 \begin_inset Flex Code
21030 status collapsed
21031
21032 \begin_layout Plain Layout
21033 InToc
21034 \end_layout
21035
21036 \end_inset
21037
21038  [
21039 \begin_inset Flex Code
21040 status collapsed
21041
21042 \begin_layout Plain Layout
21043
21044 \emph on
21045 0
21046 \end_layout
21047
21048 \end_inset
21049
21050 ,
21051 \begin_inset space \thinspace{}
21052 \end_inset
21053
21054
21055 \begin_inset Flex Code
21056 status collapsed
21057
21058 \begin_layout Plain Layout
21059 1
21060 \end_layout
21061
21062 \end_inset
21063
21064 ] Whether to include the contents of this inset in the strings generated
21065  for the `Outline' pane for all table of contents, regardless of the AddToToc
21066  setting.
21067  One would not, for example, want the content of a footnote in a section
21068  header to be included in the TOC displayed in the outline, but one would
21069  normally want the content of a character style displayed.
21070  Default is false: not to include.
21071 \end_layout
21072
21073 \begin_layout Description
21074 \begin_inset Flex Code
21075 status collapsed
21076
21077 \begin_layout Plain Layout
21078 IsTocCaption
21079 \end_layout
21080
21081 \end_inset
21082
21083  [
21084 \begin_inset Flex Code
21085 status collapsed
21086
21087 \begin_layout Plain Layout
21088
21089 \emph on
21090 0
21091 \end_layout
21092
21093 \end_inset
21094
21095 ,
21096 \begin_inset space \thinspace{}
21097 \end_inset
21098
21099
21100 \begin_inset Flex Code
21101 status collapsed
21102
21103 \begin_layout Plain Layout
21104 1
21105 \end_layout
21106
21107 \end_inset
21108
21109 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
21110  of its contents in its item in the table of contents.
21111  Otherwise, only the label appears.
21112 \end_layout
21113
21114 \begin_layout Description
21115 \begin_inset Flex Code
21116 status collapsed
21117
21118 \begin_layout Plain Layout
21119 KeepEmpty
21120 \end_layout
21121
21122 \end_inset
21123
21124  [
21125 \emph on
21126
21127 \begin_inset Flex Code
21128 status collapsed
21129
21130 \begin_layout Plain Layout
21131 0
21132 \end_layout
21133
21134 \end_inset
21135
21136
21137 \emph default
21138 ,
21139 \begin_inset space \thinspace{}
21140 \end_inset
21141
21142
21143 \begin_inset Flex Code
21144 status collapsed
21145
21146 \begin_layout Plain Layout
21147 1
21148 \end_layout
21149
21150 \end_inset
21151
21152 ] As with paragraph styles, see 
21153 \begin_inset CommandInset ref
21154 LatexCommand ref
21155 reference "subsec:Paragraph-Styles"
21156
21157 \end_inset
21158
21159 .
21160 \end_layout
21161
21162 \begin_layout Description
21163 \begin_inset Flex Code
21164 status collapsed
21165
21166 \begin_layout Plain Layout
21167 LabelFont
21168 \end_layout
21169
21170 \end_inset
21171
21172  The font used for the label.
21173  See 
21174 \begin_inset CommandInset ref
21175 LatexCommand ref
21176 reference "subsec:Font-description"
21177
21178 \end_inset
21179
21180 .
21181  Note that this definition can never appear before 
21182 \begin_inset Flex Code
21183 status collapsed
21184
21185 \begin_layout Plain Layout
21186 Font
21187 \end_layout
21188
21189 \end_inset
21190
21191 , lest it be ineffective.
21192 \end_layout
21193
21194 \begin_layout Description
21195 \begin_inset Flex Code
21196 status collapsed
21197
21198 \begin_layout Plain Layout
21199 LabelString
21200 \end_layout
21201
21202 \end_inset
21203
21204  [
21205 \begin_inset Flex Code
21206 status collapsed
21207
21208 \begin_layout Plain Layout
21209 string
21210 \end_layout
21211
21212 \end_inset
21213
21214 =
21215 \begin_inset Quotes erd
21216 \end_inset
21217
21218
21219 \begin_inset Quotes erd
21220 \end_inset
21221
21222 ] What will be displayed on the button or elsewhere as the inset label.
21223  Some inset types (
21224 \begin_inset Flex Code
21225 status collapsed
21226
21227 \begin_layout Plain Layout
21228 \SpecialChar TeX
21229  code
21230 \end_layout
21231
21232 \end_inset
21233
21234  and 
21235 \begin_inset Flex Code
21236 status collapsed
21237
21238 \begin_layout Plain Layout
21239 Branch
21240 \end_layout
21241
21242 \end_inset
21243
21244 ) modify this label on the fly.
21245 \end_layout
21246
21247 \begin_layout Description
21248 \begin_inset Flex Code
21249 status collapsed
21250
21251 \begin_layout Plain Layout
21252 LangPreamble
21253 \end_layout
21254
21255 \end_inset
21256
21257  Language dependent preamble; see 
21258 \begin_inset CommandInset ref
21259 LatexCommand ref
21260 reference "subsec:I18n"
21261
21262 \end_inset
21263
21264 .
21265 \end_layout
21266
21267 \begin_layout Description
21268 \begin_inset Flex Code
21269 status collapsed
21270
21271 \begin_layout Plain Layout
21272 LatexName
21273 \end_layout
21274
21275 \end_inset
21276
21277  [
21278 \begin_inset Flex Code
21279 status collapsed
21280
21281 \begin_layout Plain Layout
21282 <name>
21283 \end_layout
21284
21285 \end_inset
21286
21287 ] The name of the corresponding \SpecialChar LaTeX
21288  stuff.
21289  Either the environment or command name.
21290 \end_layout
21291
21292 \begin_layout Description
21293 \begin_inset Flex Code
21294 status collapsed
21295
21296 \begin_layout Plain Layout
21297 LatexParam
21298 \end_layout
21299
21300 \end_inset
21301
21302  [
21303 \begin_inset Flex Code
21304 status collapsed
21305
21306 \begin_layout Plain Layout
21307 <parameter>
21308 \end_layout
21309
21310 \end_inset
21311
21312 ] The optional parameter for the corresponding 
21313 \begin_inset Flex Code
21314 status collapsed
21315
21316 \begin_layout Plain Layout
21317 LatexName
21318 \end_layout
21319
21320 \end_inset
21321
21322  stuff, including possible bracket pairs like 
21323 \begin_inset Flex Code
21324 status collapsed
21325
21326 \begin_layout Plain Layout
21327 []
21328 \end_layout
21329
21330 \end_inset
21331
21332 .
21333  This parameter cannot be changed from within \SpecialChar LyX
21334  (use 
21335 \begin_inset Flex Code
21336 status collapsed
21337
21338 \begin_layout Plain Layout
21339 Argument
21340 \end_layout
21341
21342 \end_inset
21343
21344  for customizable parameters).
21345  It will be output as is after all \SpecialChar LaTeX
21346  
21347 \begin_inset Flex Code
21348 status collapsed
21349
21350 \begin_layout Plain Layout
21351 Argument
21352 \end_layout
21353
21354 \end_inset
21355
21356 s.
21357 \end_layout
21358
21359 \begin_layout Description
21360 \begin_inset Flex Code
21361 status collapsed
21362
21363 \begin_layout Plain Layout
21364 LatexType
21365 \end_layout
21366
21367 \end_inset
21368
21369  [
21370 \begin_inset Flex Code
21371 status collapsed
21372
21373 \begin_layout Plain Layout
21374 Command, Environment, None
21375 \end_layout
21376
21377 \end_inset
21378
21379 ] How the style should be translated into \SpecialChar LaTeX
21380 .
21381 \begin_inset Foot
21382 status collapsed
21383
21384 \begin_layout Plain Layout
21385 \begin_inset Flex Code
21386 status collapsed
21387
21388 \begin_layout Plain Layout
21389 LatexType
21390 \end_layout
21391
21392 \end_inset
21393
21394  is perhaps a bit misleading, since these rules apply to SGML classes too.
21395  Visit the SGML class files for specific examples.
21396 \end_layout
21397
21398 \end_inset
21399
21400
21401 \end_layout
21402
21403 \begin_deeper
21404 \begin_layout Description
21405 \begin_inset Flex Code
21406 status collapsed
21407
21408 \begin_layout Plain Layout
21409 None
21410 \end_layout
21411
21412 \end_inset
21413
21414  means nothing special
21415 \end_layout
21416
21417 \begin_layout Description
21418 \begin_inset Flex Code
21419 status collapsed
21420
21421 \begin_layout Plain Layout
21422 Command
21423 \end_layout
21424
21425 \end_inset
21426
21427  means 
21428 \begin_inset Flex Code
21429 status collapsed
21430
21431 \begin_layout Plain Layout
21432
21433 \backslash
21434
21435 \emph on
21436 LatexName
21437 \emph default
21438 {\SpecialChar ldots
21439 }
21440 \end_layout
21441
21442 \end_inset
21443
21444
21445 \end_layout
21446
21447 \begin_layout Description
21448 \begin_inset Flex Code
21449 status collapsed
21450
21451 \begin_layout Plain Layout
21452 Environment
21453 \end_layout
21454
21455 \end_inset
21456
21457  means 
21458 \begin_inset Flex Code
21459 status collapsed
21460
21461 \begin_layout Plain Layout
21462
21463 \backslash
21464 begin{
21465 \emph on
21466 LatexName
21467 \emph default
21468 }\SpecialChar ldots
21469
21470 \backslash
21471 end{
21472 \emph on
21473 LatexName
21474 \emph default
21475 }
21476 \end_layout
21477
21478 \end_inset
21479
21480
21481 \end_layout
21482
21483 \begin_layout Standard
21484 Putting the last few things together, the \SpecialChar LaTeX
21485  output will be either: 
21486 \end_layout
21487
21488 \begin_layout LyX-Code
21489
21490 \backslash
21491 LatexName[LatexParam]{\SpecialChar ldots
21492 }
21493 \end_layout
21494
21495 \begin_layout Standard
21496 or: 
21497 \end_layout
21498
21499 \begin_layout LyX-Code
21500
21501 \backslash
21502 begin{LatexName}[LatexParam] \SpecialChar ldots
21503  
21504 \backslash
21505 end{LatexName}
21506 \end_layout
21507
21508 \begin_layout Standard
21509 depending upon the \SpecialChar LaTeX
21510  type.
21511 \end_layout
21512
21513 \end_deeper
21514 \begin_layout Description
21515 \begin_inset Flex Code
21516 status collapsed
21517
21518 \begin_layout Plain Layout
21519 LeftDelim
21520 \end_layout
21521
21522 \end_inset
21523
21524  [
21525 \begin_inset Flex Code
21526 status collapsed
21527
21528 \begin_layout Plain Layout
21529 string
21530 \end_layout
21531
21532 \end_inset
21533
21534 ] A string that is put at the beginning of the layout content.
21535  A line break in the output can be indicated by 
21536 \begin_inset Flex Code
21537 status collapsed
21538
21539 \begin_layout Plain Layout
21540 <br/>
21541 \end_layout
21542
21543 \end_inset
21544
21545 .
21546 \end_layout
21547
21548 \begin_layout Description
21549 \begin_inset Flex Code
21550 status collapsed
21551
21552 \begin_layout Plain Layout
21553 LyxType
21554 \end_layout
21555
21556 \end_inset
21557
21558  Can be 
21559 \begin_inset Flex Code
21560 status collapsed
21561
21562 \begin_layout Plain Layout
21563 charstyle
21564 \end_layout
21565
21566 \end_inset
21567
21568
21569 \begin_inset Flex Code
21570 status collapsed
21571
21572 \begin_layout Plain Layout
21573 custom
21574 \end_layout
21575
21576 \end_inset
21577
21578
21579 \change_deleted -584632292 1615846609
21580
21581 \begin_inset Flex Code
21582 status collapsed
21583
21584 \begin_layout Plain Layout
21585 element
21586 \end_layout
21587
21588 \end_inset
21589
21590  
21591 \change_unchanged
21592 or 
21593 \begin_inset Flex Code
21594 status collapsed
21595
21596 \begin_layout Plain Layout
21597 end
21598 \end_layout
21599
21600 \end_inset
21601
21602  (indicating a dummy definition ending definitions of charstyles, etc).
21603  This entry is required in and is only meaningful for Flex insets.
21604  Among other things, it determines on which menu this inset will appear.
21605  Setting 
21606 \begin_inset Flex Code
21607 status collapsed
21608
21609 \begin_layout Plain Layout
21610 LyxType
21611 \end_layout
21612
21613 \end_inset
21614
21615  to 
21616 \begin_inset Flex Code
21617 status collapsed
21618
21619 \begin_layout Plain Layout
21620 charstyle
21621 \end_layout
21622
21623 \end_inset
21624
21625  will automatically set 
21626 \begin_inset Flex Code
21627 status collapsed
21628
21629 \begin_layout Plain Layout
21630 MultiPar
21631 \end_layout
21632
21633 \end_inset
21634
21635  to false and 
21636 \begin_inset Flex Code
21637 status collapsed
21638
21639 \begin_layout Plain Layout
21640 ForcePlain
21641 \end_layout
21642
21643 \end_inset
21644
21645  to true.
21646  
21647 \begin_inset Flex Code
21648 status collapsed
21649
21650 \begin_layout Plain Layout
21651 MultiPar
21652 \end_layout
21653
21654 \end_inset
21655
21656  can be set to true, or 
21657 \begin_inset Flex Code
21658 status collapsed
21659
21660 \begin_layout Plain Layout
21661 ForcePlain
21662 \end_layout
21663
21664 \end_inset
21665
21666  to false, for 
21667 \begin_inset Flex Code
21668 status collapsed
21669
21670 \begin_layout Plain Layout
21671 charstyle
21672 \end_layout
21673
21674 \end_inset
21675
21676  insets by setting it 
21677 \emph on
21678 after
21679 \emph default
21680  you set the 
21681 \begin_inset Flex Code
21682 status collapsed
21683
21684 \begin_layout Plain Layout
21685 LyxType
21686 \end_layout
21687
21688 \end_inset
21689
21690 .
21691 \change_inserted -712698321 1555575738
21692
21693 \end_layout
21694
21695 \begin_layout Description
21696
21697 \change_inserted -712698321 1555575844
21698 \begin_inset Flex Code
21699 status collapsed
21700
21701 \begin_layout Plain Layout
21702
21703 \change_inserted -712698321 1555575740
21704 MenuString
21705 \change_unchanged
21706
21707 \end_layout
21708
21709 \end_inset
21710
21711  
21712 \begin_inset Flex Code
21713 status collapsed
21714
21715 \begin_layout Plain Layout
21716
21717 \change_inserted -712698321 1555575740
21718 [string]
21719 \change_unchanged
21720
21721 \end_layout
21722
21723 \end_inset
21724
21725  A dedicated string for the menu.
21726  You can define an accelerator by appending the respective character to
21727  the string, divided by 
21728 \begin_inset Quotes eld
21729 \end_inset
21730
21731 |
21732 \begin_inset Quotes erd
21733 \end_inset
21734
21735  (e.
21736 \begin_inset space \thinspace{}
21737 \end_inset
21738
21739 g.
21740 \begin_inset space \space{}
21741 \end_inset
21742
21743
21744 \begin_inset Quotes eld
21745 \end_inset
21746
21747
21748 \begin_inset Flex Code
21749 status collapsed
21750
21751 \begin_layout Plain Layout
21752
21753 \change_inserted -712698321 1555575781
21754 My Inset|M
21755 \change_unchanged
21756
21757 \end_layout
21758
21759 \end_inset
21760
21761
21762 \begin_inset Quotes erd
21763 \end_inset
21764
21765 ).
21766  This specification is optional.
21767  If it is not given the inset name as specified in the type declaration
21768  will be used instead for the menu.
21769 \change_unchanged
21770
21771 \end_layout
21772
21773 \begin_layout Description
21774 \begin_inset Flex Code
21775 status collapsed
21776
21777 \begin_layout Plain Layout
21778 MultiPar
21779 \end_layout
21780
21781 \end_inset
21782
21783  [
21784 \begin_inset Flex Code
21785 status collapsed
21786
21787 \begin_layout Plain Layout
21788
21789 \emph on
21790 0
21791 \end_layout
21792
21793 \end_inset
21794
21795 ,
21796 \begin_inset space \thinspace{}
21797 \end_inset
21798
21799
21800 \begin_inset Flex Code
21801 status collapsed
21802
21803 \begin_layout Plain Layout
21804 1
21805 \end_layout
21806
21807 \end_inset
21808
21809 ] Whether multiple paragraphs are permitted in this inset.
21810  This will also set 
21811 \begin_inset Flex Code
21812 status collapsed
21813
21814 \begin_layout Plain Layout
21815 CustomPars
21816 \end_layout
21817
21818 \end_inset
21819
21820  to the same value and 
21821 \begin_inset Flex Code
21822 status collapsed
21823
21824 \begin_layout Plain Layout
21825 ForcePlain
21826 \end_layout
21827
21828 \end_inset
21829
21830  to the opposite value.
21831  These can be reset to other values, if they are used 
21832 \emph on
21833 after
21834 \emph default
21835  
21836 \begin_inset Flex Code
21837 status collapsed
21838
21839 \begin_layout Plain Layout
21840 MultiPar
21841 \end_layout
21842
21843 \end_inset
21844
21845 .
21846  Default is true.
21847 \end_layout
21848
21849 \begin_layout Description
21850 \begin_inset Flex Code
21851 status collapsed
21852
21853 \begin_layout Plain Layout
21854 NeedProtect
21855 \end_layout
21856
21857 \end_inset
21858
21859  [
21860 \begin_inset Flex Code
21861 status collapsed
21862
21863 \begin_layout Plain Layout
21864
21865 \emph on
21866 0
21867 \end_layout
21868
21869 \end_inset
21870
21871 ,
21872 \begin_inset space \thinspace{}
21873 \end_inset
21874
21875
21876 \begin_inset Flex Code
21877 status collapsed
21878
21879 \begin_layout Plain Layout
21880 1
21881 \end_layout
21882
21883 \end_inset
21884
21885 ] Whether fragile commands in this inset should be 
21886 \begin_inset Flex Code
21887 status collapsed
21888
21889 \begin_layout Plain Layout
21890
21891 \backslash
21892 protect
21893 \end_layout
21894
21895 \end_inset
21896
21897 'ed.
21898  (Note: This is 
21899 \emph on
21900 not
21901 \emph default
21902  whether the command should itself be protected.) Default is false.
21903 \change_inserted -712698321 1523633958
21904
21905 \end_layout
21906
21907 \begin_layout Description
21908
21909 \change_inserted -712698321 1552395786
21910 \begin_inset Flex Code
21911 status collapsed
21912
21913 \begin_layout Plain Layout
21914
21915 \change_inserted -712698321 1523633961
21916 NeedCProtect
21917 \change_unchanged
21918
21919 \end_layout
21920
21921 \end_inset
21922
21923  [
21924 \begin_inset Flex Code
21925 status collapsed
21926
21927 \begin_layout Plain Layout
21928
21929 \change_inserted -712698321 1523633958
21930
21931 \emph on
21932 0
21933 \change_unchanged
21934
21935 \end_layout
21936
21937 \end_inset
21938
21939 ,
21940 \begin_inset space \thinspace{}
21941 \end_inset
21942
21943
21944 \begin_inset Flex Code
21945 status collapsed
21946
21947 \begin_layout Plain Layout
21948
21949 \change_inserted -712698321 1523633958
21950 1
21951 \change_unchanged
21952
21953 \end_layout
21954
21955 \end_inset
21956
21957 ] This causes macros that contain this inset to be protected with 
21958 \begin_inset Flex Code
21959 status collapsed
21960
21961 \begin_layout Plain Layout
21962
21963 \change_inserted -712698321 1523634038
21964
21965 \backslash
21966 cprotect
21967 \change_unchanged
21968
21969 \end_layout
21970
21971 \end_inset
21972
21973  (cf.
21974  package 
21975 \family sans
21976 cprotect
21977 \family default
21978 ) if necessary and thus allows (some) verbatim stuff in macros.
21979  Default is false.
21980 \end_layout
21981
21982 \begin_layout Description
21983
21984 \change_inserted -712698321 1555579651
21985 \begin_inset Flex Code
21986 status collapsed
21987
21988 \begin_layout Plain Layout
21989
21990 \change_inserted -712698321 1552395787
21991 NeedMBoxProtect
21992 \change_unchanged
21993
21994 \end_layout
21995
21996 \end_inset
21997
21998  [
21999 \begin_inset Flex Code
22000 status collapsed
22001
22002 \begin_layout Plain Layout
22003
22004 \change_inserted -712698321 1552395787
22005
22006 \emph on
22007 0
22008 \change_unchanged
22009
22010 \end_layout
22011
22012 \end_inset
22013
22014 ,
22015 \begin_inset space \thinspace{}
22016 \end_inset
22017
22018
22019 \begin_inset Flex Code
22020 status collapsed
22021
22022 \begin_layout Plain Layout
22023
22024 \change_inserted -712698321 1552395787
22025 1
22026 \change_unchanged
22027
22028 \end_layout
22029
22030 \end_inset
22031
22032 ] Whether specific commands in this inset (such as 
22033 \begin_inset Flex Code
22034 status collapsed
22035
22036 \begin_layout Plain Layout
22037
22038 \change_inserted -712698321 1552395787
22039
22040 \backslash
22041 cite
22042 \change_unchanged
22043
22044 \end_layout
22045
22046 \end_inset
22047
22048  and 
22049 \begin_inset Flex Code
22050 status collapsed
22051
22052 \begin_layout Plain Layout
22053
22054 \change_inserted -712698321 1552395787
22055
22056 \backslash
22057 ref
22058 \change_unchanged
22059
22060 \end_layout
22061
22062 \end_inset
22063
22064 ) should be protected in an 
22065 \begin_inset Flex Code
22066 status collapsed
22067
22068 \begin_layout Plain Layout
22069
22070 \change_inserted -712698321 1552395787
22071
22072 \backslash
22073 mbox
22074 \change_unchanged
22075
22076 \end_layout
22077
22078 \end_inset
22079
22080 .
22081  This is particularly needed for insets that draw on 
22082 \family sans
22083 ulem
22084 \family default
22085  or 
22086 \family sans
22087 soul
22088 \family default
22089  commands which parse their content in complex ways.
22090  Default is false.
22091 \end_layout
22092
22093 \begin_layout Description
22094
22095 \change_inserted -712698321 1555579742
22096 \begin_inset Flex Code
22097 status collapsed
22098
22099 \begin_layout Plain Layout
22100
22101 \change_inserted -712698321 1555579658
22102 NewlineCmd
22103 \change_unchanged
22104
22105 \end_layout
22106
22107 \end_inset
22108
22109  
22110 \begin_inset Flex Code
22111 status collapsed
22112
22113 \begin_layout Plain Layout
22114
22115 \change_inserted -712698321 1555579651
22116 [string]
22117 \change_unchanged
22118
22119 \end_layout
22120
22121 \end_inset
22122
22123  Option to define a different command (from the default 
22124 \begin_inset Flex Code
22125 status collapsed
22126
22127 \begin_layout Plain Layout
22128
22129 \change_inserted -712698321 1555579742
22130
22131 \backslash
22132
22133 \backslash
22134
22135 \change_unchanged
22136
22137 \end_layout
22138
22139 \end_inset
22140
22141 ) to be used for line breaks.
22142  The initial backslash must not be specified.
22143 \change_unchanged
22144
22145 \end_layout
22146
22147 \begin_layout Description
22148 \begin_inset Flex Code
22149 status collapsed
22150
22151 \begin_layout Plain Layout
22152 NoInsetLayout
22153 \end_layout
22154
22155 \end_inset
22156
22157  [
22158 \begin_inset Flex Code
22159 status collapsed
22160
22161 \begin_layout Plain Layout
22162 <layout>
22163 \end_layout
22164
22165 \end_inset
22166
22167 ] Deletes an existing 
22168 \begin_inset Flex Code
22169 status collapsed
22170
22171 \begin_layout Plain Layout
22172 InsetLayout
22173 \end_layout
22174
22175 \end_inset
22176
22177 .
22178 \end_layout
22179
22180 \begin_layout Description
22181 \begin_inset Flex Code
22182 status collapsed
22183
22184 \begin_layout Plain Layout
22185 ObsoletedBy
22186 \end_layout
22187
22188 \end_inset
22189
22190  [
22191 \begin_inset Flex Code
22192 status collapsed
22193
22194 \begin_layout Plain Layout
22195 <layout>
22196 \end_layout
22197
22198 \end_inset
22199
22200 ] Name of an 
22201 \begin_inset Flex Code
22202 status collapsed
22203
22204 \begin_layout Plain Layout
22205 InsetLayout
22206 \end_layout
22207
22208 \end_inset
22209
22210  that has replaced this 
22211 \begin_inset Flex Code
22212 status collapsed
22213
22214 \begin_layout Plain Layout
22215 InsetLayout
22216 \end_layout
22217
22218 \end_inset
22219
22220 .
22221  This is used to rename an 
22222 \begin_inset Flex Code
22223 status collapsed
22224
22225 \begin_layout Plain Layout
22226 InsetLayout
22227 \end_layout
22228
22229 \end_inset
22230
22231 , while keeping backward compatibility.
22232 \change_inserted -712698321 1559491850
22233
22234 \end_layout
22235
22236 \begin_layout Description
22237
22238 \change_inserted -712698321 1559492002
22239 \begin_inset Flex Code
22240 status collapsed
22241
22242 \begin_layout Plain Layout
22243
22244 \change_inserted -712698321 1559491854
22245 ParbreakIgnored
22246 \change_unchanged
22247
22248 \end_layout
22249
22250 \end_inset
22251
22252  [
22253 \begin_inset Flex Code
22254 status collapsed
22255
22256 \begin_layout Plain Layout
22257
22258 \change_inserted -712698321 1559491850
22259
22260 \emph on
22261 0
22262 \change_unchanged
22263
22264 \end_layout
22265
22266 \end_inset
22267
22268 ,
22269 \begin_inset space \thinspace{}
22270 \end_inset
22271
22272
22273 \begin_inset Flex Code
22274 status collapsed
22275
22276 \begin_layout Plain Layout
22277
22278 \change_inserted -712698321 1559491850
22279 1
22280 \change_unchanged
22281
22282 \end_layout
22283
22284 \end_inset
22285
22286 ] If this is set to 
22287 \begin_inset Flex Code
22288 status collapsed
22289
22290 \begin_layout Plain Layout
22291
22292 \change_inserted -712698321 1559491881
22293 1
22294 \change_unchanged
22295
22296 \end_layout
22297
22298 \end_inset
22299
22300 , paragraph breaks will be ignored in the output.
22301  This might be useful for insets where the content should be alignable on
22302  different lines only in the \SpecialChar LyX
22303  workarea, without any effect in the output.
22304 \change_unchanged
22305
22306 \end_layout
22307
22308 \begin_layout Description
22309 \begin_inset Flex Code
22310 status collapsed
22311
22312 \begin_layout Plain Layout
22313 ParbreakIsNewline
22314 \end_layout
22315
22316 \end_inset
22317
22318  [
22319 \begin_inset Flex Code
22320 status collapsed
22321
22322 \begin_layout Plain Layout
22323
22324 \emph on
22325 0
22326 \end_layout
22327
22328 \end_inset
22329
22330 ,
22331 \begin_inset space \thinspace{}
22332 \end_inset
22333
22334
22335 \begin_inset Flex Code
22336 status collapsed
22337
22338 \begin_layout Plain Layout
22339 1
22340 \end_layout
22341
22342 \end_inset
22343
22344 ] As with paragraph styles, see 
22345 \begin_inset CommandInset ref
22346 LatexCommand ref
22347 reference "subsec:Paragraph-Styles"
22348
22349 \end_inset
22350
22351 .
22352  Default is false.
22353 \end_layout
22354
22355 \begin_layout Description
22356 \begin_inset Flex Code
22357 status collapsed
22358
22359 \begin_layout Plain Layout
22360 PassThru
22361 \end_layout
22362
22363 \end_inset
22364
22365  [
22366 \begin_inset Flex Code
22367 status collapsed
22368
22369 \begin_layout Plain Layout
22370
22371 \emph on
22372 0
22373 \end_layout
22374
22375 \end_inset
22376
22377 ,
22378 \begin_inset space \thinspace{}
22379 \end_inset
22380
22381
22382 \begin_inset Flex Code
22383 status collapsed
22384
22385 \begin_layout Plain Layout
22386 1
22387 \end_layout
22388
22389 \end_inset
22390
22391 ] As with paragraph styles, see 
22392 \begin_inset CommandInset ref
22393 LatexCommand ref
22394 reference "subsec:Paragraph-Styles"
22395
22396 \end_inset
22397
22398 .
22399  Default is false.
22400 \end_layout
22401
22402 \begin_layout Description
22403 \begin_inset Flex Code
22404 status collapsed
22405
22406 \begin_layout Plain Layout
22407 Preamble
22408 \end_layout
22409
22410 \end_inset
22411
22412  As with paragraph styles, see 
22413 \begin_inset CommandInset ref
22414 LatexCommand ref
22415 reference "subsec:Paragraph-Styles"
22416
22417 \end_inset
22418
22419 .
22420 \end_layout
22421
22422 \begin_layout Description
22423 \begin_inset Flex Code
22424 status collapsed
22425
22426 \begin_layout Plain Layout
22427 RefPrefix
22428 \end_layout
22429
22430 \end_inset
22431
22432  [
22433 \begin_inset Flex Code
22434 status collapsed
22435
22436 \begin_layout Plain Layout
22437 string
22438 \end_layout
22439
22440 \end_inset
22441
22442 ] The prefix to use when creating labels referring to insets of this type.
22443  This allows the use of formatted references.
22444 \end_layout
22445
22446 \begin_layout Description
22447 \begin_inset Flex Code
22448 status collapsed
22449
22450 \begin_layout Plain Layout
22451 Requires
22452 \end_layout
22453
22454 \end_inset
22455
22456  [
22457 \begin_inset Flex Code
22458 status collapsed
22459
22460 \begin_layout Plain Layout
22461 string
22462 \end_layout
22463
22464 \end_inset
22465
22466 ] As with paragraph styles, see 
22467 \begin_inset CommandInset ref
22468 LatexCommand ref
22469 reference "subsec:Paragraph-Styles"
22470
22471 \end_inset
22472
22473 .
22474 \end_layout
22475
22476 \begin_layout Description
22477 \begin_inset Flex Code
22478 status collapsed
22479
22480 \begin_layout Plain Layout
22481 ResetArgs
22482 \end_layout
22483
22484 \end_inset
22485
22486  [
22487 \begin_inset Flex Code
22488 status collapsed
22489
22490 \begin_layout Plain Layout
22491
22492 \emph on
22493 0
22494 \end_layout
22495
22496 \end_inset
22497
22498 ,
22499 \begin_inset space \thinspace{}
22500 \end_inset
22501
22502
22503 \begin_inset Flex Code
22504 status collapsed
22505
22506 \begin_layout Plain Layout
22507 1
22508 \end_layout
22509
22510 \end_inset
22511
22512 ] Resets the \SpecialChar LaTeX
22513  arguments of this layout (as defined via the 
22514 \begin_inset Flex Code
22515 status collapsed
22516
22517 \begin_layout Plain Layout
22518 Argument
22519 \end_layout
22520
22521 \end_inset
22522
22523  tag).
22524  This is useful if you have copied a style via 
22525 \begin_inset Flex Code
22526 status collapsed
22527
22528 \begin_layout Plain Layout
22529 CopyStyle
22530 \end_layout
22531
22532 \end_inset
22533
22534 , but you do not want to inherit its (required and optional) arguments.
22535 \end_layout
22536
22537 \begin_layout Description
22538 \begin_inset Flex Code
22539 status collapsed
22540
22541 \begin_layout Plain Layout
22542 ResetsFont
22543 \end_layout
22544
22545 \end_inset
22546
22547  [
22548 \begin_inset Flex Code
22549 status collapsed
22550
22551 \begin_layout Plain Layout
22552
22553 \emph on
22554 0
22555 \end_layout
22556
22557 \end_inset
22558
22559 ,
22560 \begin_inset space \thinspace{}
22561 \end_inset
22562
22563
22564 \begin_inset Flex Code
22565 status collapsed
22566
22567 \begin_layout Plain Layout
22568 1
22569 \end_layout
22570
22571 \end_inset
22572
22573
22574 \change_inserted -712698321 1597733473
22575 If 
22576 \begin_inset Flex Code
22577 status collapsed
22578
22579 \begin_layout Plain Layout
22580
22581 \change_inserted -712698321 1597732178
22582 1
22583 \change_unchanged
22584
22585 \end_layout
22586
22587 \end_inset
22588
22589 , font changes are redone inside the respective inset (in the output) even
22590  if the inset itself is in the context of this font changes (e.
22591 \begin_inset space \thinspace{}
22592 \end_inset
22593
22594 g., 
22595 \begin_inset Flex Code
22596 status collapsed
22597
22598 \begin_layout Plain Layout
22599
22600 \change_inserted -712698321 1597733683
22601
22602 \backslash
22603 textbf{Sourrounding text 
22604 \backslash
22605 myinset{
22606 \backslash
22607 textbf{content}}\SpecialChar ldots
22608 }
22609 \change_unchanged
22610
22611 \end_layout
22612
22613 \end_inset
22614
22615  rather than 
22616 \begin_inset Flex Code
22617 status collapsed
22618
22619 \begin_layout Plain Layout
22620
22621 \change_inserted -712698321 1597733686
22622
22623 \backslash
22624 textbf{Sourrounding text 
22625 \backslash
22626 myinset{content}\SpecialChar ldots
22627 }
22628 \change_unchanged
22629
22630 \end_layout
22631
22632 \end_inset
22633
22634 .
22635  Setting this makes sense for commands that internally reset font settings
22636  (e.
22637 \begin_inset space \thinspace{}
22638 \end_inset
22639
22640 g., footnotes).
22641  Note that wrongly setting this might lead to unwanted result (e.
22642 \begin_inset space \thinspace{}
22643 \end_inset
22644
22645 g., with 
22646 \begin_inset Flex Code
22647 status collapsed
22648
22649 \begin_layout Plain Layout
22650
22651 \change_inserted -712698321 1597733688
22652
22653 \backslash
22654 emph{Sourrounding text 
22655 \backslash
22656 myinset{
22657 \backslash
22658 emph{content}}\SpecialChar ldots
22659 }
22660 \change_unchanged
22661
22662 \end_layout
22663
22664 \end_inset
22665
22666 , content is upright, as 
22667 \begin_inset Flex Code
22668 status collapsed
22669
22670 \begin_layout Plain Layout
22671
22672 \change_inserted -712698321 1597733278
22673
22674 \backslash
22675 emph
22676 \change_unchanged
22677
22678 \end_layout
22679
22680 \end_inset
22681
22682  toggles.
22683  
22684 \change_deleted -712698321 1597733283
22685 Whether this inset should use the font of its surrounding environment or
22686  uses its own.
22687  
22688 \change_unchanged
22689 Default is 
22690 \change_deleted -712698321 1597733290
22691 false
22692 \change_inserted -712698321 1597733290
22693
22694 \begin_inset Flex Code
22695 status collapsed
22696
22697 \begin_layout Plain Layout
22698
22699 \change_inserted -712698321 1597733292
22700 0
22701 \change_unchanged
22702
22703 \end_layout
22704
22705 \end_inset
22706
22707
22708 \change_unchanged
22709
22710 \change_deleted -712698321 1597733327
22711 use the font of the surrounding environment
22712 \change_inserted -712698321 1597733343
22713 font changes are not redone inside the inset
22714 \change_unchanged
22715 .
22716 \end_layout
22717
22718 \begin_layout Description
22719 \begin_inset Flex Code
22720 status collapsed
22721
22722 \begin_layout Plain Layout
22723 RightDelim
22724 \end_layout
22725
22726 \end_inset
22727
22728  [
22729 \begin_inset Flex Code
22730 status collapsed
22731
22732 \begin_layout Plain Layout
22733 string
22734 \end_layout
22735
22736 \end_inset
22737
22738 ] A string that is put at the end of the layout content.
22739  A line break in the output can be indicated by 
22740 \begin_inset Flex Code
22741 status collapsed
22742
22743 \begin_layout Plain Layout
22744 <br/>
22745 \end_layout
22746
22747 \end_inset
22748
22749 .
22750 \end_layout
22751
22752 \begin_layout Description
22753 \begin_inset Flex Code
22754 status collapsed
22755
22756 \begin_layout Plain Layout
22757 Spellcheck
22758 \end_layout
22759
22760 \end_inset
22761
22762  [
22763 \begin_inset Flex Code
22764 status collapsed
22765
22766 \begin_layout Plain Layout
22767 0
22768 \end_layout
22769
22770 \end_inset
22771
22772 ,
22773 \begin_inset space \thinspace{}
22774 \end_inset
22775
22776
22777 \begin_inset Flex Code
22778 status collapsed
22779
22780 \begin_layout Plain Layout
22781
22782 \emph on
22783 1
22784 \end_layout
22785
22786 \end_inset
22787
22788 ] Allow spell-checking the contents of this inset.
22789  Default is true.
22790 \change_inserted -584632292 1615846659
22791
22792 \end_layout
22793
22794 \begin_layout Subsection
22795
22796 \change_inserted -584632292 1615846729
22797 Arguments
22798 \begin_inset CommandInset label
22799 LatexCommand label
22800 name "subsec:Arguments"
22801
22802 \end_inset
22803
22804
22805 \end_layout
22806
22807 \begin_layout Standard
22808
22809 \change_inserted -584632292 1615846807
22810 Both paragraph styles and inset layouts allow for 
22811 \emph on
22812 arguments
22813 \emph default
22814  as well as the main content.
22815  This is especially useful for things like section headings and only makes
22816  sense with \SpecialChar LaTeX
22817 .
22818  Each (optional or required) argument of a command or environment—except
22819  for the required argument that is associated with the content—has a separate
22820  definition, where the number specifies the order of the arguments.
22821  The definition must end with 
22822 \begin_inset Flex Code
22823 status collapsed
22824
22825 \begin_layout Plain Layout
22826
22827 \change_inserted -584632292 1615846730
22828 EndArgument
22829 \change_unchanged
22830
22831 \end_layout
22832
22833 \end_inset
22834
22835 .
22836  So a command with two optional arguments looks like:
22837 \end_layout
22838
22839 \begin_layout Quote
22840
22841 \change_inserted -584632292 1615846730
22842
22843 \family typewriter
22844 Argument 1
22845 \end_layout
22846
22847 \begin_layout Quote
22848
22849 \change_inserted -584632292 1615846730
22850
22851 \family typewriter
22852 ...
22853 \end_layout
22854
22855 \begin_layout Quote
22856
22857 \change_inserted -584632292 1615846730
22858
22859 \family typewriter
22860 EndArgument
22861 \end_layout
22862
22863 \begin_layout Quote
22864
22865 \change_inserted -584632292 1615846730
22866
22867 \family typewriter
22868 Argument 2
22869 \end_layout
22870
22871 \begin_layout Quote
22872
22873 \change_inserted -584632292 1615846730
22874
22875 \family typewriter
22876 ...
22877 \end_layout
22878
22879 \begin_layout Quote
22880
22881 \change_inserted -584632292 1615846730
22882
22883 \family typewriter
22884 EndArgument
22885 \end_layout
22886
22887 \begin_layout Standard
22888
22889 \change_inserted -584632292 1615846730
22890 Inside the 
22891 \begin_inset Flex Code
22892 status collapsed
22893
22894 \begin_layout Plain Layout
22895
22896 \change_inserted -584632292 1615846730
22897 Argument
22898 \change_unchanged
22899
22900 \end_layout
22901
22902 \end_inset
22903
22904  definition, the following specifications are possible:
22905 \end_layout
22906
22907 \begin_layout Itemize
22908
22909 \change_inserted -584632292 1615846730
22910 \begin_inset Flex Code
22911 status collapsed
22912
22913 \begin_layout Plain Layout
22914
22915 \change_inserted -584632292 1615846730
22916 LabelString
22917 \change_unchanged
22918
22919 \end_layout
22920
22921 \end_inset
22922
22923  
22924 \begin_inset Flex Code
22925 status collapsed
22926
22927 \begin_layout Plain Layout
22928
22929 \change_inserted -584632292 1615846730
22930 [string]
22931 \change_unchanged
22932
22933 \end_layout
22934
22935 \end_inset
22936
22937  The string that will appear both in the menu (to insert this argument)
22938  and on the argument inset button (unless you also specify a separate 
22939 \begin_inset Flex Code
22940 status collapsed
22941
22942 \begin_layout Plain Layout
22943
22944 \change_inserted -584632292 1615846730
22945 MenuString
22946 \change_unchanged
22947
22948 \end_layout
22949
22950 \end_inset
22951
22952 ).
22953  For the menu, you can define an accelerator by appending the respective
22954  character to the string, divided by 
22955 \begin_inset Quotes eld
22956 \end_inset
22957
22958 |
22959 \begin_inset Quotes erd
22960 \end_inset
22961
22962  (e.
22963 \begin_inset space \thinspace{}
22964 \end_inset
22965
22966 g.
22967 \begin_inset space \space{}
22968 \end_inset
22969
22970
22971 \begin_inset Quotes eld
22972 \end_inset
22973
22974
22975 \begin_inset Flex Code
22976 status collapsed
22977
22978 \begin_layout Plain Layout
22979
22980 \change_inserted -584632292 1615846730
22981 Short Title|S
22982 \change_unchanged
22983
22984 \end_layout
22985
22986 \end_inset
22987
22988
22989 \begin_inset Quotes erd
22990 \end_inset
22991
22992 ).
22993 \end_layout
22994
22995 \begin_layout Itemize
22996
22997 \change_inserted -584632292 1615846730
22998 \begin_inset Flex Code
22999 status collapsed
23000
23001 \begin_layout Plain Layout
23002
23003 \change_inserted -584632292 1615846730
23004 MenuString
23005 \change_unchanged
23006
23007 \end_layout
23008
23009 \end_inset
23010
23011  
23012 \begin_inset Flex Code
23013 status collapsed
23014
23015 \begin_layout Plain Layout
23016
23017 \change_inserted -584632292 1615846730
23018 [string]
23019 \change_unchanged
23020
23021 \end_layout
23022
23023 \end_inset
23024
23025  A separate string for the menu.
23026  You can define an accelerator by appending the respective character to
23027  the string, divided by 
23028 \begin_inset Quotes eld
23029 \end_inset
23030
23031 |
23032 \begin_inset Quotes erd
23033 \end_inset
23034
23035  (e.
23036 \begin_inset space \thinspace{}
23037 \end_inset
23038
23039 g.
23040 \begin_inset space \space{}
23041 \end_inset
23042
23043
23044 \begin_inset Quotes eld
23045 \end_inset
23046
23047
23048 \begin_inset Flex Code
23049 status collapsed
23050
23051 \begin_layout Plain Layout
23052
23053 \change_inserted -584632292 1615846730
23054 Short Title|S
23055 \change_unchanged
23056
23057 \end_layout
23058
23059 \end_inset
23060
23061
23062 \begin_inset Quotes erd
23063 \end_inset
23064
23065 ).
23066  This specification is optional.
23067  If it is not given the 
23068 \begin_inset Flex Code
23069 status collapsed
23070
23071 \begin_layout Plain Layout
23072
23073 \change_inserted -584632292 1615846730
23074 LabelString
23075 \change_unchanged
23076
23077 \end_layout
23078
23079 \end_inset
23080
23081  will be used instead for the menu.
23082 \end_layout
23083
23084 \begin_layout Itemize
23085
23086 \change_inserted -584632292 1615846730
23087 \begin_inset Flex Code
23088 status collapsed
23089
23090 \begin_layout Plain Layout
23091
23092 \change_inserted -584632292 1615846730
23093 Tooltip
23094 \change_unchanged
23095
23096 \end_layout
23097
23098 \end_inset
23099
23100  
23101 \begin_inset Flex Code
23102 status collapsed
23103
23104 \begin_layout Plain Layout
23105
23106 \change_inserted -584632292 1615846730
23107 [string]
23108 \change_unchanged
23109
23110 \end_layout
23111
23112 \end_inset
23113
23114  A longer explanatory text that appears in the tooltip when hovering over
23115  the argument inset.
23116 \end_layout
23117
23118 \begin_layout Itemize
23119
23120 \change_inserted -584632292 1615846730
23121 \begin_inset Flex Code
23122 status collapsed
23123
23124 \begin_layout Plain Layout
23125
23126 \change_inserted -584632292 1615846730
23127 Mandatory
23128 \change_unchanged
23129
23130 \end_layout
23131
23132 \end_inset
23133
23134  [
23135 \begin_inset Flex Code
23136 status collapsed
23137
23138 \begin_layout Plain Layout
23139
23140 \change_inserted -584632292 1615846730
23141
23142 \emph on
23143 0
23144 \change_unchanged
23145
23146 \end_layout
23147
23148 \end_inset
23149
23150 ,
23151 \begin_inset space \thinspace{}
23152 \end_inset
23153
23154
23155 \begin_inset Flex Code
23156 status collapsed
23157
23158 \begin_layout Plain Layout
23159
23160 \change_inserted -584632292 1615846730
23161 1
23162 \change_unchanged
23163
23164 \end_layout
23165
23166 \end_inset
23167
23168 ] Declare if this is a mandatory (1) or an optional (0) argument.
23169  Mandatory arguments will be output empty if not given, while optional arguments
23170  will not be output at all.
23171  By default, mandatory arguments are delimited by 
23172 \begin_inset Flex Code
23173 status collapsed
23174
23175 \begin_layout Plain Layout
23176
23177 \change_inserted -584632292 1615846730
23178 {...}
23179 \change_unchanged
23180
23181 \end_layout
23182
23183 \end_inset
23184
23185 , while optional arguments are delimited by 
23186 \begin_inset Flex Code
23187 status collapsed
23188
23189 \begin_layout Plain Layout
23190
23191 \change_inserted -584632292 1615846730
23192 [...]
23193 \change_unchanged
23194
23195 \end_layout
23196
23197 \end_inset
23198
23199
23200 \end_layout
23201
23202 \begin_layout Itemize
23203
23204 \change_inserted -584632292 1615846730
23205 \begin_inset Flex Code
23206 status collapsed
23207
23208 \begin_layout Plain Layout
23209
23210 \change_inserted -584632292 1615846730
23211 NewlineCmd
23212 \change_unchanged
23213
23214 \end_layout
23215
23216 \end_inset
23217
23218  
23219 \begin_inset Flex Code
23220 status collapsed
23221
23222 \begin_layout Plain Layout
23223
23224 \change_inserted -584632292 1615846730
23225 [string]
23226 \change_unchanged
23227
23228 \end_layout
23229
23230 \end_inset
23231
23232  Option to define a different command (from the default 
23233 \begin_inset Flex Code
23234 status collapsed
23235
23236 \begin_layout Plain Layout
23237
23238 \change_inserted -584632292 1615846730
23239
23240 \backslash
23241
23242 \backslash
23243
23244 \change_unchanged
23245
23246 \end_layout
23247
23248 \end_inset
23249
23250 ) to be used for line breaks.
23251  The initial backslash must not be specified.
23252 \end_layout
23253
23254 \begin_layout Itemize
23255
23256 \change_inserted -584632292 1615846730
23257 \begin_inset Flex Code
23258 status collapsed
23259
23260 \begin_layout Plain Layout
23261
23262 \change_inserted -584632292 1615846730
23263 Requires
23264 \change_unchanged
23265
23266 \end_layout
23267
23268 \end_inset
23269
23270  
23271 \begin_inset Flex Code
23272 status collapsed
23273
23274 \begin_layout Plain Layout
23275
23276 \change_inserted -584632292 1615846730
23277 [int=0]
23278 \change_unchanged
23279
23280 \end_layout
23281
23282 \end_inset
23283
23284  defines another argument (by its number) which this argument requires to
23285  be output if it is itself output.
23286  E.
23287 \begin_inset space \thinspace{}
23288 \end_inset
23289
23290 g., in \SpecialChar LaTeX
23291  commands, optional arguments often require previous optional arguments
23292  to be output (at least empty), as in 
23293 \begin_inset Flex Code
23294 status collapsed
23295
23296 \begin_layout Plain Layout
23297
23298 \change_inserted -584632292 1615846730
23299
23300 \backslash
23301 command[][argument]{text}
23302 \change_unchanged
23303
23304 \end_layout
23305
23306 \end_inset
23307
23308 .
23309  This can be achieved by the statement 
23310 \begin_inset Flex Code
23311 status collapsed
23312
23313 \begin_layout Plain Layout
23314
23315 \change_inserted -584632292 1615846730
23316 Requires 1
23317 \change_unchanged
23318
23319 \end_layout
23320
23321 \end_inset
23322
23323  within 
23324 \begin_inset Flex Code
23325 status collapsed
23326
23327 \begin_layout Plain Layout
23328
23329 \change_inserted -584632292 1615846730
23330 Argument 2
23331 \change_unchanged
23332
23333 \end_layout
23334
23335 \end_inset
23336
23337 .
23338 \end_layout
23339
23340 \begin_layout Itemize
23341
23342 \change_inserted -584632292 1615846730
23343 \begin_inset Flex Code
23344 status collapsed
23345
23346 \begin_layout Plain Layout
23347
23348 \change_inserted -584632292 1615846730
23349 LeftDelim
23350 \change_unchanged
23351
23352 \end_layout
23353
23354 \end_inset
23355
23356  
23357 \begin_inset Flex Code
23358 status collapsed
23359
23360 \begin_layout Plain Layout
23361
23362 \change_inserted -584632292 1615846730
23363 [string]
23364 \change_unchanged
23365
23366 \end_layout
23367
23368 \end_inset
23369
23370  defines a custom left delimiter (instead of 
23371 \begin_inset Flex Code
23372 status collapsed
23373
23374 \begin_layout Plain Layout
23375
23376 \change_inserted -584632292 1615846730
23377 {
23378 \change_unchanged
23379
23380 \end_layout
23381
23382 \end_inset
23383
23384  or 
23385 \begin_inset Flex Code
23386 status collapsed
23387
23388 \begin_layout Plain Layout
23389
23390 \change_inserted -584632292 1615846730
23391 [
23392 \change_unchanged
23393
23394 \end_layout
23395
23396 \end_inset
23397
23398 ).
23399  A line break in the output can be indicated by 
23400 \begin_inset Flex Code
23401 status collapsed
23402
23403 \begin_layout Plain Layout
23404
23405 \change_inserted -584632292 1615846730
23406 <br/>
23407 \change_unchanged
23408
23409 \end_layout
23410
23411 \end_inset
23412
23413 .
23414 \end_layout
23415
23416 \begin_layout Itemize
23417
23418 \change_inserted -584632292 1615846730
23419 \begin_inset Flex Code
23420 status collapsed
23421
23422 \begin_layout Plain Layout
23423
23424 \change_inserted -584632292 1615846730
23425 RightDelim
23426 \change_unchanged
23427
23428 \end_layout
23429
23430 \end_inset
23431
23432  
23433 \begin_inset Flex Code
23434 status collapsed
23435
23436 \begin_layout Plain Layout
23437
23438 \change_inserted -584632292 1615846730
23439 [string]
23440 \change_unchanged
23441
23442 \end_layout
23443
23444 \end_inset
23445
23446  defines a custom right delimiter (instead of 
23447 \begin_inset Flex Code
23448 status collapsed
23449
23450 \begin_layout Plain Layout
23451
23452 \change_inserted -584632292 1615846730
23453 }
23454 \change_unchanged
23455
23456 \end_layout
23457
23458 \end_inset
23459
23460  or 
23461 \begin_inset Flex Code
23462 status collapsed
23463
23464 \begin_layout Plain Layout
23465
23466 \change_inserted -584632292 1615846730
23467 ]
23468 \change_unchanged
23469
23470 \end_layout
23471
23472 \end_inset
23473
23474 ).
23475  A line break in the output can be indicated by 
23476 \begin_inset Flex Code
23477 status collapsed
23478
23479 \begin_layout Plain Layout
23480
23481 \change_inserted -584632292 1615846730
23482 <br/>
23483 \change_unchanged
23484
23485 \end_layout
23486
23487 \end_inset
23488
23489 .
23490 \end_layout
23491
23492 \begin_layout Itemize
23493
23494 \change_inserted -584632292 1615846730
23495 \begin_inset Flex Code
23496 status collapsed
23497
23498 \begin_layout Plain Layout
23499
23500 \change_inserted -584632292 1615846730
23501 DefaultArg
23502 \change_unchanged
23503
23504 \end_layout
23505
23506 \end_inset
23507
23508  
23509 \begin_inset Flex Code
23510 status collapsed
23511
23512 \begin_layout Plain Layout
23513
23514 \change_inserted -584632292 1615846730
23515 [string]
23516 \change_unchanged
23517
23518 \end_layout
23519
23520 \end_inset
23521
23522  defines an argument that is inserted if and only if no user-specified arguments
23523  were given, i.
23524 \begin_inset space \thinspace{}
23525 \end_inset
23526
23527 e.
23528 \begin_inset space \space{}
23529 \end_inset
23530
23531 if no argument inset has been inserted (note that also an empty argument
23532  inset omits the DefaultArg).
23533  Multiple arguments need to be separated by comma.
23534 \end_layout
23535
23536 \begin_layout Itemize
23537
23538 \change_inserted -584632292 1615846730
23539 \begin_inset Flex Code
23540 status collapsed
23541
23542 \begin_layout Plain Layout
23543
23544 \change_inserted -584632292 1615846730
23545 PresetArg
23546 \change_unchanged
23547
23548 \end_layout
23549
23550 \end_inset
23551
23552  
23553 \begin_inset Flex Code
23554 status collapsed
23555
23556 \begin_layout Plain Layout
23557
23558 \change_inserted -584632292 1615846730
23559 [string]
23560 \change_unchanged
23561
23562 \end_layout
23563
23564 \end_inset
23565
23566  defines an argument that is inserted in any case (alone or in addition
23567  to user-specified arguments).
23568  Multiple arguments need to be separated by comma.
23569 \end_layout
23570
23571 \begin_layout Itemize
23572
23573 \change_inserted -584632292 1615846730
23574 \begin_inset Flex Code
23575 status collapsed
23576
23577 \begin_layout Plain Layout
23578
23579 \change_inserted -584632292 1615846730
23580 Font
23581 \change_unchanged
23582
23583 \end_layout
23584
23585 \end_inset
23586
23587  The font used for the argument content, see 
23588 \begin_inset CommandInset ref
23589 LatexCommand ref
23590 reference "subsec:Font-description"
23591
23592 \end_inset
23593
23594 .
23595 \end_layout
23596
23597 \begin_layout Itemize
23598
23599 \change_inserted -584632292 1615846730
23600 \begin_inset Flex Code
23601 status collapsed
23602
23603 \begin_layout Plain Layout
23604
23605 \change_inserted -584632292 1615846730
23606 FreeSpacing
23607 \change_unchanged
23608
23609 \end_layout
23610
23611 \end_inset
23612
23613  [
23614 \begin_inset Flex Code
23615 status collapsed
23616
23617 \begin_layout Plain Layout
23618
23619 \change_inserted -584632292 1615846730
23620
23621 \emph on
23622 0
23623 \change_unchanged
23624
23625 \end_layout
23626
23627 \end_inset
23628
23629 ,
23630 \begin_inset space \thinspace{}
23631 \end_inset
23632
23633
23634 \begin_inset Flex Code
23635 status collapsed
23636
23637 \begin_layout Plain Layout
23638
23639 \change_inserted -584632292 1615846730
23640 1
23641 \change_unchanged
23642
23643 \end_layout
23644
23645 \end_inset
23646
23647 ] As with paragraph styles, see 
23648 \begin_inset CommandInset ref
23649 LatexCommand ref
23650 reference "subsec:Paragraph-Styles"
23651
23652 \end_inset
23653
23654 .
23655 \end_layout
23656
23657 \begin_layout Itemize
23658
23659 \change_inserted -584632292 1615846730
23660 \begin_inset Flex Code
23661 status collapsed
23662
23663 \begin_layout Plain Layout
23664
23665 \change_inserted -584632292 1615846730
23666 LabelFont
23667 \change_unchanged
23668
23669 \end_layout
23670
23671 \end_inset
23672
23673  The font used for the label; see 
23674 \begin_inset CommandInset ref
23675 LatexCommand ref
23676 reference "subsec:Font-description"
23677
23678 \end_inset
23679
23680 .
23681 \end_layout
23682
23683 \begin_layout Itemize
23684
23685 \change_inserted -584632292 1615846730
23686 \begin_inset Flex Code
23687 status collapsed
23688
23689 \begin_layout Plain Layout
23690
23691 \change_inserted -584632292 1615846730
23692 Decoration
23693 \change_unchanged
23694
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 \change_inserted -584632292 1615846730
23706
23707 \emph on
23708 Classic
23709 \emph default
23710 , Minimalistic, Conglomerate
23711 \change_unchanged
23712
23713 \end_layout
23714
23715 \end_inset
23716
23717 ] describes the rendering style used for the inset's frame and buttons.
23718 \end_layout
23719
23720 \begin_layout Itemize
23721
23722 \change_inserted -584632292 1615846730
23723 \begin_inset Flex Code
23724 status collapsed
23725
23726 \begin_layout Plain Layout
23727
23728 \change_inserted -584632292 1615846730
23729 AutoInsert
23730 \change_unchanged
23731
23732 \end_layout
23733
23734 \end_inset
23735
23736  
23737 \begin_inset Flex Code
23738 status collapsed
23739
23740 \begin_layout Plain Layout
23741
23742 \change_inserted -584632292 1615846730
23743 [int=0]
23744 \change_unchanged
23745
23746 \end_layout
23747
23748 \end_inset
23749
23750  If this is set to 
23751 \begin_inset Flex Code
23752 status collapsed
23753
23754 \begin_layout Plain Layout
23755
23756 \change_inserted -584632292 1615846730
23757 1
23758 \change_unchanged
23759
23760 \end_layout
23761
23762 \end_inset
23763
23764 , this argument is automatically inserted when the respective style is selected.
23765 \end_layout
23766
23767 \begin_layout Itemize
23768
23769 \change_inserted -584632292 1615846730
23770 \begin_inset Flex Code
23771 status collapsed
23772
23773 \begin_layout Plain Layout
23774
23775 \change_inserted -584632292 1615846730
23776 InsertOnNewline
23777 \change_unchanged
23778
23779 \end_layout
23780
23781 \end_inset
23782
23783  
23784 \begin_inset Flex Code
23785 status collapsed
23786
23787 \begin_layout Plain Layout
23788
23789 \change_inserted -584632292 1615846730
23790 [int=0]
23791 \change_unchanged
23792
23793 \end_layout
23794
23795 \end_inset
23796
23797  If this is set to 
23798 \begin_inset Flex Code
23799 status collapsed
23800
23801 \begin_layout Plain Layout
23802
23803 \change_inserted -584632292 1615846730
23804 1
23805 \change_unchanged
23806
23807 \end_layout
23808
23809 \end_inset
23810
23811 , this argument will be inserted on a new line with 
23812 \begin_inset Flex Code
23813 status collapsed
23814
23815 \begin_layout Plain Layout
23816
23817 \change_inserted -584632292 1615846730
23818 AutoInsert
23819 \change_unchanged
23820
23821 \end_layout
23822
23823 \end_inset
23824
23825  (only available within Flex insets).
23826 \end_layout
23827
23828 \begin_layout Itemize
23829
23830 \change_inserted -584632292 1615846730
23831 \begin_inset Flex Code
23832 status collapsed
23833
23834 \begin_layout Plain Layout
23835
23836 \change_inserted -584632292 1615846730
23837 InsertCotext
23838 \change_unchanged
23839
23840 \end_layout
23841
23842 \end_inset
23843
23844  
23845 \begin_inset Flex Code
23846 status collapsed
23847
23848 \begin_layout Plain Layout
23849
23850 \change_inserted -584632292 1615846730
23851 [int=0]
23852 \change_unchanged
23853
23854 \end_layout
23855
23856 \end_inset
23857
23858  If this is set to 
23859 \begin_inset Flex Code
23860 status collapsed
23861
23862 \begin_layout Plain Layout
23863
23864 \change_inserted -584632292 1615846730
23865 1
23866 \change_unchanged
23867
23868 \end_layout
23869
23870 \end_inset
23871
23872 , this argument will be inserted with a copy of the co-text (either selected
23873  text or the whole paragraph) as content.
23874 \end_layout
23875
23876 \begin_layout Itemize
23877
23878 \change_inserted -584632292 1615846730
23879 \begin_inset Flex Code
23880 status collapsed
23881
23882 \begin_layout Plain Layout
23883
23884 \change_inserted -584632292 1615846730
23885 PassThru
23886 \change_unchanged
23887
23888 \end_layout
23889
23890 \end_inset
23891
23892  [
23893 \begin_inset Flex Code
23894 status collapsed
23895
23896 \begin_layout Plain Layout
23897
23898 \change_inserted -584632292 1615846730
23899
23900 \emph on
23901 inherited
23902 \emph default
23903 , true, false
23904 \change_unchanged
23905
23906 \end_layout
23907
23908 \end_inset
23909
23910 ] Whether the contents of this argument should be output in raw form, meaning
23911  without special translations that \SpecialChar LaTeX
23912  would require.
23913  By default, the 
23914 \begin_inset Flex Code
23915 status collapsed
23916
23917 \begin_layout Plain Layout
23918
23919 \change_inserted -584632292 1615846730
23920 PassThru
23921 \change_unchanged
23922
23923 \end_layout
23924
23925 \end_inset
23926
23927  status is inherited by the inset or paragraph layout the argument belongs
23928  to, true and false change the status for the given argument only.
23929 \end_layout
23930
23931 \begin_layout Itemize
23932
23933 \change_inserted -584632292 1615846730
23934 \begin_inset Flex Code
23935 status collapsed
23936
23937 \begin_layout Plain Layout
23938
23939 \change_inserted -584632292 1615846730
23940 PassThruChars
23941 \change_unchanged
23942
23943 \end_layout
23944
23945 \end_inset
23946
23947  [
23948 \begin_inset Flex Code
23949 status collapsed
23950
23951 \begin_layout Plain Layout
23952
23953 \change_inserted -584632292 1615846730
23954 string of characters
23955 \change_unchanged
23956
23957 \end_layout
23958
23959 \end_inset
23960
23961 ]
23962 \family typewriter
23963  
23964 \family default
23965 Defines individual characters
23966 \begin_inset Newline linebreak
23967 \end_inset
23968
23969 that should be output in raw form, meaning without special translations
23970  that \SpecialChar LaTeX
23971  would require.
23972  Note that, contrary to PassThru, this needs to be explicitly defined for
23973  arguments.
23974  That is, arguments do not inherit PassThruChars from their parent inset
23975  or layout.
23976 \end_layout
23977
23978 \begin_layout Itemize
23979
23980 \change_inserted -584632292 1615846730
23981 \begin_inset Flex Code
23982 status collapsed
23983
23984 \begin_layout Plain Layout
23985
23986 \change_inserted -584632292 1615846730
23987 IsTocCaption
23988 \change_unchanged
23989
23990 \end_layout
23991
23992 \end_inset
23993
23994  [
23995 \begin_inset Flex Code
23996 status collapsed
23997
23998 \begin_layout Plain Layout
23999
24000 \change_inserted -584632292 1615846730
24001
24002 \emph on
24003 0
24004 \change_unchanged
24005
24006 \end_layout
24007
24008 \end_inset
24009
24010 ,
24011 \begin_inset space \thinspace{}
24012 \end_inset
24013
24014
24015 \begin_inset Flex Code
24016 status collapsed
24017
24018 \begin_layout Plain Layout
24019
24020 \change_inserted -584632292 1615846730
24021 1
24022 \change_unchanged
24023
24024 \end_layout
24025
24026 \end_inset
24027
24028 ] If this is set to 1, the argument will output its content in the corresponding
24029  item in the table of contents.
24030  See AddToToc.
24031 \end_layout
24032
24033 \begin_layout Standard
24034
24035 \change_inserted -584632292 1615846730
24036 By default, the text entered in the \SpecialChar LyX
24037  workarea in the respective layout is
24038  the last (mandatory) argument of a command if the 
24039 \begin_inset Flex Code
24040 status collapsed
24041
24042 \begin_layout Plain Layout
24043
24044 \change_inserted -584632292 1615846730
24045 LatexType
24046 \change_unchanged
24047
24048 \end_layout
24049
24050 \end_inset
24051
24052  is 
24053 \begin_inset Flex Code
24054 status collapsed
24055
24056 \begin_layout Plain Layout
24057
24058 \change_inserted -584632292 1615846730
24059 Command
24060 \change_unchanged
24061
24062 \end_layout
24063
24064 \end_inset
24065
24066 .
24067  However, arguments with the prefix 
24068 \begin_inset Flex Code
24069 status collapsed
24070
24071 \begin_layout Plain Layout
24072
24073 \change_inserted -584632292 1615846730
24074 post:
24075 \change_unchanged
24076
24077 \end_layout
24078
24079 \end_inset
24080
24081  are output after this workarea argument.
24082  Note that post-argument numbering restarts at 1, so the first argument
24083  following the workarea argument is 
24084 \begin_inset Flex Code
24085 status collapsed
24086
24087 \begin_layout Plain Layout
24088
24089 \change_inserted -584632292 1615846730
24090 post:1
24091 \change_unchanged
24092
24093 \end_layout
24094
24095 \end_inset
24096
24097 .
24098  Post-arguments are ignored in any other 
24099 \begin_inset Flex Code
24100 status collapsed
24101
24102 \begin_layout Plain Layout
24103
24104 \change_inserted -584632292 1615846730
24105 LatexType
24106 \change_unchanged
24107
24108 \end_layout
24109
24110 \end_inset
24111
24112  than 
24113 \begin_inset Flex Code
24114 status collapsed
24115
24116 \begin_layout Plain Layout
24117
24118 \change_inserted -584632292 1615846730
24119 Command
24120 \change_unchanged
24121
24122 \end_layout
24123
24124 \end_inset
24125
24126 .
24127 \end_layout
24128
24129 \begin_layout Standard
24130
24131 \change_inserted -584632292 1615846730
24132 Arguments for list 
24133 \begin_inset Flex Code
24134 status collapsed
24135
24136 \begin_layout Plain Layout
24137
24138 \change_inserted -584632292 1615846730
24139
24140 \backslash
24141 item
24142 \change_unchanged
24143
24144 \end_layout
24145
24146 \end_inset
24147
24148 s (as in 
24149 \begin_inset Flex Code
24150 status collapsed
24151
24152 \begin_layout Plain Layout
24153
24154 \change_inserted -584632292 1615846730
24155
24156 \backslash
24157 item[foo]
24158 \change_unchanged
24159
24160 \end_layout
24161
24162 \end_inset
24163
24164 ) have the prefix 
24165 \begin_inset Flex Code
24166 status collapsed
24167
24168 \begin_layout Plain Layout
24169
24170 \change_inserted -584632292 1615846730
24171 item:
24172 \change_unchanged
24173
24174 \end_layout
24175
24176 \end_inset
24177
24178  followed by the number (e.
24179 \begin_inset space \thinspace{}
24180 \end_inset
24181
24182 g.
24183 \begin_inset space \space{}
24184 \end_inset
24185
24186
24187 \begin_inset Flex Code
24188 status collapsed
24189
24190 \begin_layout Plain Layout
24191
24192 \change_inserted -584632292 1615846730
24193 Argument item:1
24194 \change_unchanged
24195
24196 \end_layout
24197
24198 \end_inset
24199
24200 ).
24201 \end_layout
24202
24203 \begin_layout Standard
24204
24205 \change_inserted -584632292 1615846730
24206 Finally, there is a special argument type with the prefix 
24207 \begin_inset Flex Code
24208 status collapsed
24209
24210 \begin_layout Plain Layout
24211
24212 \change_inserted -584632292 1615846730
24213 listpreamble:
24214 \change_unchanged
24215
24216 \end_layout
24217
24218 \end_inset
24219
24220 .
24221  It is not really an argument, but uses the argument interface (thus, the
24222  prefix is also followed by a number, e.
24223 \begin_inset space \thinspace{}
24224 \end_inset
24225
24226 g.
24227  
24228 \begin_inset Flex Code
24229 status collapsed
24230
24231 \begin_layout Plain Layout
24232
24233 \change_inserted -584632292 1615846730
24234 Argument listpreamble:1
24235 \change_unchanged
24236
24237 \end_layout
24238
24239 \end_inset
24240
24241 ).
24242  As the name implies, it is targeted at lists such as 
24243 \family sans
24244 Itemize
24245 \family default
24246
24247 \family sans
24248 Enumerate
24249 \family default
24250
24251 \family sans
24252 Description
24253 \family default
24254 , or 
24255 \family sans
24256 Bibliography
24257 \family default
24258 .
24259  Its content will be output at the list start, before the first 
24260 \begin_inset Flex Code
24261 status collapsed
24262
24263 \begin_layout Plain Layout
24264
24265 \change_inserted -584632292 1615846730
24266
24267 \backslash
24268 item
24269 \change_unchanged
24270
24271 \end_layout
24272
24273 \end_inset
24274
24275 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
24276 ).
24277  This way, users can insert redefinitions (of lengths etc.) to individual
24278  lists.
24279  By default, these arguments do not have a delimiter.
24280 \change_unchanged
24281
24282 \end_layout
24283
24284 \begin_layout Subsection
24285 Counters
24286 \begin_inset CommandInset label
24287 LatexCommand label
24288 name "subsec:Counters"
24289
24290 \end_inset
24291
24292
24293 \end_layout
24294
24295 \begin_layout Standard
24296 It is necessary to define the counters (
24297 \begin_inset Flex Noun
24298 status collapsed
24299
24300 \begin_layout Plain Layout
24301 chapter
24302 \end_layout
24303
24304 \end_inset
24305
24306
24307 \begin_inset Flex Noun
24308 status collapsed
24309
24310 \begin_layout Plain Layout
24311 figure
24312 \end_layout
24313
24314 \end_inset
24315
24316 , \SpecialChar ldots
24317 ) in the text class itself.
24318  The standard counters are defined in the file 
24319 \begin_inset Flex Code
24320 status collapsed
24321
24322 \begin_layout Plain Layout
24323 stdcounters.inc
24324 \end_layout
24325
24326 \end_inset
24327
24328 , so you may have to do no more than add
24329 \end_layout
24330
24331 \begin_layout LyX-Code
24332 Input stdcounters.inc
24333 \end_layout
24334
24335 \begin_layout Standard
24336 to your layout file to get them to work.
24337  But if you want to define custom counters, then you can do so.
24338  The counter declaration must begin with:
24339 \end_layout
24340
24341 \begin_layout LyX-Code
24342 Counter CounterName
24343 \end_layout
24344
24345 \begin_layout Standard
24346 where of course `
24347 \begin_inset Flex Code
24348 status collapsed
24349
24350 \begin_layout Plain Layout
24351 CounterName
24352 \end_layout
24353
24354 \end_inset
24355
24356 ' is replaced by the name of the counter.
24357  And it must end with 
24358 \begin_inset Quotes eld
24359 \end_inset
24360
24361
24362 \begin_inset Flex Code
24363 status collapsed
24364
24365 \begin_layout Plain Layout
24366 End
24367 \end_layout
24368
24369 \end_inset
24370
24371
24372 \begin_inset Quotes erd
24373 \end_inset
24374
24375 .
24376  The following parameters can also be used:
24377 \end_layout
24378
24379 \begin_layout Description
24380 \begin_inset Flex Code
24381 status collapsed
24382
24383 \begin_layout Plain Layout
24384 InitialValue
24385 \end_layout
24386
24387 \end_inset
24388
24389  [
24390 \begin_inset Flex Code
24391 status collapsed
24392
24393 \begin_layout Plain Layout
24394 int=1
24395 \end_layout
24396
24397 \end_inset
24398
24399 ] Sets the initial value for the counter, to which it will be reset whenever
24400  that happens.
24401  Normally, one will want the default, 1.
24402 \end_layout
24403
24404 \begin_layout Description
24405 \begin_inset Flex Code
24406 status collapsed
24407
24408 \begin_layout Plain Layout
24409 LabelString
24410 \end_layout
24411
24412 \end_inset
24413
24414  [
24415 \begin_inset Flex Code
24416 status collapsed
24417
24418 \begin_layout Plain Layout
24419 string
24420 \end_layout
24421
24422 \end_inset
24423
24424 =
24425 \begin_inset Quotes erd
24426 \end_inset
24427
24428
24429 \begin_inset Quotes erd
24430 \end_inset
24431
24432 ] When defined, this string defines how the counter is displayed.
24433  Setting this value sets 
24434 \begin_inset Flex Code
24435 status collapsed
24436
24437 \begin_layout Plain Layout
24438 LabelStringAppendix
24439 \end_layout
24440
24441 \end_inset
24442
24443  to the same value.
24444  The following special constructs can be used in the string:
24445 \end_layout
24446
24447 \begin_deeper
24448 \begin_layout Itemize
24449 \begin_inset Flex Code
24450 status collapsed
24451
24452 \begin_layout Plain Layout
24453
24454 \backslash
24455 thecounter
24456 \end_layout
24457
24458 \end_inset
24459
24460  will be replaced by the expansion of the 
24461 \begin_inset Flex Code
24462 status collapsed
24463
24464 \begin_layout Plain Layout
24465 LabelString
24466 \end_layout
24467
24468 \end_inset
24469
24470  (or 
24471 \begin_inset Flex Code
24472 status collapsed
24473
24474 \begin_layout Plain Layout
24475 LabelStringAppendix
24476 \end_layout
24477
24478 \end_inset
24479
24480 ) of the counter 
24481 \begin_inset Flex Code
24482 status collapsed
24483
24484 \begin_layout Plain Layout
24485 counter
24486 \end_layout
24487
24488 \end_inset
24489
24490 .
24491  
24492 \end_layout
24493
24494 \begin_layout Itemize
24495 counter values can be expressed using \SpecialChar LaTeX
24496 -like macros
24497 \begin_inset Newline newline
24498 \end_inset
24499
24500
24501 \begin_inset Flex Code
24502 status collapsed
24503
24504 \begin_layout Plain Layout
24505
24506 \backslash
24507
24508 \emph on
24509 numbertype
24510 \emph default
24511 {
24512 \emph on
24513 counter
24514 \emph default
24515 }
24516 \end_layout
24517
24518 \end_inset
24519
24520 , where 
24521 \begin_inset Flex Code
24522 status collapsed
24523
24524 \begin_layout Plain Layout
24525
24526 \emph on
24527 numbertype
24528 \end_layout
24529
24530 \end_inset
24531
24532  can be:
24533 \begin_inset Foot
24534 status collapsed
24535
24536 \begin_layout Plain Layout
24537
24538 \family roman
24539 \series medium
24540 \shape up
24541 \size normal
24542 \emph off
24543 \bar no
24544 \noun off
24545 \color none
24546 Actually, the situation is a bit more complicated: any
24547 \family default
24548 \series default
24549 \shape default
24550 \emph default
24551 \bar default
24552  
24553 \size default
24554 \emph on
24555 \noun default
24556 \color inherit
24557 numbertype
24558 \family roman
24559 \series medium
24560 \shape up
24561 \size normal
24562 \emph off
24563 \bar no
24564 \noun off
24565  other than those described below will produce arabic numerals.
24566  It would not be surprising to see this change in the future.
24567 \end_layout
24568
24569 \end_inset
24570
24571  
24572 \begin_inset Flex Code
24573 status collapsed
24574
24575 \begin_layout Plain Layout
24576 arabic
24577 \end_layout
24578
24579 \end_inset
24580
24581 : 1, 2, 3,\SpecialChar ldots
24582
24583 \begin_inset Flex Code
24584 status collapsed
24585
24586 \begin_layout Plain Layout
24587 alph
24588 \end_layout
24589
24590 \end_inset
24591
24592  for lower-case letters: a, b, c, \SpecialChar ldots
24593
24594 \begin_inset Flex Code
24595 status collapsed
24596
24597 \begin_layout Plain Layout
24598 Alph
24599 \end_layout
24600
24601 \end_inset
24602
24603  for upper-case letters: A, B, C, \SpecialChar ldots
24604
24605 \begin_inset Flex Code
24606 status collapsed
24607
24608 \begin_layout Plain Layout
24609 roman
24610 \end_layout
24611
24612 \end_inset
24613
24614  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
24615
24616 \begin_inset Flex Code
24617 status collapsed
24618
24619 \begin_layout Plain Layout
24620 Roman
24621 \end_layout
24622
24623 \end_inset
24624
24625  for upper-case roman numerals: I, II, III\SpecialChar ldots
24626
24627 \begin_inset Flex Code
24628 status collapsed
24629
24630 \begin_layout Plain Layout
24631 hebrew
24632 \end_layout
24633
24634 \end_inset
24635
24636  for hebrew numerals.
24637 \end_layout
24638
24639 \end_deeper
24640 \begin_layout Standard
24641 If LabelString is not defined, a default value is constructed as follows:
24642  if the counter has a 
24643 \change_deleted 731793113 1604355218
24644 master
24645 \change_inserted 731793113 1604355221
24646 parent
24647 \change_unchanged
24648  counter 
24649 \begin_inset Flex Code
24650 status collapsed
24651
24652 \begin_layout Plain Layout
24653
24654 \change_deleted 731793113 1604355223
24655 master
24656 \change_inserted 731793113 1604355226
24657 parent
24658 \change_unchanged
24659
24660 \end_layout
24661
24662 \end_inset
24663
24664  (defined via 
24665 \begin_inset Flex Code
24666 status collapsed
24667
24668 \begin_layout Plain Layout
24669 Within
24670 \end_layout
24671
24672 \end_inset
24673
24674 ), the string
24675 \begin_inset Newline newline
24676 \end_inset
24677
24678
24679 \begin_inset Flex Code
24680 status collapsed
24681
24682 \begin_layout Plain Layout
24683
24684 \backslash
24685 the
24686 \change_inserted 731793113 1604355228
24687 parent
24688 \change_deleted 731793113 1604355230
24689 master
24690 \change_unchanged
24691 .
24692 \backslash
24693 arabic{counter}
24694 \end_layout
24695
24696 \end_inset
24697
24698  is used; otherwise the string 
24699 \begin_inset Flex Code
24700 status collapsed
24701
24702 \begin_layout Plain Layout
24703
24704 \backslash
24705 arabic{counter}
24706 \end_layout
24707
24708 \end_inset
24709
24710  is used.
24711 \end_layout
24712
24713 \begin_layout Description
24714 \begin_inset Flex Code
24715 status collapsed
24716
24717 \begin_layout Plain Layout
24718 LabelStringAppendix
24719 \end_layout
24720
24721 \end_inset
24722
24723  [
24724 \begin_inset Flex Code
24725 status collapsed
24726
24727 \begin_layout Plain Layout
24728 string
24729 \end_layout
24730
24731 \end_inset
24732
24733
24734 \begin_inset Quotes eld
24735 \end_inset
24736
24737
24738 \begin_inset Quotes erd
24739 \end_inset
24740
24741 ] Same as 
24742 \begin_inset Flex Code
24743 status collapsed
24744
24745 \begin_layout Plain Layout
24746 LabelString
24747 \end_layout
24748
24749 \end_inset
24750
24751 , but for use in the Appendix.
24752 \change_inserted -584632292 1607202551
24753
24754 \end_layout
24755
24756 \begin_layout Description
24757
24758 \change_inserted -584632292 1607202682
24759 \begin_inset Flex Code
24760 status open
24761
24762 \begin_layout Plain Layout
24763 LaTeXName
24764 \end_layout
24765
24766 \end_inset
24767
24768  [
24769 \begin_inset Flex Code
24770 status open
24771
24772 \begin_layout Plain Layout
24773
24774 \change_inserted -584632292 1607202576
24775 string
24776 \change_unchanged
24777
24778 \end_layout
24779
24780 \end_inset
24781
24782  = 
24783 \begin_inset Quotes eld
24784 \end_inset
24785
24786
24787 \begin_inset Quotes erd
24788 \end_inset
24789
24790 ] The counter name as used in \SpecialChar LaTeX
24791 .
24792  (
24793 \change_inserted 34634807 1619711355
24794 e
24795 \change_deleted 34634807 1619711355
24796 E
24797 \change_inserted -584632292 1607202682
24798 .g., in \SpecialChar LyX
24799 , there is a counter named `theorem', but it is output to \SpecialChar LaTeX
24800  as `thm'.)
24801 \change_unchanged
24802
24803 \end_layout
24804
24805 \begin_layout Description
24806 \begin_inset Flex Code
24807 status collapsed
24808
24809 \begin_layout Plain Layout
24810 PrettyFormat
24811 \end_layout
24812
24813 \end_inset
24814
24815  [
24816 \begin_inset Flex Code
24817 status collapsed
24818
24819 \begin_layout Plain Layout
24820 string
24821 \end_layout
24822
24823 \end_inset
24824
24825 =
24826 \begin_inset Quotes erd
24827 \end_inset
24828
24829
24830 \begin_inset Quotes erd
24831 \end_inset
24832
24833 ] A format for use with formatted references to this counter.
24834  For example, one might want to have references to section numbers appear
24835  as 
24836 \begin_inset Quotes eld
24837 \end_inset
24838
24839 Section 2.4
24840 \begin_inset Quotes erd
24841 \end_inset
24842
24843 .
24844  The string should contain 
24845 \begin_inset Quotes eld
24846 \end_inset
24847
24848 ##
24849 \begin_inset Quotes erd
24850 \end_inset
24851
24852 .
24853  This will be replaced by the counter number itself.
24854  So, for sections, it would be: Section ##.
24855 \end_layout
24856
24857 \begin_layout Description
24858 \begin_inset Flex Code
24859 status collapsed
24860
24861 \begin_layout Plain Layout
24862 Within
24863 \end_layout
24864
24865 \end_inset
24866
24867  [
24868 \begin_inset Flex Code
24869 status collapsed
24870
24871 \begin_layout Plain Layout
24872 string
24873 \end_layout
24874
24875 \end_inset
24876
24877 =
24878 \begin_inset Quotes erd
24879 \end_inset
24880
24881
24882 \begin_inset Quotes erd
24883 \end_inset
24884
24885 ] If this is set to the name of another counter, the present counter will
24886  be reset every time the other one is increased.
24887  For example, 
24888 \begin_inset Flex Code
24889 status collapsed
24890
24891 \begin_layout Plain Layout
24892 subsection
24893 \end_layout
24894
24895 \end_inset
24896
24897  is numbered inside 
24898 \begin_inset Flex Code
24899 status collapsed
24900
24901 \begin_layout Plain Layout
24902 section
24903 \end_layout
24904
24905 \end_inset
24906
24907 .
24908 \end_layout
24909
24910 \begin_layout Subsection
24911 Font description
24912 \begin_inset CommandInset label
24913 LatexCommand label
24914 name "subsec:Font-description"
24915
24916 \end_inset
24917
24918
24919 \end_layout
24920
24921 \begin_layout Standard
24922 A font description looks like this:
24923 \end_layout
24924
24925 \begin_layout LyX-Code
24926 Font 
24927 \family roman
24928 \emph on
24929 or
24930 \family default
24931 \emph default
24932  LabelFont
24933 \emph on
24934  
24935 \family roman
24936 or
24937 \family default
24938 \emph default
24939  DefaultFont
24940 \end_layout
24941
24942 \begin_layout LyX-Code
24943  ...
24944 \end_layout
24945
24946 \begin_layout LyX-Code
24947 EndFont
24948 \end_layout
24949
24950 \begin_layout Standard
24951 The following commands are available:
24952 \end_layout
24953
24954 \begin_layout Description
24955 \begin_inset Flex Code
24956 status collapsed
24957
24958 \begin_layout Plain Layout
24959 Color
24960 \end_layout
24961
24962 \end_inset
24963
24964  [
24965 \change_deleted -712698321 1607682984
24966
24967 \begin_inset Flex Code
24968 status collapsed
24969
24970 \begin_layout Plain Layout
24971
24972 \emph on
24973 none
24974 \end_layout
24975
24976 \end_inset
24977
24978
24979 \begin_inset Flex Code
24980 status collapsed
24981
24982 \begin_layout Plain Layout
24983 black
24984 \end_layout
24985
24986 \end_inset
24987
24988
24989 \begin_inset Flex Code
24990 status collapsed
24991
24992 \begin_layout Plain Layout
24993 white
24994 \end_layout
24995
24996 \end_inset
24997
24998
24999 \begin_inset Flex Code
25000 status collapsed
25001
25002 \begin_layout Plain Layout
25003 red
25004 \end_layout
25005
25006 \end_inset
25007
25008
25009 \begin_inset Flex Code
25010 status collapsed
25011
25012 \begin_layout Plain Layout
25013 green
25014 \end_layout
25015
25016 \end_inset
25017
25018
25019 \begin_inset Flex Code
25020 status collapsed
25021
25022 \begin_layout Plain Layout
25023 blue
25024 \end_layout
25025
25026 \end_inset
25027
25028
25029 \begin_inset Flex Code
25030 status collapsed
25031
25032 \begin_layout Plain Layout
25033 cyan
25034 \end_layout
25035
25036 \end_inset
25037
25038
25039 \begin_inset Flex Code
25040 status collapsed
25041
25042 \begin_layout Plain Layout
25043 magenta
25044 \end_layout
25045
25046 \end_inset
25047
25048
25049 \begin_inset Flex Code
25050 status collapsed
25051
25052 \begin_layout Plain Layout
25053 yellow
25054 \end_layout
25055
25056 \end_inset
25057
25058
25059 \begin_inset Flex Code
25060 status collapsed
25061
25062 \begin_layout Plain Layout
25063 brown
25064 \end_layout
25065
25066 \end_inset
25067
25068
25069 \begin_inset Flex Code
25070 status collapsed
25071
25072 \begin_layout Plain Layout
25073 darkgray
25074 \end_layout
25075
25076 \end_inset
25077
25078
25079 \begin_inset Flex Code
25080 status collapsed
25081
25082 \begin_layout Plain Layout
25083 gray
25084 \end_layout
25085
25086 \end_inset
25087
25088
25089 \begin_inset Flex Code
25090 status collapsed
25091
25092 \begin_layout Plain Layout
25093 lightgray
25094 \end_layout
25095
25096 \end_inset
25097
25098
25099 \begin_inset Flex Code
25100 status collapsed
25101
25102 \begin_layout Plain Layout
25103 lime
25104 \end_layout
25105
25106 \end_inset
25107
25108
25109 \begin_inset Flex Code
25110 status collapsed
25111
25112 \begin_layout Plain Layout
25113 orange
25114 \end_layout
25115
25116 \end_inset
25117
25118
25119 \begin_inset Flex Code
25120 status collapsed
25121
25122 \begin_layout Plain Layout
25123 olive
25124 \end_layout
25125
25126 \end_inset
25127
25128
25129 \begin_inset Flex Code
25130 status collapsed
25131
25132 \begin_layout Plain Layout
25133 pink
25134 \end_layout
25135
25136 \end_inset
25137
25138
25139 \begin_inset Flex Code
25140 status collapsed
25141
25142 \begin_layout Plain Layout
25143 purple
25144 \end_layout
25145
25146 \end_inset
25147
25148
25149 \begin_inset Flex Code
25150 status collapsed
25151
25152 \begin_layout Plain Layout
25153 teal
25154 \end_layout
25155
25156 \end_inset
25157
25158
25159 \begin_inset Flex Code
25160 status collapsed
25161
25162 \begin_layout Plain Layout
25163 violet
25164 \end_layout
25165
25166 \end_inset
25167
25168
25169 \change_inserted -712698321 1607683139
25170
25171 \begin_inset Flex Code
25172 status collapsed
25173
25174 \begin_layout Plain Layout
25175
25176 \change_inserted -712698321 1607683135
25177 string
25178 \change_unchanged
25179
25180 \end_layout
25181
25182 \end_inset
25183
25184 ] See appendix
25185 \begin_inset space ~
25186 \end_inset
25187
25188
25189 \begin_inset CommandInset ref
25190 LatexCommand ref
25191 reference "chap:Names-of-colors"
25192 plural "false"
25193 caps "false"
25194 noprefix "false"
25195
25196 \end_inset
25197
25198  for 
25199 \change_deleted -712698321 1607683144
25200 ]
25201 \change_inserted -712698321 1607683146
25202 valid arguments.
25203 \change_unchanged
25204
25205 \end_layout
25206
25207 \begin_layout Description
25208 \begin_inset Flex Code
25209 status collapsed
25210
25211 \begin_layout Plain Layout
25212 Family
25213 \end_layout
25214
25215 \end_inset
25216
25217  [
25218 \begin_inset Flex Code
25219 status collapsed
25220
25221 \begin_layout Plain Layout
25222
25223 \emph on
25224 Roman
25225 \end_layout
25226
25227 \end_inset
25228
25229
25230 \begin_inset Flex Code
25231 status collapsed
25232
25233 \begin_layout Plain Layout
25234 Sans
25235 \end_layout
25236
25237 \end_inset
25238
25239
25240 \begin_inset Flex Code
25241 status collapsed
25242
25243 \begin_layout Plain Layout
25244 Typewriter
25245 \end_layout
25246
25247 \end_inset
25248
25249 ]
25250 \end_layout
25251
25252 \begin_layout Description
25253 \begin_inset Flex Code
25254 status collapsed
25255
25256 \begin_layout Plain Layout
25257 Misc
25258 \end_layout
25259
25260 \end_inset
25261
25262  [
25263 \begin_inset Flex Code
25264 status collapsed
25265
25266 \begin_layout Plain Layout
25267 string
25268 \end_layout
25269
25270 \end_inset
25271
25272 ] Valid arguments are: 
25273 \begin_inset Flex Code
25274 status collapsed
25275
25276 \begin_layout Plain Layout
25277 emph
25278 \end_layout
25279
25280 \end_inset
25281
25282
25283 \begin_inset Flex Code
25284 status collapsed
25285
25286 \begin_layout Plain Layout
25287 noun
25288 \end_layout
25289
25290 \end_inset
25291
25292
25293 \begin_inset Flex Code
25294 status collapsed
25295
25296 \begin_layout Plain Layout
25297 strikeout
25298 \end_layout
25299
25300 \end_inset
25301
25302
25303 \begin_inset Flex Code
25304 status collapsed
25305
25306 \begin_layout Plain Layout
25307 underbar
25308 \end_layout
25309
25310 \end_inset
25311
25312
25313 \begin_inset Flex Code
25314 status collapsed
25315
25316 \begin_layout Plain Layout
25317 uuline
25318 \end_layout
25319
25320 \end_inset
25321
25322
25323 \begin_inset Flex Code
25324 status collapsed
25325
25326 \begin_layout Plain Layout
25327 uwave
25328 \end_layout
25329
25330 \end_inset
25331
25332
25333 \begin_inset Flex Code
25334 status collapsed
25335
25336 \begin_layout Plain Layout
25337 no_emph
25338 \end_layout
25339
25340 \end_inset
25341
25342
25343 \begin_inset Flex Code
25344 status collapsed
25345
25346 \begin_layout Plain Layout
25347 no_noun
25348 \end_layout
25349
25350 \end_inset
25351
25352
25353 \begin_inset Flex Code
25354 status collapsed
25355
25356 \begin_layout Plain Layout
25357 no_strikeout
25358 \end_layout
25359
25360 \end_inset
25361
25362
25363 \begin_inset Flex Code
25364 status collapsed
25365
25366 \begin_layout Plain Layout
25367 no_bar
25368 \end_layout
25369
25370 \end_inset
25371
25372
25373 \begin_inset Flex Code
25374 status collapsed
25375
25376 \begin_layout Plain Layout
25377 no_uuline
25378 \end_layout
25379
25380 \end_inset
25381
25382  and 
25383 \begin_inset Flex Code
25384 status collapsed
25385
25386 \begin_layout Plain Layout
25387 no_uwave
25388 \end_layout
25389
25390 \end_inset
25391
25392 .
25393  Each of these turns on or off the corresponding attribute.
25394  For example, 
25395 \begin_inset Flex Code
25396 status collapsed
25397
25398 \begin_layout Plain Layout
25399 emph
25400 \end_layout
25401
25402 \end_inset
25403
25404  turns on emphasis, and 
25405 \begin_inset Flex Code
25406 status collapsed
25407
25408 \begin_layout Plain Layout
25409 no_emph
25410 \end_layout
25411
25412 \end_inset
25413
25414  turns it off.
25415  
25416 \begin_inset Newline newline
25417 \end_inset
25418
25419 If the latter seems puzzling, remember that the font settings for the present
25420  context are generally inherited from the surrounding context.
25421  So 
25422 \begin_inset Flex Code
25423 status collapsed
25424
25425 \begin_layout Plain Layout
25426 no_emph
25427 \end_layout
25428
25429 \end_inset
25430
25431  would turn off the emphasis that was anyway in effect, say, in a theorem
25432  environment.
25433 \end_layout
25434
25435 \begin_layout Description
25436 \begin_inset Flex Code
25437 status collapsed
25438
25439 \begin_layout Plain Layout
25440 Series
25441 \end_layout
25442
25443 \end_inset
25444
25445  [
25446 \begin_inset Flex Code
25447 status collapsed
25448
25449 \begin_layout Plain Layout
25450
25451 \emph on
25452 Medium
25453 \end_layout
25454
25455 \end_inset
25456
25457
25458 \begin_inset Flex Code
25459 status collapsed
25460
25461 \begin_layout Plain Layout
25462 Bold
25463 \end_layout
25464
25465 \end_inset
25466
25467
25468 \end_layout
25469
25470 \begin_layout Description
25471 \begin_inset Flex Code
25472 status collapsed
25473
25474 \begin_layout Plain Layout
25475 Shape
25476 \end_layout
25477
25478 \end_inset
25479
25480  [
25481 \begin_inset Flex Code
25482 status collapsed
25483
25484 \begin_layout Plain Layout
25485
25486 \emph on
25487 Up
25488 \end_layout
25489
25490 \end_inset
25491
25492
25493 \begin_inset Flex Code
25494 status collapsed
25495
25496 \begin_layout Plain Layout
25497 Italic
25498 \end_layout
25499
25500 \end_inset
25501
25502
25503 \begin_inset Flex Code
25504 status collapsed
25505
25506 \begin_layout Plain Layout
25507 SmallCaps
25508 \end_layout
25509
25510 \end_inset
25511
25512
25513 \begin_inset Flex Code
25514 status collapsed
25515
25516 \begin_layout Plain Layout
25517 Slanted
25518 \end_layout
25519
25520 \end_inset
25521
25522
25523 \end_layout
25524
25525 \begin_layout Description
25526 \begin_inset Flex Code
25527 status collapsed
25528
25529 \begin_layout Plain Layout
25530 Size
25531 \end_layout
25532
25533 \end_inset
25534
25535  [
25536 \begin_inset Flex Code
25537 status collapsed
25538
25539 \begin_layout Plain Layout
25540 tiny
25541 \end_layout
25542
25543 \end_inset
25544
25545
25546 \begin_inset Flex Code
25547 status collapsed
25548
25549 \begin_layout Plain Layout
25550 small
25551 \end_layout
25552
25553 \end_inset
25554
25555
25556 \begin_inset Flex Code
25557 status collapsed
25558
25559 \begin_layout Plain Layout
25560
25561 \emph on
25562 normal
25563 \end_layout
25564
25565 \end_inset
25566
25567
25568 \begin_inset Flex Code
25569 status collapsed
25570
25571 \begin_layout Plain Layout
25572 large
25573 \end_layout
25574
25575 \end_inset
25576
25577
25578 \begin_inset Flex Code
25579 status collapsed
25580
25581 \begin_layout Plain Layout
25582 larger
25583 \end_layout
25584
25585 \end_inset
25586
25587
25588 \begin_inset Flex Code
25589 status collapsed
25590
25591 \begin_layout Plain Layout
25592 largest
25593 \end_layout
25594
25595 \end_inset
25596
25597
25598 \begin_inset Flex Code
25599 status collapsed
25600
25601 \begin_layout Plain Layout
25602 huge
25603 \end_layout
25604
25605 \end_inset
25606
25607
25608 \begin_inset Flex Code
25609 status collapsed
25610
25611 \begin_layout Plain Layout
25612 giant
25613 \end_layout
25614
25615 \end_inset
25616
25617 ]
25618 \end_layout
25619
25620 \begin_layout Subsection
25621 \begin_inset CommandInset label
25622 LatexCommand label
25623 name "subsec:Citation-engine-description"
25624
25625 \end_inset
25626
25627 Cite engine description
25628 \end_layout
25629
25630 \begin_layout Standard
25631 The 
25632 \begin_inset Flex Code
25633 status collapsed
25634
25635 \begin_layout Plain Layout
25636 CiteEngine
25637 \end_layout
25638
25639 \end_inset
25640
25641  blocks, as used mainly in cite engine files (see 
25642 \begin_inset CommandInset ref
25643 LatexCommand ref
25644 reference "subsec:Cite-Engine-Files"
25645 plural "false"
25646 caps "false"
25647 noprefix "false"
25648
25649 \end_inset
25650
25651 ), define the citation commands provided by a specific 
25652 \begin_inset Quotes eld
25653 \end_inset
25654
25655 cite engine
25656 \begin_inset Quotes erd
25657 \end_inset
25658
25659 .
25660  A cite engine, in \SpecialChar LyX
25661  terms, is way specific way to format citations, using
25662  numbers, author names and/or years.
25663  Currently, \SpecialChar LyX
25664  supports three such engine types, namely:
25665 \end_layout
25666
25667 \begin_layout Enumerate
25668 \begin_inset Flex Code
25669 status collapsed
25670
25671 \begin_layout Plain Layout
25672 default
25673 \end_layout
25674
25675 \end_inset
25676
25677 : the default Bib\SpecialChar TeX
25678  way to format citations, a simple numeric style (e.
25679 \begin_inset space \thinspace{}
25680 \end_inset
25681
25682 g., 
25683 \begin_inset Quotes eld
25684 \end_inset
25685
25686 [1]
25687 \begin_inset Quotes erd
25688 \end_inset
25689
25690 )
25691 \end_layout
25692
25693 \begin_layout Enumerate
25694 \begin_inset Flex Code
25695 status collapsed
25696
25697 \begin_layout Plain Layout
25698 authoryear
25699 \end_layout
25700
25701 \end_inset
25702
25703 : Harvard-styled citations using author names and publication year (e.
25704 \begin_inset space \thinspace{}
25705 \end_inset
25706
25707 g., 
25708 \begin_inset Quotes eld
25709 \end_inset
25710
25711 Smith and Miller (2017b)
25712 \begin_inset Quotes erd
25713 \end_inset
25714
25715 )
25716 \end_layout
25717
25718 \begin_layout Enumerate
25719 \begin_inset Flex Code
25720 status collapsed
25721
25722 \begin_layout Plain Layout
25723 numerical
25724 \end_layout
25725
25726 \end_inset
25727
25728 : extended numerical citations that also allow for author or title next
25729  to the number (e.
25730 \begin_inset space \thinspace{}
25731 \end_inset
25732
25733 g., 
25734 \begin_inset Quotes eld
25735 \end_inset
25736
25737 Smith and Miller [1]
25738 \begin_inset Quotes erd
25739 \end_inset
25740
25741 )
25742 \end_layout
25743
25744 \begin_layout Standard
25745 \begin_inset Flex Code
25746 status collapsed
25747
25748 \begin_layout Plain Layout
25749 CiteEngine
25750 \end_layout
25751
25752 \end_inset
25753
25754  blocks look like this:
25755 \end_layout
25756
25757 \begin_layout LyX-Code
25758 CiteEngine default
25759 \end_layout
25760
25761 \begin_layout LyX-Code
25762  cite
25763 \end_layout
25764
25765 \begin_layout LyX-Code
25766  Citep*[][]
25767 \end_layout
25768
25769 \begin_layout LyX-Code
25770  citeyearpar[][]=parencite*
25771 \end_layout
25772
25773 \begin_layout LyX-Code
25774  ...
25775 \end_layout
25776
25777 \begin_layout LyX-Code
25778 End
25779 \end_layout
25780
25781 \begin_layout Standard
25782 The tag following 
25783 \begin_inset Flex Code
25784 status collapsed
25785
25786 \begin_layout Plain Layout
25787 CiteEngine
25788 \end_layout
25789
25790 \end_inset
25791
25792  denotes the engine.
25793  The individual lines respectively define a cite command or cite command
25794  paradigm supported by this engine.
25795  The line can be as simple as a cite command that is used both to name the
25796  respective \SpecialChar LyX
25797  command and the \SpecialChar LaTeX
25798  output or more complex in order to differentiate
25799  things.
25800  The full syntax is:
25801 \end_layout
25802
25803 \begin_layout LyX-Code
25804 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
25805 \end_layout
25806
25807 \begin_layout Itemize
25808 \begin_inset Flex Code
25809 status collapsed
25810
25811 \begin_layout Plain Layout
25812 LyXName
25813 \end_layout
25814
25815 \end_inset
25816
25817 : The name as used in the 
25818 \begin_inset Flex Code
25819 status collapsed
25820
25821 \begin_layout Plain Layout
25822 *.lyx
25823 \end_layout
25824
25825 \end_inset
25826
25827  file.
25828 \end_layout
25829
25830 \begin_deeper
25831 \begin_layout Standard
25832 For portability reasons, we try to use the same name for same-formatted
25833  commands in different cite packages (thus many names stem from natbib,
25834  and thus we need to differentiate a 
25835 \begin_inset Flex Code
25836 status collapsed
25837
25838 \begin_layout Plain Layout
25839 latexcmd
25840 \end_layout
25841
25842 \end_inset
25843
25844  sometimes, if the \SpecialChar LaTeX
25845  command names differ).
25846 \end_layout
25847
25848 \end_deeper
25849 \begin_layout Itemize
25850 \begin_inset Flex Code
25851 status collapsed
25852
25853 \begin_layout Plain Layout
25854 alias
25855 \end_layout
25856
25857 \end_inset
25858
25859 : a (comma-separated) list of commands that fall back to the given 
25860 \begin_inset Flex Code
25861 status collapsed
25862
25863 \begin_layout Plain Layout
25864 LyXName
25865 \end_layout
25866
25867 \end_inset
25868
25869  in the current engine.
25870  This eases the switch of citation packages and engines.
25871  The 
25872 \begin_inset Flex Code
25873 status collapsed
25874
25875 \begin_layout Plain Layout
25876 alias
25877 \end_layout
25878
25879 \end_inset
25880
25881  can be compared to 
25882 \begin_inset Flex Code
25883 status collapsed
25884
25885 \begin_layout Plain Layout
25886 ObsoletedBy
25887 \end_layout
25888
25889 \end_inset
25890
25891  in layout definitions.
25892 \end_layout
25893
25894 \begin_layout Itemize
25895 \begin_inset Flex Code
25896 status collapsed
25897
25898 \begin_layout Plain Layout
25899 latexcmd
25900 \end_layout
25901
25902 \end_inset
25903
25904 : The actual \SpecialChar LaTeX
25905  command that is output.
25906  
25907 \end_layout
25908
25909 \begin_layout Standard
25910 \begin_inset Flex Code
25911 status collapsed
25912
25913 \begin_layout Plain Layout
25914 Alias
25915 \end_layout
25916
25917 \end_inset
25918
25919  and 
25920 \begin_inset Flex Code
25921 status collapsed
25922
25923 \begin_layout Plain Layout
25924 latexcmd
25925 \end_layout
25926
25927 \end_inset
25928
25929  are optional.
25930  If no 
25931 \begin_inset Flex Code
25932 status collapsed
25933
25934 \begin_layout Plain Layout
25935 latexcmd
25936 \end_layout
25937
25938 \end_inset
25939
25940  is given, the 
25941 \begin_inset Flex Code
25942 status collapsed
25943
25944 \begin_layout Plain Layout
25945 LyXName
25946 \end_layout
25947
25948 \end_inset
25949
25950  will be output to \SpecialChar LaTeX
25951 .
25952 \end_layout
25953
25954 \begin_layout Standard
25955 Note further:
25956 \end_layout
25957
25958 \begin_layout Itemize
25959 Capitalization indicates that the command also has a capitalized form (
25960 \begin_inset Flex Code
25961 status collapsed
25962
25963 \begin_layout Plain Layout
25964
25965 \backslash
25966 Latexcmd
25967 \end_layout
25968
25969 \end_inset
25970
25971  vs.
25972  
25973 \begin_inset Flex Code
25974 status collapsed
25975
25976 \begin_layout Plain Layout
25977
25978 \backslash
25979 latexcmd
25980 \end_layout
25981
25982 \end_inset
25983
25984 ).
25985  These usually enforce up-casing of name prefixes (
25986 \emph on
25987 von Goethe
25988 \emph default
25989  
25990 \begin_inset Formula $\Rightarrow$
25991 \end_inset
25992
25993  
25994 \emph on
25995 Von Goethe
25996 \emph default
25997 ).
25998 \end_layout
25999
26000 \begin_layout Itemize
26001 Brackets 
26002 \begin_inset Flex Code
26003 status collapsed
26004
26005 \begin_layout Plain Layout
26006 []
26007 \end_layout
26008
26009 \end_inset
26010
26011  indicate the number of optional arguments (there can be 0–2).
26012 \end_layout
26013
26014 \begin_layout Itemize
26015 A star 
26016 \begin_inset Flex Code
26017 status collapsed
26018
26019 \begin_layout Plain Layout
26020 *
26021 \end_layout
26022
26023 \end_inset
26024
26025  indicates there is a starred version of the command (
26026 \begin_inset Flex Code
26027 status collapsed
26028
26029 \begin_layout Plain Layout
26030
26031 \backslash
26032 latexcmd*
26033 \end_layout
26034
26035 \end_inset
26036
26037  vs.
26038  
26039 \begin_inset Flex Code
26040 status collapsed
26041
26042 \begin_layout Plain Layout
26043
26044 \backslash
26045 latexcmd
26046 \end_layout
26047
26048 \end_inset
26049
26050 ).
26051  
26052 \end_layout
26053
26054 \begin_deeper
26055 \begin_layout Standard
26056 By default, the starred version means: Output all authors even if it should
26057  be shortened with 
26058 \begin_inset Quotes eld
26059 \end_inset
26060
26061 et al.
26062 \begin_inset Quotes erd
26063 \end_inset
26064
26065  due to the 
26066 \begin_inset Flex Code
26067 status collapsed
26068
26069 \begin_layout Plain Layout
26070 MaxCiteNames
26071 \end_layout
26072
26073 \end_inset
26074
26075  threshold.
26076 \end_layout
26077
26078 \begin_layout Standard
26079 If the star has a different meaning for a given command, it can be specified
26080  in angle brackets: 
26081 \begin_inset Flex Code
26082 status collapsed
26083
26084 \begin_layout Plain Layout
26085 <!_stardesc!_stardesctooltip>
26086 \end_layout
26087
26088 \end_inset
26089
26090 .
26091  Maximal two translatable macro keywords, marked by the prefix 
26092 \begin_inset Flex Code
26093 status collapsed
26094
26095 \begin_layout Plain Layout
26096 !_
26097 \end_layout
26098
26099 \end_inset
26100
26101 , can be given.
26102  The first points to the string that replaces the 
26103 \begin_inset Quotes eld
26104 \end_inset
26105
26106 Full aut&hor list
26107 \begin_inset Quotes erd
26108 \end_inset
26109
26110  checkbox label in the citation dialog, the second one to an optional tool
26111  tip for this checkbox.
26112  
26113 \end_layout
26114
26115 \begin_layout Standard
26116 Note that these two macros have to be defined in a 
26117 \begin_inset Flex Code
26118 status collapsed
26119
26120 \begin_layout Plain Layout
26121 CiteFormat
26122 \end_layout
26123
26124 \end_inset
26125
26126  (see next section), dropping the 
26127 \begin_inset Flex Code
26128 status collapsed
26129
26130 \begin_layout Plain Layout
26131 !
26132 \end_layout
26133
26134 \end_inset
26135
26136  from the prefix, like this: 
26137 \end_layout
26138
26139 \begin_layout LyX-Code
26140 _stardesc Sta&rred command label
26141 \end_layout
26142
26143 \begin_layout LyX-Code
26144 _stardesctooltip Tooltip for the starred command checkbox.
26145 \end_layout
26146
26147 \end_deeper
26148 \begin_layout Itemize
26149 A dollar sign 
26150 \begin_inset Flex Code
26151 status collapsed
26152
26153 \begin_layout Plain Layout
26154 $
26155 \end_layout
26156
26157 \end_inset
26158
26159  indicates that this command features 
26160 \begin_inset Quotes eld
26161 \end_inset
26162
26163 qualified citation lists
26164 \begin_inset Quotes erd
26165 \end_inset
26166
26167 .
26168  This is a 
26169 \family sans
26170 Biblatex
26171 \family default
26172 -specific feature for multi-reference citations where an individual pre-
26173  and postnote can be given to each reference in the list.
26174  Please refer to the 
26175 \family sans
26176 Biblatex
26177 \family default
26178  manual for details.
26179 \change_inserted -712698321 1526898670
26180
26181 \end_layout
26182
26183 \begin_layout Standard
26184
26185 \change_inserted -712698321 1526899524
26186 If you want to add a cite command to a cite engine (e.
26187 \begin_inset space \thinspace{}
26188 \end_inset
26189
26190 g., add a specific command provided by a class), you can use 
26191 \begin_inset Flex Code
26192 status collapsed
26193
26194 \begin_layout Plain Layout
26195
26196 \change_inserted -712698321 1526898768
26197 AddToCiteEngine <engine type> \SpecialChar ldots
26198  End
26199 \change_unchanged
26200
26201 \end_layout
26202
26203 \end_inset
26204
26205 .
26206  Note that only cite commands that do not exist yet are added.
26207 \change_unchanged
26208
26209 \end_layout
26210
26211 \begin_layout Subsection
26212 \begin_inset CommandInset label
26213 LatexCommand label
26214 name "subsec:Citation-format-description"
26215
26216 \end_inset
26217
26218 Cite format description
26219 \end_layout
26220
26221 \begin_layout Standard
26222 The 
26223 \begin_inset Flex Code
26224 status collapsed
26225
26226 \begin_layout Plain Layout
26227 CiteFormat
26228 \end_layout
26229
26230 \end_inset
26231
26232  blocks are used to describe how bibliographic information should be displayed,
26233  both within \SpecialChar LyX
26234  itself (in the citation dialog and in tooltips, for example)
26235  and in XHTML output.
26236  Such a block might look like this:
26237 \end_layout
26238
26239 \begin_layout LyX-Code
26240 CiteFormat
26241 \end_layout
26242
26243 \begin_layout LyX-Code
26244  article ...
26245 \end_layout
26246
26247 \begin_layout LyX-Code
26248  book ...
26249 \end_layout
26250
26251 \begin_layout LyX-Code
26252 End
26253 \end_layout
26254
26255 \begin_layout Standard
26256 or
26257 \end_layout
26258
26259 \begin_layout LyX-Code
26260 CiteFormat
26261 \end_layout
26262
26263 \begin_layout LyX-Code
26264  cite ...
26265 \end_layout
26266
26267 \begin_layout LyX-Code
26268  citet*[][] ...
26269 \end_layout
26270
26271 \begin_layout LyX-Code
26272 End
26273 \end_layout
26274
26275 \begin_layout Standard
26276 In the first case, the individual lines define how the bibliographic information
26277  associated with an article or book, respectively, is to be displayed, and
26278  such a definition can be given for any 
26279 \begin_inset Quotes els
26280 \end_inset
26281
26282 entry type
26283 \begin_inset Quotes ers
26284 \end_inset
26285
26286  that might be present in a Bib\SpecialChar TeX
26287  file.
26288  \SpecialChar LyX
26289  defines a default format in the source code that will be used if no specific
26290  definition has been given.
26291  \SpecialChar LyX
26292  predefines several formats in the file 
26293 \begin_inset Flex Code
26294 status collapsed
26295
26296 \begin_layout Plain Layout
26297 stdciteformats.inc
26298 \end_layout
26299
26300 \end_inset
26301
26302 , which is included in most of \SpecialChar LyX
26303 's document classes.
26304 \end_layout
26305
26306 \begin_layout Standard
26307 In the second case, the lines define how a specific citation command (in
26308  the example 
26309 \begin_inset Flex Code
26310 status collapsed
26311
26312 \begin_layout Plain Layout
26313
26314 \backslash
26315 cite
26316 \end_layout
26317
26318 \end_inset
26319
26320
26321 \begin_inset Flex Code
26322 status collapsed
26323
26324 \begin_layout Plain Layout
26325
26326 \backslash
26327 citet
26328 \end_layout
26329
26330 \end_inset
26331
26332 ) is to be displayed on the citation inset label, in the citation dialog,
26333  menu or XHTML output.
26334  \SpecialChar LyX
26335  defines such formats for the citation style variants it supports via 
26336 \family sans
26337 Document\SpecialChar menuseparator
26338 Setting\SpecialChar menuseparator
26339 Bibliography\SpecialChar ldots
26340
26341 \family default
26342  in specific 
26343 \begin_inset Flex Code
26344 status collapsed
26345
26346 \begin_layout Plain Layout
26347 *.citeengine
26348 \end_layout
26349
26350 \end_inset
26351
26352  files that are shipped with \SpecialChar LyX
26353  (see 
26354 \begin_inset CommandInset ref
26355 LatexCommand ref
26356 reference "subsec:Cite-Engine-Files"
26357 plural "false"
26358 caps "false"
26359 noprefix "false"
26360
26361 \end_inset
26362
26363 ).
26364 \end_layout
26365
26366 \begin_layout Standard
26367 The definitions use a simple language that allows Bib\SpecialChar TeX
26368  keys to be replaced
26369  with their values.
26370  Keys should be enclosed in 
26371 \begin_inset Flex Code
26372 status collapsed
26373
26374 \begin_layout Plain Layout
26375 %
26376 \end_layout
26377
26378 \end_inset
26379
26380  signs, e.g.: 
26381 \begin_inset Flex Code
26382 status collapsed
26383
26384 \begin_layout Plain Layout
26385 %author%
26386 \end_layout
26387
26388 \end_inset
26389
26390 .
26391  So a simple definition might look like this:
26392 \end_layout
26393
26394 \begin_layout LyX-Code
26395 misc %author%, 
26396 \begin_inset Quotes eld
26397 \end_inset
26398
26399 %title%
26400 \begin_inset Quotes erd
26401 \end_inset
26402
26403 .
26404 \end_layout
26405
26406 \begin_layout Standard
26407 This would print the author, followed by a comma, followed by the title,
26408  in quotes, followed by a period.
26409 \end_layout
26410
26411 \begin_layout Standard
26412 Of course, sometimes you may want to print a key only if it exists.
26413  This can be done by using a conditional construction, such as: 
26414 \begin_inset Flex Code
26415 status collapsed
26416
26417 \begin_layout Plain Layout
26418 {%volume%[[vol.
26419 \begin_inset space ~
26420 \end_inset
26421
26422 %volume%]]}
26423 \end_layout
26424
26425 \end_inset
26426
26427 .
26428  This says: If the 
26429 \begin_inset Flex Code
26430 status collapsed
26431
26432 \begin_layout Plain Layout
26433 volume
26434 \end_layout
26435
26436 \end_inset
26437
26438  key exists, then print 
26439 \begin_inset Quotes eld
26440 \end_inset
26441
26442 vol.
26443 \begin_inset space ~
26444 \end_inset
26445
26446
26447 \begin_inset Quotes erd
26448 \end_inset
26449
26450  followed by the volume key.
26451  It is also possible to have an else clause in the conditional, such as:
26452 \begin_inset Newline newline
26453 \end_inset
26454
26455
26456 \begin_inset Flex Code
26457 status collapsed
26458
26459 \begin_layout Plain Layout
26460 {%author%[[%author%]][[%editor%, ed.]]}
26461 \end_layout
26462
26463 \end_inset
26464
26465 .
26466 \begin_inset Newline newline
26467 \end_inset
26468
26469 Here, the 
26470 \begin_inset Flex Code
26471 status collapsed
26472
26473 \begin_layout Plain Layout
26474 author
26475 \end_layout
26476
26477 \end_inset
26478
26479  key is printed if it exists; otherwise, the editor key is printed, followed
26480  by 
26481 \begin_inset Quotes eld
26482 \end_inset
26483
26484 ,
26485 \begin_inset space ~
26486 \end_inset
26487
26488 ed.
26489 \begin_inset Quotes erd
26490 \end_inset
26491
26492  Note that the key is again enclosed in 
26493 \begin_inset Flex Code
26494 status collapsed
26495
26496 \begin_layout Plain Layout
26497 %
26498 \end_layout
26499
26500 \end_inset
26501
26502  signs; the entire conditional is enclosed in braces; and the if and else
26503  clauses are enclosed in double brackets, 
26504 \begin_inset Quotes eld
26505 \end_inset
26506
26507
26508 \begin_inset Flex Code
26509 status collapsed
26510
26511 \begin_layout Plain Layout
26512 [[
26513 \end_layout
26514
26515 \end_inset
26516
26517
26518 \begin_inset Quotes eld
26519 \end_inset
26520
26521  and 
26522 \begin_inset Quotes eld
26523 \end_inset
26524
26525
26526 \begin_inset Flex Code
26527 status collapsed
26528
26529 \begin_layout Plain Layout
26530 ]]
26531 \end_layout
26532
26533 \end_inset
26534
26535
26536 \begin_inset Quotes erd
26537 \end_inset
26538
26539 .
26540  There must be no space between any of these.
26541 \end_layout
26542
26543 \begin_layout Standard
26544 Next to the entry keys, there are some special keys that can be used for
26545  these conditionals:
26546 \end_layout
26547
26548 \begin_layout Itemize
26549 \begin_inset Flex Code
26550 status collapsed
26551
26552 \begin_layout Plain Layout
26553 {%dialog%[[true]][[false]]}
26554 \end_layout
26555
26556 \end_inset
26557
26558 : process the 
26559 \begin_inset Quotes eld
26560 \end_inset
26561
26562 true
26563 \begin_inset Quotes erd
26564 \end_inset
26565
26566  part for dialogs and menus, the 
26567 \begin_inset Quotes eld
26568 \end_inset
26569
26570 false
26571 \begin_inset Quotes erd
26572 \end_inset
26573
26574  part for other contexts (workarea, export)
26575 \end_layout
26576
26577 \begin_layout Itemize
26578 \begin_inset Flex Code
26579 status collapsed
26580
26581 \begin_layout Plain Layout
26582 {%export%[[true]][[false]]}
26583 \end_layout
26584
26585 \end_inset
26586
26587 : process the 
26588 \begin_inset Quotes eld
26589 \end_inset
26590
26591 true
26592 \begin_inset Quotes erd
26593 \end_inset
26594
26595  part for export and menus, the 
26596 \begin_inset Quotes eld
26597 \end_inset
26598
26599 false
26600 \begin_inset Quotes erd
26601 \end_inset
26602
26603  part for other contexts (workarea, dialog)
26604 \end_layout
26605
26606 \begin_layout Itemize
26607 \begin_inset Flex Code
26608 status collapsed
26609
26610 \begin_layout Plain Layout
26611 {%next%[[true]]}
26612 \end_layout
26613
26614 \end_inset
26615
26616 : process the 
26617 \begin_inset Quotes eld
26618 \end_inset
26619
26620 true
26621 \begin_inset Quotes erd
26622 \end_inset
26623
26624  part if another item follows (e.
26625 \begin_inset space \thinspace{}
26626 \end_inset
26627
26628 g., in a citation with multiple keys)
26629 \end_layout
26630
26631 \begin_layout Itemize
26632 \begin_inset Flex Code
26633 status collapsed
26634
26635 \begin_layout Plain Layout
26636 {%second%[[true]][[false]]}
26637 \end_layout
26638
26639 \end_inset
26640
26641 : process the 
26642 \begin_inset Quotes eld
26643 \end_inset
26644
26645 true
26646 \begin_inset Quotes erd
26647 \end_inset
26648
26649  if this is the second of multiple items, else the 
26650 \begin_inset Quotes eld
26651 \end_inset
26652
26653 false
26654 \begin_inset Quotes erd
26655 \end_inset
26656
26657  part
26658 \end_layout
26659
26660 \begin_layout Itemize
26661 \begin_inset Flex Code
26662 status collapsed
26663
26664 \begin_layout Plain Layout
26665 {%ifstar%[[true]][[false]]}
26666 \end_layout
26667
26668 \end_inset
26669
26670 : process the 
26671 \begin_inset Quotes eld
26672 \end_inset
26673
26674 true
26675 \begin_inset Quotes erd
26676 \end_inset
26677
26678  part for starred citation commands (such as 
26679 \begin_inset Flex Code
26680 status collapsed
26681
26682 \begin_layout Plain Layout
26683
26684 \backslash
26685 cite*
26686 \end_layout
26687
26688 \end_inset
26689
26690 ), the false part for unstarred
26691 \end_layout
26692
26693 \begin_layout Itemize
26694 \begin_inset Flex Code
26695 status collapsed
26696
26697 \begin_layout Plain Layout
26698 {%ifentrytype:<type>%[[true]][[false]]}
26699 \end_layout
26700
26701 \end_inset
26702
26703 : process the 
26704 \begin_inset Quotes eld
26705 \end_inset
26706
26707 true
26708 \begin_inset Quotes erd
26709 \end_inset
26710
26711  if the current entry type matches 
26712 \begin_inset Flex Code
26713 status collapsed
26714
26715 \begin_layout Plain Layout
26716 <type>
26717 \end_layout
26718
26719 \end_inset
26720
26721 , else the false part (e.g., in a citation definition: 
26722 \begin_inset Flex Code
26723 status collapsed
26724
26725 \begin_layout Plain Layout
26726 {%ifentrytype:book%[[this is a book]][[this is no book]]}
26727 \end_layout
26728
26729 \end_inset
26730
26731 )
26732 \end_layout
26733
26734 \begin_layout Itemize
26735 \begin_inset Flex Code
26736 status collapsed
26737
26738 \begin_layout Plain Layout
26739 {%ifmultiple:<authortype>%[[true]][[false]]}
26740 \end_layout
26741
26742 \end_inset
26743
26744 : process the 
26745 \begin_inset Quotes eld
26746 \end_inset
26747
26748 true
26749 \begin_inset Quotes erd
26750 \end_inset
26751
26752  if the current author type (author, editor etc.) has multiple authors, else
26753  the false part (e.g., in a bibliography definition: 
26754 \begin_inset Flex Code
26755 status collapsed
26756
26757 \begin_layout Plain Layout
26758 {%ifmultiple:editor%[[eds.]][[ed.]]}
26759 \end_layout
26760
26761 \end_inset
26762
26763 )
26764 \end_layout
26765
26766 \begin_layout Itemize
26767 \begin_inset Flex Code
26768 status collapsed
26769
26770 \begin_layout Plain Layout
26771 {%ifqualified%[[true]][[false]]}
26772 \end_layout
26773
26774 \end_inset
26775
26776 : process the 
26777 \begin_inset Quotes eld
26778 \end_inset
26779
26780 true
26781 \begin_inset Quotes erd
26782 \end_inset
26783
26784  part if the current citation is a qualified citation list (a specific 
26785 \family sans
26786 Biblatex
26787 \family default
26788  format for multi-reference citations), the false part if this is not the
26789  case.
26790 \end_layout
26791
26792 \begin_layout Standard
26793 We said that 
26794 \begin_inset Flex Code
26795 status collapsed
26796
26797 \begin_layout Plain Layout
26798 %author%
26799 \end_layout
26800
26801 \end_inset
26802
26803  prints the author key as it is recorded in the bibliography file.
26804  This might not be what you want, since it will result in a string such
26805  as 
26806 \begin_inset Quotes eld
26807 \end_inset
26808
26809 Miller, Peter and Smith, Mary and White, Jane
26810 \begin_inset Quotes erd
26811 \end_inset
26812
26813  (since 
26814 \begin_inset Quotes eld
26815 \end_inset
26816
26817 and
26818 \begin_inset Quotes erd
26819 \end_inset
26820
26821  is used by Bib\SpecialChar TeX
26822  to delimit authors).
26823  \SpecialChar LyX
26824  therefore provides some methods to get properly formatted name lists (which
26825  will also get translated).
26826  The following keys are provided:
26827 \end_layout
26828
26829 \begin_layout Enumerate
26830 For name lists with pre- and surname, suitable for the main authors/editors
26831  of a bibliography item.
26832  The 
26833 \begin_inset Flex Code
26834 status collapsed
26835
26836 \begin_layout Plain Layout
26837 <nametype>
26838 \end_layout
26839
26840 \end_inset
26841
26842  part denotes the kind of list that is requested (e.g.
26843  
26844 \begin_inset Flex Code
26845 status collapsed
26846
26847 \begin_layout Plain Layout
26848 <nametype:author>
26849 \end_layout
26850
26851 \end_inset
26852
26853 ):
26854 \end_layout
26855
26856 \begin_deeper
26857 \begin_layout Itemize
26858 \begin_inset Flex Code
26859 status collapsed
26860
26861 \begin_layout Plain Layout
26862 %abbrvnames:<nametype>%
26863 \end_layout
26864
26865 \end_inset
26866
26867 : Provides a name list which is abbreviated (with 
26868 \begin_inset Quotes eld
26869 \end_inset
26870
26871 et al.
26872 \begin_inset Quotes erd
26873 \end_inset
26874
26875 ) when 
26876 \begin_inset Flex Code
26877 status collapsed
26878
26879 \begin_layout Plain Layout
26880 MaxCiteNames
26881 \end_layout
26882
26883 \end_inset
26884
26885  is reached.
26886 \end_layout
26887
26888 \begin_layout Itemize
26889 \begin_inset Flex Code
26890 status collapsed
26891
26892 \begin_layout Plain Layout
26893 %fullnames:<nametype>%
26894 \end_layout
26895
26896 \end_inset
26897
26898 : Provides a full name list (never abbreviated with 
26899 \begin_inset Quotes eld
26900 \end_inset
26901
26902 et al.
26903 \begin_inset Quotes erd
26904 \end_inset
26905
26906 ).
26907 \end_layout
26908
26909 \begin_layout Itemize
26910 \begin_inset Flex Code
26911 status collapsed
26912
26913 \begin_layout Plain Layout
26914 %forceabbrvnames:<nametype>%
26915 \end_layout
26916
26917 \end_inset
26918
26919 : Provides a name list which is always abbreviated (with 
26920 \begin_inset Quotes eld
26921 \end_inset
26922
26923 et al.
26924 \begin_inset Quotes erd
26925 \end_inset
26926
26927 ) irrespective of 
26928 \begin_inset Flex Code
26929 status collapsed
26930
26931 \begin_layout Plain Layout
26932 MaxCiteNames
26933 \end_layout
26934
26935 \end_inset
26936
26937 .
26938 \end_layout
26939
26940 \end_deeper
26941 \begin_layout Enumerate
26942 Alternative name lists with pre- and surname, if the order of pre- and surname
26943  inside the bibliography item differs (as in: 
26944 \begin_inset Quotes eld
26945 \end_inset
26946
26947 Miller, John: Some text, in: Mary Smith, ed.: A volume
26948 \begin_inset Quotes erd
26949 \end_inset
26950
26951 ):
26952 \end_layout
26953
26954 \begin_deeper
26955 \begin_layout Itemize
26956 \begin_inset Flex Code
26957 status collapsed
26958
26959 \begin_layout Plain Layout
26960 %abbrvbynames:<nametype>%
26961 \end_layout
26962
26963 \end_inset
26964
26965 : Provides a name list which is abbreviated (with 
26966 \begin_inset Quotes eld
26967 \end_inset
26968
26969 et al.
26970 \begin_inset Quotes erd
26971 \end_inset
26972
26973 ) when 
26974 \begin_inset Flex Code
26975 status collapsed
26976
26977 \begin_layout Plain Layout
26978 MaxCiteNames
26979 \end_layout
26980
26981 \end_inset
26982
26983  is reached.
26984 \end_layout
26985
26986 \begin_layout Itemize
26987 \begin_inset Flex Code
26988 status collapsed
26989
26990 \begin_layout Plain Layout
26991 %fullbynames:<nametype>%
26992 \end_layout
26993
26994 \end_inset
26995
26996 : Provides a full name list (never abbreviated with 
26997 \begin_inset Quotes eld
26998 \end_inset
26999
27000 et al.
27001 \begin_inset Quotes erd
27002 \end_inset
27003
27004 ).
27005 \end_layout
27006
27007 \begin_layout Itemize
27008 \begin_inset Flex Code
27009 status collapsed
27010
27011 \begin_layout Plain Layout
27012 %forceabbrvbynames:<nametype>%
27013 \end_layout
27014
27015 \end_inset
27016
27017 : Provides a name list which is always abbreviated (with 
27018 \begin_inset Quotes eld
27019 \end_inset
27020
27021 et al.
27022 \begin_inset Quotes erd
27023 \end_inset
27024
27025 ) irrespective of 
27026 \begin_inset Flex Code
27027 status collapsed
27028
27029 \begin_layout Plain Layout
27030 MaxCiteNames
27031 \end_layout
27032
27033 \end_inset
27034
27035 .
27036 \end_layout
27037
27038 \end_deeper
27039 \begin_layout Enumerate
27040 And finally name lists which consist of family names only, as used in author-yea
27041 r citation labels.
27042  These do not take a 
27043 \begin_inset Flex Code
27044 status collapsed
27045
27046 \begin_layout Plain Layout
27047 <nametype>
27048 \end_layout
27049
27050 \end_inset
27051
27052  part, but always return either an author list or, if this does not exist,
27053  an editor list (as common in author-year labels):
27054 \end_layout
27055
27056 \begin_deeper
27057 \begin_layout Itemize
27058 \begin_inset Flex Code
27059 status collapsed
27060
27061 \begin_layout Plain Layout
27062 %abbrvciteauthor%
27063 \end_layout
27064
27065 \end_inset
27066
27067 : Provides a name list which is abbreviated (with 
27068 \begin_inset Quotes eld
27069 \end_inset
27070
27071 et al.
27072 \begin_inset Quotes erd
27073 \end_inset
27074
27075 ) when 
27076 \begin_inset Flex Code
27077 status collapsed
27078
27079 \begin_layout Plain Layout
27080 MaxCiteNames
27081 \end_layout
27082
27083 \end_inset
27084
27085  is reached.
27086 \end_layout
27087
27088 \begin_layout Itemize
27089 \begin_inset Flex Code
27090 status collapsed
27091
27092 \begin_layout Plain Layout
27093 %fullciteauthor%
27094 \end_layout
27095
27096 \end_inset
27097
27098 : Provides a full name list (never abbreviated with 
27099 \begin_inset Quotes eld
27100 \end_inset
27101
27102 et al.
27103 \begin_inset Quotes erd
27104 \end_inset
27105
27106 ).
27107 \end_layout
27108
27109 \begin_layout Itemize
27110 \begin_inset Flex Code
27111 status collapsed
27112
27113 \begin_layout Plain Layout
27114 %forceabbrvciteauthor%
27115 \end_layout
27116
27117 \end_inset
27118
27119 : Provides a name list which is always abbreviated (with 
27120 \begin_inset Quotes eld
27121 \end_inset
27122
27123 et al.
27124 \begin_inset Quotes erd
27125 \end_inset
27126
27127 ) irrespective of 
27128 \begin_inset Flex Code
27129 status collapsed
27130
27131 \begin_layout Plain Layout
27132 MaxCiteNames
27133 \end_layout
27134
27135 \end_inset
27136
27137 .
27138 \end_layout
27139
27140 \end_deeper
27141 \begin_layout Standard
27142 The order of pre- and surname in the former two lists can be adjusted by
27143  these macros:
27144 \end_layout
27145
27146 \begin_layout Itemize
27147 \begin_inset Flex Code
27148 status collapsed
27149
27150 \begin_layout Plain Layout
27151 !firstnameform %surname%, %prename%
27152 \end_layout
27153
27154 \end_inset
27155
27156  (first author in lists of type 1)
27157 \end_layout
27158
27159 \begin_layout Itemize
27160 \begin_inset Flex Code
27161 status collapsed
27162
27163 \begin_layout Plain Layout
27164 !othernameform %surname%, %prename%
27165 \end_layout
27166
27167 \end_inset
27168
27169  (other authors in lists of type 1)
27170 \end_layout
27171
27172 \begin_layout Itemize
27173 \begin_inset Flex Code
27174 status collapsed
27175
27176 \begin_layout Plain Layout
27177 !firstbynameform %prename% %surname%
27178 \end_layout
27179
27180 \end_inset
27181
27182  (first author in lists of type 2)
27183 \end_layout
27184
27185 \begin_layout Itemize
27186 \begin_inset Flex Code
27187 status collapsed
27188
27189 \begin_layout Plain Layout
27190 !otherbynameform %prename% %surname%
27191 \end_layout
27192
27193 \end_inset
27194
27195  (other authors in lists of type 2)
27196 \end_layout
27197
27198 \begin_layout Standard
27199 This allows you to configure namings like 
27200 \begin_inset Quotes eld
27201 \end_inset
27202
27203 Miller, Peter and Mary Smith: \SpecialChar ldots
27204 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
27205
27206 \begin_inset Quotes erd
27207 \end_inset
27208
27209 .
27210 \end_layout
27211
27212 \begin_layout Standard
27213 There is one other piece of syntax available in definitions, which looks
27214  like this: 
27215 \begin_inset Flex Code
27216 status collapsed
27217
27218 \begin_layout Plain Layout
27219 {!<i>!}
27220 \end_layout
27221
27222 \end_inset
27223
27224 .
27225  This defines a piece of formatting information that is to be used when
27226  creating 
27227 \begin_inset Quotes eld
27228 \end_inset
27229
27230 rich text
27231 \begin_inset Quotes erd
27232 \end_inset
27233
27234 .
27235  Obviously, we do not want to output HTML tags when writing plain text,
27236  so they should be wrapped in 
27237 \begin_inset Quotes eld
27238 \end_inset
27239
27240 {!
27241 \begin_inset Quotes erd
27242 \end_inset
27243
27244  and 
27245 \begin_inset Quotes eld
27246 \end_inset
27247
27248 !}
27249 \begin_inset Quotes erd
27250 \end_inset
27251
27252 .
27253 \end_layout
27254
27255 \begin_layout Standard
27256 Two special sorts of definitions are also possible in a 
27257 \begin_inset Flex Code
27258 status collapsed
27259
27260 \begin_layout Plain Layout
27261 CiteFormat
27262 \end_layout
27263
27264 \end_inset
27265
27266  block.
27267  An example of the first would be:
27268 \end_layout
27269
27270 \begin_layout LyX-Code
27271 !quotetitle 
27272 \begin_inset Quotes eld
27273 \end_inset
27274
27275 %title%
27276 \begin_inset Quotes erd
27277 \end_inset
27278
27279
27280 \end_layout
27281
27282 \begin_layout Standard
27283 This is an abbreviation, or macro, and it can be used by treating it as
27284  if it were a key: 
27285 \begin_inset Flex Code
27286 status collapsed
27287
27288 \begin_layout Plain Layout
27289 %!quotetitle%
27290 \end_layout
27291
27292 \end_inset
27293
27294 .
27295  \SpecialChar LyX
27296  will treat 
27297 \begin_inset Flex Code
27298 status collapsed
27299
27300 \begin_layout Plain Layout
27301 %!quotetitle%
27302 \end_layout
27303
27304 \end_inset
27305
27306  exactly as it would treat its definition.
27307  So, let us issue the obvious 
27308 \emph on
27309 warning
27310 \emph default
27311 .
27312  Do not do this:
27313 \end_layout
27314
27315 \begin_layout LyX-Code
27316 !funfun %funfun%
27317 \end_layout
27318
27319 \begin_layout Standard
27320 or anything like it.
27321  \SpecialChar LyX
27322  shouldn't go into an infinite loop, but it may go into a long one before
27323  it gives up.
27324 \end_layout
27325
27326 \begin_layout Standard
27327 The second sort of special definition might look like this:
27328 \end_layout
27329
27330 \begin_layout LyX-Code
27331 B_pptext pp.
27332 \end_layout
27333
27334 \begin_layout Standard
27335 This defines a translatable piece of text, which allows relevant parts of
27336  the bibliography or citation to be translated.
27337  It can be included in a definition by treating it as a key: 
27338 \begin_inset Flex Code
27339 status collapsed
27340
27341 \begin_layout Plain Layout
27342 %B_pptext%
27343 \end_layout
27344
27345 \end_inset
27346
27347 .
27348  Note that there are two different translation paths: All definitions starting
27349  with 
27350 \begin_inset Flex Code
27351 status collapsed
27352
27353 \begin_layout Plain Layout
27354 B_
27355 \end_layout
27356
27357 \end_inset
27358
27359 , such as in the example above, will be translated to the currently active
27360  buffer language (so the translation will match the generated document).
27361  All definitions starting with underscore only will be translated to the
27362  GUI language.
27363  This is the proper translation for strings that only occur in the dialogs
27364  or on buttons, such as this one:
27365 \end_layout
27366
27367 \begin_layout LyX-Code
27368 _addtobib Add to bibliography only.
27369 \end_layout
27370
27371 \begin_layout Standard
27372 Several of these translatable strings are predefined in 
27373 \begin_inset Flex Code
27374 status collapsed
27375
27376 \begin_layout Plain Layout
27377 stdciteformats.inc
27378 \end_layout
27379
27380 \end_inset
27381
27382  and the diverse 
27383 \begin_inset Flex Code
27384 status collapsed
27385
27386 \begin_layout Plain Layout
27387 *.citeengine
27388 \end_layout
27389
27390 \end_inset
27391
27392  files.
27393  Note that these are not macros, in the sense just defined.
27394  They will not be expanded.
27395 \end_layout
27396
27397 \begin_layout Standard
27398 So here then is an example that uses several of these features:
27399 \begin_inset VSpace defskip
27400 \end_inset
27401
27402
27403 \end_layout
27404
27405 \begin_layout Standard
27406 \noindent
27407
27408 \family sans
27409 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
27410 \end_layout
27411
27412 \begin_layout Standard
27413 \begin_inset VSpace defskip
27414 \end_inset
27415
27416 This defines a macro that prints the author, followed by a comma, if the
27417  
27418 \begin_inset Flex Code
27419 status collapsed
27420
27421 \begin_layout Plain Layout
27422 author
27423 \end_layout
27424
27425 \end_inset
27426
27427  key is defined, or else prints the name of the editor, followed by the
27428  
27429 \begin_inset Flex Code
27430 status collapsed
27431
27432 \begin_layout Plain Layout
27433 B_edtext
27434 \end_layout
27435
27436 \end_inset
27437
27438  or its translation (it is by default 
27439 \begin_inset Quotes eld
27440 \end_inset
27441
27442 ed.
27443 \begin_inset Quotes erd
27444 \end_inset
27445
27446 ), if the 
27447 \begin_inset Flex Code
27448 status collapsed
27449
27450 \begin_layout Plain Layout
27451 editor
27452 \end_layout
27453
27454 \end_inset
27455
27456  key is defined.
27457  Note that this is in fact defined in 
27458 \begin_inset Flex Code
27459 status collapsed
27460
27461 \begin_layout Plain Layout
27462 stdciteformats.inc
27463 \end_layout
27464
27465 \end_inset
27466
27467 , so you can use it in your own definitions, or re-definitions, if you load
27468  that file first.
27469 \end_layout
27470
27471 \begin_layout Section
27472 \begin_inset CommandInset label
27473 LatexCommand label
27474 name "sec:Tags-for-XHTML"
27475
27476 \end_inset
27477
27478 Tags for XHTML output
27479 \end_layout
27480
27481 \begin_layout Standard
27482 As with \SpecialChar LaTeX
27483  or DocBook, the format of \SpecialChar LyX
27484 's XHTML output is also controlled by
27485  layout information.
27486  In general, \SpecialChar LyX
27487  provides sensible defaults and, as mentioned earlier, it will
27488  even construct default CSS style rules from the other layout tags.
27489  For example, \SpecialChar LyX
27490  will attempt to use the information provided in the 
27491 \begin_inset Flex Code
27492 status collapsed
27493
27494 \begin_layout Plain Layout
27495 Font
27496 \end_layout
27497
27498 \end_inset
27499
27500  declaration for the Chapter style to write CSS that will appropriately
27501  format chapter headings.
27502 \end_layout
27503
27504 \begin_layout Standard
27505 In many cases, then, you may not have to do anything at all to get acceptable
27506  XHTML output for your own environments, custom insets, and so forth.
27507  But in some cases you will, and so \SpecialChar LyX
27508  provides a number of layout tags that
27509  can be used to customize the XHTML and CSS that are generated.
27510 \end_layout
27511
27512 \begin_layout Standard
27513 Note that there are two tags, 
27514 \begin_inset Flex Code
27515 status collapsed
27516
27517 \begin_layout Plain Layout
27518 HTMLPreamble
27519 \end_layout
27520
27521 \end_inset
27522
27523  and 
27524 \begin_inset Flex Code
27525 status collapsed
27526
27527 \begin_layout Plain Layout
27528 AddToHTMLPreamble
27529 \end_layout
27530
27531 \end_inset
27532
27533  that may appear outside style and inset declarations.
27534  See 
27535 \begin_inset CommandInset ref
27536 LatexCommand ref
27537 reference "subsec:General-text-class"
27538
27539 \end_inset
27540
27541  for details on these.
27542 \end_layout
27543
27544 \begin_layout Subsection
27545 \begin_inset CommandInset label
27546 LatexCommand label
27547 name "subsec:Paragraph-Style-XHTML"
27548
27549 \end_inset
27550
27551 Paragraph styles
27552 \end_layout
27553
27554 \begin_layout Standard
27555 The sort of XHTML \SpecialChar LyX
27556  outputs for a paragraph depends upon whether we are dealing
27557  with a normal paragraph, a command, or an environment, where this is itself
27558  determined by the contents of the corresponding 
27559 \begin_inset Flex Code
27560 status collapsed
27561
27562 \begin_layout Plain Layout
27563 \SpecialChar LaTeX
27564 Type
27565 \end_layout
27566
27567 \end_inset
27568
27569  tag.
27570  
27571 \end_layout
27572
27573 \begin_layout Standard
27574 For a command or normal paragraph, the output XHTML has the following form:
27575 \end_layout
27576
27577 \begin_layout LyX-Code
27578
27579 \family sans
27580 <tag attr=
27581 \begin_inset Quotes erd
27582 \end_inset
27583
27584 value
27585 \begin_inset Quotes erd
27586 \end_inset
27587
27588 >
27589 \end_layout
27590
27591 \begin_layout LyX-Code
27592
27593 \family sans
27594 <labeltag attr=
27595 \begin_inset Quotes erd
27596 \end_inset
27597
27598 value
27599 \begin_inset Quotes erd
27600 \end_inset
27601
27602 >Label</labeltag>
27603 \end_layout
27604
27605 \begin_layout LyX-Code
27606
27607 \family sans
27608 Contents of the paragraph.
27609 \end_layout
27610
27611 \begin_layout LyX-Code
27612
27613 \family sans
27614 </tag>
27615 \end_layout
27616
27617 \begin_layout Standard
27618 The label tags are of course omitted if the paragraph does not have a label.
27619 \end_layout
27620
27621 \begin_layout Standard
27622 For an environment that is not some sort of list, the XHTML takes this form:
27623 \end_layout
27624
27625 \begin_layout LyX-Code
27626
27627 \family sans
27628 <tag attr=
27629 \begin_inset Quotes erd
27630 \end_inset
27631
27632 value
27633 \begin_inset Quotes erd
27634 \end_inset
27635
27636 >
27637 \end_layout
27638
27639 \begin_layout LyX-Code
27640
27641 \family sans
27642 <itemtag attr=
27643 \begin_inset Quotes erd
27644 \end_inset
27645
27646 value
27647 \begin_inset Quotes erd
27648 \end_inset
27649
27650 ><labeltag attr=
27651 \begin_inset Quotes erd
27652 \end_inset
27653
27654 value
27655 \begin_inset Quotes erd
27656 \end_inset
27657
27658 >Environment Label</labeltag>First paragraph.</itemtag>
27659 \end_layout
27660
27661 \begin_layout LyX-Code
27662
27663 \family sans
27664 <itemtag>Second paragraph.</itemtag>
27665 \end_layout
27666
27667 \begin_layout LyX-Code
27668
27669 \family sans
27670 </tag>
27671 \end_layout
27672
27673 \begin_layout Standard
27674 Note that the label is output only for the first paragraph, as it should
27675  be for a theorem, for example.
27676  
27677 \end_layout
27678
27679 \begin_layout Standard
27680 For a list, we have one of these forms:
27681 \end_layout
27682
27683 \begin_layout LyX-Code
27684
27685 \family sans
27686 <tag attr=
27687 \begin_inset Quotes erd
27688 \end_inset
27689
27690 value
27691 \begin_inset Quotes erd
27692 \end_inset
27693
27694 >
27695 \end_layout
27696
27697 \begin_layout LyX-Code
27698
27699 \family sans
27700 <itemtag attr=
27701 \begin_inset Quotes erd
27702 \end_inset
27703
27704 value
27705 \begin_inset Quotes erd
27706 \end_inset
27707
27708 ><labeltag attr=
27709 \begin_inset Quotes erd
27710 \end_inset
27711
27712 value
27713 \begin_inset Quotes erd
27714 \end_inset
27715
27716 >List Label</labeltag>First item.</itemtag>
27717 \end_layout
27718
27719 \begin_layout LyX-Code
27720
27721 \family sans
27722 <itemtag attr=
27723 \begin_inset Quotes erd
27724 \end_inset
27725
27726 value
27727 \begin_inset Quotes erd
27728 \end_inset
27729
27730 ><labeltag attr=
27731 \begin_inset Quotes erd
27732 \end_inset
27733
27734 value
27735 \begin_inset Quotes erd
27736 \end_inset
27737
27738 >List Label</labeltag>Second item.</itemtag>
27739 \end_layout
27740
27741 \begin_layout LyX-Code
27742
27743 \family sans
27744 </tag>
27745 \end_layout
27746
27747 \begin_layout LyX-Code
27748
27749 \end_layout
27750
27751 \begin_layout LyX-Code
27752
27753 \family sans
27754 <tag attr=
27755 \begin_inset Quotes erd
27756 \end_inset
27757
27758 value
27759 \begin_inset Quotes erd
27760 \end_inset
27761
27762 >
27763 \end_layout
27764
27765 \begin_layout LyX-Code
27766
27767 \family sans
27768 <labeltag attr=
27769 \begin_inset Quotes erd
27770 \end_inset
27771
27772 value
27773 \begin_inset Quotes erd
27774 \end_inset
27775
27776 >List Label</labeltag><itemtag attr=
27777 \begin_inset Quotes erd
27778 \end_inset
27779
27780 value
27781 \begin_inset Quotes erd
27782 \end_inset
27783
27784 >First item.</itemtag>
27785 \end_layout
27786
27787 \begin_layout LyX-Code
27788
27789 \family sans
27790 <labeltag attr=
27791 \begin_inset Quotes erd
27792 \end_inset
27793
27794 value
27795 \begin_inset Quotes erd
27796 \end_inset
27797
27798 >List Label</labeltag><itemtag attr=
27799 \begin_inset Quotes erd
27800 \end_inset
27801
27802 value
27803 \begin_inset Quotes erd
27804 \end_inset
27805
27806 >Second item.</itemtag>
27807 \end_layout
27808
27809 \begin_layout LyX-Code
27810
27811 \family sans
27812 </tag>
27813 \end_layout
27814
27815 \begin_layout Standard
27816 Note the different orders of 
27817 \begin_inset Flex Code
27818 status collapsed
27819
27820 \begin_layout Plain Layout
27821 labeltag
27822 \end_layout
27823
27824 \end_inset
27825
27826  and 
27827 \begin_inset Flex Code
27828 status collapsed
27829
27830 \begin_layout Plain Layout
27831 itemtag
27832 \end_layout
27833
27834 \end_inset
27835
27836 .
27837  Which order we get depends upon the setting of 
27838 \begin_inset Flex Code
27839 status collapsed
27840
27841 \begin_layout Plain Layout
27842 HTMLLabelFirst
27843 \end_layout
27844
27845 \end_inset
27846
27847 : If 
27848 \begin_inset Flex Code
27849 status collapsed
27850
27851 \begin_layout Plain Layout
27852 HTMLLabelFirst
27853 \end_layout
27854
27855 \end_inset
27856
27857  is false (the default), you get the first of these, with the label within
27858  the item; if true, you get the second, with the label outside the item.
27859 \end_layout
27860
27861 \begin_layout Standard
27862 The specific tags and attributes output for each paragraph type can be controlle
27863 d by means of the layout tags we are about to describe.
27864  As mentioned earlier, however, \SpecialChar LyX
27865  uses sensible defaults for many of these,
27866  so you often may not need to do very much to get good XHTML output.
27867  Think of the available tags as there so you can tweak things to your liking.
27868 \end_layout
27869
27870 \begin_layout Description
27871 \begin_inset Flex Code
27872 status collapsed
27873
27874 \begin_layout Plain Layout
27875 HTMLAttr
27876 \end_layout
27877
27878 \end_inset
27879
27880  [
27881 \begin_inset Flex Code
27882 status collapsed
27883
27884 \begin_layout Plain Layout
27885 string
27886 \end_layout
27887
27888 \end_inset
27889
27890 ] Specifies attribute information to be output with the main tag.
27891  For example, 
27892 \begin_inset Quotes eld
27893 \end_inset
27894
27895
27896 \begin_inset Flex Code
27897 status collapsed
27898
27899 \begin_layout Plain Layout
27900 class=`mydiv'
27901 \end_layout
27902
27903 \end_inset
27904
27905
27906 \begin_inset Quotes erd
27907 \end_inset
27908
27909 .
27910  By default, \SpecialChar LyX
27911  will output 
27912 \begin_inset Quotes eld
27913 \end_inset
27914
27915
27916 \begin_inset Flex Code
27917 status collapsed
27918
27919 \begin_layout Plain Layout
27920 class=`layoutname'
27921 \end_layout
27922
27923 \end_inset
27924
27925
27926 \begin_inset Quotes erd
27927 \end_inset
27928
27929 , where 
27930 \begin_inset Flex Code
27931 status collapsed
27932
27933 \begin_layout Plain Layout
27934 layoutname
27935 \end_layout
27936
27937 \end_inset
27938
27939  is the \SpecialChar LyX
27940  name of the layout, made lowercase, for example: chapter.
27941  This should 
27942 \emph on
27943 not
27944 \emph default
27945  contain any style information.
27946  Use 
27947 \begin_inset Flex Code
27948 status collapsed
27949
27950 \begin_layout Plain Layout
27951 HTMLStyle
27952 \end_layout
27953
27954 \end_inset
27955
27956  for that purpose.
27957 \end_layout
27958
27959 \begin_layout Description
27960 \begin_inset Flex Code
27961 status collapsed
27962
27963 \begin_layout Plain Layout
27964 HTMLForceCSS
27965 \end_layout
27966
27967 \end_inset
27968
27969  [
27970 \begin_inset Flex Code
27971 status collapsed
27972
27973 \begin_layout Plain Layout
27974
27975 \emph on
27976 0
27977 \emph default
27978 ,1
27979 \end_layout
27980
27981 \end_inset
27982
27983 ] Whether to output the default CSS information \SpecialChar LyX
27984  generates for this layout,
27985  even if additional information is explicitly provided via 
27986 \begin_inset Flex Code
27987 status collapsed
27988
27989 \begin_layout Plain Layout
27990 HTMLStyle
27991 \end_layout
27992
27993 \end_inset
27994
27995 .
27996  Setting this to 
27997 \begin_inset Flex Code
27998 status collapsed
27999
28000 \begin_layout Plain Layout
28001 1
28002 \end_layout
28003
28004 \end_inset
28005
28006  allows you to alter or augment the generated CSS, rather than to override
28007  it completely.
28008  Default is 
28009 \begin_inset Flex Code
28010 status collapsed
28011
28012 \begin_layout Plain Layout
28013 0
28014 \end_layout
28015
28016 \end_inset
28017
28018 .
28019 \end_layout
28020
28021 \begin_layout Description
28022 \begin_inset Flex Code
28023 status collapsed
28024
28025 \begin_layout Plain Layout
28026 HTMLItem
28027 \end_layout
28028
28029 \end_inset
28030
28031  [
28032 \begin_inset Flex Code
28033 status collapsed
28034
28035 \begin_layout Plain Layout
28036 string
28037 \end_layout
28038
28039 \end_inset
28040
28041 ] The tag to be used for individual paragraphs of environments, replacing
28042  
28043 \begin_inset Flex Code
28044 status collapsed
28045
28046 \begin_layout Plain Layout
28047 itemtag
28048 \end_layout
28049
28050 \end_inset
28051
28052  in the examples above.
28053  Defaults to 
28054 \begin_inset Flex Code
28055 status collapsed
28056
28057 \begin_layout Plain Layout
28058 div
28059 \end_layout
28060
28061 \end_inset
28062
28063 .
28064 \end_layout
28065
28066 \begin_layout Description
28067 \begin_inset Flex Code
28068 status collapsed
28069
28070 \begin_layout Plain Layout
28071 HTMLItemAttr
28072 \end_layout
28073
28074 \end_inset
28075
28076  [
28077 \begin_inset Flex Code
28078 status collapsed
28079
28080 \begin_layout Plain Layout
28081 string
28082 \end_layout
28083
28084 \end_inset
28085
28086 ] Attributes for the item tag.
28087  Defaults to
28088 \begin_inset Newline newline
28089 \end_inset
28090
28091
28092 \begin_inset Quotes eld
28093 \end_inset
28094
28095
28096 \begin_inset Flex Code
28097 status collapsed
28098
28099 \begin_layout Plain Layout
28100 class=`layoutname_item'
28101 \end_layout
28102
28103 \end_inset
28104
28105
28106 \begin_inset Quotes erd
28107 \end_inset
28108
28109 .
28110  This should 
28111 \emph on
28112 not
28113 \emph default
28114  contain any style information.
28115  Use 
28116 \begin_inset Flex Code
28117 status collapsed
28118
28119 \begin_layout Plain Layout
28120 HTMLStyle
28121 \end_layout
28122
28123 \end_inset
28124
28125  for that purpose.
28126 \end_layout
28127
28128 \begin_layout Description
28129 \begin_inset Flex Code
28130 status collapsed
28131
28132 \begin_layout Plain Layout
28133 HTMLLabel
28134 \end_layout
28135
28136 \end_inset
28137
28138  [
28139 \begin_inset Flex Code
28140 status collapsed
28141
28142 \begin_layout Plain Layout
28143 string
28144 \end_layout
28145
28146 \end_inset
28147
28148 ] The tag to be used for paragraph and item labels, replacing 
28149 \begin_inset Flex Code
28150 status collapsed
28151
28152 \begin_layout Plain Layout
28153 labeltag
28154 \end_layout
28155
28156 \end_inset
28157
28158  in the examples above.
28159  Defaults to 
28160 \begin_inset Flex Code
28161 status collapsed
28162
28163 \begin_layout Plain Layout
28164 span
28165 \end_layout
28166
28167 \end_inset
28168
28169 , unless 
28170 \begin_inset Flex Code
28171 status collapsed
28172
28173 \begin_layout Plain Layout
28174 LabelType
28175 \end_layout
28176
28177 \end_inset
28178
28179  is either 
28180 \begin_inset Flex Code
28181 status collapsed
28182
28183 \begin_layout Plain Layout
28184 Top_Environment
28185 \end_layout
28186
28187 \end_inset
28188
28189  or 
28190 \begin_inset Flex Code
28191 status collapsed
28192
28193 \begin_layout Plain Layout
28194 Centered_Top_Environment
28195 \end_layout
28196
28197 \end_inset
28198
28199 , in which case it defaults to 
28200 \begin_inset Flex Code
28201 status collapsed
28202
28203 \begin_layout Plain Layout
28204 div
28205 \end_layout
28206
28207 \end_inset
28208
28209 .
28210 \end_layout
28211
28212 \begin_layout Description
28213 \begin_inset Flex Code
28214 status collapsed
28215
28216 \begin_layout Plain Layout
28217 HTMLLabelAttr
28218 \end_layout
28219
28220 \end_inset
28221
28222  [
28223 \begin_inset Flex Code
28224 status collapsed
28225
28226 \begin_layout Plain Layout
28227 string
28228 \end_layout
28229
28230 \end_inset
28231
28232 ] Attributes for the label tag.
28233  Defaults to
28234 \begin_inset Newline newline
28235 \end_inset
28236
28237
28238 \begin_inset Quotes eld
28239 \end_inset
28240
28241
28242 \begin_inset Flex Code
28243 status collapsed
28244
28245 \begin_layout Plain Layout
28246 class=`layoutname_label'
28247 \end_layout
28248
28249 \end_inset
28250
28251
28252 \begin_inset Quotes erd
28253 \end_inset
28254
28255 .
28256  This should 
28257 \emph on
28258 not
28259 \emph default
28260  contain any style information.
28261  Use 
28262 \begin_inset Flex Code
28263 status collapsed
28264
28265 \begin_layout Plain Layout
28266 HTMLStyle
28267 \end_layout
28268
28269 \end_inset
28270
28271  for that purpose.
28272 \end_layout
28273
28274 \begin_layout Description
28275 \begin_inset Flex Code
28276 status collapsed
28277
28278 \begin_layout Plain Layout
28279 HTMLLabelFirst
28280 \end_layout
28281
28282 \end_inset
28283
28284  [
28285 \begin_inset Flex Code
28286 status collapsed
28287
28288 \begin_layout Plain Layout
28289
28290 \emph on
28291 0
28292 \emph default
28293 ,1
28294 \end_layout
28295
28296 \end_inset
28297
28298 ] Meaningful only for list-like environments, this tag controls whether
28299  the label tag is output before or inside the item tag.
28300  This is used, for example, in the description environment, where we want
28301  `
28302 \begin_inset Flex Code
28303 status collapsed
28304
28305 \begin_layout Plain Layout
28306 <dt>\SpecialChar ldots
28307 </dt><dd>\SpecialChar ldots
28308 </dd>
28309 \end_layout
28310
28311 \end_inset
28312
28313 .
28314  Default is 
28315 \begin_inset Flex Code
28316 status collapsed
28317
28318 \begin_layout Plain Layout
28319 0
28320 \end_layout
28321
28322 \end_inset
28323
28324 : The label tag is output inside the item tag.
28325 \end_layout
28326
28327 \begin_layout Description
28328 \begin_inset Flex Code
28329 status collapsed
28330
28331 \begin_layout Plain Layout
28332 HTMLPreamble
28333 \end_layout
28334
28335 \end_inset
28336
28337  Information to be output in the 
28338 \begin_inset Flex Code
28339 status collapsed
28340
28341 \begin_layout Plain Layout
28342 <head>
28343 \end_layout
28344
28345 \end_inset
28346
28347  section when this style is used.
28348  This might, for example, be used to include a 
28349 \begin_inset Flex Code
28350 status collapsed
28351
28352 \begin_layout Plain Layout
28353 <script>
28354 \end_layout
28355
28356 \end_inset
28357
28358  block defining an 
28359 \begin_inset Flex Code
28360 status collapsed
28361
28362 \begin_layout Plain Layout
28363 onclick
28364 \end_layout
28365
28366 \end_inset
28367
28368  handler.
28369 \end_layout
28370
28371 \begin_layout Description
28372 \begin_inset Flex Code
28373 status collapsed
28374
28375 \begin_layout Plain Layout
28376 HTMLStyle
28377 \end_layout
28378
28379 \end_inset
28380
28381  CSS style information to be included when this style is used.
28382  Note that this will automatically be wrapped in a layout-generated 
28383 \begin_inset Flex Code
28384 status collapsed
28385
28386 \begin_layout Plain Layout
28387 <style>
28388 \end_layout
28389
28390 \end_inset
28391
28392  block, so only the CSS itself need be included.
28393  Must end with 
28394 \begin_inset Flex Code
28395 status collapsed
28396
28397 \begin_layout Plain Layout
28398 EndHTMLStyle
28399 \end_layout
28400
28401 \end_inset
28402
28403 .
28404 \end_layout
28405
28406 \begin_layout Description
28407 \begin_inset Flex Code
28408 status collapsed
28409
28410 \begin_layout Plain Layout
28411 HTMLTag
28412 \end_layout
28413
28414 \end_inset
28415
28416  [
28417 \begin_inset Flex Code
28418 status collapsed
28419
28420 \begin_layout Plain Layout
28421 string
28422 \end_layout
28423
28424 \end_inset
28425
28426 ] The tag to be used for the main label, replacing 
28427 \begin_inset Flex Code
28428 status collapsed
28429
28430 \begin_layout Plain Layout
28431 tag
28432 \end_layout
28433
28434 \end_inset
28435
28436  in the examples above.
28437  Defaults to 
28438 \begin_inset Flex Code
28439 status collapsed
28440
28441 \begin_layout Plain Layout
28442 div
28443 \end_layout
28444
28445 \end_inset
28446
28447 .
28448 \end_layout
28449
28450 \begin_layout Description
28451 \begin_inset Flex Code
28452 status collapsed
28453
28454 \begin_layout Plain Layout
28455 HTMLTitle
28456 \end_layout
28457
28458 \end_inset
28459
28460  [
28461 \begin_inset Flex Code
28462 status collapsed
28463
28464 \begin_layout Plain Layout
28465
28466 \emph on
28467 0
28468 \emph default
28469 ,1
28470 \end_layout
28471
28472 \end_inset
28473
28474 ] Marks this style as the one to be used to generate the 
28475 \begin_inset Flex Code
28476 status collapsed
28477
28478 \begin_layout Plain Layout
28479 <title>
28480 \end_layout
28481
28482 \end_inset
28483
28484  tag for the XHTML file.
28485  By default, it is false.
28486  The 
28487 \begin_inset Flex Code
28488 status collapsed
28489
28490 \begin_layout Plain Layout
28491 stdtitle.inc
28492 \end_layout
28493
28494 \end_inset
28495
28496  file sets it to true for the 
28497 \begin_inset Flex Code
28498 status collapsed
28499
28500 \begin_layout Plain Layout
28501 title
28502 \end_layout
28503
28504 \end_inset
28505
28506  environment.
28507  
28508 \end_layout
28509
28510 \begin_layout Subsection
28511 InsetLayout XHTML
28512 \end_layout
28513
28514 \begin_layout Standard
28515 The XHTML output of insets can also be controlled by information in layout
28516  files.
28517 \begin_inset Foot
28518 status collapsed
28519
28520 \begin_layout Plain Layout
28521 At present, this is true only for 
28522 \begin_inset Quotes eld
28523 \end_inset
28524
28525 text
28526 \begin_inset Quotes erd
28527 \end_inset
28528
28529  insets (insets you can type into) and is not true for 
28530 \begin_inset Quotes eld
28531 \end_inset
28532
28533 command
28534 \begin_inset Quotes erd
28535 \end_inset
28536
28537  insets (insets that are associated with dialog boxes).
28538 \end_layout
28539
28540 \end_inset
28541
28542  Here, too, \SpecialChar LyX
28543  tries to provide sensible defaults, and it constructs default
28544  CSS style rules.
28545  But everything can be customized.
28546 \end_layout
28547
28548 \begin_layout Standard
28549 The XHTML \SpecialChar LyX
28550  outputs for an inset has the following form:
28551 \end_layout
28552
28553 \begin_layout LyX-Code
28554 <tag attr=
28555 \begin_inset Quotes erd
28556 \end_inset
28557
28558 value
28559 \begin_inset Quotes erd
28560 \end_inset
28561
28562 >
28563 \end_layout
28564
28565 \begin_layout LyX-Code
28566 <labeltag>Label</labeltag>
28567 \end_layout
28568
28569 \begin_layout LyX-Code
28570 <innertag attr=
28571 \begin_inset Quotes erd
28572 \end_inset
28573
28574 value
28575 \begin_inset Quotes erd
28576 \end_inset
28577
28578 >Contents of the inset.</innertag>
28579 \end_layout
28580
28581 \begin_layout LyX-Code
28582 </tag>
28583 \end_layout
28584
28585 \begin_layout Standard
28586 If the inset permits multiple paragraphs—that is, if 
28587 \begin_inset Flex Code
28588 status collapsed
28589
28590 \begin_layout Plain Layout
28591 MultiPar
28592 \end_layout
28593
28594 \end_inset
28595
28596  is true—then the contents of the inset will itself be output as paragraphs
28597  formatted according to the styles used for those paragraphs (standard,
28598  quote, and the like).
28599  The label tag is of course omitted if the paragraph does not have a label
28600  and, at present, is always 
28601 \begin_inset Flex Code
28602 status collapsed
28603
28604 \begin_layout Plain Layout
28605 span
28606 \end_layout
28607
28608 \end_inset
28609
28610 .
28611  The inner tag is optional and, by default, does not appear.
28612 \end_layout
28613
28614 \begin_layout Standard
28615 The specific tags and attributes output for each inset can be controlled
28616  by means of the following layout tags.
28617 \end_layout
28618
28619 \begin_layout Description
28620 \begin_inset Flex Code
28621 status collapsed
28622
28623 \begin_layout Plain Layout
28624 HTMLAttr
28625 \end_layout
28626
28627 \end_inset
28628
28629  [
28630 \begin_inset Flex Code
28631 status collapsed
28632
28633 \begin_layout Plain Layout
28634 string
28635 \end_layout
28636
28637 \end_inset
28638
28639 ] Specifies attribute information to be output with the main tag.
28640  For example, 
28641 \begin_inset Quotes eld
28642 \end_inset
28643
28644
28645 \begin_inset Flex Code
28646 status collapsed
28647
28648 \begin_layout Plain Layout
28649 class=`myinset' onclick=`\SpecialChar ldots
28650 '
28651 \end_layout
28652
28653 \end_inset
28654
28655
28656 \begin_inset Quotes erd
28657 \end_inset
28658
28659 .
28660  By default, \SpecialChar LyX
28661  will output 
28662 \begin_inset Quotes eld
28663 \end_inset
28664
28665
28666 \begin_inset Flex Code
28667 status collapsed
28668
28669 \begin_layout Plain Layout
28670 class=`insetname'
28671 \end_layout
28672
28673 \end_inset
28674
28675
28676 \begin_inset Quotes erd
28677 \end_inset
28678
28679 , where 
28680 \begin_inset Flex Code
28681 status collapsed
28682
28683 \begin_layout Plain Layout
28684 insetname
28685 \end_layout
28686
28687 \end_inset
28688
28689  is the \SpecialChar LyX
28690  name of the inset, made lowercase and with non-alphanumeric characters
28691  converted to underscores, for example: footnote.
28692 \end_layout
28693
28694 \begin_layout Description
28695 \begin_inset Flex Code
28696 status collapsed
28697
28698 \begin_layout Plain Layout
28699 HTMLForceCSS
28700 \end_layout
28701
28702 \end_inset
28703
28704  [
28705 \begin_inset Flex Code
28706 status collapsed
28707
28708 \begin_layout Plain Layout
28709
28710 \emph on
28711 0
28712 \emph default
28713 ,1
28714 \end_layout
28715
28716 \end_inset
28717
28718 ] Whether to output the default CSS information \SpecialChar LyX
28719  generates for this layout,
28720  even if additional information is explicitly provided via 
28721 \begin_inset Flex Code
28722 status collapsed
28723
28724 \begin_layout Plain Layout
28725 HTMLStyle
28726 \end_layout
28727
28728 \end_inset
28729
28730 .
28731  Setting this to 
28732 \begin_inset Flex Code
28733 status collapsed
28734
28735 \begin_layout Plain Layout
28736 1
28737 \end_layout
28738
28739 \end_inset
28740
28741  allows you to alter or augment the generated CSS, rather than to override
28742  it completely.
28743  Default is 0.
28744 \end_layout
28745
28746 \begin_layout Description
28747 \begin_inset Flex Code
28748 status collapsed
28749
28750 \begin_layout Plain Layout
28751 HTMLInnerAttr
28752 \end_layout
28753
28754 \end_inset
28755
28756  [
28757 \begin_inset Flex Code
28758 status collapsed
28759
28760 \begin_layout Plain Layout
28761 string
28762 \end_layout
28763
28764 \end_inset
28765
28766 ] Attributes for the inner tag.
28767  Defaults to
28768 \begin_inset Newline newline
28769 \end_inset
28770
28771
28772 \begin_inset Quotes eld
28773 \end_inset
28774
28775
28776 \begin_inset Flex Code
28777 status collapsed
28778
28779 \begin_layout Plain Layout
28780 class=`insetname_inner'
28781 \end_layout
28782
28783 \end_inset
28784
28785
28786 \begin_inset Quotes erd
28787 \end_inset
28788
28789 .
28790 \end_layout
28791
28792 \begin_layout Description
28793 \begin_inset Flex Code
28794 status collapsed
28795
28796 \begin_layout Plain Layout
28797 HTMLInnerTag
28798 \end_layout
28799
28800 \end_inset
28801
28802  [
28803 \begin_inset Flex Code
28804 status collapsed
28805
28806 \begin_layout Plain Layout
28807 string
28808 \end_layout
28809
28810 \end_inset
28811
28812 ] The inner tag, replacing 
28813 \begin_inset Flex Code
28814 status collapsed
28815
28816 \begin_layout Plain Layout
28817 innertag
28818 \end_layout
28819
28820 \end_inset
28821
28822  in the examples above.
28823  By default, there is none.
28824 \end_layout
28825
28826 \begin_layout Description
28827 \begin_inset Flex Code
28828 status collapsed
28829
28830 \begin_layout Plain Layout
28831 HTMLIsBlock
28832 \end_layout
28833
28834 \end_inset
28835
28836  [
28837 \begin_inset Flex Code
28838 status collapsed
28839
28840 \begin_layout Plain Layout
28841 0,
28842 \emph on
28843 1
28844 \end_layout
28845
28846 \end_inset
28847
28848 ] Whether this inset represents a standalone block of text (such as a footnote)
28849  or instead represents material that is included in the surrounding text
28850  (such as a branch).
28851  Defaults to 1.
28852 \end_layout
28853
28854 \begin_layout Description
28855 \begin_inset Flex Code
28856 status collapsed
28857
28858 \begin_layout Plain Layout
28859 HTMLLabel
28860 \end_layout
28861
28862 \end_inset
28863
28864  [
28865 \begin_inset Flex Code
28866 status collapsed
28867
28868 \begin_layout Plain Layout
28869 string
28870 \end_layout
28871
28872 \end_inset
28873
28874 ] A label for this inset, possibly including a reference to a counter.
28875  For example, for footnote, it might be: 
28876 \begin_inset Flex Code
28877 status collapsed
28878
28879 \begin_layout Plain Layout
28880
28881 \backslash
28882 arabic{footnote}
28883 \end_layout
28884
28885 \end_inset
28886
28887 .
28888  This is optional, and there is no default.
28889 \end_layout
28890
28891 \begin_layout Description
28892 \begin_inset Flex Code
28893 status collapsed
28894
28895 \begin_layout Plain Layout
28896 HTMLPreamble
28897 \end_layout
28898
28899 \end_inset
28900
28901  Information to be output in the 
28902 \begin_inset Flex Code
28903 status collapsed
28904
28905 \begin_layout Plain Layout
28906 <head>
28907 \end_layout
28908
28909 \end_inset
28910
28911  section when this style is used.
28912  This might, for example, be used to include a 
28913 \begin_inset Flex Code
28914 status collapsed
28915
28916 \begin_layout Plain Layout
28917 <script>
28918 \end_layout
28919
28920 \end_inset
28921
28922  block defining an 
28923 \begin_inset Flex Code
28924 status collapsed
28925
28926 \begin_layout Plain Layout
28927 onclick
28928 \end_layout
28929
28930 \end_inset
28931
28932  handler.
28933 \end_layout
28934
28935 \begin_layout Description
28936 \begin_inset Flex Code
28937 status collapsed
28938
28939 \begin_layout Plain Layout
28940 HTMLStyle
28941 \end_layout
28942
28943 \end_inset
28944
28945  CSS style information to be included when this style is used.
28946  Note that this will automatically be wrapped in a layout-generated 
28947 \begin_inset Flex Code
28948 status collapsed
28949
28950 \begin_layout Plain Layout
28951 <style>
28952 \end_layout
28953
28954 \end_inset
28955
28956  block, so only the CSS itself need be included.
28957 \end_layout
28958
28959 \begin_layout Description
28960 \begin_inset Flex Code
28961 status collapsed
28962
28963 \begin_layout Plain Layout
28964 HTMLTag
28965 \end_layout
28966
28967 \end_inset
28968
28969  [
28970 \begin_inset Flex Code
28971 status collapsed
28972
28973 \begin_layout Plain Layout
28974 string
28975 \end_layout
28976
28977 \end_inset
28978
28979 ] The tag to be used for the main label, replacing 
28980 \begin_inset Flex Code
28981 status collapsed
28982
28983 \begin_layout Plain Layout
28984 tag
28985 \end_layout
28986
28987 \end_inset
28988
28989  in the examples above.
28990  The default depends upon the setting of 
28991 \begin_inset Flex Code
28992 status collapsed
28993
28994 \begin_layout Plain Layout
28995 MultiPar
28996 \end_layout
28997
28998 \end_inset
28999
29000 : If 
29001 \begin_inset Flex Code
29002 status collapsed
29003
29004 \begin_layout Plain Layout
29005 MultiPar
29006 \end_layout
29007
29008 \end_inset
29009
29010  is true, the default is 
29011 \begin_inset Flex Code
29012 status collapsed
29013
29014 \begin_layout Plain Layout
29015 div
29016 \end_layout
29017
29018 \end_inset
29019
29020 ; if it is false, the default is 
29021 \begin_inset Flex Code
29022 status collapsed
29023
29024 \begin_layout Plain Layout
29025 span
29026 \end_layout
29027
29028 \end_inset
29029
29030 .
29031 \end_layout
29032
29033 \begin_layout Subsection
29034 Float XHTML
29035 \end_layout
29036
29037 \begin_layout Standard
29038 The XHTML output for floats too can be controlled by layout information.
29039  The output has the following form:
29040 \end_layout
29041
29042 \begin_layout LyX-Code
29043 <tag attr=
29044 \begin_inset Quotes erd
29045 \end_inset
29046
29047 value
29048 \begin_inset Quotes erd
29049 \end_inset
29050
29051 >
29052 \end_layout
29053
29054 \begin_layout LyX-Code
29055 Contents of the float.
29056 \end_layout
29057
29058 \begin_layout LyX-Code
29059 </tag>
29060 \end_layout
29061
29062 \begin_layout Standard
29063 The caption, if there is one, is a separate inset and will be output as
29064  such.
29065  Its appearance can be controlled via the InsetLayout for caption insets.
29066  
29067 \end_layout
29068
29069 \begin_layout Description
29070 \begin_inset Flex Code
29071 status collapsed
29072
29073 \begin_layout Plain Layout
29074 HTMLAttr
29075 \end_layout
29076
29077 \end_inset
29078
29079  [
29080 \begin_inset Flex Code
29081 status collapsed
29082
29083 \begin_layout Plain Layout
29084 string
29085 \end_layout
29086
29087 \end_inset
29088
29089 ] Specifies attribute information to be output with the main tag.
29090  For example, 
29091 \begin_inset Quotes eld
29092 \end_inset
29093
29094
29095 \begin_inset Flex Code
29096 status collapsed
29097
29098 \begin_layout Plain Layout
29099 class=`myfloat' onclick=`\SpecialChar ldots
29100 '
29101 \end_layout
29102
29103 \end_inset
29104
29105
29106 \begin_inset Quotes erd
29107 \end_inset
29108
29109 .
29110  By default, \SpecialChar LyX
29111  will output 
29112 \begin_inset Quotes eld
29113 \end_inset
29114
29115
29116 \begin_inset Flex Code
29117 status collapsed
29118
29119 \begin_layout Plain Layout
29120 class=`float float-floattype'
29121 \end_layout
29122
29123 \end_inset
29124
29125
29126 \begin_inset Quotes erd
29127 \end_inset
29128
29129 , where 
29130 \begin_inset Flex Code
29131 status collapsed
29132
29133 \begin_layout Plain Layout
29134 floattype
29135 \end_layout
29136
29137 \end_inset
29138
29139  is \SpecialChar LyX
29140 's name for this type of float, as determined by the float declaration
29141  (see 
29142 \begin_inset CommandInset ref
29143 LatexCommand ref
29144 reference "subsec:Floats"
29145
29146 \end_inset
29147
29148 ), though made lowercase and with non-alphanumeric characters converted
29149  to underscores, for example: float-table.
29150 \end_layout
29151
29152 \begin_layout Description
29153 \begin_inset Flex Code
29154 status collapsed
29155
29156 \begin_layout Plain Layout
29157 HTMLStyle
29158 \end_layout
29159
29160 \end_inset
29161
29162  CSS style information to be included when this float is used.
29163  Note that this will automatically be wrapped in a layout-generated 
29164 \begin_inset Flex Code
29165 status collapsed
29166
29167 \begin_layout Plain Layout
29168 <style>
29169 \end_layout
29170
29171 \end_inset
29172
29173  block, so only the CSS itself need be included.
29174 \end_layout
29175
29176 \begin_layout Description
29177 \begin_inset Flex Code
29178 status collapsed
29179
29180 \begin_layout Plain Layout
29181 HTMLTag
29182 \end_layout
29183
29184 \end_inset
29185
29186  [
29187 \begin_inset Flex Code
29188 status collapsed
29189
29190 \begin_layout Plain Layout
29191 string
29192 \end_layout
29193
29194 \end_inset
29195
29196 ] The tag to be used for this float, replacing 
29197 \begin_inset Quotes eld
29198 \end_inset
29199
29200
29201 \begin_inset Flex Code
29202 status collapsed
29203
29204 \begin_layout Plain Layout
29205 tag
29206 \end_layout
29207
29208 \end_inset
29209
29210
29211 \begin_inset Quotes erd
29212 \end_inset
29213
29214  in the example above.
29215  The default is 
29216 \begin_inset Flex Code
29217 status collapsed
29218
29219 \begin_layout Plain Layout
29220 div
29221 \end_layout
29222
29223 \end_inset
29224
29225  and will rarely need changing.
29226 \end_layout
29227
29228 \begin_layout Subsection
29229 Bibliography formatting
29230 \end_layout
29231
29232 \begin_layout Standard
29233 The bibliography can be formatted using 
29234 \begin_inset Flex Code
29235 status collapsed
29236
29237 \begin_layout Plain Layout
29238 CiteFormat
29239 \end_layout
29240
29241 \end_inset
29242
29243  blocks.
29244  See 
29245 \begin_inset CommandInset ref
29246 LatexCommand ref
29247 reference "subsec:Citation-format-description"
29248
29249 \end_inset
29250
29251  for the details.
29252 \end_layout
29253
29254 \begin_layout Subsection
29255 \SpecialChar LyX
29256 -generated CSS
29257 \end_layout
29258
29259 \begin_layout Standard
29260 We have several times mentioned that \SpecialChar LyX
29261  will generate default CSS style rules
29262  for both insets and paragraph styles, based upon the other layout information
29263  that is provided.
29264  In this section, we shall say a word about which layout information \SpecialChar LyX
29265  uses
29266  and how.
29267 \end_layout
29268
29269 \begin_layout Standard
29270 At present, \SpecialChar LyX
29271  auto-generates CSS only for font information, making use of
29272  the 
29273 \begin_inset Flex Code
29274 status collapsed
29275
29276 \begin_layout Plain Layout
29277 Family
29278 \end_layout
29279
29280 \end_inset
29281
29282
29283 \begin_inset Flex Code
29284 status collapsed
29285
29286 \begin_layout Plain Layout
29287 Series
29288 \end_layout
29289
29290 \end_inset
29291
29292
29293 \begin_inset Flex Code
29294 status collapsed
29295
29296 \begin_layout Plain Layout
29297 Shape
29298 \end_layout
29299
29300 \end_inset
29301
29302 , and 
29303 \begin_inset Flex Code
29304 status collapsed
29305
29306 \begin_layout Plain Layout
29307 Size
29308 \end_layout
29309
29310 \end_inset
29311
29312  specified in the 
29313 \begin_inset Flex Code
29314 status collapsed
29315
29316 \begin_layout Plain Layout
29317 Font
29318 \end_layout
29319
29320 \end_inset
29321
29322  declaration (see 
29323 \begin_inset CommandInset ref
29324 LatexCommand ref
29325 reference "subsec:Font-description"
29326
29327 \end_inset
29328
29329 ).
29330  The translation is mostly straightforward and obvious.
29331  For example, 
29332 \begin_inset Quotes eld
29333 \end_inset
29334
29335
29336 \begin_inset Flex Code
29337 status collapsed
29338
29339 \begin_layout Plain Layout
29340 Family Sans
29341 \end_layout
29342
29343 \end_inset
29344
29345
29346 \begin_inset Quotes erd
29347 \end_inset
29348
29349  becomes 
29350 \begin_inset Quotes eld
29351 \end_inset
29352
29353
29354 \begin_inset Flex Code
29355 status collapsed
29356
29357 \begin_layout Plain Layout
29358 font-family: sans-serif;
29359 \end_layout
29360
29361 \end_inset
29362
29363
29364 \begin_inset Quotes erd
29365 \end_inset
29366
29367 .
29368  The correspondence of \SpecialChar LyX
29369  sizes and CSS sizes is a little less obvious but
29370  nonetheless intuitive.
29371  See the 
29372 \begin_inset Flex Code
29373 status collapsed
29374
29375 \begin_layout Plain Layout
29376 getSizeCSS()
29377 \end_layout
29378
29379 \end_inset
29380
29381  function in 
29382 \begin_inset Flex URL
29383 status collapsed
29384
29385 \begin_layout Plain Layout
29386
29387 src/FontInfo.cpp
29388 \end_layout
29389
29390 \end_inset
29391
29392  for the details.
29393 \change_inserted -970929547 1496610908
29394
29395 \end_layout
29396
29397 \begin_layout Section
29398
29399 \change_inserted -970929547 1496610966
29400 \begin_inset CommandInset label
29401 LatexCommand label
29402 name "sec:Tags-for-DocBook"
29403
29404 \end_inset
29405
29406 Tags for DocBook output
29407 \end_layout
29408
29409 \begin_layout Standard
29410
29411 \change_inserted -970929547 1496611615
29412 As with \SpecialChar LaTeX
29413  or XHTML, the format of \SpecialChar LyX
29414 's DocBook output is also controlled by
29415  layout information.
29416  In general, \SpecialChar LyX
29417  provides sensible defaults; however, much of the styling is
29418  lost during the conversion, as DocBook is strictly semantic and does not
29419  allow formatting.
29420  When possible, information from \SpecialChar LyX
29421  will be rendered in 
29422 \family typewriter
29423 role
29424 \family default
29425  attributes.
29426  
29427 \end_layout
29428
29429 \begin_layout Standard
29430
29431 \change_inserted -970929547 1496612080
29432 In many cases, then, you may not have to do anything at all to get acceptable
29433  DocBook output for your own environments, custom insets, and so forth.
29434  But in some cases you will, and so \SpecialChar LyX
29435  provides a number of layout tags that
29436  can be used to customize the DocBook that is generated.
29437 \end_layout
29438
29439 \begin_layout Standard
29440
29441 \change_inserted -970929547 1515109912
29442 Labels are rarely output, as they are redundant in DocBook: this information
29443  is carried by the tags themselves, and whether labels appear in the final
29444  documents (after processing of DocBook files) is controlled by the stylesheets.
29445  However, sometimes, labels are not redundant content, such as definition
29446  lists: in this case, the term being defined will be the label.
29447  
29448 \end_layout
29449
29450 \begin_layout Subsection
29451
29452 \change_inserted 1075283030 1597699417
29453 \begin_inset CommandInset label
29454 LatexCommand label
29455 name "subsec:Paragraph-Style-DocBook"
29456
29457 \end_inset
29458
29459
29460 \change_deleted 1075283030 1597699417
29461
29462 \begin_inset CommandInset label
29463 LatexCommand label
29464 name "subsec:Paragraph-Style-XHTML-1"
29465
29466 \end_inset
29467
29468
29469 \change_inserted -970929547 1496610966
29470 Paragraph styles
29471 \end_layout
29472
29473 \begin_layout Standard
29474
29475 \change_inserted -970929547 1496612059
29476 The sort of DocBook \SpecialChar LyX
29477  outputs for a paragraph depends upon whether we are
29478  dealing with a normal paragraph, a command, or an environment, where this
29479  is itself determined by the contents of the corresponding 
29480 \begin_inset Flex Code
29481 status collapsed
29482
29483 \begin_layout Plain Layout
29484
29485 \change_inserted -970929547 1496610966
29486 \SpecialChar LaTeX
29487 Type
29488 \change_unchanged
29489
29490 \end_layout
29491
29492 \end_inset
29493
29494  tag.
29495  
29496 \end_layout
29497
29498 \begin_layout Standard
29499
29500 \change_inserted -970929547 1496612107
29501 For a command or normal paragraph, the output DocBook has the following
29502  form:
29503 \end_layout
29504
29505 \begin_layout LyX-Code
29506
29507 \change_inserted -970929547 1515109666
29508 <tag attr>
29509 \end_layout
29510
29511 \begin_layout LyX-Code
29512
29513 \change_inserted -970929547 1496610966
29514 Contents of the paragraph.
29515 \end_layout
29516
29517 \begin_layout LyX-Code
29518
29519 \change_inserted -970929547 1496610966
29520 </tag>
29521 \end_layout
29522
29523 \begin_layout Standard
29524
29525 \change_inserted -970929547 1515109821
29526 For an environment that is not some sort of list, the generated DocBook
29527  takes this form:
29528 \end_layout
29529
29530 \begin_layout LyX-Code
29531
29532 \change_inserted -970929547 1515109671
29533 <tag attr>
29534 \end_layout
29535
29536 \begin_layout LyX-Code
29537
29538 \change_inserted -970929547 1496612114
29539 <itemtag>First paragraph.</itemtag>
29540 \end_layout
29541
29542 \begin_layout LyX-Code
29543
29544 \change_inserted -970929547 1496610966
29545 <itemtag>Second paragraph.</itemtag>
29546 \end_layout
29547
29548 \begin_layout LyX-Code
29549
29550 \change_inserted -970929547 1496610966
29551 </tag>
29552 \end_layout
29553
29554 \begin_layout Standard
29555
29556 \change_inserted -970929547 1515109825
29557 For a list, the resulting DocBook takes this form:
29558 \end_layout
29559
29560 \begin_layout LyX-Code
29561
29562 \change_inserted -970929547 1515109672
29563 <tag attr>
29564 \end_layout
29565
29566 \begin_layout LyX-Code
29567
29568 \change_inserted -970929547 1515109676
29569 <itemtag attr>First item.</itemtag>
29570 \end_layout
29571
29572 \begin_layout LyX-Code
29573
29574 \change_inserted -970929547 1515109678
29575 <itemtag attr>Second item.</itemtag>
29576 \end_layout
29577
29578 \begin_layout LyX-Code
29579
29580 \change_inserted -970929547 1496610966
29581 </tag>
29582 \end_layout
29583
29584 \begin_layout Standard
29585
29586 \change_inserted -970929547 1496612243
29587 The specific tags and roles output for each paragraph type can be controlled
29588  by means of the layout tags we are about to describe.
29589  Please note that, due to the very nature of DocBook, no sensible defaults
29590  really exist, and the values must always be carefully chosen.
29591  
29592 \end_layout
29593
29594 \begin_layout Description
29595
29596 \change_inserted -970929547 1515110057
29597 \begin_inset Flex Code
29598 status collapsed
29599
29600 \begin_layout Plain Layout
29601
29602 \change_inserted -970929547 1515109656
29603 DocBookAttr
29604 \change_unchanged
29605
29606 \end_layout
29607
29608 \end_inset
29609
29610  [
29611 \begin_inset Flex Code
29612 status collapsed
29613
29614 \begin_layout Plain Layout
29615
29616 \change_inserted -970929547 1496610966
29617 string
29618 \change_unchanged
29619
29620 \end_layout
29621
29622 \end_inset
29623
29624 ] Specifies attribute information to be output with the main tag, replacing
29625  
29626 \begin_inset Quotes eld
29627 \end_inset
29628
29629
29630 \begin_inset Flex Code
29631 status collapsed
29632
29633 \begin_layout Plain Layout
29634
29635 \change_inserted -970929547 1515110057
29636 attr
29637 \change_unchanged
29638
29639 \end_layout
29640
29641 \end_inset
29642
29643
29644 \begin_inset Quotes erd
29645 \end_inset
29646
29647  in the example above.
29648  This information can be used in further processing of the DocBook files.
29649  
29650 \change_unchanged
29651
29652 \end_layout
29653
29654 \begin_layout Description
29655
29656 \change_inserted -970929547 1496612296
29657 \begin_inset Flex Code
29658 status collapsed
29659
29660 \begin_layout Plain Layout
29661
29662 \change_inserted -970929547 1496612269
29663 DocBookTag
29664 \change_unchanged
29665
29666 \end_layout
29667
29668 \end_inset
29669
29670  [
29671 \begin_inset Flex Code
29672 status collapsed
29673
29674 \begin_layout Plain Layout
29675
29676 \change_inserted -970929547 1496610966
29677 string
29678 \change_unchanged
29679
29680 \end_layout
29681
29682 \end_inset
29683
29684 ] The tag to be used for this inset, replacing 
29685 \begin_inset Quotes eld
29686 \end_inset
29687
29688
29689 \begin_inset Flex Code
29690 status collapsed
29691
29692 \begin_layout Plain Layout
29693
29694 \change_inserted -970929547 1496612296
29695 tag
29696 \change_unchanged
29697
29698 \end_layout
29699
29700 \end_inset
29701
29702
29703 \begin_inset Quotes erd
29704 \end_inset
29705
29706  in the example above.
29707  The default is the name of the float and always needs to be changed, as
29708  DocBook provides no generic tag.
29709 \change_inserted 1075283030 1597698868
29710
29711 \end_layout
29712
29713 \begin_layout Description
29714
29715 \change_inserted 1075283030 1597699399
29716 \begin_inset Flex Code
29717 status collapsed
29718
29719 \begin_layout Plain Layout
29720
29721 \change_inserted 1075283030 1597698872
29722 DocBookTagType
29723 \change_unchanged
29724
29725 \end_layout
29726
29727 \end_inset
29728
29729  [
29730 \begin_inset Flex Code
29731 status collapsed
29732
29733 \begin_layout Plain Layout
29734
29735 \change_inserted 1075283030 1597700585
29736 block, paragraph, inline
29737 \change_unchanged
29738
29739 \end_layout
29740
29741 \end_inset
29742
29743 ] The new-line policy for this tag, see Section
29744 \begin_inset space ~
29745 \end_inset
29746
29747
29748 \begin_inset CommandInset ref
29749 LatexCommand ref
29750 reference "subsec:DocBook-New-line-policy"
29751 plural "false"
29752 caps "false"
29753 noprefix "false"
29754
29755 \end_inset
29756
29757  for the details.
29758  
29759 \change_unchanged
29760
29761 \end_layout
29762
29763 \begin_layout Subsection
29764
29765 \change_inserted 1075283030 1597699385
29766 New-line policy
29767 \begin_inset CommandInset label
29768 LatexCommand label
29769 name "subsec:DocBook-New-line-policy"
29770
29771 \end_inset
29772
29773
29774 \end_layout
29775
29776 \begin_layout Standard
29777
29778 \change_inserted 1075283030 1597698993
29779 For all tags, there are three possible policies for outputting new lines
29780  (given in the 
29781 \begin_inset Flex Code
29782 status collapsed
29783
29784 \begin_layout Plain Layout
29785
29786 \change_inserted 1075283030 1597698987
29787 DocBook*TagType
29788 \change_unchanged
29789
29790 \end_layout
29791
29792 \end_inset
29793
29794  attribute): 
29795 \end_layout
29796
29797 \begin_layout Itemize
29798
29799 \change_inserted 1075283030 1597699279
29800 \begin_inset Quotes eld
29801 \end_inset
29802
29803
29804 \begin_inset Flex Code
29805 status collapsed
29806
29807 \begin_layout Plain Layout
29808
29809 \change_inserted 1075283030 1597699012
29810 block
29811 \change_unchanged
29812
29813 \end_layout
29814
29815 \end_inset
29816
29817
29818 \begin_inset Quotes erd
29819 \end_inset
29820
29821 : the opening and closing tags are on their own lines (i.e.
29822  a line feed after and before the opening and the closing tags).
29823  Typical elements are floats.
29824  For instance: 
29825 \end_layout
29826
29827 \begin_layout LyX-Code
29828
29829 \change_inserted 1075283030 1597699194
29830 Content before
29831 \end_layout
29832
29833 \begin_layout LyX-Code
29834
29835 \change_inserted 1075283030 1597699194
29836 <blocktag>
29837 \end_layout
29838
29839 \begin_layout LyX-Code
29840
29841 \change_inserted 1075283030 1597699098
29842   Contents of the block.
29843 \end_layout
29844
29845 \begin_layout LyX-Code
29846
29847 \change_inserted 1075283030 1597699196
29848 </blocktag>
29849 \end_layout
29850
29851 \begin_layout LyX-Code
29852
29853 \change_inserted 1075283030 1597699198
29854 Content after
29855 \end_layout
29856
29857 \begin_layout Itemize
29858
29859 \change_inserted 1075283030 1597699289
29860 \begin_inset Quotes eld
29861 \end_inset
29862
29863
29864 \begin_inset Flex Code
29865 status collapsed
29866
29867 \begin_layout Plain Layout
29868
29869 \change_inserted 1075283030 1597699113
29870 paragraph
29871 \change_unchanged
29872
29873 \end_layout
29874
29875 \end_inset
29876
29877
29878 \begin_inset Quotes erd
29879 \end_inset
29880
29881 : the opening and closing tags are on the same, new line; a line feed is
29882  output before the opening tag and after the closing tag.
29883  Typical elements are paragraphs and list items.
29884  For instance: 
29885 \end_layout
29886
29887 \begin_layout LyX-Code
29888
29889 \change_inserted 1075283030 1597699186
29890 Content before
29891 \end_layout
29892
29893 \begin_layout LyX-Code
29894
29895 \change_inserted 1075283030 1597699357
29896 <paratag>Contents of the paragraph.</paratag>
29897 \end_layout
29898
29899 \begin_layout LyX-Code
29900
29901 \change_inserted 1075283030 1597699231
29902 Content after
29903 \end_layout
29904
29905 \begin_layout Itemize
29906
29907 \change_inserted 1075283030 1597699343
29908 \begin_inset Quotes eld
29909 \end_inset
29910
29911
29912 \begin_inset Flex Code
29913 status collapsed
29914
29915 \begin_layout Plain Layout
29916
29917 \change_inserted 1075283030 1597699307
29918 inline
29919 \change_unchanged
29920
29921 \end_layout
29922
29923 \end_inset
29924
29925
29926 \begin_inset Quotes erd
29927 \end_inset
29928
29929 : the opening and closing tags are on the same line as the rest of the content.
29930  No line feeds are output.
29931  Typical elements are fonts.
29932  For instance: 
29933 \end_layout
29934
29935 \begin_layout LyX-Code
29936
29937 \change_inserted 1075283030 1597699585
29938 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
29939 \end_layout
29940
29941 \begin_layout Standard
29942
29943 \change_inserted 1075283030 1597699585
29944 The default value is always 
29945 \begin_inset Quotes eld
29946 \end_inset
29947
29948
29949 \begin_inset Flex Code
29950 status collapsed
29951
29952 \begin_layout Plain Layout
29953
29954 \change_inserted 1075283030 1597699585
29955 block
29956 \change_unchanged
29957
29958 \end_layout
29959
29960 \end_inset
29961
29962
29963 \begin_inset Quotes erd
29964 \end_inset
29965
29966 .
29967 \change_unchanged
29968
29969 \end_layout
29970
29971 \begin_layout Subsection
29972
29973 \change_inserted -970929547 1515111533
29974 InsetLayout DocBook
29975 \change_unchanged
29976
29977 \end_layout
29978
29979 \begin_layout Standard
29980
29981 \change_inserted -970929547 1496611894
29982 The DocBook output of insets can also be controlled by information in layout
29983  files.
29984 \end_layout
29985
29986 \begin_layout Standard
29987
29988 \change_inserted -970929547 1496612045
29989 The DocBook \SpecialChar LyX
29990  outputs for an inset has the following form:
29991 \end_layout
29992
29993 \begin_layout LyX-Code
29994
29995 \change_inserted -970929547 1515110861
29996 <wrappertag wrapperattr>
29997 \end_layout
29998
29999 \begin_layout LyX-Code
30000
30001 \change_inserted -970929547 1515110868
30002   <tag attr>
30003 \end_layout
30004
30005 \begin_layout LyX-Code
30006
30007 \change_inserted -970929547 1515110869
30008     <innertag innerattr>
30009 \end_layout
30010
30011 \begin_layout LyX-Code
30012
30013 \change_inserted -970929547 1515110869
30014       Contents of the inset.
30015 \end_layout
30016
30017 \begin_layout LyX-Code
30018
30019 \change_inserted -970929547 1515110870
30020     </innertag>
30021 \end_layout
30022
30023 \begin_layout LyX-Code
30024
30025 \change_inserted -970929547 1515110871
30026   </tag>
30027 \end_layout
30028
30029 \begin_layout LyX-Code
30030
30031 \change_inserted -970929547 1515111172
30032 </wrappertag>
30033 \end_layout
30034
30035 \begin_layout Standard
30036
30037 \change_inserted -970929547 1515111186
30038 For an itemising inset, it rather looks like this: 
30039 \end_layout
30040
30041 \begin_layout LyX-Code
30042
30043 \change_inserted -970929547 1515111186
30044 <wrappertag wrapperattr>
30045 \end_layout
30046
30047 \begin_layout LyX-Code
30048
30049 \change_inserted -970929547 1515111186
30050   <tag attr>
30051 \end_layout
30052
30053 \begin_layout LyX-Code
30054
30055 \change_inserted -970929547 1515111186
30056     <innertag innerattr>
30057 \end_layout
30058
30059 \begin_layout LyX-Code
30060
30061 \change_inserted -970929547 1515111362
30062       <itemwrappertag itemwrapperattr>
30063 \end_layout
30064
30065 \begin_layout LyX-Code
30066
30067 \change_inserted -970929547 1515111364
30068         <itemlabeltag itemattr>
30069 \end_layout
30070
30071 \begin_layout LyX-Code
30072
30073 \change_inserted -970929547 1515111367
30074           Label of the first item.
30075 \end_layout
30076
30077 \begin_layout LyX-Code
30078
30079 \change_inserted -970929547 1515111362
30080         </itemtag>
30081 \change_unchanged
30082
30083 \end_layout
30084
30085 \begin_layout LyX-Code
30086
30087 \change_inserted -970929547 1515111517
30088         <itemtag itemattr>
30089 \end_layout
30090
30091 \begin_layout LyX-Code
30092
30093 \change_inserted -970929547 1515111517
30094           <itemtag itemattr>
30095 \change_unchanged
30096
30097 \end_layout
30098
30099 \begin_layout LyX-Code
30100
30101 \change_inserted -970929547 1515111516
30102             Contents of the first item.
30103 \end_layout
30104
30105 \begin_layout LyX-Code
30106
30107 \change_inserted -970929547 1515111514
30108           </itemtag>
30109 \change_unchanged
30110
30111 \end_layout
30112
30113 \begin_layout LyX-Code
30114
30115 \change_inserted -970929547 1515111247
30116         </itemtag>
30117 \change_unchanged
30118
30119 \end_layout
30120
30121 \begin_layout LyX-Code
30122
30123 \change_inserted -970929547 1515111221
30124       </itemwrappertag>
30125 \end_layout
30126
30127 \begin_layout LyX-Code
30128
30129 \change_inserted -970929547 1515111370
30130       <itemwrappertag itemwrapperattr>
30131 \end_layout
30132
30133 \begin_layout LyX-Code
30134
30135 \change_inserted -970929547 1515111370
30136         <itemlabeltag itemattr>
30137 \end_layout
30138
30139 \begin_layout LyX-Code
30140
30141 \change_inserted -970929547 1515111372
30142           Label of the second item.
30143 \end_layout
30144
30145 \begin_layout LyX-Code
30146
30147 \change_inserted -970929547 1515111370
30148         </itemtag>
30149 \change_unchanged
30150
30151 \end_layout
30152
30153 \begin_layout LyX-Code
30154
30155 \change_inserted -970929547 1515111504
30156         <itemtag itemattr>
30157 \end_layout
30158
30159 \begin_layout LyX-Code
30160
30161 \change_inserted -970929547 1515111505
30162           <itemtag itemattr>
30163 \change_unchanged
30164
30165 \end_layout
30166
30167 \begin_layout LyX-Code
30168
30169 \change_inserted -970929547 1515111507
30170             Contents of the second item.
30171 \end_layout
30172
30173 \begin_layout LyX-Code
30174
30175 \change_inserted -970929547 1515111509
30176           </itemtag>
30177 \change_unchanged
30178
30179 \end_layout
30180
30181 \begin_layout LyX-Code
30182
30183 \change_inserted -970929547 1515111251
30184         </itemtag>
30185 \change_unchanged
30186
30187 \end_layout
30188
30189 \begin_layout LyX-Code
30190
30191 \change_inserted -970929547 1515111221
30192       </itemwrappertag>
30193 \change_unchanged
30194
30195 \end_layout
30196
30197 \begin_layout LyX-Code
30198
30199 \change_inserted -970929547 1515111219
30200       ...
30201 \change_unchanged
30202
30203 \end_layout
30204
30205 \begin_layout LyX-Code
30206
30207 \change_inserted -970929547 1515111186
30208     </innertag>
30209 \end_layout
30210
30211 \begin_layout LyX-Code
30212
30213 \change_inserted -970929547 1515111186
30214   </tag>
30215 \end_layout
30216
30217 \begin_layout LyX-Code
30218
30219 \change_inserted -970929547 1515111186
30220 </wrappertag>
30221 \end_layout
30222
30223 \begin_layout Standard
30224
30225 \change_inserted -970929547 1515111183
30226 If the inset permits multiple paragraphs—that is, if 
30227 \begin_inset Flex Code
30228 status collapsed
30229
30230 \begin_layout Plain Layout
30231
30232 \change_inserted -970929547 1496610966
30233 MultiPar
30234 \change_unchanged
30235
30236 \end_layout
30237
30238 \end_inset
30239
30240  is true—then the contents of the inset will 
30241 \change_deleted 34634807 1620029217
30242 itself
30243 \change_inserted 34634807 1620029219
30244 themselves
30245 \change_inserted -970929547 1515111183
30246  be output as paragraphs formatted according to the styles used for those
30247  paragraphs (standard, quote, and the like).
30248  The inner tag is optional and, by default, does not appear.
30249 \end_layout
30250
30251 \begin_layout Standard
30252
30253 \change_inserted -970929547 1496610966
30254 The specific tags and attributes output for each inset can be controlled
30255  by means of the following layout tags.
30256 \end_layout
30257
30258 \begin_layout Description
30259
30260 \change_inserted -970929547 1515110317
30261 \begin_inset Flex Code
30262 status collapsed
30263
30264 \begin_layout Plain Layout
30265
30266 \change_inserted -970929547 1515109695
30267 DocBookAttr
30268 \change_unchanged
30269
30270 \end_layout
30271
30272 \end_inset
30273
30274  [
30275 \begin_inset Flex Code
30276 status collapsed
30277
30278 \begin_layout Plain Layout
30279
30280 \change_inserted -970929547 1496611854
30281 string
30282 \change_unchanged
30283
30284 \end_layout
30285
30286 \end_inset
30287
30288 ] Specifies attribute information to be output with the main tag, replacing
30289  
30290 \begin_inset Quotes eld
30291 \end_inset
30292
30293
30294 \begin_inset Flex Code
30295 status collapsed
30296
30297 \begin_layout Plain Layout
30298
30299 \change_inserted -970929547 1515110044
30300 attr
30301 \change_unchanged
30302
30303 \end_layout
30304
30305 \end_inset
30306
30307
30308 \begin_inset Quotes erd
30309 \end_inset
30310
30311  in the example above.
30312  This information can be used in further processing of the DocBook files.
30313  
30314 \end_layout
30315
30316 \begin_layout Description
30317
30318 \change_inserted -970929547 1515110973
30319 \begin_inset Flex Code
30320 status collapsed
30321
30322 \begin_layout Plain Layout
30323
30324 \change_inserted -970929547 1515110319
30325 DocBookInInfo
30326 \change_unchanged
30327
30328 \end_layout
30329
30330 \end_inset
30331
30332  [
30333 \begin_inset Flex Code
30334 status collapsed
30335
30336 \begin_layout Plain Layout
30337
30338 \change_inserted -970929547 1515110384
30339 never, always, maybe
30340 \change_unchanged
30341
30342 \end_layout
30343
30344 \end_inset
30345
30346 ] Specifies whether this tag goes into the 
30347 \begin_inset Flex Code
30348 status collapsed
30349
30350 \begin_layout Plain Layout
30351
30352 \change_inserted -970929547 1515110412
30353 <info>
30354 \change_unchanged
30355
30356 \end_layout
30357
30358 \end_inset
30359
30360  tag at the beginning of the parent layout.
30361  
30362 \begin_inset Flex Code
30363 status collapsed
30364
30365 \begin_layout Plain Layout
30366
30367 \change_inserted -970929547 1515110437
30368 never
30369 \change_unchanged
30370
30371 \end_layout
30372
30373 \end_inset
30374
30375  indicates that the tag never goes into 
30376 \begin_inset Flex Code
30377 status collapsed
30378
30379 \begin_layout Plain Layout
30380
30381 \change_inserted -970929547 1515110497
30382 <info>
30383 \change_unchanged
30384
30385 \end_layout
30386
30387 \end_inset
30388
30389  (this is default value, and corresponds to usual content).
30390  
30391 \begin_inset Flex Code
30392 status collapsed
30393
30394 \begin_layout Plain Layout
30395
30396 \change_inserted -970929547 1515110517
30397 always
30398 \change_unchanged
30399
30400 \end_layout
30401
30402 \end_inset
30403
30404  indicates that the tag always goes into 
30405 \begin_inset Flex Code
30406 status collapsed
30407
30408 \begin_layout Plain Layout
30409
30410 \change_inserted -970929547 1515110514
30411 <info>
30412 \change_unchanged
30413
30414 \end_layout
30415
30416 \end_inset
30417
30418  (this corresponds to usual metadata): if there is no 
30419 \begin_inset Flex Code
30420 status collapsed
30421
30422 \begin_layout Plain Layout
30423
30424 \change_inserted -970929547 1515110550
30425 <info>
30426 \change_unchanged
30427
30428 \end_layout
30429
30430 \end_inset
30431
30432  tag for the parent, one 
30433 \series bold
30434 will
30435 \series default
30436  be generated.
30437  
30438 \begin_inset Flex Code
30439 status collapsed
30440
30441 \begin_layout Plain Layout
30442
30443 \change_inserted -970929547 1515110540
30444 maybe
30445 \change_unchanged
30446
30447 \end_layout
30448
30449 \end_inset
30450
30451  indicates that the tag may go into 
30452 \begin_inset Flex Code
30453 status collapsed
30454
30455 \begin_layout Plain Layout
30456
30457 \change_inserted -970929547 1515110538
30458 <info>
30459 \change_unchanged
30460
30461 \end_layout
30462
30463 \end_inset
30464
30465  (this is only the case for titles): if there is no 
30466 \begin_inset Flex Code
30467 status collapsed
30468
30469 \begin_layout Plain Layout
30470
30471 \change_inserted -970929547 1515110585
30472 <info>
30473 \change_unchanged
30474
30475 \end_layout
30476
30477 \end_inset
30478
30479  tag for the parent, 
30480 \series bold
30481 none
30482 \series default
30483  will be generated, the corresponding tag will be output directly as content.
30484  
30485 \end_layout
30486
30487 \begin_layout Description
30488
30489 \change_inserted -970929547 1515111461
30490 \begin_inset Flex Code
30491 status collapsed
30492
30493 \begin_layout Plain Layout
30494
30495 \change_inserted -970929547 1515110974
30496 DocBookItemAttr
30497 \change_unchanged
30498
30499 \end_layout
30500
30501 \end_inset
30502
30503  [
30504 \begin_inset Flex Code
30505 status collapsed
30506
30507 \begin_layout Plain Layout
30508
30509 \change_inserted -970929547 1515110973
30510 string
30511 \change_unchanged
30512
30513 \end_layout
30514
30515 \end_inset
30516
30517 ] Specifies attribute information to be output with the item tag, replacing
30518  
30519 \begin_inset Quotes eld
30520 \end_inset
30521
30522
30523 \begin_inset Flex Code
30524 status collapsed
30525
30526 \begin_layout Plain Layout
30527
30528 \change_inserted -970929547 1515110984
30529 itemattr
30530 \change_unchanged
30531
30532 \end_layout
30533
30534 \end_inset
30535
30536
30537 \begin_inset Quotes erd
30538 \end_inset
30539
30540  in the example above.
30541  This information can be used in further processing of the DocBook files.
30542  
30543 \end_layout
30544
30545 \begin_layout Description
30546
30547 \change_inserted -970929547 1515111471
30548 \begin_inset Flex Code
30549 status collapsed
30550
30551 \begin_layout Plain Layout
30552
30553 \change_inserted -970929547 1515111465
30554 DocBookItemInnerAttr
30555 \change_unchanged
30556
30557 \end_layout
30558
30559 \end_inset
30560
30561  [
30562 \begin_inset Flex Code
30563 status collapsed
30564
30565 \begin_layout Plain Layout
30566
30567 \change_inserted -970929547 1515111461
30568 string
30569 \change_unchanged
30570
30571 \end_layout
30572
30573 \end_inset
30574
30575 ] Specifies attribute information to be output with the item inner tag,
30576  replacing 
30577 \begin_inset Quotes eld
30578 \end_inset
30579
30580
30581 \begin_inset Flex Code
30582 status collapsed
30583
30584 \begin_layout Plain Layout
30585
30586 \change_inserted -970929547 1515111476
30587 iteminnerattr
30588 \change_unchanged
30589
30590 \end_layout
30591
30592 \end_inset
30593
30594
30595 \begin_inset Quotes erd
30596 \end_inset
30597
30598  in the example above.
30599  This information can be used in further processing of the DocBook files.
30600  
30601 \end_layout
30602
30603 \begin_layout Description
30604
30605 \change_inserted -970929547 1515111494
30606 \begin_inset Flex Code
30607 status collapsed
30608
30609 \begin_layout Plain Layout
30610
30611 \change_inserted -970929547 1515111467
30612 DocBookItemInnerTag
30613 \change_unchanged
30614
30615 \end_layout
30616
30617 \end_inset
30618
30619  [
30620 \begin_inset Flex Code
30621 status collapsed
30622
30623 \begin_layout Plain Layout
30624
30625 \change_inserted -970929547 1515111461
30626 string
30627 \change_unchanged
30628
30629 \end_layout
30630
30631 \end_inset
30632
30633 ] The tag to be used for the item inner tag within the inset, replacing
30634  
30635 \begin_inset Quotes eld
30636 \end_inset
30637
30638
30639 \begin_inset Flex Code
30640 status collapsed
30641
30642 \begin_layout Plain Layout
30643
30644 \change_inserted -970929547 1515111486
30645 iteminnertag
30646 \change_unchanged
30647
30648 \end_layout
30649
30650 \end_inset
30651
30652
30653 \begin_inset Quotes erd
30654 \end_inset
30655
30656  in the example above.
30657  The default is 
30658 \begin_inset Flex Code
30659 status collapsed
30660
30661 \begin_layout Plain Layout
30662
30663 \change_inserted -970929547 1515111461
30664 NONE
30665 \change_unchanged
30666
30667 \end_layout
30668
30669 \end_inset
30670
30671 , indicating that there is no item inner tag: content is directly output
30672  without it for each itemised element.
30673  This parameter only makes sense when itemising layouts are used, such as
30674  lists.
30675  
30676 \change_inserted 1075283030 1598469472
30677 The most likely value is 
30678 \begin_inset Quotes eld
30679 \end_inset
30680
30681
30682 \begin_inset Flex Code
30683 status collapsed
30684
30685 \begin_layout Plain Layout
30686
30687 \change_inserted 1075283030 1598469476
30688 para
30689 \change_unchanged
30690
30691 \end_layout
30692
30693 \end_inset
30694
30695
30696 \begin_inset Quotes erd
30697 \end_inset
30698
30699 .
30700 \begin_inset Newline newline
30701 \end_inset
30702
30703 When a list item is split using a new line, the item inner tag will be repeated
30704  for each part of the paragraph, parts being separated by new lines.
30705  
30706 \end_layout
30707
30708 \begin_layout Description
30709
30710 \change_inserted 1075283030 1597699866
30711 \begin_inset Flex Code
30712 status collapsed
30713
30714 \begin_layout Plain Layout
30715
30716 \change_inserted 1075283030 1597699853
30717 DocBookItemInnerTagType
30718 \change_unchanged
30719
30720 \end_layout
30721
30722 \end_inset
30723
30724  [
30725 \begin_inset Flex Code
30726 status collapsed
30727
30728 \begin_layout Plain Layout
30729
30730 \change_inserted 1075283030 1597699866
30731 block, paragraph, inline
30732 \change_unchanged
30733
30734 \end_layout
30735
30736 \end_inset
30737
30738 ] The new-line policy for this tag, see Section
30739 \begin_inset space ~
30740 \end_inset
30741
30742
30743 \begin_inset CommandInset ref
30744 LatexCommand ref
30745 reference "subsec:DocBook-New-line-policy"
30746 plural "false"
30747 caps "false"
30748 noprefix "false"
30749
30750 \end_inset
30751
30752  for the details.
30753  
30754 \change_unchanged
30755
30756 \end_layout
30757
30758 \begin_layout Description
30759
30760 \change_inserted -970929547 1515111290
30761 \begin_inset Flex Code
30762 status collapsed
30763
30764 \begin_layout Plain Layout
30765
30766 \change_inserted -970929547 1515111283
30767 DocBookItemLabelAttr
30768 \change_unchanged
30769
30770 \end_layout
30771
30772 \end_inset
30773
30774  [
30775 \begin_inset Flex Code
30776 status collapsed
30777
30778 \begin_layout Plain Layout
30779
30780 \change_inserted -970929547 1515111279
30781 string
30782 \change_unchanged
30783
30784 \end_layout
30785
30786 \end_inset
30787
30788 ] Specifies attribute information to be output with the item label tag,
30789  replacing 
30790 \begin_inset Quotes eld
30791 \end_inset
30792
30793
30794 \begin_inset Flex Code
30795 status collapsed
30796
30797 \begin_layout Plain Layout
30798
30799 \change_inserted -970929547 1515111304
30800 itemlabelattr
30801 \change_unchanged
30802
30803 \end_layout
30804
30805 \end_inset
30806
30807
30808 \begin_inset Quotes erd
30809 \end_inset
30810
30811  in the example above.
30812  This information can be used in further processing of the DocBook files.
30813  
30814 \end_layout
30815
30816 \begin_layout Description
30817
30818 \change_inserted -970929547 1515111337
30819 \begin_inset Flex Code
30820 status collapsed
30821
30822 \begin_layout Plain Layout
30823
30824 \change_inserted -970929547 1515111285
30825 DocBookItemLabelTag
30826 \change_unchanged
30827
30828 \end_layout
30829
30830 \end_inset
30831
30832  [
30833 \begin_inset Flex Code
30834 status collapsed
30835
30836 \begin_layout Plain Layout
30837
30838 \change_inserted -970929547 1515111279
30839 string
30840 \change_unchanged
30841
30842 \end_layout
30843
30844 \end_inset
30845
30846 ] The tag to be used for the item label tag within the inset, replacing
30847  
30848 \begin_inset Quotes eld
30849 \end_inset
30850
30851
30852 \begin_inset Flex Code
30853 status collapsed
30854
30855 \begin_layout Plain Layout
30856
30857 \change_inserted -970929547 1515111311
30858 itemlabeltag
30859 \change_unchanged
30860
30861 \end_layout
30862
30863 \end_inset
30864
30865
30866 \begin_inset Quotes erd
30867 \end_inset
30868
30869  in the example above.
30870  This parameter only makes sense when itemising layouts are used with a
30871  notion of labels, such as definition lists.
30872  
30873 \change_inserted 1075283030 1597699874
30874
30875 \end_layout
30876
30877 \begin_layout Description
30878
30879 \change_inserted 1075283030 1597699874
30880 \begin_inset Flex Code
30881 status collapsed
30882
30883 \begin_layout Plain Layout
30884
30885 \change_inserted 1075283030 1597699880
30886 DocBookItemLabelTagType
30887 \change_unchanged
30888
30889 \end_layout
30890
30891 \end_inset
30892
30893  [
30894 \begin_inset Flex Code
30895 status collapsed
30896
30897 \begin_layout Plain Layout
30898
30899 \change_inserted 1075283030 1597699874
30900 block, paragraph, inline
30901 \change_unchanged
30902
30903 \end_layout
30904
30905 \end_inset
30906
30907 ] The new-line policy for this tag, see Section
30908 \begin_inset space ~
30909 \end_inset
30910
30911
30912 \begin_inset CommandInset ref
30913 LatexCommand ref
30914 reference "subsec:DocBook-New-line-policy"
30915 plural "false"
30916 caps "false"
30917 noprefix "false"
30918
30919 \end_inset
30920
30921  for the details.
30922  
30923 \change_unchanged
30924
30925 \end_layout
30926
30927 \begin_layout Description
30928
30929 \change_inserted -970929547 1515111124
30930 \begin_inset Flex Code
30931 status collapsed
30932
30933 \begin_layout Plain Layout
30934
30935 \change_inserted -970929547 1515111060
30936 DocBookItemTag
30937 \change_unchanged
30938
30939 \end_layout
30940
30941 \end_inset
30942
30943  [
30944 \begin_inset Flex Code
30945 status collapsed
30946
30947 \begin_layout Plain Layout
30948
30949 \change_inserted -970929547 1515111060
30950 string
30951 \change_unchanged
30952
30953 \end_layout
30954
30955 \end_inset
30956
30957 ] The tag to be used for the item tag within the inset, replacing 
30958 \begin_inset Quotes eld
30959 \end_inset
30960
30961
30962 \begin_inset Flex Code
30963 status collapsed
30964
30965 \begin_layout Plain Layout
30966
30967 \change_inserted -970929547 1515111060
30968 itemtag
30969 \change_unchanged
30970
30971 \end_layout
30972
30973 \end_inset
30974
30975
30976 \begin_inset Quotes erd
30977 \end_inset
30978
30979  in the example above.
30980  The default is 
30981 \begin_inset Flex Code
30982 status collapsed
30983
30984 \begin_layout Plain Layout
30985
30986 \change_inserted -970929547 1515111060
30987 NONE
30988 \change_unchanged
30989
30990 \end_layout
30991
30992 \end_inset
30993
30994 , indicating that there is no item tag.
30995  This parameter only makes sense when itemising layouts are used, such as
30996  lists.
30997  
30998 \change_inserted 1075283030 1597699890
30999
31000 \end_layout
31001
31002 \begin_layout Description
31003
31004 \change_inserted 1075283030 1597699890
31005 \begin_inset Flex Code
31006 status collapsed
31007
31008 \begin_layout Plain Layout
31009
31010 \change_inserted 1075283030 1597699890
31011 DocBookItemTagType
31012 \change_unchanged
31013
31014 \end_layout
31015
31016 \end_inset
31017
31018  [
31019 \begin_inset Flex Code
31020 status collapsed
31021
31022 \begin_layout Plain Layout
31023
31024 \change_inserted 1075283030 1597699890
31025 block, paragraph, inline
31026 \change_unchanged
31027
31028 \end_layout
31029
31030 \end_inset
31031
31032 ] The new-line policy for this tag, see Section
31033 \begin_inset space ~
31034 \end_inset
31035
31036
31037 \begin_inset CommandInset ref
31038 LatexCommand ref
31039 reference "subsec:DocBook-New-line-policy"
31040 plural "false"
31041 caps "false"
31042 noprefix "false"
31043
31044 \end_inset
31045
31046  for the details.
31047  
31048 \change_unchanged
31049
31050 \end_layout
31051
31052 \begin_layout Description
31053
31054 \change_inserted -970929547 1515111298
31055 \begin_inset Flex Code
31056 status collapsed
31057
31058 \begin_layout Plain Layout
31059
31060 \change_inserted -970929547 1515111124
31061 DocBookItemWrapperAttr
31062 \change_unchanged
31063
31064 \end_layout
31065
31066 \end_inset
31067
31068  [
31069 \begin_inset Flex Code
31070 status collapsed
31071
31072 \begin_layout Plain Layout
31073
31074 \change_inserted -970929547 1515111124
31075 string
31076 \change_unchanged
31077
31078 \end_layout
31079
31080 \end_inset
31081
31082 ] Specifies attribute information to be output with the item wrapper tag,
31083  replacing 
31084 \begin_inset Quotes eld
31085 \end_inset
31086
31087
31088 \begin_inset Flex Code
31089 status collapsed
31090
31091 \begin_layout Plain Layout
31092
31093 \change_inserted -970929547 1515111150
31094 itemwrapperattr
31095 \change_unchanged
31096
31097 \end_layout
31098
31099 \end_inset
31100
31101
31102 \begin_inset Quotes erd
31103 \end_inset
31104
31105  in the example above.
31106  This information can be used in further processing of the DocBook files.
31107  
31108 \change_unchanged
31109
31110 \end_layout
31111
31112 \begin_layout Description
31113
31114 \change_inserted -970929547 1515111113
31115 \begin_inset Flex Code
31116 status collapsed
31117
31118 \begin_layout Plain Layout
31119
31120 \change_inserted -970929547 1515111073
31121 DocBookItemWrapperTag
31122 \change_unchanged
31123
31124 \end_layout
31125
31126 \end_inset
31127
31128  [
31129 \begin_inset Flex Code
31130 status collapsed
31131
31132 \begin_layout Plain Layout
31133
31134 \change_inserted -970929547 1515111073
31135 string
31136 \change_unchanged
31137
31138 \end_layout
31139
31140 \end_inset
31141
31142 ] The tag to be used for the item wrapper tag within the inset, replacing
31143  
31144 \begin_inset Quotes eld
31145 \end_inset
31146
31147
31148 \begin_inset Flex Code
31149 status collapsed
31150
31151 \begin_layout Plain Layout
31152
31153 \change_inserted -970929547 1515111083
31154 itemwrappertag
31155 \change_unchanged
31156
31157 \end_layout
31158
31159 \end_inset
31160
31161
31162 \begin_inset Quotes erd
31163 \end_inset
31164
31165  in the example above.
31166  The default is 
31167 \begin_inset Flex Code
31168 status collapsed
31169
31170 \begin_layout Plain Layout
31171
31172 \change_inserted -970929547 1515111073
31173 NONE
31174 \change_unchanged
31175
31176 \end_layout
31177
31178 \end_inset
31179
31180 , indicating that there is no item wrapper tag: tag and content are directly
31181  output without it for each itemised element.
31182  This parameter only makes sense when itemising layouts are used, such as
31183  lists.
31184  
31185 \change_inserted 1075283030 1597699897
31186
31187 \end_layout
31188
31189 \begin_layout Description
31190
31191 \change_inserted 1075283030 1597699897
31192 \begin_inset Flex Code
31193 status collapsed
31194
31195 \begin_layout Plain Layout
31196
31197 \change_inserted 1075283030 1597699900
31198 DocBookItemWrapperTagType
31199 \change_unchanged
31200
31201 \end_layout
31202
31203 \end_inset
31204
31205  [
31206 \begin_inset Flex Code
31207 status collapsed
31208
31209 \begin_layout Plain Layout
31210
31211 \change_inserted 1075283030 1597699897
31212 block, paragraph, inline
31213 \change_unchanged
31214
31215 \end_layout
31216
31217 \end_inset
31218
31219 ] The new-line policy for this tag, see Section
31220 \begin_inset space ~
31221 \end_inset
31222
31223
31224 \begin_inset CommandInset ref
31225 LatexCommand ref
31226 reference "subsec:DocBook-New-line-policy"
31227 plural "false"
31228 caps "false"
31229 noprefix "false"
31230
31231 \end_inset
31232
31233  for the details.
31234  
31235 \change_unchanged
31236
31237 \end_layout
31238
31239 \begin_layout Description
31240
31241 \change_inserted -970929547 1515110104
31242 \begin_inset Flex Code
31243 status collapsed
31244
31245 \begin_layout Plain Layout
31246
31247 \change_inserted -970929547 1515110104
31248 DocBookInnerAttr
31249 \change_unchanged
31250
31251 \end_layout
31252
31253 \end_inset
31254
31255  [
31256 \begin_inset Flex Code
31257 status collapsed
31258
31259 \begin_layout Plain Layout
31260
31261 \change_inserted -970929547 1515110104
31262 string
31263 \change_unchanged
31264
31265 \end_layout
31266
31267 \end_inset
31268
31269 ] Specifies attribute information to be output with the inner tag, replacing
31270  
31271 \begin_inset Quotes eld
31272 \end_inset
31273
31274
31275 \begin_inset Flex Code
31276 status collapsed
31277
31278 \begin_layout Plain Layout
31279
31280 \change_inserted -970929547 1515110104
31281 innerattr
31282 \change_unchanged
31283
31284 \end_layout
31285
31286 \end_inset
31287
31288
31289 \begin_inset Quotes erd
31290 \end_inset
31291
31292  in the example above.
31293  This information can be used in further processing of the DocBook files.
31294  
31295 \end_layout
31296
31297 \begin_layout Description
31298
31299 \change_inserted -970929547 1515110906
31300 \begin_inset Flex Code
31301 status collapsed
31302
31303 \begin_layout Plain Layout
31304
31305 \change_inserted -970929547 1515110104
31306 DocBookInnerTag
31307 \change_unchanged
31308
31309 \end_layout
31310
31311 \end_inset
31312
31313  [
31314 \begin_inset Flex Code
31315 status collapsed
31316
31317 \begin_layout Plain Layout
31318
31319 \change_inserted -970929547 1515110104
31320 string
31321 \change_unchanged
31322
31323 \end_layout
31324
31325 \end_inset
31326
31327 ] The tag to be used for the inner tag within the inset, replacing 
31328 \begin_inset Quotes eld
31329 \end_inset
31330
31331
31332 \begin_inset Flex Code
31333 status collapsed
31334
31335 \begin_layout Plain Layout
31336
31337 \change_inserted -970929547 1515110104
31338 innertag
31339 \change_unchanged
31340
31341 \end_layout
31342
31343 \end_inset
31344
31345
31346 \begin_inset Quotes erd
31347 \end_inset
31348
31349  in the example above.
31350  The default is 
31351 \begin_inset Flex Code
31352 status collapsed
31353
31354 \begin_layout Plain Layout
31355
31356 \change_inserted -970929547 1515110791
31357 NONE
31358 \change_unchanged
31359
31360 \end_layout
31361
31362 \end_inset
31363
31364 , indicating that there is no inner tag: content is directly output without
31365  it.
31366 \change_inserted 1075283030 1597699904
31367
31368 \end_layout
31369
31370 \begin_layout Description
31371
31372 \change_inserted 1075283030 1597699904
31373 \begin_inset Flex Code
31374 status collapsed
31375
31376 \begin_layout Plain Layout
31377
31378 \change_inserted 1075283030 1597699904
31379 DocBookInnerTagType
31380 \change_unchanged
31381
31382 \end_layout
31383
31384 \end_inset
31385
31386  [
31387 \begin_inset Flex Code
31388 status collapsed
31389
31390 \begin_layout Plain Layout
31391
31392 \change_inserted 1075283030 1597699904
31393 block, paragraph, inline
31394 \change_unchanged
31395
31396 \end_layout
31397
31398 \end_inset
31399
31400 ] The new-line policy for this tag, see Section
31401 \begin_inset space ~
31402 \end_inset
31403
31404
31405 \begin_inset CommandInset ref
31406 LatexCommand ref
31407 reference "subsec:DocBook-New-line-policy"
31408 plural "false"
31409 caps "false"
31410 noprefix "false"
31411
31412 \end_inset
31413
31414  for the details.
31415  
31416 \change_unchanged
31417
31418 \end_layout
31419
31420 \begin_layout Description
31421
31422 \change_inserted -970929547 1515110753
31423 \begin_inset Flex Code
31424 status collapsed
31425
31426 \begin_layout Plain Layout
31427
31428 \change_inserted -970929547 1515110665
31429 DocBookSectionTag
31430 \change_unchanged
31431
31432 \end_layout
31433
31434 \end_inset
31435
31436  [
31437 \begin_inset Flex Code
31438 status collapsed
31439
31440 \begin_layout Plain Layout
31441
31442 \change_inserted -970929547 1515110661
31443 string
31444 \change_unchanged
31445
31446 \end_layout
31447
31448 \end_inset
31449
31450 ] Specifies the tag that corresponds to this kind of section.
31451  This parameter only makes sense for sectioning elements (part, chapter,
31452  section, etc.).
31453  The default value is 
31454 \begin_inset Flex Code
31455 status collapsed
31456
31457 \begin_layout Plain Layout
31458
31459 \change_inserted -970929547 1515110721
31460 section
31461 \change_unchanged
31462
31463 \end_layout
31464
31465 \end_inset
31466
31467 , and is only overridden when DocBook uses something else for sectioning
31468  (
31469 \change_inserted 1075283030 1597699921
31470 typically, 
31471 \change_inserted -970929547 1515110753
31472 parts and chapters of a book).
31473  
31474 \change_unchanged
31475
31476 \end_layout
31477
31478 \begin_layout Description
31479
31480 \change_inserted -970929547 1515110811
31481 \begin_inset Flex Code
31482 status collapsed
31483
31484 \begin_layout Plain Layout
31485
31486 \change_inserted -970929547 1496612023
31487 DocBookTag
31488 \change_unchanged
31489
31490 \end_layout
31491
31492 \end_inset
31493
31494  [
31495 \begin_inset Flex Code
31496 status collapsed
31497
31498 \begin_layout Plain Layout
31499
31500 \change_inserted -970929547 1496610966
31501 string
31502 \change_unchanged
31503
31504 \end_layout
31505
31506 \end_inset
31507
31508 ] The tag to be used for this inset, replacing 
31509 \begin_inset Quotes eld
31510 \end_inset
31511
31512
31513 \begin_inset Flex Code
31514 status collapsed
31515
31516 \begin_layout Plain Layout
31517
31518 \change_inserted -970929547 1496612033
31519 tag
31520 \change_unchanged
31521
31522 \end_layout
31523
31524 \end_inset
31525
31526
31527 \begin_inset Quotes erd
31528 \end_inset
31529
31530  in the example above.
31531  The default is the name of the float and always needs to be changed, as
31532  DocBook provides no generic inset tag.
31533 \change_inserted 1075283030 1597699924
31534
31535 \end_layout
31536
31537 \begin_layout Description
31538
31539 \change_inserted 1075283030 1597699924
31540 \begin_inset Flex Code
31541 status collapsed
31542
31543 \begin_layout Plain Layout
31544
31545 \change_inserted 1075283030 1597699924
31546 DocBookTagType
31547 \change_unchanged
31548
31549 \end_layout
31550
31551 \end_inset
31552
31553  [
31554 \begin_inset Flex Code
31555 status collapsed
31556
31557 \begin_layout Plain Layout
31558
31559 \change_inserted 1075283030 1597699924
31560 block, paragraph, inline
31561 \change_unchanged
31562
31563 \end_layout
31564
31565 \end_inset
31566
31567 ] The new-line policy for this tag, see Section
31568 \begin_inset space ~
31569 \end_inset
31570
31571
31572 \begin_inset CommandInset ref
31573 LatexCommand ref
31574 reference "subsec:DocBook-New-line-policy"
31575 plural "false"
31576 caps "false"
31577 noprefix "false"
31578
31579 \end_inset
31580
31581  for the details.
31582  
31583 \change_unchanged
31584
31585 \end_layout
31586
31587 \begin_layout Description
31588
31589 \change_inserted -970929547 1515110832
31590 \begin_inset Flex Code
31591 status collapsed
31592
31593 \begin_layout Plain Layout
31594
31595 \change_inserted -970929547 1515110822
31596 DocBookWrapperAttr
31597 \change_unchanged
31598
31599 \end_layout
31600
31601 \end_inset
31602
31603  [
31604 \begin_inset Flex Code
31605 status collapsed
31606
31607 \begin_layout Plain Layout
31608
31609 \change_inserted -970929547 1515110811
31610 string
31611 \change_unchanged
31612
31613 \end_layout
31614
31615 \end_inset
31616
31617 ] Specifies attribute information to be output with the outer 
31618 \change_inserted 34634807 1620057958
31619 wrapper 
31620 \change_inserted -970929547 1515110832
31621 tag, replacing 
31622 \begin_inset Quotes eld
31623 \end_inset
31624
31625
31626 \begin_inset Flex Code
31627 status collapsed
31628
31629 \begin_layout Plain Layout
31630
31631 \change_inserted -970929547 1515110845
31632 wrapperattr
31633 \change_unchanged
31634
31635 \end_layout
31636
31637 \end_inset
31638
31639
31640 \begin_inset Quotes erd
31641 \end_inset
31642
31643  in the example above.
31644  This information can be used in further processing of the DocBook files.
31645  
31646 \end_layout
31647
31648 \begin_layout Description
31649
31650 \change_inserted -970929547 1515110917
31651 \begin_inset Flex Code
31652 status collapsed
31653
31654 \begin_layout Plain Layout
31655
31656 \change_inserted -970929547 1515110826
31657 DocBookWrapperTag
31658 \change_unchanged
31659
31660 \end_layout
31661
31662 \end_inset
31663
31664  [
31665 \begin_inset Flex Code
31666 status collapsed
31667
31668 \begin_layout Plain Layout
31669
31670 \change_inserted -970929547 1515110811
31671 string
31672 \change_unchanged
31673
31674 \end_layout
31675
31676 \end_inset
31677
31678 ] The tag to be used for the wrapper tag around the inset, replacing 
31679 \begin_inset Quotes eld
31680 \end_inset
31681
31682
31683 \begin_inset Flex Code
31684 status collapsed
31685
31686 \begin_layout Plain Layout
31687
31688 \change_inserted -970929547 1515110842
31689 wrappertag
31690 \change_unchanged
31691
31692 \end_layout
31693
31694 \end_inset
31695
31696
31697 \begin_inset Quotes erd
31698 \end_inset
31699
31700  in the example above.
31701  The default is 
31702 \begin_inset Flex Code
31703 status collapsed
31704
31705 \begin_layout Plain Layout
31706
31707 \change_inserted -970929547 1515110811
31708 NONE
31709 \change_unchanged
31710
31711 \end_layout
31712
31713 \end_inset
31714
31715 , indicating that there is no wrapper tag: tag and content are directly
31716  output without it.
31717 \change_inserted 1075283030 1597699929
31718
31719 \end_layout
31720
31721 \begin_layout Description
31722
31723 \change_inserted 1075283030 1597699929
31724 \begin_inset Flex Code
31725 status collapsed
31726
31727 \begin_layout Plain Layout
31728
31729 \change_inserted 1075283030 1597699932
31730 DocBookWrapperTagType
31731 \change_unchanged
31732
31733 \end_layout
31734
31735 \end_inset
31736
31737  [
31738 \begin_inset Flex Code
31739 status collapsed
31740
31741 \begin_layout Plain Layout
31742
31743 \change_inserted 1075283030 1597699929
31744 block, paragraph, inline
31745 \change_unchanged
31746
31747 \end_layout
31748
31749 \end_inset
31750
31751 ] The new-line policy for this tag, see Section
31752 \begin_inset space ~
31753 \end_inset
31754
31755
31756 \begin_inset CommandInset ref
31757 LatexCommand ref
31758 reference "subsec:DocBook-New-line-policy"
31759 plural "false"
31760 caps "false"
31761 noprefix "false"
31762
31763 \end_inset
31764
31765  for the details.
31766  
31767 \change_unchanged
31768
31769 \end_layout
31770
31771 \begin_layout Subsection
31772
31773 \change_inserted -970929547 1515110040
31774 Float DocBook
31775 \end_layout
31776
31777 \begin_layout Standard
31778
31779 \change_inserted -970929547 1496611700
31780 The DocBook output for floats too can be controlled by layout information.
31781  The output has the following form:
31782 \end_layout
31783
31784 \begin_layout LyX-Code
31785
31786 \change_inserted -970929547 1515109700
31787 <tag attr>
31788 \end_layout
31789
31790 \begin_layout LyX-Code
31791
31792 \change_inserted -970929547 1515110138
31793   Contents of the float as DocBook.
31794 \end_layout
31795
31796 \begin_layout LyX-Code
31797
31798 \change_inserted -970929547 1496610966
31799 </tag>
31800 \end_layout
31801
31802 \begin_layout Standard
31803
31804 \change_inserted -970929547 1496611715
31805 The caption, if there is one, is a separate inset and will be output as
31806  a title.
31807  
31808 \end_layout
31809
31810 \begin_layout Description
31811
31812 \change_inserted -970929547 1515110033
31813 \begin_inset Flex Code
31814 status collapsed
31815
31816 \begin_layout Plain Layout
31817
31818 \change_inserted -970929547 1515109702
31819 DocBookAttr
31820 \change_unchanged
31821
31822 \end_layout
31823
31824 \end_inset
31825
31826  [
31827 \begin_inset Flex Code
31828 status collapsed
31829
31830 \begin_layout Plain Layout
31831
31832 \change_inserted -970929547 1496610966
31833 string
31834 \change_unchanged
31835
31836 \end_layout
31837
31838 \end_inset
31839
31840 ] Specifies attribute information to be output with the main tag, replacing
31841  
31842 \begin_inset Quotes eld
31843 \end_inset
31844
31845
31846 \begin_inset Flex Code
31847 status collapsed
31848
31849 \begin_layout Plain Layout
31850
31851 \change_inserted -970929547 1515110035
31852 attr
31853 \change_unchanged
31854
31855 \end_layout
31856
31857 \end_inset
31858
31859
31860 \begin_inset Quotes erd
31861 \end_inset
31862
31863  in the example above.
31864  This information can be used in further processing of the DocBook files.
31865  
31866 \end_layout
31867
31868 \begin_layout Description
31869
31870 \change_inserted -970929547 1515110157
31871 \begin_inset Flex Code
31872 status collapsed
31873
31874 \begin_layout Plain Layout
31875
31876 \change_inserted -970929547 1496611782
31877 DocBookTag
31878 \change_unchanged
31879
31880 \end_layout
31881
31882 \end_inset
31883
31884  [
31885 \begin_inset Flex Code
31886 status collapsed
31887
31888 \begin_layout Plain Layout
31889
31890 \change_inserted -970929547 1496610966
31891 string
31892 \change_unchanged
31893
31894 \end_layout
31895
31896 \end_inset
31897
31898 ] The tag to be used for this float, replacing 
31899 \begin_inset Quotes eld
31900 \end_inset
31901
31902
31903 \begin_inset Flex Code
31904 status collapsed
31905
31906 \begin_layout Plain Layout
31907
31908 \change_inserted -970929547 1496610966
31909 tag
31910 \change_unchanged
31911
31912 \end_layout
31913
31914 \end_inset
31915
31916
31917 \begin_inset Quotes erd
31918 \end_inset
31919
31920  in the example above.
31921  The default is the name of the float and always needs to be changed, as
31922  DocBook provides no generic float tag.
31923 \end_layout
31924
31925 \begin_layout Subsection
31926
31927 \change_inserted -970929547 1515110157
31928 Bibliography formatting
31929 \end_layout
31930
31931 \begin_layout Standard
31932
31933 \change_deleted 1075283030 1597699984
31934 The 
31935 \change_inserted 1075283030 1597699985
31936 Included 
31937 \change_inserted -970929547 1515110187
31938 bibliograph
31939 \change_deleted 1075283030 1597699987
31940 y
31941 \change_inserted 1075283030 1597699987
31942 ies
31943 \change_inserted -970929547 1515110187
31944  cannot be formatted: all fields are always output in the database-like
31945  DocBook format (equivalent to a BibTeX file)
31946 \change_inserted 1075283030 1597700117
31947 , using the 
31948 \begin_inset Flex Code
31949 status collapsed
31950
31951 \begin_layout Plain Layout
31952
31953 \change_inserted 1075283030 1597700120
31954 biblioentry
31955 \change_unchanged
31956
31957 \end_layout
31958
31959 \end_inset
31960
31961  tag
31962 \change_inserted -970929547 1515110187
31963 .
31964 \change_inserted 1075283030 1597700092
31965
31966 \end_layout
31967
31968 \begin_layout Standard
31969
31970 \change_inserted 1075283030 1597700112
31971 When the bibliographic entries are manually inserted into the 
31972 \change_deleted 34634807 1620057319
31973 LyX
31974 \change_inserted 34634807 1620057319
31975 \SpecialChar LyX
31976
31977 \change_inserted 1075283030 1597700112
31978  document as Bibliography Items, the user deals with formatting 
31979 \change_unchanged
31980 them
31981 \change_inserted 1075283030 1597700112
31982 self: there is no attempt of parsing what the user wrote, the string is
31983  directly used (with the 
31984 \begin_inset Flex Code
31985 status collapsed
31986
31987 \begin_layout Plain Layout
31988
31989 \change_inserted 1075283030 1597700076
31990 bibliomixed
31991 \change_unchanged
31992
31993 \end_layout
31994
31995 \end_inset
31996
31997  tag).
31998  
31999 \change_unchanged
32000
32001 \end_layout
32002
32003 \begin_layout Chapter
32004 Including External Material
32005 \begin_inset CommandInset label
32006 LatexCommand label
32007 name "chap:Including-External-Material"
32008
32009 \end_inset
32010
32011
32012 \end_layout
32013
32014 \begin_layout Standard
32015 \begin_inset Box Shadowbox
32016 position "t"
32017 hor_pos "c"
32018 has_inner_box 1
32019 inner_pos "t"
32020 use_parbox 0
32021 use_makebox 0
32022 width "100col%"
32023 special "none"
32024 height "1in"
32025 height_special "totalheight"
32026 thickness "0.4pt"
32027 separation "3pt"
32028 shadowsize "4pt"
32029 framecolor "black"
32030 backgroundcolor "none"
32031 status open
32032
32033 \begin_layout Plain Layout
32034 WARNING: This portion of the documentation has not been updated for some
32035  time.
32036  We certainly hope that it is still accurate, but there are no guarantees.
32037 \end_layout
32038
32039 \end_inset
32040
32041
32042 \end_layout
32043
32044 \begin_layout Standard
32045 The use of material from sources external to \SpecialChar LyX
32046  is covered in detail in the
32047  
32048 \emph on
32049 Embedded Objects
32050 \emph default
32051  manual.
32052  This part of the manual covers what needs to happen behind the scenes for
32053  new sorts of material to be included.
32054 \end_layout
32055
32056 \begin_layout Section
32057 How does it work?
32058 \end_layout
32059
32060 \begin_layout Standard
32061 The external material feature is based on the concept of a 
32062 \emph on
32063 template
32064 \emph default
32065 .
32066  A template is a specification of how \SpecialChar LyX
32067  should interface with a certain kind
32068  of material.
32069  As bundled, \SpecialChar LyX
32070  comes with predefined templates for Xfig figures, various
32071  raster format images, chess diagrams, and LilyPond music notation.
32072  You can check the actual list by using the menu 
32073 \begin_inset Flex Noun
32074 status collapsed
32075
32076 \begin_layout Plain Layout
32077 Insert\SpecialChar menuseparator
32078 File\SpecialChar menuseparator
32079 External Material
32080 \end_layout
32081
32082 \end_inset
32083
32084 .
32085  Furthermore, it is possible to roll your own template to support a specific
32086  kind of material.
32087  Later we'll describe in more detail what is involved, and hopefully you
32088  will submit all the templates you create so we can include them in a later
32089  \SpecialChar LyX
32090  version.
32091 \end_layout
32092
32093 \begin_layout Standard
32094 Another basic idea of the external material feature is to distinguish between
32095  the original file that serves as a base for final material and the produced
32096  file that is included in your exported or printed document.
32097  For example, consider the case of a figure produced with 
32098 \begin_inset Flex Code
32099 status collapsed
32100
32101 \begin_layout Plain Layout
32102 Xfig
32103 \end_layout
32104
32105 \end_inset
32106
32107 .
32108  The Xfig application itself works on an original file with the 
32109 \begin_inset Flex Code
32110 status collapsed
32111
32112 \begin_layout Plain Layout
32113 .fig
32114 \end_layout
32115
32116 \end_inset
32117
32118  extension.
32119  Within Xfig, you create and change your figure, and when you are done,
32120  you save the 
32121 \begin_inset Flex Code
32122 status collapsed
32123
32124 \begin_layout Plain Layout
32125 fig
32126 \end_layout
32127
32128 \end_inset
32129
32130 -file.
32131  When you want to include the figure in your document, you invoke 
32132 \begin_inset Flex Code
32133 status collapsed
32134
32135 \begin_layout Plain Layout
32136 transfig
32137 \end_layout
32138
32139 \end_inset
32140
32141  in order to create a PostScript file that can readily be included in your
32142  \SpecialChar LaTeX
32143  file.
32144  In this case, the 
32145 \begin_inset Flex Code
32146 status collapsed
32147
32148 \begin_layout Plain Layout
32149 .fig
32150 \end_layout
32151
32152 \end_inset
32153
32154  file is the original file, and the PostScript file is the produced file.
32155 \end_layout
32156
32157 \begin_layout Standard
32158 This distinction is important in order to allow updating of the material
32159  while you are in the process of writing the document.
32160  Furthermore, it provides us with the flexibility that is needed to support
32161  multiple export formats.
32162  For instance, in the case of a plain text file, it is not exactly an award-winn
32163 ing idea to include the figure as raw PostScript.
32164  Instead, you would either prefer to just include a reference to the figure
32165  or try to invoke some graphics to ASCII converter to make the final result
32166  look similar to the real graphics.
32167  The external material management allows you to do this, because it is parametri
32168 zed on the different export formats that \SpecialChar LyX
32169  supports.
32170 \end_layout
32171
32172 \begin_layout Standard
32173 Besides supporting the production of different products according to the
32174  exported format, it supports tight integration with editing and viewing
32175  applications.
32176  In the case of an Xfig figure, you are able to invoke Xfig on the original
32177  file with a single click from within the external material dialog in \SpecialChar LyX
32178 ,
32179  and also preview the produced PostScript file with Ghostview with another
32180  click.
32181  No more fiddling around with the command line and/or file browsers to locate
32182  and manipulate the original or produced files.
32183  In this way, you are finally able to take full advantage of the many different
32184  applications that are relevant to use when you write your documents, and
32185  ultimately be more productive.
32186 \end_layout
32187
32188 \begin_layout Section
32189 The external template configuration files
32190 \end_layout
32191
32192 \begin_layout Standard
32193 It is relatively easy to add custom external template definitions to \SpecialChar LyX
32194 .
32195  However, be aware that doing this in an careless manner most probably 
32196 \emph on
32197 will
32198 \emph default
32199  introduce an easily exploitable security hole.
32200  So before you do this, please read the discussion about security in 
32201 \begin_inset CommandInset ref
32202 LatexCommand ref
32203 reference "sec:Security-discussion"
32204
32205 \end_inset
32206
32207 .
32208 \end_layout
32209
32210 \begin_layout Standard
32211 Having said that, we encourage you to submit any interesting templates that
32212  you create.
32213  
32214 \end_layout
32215
32216 \begin_layout Standard
32217 The external templates are defined in the 
32218 \begin_inset Flex Code
32219 status collapsed
32220
32221 \begin_layout Plain Layout
32222 *.xtemplate
32223 \end_layout
32224
32225 \end_inset
32226
32227  files that are stored in the 
32228 \begin_inset Flex Code
32229 status collapsed
32230
32231 \begin_layout Plain Layout
32232 LyXDir/lib/xtemplates/
32233 \end_layout
32234
32235 \end_inset
32236
32237  directory.
32238  Each template is defined in a file of its own.
32239  You can place your own templates in 
32240 \begin_inset Flex Code
32241 status collapsed
32242
32243 \begin_layout Plain Layout
32244 UserDir/xtemplates/
32245 \end_layout
32246
32247 \end_inset
32248
32249  or copy existing templates to that directory in order to modify them.
32250 \end_layout
32251
32252 \begin_layout Standard
32253 A typical template looks like this:
32254 \end_layout
32255
32256 \begin_layout LyX-Code
32257 Template XFig
32258 \end_layout
32259
32260 \begin_layout LyX-Code
32261 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
32262 \end_layout
32263
32264 \begin_layout LyX-Code
32265 HelpText
32266 \end_layout
32267
32268 \begin_layout LyX-Code
32269 An XFig figure.
32270 \end_layout
32271
32272 \begin_layout LyX-Code
32273 HelpTextEnd
32274 \end_layout
32275
32276 \begin_layout LyX-Code
32277 InputFormat fig
32278 \end_layout
32279
32280 \begin_layout LyX-Code
32281 FileFilter "*.fig"
32282 \end_layout
32283
32284 \begin_layout LyX-Code
32285 AutomaticProduction true
32286 \end_layout
32287
32288 \begin_layout LyX-Code
32289 Transform Rotate
32290 \end_layout
32291
32292 \begin_layout LyX-Code
32293 Transform Resize
32294 \end_layout
32295
32296 \begin_layout LyX-Code
32297 Format LaTeX
32298 \end_layout
32299
32300 \begin_layout LyX-Code
32301 TransformCommand Rotate RotationLatexCommand
32302 \end_layout
32303
32304 \begin_layout LyX-Code
32305 TransformCommand Resize ResizeLatexCommand
32306 \end_layout
32307
32308 \begin_layout LyX-Code
32309 Product "$$RotateFront$$ResizeFront
32310 \end_layout
32311
32312 \begin_layout LyX-Code
32313          
32314 \backslash
32315
32316 \backslash
32317 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
32318 \end_layout
32319
32320 \begin_layout LyX-Code
32321          $$ResizeBack$$RotateBack"
32322 \end_layout
32323
32324 \begin_layout LyX-Code
32325 UpdateFormat pstex
32326 \end_layout
32327
32328 \begin_layout LyX-Code
32329 UpdateResult "$$AbsPath$$Basename.pstex_t"
32330 \end_layout
32331
32332 \begin_layout LyX-Code
32333 Requirement "graphicx"
32334 \end_layout
32335
32336 \begin_layout LyX-Code
32337 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
32338 \end_layout
32339
32340 \begin_layout LyX-Code
32341 ReferencedFile latex "$$AbsPath$$Basename.eps"
32342 \end_layout
32343
32344 \begin_layout LyX-Code
32345 ReferencedFile dvi "$$AbsPath$$Basename.eps"
32346 \end_layout
32347
32348 \begin_layout LyX-Code
32349 FormatEnd
32350 \end_layout
32351
32352 \begin_layout LyX-Code
32353 Format PDFLaTeX
32354 \end_layout
32355
32356 \begin_layout LyX-Code
32357 TransformCommand Rotate RotationLatexCommand
32358 \end_layout
32359
32360 \begin_layout LyX-Code
32361 TransformCommand Resize ResizeLatexCommand
32362 \end_layout
32363
32364 \begin_layout LyX-Code
32365 Product "$$RotateFront$$ResizeFront
32366 \end_layout
32367
32368 \begin_layout LyX-Code
32369          
32370 \backslash
32371
32372 \backslash
32373 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
32374 \end_layout
32375
32376 \begin_layout LyX-Code
32377          $$ResizeBack$$RotateBack"
32378 \end_layout
32379
32380 \begin_layout LyX-Code
32381 UpdateFormat pdftex
32382 \end_layout
32383
32384 \begin_layout LyX-Code
32385 UpdateResult "$$AbsPath$$Basename.pdftex_t"
32386 \end_layout
32387
32388 \begin_layout LyX-Code
32389 Requirement "graphicx"
32390 \end_layout
32391
32392 \begin_layout LyX-Code
32393 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
32394 \end_layout
32395
32396 \begin_layout LyX-Code
32397 ReferencedFile latex "$$AbsPath$$Basename.pdf"
32398 \end_layout
32399
32400 \begin_layout LyX-Code
32401 FormatEnd
32402 \end_layout
32403
32404 \begin_layout LyX-Code
32405 Format Ascii
32406 \end_layout
32407
32408 \begin_layout LyX-Code
32409 Product "[XFig: $$FName]"
32410 \end_layout
32411
32412 \begin_layout LyX-Code
32413 FormatEnd
32414 \end_layout
32415
32416 \begin_layout LyX-Code
32417 Format DocBook
32418 \end_layout
32419
32420 \begin_layout LyX-Code
32421 Product "<graphic fileref=
32422 \backslash
32423 "$$AbsOrRelPathMaster$$Basename.eps
32424 \backslash
32425 ">
32426 \end_layout
32427
32428 \begin_layout LyX-Code
32429          </graphic>"
32430 \end_layout
32431
32432 \begin_layout LyX-Code
32433 UpdateFormat eps
32434 \end_layout
32435
32436 \begin_layout LyX-Code
32437 UpdateResult "$$AbsPath$$Basename.eps"
32438 \end_layout
32439
32440 \begin_layout LyX-Code
32441 ReferencedFile docbook "$$AbsPath$$Basename.eps"
32442 \end_layout
32443
32444 \begin_layout LyX-Code
32445 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
32446 \end_layout
32447
32448 \begin_layout LyX-Code
32449 FormatEnd
32450 \end_layout
32451
32452 \begin_layout LyX-Code
32453 TemplateEnd
32454 \end_layout
32455
32456 \begin_layout Standard
32457 As you can see, the template is enclosed in 
32458 \begin_inset Flex Code
32459 status collapsed
32460
32461 \begin_layout Plain Layout
32462 Template
32463 \end_layout
32464
32465 \end_inset
32466
32467  \SpecialChar ldots
32468  
32469 \begin_inset Flex Code
32470 status collapsed
32471
32472 \begin_layout Plain Layout
32473 TemplateEnd
32474 \end_layout
32475
32476 \end_inset
32477
32478 .
32479  It contains a header specifying some general settings and, for each supported
32480  primary document file format, a section 
32481 \begin_inset Flex Code
32482 status collapsed
32483
32484 \begin_layout Plain Layout
32485 Format
32486 \end_layout
32487
32488 \end_inset
32489
32490  \SpecialChar ldots
32491  
32492 \begin_inset Flex Code
32493 status collapsed
32494
32495 \begin_layout Plain Layout
32496 FormatEnd
32497 \end_layout
32498
32499 \end_inset
32500
32501 .
32502 \end_layout
32503
32504 \begin_layout Subsection
32505 The template header
32506 \end_layout
32507
32508 \begin_layout Description
32509 \begin_inset Flex Code
32510 status collapsed
32511
32512 \begin_layout Plain Layout
32513 AutomaticProduction
32514 \begin_inset space ~
32515 \end_inset
32516
32517 true|false
32518 \end_layout
32519
32520 \end_inset
32521
32522  Whether the file represented by the template must be generated by \SpecialChar LyX
32523 .
32524  This command must occur exactly once.
32525 \end_layout
32526
32527 \begin_layout Description
32528 \begin_inset Flex Code
32529 status collapsed
32530
32531 \begin_layout Plain Layout
32532 FileFilter
32533 \begin_inset space ~
32534 \end_inset
32535
32536 <pattern>
32537 \end_layout
32538
32539 \end_inset
32540
32541  A glob pattern that is used in the file dialog to filter out the desired
32542  files.
32543  If there is more than one possible file extension (e.
32544 \begin_inset space \thinspace{}
32545 \end_inset
32546
32547 g.
32548 \begin_inset space \space{}
32549 \end_inset
32550
32551 tgif has 
32552 \begin_inset Flex Code
32553 status collapsed
32554
32555 \begin_layout Plain Layout
32556 .obj
32557 \end_layout
32558
32559 \end_inset
32560
32561  and 
32562 \begin_inset Flex Code
32563 status collapsed
32564
32565 \begin_layout Plain Layout
32566 .tgo
32567 \end_layout
32568
32569 \end_inset
32570
32571 ), use something like 
32572 \begin_inset Flex Code
32573 status collapsed
32574
32575 \begin_layout Plain Layout
32576 "*.{obj,tgo}"
32577 \end_layout
32578
32579 \end_inset
32580
32581 .
32582  This command must occur exactly once.
32583 \end_layout
32584
32585 \begin_layout Description
32586 \begin_inset Flex Code
32587 status collapsed
32588
32589 \begin_layout Plain Layout
32590 GuiName
32591 \begin_inset space ~
32592 \end_inset
32593
32594 <guiname>
32595 \end_layout
32596
32597 \end_inset
32598
32599  The text that is displayed on the button.
32600  This command must occur exactly once.
32601 \end_layout
32602
32603 \begin_layout Description
32604 \begin_inset Flex Code
32605 status collapsed
32606
32607 \begin_layout Plain Layout
32608 HelpText
32609 \begin_inset space ~
32610 \end_inset
32611
32612 <text>
32613 \begin_inset space ~
32614 \end_inset
32615
32616 HelpTextEnd
32617 \end_layout
32618
32619 \end_inset
32620
32621  The help text that is used in the External dialog.
32622  Provide enough information to explain to the user just what the template
32623  can provide him with.
32624  This command must occur exactly once.
32625 \end_layout
32626
32627 \begin_layout Description
32628 \begin_inset Flex Code
32629 status collapsed
32630
32631 \begin_layout Plain Layout
32632 InputFormat
32633 \begin_inset space ~
32634 \end_inset
32635
32636 <format>
32637 \end_layout
32638
32639 \end_inset
32640
32641  The file format of the original file.
32642  This must be the name of a format that is known to \SpecialChar LyX
32643  (see 
32644 \begin_inset CommandInset ref
32645 LatexCommand ref
32646 reference "sec:Formats"
32647
32648 \end_inset
32649
32650 ).
32651  Use 
32652 \begin_inset Quotes eld
32653 \end_inset
32654
32655
32656 \begin_inset Flex Code
32657 status collapsed
32658
32659 \begin_layout Plain Layout
32660 *
32661 \end_layout
32662
32663 \end_inset
32664
32665
32666 \begin_inset Quotes erd
32667 \end_inset
32668
32669  if the template can handle original files of more than one format.
32670  \SpecialChar LyX
32671  will attempt to interrogate the file itself in order to deduce its format
32672  in this case.
32673  This command must occur exactly once.
32674 \end_layout
32675
32676 \begin_layout Description
32677 \begin_inset Flex Code
32678 status collapsed
32679
32680 \begin_layout Plain Layout
32681 Template
32682 \begin_inset space ~
32683 \end_inset
32684
32685 <id>
32686 \end_layout
32687
32688 \end_inset
32689
32690  A unique name for the template.
32691  It must not contain substitution macros (see below).
32692 \end_layout
32693
32694 \begin_layout Description
32695 \begin_inset Flex Code
32696 status collapsed
32697
32698 \begin_layout Plain Layout
32699 Transform
32700 \begin_inset space ~
32701 \end_inset
32702
32703 Rotate|Resize|Clip|Extra
32704 \end_layout
32705
32706 \end_inset
32707
32708  This command specifies which transformations are supported by this template.
32709  It may occur zero or more times.
32710  This command enables the corresponding tabs in the external dialog.
32711  Each 
32712 \begin_inset Flex Code
32713 status collapsed
32714
32715 \begin_layout Plain Layout
32716 Transform
32717 \end_layout
32718
32719 \end_inset
32720
32721  command must have either a corresponding 
32722 \begin_inset Flex Code
32723 status collapsed
32724
32725 \begin_layout Plain Layout
32726 TransformCommand
32727 \end_layout
32728
32729 \end_inset
32730
32731  or a 
32732 \begin_inset Flex Code
32733 status collapsed
32734
32735 \begin_layout Plain Layout
32736 TransformOption
32737 \end_layout
32738
32739 \end_inset
32740
32741  command in the 
32742 \begin_inset Flex Code
32743 status collapsed
32744
32745 \begin_layout Plain Layout
32746 Format
32747 \end_layout
32748
32749 \end_inset
32750
32751  section.
32752  Otherwise the transformation will not be supported by that format.
32753 \end_layout
32754
32755 \begin_layout Subsection
32756 The Format section
32757 \end_layout
32758
32759 \begin_layout Description
32760 \begin_inset Flex Code
32761 status collapsed
32762
32763 \begin_layout Plain Layout
32764 Format
32765 \begin_inset space ~
32766 \end_inset
32767
32768 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
32769 \end_layout
32770
32771 \end_inset
32772
32773  The primary document file format that this format definition is for.
32774  Not every template has a sensible representation in all document file formats.
32775  Please define nevertheless a 
32776 \begin_inset Flex Code
32777 status collapsed
32778
32779 \begin_layout Plain Layout
32780 Format
32781 \end_layout
32782
32783 \end_inset
32784
32785  section for all templates.
32786  Use a dummy text when no representation is available.
32787  Then you can at least see a reference to the external material in the exported
32788  document.
32789 \end_layout
32790
32791 \begin_layout Description
32792 \begin_inset Flex Code
32793 status collapsed
32794
32795 \begin_layout Plain Layout
32796 Option
32797 \begin_inset space ~
32798 \end_inset
32799
32800 <name>
32801 \begin_inset space ~
32802 \end_inset
32803
32804 <value>
32805 \end_layout
32806
32807 \end_inset
32808
32809  This command defines an additional macro 
32810 \begin_inset Flex Code
32811 status collapsed
32812
32813 \begin_layout Plain Layout
32814 $$<name>
32815 \end_layout
32816
32817 \end_inset
32818
32819  for substitution in 
32820 \begin_inset Flex Code
32821 status collapsed
32822
32823 \begin_layout Plain Layout
32824 Product
32825 \end_layout
32826
32827 \end_inset
32828
32829 .
32830  
32831 \begin_inset Flex Code
32832 status collapsed
32833
32834 \begin_layout Plain Layout
32835 <value>
32836 \end_layout
32837
32838 \end_inset
32839
32840  itself may contain substitution macros.
32841  The advantage over using 
32842 \begin_inset Flex Code
32843 status collapsed
32844
32845 \begin_layout Plain Layout
32846 <value>
32847 \end_layout
32848
32849 \end_inset
32850
32851  directly in 
32852 \begin_inset Flex Code
32853 status collapsed
32854
32855 \begin_layout Plain Layout
32856 Product
32857 \end_layout
32858
32859 \end_inset
32860
32861  is that the substituted value of 
32862 \begin_inset Flex Code
32863 status collapsed
32864
32865 \begin_layout Plain Layout
32866 $$<name>
32867 \end_layout
32868
32869 \end_inset
32870
32871  is sanitized so that it is a valid optional argument in the document format.
32872  This command may occur zero or more times.
32873 \end_layout
32874
32875 \begin_layout Description
32876 \begin_inset Flex Code
32877 status collapsed
32878
32879 \begin_layout Plain Layout
32880 Product
32881 \begin_inset space ~
32882 \end_inset
32883
32884 <text>
32885 \end_layout
32886
32887 \end_inset
32888
32889  The text that is inserted in the exported document.
32890  This is actually the most important command and can be quite complex.
32891  This command must occur exactly once.
32892 \end_layout
32893
32894 \begin_layout Description
32895 \begin_inset Flex Code
32896 status collapsed
32897
32898 \begin_layout Plain Layout
32899 Preamble
32900 \begin_inset space ~
32901 \end_inset
32902
32903 <name>
32904 \end_layout
32905
32906 \end_inset
32907
32908  This command specifies a preamble snippet that will be included in the
32909  \SpecialChar LaTeX
32910  preamble.
32911  It has to be defined using 
32912 \begin_inset Flex Code
32913 status collapsed
32914
32915 \begin_layout Plain Layout
32916 PreambleDef
32917 \end_layout
32918
32919 \end_inset
32920
32921  \SpecialChar ldots
32922  
32923 \begin_inset Flex Code
32924 status collapsed
32925
32926 \begin_layout Plain Layout
32927 PreambleDefEnd
32928 \end_layout
32929
32930 \end_inset
32931
32932 .
32933  This command may occur zero or more times.
32934 \end_layout
32935
32936 \begin_layout Description
32937 \begin_inset Flex Code
32938 status collapsed
32939
32940 \begin_layout Plain Layout
32941 ReferencedFile
32942 \begin_inset space ~
32943 \end_inset
32944
32945 <format>
32946 \begin_inset space ~
32947 \end_inset
32948
32949 <filename>
32950 \end_layout
32951
32952 \end_inset
32953
32954  This command denotes files that are created by the conversion process and
32955  are needed for a particular export format.
32956  If the filename is relative, it is interpreted relative to the master document.
32957  This command may be given zero or more times.
32958 \end_layout
32959
32960 \begin_layout Description
32961 \begin_inset Flex Code
32962 status collapsed
32963
32964 \begin_layout Plain Layout
32965 Requirement
32966 \begin_inset space ~
32967 \end_inset
32968
32969 <package>
32970 \end_layout
32971
32972 \end_inset
32973
32974  The name of a required \SpecialChar LaTeX
32975  package.
32976  The package is included via 
32977 \begin_inset Flex Code
32978 status collapsed
32979
32980 \begin_layout Plain Layout
32981
32982 \backslash
32983 usepackage{}
32984 \end_layout
32985
32986 \end_inset
32987
32988  in the \SpecialChar LaTeX
32989  preamble.
32990  This command may occur zero or more times.
32991 \end_layout
32992
32993 \begin_layout Description
32994 \begin_inset Flex Code
32995 status collapsed
32996
32997 \begin_layout Plain Layout
32998 TransformCommand
32999 \begin_inset space ~
33000 \end_inset
33001
33002 Rotate
33003 \begin_inset space ~
33004 \end_inset
33005
33006 RotationLatexCommand
33007 \end_layout
33008
33009 \end_inset
33010
33011  This command specifies that the built in \SpecialChar LaTeX
33012  command should be used for rotation.
33013  This command may occur once or not at all.
33014 \end_layout
33015
33016 \begin_layout Description
33017 \begin_inset Flex Code
33018 status collapsed
33019
33020 \begin_layout Plain Layout
33021 TransformCommand
33022 \begin_inset space ~
33023 \end_inset
33024
33025 Resize
33026 \begin_inset space ~
33027 \end_inset
33028
33029 ResizeLatexCommand
33030 \end_layout
33031
33032 \end_inset
33033
33034  This command specifies that the built in \SpecialChar LaTeX
33035  command should be used for resizing.
33036  This command may occur once or not at all.
33037 \end_layout
33038
33039 \begin_layout Description
33040 \begin_inset Flex Code
33041 status collapsed
33042
33043 \begin_layout Plain Layout
33044 TransformOption
33045 \begin_inset space ~
33046 \end_inset
33047
33048 Rotate
33049 \begin_inset space ~
33050 \end_inset
33051
33052 RotationLatexOption
33053 \end_layout
33054
33055 \end_inset
33056
33057  This command specifies that rotation is done via an optional argument.
33058  This command may occur once or not at all.
33059 \end_layout
33060
33061 \begin_layout Description
33062 \begin_inset Flex Code
33063 status collapsed
33064
33065 \begin_layout Plain Layout
33066 TransformOption
33067 \begin_inset space ~
33068 \end_inset
33069
33070 Resize
33071 \begin_inset space ~
33072 \end_inset
33073
33074 ResizeLatexOption
33075 \end_layout
33076
33077 \end_inset
33078
33079  This command specifies that resizing is done via an optional argument.
33080  This command may occur once or not at all.
33081 \end_layout
33082
33083 \begin_layout Description
33084 \begin_inset Flex Code
33085 status collapsed
33086
33087 \begin_layout Plain Layout
33088 TransformOption
33089 \begin_inset space ~
33090 \end_inset
33091
33092 Clip
33093 \begin_inset space ~
33094 \end_inset
33095
33096 ClipLatexOption
33097 \end_layout
33098
33099 \end_inset
33100
33101  This command specifies that clipping is done via an optional argument.
33102  This command may occur once or not at all.
33103 \end_layout
33104
33105 \begin_layout Description
33106 \begin_inset Flex Code
33107 status collapsed
33108
33109 \begin_layout Plain Layout
33110 TransformOption
33111 \begin_inset space ~
33112 \end_inset
33113
33114 Extra
33115 \begin_inset space ~
33116 \end_inset
33117
33118 ExtraLatexOption
33119 \end_layout
33120
33121 \end_inset
33122
33123  This command specifies that an extra optional argument is used.
33124  This command may occur once or not at all.
33125 \end_layout
33126
33127 \begin_layout Description
33128 \begin_inset Flex Code
33129 status collapsed
33130
33131 \begin_layout Plain Layout
33132 UpdateFormat
33133 \begin_inset space ~
33134 \end_inset
33135
33136 <format>
33137 \end_layout
33138
33139 \end_inset
33140
33141  The file format of the converted file.
33142  This must be the name of a format that is known to \SpecialChar LyX
33143  (see the 
33144 \begin_inset Flex Noun
33145 status collapsed
33146
33147 \begin_layout Plain Layout
33148 Tools\SpecialChar menuseparator
33149 Preferences\SpecialChar menuseparator
33150 File Handling\SpecialChar menuseparator
33151 File Format
33152 \end_layout
33153
33154 \end_inset
33155
33156  dialog).
33157  This command must occur exactly once.
33158  If the resulting file format is PDF, you need to specify the format 
33159 \begin_inset Flex Code
33160 status collapsed
33161
33162 \begin_layout Plain Layout
33163 pdf6
33164 \end_layout
33165
33166 \end_inset
33167
33168 .
33169  This is the PDF format used for including graphics.
33170  The other defined PDF formats are for document export.
33171 \end_layout
33172
33173 \begin_layout Description
33174 \begin_inset Flex Code
33175 status collapsed
33176
33177 \begin_layout Plain Layout
33178 UpdateResult
33179 \begin_inset space ~
33180 \end_inset
33181
33182 <filename>
33183 \end_layout
33184
33185 \end_inset
33186
33187  The file name of the converted file.
33188  The file name must be absolute.
33189  This command must occur exactly once.
33190 \end_layout
33191
33192 \begin_layout Subsection
33193 Preamble definitions
33194 \end_layout
33195
33196 \begin_layout Standard
33197 The external template configuration file may contain additional preamble
33198  definitions enclosed by 
33199 \begin_inset Flex Code
33200 status collapsed
33201
33202 \begin_layout Plain Layout
33203 PreambleDef
33204 \end_layout
33205
33206 \end_inset
33207
33208  \SpecialChar ldots
33209  
33210 \begin_inset Flex Code
33211 status collapsed
33212
33213 \begin_layout Plain Layout
33214 PreambleDefEnd
33215 \end_layout
33216
33217 \end_inset
33218
33219 .
33220  They can be used by the templates in the 
33221 \begin_inset Flex Code
33222 status collapsed
33223
33224 \begin_layout Plain Layout
33225 Format
33226 \end_layout
33227
33228 \end_inset
33229
33230  section.
33231 \end_layout
33232
33233 \begin_layout Section
33234 The substitution mechanism
33235 \end_layout
33236
33237 \begin_layout Standard
33238 When the external material facility invokes an external program, it is done
33239  on the basis of a command defined in the template configuration file.
33240  These commands can contain various macros that are expanded before execution.
33241  Execution always take place in the directory of the containing document.
33242 \end_layout
33243
33244 \begin_layout Standard
33245 Also, whenever external material is to be displayed, the name will be produced
33246  by the substitution mechanism, and most other commands in the template
33247  definition support substitution as well.
33248 \end_layout
33249
33250 \begin_layout Standard
33251 The available macros are the following:
33252 \end_layout
33253
33254 \begin_layout Description
33255 \begin_inset Flex Code
33256 status collapsed
33257
33258 \begin_layout Plain Layout
33259 $$AbsOrRelPathMaster
33260 \end_layout
33261
33262 \end_inset
33263
33264  The file path, absolute or relative to the master \SpecialChar LyX
33265  document.
33266 \end_layout
33267
33268 \begin_layout Description
33269 \begin_inset Flex Code
33270 status collapsed
33271
33272 \begin_layout Plain Layout
33273 $$AbsOrRelPathParent
33274 \end_layout
33275
33276 \end_inset
33277
33278  The file path, absolute or relative to the \SpecialChar LyX
33279  document.
33280 \end_layout
33281
33282 \begin_layout Description
33283 \begin_inset Flex Code
33284 status collapsed
33285
33286 \begin_layout Plain Layout
33287 $$AbsPath
33288 \end_layout
33289
33290 \end_inset
33291
33292  The absolute file path.
33293 \end_layout
33294
33295 \begin_layout Description
33296 \begin_inset Flex Code
33297 status collapsed
33298
33299 \begin_layout Plain Layout
33300 $$Basename
33301 \end_layout
33302
33303 \end_inset
33304
33305  The filename without path and without the extension.
33306 \end_layout
33307
33308 \begin_layout Description
33309 \begin_inset Flex Code
33310 status collapsed
33311
33312 \begin_layout Plain Layout
33313 $$Contents(
33314 \begin_inset Quotes eld
33315 \end_inset
33316
33317 filename.ext
33318 \begin_inset Quotes erd
33319 \end_inset
33320
33321 )
33322 \end_layout
33323
33324 \end_inset
33325
33326  This macro will expand to the contents of the file with the name 
33327 \begin_inset Flex Code
33328 status collapsed
33329
33330 \begin_layout Plain Layout
33331 filename.ext
33332 \end_layout
33333
33334 \end_inset
33335
33336 .
33337 \end_layout
33338
33339 \begin_layout Description
33340 \begin_inset Flex Code
33341 status collapsed
33342
33343 \begin_layout Plain Layout
33344 $$Extension
33345 \end_layout
33346
33347 \end_inset
33348
33349  The file extension (including the dot).
33350 \end_layout
33351
33352 \begin_layout Description
33353 \begin_inset Flex Code
33354 status collapsed
33355
33356 \begin_layout Plain Layout
33357 $$pngOrjpg
33358 \end_layout
33359
33360 \end_inset
33361
33362  This will be the string 
33363 \begin_inset Quotes eld
33364 \end_inset
33365
33366 jpg
33367 \begin_inset Quotes erd
33368 \end_inset
33369
33370  if the file is in JPEG format, otherwise it will be the string 
33371 \begin_inset Quotes eld
33372 \end_inset
33373
33374 png
33375 \begin_inset Quotes erd
33376 \end_inset
33377
33378 .
33379  This is useful to avoid uneeded conversions for output formats that support
33380  both PNG and JPEG fomats.
33381  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
33382  output
33383  format.
33384 \end_layout
33385
33386 \begin_layout Description
33387 \begin_inset Flex Code
33388 status collapsed
33389
33390 \begin_layout Plain Layout
33391 $$FName
33392 \end_layout
33393
33394 \end_inset
33395
33396  The filename of the file specified in the external material dialog.
33397  This is either an absolute name, or it is relative to the \SpecialChar LyX
33398  document.
33399 \end_layout
33400
33401 \begin_layout Description
33402 \begin_inset Flex Code
33403 status collapsed
33404
33405 \begin_layout Plain Layout
33406 $$FPath
33407 \end_layout
33408
33409 \end_inset
33410
33411  The path part of 
33412 \begin_inset Flex Code
33413 status collapsed
33414
33415 \begin_layout Plain Layout
33416 $$FName
33417 \end_layout
33418
33419 \end_inset
33420
33421  (absolute name or relative to the \SpecialChar LyX
33422  document).
33423 \end_layout
33424
33425 \begin_layout Description
33426 \begin_inset Flex Code
33427 status collapsed
33428
33429 \begin_layout Plain Layout
33430 $$RelPathMaster
33431 \end_layout
33432
33433 \end_inset
33434
33435  The file path, relative to the master \SpecialChar LyX
33436  document.
33437 \end_layout
33438
33439 \begin_layout Description
33440 \begin_inset Flex Code
33441 status collapsed
33442
33443 \begin_layout Plain Layout
33444 $$RelPathParent
33445 \end_layout
33446
33447 \end_inset
33448
33449  The file path, relative to the \SpecialChar LyX
33450  document.
33451 \end_layout
33452
33453 \begin_layout Description
33454 \begin_inset Flex Code
33455 status collapsed
33456
33457 \begin_layout Plain Layout
33458 $$Sysdir
33459 \end_layout
33460
33461 \end_inset
33462
33463  This macro will expand to the absolute path of the system directory.
33464  This is typically used to point to the various helper scripts that are
33465  bundled with \SpecialChar LyX
33466 .
33467 \end_layout
33468
33469 \begin_layout Description
33470 \begin_inset Flex Code
33471 status collapsed
33472
33473 \begin_layout Plain Layout
33474 $$Tempname
33475 \end_layout
33476
33477 \end_inset
33478
33479  A name and full path to a temporary file which will be automatically deleted
33480  whenever the containing document is closed, or the external material insertion
33481  deleted.
33482 \end_layout
33483
33484 \begin_layout Standard
33485 All path macros contain a trailing directory separator, so you can construct
33486  e.
33487 \begin_inset space \thinspace{}
33488 \end_inset
33489
33490 g.
33491 \begin_inset space \space{}
33492 \end_inset
33493
33494 the absolute filename with 
33495 \begin_inset Flex Code
33496 status collapsed
33497
33498 \begin_layout Plain Layout
33499 $$AbsPath$$Basename$$Extension
33500 \end_layout
33501
33502 \end_inset
33503
33504 .
33505 \end_layout
33506
33507 \begin_layout Standard
33508 The macros above are substituted in all commands unless otherwise noted.
33509  The command 
33510 \begin_inset Flex Code
33511 status collapsed
33512
33513 \begin_layout Plain Layout
33514 Product
33515 \end_layout
33516
33517 \end_inset
33518
33519  supports additionally the following substitutions if they are enabled by
33520  the 
33521 \begin_inset Flex Code
33522 status collapsed
33523
33524 \begin_layout Plain Layout
33525 Transform
33526 \end_layout
33527
33528 \end_inset
33529
33530  and 
33531 \begin_inset Flex Code
33532 status collapsed
33533
33534 \begin_layout Plain Layout
33535 TransformCommand
33536 \end_layout
33537
33538 \end_inset
33539
33540  commands:
33541 \end_layout
33542
33543 \begin_layout Description
33544 \begin_inset Flex Code
33545 status collapsed
33546
33547 \begin_layout Plain Layout
33548 $$ResizeFront
33549 \end_layout
33550
33551 \end_inset
33552
33553  The front part of the resize command.
33554 \end_layout
33555
33556 \begin_layout Description
33557 \begin_inset Flex Code
33558 status collapsed
33559
33560 \begin_layout Plain Layout
33561 $$ResizeBack
33562 \end_layout
33563
33564 \end_inset
33565
33566  The back part of the resize command.
33567 \end_layout
33568
33569 \begin_layout Description
33570 \begin_inset Flex Code
33571 status collapsed
33572
33573 \begin_layout Plain Layout
33574 $$RotateFront
33575 \end_layout
33576
33577 \end_inset
33578
33579  The front part of the rotation command.
33580 \end_layout
33581
33582 \begin_layout Description
33583 \begin_inset Flex Code
33584 status collapsed
33585
33586 \begin_layout Plain Layout
33587 $$RotateBack
33588 \end_layout
33589
33590 \end_inset
33591
33592  The back part of the rotation command.
33593 \end_layout
33594
33595 \begin_layout Standard
33596 The value string of the 
33597 \begin_inset Flex Code
33598 status collapsed
33599
33600 \begin_layout Plain Layout
33601 Option
33602 \end_layout
33603
33604 \end_inset
33605
33606  command supports additionally the following substitutions if they are enabled
33607  by the 
33608 \begin_inset Flex Code
33609 status collapsed
33610
33611 \begin_layout Plain Layout
33612 Transform
33613 \end_layout
33614
33615 \end_inset
33616
33617  and 
33618 \begin_inset Flex Code
33619 status collapsed
33620
33621 \begin_layout Plain Layout
33622 TransformOption
33623 \end_layout
33624
33625 \end_inset
33626
33627  commands:
33628 \end_layout
33629
33630 \begin_layout Description
33631 \begin_inset Flex Code
33632 status collapsed
33633
33634 \begin_layout Plain Layout
33635 $$Clip
33636 \end_layout
33637
33638 \end_inset
33639
33640  The clip option.
33641 \end_layout
33642
33643 \begin_layout Description
33644 \begin_inset Flex Code
33645 status collapsed
33646
33647 \begin_layout Plain Layout
33648 $$Extra
33649 \end_layout
33650
33651 \end_inset
33652
33653  The extra option.
33654 \end_layout
33655
33656 \begin_layout Description
33657 \begin_inset Flex Code
33658 status collapsed
33659
33660 \begin_layout Plain Layout
33661 $$Resize
33662 \end_layout
33663
33664 \end_inset
33665
33666  The resize option.
33667 \end_layout
33668
33669 \begin_layout Description
33670 \begin_inset Flex Code
33671 status collapsed
33672
33673 \begin_layout Plain Layout
33674 $$Rotate
33675 \end_layout
33676
33677 \end_inset
33678
33679  The rotation option.
33680 \end_layout
33681
33682 \begin_layout Standard
33683 You may ask why there are so many path macros.
33684  There are mainly two reasons:
33685 \end_layout
33686
33687 \begin_layout Enumerate
33688 Relative and absolute file names should remain relative or absolute, respectivel
33689 y.
33690  Users may have reasons to prefer either form.
33691  Relative names are useful for portable documents that should work on different
33692  machines, for example.
33693  Absolute names may be required by some programs.
33694 \end_layout
33695
33696 \begin_layout Enumerate
33697 \SpecialChar LaTeX
33698  treats relative file names differently than \SpecialChar LyX
33699  and other programs in nested
33700  included files.
33701  For \SpecialChar LyX
33702 , a relative file name is always relative to the document that contains
33703  the file name.
33704  For \SpecialChar LaTeX
33705 , it is always relative to the master document.
33706  These two definitions are identical if you have only one document, but
33707  differ if you have a master document that includes part documents.
33708  That means that relative filenames must be transformed when presented to
33709  \SpecialChar LaTeX
33710 .
33711  Fortunately \SpecialChar LyX
33712  does this automatically for you if you choose the right macros.
33713 \end_layout
33714
33715 \begin_layout Standard
33716 So which path macro should be used in new template definitions? The rule
33717  is not difficult:
33718 \end_layout
33719
33720 \begin_layout Itemize
33721 Use 
33722 \begin_inset Flex Code
33723 status collapsed
33724
33725 \begin_layout Plain Layout
33726 $$AbsPath
33727 \end_layout
33728
33729 \end_inset
33730
33731  if an absolute path is required.
33732 \end_layout
33733
33734 \begin_layout Itemize
33735 Use 
33736 \begin_inset Flex Code
33737 status collapsed
33738
33739 \begin_layout Plain Layout
33740 $$AbsOrRelPathMaster
33741 \end_layout
33742
33743 \end_inset
33744
33745  if the substituted string is some kind of \SpecialChar LaTeX
33746  input.
33747 \end_layout
33748
33749 \begin_layout Itemize
33750 Else use 
33751 \begin_inset Flex Code
33752 status collapsed
33753
33754 \begin_layout Plain Layout
33755 $$AbsOrRelPathParent
33756 \end_layout
33757
33758 \end_inset
33759
33760  in order to preserve the user's choice.
33761 \end_layout
33762
33763 \begin_layout Standard
33764 There are special cases where this rule does not work and e.
33765 \begin_inset space \thinspace{}
33766 \end_inset
33767
33768 g.
33769 \begin_inset space \space{}
33770 \end_inset
33771
33772 relative names are needed, but normally it will work just fine.
33773  One example for such a case is the command 
33774 \begin_inset Flex Code
33775 status collapsed
33776
33777 \begin_layout Plain Layout
33778 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
33779 \end_layout
33780
33781 \end_inset
33782
33783  in the XFig template above: We can't use the absolute name because the
33784  copier for 
33785 \begin_inset Flex Code
33786 status collapsed
33787
33788 \begin_layout Plain Layout
33789 .pstex_t
33790 \end_layout
33791
33792 \end_inset
33793
33794  files needs the relative name in order to rewrite the file content.
33795 \end_layout
33796
33797 \begin_layout Section
33798 Security discussion
33799 \begin_inset CommandInset label
33800 LatexCommand label
33801 name "sec:Security-discussion"
33802
33803 \end_inset
33804
33805
33806 \end_layout
33807
33808 \begin_layout Standard
33809 The external material feature interfaces with a lot of external programs
33810  and does so automatically, so we have to consider the security implications
33811  of this.
33812  In particular, since you have the option of including your own filenames
33813  and/or parameter strings and those are expanded into a command, it seems
33814  that it would be possible to create a malicious document which executes
33815  arbitrary commands when a user views or prints the document.
33816  This is something we definitely want to avoid.
33817 \end_layout
33818
33819 \begin_layout Standard
33820 However, since the external program commands are specified in the template
33821  configuration file only, there are no security issues if \SpecialChar LyX
33822  is properly configure
33823 d with safe templates only.
33824  This is so because the external programs are invoked with the 
33825 \begin_inset Flex Code
33826 status collapsed
33827
33828 \begin_layout Plain Layout
33829 execvp
33830 \end_layout
33831
33832 \end_inset
33833
33834 -system call rather than the 
33835 \begin_inset Flex Code
33836 status collapsed
33837
33838 \begin_layout Plain Layout
33839 system
33840 \end_layout
33841
33842 \end_inset
33843
33844  system-call, so it's not possible to execute arbitrary commands from the
33845  filename or parameter section via the shell.
33846 \end_layout
33847
33848 \begin_layout Standard
33849 This also implies that you are restricted in what command strings you can
33850  use in the external material templates.
33851  In particular, pipes and redirection are not readily available.
33852  This has to be so if \SpecialChar LyX
33853  should remain safe.
33854  If you want to use some of the shell features, you should write a safe
33855  script to do this in a controlled manner, and then invoke the script from
33856  the command string.
33857  
33858 \end_layout
33859
33860 \begin_layout Standard
33861 It is possible to design a template that interacts directly with the shell,
33862  but since this would allow a malicious user to execute arbitrary commands
33863  by writing clever filenames and/or parameters, we generally recommend that
33864  you only use safe scripts that work with the 
33865 \begin_inset Flex Code
33866 status collapsed
33867
33868 \begin_layout Plain Layout
33869 execvp
33870 \end_layout
33871
33872 \end_inset
33873
33874  system call in a controlled manner.
33875  Of course, for use in a controlled environment, it can be tempting to just
33876  fall back to use ordinary shell scripts.
33877  If you do so, be aware that you 
33878 \emph on
33879 will
33880 \emph default
33881  provide an easily exploitable security hole in your system.
33882  Of course it stands to reason that such unsafe templates will never be
33883  included in the standard \SpecialChar LyX
33884  distribution, although we do encourage people
33885  to submit new templates in the open source tradition.
33886  But \SpecialChar LyX
33887  as shipped from the official distribution channels will never have
33888  unsafe templates.
33889 \end_layout
33890
33891 \begin_layout Standard
33892 Including external material provides a lot of power, and you have to be
33893  careful not to introduce security hazards with this power.
33894  A subtle error in a single line in an innocent looking script can open
33895  the door to huge security problems.
33896  So if you do not fully understand the issues, we recommend that you consult
33897  a knowledgeable security professional or the \SpecialChar LyX
33898  development team if you have
33899  any questions about whether a given template is safe or not.
33900  And do this before you use it in an uncontrolled environment.
33901 \end_layout
33902
33903 \begin_layout Chapter
33904 \start_of_appendix
33905 List of supported \SpecialChar LyX
33906  functions to be used in layouts
33907 \begin_inset CommandInset label
33908 LatexCommand label
33909 name "chap:List-of-functions"
33910
33911 \end_inset
33912
33913
33914 \end_layout
33915
33916 \begin_layout Standard
33917 \align center
33918 \begin_inset Tabular
33919 <lyxtabular version="3" rows="11" columns="8">
33920 <features tabularvalignment="middle">
33921 <column alignment="left" valignment="top">
33922 <column alignment="left" valignment="top">
33923 <column alignment="left" valignment="top">
33924 <column alignment="left" valignment="top">
33925 <column alignment="left" valignment="top">
33926 <column alignment="left" valignment="top">
33927 <column alignment="left" valignment="top">
33928 <column alignment="left" valignment="top">
33929 <row>
33930 <cell alignment="left" valignment="top" usebox="none">
33931 \begin_inset Text
33932
33933 \begin_layout Plain Layout
33934 accents
33935 \end_layout
33936
33937 \end_inset
33938 </cell>
33939 <cell alignment="left" valignment="top" usebox="none">
33940 \begin_inset Text
33941
33942 \begin_layout Plain Layout
33943 booktabs
33944 \end_layout
33945
33946 \end_inset
33947 </cell>
33948 <cell alignment="left" valignment="top" usebox="none">
33949 \begin_inset Text
33950
33951 \begin_layout Plain Layout
33952 feyn
33953 \end_layout
33954
33955 \end_inset
33956 </cell>
33957 <cell alignment="left" valignment="top" usebox="none">
33958 \begin_inset Text
33959
33960 \begin_layout Plain Layout
33961 listings
33962 \end_layout
33963
33964 \end_inset
33965 </cell>
33966 <cell alignment="center" valignment="top" usebox="none">
33967 \begin_inset Text
33968
33969 \begin_layout Plain Layout
33970 natbib
33971 \end_layout
33972
33973 \end_inset
33974 </cell>
33975 <cell alignment="center" valignment="top" usebox="none">
33976 \begin_inset Text
33977
33978 \begin_layout Plain Layout
33979 rotfloat
33980 \end_layout
33981
33982 \end_inset
33983 </cell>
33984 <cell alignment="center" valignment="top" usebox="none">
33985 \begin_inset Text
33986
33987 \begin_layout Plain Layout
33988 tfrupee
33989 \end_layout
33990
33991 \end_inset
33992 </cell>
33993 <cell alignment="center" valignment="top" usebox="none">
33994 \begin_inset Text
33995
33996 \begin_layout Plain Layout
33997 wasysym
33998 \end_layout
33999
34000 \end_inset
34001 </cell>
34002 </row>
34003 <row>
34004 <cell alignment="left" valignment="top" usebox="none">
34005 \begin_inset Text
34006
34007 \begin_layout Plain Layout
34008 amsbsy
34009 \end_layout
34010
34011 \end_inset
34012 </cell>
34013 <cell alignment="left" valignment="top" usebox="none">
34014 \begin_inset Text
34015
34016 \begin_layout Plain Layout
34017 calc
34018 \end_layout
34019
34020 \end_inset
34021 </cell>
34022 <cell alignment="left" valignment="top" usebox="none">
34023 \begin_inset Text
34024
34025 \begin_layout Plain Layout
34026 fixltx2e
34027 \end_layout
34028
34029 \end_inset
34030 </cell>
34031 <cell alignment="left" valignment="top" usebox="none">
34032 \begin_inset Text
34033
34034 \begin_layout Plain Layout
34035 longtable
34036 \end_layout
34037
34038 \end_inset
34039 </cell>
34040 <cell alignment="center" valignment="top" usebox="none">
34041 \begin_inset Text
34042
34043 \begin_layout Plain Layout
34044 nomencl
34045 \end_layout
34046
34047 \end_inset
34048 </cell>
34049 <cell alignment="center" valignment="top" usebox="none">
34050 \begin_inset Text
34051
34052 \begin_layout Plain Layout
34053 rsphrase
34054 \end_layout
34055
34056 \end_inset
34057 </cell>
34058 <cell alignment="center" valignment="top" usebox="none">
34059 \begin_inset Text
34060
34061 \begin_layout Plain Layout
34062 tipa
34063 \end_layout
34064
34065 \end_inset
34066 </cell>
34067 <cell alignment="center" valignment="top" usebox="none">
34068 \begin_inset Text
34069
34070 \begin_layout Plain Layout
34071 wrapfig
34072 \end_layout
34073
34074 \end_inset
34075 </cell>
34076 </row>
34077 <row>
34078 <cell alignment="left" valignment="top" usebox="none">
34079 \begin_inset Text
34080
34081 \begin_layout Plain Layout
34082 amscd
34083 \end_layout
34084
34085 \end_inset
34086 </cell>
34087 <cell alignment="left" valignment="top" usebox="none">
34088 \begin_inset Text
34089
34090 \begin_layout Plain Layout
34091 CJK
34092 \end_layout
34093
34094 \end_inset
34095 </cell>
34096 <cell alignment="left" valignment="top" usebox="none">
34097 \begin_inset Text
34098
34099 \begin_layout Plain Layout
34100 float
34101 \end_layout
34102
34103 \end_inset
34104 </cell>
34105 <cell alignment="left" valignment="top" usebox="none">
34106 \begin_inset Text
34107
34108 \begin_layout Plain Layout
34109 lyxskak
34110 \end_layout
34111
34112 \end_inset
34113 </cell>
34114 <cell alignment="center" valignment="top" usebox="none">
34115 \begin_inset Text
34116
34117 \begin_layout Plain Layout
34118 pdfcolmk
34119 \end_layout
34120
34121 \end_inset
34122 </cell>
34123 <cell alignment="center" valignment="top" usebox="none">
34124 \begin_inset Text
34125
34126 \begin_layout Plain Layout
34127 setspace
34128 \end_layout
34129
34130 \end_inset
34131 </cell>
34132 <cell alignment="center" valignment="top" usebox="none">
34133 \begin_inset Text
34134
34135 \begin_layout Plain Layout
34136 tipx
34137 \end_layout
34138
34139 \end_inset
34140 </cell>
34141 <cell alignment="center" valignment="top" usebox="none">
34142 \begin_inset Text
34143
34144 \begin_layout Plain Layout
34145 xargs
34146 \end_layout
34147
34148 \end_inset
34149 </cell>
34150 </row>
34151 <row>
34152 <cell alignment="left" valignment="top" usebox="none">
34153 \begin_inset Text
34154
34155 \begin_layout Plain Layout
34156 amsmath
34157 \end_layout
34158
34159 \end_inset
34160 </cell>
34161 <cell alignment="left" valignment="top" usebox="none">
34162 \begin_inset Text
34163
34164 \begin_layout Plain Layout
34165 color
34166 \end_layout
34167
34168 \end_inset
34169 </cell>
34170 <cell alignment="left" valignment="top" usebox="none">
34171 \begin_inset Text
34172
34173 \begin_layout Plain Layout
34174 framed
34175 \end_layout
34176
34177 \end_inset
34178 </cell>
34179 <cell alignment="left" valignment="top" usebox="none">
34180 \begin_inset Text
34181
34182 \begin_layout Plain Layout
34183 makeidx
34184 \end_layout
34185
34186 \end_inset
34187 </cell>
34188 <cell alignment="center" valignment="top" usebox="none">
34189 \begin_inset Text
34190
34191 \begin_layout Plain Layout
34192 pdfpages
34193 \end_layout
34194
34195 \end_inset
34196 </cell>
34197 <cell alignment="center" valignment="top" usebox="none">
34198 \begin_inset Text
34199
34200 \begin_layout Plain Layout
34201 shapepar
34202 \end_layout
34203
34204 \end_inset
34205 </cell>
34206 <cell alignment="center" valignment="top" usebox="none">
34207 \begin_inset Text
34208
34209 \begin_layout Plain Layout
34210 tone
34211 \end_layout
34212
34213 \end_inset
34214 </cell>
34215 <cell alignment="center" valignment="top" usebox="none">
34216 \begin_inset Text
34217
34218 \begin_layout Plain Layout
34219 xcolor
34220 \end_layout
34221
34222 \end_inset
34223 </cell>
34224 </row>
34225 <row>
34226 <cell alignment="left" valignment="top" usebox="none">
34227 \begin_inset Text
34228
34229 \begin_layout Plain Layout
34230 amssymb
34231 \end_layout
34232
34233 \end_inset
34234 </cell>
34235 <cell alignment="left" valignment="top" usebox="none">
34236 \begin_inset Text
34237
34238 \begin_layout Plain Layout
34239 covington
34240 \end_layout
34241
34242 \end_inset
34243 </cell>
34244 <cell alignment="left" valignment="top" usebox="none">
34245 \begin_inset Text
34246
34247 \begin_layout Plain Layout
34248 graphicx
34249 \end_layout
34250
34251 \end_inset
34252 </cell>
34253 <cell alignment="left" valignment="top" usebox="none">
34254 \begin_inset Text
34255
34256 \begin_layout Plain Layout
34257 marvosym
34258 \end_layout
34259
34260 \end_inset
34261 </cell>
34262 <cell alignment="center" valignment="top" usebox="none">
34263 \begin_inset Text
34264
34265 \begin_layout Plain Layout
34266 pifont
34267 \end_layout
34268
34269 \end_inset
34270 </cell>
34271 <cell alignment="center" valignment="top" usebox="none">
34272 \begin_inset Text
34273
34274 \begin_layout Plain Layout
34275 slashed
34276 \end_layout
34277
34278 \end_inset
34279 </cell>
34280 <cell alignment="center" valignment="top" usebox="none">
34281 \begin_inset Text
34282
34283 \begin_layout Plain Layout
34284 txfonts
34285 \end_layout
34286
34287 \end_inset
34288 </cell>
34289 <cell alignment="center" valignment="top" usebox="none">
34290 \begin_inset Text
34291
34292 \begin_layout Plain Layout
34293 xy
34294 \end_layout
34295
34296 \end_inset
34297 </cell>
34298 </row>
34299 <row>
34300 <cell alignment="left" valignment="top" usebox="none">
34301 \begin_inset Text
34302
34303 \begin_layout Plain Layout
34304 amstext
34305 \end_layout
34306
34307 \end_inset
34308 </cell>
34309 <cell alignment="left" valignment="top" usebox="none">
34310 \begin_inset Text
34311
34312 \begin_layout Plain Layout
34313 csquotes
34314 \end_layout
34315
34316 \end_inset
34317 </cell>
34318 <cell alignment="left" valignment="top" usebox="none">
34319 \begin_inset Text
34320
34321 \begin_layout Plain Layout
34322 hhline
34323 \end_layout
34324
34325 \end_inset
34326 </cell>
34327 <cell alignment="left" valignment="top" usebox="none">
34328 \begin_inset Text
34329
34330 \begin_layout Plain Layout
34331 mathdesign
34332 \end_layout
34333
34334 \end_inset
34335 </cell>
34336 <cell alignment="center" valignment="top" usebox="none">
34337 \begin_inset Text
34338
34339 \begin_layout Plain Layout
34340 pmboxdraw
34341 \end_layout
34342
34343 \end_inset
34344 </cell>
34345 <cell alignment="center" valignment="top" usebox="none">
34346 \begin_inset Text
34347
34348 \begin_layout Plain Layout
34349 soul
34350 \end_layout
34351
34352 \end_inset
34353 </cell>
34354 <cell alignment="center" valignment="top" usebox="none">
34355 \begin_inset Text
34356
34357 \begin_layout Plain Layout
34358 ulem
34359 \end_layout
34360
34361 \end_inset
34362 </cell>
34363 <cell alignment="center" valignment="top" usebox="none">
34364 \begin_inset Text
34365
34366 \begin_layout Plain Layout
34367 yhmath
34368 \end_layout
34369
34370 \end_inset
34371 </cell>
34372 </row>
34373 <row>
34374 <cell alignment="left" valignment="top" usebox="none">
34375 \begin_inset Text
34376
34377 \begin_layout Plain Layout
34378 amsthm
34379 \end_layout
34380
34381 \end_inset
34382 </cell>
34383 <cell alignment="left" valignment="top" usebox="none">
34384 \begin_inset Text
34385
34386 \begin_layout Plain Layout
34387 dvipost
34388 \end_layout
34389
34390 \end_inset
34391 </cell>
34392 <cell alignment="left" valignment="top" usebox="none">
34393 \begin_inset Text
34394
34395 \begin_layout Plain Layout
34396 hyperref
34397 \end_layout
34398
34399 \end_inset
34400 </cell>
34401 <cell alignment="left" valignment="top" usebox="none">
34402 \begin_inset Text
34403
34404 \begin_layout Plain Layout
34405 mathdots
34406 \end_layout
34407
34408 \end_inset
34409 </cell>
34410 <cell alignment="center" valignment="top" usebox="none">
34411 \begin_inset Text
34412
34413 \begin_layout Plain Layout
34414 polyglossia
34415 \end_layout
34416
34417 \end_inset
34418 </cell>
34419 <cell alignment="center" valignment="top" usebox="none">
34420 \begin_inset Text
34421
34422 \begin_layout Plain Layout
34423 splitidx
34424 \end_layout
34425
34426 \end_inset
34427 </cell>
34428 <cell alignment="center" valignment="top" usebox="none">
34429 \begin_inset Text
34430
34431 \begin_layout Plain Layout
34432 undertilde
34433 \end_layout
34434
34435 \end_inset
34436 </cell>
34437 <cell alignment="center" valignment="top" usebox="none">
34438 \begin_inset Text
34439
34440 \begin_layout Plain Layout
34441
34442 \end_layout
34443
34444 \end_inset
34445 </cell>
34446 </row>
34447 <row>
34448 <cell alignment="left" valignment="top" usebox="none">
34449 \begin_inset Text
34450
34451 \begin_layout Plain Layout
34452 array
34453 \end_layout
34454
34455 \end_inset
34456 </cell>
34457 <cell alignment="left" valignment="top" usebox="none">
34458 \begin_inset Text
34459
34460 \begin_layout Plain Layout
34461 endnotes
34462 \end_layout
34463
34464 \end_inset
34465 </cell>
34466 <cell alignment="left" valignment="top" usebox="none">
34467 \begin_inset Text
34468
34469 \begin_layout Plain Layout
34470 ifsym
34471 \end_layout
34472
34473 \end_inset
34474 </cell>
34475 <cell alignment="left" valignment="top" usebox="none">
34476 \begin_inset Text
34477
34478 \begin_layout Plain Layout
34479 mathrsfs
34480 \end_layout
34481
34482 \end_inset
34483 </cell>
34484 <cell alignment="center" valignment="top" usebox="none">
34485 \begin_inset Text
34486
34487 \begin_layout Plain Layout
34488 prettyref
34489 \end_layout
34490
34491 \end_inset
34492 </cell>
34493 <cell alignment="center" valignment="top" usebox="none">
34494 \begin_inset Text
34495
34496 \begin_layout Plain Layout
34497 subfig
34498 \end_layout
34499
34500 \end_inset
34501 </cell>
34502 <cell alignment="center" valignment="top" usebox="none">
34503 \begin_inset Text
34504
34505 \begin_layout Plain Layout
34506 units
34507 \end_layout
34508
34509 \end_inset
34510 </cell>
34511 <cell alignment="center" valignment="top" usebox="none">
34512 \begin_inset Text
34513
34514 \begin_layout Plain Layout
34515
34516 \end_layout
34517
34518 \end_inset
34519 </cell>
34520 </row>
34521 <row>
34522 <cell alignment="left" valignment="top" usebox="none">
34523 \begin_inset Text
34524
34525 \begin_layout Plain Layout
34526 ascii
34527 \end_layout
34528
34529 \end_inset
34530 </cell>
34531 <cell alignment="left" valignment="top" usebox="none">
34532 \begin_inset Text
34533
34534 \begin_layout Plain Layout
34535 enumitem
34536 \end_layout
34537
34538 \end_inset
34539 </cell>
34540 <cell alignment="left" valignment="top" usebox="none">
34541 \begin_inset Text
34542
34543 \begin_layout Plain Layout
34544 ifthen
34545 \end_layout
34546
34547 \end_inset
34548 </cell>
34549 <cell alignment="left" valignment="top" usebox="none">
34550 \begin_inset Text
34551
34552 \begin_layout Plain Layout
34553 mhchem
34554 \end_layout
34555
34556 \end_inset
34557 </cell>
34558 <cell alignment="center" valignment="top" usebox="none">
34559 \begin_inset Text
34560
34561 \begin_layout Plain Layout
34562 pxfonts
34563 \end_layout
34564
34565 \end_inset
34566 </cell>
34567 <cell alignment="center" valignment="top" usebox="none">
34568 \begin_inset Text
34569
34570 \begin_layout Plain Layout
34571 subscript
34572 \end_layout
34573
34574 \end_inset
34575 </cell>
34576 <cell alignment="center" valignment="top" usebox="none">
34577 \begin_inset Text
34578
34579 \begin_layout Plain Layout
34580 url
34581 \end_layout
34582
34583 \end_inset
34584 </cell>
34585 <cell alignment="center" valignment="top" usebox="none">
34586 \begin_inset Text
34587
34588 \begin_layout Plain Layout
34589
34590 \end_layout
34591
34592 \end_inset
34593 </cell>
34594 </row>
34595 <row>
34596 <cell alignment="left" valignment="top" usebox="none">
34597 \begin_inset Text
34598
34599 \begin_layout Plain Layout
34600 bbding
34601 \end_layout
34602
34603 \end_inset
34604 </cell>
34605 <cell alignment="left" valignment="top" usebox="none">
34606 \begin_inset Text
34607
34608 \begin_layout Plain Layout
34609 esint
34610 \end_layout
34611
34612 \end_inset
34613 </cell>
34614 <cell alignment="left" valignment="top" usebox="none">
34615 \begin_inset Text
34616
34617 \begin_layout Plain Layout
34618 jurabib
34619 \end_layout
34620
34621 \end_inset
34622 </cell>
34623 <cell alignment="left" valignment="top" usebox="none">
34624 \begin_inset Text
34625
34626 \begin_layout Plain Layout
34627 multicol
34628 \end_layout
34629
34630 \end_inset
34631 </cell>
34632 <cell alignment="center" valignment="top" usebox="none">
34633 \begin_inset Text
34634
34635 \begin_layout Plain Layout
34636 refstyle
34637 \end_layout
34638
34639 \end_inset
34640 </cell>
34641 <cell alignment="center" valignment="top" usebox="none">
34642 \begin_inset Text
34643
34644 \begin_layout Plain Layout
34645 textcomp
34646 \end_layout
34647
34648 \end_inset
34649 </cell>
34650 <cell alignment="center" valignment="top" usebox="none">
34651 \begin_inset Text
34652
34653 \begin_layout Plain Layout
34654 varioref
34655 \end_layout
34656
34657 \end_inset
34658 </cell>
34659 <cell alignment="center" valignment="top" usebox="none">
34660 \begin_inset Text
34661
34662 \begin_layout Plain Layout
34663
34664 \end_layout
34665
34666 \end_inset
34667 </cell>
34668 </row>
34669 <row>
34670 <cell alignment="center" valignment="top" usebox="none">
34671 \begin_inset Text
34672
34673 \begin_layout Plain Layout
34674 bm
34675 \end_layout
34676
34677 \end_inset
34678 </cell>
34679 <cell alignment="center" valignment="top" usebox="none">
34680 \begin_inset Text
34681
34682 \begin_layout Plain Layout
34683 fancybox
34684 \end_layout
34685
34686 \end_inset
34687 </cell>
34688 <cell alignment="center" valignment="top" usebox="none">
34689 \begin_inset Text
34690
34691 \begin_layout Plain Layout
34692 latexsym
34693 \end_layout
34694
34695 \end_inset
34696 </cell>
34697 <cell alignment="center" valignment="top" usebox="none">
34698 \begin_inset Text
34699
34700 \begin_layout Plain Layout
34701 multirow
34702 \end_layout
34703
34704 \end_inset
34705 </cell>
34706 <cell alignment="center" valignment="top" usebox="none">
34707 \begin_inset Text
34708
34709 \begin_layout Plain Layout
34710 rotating
34711 \end_layout
34712
34713 \end_inset
34714 </cell>
34715 <cell alignment="center" valignment="top" usebox="none">
34716 \begin_inset Text
34717
34718 \begin_layout Plain Layout
34719 textgreek
34720 \end_layout
34721
34722 \end_inset
34723 </cell>
34724 <cell alignment="center" valignment="top" usebox="none">
34725 \begin_inset Text
34726
34727 \begin_layout Plain Layout
34728 verbatim
34729 \end_layout
34730
34731 \end_inset
34732 </cell>
34733 <cell alignment="center" valignment="top" usebox="none">
34734 \begin_inset Text
34735
34736 \begin_layout Plain Layout
34737
34738 \end_layout
34739
34740 \end_inset
34741 </cell>
34742 </row>
34743 </lyxtabular>
34744
34745 \end_inset
34746
34747
34748 \end_layout
34749
34750 \begin_layout Chapter
34751 Names of available colors to be used in layouts
34752 \begin_inset CommandInset label
34753 LatexCommand label
34754 name "chap:Names-of-colors"
34755
34756 \end_inset
34757
34758
34759 \end_layout
34760
34761 \begin_layout Standard
34762 The colors listed below are the standard colors and those that you can adjust
34763  in the \SpecialChar LyX
34764  preferences.
34765 \end_layout
34766
34767 \begin_layout Section
34768 Color functions
34769 \end_layout
34770
34771 \begin_layout Standard
34772 The following are no real colors, but rather act on color definitions:
34773 \end_layout
34774
34775 \begin_layout Description
34776 ignore The color is ignored
34777 \end_layout
34778
34779 \begin_layout Description
34780 inherit The color is inherited
34781 \end_layout
34782
34783 \begin_layout Description
34784 none
34785 \family roman
34786 \series medium
34787 \shape up
34788 \size normal
34789 \emph off
34790 \bar no
34791 \strikeout off
34792 \uuline off
34793 \uwave off
34794 \noun off
34795 \color none
34796  No particular color – clear or default
34797 \end_layout
34798
34799 \begin_layout Section
34800 Static colors
34801 \end_layout
34802
34803 \begin_layout Standard
34804 These are fixed colors that cannot be customized
34805 \change_inserted -712698321 1607683177
34806 .
34807  Please do 
34808 \emph on
34809 not
34810 \emph default
34811  use these colors in layout definitions, since they will not work well with
34812  some color themes (such as dark themes)
34813 \change_unchanged
34814 :
34815 \end_layout
34816
34817 \begin_layout Description
34818 black
34819 \end_layout
34820
34821 \begin_layout Description
34822 white
34823 \end_layout
34824
34825 \begin_layout Description
34826 blue
34827 \end_layout
34828
34829 \begin_layout Description
34830 brown
34831 \end_layout
34832
34833 \begin_layout Description
34834 cyan
34835 \end_layout
34836
34837 \begin_layout Description
34838 darkgray
34839 \end_layout
34840
34841 \begin_layout Description
34842 gray
34843 \end_layout
34844
34845 \begin_layout Description
34846 green
34847 \end_layout
34848
34849 \begin_layout Description
34850 lightgray
34851 \end_layout
34852
34853 \begin_layout Description
34854 lime
34855 \end_layout
34856
34857 \begin_layout Description
34858 magenta
34859 \end_layout
34860
34861 \begin_layout Description
34862 olive
34863 \end_layout
34864
34865 \begin_layout Description
34866 orange
34867 \end_layout
34868
34869 \begin_layout Description
34870 pink
34871 \end_layout
34872
34873 \begin_layout Description
34874 purple
34875 \end_layout
34876
34877 \begin_layout Description
34878 red
34879 \end_layout
34880
34881 \begin_layout Description
34882 teal
34883 \end_layout
34884
34885 \begin_layout Description
34886 violet
34887 \end_layout
34888
34889 \begin_layout Description
34890 yellow
34891 \end_layout
34892
34893 \begin_layout Section
34894 Dynamic colors
34895 \end_layout
34896
34897 \begin_layout Standard
34898 These are the colors allocated to specific elements in 
34899 \begin_inset Info
34900 type  "menu"
34901 arg   "dialog-show prefs"
34902 \end_inset
34903
34904 :
34905 \end_layout
34906
34907 \begin_layout Description
34908 added_space Added space color
34909 \end_layout
34910
34911 \begin_layout Description
34912 addedtext Added text color
34913 \end_layout
34914
34915 \begin_layout Description
34916 appendix Appendix marker color
34917 \end_layout
34918
34919 \begin_layout Description
34920 background Background color
34921 \end_layout
34922
34923 \begin_layout Description
34924 bottomarea Bottom area color
34925 \end_layout
34926
34927 \begin_layout Description
34928 branchlabel Label color for branches
34929 \end_layout
34930
34931 \begin_layout Description
34932 buttonbg Color used for button background
34933 \end_layout
34934
34935 \begin_layout Description
34936 buttonframe Color for inset button frames
34937 \end_layout
34938
34939 \begin_layout Description
34940 buttonhoverbg Color used for button background under focus
34941 \end_layout
34942
34943 \begin_layout Description
34944 changebar Changebar color
34945 \end_layout
34946
34947 \begin_layout Description
34948 changedtextauthor1 Changed text color author 1
34949 \end_layout
34950
34951 \begin_layout Description
34952 changedtextauthor2 Changed text color author 2
34953 \end_layout
34954
34955 \begin_layout Description
34956 changedtextauthor3 Changed text color author 3
34957 \end_layout
34958
34959 \begin_layout Description
34960 changedtextauthor4 Changed text color author 4
34961 \end_layout
34962
34963 \begin_layout Description
34964 changedtextauthor5 Changed text color author 5
34965 \end_layout
34966
34967 \begin_layout Description
34968 collapsible Collapsible insets text color
34969 \end_layout
34970
34971 \begin_layout Description
34972 collapsibleframe Collapsible insets framecolor
34973 \end_layout
34974
34975 \begin_layout Description
34976 command Text color for command insets
34977 \end_layout
34978
34979 \begin_layout Description
34980 commandbg Background color for command insets
34981 \end_layout
34982
34983 \begin_layout Description
34984 commandframe Frame color for command insets
34985 \end_layout
34986
34987 \begin_layout Description
34988 comment Label color for comments
34989 \end_layout
34990
34991 \begin_layout Description
34992 commentbg Background color of comments
34993 \end_layout
34994
34995 \begin_layout Description
34996 cursor Cursor color
34997 \end_layout
34998
34999 \begin_layout Description
35000 deletedtext Deleted text color
35001 \end_layout
35002
35003 \begin_layout Description
35004 deletedtextmodifier Deleted text modifying color
35005 \end_layout
35006
35007 \begin_layout Description
35008 depthbar Color for the depth bars in the margin
35009 \end_layout
35010
35011 \begin_layout Description
35012 eolmarker End of line marker color
35013 \end_layout
35014
35015 \begin_layout Description
35016 error Color of the \SpecialChar LaTeX
35017  error box
35018 \end_layout
35019
35020 \begin_layout Description
35021 footlabel Label color for footnotes
35022 \end_layout
35023
35024 \begin_layout Description
35025 foreground Foreground color
35026 \end_layout
35027
35028 \begin_layout Description
35029 graphicsbg Graphics inset background color
35030 \end_layout
35031
35032 \begin_layout Description
35033 greyedoutbg Background color of greyedout inset
35034 \end_layout
35035
35036 \begin_layout Description
35037 greyedoutlabel Label color for greyedout insets
35038 \end_layout
35039
35040 \begin_layout Description
35041 greyedouttext Color for greyedout inset text
35042 \end_layout
35043
35044 \begin_layout Description
35045 indexlabel Label color for index insets
35046 \end_layout
35047
35048 \begin_layout Description
35049 inlinecompletion Inline completion color
35050 \end_layout
35051
35052 \begin_layout Description
35053 insetbg Inset marker background color
35054 \end_layout
35055
35056 \begin_layout Description
35057 insetframe Inset marker frame color
35058 \end_layout
35059
35060 \begin_layout Description
35061 language Color for marking foreign language words
35062 \end_layout
35063
35064 \begin_layout Description
35065 latex Text color in \SpecialChar LaTeX
35066  mode
35067 \end_layout
35068
35069 \begin_layout Description
35070 listingsbg Background color of listings inset
35071 \end_layout
35072
35073 \begin_layout Description
35074 marginlabel Label color for margin notes
35075 \end_layout
35076
35077 \begin_layout Description
35078 math Math inset text color
35079 \end_layout
35080
35081 \begin_layout Description
35082 mathbg Math inset background color
35083 \end_layout
35084
35085 \begin_layout Description
35086 mathcorners Math inset frame color not under focus
35087 \end_layout
35088
35089 \begin_layout Description
35090 mathframe Math inset frame color under focus
35091 \end_layout
35092
35093 \begin_layout Description
35094 mathline Math line color
35095 \end_layout
35096
35097 \begin_layout Description
35098 mathmacrobg Macro math inset background color
35099 \end_layout
35100
35101 \begin_layout Description
35102 mathmacroblend Macro math blended color
35103 \end_layout
35104
35105 \begin_layout Description
35106 mathmacroframe Macro math frame color
35107 \end_layout
35108
35109 \begin_layout Description
35110 mathmacrohoverbg Macro math inset background color hovered
35111 \end_layout
35112
35113 \begin_layout Description
35114 mathmacrolabel Macro math label color
35115 \end_layout
35116
35117 \begin_layout Description
35118 mathmacronewarg Macro template color for new parameters
35119 \end_layout
35120
35121 \begin_layout Description
35122 mathmacrooldarg Macro template color for old parameters
35123 \end_layout
35124
35125 \begin_layout Description
35126 newpage New page color
35127 \end_layout
35128
35129 \begin_layout Description
35130 nonunique_inlinecompletion Inline completion color for the non-unique part
35131 \end_layout
35132
35133 \begin_layout Description
35134 note Label color for notes
35135 \end_layout
35136
35137 \begin_layout Description
35138 notebg Background color of notes
35139 \end_layout
35140
35141 \begin_layout Description
35142 pagebreak Page break/line break color
35143 \end_layout
35144
35145 \begin_layout Description
35146 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
35147 \end_layout
35148
35149 \begin_layout Description
35150 phantomtext Text color for phantom insets
35151 \end_layout
35152
35153 \begin_layout Description
35154 preview The color used for previews
35155 \end_layout
35156
35157 \begin_layout Description
35158 previewframe Preview frame color
35159 \end_layout
35160
35161 \begin_layout Description
35162 regexpframe Color for regexp frame
35163 \end_layout
35164
35165 \begin_layout Description
35166 scroll Color that indicates when a row can be scrolled 
35167 \end_layout
35168
35169 \begin_layout Description
35170 selection Background color of selected text
35171 \end_layout
35172
35173 \begin_layout Description
35174 selectiontext Foreground color of selected text
35175 \end_layout
35176
35177 \begin_layout Description
35178 shadedbg Background color of shaded box
35179 \end_layout
35180
35181 \begin_layout Description
35182 special Special chars text color
35183 \end_layout
35184
35185 \begin_layout Description
35186 tabularline Table line color
35187 \end_layout
35188
35189 \begin_layout Description
35190 tabularonoffline Table line color
35191 \change_inserted -712698321 1607682522
35192
35193 \end_layout
35194
35195 \begin_layout Description
35196
35197 \change_inserted -712698321 1607682563
35198 textlabel1 Color 1 of layout and custom inset labels
35199 \end_layout
35200
35201 \begin_layout Description
35202
35203 \change_inserted -712698321 1607682565
35204 textlabel2 Color 2 of layout and custom inset labels
35205 \end_layout
35206
35207 \begin_layout Description
35208
35209 \change_inserted -712698321 1607682568
35210 textlabel3 Color 3 of layout and custom inset labels
35211 \change_unchanged
35212
35213 \end_layout
35214
35215 \begin_layout Description
35216 urllabel Label color for URL insets
35217 \end_layout
35218
35219 \begin_layout Description
35220 urltext Color for URL inset text
35221 \end_layout
35222
35223 \end_body
35224 \end_document