]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
3264e3274d782fb113d7dc028666dfcbc913ba98
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 610
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 177693 "x"
145 \author 5863208 "ab"
146 \author 34634807 "Jean-Pierre"
147 \author 232239728 "Owner"
148 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
149 \author 1075283030 "Thibaut"
150 \end_header
151
152 \begin_body
153
154 \begin_layout Title
155 Customizing \SpecialChar LyX
156 : Features for the Advanced User
157 \end_layout
158
159 \begin_layout Author
160 by the \SpecialChar LyX
161  Team
162 \begin_inset Foot
163 status collapsed
164
165 \begin_layout Plain Layout
166 If you have comments or error corrections, please send them to the \SpecialChar LyX
167  Documentatio
168 n mailing list, 
169 \begin_inset CommandInset href
170 LatexCommand href
171 target "lyx-docs@lists.lyx.org"
172 type "mailto:"
173 literal "false"
174
175 \end_inset
176
177 .
178  Include 
179 \begin_inset Quotes eld
180 \end_inset
181
182 [Customization]
183 \begin_inset Quotes erd
184 \end_inset
185
186  in the subject header, and please cc the current maintainer of this file,
187  Richard 
188 \change_inserted 5863208 1604930692
189 Kimberly 
190 \change_unchanged
191 Heck <
192 \change_inserted 5863208 1604930729
193 rikiheck@lyx.org
194 \change_deleted 5863208 1604930668
195 rikiheck@lyx.org
196 \change_unchanged
197 >.
198 \end_layout
199
200 \end_inset
201
202
203 \begin_inset Newline newline
204 \end_inset
205
206
207 \begin_inset Newline newline
208 \end_inset
209
210 Version 2.4.x
211 \end_layout
212
213 \begin_layout Standard
214 \begin_inset CommandInset toc
215 LatexCommand tableofcontents
216
217 \end_inset
218
219
220 \end_layout
221
222 \begin_layout Standard
223 \begin_inset Note Note
224 status open
225
226 \begin_layout Plain Layout
227 Please use change tracking when modifying this document.
228  This makes it easier for our translators to recognize things that have
229  been changed, and it helps the maintainer keep up-to-date with what's been
230  done.
231 \end_layout
232
233 \end_inset
234
235
236 \end_layout
237
238 \begin_layout Chapter
239 Introduction
240 \end_layout
241
242 \begin_layout Standard
243 This manual covers the customization features present in \SpecialChar LyX
244 .
245  In it, we discuss issues like keyboard shortcuts, screen previewing options,
246  printer options, sending commands to \SpecialChar LyX
247  via the \SpecialChar LyX
248  Server, internationalization,
249  installing new \SpecialChar LaTeX
250  classes and \SpecialChar LyX
251  layouts, etc.
252  We can't possibly hope to touch on everything you can change—our developers
253  add new features faster than we can document them—but we will explain the
254  most common customizations and hopefully point you in the right direction
255  for some of the more obscure ones.
256 \end_layout
257
258 \begin_layout Standard
259 \begin_inset Branch OutDated
260 inverted 0
261 status collapsed
262
263 \begin_layout Standard
264 Information from previous versions of this document that now seems to be
265  outdated is contained in the OutDated branch of this document.
266  By default, this information will not appear in the \SpecialChar LaTeX
267  output.
268 \end_layout
269
270 \end_inset
271
272
273 \end_layout
274
275 \begin_layout Chapter
276 \SpecialChar LyX
277  configuration files
278 \end_layout
279
280 \begin_layout Standard
281 This chapter aims to help you to find your way through the \SpecialChar LyX
282  configuration
283  files.
284  Before continuing to read this chapter, you should find out where your
285  \SpecialChar LyX
286  library and user directories are by using 
287 \begin_inset Flex Noun
288 status collapsed
289
290 \begin_layout Plain Layout
291 Help\SpecialChar menuseparator
292 About
293 \begin_inset space ~
294 \end_inset
295
296 LyX
297 \end_layout
298
299 \end_inset
300
301 .
302  The library directory is the place where \SpecialChar LyX
303  places its system-wide configuration
304  files; the user directory is where you can place your modified versions.
305  We will call the former 
306 \begin_inset Flex Code
307 status collapsed
308
309 \begin_layout Plain Layout
310 LyXDir
311 \end_layout
312
313 \end_inset
314
315  and the latter 
316 \begin_inset Flex Noun
317 status collapsed
318
319 \begin_layout Plain Layout
320 UserDir
321 \end_layout
322
323 \end_inset
324
325  in the remainder of this document.
326  
327 \end_layout
328
329 \begin_layout Section
330 What's in 
331 \begin_inset Flex Code
332 status collapsed
333
334 \begin_layout Plain Layout
335 LyXDir
336 \end_layout
337
338 \end_inset
339
340 ?
341 \end_layout
342
343 \begin_layout Standard
344 \begin_inset Flex Code
345 status collapsed
346
347 \begin_layout Plain Layout
348 LyXDir
349 \end_layout
350
351 \end_inset
352
353  and its sub-directories contain a number of files 
354 \change_deleted 232239728 1604787780
355 and
356 \change_unchanged
357  that can be used to customize \SpecialChar LyX
358 's behavior.
359  You can change many of these files from within \SpecialChar LyX
360  itself through the 
361 \begin_inset Flex Noun
362 status collapsed
363
364 \begin_layout Plain Layout
365 Tools\SpecialChar menuseparator
366 Preferences
367 \end_layout
368
369 \end_inset
370
371  dialog.
372  Most customization that you will want to do in \SpecialChar LyX
373  is possible through this
374  dialog.
375  However, many other inner aspects of \SpecialChar LyX
376  can be customized by modifying the
377  files in 
378 \begin_inset Flex Code
379 status collapsed
380
381 \begin_layout Plain Layout
382 LyXDir
383 \end_layout
384
385 \end_inset
386
387 .
388  These files fall in different categories, described in the following subsection
389 s.
390 \end_layout
391
392 \begin_layout Subsection
393 Automatically generated files
394 \end_layout
395
396 \begin_layout Standard
397 The files found in 
398 \begin_inset Flex Noun
399 status collapsed
400
401 \begin_layout Plain Layout
402 UserDir
403 \end_layout
404
405 \end_inset
406
407  are generated when you configure \SpecialChar LyX
408 .
409  They contain various default values that are 
410 \change_inserted 5863208 1604919565
411 automatically detected during reconfiguration.
412 \change_deleted 232239728 1604788241
413 guessed by inspection
414 \change_unchanged
415  In general, it is not a good idea to modify them, since they might be overwritt
416 en at any time.
417 \end_layout
418
419 \begin_layout Labeling
420 \labelwidthstring 00.00.0000
421 \begin_inset Flex Code
422 status collapsed
423
424 \begin_layout Plain Layout
425 lyxrc.defaults
426 \end_layout
427
428 \end_inset
429
430  
431 \change_deleted 5863208 1604919950
432
433 \begin_inset Note Note
434 status collapsed
435
436 \begin_layout Plain Layout
437
438 \change_inserted 232239728 1604853928
439 I capitalized the first word in all of these lists.
440  To me it looks better but it really is a stylistic thing, your call.
441  However if you are not going to capitalize them, the english in some needs
442  to be modified to make it read correctly as a sentence.
443 \change_unchanged
444
445 \end_layout
446
447 \end_inset
448
449
450 \change_deleted 232239728 1604853510
451 c
452 \change_inserted 232239728 1604853510
453 C
454 \change_unchanged
455 ontains defaults for various commands.
456 \end_layout
457
458 \begin_layout Labeling
459 \labelwidthstring 00.00.0000
460 \begin_inset Flex Code
461 status collapsed
462
463 \begin_layout Plain Layout
464 packages.lst
465 \end_layout
466
467 \end_inset
468
469  
470 \change_deleted 232239728 1604853512
471 c
472 \change_inserted 232239728 1604853512
473 C
474 \change_unchanged
475 ontains the list of packages that have been recognized by \SpecialChar LyX
476 .
477  It is currently unused by the \SpecialChar LyX
478  program itself, but the information extracted,
479  and more, is made available with 
480 \begin_inset Flex Noun
481 status collapsed
482
483 \begin_layout Plain Layout
484 Help\SpecialChar menuseparator
485 \SpecialChar LaTeX
486
487 \begin_inset space ~
488 \end_inset
489
490 Configuration
491 \end_layout
492
493 \end_inset
494
495 .
496 \end_layout
497
498 \begin_layout Labeling
499 \labelwidthstring 00.00.0000
500 \begin_inset Flex Code
501 status collapsed
502
503 \begin_layout Plain Layout
504 textclass.lst
505 \end_layout
506
507 \end_inset
508
509  
510 \change_deleted 232239728 1604853515
511 t
512 \change_inserted 232239728 1604853515
513 T
514 \change_unchanged
515 he list of text classes that have been found in your 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 layout/
521 \end_layout
522
523 \end_inset
524
525  directories, along with the associated \SpecialChar LaTeX
526  document class and their description.
527 \end_layout
528
529 \begin_layout Labeling
530 \labelwidthstring 00.00.0000
531 \begin_inset Flex Code
532 status collapsed
533
534 \begin_layout Plain Layout
535 lyxmodules.lst
536 \end_layout
537
538 \end_inset
539
540  
541 \change_deleted 232239728 1604853518
542 t
543 \change_inserted 232239728 1604853518
544 T
545 \change_unchanged
546 he list of layout modules found in your 
547 \begin_inset Flex Code
548 status collapsed
549
550 \begin_layout Plain Layout
551 layout/
552 \end_layout
553
554 \end_inset
555
556  directories
557 \end_layout
558
559 \begin_layout Labeling
560 \labelwidthstring 00.00.0000
561 \begin_inset Flex Code
562 status open
563
564 \begin_layout Plain Layout
565 *files.lst
566 \end_layout
567
568 \end_inset
569
570  
571 \change_deleted 232239728 1604853523
572 l
573 \change_inserted 232239728 1604853523
574 L
575 \change_unchanged
576 ists of various sorts of \SpecialChar LaTeX
577 -related files found on your system
578 \end_layout
579
580 \begin_layout Labeling
581 \labelwidthstring 00.00.0000
582 \begin_inset Flex Code
583 status open
584
585 \begin_layout Plain Layout
586 doc/\SpecialChar LaTeX
587 Config.lyx
588 \end_layout
589
590 \end_inset
591
592  is automatically generated during configuration from the file 
593 \begin_inset Flex Code
594 status collapsed
595
596 \begin_layout Plain Layout
597 \SpecialChar LaTeX
598 Config.lyx.in
599 \end_layout
600
601 \end_inset
602
603 .
604  It contains information on your \SpecialChar LaTeX
605  configuration.
606 \end_layout
607
608 \begin_layout Subsection
609 Directories
610 \end_layout
611
612 \begin_layout Standard
613 The
614 \change_deleted 5863208 1604928729
615 se
616 \change_unchanged
617  
618 \change_inserted 5863208 1604928636
619 following 
620 \change_unchanged
621 directories 
622 \change_inserted 5863208 1604928661
623 in 
624 \change_unchanged
625
626 \begin_inset Flex Code
627 status collapsed
628
629 \begin_layout Plain Layout
630 LyXDir
631 \end_layout
632
633 \end_inset
634
635
636 \change_inserted 5863208 1604928662
637  can be
638 \change_deleted 5863208 1604928642
639 are
640 \change_unchanged
641  duplicated 
642 \change_deleted 5863208 1604928669
643 between 
644 \begin_inset Flex Code
645 status collapsed
646
647 \begin_layout Plain Layout
648 LyXDir
649 \end_layout
650
651 \end_inset
652
653  and
654 \change_inserted 5863208 1604928680
655 in
656 \change_unchanged
657  
658 \begin_inset Flex Code
659 status collapsed
660
661 \begin_layout Plain Layout
662 UserDir
663 \end_layout
664
665 \end_inset
666
667 .
668  If a particular file
669 \change_deleted 232239728 1604794430
670 s
671 \change_unchanged
672  exists in both places, the one in 
673 \begin_inset Flex Code
674 status collapsed
675
676 \begin_layout Plain Layout
677 UserDir
678 \end_layout
679
680 \end_inset
681
682  will be used.
683 \end_layout
684
685 \begin_layout Labeling
686 \labelwidthstring 00.00.0000
687 \begin_inset Flex Code
688 status collapsed
689
690 \begin_layout Plain Layout
691 bind/
692 \end_layout
693
694 \end_inset
695
696  
697 \change_deleted 232239728 1604794460
698 t
699 \change_inserted 232239728 1604794460
700 T
701 \change_unchanged
702 his directory contains files with the extension 
703 \begin_inset Flex Code
704 status collapsed
705
706 \begin_layout Plain Layout
707 .bind
708 \end_layout
709
710 \end_inset
711
712  that define the keybindings used in \SpecialChar LyX
713 .
714  If there exists an internationalized version of the bind file 
715 \change_inserted -712698321 1669371749
716 in a subdirectory 
717 \change_deleted -712698321 1669371727
718 named 
719 \begin_inset Flex Code
720 status collapsed
721
722 \begin_layout Plain Layout
723 $LANG_xxx.bind
724 \end_layout
725
726 \end_inset
727
728
729 \change_inserted -712698321 1669371728
730
731 \begin_inset Flex Code
732 status collapsed
733
734 \begin_layout Plain Layout
735
736 \change_inserted -712698321 1669371732
737 bind/xx
738 \end_layout
739
740 \end_inset
741
742  where 
743 \begin_inset Quotes eld
744 \end_inset
745
746 xx
747 \begin_inset Quotes erd
748 \end_inset
749
750  is the ISO language code
751 \change_unchanged
752 , that will be used first.
753 \end_layout
754
755 \begin_layout Labeling
756 \labelwidthstring 00.00.0000
757 \begin_inset Flex Code
758 status collapsed
759
760 \begin_layout Plain Layout
761 citeengines/
762 \end_layout
763
764 \end_inset
765
766  
767 \change_deleted 232239728 1604794478
768 c
769 \change_inserted 232239728 1604794478
770 C
771 \change_unchanged
772 ontains files with the extension 
773 \begin_inset Flex Code
774 status collapsed
775
776 \begin_layout Plain Layout
777 .citeengine
778 \end_layout
779
780 \end_inset
781
782  which define the diverse citation possibilities (natbib, biblatex etc.).
783  See 
784 \begin_inset CommandInset ref
785 LatexCommand ref
786 reference "subsec:Cite-Engine-Files"
787 plural "false"
788 caps "false"
789 noprefix "false"
790
791 \end_inset
792
793  for details.
794 \end_layout
795
796 \begin_layout Labeling
797 \labelwidthstring 00.00.0000
798 \begin_inset Flex Code
799 status collapsed
800
801 \begin_layout Plain Layout
802 clipart/
803 \end_layout
804
805 \end_inset
806
807  
808 \change_deleted 232239728 1604794483
809 c
810 \change_inserted 232239728 1604794486
811 C
812 \change_unchanged
813 ontains graphics files that can be included in documents.
814  
815 \end_layout
816
817 \begin_layout Labeling
818 \labelwidthstring 00.00.0000
819 \begin_inset Flex Code
820 status collapsed
821
822 \begin_layout Plain Layout
823 doc/
824 \end_layout
825
826 \end_inset
827
828  
829 \change_deleted 232239728 1604794492
830 c
831 \change_inserted 232239728 1604794492
832 C
833 \change_unchanged
834 ontains \SpecialChar LyX
835  documentation files (including the one you are currently reading).
836  The file 
837 \begin_inset Flex Code
838 status collapsed
839
840 \begin_layout Plain Layout
841
842 \change_deleted 232239728 1604794660
843 \SpecialChar LaTeX
844
845 \change_inserted 232239728 1604794661
846 LaTex
847 \change_unchanged
848 Config.lyx
849 \end_layout
850
851 \end_inset
852
853  deserves special attention, as noted above.
854  The internationalized help docs are in subdirectories 
855 \begin_inset Flex Code
856 status collapsed
857
858 \begin_layout Plain Layout
859 doc/xx
860 \end_layout
861
862 \end_inset
863
864  where 
865 \begin_inset Quotes eld
866 \end_inset
867
868 xx
869 \begin_inset Quotes erd
870 \end_inset
871
872  is the ISO language code.
873  See 
874 \begin_inset CommandInset ref
875 LatexCommand ref
876 reference "cha:Internationalizing-LyX"
877
878 \end_inset
879
880  for details.
881 \end_layout
882
883 \begin_layout Labeling
884 \labelwidthstring 00.00.0000
885 \begin_inset Flex Code
886 status collapsed
887
888 \begin_layout Plain Layout
889 examples/
890 \end_layout
891
892 \end_inset
893
894  
895 \change_deleted 232239728 1604794497
896 c
897 \change_inserted 232239728 1604794497
898 C
899 \change_unchanged
900 ontains example files that explain how to use some features.
901  In the file browser, press the 
902 \begin_inset Flex Noun
903 status collapsed
904
905 \begin_layout Plain Layout
906 Examples
907 \end_layout
908
909 \end_inset
910
911  button to get there.
912 \end_layout
913
914 \begin_layout Labeling
915 \labelwidthstring 00.00.0000
916 \begin_inset Flex Code
917 status collapsed
918
919 \begin_layout Plain Layout
920 images/
921 \end_layout
922
923 \end_inset
924
925  
926 \change_deleted 232239728 1604794500
927 c
928 \change_inserted 232239728 1604794500
929 C
930 \change_unchanged
931 ontains image files that are used by the 
932 \begin_inset Flex Noun
933 status collapsed
934
935 \begin_layout Plain Layout
936 Document
937 \end_layout
938
939 \end_inset
940
941  dialog.
942  In addition, it also contains the individual icons used in the toolbar
943  and the banners that can be shown when \SpecialChar LyX
944  is launched.
945 \end_layout
946
947 \begin_layout Labeling
948 \labelwidthstring 00.00.0000
949 \begin_inset Flex Code
950 status collapsed
951
952 \begin_layout Plain Layout
953 kbd/
954 \end_layout
955
956 \end_inset
957
958  
959 \change_deleted 232239728 1604794505
960 c
961 \change_inserted 232239728 1604794505
962 C
963 \change_unchanged
964 ontains keyboard keymapping files.
965  See 
966 \begin_inset CommandInset ref
967 LatexCommand ref
968 reference "sec:International-Keymap-Stuff"
969
970 \end_inset
971
972  for details.
973 \end_layout
974
975 \begin_layout Labeling
976 \labelwidthstring 00.00.0000
977 \begin_inset Flex Code
978 status collapsed
979
980 \begin_layout Plain Layout
981 layouts/
982 \end_layout
983
984 \end_inset
985
986  
987 \change_deleted 232239728 1604794508
988 c
989 \change_inserted 232239728 1604794508
990 C
991 \change_unchanged
992 ontains the text class and module files described in 
993 \begin_inset CommandInset ref
994 LatexCommand ref
995 reference "cha:Installing-New-Document"
996
997 \end_inset
998
999 .
1000 \end_layout
1001
1002 \begin_layout Labeling
1003 \labelwidthstring 00.00.0000
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008 lyx2lyx
1009 \end_layout
1010
1011 \end_inset
1012
1013  
1014 \change_deleted 232239728 1604794513
1015 c
1016 \change_inserted 232239728 1604794513
1017 C
1018 \change_unchanged
1019 ontains the 
1020 \begin_inset Flex Code
1021 status collapsed
1022
1023 \begin_layout Plain Layout
1024 lyx2lyx
1025 \end_layout
1026
1027 \end_inset
1028
1029  Python scripts used to convert between \SpecialChar LyX
1030  versions.
1031  These can be run from the command line if
1032 \change_deleted 232239728 1604794749
1033 , say,
1034 \change_unchanged
1035  you want to batch-convert files.
1036 \end_layout
1037
1038 \begin_layout Labeling
1039 \labelwidthstring 00.00.0000
1040 \begin_inset Flex Code
1041 status collapsed
1042
1043 \begin_layout Plain Layout
1044 scripts/
1045 \end_layout
1046
1047 \end_inset
1048
1049  
1050 \change_deleted 232239728 1604794516
1051 c
1052 \change_inserted 232239728 1604794516
1053 C
1054 \change_unchanged
1055 ontains some files that demonstrate the capabilities of the 
1056 \begin_inset Flex Noun
1057 status collapsed
1058
1059 \begin_layout Plain Layout
1060 External
1061 \begin_inset space ~
1062 \end_inset
1063
1064 Template
1065 \end_layout
1066
1067 \end_inset
1068
1069  feature.
1070  Also contains some scripts used by \SpecialChar LyX
1071  itself.
1072 \end_layout
1073
1074 \begin_layout Labeling
1075 \labelwidthstring 00.00.0000
1076 \begin_inset Flex Code
1077 status collapsed
1078
1079 \begin_layout Plain Layout
1080 templates/
1081 \end_layout
1082
1083 \end_inset
1084
1085  
1086 \change_deleted 232239728 1604794520
1087 c
1088 \change_inserted 232239728 1604794520
1089 C
1090 \change_unchanged
1091 ontains the standard \SpecialChar LyX
1092  template files described in 
1093 \begin_inset CommandInset ref
1094 LatexCommand ref
1095 reference "subsec:Creating-Templates"
1096
1097 \end_inset
1098
1099 .
1100 \end_layout
1101
1102 \begin_layout Labeling
1103 \labelwidthstring 00.00.0000
1104 \begin_inset Flex Code
1105 status collapsed
1106
1107 \begin_layout Plain Layout
1108 ui/
1109 \end_layout
1110
1111 \end_inset
1112
1113  
1114 \change_deleted 232239728 1604794524
1115 c
1116 \change_inserted 232239728 1604794524
1117 C
1118 \change_unchanged
1119 ontains files with the extension 
1120 \begin_inset Flex Code
1121 status collapsed
1122
1123 \begin_layout Plain Layout
1124 .ui
1125 \end_layout
1126
1127 \end_inset
1128
1129  that define the user interface to \SpecialChar LyX
1130 .
1131  That is, the files define which items appear in which menus and the items
1132  appearing on the toolbar.
1133 \end_layout
1134
1135 \begin_layout Labeling
1136 \labelwidthstring 00.00.0000
1137 \begin_inset Flex Code
1138 status collapsed
1139
1140 \begin_layout Plain Layout
1141 xtemplates/
1142 \end_layout
1143
1144 \end_inset
1145
1146  
1147 \change_deleted 232239728 1604794528
1148 c
1149 \change_inserted 232239728 1604794528
1150 C
1151 \change_unchanged
1152 ontains files with the extension 
1153 \begin_inset Flex Code
1154 status collapsed
1155
1156 \begin_layout Plain Layout
1157 .xtemplate
1158 \end_layout
1159
1160 \end_inset
1161
1162  which define the templates for the insertion of external material to a
1163  \SpecialChar LyX
1164  document; see 
1165 \begin_inset CommandInset ref
1166 LatexCommand ref
1167 reference "chap:Including-External-Material"
1168
1169 \end_inset
1170
1171 .
1172 \end_layout
1173
1174 \begin_layout Subsection
1175 Files you don't want to modify
1176 \end_layout
1177
1178 \begin_layout Standard
1179 These files are used internally by \SpecialChar LyX
1180  and you generally do not need to modify
1181  them unless you are a developer.
1182 \end_layout
1183
1184 \begin_layout Labeling
1185 \labelwidthstring 00.00.0000
1186 \begin_inset Flex Code
1187 status collapsed
1188
1189 \begin_layout Plain Layout
1190 CREDITS
1191 \end_layout
1192
1193 \end_inset
1194
1195  
1196 \change_deleted 232239728 1604797616
1197 t
1198 \change_inserted 232239728 1604797616
1199 T
1200 \change_unchanged
1201 his file contains the list of \SpecialChar LyX
1202  developers.
1203  The contents are displayed with the menu entry 
1204 \begin_inset Flex Noun
1205 status collapsed
1206
1207 \begin_layout Plain Layout
1208 Help\SpecialChar menuseparator
1209 About
1210 \begin_inset space ~
1211 \end_inset
1212
1213 LyX
1214 \end_layout
1215
1216 \end_inset
1217
1218 .
1219 \end_layout
1220
1221 \begin_layout Labeling
1222 \labelwidthstring 00.00.0000
1223 \begin_inset Flex Code
1224 status collapsed
1225
1226 \begin_layout Plain Layout
1227 chkconfig.ltx
1228 \end_layout
1229
1230 \end_inset
1231
1232  
1233 \change_deleted 232239728 1604797620
1234 t
1235 \change_inserted 232239728 1604797620
1236 T
1237 \change_unchanged
1238 his is a \SpecialChar LaTeX
1239  script used during the configuration process.
1240  Do not run directly.
1241 \end_layout
1242
1243 \begin_layout Labeling
1244 \labelwidthstring 00.00.0000
1245 \begin_inset Flex Code
1246 status collapsed
1247
1248 \begin_layout Plain Layout
1249 configure.py
1250 \end_layout
1251
1252 \end_inset
1253
1254  
1255 \change_deleted 232239728 1604797624
1256 t
1257 \change_inserted 232239728 1604797624
1258 T
1259 \change_unchanged
1260 his is a Python script that is used to re-configure \SpecialChar LyX
1261 .
1262  It creates configuration files in the directory it was run from.
1263 \end_layout
1264
1265 \begin_layout Subsection
1266 Other files needing a line or two
1267 \end_layout
1268
1269 \begin_layout Labeling
1270 \labelwidthstring 00.00.0000
1271 \begin_inset Flex Code
1272 status collapsed
1273
1274 \begin_layout Plain Layout
1275 encodings
1276 \end_layout
1277
1278 \end_inset
1279
1280  
1281 \change_deleted 232239728 1604797580
1282 t
1283 \change_inserted 232239728 1604797580
1284 T
1285 \change_unchanged
1286 his contains tables describing how different character encodings can be
1287  mapped to Unicode
1288 \end_layout
1289
1290 \begin_layout Labeling
1291 \labelwidthstring 00.00.0000
1292 \begin_inset Flex Code
1293 status collapsed
1294
1295 \begin_layout Plain Layout
1296 languages
1297 \end_layout
1298
1299 \end_inset
1300
1301  
1302 \change_deleted 232239728 1604797584
1303 t
1304 \change_inserted 232239728 1604797584
1305 T
1306 \change_unchanged
1307 his file contains a list of all the languages currently supported by \SpecialChar LyX
1308 .
1309 \end_layout
1310
1311 \begin_layout Labeling
1312 \labelwidthstring 00.00.0000
1313 \begin_inset Flex Code
1314 status collapsed
1315
1316 \begin_layout Plain Layout
1317 latexfonts
1318 \end_layout
1319
1320 \end_inset
1321
1322  
1323 \change_deleted 232239728 1604797587
1324 c
1325 \change_inserted 232239728 1604797587
1326 C
1327 \change_unchanged
1328 ontains information about the supported fonts.
1329 \end_layout
1330
1331 \begin_layout Labeling
1332 \labelwidthstring 00.00.0000
1333 \begin_inset Flex Code
1334 status collapsed
1335
1336 \begin_layout Plain Layout
1337 layouttranslations
1338 \end_layout
1339
1340 \end_inset
1341
1342  
1343 \change_deleted 232239728 1604797591
1344 t
1345 \change_inserted 232239728 1604797591
1346 T
1347 \change_unchanged
1348 his file contains translations for internationalized paragraph styles (see
1349  
1350 \begin_inset CommandInset ref
1351 LatexCommand ref
1352 reference "subsec:I18n"
1353
1354 \end_inset
1355
1356 ).
1357 \end_layout
1358
1359 \begin_layout Labeling
1360 \labelwidthstring 00.00.0000
1361 \begin_inset Flex Code
1362 status collapsed
1363
1364 \begin_layout Plain Layout
1365 unicodesymbols
1366 \end_layout
1367
1368 \end_inset
1369
1370  
1371 \change_deleted 232239728 1604797594
1372 t
1373 \change_inserted 232239728 1604797594
1374 T
1375 \change_unchanged
1376 his file contains information about Unicode-encoded glyphs and the way they
1377  are supported by \SpecialChar LyX
1378  via \SpecialChar LaTeX
1379 .
1380 \end_layout
1381
1382 \begin_layout Section
1383 Your local configuration directory
1384 \end_layout
1385
1386 \begin_layout Standard
1387 Even if you are using \SpecialChar LyX
1388  as an unprivileged user, you might want to change
1389  \SpecialChar LyX
1390  configuration for your own use.
1391  The 
1392 \begin_inset Flex Code
1393 status collapsed
1394
1395 \begin_layout Plain Layout
1396 UserDir
1397 \end_layout
1398
1399 \end_inset
1400
1401  directory contains all your personal configuration files.
1402  This is the directory described as 
1403 \begin_inset Quotes eld
1404 \end_inset
1405
1406 user directory
1407 \begin_inset Quotes erd
1408 \end_inset
1409
1410  in 
1411 \begin_inset Flex Noun
1412 status collapsed
1413
1414 \begin_layout Plain Layout
1415 Help\SpecialChar menuseparator
1416 About
1417 \begin_inset space ~
1418 \end_inset
1419
1420 LyX
1421 \end_layout
1422
1423 \end_inset
1424
1425 .
1426  This directory is used as a mirror of 
1427 \begin_inset Flex Code
1428 status collapsed
1429
1430 \begin_layout Plain Layout
1431 LyXDir
1432 \end_layout
1433
1434 \end_inset
1435
1436 , which means that every file in 
1437 \begin_inset Flex Code
1438 status collapsed
1439
1440 \begin_layout Plain Layout
1441 UserDir
1442 \end_layout
1443
1444 \end_inset
1445
1446  is a replacement for the corresponding file in 
1447 \begin_inset Flex Code
1448 status collapsed
1449
1450 \begin_layout Plain Layout
1451 LyXDir
1452 \end_layout
1453
1454 \end_inset
1455
1456 .
1457  Any configuration file described in the above sections can be placed either
1458  in the system-wide directory, in which case it will affect all users, or
1459  in your local directory for your own use.
1460 \end_layout
1461
1462 \begin_layout Standard
1463 To make things clearer, let's provide a few examples:
1464 \end_layout
1465
1466 \begin_layout Itemize
1467 The preferences set in the 
1468 \begin_inset Flex Noun
1469 status collapsed
1470
1471 \begin_layout Plain Layout
1472 Tools\SpecialChar menuseparator
1473 Preferences
1474 \end_layout
1475
1476 \end_inset
1477
1478  dialog are saved to a file 
1479 \begin_inset Flex Code
1480 status collapsed
1481
1482 \begin_layout Plain Layout
1483 preferences
1484 \end_layout
1485
1486 \end_inset
1487
1488  in 
1489 \begin_inset Flex Code
1490 status collapsed
1491
1492 \begin_layout Plain Layout
1493 UserDir
1494 \end_layout
1495
1496 \end_inset
1497
1498 .
1499 \end_layout
1500
1501 \begin_layout Itemize
1502 When you reconfigure using 
1503 \begin_inset Flex Noun
1504 status collapsed
1505
1506 \begin_layout Plain Layout
1507 Tools\SpecialChar menuseparator
1508 Reconfigure
1509 \end_layout
1510
1511 \end_inset
1512
1513 , \SpecialChar LyX
1514  runs the 
1515 \begin_inset Flex Code
1516 status collapsed
1517
1518 \begin_layout Plain Layout
1519 configure.py
1520 \end_layout
1521
1522 \end_inset
1523
1524  script, and the resulting files are written in your local configuration
1525  directory.
1526  This means that any additional text class file that you might have added
1527  in 
1528 \begin_inset Flex Code
1529 status collapsed
1530
1531 \begin_layout Plain Layout
1532 UserDir/layouts
1533 \end_layout
1534
1535 \end_inset
1536
1537  will be added to the list of classes in the 
1538 \begin_inset Flex Noun
1539 status collapsed
1540
1541 \begin_layout Plain Layout
1542 Document\SpecialChar menuseparator
1543 Settings
1544 \end_layout
1545
1546 \end_inset
1547
1548  dialog.
1549 \end_layout
1550
1551 \begin_layout Itemize
1552 If you get some updated documentation from
1553 \change_inserted 232239728 1604798171
1554  a
1555 \change_unchanged
1556  \SpecialChar LyX
1557  ftp site and cannot install it because you do not have sysadmin rights
1558  on your system, you can just copy the files 
1559 \change_deleted 232239728 1604798193
1560 in
1561 \change_inserted 232239728 1604798193
1562 to
1563 \change_unchanged
1564  
1565 \begin_inset Flex Code
1566 status collapsed
1567
1568 \begin_layout Plain Layout
1569 UserDir/doc/
1570 \end_layout
1571
1572 \end_inset
1573
1574  and the items in the 
1575 \begin_inset Flex Noun
1576 status collapsed
1577
1578 \begin_layout Plain Layout
1579 Help
1580 \end_layout
1581
1582 \end_inset
1583
1584  menu will open them!
1585 \end_layout
1586
1587 \begin_layout Section
1588 Running \SpecialChar LyX
1589  with multiple configurations
1590 \end_layout
1591
1592 \begin_layout Standard
1593 The configuration freedom of the local configuration directory may not suffice
1594  if you want to have more than one configuration at your disposal.
1595  For example, you may want to 
1596 \change_deleted 232239728 1604798238
1597 be 
1598 \change_unchanged
1599 use different key bindings or printer settings at different times.
1600  You can achieve this by having several such directories.
1601  You then specify which directory to use at run-time.
1602 \end_layout
1603
1604 \begin_layout Standard
1605 Invoking \SpecialChar LyX
1606  with the command line switch 
1607 \begin_inset Flex Code
1608 status collapsed
1609
1610 \begin_layout Plain Layout
1611 -userdir
1612 \end_layout
1613
1614 \end_inset
1615
1616  
1617 \emph on
1618 <some directory>
1619 \emph default
1620  instructs the program to read the configuration from that directory, and
1621  not from the default directory.
1622  (You can determine the default directory by running \SpecialChar LyX
1623  without the 
1624 \begin_inset Flex Code
1625 status collapsed
1626
1627 \begin_layout Plain Layout
1628 -userdir
1629 \end_layout
1630
1631 \end_inset
1632
1633  switch.) If the specified directory does not exist, \SpecialChar LyX
1634  offers to create it
1635  for you, just like it does for the default directory 
1636 \change_deleted 232239728 1604798318
1637 on
1638 \change_unchanged
1639  the first time you run the program.
1640  You can modify the configuration options in this additional user directory
1641  exactly as you would for the default directory.
1642  These directories are completely independent (but read on).
1643  Note that setting the environment variable 
1644 \begin_inset Flex Code
1645 status collapsed
1646
1647 \begin_layout Plain Layout
1648 LYX_USERDIR_24x
1649 \end_layout
1650
1651 \end_inset
1652
1653  to some value has exactly the same effect.
1654 \end_layout
1655
1656 \begin_layout Standard
1657 Having several configurations also requires more maintenance: if you want
1658  to add a new layout to 
1659 \begin_inset Flex Code
1660 status collapsed
1661
1662 \begin_layout Plain Layout
1663 NewUserDir/layouts
1664 \end_layout
1665
1666 \end_inset
1667
1668  which you want available from all your configurations, you must add it
1669  to each directory separately.
1670  You can avoid this with the following trick: after \SpecialChar LyX
1671  creates the additional
1672  directory, most of the subdirectories (see above) are empty.
1673  If you want the new configuration to mirror an existing one, replace the
1674  empty subdirectory with a symbolic link to the matching subdirectory in
1675  the existing configuration.
1676  Take care with the 
1677 \begin_inset Flex Code
1678 status collapsed
1679
1680 \begin_layout Plain Layout
1681 doc/
1682 \end_layout
1683
1684 \end_inset
1685
1686  subdirectory, however, since it contains a file written by the configuration
1687  script (also accessible through 
1688 \begin_inset Flex Noun
1689 status collapsed
1690
1691 \begin_layout Plain Layout
1692 Tools\SpecialChar menuseparator
1693 Reconfigure
1694 \end_layout
1695
1696 \end_inset
1697
1698 ) which is configuration
1699 \change_deleted 232239728 1604798083
1700 -
1701 \change_inserted 232239728 1604798100
1702  
1703 \change_unchanged
1704 specific.
1705 \end_layout
1706
1707 \begin_layout Chapter
1708 The Preferences dialog
1709 \end_layout
1710
1711 \begin_layout Standard
1712 All options of the preferences dialog are described in the Appendix 
1713 \emph on
1714 The Preferences Dialog
1715 \emph default
1716  in the 
1717 \emph on
1718 User's Guide
1719 \emph default
1720 .
1721  For some options you might find here more details.
1722 \end_layout
1723
1724 \begin_layout Section
1725 Formats
1726 \begin_inset CommandInset label
1727 LatexCommand label
1728 name "sec:Formats"
1729
1730 \end_inset
1731
1732
1733 \end_layout
1734
1735 \begin_layout Standard
1736 The first step is to define your file formats if they are not already defined.
1737  To do so, open the 
1738 \begin_inset Flex Noun
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 Tools\SpecialChar menuseparator
1743 Preferences
1744 \end_layout
1745
1746 \end_inset
1747
1748  dialog.
1749  Under 
1750 \begin_inset Flex Noun
1751 status collapsed
1752
1753 \begin_layout Plain Layout
1754 File Handling\SpecialChar menuseparator
1755 File formats
1756 \end_layout
1757
1758 \end_inset
1759
1760  press the 
1761 \begin_inset Flex Noun
1762 status collapsed
1763
1764 \begin_layout Plain Layout
1765 New
1766 \end_layout
1767
1768 \end_inset
1769
1770  button to define your new format.
1771  The 
1772 \begin_inset Flex Noun
1773 status collapsed
1774
1775 \begin_layout Plain Layout
1776 Format
1777 \end_layout
1778
1779 \end_inset
1780
1781  field contains the name used to identify the format in the GUI.
1782  The 
1783 \begin_inset Flex Noun
1784 status collapsed
1785
1786 \begin_layout Plain Layout
1787 Short Name
1788 \end_layout
1789
1790 \end_inset
1791
1792  is used to identify the format internally.
1793  You will also need to enter a file extension.
1794  These are all required.
1795  The optional 
1796 \begin_inset Flex Noun
1797 status collapsed
1798
1799 \begin_layout Plain Layout
1800 Shortcut
1801 \end_layout
1802
1803 \end_inset
1804
1805  field is used to provide a keyboard shortcut on the menus.
1806  (For example, pressing 
1807 \begin_inset Flex Noun
1808 status collapsed
1809
1810 \begin_layout Plain Layout
1811 Ctrl+D
1812 \end_layout
1813
1814 \end_inset
1815
1816  will 
1817 \begin_inset Flex Noun
1818 status collapsed
1819
1820 \begin_layout Plain Layout
1821 Document\SpecialChar menuseparator
1822 View (Other Formats)\SpecialChar menuseparator
1823 DVI
1824 \end_layout
1825
1826 \end_inset
1827
1828 .) 
1829 \end_layout
1830
1831 \begin_layout Standard
1832 A Format can have a 
1833 \begin_inset Flex Noun
1834 status collapsed
1835
1836 \begin_layout Plain Layout
1837 Viewer
1838 \end_layout
1839
1840 \end_inset
1841
1842  and an 
1843 \begin_inset Flex Noun
1844 status collapsed
1845
1846 \begin_layout Plain Layout
1847 Editor
1848 \end_layout
1849
1850 \end_inset
1851
1852  associated with it.
1853  For example, you might want to use 
1854 \begin_inset Flex Noun
1855 status collapsed
1856
1857 \begin_layout Plain Layout
1858 Ghostview
1859 \end_layout
1860
1861 \end_inset
1862
1863  to view PostScript files.
1864  You can enter the command needed to start the program in the corresponding
1865  fields.
1866  In defining this command, you can use the four variables listed in the
1867  next section.
1868  The viewer is launched when you view an image in \SpecialChar LyX
1869  or use the 
1870 \begin_inset Flex Noun
1871 status collapsed
1872
1873 \begin_layout Plain Layout
1874 Document\SpecialChar menuseparator
1875 View
1876 \end_layout
1877
1878 \end_inset
1879
1880  menu.
1881  The editor is for example launched when you right-click on an image and
1882  choose 
1883 \begin_inset Flex Noun
1884 status collapsed
1885
1886 \begin_layout Plain Layout
1887 Edit externally
1888 \end_layout
1889
1890 \end_inset
1891
1892  in the appearing context menu.
1893 \end_layout
1894
1895 \begin_layout Standard
1896 The 
1897 \begin_inset Flex Noun
1898 status collapsed
1899
1900 \begin_layout Plain Layout
1901 MIME
1902 \end_layout
1903
1904 \end_inset
1905
1906  type of a format is optional, but if it is specified, it must be unique
1907  across all formats.
1908  It is used to detect files of this format from the file contents.
1909  For some important file formats there is no MIME type officially registered
1910  with the 
1911 \begin_inset CommandInset href
1912 LatexCommand href
1913 name "IANA"
1914 target "http://www.iana.org/assignments/media-types/"
1915 literal "false"
1916
1917 \end_inset
1918
1919 .
1920  Therefore \SpecialChar LyX
1921  uses the extended list of MIME types as specified by 
1922 \begin_inset CommandInset href
1923 LatexCommand href
1924 name "freedesktop.org"
1925 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1926 literal "false"
1927
1928 \end_inset
1929
1930 .
1931 \end_layout
1932
1933 \begin_layout Standard
1934 The 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document format
1940 \end_layout
1941
1942 \end_inset
1943
1944  option tells \SpecialChar LyX
1945  that a format is suitable for document export.
1946  If this is set and if a suitable conversion route exists (see 
1947 \begin_inset CommandInset ref
1948 LatexCommand ref
1949 reference "sec:Converters"
1950
1951 \end_inset
1952
1953 ), the format will appear in the 
1954 \begin_inset Flex Noun
1955 status collapsed
1956
1957 \begin_layout Plain Layout
1958 File\SpecialChar menuseparator
1959 Export
1960 \end_layout
1961
1962 \end_inset
1963
1964  menu.
1965  The format will also appear in the 
1966 \begin_inset Flex Noun
1967 status collapsed
1968
1969 \begin_layout Plain Layout
1970 Document\SpecialChar menuseparator
1971 View
1972 \end_layout
1973
1974 \end_inset
1975
1976  menu if a viewer is specified for the format.
1977  Pure image formats, such as 
1978 \begin_inset Flex Code
1979 status collapsed
1980
1981 \begin_layout Plain Layout
1982 png
1983 \end_layout
1984
1985 \end_inset
1986
1987 , should not use this option.
1988  Formats that can both represent vector graphics and documents like 
1989 \begin_inset Flex Code
1990 status collapsed
1991
1992 \begin_layout Plain Layout
1993 pdf
1994 \end_layout
1995
1996 \end_inset
1997
1998  should use it.
1999 \end_layout
2000
2001 \begin_layout Standard
2002 The option 
2003 \begin_inset Flex Noun
2004 status collapsed
2005
2006 \begin_layout Plain Layout
2007 Vector graphics format
2008 \end_layout
2009
2010 \end_inset
2011
2012  tells \SpecialChar LyX
2013  that a format can contain vector graphics.
2014  This information is used to determine the target format of included graphics
2015  for 
2016 \begin_inset Flex Noun
2017 status collapsed
2018
2019 \begin_layout Plain Layout
2020 pdflatex
2021 \end_layout
2022
2023 \end_inset
2024
2025  export.
2026  Included graphics may need to be converted to either 
2027 \begin_inset Flex Noun
2028 status collapsed
2029
2030 \begin_layout Plain Layout
2031 pdf
2032 \end_layout
2033
2034 \end_inset
2035
2036
2037 \begin_inset Flex Noun
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 png
2042 \end_layout
2043
2044 \end_inset
2045
2046 , or 
2047 \begin_inset Flex Noun
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051 jpg
2052 \end_layout
2053
2054 \end_inset
2055
2056 , since 
2057 \begin_inset Flex Noun
2058 status collapsed
2059
2060 \begin_layout Plain Layout
2061 pdflatex
2062 \end_layout
2063
2064 \end_inset
2065
2066  cannot handle other image formats.
2067  If an included graphic is not already in 
2068 \begin_inset Flex Noun
2069 status collapsed
2070
2071 \begin_layout Plain Layout
2072 pdf
2073 \end_layout
2074
2075 \end_inset
2076
2077
2078 \begin_inset Flex Noun
2079 status collapsed
2080
2081 \begin_layout Plain Layout
2082 png
2083 \end_layout
2084
2085 \end_inset
2086
2087 , or 
2088 \begin_inset Flex Noun
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092 jpg
2093 \end_layout
2094
2095 \end_inset
2096
2097  format, it is converted to 
2098 \begin_inset Flex Noun
2099 status collapsed
2100
2101 \begin_layout Plain Layout
2102 pdf
2103 \end_layout
2104
2105 \end_inset
2106
2107  if the vector format option is set, and otherwise to 
2108 \begin_inset Flex Noun
2109 status collapsed
2110
2111 \begin_layout Plain Layout
2112 png
2113 \end_layout
2114
2115 \end_inset
2116
2117 .
2118 \end_layout
2119
2120 \begin_layout Section
2121 Copiers
2122 \end_layout
2123
2124 \begin_layout Standard
2125 Since all conversions from one format to another take place in \SpecialChar LyX
2126 's temporary
2127  directory, it is sometimes necessary to modify a file before copying it
2128  to the temporary directory in order that the conversion may be performed.
2129 \begin_inset Foot
2130 status collapsed
2131
2132 \begin_layout Plain Layout
2133 For example, the file may refer to other files—images, for example—using
2134  relative file names, and these may become invalid when the file is copied
2135  to the temporary directory.
2136 \end_layout
2137
2138 \end_inset
2139
2140  This is done by a Copier: It copies a file to (or from) the temporary directory
2141  and may modify it in the process.
2142 \end_layout
2143
2144 \begin_layout Standard
2145 The definitions of the copiers may use eight variables:
2146 \end_layout
2147
2148 \begin_layout Labeling
2149 \labelwidthstring 00.00.0000
2150 \begin_inset Flex Code
2151 status collapsed
2152
2153 \begin_layout Plain Layout
2154 $$s
2155 \end_layout
2156
2157 \end_inset
2158
2159  The \SpecialChar LyX
2160  system directory (e.
2161 \begin_inset space \thinspace{}
2162 \end_inset
2163
2164 g.
2165 \begin_inset space \space{}
2166 \end_inset
2167
2168
2169 \begin_inset Flex Noun
2170 status collapsed
2171
2172 \begin_layout Plain Layout
2173 /usr/share/lyx
2174 \end_layout
2175
2176 \end_inset
2177
2178 ).
2179 \end_layout
2180
2181 \begin_layout Labeling
2182 \labelwidthstring 00.00.0000
2183 \begin_inset Flex Code
2184 status collapsed
2185
2186 \begin_layout Plain Layout
2187 $$i
2188 \end_layout
2189
2190 \end_inset
2191
2192  The input file
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 $$o
2202 \end_layout
2203
2204 \end_inset
2205
2206  The output file
2207 \end_layout
2208
2209 \begin_layout Labeling
2210 \labelwidthstring 00.00.0000
2211 \begin_inset Flex Code
2212 status collapsed
2213
2214 \begin_layout Plain Layout
2215 $$b
2216 \end_layout
2217
2218 \end_inset
2219
2220  The base name (without filename extension) in the \SpecialChar LyX
2221  temporary directory
2222 \end_layout
2223
2224 \begin_layout Labeling
2225 \labelwidthstring 00.00.0000
2226 \begin_inset Flex Code
2227 status collapsed
2228
2229 \begin_layout Plain Layout
2230 $$p
2231 \end_layout
2232
2233 \end_inset
2234
2235  The full directory path of the \SpecialChar LyX
2236  temporary directory
2237 \end_layout
2238
2239 \begin_layout Labeling
2240 \labelwidthstring 00.00.0000
2241 \begin_inset Flex Code
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 $$r
2246 \end_layout
2247
2248 \end_inset
2249
2250  The full pathname to the original \SpecialChar LyX
2251  file being processed
2252 \end_layout
2253
2254 \begin_layout Labeling
2255 \labelwidthstring 00.00.0000
2256 \begin_inset Flex Code
2257 status collapsed
2258
2259 \begin_layout Plain Layout
2260 $$f
2261 \end_layout
2262
2263 \end_inset
2264
2265  The filename (without any directory path) of the \SpecialChar LyX
2266  file.
2267 \end_layout
2268
2269 \begin_layout Labeling
2270 \labelwidthstring 00.00.0000
2271 \begin_inset Flex Code
2272 status collapsed
2273
2274 \begin_layout Plain Layout
2275 $$l
2276 \end_layout
2277
2278 \end_inset
2279
2280  The `\SpecialChar LaTeX
2281  name'
2282 \end_layout
2283
2284 \begin_layout Standard
2285 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2286 's 
2287 \series bold
2288
2289 \backslash
2290 include
2291 \series default
2292  command.
2293  It is relevant only when exporting files suitable for such inclusion.
2294 \end_layout
2295
2296 \begin_layout Standard
2297 Copiers can be used to do almost anything with output files.
2298  For example, suppose you want generated pdf files to be copied to a special
2299  directory, 
2300 \begin_inset Flex Code
2301 status collapsed
2302
2303 \begin_layout Plain Layout
2304 /home/you/pdf/
2305 \end_layout
2306
2307 \end_inset
2308
2309 .
2310  Then you could write a shell script such as this one:
2311 \end_layout
2312
2313 \begin_layout Standard
2314 \begin_inset listings
2315 inline false
2316 status open
2317
2318 \begin_layout Plain Layout
2319
2320 #!/bin/bash
2321 \end_layout
2322
2323 \begin_layout Plain Layout
2324
2325 FROMFILE=$1
2326 \end_layout
2327
2328 \begin_layout Plain Layout
2329
2330 TOFILE=`basename $2`
2331 \end_layout
2332
2333 \begin_layout Plain Layout
2334
2335 cp $FROMFILE /home/you/pdf/$TOFILE
2336 \end_layout
2337
2338 \end_inset
2339
2340 Save it in your local \SpecialChar LyX
2341  directory—say, 
2342 \begin_inset Flex Code
2343 status collapsed
2344
2345 \begin_layout Plain Layout
2346 /home/you/.lyx/scripts/pdfcopier.sh
2347 \end_layout
2348
2349 \end_inset
2350
2351 —and make it executable, if you need to do so on your platform.
2352  Then, in the 
2353 \begin_inset Flex Noun
2354 status collapsed
2355
2356 \begin_layout Plain Layout
2357 Tools\SpecialChar menuseparator
2358 Preferences
2359 \end_layout
2360
2361 \end_inset
2362
2363  dialog, select under 
2364 \begin_inset Flex Noun
2365 status collapsed
2366
2367 \begin_layout Plain Layout
2368 File Handling\SpecialChar menuseparator
2369 File formats
2370 \end_layout
2371
2372 \end_inset
2373
2374  the 
2375 \begin_inset Flex Noun
2376 status collapsed
2377
2378 \begin_layout Plain Layout
2379 PDF(pdflatex)
2380 \end_layout
2381
2382 \end_inset
2383
2384  format—or one of the other pdf formats—and enter 
2385 \begin_inset Flex Code
2386 status collapsed
2387
2388 \begin_layout Plain Layout
2389 pdfcopier.sh $$i $$o
2390 \end_layout
2391
2392 \end_inset
2393
2394  into the 
2395 \begin_inset Flex Noun
2396 status collapsed
2397
2398 \begin_layout Plain Layout
2399 Copier
2400 \end_layout
2401
2402 \end_inset
2403
2404  field.
2405  
2406 \end_layout
2407
2408 \begin_layout Standard
2409 Copiers are used by \SpecialChar LyX
2410  in various of its own conversions.
2411  For example, if appropriate programs are found, \SpecialChar LyX
2412  will automatically install
2413  copiers for the 
2414 \begin_inset Flex Noun
2415 status collapsed
2416
2417 \begin_layout Plain Layout
2418 HTML
2419 \end_layout
2420
2421 \end_inset
2422
2423  and 
2424 \begin_inset Flex Noun
2425 status collapsed
2426
2427 \begin_layout Plain Layout
2428 HTML
2429 \begin_inset space ~
2430 \end_inset
2431
2432 (MS Word)
2433 \end_layout
2434
2435 \end_inset
2436
2437  formats.
2438  When these formats are exported, the copier sees that not just the main
2439  HTML file but various associated files (style files, images, etc.) are also
2440  copied.
2441  All these files are written to a subdirectory of the directory in which
2442  the original \SpecialChar LyX
2443  file was found.
2444 \begin_inset Foot
2445 status collapsed
2446
2447 \begin_layout Plain Layout
2448 This copier can be customized.
2449  The optional 
2450 \begin_inset Quotes eld
2451 \end_inset
2452
2453 -e
2454 \begin_inset Quotes erd
2455 \end_inset
2456
2457  argument takes a comma-separated list of extensions to be copied; if it
2458  is omitted, all files will be copied.
2459  The 
2460 \begin_inset Quotes eld
2461 \end_inset
2462
2463 -t
2464 \begin_inset Quotes erd
2465 \end_inset
2466
2467  argument determines the extension added to the generated directory.
2468  By default, it is 
2469 \begin_inset Quotes eld
2470 \end_inset
2471
2472
2473 \begin_inset Flex Noun
2474 status collapsed
2475
2476 \begin_layout Plain Layout
2477 LyXconv
2478 \end_layout
2479
2480 \end_inset
2481
2482
2483 \begin_inset Quotes erd
2484 \end_inset
2485
2486 , so HTML generated from 
2487 \begin_inset Flex Noun
2488 status collapsed
2489
2490 \begin_layout Plain Layout
2491 /path/to/filename.lyx
2492 \end_layout
2493
2494 \end_inset
2495
2496  will end up in 
2497 \begin_inset Flex Noun
2498 status collapsed
2499
2500 \begin_layout Plain Layout
2501 /path/to/filename.html.LyXconv
2502 \end_layout
2503
2504 \end_inset
2505
2506 .
2507  
2508 \end_layout
2509
2510 \end_inset
2511
2512
2513 \end_layout
2514
2515 \begin_layout Section
2516 Converters
2517 \begin_inset CommandInset label
2518 LatexCommand label
2519 name "sec:Converters"
2520
2521 \end_inset
2522
2523
2524 \end_layout
2525
2526 \begin_layout Standard
2527 You can define your own Converters to convert files between different formats.
2528  This is done in the 
2529 \begin_inset Flex Noun
2530 status collapsed
2531
2532 \begin_layout Plain Layout
2533 Tools\SpecialChar menuseparator
2534 Preferences\SpecialChar menuseparator
2535 File Handling\SpecialChar menuseparator
2536 Converters
2537 \end_layout
2538
2539 \end_inset
2540
2541  dialog.
2542 \end_layout
2543
2544 \begin_layout Standard
2545 To define a new converter, select the 
2546 \begin_inset Flex Noun
2547 status collapsed
2548
2549 \begin_layout Plain Layout
2550 From
2551 \begin_inset space ~
2552 \end_inset
2553
2554 format
2555 \end_layout
2556
2557 \end_inset
2558
2559  and 
2560 \begin_inset Flex Noun
2561 status collapsed
2562
2563 \begin_layout Plain Layout
2564 To
2565 \begin_inset space ~
2566 \end_inset
2567
2568 format
2569 \end_layout
2570
2571 \end_inset
2572
2573  from the drop-down lists, enter the command needed for the conversion,
2574  and then press the 
2575 \begin_inset Flex Noun
2576 status collapsed
2577
2578 \begin_layout Plain Layout
2579 Add
2580 \end_layout
2581
2582 \end_inset
2583
2584  button.
2585  Several variables can be used in the definition of converters:
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 $$s
2595 \end_layout
2596
2597 \end_inset
2598
2599  The \SpecialChar LyX
2600  system directory
2601 \end_layout
2602
2603 \begin_layout Labeling
2604 \labelwidthstring 00.00.0000
2605 \begin_inset Flex Code
2606 status collapsed
2607
2608 \begin_layout Plain Layout
2609 $$i
2610 \end_layout
2611
2612 \end_inset
2613
2614  The input file
2615 \end_layout
2616
2617 \begin_layout Labeling
2618 \labelwidthstring 00.00.0000
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 $$o
2624 \end_layout
2625
2626 \end_inset
2627
2628  The output file
2629 \end_layout
2630
2631 \begin_layout Labeling
2632 \labelwidthstring 00.00.0000
2633 \begin_inset Flex Code
2634 status collapsed
2635
2636 \begin_layout Plain Layout
2637 $$b
2638 \end_layout
2639
2640 \end_inset
2641
2642  The base filename of the input file (i.
2643 \begin_inset space \thinspace{}
2644 \end_inset
2645
2646 g., without the extension)
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 $$p
2656 \end_layout
2657
2658 \end_inset
2659
2660  The path to the input file
2661 \end_layout
2662
2663 \begin_layout Labeling
2664 \labelwidthstring 00.00.0000
2665 \begin_inset Flex Code
2666 status collapsed
2667
2668 \begin_layout Plain Layout
2669 $$r
2670 \end_layout
2671
2672 \end_inset
2673
2674  The path to the original input file (this is different from $$p when a
2675  chain of converters is called)
2676 \end_layout
2677
2678 \begin_layout Labeling
2679 \labelwidthstring 00.00.0000
2680 \begin_inset Flex Code
2681 status collapsed
2682
2683 \begin_layout Plain Layout
2684 $$e
2685 \end_layout
2686
2687 \end_inset
2688
2689  The iconv name for the encoding of the document.
2690 \end_layout
2691
2692 \begin_layout Standard
2693 In the 
2694 \begin_inset Flex Noun
2695 status collapsed
2696
2697 \begin_layout Plain Layout
2698 Extra
2699 \begin_inset space ~
2700 \end_inset
2701
2702 Flag
2703 \end_layout
2704
2705 \end_inset
2706
2707  field you can enter the following flags, separated by commas:
2708 \end_layout
2709
2710 \begin_layout Labeling
2711 \labelwidthstring 00.00.0000
2712 \begin_inset Flex Code
2713 status collapsed
2714
2715 \begin_layout Plain Layout
2716 latex
2717 \change_inserted -712698321 1524656940
2718 =flavor
2719 \change_unchanged
2720
2721 \end_layout
2722
2723 \end_inset
2724
2725  This converter runs some form of \SpecialChar LaTeX
2726 .
2727  This will make \SpecialChar LyX
2728 's \SpecialChar LaTeX
2729  error logs available.
2730
2731 \change_inserted -712698321 1524657018
2732  The optional 
2733 \begin_inset Flex Code
2734 status open
2735
2736 \begin_layout Plain Layout
2737
2738 \change_inserted -712698321 1524657012
2739 flavor
2740 \change_unchanged
2741
2742 \end_layout
2743
2744 \end_inset
2745
2746  value specifies the form of \SpecialChar LaTeX
2747  that is run (
2748 \begin_inset Flex Code
2749 status open
2750
2751 \begin_layout Plain Layout
2752
2753 \change_inserted -712698321 1524657005
2754 latex, pdflatex, platex, xetex, luatex
2755 \change_unchanged
2756
2757 \end_layout
2758
2759 \end_inset
2760
2761 ).
2762  If no value is specified, 
2763 \begin_inset Flex Code
2764 status open
2765
2766 \begin_layout Plain Layout
2767
2768 \change_inserted -712698321 1524657018
2769 latex
2770 \change_unchanged
2771
2772 \end_layout
2773
2774 \end_inset
2775
2776  is used.
2777 \change_unchanged
2778
2779 \end_layout
2780
2781 \begin_layout Labeling
2782 \labelwidthstring 00.00.0000
2783 \begin_inset Flex Code
2784 status collapsed
2785
2786 \begin_layout Plain Layout
2787 needaux
2788 \change_inserted -712698321 1524656935
2789 =flavor
2790 \change_unchanged
2791
2792 \end_layout
2793
2794 \end_inset
2795
2796  Needs the \SpecialChar LaTeX
2797  
2798 \begin_inset Flex Noun
2799 status collapsed
2800
2801 \begin_layout Plain Layout
2802 .aux
2803 \end_layout
2804
2805 \end_inset
2806
2807  file for the conversion.
2808
2809 \change_inserted -712698321 1524657047
2810  The optional 
2811 \begin_inset Flex Code
2812 status open
2813
2814 \begin_layout Plain Layout
2815
2816 \change_inserted -712698321 1524657030
2817 flavor
2818 \change_unchanged
2819
2820 \end_layout
2821
2822 \end_inset
2823
2824  value specifies the form of \SpecialChar LaTeX
2825  that is run in order to generate the 
2826 \begin_inset Flex Noun
2827 status collapsed
2828
2829 \begin_layout Plain Layout
2830
2831 \change_inserted -712698321 1524657047
2832 .aux
2833 \change_unchanged
2834
2835 \end_layout
2836
2837 \end_inset
2838
2839  file (
2840 \begin_inset Flex Code
2841 status open
2842
2843 \begin_layout Plain Layout
2844
2845 \change_inserted -712698321 1524657030
2846 latex, pdflatex, platex, xetex, luatex
2847 \change_unchanged
2848
2849 \end_layout
2850
2851 \end_inset
2852
2853 ).
2854  If no value is specified, 
2855 \begin_inset Flex Code
2856 status open
2857
2858 \begin_layout Plain Layout
2859
2860 \change_inserted -712698321 1524657030
2861 latex
2862 \change_unchanged
2863
2864 \end_layout
2865
2866 \end_inset
2867
2868  is used.
2869 \change_unchanged
2870
2871 \end_layout
2872
2873 \begin_layout Labeling
2874 \labelwidthstring 00.00.0000
2875 \begin_inset Flex Code
2876 status collapsed
2877
2878 \begin_layout Plain Layout
2879 nice
2880 \end_layout
2881
2882 \end_inset
2883
2884  Needs a 
2885 \begin_inset Quotes eld
2886 \end_inset
2887
2888 nice
2889 \begin_inset Quotes erd
2890 \end_inset
2891
2892  file from the backend, which in practice means a \SpecialChar LaTeX
2893  file like the one we
2894  would export, without 
2895 \begin_inset Flex Code
2896 status collapsed
2897
2898 \begin_layout Plain Layout
2899 input@path
2900 \end_layout
2901
2902 \end_inset
2903
2904 .
2905 \end_layout
2906
2907 \begin_layout Labeling
2908 \labelwidthstring 00.00.0000
2909 \begin_inset Flex Code
2910 status collapsed
2911
2912 \begin_layout Plain Layout
2913 xml
2914 \end_layout
2915
2916 \end_inset
2917
2918  Output is XML.
2919 \end_layout
2920
2921 \begin_layout Standard
2922 The following three flags are not really flags at all because they take
2923  an argument in the 
2924 \begin_inset Flex Noun
2925 status collapsed
2926
2927 \begin_layout Plain Layout
2928 key
2929 \begin_inset space ~
2930 \end_inset
2931
2932 =
2933 \begin_inset space ~
2934 \end_inset
2935
2936 value
2937 \end_layout
2938
2939 \end_inset
2940
2941  format:
2942 \end_layout
2943
2944 \begin_layout Labeling
2945 \labelwidthstring 00.00.0000
2946
2947 \change_inserted -712698321 1523206314
2948 \begin_inset Flex Code
2949 status collapsed
2950
2951 \begin_layout Plain Layout
2952
2953 \change_inserted -712698321 1523206193
2954 hyperref-driver
2955 \change_unchanged
2956
2957 \end_layout
2958
2959 \end_inset
2960
2961  The name of the driver that needs to be loaded with the 
2962 \family sans
2963 hyperref
2964 \family default
2965  package for this converter.
2966  The loading of the correct driver is necessary to get some PDF-specific
2967  features.
2968  See the 
2969 \family sans
2970 hyperref
2971 \family default
2972  manual for details.
2973 \end_layout
2974
2975 \begin_layout Labeling
2976 \labelwidthstring 00.00.0000
2977 \begin_inset Flex Code
2978 status collapsed
2979
2980 \begin_layout Plain Layout
2981 parselog
2982 \end_layout
2983
2984 \end_inset
2985
2986  If set, the converter's standard error will be redirected to a file 
2987 \begin_inset Flex Code
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991 infile.out
2992 \end_layout
2993
2994 \end_inset
2995
2996 , and the script given as argument will be run as: 
2997 \begin_inset Flex Code
2998 status collapsed
2999
3000 \begin_layout Plain Layout
3001 script < infile.out > infile.log
3002 \end_layout
3003
3004 \end_inset
3005
3006 .
3007  The argument may contain 
3008 \begin_inset Flex Code
3009 status collapsed
3010
3011 \begin_layout Plain Layout
3012 $$s
3013 \end_layout
3014
3015 \end_inset
3016
3017 .
3018 \end_layout
3019
3020 \begin_layout Labeling
3021 \labelwidthstring 00.00.0000
3022 \begin_inset Flex Code
3023 status collapsed
3024
3025 \begin_layout Plain Layout
3026 resultdir
3027 \end_layout
3028
3029 \end_inset
3030
3031  The name of the directory in which the converter will dump the generated
3032  files.
3033  \SpecialChar LyX
3034  will not create this directory, and it does not copy anything into it,
3035  though it will copy this directory to the destination.
3036  The argument may contain 
3037 \begin_inset Flex Code
3038 status collapsed
3039
3040 \begin_layout Plain Layout
3041 $$b
3042 \end_layout
3043
3044 \end_inset
3045
3046 , which will be replaced by the base name of the input and output files,
3047  respectively, when the directory is copied.
3048 \begin_inset Newline newline
3049 \end_inset
3050
3051 Note that resultdir and usetempdir make no sense together.
3052  The latter will be ignored if the former is given.
3053 \end_layout
3054
3055 \begin_layout Labeling
3056 \labelwidthstring 00.00.0000
3057 \begin_inset Flex Code
3058 status collapsed
3059
3060 \begin_layout Plain Layout
3061 resultfile
3062 \end_layout
3063
3064 \end_inset
3065
3066  Determines the output file name and may, contain 
3067 \begin_inset Flex Code
3068 status collapsed
3069
3070 \begin_layout Plain Layout
3071 $$b
3072 \end_layout
3073
3074 \end_inset
3075
3076 .
3077  Sensible only with resultdir and optional even then; if not given, it defaults
3078  to `index'.
3079 \end_layout
3080
3081 \begin_layout Standard
3082
3083 \change_inserted -712698321 1523206384
3084 A suitable hyperref-driver is set for some converters that are installed
3085  with \SpecialChar LyX
3086 .
3087  
3088 \change_deleted -712698321 1523206388
3089 None of these
3090 \change_inserted -712698321 1523206389
3091 The
3092 \change_unchanged
3093  last three
3094 \change_inserted -712698321 1523206400
3095  flags, however,
3096 \change_unchanged
3097  are presently 
3098 \change_inserted -712698321 1523206407
3099 not 
3100 \change_unchanged
3101 used in any of the 
3102 \change_inserted -712698321 1523206437
3103 pre-installed 
3104 \change_unchanged
3105 converters
3106 \change_deleted -712698321 1523206442
3107  that are installed with \SpecialChar LyX
3108
3109 \change_unchanged
3110 .
3111  
3112 \end_layout
3113
3114 \begin_layout Standard
3115 You do not have to define converters for all formats between which you want
3116  to convert.
3117  For example, you will note that there is no `\SpecialChar LyX
3118  to PostScript' converter,
3119  but \SpecialChar LyX
3120  will export PostScript.
3121  It does so by first creating a \SpecialChar LaTeX
3122  file (no converter needs to be defined
3123  for this) which is then converted to DVI using the `\SpecialChar LaTeX
3124  to DVI' converter,
3125  and finally converting the resulting DVI file to PostScript.
3126  \SpecialChar LyX
3127  finds such `chains' of converters automatically, and it will always choose
3128  the shortest possible chain.
3129  You can, though, still define multiple conversion methods between file
3130  formats.
3131  For example, the standard \SpecialChar LyX
3132  configuration provides five ways to convert
3133  \SpecialChar LaTeX
3134  to PDF:
3135 \end_layout
3136
3137 \begin_layout Enumerate
3138 Directly, using 
3139 \begin_inset Flex Noun
3140 status collapsed
3141
3142 \begin_layout Plain Layout
3143 pdflatex
3144 \end_layout
3145
3146 \end_inset
3147
3148
3149 \end_layout
3150
3151 \begin_layout Enumerate
3152 via (DVI and) PostScript, using 
3153 \begin_inset Flex Noun
3154 status collapsed
3155
3156 \begin_layout Plain Layout
3157 ps2pdf
3158 \end_layout
3159
3160 \end_inset
3161
3162
3163 \end_layout
3164
3165 \begin_layout Enumerate
3166 via DVI, using 
3167 \begin_inset Flex Noun
3168 status collapsed
3169
3170 \begin_layout Plain Layout
3171 dvipdfm
3172 \end_layout
3173
3174 \end_inset
3175
3176
3177 \end_layout
3178
3179 \begin_layout Enumerate
3180 directly using 
3181 \begin_inset Flex Noun
3182 status collapsed
3183
3184 \begin_layout Plain Layout
3185 Xe\SpecialChar TeX
3186
3187 \end_layout
3188
3189 \end_inset
3190
3191
3192 \end_layout
3193
3194 \begin_layout Enumerate
3195 directly using 
3196 \begin_inset Flex Noun
3197 status collapsed
3198
3199 \begin_layout Plain Layout
3200 Lua\SpecialChar TeX
3201
3202 \end_layout
3203
3204 \end_inset
3205
3206
3207 \end_layout
3208
3209 \begin_layout Standard
3210 To define such alternate chains, you must define multiple target `file formats',
3211  as described in 
3212 \begin_inset CommandInset ref
3213 LatexCommand ref
3214 reference "sec:Formats"
3215
3216 \end_inset
3217
3218 .
3219  For example, in the standard configuration, the formats named 
3220 \begin_inset Flex Noun
3221 status collapsed
3222
3223 \begin_layout Plain Layout
3224 pdf
3225 \end_layout
3226
3227 \end_inset
3228
3229  (for 
3230 \begin_inset Flex Noun
3231 status collapsed
3232
3233 \begin_layout Plain Layout
3234 ps2pdf
3235 \end_layout
3236
3237 \end_inset
3238
3239 ), 
3240 \begin_inset Flex Noun
3241 status collapsed
3242
3243 \begin_layout Plain Layout
3244 pdf2
3245 \end_layout
3246
3247 \end_inset
3248
3249  (for 
3250 \begin_inset Flex Noun
3251 status collapsed
3252
3253 \begin_layout Plain Layout
3254 pdflatex
3255 \end_layout
3256
3257 \end_inset
3258
3259 ), 
3260 \begin_inset Flex Noun
3261 status collapsed
3262
3263 \begin_layout Plain Layout
3264 pdf3
3265 \end_layout
3266
3267 \end_inset
3268
3269  (for 
3270 \begin_inset Flex Noun
3271 status collapsed
3272
3273 \begin_layout Plain Layout
3274 dvipdfm
3275 \end_layout
3276
3277 \end_inset
3278
3279 ), 
3280 \begin_inset Flex Noun
3281 status collapsed
3282
3283 \begin_layout Plain Layout
3284 pdf4
3285 \end_layout
3286
3287 \end_inset
3288
3289  (for 
3290 \begin_inset Flex Noun
3291 status collapsed
3292
3293 \begin_layout Plain Layout
3294 Xe\SpecialChar TeX
3295
3296 \end_layout
3297
3298 \end_inset
3299
3300 ), and 
3301 \begin_inset Flex Noun
3302 status collapsed
3303
3304 \begin_layout Plain Layout
3305 pdf5
3306 \end_layout
3307
3308 \end_inset
3309
3310  (for 
3311 \begin_inset Flex Noun
3312 status collapsed
3313
3314 \begin_layout Plain Layout
3315 Lua\SpecialChar TeX
3316
3317 \end_layout
3318
3319 \end_inset
3320
3321 ) are defined, all of which share the extension 
3322 \begin_inset Flex Noun
3323 status collapsed
3324
3325 \begin_layout Plain Layout
3326 .pdf
3327 \end_layout
3328
3329 \end_inset
3330
3331 , and which correspond to the conversion methods just mentioned.
3332 \end_layout
3333
3334 \begin_layout Chapter
3335 Internationalizing \SpecialChar LyX
3336
3337 \begin_inset CommandInset label
3338 LatexCommand label
3339 name "cha:Internationalizing-LyX"
3340
3341 \end_inset
3342
3343
3344 \end_layout
3345
3346 \begin_layout Standard
3347 \SpecialChar LyX
3348  supports using a translated interface.
3349  Last time we checked, \SpecialChar LyX
3350  provided text in thirty languages.
3351  The language of choice is called your 
3352 \emph on
3353 locale
3354 \emph default
3355 .
3356  (For further reading on locale settings, see also the documentation for
3357  locale that comes with your operating system.
3358  For Linux, the manual page for 
3359 \begin_inset Flex Code
3360 status collapsed
3361
3362 \begin_layout Plain Layout
3363 locale(5)
3364 \end_layout
3365
3366 \end_inset
3367
3368  could be a good place to start).
3369 \end_layout
3370
3371 \begin_layout Standard
3372 Notice that these translations will work, but do contain a few flaws.
3373  In particular, all dialogs have been designed with the English text in
3374  mind, which means that some of the translated text will be too large to
3375  fit within the space allocated.
3376  This is only a display problem and will not cause any harm.
3377  Also, you will find that some of the translations do not define shortcut
3378  keys for everything.
3379  Sometimes, there are simply not enough free letters to do it.
3380  Other times, the translator just hasn't got around to doing it yet.
3381  Our localization team, which you may wish to join,
3382 \begin_inset Foot
3383 status collapsed
3384
3385 \begin_layout Plain Layout
3386 If you are a fluent speaker of a language other than English, joining these
3387  teams is a great way to give back to the \SpecialChar LyX
3388  community!
3389 \end_layout
3390
3391 \end_inset
3392
3393  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3394 .
3395 \end_layout
3396
3397 \begin_layout Section
3398 Translating \SpecialChar LyX
3399
3400 \end_layout
3401
3402 \begin_layout Subsection
3403 Translating the graphical user interface (text messages).
3404 \end_layout
3405
3406 \begin_layout Standard
3407 \SpecialChar LyX
3408  uses the GNU 
3409 \begin_inset Flex Code
3410 status collapsed
3411
3412 \begin_layout Plain Layout
3413 gettext
3414 \end_layout
3415
3416 \end_inset
3417
3418  library to handle the internationalization of the interface.
3419  To have \SpecialChar LyX
3420  speak your favorite language in all menus and dialogs, you need
3421  a 
3422 \begin_inset Flex Code
3423 status collapsed
3424
3425 \begin_layout Plain Layout
3426 po
3427 \end_layout
3428
3429 \end_inset
3430
3431 -file for that language.
3432  When this is available, you'll have to generate a 
3433 \begin_inset Flex Code
3434 status collapsed
3435
3436 \begin_layout Plain Layout
3437 mo
3438 \end_layout
3439
3440 \end_inset
3441
3442 -file from it and install the 
3443 \begin_inset Flex Code
3444 status collapsed
3445
3446 \begin_layout Plain Layout
3447 mo
3448 \end_layout
3449
3450 \end_inset
3451
3452 -file.
3453  The process of doing all of this is explained in the documentation for
3454  GNU 
3455 \begin_inset Flex Code
3456 status collapsed
3457
3458 \begin_layout Plain Layout
3459 gettext
3460 \end_layout
3461
3462 \end_inset
3463
3464 .
3465  It is possible to do this just for yourself, but if you're going to do
3466  it, you might as well share the results of your labors with the rest of
3467  the \SpecialChar LyX
3468  community.
3469  Send a message to the \SpecialChar LyX
3470  developers' list for more information about how
3471  to proceed.
3472 \end_layout
3473
3474 \begin_layout Standard
3475 In short, this is what you should do (xx denotes the language code):
3476 \end_layout
3477
3478 \begin_layout Itemize
3479 Check out the \SpecialChar LyX
3480  source code.
3481  (See the 
3482 \begin_inset CommandInset href
3483 LatexCommand href
3484 name "information on the web"
3485 target "https://www.lyx.org/HowToUseGIT"
3486 literal "false"
3487
3488 \end_inset
3489
3490 .)
3491 \end_layout
3492
3493 \begin_layout Itemize
3494 Copy the file 
3495 \begin_inset Flex Code
3496 status collapsed
3497
3498 \begin_layout Plain Layout
3499 lyx.pot
3500 \end_layout
3501
3502 \end_inset
3503
3504  to the folder of the 
3505 \begin_inset Flex Code
3506 status collapsed
3507
3508 \begin_layout Plain Layout
3509 **.po
3510 \end_layout
3511
3512 \end_inset
3513
3514  files.
3515  Then rename it to 
3516 \begin_inset Flex Code
3517 status collapsed
3518
3519 \begin_layout Plain Layout
3520 xx.po
3521 \end_layout
3522
3523 \end_inset
3524
3525 .
3526  (If 
3527 \begin_inset Flex Code
3528 status collapsed
3529
3530 \begin_layout Plain Layout
3531 lyx.pot
3532 \end_layout
3533
3534 \end_inset
3535
3536  doesn't exist anywhere, it can be remade with the console command 
3537 \begin_inset Flex Code
3538 status collapsed
3539
3540 \begin_layout Plain Layout
3541 make lyx.pot
3542 \end_layout
3543
3544 \end_inset
3545
3546  in that directory, or you can use an existing po-file for some other language
3547  as a template).
3548 \end_layout
3549
3550 \begin_layout Itemize
3551 Edit 
3552 \begin_inset Flex Code
3553 status collapsed
3554
3555 \begin_layout Plain Layout
3556 xx.po
3557 \end_layout
3558
3559 \end_inset
3560
3561 .
3562 \begin_inset Foot
3563 status collapsed
3564
3565 \begin_layout Plain Layout
3566 This is just a text file, so it can be edited in any text editor.
3567  But there are also specialized programs that support such editing, such
3568  as 
3569 \family typewriter
3570 Poedit
3571 \family default
3572  (for all platforms) or 
3573 \family typewriter
3574 KBabel
3575 \family default
3576  (for KDE).
3577  
3578 \family typewriter
3579 Emacs
3580 \family default
3581  contains a `mode' for editing 
3582 \begin_inset Flex Code
3583 status collapsed
3584
3585 \begin_layout Plain Layout
3586 po
3587 \end_layout
3588
3589 \end_inset
3590
3591  files, as well, see 
3592 \begin_inset Flex URL
3593 status open
3594
3595 \begin_layout Plain Layout
3596
3597 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3598 \end_layout
3599
3600 \end_inset
3601
3602 .
3603 \end_layout
3604
3605 \end_inset
3606
3607  For some menu- and widget-labels, there are also shortcut keys that should
3608  be translated.
3609  Those keys are marked after a `|', and should be translated according to
3610  the words and phrases of the language.
3611  You should also fill also out the information at the beginning of the new
3612  
3613 \begin_inset Flex Code
3614 status collapsed
3615
3616 \begin_layout Plain Layout
3617 po
3618 \end_layout
3619
3620 \end_inset
3621
3622 -file with your email-address, etc., so people know where to reach you with
3623  suggestions and entertaining flames.
3624 \end_layout
3625
3626 \begin_layout Standard
3627 If you are just doing this on your own, then:
3628 \end_layout
3629
3630 \begin_layout Itemize
3631 Generate 
3632 \begin_inset Flex Code
3633 status collapsed
3634
3635 \begin_layout Plain Layout
3636 xx.mo
3637 \end_layout
3638
3639 \end_inset
3640
3641 .
3642  This can be done with 
3643 \begin_inset Flex Code
3644 status collapsed
3645
3646 \begin_layout Plain Layout
3647 msgfmt -o xx.mo < xx.po
3648 \end_layout
3649
3650 \end_inset
3651
3652 .
3653 \end_layout
3654
3655 \begin_layout Itemize
3656 Copy the 
3657 \begin_inset Flex Code
3658 status collapsed
3659
3660 \begin_layout Plain Layout
3661 mo
3662 \end_layout
3663
3664 \end_inset
3665
3666 -file to your locale-tree, at the correct directory for application messages
3667  for the language
3668 \series bold
3669  
3670 \series default
3671 xx, and under the name 
3672 \begin_inset Flex Code
3673 status collapsed
3674
3675 \begin_layout Plain Layout
3676 lyx.mo
3677 \end_layout
3678
3679 \end_inset
3680
3681  (e.
3682 \begin_inset space \thinspace{}
3683 \end_inset
3684
3685 g.
3686 \begin_inset space \space{}
3687 \end_inset
3688
3689
3690 \begin_inset Flex Code
3691 status collapsed
3692
3693 \begin_layout Plain Layout
3694 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3695 \end_layout
3696
3697 \end_inset
3698
3699
3700 \series bold
3701 .
3702 \end_layout
3703
3704 \begin_layout Standard
3705 As said, however, it would be best if the new 
3706 \begin_inset Flex Code
3707 status collapsed
3708
3709 \begin_layout Plain Layout
3710 po
3711 \end_layout
3712
3713 \end_inset
3714
3715  file could be added to the \SpecialChar LyX
3716  distribution, so others can use it.
3717  Adding it involves making additional changes to \SpecialChar LyX
3718 .
3719  So send an email to the developers' mailing list if you're interested in
3720  doing that.
3721 \end_layout
3722
3723 \begin_layout Subsubsection
3724 Ambiguous messages
3725 \end_layout
3726
3727 \begin_layout Standard
3728 Sometimes it turns out that one English message needs to be translated into
3729  different messages in the target language.
3730  One example is the message 
3731 \begin_inset Flex Code
3732 status collapsed
3733
3734 \begin_layout Plain Layout
3735 To
3736 \end_layout
3737
3738 \end_inset
3739
3740  which has the German translation 
3741 \lang german
3742 Nach
3743 \lang english
3744  or 
3745 \lang german
3746 Bis
3747 \lang english
3748 , depending upon exactly what the English 
3749 \begin_inset Quotes eld
3750 \end_inset
3751
3752 to
3753 \begin_inset Quotes erd
3754 \end_inset
3755
3756  means.
3757  GNU 
3758 \begin_inset Flex Code
3759 status collapsed
3760
3761 \begin_layout Plain Layout
3762 gettext
3763 \end_layout
3764
3765 \end_inset
3766
3767  does not handle such ambiguous translations.
3768  Therefore you have to add some context information to the message: Instead
3769  of 
3770 \begin_inset Flex Code
3771 status collapsed
3772
3773 \begin_layout Plain Layout
3774 To
3775 \end_layout
3776
3777 \end_inset
3778
3779  it becomes 
3780 \begin_inset Flex Code
3781 status collapsed
3782
3783 \begin_layout Plain Layout
3784 To[[as in 'From format x to format y']]
3785 \end_layout
3786
3787 \end_inset
3788
3789  and 
3790 \begin_inset Flex Code
3791 status collapsed
3792
3793 \begin_layout Plain Layout
3794 To[[as in 'From page x to page y']].
3795 \end_layout
3796
3797 \end_inset
3798
3799  Now the two occurrences of 
3800 \begin_inset Flex Code
3801 status collapsed
3802
3803 \begin_layout Plain Layout
3804 To
3805 \end_layout
3806
3807 \end_inset
3808
3809  are different for 
3810 \begin_inset Flex Code
3811 status collapsed
3812
3813 \begin_layout Plain Layout
3814 gettext
3815 \end_layout
3816
3817 \end_inset
3818
3819  and can be translated correctly to 
3820 \lang german
3821 Nach
3822 \lang english
3823  and 
3824 \lang german
3825 Bis
3826 \lang english
3827 , respectively.
3828 \end_layout
3829
3830 \begin_layout Standard
3831 Of course the context information needs to be stripped off the original
3832  message when no translation is used.
3833  Therefore you have to put it in double square brackets at the end of the
3834  message (see the example above).
3835  The translation mechanism of \SpecialChar LyX
3836  ensures that everything in double square
3837  brackets at the end of messages is removed before displaying the message.
3838 \end_layout
3839
3840 \begin_layout Subsection
3841 Translating the documentation.
3842 \end_layout
3843
3844 \begin_layout Standard
3845 The online documentation (in the 
3846 \begin_inset Flex Noun
3847 status collapsed
3848
3849 \begin_layout Plain Layout
3850 Help
3851 \end_layout
3852
3853 \end_inset
3854
3855 -menu) can (and should!) be translated.
3856  If there are translated versions of the documentation available
3857 \begin_inset Foot
3858 status collapsed
3859
3860 \begin_layout Plain Layout
3861 As of March 2008, at least some of the documents have been translated into
3862  fourteen languages, with the Tutorial available in a few more.
3863 \end_layout
3864
3865 \end_inset
3866
3867  and the locale is set accordingly, these will be used automagically by
3868  \SpecialChar LyX
3869 .
3870  \SpecialChar LyX
3871  looks for translated versions as 
3872 \begin_inset Flex Code
3873 status collapsed
3874
3875 \begin_layout Plain Layout
3876 LyXDir/doc/xx/DocName.lyx
3877 \end_layout
3878
3879 \end_inset
3880
3881 , where 
3882 \begin_inset Flex Code
3883 status collapsed
3884
3885 \begin_layout Plain Layout
3886 xx
3887 \end_layout
3888
3889 \end_inset
3890
3891  is the code for the language currently in use.
3892  If there are no translated documents, the default English versions will
3893  be displayed.
3894  Note that the translated versions must have the same filenames (
3895 \begin_inset Flex Code
3896 status collapsed
3897
3898 \begin_layout Plain Layout
3899 DocName
3900 \end_layout
3901
3902 \end_inset
3903
3904  above) as the original.
3905  If you feel up to translating the documentation (an excellent way to proof-read
3906  the original documentation by the way!), there are a few things you should
3907  do right away:
3908 \end_layout
3909
3910 \begin_layout Itemize
3911 Check out the documentation translation web page at 
3912 \begin_inset CommandInset href
3913 LatexCommand href
3914 name "https://www.lyx.org/Translation"
3915 target "https://www.lyx.org/Translation"
3916 literal "false"
3917
3918 \end_inset
3919
3920 .
3921  That way, you can find out which (if any) documents have already been translate
3922 d into your language.
3923  You can also find out who (if anyone) is organizing the effort to translate
3924  the documentation into your language.
3925  If no one is organizing the effort, please let us know that you're interested.
3926 \end_layout
3927
3928 \begin_layout Standard
3929 Once you get to actually translating, here's a few hints for you that may
3930  save you trouble:
3931 \end_layout
3932
3933 \begin_layout Itemize
3934 Join the documentation team! There is information on how to do that in 
3935 \begin_inset Flex Code
3936 status collapsed
3937
3938 \begin_layout Plain Layout
3939 Intro.lyx
3940 \end_layout
3941
3942 \end_inset
3943
3944  (
3945 \begin_inset Flex Noun
3946 status collapsed
3947
3948 \begin_layout Plain Layout
3949 Help\SpecialChar menuseparator
3950 Introduction
3951 \end_layout
3952
3953 \end_inset
3954
3955 ), which by the way is the first document you should translate.
3956 \end_layout
3957
3958 \begin_layout Itemize
3959 Learn the typographic conventions for the language you are translating to.
3960  Typography is an ancient art and over the centuries, a great variety of
3961  conventions have developed throughout different parts of the world.
3962  Also study the professional terminology amongst typographers in your country.
3963  Inventing your own terminology will only confuse the users.
3964  
3965 \emph on
3966 (Warning! Typography is addictive!)
3967 \end_layout
3968
3969 \begin_layout Itemize
3970 Make a copy of the document.
3971  This will be your working copy.
3972  You can use this as your personal translated help-file by placing it in
3973  your 
3974 \begin_inset Flex Code
3975 status collapsed
3976
3977 \begin_layout Plain Layout
3978 UserDir/doc/xx/
3979 \end_layout
3980
3981 \end_inset
3982
3983  directory.
3984 \begin_inset Note Greyedout
3985 status open
3986
3987 \begin_layout Plain Layout
3988
3989 \series bold
3990 Note:
3991 \series default
3992  For a complex document with external material (images, etc.), if you make
3993  a copy e.
3994 \begin_inset space \thinspace{}
3995 \end_inset
3996
3997 g.
3998 \begin_inset space \space{}
3999 \end_inset
4000
4001 in a temp dir, beware that the links to external material may be broken
4002  when the document is moved to a different place.
4003  The best way is to retrieve the \SpecialChar LyX
4004  tree from git (see 
4005 \begin_inset Flex URL
4006 status collapsed
4007
4008 \begin_layout Plain Layout
4009
4010 https://www.lyx.org/HowToUseGIT
4011 \end_layout
4012
4013 \end_inset
4014
4015 ) and to edit the doc file in place.
4016 \end_layout
4017
4018 \end_inset
4019
4020
4021 \end_layout
4022
4023 \begin_layout Itemize
4024 Sometimes the original document (from the \SpecialChar LyX
4025  team) will be updated.
4026  Use the source viewer at 
4027 \begin_inset CommandInset href
4028 LatexCommand href
4029 name "https://www.lyx.org/trac/timeline"
4030 target "https://www.lyx.org/trac/timeline"
4031 literal "false"
4032
4033 \end_inset
4034
4035  to see what has been changed.
4036  That way you can easily see which parts of the translated document need
4037  to be updated.
4038 \end_layout
4039
4040 \begin_layout Standard
4041 If you ever find an error in the original document, fix it and notify the
4042  rest of the documentation team of the changes! (You didn't forget to join
4043  the documentation team, did you?)
4044 \end_layout
4045
4046 \begin_layout Standard
4047 \begin_inset Branch OutDated
4048 inverted 0
4049 status collapsed
4050
4051 \begin_layout Section
4052 International Keyboard Support
4053 \end_layout
4054
4055 \begin_layout Standard
4056
4057 \emph on
4058 [Editor's Note: The following section is by
4059 \emph default
4060  
4061 \shape smallcaps
4062 \emph on
4063 Ivan Schreter
4064 \shape default
4065 .
4066  It needs to be fixed to conform to the new Documentation Style sheet and
4067  to make use of the new v1.0 features.
4068  The whole thing also needs to be merged with the section following it.-jw
4069  It may also be badly out of date.-rh (2008)]
4070 \end_layout
4071
4072 \begin_layout Subsection
4073 Defining Own Keymaps: Keymap File Format
4074 \end_layout
4075
4076 \begin_layout Standard
4077 Let's look at a keyboard definition file a little closer.
4078  It is a plain text file defining
4079 \end_layout
4080
4081 \begin_layout Itemize
4082 key-to-key or key-to-string translations
4083 \end_layout
4084
4085 \begin_layout Itemize
4086 dead keys
4087 \end_layout
4088
4089 \begin_layout Itemize
4090 dead keys exceptions
4091 \end_layout
4092
4093 \begin_layout Standard
4094 To define key-to-key or key-to-string translation, use this command:
4095 \end_layout
4096
4097 \begin_layout Quotation
4098 \begin_inset Flex Code
4099 status collapsed
4100
4101 \begin_layout Plain Layout
4102
4103 \backslash
4104 kmap
4105 \end_layout
4106
4107 \end_inset
4108
4109  
4110 \begin_inset Flex Code
4111 status collapsed
4112
4113 \begin_layout Plain Layout
4114 key
4115 \end_layout
4116
4117 \end_inset
4118
4119  outstring 
4120 \end_layout
4121
4122 \begin_layout Standard
4123 where 
4124 \begin_inset Flex Code
4125 status collapsed
4126
4127 \begin_layout Plain Layout
4128 key
4129 \end_layout
4130
4131 \end_inset
4132
4133  is the key to be translated and 
4134 \begin_inset Flex Code
4135 status collapsed
4136
4137 \begin_layout Plain Layout
4138 outstring
4139 \end_layout
4140
4141 \end_inset
4142
4143  is the string to be inserted into the document.
4144  To define dead keys, use:
4145 \end_layout
4146
4147 \begin_layout Quotation
4148 \begin_inset Flex Code
4149 status collapsed
4150
4151 \begin_layout Plain Layout
4152
4153 \backslash
4154 kmod
4155 \end_layout
4156
4157 \end_inset
4158
4159  
4160 \begin_inset Flex Code
4161 status collapsed
4162
4163 \begin_layout Plain Layout
4164 key
4165 \end_layout
4166
4167 \end_inset
4168
4169  deadkey
4170 \end_layout
4171
4172 \begin_layout Standard
4173 where 
4174 \begin_inset Flex Code
4175 status collapsed
4176
4177 \begin_layout Plain Layout
4178 key
4179 \end_layout
4180
4181 \end_inset
4182
4183  is a keyboard key and 
4184 \begin_inset Flex Code
4185 status collapsed
4186
4187 \begin_layout Plain Layout
4188 deadkey
4189 \end_layout
4190
4191 \end_inset
4192
4193  is dead key name.
4194  The following dead keys are supported (shortcut name is in parentheses):
4195 \end_layout
4196
4197 \begin_layout Quotation
4198
4199 \emph on
4200 Name
4201 \begin_inset space \hfill{}
4202 \end_inset
4203
4204 Example
4205 \end_layout
4206
4207 \begin_layout Quotation
4208 acute (acu)
4209 \begin_inset space \hfill{}
4210 \end_inset
4211
4212 áéíóú
4213 \end_layout
4214
4215 \begin_layout Quotation
4216 grave (gra)
4217 \begin_inset space \hfill{}
4218 \end_inset
4219
4220 àèìòù
4221 \end_layout
4222
4223 \begin_layout Quotation
4224 macron (mac)
4225 \begin_inset space \hfill{}
4226 \end_inset
4227
4228  ō
4229 \end_layout
4230
4231 \begin_layout Quotation
4232 tilde (til)
4233 \begin_inset space \hfill{}
4234 \end_inset
4235
4236 ñÑ
4237 \end_layout
4238
4239 \begin_layout Quotation
4240 underbar (underb)
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 b o
4253 \end_layout
4254
4255 \end_inset
4256
4257
4258 \end_layout
4259
4260 \begin_layout Quotation
4261 cedilla (ced)
4262 \begin_inset space \hfill{}
4263 \end_inset
4264
4265 çÇ
4266 \end_layout
4267
4268 \begin_layout Quotation
4269 underdot (underd)
4270 \begin_inset space \hfill{}
4271 \end_inset
4272
4273
4274 \begin_inset ERT
4275 status open
4276
4277 \begin_layout Plain Layout
4278
4279
4280 \backslash
4281 d o
4282 \end_layout
4283
4284 \end_inset
4285
4286
4287 \end_layout
4288
4289 \begin_layout Quotation
4290 circumflex (circu)
4291 \begin_inset space \hfill{}
4292 \end_inset
4293
4294 âêîôû
4295 \end_layout
4296
4297 \begin_layout Quotation
4298 circle (circl)
4299 \begin_inset space \hfill{}
4300 \end_inset
4301
4302 ÅůŮ
4303 \end_layout
4304
4305 \begin_layout Quotation
4306 tie (tie)
4307 \begin_inset space \hfill{}
4308 \end_inset
4309
4310
4311 \begin_inset ERT
4312 status open
4313
4314 \begin_layout Plain Layout
4315
4316
4317 \backslash
4318 t o
4319 \end_layout
4320
4321 \end_inset
4322
4323
4324 \end_layout
4325
4326 \begin_layout Quotation
4327 breve (bre)
4328 \begin_inset space \hfill{}
4329 \end_inset
4330
4331 ă
4332 \begin_inset ERT
4333 status open
4334
4335 \begin_layout Plain Layout
4336
4337
4338 \backslash
4339 u o
4340 \end_layout
4341
4342 \end_inset
4343
4344
4345 \end_layout
4346
4347 \begin_layout Quotation
4348 caron (car)
4349 \begin_inset space \hfill{}
4350 \end_inset
4351
4352 čšž
4353 \end_layout
4354
4355 \begin_layout Quotation
4356 hungarian umlaut (hug)
4357 \begin_inset space \hfill{}
4358 \end_inset
4359
4360 őű
4361 \end_layout
4362
4363 \begin_layout Quotation
4364 umlaut (uml)
4365 \begin_inset space \hfill{}
4366 \end_inset
4367
4368 äöü
4369 \end_layout
4370
4371 \begin_layout Quotation
4372 dot (dot)
4373 \begin_inset space \hfill{}
4374 \end_inset
4375
4376 ż
4377 \begin_inset ERT
4378 status open
4379
4380 \begin_layout Plain Layout
4381
4382
4383 \backslash
4384 .s
4385 \end_layout
4386
4387 \end_inset
4388
4389
4390 \end_layout
4391
4392 \begin_layout Standard
4393 Since in many international keyboards there are exceptions to what some
4394  dead keys should do, you can define them using
4395 \end_layout
4396
4397 \begin_layout Quotation
4398 \begin_inset Flex Code
4399 status collapsed
4400
4401 \begin_layout Plain Layout
4402
4403 \backslash
4404 kxmod
4405 \end_layout
4406
4407 \end_inset
4408
4409  deadkey key outstring
4410 \end_layout
4411
4412 \begin_layout Standard
4413 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4414 , so you put in
4415 \end_layout
4416
4417 \begin_layout Quotation
4418 \begin_inset Flex Code
4419 status collapsed
4420
4421 \begin_layout Plain Layout
4422
4423 \backslash
4424 kxmod
4425 \end_layout
4426
4427 \end_inset
4428
4429  caron o "
4430 \backslash
4431 ^o"
4432 \end_layout
4433
4434 \begin_layout Standard
4435 to make it work correctly.
4436  Also, you have to define as exceptions dead keys over i and j, to remove
4437  the dot from them before inserting an accent mark.
4438  I will change this when the time comes, but so far I haven't had time.
4439 \end_layout
4440
4441 \begin_layout Standard
4442 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4443  double backslash.
4444  Also, quotes and 
4445 \begin_inset Flex Code
4446 status collapsed
4447
4448 \begin_layout Plain Layout
4449 #
4450 \end_layout
4451
4452 \end_inset
4453
4454  have different meaning.
4455  
4456 \begin_inset Flex Code
4457 status collapsed
4458
4459 \begin_layout Plain Layout
4460 #
4461 \end_layout
4462
4463 \end_inset
4464
4465  marks comments, quotes start and end \SpecialChar LaTeX
4466 -style commands.
4467  To enter quote, you'll need to use 
4468 \begin_inset Flex Code
4469 status collapsed
4470
4471 \begin_layout Plain Layout
4472
4473 \backslash
4474 "
4475 \end_layout
4476
4477 \end_inset
4478
4479 , to enter 
4480 \begin_inset Flex Code
4481 status collapsed
4482
4483 \begin_layout Plain Layout
4484 #
4485 \end_layout
4486
4487 \end_inset
4488
4489 , use 
4490 \begin_inset Flex Code
4491 status collapsed
4492
4493 \begin_layout Plain Layout
4494
4495 \backslash
4496 #
4497 \end_layout
4498
4499 \end_inset
4500
4501 .
4502 \end_layout
4503
4504 \begin_layout Standard
4505 If you make a keyboard description file that works for your language, please
4506  mail it to me, so I can include it in the next keymap distribution.
4507 \end_layout
4508
4509 \begin_layout Standard
4510 More keywords will be supported in keymap configuration file in future,
4511  like
4512 \end_layout
4513
4514 \begin_layout Itemize
4515 \begin_inset Flex Code
4516 status collapsed
4517
4518 \begin_layout Plain Layout
4519
4520 \backslash
4521 kinclude filename
4522 \end_layout
4523
4524 \end_inset
4525
4526
4527 \emph on
4528
4529 \begin_inset space \hfill{}
4530 \end_inset
4531
4532
4533 \begin_inset Flex Code
4534 status collapsed
4535
4536 \begin_layout Plain Layout
4537 include
4538 \end_layout
4539
4540 \end_inset
4541
4542  another file
4543 \end_layout
4544
4545 \begin_layout Itemize
4546 \begin_inset Flex Code
4547 status collapsed
4548
4549 \begin_layout Plain Layout
4550
4551 \backslash
4552 kprog program
4553 \end_layout
4554
4555 \end_inset
4556
4557
4558 \emph on
4559
4560 \begin_inset space \hfill{}
4561 \end_inset
4562
4563
4564 \begin_inset Flex Code
4565 status collapsed
4566
4567 \begin_layout Plain Layout
4568 define
4569 \end_layout
4570
4571 \end_inset
4572
4573  an external keymap translation program 
4574 \end_layout
4575
4576 \begin_layout Standard
4577 Also, it should look into 
4578 \begin_inset Flex Code
4579 status collapsed
4580
4581 \begin_layout Plain Layout
4582 lyxrc
4583 \end_layout
4584
4585 \end_inset
4586
4587  file for defaults, too (for example, a 
4588 \begin_inset Flex Code
4589 status collapsed
4590
4591 \begin_layout Plain Layout
4592
4593 \backslash
4594 kinclude
4595 \end_layout
4596
4597 \end_inset
4598
4599  option to include default keyboard).
4600 \end_layout
4601
4602 \end_inset
4603
4604
4605 \end_layout
4606
4607 \begin_layout Section
4608 International Keymap Stuff
4609 \begin_inset CommandInset label
4610 LatexCommand label
4611 name "sec:International-Keymap-Stuff"
4612
4613 \end_inset
4614
4615
4616 \end_layout
4617
4618 \begin_layout Standard
4619 \begin_inset Note Note
4620 status open
4621
4622 \begin_layout Plain Layout
4623 In doing the revisions on this document in March 2008, I did not look over
4624  this stuff, as I do not understand it.
4625  It would be good if someone else could do so.
4626  (RH)
4627 \end_layout
4628
4629 \end_inset
4630
4631
4632 \end_layout
4633
4634 \begin_layout Standard
4635 The next two sections describe the 
4636 \begin_inset Flex Code
4637 status collapsed
4638
4639 \begin_layout Plain Layout
4640
4641 \shape up
4642 .kmap
4643 \end_layout
4644
4645 \end_inset
4646
4647  and 
4648 \begin_inset Flex Code
4649 status collapsed
4650
4651 \begin_layout Plain Layout
4652
4653 \shape up
4654 .cdef
4655 \end_layout
4656
4657 \end_inset
4658
4659  file syntax in detail.
4660  These sections should help you design your own key map if the ones provided
4661  do not meet your needs.
4662 \end_layout
4663
4664 \begin_layout Subsection
4665 The .kmap File
4666 \end_layout
4667
4668 \begin_layout Standard
4669
4670 \shape up
4671 .
4672 \begin_inset Flex Code
4673 status collapsed
4674
4675 \begin_layout Plain Layout
4676 kmap
4677 \end_layout
4678
4679 \end_inset
4680
4681  file maps keystrokes to characters or strings.
4682  As the name suggests, it sets a keyboard mapping.
4683  The 
4684 \begin_inset Flex Code
4685 status collapsed
4686
4687 \begin_layout Plain Layout
4688 .kmap
4689 \end_layout
4690
4691 \end_inset
4692
4693
4694 \shape default
4695  file keywords 
4696 \shape up
4697
4698 \begin_inset Flex Code
4699 status collapsed
4700
4701 \begin_layout Plain Layout
4702
4703 \shape up
4704 kmap
4705 \end_layout
4706
4707 \end_inset
4708
4709
4710 \shape default
4711 ,
4712 \shape up
4713  
4714 \shape default
4715
4716 \begin_inset Flex Code
4717 status collapsed
4718
4719 \begin_layout Plain Layout
4720
4721 \shape up
4722 kmod
4723 \end_layout
4724
4725 \end_inset
4726
4727 ,
4728 \shape up
4729  
4730 \shape default
4731
4732 \begin_inset Flex Code
4733 status collapsed
4734
4735 \begin_layout Plain Layout
4736
4737 \shape up
4738 kxmod
4739 \end_layout
4740
4741 \end_inset
4742
4743 , and 
4744 \begin_inset Flex Code
4745 status collapsed
4746
4747 \begin_layout Plain Layout
4748
4749 \shape up
4750 kcomb
4751 \end_layout
4752
4753 \end_inset
4754
4755  are described in this section.
4756 \end_layout
4757
4758 \begin_layout Labeling
4759 \labelwidthstring 00.00.0000
4760 \begin_inset Flex Code
4761 status collapsed
4762
4763 \begin_layout Plain Layout
4764
4765 \shape up
4766 kmap
4767 \end_layout
4768
4769 \end_inset
4770
4771  Map a character to a string
4772 \end_layout
4773
4774 \begin_layout LyX-Code
4775
4776 \backslash
4777 kmap 
4778 \family roman
4779 \emph on
4780 char
4781 \family default
4782 \emph default
4783  
4784 \family roman
4785 \emph on
4786 string
4787 \end_layout
4788
4789 \begin_layout Standard
4790 This will ma
4791 \family roman
4792 p
4793 \family default
4794  
4795 \family roman
4796 \emph on
4797 char
4798 \family default
4799 \emph default
4800  
4801 \family roman
4802 to
4803 \family default
4804  
4805 \family roman
4806 \emph on
4807 string
4808 \emph default
4809 .
4810  Note that in
4811 \family default
4812  
4813 \family roman
4814 \emph on
4815 string
4816 \emph default
4817 ,
4818 \family default
4819  
4820 \family roman
4821 \shape up
4822 the double-quote (")
4823 \family default
4824 \shape default
4825  
4826 \family roman
4827 and
4828 \family default
4829  
4830 \family roman
4831 \shape up
4832 the backslash (
4833 \backslash
4834 )
4835 \family default
4836 \shape default
4837  
4838 \family roman
4839 must be escaped with a preceding backslash (
4840 \shape up
4841
4842 \backslash
4843
4844 \shape default
4845 )
4846 \family default
4847 .
4848 \end_layout
4849
4850 \begin_layout Standard
4851 An example of a 
4852 \begin_inset Flex Noun
4853 status collapsed
4854
4855 \begin_layout Plain Layout
4856
4857 \shape up
4858 kmap
4859 \end_layout
4860
4861 \end_inset
4862
4863  statement to cause the symbol 
4864 \begin_inset Flex Noun
4865 status collapsed
4866
4867 \begin_layout Plain Layout
4868
4869 \shape up
4870 /
4871 \end_layout
4872
4873 \end_inset
4874
4875  to be output for the keystroke 
4876 \begin_inset Flex Noun
4877 status collapsed
4878
4879 \begin_layout Plain Layout
4880
4881 \shape up
4882 &
4883 \end_layout
4884
4885 \end_inset
4886
4887  is:
4888 \end_layout
4889
4890 \begin_layout LyX-Code
4891
4892 \backslash
4893 kmap & /
4894 \end_layout
4895
4896 \begin_layout Labeling
4897 \labelwidthstring 00.00.0000
4898 \begin_inset Flex Code
4899 status collapsed
4900
4901 \begin_layout Plain Layout
4902
4903 \shape up
4904 kmod
4905 \end_layout
4906
4907 \end_inset
4908
4909  Specify an accent character
4910 \end_layout
4911
4912 \begin_layout LyX-Code
4913
4914 \backslash
4915 kmod 
4916 \family roman
4917 \emph on
4918 char accent allowed
4919 \end_layout
4920
4921 \begin_layout Standard
4922 This will make the cha
4923 \family roman
4924 racter
4925 \family default
4926  
4927 \family roman
4928 \emph on
4929 char
4930 \family default
4931 \emph default
4932  
4933 \family roman
4934 \shape up
4935 \emph on
4936 be an accent
4937 \family default
4938 \shape default
4939 \emph default
4940  
4941 \family roman
4942 \shape up
4943 on the
4944 \family default
4945 \shape default
4946  
4947 \family roman
4948 \shape up
4949 \emph on
4950 allowed
4951 \family default
4952 \shape default
4953 \emph default
4954  
4955 \family roman
4956 \shape up
4957 cha
4958 \family default
4959 racter(s).
4960  This is the dead key
4961 \begin_inset Foot
4962 status collapsed
4963
4964 \begin_layout Plain Layout
4965 The term 
4966 \family roman
4967 \emph on
4968 dead key
4969 \family default
4970 \emph default
4971  refers to a key that does not produce a character by itself, but when followed
4972  with another key, produces the desired accent character.
4973  For example, a German characte
4974 \family roman
4975 r with an umlaut like
4976 \family default
4977  
4978 \family roman
4979 \emph on
4980 ä
4981 \family default
4982 \emph default
4983  
4984 \family roman
4985 can be produced in this manner.
4986 \end_layout
4987
4988 \end_inset
4989
4990  mechanism.
4991  
4992 \end_layout
4993
4994 \begin_layout Standard
4995 If you 
4996 \family roman
4997 hit
4998 \family default
4999  
5000 \family roman
5001 \emph on
5002 char
5003 \family default
5004 \emph default
5005  
5006 \family roman
5007 and then another key not in
5008 \family default
5009  
5010 \family roman
5011 \emph on
5012 allowed
5013 \emph default
5014 , you will get a
5015 \family default
5016  
5017 \family roman
5018 \emph on
5019 char
5020 \family default
5021 \emph default
5022  
5023 \family roman
5024 followed by the other, not allowed key, as output.
5025
5026 \family default
5027  Note that a 
5028 \begin_inset Flex Noun
5029 status collapsed
5030
5031 \begin_layout Plain Layout
5032
5033 \shape up
5034 Backspace
5035 \end_layout
5036
5037 \end_inset
5038
5039  cancels a dead key, so if 
5040 \family roman
5041 you hit
5042 \family default
5043  
5044 \family roman
5045 \emph on
5046 char
5047 \family default
5048 \emph default
5049  
5050 \begin_inset Flex Noun
5051 status collapsed
5052
5053 \begin_layout Plain Layout
5054
5055 \shape up
5056 \emph on
5057 Backspace
5058 \end_layout
5059
5060 \end_inset
5061
5062 , the cursor will not go one position backwards but will instead cancel
5063  the effect t
5064 \family roman
5065 hat
5066 \family default
5067  
5068 \family roman
5069 \shape up
5070 \emph on
5071 char
5072 \family default
5073 \shape default
5074 \emph default
5075  
5076 \family roman
5077 \shape up
5078 might have had on the next keystroke.
5079  
5080 \end_layout
5081
5082 \begin_layout Standard
5083 The following example specifies that the character ' is to be an acute accent,
5084  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
5085 \end_layout
5086
5087 \begin_layout LyX-Code
5088
5089 \backslash
5090 kmod ' acute aeiouAEIOU
5091 \end_layout
5092
5093 \begin_layout Labeling
5094 \labelwidthstring 00.00.0000
5095 \begin_inset Flex Code
5096 status collapsed
5097
5098 \begin_layout Plain Layout
5099 kxmod
5100 \end_layout
5101
5102 \end_inset
5103
5104  Specify an exception to the accent character
5105 \end_layout
5106
5107 \begin_layout LyX-Code
5108
5109 \backslash
5110 kxmod  
5111 \family roman
5112 \emph on
5113 accent char result
5114 \end_layout
5115
5116 \begin_layout Standard
5117 This defines an exce
5118 \family roman
5119 ption for
5120 \family default
5121  
5122 \family roman
5123 \emph on
5124 accent
5125 \family default
5126 \emph default
5127  
5128 \family roman
5129 on
5130 \family default
5131  
5132 \family roman
5133 \emph on
5134 char
5135 \emph default
5136 .
5137  T
5138 \shape up
5139 he
5140 \family default
5141 \shape default
5142  
5143 \family roman
5144 \shape up
5145 \emph on
5146 accent
5147 \family default
5148 \shape default
5149 \emph default
5150  
5151 \family roman
5152 \shape up
5153 must
5154 \family default
5155 \shape default
5156  
5157 \shape up
5158 have been assigned a keystroke with a previous
5159 \shape default
5160  
5161 \begin_inset Flex Code
5162 status collapsed
5163
5164 \begin_layout Plain Layout
5165
5166 \shape up
5167
5168 \backslash
5169 kmo
5170 \shape default
5171 d
5172 \end_layout
5173
5174 \end_inset
5175
5176  declar
5177 \family roman
5178 ation and
5179 \family default
5180  
5181 \family roman
5182 \emph on
5183 char
5184 \family default
5185 \emph default
5186  
5187 \family roman
5188 must not belong in the
5189 \family default
5190  
5191 \family roman
5192 \emph on
5193 allowed
5194 \family default
5195 \emph default
5196  
5197 \family roman
5198 set of
5199 \family default
5200  
5201 \family roman
5202 \emph on
5203 accent
5204 \emph default
5205 .
5206  When
5207 \family default
5208  
5209 \family roman
5210 \shape up
5211 you enter the
5212 \family default
5213 \shape default
5214  
5215 \family roman
5216 \shape up
5217 \emph on
5218 accent char
5219 \family default
5220 \shape default
5221 \emph default
5222  
5223 \family roman
5224 \shape up
5225 sequence,
5226 \family default
5227 \shape default
5228  
5229 \family roman
5230 \shape up
5231 \emph on
5232 result
5233 \emph default
5234  is produced.
5235  If such a declaration does not exist in
5236 \family default
5237 \shape default
5238  
5239 \shape up
5240 the
5241 \shape default
5242  
5243 \begin_inset Flex Code
5244 status collapsed
5245
5246 \begin_layout Plain Layout
5247
5248 \shape up
5249 .kmap
5250 \end_layout
5251
5252 \end_inset
5253
5254  file and yo
5255 \family roman
5256 u enter
5257 \family default
5258  
5259 \family roman
5260 \emph on
5261 accent char
5262 \emph default
5263 , you get
5264 \family default
5265  
5266 \family roman
5267 \emph on
5268 accent_key char
5269 \emph default
5270  where
5271 \family default
5272  
5273 \family roman
5274 \emph on
5275 accent_key
5276 \emph default
5277  is the first arg
5278 \family default
5279 ument of the 
5280 \begin_inset Flex Code
5281 status collapsed
5282
5283 \begin_layout Plain Layout
5284
5285 \shape up
5286
5287 \backslash
5288 kmod
5289 \end_layout
5290
5291 \end_inset
5292
5293  declaration.
5294  
5295 \end_layout
5296
5297 \begin_layout Standard
5298 The following command produces causes äi to be produced when you enter acute-i
5299  ('i):
5300 \end_layout
5301
5302 \begin_layout LyX-Code
5303
5304 \backslash
5305 kxmod acute i "
5306 \backslash
5307
5308 \backslash
5309 '{
5310 \backslash
5311
5312 \backslash
5313 i}"
5314 \end_layout
5315
5316 \begin_layout Labeling
5317 \labelwidthstring 00.00.0000
5318 \begin_inset Flex Code
5319 status collapsed
5320
5321 \begin_layout Plain Layout
5322 kcomb
5323 \end_layout
5324
5325 \end_inset
5326
5327  Combine two accent characters
5328 \end_layout
5329
5330 \begin_layout LyX-Code
5331
5332 \backslash
5333 kcomb 
5334 \family roman
5335 \emph on
5336 accent1 accent2 allowed
5337 \end_layout
5338
5339 \begin_layout Standard
5340 This one is getting pretty esoteric.
5341  It allows you to combine the effect 
5342 \family roman
5343 of
5344 \family default
5345  
5346 \family roman
5347 \emph on
5348 accent1
5349 \family default
5350 \emph default
5351  
5352 \family roman
5353 and
5354 \family default
5355  
5356 \family roman
5357 \emph on
5358 accent2
5359 \family default
5360 \emph default
5361  
5362 \family roman
5363 (in that order!) on
5364 \family default
5365  
5366 \family roman
5367 \emph on
5368 allowed
5369 \family default
5370 \emph default
5371  
5372 \family roman
5373 chars.
5374  The keystrokes for
5375 \family default
5376  
5377 \family roman
5378 \emph on
5379 accent1
5380 \family default
5381 \emph default
5382  
5383 \family roman
5384 and
5385 \family default
5386  
5387 \family roman
5388 \emph on
5389 accent2
5390 \family default
5391 \emph default
5392  
5393 \family roman
5394 must have be
5395 \family default
5396 en set with a 
5397 \begin_inset Flex Code
5398 status collapsed
5399
5400 \begin_layout Plain Layout
5401
5402 \shape up
5403
5404 \backslash
5405 kmod
5406 \end_layout
5407
5408 \end_inset
5409
5410  command at 
5411 \family roman
5412 a
5413 \family default
5414  
5415 \family roman
5416 \emph on
5417 previous
5418 \family default
5419 \emph default
5420  
5421 \family roman
5422 point in the
5423 \family default
5424  file.
5425  
5426 \end_layout
5427
5428 \begin_layout Standard
5429 Consider this example from the 
5430 \begin_inset Flex Code
5431 status collapsed
5432
5433 \begin_layout Plain Layout
5434
5435 \shape up
5436 greek.kmap
5437 \end_layout
5438
5439 \end_inset
5440
5441  file:
5442 \end_layout
5443
5444 \begin_layout LyX-Code
5445
5446 \backslash
5447 kmod ; acute aeioyvhAEIOYVH 
5448 \backslash
5449 kmod : umlaut iyIY 
5450 \backslash
5451 kcomb acute umlaut iyIY
5452 \end_layout
5453
5454 \begin_layout Standard
5455 This allows you to press 
5456 \begin_inset Flex Noun
5457 status collapsed
5458
5459 \begin_layout Plain Layout
5460
5461 \shape up
5462 ;:i
5463 \end_layout
5464
5465 \end_inset
5466
5467  and get the effect of 
5468 \begin_inset Flex Code
5469 status collapsed
5470
5471 \begin_layout Plain Layout
5472
5473 \shape up
5474
5475 \backslash
5476 '{
5477 \backslash
5478 "{i}}
5479 \end_layout
5480
5481 \end_inset
5482
5483 .
5484  
5485 \family roman
5486 \shape up
5487 A backspace
5488 \family default
5489 \shape default
5490  in this case cancels the last dead key, so if you press 
5491 \begin_inset Flex Noun
5492 status collapsed
5493
5494 \begin_layout Plain Layout
5495
5496 \shape up
5497 ;: Backspace i
5498 \end_layout
5499
5500 \end_inset
5501
5502  you get 
5503 \begin_inset Flex Code
5504 status collapsed
5505
5506 \begin_layout Plain Layout
5507
5508 \shape up
5509
5510 \backslash
5511 '{i}
5512 \end_layout
5513
5514 \end_inset
5515
5516 .
5517 \end_layout
5518
5519 \begin_layout Subsection
5520 The .cdef File
5521 \end_layout
5522
5523 \begin_layout Standard
5524 After the 
5525 \begin_inset Flex Code
5526 status collapsed
5527
5528 \begin_layout Plain Layout
5529
5530 \shape up
5531 .kmap
5532 \end_layout
5533
5534 \end_inset
5535
5536  mapping is performed, a 
5537 \begin_inset Flex Code
5538 status collapsed
5539
5540 \begin_layout Plain Layout
5541
5542 \shape up
5543 .cde
5544 \shape default
5545 f
5546 \end_layout
5547
5548 \end_inset
5549
5550  file maps the strings that the symbols generate to characters in the current
5551  font.
5552  The \SpecialChar LyX
5553  distribution currently includes at least the 
5554 \begin_inset Flex Code
5555 status collapsed
5556
5557 \begin_layout Plain Layout
5558
5559 \shape up
5560 iso8859-1.cdef
5561 \end_layout
5562
5563 \end_inset
5564
5565  and 
5566 \begin_inset Flex Code
5567 status collapsed
5568
5569 \begin_layout Plain Layout
5570
5571 \shape up
5572 iso8859-2.cdef
5573 \end_layout
5574
5575 \end_inset
5576
5577  files.
5578 \end_layout
5579
5580 \begin_layout Standard
5581 In general the 
5582 \begin_inset Flex Code
5583 status collapsed
5584
5585 \begin_layout Plain Layout
5586
5587 \shape up
5588 .cdef
5589 \end_layout
5590
5591 \end_inset
5592
5593  file is a sequence of declarations of the form
5594 \end_layout
5595
5596 \begin_layout LyX-Code
5597
5598 \family roman
5599 \emph on
5600 char_index_in_set
5601 \family default
5602 \emph default
5603  
5604 \family roman
5605 \emph on
5606  string
5607 \end_layout
5608
5609 \begin_layout Standard
5610 For example, in order to map 
5611 \begin_inset Flex Noun
5612 status collapsed
5613
5614 \begin_layout Plain Layout
5615
5616 \shape up
5617
5618 \backslash
5619 '{e}
5620 \end_layout
5621
5622 \end_inset
5623
5624  to the corresponding character in the iso-8859-1 set (233), the following
5625  declaration is used
5626 \end_layout
5627
5628 \begin_layout LyX-Code
5629 233 "
5630 \backslash
5631
5632 \backslash
5633 '{e}"
5634 \end_layout
5635
5636 \begin_layout Standard
5637 with 
5638 \begin_inset Flex Code
5639 status collapsed
5640
5641 \begin_layout Plain Layout
5642
5643 \backslash
5644
5645 \end_layout
5646
5647 \end_inset
5648
5649  and 
5650 \begin_inset Flex Code
5651 status collapsed
5652
5653 \begin_layout Plain Layout
5654 "
5655 \end_layout
5656
5657 \end_inset
5658
5659  being escap
5660 \family roman
5661 ed in
5662 \family default
5663  
5664 \family roman
5665 \emph on
5666 string
5667 \emph default
5668 .
5669  Note that
5670 \family default
5671  the same character can apply to more than one string.
5672  In the 
5673 \begin_inset Flex Code
5674 status collapsed
5675
5676 \begin_layout Plain Layout
5677 i
5678 \shape up
5679 so-8859-7.cdef
5680 \end_layout
5681
5682 \end_inset
5683
5684  file you have
5685 \end_layout
5686
5687 \begin_layout LyX-Code
5688 192 "
5689 \backslash
5690
5691 \backslash
5692 '{
5693 \backslash
5694
5695 \backslash
5696
5697 \backslash
5698 "{i}}"
5699 \begin_inset Newline newline
5700 \end_inset
5701
5702 192 "
5703 \backslash
5704
5705 \backslash
5706
5707 \backslash
5708 "{
5709 \backslash
5710
5711 \backslash
5712 '{i}}"
5713 \end_layout
5714
5715 \begin_layout Standard
5716 If \SpecialChar LyX
5717  cannot find a mapping for the string produced by the keystroke or a
5718  deadkey sequence, it will check if it looks like an accented char and try
5719  to draw an accent over the character on screen.
5720 \end_layout
5721
5722 \begin_layout Subsection
5723 Dead Keys
5724 \end_layout
5725
5726 \begin_layout Standard
5727 There is a second way to add support for international characters through
5728  so-called dead-keys.
5729  A dead-key works in combination with a letter to produce an accented character.
5730  Here, we'll explain how to create a really simple dead-key to illustrate
5731  how they work.
5732 \end_layout
5733
5734 \begin_layout Standard
5735 Suppose you happen to need the circumflex character, 
5736 \begin_inset Quotes eld
5737 \end_inset
5738
5739  ̂
5740 \begin_inset Quotes erd
5741 \end_inset
5742
5743 .
5744  You could bind the 
5745 \begin_inset Flex Noun
5746 status collapsed
5747
5748 \begin_layout Plain Layout
5749 ^
5750 \end_layout
5751
5752 \end_inset
5753
5754 -key [a.k.a.
5755 \begin_inset space ~
5756 \end_inset
5757
5758
5759 \begin_inset Flex Noun
5760 status collapsed
5761
5762 \begin_layout Plain Layout
5763 Shift-6
5764 \end_layout
5765
5766 \end_inset
5767
5768 ] to the \SpecialChar LyX
5769  command 
5770 \begin_inset Flex Code
5771 status collapsed
5772
5773 \begin_layout Plain Layout
5774 accent-circumflex
5775 \end_layout
5776
5777 \end_inset
5778
5779  in your 
5780 \begin_inset Flex Code
5781 status collapsed
5782
5783 \begin_layout Plain Layout
5784 lyxrc
5785 \end_layout
5786
5787 \end_inset
5788
5789  file.
5790  Now, whenever you type the 
5791 \begin_inset Flex Noun
5792 status collapsed
5793
5794 \begin_layout Plain Layout
5795 ^
5796 \end_layout
5797
5798 \end_inset
5799
5800 -key followed by a letter, that letter will have a circumflex accent on
5801  it.
5802  For example, the sequence 
5803 \begin_inset Quotes eld
5804 \end_inset
5805
5806
5807 \begin_inset Flex Noun
5808 status collapsed
5809
5810 \begin_layout Plain Layout
5811 ^e
5812 \end_layout
5813
5814 \end_inset
5815
5816
5817 \begin_inset Quotes erd
5818 \end_inset
5819
5820  produces the letter: 
5821 \begin_inset Quotes eld
5822 \end_inset
5823
5824 ê
5825 \begin_inset Quotes erd
5826 \end_inset
5827
5828 .
5829  If you tried to type 
5830 \begin_inset Quotes eld
5831 \end_inset
5832
5833
5834 \begin_inset Flex Noun
5835 status collapsed
5836
5837 \begin_layout Plain Layout
5838 ^t
5839 \end_layout
5840
5841 \end_inset
5842
5843
5844 \begin_inset Quotes erd
5845 \end_inset
5846
5847 , however, \SpecialChar LyX
5848  will complain with a beep, since a 
5849 \begin_inset Quotes eld
5850 \end_inset
5851
5852
5853 \begin_inset Flex Noun
5854 status collapsed
5855
5856 \begin_layout Plain Layout
5857 t
5858 \end_layout
5859
5860 \end_inset
5861
5862
5863 \begin_inset Quotes erd
5864 \end_inset
5865
5866  never takes a circumflex accent.
5867  Hitting 
5868 \begin_inset Flex Noun
5869 status collapsed
5870
5871 \begin_layout Plain Layout
5872 Space
5873 \end_layout
5874
5875 \end_inset
5876
5877  after a dead-key produces the bare-accent.
5878  Please note this last point! If you bind a key to a dead-key, you'll need
5879  to rebind the character on that key to yet another key.
5880  Binding the 
5881 \begin_inset Flex Noun
5882 status collapsed
5883
5884 \begin_layout Plain Layout
5885 ,-key
5886 \end_layout
5887
5888 \end_inset
5889
5890  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5891 \end_layout
5892
5893 \begin_layout Standard
5894 One common way to bind dead-keys is to use 
5895 \begin_inset Flex Noun
5896 status collapsed
5897
5898 \begin_layout Plain Layout
5899 Meta-
5900 \end_layout
5901
5902 \end_inset
5903
5904
5905 \begin_inset Flex Noun
5906 status collapsed
5907
5908 \begin_layout Plain Layout
5909 Ctrl-
5910 \end_layout
5911
5912 \end_inset
5913
5914 , and 
5915 \begin_inset Flex Noun
5916 status collapsed
5917
5918 \begin_layout Plain Layout
5919 Shift-
5920 \end_layout
5921
5922 \end_inset
5923
5924  in combination with an accent, like 
5925 \begin_inset Quotes eld
5926 \end_inset
5927
5928
5929 \begin_inset Flex Noun
5930 status collapsed
5931
5932 \begin_layout Plain Layout
5933 ~
5934 \end_layout
5935
5936 \end_inset
5937
5938
5939 \begin_inset Quotes erd
5940 \end_inset
5941
5942  or 
5943 \begin_inset Quotes eld
5944 \end_inset
5945
5946
5947 \begin_inset Flex Noun
5948 status collapsed
5949
5950 \begin_layout Plain Layout
5951 ,
5952 \end_layout
5953
5954 \end_inset
5955
5956
5957 \begin_inset Quotes erd
5958 \end_inset
5959
5960  or 
5961 \begin_inset Quotes eld
5962 \end_inset
5963
5964
5965 \begin_inset Flex Noun
5966 status collapsed
5967
5968 \begin_layout Plain Layout
5969 ^
5970 \end_layout
5971
5972 \end_inset
5973
5974
5975 \begin_inset Quotes erd
5976 \end_inset
5977
5978 .
5979  Another way involves using 
5980 \begin_inset Flex Code
5981 status collapsed
5982
5983 \begin_layout Plain Layout
5984 xmodmap
5985 \end_layout
5986
5987 \end_inset
5988
5989  and 
5990 \begin_inset Flex Code
5991 status collapsed
5992
5993 \begin_layout Plain Layout
5994 xkeycaps
5995 \end_layout
5996
5997 \end_inset
5998
5999  to set up the special 
6000 \begin_inset Flex Code
6001 status collapsed
6002
6003 \begin_layout Plain Layout
6004 Mode_Switch
6005 \end_layout
6006
6007 \end_inset
6008
6009  key.
6010  The 
6011 \begin_inset Flex Code
6012 status collapsed
6013
6014 \begin_layout Plain Layout
6015 Mode_Switch
6016 \end_layout
6017
6018 \end_inset
6019
6020  acts in some ways just like 
6021 \begin_inset Flex Noun
6022 status collapsed
6023
6024 \begin_layout Plain Layout
6025 Shift
6026 \end_layout
6027
6028 \end_inset
6029
6030  and permits you to bind keys to accented characters.
6031  You can also turn keys into dead-keys by binding them to something like
6032  
6033 \begin_inset Flex Code
6034 status collapsed
6035
6036 \begin_layout Plain Layout
6037 usldead_cedilla
6038 \end_layout
6039
6040 \end_inset
6041
6042  and then binding this symbolic key to the corresponding \SpecialChar LyX
6043  command.
6044 \begin_inset Foot
6045 status collapsed
6046
6047 \begin_layout Plain Layout
6048 Note from 
6049 \noun on
6050 John Weiss
6051 \noun default
6052 : This is exactly what I do in my 
6053 \begin_inset Flex Code
6054 status collapsed
6055
6056 \begin_layout Plain Layout
6057 ~/.lyx/lyxrc
6058 \end_layout
6059
6060 \end_inset
6061
6062  and my 
6063 \begin_inset Flex Code
6064 status collapsed
6065
6066 \begin_layout Plain Layout
6067 ~/.xmodmap
6068 \end_layout
6069
6070 \end_inset
6071
6072  files.
6073  I have my 
6074 \begin_inset Flex Noun
6075 status collapsed
6076
6077 \begin_layout Plain Layout
6078 Scroll
6079 \begin_inset space ~
6080 \end_inset
6081
6082 Lock
6083 \end_layout
6084
6085 \end_inset
6086
6087  key set up as 
6088 \begin_inset Flex Code
6089 status collapsed
6090
6091 \begin_layout Plain Layout
6092 Mode_Shift
6093 \end_layout
6094
6095 \end_inset
6096
6097  and a bunch of these 
6098 \begin_inset Quotes eld
6099 \end_inset
6100
6101
6102 \begin_inset Flex Code
6103 status collapsed
6104
6105 \begin_layout Plain Layout
6106 usldead_*
6107 \end_layout
6108
6109 \end_inset
6110
6111
6112 \begin_inset Quotes erd
6113 \end_inset
6114
6115  symbolic keys bound such things as 
6116 \begin_inset Flex Noun
6117 status collapsed
6118
6119 \begin_layout Plain Layout
6120 Scroll
6121 \begin_inset space ~
6122 \end_inset
6123
6124 Lock-^
6125 \end_layout
6126
6127 \end_inset
6128
6129  and 
6130 \begin_inset Flex Noun
6131 status collapsed
6132
6133 \begin_layout Plain Layout
6134 Scroll
6135 \begin_inset space ~
6136 \end_inset
6137
6138 Lock-~
6139 \end_layout
6140
6141 \end_inset
6142
6143 .
6144  This is how I produce my accented characters.
6145 \end_layout
6146
6147 \end_inset
6148
6149  You can make just about anything into the 
6150 \begin_inset Flex Code
6151 status collapsed
6152
6153 \begin_layout Plain Layout
6154 Mode_Switch
6155 \end_layout
6156
6157 \end_inset
6158
6159  key: One of the 
6160 \begin_inset Flex Noun
6161 status collapsed
6162
6163 \begin_layout Plain Layout
6164 Ctrl-
6165 \end_layout
6166
6167 \end_inset
6168
6169  keys, a spare function key, etc.
6170  As for the \SpecialChar LyX
6171  commands that produce accents, check the entry for 
6172 \begin_inset Flex Code
6173 status collapsed
6174
6175 \begin_layout Plain Layout
6176 accent-acute
6177 \end_layout
6178
6179 \end_inset
6180
6181  in the 
6182 \emph on
6183 Reference Manual
6184 \emph default
6185 .
6186  You'll find the complete list there.
6187 \end_layout
6188
6189 \begin_layout Subsection
6190 Saving your Language Configuration
6191 \end_layout
6192
6193 \begin_layout Standard
6194 You can edit your preferences so that your desired language environment
6195  is automatically configured when \SpecialChar LyX
6196  starts up, via the 
6197 \begin_inset Flex Noun
6198 status collapsed
6199
6200 \begin_layout Plain Layout
6201 Edit\SpecialChar menuseparator
6202 Preferences
6203 \end_layout
6204
6205 \end_inset
6206
6207  dialog.
6208 \end_layout
6209
6210 \begin_layout Chapter
6211
6212 \change_inserted -584632292 1610232084
6213 Creating and 
6214 \change_unchanged
6215 Installing New Document Classes, Layouts, and Templates
6216 \begin_inset CommandInset label
6217 LatexCommand label
6218 name "cha:Installing-New-Document"
6219
6220 \end_inset
6221
6222
6223 \begin_inset Argument 1
6224 status collapsed
6225
6226 \begin_layout Plain Layout
6227 Installing New Document Classes
6228 \end_layout
6229
6230 \end_inset
6231
6232
6233 \end_layout
6234
6235 \begin_layout Standard
6236 In this chapter, we describe the procedures for creating and installing
6237  new \SpecialChar LyX
6238  layout and template files, as well as offer a refresher on correctly
6239  installing new \SpecialChar LaTeX
6240  document classes.
6241  
6242 \end_layout
6243
6244 \begin_layout Standard
6245 First, let us a say a few words about how one ought to think about the relation
6246  between \SpecialChar LyX
6247  and \SpecialChar LaTeX
6248 .
6249  The thing to understand is that, in a certain sense, \SpecialChar LyX
6250  doesn't know anything
6251  about \SpecialChar LaTeX
6252 .
6253  Indeed, from \SpecialChar LyX
6254 's point of view, \SpecialChar LaTeX
6255  is just one of several 
6256 \begin_inset Quotes eld
6257 \end_inset
6258
6259 backend formats
6260 \begin_inset Quotes erd
6261 \end_inset
6262
6263  in which it is capable of producing output.
6264  Other such formats are DocBook, plaintext, and XHTML.
6265  \SpecialChar LaTeX
6266  is, of course, a particularly important format, but very little of the
6267  information \SpecialChar LyX
6268  has about \SpecialChar LaTeX
6269  is actually contained in the program itself.
6270 \begin_inset Foot
6271 status collapsed
6272
6273 \begin_layout Plain Layout
6274 Some commands are sufficiently complex that they are 
6275 \begin_inset Quotes eld
6276 \end_inset
6277
6278 hardcoded
6279 \begin_inset Quotes erd
6280 \end_inset
6281
6282  into \SpecialChar LyX
6283 .
6284  But the developers generally regard this as a Bad Thing.
6285 \end_layout
6286
6287 \end_inset
6288
6289  Rather, that information, even for the standard classes like 
6290 \begin_inset Flex Code
6291 status collapsed
6292
6293 \begin_layout Plain Layout
6294 article.cls
6295 \end_layout
6296
6297 \end_inset
6298
6299 , is contained in `layout files'.
6300  Similarly, \SpecialChar LyX
6301  itself does not know much about DocBook or XHTML.
6302  What it knows is contained in layout files.
6303 \end_layout
6304
6305 \begin_layout Standard
6306 You can think of the layout file for a given document class as a translation
6307  manual between \SpecialChar LyX
6308  constructs—paragraphs with their corresponding styles,
6309  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6310 , DocBook, or XHTML
6311  constructs.
6312  Almost everything \SpecialChar LyX
6313  knows about 
6314 \begin_inset Flex Code
6315 status collapsed
6316
6317 \begin_layout Plain Layout
6318 article.cls
6319 \end_layout
6320
6321 \end_inset
6322
6323 , for example, is contained in the file 
6324 \begin_inset Flex Code
6325 status collapsed
6326
6327 \begin_layout Plain Layout
6328 article.layout
6329 \end_layout
6330
6331 \end_inset
6332
6333  and in various other files it includes.
6334  For this reason, anyone intending to write layout files should plan to
6335  study the existing files.
6336  A good place to start is with 
6337 \begin_inset Flex Code
6338 status collapsed
6339
6340 \begin_layout Plain Layout
6341 stdsections.inc
6342 \end_layout
6343
6344 \end_inset
6345
6346 , which is included in 
6347 \begin_inset Flex Code
6348 status collapsed
6349
6350 \begin_layout Plain Layout
6351 article.layout
6352 \end_layout
6353
6354 \end_inset
6355
6356
6357 \begin_inset Flex Code
6358 status collapsed
6359
6360 \begin_layout Plain Layout
6361 book.layout
6362 \end_layout
6363
6364 \end_inset
6365
6366 , and many of the other layout files for document classes.
6367  This file is where sections and the like are defined: 
6368 \begin_inset Flex Code
6369 status collapsed
6370
6371 \begin_layout Plain Layout
6372 stdsections.inc
6373 \end_layout
6374
6375 \end_inset
6376
6377  tells \SpecialChar LyX
6378  how paragraphs that are marked with the Section, Subsection, etc,
6379  styles can be translated into corresponding \SpecialChar LaTeX
6380 , DocBook, and XHTML commands
6381  and tags.
6382  The 
6383 \begin_inset Flex Code
6384 status collapsed
6385
6386 \begin_layout Plain Layout
6387 article.layout
6388 \end_layout
6389
6390 \end_inset
6391
6392  file basically just includes several of these 
6393 \begin_inset Flex Code
6394 status collapsed
6395
6396 \begin_layout Plain Layout
6397 std*.inc
6398 \end_layout
6399
6400 \end_inset
6401
6402  files.
6403 \end_layout
6404
6405 \begin_layout Standard
6406 Defining the \SpecialChar LyX
6407 –\SpecialChar LaTeX
6408  correspondence is not the only thing layout files do, though.
6409  Their other job is to define how the \SpecialChar LyX
6410  constructs themselves will appear
6411  on-screen.
6412  The fact that layout files have these two jobs is often a source of confusion,
6413  because they are completely separate.
6414  Telling \SpecialChar LyX
6415  how to translate a certain paragraph style into \SpecialChar LaTeX
6416  does not tell
6417  \SpecialChar LyX
6418  how to display it; conversely, telling \SpecialChar LyX
6419  how to display a certain paragraph
6420  style does not tell \SpecialChar LyX
6421  how to translate it into \SpecialChar LaTeX
6422  (let alone tell \SpecialChar LaTeX
6423  how to
6424  display it).
6425  So, in general, when you define a new \SpecialChar LyX
6426  construct, you must always do two
6427  quite separate things: (i)
6428 \begin_inset space ~
6429 \end_inset
6430
6431 tell \SpecialChar LyX
6432  how to translate it into \SpecialChar LaTeX
6433  and (ii)
6434 \begin_inset space ~
6435 \end_inset
6436
6437 tell \SpecialChar LyX
6438  how to display it.
6439 \end_layout
6440
6441 \begin_layout Standard
6442 Much the same is true, of course, as regards \SpecialChar LyX
6443 's other backend formats, though
6444  XHTML is in some ways different, because in that case \SpecialChar LyX
6445  
6446 \emph on
6447 is
6448 \emph default
6449  able, to some extent, to use information about how it should display a
6450  paragraph on the screen to output information (in the form of CSS) about
6451  how the paragraph should be displayed in a browser.
6452  Even in this case, however, the distinction between what \SpecialChar LyX
6453  does internally
6454  and how things are rendered externally remains in force, and the two can
6455  be controlled separately.
6456  See 
6457 \begin_inset CommandInset ref
6458 LatexCommand ref
6459 reference "sec:Tags-for-XHTML"
6460
6461 \end_inset
6462
6463  for the details.
6464 \end_layout
6465
6466 \begin_layout Section
6467 Installing new \SpecialChar LaTeX
6468  files
6469 \end_layout
6470
6471 \begin_layout Standard
6472 Some installations may not include a \SpecialChar LaTeX
6473  package or class file that you would
6474  like to use within \SpecialChar LyX
6475 .
6476  For example, you might need Foil\SpecialChar TeX
6477 , a package for preparing slides for overhead
6478  projectors.
6479  Modern \SpecialChar LaTeX
6480  distributions like \SpecialChar TeX
6481 Live (2008 or newer) or MiK\SpecialChar TeX
6482  provide a user interface
6483  for installing such packages.
6484  For example, with MiK\SpecialChar TeX
6485 , you start the program 
6486 \begin_inset Quotes eld
6487 \end_inset
6488
6489 Package
6490 \begin_inset space ~
6491 \end_inset
6492
6493 Manager
6494 \begin_inset Quotes erd
6495 \end_inset
6496
6497  to get a list of available packages.
6498  To install one of them, right click on it or use the corresponding toolbar
6499  button.
6500 \end_layout
6501
6502 \begin_layout Standard
6503 If your \SpecialChar LaTeX
6504  distribution does not provide such a `package manager', or if the
6505  package is not available from your distribution, then follow these steps
6506  to install it manually:
6507 \end_layout
6508
6509 \begin_layout Enumerate
6510 Get the package from 
6511 \begin_inset CommandInset href
6512 LatexCommand href
6513 name "CTAN"
6514 target "http://www.ctan.org/"
6515 literal "false"
6516
6517 \end_inset
6518
6519  or wherever.
6520 \end_layout
6521
6522 \begin_layout Enumerate
6523 If the package contains a file with the ending 
6524 \begin_inset Quotes eld
6525 \end_inset
6526
6527
6528 \begin_inset Flex Code
6529 status collapsed
6530
6531 \begin_layout Plain Layout
6532 .ins
6533 \end_layout
6534
6535 \end_inset
6536
6537
6538 \begin_inset Quotes erd
6539 \end_inset
6540
6541  (is the case for Foil\SpecialChar TeX
6542 ) then open a console, change to the folder of this
6543  file and execute the command 
6544 \begin_inset Flex Code
6545 status collapsed
6546
6547 \begin_layout Plain Layout
6548 latex foiltex.ins
6549 \end_layout
6550
6551 \end_inset
6552
6553 .
6554  You have now unpacked the package and have all files to install it.
6555  Most \SpecialChar LaTeX
6556 -packages are not packed and you can skip this step.
6557 \end_layout
6558
6559 \begin_layout Enumerate
6560 Now you need to decide if the package should be available for all users
6561  or only for you.
6562 \end_layout
6563
6564 \begin_deeper
6565 \begin_layout Enumerate
6566 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6567  for all users on your system, then install it in your `local' \SpecialChar TeX
6568  tree, otherwise
6569  install it in your own `user' \SpecialChar TeX
6570  tree.
6571  Where these trees should be created, if they do not already exist, depends
6572  on your system.
6573  To find this out, look in the file 
6574 \begin_inset Flex Code
6575 status collapsed
6576
6577 \begin_layout Plain Layout
6578 texmf.cnf
6579 \end_layout
6580
6581 \end_inset
6582
6583 .
6584 \begin_inset Foot
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588 This is usually in the directory 
6589 \begin_inset Flex Code
6590 status collapsed
6591
6592 \begin_layout Plain Layout
6593 $TEXMF/web2c
6594 \end_layout
6595
6596 \end_inset
6597
6598 , though you can execute the command 
6599 \begin_inset Flex Code
6600 status collapsed
6601
6602 \begin_layout Plain Layout
6603 kpsewhich texmf.cnf
6604 \end_layout
6605
6606 \end_inset
6607
6608  to locate it.
6609 \end_layout
6610
6611 \end_inset
6612
6613  The location of the `local' \SpecialChar TeX
6614  tree is defined by the 
6615 \begin_inset Flex Code
6616 status collapsed
6617
6618 \begin_layout Plain Layout
6619 TEXMFLOCAL
6620 \end_layout
6621
6622 \end_inset
6623
6624  variable; this is usually somewhere like 
6625 \begin_inset Flex Code
6626 status collapsed
6627
6628 \begin_layout Plain Layout
6629 /usr/local/share/texmf
6630 \end_layout
6631
6632 \end_inset
6633
6634  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6635 Live
6636  distribution.
6637  The location of the `user' \SpecialChar TeX
6638  tree is defined by 
6639 \begin_inset Flex Code
6640 status collapsed
6641
6642 \begin_layout Plain Layout
6643 TEXMFHOME
6644 \end_layout
6645
6646 \end_inset
6647
6648  and is commonly 
6649 \begin_inset Flex Code
6650 status collapsed
6651
6652 \begin_layout Plain Layout
6653 $HOME/texmf
6654 \end_layout
6655
6656 \end_inset
6657
6658  or 
6659 \begin_inset Flex Code
6660 status collapsed
6661
6662 \begin_layout Plain Layout
6663
6664 \family sans
6665 $HOME/.texliveXXXX
6666 \end_layout
6667
6668 \end_inset
6669
6670 .
6671  (If these variables are not predefined, you have to define them.) You'll
6672  probably need root permissions to create or modify the `local' tree, but
6673  not for your `user' tree.
6674 \begin_inset Newline newline
6675 \end_inset
6676
6677 In general, it is recommended to install in the user tree because your user
6678  will not be modified or even overwritten when you upgrade your system.
6679  It will typically also be backed up together with everything else when
6680  you backup your home directory (which, of course, you do on a regular basis).
6681 \end_layout
6682
6683 \begin_layout Enumerate
6684 On Windows, if you want the new package to be available for all users on
6685  your system, change to the folder where \SpecialChar LaTeX
6686  is installed and then change to
6687  the subfolder 
6688 \begin_inset Flex Code
6689 status collapsed
6690
6691 \begin_layout Plain Layout
6692 ~
6693 \backslash
6694 tex
6695 \backslash
6696 latex
6697 \end_layout
6698
6699 \end_inset
6700
6701 .
6702  (For MiK\SpecialChar TeX
6703 , this would be by default the folder 
6704 \begin_inset Flex Code
6705 status collapsed
6706
6707 \begin_layout Plain Layout
6708 ~:
6709 \backslash
6710 Programs
6711 \backslash
6712 MiKTeX
6713 \backslash
6714 tex
6715 \backslash
6716 latex
6717 \end_layout
6718
6719 \end_inset
6720
6721 .)
6722 \begin_inset Foot
6723 status collapsed
6724
6725 \begin_layout Plain Layout
6726 Note that this will be the correct path only on English installations.
6727  On a German one, it would be 
6728 \begin_inset Flex Code
6729 status collapsed
6730
6731 \begin_layout Plain Layout
6732 ~:
6733 \backslash
6734 Programme
6735 \backslash
6736 MiKTeX
6737 \backslash
6738 tex
6739 \backslash
6740 latex
6741 \end_layout
6742
6743 \end_inset
6744
6745 , and similarly for other languages.
6746 \end_layout
6747
6748 \end_inset
6749
6750  Create there a new folder 
6751 \begin_inset Flex Code
6752 status collapsed
6753
6754 \begin_layout Plain Layout
6755 foiltex
6756 \end_layout
6757
6758 \end_inset
6759
6760  and copy all files of the package into it.
6761  
6762 \begin_inset Newline newline
6763 \end_inset
6764
6765 If the package should only available for you or you don't have admin permissions
6766 , do the same, but in the local \SpecialChar LaTeX
6767  folder.
6768  E.
6769 \begin_inset space \thinspace{}
6770 \end_inset
6771
6772 g., for MiK\SpecialChar TeX
6773
6774 \begin_inset space ~
6775 \end_inset
6776
6777 2.8 under Windows XP, this would be the folder:
6778 \begin_inset Newline newline
6779 \end_inset
6780
6781
6782 \family sans
6783
6784 \begin_inset Flex Code
6785 status collapsed
6786
6787 \begin_layout Plain Layout
6788 ~:
6789 \backslash
6790 Documents and Settings
6791 \backslash
6792 <username>
6793 \backslash
6794 Application Data
6795 \backslash
6796
6797 \end_layout
6798
6799 \end_inset
6800
6801
6802 \begin_inset Newline newline
6803 \end_inset
6804
6805
6806 \family default
6807
6808 \begin_inset Phantom HPhantom
6809 status open
6810
6811 \begin_layout Plain Layout
6812
6813 \family sans
6814 ~:
6815 \backslash
6816
6817 \end_layout
6818
6819 \end_inset
6820
6821
6822 \begin_inset Flex Code
6823 status collapsed
6824
6825 \begin_layout Plain Layout
6826 MiKTeX
6827 \backslash
6828 2.8
6829 \backslash
6830 tex
6831 \backslash
6832 latex
6833 \end_layout
6834
6835 \end_inset
6836
6837
6838 \begin_inset Newline newline
6839 \end_inset
6840
6841 On Vista, it would be:
6842 \begin_inset Newline newline
6843 \end_inset
6844
6845
6846 \begin_inset Flex Code
6847 status collapsed
6848
6849 \begin_layout Plain Layout
6850 ~:
6851 \backslash
6852 Users
6853 \backslash
6854 <username>
6855 \backslash
6856 AppData
6857 \backslash
6858 Roaming
6859 \backslash
6860 2.8
6861 \backslash
6862 MiKTeX
6863 \backslash
6864 tex
6865 \backslash
6866 latex
6867 \end_layout
6868
6869 \end_inset
6870
6871
6872 \end_layout
6873
6874 \end_deeper
6875 \begin_layout Enumerate
6876 Now one only need to tell \SpecialChar LaTeX
6877  that there are new files.
6878  This depends on the used \SpecialChar LaTeX
6879 -Distribution:
6880 \end_layout
6881
6882 \begin_deeper
6883 \begin_layout Enumerate
6884 For \SpecialChar TeX
6885 Live execute the command 
6886 \begin_inset Flex Code
6887 status collapsed
6888
6889 \begin_layout Plain Layout
6890 texhash
6891 \end_layout
6892
6893 \end_inset
6894
6895  from a console.
6896  If you installed the package for all users, then you will probably need
6897  to have root permissions for that.
6898 \end_layout
6899
6900 \begin_layout Enumerate
6901 For MiK\SpecialChar TeX
6902 , if you have installed the package for all users, start the program
6903  
6904 \begin_inset Quotes eld
6905 \end_inset
6906
6907 Settings
6908 \begin_inset space ~
6909 \end_inset
6910
6911 (Admin)
6912 \begin_inset Quotes erd
6913 \end_inset
6914
6915  and press the button marked 
6916 \begin_inset Quotes eld
6917 \end_inset
6918
6919 Refresh FNDB
6920 \begin_inset Quotes erd
6921 \end_inset
6922
6923 .
6924  Otherwise start the program 
6925 \begin_inset Quotes eld
6926 \end_inset
6927
6928 Settings
6929 \begin_inset Quotes erd
6930 \end_inset
6931
6932  and do the same.
6933 \end_layout
6934
6935 \end_deeper
6936 \begin_layout Enumerate
6937 Finally, you need to tell \SpecialChar LyX
6938  that there are new packages available.
6939  So, in \SpecialChar LyX
6940 , use the menu 
6941 \begin_inset Flex Noun
6942 status collapsed
6943
6944 \begin_layout Plain Layout
6945 Tools
6946 \family sans
6947 \SpecialChar menuseparator
6948 Reconfigure
6949 \end_layout
6950
6951 \end_inset
6952
6953  and then restart \SpecialChar LyX
6954 .
6955 \end_layout
6956
6957 \begin_layout Standard
6958 Now the package is installed.
6959  In our example, the document class 
6960 \begin_inset Flex Code
6961 status collapsed
6962
6963 \begin_layout Plain Layout
6964 FoilTex
6965 \end_layout
6966
6967 \end_inset
6968
6969  will now be available under 
6970 \begin_inset Flex Noun
6971 status collapsed
6972
6973 \begin_layout Plain Layout
6974 Document\SpecialChar menuseparator
6975 Settings\SpecialChar menuseparator
6976 Document Class
6977 \end_layout
6978
6979 \end_inset
6980
6981  (in the 
6982 \begin_inset Quotes eld
6983 \end_inset
6984
6985 Presentations
6986 \begin_inset Quotes erd
6987 \end_inset
6988
6989  category).
6990  
6991 \end_layout
6992
6993 \begin_layout Standard
6994 If you would like to use a \SpecialChar LaTeX
6995  document class that is not even listed in the
6996  menu 
6997 \begin_inset Flex Noun
6998 status collapsed
6999
7000 \begin_layout Plain Layout
7001 Document\SpecialChar menuseparator
7002 Settings\SpecialChar menuseparator
7003 Document Class
7004 \end_layout
7005
7006 \end_inset
7007
7008 , then you need to create a `layout' file for it.
7009  That is the topic of the next section.
7010 \end_layout
7011
7012 \begin_layout Section
7013 Types of layout files
7014 \end_layout
7015
7016 \begin_layout Standard
7017 This section describes the various sorts of \SpecialChar LyX
7018  files that contain layout informati
7019 on.
7020  These files describe various paragraph and character styles, determining
7021  how \SpecialChar LyX
7022  should display them and how they should be translated into \SpecialChar LaTeX
7023 , DocBook,
7024  XHTML, or whatever output format is being used.
7025  
7026 \end_layout
7027
7028 \begin_layout Standard
7029 We shall try to provide a thorough description of the process of writing
7030  layout files here.
7031  However, there are so many different types of documents supported even
7032  by just \SpecialChar LaTeX
7033  that we can't hope to cover every different possibility or problem
7034  you might encounter.
7035  The \SpecialChar LyX
7036  users' list is frequented by people with lots of experience with layout
7037  design who are willing to share what they've learned, so please feel free
7038  to ask questions there.
7039 \end_layout
7040
7041 \begin_layout Standard
7042 As you prepare to write a new layout, it is extremely helpful to look at
7043  the layouts distributed with \SpecialChar LyX
7044 .
7045  If you write a \SpecialChar LyX
7046  layout for a \SpecialChar LaTeX
7047  document class that might also be used by
7048  others, or write a module that might be useful to others, then you should
7049  consider posting your layout to the 
7050 \begin_inset CommandInset href
7051 LatexCommand href
7052 name "layout section on the LyX wiki"
7053 target "https://wiki.lyx.org/Layouts/Layouts"
7054 literal "false"
7055
7056 \end_inset
7057
7058  or even to the \SpecialChar LyX
7059  developers' list, so that it might be included in \SpecialChar LyX
7060  itself.
7061 \begin_inset Foot
7062 status collapsed
7063
7064 \begin_layout Plain Layout
7065 Note that \SpecialChar LyX
7066  is licensed under the General Public License, so any material
7067  that is contributed to \SpecialChar LyX
7068  must be similarly licensed.
7069 \end_layout
7070
7071 \end_inset
7072
7073
7074 \end_layout
7075
7076 \begin_layout Subsection
7077 Layout modules
7078 \begin_inset CommandInset label
7079 LatexCommand label
7080 name "subsec:Layout-modules"
7081
7082 \end_inset
7083
7084
7085 \end_layout
7086
7087 \begin_layout Standard
7088 We have spoken to this point about `layout files'.
7089  But there are different sorts of files that contain layout information.
7090  Layout files, strictly so called, have the 
7091 \begin_inset Flex Code
7092 status collapsed
7093
7094 \begin_layout Plain Layout
7095 .layout
7096 \end_layout
7097
7098 \end_inset
7099
7100  extension and provide \SpecialChar LyX
7101  with information about document classes.
7102  Since \SpecialChar LyX
7103  1.6 layout information can also be contained in layout 
7104 \emph on
7105 modules
7106 \emph default
7107 , which have the 
7108 \begin_inset Flex Code
7109 status collapsed
7110
7111 \begin_layout Plain Layout
7112 .module
7113 \end_layout
7114
7115 \end_inset
7116
7117  extension.
7118  Modules are to \SpecialChar LaTeX
7119  packages much as layouts are to \SpecialChar LaTeX
7120  classes, and some modules—such
7121  as the 
7122 \begin_inset Flex Code
7123 status collapsed
7124
7125 \begin_layout Plain Layout
7126 endnotes
7127 \end_layout
7128
7129 \end_inset
7130
7131  module—specifically provide support for one package.
7132  In a sense, layout modules are similar to included
7133 \begin_inset Foot
7134 status collapsed
7135
7136 \begin_layout Plain Layout
7137 These can have any extension, but by convention have the 
7138 \begin_inset Flex Code
7139 status collapsed
7140
7141 \begin_layout Plain Layout
7142 .inc
7143 \end_layout
7144
7145 \end_inset
7146
7147  extension.
7148 \end_layout
7149
7150 \end_inset
7151
7152  files—files like 
7153 \begin_inset Flex Code
7154 status collapsed
7155
7156 \begin_layout Plain Layout
7157 stdsections.inc
7158 \end_layout
7159
7160 \end_inset
7161
7162 —in that modules are not specific to a given document class but may be used
7163  with many different classes.
7164  The difference is that using an included file with 
7165 \begin_inset Flex Code
7166 status collapsed
7167
7168 \begin_layout Plain Layout
7169 article.cls
7170 \end_layout
7171
7172 \end_inset
7173
7174  requires editing that file.
7175  Modules, by contrast, are selected in the 
7176 \begin_inset Flex Noun
7177 status collapsed
7178
7179 \begin_layout Plain Layout
7180 Document\SpecialChar menuseparator
7181 Settings
7182 \end_layout
7183
7184 \end_inset
7185
7186  dialog.
7187 \end_layout
7188
7189 \begin_layout Standard
7190 Building modules is the easiest way to get started with layout editing,
7191  since it can be as simple as adding a single new paragraph style or flex
7192  inset.
7193  But modules may, in principle, contain anything a layout file can contain.
7194 \end_layout
7195
7196 \begin_layout Standard
7197 After creating a new module and copying it to the 
7198 \begin_inset Flex Code
7199 status collapsed
7200
7201 \begin_layout Plain Layout
7202 layouts/
7203 \end_layout
7204
7205 \end_inset
7206
7207  folder, you will need to reconfigure and then restart \SpecialChar LyX
7208  for the module to
7209  appear in the menu.
7210  However, changes you make to the module will be seen immediately, if you
7211  open 
7212 \begin_inset Flex Noun
7213 status collapsed
7214
7215 \begin_layout Plain Layout
7216 Document\SpecialChar menuseparator
7217 Settings
7218 \end_layout
7219
7220 \end_inset
7221
7222 , highlight something, and then hit 
7223 \begin_inset Quotes eld
7224 \end_inset
7225
7226 OK
7227 \begin_inset Quotes erd
7228 \end_inset
7229
7230 .
7231  
7232 \emph on
7233 It is strongly recommended that you save your work before doing this
7234 \emph default
7235 .
7236  In fact, 
7237 \emph on
7238 it is strongly recommended that you not attempt to edit modules while simultaneo
7239 usly working on actual documents
7240 \emph default
7241 .
7242  Though of course the developers strive to keep \SpecialChar LyX
7243  stable in such situations,
7244  syntax errors and the like in your module file could cause strange behavior.
7245 \end_layout
7246
7247 \begin_layout Subsubsection
7248 Local Layout
7249 \end_layout
7250
7251 \begin_layout Standard
7252 Modules are to \SpecialChar LyX
7253  as packages are to \SpecialChar LaTeX
7254 .
7255  Sometimes, however, you find yourself wanting a specific inset or character
7256  style just for one document and writing a module that will also be available
7257  to other documents makes little sense.
7258  What you need is \SpecialChar LyX
7259 's 
7260 \begin_inset Quotes eld
7261 \end_inset
7262
7263 Local Layout
7264 \begin_inset Quotes erd
7265 \end_inset
7266
7267 .
7268 \end_layout
7269
7270 \begin_layout Standard
7271 You will find it under 
7272 \family sans
7273 Document\SpecialChar menuseparator
7274 Settings\SpecialChar menuseparator
7275 Local Layout
7276 \family default
7277 .
7278  The large text box allows you to enter anything that you might enter in
7279  a layout file or module.
7280  You can think of a document's local layout, in fact, as a module that belongs
7281  just to it.
7282  So, in particular, you must enter a 
7283 \begin_inset Flex Code
7284 status collapsed
7285
7286 \begin_layout Plain Layout
7287 Format
7288 \end_layout
7289
7290 \end_inset
7291
7292  tag.
7293  Any format is acceptable, but one would normally use the format current
7294  at the time.
7295  (In \SpecialChar LyX
7296  
7297 \begin_inset Info
7298 type  "lyxinfo"
7299 arg   "version"
7300 \end_inset
7301
7302 , the current layout format is 
7303 \begin_inset Info
7304 type  "lyxinfo"
7305 arg   "layoutformat"
7306 \end_inset
7307
7308 .)
7309 \end_layout
7310
7311 \begin_layout Standard
7312 When you have entered something in the 
7313 \begin_inset Flex Code
7314 status collapsed
7315
7316 \begin_layout Plain Layout
7317 Local Layout
7318 \end_layout
7319
7320 \end_inset
7321
7322  pane, \SpecialChar LyX
7323  will enable the 
7324 \begin_inset Quotes eld
7325 \end_inset
7326
7327 Validate
7328 \begin_inset Quotes erd
7329 \end_inset
7330
7331  button at the bottom.
7332  Clicking this button will cause \SpecialChar LyX
7333  to determine whether what you have entered
7334  is valid layout information for the chosen format.
7335  \SpecialChar LyX
7336  will report the result but, unfortunately, will not tell you what errors
7337  there might have been.
7338  These will be written to the terminal, however, if \SpecialChar LyX
7339  is started from a terminal.
7340  You will not be permitted to save your local layout until you have entered
7341  something valid.
7342 \end_layout
7343
7344 \begin_layout Standard
7345 The warnings at the end of the previous section apply here, too.
7346  Do not play with local layout while you are actually working, especially
7347  if you have not saved your document.
7348  That said, using local layout with a test document can be a very convenient
7349  way to try out layout ideas, or even to start developing a module.
7350 \end_layout
7351
7352 \begin_layout Subsection
7353 Layout for 
7354 \begin_inset Flex Noun
7355 status collapsed
7356
7357 \begin_layout Plain Layout
7358 .sty
7359 \end_layout
7360
7361 \end_inset
7362
7363  files
7364 \end_layout
7365
7366 \begin_layout Standard
7367 There are two situations you are likely to encounter when wanting to support
7368  a new \SpecialChar LaTeX
7369  document class, involving style (
7370 \begin_inset Flex Code
7371 status collapsed
7372
7373 \begin_layout Plain Layout
7374 .sty
7375 \end_layout
7376
7377 \end_inset
7378
7379 ) files and \SpecialChar LaTeX2e
7380  class (
7381 \begin_inset Flex Code
7382 status collapsed
7383
7384 \begin_layout Plain Layout
7385 .cls
7386 \end_layout
7387
7388 \end_inset
7389
7390 ) .
7391  Supporting a style file is usually fairly easy.
7392  Supporting a new class file is a bit harder.
7393  We'll discuss the former in this section and the latter in the next.
7394  
7395 \change_deleted 5863208 1594239023
7396 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7397 \change_unchanged
7398
7399 \end_layout
7400
7401 \begin_layout Standard
7402 The easier case is the one in which your new document class is provided
7403  as a style file that is to be used in conjunction with an already supported
7404  document class.
7405  For the sake of the example, we'll assume that the style file is called
7406  
7407 \begin_inset Flex Noun
7408 status collapsed
7409
7410 \begin_layout Plain Layout
7411 myclass.sty
7412 \end_layout
7413
7414 \end_inset
7415
7416  and that it is meant to be used with 
7417 \begin_inset Flex Noun
7418 status collapsed
7419
7420 \begin_layout Plain Layout
7421 report.cls
7422 \end_layout
7423
7424 \end_inset
7425
7426 , which is a standard class.
7427  
7428 \end_layout
7429
7430 \begin_layout Standard
7431 Start by copying the existing class's layout file into your local directory:
7432 \begin_inset Foot
7433 status collapsed
7434
7435 \begin_layout Plain Layout
7436 Of course, which directory is your local directory will vary by platform,
7437  and \SpecialChar LyX
7438  allows you to specify your local directory on startup, too, using
7439  the 
7440 \begin_inset Flex Code
7441 status collapsed
7442
7443 \begin_layout Plain Layout
7444 -userdir
7445 \end_layout
7446
7447 \end_inset
7448
7449  option.
7450 \end_layout
7451
7452 \end_inset
7453
7454
7455 \end_layout
7456
7457 \begin_layout LyX-Code
7458 cp report.layout ~/.lyx/layouts/myclass.layout
7459 \end_layout
7460
7461 \begin_layout Standard
7462 Then edit 
7463 \begin_inset Flex Code
7464 status collapsed
7465
7466 \begin_layout Plain Layout
7467 myclass.layout
7468 \end_layout
7469
7470 \end_inset
7471
7472  and change the line: 
7473 \end_layout
7474
7475 \begin_layout LyX-Code
7476
7477 \backslash
7478 DeclareLaTeXClass{Report (Standard Class)}
7479 \end_layout
7480
7481 \begin_layout Standard
7482 to read
7483 \end_layout
7484
7485 \begin_layout LyX-Code
7486
7487 \backslash
7488 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7489 \end_layout
7490
7491 \begin_layout Standard
7492 Then add:
7493 \end_layout
7494
7495 \begin_layout LyX-Code
7496 Preamble 
7497 \begin_inset Newline newline
7498 \end_inset
7499
7500     
7501 \backslash
7502 usepackage{myclass}
7503 \begin_inset Newline newline
7504 \end_inset
7505
7506 EndPreamble
7507 \end_layout
7508
7509 \begin_layout Standard
7510 near the top of the file.
7511 \end_layout
7512
7513 \begin_layout Standard
7514 Start \SpecialChar LyX
7515  and select 
7516 \begin_inset Flex Noun
7517 status collapsed
7518
7519 \begin_layout Plain Layout
7520 Tools\SpecialChar menuseparator
7521 Reconfigure
7522 \end_layout
7523
7524 \end_inset
7525
7526 .
7527  Then restart \SpecialChar LyX
7528  and try creating a new document.
7529  You should see "
7530 \begin_inset Flex Noun
7531 status collapsed
7532
7533 \begin_layout Plain Layout
7534 Report (My Class)
7535 \end_layout
7536
7537 \end_inset
7538
7539 " as a document class option in the 
7540 \begin_inset Flex Noun
7541 status collapsed
7542
7543 \begin_layout Plain Layout
7544 Document\SpecialChar menuseparator
7545 Settings
7546 \end_layout
7547
7548 \end_inset
7549
7550  dialog.
7551  It is likely that some of the sectioning commands and such in your new
7552  class will work differently from how they worked in the base class—
7553 \begin_inset Flex Code
7554 status collapsed
7555
7556 \begin_layout Plain Layout
7557 report
7558 \end_layout
7559
7560 \end_inset
7561
7562  in this example—so you can fiddle around with the settings for the different
7563  sections if you wish.
7564  The layout information for sections is contained in 
7565 \begin_inset Flex Code
7566 status collapsed
7567
7568 \begin_layout Plain Layout
7569 stdsections.inc
7570 \end_layout
7571
7572 \end_inset
7573
7574 , but you do not need to copy and change this file.
7575  Instead, you can simply add your changes to your layout file, after the
7576  line 
7577 \begin_inset Flex Code
7578 status collapsed
7579
7580 \begin_layout Plain Layout
7581 Input stdclass.inc
7582 \end_layout
7583
7584 \end_inset
7585
7586 , which itself includes 
7587 \begin_inset Flex Code
7588 status collapsed
7589
7590 \begin_layout Plain Layout
7591 stdsections.inc
7592 \end_layout
7593
7594 \end_inset
7595
7596 .
7597  For example, you might add these lines:
7598 \end_layout
7599
7600 \begin_layout LyX-Code
7601 Style Chapter
7602 \end_layout
7603
7604 \begin_layout LyX-Code
7605     Font
7606 \end_layout
7607
7608 \begin_layout LyX-Code
7609         Family Sans
7610 \end_layout
7611
7612 \begin_layout LyX-Code
7613     EndFont
7614 \end_layout
7615
7616 \begin_layout LyX-Code
7617 End
7618 \end_layout
7619
7620 \begin_layout Standard
7621 to change the font for chapter headings to sans-serif.
7622  This will override (or, in this case, add to) the existing declaration
7623  for the Chapter style.
7624  
7625 \end_layout
7626
7627 \begin_layout Standard
7628 Your new package may also provide commands or environments not present in
7629  the base class.
7630  In this case, you will want to add these to the layout file.
7631  See 
7632 \begin_inset CommandInset ref
7633 LatexCommand ref
7634 reference "sec:TextClass"
7635
7636 \end_inset
7637
7638  for information on how to do so.
7639 \end_layout
7640
7641 \begin_layout Standard
7642 If 
7643 \begin_inset Flex Noun
7644 status collapsed
7645
7646 \begin_layout Plain Layout
7647 myclass.sty
7648 \end_layout
7649
7650 \end_inset
7651
7652  can be used with several different document classes, and even if it cannot,
7653  you might find it easiest just to write a module that you can load with
7654  the base class.
7655  The simplest possible such module would be:
7656 \end_layout
7657
7658 \begin_layout LyX-Code
7659 #
7660 \backslash
7661 DeclareLyXModule{My Class} 
7662 \end_layout
7663
7664 \begin_layout LyX-Code
7665 #DescriptionBegin 
7666 \end_layout
7667
7668 \begin_layout LyX-Code
7669 #Support for myclass.sty.
7670 \end_layout
7671
7672 \begin_layout LyX-Code
7673 #DescriptionEnd
7674 \begin_inset Newline newline
7675 \end_inset
7676
7677
7678 \end_layout
7679
7680 \begin_layout LyX-Code
7681 Format 
7682 \begin_inset Info
7683 type  "lyxinfo"
7684 arg   "layoutformat"
7685 \end_inset
7686
7687
7688 \begin_inset Newline newline
7689 \end_inset
7690
7691
7692 \end_layout
7693
7694 \begin_layout LyX-Code
7695 Preamble
7696 \begin_inset Newline newline
7697 \end_inset
7698
7699     
7700 \backslash
7701 usepackage{myclass}
7702 \begin_inset Newline newline
7703 \end_inset
7704
7705 EndPreamble
7706 \end_layout
7707
7708 \begin_layout Standard
7709 A more complex module might modify the behavior of some existing constructs
7710  or define some new ones.
7711  Again, see 
7712 \begin_inset CommandInset ref
7713 LatexCommand ref
7714 reference "sec:TextClass"
7715
7716 \end_inset
7717
7718  for discussion.
7719 \end_layout
7720
7721 \begin_layout Subsection
7722 Layout for 
7723 \begin_inset Flex Noun
7724 status collapsed
7725
7726 \begin_layout Plain Layout
7727 .cls
7728 \end_layout
7729
7730 \end_inset
7731
7732  files
7733 \end_layout
7734
7735 \begin_layout Standard
7736 There are two possibilities here.
7737  One is that the class file is itself based upon an existing document class.
7738  For example, many thesis classes are based upon 
7739 \begin_inset Flex Noun
7740 status collapsed
7741
7742 \begin_layout Plain Layout
7743 book.cls
7744 \end_layout
7745
7746 \end_inset
7747
7748 .
7749  To see whether yours is, look for a line like
7750 \end_layout
7751
7752 \begin_layout LyX-Code
7753
7754 \backslash
7755 LoadClass{book}
7756 \end_layout
7757
7758 \begin_layout Standard
7759 in the file.
7760  If so, then you may proceed largely as in the previous section, though
7761  the 
7762 \begin_inset Flex Code
7763 status collapsed
7764
7765 \begin_layout Plain Layout
7766 Declare\SpecialChar LaTeX
7767 Class
7768 \end_layout
7769
7770 \end_inset
7771
7772  line will be different.
7773  If your new class is 
7774 \begin_inset Flex Code
7775 status collapsed
7776
7777 \begin_layout Plain Layout
7778 thesis
7779 \end_layout
7780
7781 \end_inset
7782
7783  and it is based upon 
7784 \begin_inset Flex Code
7785 status collapsed
7786
7787 \begin_layout Plain Layout
7788 book
7789 \end_layout
7790
7791 \end_inset
7792
7793 , then the line should read:
7794 \begin_inset Foot
7795 status collapsed
7796
7797 \begin_layout Plain Layout
7798 And it will be easiest if you save the file to 
7799 \begin_inset Flex Code
7800 status collapsed
7801
7802 \begin_layout Plain Layout
7803 thesis.layout
7804 \end_layout
7805
7806 \end_inset
7807
7808 : \SpecialChar LyX
7809  assumes that the document class has the same name as the layout file.
7810  
7811 \end_layout
7812
7813 \end_inset
7814
7815
7816 \end_layout
7817
7818 \begin_layout LyX-Code
7819
7820 \backslash
7821 DeclareLaTeXClass[thesis,book]{thesis}
7822 \end_layout
7823
7824 \begin_layout Standard
7825 If, on the other hand, the new class is not based upon an existing class,
7826  you will probably have to 
7827 \begin_inset Quotes eld
7828 \end_inset
7829
7830 roll your own
7831 \begin_inset Quotes erd
7832 \end_inset
7833
7834  layout.
7835  We strongly suggest copying an existing layout file which uses a similar
7836  \SpecialChar LaTeX
7837  class and then modifying it, if you can do so.
7838  At least use an existing file as a starting point so you can find out what
7839  items you need to worry about.
7840  Again, the specifics are covered below.
7841 \end_layout
7842
7843 \begin_layout Subsection
7844 Creating templates
7845 \begin_inset CommandInset label
7846 LatexCommand label
7847 name "subsec:Creating-Templates"
7848
7849 \end_inset
7850
7851
7852 \end_layout
7853
7854 \begin_layout Standard
7855 Once you have written a layout file for a new document class, you might
7856  want to consider writing a 
7857 \emph on
7858 template
7859 \emph default
7860  for it, too.
7861  A template acts as a kind of tutorial for your layout, showing how it might
7862  be used, though containing dummy content.
7863  You can of course look at the various templates included with \SpecialChar LyX
7864  for ideas.
7865 \end_layout
7866
7867 \begin_layout Standard
7868 Templates are created just like usual documents: using \SpecialChar LyX
7869 .
7870  The only difference is that usual documents contain all possible settings,
7871  including the font scheme and the paper size.
7872  Usually a user doesn't want a template to overwrite his preferred settings
7873  for such parameters.
7874  For that reason, the designer of a template should remove the corresponding
7875  commands like 
7876 \begin_inset Flex Code
7877 status collapsed
7878
7879 \begin_layout Plain Layout
7880
7881 \backslash
7882 font_roman
7883 \end_layout
7884
7885 \end_inset
7886
7887  or 
7888 \begin_inset Flex Code
7889 status collapsed
7890
7891 \begin_layout Plain Layout
7892
7893 \backslash
7894 papersize
7895 \end_layout
7896
7897 \end_inset
7898
7899  from the template \SpecialChar LyX
7900  file.
7901  This can be done with any simple text-editor, for example 
7902 \begin_inset Flex Code
7903 status collapsed
7904
7905 \begin_layout Plain Layout
7906 vi
7907 \end_layout
7908
7909 \end_inset
7910
7911  or 
7912 \begin_inset Flex Code
7913 status collapsed
7914
7915 \begin_layout Plain Layout
7916 notepad
7917 \end_layout
7918
7919 \end_inset
7920
7921 .
7922 \end_layout
7923
7924 \begin_layout Standard
7925 Put the edited template files you create in 
7926 \begin_inset Flex Code
7927 status collapsed
7928
7929 \begin_layout Plain Layout
7930 UserDir/templates/
7931 \end_layout
7932
7933 \end_inset
7934
7935 , copy the ones you use from the global template directory in 
7936 \begin_inset Flex Code
7937 status collapsed
7938
7939 \begin_layout Plain Layout
7940 LyXDir/templates/
7941 \end_layout
7942
7943 \end_inset
7944
7945  to the same place, and redefine the template path in the 
7946 \begin_inset Flex Noun
7947 status collapsed
7948
7949 \begin_layout Plain Layout
7950 Tools\SpecialChar menuseparator
7951 Preferences\SpecialChar menuseparator
7952 Paths
7953 \end_layout
7954
7955 \end_inset
7956
7957  dialog.
7958 \end_layout
7959
7960 \begin_layout Standard
7961 Note, by the way, that there is a template which has a particular meaning:
7962 \begin_inset Newline linebreak
7963 \end_inset
7964
7965
7966 \begin_inset Flex Code
7967 status collapsed
7968
7969 \begin_layout Plain Layout
7970 defaults.lyx
7971 \end_layout
7972
7973 \end_inset
7974
7975 .
7976  This template is loaded every time you create a new document with 
7977 \begin_inset Flex Noun
7978 status collapsed
7979
7980 \begin_layout Plain Layout
7981 File\SpecialChar menuseparator
7982 New
7983 \end_layout
7984
7985 \end_inset
7986
7987  in order to provide useful defaults.
7988  To create this template from inside \SpecialChar LyX
7989 , all you have to do is to open a document
7990  with the correct settings, and use the 
7991 \begin_inset Flex Noun
7992 status collapsed
7993
7994 \begin_layout Plain Layout
7995 Save as Document Defaults
7996 \end_layout
7997
7998 \end_inset
7999
8000  button.
8001 \end_layout
8002
8003 \begin_layout Subsection
8004 Upgrading old layout files
8005 \end_layout
8006
8007 \begin_layout Standard
8008 The format of layout files changes with each \SpecialChar LyX
8009  release, so old layout files
8010  need to be converted to the new format.
8011  If \SpecialChar LyX
8012  reads a layout file in an older format, it automatically calls the
8013  script 
8014 \begin_inset Flex Code
8015 status collapsed
8016
8017 \begin_layout Plain Layout
8018 layout2layout.py
8019 \end_layout
8020
8021 \end_inset
8022
8023  to convert it to a temporary file in current format.
8024  The original file is left untouched.
8025  If you use the layout file often, then, you may want to convert it permanently,
8026  so that \SpecialChar LyX
8027  does not have to do so itself every time.
8028  To do this, you can call the converter manually:
8029 \end_layout
8030
8031 \begin_layout Enumerate
8032 rename the file 
8033 \begin_inset Flex Code
8034 status collapsed
8035
8036 \begin_layout Plain Layout
8037 myclass.layout
8038 \end_layout
8039
8040 \end_inset
8041
8042  to 
8043 \begin_inset Flex Code
8044 status collapsed
8045
8046 \begin_layout Plain Layout
8047 myclass.old
8048 \end_layout
8049
8050 \end_inset
8051
8052
8053 \end_layout
8054
8055 \begin_layout Enumerate
8056 Call the command
8057 \begin_inset Newline newline
8058 \end_inset
8059
8060
8061 \begin_inset Flex Code
8062 status collapsed
8063
8064 \begin_layout Plain Layout
8065 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8066 \end_layout
8067
8068 \end_inset
8069
8070
8071 \begin_inset Newline newline
8072 \end_inset
8073
8074 where 
8075 \begin_inset Flex Code
8076 status collapsed
8077
8078 \begin_layout Plain Layout
8079 LyXDir
8080 \end_layout
8081
8082 \end_inset
8083
8084  is the name of your \SpecialChar LyX
8085  system directory.
8086 \end_layout
8087
8088 \begin_layout Standard
8089 Note that manual conversion does not affect included files, so these will
8090  have to be converted separately.
8091 \end_layout
8092
8093 \begin_layout Subsection
8094 \begin_inset CommandInset label
8095 LatexCommand label
8096 name "subsec:Cite-Engine-Files"
8097
8098 \end_inset
8099
8100 Cite engine files
8101 \end_layout
8102
8103 \begin_layout Standard
8104 A specific form of layout files are the so-called 
8105 \begin_inset Flex Code
8106 status collapsed
8107
8108 \begin_layout Plain Layout
8109 *.citeengine
8110 \end_layout
8111
8112 \end_inset
8113
8114  files that are located in the 
8115 \begin_inset Flex Code
8116 status collapsed
8117
8118 \begin_layout Plain Layout
8119 citeengines/
8120 \end_layout
8121
8122 \end_inset
8123
8124  sub-directory.
8125  Their purpose is to define the specifics of \SpecialChar LaTeX
8126  packages aimed at bibliography
8127  generation, such as 
8128 \family sans
8129 natbib
8130 \family default
8131 ,
8132 \family sans
8133  jurabib
8134 \family default
8135  or 
8136 \family sans
8137 biblatex
8138 \family default
8139 , but also the way how normal Bib\SpecialChar TeX
8140  citations (without additional packages)
8141  are handled in \SpecialChar LyX
8142  is defined in such a file.
8143  
8144 \end_layout
8145
8146 \begin_layout Standard
8147 More specifically, it is defined which packages \SpecialChar LyX
8148  needs to load, which citation
8149  commands are available, how these are to be displayed in \SpecialChar LyX
8150  (in the workarea,
8151  the dialogs, the context menus) as well as in the XHTML and plain text
8152  output.
8153  Furthermore, the files specify available style variants (author-year, numerical
8154 , etc.) and their specifics.
8155  The cite engine files are also used to generate the options that are available
8156  in 
8157 \family sans
8158 Document\SpecialChar menuseparator
8159 Settings\SpecialChar menuseparator
8160 Bibliography\SpecialChar menuseparator
8161 Style engine
8162 \family default
8163 .
8164 \end_layout
8165
8166 \begin_layout Standard
8167 Even though a cite engine file is essentially a normal layout file that
8168  could theoretically include any layout information, it usually primarily
8169  includes some specific parameters such as 
8170 \begin_inset Flex Code
8171 status collapsed
8172
8173 \begin_layout Plain Layout
8174 MaxCiteNames
8175 \end_layout
8176
8177 \end_inset
8178
8179
8180 \begin_inset Flex Code
8181 status collapsed
8182
8183 \begin_layout Plain Layout
8184 CiteFramework
8185 \end_layout
8186
8187 \end_inset
8188
8189
8190 \begin_inset Flex Code
8191 status collapsed
8192
8193 \begin_layout Plain Layout
8194 CiteEngine
8195 \end_layout
8196
8197 \end_inset
8198
8199  and 
8200 \begin_inset Flex Code
8201 status collapsed
8202
8203 \begin_layout Plain Layout
8204 CiteFormat
8205 \end_layout
8206
8207 \end_inset
8208
8209  blocks.
8210  The syntax of the latter two is described in 
8211 \begin_inset CommandInset ref
8212 LatexCommand ref
8213 reference "subsec:Citation-engine-description"
8214 plural "false"
8215 caps "false"
8216 noprefix "false"
8217
8218 \end_inset
8219
8220  and 
8221 \begin_inset CommandInset ref
8222 LatexCommand ref
8223 reference "subsec:Citation-format-description"
8224
8225 \end_inset
8226
8227 , as well as in the files themselves.
8228 \end_layout
8229
8230 \begin_layout Section
8231 \begin_inset CommandInset label
8232 LatexCommand label
8233 name "sec:TextClass"
8234
8235 \end_inset
8236
8237 The layout file format
8238 \end_layout
8239
8240 \begin_layout Standard
8241 The following sections describe how layout files are structured and written.
8242  Our advice is to go slowly, save and test often.
8243  It is really not that hard, except that the multitude of options can become
8244  overwhelming, especially if you try to check out too many at once.
8245  It becomes easier if you use existing layouts of \SpecialChar LyX
8246  as examples/reference
8247  or if you modify an existing layout to your needs.
8248 \end_layout
8249
8250 \begin_layout Standard
8251 Note that all the tags used in layout files are case-insensitive.
8252  This means that 
8253 \begin_inset Flex Code
8254 status collapsed
8255
8256 \begin_layout Plain Layout
8257 Style
8258 \end_layout
8259
8260 \end_inset
8261
8262
8263 \begin_inset Flex Code
8264 status collapsed
8265
8266 \begin_layout Plain Layout
8267 style
8268 \end_layout
8269
8270 \end_inset
8271
8272  and 
8273 \begin_inset Flex Code
8274 status collapsed
8275
8276 \begin_layout Plain Layout
8277 StYlE
8278 \end_layout
8279
8280 \end_inset
8281
8282  are really the same tag.
8283  The possible arguments are printed in brackets after the tag's name.
8284  The default argument is typeset 
8285 \begin_inset Flex Code
8286 status collapsed
8287
8288 \begin_layout Plain Layout
8289
8290 \emph on
8291 emphasized
8292 \end_layout
8293
8294 \end_inset
8295
8296 .
8297  If the argument has a data type like 
8298 \begin_inset Quotes eld
8299 \end_inset
8300
8301 string
8302 \begin_inset Quotes erd
8303 \end_inset
8304
8305  or 
8306 \begin_inset Quotes eld
8307 \end_inset
8308
8309 float
8310 \begin_inset Quotes erd
8311 \end_inset
8312
8313 , the default is shown like this: 
8314 \begin_inset Flex Code
8315 status collapsed
8316
8317 \begin_layout Plain Layout
8318 float=
8319 \emph on
8320 default
8321 \end_layout
8322
8323 \end_inset
8324
8325 .
8326 \end_layout
8327
8328 \begin_layout Subsection
8329 The document class declaration and classification
8330 \end_layout
8331
8332 \begin_layout Standard
8333 Lines in a layout file which begin with 
8334 \begin_inset Flex Code
8335 status collapsed
8336
8337 \begin_layout Plain Layout
8338 #
8339 \end_layout
8340
8341 \end_inset
8342
8343  are comments.
8344  There is one exception to this rule.
8345  All 
8346 \begin_inset Flex Code
8347 status collapsed
8348
8349 \begin_layout Plain Layout
8350 *.layout
8351 \end_layout
8352
8353 \end_inset
8354
8355  files should begin with lines like:
8356 \end_layout
8357
8358 \begin_layout LyX-Code
8359
8360 \size small
8361 #% Do not delete the line below; configure depends on this 
8362 \end_layout
8363
8364 \begin_layout LyX-Code
8365
8366 \size small
8367 #  
8368 \backslash
8369 DeclareLaTeXClass{Article (Standard Class)}
8370 \end_layout
8371
8372 \begin_layout LyX-Code
8373
8374 \size small
8375 #  
8376 \backslash
8377 DeclareCategory{Articles}
8378 \end_layout
8379
8380 \begin_layout Standard
8381 The second and third lines are used when you (re)configure \SpecialChar LyX
8382 .
8383  The layout file is read by the \SpecialChar LaTeX
8384  script 
8385 \begin_inset Flex Code
8386 status collapsed
8387
8388 \begin_layout Plain Layout
8389 chkconfig.ltx
8390 \end_layout
8391
8392 \end_inset
8393
8394 , in a special mode where 
8395 \begin_inset Flex Code
8396 status collapsed
8397
8398 \begin_layout Plain Layout
8399 #
8400 \end_layout
8401
8402 \end_inset
8403
8404  is ignored.
8405  The first line is just a \SpecialChar LaTeX
8406  comment, the second one contains the mandatory
8407  declaration of the text class and the third line contains the optional
8408  classification of the class.
8409  If these lines appear in a file named 
8410 \begin_inset Flex Code
8411 status collapsed
8412
8413 \begin_layout Plain Layout
8414 article.layout
8415 \end_layout
8416
8417 \end_inset
8418
8419 , then they define a text class of name 
8420 \begin_inset Flex Code
8421 status collapsed
8422
8423 \begin_layout Plain Layout
8424 article
8425 \end_layout
8426
8427 \end_inset
8428
8429  (the name of the layout file) which uses the \SpecialChar LaTeX
8430  document class 
8431 \begin_inset Flex Code
8432 status collapsed
8433
8434 \begin_layout Plain Layout
8435 article.cls
8436 \end_layout
8437
8438 \end_inset
8439
8440  (the default is to use the same name as the layout).
8441  The string 
8442 \begin_inset Quotes eld
8443 \end_inset
8444
8445 Article (Standard Class)
8446 \begin_inset Quotes erd
8447 \end_inset
8448
8449  that appears above is used as a description of the text class in the 
8450 \begin_inset Flex Noun
8451 status collapsed
8452
8453 \begin_layout Plain Layout
8454 Document\SpecialChar menuseparator
8455 Settings
8456 \end_layout
8457
8458 \end_inset
8459
8460  dialog.
8461  The category (
8462 \begin_inset Quotes eld
8463 \end_inset
8464
8465 Articles
8466 \begin_inset Quotes erd
8467 \end_inset
8468
8469  in the example) is also used in the 
8470 \begin_inset Flex Noun
8471 status collapsed
8472
8473 \begin_layout Plain Layout
8474 Document\SpecialChar menuseparator
8475 Settings
8476 \end_layout
8477
8478 \end_inset
8479
8480  dialog: the text classes are grouped by these categories (which are usually
8481  genres, so typical categories are 
8482 \begin_inset Quotes eld
8483 \end_inset
8484
8485 Articles
8486 \begin_inset Quotes erd
8487 \end_inset
8488
8489
8490 \begin_inset Quotes eld
8491 \end_inset
8492
8493 Books
8494 \begin_inset Quotes erd
8495 \end_inset
8496
8497
8498 \begin_inset Quotes eld
8499 \end_inset
8500
8501 Reports
8502 \begin_inset Quotes erd
8503 \end_inset
8504
8505
8506 \begin_inset Quotes eld
8507 \end_inset
8508
8509 Letters
8510 \begin_inset Quotes erd
8511 \end_inset
8512
8513
8514 \begin_inset Quotes eld
8515 \end_inset
8516
8517 Presentations
8518 \begin_inset Quotes erd
8519 \end_inset
8520
8521
8522 \begin_inset Quotes eld
8523 \end_inset
8524
8525 Curricula Vitae
8526 \begin_inset Quotes erd
8527 \end_inset
8528
8529  etc.).
8530  If no category has been declared, the class will be put in the 
8531 \begin_inset Quotes eld
8532 \end_inset
8533
8534 Uncategorized
8535 \begin_inset Quotes erd
8536 \end_inset
8537
8538  group.
8539 \end_layout
8540
8541 \begin_layout Standard
8542 Let's assume that you wrote your own text class that uses the 
8543 \begin_inset Flex Code
8544 status collapsed
8545
8546 \begin_layout Plain Layout
8547 article.cls
8548 \end_layout
8549
8550 \end_inset
8551
8552  document class, but where you changed the appearance of the section headings.
8553  If you put it in a file 
8554 \begin_inset Flex Code
8555 status collapsed
8556
8557 \begin_layout Plain Layout
8558 myarticle.layout
8559 \end_layout
8560
8561 \end_inset
8562
8563 , the header of this file should be:
8564 \end_layout
8565
8566 \begin_layout LyX-Code
8567
8568 \size small
8569 #% Do not delete the line below; configure depends on this 
8570 \end_layout
8571
8572 \begin_layout LyX-Code
8573
8574 \size small
8575 #  
8576 \backslash
8577 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8578 \end_layout
8579
8580 \begin_layout LyX-Code
8581
8582 \size small
8583 #  
8584 \backslash
8585 DeclareCategory{Articles}
8586 \end_layout
8587
8588 \begin_layout Standard
8589 This declares a text class 
8590 \begin_inset Flex Code
8591 status collapsed
8592
8593 \begin_layout Plain Layout
8594 myarticle
8595 \end_layout
8596
8597 \end_inset
8598
8599 , associated with the \SpecialChar LaTeX
8600  document class 
8601 \begin_inset Flex Code
8602 status collapsed
8603
8604 \begin_layout Plain Layout
8605 article.cls
8606 \end_layout
8607
8608 \end_inset
8609
8610  and described as 
8611 \begin_inset Quotes eld
8612 \end_inset
8613
8614 Article (with My Own Headings)
8615 \begin_inset Quotes erd
8616 \end_inset
8617
8618 .
8619  If your text class depends on several packages, you can declare it as:
8620 \end_layout
8621
8622 \begin_layout LyX-Code
8623
8624 \size small
8625 #% Do not delete the line below; configure depends on this 
8626 \end_layout
8627
8628 \begin_layout LyX-Code
8629
8630 \size small
8631 #  
8632 \backslash
8633 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8634 \end_layout
8635
8636 \begin_layout LyX-Code
8637
8638 \size small
8639 #  
8640 \backslash
8641 DeclareCategory{Articles}
8642 \end_layout
8643
8644 \begin_layout Standard
8645 This indicates that your text class uses the 
8646 \begin_inset Flex Code
8647 status collapsed
8648
8649 \begin_layout Plain Layout
8650 foo.sty
8651 \end_layout
8652
8653 \end_inset
8654
8655  package.
8656  
8657 \change_deleted 5863208 1594239179
8658 Finally, it is also possible to declare classes for DocBook code.
8659  Typical declarations will look like:
8660 \end_layout
8661
8662 \begin_layout LyX-Code
8663
8664 \change_deleted 5863208 1594239179
8665
8666 \size small
8667 #% Do not delete the line below; configure depends on this 
8668 \end_layout
8669
8670 \begin_layout LyX-Code
8671
8672 \change_deleted 5863208 1594239179
8673
8674 \size small
8675
8676 \backslash
8677 DeclareDocBookClass[article]{SGML (DocBook Article)}
8678 \end_layout
8679
8680 \begin_layout LyX-Code
8681
8682 \change_deleted 5863208 1594239179
8683
8684 \size small
8685
8686 \backslash
8687 DeclareCategory{Articles (DocBook)}
8688 \change_unchanged
8689
8690 \end_layout
8691
8692 \begin_layout Standard
8693 Note that these declarations can also be given an optional parameter declaring
8694  the name of the document class (but not a list).
8695 \end_layout
8696
8697 \begin_layout Standard
8698 So, to be as explicit as possible, the form of the layout declaration is:
8699 \end_layout
8700
8701 \begin_layout LyX-Code
8702
8703 \size small
8704 #  
8705 \backslash
8706 DeclareLaTeXClass[class,package.sty]{layout description}
8707 \end_layout
8708
8709 \begin_layout LyX-Code
8710
8711 \size small
8712 #  
8713 \backslash
8714 DeclareCategory{category}
8715 \end_layout
8716
8717 \begin_layout Standard
8718 The class need only be specified if the name of the \SpecialChar LaTeX
8719  class file and the
8720  name of the layout file are different or if there are packages to load.
8721  If the name of the class file is not specified, then \SpecialChar LyX
8722  will simply assume
8723  that it is the same as the name of the layout file.
8724 \end_layout
8725
8726 \begin_layout Standard
8727 When the text class has been modified to your taste, all you have to do
8728  is to copy it either to 
8729 \begin_inset Flex Code
8730 status collapsed
8731
8732 \begin_layout Plain Layout
8733 LyXDir/layouts/
8734 \end_layout
8735
8736 \end_inset
8737
8738  or to 
8739 \begin_inset Flex Code
8740 status collapsed
8741
8742 \begin_layout Plain Layout
8743 UserDir/layouts
8744 \end_layout
8745
8746 \end_inset
8747
8748 , run 
8749 \begin_inset Flex Noun
8750 status collapsed
8751
8752 \begin_layout Plain Layout
8753 Tools\SpecialChar menuseparator
8754 Reconfigure
8755 \end_layout
8756
8757 \end_inset
8758
8759 , exit \SpecialChar LyX
8760  and restart.
8761  Then your new text class should be available along with the others.
8762 \end_layout
8763
8764 \begin_layout Standard
8765 Once the layout file is installed, you can edit it and see your changes
8766  without having to reconfigure or to restart \SpecialChar LyX
8767 .
8768 \begin_inset Foot
8769 status collapsed
8770
8771 \begin_layout Plain Layout
8772 In versions of \SpecialChar LyX
8773  prior to 1.6, this was not true.
8774  As a result, editing layout files was very time consuming, since you had
8775  constantly to restart \SpecialChar LyX
8776  to see changes.
8777 \end_layout
8778
8779 \end_inset
8780
8781  You can force a reload of the current layout by using the \SpecialChar LyX
8782  function 
8783 \begin_inset Flex Noun
8784 status collapsed
8785
8786 \begin_layout Plain Layout
8787 layout-reload
8788 \end_layout
8789
8790 \end_inset
8791
8792 .
8793  There is no default binding for this function—though, of course, you can
8794  bind it to a key yourself.
8795  But you will normally use this function simply by entering it in the mini-buffe
8796 r.
8797  
8798 \end_layout
8799
8800 \begin_layout Standard
8801
8802 \emph on
8803 Warning
8804 \emph default
8805
8806 \begin_inset Flex Noun
8807 status collapsed
8808
8809 \begin_layout Plain Layout
8810 layout-reload
8811 \end_layout
8812
8813 \end_inset
8814
8815  is very much an `advanced feature'.
8816  It is 
8817 \emph on
8818 strongly
8819 \emph default
8820  recommended that you save your work before using this function.
8821  In fact, it is 
8822 \emph on
8823 strongly
8824 \emph default
8825  recommended that you not attempt to edit layout information while simultaneousl
8826 y working on a document that you care about.
8827  Use a test document.
8828  Syntax errors and the like in your layout file could cause peculiar behavior.
8829  In particular, such errors could cause \SpecialChar LyX
8830  to regard the current layout as
8831  invalid and to attempt to switch to some other layout.
8832 \begin_inset Foot
8833 status collapsed
8834
8835 \begin_layout Plain Layout
8836 Really bad syntax errors may even caused \SpecialChar LyX
8837  to exit.
8838  This is because certain sorts of errors may make \SpecialChar LyX
8839  unable to read 
8840 \emph on
8841 any
8842 \emph default
8843  layout information.
8844  Please be careful.
8845 \end_layout
8846
8847 \end_inset
8848
8849  The \SpecialChar LyX
8850  team strives to keep \SpecialChar LyX
8851  stable in such situations, but safe is better
8852  than sorry.
8853 \begin_inset Foot
8854 status collapsed
8855
8856 \begin_layout Plain Layout
8857 While we're giving advice: make regular backups.
8858  And be nice to your mother.
8859 \end_layout
8860
8861 \end_inset
8862
8863
8864 \end_layout
8865
8866 \begin_layout Subsection
8867 The Module declaration
8868 \end_layout
8869
8870 \begin_layout Standard
8871 A module must begin with a line like the following:
8872 \end_layout
8873
8874 \begin_layout LyX-Code
8875 #
8876 \backslash
8877 DeclareLyXModule[endnotes.sty]{Endnotes}
8878 \change_inserted -712698321 1554395911
8879
8880 \end_layout
8881
8882 \begin_layout LyX-Code
8883
8884 \change_inserted -712698321 1554395924
8885
8886 \size small
8887 #
8888 \backslash
8889 DeclareCategory{Foot- and Endnotes}
8890 \change_deleted -712698321 1554395911
8891
8892 \size default
8893  
8894 \change_unchanged
8895
8896 \end_layout
8897
8898 \begin_layout Standard
8899 The mandatory argument
8900 \change_inserted -712698321 1554395956
8901  of 
8902 \family typewriter
8903
8904 \backslash
8905 DeclareLyXModule
8906 \change_unchanged
8907
8908 \family default
8909 , in curly brackets, is the name of the module, as it should appear in 
8910 \begin_inset Flex Noun
8911 status collapsed
8912
8913 \begin_layout Plain Layout
8914 Document\SpecialChar menuseparator
8915 Settings\SpecialChar menuseparator
8916 Modules
8917 \end_layout
8918
8919 \end_inset
8920
8921 .
8922  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8923  packages
8924  on which the module depends.
8925  It is also possible to use the form 
8926 \begin_inset Flex Noun
8927 status collapsed
8928
8929 \begin_layout Plain Layout
8930 from->to
8931 \end_layout
8932
8933 \end_inset
8934
8935  as an optional argument, which declares that the module can only be used
8936  when there exists a conversion chain between the formats `
8937 \begin_inset Flex Code
8938 status collapsed
8939
8940 \begin_layout Plain Layout
8941 from
8942 \end_layout
8943
8944 \end_inset
8945
8946 ' and `
8947 \begin_inset Flex Code
8948 status collapsed
8949
8950 \begin_layout Plain Layout
8951 to
8952 \end_layout
8953
8954 \end_inset
8955
8956 '.
8957
8958 \change_inserted -712698321 1554396133
8959  The 
8960 \family typewriter
8961
8962 \backslash
8963 DeclareCategory
8964 \family default
8965  declaration is not strictly mandatory, but you should add it, since it
8966  is helpful to find the module.
8967  Please have a look at the existing module categories and if appropriate,
8968  use one of those.
8969 \change_unchanged
8970
8971 \end_layout
8972
8973 \begin_layout Standard
8974 The module 
8975 \change_inserted -712698321 1554395988
8976 and category 
8977 \change_unchanged
8978 declaration should then be followed by lines like the following:
8979 \begin_inset Foot
8980 status collapsed
8981
8982 \begin_layout Plain Layout
8983 Preferably in English if the module should be published with \SpecialChar LyX
8984 .
8985  This description will appear in the list of messages to be translated and
8986  will be thus translated with the next interface update.
8987 \end_layout
8988
8989 \end_inset
8990
8991
8992 \end_layout
8993
8994 \begin_layout LyX-Code
8995 #DescriptionBegin 
8996 \end_layout
8997
8998 \begin_layout LyX-Code
8999 #Adds an endnote command, in addition to footnotes.
9000  
9001 \end_layout
9002
9003 \begin_layout LyX-Code
9004 #You will need to add  
9005 \backslash
9006 theendnotes in TeX code where you 
9007 \end_layout
9008
9009 \begin_layout LyX-Code
9010 #want the endnotes to appear.
9011  
9012 \end_layout
9013
9014 \begin_layout LyX-Code
9015 #DescriptionEnd 
9016 \end_layout
9017
9018 \begin_layout LyX-Code
9019 #Requires: somemodule | othermodule
9020 \end_layout
9021
9022 \begin_layout LyX-Code
9023 #Excludes: badmodule
9024 \end_layout
9025
9026 \begin_layout Standard
9027 The description is used in 
9028 \begin_inset Flex Noun
9029 status collapsed
9030
9031 \begin_layout Plain Layout
9032 Document\SpecialChar menuseparator
9033 Settings\SpecialChar menuseparator
9034 Modules
9035 \end_layout
9036
9037 \end_inset
9038
9039  to provide the user with information about what the module does.
9040  The 
9041 \begin_inset Flex Code
9042 status collapsed
9043
9044 \begin_layout Plain Layout
9045 Requires
9046 \end_layout
9047
9048 \end_inset
9049
9050  line is used to identify other modules with which this one must be used;
9051  the 
9052 \begin_inset Flex Code
9053 status collapsed
9054
9055 \begin_layout Plain Layout
9056 Excludes
9057 \end_layout
9058
9059 \end_inset
9060
9061  line is used to identify modules with which this one may not be used.
9062  Both are optional, and, as shown, multiple modules should be separated
9063  with the pipe symbol: |.
9064  Note that the required modules are treated disjunctively: 
9065 \emph on
9066 at least one
9067 \emph default
9068  of the required modules must be used.
9069  Similarly, 
9070 \emph on
9071 no
9072 \emph default
9073  excluded module may be used.
9074  Note that modules are identified here by their filenames without the 
9075 \begin_inset Flex Code
9076 status collapsed
9077
9078 \begin_layout Plain Layout
9079 .module
9080 \end_layout
9081
9082 \end_inset
9083
9084  extension.
9085  So 
9086 \begin_inset Flex Code
9087 status collapsed
9088
9089 \begin_layout Plain Layout
9090 somemodule
9091 \end_layout
9092
9093 \end_inset
9094
9095  is really 
9096 \begin_inset Flex Code
9097 status collapsed
9098
9099 \begin_layout Plain Layout
9100 somemodule.module
9101 \end_layout
9102
9103 \end_inset
9104
9105 .
9106 \end_layout
9107
9108 \begin_layout Subsection
9109 The CiteEngine file declaration
9110 \end_layout
9111
9112 \begin_layout Standard
9113 A cite engine file must begin with a line like the following:
9114 \end_layout
9115
9116 \begin_layout LyX-Code
9117 #
9118 \backslash
9119 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9120 \end_layout
9121
9122 \begin_layout Standard
9123 The mandatory argument, in curly brackets, is the name of the cite style,
9124  as it should appear in 
9125 \begin_inset Flex Noun
9126 status collapsed
9127
9128 \begin_layout Plain Layout
9129 Document\SpecialChar menuseparator
9130 Settings\SpecialChar menuseparator
9131 Bibliography
9132 \end_layout
9133
9134 \end_inset
9135
9136 .
9137  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
9138  packages
9139  on which the cite engine depends.
9140 \end_layout
9141
9142 \begin_layout Standard
9143 The cite engine declaration should then be followed by lines like the following:
9144 \begin_inset Foot
9145 status collapsed
9146
9147 \begin_layout Plain Layout
9148 Preferably in English if the module should be published with \SpecialChar LyX
9149 .
9150  This description will appear in the list of messages to be translated and
9151  will be thus translated with the next interface update.
9152 \end_layout
9153
9154 \end_inset
9155
9156
9157 \end_layout
9158
9159 \begin_layout LyX-Code
9160 # DescriptionBegin
9161 \end_layout
9162
9163 \begin_layout LyX-Code
9164 #   Biblatex supports many author-year and numerical styles.
9165 \end_layout
9166
9167 \begin_layout LyX-Code
9168 #   It is mainly aimed at the Humanities.
9169  It is highly
9170 \end_layout
9171
9172 \begin_layout LyX-Code
9173 #   customizable, fully localized and provides many features
9174 \end_layout
9175
9176 \begin_layout LyX-Code
9177 #   that are not possible with BibTeX.
9178  The use of 'biber' as
9179 \end_layout
9180
9181 \begin_layout LyX-Code
9182 #   bibliography processor is advised.
9183 \end_layout
9184
9185 \begin_layout LyX-Code
9186 # DescriptionEnd
9187 \end_layout
9188
9189 \begin_layout Standard
9190 The description is used in 
9191 \begin_inset Flex Noun
9192 status collapsed
9193
9194 \begin_layout Plain Layout
9195 Document\SpecialChar menuseparator
9196 Settings\SpecialChar menuseparator
9197 Bibliography
9198 \end_layout
9199
9200 \end_inset
9201
9202  to provide the user with information about the cite engine.
9203 \end_layout
9204
9205 \begin_layout Subsection
9206 Format number
9207 \end_layout
9208
9209 \begin_layout Standard
9210 The first non-comment line of any layout file, included file, or module
9211  
9212 \emph on
9213 must
9214 \emph default
9215  contain the file format number:
9216 \end_layout
9217
9218 \begin_layout Description
9219 \begin_inset Flex Code
9220 status collapsed
9221
9222 \begin_layout Plain Layout
9223 Format
9224 \end_layout
9225
9226 \end_inset
9227
9228  [
9229 \begin_inset Flex Code
9230 status collapsed
9231
9232 \begin_layout Plain Layout
9233 int
9234 \end_layout
9235
9236 \end_inset
9237
9238 ] The format number of the layout file.
9239 \end_layout
9240
9241 \begin_layout Standard
9242 This tag was introduced with \SpecialChar LyX
9243
9244 \begin_inset space ~
9245 \end_inset
9246
9247 1.4.0.
9248  Layout files from older \SpecialChar LyX
9249  versions do not have an explicit file format and
9250  are considered to have 
9251 \begin_inset Flex Code
9252 status collapsed
9253
9254 \begin_layout Plain Layout
9255 Format
9256 \begin_inset space ~
9257 \end_inset
9258
9259 1
9260 \end_layout
9261
9262 \end_inset
9263
9264 .
9265  The format for the present version of \SpecialChar LyX
9266  is format 60.
9267  But each version of \SpecialChar LyX
9268  is capable of reading earlier versions' layout files,
9269  just as they are capable of reading files produced by earlier versions
9270  of \SpecialChar LyX
9271 .
9272  There is, however, no provision for converting to earlier formats.
9273 \end_layout
9274
9275 \begin_layout Subsection
9276 \begin_inset CommandInset label
9277 LatexCommand label
9278 name "subsec:General-text-class"
9279
9280 \end_inset
9281
9282 General text class parameters
9283 \end_layout
9284
9285 \begin_layout Standard
9286 These are general parameters that govern the behavior of an entire document
9287  class.
9288  (This does 
9289 \emph on
9290 not
9291 \emph default
9292  mean that they must appear in 
9293 \begin_inset Flex Code
9294 status collapsed
9295
9296 \begin_layout Plain Layout
9297 .layout
9298 \end_layout
9299
9300 \end_inset
9301
9302  files rather than in modules.
9303  A module can contain any layout tag.)
9304 \end_layout
9305
9306 \begin_layout Description
9307
9308 \change_inserted -712698321 1526899478
9309 \begin_inset Flex Code
9310 status collapsed
9311
9312 \begin_layout Plain Layout
9313
9314 \change_inserted -712698321 1526898610
9315 AddToCiteEngine <engine>
9316 \change_unchanged
9317
9318 \end_layout
9319
9320 \end_inset
9321
9322  Extends the possibilities for displaying citation references.
9323  See 
9324 \begin_inset CommandInset ref
9325 LatexCommand ref
9326 reference "subsec:Citation-engine-description"
9327 plural "false"
9328 caps "false"
9329 noprefix "false"
9330
9331 \end_inset
9332
9333  for details.
9334  Must end with 
9335 \begin_inset Flex Code
9336 status collapsed
9337
9338 \begin_layout Plain Layout
9339
9340 \change_inserted -712698321 1526898823
9341 End
9342 \change_unchanged
9343
9344 \end_layout
9345
9346 \end_inset
9347
9348 .
9349 \end_layout
9350
9351 \begin_layout Description
9352 \begin_inset Flex Code
9353 status collapsed
9354
9355 \begin_layout Plain Layout
9356 AddToHTMLPreamble
9357 \end_layout
9358
9359 \end_inset
9360
9361  Adds information that will be output in the 
9362 \begin_inset Flex Code
9363 status collapsed
9364
9365 \begin_layout Plain Layout
9366 <head>
9367 \end_layout
9368
9369 \end_inset
9370
9371  block when the document is output to XHTML.
9372  Typically, this would be used to output CSS style information, but it can
9373  be used for anything that can appear in 
9374 \begin_inset Flex Code
9375 status collapsed
9376
9377 \begin_layout Plain Layout
9378 <head>
9379 \end_layout
9380
9381 \end_inset
9382
9383 .
9384  Must end with 
9385 \begin_inset Quotes eld
9386 \end_inset
9387
9388
9389 \begin_inset Flex Code
9390 status collapsed
9391
9392 \begin_layout Plain Layout
9393 EndPreamble
9394 \end_layout
9395
9396 \end_inset
9397
9398
9399 \begin_inset Quotes erd
9400 \end_inset
9401
9402 .
9403 \end_layout
9404
9405 \begin_layout Description
9406 \begin_inset Flex Code
9407 status collapsed
9408
9409 \begin_layout Plain Layout
9410 AddToPreamble
9411 \end_layout
9412
9413 \end_inset
9414
9415  Adds information to the document preamble.
9416  Must end with
9417 \begin_inset Newline newline
9418 \end_inset
9419
9420
9421 \begin_inset Quotes eld
9422 \end_inset
9423
9424
9425 \begin_inset Flex Code
9426 status collapsed
9427
9428 \begin_layout Plain Layout
9429 EndPreamble
9430 \end_layout
9431
9432 \end_inset
9433
9434
9435 \begin_inset Quotes erd
9436 \end_inset
9437
9438 .
9439 \change_inserted -712698321 1562592950
9440
9441 \end_layout
9442
9443 \begin_layout Description
9444
9445 \change_inserted -712698321 1562593040
9446 \begin_inset Flex Code
9447 status collapsed
9448
9449 \begin_layout Plain Layout
9450
9451 \change_inserted -712698321 1562592954
9452 BibInToc
9453 \change_unchanged
9454
9455 \end_layout
9456
9457 \end_inset
9458
9459  [
9460 \begin_inset Flex Code
9461 status collapsed
9462
9463 \begin_layout Plain Layout
9464
9465 \change_inserted -712698321 1562592950
9466
9467 \emph on
9468 0
9469 \change_unchanged
9470
9471 \end_layout
9472
9473 \end_inset
9474
9475 ,
9476 \begin_inset space \thinspace{}
9477 \end_inset
9478
9479
9480 \begin_inset Flex Code
9481 status collapsed
9482
9483 \begin_layout Plain Layout
9484
9485 \change_inserted -712698321 1562592950
9486 1
9487 \change_unchanged
9488
9489 \end_layout
9490
9491 \end_inset
9492
9493 ] If the document class adds the bibliography to the table of contents,
9494  add this option with value 
9495 \begin_inset Flex Code
9496 status collapsed
9497
9498 \begin_layout Plain Layout
9499
9500 \change_inserted -712698321 1562592996
9501 1
9502 \change_unchanged
9503
9504 \end_layout
9505
9506 \end_inset
9507
9508  (or 
9509 \begin_inset Flex Code
9510 status collapsed
9511
9512 \begin_layout Plain Layout
9513
9514 \change_inserted -712698321 1562593006
9515 true
9516 \change_unchanged
9517
9518 \end_layout
9519
9520 \end_inset
9521
9522 ).
9523  This prevents the bibliography from being added twice.
9524 \change_unchanged
9525
9526 \end_layout
9527
9528 \begin_layout Description
9529 \begin_inset Flex Code
9530 status collapsed
9531
9532 \begin_layout Plain Layout
9533 CiteEngine <engine>
9534 \end_layout
9535
9536 \end_inset
9537
9538  Defines the possibilities for displaying citation references.
9539  See 
9540 \begin_inset CommandInset ref
9541 LatexCommand ref
9542 reference "subsec:Citation-engine-description"
9543 plural "false"
9544 caps "false"
9545 noprefix "false"
9546
9547 \end_inset
9548
9549  for details.
9550  Must end with 
9551 \begin_inset Quotes eld
9552 \end_inset
9553
9554
9555 \begin_inset Flex Code
9556 status collapsed
9557
9558 \begin_layout Plain Layout
9559 End
9560 \end_layout
9561
9562 \end_inset
9563
9564
9565 \begin_inset Quotes erd
9566 \end_inset
9567
9568 .
9569  Primarily used in cite engine files (see 
9570 \begin_inset CommandInset ref
9571 LatexCommand ref
9572 reference "subsec:Cite-Engine-Files"
9573 plural "false"
9574 caps "false"
9575 noprefix "false"
9576
9577 \end_inset
9578
9579 ).
9580
9581 \change_inserted -712698321 1526898530
9582  Note that if you specify this in a layout file or module, any cite engine
9583  definition will be overridden.
9584  Also see 
9585 \begin_inset Flex Code
9586 status collapsed
9587
9588 \begin_layout Plain Layout
9589
9590 \change_inserted -712698321 1526898530
9591 AddToCiteEngine
9592 \change_unchanged
9593
9594 \end_layout
9595
9596 \end_inset
9597
9598 .
9599 \change_unchanged
9600
9601 \end_layout
9602
9603 \begin_layout Description
9604 \begin_inset Flex Code
9605 status collapsed
9606
9607 \begin_layout Plain Layout
9608 CiteFormat
9609 \end_layout
9610
9611 \end_inset
9612
9613  Defines formats for use in the display of bibliographic information.
9614  See 
9615 \begin_inset CommandInset ref
9616 LatexCommand ref
9617 reference "subsec:Citation-format-description"
9618
9619 \end_inset
9620
9621  for details.
9622  Must end with 
9623 \begin_inset Quotes eld
9624 \end_inset
9625
9626
9627 \begin_inset Flex Code
9628 status collapsed
9629
9630 \begin_layout Plain Layout
9631 End
9632 \end_layout
9633
9634 \end_inset
9635
9636
9637 \begin_inset Quotes erd
9638 \end_inset
9639
9640 .
9641  Primarily used in cite engine files (see 
9642 \begin_inset CommandInset ref
9643 LatexCommand ref
9644 reference "subsec:Cite-Engine-Files"
9645 plural "false"
9646 caps "false"
9647 noprefix "false"
9648
9649 \end_inset
9650
9651 ).
9652
9653 \change_inserted -712698321 1526898585
9654  A cite format defined in a layout or module will override the cite engine
9655  definition.
9656 \change_unchanged
9657
9658 \end_layout
9659
9660 \begin_layout Description
9661 \begin_inset Flex Code
9662 status collapsed
9663
9664 \begin_layout Plain Layout
9665 CiteFramework
9666 \end_layout
9667
9668 \end_inset
9669
9670  [
9671 \begin_inset Flex Code
9672 status collapsed
9673
9674 \begin_layout Plain Layout
9675
9676 \emph on
9677 bibtex
9678 \end_layout
9679
9680 \end_inset
9681
9682 ,
9683 \begin_inset Flex Code
9684 status collapsed
9685
9686 \begin_layout Plain Layout
9687 biblatex
9688 \end_layout
9689
9690 \end_inset
9691
9692 ] Determines whether 
9693 \family sans
9694 Biblatex
9695 \family default
9696  or Bib\SpecialChar TeX
9697  is used to generate a Bibliography.
9698  Primarily used in cite engine files (see 
9699 \begin_inset CommandInset ref
9700 LatexCommand ref
9701 reference "subsec:Cite-Engine-Files"
9702 plural "false"
9703 caps "false"
9704 noprefix "false"
9705
9706 \end_inset
9707
9708 ).
9709 \end_layout
9710
9711 \begin_layout Description
9712 \begin_inset Flex Code
9713 status collapsed
9714
9715 \begin_layout Plain Layout
9716 ClassOptions
9717 \end_layout
9718
9719 \end_inset
9720
9721  Describes various global options supported by the document class.
9722  See 
9723 \begin_inset CommandInset ref
9724 LatexCommand ref
9725 reference "subsec:ClassOptions"
9726
9727 \end_inset
9728
9729  for a description.
9730  Must end with 
9731 \begin_inset Quotes eld
9732 \end_inset
9733
9734
9735 \begin_inset Flex Code
9736 status collapsed
9737
9738 \begin_layout Plain Layout
9739 End
9740 \end_layout
9741
9742 \end_inset
9743
9744
9745 \begin_inset Quotes erd
9746 \end_inset
9747
9748 .
9749 \end_layout
9750
9751 \begin_layout Description
9752 \begin_inset Flex Code
9753 status collapsed
9754
9755 \begin_layout Plain Layout
9756 Columns
9757 \end_layout
9758
9759 \end_inset
9760
9761  [
9762 \begin_inset Flex Code
9763 status collapsed
9764
9765 \begin_layout Plain Layout
9766
9767 \emph on
9768 1
9769 \end_layout
9770
9771 \end_inset
9772
9773 ,
9774 \begin_inset space \thinspace{}
9775 \end_inset
9776
9777
9778 \begin_inset Flex Code
9779 status collapsed
9780
9781 \begin_layout Plain Layout
9782 2
9783 \end_layout
9784
9785 \end_inset
9786
9787 ] Whether the class should 
9788 \emph on
9789 default
9790 \emph default
9791  to having one or two columns.
9792  Can be changed in the 
9793 \begin_inset Flex Noun
9794 status collapsed
9795
9796 \begin_layout Plain Layout
9797 Document\SpecialChar menuseparator
9798 Settings
9799 \end_layout
9800
9801 \end_inset
9802
9803  dialog.
9804 \end_layout
9805
9806 \begin_layout Description
9807 \begin_inset Flex Code
9808 status collapsed
9809
9810 \begin_layout Plain Layout
9811 Counter
9812 \end_layout
9813
9814 \end_inset
9815
9816  [
9817 \begin_inset Flex Code
9818 status collapsed
9819
9820 \begin_layout Plain Layout
9821 string
9822 \end_layout
9823
9824 \end_inset
9825
9826 ] This sequence defines the properties for a counter.
9827  If the counter does not yet exist, it is created; if it does exist, it
9828  is modified.
9829  Must end with 
9830 \begin_inset Quotes eld
9831 \end_inset
9832
9833
9834 \begin_inset Flex Code
9835 status collapsed
9836
9837 \begin_layout Plain Layout
9838 End
9839 \end_layout
9840
9841 \end_inset
9842
9843
9844 \begin_inset Quotes erd
9845 \end_inset
9846
9847 .
9848 \begin_inset Newline newline
9849 \end_inset
9850
9851 See 
9852 \begin_inset CommandInset ref
9853 LatexCommand ref
9854 reference "subsec:Counters"
9855
9856 \end_inset
9857
9858  for details on counters.
9859 \end_layout
9860
9861 \begin_layout Description
9862 \begin_inset Flex Code
9863 status collapsed
9864
9865 \begin_layout Plain Layout
9866 DefaultFont
9867 \end_layout
9868
9869 \end_inset
9870
9871  Sets the default font used to display the document.
9872  See 
9873 \begin_inset CommandInset ref
9874 LatexCommand ref
9875 reference "subsec:Font-description"
9876
9877 \end_inset
9878
9879  for how to declare fonts.
9880  Must end with 
9881 \begin_inset Quotes eld
9882 \end_inset
9883
9884
9885 \begin_inset Flex Code
9886 status collapsed
9887
9888 \begin_layout Plain Layout
9889 EndFont
9890 \end_layout
9891
9892 \end_inset
9893
9894
9895 \begin_inset Quotes erd
9896 \end_inset
9897
9898 .
9899 \end_layout
9900
9901 \begin_layout Description
9902 \begin_inset Flex Code
9903 status collapsed
9904
9905 \begin_layout Plain Layout
9906 DefaultModule
9907 \end_layout
9908
9909 \end_inset
9910
9911  [
9912 \begin_inset Flex Code
9913 status collapsed
9914
9915 \begin_layout Plain Layout
9916 <module>
9917 \end_layout
9918
9919 \end_inset
9920
9921 ] Specifies a module to be included by default with this document class.
9922  The module is specified as filename without the 
9923 \begin_inset Flex Code
9924 status collapsed
9925
9926 \begin_layout Plain Layout
9927 .module
9928 \end_layout
9929
9930 \end_inset
9931
9932  extension.
9933  The user can still remove the module, but it will be active at the outset.
9934  (This applies only when new files are created, or when this class is chosen
9935  for an existing document.)
9936 \end_layout
9937
9938 \begin_layout Description
9939 \begin_inset Flex Code
9940 status collapsed
9941
9942 \begin_layout Plain Layout
9943 DefaultStyle
9944 \end_layout
9945
9946 \end_inset
9947
9948  [
9949 \begin_inset Flex Code
9950 status collapsed
9951
9952 \begin_layout Plain Layout
9953 <style>
9954 \end_layout
9955
9956 \end_inset
9957
9958 ] This is the style that will be assigned to new paragraphs, usually 
9959 \begin_inset Flex Noun
9960 status collapsed
9961
9962 \begin_layout Plain Layout
9963 Standard
9964 \end_layout
9965
9966 \end_inset
9967
9968 .
9969  This will default to the first defined style if not given, but you are
9970  encouraged to use this directive.
9971 \end_layout
9972
9973 \begin_layout Description
9974
9975 \change_inserted -970929547 1515112870
9976 \begin_inset Flex Code
9977 status collapsed
9978
9979 \begin_layout Plain Layout
9980
9981 \change_inserted -970929547 1515112782
9982 DocBookRoot
9983 \change_unchanged
9984
9985 \end_layout
9986
9987 \end_inset
9988
9989  [
9990 \begin_inset Flex Code
9991 status collapsed
9992
9993 \begin_layout Plain Layout
9994
9995 \change_inserted -970929547 1515112766
9996 string
9997 \change_unchanged
9998
9999 \end_layout
10000
10001 \end_inset
10002
10003 ] The root element (at the top of the document) to use when outputting documents
10004  with this class in DocBook.
10005  The default value is 
10006 \begin_inset Quotes eld
10007 \end_inset
10008
10009
10010 \begin_inset Flex Code
10011 status collapsed
10012
10013 \begin_layout Plain Layout
10014
10015 \change_inserted -970929547 1515112845
10016 article
10017 \change_unchanged
10018
10019 \end_layout
10020
10021 \end_inset
10022
10023
10024 \begin_inset Quotes erd
10025 \end_inset
10026
10027 .
10028
10029 \change_deleted 1075283030 1594226862
10030  
10031 \change_inserted 1075283030 1594226777
10032
10033 \end_layout
10034
10035 \begin_layout Description
10036
10037 \change_inserted 1075283030 1594226859
10038 \begin_inset Flex Code
10039 status collapsed
10040
10041 \begin_layout Plain Layout
10042
10043 \change_inserted 1075283030 1594226785
10044 DocBookForceAbstract
10045 \change_unchanged
10046
10047 \end_layout
10048
10049 \end_inset
10050
10051  [
10052 \begin_inset Flex Code
10053 status collapsed
10054
10055 \begin_layout Plain Layout
10056
10057 \change_inserted 1075283030 1594226804
10058 boolean
10059 \change_unchanged
10060
10061 \end_layout
10062
10063 \end_inset
10064
10065 ] If 
10066 \begin_inset Quotes eld
10067 \end_inset
10068
10069
10070 \family typewriter
10071 true
10072 \family default
10073
10074 \begin_inset Quotes erd
10075 \end_inset
10076
10077 , the root element will always have an 
10078 \family typewriter
10079 <abstract>
10080 \family default
10081  tag.
10082  The default value is 
10083 \begin_inset Quotes eld
10084 \end_inset
10085
10086
10087 \family typewriter
10088 false
10089 \family default
10090
10091 \begin_inset Quotes erd
10092 \end_inset
10093
10094 .
10095 \change_unchanged
10096
10097 \end_layout
10098
10099 \begin_layout Description
10100 \begin_inset Flex Code
10101 status collapsed
10102
10103 \begin_layout Plain Layout
10104 ExcludesModule
10105 \end_layout
10106
10107 \end_inset
10108
10109  [
10110 \begin_inset Flex Code
10111 status collapsed
10112
10113 \begin_layout Plain Layout
10114 <module>
10115 \end_layout
10116
10117 \end_inset
10118
10119 ] This tag indicates that the module (which is specified by filename without
10120  the 
10121 \begin_inset Flex Code
10122 status collapsed
10123
10124 \begin_layout Plain Layout
10125 .module
10126 \end_layout
10127
10128 \end_inset
10129
10130  extension) cannot be used with this document class.
10131  This might be used in a journal-specific layout file to prevent, say, the
10132  use of the 
10133 \begin_inset Flex Code
10134 status collapsed
10135
10136 \begin_layout Plain Layout
10137 theorems-sec
10138 \end_layout
10139
10140 \end_inset
10141
10142  module that numbers theorems by section.
10143  This tag may 
10144 \emph on
10145 not
10146 \emph default
10147  be used in a module.
10148  Modules have their own way of excluding other modules (see 
10149 \begin_inset CommandInset ref
10150 LatexCommand ref
10151 reference "subsec:Layout-modules"
10152
10153 \end_inset
10154
10155 ).
10156 \end_layout
10157
10158 \begin_layout Description
10159 \begin_inset Flex Code
10160 status collapsed
10161
10162 \begin_layout Plain Layout
10163 Float
10164 \end_layout
10165
10166 \end_inset
10167
10168  Defines a new float.
10169  See 
10170 \begin_inset CommandInset ref
10171 LatexCommand ref
10172 reference "subsec:Floats"
10173
10174 \end_inset
10175
10176  for details.
10177  Must end with 
10178 \begin_inset Quotes eld
10179 \end_inset
10180
10181
10182 \begin_inset Flex Code
10183 status collapsed
10184
10185 \begin_layout Plain Layout
10186 End
10187 \end_layout
10188
10189 \end_inset
10190
10191
10192 \begin_inset Quotes erd
10193 \end_inset
10194
10195 .
10196 \end_layout
10197
10198 \begin_layout Description
10199 \begin_inset Flex Code
10200 status collapsed
10201
10202 \begin_layout Plain Layout
10203 HTMLPreamble
10204 \end_layout
10205
10206 \end_inset
10207
10208  Sets the information that will be output in the 
10209 \begin_inset Flex Code
10210 status collapsed
10211
10212 \begin_layout Plain Layout
10213 <head>
10214 \end_layout
10215
10216 \end_inset
10217
10218  block when this document class is output to XHTML.
10219  Note that this will completely override any prior 
10220 \begin_inset Flex Code
10221 status collapsed
10222
10223 \begin_layout Plain Layout
10224 HTMLPreamble
10225 \end_layout
10226
10227 \end_inset
10228
10229  or 
10230 \begin_inset Flex Code
10231 status collapsed
10232
10233 \begin_layout Plain Layout
10234 AddToHTMLPreamble
10235 \end_layout
10236
10237 \end_inset
10238
10239  declarations.
10240  (Use
10241 \begin_inset Newline newline
10242 \end_inset
10243
10244
10245 \begin_inset Flex Code
10246 status collapsed
10247
10248 \begin_layout Plain Layout
10249 AddToHTMLPreamble
10250 \end_layout
10251
10252 \end_inset
10253
10254  if you just want to add material to the preamble.) Must end with 
10255 \begin_inset Quotes eld
10256 \end_inset
10257
10258
10259 \begin_inset Flex Code
10260 status collapsed
10261
10262 \begin_layout Plain Layout
10263 EndPreamble
10264 \end_layout
10265
10266 \end_inset
10267
10268
10269 \begin_inset Quotes erd
10270 \end_inset
10271
10272 .
10273 \end_layout
10274
10275 \begin_layout Description
10276 \begin_inset Flex Code
10277 status collapsed
10278
10279 \begin_layout Plain Layout
10280 HTMLTOCSection
10281 \end_layout
10282
10283 \end_inset
10284
10285  [
10286 \begin_inset Flex Code
10287 status collapsed
10288
10289 \begin_layout Plain Layout
10290 <style>
10291 \end_layout
10292
10293 \end_inset
10294
10295 ] The style to use for the table of contents, bibliography, and so forth,
10296  when the document is output to HTML.
10297  For articles, this should normally be 
10298 \begin_inset Flex Code
10299 status collapsed
10300
10301 \begin_layout Plain Layout
10302 Section
10303 \end_layout
10304
10305 \end_inset
10306
10307 ; for books 
10308 \begin_inset Flex Code
10309 status collapsed
10310
10311 \begin_layout Plain Layout
10312 Chapter
10313 \end_layout
10314
10315 \end_inset
10316
10317 .
10318  If it is not given, then \SpecialChar LyX
10319  will attempt to figure out which layout to use.
10320 \end_layout
10321
10322 \begin_layout Description
10323 \begin_inset Flex Code
10324 status collapsed
10325
10326 \begin_layout Plain Layout
10327 IfCounter
10328 \end_layout
10329
10330 \end_inset
10331
10332  [
10333 \begin_inset Flex Code
10334 status collapsed
10335
10336 \begin_layout Plain Layout
10337 <counter>
10338 \end_layout
10339
10340 \end_inset
10341
10342 ] Modifies the properties of the given counter.
10343  If the counter does not exist, the statement is ignored.
10344  Must end with 
10345 \begin_inset Quotes eld
10346 \end_inset
10347
10348
10349 \begin_inset Flex Code
10350 status collapsed
10351
10352 \begin_layout Plain Layout
10353 End
10354 \end_layout
10355
10356 \end_inset
10357
10358
10359 \begin_inset Quotes erd
10360 \end_inset
10361
10362 .
10363 \begin_inset Newline newline
10364 \end_inset
10365
10366 See 
10367 \begin_inset CommandInset ref
10368 LatexCommand ref
10369 reference "subsec:Counters"
10370
10371 \end_inset
10372
10373  for details on counters.
10374 \end_layout
10375
10376 \begin_layout Description
10377 \begin_inset Flex Code
10378 status collapsed
10379
10380 \begin_layout Plain Layout
10381 Input
10382 \end_layout
10383
10384 \end_inset
10385
10386  [
10387 \begin_inset Flex Code
10388 status collapsed
10389
10390 \begin_layout Plain Layout
10391 <filename>
10392 \end_layout
10393
10394 \end_inset
10395
10396 ] This allows you to include another layout definition file within yours
10397  to avoid duplicating commands.
10398  Common examples are the standard layout files, for example, 
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403 stdclass.inc
10404 \end_layout
10405
10406 \end_inset
10407
10408 , which contains most of the basic layouts.
10409 \change_inserted -712698321 1611646803
10410
10411 \end_layout
10412
10413 \begin_layout Description
10414
10415 \change_inserted -712698321 1611646804
10416 \begin_inset Flex Code
10417 status collapsed
10418
10419 \begin_layout Plain Layout
10420
10421 \change_inserted -712698321 1611646837
10422 InputGlobal
10423 \change_unchanged
10424
10425 \end_layout
10426
10427 \end_inset
10428
10429  [
10430 \begin_inset Flex Code
10431 status collapsed
10432
10433 \begin_layout Plain Layout
10434
10435 \change_inserted -712698321 1611646804
10436 <filename>
10437 \change_unchanged
10438
10439 \end_layout
10440
10441 \end_inset
10442
10443 ] is a variant of the 
10444 \begin_inset Flex Code
10445 status collapsed
10446
10447 \begin_layout Plain Layout
10448
10449 \change_inserted -712698321 1611646804
10450 Input
10451 \change_unchanged
10452
10453 \end_layout
10454
10455 \end_inset
10456
10457  command which does not look for files in the user directory.
10458  This allows to create a file 
10459 \begin_inset Flex Code
10460 status collapsed
10461
10462 \begin_layout Plain Layout
10463
10464 \change_inserted -712698321 1611646804
10465 name.layout
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 1611646804
10479 name.inc
10480 \change_unchanged
10481
10482 \end_layout
10483
10484 \end_inset
10485
10486  in the user directory which includes a global file with the same name via
10487  
10488 \begin_inset Flex Code
10489 status collapsed
10490
10491 \begin_layout Plain Layout
10492
10493 \change_inserted -712698321 1611646853
10494 InputGlobal name
10495 \change_unchanged
10496
10497 \end_layout
10498
10499 \end_inset
10500
10501  or 
10502 \begin_inset Flex Code
10503 status collapsed
10504
10505 \begin_layout Plain Layout
10506
10507 \change_inserted -712698321 1611646855
10508 InputGlobal name.inc
10509 \change_unchanged
10510
10511 \end_layout
10512
10513 \end_inset
10514
10515 , respectively (with 
10516 \begin_inset Flex Code
10517 status collapsed
10518
10519 \begin_layout Plain Layout
10520
10521 \change_inserted -712698321 1611646804
10522 Input
10523 \change_unchanged
10524
10525 \end_layout
10526
10527 \end_inset
10528
10529 , the file would recursively include itself).
10530  This way, you can modify global files without having to completely copy
10531  them.
10532 \change_unchanged
10533
10534 \end_layout
10535
10536 \begin_layout Description
10537 \begin_inset Flex Code
10538 status collapsed
10539
10540 \begin_layout Plain Layout
10541 InsetLayout
10542 \end_layout
10543
10544 \end_inset
10545
10546  [
10547 \begin_inset Flex Code
10548 status collapsed
10549
10550 \begin_layout Plain Layout
10551 <type>
10552 \end_layout
10553
10554 \end_inset
10555
10556 ] This section (re-)defines the layout of an inset.
10557  It can be applied to an existing inset or to a new, user-defined inset,
10558  e.g., a new character style.
10559  Must end with 
10560 \begin_inset Quotes eld
10561 \end_inset
10562
10563
10564 \begin_inset Flex Code
10565 status collapsed
10566
10567 \begin_layout Plain Layout
10568 End
10569 \end_layout
10570
10571 \end_inset
10572
10573
10574 \begin_inset Quotes erd
10575 \end_inset
10576
10577 .
10578 \begin_inset Newline newline
10579 \end_inset
10580
10581 See 
10582 \begin_inset CommandInset ref
10583 LatexCommand ref
10584 reference "subsec:Flex-insets-and"
10585
10586 \end_inset
10587
10588  for more information.
10589  
10590 \end_layout
10591
10592 \begin_layout Description
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 LeftMargin
10598 \end_layout
10599
10600 \end_inset
10601
10602  [
10603 \begin_inset Flex Code
10604 status collapsed
10605
10606 \begin_layout Plain Layout
10607 string
10608 \end_layout
10609
10610 \end_inset
10611
10612 ] A string that indicates the width of the left margin on the screen, for
10613  example, 
10614 \begin_inset Quotes eld
10615 \end_inset
10616
10617
10618 \begin_inset Flex Code
10619 status collapsed
10620
10621 \begin_layout Plain Layout
10622 MMMMM
10623 \end_layout
10624
10625 \end_inset
10626
10627
10628 \begin_inset Quotes erd
10629 \end_inset
10630
10631 .
10632  (Note that this is not a `length', like 
10633 \begin_inset Quotes eld
10634 \end_inset
10635
10636 2ex
10637 \begin_inset Quotes erd
10638 \end_inset
10639
10640 .)
10641 \end_layout
10642
10643 \begin_layout Description
10644 \begin_inset Flex Code
10645 status collapsed
10646
10647 \begin_layout Plain Layout
10648 MaxCiteNames
10649 \end_layout
10650
10651 \end_inset
10652
10653  [
10654 \begin_inset Flex Code
10655 status collapsed
10656
10657 \begin_layout Plain Layout
10658 integer
10659 \end_layout
10660
10661 \end_inset
10662
10663 ] An integer that determines the maximal number of names displayed in an
10664  author-year citation before the citation switches to 
10665 \begin_inset Quotes eld
10666 \end_inset
10667
10668 FirstAuthor et al.
10669 \begin_inset Quotes erd
10670 \end_inset
10671
10672 .
10673  Primarily used in cite engine files (see 
10674 \begin_inset CommandInset ref
10675 LatexCommand ref
10676 reference "subsec:Cite-Engine-Files"
10677 plural "false"
10678 caps "false"
10679 noprefix "false"
10680
10681 \end_inset
10682
10683 ).
10684 \end_layout
10685
10686 \begin_layout Description
10687
10688 \change_inserted -712698321 1612018485
10689 \begin_inset Flex Code
10690 status collapsed
10691
10692 \begin_layout Plain Layout
10693
10694 \change_inserted -712698321 1612018457
10695 ModifyInsetLayout
10696 \change_unchanged
10697
10698 \end_layout
10699
10700 \end_inset
10701
10702  [
10703 \begin_inset Flex Code
10704 status collapsed
10705
10706 \begin_layout Plain Layout
10707
10708 \change_inserted -712698321 1612018466
10709 <type>
10710 \change_unchanged
10711
10712 \end_layout
10713
10714 \end_inset
10715
10716 ] Modifies the layout of an inset.
10717  If the layout does not exist, this section is ignored.
10718  Must end with 
10719 \begin_inset Quotes eld
10720 \end_inset
10721
10722
10723 \begin_inset Flex Code
10724 status collapsed
10725
10726 \begin_layout Plain Layout
10727
10728 \change_inserted -712698321 1612018452
10729 End
10730 \change_unchanged
10731
10732 \end_layout
10733
10734 \end_inset
10735
10736
10737 \begin_inset Quotes erd
10738 \end_inset
10739
10740 .
10741 \end_layout
10742
10743 \begin_layout Description
10744 \begin_inset Flex Code
10745 status collapsed
10746
10747 \begin_layout Plain Layout
10748 ModifyStyle
10749 \end_layout
10750
10751 \end_inset
10752
10753  [
10754 \begin_inset Flex Code
10755 status collapsed
10756
10757 \begin_layout Plain Layout
10758 <style>
10759 \end_layout
10760
10761 \end_inset
10762
10763 ] Modifies the properties of the given paragraph style.
10764  If the style does not exist, this section is ignored.
10765  Must end with 
10766 \begin_inset Quotes eld
10767 \end_inset
10768
10769
10770 \begin_inset Flex Code
10771 status collapsed
10772
10773 \begin_layout Plain Layout
10774 End
10775 \end_layout
10776
10777 \end_inset
10778
10779
10780 \begin_inset Quotes erd
10781 \end_inset
10782
10783 .
10784 \end_layout
10785
10786 \begin_layout Description
10787 \begin_inset Flex Code
10788 status collapsed
10789
10790 \begin_layout Plain Layout
10791 NoCounter
10792 \end_layout
10793
10794 \end_inset
10795
10796  [
10797 \begin_inset Flex Code
10798 status collapsed
10799
10800 \begin_layout Plain Layout
10801 <counter>
10802 \end_layout
10803
10804 \end_inset
10805
10806 ] Deletes an existing counter, usually one defined in an included file.
10807 \end_layout
10808
10809 \begin_layout Description
10810 \begin_inset Flex Code
10811 status collapsed
10812
10813 \begin_layout Plain Layout
10814 NoFloat
10815 \end_layout
10816
10817 \end_inset
10818
10819  [
10820 \begin_inset Flex Code
10821 status collapsed
10822
10823 \begin_layout Plain Layout
10824 <float>
10825 \end_layout
10826
10827 \end_inset
10828
10829 ] Deletes an existing float.
10830  This is particularly useful when you want to suppress a float that has
10831  been defined in an input file.
10832 \end_layout
10833
10834 \begin_layout Description
10835 \begin_inset Flex Code
10836 status collapsed
10837
10838 \begin_layout Plain Layout
10839 NoStyle
10840 \end_layout
10841
10842 \end_inset
10843
10844  [
10845 \begin_inset Flex Code
10846 status collapsed
10847
10848 \begin_layout Plain Layout
10849 <style>
10850 \end_layout
10851
10852 \end_inset
10853
10854 ] Deletes an existing style.
10855 \end_layout
10856
10857 \begin_layout Description
10858 \begin_inset Flex Code
10859 status collapsed
10860
10861 \begin_layout Plain Layout
10862 OutlinerName
10863 \end_layout
10864
10865 \end_inset
10866
10867  [
10868 \begin_inset Flex Code
10869 status collapsed
10870
10871 \begin_layout Plain Layout
10872 <type>
10873 \end_layout
10874
10875 \end_inset
10876
10877 ] [
10878 \begin_inset Flex Code
10879 status collapsed
10880
10881 \begin_layout Plain Layout
10882 <string>
10883 \end_layout
10884
10885 \end_inset
10886
10887 ] Define a new table of contents with type 
10888 \begin_inset Flex Code
10889 status collapsed
10890
10891 \begin_layout Plain Layout
10892 <type>
10893 \end_layout
10894
10895 \end_inset
10896
10897  and name 
10898 \begin_inset Flex Code
10899 status collapsed
10900
10901 \begin_layout Plain Layout
10902 <string>
10903 \end_layout
10904
10905 \end_inset
10906
10907 .
10908  See also the AddToToc commands.
10909 \end_layout
10910
10911 \begin_layout Description
10912 \begin_inset Flex Code
10913 status collapsed
10914
10915 \begin_layout Plain Layout
10916 OutputFormat
10917 \end_layout
10918
10919 \end_inset
10920
10921  [
10922 \begin_inset Flex Code
10923 status collapsed
10924
10925 \begin_layout Plain Layout
10926 <format>
10927 \end_layout
10928
10929 \end_inset
10930
10931 ] The file format (as defined in the \SpecialChar LyX
10932  preferences) produced by this document
10933  class.
10934  It is mainly useful when 
10935 \begin_inset Flex Code
10936 status collapsed
10937
10938 \begin_layout Plain Layout
10939 OutputType
10940 \end_layout
10941
10942 \end_inset
10943
10944  is 
10945 \begin_inset Flex Code
10946 status collapsed
10947
10948 \begin_layout Plain Layout
10949 literate
10950 \end_layout
10951
10952 \end_inset
10953
10954  and one wants to define a new type of literate document.
10955  The format is reset to 
10956 \change_deleted 5863208 1594239413
10957
10958 \begin_inset Quotes eld
10959 \end_inset
10960
10961
10962 \begin_inset Flex Code
10963 status collapsed
10964
10965 \begin_layout Plain Layout
10966 docbook
10967 \end_layout
10968
10969 \end_inset
10970
10971
10972 \begin_inset Quotes erd
10973 \end_inset
10974
10975  or
10976 \change_unchanged
10977  
10978 \begin_inset Quotes eld
10979 \end_inset
10980
10981
10982 \begin_inset Flex Code
10983 status collapsed
10984
10985 \begin_layout Plain Layout
10986 latex
10987 \end_layout
10988
10989 \end_inset
10990
10991
10992 \begin_inset Quotes erd
10993 \end_inset
10994
10995  when the corresponding 
10996 \begin_inset Flex Code
10997 status collapsed
10998
10999 \begin_layout Plain Layout
11000 OutputType
11001 \end_layout
11002
11003 \end_inset
11004
11005  parameter is encountered.
11006 \end_layout
11007
11008 \begin_layout Description
11009 \begin_inset Flex Code
11010 status collapsed
11011
11012 \begin_layout Plain Layout
11013 OutputType
11014 \end_layout
11015
11016 \end_inset
11017
11018  [
11019 \begin_inset Flex Code
11020 status collapsed
11021
11022 \begin_layout Plain Layout
11023
11024 \emph on
11025 lat
11026 \emph default
11027 ex
11028 \end_layout
11029
11030 \end_inset
11031
11032
11033 \change_deleted 5863208 1594239430
11034
11035 \begin_inset Flex Code
11036 status collapsed
11037
11038 \begin_layout Plain Layout
11039 docbook
11040 \end_layout
11041
11042 \end_inset
11043
11044 ,
11045 \change_unchanged
11046  
11047 \begin_inset Flex Code
11048 status collapsed
11049
11050 \begin_layout Plain Layout
11051 literate
11052 \end_layout
11053
11054 \end_inset
11055
11056 ] Specifies what sort of output documents using this class will produce.
11057 \end_layout
11058
11059 \begin_layout Description
11060 \begin_inset Flex Code
11061 status collapsed
11062
11063 \begin_layout Plain Layout
11064 PackageOptions
11065 \end_layout
11066
11067 \end_inset
11068
11069  [
11070 \begin_inset Flex Code
11071 status collapsed
11072
11073 \begin_layout Plain Layout
11074 string
11075 \end_layout
11076
11077 \end_inset
11078
11079  
11080 \begin_inset Flex Code
11081 status collapsed
11082
11083 \begin_layout Plain Layout
11084 string
11085 \end_layout
11086
11087 \end_inset
11088
11089 ] Specifies options, given in the second string, for the package named by
11090  the first string.
11091  For example, 
11092 \begin_inset Quotes eld
11093 \end_inset
11094
11095
11096 \begin_inset Flex Code
11097 status collapsed
11098
11099 \begin_layout Plain Layout
11100 PackageOptions natbib square
11101 \end_layout
11102
11103 \end_inset
11104
11105
11106 \begin_inset Quotes erd
11107 \end_inset
11108
11109  will cause 
11110 \begin_inset Flex Code
11111 status collapsed
11112
11113 \begin_layout Plain Layout
11114 natbib
11115 \end_layout
11116
11117 \end_inset
11118
11119  to be loaded with the 
11120 \begin_inset Flex Code
11121 status collapsed
11122
11123 \begin_layout Plain Layout
11124 square
11125 \end_layout
11126
11127 \end_inset
11128
11129  option.
11130  (For \SpecialChar TeX
11131 perts, this causes \SpecialChar LyX
11132  to output: 
11133 \begin_inset Flex Code
11134 status collapsed
11135
11136 \begin_layout Plain Layout
11137
11138 \backslash
11139 PassOptionsToPackage{natbib}{square}
11140 \end_layout
11141
11142 \end_inset
11143
11144  prior to loading 
11145 \begin_inset Flex Code
11146 status collapsed
11147
11148 \begin_layout Plain Layout
11149 natbib
11150 \end_layout
11151
11152 \end_inset
11153
11154 .)
11155 \change_inserted -712698321 1565102364
11156
11157 \end_layout
11158
11159 \begin_layout Description
11160
11161 \change_inserted -712698321 1565102470
11162 \begin_inset Flex Code
11163 status collapsed
11164
11165 \begin_layout Plain Layout
11166
11167 \change_inserted -712698321 1565102365
11168 PageSize
11169 \change_unchanged
11170
11171 \end_layout
11172
11173 \end_inset
11174
11175  [
11176 \begin_inset Flex Code
11177 status collapsed
11178
11179 \begin_layout Plain Layout
11180
11181 \change_inserted -712698321 1565105222
11182
11183 \emph on
11184 custom
11185 \emph default
11186 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
11187  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
11188 \change_unchanged
11189
11190 \end_layout
11191
11192 \end_inset
11193
11194 ] The default page size.
11195  This is used by some converters.
11196 \change_unchanged
11197
11198 \end_layout
11199
11200 \begin_layout Description
11201 \begin_inset Flex Code
11202 status collapsed
11203
11204 \begin_layout Plain Layout
11205 PageStyle
11206 \end_layout
11207
11208 \end_inset
11209
11210  [
11211 \begin_inset Flex Code
11212 status collapsed
11213
11214 \begin_layout Plain Layout
11215
11216 \emph on
11217 plain
11218 \end_layout
11219
11220 \end_inset
11221
11222
11223 \begin_inset Flex Code
11224 status collapsed
11225
11226 \begin_layout Plain Layout
11227 empty
11228 \end_layout
11229
11230 \end_inset
11231
11232
11233 \begin_inset Flex Code
11234 status collapsed
11235
11236 \begin_layout Plain Layout
11237 headings
11238 \end_layout
11239
11240 \end_inset
11241
11242 ] The default pagestyle.
11243  Can be changed in the 
11244 \begin_inset Flex Noun
11245 status collapsed
11246
11247 \begin_layout Plain Layout
11248 Document\SpecialChar menuseparator
11249 Settings
11250 \end_layout
11251
11252 \end_inset
11253
11254  dialog.
11255 \end_layout
11256
11257 \begin_layout Description
11258 \begin_inset Flex Code
11259 status collapsed
11260
11261 \begin_layout Plain Layout
11262 Preamble
11263 \end_layout
11264
11265 \end_inset
11266
11267  Sets the preamble for the \SpecialChar LaTeX
11268  document.
11269  Note that this will completely override any prior 
11270 \begin_inset Flex Code
11271 status collapsed
11272
11273 \begin_layout Plain Layout
11274 Preamble
11275 \end_layout
11276
11277 \end_inset
11278
11279  or 
11280 \begin_inset Flex Code
11281 status collapsed
11282
11283 \begin_layout Plain Layout
11284 AddToPreamble
11285 \end_layout
11286
11287 \end_inset
11288
11289  declarations.
11290  (Use 
11291 \begin_inset Flex Code
11292 status collapsed
11293
11294 \begin_layout Plain Layout
11295 AddToPreamble
11296 \end_layout
11297
11298 \end_inset
11299
11300  if you just want to add material to the preamble.) Must end with 
11301 \begin_inset Quotes eld
11302 \end_inset
11303
11304
11305 \begin_inset Flex Code
11306 status collapsed
11307
11308 \begin_layout Plain Layout
11309 EndPreamble
11310 \end_layout
11311
11312 \end_inset
11313
11314
11315 \begin_inset Quotes erd
11316 \end_inset
11317
11318 .
11319 \change_inserted -712698321 1612018500
11320
11321 \end_layout
11322
11323 \begin_layout Description
11324
11325 \change_inserted -712698321 1612018547
11326 \begin_inset Flex Code
11327 status collapsed
11328
11329 \begin_layout Plain Layout
11330
11331 \change_inserted -712698321 1612018506
11332 ProvideInsetLayout
11333 \change_unchanged
11334
11335 \end_layout
11336
11337 \end_inset
11338
11339  [
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344
11345 \change_inserted -712698321 1612018509
11346 <type>
11347 \change_unchanged
11348
11349 \end_layout
11350
11351 \end_inset
11352
11353 ] Defines the layout of an inset if it does not already exist.
11354  If the layout does exist, this section is ignored.
11355  Must end with 
11356 \begin_inset Quotes eld
11357 \end_inset
11358
11359
11360 \begin_inset Flex Code
11361 status collapsed
11362
11363 \begin_layout Plain Layout
11364
11365 \change_inserted -712698321 1612018500
11366 End
11367 \change_unchanged
11368
11369 \end_layout
11370
11371 \end_inset
11372
11373
11374 \begin_inset Quotes erd
11375 \end_inset
11376
11377 .
11378 \change_unchanged
11379
11380 \end_layout
11381
11382 \begin_layout Description
11383 \begin_inset Flex Code
11384 status collapsed
11385
11386 \begin_layout Plain Layout
11387 Provides
11388 \end_layout
11389
11390 \end_inset
11391
11392  [
11393 \begin_inset Flex Code
11394 status collapsed
11395
11396 \begin_layout Plain Layout
11397 string
11398 \end_layout
11399
11400 \end_inset
11401
11402 ] [
11403 \begin_inset Flex Code
11404 status collapsed
11405
11406 \begin_layout Plain Layout
11407
11408 \emph on
11409 0
11410 \end_layout
11411
11412 \end_inset
11413
11414 ,
11415 \begin_inset space \thinspace{}
11416 \end_inset
11417
11418
11419 \begin_inset Flex Code
11420 status collapsed
11421
11422 \begin_layout Plain Layout
11423 1
11424 \end_layout
11425
11426 \end_inset
11427
11428 ] Whether the class already provides the feature 
11429 \begin_inset Flex Code
11430 status collapsed
11431
11432 \begin_layout Plain Layout
11433 string
11434 \end_layout
11435
11436 \end_inset
11437
11438 .
11439  A feature is in general the name of a package (e.
11440 \begin_inset space \thinspace{}
11441 \end_inset
11442
11443 g.
11444 \begin_inset space \space{}
11445 \end_inset
11446
11447
11448 \begin_inset Flex Code
11449 status collapsed
11450
11451 \begin_layout Plain Layout
11452 amsmath
11453 \end_layout
11454
11455 \end_inset
11456
11457  or 
11458 \begin_inset Flex Code
11459 status collapsed
11460
11461 \begin_layout Plain Layout
11462 makeidx
11463 \end_layout
11464
11465 \end_inset
11466
11467 ) or a macro (e.
11468 \begin_inset space \thinspace{}
11469 \end_inset
11470
11471 g.
11472 \begin_inset space \space{}
11473 \end_inset
11474
11475
11476 \begin_inset Flex Code
11477 status collapsed
11478
11479 \begin_layout Plain Layout
11480 url
11481 \end_layout
11482
11483 \end_inset
11484
11485  or 
11486 \begin_inset Flex Code
11487 status collapsed
11488
11489 \begin_layout Plain Layout
11490 boldsymbol
11491 \end_layout
11492
11493 \end_inset
11494
11495 ).
11496  See 
11497 \begin_inset CommandInset ref
11498 LatexCommand ref
11499 reference "chap:List-of-functions"
11500
11501 \end_inset
11502
11503  for the list of features.
11504 \end_layout
11505
11506 \begin_layout Description
11507 \begin_inset Flex Code
11508 status collapsed
11509
11510 \begin_layout Plain Layout
11511 ProvidesModule
11512 \end_layout
11513
11514 \end_inset
11515
11516  [
11517 \begin_inset Flex Code
11518 status collapsed
11519
11520 \begin_layout Plain Layout
11521 string
11522 \end_layout
11523
11524 \end_inset
11525
11526 ] Indicates that this layout provides the functionality of the module mentioned,
11527  which should be specified by the filename without the 
11528 \begin_inset Flex Code
11529 status collapsed
11530
11531 \begin_layout Plain Layout
11532 .module
11533 \end_layout
11534
11535 \end_inset
11536
11537  extension.
11538  This will typically be used if the layout includes the module directly,
11539  rather than using the 
11540 \begin_inset Flex Code
11541 status collapsed
11542
11543 \begin_layout Plain Layout
11544 DefaultModule
11545 \end_layout
11546
11547 \end_inset
11548
11549  tag to indicate that it ought to be used.
11550  It could also be used in a module that provided an alternate implementation
11551  of the same functionality.
11552 \end_layout
11553
11554 \begin_layout Description
11555 \begin_inset Flex Code
11556 status collapsed
11557
11558 \begin_layout Plain Layout
11559 ProvideStyle
11560 \end_layout
11561
11562 \end_inset
11563
11564  [
11565 \begin_inset Flex Code
11566 status collapsed
11567
11568 \begin_layout Plain Layout
11569 <style>
11570 \end_layout
11571
11572 \end_inset
11573
11574 ] Creates a new paragraph style if it does not already exist.
11575  If the style does exist, this section is ignored.
11576  Must end with 
11577 \begin_inset Quotes eld
11578 \end_inset
11579
11580
11581 \begin_inset Flex Code
11582 status collapsed
11583
11584 \begin_layout Plain Layout
11585 End
11586 \end_layout
11587
11588 \end_inset
11589
11590
11591 \begin_inset Quotes erd
11592 \end_inset
11593
11594 .
11595 \end_layout
11596
11597 \begin_layout Description
11598 \begin_inset Flex Code
11599 status collapsed
11600
11601 \begin_layout Plain Layout
11602 Requires
11603 \end_layout
11604
11605 \end_inset
11606
11607  [
11608 \begin_inset Flex Code
11609 status collapsed
11610
11611 \begin_layout Plain Layout
11612 string
11613 \end_layout
11614
11615 \end_inset
11616
11617 ] Whether the class requires the feature 
11618 \begin_inset Flex Code
11619 status collapsed
11620
11621 \begin_layout Plain Layout
11622 string
11623 \end_layout
11624
11625 \end_inset
11626
11627 .
11628  Multiple features must be separated by commas.
11629  Note that you can only request supported features.
11630  (See 
11631 \begin_inset CommandInset ref
11632 LatexCommand ref
11633 reference "chap:List-of-functions"
11634
11635 \end_inset
11636
11637  for the list of features.).
11638  If you require a package with specific options, you can additionally use
11639  
11640 \begin_inset Flex Code
11641 status collapsed
11642
11643 \begin_layout Plain Layout
11644 PackageOptions
11645 \end_layout
11646
11647 \end_inset
11648
11649 .
11650 \end_layout
11651
11652 \begin_layout Description
11653 \begin_inset Flex Code
11654 status collapsed
11655
11656 \begin_layout Plain Layout
11657 RightMargin
11658 \end_layout
11659
11660 \end_inset
11661
11662  [
11663 \begin_inset Flex Code
11664 status collapsed
11665
11666 \begin_layout Plain Layout
11667 string
11668 \end_layout
11669
11670 \end_inset
11671
11672 ] A string that indicates the width of the right margin on the screen, for
11673  example, 
11674 \begin_inset Quotes eld
11675 \end_inset
11676
11677
11678 \begin_inset Flex Code
11679 status collapsed
11680
11681 \begin_layout Plain Layout
11682 MMMMM
11683 \end_layout
11684
11685 \end_inset
11686
11687
11688 \begin_inset Quotes erd
11689 \end_inset
11690
11691 .
11692 \end_layout
11693
11694 \begin_layout Description
11695 \begin_inset Flex Code
11696 status collapsed
11697
11698 \begin_layout Plain Layout
11699 SecNumDepth
11700 \end_layout
11701
11702 \end_inset
11703
11704  [
11705 \begin_inset Flex Code
11706 status collapsed
11707
11708 \begin_layout Plain Layout
11709 int=3
11710 \end_layout
11711
11712 \end_inset
11713
11714 ] Sets which divisions get numbered.
11715  Corresponds to the
11716 \begin_inset Newline newline
11717 \end_inset
11718
11719
11720 \begin_inset Flex Code
11721 status collapsed
11722
11723 \begin_layout Plain Layout
11724 secnumdepth
11725 \end_layout
11726
11727 \end_inset
11728
11729  counter in \SpecialChar LaTeX
11730 .
11731 \end_layout
11732
11733 \begin_layout Description
11734 \begin_inset Flex Code
11735 status collapsed
11736
11737 \begin_layout Plain Layout
11738 Sides
11739 \end_layout
11740
11741 \end_inset
11742
11743  [
11744 \begin_inset Flex Code
11745 status collapsed
11746
11747 \begin_layout Plain Layout
11748
11749 \emph on
11750 1
11751 \end_layout
11752
11753 \end_inset
11754
11755 ,
11756 \begin_inset space \thinspace{}
11757 \end_inset
11758
11759
11760 \begin_inset Flex Code
11761 status collapsed
11762
11763 \begin_layout Plain Layout
11764 2
11765 \end_layout
11766
11767 \end_inset
11768
11769 ] Whether the class-default should be printing on one or both sides of the
11770  paper.
11771  Can be changed in the 
11772 \begin_inset Flex Noun
11773 status collapsed
11774
11775 \begin_layout Plain Layout
11776 Document\SpecialChar menuseparator
11777 Settings
11778 \end_layout
11779
11780 \end_inset
11781
11782  dialog.
11783 \end_layout
11784
11785 \begin_layout Description
11786 \begin_inset Flex Code
11787 status collapsed
11788
11789 \begin_layout Plain Layout
11790 Style
11791 \end_layout
11792
11793 \end_inset
11794
11795  [
11796 \begin_inset Flex Code
11797 status collapsed
11798
11799 \begin_layout Plain Layout
11800 <name>
11801 \end_layout
11802
11803 \end_inset
11804
11805 ] This sequence defines a paragraph style.
11806  If the style does not yet exist, it is created; if it does exist, its parameter
11807 s are modified.
11808  Must end with 
11809 \begin_inset Quotes eld
11810 \end_inset
11811
11812
11813 \begin_inset Flex Code
11814 status collapsed
11815
11816 \begin_layout Plain Layout
11817 End
11818 \end_layout
11819
11820 \end_inset
11821
11822
11823 \begin_inset Quotes erd
11824 \end_inset
11825
11826 .
11827 \begin_inset Newline newline
11828 \end_inset
11829
11830 See 
11831 \begin_inset CommandInset ref
11832 LatexCommand ref
11833 reference "subsec:Paragraph-Styles"
11834
11835 \end_inset
11836
11837  for details on paragraph styles.
11838 \change_inserted -712698321 1553617804
11839
11840 \end_layout
11841
11842 \begin_layout Description
11843
11844 \change_inserted -712698321 1553617862
11845 \begin_inset Flex Code
11846 status collapsed
11847
11848 \begin_layout Plain Layout
11849
11850 \change_inserted -712698321 1553617809
11851 TableStyle
11852 \change_unchanged
11853
11854 \end_layout
11855
11856 \end_inset
11857
11858  [
11859 \begin_inset Flex Code
11860 status collapsed
11861
11862 \begin_layout Plain Layout
11863
11864 \change_inserted -712698321 1553617805
11865 <name>
11866 \change_unchanged
11867
11868 \end_layout
11869
11870 \end_inset
11871
11872 ] defines the default table style that is used when inserting a table.
11873  The following styles are available:
11874 \end_layout
11875
11876 \begin_deeper
11877 \begin_layout Itemize
11878
11879 \change_inserted -712698321 1554308039
11880 \begin_inset Flex Code
11881 status collapsed
11882
11883 \begin_layout Plain Layout
11884
11885 \change_inserted -712698321 1554307928
11886 Formal_with_Footline
11887 \change_unchanged
11888
11889 \end_layout
11890
11891 \end_inset
11892
11893 : formal (
11894 \begin_inset Quotes eld
11895 \end_inset
11896
11897 booktabs
11898 \begin_inset Quotes erd
11899 \end_inset
11900
11901 ) style with horizontal lines only, using a bold top and bottom line, the
11902  first and last row are additionally separated from the table body with
11903  a thin middle line.
11904 \end_layout
11905
11906 \begin_layout Itemize
11907
11908 \change_inserted -712698321 1554308087
11909 \begin_inset Flex Code
11910 status collapsed
11911
11912 \begin_layout Plain Layout
11913
11914 \change_inserted -712698321 1554308042
11915 Formal_without_Footline
11916 \change_unchanged
11917
11918 \end_layout
11919
11920 \end_inset
11921
11922 : same as the above, but the last row is not separated with a middle line
11923  from the body.
11924 \end_layout
11925
11926 \begin_layout Itemize
11927
11928 \change_inserted -712698321 1553618031
11929 \begin_inset Flex Code
11930 status collapsed
11931
11932 \begin_layout Plain Layout
11933
11934 \change_inserted -712698321 1553618006
11935 Simple_Grid
11936 \change_unchanged
11937
11938 \end_layout
11939
11940 \end_inset
11941
11942 : Simple table lines.
11943 \end_layout
11944
11945 \begin_layout Itemize
11946
11947 \change_inserted -712698321 1553618309
11948 \begin_inset Flex Code
11949 status collapsed
11950
11951 \begin_layout Plain Layout
11952
11953 \change_inserted -712698321 1553618031
11954 Grid_with_Head
11955 \change_unchanged
11956
11957 \end_layout
11958
11959 \end_inset
11960
11961 : Like 
11962 \begin_inset Flex Code
11963 status collapsed
11964
11965 \begin_layout Plain Layout
11966
11967 \change_inserted -712698321 1553618043
11968 Simple_Grid
11969 \change_unchanged
11970
11971 \end_layout
11972
11973 \end_inset
11974
11975 , but with the header 
11976 \change_deleted 34634807 1619712593
11977 column
11978 \change_inserted 34634807 1619712594
11979 row
11980 \change_inserted -712698321 1553618309
11981  offset with a second horizontal line.
11982  This is also the default style of \SpecialChar LyX
11983 .
11984 \end_layout
11985
11986 \begin_layout Itemize
11987
11988 \change_inserted -712698321 1553618280
11989 \begin_inset Flex Code
11990 status collapsed
11991
11992 \begin_layout Plain Layout
11993
11994 \change_inserted -712698321 1553618261
11995 No_Borders
11996 \change_unchanged
11997
11998 \end_layout
11999
12000 \end_inset
12001
12002 : Table without lines.
12003 \change_unchanged
12004
12005 \end_layout
12006
12007 \end_deeper
12008 \begin_layout Description
12009 \begin_inset Flex Code
12010 status collapsed
12011
12012 \begin_layout Plain Layout
12013 TitleLatexName
12014 \end_layout
12015
12016 \end_inset
12017
12018  [
12019 \begin_inset Flex Code
12020 status collapsed
12021
12022 \begin_layout Plain Layout
12023 string="maketitle"
12024 \end_layout
12025
12026 \end_inset
12027
12028 ] The name of the command or environment to be used with 
12029 \begin_inset Flex Code
12030 status collapsed
12031
12032 \begin_layout Plain Layout
12033 TitleLatexType
12034 \end_layout
12035
12036 \end_inset
12037
12038 .
12039 \end_layout
12040
12041 \begin_layout Description
12042 \begin_inset Flex Code
12043 status collapsed
12044
12045 \begin_layout Plain Layout
12046 TitleLatexType
12047 \end_layout
12048
12049 \end_inset
12050
12051  [
12052 \begin_inset Flex Code
12053 status collapsed
12054
12055 \begin_layout Plain Layout
12056
12057 \emph on
12058 CommandAfter
12059 \end_layout
12060
12061 \end_inset
12062
12063
12064 \begin_inset Flex Code
12065 status collapsed
12066
12067 \begin_layout Plain Layout
12068 Environment
12069 \end_layout
12070
12071 \end_inset
12072
12073 ] Indicates what kind of markup is used to define the title of a document.
12074  
12075 \begin_inset Flex Code
12076 status collapsed
12077
12078 \begin_layout Plain Layout
12079 CommandAfter
12080 \end_layout
12081
12082 \end_inset
12083
12084  means that the macro with name 
12085 \begin_inset Flex Code
12086 status collapsed
12087
12088 \begin_layout Plain Layout
12089 TitleLatexName
12090 \end_layout
12091
12092 \end_inset
12093
12094  will be inserted after the last layout which has 
12095 \begin_inset Quotes eld
12096 \end_inset
12097
12098
12099 \begin_inset Flex Code
12100 status collapsed
12101
12102 \begin_layout Plain Layout
12103 InTitle
12104 \begin_inset space ~
12105 \end_inset
12106
12107 1
12108 \end_layout
12109
12110 \end_inset
12111
12112
12113 \begin_inset Quotes erd
12114 \end_inset
12115
12116 .
12117  
12118 \begin_inset Flex Code
12119 status collapsed
12120
12121 \begin_layout Plain Layout
12122 Environment
12123 \end_layout
12124
12125 \end_inset
12126
12127  corresponds to the case where all layouts which have 
12128 \begin_inset Quotes eld
12129 \end_inset
12130
12131
12132 \begin_inset Flex Code
12133 status collapsed
12134
12135 \begin_layout Plain Layout
12136 InTitle
12137 \begin_inset space ~
12138 \end_inset
12139
12140 1
12141 \end_layout
12142
12143 \end_inset
12144
12145
12146 \begin_inset Quotes erd
12147 \end_inset
12148
12149  should be enclosed into the 
12150 \begin_inset Flex Code
12151 status collapsed
12152
12153 \begin_layout Plain Layout
12154 TitleLatexName
12155 \end_layout
12156
12157 \end_inset
12158
12159  environment.
12160 \end_layout
12161
12162 \begin_layout Description
12163 \begin_inset Flex Code
12164 status collapsed
12165
12166 \begin_layout Plain Layout
12167 TocDepth
12168 \end_layout
12169
12170 \end_inset
12171
12172  [
12173 \begin_inset Flex Code
12174 status collapsed
12175
12176 \begin_layout Plain Layout
12177 int=3
12178 \end_layout
12179
12180 \end_inset
12181
12182 ] Sets which divisions are included in the table of contents.
12183  Corresponds to the 
12184 \begin_inset Flex Code
12185 status collapsed
12186
12187 \begin_layout Plain Layout
12188 tocdepth
12189 \end_layout
12190
12191 \end_inset
12192
12193  counter in \SpecialChar LaTeX
12194 .
12195 \end_layout
12196
12197 \begin_layout Subsection
12198 \begin_inset Flex Code
12199 status collapsed
12200
12201 \begin_layout Plain Layout
12202 ClassOptions
12203 \end_layout
12204
12205 \end_inset
12206
12207  section
12208 \begin_inset CommandInset label
12209 LatexCommand label
12210 name "subsec:ClassOptions"
12211
12212 \end_inset
12213
12214
12215 \end_layout
12216
12217 \begin_layout Standard
12218 The 
12219 \begin_inset Flex Code
12220 status collapsed
12221
12222 \begin_layout Plain Layout
12223 ClassOptions
12224 \end_layout
12225
12226 \end_inset
12227
12228  section can contain the following entries:
12229 \end_layout
12230
12231 \begin_layout Description
12232 \begin_inset Flex Code
12233 status collapsed
12234
12235 \begin_layout Plain Layout
12236 FontSize
12237 \end_layout
12238
12239 \end_inset
12240
12241  [
12242 \begin_inset Flex Code
12243 status collapsed
12244
12245 \begin_layout Plain Layout
12246 string="10|11|12"
12247 \end_layout
12248
12249 \end_inset
12250
12251 ] The list of available font sizes for the document's main font, separated
12252  by 
12253 \begin_inset Quotes eld
12254 \end_inset
12255
12256
12257 \begin_inset Flex Code
12258 status collapsed
12259
12260 \begin_layout Plain Layout
12261 |
12262 \end_layout
12263
12264 \end_inset
12265
12266
12267 \begin_inset Quotes erd
12268 \end_inset
12269
12270 .
12271
12272 \change_inserted -712698321 1565110196
12273  Any number is possible.
12274 \end_layout
12275
12276 \begin_layout Description
12277
12278 \change_inserted -712698321 1565110259
12279 \begin_inset Flex Code
12280 status collapsed
12281
12282 \begin_layout Plain Layout
12283
12284 \change_inserted -712698321 1565110199
12285 FontSizeFormat
12286 \change_unchanged
12287
12288 \end_layout
12289
12290 \end_inset
12291
12292  [
12293 \begin_inset Flex Code
12294 status collapsed
12295
12296 \begin_layout Plain Layout
12297
12298 \change_inserted -712698321 1565110196
12299 string
12300 \change_unchanged
12301
12302 \end_layout
12303
12304 \end_inset
12305
12306 ] The format for the font size option.
12307  Default: 
12308 \begin_inset Flex Code
12309 status collapsed
12310
12311 \begin_layout Plain Layout
12312
12313 \change_inserted -712698321 1565110238
12314 $$spt
12315 \change_unchanged
12316
12317 \end_layout
12318
12319 \end_inset
12320
12321 .
12322  
12323 \begin_inset Flex Code
12324 status collapsed
12325
12326 \begin_layout Plain Layout
12327
12328 \change_inserted -712698321 1565110248
12329 $$s
12330 \change_unchanged
12331
12332 \end_layout
12333
12334 \end_inset
12335
12336  is a placeholder for the font size.
12337 \change_unchanged
12338
12339 \end_layout
12340
12341 \begin_layout Description
12342
12343 \change_deleted 5863208 1594239483
12344 \begin_inset Flex Code
12345 status collapsed
12346
12347 \begin_layout Plain Layout
12348 Header
12349 \end_layout
12350
12351 \end_inset
12352
12353  Used to set the DTD line with XML-based output classes.
12354  E.
12355 \begin_inset space \thinspace{}
12356 \end_inset
12357
12358 g.: PUBLIC 
12359 \begin_inset Quotes eld
12360 \end_inset
12361
12362 -//OASIS//DTD DocBook V4.2//EN
12363 \begin_inset Quotes erd
12364 \end_inset
12365
12366 .
12367 \change_inserted -712698321 1565101761
12368
12369 \end_layout
12370
12371 \begin_layout Description
12372
12373 \change_inserted -712698321 1565180598
12374 \begin_inset Flex Code
12375 status collapsed
12376
12377 \begin_layout Plain Layout
12378
12379 \change_inserted -712698321 1565101918
12380 PageSize
12381 \change_unchanged
12382
12383 \end_layout
12384
12385 \end_inset
12386
12387  [
12388 \begin_inset Flex Code
12389 status collapsed
12390
12391 \begin_layout Plain Layout
12392
12393 \change_inserted -712698321 1565105399
12394 string="letter|\SpecialChar allowbreak
12395 legal|\SpecialChar allowbreak
12396 executive|\SpecialChar allowbreak
12397 a0|\SpecialChar allowbreak
12398 a1|\SpecialChar allowbreak
12399 a2|\SpecialChar allowbreak
12400 a3|\SpecialChar allowbreak
12401 a4|\SpecialChar allowbreak
12402 a5|\SpecialChar allowbreak
12403 a6|\SpecialChar allowbreak
12404 b0|\SpecialChar allowbreak
12405 b1|\SpecialChar allowbreak
12406 b2|\SpecialChar allowbreak
12407 b3|\SpecialChar allowbreak
12408 b4|\SpecialChar allowbreak
12409 b5|\SpecialChar allowbreak
12410 b6|\SpecialChar allowbreak
12411 c0|\SpecialChar allowbreak
12412 c1|\SpecialChar allowbreak
12413 c
12414 2|\SpecialChar allowbreak
12415 c3|\SpecialChar allowbreak
12416 c4|\SpecialChar allowbreak
12417 c5|\SpecialChar allowbreak
12418 c6|\SpecialChar allowbreak
12419 b0j|\SpecialChar allowbreak
12420 b1j|\SpecialChar allowbreak
12421 b2j|\SpecialChar allowbreak
12422 b3j|\SpecialChar allowbreak
12423 b4j|\SpecialChar allowbreak
12424 b5j|\SpecialChar allowbreak
12425 b6j"
12426 \change_unchanged
12427
12428 \end_layout
12429
12430 \end_inset
12431
12432 ] The list of available page sizes, separated by 
12433 \begin_inset Quotes eld
12434 \end_inset
12435
12436
12437 \begin_inset Flex Code
12438 status collapsed
12439
12440 \begin_layout Plain Layout
12441
12442 \change_inserted -712698321 1565101779
12443 |
12444 \change_unchanged
12445
12446 \end_layout
12447
12448 \end_inset
12449
12450
12451 \begin_inset Quotes erd
12452 \end_inset
12453
12454 .
12455  Currently, only the listed sizes are supported.
12456  Other sizes might be entered as custom class option.
12457 \end_layout
12458
12459 \begin_layout Description
12460
12461 \change_inserted -712698321 1565180623
12462 \begin_inset Flex Code
12463 status collapsed
12464
12465 \begin_layout Plain Layout
12466
12467 \change_inserted -712698321 1565180605
12468 PageSizeFormat
12469 \change_unchanged
12470
12471 \end_layout
12472
12473 \end_inset
12474
12475  [
12476 \begin_inset Flex Code
12477 status collapsed
12478
12479 \begin_layout Plain Layout
12480
12481 \change_inserted -712698321 1565180601
12482 string
12483 \change_unchanged
12484
12485 \end_layout
12486
12487 \end_inset
12488
12489 ] The format for the page size option.
12490  Default: 
12491 \begin_inset Flex Code
12492 status collapsed
12493
12494 \begin_layout Plain Layout
12495
12496 \change_inserted -712698321 1565180618
12497 $$spaper
12498 \change_unchanged
12499
12500 \end_layout
12501
12502 \end_inset
12503
12504 .
12505  
12506 \begin_inset Flex Code
12507 status collapsed
12508
12509 \begin_layout Plain Layout
12510
12511 \change_inserted -712698321 1565180601
12512 $$s
12513 \change_unchanged
12514
12515 \end_layout
12516
12517 \end_inset
12518
12519  is a placeholder for the paper size.
12520 \change_unchanged
12521
12522 \end_layout
12523
12524 \begin_layout Description
12525 \begin_inset Flex Code
12526 status collapsed
12527
12528 \begin_layout Plain Layout
12529 PageStyle
12530 \end_layout
12531
12532 \end_inset
12533
12534  [
12535 \begin_inset Flex Code
12536 status collapsed
12537
12538 \begin_layout Plain Layout
12539 string="empty|plain|headings|fancy"
12540 \end_layout
12541
12542 \end_inset
12543
12544 ] The list of available page sty\SpecialChar softhyphen
12545 les, separated by 
12546 \begin_inset Quotes eld
12547 \end_inset
12548
12549
12550 \begin_inset Flex Code
12551 status collapsed
12552
12553 \begin_layout Plain Layout
12554 |
12555 \end_layout
12556
12557 \end_inset
12558
12559
12560 \begin_inset Quotes erd
12561 \end_inset
12562
12563 .
12564 \end_layout
12565
12566 \begin_layout Description
12567 \begin_inset Flex Code
12568 status collapsed
12569
12570 \begin_layout Plain Layout
12571 Other
12572 \end_layout
12573
12574 \end_inset
12575
12576  [
12577 \begin_inset Flex Code
12578 status collapsed
12579
12580 \begin_layout Plain Layout
12581 string=""
12582 \end_layout
12583
12584 \end_inset
12585
12586 ] Some document class options, separated by a comma, that will be added
12587  to the optional part of the 
12588 \begin_inset Flex Code
12589 status collapsed
12590
12591 \begin_layout Plain Layout
12592
12593 \backslash
12594 documentclass
12595 \end_layout
12596
12597 \end_inset
12598
12599  command.
12600 \end_layout
12601
12602 \begin_layout Standard
12603 The 
12604 \begin_inset Flex Code
12605 status collapsed
12606
12607 \begin_layout Plain Layout
12608 ClassOptions
12609 \end_layout
12610
12611 \end_inset
12612
12613  section must end with 
12614 \begin_inset Quotes eld
12615 \end_inset
12616
12617
12618 \begin_inset Flex Code
12619 status collapsed
12620
12621 \begin_layout Plain Layout
12622 End
12623 \end_layout
12624
12625 \end_inset
12626
12627
12628 \begin_inset Quotes erd
12629 \end_inset
12630
12631 .
12632 \end_layout
12633
12634 \begin_layout Subsection
12635 Paragraph styles
12636 \begin_inset CommandInset label
12637 LatexCommand label
12638 name "subsec:Paragraph-Styles"
12639
12640 \end_inset
12641
12642
12643 \end_layout
12644
12645 \begin_layout Standard
12646 A paragraph style description looks like this:
12647 \begin_inset Foot
12648 status collapsed
12649
12650 \begin_layout Plain Layout
12651 Note that this will either define a new style or modify an existing one.
12652 \end_layout
12653
12654 \end_inset
12655
12656
12657 \end_layout
12658
12659 \begin_layout LyX-Code
12660 Style 
12661 \family roman
12662 \emph on
12663 name
12664 \end_layout
12665
12666 \begin_layout LyX-Code
12667  ...
12668 \end_layout
12669
12670 \begin_layout LyX-Code
12671 End
12672 \end_layout
12673
12674 \begin_layout Standard
12675 where the following commands are allowed:
12676 \end_layout
12677
12678 \begin_layout Description
12679 \begin_inset Flex Code
12680 status collapsed
12681
12682 \begin_layout Plain Layout
12683 AddToToc
12684 \end_layout
12685
12686 \end_inset
12687
12688  [
12689 \begin_inset Flex Code
12690 status collapsed
12691
12692 \begin_layout Plain Layout
12693 string
12694 \end_layout
12695
12696 \end_inset
12697
12698 =""] This paragraph will appear in the table of contents of the given type.
12699  An empty string disables.
12700  See also the OutlinerName and the IsTocCaption commands.
12701  Default: disabled.
12702 \end_layout
12703
12704 \begin_layout Description
12705 \begin_inset Flex Code
12706 status collapsed
12707
12708 \begin_layout Plain Layout
12709 Align
12710 \end_layout
12711
12712 \end_inset
12713
12714  [
12715 \begin_inset Flex Code
12716 status collapsed
12717
12718 \begin_layout Plain Layout
12719
12720 \emph on
12721 block
12722 \emph default
12723 , left, right, center
12724 \end_layout
12725
12726 \end_inset
12727
12728 ] Paragraph alignment.
12729 \end_layout
12730
12731 \begin_layout Description
12732 \begin_inset Flex Code
12733 status collapsed
12734
12735 \begin_layout Plain Layout
12736 AlignPossible
12737 \end_layout
12738
12739 \end_inset
12740
12741  [
12742 \begin_inset Flex Code
12743 status collapsed
12744
12745 \begin_layout Plain Layout
12746
12747 \emph on
12748 block
12749 \emph default
12750 , left, right, center
12751 \end_layout
12752
12753 \end_inset
12754
12755 ] A comma separated list of permitted alignments.
12756  (Some \SpecialChar LaTeX
12757  styles prohibit certain alignments, since those wouldn't make sense.
12758  For example a right-aligned or centered enumeration isn't possible.)
12759 \end_layout
12760
12761 \begin_layout Description
12762 \begin_inset Flex Code
12763 status collapsed
12764
12765 \begin_layout Plain Layout
12766 Argument
12767 \end_layout
12768
12769 \end_inset
12770
12771  [
12772 \begin_inset Flex Code
12773 status collapsed
12774
12775 \begin_layout Plain Layout
12776 int
12777 \end_layout
12778
12779 \end_inset
12780
12781 ] Defines argument number <int> of a command\SpecialChar breakableslash
12782 environment associated with
12783  the current style.
12784
12785 \change_inserted -584632292 1615846868
12786  The definition must end with 
12787 \begin_inset Flex Code
12788 status collapsed
12789
12790 \begin_layout Plain Layout
12791
12792 \change_inserted -584632292 1615846867
12793 EndArgument
12794 \change_unchanged
12795
12796 \end_layout
12797
12798 \end_inset
12799
12800 .
12801
12802 \change_unchanged
12803  
12804 \change_inserted -584632292 1615846880
12805 See 
12806 \begin_inset CommandInset ref
12807 LatexCommand ref
12808 reference "subsec:Arguments"
12809 plural "false"
12810 caps "false"
12811 noprefix "false"
12812
12813 \end_inset
12814
12815  for more information.
12816  
12817 \change_deleted -584632292 1615846694
12818 This is useful for things like section headings, and only makes sense with
12819  \SpecialChar LaTeX
12820 .
12821  Every (optional or required) argument of a command or environment – except
12822  for the required argument that is associated with the content of the paragraph
12823  itself – has a separate definition, where the number specifies the order
12824  of the arguments.
12825  The definition must end with 
12826 \begin_inset Flex Code
12827 status collapsed
12828
12829 \begin_layout Plain Layout
12830 EndArgument
12831 \end_layout
12832
12833 \end_inset
12834
12835 .
12836  So a command with two optional arguments has:
12837 \end_layout
12838
12839 \begin_deeper
12840 \begin_layout Quote
12841
12842 \change_deleted -584632292 1615846694
12843
12844 \family typewriter
12845 Argument 1
12846 \end_layout
12847
12848 \begin_layout Quote
12849
12850 \change_deleted -584632292 1615846694
12851
12852 \family typewriter
12853 ...
12854 \end_layout
12855
12856 \begin_layout Quote
12857
12858 \change_deleted -584632292 1615846694
12859
12860 \family typewriter
12861 EndArgument
12862 \end_layout
12863
12864 \begin_layout Quote
12865
12866 \change_deleted -584632292 1615846694
12867
12868 \family typewriter
12869 Argument 2
12870 \end_layout
12871
12872 \begin_layout Quote
12873
12874 \change_deleted -584632292 1615846694
12875
12876 \family typewriter
12877 ...
12878 \end_layout
12879
12880 \begin_layout Quote
12881
12882 \change_deleted -584632292 1615846694
12883
12884 \family typewriter
12885 EndArgument
12886 \end_layout
12887
12888 \begin_layout Standard
12889
12890 \change_deleted -584632292 1615846694
12891 Inside the 
12892 \begin_inset Flex Code
12893 status collapsed
12894
12895 \begin_layout Plain Layout
12896 Argument
12897 \end_layout
12898
12899 \end_inset
12900
12901  definition, the following specifications are possible:
12902 \end_layout
12903
12904 \begin_layout Itemize
12905
12906 \change_deleted -584632292 1615846694
12907 \begin_inset Flex Code
12908 status collapsed
12909
12910 \begin_layout Plain Layout
12911 LabelString
12912 \end_layout
12913
12914 \end_inset
12915
12916  
12917 \begin_inset Flex Code
12918 status collapsed
12919
12920 \begin_layout Plain Layout
12921 [string]
12922 \end_layout
12923
12924 \end_inset
12925
12926  The string that will appear both in the menu (to insert this argument)
12927  and on the argument inset button (unless you also specify a separate 
12928 \begin_inset Flex Code
12929 status collapsed
12930
12931 \begin_layout Plain Layout
12932 MenuString
12933 \end_layout
12934
12935 \end_inset
12936
12937 ).
12938  For the menu, you can define an accelerator by appending the respective
12939  character to the string, divided by 
12940 \begin_inset Quotes eld
12941 \end_inset
12942
12943 |
12944 \begin_inset Quotes erd
12945 \end_inset
12946
12947  (e.
12948 \begin_inset space \thinspace{}
12949 \end_inset
12950
12951 g.
12952 \begin_inset space \space{}
12953 \end_inset
12954
12955
12956 \begin_inset Quotes eld
12957 \end_inset
12958
12959
12960 \begin_inset Flex Code
12961 status collapsed
12962
12963 \begin_layout Plain Layout
12964 Short Title|S
12965 \end_layout
12966
12967 \end_inset
12968
12969
12970 \begin_inset Quotes erd
12971 \end_inset
12972
12973 ).
12974 \end_layout
12975
12976 \begin_layout Itemize
12977
12978 \change_deleted -584632292 1615846694
12979 \begin_inset Flex Code
12980 status collapsed
12981
12982 \begin_layout Plain Layout
12983 MenuString
12984 \end_layout
12985
12986 \end_inset
12987
12988  
12989 \begin_inset Flex Code
12990 status collapsed
12991
12992 \begin_layout Plain Layout
12993 [string]
12994 \end_layout
12995
12996 \end_inset
12997
12998  A separate string for the menu.
12999  You can define an accelerator by appending the respective character to
13000  the string, divided by 
13001 \begin_inset Quotes eld
13002 \end_inset
13003
13004 |
13005 \begin_inset Quotes erd
13006 \end_inset
13007
13008  (e.
13009 \begin_inset space \thinspace{}
13010 \end_inset
13011
13012 g.
13013 \begin_inset space \space{}
13014 \end_inset
13015
13016
13017 \begin_inset Quotes eld
13018 \end_inset
13019
13020
13021 \begin_inset Flex Code
13022 status collapsed
13023
13024 \begin_layout Plain Layout
13025 Short Title|S
13026 \end_layout
13027
13028 \end_inset
13029
13030
13031 \begin_inset Quotes erd
13032 \end_inset
13033
13034 ).
13035  This specification is optional.
13036  If it is not given the 
13037 \begin_inset Flex Code
13038 status collapsed
13039
13040 \begin_layout Plain Layout
13041 LabelString
13042 \end_layout
13043
13044 \end_inset
13045
13046  will be used instead for the menu.
13047 \end_layout
13048
13049 \begin_layout Itemize
13050
13051 \change_deleted -584632292 1615846694
13052 \begin_inset Flex Code
13053 status collapsed
13054
13055 \begin_layout Plain Layout
13056 Tooltip
13057 \end_layout
13058
13059 \end_inset
13060
13061  
13062 \begin_inset Flex Code
13063 status collapsed
13064
13065 \begin_layout Plain Layout
13066 [string]
13067 \end_layout
13068
13069 \end_inset
13070
13071  A longer explanatory text that appears in the tooltip when hovering over
13072  the argument inset.
13073 \end_layout
13074
13075 \begin_layout Itemize
13076
13077 \change_deleted -584632292 1615846694
13078 \begin_inset Flex Code
13079 status collapsed
13080
13081 \begin_layout Plain Layout
13082 Mandatory
13083 \end_layout
13084
13085 \end_inset
13086
13087  [
13088 \begin_inset Flex Code
13089 status collapsed
13090
13091 \begin_layout Plain Layout
13092
13093 \emph on
13094 0
13095 \end_layout
13096
13097 \end_inset
13098
13099 ,
13100 \begin_inset space \thinspace{}
13101 \end_inset
13102
13103
13104 \begin_inset Flex Code
13105 status collapsed
13106
13107 \begin_layout Plain Layout
13108 1
13109 \end_layout
13110
13111 \end_inset
13112
13113 ] Declare if this is a mandatory (1) or an optional (0) argument.
13114  Mandatory arguments will be output empty if not given, while optional arguments
13115  will not be output at all.
13116  By default, mandatory arguments are delimited by 
13117 \begin_inset Flex Code
13118 status collapsed
13119
13120 \begin_layout Plain Layout
13121 {...}
13122 \end_layout
13123
13124 \end_inset
13125
13126 , while optional arguments are delimited by 
13127 \begin_inset Flex Code
13128 status collapsed
13129
13130 \begin_layout Plain Layout
13131 [...]
13132 \end_layout
13133
13134 \end_inset
13135
13136
13137 \end_layout
13138
13139 \begin_layout Itemize
13140
13141 \change_deleted -584632292 1615846694
13142 \begin_inset Flex Code
13143 status collapsed
13144
13145 \begin_layout Plain Layout
13146
13147 \change_inserted -712698321 1555579780
13148 NewlineCmd
13149 \change_unchanged
13150
13151 \end_layout
13152
13153 \end_inset
13154
13155  
13156 \begin_inset Flex Code
13157 status collapsed
13158
13159 \begin_layout Plain Layout
13160
13161 \change_inserted -712698321 1555579780
13162 [string]
13163 \change_unchanged
13164
13165 \end_layout
13166
13167 \end_inset
13168
13169  Option to define a different command (from the default 
13170 \begin_inset Flex Code
13171 status collapsed
13172
13173 \begin_layout Plain Layout
13174
13175 \change_inserted -712698321 1555579780
13176
13177 \backslash
13178
13179 \backslash
13180
13181 \change_unchanged
13182
13183 \end_layout
13184
13185 \end_inset
13186
13187 ) to be used for line breaks.
13188  The initial backslash must not be specified.
13189 \end_layout
13190
13191 \begin_layout Itemize
13192
13193 \change_deleted -584632292 1615846694
13194 \begin_inset Flex Code
13195 status collapsed
13196
13197 \begin_layout Plain Layout
13198 Requires
13199 \end_layout
13200
13201 \end_inset
13202
13203  
13204 \begin_inset Flex Code
13205 status collapsed
13206
13207 \begin_layout Plain Layout
13208 [int=0]
13209 \end_layout
13210
13211 \end_inset
13212
13213  defines another argument (by its number) which this argument requires to
13214  be output if it is itself output.
13215  E.
13216 \begin_inset space \thinspace{}
13217 \end_inset
13218
13219 g., in \SpecialChar LaTeX
13220  commands, optional arguments often require previous optional arguments
13221  to be output (at least empty), as in 
13222 \begin_inset Flex Code
13223 status collapsed
13224
13225 \begin_layout Plain Layout
13226
13227 \backslash
13228 command[][argument]{text}
13229 \end_layout
13230
13231 \end_inset
13232
13233 .
13234  This can be achieved by the statement 
13235 \begin_inset Flex Code
13236 status collapsed
13237
13238 \begin_layout Plain Layout
13239 Requires 1
13240 \end_layout
13241
13242 \end_inset
13243
13244  within 
13245 \begin_inset Flex Code
13246 status collapsed
13247
13248 \begin_layout Plain Layout
13249 Argument 2
13250 \end_layout
13251
13252 \end_inset
13253
13254 .
13255 \end_layout
13256
13257 \begin_layout Itemize
13258
13259 \change_deleted -584632292 1615846694
13260 \begin_inset Flex Code
13261 status collapsed
13262
13263 \begin_layout Plain Layout
13264 LeftDelim
13265 \end_layout
13266
13267 \end_inset
13268
13269  
13270 \begin_inset Flex Code
13271 status collapsed
13272
13273 \begin_layout Plain Layout
13274 [string]
13275 \end_layout
13276
13277 \end_inset
13278
13279  defines a custom left delimiter (instead of 
13280 \begin_inset Flex Code
13281 status collapsed
13282
13283 \begin_layout Plain Layout
13284 {
13285 \end_layout
13286
13287 \end_inset
13288
13289  or 
13290 \begin_inset Flex Code
13291 status collapsed
13292
13293 \begin_layout Plain Layout
13294 [
13295 \end_layout
13296
13297 \end_inset
13298
13299 ).
13300  A line break in the output can be indicated by 
13301 \begin_inset Flex Code
13302 status collapsed
13303
13304 \begin_layout Plain Layout
13305 <br/>
13306 \end_layout
13307
13308 \end_inset
13309
13310 .
13311 \end_layout
13312
13313 \begin_layout Itemize
13314
13315 \change_deleted -584632292 1615846694
13316 \begin_inset Flex Code
13317 status collapsed
13318
13319 \begin_layout Plain Layout
13320 RightDelim
13321 \end_layout
13322
13323 \end_inset
13324
13325  
13326 \begin_inset Flex Code
13327 status collapsed
13328
13329 \begin_layout Plain Layout
13330 [string]
13331 \end_layout
13332
13333 \end_inset
13334
13335  defines a custom right delimiter (instead of 
13336 \begin_inset Flex Code
13337 status collapsed
13338
13339 \begin_layout Plain Layout
13340 }
13341 \end_layout
13342
13343 \end_inset
13344
13345  or 
13346 \begin_inset Flex Code
13347 status collapsed
13348
13349 \begin_layout Plain Layout
13350 ]
13351 \end_layout
13352
13353 \end_inset
13354
13355 ).
13356  A line break in the output can be indicated by 
13357 \begin_inset Flex Code
13358 status collapsed
13359
13360 \begin_layout Plain Layout
13361 <br/>
13362 \end_layout
13363
13364 \end_inset
13365
13366 .
13367 \end_layout
13368
13369 \begin_layout Itemize
13370
13371 \change_deleted -584632292 1615846694
13372 \begin_inset Flex Code
13373 status collapsed
13374
13375 \begin_layout Plain Layout
13376 DefaultArg
13377 \end_layout
13378
13379 \end_inset
13380
13381  
13382 \begin_inset Flex Code
13383 status collapsed
13384
13385 \begin_layout Plain Layout
13386 [string]
13387 \end_layout
13388
13389 \end_inset
13390
13391  defines an argument that is inserted if and only if no user-specified arguments
13392  were given, i.
13393 \begin_inset space \thinspace{}
13394 \end_inset
13395
13396 e.
13397 \begin_inset space \space{}
13398 \end_inset
13399
13400 if no argument inset has been inserted (note that also an empty argument
13401  inset omits the DefaultArg).
13402  Multiple arguments need to be separated by comma.
13403 \end_layout
13404
13405 \begin_layout Itemize
13406
13407 \change_deleted -584632292 1615846694
13408 \begin_inset Flex Code
13409 status collapsed
13410
13411 \begin_layout Plain Layout
13412 PresetArg
13413 \end_layout
13414
13415 \end_inset
13416
13417  
13418 \begin_inset Flex Code
13419 status collapsed
13420
13421 \begin_layout Plain Layout
13422 [string]
13423 \end_layout
13424
13425 \end_inset
13426
13427  defines an argument that is inserted in any case (alone or in addition
13428  to user-specified arguments).
13429  Multiple arguments need to be separated by comma.
13430 \end_layout
13431
13432 \begin_layout Itemize
13433
13434 \change_deleted -584632292 1615846694
13435 \begin_inset Flex Code
13436 status collapsed
13437
13438 \begin_layout Plain Layout
13439 Font
13440 \end_layout
13441
13442 \end_inset
13443
13444  The font used for the argument content, see 
13445 \begin_inset CommandInset ref
13446 LatexCommand ref
13447 reference "subsec:Font-description"
13448
13449 \end_inset
13450
13451 .
13452 \end_layout
13453
13454 \begin_layout Itemize
13455
13456 \change_deleted -584632292 1615846694
13457 \begin_inset Flex Code
13458 status collapsed
13459
13460 \begin_layout Plain Layout
13461
13462 \change_inserted -712698321 1559484228
13463 FreeSpacing
13464 \change_unchanged
13465
13466 \end_layout
13467
13468 \end_inset
13469
13470  [
13471 \begin_inset Flex Code
13472 status collapsed
13473
13474 \begin_layout Plain Layout
13475
13476 \change_inserted -712698321 1559484228
13477
13478 \emph on
13479 0
13480 \change_unchanged
13481
13482 \end_layout
13483
13484 \end_inset
13485
13486 ,
13487 \begin_inset space \thinspace{}
13488 \end_inset
13489
13490
13491 \begin_inset Flex Code
13492 status collapsed
13493
13494 \begin_layout Plain Layout
13495
13496 \change_inserted -712698321 1559484228
13497 1
13498 \change_unchanged
13499
13500 \end_layout
13501
13502 \end_inset
13503
13504 ] As with paragraph styles, see 
13505 \begin_inset CommandInset ref
13506 LatexCommand ref
13507 reference "subsec:Paragraph-Styles"
13508
13509 \end_inset
13510
13511 .
13512 \end_layout
13513
13514 \begin_layout Itemize
13515
13516 \change_deleted -584632292 1615846694
13517 \begin_inset Flex Code
13518 status collapsed
13519
13520 \begin_layout Plain Layout
13521 LabelFont
13522 \end_layout
13523
13524 \end_inset
13525
13526  The font used for the label; see 
13527 \begin_inset CommandInset ref
13528 LatexCommand ref
13529 reference "subsec:Font-description"
13530
13531 \end_inset
13532
13533 .
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 Decoration
13544 \end_layout
13545
13546 \end_inset
13547
13548  [
13549 \begin_inset Flex Code
13550 status collapsed
13551
13552 \begin_layout Plain Layout
13553
13554 \emph on
13555 Classic
13556 \emph default
13557 , Minimalistic, Conglomerate
13558 \end_layout
13559
13560 \end_inset
13561
13562 ] describes the rendering style used for the inset's frame and buttons.
13563 \end_layout
13564
13565 \begin_layout Itemize
13566
13567 \change_deleted -584632292 1615846694
13568 \begin_inset Flex Code
13569 status collapsed
13570
13571 \begin_layout Plain Layout
13572 AutoInsert
13573 \end_layout
13574
13575 \end_inset
13576
13577  
13578 \begin_inset Flex Code
13579 status collapsed
13580
13581 \begin_layout Plain Layout
13582 [int=0]
13583 \end_layout
13584
13585 \end_inset
13586
13587  If this is set to 
13588 \begin_inset Flex Code
13589 status collapsed
13590
13591 \begin_layout Plain Layout
13592 1
13593 \end_layout
13594
13595 \end_inset
13596
13597 , this argument is automatically inserted when the respective style is selected.
13598
13599 \change_deleted -712698321 1559484200
13600  Currently, only one argument per style\SpecialChar breakableslash
13601 layout can be automatically inserted.
13602 \change_deleted -584632292 1615846694
13603
13604 \end_layout
13605
13606 \begin_layout Itemize
13607
13608 \change_deleted -584632292 1615846694
13609 \begin_inset Flex Code
13610 status collapsed
13611
13612 \begin_layout Plain Layout
13613
13614 \change_inserted -712698321 1559490711
13615 InsertOnNewline
13616 \change_unchanged
13617
13618 \end_layout
13619
13620 \end_inset
13621
13622  
13623 \begin_inset Flex Code
13624 status collapsed
13625
13626 \begin_layout Plain Layout
13627
13628 \change_inserted -712698321 1559490703
13629 [int=0]
13630 \change_unchanged
13631
13632 \end_layout
13633
13634 \end_inset
13635
13636  If this is set to 
13637 \begin_inset Flex Code
13638 status collapsed
13639
13640 \begin_layout Plain Layout
13641
13642 \change_inserted -712698321 1559490703
13643 1
13644 \change_unchanged
13645
13646 \end_layout
13647
13648 \end_inset
13649
13650 , this argument will be inserted on a new line with 
13651 \begin_inset Flex Code
13652 status collapsed
13653
13654 \begin_layout Plain Layout
13655
13656 \change_inserted -712698321 1559491402
13657 AutoInsert
13658 \change_unchanged
13659
13660 \end_layout
13661
13662 \end_inset
13663
13664  (only available within Flex insets).
13665 \end_layout
13666
13667 \begin_layout Itemize
13668
13669 \change_deleted -584632292 1615846694
13670 \begin_inset Flex Code
13671 status collapsed
13672
13673 \begin_layout Plain Layout
13674 InsertCotext
13675 \end_layout
13676
13677 \end_inset
13678
13679  
13680 \begin_inset Flex Code
13681 status collapsed
13682
13683 \begin_layout Plain Layout
13684 [int=0]
13685 \end_layout
13686
13687 \end_inset
13688
13689  If this is set to 
13690 \begin_inset Flex Code
13691 status collapsed
13692
13693 \begin_layout Plain Layout
13694 1
13695 \end_layout
13696
13697 \end_inset
13698
13699 , this argument will be inserted with a copy of the co-text (either selected
13700  text or the whole paragraph) as content.
13701 \end_layout
13702
13703 \begin_layout Itemize
13704
13705 \change_deleted -584632292 1615846694
13706 \begin_inset Flex Code
13707 status collapsed
13708
13709 \begin_layout Plain Layout
13710 PassThru
13711 \end_layout
13712
13713 \end_inset
13714
13715  [
13716 \begin_inset Flex Code
13717 status collapsed
13718
13719 \begin_layout Plain Layout
13720
13721 \emph on
13722 inherited
13723 \emph default
13724 , true, false
13725 \end_layout
13726
13727 \end_inset
13728
13729 ] Whether the contents of this argument should be output in raw form, meaning
13730  without special translations that \SpecialChar LaTeX
13731  would require.
13732  By default, the 
13733 \begin_inset Flex Code
13734 status collapsed
13735
13736 \begin_layout Plain Layout
13737 PassThru
13738 \end_layout
13739
13740 \end_inset
13741
13742  status is inherited by the inset or paragraph layout the argument belongs
13743  to, true and false change the status for the given argument only.
13744 \end_layout
13745
13746 \begin_layout Itemize
13747
13748 \change_deleted -584632292 1615846694
13749 \begin_inset Flex Code
13750 status collapsed
13751
13752 \begin_layout Plain Layout
13753 PassThruChars
13754 \end_layout
13755
13756 \end_inset
13757
13758  [
13759 \begin_inset Flex Code
13760 status collapsed
13761
13762 \begin_layout Plain Layout
13763 string of characters
13764 \end_layout
13765
13766 \end_inset
13767
13768 ]
13769 \family typewriter
13770  
13771 \family default
13772 Defines individual characters
13773 \begin_inset Newline linebreak
13774 \end_inset
13775
13776 that should be output in raw form, meaning without special translations
13777  that \SpecialChar LaTeX
13778  would require.
13779  Note that, contrary to PassThru, this needs to be explicitly defined for
13780  arguments.
13781  That is, arguments do not inherit PassThruChars from their parent inset
13782  or layout.
13783 \end_layout
13784
13785 \begin_layout Itemize
13786
13787 \change_deleted -584632292 1615846694
13788 \begin_inset Flex Code
13789 status collapsed
13790
13791 \begin_layout Plain Layout
13792 IsTocCaption
13793 \end_layout
13794
13795 \end_inset
13796
13797  [
13798 \begin_inset Flex Code
13799 status collapsed
13800
13801 \begin_layout Plain Layout
13802
13803 \emph on
13804 0
13805 \end_layout
13806
13807 \end_inset
13808
13809 ,
13810 \begin_inset space \thinspace{}
13811 \end_inset
13812
13813
13814 \begin_inset Flex Code
13815 status collapsed
13816
13817 \begin_layout Plain Layout
13818 1
13819 \end_layout
13820
13821 \end_inset
13822
13823 ] If this is set to 1, the argument will output its content in the corresponding
13824  item in the table of contents.
13825  See AddToToc.
13826 \end_layout
13827
13828 \begin_layout Standard
13829
13830 \change_deleted -584632292 1615846694
13831 By default, the text entered in the \SpecialChar LyX
13832  workarea in the respective layout is
13833  the last (mandatory) argument of a command if the 
13834 \begin_inset Flex Code
13835 status collapsed
13836
13837 \begin_layout Plain Layout
13838 LatexType
13839 \end_layout
13840
13841 \end_inset
13842
13843  is 
13844 \begin_inset Flex Code
13845 status collapsed
13846
13847 \begin_layout Plain Layout
13848 Command
13849 \end_layout
13850
13851 \end_inset
13852
13853 .
13854  However, arguments with the prefix 
13855 \begin_inset Flex Code
13856 status collapsed
13857
13858 \begin_layout Plain Layout
13859 post:
13860 \end_layout
13861
13862 \end_inset
13863
13864  are output after this workarea argument.
13865  Note that post-argument numbering restarts at 1, so the first argument
13866  following the workarea argument is 
13867 \begin_inset Flex Code
13868 status collapsed
13869
13870 \begin_layout Plain Layout
13871 post:1
13872 \end_layout
13873
13874 \end_inset
13875
13876 .
13877  Post-arguments are ignored in any other 
13878 \begin_inset Flex Code
13879 status collapsed
13880
13881 \begin_layout Plain Layout
13882 LatexType
13883 \end_layout
13884
13885 \end_inset
13886
13887  than 
13888 \begin_inset Flex Code
13889 status collapsed
13890
13891 \begin_layout Plain Layout
13892 Command
13893 \end_layout
13894
13895 \end_inset
13896
13897 .
13898 \end_layout
13899
13900 \begin_layout Standard
13901
13902 \change_deleted -584632292 1615846694
13903 Arguments for list 
13904 \begin_inset Flex Code
13905 status collapsed
13906
13907 \begin_layout Plain Layout
13908
13909 \backslash
13910 item
13911 \end_layout
13912
13913 \end_inset
13914
13915 s (as in 
13916 \begin_inset Flex Code
13917 status collapsed
13918
13919 \begin_layout Plain Layout
13920
13921 \backslash
13922 item[foo]
13923 \end_layout
13924
13925 \end_inset
13926
13927 ) have the prefix 
13928 \begin_inset Flex Code
13929 status collapsed
13930
13931 \begin_layout Plain Layout
13932 item:
13933 \end_layout
13934
13935 \end_inset
13936
13937  followed by the number (e.
13938 \begin_inset space \thinspace{}
13939 \end_inset
13940
13941 g.
13942 \begin_inset space \space{}
13943 \end_inset
13944
13945
13946 \begin_inset Flex Code
13947 status collapsed
13948
13949 \begin_layout Plain Layout
13950 Argument item:1
13951 \end_layout
13952
13953 \end_inset
13954
13955 ).
13956 \end_layout
13957
13958 \begin_layout Standard
13959
13960 \change_deleted -584632292 1615846694
13961 Finally, there is a special argument type with the prefix 
13962 \begin_inset Flex Code
13963 status collapsed
13964
13965 \begin_layout Plain Layout
13966
13967 \change_inserted -712698321 1534487844
13968 listpreamble:
13969 \change_unchanged
13970
13971 \end_layout
13972
13973 \end_inset
13974
13975 .
13976  It is not really an argument, but uses the argument interface (thus, the
13977  prefix is also followed by a number, e.
13978 \begin_inset space \thinspace{}
13979 \end_inset
13980
13981 g.
13982  
13983 \begin_inset Flex Code
13984 status collapsed
13985
13986 \begin_layout Plain Layout
13987
13988 \change_inserted -712698321 1534488412
13989 Argument listpreamble:1
13990 \change_unchanged
13991
13992 \end_layout
13993
13994 \end_inset
13995
13996 ).
13997  As the name implies, it is targeted at lists such as 
13998 \family sans
13999 Itemize
14000 \family default
14001
14002 \family sans
14003 Enumerate
14004 \family default
14005
14006 \family sans
14007 Description
14008 \family default
14009 , or 
14010 \family sans
14011 Bibliography
14012 \family default
14013 .
14014  Its content will be output at the list start, before the first 
14015 \begin_inset Flex Code
14016 status collapsed
14017
14018 \begin_layout Plain Layout
14019
14020 \change_inserted -712698321 1534488058
14021
14022 \backslash
14023 item
14024 \change_unchanged
14025
14026 \end_layout
14027
14028 \end_inset
14029
14030 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
14031 ).
14032  This way, users can insert redefinitions (of lengths etc.) to individual
14033  lists.
14034  By default, these arguments do not have a delimiter.
14035 \change_unchanged
14036
14037 \end_layout
14038
14039 \end_deeper
14040 \begin_layout Description
14041 \begin_inset Flex Code
14042 status collapsed
14043
14044 \begin_layout Plain Layout
14045 AutoNests
14046 \end_layout
14047
14048 \end_inset
14049
14050  Includes a comma-separated list of layouts that should be nested in and
14051  after the current layout.
14052  Only makes sense for nestable layouts (such as environments).
14053  Must be ended by 
14054 \begin_inset Quotes eld
14055 \end_inset
14056
14057
14058 \begin_inset Flex Code
14059 status collapsed
14060
14061 \begin_layout Plain Layout
14062 EndAutoNests
14063 \end_layout
14064
14065 \end_inset
14066
14067
14068 \begin_inset Quotes erd
14069 \end_inset
14070
14071 .
14072  See also 
14073 \begin_inset Flex Code
14074 status collapsed
14075
14076 \begin_layout Plain Layout
14077 IsAutoNestedBy
14078 \end_layout
14079
14080 \end_inset
14081
14082 .
14083 \end_layout
14084
14085 \begin_layout Description
14086 \begin_inset Flex Code
14087 status collapsed
14088
14089 \begin_layout Plain Layout
14090 BabelPreamble
14091 \end_layout
14092
14093 \end_inset
14094
14095  Note that this will completely override any prior 
14096 \begin_inset Flex Code
14097 status collapsed
14098
14099 \begin_layout Plain Layout
14100 BabelPreamble
14101 \end_layout
14102
14103 \end_inset
14104
14105  declaration for this style.
14106  Must end with 
14107 \begin_inset Quotes eld
14108 \end_inset
14109
14110
14111 \begin_inset Flex Code
14112 status collapsed
14113
14114 \begin_layout Plain Layout
14115 EndBabelPreamble
14116 \end_layout
14117
14118 \end_inset
14119
14120
14121 \begin_inset Quotes erd
14122 \end_inset
14123
14124 .
14125  See 
14126 \begin_inset CommandInset ref
14127 LatexCommand ref
14128 reference "subsec:I18n"
14129
14130 \end_inset
14131
14132  for details on its use.
14133 \end_layout
14134
14135 \begin_layout Description
14136 \begin_inset Flex Code
14137 status collapsed
14138
14139 \begin_layout Plain Layout
14140 BottomSep
14141 \end_layout
14142
14143 \end_inset
14144
14145  [
14146 \begin_inset Flex Code
14147 status collapsed
14148
14149 \begin_layout Plain Layout
14150 float=0
14151 \end_layout
14152
14153 \end_inset
14154
14155 ]
14156 \begin_inset Foot
14157 status collapsed
14158
14159 \begin_layout Plain Layout
14160 Note that a `float' here is a real number, such as: 1.5.
14161 \end_layout
14162
14163 \end_inset
14164
14165  The vertical space with which the last of a chain of paragraphs with this
14166  style is separated from the following paragraph.
14167  If the next paragraph has another style, the separations are not simply
14168  added, but the maximum is taken.
14169 \end_layout
14170
14171 \begin_layout Description
14172 \begin_inset Flex Code
14173 status collapsed
14174
14175 \begin_layout Plain Layout
14176 Category
14177 \end_layout
14178
14179 \end_inset
14180
14181  [
14182 \begin_inset Flex Code
14183 status collapsed
14184
14185 \begin_layout Plain Layout
14186 string
14187 \end_layout
14188
14189 \end_inset
14190
14191 ] The category for this style.
14192  This is used to group related styles in the style combobox on the toolbar.
14193  Any string can be used, but you may want to use existing categories with
14194  your own styles.
14195  
14196 \end_layout
14197
14198 \begin_layout Description
14199 \begin_inset Flex Code
14200 status collapsed
14201
14202 \begin_layout Plain Layout
14203 CommandDepth
14204 \end_layout
14205
14206 \end_inset
14207
14208  Depth of XML command.
14209  Used only with XML-type formats.
14210 \end_layout
14211
14212 \begin_layout Description
14213 \begin_inset Flex Code
14214 status collapsed
14215
14216 \begin_layout Plain Layout
14217 CopyStyle
14218 \end_layout
14219
14220 \end_inset
14221
14222  [
14223 \begin_inset Flex Code
14224 status collapsed
14225
14226 \begin_layout Plain Layout
14227 string
14228 \end_layout
14229
14230 \end_inset
14231
14232 ] Copies all the features of an existing style into the current one.
14233  
14234 \end_layout
14235
14236 \begin_layout Description
14237 \begin_inset Flex Code
14238 status collapsed
14239
14240 \begin_layout Plain Layout
14241 DependsOn
14242 \end_layout
14243
14244 \end_inset
14245
14246  [
14247 \begin_inset Flex Code
14248 status collapsed
14249
14250 \begin_layout Plain Layout
14251 <name>
14252 \end_layout
14253
14254 \end_inset
14255
14256 ] The name of a style whose preamble should be output 
14257 \emph on
14258 before
14259 \emph default
14260  this one.
14261  This allows to ensure some ordering of the preamble snippets when macros
14262  definitions depend on one another.
14263 \begin_inset Foot
14264 status collapsed
14265
14266 \begin_layout Plain Layout
14267 Note that, besides that functionality, there is no way to ensure any ordering
14268  of preambles.
14269  The ordering that you see in a given version of \SpecialChar LyX
14270  may change without warning
14271  in later versions.
14272 \end_layout
14273
14274 \end_inset
14275
14276
14277 \end_layout
14278
14279 \begin_layout Description
14280 \begin_inset Flex Code
14281 status collapsed
14282
14283 \begin_layout Plain Layout
14284 EndLabelType
14285 \end_layout
14286
14287 \end_inset
14288
14289  [
14290 \begin_inset Flex Code
14291 status collapsed
14292
14293 \begin_layout Plain Layout
14294
14295 \emph on
14296 No_Label
14297 \emph default
14298 , Box, Filled_Box, Static
14299 \end_layout
14300
14301 \end_inset
14302
14303 ] The type of label that stands at the end of the paragraph (or sequence
14304  of paragraphs if 
14305 \begin_inset Flex Code
14306 status collapsed
14307
14308 \begin_layout Plain Layout
14309 LatexType
14310 \end_layout
14311
14312 \end_inset
14313
14314  is
14315 \begin_inset Newline newline
14316 \end_inset
14317
14318
14319 \begin_inset Flex Code
14320 status collapsed
14321
14322 \begin_layout Plain Layout
14323 Environment
14324 \end_layout
14325
14326 \end_inset
14327
14328
14329 \begin_inset Flex Code
14330 status collapsed
14331
14332 \begin_layout Plain Layout
14333 Item_Environment
14334 \end_layout
14335
14336 \end_inset
14337
14338  or 
14339 \begin_inset Flex Code
14340 status collapsed
14341
14342 \begin_layout Plain Layout
14343 List_Environment
14344 \end_layout
14345
14346 \end_inset
14347
14348 ).
14349  
14350 \begin_inset Flex Code
14351 status collapsed
14352
14353 \begin_layout Plain Layout
14354 No_Label
14355 \end_layout
14356
14357 \end_inset
14358
14359  means 
14360 \begin_inset Quotes eld
14361 \end_inset
14362
14363 nothing
14364 \begin_inset Quotes erd
14365 \end_inset
14366
14367
14368 \begin_inset Flex Code
14369 status collapsed
14370
14371 \begin_layout Plain Layout
14372 Box
14373 \end_layout
14374
14375 \end_inset
14376
14377  (resp.
14378 \begin_inset space \space{}
14379 \end_inset
14380
14381
14382 \begin_inset Flex Code
14383 status collapsed
14384
14385 \begin_layout Plain Layout
14386 Filled_Box
14387 \end_layout
14388
14389 \end_inset
14390
14391 ) is a white (resp.
14392 \begin_inset space ~
14393 \end_inset
14394
14395 black) square suitable for end of proof markers, 
14396 \begin_inset Flex Code
14397 status collapsed
14398
14399 \begin_layout Plain Layout
14400 Static
14401 \end_layout
14402
14403 \end_inset
14404
14405  is an explicit text string.
14406 \end_layout
14407
14408 \begin_layout Description
14409 \begin_inset Flex Code
14410 status collapsed
14411
14412 \begin_layout Plain Layout
14413 EndLabelString
14414 \end_layout
14415
14416 \end_inset
14417
14418  [
14419 \begin_inset Flex Code
14420 status collapsed
14421
14422 \begin_layout Plain Layout
14423 string=""
14424 \end_layout
14425
14426 \end_inset
14427
14428 ] The string used for a label with a 
14429 \begin_inset Flex Code
14430 status collapsed
14431
14432 \begin_layout Plain Layout
14433 Static
14434 \end_layout
14435
14436 \end_inset
14437
14438
14439 \begin_inset Newline newline
14440 \end_inset
14441
14442
14443 \begin_inset Flex Code
14444 status collapsed
14445
14446 \begin_layout Plain Layout
14447 EndLabelType
14448 \end_layout
14449
14450 \end_inset
14451
14452 .
14453  
14454 \end_layout
14455
14456 \begin_layout Description
14457 \begin_inset Flex Code
14458 status collapsed
14459
14460 \begin_layout Plain Layout
14461 Font
14462 \end_layout
14463
14464 \end_inset
14465
14466  The font used for both the text body 
14467 \emph on
14468 and
14469 \emph default
14470  the label.
14471  See 
14472 \begin_inset CommandInset ref
14473 LatexCommand ref
14474 reference "subsec:Font-description"
14475
14476 \end_inset
14477
14478 .
14479  Note that defining this font automatically defines the 
14480 \begin_inset Flex Code
14481 status collapsed
14482
14483 \begin_layout Plain Layout
14484 LabelFont
14485 \end_layout
14486
14487 \end_inset
14488
14489  to the same value.
14490  So you should define this one first if you also want to define 
14491 \begin_inset Flex Code
14492 status collapsed
14493
14494 \begin_layout Plain Layout
14495 LabelFont
14496 \end_layout
14497
14498 \end_inset
14499
14500 .
14501 \end_layout
14502
14503 \begin_layout Description
14504 \begin_inset Flex Code
14505 status collapsed
14506
14507 \begin_layout Plain Layout
14508 ForceLocal
14509 \end_layout
14510
14511 \end_inset
14512
14513  [
14514 \begin_inset Flex Code
14515 status collapsed
14516
14517 \begin_layout Plain Layout
14518 int=0
14519 \end_layout
14520
14521 \end_inset
14522
14523 ] Used for backporting new styles to stable \SpecialChar LyX
14524  versions.
14525  The first stable version that supports this tag is \SpecialChar LyX
14526  2.1.0.
14527  The argument is a number which may either be 0, -1 or any value greater
14528  than zero.
14529  If the 
14530 \begin_inset Flex Code
14531 status collapsed
14532
14533 \begin_layout Plain Layout
14534 ForceLocal
14535 \end_layout
14536
14537 \end_inset
14538
14539  flag of a style is greater than zero, it will always be written to the
14540  document header.
14541  If a .lyx file is read, the style definitions from the document header are
14542  added to the document class.
14543  Therefore even older \SpecialChar LyX
14544  versions can handle the style.
14545  The argument of 
14546 \begin_inset Flex Code
14547 status collapsed
14548
14549 \begin_layout Plain Layout
14550 ForceLocal
14551 \end_layout
14552
14553 \end_inset
14554
14555  is a version number: if the style is read, and the version number is less
14556  than the version number of the already existing style in the document class,
14557  the new style is ignored.
14558  If the version number is greater, the new style replaces the existing style.
14559  A value of -1 means an infinite version number, i.
14560 \begin_inset space \thinspace{}
14561 \end_inset
14562
14563 e.
14564 \begin_inset space \space{}
14565 \end_inset
14566
14567 the style is always used.
14568 \end_layout
14569
14570 \begin_layout Description
14571 \begin_inset Flex Code
14572 status collapsed
14573
14574 \begin_layout Plain Layout
14575 FreeSpacing
14576 \end_layout
14577
14578 \end_inset
14579
14580  [
14581 \begin_inset Flex Code
14582 status collapsed
14583
14584 \begin_layout Plain Layout
14585
14586 \emph on
14587 0
14588 \end_layout
14589
14590 \end_inset
14591
14592 ,
14593 \begin_inset space \thinspace{}
14594 \end_inset
14595
14596
14597 \begin_inset Flex Code
14598 status collapsed
14599
14600 \begin_layout Plain Layout
14601 1
14602 \end_layout
14603
14604 \end_inset
14605
14606 ] Usually \SpecialChar LyX
14607  does not allow you to insert more than one space between words,
14608  since a space is considered as the separation between two words, not a
14609  character or symbol of its own.
14610  This is a very fine thing but sometimes annoying, for example, when typing
14611  program code or plain \SpecialChar LaTeX
14612  code.
14613  For this reason, 
14614 \begin_inset Flex Code
14615 status collapsed
14616
14617 \begin_layout Plain Layout
14618 FreeSpacing
14619 \end_layout
14620
14621 \end_inset
14622
14623  can be enabled.
14624  
14625 \change_deleted -495245474 1550490105
14626 Note that 
14627 \change_unchanged
14628 \SpecialChar LyX
14629  will create 
14630 \change_deleted 177693 1654669077
14631 protected
14632 \change_inserted 177693 1654669079
14633 non-breaking
14634 \change_unchanged
14635  
14636 \change_deleted 177693 1654669082
14637 blanks
14638 \change_inserted 177693 1654669082
14639 spaces
14640 \change_unchanged
14641  for the additional blanks when
14642 \change_deleted 34634807 1619626461
14643  in
14644 \change_unchanged
14645  
14646 \change_inserted -495245474 1550490096
14647
14648 \begin_inset Flex Code
14649 status collapsed
14650
14651 \begin_layout Plain Layout
14652
14653 \change_inserted -495245474 1550490089
14654 Passthru 1
14655 \change_unchanged
14656
14657 \end_layout
14658
14659 \end_inset
14660
14661  is not specified.
14662 \change_deleted -495245474 1550490116
14663 another mode than \SpecialChar LaTeX
14664 -mode.
14665
14666 \change_inserted -495245474 1550247760
14667  Note that 
14668 \begin_inset Flex Code
14669 status collapsed
14670
14671 \begin_layout Plain Layout
14672
14673 \change_inserted -495245474 1550247736
14674 FreeSpacing
14675 \change_unchanged
14676
14677 \end_layout
14678
14679 \end_inset
14680
14681  implies 
14682 \begin_inset Flex Code
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686
14687 \change_inserted -495245474 1550247755
14688 KeepEmpty
14689 \change_unchanged
14690
14691 \end_layout
14692
14693 \end_inset
14694
14695 .
14696 \change_unchanged
14697
14698 \end_layout
14699
14700 \begin_layout Description
14701 \begin_inset Flex Code
14702 status collapsed
14703
14704 \begin_layout Plain Layout
14705 HTML*
14706 \end_layout
14707
14708 \end_inset
14709
14710  These tags are used with XHTML output.
14711  See 
14712 \begin_inset CommandInset ref
14713 LatexCommand ref
14714 reference "subsec:Paragraph-Style-XHTML"
14715
14716 \end_inset
14717
14718 .
14719 \end_layout
14720
14721 \begin_layout Description
14722 \begin_inset Flex Code
14723 status collapsed
14724
14725 \begin_layout Plain Layout
14726 InnerTag
14727 \end_layout
14728
14729 \end_inset
14730
14731  [FIXME] (Used only with XML-type formats.)
14732 \end_layout
14733
14734 \begin_layout Description
14735 \begin_inset Flex Code
14736 status collapsed
14737
14738 \begin_layout Plain Layout
14739 InPreamble
14740 \end_layout
14741
14742 \end_inset
14743
14744  [
14745 \begin_inset Flex Code
14746 status collapsed
14747
14748 \begin_layout Plain Layout
14749
14750 \emph on
14751 0
14752 \end_layout
14753
14754 \end_inset
14755
14756 ,
14757 \begin_inset space \thinspace{}
14758 \end_inset
14759
14760
14761 \begin_inset Flex Code
14762 status collapsed
14763
14764 \begin_layout Plain Layout
14765 1
14766 \end_layout
14767
14768 \end_inset
14769
14770 ] If 
14771 \begin_inset Flex Code
14772 status collapsed
14773
14774 \begin_layout Plain Layout
14775 1
14776 \end_layout
14777
14778 \end_inset
14779
14780 , marks the style as to be included in the document preamble and not in
14781  the document body.
14782  This is useful for document classes that want such information as the title
14783  and author to appear in the preamble.
14784  Note that this works only for styles for which the 
14785 \begin_inset Flex Code
14786 status collapsed
14787
14788 \begin_layout Plain Layout
14789 LatexType
14790 \end_layout
14791
14792 \end_inset
14793
14794  is 
14795 \begin_inset Flex Code
14796 status collapsed
14797
14798 \begin_layout Plain Layout
14799 Command
14800 \end_layout
14801
14802 \end_inset
14803
14804  or 
14805 \begin_inset Flex Code
14806 status collapsed
14807
14808 \begin_layout Plain Layout
14809 Paragraph
14810 \end_layout
14811
14812 \end_inset
14813
14814 .
14815 \end_layout
14816
14817 \begin_layout Description
14818 \begin_inset Flex Code
14819 status collapsed
14820
14821 \begin_layout Plain Layout
14822 InTitle
14823 \end_layout
14824
14825 \end_inset
14826
14827  [
14828 \begin_inset Flex Code
14829 status collapsed
14830
14831 \begin_layout Plain Layout
14832
14833 \emph on
14834 0
14835 \end_layout
14836
14837 \end_inset
14838
14839 ,
14840 \begin_inset space \thinspace{}
14841 \end_inset
14842
14843
14844 \begin_inset Flex Code
14845 status collapsed
14846
14847 \begin_layout Plain Layout
14848 1
14849 \end_layout
14850
14851 \end_inset
14852
14853 ] If 
14854 \begin_inset Flex Code
14855 status collapsed
14856
14857 \begin_layout Plain Layout
14858 1
14859 \end_layout
14860
14861 \end_inset
14862
14863 , marks the style as being part of a title block (see also the 
14864 \begin_inset Flex Code
14865 status collapsed
14866
14867 \begin_layout Plain Layout
14868 TitleLatexType
14869 \end_layout
14870
14871 \end_inset
14872
14873  and 
14874 \begin_inset Flex Code
14875 status collapsed
14876
14877 \begin_layout Plain Layout
14878 TitleLatexName
14879 \end_layout
14880
14881 \end_inset
14882
14883  global entries).
14884 \end_layout
14885
14886 \begin_layout Description
14887 \begin_inset Flex Code
14888 status collapsed
14889
14890 \begin_layout Plain Layout
14891 IsAutoNestedBy
14892 \end_layout
14893
14894 \end_inset
14895
14896  Includes a comma-separated list of layouts after which this one should
14897  be nested.
14898  Only makes sense with regard to nestable layouts (such as environments).
14899  Must be ended by 
14900 \begin_inset Quotes eld
14901 \end_inset
14902
14903
14904 \begin_inset Flex Code
14905 status collapsed
14906
14907 \begin_layout Plain Layout
14908 EndIsAutoNestedBy
14909 \end_layout
14910
14911 \end_inset
14912
14913
14914 \begin_inset Quotes erd
14915 \end_inset
14916
14917 .
14918  See also 
14919 \begin_inset Flex Code
14920 status collapsed
14921
14922 \begin_layout Plain Layout
14923 AutoNests
14924 \end_layout
14925
14926 \end_inset
14927
14928 .
14929 \end_layout
14930
14931 \begin_layout Description
14932 \begin_inset Flex Code
14933 status collapsed
14934
14935 \begin_layout Plain Layout
14936 IsTocCaption
14937 \end_layout
14938
14939 \end_inset
14940
14941  [
14942 \begin_inset Flex Code
14943 status collapsed
14944
14945 \begin_layout Plain Layout
14946
14947 \emph on
14948 0
14949 \end_layout
14950
14951 \end_inset
14952
14953 ,
14954 \begin_inset space \thinspace{}
14955 \end_inset
14956
14957
14958 \begin_inset Flex Code
14959 status collapsed
14960
14961 \begin_layout Plain Layout
14962 1
14963 \end_layout
14964
14965 \end_inset
14966
14967 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14968  of its contents in its item in the table of contents.
14969  Otherwise, only the label, if it exists, appears.
14970 \end_layout
14971
14972 \begin_layout Description
14973 \begin_inset Flex Code
14974 status collapsed
14975
14976 \begin_layout Plain Layout
14977 ItemCommand
14978 \end_layout
14979
14980 \end_inset
14981
14982  [
14983 \begin_inset Flex Code
14984 status collapsed
14985
14986 \begin_layout Plain Layout
14987 string="item"
14988 \end_layout
14989
14990 \end_inset
14991
14992 ] The \SpecialChar LaTeX
14993  command sequence declaring an item in a list.
14994  The command is to be defined without the preceding backslash (the default
14995  is 
14996 \begin_inset Quotes eld
14997 \end_inset
14998
14999 item
15000 \begin_inset Quotes erd
15001 \end_inset
15002
15003 , resulting in 
15004 \begin_inset Flex Code
15005 status collapsed
15006
15007 \begin_layout Plain Layout
15008
15009 \backslash
15010 item
15011 \end_layout
15012
15013 \end_inset
15014
15015  in the \SpecialChar LaTeX
15016  output).
15017 \end_layout
15018
15019 \begin_layout Description
15020 \begin_inset Flex Code
15021 status collapsed
15022
15023 \begin_layout Plain Layout
15024 ItemSep
15025 \end_layout
15026
15027 \end_inset
15028
15029  [
15030 \begin_inset Flex Code
15031 status collapsed
15032
15033 \begin_layout Plain Layout
15034 float=0
15035 \end_layout
15036
15037 \end_inset
15038
15039 ] This provides extra space between paragraphs that have the same style.
15040  If you put other styles into an environment, each is separated with the
15041  environment's 
15042 \begin_inset Flex Code
15043 status collapsed
15044
15045 \begin_layout Plain Layout
15046 ParSep
15047 \end_layout
15048
15049 \end_inset
15050
15051 .
15052  But the whole items of the environment are additionally separated with
15053  this 
15054 \begin_inset Flex Code
15055 status collapsed
15056
15057 \begin_layout Plain Layout
15058 ItemSep
15059 \end_layout
15060
15061 \end_inset
15062
15063 .
15064  Note that this is a
15065 \emph on
15066  multiplier.
15067 \end_layout
15068
15069 \begin_layout Description
15070 \begin_inset Flex Code
15071 status collapsed
15072
15073 \begin_layout Plain Layout
15074 ItemTag
15075 \end_layout
15076
15077 \end_inset
15078
15079  [FIXME] (Used only with XML-type formats.)
15080 \end_layout
15081
15082 \begin_layout Description
15083 \begin_inset Flex Code
15084 status collapsed
15085
15086 \begin_layout Plain Layout
15087 KeepEmpty
15088 \end_layout
15089
15090 \end_inset
15091
15092  [
15093 \begin_inset Flex Code
15094 status collapsed
15095
15096 \begin_layout Plain Layout
15097
15098 \emph on
15099 0
15100 \end_layout
15101
15102 \end_inset
15103
15104 ,
15105 \begin_inset space \thinspace{}
15106 \end_inset
15107
15108
15109 \begin_inset Flex Code
15110 status collapsed
15111
15112 \begin_layout Plain Layout
15113 1
15114 \end_layout
15115
15116 \end_inset
15117
15118 ] Usually \SpecialChar LyX
15119  does not allow you to leave a paragraph empty, since it would
15120  lead to empty \SpecialChar LaTeX
15121  output.
15122  There are some cases where this could be desirable however: in a letter
15123  template, the required fields can be provided as empty fields, so that
15124  people do not forget them; in some special classes, a style can be used
15125  as some kind of break, which does not contain actual text.
15126 \end_layout
15127
15128 \begin_layout Description
15129 \begin_inset Flex Code
15130 status collapsed
15131
15132 \begin_layout Plain Layout
15133 LabelBottomsep
15134 \end_layout
15135
15136 \end_inset
15137
15138  [
15139 \begin_inset Flex Code
15140 status collapsed
15141
15142 \begin_layout Plain Layout
15143 float=0
15144 \end_layout
15145
15146 \end_inset
15147
15148 ] The vertical space between the label and the text body.
15149  Only used for labels that are above the text body (
15150 \begin_inset Flex Code
15151 status collapsed
15152
15153 \begin_layout Plain Layout
15154 Top_Environment
15155 \end_layout
15156
15157 \end_inset
15158
15159  and
15160 \begin_inset Newline newline
15161 \end_inset
15162
15163
15164 \begin_inset Flex Code
15165 status collapsed
15166
15167 \begin_layout Plain Layout
15168 Centered_Top_Environment
15169 \end_layout
15170
15171 \end_inset
15172
15173 ).
15174 \end_layout
15175
15176 \begin_layout Description
15177 \begin_inset Flex Code
15178 status collapsed
15179
15180 \begin_layout Plain Layout
15181 LabelCounter
15182 \end_layout
15183
15184 \end_inset
15185
15186  [
15187 \begin_inset Flex Code
15188 status collapsed
15189
15190 \begin_layout Plain Layout
15191 string=""
15192 \end_layout
15193
15194 \end_inset
15195
15196 ] The name of the counter for automatic numbering.
15197  In order to have the counter appear with your label, you will need to reference
15198  it in the 
15199 \begin_inset Flex Code
15200 status collapsed
15201
15202 \begin_layout Plain Layout
15203
15204 \family typewriter
15205 LabelString
15206 \end_layout
15207
15208 \end_inset
15209
15210 .
15211  This will work with 
15212 \begin_inset Flex Code
15213 status collapsed
15214
15215 \begin_layout Plain Layout
15216 LabelType
15217 \end_layout
15218
15219 \end_inset
15220
15221 s, 
15222 \begin_inset Flex Code
15223 status collapsed
15224
15225 \begin_layout Plain Layout
15226 Static
15227 \end_layout
15228
15229 \end_inset
15230
15231
15232 \begin_inset Flex Code
15233 status collapsed
15234
15235 \begin_layout Plain Layout
15236 Above
15237 \end_layout
15238
15239 \end_inset
15240
15241  and 
15242 \begin_inset Flex Code
15243 status collapsed
15244
15245 \begin_layout Plain Layout
15246 Centered
15247 \end_layout
15248
15249 \end_inset
15250
15251 , at least.
15252 \begin_inset Newline newline
15253 \end_inset
15254
15255 This 
15256 \emph on
15257 may
15258 \emph default
15259  also be given if 
15260 \begin_inset Flex Code
15261 status collapsed
15262
15263 \begin_layout Plain Layout
15264 LabelType
15265 \end_layout
15266
15267 \end_inset
15268
15269  is 
15270 \begin_inset Flex Code
15271 status collapsed
15272
15273 \begin_layout Plain Layout
15274 Enumerate
15275 \end_layout
15276
15277 \end_inset
15278
15279 , though this case is a bit complicated.
15280  Suppose you declare 
15281 \begin_inset Quotes eld
15282 \end_inset
15283
15284
15285 \begin_inset Flex Code
15286 status collapsed
15287
15288 \begin_layout Plain Layout
15289 LabelCounter myenum
15290 \end_layout
15291
15292 \end_inset
15293
15294
15295 \begin_inset Quotes erd
15296 \end_inset
15297
15298 .
15299  Then the actual counters used are 
15300 \begin_inset Flex Code
15301 status collapsed
15302
15303 \begin_layout Plain Layout
15304 myenumi
15305 \end_layout
15306
15307 \end_inset
15308
15309
15310 \begin_inset Flex Code
15311 status collapsed
15312
15313 \begin_layout Plain Layout
15314 myenumii
15315 \end_layout
15316
15317 \end_inset
15318
15319
15320 \begin_inset Flex Code
15321 status collapsed
15322
15323 \begin_layout Plain Layout
15324 myenumiii
15325 \end_layout
15326
15327 \end_inset
15328
15329  and 
15330 \begin_inset Flex Code
15331 status collapsed
15332
15333 \begin_layout Plain Layout
15334 myenumiv
15335 \end_layout
15336
15337 \end_inset
15338
15339 , much as in \SpecialChar LaTeX
15340 .
15341  These counters must all be declared separately.
15342 \begin_inset Newline newline
15343 \end_inset
15344
15345 See 
15346 \begin_inset CommandInset ref
15347 LatexCommand ref
15348 reference "subsec:Counters"
15349
15350 \end_inset
15351
15352  for details on counters.
15353 \end_layout
15354
15355 \begin_layout Description
15356 \begin_inset Flex Code
15357 status collapsed
15358
15359 \begin_layout Plain Layout
15360 LabelFont
15361 \end_layout
15362
15363 \end_inset
15364
15365  The font used for the label.
15366  See 
15367 \begin_inset CommandInset ref
15368 LatexCommand ref
15369 reference "subsec:Font-description"
15370
15371 \end_inset
15372
15373 .
15374 \end_layout
15375
15376 \begin_layout Description
15377 \begin_inset Flex Code
15378 status collapsed
15379
15380 \begin_layout Plain Layout
15381 LabelIndent
15382 \end_layout
15383
15384 \end_inset
15385
15386  [
15387 \begin_inset Flex Code
15388 status collapsed
15389
15390 \begin_layout Plain Layout
15391 string=""
15392 \end_layout
15393
15394 \end_inset
15395
15396 ] Text that indicates how far a label should be indented.
15397 \end_layout
15398
15399 \begin_layout Description
15400 \begin_inset Flex Code
15401 status collapsed
15402
15403 \begin_layout Plain Layout
15404 LabelSep
15405 \end_layout
15406
15407 \end_inset
15408
15409  [
15410 \begin_inset Flex Code
15411 status collapsed
15412
15413 \begin_layout Plain Layout
15414 string=""
15415 \end_layout
15416
15417 \end_inset
15418
15419 ] Text that indicates the amount of horizontal space between the label and
15420  the text body.
15421  Only used for labels that are not above the text body.
15422 \end_layout
15423
15424 \begin_layout Description
15425 \begin_inset Flex Code
15426 status collapsed
15427
15428 \begin_layout Plain Layout
15429 LabelString
15430 \end_layout
15431
15432 \end_inset
15433
15434  [
15435 \begin_inset Flex Code
15436 status collapsed
15437
15438 \begin_layout Plain Layout
15439 string=""
15440 \end_layout
15441
15442 \end_inset
15443
15444 ] The string used for the label.
15445  When 
15446 \begin_inset Flex Code
15447 status collapsed
15448
15449 \begin_layout Plain Layout
15450 LabelCounter
15451 \end_layout
15452
15453 \end_inset
15454
15455  is set, this string can be contain the special formatting commands described
15456  in 
15457 \begin_inset CommandInset ref
15458 LatexCommand ref
15459 reference "subsec:Counters"
15460
15461 \end_inset
15462
15463 .
15464 \end_layout
15465
15466 \begin_layout Description
15467 \begin_inset Flex Code
15468 status collapsed
15469
15470 \begin_layout Plain Layout
15471 LabelStringAppendix
15472 \end_layout
15473
15474 \end_inset
15475
15476  [
15477 \begin_inset Flex Code
15478 status collapsed
15479
15480 \begin_layout Plain Layout
15481 string=""
15482 \end_layout
15483
15484 \end_inset
15485
15486 ] This is used inside the appendix instead of
15487 \begin_inset Newline newline
15488 \end_inset
15489
15490
15491 \begin_inset Flex Code
15492 status collapsed
15493
15494 \begin_layout Plain Layout
15495 LabelString
15496 \end_layout
15497
15498 \end_inset
15499
15500 .
15501  Note that every 
15502 \begin_inset Flex Code
15503 status collapsed
15504
15505 \begin_layout Plain Layout
15506 LabelString
15507 \end_layout
15508
15509 \end_inset
15510
15511  statement resets
15512 \begin_inset Newline newline
15513 \end_inset
15514
15515
15516 \begin_inset Flex Code
15517 status collapsed
15518
15519 \begin_layout Plain Layout
15520 LabelStringAppendix
15521 \end_layout
15522
15523 \end_inset
15524
15525  too.
15526 \end_layout
15527
15528 \begin_layout Description
15529 \begin_inset Flex Code
15530 status collapsed
15531
15532 \begin_layout Plain Layout
15533 LabelTag
15534 \end_layout
15535
15536 \end_inset
15537
15538  [FIXME] (Used only with XML-type formats.)
15539 \end_layout
15540
15541 \begin_layout Description
15542 \begin_inset Flex Code
15543 status collapsed
15544
15545 \begin_layout Plain Layout
15546 LabelType
15547 \end_layout
15548
15549 \end_inset
15550
15551  [
15552 \begin_inset Flex Code
15553 status collapsed
15554
15555 \begin_layout Plain Layout
15556
15557 \emph on
15558 No_Label
15559 \emph default
15560 , Manual, Static, Above, 
15561 \begin_inset Newline newline
15562 \end_inset
15563
15564 Centered, Sensitive, Enumerate,
15565 \begin_inset Newline newline
15566 \end_inset
15567
15568 Itemize, Bibliography
15569 \end_layout
15570
15571 \end_inset
15572
15573 ]
15574 \end_layout
15575
15576 \begin_deeper
15577 \begin_layout Description
15578 \begin_inset Flex Code
15579 status collapsed
15580
15581 \begin_layout Plain Layout
15582 Manual
15583 \end_layout
15584
15585 \end_inset
15586
15587  means the label is the very first word (up to the first real blank).
15588  Use 
15589 \change_deleted 177693 1654669087
15590 protected
15591 \change_inserted 177693 1654669089
15592 non-breaking
15593 \change_unchanged
15594  spaces if you want more than one word as the label.
15595  
15596 \end_layout
15597
15598 \begin_layout Description
15599 \begin_inset Flex Code
15600 status collapsed
15601
15602 \begin_layout Plain Layout
15603 Static
15604 \end_layout
15605
15606 \end_inset
15607
15608  means the label is simply what is declared as 
15609 \begin_inset Flex Code
15610 status collapsed
15611
15612 \begin_layout Plain Layout
15613 LabelString
15614 \end_layout
15615
15616 \end_inset
15617
15618 .
15619  This will be displayed 
15620 \begin_inset Quotes eld
15621 \end_inset
15622
15623 inline
15624 \begin_inset Quotes erd
15625 \end_inset
15626
15627 , at the beginning of the paragraph.
15628  If the 
15629 \begin_inset Flex Code
15630 status collapsed
15631
15632 \begin_layout Plain Layout
15633 LatexType
15634 \end_layout
15635
15636 \end_inset
15637
15638  is 
15639 \begin_inset Flex Code
15640 status collapsed
15641
15642 \begin_layout Plain Layout
15643 Environment
15644 \end_layout
15645
15646 \end_inset
15647
15648 , then it will be displayed only in the first paragraph of any sequence
15649  of paragraphs with the same 
15650 \begin_inset Flex Code
15651 status collapsed
15652
15653 \begin_layout Plain Layout
15654 Style
15655 \end_layout
15656
15657 \end_inset
15658
15659 .
15660 \end_layout
15661
15662 \begin_layout Description
15663 \begin_inset Flex Code
15664 status collapsed
15665
15666 \begin_layout Plain Layout
15667 Above
15668 \end_layout
15669
15670 \end_inset
15671
15672
15673 \begin_inset space ~
15674 \end_inset
15675
15676 and
15677 \begin_inset space ~
15678 \end_inset
15679
15680
15681 \begin_inset Flex Code
15682 status collapsed
15683
15684 \begin_layout Plain Layout
15685 Centered
15686 \end_layout
15687
15688 \end_inset
15689
15690  are special cases of 
15691 \begin_inset Flex Code
15692 status collapsed
15693
15694 \begin_layout Plain Layout
15695 Static
15696 \end_layout
15697
15698 \end_inset
15699
15700 .
15701  The label will be printed above the paragraph either at the beginning of
15702  the line or centered.
15703 \end_layout
15704
15705 \begin_layout Description
15706 \begin_inset Flex Code
15707 status collapsed
15708
15709 \begin_layout Plain Layout
15710 Sensitive
15711 \end_layout
15712
15713 \end_inset
15714
15715  is a special case for the caption-labels 
15716 \begin_inset Quotes eld
15717 \end_inset
15718
15719 Figure
15720 \begin_inset Quotes erd
15721 \end_inset
15722
15723  and 
15724 \begin_inset Quotes eld
15725 \end_inset
15726
15727 Table
15728 \begin_inset Quotes erd
15729 \end_inset
15730
15731 .
15732 \begin_inset Newline newline
15733 \end_inset
15734
15735
15736 \begin_inset Flex Code
15737 status collapsed
15738
15739 \begin_layout Plain Layout
15740 Sensitive
15741 \end_layout
15742
15743 \end_inset
15744
15745  means the (hardcoded) label string depends on the kind of float: It is
15746  hardcoded to be `FloatType N', where N is the value of the counter associated
15747  with the float.
15748  For the case that a caption is inserted outside of a float the 
15749 \begin_inset Flex Code
15750 status collapsed
15751
15752 \begin_layout Plain Layout
15753 LabelString
15754 \end_layout
15755
15756 \end_inset
15757
15758  will appear as 
15759 \begin_inset Quotes eld
15760 \end_inset
15761
15762 Senseless!
15763 \begin_inset Quotes erd
15764 \end_inset
15765
15766 .
15767 \end_layout
15768
15769 \begin_layout Description
15770 \begin_inset Flex Code
15771 status collapsed
15772
15773 \begin_layout Plain Layout
15774 Enumerate
15775 \end_layout
15776
15777 \end_inset
15778
15779  produces the usual sort of enumeration labels.
15780  The number type needs to be set in the 
15781 \family sans
15782 Counter
15783 \family default
15784 , see 
15785 \begin_inset CommandInset ref
15786 LatexCommand ref
15787 reference "subsec:Counters"
15788
15789 \end_inset
15790
15791 .
15792 \end_layout
15793
15794 \begin_layout Description
15795 \begin_inset Flex Code
15796 status collapsed
15797
15798 \begin_layout Plain Layout
15799 Itemize
15800 \end_layout
15801
15802 \end_inset
15803
15804  produces various bullets at the different levels.
15805  The bullet types displayed can be set via 
15806 \begin_inset Flex Noun
15807 status collapsed
15808
15809 \begin_layout Plain Layout
15810 Document\SpecialChar menuseparator
15811 Settings\SpecialChar menuseparator
15812 Bullets
15813 \end_layout
15814
15815 \end_inset
15816
15817 .
15818 \end_layout
15819
15820 \begin_layout Description
15821 \begin_inset Flex Code
15822 status collapsed
15823
15824 \begin_layout Plain Layout
15825 Bibliography
15826 \end_layout
15827
15828 \end_inset
15829
15830  should be used only with 
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835 LatexType BibEnvironment
15836 \end_layout
15837
15838 \end_inset
15839
15840 .
15841 \end_layout
15842
15843 \end_deeper
15844 \begin_layout Description
15845 \begin_inset Flex Code
15846 status collapsed
15847
15848 \begin_layout Plain Layout
15849 LangPreamble
15850 \end_layout
15851
15852 \end_inset
15853
15854  Note that this will completely override any prior 
15855 \begin_inset Flex Code
15856 status collapsed
15857
15858 \begin_layout Plain Layout
15859 LangPreamble
15860 \end_layout
15861
15862 \end_inset
15863
15864  declaration for this style.
15865  Must end with 
15866 \begin_inset Quotes eld
15867 \end_inset
15868
15869
15870 \begin_inset Flex Code
15871 status collapsed
15872
15873 \begin_layout Plain Layout
15874 EndLangPreamble
15875 \end_layout
15876
15877 \end_inset
15878
15879
15880 \begin_inset Quotes erd
15881 \end_inset
15882
15883 .
15884  See 
15885 \begin_inset CommandInset ref
15886 LatexCommand ref
15887 reference "subsec:I18n"
15888
15889 \end_inset
15890
15891  for details on its use.
15892 \end_layout
15893
15894 \begin_layout Description
15895 \begin_inset Flex Code
15896 status collapsed
15897
15898 \begin_layout Plain Layout
15899 LatexName
15900 \end_layout
15901
15902 \end_inset
15903
15904  [
15905 \begin_inset Flex Code
15906 status collapsed
15907
15908 \begin_layout Plain Layout
15909 <name>
15910 \end_layout
15911
15912 \end_inset
15913
15914 ] The name of the corresponding \SpecialChar LaTeX
15915  stuff.
15916  Either the environment or command name.
15917 \end_layout
15918
15919 \begin_layout Description
15920 \begin_inset Flex Code
15921 status collapsed
15922
15923 \begin_layout Plain Layout
15924 LatexParam
15925 \end_layout
15926
15927 \end_inset
15928
15929  [
15930 \begin_inset Flex Code
15931 status collapsed
15932
15933 \begin_layout Plain Layout
15934 <parameter>
15935 \end_layout
15936
15937 \end_inset
15938
15939 ] An optional parameter for the corresponding 
15940 \begin_inset Flex Code
15941 status collapsed
15942
15943 \begin_layout Plain Layout
15944 LatexName
15945 \end_layout
15946
15947 \end_inset
15948
15949  stuff.
15950  This parameter cannot be changed from within \SpecialChar LyX
15951  (use 
15952 \begin_inset Flex Code
15953 status collapsed
15954
15955 \begin_layout Plain Layout
15956 Argument
15957 \end_layout
15958
15959 \end_inset
15960
15961  for customizable parameters).
15962  This will be output as is after all \SpecialChar LaTeX
15963  
15964 \begin_inset Flex Code
15965 status collapsed
15966
15967 \begin_layout Plain Layout
15968 Argument
15969 \end_layout
15970
15971 \end_inset
15972
15973 s.
15974 \end_layout
15975
15976 \begin_layout Description
15977 \begin_inset Flex Code
15978 status collapsed
15979
15980 \begin_layout Plain Layout
15981 LatexType
15982 \end_layout
15983
15984 \end_inset
15985
15986  [
15987 \begin_inset Flex Code
15988 status collapsed
15989
15990 \begin_layout Plain Layout
15991
15992 \emph on
15993 Paragraph
15994 \emph default
15995 , Command, Environment, Item_Environment,
15996 \begin_inset Newline newline
15997 \end_inset
15998
15999 List_Environment, Bib_Environment
16000 \end_layout
16001
16002 \end_inset
16003
16004 ] How the style should be translated into \SpecialChar LaTeX
16005 .
16006 \begin_inset Foot
16007 status collapsed
16008
16009 \begin_layout Plain Layout
16010 \begin_inset Flex Code
16011 status collapsed
16012
16013 \begin_layout Plain Layout
16014 LatexType
16015 \end_layout
16016
16017 \end_inset
16018
16019  is perhaps a bit misleading, since these rules apply to SGML classes, too.
16020  Visit the SGML class files for specific examples.
16021 \end_layout
16022
16023 \end_inset
16024
16025
16026 \end_layout
16027
16028 \begin_deeper
16029 \begin_layout Description
16030 \begin_inset Flex Code
16031 status collapsed
16032
16033 \begin_layout Plain Layout
16034 Paragraph
16035 \end_layout
16036
16037 \end_inset
16038
16039  means nothing special.
16040 \end_layout
16041
16042 \begin_layout Description
16043 \begin_inset Flex Code
16044 status collapsed
16045
16046 \begin_layout Plain Layout
16047 Command
16048 \end_layout
16049
16050 \end_inset
16051
16052  means 
16053 \begin_inset Flex Code
16054 status collapsed
16055
16056 \begin_layout Plain Layout
16057
16058 \backslash
16059
16060 \emph on
16061 LatexName
16062 \emph default
16063 {\SpecialChar ldots
16064 }
16065 \end_layout
16066
16067 \end_inset
16068
16069 .
16070 \end_layout
16071
16072 \begin_layout Description
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  means 
16083 \begin_inset Flex Code
16084 status collapsed
16085
16086 \begin_layout Plain Layout
16087
16088 \backslash
16089 begin{
16090 \emph on
16091 LatexName
16092 \emph default
16093 }\SpecialChar ldots
16094
16095 \backslash
16096 end{
16097 \emph on
16098 LatexName
16099 \emph default
16100 }
16101 \end_layout
16102
16103 \end_inset
16104
16105 .
16106  
16107 \end_layout
16108
16109 \begin_layout Description
16110 \begin_inset Flex Code
16111 status collapsed
16112
16113 \begin_layout Plain Layout
16114 Item_Environment
16115 \end_layout
16116
16117 \end_inset
16118
16119  is the same as 
16120 \begin_inset Flex Code
16121 status collapsed
16122
16123 \begin_layout Plain Layout
16124 Environment
16125 \end_layout
16126
16127 \end_inset
16128
16129 , except that an 
16130 \begin_inset Flex Code
16131 status collapsed
16132
16133 \begin_layout Plain Layout
16134
16135 \backslash
16136 item
16137 \end_layout
16138
16139 \end_inset
16140
16141  is generated for each paragraph of this environment.
16142  
16143 \end_layout
16144
16145 \begin_layout Description
16146 \begin_inset Flex Code
16147 status collapsed
16148
16149 \begin_layout Plain Layout
16150 List_Environment
16151 \end_layout
16152
16153 \end_inset
16154
16155  is the same as 
16156 \begin_inset Flex Code
16157 status collapsed
16158
16159 \begin_layout Plain Layout
16160 Item_Environment
16161 \end_layout
16162
16163 \end_inset
16164
16165 , except that
16166 \begin_inset Newline newline
16167 \end_inset
16168
16169
16170 \begin_inset Flex Code
16171 status collapsed
16172
16173 \begin_layout Plain Layout
16174 LabelWidthString
16175 \end_layout
16176
16177 \end_inset
16178
16179  is passed as an argument to the environment.
16180 \begin_inset Newline newline
16181 \end_inset
16182
16183
16184 \begin_inset Flex Code
16185 status collapsed
16186
16187 \begin_layout Plain Layout
16188 LabelWidthString
16189 \end_layout
16190
16191 \end_inset
16192
16193  can be defined in the 
16194 \begin_inset Flex Noun
16195 status collapsed
16196
16197 \begin_layout Plain Layout
16198 Edit\SpecialChar menuseparator
16199 Paragraph
16200 \begin_inset space ~
16201 \end_inset
16202
16203 settings
16204 \end_layout
16205
16206 \end_inset
16207
16208  dialog.
16209 \end_layout
16210
16211 \begin_layout Description
16212 \begin_inset Flex Code
16213 status collapsed
16214
16215 \begin_layout Plain Layout
16216 Bib_Environment
16217 \end_layout
16218
16219 \end_inset
16220
16221  is like 
16222 \begin_inset Flex Code
16223 status collapsed
16224
16225 \begin_layout Plain Layout
16226 Environment
16227 \end_layout
16228
16229 \end_inset
16230
16231  but adds the necessary mandatory argument (the longest label) to the begin
16232  statement of the bibliography environment:
16233 \begin_inset Newline newline
16234 \end_inset
16235
16236
16237 \begin_inset Flex Code
16238 status collapsed
16239
16240 \begin_layout Plain Layout
16241
16242 \backslash
16243 begin{thebibliography}{99}
16244 \end_layout
16245
16246 \end_inset
16247
16248 .
16249  It is therefore only useful for bibliography environments.
16250  The default longest label 
16251 \begin_inset Quotes eld
16252 \end_inset
16253
16254 99
16255 \begin_inset Quotes erd
16256 \end_inset
16257
16258  can be changed by the user in the paragraph settings of a bibliography
16259  item.
16260 \end_layout
16261
16262 \begin_layout Standard
16263 Putting the last few things together, the \SpecialChar LaTeX
16264  output will be either: 
16265 \end_layout
16266
16267 \begin_layout LyX-Code
16268
16269 \backslash
16270 LatexName[LatexParam]{\SpecialChar ldots
16271 }
16272 \end_layout
16273
16274 \begin_layout Standard
16275 or: 
16276 \end_layout
16277
16278 \begin_layout LyX-Code
16279
16280 \backslash
16281 begin{LatexName}[LatexParam] \SpecialChar ldots
16282  
16283 \backslash
16284 end{LatexName}.
16285 \end_layout
16286
16287 \begin_layout Standard
16288 depending upon the \SpecialChar LaTeX
16289  type.
16290 \end_layout
16291
16292 \end_deeper
16293 \begin_layout Description
16294 \begin_inset Flex Code
16295 status collapsed
16296
16297 \begin_layout Plain Layout
16298 LeftDelim
16299 \end_layout
16300
16301 \end_inset
16302
16303  [
16304 \begin_inset Flex Code
16305 status collapsed
16306
16307 \begin_layout Plain Layout
16308 string
16309 \end_layout
16310
16311 \end_inset
16312
16313 ] A string that is put at the beginning of the style content.
16314  A line break in the output can be indicated by 
16315 \begin_inset Flex Code
16316 status collapsed
16317
16318 \begin_layout Plain Layout
16319 <br/>
16320 \end_layout
16321
16322 \end_inset
16323
16324 .
16325 \end_layout
16326
16327 \begin_layout Description
16328 \begin_inset Flex Code
16329 status collapsed
16330
16331 \begin_layout Plain Layout
16332 LeftMargin
16333 \end_layout
16334
16335 \end_inset
16336
16337  [
16338 \begin_inset Flex Code
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342 string=""
16343 \end_layout
16344
16345 \end_inset
16346
16347 ] If you put styles into environments, the different 
16348 \begin_inset Flex Code
16349 status collapsed
16350
16351 \begin_layout Plain Layout
16352 LeftMargin
16353 \end_layout
16354
16355 \end_inset
16356
16357  are not simply added, but added with a factor 
16358 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16359 \end_inset
16360
16361 .
16362  Note that this parameter is also used when 
16363 \begin_inset Flex Code
16364 status collapsed
16365
16366 \begin_layout Plain Layout
16367 Margin
16368 \end_layout
16369
16370 \end_inset
16371
16372  is defined as 
16373 \begin_inset Flex Code
16374 status collapsed
16375
16376 \begin_layout Plain Layout
16377 Manual
16378 \end_layout
16379
16380 \end_inset
16381
16382  or 
16383 \begin_inset Flex Code
16384 status collapsed
16385
16386 \begin_layout Plain Layout
16387 Dynamic
16388 \end_layout
16389
16390 \end_inset
16391
16392 .
16393  Then it is added to the manual or dynamic margin.
16394 \begin_inset Newline newline
16395 \end_inset
16396
16397 For example 
16398 \begin_inset Quotes eld
16399 \end_inset
16400
16401
16402 \begin_inset Flex Code
16403 status collapsed
16404
16405 \begin_layout Plain Layout
16406 MM
16407 \end_layout
16408
16409 \end_inset
16410
16411
16412 \begin_inset Quotes erd
16413 \end_inset
16414
16415  means that the paragraph is indented with the width of 
16416 \begin_inset Quotes eld
16417 \end_inset
16418
16419
16420 \begin_inset Flex Code
16421 status collapsed
16422
16423 \begin_layout Plain Layout
16424 MM
16425 \end_layout
16426
16427 \end_inset
16428
16429
16430 \begin_inset Quotes erd
16431 \end_inset
16432
16433  in the normal font.
16434  You can get a negative width by prefixing the string with 
16435 \begin_inset Quotes eld
16436 \end_inset
16437
16438
16439 \begin_inset Flex Code
16440 status collapsed
16441
16442 \begin_layout Plain Layout
16443 -
16444 \end_layout
16445
16446 \end_inset
16447
16448
16449 \begin_inset Quotes erd
16450 \end_inset
16451
16452 .
16453  This way was chosen so that the look is the same with each used screen
16454  font.
16455 \end_layout
16456
16457 \begin_layout Description
16458 \begin_inset Flex Code
16459 status collapsed
16460
16461 \begin_layout Plain Layout
16462 Margin
16463 \end_layout
16464
16465 \end_inset
16466
16467  [
16468 \begin_inset Flex Code
16469 status collapsed
16470
16471 \begin_layout Plain Layout
16472
16473 \emph on
16474 Static
16475 \emph default
16476 , Manual, Dynamic, First_Dynamic, Right_Address_Box
16477 \end_layout
16478
16479 \end_inset
16480
16481
16482 \begin_inset Newline newline
16483 \end_inset
16484
16485 The kind of margin that the style has on the left side.
16486 \end_layout
16487
16488 \begin_deeper
16489 \begin_layout Description
16490 \begin_inset Flex Code
16491 status collapsed
16492
16493 \begin_layout Plain Layout
16494 Static
16495 \end_layout
16496
16497 \end_inset
16498
16499  just means a fixed margin.
16500 \end_layout
16501
16502 \begin_layout Description
16503 \begin_inset Flex Code
16504 status collapsed
16505
16506 \begin_layout Plain Layout
16507 Manual
16508 \end_layout
16509
16510 \end_inset
16511
16512  means that the left margin depends on the string entered in the 
16513 \begin_inset Flex Noun
16514 status collapsed
16515
16516 \begin_layout Plain Layout
16517 Edit\SpecialChar menuseparator
16518 Paragraph
16519 \begin_inset space ~
16520 \end_inset
16521
16522 Settings
16523 \end_layout
16524
16525 \end_inset
16526
16527  dialog.
16528  This is used to typeset nice lists without tabulators.
16529 \end_layout
16530
16531 \begin_layout Description
16532 \begin_inset Flex Code
16533 status collapsed
16534
16535 \begin_layout Plain Layout
16536 Dynamic
16537 \end_layout
16538
16539 \end_inset
16540
16541  means that the margin depends on the size of the label.
16542  This is used for automatic enumerated headlines.
16543  It is obvious that the headline 
16544 \begin_inset Quotes eld
16545 \end_inset
16546
16547 5.4.3.2.1 Very long headline
16548 \begin_inset Quotes erd
16549 \end_inset
16550
16551  must have a wider left margin (as wide as 
16552 \begin_inset Quotes eld
16553 \end_inset
16554
16555 5.4.3.2.1
16556 \begin_inset Quotes erd
16557 \end_inset
16558
16559  plus the space) than 
16560 \begin_inset Quotes eld
16561 \end_inset
16562
16563 3.2 Very long headline
16564 \begin_inset Quotes erd
16565 \end_inset
16566
16567 , even if standard 
16568 \begin_inset Quotes eld
16569 \end_inset
16570
16571 word processors
16572 \begin_inset Quotes erd
16573 \end_inset
16574
16575  are not able to do this.
16576 \end_layout
16577
16578 \begin_layout Description
16579 \begin_inset Flex Code
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583 First_Dynamic
16584 \end_layout
16585
16586 \end_inset
16587
16588  is similar, but only the very first row of the paragraph is dynamic, while
16589  the others are static; this is used, for example, for descriptions.
16590 \end_layout
16591
16592 \begin_layout Description
16593 \begin_inset Flex Code
16594 status collapsed
16595
16596 \begin_layout Plain Layout
16597 Right_Address_Box
16598 \end_layout
16599
16600 \end_inset
16601
16602  means the margin is chosen in a way that the longest row of this paragraph
16603  fits to the right margin.
16604  This is used to typeset an address on the right edge of the page.
16605 \end_layout
16606
16607 \end_deeper
16608 \begin_layout Description
16609 \begin_inset Flex Code
16610 status collapsed
16611
16612 \begin_layout Plain Layout
16613 NeedProtect
16614 \end_layout
16615
16616 \end_inset
16617
16618  [
16619 \begin_inset Flex Code
16620 status collapsed
16621
16622 \begin_layout Plain Layout
16623
16624 \emph on
16625 0
16626 \end_layout
16627
16628 \end_inset
16629
16630 ,
16631 \begin_inset space \thinspace{}
16632 \end_inset
16633
16634
16635 \begin_inset Flex Code
16636 status collapsed
16637
16638 \begin_layout Plain Layout
16639 1
16640 \end_layout
16641
16642 \end_inset
16643
16644 ] Whether fragile commands in this style should be 
16645 \begin_inset Flex Code
16646 status collapsed
16647
16648 \begin_layout Plain Layout
16649
16650 \backslash
16651 protect
16652 \end_layout
16653
16654 \end_inset
16655
16656 'ed.
16657  (Note: This is 
16658 \emph on
16659 not
16660 \emph default
16661  whether this command should itself be protected.)
16662 \change_inserted -712698321 1523696949
16663
16664 \end_layout
16665
16666 \begin_layout Description
16667
16668 \change_inserted -712698321 1552395557
16669 \begin_inset Flex Code
16670 status collapsed
16671
16672 \begin_layout Plain Layout
16673
16674 \change_inserted -712698321 1523696950
16675 NeedCProtect
16676 \change_unchanged
16677
16678 \end_layout
16679
16680 \end_inset
16681
16682  [
16683 \begin_inset Flex Code
16684 status collapsed
16685
16686 \begin_layout Plain Layout
16687
16688 \change_inserted -712698321 1523696950
16689
16690 \emph on
16691 0
16692 \change_unchanged
16693
16694 \end_layout
16695
16696 \end_inset
16697
16698 ,
16699 \begin_inset space \thinspace{}
16700 \end_inset
16701
16702
16703 \begin_inset Flex Code
16704 status collapsed
16705
16706 \begin_layout Plain Layout
16707
16708 \change_inserted -712698321 1523696950
16709 1
16710 \change_unchanged
16711
16712 \end_layout
16713
16714 \end_inset
16715
16716 ] This causes macros that contain this layout to be protected with 
16717 \begin_inset Flex Code
16718 status collapsed
16719
16720 \begin_layout Plain Layout
16721
16722 \change_inserted -712698321 1523696950
16723
16724 \backslash
16725 cprotect
16726 \change_unchanged
16727
16728 \end_layout
16729
16730 \end_inset
16731
16732  (cf.
16733  package 
16734 \family sans
16735 cprotect
16736 \family default
16737 ) if necessary and thus allows (some) verbatim stuff in macros.
16738 \end_layout
16739
16740 \begin_layout Description
16741
16742 \change_inserted -712698321 1552395844
16743 \begin_inset Flex Code
16744 status collapsed
16745
16746 \begin_layout Plain Layout
16747
16748 \change_inserted -712698321 1552395561
16749 NeedMBoxProtect
16750 \change_unchanged
16751
16752 \end_layout
16753
16754 \end_inset
16755
16756  [
16757 \begin_inset Flex Code
16758 status collapsed
16759
16760 \begin_layout Plain Layout
16761
16762 \change_inserted -712698321 1552395557
16763
16764 \emph on
16765 0
16766 \change_unchanged
16767
16768 \end_layout
16769
16770 \end_inset
16771
16772 ,
16773 \begin_inset space \thinspace{}
16774 \end_inset
16775
16776
16777 \begin_inset Flex Code
16778 status collapsed
16779
16780 \begin_layout Plain Layout
16781
16782 \change_inserted -712698321 1552395557
16783 1
16784 \change_unchanged
16785
16786 \end_layout
16787
16788 \end_inset
16789
16790 ] Whether specific commands in this style (such as 
16791 \begin_inset Flex Code
16792 status collapsed
16793
16794 \begin_layout Plain Layout
16795
16796 \change_inserted -712698321 1552395655
16797
16798 \backslash
16799 cite
16800 \change_unchanged
16801
16802 \end_layout
16803
16804 \end_inset
16805
16806  and 
16807 \begin_inset Flex Code
16808 status collapsed
16809
16810 \begin_layout Plain Layout
16811
16812 \change_inserted -712698321 1552395661
16813
16814 \backslash
16815 ref
16816 \change_unchanged
16817
16818 \end_layout
16819
16820 \end_inset
16821
16822 ) should be protected in an 
16823 \begin_inset Flex Code
16824 status collapsed
16825
16826 \begin_layout Plain Layout
16827
16828 \change_inserted -712698321 1552395631
16829
16830 \backslash
16831 mbox
16832 \change_unchanged
16833
16834 \end_layout
16835
16836 \end_inset
16837
16838 .
16839  This is particularly needed for styles that draw on 
16840 \family sans
16841 ulem
16842 \family default
16843  or 
16844 \family sans
16845 soul
16846 \family default
16847  commands which parse their content in complex ways.
16848 \change_unchanged
16849
16850 \end_layout
16851
16852 \begin_layout Description
16853 \begin_inset Flex Code
16854 status collapsed
16855
16856 \begin_layout Plain Layout
16857 Newline
16858 \end_layout
16859
16860 \end_inset
16861
16862  [
16863 \begin_inset Flex Code
16864 status collapsed
16865
16866 \begin_layout Plain Layout
16867 0
16868 \end_layout
16869
16870 \end_inset
16871
16872 ,
16873 \begin_inset space \thinspace{}
16874 \end_inset
16875
16876
16877 \begin_inset Flex Code
16878 status collapsed
16879
16880 \begin_layout Plain Layout
16881
16882 \emph on
16883 1
16884 \end_layout
16885
16886 \end_inset
16887
16888 ] Whether newlines are translated into \SpecialChar LaTeX
16889  newlines (
16890 \begin_inset Flex Code
16891 status collapsed
16892
16893 \begin_layout Plain Layout
16894
16895 \backslash
16896
16897 \backslash
16898
16899 \end_layout
16900
16901 \end_inset
16902
16903 ) or not.
16904  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16905  editing
16906  inside \SpecialChar LyX
16907 .
16908 \end_layout
16909
16910 \begin_layout Description
16911 \begin_inset Flex Code
16912 status collapsed
16913
16914 \begin_layout Plain Layout
16915 NextNoIndent
16916 \end_layout
16917
16918 \end_inset
16919
16920  [
16921 \begin_inset Flex Code
16922 status collapsed
16923
16924 \begin_layout Plain Layout
16925
16926 \emph on
16927 0
16928 \end_layout
16929
16930 \end_inset
16931
16932 ,
16933 \begin_inset space \thinspace{}
16934 \end_inset
16935
16936
16937 \begin_inset Flex Code
16938 status collapsed
16939
16940 \begin_layout Plain Layout
16941 1
16942 \end_layout
16943
16944 \end_inset
16945
16946 ] If set to true, and if 
16947 \begin_inset Flex Code
16948 status collapsed
16949
16950 \begin_layout Plain Layout
16951 DefaultStyle
16952 \end_layout
16953
16954 \end_inset
16955
16956  (usually 
16957 \begin_inset Flex Code
16958 status collapsed
16959
16960 \begin_layout Plain Layout
16961 Standard
16962 \end_layout
16963
16964 \end_inset
16965
16966 ) paragraphs are being indented, then the indentation of such a paragraph
16967  following one of this type will be suppressed.
16968  (So this will not affect the display of non-default paragraphs.)
16969 \end_layout
16970
16971 \begin_layout Description
16972 \begin_inset Flex Code
16973 status collapsed
16974
16975 \begin_layout Plain Layout
16976 ObsoletedBy
16977 \end_layout
16978
16979 \end_inset
16980
16981  [
16982 \begin_inset Flex Code
16983 status collapsed
16984
16985 \begin_layout Plain Layout
16986 <name>
16987 \end_layout
16988
16989 \end_inset
16990
16991 ] Name of a style that has replaced this style.
16992  This is used to rename a style, while keeping backward compatibility.
16993 \end_layout
16994
16995 \begin_layout Description
16996 \begin_inset Flex Code
16997 status collapsed
16998
16999 \begin_layout Plain Layout
17000 ParagraphGroup
17001 \end_layout
17002
17003 \end_inset
17004
17005  [
17006 \begin_inset Flex Code
17007 status collapsed
17008
17009 \begin_layout Plain Layout
17010 0
17011 \end_layout
17012
17013 \end_inset
17014
17015 ,
17016 \begin_inset space \thinspace{}
17017 \end_inset
17018
17019
17020 \begin_inset Flex Code
17021 status collapsed
17022
17023 \begin_layout Plain Layout
17024 1
17025 \end_layout
17026
17027 \end_inset
17028
17029 ] Determines whether consecutive paragraphs of the same type are treated
17030  as belonging together.
17031  This has the effect that the 
17032 \begin_inset Flex Code
17033 status collapsed
17034
17035 \begin_layout Plain Layout
17036 GuiLabel
17037 \end_layout
17038
17039 \end_inset
17040
17041  is only printed once before such a group.
17042  By default, this is true for 
17043 \begin_inset Flex Code
17044 status collapsed
17045
17046 \begin_layout Plain Layout
17047 LaTeXType
17048 \end_layout
17049
17050 \end_inset
17051
17052  
17053 \begin_inset Flex Code
17054 status collapsed
17055
17056 \begin_layout Plain Layout
17057 Environment
17058 \end_layout
17059
17060 \end_inset
17061
17062  and 
17063 \begin_inset Flex Code
17064 status collapsed
17065
17066 \begin_layout Plain Layout
17067 Bib_Environment
17068 \end_layout
17069
17070 \end_inset
17071
17072  and false for all other types.
17073 \end_layout
17074
17075 \begin_layout Description
17076 \begin_inset Flex Code
17077 status collapsed
17078
17079 \begin_layout Plain Layout
17080 ParbreakIsNewline
17081 \end_layout
17082
17083 \end_inset
17084
17085  [
17086 \begin_inset Flex Code
17087 status collapsed
17088
17089 \begin_layout Plain Layout
17090
17091 \emph on
17092 0
17093 \end_layout
17094
17095 \end_inset
17096
17097 ,
17098 \begin_inset space \thinspace{}
17099 \end_inset
17100
17101
17102 \begin_inset Flex Code
17103 status collapsed
17104
17105 \begin_layout Plain Layout
17106 1
17107 \end_layout
17108
17109 \end_inset
17110
17111 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
17112  output,
17113  but only by a line break; together with 
17114 \begin_inset Flex Code
17115 status collapsed
17116
17117 \begin_layout Plain Layout
17118 PassThru 1
17119 \end_layout
17120
17121 \end_inset
17122
17123 , this allows to emulate a plain text editor (like the ERT inset).
17124 \end_layout
17125
17126 \begin_layout Description
17127 \begin_inset Flex Code
17128 status collapsed
17129
17130 \begin_layout Plain Layout
17131 ParIndent
17132 \end_layout
17133
17134 \end_inset
17135
17136  [
17137 \begin_inset Flex Code
17138 status collapsed
17139
17140 \begin_layout Plain Layout
17141 string=""
17142 \end_layout
17143
17144 \end_inset
17145
17146 ] The indent of the very first line of a paragraph.
17147  The
17148 \begin_inset Newline newline
17149 \end_inset
17150
17151
17152 \begin_inset Flex Code
17153 status collapsed
17154
17155 \begin_layout Plain Layout
17156 Parindent
17157 \end_layout
17158
17159 \end_inset
17160
17161  will be fixed for a certain style.
17162  The exception is the default style, since the indentation for these paragraphs
17163  can be prohibited with 
17164 \begin_inset Flex Code
17165 status collapsed
17166
17167 \begin_layout Plain Layout
17168 NextNoIndent
17169 \end_layout
17170
17171 \end_inset
17172
17173 .
17174  Also, 
17175 \begin_inset Flex Code
17176 status collapsed
17177
17178 \begin_layout Plain Layout
17179 Standard
17180 \end_layout
17181
17182 \end_inset
17183
17184  style paragraphs inside environments use the 
17185 \begin_inset Flex Code
17186 status collapsed
17187
17188 \begin_layout Plain Layout
17189 Parindent
17190 \end_layout
17191
17192 \end_inset
17193
17194  of the environment, not their native one.
17195  For example, 
17196 \begin_inset Flex Code
17197 status collapsed
17198
17199 \begin_layout Plain Layout
17200 Standard
17201 \end_layout
17202
17203 \end_inset
17204
17205  paragraphs inside an enumeration are not indented.
17206 \end_layout
17207
17208 \begin_layout Description
17209 \begin_inset Flex Code
17210 status collapsed
17211
17212 \begin_layout Plain Layout
17213 ParSep
17214 \end_layout
17215
17216 \end_inset
17217
17218  [
17219 \begin_inset Flex Code
17220 status collapsed
17221
17222 \begin_layout Plain Layout
17223 float=0
17224 \end_layout
17225
17226 \end_inset
17227
17228 ] The vertical space between two paragraphs of this style.
17229 \end_layout
17230
17231 \begin_layout Description
17232 \begin_inset Flex Code
17233 status collapsed
17234
17235 \begin_layout Plain Layout
17236 Parskip
17237 \end_layout
17238
17239 \end_inset
17240
17241  [
17242 \begin_inset Flex Code
17243 status collapsed
17244
17245 \begin_layout Plain Layout
17246 float=0
17247 \end_layout
17248
17249 \end_inset
17250
17251 ] \SpecialChar LyX
17252  allows the user to choose either 
17253 \begin_inset Quotes eld
17254 \end_inset
17255
17256 indent
17257 \begin_inset Quotes erd
17258 \end_inset
17259
17260  or 
17261 \begin_inset Quotes eld
17262 \end_inset
17263
17264 skip
17265 \begin_inset Quotes erd
17266 \end_inset
17267
17268  to separate paragraphs.
17269  When 
17270 \begin_inset Quotes eld
17271 \end_inset
17272
17273 indent
17274 \begin_inset Quotes erd
17275 \end_inset
17276
17277  is chosen, 
17278 \begin_inset Flex Code
17279 status collapsed
17280
17281 \begin_layout Plain Layout
17282 Parskip
17283 \end_layout
17284
17285 \end_inset
17286
17287  is ignored.
17288  When 
17289 \begin_inset Quotes eld
17290 \end_inset
17291
17292 skip
17293 \begin_inset Quotes erd
17294 \end_inset
17295
17296  is chosen, 
17297 \begin_inset Flex Code
17298 status collapsed
17299
17300 \begin_layout Plain Layout
17301 ParIndent
17302 \end_layout
17303
17304 \end_inset
17305
17306  is ignored and all paragraphs are separated by the 
17307 \begin_inset Flex Code
17308 status collapsed
17309
17310 \begin_layout Plain Layout
17311 Parskip
17312 \end_layout
17313
17314 \end_inset
17315
17316  argument.
17317  The vertical space is calculated with 
17318 \begin_inset Flex Code
17319 status collapsed
17320
17321 \begin_layout Plain Layout
17322 Parskip
17323 \begin_inset space ~
17324 \end_inset
17325
17326 * DefaultHeight
17327 \end_layout
17328
17329 \end_inset
17330
17331  where 
17332 \begin_inset Flex Code
17333 status collapsed
17334
17335 \begin_layout Plain Layout
17336 DefaultHeight
17337 \end_layout
17338
17339 \end_inset
17340
17341  is the height of a row with the normal font.
17342  This way, the look stays the same with different screen fonts.
17343 \end_layout
17344
17345 \begin_layout Description
17346 \begin_inset Flex Code
17347 status collapsed
17348
17349 \begin_layout Plain Layout
17350 PassThru
17351 \end_layout
17352
17353 \end_inset
17354
17355  [
17356 \begin_inset Flex Code
17357 status collapsed
17358
17359 \begin_layout Plain Layout
17360
17361 \emph on
17362 0
17363 \end_layout
17364
17365 \end_inset
17366
17367 ,
17368 \begin_inset space \thinspace{}
17369 \end_inset
17370
17371
17372 \begin_inset Flex Code
17373 status collapsed
17374
17375 \begin_layout Plain Layout
17376 1
17377 \end_layout
17378
17379 \end_inset
17380
17381 ] Whether the contents of this paragraph should be output in raw form, meaning
17382  without special translations that \SpecialChar LaTeX
17383  would require.
17384 \end_layout
17385
17386 \begin_layout Description
17387 \begin_inset Flex Code
17388 status collapsed
17389
17390 \begin_layout Plain Layout
17391 PassThruChars
17392 \end_layout
17393
17394 \end_inset
17395
17396  [
17397 \begin_inset Flex Code
17398 status collapsed
17399
17400 \begin_layout Plain Layout
17401 string
17402 \end_layout
17403
17404 \end_inset
17405
17406 ]
17407 \family typewriter
17408  
17409 \family default
17410 Defines individual characters that should be output in raw form, meaning
17411  without special translations that \SpecialChar LaTeX
17412  would require.
17413 \end_layout
17414
17415 \begin_layout Description
17416 \begin_inset Flex Code
17417 status collapsed
17418
17419 \begin_layout Plain Layout
17420 Preamble
17421 \end_layout
17422
17423 \end_inset
17424
17425  Information to be included in the \SpecialChar LaTeX
17426  preamble when this style is used.
17427  Used to define macros, load packages, etc., required by this particular
17428  style.
17429  Must end with 
17430 \begin_inset Quotes eld
17431 \end_inset
17432
17433
17434 \begin_inset Flex Code
17435 status collapsed
17436
17437 \begin_layout Plain Layout
17438 EndPreamble
17439 \end_layout
17440
17441 \end_inset
17442
17443
17444 \begin_inset Quotes erd
17445 \end_inset
17446
17447 .
17448 \end_layout
17449
17450 \begin_layout Description
17451 \begin_inset Flex Code
17452 status collapsed
17453
17454 \begin_layout Plain Layout
17455 RefPrefix
17456 \end_layout
17457
17458 \end_inset
17459
17460  [
17461 \begin_inset Flex Code
17462 status collapsed
17463
17464 \begin_layout Plain Layout
17465 string
17466 \end_layout
17467
17468 \end_inset
17469
17470 ] The prefix to use when creating labels referring to paragraphs of this
17471  type.
17472  This allows the use of formatted references.
17473 \end_layout
17474
17475 \begin_layout Description
17476 \begin_inset Flex Code
17477 status collapsed
17478
17479 \begin_layout Plain Layout
17480 Requires 
17481 \end_layout
17482
17483 \end_inset
17484
17485  [
17486 \begin_inset Flex Code
17487 status collapsed
17488
17489 \begin_layout Plain Layout
17490 string
17491 \end_layout
17492
17493 \end_inset
17494
17495 ] Whether the style requires the feature 
17496 \begin_inset Flex Code
17497 status collapsed
17498
17499 \begin_layout Plain Layout
17500 string
17501 \end_layout
17502
17503 \end_inset
17504
17505  (see 
17506 \begin_inset CommandInset ref
17507 LatexCommand ref
17508 reference "chap:List-of-functions"
17509
17510 \end_inset
17511
17512  for the list of features).
17513  If you require a package with specific options, you can additionally use
17514  
17515 \begin_inset Flex Code
17516 status collapsed
17517
17518 \begin_layout Plain Layout
17519 PackageOptions
17520 \end_layout
17521
17522 \end_inset
17523
17524  as a general text class parameter (see 
17525 \begin_inset CommandInset ref
17526 LatexCommand ref
17527 reference "subsec:General-text-class"
17528
17529 \end_inset
17530
17531 ).
17532 \end_layout
17533
17534 \begin_layout Description
17535 \begin_inset Flex Code
17536 status collapsed
17537
17538 \begin_layout Plain Layout
17539 ResetArgs
17540 \end_layout
17541
17542 \end_inset
17543
17544  [
17545 \begin_inset Flex Code
17546 status collapsed
17547
17548 \begin_layout Plain Layout
17549
17550 \emph on
17551 0
17552 \end_layout
17553
17554 \end_inset
17555
17556 ,
17557 \begin_inset Flex Code
17558 status collapsed
17559
17560 \begin_layout Plain Layout
17561 1
17562 \end_layout
17563
17564 \end_inset
17565
17566 ] Resets the \SpecialChar LaTeX
17567  arguments of this style (as defined via the 
17568 \begin_inset Flex Code
17569 status collapsed
17570
17571 \begin_layout Plain Layout
17572 Argument
17573 \end_layout
17574
17575 \end_inset
17576
17577  tag).
17578  This is useful if you have copied a style via 
17579 \begin_inset Flex Code
17580 status collapsed
17581
17582 \begin_layout Plain Layout
17583 CopyStyle
17584 \end_layout
17585
17586 \end_inset
17587
17588 , but you do not want to inherit its (required and optional) arguments.
17589 \end_layout
17590
17591 \begin_layout Description
17592 \begin_inset Flex Code
17593 status collapsed
17594
17595 \begin_layout Plain Layout
17596 ResumeCounter
17597 \end_layout
17598
17599 \end_inset
17600
17601  [
17602 \begin_inset Flex Code
17603 status collapsed
17604
17605 \begin_layout Plain Layout
17606
17607 \emph on
17608 0
17609 \end_layout
17610
17611 \end_inset
17612
17613 ,
17614 \begin_inset Flex Code
17615 status collapsed
17616
17617 \begin_layout Plain Layout
17618 1
17619 \end_layout
17620
17621 \end_inset
17622
17623 ] Resumes a counter that is usually reset at each new sequence of layouts.
17624  This is currently only useful when 
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629 LabelType
17630 \end_layout
17631
17632 \end_inset
17633
17634  is 
17635 \begin_inset Flex Code
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639 Enumerate
17640 \end_layout
17641
17642 \end_inset
17643
17644 .
17645 \end_layout
17646
17647 \begin_layout Description
17648 \begin_inset Flex Code
17649 status collapsed
17650
17651 \begin_layout Plain Layout
17652 RightDelim
17653 \end_layout
17654
17655 \end_inset
17656
17657  [
17658 \begin_inset Flex Code
17659 status collapsed
17660
17661 \begin_layout Plain Layout
17662 string
17663 \end_layout
17664
17665 \end_inset
17666
17667 ] A string that is put at the end of the layout content.
17668  A line break in the output can be indicated by 
17669 \begin_inset Flex Code
17670 status collapsed
17671
17672 \begin_layout Plain Layout
17673 <br/>
17674 \end_layout
17675
17676 \end_inset
17677
17678 .
17679 \end_layout
17680
17681 \begin_layout Description
17682 \begin_inset Flex Code
17683 status collapsed
17684
17685 \begin_layout Plain Layout
17686 RightMargin
17687 \end_layout
17688
17689 \end_inset
17690
17691  [
17692 \begin_inset Flex Code
17693 status collapsed
17694
17695 \begin_layout Plain Layout
17696 string=""
17697 \end_layout
17698
17699 \end_inset
17700
17701 ] Similar to 
17702 \begin_inset Flex Code
17703 status collapsed
17704
17705 \begin_layout Plain Layout
17706 LeftMargin
17707 \end_layout
17708
17709 \end_inset
17710
17711 .
17712 \end_layout
17713
17714 \begin_layout Description
17715 \begin_inset Flex Code
17716 status collapsed
17717
17718 \begin_layout Plain Layout
17719 Spacing
17720 \end_layout
17721
17722 \end_inset
17723
17724  [
17725 \begin_inset Flex Code
17726 status collapsed
17727
17728 \begin_layout Plain Layout
17729
17730 \emph on
17731 single
17732 \end_layout
17733
17734 \end_inset
17735
17736
17737 \begin_inset Flex Code
17738 status collapsed
17739
17740 \begin_layout Plain Layout
17741 onehalf
17742 \end_layout
17743
17744 \end_inset
17745
17746
17747 \begin_inset Flex Code
17748 status collapsed
17749
17750 \begin_layout Plain Layout
17751 double
17752 \end_layout
17753
17754 \end_inset
17755
17756
17757 \begin_inset Flex Code
17758 status collapsed
17759
17760 \begin_layout Plain Layout
17761 other
17762 \begin_inset space ~
17763 \end_inset
17764
17765 <value>
17766 \end_layout
17767
17768 \end_inset
17769
17770 ] This defines what the default spacing should be in the style.
17771  The arguments 
17772 \begin_inset Flex Code
17773 status collapsed
17774
17775 \begin_layout Plain Layout
17776 single
17777 \end_layout
17778
17779 \end_inset
17780
17781
17782 \begin_inset Flex Code
17783 status collapsed
17784
17785 \begin_layout Plain Layout
17786 onehalf
17787 \end_layout
17788
17789 \end_inset
17790
17791  and 
17792 \begin_inset Flex Code
17793 status collapsed
17794
17795 \begin_layout Plain Layout
17796 double
17797 \end_layout
17798
17799 \end_inset
17800
17801  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17802  If you specify the argument 
17803 \begin_inset Flex Code
17804 status collapsed
17805
17806 \begin_layout Plain Layout
17807 other
17808 \end_layout
17809
17810 \end_inset
17811
17812 , then you must also provide a value argument which will be the actual multiplie
17813 r value.
17814  Note that, contrary to other parameters, 
17815 \begin_inset Flex Code
17816 status collapsed
17817
17818 \begin_layout Plain Layout
17819 Spacing
17820 \end_layout
17821
17822 \end_inset
17823
17824  implies the generation of specific \SpecialChar LaTeX
17825  code, using the \SpecialChar LaTeX
17826  package 
17827 \family roman
17828
17829 \begin_inset Flex Code
17830 status collapsed
17831
17832 \begin_layout Plain Layout
17833 setspace
17834 \end_layout
17835
17836 \end_inset
17837
17838 .
17839 \end_layout
17840
17841 \begin_layout Description
17842 \begin_inset Flex Code
17843 status collapsed
17844
17845 \begin_layout Plain Layout
17846 Spellcheck
17847 \end_layout
17848
17849 \end_inset
17850
17851  [
17852 \begin_inset Flex Code
17853 status collapsed
17854
17855 \begin_layout Plain Layout
17856 0
17857 \end_layout
17858
17859 \end_inset
17860
17861 ,
17862 \begin_inset space \thinspace{}
17863 \end_inset
17864
17865
17866 \begin_inset Flex Code
17867 status collapsed
17868
17869 \begin_layout Plain Layout
17870
17871 \emph on
17872 1
17873 \end_layout
17874
17875 \end_inset
17876
17877 ] Allow spell-checking paragraphs of this style.
17878  Default is true.
17879 \end_layout
17880
17881 \begin_layout Description
17882 \begin_inset Flex Code
17883 status collapsed
17884
17885 \begin_layout Plain Layout
17886 Step
17887 \change_deleted 731793113 1604355211
17888 Master
17889 \change_inserted 731793113 1604355212
17890 Parent
17891 \change_unchanged
17892 Counter
17893 \end_layout
17894
17895 \end_inset
17896
17897  [
17898 \begin_inset Flex Code
17899 status collapsed
17900
17901 \begin_layout Plain Layout
17902
17903 \emph on
17904 0
17905 \end_layout
17906
17907 \end_inset
17908
17909 ,
17910 \begin_inset Flex Code
17911 status collapsed
17912
17913 \begin_layout Plain Layout
17914 1
17915 \end_layout
17916
17917 \end_inset
17918
17919 ] Steps the 
17920 \change_deleted 731793113 1604355214
17921 master
17922 \change_inserted 731793113 1604355216
17923 parent
17924 \change_unchanged
17925  counter of a given counter at the beginning of a new sequence of layouts.
17926  This is currently only useful when 
17927 \begin_inset Flex Code
17928 status collapsed
17929
17930 \begin_layout Plain Layout
17931 LabelType
17932 \end_layout
17933
17934 \end_inset
17935
17936  is 
17937 \begin_inset Flex Code
17938 status collapsed
17939
17940 \begin_layout Plain Layout
17941 Enumerate
17942 \end_layout
17943
17944 \end_inset
17945
17946 .
17947 \end_layout
17948
17949 \begin_layout Description
17950 \begin_inset Flex Code
17951 status collapsed
17952
17953 \begin_layout Plain Layout
17954 TextFont
17955 \end_layout
17956
17957 \end_inset
17958
17959  The font used for the text body .
17960  See 
17961 \begin_inset CommandInset ref
17962 LatexCommand ref
17963 reference "subsec:Font-description"
17964
17965 \end_inset
17966
17967 .
17968 \end_layout
17969
17970 \begin_layout Description
17971 \begin_inset Flex Code
17972 status collapsed
17973
17974 \begin_layout Plain Layout
17975 TocLevel
17976 \end_layout
17977
17978 \end_inset
17979
17980
17981 \series medium
17982  [
17983 \begin_inset Flex Code
17984 status collapsed
17985
17986 \begin_layout Plain Layout
17987
17988 \series medium
17989 int=3
17990 \end_layout
17991
17992 \end_inset
17993
17994 ]
17995 \series default
17996  The level of the style in the table of contents.
17997  This is used for automatic numbering of section headings.
17998 \end_layout
17999
18000 \begin_layout Description
18001 \begin_inset Flex Code
18002 status collapsed
18003
18004 \begin_layout Plain Layout
18005 ToggleIndent
18006 \end_layout
18007
18008 \end_inset
18009
18010  [
18011 \emph on
18012
18013 \begin_inset Flex Code
18014 status collapsed
18015
18016 \begin_layout Plain Layout
18017
18018 \emph on
18019 default
18020 \end_layout
18021
18022 \end_inset
18023
18024
18025 \emph default
18026
18027 \begin_inset Flex Code
18028 status collapsed
18029
18030 \begin_layout Plain Layout
18031 always
18032 \end_layout
18033
18034 \end_inset
18035
18036
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 ] This tag determines whether the first line indentation of this paragraph
18047  can be toggled via the Paragraph settings dialog.
18048  If 
18049 \emph on
18050
18051 \begin_inset Flex Code
18052 status collapsed
18053
18054 \begin_layout Plain Layout
18055
18056 \emph off
18057 default
18058 \end_layout
18059
18060 \end_inset
18061
18062
18063 \emph default
18064  is set, indentation can be toggled if the document settings use 
18065 \begin_inset Quotes eld
18066 \end_inset
18067
18068 indent
18069 \begin_inset Quotes erd
18070 \end_inset
18071
18072  paragraph style, with 
18073 \begin_inset Flex Code
18074 status collapsed
18075
18076 \begin_layout Plain Layout
18077 always
18078 \end_layout
18079
18080 \end_inset
18081
18082 , indentation can always be toggled, notwithstanding the document settings,
18083  with 
18084 \begin_inset Flex Code
18085 status collapsed
18086
18087 \begin_layout Plain Layout
18088 never
18089 \end_layout
18090
18091 \end_inset
18092
18093 , indentation can never be toggled.
18094 \end_layout
18095
18096 \begin_layout Description
18097 \begin_inset Flex Code
18098 status collapsed
18099
18100 \begin_layout Plain Layout
18101 TopSep
18102 \end_layout
18103
18104 \end_inset
18105
18106  [
18107 \begin_inset Flex Code
18108 status collapsed
18109
18110 \begin_layout Plain Layout
18111 float=0
18112 \end_layout
18113
18114 \end_inset
18115
18116 ] The vertical space with which the very first of a chain of paragraphs
18117  with this style is separated from the previous paragraph.
18118  If the previous paragraph has another style, the separations are not simply
18119  added, but the maximum is taken.
18120 \end_layout
18121
18122 \begin_layout Subsection
18123 \begin_inset CommandInset label
18124 LatexCommand label
18125 name "subsec:I18n"
18126
18127 \end_inset
18128
18129 Internationalization of Paragraph Styles
18130 \end_layout
18131
18132 \begin_layout Standard
18133 \SpecialChar LyX
18134  has long supported internationalization of layout information, but, until
18135  version 2.0, this applied only to the user interface and not to, say, PDF
18136  output.
18137  Thus, French authors were forced to resort to ugly hacks if they wanted
18138  `
18139 \lang french
18140 Théorème
18141 \lang english
18142  1' instead of `Theorem 1'.
18143  Thanks to Georg Baum, that is no longer the case.
18144 \end_layout
18145
18146 \begin_layout Standard
18147 If a 
18148 \begin_inset Flex Code
18149 status collapsed
18150
18151 \begin_layout Plain Layout
18152 Style
18153 \end_layout
18154
18155 \end_inset
18156
18157  defines text that is to appear in the typeset document, it may use 
18158 \begin_inset Flex Code
18159 status collapsed
18160
18161 \begin_layout Plain Layout
18162 LangPreamble
18163 \end_layout
18164
18165 \end_inset
18166
18167  and 
18168 \begin_inset Flex Code
18169 status collapsed
18170
18171 \begin_layout Plain Layout
18172 BabelPreamble
18173 \end_layout
18174
18175 \end_inset
18176
18177  to support non-English and even multi-language documents correctly.
18178  The following excerpt (from the 
18179 \begin_inset Flex Code
18180 status collapsed
18181
18182 \begin_layout Plain Layout
18183 theorems-ams.inc
18184 \end_layout
18185
18186 \end_inset
18187
18188  file) shows how this works:
18189 \end_layout
18190
18191 \begin_layout LyX-Code
18192 Preamble
18193 \end_layout
18194
18195 \begin_deeper
18196 \begin_layout LyX-Code
18197   
18198 \backslash
18199 theoremstyle{remark}
18200 \end_layout
18201
18202 \begin_layout LyX-Code
18203   
18204 \backslash
18205 newtheorem{claim}[thm]{
18206 \backslash
18207 protect
18208 \backslash
18209 claimname}
18210 \end_layout
18211
18212 \begin_layout LyX-Code
18213 EndPreamble
18214 \end_layout
18215
18216 \begin_layout LyX-Code
18217 LangPreamble
18218 \end_layout
18219
18220 \begin_layout LyX-Code
18221   
18222 \backslash
18223 providecommand{
18224 \backslash
18225 claimname}{_(Claim)}
18226 \end_layout
18227
18228 \begin_layout LyX-Code
18229 EndLangPreamble
18230 \end_layout
18231
18232 \begin_layout LyX-Code
18233 BabelPreamble
18234 \end_layout
18235
18236 \begin_layout LyX-Code
18237     
18238 \backslash
18239 addto
18240 \backslash
18241 captions$$lang{
18242 \backslash
18243 renewcommand{
18244 \backslash
18245 claimname}{_(Claim)}}
18246 \end_layout
18247
18248 \begin_layout LyX-Code
18249 EndBabelPreamble
18250 \end_layout
18251
18252 \end_deeper
18253 \begin_layout Standard
18254 In principle, any legal \SpecialChar LaTeX
18255  may appear in the 
18256 \begin_inset Flex Code
18257 status collapsed
18258
18259 \begin_layout Plain Layout
18260 LangPreamble
18261 \end_layout
18262
18263 \end_inset
18264
18265  and 
18266 \begin_inset Flex Code
18267 status collapsed
18268
18269 \begin_layout Plain Layout
18270 BabelPreamble
18271 \end_layout
18272
18273 \end_inset
18274
18275  tags, but in practice they will typically look as they do here.
18276  The key to correct translation of the typeset text is the definition of
18277  the \SpecialChar LaTeX
18278  command 
18279 \begin_inset Flex Code
18280 status collapsed
18281
18282 \begin_layout Plain Layout
18283
18284 \backslash
18285 claimname
18286 \end_layout
18287
18288 \end_inset
18289
18290  and its use in 
18291 \begin_inset Flex Code
18292 status collapsed
18293
18294 \begin_layout Plain Layout
18295
18296 \backslash
18297 newtheorem
18298 \end_layout
18299
18300 \end_inset
18301
18302 .
18303  
18304 \end_layout
18305
18306 \begin_layout Standard
18307 The 
18308 \begin_inset Flex Code
18309 status collapsed
18310
18311 \begin_layout Plain Layout
18312 LangPreamble
18313 \end_layout
18314
18315 \end_inset
18316
18317  tag provides for internationalization based upon the overall language of
18318  the document.
18319  The contents of the tag will be included in the preamble, just as with
18320  the 
18321 \begin_inset Flex Code
18322 status collapsed
18323
18324 \begin_layout Plain Layout
18325 Preamble
18326 \end_layout
18327
18328 \end_inset
18329
18330  tag.
18331  What makes it special is the use of the 
18332 \begin_inset Quotes eld
18333 \end_inset
18334
18335 function
18336 \begin_inset Quotes erd
18337 \end_inset
18338
18339  
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344 _()
18345 \end_layout
18346
18347 \end_inset
18348
18349 , which will be replaced, when \SpecialChar LyX
18350  produces \SpecialChar LaTeX
18351  output, with the translation of
18352  its argument into the document language.
18353 \end_layout
18354
18355 \begin_layout Standard
18356 The 
18357 \begin_inset Flex Code
18358 status collapsed
18359
18360 \begin_layout Plain Layout
18361 BabelPreamble
18362 \end_layout
18363
18364 \end_inset
18365
18366  tag is more complex, since it is meant to provide support for multi-language
18367  documents and so offers an interface to the 
18368 \begin_inset Flex Code
18369 status collapsed
18370
18371 \begin_layout Plain Layout
18372 babel
18373 \end_layout
18374
18375 \end_inset
18376
18377  package.
18378  Its contents will be added to the preamble once for each language that
18379  appears in the document.
18380  In this case, the argument to 
18381 \begin_inset Flex Code
18382 status collapsed
18383
18384 \begin_layout Plain Layout
18385 _()
18386 \end_layout
18387
18388 \end_inset
18389
18390  will be replaced with its translation into the language in question; the
18391  expression 
18392 \begin_inset Flex Code
18393 status collapsed
18394
18395 \begin_layout Plain Layout
18396 $$lang
18397 \end_layout
18398
18399 \end_inset
18400
18401  is replaced by the language name (as used by the babel package).
18402 \end_layout
18403
18404 \begin_layout Standard
18405 A German document that also included a French section would thus have the
18406  following in the preamble:
18407 \end_layout
18408
18409 \begin_layout LyX-Code
18410
18411 \backslash
18412 addto
18413 \backslash
18414 captionsfrench{
18415 \backslash
18416 renewcommand{
18417 \backslash
18418 claimname}{Affirmation}}
18419 \begin_inset Newline newline
18420 \end_inset
18421
18422
18423 \backslash
18424 addto
18425 \backslash
18426 captionsngerman{
18427 \backslash
18428 renewcommand{
18429 \backslash
18430 claimname}{Behauptung}}
18431 \begin_inset Newline newline
18432 \end_inset
18433
18434
18435 \backslash
18436 providecommand{
18437 \backslash
18438 claimname}{Behauptung}
18439 \end_layout
18440
18441 \begin_layout Standard
18442 \SpecialChar LaTeX
18443  and 
18444 \begin_inset Flex Code
18445 status collapsed
18446
18447 \begin_layout Plain Layout
18448 babel
18449 \end_layout
18450
18451 \end_inset
18452
18453  will then conspire to produce the correct text in the output.
18454 \end_layout
18455
18456 \begin_layout Standard
18457 One important point to note here is that the translations are provided by
18458  \SpecialChar LyX
18459  itself, through the file 
18460 \begin_inset Flex Code
18461 status collapsed
18462
18463 \begin_layout Plain Layout
18464 layouttranslations
18465 \end_layout
18466
18467 \end_inset
18468
18469 .
18470  This means, in effect, that 
18471 \begin_inset Flex Code
18472 status collapsed
18473
18474 \begin_layout Plain Layout
18475 LangPreamble
18476 \end_layout
18477
18478 \end_inset
18479
18480  and 
18481 \begin_inset Flex Code
18482 status collapsed
18483
18484 \begin_layout Plain Layout
18485 BabelPreamble
18486 \end_layout
18487
18488 \end_inset
18489
18490  are really only of use in layout files that are provided with \SpecialChar LyX
18491 , since text
18492  entered in user-created layout files will not be seen by \SpecialChar LyX
18493 's internationalizatio
18494 n routines unless the 
18495 \begin_inset Flex Code
18496 status collapsed
18497
18498 \begin_layout Plain Layout
18499 layouttranslations
18500 \end_layout
18501
18502 \end_inset
18503
18504  file is modified accordingly.
18505  That said, however, any layout created with the intention that it will
18506  be included with \SpecialChar LyX
18507  should use these tags where appropriate.
18508  Please note that the paragraph style translations provided by \SpecialChar LyX
18509  will never
18510  change with a minor update (e.
18511 \begin_inset space \thinspace{}
18512 \end_inset
18513
18514 g.
18515 \begin_inset space \space{}
18516 \end_inset
18517
18518 from version 2.1.x to 2.1.y).
18519  It is however quite likely that a major update (e.
18520 \begin_inset space \thinspace{}
18521 \end_inset
18522
18523 g.
18524 \begin_inset space \space{}
18525 \end_inset
18526
18527 from 2.0.x to 2.1.0) will introduce new translations or corrections.
18528 \end_layout
18529
18530 \begin_layout Subsection
18531 Floats
18532 \begin_inset CommandInset label
18533 LatexCommand label
18534 name "subsec:Floats"
18535
18536 \end_inset
18537
18538
18539 \end_layout
18540
18541 \begin_layout Standard
18542 It is necessary to define the floats (
18543 \begin_inset Flex Noun
18544 status collapsed
18545
18546 \begin_layout Plain Layout
18547 figure
18548 \end_layout
18549
18550 \end_inset
18551
18552
18553 \begin_inset Flex Noun
18554 status collapsed
18555
18556 \begin_layout Plain Layout
18557 table
18558 \end_layout
18559
18560 \end_inset
18561
18562 , \SpecialChar ldots
18563 ) in the text class itself.
18564  Standard floats are included in the file 
18565 \begin_inset Flex Code
18566 status collapsed
18567
18568 \begin_layout Plain Layout
18569 stdfloats.inc
18570 \end_layout
18571
18572 \end_inset
18573
18574 , so you may have to do no more than add
18575 \end_layout
18576
18577 \begin_layout LyX-Code
18578 Input stdfloats.inc
18579 \end_layout
18580
18581 \begin_layout Standard
18582 to your layout file.
18583  If you want to implement a text class that proposes some other float types
18584  (like the AGU class bundled with \SpecialChar LyX
18585 ), the information below will hopefully
18586  help you:
18587 \end_layout
18588
18589 \begin_layout Description
18590 \begin_inset Flex Code
18591 status collapsed
18592
18593 \begin_layout Plain Layout
18594 AllowedPlacement
18595 \end_layout
18596
18597 \end_inset
18598
18599  [
18600 \begin_inset Flex Code
18601 status collapsed
18602
18603 \begin_layout Plain Layout
18604 string
18605 \end_layout
18606
18607 \end_inset
18608
18609 =!htbpH] Allowed placement options for this float type.
18610  The value is a string of placement characters.
18611  Possible characters include: 
18612 \emph on
18613 h
18614 \emph default
18615  (
18616 \begin_inset Quotes eld
18617 \end_inset
18618
18619 here if possible
18620 \begin_inset Quotes erd
18621 \end_inset
18622
18623 ), 
18624 \emph on
18625 t
18626 \emph default
18627  (
18628 \begin_inset Quotes eld
18629 \end_inset
18630
18631 top of page
18632 \begin_inset Quotes erd
18633 \end_inset
18634
18635 ), 
18636 \emph on
18637 b
18638 \emph default
18639  (
18640 \begin_inset Quotes eld
18641 \end_inset
18642
18643 bottom of page
18644 \begin_inset Quotes erd
18645 \end_inset
18646
18647 ), 
18648 \emph on
18649 p
18650 \emph default
18651  (
18652 \begin_inset Quotes eld
18653 \end_inset
18654
18655 page of floats
18656 \begin_inset Quotes erd
18657 \end_inset
18658
18659 ), 
18660 \emph on
18661 H
18662 \emph default
18663  (
18664 \begin_inset Quotes eld
18665 \end_inset
18666
18667 here definitely
18668 \begin_inset Quotes erd
18669 \end_inset
18670
18671 ) and 
18672 \emph on
18673 !
18674 \emph default
18675  (
18676 \begin_inset Quotes eld
18677 \end_inset
18678
18679 ignore LaTeX rules
18680 \begin_inset Quotes erd
18681 \end_inset
18682
18683 ).
18684  The order of the characters in the string does not matter.
18685  If no placement options are allowed, use the string 
18686 \emph on
18687 none
18688 \emph default
18689 .
18690 \end_layout
18691
18692 \begin_layout Description
18693 \begin_inset Flex Code
18694 status collapsed
18695
18696 \begin_layout Plain Layout
18697 AllowsSideways
18698 \end_layout
18699
18700 \end_inset
18701
18702  [
18703 \begin_inset Flex Code
18704 status collapsed
18705
18706 \begin_layout Plain Layout
18707
18708 \emph off
18709 0
18710 \end_layout
18711
18712 \end_inset
18713
18714 ,
18715 \begin_inset space \thinspace{}
18716 \end_inset
18717
18718
18719 \emph on
18720
18721 \begin_inset Flex Code
18722 status collapsed
18723
18724 \begin_layout Plain Layout
18725
18726 \emph on
18727 1
18728 \end_layout
18729
18730 \end_inset
18731
18732
18733 \emph default
18734 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
18735 -package 
18736 \family typewriter
18737 rotfloat
18738 \family default
18739  (sidewaysfloat).
18740  Set to 
18741 \begin_inset Flex Code
18742 status collapsed
18743
18744 \begin_layout Plain Layout
18745 0
18746 \end_layout
18747
18748 \end_inset
18749
18750  if the float does not support this feature.
18751 \end_layout
18752
18753 \begin_layout Description
18754 \begin_inset Flex Code
18755 status collapsed
18756
18757 \begin_layout Plain Layout
18758 AllowsWide
18759 \end_layout
18760
18761 \end_inset
18762
18763  [
18764 \begin_inset Flex Code
18765 status collapsed
18766
18767 \begin_layout Plain Layout
18768
18769 \emph off
18770 0
18771 \end_layout
18772
18773 \end_inset
18774
18775 ,
18776 \begin_inset space \thinspace{}
18777 \end_inset
18778
18779
18780 \emph on
18781
18782 \begin_inset Flex Code
18783 status collapsed
18784
18785 \begin_layout Plain Layout
18786
18787 \emph on
18788 1
18789 \end_layout
18790
18791 \end_inset
18792
18793
18794 \emph default
18795 ] Defines whether the float has a starred variant that spans columns in
18796  a two column paragraph.
18797  Set to 
18798 \begin_inset Flex Code
18799 status collapsed
18800
18801 \begin_layout Plain Layout
18802 0
18803 \end_layout
18804
18805 \end_inset
18806
18807  if the float does not support this feature.
18808 \end_layout
18809
18810 \begin_layout Description
18811 \begin_inset Flex Code
18812 status collapsed
18813
18814 \begin_layout Plain Layout
18815 Extension
18816 \end_layout
18817
18818 \end_inset
18819
18820  [
18821 \begin_inset Flex Code
18822 status collapsed
18823
18824 \begin_layout Plain Layout
18825 string
18826 \end_layout
18827
18828 \end_inset
18829
18830 =
18831 \begin_inset Quotes erd
18832 \end_inset
18833
18834
18835 \begin_inset Quotes erd
18836 \end_inset
18837
18838 ] The file name extension of an auxiliary file for the list of figures (or
18839  whatever).
18840  \SpecialChar LaTeX
18841  writes the captions to this file.
18842 \end_layout
18843
18844 \begin_layout Description
18845 \begin_inset Flex Code
18846 status collapsed
18847
18848 \begin_layout Plain Layout
18849 GuiName
18850 \end_layout
18851
18852 \end_inset
18853
18854  [
18855 \begin_inset Flex Code
18856 status collapsed
18857
18858 \begin_layout Plain Layout
18859 string
18860 \end_layout
18861
18862 \end_inset
18863
18864 =
18865 \begin_inset Quotes erd
18866 \end_inset
18867
18868
18869 \begin_inset Quotes erd
18870 \end_inset
18871
18872 ] The string that will be used in the menus and also for the caption.
18873  This is translated to the current language if babel is used.
18874 \end_layout
18875
18876 \begin_layout Description
18877 \begin_inset Flex Code
18878 status collapsed
18879
18880 \begin_layout Plain Layout
18881 HTML*
18882 \end_layout
18883
18884 \end_inset
18885
18886  These tags control the XHTML output.
18887  See 
18888 \begin_inset CommandInset ref
18889 LatexCommand ref
18890 reference "sec:Tags-for-XHTML"
18891
18892 \end_inset
18893
18894 .
18895 \end_layout
18896
18897 \begin_layout Description
18898 \begin_inset Flex Code
18899 status collapsed
18900
18901 \begin_layout Plain Layout
18902 IsPredefined
18903 \end_layout
18904
18905 \end_inset
18906
18907  [
18908 \emph on
18909
18910 \begin_inset Flex Code
18911 status collapsed
18912
18913 \begin_layout Plain Layout
18914 0
18915 \end_layout
18916
18917 \end_inset
18918
18919
18920 \emph default
18921 ,
18922 \begin_inset space \thinspace{}
18923 \end_inset
18924
18925
18926 \begin_inset Flex Code
18927 status collapsed
18928
18929 \begin_layout Plain Layout
18930 1
18931 \end_layout
18932
18933 \end_inset
18934
18935 ] Indicates whether the float is already defined in the document class or
18936  if instead the \SpecialChar LaTeX
18937  package 
18938 \begin_inset Flex Code
18939 status collapsed
18940
18941 \begin_layout Plain Layout
18942 float
18943 \end_layout
18944
18945 \end_inset
18946
18947  needs to be loaded to define it on-the-fly.
18948  The default is 
18949 \begin_inset Flex Code
18950 status collapsed
18951
18952 \begin_layout Plain Layout
18953 0
18954 \end_layout
18955
18956 \end_inset
18957
18958 , which means: 
18959 \begin_inset Flex Code
18960 status collapsed
18961
18962 \begin_layout Plain Layout
18963 float
18964 \end_layout
18965
18966 \end_inset
18967
18968  is used.
18969  It should be set to 
18970 \begin_inset Flex Code
18971 status collapsed
18972
18973 \begin_layout Plain Layout
18974 1
18975 \end_layout
18976
18977 \end_inset
18978
18979  if the float is already defined by the \SpecialChar LaTeX
18980  document class.
18981 \end_layout
18982
18983 \begin_layout Description
18984 \begin_inset Flex Code
18985 status collapsed
18986
18987 \begin_layout Plain Layout
18988 ListCommand
18989 \end_layout
18990
18991 \end_inset
18992
18993  [
18994 \begin_inset Flex Code
18995 status collapsed
18996
18997 \begin_layout Plain Layout
18998 string
18999 \end_layout
19000
19001 \end_inset
19002
19003 =
19004 \begin_inset Quotes erd
19005 \end_inset
19006
19007
19008 \begin_inset Quotes erd
19009 \end_inset
19010
19011 ] The command used to generate a list of floats of this type; the leading
19012  `
19013 \backslash
19014 ' must be omitted.
19015  This 
19016 \emph on
19017 must
19018 \emph default
19019  be given if 
19020 \begin_inset Flex Code
19021 status collapsed
19022
19023 \begin_layout Plain Layout
19024 UsesFloatPkg
19025 \end_layout
19026
19027 \end_inset
19028
19029  is false, since there is no standard way to generate this command.
19030  It is ignored if 
19031 \begin_inset Flex Code
19032 status collapsed
19033
19034 \begin_layout Plain Layout
19035 UsesFloatPkg
19036 \end_layout
19037
19038 \end_inset
19039
19040  is true, since in that case there is a standard way to define the command.
19041 \end_layout
19042
19043 \begin_layout Description
19044 \begin_inset Flex Code
19045 status collapsed
19046
19047 \begin_layout Plain Layout
19048 ListName
19049 \end_layout
19050
19051 \end_inset
19052
19053  [
19054 \begin_inset Flex Code
19055 status collapsed
19056
19057 \begin_layout Plain Layout
19058 string
19059 \end_layout
19060
19061 \end_inset
19062
19063 =
19064 \begin_inset Quotes erd
19065 \end_inset
19066
19067
19068 \begin_inset Quotes erd
19069 \end_inset
19070
19071 ] A title for a list of floats of this kind (list of figures, tables, or
19072  whatever).
19073  It is used for the screen label within \SpecialChar LyX
19074 , it is used by \SpecialChar LaTeX
19075  for the title and
19076  it is used as the title in the XHTML output.
19077  It will be translated to the document language.
19078 \end_layout
19079
19080 \begin_layout Description
19081 \begin_inset Flex Code
19082 status collapsed
19083
19084 \begin_layout Plain Layout
19085 NumberWithin
19086 \end_layout
19087
19088 \end_inset
19089
19090  [
19091 \begin_inset Flex Code
19092 status collapsed
19093
19094 \begin_layout Plain Layout
19095 string
19096 \end_layout
19097
19098 \end_inset
19099
19100 =
19101 \begin_inset Quotes erd
19102 \end_inset
19103
19104
19105 \begin_inset Quotes erd
19106 \end_inset
19107
19108 ] This (optional) argument determines whether floats of this class will
19109  be numbered within some sectional unit of the document.
19110  For example, if 
19111 \begin_inset Flex Code
19112 status collapsed
19113
19114 \begin_layout Plain Layout
19115 NumberWithin
19116 \end_layout
19117
19118 \end_inset
19119
19120  is set to 
19121 \begin_inset Quotes eld
19122 \end_inset
19123
19124
19125 \begin_inset Flex Code
19126 status collapsed
19127
19128 \begin_layout Plain Layout
19129 chapter
19130 \end_layout
19131
19132 \end_inset
19133
19134
19135 \begin_inset Quotes erd
19136 \end_inset
19137
19138 , the floats will be numbered within chapters.
19139  
19140 \end_layout
19141
19142 \begin_layout Description
19143 \begin_inset Flex Code
19144 status collapsed
19145
19146 \begin_layout Plain Layout
19147 Placement
19148 \end_layout
19149
19150 \end_inset
19151
19152  [
19153 \begin_inset Flex Code
19154 status collapsed
19155
19156 \begin_layout Plain Layout
19157 string
19158 \end_layout
19159
19160 \end_inset
19161
19162 =
19163 \begin_inset Quotes erd
19164 \end_inset
19165
19166
19167 \begin_inset Quotes erd
19168 \end_inset
19169
19170 ] The default placement for the given class of floats.
19171  The string should be as in standard \SpecialChar LaTeX
19172
19173 \begin_inset Flex Code
19174 status collapsed
19175
19176 \begin_layout Plain Layout
19177 t
19178 \end_layout
19179
19180 \end_inset
19181
19182
19183 \begin_inset Flex Code
19184 status collapsed
19185
19186 \begin_layout Plain Layout
19187 b
19188 \end_layout
19189
19190 \end_inset
19191
19192
19193 \begin_inset Flex Code
19194 status collapsed
19195
19196 \begin_layout Plain Layout
19197 p
19198 \end_layout
19199
19200 \end_inset
19201
19202  and 
19203 \begin_inset Flex Code
19204 status collapsed
19205
19206 \begin_layout Plain Layout
19207 h
19208 \end_layout
19209
19210 \end_inset
19211
19212  for top, bottom, page, and here, respectively.
19213 \begin_inset Foot
19214 status collapsed
19215
19216 \begin_layout Plain Layout
19217 Note that the order of these letters in the string is irrelevant, like in
19218  \SpecialChar LaTeX
19219 .
19220 \end_layout
19221
19222 \end_inset
19223
19224  On top of that there is a new type, 
19225 \begin_inset Flex Code
19226 status collapsed
19227
19228 \begin_layout Plain Layout
19229 H
19230 \end_layout
19231
19232 \end_inset
19233
19234 , which does not really correspond to a float, since it means: put it 
19235 \begin_inset Quotes eld
19236 \end_inset
19237
19238 here
19239 \begin_inset Quotes erd
19240 \end_inset
19241
19242  and nowhere else.
19243  Note however that the 
19244 \begin_inset Flex Code
19245 status collapsed
19246
19247 \begin_layout Plain Layout
19248 H
19249 \end_layout
19250
19251 \end_inset
19252
19253  specifier is special and, because of implementation details, cannot be
19254  used in non-built in float types.
19255  If you do not understand what this means, just use 
19256 \begin_inset Quotes eld
19257 \end_inset
19258
19259
19260 \begin_inset Flex Code
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264 tbp
19265 \end_layout
19266
19267 \end_inset
19268
19269
19270 \begin_inset Quotes erd
19271 \end_inset
19272
19273 .
19274 \end_layout
19275
19276 \begin_layout Description
19277 \begin_inset Flex Code
19278 status collapsed
19279
19280 \begin_layout Plain Layout
19281 RefPrefix
19282 \end_layout
19283
19284 \end_inset
19285
19286  [
19287 \begin_inset Flex Code
19288 status collapsed
19289
19290 \begin_layout Plain Layout
19291 string
19292 \end_layout
19293
19294 \end_inset
19295
19296 ] The prefix to use when creating labels referring to floats of this type.
19297  This allows the use of formatted references.
19298  Note that you can remove any 
19299 \begin_inset Flex Code
19300 status collapsed
19301
19302 \begin_layout Plain Layout
19303 RefPrefix
19304 \end_layout
19305
19306 \end_inset
19307
19308  set by a copied style by using the special value 
19309 \begin_inset Quotes eld
19310 \end_inset
19311
19312 OFF
19313 \begin_inset Quotes erd
19314 \end_inset
19315
19316 , which must be all caps.
19317 \change_inserted -712698321 1565605014
19318
19319 \end_layout
19320
19321 \begin_layout Description
19322
19323 \change_inserted -712698321 1565605014
19324 \begin_inset Flex Code
19325 status collapsed
19326
19327 \begin_layout Plain Layout
19328
19329 \change_inserted -712698321 1565605014
19330 Requires
19331 \change_unchanged
19332
19333 \end_layout
19334
19335 \end_inset
19336
19337  [
19338 \begin_inset Flex Code
19339 status collapsed
19340
19341 \begin_layout Plain Layout
19342
19343 \change_inserted -712698321 1565605014
19344 string
19345 \change_unchanged
19346
19347 \end_layout
19348
19349 \end_inset
19350
19351 ] As with paragraph styles, see 
19352 \begin_inset CommandInset ref
19353 LatexCommand ref
19354 reference "subsec:Paragraph-Styles"
19355
19356 \end_inset
19357
19358 .
19359 \change_unchanged
19360
19361 \end_layout
19362
19363 \begin_layout Description
19364 \begin_inset Flex Code
19365 status collapsed
19366
19367 \begin_layout Plain Layout
19368 Style
19369 \end_layout
19370
19371 \end_inset
19372
19373  [
19374 \begin_inset Flex Code
19375 status collapsed
19376
19377 \begin_layout Plain Layout
19378 string
19379 \end_layout
19380
19381 \end_inset
19382
19383 =
19384 \begin_inset Quotes erd
19385 \end_inset
19386
19387
19388 \begin_inset Quotes erd
19389 \end_inset
19390
19391 ] The style used when defining the float using 
19392 \begin_inset Flex Code
19393 status collapsed
19394
19395 \begin_layout Plain Layout
19396
19397 \backslash
19398 newfloat
19399 \end_layout
19400
19401 \end_inset
19402
19403 .
19404 \end_layout
19405
19406 \begin_layout Description
19407 \begin_inset Flex Code
19408 status collapsed
19409
19410 \begin_layout Plain Layout
19411 Type
19412 \end_layout
19413
19414 \end_inset
19415
19416  [
19417 \begin_inset Flex Code
19418 status collapsed
19419
19420 \begin_layout Plain Layout
19421 string
19422 \end_layout
19423
19424 \end_inset
19425
19426 =
19427 \begin_inset Quotes erd
19428 \end_inset
19429
19430
19431 \begin_inset Quotes erd
19432 \end_inset
19433
19434 ] The 
19435 \begin_inset Quotes eld
19436 \end_inset
19437
19438 type
19439 \begin_inset Quotes erd
19440 \end_inset
19441
19442  of the new class of floats, like program or algorithm.
19443  After the appropriate 
19444 \begin_inset Flex Code
19445 status collapsed
19446
19447 \begin_layout Plain Layout
19448
19449 \backslash
19450 newfloat
19451 \end_layout
19452
19453 \end_inset
19454
19455 , commands such as 
19456 \begin_inset Flex Code
19457 status collapsed
19458
19459 \begin_layout Plain Layout
19460
19461 \backslash
19462 begin{program}
19463 \end_layout
19464
19465 \end_inset
19466
19467  or 
19468 \begin_inset Flex Code
19469 status collapsed
19470
19471 \begin_layout Plain Layout
19472
19473 \backslash
19474 end{algorithm*}
19475 \end_layout
19476
19477 \end_inset
19478
19479  will be available.
19480 \end_layout
19481
19482 \begin_layout Description
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 UsesFloatPkg
19488 \end_layout
19489
19490 \end_inset
19491
19492  [
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497 0
19498 \end_layout
19499
19500 \end_inset
19501
19502 ,
19503 \begin_inset space \thinspace{}
19504 \end_inset
19505
19506
19507 \begin_inset Flex Code
19508 status collapsed
19509
19510 \begin_layout Plain Layout
19511
19512 \emph on
19513 1
19514 \end_layout
19515
19516 \end_inset
19517
19518 ] Specifies whether this float is defined using the \SpecialChar LaTeX
19519  package 
19520 \begin_inset Flex Code
19521 status collapsed
19522
19523 \begin_layout Plain Layout
19524 float
19525 \end_layout
19526
19527 \end_inset
19528
19529 , either by the class file, another package or on-the-fly by \SpecialChar LyX
19530  itself.
19531 \end_layout
19532
19533 \begin_layout Standard
19534 Note that defining a float with type 
19535 \begin_inset Flex Code
19536 status collapsed
19537
19538 \begin_layout Plain Layout
19539
19540 \emph on
19541 type
19542 \end_layout
19543
19544 \end_inset
19545
19546  automatically defines the corresponding counter with name 
19547 \begin_inset Flex Code
19548 status collapsed
19549
19550 \begin_layout Plain Layout
19551
19552 \emph on
19553 type
19554 \end_layout
19555
19556 \end_inset
19557
19558 .
19559 \end_layout
19560
19561 \begin_layout Subsection
19562 Flex insets and InsetLayout
19563 \begin_inset CommandInset label
19564 LatexCommand label
19565 name "subsec:Flex-insets-and"
19566
19567 \end_inset
19568
19569
19570 \end_layout
19571
19572 \begin_layout Standard
19573 Flex insets come in 
19574 \change_deleted 5863208 1594239511
19575 three
19576 \change_inserted 5863208 1594239512
19577 two
19578 \change_unchanged
19579  different kinds: 
19580 \end_layout
19581
19582 \begin_layout Itemize
19583 character style (
19584 \begin_inset Flex Code
19585 status collapsed
19586
19587 \begin_layout Plain Layout
19588 CharStyle
19589 \end_layout
19590
19591 \end_inset
19592
19593 ): These define semantic markup corresponding to such \SpecialChar LaTeX
19594  commands as 
19595 \begin_inset Flex Code
19596 status collapsed
19597
19598 \begin_layout Plain Layout
19599
19600 \backslash
19601 noun
19602 \end_layout
19603
19604 \end_inset
19605
19606  and 
19607 \begin_inset Flex Code
19608 status collapsed
19609
19610 \begin_layout Plain Layout
19611
19612 \backslash
19613 code
19614 \end_layout
19615
19616 \end_inset
19617
19618 .
19619 \end_layout
19620
19621 \begin_layout Itemize
19622 user custom (
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627 Custom
19628 \end_layout
19629
19630 \end_inset
19631
19632 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
19633  code,
19634  footnote, and the like.
19635  An obvious example is an endnote inset, which is defined in the 
19636 \begin_inset Flex Code
19637 status collapsed
19638
19639 \begin_layout Plain Layout
19640 endnote
19641 \end_layout
19642
19643 \end_inset
19644
19645  module.
19646 \end_layout
19647
19648 \begin_layout Itemize
19649
19650 \change_deleted 5863208 1594239528
19651 XML elements (
19652 \begin_inset Flex Code
19653 status collapsed
19654
19655 \begin_layout Plain Layout
19656 Element
19657 \end_layout
19658
19659 \end_inset
19660
19661 ): For use with DocBook classes.
19662 \change_unchanged
19663
19664 \end_layout
19665
19666 \begin_layout Standard
19667 Flex insets are defined using the 
19668 \begin_inset Flex Code
19669 status collapsed
19670
19671 \begin_layout Plain Layout
19672 InsetLayout
19673 \end_layout
19674
19675 \end_inset
19676
19677  tag, which shall be explained in a moment.
19678 \end_layout
19679
19680 \begin_layout Standard
19681 The 
19682 \begin_inset Flex Code
19683 status collapsed
19684
19685 \begin_layout Plain Layout
19686 InsetLayout
19687 \end_layout
19688
19689 \end_inset
19690
19691  tag also serves another function: It can be used to customize the general
19692  layout of many different types of insets.
19693  Currently, 
19694 \begin_inset Flex Code
19695 status collapsed
19696
19697 \begin_layout Plain Layout
19698 InsetLayout
19699 \end_layout
19700
19701 \end_inset
19702
19703  can be used to customize the layout parameters for footnotes, marginal
19704  notes, note insets, \SpecialChar TeX
19705  code (ERT) insets, branches, listings, indexes, boxes,
19706  tables, algorithms, URLs, and captions, as well as to define Flex insets.
19707 \end_layout
19708
19709 \begin_layout Standard
19710 The 
19711 \begin_inset Flex Code
19712 status collapsed
19713
19714 \begin_layout Plain Layout
19715 InsetLayout
19716 \end_layout
19717
19718 \end_inset
19719
19720  definition must begin with a line of the form:
19721 \end_layout
19722
19723 \begin_layout LyX-Code
19724 InsetLayout <type>
19725 \end_layout
19726
19727 \begin_layout Standard
19728 Here 
19729 \begin_inset Flex Code
19730 status collapsed
19731
19732 \begin_layout Plain Layout
19733 <Type>
19734 \end_layout
19735
19736 \end_inset
19737
19738  indicates the inset whose layout is being defined, and here there are four
19739  cases.
19740 \end_layout
19741
19742 \begin_layout Enumerate
19743 The layout for a pre-existing inset is being modified.
19744  In this case, can be 
19745 \begin_inset Flex Code
19746 status collapsed
19747
19748 \begin_layout Plain Layout
19749 <Type>
19750 \end_layout
19751
19752 \end_inset
19753
19754  any one of the following: 
19755 \begin_inset Flex Code
19756 status collapsed
19757
19758 \begin_layout Plain Layout
19759 Algorithm
19760 \end_layout
19761
19762 \end_inset
19763
19764
19765 \begin_inset Flex Code
19766 status collapsed
19767
19768 \begin_layout Plain Layout
19769 Branch
19770 \end_layout
19771
19772 \end_inset
19773
19774
19775 \begin_inset Flex Code
19776 status collapsed
19777
19778 \begin_layout Plain Layout
19779 Box
19780 \end_layout
19781
19782 \end_inset
19783
19784
19785 \begin_inset Flex Code
19786 status collapsed
19787
19788 \begin_layout Plain Layout
19789 Box:shaded
19790 \end_layout
19791
19792 \end_inset
19793
19794
19795 \begin_inset Flex Code
19796 status collapsed
19797
19798 \begin_layout Plain Layout
19799 Caption:Standard
19800 \end_layout
19801
19802 \end_inset
19803
19804
19805 \begin_inset Flex Code
19806 status collapsed
19807
19808 \begin_layout Plain Layout
19809 ERT
19810 \end_layout
19811
19812 \end_inset
19813
19814
19815 \begin_inset Flex Code
19816 status collapsed
19817
19818 \begin_layout Plain Layout
19819 Figure
19820 \end_layout
19821
19822 \end_inset
19823
19824
19825 \begin_inset Flex Code
19826 status collapsed
19827
19828 \begin_layout Plain Layout
19829 Foot
19830 \end_layout
19831
19832 \end_inset
19833
19834
19835 \begin_inset Flex Code
19836 status collapsed
19837
19838 \begin_layout Plain Layout
19839 Index
19840 \end_layout
19841
19842 \end_inset
19843
19844
19845 \begin_inset Flex Code
19846 status collapsed
19847
19848 \begin_layout Plain Layout
19849 Info
19850 \end_layout
19851
19852 \end_inset
19853
19854
19855 \begin_inset Flex Code
19856 status collapsed
19857
19858 \begin_layout Plain Layout
19859 Info:menu
19860 \end_layout
19861
19862 \end_inset
19863
19864
19865 \begin_inset Flex Code
19866 status collapsed
19867
19868 \begin_layout Plain Layout
19869 Info:shortcut
19870 \end_layout
19871
19872 \end_inset
19873
19874
19875 \begin_inset Flex Code
19876 status collapsed
19877
19878 \begin_layout Plain Layout
19879 Info:shortcuts
19880 \end_layout
19881
19882 \end_inset
19883
19884
19885 \begin_inset Flex Code
19886 status collapsed
19887
19888 \begin_layout Plain Layout
19889 Listings
19890 \end_layout
19891
19892 \end_inset
19893
19894
19895 \begin_inset Flex Code
19896 status collapsed
19897
19898 \begin_layout Plain Layout
19899 Marginal
19900 \end_layout
19901
19902 \end_inset
19903
19904
19905 \begin_inset Flex Code
19906 status collapsed
19907
19908 \begin_layout Plain Layout
19909 Note:Comment
19910 \end_layout
19911
19912 \end_inset
19913
19914
19915 \begin_inset Flex Code
19916 status collapsed
19917
19918 \begin_layout Plain Layout
19919 Note:Note
19920 \end_layout
19921
19922 \end_inset
19923
19924
19925 \begin_inset Flex Code
19926 status collapsed
19927
19928 \begin_layout Plain Layout
19929 Note:Greyedout
19930 \end_layout
19931
19932 \end_inset
19933
19934
19935 \begin_inset Flex Code
19936 status collapsed
19937
19938 \begin_layout Plain Layout
19939 Table
19940 \end_layout
19941
19942 \end_inset
19943
19944 , or 
19945 \begin_inset Flex Code
19946 status collapsed
19947
19948 \begin_layout Plain Layout
19949 URL
19950 \end_layout
19951
19952 \end_inset
19953
19954 .
19955 \end_layout
19956
19957 \begin_layout Enumerate
19958 The layout for a Flex inset is being defined.
19959  In this case, 
19960 \begin_inset Flex Code
19961 status collapsed
19962
19963 \begin_layout Plain Layout
19964 <Type>
19965 \end_layout
19966
19967 \end_inset
19968
19969  must be of the form 
19970 \begin_inset Quotes eld
19971 \end_inset
19972
19973
19974 \begin_inset Flex Code
19975 status collapsed
19976
19977 \begin_layout Plain Layout
19978 Flex:<name>
19979 \end_layout
19980
19981 \end_inset
19982
19983
19984 \begin_inset Quotes erd
19985 \end_inset
19986
19987 , where 
19988 \begin_inset Flex Code
19989 status collapsed
19990
19991 \begin_layout Plain Layout
19992 name
19993 \end_layout
19994
19995 \end_inset
19996
19997  may be any valid identifier not used by a pre-existing Flex inset.
19998  The identifier may include spaces, but in that case the whole thing must
19999  be wrapped in quotes.
20000  Note that the definition of a flex inset 
20001 \emph on
20002 must 
20003 \emph default
20004 also include a 
20005 \begin_inset Flex Code
20006 status collapsed
20007
20008 \begin_layout Plain Layout
20009 LyXType
20010 \end_layout
20011
20012 \end_inset
20013
20014  entry, declaring which type of inset it defines.
20015 \end_layout
20016
20017 \begin_layout Enumerate
20018 The layout for user specific branch is being defined.
20019  In this case, 
20020 \begin_inset Flex Code
20021 status collapsed
20022
20023 \begin_layout Plain Layout
20024 <Type>
20025 \end_layout
20026
20027 \end_inset
20028
20029  must be of the form 
20030 \begin_inset Quotes eld
20031 \end_inset
20032
20033
20034 \begin_inset Flex Code
20035 status collapsed
20036
20037 \begin_layout Plain Layout
20038 Branch:<name>
20039 \end_layout
20040
20041 \end_inset
20042
20043
20044 \begin_inset Quotes erd
20045 \end_inset
20046
20047 , where 
20048 \begin_inset Flex Code
20049 status collapsed
20050
20051 \begin_layout Plain Layout
20052 name
20053 \end_layout
20054
20055 \end_inset
20056
20057  may be any valid identifier of branch defined in user's document.
20058  The identifier may include spaces, but in that case the whole thing must
20059  be wrapped in quotes.
20060  The main purpose of this feature is to allow \SpecialChar LaTeX
20061  wrapping around specific
20062  branches as user needs.
20063 \end_layout
20064
20065 \begin_layout Enumerate
20066 The layout of a user (or class) specific caption is being defined.
20067  In this case, 
20068 \begin_inset Flex Code
20069 status collapsed
20070
20071 \begin_layout Plain Layout
20072 <Type>
20073 \end_layout
20074
20075 \end_inset
20076
20077  must be of the form 
20078 \begin_inset Quotes eld
20079 \end_inset
20080
20081
20082 \begin_inset Flex Code
20083 status collapsed
20084
20085 \begin_layout Plain Layout
20086 Caption:<name>
20087 \end_layout
20088
20089 \end_inset
20090
20091
20092 \begin_inset Quotes erd
20093 \end_inset
20094
20095 , where 
20096 \begin_inset Flex Code
20097 status collapsed
20098
20099 \begin_layout Plain Layout
20100 name
20101 \end_layout
20102
20103 \end_inset
20104
20105  specifies the name of the caption as it appears in the menu.
20106  Have a look at the standard caption (
20107 \begin_inset Flex Code
20108 status collapsed
20109
20110 \begin_layout Plain Layout
20111 Caption:Standard
20112 \end_layout
20113
20114 \end_inset
20115
20116 ), the specific captions of the KOMA-Script classes (
20117 \begin_inset Flex Code
20118 status collapsed
20119
20120 \begin_layout Plain Layout
20121 Caption:Above
20122 \end_layout
20123
20124 \end_inset
20125
20126
20127 \begin_inset Flex Code
20128 status collapsed
20129
20130 \begin_layout Plain Layout
20131 Caption:Below
20132 \end_layout
20133
20134 \end_inset
20135
20136 ) or the module 
20137 \family sans
20138 Multilingual
20139 \begin_inset space ~
20140 \end_inset
20141
20142 Captions
20143 \begin_inset Newline linebreak
20144 \end_inset
20145
20146
20147 \family default
20148 (
20149 \begin_inset Flex Code
20150 status collapsed
20151
20152 \begin_layout Plain Layout
20153 Caption:Bicaption
20154 \end_layout
20155
20156 \end_inset
20157
20158 ) for applications.
20159 \end_layout
20160
20161 \begin_layout Standard
20162 The 
20163 \begin_inset Flex Code
20164 status collapsed
20165
20166 \begin_layout Plain Layout
20167 InsetLayout
20168 \end_layout
20169
20170 \end_inset
20171
20172  definition can contain the following entries:
20173 \end_layout
20174
20175 \begin_layout Description
20176 \begin_inset Flex Code
20177 status collapsed
20178
20179 \begin_layout Plain Layout
20180 AddToToc
20181 \end_layout
20182
20183 \end_inset
20184
20185  [
20186 \begin_inset Flex Code
20187 status collapsed
20188
20189 \begin_layout Plain Layout
20190 string
20191 \end_layout
20192
20193 \end_inset
20194
20195 =""] This inset will appear in the table of contents of the given type.
20196  An empty string disables.
20197  See also the OutlinerName and the IsTocCaption commands.
20198  This is only implemented for Flex insets.
20199  Default: disabled.
20200 \end_layout
20201
20202 \begin_layout Description
20203 \begin_inset Flex Code
20204 status collapsed
20205
20206 \begin_layout Plain Layout
20207 Argument
20208 \end_layout
20209
20210 \end_inset
20211
20212  [
20213 \begin_inset Flex Code
20214 status collapsed
20215
20216 \begin_layout Plain Layout
20217 int
20218 \end_layout
20219
20220 \end_inset
20221
20222 ] Defines argument number of a command\SpecialChar breakableslash
20223 environment associated with the current
20224  layout.
20225  The definition must end with 
20226 \begin_inset Flex Code
20227 status collapsed
20228
20229 \begin_layout Plain Layout
20230 EndArgument
20231 \end_layout
20232
20233 \end_inset
20234
20235 .
20236  See 
20237 \change_inserted -584632292 1615846847
20238
20239 \begin_inset CommandInset ref
20240 LatexCommand ref
20241 reference "subsec:Arguments"
20242 plural "false"
20243 caps "false"
20244 noprefix "false"
20245
20246 \end_inset
20247
20248
20249 \change_deleted -584632292 1615846847
20250
20251 \begin_inset CommandInset ref
20252 LatexCommand ref
20253 reference "subsec:Paragraph-Styles"
20254
20255 \end_inset
20256
20257
20258 \change_unchanged
20259  for 
20260 \change_deleted -584632292 1615846902
20261 details
20262 \change_inserted -584632292 1615846906
20263 more information
20264 \change_unchanged
20265 .
20266 \end_layout
20267
20268 \begin_layout Description
20269 \begin_inset Flex Code
20270 status collapsed
20271
20272 \begin_layout Plain Layout
20273 BabelPreamble
20274 \end_layout
20275
20276 \end_inset
20277
20278  Preamble for changing language commands; see 
20279 \begin_inset CommandInset ref
20280 LatexCommand ref
20281 reference "subsec:I18n"
20282
20283 \end_inset
20284
20285 .
20286 \end_layout
20287
20288 \begin_layout Description
20289 \begin_inset Flex Code
20290 status collapsed
20291
20292 \begin_layout Plain Layout
20293 BgColor
20294 \end_layout
20295
20296 \end_inset
20297
20298  [
20299 \begin_inset Flex Code
20300 status collapsed
20301
20302 \begin_layout Plain Layout
20303 <name>
20304 \end_layout
20305
20306 \end_inset
20307
20308 ] The color for the inset's background.
20309  See 
20310 \begin_inset CommandInset ref
20311 LatexCommand ref
20312 reference "chap:Names-of-colors"
20313
20314 \end_inset
20315
20316  for a list of the available color names.
20317 \end_layout
20318
20319 \begin_layout Description
20320 \begin_inset Flex Code
20321 status collapsed
20322
20323 \begin_layout Plain Layout
20324 ContentAsLabel
20325 \end_layout
20326
20327 \end_inset
20328
20329  [
20330 \begin_inset Flex Code
20331 status collapsed
20332
20333 \begin_layout Plain Layout
20334
20335 \emph on
20336 0
20337 \end_layout
20338
20339 \end_inset
20340
20341 ,
20342 \begin_inset space \thinspace{}
20343 \end_inset
20344
20345
20346 \begin_inset Flex Code
20347 status collapsed
20348
20349 \begin_layout Plain Layout
20350 1
20351 \end_layout
20352
20353 \end_inset
20354
20355 ] Whether to use the content of the inset as the label, when the inset is
20356  closed.
20357  Default is false.
20358 \end_layout
20359
20360 \begin_layout Description
20361 \begin_inset Flex Code
20362 status collapsed
20363
20364 \begin_layout Plain Layout
20365 CopyStyle
20366 \end_layout
20367
20368 \end_inset
20369
20370  [
20371 \begin_inset Flex Code
20372 status collapsed
20373
20374 \begin_layout Plain Layout
20375 <type>
20376 \end_layout
20377
20378 \end_inset
20379
20380 ] As with paragraph styles, see 
20381 \begin_inset CommandInset ref
20382 LatexCommand ref
20383 reference "subsec:Paragraph-Styles"
20384
20385 \end_inset
20386
20387 .
20388  Note that you need to specify the complete type, e.
20389 \begin_inset space \thinspace{}
20390 \end_inset
20391
20392 g.
20393 \begin_inset space ~
20394 \end_inset
20395
20396
20397 \begin_inset Flex Code
20398 status collapsed
20399
20400 \begin_layout Plain Layout
20401 CopyStyle Flex:<name>
20402 \end_layout
20403
20404 \end_inset
20405
20406 .
20407 \end_layout
20408
20409 \begin_layout Description
20410 \begin_inset Flex Code
20411 status collapsed
20412
20413 \begin_layout Plain Layout
20414 CustomPars
20415 \end_layout
20416
20417 \end_inset
20418
20419  [
20420 \begin_inset Flex Code
20421 status collapsed
20422
20423 \begin_layout Plain Layout
20424
20425 \emph on
20426 0
20427 \end_layout
20428
20429 \end_inset
20430
20431 ,
20432 \begin_inset space \thinspace{}
20433 \end_inset
20434
20435
20436 \begin_inset Flex Code
20437 status collapsed
20438
20439 \begin_layout Plain Layout
20440 1
20441 \end_layout
20442
20443 \end_inset
20444
20445 ] Indicates whether the user may employ the Paragraph Settings dialog to
20446  customize the paragraph.
20447 \end_layout
20448
20449 \begin_layout Description
20450 \begin_inset Flex Code
20451 status collapsed
20452
20453 \begin_layout Plain Layout
20454 Decoration
20455 \end_layout
20456
20457 \end_inset
20458
20459  can be 
20460 \begin_inset Flex Code
20461 status collapsed
20462
20463 \begin_layout Plain Layout
20464 Classic
20465 \end_layout
20466
20467 \end_inset
20468
20469
20470 \begin_inset Flex Code
20471 status collapsed
20472
20473 \begin_layout Plain Layout
20474 Minimalistic
20475 \end_layout
20476
20477 \end_inset
20478
20479 , or 
20480 \begin_inset Flex Code
20481 status collapsed
20482
20483 \begin_layout Plain Layout
20484 Conglomerate
20485 \end_layout
20486
20487 \end_inset
20488
20489 , describing the rendering style used for the inset's frame and buttons.
20490  Footnotes generally use 
20491 \begin_inset Flex Code
20492 status collapsed
20493
20494 \begin_layout Plain Layout
20495 Classic
20496 \end_layout
20497
20498 \end_inset
20499
20500 , ERT insets generally 
20501 \begin_inset Flex Code
20502 status collapsed
20503
20504 \begin_layout Plain Layout
20505 Minimalistic
20506 \end_layout
20507
20508 \end_inset
20509
20510 , and character styles 
20511 \begin_inset Flex Code
20512 status collapsed
20513
20514 \begin_layout Plain Layout
20515 Conglomerate
20516 \end_layout
20517
20518 \end_inset
20519
20520 .
20521 \end_layout
20522
20523 \begin_layout Description
20524 \begin_inset Flex Code
20525 status collapsed
20526
20527 \begin_layout Plain Layout
20528 Display
20529 \end_layout
20530
20531 \end_inset
20532
20533  [
20534 \begin_inset Flex Code
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538 0
20539 \end_layout
20540
20541 \end_inset
20542
20543 ,
20544 \emph on
20545
20546 \begin_inset space \thinspace{}
20547 \end_inset
20548
20549
20550 \emph default
20551
20552 \begin_inset Flex Code
20553 status collapsed
20554
20555 \begin_layout Plain Layout
20556
20557 \emph on
20558 1
20559 \end_layout
20560
20561 \end_inset
20562
20563 ] Only useful if 
20564 \begin_inset Flex Code
20565 status collapsed
20566
20567 \begin_layout Plain Layout
20568 LatexType
20569 \end_layout
20570
20571 \end_inset
20572
20573  is 
20574 \begin_inset Flex Code
20575 status collapsed
20576
20577 \begin_layout Plain Layout
20578 Environment
20579 \end_layout
20580
20581 \end_inset
20582
20583 .
20584  Indicates whether the environment will stand on its own in the output or
20585  will appear inline with the surrounding text.
20586  If set to false, it is supposed that the \SpecialChar LaTeX
20587  environment ignores white space
20588  (including one newline character) after the 
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593
20594 \backslash
20595 begin{
20596 \emph on
20597 LatexName
20598 \emph default
20599 }
20600 \end_layout
20601
20602 \end_inset
20603
20604  and 
20605 \begin_inset Flex Code
20606 status collapsed
20607
20608 \begin_layout Plain Layout
20609
20610 \backslash
20611 end{
20612 \emph on
20613 LatexName
20614 \emph default
20615 }
20616 \end_layout
20617
20618 \end_inset
20619
20620  tags.
20621  Default is true.
20622 \change_inserted 731793113 1538674858
20623
20624 \end_layout
20625
20626 \begin_layout Description
20627
20628 \change_inserted 731793113 1538674891
20629 \begin_inset Flex Code
20630 status open
20631
20632 \begin_layout Plain Layout
20633
20634 \change_inserted 731793113 1538674863
20635 EditExternal
20636 \change_unchanged
20637
20638 \end_layout
20639
20640 \end_inset
20641
20642  [
20643 \emph on
20644 0
20645 \emph default
20646 ,1] Allow the contents of the inset to be edited externally (using whatever
20647  editor is defined for the document's output format).
20648 \change_unchanged
20649
20650 \end_layout
20651
20652 \begin_layout Description
20653 \begin_inset Flex Code
20654 status collapsed
20655
20656 \begin_layout Plain Layout
20657 End
20658 \end_layout
20659
20660 \end_inset
20661
20662  Required at the end of the 
20663 \begin_inset Flex Code
20664 status collapsed
20665
20666 \begin_layout Plain Layout
20667 InsetLayout
20668 \end_layout
20669
20670 \end_inset
20671
20672  declarations.
20673 \end_layout
20674
20675 \begin_layout Description
20676 \begin_inset Flex Code
20677 status collapsed
20678
20679 \begin_layout Plain Layout
20680 Font
20681 \end_layout
20682
20683 \end_inset
20684
20685  The font used for both the text body 
20686 \emph on
20687 and
20688 \emph default
20689  the label.
20690  See 
20691 \begin_inset CommandInset ref
20692 LatexCommand ref
20693 reference "subsec:Font-description"
20694
20695 \end_inset
20696
20697 .
20698  Note that defining this font automatically defines the 
20699 \begin_inset Flex Code
20700 status collapsed
20701
20702 \begin_layout Plain Layout
20703 LabelFont
20704 \end_layout
20705
20706 \end_inset
20707
20708  to the same value, so define this first and define 
20709 \begin_inset Flex Code
20710 status collapsed
20711
20712 \begin_layout Plain Layout
20713 LabelFont
20714 \end_layout
20715
20716 \end_inset
20717
20718  later if you want them to be different.
20719 \end_layout
20720
20721 \begin_layout Description
20722 \begin_inset Flex Code
20723 status collapsed
20724
20725 \begin_layout Plain Layout
20726 FixedWidthPreambleEncoding
20727 \end_layout
20728
20729 \end_inset
20730
20731  [
20732 \begin_inset Flex Code
20733 status collapsed
20734
20735 \begin_layout Plain Layout
20736
20737 \emph on
20738 0
20739 \end_layout
20740
20741 \end_inset
20742
20743 ,
20744 \begin_inset space \thinspace{}
20745 \end_inset
20746
20747
20748 \begin_inset Flex Code
20749 status collapsed
20750
20751 \begin_layout Plain Layout
20752 1
20753 \end_layout
20754
20755 \end_inset
20756
20757 ] Force a fixed width encoding for the translated contents of 
20758 \begin_inset Flex Code
20759 status collapsed
20760
20761 \begin_layout Plain Layout
20762 BabelPreamble
20763 \end_layout
20764
20765 \end_inset
20766
20767  and 
20768 \begin_inset Flex Code
20769 status collapsed
20770
20771 \begin_layout Plain Layout
20772 LangPreamble
20773 \end_layout
20774
20775 \end_inset
20776
20777  code generated by this layout.
20778  This is needed for special \SpecialChar LaTeX
20779 -packages like 
20780 \family typewriter
20781 listings
20782 \family default
20783  that do not work with variable width encodings such as 
20784 \family sans
20785 utf8
20786 \family default
20787 .
20788  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
20789  backends such as Xe\SpecialChar TeX
20790  or
20791  Lua\SpecialChar TeX
20792  are used.
20793 \end_layout
20794
20795 \begin_layout Description
20796 \begin_inset Flex Code
20797 status collapsed
20798
20799 \begin_layout Plain Layout
20800 ForceLocalFontSwitch
20801 \end_layout
20802
20803 \end_inset
20804
20805  [
20806 \begin_inset Flex Code
20807 status collapsed
20808
20809 \begin_layout Plain Layout
20810
20811 \emph on
20812 0
20813 \end_layout
20814
20815 \end_inset
20816
20817 ,
20818 \begin_inset space \thinspace{}
20819 \end_inset
20820
20821
20822 \begin_inset Flex Code
20823 status collapsed
20824
20825 \begin_layout Plain Layout
20826 1
20827 \end_layout
20828
20829 \end_inset
20830
20831 ] When using babel, always use a local font switch (
20832 \begin_inset Flex Code
20833 status collapsed
20834
20835 \begin_layout Plain Layout
20836
20837 \backslash
20838 foreignlanguage
20839 \end_layout
20840
20841 \end_inset
20842
20843 ), never a global one (such as 
20844 \begin_inset Flex Code
20845 status collapsed
20846
20847 \begin_layout Plain Layout
20848
20849 \backslash
20850 selectlanguage
20851 \end_layout
20852
20853 \end_inset
20854
20855 ).
20856 \end_layout
20857
20858 \begin_layout Description
20859 \begin_inset Flex Code
20860 status collapsed
20861
20862 \begin_layout Plain Layout
20863 ForceLTR
20864 \end_layout
20865
20866 \end_inset
20867
20868  [
20869 \begin_inset Flex Code
20870 status collapsed
20871
20872 \begin_layout Plain Layout
20873
20874 \emph on
20875 0
20876 \end_layout
20877
20878 \end_inset
20879
20880 ,
20881 \begin_inset space \thinspace{}
20882 \end_inset
20883
20884
20885 \begin_inset Flex Code
20886 status collapsed
20887
20888 \begin_layout Plain Layout
20889 1
20890 \end_layout
20891
20892 \end_inset
20893
20894 ] Force the 
20895 \begin_inset Quotes eld
20896 \end_inset
20897
20898 latex
20899 \begin_inset Quotes erd
20900 \end_inset
20901
20902  language, leading to Left-to-Right (Latin) output, e.
20903 \begin_inset space \thinspace{}
20904 \end_inset
20905
20906 g.
20907 \begin_inset space \space{}
20908 \end_inset
20909
20910 in \SpecialChar TeX
20911  code or URL.
20912  A kludge.
20913 \end_layout
20914
20915 \begin_layout Description
20916 \begin_inset Flex Code
20917 status collapsed
20918
20919 \begin_layout Plain Layout
20920 ForceOwnlines
20921 \end_layout
20922
20923 \end_inset
20924
20925  [
20926 \begin_inset Flex Code
20927 status collapsed
20928
20929 \begin_layout Plain Layout
20930
20931 \emph on
20932 0
20933 \end_layout
20934
20935 \end_inset
20936
20937 ,
20938 \begin_inset space \thinspace{}
20939 \end_inset
20940
20941
20942 \begin_inset Flex Code
20943 status collapsed
20944
20945 \begin_layout Plain Layout
20946 1
20947 \end_layout
20948
20949 \end_inset
20950
20951 ] Force a line break in the \SpecialChar LaTeX
20952  output before the inset starts and after the
20953  inset ends.
20954  This assures the inset itself is output on its own lines, for parsing purposes.
20955 \end_layout
20956
20957 \begin_layout Description
20958 \begin_inset Flex Code
20959 status collapsed
20960
20961 \begin_layout Plain Layout
20962 ForcePlain
20963 \end_layout
20964
20965 \end_inset
20966
20967  [
20968 \begin_inset Flex Code
20969 status collapsed
20970
20971 \begin_layout Plain Layout
20972
20973 \emph on
20974 0
20975 \end_layout
20976
20977 \end_inset
20978
20979 ,
20980 \begin_inset space \thinspace{}
20981 \end_inset
20982
20983
20984 \begin_inset Flex Code
20985 status collapsed
20986
20987 \begin_layout Plain Layout
20988 1
20989 \end_layout
20990
20991 \end_inset
20992
20993 ] Indicates whether the 
20994 \begin_inset Flex Code
20995 status collapsed
20996
20997 \begin_layout Plain Layout
20998 PlainLayout
20999 \end_layout
21000
21001 \end_inset
21002
21003  should be used or, instead, the user can change the paragraph style used
21004  in the inset.
21005  Default is false.
21006 \end_layout
21007
21008 \begin_layout Description
21009 \begin_inset Flex Code
21010 status collapsed
21011
21012 \begin_layout Plain Layout
21013 FreeSpacing
21014 \end_layout
21015
21016 \end_inset
21017
21018  [
21019 \begin_inset Flex Code
21020 status collapsed
21021
21022 \begin_layout Plain Layout
21023
21024 \emph on
21025 0
21026 \end_layout
21027
21028 \end_inset
21029
21030 ,
21031 \begin_inset space \thinspace{}
21032 \end_inset
21033
21034
21035 \begin_inset Flex Code
21036 status collapsed
21037
21038 \begin_layout Plain Layout
21039 1
21040 \end_layout
21041
21042 \end_inset
21043
21044 ] As with paragraph styles, see 
21045 \begin_inset CommandInset ref
21046 LatexCommand ref
21047 reference "subsec:Paragraph-Styles"
21048
21049 \end_inset
21050
21051 .
21052 \end_layout
21053
21054 \begin_layout Description
21055 \begin_inset Flex Code
21056 status collapsed
21057
21058 \begin_layout Plain Layout
21059 HTML*
21060 \end_layout
21061
21062 \end_inset
21063
21064  These tags control the XHTML output.
21065  See 
21066 \begin_inset CommandInset ref
21067 LatexCommand ref
21068 reference "sec:Tags-for-XHTML"
21069
21070 \end_inset
21071
21072 .
21073 \end_layout
21074
21075 \begin_layout Description
21076 \begin_inset Flex Code
21077 status collapsed
21078
21079 \begin_layout Plain Layout
21080 InToc
21081 \end_layout
21082
21083 \end_inset
21084
21085  [
21086 \begin_inset Flex Code
21087 status collapsed
21088
21089 \begin_layout Plain Layout
21090
21091 \emph on
21092 0
21093 \end_layout
21094
21095 \end_inset
21096
21097 ,
21098 \begin_inset space \thinspace{}
21099 \end_inset
21100
21101
21102 \begin_inset Flex Code
21103 status collapsed
21104
21105 \begin_layout Plain Layout
21106 1
21107 \end_layout
21108
21109 \end_inset
21110
21111 ] Whether to include the contents of this inset in the strings generated
21112  for the `Outline' pane for all table of contents, regardless of the AddToToc
21113  setting.
21114  One would not, for example, want the content of a footnote in a section
21115  header to be included in the TOC displayed in the outline, but one would
21116  normally want the content of a character style displayed.
21117  Default is false: not to include.
21118 \end_layout
21119
21120 \begin_layout Description
21121 \begin_inset Flex Code
21122 status collapsed
21123
21124 \begin_layout Plain Layout
21125 IsTocCaption
21126 \end_layout
21127
21128 \end_inset
21129
21130  [
21131 \begin_inset Flex Code
21132 status collapsed
21133
21134 \begin_layout Plain Layout
21135
21136 \emph on
21137 0
21138 \end_layout
21139
21140 \end_inset
21141
21142 ,
21143 \begin_inset space \thinspace{}
21144 \end_inset
21145
21146
21147 \begin_inset Flex Code
21148 status collapsed
21149
21150 \begin_layout Plain Layout
21151 1
21152 \end_layout
21153
21154 \end_inset
21155
21156 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
21157  of its contents in its item in the table of contents.
21158  Otherwise, only the label appears.
21159 \end_layout
21160
21161 \begin_layout Description
21162 \begin_inset Flex Code
21163 status collapsed
21164
21165 \begin_layout Plain Layout
21166 KeepEmpty
21167 \end_layout
21168
21169 \end_inset
21170
21171  [
21172 \emph on
21173
21174 \begin_inset Flex Code
21175 status collapsed
21176
21177 \begin_layout Plain Layout
21178 0
21179 \end_layout
21180
21181 \end_inset
21182
21183
21184 \emph default
21185 ,
21186 \begin_inset space \thinspace{}
21187 \end_inset
21188
21189
21190 \begin_inset Flex Code
21191 status collapsed
21192
21193 \begin_layout Plain Layout
21194 1
21195 \end_layout
21196
21197 \end_inset
21198
21199 ] As with paragraph styles, see 
21200 \begin_inset CommandInset ref
21201 LatexCommand ref
21202 reference "subsec:Paragraph-Styles"
21203
21204 \end_inset
21205
21206 .
21207 \end_layout
21208
21209 \begin_layout Description
21210 \begin_inset Flex Code
21211 status collapsed
21212
21213 \begin_layout Plain Layout
21214 LabelFont
21215 \end_layout
21216
21217 \end_inset
21218
21219  The font used for the label.
21220  See 
21221 \begin_inset CommandInset ref
21222 LatexCommand ref
21223 reference "subsec:Font-description"
21224
21225 \end_inset
21226
21227 .
21228  Note that this definition can never appear before 
21229 \begin_inset Flex Code
21230 status collapsed
21231
21232 \begin_layout Plain Layout
21233 Font
21234 \end_layout
21235
21236 \end_inset
21237
21238 , lest it be ineffective.
21239 \end_layout
21240
21241 \begin_layout Description
21242 \begin_inset Flex Code
21243 status collapsed
21244
21245 \begin_layout Plain Layout
21246 LabelString
21247 \end_layout
21248
21249 \end_inset
21250
21251  [
21252 \begin_inset Flex Code
21253 status collapsed
21254
21255 \begin_layout Plain Layout
21256 string
21257 \end_layout
21258
21259 \end_inset
21260
21261 =
21262 \begin_inset Quotes erd
21263 \end_inset
21264
21265
21266 \begin_inset Quotes erd
21267 \end_inset
21268
21269 ] What will be displayed on the button or elsewhere as the inset label.
21270  Some inset types (
21271 \begin_inset Flex Code
21272 status collapsed
21273
21274 \begin_layout Plain Layout
21275 \SpecialChar TeX
21276  code
21277 \end_layout
21278
21279 \end_inset
21280
21281  and 
21282 \begin_inset Flex Code
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286 Branch
21287 \end_layout
21288
21289 \end_inset
21290
21291 ) modify this label on the fly.
21292 \end_layout
21293
21294 \begin_layout Description
21295 \begin_inset Flex Code
21296 status collapsed
21297
21298 \begin_layout Plain Layout
21299 LangPreamble
21300 \end_layout
21301
21302 \end_inset
21303
21304  Language dependent preamble; see 
21305 \begin_inset CommandInset ref
21306 LatexCommand ref
21307 reference "subsec:I18n"
21308
21309 \end_inset
21310
21311 .
21312 \end_layout
21313
21314 \begin_layout Description
21315 \begin_inset Flex Code
21316 status collapsed
21317
21318 \begin_layout Plain Layout
21319 LatexName
21320 \end_layout
21321
21322 \end_inset
21323
21324  [
21325 \begin_inset Flex Code
21326 status collapsed
21327
21328 \begin_layout Plain Layout
21329 <name>
21330 \end_layout
21331
21332 \end_inset
21333
21334 ] The name of the corresponding \SpecialChar LaTeX
21335  stuff.
21336  Either the environment or command name.
21337 \end_layout
21338
21339 \begin_layout Description
21340 \begin_inset Flex Code
21341 status collapsed
21342
21343 \begin_layout Plain Layout
21344 LatexParam
21345 \end_layout
21346
21347 \end_inset
21348
21349  [
21350 \begin_inset Flex Code
21351 status collapsed
21352
21353 \begin_layout Plain Layout
21354 <parameter>
21355 \end_layout
21356
21357 \end_inset
21358
21359 ] The optional parameter for the corresponding 
21360 \begin_inset Flex Code
21361 status collapsed
21362
21363 \begin_layout Plain Layout
21364 LatexName
21365 \end_layout
21366
21367 \end_inset
21368
21369  stuff, including possible bracket pairs like 
21370 \begin_inset Flex Code
21371 status collapsed
21372
21373 \begin_layout Plain Layout
21374 []
21375 \end_layout
21376
21377 \end_inset
21378
21379 .
21380  This parameter cannot be changed from within \SpecialChar LyX
21381  (use 
21382 \begin_inset Flex Code
21383 status collapsed
21384
21385 \begin_layout Plain Layout
21386 Argument
21387 \end_layout
21388
21389 \end_inset
21390
21391  for customizable parameters).
21392  It will be output as is after all \SpecialChar LaTeX
21393  
21394 \begin_inset Flex Code
21395 status collapsed
21396
21397 \begin_layout Plain Layout
21398 Argument
21399 \end_layout
21400
21401 \end_inset
21402
21403 s.
21404 \end_layout
21405
21406 \begin_layout Description
21407 \begin_inset Flex Code
21408 status collapsed
21409
21410 \begin_layout Plain Layout
21411 LatexType
21412 \end_layout
21413
21414 \end_inset
21415
21416  [
21417 \begin_inset Flex Code
21418 status collapsed
21419
21420 \begin_layout Plain Layout
21421 Command, Environment, None
21422 \end_layout
21423
21424 \end_inset
21425
21426 ] How the style should be translated into \SpecialChar LaTeX
21427 .
21428 \begin_inset Foot
21429 status collapsed
21430
21431 \begin_layout Plain Layout
21432 \begin_inset Flex Code
21433 status collapsed
21434
21435 \begin_layout Plain Layout
21436 LatexType
21437 \end_layout
21438
21439 \end_inset
21440
21441  is perhaps a bit misleading, since these rules apply to SGML classes too.
21442  Visit the SGML class files for specific examples.
21443 \end_layout
21444
21445 \end_inset
21446
21447
21448 \end_layout
21449
21450 \begin_deeper
21451 \begin_layout Description
21452 \begin_inset Flex Code
21453 status collapsed
21454
21455 \begin_layout Plain Layout
21456 None
21457 \end_layout
21458
21459 \end_inset
21460
21461  means nothing special
21462 \end_layout
21463
21464 \begin_layout Description
21465 \begin_inset Flex Code
21466 status collapsed
21467
21468 \begin_layout Plain Layout
21469 Command
21470 \end_layout
21471
21472 \end_inset
21473
21474  means 
21475 \begin_inset Flex Code
21476 status collapsed
21477
21478 \begin_layout Plain Layout
21479
21480 \backslash
21481
21482 \emph on
21483 LatexName
21484 \emph default
21485 {\SpecialChar ldots
21486 }
21487 \end_layout
21488
21489 \end_inset
21490
21491
21492 \end_layout
21493
21494 \begin_layout Description
21495 \begin_inset Flex Code
21496 status collapsed
21497
21498 \begin_layout Plain Layout
21499 Environment
21500 \end_layout
21501
21502 \end_inset
21503
21504  means 
21505 \begin_inset Flex Code
21506 status collapsed
21507
21508 \begin_layout Plain Layout
21509
21510 \backslash
21511 begin{
21512 \emph on
21513 LatexName
21514 \emph default
21515 }\SpecialChar ldots
21516
21517 \backslash
21518 end{
21519 \emph on
21520 LatexName
21521 \emph default
21522 }
21523 \end_layout
21524
21525 \end_inset
21526
21527
21528 \end_layout
21529
21530 \begin_layout Standard
21531 Putting the last few things together, the \SpecialChar LaTeX
21532  output will be either: 
21533 \end_layout
21534
21535 \begin_layout LyX-Code
21536
21537 \backslash
21538 LatexName[LatexParam]{\SpecialChar ldots
21539 }
21540 \end_layout
21541
21542 \begin_layout Standard
21543 or: 
21544 \end_layout
21545
21546 \begin_layout LyX-Code
21547
21548 \backslash
21549 begin{LatexName}[LatexParam] \SpecialChar ldots
21550  
21551 \backslash
21552 end{LatexName}
21553 \end_layout
21554
21555 \begin_layout Standard
21556 depending upon the \SpecialChar LaTeX
21557  type.
21558 \end_layout
21559
21560 \end_deeper
21561 \begin_layout Description
21562 \begin_inset Flex Code
21563 status collapsed
21564
21565 \begin_layout Plain Layout
21566 LeftDelim
21567 \end_layout
21568
21569 \end_inset
21570
21571  [
21572 \begin_inset Flex Code
21573 status collapsed
21574
21575 \begin_layout Plain Layout
21576 string
21577 \end_layout
21578
21579 \end_inset
21580
21581 ] A string that is put at the beginning of the layout content.
21582  A line break in the output can be indicated by 
21583 \begin_inset Flex Code
21584 status collapsed
21585
21586 \begin_layout Plain Layout
21587 <br/>
21588 \end_layout
21589
21590 \end_inset
21591
21592 .
21593 \end_layout
21594
21595 \begin_layout Description
21596 \begin_inset Flex Code
21597 status collapsed
21598
21599 \begin_layout Plain Layout
21600 LyxType
21601 \end_layout
21602
21603 \end_inset
21604
21605  Can be 
21606 \begin_inset Flex Code
21607 status collapsed
21608
21609 \begin_layout Plain Layout
21610 charstyle
21611 \end_layout
21612
21613 \end_inset
21614
21615
21616 \begin_inset Flex Code
21617 status collapsed
21618
21619 \begin_layout Plain Layout
21620 custom
21621 \end_layout
21622
21623 \end_inset
21624
21625
21626 \change_deleted -584632292 1615846609
21627
21628 \begin_inset Flex Code
21629 status collapsed
21630
21631 \begin_layout Plain Layout
21632 element
21633 \end_layout
21634
21635 \end_inset
21636
21637  
21638 \change_unchanged
21639 or 
21640 \begin_inset Flex Code
21641 status collapsed
21642
21643 \begin_layout Plain Layout
21644 end
21645 \end_layout
21646
21647 \end_inset
21648
21649  (indicating a dummy definition ending definitions of charstyles, etc).
21650  This entry is required in and is only meaningful for Flex insets.
21651  Among other things, it determines on which menu this inset will appear.
21652  Setting 
21653 \begin_inset Flex Code
21654 status collapsed
21655
21656 \begin_layout Plain Layout
21657 LyxType
21658 \end_layout
21659
21660 \end_inset
21661
21662  to 
21663 \begin_inset Flex Code
21664 status collapsed
21665
21666 \begin_layout Plain Layout
21667 charstyle
21668 \end_layout
21669
21670 \end_inset
21671
21672  will automatically set 
21673 \begin_inset Flex Code
21674 status collapsed
21675
21676 \begin_layout Plain Layout
21677 MultiPar
21678 \end_layout
21679
21680 \end_inset
21681
21682  to false and 
21683 \begin_inset Flex Code
21684 status collapsed
21685
21686 \begin_layout Plain Layout
21687 ForcePlain
21688 \end_layout
21689
21690 \end_inset
21691
21692  to true.
21693  
21694 \begin_inset Flex Code
21695 status collapsed
21696
21697 \begin_layout Plain Layout
21698 MultiPar
21699 \end_layout
21700
21701 \end_inset
21702
21703  can be set to true, or 
21704 \begin_inset Flex Code
21705 status collapsed
21706
21707 \begin_layout Plain Layout
21708 ForcePlain
21709 \end_layout
21710
21711 \end_inset
21712
21713  to false, for 
21714 \begin_inset Flex Code
21715 status collapsed
21716
21717 \begin_layout Plain Layout
21718 charstyle
21719 \end_layout
21720
21721 \end_inset
21722
21723  insets by setting it 
21724 \emph on
21725 after
21726 \emph default
21727  you set the 
21728 \begin_inset Flex Code
21729 status collapsed
21730
21731 \begin_layout Plain Layout
21732 LyxType
21733 \end_layout
21734
21735 \end_inset
21736
21737 .
21738 \change_inserted -712698321 1555575738
21739
21740 \end_layout
21741
21742 \begin_layout Description
21743
21744 \change_inserted -712698321 1555575844
21745 \begin_inset Flex Code
21746 status collapsed
21747
21748 \begin_layout Plain Layout
21749
21750 \change_inserted -712698321 1555575740
21751 MenuString
21752 \change_unchanged
21753
21754 \end_layout
21755
21756 \end_inset
21757
21758  
21759 \begin_inset Flex Code
21760 status collapsed
21761
21762 \begin_layout Plain Layout
21763
21764 \change_inserted -712698321 1555575740
21765 [string]
21766 \change_unchanged
21767
21768 \end_layout
21769
21770 \end_inset
21771
21772  A dedicated string for the menu.
21773  You can define an accelerator by appending the respective character to
21774  the string, divided by 
21775 \begin_inset Quotes eld
21776 \end_inset
21777
21778 |
21779 \begin_inset Quotes erd
21780 \end_inset
21781
21782  (e.
21783 \begin_inset space \thinspace{}
21784 \end_inset
21785
21786 g.
21787 \begin_inset space \space{}
21788 \end_inset
21789
21790
21791 \begin_inset Quotes eld
21792 \end_inset
21793
21794
21795 \begin_inset Flex Code
21796 status collapsed
21797
21798 \begin_layout Plain Layout
21799
21800 \change_inserted -712698321 1555575781
21801 My Inset|M
21802 \change_unchanged
21803
21804 \end_layout
21805
21806 \end_inset
21807
21808
21809 \begin_inset Quotes erd
21810 \end_inset
21811
21812 ).
21813  This specification is optional.
21814  If it is not given the inset name as specified in the type declaration
21815  will be used instead for the menu.
21816 \change_unchanged
21817
21818 \end_layout
21819
21820 \begin_layout Description
21821 \begin_inset Flex Code
21822 status collapsed
21823
21824 \begin_layout Plain Layout
21825 MultiPar
21826 \end_layout
21827
21828 \end_inset
21829
21830  [
21831 \begin_inset Flex Code
21832 status collapsed
21833
21834 \begin_layout Plain Layout
21835
21836 \emph on
21837 0
21838 \end_layout
21839
21840 \end_inset
21841
21842 ,
21843 \begin_inset space \thinspace{}
21844 \end_inset
21845
21846
21847 \begin_inset Flex Code
21848 status collapsed
21849
21850 \begin_layout Plain Layout
21851 1
21852 \end_layout
21853
21854 \end_inset
21855
21856 ] Whether multiple paragraphs are permitted in this inset.
21857  This will also set 
21858 \begin_inset Flex Code
21859 status collapsed
21860
21861 \begin_layout Plain Layout
21862 CustomPars
21863 \end_layout
21864
21865 \end_inset
21866
21867  to the same value and 
21868 \begin_inset Flex Code
21869 status collapsed
21870
21871 \begin_layout Plain Layout
21872 ForcePlain
21873 \end_layout
21874
21875 \end_inset
21876
21877  to the opposite value.
21878  These can be reset to other values, if they are used 
21879 \emph on
21880 after
21881 \emph default
21882  
21883 \begin_inset Flex Code
21884 status collapsed
21885
21886 \begin_layout Plain Layout
21887 MultiPar
21888 \end_layout
21889
21890 \end_inset
21891
21892 .
21893  Default is true.
21894 \end_layout
21895
21896 \begin_layout Description
21897 \begin_inset Flex Code
21898 status collapsed
21899
21900 \begin_layout Plain Layout
21901 NeedProtect
21902 \end_layout
21903
21904 \end_inset
21905
21906  [
21907 \begin_inset Flex Code
21908 status collapsed
21909
21910 \begin_layout Plain Layout
21911
21912 \emph on
21913 0
21914 \end_layout
21915
21916 \end_inset
21917
21918 ,
21919 \begin_inset space \thinspace{}
21920 \end_inset
21921
21922
21923 \begin_inset Flex Code
21924 status collapsed
21925
21926 \begin_layout Plain Layout
21927 1
21928 \end_layout
21929
21930 \end_inset
21931
21932 ] Whether fragile commands in this inset should be 
21933 \begin_inset Flex Code
21934 status collapsed
21935
21936 \begin_layout Plain Layout
21937
21938 \backslash
21939 protect
21940 \end_layout
21941
21942 \end_inset
21943
21944 'ed.
21945  (Note: This is 
21946 \emph on
21947 not
21948 \emph default
21949  whether the command should itself be protected.) Default is false.
21950 \change_inserted -712698321 1523633958
21951
21952 \end_layout
21953
21954 \begin_layout Description
21955
21956 \change_inserted -712698321 1552395786
21957 \begin_inset Flex Code
21958 status collapsed
21959
21960 \begin_layout Plain Layout
21961
21962 \change_inserted -712698321 1523633961
21963 NeedCProtect
21964 \change_unchanged
21965
21966 \end_layout
21967
21968 \end_inset
21969
21970  [
21971 \begin_inset Flex Code
21972 status collapsed
21973
21974 \begin_layout Plain Layout
21975
21976 \change_inserted -712698321 1523633958
21977
21978 \emph on
21979 0
21980 \change_unchanged
21981
21982 \end_layout
21983
21984 \end_inset
21985
21986 ,
21987 \begin_inset space \thinspace{}
21988 \end_inset
21989
21990
21991 \begin_inset Flex Code
21992 status collapsed
21993
21994 \begin_layout Plain Layout
21995
21996 \change_inserted -712698321 1523633958
21997 1
21998 \change_unchanged
21999
22000 \end_layout
22001
22002 \end_inset
22003
22004 ] This causes macros that contain this inset to be protected with 
22005 \begin_inset Flex Code
22006 status collapsed
22007
22008 \begin_layout Plain Layout
22009
22010 \change_inserted -712698321 1523634038
22011
22012 \backslash
22013 cprotect
22014 \change_unchanged
22015
22016 \end_layout
22017
22018 \end_inset
22019
22020  (cf.
22021  package 
22022 \family sans
22023 cprotect
22024 \family default
22025 ) if necessary and thus allows (some) verbatim stuff in macros.
22026  Default is false.
22027 \end_layout
22028
22029 \begin_layout Description
22030
22031 \change_inserted -712698321 1555579651
22032 \begin_inset Flex Code
22033 status collapsed
22034
22035 \begin_layout Plain Layout
22036
22037 \change_inserted -712698321 1552395787
22038 NeedMBoxProtect
22039 \change_unchanged
22040
22041 \end_layout
22042
22043 \end_inset
22044
22045  [
22046 \begin_inset Flex Code
22047 status collapsed
22048
22049 \begin_layout Plain Layout
22050
22051 \change_inserted -712698321 1552395787
22052
22053 \emph on
22054 0
22055 \change_unchanged
22056
22057 \end_layout
22058
22059 \end_inset
22060
22061 ,
22062 \begin_inset space \thinspace{}
22063 \end_inset
22064
22065
22066 \begin_inset Flex Code
22067 status collapsed
22068
22069 \begin_layout Plain Layout
22070
22071 \change_inserted -712698321 1552395787
22072 1
22073 \change_unchanged
22074
22075 \end_layout
22076
22077 \end_inset
22078
22079 ] Whether specific commands in this inset (such as 
22080 \begin_inset Flex Code
22081 status collapsed
22082
22083 \begin_layout Plain Layout
22084
22085 \change_inserted -712698321 1552395787
22086
22087 \backslash
22088 cite
22089 \change_unchanged
22090
22091 \end_layout
22092
22093 \end_inset
22094
22095  and 
22096 \begin_inset Flex Code
22097 status collapsed
22098
22099 \begin_layout Plain Layout
22100
22101 \change_inserted -712698321 1552395787
22102
22103 \backslash
22104 ref
22105 \change_unchanged
22106
22107 \end_layout
22108
22109 \end_inset
22110
22111 ) should be protected in an 
22112 \begin_inset Flex Code
22113 status collapsed
22114
22115 \begin_layout Plain Layout
22116
22117 \change_inserted -712698321 1552395787
22118
22119 \backslash
22120 mbox
22121 \change_unchanged
22122
22123 \end_layout
22124
22125 \end_inset
22126
22127 .
22128  This is particularly needed for insets that draw on 
22129 \family sans
22130 ulem
22131 \family default
22132  or 
22133 \family sans
22134 soul
22135 \family default
22136  commands which parse their content in complex ways.
22137  Default is false.
22138 \end_layout
22139
22140 \begin_layout Description
22141
22142 \change_inserted -712698321 1555579742
22143 \begin_inset Flex Code
22144 status collapsed
22145
22146 \begin_layout Plain Layout
22147
22148 \change_inserted -712698321 1555579658
22149 NewlineCmd
22150 \change_unchanged
22151
22152 \end_layout
22153
22154 \end_inset
22155
22156  
22157 \begin_inset Flex Code
22158 status collapsed
22159
22160 \begin_layout Plain Layout
22161
22162 \change_inserted -712698321 1555579651
22163 [string]
22164 \change_unchanged
22165
22166 \end_layout
22167
22168 \end_inset
22169
22170  Option to define a different command (from the default 
22171 \begin_inset Flex Code
22172 status collapsed
22173
22174 \begin_layout Plain Layout
22175
22176 \change_inserted -712698321 1555579742
22177
22178 \backslash
22179
22180 \backslash
22181
22182 \change_unchanged
22183
22184 \end_layout
22185
22186 \end_inset
22187
22188 ) to be used for line breaks.
22189  The initial backslash must not be specified.
22190 \change_unchanged
22191
22192 \end_layout
22193
22194 \begin_layout Description
22195 \begin_inset Flex Code
22196 status collapsed
22197
22198 \begin_layout Plain Layout
22199 NoInsetLayout
22200 \end_layout
22201
22202 \end_inset
22203
22204  [
22205 \begin_inset Flex Code
22206 status collapsed
22207
22208 \begin_layout Plain Layout
22209 <layout>
22210 \end_layout
22211
22212 \end_inset
22213
22214 ] Deletes an existing 
22215 \begin_inset Flex Code
22216 status collapsed
22217
22218 \begin_layout Plain Layout
22219 InsetLayout
22220 \end_layout
22221
22222 \end_inset
22223
22224 .
22225 \end_layout
22226
22227 \begin_layout Description
22228 \begin_inset Flex Code
22229 status collapsed
22230
22231 \begin_layout Plain Layout
22232 ObsoletedBy
22233 \end_layout
22234
22235 \end_inset
22236
22237  [
22238 \begin_inset Flex Code
22239 status collapsed
22240
22241 \begin_layout Plain Layout
22242 <layout>
22243 \end_layout
22244
22245 \end_inset
22246
22247 ] Name of an 
22248 \begin_inset Flex Code
22249 status collapsed
22250
22251 \begin_layout Plain Layout
22252 InsetLayout
22253 \end_layout
22254
22255 \end_inset
22256
22257  that has replaced this 
22258 \begin_inset Flex Code
22259 status collapsed
22260
22261 \begin_layout Plain Layout
22262 InsetLayout
22263 \end_layout
22264
22265 \end_inset
22266
22267 .
22268  This is used to rename an 
22269 \begin_inset Flex Code
22270 status collapsed
22271
22272 \begin_layout Plain Layout
22273 InsetLayout
22274 \end_layout
22275
22276 \end_inset
22277
22278 , while keeping backward compatibility.
22279 \change_inserted -712698321 1559491850
22280
22281 \end_layout
22282
22283 \begin_layout Description
22284
22285 \change_inserted -712698321 1559492002
22286 \begin_inset Flex Code
22287 status collapsed
22288
22289 \begin_layout Plain Layout
22290
22291 \change_inserted -712698321 1559491854
22292 ParbreakIgnored
22293 \change_unchanged
22294
22295 \end_layout
22296
22297 \end_inset
22298
22299  [
22300 \begin_inset Flex Code
22301 status collapsed
22302
22303 \begin_layout Plain Layout
22304
22305 \change_inserted -712698321 1559491850
22306
22307 \emph on
22308 0
22309 \change_unchanged
22310
22311 \end_layout
22312
22313 \end_inset
22314
22315 ,
22316 \begin_inset space \thinspace{}
22317 \end_inset
22318
22319
22320 \begin_inset Flex Code
22321 status collapsed
22322
22323 \begin_layout Plain Layout
22324
22325 \change_inserted -712698321 1559491850
22326 1
22327 \change_unchanged
22328
22329 \end_layout
22330
22331 \end_inset
22332
22333 ] If this is set to 
22334 \begin_inset Flex Code
22335 status collapsed
22336
22337 \begin_layout Plain Layout
22338
22339 \change_inserted -712698321 1559491881
22340 1
22341 \change_unchanged
22342
22343 \end_layout
22344
22345 \end_inset
22346
22347 , paragraph breaks will be ignored in the output.
22348  This might be useful for insets where the content should be alignable on
22349  different lines only in the \SpecialChar LyX
22350  workarea, without any effect in the output.
22351 \change_unchanged
22352
22353 \end_layout
22354
22355 \begin_layout Description
22356 \begin_inset Flex Code
22357 status collapsed
22358
22359 \begin_layout Plain Layout
22360 ParbreakIsNewline
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 PassThru
22408 \end_layout
22409
22410 \end_inset
22411
22412  [
22413 \begin_inset Flex Code
22414 status collapsed
22415
22416 \begin_layout Plain Layout
22417
22418 \emph on
22419 0
22420 \end_layout
22421
22422 \end_inset
22423
22424 ,
22425 \begin_inset space \thinspace{}
22426 \end_inset
22427
22428
22429 \begin_inset Flex Code
22430 status collapsed
22431
22432 \begin_layout Plain Layout
22433 1
22434 \end_layout
22435
22436 \end_inset
22437
22438 ] As with paragraph styles, see 
22439 \begin_inset CommandInset ref
22440 LatexCommand ref
22441 reference "subsec:Paragraph-Styles"
22442
22443 \end_inset
22444
22445 .
22446  Default is false.
22447 \end_layout
22448
22449 \begin_layout Description
22450 \begin_inset Flex Code
22451 status collapsed
22452
22453 \begin_layout Plain Layout
22454 Preamble
22455 \end_layout
22456
22457 \end_inset
22458
22459  As with paragraph styles, see 
22460 \begin_inset CommandInset ref
22461 LatexCommand ref
22462 reference "subsec:Paragraph-Styles"
22463
22464 \end_inset
22465
22466 .
22467 \end_layout
22468
22469 \begin_layout Description
22470 \begin_inset Flex Code
22471 status collapsed
22472
22473 \begin_layout Plain Layout
22474 RefPrefix
22475 \end_layout
22476
22477 \end_inset
22478
22479  [
22480 \begin_inset Flex Code
22481 status collapsed
22482
22483 \begin_layout Plain Layout
22484 string
22485 \end_layout
22486
22487 \end_inset
22488
22489 ] The prefix to use when creating labels referring to insets of this type.
22490  This allows the use of formatted references.
22491 \end_layout
22492
22493 \begin_layout Description
22494 \begin_inset Flex Code
22495 status collapsed
22496
22497 \begin_layout Plain Layout
22498 Requires
22499 \end_layout
22500
22501 \end_inset
22502
22503  [
22504 \begin_inset Flex Code
22505 status collapsed
22506
22507 \begin_layout Plain Layout
22508 string
22509 \end_layout
22510
22511 \end_inset
22512
22513 ] As with paragraph styles, see 
22514 \begin_inset CommandInset ref
22515 LatexCommand ref
22516 reference "subsec:Paragraph-Styles"
22517
22518 \end_inset
22519
22520 .
22521 \end_layout
22522
22523 \begin_layout Description
22524 \begin_inset Flex Code
22525 status collapsed
22526
22527 \begin_layout Plain Layout
22528 ResetArgs
22529 \end_layout
22530
22531 \end_inset
22532
22533  [
22534 \begin_inset Flex Code
22535 status collapsed
22536
22537 \begin_layout Plain Layout
22538
22539 \emph on
22540 0
22541 \end_layout
22542
22543 \end_inset
22544
22545 ,
22546 \begin_inset space \thinspace{}
22547 \end_inset
22548
22549
22550 \begin_inset Flex Code
22551 status collapsed
22552
22553 \begin_layout Plain Layout
22554 1
22555 \end_layout
22556
22557 \end_inset
22558
22559 ] Resets the \SpecialChar LaTeX
22560  arguments of this layout (as defined via the 
22561 \begin_inset Flex Code
22562 status collapsed
22563
22564 \begin_layout Plain Layout
22565 Argument
22566 \end_layout
22567
22568 \end_inset
22569
22570  tag).
22571  This is useful if you have copied a style via 
22572 \begin_inset Flex Code
22573 status collapsed
22574
22575 \begin_layout Plain Layout
22576 CopyStyle
22577 \end_layout
22578
22579 \end_inset
22580
22581 , but you do not want to inherit its (required and optional) arguments.
22582 \end_layout
22583
22584 \begin_layout Description
22585 \begin_inset Flex Code
22586 status collapsed
22587
22588 \begin_layout Plain Layout
22589 ResetsFont
22590 \end_layout
22591
22592 \end_inset
22593
22594  [
22595 \begin_inset Flex Code
22596 status collapsed
22597
22598 \begin_layout Plain Layout
22599
22600 \emph on
22601 0
22602 \end_layout
22603
22604 \end_inset
22605
22606 ,
22607 \begin_inset space \thinspace{}
22608 \end_inset
22609
22610
22611 \begin_inset Flex Code
22612 status collapsed
22613
22614 \begin_layout Plain Layout
22615 1
22616 \end_layout
22617
22618 \end_inset
22619
22620
22621 \change_inserted -712698321 1597733473
22622 If 
22623 \begin_inset Flex Code
22624 status collapsed
22625
22626 \begin_layout Plain Layout
22627
22628 \change_inserted -712698321 1597732178
22629 1
22630 \change_unchanged
22631
22632 \end_layout
22633
22634 \end_inset
22635
22636 , font changes are redone inside the respective inset (in the output) even
22637  if the inset itself is in the context of this font changes (e.
22638 \begin_inset space \thinspace{}
22639 \end_inset
22640
22641 g., 
22642 \begin_inset Flex Code
22643 status collapsed
22644
22645 \begin_layout Plain Layout
22646
22647 \change_inserted -712698321 1597733683
22648
22649 \backslash
22650 textbf{Sourrounding text 
22651 \backslash
22652 myinset{
22653 \backslash
22654 textbf{content}}\SpecialChar ldots
22655 }
22656 \change_unchanged
22657
22658 \end_layout
22659
22660 \end_inset
22661
22662  rather than 
22663 \begin_inset Flex Code
22664 status collapsed
22665
22666 \begin_layout Plain Layout
22667
22668 \change_inserted -712698321 1597733686
22669
22670 \backslash
22671 textbf{Sourrounding text 
22672 \backslash
22673 myinset{content}\SpecialChar ldots
22674 }
22675 \change_unchanged
22676
22677 \end_layout
22678
22679 \end_inset
22680
22681 .
22682  Setting this makes sense for commands that internally reset font settings
22683  (e.
22684 \begin_inset space \thinspace{}
22685 \end_inset
22686
22687 g., footnotes).
22688  Note that wrongly setting this might lead to unwanted result (e.
22689 \begin_inset space \thinspace{}
22690 \end_inset
22691
22692 g., with 
22693 \begin_inset Flex Code
22694 status collapsed
22695
22696 \begin_layout Plain Layout
22697
22698 \change_inserted -712698321 1597733688
22699
22700 \backslash
22701 emph{Sourrounding text 
22702 \backslash
22703 myinset{
22704 \backslash
22705 emph{content}}\SpecialChar ldots
22706 }
22707 \change_unchanged
22708
22709 \end_layout
22710
22711 \end_inset
22712
22713 , content is upright, as 
22714 \begin_inset Flex Code
22715 status collapsed
22716
22717 \begin_layout Plain Layout
22718
22719 \change_inserted -712698321 1597733278
22720
22721 \backslash
22722 emph
22723 \change_unchanged
22724
22725 \end_layout
22726
22727 \end_inset
22728
22729  toggles.
22730  
22731 \change_deleted -712698321 1597733283
22732 Whether this inset should use the font of its surrounding environment or
22733  uses its own.
22734  
22735 \change_unchanged
22736 Default is 
22737 \change_deleted -712698321 1597733290
22738 false
22739 \change_inserted -712698321 1597733290
22740
22741 \begin_inset Flex Code
22742 status collapsed
22743
22744 \begin_layout Plain Layout
22745
22746 \change_inserted -712698321 1597733292
22747 0
22748 \change_unchanged
22749
22750 \end_layout
22751
22752 \end_inset
22753
22754
22755 \change_unchanged
22756
22757 \change_deleted -712698321 1597733327
22758 use the font of the surrounding environment
22759 \change_inserted -712698321 1597733343
22760 font changes are not redone inside the inset
22761 \change_unchanged
22762 .
22763 \end_layout
22764
22765 \begin_layout Description
22766 \begin_inset Flex Code
22767 status collapsed
22768
22769 \begin_layout Plain Layout
22770 RightDelim
22771 \end_layout
22772
22773 \end_inset
22774
22775  [
22776 \begin_inset Flex Code
22777 status collapsed
22778
22779 \begin_layout Plain Layout
22780 string
22781 \end_layout
22782
22783 \end_inset
22784
22785 ] A string that is put at the end of the layout content.
22786  A line break in the output can be indicated by 
22787 \begin_inset Flex Code
22788 status collapsed
22789
22790 \begin_layout Plain Layout
22791 <br/>
22792 \end_layout
22793
22794 \end_inset
22795
22796 .
22797 \end_layout
22798
22799 \begin_layout Description
22800 \begin_inset Flex Code
22801 status collapsed
22802
22803 \begin_layout Plain Layout
22804 Spellcheck
22805 \end_layout
22806
22807 \end_inset
22808
22809  [
22810 \begin_inset Flex Code
22811 status collapsed
22812
22813 \begin_layout Plain Layout
22814 0
22815 \end_layout
22816
22817 \end_inset
22818
22819 ,
22820 \begin_inset space \thinspace{}
22821 \end_inset
22822
22823
22824 \begin_inset Flex Code
22825 status collapsed
22826
22827 \begin_layout Plain Layout
22828
22829 \emph on
22830 1
22831 \end_layout
22832
22833 \end_inset
22834
22835 ] Allow spell-checking the contents of this inset.
22836  Default is true.
22837 \change_inserted -584632292 1615846659
22838
22839 \end_layout
22840
22841 \begin_layout Subsection
22842
22843 \change_inserted -584632292 1615846729
22844 Arguments
22845 \begin_inset CommandInset label
22846 LatexCommand label
22847 name "subsec:Arguments"
22848
22849 \end_inset
22850
22851
22852 \end_layout
22853
22854 \begin_layout Standard
22855
22856 \change_inserted -584632292 1615846807
22857 Both paragraph styles and inset layouts allow for 
22858 \emph on
22859 arguments
22860 \emph default
22861  as well as the main content.
22862  This is especially useful for things like section headings and only makes
22863  sense with \SpecialChar LaTeX
22864 .
22865  Each (optional or required) argument of a command or environment—except
22866  for the required argument that is associated with the content—has a separate
22867  definition, where the number specifies the order of the arguments.
22868  The definition must end with 
22869 \begin_inset Flex Code
22870 status collapsed
22871
22872 \begin_layout Plain Layout
22873
22874 \change_inserted -584632292 1615846730
22875 EndArgument
22876 \change_unchanged
22877
22878 \end_layout
22879
22880 \end_inset
22881
22882 .
22883  So a command with two optional arguments looks like:
22884 \end_layout
22885
22886 \begin_layout Quote
22887
22888 \change_inserted -584632292 1615846730
22889
22890 \family typewriter
22891 Argument 1
22892 \end_layout
22893
22894 \begin_layout Quote
22895
22896 \change_inserted -584632292 1615846730
22897
22898 \family typewriter
22899 ...
22900 \end_layout
22901
22902 \begin_layout Quote
22903
22904 \change_inserted -584632292 1615846730
22905
22906 \family typewriter
22907 EndArgument
22908 \end_layout
22909
22910 \begin_layout Quote
22911
22912 \change_inserted -584632292 1615846730
22913
22914 \family typewriter
22915 Argument 2
22916 \end_layout
22917
22918 \begin_layout Quote
22919
22920 \change_inserted -584632292 1615846730
22921
22922 \family typewriter
22923 ...
22924 \end_layout
22925
22926 \begin_layout Quote
22927
22928 \change_inserted -584632292 1615846730
22929
22930 \family typewriter
22931 EndArgument
22932 \end_layout
22933
22934 \begin_layout Standard
22935
22936 \change_inserted -584632292 1615846730
22937 Inside the 
22938 \begin_inset Flex Code
22939 status collapsed
22940
22941 \begin_layout Plain Layout
22942
22943 \change_inserted -584632292 1615846730
22944 Argument
22945 \change_unchanged
22946
22947 \end_layout
22948
22949 \end_inset
22950
22951  definition, the following specifications are possible:
22952 \end_layout
22953
22954 \begin_layout Itemize
22955
22956 \change_inserted -584632292 1615846730
22957 \begin_inset Flex Code
22958 status collapsed
22959
22960 \begin_layout Plain Layout
22961
22962 \change_inserted -584632292 1615846730
22963 LabelString
22964 \change_unchanged
22965
22966 \end_layout
22967
22968 \end_inset
22969
22970  
22971 \begin_inset Flex Code
22972 status collapsed
22973
22974 \begin_layout Plain Layout
22975
22976 \change_inserted -584632292 1615846730
22977 [string]
22978 \change_unchanged
22979
22980 \end_layout
22981
22982 \end_inset
22983
22984  The string that will appear both in the menu (to insert this argument)
22985  and on the argument inset button (unless you also specify a separate 
22986 \begin_inset Flex Code
22987 status collapsed
22988
22989 \begin_layout Plain Layout
22990
22991 \change_inserted -584632292 1615846730
22992 MenuString
22993 \change_unchanged
22994
22995 \end_layout
22996
22997 \end_inset
22998
22999 ).
23000  For the menu, you can define an accelerator by appending the respective
23001  character to the string, divided by 
23002 \begin_inset Quotes eld
23003 \end_inset
23004
23005 |
23006 \begin_inset Quotes erd
23007 \end_inset
23008
23009  (e.
23010 \begin_inset space \thinspace{}
23011 \end_inset
23012
23013 g.
23014 \begin_inset space \space{}
23015 \end_inset
23016
23017
23018 \begin_inset Quotes eld
23019 \end_inset
23020
23021
23022 \begin_inset Flex Code
23023 status collapsed
23024
23025 \begin_layout Plain Layout
23026
23027 \change_inserted -584632292 1615846730
23028 Short Title|S
23029 \change_unchanged
23030
23031 \end_layout
23032
23033 \end_inset
23034
23035
23036 \begin_inset Quotes erd
23037 \end_inset
23038
23039 ).
23040 \end_layout
23041
23042 \begin_layout Itemize
23043
23044 \change_inserted -584632292 1615846730
23045 \begin_inset Flex Code
23046 status collapsed
23047
23048 \begin_layout Plain Layout
23049
23050 \change_inserted -584632292 1615846730
23051 MenuString
23052 \change_unchanged
23053
23054 \end_layout
23055
23056 \end_inset
23057
23058  
23059 \begin_inset Flex Code
23060 status collapsed
23061
23062 \begin_layout Plain Layout
23063
23064 \change_inserted -584632292 1615846730
23065 [string]
23066 \change_unchanged
23067
23068 \end_layout
23069
23070 \end_inset
23071
23072  A separate string for the menu.
23073  You can define an accelerator by appending the respective character to
23074  the string, divided by 
23075 \begin_inset Quotes eld
23076 \end_inset
23077
23078 |
23079 \begin_inset Quotes erd
23080 \end_inset
23081
23082  (e.
23083 \begin_inset space \thinspace{}
23084 \end_inset
23085
23086 g.
23087 \begin_inset space \space{}
23088 \end_inset
23089
23090
23091 \begin_inset Quotes eld
23092 \end_inset
23093
23094
23095 \begin_inset Flex Code
23096 status collapsed
23097
23098 \begin_layout Plain Layout
23099
23100 \change_inserted -584632292 1615846730
23101 Short Title|S
23102 \change_unchanged
23103
23104 \end_layout
23105
23106 \end_inset
23107
23108
23109 \begin_inset Quotes erd
23110 \end_inset
23111
23112 ).
23113  This specification is optional.
23114  If it is not given the 
23115 \begin_inset Flex Code
23116 status collapsed
23117
23118 \begin_layout Plain Layout
23119
23120 \change_inserted -584632292 1615846730
23121 LabelString
23122 \change_unchanged
23123
23124 \end_layout
23125
23126 \end_inset
23127
23128  will be used instead for the menu.
23129 \end_layout
23130
23131 \begin_layout Itemize
23132
23133 \change_inserted -584632292 1615846730
23134 \begin_inset Flex Code
23135 status collapsed
23136
23137 \begin_layout Plain Layout
23138
23139 \change_inserted -584632292 1615846730
23140 Tooltip
23141 \change_unchanged
23142
23143 \end_layout
23144
23145 \end_inset
23146
23147  
23148 \begin_inset Flex Code
23149 status collapsed
23150
23151 \begin_layout Plain Layout
23152
23153 \change_inserted -584632292 1615846730
23154 [string]
23155 \change_unchanged
23156
23157 \end_layout
23158
23159 \end_inset
23160
23161  A longer explanatory text that appears in the tooltip when hovering over
23162  the argument inset.
23163 \end_layout
23164
23165 \begin_layout Itemize
23166
23167 \change_inserted -584632292 1615846730
23168 \begin_inset Flex Code
23169 status collapsed
23170
23171 \begin_layout Plain Layout
23172
23173 \change_inserted -584632292 1615846730
23174 Mandatory
23175 \change_unchanged
23176
23177 \end_layout
23178
23179 \end_inset
23180
23181  [
23182 \begin_inset Flex Code
23183 status collapsed
23184
23185 \begin_layout Plain Layout
23186
23187 \change_inserted -584632292 1615846730
23188
23189 \emph on
23190 0
23191 \change_unchanged
23192
23193 \end_layout
23194
23195 \end_inset
23196
23197 ,
23198 \begin_inset space \thinspace{}
23199 \end_inset
23200
23201
23202 \begin_inset Flex Code
23203 status collapsed
23204
23205 \begin_layout Plain Layout
23206
23207 \change_inserted -584632292 1615846730
23208 1
23209 \change_unchanged
23210
23211 \end_layout
23212
23213 \end_inset
23214
23215 ] Declare if this is a mandatory (1) or an optional (0) argument.
23216  Mandatory arguments will be output empty if not given, while optional arguments
23217  will not be output at all.
23218  By default, mandatory arguments are delimited by 
23219 \begin_inset Flex Code
23220 status collapsed
23221
23222 \begin_layout Plain Layout
23223
23224 \change_inserted -584632292 1615846730
23225 {...}
23226 \change_unchanged
23227
23228 \end_layout
23229
23230 \end_inset
23231
23232 , while optional arguments are delimited by 
23233 \begin_inset Flex Code
23234 status collapsed
23235
23236 \begin_layout Plain Layout
23237
23238 \change_inserted -584632292 1615846730
23239 [...]
23240 \change_unchanged
23241
23242 \end_layout
23243
23244 \end_inset
23245
23246
23247 \end_layout
23248
23249 \begin_layout Itemize
23250
23251 \change_inserted -584632292 1615846730
23252 \begin_inset Flex Code
23253 status collapsed
23254
23255 \begin_layout Plain Layout
23256
23257 \change_inserted -584632292 1615846730
23258 NewlineCmd
23259 \change_unchanged
23260
23261 \end_layout
23262
23263 \end_inset
23264
23265  
23266 \begin_inset Flex Code
23267 status collapsed
23268
23269 \begin_layout Plain Layout
23270
23271 \change_inserted -584632292 1615846730
23272 [string]
23273 \change_unchanged
23274
23275 \end_layout
23276
23277 \end_inset
23278
23279  Option to define a different command (from the default 
23280 \begin_inset Flex Code
23281 status collapsed
23282
23283 \begin_layout Plain Layout
23284
23285 \change_inserted -584632292 1615846730
23286
23287 \backslash
23288
23289 \backslash
23290
23291 \change_unchanged
23292
23293 \end_layout
23294
23295 \end_inset
23296
23297 ) to be used for line breaks.
23298  The initial backslash must not be specified.
23299 \end_layout
23300
23301 \begin_layout Itemize
23302
23303 \change_inserted -584632292 1615846730
23304 \begin_inset Flex Code
23305 status collapsed
23306
23307 \begin_layout Plain Layout
23308
23309 \change_inserted -584632292 1615846730
23310 Requires
23311 \change_unchanged
23312
23313 \end_layout
23314
23315 \end_inset
23316
23317  
23318 \begin_inset Flex Code
23319 status collapsed
23320
23321 \begin_layout Plain Layout
23322
23323 \change_inserted -584632292 1615846730
23324 [int=0]
23325 \change_unchanged
23326
23327 \end_layout
23328
23329 \end_inset
23330
23331  defines another argument (by its number) which this argument requires to
23332  be output if it is itself output.
23333  E.
23334 \begin_inset space \thinspace{}
23335 \end_inset
23336
23337 g., in \SpecialChar LaTeX
23338  commands, optional arguments often require previous optional arguments
23339  to be output (at least empty), as in 
23340 \begin_inset Flex Code
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344
23345 \change_inserted -584632292 1615846730
23346
23347 \backslash
23348 command[][argument]{text}
23349 \change_unchanged
23350
23351 \end_layout
23352
23353 \end_inset
23354
23355 .
23356  This can be achieved by the statement 
23357 \begin_inset Flex Code
23358 status collapsed
23359
23360 \begin_layout Plain Layout
23361
23362 \change_inserted -584632292 1615846730
23363 Requires 1
23364 \change_unchanged
23365
23366 \end_layout
23367
23368 \end_inset
23369
23370  within 
23371 \begin_inset Flex Code
23372 status collapsed
23373
23374 \begin_layout Plain Layout
23375
23376 \change_inserted -584632292 1615846730
23377 Argument 2
23378 \change_unchanged
23379
23380 \end_layout
23381
23382 \end_inset
23383
23384 .
23385 \end_layout
23386
23387 \begin_layout Itemize
23388
23389 \change_inserted -584632292 1615846730
23390 \begin_inset Flex Code
23391 status collapsed
23392
23393 \begin_layout Plain Layout
23394
23395 \change_inserted -584632292 1615846730
23396 LeftDelim
23397 \change_unchanged
23398
23399 \end_layout
23400
23401 \end_inset
23402
23403  
23404 \begin_inset Flex Code
23405 status collapsed
23406
23407 \begin_layout Plain Layout
23408
23409 \change_inserted -584632292 1615846730
23410 [string]
23411 \change_unchanged
23412
23413 \end_layout
23414
23415 \end_inset
23416
23417  defines a custom left delimiter (instead of 
23418 \begin_inset Flex Code
23419 status collapsed
23420
23421 \begin_layout Plain Layout
23422
23423 \change_inserted -584632292 1615846730
23424 {
23425 \change_unchanged
23426
23427 \end_layout
23428
23429 \end_inset
23430
23431  or 
23432 \begin_inset Flex Code
23433 status collapsed
23434
23435 \begin_layout Plain Layout
23436
23437 \change_inserted -584632292 1615846730
23438 [
23439 \change_unchanged
23440
23441 \end_layout
23442
23443 \end_inset
23444
23445 ).
23446  A line break in the output can be indicated by 
23447 \begin_inset Flex Code
23448 status collapsed
23449
23450 \begin_layout Plain Layout
23451
23452 \change_inserted -584632292 1615846730
23453 <br/>
23454 \change_unchanged
23455
23456 \end_layout
23457
23458 \end_inset
23459
23460 .
23461 \end_layout
23462
23463 \begin_layout Itemize
23464
23465 \change_inserted -584632292 1615846730
23466 \begin_inset Flex Code
23467 status collapsed
23468
23469 \begin_layout Plain Layout
23470
23471 \change_inserted -584632292 1615846730
23472 RightDelim
23473 \change_unchanged
23474
23475 \end_layout
23476
23477 \end_inset
23478
23479  
23480 \begin_inset Flex Code
23481 status collapsed
23482
23483 \begin_layout Plain Layout
23484
23485 \change_inserted -584632292 1615846730
23486 [string]
23487 \change_unchanged
23488
23489 \end_layout
23490
23491 \end_inset
23492
23493  defines a custom right delimiter (instead of 
23494 \begin_inset Flex Code
23495 status collapsed
23496
23497 \begin_layout Plain Layout
23498
23499 \change_inserted -584632292 1615846730
23500 }
23501 \change_unchanged
23502
23503 \end_layout
23504
23505 \end_inset
23506
23507  or 
23508 \begin_inset Flex Code
23509 status collapsed
23510
23511 \begin_layout Plain Layout
23512
23513 \change_inserted -584632292 1615846730
23514 ]
23515 \change_unchanged
23516
23517 \end_layout
23518
23519 \end_inset
23520
23521 ).
23522  A line break in the output can be indicated by 
23523 \begin_inset Flex Code
23524 status collapsed
23525
23526 \begin_layout Plain Layout
23527
23528 \change_inserted -584632292 1615846730
23529 <br/>
23530 \change_unchanged
23531
23532 \end_layout
23533
23534 \end_inset
23535
23536 .
23537 \end_layout
23538
23539 \begin_layout Itemize
23540
23541 \change_inserted -584632292 1615846730
23542 \begin_inset Flex Code
23543 status collapsed
23544
23545 \begin_layout Plain Layout
23546
23547 \change_inserted -584632292 1615846730
23548 DefaultArg
23549 \change_unchanged
23550
23551 \end_layout
23552
23553 \end_inset
23554
23555  
23556 \begin_inset Flex Code
23557 status collapsed
23558
23559 \begin_layout Plain Layout
23560
23561 \change_inserted -584632292 1615846730
23562 [string]
23563 \change_unchanged
23564
23565 \end_layout
23566
23567 \end_inset
23568
23569  defines an argument that is inserted if and only if no user-specified arguments
23570  were given, i.
23571 \begin_inset space \thinspace{}
23572 \end_inset
23573
23574 e.
23575 \begin_inset space \space{}
23576 \end_inset
23577
23578 if no argument inset has been inserted (note that also an empty argument
23579  inset omits the DefaultArg).
23580  Multiple arguments need to be separated by comma.
23581 \end_layout
23582
23583 \begin_layout Itemize
23584
23585 \change_inserted -584632292 1615846730
23586 \begin_inset Flex Code
23587 status collapsed
23588
23589 \begin_layout Plain Layout
23590
23591 \change_inserted -584632292 1615846730
23592 PresetArg
23593 \change_unchanged
23594
23595 \end_layout
23596
23597 \end_inset
23598
23599  
23600 \begin_inset Flex Code
23601 status collapsed
23602
23603 \begin_layout Plain Layout
23604
23605 \change_inserted -584632292 1615846730
23606 [string]
23607 \change_unchanged
23608
23609 \end_layout
23610
23611 \end_inset
23612
23613  defines an argument that is inserted in any case (alone or in addition
23614  to user-specified arguments).
23615  Multiple arguments need to be separated by comma.
23616 \end_layout
23617
23618 \begin_layout Itemize
23619
23620 \change_inserted -584632292 1615846730
23621 \begin_inset Flex Code
23622 status collapsed
23623
23624 \begin_layout Plain Layout
23625
23626 \change_inserted -584632292 1615846730
23627 Font
23628 \change_unchanged
23629
23630 \end_layout
23631
23632 \end_inset
23633
23634  The font used for the argument content, see 
23635 \begin_inset CommandInset ref
23636 LatexCommand ref
23637 reference "subsec:Font-description"
23638
23639 \end_inset
23640
23641 .
23642 \end_layout
23643
23644 \begin_layout Itemize
23645
23646 \change_inserted -584632292 1615846730
23647 \begin_inset Flex Code
23648 status collapsed
23649
23650 \begin_layout Plain Layout
23651
23652 \change_inserted -584632292 1615846730
23653 FreeSpacing
23654 \change_unchanged
23655
23656 \end_layout
23657
23658 \end_inset
23659
23660  [
23661 \begin_inset Flex Code
23662 status collapsed
23663
23664 \begin_layout Plain Layout
23665
23666 \change_inserted -584632292 1615846730
23667
23668 \emph on
23669 0
23670 \change_unchanged
23671
23672 \end_layout
23673
23674 \end_inset
23675
23676 ,
23677 \begin_inset space \thinspace{}
23678 \end_inset
23679
23680
23681 \begin_inset Flex Code
23682 status collapsed
23683
23684 \begin_layout Plain Layout
23685
23686 \change_inserted -584632292 1615846730
23687 1
23688 \change_unchanged
23689
23690 \end_layout
23691
23692 \end_inset
23693
23694 ] As with paragraph styles, see 
23695 \begin_inset CommandInset ref
23696 LatexCommand ref
23697 reference "subsec:Paragraph-Styles"
23698
23699 \end_inset
23700
23701 .
23702 \end_layout
23703
23704 \begin_layout Itemize
23705
23706 \change_inserted -584632292 1615846730
23707 \begin_inset Flex Code
23708 status collapsed
23709
23710 \begin_layout Plain Layout
23711
23712 \change_inserted -584632292 1615846730
23713 LabelFont
23714 \change_unchanged
23715
23716 \end_layout
23717
23718 \end_inset
23719
23720  The font used for the label; see 
23721 \begin_inset CommandInset ref
23722 LatexCommand ref
23723 reference "subsec:Font-description"
23724
23725 \end_inset
23726
23727 .
23728 \end_layout
23729
23730 \begin_layout Itemize
23731
23732 \change_inserted -584632292 1615846730
23733 \begin_inset Flex Code
23734 status collapsed
23735
23736 \begin_layout Plain Layout
23737
23738 \change_inserted -584632292 1615846730
23739 Decoration
23740 \change_unchanged
23741
23742 \end_layout
23743
23744 \end_inset
23745
23746  [
23747 \begin_inset Flex Code
23748 status collapsed
23749
23750 \begin_layout Plain Layout
23751
23752 \change_inserted -584632292 1615846730
23753
23754 \emph on
23755 Classic
23756 \emph default
23757 , Minimalistic, Conglomerate
23758 \change_unchanged
23759
23760 \end_layout
23761
23762 \end_inset
23763
23764 ] describes the rendering style used for the inset's frame and buttons.
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 AutoInsert
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 is automatically inserted when the respective style is selected.
23812 \end_layout
23813
23814 \begin_layout Itemize
23815
23816 \change_inserted -584632292 1615846730
23817 \begin_inset Flex Code
23818 status collapsed
23819
23820 \begin_layout Plain Layout
23821
23822 \change_inserted -584632292 1615846730
23823 InsertOnNewline
23824 \change_unchanged
23825
23826 \end_layout
23827
23828 \end_inset
23829
23830  
23831 \begin_inset Flex Code
23832 status collapsed
23833
23834 \begin_layout Plain Layout
23835
23836 \change_inserted -584632292 1615846730
23837 [int=0]
23838 \change_unchanged
23839
23840 \end_layout
23841
23842 \end_inset
23843
23844  If this is set to 
23845 \begin_inset Flex Code
23846 status collapsed
23847
23848 \begin_layout Plain Layout
23849
23850 \change_inserted -584632292 1615846730
23851 1
23852 \change_unchanged
23853
23854 \end_layout
23855
23856 \end_inset
23857
23858 , this argument will be inserted on a new line with 
23859 \begin_inset Flex Code
23860 status collapsed
23861
23862 \begin_layout Plain Layout
23863
23864 \change_inserted -584632292 1615846730
23865 AutoInsert
23866 \change_unchanged
23867
23868 \end_layout
23869
23870 \end_inset
23871
23872  (only available within Flex insets).
23873 \end_layout
23874
23875 \begin_layout Itemize
23876
23877 \change_inserted -584632292 1615846730
23878 \begin_inset Flex Code
23879 status collapsed
23880
23881 \begin_layout Plain Layout
23882
23883 \change_inserted -584632292 1615846730
23884 InsertCotext
23885 \change_unchanged
23886
23887 \end_layout
23888
23889 \end_inset
23890
23891  
23892 \begin_inset Flex Code
23893 status collapsed
23894
23895 \begin_layout Plain Layout
23896
23897 \change_inserted -584632292 1615846730
23898 [int=0]
23899 \change_unchanged
23900
23901 \end_layout
23902
23903 \end_inset
23904
23905  If this is set to 
23906 \begin_inset Flex Code
23907 status collapsed
23908
23909 \begin_layout Plain Layout
23910
23911 \change_inserted -584632292 1615846730
23912 1
23913 \change_unchanged
23914
23915 \end_layout
23916
23917 \end_inset
23918
23919 , this argument will be inserted with a copy of the co-text (either selected
23920  text or the whole paragraph) as content.
23921 \end_layout
23922
23923 \begin_layout Itemize
23924
23925 \change_inserted -584632292 1615846730
23926 \begin_inset Flex Code
23927 status collapsed
23928
23929 \begin_layout Plain Layout
23930
23931 \change_inserted -584632292 1615846730
23932 PassThru
23933 \change_unchanged
23934
23935 \end_layout
23936
23937 \end_inset
23938
23939  [
23940 \begin_inset Flex Code
23941 status collapsed
23942
23943 \begin_layout Plain Layout
23944
23945 \change_inserted -584632292 1615846730
23946
23947 \emph on
23948 inherited
23949 \emph default
23950 , true, false
23951 \change_unchanged
23952
23953 \end_layout
23954
23955 \end_inset
23956
23957 ] Whether the contents of this argument should be output in raw form, meaning
23958  without special translations that \SpecialChar LaTeX
23959  would require.
23960  By default, the 
23961 \begin_inset Flex Code
23962 status collapsed
23963
23964 \begin_layout Plain Layout
23965
23966 \change_inserted -584632292 1615846730
23967 PassThru
23968 \change_unchanged
23969
23970 \end_layout
23971
23972 \end_inset
23973
23974  status is inherited by the inset or paragraph layout the argument belongs
23975  to, true and false change the status for the given argument only.
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 PassThruChars
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 string of characters
24002 \change_unchanged
24003
24004 \end_layout
24005
24006 \end_inset
24007
24008 ]
24009 \family typewriter
24010  
24011 \family default
24012 Defines individual characters
24013 \begin_inset Newline linebreak
24014 \end_inset
24015
24016 that should be output in raw form, meaning without special translations
24017  that \SpecialChar LaTeX
24018  would require.
24019  Note that, contrary to PassThru, this needs to be explicitly defined for
24020  arguments.
24021  That is, arguments do not inherit PassThruChars from their parent inset
24022  or layout.
24023 \end_layout
24024
24025 \begin_layout Itemize
24026
24027 \change_inserted -584632292 1615846730
24028 \begin_inset Flex Code
24029 status collapsed
24030
24031 \begin_layout Plain Layout
24032
24033 \change_inserted -584632292 1615846730
24034 IsTocCaption
24035 \change_unchanged
24036
24037 \end_layout
24038
24039 \end_inset
24040
24041  [
24042 \begin_inset Flex Code
24043 status collapsed
24044
24045 \begin_layout Plain Layout
24046
24047 \change_inserted -584632292 1615846730
24048
24049 \emph on
24050 0
24051 \change_unchanged
24052
24053 \end_layout
24054
24055 \end_inset
24056
24057 ,
24058 \begin_inset space \thinspace{}
24059 \end_inset
24060
24061
24062 \begin_inset Flex Code
24063 status collapsed
24064
24065 \begin_layout Plain Layout
24066
24067 \change_inserted -584632292 1615846730
24068 1
24069 \change_unchanged
24070
24071 \end_layout
24072
24073 \end_inset
24074
24075 ] If this is set to 1, the argument will output its content in the corresponding
24076  item in the table of contents.
24077  See AddToToc.
24078 \end_layout
24079
24080 \begin_layout Standard
24081
24082 \change_inserted -584632292 1615846730
24083 By default, the text entered in the \SpecialChar LyX
24084  workarea in the respective layout is
24085  the last (mandatory) argument of a command if the 
24086 \begin_inset Flex Code
24087 status collapsed
24088
24089 \begin_layout Plain Layout
24090
24091 \change_inserted -584632292 1615846730
24092 LatexType
24093 \change_unchanged
24094
24095 \end_layout
24096
24097 \end_inset
24098
24099  is 
24100 \begin_inset Flex Code
24101 status collapsed
24102
24103 \begin_layout Plain Layout
24104
24105 \change_inserted -584632292 1615846730
24106 Command
24107 \change_unchanged
24108
24109 \end_layout
24110
24111 \end_inset
24112
24113 .
24114  However, arguments with the prefix 
24115 \begin_inset Flex Code
24116 status collapsed
24117
24118 \begin_layout Plain Layout
24119
24120 \change_inserted -584632292 1615846730
24121 post:
24122 \change_unchanged
24123
24124 \end_layout
24125
24126 \end_inset
24127
24128  are output after this workarea argument.
24129  Note that post-argument numbering restarts at 1, so the first argument
24130  following the workarea argument is 
24131 \begin_inset Flex Code
24132 status collapsed
24133
24134 \begin_layout Plain Layout
24135
24136 \change_inserted -584632292 1615846730
24137 post:1
24138 \change_unchanged
24139
24140 \end_layout
24141
24142 \end_inset
24143
24144 .
24145  Post-arguments are ignored in any other 
24146 \begin_inset Flex Code
24147 status collapsed
24148
24149 \begin_layout Plain Layout
24150
24151 \change_inserted -584632292 1615846730
24152 LatexType
24153 \change_unchanged
24154
24155 \end_layout
24156
24157 \end_inset
24158
24159  than 
24160 \begin_inset Flex Code
24161 status collapsed
24162
24163 \begin_layout Plain Layout
24164
24165 \change_inserted -584632292 1615846730
24166 Command
24167 \change_unchanged
24168
24169 \end_layout
24170
24171 \end_inset
24172
24173 .
24174 \end_layout
24175
24176 \begin_layout Standard
24177
24178 \change_inserted -584632292 1615846730
24179 Arguments for list 
24180 \begin_inset Flex Code
24181 status collapsed
24182
24183 \begin_layout Plain Layout
24184
24185 \change_inserted -584632292 1615846730
24186
24187 \backslash
24188 item
24189 \change_unchanged
24190
24191 \end_layout
24192
24193 \end_inset
24194
24195 s (as in 
24196 \begin_inset Flex Code
24197 status collapsed
24198
24199 \begin_layout Plain Layout
24200
24201 \change_inserted -584632292 1615846730
24202
24203 \backslash
24204 item[foo]
24205 \change_unchanged
24206
24207 \end_layout
24208
24209 \end_inset
24210
24211 ) have the prefix 
24212 \begin_inset Flex Code
24213 status collapsed
24214
24215 \begin_layout Plain Layout
24216
24217 \change_inserted -584632292 1615846730
24218 item:
24219 \change_unchanged
24220
24221 \end_layout
24222
24223 \end_inset
24224
24225  followed by the number (e.
24226 \begin_inset space \thinspace{}
24227 \end_inset
24228
24229 g.
24230 \begin_inset space \space{}
24231 \end_inset
24232
24233
24234 \begin_inset Flex Code
24235 status collapsed
24236
24237 \begin_layout Plain Layout
24238
24239 \change_inserted -584632292 1615846730
24240 Argument item:1
24241 \change_unchanged
24242
24243 \end_layout
24244
24245 \end_inset
24246
24247 ).
24248 \end_layout
24249
24250 \begin_layout Standard
24251
24252 \change_inserted -584632292 1615846730
24253 Finally, there is a special argument type with the prefix 
24254 \begin_inset Flex Code
24255 status collapsed
24256
24257 \begin_layout Plain Layout
24258
24259 \change_inserted -584632292 1615846730
24260 listpreamble:
24261 \change_unchanged
24262
24263 \end_layout
24264
24265 \end_inset
24266
24267 .
24268  It is not really an argument, but uses the argument interface (thus, the
24269  prefix is also followed by a number, e.
24270 \begin_inset space \thinspace{}
24271 \end_inset
24272
24273 g.
24274  
24275 \begin_inset Flex Code
24276 status collapsed
24277
24278 \begin_layout Plain Layout
24279
24280 \change_inserted -584632292 1615846730
24281 Argument listpreamble:1
24282 \change_unchanged
24283
24284 \end_layout
24285
24286 \end_inset
24287
24288 ).
24289  As the name implies, it is targeted at lists such as 
24290 \family sans
24291 Itemize
24292 \family default
24293
24294 \family sans
24295 Enumerate
24296 \family default
24297
24298 \family sans
24299 Description
24300 \family default
24301 , or 
24302 \family sans
24303 Bibliography
24304 \family default
24305 .
24306  Its content will be output at the list start, before the first 
24307 \begin_inset Flex Code
24308 status collapsed
24309
24310 \begin_layout Plain Layout
24311
24312 \change_inserted -584632292 1615846730
24313
24314 \backslash
24315 item
24316 \change_unchanged
24317
24318 \end_layout
24319
24320 \end_inset
24321
24322 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
24323 ).
24324  This way, users can insert redefinitions (of lengths etc.) to individual
24325  lists.
24326  By default, these arguments do not have a delimiter.
24327 \change_unchanged
24328
24329 \end_layout
24330
24331 \begin_layout Subsection
24332 Counters
24333 \begin_inset CommandInset label
24334 LatexCommand label
24335 name "subsec:Counters"
24336
24337 \end_inset
24338
24339
24340 \end_layout
24341
24342 \begin_layout Standard
24343 It is necessary to define the counters (
24344 \begin_inset Flex Noun
24345 status collapsed
24346
24347 \begin_layout Plain Layout
24348 chapter
24349 \end_layout
24350
24351 \end_inset
24352
24353
24354 \begin_inset Flex Noun
24355 status collapsed
24356
24357 \begin_layout Plain Layout
24358 figure
24359 \end_layout
24360
24361 \end_inset
24362
24363 , \SpecialChar ldots
24364 ) in the text class itself.
24365  The standard counters are defined in the file 
24366 \begin_inset Flex Code
24367 status collapsed
24368
24369 \begin_layout Plain Layout
24370 stdcounters.inc
24371 \end_layout
24372
24373 \end_inset
24374
24375 , so you may have to do no more than add
24376 \end_layout
24377
24378 \begin_layout LyX-Code
24379 Input stdcounters.inc
24380 \end_layout
24381
24382 \begin_layout Standard
24383 to your layout file to get them to work.
24384  But if you want to define custom counters, then you can do so.
24385  The counter declaration must begin with:
24386 \end_layout
24387
24388 \begin_layout LyX-Code
24389 Counter CounterName
24390 \end_layout
24391
24392 \begin_layout Standard
24393 where of course `
24394 \begin_inset Flex Code
24395 status collapsed
24396
24397 \begin_layout Plain Layout
24398 CounterName
24399 \end_layout
24400
24401 \end_inset
24402
24403 ' is replaced by the name of the counter.
24404  And it must end with 
24405 \begin_inset Quotes eld
24406 \end_inset
24407
24408
24409 \begin_inset Flex Code
24410 status collapsed
24411
24412 \begin_layout Plain Layout
24413 End
24414 \end_layout
24415
24416 \end_inset
24417
24418
24419 \begin_inset Quotes erd
24420 \end_inset
24421
24422 .
24423  The following parameters can also be used:
24424 \end_layout
24425
24426 \begin_layout Description
24427 \begin_inset Flex Code
24428 status collapsed
24429
24430 \begin_layout Plain Layout
24431 InitialValue
24432 \end_layout
24433
24434 \end_inset
24435
24436  [
24437 \begin_inset Flex Code
24438 status collapsed
24439
24440 \begin_layout Plain Layout
24441 int=1
24442 \end_layout
24443
24444 \end_inset
24445
24446 ] Sets the initial value for the counter, to which it will be reset whenever
24447  that happens.
24448  Normally, one will want the default, 1.
24449 \end_layout
24450
24451 \begin_layout Description
24452 \begin_inset Flex Code
24453 status collapsed
24454
24455 \begin_layout Plain Layout
24456 LabelString
24457 \end_layout
24458
24459 \end_inset
24460
24461  [
24462 \begin_inset Flex Code
24463 status collapsed
24464
24465 \begin_layout Plain Layout
24466 string
24467 \end_layout
24468
24469 \end_inset
24470
24471 =
24472 \begin_inset Quotes erd
24473 \end_inset
24474
24475
24476 \begin_inset Quotes erd
24477 \end_inset
24478
24479 ] When defined, this string defines how the counter is displayed.
24480  Setting this value sets 
24481 \begin_inset Flex Code
24482 status collapsed
24483
24484 \begin_layout Plain Layout
24485 LabelStringAppendix
24486 \end_layout
24487
24488 \end_inset
24489
24490  to the same value.
24491  The following special constructs can be used in the string:
24492 \end_layout
24493
24494 \begin_deeper
24495 \begin_layout Itemize
24496 \begin_inset Flex Code
24497 status collapsed
24498
24499 \begin_layout Plain Layout
24500
24501 \backslash
24502 thecounter
24503 \end_layout
24504
24505 \end_inset
24506
24507  will be replaced by the expansion of the 
24508 \begin_inset Flex Code
24509 status collapsed
24510
24511 \begin_layout Plain Layout
24512 LabelString
24513 \end_layout
24514
24515 \end_inset
24516
24517  (or 
24518 \begin_inset Flex Code
24519 status collapsed
24520
24521 \begin_layout Plain Layout
24522 LabelStringAppendix
24523 \end_layout
24524
24525 \end_inset
24526
24527 ) of the counter 
24528 \begin_inset Flex Code
24529 status collapsed
24530
24531 \begin_layout Plain Layout
24532 counter
24533 \end_layout
24534
24535 \end_inset
24536
24537 .
24538  
24539 \end_layout
24540
24541 \begin_layout Itemize
24542 counter values can be expressed using \SpecialChar LaTeX
24543 -like macros
24544 \begin_inset Newline newline
24545 \end_inset
24546
24547
24548 \begin_inset Flex Code
24549 status collapsed
24550
24551 \begin_layout Plain Layout
24552
24553 \backslash
24554
24555 \emph on
24556 numbertype
24557 \emph default
24558 {
24559 \emph on
24560 counter
24561 \emph default
24562 }
24563 \end_layout
24564
24565 \end_inset
24566
24567 , where 
24568 \begin_inset Flex Code
24569 status collapsed
24570
24571 \begin_layout Plain Layout
24572
24573 \emph on
24574 numbertype
24575 \end_layout
24576
24577 \end_inset
24578
24579  can be:
24580 \begin_inset Foot
24581 status collapsed
24582
24583 \begin_layout Plain Layout
24584
24585 \family roman
24586 \series medium
24587 \shape up
24588 \size normal
24589 \emph off
24590 \bar no
24591 \noun off
24592 \color none
24593 Actually, the situation is a bit more complicated: any
24594 \family default
24595 \series default
24596 \shape default
24597 \emph default
24598 \bar default
24599  
24600 \size default
24601 \emph on
24602 \noun default
24603 \color inherit
24604 numbertype
24605 \family roman
24606 \series medium
24607 \shape up
24608 \size normal
24609 \emph off
24610 \bar no
24611 \noun off
24612  other than those described below will produce arabic numerals.
24613  It would not be surprising to see this change in the future.
24614 \end_layout
24615
24616 \end_inset
24617
24618  
24619 \begin_inset Flex Code
24620 status collapsed
24621
24622 \begin_layout Plain Layout
24623 arabic
24624 \end_layout
24625
24626 \end_inset
24627
24628 : 1, 2, 3,\SpecialChar ldots
24629
24630 \begin_inset Flex Code
24631 status collapsed
24632
24633 \begin_layout Plain Layout
24634 alph
24635 \end_layout
24636
24637 \end_inset
24638
24639  for lower-case letters: a, b, c, \SpecialChar ldots
24640
24641 \begin_inset Flex Code
24642 status collapsed
24643
24644 \begin_layout Plain Layout
24645 Alph
24646 \end_layout
24647
24648 \end_inset
24649
24650  for upper-case letters: A, B, C, \SpecialChar ldots
24651
24652 \begin_inset Flex Code
24653 status collapsed
24654
24655 \begin_layout Plain Layout
24656 roman
24657 \end_layout
24658
24659 \end_inset
24660
24661  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
24662
24663 \begin_inset Flex Code
24664 status collapsed
24665
24666 \begin_layout Plain Layout
24667 Roman
24668 \end_layout
24669
24670 \end_inset
24671
24672  for upper-case roman numerals: I, II, III\SpecialChar ldots
24673
24674 \begin_inset Flex Code
24675 status collapsed
24676
24677 \begin_layout Plain Layout
24678 hebrew
24679 \end_layout
24680
24681 \end_inset
24682
24683  for hebrew numerals.
24684 \end_layout
24685
24686 \end_deeper
24687 \begin_layout Standard
24688 If LabelString is not defined, a default value is constructed as follows:
24689  if the counter has a 
24690 \change_deleted 731793113 1604355218
24691 master
24692 \change_inserted 731793113 1604355221
24693 parent
24694 \change_unchanged
24695  counter 
24696 \begin_inset Flex Code
24697 status collapsed
24698
24699 \begin_layout Plain Layout
24700
24701 \change_deleted 731793113 1604355223
24702 master
24703 \change_inserted 731793113 1604355226
24704 parent
24705 \change_unchanged
24706
24707 \end_layout
24708
24709 \end_inset
24710
24711  (defined via 
24712 \begin_inset Flex Code
24713 status collapsed
24714
24715 \begin_layout Plain Layout
24716 Within
24717 \end_layout
24718
24719 \end_inset
24720
24721 ), the string
24722 \begin_inset Newline newline
24723 \end_inset
24724
24725
24726 \begin_inset Flex Code
24727 status collapsed
24728
24729 \begin_layout Plain Layout
24730
24731 \backslash
24732 the
24733 \change_inserted 731793113 1604355228
24734 parent
24735 \change_deleted 731793113 1604355230
24736 master
24737 \change_unchanged
24738 .
24739 \backslash
24740 arabic{counter}
24741 \end_layout
24742
24743 \end_inset
24744
24745  is used; otherwise the string 
24746 \begin_inset Flex Code
24747 status collapsed
24748
24749 \begin_layout Plain Layout
24750
24751 \backslash
24752 arabic{counter}
24753 \end_layout
24754
24755 \end_inset
24756
24757  is used.
24758 \end_layout
24759
24760 \begin_layout Description
24761 \begin_inset Flex Code
24762 status collapsed
24763
24764 \begin_layout Plain Layout
24765 LabelStringAppendix
24766 \end_layout
24767
24768 \end_inset
24769
24770  [
24771 \begin_inset Flex Code
24772 status collapsed
24773
24774 \begin_layout Plain Layout
24775 string
24776 \end_layout
24777
24778 \end_inset
24779
24780
24781 \begin_inset Quotes eld
24782 \end_inset
24783
24784
24785 \begin_inset Quotes erd
24786 \end_inset
24787
24788 ] Same as 
24789 \begin_inset Flex Code
24790 status collapsed
24791
24792 \begin_layout Plain Layout
24793 LabelString
24794 \end_layout
24795
24796 \end_inset
24797
24798 , but for use in the Appendix.
24799 \change_inserted -584632292 1607202551
24800
24801 \end_layout
24802
24803 \begin_layout Description
24804
24805 \change_inserted -584632292 1607202682
24806 \begin_inset Flex Code
24807 status open
24808
24809 \begin_layout Plain Layout
24810 LaTeXName
24811 \end_layout
24812
24813 \end_inset
24814
24815  [
24816 \begin_inset Flex Code
24817 status open
24818
24819 \begin_layout Plain Layout
24820
24821 \change_inserted -584632292 1607202576
24822 string
24823 \change_unchanged
24824
24825 \end_layout
24826
24827 \end_inset
24828
24829  = 
24830 \begin_inset Quotes eld
24831 \end_inset
24832
24833
24834 \begin_inset Quotes erd
24835 \end_inset
24836
24837 ] The counter name as used in \SpecialChar LaTeX
24838 .
24839  (
24840 \change_inserted 34634807 1619711355
24841 e
24842 \change_deleted 34634807 1619711355
24843 E
24844 \change_inserted -584632292 1607202682
24845 .g., in \SpecialChar LyX
24846 , there is a counter named `theorem', but it is output to \SpecialChar LaTeX
24847  as `thm'.)
24848 \change_unchanged
24849
24850 \end_layout
24851
24852 \begin_layout Description
24853 \begin_inset Flex Code
24854 status collapsed
24855
24856 \begin_layout Plain Layout
24857 PrettyFormat
24858 \end_layout
24859
24860 \end_inset
24861
24862  [
24863 \begin_inset Flex Code
24864 status collapsed
24865
24866 \begin_layout Plain Layout
24867 string
24868 \end_layout
24869
24870 \end_inset
24871
24872 =
24873 \begin_inset Quotes erd
24874 \end_inset
24875
24876
24877 \begin_inset Quotes erd
24878 \end_inset
24879
24880 ] A format for use with formatted references to this counter.
24881  For example, one might want to have references to section numbers appear
24882  as 
24883 \begin_inset Quotes eld
24884 \end_inset
24885
24886 Section 2.4
24887 \begin_inset Quotes erd
24888 \end_inset
24889
24890 .
24891  The string should contain 
24892 \begin_inset Quotes eld
24893 \end_inset
24894
24895 ##
24896 \begin_inset Quotes erd
24897 \end_inset
24898
24899 .
24900  This will be replaced by the counter number itself.
24901  So, for sections, it would be: Section ##.
24902 \end_layout
24903
24904 \begin_layout Description
24905 \begin_inset Flex Code
24906 status collapsed
24907
24908 \begin_layout Plain Layout
24909 Within
24910 \end_layout
24911
24912 \end_inset
24913
24914  [
24915 \begin_inset Flex Code
24916 status collapsed
24917
24918 \begin_layout Plain Layout
24919 string
24920 \end_layout
24921
24922 \end_inset
24923
24924 =
24925 \begin_inset Quotes erd
24926 \end_inset
24927
24928
24929 \begin_inset Quotes erd
24930 \end_inset
24931
24932 ] If this is set to the name of another counter, the present counter will
24933  be reset every time the other one is increased.
24934  For example, 
24935 \begin_inset Flex Code
24936 status collapsed
24937
24938 \begin_layout Plain Layout
24939 subsection
24940 \end_layout
24941
24942 \end_inset
24943
24944  is numbered inside 
24945 \begin_inset Flex Code
24946 status collapsed
24947
24948 \begin_layout Plain Layout
24949 section
24950 \end_layout
24951
24952 \end_inset
24953
24954 .
24955 \end_layout
24956
24957 \begin_layout Subsection
24958 Font description
24959 \begin_inset CommandInset label
24960 LatexCommand label
24961 name "subsec:Font-description"
24962
24963 \end_inset
24964
24965
24966 \end_layout
24967
24968 \begin_layout Standard
24969 A font description looks like this:
24970 \end_layout
24971
24972 \begin_layout LyX-Code
24973 Font 
24974 \family roman
24975 \emph on
24976 or
24977 \family default
24978 \emph default
24979  LabelFont
24980 \emph on
24981  
24982 \family roman
24983 or
24984 \family default
24985 \emph default
24986  DefaultFont
24987 \end_layout
24988
24989 \begin_layout LyX-Code
24990  ...
24991 \end_layout
24992
24993 \begin_layout LyX-Code
24994 EndFont
24995 \end_layout
24996
24997 \begin_layout Standard
24998 The following commands are available:
24999 \end_layout
25000
25001 \begin_layout Description
25002 \begin_inset Flex Code
25003 status collapsed
25004
25005 \begin_layout Plain Layout
25006 Color
25007 \end_layout
25008
25009 \end_inset
25010
25011  [
25012 \change_deleted -712698321 1607682984
25013
25014 \begin_inset Flex Code
25015 status collapsed
25016
25017 \begin_layout Plain Layout
25018
25019 \emph on
25020 none
25021 \end_layout
25022
25023 \end_inset
25024
25025
25026 \begin_inset Flex Code
25027 status collapsed
25028
25029 \begin_layout Plain Layout
25030 black
25031 \end_layout
25032
25033 \end_inset
25034
25035
25036 \begin_inset Flex Code
25037 status collapsed
25038
25039 \begin_layout Plain Layout
25040 white
25041 \end_layout
25042
25043 \end_inset
25044
25045
25046 \begin_inset Flex Code
25047 status collapsed
25048
25049 \begin_layout Plain Layout
25050 red
25051 \end_layout
25052
25053 \end_inset
25054
25055
25056 \begin_inset Flex Code
25057 status collapsed
25058
25059 \begin_layout Plain Layout
25060 green
25061 \end_layout
25062
25063 \end_inset
25064
25065
25066 \begin_inset Flex Code
25067 status collapsed
25068
25069 \begin_layout Plain Layout
25070 blue
25071 \end_layout
25072
25073 \end_inset
25074
25075
25076 \begin_inset Flex Code
25077 status collapsed
25078
25079 \begin_layout Plain Layout
25080 cyan
25081 \end_layout
25082
25083 \end_inset
25084
25085
25086 \begin_inset Flex Code
25087 status collapsed
25088
25089 \begin_layout Plain Layout
25090 magenta
25091 \end_layout
25092
25093 \end_inset
25094
25095
25096 \begin_inset Flex Code
25097 status collapsed
25098
25099 \begin_layout Plain Layout
25100 yellow
25101 \end_layout
25102
25103 \end_inset
25104
25105
25106 \begin_inset Flex Code
25107 status collapsed
25108
25109 \begin_layout Plain Layout
25110 brown
25111 \end_layout
25112
25113 \end_inset
25114
25115
25116 \begin_inset Flex Code
25117 status collapsed
25118
25119 \begin_layout Plain Layout
25120 darkgray
25121 \end_layout
25122
25123 \end_inset
25124
25125
25126 \begin_inset Flex Code
25127 status collapsed
25128
25129 \begin_layout Plain Layout
25130 gray
25131 \end_layout
25132
25133 \end_inset
25134
25135
25136 \begin_inset Flex Code
25137 status collapsed
25138
25139 \begin_layout Plain Layout
25140 lightgray
25141 \end_layout
25142
25143 \end_inset
25144
25145
25146 \begin_inset Flex Code
25147 status collapsed
25148
25149 \begin_layout Plain Layout
25150 lime
25151 \end_layout
25152
25153 \end_inset
25154
25155
25156 \begin_inset Flex Code
25157 status collapsed
25158
25159 \begin_layout Plain Layout
25160 orange
25161 \end_layout
25162
25163 \end_inset
25164
25165
25166 \begin_inset Flex Code
25167 status collapsed
25168
25169 \begin_layout Plain Layout
25170 olive
25171 \end_layout
25172
25173 \end_inset
25174
25175
25176 \begin_inset Flex Code
25177 status collapsed
25178
25179 \begin_layout Plain Layout
25180 pink
25181 \end_layout
25182
25183 \end_inset
25184
25185
25186 \begin_inset Flex Code
25187 status collapsed
25188
25189 \begin_layout Plain Layout
25190 purple
25191 \end_layout
25192
25193 \end_inset
25194
25195
25196 \begin_inset Flex Code
25197 status collapsed
25198
25199 \begin_layout Plain Layout
25200 teal
25201 \end_layout
25202
25203 \end_inset
25204
25205
25206 \begin_inset Flex Code
25207 status collapsed
25208
25209 \begin_layout Plain Layout
25210 violet
25211 \end_layout
25212
25213 \end_inset
25214
25215
25216 \change_inserted -712698321 1607683139
25217
25218 \begin_inset Flex Code
25219 status collapsed
25220
25221 \begin_layout Plain Layout
25222
25223 \change_inserted -712698321 1607683135
25224 string
25225 \change_unchanged
25226
25227 \end_layout
25228
25229 \end_inset
25230
25231 ] See appendix
25232 \begin_inset space ~
25233 \end_inset
25234
25235
25236 \begin_inset CommandInset ref
25237 LatexCommand ref
25238 reference "chap:Names-of-colors"
25239 plural "false"
25240 caps "false"
25241 noprefix "false"
25242
25243 \end_inset
25244
25245  for 
25246 \change_deleted -712698321 1607683144
25247 ]
25248 \change_inserted -712698321 1607683146
25249 valid arguments.
25250 \change_unchanged
25251
25252 \end_layout
25253
25254 \begin_layout Description
25255 \begin_inset Flex Code
25256 status collapsed
25257
25258 \begin_layout Plain Layout
25259 Family
25260 \end_layout
25261
25262 \end_inset
25263
25264  [
25265 \begin_inset Flex Code
25266 status collapsed
25267
25268 \begin_layout Plain Layout
25269
25270 \emph on
25271 Roman
25272 \end_layout
25273
25274 \end_inset
25275
25276
25277 \begin_inset Flex Code
25278 status collapsed
25279
25280 \begin_layout Plain Layout
25281 Sans
25282 \end_layout
25283
25284 \end_inset
25285
25286
25287 \begin_inset Flex Code
25288 status collapsed
25289
25290 \begin_layout Plain Layout
25291 Typewriter
25292 \end_layout
25293
25294 \end_inset
25295
25296 ]
25297 \end_layout
25298
25299 \begin_layout Description
25300 \begin_inset Flex Code
25301 status collapsed
25302
25303 \begin_layout Plain Layout
25304 Misc
25305 \end_layout
25306
25307 \end_inset
25308
25309  [
25310 \begin_inset Flex Code
25311 status collapsed
25312
25313 \begin_layout Plain Layout
25314 string
25315 \end_layout
25316
25317 \end_inset
25318
25319 ] Valid arguments are: 
25320 \begin_inset Flex Code
25321 status collapsed
25322
25323 \begin_layout Plain Layout
25324 emph
25325 \end_layout
25326
25327 \end_inset
25328
25329
25330 \begin_inset Flex Code
25331 status collapsed
25332
25333 \begin_layout Plain Layout
25334 noun
25335 \end_layout
25336
25337 \end_inset
25338
25339
25340 \begin_inset Flex Code
25341 status collapsed
25342
25343 \begin_layout Plain Layout
25344 strikeout
25345 \end_layout
25346
25347 \end_inset
25348
25349
25350 \begin_inset Flex Code
25351 status collapsed
25352
25353 \begin_layout Plain Layout
25354 underbar
25355 \end_layout
25356
25357 \end_inset
25358
25359
25360 \begin_inset Flex Code
25361 status collapsed
25362
25363 \begin_layout Plain Layout
25364 uuline
25365 \end_layout
25366
25367 \end_inset
25368
25369
25370 \begin_inset Flex Code
25371 status collapsed
25372
25373 \begin_layout Plain Layout
25374 uwave
25375 \end_layout
25376
25377 \end_inset
25378
25379
25380 \begin_inset Flex Code
25381 status collapsed
25382
25383 \begin_layout Plain Layout
25384 no_emph
25385 \end_layout
25386
25387 \end_inset
25388
25389
25390 \begin_inset Flex Code
25391 status collapsed
25392
25393 \begin_layout Plain Layout
25394 no_noun
25395 \end_layout
25396
25397 \end_inset
25398
25399
25400 \begin_inset Flex Code
25401 status collapsed
25402
25403 \begin_layout Plain Layout
25404 no_strikeout
25405 \end_layout
25406
25407 \end_inset
25408
25409
25410 \begin_inset Flex Code
25411 status collapsed
25412
25413 \begin_layout Plain Layout
25414 no_bar
25415 \end_layout
25416
25417 \end_inset
25418
25419
25420 \begin_inset Flex Code
25421 status collapsed
25422
25423 \begin_layout Plain Layout
25424 no_uuline
25425 \end_layout
25426
25427 \end_inset
25428
25429  and 
25430 \begin_inset Flex Code
25431 status collapsed
25432
25433 \begin_layout Plain Layout
25434 no_uwave
25435 \end_layout
25436
25437 \end_inset
25438
25439 .
25440  Each of these turns on or off the corresponding attribute.
25441  For example, 
25442 \begin_inset Flex Code
25443 status collapsed
25444
25445 \begin_layout Plain Layout
25446 emph
25447 \end_layout
25448
25449 \end_inset
25450
25451  turns on emphasis, and 
25452 \begin_inset Flex Code
25453 status collapsed
25454
25455 \begin_layout Plain Layout
25456 no_emph
25457 \end_layout
25458
25459 \end_inset
25460
25461  turns it off.
25462  
25463 \begin_inset Newline newline
25464 \end_inset
25465
25466 If the latter seems puzzling, remember that the font settings for the present
25467  context are generally inherited from the surrounding context.
25468  So 
25469 \begin_inset Flex Code
25470 status collapsed
25471
25472 \begin_layout Plain Layout
25473 no_emph
25474 \end_layout
25475
25476 \end_inset
25477
25478  would turn off the emphasis that was anyway in effect, say, in a theorem
25479  environment.
25480 \end_layout
25481
25482 \begin_layout Description
25483 \begin_inset Flex Code
25484 status collapsed
25485
25486 \begin_layout Plain Layout
25487 Series
25488 \end_layout
25489
25490 \end_inset
25491
25492  [
25493 \begin_inset Flex Code
25494 status collapsed
25495
25496 \begin_layout Plain Layout
25497
25498 \emph on
25499 Medium
25500 \end_layout
25501
25502 \end_inset
25503
25504
25505 \begin_inset Flex Code
25506 status collapsed
25507
25508 \begin_layout Plain Layout
25509 Bold
25510 \end_layout
25511
25512 \end_inset
25513
25514
25515 \end_layout
25516
25517 \begin_layout Description
25518 \begin_inset Flex Code
25519 status collapsed
25520
25521 \begin_layout Plain Layout
25522 Shape
25523 \end_layout
25524
25525 \end_inset
25526
25527  [
25528 \begin_inset Flex Code
25529 status collapsed
25530
25531 \begin_layout Plain Layout
25532
25533 \emph on
25534 Up
25535 \end_layout
25536
25537 \end_inset
25538
25539
25540 \begin_inset Flex Code
25541 status collapsed
25542
25543 \begin_layout Plain Layout
25544 Italic
25545 \end_layout
25546
25547 \end_inset
25548
25549
25550 \begin_inset Flex Code
25551 status collapsed
25552
25553 \begin_layout Plain Layout
25554 SmallCaps
25555 \end_layout
25556
25557 \end_inset
25558
25559
25560 \begin_inset Flex Code
25561 status collapsed
25562
25563 \begin_layout Plain Layout
25564 Slanted
25565 \end_layout
25566
25567 \end_inset
25568
25569
25570 \end_layout
25571
25572 \begin_layout Description
25573 \begin_inset Flex Code
25574 status collapsed
25575
25576 \begin_layout Plain Layout
25577 Size
25578 \end_layout
25579
25580 \end_inset
25581
25582  [
25583 \begin_inset Flex Code
25584 status collapsed
25585
25586 \begin_layout Plain Layout
25587 tiny
25588 \end_layout
25589
25590 \end_inset
25591
25592
25593 \begin_inset Flex Code
25594 status collapsed
25595
25596 \begin_layout Plain Layout
25597 small
25598 \end_layout
25599
25600 \end_inset
25601
25602
25603 \begin_inset Flex Code
25604 status collapsed
25605
25606 \begin_layout Plain Layout
25607
25608 \emph on
25609 normal
25610 \end_layout
25611
25612 \end_inset
25613
25614
25615 \begin_inset Flex Code
25616 status collapsed
25617
25618 \begin_layout Plain Layout
25619 large
25620 \end_layout
25621
25622 \end_inset
25623
25624
25625 \begin_inset Flex Code
25626 status collapsed
25627
25628 \begin_layout Plain Layout
25629 larger
25630 \end_layout
25631
25632 \end_inset
25633
25634
25635 \begin_inset Flex Code
25636 status collapsed
25637
25638 \begin_layout Plain Layout
25639 largest
25640 \end_layout
25641
25642 \end_inset
25643
25644
25645 \begin_inset Flex Code
25646 status collapsed
25647
25648 \begin_layout Plain Layout
25649 huge
25650 \end_layout
25651
25652 \end_inset
25653
25654
25655 \begin_inset Flex Code
25656 status collapsed
25657
25658 \begin_layout Plain Layout
25659 giant
25660 \end_layout
25661
25662 \end_inset
25663
25664 ]
25665 \end_layout
25666
25667 \begin_layout Subsection
25668 \begin_inset CommandInset label
25669 LatexCommand label
25670 name "subsec:Citation-engine-description"
25671
25672 \end_inset
25673
25674 Cite engine description
25675 \end_layout
25676
25677 \begin_layout Standard
25678 The 
25679 \begin_inset Flex Code
25680 status collapsed
25681
25682 \begin_layout Plain Layout
25683 CiteEngine
25684 \end_layout
25685
25686 \end_inset
25687
25688  blocks, as used mainly in cite engine files (see 
25689 \begin_inset CommandInset ref
25690 LatexCommand ref
25691 reference "subsec:Cite-Engine-Files"
25692 plural "false"
25693 caps "false"
25694 noprefix "false"
25695
25696 \end_inset
25697
25698 ), define the citation commands provided by a specific 
25699 \begin_inset Quotes eld
25700 \end_inset
25701
25702 cite engine
25703 \begin_inset Quotes erd
25704 \end_inset
25705
25706 .
25707  A cite engine, in \SpecialChar LyX
25708  terms, is way specific way to format citations, using
25709  numbers, author names and/or years.
25710  Currently, \SpecialChar LyX
25711  supports three such engine types, namely:
25712 \end_layout
25713
25714 \begin_layout Enumerate
25715 \begin_inset Flex Code
25716 status collapsed
25717
25718 \begin_layout Plain Layout
25719 default
25720 \end_layout
25721
25722 \end_inset
25723
25724 : the default Bib\SpecialChar TeX
25725  way to format citations, a simple numeric style (e.
25726 \begin_inset space \thinspace{}
25727 \end_inset
25728
25729 g., 
25730 \begin_inset Quotes eld
25731 \end_inset
25732
25733 [1]
25734 \begin_inset Quotes erd
25735 \end_inset
25736
25737 )
25738 \end_layout
25739
25740 \begin_layout Enumerate
25741 \begin_inset Flex Code
25742 status collapsed
25743
25744 \begin_layout Plain Layout
25745 authoryear
25746 \end_layout
25747
25748 \end_inset
25749
25750 : Harvard-styled citations using author names and publication year (e.
25751 \begin_inset space \thinspace{}
25752 \end_inset
25753
25754 g., 
25755 \begin_inset Quotes eld
25756 \end_inset
25757
25758 Smith and Miller (2017b)
25759 \begin_inset Quotes erd
25760 \end_inset
25761
25762 )
25763 \end_layout
25764
25765 \begin_layout Enumerate
25766 \begin_inset Flex Code
25767 status collapsed
25768
25769 \begin_layout Plain Layout
25770 numerical
25771 \end_layout
25772
25773 \end_inset
25774
25775 : extended numerical citations that also allow for author or title next
25776  to the number (e.
25777 \begin_inset space \thinspace{}
25778 \end_inset
25779
25780 g., 
25781 \begin_inset Quotes eld
25782 \end_inset
25783
25784 Smith and Miller [1]
25785 \begin_inset Quotes erd
25786 \end_inset
25787
25788 )
25789 \end_layout
25790
25791 \begin_layout Standard
25792 \begin_inset Flex Code
25793 status collapsed
25794
25795 \begin_layout Plain Layout
25796 CiteEngine
25797 \end_layout
25798
25799 \end_inset
25800
25801  blocks look like this:
25802 \end_layout
25803
25804 \begin_layout LyX-Code
25805 CiteEngine default
25806 \end_layout
25807
25808 \begin_layout LyX-Code
25809  cite
25810 \end_layout
25811
25812 \begin_layout LyX-Code
25813  Citep*[][]
25814 \end_layout
25815
25816 \begin_layout LyX-Code
25817  citeyearpar[][]=parencite*
25818 \end_layout
25819
25820 \begin_layout LyX-Code
25821  ...
25822 \end_layout
25823
25824 \begin_layout LyX-Code
25825 End
25826 \end_layout
25827
25828 \begin_layout Standard
25829 The tag following 
25830 \begin_inset Flex Code
25831 status collapsed
25832
25833 \begin_layout Plain Layout
25834 CiteEngine
25835 \end_layout
25836
25837 \end_inset
25838
25839  denotes the engine.
25840  The individual lines respectively define a cite command or cite command
25841  paradigm supported by this engine.
25842  The line can be as simple as a cite command that is used both to name the
25843  respective \SpecialChar LyX
25844  command and the \SpecialChar LaTeX
25845  output or more complex in order to differentiate
25846  things.
25847  The full syntax is:
25848 \end_layout
25849
25850 \begin_layout LyX-Code
25851 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
25852 \end_layout
25853
25854 \begin_layout Itemize
25855 \begin_inset Flex Code
25856 status collapsed
25857
25858 \begin_layout Plain Layout
25859 LyXName
25860 \end_layout
25861
25862 \end_inset
25863
25864 : The name as used in the 
25865 \begin_inset Flex Code
25866 status collapsed
25867
25868 \begin_layout Plain Layout
25869 *.lyx
25870 \end_layout
25871
25872 \end_inset
25873
25874  file.
25875 \end_layout
25876
25877 \begin_deeper
25878 \begin_layout Standard
25879 For portability reasons, we try to use the same name for same-formatted
25880  commands in different cite packages (thus many names stem from natbib,
25881  and thus we need to differentiate a 
25882 \begin_inset Flex Code
25883 status collapsed
25884
25885 \begin_layout Plain Layout
25886 latexcmd
25887 \end_layout
25888
25889 \end_inset
25890
25891  sometimes, if the \SpecialChar LaTeX
25892  command names differ).
25893 \end_layout
25894
25895 \end_deeper
25896 \begin_layout Itemize
25897 \begin_inset Flex Code
25898 status collapsed
25899
25900 \begin_layout Plain Layout
25901 alias
25902 \end_layout
25903
25904 \end_inset
25905
25906 : a (comma-separated) list of commands that fall back to the given 
25907 \begin_inset Flex Code
25908 status collapsed
25909
25910 \begin_layout Plain Layout
25911 LyXName
25912 \end_layout
25913
25914 \end_inset
25915
25916  in the current engine.
25917  This eases the switch of citation packages and engines.
25918  The 
25919 \begin_inset Flex Code
25920 status collapsed
25921
25922 \begin_layout Plain Layout
25923 alias
25924 \end_layout
25925
25926 \end_inset
25927
25928  can be compared to 
25929 \begin_inset Flex Code
25930 status collapsed
25931
25932 \begin_layout Plain Layout
25933 ObsoletedBy
25934 \end_layout
25935
25936 \end_inset
25937
25938  in layout definitions.
25939 \end_layout
25940
25941 \begin_layout Itemize
25942 \begin_inset Flex Code
25943 status collapsed
25944
25945 \begin_layout Plain Layout
25946 latexcmd
25947 \end_layout
25948
25949 \end_inset
25950
25951 : The actual \SpecialChar LaTeX
25952  command that is output.
25953  
25954 \end_layout
25955
25956 \begin_layout Standard
25957 \begin_inset Flex Code
25958 status collapsed
25959
25960 \begin_layout Plain Layout
25961 Alias
25962 \end_layout
25963
25964 \end_inset
25965
25966  and 
25967 \begin_inset Flex Code
25968 status collapsed
25969
25970 \begin_layout Plain Layout
25971 latexcmd
25972 \end_layout
25973
25974 \end_inset
25975
25976  are optional.
25977  If no 
25978 \begin_inset Flex Code
25979 status collapsed
25980
25981 \begin_layout Plain Layout
25982 latexcmd
25983 \end_layout
25984
25985 \end_inset
25986
25987  is given, the 
25988 \begin_inset Flex Code
25989 status collapsed
25990
25991 \begin_layout Plain Layout
25992 LyXName
25993 \end_layout
25994
25995 \end_inset
25996
25997  will be output to \SpecialChar LaTeX
25998 .
25999 \end_layout
26000
26001 \begin_layout Standard
26002 Note further:
26003 \end_layout
26004
26005 \begin_layout Itemize
26006 Capitalization indicates that the command also has a capitalized form (
26007 \begin_inset Flex Code
26008 status collapsed
26009
26010 \begin_layout Plain Layout
26011
26012 \backslash
26013 Latexcmd
26014 \end_layout
26015
26016 \end_inset
26017
26018  vs.
26019  
26020 \begin_inset Flex Code
26021 status collapsed
26022
26023 \begin_layout Plain Layout
26024
26025 \backslash
26026 latexcmd
26027 \end_layout
26028
26029 \end_inset
26030
26031 ).
26032  These usually enforce up-casing of name prefixes (
26033 \emph on
26034 von Goethe
26035 \emph default
26036  
26037 \begin_inset Formula $\Rightarrow$
26038 \end_inset
26039
26040  
26041 \emph on
26042 Von Goethe
26043 \emph default
26044 ).
26045 \end_layout
26046
26047 \begin_layout Itemize
26048 Brackets 
26049 \begin_inset Flex Code
26050 status collapsed
26051
26052 \begin_layout Plain Layout
26053 []
26054 \end_layout
26055
26056 \end_inset
26057
26058  indicate the number of optional arguments (there can be 0–2).
26059 \end_layout
26060
26061 \begin_layout Itemize
26062 A star 
26063 \begin_inset Flex Code
26064 status collapsed
26065
26066 \begin_layout Plain Layout
26067 *
26068 \end_layout
26069
26070 \end_inset
26071
26072  indicates there is a starred version of the command (
26073 \begin_inset Flex Code
26074 status collapsed
26075
26076 \begin_layout Plain Layout
26077
26078 \backslash
26079 latexcmd*
26080 \end_layout
26081
26082 \end_inset
26083
26084  vs.
26085  
26086 \begin_inset Flex Code
26087 status collapsed
26088
26089 \begin_layout Plain Layout
26090
26091 \backslash
26092 latexcmd
26093 \end_layout
26094
26095 \end_inset
26096
26097 ).
26098  
26099 \end_layout
26100
26101 \begin_deeper
26102 \begin_layout Standard
26103 By default, the starred version means: Output all authors even if it should
26104  be shortened with 
26105 \begin_inset Quotes eld
26106 \end_inset
26107
26108 et al.
26109 \begin_inset Quotes erd
26110 \end_inset
26111
26112  due to the 
26113 \begin_inset Flex Code
26114 status collapsed
26115
26116 \begin_layout Plain Layout
26117 MaxCiteNames
26118 \end_layout
26119
26120 \end_inset
26121
26122  threshold.
26123 \end_layout
26124
26125 \begin_layout Standard
26126 If the star has a different meaning for a given command, it can be specified
26127  in angle brackets: 
26128 \begin_inset Flex Code
26129 status collapsed
26130
26131 \begin_layout Plain Layout
26132 <!_stardesc!_stardesctooltip>
26133 \end_layout
26134
26135 \end_inset
26136
26137 .
26138  Maximal two translatable macro keywords, marked by the prefix 
26139 \begin_inset Flex Code
26140 status collapsed
26141
26142 \begin_layout Plain Layout
26143 !_
26144 \end_layout
26145
26146 \end_inset
26147
26148 , can be given.
26149  The first points to the string that replaces the 
26150 \begin_inset Quotes eld
26151 \end_inset
26152
26153 Full aut&hor list
26154 \begin_inset Quotes erd
26155 \end_inset
26156
26157  checkbox label in the citation dialog, the second one to an optional tool
26158  tip for this checkbox.
26159  
26160 \end_layout
26161
26162 \begin_layout Standard
26163 Note that these two macros have to be defined in a 
26164 \begin_inset Flex Code
26165 status collapsed
26166
26167 \begin_layout Plain Layout
26168 CiteFormat
26169 \end_layout
26170
26171 \end_inset
26172
26173  (see next section), dropping the 
26174 \begin_inset Flex Code
26175 status collapsed
26176
26177 \begin_layout Plain Layout
26178 !
26179 \end_layout
26180
26181 \end_inset
26182
26183  from the prefix, like this: 
26184 \end_layout
26185
26186 \begin_layout LyX-Code
26187 _stardesc Sta&rred command label
26188 \end_layout
26189
26190 \begin_layout LyX-Code
26191 _stardesctooltip Tooltip for the starred command checkbox.
26192 \end_layout
26193
26194 \end_deeper
26195 \begin_layout Itemize
26196 A dollar sign 
26197 \begin_inset Flex Code
26198 status collapsed
26199
26200 \begin_layout Plain Layout
26201 $
26202 \end_layout
26203
26204 \end_inset
26205
26206  indicates that this command features 
26207 \begin_inset Quotes eld
26208 \end_inset
26209
26210 qualified citation lists
26211 \begin_inset Quotes erd
26212 \end_inset
26213
26214 .
26215  This is a 
26216 \family sans
26217 Biblatex
26218 \family default
26219 -specific feature for multi-reference citations where an individual pre-
26220  and postnote can be given to each reference in the list.
26221  Please refer to the 
26222 \family sans
26223 Biblatex
26224 \family default
26225  manual for details.
26226 \change_inserted -712698321 1526898670
26227
26228 \end_layout
26229
26230 \begin_layout Standard
26231
26232 \change_inserted -712698321 1526899524
26233 If you want to add a cite command to a cite engine (e.
26234 \begin_inset space \thinspace{}
26235 \end_inset
26236
26237 g., add a specific command provided by a class), you can use 
26238 \begin_inset Flex Code
26239 status collapsed
26240
26241 \begin_layout Plain Layout
26242
26243 \change_inserted -712698321 1526898768
26244 AddToCiteEngine <engine type> \SpecialChar ldots
26245  End
26246 \change_unchanged
26247
26248 \end_layout
26249
26250 \end_inset
26251
26252 .
26253  Note that only cite commands that do not exist yet are added.
26254 \change_unchanged
26255
26256 \end_layout
26257
26258 \begin_layout Subsection
26259 \begin_inset CommandInset label
26260 LatexCommand label
26261 name "subsec:Citation-format-description"
26262
26263 \end_inset
26264
26265 Cite format description
26266 \end_layout
26267
26268 \begin_layout Standard
26269 The 
26270 \begin_inset Flex Code
26271 status collapsed
26272
26273 \begin_layout Plain Layout
26274 CiteFormat
26275 \end_layout
26276
26277 \end_inset
26278
26279  blocks are used to describe how bibliographic information should be displayed,
26280  both within \SpecialChar LyX
26281  itself (in the citation dialog and in tooltips, for example)
26282  and in XHTML output.
26283  Such a block might look like this:
26284 \end_layout
26285
26286 \begin_layout LyX-Code
26287 CiteFormat
26288 \end_layout
26289
26290 \begin_layout LyX-Code
26291  article ...
26292 \end_layout
26293
26294 \begin_layout LyX-Code
26295  book ...
26296 \end_layout
26297
26298 \begin_layout LyX-Code
26299 End
26300 \end_layout
26301
26302 \begin_layout Standard
26303 or
26304 \end_layout
26305
26306 \begin_layout LyX-Code
26307 CiteFormat
26308 \end_layout
26309
26310 \begin_layout LyX-Code
26311  cite ...
26312 \end_layout
26313
26314 \begin_layout LyX-Code
26315  citet*[][] ...
26316 \end_layout
26317
26318 \begin_layout LyX-Code
26319 End
26320 \end_layout
26321
26322 \begin_layout Standard
26323 In the first case, the individual lines define how the bibliographic information
26324  associated with an article or book, respectively, is to be displayed, and
26325  such a definition can be given for any 
26326 \begin_inset Quotes els
26327 \end_inset
26328
26329 entry type
26330 \begin_inset Quotes ers
26331 \end_inset
26332
26333  that might be present in a Bib\SpecialChar TeX
26334  file.
26335  \SpecialChar LyX
26336  defines a default format in the source code that will be used if no specific
26337  definition has been given.
26338  \SpecialChar LyX
26339  predefines several formats in the file 
26340 \begin_inset Flex Code
26341 status collapsed
26342
26343 \begin_layout Plain Layout
26344 stdciteformats.inc
26345 \end_layout
26346
26347 \end_inset
26348
26349 , which is included in most of \SpecialChar LyX
26350 's document classes.
26351 \end_layout
26352
26353 \begin_layout Standard
26354 In the second case, the lines define how a specific citation command (in
26355  the example 
26356 \begin_inset Flex Code
26357 status collapsed
26358
26359 \begin_layout Plain Layout
26360
26361 \backslash
26362 cite
26363 \end_layout
26364
26365 \end_inset
26366
26367
26368 \begin_inset Flex Code
26369 status collapsed
26370
26371 \begin_layout Plain Layout
26372
26373 \backslash
26374 citet
26375 \end_layout
26376
26377 \end_inset
26378
26379 ) is to be displayed on the citation inset label, in the citation dialog,
26380  menu or XHTML output.
26381  \SpecialChar LyX
26382  defines such formats for the citation style variants it supports via 
26383 \family sans
26384 Document\SpecialChar menuseparator
26385 Setting\SpecialChar menuseparator
26386 Bibliography\SpecialChar ldots
26387
26388 \family default
26389  in specific 
26390 \begin_inset Flex Code
26391 status collapsed
26392
26393 \begin_layout Plain Layout
26394 *.citeengine
26395 \end_layout
26396
26397 \end_inset
26398
26399  files that are shipped with \SpecialChar LyX
26400  (see 
26401 \begin_inset CommandInset ref
26402 LatexCommand ref
26403 reference "subsec:Cite-Engine-Files"
26404 plural "false"
26405 caps "false"
26406 noprefix "false"
26407
26408 \end_inset
26409
26410 ).
26411 \end_layout
26412
26413 \begin_layout Standard
26414 The definitions use a simple language that allows Bib\SpecialChar TeX
26415  keys to be replaced
26416  with their values.
26417  Keys should be enclosed in 
26418 \begin_inset Flex Code
26419 status collapsed
26420
26421 \begin_layout Plain Layout
26422 %
26423 \end_layout
26424
26425 \end_inset
26426
26427  signs, e.g.: 
26428 \begin_inset Flex Code
26429 status collapsed
26430
26431 \begin_layout Plain Layout
26432 %author%
26433 \end_layout
26434
26435 \end_inset
26436
26437 .
26438  So a simple definition might look like this:
26439 \end_layout
26440
26441 \begin_layout LyX-Code
26442 misc %author%, 
26443 \begin_inset Quotes eld
26444 \end_inset
26445
26446 %title%
26447 \begin_inset Quotes erd
26448 \end_inset
26449
26450 .
26451 \end_layout
26452
26453 \begin_layout Standard
26454 This would print the author, followed by a comma, followed by the title,
26455  in quotes, followed by a period.
26456 \end_layout
26457
26458 \begin_layout Standard
26459 Of course, sometimes you may want to print a key only if it exists.
26460  This can be done by using a conditional construction, such as: 
26461 \begin_inset Flex Code
26462 status collapsed
26463
26464 \begin_layout Plain Layout
26465 {%volume%[[vol.
26466 \begin_inset space ~
26467 \end_inset
26468
26469 %volume%]]}
26470 \end_layout
26471
26472 \end_inset
26473
26474 .
26475  This says: If the 
26476 \begin_inset Flex Code
26477 status collapsed
26478
26479 \begin_layout Plain Layout
26480 volume
26481 \end_layout
26482
26483 \end_inset
26484
26485  key exists, then print 
26486 \begin_inset Quotes eld
26487 \end_inset
26488
26489 vol.
26490 \begin_inset space ~
26491 \end_inset
26492
26493
26494 \begin_inset Quotes erd
26495 \end_inset
26496
26497  followed by the volume key.
26498  It is also possible to have an else clause in the conditional, such as:
26499 \begin_inset Newline newline
26500 \end_inset
26501
26502
26503 \begin_inset Flex Code
26504 status collapsed
26505
26506 \begin_layout Plain Layout
26507 {%author%[[%author%]][[%editor%, ed.]]}
26508 \end_layout
26509
26510 \end_inset
26511
26512 .
26513 \begin_inset Newline newline
26514 \end_inset
26515
26516 Here, the 
26517 \begin_inset Flex Code
26518 status collapsed
26519
26520 \begin_layout Plain Layout
26521 author
26522 \end_layout
26523
26524 \end_inset
26525
26526  key is printed if it exists; otherwise, the editor key is printed, followed
26527  by 
26528 \begin_inset Quotes eld
26529 \end_inset
26530
26531 ,
26532 \begin_inset space ~
26533 \end_inset
26534
26535 ed.
26536 \begin_inset Quotes erd
26537 \end_inset
26538
26539  Note that the key is again enclosed in 
26540 \begin_inset Flex Code
26541 status collapsed
26542
26543 \begin_layout Plain Layout
26544 %
26545 \end_layout
26546
26547 \end_inset
26548
26549  signs; the entire conditional is enclosed in braces; and the if and else
26550  clauses are enclosed in double brackets, 
26551 \begin_inset Quotes eld
26552 \end_inset
26553
26554
26555 \begin_inset Flex Code
26556 status collapsed
26557
26558 \begin_layout Plain Layout
26559 [[
26560 \end_layout
26561
26562 \end_inset
26563
26564
26565 \begin_inset Quotes eld
26566 \end_inset
26567
26568  and 
26569 \begin_inset Quotes eld
26570 \end_inset
26571
26572
26573 \begin_inset Flex Code
26574 status collapsed
26575
26576 \begin_layout Plain Layout
26577 ]]
26578 \end_layout
26579
26580 \end_inset
26581
26582
26583 \begin_inset Quotes erd
26584 \end_inset
26585
26586 .
26587  There must be no space between any of these.
26588 \end_layout
26589
26590 \begin_layout Standard
26591 Next to the entry keys, there are some special keys that can be used for
26592  these conditionals:
26593 \end_layout
26594
26595 \begin_layout Itemize
26596 \begin_inset Flex Code
26597 status collapsed
26598
26599 \begin_layout Plain Layout
26600 {%dialog%[[true]][[false]]}
26601 \end_layout
26602
26603 \end_inset
26604
26605 : process the 
26606 \begin_inset Quotes eld
26607 \end_inset
26608
26609 true
26610 \begin_inset Quotes erd
26611 \end_inset
26612
26613  part for dialogs and menus, the 
26614 \begin_inset Quotes eld
26615 \end_inset
26616
26617 false
26618 \begin_inset Quotes erd
26619 \end_inset
26620
26621  part for other contexts (workarea, export)
26622 \end_layout
26623
26624 \begin_layout Itemize
26625 \begin_inset Flex Code
26626 status collapsed
26627
26628 \begin_layout Plain Layout
26629 {%export%[[true]][[false]]}
26630 \end_layout
26631
26632 \end_inset
26633
26634 : process the 
26635 \begin_inset Quotes eld
26636 \end_inset
26637
26638 true
26639 \begin_inset Quotes erd
26640 \end_inset
26641
26642  part for export and menus, the 
26643 \begin_inset Quotes eld
26644 \end_inset
26645
26646 false
26647 \begin_inset Quotes erd
26648 \end_inset
26649
26650  part for other contexts (workarea, dialog)
26651 \end_layout
26652
26653 \begin_layout Itemize
26654 \begin_inset Flex Code
26655 status collapsed
26656
26657 \begin_layout Plain Layout
26658 {%next%[[true]]}
26659 \end_layout
26660
26661 \end_inset
26662
26663 : process the 
26664 \begin_inset Quotes eld
26665 \end_inset
26666
26667 true
26668 \begin_inset Quotes erd
26669 \end_inset
26670
26671  part if another item follows (e.
26672 \begin_inset space \thinspace{}
26673 \end_inset
26674
26675 g., in a citation with multiple keys)
26676 \end_layout
26677
26678 \begin_layout Itemize
26679 \begin_inset Flex Code
26680 status collapsed
26681
26682 \begin_layout Plain Layout
26683 {%second%[[true]][[false]]}
26684 \end_layout
26685
26686 \end_inset
26687
26688 : process the 
26689 \begin_inset Quotes eld
26690 \end_inset
26691
26692 true
26693 \begin_inset Quotes erd
26694 \end_inset
26695
26696  if this is the second of multiple items, else the 
26697 \begin_inset Quotes eld
26698 \end_inset
26699
26700 false
26701 \begin_inset Quotes erd
26702 \end_inset
26703
26704  part
26705 \end_layout
26706
26707 \begin_layout Itemize
26708 \begin_inset Flex Code
26709 status collapsed
26710
26711 \begin_layout Plain Layout
26712 {%ifstar%[[true]][[false]]}
26713 \end_layout
26714
26715 \end_inset
26716
26717 : process the 
26718 \begin_inset Quotes eld
26719 \end_inset
26720
26721 true
26722 \begin_inset Quotes erd
26723 \end_inset
26724
26725  part for starred citation commands (such as 
26726 \begin_inset Flex Code
26727 status collapsed
26728
26729 \begin_layout Plain Layout
26730
26731 \backslash
26732 cite*
26733 \end_layout
26734
26735 \end_inset
26736
26737 ), the false part for unstarred
26738 \end_layout
26739
26740 \begin_layout Itemize
26741 \begin_inset Flex Code
26742 status collapsed
26743
26744 \begin_layout Plain Layout
26745 {%ifentrytype:<type>%[[true]][[false]]}
26746 \end_layout
26747
26748 \end_inset
26749
26750 : process the 
26751 \begin_inset Quotes eld
26752 \end_inset
26753
26754 true
26755 \begin_inset Quotes erd
26756 \end_inset
26757
26758  if the current entry type matches 
26759 \begin_inset Flex Code
26760 status collapsed
26761
26762 \begin_layout Plain Layout
26763 <type>
26764 \end_layout
26765
26766 \end_inset
26767
26768 , else the false part (e.g., in a citation definition: 
26769 \begin_inset Flex Code
26770 status collapsed
26771
26772 \begin_layout Plain Layout
26773 {%ifentrytype:book%[[this is a book]][[this is no book]]}
26774 \end_layout
26775
26776 \end_inset
26777
26778 )
26779 \end_layout
26780
26781 \begin_layout Itemize
26782 \begin_inset Flex Code
26783 status collapsed
26784
26785 \begin_layout Plain Layout
26786 {%ifmultiple:<authortype>%[[true]][[false]]}
26787 \end_layout
26788
26789 \end_inset
26790
26791 : process the 
26792 \begin_inset Quotes eld
26793 \end_inset
26794
26795 true
26796 \begin_inset Quotes erd
26797 \end_inset
26798
26799  if the current author type (author, editor etc.) has multiple authors, else
26800  the false part (e.g., in a bibliography definition: 
26801 \begin_inset Flex Code
26802 status collapsed
26803
26804 \begin_layout Plain Layout
26805 {%ifmultiple:editor%[[eds.]][[ed.]]}
26806 \end_layout
26807
26808 \end_inset
26809
26810 )
26811 \end_layout
26812
26813 \begin_layout Itemize
26814 \begin_inset Flex Code
26815 status collapsed
26816
26817 \begin_layout Plain Layout
26818 {%ifqualified%[[true]][[false]]}
26819 \end_layout
26820
26821 \end_inset
26822
26823 : process the 
26824 \begin_inset Quotes eld
26825 \end_inset
26826
26827 true
26828 \begin_inset Quotes erd
26829 \end_inset
26830
26831  part if the current citation is a qualified citation list (a specific 
26832 \family sans
26833 Biblatex
26834 \family default
26835  format for multi-reference citations), the false part if this is not the
26836  case.
26837 \end_layout
26838
26839 \begin_layout Standard
26840 We said that 
26841 \begin_inset Flex Code
26842 status collapsed
26843
26844 \begin_layout Plain Layout
26845 %author%
26846 \end_layout
26847
26848 \end_inset
26849
26850  prints the author key as it is recorded in the bibliography file.
26851  This might not be what you want, since it will result in a string such
26852  as 
26853 \begin_inset Quotes eld
26854 \end_inset
26855
26856 Miller, Peter and Smith, Mary and White, Jane
26857 \begin_inset Quotes erd
26858 \end_inset
26859
26860  (since 
26861 \begin_inset Quotes eld
26862 \end_inset
26863
26864 and
26865 \begin_inset Quotes erd
26866 \end_inset
26867
26868  is used by Bib\SpecialChar TeX
26869  to delimit authors).
26870  \SpecialChar LyX
26871  therefore provides some methods to get properly formatted name lists (which
26872  will also get translated).
26873  The following keys are provided:
26874 \end_layout
26875
26876 \begin_layout Enumerate
26877 For name lists with pre- and surname, suitable for the main authors/editors
26878  of a bibliography item.
26879  The 
26880 \begin_inset Flex Code
26881 status collapsed
26882
26883 \begin_layout Plain Layout
26884 <nametype>
26885 \end_layout
26886
26887 \end_inset
26888
26889  part denotes the kind of list that is requested (e.g.
26890  
26891 \begin_inset Flex Code
26892 status collapsed
26893
26894 \begin_layout Plain Layout
26895 <nametype:author>
26896 \end_layout
26897
26898 \end_inset
26899
26900 ):
26901 \end_layout
26902
26903 \begin_deeper
26904 \begin_layout Itemize
26905 \begin_inset Flex Code
26906 status collapsed
26907
26908 \begin_layout Plain Layout
26909 %abbrvnames:<nametype>%
26910 \end_layout
26911
26912 \end_inset
26913
26914 : Provides a name list which is abbreviated (with 
26915 \begin_inset Quotes eld
26916 \end_inset
26917
26918 et al.
26919 \begin_inset Quotes erd
26920 \end_inset
26921
26922 ) when 
26923 \begin_inset Flex Code
26924 status collapsed
26925
26926 \begin_layout Plain Layout
26927 MaxCiteNames
26928 \end_layout
26929
26930 \end_inset
26931
26932  is reached.
26933 \end_layout
26934
26935 \begin_layout Itemize
26936 \begin_inset Flex Code
26937 status collapsed
26938
26939 \begin_layout Plain Layout
26940 %fullnames:<nametype>%
26941 \end_layout
26942
26943 \end_inset
26944
26945 : Provides a full name list (never abbreviated with 
26946 \begin_inset Quotes eld
26947 \end_inset
26948
26949 et al.
26950 \begin_inset Quotes erd
26951 \end_inset
26952
26953 ).
26954 \end_layout
26955
26956 \begin_layout Itemize
26957 \begin_inset Flex Code
26958 status collapsed
26959
26960 \begin_layout Plain Layout
26961 %forceabbrvnames:<nametype>%
26962 \end_layout
26963
26964 \end_inset
26965
26966 : Provides a name list which is always abbreviated (with 
26967 \begin_inset Quotes eld
26968 \end_inset
26969
26970 et al.
26971 \begin_inset Quotes erd
26972 \end_inset
26973
26974 ) irrespective of 
26975 \begin_inset Flex Code
26976 status collapsed
26977
26978 \begin_layout Plain Layout
26979 MaxCiteNames
26980 \end_layout
26981
26982 \end_inset
26983
26984 .
26985 \end_layout
26986
26987 \end_deeper
26988 \begin_layout Enumerate
26989 Alternative name lists with pre- and surname, if the order of pre- and surname
26990  inside the bibliography item differs (as in: 
26991 \begin_inset Quotes eld
26992 \end_inset
26993
26994 Miller, John: Some text, in: Mary Smith, ed.: A volume
26995 \begin_inset Quotes erd
26996 \end_inset
26997
26998 ):
26999 \end_layout
27000
27001 \begin_deeper
27002 \begin_layout Itemize
27003 \begin_inset Flex Code
27004 status collapsed
27005
27006 \begin_layout Plain Layout
27007 %abbrvbynames:<nametype>%
27008 \end_layout
27009
27010 \end_inset
27011
27012 : Provides a name list which is abbreviated (with 
27013 \begin_inset Quotes eld
27014 \end_inset
27015
27016 et al.
27017 \begin_inset Quotes erd
27018 \end_inset
27019
27020 ) when 
27021 \begin_inset Flex Code
27022 status collapsed
27023
27024 \begin_layout Plain Layout
27025 MaxCiteNames
27026 \end_layout
27027
27028 \end_inset
27029
27030  is reached.
27031 \end_layout
27032
27033 \begin_layout Itemize
27034 \begin_inset Flex Code
27035 status collapsed
27036
27037 \begin_layout Plain Layout
27038 %fullbynames:<nametype>%
27039 \end_layout
27040
27041 \end_inset
27042
27043 : Provides a full name list (never abbreviated with 
27044 \begin_inset Quotes eld
27045 \end_inset
27046
27047 et al.
27048 \begin_inset Quotes erd
27049 \end_inset
27050
27051 ).
27052 \end_layout
27053
27054 \begin_layout Itemize
27055 \begin_inset Flex Code
27056 status collapsed
27057
27058 \begin_layout Plain Layout
27059 %forceabbrvbynames:<nametype>%
27060 \end_layout
27061
27062 \end_inset
27063
27064 : Provides a name list which is always abbreviated (with 
27065 \begin_inset Quotes eld
27066 \end_inset
27067
27068 et al.
27069 \begin_inset Quotes erd
27070 \end_inset
27071
27072 ) irrespective of 
27073 \begin_inset Flex Code
27074 status collapsed
27075
27076 \begin_layout Plain Layout
27077 MaxCiteNames
27078 \end_layout
27079
27080 \end_inset
27081
27082 .
27083 \end_layout
27084
27085 \end_deeper
27086 \begin_layout Enumerate
27087 And finally name lists which consist of family names only, as used in author-yea
27088 r citation labels.
27089  These do not take a 
27090 \begin_inset Flex Code
27091 status collapsed
27092
27093 \begin_layout Plain Layout
27094 <nametype>
27095 \end_layout
27096
27097 \end_inset
27098
27099  part, but always return either an author list or, if this does not exist,
27100  an editor list (as common in author-year labels):
27101 \end_layout
27102
27103 \begin_deeper
27104 \begin_layout Itemize
27105 \begin_inset Flex Code
27106 status collapsed
27107
27108 \begin_layout Plain Layout
27109 %abbrvciteauthor%
27110 \end_layout
27111
27112 \end_inset
27113
27114 : Provides a name list which is abbreviated (with 
27115 \begin_inset Quotes eld
27116 \end_inset
27117
27118 et al.
27119 \begin_inset Quotes erd
27120 \end_inset
27121
27122 ) when 
27123 \begin_inset Flex Code
27124 status collapsed
27125
27126 \begin_layout Plain Layout
27127 MaxCiteNames
27128 \end_layout
27129
27130 \end_inset
27131
27132  is reached.
27133 \end_layout
27134
27135 \begin_layout Itemize
27136 \begin_inset Flex Code
27137 status collapsed
27138
27139 \begin_layout Plain Layout
27140 %fullciteauthor%
27141 \end_layout
27142
27143 \end_inset
27144
27145 : Provides a full name list (never abbreviated with 
27146 \begin_inset Quotes eld
27147 \end_inset
27148
27149 et al.
27150 \begin_inset Quotes erd
27151 \end_inset
27152
27153 ).
27154 \end_layout
27155
27156 \begin_layout Itemize
27157 \begin_inset Flex Code
27158 status collapsed
27159
27160 \begin_layout Plain Layout
27161 %forceabbrvciteauthor%
27162 \end_layout
27163
27164 \end_inset
27165
27166 : Provides a name list which is always abbreviated (with 
27167 \begin_inset Quotes eld
27168 \end_inset
27169
27170 et al.
27171 \begin_inset Quotes erd
27172 \end_inset
27173
27174 ) irrespective of 
27175 \begin_inset Flex Code
27176 status collapsed
27177
27178 \begin_layout Plain Layout
27179 MaxCiteNames
27180 \end_layout
27181
27182 \end_inset
27183
27184 .
27185 \end_layout
27186
27187 \end_deeper
27188 \begin_layout Standard
27189 The order of pre- and surname in the former two lists can be adjusted by
27190  these macros:
27191 \end_layout
27192
27193 \begin_layout Itemize
27194 \begin_inset Flex Code
27195 status collapsed
27196
27197 \begin_layout Plain Layout
27198 !firstnameform %surname%, %prename%
27199 \end_layout
27200
27201 \end_inset
27202
27203  (first author in lists of type 1)
27204 \end_layout
27205
27206 \begin_layout Itemize
27207 \begin_inset Flex Code
27208 status collapsed
27209
27210 \begin_layout Plain Layout
27211 !othernameform %surname%, %prename%
27212 \end_layout
27213
27214 \end_inset
27215
27216  (other authors in lists of type 1)
27217 \end_layout
27218
27219 \begin_layout Itemize
27220 \begin_inset Flex Code
27221 status collapsed
27222
27223 \begin_layout Plain Layout
27224 !firstbynameform %prename% %surname%
27225 \end_layout
27226
27227 \end_inset
27228
27229  (first author in lists of type 2)
27230 \end_layout
27231
27232 \begin_layout Itemize
27233 \begin_inset Flex Code
27234 status collapsed
27235
27236 \begin_layout Plain Layout
27237 !otherbynameform %prename% %surname%
27238 \end_layout
27239
27240 \end_inset
27241
27242  (other authors in lists of type 2)
27243 \end_layout
27244
27245 \begin_layout Standard
27246 This allows you to configure namings like 
27247 \begin_inset Quotes eld
27248 \end_inset
27249
27250 Miller, Peter and Mary Smith: \SpecialChar ldots
27251 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
27252
27253 \begin_inset Quotes erd
27254 \end_inset
27255
27256 .
27257 \end_layout
27258
27259 \begin_layout Standard
27260 There is one other piece of syntax available in definitions, which looks
27261  like this: 
27262 \begin_inset Flex Code
27263 status collapsed
27264
27265 \begin_layout Plain Layout
27266 {!<i>!}
27267 \end_layout
27268
27269 \end_inset
27270
27271 .
27272  This defines a piece of formatting information that is to be used when
27273  creating 
27274 \begin_inset Quotes eld
27275 \end_inset
27276
27277 rich text
27278 \begin_inset Quotes erd
27279 \end_inset
27280
27281 .
27282  Obviously, we do not want to output HTML tags when writing plain text,
27283  so they should be wrapped in 
27284 \begin_inset Quotes eld
27285 \end_inset
27286
27287 {!
27288 \begin_inset Quotes erd
27289 \end_inset
27290
27291  and 
27292 \begin_inset Quotes eld
27293 \end_inset
27294
27295 !}
27296 \begin_inset Quotes erd
27297 \end_inset
27298
27299 .
27300 \end_layout
27301
27302 \begin_layout Standard
27303 Two special sorts of definitions are also possible in a 
27304 \begin_inset Flex Code
27305 status collapsed
27306
27307 \begin_layout Plain Layout
27308 CiteFormat
27309 \end_layout
27310
27311 \end_inset
27312
27313  block.
27314  An example of the first would be:
27315 \end_layout
27316
27317 \begin_layout LyX-Code
27318 !quotetitle 
27319 \begin_inset Quotes eld
27320 \end_inset
27321
27322 %title%
27323 \begin_inset Quotes erd
27324 \end_inset
27325
27326
27327 \end_layout
27328
27329 \begin_layout Standard
27330 This is an abbreviation, or macro, and it can be used by treating it as
27331  if it were a key: 
27332 \begin_inset Flex Code
27333 status collapsed
27334
27335 \begin_layout Plain Layout
27336 %!quotetitle%
27337 \end_layout
27338
27339 \end_inset
27340
27341 .
27342  \SpecialChar LyX
27343  will treat 
27344 \begin_inset Flex Code
27345 status collapsed
27346
27347 \begin_layout Plain Layout
27348 %!quotetitle%
27349 \end_layout
27350
27351 \end_inset
27352
27353  exactly as it would treat its definition.
27354  So, let us issue the obvious 
27355 \emph on
27356 warning
27357 \emph default
27358 .
27359  Do not do this:
27360 \end_layout
27361
27362 \begin_layout LyX-Code
27363 !funfun %funfun%
27364 \end_layout
27365
27366 \begin_layout Standard
27367 or anything like it.
27368  \SpecialChar LyX
27369  shouldn't go into an infinite loop, but it may go into a long one before
27370  it gives up.
27371 \end_layout
27372
27373 \begin_layout Standard
27374 The second sort of special definition might look like this:
27375 \end_layout
27376
27377 \begin_layout LyX-Code
27378 B_pptext pp.
27379 \end_layout
27380
27381 \begin_layout Standard
27382 This defines a translatable piece of text, which allows relevant parts of
27383  the bibliography or citation to be translated.
27384  It can be included in a definition by treating it as a key: 
27385 \begin_inset Flex Code
27386 status collapsed
27387
27388 \begin_layout Plain Layout
27389 %B_pptext%
27390 \end_layout
27391
27392 \end_inset
27393
27394 .
27395  Note that there are two different translation paths: All definitions starting
27396  with 
27397 \begin_inset Flex Code
27398 status collapsed
27399
27400 \begin_layout Plain Layout
27401 B_
27402 \end_layout
27403
27404 \end_inset
27405
27406 , such as in the example above, will be translated to the currently active
27407  buffer language (so the translation will match the generated document).
27408  All definitions starting with underscore only will be translated to the
27409  GUI language.
27410  This is the proper translation for strings that only occur in the dialogs
27411  or on buttons, such as this one:
27412 \end_layout
27413
27414 \begin_layout LyX-Code
27415 _addtobib Add to bibliography only.
27416 \end_layout
27417
27418 \begin_layout Standard
27419 Several of these translatable strings are predefined in 
27420 \begin_inset Flex Code
27421 status collapsed
27422
27423 \begin_layout Plain Layout
27424 stdciteformats.inc
27425 \end_layout
27426
27427 \end_inset
27428
27429  and the diverse 
27430 \begin_inset Flex Code
27431 status collapsed
27432
27433 \begin_layout Plain Layout
27434 *.citeengine
27435 \end_layout
27436
27437 \end_inset
27438
27439  files.
27440  Note that these are not macros, in the sense just defined.
27441  They will not be expanded.
27442 \end_layout
27443
27444 \begin_layout Standard
27445 So here then is an example that uses several of these features:
27446 \begin_inset VSpace defskip
27447 \end_inset
27448
27449
27450 \end_layout
27451
27452 \begin_layout Standard
27453 \noindent
27454
27455 \family sans
27456 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
27457 \end_layout
27458
27459 \begin_layout Standard
27460 \begin_inset VSpace defskip
27461 \end_inset
27462
27463 This defines a macro that prints the author, followed by a comma, if the
27464  
27465 \begin_inset Flex Code
27466 status collapsed
27467
27468 \begin_layout Plain Layout
27469 author
27470 \end_layout
27471
27472 \end_inset
27473
27474  key is defined, or else prints the name of the editor, followed by the
27475  
27476 \begin_inset Flex Code
27477 status collapsed
27478
27479 \begin_layout Plain Layout
27480 B_edtext
27481 \end_layout
27482
27483 \end_inset
27484
27485  or its translation (it is by default 
27486 \begin_inset Quotes eld
27487 \end_inset
27488
27489 ed.
27490 \begin_inset Quotes erd
27491 \end_inset
27492
27493 ), if the 
27494 \begin_inset Flex Code
27495 status collapsed
27496
27497 \begin_layout Plain Layout
27498 editor
27499 \end_layout
27500
27501 \end_inset
27502
27503  key is defined.
27504  Note that this is in fact defined in 
27505 \begin_inset Flex Code
27506 status collapsed
27507
27508 \begin_layout Plain Layout
27509 stdciteformats.inc
27510 \end_layout
27511
27512 \end_inset
27513
27514 , so you can use it in your own definitions, or re-definitions, if you load
27515  that file first.
27516 \end_layout
27517
27518 \begin_layout Section
27519 \begin_inset CommandInset label
27520 LatexCommand label
27521 name "sec:Tags-for-XHTML"
27522
27523 \end_inset
27524
27525 Tags for XHTML output
27526 \end_layout
27527
27528 \begin_layout Standard
27529 As with \SpecialChar LaTeX
27530  or DocBook, the format of \SpecialChar LyX
27531 's XHTML output is also controlled by
27532  layout information.
27533  In general, \SpecialChar LyX
27534  provides sensible defaults and, as mentioned earlier, it will
27535  even construct default CSS style rules from the other layout tags.
27536  For example, \SpecialChar LyX
27537  will attempt to use the information provided in the 
27538 \begin_inset Flex Code
27539 status collapsed
27540
27541 \begin_layout Plain Layout
27542 Font
27543 \end_layout
27544
27545 \end_inset
27546
27547  declaration for the Chapter style to write CSS that will appropriately
27548  format chapter headings.
27549 \end_layout
27550
27551 \begin_layout Standard
27552 In many cases, then, you may not have to do anything at all to get acceptable
27553  XHTML output for your own environments, custom insets, and so forth.
27554  But in some cases you will, and so \SpecialChar LyX
27555  provides a number of layout tags that
27556  can be used to customize the XHTML and CSS that are generated.
27557 \end_layout
27558
27559 \begin_layout Standard
27560 Note that there are two tags, 
27561 \begin_inset Flex Code
27562 status collapsed
27563
27564 \begin_layout Plain Layout
27565 HTMLPreamble
27566 \end_layout
27567
27568 \end_inset
27569
27570  and 
27571 \begin_inset Flex Code
27572 status collapsed
27573
27574 \begin_layout Plain Layout
27575 AddToHTMLPreamble
27576 \end_layout
27577
27578 \end_inset
27579
27580  that may appear outside style and inset declarations.
27581  See 
27582 \begin_inset CommandInset ref
27583 LatexCommand ref
27584 reference "subsec:General-text-class"
27585
27586 \end_inset
27587
27588  for details on these.
27589 \end_layout
27590
27591 \begin_layout Subsection
27592 \begin_inset CommandInset label
27593 LatexCommand label
27594 name "subsec:Paragraph-Style-XHTML"
27595
27596 \end_inset
27597
27598 Paragraph styles
27599 \end_layout
27600
27601 \begin_layout Standard
27602 The sort of XHTML \SpecialChar LyX
27603  outputs for a paragraph depends upon whether we are dealing
27604  with a normal paragraph, a command, or an environment, where this is itself
27605  determined by the contents of the corresponding 
27606 \begin_inset Flex Code
27607 status collapsed
27608
27609 \begin_layout Plain Layout
27610 \SpecialChar LaTeX
27611 Type
27612 \end_layout
27613
27614 \end_inset
27615
27616  tag.
27617  
27618 \end_layout
27619
27620 \begin_layout Standard
27621 For a command or normal paragraph, the output XHTML has the following form:
27622 \end_layout
27623
27624 \begin_layout LyX-Code
27625
27626 \family sans
27627 <tag attr=
27628 \begin_inset Quotes erd
27629 \end_inset
27630
27631 value
27632 \begin_inset Quotes erd
27633 \end_inset
27634
27635 >
27636 \end_layout
27637
27638 \begin_layout LyX-Code
27639
27640 \family sans
27641 <labeltag attr=
27642 \begin_inset Quotes erd
27643 \end_inset
27644
27645 value
27646 \begin_inset Quotes erd
27647 \end_inset
27648
27649 >Label</labeltag>
27650 \end_layout
27651
27652 \begin_layout LyX-Code
27653
27654 \family sans
27655 Contents of the paragraph.
27656 \end_layout
27657
27658 \begin_layout LyX-Code
27659
27660 \family sans
27661 </tag>
27662 \end_layout
27663
27664 \begin_layout Standard
27665 The label tags are of course omitted if the paragraph does not have a label.
27666 \end_layout
27667
27668 \begin_layout Standard
27669 For an environment that is not some sort of list, the XHTML takes this form:
27670 \end_layout
27671
27672 \begin_layout LyX-Code
27673
27674 \family sans
27675 <tag attr=
27676 \begin_inset Quotes erd
27677 \end_inset
27678
27679 value
27680 \begin_inset Quotes erd
27681 \end_inset
27682
27683 >
27684 \end_layout
27685
27686 \begin_layout LyX-Code
27687
27688 \family sans
27689 <itemtag attr=
27690 \begin_inset Quotes erd
27691 \end_inset
27692
27693 value
27694 \begin_inset Quotes erd
27695 \end_inset
27696
27697 ><labeltag attr=
27698 \begin_inset Quotes erd
27699 \end_inset
27700
27701 value
27702 \begin_inset Quotes erd
27703 \end_inset
27704
27705 >Environment Label</labeltag>First paragraph.</itemtag>
27706 \end_layout
27707
27708 \begin_layout LyX-Code
27709
27710 \family sans
27711 <itemtag>Second paragraph.</itemtag>
27712 \end_layout
27713
27714 \begin_layout LyX-Code
27715
27716 \family sans
27717 </tag>
27718 \end_layout
27719
27720 \begin_layout Standard
27721 Note that the label is output only for the first paragraph, as it should
27722  be for a theorem, for example.
27723  
27724 \end_layout
27725
27726 \begin_layout Standard
27727 For a list, we have one of these forms:
27728 \end_layout
27729
27730 \begin_layout LyX-Code
27731
27732 \family sans
27733 <tag attr=
27734 \begin_inset Quotes erd
27735 \end_inset
27736
27737 value
27738 \begin_inset Quotes erd
27739 \end_inset
27740
27741 >
27742 \end_layout
27743
27744 \begin_layout LyX-Code
27745
27746 \family sans
27747 <itemtag attr=
27748 \begin_inset Quotes erd
27749 \end_inset
27750
27751 value
27752 \begin_inset Quotes erd
27753 \end_inset
27754
27755 ><labeltag attr=
27756 \begin_inset Quotes erd
27757 \end_inset
27758
27759 value
27760 \begin_inset Quotes erd
27761 \end_inset
27762
27763 >List Label</labeltag>First item.</itemtag>
27764 \end_layout
27765
27766 \begin_layout LyX-Code
27767
27768 \family sans
27769 <itemtag attr=
27770 \begin_inset Quotes erd
27771 \end_inset
27772
27773 value
27774 \begin_inset Quotes erd
27775 \end_inset
27776
27777 ><labeltag attr=
27778 \begin_inset Quotes erd
27779 \end_inset
27780
27781 value
27782 \begin_inset Quotes erd
27783 \end_inset
27784
27785 >List Label</labeltag>Second item.</itemtag>
27786 \end_layout
27787
27788 \begin_layout LyX-Code
27789
27790 \family sans
27791 </tag>
27792 \end_layout
27793
27794 \begin_layout LyX-Code
27795
27796 \end_layout
27797
27798 \begin_layout LyX-Code
27799
27800 \family sans
27801 <tag attr=
27802 \begin_inset Quotes erd
27803 \end_inset
27804
27805 value
27806 \begin_inset Quotes erd
27807 \end_inset
27808
27809 >
27810 \end_layout
27811
27812 \begin_layout LyX-Code
27813
27814 \family sans
27815 <labeltag attr=
27816 \begin_inset Quotes erd
27817 \end_inset
27818
27819 value
27820 \begin_inset Quotes erd
27821 \end_inset
27822
27823 >List Label</labeltag><itemtag attr=
27824 \begin_inset Quotes erd
27825 \end_inset
27826
27827 value
27828 \begin_inset Quotes erd
27829 \end_inset
27830
27831 >First item.</itemtag>
27832 \end_layout
27833
27834 \begin_layout LyX-Code
27835
27836 \family sans
27837 <labeltag attr=
27838 \begin_inset Quotes erd
27839 \end_inset
27840
27841 value
27842 \begin_inset Quotes erd
27843 \end_inset
27844
27845 >List Label</labeltag><itemtag attr=
27846 \begin_inset Quotes erd
27847 \end_inset
27848
27849 value
27850 \begin_inset Quotes erd
27851 \end_inset
27852
27853 >Second item.</itemtag>
27854 \end_layout
27855
27856 \begin_layout LyX-Code
27857
27858 \family sans
27859 </tag>
27860 \end_layout
27861
27862 \begin_layout Standard
27863 Note the different orders of 
27864 \begin_inset Flex Code
27865 status collapsed
27866
27867 \begin_layout Plain Layout
27868 labeltag
27869 \end_layout
27870
27871 \end_inset
27872
27873  and 
27874 \begin_inset Flex Code
27875 status collapsed
27876
27877 \begin_layout Plain Layout
27878 itemtag
27879 \end_layout
27880
27881 \end_inset
27882
27883 .
27884  Which order we get depends upon the setting of 
27885 \begin_inset Flex Code
27886 status collapsed
27887
27888 \begin_layout Plain Layout
27889 HTMLLabelFirst
27890 \end_layout
27891
27892 \end_inset
27893
27894 : If 
27895 \begin_inset Flex Code
27896 status collapsed
27897
27898 \begin_layout Plain Layout
27899 HTMLLabelFirst
27900 \end_layout
27901
27902 \end_inset
27903
27904  is false (the default), you get the first of these, with the label within
27905  the item; if true, you get the second, with the label outside the item.
27906 \end_layout
27907
27908 \begin_layout Standard
27909 The specific tags and attributes output for each paragraph type can be controlle
27910 d by means of the layout tags we are about to describe.
27911  As mentioned earlier, however, \SpecialChar LyX
27912  uses sensible defaults for many of these,
27913  so you often may not need to do very much to get good XHTML output.
27914  Think of the available tags as there so you can tweak things to your liking.
27915 \end_layout
27916
27917 \begin_layout Description
27918 \begin_inset Flex Code
27919 status collapsed
27920
27921 \begin_layout Plain Layout
27922 HTMLAttr
27923 \end_layout
27924
27925 \end_inset
27926
27927  [
27928 \begin_inset Flex Code
27929 status collapsed
27930
27931 \begin_layout Plain Layout
27932 string
27933 \end_layout
27934
27935 \end_inset
27936
27937 ] Specifies attribute information to be output with the main tag.
27938  For example, 
27939 \begin_inset Quotes eld
27940 \end_inset
27941
27942
27943 \begin_inset Flex Code
27944 status collapsed
27945
27946 \begin_layout Plain Layout
27947 class=`mydiv'
27948 \end_layout
27949
27950 \end_inset
27951
27952
27953 \begin_inset Quotes erd
27954 \end_inset
27955
27956 .
27957  By default, \SpecialChar LyX
27958  will output 
27959 \begin_inset Quotes eld
27960 \end_inset
27961
27962
27963 \begin_inset Flex Code
27964 status collapsed
27965
27966 \begin_layout Plain Layout
27967 class=`layoutname'
27968 \end_layout
27969
27970 \end_inset
27971
27972
27973 \begin_inset Quotes erd
27974 \end_inset
27975
27976 , where 
27977 \begin_inset Flex Code
27978 status collapsed
27979
27980 \begin_layout Plain Layout
27981 layoutname
27982 \end_layout
27983
27984 \end_inset
27985
27986  is the \SpecialChar LyX
27987  name of the layout, made lowercase, for example: chapter.
27988  This should 
27989 \emph on
27990 not
27991 \emph default
27992  contain any style information.
27993  Use 
27994 \begin_inset Flex Code
27995 status collapsed
27996
27997 \begin_layout Plain Layout
27998 HTMLStyle
27999 \end_layout
28000
28001 \end_inset
28002
28003  for that purpose.
28004 \end_layout
28005
28006 \begin_layout Description
28007 \begin_inset Flex Code
28008 status collapsed
28009
28010 \begin_layout Plain Layout
28011 HTMLForceCSS
28012 \end_layout
28013
28014 \end_inset
28015
28016  [
28017 \begin_inset Flex Code
28018 status collapsed
28019
28020 \begin_layout Plain Layout
28021
28022 \emph on
28023 0
28024 \emph default
28025 ,1
28026 \end_layout
28027
28028 \end_inset
28029
28030 ] Whether to output the default CSS information \SpecialChar LyX
28031  generates for this layout,
28032  even if additional information is explicitly provided via 
28033 \begin_inset Flex Code
28034 status collapsed
28035
28036 \begin_layout Plain Layout
28037 HTMLStyle
28038 \end_layout
28039
28040 \end_inset
28041
28042 .
28043  Setting this to 
28044 \begin_inset Flex Code
28045 status collapsed
28046
28047 \begin_layout Plain Layout
28048 1
28049 \end_layout
28050
28051 \end_inset
28052
28053  allows you to alter or augment the generated CSS, rather than to override
28054  it completely.
28055  Default is 
28056 \begin_inset Flex Code
28057 status collapsed
28058
28059 \begin_layout Plain Layout
28060 0
28061 \end_layout
28062
28063 \end_inset
28064
28065 .
28066 \end_layout
28067
28068 \begin_layout Description
28069 \begin_inset Flex Code
28070 status collapsed
28071
28072 \begin_layout Plain Layout
28073 HTMLItem
28074 \end_layout
28075
28076 \end_inset
28077
28078  [
28079 \begin_inset Flex Code
28080 status collapsed
28081
28082 \begin_layout Plain Layout
28083 string
28084 \end_layout
28085
28086 \end_inset
28087
28088 ] The tag to be used for individual paragraphs of environments, replacing
28089  
28090 \begin_inset Flex Code
28091 status collapsed
28092
28093 \begin_layout Plain Layout
28094 itemtag
28095 \end_layout
28096
28097 \end_inset
28098
28099  in the examples above.
28100  Defaults to 
28101 \begin_inset Flex Code
28102 status collapsed
28103
28104 \begin_layout Plain Layout
28105 div
28106 \end_layout
28107
28108 \end_inset
28109
28110 .
28111 \end_layout
28112
28113 \begin_layout Description
28114 \begin_inset Flex Code
28115 status collapsed
28116
28117 \begin_layout Plain Layout
28118 HTMLItemAttr
28119 \end_layout
28120
28121 \end_inset
28122
28123  [
28124 \begin_inset Flex Code
28125 status collapsed
28126
28127 \begin_layout Plain Layout
28128 string
28129 \end_layout
28130
28131 \end_inset
28132
28133 ] Attributes for the item tag.
28134  Defaults to
28135 \begin_inset Newline newline
28136 \end_inset
28137
28138
28139 \begin_inset Quotes eld
28140 \end_inset
28141
28142
28143 \begin_inset Flex Code
28144 status collapsed
28145
28146 \begin_layout Plain Layout
28147 class=`layoutname_item'
28148 \end_layout
28149
28150 \end_inset
28151
28152
28153 \begin_inset Quotes erd
28154 \end_inset
28155
28156 .
28157  This should 
28158 \emph on
28159 not
28160 \emph default
28161  contain any style information.
28162  Use 
28163 \begin_inset Flex Code
28164 status collapsed
28165
28166 \begin_layout Plain Layout
28167 HTMLStyle
28168 \end_layout
28169
28170 \end_inset
28171
28172  for that purpose.
28173 \end_layout
28174
28175 \begin_layout Description
28176 \begin_inset Flex Code
28177 status collapsed
28178
28179 \begin_layout Plain Layout
28180 HTMLLabel
28181 \end_layout
28182
28183 \end_inset
28184
28185  [
28186 \begin_inset Flex Code
28187 status collapsed
28188
28189 \begin_layout Plain Layout
28190 string
28191 \end_layout
28192
28193 \end_inset
28194
28195 ] The tag to be used for paragraph and item labels, replacing 
28196 \begin_inset Flex Code
28197 status collapsed
28198
28199 \begin_layout Plain Layout
28200 labeltag
28201 \end_layout
28202
28203 \end_inset
28204
28205  in the examples above.
28206  Defaults to 
28207 \begin_inset Flex Code
28208 status collapsed
28209
28210 \begin_layout Plain Layout
28211 span
28212 \end_layout
28213
28214 \end_inset
28215
28216 , unless 
28217 \begin_inset Flex Code
28218 status collapsed
28219
28220 \begin_layout Plain Layout
28221 LabelType
28222 \end_layout
28223
28224 \end_inset
28225
28226  is either 
28227 \begin_inset Flex Code
28228 status collapsed
28229
28230 \begin_layout Plain Layout
28231 Top_Environment
28232 \end_layout
28233
28234 \end_inset
28235
28236  or 
28237 \begin_inset Flex Code
28238 status collapsed
28239
28240 \begin_layout Plain Layout
28241 Centered_Top_Environment
28242 \end_layout
28243
28244 \end_inset
28245
28246 , in which case it defaults to 
28247 \begin_inset Flex Code
28248 status collapsed
28249
28250 \begin_layout Plain Layout
28251 div
28252 \end_layout
28253
28254 \end_inset
28255
28256 .
28257 \end_layout
28258
28259 \begin_layout Description
28260 \begin_inset Flex Code
28261 status collapsed
28262
28263 \begin_layout Plain Layout
28264 HTMLLabelAttr
28265 \end_layout
28266
28267 \end_inset
28268
28269  [
28270 \begin_inset Flex Code
28271 status collapsed
28272
28273 \begin_layout Plain Layout
28274 string
28275 \end_layout
28276
28277 \end_inset
28278
28279 ] Attributes for the label tag.
28280  Defaults to
28281 \begin_inset Newline newline
28282 \end_inset
28283
28284
28285 \begin_inset Quotes eld
28286 \end_inset
28287
28288
28289 \begin_inset Flex Code
28290 status collapsed
28291
28292 \begin_layout Plain Layout
28293 class=`layoutname_label'
28294 \end_layout
28295
28296 \end_inset
28297
28298
28299 \begin_inset Quotes erd
28300 \end_inset
28301
28302 .
28303  This should 
28304 \emph on
28305 not
28306 \emph default
28307  contain any style information.
28308  Use 
28309 \begin_inset Flex Code
28310 status collapsed
28311
28312 \begin_layout Plain Layout
28313 HTMLStyle
28314 \end_layout
28315
28316 \end_inset
28317
28318  for that purpose.
28319 \end_layout
28320
28321 \begin_layout Description
28322 \begin_inset Flex Code
28323 status collapsed
28324
28325 \begin_layout Plain Layout
28326 HTMLLabelFirst
28327 \end_layout
28328
28329 \end_inset
28330
28331  [
28332 \begin_inset Flex Code
28333 status collapsed
28334
28335 \begin_layout Plain Layout
28336
28337 \emph on
28338 0
28339 \emph default
28340 ,1
28341 \end_layout
28342
28343 \end_inset
28344
28345 ] Meaningful only for list-like environments, this tag controls whether
28346  the label tag is output before or inside the item tag.
28347  This is used, for example, in the description environment, where we want
28348  `
28349 \begin_inset Flex Code
28350 status collapsed
28351
28352 \begin_layout Plain Layout
28353 <dt>\SpecialChar ldots
28354 </dt><dd>\SpecialChar ldots
28355 </dd>
28356 \end_layout
28357
28358 \end_inset
28359
28360 .
28361  Default is 
28362 \begin_inset Flex Code
28363 status collapsed
28364
28365 \begin_layout Plain Layout
28366 0
28367 \end_layout
28368
28369 \end_inset
28370
28371 : The label tag is output inside the item tag.
28372 \end_layout
28373
28374 \begin_layout Description
28375 \begin_inset Flex Code
28376 status collapsed
28377
28378 \begin_layout Plain Layout
28379 HTMLPreamble
28380 \end_layout
28381
28382 \end_inset
28383
28384  Information to be output in the 
28385 \begin_inset Flex Code
28386 status collapsed
28387
28388 \begin_layout Plain Layout
28389 <head>
28390 \end_layout
28391
28392 \end_inset
28393
28394  section when this style is used.
28395  This might, for example, be used to include a 
28396 \begin_inset Flex Code
28397 status collapsed
28398
28399 \begin_layout Plain Layout
28400 <script>
28401 \end_layout
28402
28403 \end_inset
28404
28405  block defining an 
28406 \begin_inset Flex Code
28407 status collapsed
28408
28409 \begin_layout Plain Layout
28410 onclick
28411 \end_layout
28412
28413 \end_inset
28414
28415  handler.
28416 \end_layout
28417
28418 \begin_layout Description
28419 \begin_inset Flex Code
28420 status collapsed
28421
28422 \begin_layout Plain Layout
28423 HTMLStyle
28424 \end_layout
28425
28426 \end_inset
28427
28428  CSS style information to be included when this style is used.
28429  Note that this will automatically be wrapped in a layout-generated 
28430 \begin_inset Flex Code
28431 status collapsed
28432
28433 \begin_layout Plain Layout
28434 <style>
28435 \end_layout
28436
28437 \end_inset
28438
28439  block, so only the CSS itself need be included.
28440  Must end with 
28441 \begin_inset Flex Code
28442 status collapsed
28443
28444 \begin_layout Plain Layout
28445 EndHTMLStyle
28446 \end_layout
28447
28448 \end_inset
28449
28450 .
28451 \end_layout
28452
28453 \begin_layout Description
28454 \begin_inset Flex Code
28455 status collapsed
28456
28457 \begin_layout Plain Layout
28458 HTMLTag
28459 \end_layout
28460
28461 \end_inset
28462
28463  [
28464 \begin_inset Flex Code
28465 status collapsed
28466
28467 \begin_layout Plain Layout
28468 string
28469 \end_layout
28470
28471 \end_inset
28472
28473 ] The tag to be used for the main label, replacing 
28474 \begin_inset Flex Code
28475 status collapsed
28476
28477 \begin_layout Plain Layout
28478 tag
28479 \end_layout
28480
28481 \end_inset
28482
28483  in the examples above.
28484  Defaults to 
28485 \begin_inset Flex Code
28486 status collapsed
28487
28488 \begin_layout Plain Layout
28489 div
28490 \end_layout
28491
28492 \end_inset
28493
28494 .
28495 \end_layout
28496
28497 \begin_layout Description
28498 \begin_inset Flex Code
28499 status collapsed
28500
28501 \begin_layout Plain Layout
28502 HTMLTitle
28503 \end_layout
28504
28505 \end_inset
28506
28507  [
28508 \begin_inset Flex Code
28509 status collapsed
28510
28511 \begin_layout Plain Layout
28512
28513 \emph on
28514 0
28515 \emph default
28516 ,1
28517 \end_layout
28518
28519 \end_inset
28520
28521 ] Marks this style as the one to be used to generate the 
28522 \begin_inset Flex Code
28523 status collapsed
28524
28525 \begin_layout Plain Layout
28526 <title>
28527 \end_layout
28528
28529 \end_inset
28530
28531  tag for the XHTML file.
28532  By default, it is false.
28533  The 
28534 \begin_inset Flex Code
28535 status collapsed
28536
28537 \begin_layout Plain Layout
28538 stdtitle.inc
28539 \end_layout
28540
28541 \end_inset
28542
28543  file sets it to true for the 
28544 \begin_inset Flex Code
28545 status collapsed
28546
28547 \begin_layout Plain Layout
28548 title
28549 \end_layout
28550
28551 \end_inset
28552
28553  environment.
28554  
28555 \end_layout
28556
28557 \begin_layout Subsection
28558 InsetLayout XHTML
28559 \end_layout
28560
28561 \begin_layout Standard
28562 The XHTML output of insets can also be controlled by information in layout
28563  files.
28564 \begin_inset Foot
28565 status collapsed
28566
28567 \begin_layout Plain Layout
28568 At present, this is true only for 
28569 \begin_inset Quotes eld
28570 \end_inset
28571
28572 text
28573 \begin_inset Quotes erd
28574 \end_inset
28575
28576  insets (insets you can type into) and is not true for 
28577 \begin_inset Quotes eld
28578 \end_inset
28579
28580 command
28581 \begin_inset Quotes erd
28582 \end_inset
28583
28584  insets (insets that are associated with dialog boxes).
28585 \end_layout
28586
28587 \end_inset
28588
28589  Here, too, \SpecialChar LyX
28590  tries to provide sensible defaults, and it constructs default
28591  CSS style rules.
28592  But everything can be customized.
28593 \end_layout
28594
28595 \begin_layout Standard
28596 The XHTML \SpecialChar LyX
28597  outputs for an inset has the following form:
28598 \end_layout
28599
28600 \begin_layout LyX-Code
28601 <tag attr=
28602 \begin_inset Quotes erd
28603 \end_inset
28604
28605 value
28606 \begin_inset Quotes erd
28607 \end_inset
28608
28609 >
28610 \end_layout
28611
28612 \begin_layout LyX-Code
28613 <labeltag>Label</labeltag>
28614 \end_layout
28615
28616 \begin_layout LyX-Code
28617 <innertag attr=
28618 \begin_inset Quotes erd
28619 \end_inset
28620
28621 value
28622 \begin_inset Quotes erd
28623 \end_inset
28624
28625 >Contents of the inset.</innertag>
28626 \end_layout
28627
28628 \begin_layout LyX-Code
28629 </tag>
28630 \end_layout
28631
28632 \begin_layout Standard
28633 If the inset permits multiple paragraphs—that is, if 
28634 \begin_inset Flex Code
28635 status collapsed
28636
28637 \begin_layout Plain Layout
28638 MultiPar
28639 \end_layout
28640
28641 \end_inset
28642
28643  is true—then the contents of the inset will itself be output as paragraphs
28644  formatted according to the styles used for those paragraphs (standard,
28645  quote, and the like).
28646  The label tag is of course omitted if the paragraph does not have a label
28647  and, at present, is always 
28648 \begin_inset Flex Code
28649 status collapsed
28650
28651 \begin_layout Plain Layout
28652 span
28653 \end_layout
28654
28655 \end_inset
28656
28657 .
28658  The inner tag is optional and, by default, does not appear.
28659 \end_layout
28660
28661 \begin_layout Standard
28662 The specific tags and attributes output for each inset can be controlled
28663  by means of the following layout tags.
28664 \end_layout
28665
28666 \begin_layout Description
28667 \begin_inset Flex Code
28668 status collapsed
28669
28670 \begin_layout Plain Layout
28671 HTMLAttr
28672 \end_layout
28673
28674 \end_inset
28675
28676  [
28677 \begin_inset Flex Code
28678 status collapsed
28679
28680 \begin_layout Plain Layout
28681 string
28682 \end_layout
28683
28684 \end_inset
28685
28686 ] Specifies attribute information to be output with the main tag.
28687  For example, 
28688 \begin_inset Quotes eld
28689 \end_inset
28690
28691
28692 \begin_inset Flex Code
28693 status collapsed
28694
28695 \begin_layout Plain Layout
28696 class=`myinset' onclick=`\SpecialChar ldots
28697 '
28698 \end_layout
28699
28700 \end_inset
28701
28702
28703 \begin_inset Quotes erd
28704 \end_inset
28705
28706 .
28707  By default, \SpecialChar LyX
28708  will output 
28709 \begin_inset Quotes eld
28710 \end_inset
28711
28712
28713 \begin_inset Flex Code
28714 status collapsed
28715
28716 \begin_layout Plain Layout
28717 class=`insetname'
28718 \end_layout
28719
28720 \end_inset
28721
28722
28723 \begin_inset Quotes erd
28724 \end_inset
28725
28726 , where 
28727 \begin_inset Flex Code
28728 status collapsed
28729
28730 \begin_layout Plain Layout
28731 insetname
28732 \end_layout
28733
28734 \end_inset
28735
28736  is the \SpecialChar LyX
28737  name of the inset, made lowercase and with non-alphanumeric characters
28738  converted to underscores, for example: footnote.
28739 \end_layout
28740
28741 \begin_layout Description
28742 \begin_inset Flex Code
28743 status collapsed
28744
28745 \begin_layout Plain Layout
28746 HTMLForceCSS
28747 \end_layout
28748
28749 \end_inset
28750
28751  [
28752 \begin_inset Flex Code
28753 status collapsed
28754
28755 \begin_layout Plain Layout
28756
28757 \emph on
28758 0
28759 \emph default
28760 ,1
28761 \end_layout
28762
28763 \end_inset
28764
28765 ] Whether to output the default CSS information \SpecialChar LyX
28766  generates for this layout,
28767  even if additional information is explicitly provided via 
28768 \begin_inset Flex Code
28769 status collapsed
28770
28771 \begin_layout Plain Layout
28772 HTMLStyle
28773 \end_layout
28774
28775 \end_inset
28776
28777 .
28778  Setting this to 
28779 \begin_inset Flex Code
28780 status collapsed
28781
28782 \begin_layout Plain Layout
28783 1
28784 \end_layout
28785
28786 \end_inset
28787
28788  allows you to alter or augment the generated CSS, rather than to override
28789  it completely.
28790  Default is 0.
28791 \end_layout
28792
28793 \begin_layout Description
28794 \begin_inset Flex Code
28795 status collapsed
28796
28797 \begin_layout Plain Layout
28798 HTMLInnerAttr
28799 \end_layout
28800
28801 \end_inset
28802
28803  [
28804 \begin_inset Flex Code
28805 status collapsed
28806
28807 \begin_layout Plain Layout
28808 string
28809 \end_layout
28810
28811 \end_inset
28812
28813 ] Attributes for the inner tag.
28814  Defaults to
28815 \begin_inset Newline newline
28816 \end_inset
28817
28818
28819 \begin_inset Quotes eld
28820 \end_inset
28821
28822
28823 \begin_inset Flex Code
28824 status collapsed
28825
28826 \begin_layout Plain Layout
28827 class=`insetname_inner'
28828 \end_layout
28829
28830 \end_inset
28831
28832
28833 \begin_inset Quotes erd
28834 \end_inset
28835
28836 .
28837 \end_layout
28838
28839 \begin_layout Description
28840 \begin_inset Flex Code
28841 status collapsed
28842
28843 \begin_layout Plain Layout
28844 HTMLInnerTag
28845 \end_layout
28846
28847 \end_inset
28848
28849  [
28850 \begin_inset Flex Code
28851 status collapsed
28852
28853 \begin_layout Plain Layout
28854 string
28855 \end_layout
28856
28857 \end_inset
28858
28859 ] The inner tag, replacing 
28860 \begin_inset Flex Code
28861 status collapsed
28862
28863 \begin_layout Plain Layout
28864 innertag
28865 \end_layout
28866
28867 \end_inset
28868
28869  in the examples above.
28870  By default, there is none.
28871 \end_layout
28872
28873 \begin_layout Description
28874 \begin_inset Flex Code
28875 status collapsed
28876
28877 \begin_layout Plain Layout
28878 HTMLIsBlock
28879 \end_layout
28880
28881 \end_inset
28882
28883  [
28884 \begin_inset Flex Code
28885 status collapsed
28886
28887 \begin_layout Plain Layout
28888 0,
28889 \emph on
28890 1
28891 \end_layout
28892
28893 \end_inset
28894
28895 ] Whether this inset represents a standalone block of text (such as a footnote)
28896  or instead represents material that is included in the surrounding text
28897  (such as a branch).
28898  Defaults to 1.
28899 \end_layout
28900
28901 \begin_layout Description
28902 \begin_inset Flex Code
28903 status collapsed
28904
28905 \begin_layout Plain Layout
28906 HTMLLabel
28907 \end_layout
28908
28909 \end_inset
28910
28911  [
28912 \begin_inset Flex Code
28913 status collapsed
28914
28915 \begin_layout Plain Layout
28916 string
28917 \end_layout
28918
28919 \end_inset
28920
28921 ] A label for this inset, possibly including a reference to a counter.
28922  For example, for footnote, it might be: 
28923 \begin_inset Flex Code
28924 status collapsed
28925
28926 \begin_layout Plain Layout
28927
28928 \backslash
28929 arabic{footnote}
28930 \end_layout
28931
28932 \end_inset
28933
28934 .
28935  This is optional, and there is no default.
28936 \end_layout
28937
28938 \begin_layout Description
28939 \begin_inset Flex Code
28940 status collapsed
28941
28942 \begin_layout Plain Layout
28943 HTMLPreamble
28944 \end_layout
28945
28946 \end_inset
28947
28948  Information to be output in the 
28949 \begin_inset Flex Code
28950 status collapsed
28951
28952 \begin_layout Plain Layout
28953 <head>
28954 \end_layout
28955
28956 \end_inset
28957
28958  section when this style is used.
28959  This might, for example, be used to include a 
28960 \begin_inset Flex Code
28961 status collapsed
28962
28963 \begin_layout Plain Layout
28964 <script>
28965 \end_layout
28966
28967 \end_inset
28968
28969  block defining an 
28970 \begin_inset Flex Code
28971 status collapsed
28972
28973 \begin_layout Plain Layout
28974 onclick
28975 \end_layout
28976
28977 \end_inset
28978
28979  handler.
28980 \end_layout
28981
28982 \begin_layout Description
28983 \begin_inset Flex Code
28984 status collapsed
28985
28986 \begin_layout Plain Layout
28987 HTMLStyle
28988 \end_layout
28989
28990 \end_inset
28991
28992  CSS style information to be included when this style is used.
28993  Note that this will automatically be wrapped in a layout-generated 
28994 \begin_inset Flex Code
28995 status collapsed
28996
28997 \begin_layout Plain Layout
28998 <style>
28999 \end_layout
29000
29001 \end_inset
29002
29003  block, so only the CSS itself need be included.
29004 \end_layout
29005
29006 \begin_layout Description
29007 \begin_inset Flex Code
29008 status collapsed
29009
29010 \begin_layout Plain Layout
29011 HTMLTag
29012 \end_layout
29013
29014 \end_inset
29015
29016  [
29017 \begin_inset Flex Code
29018 status collapsed
29019
29020 \begin_layout Plain Layout
29021 string
29022 \end_layout
29023
29024 \end_inset
29025
29026 ] The tag to be used for the main label, replacing 
29027 \begin_inset Flex Code
29028 status collapsed
29029
29030 \begin_layout Plain Layout
29031 tag
29032 \end_layout
29033
29034 \end_inset
29035
29036  in the examples above.
29037  The default depends upon the setting of 
29038 \begin_inset Flex Code
29039 status collapsed
29040
29041 \begin_layout Plain Layout
29042 MultiPar
29043 \end_layout
29044
29045 \end_inset
29046
29047 : If 
29048 \begin_inset Flex Code
29049 status collapsed
29050
29051 \begin_layout Plain Layout
29052 MultiPar
29053 \end_layout
29054
29055 \end_inset
29056
29057  is true, the default is 
29058 \begin_inset Flex Code
29059 status collapsed
29060
29061 \begin_layout Plain Layout
29062 div
29063 \end_layout
29064
29065 \end_inset
29066
29067 ; if it is false, the default is 
29068 \begin_inset Flex Code
29069 status collapsed
29070
29071 \begin_layout Plain Layout
29072 span
29073 \end_layout
29074
29075 \end_inset
29076
29077 .
29078 \end_layout
29079
29080 \begin_layout Subsection
29081 Float XHTML
29082 \end_layout
29083
29084 \begin_layout Standard
29085 The XHTML output for floats too can be controlled by layout information.
29086  The output has the following form:
29087 \end_layout
29088
29089 \begin_layout LyX-Code
29090 <tag attr=
29091 \begin_inset Quotes erd
29092 \end_inset
29093
29094 value
29095 \begin_inset Quotes erd
29096 \end_inset
29097
29098 >
29099 \end_layout
29100
29101 \begin_layout LyX-Code
29102 Contents of the float.
29103 \end_layout
29104
29105 \begin_layout LyX-Code
29106 </tag>
29107 \end_layout
29108
29109 \begin_layout Standard
29110 The caption, if there is one, is a separate inset and will be output as
29111  such.
29112  Its appearance can be controlled via the InsetLayout for caption insets.
29113  
29114 \end_layout
29115
29116 \begin_layout Description
29117 \begin_inset Flex Code
29118 status collapsed
29119
29120 \begin_layout Plain Layout
29121 HTMLAttr
29122 \end_layout
29123
29124 \end_inset
29125
29126  [
29127 \begin_inset Flex Code
29128 status collapsed
29129
29130 \begin_layout Plain Layout
29131 string
29132 \end_layout
29133
29134 \end_inset
29135
29136 ] Specifies attribute information to be output with the main tag.
29137  For example, 
29138 \begin_inset Quotes eld
29139 \end_inset
29140
29141
29142 \begin_inset Flex Code
29143 status collapsed
29144
29145 \begin_layout Plain Layout
29146 class=`myfloat' onclick=`\SpecialChar ldots
29147 '
29148 \end_layout
29149
29150 \end_inset
29151
29152
29153 \begin_inset Quotes erd
29154 \end_inset
29155
29156 .
29157  By default, \SpecialChar LyX
29158  will output 
29159 \begin_inset Quotes eld
29160 \end_inset
29161
29162
29163 \begin_inset Flex Code
29164 status collapsed
29165
29166 \begin_layout Plain Layout
29167 class=`float float-floattype'
29168 \end_layout
29169
29170 \end_inset
29171
29172
29173 \begin_inset Quotes erd
29174 \end_inset
29175
29176 , where 
29177 \begin_inset Flex Code
29178 status collapsed
29179
29180 \begin_layout Plain Layout
29181 floattype
29182 \end_layout
29183
29184 \end_inset
29185
29186  is \SpecialChar LyX
29187 's name for this type of float, as determined by the float declaration
29188  (see 
29189 \begin_inset CommandInset ref
29190 LatexCommand ref
29191 reference "subsec:Floats"
29192
29193 \end_inset
29194
29195 ), though made lowercase and with non-alphanumeric characters converted
29196  to underscores, for example: float-table.
29197 \end_layout
29198
29199 \begin_layout Description
29200 \begin_inset Flex Code
29201 status collapsed
29202
29203 \begin_layout Plain Layout
29204 HTMLStyle
29205 \end_layout
29206
29207 \end_inset
29208
29209  CSS style information to be included when this float is used.
29210  Note that this will automatically be wrapped in a layout-generated 
29211 \begin_inset Flex Code
29212 status collapsed
29213
29214 \begin_layout Plain Layout
29215 <style>
29216 \end_layout
29217
29218 \end_inset
29219
29220  block, so only the CSS itself need be included.
29221 \end_layout
29222
29223 \begin_layout Description
29224 \begin_inset Flex Code
29225 status collapsed
29226
29227 \begin_layout Plain Layout
29228 HTMLTag
29229 \end_layout
29230
29231 \end_inset
29232
29233  [
29234 \begin_inset Flex Code
29235 status collapsed
29236
29237 \begin_layout Plain Layout
29238 string
29239 \end_layout
29240
29241 \end_inset
29242
29243 ] The tag to be used for this float, replacing 
29244 \begin_inset Quotes eld
29245 \end_inset
29246
29247
29248 \begin_inset Flex Code
29249 status collapsed
29250
29251 \begin_layout Plain Layout
29252 tag
29253 \end_layout
29254
29255 \end_inset
29256
29257
29258 \begin_inset Quotes erd
29259 \end_inset
29260
29261  in the example above.
29262  The default is 
29263 \begin_inset Flex Code
29264 status collapsed
29265
29266 \begin_layout Plain Layout
29267 div
29268 \end_layout
29269
29270 \end_inset
29271
29272  and will rarely need changing.
29273 \end_layout
29274
29275 \begin_layout Subsection
29276 Bibliography formatting
29277 \end_layout
29278
29279 \begin_layout Standard
29280 The bibliography can be formatted using 
29281 \begin_inset Flex Code
29282 status collapsed
29283
29284 \begin_layout Plain Layout
29285 CiteFormat
29286 \end_layout
29287
29288 \end_inset
29289
29290  blocks.
29291  See 
29292 \begin_inset CommandInset ref
29293 LatexCommand ref
29294 reference "subsec:Citation-format-description"
29295
29296 \end_inset
29297
29298  for the details.
29299 \end_layout
29300
29301 \begin_layout Subsection
29302 \SpecialChar LyX
29303 -generated CSS
29304 \end_layout
29305
29306 \begin_layout Standard
29307 We have several times mentioned that \SpecialChar LyX
29308  will generate default CSS style rules
29309  for both insets and paragraph styles, based upon the other layout information
29310  that is provided.
29311  In this section, we shall say a word about which layout information \SpecialChar LyX
29312  uses
29313  and how.
29314 \end_layout
29315
29316 \begin_layout Standard
29317 At present, \SpecialChar LyX
29318  auto-generates CSS only for font information, making use of
29319  the 
29320 \begin_inset Flex Code
29321 status collapsed
29322
29323 \begin_layout Plain Layout
29324 Family
29325 \end_layout
29326
29327 \end_inset
29328
29329
29330 \begin_inset Flex Code
29331 status collapsed
29332
29333 \begin_layout Plain Layout
29334 Series
29335 \end_layout
29336
29337 \end_inset
29338
29339
29340 \begin_inset Flex Code
29341 status collapsed
29342
29343 \begin_layout Plain Layout
29344 Shape
29345 \end_layout
29346
29347 \end_inset
29348
29349 , and 
29350 \begin_inset Flex Code
29351 status collapsed
29352
29353 \begin_layout Plain Layout
29354 Size
29355 \end_layout
29356
29357 \end_inset
29358
29359  specified in the 
29360 \begin_inset Flex Code
29361 status collapsed
29362
29363 \begin_layout Plain Layout
29364 Font
29365 \end_layout
29366
29367 \end_inset
29368
29369  declaration (see 
29370 \begin_inset CommandInset ref
29371 LatexCommand ref
29372 reference "subsec:Font-description"
29373
29374 \end_inset
29375
29376 ).
29377  The translation is mostly straightforward and obvious.
29378  For example, 
29379 \begin_inset Quotes eld
29380 \end_inset
29381
29382
29383 \begin_inset Flex Code
29384 status collapsed
29385
29386 \begin_layout Plain Layout
29387 Family Sans
29388 \end_layout
29389
29390 \end_inset
29391
29392
29393 \begin_inset Quotes erd
29394 \end_inset
29395
29396  becomes 
29397 \begin_inset Quotes eld
29398 \end_inset
29399
29400
29401 \begin_inset Flex Code
29402 status collapsed
29403
29404 \begin_layout Plain Layout
29405 font-family: sans-serif;
29406 \end_layout
29407
29408 \end_inset
29409
29410
29411 \begin_inset Quotes erd
29412 \end_inset
29413
29414 .
29415  The correspondence of \SpecialChar LyX
29416  sizes and CSS sizes is a little less obvious but
29417  nonetheless intuitive.
29418  See the 
29419 \begin_inset Flex Code
29420 status collapsed
29421
29422 \begin_layout Plain Layout
29423 getSizeCSS()
29424 \end_layout
29425
29426 \end_inset
29427
29428  function in 
29429 \begin_inset Flex URL
29430 status collapsed
29431
29432 \begin_layout Plain Layout
29433
29434 src/FontInfo.cpp
29435 \end_layout
29436
29437 \end_inset
29438
29439  for the details.
29440 \change_inserted -970929547 1496610908
29441
29442 \end_layout
29443
29444 \begin_layout Section
29445
29446 \change_inserted -970929547 1496610966
29447 \begin_inset CommandInset label
29448 LatexCommand label
29449 name "sec:Tags-for-DocBook"
29450
29451 \end_inset
29452
29453 Tags for DocBook output
29454 \end_layout
29455
29456 \begin_layout Standard
29457
29458 \change_inserted -970929547 1496611615
29459 As with \SpecialChar LaTeX
29460  or XHTML, the format of \SpecialChar LyX
29461 's DocBook output is also controlled by
29462  layout information.
29463  In general, \SpecialChar LyX
29464  provides sensible defaults; however, much of the styling is
29465  lost during the conversion, as DocBook is strictly semantic and does not
29466  allow formatting.
29467  When possible, information from \SpecialChar LyX
29468  will be rendered in 
29469 \family typewriter
29470 role
29471 \family default
29472  attributes.
29473  
29474 \end_layout
29475
29476 \begin_layout Standard
29477
29478 \change_inserted -970929547 1496612080
29479 In many cases, then, you may not have to do anything at all to get acceptable
29480  DocBook output for your own environments, custom insets, and so forth.
29481  But in some cases you will, and so \SpecialChar LyX
29482  provides a number of layout tags that
29483  can be used to customize the DocBook that is generated.
29484 \end_layout
29485
29486 \begin_layout Standard
29487
29488 \change_inserted -970929547 1515109912
29489 Labels are rarely output, as they are redundant in DocBook: this information
29490  is carried by the tags themselves, and whether labels appear in the final
29491  documents (after processing of DocBook files) is controlled by the stylesheets.
29492  However, sometimes, labels are not redundant content, such as definition
29493  lists: in this case, the term being defined will be the label.
29494  
29495 \end_layout
29496
29497 \begin_layout Subsection
29498
29499 \change_inserted 1075283030 1597699417
29500 \begin_inset CommandInset label
29501 LatexCommand label
29502 name "subsec:Paragraph-Style-DocBook"
29503
29504 \end_inset
29505
29506
29507 \change_deleted 1075283030 1597699417
29508
29509 \begin_inset CommandInset label
29510 LatexCommand label
29511 name "subsec:Paragraph-Style-XHTML-1"
29512
29513 \end_inset
29514
29515
29516 \change_inserted -970929547 1496610966
29517 Paragraph styles
29518 \end_layout
29519
29520 \begin_layout Standard
29521
29522 \change_inserted -970929547 1496612059
29523 The sort of DocBook \SpecialChar LyX
29524  outputs for a paragraph depends upon whether we are
29525  dealing with a normal paragraph, a command, or an environment, where this
29526  is itself determined by the contents of the corresponding 
29527 \begin_inset Flex Code
29528 status collapsed
29529
29530 \begin_layout Plain Layout
29531
29532 \change_inserted -970929547 1496610966
29533 \SpecialChar LaTeX
29534 Type
29535 \change_unchanged
29536
29537 \end_layout
29538
29539 \end_inset
29540
29541  tag.
29542  
29543 \end_layout
29544
29545 \begin_layout Standard
29546
29547 \change_inserted -970929547 1496612107
29548 For a command or normal paragraph, the output DocBook has the following
29549  form:
29550 \end_layout
29551
29552 \begin_layout LyX-Code
29553
29554 \change_inserted -970929547 1515109666
29555 <tag attr>
29556 \end_layout
29557
29558 \begin_layout LyX-Code
29559
29560 \change_inserted -970929547 1496610966
29561 Contents of the paragraph.
29562 \end_layout
29563
29564 \begin_layout LyX-Code
29565
29566 \change_inserted -970929547 1496610966
29567 </tag>
29568 \end_layout
29569
29570 \begin_layout Standard
29571
29572 \change_inserted -970929547 1515109821
29573 For an environment that is not some sort of list, the generated DocBook
29574  takes this form:
29575 \end_layout
29576
29577 \begin_layout LyX-Code
29578
29579 \change_inserted -970929547 1515109671
29580 <tag attr>
29581 \end_layout
29582
29583 \begin_layout LyX-Code
29584
29585 \change_inserted -970929547 1496612114
29586 <itemtag>First paragraph.</itemtag>
29587 \end_layout
29588
29589 \begin_layout LyX-Code
29590
29591 \change_inserted -970929547 1496610966
29592 <itemtag>Second paragraph.</itemtag>
29593 \end_layout
29594
29595 \begin_layout LyX-Code
29596
29597 \change_inserted -970929547 1496610966
29598 </tag>
29599 \end_layout
29600
29601 \begin_layout Standard
29602
29603 \change_inserted -970929547 1515109825
29604 For a list, the resulting DocBook takes this form:
29605 \end_layout
29606
29607 \begin_layout LyX-Code
29608
29609 \change_inserted -970929547 1515109672
29610 <tag attr>
29611 \end_layout
29612
29613 \begin_layout LyX-Code
29614
29615 \change_inserted -970929547 1515109676
29616 <itemtag attr>First item.</itemtag>
29617 \end_layout
29618
29619 \begin_layout LyX-Code
29620
29621 \change_inserted -970929547 1515109678
29622 <itemtag attr>Second item.</itemtag>
29623 \end_layout
29624
29625 \begin_layout LyX-Code
29626
29627 \change_inserted -970929547 1496610966
29628 </tag>
29629 \end_layout
29630
29631 \begin_layout Standard
29632
29633 \change_inserted -970929547 1496612243
29634 The specific tags and roles output for each paragraph type can be controlled
29635  by means of the layout tags we are about to describe.
29636  Please note that, due to the very nature of DocBook, no sensible defaults
29637  really exist, and the values must always be carefully chosen.
29638  
29639 \end_layout
29640
29641 \begin_layout Description
29642
29643 \change_inserted -970929547 1515110057
29644 \begin_inset Flex Code
29645 status collapsed
29646
29647 \begin_layout Plain Layout
29648
29649 \change_inserted -970929547 1515109656
29650 DocBookAttr
29651 \change_unchanged
29652
29653 \end_layout
29654
29655 \end_inset
29656
29657  [
29658 \begin_inset Flex Code
29659 status collapsed
29660
29661 \begin_layout Plain Layout
29662
29663 \change_inserted -970929547 1496610966
29664 string
29665 \change_unchanged
29666
29667 \end_layout
29668
29669 \end_inset
29670
29671 ] Specifies attribute information to be output with the main tag, replacing
29672  
29673 \begin_inset Quotes eld
29674 \end_inset
29675
29676
29677 \begin_inset Flex Code
29678 status collapsed
29679
29680 \begin_layout Plain Layout
29681
29682 \change_inserted -970929547 1515110057
29683 attr
29684 \change_unchanged
29685
29686 \end_layout
29687
29688 \end_inset
29689
29690
29691 \begin_inset Quotes erd
29692 \end_inset
29693
29694  in the example above.
29695  This information can be used in further processing of the DocBook files.
29696  
29697 \change_unchanged
29698
29699 \end_layout
29700
29701 \begin_layout Description
29702
29703 \change_inserted -970929547 1496612296
29704 \begin_inset Flex Code
29705 status collapsed
29706
29707 \begin_layout Plain Layout
29708
29709 \change_inserted -970929547 1496612269
29710 DocBookTag
29711 \change_unchanged
29712
29713 \end_layout
29714
29715 \end_inset
29716
29717  [
29718 \begin_inset Flex Code
29719 status collapsed
29720
29721 \begin_layout Plain Layout
29722
29723 \change_inserted -970929547 1496610966
29724 string
29725 \change_unchanged
29726
29727 \end_layout
29728
29729 \end_inset
29730
29731 ] The tag to be used for this inset, replacing 
29732 \begin_inset Quotes eld
29733 \end_inset
29734
29735
29736 \begin_inset Flex Code
29737 status collapsed
29738
29739 \begin_layout Plain Layout
29740
29741 \change_inserted -970929547 1496612296
29742 tag
29743 \change_unchanged
29744
29745 \end_layout
29746
29747 \end_inset
29748
29749
29750 \begin_inset Quotes erd
29751 \end_inset
29752
29753  in the example above.
29754  The default is the name of the float and always needs to be changed, as
29755  DocBook provides no generic tag.
29756 \change_inserted 1075283030 1597698868
29757
29758 \end_layout
29759
29760 \begin_layout Description
29761
29762 \change_inserted 1075283030 1597699399
29763 \begin_inset Flex Code
29764 status collapsed
29765
29766 \begin_layout Plain Layout
29767
29768 \change_inserted 1075283030 1597698872
29769 DocBookTagType
29770 \change_unchanged
29771
29772 \end_layout
29773
29774 \end_inset
29775
29776  [
29777 \begin_inset Flex Code
29778 status collapsed
29779
29780 \begin_layout Plain Layout
29781
29782 \change_inserted 1075283030 1597700585
29783 block, paragraph, inline
29784 \change_unchanged
29785
29786 \end_layout
29787
29788 \end_inset
29789
29790 ] The new-line policy for this tag, see Section
29791 \begin_inset space ~
29792 \end_inset
29793
29794
29795 \begin_inset CommandInset ref
29796 LatexCommand ref
29797 reference "subsec:DocBook-New-line-policy"
29798 plural "false"
29799 caps "false"
29800 noprefix "false"
29801
29802 \end_inset
29803
29804  for the details.
29805  
29806 \change_unchanged
29807
29808 \end_layout
29809
29810 \begin_layout Subsection
29811
29812 \change_inserted 1075283030 1597699385
29813 New-line policy
29814 \begin_inset CommandInset label
29815 LatexCommand label
29816 name "subsec:DocBook-New-line-policy"
29817
29818 \end_inset
29819
29820
29821 \end_layout
29822
29823 \begin_layout Standard
29824
29825 \change_inserted 1075283030 1597698993
29826 For all tags, there are three possible policies for outputting new lines
29827  (given in the 
29828 \begin_inset Flex Code
29829 status collapsed
29830
29831 \begin_layout Plain Layout
29832
29833 \change_inserted 1075283030 1597698987
29834 DocBook*TagType
29835 \change_unchanged
29836
29837 \end_layout
29838
29839 \end_inset
29840
29841  attribute): 
29842 \end_layout
29843
29844 \begin_layout Itemize
29845
29846 \change_inserted 1075283030 1597699279
29847 \begin_inset Quotes eld
29848 \end_inset
29849
29850
29851 \begin_inset Flex Code
29852 status collapsed
29853
29854 \begin_layout Plain Layout
29855
29856 \change_inserted 1075283030 1597699012
29857 block
29858 \change_unchanged
29859
29860 \end_layout
29861
29862 \end_inset
29863
29864
29865 \begin_inset Quotes erd
29866 \end_inset
29867
29868 : the opening and closing tags are on their own lines (i.e.
29869  a line feed after and before the opening and the closing tags).
29870  Typical elements are floats.
29871  For instance: 
29872 \end_layout
29873
29874 \begin_layout LyX-Code
29875
29876 \change_inserted 1075283030 1597699194
29877 Content before
29878 \end_layout
29879
29880 \begin_layout LyX-Code
29881
29882 \change_inserted 1075283030 1597699194
29883 <blocktag>
29884 \end_layout
29885
29886 \begin_layout LyX-Code
29887
29888 \change_inserted 1075283030 1597699098
29889   Contents of the block.
29890 \end_layout
29891
29892 \begin_layout LyX-Code
29893
29894 \change_inserted 1075283030 1597699196
29895 </blocktag>
29896 \end_layout
29897
29898 \begin_layout LyX-Code
29899
29900 \change_inserted 1075283030 1597699198
29901 Content after
29902 \end_layout
29903
29904 \begin_layout Itemize
29905
29906 \change_inserted 1075283030 1597699289
29907 \begin_inset Quotes eld
29908 \end_inset
29909
29910
29911 \begin_inset Flex Code
29912 status collapsed
29913
29914 \begin_layout Plain Layout
29915
29916 \change_inserted 1075283030 1597699113
29917 paragraph
29918 \change_unchanged
29919
29920 \end_layout
29921
29922 \end_inset
29923
29924
29925 \begin_inset Quotes erd
29926 \end_inset
29927
29928 : the opening and closing tags are on the same, new line; a line feed is
29929  output before the opening tag and after the closing tag.
29930  Typical elements are paragraphs and list items.
29931  For instance: 
29932 \end_layout
29933
29934 \begin_layout LyX-Code
29935
29936 \change_inserted 1075283030 1597699186
29937 Content before
29938 \end_layout
29939
29940 \begin_layout LyX-Code
29941
29942 \change_inserted 1075283030 1597699357
29943 <paratag>Contents of the paragraph.</paratag>
29944 \end_layout
29945
29946 \begin_layout LyX-Code
29947
29948 \change_inserted 1075283030 1597699231
29949 Content after
29950 \end_layout
29951
29952 \begin_layout Itemize
29953
29954 \change_inserted 1075283030 1597699343
29955 \begin_inset Quotes eld
29956 \end_inset
29957
29958
29959 \begin_inset Flex Code
29960 status collapsed
29961
29962 \begin_layout Plain Layout
29963
29964 \change_inserted 1075283030 1597699307
29965 inline
29966 \change_unchanged
29967
29968 \end_layout
29969
29970 \end_inset
29971
29972
29973 \begin_inset Quotes erd
29974 \end_inset
29975
29976 : the opening and closing tags are on the same line as the rest of the content.
29977  No line feeds are output.
29978  Typical elements are fonts.
29979  For instance: 
29980 \end_layout
29981
29982 \begin_layout LyX-Code
29983
29984 \change_inserted 1075283030 1597699585
29985 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
29986 \end_layout
29987
29988 \begin_layout Standard
29989
29990 \change_inserted 1075283030 1597699585
29991 The default value is always 
29992 \begin_inset Quotes eld
29993 \end_inset
29994
29995
29996 \begin_inset Flex Code
29997 status collapsed
29998
29999 \begin_layout Plain Layout
30000
30001 \change_inserted 1075283030 1597699585
30002 block
30003 \change_unchanged
30004
30005 \end_layout
30006
30007 \end_inset
30008
30009
30010 \begin_inset Quotes erd
30011 \end_inset
30012
30013 .
30014 \change_unchanged
30015
30016 \end_layout
30017
30018 \begin_layout Subsection
30019
30020 \change_inserted -970929547 1515111533
30021 InsetLayout DocBook
30022 \change_unchanged
30023
30024 \end_layout
30025
30026 \begin_layout Standard
30027
30028 \change_inserted -970929547 1496611894
30029 The DocBook output of insets can also be controlled by information in layout
30030  files.
30031 \end_layout
30032
30033 \begin_layout Standard
30034
30035 \change_inserted -970929547 1496612045
30036 The DocBook \SpecialChar LyX
30037  outputs for an inset has the following form:
30038 \end_layout
30039
30040 \begin_layout LyX-Code
30041
30042 \change_inserted -970929547 1515110861
30043 <wrappertag wrapperattr>
30044 \end_layout
30045
30046 \begin_layout LyX-Code
30047
30048 \change_inserted -970929547 1515110868
30049   <tag attr>
30050 \end_layout
30051
30052 \begin_layout LyX-Code
30053
30054 \change_inserted -970929547 1515110869
30055     <innertag innerattr>
30056 \end_layout
30057
30058 \begin_layout LyX-Code
30059
30060 \change_inserted -970929547 1515110869
30061       Contents of the inset.
30062 \end_layout
30063
30064 \begin_layout LyX-Code
30065
30066 \change_inserted -970929547 1515110870
30067     </innertag>
30068 \end_layout
30069
30070 \begin_layout LyX-Code
30071
30072 \change_inserted -970929547 1515110871
30073   </tag>
30074 \end_layout
30075
30076 \begin_layout LyX-Code
30077
30078 \change_inserted -970929547 1515111172
30079 </wrappertag>
30080 \end_layout
30081
30082 \begin_layout Standard
30083
30084 \change_inserted -970929547 1515111186
30085 For an itemising inset, it rather looks like this: 
30086 \end_layout
30087
30088 \begin_layout LyX-Code
30089
30090 \change_inserted -970929547 1515111186
30091 <wrappertag wrapperattr>
30092 \end_layout
30093
30094 \begin_layout LyX-Code
30095
30096 \change_inserted -970929547 1515111186
30097   <tag attr>
30098 \end_layout
30099
30100 \begin_layout LyX-Code
30101
30102 \change_inserted -970929547 1515111186
30103     <innertag innerattr>
30104 \end_layout
30105
30106 \begin_layout LyX-Code
30107
30108 \change_inserted -970929547 1515111362
30109       <itemwrappertag itemwrapperattr>
30110 \end_layout
30111
30112 \begin_layout LyX-Code
30113
30114 \change_inserted -970929547 1515111364
30115         <itemlabeltag itemattr>
30116 \end_layout
30117
30118 \begin_layout LyX-Code
30119
30120 \change_inserted -970929547 1515111367
30121           Label of the first item.
30122 \end_layout
30123
30124 \begin_layout LyX-Code
30125
30126 \change_inserted -970929547 1515111362
30127         </itemtag>
30128 \change_unchanged
30129
30130 \end_layout
30131
30132 \begin_layout LyX-Code
30133
30134 \change_inserted -970929547 1515111517
30135         <itemtag itemattr>
30136 \end_layout
30137
30138 \begin_layout LyX-Code
30139
30140 \change_inserted -970929547 1515111517
30141           <itemtag itemattr>
30142 \change_unchanged
30143
30144 \end_layout
30145
30146 \begin_layout LyX-Code
30147
30148 \change_inserted -970929547 1515111516
30149             Contents of the first item.
30150 \end_layout
30151
30152 \begin_layout LyX-Code
30153
30154 \change_inserted -970929547 1515111514
30155           </itemtag>
30156 \change_unchanged
30157
30158 \end_layout
30159
30160 \begin_layout LyX-Code
30161
30162 \change_inserted -970929547 1515111247
30163         </itemtag>
30164 \change_unchanged
30165
30166 \end_layout
30167
30168 \begin_layout LyX-Code
30169
30170 \change_inserted -970929547 1515111221
30171       </itemwrappertag>
30172 \end_layout
30173
30174 \begin_layout LyX-Code
30175
30176 \change_inserted -970929547 1515111370
30177       <itemwrappertag itemwrapperattr>
30178 \end_layout
30179
30180 \begin_layout LyX-Code
30181
30182 \change_inserted -970929547 1515111370
30183         <itemlabeltag itemattr>
30184 \end_layout
30185
30186 \begin_layout LyX-Code
30187
30188 \change_inserted -970929547 1515111372
30189           Label of the second item.
30190 \end_layout
30191
30192 \begin_layout LyX-Code
30193
30194 \change_inserted -970929547 1515111370
30195         </itemtag>
30196 \change_unchanged
30197
30198 \end_layout
30199
30200 \begin_layout LyX-Code
30201
30202 \change_inserted -970929547 1515111504
30203         <itemtag itemattr>
30204 \end_layout
30205
30206 \begin_layout LyX-Code
30207
30208 \change_inserted -970929547 1515111505
30209           <itemtag itemattr>
30210 \change_unchanged
30211
30212 \end_layout
30213
30214 \begin_layout LyX-Code
30215
30216 \change_inserted -970929547 1515111507
30217             Contents of the second item.
30218 \end_layout
30219
30220 \begin_layout LyX-Code
30221
30222 \change_inserted -970929547 1515111509
30223           </itemtag>
30224 \change_unchanged
30225
30226 \end_layout
30227
30228 \begin_layout LyX-Code
30229
30230 \change_inserted -970929547 1515111251
30231         </itemtag>
30232 \change_unchanged
30233
30234 \end_layout
30235
30236 \begin_layout LyX-Code
30237
30238 \change_inserted -970929547 1515111221
30239       </itemwrappertag>
30240 \change_unchanged
30241
30242 \end_layout
30243
30244 \begin_layout LyX-Code
30245
30246 \change_inserted -970929547 1515111219
30247       ...
30248 \change_unchanged
30249
30250 \end_layout
30251
30252 \begin_layout LyX-Code
30253
30254 \change_inserted -970929547 1515111186
30255     </innertag>
30256 \end_layout
30257
30258 \begin_layout LyX-Code
30259
30260 \change_inserted -970929547 1515111186
30261   </tag>
30262 \end_layout
30263
30264 \begin_layout LyX-Code
30265
30266 \change_inserted -970929547 1515111186
30267 </wrappertag>
30268 \end_layout
30269
30270 \begin_layout Standard
30271
30272 \change_inserted -970929547 1515111183
30273 If the inset permits multiple paragraphs—that is, if 
30274 \begin_inset Flex Code
30275 status collapsed
30276
30277 \begin_layout Plain Layout
30278
30279 \change_inserted -970929547 1496610966
30280 MultiPar
30281 \change_unchanged
30282
30283 \end_layout
30284
30285 \end_inset
30286
30287  is true—then the contents of the inset will 
30288 \change_deleted 34634807 1620029217
30289 itself
30290 \change_inserted 34634807 1620029219
30291 themselves
30292 \change_inserted -970929547 1515111183
30293  be output as paragraphs formatted according to the styles used for those
30294  paragraphs (standard, quote, and the like).
30295  The inner tag is optional and, by default, does not appear.
30296 \end_layout
30297
30298 \begin_layout Standard
30299
30300 \change_inserted -970929547 1496610966
30301 The specific tags and attributes output for each inset can be controlled
30302  by means of the following layout tags.
30303 \end_layout
30304
30305 \begin_layout Description
30306
30307 \change_inserted -970929547 1515110317
30308 \begin_inset Flex Code
30309 status collapsed
30310
30311 \begin_layout Plain Layout
30312
30313 \change_inserted -970929547 1515109695
30314 DocBookAttr
30315 \change_unchanged
30316
30317 \end_layout
30318
30319 \end_inset
30320
30321  [
30322 \begin_inset Flex Code
30323 status collapsed
30324
30325 \begin_layout Plain Layout
30326
30327 \change_inserted -970929547 1496611854
30328 string
30329 \change_unchanged
30330
30331 \end_layout
30332
30333 \end_inset
30334
30335 ] Specifies attribute information to be output with the main tag, replacing
30336  
30337 \begin_inset Quotes eld
30338 \end_inset
30339
30340
30341 \begin_inset Flex Code
30342 status collapsed
30343
30344 \begin_layout Plain Layout
30345
30346 \change_inserted -970929547 1515110044
30347 attr
30348 \change_unchanged
30349
30350 \end_layout
30351
30352 \end_inset
30353
30354
30355 \begin_inset Quotes erd
30356 \end_inset
30357
30358  in the example above.
30359  This information can be used in further processing of the DocBook files.
30360  
30361 \end_layout
30362
30363 \begin_layout Description
30364
30365 \change_inserted -970929547 1515110973
30366 \begin_inset Flex Code
30367 status collapsed
30368
30369 \begin_layout Plain Layout
30370
30371 \change_inserted -970929547 1515110319
30372 DocBookInInfo
30373 \change_unchanged
30374
30375 \end_layout
30376
30377 \end_inset
30378
30379  [
30380 \begin_inset Flex Code
30381 status collapsed
30382
30383 \begin_layout Plain Layout
30384
30385 \change_inserted -970929547 1515110384
30386 never, always, maybe
30387 \change_unchanged
30388
30389 \end_layout
30390
30391 \end_inset
30392
30393 ] Specifies whether this tag goes into the 
30394 \begin_inset Flex Code
30395 status collapsed
30396
30397 \begin_layout Plain Layout
30398
30399 \change_inserted -970929547 1515110412
30400 <info>
30401 \change_unchanged
30402
30403 \end_layout
30404
30405 \end_inset
30406
30407  tag at the beginning of the parent layout.
30408  
30409 \begin_inset Flex Code
30410 status collapsed
30411
30412 \begin_layout Plain Layout
30413
30414 \change_inserted -970929547 1515110437
30415 never
30416 \change_unchanged
30417
30418 \end_layout
30419
30420 \end_inset
30421
30422  indicates that the tag never goes into 
30423 \begin_inset Flex Code
30424 status collapsed
30425
30426 \begin_layout Plain Layout
30427
30428 \change_inserted -970929547 1515110497
30429 <info>
30430 \change_unchanged
30431
30432 \end_layout
30433
30434 \end_inset
30435
30436  (this is default value, and corresponds to usual content).
30437  
30438 \begin_inset Flex Code
30439 status collapsed
30440
30441 \begin_layout Plain Layout
30442
30443 \change_inserted -970929547 1515110517
30444 always
30445 \change_unchanged
30446
30447 \end_layout
30448
30449 \end_inset
30450
30451  indicates that the tag always goes into 
30452 \begin_inset Flex Code
30453 status collapsed
30454
30455 \begin_layout Plain Layout
30456
30457 \change_inserted -970929547 1515110514
30458 <info>
30459 \change_unchanged
30460
30461 \end_layout
30462
30463 \end_inset
30464
30465  (this corresponds to usual metadata): if there is no 
30466 \begin_inset Flex Code
30467 status collapsed
30468
30469 \begin_layout Plain Layout
30470
30471 \change_inserted -970929547 1515110550
30472 <info>
30473 \change_unchanged
30474
30475 \end_layout
30476
30477 \end_inset
30478
30479  tag for the parent, one 
30480 \series bold
30481 will
30482 \series default
30483  be generated.
30484  
30485 \begin_inset Flex Code
30486 status collapsed
30487
30488 \begin_layout Plain Layout
30489
30490 \change_inserted -970929547 1515110540
30491 maybe
30492 \change_unchanged
30493
30494 \end_layout
30495
30496 \end_inset
30497
30498  indicates that the tag may go into 
30499 \begin_inset Flex Code
30500 status collapsed
30501
30502 \begin_layout Plain Layout
30503
30504 \change_inserted -970929547 1515110538
30505 <info>
30506 \change_unchanged
30507
30508 \end_layout
30509
30510 \end_inset
30511
30512  (this is only the case for titles): if there is no 
30513 \begin_inset Flex Code
30514 status collapsed
30515
30516 \begin_layout Plain Layout
30517
30518 \change_inserted -970929547 1515110585
30519 <info>
30520 \change_unchanged
30521
30522 \end_layout
30523
30524 \end_inset
30525
30526  tag for the parent, 
30527 \series bold
30528 none
30529 \series default
30530  will be generated, the corresponding tag will be output directly as content.
30531  
30532 \end_layout
30533
30534 \begin_layout Description
30535
30536 \change_inserted -970929547 1515111461
30537 \begin_inset Flex Code
30538 status collapsed
30539
30540 \begin_layout Plain Layout
30541
30542 \change_inserted -970929547 1515110974
30543 DocBookItemAttr
30544 \change_unchanged
30545
30546 \end_layout
30547
30548 \end_inset
30549
30550  [
30551 \begin_inset Flex Code
30552 status collapsed
30553
30554 \begin_layout Plain Layout
30555
30556 \change_inserted -970929547 1515110973
30557 string
30558 \change_unchanged
30559
30560 \end_layout
30561
30562 \end_inset
30563
30564 ] Specifies attribute information to be output with the item tag, replacing
30565  
30566 \begin_inset Quotes eld
30567 \end_inset
30568
30569
30570 \begin_inset Flex Code
30571 status collapsed
30572
30573 \begin_layout Plain Layout
30574
30575 \change_inserted -970929547 1515110984
30576 itemattr
30577 \change_unchanged
30578
30579 \end_layout
30580
30581 \end_inset
30582
30583
30584 \begin_inset Quotes erd
30585 \end_inset
30586
30587  in the example above.
30588  This information can be used in further processing of the DocBook files.
30589  
30590 \end_layout
30591
30592 \begin_layout Description
30593
30594 \change_inserted -970929547 1515111471
30595 \begin_inset Flex Code
30596 status collapsed
30597
30598 \begin_layout Plain Layout
30599
30600 \change_inserted -970929547 1515111465
30601 DocBookItemInnerAttr
30602 \change_unchanged
30603
30604 \end_layout
30605
30606 \end_inset
30607
30608  [
30609 \begin_inset Flex Code
30610 status collapsed
30611
30612 \begin_layout Plain Layout
30613
30614 \change_inserted -970929547 1515111461
30615 string
30616 \change_unchanged
30617
30618 \end_layout
30619
30620 \end_inset
30621
30622 ] Specifies attribute information to be output with the item inner tag,
30623  replacing 
30624 \begin_inset Quotes eld
30625 \end_inset
30626
30627
30628 \begin_inset Flex Code
30629 status collapsed
30630
30631 \begin_layout Plain Layout
30632
30633 \change_inserted -970929547 1515111476
30634 iteminnerattr
30635 \change_unchanged
30636
30637 \end_layout
30638
30639 \end_inset
30640
30641
30642 \begin_inset Quotes erd
30643 \end_inset
30644
30645  in the example above.
30646  This information can be used in further processing of the DocBook files.
30647  
30648 \end_layout
30649
30650 \begin_layout Description
30651
30652 \change_inserted -970929547 1515111494
30653 \begin_inset Flex Code
30654 status collapsed
30655
30656 \begin_layout Plain Layout
30657
30658 \change_inserted -970929547 1515111467
30659 DocBookItemInnerTag
30660 \change_unchanged
30661
30662 \end_layout
30663
30664 \end_inset
30665
30666  [
30667 \begin_inset Flex Code
30668 status collapsed
30669
30670 \begin_layout Plain Layout
30671
30672 \change_inserted -970929547 1515111461
30673 string
30674 \change_unchanged
30675
30676 \end_layout
30677
30678 \end_inset
30679
30680 ] The tag to be used for the item inner tag within the inset, replacing
30681  
30682 \begin_inset Quotes eld
30683 \end_inset
30684
30685
30686 \begin_inset Flex Code
30687 status collapsed
30688
30689 \begin_layout Plain Layout
30690
30691 \change_inserted -970929547 1515111486
30692 iteminnertag
30693 \change_unchanged
30694
30695 \end_layout
30696
30697 \end_inset
30698
30699
30700 \begin_inset Quotes erd
30701 \end_inset
30702
30703  in the example above.
30704  The default is 
30705 \begin_inset Flex Code
30706 status collapsed
30707
30708 \begin_layout Plain Layout
30709
30710 \change_inserted -970929547 1515111461
30711 NONE
30712 \change_unchanged
30713
30714 \end_layout
30715
30716 \end_inset
30717
30718 , indicating that there is no item inner tag: content is directly output
30719  without it for each itemised element.
30720  This parameter only makes sense when itemising layouts are used, such as
30721  lists.
30722  
30723 \change_inserted 1075283030 1598469472
30724 The most likely value is 
30725 \begin_inset Quotes eld
30726 \end_inset
30727
30728
30729 \begin_inset Flex Code
30730 status collapsed
30731
30732 \begin_layout Plain Layout
30733
30734 \change_inserted 1075283030 1598469476
30735 para
30736 \change_unchanged
30737
30738 \end_layout
30739
30740 \end_inset
30741
30742
30743 \begin_inset Quotes erd
30744 \end_inset
30745
30746 .
30747 \begin_inset Newline newline
30748 \end_inset
30749
30750 When a list item is split using a new line, the item inner tag will be repeated
30751  for each part of the paragraph, parts being separated by new lines.
30752  
30753 \end_layout
30754
30755 \begin_layout Description
30756
30757 \change_inserted 1075283030 1597699866
30758 \begin_inset Flex Code
30759 status collapsed
30760
30761 \begin_layout Plain Layout
30762
30763 \change_inserted 1075283030 1597699853
30764 DocBookItemInnerTagType
30765 \change_unchanged
30766
30767 \end_layout
30768
30769 \end_inset
30770
30771  [
30772 \begin_inset Flex Code
30773 status collapsed
30774
30775 \begin_layout Plain Layout
30776
30777 \change_inserted 1075283030 1597699866
30778 block, paragraph, inline
30779 \change_unchanged
30780
30781 \end_layout
30782
30783 \end_inset
30784
30785 ] The new-line policy for this tag, see Section
30786 \begin_inset space ~
30787 \end_inset
30788
30789
30790 \begin_inset CommandInset ref
30791 LatexCommand ref
30792 reference "subsec:DocBook-New-line-policy"
30793 plural "false"
30794 caps "false"
30795 noprefix "false"
30796
30797 \end_inset
30798
30799  for the details.
30800  
30801 \change_unchanged
30802
30803 \end_layout
30804
30805 \begin_layout Description
30806
30807 \change_inserted -970929547 1515111290
30808 \begin_inset Flex Code
30809 status collapsed
30810
30811 \begin_layout Plain Layout
30812
30813 \change_inserted -970929547 1515111283
30814 DocBookItemLabelAttr
30815 \change_unchanged
30816
30817 \end_layout
30818
30819 \end_inset
30820
30821  [
30822 \begin_inset Flex Code
30823 status collapsed
30824
30825 \begin_layout Plain Layout
30826
30827 \change_inserted -970929547 1515111279
30828 string
30829 \change_unchanged
30830
30831 \end_layout
30832
30833 \end_inset
30834
30835 ] Specifies attribute information to be output with the item label tag,
30836  replacing 
30837 \begin_inset Quotes eld
30838 \end_inset
30839
30840
30841 \begin_inset Flex Code
30842 status collapsed
30843
30844 \begin_layout Plain Layout
30845
30846 \change_inserted -970929547 1515111304
30847 itemlabelattr
30848 \change_unchanged
30849
30850 \end_layout
30851
30852 \end_inset
30853
30854
30855 \begin_inset Quotes erd
30856 \end_inset
30857
30858  in the example above.
30859  This information can be used in further processing of the DocBook files.
30860  
30861 \end_layout
30862
30863 \begin_layout Description
30864
30865 \change_inserted -970929547 1515111337
30866 \begin_inset Flex Code
30867 status collapsed
30868
30869 \begin_layout Plain Layout
30870
30871 \change_inserted -970929547 1515111285
30872 DocBookItemLabelTag
30873 \change_unchanged
30874
30875 \end_layout
30876
30877 \end_inset
30878
30879  [
30880 \begin_inset Flex Code
30881 status collapsed
30882
30883 \begin_layout Plain Layout
30884
30885 \change_inserted -970929547 1515111279
30886 string
30887 \change_unchanged
30888
30889 \end_layout
30890
30891 \end_inset
30892
30893 ] The tag to be used for the item label tag within the inset, replacing
30894  
30895 \begin_inset Quotes eld
30896 \end_inset
30897
30898
30899 \begin_inset Flex Code
30900 status collapsed
30901
30902 \begin_layout Plain Layout
30903
30904 \change_inserted -970929547 1515111311
30905 itemlabeltag
30906 \change_unchanged
30907
30908 \end_layout
30909
30910 \end_inset
30911
30912
30913 \begin_inset Quotes erd
30914 \end_inset
30915
30916  in the example above.
30917  This parameter only makes sense when itemising layouts are used with a
30918  notion of labels, such as definition lists.
30919  
30920 \change_inserted 1075283030 1597699874
30921
30922 \end_layout
30923
30924 \begin_layout Description
30925
30926 \change_inserted 1075283030 1597699874
30927 \begin_inset Flex Code
30928 status collapsed
30929
30930 \begin_layout Plain Layout
30931
30932 \change_inserted 1075283030 1597699880
30933 DocBookItemLabelTagType
30934 \change_unchanged
30935
30936 \end_layout
30937
30938 \end_inset
30939
30940  [
30941 \begin_inset Flex Code
30942 status collapsed
30943
30944 \begin_layout Plain Layout
30945
30946 \change_inserted 1075283030 1597699874
30947 block, paragraph, inline
30948 \change_unchanged
30949
30950 \end_layout
30951
30952 \end_inset
30953
30954 ] The new-line policy for this tag, see Section
30955 \begin_inset space ~
30956 \end_inset
30957
30958
30959 \begin_inset CommandInset ref
30960 LatexCommand ref
30961 reference "subsec:DocBook-New-line-policy"
30962 plural "false"
30963 caps "false"
30964 noprefix "false"
30965
30966 \end_inset
30967
30968  for the details.
30969  
30970 \change_unchanged
30971
30972 \end_layout
30973
30974 \begin_layout Description
30975
30976 \change_inserted -970929547 1515111124
30977 \begin_inset Flex Code
30978 status collapsed
30979
30980 \begin_layout Plain Layout
30981
30982 \change_inserted -970929547 1515111060
30983 DocBookItemTag
30984 \change_unchanged
30985
30986 \end_layout
30987
30988 \end_inset
30989
30990  [
30991 \begin_inset Flex Code
30992 status collapsed
30993
30994 \begin_layout Plain Layout
30995
30996 \change_inserted -970929547 1515111060
30997 string
30998 \change_unchanged
30999
31000 \end_layout
31001
31002 \end_inset
31003
31004 ] The tag to be used for the item tag within the inset, replacing 
31005 \begin_inset Quotes eld
31006 \end_inset
31007
31008
31009 \begin_inset Flex Code
31010 status collapsed
31011
31012 \begin_layout Plain Layout
31013
31014 \change_inserted -970929547 1515111060
31015 itemtag
31016 \change_unchanged
31017
31018 \end_layout
31019
31020 \end_inset
31021
31022
31023 \begin_inset Quotes erd
31024 \end_inset
31025
31026  in the example above.
31027  The default is 
31028 \begin_inset Flex Code
31029 status collapsed
31030
31031 \begin_layout Plain Layout
31032
31033 \change_inserted -970929547 1515111060
31034 NONE
31035 \change_unchanged
31036
31037 \end_layout
31038
31039 \end_inset
31040
31041 , indicating that there is no item tag.
31042  This parameter only makes sense when itemising layouts are used, such as
31043  lists.
31044  
31045 \change_inserted 1075283030 1597699890
31046
31047 \end_layout
31048
31049 \begin_layout Description
31050
31051 \change_inserted 1075283030 1597699890
31052 \begin_inset Flex Code
31053 status collapsed
31054
31055 \begin_layout Plain Layout
31056
31057 \change_inserted 1075283030 1597699890
31058 DocBookItemTagType
31059 \change_unchanged
31060
31061 \end_layout
31062
31063 \end_inset
31064
31065  [
31066 \begin_inset Flex Code
31067 status collapsed
31068
31069 \begin_layout Plain Layout
31070
31071 \change_inserted 1075283030 1597699890
31072 block, paragraph, inline
31073 \change_unchanged
31074
31075 \end_layout
31076
31077 \end_inset
31078
31079 ] The new-line policy for this tag, see Section
31080 \begin_inset space ~
31081 \end_inset
31082
31083
31084 \begin_inset CommandInset ref
31085 LatexCommand ref
31086 reference "subsec:DocBook-New-line-policy"
31087 plural "false"
31088 caps "false"
31089 noprefix "false"
31090
31091 \end_inset
31092
31093  for the details.
31094  
31095 \change_unchanged
31096
31097 \end_layout
31098
31099 \begin_layout Description
31100
31101 \change_inserted -970929547 1515111298
31102 \begin_inset Flex Code
31103 status collapsed
31104
31105 \begin_layout Plain Layout
31106
31107 \change_inserted -970929547 1515111124
31108 DocBookItemWrapperAttr
31109 \change_unchanged
31110
31111 \end_layout
31112
31113 \end_inset
31114
31115  [
31116 \begin_inset Flex Code
31117 status collapsed
31118
31119 \begin_layout Plain Layout
31120
31121 \change_inserted -970929547 1515111124
31122 string
31123 \change_unchanged
31124
31125 \end_layout
31126
31127 \end_inset
31128
31129 ] Specifies attribute information to be output with the item wrapper tag,
31130  replacing 
31131 \begin_inset Quotes eld
31132 \end_inset
31133
31134
31135 \begin_inset Flex Code
31136 status collapsed
31137
31138 \begin_layout Plain Layout
31139
31140 \change_inserted -970929547 1515111150
31141 itemwrapperattr
31142 \change_unchanged
31143
31144 \end_layout
31145
31146 \end_inset
31147
31148
31149 \begin_inset Quotes erd
31150 \end_inset
31151
31152  in the example above.
31153  This information can be used in further processing of the DocBook files.
31154  
31155 \change_unchanged
31156
31157 \end_layout
31158
31159 \begin_layout Description
31160
31161 \change_inserted -970929547 1515111113
31162 \begin_inset Flex Code
31163 status collapsed
31164
31165 \begin_layout Plain Layout
31166
31167 \change_inserted -970929547 1515111073
31168 DocBookItemWrapperTag
31169 \change_unchanged
31170
31171 \end_layout
31172
31173 \end_inset
31174
31175  [
31176 \begin_inset Flex Code
31177 status collapsed
31178
31179 \begin_layout Plain Layout
31180
31181 \change_inserted -970929547 1515111073
31182 string
31183 \change_unchanged
31184
31185 \end_layout
31186
31187 \end_inset
31188
31189 ] The tag to be used for the item wrapper tag within the inset, replacing
31190  
31191 \begin_inset Quotes eld
31192 \end_inset
31193
31194
31195 \begin_inset Flex Code
31196 status collapsed
31197
31198 \begin_layout Plain Layout
31199
31200 \change_inserted -970929547 1515111083
31201 itemwrappertag
31202 \change_unchanged
31203
31204 \end_layout
31205
31206 \end_inset
31207
31208
31209 \begin_inset Quotes erd
31210 \end_inset
31211
31212  in the example above.
31213  The default is 
31214 \begin_inset Flex Code
31215 status collapsed
31216
31217 \begin_layout Plain Layout
31218
31219 \change_inserted -970929547 1515111073
31220 NONE
31221 \change_unchanged
31222
31223 \end_layout
31224
31225 \end_inset
31226
31227 , indicating that there is no item wrapper tag: tag and content are directly
31228  output without it for each itemised element.
31229  This parameter only makes sense when itemising layouts are used, such as
31230  lists.
31231  
31232 \change_inserted 1075283030 1597699897
31233
31234 \end_layout
31235
31236 \begin_layout Description
31237
31238 \change_inserted 1075283030 1597699897
31239 \begin_inset Flex Code
31240 status collapsed
31241
31242 \begin_layout Plain Layout
31243
31244 \change_inserted 1075283030 1597699900
31245 DocBookItemWrapperTagType
31246 \change_unchanged
31247
31248 \end_layout
31249
31250 \end_inset
31251
31252  [
31253 \begin_inset Flex Code
31254 status collapsed
31255
31256 \begin_layout Plain Layout
31257
31258 \change_inserted 1075283030 1597699897
31259 block, paragraph, inline
31260 \change_unchanged
31261
31262 \end_layout
31263
31264 \end_inset
31265
31266 ] The new-line policy for this tag, see Section
31267 \begin_inset space ~
31268 \end_inset
31269
31270
31271 \begin_inset CommandInset ref
31272 LatexCommand ref
31273 reference "subsec:DocBook-New-line-policy"
31274 plural "false"
31275 caps "false"
31276 noprefix "false"
31277
31278 \end_inset
31279
31280  for the details.
31281  
31282 \change_unchanged
31283
31284 \end_layout
31285
31286 \begin_layout Description
31287
31288 \change_inserted -970929547 1515110104
31289 \begin_inset Flex Code
31290 status collapsed
31291
31292 \begin_layout Plain Layout
31293
31294 \change_inserted -970929547 1515110104
31295 DocBookInnerAttr
31296 \change_unchanged
31297
31298 \end_layout
31299
31300 \end_inset
31301
31302  [
31303 \begin_inset Flex Code
31304 status collapsed
31305
31306 \begin_layout Plain Layout
31307
31308 \change_inserted -970929547 1515110104
31309 string
31310 \change_unchanged
31311
31312 \end_layout
31313
31314 \end_inset
31315
31316 ] Specifies attribute information to be output with the inner tag, replacing
31317  
31318 \begin_inset Quotes eld
31319 \end_inset
31320
31321
31322 \begin_inset Flex Code
31323 status collapsed
31324
31325 \begin_layout Plain Layout
31326
31327 \change_inserted -970929547 1515110104
31328 innerattr
31329 \change_unchanged
31330
31331 \end_layout
31332
31333 \end_inset
31334
31335
31336 \begin_inset Quotes erd
31337 \end_inset
31338
31339  in the example above.
31340  This information can be used in further processing of the DocBook files.
31341  
31342 \end_layout
31343
31344 \begin_layout Description
31345
31346 \change_inserted -970929547 1515110906
31347 \begin_inset Flex Code
31348 status collapsed
31349
31350 \begin_layout Plain Layout
31351
31352 \change_inserted -970929547 1515110104
31353 DocBookInnerTag
31354 \change_unchanged
31355
31356 \end_layout
31357
31358 \end_inset
31359
31360  [
31361 \begin_inset Flex Code
31362 status collapsed
31363
31364 \begin_layout Plain Layout
31365
31366 \change_inserted -970929547 1515110104
31367 string
31368 \change_unchanged
31369
31370 \end_layout
31371
31372 \end_inset
31373
31374 ] The tag to be used for the inner tag within the inset, replacing 
31375 \begin_inset Quotes eld
31376 \end_inset
31377
31378
31379 \begin_inset Flex Code
31380 status collapsed
31381
31382 \begin_layout Plain Layout
31383
31384 \change_inserted -970929547 1515110104
31385 innertag
31386 \change_unchanged
31387
31388 \end_layout
31389
31390 \end_inset
31391
31392
31393 \begin_inset Quotes erd
31394 \end_inset
31395
31396  in the example above.
31397  The default is 
31398 \begin_inset Flex Code
31399 status collapsed
31400
31401 \begin_layout Plain Layout
31402
31403 \change_inserted -970929547 1515110791
31404 NONE
31405 \change_unchanged
31406
31407 \end_layout
31408
31409 \end_inset
31410
31411 , indicating that there is no inner tag: content is directly output without
31412  it.
31413 \change_inserted 1075283030 1597699904
31414
31415 \end_layout
31416
31417 \begin_layout Description
31418
31419 \change_inserted 1075283030 1597699904
31420 \begin_inset Flex Code
31421 status collapsed
31422
31423 \begin_layout Plain Layout
31424
31425 \change_inserted 1075283030 1597699904
31426 DocBookInnerTagType
31427 \change_unchanged
31428
31429 \end_layout
31430
31431 \end_inset
31432
31433  [
31434 \begin_inset Flex Code
31435 status collapsed
31436
31437 \begin_layout Plain Layout
31438
31439 \change_inserted 1075283030 1597699904
31440 block, paragraph, inline
31441 \change_unchanged
31442
31443 \end_layout
31444
31445 \end_inset
31446
31447 ] The new-line policy for this tag, see Section
31448 \begin_inset space ~
31449 \end_inset
31450
31451
31452 \begin_inset CommandInset ref
31453 LatexCommand ref
31454 reference "subsec:DocBook-New-line-policy"
31455 plural "false"
31456 caps "false"
31457 noprefix "false"
31458
31459 \end_inset
31460
31461  for the details.
31462  
31463 \change_unchanged
31464
31465 \end_layout
31466
31467 \begin_layout Description
31468
31469 \change_inserted -970929547 1515110753
31470 \begin_inset Flex Code
31471 status collapsed
31472
31473 \begin_layout Plain Layout
31474
31475 \change_inserted -970929547 1515110665
31476 DocBookSectionTag
31477 \change_unchanged
31478
31479 \end_layout
31480
31481 \end_inset
31482
31483  [
31484 \begin_inset Flex Code
31485 status collapsed
31486
31487 \begin_layout Plain Layout
31488
31489 \change_inserted -970929547 1515110661
31490 string
31491 \change_unchanged
31492
31493 \end_layout
31494
31495 \end_inset
31496
31497 ] Specifies the tag that corresponds to this kind of section.
31498  This parameter only makes sense for sectioning elements (part, chapter,
31499  section, etc.).
31500  The default value is 
31501 \begin_inset Flex Code
31502 status collapsed
31503
31504 \begin_layout Plain Layout
31505
31506 \change_inserted -970929547 1515110721
31507 section
31508 \change_unchanged
31509
31510 \end_layout
31511
31512 \end_inset
31513
31514 , and is only overridden when DocBook uses something else for sectioning
31515  (
31516 \change_inserted 1075283030 1597699921
31517 typically, 
31518 \change_inserted -970929547 1515110753
31519 parts and chapters of a book).
31520  
31521 \change_unchanged
31522
31523 \end_layout
31524
31525 \begin_layout Description
31526
31527 \change_inserted -970929547 1515110811
31528 \begin_inset Flex Code
31529 status collapsed
31530
31531 \begin_layout Plain Layout
31532
31533 \change_inserted -970929547 1496612023
31534 DocBookTag
31535 \change_unchanged
31536
31537 \end_layout
31538
31539 \end_inset
31540
31541  [
31542 \begin_inset Flex Code
31543 status collapsed
31544
31545 \begin_layout Plain Layout
31546
31547 \change_inserted -970929547 1496610966
31548 string
31549 \change_unchanged
31550
31551 \end_layout
31552
31553 \end_inset
31554
31555 ] The tag to be used for this inset, replacing 
31556 \begin_inset Quotes eld
31557 \end_inset
31558
31559
31560 \begin_inset Flex Code
31561 status collapsed
31562
31563 \begin_layout Plain Layout
31564
31565 \change_inserted -970929547 1496612033
31566 tag
31567 \change_unchanged
31568
31569 \end_layout
31570
31571 \end_inset
31572
31573
31574 \begin_inset Quotes erd
31575 \end_inset
31576
31577  in the example above.
31578  The default is the name of the float and always needs to be changed, as
31579  DocBook provides no generic inset tag.
31580 \change_inserted 1075283030 1597699924
31581
31582 \end_layout
31583
31584 \begin_layout Description
31585
31586 \change_inserted 1075283030 1597699924
31587 \begin_inset Flex Code
31588 status collapsed
31589
31590 \begin_layout Plain Layout
31591
31592 \change_inserted 1075283030 1597699924
31593 DocBookTagType
31594 \change_unchanged
31595
31596 \end_layout
31597
31598 \end_inset
31599
31600  [
31601 \begin_inset Flex Code
31602 status collapsed
31603
31604 \begin_layout Plain Layout
31605
31606 \change_inserted 1075283030 1597699924
31607 block, paragraph, inline
31608 \change_unchanged
31609
31610 \end_layout
31611
31612 \end_inset
31613
31614 ] The new-line policy for this tag, see Section
31615 \begin_inset space ~
31616 \end_inset
31617
31618
31619 \begin_inset CommandInset ref
31620 LatexCommand ref
31621 reference "subsec:DocBook-New-line-policy"
31622 plural "false"
31623 caps "false"
31624 noprefix "false"
31625
31626 \end_inset
31627
31628  for the details.
31629  
31630 \change_unchanged
31631
31632 \end_layout
31633
31634 \begin_layout Description
31635
31636 \change_inserted -970929547 1515110832
31637 \begin_inset Flex Code
31638 status collapsed
31639
31640 \begin_layout Plain Layout
31641
31642 \change_inserted -970929547 1515110822
31643 DocBookWrapperAttr
31644 \change_unchanged
31645
31646 \end_layout
31647
31648 \end_inset
31649
31650  [
31651 \begin_inset Flex Code
31652 status collapsed
31653
31654 \begin_layout Plain Layout
31655
31656 \change_inserted -970929547 1515110811
31657 string
31658 \change_unchanged
31659
31660 \end_layout
31661
31662 \end_inset
31663
31664 ] Specifies attribute information to be output with the outer 
31665 \change_inserted 34634807 1620057958
31666 wrapper 
31667 \change_inserted -970929547 1515110832
31668 tag, replacing 
31669 \begin_inset Quotes eld
31670 \end_inset
31671
31672
31673 \begin_inset Flex Code
31674 status collapsed
31675
31676 \begin_layout Plain Layout
31677
31678 \change_inserted -970929547 1515110845
31679 wrapperattr
31680 \change_unchanged
31681
31682 \end_layout
31683
31684 \end_inset
31685
31686
31687 \begin_inset Quotes erd
31688 \end_inset
31689
31690  in the example above.
31691  This information can be used in further processing of the DocBook files.
31692  
31693 \end_layout
31694
31695 \begin_layout Description
31696
31697 \change_inserted -970929547 1515110917
31698 \begin_inset Flex Code
31699 status collapsed
31700
31701 \begin_layout Plain Layout
31702
31703 \change_inserted -970929547 1515110826
31704 DocBookWrapperTag
31705 \change_unchanged
31706
31707 \end_layout
31708
31709 \end_inset
31710
31711  [
31712 \begin_inset Flex Code
31713 status collapsed
31714
31715 \begin_layout Plain Layout
31716
31717 \change_inserted -970929547 1515110811
31718 string
31719 \change_unchanged
31720
31721 \end_layout
31722
31723 \end_inset
31724
31725 ] The tag to be used for the wrapper tag around the inset, replacing 
31726 \begin_inset Quotes eld
31727 \end_inset
31728
31729
31730 \begin_inset Flex Code
31731 status collapsed
31732
31733 \begin_layout Plain Layout
31734
31735 \change_inserted -970929547 1515110842
31736 wrappertag
31737 \change_unchanged
31738
31739 \end_layout
31740
31741 \end_inset
31742
31743
31744 \begin_inset Quotes erd
31745 \end_inset
31746
31747  in the example above.
31748  The default is 
31749 \begin_inset Flex Code
31750 status collapsed
31751
31752 \begin_layout Plain Layout
31753
31754 \change_inserted -970929547 1515110811
31755 NONE
31756 \change_unchanged
31757
31758 \end_layout
31759
31760 \end_inset
31761
31762 , indicating that there is no wrapper tag: tag and content are directly
31763  output without it.
31764 \change_inserted 1075283030 1597699929
31765
31766 \end_layout
31767
31768 \begin_layout Description
31769
31770 \change_inserted 1075283030 1597699929
31771 \begin_inset Flex Code
31772 status collapsed
31773
31774 \begin_layout Plain Layout
31775
31776 \change_inserted 1075283030 1597699932
31777 DocBookWrapperTagType
31778 \change_unchanged
31779
31780 \end_layout
31781
31782 \end_inset
31783
31784  [
31785 \begin_inset Flex Code
31786 status collapsed
31787
31788 \begin_layout Plain Layout
31789
31790 \change_inserted 1075283030 1597699929
31791 block, paragraph, inline
31792 \change_unchanged
31793
31794 \end_layout
31795
31796 \end_inset
31797
31798 ] The new-line policy for this tag, see Section
31799 \begin_inset space ~
31800 \end_inset
31801
31802
31803 \begin_inset CommandInset ref
31804 LatexCommand ref
31805 reference "subsec:DocBook-New-line-policy"
31806 plural "false"
31807 caps "false"
31808 noprefix "false"
31809
31810 \end_inset
31811
31812  for the details.
31813  
31814 \change_unchanged
31815
31816 \end_layout
31817
31818 \begin_layout Subsection
31819
31820 \change_inserted -970929547 1515110040
31821 Float DocBook
31822 \end_layout
31823
31824 \begin_layout Standard
31825
31826 \change_inserted -970929547 1496611700
31827 The DocBook output for floats too can be controlled by layout information.
31828  The output has the following form:
31829 \end_layout
31830
31831 \begin_layout LyX-Code
31832
31833 \change_inserted -970929547 1515109700
31834 <tag attr>
31835 \end_layout
31836
31837 \begin_layout LyX-Code
31838
31839 \change_inserted -970929547 1515110138
31840   Contents of the float as DocBook.
31841 \end_layout
31842
31843 \begin_layout LyX-Code
31844
31845 \change_inserted -970929547 1496610966
31846 </tag>
31847 \end_layout
31848
31849 \begin_layout Standard
31850
31851 \change_inserted -970929547 1496611715
31852 The caption, if there is one, is a separate inset and will be output as
31853  a title.
31854  
31855 \end_layout
31856
31857 \begin_layout Description
31858
31859 \change_inserted -970929547 1515110033
31860 \begin_inset Flex Code
31861 status collapsed
31862
31863 \begin_layout Plain Layout
31864
31865 \change_inserted -970929547 1515109702
31866 DocBookAttr
31867 \change_unchanged
31868
31869 \end_layout
31870
31871 \end_inset
31872
31873  [
31874 \begin_inset Flex Code
31875 status collapsed
31876
31877 \begin_layout Plain Layout
31878
31879 \change_inserted -970929547 1496610966
31880 string
31881 \change_unchanged
31882
31883 \end_layout
31884
31885 \end_inset
31886
31887 ] Specifies attribute information to be output with the main tag, replacing
31888  
31889 \begin_inset Quotes eld
31890 \end_inset
31891
31892
31893 \begin_inset Flex Code
31894 status collapsed
31895
31896 \begin_layout Plain Layout
31897
31898 \change_inserted -970929547 1515110035
31899 attr
31900 \change_unchanged
31901
31902 \end_layout
31903
31904 \end_inset
31905
31906
31907 \begin_inset Quotes erd
31908 \end_inset
31909
31910  in the example above.
31911  This information can be used in further processing of the DocBook files.
31912  
31913 \end_layout
31914
31915 \begin_layout Description
31916
31917 \change_inserted -970929547 1515110157
31918 \begin_inset Flex Code
31919 status collapsed
31920
31921 \begin_layout Plain Layout
31922
31923 \change_inserted -970929547 1496611782
31924 DocBookTag
31925 \change_unchanged
31926
31927 \end_layout
31928
31929 \end_inset
31930
31931  [
31932 \begin_inset Flex Code
31933 status collapsed
31934
31935 \begin_layout Plain Layout
31936
31937 \change_inserted -970929547 1496610966
31938 string
31939 \change_unchanged
31940
31941 \end_layout
31942
31943 \end_inset
31944
31945 ] The tag to be used for this float, replacing 
31946 \begin_inset Quotes eld
31947 \end_inset
31948
31949
31950 \begin_inset Flex Code
31951 status collapsed
31952
31953 \begin_layout Plain Layout
31954
31955 \change_inserted -970929547 1496610966
31956 tag
31957 \change_unchanged
31958
31959 \end_layout
31960
31961 \end_inset
31962
31963
31964 \begin_inset Quotes erd
31965 \end_inset
31966
31967  in the example above.
31968  The default is the name of the float and always needs to be changed, as
31969  DocBook provides no generic float tag.
31970 \end_layout
31971
31972 \begin_layout Subsection
31973
31974 \change_inserted -970929547 1515110157
31975 Bibliography formatting
31976 \end_layout
31977
31978 \begin_layout Standard
31979
31980 \change_deleted 1075283030 1597699984
31981 The 
31982 \change_inserted 1075283030 1597699985
31983 Included 
31984 \change_inserted -970929547 1515110187
31985 bibliograph
31986 \change_deleted 1075283030 1597699987
31987 y
31988 \change_inserted 1075283030 1597699987
31989 ies
31990 \change_inserted -970929547 1515110187
31991  cannot be formatted: all fields are always output in the database-like
31992  DocBook format (equivalent to a BibTeX file)
31993 \change_inserted 1075283030 1597700117
31994 , using the 
31995 \begin_inset Flex Code
31996 status collapsed
31997
31998 \begin_layout Plain Layout
31999
32000 \change_inserted 1075283030 1597700120
32001 biblioentry
32002 \change_unchanged
32003
32004 \end_layout
32005
32006 \end_inset
32007
32008  tag
32009 \change_inserted -970929547 1515110187
32010 .
32011 \change_inserted 1075283030 1597700092
32012
32013 \end_layout
32014
32015 \begin_layout Standard
32016
32017 \change_inserted 1075283030 1597700112
32018 When the bibliographic entries are manually inserted into the 
32019 \change_deleted 34634807 1620057319
32020 LyX
32021 \change_inserted 34634807 1620057319
32022 \SpecialChar LyX
32023
32024 \change_inserted 1075283030 1597700112
32025  document as Bibliography Items, the user deals with formatting 
32026 \change_unchanged
32027 them
32028 \change_inserted 1075283030 1597700112
32029 self: there is no attempt of parsing what the user wrote, the string is
32030  directly used (with the 
32031 \begin_inset Flex Code
32032 status collapsed
32033
32034 \begin_layout Plain Layout
32035
32036 \change_inserted 1075283030 1597700076
32037 bibliomixed
32038 \change_unchanged
32039
32040 \end_layout
32041
32042 \end_inset
32043
32044  tag).
32045  
32046 \change_unchanged
32047
32048 \end_layout
32049
32050 \begin_layout Chapter
32051 Including External Material
32052 \begin_inset CommandInset label
32053 LatexCommand label
32054 name "chap:Including-External-Material"
32055
32056 \end_inset
32057
32058
32059 \end_layout
32060
32061 \begin_layout Standard
32062 \begin_inset Box Shadowbox
32063 position "t"
32064 hor_pos "c"
32065 has_inner_box 1
32066 inner_pos "t"
32067 use_parbox 0
32068 use_makebox 0
32069 width "100col%"
32070 special "none"
32071 height "1in"
32072 height_special "totalheight"
32073 thickness "0.4pt"
32074 separation "3pt"
32075 shadowsize "4pt"
32076 framecolor "black"
32077 backgroundcolor "none"
32078 status open
32079
32080 \begin_layout Plain Layout
32081 WARNING: This portion of the documentation has not been updated for some
32082  time.
32083  We certainly hope that it is still accurate, but there are no guarantees.
32084 \end_layout
32085
32086 \end_inset
32087
32088
32089 \end_layout
32090
32091 \begin_layout Standard
32092 The use of material from sources external to \SpecialChar LyX
32093  is covered in detail in the
32094  
32095 \emph on
32096 Embedded Objects
32097 \emph default
32098  manual.
32099  This part of the manual covers what needs to happen behind the scenes for
32100  new sorts of material to be included.
32101 \end_layout
32102
32103 \begin_layout Section
32104 How does it work?
32105 \end_layout
32106
32107 \begin_layout Standard
32108 The external material feature is based on the concept of a 
32109 \emph on
32110 template
32111 \emph default
32112 .
32113  A template is a specification of how \SpecialChar LyX
32114  should interface with a certain kind
32115  of material.
32116  As bundled, \SpecialChar LyX
32117  comes with predefined templates for Xfig figures, various
32118  raster format images, chess diagrams, and LilyPond music notation.
32119  You can check the actual list by using the menu 
32120 \begin_inset Flex Noun
32121 status collapsed
32122
32123 \begin_layout Plain Layout
32124 Insert\SpecialChar menuseparator
32125 File\SpecialChar menuseparator
32126 External Material
32127 \end_layout
32128
32129 \end_inset
32130
32131 .
32132  Furthermore, it is possible to roll your own template to support a specific
32133  kind of material.
32134  Later we'll describe in more detail what is involved, and hopefully you
32135  will submit all the templates you create so we can include them in a later
32136  \SpecialChar LyX
32137  version.
32138 \end_layout
32139
32140 \begin_layout Standard
32141 Another basic idea of the external material feature is to distinguish between
32142  the original file that serves as a base for final material and the produced
32143  file that is included in your exported or printed document.
32144  For example, consider the case of a figure produced with 
32145 \begin_inset Flex Code
32146 status collapsed
32147
32148 \begin_layout Plain Layout
32149 Xfig
32150 \end_layout
32151
32152 \end_inset
32153
32154 .
32155  The Xfig application itself works on an original file with the 
32156 \begin_inset Flex Code
32157 status collapsed
32158
32159 \begin_layout Plain Layout
32160 .fig
32161 \end_layout
32162
32163 \end_inset
32164
32165  extension.
32166  Within Xfig, you create and change your figure, and when you are done,
32167  you save the 
32168 \begin_inset Flex Code
32169 status collapsed
32170
32171 \begin_layout Plain Layout
32172 fig
32173 \end_layout
32174
32175 \end_inset
32176
32177 -file.
32178  When you want to include the figure in your document, you invoke 
32179 \begin_inset Flex Code
32180 status collapsed
32181
32182 \begin_layout Plain Layout
32183 transfig
32184 \end_layout
32185
32186 \end_inset
32187
32188  in order to create a PostScript file that can readily be included in your
32189  \SpecialChar LaTeX
32190  file.
32191  In this case, the 
32192 \begin_inset Flex Code
32193 status collapsed
32194
32195 \begin_layout Plain Layout
32196 .fig
32197 \end_layout
32198
32199 \end_inset
32200
32201  file is the original file, and the PostScript file is the produced file.
32202 \end_layout
32203
32204 \begin_layout Standard
32205 This distinction is important in order to allow updating of the material
32206  while you are in the process of writing the document.
32207  Furthermore, it provides us with the flexibility that is needed to support
32208  multiple export formats.
32209  For instance, in the case of a plain text file, it is not exactly an award-winn
32210 ing idea to include the figure as raw PostScript.
32211  Instead, you would either prefer to just include a reference to the figure
32212  or try to invoke some graphics to ASCII converter to make the final result
32213  look similar to the real graphics.
32214  The external material management allows you to do this, because it is parametri
32215 zed on the different export formats that \SpecialChar LyX
32216  supports.
32217 \end_layout
32218
32219 \begin_layout Standard
32220 Besides supporting the production of different products according to the
32221  exported format, it supports tight integration with editing and viewing
32222  applications.
32223  In the case of an Xfig figure, you are able to invoke Xfig on the original
32224  file with a single click from within the external material dialog in \SpecialChar LyX
32225 ,
32226  and also preview the produced PostScript file with Ghostview with another
32227  click.
32228  No more fiddling around with the command line and/or file browsers to locate
32229  and manipulate the original or produced files.
32230  In this way, you are finally able to take full advantage of the many different
32231  applications that are relevant to use when you write your documents, and
32232  ultimately be more productive.
32233 \end_layout
32234
32235 \begin_layout Section
32236 The external template configuration files
32237 \end_layout
32238
32239 \begin_layout Standard
32240 It is relatively easy to add custom external template definitions to \SpecialChar LyX
32241 .
32242  However, be aware that doing this in an careless manner most probably 
32243 \emph on
32244 will
32245 \emph default
32246  introduce an easily exploitable security hole.
32247  So before you do this, please read the discussion about security in 
32248 \begin_inset CommandInset ref
32249 LatexCommand ref
32250 reference "sec:Security-discussion"
32251
32252 \end_inset
32253
32254 .
32255 \end_layout
32256
32257 \begin_layout Standard
32258 Having said that, we encourage you to submit any interesting templates that
32259  you create.
32260  
32261 \end_layout
32262
32263 \begin_layout Standard
32264 The external templates are defined in the 
32265 \begin_inset Flex Code
32266 status collapsed
32267
32268 \begin_layout Plain Layout
32269 *.xtemplate
32270 \end_layout
32271
32272 \end_inset
32273
32274  files that are stored in the 
32275 \begin_inset Flex Code
32276 status collapsed
32277
32278 \begin_layout Plain Layout
32279 LyXDir/lib/xtemplates/
32280 \end_layout
32281
32282 \end_inset
32283
32284  directory.
32285  Each template is defined in a file of its own.
32286  You can place your own templates in 
32287 \begin_inset Flex Code
32288 status collapsed
32289
32290 \begin_layout Plain Layout
32291 UserDir/xtemplates/
32292 \end_layout
32293
32294 \end_inset
32295
32296  or copy existing templates to that directory in order to modify them.
32297 \end_layout
32298
32299 \begin_layout Standard
32300 A typical template looks like this:
32301 \end_layout
32302
32303 \begin_layout LyX-Code
32304 Template XFig
32305 \end_layout
32306
32307 \begin_layout LyX-Code
32308 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
32309 \end_layout
32310
32311 \begin_layout LyX-Code
32312 HelpText
32313 \end_layout
32314
32315 \begin_layout LyX-Code
32316 An XFig figure.
32317 \end_layout
32318
32319 \begin_layout LyX-Code
32320 HelpTextEnd
32321 \end_layout
32322
32323 \begin_layout LyX-Code
32324 InputFormat fig
32325 \end_layout
32326
32327 \begin_layout LyX-Code
32328 FileFilter "*.fig"
32329 \end_layout
32330
32331 \begin_layout LyX-Code
32332 AutomaticProduction true
32333 \end_layout
32334
32335 \begin_layout LyX-Code
32336 Transform Rotate
32337 \end_layout
32338
32339 \begin_layout LyX-Code
32340 Transform Resize
32341 \end_layout
32342
32343 \begin_layout LyX-Code
32344 Format LaTeX
32345 \end_layout
32346
32347 \begin_layout LyX-Code
32348 TransformCommand Rotate RotationLatexCommand
32349 \end_layout
32350
32351 \begin_layout LyX-Code
32352 TransformCommand Resize ResizeLatexCommand
32353 \end_layout
32354
32355 \begin_layout LyX-Code
32356 Product "$$RotateFront$$ResizeFront
32357 \end_layout
32358
32359 \begin_layout LyX-Code
32360          
32361 \backslash
32362
32363 \backslash
32364 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
32365 \end_layout
32366
32367 \begin_layout LyX-Code
32368          $$ResizeBack$$RotateBack"
32369 \end_layout
32370
32371 \begin_layout LyX-Code
32372 UpdateFormat pstex
32373 \end_layout
32374
32375 \begin_layout LyX-Code
32376 UpdateResult "$$AbsPath$$Basename.pstex_t"
32377 \end_layout
32378
32379 \begin_layout LyX-Code
32380 Requirement "graphicx"
32381 \end_layout
32382
32383 \begin_layout LyX-Code
32384 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
32385 \end_layout
32386
32387 \begin_layout LyX-Code
32388 ReferencedFile latex "$$AbsPath$$Basename.eps"
32389 \end_layout
32390
32391 \begin_layout LyX-Code
32392 ReferencedFile dvi "$$AbsPath$$Basename.eps"
32393 \end_layout
32394
32395 \begin_layout LyX-Code
32396 FormatEnd
32397 \end_layout
32398
32399 \begin_layout LyX-Code
32400 Format PDFLaTeX
32401 \end_layout
32402
32403 \begin_layout LyX-Code
32404 TransformCommand Rotate RotationLatexCommand
32405 \end_layout
32406
32407 \begin_layout LyX-Code
32408 TransformCommand Resize ResizeLatexCommand
32409 \end_layout
32410
32411 \begin_layout LyX-Code
32412 Product "$$RotateFront$$ResizeFront
32413 \end_layout
32414
32415 \begin_layout LyX-Code
32416          
32417 \backslash
32418
32419 \backslash
32420 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
32421 \end_layout
32422
32423 \begin_layout LyX-Code
32424          $$ResizeBack$$RotateBack"
32425 \end_layout
32426
32427 \begin_layout LyX-Code
32428 UpdateFormat pdftex
32429 \end_layout
32430
32431 \begin_layout LyX-Code
32432 UpdateResult "$$AbsPath$$Basename.pdftex_t"
32433 \end_layout
32434
32435 \begin_layout LyX-Code
32436 Requirement "graphicx"
32437 \end_layout
32438
32439 \begin_layout LyX-Code
32440 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
32441 \end_layout
32442
32443 \begin_layout LyX-Code
32444 ReferencedFile latex "$$AbsPath$$Basename.pdf"
32445 \end_layout
32446
32447 \begin_layout LyX-Code
32448 FormatEnd
32449 \end_layout
32450
32451 \begin_layout LyX-Code
32452 Format Ascii
32453 \end_layout
32454
32455 \begin_layout LyX-Code
32456 Product "[XFig: $$FName]"
32457 \end_layout
32458
32459 \begin_layout LyX-Code
32460 FormatEnd
32461 \end_layout
32462
32463 \begin_layout LyX-Code
32464 Format DocBook
32465 \end_layout
32466
32467 \begin_layout LyX-Code
32468 Product "<graphic fileref=
32469 \backslash
32470 "$$AbsOrRelPathMaster$$Basename.eps
32471 \backslash
32472 ">
32473 \end_layout
32474
32475 \begin_layout LyX-Code
32476          </graphic>"
32477 \end_layout
32478
32479 \begin_layout LyX-Code
32480 UpdateFormat eps
32481 \end_layout
32482
32483 \begin_layout LyX-Code
32484 UpdateResult "$$AbsPath$$Basename.eps"
32485 \end_layout
32486
32487 \begin_layout LyX-Code
32488 ReferencedFile docbook "$$AbsPath$$Basename.eps"
32489 \end_layout
32490
32491 \begin_layout LyX-Code
32492 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
32493 \end_layout
32494
32495 \begin_layout LyX-Code
32496 FormatEnd
32497 \end_layout
32498
32499 \begin_layout LyX-Code
32500 TemplateEnd
32501 \end_layout
32502
32503 \begin_layout Standard
32504 As you can see, the template is enclosed in 
32505 \begin_inset Flex Code
32506 status collapsed
32507
32508 \begin_layout Plain Layout
32509 Template
32510 \end_layout
32511
32512 \end_inset
32513
32514  \SpecialChar ldots
32515  
32516 \begin_inset Flex Code
32517 status collapsed
32518
32519 \begin_layout Plain Layout
32520 TemplateEnd
32521 \end_layout
32522
32523 \end_inset
32524
32525 .
32526  It contains a header specifying some general settings and, for each supported
32527  primary document file format, a section 
32528 \begin_inset Flex Code
32529 status collapsed
32530
32531 \begin_layout Plain Layout
32532 Format
32533 \end_layout
32534
32535 \end_inset
32536
32537  \SpecialChar ldots
32538  
32539 \begin_inset Flex Code
32540 status collapsed
32541
32542 \begin_layout Plain Layout
32543 FormatEnd
32544 \end_layout
32545
32546 \end_inset
32547
32548 .
32549 \end_layout
32550
32551 \begin_layout Subsection
32552 The template header
32553 \end_layout
32554
32555 \begin_layout Description
32556 \begin_inset Flex Code
32557 status collapsed
32558
32559 \begin_layout Plain Layout
32560 AutomaticProduction
32561 \begin_inset space ~
32562 \end_inset
32563
32564 true|false
32565 \end_layout
32566
32567 \end_inset
32568
32569  Whether the file represented by the template must be generated by \SpecialChar LyX
32570 .
32571  This command must occur exactly once.
32572 \end_layout
32573
32574 \begin_layout Description
32575 \begin_inset Flex Code
32576 status collapsed
32577
32578 \begin_layout Plain Layout
32579 FileFilter
32580 \begin_inset space ~
32581 \end_inset
32582
32583 <pattern>
32584 \end_layout
32585
32586 \end_inset
32587
32588  A glob pattern that is used in the file dialog to filter out the desired
32589  files.
32590  If there is more than one possible file extension (e.
32591 \begin_inset space \thinspace{}
32592 \end_inset
32593
32594 g.
32595 \begin_inset space \space{}
32596 \end_inset
32597
32598 tgif has 
32599 \begin_inset Flex Code
32600 status collapsed
32601
32602 \begin_layout Plain Layout
32603 .obj
32604 \end_layout
32605
32606 \end_inset
32607
32608  and 
32609 \begin_inset Flex Code
32610 status collapsed
32611
32612 \begin_layout Plain Layout
32613 .tgo
32614 \end_layout
32615
32616 \end_inset
32617
32618 ), use something like 
32619 \begin_inset Flex Code
32620 status collapsed
32621
32622 \begin_layout Plain Layout
32623 "*.{obj,tgo}"
32624 \end_layout
32625
32626 \end_inset
32627
32628 .
32629  This command must occur exactly once.
32630 \end_layout
32631
32632 \begin_layout Description
32633 \begin_inset Flex Code
32634 status collapsed
32635
32636 \begin_layout Plain Layout
32637 GuiName
32638 \begin_inset space ~
32639 \end_inset
32640
32641 <guiname>
32642 \end_layout
32643
32644 \end_inset
32645
32646  The text that is displayed on the button.
32647  This command must occur exactly once.
32648 \end_layout
32649
32650 \begin_layout Description
32651 \begin_inset Flex Code
32652 status collapsed
32653
32654 \begin_layout Plain Layout
32655 HelpText
32656 \begin_inset space ~
32657 \end_inset
32658
32659 <text>
32660 \begin_inset space ~
32661 \end_inset
32662
32663 HelpTextEnd
32664 \end_layout
32665
32666 \end_inset
32667
32668  The help text that is used in the External dialog.
32669  Provide enough information to explain to the user just what the template
32670  can provide him with.
32671  This command must occur exactly once.
32672 \end_layout
32673
32674 \begin_layout Description
32675 \begin_inset Flex Code
32676 status collapsed
32677
32678 \begin_layout Plain Layout
32679 InputFormat
32680 \begin_inset space ~
32681 \end_inset
32682
32683 <format>
32684 \end_layout
32685
32686 \end_inset
32687
32688  The file format of the original file.
32689  This must be the name of a format that is known to \SpecialChar LyX
32690  (see 
32691 \begin_inset CommandInset ref
32692 LatexCommand ref
32693 reference "sec:Formats"
32694
32695 \end_inset
32696
32697 ).
32698  Use 
32699 \begin_inset Quotes eld
32700 \end_inset
32701
32702
32703 \begin_inset Flex Code
32704 status collapsed
32705
32706 \begin_layout Plain Layout
32707 *
32708 \end_layout
32709
32710 \end_inset
32711
32712
32713 \begin_inset Quotes erd
32714 \end_inset
32715
32716  if the template can handle original files of more than one format.
32717  \SpecialChar LyX
32718  will attempt to interrogate the file itself in order to deduce its format
32719  in this case.
32720  This command must occur exactly once.
32721 \end_layout
32722
32723 \begin_layout Description
32724 \begin_inset Flex Code
32725 status collapsed
32726
32727 \begin_layout Plain Layout
32728 Template
32729 \begin_inset space ~
32730 \end_inset
32731
32732 <id>
32733 \end_layout
32734
32735 \end_inset
32736
32737  A unique name for the template.
32738  It must not contain substitution macros (see below).
32739 \end_layout
32740
32741 \begin_layout Description
32742 \begin_inset Flex Code
32743 status collapsed
32744
32745 \begin_layout Plain Layout
32746 Transform
32747 \begin_inset space ~
32748 \end_inset
32749
32750 Rotate|Resize|Clip|Extra
32751 \end_layout
32752
32753 \end_inset
32754
32755  This command specifies which transformations are supported by this template.
32756  It may occur zero or more times.
32757  This command enables the corresponding tabs in the external dialog.
32758  Each 
32759 \begin_inset Flex Code
32760 status collapsed
32761
32762 \begin_layout Plain Layout
32763 Transform
32764 \end_layout
32765
32766 \end_inset
32767
32768  command must have either a corresponding 
32769 \begin_inset Flex Code
32770 status collapsed
32771
32772 \begin_layout Plain Layout
32773 TransformCommand
32774 \end_layout
32775
32776 \end_inset
32777
32778  or a 
32779 \begin_inset Flex Code
32780 status collapsed
32781
32782 \begin_layout Plain Layout
32783 TransformOption
32784 \end_layout
32785
32786 \end_inset
32787
32788  command in the 
32789 \begin_inset Flex Code
32790 status collapsed
32791
32792 \begin_layout Plain Layout
32793 Format
32794 \end_layout
32795
32796 \end_inset
32797
32798  section.
32799  Otherwise the transformation will not be supported by that format.
32800 \end_layout
32801
32802 \begin_layout Subsection
32803 The Format section
32804 \end_layout
32805
32806 \begin_layout Description
32807 \begin_inset Flex Code
32808 status collapsed
32809
32810 \begin_layout Plain Layout
32811 Format
32812 \begin_inset space ~
32813 \end_inset
32814
32815 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
32816 \end_layout
32817
32818 \end_inset
32819
32820  The primary document file format that this format definition is for.
32821  Not every template has a sensible representation in all document file formats.
32822  Please define nevertheless a 
32823 \begin_inset Flex Code
32824 status collapsed
32825
32826 \begin_layout Plain Layout
32827 Format
32828 \end_layout
32829
32830 \end_inset
32831
32832  section for all templates.
32833  Use a dummy text when no representation is available.
32834  Then you can at least see a reference to the external material in the exported
32835  document.
32836 \end_layout
32837
32838 \begin_layout Description
32839 \begin_inset Flex Code
32840 status collapsed
32841
32842 \begin_layout Plain Layout
32843 Option
32844 \begin_inset space ~
32845 \end_inset
32846
32847 <name>
32848 \begin_inset space ~
32849 \end_inset
32850
32851 <value>
32852 \end_layout
32853
32854 \end_inset
32855
32856  This command defines an additional macro 
32857 \begin_inset Flex Code
32858 status collapsed
32859
32860 \begin_layout Plain Layout
32861 $$<name>
32862 \end_layout
32863
32864 \end_inset
32865
32866  for substitution in 
32867 \begin_inset Flex Code
32868 status collapsed
32869
32870 \begin_layout Plain Layout
32871 Product
32872 \end_layout
32873
32874 \end_inset
32875
32876 .
32877  
32878 \begin_inset Flex Code
32879 status collapsed
32880
32881 \begin_layout Plain Layout
32882 <value>
32883 \end_layout
32884
32885 \end_inset
32886
32887  itself may contain substitution macros.
32888  The advantage over using 
32889 \begin_inset Flex Code
32890 status collapsed
32891
32892 \begin_layout Plain Layout
32893 <value>
32894 \end_layout
32895
32896 \end_inset
32897
32898  directly in 
32899 \begin_inset Flex Code
32900 status collapsed
32901
32902 \begin_layout Plain Layout
32903 Product
32904 \end_layout
32905
32906 \end_inset
32907
32908  is that the substituted value of 
32909 \begin_inset Flex Code
32910 status collapsed
32911
32912 \begin_layout Plain Layout
32913 $$<name>
32914 \end_layout
32915
32916 \end_inset
32917
32918  is sanitized so that it is a valid optional argument in the document format.
32919  This command may occur zero or more times.
32920 \end_layout
32921
32922 \begin_layout Description
32923 \begin_inset Flex Code
32924 status collapsed
32925
32926 \begin_layout Plain Layout
32927 Product
32928 \begin_inset space ~
32929 \end_inset
32930
32931 <text>
32932 \end_layout
32933
32934 \end_inset
32935
32936  The text that is inserted in the exported document.
32937  This is actually the most important command and can be quite complex.
32938  This command must occur exactly once.
32939 \end_layout
32940
32941 \begin_layout Description
32942 \begin_inset Flex Code
32943 status collapsed
32944
32945 \begin_layout Plain Layout
32946 Preamble
32947 \begin_inset space ~
32948 \end_inset
32949
32950 <name>
32951 \end_layout
32952
32953 \end_inset
32954
32955  This command specifies a preamble snippet that will be included in the
32956  \SpecialChar LaTeX
32957  preamble.
32958  It has to be defined using 
32959 \begin_inset Flex Code
32960 status collapsed
32961
32962 \begin_layout Plain Layout
32963 PreambleDef
32964 \end_layout
32965
32966 \end_inset
32967
32968  \SpecialChar ldots
32969  
32970 \begin_inset Flex Code
32971 status collapsed
32972
32973 \begin_layout Plain Layout
32974 PreambleDefEnd
32975 \end_layout
32976
32977 \end_inset
32978
32979 .
32980  This command may occur zero or more times.
32981 \end_layout
32982
32983 \begin_layout Description
32984 \begin_inset Flex Code
32985 status collapsed
32986
32987 \begin_layout Plain Layout
32988 ReferencedFile
32989 \begin_inset space ~
32990 \end_inset
32991
32992 <format>
32993 \begin_inset space ~
32994 \end_inset
32995
32996 <filename>
32997 \end_layout
32998
32999 \end_inset
33000
33001  This command denotes files that are created by the conversion process and
33002  are needed for a particular export format.
33003  If the filename is relative, it is interpreted relative to the master document.
33004  This command may be given zero or more times.
33005 \end_layout
33006
33007 \begin_layout Description
33008 \begin_inset Flex Code
33009 status collapsed
33010
33011 \begin_layout Plain Layout
33012 Requirement
33013 \begin_inset space ~
33014 \end_inset
33015
33016 <package>
33017 \end_layout
33018
33019 \end_inset
33020
33021  The name of a required \SpecialChar LaTeX
33022  package.
33023  The package is included via 
33024 \begin_inset Flex Code
33025 status collapsed
33026
33027 \begin_layout Plain Layout
33028
33029 \backslash
33030 usepackage{}
33031 \end_layout
33032
33033 \end_inset
33034
33035  in the \SpecialChar LaTeX
33036  preamble.
33037  This command may occur zero or more times.
33038 \end_layout
33039
33040 \begin_layout Description
33041 \begin_inset Flex Code
33042 status collapsed
33043
33044 \begin_layout Plain Layout
33045 TransformCommand
33046 \begin_inset space ~
33047 \end_inset
33048
33049 Rotate
33050 \begin_inset space ~
33051 \end_inset
33052
33053 RotationLatexCommand
33054 \end_layout
33055
33056 \end_inset
33057
33058  This command specifies that the built in \SpecialChar LaTeX
33059  command should be used for rotation.
33060  This command may occur once or not at all.
33061 \end_layout
33062
33063 \begin_layout Description
33064 \begin_inset Flex Code
33065 status collapsed
33066
33067 \begin_layout Plain Layout
33068 TransformCommand
33069 \begin_inset space ~
33070 \end_inset
33071
33072 Resize
33073 \begin_inset space ~
33074 \end_inset
33075
33076 ResizeLatexCommand
33077 \end_layout
33078
33079 \end_inset
33080
33081  This command specifies that the built in \SpecialChar LaTeX
33082  command should be used for resizing.
33083  This command may occur once or not at all.
33084 \end_layout
33085
33086 \begin_layout Description
33087 \begin_inset Flex Code
33088 status collapsed
33089
33090 \begin_layout Plain Layout
33091 TransformOption
33092 \begin_inset space ~
33093 \end_inset
33094
33095 Rotate
33096 \begin_inset space ~
33097 \end_inset
33098
33099 RotationLatexOption
33100 \end_layout
33101
33102 \end_inset
33103
33104  This command specifies that rotation is done via an optional argument.
33105  This command may occur once or not at all.
33106 \end_layout
33107
33108 \begin_layout Description
33109 \begin_inset Flex Code
33110 status collapsed
33111
33112 \begin_layout Plain Layout
33113 TransformOption
33114 \begin_inset space ~
33115 \end_inset
33116
33117 Resize
33118 \begin_inset space ~
33119 \end_inset
33120
33121 ResizeLatexOption
33122 \end_layout
33123
33124 \end_inset
33125
33126  This command specifies that resizing is done via an optional argument.
33127  This command may occur once or not at all.
33128 \end_layout
33129
33130 \begin_layout Description
33131 \begin_inset Flex Code
33132 status collapsed
33133
33134 \begin_layout Plain Layout
33135 TransformOption
33136 \begin_inset space ~
33137 \end_inset
33138
33139 Clip
33140 \begin_inset space ~
33141 \end_inset
33142
33143 ClipLatexOption
33144 \end_layout
33145
33146 \end_inset
33147
33148  This command specifies that clipping is done via an optional argument.
33149  This command may occur once or not at all.
33150 \end_layout
33151
33152 \begin_layout Description
33153 \begin_inset Flex Code
33154 status collapsed
33155
33156 \begin_layout Plain Layout
33157 TransformOption
33158 \begin_inset space ~
33159 \end_inset
33160
33161 Extra
33162 \begin_inset space ~
33163 \end_inset
33164
33165 ExtraLatexOption
33166 \end_layout
33167
33168 \end_inset
33169
33170  This command specifies that an extra optional argument is used.
33171  This command may occur once or not at all.
33172 \end_layout
33173
33174 \begin_layout Description
33175 \begin_inset Flex Code
33176 status collapsed
33177
33178 \begin_layout Plain Layout
33179 UpdateFormat
33180 \begin_inset space ~
33181 \end_inset
33182
33183 <format>
33184 \end_layout
33185
33186 \end_inset
33187
33188  The file format of the converted file.
33189  This must be the name of a format that is known to \SpecialChar LyX
33190  (see the 
33191 \begin_inset Flex Noun
33192 status collapsed
33193
33194 \begin_layout Plain Layout
33195 Tools\SpecialChar menuseparator
33196 Preferences\SpecialChar menuseparator
33197 File Handling\SpecialChar menuseparator
33198 File Format
33199 \end_layout
33200
33201 \end_inset
33202
33203  dialog).
33204  This command must occur exactly once.
33205  If the resulting file format is PDF, you need to specify the format 
33206 \begin_inset Flex Code
33207 status collapsed
33208
33209 \begin_layout Plain Layout
33210 pdf6
33211 \end_layout
33212
33213 \end_inset
33214
33215 .
33216  This is the PDF format used for including graphics.
33217  The other defined PDF formats are for document export.
33218 \end_layout
33219
33220 \begin_layout Description
33221 \begin_inset Flex Code
33222 status collapsed
33223
33224 \begin_layout Plain Layout
33225 UpdateResult
33226 \begin_inset space ~
33227 \end_inset
33228
33229 <filename>
33230 \end_layout
33231
33232 \end_inset
33233
33234  The file name of the converted file.
33235  The file name must be absolute.
33236  This command must occur exactly once.
33237 \end_layout
33238
33239 \begin_layout Subsection
33240 Preamble definitions
33241 \end_layout
33242
33243 \begin_layout Standard
33244 The external template configuration file may contain additional preamble
33245  definitions enclosed by 
33246 \begin_inset Flex Code
33247 status collapsed
33248
33249 \begin_layout Plain Layout
33250 PreambleDef
33251 \end_layout
33252
33253 \end_inset
33254
33255  \SpecialChar ldots
33256  
33257 \begin_inset Flex Code
33258 status collapsed
33259
33260 \begin_layout Plain Layout
33261 PreambleDefEnd
33262 \end_layout
33263
33264 \end_inset
33265
33266 .
33267  They can be used by the templates in the 
33268 \begin_inset Flex Code
33269 status collapsed
33270
33271 \begin_layout Plain Layout
33272 Format
33273 \end_layout
33274
33275 \end_inset
33276
33277  section.
33278 \end_layout
33279
33280 \begin_layout Section
33281 The substitution mechanism
33282 \end_layout
33283
33284 \begin_layout Standard
33285 When the external material facility invokes an external program, it is done
33286  on the basis of a command defined in the template configuration file.
33287  These commands can contain various macros that are expanded before execution.
33288  Execution always take place in the directory of the containing document.
33289 \end_layout
33290
33291 \begin_layout Standard
33292 Also, whenever external material is to be displayed, the name will be produced
33293  by the substitution mechanism, and most other commands in the template
33294  definition support substitution as well.
33295 \end_layout
33296
33297 \begin_layout Standard
33298 The available macros are the following:
33299 \end_layout
33300
33301 \begin_layout Description
33302 \begin_inset Flex Code
33303 status collapsed
33304
33305 \begin_layout Plain Layout
33306 $$AbsOrRelPathMaster
33307 \end_layout
33308
33309 \end_inset
33310
33311  The file path, absolute or relative to the master \SpecialChar LyX
33312  document.
33313 \end_layout
33314
33315 \begin_layout Description
33316 \begin_inset Flex Code
33317 status collapsed
33318
33319 \begin_layout Plain Layout
33320 $$AbsOrRelPathParent
33321 \end_layout
33322
33323 \end_inset
33324
33325  The file path, absolute or relative to the \SpecialChar LyX
33326  document.
33327 \end_layout
33328
33329 \begin_layout Description
33330 \begin_inset Flex Code
33331 status collapsed
33332
33333 \begin_layout Plain Layout
33334 $$AbsPath
33335 \end_layout
33336
33337 \end_inset
33338
33339  The absolute file path.
33340 \end_layout
33341
33342 \begin_layout Description
33343 \begin_inset Flex Code
33344 status collapsed
33345
33346 \begin_layout Plain Layout
33347 $$Basename
33348 \end_layout
33349
33350 \end_inset
33351
33352  The filename without path and without the extension.
33353 \end_layout
33354
33355 \begin_layout Description
33356 \begin_inset Flex Code
33357 status collapsed
33358
33359 \begin_layout Plain Layout
33360 $$Contents(
33361 \begin_inset Quotes eld
33362 \end_inset
33363
33364 filename.ext
33365 \begin_inset Quotes erd
33366 \end_inset
33367
33368 )
33369 \end_layout
33370
33371 \end_inset
33372
33373  This macro will expand to the contents of the file with the name 
33374 \begin_inset Flex Code
33375 status collapsed
33376
33377 \begin_layout Plain Layout
33378 filename.ext
33379 \end_layout
33380
33381 \end_inset
33382
33383 .
33384 \end_layout
33385
33386 \begin_layout Description
33387 \begin_inset Flex Code
33388 status collapsed
33389
33390 \begin_layout Plain Layout
33391 $$Extension
33392 \end_layout
33393
33394 \end_inset
33395
33396  The file extension (including the dot).
33397 \end_layout
33398
33399 \begin_layout Description
33400 \begin_inset Flex Code
33401 status collapsed
33402
33403 \begin_layout Plain Layout
33404 $$pngOrjpg
33405 \end_layout
33406
33407 \end_inset
33408
33409  This will be the string 
33410 \begin_inset Quotes eld
33411 \end_inset
33412
33413 jpg
33414 \begin_inset Quotes erd
33415 \end_inset
33416
33417  if the file is in JPEG format, otherwise it will be the string 
33418 \begin_inset Quotes eld
33419 \end_inset
33420
33421 png
33422 \begin_inset Quotes erd
33423 \end_inset
33424
33425 .
33426  This is useful to avoid uneeded conversions for output formats that support
33427  both PNG and JPEG fomats.
33428  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
33429  output
33430  format.
33431 \end_layout
33432
33433 \begin_layout Description
33434 \begin_inset Flex Code
33435 status collapsed
33436
33437 \begin_layout Plain Layout
33438 $$FName
33439 \end_layout
33440
33441 \end_inset
33442
33443  The filename of the file specified in the external material dialog.
33444  This is either an absolute name, or it is relative to the \SpecialChar LyX
33445  document.
33446 \end_layout
33447
33448 \begin_layout Description
33449 \begin_inset Flex Code
33450 status collapsed
33451
33452 \begin_layout Plain Layout
33453 $$FPath
33454 \end_layout
33455
33456 \end_inset
33457
33458  The path part of 
33459 \begin_inset Flex Code
33460 status collapsed
33461
33462 \begin_layout Plain Layout
33463 $$FName
33464 \end_layout
33465
33466 \end_inset
33467
33468  (absolute name or relative to the \SpecialChar LyX
33469  document).
33470 \end_layout
33471
33472 \begin_layout Description
33473 \begin_inset Flex Code
33474 status collapsed
33475
33476 \begin_layout Plain Layout
33477 $$RelPathMaster
33478 \end_layout
33479
33480 \end_inset
33481
33482  The file path, relative to the master \SpecialChar LyX
33483  document.
33484 \end_layout
33485
33486 \begin_layout Description
33487 \begin_inset Flex Code
33488 status collapsed
33489
33490 \begin_layout Plain Layout
33491 $$RelPathParent
33492 \end_layout
33493
33494 \end_inset
33495
33496  The file path, relative to the \SpecialChar LyX
33497  document.
33498 \end_layout
33499
33500 \begin_layout Description
33501 \begin_inset Flex Code
33502 status collapsed
33503
33504 \begin_layout Plain Layout
33505 $$Sysdir
33506 \end_layout
33507
33508 \end_inset
33509
33510  This macro will expand to the absolute path of the system directory.
33511  This is typically used to point to the various helper scripts that are
33512  bundled with \SpecialChar LyX
33513 .
33514 \end_layout
33515
33516 \begin_layout Description
33517 \begin_inset Flex Code
33518 status collapsed
33519
33520 \begin_layout Plain Layout
33521 $$Tempname
33522 \end_layout
33523
33524 \end_inset
33525
33526  A name and full path to a temporary file which will be automatically deleted
33527  whenever the containing document is closed, or the external material insertion
33528  deleted.
33529 \end_layout
33530
33531 \begin_layout Standard
33532 All path macros contain a trailing directory separator, so you can construct
33533  e.
33534 \begin_inset space \thinspace{}
33535 \end_inset
33536
33537 g.
33538 \begin_inset space \space{}
33539 \end_inset
33540
33541 the absolute filename with 
33542 \begin_inset Flex Code
33543 status collapsed
33544
33545 \begin_layout Plain Layout
33546 $$AbsPath$$Basename$$Extension
33547 \end_layout
33548
33549 \end_inset
33550
33551 .
33552 \end_layout
33553
33554 \begin_layout Standard
33555 The macros above are substituted in all commands unless otherwise noted.
33556  The command 
33557 \begin_inset Flex Code
33558 status collapsed
33559
33560 \begin_layout Plain Layout
33561 Product
33562 \end_layout
33563
33564 \end_inset
33565
33566  supports additionally the following substitutions if they are enabled by
33567  the 
33568 \begin_inset Flex Code
33569 status collapsed
33570
33571 \begin_layout Plain Layout
33572 Transform
33573 \end_layout
33574
33575 \end_inset
33576
33577  and 
33578 \begin_inset Flex Code
33579 status collapsed
33580
33581 \begin_layout Plain Layout
33582 TransformCommand
33583 \end_layout
33584
33585 \end_inset
33586
33587  commands:
33588 \end_layout
33589
33590 \begin_layout Description
33591 \begin_inset Flex Code
33592 status collapsed
33593
33594 \begin_layout Plain Layout
33595 $$ResizeFront
33596 \end_layout
33597
33598 \end_inset
33599
33600  The front part of the resize command.
33601 \end_layout
33602
33603 \begin_layout Description
33604 \begin_inset Flex Code
33605 status collapsed
33606
33607 \begin_layout Plain Layout
33608 $$ResizeBack
33609 \end_layout
33610
33611 \end_inset
33612
33613  The back part of the resize command.
33614 \end_layout
33615
33616 \begin_layout Description
33617 \begin_inset Flex Code
33618 status collapsed
33619
33620 \begin_layout Plain Layout
33621 $$RotateFront
33622 \end_layout
33623
33624 \end_inset
33625
33626  The front part of the rotation command.
33627 \end_layout
33628
33629 \begin_layout Description
33630 \begin_inset Flex Code
33631 status collapsed
33632
33633 \begin_layout Plain Layout
33634 $$RotateBack
33635 \end_layout
33636
33637 \end_inset
33638
33639  The back part of the rotation command.
33640 \end_layout
33641
33642 \begin_layout Standard
33643 The value string of the 
33644 \begin_inset Flex Code
33645 status collapsed
33646
33647 \begin_layout Plain Layout
33648 Option
33649 \end_layout
33650
33651 \end_inset
33652
33653  command supports additionally the following substitutions if they are enabled
33654  by the 
33655 \begin_inset Flex Code
33656 status collapsed
33657
33658 \begin_layout Plain Layout
33659 Transform
33660 \end_layout
33661
33662 \end_inset
33663
33664  and 
33665 \begin_inset Flex Code
33666 status collapsed
33667
33668 \begin_layout Plain Layout
33669 TransformOption
33670 \end_layout
33671
33672 \end_inset
33673
33674  commands:
33675 \end_layout
33676
33677 \begin_layout Description
33678 \begin_inset Flex Code
33679 status collapsed
33680
33681 \begin_layout Plain Layout
33682 $$Clip
33683 \end_layout
33684
33685 \end_inset
33686
33687  The clip option.
33688 \end_layout
33689
33690 \begin_layout Description
33691 \begin_inset Flex Code
33692 status collapsed
33693
33694 \begin_layout Plain Layout
33695 $$Extra
33696 \end_layout
33697
33698 \end_inset
33699
33700  The extra option.
33701 \end_layout
33702
33703 \begin_layout Description
33704 \begin_inset Flex Code
33705 status collapsed
33706
33707 \begin_layout Plain Layout
33708 $$Resize
33709 \end_layout
33710
33711 \end_inset
33712
33713  The resize option.
33714 \end_layout
33715
33716 \begin_layout Description
33717 \begin_inset Flex Code
33718 status collapsed
33719
33720 \begin_layout Plain Layout
33721 $$Rotate
33722 \end_layout
33723
33724 \end_inset
33725
33726  The rotation option.
33727 \end_layout
33728
33729 \begin_layout Standard
33730 You may ask why there are so many path macros.
33731  There are mainly two reasons:
33732 \end_layout
33733
33734 \begin_layout Enumerate
33735 Relative and absolute file names should remain relative or absolute, respectivel
33736 y.
33737  Users may have reasons to prefer either form.
33738  Relative names are useful for portable documents that should work on different
33739  machines, for example.
33740  Absolute names may be required by some programs.
33741 \end_layout
33742
33743 \begin_layout Enumerate
33744 \SpecialChar LaTeX
33745  treats relative file names differently than \SpecialChar LyX
33746  and other programs in nested
33747  included files.
33748  For \SpecialChar LyX
33749 , a relative file name is always relative to the document that contains
33750  the file name.
33751  For \SpecialChar LaTeX
33752 , it is always relative to the master document.
33753  These two definitions are identical if you have only one document, but
33754  differ if you have a master document that includes part documents.
33755  That means that relative filenames must be transformed when presented to
33756  \SpecialChar LaTeX
33757 .
33758  Fortunately \SpecialChar LyX
33759  does this automatically for you if you choose the right macros.
33760 \end_layout
33761
33762 \begin_layout Standard
33763 So which path macro should be used in new template definitions? The rule
33764  is not difficult:
33765 \end_layout
33766
33767 \begin_layout Itemize
33768 Use 
33769 \begin_inset Flex Code
33770 status collapsed
33771
33772 \begin_layout Plain Layout
33773 $$AbsPath
33774 \end_layout
33775
33776 \end_inset
33777
33778  if an absolute path is required.
33779 \end_layout
33780
33781 \begin_layout Itemize
33782 Use 
33783 \begin_inset Flex Code
33784 status collapsed
33785
33786 \begin_layout Plain Layout
33787 $$AbsOrRelPathMaster
33788 \end_layout
33789
33790 \end_inset
33791
33792  if the substituted string is some kind of \SpecialChar LaTeX
33793  input.
33794 \end_layout
33795
33796 \begin_layout Itemize
33797 Else use 
33798 \begin_inset Flex Code
33799 status collapsed
33800
33801 \begin_layout Plain Layout
33802 $$AbsOrRelPathParent
33803 \end_layout
33804
33805 \end_inset
33806
33807  in order to preserve the user's choice.
33808 \end_layout
33809
33810 \begin_layout Standard
33811 There are special cases where this rule does not work and e.
33812 \begin_inset space \thinspace{}
33813 \end_inset
33814
33815 g.
33816 \begin_inset space \space{}
33817 \end_inset
33818
33819 relative names are needed, but normally it will work just fine.
33820  One example for such a case is the command 
33821 \begin_inset Flex Code
33822 status collapsed
33823
33824 \begin_layout Plain Layout
33825 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
33826 \end_layout
33827
33828 \end_inset
33829
33830  in the XFig template above: We can't use the absolute name because the
33831  copier for 
33832 \begin_inset Flex Code
33833 status collapsed
33834
33835 \begin_layout Plain Layout
33836 .pstex_t
33837 \end_layout
33838
33839 \end_inset
33840
33841  files needs the relative name in order to rewrite the file content.
33842 \end_layout
33843
33844 \begin_layout Section
33845 Security discussion
33846 \begin_inset CommandInset label
33847 LatexCommand label
33848 name "sec:Security-discussion"
33849
33850 \end_inset
33851
33852
33853 \end_layout
33854
33855 \begin_layout Standard
33856 The external material feature interfaces with a lot of external programs
33857  and does so automatically, so we have to consider the security implications
33858  of this.
33859  In particular, since you have the option of including your own filenames
33860  and/or parameter strings and those are expanded into a command, it seems
33861  that it would be possible to create a malicious document which executes
33862  arbitrary commands when a user views or prints the document.
33863  This is something we definitely want to avoid.
33864 \end_layout
33865
33866 \begin_layout Standard
33867 However, since the external program commands are specified in the template
33868  configuration file only, there are no security issues if \SpecialChar LyX
33869  is properly configure
33870 d with safe templates only.
33871  This is so because the external programs are invoked with the 
33872 \begin_inset Flex Code
33873 status collapsed
33874
33875 \begin_layout Plain Layout
33876 execvp
33877 \end_layout
33878
33879 \end_inset
33880
33881 -system call rather than the 
33882 \begin_inset Flex Code
33883 status collapsed
33884
33885 \begin_layout Plain Layout
33886 system
33887 \end_layout
33888
33889 \end_inset
33890
33891  system-call, so it's not possible to execute arbitrary commands from the
33892  filename or parameter section via the shell.
33893 \end_layout
33894
33895 \begin_layout Standard
33896 This also implies that you are restricted in what command strings you can
33897  use in the external material templates.
33898  In particular, pipes and redirection are not readily available.
33899  This has to be so if \SpecialChar LyX
33900  should remain safe.
33901  If you want to use some of the shell features, you should write a safe
33902  script to do this in a controlled manner, and then invoke the script from
33903  the command string.
33904  
33905 \end_layout
33906
33907 \begin_layout Standard
33908 It is possible to design a template that interacts directly with the shell,
33909  but since this would allow a malicious user to execute arbitrary commands
33910  by writing clever filenames and/or parameters, we generally recommend that
33911  you only use safe scripts that work with the 
33912 \begin_inset Flex Code
33913 status collapsed
33914
33915 \begin_layout Plain Layout
33916 execvp
33917 \end_layout
33918
33919 \end_inset
33920
33921  system call in a controlled manner.
33922  Of course, for use in a controlled environment, it can be tempting to just
33923  fall back to use ordinary shell scripts.
33924  If you do so, be aware that you 
33925 \emph on
33926 will
33927 \emph default
33928  provide an easily exploitable security hole in your system.
33929  Of course it stands to reason that such unsafe templates will never be
33930  included in the standard \SpecialChar LyX
33931  distribution, although we do encourage people
33932  to submit new templates in the open source tradition.
33933  But \SpecialChar LyX
33934  as shipped from the official distribution channels will never have
33935  unsafe templates.
33936 \end_layout
33937
33938 \begin_layout Standard
33939 Including external material provides a lot of power, and you have to be
33940  careful not to introduce security hazards with this power.
33941  A subtle error in a single line in an innocent looking script can open
33942  the door to huge security problems.
33943  So if you do not fully understand the issues, we recommend that you consult
33944  a knowledgeable security professional or the \SpecialChar LyX
33945  development team if you have
33946  any questions about whether a given template is safe or not.
33947  And do this before you use it in an uncontrolled environment.
33948 \end_layout
33949
33950 \begin_layout Chapter
33951 \start_of_appendix
33952 List of supported \SpecialChar LyX
33953  functions to be used in layouts
33954 \begin_inset CommandInset label
33955 LatexCommand label
33956 name "chap:List-of-functions"
33957
33958 \end_inset
33959
33960
33961 \end_layout
33962
33963 \begin_layout Standard
33964 \align center
33965 \begin_inset Tabular
33966 <lyxtabular version="3" rows="11" columns="8">
33967 <features tabularvalignment="middle">
33968 <column alignment="left" valignment="top">
33969 <column alignment="left" valignment="top">
33970 <column alignment="left" valignment="top">
33971 <column alignment="left" valignment="top">
33972 <column alignment="left" valignment="top">
33973 <column alignment="left" valignment="top">
33974 <column alignment="left" valignment="top">
33975 <column alignment="left" valignment="top">
33976 <row>
33977 <cell alignment="left" valignment="top" usebox="none">
33978 \begin_inset Text
33979
33980 \begin_layout Plain Layout
33981 accents
33982 \end_layout
33983
33984 \end_inset
33985 </cell>
33986 <cell alignment="left" valignment="top" usebox="none">
33987 \begin_inset Text
33988
33989 \begin_layout Plain Layout
33990 booktabs
33991 \end_layout
33992
33993 \end_inset
33994 </cell>
33995 <cell alignment="left" valignment="top" usebox="none">
33996 \begin_inset Text
33997
33998 \begin_layout Plain Layout
33999 feyn
34000 \end_layout
34001
34002 \end_inset
34003 </cell>
34004 <cell alignment="left" valignment="top" usebox="none">
34005 \begin_inset Text
34006
34007 \begin_layout Plain Layout
34008 listings
34009 \end_layout
34010
34011 \end_inset
34012 </cell>
34013 <cell alignment="center" valignment="top" usebox="none">
34014 \begin_inset Text
34015
34016 \begin_layout Plain Layout
34017 natbib
34018 \end_layout
34019
34020 \end_inset
34021 </cell>
34022 <cell alignment="center" valignment="top" usebox="none">
34023 \begin_inset Text
34024
34025 \begin_layout Plain Layout
34026 rotfloat
34027 \end_layout
34028
34029 \end_inset
34030 </cell>
34031 <cell alignment="center" valignment="top" usebox="none">
34032 \begin_inset Text
34033
34034 \begin_layout Plain Layout
34035 tfrupee
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 wasysym
34045 \end_layout
34046
34047 \end_inset
34048 </cell>
34049 </row>
34050 <row>
34051 <cell alignment="left" valignment="top" usebox="none">
34052 \begin_inset Text
34053
34054 \begin_layout Plain Layout
34055 amsbsy
34056 \end_layout
34057
34058 \end_inset
34059 </cell>
34060 <cell alignment="left" valignment="top" usebox="none">
34061 \begin_inset Text
34062
34063 \begin_layout Plain Layout
34064 calc
34065 \end_layout
34066
34067 \end_inset
34068 </cell>
34069 <cell alignment="left" valignment="top" usebox="none">
34070 \begin_inset Text
34071
34072 \begin_layout Plain Layout
34073 fixltx2e
34074 \end_layout
34075
34076 \end_inset
34077 </cell>
34078 <cell alignment="left" valignment="top" usebox="none">
34079 \begin_inset Text
34080
34081 \begin_layout Plain Layout
34082 longtable
34083 \end_layout
34084
34085 \end_inset
34086 </cell>
34087 <cell alignment="center" valignment="top" usebox="none">
34088 \begin_inset Text
34089
34090 \begin_layout Plain Layout
34091 nomencl
34092 \end_layout
34093
34094 \end_inset
34095 </cell>
34096 <cell alignment="center" valignment="top" usebox="none">
34097 \begin_inset Text
34098
34099 \begin_layout Plain Layout
34100 rsphrase
34101 \end_layout
34102
34103 \end_inset
34104 </cell>
34105 <cell alignment="center" valignment="top" usebox="none">
34106 \begin_inset Text
34107
34108 \begin_layout Plain Layout
34109 tipa
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 wrapfig
34119 \end_layout
34120
34121 \end_inset
34122 </cell>
34123 </row>
34124 <row>
34125 <cell alignment="left" valignment="top" usebox="none">
34126 \begin_inset Text
34127
34128 \begin_layout Plain Layout
34129 amscd
34130 \end_layout
34131
34132 \end_inset
34133 </cell>
34134 <cell alignment="left" valignment="top" usebox="none">
34135 \begin_inset Text
34136
34137 \begin_layout Plain Layout
34138 CJK
34139 \end_layout
34140
34141 \end_inset
34142 </cell>
34143 <cell alignment="left" valignment="top" usebox="none">
34144 \begin_inset Text
34145
34146 \begin_layout Plain Layout
34147 float
34148 \end_layout
34149
34150 \end_inset
34151 </cell>
34152 <cell alignment="left" valignment="top" usebox="none">
34153 \begin_inset Text
34154
34155 \begin_layout Plain Layout
34156 lyxskak
34157 \end_layout
34158
34159 \end_inset
34160 </cell>
34161 <cell alignment="center" valignment="top" usebox="none">
34162 \begin_inset Text
34163
34164 \begin_layout Plain Layout
34165 pdfcolmk
34166 \end_layout
34167
34168 \end_inset
34169 </cell>
34170 <cell alignment="center" valignment="top" usebox="none">
34171 \begin_inset Text
34172
34173 \begin_layout Plain Layout
34174 setspace
34175 \end_layout
34176
34177 \end_inset
34178 </cell>
34179 <cell alignment="center" valignment="top" usebox="none">
34180 \begin_inset Text
34181
34182 \begin_layout Plain Layout
34183 tipx
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 xargs
34193 \end_layout
34194
34195 \end_inset
34196 </cell>
34197 </row>
34198 <row>
34199 <cell alignment="left" valignment="top" usebox="none">
34200 \begin_inset Text
34201
34202 \begin_layout Plain Layout
34203 amsmath
34204 \end_layout
34205
34206 \end_inset
34207 </cell>
34208 <cell alignment="left" valignment="top" usebox="none">
34209 \begin_inset Text
34210
34211 \begin_layout Plain Layout
34212 color
34213 \end_layout
34214
34215 \end_inset
34216 </cell>
34217 <cell alignment="left" valignment="top" usebox="none">
34218 \begin_inset Text
34219
34220 \begin_layout Plain Layout
34221 framed
34222 \end_layout
34223
34224 \end_inset
34225 </cell>
34226 <cell alignment="left" valignment="top" usebox="none">
34227 \begin_inset Text
34228
34229 \begin_layout Plain Layout
34230 makeidx
34231 \end_layout
34232
34233 \end_inset
34234 </cell>
34235 <cell alignment="center" valignment="top" usebox="none">
34236 \begin_inset Text
34237
34238 \begin_layout Plain Layout
34239 pdfpages
34240 \end_layout
34241
34242 \end_inset
34243 </cell>
34244 <cell alignment="center" valignment="top" usebox="none">
34245 \begin_inset Text
34246
34247 \begin_layout Plain Layout
34248 shapepar
34249 \end_layout
34250
34251 \end_inset
34252 </cell>
34253 <cell alignment="center" valignment="top" usebox="none">
34254 \begin_inset Text
34255
34256 \begin_layout Plain Layout
34257 tone
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 xcolor
34267 \end_layout
34268
34269 \end_inset
34270 </cell>
34271 </row>
34272 <row>
34273 <cell alignment="left" valignment="top" usebox="none">
34274 \begin_inset Text
34275
34276 \begin_layout Plain Layout
34277 amssymb
34278 \end_layout
34279
34280 \end_inset
34281 </cell>
34282 <cell alignment="left" valignment="top" usebox="none">
34283 \begin_inset Text
34284
34285 \begin_layout Plain Layout
34286 covington
34287 \end_layout
34288
34289 \end_inset
34290 </cell>
34291 <cell alignment="left" valignment="top" usebox="none">
34292 \begin_inset Text
34293
34294 \begin_layout Plain Layout
34295 graphicx
34296 \end_layout
34297
34298 \end_inset
34299 </cell>
34300 <cell alignment="left" valignment="top" usebox="none">
34301 \begin_inset Text
34302
34303 \begin_layout Plain Layout
34304 marvosym
34305 \end_layout
34306
34307 \end_inset
34308 </cell>
34309 <cell alignment="center" valignment="top" usebox="none">
34310 \begin_inset Text
34311
34312 \begin_layout Plain Layout
34313 pifont
34314 \end_layout
34315
34316 \end_inset
34317 </cell>
34318 <cell alignment="center" valignment="top" usebox="none">
34319 \begin_inset Text
34320
34321 \begin_layout Plain Layout
34322 slashed
34323 \end_layout
34324
34325 \end_inset
34326 </cell>
34327 <cell alignment="center" valignment="top" usebox="none">
34328 \begin_inset Text
34329
34330 \begin_layout Plain Layout
34331 txfonts
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 xy
34341 \end_layout
34342
34343 \end_inset
34344 </cell>
34345 </row>
34346 <row>
34347 <cell alignment="left" valignment="top" usebox="none">
34348 \begin_inset Text
34349
34350 \begin_layout Plain Layout
34351 amstext
34352 \end_layout
34353
34354 \end_inset
34355 </cell>
34356 <cell alignment="left" valignment="top" usebox="none">
34357 \begin_inset Text
34358
34359 \begin_layout Plain Layout
34360 csquotes
34361 \end_layout
34362
34363 \end_inset
34364 </cell>
34365 <cell alignment="left" valignment="top" usebox="none">
34366 \begin_inset Text
34367
34368 \begin_layout Plain Layout
34369 hhline
34370 \end_layout
34371
34372 \end_inset
34373 </cell>
34374 <cell alignment="left" valignment="top" usebox="none">
34375 \begin_inset Text
34376
34377 \begin_layout Plain Layout
34378 mathdesign
34379 \end_layout
34380
34381 \end_inset
34382 </cell>
34383 <cell alignment="center" valignment="top" usebox="none">
34384 \begin_inset Text
34385
34386 \begin_layout Plain Layout
34387 pmboxdraw
34388 \end_layout
34389
34390 \end_inset
34391 </cell>
34392 <cell alignment="center" valignment="top" usebox="none">
34393 \begin_inset Text
34394
34395 \begin_layout Plain Layout
34396 soul
34397 \end_layout
34398
34399 \end_inset
34400 </cell>
34401 <cell alignment="center" valignment="top" usebox="none">
34402 \begin_inset Text
34403
34404 \begin_layout Plain Layout
34405 ulem
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 yhmath
34415 \end_layout
34416
34417 \end_inset
34418 </cell>
34419 </row>
34420 <row>
34421 <cell alignment="left" valignment="top" usebox="none">
34422 \begin_inset Text
34423
34424 \begin_layout Plain Layout
34425 amsthm
34426 \end_layout
34427
34428 \end_inset
34429 </cell>
34430 <cell alignment="left" valignment="top" usebox="none">
34431 \begin_inset Text
34432
34433 \begin_layout Plain Layout
34434 dvipost
34435 \end_layout
34436
34437 \end_inset
34438 </cell>
34439 <cell alignment="left" valignment="top" usebox="none">
34440 \begin_inset Text
34441
34442 \begin_layout Plain Layout
34443 hyperref
34444 \end_layout
34445
34446 \end_inset
34447 </cell>
34448 <cell alignment="left" valignment="top" usebox="none">
34449 \begin_inset Text
34450
34451 \begin_layout Plain Layout
34452 mathdots
34453 \end_layout
34454
34455 \end_inset
34456 </cell>
34457 <cell alignment="center" valignment="top" usebox="none">
34458 \begin_inset Text
34459
34460 \begin_layout Plain Layout
34461 polyglossia
34462 \end_layout
34463
34464 \end_inset
34465 </cell>
34466 <cell alignment="center" valignment="top" usebox="none">
34467 \begin_inset Text
34468
34469 \begin_layout Plain Layout
34470 splitidx
34471 \end_layout
34472
34473 \end_inset
34474 </cell>
34475 <cell alignment="center" valignment="top" usebox="none">
34476 \begin_inset Text
34477
34478 \begin_layout Plain Layout
34479 undertilde
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
34489 \end_layout
34490
34491 \end_inset
34492 </cell>
34493 </row>
34494 <row>
34495 <cell alignment="left" valignment="top" usebox="none">
34496 \begin_inset Text
34497
34498 \begin_layout Plain Layout
34499 array
34500 \end_layout
34501
34502 \end_inset
34503 </cell>
34504 <cell alignment="left" valignment="top" usebox="none">
34505 \begin_inset Text
34506
34507 \begin_layout Plain Layout
34508 endnotes
34509 \end_layout
34510
34511 \end_inset
34512 </cell>
34513 <cell alignment="left" valignment="top" usebox="none">
34514 \begin_inset Text
34515
34516 \begin_layout Plain Layout
34517 ifsym
34518 \end_layout
34519
34520 \end_inset
34521 </cell>
34522 <cell alignment="left" valignment="top" usebox="none">
34523 \begin_inset Text
34524
34525 \begin_layout Plain Layout
34526 mathrsfs
34527 \end_layout
34528
34529 \end_inset
34530 </cell>
34531 <cell alignment="center" valignment="top" usebox="none">
34532 \begin_inset Text
34533
34534 \begin_layout Plain Layout
34535 prettyref
34536 \end_layout
34537
34538 \end_inset
34539 </cell>
34540 <cell alignment="center" valignment="top" usebox="none">
34541 \begin_inset Text
34542
34543 \begin_layout Plain Layout
34544 subfig
34545 \end_layout
34546
34547 \end_inset
34548 </cell>
34549 <cell alignment="center" valignment="top" usebox="none">
34550 \begin_inset Text
34551
34552 \begin_layout Plain Layout
34553 units
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
34563 \end_layout
34564
34565 \end_inset
34566 </cell>
34567 </row>
34568 <row>
34569 <cell alignment="left" valignment="top" usebox="none">
34570 \begin_inset Text
34571
34572 \begin_layout Plain Layout
34573 ascii
34574 \end_layout
34575
34576 \end_inset
34577 </cell>
34578 <cell alignment="left" valignment="top" usebox="none">
34579 \begin_inset Text
34580
34581 \begin_layout Plain Layout
34582 enumitem
34583 \end_layout
34584
34585 \end_inset
34586 </cell>
34587 <cell alignment="left" valignment="top" usebox="none">
34588 \begin_inset Text
34589
34590 \begin_layout Plain Layout
34591 ifthen
34592 \end_layout
34593
34594 \end_inset
34595 </cell>
34596 <cell alignment="left" valignment="top" usebox="none">
34597 \begin_inset Text
34598
34599 \begin_layout Plain Layout
34600 mhchem
34601 \end_layout
34602
34603 \end_inset
34604 </cell>
34605 <cell alignment="center" valignment="top" usebox="none">
34606 \begin_inset Text
34607
34608 \begin_layout Plain Layout
34609 pxfonts
34610 \end_layout
34611
34612 \end_inset
34613 </cell>
34614 <cell alignment="center" valignment="top" usebox="none">
34615 \begin_inset Text
34616
34617 \begin_layout Plain Layout
34618 subscript
34619 \end_layout
34620
34621 \end_inset
34622 </cell>
34623 <cell alignment="center" valignment="top" usebox="none">
34624 \begin_inset Text
34625
34626 \begin_layout Plain Layout
34627 url
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
34637 \end_layout
34638
34639 \end_inset
34640 </cell>
34641 </row>
34642 <row>
34643 <cell alignment="left" valignment="top" usebox="none">
34644 \begin_inset Text
34645
34646 \begin_layout Plain Layout
34647 bbding
34648 \end_layout
34649
34650 \end_inset
34651 </cell>
34652 <cell alignment="left" valignment="top" usebox="none">
34653 \begin_inset Text
34654
34655 \begin_layout Plain Layout
34656 esint
34657 \end_layout
34658
34659 \end_inset
34660 </cell>
34661 <cell alignment="left" valignment="top" usebox="none">
34662 \begin_inset Text
34663
34664 \begin_layout Plain Layout
34665 jurabib
34666 \end_layout
34667
34668 \end_inset
34669 </cell>
34670 <cell alignment="left" valignment="top" usebox="none">
34671 \begin_inset Text
34672
34673 \begin_layout Plain Layout
34674 multicol
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 refstyle
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 textcomp
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 varioref
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
34711 \end_layout
34712
34713 \end_inset
34714 </cell>
34715 </row>
34716 <row>
34717 <cell alignment="center" valignment="top" usebox="none">
34718 \begin_inset Text
34719
34720 \begin_layout Plain Layout
34721 bm
34722 \end_layout
34723
34724 \end_inset
34725 </cell>
34726 <cell alignment="center" valignment="top" usebox="none">
34727 \begin_inset Text
34728
34729 \begin_layout Plain Layout
34730 fancybox
34731 \end_layout
34732
34733 \end_inset
34734 </cell>
34735 <cell alignment="center" valignment="top" usebox="none">
34736 \begin_inset Text
34737
34738 \begin_layout Plain Layout
34739 latexsym
34740 \end_layout
34741
34742 \end_inset
34743 </cell>
34744 <cell alignment="center" valignment="top" usebox="none">
34745 \begin_inset Text
34746
34747 \begin_layout Plain Layout
34748 multirow
34749 \end_layout
34750
34751 \end_inset
34752 </cell>
34753 <cell alignment="center" valignment="top" usebox="none">
34754 \begin_inset Text
34755
34756 \begin_layout Plain Layout
34757 rotating
34758 \end_layout
34759
34760 \end_inset
34761 </cell>
34762 <cell alignment="center" valignment="top" usebox="none">
34763 \begin_inset Text
34764
34765 \begin_layout Plain Layout
34766 textgreek
34767 \end_layout
34768
34769 \end_inset
34770 </cell>
34771 <cell alignment="center" valignment="top" usebox="none">
34772 \begin_inset Text
34773
34774 \begin_layout Plain Layout
34775 verbatim
34776 \end_layout
34777
34778 \end_inset
34779 </cell>
34780 <cell alignment="center" valignment="top" usebox="none">
34781 \begin_inset Text
34782
34783 \begin_layout Plain Layout
34784
34785 \end_layout
34786
34787 \end_inset
34788 </cell>
34789 </row>
34790 </lyxtabular>
34791
34792 \end_inset
34793
34794
34795 \end_layout
34796
34797 \begin_layout Chapter
34798 Names of available colors to be used in layouts
34799 \begin_inset CommandInset label
34800 LatexCommand label
34801 name "chap:Names-of-colors"
34802
34803 \end_inset
34804
34805
34806 \end_layout
34807
34808 \begin_layout Standard
34809 The colors listed below are the standard colors and those that you can adjust
34810  in the \SpecialChar LyX
34811  preferences.
34812 \end_layout
34813
34814 \begin_layout Section
34815 Color functions
34816 \end_layout
34817
34818 \begin_layout Standard
34819 The following are no real colors, but rather act on color definitions:
34820 \end_layout
34821
34822 \begin_layout Description
34823 ignore The color is ignored
34824 \end_layout
34825
34826 \begin_layout Description
34827 inherit The color is inherited
34828 \end_layout
34829
34830 \begin_layout Description
34831 none
34832 \family roman
34833 \series medium
34834 \shape up
34835 \size normal
34836 \emph off
34837 \bar no
34838 \strikeout off
34839 \uuline off
34840 \uwave off
34841 \noun off
34842 \color none
34843  No particular color – clear or default
34844 \end_layout
34845
34846 \begin_layout Section
34847 Static colors
34848 \end_layout
34849
34850 \begin_layout Standard
34851 These are fixed colors that cannot be customized
34852 \change_inserted -712698321 1607683177
34853 .
34854  Please do 
34855 \emph on
34856 not
34857 \emph default
34858  use these colors in layout definitions, since they will not work well with
34859  some color themes (such as dark themes)
34860 \change_unchanged
34861 :
34862 \end_layout
34863
34864 \begin_layout Description
34865 black
34866 \end_layout
34867
34868 \begin_layout Description
34869 white
34870 \end_layout
34871
34872 \begin_layout Description
34873 blue
34874 \end_layout
34875
34876 \begin_layout Description
34877 brown
34878 \end_layout
34879
34880 \begin_layout Description
34881 cyan
34882 \end_layout
34883
34884 \begin_layout Description
34885 darkgray
34886 \end_layout
34887
34888 \begin_layout Description
34889 gray
34890 \end_layout
34891
34892 \begin_layout Description
34893 green
34894 \end_layout
34895
34896 \begin_layout Description
34897 lightgray
34898 \end_layout
34899
34900 \begin_layout Description
34901 lime
34902 \end_layout
34903
34904 \begin_layout Description
34905 magenta
34906 \end_layout
34907
34908 \begin_layout Description
34909 olive
34910 \end_layout
34911
34912 \begin_layout Description
34913 orange
34914 \end_layout
34915
34916 \begin_layout Description
34917 pink
34918 \end_layout
34919
34920 \begin_layout Description
34921 purple
34922 \end_layout
34923
34924 \begin_layout Description
34925 red
34926 \end_layout
34927
34928 \begin_layout Description
34929 teal
34930 \end_layout
34931
34932 \begin_layout Description
34933 violet
34934 \end_layout
34935
34936 \begin_layout Description
34937 yellow
34938 \end_layout
34939
34940 \begin_layout Section
34941 Dynamic colors
34942 \end_layout
34943
34944 \begin_layout Standard
34945 These are the colors allocated to specific elements in 
34946 \begin_inset Info
34947 type  "menu"
34948 arg   "dialog-show prefs"
34949 \end_inset
34950
34951 :
34952 \end_layout
34953
34954 \begin_layout Description
34955 added_space Added space color
34956 \end_layout
34957
34958 \begin_layout Description
34959 addedtext Added text color
34960 \end_layout
34961
34962 \begin_layout Description
34963 appendix Appendix marker color
34964 \end_layout
34965
34966 \begin_layout Description
34967 background Background color
34968 \end_layout
34969
34970 \begin_layout Description
34971 bottomarea Bottom area color
34972 \end_layout
34973
34974 \begin_layout Description
34975 branchlabel Label color for branches
34976 \end_layout
34977
34978 \begin_layout Description
34979 buttonbg Color used for button background
34980 \end_layout
34981
34982 \begin_layout Description
34983 buttonframe Color for inset button frames
34984 \end_layout
34985
34986 \begin_layout Description
34987 buttonhoverbg Color used for button background under focus
34988 \end_layout
34989
34990 \begin_layout Description
34991 changebar Changebar color
34992 \end_layout
34993
34994 \begin_layout Description
34995 changedtextauthor1 Changed text color author 1
34996 \end_layout
34997
34998 \begin_layout Description
34999 changedtextauthor2 Changed text color author 2
35000 \end_layout
35001
35002 \begin_layout Description
35003 changedtextauthor3 Changed text color author 3
35004 \end_layout
35005
35006 \begin_layout Description
35007 changedtextauthor4 Changed text color author 4
35008 \end_layout
35009
35010 \begin_layout Description
35011 changedtextauthor5 Changed text color author 5
35012 \end_layout
35013
35014 \begin_layout Description
35015 collapsible Collapsible insets text color
35016 \end_layout
35017
35018 \begin_layout Description
35019 collapsibleframe Collapsible insets framecolor
35020 \end_layout
35021
35022 \begin_layout Description
35023 command Text color for command insets
35024 \end_layout
35025
35026 \begin_layout Description
35027 commandbg Background color for command insets
35028 \end_layout
35029
35030 \begin_layout Description
35031 commandframe Frame color for command insets
35032 \end_layout
35033
35034 \begin_layout Description
35035 comment Label color for comments
35036 \end_layout
35037
35038 \begin_layout Description
35039 commentbg Background color of comments
35040 \end_layout
35041
35042 \begin_layout Description
35043 cursor Cursor color
35044 \end_layout
35045
35046 \begin_layout Description
35047 deletedtext Deleted text color
35048 \end_layout
35049
35050 \begin_layout Description
35051 deletedtextmodifier Deleted text modifying color
35052 \end_layout
35053
35054 \begin_layout Description
35055 depthbar Color for the depth bars in the margin
35056 \end_layout
35057
35058 \begin_layout Description
35059 eolmarker End of line marker color
35060 \end_layout
35061
35062 \begin_layout Description
35063 error Color of the \SpecialChar LaTeX
35064  error box
35065 \end_layout
35066
35067 \begin_layout Description
35068 footlabel Label color for footnotes
35069 \end_layout
35070
35071 \begin_layout Description
35072 foreground Foreground color
35073 \end_layout
35074
35075 \begin_layout Description
35076 graphicsbg Graphics inset background color
35077 \end_layout
35078
35079 \begin_layout Description
35080 greyedoutbg Background color of greyedout inset
35081 \end_layout
35082
35083 \begin_layout Description
35084 greyedoutlabel Label color for greyedout insets
35085 \end_layout
35086
35087 \begin_layout Description
35088 greyedouttext Color for greyedout inset text
35089 \end_layout
35090
35091 \begin_layout Description
35092 indexlabel Label color for index insets
35093 \end_layout
35094
35095 \begin_layout Description
35096 inlinecompletion Inline completion color
35097 \end_layout
35098
35099 \begin_layout Description
35100 insetbg Inset marker background color
35101 \end_layout
35102
35103 \begin_layout Description
35104 insetframe Inset marker frame color
35105 \end_layout
35106
35107 \begin_layout Description
35108 language Color for marking foreign language words
35109 \end_layout
35110
35111 \begin_layout Description
35112 latex Text color in \SpecialChar LaTeX
35113  mode
35114 \end_layout
35115
35116 \begin_layout Description
35117 listingsbg Background color of listings inset
35118 \end_layout
35119
35120 \begin_layout Description
35121 marginlabel Label color for margin notes
35122 \end_layout
35123
35124 \begin_layout Description
35125 math Math inset text color
35126 \end_layout
35127
35128 \begin_layout Description
35129 mathbg Math inset background color
35130 \end_layout
35131
35132 \begin_layout Description
35133 mathcorners Math inset frame color not under focus
35134 \end_layout
35135
35136 \begin_layout Description
35137 mathframe Math inset frame color under focus
35138 \end_layout
35139
35140 \begin_layout Description
35141 mathline Math line color
35142 \end_layout
35143
35144 \begin_layout Description
35145 mathmacrobg Macro math inset background color
35146 \end_layout
35147
35148 \begin_layout Description
35149 mathmacroblend Macro math blended color
35150 \end_layout
35151
35152 \begin_layout Description
35153 mathmacroframe Macro math frame color
35154 \end_layout
35155
35156 \begin_layout Description
35157 mathmacrohoverbg Macro math inset background color hovered
35158 \end_layout
35159
35160 \begin_layout Description
35161 mathmacrolabel Macro math label color
35162 \end_layout
35163
35164 \begin_layout Description
35165 mathmacronewarg Macro template color for new parameters
35166 \end_layout
35167
35168 \begin_layout Description
35169 mathmacrooldarg Macro template color for old parameters
35170 \end_layout
35171
35172 \begin_layout Description
35173 newpage New page color
35174 \end_layout
35175
35176 \begin_layout Description
35177 nonunique_inlinecompletion Inline completion color for the non-unique part
35178 \end_layout
35179
35180 \begin_layout Description
35181 note Label color for notes
35182 \end_layout
35183
35184 \begin_layout Description
35185 notebg Background color of notes
35186 \end_layout
35187
35188 \begin_layout Description
35189 pagebreak Page break/line break color
35190 \end_layout
35191
35192 \begin_layout Description
35193 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
35194 \end_layout
35195
35196 \begin_layout Description
35197 phantomtext Text color for phantom insets
35198 \end_layout
35199
35200 \begin_layout Description
35201 preview The color used for previews
35202 \end_layout
35203
35204 \begin_layout Description
35205 previewframe Preview frame color
35206 \end_layout
35207
35208 \begin_layout Description
35209 regexpframe Color for regexp frame
35210 \end_layout
35211
35212 \begin_layout Description
35213 scroll Color that indicates when a row can be scrolled 
35214 \end_layout
35215
35216 \begin_layout Description
35217 selection Background color of selected text
35218 \end_layout
35219
35220 \begin_layout Description
35221 selectiontext Foreground color of selected text
35222 \end_layout
35223
35224 \begin_layout Description
35225 shadedbg Background color of shaded box
35226 \end_layout
35227
35228 \begin_layout Description
35229 special Special chars text color
35230 \end_layout
35231
35232 \begin_layout Description
35233 tabularline Table line color
35234 \end_layout
35235
35236 \begin_layout Description
35237 tabularonoffline Table line color
35238 \change_inserted -712698321 1607682522
35239
35240 \end_layout
35241
35242 \begin_layout Description
35243
35244 \change_inserted -712698321 1607682563
35245 textlabel1 Color 1 of layout and custom inset labels
35246 \end_layout
35247
35248 \begin_layout Description
35249
35250 \change_inserted -712698321 1607682565
35251 textlabel2 Color 2 of layout and custom inset labels
35252 \end_layout
35253
35254 \begin_layout Description
35255
35256 \change_inserted -712698321 1607682568
35257 textlabel3 Color 3 of layout and custom inset labels
35258 \change_unchanged
35259
35260 \end_layout
35261
35262 \begin_layout Description
35263 urllabel Label color for URL insets
35264 \end_layout
35265
35266 \begin_layout Description
35267 urltext Color for URL inset text
35268 \end_layout
35269
35270 \end_body
35271 \end_document