]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Bind search-string-set to Ctrl-F3 in cua
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 606
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children no
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX Configuration Manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX-documentation Customization"
74 \pdf_keywords "LyX, documentation, customization"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen true
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize default
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \use_lineno 0
108 \notefontcolor #0000ff
109 \branch OutDated
110 \selected 0
111 \filename_suffix 0
112 \color #f5fae7 #0a0518
113 \end_branch
114 \index Index
115 \shortcut idx
116 \color #008000
117 \end_index
118 \secnumdepth 3
119 \tocdepth 3
120 \paragraph_separation indent
121 \paragraph_indentation default
122 \is_math_indent 1
123 \math_indentation default
124 \math_numbering_side default
125 \quotes_style english
126 \dynamic_quotes 0
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tablestyle default
131 \tracking_changes true
132 \output_changes false
133 \change_bars false
134 \postpone_fragile_content false
135 \html_math_output 0
136 \html_css_as_file 0
137 \html_be_strict true
138 \docbook_table_output 0
139 \author -970929547 "Thibaut Cuvelier"
140 \author -712698321 "Jürgen Spitzmüller"
141 \author -584632292 "Richard Kimberly Heck"
142 \author -495245474 "Jean-Marc Lasgouttes"
143 \author 5863208 "ab"
144 \author 232239728 "Owner"
145 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
146 \author 1075283030 "Thibaut"
147 \end_header
148
149 \begin_body
150
151 \begin_layout Title
152 Customizing \SpecialChar LyX
153 : Features for the Advanced User
154 \end_layout
155
156 \begin_layout Author
157 by the \SpecialChar LyX
158  Team
159 \begin_inset Foot
160 status collapsed
161
162 \begin_layout Plain Layout
163 If you have comments or error corrections, please send them to the \SpecialChar LyX
164  Documentatio
165 n mailing list, 
166 \begin_inset CommandInset href
167 LatexCommand href
168 target "lyx-docs@lists.lyx.org"
169 type "mailto:"
170 literal "false"
171
172 \end_inset
173
174 .
175  Include 
176 \begin_inset Quotes eld
177 \end_inset
178
179 [Customization]
180 \begin_inset Quotes erd
181 \end_inset
182
183  in the subject header, and please cc the current maintainer of this file,
184  Richard 
185 \change_inserted 5863208 1604930692
186 Kimberly 
187 \change_unchanged
188 Heck <
189 \change_inserted 5863208 1604930729
190 rikiheck@lyx.org
191 \change_deleted 5863208 1604930668
192 rikiheck@lyx.org
193 \change_unchanged
194 >.
195 \end_layout
196
197 \end_inset
198
199
200 \begin_inset Newline newline
201 \end_inset
202
203
204 \begin_inset Newline newline
205 \end_inset
206
207 Version 2.4.x
208 \end_layout
209
210 \begin_layout Standard
211 \begin_inset CommandInset toc
212 LatexCommand tableofcontents
213
214 \end_inset
215
216
217 \end_layout
218
219 \begin_layout Standard
220 \begin_inset Note Note
221 status open
222
223 \begin_layout Plain Layout
224 Please use change tracking when modifying this document.
225  This makes it easier for our translators to recognize things that have
226  been changed, and it helps the maintainer keep up-to-date with what's been
227  done.
228 \end_layout
229
230 \end_inset
231
232
233 \end_layout
234
235 \begin_layout Chapter
236 Introduction
237 \end_layout
238
239 \begin_layout Standard
240 This manual covers the customization features present in \SpecialChar LyX
241 .
242  In it, we discuss issues like keyboard shortcuts, screen previewing options,
243  printer options, sending commands to \SpecialChar LyX
244  via the \SpecialChar LyX
245  Server, internationalization,
246  installing new \SpecialChar LaTeX
247  classes and \SpecialChar LyX
248  layouts, etc.
249  We can't possibly hope to touch on everything you can change—our developers
250  add new features faster than we can document them—but we will explain the
251  most common customizations and hopefully point you in the right direction
252  for some of the more obscure ones.
253 \end_layout
254
255 \begin_layout Standard
256 \begin_inset Branch OutDated
257 inverted 0
258 status collapsed
259
260 \begin_layout Standard
261 Information from previous versions of this document that now seems to be
262  outdated is contained in the OutDated branch of this document.
263  By default, this information will not appear in the \SpecialChar LaTeX
264  output.
265 \end_layout
266
267 \end_inset
268
269
270 \end_layout
271
272 \begin_layout Chapter
273 \SpecialChar LyX
274  configuration files
275 \end_layout
276
277 \begin_layout Standard
278 This chapter aims to help you to find your way through the \SpecialChar LyX
279  configuration
280  files.
281  Before continuing to read this chapter, you should find out where your
282  \SpecialChar LyX
283  library and user directories are by using 
284 \begin_inset Flex Noun
285 status collapsed
286
287 \begin_layout Plain Layout
288 Help\SpecialChar menuseparator
289 About
290 \begin_inset space ~
291 \end_inset
292
293 LyX
294 \end_layout
295
296 \end_inset
297
298 .
299  The library directory is the place where \SpecialChar LyX
300  places its system-wide configuration
301  files; the user directory is where you can place your modified versions.
302  We will call the former 
303 \begin_inset Flex Code
304 status collapsed
305
306 \begin_layout Plain Layout
307 LyXDir
308 \end_layout
309
310 \end_inset
311
312  and the latter 
313 \begin_inset Flex Noun
314 status collapsed
315
316 \begin_layout Plain Layout
317 UserDir
318 \end_layout
319
320 \end_inset
321
322  in the remainder of this document.
323  
324 \end_layout
325
326 \begin_layout Section
327 What's in 
328 \begin_inset Flex Code
329 status collapsed
330
331 \begin_layout Plain Layout
332 LyXDir
333 \end_layout
334
335 \end_inset
336
337 ?
338 \end_layout
339
340 \begin_layout Standard
341 \begin_inset Flex Code
342 status collapsed
343
344 \begin_layout Plain Layout
345 LyXDir
346 \end_layout
347
348 \end_inset
349
350  and its sub-directories contain a number of files 
351 \change_deleted 232239728 1604787780
352 and
353 \change_unchanged
354  that can be used to customize \SpecialChar LyX
355 's behavior.
356  You can change many of these files from within \SpecialChar LyX
357  itself through the 
358 \begin_inset Flex Noun
359 status collapsed
360
361 \begin_layout Plain Layout
362 Tools\SpecialChar menuseparator
363 Preferences
364 \end_layout
365
366 \end_inset
367
368  dialog.
369  Most customization that you will want to do in \SpecialChar LyX
370  is possible through this
371  dialog.
372  However, many other inner aspects of \SpecialChar LyX
373  can be customized by modifying the
374  files in 
375 \begin_inset Flex Code
376 status collapsed
377
378 \begin_layout Plain Layout
379 LyXDir
380 \end_layout
381
382 \end_inset
383
384 .
385  These files fall in different categories, described in the following subsection
386 s.
387 \end_layout
388
389 \begin_layout Subsection
390 Automatically generated files
391 \end_layout
392
393 \begin_layout Standard
394 The files found in 
395 \begin_inset Flex Noun
396 status collapsed
397
398 \begin_layout Plain Layout
399 UserDir
400 \end_layout
401
402 \end_inset
403
404  are generated when you configure \SpecialChar LyX
405 .
406  They contain various default values that are 
407 \change_inserted 5863208 1604919565
408 automatically detected during reconfiguration.
409 \change_deleted 232239728 1604788241
410 guessed by inspection
411 \change_unchanged
412  In general, it is not a good idea to modify them, since they might be overwritt
413 en at any time.
414 \end_layout
415
416 \begin_layout Labeling
417 \labelwidthstring 00.00.0000
418 \begin_inset Flex Code
419 status collapsed
420
421 \begin_layout Plain Layout
422 lyxrc.defaults
423 \end_layout
424
425 \end_inset
426
427  
428 \change_deleted 5863208 1604919950
429
430 \begin_inset Note Note
431 status collapsed
432
433 \begin_layout Plain Layout
434
435 \change_inserted 232239728 1604853928
436 I capitalized the first word in all of these lists.
437  To me it looks better but it really is a stylistic thing, your call.
438  However if you are not going to capitalize them, the english in some needs
439  to be modified to make it read correctly as a sentence.
440 \change_unchanged
441
442 \end_layout
443
444 \end_inset
445
446
447 \change_deleted 232239728 1604853510
448 c
449 \change_inserted 232239728 1604853510
450 C
451 \change_unchanged
452 ontains defaults for various commands.
453 \end_layout
454
455 \begin_layout Labeling
456 \labelwidthstring 00.00.0000
457 \begin_inset Flex Code
458 status collapsed
459
460 \begin_layout Plain Layout
461 packages.lst
462 \end_layout
463
464 \end_inset
465
466  
467 \change_deleted 232239728 1604853512
468 c
469 \change_inserted 232239728 1604853512
470 C
471 \change_unchanged
472 ontains the list of packages that have been recognized by \SpecialChar LyX
473 .
474  It is currently unused by the \SpecialChar LyX
475  program itself, but the information extracted,
476  and more, is made available with 
477 \begin_inset Flex Noun
478 status collapsed
479
480 \begin_layout Plain Layout
481 Help\SpecialChar menuseparator
482 \SpecialChar LaTeX
483
484 \begin_inset space ~
485 \end_inset
486
487 Configuration
488 \end_layout
489
490 \end_inset
491
492 .
493 \end_layout
494
495 \begin_layout Labeling
496 \labelwidthstring 00.00.0000
497 \begin_inset Flex Code
498 status collapsed
499
500 \begin_layout Plain Layout
501 textclass.lst
502 \end_layout
503
504 \end_inset
505
506  
507 \change_deleted 232239728 1604853515
508 t
509 \change_inserted 232239728 1604853515
510 T
511 \change_unchanged
512 he list of text classes that have been found in your 
513 \begin_inset Flex Code
514 status collapsed
515
516 \begin_layout Plain Layout
517 layout/
518 \end_layout
519
520 \end_inset
521
522  directories, along with the associated \SpecialChar LaTeX
523  document class and their description.
524 \end_layout
525
526 \begin_layout Labeling
527 \labelwidthstring 00.00.0000
528 \begin_inset Flex Code
529 status collapsed
530
531 \begin_layout Plain Layout
532 lyxmodules.lst
533 \end_layout
534
535 \end_inset
536
537  
538 \change_deleted 232239728 1604853518
539 t
540 \change_inserted 232239728 1604853518
541 T
542 \change_unchanged
543 he list of layout modules found in your 
544 \begin_inset Flex Code
545 status collapsed
546
547 \begin_layout Plain Layout
548 layout/
549 \end_layout
550
551 \end_inset
552
553  directories
554 \end_layout
555
556 \begin_layout Labeling
557 \labelwidthstring 00.00.0000
558 \begin_inset Flex Code
559 status open
560
561 \begin_layout Plain Layout
562 *files.lst
563 \end_layout
564
565 \end_inset
566
567  
568 \change_deleted 232239728 1604853523
569 l
570 \change_inserted 232239728 1604853523
571 L
572 \change_unchanged
573 ists of various sorts of \SpecialChar LaTeX
574 -related files found on your system
575 \end_layout
576
577 \begin_layout Labeling
578 \labelwidthstring 00.00.0000
579 \begin_inset Flex Code
580 status open
581
582 \begin_layout Plain Layout
583 doc/\SpecialChar LaTeX
584 Config.lyx
585 \end_layout
586
587 \end_inset
588
589  is automatically generated during configuration from the file 
590 \begin_inset Flex Code
591 status collapsed
592
593 \begin_layout Plain Layout
594 \SpecialChar LaTeX
595 Config.lyx.in
596 \end_layout
597
598 \end_inset
599
600 .
601  It contains information on your \SpecialChar LaTeX
602  configuration.
603 \end_layout
604
605 \begin_layout Subsection
606 Directories
607 \end_layout
608
609 \begin_layout Standard
610 The
611 \change_deleted 5863208 1604928729
612 se
613 \change_unchanged
614  
615 \change_inserted 5863208 1604928636
616 following 
617 \change_unchanged
618 directories 
619 \change_inserted 5863208 1604928661
620 in 
621 \change_unchanged
622
623 \begin_inset Flex Code
624 status collapsed
625
626 \begin_layout Plain Layout
627 LyXDir
628 \end_layout
629
630 \end_inset
631
632
633 \change_inserted 5863208 1604928662
634  can be
635 \change_deleted 5863208 1604928642
636 are
637 \change_unchanged
638  duplicated 
639 \change_deleted 5863208 1604928669
640 between 
641 \begin_inset Flex Code
642 status collapsed
643
644 \begin_layout Plain Layout
645 LyXDir
646 \end_layout
647
648 \end_inset
649
650  and
651 \change_inserted 5863208 1604928680
652 in
653 \change_unchanged
654  
655 \begin_inset Flex Code
656 status collapsed
657
658 \begin_layout Plain Layout
659 UserDir
660 \end_layout
661
662 \end_inset
663
664 .
665  If a particular file
666 \change_deleted 232239728 1604794430
667 s
668 \change_unchanged
669  exists in both places, the one in 
670 \begin_inset Flex Code
671 status collapsed
672
673 \begin_layout Plain Layout
674 UserDir
675 \end_layout
676
677 \end_inset
678
679  will be used.
680 \end_layout
681
682 \begin_layout Labeling
683 \labelwidthstring 00.00.0000
684 \begin_inset Flex Code
685 status collapsed
686
687 \begin_layout Plain Layout
688 bind/
689 \end_layout
690
691 \end_inset
692
693  
694 \change_deleted 232239728 1604794460
695 t
696 \change_inserted 232239728 1604794460
697 T
698 \change_unchanged
699 his directory contains files with the extension 
700 \begin_inset Flex Code
701 status collapsed
702
703 \begin_layout Plain Layout
704 .bind
705 \end_layout
706
707 \end_inset
708
709  that define the keybindings used in \SpecialChar LyX
710 .
711  If there exists an internationalized version of the bind file named 
712 \begin_inset Flex Code
713 status collapsed
714
715 \begin_layout Plain Layout
716 $LANG_xxx.bind
717 \end_layout
718
719 \end_inset
720
721 , that will be used first.
722 \end_layout
723
724 \begin_layout Labeling
725 \labelwidthstring 00.00.0000
726 \begin_inset Flex Code
727 status collapsed
728
729 \begin_layout Plain Layout
730 citeengines/
731 \end_layout
732
733 \end_inset
734
735  
736 \change_deleted 232239728 1604794478
737 c
738 \change_inserted 232239728 1604794478
739 C
740 \change_unchanged
741 ontains files with the extension 
742 \begin_inset Flex Code
743 status collapsed
744
745 \begin_layout Plain Layout
746 .citeengine
747 \end_layout
748
749 \end_inset
750
751  which define the diverse citation possibilities (natbib, biblatex etc.).
752  See 
753 \begin_inset CommandInset ref
754 LatexCommand ref
755 reference "subsec:Cite-Engine-Files"
756 plural "false"
757 caps "false"
758 noprefix "false"
759
760 \end_inset
761
762  for details.
763 \end_layout
764
765 \begin_layout Labeling
766 \labelwidthstring 00.00.0000
767 \begin_inset Flex Code
768 status collapsed
769
770 \begin_layout Plain Layout
771 clipart/
772 \end_layout
773
774 \end_inset
775
776  
777 \change_deleted 232239728 1604794483
778 c
779 \change_inserted 232239728 1604794486
780 C
781 \change_unchanged
782 ontains graphics files that can be included in documents.
783  
784 \end_layout
785
786 \begin_layout Labeling
787 \labelwidthstring 00.00.0000
788 \begin_inset Flex Code
789 status collapsed
790
791 \begin_layout Plain Layout
792 doc/
793 \end_layout
794
795 \end_inset
796
797  
798 \change_deleted 232239728 1604794492
799 c
800 \change_inserted 232239728 1604794492
801 C
802 \change_unchanged
803 ontains \SpecialChar LyX
804  documentation files (including the one you are currently reading).
805  The file 
806 \begin_inset Flex Code
807 status collapsed
808
809 \begin_layout Plain Layout
810
811 \change_deleted 232239728 1604794660
812 \SpecialChar LaTeX
813
814 \change_inserted 232239728 1604794661
815 LaTex
816 \change_unchanged
817 Config.lyx
818 \end_layout
819
820 \end_inset
821
822  deserves special attention, as noted above.
823  The internationalized help docs are in subdirectories 
824 \begin_inset Flex Code
825 status collapsed
826
827 \begin_layout Plain Layout
828 doc/xx
829 \end_layout
830
831 \end_inset
832
833  where 
834 \begin_inset Quotes eld
835 \end_inset
836
837 xx
838 \begin_inset Quotes erd
839 \end_inset
840
841  is the ISO language code.
842  See 
843 \begin_inset CommandInset ref
844 LatexCommand ref
845 reference "cha:Internationalizing-LyX"
846
847 \end_inset
848
849  for details.
850 \end_layout
851
852 \begin_layout Labeling
853 \labelwidthstring 00.00.0000
854 \begin_inset Flex Code
855 status collapsed
856
857 \begin_layout Plain Layout
858 examples/
859 \end_layout
860
861 \end_inset
862
863  
864 \change_deleted 232239728 1604794497
865 c
866 \change_inserted 232239728 1604794497
867 C
868 \change_unchanged
869 ontains example files that explain how to use some features.
870  In the file browser, press the 
871 \begin_inset Flex Noun
872 status collapsed
873
874 \begin_layout Plain Layout
875 Examples
876 \end_layout
877
878 \end_inset
879
880  button to get there.
881 \end_layout
882
883 \begin_layout Labeling
884 \labelwidthstring 00.00.0000
885 \begin_inset Flex Code
886 status collapsed
887
888 \begin_layout Plain Layout
889 images/
890 \end_layout
891
892 \end_inset
893
894  
895 \change_deleted 232239728 1604794500
896 c
897 \change_inserted 232239728 1604794500
898 C
899 \change_unchanged
900 ontains image files that are used by the 
901 \begin_inset Flex Noun
902 status collapsed
903
904 \begin_layout Plain Layout
905 Document
906 \end_layout
907
908 \end_inset
909
910  dialog.
911  In addition, it also contains the individual icons used in the toolbar
912  and the banners that can be shown when \SpecialChar LyX
913  is launched.
914 \end_layout
915
916 \begin_layout Labeling
917 \labelwidthstring 00.00.0000
918 \begin_inset Flex Code
919 status collapsed
920
921 \begin_layout Plain Layout
922 kbd/
923 \end_layout
924
925 \end_inset
926
927  
928 \change_deleted 232239728 1604794505
929 c
930 \change_inserted 232239728 1604794505
931 C
932 \change_unchanged
933 ontains keyboard keymapping files.
934  See 
935 \begin_inset CommandInset ref
936 LatexCommand ref
937 reference "sec:International-Keymap-Stuff"
938
939 \end_inset
940
941  for details.
942 \end_layout
943
944 \begin_layout Labeling
945 \labelwidthstring 00.00.0000
946 \begin_inset Flex Code
947 status collapsed
948
949 \begin_layout Plain Layout
950 layouts/
951 \end_layout
952
953 \end_inset
954
955  
956 \change_deleted 232239728 1604794508
957 c
958 \change_inserted 232239728 1604794508
959 C
960 \change_unchanged
961 ontains the text class and module files described in 
962 \begin_inset CommandInset ref
963 LatexCommand ref
964 reference "cha:Installing-New-Document"
965
966 \end_inset
967
968 .
969 \end_layout
970
971 \begin_layout Labeling
972 \labelwidthstring 00.00.0000
973 \begin_inset Flex Code
974 status collapsed
975
976 \begin_layout Plain Layout
977 lyx2lyx
978 \end_layout
979
980 \end_inset
981
982  
983 \change_deleted 232239728 1604794513
984 c
985 \change_inserted 232239728 1604794513
986 C
987 \change_unchanged
988 ontains the 
989 \begin_inset Flex Code
990 status collapsed
991
992 \begin_layout Plain Layout
993 lyx2lyx
994 \end_layout
995
996 \end_inset
997
998  Python scripts used to convert between \SpecialChar LyX
999  versions.
1000  These can be run from the command line if
1001 \change_deleted 232239728 1604794749
1002 , say,
1003 \change_unchanged
1004  you want to batch-convert files.
1005 \end_layout
1006
1007 \begin_layout Labeling
1008 \labelwidthstring 00.00.0000
1009 \begin_inset Flex Code
1010 status collapsed
1011
1012 \begin_layout Plain Layout
1013 scripts/
1014 \end_layout
1015
1016 \end_inset
1017
1018  
1019 \change_deleted 232239728 1604794516
1020 c
1021 \change_inserted 232239728 1604794516
1022 C
1023 \change_unchanged
1024 ontains some files that demonstrate the capabilities of the 
1025 \begin_inset Flex Noun
1026 status collapsed
1027
1028 \begin_layout Plain Layout
1029 External
1030 \begin_inset space ~
1031 \end_inset
1032
1033 Template
1034 \end_layout
1035
1036 \end_inset
1037
1038  feature.
1039  Also contains some scripts used by \SpecialChar LyX
1040  itself.
1041 \end_layout
1042
1043 \begin_layout Labeling
1044 \labelwidthstring 00.00.0000
1045 \begin_inset Flex Code
1046 status collapsed
1047
1048 \begin_layout Plain Layout
1049 templates/
1050 \end_layout
1051
1052 \end_inset
1053
1054  
1055 \change_deleted 232239728 1604794520
1056 c
1057 \change_inserted 232239728 1604794520
1058 C
1059 \change_unchanged
1060 ontains the standard \SpecialChar LyX
1061  template files described in 
1062 \begin_inset CommandInset ref
1063 LatexCommand ref
1064 reference "subsec:Creating-Templates"
1065
1066 \end_inset
1067
1068 .
1069 \end_layout
1070
1071 \begin_layout Labeling
1072 \labelwidthstring 00.00.0000
1073 \begin_inset Flex Code
1074 status collapsed
1075
1076 \begin_layout Plain Layout
1077 ui/
1078 \end_layout
1079
1080 \end_inset
1081
1082  
1083 \change_deleted 232239728 1604794524
1084 c
1085 \change_inserted 232239728 1604794524
1086 C
1087 \change_unchanged
1088 ontains files with the extension 
1089 \begin_inset Flex Code
1090 status collapsed
1091
1092 \begin_layout Plain Layout
1093 .ui
1094 \end_layout
1095
1096 \end_inset
1097
1098  that define the user interface to \SpecialChar LyX
1099 .
1100  That is, the files define which items appear in which menus and the items
1101  appearing on the toolbar.
1102 \end_layout
1103
1104 \begin_layout Labeling
1105 \labelwidthstring 00.00.0000
1106 \begin_inset Flex Code
1107 status collapsed
1108
1109 \begin_layout Plain Layout
1110 xtemplates/
1111 \end_layout
1112
1113 \end_inset
1114
1115  
1116 \change_deleted 232239728 1604794528
1117 c
1118 \change_inserted 232239728 1604794528
1119 C
1120 \change_unchanged
1121 ontains files with the extension 
1122 \begin_inset Flex Code
1123 status collapsed
1124
1125 \begin_layout Plain Layout
1126 .xtemplate
1127 \end_layout
1128
1129 \end_inset
1130
1131  which define the templates for the insertion of external material to a
1132  \SpecialChar LyX
1133  document; see 
1134 \begin_inset CommandInset ref
1135 LatexCommand ref
1136 reference "chap:Including-External-Material"
1137
1138 \end_inset
1139
1140 .
1141 \end_layout
1142
1143 \begin_layout Subsection
1144 Files you don't want to modify
1145 \end_layout
1146
1147 \begin_layout Standard
1148 These files are used internally by \SpecialChar LyX
1149  and you generally do not need to modify
1150  them unless you are a developer.
1151 \end_layout
1152
1153 \begin_layout Labeling
1154 \labelwidthstring 00.00.0000
1155 \begin_inset Flex Code
1156 status collapsed
1157
1158 \begin_layout Plain Layout
1159 CREDITS
1160 \end_layout
1161
1162 \end_inset
1163
1164  
1165 \change_deleted 232239728 1604797616
1166 t
1167 \change_inserted 232239728 1604797616
1168 T
1169 \change_unchanged
1170 his file contains the list of \SpecialChar LyX
1171  developers.
1172  The contents are displayed with the menu entry 
1173 \begin_inset Flex Noun
1174 status collapsed
1175
1176 \begin_layout Plain Layout
1177 Help\SpecialChar menuseparator
1178 About
1179 \begin_inset space ~
1180 \end_inset
1181
1182 LyX
1183 \end_layout
1184
1185 \end_inset
1186
1187 .
1188 \end_layout
1189
1190 \begin_layout Labeling
1191 \labelwidthstring 00.00.0000
1192 \begin_inset Flex Code
1193 status collapsed
1194
1195 \begin_layout Plain Layout
1196 chkconfig.ltx
1197 \end_layout
1198
1199 \end_inset
1200
1201  
1202 \change_deleted 232239728 1604797620
1203 t
1204 \change_inserted 232239728 1604797620
1205 T
1206 \change_unchanged
1207 his is a \SpecialChar LaTeX
1208  script used during the configuration process.
1209  Do not run directly.
1210 \end_layout
1211
1212 \begin_layout Labeling
1213 \labelwidthstring 00.00.0000
1214 \begin_inset Flex Code
1215 status collapsed
1216
1217 \begin_layout Plain Layout
1218 configure.py
1219 \end_layout
1220
1221 \end_inset
1222
1223  
1224 \change_deleted 232239728 1604797624
1225 t
1226 \change_inserted 232239728 1604797624
1227 T
1228 \change_unchanged
1229 his is a Python script that is used to re-configure \SpecialChar LyX
1230 .
1231  It creates configuration files in the directory it was run from.
1232 \end_layout
1233
1234 \begin_layout Subsection
1235 Other files needing a line or two
1236 \end_layout
1237
1238 \begin_layout Labeling
1239 \labelwidthstring 00.00.0000
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 encodings
1245 \end_layout
1246
1247 \end_inset
1248
1249  
1250 \change_deleted 232239728 1604797580
1251 t
1252 \change_inserted 232239728 1604797580
1253 T
1254 \change_unchanged
1255 his contains tables describing how different character encodings can be
1256  mapped to Unicode
1257 \end_layout
1258
1259 \begin_layout Labeling
1260 \labelwidthstring 00.00.0000
1261 \begin_inset Flex Code
1262 status collapsed
1263
1264 \begin_layout Plain Layout
1265 languages
1266 \end_layout
1267
1268 \end_inset
1269
1270  
1271 \change_deleted 232239728 1604797584
1272 t
1273 \change_inserted 232239728 1604797584
1274 T
1275 \change_unchanged
1276 his file contains a list of all the languages currently supported by \SpecialChar LyX
1277 .
1278 \end_layout
1279
1280 \begin_layout Labeling
1281 \labelwidthstring 00.00.0000
1282 \begin_inset Flex Code
1283 status collapsed
1284
1285 \begin_layout Plain Layout
1286 latexfonts
1287 \end_layout
1288
1289 \end_inset
1290
1291  
1292 \change_deleted 232239728 1604797587
1293 c
1294 \change_inserted 232239728 1604797587
1295 C
1296 \change_unchanged
1297 ontains information about the supported fonts.
1298 \end_layout
1299
1300 \begin_layout Labeling
1301 \labelwidthstring 00.00.0000
1302 \begin_inset Flex Code
1303 status collapsed
1304
1305 \begin_layout Plain Layout
1306 layouttranslations
1307 \end_layout
1308
1309 \end_inset
1310
1311  
1312 \change_deleted 232239728 1604797591
1313 t
1314 \change_inserted 232239728 1604797591
1315 T
1316 \change_unchanged
1317 his file contains translations for internationalized paragraph styles (see
1318  
1319 \begin_inset CommandInset ref
1320 LatexCommand ref
1321 reference "subsec:I18n"
1322
1323 \end_inset
1324
1325 ).
1326 \end_layout
1327
1328 \begin_layout Labeling
1329 \labelwidthstring 00.00.0000
1330 \begin_inset Flex Code
1331 status collapsed
1332
1333 \begin_layout Plain Layout
1334 unicodesymbols
1335 \end_layout
1336
1337 \end_inset
1338
1339  
1340 \change_deleted 232239728 1604797594
1341 t
1342 \change_inserted 232239728 1604797594
1343 T
1344 \change_unchanged
1345 his file contains information about Unicode-encoded glyphs and the way they
1346  are supported by \SpecialChar LyX
1347  via \SpecialChar LaTeX
1348 .
1349 \end_layout
1350
1351 \begin_layout Section
1352 Your local configuration directory
1353 \end_layout
1354
1355 \begin_layout Standard
1356 Even if you are using \SpecialChar LyX
1357  as an unprivileged user, you might want to change
1358  \SpecialChar LyX
1359  configuration for your own use.
1360  The 
1361 \begin_inset Flex Code
1362 status collapsed
1363
1364 \begin_layout Plain Layout
1365 UserDir
1366 \end_layout
1367
1368 \end_inset
1369
1370  directory contains all your personal configuration files.
1371  This is the directory described as 
1372 \begin_inset Quotes eld
1373 \end_inset
1374
1375 user directory
1376 \begin_inset Quotes erd
1377 \end_inset
1378
1379  in 
1380 \begin_inset Flex Noun
1381 status collapsed
1382
1383 \begin_layout Plain Layout
1384 Help\SpecialChar menuseparator
1385 About
1386 \begin_inset space ~
1387 \end_inset
1388
1389 LyX
1390 \end_layout
1391
1392 \end_inset
1393
1394 .
1395  This directory is used as a mirror of 
1396 \begin_inset Flex Code
1397 status collapsed
1398
1399 \begin_layout Plain Layout
1400 LyXDir
1401 \end_layout
1402
1403 \end_inset
1404
1405 , which means that every file in 
1406 \begin_inset Flex Code
1407 status collapsed
1408
1409 \begin_layout Plain Layout
1410 UserDir
1411 \end_layout
1412
1413 \end_inset
1414
1415  is a replacement for the corresponding file in 
1416 \begin_inset Flex Code
1417 status collapsed
1418
1419 \begin_layout Plain Layout
1420 LyXDir
1421 \end_layout
1422
1423 \end_inset
1424
1425 .
1426  Any configuration file described in the above sections can be placed either
1427  in the system-wide directory, in which case it will affect all users, or
1428  in your local directory for your own use.
1429 \end_layout
1430
1431 \begin_layout Standard
1432 To make things clearer, let's provide a few examples:
1433 \end_layout
1434
1435 \begin_layout Itemize
1436 The preferences set in the 
1437 \begin_inset Flex Noun
1438 status collapsed
1439
1440 \begin_layout Plain Layout
1441 Tools\SpecialChar menuseparator
1442 Preferences
1443 \end_layout
1444
1445 \end_inset
1446
1447  dialog are saved to a file 
1448 \begin_inset Flex Code
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452 preferences
1453 \end_layout
1454
1455 \end_inset
1456
1457  in 
1458 \begin_inset Flex Code
1459 status collapsed
1460
1461 \begin_layout Plain Layout
1462 UserDir
1463 \end_layout
1464
1465 \end_inset
1466
1467 .
1468 \end_layout
1469
1470 \begin_layout Itemize
1471 When you reconfigure using 
1472 \begin_inset Flex Noun
1473 status collapsed
1474
1475 \begin_layout Plain Layout
1476 Tools\SpecialChar menuseparator
1477 Reconfigure
1478 \end_layout
1479
1480 \end_inset
1481
1482 , \SpecialChar LyX
1483  runs the 
1484 \begin_inset Flex Code
1485 status collapsed
1486
1487 \begin_layout Plain Layout
1488 configure.py
1489 \end_layout
1490
1491 \end_inset
1492
1493  script, and the resulting files are written in your local configuration
1494  directory.
1495  This means that any additional text class file that you might have added
1496  in 
1497 \begin_inset Flex Code
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 UserDir/layouts
1502 \end_layout
1503
1504 \end_inset
1505
1506  will be added to the list of classes in the 
1507 \begin_inset Flex Noun
1508 status collapsed
1509
1510 \begin_layout Plain Layout
1511 Document\SpecialChar menuseparator
1512 Settings
1513 \end_layout
1514
1515 \end_inset
1516
1517  dialog.
1518 \end_layout
1519
1520 \begin_layout Itemize
1521 If you get some updated documentation from
1522 \change_inserted 232239728 1604798171
1523  a
1524 \change_unchanged
1525  \SpecialChar LyX
1526  ftp site and cannot install it because you do not have sysadmin rights
1527  on your system, you can just copy the files 
1528 \change_deleted 232239728 1604798193
1529 in
1530 \change_inserted 232239728 1604798193
1531 to
1532 \change_unchanged
1533  
1534 \begin_inset Flex Code
1535 status collapsed
1536
1537 \begin_layout Plain Layout
1538 UserDir/doc/
1539 \end_layout
1540
1541 \end_inset
1542
1543  and the items in the 
1544 \begin_inset Flex Noun
1545 status collapsed
1546
1547 \begin_layout Plain Layout
1548 Help
1549 \end_layout
1550
1551 \end_inset
1552
1553  menu will open them!
1554 \end_layout
1555
1556 \begin_layout Section
1557 Running \SpecialChar LyX
1558  with multiple configurations
1559 \end_layout
1560
1561 \begin_layout Standard
1562 The configuration freedom of the local configuration directory may not suffice
1563  if you want to have more than one configuration at your disposal.
1564  For example, you may want to 
1565 \change_deleted 232239728 1604798238
1566 be 
1567 \change_unchanged
1568 use different key bindings or printer settings at different times.
1569  You can achieve this by having several such directories.
1570  You then specify which directory to use at run-time.
1571 \end_layout
1572
1573 \begin_layout Standard
1574 Invoking \SpecialChar LyX
1575  with the command line switch 
1576 \begin_inset Flex Code
1577 status collapsed
1578
1579 \begin_layout Plain Layout
1580 -userdir
1581 \end_layout
1582
1583 \end_inset
1584
1585  
1586 \emph on
1587 <some directory>
1588 \emph default
1589  instructs the program to read the configuration from that directory, and
1590  not from the default directory.
1591  (You can determine the default directory by running \SpecialChar LyX
1592  without the 
1593 \begin_inset Flex Code
1594 status collapsed
1595
1596 \begin_layout Plain Layout
1597 -userdir
1598 \end_layout
1599
1600 \end_inset
1601
1602  switch.) If the specified directory does not exist, \SpecialChar LyX
1603  offers to create it
1604  for you, just like it does for the default directory 
1605 \change_deleted 232239728 1604798318
1606 on
1607 \change_unchanged
1608  the first time you run the program.
1609  You can modify the configuration options in this additional user directory
1610  exactly as you would for the default directory.
1611  These directories are completely independent (but read on).
1612  Note that setting the environment variable 
1613 \begin_inset Flex Code
1614 status collapsed
1615
1616 \begin_layout Plain Layout
1617 LYX_USERDIR_24x
1618 \end_layout
1619
1620 \end_inset
1621
1622  to some value has exactly the same effect.
1623 \end_layout
1624
1625 \begin_layout Standard
1626 Having several configurations also requires more maintenance: if you want
1627  to add a new layout to 
1628 \begin_inset Flex Code
1629 status collapsed
1630
1631 \begin_layout Plain Layout
1632 NewUserDir/layouts
1633 \end_layout
1634
1635 \end_inset
1636
1637  which you want available from all your configurations, you must add it
1638  to each directory separately.
1639  You can avoid this with the following trick: after \SpecialChar LyX
1640  creates the additional
1641  directory, most of the subdirectories (see above) are empty.
1642  If you want the new configuration to mirror an existing one, replace the
1643  empty subdirectory with a symbolic link to the matching subdirectory in
1644  the existing configuration.
1645  Take care with the 
1646 \begin_inset Flex Code
1647 status collapsed
1648
1649 \begin_layout Plain Layout
1650 doc/
1651 \end_layout
1652
1653 \end_inset
1654
1655  subdirectory, however, since it contains a file written by the configuration
1656  script (also accessible through 
1657 \begin_inset Flex Noun
1658 status collapsed
1659
1660 \begin_layout Plain Layout
1661 Tools\SpecialChar menuseparator
1662 Reconfigure
1663 \end_layout
1664
1665 \end_inset
1666
1667 ) which is configuration
1668 \change_deleted 232239728 1604798083
1669 -
1670 \change_inserted 232239728 1604798100
1671  
1672 \change_unchanged
1673 specific.
1674 \end_layout
1675
1676 \begin_layout Chapter
1677 The Preferences dialog
1678 \end_layout
1679
1680 \begin_layout Standard
1681 All options of the preferences dialog are described in the Appendix 
1682 \emph on
1683 The Preferences Dialog
1684 \emph default
1685  in the 
1686 \emph on
1687 User's Guide
1688 \emph default
1689 .
1690  For some options you might find here more details.
1691 \end_layout
1692
1693 \begin_layout Section
1694 Formats
1695 \begin_inset CommandInset label
1696 LatexCommand label
1697 name "sec:Formats"
1698
1699 \end_inset
1700
1701
1702 \end_layout
1703
1704 \begin_layout Standard
1705 The first step is to define your file formats if they are not already defined.
1706  To do so, open the 
1707 \begin_inset Flex Noun
1708 status collapsed
1709
1710 \begin_layout Plain Layout
1711 Tools\SpecialChar menuseparator
1712 Preferences
1713 \end_layout
1714
1715 \end_inset
1716
1717  dialog.
1718  Under 
1719 \begin_inset Flex Noun
1720 status collapsed
1721
1722 \begin_layout Plain Layout
1723 File Handling\SpecialChar menuseparator
1724 File formats
1725 \end_layout
1726
1727 \end_inset
1728
1729  press the 
1730 \begin_inset Flex Noun
1731 status collapsed
1732
1733 \begin_layout Plain Layout
1734 New
1735 \end_layout
1736
1737 \end_inset
1738
1739  button to define your new format.
1740  The 
1741 \begin_inset Flex Noun
1742 status collapsed
1743
1744 \begin_layout Plain Layout
1745 Format
1746 \end_layout
1747
1748 \end_inset
1749
1750  field contains the name used to identify the format in the GUI.
1751  The 
1752 \begin_inset Flex Noun
1753 status collapsed
1754
1755 \begin_layout Plain Layout
1756 Short Name
1757 \end_layout
1758
1759 \end_inset
1760
1761  is used to identify the format internally.
1762  You will also need to enter a file extension.
1763  These are all required.
1764  The optional 
1765 \begin_inset Flex Noun
1766 status collapsed
1767
1768 \begin_layout Plain Layout
1769 Shortcut
1770 \end_layout
1771
1772 \end_inset
1773
1774  field is used to provide a keyboard shortcut on the menus.
1775  (For example, pressing 
1776 \begin_inset Flex Noun
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 Ctrl+D
1781 \end_layout
1782
1783 \end_inset
1784
1785  will 
1786 \begin_inset Flex Noun
1787 status collapsed
1788
1789 \begin_layout Plain Layout
1790 Document\SpecialChar menuseparator
1791 View (Other Formats)\SpecialChar menuseparator
1792 DVI
1793 \end_layout
1794
1795 \end_inset
1796
1797 .) 
1798 \end_layout
1799
1800 \begin_layout Standard
1801 A Format can have a 
1802 \begin_inset Flex Noun
1803 status collapsed
1804
1805 \begin_layout Plain Layout
1806 Viewer
1807 \end_layout
1808
1809 \end_inset
1810
1811  and an 
1812 \begin_inset Flex Noun
1813 status collapsed
1814
1815 \begin_layout Plain Layout
1816 Editor
1817 \end_layout
1818
1819 \end_inset
1820
1821  associated with it.
1822  For example, you might want to use 
1823 \begin_inset Flex Noun
1824 status collapsed
1825
1826 \begin_layout Plain Layout
1827 Ghostview
1828 \end_layout
1829
1830 \end_inset
1831
1832  to view PostScript files.
1833  You can enter the command needed to start the program in the corresponding
1834  fields.
1835  In defining this command, you can use the four variables listed in the
1836  next section.
1837  The viewer is launched when you view an image in \SpecialChar LyX
1838  or use the 
1839 \begin_inset Flex Noun
1840 status collapsed
1841
1842 \begin_layout Plain Layout
1843 Document\SpecialChar menuseparator
1844 View
1845 \end_layout
1846
1847 \end_inset
1848
1849  menu.
1850  The editor is for example launched when you right-click on an image and
1851  choose 
1852 \begin_inset Flex Noun
1853 status collapsed
1854
1855 \begin_layout Plain Layout
1856 Edit externally
1857 \end_layout
1858
1859 \end_inset
1860
1861  in the appearing context menu.
1862 \end_layout
1863
1864 \begin_layout Standard
1865 The 
1866 \begin_inset Flex Noun
1867 status collapsed
1868
1869 \begin_layout Plain Layout
1870 MIME
1871 \end_layout
1872
1873 \end_inset
1874
1875  type of a format is optional, but if it is specified, it must be unique
1876  across all formats.
1877  It is used to detect files of this format from the file contents.
1878  For some important file formats there is no MIME type officially registered
1879  with the 
1880 \begin_inset CommandInset href
1881 LatexCommand href
1882 name "IANA"
1883 target "http://www.iana.org/assignments/media-types/"
1884 literal "false"
1885
1886 \end_inset
1887
1888 .
1889  Therefore \SpecialChar LyX
1890  uses the extended list of MIME types as specified by 
1891 \begin_inset CommandInset href
1892 LatexCommand href
1893 name "freedesktop.org"
1894 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1895 literal "false"
1896
1897 \end_inset
1898
1899 .
1900 \end_layout
1901
1902 \begin_layout Standard
1903 The 
1904 \begin_inset Flex Noun
1905 status collapsed
1906
1907 \begin_layout Plain Layout
1908 Document format
1909 \end_layout
1910
1911 \end_inset
1912
1913  option tells \SpecialChar LyX
1914  that a format is suitable for document export.
1915  If this is set and if a suitable conversion route exists (see 
1916 \begin_inset CommandInset ref
1917 LatexCommand ref
1918 reference "sec:Converters"
1919
1920 \end_inset
1921
1922 ), the format will appear in the 
1923 \begin_inset Flex Noun
1924 status collapsed
1925
1926 \begin_layout Plain Layout
1927 File\SpecialChar menuseparator
1928 Export
1929 \end_layout
1930
1931 \end_inset
1932
1933  menu.
1934  The format will also appear in the 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document\SpecialChar menuseparator
1940 View
1941 \end_layout
1942
1943 \end_inset
1944
1945  menu if a viewer is specified for the format.
1946  Pure image formats, such as 
1947 \begin_inset Flex Code
1948 status collapsed
1949
1950 \begin_layout Plain Layout
1951 png
1952 \end_layout
1953
1954 \end_inset
1955
1956 , should not use this option.
1957  Formats that can both represent vector graphics and documents like 
1958 \begin_inset Flex Code
1959 status collapsed
1960
1961 \begin_layout Plain Layout
1962 pdf
1963 \end_layout
1964
1965 \end_inset
1966
1967  should use it.
1968 \end_layout
1969
1970 \begin_layout Standard
1971 The option 
1972 \begin_inset Flex Noun
1973 status collapsed
1974
1975 \begin_layout Plain Layout
1976 Vector graphics format
1977 \end_layout
1978
1979 \end_inset
1980
1981  tells \SpecialChar LyX
1982  that a format can contain vector graphics.
1983  This information is used to determine the target format of included graphics
1984  for 
1985 \begin_inset Flex Noun
1986 status collapsed
1987
1988 \begin_layout Plain Layout
1989 pdflatex
1990 \end_layout
1991
1992 \end_inset
1993
1994  export.
1995  Included graphics may need to be converted to either 
1996 \begin_inset Flex Noun
1997 status collapsed
1998
1999 \begin_layout Plain Layout
2000 pdf
2001 \end_layout
2002
2003 \end_inset
2004
2005
2006 \begin_inset Flex Noun
2007 status collapsed
2008
2009 \begin_layout Plain Layout
2010 png
2011 \end_layout
2012
2013 \end_inset
2014
2015 , or 
2016 \begin_inset Flex Noun
2017 status collapsed
2018
2019 \begin_layout Plain Layout
2020 jpg
2021 \end_layout
2022
2023 \end_inset
2024
2025 , since 
2026 \begin_inset Flex Noun
2027 status collapsed
2028
2029 \begin_layout Plain Layout
2030 pdflatex
2031 \end_layout
2032
2033 \end_inset
2034
2035  cannot handle other image formats.
2036  If an included graphic is not already in 
2037 \begin_inset Flex Noun
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 pdf
2042 \end_layout
2043
2044 \end_inset
2045
2046
2047 \begin_inset Flex Noun
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051 png
2052 \end_layout
2053
2054 \end_inset
2055
2056 , or 
2057 \begin_inset Flex Noun
2058 status collapsed
2059
2060 \begin_layout Plain Layout
2061 jpg
2062 \end_layout
2063
2064 \end_inset
2065
2066  format, it is converted to 
2067 \begin_inset Flex Noun
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071 pdf
2072 \end_layout
2073
2074 \end_inset
2075
2076  if the vector format option is set, and otherwise to 
2077 \begin_inset Flex Noun
2078 status collapsed
2079
2080 \begin_layout Plain Layout
2081 png
2082 \end_layout
2083
2084 \end_inset
2085
2086 .
2087 \end_layout
2088
2089 \begin_layout Section
2090 Copiers
2091 \end_layout
2092
2093 \begin_layout Standard
2094 Since all conversions from one format to another take place in \SpecialChar LyX
2095 's temporary
2096  directory, it is sometimes necessary to modify a file before copying it
2097  to the temporary directory in order that the conversion may be performed.
2098 \begin_inset Foot
2099 status collapsed
2100
2101 \begin_layout Plain Layout
2102 For example, the file may refer to other files—images, for example—using
2103  relative file names, and these may become invalid when the file is copied
2104  to the temporary directory.
2105 \end_layout
2106
2107 \end_inset
2108
2109  This is done by a Copier: It copies a file to (or from) the temporary directory
2110  and may modify it in the process.
2111 \end_layout
2112
2113 \begin_layout Standard
2114 The definitions of the copiers may use eight variables:
2115 \end_layout
2116
2117 \begin_layout Labeling
2118 \labelwidthstring 00.00.0000
2119 \begin_inset Flex Code
2120 status collapsed
2121
2122 \begin_layout Plain Layout
2123 $$s
2124 \end_layout
2125
2126 \end_inset
2127
2128  The \SpecialChar LyX
2129  system directory (e.
2130 \begin_inset space \thinspace{}
2131 \end_inset
2132
2133 g.
2134 \begin_inset space \space{}
2135 \end_inset
2136
2137
2138 \begin_inset Flex Noun
2139 status collapsed
2140
2141 \begin_layout Plain Layout
2142 /usr/share/lyx
2143 \end_layout
2144
2145 \end_inset
2146
2147 ).
2148 \end_layout
2149
2150 \begin_layout Labeling
2151 \labelwidthstring 00.00.0000
2152 \begin_inset Flex Code
2153 status collapsed
2154
2155 \begin_layout Plain Layout
2156 $$i
2157 \end_layout
2158
2159 \end_inset
2160
2161  The input file
2162 \end_layout
2163
2164 \begin_layout Labeling
2165 \labelwidthstring 00.00.0000
2166 \begin_inset Flex Code
2167 status collapsed
2168
2169 \begin_layout Plain Layout
2170 $$o
2171 \end_layout
2172
2173 \end_inset
2174
2175  The output file
2176 \end_layout
2177
2178 \begin_layout Labeling
2179 \labelwidthstring 00.00.0000
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 $$b
2185 \end_layout
2186
2187 \end_inset
2188
2189  The base name (without filename extension) in the \SpecialChar LyX
2190  temporary directory
2191 \end_layout
2192
2193 \begin_layout Labeling
2194 \labelwidthstring 00.00.0000
2195 \begin_inset Flex Code
2196 status collapsed
2197
2198 \begin_layout Plain Layout
2199 $$p
2200 \end_layout
2201
2202 \end_inset
2203
2204  The full directory path of the \SpecialChar LyX
2205  temporary directory
2206 \end_layout
2207
2208 \begin_layout Labeling
2209 \labelwidthstring 00.00.0000
2210 \begin_inset Flex Code
2211 status collapsed
2212
2213 \begin_layout Plain Layout
2214 $$r
2215 \end_layout
2216
2217 \end_inset
2218
2219  The full pathname to the original \SpecialChar LyX
2220  file being processed
2221 \end_layout
2222
2223 \begin_layout Labeling
2224 \labelwidthstring 00.00.0000
2225 \begin_inset Flex Code
2226 status collapsed
2227
2228 \begin_layout Plain Layout
2229 $$f
2230 \end_layout
2231
2232 \end_inset
2233
2234  The filename (without any directory path) of the \SpecialChar LyX
2235  file.
2236 \end_layout
2237
2238 \begin_layout Labeling
2239 \labelwidthstring 00.00.0000
2240 \begin_inset Flex Code
2241 status collapsed
2242
2243 \begin_layout Plain Layout
2244 $$l
2245 \end_layout
2246
2247 \end_inset
2248
2249  The `\SpecialChar LaTeX
2250  name'
2251 \end_layout
2252
2253 \begin_layout Standard
2254 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2255 's 
2256 \series bold
2257
2258 \backslash
2259 include
2260 \series default
2261  command.
2262  It is relevant only when exporting files suitable for such inclusion.
2263 \end_layout
2264
2265 \begin_layout Standard
2266 Copiers can be used to do almost anything with output files.
2267  For example, suppose you want generated pdf files to be copied to a special
2268  directory, 
2269 \begin_inset Flex Code
2270 status collapsed
2271
2272 \begin_layout Plain Layout
2273 /home/you/pdf/
2274 \end_layout
2275
2276 \end_inset
2277
2278 .
2279  Then you could write a shell script such as this one:
2280 \end_layout
2281
2282 \begin_layout Standard
2283 \begin_inset listings
2284 inline false
2285 status open
2286
2287 \begin_layout Plain Layout
2288
2289 #!/bin/bash
2290 \end_layout
2291
2292 \begin_layout Plain Layout
2293
2294 FROMFILE=$1
2295 \end_layout
2296
2297 \begin_layout Plain Layout
2298
2299 TOFILE=`basename $2`
2300 \end_layout
2301
2302 \begin_layout Plain Layout
2303
2304 cp $FROMFILE /home/you/pdf/$TOFILE
2305 \end_layout
2306
2307 \end_inset
2308
2309 Save it in your local \SpecialChar LyX
2310  directory—say, 
2311 \begin_inset Flex Code
2312 status collapsed
2313
2314 \begin_layout Plain Layout
2315 /home/you/.lyx/scripts/pdfcopier.sh
2316 \end_layout
2317
2318 \end_inset
2319
2320 —and make it executable, if you need to do so on your platform.
2321  Then, in the 
2322 \begin_inset Flex Noun
2323 status collapsed
2324
2325 \begin_layout Plain Layout
2326 Tools\SpecialChar menuseparator
2327 Preferences
2328 \end_layout
2329
2330 \end_inset
2331
2332  dialog, select under 
2333 \begin_inset Flex Noun
2334 status collapsed
2335
2336 \begin_layout Plain Layout
2337 File Handling\SpecialChar menuseparator
2338 File formats
2339 \end_layout
2340
2341 \end_inset
2342
2343  the 
2344 \begin_inset Flex Noun
2345 status collapsed
2346
2347 \begin_layout Plain Layout
2348 PDF(pdflatex)
2349 \end_layout
2350
2351 \end_inset
2352
2353  format—or one of the other pdf formats—and enter 
2354 \begin_inset Flex Code
2355 status collapsed
2356
2357 \begin_layout Plain Layout
2358 pdfcopier.sh $$i $$o
2359 \end_layout
2360
2361 \end_inset
2362
2363  into the 
2364 \begin_inset Flex Noun
2365 status collapsed
2366
2367 \begin_layout Plain Layout
2368 Copier
2369 \end_layout
2370
2371 \end_inset
2372
2373  field.
2374  
2375 \end_layout
2376
2377 \begin_layout Standard
2378 Copiers are used by \SpecialChar LyX
2379  in various of its own conversions.
2380  For example, if appropriate programs are found, \SpecialChar LyX
2381  will automatically install
2382  copiers for the 
2383 \begin_inset Flex Noun
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 HTML
2388 \end_layout
2389
2390 \end_inset
2391
2392  and 
2393 \begin_inset Flex Noun
2394 status collapsed
2395
2396 \begin_layout Plain Layout
2397 HTML
2398 \begin_inset space ~
2399 \end_inset
2400
2401 (MS Word)
2402 \end_layout
2403
2404 \end_inset
2405
2406  formats.
2407  When these formats are exported, the copier sees that not just the main
2408  HTML file but various associated files (style files, images, etc.) are also
2409  copied.
2410  All these files are written to a subdirectory of the directory in which
2411  the original \SpecialChar LyX
2412  file was found.
2413 \begin_inset Foot
2414 status collapsed
2415
2416 \begin_layout Plain Layout
2417 This copier can be customized.
2418  The optional 
2419 \begin_inset Quotes eld
2420 \end_inset
2421
2422 -e
2423 \begin_inset Quotes erd
2424 \end_inset
2425
2426  argument takes a comma-separated list of extensions to be copied; if it
2427  is omitted, all files will be copied.
2428  The 
2429 \begin_inset Quotes eld
2430 \end_inset
2431
2432 -t
2433 \begin_inset Quotes erd
2434 \end_inset
2435
2436  argument determines the extension added to the generated directory.
2437  By default, it is 
2438 \begin_inset Quotes eld
2439 \end_inset
2440
2441
2442 \begin_inset Flex Noun
2443 status collapsed
2444
2445 \begin_layout Plain Layout
2446 LyXconv
2447 \end_layout
2448
2449 \end_inset
2450
2451
2452 \begin_inset Quotes erd
2453 \end_inset
2454
2455 , so HTML generated from 
2456 \begin_inset Flex Noun
2457 status collapsed
2458
2459 \begin_layout Plain Layout
2460 /path/to/filename.lyx
2461 \end_layout
2462
2463 \end_inset
2464
2465  will end up in 
2466 \begin_inset Flex Noun
2467 status collapsed
2468
2469 \begin_layout Plain Layout
2470 /path/to/filename.html.LyXconv
2471 \end_layout
2472
2473 \end_inset
2474
2475 .
2476  
2477 \end_layout
2478
2479 \end_inset
2480
2481
2482 \end_layout
2483
2484 \begin_layout Section
2485 Converters
2486 \begin_inset CommandInset label
2487 LatexCommand label
2488 name "sec:Converters"
2489
2490 \end_inset
2491
2492
2493 \end_layout
2494
2495 \begin_layout Standard
2496 You can define your own Converters to convert files between different formats.
2497  This is done in the 
2498 \begin_inset Flex Noun
2499 status collapsed
2500
2501 \begin_layout Plain Layout
2502 Tools\SpecialChar menuseparator
2503 Preferences\SpecialChar menuseparator
2504 File Handling\SpecialChar menuseparator
2505 Converters
2506 \end_layout
2507
2508 \end_inset
2509
2510  dialog.
2511 \end_layout
2512
2513 \begin_layout Standard
2514 To define a new converter, select the 
2515 \begin_inset Flex Noun
2516 status collapsed
2517
2518 \begin_layout Plain Layout
2519 From
2520 \begin_inset space ~
2521 \end_inset
2522
2523 format
2524 \end_layout
2525
2526 \end_inset
2527
2528  and 
2529 \begin_inset Flex Noun
2530 status collapsed
2531
2532 \begin_layout Plain Layout
2533 To
2534 \begin_inset space ~
2535 \end_inset
2536
2537 format
2538 \end_layout
2539
2540 \end_inset
2541
2542  from the drop-down lists, enter the command needed for the conversion,
2543  and then press the 
2544 \begin_inset Flex Noun
2545 status collapsed
2546
2547 \begin_layout Plain Layout
2548 Add
2549 \end_layout
2550
2551 \end_inset
2552
2553  button.
2554  Several variables can be used in the definition of converters:
2555 \end_layout
2556
2557 \begin_layout Labeling
2558 \labelwidthstring 00.00.0000
2559 \begin_inset Flex Code
2560 status collapsed
2561
2562 \begin_layout Plain Layout
2563 $$s
2564 \end_layout
2565
2566 \end_inset
2567
2568  The \SpecialChar LyX
2569  system directory
2570 \end_layout
2571
2572 \begin_layout Labeling
2573 \labelwidthstring 00.00.0000
2574 \begin_inset Flex Code
2575 status collapsed
2576
2577 \begin_layout Plain Layout
2578 $$i
2579 \end_layout
2580
2581 \end_inset
2582
2583  The input file
2584 \end_layout
2585
2586 \begin_layout Labeling
2587 \labelwidthstring 00.00.0000
2588 \begin_inset Flex Code
2589 status collapsed
2590
2591 \begin_layout Plain Layout
2592 $$o
2593 \end_layout
2594
2595 \end_inset
2596
2597  The output file
2598 \end_layout
2599
2600 \begin_layout Labeling
2601 \labelwidthstring 00.00.0000
2602 \begin_inset Flex Code
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 $$b
2607 \end_layout
2608
2609 \end_inset
2610
2611  The base filename of the input file (i.
2612 \begin_inset space \thinspace{}
2613 \end_inset
2614
2615 g., without the extension)
2616 \end_layout
2617
2618 \begin_layout Labeling
2619 \labelwidthstring 00.00.0000
2620 \begin_inset Flex Code
2621 status collapsed
2622
2623 \begin_layout Plain Layout
2624 $$p
2625 \end_layout
2626
2627 \end_inset
2628
2629  The path to the input file
2630 \end_layout
2631
2632 \begin_layout Labeling
2633 \labelwidthstring 00.00.0000
2634 \begin_inset Flex Code
2635 status collapsed
2636
2637 \begin_layout Plain Layout
2638 $$r
2639 \end_layout
2640
2641 \end_inset
2642
2643  The path to the original input file (this is different from $$p when a
2644  chain of converters is called)
2645 \end_layout
2646
2647 \begin_layout Labeling
2648 \labelwidthstring 00.00.0000
2649 \begin_inset Flex Code
2650 status collapsed
2651
2652 \begin_layout Plain Layout
2653 $$e
2654 \end_layout
2655
2656 \end_inset
2657
2658  The iconv name for the encoding of the document.
2659 \end_layout
2660
2661 \begin_layout Standard
2662 In the 
2663 \begin_inset Flex Noun
2664 status collapsed
2665
2666 \begin_layout Plain Layout
2667 Extra
2668 \begin_inset space ~
2669 \end_inset
2670
2671 Flag
2672 \end_layout
2673
2674 \end_inset
2675
2676  field you can enter the following flags, separated by commas:
2677 \end_layout
2678
2679 \begin_layout Labeling
2680 \labelwidthstring 00.00.0000
2681 \begin_inset Flex Code
2682 status collapsed
2683
2684 \begin_layout Plain Layout
2685 latex
2686 \change_inserted -712698321 1524656940
2687 =flavor
2688 \change_unchanged
2689
2690 \end_layout
2691
2692 \end_inset
2693
2694  This converter runs some form of \SpecialChar LaTeX
2695 .
2696  This will make \SpecialChar LyX
2697 's \SpecialChar LaTeX
2698  error logs available.
2699
2700 \change_inserted -712698321 1524657018
2701  The optional 
2702 \begin_inset Flex Code
2703 status open
2704
2705 \begin_layout Plain Layout
2706
2707 \change_inserted -712698321 1524657012
2708 flavor
2709 \change_unchanged
2710
2711 \end_layout
2712
2713 \end_inset
2714
2715  value specifies the form of \SpecialChar LaTeX
2716  that is run (
2717 \begin_inset Flex Code
2718 status open
2719
2720 \begin_layout Plain Layout
2721
2722 \change_inserted -712698321 1524657005
2723 latex, pdflatex, platex, xetex, luatex
2724 \change_unchanged
2725
2726 \end_layout
2727
2728 \end_inset
2729
2730 ).
2731  If no value is specified, 
2732 \begin_inset Flex Code
2733 status open
2734
2735 \begin_layout Plain Layout
2736
2737 \change_inserted -712698321 1524657018
2738 latex
2739 \change_unchanged
2740
2741 \end_layout
2742
2743 \end_inset
2744
2745  is used.
2746 \change_unchanged
2747
2748 \end_layout
2749
2750 \begin_layout Labeling
2751 \labelwidthstring 00.00.0000
2752 \begin_inset Flex Code
2753 status collapsed
2754
2755 \begin_layout Plain Layout
2756 needaux
2757 \change_inserted -712698321 1524656935
2758 =flavor
2759 \change_unchanged
2760
2761 \end_layout
2762
2763 \end_inset
2764
2765  Needs the \SpecialChar LaTeX
2766  
2767 \begin_inset Flex Noun
2768 status collapsed
2769
2770 \begin_layout Plain Layout
2771 .aux
2772 \end_layout
2773
2774 \end_inset
2775
2776  file for the conversion.
2777
2778 \change_inserted -712698321 1524657047
2779  The optional 
2780 \begin_inset Flex Code
2781 status open
2782
2783 \begin_layout Plain Layout
2784
2785 \change_inserted -712698321 1524657030
2786 flavor
2787 \change_unchanged
2788
2789 \end_layout
2790
2791 \end_inset
2792
2793  value specifies the form of \SpecialChar LaTeX
2794  that is run in order to generate the 
2795 \begin_inset Flex Noun
2796 status collapsed
2797
2798 \begin_layout Plain Layout
2799
2800 \change_inserted -712698321 1524657047
2801 .aux
2802 \change_unchanged
2803
2804 \end_layout
2805
2806 \end_inset
2807
2808  file (
2809 \begin_inset Flex Code
2810 status open
2811
2812 \begin_layout Plain Layout
2813
2814 \change_inserted -712698321 1524657030
2815 latex, pdflatex, platex, xetex, luatex
2816 \change_unchanged
2817
2818 \end_layout
2819
2820 \end_inset
2821
2822 ).
2823  If no value is specified, 
2824 \begin_inset Flex Code
2825 status open
2826
2827 \begin_layout Plain Layout
2828
2829 \change_inserted -712698321 1524657030
2830 latex
2831 \change_unchanged
2832
2833 \end_layout
2834
2835 \end_inset
2836
2837  is used.
2838 \change_unchanged
2839
2840 \end_layout
2841
2842 \begin_layout Labeling
2843 \labelwidthstring 00.00.0000
2844 \begin_inset Flex Code
2845 status collapsed
2846
2847 \begin_layout Plain Layout
2848 nice
2849 \end_layout
2850
2851 \end_inset
2852
2853  Needs a 
2854 \begin_inset Quotes eld
2855 \end_inset
2856
2857 nice
2858 \begin_inset Quotes erd
2859 \end_inset
2860
2861  file from the backend, which in practice means a \SpecialChar LaTeX
2862  file like the one we
2863  would export, without 
2864 \begin_inset Flex Code
2865 status collapsed
2866
2867 \begin_layout Plain Layout
2868 input@path
2869 \end_layout
2870
2871 \end_inset
2872
2873 .
2874 \end_layout
2875
2876 \begin_layout Labeling
2877 \labelwidthstring 00.00.0000
2878 \begin_inset Flex Code
2879 status collapsed
2880
2881 \begin_layout Plain Layout
2882 xml
2883 \end_layout
2884
2885 \end_inset
2886
2887  Output is XML.
2888 \end_layout
2889
2890 \begin_layout Standard
2891 The following three flags are not really flags at all because they take
2892  an argument in the 
2893 \begin_inset Flex Noun
2894 status collapsed
2895
2896 \begin_layout Plain Layout
2897 key
2898 \begin_inset space ~
2899 \end_inset
2900
2901 =
2902 \begin_inset space ~
2903 \end_inset
2904
2905 value
2906 \end_layout
2907
2908 \end_inset
2909
2910  format:
2911 \end_layout
2912
2913 \begin_layout Labeling
2914 \labelwidthstring 00.00.0000
2915
2916 \change_inserted -712698321 1523206314
2917 \begin_inset Flex Code
2918 status collapsed
2919
2920 \begin_layout Plain Layout
2921
2922 \change_inserted -712698321 1523206193
2923 hyperref-driver
2924 \change_unchanged
2925
2926 \end_layout
2927
2928 \end_inset
2929
2930  The name of the driver that needs to be loaded with the 
2931 \family sans
2932 hyperref
2933 \family default
2934  package for this converter.
2935  The loading of the correct driver is necessary to get some PDF-specific
2936  features.
2937  See the 
2938 \family sans
2939 hyperref
2940 \family default
2941  manual for details.
2942 \end_layout
2943
2944 \begin_layout Labeling
2945 \labelwidthstring 00.00.0000
2946 \begin_inset Flex Code
2947 status collapsed
2948
2949 \begin_layout Plain Layout
2950 parselog
2951 \end_layout
2952
2953 \end_inset
2954
2955  If set, the converter's standard error will be redirected to a file 
2956 \begin_inset Flex Code
2957 status collapsed
2958
2959 \begin_layout Plain Layout
2960 infile.out
2961 \end_layout
2962
2963 \end_inset
2964
2965 , and the script given as argument will be run as: 
2966 \begin_inset Flex Code
2967 status collapsed
2968
2969 \begin_layout Plain Layout
2970 script < infile.out > infile.log
2971 \end_layout
2972
2973 \end_inset
2974
2975 .
2976  The argument may contain 
2977 \begin_inset Flex Code
2978 status collapsed
2979
2980 \begin_layout Plain Layout
2981 $$s
2982 \end_layout
2983
2984 \end_inset
2985
2986 .
2987 \end_layout
2988
2989 \begin_layout Labeling
2990 \labelwidthstring 00.00.0000
2991 \begin_inset Flex Code
2992 status collapsed
2993
2994 \begin_layout Plain Layout
2995 resultdir
2996 \end_layout
2997
2998 \end_inset
2999
3000  The name of the directory in which the converter will dump the generated
3001  files.
3002  \SpecialChar LyX
3003  will not create this directory, and it does not copy anything into it,
3004  though it will copy this directory to the destination.
3005  The argument may contain 
3006 \begin_inset Flex Code
3007 status collapsed
3008
3009 \begin_layout Plain Layout
3010 $$b
3011 \end_layout
3012
3013 \end_inset
3014
3015 , which will be replaced by the base name of the input and output files,
3016  respectively, when the directory is copied.
3017 \begin_inset Newline newline
3018 \end_inset
3019
3020 Note that resultdir and usetempdir make no sense together.
3021  The latter will be ignored if the former is given.
3022 \end_layout
3023
3024 \begin_layout Labeling
3025 \labelwidthstring 00.00.0000
3026 \begin_inset Flex Code
3027 status collapsed
3028
3029 \begin_layout Plain Layout
3030 resultfile
3031 \end_layout
3032
3033 \end_inset
3034
3035  Determines the output file name and may, contain 
3036 \begin_inset Flex Code
3037 status collapsed
3038
3039 \begin_layout Plain Layout
3040 $$b
3041 \end_layout
3042
3043 \end_inset
3044
3045 .
3046  Sensible only with resultdir and optional even then; if not given, it defaults
3047  to `index'.
3048 \end_layout
3049
3050 \begin_layout Standard
3051
3052 \change_inserted -712698321 1523206384
3053 A suitable hyperref-driver is set for some converters that are installed
3054  with \SpecialChar LyX
3055 .
3056  
3057 \change_deleted -712698321 1523206388
3058 None of these
3059 \change_inserted -712698321 1523206389
3060 The
3061 \change_unchanged
3062  last three
3063 \change_inserted -712698321 1523206400
3064  flags, however,
3065 \change_unchanged
3066  are presently 
3067 \change_inserted -712698321 1523206407
3068 not 
3069 \change_unchanged
3070 used in any of the 
3071 \change_inserted -712698321 1523206437
3072 pre-installed 
3073 \change_unchanged
3074 converters
3075 \change_deleted -712698321 1523206442
3076  that are installed with \SpecialChar LyX
3077
3078 \change_unchanged
3079 .
3080  
3081 \end_layout
3082
3083 \begin_layout Standard
3084 You do not have to define converters for all formats between which you want
3085  to convert.
3086  For example, you will note that there is no `\SpecialChar LyX
3087  to PostScript' converter,
3088  but \SpecialChar LyX
3089  will export PostScript.
3090  It does so by first creating a \SpecialChar LaTeX
3091  file (no converter needs to be defined
3092  for this) which is then converted to DVI using the `\SpecialChar LaTeX
3093  to DVI' converter,
3094  and finally converting the resulting DVI file to PostScript.
3095  \SpecialChar LyX
3096  finds such `chains' of converters automatically, and it will always choose
3097  the shortest possible chain.
3098  You can, though, still define multiple conversion methods between file
3099  formats.
3100  For example, the standard \SpecialChar LyX
3101  configuration provides five ways to convert
3102  \SpecialChar LaTeX
3103  to PDF:
3104 \end_layout
3105
3106 \begin_layout Enumerate
3107 Directly, using 
3108 \begin_inset Flex Noun
3109 status collapsed
3110
3111 \begin_layout Plain Layout
3112 pdflatex
3113 \end_layout
3114
3115 \end_inset
3116
3117
3118 \end_layout
3119
3120 \begin_layout Enumerate
3121 via (DVI and) PostScript, using 
3122 \begin_inset Flex Noun
3123 status collapsed
3124
3125 \begin_layout Plain Layout
3126 ps2pdf
3127 \end_layout
3128
3129 \end_inset
3130
3131
3132 \end_layout
3133
3134 \begin_layout Enumerate
3135 via DVI, using 
3136 \begin_inset Flex Noun
3137 status collapsed
3138
3139 \begin_layout Plain Layout
3140 dvipdfm
3141 \end_layout
3142
3143 \end_inset
3144
3145
3146 \end_layout
3147
3148 \begin_layout Enumerate
3149 directly using 
3150 \begin_inset Flex Noun
3151 status collapsed
3152
3153 \begin_layout Plain Layout
3154 Xe\SpecialChar TeX
3155
3156 \end_layout
3157
3158 \end_inset
3159
3160
3161 \end_layout
3162
3163 \begin_layout Enumerate
3164 directly using 
3165 \begin_inset Flex Noun
3166 status collapsed
3167
3168 \begin_layout Plain Layout
3169 Lua\SpecialChar TeX
3170
3171 \end_layout
3172
3173 \end_inset
3174
3175
3176 \end_layout
3177
3178 \begin_layout Standard
3179 To define such alternate chains, you must define multiple target `file formats',
3180  as described in 
3181 \begin_inset CommandInset ref
3182 LatexCommand ref
3183 reference "sec:Formats"
3184
3185 \end_inset
3186
3187 .
3188  For example, in the standard configuration, the formats named 
3189 \begin_inset Flex Noun
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 pdf
3194 \end_layout
3195
3196 \end_inset
3197
3198  (for 
3199 \begin_inset Flex Noun
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 ps2pdf
3204 \end_layout
3205
3206 \end_inset
3207
3208 ), 
3209 \begin_inset Flex Noun
3210 status collapsed
3211
3212 \begin_layout Plain Layout
3213 pdf2
3214 \end_layout
3215
3216 \end_inset
3217
3218  (for 
3219 \begin_inset Flex Noun
3220 status collapsed
3221
3222 \begin_layout Plain Layout
3223 pdflatex
3224 \end_layout
3225
3226 \end_inset
3227
3228 ), 
3229 \begin_inset Flex Noun
3230 status collapsed
3231
3232 \begin_layout Plain Layout
3233 pdf3
3234 \end_layout
3235
3236 \end_inset
3237
3238  (for 
3239 \begin_inset Flex Noun
3240 status collapsed
3241
3242 \begin_layout Plain Layout
3243 dvipdfm
3244 \end_layout
3245
3246 \end_inset
3247
3248 ), 
3249 \begin_inset Flex Noun
3250 status collapsed
3251
3252 \begin_layout Plain Layout
3253 pdf4
3254 \end_layout
3255
3256 \end_inset
3257
3258  (for 
3259 \begin_inset Flex Noun
3260 status collapsed
3261
3262 \begin_layout Plain Layout
3263 Xe\SpecialChar TeX
3264
3265 \end_layout
3266
3267 \end_inset
3268
3269 ), and 
3270 \begin_inset Flex Noun
3271 status collapsed
3272
3273 \begin_layout Plain Layout
3274 pdf5
3275 \end_layout
3276
3277 \end_inset
3278
3279  (for 
3280 \begin_inset Flex Noun
3281 status collapsed
3282
3283 \begin_layout Plain Layout
3284 Lua\SpecialChar TeX
3285
3286 \end_layout
3287
3288 \end_inset
3289
3290 ) are defined, all of which share the extension 
3291 \begin_inset Flex Noun
3292 status collapsed
3293
3294 \begin_layout Plain Layout
3295 .pdf
3296 \end_layout
3297
3298 \end_inset
3299
3300 , and which correspond to the conversion methods just mentioned.
3301 \end_layout
3302
3303 \begin_layout Chapter
3304 Internationalizing \SpecialChar LyX
3305
3306 \begin_inset CommandInset label
3307 LatexCommand label
3308 name "cha:Internationalizing-LyX"
3309
3310 \end_inset
3311
3312
3313 \end_layout
3314
3315 \begin_layout Standard
3316 \SpecialChar LyX
3317  supports using a translated interface.
3318  Last time we checked, \SpecialChar LyX
3319  provided text in thirty languages.
3320  The language of choice is called your 
3321 \emph on
3322 locale
3323 \emph default
3324 .
3325  (For further reading on locale settings, see also the documentation for
3326  locale that comes with your operating system.
3327  For Linux, the manual page for 
3328 \begin_inset Flex Code
3329 status collapsed
3330
3331 \begin_layout Plain Layout
3332 locale(5)
3333 \end_layout
3334
3335 \end_inset
3336
3337  could be a good place to start).
3338 \end_layout
3339
3340 \begin_layout Standard
3341 Notice that these translations will work, but do contain a few flaws.
3342  In particular, all dialogs have been designed with the English text in
3343  mind, which means that some of the translated text will be too large to
3344  fit within the space allocated.
3345  This is only a display problem and will not cause any harm.
3346  Also, you will find that some of the translations do not define shortcut
3347  keys for everything.
3348  Sometimes, there are simply not enough free letters to do it.
3349  Other times, the translator just hasn't got around to doing it yet.
3350  Our localization team, which you may wish to join,
3351 \begin_inset Foot
3352 status collapsed
3353
3354 \begin_layout Plain Layout
3355 If you are a fluent speaker of a language other than English, joining these
3356  teams is a great way to give back to the \SpecialChar LyX
3357  community!
3358 \end_layout
3359
3360 \end_inset
3361
3362  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3363 .
3364 \end_layout
3365
3366 \begin_layout Section
3367 Translating \SpecialChar LyX
3368
3369 \end_layout
3370
3371 \begin_layout Subsection
3372 Translating the graphical user interface (text messages).
3373 \end_layout
3374
3375 \begin_layout Standard
3376 \SpecialChar LyX
3377  uses the GNU 
3378 \begin_inset Flex Code
3379 status collapsed
3380
3381 \begin_layout Plain Layout
3382 gettext
3383 \end_layout
3384
3385 \end_inset
3386
3387  library to handle the internationalization of the interface.
3388  To have \SpecialChar LyX
3389  speak your favorite language in all menus and dialogs, you need
3390  a 
3391 \begin_inset Flex Code
3392 status collapsed
3393
3394 \begin_layout Plain Layout
3395 po
3396 \end_layout
3397
3398 \end_inset
3399
3400 -file for that language.
3401  When this is available, you'll have to generate a 
3402 \begin_inset Flex Code
3403 status collapsed
3404
3405 \begin_layout Plain Layout
3406 mo
3407 \end_layout
3408
3409 \end_inset
3410
3411 -file from it and install the 
3412 \begin_inset Flex Code
3413 status collapsed
3414
3415 \begin_layout Plain Layout
3416 mo
3417 \end_layout
3418
3419 \end_inset
3420
3421 -file.
3422  The process of doing all of this is explained in the documentation for
3423  GNU 
3424 \begin_inset Flex Code
3425 status collapsed
3426
3427 \begin_layout Plain Layout
3428 gettext
3429 \end_layout
3430
3431 \end_inset
3432
3433 .
3434  It is possible to do this just for yourself, but if you're going to do
3435  it, you might as well share the results of your labors with the rest of
3436  the \SpecialChar LyX
3437  community.
3438  Send a message to the \SpecialChar LyX
3439  developers' list for more information about how
3440  to proceed.
3441 \end_layout
3442
3443 \begin_layout Standard
3444 In short, this is what you should do (xx denotes the language code):
3445 \end_layout
3446
3447 \begin_layout Itemize
3448 Check out the \SpecialChar LyX
3449  source code.
3450  (See the 
3451 \begin_inset CommandInset href
3452 LatexCommand href
3453 name "information on the web"
3454 target "https://www.lyx.org/HowToUseGIT"
3455 literal "false"
3456
3457 \end_inset
3458
3459 .)
3460 \end_layout
3461
3462 \begin_layout Itemize
3463 Copy the file 
3464 \begin_inset Flex Code
3465 status collapsed
3466
3467 \begin_layout Plain Layout
3468 lyx.pot
3469 \end_layout
3470
3471 \end_inset
3472
3473  to the folder of the 
3474 \begin_inset Flex Code
3475 status collapsed
3476
3477 \begin_layout Plain Layout
3478 **.po
3479 \end_layout
3480
3481 \end_inset
3482
3483  files.
3484  Then rename it to 
3485 \begin_inset Flex Code
3486 status collapsed
3487
3488 \begin_layout Plain Layout
3489 xx.po
3490 \end_layout
3491
3492 \end_inset
3493
3494 .
3495  (If 
3496 \begin_inset Flex Code
3497 status collapsed
3498
3499 \begin_layout Plain Layout
3500 lyx.pot
3501 \end_layout
3502
3503 \end_inset
3504
3505  doesn't exist anywhere, it can be remade with the console command 
3506 \begin_inset Flex Code
3507 status collapsed
3508
3509 \begin_layout Plain Layout
3510 make lyx.pot
3511 \end_layout
3512
3513 \end_inset
3514
3515  in that directory, or you can use an existing po-file for some other language
3516  as a template).
3517 \end_layout
3518
3519 \begin_layout Itemize
3520 Edit 
3521 \begin_inset Flex Code
3522 status collapsed
3523
3524 \begin_layout Plain Layout
3525 xx.po
3526 \end_layout
3527
3528 \end_inset
3529
3530 .
3531 \begin_inset Foot
3532 status collapsed
3533
3534 \begin_layout Plain Layout
3535 This is just a text file, so it can be edited in any text editor.
3536  But there are also specialized programs that support such editing, such
3537  as 
3538 \family typewriter
3539 Poedit
3540 \family default
3541  (for all platforms) or 
3542 \family typewriter
3543 KBabel
3544 \family default
3545  (for KDE).
3546  
3547 \family typewriter
3548 Emacs
3549 \family default
3550  contains a `mode' for editing 
3551 \begin_inset Flex Code
3552 status collapsed
3553
3554 \begin_layout Plain Layout
3555 po
3556 \end_layout
3557
3558 \end_inset
3559
3560  files, as well, see 
3561 \begin_inset Flex URL
3562 status open
3563
3564 \begin_layout Plain Layout
3565
3566 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3567 \end_layout
3568
3569 \end_inset
3570
3571 .
3572 \end_layout
3573
3574 \end_inset
3575
3576  For some menu- and widget-labels, there are also shortcut keys that should
3577  be translated.
3578  Those keys are marked after a `|', and should be translated according to
3579  the words and phrases of the language.
3580  You should also fill also out the information at the beginning of the new
3581  
3582 \begin_inset Flex Code
3583 status collapsed
3584
3585 \begin_layout Plain Layout
3586 po
3587 \end_layout
3588
3589 \end_inset
3590
3591 -file with your email-address, etc., so people know where to reach you with
3592  suggestions and entertaining flames.
3593 \end_layout
3594
3595 \begin_layout Standard
3596 If you are just doing this on your own, then:
3597 \end_layout
3598
3599 \begin_layout Itemize
3600 Generate 
3601 \begin_inset Flex Code
3602 status collapsed
3603
3604 \begin_layout Plain Layout
3605 xx.mo
3606 \end_layout
3607
3608 \end_inset
3609
3610 .
3611  This can be done with 
3612 \begin_inset Flex Code
3613 status collapsed
3614
3615 \begin_layout Plain Layout
3616 msgfmt -o xx.mo < xx.po
3617 \end_layout
3618
3619 \end_inset
3620
3621 .
3622 \end_layout
3623
3624 \begin_layout Itemize
3625 Copy the 
3626 \begin_inset Flex Code
3627 status collapsed
3628
3629 \begin_layout Plain Layout
3630 mo
3631 \end_layout
3632
3633 \end_inset
3634
3635 -file to your locale-tree, at the correct directory for application messages
3636  for the language
3637 \series bold
3638  
3639 \series default
3640 xx, and under the name 
3641 \begin_inset Flex Code
3642 status collapsed
3643
3644 \begin_layout Plain Layout
3645 lyx.mo
3646 \end_layout
3647
3648 \end_inset
3649
3650  (e.
3651 \begin_inset space \thinspace{}
3652 \end_inset
3653
3654 g.
3655 \begin_inset space \space{}
3656 \end_inset
3657
3658
3659 \begin_inset Flex Code
3660 status collapsed
3661
3662 \begin_layout Plain Layout
3663 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3664 \end_layout
3665
3666 \end_inset
3667
3668
3669 \series bold
3670 .
3671 \end_layout
3672
3673 \begin_layout Standard
3674 As said, however, it would be best if the new 
3675 \begin_inset Flex Code
3676 status collapsed
3677
3678 \begin_layout Plain Layout
3679 po
3680 \end_layout
3681
3682 \end_inset
3683
3684  file could be added to the \SpecialChar LyX
3685  distribution, so others can use it.
3686  Adding it involves making additional changes to \SpecialChar LyX
3687 .
3688  So send an email to the developers' mailing list if you're interested in
3689  doing that.
3690 \end_layout
3691
3692 \begin_layout Subsubsection
3693 Ambiguous messages
3694 \end_layout
3695
3696 \begin_layout Standard
3697 Sometimes it turns out that one English message needs to be translated into
3698  different messages in the target language.
3699  One example is the message 
3700 \begin_inset Flex Code
3701 status collapsed
3702
3703 \begin_layout Plain Layout
3704 To
3705 \end_layout
3706
3707 \end_inset
3708
3709  which has the German translation 
3710 \lang german
3711 Nach
3712 \lang english
3713  or 
3714 \lang german
3715 Bis
3716 \lang english
3717 , depending upon exactly what the English 
3718 \begin_inset Quotes eld
3719 \end_inset
3720
3721 to
3722 \begin_inset Quotes erd
3723 \end_inset
3724
3725  means.
3726  GNU 
3727 \begin_inset Flex Code
3728 status collapsed
3729
3730 \begin_layout Plain Layout
3731 gettext
3732 \end_layout
3733
3734 \end_inset
3735
3736  does not handle such ambiguous translations.
3737  Therefore you have to add some context information to the message: Instead
3738  of 
3739 \begin_inset Flex Code
3740 status collapsed
3741
3742 \begin_layout Plain Layout
3743 To
3744 \end_layout
3745
3746 \end_inset
3747
3748  it becomes 
3749 \begin_inset Flex Code
3750 status collapsed
3751
3752 \begin_layout Plain Layout
3753 To[[as in 'From format x to format y']]
3754 \end_layout
3755
3756 \end_inset
3757
3758  and 
3759 \begin_inset Flex Code
3760 status collapsed
3761
3762 \begin_layout Plain Layout
3763 To[[as in 'From page x to page y']].
3764 \end_layout
3765
3766 \end_inset
3767
3768  Now the two occurrences of 
3769 \begin_inset Flex Code
3770 status collapsed
3771
3772 \begin_layout Plain Layout
3773 To
3774 \end_layout
3775
3776 \end_inset
3777
3778  are different for 
3779 \begin_inset Flex Code
3780 status collapsed
3781
3782 \begin_layout Plain Layout
3783 gettext
3784 \end_layout
3785
3786 \end_inset
3787
3788  and can be translated correctly to 
3789 \lang german
3790 Nach
3791 \lang english
3792  and 
3793 \lang german
3794 Bis
3795 \lang english
3796 , respectively.
3797 \end_layout
3798
3799 \begin_layout Standard
3800 Of course the context information needs to be stripped off the original
3801  message when no translation is used.
3802  Therefore you have to put it in double square brackets at the end of the
3803  message (see the example above).
3804  The translation mechanism of \SpecialChar LyX
3805  ensures that everything in double square
3806  brackets at the end of messages is removed before displaying the message.
3807 \end_layout
3808
3809 \begin_layout Subsection
3810 Translating the documentation.
3811 \end_layout
3812
3813 \begin_layout Standard
3814 The online documentation (in the 
3815 \begin_inset Flex Noun
3816 status collapsed
3817
3818 \begin_layout Plain Layout
3819 Help
3820 \end_layout
3821
3822 \end_inset
3823
3824 -menu) can (and should!) be translated.
3825  If there are translated versions of the documentation available
3826 \begin_inset Foot
3827 status collapsed
3828
3829 \begin_layout Plain Layout
3830 As of March 2008, at least some of the documents have been translated into
3831  fourteen languages, with the Tutorial available in a few more.
3832 \end_layout
3833
3834 \end_inset
3835
3836  and the locale is set accordingly, these will be used automagically by
3837  \SpecialChar LyX
3838 .
3839  \SpecialChar LyX
3840  looks for translated versions as 
3841 \begin_inset Flex Code
3842 status collapsed
3843
3844 \begin_layout Plain Layout
3845 LyXDir/doc/xx/DocName.lyx
3846 \end_layout
3847
3848 \end_inset
3849
3850 , where 
3851 \begin_inset Flex Code
3852 status collapsed
3853
3854 \begin_layout Plain Layout
3855 xx
3856 \end_layout
3857
3858 \end_inset
3859
3860  is the code for the language currently in use.
3861  If there are no translated documents, the default English versions will
3862  be displayed.
3863  Note that the translated versions must have the same filenames (
3864 \begin_inset Flex Code
3865 status collapsed
3866
3867 \begin_layout Plain Layout
3868 DocName
3869 \end_layout
3870
3871 \end_inset
3872
3873  above) as the original.
3874  If you feel up to translating the documentation (an excellent way to proof-read
3875  the original documentation by the way!), there are a few things you should
3876  do right away:
3877 \end_layout
3878
3879 \begin_layout Itemize
3880 Check out the documentation translation web page at 
3881 \begin_inset CommandInset href
3882 LatexCommand href
3883 name "https://www.lyx.org/Translation"
3884 target "https://www.lyx.org/Translation"
3885 literal "false"
3886
3887 \end_inset
3888
3889 .
3890  That way, you can find out which (if any) documents have already been translate
3891 d into your language.
3892  You can also find out who (if anyone) is organizing the effort to translate
3893  the documentation into your language.
3894  If no one is organizing the effort, please let us know that you're interested.
3895 \end_layout
3896
3897 \begin_layout Standard
3898 Once you get to actually translating, here's a few hints for you that may
3899  save you trouble:
3900 \end_layout
3901
3902 \begin_layout Itemize
3903 Join the documentation team! There is information on how to do that in 
3904 \begin_inset Flex Code
3905 status collapsed
3906
3907 \begin_layout Plain Layout
3908 Intro.lyx
3909 \end_layout
3910
3911 \end_inset
3912
3913  (
3914 \begin_inset Flex Noun
3915 status collapsed
3916
3917 \begin_layout Plain Layout
3918 Help\SpecialChar menuseparator
3919 Introduction
3920 \end_layout
3921
3922 \end_inset
3923
3924 ), which by the way is the first document you should translate.
3925 \end_layout
3926
3927 \begin_layout Itemize
3928 Learn the typographic conventions for the language you are translating to.
3929  Typography is an ancient art and over the centuries, a great variety of
3930  conventions have developed throughout different parts of the world.
3931  Also study the professional terminology amongst typographers in your country.
3932  Inventing your own terminology will only confuse the users.
3933  
3934 \emph on
3935 (Warning! Typography is addictive!)
3936 \end_layout
3937
3938 \begin_layout Itemize
3939 Make a copy of the document.
3940  This will be your working copy.
3941  You can use this as your personal translated help-file by placing it in
3942  your 
3943 \begin_inset Flex Code
3944 status collapsed
3945
3946 \begin_layout Plain Layout
3947 UserDir/doc/xx/
3948 \end_layout
3949
3950 \end_inset
3951
3952  directory.
3953 \begin_inset Note Greyedout
3954 status open
3955
3956 \begin_layout Plain Layout
3957
3958 \series bold
3959 Note:
3960 \series default
3961  For a complex document with external material (images, etc.), if you make
3962  a copy e.
3963 \begin_inset space \thinspace{}
3964 \end_inset
3965
3966 g.
3967 \begin_inset space \space{}
3968 \end_inset
3969
3970 in a temp dir, beware that the links to external material may be broken
3971  when the document is moved to a different place.
3972  The best way is to retrieve the \SpecialChar LyX
3973  tree from git (see 
3974 \begin_inset Flex URL
3975 status collapsed
3976
3977 \begin_layout Plain Layout
3978
3979 https://www.lyx.org/HowToUseGIT
3980 \end_layout
3981
3982 \end_inset
3983
3984 ) and to edit the doc file in place.
3985 \end_layout
3986
3987 \end_inset
3988
3989
3990 \end_layout
3991
3992 \begin_layout Itemize
3993 Sometimes the original document (from the \SpecialChar LyX
3994  team) will be updated.
3995  Use the source viewer at 
3996 \begin_inset CommandInset href
3997 LatexCommand href
3998 name "https://www.lyx.org/trac/timeline"
3999 target "https://www.lyx.org/trac/timeline"
4000 literal "false"
4001
4002 \end_inset
4003
4004  to see what has been changed.
4005  That way you can easily see which parts of the translated document need
4006  to be updated.
4007 \end_layout
4008
4009 \begin_layout Standard
4010 If you ever find an error in the original document, fix it and notify the
4011  rest of the documentation team of the changes! (You didn't forget to join
4012  the documentation team, did you?)
4013 \end_layout
4014
4015 \begin_layout Standard
4016 \begin_inset Branch OutDated
4017 inverted 0
4018 status collapsed
4019
4020 \begin_layout Section
4021 International Keyboard Support
4022 \end_layout
4023
4024 \begin_layout Standard
4025
4026 \emph on
4027 [Editor's Note: The following section is by
4028 \emph default
4029  
4030 \shape smallcaps
4031 \emph on
4032 Ivan Schreter
4033 \shape default
4034 .
4035  It needs to be fixed to conform to the new Documentation Style sheet and
4036  to make use of the new v1.0 features.
4037  The whole thing also needs to be merged with the section following it.-jw
4038  It may also be badly out of date.-rh (2008)]
4039 \end_layout
4040
4041 \begin_layout Subsection
4042 Defining Own Keymaps: Keymap File Format
4043 \end_layout
4044
4045 \begin_layout Standard
4046 Let's look at a keyboard definition file a little closer.
4047  It is a plain text file defining
4048 \end_layout
4049
4050 \begin_layout Itemize
4051 key-to-key or key-to-string translations
4052 \end_layout
4053
4054 \begin_layout Itemize
4055 dead keys
4056 \end_layout
4057
4058 \begin_layout Itemize
4059 dead keys exceptions
4060 \end_layout
4061
4062 \begin_layout Standard
4063 To define key-to-key or key-to-string translation, use this command:
4064 \end_layout
4065
4066 \begin_layout Quotation
4067 \begin_inset Flex Code
4068 status collapsed
4069
4070 \begin_layout Plain Layout
4071
4072 \backslash
4073 kmap
4074 \end_layout
4075
4076 \end_inset
4077
4078  
4079 \begin_inset Flex Code
4080 status collapsed
4081
4082 \begin_layout Plain Layout
4083 key
4084 \end_layout
4085
4086 \end_inset
4087
4088  outstring 
4089 \end_layout
4090
4091 \begin_layout Standard
4092 where 
4093 \begin_inset Flex Code
4094 status collapsed
4095
4096 \begin_layout Plain Layout
4097 key
4098 \end_layout
4099
4100 \end_inset
4101
4102  is the key to be translated and 
4103 \begin_inset Flex Code
4104 status collapsed
4105
4106 \begin_layout Plain Layout
4107 outstring
4108 \end_layout
4109
4110 \end_inset
4111
4112  is the string to be inserted into the document.
4113  To define dead keys, use:
4114 \end_layout
4115
4116 \begin_layout Quotation
4117 \begin_inset Flex Code
4118 status collapsed
4119
4120 \begin_layout Plain Layout
4121
4122 \backslash
4123 kmod
4124 \end_layout
4125
4126 \end_inset
4127
4128  
4129 \begin_inset Flex Code
4130 status collapsed
4131
4132 \begin_layout Plain Layout
4133 key
4134 \end_layout
4135
4136 \end_inset
4137
4138  deadkey
4139 \end_layout
4140
4141 \begin_layout Standard
4142 where 
4143 \begin_inset Flex Code
4144 status collapsed
4145
4146 \begin_layout Plain Layout
4147 key
4148 \end_layout
4149
4150 \end_inset
4151
4152  is a keyboard key and 
4153 \begin_inset Flex Code
4154 status collapsed
4155
4156 \begin_layout Plain Layout
4157 deadkey
4158 \end_layout
4159
4160 \end_inset
4161
4162  is dead key name.
4163  The following dead keys are supported (shortcut name is in parentheses):
4164 \end_layout
4165
4166 \begin_layout Quotation
4167
4168 \emph on
4169 Name
4170 \begin_inset space \hfill{}
4171 \end_inset
4172
4173 Example
4174 \end_layout
4175
4176 \begin_layout Quotation
4177 acute (acu)
4178 \begin_inset space \hfill{}
4179 \end_inset
4180
4181 áéíóú
4182 \end_layout
4183
4184 \begin_layout Quotation
4185 grave (gra)
4186 \begin_inset space \hfill{}
4187 \end_inset
4188
4189 àèìòù
4190 \end_layout
4191
4192 \begin_layout Quotation
4193 macron (mac)
4194 \begin_inset space \hfill{}
4195 \end_inset
4196
4197  ō
4198 \end_layout
4199
4200 \begin_layout Quotation
4201 tilde (til)
4202 \begin_inset space \hfill{}
4203 \end_inset
4204
4205 ñÑ
4206 \end_layout
4207
4208 \begin_layout Quotation
4209 underbar (underb)
4210 \begin_inset space \hfill{}
4211 \end_inset
4212
4213
4214 \begin_inset ERT
4215 status open
4216
4217 \begin_layout Plain Layout
4218
4219
4220 \backslash
4221 b o
4222 \end_layout
4223
4224 \end_inset
4225
4226
4227 \end_layout
4228
4229 \begin_layout Quotation
4230 cedilla (ced)
4231 \begin_inset space \hfill{}
4232 \end_inset
4233
4234 çÇ
4235 \end_layout
4236
4237 \begin_layout Quotation
4238 underdot (underd)
4239 \begin_inset space \hfill{}
4240 \end_inset
4241
4242
4243 \begin_inset ERT
4244 status open
4245
4246 \begin_layout Plain Layout
4247
4248
4249 \backslash
4250 d o
4251 \end_layout
4252
4253 \end_inset
4254
4255
4256 \end_layout
4257
4258 \begin_layout Quotation
4259 circumflex (circu)
4260 \begin_inset space \hfill{}
4261 \end_inset
4262
4263 âêîôû
4264 \end_layout
4265
4266 \begin_layout Quotation
4267 circle (circl)
4268 \begin_inset space \hfill{}
4269 \end_inset
4270
4271 ÅůŮ
4272 \end_layout
4273
4274 \begin_layout Quotation
4275 tie (tie)
4276 \begin_inset space \hfill{}
4277 \end_inset
4278
4279
4280 \begin_inset ERT
4281 status open
4282
4283 \begin_layout Plain Layout
4284
4285
4286 \backslash
4287 t o
4288 \end_layout
4289
4290 \end_inset
4291
4292
4293 \end_layout
4294
4295 \begin_layout Quotation
4296 breve (bre)
4297 \begin_inset space \hfill{}
4298 \end_inset
4299
4300 ă
4301 \begin_inset ERT
4302 status open
4303
4304 \begin_layout Plain Layout
4305
4306
4307 \backslash
4308 u o
4309 \end_layout
4310
4311 \end_inset
4312
4313
4314 \end_layout
4315
4316 \begin_layout Quotation
4317 caron (car)
4318 \begin_inset space \hfill{}
4319 \end_inset
4320
4321 čšž
4322 \end_layout
4323
4324 \begin_layout Quotation
4325 hungarian umlaut (hug)
4326 \begin_inset space \hfill{}
4327 \end_inset
4328
4329 őű
4330 \end_layout
4331
4332 \begin_layout Quotation
4333 umlaut (uml)
4334 \begin_inset space \hfill{}
4335 \end_inset
4336
4337 äöü
4338 \end_layout
4339
4340 \begin_layout Quotation
4341 dot (dot)
4342 \begin_inset space \hfill{}
4343 \end_inset
4344
4345 ż
4346 \begin_inset ERT
4347 status open
4348
4349 \begin_layout Plain Layout
4350
4351
4352 \backslash
4353 .s
4354 \end_layout
4355
4356 \end_inset
4357
4358
4359 \end_layout
4360
4361 \begin_layout Standard
4362 Since in many international keyboards there are exceptions to what some
4363  dead keys should do, you can define them using
4364 \end_layout
4365
4366 \begin_layout Quotation
4367 \begin_inset Flex Code
4368 status collapsed
4369
4370 \begin_layout Plain Layout
4371
4372 \backslash
4373 kxmod
4374 \end_layout
4375
4376 \end_inset
4377
4378  deadkey key outstring
4379 \end_layout
4380
4381 \begin_layout Standard
4382 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4383 , so you put in
4384 \end_layout
4385
4386 \begin_layout Quotation
4387 \begin_inset Flex Code
4388 status collapsed
4389
4390 \begin_layout Plain Layout
4391
4392 \backslash
4393 kxmod
4394 \end_layout
4395
4396 \end_inset
4397
4398  caron o "
4399 \backslash
4400 ^o"
4401 \end_layout
4402
4403 \begin_layout Standard
4404 to make it work correctly.
4405  Also, you have to define as exceptions dead keys over i and j, to remove
4406  the dot from them before inserting an accent mark.
4407  I will change this when the time comes, but so far I haven't had time.
4408 \end_layout
4409
4410 \begin_layout Standard
4411 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4412  double backslash.
4413  Also, quotes and 
4414 \begin_inset Flex Code
4415 status collapsed
4416
4417 \begin_layout Plain Layout
4418 #
4419 \end_layout
4420
4421 \end_inset
4422
4423  have different meaning.
4424  
4425 \begin_inset Flex Code
4426 status collapsed
4427
4428 \begin_layout Plain Layout
4429 #
4430 \end_layout
4431
4432 \end_inset
4433
4434  marks comments, quotes start and end \SpecialChar LaTeX
4435 -style commands.
4436  To enter quote, you'll need to use 
4437 \begin_inset Flex Code
4438 status collapsed
4439
4440 \begin_layout Plain Layout
4441
4442 \backslash
4443 "
4444 \end_layout
4445
4446 \end_inset
4447
4448 , to enter 
4449 \begin_inset Flex Code
4450 status collapsed
4451
4452 \begin_layout Plain Layout
4453 #
4454 \end_layout
4455
4456 \end_inset
4457
4458 , use 
4459 \begin_inset Flex Code
4460 status collapsed
4461
4462 \begin_layout Plain Layout
4463
4464 \backslash
4465 #
4466 \end_layout
4467
4468 \end_inset
4469
4470 .
4471 \end_layout
4472
4473 \begin_layout Standard
4474 If you make a keyboard description file that works for your language, please
4475  mail it to me, so I can include it in the next keymap distribution.
4476 \end_layout
4477
4478 \begin_layout Standard
4479 More keywords will be supported in keymap configuration file in future,
4480  like
4481 \end_layout
4482
4483 \begin_layout Itemize
4484 \begin_inset Flex Code
4485 status collapsed
4486
4487 \begin_layout Plain Layout
4488
4489 \backslash
4490 kinclude filename
4491 \end_layout
4492
4493 \end_inset
4494
4495
4496 \emph on
4497
4498 \begin_inset space \hfill{}
4499 \end_inset
4500
4501
4502 \begin_inset Flex Code
4503 status collapsed
4504
4505 \begin_layout Plain Layout
4506 include
4507 \end_layout
4508
4509 \end_inset
4510
4511  another file
4512 \end_layout
4513
4514 \begin_layout Itemize
4515 \begin_inset Flex Code
4516 status collapsed
4517
4518 \begin_layout Plain Layout
4519
4520 \backslash
4521 kprog program
4522 \end_layout
4523
4524 \end_inset
4525
4526
4527 \emph on
4528
4529 \begin_inset space \hfill{}
4530 \end_inset
4531
4532
4533 \begin_inset Flex Code
4534 status collapsed
4535
4536 \begin_layout Plain Layout
4537 define
4538 \end_layout
4539
4540 \end_inset
4541
4542  an external keymap translation program 
4543 \end_layout
4544
4545 \begin_layout Standard
4546 Also, it should look into 
4547 \begin_inset Flex Code
4548 status collapsed
4549
4550 \begin_layout Plain Layout
4551 lyxrc
4552 \end_layout
4553
4554 \end_inset
4555
4556  file for defaults, too (for example, a 
4557 \begin_inset Flex Code
4558 status collapsed
4559
4560 \begin_layout Plain Layout
4561
4562 \backslash
4563 kinclude
4564 \end_layout
4565
4566 \end_inset
4567
4568  option to include default keyboard).
4569 \end_layout
4570
4571 \end_inset
4572
4573
4574 \end_layout
4575
4576 \begin_layout Section
4577 International Keymap Stuff
4578 \begin_inset CommandInset label
4579 LatexCommand label
4580 name "sec:International-Keymap-Stuff"
4581
4582 \end_inset
4583
4584
4585 \end_layout
4586
4587 \begin_layout Standard
4588 \begin_inset Note Note
4589 status open
4590
4591 \begin_layout Plain Layout
4592 In doing the revisions on this document in March 2008, I did not look over
4593  this stuff, as I do not understand it.
4594  It would be good if someone else could do so.
4595  (RH)
4596 \end_layout
4597
4598 \end_inset
4599
4600
4601 \end_layout
4602
4603 \begin_layout Standard
4604 The next two sections describe the 
4605 \begin_inset Flex Code
4606 status collapsed
4607
4608 \begin_layout Plain Layout
4609
4610 \shape up
4611 .kmap
4612 \end_layout
4613
4614 \end_inset
4615
4616  and 
4617 \begin_inset Flex Code
4618 status collapsed
4619
4620 \begin_layout Plain Layout
4621
4622 \shape up
4623 .cdef
4624 \end_layout
4625
4626 \end_inset
4627
4628  file syntax in detail.
4629  These sections should help you design your own key map if the ones provided
4630  do not meet your needs.
4631 \end_layout
4632
4633 \begin_layout Subsection
4634 The .kmap File
4635 \end_layout
4636
4637 \begin_layout Standard
4638
4639 \shape up
4640 .
4641 \begin_inset Flex Code
4642 status collapsed
4643
4644 \begin_layout Plain Layout
4645 kmap
4646 \end_layout
4647
4648 \end_inset
4649
4650  file maps keystrokes to characters or strings.
4651  As the name suggests, it sets a keyboard mapping.
4652  The 
4653 \begin_inset Flex Code
4654 status collapsed
4655
4656 \begin_layout Plain Layout
4657 .kmap
4658 \end_layout
4659
4660 \end_inset
4661
4662
4663 \shape default
4664  file keywords 
4665 \shape up
4666
4667 \begin_inset Flex Code
4668 status collapsed
4669
4670 \begin_layout Plain Layout
4671
4672 \shape up
4673 kmap
4674 \end_layout
4675
4676 \end_inset
4677
4678
4679 \shape default
4680 ,
4681 \shape up
4682  
4683 \shape default
4684
4685 \begin_inset Flex Code
4686 status collapsed
4687
4688 \begin_layout Plain Layout
4689
4690 \shape up
4691 kmod
4692 \end_layout
4693
4694 \end_inset
4695
4696 ,
4697 \shape up
4698  
4699 \shape default
4700
4701 \begin_inset Flex Code
4702 status collapsed
4703
4704 \begin_layout Plain Layout
4705
4706 \shape up
4707 kxmod
4708 \end_layout
4709
4710 \end_inset
4711
4712 , and 
4713 \begin_inset Flex Code
4714 status collapsed
4715
4716 \begin_layout Plain Layout
4717
4718 \shape up
4719 kcomb
4720 \end_layout
4721
4722 \end_inset
4723
4724  are described in this section.
4725 \end_layout
4726
4727 \begin_layout Labeling
4728 \labelwidthstring 00.00.0000
4729 \begin_inset Flex Code
4730 status collapsed
4731
4732 \begin_layout Plain Layout
4733
4734 \shape up
4735 kmap
4736 \end_layout
4737
4738 \end_inset
4739
4740  Map a character to a string
4741 \end_layout
4742
4743 \begin_layout LyX-Code
4744
4745 \backslash
4746 kmap 
4747 \family roman
4748 \emph on
4749 char
4750 \family default
4751 \emph default
4752  
4753 \family roman
4754 \emph on
4755 string
4756 \end_layout
4757
4758 \begin_layout Standard
4759 This will ma
4760 \family roman
4761 p
4762 \family default
4763  
4764 \family roman
4765 \emph on
4766 char
4767 \family default
4768 \emph default
4769  
4770 \family roman
4771 to
4772 \family default
4773  
4774 \family roman
4775 \emph on
4776 string
4777 \emph default
4778 .
4779  Note that in
4780 \family default
4781  
4782 \family roman
4783 \emph on
4784 string
4785 \emph default
4786 ,
4787 \family default
4788  
4789 \family roman
4790 \shape up
4791 the double-quote (")
4792 \family default
4793 \shape default
4794  
4795 \family roman
4796 and
4797 \family default
4798  
4799 \family roman
4800 \shape up
4801 the backslash (
4802 \backslash
4803 )
4804 \family default
4805 \shape default
4806  
4807 \family roman
4808 must be escaped with a preceding backslash (
4809 \shape up
4810
4811 \backslash
4812
4813 \shape default
4814 )
4815 \family default
4816 .
4817 \end_layout
4818
4819 \begin_layout Standard
4820 An example of a 
4821 \begin_inset Flex Noun
4822 status collapsed
4823
4824 \begin_layout Plain Layout
4825
4826 \shape up
4827 kmap
4828 \end_layout
4829
4830 \end_inset
4831
4832  statement to cause the symbol 
4833 \begin_inset Flex Noun
4834 status collapsed
4835
4836 \begin_layout Plain Layout
4837
4838 \shape up
4839 /
4840 \end_layout
4841
4842 \end_inset
4843
4844  to be output for the keystroke 
4845 \begin_inset Flex Noun
4846 status collapsed
4847
4848 \begin_layout Plain Layout
4849
4850 \shape up
4851 &
4852 \end_layout
4853
4854 \end_inset
4855
4856  is:
4857 \end_layout
4858
4859 \begin_layout LyX-Code
4860
4861 \backslash
4862 kmap & /
4863 \end_layout
4864
4865 \begin_layout Labeling
4866 \labelwidthstring 00.00.0000
4867 \begin_inset Flex Code
4868 status collapsed
4869
4870 \begin_layout Plain Layout
4871
4872 \shape up
4873 kmod
4874 \end_layout
4875
4876 \end_inset
4877
4878  Specify an accent character
4879 \end_layout
4880
4881 \begin_layout LyX-Code
4882
4883 \backslash
4884 kmod 
4885 \family roman
4886 \emph on
4887 char accent allowed
4888 \end_layout
4889
4890 \begin_layout Standard
4891 This will make the cha
4892 \family roman
4893 racter
4894 \family default
4895  
4896 \family roman
4897 \emph on
4898 char
4899 \family default
4900 \emph default
4901  
4902 \family roman
4903 \shape up
4904 \emph on
4905 be an accent
4906 \family default
4907 \shape default
4908 \emph default
4909  
4910 \family roman
4911 \shape up
4912 on the
4913 \family default
4914 \shape default
4915  
4916 \family roman
4917 \shape up
4918 \emph on
4919 allowed
4920 \family default
4921 \shape default
4922 \emph default
4923  
4924 \family roman
4925 \shape up
4926 cha
4927 \family default
4928 racter(s).
4929  This is the dead key
4930 \begin_inset Foot
4931 status collapsed
4932
4933 \begin_layout Plain Layout
4934 The term 
4935 \family roman
4936 \emph on
4937 dead key
4938 \family default
4939 \emph default
4940  refers to a key that does not produce a character by itself, but when followed
4941  with another key, produces the desired accent character.
4942  For example, a German characte
4943 \family roman
4944 r with an umlaut like
4945 \family default
4946  
4947 \family roman
4948 \emph on
4949 ä
4950 \family default
4951 \emph default
4952  
4953 \family roman
4954 can be produced in this manner.
4955 \end_layout
4956
4957 \end_inset
4958
4959  mechanism.
4960  
4961 \end_layout
4962
4963 \begin_layout Standard
4964 If you 
4965 \family roman
4966 hit
4967 \family default
4968  
4969 \family roman
4970 \emph on
4971 char
4972 \family default
4973 \emph default
4974  
4975 \family roman
4976 and then another key not in
4977 \family default
4978  
4979 \family roman
4980 \emph on
4981 allowed
4982 \emph default
4983 , you will get a
4984 \family default
4985  
4986 \family roman
4987 \emph on
4988 char
4989 \family default
4990 \emph default
4991  
4992 \family roman
4993 followed by the other, not allowed key, as output.
4994
4995 \family default
4996  Note that a 
4997 \begin_inset Flex Noun
4998 status collapsed
4999
5000 \begin_layout Plain Layout
5001
5002 \shape up
5003 Backspace
5004 \end_layout
5005
5006 \end_inset
5007
5008  cancels a dead key, so if 
5009 \family roman
5010 you hit
5011 \family default
5012  
5013 \family roman
5014 \emph on
5015 char
5016 \family default
5017 \emph default
5018  
5019 \begin_inset Flex Noun
5020 status collapsed
5021
5022 \begin_layout Plain Layout
5023
5024 \shape up
5025 \emph on
5026 Backspace
5027 \end_layout
5028
5029 \end_inset
5030
5031 , the cursor will not go one position backwards but will instead cancel
5032  the effect t
5033 \family roman
5034 hat
5035 \family default
5036  
5037 \family roman
5038 \shape up
5039 \emph on
5040 char
5041 \family default
5042 \shape default
5043 \emph default
5044  
5045 \family roman
5046 \shape up
5047 might have had on the next keystroke.
5048  
5049 \end_layout
5050
5051 \begin_layout Standard
5052 The following example specifies that the character ' is to be an acute accent,
5053  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
5054 \end_layout
5055
5056 \begin_layout LyX-Code
5057
5058 \backslash
5059 kmod ' acute aeiouAEIOU
5060 \end_layout
5061
5062 \begin_layout Labeling
5063 \labelwidthstring 00.00.0000
5064 \begin_inset Flex Code
5065 status collapsed
5066
5067 \begin_layout Plain Layout
5068 kxmod
5069 \end_layout
5070
5071 \end_inset
5072
5073  Specify an exception to the accent character
5074 \end_layout
5075
5076 \begin_layout LyX-Code
5077
5078 \backslash
5079 kxmod  
5080 \family roman
5081 \emph on
5082 accent char result
5083 \end_layout
5084
5085 \begin_layout Standard
5086 This defines an exce
5087 \family roman
5088 ption for
5089 \family default
5090  
5091 \family roman
5092 \emph on
5093 accent
5094 \family default
5095 \emph default
5096  
5097 \family roman
5098 on
5099 \family default
5100  
5101 \family roman
5102 \emph on
5103 char
5104 \emph default
5105 .
5106  T
5107 \shape up
5108 he
5109 \family default
5110 \shape default
5111  
5112 \family roman
5113 \shape up
5114 \emph on
5115 accent
5116 \family default
5117 \shape default
5118 \emph default
5119  
5120 \family roman
5121 \shape up
5122 must
5123 \family default
5124 \shape default
5125  
5126 \shape up
5127 have been assigned a keystroke with a previous
5128 \shape default
5129  
5130 \begin_inset Flex Code
5131 status collapsed
5132
5133 \begin_layout Plain Layout
5134
5135 \shape up
5136
5137 \backslash
5138 kmo
5139 \shape default
5140 d
5141 \end_layout
5142
5143 \end_inset
5144
5145  declar
5146 \family roman
5147 ation and
5148 \family default
5149  
5150 \family roman
5151 \emph on
5152 char
5153 \family default
5154 \emph default
5155  
5156 \family roman
5157 must not belong in the
5158 \family default
5159  
5160 \family roman
5161 \emph on
5162 allowed
5163 \family default
5164 \emph default
5165  
5166 \family roman
5167 set of
5168 \family default
5169  
5170 \family roman
5171 \emph on
5172 accent
5173 \emph default
5174 .
5175  When
5176 \family default
5177  
5178 \family roman
5179 \shape up
5180 you enter the
5181 \family default
5182 \shape default
5183  
5184 \family roman
5185 \shape up
5186 \emph on
5187 accent char
5188 \family default
5189 \shape default
5190 \emph default
5191  
5192 \family roman
5193 \shape up
5194 sequence,
5195 \family default
5196 \shape default
5197  
5198 \family roman
5199 \shape up
5200 \emph on
5201 result
5202 \emph default
5203  is produced.
5204  If such a declaration does not exist in
5205 \family default
5206 \shape default
5207  
5208 \shape up
5209 the
5210 \shape default
5211  
5212 \begin_inset Flex Code
5213 status collapsed
5214
5215 \begin_layout Plain Layout
5216
5217 \shape up
5218 .kmap
5219 \end_layout
5220
5221 \end_inset
5222
5223  file and yo
5224 \family roman
5225 u enter
5226 \family default
5227  
5228 \family roman
5229 \emph on
5230 accent char
5231 \emph default
5232 , you get
5233 \family default
5234  
5235 \family roman
5236 \emph on
5237 accent_key char
5238 \emph default
5239  where
5240 \family default
5241  
5242 \family roman
5243 \emph on
5244 accent_key
5245 \emph default
5246  is the first arg
5247 \family default
5248 ument of the 
5249 \begin_inset Flex Code
5250 status collapsed
5251
5252 \begin_layout Plain Layout
5253
5254 \shape up
5255
5256 \backslash
5257 kmod
5258 \end_layout
5259
5260 \end_inset
5261
5262  declaration.
5263  
5264 \end_layout
5265
5266 \begin_layout Standard
5267 The following command produces causes äi to be produced when you enter acute-i
5268  ('i):
5269 \end_layout
5270
5271 \begin_layout LyX-Code
5272
5273 \backslash
5274 kxmod acute i "
5275 \backslash
5276
5277 \backslash
5278 '{
5279 \backslash
5280
5281 \backslash
5282 i}"
5283 \end_layout
5284
5285 \begin_layout Labeling
5286 \labelwidthstring 00.00.0000
5287 \begin_inset Flex Code
5288 status collapsed
5289
5290 \begin_layout Plain Layout
5291 kcomb
5292 \end_layout
5293
5294 \end_inset
5295
5296  Combine two accent characters
5297 \end_layout
5298
5299 \begin_layout LyX-Code
5300
5301 \backslash
5302 kcomb 
5303 \family roman
5304 \emph on
5305 accent1 accent2 allowed
5306 \end_layout
5307
5308 \begin_layout Standard
5309 This one is getting pretty esoteric.
5310  It allows you to combine the effect 
5311 \family roman
5312 of
5313 \family default
5314  
5315 \family roman
5316 \emph on
5317 accent1
5318 \family default
5319 \emph default
5320  
5321 \family roman
5322 and
5323 \family default
5324  
5325 \family roman
5326 \emph on
5327 accent2
5328 \family default
5329 \emph default
5330  
5331 \family roman
5332 (in that order!) on
5333 \family default
5334  
5335 \family roman
5336 \emph on
5337 allowed
5338 \family default
5339 \emph default
5340  
5341 \family roman
5342 chars.
5343  The keystrokes for
5344 \family default
5345  
5346 \family roman
5347 \emph on
5348 accent1
5349 \family default
5350 \emph default
5351  
5352 \family roman
5353 and
5354 \family default
5355  
5356 \family roman
5357 \emph on
5358 accent2
5359 \family default
5360 \emph default
5361  
5362 \family roman
5363 must have be
5364 \family default
5365 en set with a 
5366 \begin_inset Flex Code
5367 status collapsed
5368
5369 \begin_layout Plain Layout
5370
5371 \shape up
5372
5373 \backslash
5374 kmod
5375 \end_layout
5376
5377 \end_inset
5378
5379  command at 
5380 \family roman
5381 a
5382 \family default
5383  
5384 \family roman
5385 \emph on
5386 previous
5387 \family default
5388 \emph default
5389  
5390 \family roman
5391 point in the
5392 \family default
5393  file.
5394  
5395 \end_layout
5396
5397 \begin_layout Standard
5398 Consider this example from the 
5399 \begin_inset Flex Code
5400 status collapsed
5401
5402 \begin_layout Plain Layout
5403
5404 \shape up
5405 greek.kmap
5406 \end_layout
5407
5408 \end_inset
5409
5410  file:
5411 \end_layout
5412
5413 \begin_layout LyX-Code
5414
5415 \backslash
5416 kmod ; acute aeioyvhAEIOYVH 
5417 \backslash
5418 kmod : umlaut iyIY 
5419 \backslash
5420 kcomb acute umlaut iyIY
5421 \end_layout
5422
5423 \begin_layout Standard
5424 This allows you to press 
5425 \begin_inset Flex Noun
5426 status collapsed
5427
5428 \begin_layout Plain Layout
5429
5430 \shape up
5431 ;:i
5432 \end_layout
5433
5434 \end_inset
5435
5436  and get the effect of 
5437 \begin_inset Flex Code
5438 status collapsed
5439
5440 \begin_layout Plain Layout
5441
5442 \shape up
5443
5444 \backslash
5445 '{
5446 \backslash
5447 "{i}}
5448 \end_layout
5449
5450 \end_inset
5451
5452 .
5453  
5454 \family roman
5455 \shape up
5456 A backspace
5457 \family default
5458 \shape default
5459  in this case cancels the last dead key, so if you press 
5460 \begin_inset Flex Noun
5461 status collapsed
5462
5463 \begin_layout Plain Layout
5464
5465 \shape up
5466 ;: Backspace i
5467 \end_layout
5468
5469 \end_inset
5470
5471  you get 
5472 \begin_inset Flex Code
5473 status collapsed
5474
5475 \begin_layout Plain Layout
5476
5477 \shape up
5478
5479 \backslash
5480 '{i}
5481 \end_layout
5482
5483 \end_inset
5484
5485 .
5486 \end_layout
5487
5488 \begin_layout Subsection
5489 The .cdef File
5490 \end_layout
5491
5492 \begin_layout Standard
5493 After the 
5494 \begin_inset Flex Code
5495 status collapsed
5496
5497 \begin_layout Plain Layout
5498
5499 \shape up
5500 .kmap
5501 \end_layout
5502
5503 \end_inset
5504
5505  mapping is performed, a 
5506 \begin_inset Flex Code
5507 status collapsed
5508
5509 \begin_layout Plain Layout
5510
5511 \shape up
5512 .cde
5513 \shape default
5514 f
5515 \end_layout
5516
5517 \end_inset
5518
5519  file maps the strings that the symbols generate to characters in the current
5520  font.
5521  The \SpecialChar LyX
5522  distribution currently includes at least the 
5523 \begin_inset Flex Code
5524 status collapsed
5525
5526 \begin_layout Plain Layout
5527
5528 \shape up
5529 iso8859-1.cdef
5530 \end_layout
5531
5532 \end_inset
5533
5534  and 
5535 \begin_inset Flex Code
5536 status collapsed
5537
5538 \begin_layout Plain Layout
5539
5540 \shape up
5541 iso8859-2.cdef
5542 \end_layout
5543
5544 \end_inset
5545
5546  files.
5547 \end_layout
5548
5549 \begin_layout Standard
5550 In general the 
5551 \begin_inset Flex Code
5552 status collapsed
5553
5554 \begin_layout Plain Layout
5555
5556 \shape up
5557 .cdef
5558 \end_layout
5559
5560 \end_inset
5561
5562  file is a sequence of declarations of the form
5563 \end_layout
5564
5565 \begin_layout LyX-Code
5566
5567 \family roman
5568 \emph on
5569 char_index_in_set
5570 \family default
5571 \emph default
5572  
5573 \family roman
5574 \emph on
5575  string
5576 \end_layout
5577
5578 \begin_layout Standard
5579 For example, in order to map 
5580 \begin_inset Flex Noun
5581 status collapsed
5582
5583 \begin_layout Plain Layout
5584
5585 \shape up
5586
5587 \backslash
5588 '{e}
5589 \end_layout
5590
5591 \end_inset
5592
5593  to the corresponding character in the iso-8859-1 set (233), the following
5594  declaration is used
5595 \end_layout
5596
5597 \begin_layout LyX-Code
5598 233 "
5599 \backslash
5600
5601 \backslash
5602 '{e}"
5603 \end_layout
5604
5605 \begin_layout Standard
5606 with 
5607 \begin_inset Flex Code
5608 status collapsed
5609
5610 \begin_layout Plain Layout
5611
5612 \backslash
5613
5614 \end_layout
5615
5616 \end_inset
5617
5618  and 
5619 \begin_inset Flex Code
5620 status collapsed
5621
5622 \begin_layout Plain Layout
5623 "
5624 \end_layout
5625
5626 \end_inset
5627
5628  being escap
5629 \family roman
5630 ed in
5631 \family default
5632  
5633 \family roman
5634 \emph on
5635 string
5636 \emph default
5637 .
5638  Note that
5639 \family default
5640  the same character can apply to more than one string.
5641  In the 
5642 \begin_inset Flex Code
5643 status collapsed
5644
5645 \begin_layout Plain Layout
5646 i
5647 \shape up
5648 so-8859-7.cdef
5649 \end_layout
5650
5651 \end_inset
5652
5653  file you have
5654 \end_layout
5655
5656 \begin_layout LyX-Code
5657 192 "
5658 \backslash
5659
5660 \backslash
5661 '{
5662 \backslash
5663
5664 \backslash
5665
5666 \backslash
5667 "{i}}"
5668 \begin_inset Newline newline
5669 \end_inset
5670
5671 192 "
5672 \backslash
5673
5674 \backslash
5675
5676 \backslash
5677 "{
5678 \backslash
5679
5680 \backslash
5681 '{i}}"
5682 \end_layout
5683
5684 \begin_layout Standard
5685 If \SpecialChar LyX
5686  cannot find a mapping for the string produced by the keystroke or a
5687  deadkey sequence, it will check if it looks like an accented char and try
5688  to draw an accent over the character on screen.
5689 \end_layout
5690
5691 \begin_layout Subsection
5692 Dead Keys
5693 \end_layout
5694
5695 \begin_layout Standard
5696 There is a second way to add support for international characters through
5697  so-called dead-keys.
5698  A dead-key works in combination with a letter to produce an accented character.
5699  Here, we'll explain how to create a really simple dead-key to illustrate
5700  how they work.
5701 \end_layout
5702
5703 \begin_layout Standard
5704 Suppose you happen to need the circumflex character, 
5705 \begin_inset Quotes eld
5706 \end_inset
5707
5708  ̂
5709 \begin_inset Quotes erd
5710 \end_inset
5711
5712 .
5713  You could bind the 
5714 \begin_inset Flex Noun
5715 status collapsed
5716
5717 \begin_layout Plain Layout
5718 ^
5719 \end_layout
5720
5721 \end_inset
5722
5723 -key [a.k.a.
5724 \begin_inset space ~
5725 \end_inset
5726
5727
5728 \begin_inset Flex Noun
5729 status collapsed
5730
5731 \begin_layout Plain Layout
5732 Shift-6
5733 \end_layout
5734
5735 \end_inset
5736
5737 ] to the \SpecialChar LyX
5738  command 
5739 \begin_inset Flex Code
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 accent-circumflex
5744 \end_layout
5745
5746 \end_inset
5747
5748  in your 
5749 \begin_inset Flex Code
5750 status collapsed
5751
5752 \begin_layout Plain Layout
5753 lyxrc
5754 \end_layout
5755
5756 \end_inset
5757
5758  file.
5759  Now, whenever you type the 
5760 \begin_inset Flex Noun
5761 status collapsed
5762
5763 \begin_layout Plain Layout
5764 ^
5765 \end_layout
5766
5767 \end_inset
5768
5769 -key followed by a letter, that letter will have a circumflex accent on
5770  it.
5771  For example, the sequence 
5772 \begin_inset Quotes eld
5773 \end_inset
5774
5775
5776 \begin_inset Flex Noun
5777 status collapsed
5778
5779 \begin_layout Plain Layout
5780 ^e
5781 \end_layout
5782
5783 \end_inset
5784
5785
5786 \begin_inset Quotes erd
5787 \end_inset
5788
5789  produces the letter: 
5790 \begin_inset Quotes eld
5791 \end_inset
5792
5793 ê
5794 \begin_inset Quotes erd
5795 \end_inset
5796
5797 .
5798  If you tried to type 
5799 \begin_inset Quotes eld
5800 \end_inset
5801
5802
5803 \begin_inset Flex Noun
5804 status collapsed
5805
5806 \begin_layout Plain Layout
5807 ^t
5808 \end_layout
5809
5810 \end_inset
5811
5812
5813 \begin_inset Quotes erd
5814 \end_inset
5815
5816 , however, \SpecialChar LyX
5817  will complain with a beep, since a 
5818 \begin_inset Quotes eld
5819 \end_inset
5820
5821
5822 \begin_inset Flex Noun
5823 status collapsed
5824
5825 \begin_layout Plain Layout
5826 t
5827 \end_layout
5828
5829 \end_inset
5830
5831
5832 \begin_inset Quotes erd
5833 \end_inset
5834
5835  never takes a circumflex accent.
5836  Hitting 
5837 \begin_inset Flex Noun
5838 status collapsed
5839
5840 \begin_layout Plain Layout
5841 Space
5842 \end_layout
5843
5844 \end_inset
5845
5846  after a dead-key produces the bare-accent.
5847  Please note this last point! If you bind a key to a dead-key, you'll need
5848  to rebind the character on that key to yet another key.
5849  Binding the 
5850 \begin_inset Flex Noun
5851 status collapsed
5852
5853 \begin_layout Plain Layout
5854 ,-key
5855 \end_layout
5856
5857 \end_inset
5858
5859  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5860 \end_layout
5861
5862 \begin_layout Standard
5863 One common way to bind dead-keys is to use 
5864 \begin_inset Flex Noun
5865 status collapsed
5866
5867 \begin_layout Plain Layout
5868 Meta-
5869 \end_layout
5870
5871 \end_inset
5872
5873
5874 \begin_inset Flex Noun
5875 status collapsed
5876
5877 \begin_layout Plain Layout
5878 Ctrl-
5879 \end_layout
5880
5881 \end_inset
5882
5883 , and 
5884 \begin_inset Flex Noun
5885 status collapsed
5886
5887 \begin_layout Plain Layout
5888 Shift-
5889 \end_layout
5890
5891 \end_inset
5892
5893  in combination with an accent, like 
5894 \begin_inset Quotes eld
5895 \end_inset
5896
5897
5898 \begin_inset Flex Noun
5899 status collapsed
5900
5901 \begin_layout Plain Layout
5902 ~
5903 \end_layout
5904
5905 \end_inset
5906
5907
5908 \begin_inset Quotes erd
5909 \end_inset
5910
5911  or 
5912 \begin_inset Quotes eld
5913 \end_inset
5914
5915
5916 \begin_inset Flex Noun
5917 status collapsed
5918
5919 \begin_layout Plain Layout
5920 ,
5921 \end_layout
5922
5923 \end_inset
5924
5925
5926 \begin_inset Quotes erd
5927 \end_inset
5928
5929  or 
5930 \begin_inset Quotes eld
5931 \end_inset
5932
5933
5934 \begin_inset Flex Noun
5935 status collapsed
5936
5937 \begin_layout Plain Layout
5938 ^
5939 \end_layout
5940
5941 \end_inset
5942
5943
5944 \begin_inset Quotes erd
5945 \end_inset
5946
5947 .
5948  Another way involves using 
5949 \begin_inset Flex Code
5950 status collapsed
5951
5952 \begin_layout Plain Layout
5953 xmodmap
5954 \end_layout
5955
5956 \end_inset
5957
5958  and 
5959 \begin_inset Flex Code
5960 status collapsed
5961
5962 \begin_layout Plain Layout
5963 xkeycaps
5964 \end_layout
5965
5966 \end_inset
5967
5968  to set up the special 
5969 \begin_inset Flex Code
5970 status collapsed
5971
5972 \begin_layout Plain Layout
5973 Mode_Switch
5974 \end_layout
5975
5976 \end_inset
5977
5978  key.
5979  The 
5980 \begin_inset Flex Code
5981 status collapsed
5982
5983 \begin_layout Plain Layout
5984 Mode_Switch
5985 \end_layout
5986
5987 \end_inset
5988
5989  acts in some ways just like 
5990 \begin_inset Flex Noun
5991 status collapsed
5992
5993 \begin_layout Plain Layout
5994 Shift
5995 \end_layout
5996
5997 \end_inset
5998
5999  and permits you to bind keys to accented characters.
6000  You can also turn keys into dead-keys by binding them to something like
6001  
6002 \begin_inset Flex Code
6003 status collapsed
6004
6005 \begin_layout Plain Layout
6006 usldead_cedilla
6007 \end_layout
6008
6009 \end_inset
6010
6011  and then binding this symbolic key to the corresponding \SpecialChar LyX
6012  command.
6013 \begin_inset Foot
6014 status collapsed
6015
6016 \begin_layout Plain Layout
6017 Note from 
6018 \noun on
6019 John Weiss
6020 \noun default
6021 : This is exactly what I do in my 
6022 \begin_inset Flex Code
6023 status collapsed
6024
6025 \begin_layout Plain Layout
6026 ~/.lyx/lyxrc
6027 \end_layout
6028
6029 \end_inset
6030
6031  and my 
6032 \begin_inset Flex Code
6033 status collapsed
6034
6035 \begin_layout Plain Layout
6036 ~/.xmodmap
6037 \end_layout
6038
6039 \end_inset
6040
6041  files.
6042  I have my 
6043 \begin_inset Flex Noun
6044 status collapsed
6045
6046 \begin_layout Plain Layout
6047 Scroll
6048 \begin_inset space ~
6049 \end_inset
6050
6051 Lock
6052 \end_layout
6053
6054 \end_inset
6055
6056  key set up as 
6057 \begin_inset Flex Code
6058 status collapsed
6059
6060 \begin_layout Plain Layout
6061 Mode_Shift
6062 \end_layout
6063
6064 \end_inset
6065
6066  and a bunch of these 
6067 \begin_inset Quotes eld
6068 \end_inset
6069
6070
6071 \begin_inset Flex Code
6072 status collapsed
6073
6074 \begin_layout Plain Layout
6075 usldead_*
6076 \end_layout
6077
6078 \end_inset
6079
6080
6081 \begin_inset Quotes erd
6082 \end_inset
6083
6084  symbolic keys bound such things as 
6085 \begin_inset Flex Noun
6086 status collapsed
6087
6088 \begin_layout Plain Layout
6089 Scroll
6090 \begin_inset space ~
6091 \end_inset
6092
6093 Lock-^
6094 \end_layout
6095
6096 \end_inset
6097
6098  and 
6099 \begin_inset Flex Noun
6100 status collapsed
6101
6102 \begin_layout Plain Layout
6103 Scroll
6104 \begin_inset space ~
6105 \end_inset
6106
6107 Lock-~
6108 \end_layout
6109
6110 \end_inset
6111
6112 .
6113  This is how I produce my accented characters.
6114 \end_layout
6115
6116 \end_inset
6117
6118  You can make just about anything into the 
6119 \begin_inset Flex Code
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 Mode_Switch
6124 \end_layout
6125
6126 \end_inset
6127
6128  key: One of the 
6129 \begin_inset Flex Noun
6130 status collapsed
6131
6132 \begin_layout Plain Layout
6133 Ctrl-
6134 \end_layout
6135
6136 \end_inset
6137
6138  keys, a spare function key, etc.
6139  As for the \SpecialChar LyX
6140  commands that produce accents, check the entry for 
6141 \begin_inset Flex Code
6142 status collapsed
6143
6144 \begin_layout Plain Layout
6145 accent-acute
6146 \end_layout
6147
6148 \end_inset
6149
6150  in the 
6151 \emph on
6152 Reference Manual
6153 \emph default
6154 .
6155  You'll find the complete list there.
6156 \end_layout
6157
6158 \begin_layout Subsection
6159 Saving your Language Configuration
6160 \end_layout
6161
6162 \begin_layout Standard
6163 You can edit your preferences so that your desired language environment
6164  is automatically configured when \SpecialChar LyX
6165  starts up, via the 
6166 \begin_inset Flex Noun
6167 status collapsed
6168
6169 \begin_layout Plain Layout
6170 Edit\SpecialChar menuseparator
6171 Preferences
6172 \end_layout
6173
6174 \end_inset
6175
6176  dialog.
6177 \end_layout
6178
6179 \begin_layout Chapter
6180
6181 \change_inserted -584632292 1610232084
6182 Creating and 
6183 \change_unchanged
6184 Installing New Document Classes, Layouts, and Templates
6185 \begin_inset CommandInset label
6186 LatexCommand label
6187 name "cha:Installing-New-Document"
6188
6189 \end_inset
6190
6191
6192 \begin_inset Argument 1
6193 status collapsed
6194
6195 \begin_layout Plain Layout
6196 Installing New Document Classes
6197 \end_layout
6198
6199 \end_inset
6200
6201
6202 \end_layout
6203
6204 \begin_layout Standard
6205 In this chapter, we describe the procedures for creating and installing
6206  new \SpecialChar LyX
6207  layout and template files, as well as offer a refresher on correctly
6208  installing new \SpecialChar LaTeX
6209  document classes.
6210  
6211 \end_layout
6212
6213 \begin_layout Standard
6214 First, let us a say a few words about how one ought to think about the relation
6215  between \SpecialChar LyX
6216  and \SpecialChar LaTeX
6217 .
6218  The thing to understand is that, in a certain sense, \SpecialChar LyX
6219  doesn't know anything
6220  about \SpecialChar LaTeX
6221 .
6222  Indeed, from \SpecialChar LyX
6223 's point of view, \SpecialChar LaTeX
6224  is just one of several 
6225 \begin_inset Quotes eld
6226 \end_inset
6227
6228 backend formats
6229 \begin_inset Quotes erd
6230 \end_inset
6231
6232  in which it is capable of producing output.
6233  Other such formats are DocBook, plaintext, and XHTML.
6234  \SpecialChar LaTeX
6235  is, of course, a particularly important format, but very little of the
6236  information \SpecialChar LyX
6237  has about \SpecialChar LaTeX
6238  is actually contained in the program itself.
6239 \begin_inset Foot
6240 status collapsed
6241
6242 \begin_layout Plain Layout
6243 Some commands are sufficiently complex that they are 
6244 \begin_inset Quotes eld
6245 \end_inset
6246
6247 hardcoded
6248 \begin_inset Quotes erd
6249 \end_inset
6250
6251  into \SpecialChar LyX
6252 .
6253  But the developers generally regard this as a Bad Thing.
6254 \end_layout
6255
6256 \end_inset
6257
6258  Rather, that information, even for the standard classes like 
6259 \begin_inset Flex Code
6260 status collapsed
6261
6262 \begin_layout Plain Layout
6263 article.cls
6264 \end_layout
6265
6266 \end_inset
6267
6268 , is contained in `layout files'.
6269  Similarly, \SpecialChar LyX
6270  itself does not know much about DocBook or XHTML.
6271  What it knows is contained in layout files.
6272 \end_layout
6273
6274 \begin_layout Standard
6275 You can think of the layout file for a given document class as a translation
6276  manual between \SpecialChar LyX
6277  constructs—paragraphs with their corresponding styles,
6278  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6279 , DocBook, or XHTML
6280  constructs.
6281  Almost everything \SpecialChar LyX
6282  knows about 
6283 \begin_inset Flex Code
6284 status collapsed
6285
6286 \begin_layout Plain Layout
6287 article.cls
6288 \end_layout
6289
6290 \end_inset
6291
6292 , for example, is contained in the file 
6293 \begin_inset Flex Code
6294 status collapsed
6295
6296 \begin_layout Plain Layout
6297 article.layout
6298 \end_layout
6299
6300 \end_inset
6301
6302  and in various other files it includes.
6303  For this reason, anyone intending to write layout files should plan to
6304  study the existing files.
6305  A good place to start is with 
6306 \begin_inset Flex Code
6307 status collapsed
6308
6309 \begin_layout Plain Layout
6310 stdsections.inc
6311 \end_layout
6312
6313 \end_inset
6314
6315 , which is included in 
6316 \begin_inset Flex Code
6317 status collapsed
6318
6319 \begin_layout Plain Layout
6320 article.layout
6321 \end_layout
6322
6323 \end_inset
6324
6325
6326 \begin_inset Flex Code
6327 status collapsed
6328
6329 \begin_layout Plain Layout
6330 book.layout
6331 \end_layout
6332
6333 \end_inset
6334
6335 , and many of the other layout files for document classes.
6336  This file is where sections and the like are defined: 
6337 \begin_inset Flex Code
6338 status collapsed
6339
6340 \begin_layout Plain Layout
6341 stdsections.inc
6342 \end_layout
6343
6344 \end_inset
6345
6346  tells \SpecialChar LyX
6347  how paragraphs that are marked with the Section, Subsection, etc,
6348  styles can be translated into corresponding \SpecialChar LaTeX
6349 , DocBook, and XHTML commands
6350  and tags.
6351  The 
6352 \begin_inset Flex Code
6353 status collapsed
6354
6355 \begin_layout Plain Layout
6356 article.layout
6357 \end_layout
6358
6359 \end_inset
6360
6361  file basically just includes several of these 
6362 \begin_inset Flex Code
6363 status collapsed
6364
6365 \begin_layout Plain Layout
6366 std*.inc
6367 \end_layout
6368
6369 \end_inset
6370
6371  files.
6372 \end_layout
6373
6374 \begin_layout Standard
6375 Defining the \SpecialChar LyX
6376 –\SpecialChar LaTeX
6377  correspondence is not the only thing layout files do, though.
6378  Their other job is to define how the \SpecialChar LyX
6379  constructs themselves will appear
6380  on-screen.
6381  The fact that layout files have these two jobs is often a source of confusion,
6382  because they are completely separate.
6383  Telling \SpecialChar LyX
6384  how to translate a certain paragraph style into \SpecialChar LaTeX
6385  does not tell
6386  \SpecialChar LyX
6387  how to display it; conversely, telling \SpecialChar LyX
6388  how to display a certain paragraph
6389  style does not tell \SpecialChar LyX
6390  how to translate it into \SpecialChar LaTeX
6391  (let alone tell \SpecialChar LaTeX
6392  how to
6393  display it).
6394  So, in general, when you define a new \SpecialChar LyX
6395  construct, you must always do two
6396  quite separate things: (i)
6397 \begin_inset space ~
6398 \end_inset
6399
6400 tell \SpecialChar LyX
6401  how to translate it into \SpecialChar LaTeX
6402  and (ii)
6403 \begin_inset space ~
6404 \end_inset
6405
6406 tell \SpecialChar LyX
6407  how to display it.
6408 \end_layout
6409
6410 \begin_layout Standard
6411 Much the same is true, of course, as regards \SpecialChar LyX
6412 's other backend formats, though
6413  XHTML is in some ways different, because in that case \SpecialChar LyX
6414  
6415 \emph on
6416 is
6417 \emph default
6418  able, to some extent, to use information about how it should display a
6419  paragraph on the screen to output information (in the form of CSS) about
6420  how the paragraph should be displayed in a browser.
6421  Even in this case, however, the distinction between what \SpecialChar LyX
6422  does internally
6423  and how things are rendered externally remains in force, and the two can
6424  be controlled separately.
6425  See 
6426 \begin_inset CommandInset ref
6427 LatexCommand ref
6428 reference "sec:Tags-for-XHTML"
6429
6430 \end_inset
6431
6432  for the details.
6433 \end_layout
6434
6435 \begin_layout Section
6436 Installing new \SpecialChar LaTeX
6437  files
6438 \end_layout
6439
6440 \begin_layout Standard
6441 Some installations may not include a \SpecialChar LaTeX
6442  package or class file that you would
6443  like to use within \SpecialChar LyX
6444 .
6445  For example, you might need Foil\SpecialChar TeX
6446 , a package for preparing slides for overhead
6447  projectors.
6448  Modern \SpecialChar LaTeX
6449  distributions like \SpecialChar TeX
6450 Live (2008 or newer) or MiK\SpecialChar TeX
6451  provide a user interface
6452  for installing such packages.
6453  For example, with MiK\SpecialChar TeX
6454 , you start the program 
6455 \begin_inset Quotes eld
6456 \end_inset
6457
6458 Package
6459 \begin_inset space ~
6460 \end_inset
6461
6462 Manager
6463 \begin_inset Quotes erd
6464 \end_inset
6465
6466  to get a list of available packages.
6467  To install one of them, right click on it or use the corresponding toolbar
6468  button.
6469 \end_layout
6470
6471 \begin_layout Standard
6472 If your \SpecialChar LaTeX
6473  distribution does not provide such a `package manager', or if the
6474  package is not available from your distribution, then follow these steps
6475  to install it manually:
6476 \end_layout
6477
6478 \begin_layout Enumerate
6479 Get the package from 
6480 \begin_inset CommandInset href
6481 LatexCommand href
6482 name "CTAN"
6483 target "http://www.ctan.org/"
6484 literal "false"
6485
6486 \end_inset
6487
6488  or wherever.
6489 \end_layout
6490
6491 \begin_layout Enumerate
6492 If the package contains a file with the ending 
6493 \begin_inset Quotes eld
6494 \end_inset
6495
6496
6497 \begin_inset Flex Code
6498 status collapsed
6499
6500 \begin_layout Plain Layout
6501 .ins
6502 \end_layout
6503
6504 \end_inset
6505
6506
6507 \begin_inset Quotes erd
6508 \end_inset
6509
6510  (is the case for Foil\SpecialChar TeX
6511 ) then open a console, change to the folder of this
6512  file and execute the command 
6513 \begin_inset Flex Code
6514 status collapsed
6515
6516 \begin_layout Plain Layout
6517 latex foiltex.ins
6518 \end_layout
6519
6520 \end_inset
6521
6522 .
6523  You have now unpacked the package and have all files to install it.
6524  Most \SpecialChar LaTeX
6525 -packages are not packed and you can skip this step.
6526 \end_layout
6527
6528 \begin_layout Enumerate
6529 Now you need to decide if the package should be available for all users
6530  or only for you.
6531 \end_layout
6532
6533 \begin_deeper
6534 \begin_layout Enumerate
6535 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6536  for all users on your system, then install it in your `local' \SpecialChar TeX
6537  tree, otherwise
6538  install it in your own `user' \SpecialChar TeX
6539  tree.
6540  Where these trees should be created, if they do not already exist, depends
6541  on your system.
6542  To find this out, look in the file 
6543 \begin_inset Flex Code
6544 status collapsed
6545
6546 \begin_layout Plain Layout
6547 texmf.cnf
6548 \end_layout
6549
6550 \end_inset
6551
6552 .
6553 \begin_inset Foot
6554 status collapsed
6555
6556 \begin_layout Plain Layout
6557 This is usually in the directory 
6558 \begin_inset Flex Code
6559 status collapsed
6560
6561 \begin_layout Plain Layout
6562 $TEXMF/web2c
6563 \end_layout
6564
6565 \end_inset
6566
6567 , though you can execute the command 
6568 \begin_inset Flex Code
6569 status collapsed
6570
6571 \begin_layout Plain Layout
6572 kpsewhich texmf.cnf
6573 \end_layout
6574
6575 \end_inset
6576
6577  to locate it.
6578 \end_layout
6579
6580 \end_inset
6581
6582  The location of the `local' \SpecialChar TeX
6583  tree is defined by the 
6584 \begin_inset Flex Code
6585 status collapsed
6586
6587 \begin_layout Plain Layout
6588 TEXMFLOCAL
6589 \end_layout
6590
6591 \end_inset
6592
6593  variable; this is usually somewhere like 
6594 \begin_inset Flex Code
6595 status collapsed
6596
6597 \begin_layout Plain Layout
6598 /usr/local/share/texmf
6599 \end_layout
6600
6601 \end_inset
6602
6603  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6604 Live
6605  distribution.
6606  The location of the `user' \SpecialChar TeX
6607  tree is defined by 
6608 \begin_inset Flex Code
6609 status collapsed
6610
6611 \begin_layout Plain Layout
6612 TEXMFHOME
6613 \end_layout
6614
6615 \end_inset
6616
6617  and is commonly 
6618 \begin_inset Flex Code
6619 status collapsed
6620
6621 \begin_layout Plain Layout
6622 $HOME/texmf
6623 \end_layout
6624
6625 \end_inset
6626
6627  or 
6628 \begin_inset Flex Code
6629 status collapsed
6630
6631 \begin_layout Plain Layout
6632
6633 \family sans
6634 $HOME/.texliveXXXX
6635 \end_layout
6636
6637 \end_inset
6638
6639 .
6640  (If these variables are not predefined, you have to define them.) You'll
6641  probably need root permissions to create or modify the `local' tree, but
6642  not for your `user' tree.
6643 \begin_inset Newline newline
6644 \end_inset
6645
6646 In general, it is recommended to install in the user tree because your user
6647  will not be modified or even overwritten when you upgrade your system.
6648  It will typically also be backed up together with everything else when
6649  you backup your home directory (which, of course, you do on a regular basis).
6650 \end_layout
6651
6652 \begin_layout Enumerate
6653 On Windows, if you want the new package to be available for all users on
6654  your system, change to the folder where \SpecialChar LaTeX
6655  is installed and then change to
6656  the subfolder 
6657 \begin_inset Flex Code
6658 status collapsed
6659
6660 \begin_layout Plain Layout
6661 ~
6662 \backslash
6663 tex
6664 \backslash
6665 latex
6666 \end_layout
6667
6668 \end_inset
6669
6670 .
6671  (For MiK\SpecialChar TeX
6672 , this would be by default the folder 
6673 \begin_inset Flex Code
6674 status collapsed
6675
6676 \begin_layout Plain Layout
6677 ~:
6678 \backslash
6679 Programs
6680 \backslash
6681 MiKTeX
6682 \backslash
6683 tex
6684 \backslash
6685 latex
6686 \end_layout
6687
6688 \end_inset
6689
6690 .)
6691 \begin_inset Foot
6692 status collapsed
6693
6694 \begin_layout Plain Layout
6695 Note that this will be the correct path only on English installations.
6696  On a German one, it would be 
6697 \begin_inset Flex Code
6698 status collapsed
6699
6700 \begin_layout Plain Layout
6701 ~:
6702 \backslash
6703 Programme
6704 \backslash
6705 MiKTeX
6706 \backslash
6707 tex
6708 \backslash
6709 latex
6710 \end_layout
6711
6712 \end_inset
6713
6714 , and similarly for other languages.
6715 \end_layout
6716
6717 \end_inset
6718
6719  Create there a new folder 
6720 \begin_inset Flex Code
6721 status collapsed
6722
6723 \begin_layout Plain Layout
6724 foiltex
6725 \end_layout
6726
6727 \end_inset
6728
6729  and copy all files of the package into it.
6730  
6731 \begin_inset Newline newline
6732 \end_inset
6733
6734 If the package should only available for you or you don't have admin permissions
6735 , do the same, but in the local \SpecialChar LaTeX
6736  folder.
6737  E.
6738 \begin_inset space \thinspace{}
6739 \end_inset
6740
6741 g., for MiK\SpecialChar TeX
6742
6743 \begin_inset space ~
6744 \end_inset
6745
6746 2.8 under Windows XP, this would be the folder:
6747 \begin_inset Newline newline
6748 \end_inset
6749
6750
6751 \family sans
6752
6753 \begin_inset Flex Code
6754 status collapsed
6755
6756 \begin_layout Plain Layout
6757 ~:
6758 \backslash
6759 Documents and Settings
6760 \backslash
6761 <username>
6762 \backslash
6763 Application Data
6764 \backslash
6765
6766 \end_layout
6767
6768 \end_inset
6769
6770
6771 \begin_inset Newline newline
6772 \end_inset
6773
6774
6775 \family default
6776
6777 \begin_inset Phantom HPhantom
6778 status open
6779
6780 \begin_layout Plain Layout
6781
6782 \family sans
6783 ~:
6784 \backslash
6785
6786 \end_layout
6787
6788 \end_inset
6789
6790
6791 \begin_inset Flex Code
6792 status collapsed
6793
6794 \begin_layout Plain Layout
6795 MiKTeX
6796 \backslash
6797 2.8
6798 \backslash
6799 tex
6800 \backslash
6801 latex
6802 \end_layout
6803
6804 \end_inset
6805
6806
6807 \begin_inset Newline newline
6808 \end_inset
6809
6810 On Vista, it would be:
6811 \begin_inset Newline newline
6812 \end_inset
6813
6814
6815 \begin_inset Flex Code
6816 status collapsed
6817
6818 \begin_layout Plain Layout
6819 ~:
6820 \backslash
6821 Users
6822 \backslash
6823 <username>
6824 \backslash
6825 AppData
6826 \backslash
6827 Roaming
6828 \backslash
6829 2.8
6830 \backslash
6831 MiKTeX
6832 \backslash
6833 tex
6834 \backslash
6835 latex
6836 \end_layout
6837
6838 \end_inset
6839
6840
6841 \end_layout
6842
6843 \end_deeper
6844 \begin_layout Enumerate
6845 Now one only need to tell \SpecialChar LaTeX
6846  that there are new files.
6847  This depends on the used \SpecialChar LaTeX
6848 -Distribution:
6849 \end_layout
6850
6851 \begin_deeper
6852 \begin_layout Enumerate
6853 For \SpecialChar TeX
6854 Live execute the command 
6855 \begin_inset Flex Code
6856 status collapsed
6857
6858 \begin_layout Plain Layout
6859 texhash
6860 \end_layout
6861
6862 \end_inset
6863
6864  from a console.
6865  If you installed the package for all users, then you will probably need
6866  to have root permissions for that.
6867 \end_layout
6868
6869 \begin_layout Enumerate
6870 For MiK\SpecialChar TeX
6871 , if you have installed the package for all users, start the program
6872  
6873 \begin_inset Quotes eld
6874 \end_inset
6875
6876 Settings
6877 \begin_inset space ~
6878 \end_inset
6879
6880 (Admin)
6881 \begin_inset Quotes erd
6882 \end_inset
6883
6884  and press the button marked 
6885 \begin_inset Quotes eld
6886 \end_inset
6887
6888 Refresh FNDB
6889 \begin_inset Quotes erd
6890 \end_inset
6891
6892 .
6893  Otherwise start the program 
6894 \begin_inset Quotes eld
6895 \end_inset
6896
6897 Settings
6898 \begin_inset Quotes erd
6899 \end_inset
6900
6901  and do the same.
6902 \end_layout
6903
6904 \end_deeper
6905 \begin_layout Enumerate
6906 Finally, you need to tell \SpecialChar LyX
6907  that there are new packages available.
6908  So, in \SpecialChar LyX
6909 , use the menu 
6910 \begin_inset Flex Noun
6911 status collapsed
6912
6913 \begin_layout Plain Layout
6914 Tools
6915 \family sans
6916 \SpecialChar menuseparator
6917 Reconfigure
6918 \end_layout
6919
6920 \end_inset
6921
6922  and then restart \SpecialChar LyX
6923 .
6924 \end_layout
6925
6926 \begin_layout Standard
6927 Now the package is installed.
6928  In our example, the document class 
6929 \begin_inset Flex Code
6930 status collapsed
6931
6932 \begin_layout Plain Layout
6933 FoilTex
6934 \end_layout
6935
6936 \end_inset
6937
6938  will now be available under 
6939 \begin_inset Flex Noun
6940 status collapsed
6941
6942 \begin_layout Plain Layout
6943 Document\SpecialChar menuseparator
6944 Settings\SpecialChar menuseparator
6945 Document Class
6946 \end_layout
6947
6948 \end_inset
6949
6950  (in the 
6951 \begin_inset Quotes eld
6952 \end_inset
6953
6954 Presentations
6955 \begin_inset Quotes erd
6956 \end_inset
6957
6958  category).
6959  
6960 \end_layout
6961
6962 \begin_layout Standard
6963 If you would like to use a \SpecialChar LaTeX
6964  document class that is not even listed in the
6965  menu 
6966 \begin_inset Flex Noun
6967 status collapsed
6968
6969 \begin_layout Plain Layout
6970 Document\SpecialChar menuseparator
6971 Settings\SpecialChar menuseparator
6972 Document Class
6973 \end_layout
6974
6975 \end_inset
6976
6977 , then you need to create a `layout' file for it.
6978  That is the topic of the next section.
6979 \end_layout
6980
6981 \begin_layout Section
6982 Types of layout files
6983 \end_layout
6984
6985 \begin_layout Standard
6986 This section describes the various sorts of \SpecialChar LyX
6987  files that contain layout informati
6988 on.
6989  These files describe various paragraph and character styles, determining
6990  how \SpecialChar LyX
6991  should display them and how they should be translated into \SpecialChar LaTeX
6992 , DocBook,
6993  XHTML, or whatever output format is being used.
6994  
6995 \end_layout
6996
6997 \begin_layout Standard
6998 We shall try to provide a thorough description of the process of writing
6999  layout files here.
7000  However, there are so many different types of documents supported even
7001  by just \SpecialChar LaTeX
7002  that we can't hope to cover every different possibility or problem
7003  you might encounter.
7004  The \SpecialChar LyX
7005  users' list is frequented by people with lots of experience with layout
7006  design who are willing to share what they've learned, so please feel free
7007  to ask questions there.
7008 \end_layout
7009
7010 \begin_layout Standard
7011 As you prepare to write a new layout, it is extremely helpful to look at
7012  the layouts distributed with \SpecialChar LyX
7013 .
7014  If you write a \SpecialChar LyX
7015  layout for a \SpecialChar LaTeX
7016  document class that might also be used by
7017  others, or write a module that might be useful to others, then you should
7018  consider posting your layout to the 
7019 \begin_inset CommandInset href
7020 LatexCommand href
7021 name "layout section on the LyX wiki"
7022 target "https://wiki.lyx.org/Layouts/Layouts"
7023 literal "false"
7024
7025 \end_inset
7026
7027  or even to the \SpecialChar LyX
7028  developers' list, so that it might be included in \SpecialChar LyX
7029  itself.
7030 \begin_inset Foot
7031 status collapsed
7032
7033 \begin_layout Plain Layout
7034 Note that \SpecialChar LyX
7035  is licensed under the General Public License, so any material
7036  that is contributed to \SpecialChar LyX
7037  must be similarly licensed.
7038 \end_layout
7039
7040 \end_inset
7041
7042
7043 \end_layout
7044
7045 \begin_layout Subsection
7046 Layout modules
7047 \begin_inset CommandInset label
7048 LatexCommand label
7049 name "subsec:Layout-modules"
7050
7051 \end_inset
7052
7053
7054 \end_layout
7055
7056 \begin_layout Standard
7057 We have spoken to this point about `layout files'.
7058  But there are different sorts of files that contain layout information.
7059  Layout files, strictly so called, have the 
7060 \begin_inset Flex Code
7061 status collapsed
7062
7063 \begin_layout Plain Layout
7064 .layout
7065 \end_layout
7066
7067 \end_inset
7068
7069  extension and provide \SpecialChar LyX
7070  with information about document classes.
7071  Since \SpecialChar LyX
7072  1.6 layout information can also be contained in layout 
7073 \emph on
7074 modules
7075 \emph default
7076 , which have the 
7077 \begin_inset Flex Code
7078 status collapsed
7079
7080 \begin_layout Plain Layout
7081 .module
7082 \end_layout
7083
7084 \end_inset
7085
7086  extension.
7087  Modules are to \SpecialChar LaTeX
7088  packages much as layouts are to \SpecialChar LaTeX
7089  classes, and some modules—such
7090  as the 
7091 \begin_inset Flex Code
7092 status collapsed
7093
7094 \begin_layout Plain Layout
7095 endnotes
7096 \end_layout
7097
7098 \end_inset
7099
7100  module—specifically provide support for one package.
7101  In a sense, layout modules are similar to included
7102 \begin_inset Foot
7103 status collapsed
7104
7105 \begin_layout Plain Layout
7106 These can have any extension, but by convention have the 
7107 \begin_inset Flex Code
7108 status collapsed
7109
7110 \begin_layout Plain Layout
7111 .inc
7112 \end_layout
7113
7114 \end_inset
7115
7116  extension.
7117 \end_layout
7118
7119 \end_inset
7120
7121  files—files like 
7122 \begin_inset Flex Code
7123 status collapsed
7124
7125 \begin_layout Plain Layout
7126 stdsections.inc
7127 \end_layout
7128
7129 \end_inset
7130
7131 —in that modules are not specific to a given document class but may be used
7132  with many different classes.
7133  The difference is that using an included file with 
7134 \begin_inset Flex Code
7135 status collapsed
7136
7137 \begin_layout Plain Layout
7138 article.cls
7139 \end_layout
7140
7141 \end_inset
7142
7143  requires editing that file.
7144  Modules, by contrast, are selected in the 
7145 \begin_inset Flex Noun
7146 status collapsed
7147
7148 \begin_layout Plain Layout
7149 Document\SpecialChar menuseparator
7150 Settings
7151 \end_layout
7152
7153 \end_inset
7154
7155  dialog.
7156 \end_layout
7157
7158 \begin_layout Standard
7159 Building modules is the easiest way to get started with layout editing,
7160  since it can be as simple as adding a single new paragraph style or flex
7161  inset.
7162  But modules may, in principle, contain anything a layout file can contain.
7163 \end_layout
7164
7165 \begin_layout Standard
7166 After creating a new module and copying it to the 
7167 \begin_inset Flex Code
7168 status collapsed
7169
7170 \begin_layout Plain Layout
7171 layouts/
7172 \end_layout
7173
7174 \end_inset
7175
7176  folder, you will need to reconfigure and then restart \SpecialChar LyX
7177  for the module to
7178  appear in the menu.
7179  However, changes you make to the module will be seen immediately, if you
7180  open 
7181 \begin_inset Flex Noun
7182 status collapsed
7183
7184 \begin_layout Plain Layout
7185 Document\SpecialChar menuseparator
7186 Settings
7187 \end_layout
7188
7189 \end_inset
7190
7191 , highlight something, and then hit 
7192 \begin_inset Quotes eld
7193 \end_inset
7194
7195 OK
7196 \begin_inset Quotes erd
7197 \end_inset
7198
7199 .
7200  
7201 \emph on
7202 It is strongly recommended that you save your work before doing this
7203 \emph default
7204 .
7205  In fact, 
7206 \emph on
7207 it is strongly recommended that you not attempt to edit modules while simultaneo
7208 usly working on actual documents
7209 \emph default
7210 .
7211  Though of course the developers strive to keep \SpecialChar LyX
7212  stable in such situations,
7213  syntax errors and the like in your module file could cause strange behavior.
7214 \end_layout
7215
7216 \begin_layout Subsubsection
7217 Local Layout
7218 \end_layout
7219
7220 \begin_layout Standard
7221 Modules are to \SpecialChar LyX
7222  as packages are to \SpecialChar LaTeX
7223 .
7224  Sometimes, however, you find yourself wanting a specific inset or character
7225  style just for one document and writing a module that will also be available
7226  to other documents makes little sense.
7227  What you need is \SpecialChar LyX
7228 's 
7229 \begin_inset Quotes eld
7230 \end_inset
7231
7232 Local Layout
7233 \begin_inset Quotes erd
7234 \end_inset
7235
7236 .
7237 \end_layout
7238
7239 \begin_layout Standard
7240 You will find it under 
7241 \family sans
7242 Document\SpecialChar menuseparator
7243 Settings\SpecialChar menuseparator
7244 Local Layout
7245 \family default
7246 .
7247  The large text box allows you to enter anything that you might enter in
7248  a layout file or module.
7249  You can think of a document's local layout, in fact, as a module that belongs
7250  just to it.
7251  So, in particular, you must enter a 
7252 \begin_inset Flex Code
7253 status collapsed
7254
7255 \begin_layout Plain Layout
7256 Format
7257 \end_layout
7258
7259 \end_inset
7260
7261  tag.
7262  Any format is acceptable, but one would normally use the format current
7263  at the time.
7264  (In \SpecialChar LyX
7265  
7266 \begin_inset Info
7267 type  "lyxinfo"
7268 arg   "version"
7269 \end_inset
7270
7271 , the current layout format is 
7272 \begin_inset Info
7273 type  "lyxinfo"
7274 arg   "layoutformat"
7275 \end_inset
7276
7277 .)
7278 \end_layout
7279
7280 \begin_layout Standard
7281 When you have entered something in the 
7282 \begin_inset Flex Code
7283 status collapsed
7284
7285 \begin_layout Plain Layout
7286 Local Layout
7287 \end_layout
7288
7289 \end_inset
7290
7291  pane, \SpecialChar LyX
7292  will enable the 
7293 \begin_inset Quotes eld
7294 \end_inset
7295
7296 Validate
7297 \begin_inset Quotes erd
7298 \end_inset
7299
7300  button at the bottom.
7301  Clicking this button will cause \SpecialChar LyX
7302  to determine whether what you have entered
7303  is valid layout information for the chosen format.
7304  \SpecialChar LyX
7305  will report the result but, unfortunately, will not tell you what errors
7306  there might have been.
7307  These will be written to the terminal, however, if \SpecialChar LyX
7308  is started from a terminal.
7309  You will not be permitted to save your local layout until you have entered
7310  something valid.
7311 \end_layout
7312
7313 \begin_layout Standard
7314 The warnings at the end of the previous section apply here, too.
7315  Do not play with local layout while you are actually working, especially
7316  if you have not saved your document.
7317  That said, using local layout with a test document can be a very convenient
7318  way to try out layout ideas, or even to start developing a module.
7319 \end_layout
7320
7321 \begin_layout Subsection
7322 Layout for 
7323 \begin_inset Flex Noun
7324 status collapsed
7325
7326 \begin_layout Plain Layout
7327 .sty
7328 \end_layout
7329
7330 \end_inset
7331
7332  files
7333 \end_layout
7334
7335 \begin_layout Standard
7336 There are two situations you are likely to encounter when wanting to support
7337  a new \SpecialChar LaTeX
7338  document class, involving style (
7339 \begin_inset Flex Code
7340 status collapsed
7341
7342 \begin_layout Plain Layout
7343 .sty
7344 \end_layout
7345
7346 \end_inset
7347
7348 ) files and \SpecialChar LaTeX2e
7349  class (
7350 \begin_inset Flex Code
7351 status collapsed
7352
7353 \begin_layout Plain Layout
7354 .cls
7355 \end_layout
7356
7357 \end_inset
7358
7359 ) .
7360  Supporting a style file is usually fairly easy.
7361  Supporting a new class file is a bit harder.
7362  We'll discuss the former in this section and the latter in the next.
7363  
7364 \change_deleted 5863208 1594239023
7365 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7366 \change_unchanged
7367
7368 \end_layout
7369
7370 \begin_layout Standard
7371 The easier case is the one in which your new document class is provided
7372  as a style file that is to be used in conjunction with an already supported
7373  document class.
7374  For the sake of the example, we'll assume that the style file is called
7375  
7376 \begin_inset Flex Noun
7377 status collapsed
7378
7379 \begin_layout Plain Layout
7380 myclass.sty
7381 \end_layout
7382
7383 \end_inset
7384
7385  and that it is meant to be used with 
7386 \begin_inset Flex Noun
7387 status collapsed
7388
7389 \begin_layout Plain Layout
7390 report.cls
7391 \end_layout
7392
7393 \end_inset
7394
7395 , which is a standard class.
7396  
7397 \end_layout
7398
7399 \begin_layout Standard
7400 Start by copying the existing class's layout file into your local directory:
7401 \begin_inset Foot
7402 status collapsed
7403
7404 \begin_layout Plain Layout
7405 Of course, which directory is your local directory will vary by platform,
7406  and \SpecialChar LyX
7407  allows you to specify your local directory on startup, too, using
7408  the 
7409 \begin_inset Flex Code
7410 status collapsed
7411
7412 \begin_layout Plain Layout
7413 -userdir
7414 \end_layout
7415
7416 \end_inset
7417
7418  option.
7419 \end_layout
7420
7421 \end_inset
7422
7423
7424 \end_layout
7425
7426 \begin_layout LyX-Code
7427 cp report.layout ~/.lyx/layouts/myclass.layout
7428 \end_layout
7429
7430 \begin_layout Standard
7431 Then edit 
7432 \begin_inset Flex Code
7433 status collapsed
7434
7435 \begin_layout Plain Layout
7436 myclass.layout
7437 \end_layout
7438
7439 \end_inset
7440
7441  and change the line: 
7442 \end_layout
7443
7444 \begin_layout LyX-Code
7445
7446 \backslash
7447 DeclareLaTeXClass{Report (Standard Class)}
7448 \end_layout
7449
7450 \begin_layout Standard
7451 to read
7452 \end_layout
7453
7454 \begin_layout LyX-Code
7455
7456 \backslash
7457 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7458 \end_layout
7459
7460 \begin_layout Standard
7461 Then add:
7462 \end_layout
7463
7464 \begin_layout LyX-Code
7465 Preamble 
7466 \begin_inset Newline newline
7467 \end_inset
7468
7469     
7470 \backslash
7471 usepackage{myclass}
7472 \begin_inset Newline newline
7473 \end_inset
7474
7475 EndPreamble
7476 \end_layout
7477
7478 \begin_layout Standard
7479 near the top of the file.
7480 \end_layout
7481
7482 \begin_layout Standard
7483 Start \SpecialChar LyX
7484  and select 
7485 \begin_inset Flex Noun
7486 status collapsed
7487
7488 \begin_layout Plain Layout
7489 Tools\SpecialChar menuseparator
7490 Reconfigure
7491 \end_layout
7492
7493 \end_inset
7494
7495 .
7496  Then restart \SpecialChar LyX
7497  and try creating a new document.
7498  You should see "
7499 \begin_inset Flex Noun
7500 status collapsed
7501
7502 \begin_layout Plain Layout
7503 Report (My Class)
7504 \end_layout
7505
7506 \end_inset
7507
7508 " as a document class option in the 
7509 \begin_inset Flex Noun
7510 status collapsed
7511
7512 \begin_layout Plain Layout
7513 Document\SpecialChar menuseparator
7514 Settings
7515 \end_layout
7516
7517 \end_inset
7518
7519  dialog.
7520  It is likely that some of the sectioning commands and such in your new
7521  class will work differently from how they worked in the base class—
7522 \begin_inset Flex Code
7523 status collapsed
7524
7525 \begin_layout Plain Layout
7526 report
7527 \end_layout
7528
7529 \end_inset
7530
7531  in this example—so you can fiddle around with the settings for the different
7532  sections if you wish.
7533  The layout information for sections is contained in 
7534 \begin_inset Flex Code
7535 status collapsed
7536
7537 \begin_layout Plain Layout
7538 stdsections.inc
7539 \end_layout
7540
7541 \end_inset
7542
7543 , but you do not need to copy and change this file.
7544  Instead, you can simply add your changes to your layout file, after the
7545  line 
7546 \begin_inset Flex Code
7547 status collapsed
7548
7549 \begin_layout Plain Layout
7550 Input stdclass.inc
7551 \end_layout
7552
7553 \end_inset
7554
7555 , which itself includes 
7556 \begin_inset Flex Code
7557 status collapsed
7558
7559 \begin_layout Plain Layout
7560 stdsections.inc
7561 \end_layout
7562
7563 \end_inset
7564
7565 .
7566  For example, you might add these lines:
7567 \end_layout
7568
7569 \begin_layout LyX-Code
7570 Style Chapter
7571 \end_layout
7572
7573 \begin_layout LyX-Code
7574     Font
7575 \end_layout
7576
7577 \begin_layout LyX-Code
7578         Family Sans
7579 \end_layout
7580
7581 \begin_layout LyX-Code
7582     EndFont
7583 \end_layout
7584
7585 \begin_layout LyX-Code
7586 End
7587 \end_layout
7588
7589 \begin_layout Standard
7590 to change the font for chapter headings to sans-serif.
7591  This will override (or, in this case, add to) the existing declaration
7592  for the Chapter style.
7593  
7594 \end_layout
7595
7596 \begin_layout Standard
7597 Your new package may also provide commands or environments not present in
7598  the base class.
7599  In this case, you will want to add these to the layout file.
7600  See 
7601 \begin_inset CommandInset ref
7602 LatexCommand ref
7603 reference "sec:TextClass"
7604
7605 \end_inset
7606
7607  for information on how to do so.
7608 \end_layout
7609
7610 \begin_layout Standard
7611 If 
7612 \begin_inset Flex Noun
7613 status collapsed
7614
7615 \begin_layout Plain Layout
7616 myclass.sty
7617 \end_layout
7618
7619 \end_inset
7620
7621  can be used with several different document classes, and even if it cannot,
7622  you might find it easiest just to write a module that you can load with
7623  the base class.
7624  The simplest possible such module would be:
7625 \end_layout
7626
7627 \begin_layout LyX-Code
7628 #
7629 \backslash
7630 DeclareLyXModule{My Class} 
7631 \end_layout
7632
7633 \begin_layout LyX-Code
7634 #DescriptionBegin 
7635 \end_layout
7636
7637 \begin_layout LyX-Code
7638 #Support for myclass.sty.
7639 \end_layout
7640
7641 \begin_layout LyX-Code
7642 #DescriptionEnd
7643 \begin_inset Newline newline
7644 \end_inset
7645
7646
7647 \end_layout
7648
7649 \begin_layout LyX-Code
7650 Format 
7651 \begin_inset Info
7652 type  "lyxinfo"
7653 arg   "layoutformat"
7654 \end_inset
7655
7656
7657 \begin_inset Newline newline
7658 \end_inset
7659
7660
7661 \end_layout
7662
7663 \begin_layout LyX-Code
7664 Preamble
7665 \begin_inset Newline newline
7666 \end_inset
7667
7668     
7669 \backslash
7670 usepackage{myclass}
7671 \begin_inset Newline newline
7672 \end_inset
7673
7674 EndPreamble
7675 \end_layout
7676
7677 \begin_layout Standard
7678 A more complex module might modify the behavior of some existing constructs
7679  or define some new ones.
7680  Again, see 
7681 \begin_inset CommandInset ref
7682 LatexCommand ref
7683 reference "sec:TextClass"
7684
7685 \end_inset
7686
7687  for discussion.
7688 \end_layout
7689
7690 \begin_layout Subsection
7691 Layout for 
7692 \begin_inset Flex Noun
7693 status collapsed
7694
7695 \begin_layout Plain Layout
7696 .cls
7697 \end_layout
7698
7699 \end_inset
7700
7701  files
7702 \end_layout
7703
7704 \begin_layout Standard
7705 There are two possibilities here.
7706  One is that the class file is itself based upon an existing document class.
7707  For example, many thesis classes are based upon 
7708 \begin_inset Flex Noun
7709 status collapsed
7710
7711 \begin_layout Plain Layout
7712 book.cls
7713 \end_layout
7714
7715 \end_inset
7716
7717 .
7718  To see whether yours is, look for a line like
7719 \end_layout
7720
7721 \begin_layout LyX-Code
7722
7723 \backslash
7724 LoadClass{book}
7725 \end_layout
7726
7727 \begin_layout Standard
7728 in the file.
7729  If so, then you may proceed largely as in the previous section, though
7730  the 
7731 \begin_inset Flex Code
7732 status collapsed
7733
7734 \begin_layout Plain Layout
7735 Declare\SpecialChar LaTeX
7736 Class
7737 \end_layout
7738
7739 \end_inset
7740
7741  line will be different.
7742  If your new class is 
7743 \begin_inset Flex Code
7744 status collapsed
7745
7746 \begin_layout Plain Layout
7747 thesis
7748 \end_layout
7749
7750 \end_inset
7751
7752  and it is based upon 
7753 \begin_inset Flex Code
7754 status collapsed
7755
7756 \begin_layout Plain Layout
7757 book
7758 \end_layout
7759
7760 \end_inset
7761
7762 , then the line should read:
7763 \begin_inset Foot
7764 status collapsed
7765
7766 \begin_layout Plain Layout
7767 And it will be easiest if you save the file to 
7768 \begin_inset Flex Code
7769 status collapsed
7770
7771 \begin_layout Plain Layout
7772 thesis.layout
7773 \end_layout
7774
7775 \end_inset
7776
7777 : \SpecialChar LyX
7778  assumes that the document class has the same name as the layout file.
7779  
7780 \end_layout
7781
7782 \end_inset
7783
7784
7785 \end_layout
7786
7787 \begin_layout LyX-Code
7788
7789 \backslash
7790 DeclareLaTeXClass[thesis,book]{thesis}
7791 \end_layout
7792
7793 \begin_layout Standard
7794 If, on the other hand, the new class is not based upon an existing class,
7795  you will probably have to 
7796 \begin_inset Quotes eld
7797 \end_inset
7798
7799 roll your own
7800 \begin_inset Quotes erd
7801 \end_inset
7802
7803  layout.
7804  We strongly suggest copying an existing layout file which uses a similar
7805  \SpecialChar LaTeX
7806  class and then modifying it, if you can do so.
7807  At least use an existing file as a starting point so you can find out what
7808  items you need to worry about.
7809  Again, the specifics are covered below.
7810 \end_layout
7811
7812 \begin_layout Subsection
7813 Creating templates
7814 \begin_inset CommandInset label
7815 LatexCommand label
7816 name "subsec:Creating-Templates"
7817
7818 \end_inset
7819
7820
7821 \end_layout
7822
7823 \begin_layout Standard
7824 Once you have written a layout file for a new document class, you might
7825  want to consider writing a 
7826 \emph on
7827 template
7828 \emph default
7829  for it, too.
7830  A template acts as a kind of tutorial for your layout, showing how it might
7831  be used, though containing dummy content.
7832  You can of course look at the various templates included with \SpecialChar LyX
7833  for ideas.
7834 \end_layout
7835
7836 \begin_layout Standard
7837 Templates are created just like usual documents: using \SpecialChar LyX
7838 .
7839  The only difference is that usual documents contain all possible settings,
7840  including the font scheme and the paper size.
7841  Usually a user doesn't want a template to overwrite his preferred settings
7842  for such parameters.
7843  For that reason, the designer of a template should remove the corresponding
7844  commands like 
7845 \begin_inset Flex Code
7846 status collapsed
7847
7848 \begin_layout Plain Layout
7849
7850 \backslash
7851 font_roman
7852 \end_layout
7853
7854 \end_inset
7855
7856  or 
7857 \begin_inset Flex Code
7858 status collapsed
7859
7860 \begin_layout Plain Layout
7861
7862 \backslash
7863 papersize
7864 \end_layout
7865
7866 \end_inset
7867
7868  from the template \SpecialChar LyX
7869  file.
7870  This can be done with any simple text-editor, for example 
7871 \begin_inset Flex Code
7872 status collapsed
7873
7874 \begin_layout Plain Layout
7875 vi
7876 \end_layout
7877
7878 \end_inset
7879
7880  or 
7881 \begin_inset Flex Code
7882 status collapsed
7883
7884 \begin_layout Plain Layout
7885 notepad
7886 \end_layout
7887
7888 \end_inset
7889
7890 .
7891 \end_layout
7892
7893 \begin_layout Standard
7894 Put the edited template files you create in 
7895 \begin_inset Flex Code
7896 status collapsed
7897
7898 \begin_layout Plain Layout
7899 UserDir/templates/
7900 \end_layout
7901
7902 \end_inset
7903
7904 , copy the ones you use from the global template directory in 
7905 \begin_inset Flex Code
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909 LyXDir/templates/
7910 \end_layout
7911
7912 \end_inset
7913
7914  to the same place, and redefine the template path in the 
7915 \begin_inset Flex Noun
7916 status collapsed
7917
7918 \begin_layout Plain Layout
7919 Tools\SpecialChar menuseparator
7920 Preferences\SpecialChar menuseparator
7921 Paths
7922 \end_layout
7923
7924 \end_inset
7925
7926  dialog.
7927 \end_layout
7928
7929 \begin_layout Standard
7930 Note, by the way, that there is a template which has a particular meaning:
7931 \begin_inset Newline linebreak
7932 \end_inset
7933
7934
7935 \begin_inset Flex Code
7936 status collapsed
7937
7938 \begin_layout Plain Layout
7939 defaults.lyx
7940 \end_layout
7941
7942 \end_inset
7943
7944 .
7945  This template is loaded every time you create a new document with 
7946 \begin_inset Flex Noun
7947 status collapsed
7948
7949 \begin_layout Plain Layout
7950 File\SpecialChar menuseparator
7951 New
7952 \end_layout
7953
7954 \end_inset
7955
7956  in order to provide useful defaults.
7957  To create this template from inside \SpecialChar LyX
7958 , all you have to do is to open a document
7959  with the correct settings, and use the 
7960 \begin_inset Flex Noun
7961 status collapsed
7962
7963 \begin_layout Plain Layout
7964 Save as Document Defaults
7965 \end_layout
7966
7967 \end_inset
7968
7969  button.
7970 \end_layout
7971
7972 \begin_layout Subsection
7973 Upgrading old layout files
7974 \end_layout
7975
7976 \begin_layout Standard
7977 The format of layout files changes with each \SpecialChar LyX
7978  release, so old layout files
7979  need to be converted to the new format.
7980  If \SpecialChar LyX
7981  reads a layout file in an older format, it automatically calls the
7982  script 
7983 \begin_inset Flex Code
7984 status collapsed
7985
7986 \begin_layout Plain Layout
7987 layout2layout.py
7988 \end_layout
7989
7990 \end_inset
7991
7992  to convert it to a temporary file in current format.
7993  The original file is left untouched.
7994  If you use the layout file often, then, you may want to convert it permanently,
7995  so that \SpecialChar LyX
7996  does not have to do so itself every time.
7997  To do this, you can call the converter manually:
7998 \end_layout
7999
8000 \begin_layout Enumerate
8001 rename the file 
8002 \begin_inset Flex Code
8003 status collapsed
8004
8005 \begin_layout Plain Layout
8006 myclass.layout
8007 \end_layout
8008
8009 \end_inset
8010
8011  to 
8012 \begin_inset Flex Code
8013 status collapsed
8014
8015 \begin_layout Plain Layout
8016 myclass.old
8017 \end_layout
8018
8019 \end_inset
8020
8021
8022 \end_layout
8023
8024 \begin_layout Enumerate
8025 Call the command
8026 \begin_inset Newline newline
8027 \end_inset
8028
8029
8030 \begin_inset Flex Code
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8035 \end_layout
8036
8037 \end_inset
8038
8039
8040 \begin_inset Newline newline
8041 \end_inset
8042
8043 where 
8044 \begin_inset Flex Code
8045 status collapsed
8046
8047 \begin_layout Plain Layout
8048 LyXDir
8049 \end_layout
8050
8051 \end_inset
8052
8053  is the name of your \SpecialChar LyX
8054  system directory.
8055 \end_layout
8056
8057 \begin_layout Standard
8058 Note that manual conversion does not affect included files, so these will
8059  have to be converted separately.
8060 \end_layout
8061
8062 \begin_layout Subsection
8063 \begin_inset CommandInset label
8064 LatexCommand label
8065 name "subsec:Cite-Engine-Files"
8066
8067 \end_inset
8068
8069 Cite engine files
8070 \end_layout
8071
8072 \begin_layout Standard
8073 A specific form of layout files are the so-called 
8074 \begin_inset Flex Code
8075 status collapsed
8076
8077 \begin_layout Plain Layout
8078 *.citeengine
8079 \end_layout
8080
8081 \end_inset
8082
8083  files that are located in the 
8084 \begin_inset Flex Code
8085 status collapsed
8086
8087 \begin_layout Plain Layout
8088 citeengines/
8089 \end_layout
8090
8091 \end_inset
8092
8093  sub-directory.
8094  Their purpose is to define the specifics of \SpecialChar LaTeX
8095  packages aimed at bibliography
8096  generation, such as 
8097 \family sans
8098 natbib
8099 \family default
8100 ,
8101 \family sans
8102  jurabib
8103 \family default
8104  or 
8105 \family sans
8106 biblatex
8107 \family default
8108 , but also the way how normal Bib\SpecialChar TeX
8109  citations (without additional packages)
8110  are handled in \SpecialChar LyX
8111  is defined in such a file.
8112  
8113 \end_layout
8114
8115 \begin_layout Standard
8116 More specifically, it is defined which packages \SpecialChar LyX
8117  needs to load, which citation
8118  commands are available, how these are to be displayed in \SpecialChar LyX
8119  (in the workarea,
8120  the dialogs, the context menus) as well as in the XHTML and plain text
8121  output.
8122  Furthermore, the files specify available style variants (author-year, numerical
8123 , etc.) and their specifics.
8124  The cite engine files are also used to generate the options that are available
8125  in 
8126 \family sans
8127 Document\SpecialChar menuseparator
8128 Settings\SpecialChar menuseparator
8129 Bibliography\SpecialChar menuseparator
8130 Style engine
8131 \family default
8132 .
8133 \end_layout
8134
8135 \begin_layout Standard
8136 Even though a cite engine file is essentially a normal layout file that
8137  could theoretically include any layout information, it usually primarily
8138  includes some specific parameters such as 
8139 \begin_inset Flex Code
8140 status collapsed
8141
8142 \begin_layout Plain Layout
8143 MaxCiteNames
8144 \end_layout
8145
8146 \end_inset
8147
8148
8149 \begin_inset Flex Code
8150 status collapsed
8151
8152 \begin_layout Plain Layout
8153 CiteFramework
8154 \end_layout
8155
8156 \end_inset
8157
8158
8159 \begin_inset Flex Code
8160 status collapsed
8161
8162 \begin_layout Plain Layout
8163 CiteEngine
8164 \end_layout
8165
8166 \end_inset
8167
8168  and 
8169 \begin_inset Flex Code
8170 status collapsed
8171
8172 \begin_layout Plain Layout
8173 CiteFormat
8174 \end_layout
8175
8176 \end_inset
8177
8178  blocks.
8179  The syntax of the latter two is described in 
8180 \begin_inset CommandInset ref
8181 LatexCommand ref
8182 reference "subsec:Citation-engine-description"
8183 plural "false"
8184 caps "false"
8185 noprefix "false"
8186
8187 \end_inset
8188
8189  and 
8190 \begin_inset CommandInset ref
8191 LatexCommand ref
8192 reference "subsec:Citation-format-description"
8193
8194 \end_inset
8195
8196 , as well as in the files themselves.
8197 \end_layout
8198
8199 \begin_layout Section
8200 \begin_inset CommandInset label
8201 LatexCommand label
8202 name "sec:TextClass"
8203
8204 \end_inset
8205
8206 The layout file format
8207 \end_layout
8208
8209 \begin_layout Standard
8210 The following sections describe how layout files are structured and written.
8211  Our advice is to go slowly, save and test often.
8212  It is really not that hard, except that the multitude of options can become
8213  overwhelming, especially if you try to check out too many at once.
8214  It becomes easier if you use existing layouts of \SpecialChar LyX
8215  as examples/reference
8216  or if you modify an existing layout to your needs.
8217 \end_layout
8218
8219 \begin_layout Standard
8220 Note that all the tags used in layout files are case-insensitive.
8221  This means that 
8222 \begin_inset Flex Code
8223 status collapsed
8224
8225 \begin_layout Plain Layout
8226 Style
8227 \end_layout
8228
8229 \end_inset
8230
8231
8232 \begin_inset Flex Code
8233 status collapsed
8234
8235 \begin_layout Plain Layout
8236 style
8237 \end_layout
8238
8239 \end_inset
8240
8241  and 
8242 \begin_inset Flex Code
8243 status collapsed
8244
8245 \begin_layout Plain Layout
8246 StYlE
8247 \end_layout
8248
8249 \end_inset
8250
8251  are really the same tag.
8252  The possible arguments are printed in brackets after the tag's name.
8253  The default argument is typeset 
8254 \begin_inset Flex Code
8255 status collapsed
8256
8257 \begin_layout Plain Layout
8258
8259 \emph on
8260 emphasized
8261 \end_layout
8262
8263 \end_inset
8264
8265 .
8266  If the argument has a data type like 
8267 \begin_inset Quotes eld
8268 \end_inset
8269
8270 string
8271 \begin_inset Quotes erd
8272 \end_inset
8273
8274  or 
8275 \begin_inset Quotes eld
8276 \end_inset
8277
8278 float
8279 \begin_inset Quotes erd
8280 \end_inset
8281
8282 , the default is shown like this: 
8283 \begin_inset Flex Code
8284 status collapsed
8285
8286 \begin_layout Plain Layout
8287 float=
8288 \emph on
8289 default
8290 \end_layout
8291
8292 \end_inset
8293
8294 .
8295 \end_layout
8296
8297 \begin_layout Subsection
8298 The document class declaration and classification
8299 \end_layout
8300
8301 \begin_layout Standard
8302 Lines in a layout file which begin with 
8303 \begin_inset Flex Code
8304 status collapsed
8305
8306 \begin_layout Plain Layout
8307 #
8308 \end_layout
8309
8310 \end_inset
8311
8312  are comments.
8313  There is one exception to this rule.
8314  All 
8315 \begin_inset Flex Code
8316 status collapsed
8317
8318 \begin_layout Plain Layout
8319 *.layout
8320 \end_layout
8321
8322 \end_inset
8323
8324  files should begin with lines like:
8325 \end_layout
8326
8327 \begin_layout LyX-Code
8328
8329 \size small
8330 #% Do not delete the line below; configure depends on this 
8331 \end_layout
8332
8333 \begin_layout LyX-Code
8334
8335 \size small
8336 #  
8337 \backslash
8338 DeclareLaTeXClass{Article (Standard Class)}
8339 \end_layout
8340
8341 \begin_layout LyX-Code
8342
8343 \size small
8344 #  
8345 \backslash
8346 DeclareCategory{Articles}
8347 \end_layout
8348
8349 \begin_layout Standard
8350 The second and third lines are used when you (re)configure \SpecialChar LyX
8351 .
8352  The layout file is read by the \SpecialChar LaTeX
8353  script 
8354 \begin_inset Flex Code
8355 status collapsed
8356
8357 \begin_layout Plain Layout
8358 chkconfig.ltx
8359 \end_layout
8360
8361 \end_inset
8362
8363 , in a special mode where 
8364 \begin_inset Flex Code
8365 status collapsed
8366
8367 \begin_layout Plain Layout
8368 #
8369 \end_layout
8370
8371 \end_inset
8372
8373  is ignored.
8374  The first line is just a \SpecialChar LaTeX
8375  comment, the second one contains the mandatory
8376  declaration of the text class and the third line contains the optional
8377  classification of the class.
8378  If these lines appear in a file named 
8379 \begin_inset Flex Code
8380 status collapsed
8381
8382 \begin_layout Plain Layout
8383 article.layout
8384 \end_layout
8385
8386 \end_inset
8387
8388 , then they define a text class of name 
8389 \begin_inset Flex Code
8390 status collapsed
8391
8392 \begin_layout Plain Layout
8393 article
8394 \end_layout
8395
8396 \end_inset
8397
8398  (the name of the layout file) which uses the \SpecialChar LaTeX
8399  document class 
8400 \begin_inset Flex Code
8401 status collapsed
8402
8403 \begin_layout Plain Layout
8404 article.cls
8405 \end_layout
8406
8407 \end_inset
8408
8409  (the default is to use the same name as the layout).
8410  The string 
8411 \begin_inset Quotes eld
8412 \end_inset
8413
8414 Article (Standard Class)
8415 \begin_inset Quotes erd
8416 \end_inset
8417
8418  that appears above is used as a description of the text class in the 
8419 \begin_inset Flex Noun
8420 status collapsed
8421
8422 \begin_layout Plain Layout
8423 Document\SpecialChar menuseparator
8424 Settings
8425 \end_layout
8426
8427 \end_inset
8428
8429  dialog.
8430  The category (
8431 \begin_inset Quotes eld
8432 \end_inset
8433
8434 Articles
8435 \begin_inset Quotes erd
8436 \end_inset
8437
8438  in the example) is also used in the 
8439 \begin_inset Flex Noun
8440 status collapsed
8441
8442 \begin_layout Plain Layout
8443 Document\SpecialChar menuseparator
8444 Settings
8445 \end_layout
8446
8447 \end_inset
8448
8449  dialog: the text classes are grouped by these categories (which are usually
8450  genres, so typical categories are 
8451 \begin_inset Quotes eld
8452 \end_inset
8453
8454 Articles
8455 \begin_inset Quotes erd
8456 \end_inset
8457
8458
8459 \begin_inset Quotes eld
8460 \end_inset
8461
8462 Books
8463 \begin_inset Quotes erd
8464 \end_inset
8465
8466
8467 \begin_inset Quotes eld
8468 \end_inset
8469
8470 Reports
8471 \begin_inset Quotes erd
8472 \end_inset
8473
8474
8475 \begin_inset Quotes eld
8476 \end_inset
8477
8478 Letters
8479 \begin_inset Quotes erd
8480 \end_inset
8481
8482
8483 \begin_inset Quotes eld
8484 \end_inset
8485
8486 Presentations
8487 \begin_inset Quotes erd
8488 \end_inset
8489
8490
8491 \begin_inset Quotes eld
8492 \end_inset
8493
8494 Curricula Vitae
8495 \begin_inset Quotes erd
8496 \end_inset
8497
8498  etc.).
8499  If no category has been declared, the class will be put in the 
8500 \begin_inset Quotes eld
8501 \end_inset
8502
8503 Uncategorized
8504 \begin_inset Quotes erd
8505 \end_inset
8506
8507  group.
8508 \end_layout
8509
8510 \begin_layout Standard
8511 Let's assume that you wrote your own text class that uses the 
8512 \begin_inset Flex Code
8513 status collapsed
8514
8515 \begin_layout Plain Layout
8516 article.cls
8517 \end_layout
8518
8519 \end_inset
8520
8521  document class, but where you changed the appearance of the section headings.
8522  If you put it in a file 
8523 \begin_inset Flex Code
8524 status collapsed
8525
8526 \begin_layout Plain Layout
8527 myarticle.layout
8528 \end_layout
8529
8530 \end_inset
8531
8532 , the header of this file should be:
8533 \end_layout
8534
8535 \begin_layout LyX-Code
8536
8537 \size small
8538 #% Do not delete the line below; configure depends on this 
8539 \end_layout
8540
8541 \begin_layout LyX-Code
8542
8543 \size small
8544 #  
8545 \backslash
8546 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8547 \end_layout
8548
8549 \begin_layout LyX-Code
8550
8551 \size small
8552 #  
8553 \backslash
8554 DeclareCategory{Articles}
8555 \end_layout
8556
8557 \begin_layout Standard
8558 This declares a text class 
8559 \begin_inset Flex Code
8560 status collapsed
8561
8562 \begin_layout Plain Layout
8563 myarticle
8564 \end_layout
8565
8566 \end_inset
8567
8568 , associated with the \SpecialChar LaTeX
8569  document class 
8570 \begin_inset Flex Code
8571 status collapsed
8572
8573 \begin_layout Plain Layout
8574 article.cls
8575 \end_layout
8576
8577 \end_inset
8578
8579  and described as 
8580 \begin_inset Quotes eld
8581 \end_inset
8582
8583 Article (with My Own Headings)
8584 \begin_inset Quotes erd
8585 \end_inset
8586
8587 .
8588  If your text class depends on several packages, you can declare it as:
8589 \end_layout
8590
8591 \begin_layout LyX-Code
8592
8593 \size small
8594 #% Do not delete the line below; configure depends on this 
8595 \end_layout
8596
8597 \begin_layout LyX-Code
8598
8599 \size small
8600 #  
8601 \backslash
8602 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8603 \end_layout
8604
8605 \begin_layout LyX-Code
8606
8607 \size small
8608 #  
8609 \backslash
8610 DeclareCategory{Articles}
8611 \end_layout
8612
8613 \begin_layout Standard
8614 This indicates that your text class uses the 
8615 \begin_inset Flex Code
8616 status collapsed
8617
8618 \begin_layout Plain Layout
8619 foo.sty
8620 \end_layout
8621
8622 \end_inset
8623
8624  package.
8625  
8626 \change_deleted 5863208 1594239179
8627 Finally, it is also possible to declare classes for DocBook code.
8628  Typical declarations will look like:
8629 \end_layout
8630
8631 \begin_layout LyX-Code
8632
8633 \change_deleted 5863208 1594239179
8634
8635 \size small
8636 #% Do not delete the line below; configure depends on this 
8637 \end_layout
8638
8639 \begin_layout LyX-Code
8640
8641 \change_deleted 5863208 1594239179
8642
8643 \size small
8644
8645 \backslash
8646 DeclareDocBookClass[article]{SGML (DocBook Article)}
8647 \end_layout
8648
8649 \begin_layout LyX-Code
8650
8651 \change_deleted 5863208 1594239179
8652
8653 \size small
8654
8655 \backslash
8656 DeclareCategory{Articles (DocBook)}
8657 \change_unchanged
8658
8659 \end_layout
8660
8661 \begin_layout Standard
8662 Note that these declarations can also be given an optional parameter declaring
8663  the name of the document class (but not a list).
8664 \end_layout
8665
8666 \begin_layout Standard
8667 So, to be as explicit as possible, the form of the layout declaration is:
8668 \end_layout
8669
8670 \begin_layout LyX-Code
8671
8672 \size small
8673 #  
8674 \backslash
8675 DeclareLaTeXClass[class,package.sty]{layout description}
8676 \end_layout
8677
8678 \begin_layout LyX-Code
8679
8680 \size small
8681 #  
8682 \backslash
8683 DeclareCategory{category}
8684 \end_layout
8685
8686 \begin_layout Standard
8687 The class need only be specified if the name of the \SpecialChar LaTeX
8688  class file and the
8689  name of the layout file are different or if there are packages to load.
8690  If the name of the class file is not specified, then \SpecialChar LyX
8691  will simply assume
8692  that it is the same as the name of the layout file.
8693 \end_layout
8694
8695 \begin_layout Standard
8696 When the text class has been modified to your taste, all you have to do
8697  is to copy it either to 
8698 \begin_inset Flex Code
8699 status collapsed
8700
8701 \begin_layout Plain Layout
8702 LyXDir/layouts/
8703 \end_layout
8704
8705 \end_inset
8706
8707  or to 
8708 \begin_inset Flex Code
8709 status collapsed
8710
8711 \begin_layout Plain Layout
8712 UserDir/layouts
8713 \end_layout
8714
8715 \end_inset
8716
8717 , run 
8718 \begin_inset Flex Noun
8719 status collapsed
8720
8721 \begin_layout Plain Layout
8722 Tools\SpecialChar menuseparator
8723 Reconfigure
8724 \end_layout
8725
8726 \end_inset
8727
8728 , exit \SpecialChar LyX
8729  and restart.
8730  Then your new text class should be available along with the others.
8731 \end_layout
8732
8733 \begin_layout Standard
8734 Once the layout file is installed, you can edit it and see your changes
8735  without having to reconfigure or to restart \SpecialChar LyX
8736 .
8737 \begin_inset Foot
8738 status collapsed
8739
8740 \begin_layout Plain Layout
8741 In versions of \SpecialChar LyX
8742  prior to 1.6, this was not true.
8743  As a result, editing layout files was very time consuming, since you had
8744  constantly to restart \SpecialChar LyX
8745  to see changes.
8746 \end_layout
8747
8748 \end_inset
8749
8750  You can force a reload of the current layout by using the \SpecialChar LyX
8751  function 
8752 \begin_inset Flex Noun
8753 status collapsed
8754
8755 \begin_layout Plain Layout
8756 layout-reload
8757 \end_layout
8758
8759 \end_inset
8760
8761 .
8762  There is no default binding for this function—though, of course, you can
8763  bind it to a key yourself.
8764  But you will normally use this function simply by entering it in the mini-buffe
8765 r.
8766  
8767 \end_layout
8768
8769 \begin_layout Standard
8770
8771 \emph on
8772 Warning
8773 \emph default
8774
8775 \begin_inset Flex Noun
8776 status collapsed
8777
8778 \begin_layout Plain Layout
8779 layout-reload
8780 \end_layout
8781
8782 \end_inset
8783
8784  is very much an `advanced feature'.
8785  It is 
8786 \emph on
8787 strongly
8788 \emph default
8789  recommended that you save your work before using this function.
8790  In fact, it is 
8791 \emph on
8792 strongly
8793 \emph default
8794  recommended that you not attempt to edit layout information while simultaneousl
8795 y working on a document that you care about.
8796  Use a test document.
8797  Syntax errors and the like in your layout file could cause peculiar behavior.
8798  In particular, such errors could cause \SpecialChar LyX
8799  to regard the current layout as
8800  invalid and to attempt to switch to some other layout.
8801 \begin_inset Foot
8802 status collapsed
8803
8804 \begin_layout Plain Layout
8805 Really bad syntax errors may even caused \SpecialChar LyX
8806  to exit.
8807  This is because certain sorts of errors may make \SpecialChar LyX
8808  unable to read 
8809 \emph on
8810 any
8811 \emph default
8812  layout information.
8813  Please be careful.
8814 \end_layout
8815
8816 \end_inset
8817
8818  The \SpecialChar LyX
8819  team strives to keep \SpecialChar LyX
8820  stable in such situations, but safe is better
8821  than sorry.
8822 \begin_inset Foot
8823 status collapsed
8824
8825 \begin_layout Plain Layout
8826 While we're giving advice: make regular backups.
8827  And be nice to your mother.
8828 \end_layout
8829
8830 \end_inset
8831
8832
8833 \end_layout
8834
8835 \begin_layout Subsection
8836 The Module declaration
8837 \end_layout
8838
8839 \begin_layout Standard
8840 A module must begin with a line like the following:
8841 \end_layout
8842
8843 \begin_layout LyX-Code
8844 #
8845 \backslash
8846 DeclareLyXModule[endnotes.sty]{Endnotes}
8847 \change_inserted -712698321 1554395911
8848
8849 \end_layout
8850
8851 \begin_layout LyX-Code
8852
8853 \change_inserted -712698321 1554395924
8854
8855 \size small
8856 #
8857 \backslash
8858 DeclareCategory{Foot- and Endnotes}
8859 \change_deleted -712698321 1554395911
8860
8861 \size default
8862  
8863 \change_unchanged
8864
8865 \end_layout
8866
8867 \begin_layout Standard
8868 The mandatory argument
8869 \change_inserted -712698321 1554395956
8870  of 
8871 \family typewriter
8872
8873 \backslash
8874 DeclareLyXModule
8875 \change_unchanged
8876
8877 \family default
8878 , in curly brackets, is the name of the module, as it should appear in 
8879 \begin_inset Flex Noun
8880 status collapsed
8881
8882 \begin_layout Plain Layout
8883 Document\SpecialChar menuseparator
8884 Settings\SpecialChar menuseparator
8885 Modules
8886 \end_layout
8887
8888 \end_inset
8889
8890 .
8891  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8892  packages
8893  on which the module depends.
8894  It is also possible to use the form 
8895 \begin_inset Flex Noun
8896 status collapsed
8897
8898 \begin_layout Plain Layout
8899 from->to
8900 \end_layout
8901
8902 \end_inset
8903
8904  as an optional argument, which declares that the module can only be used
8905  when there exists a conversion chain between the formats `
8906 \begin_inset Flex Code
8907 status collapsed
8908
8909 \begin_layout Plain Layout
8910 from
8911 \end_layout
8912
8913 \end_inset
8914
8915 ' and `
8916 \begin_inset Flex Code
8917 status collapsed
8918
8919 \begin_layout Plain Layout
8920 to
8921 \end_layout
8922
8923 \end_inset
8924
8925 '.
8926
8927 \change_inserted -712698321 1554396133
8928  The 
8929 \family typewriter
8930
8931 \backslash
8932 DeclareCategory
8933 \family default
8934  declaration is not strictly mandatory, but you should add it, since it
8935  is helpful to find the module.
8936  Please have a look at the existing module categories and if appropriate,
8937  use one of those.
8938 \change_unchanged
8939
8940 \end_layout
8941
8942 \begin_layout Standard
8943 The module 
8944 \change_inserted -712698321 1554395988
8945 and category 
8946 \change_unchanged
8947 declaration should then be followed by lines like the following:
8948 \begin_inset Foot
8949 status collapsed
8950
8951 \begin_layout Plain Layout
8952 Preferably in English if the module should be published with \SpecialChar LyX
8953 .
8954  This description will appear in the list of messages to be translated and
8955  will be thus translated with the next interface update.
8956 \end_layout
8957
8958 \end_inset
8959
8960
8961 \end_layout
8962
8963 \begin_layout LyX-Code
8964 #DescriptionBegin 
8965 \end_layout
8966
8967 \begin_layout LyX-Code
8968 #Adds an endnote command, in addition to footnotes.
8969  
8970 \end_layout
8971
8972 \begin_layout LyX-Code
8973 #You will need to add  
8974 \backslash
8975 theendnotes in TeX code where you 
8976 \end_layout
8977
8978 \begin_layout LyX-Code
8979 #want the endnotes to appear.
8980  
8981 \end_layout
8982
8983 \begin_layout LyX-Code
8984 #DescriptionEnd 
8985 \end_layout
8986
8987 \begin_layout LyX-Code
8988 #Requires: somemodule | othermodule
8989 \end_layout
8990
8991 \begin_layout LyX-Code
8992 #Excludes: badmodule
8993 \end_layout
8994
8995 \begin_layout Standard
8996 The description is used in 
8997 \begin_inset Flex Noun
8998 status collapsed
8999
9000 \begin_layout Plain Layout
9001 Document\SpecialChar menuseparator
9002 Settings\SpecialChar menuseparator
9003 Modules
9004 \end_layout
9005
9006 \end_inset
9007
9008  to provide the user with information about what the module does.
9009  The 
9010 \begin_inset Flex Code
9011 status collapsed
9012
9013 \begin_layout Plain Layout
9014 Requires
9015 \end_layout
9016
9017 \end_inset
9018
9019  line is used to identify other modules with which this one must be used;
9020  the 
9021 \begin_inset Flex Code
9022 status collapsed
9023
9024 \begin_layout Plain Layout
9025 Excludes
9026 \end_layout
9027
9028 \end_inset
9029
9030  line is used to identify modules with which this one may not be used.
9031  Both are optional, and, as shown, multiple modules should be separated
9032  with the pipe symbol: |.
9033  Note that the required modules are treated disjunctively: 
9034 \emph on
9035 at least one
9036 \emph default
9037  of the required modules must be used.
9038  Similarly, 
9039 \emph on
9040 no
9041 \emph default
9042  excluded module may be used.
9043  Note that modules are identified here by their filenames without the 
9044 \begin_inset Flex Code
9045 status collapsed
9046
9047 \begin_layout Plain Layout
9048 .module
9049 \end_layout
9050
9051 \end_inset
9052
9053  extension.
9054  So 
9055 \begin_inset Flex Code
9056 status collapsed
9057
9058 \begin_layout Plain Layout
9059 somemodule
9060 \end_layout
9061
9062 \end_inset
9063
9064  is really 
9065 \begin_inset Flex Code
9066 status collapsed
9067
9068 \begin_layout Plain Layout
9069 somemodule.module
9070 \end_layout
9071
9072 \end_inset
9073
9074 .
9075 \end_layout
9076
9077 \begin_layout Subsection
9078 The CiteEngine file declaration
9079 \end_layout
9080
9081 \begin_layout Standard
9082 A cite engine file must begin with a line like the following:
9083 \end_layout
9084
9085 \begin_layout LyX-Code
9086 #
9087 \backslash
9088 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9089 \end_layout
9090
9091 \begin_layout Standard
9092 The mandatory argument, in curly brackets, is the name of the cite style,
9093  as it should appear in 
9094 \begin_inset Flex Noun
9095 status collapsed
9096
9097 \begin_layout Plain Layout
9098 Document\SpecialChar menuseparator
9099 Settings\SpecialChar menuseparator
9100 Bibliography
9101 \end_layout
9102
9103 \end_inset
9104
9105 .
9106  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
9107  packages
9108  on which the cite engine depends.
9109 \end_layout
9110
9111 \begin_layout Standard
9112 The cite engine declaration should then be followed by lines like the following:
9113 \begin_inset Foot
9114 status collapsed
9115
9116 \begin_layout Plain Layout
9117 Preferably in English if the module should be published with \SpecialChar LyX
9118 .
9119  This description will appear in the list of messages to be translated and
9120  will be thus translated with the next interface update.
9121 \end_layout
9122
9123 \end_inset
9124
9125
9126 \end_layout
9127
9128 \begin_layout LyX-Code
9129 # DescriptionBegin
9130 \end_layout
9131
9132 \begin_layout LyX-Code
9133 #   Biblatex supports many author-year and numerical styles.
9134 \end_layout
9135
9136 \begin_layout LyX-Code
9137 #   It is mainly aimed at the Humanities.
9138  It is highly
9139 \end_layout
9140
9141 \begin_layout LyX-Code
9142 #   customizable, fully localized and provides many features
9143 \end_layout
9144
9145 \begin_layout LyX-Code
9146 #   that are not possible with BibTeX.
9147  The use of 'biber' as
9148 \end_layout
9149
9150 \begin_layout LyX-Code
9151 #   bibliography processor is advised.
9152 \end_layout
9153
9154 \begin_layout LyX-Code
9155 # DescriptionEnd
9156 \end_layout
9157
9158 \begin_layout Standard
9159 The description is used in 
9160 \begin_inset Flex Noun
9161 status collapsed
9162
9163 \begin_layout Plain Layout
9164 Document\SpecialChar menuseparator
9165 Settings\SpecialChar menuseparator
9166 Bibliography
9167 \end_layout
9168
9169 \end_inset
9170
9171  to provide the user with information about the cite engine.
9172 \end_layout
9173
9174 \begin_layout Subsection
9175 Format number
9176 \end_layout
9177
9178 \begin_layout Standard
9179 The first non-comment line of any layout file, included file, or module
9180  
9181 \emph on
9182 must
9183 \emph default
9184  contain the file format number:
9185 \end_layout
9186
9187 \begin_layout Description
9188 \begin_inset Flex Code
9189 status collapsed
9190
9191 \begin_layout Plain Layout
9192 Format
9193 \end_layout
9194
9195 \end_inset
9196
9197  [
9198 \begin_inset Flex Code
9199 status collapsed
9200
9201 \begin_layout Plain Layout
9202 int
9203 \end_layout
9204
9205 \end_inset
9206
9207 ] The format number of the layout file.
9208 \end_layout
9209
9210 \begin_layout Standard
9211 This tag was introduced with \SpecialChar LyX
9212
9213 \begin_inset space ~
9214 \end_inset
9215
9216 1.4.0.
9217  Layout files from older \SpecialChar LyX
9218  versions do not have an explicit file format and
9219  are considered to have 
9220 \begin_inset Flex Code
9221 status collapsed
9222
9223 \begin_layout Plain Layout
9224 Format
9225 \begin_inset space ~
9226 \end_inset
9227
9228 1
9229 \end_layout
9230
9231 \end_inset
9232
9233 .
9234  The format for the present version of \SpecialChar LyX
9235  is format 60.
9236  But each version of \SpecialChar LyX
9237  is capable of reading earlier versions' layout files,
9238  just as they are capable of reading files produced by earlier versions
9239  of \SpecialChar LyX
9240 .
9241  There is, however, no provision for converting to earlier formats.
9242 \end_layout
9243
9244 \begin_layout Subsection
9245 \begin_inset CommandInset label
9246 LatexCommand label
9247 name "subsec:General-text-class"
9248
9249 \end_inset
9250
9251 General text class parameters
9252 \end_layout
9253
9254 \begin_layout Standard
9255 These are general parameters that govern the behavior of an entire document
9256  class.
9257  (This does 
9258 \emph on
9259 not
9260 \emph default
9261  mean that they must appear in 
9262 \begin_inset Flex Code
9263 status collapsed
9264
9265 \begin_layout Plain Layout
9266 .layout
9267 \end_layout
9268
9269 \end_inset
9270
9271  files rather than in modules.
9272  A module can contain any layout tag.)
9273 \end_layout
9274
9275 \begin_layout Description
9276
9277 \change_inserted -712698321 1526899478
9278 \begin_inset Flex Code
9279 status collapsed
9280
9281 \begin_layout Plain Layout
9282
9283 \change_inserted -712698321 1526898610
9284 AddToCiteEngine <engine>
9285 \change_unchanged
9286
9287 \end_layout
9288
9289 \end_inset
9290
9291  Extends the possibilities for displaying citation references.
9292  See 
9293 \begin_inset CommandInset ref
9294 LatexCommand ref
9295 reference "subsec:Citation-engine-description"
9296 plural "false"
9297 caps "false"
9298 noprefix "false"
9299
9300 \end_inset
9301
9302  for details.
9303  Must end with 
9304 \begin_inset Flex Code
9305 status collapsed
9306
9307 \begin_layout Plain Layout
9308
9309 \change_inserted -712698321 1526898823
9310 End
9311 \change_unchanged
9312
9313 \end_layout
9314
9315 \end_inset
9316
9317 .
9318 \end_layout
9319
9320 \begin_layout Description
9321 \begin_inset Flex Code
9322 status collapsed
9323
9324 \begin_layout Plain Layout
9325 AddToHTMLPreamble
9326 \end_layout
9327
9328 \end_inset
9329
9330  Adds information that will be output in the 
9331 \begin_inset Flex Code
9332 status collapsed
9333
9334 \begin_layout Plain Layout
9335 <head>
9336 \end_layout
9337
9338 \end_inset
9339
9340  block when the document is output to XHTML.
9341  Typically, this would be used to output CSS style information, but it can
9342  be used for anything that can appear in 
9343 \begin_inset Flex Code
9344 status collapsed
9345
9346 \begin_layout Plain Layout
9347 <head>
9348 \end_layout
9349
9350 \end_inset
9351
9352 .
9353  Must end with 
9354 \begin_inset Quotes eld
9355 \end_inset
9356
9357
9358 \begin_inset Flex Code
9359 status collapsed
9360
9361 \begin_layout Plain Layout
9362 EndPreamble
9363 \end_layout
9364
9365 \end_inset
9366
9367
9368 \begin_inset Quotes erd
9369 \end_inset
9370
9371 .
9372 \end_layout
9373
9374 \begin_layout Description
9375 \begin_inset Flex Code
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 AddToPreamble
9380 \end_layout
9381
9382 \end_inset
9383
9384  Adds information to the document preamble.
9385  Must end with
9386 \begin_inset Newline newline
9387 \end_inset
9388
9389
9390 \begin_inset Quotes eld
9391 \end_inset
9392
9393
9394 \begin_inset Flex Code
9395 status collapsed
9396
9397 \begin_layout Plain Layout
9398 EndPreamble
9399 \end_layout
9400
9401 \end_inset
9402
9403
9404 \begin_inset Quotes erd
9405 \end_inset
9406
9407 .
9408 \change_inserted -712698321 1562592950
9409
9410 \end_layout
9411
9412 \begin_layout Description
9413
9414 \change_inserted -712698321 1562593040
9415 \begin_inset Flex Code
9416 status collapsed
9417
9418 \begin_layout Plain Layout
9419
9420 \change_inserted -712698321 1562592954
9421 BibInToc
9422 \change_unchanged
9423
9424 \end_layout
9425
9426 \end_inset
9427
9428  [
9429 \begin_inset Flex Code
9430 status collapsed
9431
9432 \begin_layout Plain Layout
9433
9434 \change_inserted -712698321 1562592950
9435
9436 \emph on
9437 0
9438 \change_unchanged
9439
9440 \end_layout
9441
9442 \end_inset
9443
9444 ,
9445 \begin_inset space \thinspace{}
9446 \end_inset
9447
9448
9449 \begin_inset Flex Code
9450 status collapsed
9451
9452 \begin_layout Plain Layout
9453
9454 \change_inserted -712698321 1562592950
9455 1
9456 \change_unchanged
9457
9458 \end_layout
9459
9460 \end_inset
9461
9462 ] If the document class adds the bibliography to the table of contents,
9463  add this option with value 
9464 \begin_inset Flex Code
9465 status collapsed
9466
9467 \begin_layout Plain Layout
9468
9469 \change_inserted -712698321 1562592996
9470 1
9471 \change_unchanged
9472
9473 \end_layout
9474
9475 \end_inset
9476
9477  (or 
9478 \begin_inset Flex Code
9479 status collapsed
9480
9481 \begin_layout Plain Layout
9482
9483 \change_inserted -712698321 1562593006
9484 true
9485 \change_unchanged
9486
9487 \end_layout
9488
9489 \end_inset
9490
9491 ).
9492  This prevents the bibliography from being added twice.
9493 \change_unchanged
9494
9495 \end_layout
9496
9497 \begin_layout Description
9498 \begin_inset Flex Code
9499 status collapsed
9500
9501 \begin_layout Plain Layout
9502 CiteEngine <engine>
9503 \end_layout
9504
9505 \end_inset
9506
9507  Defines the possibilities for displaying citation references.
9508  See 
9509 \begin_inset CommandInset ref
9510 LatexCommand ref
9511 reference "subsec:Citation-engine-description"
9512 plural "false"
9513 caps "false"
9514 noprefix "false"
9515
9516 \end_inset
9517
9518  for details.
9519  Must end with 
9520 \begin_inset Quotes eld
9521 \end_inset
9522
9523
9524 \begin_inset Flex Code
9525 status collapsed
9526
9527 \begin_layout Plain Layout
9528 End
9529 \end_layout
9530
9531 \end_inset
9532
9533
9534 \begin_inset Quotes erd
9535 \end_inset
9536
9537 .
9538  Primarily used in cite engine files (see 
9539 \begin_inset CommandInset ref
9540 LatexCommand ref
9541 reference "subsec:Cite-Engine-Files"
9542 plural "false"
9543 caps "false"
9544 noprefix "false"
9545
9546 \end_inset
9547
9548 ).
9549
9550 \change_inserted -712698321 1526898530
9551  Note that if you specify this in a layout file or module, any cite engine
9552  definition will be overridden.
9553  Also see 
9554 \begin_inset Flex Code
9555 status collapsed
9556
9557 \begin_layout Plain Layout
9558
9559 \change_inserted -712698321 1526898530
9560 AddToCiteEngine
9561 \change_unchanged
9562
9563 \end_layout
9564
9565 \end_inset
9566
9567 .
9568 \change_unchanged
9569
9570 \end_layout
9571
9572 \begin_layout Description
9573 \begin_inset Flex Code
9574 status collapsed
9575
9576 \begin_layout Plain Layout
9577 CiteFormat
9578 \end_layout
9579
9580 \end_inset
9581
9582  Defines formats for use in the display of bibliographic information.
9583  See 
9584 \begin_inset CommandInset ref
9585 LatexCommand ref
9586 reference "subsec:Citation-format-description"
9587
9588 \end_inset
9589
9590  for details.
9591  Must end with 
9592 \begin_inset Quotes eld
9593 \end_inset
9594
9595
9596 \begin_inset Flex Code
9597 status collapsed
9598
9599 \begin_layout Plain Layout
9600 End
9601 \end_layout
9602
9603 \end_inset
9604
9605
9606 \begin_inset Quotes erd
9607 \end_inset
9608
9609 .
9610  Primarily used in cite engine files (see 
9611 \begin_inset CommandInset ref
9612 LatexCommand ref
9613 reference "subsec:Cite-Engine-Files"
9614 plural "false"
9615 caps "false"
9616 noprefix "false"
9617
9618 \end_inset
9619
9620 ).
9621
9622 \change_inserted -712698321 1526898585
9623  A cite format defined in a layout or module will override the cite engine
9624  definition.
9625 \change_unchanged
9626
9627 \end_layout
9628
9629 \begin_layout Description
9630 \begin_inset Flex Code
9631 status collapsed
9632
9633 \begin_layout Plain Layout
9634 CiteFramework
9635 \end_layout
9636
9637 \end_inset
9638
9639  [
9640 \begin_inset Flex Code
9641 status collapsed
9642
9643 \begin_layout Plain Layout
9644
9645 \emph on
9646 bibtex
9647 \end_layout
9648
9649 \end_inset
9650
9651 ,
9652 \begin_inset Flex Code
9653 status collapsed
9654
9655 \begin_layout Plain Layout
9656 biblatex
9657 \end_layout
9658
9659 \end_inset
9660
9661 ] Determines whether 
9662 \family sans
9663 Biblatex
9664 \family default
9665  or Bib\SpecialChar TeX
9666  is used to generate a Bibliography.
9667  Primarily used in cite engine files (see 
9668 \begin_inset CommandInset ref
9669 LatexCommand ref
9670 reference "subsec:Cite-Engine-Files"
9671 plural "false"
9672 caps "false"
9673 noprefix "false"
9674
9675 \end_inset
9676
9677 ).
9678 \end_layout
9679
9680 \begin_layout Description
9681 \begin_inset Flex Code
9682 status collapsed
9683
9684 \begin_layout Plain Layout
9685 ClassOptions
9686 \end_layout
9687
9688 \end_inset
9689
9690  Describes various global options supported by the document class.
9691  See 
9692 \begin_inset CommandInset ref
9693 LatexCommand ref
9694 reference "subsec:ClassOptions"
9695
9696 \end_inset
9697
9698  for a description.
9699  Must end with 
9700 \begin_inset Quotes eld
9701 \end_inset
9702
9703
9704 \begin_inset Flex Code
9705 status collapsed
9706
9707 \begin_layout Plain Layout
9708 End
9709 \end_layout
9710
9711 \end_inset
9712
9713
9714 \begin_inset Quotes erd
9715 \end_inset
9716
9717 .
9718 \end_layout
9719
9720 \begin_layout Description
9721 \begin_inset Flex Code
9722 status collapsed
9723
9724 \begin_layout Plain Layout
9725 Columns
9726 \end_layout
9727
9728 \end_inset
9729
9730  [
9731 \begin_inset Flex Code
9732 status collapsed
9733
9734 \begin_layout Plain Layout
9735
9736 \emph on
9737 1
9738 \end_layout
9739
9740 \end_inset
9741
9742 ,
9743 \begin_inset space \thinspace{}
9744 \end_inset
9745
9746
9747 \begin_inset Flex Code
9748 status collapsed
9749
9750 \begin_layout Plain Layout
9751 2
9752 \end_layout
9753
9754 \end_inset
9755
9756 ] Whether the class should 
9757 \emph on
9758 default
9759 \emph default
9760  to having one or two columns.
9761  Can be changed in the 
9762 \begin_inset Flex Noun
9763 status collapsed
9764
9765 \begin_layout Plain Layout
9766 Document\SpecialChar menuseparator
9767 Settings
9768 \end_layout
9769
9770 \end_inset
9771
9772  dialog.
9773 \end_layout
9774
9775 \begin_layout Description
9776 \begin_inset Flex Code
9777 status collapsed
9778
9779 \begin_layout Plain Layout
9780 Counter
9781 \end_layout
9782
9783 \end_inset
9784
9785  [
9786 \begin_inset Flex Code
9787 status collapsed
9788
9789 \begin_layout Plain Layout
9790 string
9791 \end_layout
9792
9793 \end_inset
9794
9795 ] This sequence defines the properties for a counter.
9796  If the counter does not yet exist, it is created; if it does exist, it
9797  is modified.
9798  Must end with 
9799 \begin_inset Quotes eld
9800 \end_inset
9801
9802
9803 \begin_inset Flex Code
9804 status collapsed
9805
9806 \begin_layout Plain Layout
9807 End
9808 \end_layout
9809
9810 \end_inset
9811
9812
9813 \begin_inset Quotes erd
9814 \end_inset
9815
9816 .
9817 \begin_inset Newline newline
9818 \end_inset
9819
9820 See 
9821 \begin_inset CommandInset ref
9822 LatexCommand ref
9823 reference "subsec:Counters"
9824
9825 \end_inset
9826
9827  for details on counters.
9828 \end_layout
9829
9830 \begin_layout Description
9831 \begin_inset Flex Code
9832 status collapsed
9833
9834 \begin_layout Plain Layout
9835 DefaultFont
9836 \end_layout
9837
9838 \end_inset
9839
9840  Sets the default font used to display the document.
9841  See 
9842 \begin_inset CommandInset ref
9843 LatexCommand ref
9844 reference "subsec:Font-description"
9845
9846 \end_inset
9847
9848  for how to declare fonts.
9849  Must end with 
9850 \begin_inset Quotes eld
9851 \end_inset
9852
9853
9854 \begin_inset Flex Code
9855 status collapsed
9856
9857 \begin_layout Plain Layout
9858 EndFont
9859 \end_layout
9860
9861 \end_inset
9862
9863
9864 \begin_inset Quotes erd
9865 \end_inset
9866
9867 .
9868 \end_layout
9869
9870 \begin_layout Description
9871 \begin_inset Flex Code
9872 status collapsed
9873
9874 \begin_layout Plain Layout
9875 DefaultModule
9876 \end_layout
9877
9878 \end_inset
9879
9880  [
9881 \begin_inset Flex Code
9882 status collapsed
9883
9884 \begin_layout Plain Layout
9885 <module>
9886 \end_layout
9887
9888 \end_inset
9889
9890 ] Specifies a module to be included by default with this document class.
9891  The module is specified as filename without the 
9892 \begin_inset Flex Code
9893 status collapsed
9894
9895 \begin_layout Plain Layout
9896 .module
9897 \end_layout
9898
9899 \end_inset
9900
9901  extension.
9902  The user can still remove the module, but it will be active at the outset.
9903  (This applies only when new files are created, or when this class is chosen
9904  for an existing document.)
9905 \end_layout
9906
9907 \begin_layout Description
9908 \begin_inset Flex Code
9909 status collapsed
9910
9911 \begin_layout Plain Layout
9912 DefaultStyle
9913 \end_layout
9914
9915 \end_inset
9916
9917  [
9918 \begin_inset Flex Code
9919 status collapsed
9920
9921 \begin_layout Plain Layout
9922 <style>
9923 \end_layout
9924
9925 \end_inset
9926
9927 ] This is the style that will be assigned to new paragraphs, usually 
9928 \begin_inset Flex Noun
9929 status collapsed
9930
9931 \begin_layout Plain Layout
9932 Standard
9933 \end_layout
9934
9935 \end_inset
9936
9937 .
9938  This will default to the first defined style if not given, but you are
9939  encouraged to use this directive.
9940 \end_layout
9941
9942 \begin_layout Description
9943
9944 \change_inserted -970929547 1515112870
9945 \begin_inset Flex Code
9946 status collapsed
9947
9948 \begin_layout Plain Layout
9949
9950 \change_inserted -970929547 1515112782
9951 DocBookRoot
9952 \change_unchanged
9953
9954 \end_layout
9955
9956 \end_inset
9957
9958  [
9959 \begin_inset Flex Code
9960 status collapsed
9961
9962 \begin_layout Plain Layout
9963
9964 \change_inserted -970929547 1515112766
9965 string
9966 \change_unchanged
9967
9968 \end_layout
9969
9970 \end_inset
9971
9972 ] The root element (at the top of the document) to use when outputting documents
9973  with this class in DocBook.
9974  The default value is 
9975 \begin_inset Quotes eld
9976 \end_inset
9977
9978
9979 \begin_inset Flex Code
9980 status collapsed
9981
9982 \begin_layout Plain Layout
9983
9984 \change_inserted -970929547 1515112845
9985 article
9986 \change_unchanged
9987
9988 \end_layout
9989
9990 \end_inset
9991
9992
9993 \begin_inset Quotes erd
9994 \end_inset
9995
9996 .
9997
9998 \change_deleted 1075283030 1594226862
9999  
10000 \change_inserted 1075283030 1594226777
10001
10002 \end_layout
10003
10004 \begin_layout Description
10005
10006 \change_inserted 1075283030 1594226859
10007 \begin_inset Flex Code
10008 status collapsed
10009
10010 \begin_layout Plain Layout
10011
10012 \change_inserted 1075283030 1594226785
10013 DocBookForceAbstract
10014 \change_unchanged
10015
10016 \end_layout
10017
10018 \end_inset
10019
10020  [
10021 \begin_inset Flex Code
10022 status collapsed
10023
10024 \begin_layout Plain Layout
10025
10026 \change_inserted 1075283030 1594226804
10027 boolean
10028 \change_unchanged
10029
10030 \end_layout
10031
10032 \end_inset
10033
10034 ] If 
10035 \begin_inset Quotes eld
10036 \end_inset
10037
10038
10039 \family typewriter
10040 true
10041 \family default
10042
10043 \begin_inset Quotes erd
10044 \end_inset
10045
10046 , the root element will always have an 
10047 \family typewriter
10048 <abstract>
10049 \family default
10050  tag.
10051  The default value is 
10052 \begin_inset Quotes eld
10053 \end_inset
10054
10055
10056 \family typewriter
10057 false
10058 \family default
10059
10060 \begin_inset Quotes erd
10061 \end_inset
10062
10063 .
10064 \change_unchanged
10065
10066 \end_layout
10067
10068 \begin_layout Description
10069 \begin_inset Flex Code
10070 status collapsed
10071
10072 \begin_layout Plain Layout
10073 ExcludesModule
10074 \end_layout
10075
10076 \end_inset
10077
10078  [
10079 \begin_inset Flex Code
10080 status collapsed
10081
10082 \begin_layout Plain Layout
10083 <module>
10084 \end_layout
10085
10086 \end_inset
10087
10088 ] This tag indicates that the module (which is specified by filename without
10089  the 
10090 \begin_inset Flex Code
10091 status collapsed
10092
10093 \begin_layout Plain Layout
10094 .module
10095 \end_layout
10096
10097 \end_inset
10098
10099  extension) cannot be used with this document class.
10100  This might be used in a journal-specific layout file to prevent, say, the
10101  use of the 
10102 \begin_inset Flex Code
10103 status collapsed
10104
10105 \begin_layout Plain Layout
10106 theorems-sec
10107 \end_layout
10108
10109 \end_inset
10110
10111  module that numbers theorems by section.
10112  This tag may 
10113 \emph on
10114 not
10115 \emph default
10116  be used in a module.
10117  Modules have their own way of excluding other modules (see 
10118 \begin_inset CommandInset ref
10119 LatexCommand ref
10120 reference "subsec:Layout-modules"
10121
10122 \end_inset
10123
10124 ).
10125 \end_layout
10126
10127 \begin_layout Description
10128 \begin_inset Flex Code
10129 status collapsed
10130
10131 \begin_layout Plain Layout
10132 Float
10133 \end_layout
10134
10135 \end_inset
10136
10137  Defines a new float.
10138  See 
10139 \begin_inset CommandInset ref
10140 LatexCommand ref
10141 reference "subsec:Floats"
10142
10143 \end_inset
10144
10145  for details.
10146  Must end with 
10147 \begin_inset Quotes eld
10148 \end_inset
10149
10150
10151 \begin_inset Flex Code
10152 status collapsed
10153
10154 \begin_layout Plain Layout
10155 End
10156 \end_layout
10157
10158 \end_inset
10159
10160
10161 \begin_inset Quotes erd
10162 \end_inset
10163
10164 .
10165 \end_layout
10166
10167 \begin_layout Description
10168 \begin_inset Flex Code
10169 status collapsed
10170
10171 \begin_layout Plain Layout
10172 HTMLPreamble
10173 \end_layout
10174
10175 \end_inset
10176
10177  Sets the information that will be output in the 
10178 \begin_inset Flex Code
10179 status collapsed
10180
10181 \begin_layout Plain Layout
10182 <head>
10183 \end_layout
10184
10185 \end_inset
10186
10187  block when this document class is output to XHTML.
10188  Note that this will completely override any prior 
10189 \begin_inset Flex Code
10190 status collapsed
10191
10192 \begin_layout Plain Layout
10193 HTMLPreamble
10194 \end_layout
10195
10196 \end_inset
10197
10198  or 
10199 \begin_inset Flex Code
10200 status collapsed
10201
10202 \begin_layout Plain Layout
10203 AddToHTMLPreamble
10204 \end_layout
10205
10206 \end_inset
10207
10208  declarations.
10209  (Use
10210 \begin_inset Newline newline
10211 \end_inset
10212
10213
10214 \begin_inset Flex Code
10215 status collapsed
10216
10217 \begin_layout Plain Layout
10218 AddToHTMLPreamble
10219 \end_layout
10220
10221 \end_inset
10222
10223  if you just want to add material to the preamble.) Must end with 
10224 \begin_inset Quotes eld
10225 \end_inset
10226
10227
10228 \begin_inset Flex Code
10229 status collapsed
10230
10231 \begin_layout Plain Layout
10232 EndPreamble
10233 \end_layout
10234
10235 \end_inset
10236
10237
10238 \begin_inset Quotes erd
10239 \end_inset
10240
10241 .
10242 \end_layout
10243
10244 \begin_layout Description
10245 \begin_inset Flex Code
10246 status collapsed
10247
10248 \begin_layout Plain Layout
10249 HTMLTOCSection
10250 \end_layout
10251
10252 \end_inset
10253
10254  [
10255 \begin_inset Flex Code
10256 status collapsed
10257
10258 \begin_layout Plain Layout
10259 <style>
10260 \end_layout
10261
10262 \end_inset
10263
10264 ] The style to use for the table of contents, bibliography, and so forth,
10265  when the document is output to HTML.
10266  For articles, this should normally be 
10267 \begin_inset Flex Code
10268 status collapsed
10269
10270 \begin_layout Plain Layout
10271 Section
10272 \end_layout
10273
10274 \end_inset
10275
10276 ; for books 
10277 \begin_inset Flex Code
10278 status collapsed
10279
10280 \begin_layout Plain Layout
10281 Chapter
10282 \end_layout
10283
10284 \end_inset
10285
10286 .
10287  If it is not given, then \SpecialChar LyX
10288  will attempt to figure out which layout to use.
10289 \end_layout
10290
10291 \begin_layout Description
10292 \begin_inset Flex Code
10293 status collapsed
10294
10295 \begin_layout Plain Layout
10296 IfCounter
10297 \end_layout
10298
10299 \end_inset
10300
10301  [
10302 \begin_inset Flex Code
10303 status collapsed
10304
10305 \begin_layout Plain Layout
10306 <counter>
10307 \end_layout
10308
10309 \end_inset
10310
10311 ] Modifies the properties of the given counter.
10312  If the counter does not exist, the statement is ignored.
10313  Must end with 
10314 \begin_inset Quotes eld
10315 \end_inset
10316
10317
10318 \begin_inset Flex Code
10319 status collapsed
10320
10321 \begin_layout Plain Layout
10322 End
10323 \end_layout
10324
10325 \end_inset
10326
10327
10328 \begin_inset Quotes erd
10329 \end_inset
10330
10331 .
10332 \begin_inset Newline newline
10333 \end_inset
10334
10335 See 
10336 \begin_inset CommandInset ref
10337 LatexCommand ref
10338 reference "subsec:Counters"
10339
10340 \end_inset
10341
10342  for details on counters.
10343 \end_layout
10344
10345 \begin_layout Description
10346 \begin_inset Flex Code
10347 status collapsed
10348
10349 \begin_layout Plain Layout
10350 Input
10351 \end_layout
10352
10353 \end_inset
10354
10355  [
10356 \begin_inset Flex Code
10357 status collapsed
10358
10359 \begin_layout Plain Layout
10360 <filename>
10361 \end_layout
10362
10363 \end_inset
10364
10365 ] This allows you to include another layout definition file within yours
10366  to avoid duplicating commands.
10367  Common examples are the standard layout files, for example, 
10368 \begin_inset Flex Code
10369 status collapsed
10370
10371 \begin_layout Plain Layout
10372 stdclass.inc
10373 \end_layout
10374
10375 \end_inset
10376
10377 , which contains most of the basic layouts.
10378 \change_inserted -712698321 1611646803
10379
10380 \end_layout
10381
10382 \begin_layout Description
10383
10384 \change_inserted -712698321 1611646804
10385 \begin_inset Flex Code
10386 status collapsed
10387
10388 \begin_layout Plain Layout
10389
10390 \change_inserted -712698321 1611646837
10391 InputGlobal
10392 \change_unchanged
10393
10394 \end_layout
10395
10396 \end_inset
10397
10398  [
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403
10404 \change_inserted -712698321 1611646804
10405 <filename>
10406 \change_unchanged
10407
10408 \end_layout
10409
10410 \end_inset
10411
10412 ] is a variant of the 
10413 \begin_inset Flex Code
10414 status collapsed
10415
10416 \begin_layout Plain Layout
10417
10418 \change_inserted -712698321 1611646804
10419 Input
10420 \change_unchanged
10421
10422 \end_layout
10423
10424 \end_inset
10425
10426  command which does not look for files in the user directory.
10427  This allows to create a file 
10428 \begin_inset Flex Code
10429 status collapsed
10430
10431 \begin_layout Plain Layout
10432
10433 \change_inserted -712698321 1611646804
10434 name.layout
10435 \change_unchanged
10436
10437 \end_layout
10438
10439 \end_inset
10440
10441  or 
10442 \begin_inset Flex Code
10443 status collapsed
10444
10445 \begin_layout Plain Layout
10446
10447 \change_inserted -712698321 1611646804
10448 name.inc
10449 \change_unchanged
10450
10451 \end_layout
10452
10453 \end_inset
10454
10455  in the user directory which includes a global file with the same name via
10456  
10457 \begin_inset Flex Code
10458 status collapsed
10459
10460 \begin_layout Plain Layout
10461
10462 \change_inserted -712698321 1611646853
10463 InputGlobal name
10464 \change_unchanged
10465
10466 \end_layout
10467
10468 \end_inset
10469
10470  or 
10471 \begin_inset Flex Code
10472 status collapsed
10473
10474 \begin_layout Plain Layout
10475
10476 \change_inserted -712698321 1611646855
10477 InputGlobal name.inc
10478 \change_unchanged
10479
10480 \end_layout
10481
10482 \end_inset
10483
10484 , respectively (with 
10485 \begin_inset Flex Code
10486 status collapsed
10487
10488 \begin_layout Plain Layout
10489
10490 \change_inserted -712698321 1611646804
10491 Input
10492 \change_unchanged
10493
10494 \end_layout
10495
10496 \end_inset
10497
10498 , the file would recursively include itself).
10499  This way, you can modify global files without having to completely copy
10500  them.
10501 \change_unchanged
10502
10503 \end_layout
10504
10505 \begin_layout Description
10506 \begin_inset Flex Code
10507 status collapsed
10508
10509 \begin_layout Plain Layout
10510 InsetLayout
10511 \end_layout
10512
10513 \end_inset
10514
10515  [
10516 \begin_inset Flex Code
10517 status collapsed
10518
10519 \begin_layout Plain Layout
10520 <type>
10521 \end_layout
10522
10523 \end_inset
10524
10525 ] This section (re-)defines the layout of an inset.
10526  It can be applied to an existing inset or to a new, user-defined inset,
10527  e.g., a new character style.
10528  Must end with 
10529 \begin_inset Quotes eld
10530 \end_inset
10531
10532
10533 \begin_inset Flex Code
10534 status collapsed
10535
10536 \begin_layout Plain Layout
10537 End
10538 \end_layout
10539
10540 \end_inset
10541
10542
10543 \begin_inset Quotes erd
10544 \end_inset
10545
10546 .
10547 \begin_inset Newline newline
10548 \end_inset
10549
10550 See 
10551 \begin_inset CommandInset ref
10552 LatexCommand ref
10553 reference "subsec:Flex-insets-and"
10554
10555 \end_inset
10556
10557  for more information.
10558  
10559 \end_layout
10560
10561 \begin_layout Description
10562 \begin_inset Flex Code
10563 status collapsed
10564
10565 \begin_layout Plain Layout
10566 LeftMargin
10567 \end_layout
10568
10569 \end_inset
10570
10571  [
10572 \begin_inset Flex Code
10573 status collapsed
10574
10575 \begin_layout Plain Layout
10576 string
10577 \end_layout
10578
10579 \end_inset
10580
10581 ] A string that indicates the width of the left margin on the screen, for
10582  example, 
10583 \begin_inset Quotes eld
10584 \end_inset
10585
10586
10587 \begin_inset Flex Code
10588 status collapsed
10589
10590 \begin_layout Plain Layout
10591 MMMMM
10592 \end_layout
10593
10594 \end_inset
10595
10596
10597 \begin_inset Quotes erd
10598 \end_inset
10599
10600 .
10601  (Note that this is not a `length', like 
10602 \begin_inset Quotes eld
10603 \end_inset
10604
10605 2ex
10606 \begin_inset Quotes erd
10607 \end_inset
10608
10609 .)
10610 \end_layout
10611
10612 \begin_layout Description
10613 \begin_inset Flex Code
10614 status collapsed
10615
10616 \begin_layout Plain Layout
10617 MaxCiteNames
10618 \end_layout
10619
10620 \end_inset
10621
10622  [
10623 \begin_inset Flex Code
10624 status collapsed
10625
10626 \begin_layout Plain Layout
10627 integer
10628 \end_layout
10629
10630 \end_inset
10631
10632 ] An integer that determines the maximal number of names displayed in an
10633  author-year citation before the citation switches to 
10634 \begin_inset Quotes eld
10635 \end_inset
10636
10637 FirstAuthor et al.
10638 \begin_inset Quotes erd
10639 \end_inset
10640
10641 .
10642  Primarily used in cite engine files (see 
10643 \begin_inset CommandInset ref
10644 LatexCommand ref
10645 reference "subsec:Cite-Engine-Files"
10646 plural "false"
10647 caps "false"
10648 noprefix "false"
10649
10650 \end_inset
10651
10652 ).
10653 \end_layout
10654
10655 \begin_layout Description
10656
10657 \change_inserted -712698321 1612018485
10658 \begin_inset Flex Code
10659 status collapsed
10660
10661 \begin_layout Plain Layout
10662
10663 \change_inserted -712698321 1612018457
10664 ModifyInsetLayout
10665 \end_layout
10666
10667 \end_inset
10668
10669  [
10670 \begin_inset Flex Code
10671 status collapsed
10672
10673 \begin_layout Plain Layout
10674
10675 \change_inserted -712698321 1612018466
10676 <type>
10677 \end_layout
10678
10679 \end_inset
10680
10681 ] Modifies the layout of an inset.
10682  If the layout does not exist, this section is ignored.
10683  Must end with 
10684 \begin_inset Quotes eld
10685 \end_inset
10686
10687
10688 \begin_inset Flex Code
10689 status collapsed
10690
10691 \begin_layout Plain Layout
10692
10693 \change_inserted -712698321 1612018452
10694 End
10695 \end_layout
10696
10697 \end_inset
10698
10699
10700 \begin_inset Quotes erd
10701 \end_inset
10702
10703 .
10704 \end_layout
10705
10706 \begin_layout Description
10707 \begin_inset Flex Code
10708 status collapsed
10709
10710 \begin_layout Plain Layout
10711 ModifyStyle
10712 \end_layout
10713
10714 \end_inset
10715
10716  [
10717 \begin_inset Flex Code
10718 status collapsed
10719
10720 \begin_layout Plain Layout
10721 <style>
10722 \end_layout
10723
10724 \end_inset
10725
10726 ] Modifies the properties of the given paragraph style.
10727  If the style does not exist, this section is ignored.
10728  Must end with 
10729 \begin_inset Quotes eld
10730 \end_inset
10731
10732
10733 \begin_inset Flex Code
10734 status collapsed
10735
10736 \begin_layout Plain Layout
10737 End
10738 \end_layout
10739
10740 \end_inset
10741
10742
10743 \begin_inset Quotes erd
10744 \end_inset
10745
10746 .
10747 \end_layout
10748
10749 \begin_layout Description
10750 \begin_inset Flex Code
10751 status collapsed
10752
10753 \begin_layout Plain Layout
10754 NoCounter
10755 \end_layout
10756
10757 \end_inset
10758
10759  [
10760 \begin_inset Flex Code
10761 status collapsed
10762
10763 \begin_layout Plain Layout
10764 <counter>
10765 \end_layout
10766
10767 \end_inset
10768
10769 ] Deletes an existing counter, usually one defined in an included file.
10770 \end_layout
10771
10772 \begin_layout Description
10773 \begin_inset Flex Code
10774 status collapsed
10775
10776 \begin_layout Plain Layout
10777 NoFloat
10778 \end_layout
10779
10780 \end_inset
10781
10782  [
10783 \begin_inset Flex Code
10784 status collapsed
10785
10786 \begin_layout Plain Layout
10787 <float>
10788 \end_layout
10789
10790 \end_inset
10791
10792 ] Deletes an existing float.
10793  This is particularly useful when you want to suppress a float that has
10794  been defined in an input file.
10795 \end_layout
10796
10797 \begin_layout Description
10798 \begin_inset Flex Code
10799 status collapsed
10800
10801 \begin_layout Plain Layout
10802 NoStyle
10803 \end_layout
10804
10805 \end_inset
10806
10807  [
10808 \begin_inset Flex Code
10809 status collapsed
10810
10811 \begin_layout Plain Layout
10812 <style>
10813 \end_layout
10814
10815 \end_inset
10816
10817 ] Deletes an existing style.
10818 \end_layout
10819
10820 \begin_layout Description
10821 \begin_inset Flex Code
10822 status collapsed
10823
10824 \begin_layout Plain Layout
10825 OutlinerName
10826 \end_layout
10827
10828 \end_inset
10829
10830  [
10831 \begin_inset Flex Code
10832 status collapsed
10833
10834 \begin_layout Plain Layout
10835 <type>
10836 \end_layout
10837
10838 \end_inset
10839
10840 ] [
10841 \begin_inset Flex Code
10842 status collapsed
10843
10844 \begin_layout Plain Layout
10845 <string>
10846 \end_layout
10847
10848 \end_inset
10849
10850 ] Define a new table of contents with type 
10851 \begin_inset Flex Code
10852 status collapsed
10853
10854 \begin_layout Plain Layout
10855 <type>
10856 \end_layout
10857
10858 \end_inset
10859
10860  and name 
10861 \begin_inset Flex Code
10862 status collapsed
10863
10864 \begin_layout Plain Layout
10865 <string>
10866 \end_layout
10867
10868 \end_inset
10869
10870 .
10871  See also the AddToToc commands.
10872 \end_layout
10873
10874 \begin_layout Description
10875 \begin_inset Flex Code
10876 status collapsed
10877
10878 \begin_layout Plain Layout
10879 OutputFormat
10880 \end_layout
10881
10882 \end_inset
10883
10884  [
10885 \begin_inset Flex Code
10886 status collapsed
10887
10888 \begin_layout Plain Layout
10889 <format>
10890 \end_layout
10891
10892 \end_inset
10893
10894 ] The file format (as defined in the \SpecialChar LyX
10895  preferences) produced by this document
10896  class.
10897  It is mainly useful when 
10898 \begin_inset Flex Code
10899 status collapsed
10900
10901 \begin_layout Plain Layout
10902 OutputType
10903 \end_layout
10904
10905 \end_inset
10906
10907  is 
10908 \begin_inset Flex Code
10909 status collapsed
10910
10911 \begin_layout Plain Layout
10912 literate
10913 \end_layout
10914
10915 \end_inset
10916
10917  and one wants to define a new type of literate document.
10918  The format is reset to 
10919 \change_deleted 5863208 1594239413
10920
10921 \begin_inset Quotes eld
10922 \end_inset
10923
10924
10925 \begin_inset Flex Code
10926 status collapsed
10927
10928 \begin_layout Plain Layout
10929 docbook
10930 \end_layout
10931
10932 \end_inset
10933
10934
10935 \begin_inset Quotes erd
10936 \end_inset
10937
10938  or
10939 \change_unchanged
10940  
10941 \begin_inset Quotes eld
10942 \end_inset
10943
10944
10945 \begin_inset Flex Code
10946 status collapsed
10947
10948 \begin_layout Plain Layout
10949 latex
10950 \end_layout
10951
10952 \end_inset
10953
10954
10955 \begin_inset Quotes erd
10956 \end_inset
10957
10958  when the corresponding 
10959 \begin_inset Flex Code
10960 status collapsed
10961
10962 \begin_layout Plain Layout
10963 OutputType
10964 \end_layout
10965
10966 \end_inset
10967
10968  parameter is encountered.
10969 \end_layout
10970
10971 \begin_layout Description
10972 \begin_inset Flex Code
10973 status collapsed
10974
10975 \begin_layout Plain Layout
10976 OutputType
10977 \end_layout
10978
10979 \end_inset
10980
10981  [
10982 \begin_inset Flex Code
10983 status collapsed
10984
10985 \begin_layout Plain Layout
10986
10987 \emph on
10988 lat
10989 \emph default
10990 ex
10991 \end_layout
10992
10993 \end_inset
10994
10995
10996 \change_deleted 5863208 1594239430
10997
10998 \begin_inset Flex Code
10999 status collapsed
11000
11001 \begin_layout Plain Layout
11002 docbook
11003 \end_layout
11004
11005 \end_inset
11006
11007 ,
11008 \change_unchanged
11009  
11010 \begin_inset Flex Code
11011 status collapsed
11012
11013 \begin_layout Plain Layout
11014 literate
11015 \end_layout
11016
11017 \end_inset
11018
11019 ] Specifies what sort of output documents using this class will produce.
11020 \end_layout
11021
11022 \begin_layout Description
11023 \begin_inset Flex Code
11024 status collapsed
11025
11026 \begin_layout Plain Layout
11027 PackageOptions
11028 \end_layout
11029
11030 \end_inset
11031
11032  [
11033 \begin_inset Flex Code
11034 status collapsed
11035
11036 \begin_layout Plain Layout
11037 string
11038 \end_layout
11039
11040 \end_inset
11041
11042  
11043 \begin_inset Flex Code
11044 status collapsed
11045
11046 \begin_layout Plain Layout
11047 string
11048 \end_layout
11049
11050 \end_inset
11051
11052 ] Specifies options, given in the second string, for the package named by
11053  the first string.
11054  For example, 
11055 \begin_inset Quotes eld
11056 \end_inset
11057
11058
11059 \begin_inset Flex Code
11060 status collapsed
11061
11062 \begin_layout Plain Layout
11063 PackageOptions natbib square
11064 \end_layout
11065
11066 \end_inset
11067
11068
11069 \begin_inset Quotes erd
11070 \end_inset
11071
11072  will cause 
11073 \begin_inset Flex Code
11074 status collapsed
11075
11076 \begin_layout Plain Layout
11077 natbib
11078 \end_layout
11079
11080 \end_inset
11081
11082  to be loaded with the 
11083 \begin_inset Flex Code
11084 status collapsed
11085
11086 \begin_layout Plain Layout
11087 square
11088 \end_layout
11089
11090 \end_inset
11091
11092  option.
11093  (For \SpecialChar TeX
11094 perts, this causes \SpecialChar LyX
11095  to output: 
11096 \begin_inset Flex Code
11097 status collapsed
11098
11099 \begin_layout Plain Layout
11100
11101 \backslash
11102 PassOptionsToPackage{natbib}{square}
11103 \end_layout
11104
11105 \end_inset
11106
11107  prior to loading 
11108 \begin_inset Flex Code
11109 status collapsed
11110
11111 \begin_layout Plain Layout
11112 natbib
11113 \end_layout
11114
11115 \end_inset
11116
11117 .)
11118 \change_inserted -712698321 1565102364
11119
11120 \end_layout
11121
11122 \begin_layout Description
11123
11124 \change_inserted -712698321 1565102470
11125 \begin_inset Flex Code
11126 status collapsed
11127
11128 \begin_layout Plain Layout
11129
11130 \change_inserted -712698321 1565102365
11131 PageSize
11132 \change_unchanged
11133
11134 \end_layout
11135
11136 \end_inset
11137
11138  [
11139 \begin_inset Flex Code
11140 status collapsed
11141
11142 \begin_layout Plain Layout
11143
11144 \change_inserted -712698321 1565105222
11145
11146 \emph on
11147 custom
11148 \emph default
11149 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
11150  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
11151 \change_unchanged
11152
11153 \end_layout
11154
11155 \end_inset
11156
11157 ] The default page size.
11158  This is used by some converters.
11159 \change_unchanged
11160
11161 \end_layout
11162
11163 \begin_layout Description
11164 \begin_inset Flex Code
11165 status collapsed
11166
11167 \begin_layout Plain Layout
11168 PageStyle
11169 \end_layout
11170
11171 \end_inset
11172
11173  [
11174 \begin_inset Flex Code
11175 status collapsed
11176
11177 \begin_layout Plain Layout
11178
11179 \emph on
11180 plain
11181 \end_layout
11182
11183 \end_inset
11184
11185
11186 \begin_inset Flex Code
11187 status collapsed
11188
11189 \begin_layout Plain Layout
11190 empty
11191 \end_layout
11192
11193 \end_inset
11194
11195
11196 \begin_inset Flex Code
11197 status collapsed
11198
11199 \begin_layout Plain Layout
11200 headings
11201 \end_layout
11202
11203 \end_inset
11204
11205 ] The default pagestyle.
11206  Can be changed in the 
11207 \begin_inset Flex Noun
11208 status collapsed
11209
11210 \begin_layout Plain Layout
11211 Document\SpecialChar menuseparator
11212 Settings
11213 \end_layout
11214
11215 \end_inset
11216
11217  dialog.
11218 \end_layout
11219
11220 \begin_layout Description
11221 \begin_inset Flex Code
11222 status collapsed
11223
11224 \begin_layout Plain Layout
11225 Preamble
11226 \end_layout
11227
11228 \end_inset
11229
11230  Sets the preamble for the \SpecialChar LaTeX
11231  document.
11232  Note that this will completely override any prior 
11233 \begin_inset Flex Code
11234 status collapsed
11235
11236 \begin_layout Plain Layout
11237 Preamble
11238 \end_layout
11239
11240 \end_inset
11241
11242  or 
11243 \begin_inset Flex Code
11244 status collapsed
11245
11246 \begin_layout Plain Layout
11247 AddToPreamble
11248 \end_layout
11249
11250 \end_inset
11251
11252  declarations.
11253  (Use 
11254 \begin_inset Flex Code
11255 status collapsed
11256
11257 \begin_layout Plain Layout
11258 AddToPreamble
11259 \end_layout
11260
11261 \end_inset
11262
11263  if you just want to add material to the preamble.) Must end with 
11264 \begin_inset Quotes eld
11265 \end_inset
11266
11267
11268 \begin_inset Flex Code
11269 status collapsed
11270
11271 \begin_layout Plain Layout
11272 EndPreamble
11273 \end_layout
11274
11275 \end_inset
11276
11277
11278 \begin_inset Quotes erd
11279 \end_inset
11280
11281 .
11282 \change_inserted -712698321 1612018500
11283
11284 \end_layout
11285
11286 \begin_layout Description
11287
11288 \change_inserted -712698321 1612018547
11289 \begin_inset Flex Code
11290 status collapsed
11291
11292 \begin_layout Plain Layout
11293
11294 \change_inserted -712698321 1612018506
11295 ProvideInsetLayout
11296 \end_layout
11297
11298 \end_inset
11299
11300  [
11301 \begin_inset Flex Code
11302 status collapsed
11303
11304 \begin_layout Plain Layout
11305
11306 \change_inserted -712698321 1612018509
11307 <type>
11308 \end_layout
11309
11310 \end_inset
11311
11312 ] Defines the layout of an inset if it does not already exist.
11313  If the layout does exist, this section is ignored.
11314  Must end with 
11315 \begin_inset Quotes eld
11316 \end_inset
11317
11318
11319 \begin_inset Flex Code
11320 status collapsed
11321
11322 \begin_layout Plain Layout
11323
11324 \change_inserted -712698321 1612018500
11325 End
11326 \end_layout
11327
11328 \end_inset
11329
11330
11331 \begin_inset Quotes erd
11332 \end_inset
11333
11334 .
11335 \change_unchanged
11336
11337 \end_layout
11338
11339 \begin_layout Description
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 Provides
11345 \end_layout
11346
11347 \end_inset
11348
11349  [
11350 \begin_inset Flex Code
11351 status collapsed
11352
11353 \begin_layout Plain Layout
11354 string
11355 \end_layout
11356
11357 \end_inset
11358
11359 ] [
11360 \begin_inset Flex Code
11361 status collapsed
11362
11363 \begin_layout Plain Layout
11364
11365 \emph on
11366 0
11367 \end_layout
11368
11369 \end_inset
11370
11371 ,
11372 \begin_inset space \thinspace{}
11373 \end_inset
11374
11375
11376 \begin_inset Flex Code
11377 status collapsed
11378
11379 \begin_layout Plain Layout
11380 1
11381 \end_layout
11382
11383 \end_inset
11384
11385 ] Whether the class already provides the feature 
11386 \begin_inset Flex Code
11387 status collapsed
11388
11389 \begin_layout Plain Layout
11390 string
11391 \end_layout
11392
11393 \end_inset
11394
11395 .
11396  A feature is in general the name of a package (e.
11397 \begin_inset space \thinspace{}
11398 \end_inset
11399
11400 g.
11401 \begin_inset space \space{}
11402 \end_inset
11403
11404
11405 \begin_inset Flex Code
11406 status collapsed
11407
11408 \begin_layout Plain Layout
11409 amsmath
11410 \end_layout
11411
11412 \end_inset
11413
11414  or 
11415 \begin_inset Flex Code
11416 status collapsed
11417
11418 \begin_layout Plain Layout
11419 makeidx
11420 \end_layout
11421
11422 \end_inset
11423
11424 ) or a macro (e.
11425 \begin_inset space \thinspace{}
11426 \end_inset
11427
11428 g.
11429 \begin_inset space \space{}
11430 \end_inset
11431
11432
11433 \begin_inset Flex Code
11434 status collapsed
11435
11436 \begin_layout Plain Layout
11437 url
11438 \end_layout
11439
11440 \end_inset
11441
11442  or 
11443 \begin_inset Flex Code
11444 status collapsed
11445
11446 \begin_layout Plain Layout
11447 boldsymbol
11448 \end_layout
11449
11450 \end_inset
11451
11452 ).
11453  See 
11454 \begin_inset CommandInset ref
11455 LatexCommand ref
11456 reference "chap:List-of-functions"
11457
11458 \end_inset
11459
11460  for the list of features.
11461 \end_layout
11462
11463 \begin_layout Description
11464 \begin_inset Flex Code
11465 status collapsed
11466
11467 \begin_layout Plain Layout
11468 ProvidesModule
11469 \end_layout
11470
11471 \end_inset
11472
11473  [
11474 \begin_inset Flex Code
11475 status collapsed
11476
11477 \begin_layout Plain Layout
11478 string
11479 \end_layout
11480
11481 \end_inset
11482
11483 ] Indicates that this layout provides the functionality of the module mentioned,
11484  which should be specified by the filename without the 
11485 \begin_inset Flex Code
11486 status collapsed
11487
11488 \begin_layout Plain Layout
11489 .module
11490 \end_layout
11491
11492 \end_inset
11493
11494  extension.
11495  This will typically be used if the layout includes the module directly,
11496  rather than using the 
11497 \begin_inset Flex Code
11498 status collapsed
11499
11500 \begin_layout Plain Layout
11501 DefaultModule
11502 \end_layout
11503
11504 \end_inset
11505
11506  tag to indicate that it ought to be used.
11507  It could also be used in a module that provided an alternate implementation
11508  of the same functionality.
11509 \end_layout
11510
11511 \begin_layout Description
11512 \begin_inset Flex Code
11513 status collapsed
11514
11515 \begin_layout Plain Layout
11516 ProvideStyle
11517 \end_layout
11518
11519 \end_inset
11520
11521  [
11522 \begin_inset Flex Code
11523 status collapsed
11524
11525 \begin_layout Plain Layout
11526 <style>
11527 \end_layout
11528
11529 \end_inset
11530
11531 ] Creates a new paragraph style if it does not already exist.
11532  If the style does exist, this section is ignored.
11533  Must end with 
11534 \begin_inset Quotes eld
11535 \end_inset
11536
11537
11538 \begin_inset Flex Code
11539 status collapsed
11540
11541 \begin_layout Plain Layout
11542 End
11543 \end_layout
11544
11545 \end_inset
11546
11547
11548 \begin_inset Quotes erd
11549 \end_inset
11550
11551 .
11552 \end_layout
11553
11554 \begin_layout Description
11555 \begin_inset Flex Code
11556 status collapsed
11557
11558 \begin_layout Plain Layout
11559 Requires
11560 \end_layout
11561
11562 \end_inset
11563
11564  [
11565 \begin_inset Flex Code
11566 status collapsed
11567
11568 \begin_layout Plain Layout
11569 string
11570 \end_layout
11571
11572 \end_inset
11573
11574 ] Whether the class requires the feature 
11575 \begin_inset Flex Code
11576 status collapsed
11577
11578 \begin_layout Plain Layout
11579 string
11580 \end_layout
11581
11582 \end_inset
11583
11584 .
11585  Multiple features must be separated by commas.
11586  Note that you can only request supported features.
11587  (See 
11588 \begin_inset CommandInset ref
11589 LatexCommand ref
11590 reference "chap:List-of-functions"
11591
11592 \end_inset
11593
11594  for the list of features.).
11595  If you require a package with specific options, you can additionally use
11596  
11597 \begin_inset Flex Code
11598 status collapsed
11599
11600 \begin_layout Plain Layout
11601 PackageOptions
11602 \end_layout
11603
11604 \end_inset
11605
11606 .
11607 \end_layout
11608
11609 \begin_layout Description
11610 \begin_inset Flex Code
11611 status collapsed
11612
11613 \begin_layout Plain Layout
11614 RightMargin
11615 \end_layout
11616
11617 \end_inset
11618
11619  [
11620 \begin_inset Flex Code
11621 status collapsed
11622
11623 \begin_layout Plain Layout
11624 string
11625 \end_layout
11626
11627 \end_inset
11628
11629 ] A string that indicates the width of the right margin on the screen, for
11630  example, 
11631 \begin_inset Quotes eld
11632 \end_inset
11633
11634
11635 \begin_inset Flex Code
11636 status collapsed
11637
11638 \begin_layout Plain Layout
11639 MMMMM
11640 \end_layout
11641
11642 \end_inset
11643
11644
11645 \begin_inset Quotes erd
11646 \end_inset
11647
11648 .
11649 \end_layout
11650
11651 \begin_layout Description
11652 \begin_inset Flex Code
11653 status collapsed
11654
11655 \begin_layout Plain Layout
11656 SecNumDepth
11657 \end_layout
11658
11659 \end_inset
11660
11661  [
11662 \begin_inset Flex Code
11663 status collapsed
11664
11665 \begin_layout Plain Layout
11666 int=3
11667 \end_layout
11668
11669 \end_inset
11670
11671 ] Sets which divisions get numbered.
11672  Corresponds to the
11673 \begin_inset Newline newline
11674 \end_inset
11675
11676
11677 \begin_inset Flex Code
11678 status collapsed
11679
11680 \begin_layout Plain Layout
11681 secnumdepth
11682 \end_layout
11683
11684 \end_inset
11685
11686  counter in \SpecialChar LaTeX
11687 .
11688 \end_layout
11689
11690 \begin_layout Description
11691 \begin_inset Flex Code
11692 status collapsed
11693
11694 \begin_layout Plain Layout
11695 Sides
11696 \end_layout
11697
11698 \end_inset
11699
11700  [
11701 \begin_inset Flex Code
11702 status collapsed
11703
11704 \begin_layout Plain Layout
11705
11706 \emph on
11707 1
11708 \end_layout
11709
11710 \end_inset
11711
11712 ,
11713 \begin_inset space \thinspace{}
11714 \end_inset
11715
11716
11717 \begin_inset Flex Code
11718 status collapsed
11719
11720 \begin_layout Plain Layout
11721 2
11722 \end_layout
11723
11724 \end_inset
11725
11726 ] Whether the class-default should be printing on one or both sides of the
11727  paper.
11728  Can be changed in the 
11729 \begin_inset Flex Noun
11730 status collapsed
11731
11732 \begin_layout Plain Layout
11733 Document\SpecialChar menuseparator
11734 Settings
11735 \end_layout
11736
11737 \end_inset
11738
11739  dialog.
11740 \end_layout
11741
11742 \begin_layout Description
11743 \begin_inset Flex Code
11744 status collapsed
11745
11746 \begin_layout Plain Layout
11747 Style
11748 \end_layout
11749
11750 \end_inset
11751
11752  [
11753 \begin_inset Flex Code
11754 status collapsed
11755
11756 \begin_layout Plain Layout
11757 <name>
11758 \end_layout
11759
11760 \end_inset
11761
11762 ] This sequence defines a paragraph style.
11763  If the style does not yet exist, it is created; if it does exist, its parameter
11764 s are modified.
11765  Must end with 
11766 \begin_inset Quotes eld
11767 \end_inset
11768
11769
11770 \begin_inset Flex Code
11771 status collapsed
11772
11773 \begin_layout Plain Layout
11774 End
11775 \end_layout
11776
11777 \end_inset
11778
11779
11780 \begin_inset Quotes erd
11781 \end_inset
11782
11783 .
11784 \begin_inset Newline newline
11785 \end_inset
11786
11787 See 
11788 \begin_inset CommandInset ref
11789 LatexCommand ref
11790 reference "subsec:Paragraph-Styles"
11791
11792 \end_inset
11793
11794  for details on paragraph styles.
11795 \change_inserted -712698321 1553617804
11796
11797 \end_layout
11798
11799 \begin_layout Description
11800
11801 \change_inserted -712698321 1553617862
11802 \begin_inset Flex Code
11803 status collapsed
11804
11805 \begin_layout Plain Layout
11806
11807 \change_inserted -712698321 1553617809
11808 TableStyle
11809 \change_unchanged
11810
11811 \end_layout
11812
11813 \end_inset
11814
11815  [
11816 \begin_inset Flex Code
11817 status collapsed
11818
11819 \begin_layout Plain Layout
11820
11821 \change_inserted -712698321 1553617805
11822 <name>
11823 \change_unchanged
11824
11825 \end_layout
11826
11827 \end_inset
11828
11829 ] defines the default table style that is used when inserting a table.
11830  The following styles are available:
11831 \end_layout
11832
11833 \begin_deeper
11834 \begin_layout Itemize
11835
11836 \change_inserted -712698321 1554308039
11837 \begin_inset Flex Code
11838 status collapsed
11839
11840 \begin_layout Plain Layout
11841
11842 \change_inserted -712698321 1554307928
11843 Formal_with_Footline
11844 \change_unchanged
11845
11846 \end_layout
11847
11848 \end_inset
11849
11850 : formal (
11851 \begin_inset Quotes eld
11852 \end_inset
11853
11854 booktabs
11855 \begin_inset Quotes erd
11856 \end_inset
11857
11858 ) style with horizontal lines only, using a bold top and bottom line, the
11859  first and last row are additionally separated from the table body with
11860  a thin middle line.
11861 \end_layout
11862
11863 \begin_layout Itemize
11864
11865 \change_inserted -712698321 1554308087
11866 \begin_inset Flex Code
11867 status collapsed
11868
11869 \begin_layout Plain Layout
11870
11871 \change_inserted -712698321 1554308042
11872 Formal_without_Footline
11873 \change_unchanged
11874
11875 \end_layout
11876
11877 \end_inset
11878
11879 : same as the above, but the last row is not separated with a middle line
11880  from the body.
11881 \end_layout
11882
11883 \begin_layout Itemize
11884
11885 \change_inserted -712698321 1553618031
11886 \begin_inset Flex Code
11887 status collapsed
11888
11889 \begin_layout Plain Layout
11890
11891 \change_inserted -712698321 1553618006
11892 Simple_Grid
11893 \change_unchanged
11894
11895 \end_layout
11896
11897 \end_inset
11898
11899 : Simple table lines.
11900 \end_layout
11901
11902 \begin_layout Itemize
11903
11904 \change_inserted -712698321 1553618309
11905 \begin_inset Flex Code
11906 status collapsed
11907
11908 \begin_layout Plain Layout
11909
11910 \change_inserted -712698321 1553618031
11911 Grid_with_Head
11912 \change_unchanged
11913
11914 \end_layout
11915
11916 \end_inset
11917
11918 : Like 
11919 \begin_inset Flex Code
11920 status collapsed
11921
11922 \begin_layout Plain Layout
11923
11924 \change_inserted -712698321 1553618043
11925 Simple_Grid
11926 \change_unchanged
11927
11928 \end_layout
11929
11930 \end_inset
11931
11932 , but with the header column offset with a second horizontal line.
11933  This is also the default style of \SpecialChar LyX
11934 .
11935 \end_layout
11936
11937 \begin_layout Itemize
11938
11939 \change_inserted -712698321 1553618280
11940 \begin_inset Flex Code
11941 status collapsed
11942
11943 \begin_layout Plain Layout
11944
11945 \change_inserted -712698321 1553618261
11946 No_Borders
11947 \change_unchanged
11948
11949 \end_layout
11950
11951 \end_inset
11952
11953 : Table without lines.
11954 \change_unchanged
11955
11956 \end_layout
11957
11958 \end_deeper
11959 \begin_layout Description
11960 \begin_inset Flex Code
11961 status collapsed
11962
11963 \begin_layout Plain Layout
11964 TitleLatexName
11965 \end_layout
11966
11967 \end_inset
11968
11969  [
11970 \begin_inset Flex Code
11971 status collapsed
11972
11973 \begin_layout Plain Layout
11974 string="maketitle"
11975 \end_layout
11976
11977 \end_inset
11978
11979 ] The name of the command or environment to be used with 
11980 \begin_inset Flex Code
11981 status collapsed
11982
11983 \begin_layout Plain Layout
11984 TitleLatexType
11985 \end_layout
11986
11987 \end_inset
11988
11989 .
11990 \end_layout
11991
11992 \begin_layout Description
11993 \begin_inset Flex Code
11994 status collapsed
11995
11996 \begin_layout Plain Layout
11997 TitleLatexType
11998 \end_layout
11999
12000 \end_inset
12001
12002  [
12003 \begin_inset Flex Code
12004 status collapsed
12005
12006 \begin_layout Plain Layout
12007
12008 \emph on
12009 CommandAfter
12010 \end_layout
12011
12012 \end_inset
12013
12014
12015 \begin_inset Flex Code
12016 status collapsed
12017
12018 \begin_layout Plain Layout
12019 Environment
12020 \end_layout
12021
12022 \end_inset
12023
12024 ] Indicates what kind of markup is used to define the title of a document.
12025  
12026 \begin_inset Flex Code
12027 status collapsed
12028
12029 \begin_layout Plain Layout
12030 CommandAfter
12031 \end_layout
12032
12033 \end_inset
12034
12035  means that the macro with name 
12036 \begin_inset Flex Code
12037 status collapsed
12038
12039 \begin_layout Plain Layout
12040 TitleLatexName
12041 \end_layout
12042
12043 \end_inset
12044
12045  will be inserted after the last layout which has 
12046 \begin_inset Quotes eld
12047 \end_inset
12048
12049
12050 \begin_inset Flex Code
12051 status collapsed
12052
12053 \begin_layout Plain Layout
12054 InTitle
12055 \begin_inset space ~
12056 \end_inset
12057
12058 1
12059 \end_layout
12060
12061 \end_inset
12062
12063
12064 \begin_inset Quotes erd
12065 \end_inset
12066
12067 .
12068  
12069 \begin_inset Flex Code
12070 status collapsed
12071
12072 \begin_layout Plain Layout
12073 Environment
12074 \end_layout
12075
12076 \end_inset
12077
12078  corresponds to the case where all layouts which have 
12079 \begin_inset Quotes eld
12080 \end_inset
12081
12082
12083 \begin_inset Flex Code
12084 status collapsed
12085
12086 \begin_layout Plain Layout
12087 InTitle
12088 \begin_inset space ~
12089 \end_inset
12090
12091 1
12092 \end_layout
12093
12094 \end_inset
12095
12096
12097 \begin_inset Quotes erd
12098 \end_inset
12099
12100  should be enclosed into the 
12101 \begin_inset Flex Code
12102 status collapsed
12103
12104 \begin_layout Plain Layout
12105 TitleLatexName
12106 \end_layout
12107
12108 \end_inset
12109
12110  environment.
12111 \end_layout
12112
12113 \begin_layout Description
12114 \begin_inset Flex Code
12115 status collapsed
12116
12117 \begin_layout Plain Layout
12118 TocDepth
12119 \end_layout
12120
12121 \end_inset
12122
12123  [
12124 \begin_inset Flex Code
12125 status collapsed
12126
12127 \begin_layout Plain Layout
12128 int=3
12129 \end_layout
12130
12131 \end_inset
12132
12133 ] Sets which divisions are included in the table of contents.
12134  Corresponds to the 
12135 \begin_inset Flex Code
12136 status collapsed
12137
12138 \begin_layout Plain Layout
12139 tocdepth
12140 \end_layout
12141
12142 \end_inset
12143
12144  counter in \SpecialChar LaTeX
12145 .
12146 \end_layout
12147
12148 \begin_layout Subsection
12149 \begin_inset Flex Code
12150 status collapsed
12151
12152 \begin_layout Plain Layout
12153 ClassOptions
12154 \end_layout
12155
12156 \end_inset
12157
12158  section
12159 \begin_inset CommandInset label
12160 LatexCommand label
12161 name "subsec:ClassOptions"
12162
12163 \end_inset
12164
12165
12166 \end_layout
12167
12168 \begin_layout Standard
12169 The 
12170 \begin_inset Flex Code
12171 status collapsed
12172
12173 \begin_layout Plain Layout
12174 ClassOptions
12175 \end_layout
12176
12177 \end_inset
12178
12179  section can contain the following entries:
12180 \end_layout
12181
12182 \begin_layout Description
12183 \begin_inset Flex Code
12184 status collapsed
12185
12186 \begin_layout Plain Layout
12187 FontSize
12188 \end_layout
12189
12190 \end_inset
12191
12192  [
12193 \begin_inset Flex Code
12194 status collapsed
12195
12196 \begin_layout Plain Layout
12197 string="10|11|12"
12198 \end_layout
12199
12200 \end_inset
12201
12202 ] The list of available font sizes for the document's main font, separated
12203  by 
12204 \begin_inset Quotes eld
12205 \end_inset
12206
12207
12208 \begin_inset Flex Code
12209 status collapsed
12210
12211 \begin_layout Plain Layout
12212 |
12213 \end_layout
12214
12215 \end_inset
12216
12217
12218 \begin_inset Quotes erd
12219 \end_inset
12220
12221 .
12222
12223 \change_inserted -712698321 1565110196
12224  Any number is possible.
12225 \end_layout
12226
12227 \begin_layout Description
12228
12229 \change_inserted -712698321 1565110259
12230 \begin_inset Flex Code
12231 status collapsed
12232
12233 \begin_layout Plain Layout
12234
12235 \change_inserted -712698321 1565110199
12236 FontSizeFormat
12237 \change_unchanged
12238
12239 \end_layout
12240
12241 \end_inset
12242
12243  [
12244 \begin_inset Flex Code
12245 status collapsed
12246
12247 \begin_layout Plain Layout
12248
12249 \change_inserted -712698321 1565110196
12250 string
12251 \change_unchanged
12252
12253 \end_layout
12254
12255 \end_inset
12256
12257 ] The format for the font size option.
12258  Default: 
12259 \begin_inset Flex Code
12260 status collapsed
12261
12262 \begin_layout Plain Layout
12263
12264 \change_inserted -712698321 1565110238
12265 $$spt
12266 \change_unchanged
12267
12268 \end_layout
12269
12270 \end_inset
12271
12272 .
12273  
12274 \begin_inset Flex Code
12275 status collapsed
12276
12277 \begin_layout Plain Layout
12278
12279 \change_inserted -712698321 1565110248
12280 $$s
12281 \change_unchanged
12282
12283 \end_layout
12284
12285 \end_inset
12286
12287  is a placeholder for the font size.
12288 \change_unchanged
12289
12290 \end_layout
12291
12292 \begin_layout Description
12293
12294 \change_deleted 5863208 1594239483
12295 \begin_inset Flex Code
12296 status collapsed
12297
12298 \begin_layout Plain Layout
12299 Header
12300 \end_layout
12301
12302 \end_inset
12303
12304  Used to set the DTD line with XML-based output classes.
12305  E.
12306 \begin_inset space \thinspace{}
12307 \end_inset
12308
12309 g.: PUBLIC 
12310 \begin_inset Quotes eld
12311 \end_inset
12312
12313 -//OASIS//DTD DocBook V4.2//EN
12314 \begin_inset Quotes erd
12315 \end_inset
12316
12317 .
12318 \change_inserted -712698321 1565101761
12319
12320 \end_layout
12321
12322 \begin_layout Description
12323
12324 \change_inserted -712698321 1565180598
12325 \begin_inset Flex Code
12326 status collapsed
12327
12328 \begin_layout Plain Layout
12329
12330 \change_inserted -712698321 1565101918
12331 PageSize
12332 \change_unchanged
12333
12334 \end_layout
12335
12336 \end_inset
12337
12338  [
12339 \begin_inset Flex Code
12340 status collapsed
12341
12342 \begin_layout Plain Layout
12343
12344 \change_inserted -712698321 1565105399
12345 string="letter|\SpecialChar allowbreak
12346 legal|\SpecialChar allowbreak
12347 executive|\SpecialChar allowbreak
12348 a0|\SpecialChar allowbreak
12349 a1|\SpecialChar allowbreak
12350 a2|\SpecialChar allowbreak
12351 a3|\SpecialChar allowbreak
12352 a4|\SpecialChar allowbreak
12353 a5|\SpecialChar allowbreak
12354 a6|\SpecialChar allowbreak
12355 b0|\SpecialChar allowbreak
12356 b1|\SpecialChar allowbreak
12357 b2|\SpecialChar allowbreak
12358 b3|\SpecialChar allowbreak
12359 b4|\SpecialChar allowbreak
12360 b5|\SpecialChar allowbreak
12361 b6|\SpecialChar allowbreak
12362 c0|\SpecialChar allowbreak
12363 c1|\SpecialChar allowbreak
12364 c
12365 2|\SpecialChar allowbreak
12366 c3|\SpecialChar allowbreak
12367 c4|\SpecialChar allowbreak
12368 c5|\SpecialChar allowbreak
12369 c6|\SpecialChar allowbreak
12370 b0j|\SpecialChar allowbreak
12371 b1j|\SpecialChar allowbreak
12372 b2j|\SpecialChar allowbreak
12373 b3j|\SpecialChar allowbreak
12374 b4j|\SpecialChar allowbreak
12375 b5j|\SpecialChar allowbreak
12376 b6j"
12377 \change_unchanged
12378
12379 \end_layout
12380
12381 \end_inset
12382
12383 ] The list of available page sizes, separated by 
12384 \begin_inset Quotes eld
12385 \end_inset
12386
12387
12388 \begin_inset Flex Code
12389 status collapsed
12390
12391 \begin_layout Plain Layout
12392
12393 \change_inserted -712698321 1565101779
12394 |
12395 \change_unchanged
12396
12397 \end_layout
12398
12399 \end_inset
12400
12401
12402 \begin_inset Quotes erd
12403 \end_inset
12404
12405 .
12406  Currently, only the listed sizes are supported.
12407  Other sizes might be entered as custom class option.
12408 \end_layout
12409
12410 \begin_layout Description
12411
12412 \change_inserted -712698321 1565180623
12413 \begin_inset Flex Code
12414 status collapsed
12415
12416 \begin_layout Plain Layout
12417
12418 \change_inserted -712698321 1565180605
12419 PageSizeFormat
12420 \change_unchanged
12421
12422 \end_layout
12423
12424 \end_inset
12425
12426  [
12427 \begin_inset Flex Code
12428 status collapsed
12429
12430 \begin_layout Plain Layout
12431
12432 \change_inserted -712698321 1565180601
12433 string
12434 \change_unchanged
12435
12436 \end_layout
12437
12438 \end_inset
12439
12440 ] The format for the page size option.
12441  Default: 
12442 \begin_inset Flex Code
12443 status collapsed
12444
12445 \begin_layout Plain Layout
12446
12447 \change_inserted -712698321 1565180618
12448 $$spaper
12449 \change_unchanged
12450
12451 \end_layout
12452
12453 \end_inset
12454
12455 .
12456  
12457 \begin_inset Flex Code
12458 status collapsed
12459
12460 \begin_layout Plain Layout
12461
12462 \change_inserted -712698321 1565180601
12463 $$s
12464 \change_unchanged
12465
12466 \end_layout
12467
12468 \end_inset
12469
12470  is a placeholder for the paper size.
12471 \change_unchanged
12472
12473 \end_layout
12474
12475 \begin_layout Description
12476 \begin_inset Flex Code
12477 status collapsed
12478
12479 \begin_layout Plain Layout
12480 PageStyle
12481 \end_layout
12482
12483 \end_inset
12484
12485  [
12486 \begin_inset Flex Code
12487 status collapsed
12488
12489 \begin_layout Plain Layout
12490 string="empty|plain|headings|fancy"
12491 \end_layout
12492
12493 \end_inset
12494
12495 ] The list of available page sty\SpecialChar softhyphen
12496 les, separated by 
12497 \begin_inset Quotes eld
12498 \end_inset
12499
12500
12501 \begin_inset Flex Code
12502 status collapsed
12503
12504 \begin_layout Plain Layout
12505 |
12506 \end_layout
12507
12508 \end_inset
12509
12510
12511 \begin_inset Quotes erd
12512 \end_inset
12513
12514 .
12515 \end_layout
12516
12517 \begin_layout Description
12518 \begin_inset Flex Code
12519 status collapsed
12520
12521 \begin_layout Plain Layout
12522 Other
12523 \end_layout
12524
12525 \end_inset
12526
12527  [
12528 \begin_inset Flex Code
12529 status collapsed
12530
12531 \begin_layout Plain Layout
12532 string=""
12533 \end_layout
12534
12535 \end_inset
12536
12537 ] Some document class options, separated by a comma, that will be added
12538  to the optional part of the 
12539 \begin_inset Flex Code
12540 status collapsed
12541
12542 \begin_layout Plain Layout
12543
12544 \backslash
12545 documentclass
12546 \end_layout
12547
12548 \end_inset
12549
12550  command.
12551 \end_layout
12552
12553 \begin_layout Standard
12554 The 
12555 \begin_inset Flex Code
12556 status collapsed
12557
12558 \begin_layout Plain Layout
12559 ClassOptions
12560 \end_layout
12561
12562 \end_inset
12563
12564  section must end with 
12565 \begin_inset Quotes eld
12566 \end_inset
12567
12568
12569 \begin_inset Flex Code
12570 status collapsed
12571
12572 \begin_layout Plain Layout
12573 End
12574 \end_layout
12575
12576 \end_inset
12577
12578
12579 \begin_inset Quotes erd
12580 \end_inset
12581
12582 .
12583 \end_layout
12584
12585 \begin_layout Subsection
12586 Paragraph styles
12587 \begin_inset CommandInset label
12588 LatexCommand label
12589 name "subsec:Paragraph-Styles"
12590
12591 \end_inset
12592
12593
12594 \end_layout
12595
12596 \begin_layout Standard
12597 A paragraph style description looks like this:
12598 \begin_inset Foot
12599 status collapsed
12600
12601 \begin_layout Plain Layout
12602 Note that this will either define a new style or modify an existing one.
12603 \end_layout
12604
12605 \end_inset
12606
12607
12608 \end_layout
12609
12610 \begin_layout LyX-Code
12611 Style 
12612 \family roman
12613 \emph on
12614 name
12615 \end_layout
12616
12617 \begin_layout LyX-Code
12618  ...
12619 \end_layout
12620
12621 \begin_layout LyX-Code
12622 End
12623 \end_layout
12624
12625 \begin_layout Standard
12626 where the following commands are allowed:
12627 \end_layout
12628
12629 \begin_layout Description
12630 \begin_inset Flex Code
12631 status collapsed
12632
12633 \begin_layout Plain Layout
12634 AddToToc
12635 \end_layout
12636
12637 \end_inset
12638
12639  [
12640 \begin_inset Flex Code
12641 status collapsed
12642
12643 \begin_layout Plain Layout
12644 string
12645 \end_layout
12646
12647 \end_inset
12648
12649 =""] This paragraph will appear in the table of contents of the given type.
12650  An empty string disables.
12651  See also the OutlinerName and the IsTocCaption commands.
12652  Default: disabled.
12653 \end_layout
12654
12655 \begin_layout Description
12656 \begin_inset Flex Code
12657 status collapsed
12658
12659 \begin_layout Plain Layout
12660 Align
12661 \end_layout
12662
12663 \end_inset
12664
12665  [
12666 \begin_inset Flex Code
12667 status collapsed
12668
12669 \begin_layout Plain Layout
12670
12671 \emph on
12672 block
12673 \emph default
12674 , left, right, center
12675 \end_layout
12676
12677 \end_inset
12678
12679 ] Paragraph alignment.
12680 \end_layout
12681
12682 \begin_layout Description
12683 \begin_inset Flex Code
12684 status collapsed
12685
12686 \begin_layout Plain Layout
12687 AlignPossible
12688 \end_layout
12689
12690 \end_inset
12691
12692  [
12693 \begin_inset Flex Code
12694 status collapsed
12695
12696 \begin_layout Plain Layout
12697
12698 \emph on
12699 block
12700 \emph default
12701 , left, right, center
12702 \end_layout
12703
12704 \end_inset
12705
12706 ] A comma separated list of permitted alignments.
12707  (Some \SpecialChar LaTeX
12708  styles prohibit certain alignments, since those wouldn't make sense.
12709  For example a right-aligned or centered enumeration isn't possible.)
12710 \end_layout
12711
12712 \begin_layout Description
12713 \begin_inset Flex Code
12714 status collapsed
12715
12716 \begin_layout Plain Layout
12717 Argument
12718 \end_layout
12719
12720 \end_inset
12721
12722  [
12723 \begin_inset Flex Code
12724 status collapsed
12725
12726 \begin_layout Plain Layout
12727 int
12728 \end_layout
12729
12730 \end_inset
12731
12732 ] Defines argument number <int> of a command\SpecialChar breakableslash
12733 environment associated with
12734  the current style.
12735  This is useful for things like section headings, and only makes sense with
12736  \SpecialChar LaTeX
12737 .
12738  Every (optional or required) argument of a command or environment – except
12739  for the required argument that is associated with the content of the paragraph
12740  itself – has a separate definition, where the number specifies the order
12741  of the arguments.
12742  The definition must end with 
12743 \begin_inset Flex Code
12744 status collapsed
12745
12746 \begin_layout Plain Layout
12747 EndArgument
12748 \end_layout
12749
12750 \end_inset
12751
12752 .
12753  So a command with two optional arguments has:
12754 \end_layout
12755
12756 \begin_deeper
12757 \begin_layout Quote
12758
12759 \family typewriter
12760 Argument 1
12761 \end_layout
12762
12763 \begin_layout Quote
12764
12765 \family typewriter
12766 ...
12767 \end_layout
12768
12769 \begin_layout Quote
12770
12771 \family typewriter
12772 EndArgument
12773 \end_layout
12774
12775 \begin_layout Quote
12776
12777 \family typewriter
12778 Argument 2
12779 \end_layout
12780
12781 \begin_layout Quote
12782
12783 \family typewriter
12784 ...
12785 \end_layout
12786
12787 \begin_layout Quote
12788
12789 \family typewriter
12790 EndArgument
12791 \end_layout
12792
12793 \begin_layout Standard
12794 Inside the 
12795 \begin_inset Flex Code
12796 status collapsed
12797
12798 \begin_layout Plain Layout
12799 Argument
12800 \end_layout
12801
12802 \end_inset
12803
12804  definition, the following specifications are possible:
12805 \end_layout
12806
12807 \begin_layout Itemize
12808 \begin_inset Flex Code
12809 status collapsed
12810
12811 \begin_layout Plain Layout
12812 LabelString
12813 \end_layout
12814
12815 \end_inset
12816
12817  
12818 \begin_inset Flex Code
12819 status collapsed
12820
12821 \begin_layout Plain Layout
12822 [string]
12823 \end_layout
12824
12825 \end_inset
12826
12827  The string that will appear both in the menu (to insert this argument)
12828  and on the argument inset button (unless you also specify a separate 
12829 \begin_inset Flex Code
12830 status collapsed
12831
12832 \begin_layout Plain Layout
12833 MenuString
12834 \end_layout
12835
12836 \end_inset
12837
12838 ).
12839  For the menu, you can define an accelerator by appending the respective
12840  character to the string, divided by 
12841 \begin_inset Quotes eld
12842 \end_inset
12843
12844 |
12845 \begin_inset Quotes erd
12846 \end_inset
12847
12848  (e.
12849 \begin_inset space \thinspace{}
12850 \end_inset
12851
12852 g.
12853 \begin_inset space \space{}
12854 \end_inset
12855
12856
12857 \begin_inset Quotes eld
12858 \end_inset
12859
12860
12861 \begin_inset Flex Code
12862 status collapsed
12863
12864 \begin_layout Plain Layout
12865 Short Title|S
12866 \end_layout
12867
12868 \end_inset
12869
12870
12871 \begin_inset Quotes erd
12872 \end_inset
12873
12874 ).
12875 \end_layout
12876
12877 \begin_layout Itemize
12878 \begin_inset Flex Code
12879 status collapsed
12880
12881 \begin_layout Plain Layout
12882 MenuString
12883 \end_layout
12884
12885 \end_inset
12886
12887  
12888 \begin_inset Flex Code
12889 status collapsed
12890
12891 \begin_layout Plain Layout
12892 [string]
12893 \end_layout
12894
12895 \end_inset
12896
12897  A separate string for the menu.
12898  You can define an accelerator by appending the respective character to
12899  the string, divided by 
12900 \begin_inset Quotes eld
12901 \end_inset
12902
12903 |
12904 \begin_inset Quotes erd
12905 \end_inset
12906
12907  (e.
12908 \begin_inset space \thinspace{}
12909 \end_inset
12910
12911 g.
12912 \begin_inset space \space{}
12913 \end_inset
12914
12915
12916 \begin_inset Quotes eld
12917 \end_inset
12918
12919
12920 \begin_inset Flex Code
12921 status collapsed
12922
12923 \begin_layout Plain Layout
12924 Short Title|S
12925 \end_layout
12926
12927 \end_inset
12928
12929
12930 \begin_inset Quotes erd
12931 \end_inset
12932
12933 ).
12934  This specification is optional.
12935  If it is not given the 
12936 \begin_inset Flex Code
12937 status collapsed
12938
12939 \begin_layout Plain Layout
12940 LabelString
12941 \end_layout
12942
12943 \end_inset
12944
12945  will be used instead for the menu.
12946 \end_layout
12947
12948 \begin_layout Itemize
12949 \begin_inset Flex Code
12950 status collapsed
12951
12952 \begin_layout Plain Layout
12953 Tooltip
12954 \end_layout
12955
12956 \end_inset
12957
12958  
12959 \begin_inset Flex Code
12960 status collapsed
12961
12962 \begin_layout Plain Layout
12963 [string]
12964 \end_layout
12965
12966 \end_inset
12967
12968  A longer explanatory text that appears in the tooltip when hovering over
12969  the argument inset.
12970 \end_layout
12971
12972 \begin_layout Itemize
12973 \begin_inset Flex Code
12974 status collapsed
12975
12976 \begin_layout Plain Layout
12977 Mandatory
12978 \end_layout
12979
12980 \end_inset
12981
12982  [
12983 \begin_inset Flex Code
12984 status collapsed
12985
12986 \begin_layout Plain Layout
12987
12988 \emph on
12989 0
12990 \end_layout
12991
12992 \end_inset
12993
12994 ,
12995 \begin_inset space \thinspace{}
12996 \end_inset
12997
12998
12999 \begin_inset Flex Code
13000 status collapsed
13001
13002 \begin_layout Plain Layout
13003 1
13004 \end_layout
13005
13006 \end_inset
13007
13008 ] Declare if this is a mandatory (1) or an optional (0) argument.
13009  Mandatory arguments will be output empty if not given, while optional arguments
13010  will not be output at all.
13011  By default, mandatory arguments are delimited by 
13012 \begin_inset Flex Code
13013 status collapsed
13014
13015 \begin_layout Plain Layout
13016 {...}
13017 \end_layout
13018
13019 \end_inset
13020
13021 , while optional arguments are delimited by 
13022 \begin_inset Flex Code
13023 status collapsed
13024
13025 \begin_layout Plain Layout
13026 [...]
13027 \end_layout
13028
13029 \end_inset
13030
13031
13032 \change_inserted -712698321 1555579782
13033
13034 \end_layout
13035
13036 \begin_layout Itemize
13037
13038 \change_inserted -712698321 1555579780
13039 \begin_inset Flex Code
13040 status collapsed
13041
13042 \begin_layout Plain Layout
13043
13044 \change_inserted -712698321 1555579780
13045 NewlineCmd
13046 \change_unchanged
13047
13048 \end_layout
13049
13050 \end_inset
13051
13052  
13053 \begin_inset Flex Code
13054 status collapsed
13055
13056 \begin_layout Plain Layout
13057
13058 \change_inserted -712698321 1555579780
13059 [string]
13060 \change_unchanged
13061
13062 \end_layout
13063
13064 \end_inset
13065
13066  Option to define a different command (from the default 
13067 \begin_inset Flex Code
13068 status collapsed
13069
13070 \begin_layout Plain Layout
13071
13072 \change_inserted -712698321 1555579780
13073
13074 \backslash
13075
13076 \backslash
13077
13078 \change_unchanged
13079
13080 \end_layout
13081
13082 \end_inset
13083
13084 ) to be used for line breaks.
13085  The initial backslash must not be specified.
13086 \change_unchanged
13087
13088 \end_layout
13089
13090 \begin_layout Itemize
13091 \begin_inset Flex Code
13092 status collapsed
13093
13094 \begin_layout Plain Layout
13095 Requires
13096 \end_layout
13097
13098 \end_inset
13099
13100  
13101 \begin_inset Flex Code
13102 status collapsed
13103
13104 \begin_layout Plain Layout
13105 [int=0]
13106 \end_layout
13107
13108 \end_inset
13109
13110  defines another argument (by its number) which this argument requires to
13111  be output if it is itself output.
13112  E.
13113 \begin_inset space \thinspace{}
13114 \end_inset
13115
13116 g., in \SpecialChar LaTeX
13117  commands, optional arguments often require previous optional arguments
13118  to be output (at least empty), as in 
13119 \begin_inset Flex Code
13120 status collapsed
13121
13122 \begin_layout Plain Layout
13123
13124 \backslash
13125 command[][argument]{text}
13126 \end_layout
13127
13128 \end_inset
13129
13130 .
13131  This can be achieved by the statement 
13132 \begin_inset Flex Code
13133 status collapsed
13134
13135 \begin_layout Plain Layout
13136 Requires 1
13137 \end_layout
13138
13139 \end_inset
13140
13141  within 
13142 \begin_inset Flex Code
13143 status collapsed
13144
13145 \begin_layout Plain Layout
13146 Argument 2
13147 \end_layout
13148
13149 \end_inset
13150
13151 .
13152 \end_layout
13153
13154 \begin_layout Itemize
13155 \begin_inset Flex Code
13156 status collapsed
13157
13158 \begin_layout Plain Layout
13159 LeftDelim
13160 \end_layout
13161
13162 \end_inset
13163
13164  
13165 \begin_inset Flex Code
13166 status collapsed
13167
13168 \begin_layout Plain Layout
13169 [string]
13170 \end_layout
13171
13172 \end_inset
13173
13174  defines a custom left delimiter (instead of 
13175 \begin_inset Flex Code
13176 status collapsed
13177
13178 \begin_layout Plain Layout
13179 {
13180 \end_layout
13181
13182 \end_inset
13183
13184  or 
13185 \begin_inset Flex Code
13186 status collapsed
13187
13188 \begin_layout Plain Layout
13189 [
13190 \end_layout
13191
13192 \end_inset
13193
13194 ).
13195  A line break in the output can be indicated by 
13196 \begin_inset Flex Code
13197 status collapsed
13198
13199 \begin_layout Plain Layout
13200 <br/>
13201 \end_layout
13202
13203 \end_inset
13204
13205 .
13206 \end_layout
13207
13208 \begin_layout Itemize
13209 \begin_inset Flex Code
13210 status collapsed
13211
13212 \begin_layout Plain Layout
13213 RightDelim
13214 \end_layout
13215
13216 \end_inset
13217
13218  
13219 \begin_inset Flex Code
13220 status collapsed
13221
13222 \begin_layout Plain Layout
13223 [string]
13224 \end_layout
13225
13226 \end_inset
13227
13228  defines a custom right delimiter (instead of 
13229 \begin_inset Flex Code
13230 status collapsed
13231
13232 \begin_layout Plain Layout
13233 }
13234 \end_layout
13235
13236 \end_inset
13237
13238  or 
13239 \begin_inset Flex Code
13240 status collapsed
13241
13242 \begin_layout Plain Layout
13243 ]
13244 \end_layout
13245
13246 \end_inset
13247
13248 ).
13249  A line break in the output can be indicated by 
13250 \begin_inset Flex Code
13251 status collapsed
13252
13253 \begin_layout Plain Layout
13254 <br/>
13255 \end_layout
13256
13257 \end_inset
13258
13259 .
13260 \end_layout
13261
13262 \begin_layout Itemize
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267 DefaultArg
13268 \end_layout
13269
13270 \end_inset
13271
13272  
13273 \begin_inset Flex Code
13274 status collapsed
13275
13276 \begin_layout Plain Layout
13277 [string]
13278 \end_layout
13279
13280 \end_inset
13281
13282  defines an argument that is inserted if and only if no user-specified arguments
13283  were given, i.
13284 \begin_inset space \thinspace{}
13285 \end_inset
13286
13287 e.
13288 \begin_inset space \space{}
13289 \end_inset
13290
13291 if no argument inset has been inserted (note that also an empty argument
13292  inset omits the DefaultArg).
13293  Multiple arguments need to be separated by comma.
13294 \end_layout
13295
13296 \begin_layout Itemize
13297 \begin_inset Flex Code
13298 status collapsed
13299
13300 \begin_layout Plain Layout
13301 PresetArg
13302 \end_layout
13303
13304 \end_inset
13305
13306  
13307 \begin_inset Flex Code
13308 status collapsed
13309
13310 \begin_layout Plain Layout
13311 [string]
13312 \end_layout
13313
13314 \end_inset
13315
13316  defines an argument that is inserted in any case (alone or in addition
13317  to user-specified arguments).
13318  Multiple arguments need to be separated by comma.
13319 \end_layout
13320
13321 \begin_layout Itemize
13322 \begin_inset Flex Code
13323 status collapsed
13324
13325 \begin_layout Plain Layout
13326 Font
13327 \end_layout
13328
13329 \end_inset
13330
13331  The font used for the argument content, see 
13332 \begin_inset CommandInset ref
13333 LatexCommand ref
13334 reference "subsec:Font-description"
13335
13336 \end_inset
13337
13338 .
13339 \change_inserted -712698321 1559484228
13340
13341 \end_layout
13342
13343 \begin_layout Itemize
13344
13345 \change_inserted -712698321 1559484228
13346 \begin_inset Flex Code
13347 status collapsed
13348
13349 \begin_layout Plain Layout
13350
13351 \change_inserted -712698321 1559484228
13352 FreeSpacing
13353 \change_unchanged
13354
13355 \end_layout
13356
13357 \end_inset
13358
13359  [
13360 \begin_inset Flex Code
13361 status collapsed
13362
13363 \begin_layout Plain Layout
13364
13365 \change_inserted -712698321 1559484228
13366
13367 \emph on
13368 0
13369 \change_unchanged
13370
13371 \end_layout
13372
13373 \end_inset
13374
13375 ,
13376 \begin_inset space \thinspace{}
13377 \end_inset
13378
13379
13380 \begin_inset Flex Code
13381 status collapsed
13382
13383 \begin_layout Plain Layout
13384
13385 \change_inserted -712698321 1559484228
13386 1
13387 \change_unchanged
13388
13389 \end_layout
13390
13391 \end_inset
13392
13393 ] As with paragraph styles, see 
13394 \begin_inset CommandInset ref
13395 LatexCommand ref
13396 reference "subsec:Paragraph-Styles"
13397
13398 \end_inset
13399
13400 .
13401 \change_unchanged
13402
13403 \end_layout
13404
13405 \begin_layout Itemize
13406 \begin_inset Flex Code
13407 status collapsed
13408
13409 \begin_layout Plain Layout
13410 LabelFont
13411 \end_layout
13412
13413 \end_inset
13414
13415  The font used for the label; see 
13416 \begin_inset CommandInset ref
13417 LatexCommand ref
13418 reference "subsec:Font-description"
13419
13420 \end_inset
13421
13422 .
13423 \end_layout
13424
13425 \begin_layout Itemize
13426 \begin_inset Flex Code
13427 status collapsed
13428
13429 \begin_layout Plain Layout
13430 Decoration
13431 \end_layout
13432
13433 \end_inset
13434
13435  [
13436 \begin_inset Flex Code
13437 status collapsed
13438
13439 \begin_layout Plain Layout
13440
13441 \emph on
13442 Classic
13443 \emph default
13444 , Minimalistic, Conglomerate
13445 \end_layout
13446
13447 \end_inset
13448
13449 ] describes the rendering style used for the inset's frame and buttons.
13450 \end_layout
13451
13452 \begin_layout Itemize
13453 \begin_inset Flex Code
13454 status collapsed
13455
13456 \begin_layout Plain Layout
13457 AutoInsert
13458 \end_layout
13459
13460 \end_inset
13461
13462  
13463 \begin_inset Flex Code
13464 status collapsed
13465
13466 \begin_layout Plain Layout
13467 [int=0]
13468 \end_layout
13469
13470 \end_inset
13471
13472  If this is set to 
13473 \begin_inset Flex Code
13474 status collapsed
13475
13476 \begin_layout Plain Layout
13477 1
13478 \end_layout
13479
13480 \end_inset
13481
13482 , this argument is automatically inserted when the respective style is selected.
13483
13484 \change_deleted -712698321 1559484200
13485  Currently, only one argument per style\SpecialChar breakableslash
13486 layout can be automatically inserted.
13487 \change_unchanged
13488
13489 \end_layout
13490
13491 \begin_layout Itemize
13492
13493 \change_inserted -712698321 1559491402
13494 \begin_inset Flex Code
13495 status collapsed
13496
13497 \begin_layout Plain Layout
13498
13499 \change_inserted -712698321 1559490711
13500 InsertOnNewline
13501 \change_unchanged
13502
13503 \end_layout
13504
13505 \end_inset
13506
13507  
13508 \begin_inset Flex Code
13509 status collapsed
13510
13511 \begin_layout Plain Layout
13512
13513 \change_inserted -712698321 1559490703
13514 [int=0]
13515 \change_unchanged
13516
13517 \end_layout
13518
13519 \end_inset
13520
13521  If this is set to 
13522 \begin_inset Flex Code
13523 status collapsed
13524
13525 \begin_layout Plain Layout
13526
13527 \change_inserted -712698321 1559490703
13528 1
13529 \change_unchanged
13530
13531 \end_layout
13532
13533 \end_inset
13534
13535 , this argument will be inserted on a new line with 
13536 \begin_inset Flex Code
13537 status collapsed
13538
13539 \begin_layout Plain Layout
13540
13541 \change_inserted -712698321 1559491402
13542 AutoInsert
13543 \change_unchanged
13544
13545 \end_layout
13546
13547 \end_inset
13548
13549  (only available within Flex insets).
13550 \end_layout
13551
13552 \begin_layout Itemize
13553 \begin_inset Flex Code
13554 status collapsed
13555
13556 \begin_layout Plain Layout
13557 InsertCotext
13558 \end_layout
13559
13560 \end_inset
13561
13562  
13563 \begin_inset Flex Code
13564 status collapsed
13565
13566 \begin_layout Plain Layout
13567 [int=0]
13568 \end_layout
13569
13570 \end_inset
13571
13572  If this is set to 
13573 \begin_inset Flex Code
13574 status collapsed
13575
13576 \begin_layout Plain Layout
13577 1
13578 \end_layout
13579
13580 \end_inset
13581
13582 , this argument will be inserted with a copy of the co-text (either selected
13583  text or the whole paragraph) as content.
13584 \end_layout
13585
13586 \begin_layout Itemize
13587 \begin_inset Flex Code
13588 status collapsed
13589
13590 \begin_layout Plain Layout
13591 PassThru
13592 \end_layout
13593
13594 \end_inset
13595
13596  [
13597 \begin_inset Flex Code
13598 status collapsed
13599
13600 \begin_layout Plain Layout
13601
13602 \emph on
13603 inherited
13604 \emph default
13605 , true, false
13606 \end_layout
13607
13608 \end_inset
13609
13610 ] Whether the contents of this argument should be output in raw form, meaning
13611  without special translations that \SpecialChar LaTeX
13612  would require.
13613  By default, the 
13614 \begin_inset Flex Code
13615 status collapsed
13616
13617 \begin_layout Plain Layout
13618 PassThru
13619 \end_layout
13620
13621 \end_inset
13622
13623  status is inherited by the inset or paragraph layout the argument belongs
13624  to, true and false change the status for the given argument only.
13625 \end_layout
13626
13627 \begin_layout Itemize
13628 \begin_inset Flex Code
13629 status collapsed
13630
13631 \begin_layout Plain Layout
13632 PassThruChars
13633 \end_layout
13634
13635 \end_inset
13636
13637  [
13638 \begin_inset Flex Code
13639 status collapsed
13640
13641 \begin_layout Plain Layout
13642 string of characters
13643 \end_layout
13644
13645 \end_inset
13646
13647 ]
13648 \family typewriter
13649  
13650 \family default
13651 Defines individual characters
13652 \begin_inset Newline linebreak
13653 \end_inset
13654
13655 that should be output in raw form, meaning without special translations
13656  that \SpecialChar LaTeX
13657  would require.
13658  Note that, contrary to PassThru, this needs to be explicitly defined for
13659  arguments.
13660  That is, arguments do not inherit PassThruChars from their parent inset
13661  or layout.
13662 \end_layout
13663
13664 \begin_layout Itemize
13665 \begin_inset Flex Code
13666 status collapsed
13667
13668 \begin_layout Plain Layout
13669 IsTocCaption
13670 \end_layout
13671
13672 \end_inset
13673
13674  [
13675 \begin_inset Flex Code
13676 status collapsed
13677
13678 \begin_layout Plain Layout
13679
13680 \emph on
13681 0
13682 \end_layout
13683
13684 \end_inset
13685
13686 ,
13687 \begin_inset space \thinspace{}
13688 \end_inset
13689
13690
13691 \begin_inset Flex Code
13692 status collapsed
13693
13694 \begin_layout Plain Layout
13695 1
13696 \end_layout
13697
13698 \end_inset
13699
13700 ] If this is set to 1, the argument will output its content in the corresponding
13701  item in the table of contents.
13702  See AddToToc.
13703 \end_layout
13704
13705 \begin_layout Standard
13706 By default, the text entered in the \SpecialChar LyX
13707  workarea in the respective layout is
13708  the last (mandatory) argument of a command if the 
13709 \begin_inset Flex Code
13710 status collapsed
13711
13712 \begin_layout Plain Layout
13713 LatexType
13714 \end_layout
13715
13716 \end_inset
13717
13718  is 
13719 \begin_inset Flex Code
13720 status collapsed
13721
13722 \begin_layout Plain Layout
13723 Command
13724 \end_layout
13725
13726 \end_inset
13727
13728 .
13729  However, arguments with the prefix 
13730 \begin_inset Flex Code
13731 status collapsed
13732
13733 \begin_layout Plain Layout
13734 post:
13735 \end_layout
13736
13737 \end_inset
13738
13739  are output after this workarea argument.
13740  Note that post-argument numbering restarts at 1, so the first argument
13741  following the workarea argument is 
13742 \begin_inset Flex Code
13743 status collapsed
13744
13745 \begin_layout Plain Layout
13746 post:1
13747 \end_layout
13748
13749 \end_inset
13750
13751 .
13752  Post-arguments are ignored in any other 
13753 \begin_inset Flex Code
13754 status collapsed
13755
13756 \begin_layout Plain Layout
13757 LatexType
13758 \end_layout
13759
13760 \end_inset
13761
13762  than 
13763 \begin_inset Flex Code
13764 status collapsed
13765
13766 \begin_layout Plain Layout
13767 Command
13768 \end_layout
13769
13770 \end_inset
13771
13772 .
13773 \end_layout
13774
13775 \begin_layout Standard
13776 Arguments for list 
13777 \begin_inset Flex Code
13778 status collapsed
13779
13780 \begin_layout Plain Layout
13781
13782 \backslash
13783 item
13784 \end_layout
13785
13786 \end_inset
13787
13788 s (as in 
13789 \begin_inset Flex Code
13790 status collapsed
13791
13792 \begin_layout Plain Layout
13793
13794 \backslash
13795 item[foo]
13796 \end_layout
13797
13798 \end_inset
13799
13800 ) have the prefix 
13801 \begin_inset Flex Code
13802 status collapsed
13803
13804 \begin_layout Plain Layout
13805 item:
13806 \end_layout
13807
13808 \end_inset
13809
13810  followed by the number (e.
13811 \begin_inset space \thinspace{}
13812 \end_inset
13813
13814 g.
13815 \begin_inset space \space{}
13816 \end_inset
13817
13818
13819 \begin_inset Flex Code
13820 status collapsed
13821
13822 \begin_layout Plain Layout
13823 Argument item:1
13824 \end_layout
13825
13826 \end_inset
13827
13828 ).
13829 \change_inserted -712698321 1534487781
13830
13831 \end_layout
13832
13833 \begin_layout Standard
13834
13835 \change_inserted -712698321 1534488561
13836 Finally, there is a special argument type with the prefix 
13837 \begin_inset Flex Code
13838 status collapsed
13839
13840 \begin_layout Plain Layout
13841
13842 \change_inserted -712698321 1534487844
13843 listpreamble:
13844 \change_unchanged
13845
13846 \end_layout
13847
13848 \end_inset
13849
13850 .
13851  It is not really an argument, but uses the argument interface (thus, the
13852  prefix is also followed by a number, e.
13853 \begin_inset space \thinspace{}
13854 \end_inset
13855
13856 g.
13857  
13858 \begin_inset Flex Code
13859 status collapsed
13860
13861 \begin_layout Plain Layout
13862
13863 \change_inserted -712698321 1534488412
13864 Argument listpreamble:1
13865 \change_unchanged
13866
13867 \end_layout
13868
13869 \end_inset
13870
13871 ).
13872  As the name implies, it is targeted at lists such as 
13873 \family sans
13874 Itemize
13875 \family default
13876
13877 \family sans
13878 Enumerate
13879 \family default
13880
13881 \family sans
13882 Description
13883 \family default
13884 , or 
13885 \family sans
13886 Bibliography
13887 \family default
13888 .
13889  Its content will be output at the list start, before the first 
13890 \begin_inset Flex Code
13891 status collapsed
13892
13893 \begin_layout Plain Layout
13894
13895 \change_inserted -712698321 1534488058
13896
13897 \backslash
13898 item
13899 \change_unchanged
13900
13901 \end_layout
13902
13903 \end_inset
13904
13905 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13906 ).
13907  This way, users can insert redefinitions (of lengths etc.) to individual
13908  lists.
13909  By default, these arguments do not have a delimiter.
13910 \change_unchanged
13911
13912 \end_layout
13913
13914 \end_deeper
13915 \begin_layout Description
13916 \begin_inset Flex Code
13917 status collapsed
13918
13919 \begin_layout Plain Layout
13920 AutoNests
13921 \end_layout
13922
13923 \end_inset
13924
13925  Includes a comma-separated list of layouts that should be nested in and
13926  after the current layout.
13927  Only makes sense for nestable layouts (such as environments).
13928  Must be ended by 
13929 \begin_inset Quotes eld
13930 \end_inset
13931
13932
13933 \begin_inset Flex Code
13934 status collapsed
13935
13936 \begin_layout Plain Layout
13937 EndAutoNests
13938 \end_layout
13939
13940 \end_inset
13941
13942
13943 \begin_inset Quotes erd
13944 \end_inset
13945
13946 .
13947  See also 
13948 \begin_inset Flex Code
13949 status collapsed
13950
13951 \begin_layout Plain Layout
13952 IsAutoNestedBy
13953 \end_layout
13954
13955 \end_inset
13956
13957 .
13958 \end_layout
13959
13960 \begin_layout Description
13961 \begin_inset Flex Code
13962 status collapsed
13963
13964 \begin_layout Plain Layout
13965 BabelPreamble
13966 \end_layout
13967
13968 \end_inset
13969
13970  Note that this will completely override any prior 
13971 \begin_inset Flex Code
13972 status collapsed
13973
13974 \begin_layout Plain Layout
13975 BabelPreamble
13976 \end_layout
13977
13978 \end_inset
13979
13980  declaration for this style.
13981  Must end with 
13982 \begin_inset Quotes eld
13983 \end_inset
13984
13985
13986 \begin_inset Flex Code
13987 status collapsed
13988
13989 \begin_layout Plain Layout
13990 EndBabelPreamble
13991 \end_layout
13992
13993 \end_inset
13994
13995
13996 \begin_inset Quotes erd
13997 \end_inset
13998
13999 .
14000  See 
14001 \begin_inset CommandInset ref
14002 LatexCommand ref
14003 reference "subsec:I18n"
14004
14005 \end_inset
14006
14007  for details on its use.
14008 \end_layout
14009
14010 \begin_layout Description
14011 \begin_inset Flex Code
14012 status collapsed
14013
14014 \begin_layout Plain Layout
14015 BottomSep
14016 \end_layout
14017
14018 \end_inset
14019
14020  [
14021 \begin_inset Flex Code
14022 status collapsed
14023
14024 \begin_layout Plain Layout
14025 float=0
14026 \end_layout
14027
14028 \end_inset
14029
14030 ]
14031 \begin_inset Foot
14032 status collapsed
14033
14034 \begin_layout Plain Layout
14035 Note that a `float' here is a real number, such as: 1.5.
14036 \end_layout
14037
14038 \end_inset
14039
14040  The vertical space with which the last of a chain of paragraphs with this
14041  style is separated from the following paragraph.
14042  If the next paragraph has another style, the separations are not simply
14043  added, but the maximum is taken.
14044 \end_layout
14045
14046 \begin_layout Description
14047 \begin_inset Flex Code
14048 status collapsed
14049
14050 \begin_layout Plain Layout
14051 Category
14052 \end_layout
14053
14054 \end_inset
14055
14056  [
14057 \begin_inset Flex Code
14058 status collapsed
14059
14060 \begin_layout Plain Layout
14061 string
14062 \end_layout
14063
14064 \end_inset
14065
14066 ] The category for this style.
14067  This is used to group related styles in the style combobox on the toolbar.
14068  Any string can be used, but you may want to use existing categories with
14069  your own styles.
14070  
14071 \end_layout
14072
14073 \begin_layout Description
14074 \begin_inset Flex Code
14075 status collapsed
14076
14077 \begin_layout Plain Layout
14078 CommandDepth
14079 \end_layout
14080
14081 \end_inset
14082
14083  Depth of XML command.
14084  Used only with XML-type formats.
14085 \end_layout
14086
14087 \begin_layout Description
14088 \begin_inset Flex Code
14089 status collapsed
14090
14091 \begin_layout Plain Layout
14092 CopyStyle
14093 \end_layout
14094
14095 \end_inset
14096
14097  [
14098 \begin_inset Flex Code
14099 status collapsed
14100
14101 \begin_layout Plain Layout
14102 string
14103 \end_layout
14104
14105 \end_inset
14106
14107 ] Copies all the features of an existing style into the current one.
14108  
14109 \end_layout
14110
14111 \begin_layout Description
14112 \begin_inset Flex Code
14113 status collapsed
14114
14115 \begin_layout Plain Layout
14116 DependsOn
14117 \end_layout
14118
14119 \end_inset
14120
14121  [
14122 \begin_inset Flex Code
14123 status collapsed
14124
14125 \begin_layout Plain Layout
14126 <name>
14127 \end_layout
14128
14129 \end_inset
14130
14131 ] The name of a style whose preamble should be output 
14132 \emph on
14133 before
14134 \emph default
14135  this one.
14136  This allows to ensure some ordering of the preamble snippets when macros
14137  definitions depend on one another.
14138 \begin_inset Foot
14139 status collapsed
14140
14141 \begin_layout Plain Layout
14142 Note that, besides that functionality, there is no way to ensure any ordering
14143  of preambles.
14144  The ordering that you see in a given version of \SpecialChar LyX
14145  may change without warning
14146  in later versions.
14147 \end_layout
14148
14149 \end_inset
14150
14151
14152 \end_layout
14153
14154 \begin_layout Description
14155 \begin_inset Flex Code
14156 status collapsed
14157
14158 \begin_layout Plain Layout
14159 EndLabeltype
14160 \end_layout
14161
14162 \end_inset
14163
14164  [
14165 \begin_inset Flex Code
14166 status collapsed
14167
14168 \begin_layout Plain Layout
14169
14170 \emph on
14171 No_Label
14172 \emph default
14173 , Box, Filled_Box, Static
14174 \end_layout
14175
14176 \end_inset
14177
14178 ] The type of label that stands at the end of the paragraph (or sequence
14179  of paragraphs if 
14180 \begin_inset Flex Code
14181 status collapsed
14182
14183 \begin_layout Plain Layout
14184 LatexType
14185 \end_layout
14186
14187 \end_inset
14188
14189  is
14190 \begin_inset Newline newline
14191 \end_inset
14192
14193
14194 \begin_inset Flex Code
14195 status collapsed
14196
14197 \begin_layout Plain Layout
14198 Environment
14199 \end_layout
14200
14201 \end_inset
14202
14203
14204 \begin_inset Flex Code
14205 status collapsed
14206
14207 \begin_layout Plain Layout
14208 Item_Environment
14209 \end_layout
14210
14211 \end_inset
14212
14213  or 
14214 \begin_inset Flex Code
14215 status collapsed
14216
14217 \begin_layout Plain Layout
14218 List_Environment
14219 \end_layout
14220
14221 \end_inset
14222
14223 ).
14224  
14225 \begin_inset Flex Code
14226 status collapsed
14227
14228 \begin_layout Plain Layout
14229 No_Label
14230 \end_layout
14231
14232 \end_inset
14233
14234  means 
14235 \begin_inset Quotes eld
14236 \end_inset
14237
14238 nothing
14239 \begin_inset Quotes erd
14240 \end_inset
14241
14242
14243 \begin_inset Flex Code
14244 status collapsed
14245
14246 \begin_layout Plain Layout
14247 Box
14248 \end_layout
14249
14250 \end_inset
14251
14252  (resp.
14253 \begin_inset space \space{}
14254 \end_inset
14255
14256
14257 \begin_inset Flex Code
14258 status collapsed
14259
14260 \begin_layout Plain Layout
14261 Filled_Box
14262 \end_layout
14263
14264 \end_inset
14265
14266 ) is a white (resp.
14267 \begin_inset space ~
14268 \end_inset
14269
14270 black) square suitable for end of proof markers, 
14271 \begin_inset Flex Code
14272 status collapsed
14273
14274 \begin_layout Plain Layout
14275 Static
14276 \end_layout
14277
14278 \end_inset
14279
14280  is an explicit text string.
14281 \end_layout
14282
14283 \begin_layout Description
14284 \begin_inset Flex Code
14285 status collapsed
14286
14287 \begin_layout Plain Layout
14288 EndLabelString
14289 \end_layout
14290
14291 \end_inset
14292
14293  [
14294 \begin_inset Flex Code
14295 status collapsed
14296
14297 \begin_layout Plain Layout
14298 string=""
14299 \end_layout
14300
14301 \end_inset
14302
14303 ] The string used for a label with a 
14304 \begin_inset Flex Code
14305 status collapsed
14306
14307 \begin_layout Plain Layout
14308 Static
14309 \end_layout
14310
14311 \end_inset
14312
14313
14314 \begin_inset Newline newline
14315 \end_inset
14316
14317
14318 \begin_inset Flex Code
14319 status collapsed
14320
14321 \begin_layout Plain Layout
14322 EndLabelType
14323 \end_layout
14324
14325 \end_inset
14326
14327 .
14328  
14329 \end_layout
14330
14331 \begin_layout Description
14332 \begin_inset Flex Code
14333 status collapsed
14334
14335 \begin_layout Plain Layout
14336 Font
14337 \end_layout
14338
14339 \end_inset
14340
14341  The font used for both the text body 
14342 \emph on
14343 and
14344 \emph default
14345  the label.
14346  See 
14347 \begin_inset CommandInset ref
14348 LatexCommand ref
14349 reference "subsec:Font-description"
14350
14351 \end_inset
14352
14353 .
14354  Note that defining this font automatically defines the 
14355 \begin_inset Flex Code
14356 status collapsed
14357
14358 \begin_layout Plain Layout
14359 LabelFont
14360 \end_layout
14361
14362 \end_inset
14363
14364  to the same value.
14365  So you should define this one first if you also want to define 
14366 \begin_inset Flex Code
14367 status collapsed
14368
14369 \begin_layout Plain Layout
14370 LabelFont
14371 \end_layout
14372
14373 \end_inset
14374
14375 .
14376 \end_layout
14377
14378 \begin_layout Description
14379 \begin_inset Flex Code
14380 status collapsed
14381
14382 \begin_layout Plain Layout
14383 ForceLocal
14384 \end_layout
14385
14386 \end_inset
14387
14388  [
14389 \begin_inset Flex Code
14390 status collapsed
14391
14392 \begin_layout Plain Layout
14393 int=0
14394 \end_layout
14395
14396 \end_inset
14397
14398 ] Used for backporting new styles to stable \SpecialChar LyX
14399  versions.
14400  The first stable version that supports this tag is \SpecialChar LyX
14401  2.1.0.
14402  The argument is a number which may either be 0, -1 or any value greater
14403  than zero.
14404  If the 
14405 \begin_inset Flex Code
14406 status collapsed
14407
14408 \begin_layout Plain Layout
14409 ForceLocal
14410 \end_layout
14411
14412 \end_inset
14413
14414  flag of a style is greater than zero, it will always be written to the
14415  document header.
14416  If a .lyx file is read, the style definitions from the document header are
14417  added to the document class.
14418  Therefore even older \SpecialChar LyX
14419  versions can handle the style.
14420  The argument of 
14421 \begin_inset Flex Code
14422 status collapsed
14423
14424 \begin_layout Plain Layout
14425 ForceLocal
14426 \end_layout
14427
14428 \end_inset
14429
14430  is a version number: if the style is read, and the version number is less
14431  than the version number of the already existing style in the document class,
14432  the new style is ignored.
14433  If the version number is greater, the new style replaces the existing style.
14434  A value of -1 means an infinite version number, i.
14435 \begin_inset space \thinspace{}
14436 \end_inset
14437
14438 e.
14439 \begin_inset space \space{}
14440 \end_inset
14441
14442 the style is always used.
14443 \end_layout
14444
14445 \begin_layout Description
14446 \begin_inset Flex Code
14447 status collapsed
14448
14449 \begin_layout Plain Layout
14450 FreeSpacing
14451 \end_layout
14452
14453 \end_inset
14454
14455  [
14456 \begin_inset Flex Code
14457 status collapsed
14458
14459 \begin_layout Plain Layout
14460
14461 \emph on
14462 0
14463 \end_layout
14464
14465 \end_inset
14466
14467 ,
14468 \begin_inset space \thinspace{}
14469 \end_inset
14470
14471
14472 \begin_inset Flex Code
14473 status collapsed
14474
14475 \begin_layout Plain Layout
14476 1
14477 \end_layout
14478
14479 \end_inset
14480
14481 ] Usually \SpecialChar LyX
14482  does not allow you to insert more than one space between words,
14483  since a space is considered as the separation between two words, not a
14484  character or symbol of its own.
14485  This is a very fine thing but sometimes annoying, for example, when typing
14486  program code or plain \SpecialChar LaTeX
14487  code.
14488  For this reason, 
14489 \begin_inset Flex Code
14490 status collapsed
14491
14492 \begin_layout Plain Layout
14493 FreeSpacing
14494 \end_layout
14495
14496 \end_inset
14497
14498  can be enabled.
14499  
14500 \change_deleted -495245474 1550490105
14501 Note that 
14502 \change_unchanged
14503 \SpecialChar LyX
14504  will create protected blanks for the additional blanks when in 
14505 \change_inserted -495245474 1550490096
14506
14507 \begin_inset Flex Code
14508 status collapsed
14509
14510 \begin_layout Plain Layout
14511
14512 \change_inserted -495245474 1550490089
14513 Passthru 1
14514 \change_unchanged
14515
14516 \end_layout
14517
14518 \end_inset
14519
14520  is not specified.
14521 \change_deleted -495245474 1550490116
14522 another mode than \SpecialChar LaTeX
14523 -mode.
14524
14525 \change_inserted -495245474 1550247760
14526  Note that 
14527 \begin_inset Flex Code
14528 status collapsed
14529
14530 \begin_layout Plain Layout
14531
14532 \change_inserted -495245474 1550247736
14533 FreeSpacing
14534 \change_unchanged
14535
14536 \end_layout
14537
14538 \end_inset
14539
14540  implies 
14541 \begin_inset Flex Code
14542 status collapsed
14543
14544 \begin_layout Plain Layout
14545
14546 \change_inserted -495245474 1550247755
14547 KeepEmpty
14548 \change_unchanged
14549
14550 \end_layout
14551
14552 \end_inset
14553
14554 .
14555 \change_unchanged
14556
14557 \end_layout
14558
14559 \begin_layout Description
14560 \begin_inset Flex Code
14561 status collapsed
14562
14563 \begin_layout Plain Layout
14564 HTML*
14565 \end_layout
14566
14567 \end_inset
14568
14569  These tags are used with XHTML output.
14570  See 
14571 \begin_inset CommandInset ref
14572 LatexCommand ref
14573 reference "subsec:Paragraph-Style-XHTML"
14574
14575 \end_inset
14576
14577 .
14578 \end_layout
14579
14580 \begin_layout Description
14581 \begin_inset Flex Code
14582 status collapsed
14583
14584 \begin_layout Plain Layout
14585 InnerTag
14586 \end_layout
14587
14588 \end_inset
14589
14590  [FIXME] (Used only with XML-type formats.)
14591 \end_layout
14592
14593 \begin_layout Description
14594 \begin_inset Flex Code
14595 status collapsed
14596
14597 \begin_layout Plain Layout
14598 InPreamble
14599 \end_layout
14600
14601 \end_inset
14602
14603  [
14604 \begin_inset Flex Code
14605 status collapsed
14606
14607 \begin_layout Plain Layout
14608
14609 \emph on
14610 0
14611 \end_layout
14612
14613 \end_inset
14614
14615 ,
14616 \begin_inset space \thinspace{}
14617 \end_inset
14618
14619
14620 \begin_inset Flex Code
14621 status collapsed
14622
14623 \begin_layout Plain Layout
14624 1
14625 \end_layout
14626
14627 \end_inset
14628
14629 ] If 
14630 \begin_inset Flex Code
14631 status collapsed
14632
14633 \begin_layout Plain Layout
14634 1
14635 \end_layout
14636
14637 \end_inset
14638
14639 , marks the style as to be included in the document preamble and not in
14640  the document body.
14641  This is useful for document classes that want such information as the title
14642  and author to appear in the preamble.
14643  Note that this works only for styles for which the 
14644 \begin_inset Flex Code
14645 status collapsed
14646
14647 \begin_layout Plain Layout
14648 LatexType
14649 \end_layout
14650
14651 \end_inset
14652
14653  is 
14654 \begin_inset Flex Code
14655 status collapsed
14656
14657 \begin_layout Plain Layout
14658 Command
14659 \end_layout
14660
14661 \end_inset
14662
14663  or 
14664 \begin_inset Flex Code
14665 status collapsed
14666
14667 \begin_layout Plain Layout
14668 Paragraph
14669 \end_layout
14670
14671 \end_inset
14672
14673 .
14674 \end_layout
14675
14676 \begin_layout Description
14677 \begin_inset Flex Code
14678 status collapsed
14679
14680 \begin_layout Plain Layout
14681 InTitle
14682 \end_layout
14683
14684 \end_inset
14685
14686  [
14687 \begin_inset Flex Code
14688 status collapsed
14689
14690 \begin_layout Plain Layout
14691
14692 \emph on
14693 0
14694 \end_layout
14695
14696 \end_inset
14697
14698 ,
14699 \begin_inset space \thinspace{}
14700 \end_inset
14701
14702
14703 \begin_inset Flex Code
14704 status collapsed
14705
14706 \begin_layout Plain Layout
14707 1
14708 \end_layout
14709
14710 \end_inset
14711
14712 ] If 
14713 \begin_inset Flex Code
14714 status collapsed
14715
14716 \begin_layout Plain Layout
14717 1
14718 \end_layout
14719
14720 \end_inset
14721
14722 , marks the style as being part of a title block (see also the 
14723 \begin_inset Flex Code
14724 status collapsed
14725
14726 \begin_layout Plain Layout
14727 TitleLatexType
14728 \end_layout
14729
14730 \end_inset
14731
14732  and 
14733 \begin_inset Flex Code
14734 status collapsed
14735
14736 \begin_layout Plain Layout
14737 TitleLatexName
14738 \end_layout
14739
14740 \end_inset
14741
14742  global entries).
14743 \end_layout
14744
14745 \begin_layout Description
14746 \begin_inset Flex Code
14747 status collapsed
14748
14749 \begin_layout Plain Layout
14750 IsAutoNestedBy
14751 \end_layout
14752
14753 \end_inset
14754
14755  Includes a comma-separated list of layouts after which this one should
14756  be nested.
14757  Only makes sense with regard to nestable layouts (such as environments).
14758  Must be ended by 
14759 \begin_inset Quotes eld
14760 \end_inset
14761
14762
14763 \begin_inset Flex Code
14764 status collapsed
14765
14766 \begin_layout Plain Layout
14767 EndIsAutoNestedBy
14768 \end_layout
14769
14770 \end_inset
14771
14772
14773 \begin_inset Quotes erd
14774 \end_inset
14775
14776 .
14777  See also 
14778 \begin_inset Flex Code
14779 status collapsed
14780
14781 \begin_layout Plain Layout
14782 AutoNests
14783 \end_layout
14784
14785 \end_inset
14786
14787 .
14788 \end_layout
14789
14790 \begin_layout Description
14791 \begin_inset Flex Code
14792 status collapsed
14793
14794 \begin_layout Plain Layout
14795 IsTocCaption
14796 \end_layout
14797
14798 \end_inset
14799
14800  [
14801 \begin_inset Flex Code
14802 status collapsed
14803
14804 \begin_layout Plain Layout
14805
14806 \emph on
14807 0
14808 \end_layout
14809
14810 \end_inset
14811
14812 ,
14813 \begin_inset space \thinspace{}
14814 \end_inset
14815
14816
14817 \begin_inset Flex Code
14818 status collapsed
14819
14820 \begin_layout Plain Layout
14821 1
14822 \end_layout
14823
14824 \end_inset
14825
14826 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14827  of its contents in its item in the table of contents.
14828  Otherwise, only the label, if it exists, appears.
14829 \end_layout
14830
14831 \begin_layout Description
14832 \begin_inset Flex Code
14833 status collapsed
14834
14835 \begin_layout Plain Layout
14836 ItemCommand
14837 \end_layout
14838
14839 \end_inset
14840
14841  [
14842 \begin_inset Flex Code
14843 status collapsed
14844
14845 \begin_layout Plain Layout
14846 string="item"
14847 \end_layout
14848
14849 \end_inset
14850
14851 ] The \SpecialChar LaTeX
14852  command sequence declaring an item in a list.
14853  The command is to be defined without the preceding backslash (the default
14854  is 
14855 \begin_inset Quotes eld
14856 \end_inset
14857
14858 item
14859 \begin_inset Quotes erd
14860 \end_inset
14861
14862 , resulting in 
14863 \begin_inset Flex Code
14864 status collapsed
14865
14866 \begin_layout Plain Layout
14867
14868 \backslash
14869 item
14870 \end_layout
14871
14872 \end_inset
14873
14874  in the \SpecialChar LaTeX
14875  output).
14876 \end_layout
14877
14878 \begin_layout Description
14879 \begin_inset Flex Code
14880 status collapsed
14881
14882 \begin_layout Plain Layout
14883 ItemSep
14884 \end_layout
14885
14886 \end_inset
14887
14888  [
14889 \begin_inset Flex Code
14890 status collapsed
14891
14892 \begin_layout Plain Layout
14893 float=0
14894 \end_layout
14895
14896 \end_inset
14897
14898 ] This provides extra space between paragraphs that have the same style.
14899  If you put other styles into an environment, each is separated with the
14900  environment's 
14901 \begin_inset Flex Code
14902 status collapsed
14903
14904 \begin_layout Plain Layout
14905 ParSep
14906 \end_layout
14907
14908 \end_inset
14909
14910 .
14911  But the whole items of the environment are additionally separated with
14912  this 
14913 \begin_inset Flex Code
14914 status collapsed
14915
14916 \begin_layout Plain Layout
14917 ItemSep
14918 \end_layout
14919
14920 \end_inset
14921
14922 .
14923  Note that this is a
14924 \emph on
14925  multiplier.
14926 \end_layout
14927
14928 \begin_layout Description
14929 \begin_inset Flex Code
14930 status collapsed
14931
14932 \begin_layout Plain Layout
14933 ItemTag
14934 \end_layout
14935
14936 \end_inset
14937
14938  [FIXME] (Used only with XML-type formats.)
14939 \end_layout
14940
14941 \begin_layout Description
14942 \begin_inset Flex Code
14943 status collapsed
14944
14945 \begin_layout Plain Layout
14946 KeepEmpty
14947 \end_layout
14948
14949 \end_inset
14950
14951  [
14952 \begin_inset Flex Code
14953 status collapsed
14954
14955 \begin_layout Plain Layout
14956
14957 \emph on
14958 0
14959 \end_layout
14960
14961 \end_inset
14962
14963 ,
14964 \begin_inset space \thinspace{}
14965 \end_inset
14966
14967
14968 \begin_inset Flex Code
14969 status collapsed
14970
14971 \begin_layout Plain Layout
14972 1
14973 \end_layout
14974
14975 \end_inset
14976
14977 ] Usually \SpecialChar LyX
14978  does not allow you to leave a paragraph empty, since it would
14979  lead to empty \SpecialChar LaTeX
14980  output.
14981  There are some cases where this could be desirable however: in a letter
14982  template, the required fields can be provided as empty fields, so that
14983  people do not forget them; in some special classes, a style can be used
14984  as some kind of break, which does not contain actual text.
14985 \end_layout
14986
14987 \begin_layout Description
14988 \begin_inset Flex Code
14989 status collapsed
14990
14991 \begin_layout Plain Layout
14992 LabelBottomsep
14993 \end_layout
14994
14995 \end_inset
14996
14997  [
14998 \begin_inset Flex Code
14999 status collapsed
15000
15001 \begin_layout Plain Layout
15002 float=0
15003 \end_layout
15004
15005 \end_inset
15006
15007 ] The vertical space between the label and the text body.
15008  Only used for labels that are above the text body (
15009 \begin_inset Flex Code
15010 status collapsed
15011
15012 \begin_layout Plain Layout
15013 Top_Environment
15014 \end_layout
15015
15016 \end_inset
15017
15018  and
15019 \begin_inset Newline newline
15020 \end_inset
15021
15022
15023 \begin_inset Flex Code
15024 status collapsed
15025
15026 \begin_layout Plain Layout
15027 Centered_Top_Environment
15028 \end_layout
15029
15030 \end_inset
15031
15032 ).
15033 \end_layout
15034
15035 \begin_layout Description
15036 \begin_inset Flex Code
15037 status collapsed
15038
15039 \begin_layout Plain Layout
15040 LabelCounter
15041 \end_layout
15042
15043 \end_inset
15044
15045  [
15046 \begin_inset Flex Code
15047 status collapsed
15048
15049 \begin_layout Plain Layout
15050 string=""
15051 \end_layout
15052
15053 \end_inset
15054
15055 ] The name of the counter for automatic numbering.
15056  In order to have the counter appear with your label, you will need to reference
15057  it in the 
15058 \begin_inset Flex Code
15059 status collapsed
15060
15061 \begin_layout Plain Layout
15062
15063 \family typewriter
15064 LabelString
15065 \end_layout
15066
15067 \end_inset
15068
15069 .
15070  This will work with 
15071 \begin_inset Flex Code
15072 status collapsed
15073
15074 \begin_layout Plain Layout
15075 LabelType
15076 \end_layout
15077
15078 \end_inset
15079
15080 s, 
15081 \begin_inset Flex Code
15082 status collapsed
15083
15084 \begin_layout Plain Layout
15085 Static
15086 \end_layout
15087
15088 \end_inset
15089
15090
15091 \begin_inset Flex Code
15092 status collapsed
15093
15094 \begin_layout Plain Layout
15095 Above
15096 \end_layout
15097
15098 \end_inset
15099
15100  and 
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105 Centered
15106 \end_layout
15107
15108 \end_inset
15109
15110 , at least.
15111 \begin_inset Newline newline
15112 \end_inset
15113
15114 This 
15115 \emph on
15116 may
15117 \emph default
15118  also be given if 
15119 \begin_inset Flex Code
15120 status collapsed
15121
15122 \begin_layout Plain Layout
15123 LabelType
15124 \end_layout
15125
15126 \end_inset
15127
15128  is 
15129 \begin_inset Flex Code
15130 status collapsed
15131
15132 \begin_layout Plain Layout
15133 Enumerate
15134 \end_layout
15135
15136 \end_inset
15137
15138 , though this case is a bit complicated.
15139  Suppose you declare 
15140 \begin_inset Quotes eld
15141 \end_inset
15142
15143
15144 \begin_inset Flex Code
15145 status collapsed
15146
15147 \begin_layout Plain Layout
15148 LabelCounter myenum
15149 \end_layout
15150
15151 \end_inset
15152
15153
15154 \begin_inset Quotes erd
15155 \end_inset
15156
15157 .
15158  Then the actual counters used are 
15159 \begin_inset Flex Code
15160 status collapsed
15161
15162 \begin_layout Plain Layout
15163 myenumi
15164 \end_layout
15165
15166 \end_inset
15167
15168
15169 \begin_inset Flex Code
15170 status collapsed
15171
15172 \begin_layout Plain Layout
15173 myenumii
15174 \end_layout
15175
15176 \end_inset
15177
15178
15179 \begin_inset Flex Code
15180 status collapsed
15181
15182 \begin_layout Plain Layout
15183 myenumiii
15184 \end_layout
15185
15186 \end_inset
15187
15188  and 
15189 \begin_inset Flex Code
15190 status collapsed
15191
15192 \begin_layout Plain Layout
15193 myenumiv
15194 \end_layout
15195
15196 \end_inset
15197
15198 , much as in \SpecialChar LaTeX
15199 .
15200  These counters must all be declared separately.
15201 \begin_inset Newline newline
15202 \end_inset
15203
15204 See 
15205 \begin_inset CommandInset ref
15206 LatexCommand ref
15207 reference "subsec:Counters"
15208
15209 \end_inset
15210
15211  for details on counters.
15212 \end_layout
15213
15214 \begin_layout Description
15215 \begin_inset Flex Code
15216 status collapsed
15217
15218 \begin_layout Plain Layout
15219 LabelFont
15220 \end_layout
15221
15222 \end_inset
15223
15224  The font used for the label.
15225  See 
15226 \begin_inset CommandInset ref
15227 LatexCommand ref
15228 reference "subsec:Font-description"
15229
15230 \end_inset
15231
15232 .
15233 \end_layout
15234
15235 \begin_layout Description
15236 \begin_inset Flex Code
15237 status collapsed
15238
15239 \begin_layout Plain Layout
15240 LabelIndent
15241 \end_layout
15242
15243 \end_inset
15244
15245  [
15246 \begin_inset Flex Code
15247 status collapsed
15248
15249 \begin_layout Plain Layout
15250 string=""
15251 \end_layout
15252
15253 \end_inset
15254
15255 ] Text that indicates how far a label should be indented.
15256 \end_layout
15257
15258 \begin_layout Description
15259 \begin_inset Flex Code
15260 status collapsed
15261
15262 \begin_layout Plain Layout
15263 LabelSep
15264 \end_layout
15265
15266 \end_inset
15267
15268  [
15269 \begin_inset Flex Code
15270 status collapsed
15271
15272 \begin_layout Plain Layout
15273 string=""
15274 \end_layout
15275
15276 \end_inset
15277
15278 ] Text that indicates the amount of horizontal space between the label and
15279  the text body.
15280  Only used for labels that are not above the text body.
15281 \end_layout
15282
15283 \begin_layout Description
15284 \begin_inset Flex Code
15285 status collapsed
15286
15287 \begin_layout Plain Layout
15288 LabelString
15289 \end_layout
15290
15291 \end_inset
15292
15293  [
15294 \begin_inset Flex Code
15295 status collapsed
15296
15297 \begin_layout Plain Layout
15298 string=""
15299 \end_layout
15300
15301 \end_inset
15302
15303 ] The string used for the label.
15304  When 
15305 \begin_inset Flex Code
15306 status collapsed
15307
15308 \begin_layout Plain Layout
15309 LabelCounter
15310 \end_layout
15311
15312 \end_inset
15313
15314  is set, this string can be contain the special formatting commands described
15315  in 
15316 \begin_inset CommandInset ref
15317 LatexCommand ref
15318 reference "subsec:Counters"
15319
15320 \end_inset
15321
15322 .
15323 \end_layout
15324
15325 \begin_layout Description
15326 \begin_inset Flex Code
15327 status collapsed
15328
15329 \begin_layout Plain Layout
15330 LabelStringAppendix
15331 \end_layout
15332
15333 \end_inset
15334
15335  [
15336 \begin_inset Flex Code
15337 status collapsed
15338
15339 \begin_layout Plain Layout
15340 string=""
15341 \end_layout
15342
15343 \end_inset
15344
15345 ] This is used inside the appendix instead of
15346 \begin_inset Newline newline
15347 \end_inset
15348
15349
15350 \begin_inset Flex Code
15351 status collapsed
15352
15353 \begin_layout Plain Layout
15354 LabelString
15355 \end_layout
15356
15357 \end_inset
15358
15359 .
15360  Note that every 
15361 \begin_inset Flex Code
15362 status collapsed
15363
15364 \begin_layout Plain Layout
15365 LabelString
15366 \end_layout
15367
15368 \end_inset
15369
15370  statement resets
15371 \begin_inset Newline newline
15372 \end_inset
15373
15374
15375 \begin_inset Flex Code
15376 status collapsed
15377
15378 \begin_layout Plain Layout
15379 LabelStringAppendix
15380 \end_layout
15381
15382 \end_inset
15383
15384  too.
15385 \end_layout
15386
15387 \begin_layout Description
15388 \begin_inset Flex Code
15389 status collapsed
15390
15391 \begin_layout Plain Layout
15392 LabelTag
15393 \end_layout
15394
15395 \end_inset
15396
15397  [FIXME] (Used only with XML-type formats.)
15398 \end_layout
15399
15400 \begin_layout Description
15401 \begin_inset Flex Code
15402 status collapsed
15403
15404 \begin_layout Plain Layout
15405 LabelType
15406 \end_layout
15407
15408 \end_inset
15409
15410  [
15411 \begin_inset Flex Code
15412 status collapsed
15413
15414 \begin_layout Plain Layout
15415
15416 \emph on
15417 No_Label
15418 \emph default
15419 , Manual, Static, Above, 
15420 \begin_inset Newline newline
15421 \end_inset
15422
15423 Centered, Sensitive, Enumerate,
15424 \begin_inset Newline newline
15425 \end_inset
15426
15427 Itemize, Bibliography
15428 \end_layout
15429
15430 \end_inset
15431
15432 ]
15433 \end_layout
15434
15435 \begin_deeper
15436 \begin_layout Description
15437 \begin_inset Flex Code
15438 status collapsed
15439
15440 \begin_layout Plain Layout
15441 Manual
15442 \end_layout
15443
15444 \end_inset
15445
15446  means the label is the very first word (up to the first real blank).
15447  Use protected spaces if you want more than one word as the label.
15448  
15449 \end_layout
15450
15451 \begin_layout Description
15452 \begin_inset Flex Code
15453 status collapsed
15454
15455 \begin_layout Plain Layout
15456 Static
15457 \end_layout
15458
15459 \end_inset
15460
15461  means the label is simply what is declared as 
15462 \begin_inset Flex Code
15463 status collapsed
15464
15465 \begin_layout Plain Layout
15466 LabelString
15467 \end_layout
15468
15469 \end_inset
15470
15471 .
15472  This will be displayed 
15473 \begin_inset Quotes eld
15474 \end_inset
15475
15476 inline
15477 \begin_inset Quotes erd
15478 \end_inset
15479
15480 , at the beginning of the paragraph.
15481  If the 
15482 \begin_inset Flex Code
15483 status collapsed
15484
15485 \begin_layout Plain Layout
15486 LatexType
15487 \end_layout
15488
15489 \end_inset
15490
15491  is 
15492 \begin_inset Flex Code
15493 status collapsed
15494
15495 \begin_layout Plain Layout
15496 Environment
15497 \end_layout
15498
15499 \end_inset
15500
15501 , then it will be displayed only in the first paragraph of any sequence
15502  of paragraphs with the same 
15503 \begin_inset Flex Code
15504 status collapsed
15505
15506 \begin_layout Plain Layout
15507 Style
15508 \end_layout
15509
15510 \end_inset
15511
15512 .
15513 \end_layout
15514
15515 \begin_layout Description
15516 \begin_inset Flex Code
15517 status collapsed
15518
15519 \begin_layout Plain Layout
15520 Above
15521 \end_layout
15522
15523 \end_inset
15524
15525
15526 \begin_inset space ~
15527 \end_inset
15528
15529 and
15530 \begin_inset space ~
15531 \end_inset
15532
15533
15534 \begin_inset Flex Code
15535 status collapsed
15536
15537 \begin_layout Plain Layout
15538 Centered
15539 \end_layout
15540
15541 \end_inset
15542
15543  are special cases of 
15544 \begin_inset Flex Code
15545 status collapsed
15546
15547 \begin_layout Plain Layout
15548 Static
15549 \end_layout
15550
15551 \end_inset
15552
15553 .
15554  The label will be printed above the paragraph either at the beginning of
15555  the line or centered.
15556 \end_layout
15557
15558 \begin_layout Description
15559 \begin_inset Flex Code
15560 status collapsed
15561
15562 \begin_layout Plain Layout
15563 Sensitive
15564 \end_layout
15565
15566 \end_inset
15567
15568  is a special case for the caption-labels 
15569 \begin_inset Quotes eld
15570 \end_inset
15571
15572 Figure
15573 \begin_inset Quotes erd
15574 \end_inset
15575
15576  and 
15577 \begin_inset Quotes eld
15578 \end_inset
15579
15580 Table
15581 \begin_inset Quotes erd
15582 \end_inset
15583
15584 .
15585 \begin_inset Newline newline
15586 \end_inset
15587
15588
15589 \begin_inset Flex Code
15590 status collapsed
15591
15592 \begin_layout Plain Layout
15593 Sensitive
15594 \end_layout
15595
15596 \end_inset
15597
15598  means the (hardcoded) label string depends on the kind of float: It is
15599  hardcoded to be `FloatType N', where N is the value of the counter associated
15600  with the float.
15601  For the case that a caption is inserted outside of a float the 
15602 \begin_inset Flex Code
15603 status collapsed
15604
15605 \begin_layout Plain Layout
15606 LabelString
15607 \end_layout
15608
15609 \end_inset
15610
15611  will appear as 
15612 \begin_inset Quotes eld
15613 \end_inset
15614
15615 Senseless!
15616 \begin_inset Quotes erd
15617 \end_inset
15618
15619 .
15620 \end_layout
15621
15622 \begin_layout Description
15623 \begin_inset Flex Code
15624 status collapsed
15625
15626 \begin_layout Plain Layout
15627 Enumerate
15628 \end_layout
15629
15630 \end_inset
15631
15632  produces the usual sort of enumeration labels.
15633  The number type needs to be set in the 
15634 \family sans
15635 Counter
15636 \family default
15637 , see 
15638 \begin_inset CommandInset ref
15639 LatexCommand ref
15640 reference "subsec:Counters"
15641
15642 \end_inset
15643
15644 .
15645 \end_layout
15646
15647 \begin_layout Description
15648 \begin_inset Flex Code
15649 status collapsed
15650
15651 \begin_layout Plain Layout
15652 Itemize
15653 \end_layout
15654
15655 \end_inset
15656
15657  produces various bullets at the different levels.
15658  The bullet types displayed can be set via 
15659 \begin_inset Flex Noun
15660 status collapsed
15661
15662 \begin_layout Plain Layout
15663 Document\SpecialChar menuseparator
15664 Settings\SpecialChar menuseparator
15665 Bullets
15666 \end_layout
15667
15668 \end_inset
15669
15670 .
15671 \end_layout
15672
15673 \begin_layout Description
15674 \begin_inset Flex Code
15675 status collapsed
15676
15677 \begin_layout Plain Layout
15678 Bibliography
15679 \end_layout
15680
15681 \end_inset
15682
15683  should be used only with 
15684 \begin_inset Flex Code
15685 status collapsed
15686
15687 \begin_layout Plain Layout
15688 LatexType BibEnvironment
15689 \end_layout
15690
15691 \end_inset
15692
15693 .
15694 \end_layout
15695
15696 \end_deeper
15697 \begin_layout Description
15698 \begin_inset Flex Code
15699 status collapsed
15700
15701 \begin_layout Plain Layout
15702 LangPreamble
15703 \end_layout
15704
15705 \end_inset
15706
15707  Note that this will completely override any prior 
15708 \begin_inset Flex Code
15709 status collapsed
15710
15711 \begin_layout Plain Layout
15712 LangPreamble
15713 \end_layout
15714
15715 \end_inset
15716
15717  declaration for this style.
15718  Must end with 
15719 \begin_inset Quotes eld
15720 \end_inset
15721
15722
15723 \begin_inset Flex Code
15724 status collapsed
15725
15726 \begin_layout Plain Layout
15727 EndLangPreamble
15728 \end_layout
15729
15730 \end_inset
15731
15732
15733 \begin_inset Quotes erd
15734 \end_inset
15735
15736 .
15737  See 
15738 \begin_inset CommandInset ref
15739 LatexCommand ref
15740 reference "subsec:I18n"
15741
15742 \end_inset
15743
15744  for details on its use.
15745 \end_layout
15746
15747 \begin_layout Description
15748 \begin_inset Flex Code
15749 status collapsed
15750
15751 \begin_layout Plain Layout
15752 LatexName
15753 \end_layout
15754
15755 \end_inset
15756
15757  [
15758 \begin_inset Flex Code
15759 status collapsed
15760
15761 \begin_layout Plain Layout
15762 <name>
15763 \end_layout
15764
15765 \end_inset
15766
15767 ] The name of the corresponding \SpecialChar LaTeX
15768  stuff.
15769  Either the environment or command name.
15770 \end_layout
15771
15772 \begin_layout Description
15773 \begin_inset Flex Code
15774 status collapsed
15775
15776 \begin_layout Plain Layout
15777 LatexParam
15778 \end_layout
15779
15780 \end_inset
15781
15782  [
15783 \begin_inset Flex Code
15784 status collapsed
15785
15786 \begin_layout Plain Layout
15787 <parameter>
15788 \end_layout
15789
15790 \end_inset
15791
15792 ] An optional parameter for the corresponding 
15793 \begin_inset Flex Code
15794 status collapsed
15795
15796 \begin_layout Plain Layout
15797 LatexName
15798 \end_layout
15799
15800 \end_inset
15801
15802  stuff.
15803  This parameter cannot be changed from within \SpecialChar LyX
15804  (use 
15805 \begin_inset Flex Code
15806 status collapsed
15807
15808 \begin_layout Plain Layout
15809 Argument
15810 \end_layout
15811
15812 \end_inset
15813
15814  for customizable parameters).
15815  This will be output as is after all \SpecialChar LaTeX
15816  
15817 \begin_inset Flex Code
15818 status collapsed
15819
15820 \begin_layout Plain Layout
15821 Argument
15822 \end_layout
15823
15824 \end_inset
15825
15826 s.
15827 \end_layout
15828
15829 \begin_layout Description
15830 \begin_inset Flex Code
15831 status collapsed
15832
15833 \begin_layout Plain Layout
15834 LatexType
15835 \end_layout
15836
15837 \end_inset
15838
15839  [
15840 \begin_inset Flex Code
15841 status collapsed
15842
15843 \begin_layout Plain Layout
15844
15845 \emph on
15846 Paragraph
15847 \emph default
15848 , Command, Environment, Item_Environment,
15849 \begin_inset Newline newline
15850 \end_inset
15851
15852 List_Environment, Bib_Environment
15853 \end_layout
15854
15855 \end_inset
15856
15857 ] How the style should be translated into \SpecialChar LaTeX
15858 .
15859 \begin_inset Foot
15860 status collapsed
15861
15862 \begin_layout Plain Layout
15863 \begin_inset Flex Code
15864 status collapsed
15865
15866 \begin_layout Plain Layout
15867 LatexType
15868 \end_layout
15869
15870 \end_inset
15871
15872  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15873  Visit the SGML class files for specific examples.
15874 \end_layout
15875
15876 \end_inset
15877
15878
15879 \end_layout
15880
15881 \begin_deeper
15882 \begin_layout Description
15883 \begin_inset Flex Code
15884 status collapsed
15885
15886 \begin_layout Plain Layout
15887 Paragraph
15888 \end_layout
15889
15890 \end_inset
15891
15892  means nothing special.
15893 \end_layout
15894
15895 \begin_layout Description
15896 \begin_inset Flex Code
15897 status collapsed
15898
15899 \begin_layout Plain Layout
15900 Command
15901 \end_layout
15902
15903 \end_inset
15904
15905  means 
15906 \begin_inset Flex Code
15907 status collapsed
15908
15909 \begin_layout Plain Layout
15910
15911 \backslash
15912
15913 \emph on
15914 LatexName
15915 \emph default
15916 {\SpecialChar ldots
15917 }
15918 \end_layout
15919
15920 \end_inset
15921
15922 .
15923 \end_layout
15924
15925 \begin_layout Description
15926 \begin_inset Flex Code
15927 status collapsed
15928
15929 \begin_layout Plain Layout
15930 Environment
15931 \end_layout
15932
15933 \end_inset
15934
15935  means 
15936 \begin_inset Flex Code
15937 status collapsed
15938
15939 \begin_layout Plain Layout
15940
15941 \backslash
15942 begin{
15943 \emph on
15944 LatexName
15945 \emph default
15946 }\SpecialChar ldots
15947
15948 \backslash
15949 end{
15950 \emph on
15951 LatexName
15952 \emph default
15953 }
15954 \end_layout
15955
15956 \end_inset
15957
15958 .
15959  
15960 \end_layout
15961
15962 \begin_layout Description
15963 \begin_inset Flex Code
15964 status collapsed
15965
15966 \begin_layout Plain Layout
15967 Item_Environment
15968 \end_layout
15969
15970 \end_inset
15971
15972  is the same as 
15973 \begin_inset Flex Code
15974 status collapsed
15975
15976 \begin_layout Plain Layout
15977 Environment
15978 \end_layout
15979
15980 \end_inset
15981
15982 , except that an 
15983 \begin_inset Flex Code
15984 status collapsed
15985
15986 \begin_layout Plain Layout
15987
15988 \backslash
15989 item
15990 \end_layout
15991
15992 \end_inset
15993
15994  is generated for each paragraph of this environment.
15995  
15996 \end_layout
15997
15998 \begin_layout Description
15999 \begin_inset Flex Code
16000 status collapsed
16001
16002 \begin_layout Plain Layout
16003 List_Environment
16004 \end_layout
16005
16006 \end_inset
16007
16008  is the same as 
16009 \begin_inset Flex Code
16010 status collapsed
16011
16012 \begin_layout Plain Layout
16013 Item_Environment
16014 \end_layout
16015
16016 \end_inset
16017
16018 , except that
16019 \begin_inset Newline newline
16020 \end_inset
16021
16022
16023 \begin_inset Flex Code
16024 status collapsed
16025
16026 \begin_layout Plain Layout
16027 LabelWidthString
16028 \end_layout
16029
16030 \end_inset
16031
16032  is passed as an argument to the environment.
16033 \begin_inset Newline newline
16034 \end_inset
16035
16036
16037 \begin_inset Flex Code
16038 status collapsed
16039
16040 \begin_layout Plain Layout
16041 LabelWidthString
16042 \end_layout
16043
16044 \end_inset
16045
16046  can be defined in the 
16047 \begin_inset Flex Noun
16048 status collapsed
16049
16050 \begin_layout Plain Layout
16051 Edit\SpecialChar menuseparator
16052 Paragraph
16053 \begin_inset space ~
16054 \end_inset
16055
16056 settings
16057 \end_layout
16058
16059 \end_inset
16060
16061  dialog.
16062 \end_layout
16063
16064 \begin_layout Description
16065 \begin_inset Flex Code
16066 status collapsed
16067
16068 \begin_layout Plain Layout
16069 Bib_Environment
16070 \end_layout
16071
16072 \end_inset
16073
16074  is like 
16075 \begin_inset Flex Code
16076 status collapsed
16077
16078 \begin_layout Plain Layout
16079 Environment
16080 \end_layout
16081
16082 \end_inset
16083
16084  but adds the necessary mandatory argument (the longest label) to the begin
16085  statement of the bibliography environment:
16086 \begin_inset Newline newline
16087 \end_inset
16088
16089
16090 \begin_inset Flex Code
16091 status collapsed
16092
16093 \begin_layout Plain Layout
16094
16095 \backslash
16096 begin{thebibliography}{99}
16097 \end_layout
16098
16099 \end_inset
16100
16101 .
16102  It is therefore only useful for bibliography environments.
16103  The default longest label 
16104 \begin_inset Quotes eld
16105 \end_inset
16106
16107 99
16108 \begin_inset Quotes erd
16109 \end_inset
16110
16111  can be changed by the user in the paragraph settings of a bibliography
16112  item.
16113 \end_layout
16114
16115 \begin_layout Standard
16116 Putting the last few things together, the \SpecialChar LaTeX
16117  output will be either: 
16118 \end_layout
16119
16120 \begin_layout LyX-Code
16121
16122 \backslash
16123 LatexName[LatexParam]{\SpecialChar ldots
16124 }
16125 \end_layout
16126
16127 \begin_layout Standard
16128 or: 
16129 \end_layout
16130
16131 \begin_layout LyX-Code
16132
16133 \backslash
16134 begin{LatexName}[LatexParam] \SpecialChar ldots
16135  
16136 \backslash
16137 end{LatexName}.
16138 \end_layout
16139
16140 \begin_layout Standard
16141 depending upon the \SpecialChar LaTeX
16142  type.
16143 \end_layout
16144
16145 \end_deeper
16146 \begin_layout Description
16147 \begin_inset Flex Code
16148 status collapsed
16149
16150 \begin_layout Plain Layout
16151 LeftDelim
16152 \end_layout
16153
16154 \end_inset
16155
16156  [
16157 \begin_inset Flex Code
16158 status collapsed
16159
16160 \begin_layout Plain Layout
16161 string
16162 \end_layout
16163
16164 \end_inset
16165
16166 ] A string that is put at the beginning of the style content.
16167  A line break in the output can be indicated by 
16168 \begin_inset Flex Code
16169 status collapsed
16170
16171 \begin_layout Plain Layout
16172 <br/>
16173 \end_layout
16174
16175 \end_inset
16176
16177 .
16178 \end_layout
16179
16180 \begin_layout Description
16181 \begin_inset Flex Code
16182 status collapsed
16183
16184 \begin_layout Plain Layout
16185 LeftMargin
16186 \end_layout
16187
16188 \end_inset
16189
16190  [
16191 \begin_inset Flex Code
16192 status collapsed
16193
16194 \begin_layout Plain Layout
16195 string=""
16196 \end_layout
16197
16198 \end_inset
16199
16200 ] If you put styles into environments, the different 
16201 \begin_inset Flex Code
16202 status collapsed
16203
16204 \begin_layout Plain Layout
16205 LeftMargin
16206 \end_layout
16207
16208 \end_inset
16209
16210  are not simply added, but added with a factor 
16211 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
16212 \end_inset
16213
16214 .
16215  Note that this parameter is also used when 
16216 \begin_inset Flex Code
16217 status collapsed
16218
16219 \begin_layout Plain Layout
16220 Margin
16221 \end_layout
16222
16223 \end_inset
16224
16225  is defined as 
16226 \begin_inset Flex Code
16227 status collapsed
16228
16229 \begin_layout Plain Layout
16230 Manual
16231 \end_layout
16232
16233 \end_inset
16234
16235  or 
16236 \begin_inset Flex Code
16237 status collapsed
16238
16239 \begin_layout Plain Layout
16240 Dynamic
16241 \end_layout
16242
16243 \end_inset
16244
16245 .
16246  Then it is added to the manual or dynamic margin.
16247 \begin_inset Newline newline
16248 \end_inset
16249
16250 For example 
16251 \begin_inset Quotes eld
16252 \end_inset
16253
16254
16255 \begin_inset Flex Code
16256 status collapsed
16257
16258 \begin_layout Plain Layout
16259 MM
16260 \end_layout
16261
16262 \end_inset
16263
16264
16265 \begin_inset Quotes erd
16266 \end_inset
16267
16268  means that the paragraph is indented with the width of 
16269 \begin_inset Quotes eld
16270 \end_inset
16271
16272
16273 \begin_inset Flex Code
16274 status collapsed
16275
16276 \begin_layout Plain Layout
16277 MM
16278 \end_layout
16279
16280 \end_inset
16281
16282
16283 \begin_inset Quotes erd
16284 \end_inset
16285
16286  in the normal font.
16287  You can get a negative width by prefixing the string with 
16288 \begin_inset Quotes eld
16289 \end_inset
16290
16291
16292 \begin_inset Flex Code
16293 status collapsed
16294
16295 \begin_layout Plain Layout
16296 -
16297 \end_layout
16298
16299 \end_inset
16300
16301
16302 \begin_inset Quotes erd
16303 \end_inset
16304
16305 .
16306  This way was chosen so that the look is the same with each used screen
16307  font.
16308 \end_layout
16309
16310 \begin_layout Description
16311 \begin_inset Flex Code
16312 status collapsed
16313
16314 \begin_layout Plain Layout
16315 Margin
16316 \end_layout
16317
16318 \end_inset
16319
16320  [
16321 \begin_inset Flex Code
16322 status collapsed
16323
16324 \begin_layout Plain Layout
16325
16326 \emph on
16327 Static
16328 \emph default
16329 , Manual, Dynamic, First_Dynamic, Right_Address_Box
16330 \end_layout
16331
16332 \end_inset
16333
16334
16335 \begin_inset Newline newline
16336 \end_inset
16337
16338 The kind of margin that the style has on the left side.
16339 \end_layout
16340
16341 \begin_deeper
16342 \begin_layout Description
16343 \begin_inset Flex Code
16344 status collapsed
16345
16346 \begin_layout Plain Layout
16347 Static
16348 \end_layout
16349
16350 \end_inset
16351
16352  just means a fixed margin.
16353 \end_layout
16354
16355 \begin_layout Description
16356 \begin_inset Flex Code
16357 status collapsed
16358
16359 \begin_layout Plain Layout
16360 Manual
16361 \end_layout
16362
16363 \end_inset
16364
16365  means that the left margin depends on the string entered in the 
16366 \begin_inset Flex Noun
16367 status collapsed
16368
16369 \begin_layout Plain Layout
16370 Edit\SpecialChar menuseparator
16371 Paragraph
16372 \begin_inset space ~
16373 \end_inset
16374
16375 Settings
16376 \end_layout
16377
16378 \end_inset
16379
16380  dialog.
16381  This is used to typeset nice lists without tabulators.
16382 \end_layout
16383
16384 \begin_layout Description
16385 \begin_inset Flex Code
16386 status collapsed
16387
16388 \begin_layout Plain Layout
16389 Dynamic
16390 \end_layout
16391
16392 \end_inset
16393
16394  means that the margin depends on the size of the label.
16395  This is used for automatic enumerated headlines.
16396  It is obvious that the headline 
16397 \begin_inset Quotes eld
16398 \end_inset
16399
16400 5.4.3.2.1 Very long headline
16401 \begin_inset Quotes erd
16402 \end_inset
16403
16404  must have a wider left margin (as wide as 
16405 \begin_inset Quotes eld
16406 \end_inset
16407
16408 5.4.3.2.1
16409 \begin_inset Quotes erd
16410 \end_inset
16411
16412  plus the space) than 
16413 \begin_inset Quotes eld
16414 \end_inset
16415
16416 3.2 Very long headline
16417 \begin_inset Quotes erd
16418 \end_inset
16419
16420 , even if standard 
16421 \begin_inset Quotes eld
16422 \end_inset
16423
16424 word processors
16425 \begin_inset Quotes erd
16426 \end_inset
16427
16428  are not able to do this.
16429 \end_layout
16430
16431 \begin_layout Description
16432 \begin_inset Flex Code
16433 status collapsed
16434
16435 \begin_layout Plain Layout
16436 First_Dynamic
16437 \end_layout
16438
16439 \end_inset
16440
16441  is similar, but only the very first row of the paragraph is dynamic, while
16442  the others are static; this is used, for example, for descriptions.
16443 \end_layout
16444
16445 \begin_layout Description
16446 \begin_inset Flex Code
16447 status collapsed
16448
16449 \begin_layout Plain Layout
16450 Right_Address_Box
16451 \end_layout
16452
16453 \end_inset
16454
16455  means the margin is chosen in a way that the longest row of this paragraph
16456  fits to the right margin.
16457  This is used to typeset an address on the right edge of the page.
16458 \end_layout
16459
16460 \end_deeper
16461 \begin_layout Description
16462 \begin_inset Flex Code
16463 status collapsed
16464
16465 \begin_layout Plain Layout
16466 NeedProtect
16467 \end_layout
16468
16469 \end_inset
16470
16471  [
16472 \begin_inset Flex Code
16473 status collapsed
16474
16475 \begin_layout Plain Layout
16476
16477 \emph on
16478 0
16479 \end_layout
16480
16481 \end_inset
16482
16483 ,
16484 \begin_inset space \thinspace{}
16485 \end_inset
16486
16487
16488 \begin_inset Flex Code
16489 status collapsed
16490
16491 \begin_layout Plain Layout
16492 1
16493 \end_layout
16494
16495 \end_inset
16496
16497 ] Whether fragile commands in this style should be 
16498 \begin_inset Flex Code
16499 status collapsed
16500
16501 \begin_layout Plain Layout
16502
16503 \backslash
16504 protect
16505 \end_layout
16506
16507 \end_inset
16508
16509 'ed.
16510  (Note: This is 
16511 \emph on
16512 not
16513 \emph default
16514  whether this command should itself be protected.)
16515 \change_inserted -712698321 1523696949
16516
16517 \end_layout
16518
16519 \begin_layout Description
16520
16521 \change_inserted -712698321 1552395557
16522 \begin_inset Flex Code
16523 status collapsed
16524
16525 \begin_layout Plain Layout
16526
16527 \change_inserted -712698321 1523696950
16528 NeedCProtect
16529 \change_unchanged
16530
16531 \end_layout
16532
16533 \end_inset
16534
16535  [
16536 \begin_inset Flex Code
16537 status collapsed
16538
16539 \begin_layout Plain Layout
16540
16541 \change_inserted -712698321 1523696950
16542
16543 \emph on
16544 0
16545 \change_unchanged
16546
16547 \end_layout
16548
16549 \end_inset
16550
16551 ,
16552 \begin_inset space \thinspace{}
16553 \end_inset
16554
16555
16556 \begin_inset Flex Code
16557 status collapsed
16558
16559 \begin_layout Plain Layout
16560
16561 \change_inserted -712698321 1523696950
16562 1
16563 \change_unchanged
16564
16565 \end_layout
16566
16567 \end_inset
16568
16569 ] This causes macros that contain this layout to be protected with 
16570 \begin_inset Flex Code
16571 status collapsed
16572
16573 \begin_layout Plain Layout
16574
16575 \change_inserted -712698321 1523696950
16576
16577 \backslash
16578 cprotect
16579 \change_unchanged
16580
16581 \end_layout
16582
16583 \end_inset
16584
16585  (cf.
16586  package 
16587 \family sans
16588 cprotect
16589 \family default
16590 ) if necessary and thus allows (some) verbatim stuff in macros.
16591 \end_layout
16592
16593 \begin_layout Description
16594
16595 \change_inserted -712698321 1552395844
16596 \begin_inset Flex Code
16597 status collapsed
16598
16599 \begin_layout Plain Layout
16600
16601 \change_inserted -712698321 1552395561
16602 NeedMBoxProtect
16603 \change_unchanged
16604
16605 \end_layout
16606
16607 \end_inset
16608
16609  [
16610 \begin_inset Flex Code
16611 status collapsed
16612
16613 \begin_layout Plain Layout
16614
16615 \change_inserted -712698321 1552395557
16616
16617 \emph on
16618 0
16619 \change_unchanged
16620
16621 \end_layout
16622
16623 \end_inset
16624
16625 ,
16626 \begin_inset space \thinspace{}
16627 \end_inset
16628
16629
16630 \begin_inset Flex Code
16631 status collapsed
16632
16633 \begin_layout Plain Layout
16634
16635 \change_inserted -712698321 1552395557
16636 1
16637 \change_unchanged
16638
16639 \end_layout
16640
16641 \end_inset
16642
16643 ] Whether specific commands in this style (such as 
16644 \begin_inset Flex Code
16645 status collapsed
16646
16647 \begin_layout Plain Layout
16648
16649 \change_inserted -712698321 1552395655
16650
16651 \backslash
16652 cite
16653 \change_unchanged
16654
16655 \end_layout
16656
16657 \end_inset
16658
16659  and 
16660 \begin_inset Flex Code
16661 status collapsed
16662
16663 \begin_layout Plain Layout
16664
16665 \change_inserted -712698321 1552395661
16666
16667 \backslash
16668 ref
16669 \change_unchanged
16670
16671 \end_layout
16672
16673 \end_inset
16674
16675 ) should be protected in an 
16676 \begin_inset Flex Code
16677 status collapsed
16678
16679 \begin_layout Plain Layout
16680
16681 \change_inserted -712698321 1552395631
16682
16683 \backslash
16684 mbox
16685 \change_unchanged
16686
16687 \end_layout
16688
16689 \end_inset
16690
16691 .
16692  This is particularly needed for styles that draw on 
16693 \family sans
16694 ulem
16695 \family default
16696  or 
16697 \family sans
16698 soul
16699 \family default
16700  commands which parse their content in complex ways.
16701 \change_unchanged
16702
16703 \end_layout
16704
16705 \begin_layout Description
16706 \begin_inset Flex Code
16707 status collapsed
16708
16709 \begin_layout Plain Layout
16710 Newline
16711 \end_layout
16712
16713 \end_inset
16714
16715  [
16716 \begin_inset Flex Code
16717 status collapsed
16718
16719 \begin_layout Plain Layout
16720 0
16721 \end_layout
16722
16723 \end_inset
16724
16725 ,
16726 \begin_inset space \thinspace{}
16727 \end_inset
16728
16729
16730 \begin_inset Flex Code
16731 status collapsed
16732
16733 \begin_layout Plain Layout
16734
16735 \emph on
16736 1
16737 \end_layout
16738
16739 \end_inset
16740
16741 ] Whether newlines are translated into \SpecialChar LaTeX
16742  newlines (
16743 \begin_inset Flex Code
16744 status collapsed
16745
16746 \begin_layout Plain Layout
16747
16748 \backslash
16749
16750 \backslash
16751
16752 \end_layout
16753
16754 \end_inset
16755
16756 ) or not.
16757  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16758  editing
16759  inside \SpecialChar LyX
16760 .
16761 \end_layout
16762
16763 \begin_layout Description
16764 \begin_inset Flex Code
16765 status collapsed
16766
16767 \begin_layout Plain Layout
16768 NextNoIndent
16769 \end_layout
16770
16771 \end_inset
16772
16773  [
16774 \begin_inset Flex Code
16775 status collapsed
16776
16777 \begin_layout Plain Layout
16778
16779 \emph on
16780 0
16781 \end_layout
16782
16783 \end_inset
16784
16785 ,
16786 \begin_inset space \thinspace{}
16787 \end_inset
16788
16789
16790 \begin_inset Flex Code
16791 status collapsed
16792
16793 \begin_layout Plain Layout
16794 1
16795 \end_layout
16796
16797 \end_inset
16798
16799 ] If set to true, and if 
16800 \begin_inset Flex Code
16801 status collapsed
16802
16803 \begin_layout Plain Layout
16804 DefaultStyle
16805 \end_layout
16806
16807 \end_inset
16808
16809  (usually 
16810 \begin_inset Flex Code
16811 status collapsed
16812
16813 \begin_layout Plain Layout
16814 Standard
16815 \end_layout
16816
16817 \end_inset
16818
16819 ) paragraphs are being indented, then the indentation of such a paragraph
16820  following one of this type will be suppressed.
16821  (So this will not affect the display of non-default paragraphs.)
16822 \end_layout
16823
16824 \begin_layout Description
16825 \begin_inset Flex Code
16826 status collapsed
16827
16828 \begin_layout Plain Layout
16829 ObsoletedBy
16830 \end_layout
16831
16832 \end_inset
16833
16834  [
16835 \begin_inset Flex Code
16836 status collapsed
16837
16838 \begin_layout Plain Layout
16839 <name>
16840 \end_layout
16841
16842 \end_inset
16843
16844 ] Name of a style that has replaced this style.
16845  This is used to rename a style, while keeping backward compatibility.
16846 \end_layout
16847
16848 \begin_layout Description
16849 \begin_inset Flex Code
16850 status collapsed
16851
16852 \begin_layout Plain Layout
16853 ParagraphGroup
16854 \end_layout
16855
16856 \end_inset
16857
16858  [
16859 \begin_inset Flex Code
16860 status collapsed
16861
16862 \begin_layout Plain Layout
16863 0
16864 \end_layout
16865
16866 \end_inset
16867
16868 ,
16869 \begin_inset space \thinspace{}
16870 \end_inset
16871
16872
16873 \begin_inset Flex Code
16874 status collapsed
16875
16876 \begin_layout Plain Layout
16877 1
16878 \end_layout
16879
16880 \end_inset
16881
16882 ] Determines whether consecutive paragraphs of the same type are treated
16883  as belonging together.
16884  This has the effect that the 
16885 \begin_inset Flex Code
16886 status collapsed
16887
16888 \begin_layout Plain Layout
16889 GuiLabel
16890 \end_layout
16891
16892 \end_inset
16893
16894  is only printed once before such a group.
16895  By default, this is true for 
16896 \begin_inset Flex Code
16897 status collapsed
16898
16899 \begin_layout Plain Layout
16900 LaTeXType
16901 \end_layout
16902
16903 \end_inset
16904
16905  
16906 \begin_inset Flex Code
16907 status collapsed
16908
16909 \begin_layout Plain Layout
16910 Environment
16911 \end_layout
16912
16913 \end_inset
16914
16915  and 
16916 \begin_inset Flex Code
16917 status collapsed
16918
16919 \begin_layout Plain Layout
16920 Bib_Environment
16921 \end_layout
16922
16923 \end_inset
16924
16925  and false for all other types.
16926 \end_layout
16927
16928 \begin_layout Description
16929 \begin_inset Flex Code
16930 status collapsed
16931
16932 \begin_layout Plain Layout
16933 ParbreakIsNewline
16934 \end_layout
16935
16936 \end_inset
16937
16938  [
16939 \begin_inset Flex Code
16940 status collapsed
16941
16942 \begin_layout Plain Layout
16943
16944 \emph on
16945 0
16946 \end_layout
16947
16948 \end_inset
16949
16950 ,
16951 \begin_inset space \thinspace{}
16952 \end_inset
16953
16954
16955 \begin_inset Flex Code
16956 status collapsed
16957
16958 \begin_layout Plain Layout
16959 1
16960 \end_layout
16961
16962 \end_inset
16963
16964 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16965  output,
16966  but only by a line break; together with 
16967 \begin_inset Flex Code
16968 status collapsed
16969
16970 \begin_layout Plain Layout
16971 PassThru 1
16972 \end_layout
16973
16974 \end_inset
16975
16976 , this allows to emulate a plain text editor (like the ERT inset).
16977 \end_layout
16978
16979 \begin_layout Description
16980 \begin_inset Flex Code
16981 status collapsed
16982
16983 \begin_layout Plain Layout
16984 ParIndent
16985 \end_layout
16986
16987 \end_inset
16988
16989  [
16990 \begin_inset Flex Code
16991 status collapsed
16992
16993 \begin_layout Plain Layout
16994 string=""
16995 \end_layout
16996
16997 \end_inset
16998
16999 ] The indent of the very first line of a paragraph.
17000  The
17001 \begin_inset Newline newline
17002 \end_inset
17003
17004
17005 \begin_inset Flex Code
17006 status collapsed
17007
17008 \begin_layout Plain Layout
17009 Parindent
17010 \end_layout
17011
17012 \end_inset
17013
17014  will be fixed for a certain style.
17015  The exception is the default style, since the indentation for these paragraphs
17016  can be prohibited with 
17017 \begin_inset Flex Code
17018 status collapsed
17019
17020 \begin_layout Plain Layout
17021 NextNoIndent
17022 \end_layout
17023
17024 \end_inset
17025
17026 .
17027  Also, 
17028 \begin_inset Flex Code
17029 status collapsed
17030
17031 \begin_layout Plain Layout
17032 Standard
17033 \end_layout
17034
17035 \end_inset
17036
17037  style paragraphs inside environments use the 
17038 \begin_inset Flex Code
17039 status collapsed
17040
17041 \begin_layout Plain Layout
17042 Parindent
17043 \end_layout
17044
17045 \end_inset
17046
17047  of the environment, not their native one.
17048  For example, 
17049 \begin_inset Flex Code
17050 status collapsed
17051
17052 \begin_layout Plain Layout
17053 Standard
17054 \end_layout
17055
17056 \end_inset
17057
17058  paragraphs inside an enumeration are not indented.
17059 \end_layout
17060
17061 \begin_layout Description
17062 \begin_inset Flex Code
17063 status collapsed
17064
17065 \begin_layout Plain Layout
17066 ParSep
17067 \end_layout
17068
17069 \end_inset
17070
17071  [
17072 \begin_inset Flex Code
17073 status collapsed
17074
17075 \begin_layout Plain Layout
17076 float=0
17077 \end_layout
17078
17079 \end_inset
17080
17081 ] The vertical space between two paragraphs of this style.
17082 \end_layout
17083
17084 \begin_layout Description
17085 \begin_inset Flex Code
17086 status collapsed
17087
17088 \begin_layout Plain Layout
17089 Parskip
17090 \end_layout
17091
17092 \end_inset
17093
17094  [
17095 \begin_inset Flex Code
17096 status collapsed
17097
17098 \begin_layout Plain Layout
17099 float=0
17100 \end_layout
17101
17102 \end_inset
17103
17104 ] \SpecialChar LyX
17105  allows the user to choose either 
17106 \begin_inset Quotes eld
17107 \end_inset
17108
17109 indent
17110 \begin_inset Quotes erd
17111 \end_inset
17112
17113  or 
17114 \begin_inset Quotes eld
17115 \end_inset
17116
17117 skip
17118 \begin_inset Quotes erd
17119 \end_inset
17120
17121  to separate paragraphs.
17122  When 
17123 \begin_inset Quotes eld
17124 \end_inset
17125
17126 indent
17127 \begin_inset Quotes erd
17128 \end_inset
17129
17130  is chosen, 
17131 \begin_inset Flex Code
17132 status collapsed
17133
17134 \begin_layout Plain Layout
17135 Parskip
17136 \end_layout
17137
17138 \end_inset
17139
17140  is ignored.
17141  When 
17142 \begin_inset Quotes eld
17143 \end_inset
17144
17145 skip
17146 \begin_inset Quotes erd
17147 \end_inset
17148
17149  is chosen, 
17150 \begin_inset Flex Code
17151 status collapsed
17152
17153 \begin_layout Plain Layout
17154 ParIndent
17155 \end_layout
17156
17157 \end_inset
17158
17159  is ignored and all paragraphs are separated by the 
17160 \begin_inset Flex Code
17161 status collapsed
17162
17163 \begin_layout Plain Layout
17164 Parskip
17165 \end_layout
17166
17167 \end_inset
17168
17169  argument.
17170  The vertical space is calculated with 
17171 \begin_inset Flex Code
17172 status collapsed
17173
17174 \begin_layout Plain Layout
17175 Parskip
17176 \begin_inset space ~
17177 \end_inset
17178
17179 * DefaultHeight
17180 \end_layout
17181
17182 \end_inset
17183
17184  where 
17185 \begin_inset Flex Code
17186 status collapsed
17187
17188 \begin_layout Plain Layout
17189 DefaultHeight
17190 \end_layout
17191
17192 \end_inset
17193
17194  is the height of a row with the normal font.
17195  This way, the look stays the same with different screen fonts.
17196 \end_layout
17197
17198 \begin_layout Description
17199 \begin_inset Flex Code
17200 status collapsed
17201
17202 \begin_layout Plain Layout
17203 PassThru
17204 \end_layout
17205
17206 \end_inset
17207
17208  [
17209 \begin_inset Flex Code
17210 status collapsed
17211
17212 \begin_layout Plain Layout
17213
17214 \emph on
17215 0
17216 \end_layout
17217
17218 \end_inset
17219
17220 ,
17221 \begin_inset space \thinspace{}
17222 \end_inset
17223
17224
17225 \begin_inset Flex Code
17226 status collapsed
17227
17228 \begin_layout Plain Layout
17229 1
17230 \end_layout
17231
17232 \end_inset
17233
17234 ] Whether the contents of this paragraph should be output in raw form, meaning
17235  without special translations that \SpecialChar LaTeX
17236  would require.
17237 \end_layout
17238
17239 \begin_layout Description
17240 \begin_inset Flex Code
17241 status collapsed
17242
17243 \begin_layout Plain Layout
17244 PassThruChars
17245 \end_layout
17246
17247 \end_inset
17248
17249  [
17250 \begin_inset Flex Code
17251 status collapsed
17252
17253 \begin_layout Plain Layout
17254 string
17255 \end_layout
17256
17257 \end_inset
17258
17259 ]
17260 \family typewriter
17261  
17262 \family default
17263 Defines individual characters that should be output in raw form, meaning
17264  without special translations that \SpecialChar LaTeX
17265  would require.
17266 \end_layout
17267
17268 \begin_layout Description
17269 \begin_inset Flex Code
17270 status collapsed
17271
17272 \begin_layout Plain Layout
17273 Preamble
17274 \end_layout
17275
17276 \end_inset
17277
17278  Information to be included in the \SpecialChar LaTeX
17279  preamble when this style is used.
17280  Used to define macros, load packages, etc., required by this particular
17281  style.
17282  Must end with 
17283 \begin_inset Quotes eld
17284 \end_inset
17285
17286
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291 EndPreamble
17292 \end_layout
17293
17294 \end_inset
17295
17296
17297 \begin_inset Quotes erd
17298 \end_inset
17299
17300 .
17301 \end_layout
17302
17303 \begin_layout Description
17304 \begin_inset Flex Code
17305 status collapsed
17306
17307 \begin_layout Plain Layout
17308 RefPrefix
17309 \end_layout
17310
17311 \end_inset
17312
17313  [
17314 \begin_inset Flex Code
17315 status collapsed
17316
17317 \begin_layout Plain Layout
17318 string
17319 \end_layout
17320
17321 \end_inset
17322
17323 ] The prefix to use when creating labels referring to paragraphs of this
17324  type.
17325  This allows the use of formatted references.
17326 \end_layout
17327
17328 \begin_layout Description
17329 \begin_inset Flex Code
17330 status collapsed
17331
17332 \begin_layout Plain Layout
17333 Requires 
17334 \end_layout
17335
17336 \end_inset
17337
17338  [
17339 \begin_inset Flex Code
17340 status collapsed
17341
17342 \begin_layout Plain Layout
17343 string
17344 \end_layout
17345
17346 \end_inset
17347
17348 ] Whether the style requires the feature 
17349 \begin_inset Flex Code
17350 status collapsed
17351
17352 \begin_layout Plain Layout
17353 string
17354 \end_layout
17355
17356 \end_inset
17357
17358  (see 
17359 \begin_inset CommandInset ref
17360 LatexCommand ref
17361 reference "chap:List-of-functions"
17362
17363 \end_inset
17364
17365  for the list of features).
17366  If you require a package with specific options, you can additionally use
17367  
17368 \begin_inset Flex Code
17369 status collapsed
17370
17371 \begin_layout Plain Layout
17372 PackageOptions
17373 \end_layout
17374
17375 \end_inset
17376
17377  as a general text class parameter (see 
17378 \begin_inset CommandInset ref
17379 LatexCommand ref
17380 reference "subsec:General-text-class"
17381
17382 \end_inset
17383
17384 ).
17385 \end_layout
17386
17387 \begin_layout Description
17388 \begin_inset Flex Code
17389 status collapsed
17390
17391 \begin_layout Plain Layout
17392 ResetArgs
17393 \end_layout
17394
17395 \end_inset
17396
17397  [
17398 \begin_inset Flex Code
17399 status collapsed
17400
17401 \begin_layout Plain Layout
17402
17403 \emph on
17404 0
17405 \end_layout
17406
17407 \end_inset
17408
17409 ,
17410 \begin_inset Flex Code
17411 status collapsed
17412
17413 \begin_layout Plain Layout
17414 1
17415 \end_layout
17416
17417 \end_inset
17418
17419 ] Resets the \SpecialChar LaTeX
17420  arguments of this style (as defined via the 
17421 \begin_inset Flex Code
17422 status collapsed
17423
17424 \begin_layout Plain Layout
17425 Argument
17426 \end_layout
17427
17428 \end_inset
17429
17430  tag).
17431  This is useful if you have copied a style via 
17432 \begin_inset Flex Code
17433 status collapsed
17434
17435 \begin_layout Plain Layout
17436 CopyStyle
17437 \end_layout
17438
17439 \end_inset
17440
17441 , but you do not want to inherit its (required and optional) arguments.
17442 \end_layout
17443
17444 \begin_layout Description
17445 \begin_inset Flex Code
17446 status collapsed
17447
17448 \begin_layout Plain Layout
17449 ResumeCounter
17450 \end_layout
17451
17452 \end_inset
17453
17454  [
17455 \begin_inset Flex Code
17456 status collapsed
17457
17458 \begin_layout Plain Layout
17459
17460 \emph on
17461 0
17462 \end_layout
17463
17464 \end_inset
17465
17466 ,
17467 \begin_inset Flex Code
17468 status collapsed
17469
17470 \begin_layout Plain Layout
17471 1
17472 \end_layout
17473
17474 \end_inset
17475
17476 ] Resumes a counter that is usually reset at each new sequence of layouts.
17477  This is currently only useful when 
17478 \begin_inset Flex Code
17479 status collapsed
17480
17481 \begin_layout Plain Layout
17482 LabelType
17483 \end_layout
17484
17485 \end_inset
17486
17487  is 
17488 \begin_inset Flex Code
17489 status collapsed
17490
17491 \begin_layout Plain Layout
17492 Enumerate
17493 \end_layout
17494
17495 \end_inset
17496
17497 .
17498 \end_layout
17499
17500 \begin_layout Description
17501 \begin_inset Flex Code
17502 status collapsed
17503
17504 \begin_layout Plain Layout
17505 RightDelim
17506 \end_layout
17507
17508 \end_inset
17509
17510  [
17511 \begin_inset Flex Code
17512 status collapsed
17513
17514 \begin_layout Plain Layout
17515 string
17516 \end_layout
17517
17518 \end_inset
17519
17520 ] A string that is put at the end of the layout content.
17521  A line break in the output can be indicated by 
17522 \begin_inset Flex Code
17523 status collapsed
17524
17525 \begin_layout Plain Layout
17526 <br/>
17527 \end_layout
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 RightMargin
17540 \end_layout
17541
17542 \end_inset
17543
17544  [
17545 \begin_inset Flex Code
17546 status collapsed
17547
17548 \begin_layout Plain Layout
17549 string=""
17550 \end_layout
17551
17552 \end_inset
17553
17554 ] Similar to 
17555 \begin_inset Flex Code
17556 status collapsed
17557
17558 \begin_layout Plain Layout
17559 LeftMargin
17560 \end_layout
17561
17562 \end_inset
17563
17564 .
17565 \end_layout
17566
17567 \begin_layout Description
17568 \begin_inset Flex Code
17569 status collapsed
17570
17571 \begin_layout Plain Layout
17572 Spacing
17573 \end_layout
17574
17575 \end_inset
17576
17577  [
17578 \begin_inset Flex Code
17579 status collapsed
17580
17581 \begin_layout Plain Layout
17582
17583 \emph on
17584 single
17585 \end_layout
17586
17587 \end_inset
17588
17589
17590 \begin_inset Flex Code
17591 status collapsed
17592
17593 \begin_layout Plain Layout
17594 onehalf
17595 \end_layout
17596
17597 \end_inset
17598
17599
17600 \begin_inset Flex Code
17601 status collapsed
17602
17603 \begin_layout Plain Layout
17604 double
17605 \end_layout
17606
17607 \end_inset
17608
17609
17610 \begin_inset Flex Code
17611 status collapsed
17612
17613 \begin_layout Plain Layout
17614 other
17615 \begin_inset space ~
17616 \end_inset
17617
17618 <value>
17619 \end_layout
17620
17621 \end_inset
17622
17623 ] This defines what the default spacing should be in the style.
17624  The arguments 
17625 \begin_inset Flex Code
17626 status collapsed
17627
17628 \begin_layout Plain Layout
17629 single
17630 \end_layout
17631
17632 \end_inset
17633
17634
17635 \begin_inset Flex Code
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639 onehalf
17640 \end_layout
17641
17642 \end_inset
17643
17644  and 
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 double
17650 \end_layout
17651
17652 \end_inset
17653
17654  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17655  If you specify the argument 
17656 \begin_inset Flex Code
17657 status collapsed
17658
17659 \begin_layout Plain Layout
17660 other
17661 \end_layout
17662
17663 \end_inset
17664
17665 , then you must also provide a value argument which will be the actual multiplie
17666 r value.
17667  Note that, contrary to other parameters, 
17668 \begin_inset Flex Code
17669 status collapsed
17670
17671 \begin_layout Plain Layout
17672 Spacing
17673 \end_layout
17674
17675 \end_inset
17676
17677  implies the generation of specific \SpecialChar LaTeX
17678  code, using the \SpecialChar LaTeX
17679  package 
17680 \family roman
17681
17682 \begin_inset Flex Code
17683 status collapsed
17684
17685 \begin_layout Plain Layout
17686 setspace
17687 \end_layout
17688
17689 \end_inset
17690
17691 .
17692 \end_layout
17693
17694 \begin_layout Description
17695 \begin_inset Flex Code
17696 status collapsed
17697
17698 \begin_layout Plain Layout
17699 Spellcheck
17700 \end_layout
17701
17702 \end_inset
17703
17704  [
17705 \begin_inset Flex Code
17706 status collapsed
17707
17708 \begin_layout Plain Layout
17709 0
17710 \end_layout
17711
17712 \end_inset
17713
17714 ,
17715 \begin_inset space \thinspace{}
17716 \end_inset
17717
17718
17719 \begin_inset Flex Code
17720 status collapsed
17721
17722 \begin_layout Plain Layout
17723
17724 \emph on
17725 1
17726 \end_layout
17727
17728 \end_inset
17729
17730 ] Allow spell-checking paragraphs of this style.
17731  Default is true.
17732 \end_layout
17733
17734 \begin_layout Description
17735 \begin_inset Flex Code
17736 status collapsed
17737
17738 \begin_layout Plain Layout
17739 Step
17740 \change_deleted 731793113 1604355211
17741 Master
17742 \change_inserted 731793113 1604355212
17743 Parent
17744 \change_unchanged
17745 Counter
17746 \end_layout
17747
17748 \end_inset
17749
17750  [
17751 \begin_inset Flex Code
17752 status collapsed
17753
17754 \begin_layout Plain Layout
17755
17756 \emph on
17757 0
17758 \end_layout
17759
17760 \end_inset
17761
17762 ,
17763 \begin_inset Flex Code
17764 status collapsed
17765
17766 \begin_layout Plain Layout
17767 1
17768 \end_layout
17769
17770 \end_inset
17771
17772 ] Steps the 
17773 \change_deleted 731793113 1604355214
17774 master
17775 \change_inserted 731793113 1604355216
17776 parent
17777 \change_unchanged
17778  counter of a given counter at the beginning of a new sequence of layouts.
17779  This is currently only useful when 
17780 \begin_inset Flex Code
17781 status collapsed
17782
17783 \begin_layout Plain Layout
17784 LabelType
17785 \end_layout
17786
17787 \end_inset
17788
17789  is 
17790 \begin_inset Flex Code
17791 status collapsed
17792
17793 \begin_layout Plain Layout
17794 Enumerate
17795 \end_layout
17796
17797 \end_inset
17798
17799 .
17800 \end_layout
17801
17802 \begin_layout Description
17803 \begin_inset Flex Code
17804 status collapsed
17805
17806 \begin_layout Plain Layout
17807 TextFont
17808 \end_layout
17809
17810 \end_inset
17811
17812  The font used for the text body .
17813  See 
17814 \begin_inset CommandInset ref
17815 LatexCommand ref
17816 reference "subsec:Font-description"
17817
17818 \end_inset
17819
17820 .
17821 \end_layout
17822
17823 \begin_layout Description
17824 \begin_inset Flex Code
17825 status collapsed
17826
17827 \begin_layout Plain Layout
17828 TocLevel
17829 \end_layout
17830
17831 \end_inset
17832
17833
17834 \series medium
17835  [
17836 \begin_inset Flex Code
17837 status collapsed
17838
17839 \begin_layout Plain Layout
17840
17841 \series medium
17842 int=3
17843 \end_layout
17844
17845 \end_inset
17846
17847 ]
17848 \series default
17849  The level of the style in the table of contents.
17850  This is used for automatic numbering of section headings.
17851 \end_layout
17852
17853 \begin_layout Description
17854 \begin_inset Flex Code
17855 status collapsed
17856
17857 \begin_layout Plain Layout
17858 ToggleIndent
17859 \end_layout
17860
17861 \end_inset
17862
17863  [
17864 \emph on
17865
17866 \begin_inset Flex Code
17867 status collapsed
17868
17869 \begin_layout Plain Layout
17870
17871 \emph on
17872 default
17873 \end_layout
17874
17875 \end_inset
17876
17877
17878 \emph default
17879
17880 \begin_inset Flex Code
17881 status collapsed
17882
17883 \begin_layout Plain Layout
17884 always
17885 \end_layout
17886
17887 \end_inset
17888
17889
17890 \begin_inset Flex Code
17891 status collapsed
17892
17893 \begin_layout Plain Layout
17894 never
17895 \end_layout
17896
17897 \end_inset
17898
17899 ] This tag determines whether the first line indentation of this paragraph
17900  can be toggled via the Paragraph settings dialog.
17901  If 
17902 \emph on
17903
17904 \begin_inset Flex Code
17905 status collapsed
17906
17907 \begin_layout Plain Layout
17908
17909 \emph off
17910 default
17911 \end_layout
17912
17913 \end_inset
17914
17915
17916 \emph default
17917  is set, indentation can be toggled if the document settings use 
17918 \begin_inset Quotes eld
17919 \end_inset
17920
17921 indent
17922 \begin_inset Quotes erd
17923 \end_inset
17924
17925  paragraph style, with 
17926 \begin_inset Flex Code
17927 status collapsed
17928
17929 \begin_layout Plain Layout
17930 always
17931 \end_layout
17932
17933 \end_inset
17934
17935 , indentation can always be toggled, notwithstanding the document settings,
17936  with 
17937 \begin_inset Flex Code
17938 status collapsed
17939
17940 \begin_layout Plain Layout
17941 never
17942 \end_layout
17943
17944 \end_inset
17945
17946 , indentation can never be toggled.
17947 \end_layout
17948
17949 \begin_layout Description
17950 \begin_inset Flex Code
17951 status collapsed
17952
17953 \begin_layout Plain Layout
17954 TopSep
17955 \end_layout
17956
17957 \end_inset
17958
17959  [
17960 \begin_inset Flex Code
17961 status collapsed
17962
17963 \begin_layout Plain Layout
17964 float=0
17965 \end_layout
17966
17967 \end_inset
17968
17969 ] The vertical space with which the very first of a chain of paragraphs
17970  with this style is separated from the previous paragraph.
17971  If the previous paragraph has another style, the separations are not simply
17972  added, but the maximum is taken.
17973 \end_layout
17974
17975 \begin_layout Subsection
17976 \begin_inset CommandInset label
17977 LatexCommand label
17978 name "subsec:I18n"
17979
17980 \end_inset
17981
17982 Internationalization of Paragraph Styles
17983 \end_layout
17984
17985 \begin_layout Standard
17986 \SpecialChar LyX
17987  has long supported internationalization of layout information, but, until
17988  version 2.0, this applied only to the user interface and not to, say, PDF
17989  output.
17990  Thus, French authors were forced to resort to ugly hacks if they wanted
17991  `
17992 \lang french
17993 Théorème
17994 \lang english
17995  1' instead of `Theorem 1'.
17996  Thanks to Georg Baum, that is no longer the case.
17997 \end_layout
17998
17999 \begin_layout Standard
18000 If a 
18001 \begin_inset Flex Code
18002 status collapsed
18003
18004 \begin_layout Plain Layout
18005 Style
18006 \end_layout
18007
18008 \end_inset
18009
18010  defines text that is to appear in the typeset document, it may use 
18011 \begin_inset Flex Code
18012 status collapsed
18013
18014 \begin_layout Plain Layout
18015 LangPreamble
18016 \end_layout
18017
18018 \end_inset
18019
18020  and 
18021 \begin_inset Flex Code
18022 status collapsed
18023
18024 \begin_layout Plain Layout
18025 BabelPreamble
18026 \end_layout
18027
18028 \end_inset
18029
18030  to support non-English and even multi-language documents correctly.
18031  The following excerpt (from the 
18032 \begin_inset Flex Code
18033 status collapsed
18034
18035 \begin_layout Plain Layout
18036 theorems-ams.inc
18037 \end_layout
18038
18039 \end_inset
18040
18041  file) shows how this works:
18042 \end_layout
18043
18044 \begin_layout LyX-Code
18045 Preamble
18046 \end_layout
18047
18048 \begin_deeper
18049 \begin_layout LyX-Code
18050   
18051 \backslash
18052 theoremstyle{remark}
18053 \end_layout
18054
18055 \begin_layout LyX-Code
18056   
18057 \backslash
18058 newtheorem{claim}[thm]{
18059 \backslash
18060 protect
18061 \backslash
18062 claimname}
18063 \end_layout
18064
18065 \begin_layout LyX-Code
18066 EndPreamble
18067 \end_layout
18068
18069 \begin_layout LyX-Code
18070 LangPreamble
18071 \end_layout
18072
18073 \begin_layout LyX-Code
18074   
18075 \backslash
18076 providecommand{
18077 \backslash
18078 claimname}{_(Claim)}
18079 \end_layout
18080
18081 \begin_layout LyX-Code
18082 EndLangPreamble
18083 \end_layout
18084
18085 \begin_layout LyX-Code
18086 BabelPreamble
18087 \end_layout
18088
18089 \begin_layout LyX-Code
18090     
18091 \backslash
18092 addto
18093 \backslash
18094 captions$$lang{
18095 \backslash
18096 renewcommand{
18097 \backslash
18098 claimname}{_(Claim)}}
18099 \end_layout
18100
18101 \begin_layout LyX-Code
18102 EndBabelPreamble
18103 \end_layout
18104
18105 \end_deeper
18106 \begin_layout Standard
18107 In principle, any legal \SpecialChar LaTeX
18108  may appear in the 
18109 \begin_inset Flex Code
18110 status collapsed
18111
18112 \begin_layout Plain Layout
18113 LangPreamble
18114 \end_layout
18115
18116 \end_inset
18117
18118  and 
18119 \begin_inset Flex Code
18120 status collapsed
18121
18122 \begin_layout Plain Layout
18123 BabelPreamble
18124 \end_layout
18125
18126 \end_inset
18127
18128  tags, but in practice they will typically look as they do here.
18129  The key to correct translation of the typeset text is the definition of
18130  the \SpecialChar LaTeX
18131  command 
18132 \begin_inset Flex Code
18133 status collapsed
18134
18135 \begin_layout Plain Layout
18136
18137 \backslash
18138 claimname
18139 \end_layout
18140
18141 \end_inset
18142
18143  and its use in 
18144 \begin_inset Flex Code
18145 status collapsed
18146
18147 \begin_layout Plain Layout
18148
18149 \backslash
18150 newtheorem
18151 \end_layout
18152
18153 \end_inset
18154
18155 .
18156  
18157 \end_layout
18158
18159 \begin_layout Standard
18160 The 
18161 \begin_inset Flex Code
18162 status collapsed
18163
18164 \begin_layout Plain Layout
18165 LangPreamble
18166 \end_layout
18167
18168 \end_inset
18169
18170  tag provides for internationalization based upon the overall language of
18171  the document.
18172  The contents of the tag will be included in the preamble, just as with
18173  the 
18174 \begin_inset Flex Code
18175 status collapsed
18176
18177 \begin_layout Plain Layout
18178 Preamble
18179 \end_layout
18180
18181 \end_inset
18182
18183  tag.
18184  What makes it special is the use of the 
18185 \begin_inset Quotes eld
18186 \end_inset
18187
18188 function
18189 \begin_inset Quotes erd
18190 \end_inset
18191
18192  
18193 \begin_inset Flex Code
18194 status collapsed
18195
18196 \begin_layout Plain Layout
18197 _()
18198 \end_layout
18199
18200 \end_inset
18201
18202 , which will be replaced, when \SpecialChar LyX
18203  produces \SpecialChar LaTeX
18204  output, with the translation of
18205  its argument into the document language.
18206 \end_layout
18207
18208 \begin_layout Standard
18209 The 
18210 \begin_inset Flex Code
18211 status collapsed
18212
18213 \begin_layout Plain Layout
18214 BabelPreamble
18215 \end_layout
18216
18217 \end_inset
18218
18219  tag is more complex, since it is meant to provide support for multi-language
18220  documents and so offers an interface to the 
18221 \begin_inset Flex Code
18222 status collapsed
18223
18224 \begin_layout Plain Layout
18225 babel
18226 \end_layout
18227
18228 \end_inset
18229
18230  package.
18231  Its contents will be added to the preamble once for each language that
18232  appears in the document.
18233  In this case, the argument to 
18234 \begin_inset Flex Code
18235 status collapsed
18236
18237 \begin_layout Plain Layout
18238 _()
18239 \end_layout
18240
18241 \end_inset
18242
18243  will be replaced with its translation into the language in question; the
18244  expression 
18245 \begin_inset Flex Code
18246 status collapsed
18247
18248 \begin_layout Plain Layout
18249 $$lang
18250 \end_layout
18251
18252 \end_inset
18253
18254  is replaced by the language name (as used by the babel package).
18255 \end_layout
18256
18257 \begin_layout Standard
18258 A German document that also included a French section would thus have the
18259  following in the preamble:
18260 \end_layout
18261
18262 \begin_layout LyX-Code
18263
18264 \backslash
18265 addto
18266 \backslash
18267 captionsfrench{
18268 \backslash
18269 renewcommand{
18270 \backslash
18271 claimname}{Affirmation}}
18272 \begin_inset Newline newline
18273 \end_inset
18274
18275
18276 \backslash
18277 addto
18278 \backslash
18279 captionsngerman{
18280 \backslash
18281 renewcommand{
18282 \backslash
18283 claimname}{Behauptung}}
18284 \begin_inset Newline newline
18285 \end_inset
18286
18287
18288 \backslash
18289 providecommand{
18290 \backslash
18291 claimname}{Behauptung}
18292 \end_layout
18293
18294 \begin_layout Standard
18295 \SpecialChar LaTeX
18296  and 
18297 \begin_inset Flex Code
18298 status collapsed
18299
18300 \begin_layout Plain Layout
18301 babel
18302 \end_layout
18303
18304 \end_inset
18305
18306  will then conspire to produce the correct text in the output.
18307 \end_layout
18308
18309 \begin_layout Standard
18310 One important point to note here is that the translations are provided by
18311  \SpecialChar LyX
18312  itself, through the file 
18313 \begin_inset Flex Code
18314 status collapsed
18315
18316 \begin_layout Plain Layout
18317 layouttranslations
18318 \end_layout
18319
18320 \end_inset
18321
18322 .
18323  This means, in effect, that 
18324 \begin_inset Flex Code
18325 status collapsed
18326
18327 \begin_layout Plain Layout
18328 LangPreamble
18329 \end_layout
18330
18331 \end_inset
18332
18333  and 
18334 \begin_inset Flex Code
18335 status collapsed
18336
18337 \begin_layout Plain Layout
18338 BabelPreamble
18339 \end_layout
18340
18341 \end_inset
18342
18343  are really only of use in layout files that are provided with \SpecialChar LyX
18344 , since text
18345  entered in user-created layout files will not be seen by \SpecialChar LyX
18346 's internationalizatio
18347 n routines unless the 
18348 \begin_inset Flex Code
18349 status collapsed
18350
18351 \begin_layout Plain Layout
18352 layouttranslations
18353 \end_layout
18354
18355 \end_inset
18356
18357  file is modified accordingly.
18358  That said, however, any layout created with the intention that it will
18359  be included with \SpecialChar LyX
18360  should use these tags where appropriate.
18361  Please note that the paragraph style translations provided by \SpecialChar LyX
18362  will never
18363  change with a minor update (e.
18364 \begin_inset space \thinspace{}
18365 \end_inset
18366
18367 g.
18368 \begin_inset space \space{}
18369 \end_inset
18370
18371 from version 2.1.x to 2.1.y).
18372  It is however quite likely that a major update (e.
18373 \begin_inset space \thinspace{}
18374 \end_inset
18375
18376 g.
18377 \begin_inset space \space{}
18378 \end_inset
18379
18380 from 2.0.x to 2.1.0) will introduce new translations or corrections.
18381 \end_layout
18382
18383 \begin_layout Subsection
18384 Floats
18385 \begin_inset CommandInset label
18386 LatexCommand label
18387 name "subsec:Floats"
18388
18389 \end_inset
18390
18391
18392 \end_layout
18393
18394 \begin_layout Standard
18395 It is necessary to define the floats (
18396 \begin_inset Flex Noun
18397 status collapsed
18398
18399 \begin_layout Plain Layout
18400 figure
18401 \end_layout
18402
18403 \end_inset
18404
18405
18406 \begin_inset Flex Noun
18407 status collapsed
18408
18409 \begin_layout Plain Layout
18410 table
18411 \end_layout
18412
18413 \end_inset
18414
18415 , \SpecialChar ldots
18416 ) in the text class itself.
18417  Standard floats are included in the file 
18418 \begin_inset Flex Code
18419 status collapsed
18420
18421 \begin_layout Plain Layout
18422 stdfloats.inc
18423 \end_layout
18424
18425 \end_inset
18426
18427 , so you may have to do no more than add
18428 \end_layout
18429
18430 \begin_layout LyX-Code
18431 Input stdfloats.inc
18432 \end_layout
18433
18434 \begin_layout Standard
18435 to your layout file.
18436  If you want to implement a text class that proposes some other float types
18437  (like the AGU class bundled with \SpecialChar LyX
18438 ), the information below will hopefully
18439  help you:
18440 \end_layout
18441
18442 \begin_layout Description
18443 \begin_inset Flex Code
18444 status collapsed
18445
18446 \begin_layout Plain Layout
18447 AllowedPlacement
18448 \end_layout
18449
18450 \end_inset
18451
18452  [
18453 \begin_inset Flex Code
18454 status collapsed
18455
18456 \begin_layout Plain Layout
18457 string
18458 \end_layout
18459
18460 \end_inset
18461
18462 =!htbpH] Allowed placement options for this float type.
18463  The value is a string of placement characters.
18464  Possible characters include: 
18465 \emph on
18466 h
18467 \emph default
18468  (
18469 \begin_inset Quotes eld
18470 \end_inset
18471
18472 here if possible
18473 \begin_inset Quotes erd
18474 \end_inset
18475
18476 ), 
18477 \emph on
18478 t
18479 \emph default
18480  (
18481 \begin_inset Quotes eld
18482 \end_inset
18483
18484 top of page
18485 \begin_inset Quotes erd
18486 \end_inset
18487
18488 ), 
18489 \emph on
18490 b
18491 \emph default
18492  (
18493 \begin_inset Quotes eld
18494 \end_inset
18495
18496 bottom of page
18497 \begin_inset Quotes erd
18498 \end_inset
18499
18500 ), 
18501 \emph on
18502 p
18503 \emph default
18504  (
18505 \begin_inset Quotes eld
18506 \end_inset
18507
18508 page of floats
18509 \begin_inset Quotes erd
18510 \end_inset
18511
18512 ), 
18513 \emph on
18514 H
18515 \emph default
18516  (
18517 \begin_inset Quotes eld
18518 \end_inset
18519
18520 here definitely
18521 \begin_inset Quotes erd
18522 \end_inset
18523
18524 ) and 
18525 \emph on
18526 !
18527 \emph default
18528  (
18529 \begin_inset Quotes eld
18530 \end_inset
18531
18532 ignore LaTeX rules
18533 \begin_inset Quotes erd
18534 \end_inset
18535
18536 ).
18537  The order of the characters in the string does not matter.
18538  If no placement options are allowed, use the string 
18539 \emph on
18540 none
18541 \emph default
18542 .
18543 \end_layout
18544
18545 \begin_layout Description
18546 \begin_inset Flex Code
18547 status collapsed
18548
18549 \begin_layout Plain Layout
18550 AllowsSideways
18551 \end_layout
18552
18553 \end_inset
18554
18555  [
18556 \begin_inset Flex Code
18557 status collapsed
18558
18559 \begin_layout Plain Layout
18560
18561 \emph off
18562 0
18563 \end_layout
18564
18565 \end_inset
18566
18567 ,
18568 \begin_inset space \thinspace{}
18569 \end_inset
18570
18571
18572 \emph on
18573
18574 \begin_inset Flex Code
18575 status collapsed
18576
18577 \begin_layout Plain Layout
18578
18579 \emph on
18580 1
18581 \end_layout
18582
18583 \end_inset
18584
18585
18586 \emph default
18587 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
18588 -package 
18589 \family typewriter
18590 rotfloat
18591 \family default
18592  (sidewaysfloat).
18593  Set to 
18594 \begin_inset Flex Code
18595 status collapsed
18596
18597 \begin_layout Plain Layout
18598 0
18599 \end_layout
18600
18601 \end_inset
18602
18603  if the float does not support this feature.
18604 \end_layout
18605
18606 \begin_layout Description
18607 \begin_inset Flex Code
18608 status collapsed
18609
18610 \begin_layout Plain Layout
18611 AllowsWide
18612 \end_layout
18613
18614 \end_inset
18615
18616  [
18617 \begin_inset Flex Code
18618 status collapsed
18619
18620 \begin_layout Plain Layout
18621
18622 \emph off
18623 0
18624 \end_layout
18625
18626 \end_inset
18627
18628 ,
18629 \begin_inset space \thinspace{}
18630 \end_inset
18631
18632
18633 \emph on
18634
18635 \begin_inset Flex Code
18636 status collapsed
18637
18638 \begin_layout Plain Layout
18639
18640 \emph on
18641 1
18642 \end_layout
18643
18644 \end_inset
18645
18646
18647 \emph default
18648 ] Defines whether the float has a starred variant that spans columns in
18649  a two column paragraph.
18650  Set to 
18651 \begin_inset Flex Code
18652 status collapsed
18653
18654 \begin_layout Plain Layout
18655 0
18656 \end_layout
18657
18658 \end_inset
18659
18660  if the float does not support this feature.
18661 \end_layout
18662
18663 \begin_layout Description
18664 \begin_inset Flex Code
18665 status collapsed
18666
18667 \begin_layout Plain Layout
18668 Extension
18669 \end_layout
18670
18671 \end_inset
18672
18673  [
18674 \begin_inset Flex Code
18675 status collapsed
18676
18677 \begin_layout Plain Layout
18678 string
18679 \end_layout
18680
18681 \end_inset
18682
18683 =
18684 \begin_inset Quotes erd
18685 \end_inset
18686
18687
18688 \begin_inset Quotes erd
18689 \end_inset
18690
18691 ] The file name extension of an auxiliary file for the list of figures (or
18692  whatever).
18693  \SpecialChar LaTeX
18694  writes the captions to this file.
18695 \end_layout
18696
18697 \begin_layout Description
18698 \begin_inset Flex Code
18699 status collapsed
18700
18701 \begin_layout Plain Layout
18702 GuiName
18703 \end_layout
18704
18705 \end_inset
18706
18707  [
18708 \begin_inset Flex Code
18709 status collapsed
18710
18711 \begin_layout Plain Layout
18712 string
18713 \end_layout
18714
18715 \end_inset
18716
18717 =
18718 \begin_inset Quotes erd
18719 \end_inset
18720
18721
18722 \begin_inset Quotes erd
18723 \end_inset
18724
18725 ] The string that will be used in the menus and also for the caption.
18726  This is translated to the current language if babel is used.
18727 \end_layout
18728
18729 \begin_layout Description
18730 \begin_inset Flex Code
18731 status collapsed
18732
18733 \begin_layout Plain Layout
18734 HTML*
18735 \end_layout
18736
18737 \end_inset
18738
18739  These tags control the XHTML output.
18740  See 
18741 \begin_inset CommandInset ref
18742 LatexCommand ref
18743 reference "sec:Tags-for-XHTML"
18744
18745 \end_inset
18746
18747 .
18748 \end_layout
18749
18750 \begin_layout Description
18751 \begin_inset Flex Code
18752 status collapsed
18753
18754 \begin_layout Plain Layout
18755 IsPredefined
18756 \end_layout
18757
18758 \end_inset
18759
18760  [
18761 \emph on
18762
18763 \begin_inset Flex Code
18764 status collapsed
18765
18766 \begin_layout Plain Layout
18767 0
18768 \end_layout
18769
18770 \end_inset
18771
18772
18773 \emph default
18774 ,
18775 \begin_inset space \thinspace{}
18776 \end_inset
18777
18778
18779 \begin_inset Flex Code
18780 status collapsed
18781
18782 \begin_layout Plain Layout
18783 1
18784 \end_layout
18785
18786 \end_inset
18787
18788 ] Indicates whether the float is already defined in the document class or
18789  if instead the \SpecialChar LaTeX
18790  package 
18791 \begin_inset Flex Code
18792 status collapsed
18793
18794 \begin_layout Plain Layout
18795 float
18796 \end_layout
18797
18798 \end_inset
18799
18800  needs to be loaded to define it on-the-fly.
18801  The default is 
18802 \begin_inset Flex Code
18803 status collapsed
18804
18805 \begin_layout Plain Layout
18806 0
18807 \end_layout
18808
18809 \end_inset
18810
18811 , which means: 
18812 \begin_inset Flex Code
18813 status collapsed
18814
18815 \begin_layout Plain Layout
18816 float
18817 \end_layout
18818
18819 \end_inset
18820
18821  is used.
18822  It should be set to 
18823 \begin_inset Flex Code
18824 status collapsed
18825
18826 \begin_layout Plain Layout
18827 1
18828 \end_layout
18829
18830 \end_inset
18831
18832  if the float is already defined by the \SpecialChar LaTeX
18833  document class.
18834 \end_layout
18835
18836 \begin_layout Description
18837 \begin_inset Flex Code
18838 status collapsed
18839
18840 \begin_layout Plain Layout
18841 ListCommand
18842 \end_layout
18843
18844 \end_inset
18845
18846  [
18847 \begin_inset Flex Code
18848 status collapsed
18849
18850 \begin_layout Plain Layout
18851 string
18852 \end_layout
18853
18854 \end_inset
18855
18856 =
18857 \begin_inset Quotes erd
18858 \end_inset
18859
18860
18861 \begin_inset Quotes erd
18862 \end_inset
18863
18864 ] The command used to generate a list of floats of this type; the leading
18865  `
18866 \backslash
18867 ' must be omitted.
18868  This 
18869 \emph on
18870 must
18871 \emph default
18872  be given if 
18873 \begin_inset Flex Code
18874 status collapsed
18875
18876 \begin_layout Plain Layout
18877 UsesFloatPkg
18878 \end_layout
18879
18880 \end_inset
18881
18882  is false, since there is no standard way to generate this command.
18883  It is ignored if 
18884 \begin_inset Flex Code
18885 status collapsed
18886
18887 \begin_layout Plain Layout
18888 UsesFloatPkg
18889 \end_layout
18890
18891 \end_inset
18892
18893  is true, since in that case there is a standard way to define the command.
18894 \end_layout
18895
18896 \begin_layout Description
18897 \begin_inset Flex Code
18898 status collapsed
18899
18900 \begin_layout Plain Layout
18901 ListName
18902 \end_layout
18903
18904 \end_inset
18905
18906  [
18907 \begin_inset Flex Code
18908 status collapsed
18909
18910 \begin_layout Plain Layout
18911 string
18912 \end_layout
18913
18914 \end_inset
18915
18916 =
18917 \begin_inset Quotes erd
18918 \end_inset
18919
18920
18921 \begin_inset Quotes erd
18922 \end_inset
18923
18924 ] A title for a list of floats of this kind (list of figures, tables, or
18925  whatever).
18926  It is used for the screen label within \SpecialChar LyX
18927 , it is used by \SpecialChar LaTeX
18928  for the title and
18929  it is used as the title in the XHTML output.
18930  It will be translated to the document language.
18931 \end_layout
18932
18933 \begin_layout Description
18934 \begin_inset Flex Code
18935 status collapsed
18936
18937 \begin_layout Plain Layout
18938 NumberWithin
18939 \end_layout
18940
18941 \end_inset
18942
18943  [
18944 \begin_inset Flex Code
18945 status collapsed
18946
18947 \begin_layout Plain Layout
18948 string
18949 \end_layout
18950
18951 \end_inset
18952
18953 =
18954 \begin_inset Quotes erd
18955 \end_inset
18956
18957
18958 \begin_inset Quotes erd
18959 \end_inset
18960
18961 ] This (optional) argument determines whether floats of this class will
18962  be numbered within some sectional unit of the document.
18963  For example, if 
18964 \begin_inset Flex Code
18965 status collapsed
18966
18967 \begin_layout Plain Layout
18968 NumberWithin
18969 \end_layout
18970
18971 \end_inset
18972
18973  is set to 
18974 \begin_inset Quotes eld
18975 \end_inset
18976
18977
18978 \begin_inset Flex Code
18979 status collapsed
18980
18981 \begin_layout Plain Layout
18982 chapter
18983 \end_layout
18984
18985 \end_inset
18986
18987
18988 \begin_inset Quotes erd
18989 \end_inset
18990
18991 , the floats will be numbered within chapters.
18992  
18993 \end_layout
18994
18995 \begin_layout Description
18996 \begin_inset Flex Code
18997 status collapsed
18998
18999 \begin_layout Plain Layout
19000 Placement
19001 \end_layout
19002
19003 \end_inset
19004
19005  [
19006 \begin_inset Flex Code
19007 status collapsed
19008
19009 \begin_layout Plain Layout
19010 string
19011 \end_layout
19012
19013 \end_inset
19014
19015 =
19016 \begin_inset Quotes erd
19017 \end_inset
19018
19019
19020 \begin_inset Quotes erd
19021 \end_inset
19022
19023 ] The default placement for the given class of floats.
19024  The string should be as in standard \SpecialChar LaTeX
19025
19026 \begin_inset Flex Code
19027 status collapsed
19028
19029 \begin_layout Plain Layout
19030 t
19031 \end_layout
19032
19033 \end_inset
19034
19035
19036 \begin_inset Flex Code
19037 status collapsed
19038
19039 \begin_layout Plain Layout
19040 b
19041 \end_layout
19042
19043 \end_inset
19044
19045
19046 \begin_inset Flex Code
19047 status collapsed
19048
19049 \begin_layout Plain Layout
19050 p
19051 \end_layout
19052
19053 \end_inset
19054
19055  and 
19056 \begin_inset Flex Code
19057 status collapsed
19058
19059 \begin_layout Plain Layout
19060 h
19061 \end_layout
19062
19063 \end_inset
19064
19065  for top, bottom, page, and here, respectively.
19066 \begin_inset Foot
19067 status collapsed
19068
19069 \begin_layout Plain Layout
19070 Note that the order of these letters in the string is irrelevant, like in
19071  \SpecialChar LaTeX
19072 .
19073 \end_layout
19074
19075 \end_inset
19076
19077  On top of that there is a new type, 
19078 \begin_inset Flex Code
19079 status collapsed
19080
19081 \begin_layout Plain Layout
19082 H
19083 \end_layout
19084
19085 \end_inset
19086
19087 , which does not really correspond to a float, since it means: put it 
19088 \begin_inset Quotes eld
19089 \end_inset
19090
19091 here
19092 \begin_inset Quotes erd
19093 \end_inset
19094
19095  and nowhere else.
19096  Note however that the 
19097 \begin_inset Flex Code
19098 status collapsed
19099
19100 \begin_layout Plain Layout
19101 H
19102 \end_layout
19103
19104 \end_inset
19105
19106  specifier is special and, because of implementation details, cannot be
19107  used in non-built in float types.
19108  If you do not understand what this means, just use 
19109 \begin_inset Quotes eld
19110 \end_inset
19111
19112
19113 \begin_inset Flex Code
19114 status collapsed
19115
19116 \begin_layout Plain Layout
19117 tbp
19118 \end_layout
19119
19120 \end_inset
19121
19122
19123 \begin_inset Quotes erd
19124 \end_inset
19125
19126 .
19127 \end_layout
19128
19129 \begin_layout Description
19130 \begin_inset Flex Code
19131 status collapsed
19132
19133 \begin_layout Plain Layout
19134 RefPrefix
19135 \end_layout
19136
19137 \end_inset
19138
19139  [
19140 \begin_inset Flex Code
19141 status collapsed
19142
19143 \begin_layout Plain Layout
19144 string
19145 \end_layout
19146
19147 \end_inset
19148
19149 ] The prefix to use when creating labels referring to floats of this type.
19150  This allows the use of formatted references.
19151  Note that you can remove any 
19152 \begin_inset Flex Code
19153 status collapsed
19154
19155 \begin_layout Plain Layout
19156 RefPrefix
19157 \end_layout
19158
19159 \end_inset
19160
19161  set by a copied style by using the special value 
19162 \begin_inset Quotes eld
19163 \end_inset
19164
19165 OFF
19166 \begin_inset Quotes erd
19167 \end_inset
19168
19169 , which must be all caps.
19170 \change_inserted -712698321 1565605014
19171
19172 \end_layout
19173
19174 \begin_layout Description
19175
19176 \change_inserted -712698321 1565605014
19177 \begin_inset Flex Code
19178 status collapsed
19179
19180 \begin_layout Plain Layout
19181
19182 \change_inserted -712698321 1565605014
19183 Requires
19184 \change_unchanged
19185
19186 \end_layout
19187
19188 \end_inset
19189
19190  [
19191 \begin_inset Flex Code
19192 status collapsed
19193
19194 \begin_layout Plain Layout
19195
19196 \change_inserted -712698321 1565605014
19197 string
19198 \change_unchanged
19199
19200 \end_layout
19201
19202 \end_inset
19203
19204 ] As with paragraph styles, see 
19205 \begin_inset CommandInset ref
19206 LatexCommand ref
19207 reference "subsec:Paragraph-Styles"
19208
19209 \end_inset
19210
19211 .
19212 \change_unchanged
19213
19214 \end_layout
19215
19216 \begin_layout Description
19217 \begin_inset Flex Code
19218 status collapsed
19219
19220 \begin_layout Plain Layout
19221 Style
19222 \end_layout
19223
19224 \end_inset
19225
19226  [
19227 \begin_inset Flex Code
19228 status collapsed
19229
19230 \begin_layout Plain Layout
19231 string
19232 \end_layout
19233
19234 \end_inset
19235
19236 =
19237 \begin_inset Quotes erd
19238 \end_inset
19239
19240
19241 \begin_inset Quotes erd
19242 \end_inset
19243
19244 ] The style used when defining the float using 
19245 \begin_inset Flex Code
19246 status collapsed
19247
19248 \begin_layout Plain Layout
19249
19250 \backslash
19251 newfloat
19252 \end_layout
19253
19254 \end_inset
19255
19256 .
19257 \end_layout
19258
19259 \begin_layout Description
19260 \begin_inset Flex Code
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264 Type
19265 \end_layout
19266
19267 \end_inset
19268
19269  [
19270 \begin_inset Flex Code
19271 status collapsed
19272
19273 \begin_layout Plain Layout
19274 string
19275 \end_layout
19276
19277 \end_inset
19278
19279 =
19280 \begin_inset Quotes erd
19281 \end_inset
19282
19283
19284 \begin_inset Quotes erd
19285 \end_inset
19286
19287 ] The 
19288 \begin_inset Quotes eld
19289 \end_inset
19290
19291 type
19292 \begin_inset Quotes erd
19293 \end_inset
19294
19295  of the new class of floats, like program or algorithm.
19296  After the appropriate 
19297 \begin_inset Flex Code
19298 status collapsed
19299
19300 \begin_layout Plain Layout
19301
19302 \backslash
19303 newfloat
19304 \end_layout
19305
19306 \end_inset
19307
19308 , commands such as 
19309 \begin_inset Flex Code
19310 status collapsed
19311
19312 \begin_layout Plain Layout
19313
19314 \backslash
19315 begin{program}
19316 \end_layout
19317
19318 \end_inset
19319
19320  or 
19321 \begin_inset Flex Code
19322 status collapsed
19323
19324 \begin_layout Plain Layout
19325
19326 \backslash
19327 end{algorithm*}
19328 \end_layout
19329
19330 \end_inset
19331
19332  will be available.
19333 \end_layout
19334
19335 \begin_layout Description
19336 \begin_inset Flex Code
19337 status collapsed
19338
19339 \begin_layout Plain Layout
19340 UsesFloatPkg
19341 \end_layout
19342
19343 \end_inset
19344
19345  [
19346 \begin_inset Flex Code
19347 status collapsed
19348
19349 \begin_layout Plain Layout
19350 0
19351 \end_layout
19352
19353 \end_inset
19354
19355 ,
19356 \begin_inset space \thinspace{}
19357 \end_inset
19358
19359
19360 \begin_inset Flex Code
19361 status collapsed
19362
19363 \begin_layout Plain Layout
19364
19365 \emph on
19366 1
19367 \end_layout
19368
19369 \end_inset
19370
19371 ] Specifies whether this float is defined using the \SpecialChar LaTeX
19372  package 
19373 \begin_inset Flex Code
19374 status collapsed
19375
19376 \begin_layout Plain Layout
19377 float
19378 \end_layout
19379
19380 \end_inset
19381
19382 , either by the class file, another package or on-the-fly by \SpecialChar LyX
19383  itself.
19384 \end_layout
19385
19386 \begin_layout Standard
19387 Note that defining a float with type 
19388 \begin_inset Flex Code
19389 status collapsed
19390
19391 \begin_layout Plain Layout
19392
19393 \emph on
19394 type
19395 \end_layout
19396
19397 \end_inset
19398
19399  automatically defines the corresponding counter with name 
19400 \begin_inset Flex Code
19401 status collapsed
19402
19403 \begin_layout Plain Layout
19404
19405 \emph on
19406 type
19407 \end_layout
19408
19409 \end_inset
19410
19411 .
19412 \end_layout
19413
19414 \begin_layout Subsection
19415 Flex insets and InsetLayout
19416 \begin_inset CommandInset label
19417 LatexCommand label
19418 name "subsec:Flex-insets-and"
19419
19420 \end_inset
19421
19422
19423 \end_layout
19424
19425 \begin_layout Standard
19426 Flex insets come in 
19427 \change_deleted 5863208 1594239511
19428 three
19429 \change_inserted 5863208 1594239512
19430 two
19431 \change_unchanged
19432  different kinds: 
19433 \end_layout
19434
19435 \begin_layout Itemize
19436 character style (
19437 \begin_inset Flex Code
19438 status collapsed
19439
19440 \begin_layout Plain Layout
19441 CharStyle
19442 \end_layout
19443
19444 \end_inset
19445
19446 ): These define semantic markup corresponding to such \SpecialChar LaTeX
19447  commands as 
19448 \begin_inset Flex Code
19449 status collapsed
19450
19451 \begin_layout Plain Layout
19452
19453 \backslash
19454 noun
19455 \end_layout
19456
19457 \end_inset
19458
19459  and 
19460 \begin_inset Flex Code
19461 status collapsed
19462
19463 \begin_layout Plain Layout
19464
19465 \backslash
19466 code
19467 \end_layout
19468
19469 \end_inset
19470
19471 .
19472 \end_layout
19473
19474 \begin_layout Itemize
19475 user custom (
19476 \begin_inset Flex Code
19477 status collapsed
19478
19479 \begin_layout Plain Layout
19480 Custom
19481 \end_layout
19482
19483 \end_inset
19484
19485 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
19486  code,
19487  footnote, and the like.
19488  An obvious example is an endnote inset, which is defined in the 
19489 \begin_inset Flex Code
19490 status collapsed
19491
19492 \begin_layout Plain Layout
19493 endnote
19494 \end_layout
19495
19496 \end_inset
19497
19498  module.
19499 \end_layout
19500
19501 \begin_layout Itemize
19502
19503 \change_deleted 5863208 1594239528
19504 XML elements (
19505 \begin_inset Flex Code
19506 status collapsed
19507
19508 \begin_layout Plain Layout
19509 Element
19510 \end_layout
19511
19512 \end_inset
19513
19514 ): For use with DocBook classes.
19515 \change_unchanged
19516
19517 \end_layout
19518
19519 \begin_layout Standard
19520 Flex insets are defined using the 
19521 \begin_inset Flex Code
19522 status collapsed
19523
19524 \begin_layout Plain Layout
19525 InsetLayout
19526 \end_layout
19527
19528 \end_inset
19529
19530  tag, which shall be explained in a moment.
19531 \end_layout
19532
19533 \begin_layout Standard
19534 The 
19535 \begin_inset Flex Code
19536 status collapsed
19537
19538 \begin_layout Plain Layout
19539 InsetLayout
19540 \end_layout
19541
19542 \end_inset
19543
19544  tag also serves another function: It can be used to customize the general
19545  layout of many different types of insets.
19546  Currently, 
19547 \begin_inset Flex Code
19548 status collapsed
19549
19550 \begin_layout Plain Layout
19551 InsetLayout
19552 \end_layout
19553
19554 \end_inset
19555
19556  can be used to customize the layout parameters for footnotes, marginal
19557  notes, note insets, \SpecialChar TeX
19558  code (ERT) insets, branches, listings, indexes, boxes,
19559  tables, algorithms, URLs, and captions, as well as to define Flex insets.
19560 \end_layout
19561
19562 \begin_layout Standard
19563 The 
19564 \begin_inset Flex Code
19565 status collapsed
19566
19567 \begin_layout Plain Layout
19568 InsetLayout
19569 \end_layout
19570
19571 \end_inset
19572
19573  definition must begin with a line of the form:
19574 \end_layout
19575
19576 \begin_layout LyX-Code
19577 InsetLayout <type>
19578 \end_layout
19579
19580 \begin_layout Standard
19581 Here 
19582 \begin_inset Flex Code
19583 status collapsed
19584
19585 \begin_layout Plain Layout
19586 <Type>
19587 \end_layout
19588
19589 \end_inset
19590
19591  indicates the inset whose layout is being defined, and here there are four
19592  cases.
19593 \end_layout
19594
19595 \begin_layout Enumerate
19596 The layout for a pre-existing inset is being modified.
19597  In this case, can be 
19598 \begin_inset Flex Code
19599 status collapsed
19600
19601 \begin_layout Plain Layout
19602 <Type>
19603 \end_layout
19604
19605 \end_inset
19606
19607  any one of the following: 
19608 \begin_inset Flex Code
19609 status collapsed
19610
19611 \begin_layout Plain Layout
19612 Algorithm
19613 \end_layout
19614
19615 \end_inset
19616
19617
19618 \begin_inset Flex Code
19619 status collapsed
19620
19621 \begin_layout Plain Layout
19622 Branch
19623 \end_layout
19624
19625 \end_inset
19626
19627
19628 \begin_inset Flex Code
19629 status collapsed
19630
19631 \begin_layout Plain Layout
19632 Box
19633 \end_layout
19634
19635 \end_inset
19636
19637
19638 \begin_inset Flex Code
19639 status collapsed
19640
19641 \begin_layout Plain Layout
19642 Box:shaded
19643 \end_layout
19644
19645 \end_inset
19646
19647
19648 \begin_inset Flex Code
19649 status collapsed
19650
19651 \begin_layout Plain Layout
19652 Caption:Standard
19653 \end_layout
19654
19655 \end_inset
19656
19657
19658 \begin_inset Flex Code
19659 status collapsed
19660
19661 \begin_layout Plain Layout
19662 ERT
19663 \end_layout
19664
19665 \end_inset
19666
19667
19668 \begin_inset Flex Code
19669 status collapsed
19670
19671 \begin_layout Plain Layout
19672 Figure
19673 \end_layout
19674
19675 \end_inset
19676
19677
19678 \begin_inset Flex Code
19679 status collapsed
19680
19681 \begin_layout Plain Layout
19682 Foot
19683 \end_layout
19684
19685 \end_inset
19686
19687
19688 \begin_inset Flex Code
19689 status collapsed
19690
19691 \begin_layout Plain Layout
19692 Index
19693 \end_layout
19694
19695 \end_inset
19696
19697
19698 \begin_inset Flex Code
19699 status collapsed
19700
19701 \begin_layout Plain Layout
19702 Info
19703 \end_layout
19704
19705 \end_inset
19706
19707
19708 \begin_inset Flex Code
19709 status collapsed
19710
19711 \begin_layout Plain Layout
19712 Info:menu
19713 \end_layout
19714
19715 \end_inset
19716
19717
19718 \begin_inset Flex Code
19719 status collapsed
19720
19721 \begin_layout Plain Layout
19722 Info:shortcut
19723 \end_layout
19724
19725 \end_inset
19726
19727
19728 \begin_inset Flex Code
19729 status collapsed
19730
19731 \begin_layout Plain Layout
19732 Info:shortcuts
19733 \end_layout
19734
19735 \end_inset
19736
19737
19738 \begin_inset Flex Code
19739 status collapsed
19740
19741 \begin_layout Plain Layout
19742 Listings
19743 \end_layout
19744
19745 \end_inset
19746
19747
19748 \begin_inset Flex Code
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752 Marginal
19753 \end_layout
19754
19755 \end_inset
19756
19757
19758 \begin_inset Flex Code
19759 status collapsed
19760
19761 \begin_layout Plain Layout
19762 Note:Comment
19763 \end_layout
19764
19765 \end_inset
19766
19767
19768 \begin_inset Flex Code
19769 status collapsed
19770
19771 \begin_layout Plain Layout
19772 Note:Note
19773 \end_layout
19774
19775 \end_inset
19776
19777
19778 \begin_inset Flex Code
19779 status collapsed
19780
19781 \begin_layout Plain Layout
19782 Note:Greyedout
19783 \end_layout
19784
19785 \end_inset
19786
19787
19788 \begin_inset Flex Code
19789 status collapsed
19790
19791 \begin_layout Plain Layout
19792 Table
19793 \end_layout
19794
19795 \end_inset
19796
19797 , or 
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 URL
19803 \end_layout
19804
19805 \end_inset
19806
19807 .
19808 \end_layout
19809
19810 \begin_layout Enumerate
19811 The layout for a Flex inset is being defined.
19812  In this case, 
19813 \begin_inset Flex Code
19814 status collapsed
19815
19816 \begin_layout Plain Layout
19817 <Type>
19818 \end_layout
19819
19820 \end_inset
19821
19822  must be of the form 
19823 \begin_inset Quotes eld
19824 \end_inset
19825
19826
19827 \begin_inset Flex Code
19828 status collapsed
19829
19830 \begin_layout Plain Layout
19831 Flex:<name>
19832 \end_layout
19833
19834 \end_inset
19835
19836
19837 \begin_inset Quotes erd
19838 \end_inset
19839
19840 , where 
19841 \begin_inset Flex Code
19842 status collapsed
19843
19844 \begin_layout Plain Layout
19845 name
19846 \end_layout
19847
19848 \end_inset
19849
19850  may be any valid identifier not used by a pre-existing Flex inset.
19851  The identifier may include spaces, but in that case the whole thing must
19852  be wrapped in quotes.
19853  Note that the definition of a flex inset 
19854 \emph on
19855 must 
19856 \emph default
19857 also include a 
19858 \begin_inset Flex Code
19859 status collapsed
19860
19861 \begin_layout Plain Layout
19862 LyXType
19863 \end_layout
19864
19865 \end_inset
19866
19867  entry, declaring which type of inset it defines.
19868 \end_layout
19869
19870 \begin_layout Enumerate
19871 The layout for user specific branch is being defined.
19872  In this case, 
19873 \begin_inset Flex Code
19874 status collapsed
19875
19876 \begin_layout Plain Layout
19877 <Type>
19878 \end_layout
19879
19880 \end_inset
19881
19882  must be of the form 
19883 \begin_inset Quotes eld
19884 \end_inset
19885
19886
19887 \begin_inset Flex Code
19888 status collapsed
19889
19890 \begin_layout Plain Layout
19891 Branch:<name>
19892 \end_layout
19893
19894 \end_inset
19895
19896
19897 \begin_inset Quotes erd
19898 \end_inset
19899
19900 , where 
19901 \begin_inset Flex Code
19902 status collapsed
19903
19904 \begin_layout Plain Layout
19905 name
19906 \end_layout
19907
19908 \end_inset
19909
19910  may be any valid identifier of branch defined in user's document.
19911  The identifier may include spaces, but in that case the whole thing must
19912  be wrapped in quotes.
19913  The main purpose of this feature is to allow \SpecialChar LaTeX
19914  wrapping around specific
19915  branches as user needs.
19916 \end_layout
19917
19918 \begin_layout Enumerate
19919 The layout of a user (or class) specific caption is being defined.
19920  In this case, 
19921 \begin_inset Flex Code
19922 status collapsed
19923
19924 \begin_layout Plain Layout
19925 <Type>
19926 \end_layout
19927
19928 \end_inset
19929
19930  must be of the form 
19931 \begin_inset Quotes eld
19932 \end_inset
19933
19934
19935 \begin_inset Flex Code
19936 status collapsed
19937
19938 \begin_layout Plain Layout
19939 Caption:<name>
19940 \end_layout
19941
19942 \end_inset
19943
19944
19945 \begin_inset Quotes erd
19946 \end_inset
19947
19948 , where 
19949 \begin_inset Flex Code
19950 status collapsed
19951
19952 \begin_layout Plain Layout
19953 name
19954 \end_layout
19955
19956 \end_inset
19957
19958  specifies the name of the caption as it appears in the menu.
19959  Have a look at the standard caption (
19960 \begin_inset Flex Code
19961 status collapsed
19962
19963 \begin_layout Plain Layout
19964 Caption:Standard
19965 \end_layout
19966
19967 \end_inset
19968
19969 ), the specific captions of the KOMA-Script classes (
19970 \begin_inset Flex Code
19971 status collapsed
19972
19973 \begin_layout Plain Layout
19974 Caption:Above
19975 \end_layout
19976
19977 \end_inset
19978
19979
19980 \begin_inset Flex Code
19981 status collapsed
19982
19983 \begin_layout Plain Layout
19984 Caption:Below
19985 \end_layout
19986
19987 \end_inset
19988
19989 ) or the module 
19990 \family sans
19991 Multilingual
19992 \begin_inset space ~
19993 \end_inset
19994
19995 Captions
19996 \begin_inset Newline linebreak
19997 \end_inset
19998
19999
20000 \family default
20001 (
20002 \begin_inset Flex Code
20003 status collapsed
20004
20005 \begin_layout Plain Layout
20006 Caption:Bicaption
20007 \end_layout
20008
20009 \end_inset
20010
20011 ) for applications.
20012 \end_layout
20013
20014 \begin_layout Standard
20015 The 
20016 \begin_inset Flex Code
20017 status collapsed
20018
20019 \begin_layout Plain Layout
20020 InsetLayout
20021 \end_layout
20022
20023 \end_inset
20024
20025  definition can contain the following entries:
20026 \end_layout
20027
20028 \begin_layout Description
20029 \begin_inset Flex Code
20030 status collapsed
20031
20032 \begin_layout Plain Layout
20033 AddToToc
20034 \end_layout
20035
20036 \end_inset
20037
20038  [
20039 \begin_inset Flex Code
20040 status collapsed
20041
20042 \begin_layout Plain Layout
20043 string
20044 \end_layout
20045
20046 \end_inset
20047
20048 =""] This inset will appear in the table of contents of the given type.
20049  An empty string disables.
20050  See also the OutlinerName and the IsTocCaption commands.
20051  This is only implemented for Flex insets.
20052  Default: disabled.
20053 \end_layout
20054
20055 \begin_layout Description
20056 \begin_inset Flex Code
20057 status collapsed
20058
20059 \begin_layout Plain Layout
20060 Argument
20061 \end_layout
20062
20063 \end_inset
20064
20065  [
20066 \begin_inset Flex Code
20067 status collapsed
20068
20069 \begin_layout Plain Layout
20070 int
20071 \end_layout
20072
20073 \end_inset
20074
20075 ] Defines argument number of a command\SpecialChar breakableslash
20076 environment associated with the current
20077  layout.
20078  The definition must end with 
20079 \begin_inset Flex Code
20080 status collapsed
20081
20082 \begin_layout Plain Layout
20083 EndArgument
20084 \end_layout
20085
20086 \end_inset
20087
20088 .
20089  See 
20090 \begin_inset CommandInset ref
20091 LatexCommand ref
20092 reference "subsec:Paragraph-Styles"
20093
20094 \end_inset
20095
20096  for details.
20097 \end_layout
20098
20099 \begin_layout Description
20100 \begin_inset Flex Code
20101 status collapsed
20102
20103 \begin_layout Plain Layout
20104 BabelPreamble
20105 \end_layout
20106
20107 \end_inset
20108
20109  Preamble for changing language commands; see 
20110 \begin_inset CommandInset ref
20111 LatexCommand ref
20112 reference "subsec:I18n"
20113
20114 \end_inset
20115
20116 .
20117 \end_layout
20118
20119 \begin_layout Description
20120 \begin_inset Flex Code
20121 status collapsed
20122
20123 \begin_layout Plain Layout
20124 BgColor
20125 \end_layout
20126
20127 \end_inset
20128
20129  [
20130 \begin_inset Flex Code
20131 status collapsed
20132
20133 \begin_layout Plain Layout
20134 <name>
20135 \end_layout
20136
20137 \end_inset
20138
20139 ] The color for the inset's background.
20140  See 
20141 \begin_inset CommandInset ref
20142 LatexCommand ref
20143 reference "chap:Names-of-colors"
20144
20145 \end_inset
20146
20147  for a list of the available color names.
20148 \end_layout
20149
20150 \begin_layout Description
20151 \begin_inset Flex Code
20152 status collapsed
20153
20154 \begin_layout Plain Layout
20155 ContentAsLabel
20156 \end_layout
20157
20158 \end_inset
20159
20160  [
20161 \begin_inset Flex Code
20162 status collapsed
20163
20164 \begin_layout Plain Layout
20165
20166 \emph on
20167 0
20168 \end_layout
20169
20170 \end_inset
20171
20172 ,
20173 \begin_inset space \thinspace{}
20174 \end_inset
20175
20176
20177 \begin_inset Flex Code
20178 status collapsed
20179
20180 \begin_layout Plain Layout
20181 1
20182 \end_layout
20183
20184 \end_inset
20185
20186 ] Whether to use the content of the inset as the label, when the inset is
20187  closed.
20188  Default is false.
20189 \end_layout
20190
20191 \begin_layout Description
20192 \begin_inset Flex Code
20193 status collapsed
20194
20195 \begin_layout Plain Layout
20196 CopyStyle
20197 \end_layout
20198
20199 \end_inset
20200
20201  [
20202 \begin_inset Flex Code
20203 status collapsed
20204
20205 \begin_layout Plain Layout
20206 <type>
20207 \end_layout
20208
20209 \end_inset
20210
20211 ] As with paragraph styles, see 
20212 \begin_inset CommandInset ref
20213 LatexCommand ref
20214 reference "subsec:Paragraph-Styles"
20215
20216 \end_inset
20217
20218 .
20219  Note that you need to specify the complete type, e.
20220 \begin_inset space \thinspace{}
20221 \end_inset
20222
20223 g.
20224 \begin_inset space ~
20225 \end_inset
20226
20227
20228 \begin_inset Flex Code
20229 status collapsed
20230
20231 \begin_layout Plain Layout
20232 CopyStyle Flex:<name>
20233 \end_layout
20234
20235 \end_inset
20236
20237 .
20238 \end_layout
20239
20240 \begin_layout Description
20241 \begin_inset Flex Code
20242 status collapsed
20243
20244 \begin_layout Plain Layout
20245 CustomPars
20246 \end_layout
20247
20248 \end_inset
20249
20250  [
20251 \begin_inset Flex Code
20252 status collapsed
20253
20254 \begin_layout Plain Layout
20255
20256 \emph on
20257 0
20258 \end_layout
20259
20260 \end_inset
20261
20262 ,
20263 \begin_inset space \thinspace{}
20264 \end_inset
20265
20266
20267 \begin_inset Flex Code
20268 status collapsed
20269
20270 \begin_layout Plain Layout
20271 1
20272 \end_layout
20273
20274 \end_inset
20275
20276 ] Indicates whether the user may employ the Paragraph Settings dialog to
20277  customize the paragraph.
20278 \end_layout
20279
20280 \begin_layout Description
20281 \begin_inset Flex Code
20282 status collapsed
20283
20284 \begin_layout Plain Layout
20285 Decoration
20286 \end_layout
20287
20288 \end_inset
20289
20290  can be 
20291 \begin_inset Flex Code
20292 status collapsed
20293
20294 \begin_layout Plain Layout
20295 Classic
20296 \end_layout
20297
20298 \end_inset
20299
20300
20301 \begin_inset Flex Code
20302 status collapsed
20303
20304 \begin_layout Plain Layout
20305 Minimalistic
20306 \end_layout
20307
20308 \end_inset
20309
20310 , or 
20311 \begin_inset Flex Code
20312 status collapsed
20313
20314 \begin_layout Plain Layout
20315 Conglomerate
20316 \end_layout
20317
20318 \end_inset
20319
20320 , describing the rendering style used for the inset's frame and buttons.
20321  Footnotes generally use 
20322 \begin_inset Flex Code
20323 status collapsed
20324
20325 \begin_layout Plain Layout
20326 Classic
20327 \end_layout
20328
20329 \end_inset
20330
20331 , ERT insets generally 
20332 \begin_inset Flex Code
20333 status collapsed
20334
20335 \begin_layout Plain Layout
20336 Minimalistic
20337 \end_layout
20338
20339 \end_inset
20340
20341 , and character styles 
20342 \begin_inset Flex Code
20343 status collapsed
20344
20345 \begin_layout Plain Layout
20346 Conglomerate
20347 \end_layout
20348
20349 \end_inset
20350
20351 .
20352 \end_layout
20353
20354 \begin_layout Description
20355 \begin_inset Flex Code
20356 status collapsed
20357
20358 \begin_layout Plain Layout
20359 Display
20360 \end_layout
20361
20362 \end_inset
20363
20364  [
20365 \begin_inset Flex Code
20366 status collapsed
20367
20368 \begin_layout Plain Layout
20369 0
20370 \end_layout
20371
20372 \end_inset
20373
20374 ,
20375 \emph on
20376
20377 \begin_inset space \thinspace{}
20378 \end_inset
20379
20380
20381 \emph default
20382
20383 \begin_inset Flex Code
20384 status collapsed
20385
20386 \begin_layout Plain Layout
20387
20388 \emph on
20389 1
20390 \end_layout
20391
20392 \end_inset
20393
20394 ] Only useful if 
20395 \begin_inset Flex Code
20396 status collapsed
20397
20398 \begin_layout Plain Layout
20399 LatexType
20400 \end_layout
20401
20402 \end_inset
20403
20404  is 
20405 \begin_inset Flex Code
20406 status collapsed
20407
20408 \begin_layout Plain Layout
20409 Environment
20410 \end_layout
20411
20412 \end_inset
20413
20414 .
20415  Indicates whether the environment will stand on its own in the output or
20416  will appear inline with the surrounding text.
20417  If set to false, it is supposed that the \SpecialChar LaTeX
20418  environment ignores white space
20419  (including one newline character) after the 
20420 \begin_inset Flex Code
20421 status collapsed
20422
20423 \begin_layout Plain Layout
20424
20425 \backslash
20426 begin{
20427 \emph on
20428 LatexName
20429 \emph default
20430 }
20431 \end_layout
20432
20433 \end_inset
20434
20435  and 
20436 \begin_inset Flex Code
20437 status collapsed
20438
20439 \begin_layout Plain Layout
20440
20441 \backslash
20442 end{
20443 \emph on
20444 LatexName
20445 \emph default
20446 }
20447 \end_layout
20448
20449 \end_inset
20450
20451  tags.
20452  Default is true.
20453 \change_inserted 731793113 1538674858
20454
20455 \end_layout
20456
20457 \begin_layout Description
20458
20459 \change_inserted 731793113 1538674891
20460 \begin_inset Flex Code
20461 status open
20462
20463 \begin_layout Plain Layout
20464
20465 \change_inserted 731793113 1538674863
20466 EditExternal
20467 \change_unchanged
20468
20469 \end_layout
20470
20471 \end_inset
20472
20473  [
20474 \emph on
20475 0
20476 \emph default
20477 ,1] Allow the contents of the inset to be edited externally (using whatever
20478  editor is defined for the document's output format).
20479 \change_unchanged
20480
20481 \end_layout
20482
20483 \begin_layout Description
20484 \begin_inset Flex Code
20485 status collapsed
20486
20487 \begin_layout Plain Layout
20488 End
20489 \end_layout
20490
20491 \end_inset
20492
20493  Required at the end of the 
20494 \begin_inset Flex Code
20495 status collapsed
20496
20497 \begin_layout Plain Layout
20498 InsetLayout
20499 \end_layout
20500
20501 \end_inset
20502
20503  declarations.
20504 \end_layout
20505
20506 \begin_layout Description
20507 \begin_inset Flex Code
20508 status collapsed
20509
20510 \begin_layout Plain Layout
20511 Font
20512 \end_layout
20513
20514 \end_inset
20515
20516  The font used for both the text body 
20517 \emph on
20518 and
20519 \emph default
20520  the label.
20521  See 
20522 \begin_inset CommandInset ref
20523 LatexCommand ref
20524 reference "subsec:Font-description"
20525
20526 \end_inset
20527
20528 .
20529  Note that defining this font automatically defines the 
20530 \begin_inset Flex Code
20531 status collapsed
20532
20533 \begin_layout Plain Layout
20534 LabelFont
20535 \end_layout
20536
20537 \end_inset
20538
20539  to the same value, so define this first and define 
20540 \begin_inset Flex Code
20541 status collapsed
20542
20543 \begin_layout Plain Layout
20544 LabelFont
20545 \end_layout
20546
20547 \end_inset
20548
20549  later if you want them to be different.
20550 \end_layout
20551
20552 \begin_layout Description
20553 \begin_inset Flex Code
20554 status collapsed
20555
20556 \begin_layout Plain Layout
20557 FixedWidthPreambleEncoding
20558 \end_layout
20559
20560 \end_inset
20561
20562  [
20563 \begin_inset Flex Code
20564 status collapsed
20565
20566 \begin_layout Plain Layout
20567
20568 \emph on
20569 0
20570 \end_layout
20571
20572 \end_inset
20573
20574 ,
20575 \begin_inset space \thinspace{}
20576 \end_inset
20577
20578
20579 \begin_inset Flex Code
20580 status collapsed
20581
20582 \begin_layout Plain Layout
20583 1
20584 \end_layout
20585
20586 \end_inset
20587
20588 ] Force a fixed width encoding for the translated contents of 
20589 \begin_inset Flex Code
20590 status collapsed
20591
20592 \begin_layout Plain Layout
20593 BabelPreamble
20594 \end_layout
20595
20596 \end_inset
20597
20598  and 
20599 \begin_inset Flex Code
20600 status collapsed
20601
20602 \begin_layout Plain Layout
20603 LangPreamble
20604 \end_layout
20605
20606 \end_inset
20607
20608  code generated by this layout.
20609  This is needed for special \SpecialChar LaTeX
20610 -packages like 
20611 \family typewriter
20612 listings
20613 \family default
20614  that do not work with variable width encodings such as 
20615 \family sans
20616 utf8
20617 \family default
20618 .
20619  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
20620  backends such as Xe\SpecialChar TeX
20621  or
20622  Lua\SpecialChar TeX
20623  are used.
20624 \end_layout
20625
20626 \begin_layout Description
20627 \begin_inset Flex Code
20628 status collapsed
20629
20630 \begin_layout Plain Layout
20631 ForceLocalFontSwitch
20632 \end_layout
20633
20634 \end_inset
20635
20636  [
20637 \begin_inset Flex Code
20638 status collapsed
20639
20640 \begin_layout Plain Layout
20641
20642 \emph on
20643 0
20644 \end_layout
20645
20646 \end_inset
20647
20648 ,
20649 \begin_inset space \thinspace{}
20650 \end_inset
20651
20652
20653 \begin_inset Flex Code
20654 status collapsed
20655
20656 \begin_layout Plain Layout
20657 1
20658 \end_layout
20659
20660 \end_inset
20661
20662 ] When using babel, always use a local font switch (
20663 \begin_inset Flex Code
20664 status collapsed
20665
20666 \begin_layout Plain Layout
20667
20668 \backslash
20669 foreignlanguage
20670 \end_layout
20671
20672 \end_inset
20673
20674 ), never a global one (such as 
20675 \begin_inset Flex Code
20676 status collapsed
20677
20678 \begin_layout Plain Layout
20679
20680 \backslash
20681 selectlanguage
20682 \end_layout
20683
20684 \end_inset
20685
20686 ).
20687 \end_layout
20688
20689 \begin_layout Description
20690 \begin_inset Flex Code
20691 status collapsed
20692
20693 \begin_layout Plain Layout
20694 ForceLTR
20695 \end_layout
20696
20697 \end_inset
20698
20699  [
20700 \begin_inset Flex Code
20701 status collapsed
20702
20703 \begin_layout Plain Layout
20704
20705 \emph on
20706 0
20707 \end_layout
20708
20709 \end_inset
20710
20711 ,
20712 \begin_inset space \thinspace{}
20713 \end_inset
20714
20715
20716 \begin_inset Flex Code
20717 status collapsed
20718
20719 \begin_layout Plain Layout
20720 1
20721 \end_layout
20722
20723 \end_inset
20724
20725 ] Force the 
20726 \begin_inset Quotes eld
20727 \end_inset
20728
20729 latex
20730 \begin_inset Quotes erd
20731 \end_inset
20732
20733  language, leading to Left-to-Right (Latin) output, e.
20734 \begin_inset space \thinspace{}
20735 \end_inset
20736
20737 g.
20738 \begin_inset space \space{}
20739 \end_inset
20740
20741 in \SpecialChar TeX
20742  code or URL.
20743  A kludge.
20744 \end_layout
20745
20746 \begin_layout Description
20747 \begin_inset Flex Code
20748 status collapsed
20749
20750 \begin_layout Plain Layout
20751 ForceOwnlines
20752 \end_layout
20753
20754 \end_inset
20755
20756  [
20757 \begin_inset Flex Code
20758 status collapsed
20759
20760 \begin_layout Plain Layout
20761
20762 \emph on
20763 0
20764 \end_layout
20765
20766 \end_inset
20767
20768 ,
20769 \begin_inset space \thinspace{}
20770 \end_inset
20771
20772
20773 \begin_inset Flex Code
20774 status collapsed
20775
20776 \begin_layout Plain Layout
20777 1
20778 \end_layout
20779
20780 \end_inset
20781
20782 ] Force a line break in the \SpecialChar LaTeX
20783  output before the inset starts and after the
20784  inset ends.
20785  This assures the inset itself is output on its own lines, for parsing purposes.
20786 \end_layout
20787
20788 \begin_layout Description
20789 \begin_inset Flex Code
20790 status collapsed
20791
20792 \begin_layout Plain Layout
20793 ForcePlain
20794 \end_layout
20795
20796 \end_inset
20797
20798  [
20799 \begin_inset Flex Code
20800 status collapsed
20801
20802 \begin_layout Plain Layout
20803
20804 \emph on
20805 0
20806 \end_layout
20807
20808 \end_inset
20809
20810 ,
20811 \begin_inset space \thinspace{}
20812 \end_inset
20813
20814
20815 \begin_inset Flex Code
20816 status collapsed
20817
20818 \begin_layout Plain Layout
20819 1
20820 \end_layout
20821
20822 \end_inset
20823
20824 ] Indicates whether the 
20825 \begin_inset Flex Code
20826 status collapsed
20827
20828 \begin_layout Plain Layout
20829 PlainLayout
20830 \end_layout
20831
20832 \end_inset
20833
20834  should be used or, instead, the user can change the paragraph style used
20835  in the inset.
20836  Default is false.
20837 \end_layout
20838
20839 \begin_layout Description
20840 \begin_inset Flex Code
20841 status collapsed
20842
20843 \begin_layout Plain Layout
20844 FreeSpacing
20845 \end_layout
20846
20847 \end_inset
20848
20849  [
20850 \begin_inset Flex Code
20851 status collapsed
20852
20853 \begin_layout Plain Layout
20854
20855 \emph on
20856 0
20857 \end_layout
20858
20859 \end_inset
20860
20861 ,
20862 \begin_inset space \thinspace{}
20863 \end_inset
20864
20865
20866 \begin_inset Flex Code
20867 status collapsed
20868
20869 \begin_layout Plain Layout
20870 1
20871 \end_layout
20872
20873 \end_inset
20874
20875 ] As with paragraph styles, see 
20876 \begin_inset CommandInset ref
20877 LatexCommand ref
20878 reference "subsec:Paragraph-Styles"
20879
20880 \end_inset
20881
20882 .
20883 \end_layout
20884
20885 \begin_layout Description
20886 \begin_inset Flex Code
20887 status collapsed
20888
20889 \begin_layout Plain Layout
20890 HTML*
20891 \end_layout
20892
20893 \end_inset
20894
20895  These tags control the XHTML output.
20896  See 
20897 \begin_inset CommandInset ref
20898 LatexCommand ref
20899 reference "sec:Tags-for-XHTML"
20900
20901 \end_inset
20902
20903 .
20904 \end_layout
20905
20906 \begin_layout Description
20907 \begin_inset Flex Code
20908 status collapsed
20909
20910 \begin_layout Plain Layout
20911 InToc
20912 \end_layout
20913
20914 \end_inset
20915
20916  [
20917 \begin_inset Flex Code
20918 status collapsed
20919
20920 \begin_layout Plain Layout
20921
20922 \emph on
20923 0
20924 \end_layout
20925
20926 \end_inset
20927
20928 ,
20929 \begin_inset space \thinspace{}
20930 \end_inset
20931
20932
20933 \begin_inset Flex Code
20934 status collapsed
20935
20936 \begin_layout Plain Layout
20937 1
20938 \end_layout
20939
20940 \end_inset
20941
20942 ] Whether to include the contents of this inset in the strings generated
20943  for the `Outline' pane for all table of contents, regardless of the AddToToc
20944  setting.
20945  One would not, for example, want the content of a footnote in a section
20946  header to be included in the TOC displayed in the outline, but one would
20947  normally want the content of a character style displayed.
20948  Default is false: not to include.
20949 \end_layout
20950
20951 \begin_layout Description
20952 \begin_inset Flex Code
20953 status collapsed
20954
20955 \begin_layout Plain Layout
20956 IsTocCaption
20957 \end_layout
20958
20959 \end_inset
20960
20961  [
20962 \begin_inset Flex Code
20963 status collapsed
20964
20965 \begin_layout Plain Layout
20966
20967 \emph on
20968 0
20969 \end_layout
20970
20971 \end_inset
20972
20973 ,
20974 \begin_inset space \thinspace{}
20975 \end_inset
20976
20977
20978 \begin_inset Flex Code
20979 status collapsed
20980
20981 \begin_layout Plain Layout
20982 1
20983 \end_layout
20984
20985 \end_inset
20986
20987 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20988  of its contents in its item in the table of contents.
20989  Otherwise, only the label appears.
20990 \end_layout
20991
20992 \begin_layout Description
20993 \begin_inset Flex Code
20994 status collapsed
20995
20996 \begin_layout Plain Layout
20997 KeepEmpty
20998 \end_layout
20999
21000 \end_inset
21001
21002  [
21003 \emph on
21004
21005 \begin_inset Flex Code
21006 status collapsed
21007
21008 \begin_layout Plain Layout
21009 0
21010 \end_layout
21011
21012 \end_inset
21013
21014
21015 \emph default
21016 ,
21017 \begin_inset space \thinspace{}
21018 \end_inset
21019
21020
21021 \begin_inset Flex Code
21022 status collapsed
21023
21024 \begin_layout Plain Layout
21025 1
21026 \end_layout
21027
21028 \end_inset
21029
21030 ] As with paragraph styles, see 
21031 \begin_inset CommandInset ref
21032 LatexCommand ref
21033 reference "subsec:Paragraph-Styles"
21034
21035 \end_inset
21036
21037 .
21038 \end_layout
21039
21040 \begin_layout Description
21041 \begin_inset Flex Code
21042 status collapsed
21043
21044 \begin_layout Plain Layout
21045 LabelFont
21046 \end_layout
21047
21048 \end_inset
21049
21050  The font used for the label.
21051  See 
21052 \begin_inset CommandInset ref
21053 LatexCommand ref
21054 reference "subsec:Font-description"
21055
21056 \end_inset
21057
21058 .
21059  Note that this definition can never appear before 
21060 \begin_inset Flex Code
21061 status collapsed
21062
21063 \begin_layout Plain Layout
21064 Font
21065 \end_layout
21066
21067 \end_inset
21068
21069 , lest it be ineffective.
21070 \end_layout
21071
21072 \begin_layout Description
21073 \begin_inset Flex Code
21074 status collapsed
21075
21076 \begin_layout Plain Layout
21077 LabelString
21078 \end_layout
21079
21080 \end_inset
21081
21082  [
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087 string
21088 \end_layout
21089
21090 \end_inset
21091
21092 =
21093 \begin_inset Quotes erd
21094 \end_inset
21095
21096
21097 \begin_inset Quotes erd
21098 \end_inset
21099
21100 ] What will be displayed on the button or elsewhere as the inset label.
21101  Some inset types (
21102 \begin_inset Flex Code
21103 status collapsed
21104
21105 \begin_layout Plain Layout
21106 \SpecialChar TeX
21107  code
21108 \end_layout
21109
21110 \end_inset
21111
21112  and 
21113 \begin_inset Flex Code
21114 status collapsed
21115
21116 \begin_layout Plain Layout
21117 Branch
21118 \end_layout
21119
21120 \end_inset
21121
21122 ) modify this label on the fly.
21123 \end_layout
21124
21125 \begin_layout Description
21126 \begin_inset Flex Code
21127 status collapsed
21128
21129 \begin_layout Plain Layout
21130 LangPreamble
21131 \end_layout
21132
21133 \end_inset
21134
21135  Language dependent preamble; see 
21136 \begin_inset CommandInset ref
21137 LatexCommand ref
21138 reference "subsec:I18n"
21139
21140 \end_inset
21141
21142 .
21143 \end_layout
21144
21145 \begin_layout Description
21146 \begin_inset Flex Code
21147 status collapsed
21148
21149 \begin_layout Plain Layout
21150 LatexName
21151 \end_layout
21152
21153 \end_inset
21154
21155  [
21156 \begin_inset Flex Code
21157 status collapsed
21158
21159 \begin_layout Plain Layout
21160 <name>
21161 \end_layout
21162
21163 \end_inset
21164
21165 ] The name of the corresponding \SpecialChar LaTeX
21166  stuff.
21167  Either the environment or command name.
21168 \end_layout
21169
21170 \begin_layout Description
21171 \begin_inset Flex Code
21172 status collapsed
21173
21174 \begin_layout Plain Layout
21175 LatexParam
21176 \end_layout
21177
21178 \end_inset
21179
21180  [
21181 \begin_inset Flex Code
21182 status collapsed
21183
21184 \begin_layout Plain Layout
21185 <parameter>
21186 \end_layout
21187
21188 \end_inset
21189
21190 ] The optional parameter for the corresponding 
21191 \begin_inset Flex Code
21192 status collapsed
21193
21194 \begin_layout Plain Layout
21195 LatexName
21196 \end_layout
21197
21198 \end_inset
21199
21200  stuff, including possible bracket pairs like 
21201 \begin_inset Flex Code
21202 status collapsed
21203
21204 \begin_layout Plain Layout
21205 []
21206 \end_layout
21207
21208 \end_inset
21209
21210 .
21211  This parameter cannot be changed from within \SpecialChar LyX
21212  (use 
21213 \begin_inset Flex Code
21214 status collapsed
21215
21216 \begin_layout Plain Layout
21217 Argument
21218 \end_layout
21219
21220 \end_inset
21221
21222  for customizable parameters).
21223  It will be output as is after all \SpecialChar LaTeX
21224  
21225 \begin_inset Flex Code
21226 status collapsed
21227
21228 \begin_layout Plain Layout
21229 Argument
21230 \end_layout
21231
21232 \end_inset
21233
21234 s.
21235 \end_layout
21236
21237 \begin_layout Description
21238 \begin_inset Flex Code
21239 status collapsed
21240
21241 \begin_layout Plain Layout
21242 LatexType
21243 \end_layout
21244
21245 \end_inset
21246
21247  [
21248 \begin_inset Flex Code
21249 status collapsed
21250
21251 \begin_layout Plain Layout
21252 Command, Environment, None
21253 \end_layout
21254
21255 \end_inset
21256
21257 ] How the style should be translated into \SpecialChar LaTeX
21258 .
21259 \begin_inset Foot
21260 status collapsed
21261
21262 \begin_layout Plain Layout
21263 \begin_inset Flex Code
21264 status collapsed
21265
21266 \begin_layout Plain Layout
21267 LatexType
21268 \end_layout
21269
21270 \end_inset
21271
21272  is perhaps a bit misleading, since these rules apply to SGML classes too.
21273  Visit the SGML class files for specific examples.
21274 \end_layout
21275
21276 \end_inset
21277
21278
21279 \end_layout
21280
21281 \begin_deeper
21282 \begin_layout Description
21283 \begin_inset Flex Code
21284 status collapsed
21285
21286 \begin_layout Plain Layout
21287 None
21288 \end_layout
21289
21290 \end_inset
21291
21292  means nothing special
21293 \end_layout
21294
21295 \begin_layout Description
21296 \begin_inset Flex Code
21297 status collapsed
21298
21299 \begin_layout Plain Layout
21300 Command
21301 \end_layout
21302
21303 \end_inset
21304
21305  means 
21306 \begin_inset Flex Code
21307 status collapsed
21308
21309 \begin_layout Plain Layout
21310
21311 \backslash
21312
21313 \emph on
21314 LatexName
21315 \emph default
21316 {\SpecialChar ldots
21317 }
21318 \end_layout
21319
21320 \end_inset
21321
21322
21323 \end_layout
21324
21325 \begin_layout Description
21326 \begin_inset Flex Code
21327 status collapsed
21328
21329 \begin_layout Plain Layout
21330 Environment
21331 \end_layout
21332
21333 \end_inset
21334
21335  means 
21336 \begin_inset Flex Code
21337 status collapsed
21338
21339 \begin_layout Plain Layout
21340
21341 \backslash
21342 begin{
21343 \emph on
21344 LatexName
21345 \emph default
21346 }\SpecialChar ldots
21347
21348 \backslash
21349 end{
21350 \emph on
21351 LatexName
21352 \emph default
21353 }
21354 \end_layout
21355
21356 \end_inset
21357
21358
21359 \end_layout
21360
21361 \begin_layout Standard
21362 Putting the last few things together, the \SpecialChar LaTeX
21363  output will be either: 
21364 \end_layout
21365
21366 \begin_layout LyX-Code
21367
21368 \backslash
21369 LatexName[LatexParam]{\SpecialChar ldots
21370 }
21371 \end_layout
21372
21373 \begin_layout Standard
21374 or: 
21375 \end_layout
21376
21377 \begin_layout LyX-Code
21378
21379 \backslash
21380 begin{LatexName}[LatexParam] \SpecialChar ldots
21381  
21382 \backslash
21383 end{LatexName}
21384 \end_layout
21385
21386 \begin_layout Standard
21387 depending upon the \SpecialChar LaTeX
21388  type.
21389 \end_layout
21390
21391 \end_deeper
21392 \begin_layout Description
21393 \begin_inset Flex Code
21394 status collapsed
21395
21396 \begin_layout Plain Layout
21397 LeftDelim
21398 \end_layout
21399
21400 \end_inset
21401
21402  [
21403 \begin_inset Flex Code
21404 status collapsed
21405
21406 \begin_layout Plain Layout
21407 string
21408 \end_layout
21409
21410 \end_inset
21411
21412 ] A string that is put at the beginning of the layout content.
21413  A line break in the output can be indicated by 
21414 \begin_inset Flex Code
21415 status collapsed
21416
21417 \begin_layout Plain Layout
21418 <br/>
21419 \end_layout
21420
21421 \end_inset
21422
21423 .
21424 \end_layout
21425
21426 \begin_layout Description
21427 \begin_inset Flex Code
21428 status collapsed
21429
21430 \begin_layout Plain Layout
21431 LyxType
21432 \end_layout
21433
21434 \end_inset
21435
21436  Can be 
21437 \begin_inset Flex Code
21438 status collapsed
21439
21440 \begin_layout Plain Layout
21441 charstyle
21442 \end_layout
21443
21444 \end_inset
21445
21446
21447 \begin_inset Flex Code
21448 status collapsed
21449
21450 \begin_layout Plain Layout
21451 custom
21452 \end_layout
21453
21454 \end_inset
21455
21456
21457 \begin_inset Flex Code
21458 status collapsed
21459
21460 \begin_layout Plain Layout
21461 element
21462 \end_layout
21463
21464 \end_inset
21465
21466  or 
21467 \begin_inset Flex Code
21468 status collapsed
21469
21470 \begin_layout Plain Layout
21471 end
21472 \end_layout
21473
21474 \end_inset
21475
21476  (indicating a dummy definition ending definitions of charstyles, etc).
21477  This entry is required in and is only meaningful for Flex insets.
21478  Among other things, it determines on which menu this inset will appear.
21479  Setting 
21480 \begin_inset Flex Code
21481 status collapsed
21482
21483 \begin_layout Plain Layout
21484 LyxType
21485 \end_layout
21486
21487 \end_inset
21488
21489  to 
21490 \begin_inset Flex Code
21491 status collapsed
21492
21493 \begin_layout Plain Layout
21494 charstyle
21495 \end_layout
21496
21497 \end_inset
21498
21499  will automatically set 
21500 \begin_inset Flex Code
21501 status collapsed
21502
21503 \begin_layout Plain Layout
21504 MultiPar
21505 \end_layout
21506
21507 \end_inset
21508
21509  to false and 
21510 \begin_inset Flex Code
21511 status collapsed
21512
21513 \begin_layout Plain Layout
21514 ForcePlain
21515 \end_layout
21516
21517 \end_inset
21518
21519  to true.
21520  
21521 \begin_inset Flex Code
21522 status collapsed
21523
21524 \begin_layout Plain Layout
21525 MultiPar
21526 \end_layout
21527
21528 \end_inset
21529
21530  can be set to true, or 
21531 \begin_inset Flex Code
21532 status collapsed
21533
21534 \begin_layout Plain Layout
21535 ForcePlain
21536 \end_layout
21537
21538 \end_inset
21539
21540  to false, for 
21541 \begin_inset Flex Code
21542 status collapsed
21543
21544 \begin_layout Plain Layout
21545 charstyle
21546 \end_layout
21547
21548 \end_inset
21549
21550  insets by setting it 
21551 \emph on
21552 after
21553 \emph default
21554  you set the 
21555 \begin_inset Flex Code
21556 status collapsed
21557
21558 \begin_layout Plain Layout
21559 LyxType
21560 \end_layout
21561
21562 \end_inset
21563
21564 .
21565 \change_inserted -712698321 1555575738
21566
21567 \end_layout
21568
21569 \begin_layout Description
21570
21571 \change_inserted -712698321 1555575844
21572 \begin_inset Flex Code
21573 status collapsed
21574
21575 \begin_layout Plain Layout
21576
21577 \change_inserted -712698321 1555575740
21578 MenuString
21579 \change_unchanged
21580
21581 \end_layout
21582
21583 \end_inset
21584
21585  
21586 \begin_inset Flex Code
21587 status collapsed
21588
21589 \begin_layout Plain Layout
21590
21591 \change_inserted -712698321 1555575740
21592 [string]
21593 \change_unchanged
21594
21595 \end_layout
21596
21597 \end_inset
21598
21599  A dedicated string for the menu.
21600  You can define an accelerator by appending the respective character to
21601  the string, divided by 
21602 \begin_inset Quotes eld
21603 \end_inset
21604
21605 |
21606 \begin_inset Quotes erd
21607 \end_inset
21608
21609  (e.
21610 \begin_inset space \thinspace{}
21611 \end_inset
21612
21613 g.
21614 \begin_inset space \space{}
21615 \end_inset
21616
21617
21618 \begin_inset Quotes eld
21619 \end_inset
21620
21621
21622 \begin_inset Flex Code
21623 status collapsed
21624
21625 \begin_layout Plain Layout
21626
21627 \change_inserted -712698321 1555575781
21628 My Inset|M
21629 \change_unchanged
21630
21631 \end_layout
21632
21633 \end_inset
21634
21635
21636 \begin_inset Quotes erd
21637 \end_inset
21638
21639 ).
21640  This specification is optional.
21641  If it is not given the inset name as specified in the type declaration
21642  will be used instead for the menu.
21643 \change_unchanged
21644
21645 \end_layout
21646
21647 \begin_layout Description
21648 \begin_inset Flex Code
21649 status collapsed
21650
21651 \begin_layout Plain Layout
21652 MultiPar
21653 \end_layout
21654
21655 \end_inset
21656
21657  [
21658 \begin_inset Flex Code
21659 status collapsed
21660
21661 \begin_layout Plain Layout
21662
21663 \emph on
21664 0
21665 \end_layout
21666
21667 \end_inset
21668
21669 ,
21670 \begin_inset space \thinspace{}
21671 \end_inset
21672
21673
21674 \begin_inset Flex Code
21675 status collapsed
21676
21677 \begin_layout Plain Layout
21678 1
21679 \end_layout
21680
21681 \end_inset
21682
21683 ] Whether multiple paragraphs are permitted in this inset.
21684  This will also set 
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689 CustomPars
21690 \end_layout
21691
21692 \end_inset
21693
21694  to the same value and 
21695 \begin_inset Flex Code
21696 status collapsed
21697
21698 \begin_layout Plain Layout
21699 ForcePlain
21700 \end_layout
21701
21702 \end_inset
21703
21704  to the opposite value.
21705  These can be reset to other values, if they are used 
21706 \emph on
21707 after
21708 \emph default
21709  
21710 \begin_inset Flex Code
21711 status collapsed
21712
21713 \begin_layout Plain Layout
21714 MultiPar
21715 \end_layout
21716
21717 \end_inset
21718
21719 .
21720  Default is true.
21721 \end_layout
21722
21723 \begin_layout Description
21724 \begin_inset Flex Code
21725 status collapsed
21726
21727 \begin_layout Plain Layout
21728 NeedProtect
21729 \end_layout
21730
21731 \end_inset
21732
21733  [
21734 \begin_inset Flex Code
21735 status collapsed
21736
21737 \begin_layout Plain Layout
21738
21739 \emph on
21740 0
21741 \end_layout
21742
21743 \end_inset
21744
21745 ,
21746 \begin_inset space \thinspace{}
21747 \end_inset
21748
21749
21750 \begin_inset Flex Code
21751 status collapsed
21752
21753 \begin_layout Plain Layout
21754 1
21755 \end_layout
21756
21757 \end_inset
21758
21759 ] Whether fragile commands in this inset should be 
21760 \begin_inset Flex Code
21761 status collapsed
21762
21763 \begin_layout Plain Layout
21764
21765 \backslash
21766 protect
21767 \end_layout
21768
21769 \end_inset
21770
21771 'ed.
21772  (Note: This is 
21773 \emph on
21774 not
21775 \emph default
21776  whether the command should itself be protected.) Default is false.
21777 \change_inserted -712698321 1523633958
21778
21779 \end_layout
21780
21781 \begin_layout Description
21782
21783 \change_inserted -712698321 1552395786
21784 \begin_inset Flex Code
21785 status collapsed
21786
21787 \begin_layout Plain Layout
21788
21789 \change_inserted -712698321 1523633961
21790 NeedCProtect
21791 \change_unchanged
21792
21793 \end_layout
21794
21795 \end_inset
21796
21797  [
21798 \begin_inset Flex Code
21799 status collapsed
21800
21801 \begin_layout Plain Layout
21802
21803 \change_inserted -712698321 1523633958
21804
21805 \emph on
21806 0
21807 \change_unchanged
21808
21809 \end_layout
21810
21811 \end_inset
21812
21813 ,
21814 \begin_inset space \thinspace{}
21815 \end_inset
21816
21817
21818 \begin_inset Flex Code
21819 status collapsed
21820
21821 \begin_layout Plain Layout
21822
21823 \change_inserted -712698321 1523633958
21824 1
21825 \change_unchanged
21826
21827 \end_layout
21828
21829 \end_inset
21830
21831 ] This causes macros that contain this inset to be protected with 
21832 \begin_inset Flex Code
21833 status collapsed
21834
21835 \begin_layout Plain Layout
21836
21837 \change_inserted -712698321 1523634038
21838
21839 \backslash
21840 cprotect
21841 \change_unchanged
21842
21843 \end_layout
21844
21845 \end_inset
21846
21847  (cf.
21848  package 
21849 \family sans
21850 cprotect
21851 \family default
21852 ) if necessary and thus allows (some) verbatim stuff in macros.
21853  Default is false.
21854 \end_layout
21855
21856 \begin_layout Description
21857
21858 \change_inserted -712698321 1555579651
21859 \begin_inset Flex Code
21860 status collapsed
21861
21862 \begin_layout Plain Layout
21863
21864 \change_inserted -712698321 1552395787
21865 NeedMBoxProtect
21866 \change_unchanged
21867
21868 \end_layout
21869
21870 \end_inset
21871
21872  [
21873 \begin_inset Flex Code
21874 status collapsed
21875
21876 \begin_layout Plain Layout
21877
21878 \change_inserted -712698321 1552395787
21879
21880 \emph on
21881 0
21882 \change_unchanged
21883
21884 \end_layout
21885
21886 \end_inset
21887
21888 ,
21889 \begin_inset space \thinspace{}
21890 \end_inset
21891
21892
21893 \begin_inset Flex Code
21894 status collapsed
21895
21896 \begin_layout Plain Layout
21897
21898 \change_inserted -712698321 1552395787
21899 1
21900 \change_unchanged
21901
21902 \end_layout
21903
21904 \end_inset
21905
21906 ] Whether specific commands in this inset (such as 
21907 \begin_inset Flex Code
21908 status collapsed
21909
21910 \begin_layout Plain Layout
21911
21912 \change_inserted -712698321 1552395787
21913
21914 \backslash
21915 cite
21916 \change_unchanged
21917
21918 \end_layout
21919
21920 \end_inset
21921
21922  and 
21923 \begin_inset Flex Code
21924 status collapsed
21925
21926 \begin_layout Plain Layout
21927
21928 \change_inserted -712698321 1552395787
21929
21930 \backslash
21931 ref
21932 \change_unchanged
21933
21934 \end_layout
21935
21936 \end_inset
21937
21938 ) should be protected in an 
21939 \begin_inset Flex Code
21940 status collapsed
21941
21942 \begin_layout Plain Layout
21943
21944 \change_inserted -712698321 1552395787
21945
21946 \backslash
21947 mbox
21948 \change_unchanged
21949
21950 \end_layout
21951
21952 \end_inset
21953
21954 .
21955  This is particularly needed for insets that draw on 
21956 \family sans
21957 ulem
21958 \family default
21959  or 
21960 \family sans
21961 soul
21962 \family default
21963  commands which parse their content in complex ways.
21964  Default is false.
21965 \end_layout
21966
21967 \begin_layout Description
21968
21969 \change_inserted -712698321 1555579742
21970 \begin_inset Flex Code
21971 status collapsed
21972
21973 \begin_layout Plain Layout
21974
21975 \change_inserted -712698321 1555579658
21976 NewlineCmd
21977 \change_unchanged
21978
21979 \end_layout
21980
21981 \end_inset
21982
21983  
21984 \begin_inset Flex Code
21985 status collapsed
21986
21987 \begin_layout Plain Layout
21988
21989 \change_inserted -712698321 1555579651
21990 [string]
21991 \change_unchanged
21992
21993 \end_layout
21994
21995 \end_inset
21996
21997  Option to define a different command (from the default 
21998 \begin_inset Flex Code
21999 status collapsed
22000
22001 \begin_layout Plain Layout
22002
22003 \change_inserted -712698321 1555579742
22004
22005 \backslash
22006
22007 \backslash
22008
22009 \change_unchanged
22010
22011 \end_layout
22012
22013 \end_inset
22014
22015 ) to be used for line breaks.
22016  The initial backslash must not be specified.
22017 \change_unchanged
22018
22019 \end_layout
22020
22021 \begin_layout Description
22022 \begin_inset Flex Code
22023 status collapsed
22024
22025 \begin_layout Plain Layout
22026 NoInsetLayout
22027 \end_layout
22028
22029 \end_inset
22030
22031  [
22032 \begin_inset Flex Code
22033 status collapsed
22034
22035 \begin_layout Plain Layout
22036 <layout>
22037 \end_layout
22038
22039 \end_inset
22040
22041 ] Deletes an existing 
22042 \begin_inset Flex Code
22043 status collapsed
22044
22045 \begin_layout Plain Layout
22046 InsetLayout
22047 \end_layout
22048
22049 \end_inset
22050
22051 .
22052 \end_layout
22053
22054 \begin_layout Description
22055 \begin_inset Flex Code
22056 status collapsed
22057
22058 \begin_layout Plain Layout
22059 ObsoletedBy
22060 \end_layout
22061
22062 \end_inset
22063
22064  [
22065 \begin_inset Flex Code
22066 status collapsed
22067
22068 \begin_layout Plain Layout
22069 <layout>
22070 \end_layout
22071
22072 \end_inset
22073
22074 ] Name of an 
22075 \begin_inset Flex Code
22076 status collapsed
22077
22078 \begin_layout Plain Layout
22079 InsetLayout
22080 \end_layout
22081
22082 \end_inset
22083
22084  that has replaced this 
22085 \begin_inset Flex Code
22086 status collapsed
22087
22088 \begin_layout Plain Layout
22089 InsetLayout
22090 \end_layout
22091
22092 \end_inset
22093
22094 .
22095  This is used to rename an 
22096 \begin_inset Flex Code
22097 status collapsed
22098
22099 \begin_layout Plain Layout
22100 InsetLayout
22101 \end_layout
22102
22103 \end_inset
22104
22105 , while keeping backward compatibility.
22106 \change_inserted -712698321 1559491850
22107
22108 \end_layout
22109
22110 \begin_layout Description
22111
22112 \change_inserted -712698321 1559492002
22113 \begin_inset Flex Code
22114 status collapsed
22115
22116 \begin_layout Plain Layout
22117
22118 \change_inserted -712698321 1559491854
22119 ParbreakIgnored
22120 \change_unchanged
22121
22122 \end_layout
22123
22124 \end_inset
22125
22126  [
22127 \begin_inset Flex Code
22128 status collapsed
22129
22130 \begin_layout Plain Layout
22131
22132 \change_inserted -712698321 1559491850
22133
22134 \emph on
22135 0
22136 \change_unchanged
22137
22138 \end_layout
22139
22140 \end_inset
22141
22142 ,
22143 \begin_inset space \thinspace{}
22144 \end_inset
22145
22146
22147 \begin_inset Flex Code
22148 status collapsed
22149
22150 \begin_layout Plain Layout
22151
22152 \change_inserted -712698321 1559491850
22153 1
22154 \change_unchanged
22155
22156 \end_layout
22157
22158 \end_inset
22159
22160 ] If this is set to 
22161 \begin_inset Flex Code
22162 status collapsed
22163
22164 \begin_layout Plain Layout
22165
22166 \change_inserted -712698321 1559491881
22167 1
22168 \change_unchanged
22169
22170 \end_layout
22171
22172 \end_inset
22173
22174 , paragraph breaks will be ignored in the output.
22175  This might be useful for insets where the content should be alignable on
22176  different lines only in the \SpecialChar LyX
22177  workarea, without any effect in the output.
22178 \change_unchanged
22179
22180 \end_layout
22181
22182 \begin_layout Description
22183 \begin_inset Flex Code
22184 status collapsed
22185
22186 \begin_layout Plain Layout
22187 ParbreakIsNewline
22188 \end_layout
22189
22190 \end_inset
22191
22192  [
22193 \begin_inset Flex Code
22194 status collapsed
22195
22196 \begin_layout Plain Layout
22197
22198 \emph on
22199 0
22200 \end_layout
22201
22202 \end_inset
22203
22204 ,
22205 \begin_inset space \thinspace{}
22206 \end_inset
22207
22208
22209 \begin_inset Flex Code
22210 status collapsed
22211
22212 \begin_layout Plain Layout
22213 1
22214 \end_layout
22215
22216 \end_inset
22217
22218 ] As with paragraph styles, see 
22219 \begin_inset CommandInset ref
22220 LatexCommand ref
22221 reference "subsec:Paragraph-Styles"
22222
22223 \end_inset
22224
22225 .
22226  Default is false.
22227 \end_layout
22228
22229 \begin_layout Description
22230 \begin_inset Flex Code
22231 status collapsed
22232
22233 \begin_layout Plain Layout
22234 PassThru
22235 \end_layout
22236
22237 \end_inset
22238
22239  [
22240 \begin_inset Flex Code
22241 status collapsed
22242
22243 \begin_layout Plain Layout
22244
22245 \emph on
22246 0
22247 \end_layout
22248
22249 \end_inset
22250
22251 ,
22252 \begin_inset space \thinspace{}
22253 \end_inset
22254
22255
22256 \begin_inset Flex Code
22257 status collapsed
22258
22259 \begin_layout Plain Layout
22260 1
22261 \end_layout
22262
22263 \end_inset
22264
22265 ] As with paragraph styles, see 
22266 \begin_inset CommandInset ref
22267 LatexCommand ref
22268 reference "subsec:Paragraph-Styles"
22269
22270 \end_inset
22271
22272 .
22273  Default is false.
22274 \end_layout
22275
22276 \begin_layout Description
22277 \begin_inset Flex Code
22278 status collapsed
22279
22280 \begin_layout Plain Layout
22281 Preamble
22282 \end_layout
22283
22284 \end_inset
22285
22286  As with paragraph styles, see 
22287 \begin_inset CommandInset ref
22288 LatexCommand ref
22289 reference "subsec:Paragraph-Styles"
22290
22291 \end_inset
22292
22293 .
22294 \end_layout
22295
22296 \begin_layout Description
22297 \begin_inset Flex Code
22298 status collapsed
22299
22300 \begin_layout Plain Layout
22301 RefPrefix
22302 \end_layout
22303
22304 \end_inset
22305
22306  [
22307 \begin_inset Flex Code
22308 status collapsed
22309
22310 \begin_layout Plain Layout
22311 string
22312 \end_layout
22313
22314 \end_inset
22315
22316 ] The prefix to use when creating labels referring to insets of this type.
22317  This allows the use of formatted references.
22318 \end_layout
22319
22320 \begin_layout Description
22321 \begin_inset Flex Code
22322 status collapsed
22323
22324 \begin_layout Plain Layout
22325 Requires
22326 \end_layout
22327
22328 \end_inset
22329
22330  [
22331 \begin_inset Flex Code
22332 status collapsed
22333
22334 \begin_layout Plain Layout
22335 string
22336 \end_layout
22337
22338 \end_inset
22339
22340 ] As with paragraph styles, see 
22341 \begin_inset CommandInset ref
22342 LatexCommand ref
22343 reference "subsec:Paragraph-Styles"
22344
22345 \end_inset
22346
22347 .
22348 \end_layout
22349
22350 \begin_layout Description
22351 \begin_inset Flex Code
22352 status collapsed
22353
22354 \begin_layout Plain Layout
22355 ResetArgs
22356 \end_layout
22357
22358 \end_inset
22359
22360  [
22361 \begin_inset Flex Code
22362 status collapsed
22363
22364 \begin_layout Plain Layout
22365
22366 \emph on
22367 0
22368 \end_layout
22369
22370 \end_inset
22371
22372 ,
22373 \begin_inset space \thinspace{}
22374 \end_inset
22375
22376
22377 \begin_inset Flex Code
22378 status collapsed
22379
22380 \begin_layout Plain Layout
22381 1
22382 \end_layout
22383
22384 \end_inset
22385
22386 ] Resets the \SpecialChar LaTeX
22387  arguments of this layout (as defined via the 
22388 \begin_inset Flex Code
22389 status collapsed
22390
22391 \begin_layout Plain Layout
22392 Argument
22393 \end_layout
22394
22395 \end_inset
22396
22397  tag).
22398  This is useful if you have copied a style via 
22399 \begin_inset Flex Code
22400 status collapsed
22401
22402 \begin_layout Plain Layout
22403 CopyStyle
22404 \end_layout
22405
22406 \end_inset
22407
22408 , but you do not want to inherit its (required and optional) arguments.
22409 \end_layout
22410
22411 \begin_layout Description
22412 \begin_inset Flex Code
22413 status collapsed
22414
22415 \begin_layout Plain Layout
22416 ResetsFont
22417 \end_layout
22418
22419 \end_inset
22420
22421  [
22422 \begin_inset Flex Code
22423 status collapsed
22424
22425 \begin_layout Plain Layout
22426
22427 \emph on
22428 0
22429 \end_layout
22430
22431 \end_inset
22432
22433 ,
22434 \begin_inset space \thinspace{}
22435 \end_inset
22436
22437
22438 \begin_inset Flex Code
22439 status collapsed
22440
22441 \begin_layout Plain Layout
22442 1
22443 \end_layout
22444
22445 \end_inset
22446
22447
22448 \change_inserted -712698321 1597733473
22449 If 
22450 \begin_inset Flex Code
22451 status collapsed
22452
22453 \begin_layout Plain Layout
22454
22455 \change_inserted -712698321 1597732178
22456 1
22457 \change_unchanged
22458
22459 \end_layout
22460
22461 \end_inset
22462
22463 , font changes are redone inside the respective inset (in the output) even
22464  if the inset itself is in the context of this font changes (e.
22465 \begin_inset space \thinspace{}
22466 \end_inset
22467
22468 g., 
22469 \begin_inset Flex Code
22470 status collapsed
22471
22472 \begin_layout Plain Layout
22473
22474 \change_inserted -712698321 1597733683
22475
22476 \backslash
22477 textbf{Sourrounding text 
22478 \backslash
22479 myinset{
22480 \backslash
22481 textbf{content}}\SpecialChar ldots
22482 }
22483 \change_unchanged
22484
22485 \end_layout
22486
22487 \end_inset
22488
22489  rather than 
22490 \begin_inset Flex Code
22491 status collapsed
22492
22493 \begin_layout Plain Layout
22494
22495 \change_inserted -712698321 1597733686
22496
22497 \backslash
22498 textbf{Sourrounding text 
22499 \backslash
22500 myinset{content}\SpecialChar ldots
22501 }
22502 \change_unchanged
22503
22504 \end_layout
22505
22506 \end_inset
22507
22508 .
22509  Setting this makes sense for commands that internally reset font settings
22510  (e.
22511 \begin_inset space \thinspace{}
22512 \end_inset
22513
22514 g., footnotes).
22515  Note that wrongly setting this might lead to unwanted result (e.
22516 \begin_inset space \thinspace{}
22517 \end_inset
22518
22519 g., with 
22520 \begin_inset Flex Code
22521 status collapsed
22522
22523 \begin_layout Plain Layout
22524
22525 \change_inserted -712698321 1597733688
22526
22527 \backslash
22528 emph{Sourrounding text 
22529 \backslash
22530 myinset{
22531 \backslash
22532 emph{content}}\SpecialChar ldots
22533 }
22534 \change_unchanged
22535
22536 \end_layout
22537
22538 \end_inset
22539
22540 , content is upright, as 
22541 \begin_inset Flex Code
22542 status collapsed
22543
22544 \begin_layout Plain Layout
22545
22546 \change_inserted -712698321 1597733278
22547
22548 \backslash
22549 emph
22550 \change_unchanged
22551
22552 \end_layout
22553
22554 \end_inset
22555
22556  toggles.
22557  
22558 \change_deleted -712698321 1597733283
22559 Whether this inset should use the font of its surrounding environment or
22560  uses its own.
22561  
22562 \change_unchanged
22563 Default is 
22564 \change_deleted -712698321 1597733290
22565 false
22566 \change_inserted -712698321 1597733290
22567
22568 \begin_inset Flex Code
22569 status collapsed
22570
22571 \begin_layout Plain Layout
22572
22573 \change_inserted -712698321 1597733292
22574 0
22575 \change_unchanged
22576
22577 \end_layout
22578
22579 \end_inset
22580
22581
22582 \change_unchanged
22583
22584 \change_deleted -712698321 1597733327
22585 use the font of the surrounding environment
22586 \change_inserted -712698321 1597733343
22587 font changes are not redone inside the inset
22588 \change_unchanged
22589 .
22590 \end_layout
22591
22592 \begin_layout Description
22593 \begin_inset Flex Code
22594 status collapsed
22595
22596 \begin_layout Plain Layout
22597 RightDelim
22598 \end_layout
22599
22600 \end_inset
22601
22602  [
22603 \begin_inset Flex Code
22604 status collapsed
22605
22606 \begin_layout Plain Layout
22607 string
22608 \end_layout
22609
22610 \end_inset
22611
22612 ] A string that is put at the end of the layout content.
22613  A line break in the output can be indicated by 
22614 \begin_inset Flex Code
22615 status collapsed
22616
22617 \begin_layout Plain Layout
22618 <br/>
22619 \end_layout
22620
22621 \end_inset
22622
22623 .
22624 \end_layout
22625
22626 \begin_layout Description
22627 \begin_inset Flex Code
22628 status collapsed
22629
22630 \begin_layout Plain Layout
22631 Spellcheck
22632 \end_layout
22633
22634 \end_inset
22635
22636  [
22637 \begin_inset Flex Code
22638 status collapsed
22639
22640 \begin_layout Plain Layout
22641 0
22642 \end_layout
22643
22644 \end_inset
22645
22646 ,
22647 \begin_inset space \thinspace{}
22648 \end_inset
22649
22650
22651 \begin_inset Flex Code
22652 status collapsed
22653
22654 \begin_layout Plain Layout
22655
22656 \emph on
22657 1
22658 \end_layout
22659
22660 \end_inset
22661
22662 ] Allow spell-checking the contents of this inset.
22663  Default is true.
22664 \end_layout
22665
22666 \begin_layout Subsection
22667 Counters
22668 \begin_inset CommandInset label
22669 LatexCommand label
22670 name "subsec:Counters"
22671
22672 \end_inset
22673
22674
22675 \end_layout
22676
22677 \begin_layout Standard
22678 It is necessary to define the counters (
22679 \begin_inset Flex Noun
22680 status collapsed
22681
22682 \begin_layout Plain Layout
22683 chapter
22684 \end_layout
22685
22686 \end_inset
22687
22688
22689 \begin_inset Flex Noun
22690 status collapsed
22691
22692 \begin_layout Plain Layout
22693 figure
22694 \end_layout
22695
22696 \end_inset
22697
22698 , \SpecialChar ldots
22699 ) in the text class itself.
22700  The standard counters are defined in the file 
22701 \begin_inset Flex Code
22702 status collapsed
22703
22704 \begin_layout Plain Layout
22705 stdcounters.inc
22706 \end_layout
22707
22708 \end_inset
22709
22710 , so you may have to do no more than add
22711 \end_layout
22712
22713 \begin_layout LyX-Code
22714 Input stdcounters.inc
22715 \end_layout
22716
22717 \begin_layout Standard
22718 to your layout file to get them to work.
22719  But if you want to define custom counters, then you can do so.
22720  The counter declaration must begin with:
22721 \end_layout
22722
22723 \begin_layout LyX-Code
22724 Counter CounterName
22725 \end_layout
22726
22727 \begin_layout Standard
22728 where of course `
22729 \begin_inset Flex Code
22730 status collapsed
22731
22732 \begin_layout Plain Layout
22733 CounterName
22734 \end_layout
22735
22736 \end_inset
22737
22738 ' is replaced by the name of the counter.
22739  And it must end with 
22740 \begin_inset Quotes eld
22741 \end_inset
22742
22743
22744 \begin_inset Flex Code
22745 status collapsed
22746
22747 \begin_layout Plain Layout
22748 End
22749 \end_layout
22750
22751 \end_inset
22752
22753
22754 \begin_inset Quotes erd
22755 \end_inset
22756
22757 .
22758  The following parameters can also be used:
22759 \end_layout
22760
22761 \begin_layout Description
22762 \begin_inset Flex Code
22763 status collapsed
22764
22765 \begin_layout Plain Layout
22766 InitialValue
22767 \end_layout
22768
22769 \end_inset
22770
22771  [
22772 \begin_inset Flex Code
22773 status collapsed
22774
22775 \begin_layout Plain Layout
22776 int=1
22777 \end_layout
22778
22779 \end_inset
22780
22781 ] Sets the initial value for the counter, to which it will be reset whenever
22782  that happens.
22783  Normally, one will want the default, 1.
22784 \end_layout
22785
22786 \begin_layout Description
22787 \begin_inset Flex Code
22788 status collapsed
22789
22790 \begin_layout Plain Layout
22791 LabelString
22792 \end_layout
22793
22794 \end_inset
22795
22796  [
22797 \begin_inset Flex Code
22798 status collapsed
22799
22800 \begin_layout Plain Layout
22801 string
22802 \end_layout
22803
22804 \end_inset
22805
22806 =
22807 \begin_inset Quotes erd
22808 \end_inset
22809
22810
22811 \begin_inset Quotes erd
22812 \end_inset
22813
22814 ] When defined, this string defines how the counter is displayed.
22815  Setting this value sets 
22816 \begin_inset Flex Code
22817 status collapsed
22818
22819 \begin_layout Plain Layout
22820 LabelStringAppendix
22821 \end_layout
22822
22823 \end_inset
22824
22825  to the same value.
22826  The following special constructs can be used in the string:
22827 \end_layout
22828
22829 \begin_deeper
22830 \begin_layout Itemize
22831 \begin_inset Flex Code
22832 status collapsed
22833
22834 \begin_layout Plain Layout
22835
22836 \backslash
22837 thecounter
22838 \end_layout
22839
22840 \end_inset
22841
22842  will be replaced by the expansion of the 
22843 \begin_inset Flex Code
22844 status collapsed
22845
22846 \begin_layout Plain Layout
22847 LabelString
22848 \end_layout
22849
22850 \end_inset
22851
22852  (or 
22853 \begin_inset Flex Code
22854 status collapsed
22855
22856 \begin_layout Plain Layout
22857 LabelStringAppendix
22858 \end_layout
22859
22860 \end_inset
22861
22862 ) of the counter 
22863 \begin_inset Flex Code
22864 status collapsed
22865
22866 \begin_layout Plain Layout
22867 counter
22868 \end_layout
22869
22870 \end_inset
22871
22872 .
22873  
22874 \end_layout
22875
22876 \begin_layout Itemize
22877 counter values can be expressed using \SpecialChar LaTeX
22878 -like macros
22879 \begin_inset Newline newline
22880 \end_inset
22881
22882
22883 \begin_inset Flex Code
22884 status collapsed
22885
22886 \begin_layout Plain Layout
22887
22888 \backslash
22889
22890 \emph on
22891 numbertype
22892 \emph default
22893 {
22894 \emph on
22895 counter
22896 \emph default
22897 }
22898 \end_layout
22899
22900 \end_inset
22901
22902 , where 
22903 \begin_inset Flex Code
22904 status collapsed
22905
22906 \begin_layout Plain Layout
22907
22908 \emph on
22909 numbertype
22910 \end_layout
22911
22912 \end_inset
22913
22914  can be:
22915 \begin_inset Foot
22916 status collapsed
22917
22918 \begin_layout Plain Layout
22919
22920 \family roman
22921 \series medium
22922 \shape up
22923 \size normal
22924 \emph off
22925 \bar no
22926 \noun off
22927 \color none
22928 Actually, the situation is a bit more complicated: any
22929 \family default
22930 \series default
22931 \shape default
22932 \emph default
22933 \bar default
22934  
22935 \size default
22936 \emph on
22937 \noun default
22938 \color inherit
22939 numbertype
22940 \family roman
22941 \series medium
22942 \shape up
22943 \size normal
22944 \emph off
22945 \bar no
22946 \noun off
22947  other than those described below will produce arabic numerals.
22948  It would not be surprising to see this change in the future.
22949 \end_layout
22950
22951 \end_inset
22952
22953  
22954 \begin_inset Flex Code
22955 status collapsed
22956
22957 \begin_layout Plain Layout
22958 arabic
22959 \end_layout
22960
22961 \end_inset
22962
22963 : 1, 2, 3,\SpecialChar ldots
22964
22965 \begin_inset Flex Code
22966 status collapsed
22967
22968 \begin_layout Plain Layout
22969 alph
22970 \end_layout
22971
22972 \end_inset
22973
22974  for lower-case letters: a, b, c, \SpecialChar ldots
22975
22976 \begin_inset Flex Code
22977 status collapsed
22978
22979 \begin_layout Plain Layout
22980 Alph
22981 \end_layout
22982
22983 \end_inset
22984
22985  for upper-case letters: A, B, C, \SpecialChar ldots
22986
22987 \begin_inset Flex Code
22988 status collapsed
22989
22990 \begin_layout Plain Layout
22991 roman
22992 \end_layout
22993
22994 \end_inset
22995
22996  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
22997
22998 \begin_inset Flex Code
22999 status collapsed
23000
23001 \begin_layout Plain Layout
23002 Roman
23003 \end_layout
23004
23005 \end_inset
23006
23007  for upper-case roman numerals: I, II, III\SpecialChar ldots
23008
23009 \begin_inset Flex Code
23010 status collapsed
23011
23012 \begin_layout Plain Layout
23013 hebrew
23014 \end_layout
23015
23016 \end_inset
23017
23018  for hebrew numerals.
23019 \end_layout
23020
23021 \end_deeper
23022 \begin_layout Standard
23023 If LabelString is not defined, a default value is constructed as follows:
23024  if the counter has a 
23025 \change_deleted 731793113 1604355218
23026 master
23027 \change_inserted 731793113 1604355221
23028 parent
23029 \change_unchanged
23030  counter 
23031 \begin_inset Flex Code
23032 status collapsed
23033
23034 \begin_layout Plain Layout
23035
23036 \change_deleted 731793113 1604355223
23037 master
23038 \change_inserted 731793113 1604355226
23039 parent
23040 \change_unchanged
23041
23042 \end_layout
23043
23044 \end_inset
23045
23046  (defined via 
23047 \begin_inset Flex Code
23048 status collapsed
23049
23050 \begin_layout Plain Layout
23051 Within
23052 \end_layout
23053
23054 \end_inset
23055
23056 ), the string
23057 \begin_inset Newline newline
23058 \end_inset
23059
23060
23061 \begin_inset Flex Code
23062 status collapsed
23063
23064 \begin_layout Plain Layout
23065
23066 \backslash
23067 the
23068 \change_inserted 731793113 1604355228
23069 parent
23070 \change_deleted 731793113 1604355230
23071 master
23072 \change_unchanged
23073 .
23074 \backslash
23075 arabic{counter}
23076 \end_layout
23077
23078 \end_inset
23079
23080  is used; otherwise the string 
23081 \begin_inset Flex Code
23082 status collapsed
23083
23084 \begin_layout Plain Layout
23085
23086 \backslash
23087 arabic{counter}
23088 \end_layout
23089
23090 \end_inset
23091
23092  is used.
23093 \end_layout
23094
23095 \begin_layout Description
23096 \begin_inset Flex Code
23097 status collapsed
23098
23099 \begin_layout Plain Layout
23100 LabelStringAppendix
23101 \end_layout
23102
23103 \end_inset
23104
23105  [
23106 \begin_inset Flex Code
23107 status collapsed
23108
23109 \begin_layout Plain Layout
23110 string
23111 \end_layout
23112
23113 \end_inset
23114
23115
23116 \begin_inset Quotes eld
23117 \end_inset
23118
23119
23120 \begin_inset Quotes erd
23121 \end_inset
23122
23123 ] Same as 
23124 \begin_inset Flex Code
23125 status collapsed
23126
23127 \begin_layout Plain Layout
23128 LabelString
23129 \end_layout
23130
23131 \end_inset
23132
23133 , but for use in the Appendix.
23134 \change_inserted -584632292 1607202551
23135
23136 \end_layout
23137
23138 \begin_layout Description
23139
23140 \change_inserted -584632292 1607202682
23141 \begin_inset Flex Code
23142 status open
23143
23144 \begin_layout Plain Layout
23145 LaTeXName
23146 \end_layout
23147
23148 \end_inset
23149
23150  [
23151 \begin_inset Flex Code
23152 status open
23153
23154 \begin_layout Plain Layout
23155
23156 \change_inserted -584632292 1607202576
23157 string
23158 \change_unchanged
23159
23160 \end_layout
23161
23162 \end_inset
23163
23164  = 
23165 \begin_inset Quotes eld
23166 \end_inset
23167
23168
23169 \begin_inset Quotes erd
23170 \end_inset
23171
23172 ] The counter name as used in \SpecialChar LaTeX
23173 .
23174  (E.g., in \SpecialChar LyX
23175 , there is a counter named `theorem', but it is output to \SpecialChar LaTeX
23176  as `thm'.)
23177 \change_unchanged
23178
23179 \end_layout
23180
23181 \begin_layout Description
23182 \begin_inset Flex Code
23183 status collapsed
23184
23185 \begin_layout Plain Layout
23186 PrettyFormat
23187 \end_layout
23188
23189 \end_inset
23190
23191  [
23192 \begin_inset Flex Code
23193 status collapsed
23194
23195 \begin_layout Plain Layout
23196 string
23197 \end_layout
23198
23199 \end_inset
23200
23201 =
23202 \begin_inset Quotes erd
23203 \end_inset
23204
23205
23206 \begin_inset Quotes erd
23207 \end_inset
23208
23209 ] A format for use with formatted references to this counter.
23210  For example, one might want to have references to section numbers appear
23211  as 
23212 \begin_inset Quotes eld
23213 \end_inset
23214
23215 Section 2.4
23216 \begin_inset Quotes erd
23217 \end_inset
23218
23219 .
23220  The string should contain 
23221 \begin_inset Quotes eld
23222 \end_inset
23223
23224 ##
23225 \begin_inset Quotes erd
23226 \end_inset
23227
23228 .
23229  This will be replaced by the counter number itself.
23230  So, for sections, it would be: Section ##.
23231 \end_layout
23232
23233 \begin_layout Description
23234 \begin_inset Flex Code
23235 status collapsed
23236
23237 \begin_layout Plain Layout
23238 Within
23239 \end_layout
23240
23241 \end_inset
23242
23243  [
23244 \begin_inset Flex Code
23245 status collapsed
23246
23247 \begin_layout Plain Layout
23248 string
23249 \end_layout
23250
23251 \end_inset
23252
23253 =
23254 \begin_inset Quotes erd
23255 \end_inset
23256
23257
23258 \begin_inset Quotes erd
23259 \end_inset
23260
23261 ] If this is set to the name of another counter, the present counter will
23262  be reset every time the other one is increased.
23263  For example, 
23264 \begin_inset Flex Code
23265 status collapsed
23266
23267 \begin_layout Plain Layout
23268 subsection
23269 \end_layout
23270
23271 \end_inset
23272
23273  is numbered inside 
23274 \begin_inset Flex Code
23275 status collapsed
23276
23277 \begin_layout Plain Layout
23278 section
23279 \end_layout
23280
23281 \end_inset
23282
23283 .
23284 \end_layout
23285
23286 \begin_layout Subsection
23287 Font description
23288 \begin_inset CommandInset label
23289 LatexCommand label
23290 name "subsec:Font-description"
23291
23292 \end_inset
23293
23294
23295 \end_layout
23296
23297 \begin_layout Standard
23298 A font description looks like this:
23299 \end_layout
23300
23301 \begin_layout LyX-Code
23302 Font 
23303 \family roman
23304 \emph on
23305 or
23306 \family default
23307 \emph default
23308  LabelFont
23309 \emph on
23310  
23311 \family roman
23312 or
23313 \family default
23314 \emph default
23315  DefaultFont
23316 \end_layout
23317
23318 \begin_layout LyX-Code
23319  ...
23320 \end_layout
23321
23322 \begin_layout LyX-Code
23323 EndFont
23324 \end_layout
23325
23326 \begin_layout Standard
23327 The following commands are available:
23328 \end_layout
23329
23330 \begin_layout Description
23331 \begin_inset Flex Code
23332 status collapsed
23333
23334 \begin_layout Plain Layout
23335 Color
23336 \end_layout
23337
23338 \end_inset
23339
23340  [
23341 \change_deleted -712698321 1607682984
23342
23343 \begin_inset Flex Code
23344 status collapsed
23345
23346 \begin_layout Plain Layout
23347
23348 \emph on
23349 none
23350 \end_layout
23351
23352 \end_inset
23353
23354
23355 \begin_inset Flex Code
23356 status collapsed
23357
23358 \begin_layout Plain Layout
23359 black
23360 \end_layout
23361
23362 \end_inset
23363
23364
23365 \begin_inset Flex Code
23366 status collapsed
23367
23368 \begin_layout Plain Layout
23369 white
23370 \end_layout
23371
23372 \end_inset
23373
23374
23375 \begin_inset Flex Code
23376 status collapsed
23377
23378 \begin_layout Plain Layout
23379 red
23380 \end_layout
23381
23382 \end_inset
23383
23384
23385 \begin_inset Flex Code
23386 status collapsed
23387
23388 \begin_layout Plain Layout
23389 green
23390 \end_layout
23391
23392 \end_inset
23393
23394
23395 \begin_inset Flex Code
23396 status collapsed
23397
23398 \begin_layout Plain Layout
23399 blue
23400 \end_layout
23401
23402 \end_inset
23403
23404
23405 \begin_inset Flex Code
23406 status collapsed
23407
23408 \begin_layout Plain Layout
23409 cyan
23410 \end_layout
23411
23412 \end_inset
23413
23414
23415 \begin_inset Flex Code
23416 status collapsed
23417
23418 \begin_layout Plain Layout
23419 magenta
23420 \end_layout
23421
23422 \end_inset
23423
23424
23425 \begin_inset Flex Code
23426 status collapsed
23427
23428 \begin_layout Plain Layout
23429 yellow
23430 \end_layout
23431
23432 \end_inset
23433
23434
23435 \begin_inset Flex Code
23436 status collapsed
23437
23438 \begin_layout Plain Layout
23439 brown
23440 \end_layout
23441
23442 \end_inset
23443
23444
23445 \begin_inset Flex Code
23446 status collapsed
23447
23448 \begin_layout Plain Layout
23449 darkgray
23450 \end_layout
23451
23452 \end_inset
23453
23454
23455 \begin_inset Flex Code
23456 status collapsed
23457
23458 \begin_layout Plain Layout
23459 gray
23460 \end_layout
23461
23462 \end_inset
23463
23464
23465 \begin_inset Flex Code
23466 status collapsed
23467
23468 \begin_layout Plain Layout
23469 lightgray
23470 \end_layout
23471
23472 \end_inset
23473
23474
23475 \begin_inset Flex Code
23476 status collapsed
23477
23478 \begin_layout Plain Layout
23479 lime
23480 \end_layout
23481
23482 \end_inset
23483
23484
23485 \begin_inset Flex Code
23486 status collapsed
23487
23488 \begin_layout Plain Layout
23489 orange
23490 \end_layout
23491
23492 \end_inset
23493
23494
23495 \begin_inset Flex Code
23496 status collapsed
23497
23498 \begin_layout Plain Layout
23499 olive
23500 \end_layout
23501
23502 \end_inset
23503
23504
23505 \begin_inset Flex Code
23506 status collapsed
23507
23508 \begin_layout Plain Layout
23509 pink
23510 \end_layout
23511
23512 \end_inset
23513
23514
23515 \begin_inset Flex Code
23516 status collapsed
23517
23518 \begin_layout Plain Layout
23519 purple
23520 \end_layout
23521
23522 \end_inset
23523
23524
23525 \begin_inset Flex Code
23526 status collapsed
23527
23528 \begin_layout Plain Layout
23529 teal
23530 \end_layout
23531
23532 \end_inset
23533
23534
23535 \begin_inset Flex Code
23536 status collapsed
23537
23538 \begin_layout Plain Layout
23539 violet
23540 \end_layout
23541
23542 \end_inset
23543
23544
23545 \change_inserted -712698321 1607683139
23546
23547 \begin_inset Flex Code
23548 status collapsed
23549
23550 \begin_layout Plain Layout
23551
23552 \change_inserted -712698321 1607683135
23553 string
23554 \change_unchanged
23555
23556 \end_layout
23557
23558 \end_inset
23559
23560 ] See appendix
23561 \begin_inset space ~
23562 \end_inset
23563
23564
23565 \begin_inset CommandInset ref
23566 LatexCommand ref
23567 reference "chap:Names-of-colors"
23568 plural "false"
23569 caps "false"
23570 noprefix "false"
23571
23572 \end_inset
23573
23574  for 
23575 \change_deleted -712698321 1607683144
23576 ]
23577 \change_inserted -712698321 1607683146
23578 valid arguments.
23579 \change_unchanged
23580
23581 \end_layout
23582
23583 \begin_layout Description
23584 \begin_inset Flex Code
23585 status collapsed
23586
23587 \begin_layout Plain Layout
23588 Family
23589 \end_layout
23590
23591 \end_inset
23592
23593  [
23594 \begin_inset Flex Code
23595 status collapsed
23596
23597 \begin_layout Plain Layout
23598
23599 \emph on
23600 Roman
23601 \end_layout
23602
23603 \end_inset
23604
23605
23606 \begin_inset Flex Code
23607 status collapsed
23608
23609 \begin_layout Plain Layout
23610 Sans
23611 \end_layout
23612
23613 \end_inset
23614
23615
23616 \begin_inset Flex Code
23617 status collapsed
23618
23619 \begin_layout Plain Layout
23620 Typewriter
23621 \end_layout
23622
23623 \end_inset
23624
23625 ]
23626 \end_layout
23627
23628 \begin_layout Description
23629 \begin_inset Flex Code
23630 status collapsed
23631
23632 \begin_layout Plain Layout
23633 Misc
23634 \end_layout
23635
23636 \end_inset
23637
23638  [
23639 \begin_inset Flex Code
23640 status collapsed
23641
23642 \begin_layout Plain Layout
23643 string
23644 \end_layout
23645
23646 \end_inset
23647
23648 ] Valid arguments are: 
23649 \begin_inset Flex Code
23650 status collapsed
23651
23652 \begin_layout Plain Layout
23653 emph
23654 \end_layout
23655
23656 \end_inset
23657
23658
23659 \begin_inset Flex Code
23660 status collapsed
23661
23662 \begin_layout Plain Layout
23663 noun
23664 \end_layout
23665
23666 \end_inset
23667
23668
23669 \begin_inset Flex Code
23670 status collapsed
23671
23672 \begin_layout Plain Layout
23673 strikeout
23674 \end_layout
23675
23676 \end_inset
23677
23678
23679 \begin_inset Flex Code
23680 status collapsed
23681
23682 \begin_layout Plain Layout
23683 underbar
23684 \end_layout
23685
23686 \end_inset
23687
23688
23689 \begin_inset Flex Code
23690 status collapsed
23691
23692 \begin_layout Plain Layout
23693 uuline
23694 \end_layout
23695
23696 \end_inset
23697
23698
23699 \begin_inset Flex Code
23700 status collapsed
23701
23702 \begin_layout Plain Layout
23703 uwave
23704 \end_layout
23705
23706 \end_inset
23707
23708
23709 \begin_inset Flex Code
23710 status collapsed
23711
23712 \begin_layout Plain Layout
23713 no_emph
23714 \end_layout
23715
23716 \end_inset
23717
23718
23719 \begin_inset Flex Code
23720 status collapsed
23721
23722 \begin_layout Plain Layout
23723 no_noun
23724 \end_layout
23725
23726 \end_inset
23727
23728
23729 \begin_inset Flex Code
23730 status collapsed
23731
23732 \begin_layout Plain Layout
23733 no_strikeout
23734 \end_layout
23735
23736 \end_inset
23737
23738
23739 \begin_inset Flex Code
23740 status collapsed
23741
23742 \begin_layout Plain Layout
23743 no_bar
23744 \end_layout
23745
23746 \end_inset
23747
23748
23749 \begin_inset Flex Code
23750 status collapsed
23751
23752 \begin_layout Plain Layout
23753 no_uuline
23754 \end_layout
23755
23756 \end_inset
23757
23758  and 
23759 \begin_inset Flex Code
23760 status collapsed
23761
23762 \begin_layout Plain Layout
23763 no_uwave
23764 \end_layout
23765
23766 \end_inset
23767
23768 .
23769  Each of these turns on or off the corresponding attribute.
23770  For example, 
23771 \begin_inset Flex Code
23772 status collapsed
23773
23774 \begin_layout Plain Layout
23775 emph
23776 \end_layout
23777
23778 \end_inset
23779
23780  turns on emphasis, and 
23781 \begin_inset Flex Code
23782 status collapsed
23783
23784 \begin_layout Plain Layout
23785 no_emph
23786 \end_layout
23787
23788 \end_inset
23789
23790  turns it off.
23791  
23792 \begin_inset Newline newline
23793 \end_inset
23794
23795 If the latter seems puzzling, remember that the font settings for the present
23796  context are generally inherited from the surrounding context.
23797  So 
23798 \begin_inset Flex Code
23799 status collapsed
23800
23801 \begin_layout Plain Layout
23802 no_emph
23803 \end_layout
23804
23805 \end_inset
23806
23807  would turn off the emphasis that was anyway in effect, say, in a theorem
23808  environment.
23809 \end_layout
23810
23811 \begin_layout Description
23812 \begin_inset Flex Code
23813 status collapsed
23814
23815 \begin_layout Plain Layout
23816 Series
23817 \end_layout
23818
23819 \end_inset
23820
23821  [
23822 \begin_inset Flex Code
23823 status collapsed
23824
23825 \begin_layout Plain Layout
23826
23827 \emph on
23828 Medium
23829 \end_layout
23830
23831 \end_inset
23832
23833
23834 \begin_inset Flex Code
23835 status collapsed
23836
23837 \begin_layout Plain Layout
23838 Bold
23839 \end_layout
23840
23841 \end_inset
23842
23843
23844 \end_layout
23845
23846 \begin_layout Description
23847 \begin_inset Flex Code
23848 status collapsed
23849
23850 \begin_layout Plain Layout
23851 Shape
23852 \end_layout
23853
23854 \end_inset
23855
23856  [
23857 \begin_inset Flex Code
23858 status collapsed
23859
23860 \begin_layout Plain Layout
23861
23862 \emph on
23863 Up
23864 \end_layout
23865
23866 \end_inset
23867
23868
23869 \begin_inset Flex Code
23870 status collapsed
23871
23872 \begin_layout Plain Layout
23873 Italic
23874 \end_layout
23875
23876 \end_inset
23877
23878
23879 \begin_inset Flex Code
23880 status collapsed
23881
23882 \begin_layout Plain Layout
23883 SmallCaps
23884 \end_layout
23885
23886 \end_inset
23887
23888
23889 \begin_inset Flex Code
23890 status collapsed
23891
23892 \begin_layout Plain Layout
23893 Slanted
23894 \end_layout
23895
23896 \end_inset
23897
23898
23899 \end_layout
23900
23901 \begin_layout Description
23902 \begin_inset Flex Code
23903 status collapsed
23904
23905 \begin_layout Plain Layout
23906 Size
23907 \end_layout
23908
23909 \end_inset
23910
23911  [
23912 \begin_inset Flex Code
23913 status collapsed
23914
23915 \begin_layout Plain Layout
23916 tiny
23917 \end_layout
23918
23919 \end_inset
23920
23921
23922 \begin_inset Flex Code
23923 status collapsed
23924
23925 \begin_layout Plain Layout
23926 small
23927 \end_layout
23928
23929 \end_inset
23930
23931
23932 \begin_inset Flex Code
23933 status collapsed
23934
23935 \begin_layout Plain Layout
23936
23937 \emph on
23938 normal
23939 \end_layout
23940
23941 \end_inset
23942
23943
23944 \begin_inset Flex Code
23945 status collapsed
23946
23947 \begin_layout Plain Layout
23948 large
23949 \end_layout
23950
23951 \end_inset
23952
23953
23954 \begin_inset Flex Code
23955 status collapsed
23956
23957 \begin_layout Plain Layout
23958 larger
23959 \end_layout
23960
23961 \end_inset
23962
23963
23964 \begin_inset Flex Code
23965 status collapsed
23966
23967 \begin_layout Plain Layout
23968 largest
23969 \end_layout
23970
23971 \end_inset
23972
23973
23974 \begin_inset Flex Code
23975 status collapsed
23976
23977 \begin_layout Plain Layout
23978 huge
23979 \end_layout
23980
23981 \end_inset
23982
23983
23984 \begin_inset Flex Code
23985 status collapsed
23986
23987 \begin_layout Plain Layout
23988 giant
23989 \end_layout
23990
23991 \end_inset
23992
23993 ]
23994 \end_layout
23995
23996 \begin_layout Subsection
23997 \begin_inset CommandInset label
23998 LatexCommand label
23999 name "subsec:Citation-engine-description"
24000
24001 \end_inset
24002
24003 Cite engine description
24004 \end_layout
24005
24006 \begin_layout Standard
24007 The 
24008 \begin_inset Flex Code
24009 status collapsed
24010
24011 \begin_layout Plain Layout
24012 CiteEngine
24013 \end_layout
24014
24015 \end_inset
24016
24017  blocks, as used mainly in cite engine files (see 
24018 \begin_inset CommandInset ref
24019 LatexCommand ref
24020 reference "subsec:Cite-Engine-Files"
24021 plural "false"
24022 caps "false"
24023 noprefix "false"
24024
24025 \end_inset
24026
24027 ), define the citation commands provided by a specific 
24028 \begin_inset Quotes eld
24029 \end_inset
24030
24031 cite engine
24032 \begin_inset Quotes erd
24033 \end_inset
24034
24035 .
24036  A cite engine, in \SpecialChar LyX
24037  terms, is way specific way to format citations, using
24038  numbers, author names and/or years.
24039  Currently, \SpecialChar LyX
24040  supports three such engine types, namely:
24041 \end_layout
24042
24043 \begin_layout Enumerate
24044 \begin_inset Flex Code
24045 status collapsed
24046
24047 \begin_layout Plain Layout
24048 default
24049 \end_layout
24050
24051 \end_inset
24052
24053 : the default Bib\SpecialChar TeX
24054  way to format citations, a simple numeric style (e.
24055 \begin_inset space \thinspace{}
24056 \end_inset
24057
24058 g., 
24059 \begin_inset Quotes eld
24060 \end_inset
24061
24062 [1]
24063 \begin_inset Quotes erd
24064 \end_inset
24065
24066 )
24067 \end_layout
24068
24069 \begin_layout Enumerate
24070 \begin_inset Flex Code
24071 status collapsed
24072
24073 \begin_layout Plain Layout
24074 authoryear
24075 \end_layout
24076
24077 \end_inset
24078
24079 : Harvard-styled citations using author names and publication year (e.
24080 \begin_inset space \thinspace{}
24081 \end_inset
24082
24083 g., 
24084 \begin_inset Quotes eld
24085 \end_inset
24086
24087 Smith and Miller (2017b)
24088 \begin_inset Quotes erd
24089 \end_inset
24090
24091 )
24092 \end_layout
24093
24094 \begin_layout Enumerate
24095 \begin_inset Flex Code
24096 status collapsed
24097
24098 \begin_layout Plain Layout
24099 numerical
24100 \end_layout
24101
24102 \end_inset
24103
24104 : extended numerical citations that also allow for author or title next
24105  to the number (e.
24106 \begin_inset space \thinspace{}
24107 \end_inset
24108
24109 g., 
24110 \begin_inset Quotes eld
24111 \end_inset
24112
24113 Smith and Miller [1]
24114 \begin_inset Quotes erd
24115 \end_inset
24116
24117 )
24118 \end_layout
24119
24120 \begin_layout Standard
24121 \begin_inset Flex Code
24122 status collapsed
24123
24124 \begin_layout Plain Layout
24125 CiteEngine
24126 \end_layout
24127
24128 \end_inset
24129
24130  blocks look like this:
24131 \end_layout
24132
24133 \begin_layout LyX-Code
24134 CiteEngine default
24135 \end_layout
24136
24137 \begin_layout LyX-Code
24138  cite
24139 \end_layout
24140
24141 \begin_layout LyX-Code
24142  Citep*[][]
24143 \end_layout
24144
24145 \begin_layout LyX-Code
24146  citeyearpar[][]=parencite*
24147 \end_layout
24148
24149 \begin_layout LyX-Code
24150  ...
24151 \end_layout
24152
24153 \begin_layout LyX-Code
24154 End
24155 \end_layout
24156
24157 \begin_layout Standard
24158 The tag following 
24159 \begin_inset Flex Code
24160 status collapsed
24161
24162 \begin_layout Plain Layout
24163 CiteEngine
24164 \end_layout
24165
24166 \end_inset
24167
24168  denotes the engine.
24169  The individual lines respectively define a cite command or cite command
24170  paradigm supported by this engine.
24171  The line can be as simple as a cite command that is used both to name the
24172  respective \SpecialChar LyX
24173  command and the \SpecialChar LaTeX
24174  output or more complex in order to differentiate
24175  things.
24176  The full syntax is:
24177 \end_layout
24178
24179 \begin_layout LyX-Code
24180 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
24181 \end_layout
24182
24183 \begin_layout Itemize
24184 \begin_inset Flex Code
24185 status collapsed
24186
24187 \begin_layout Plain Layout
24188 LyXName
24189 \end_layout
24190
24191 \end_inset
24192
24193 : The name as used in the 
24194 \begin_inset Flex Code
24195 status collapsed
24196
24197 \begin_layout Plain Layout
24198 *.lyx
24199 \end_layout
24200
24201 \end_inset
24202
24203  file.
24204 \end_layout
24205
24206 \begin_deeper
24207 \begin_layout Standard
24208 For portability reasons, we try to use the same name for same-formatted
24209  commands in different cite packages (thus many names stem from natbib,
24210  and thus we need to differentiate a 
24211 \begin_inset Flex Code
24212 status collapsed
24213
24214 \begin_layout Plain Layout
24215 latexcmd
24216 \end_layout
24217
24218 \end_inset
24219
24220  sometimes, if the \SpecialChar LaTeX
24221  command names differ).
24222 \end_layout
24223
24224 \end_deeper
24225 \begin_layout Itemize
24226 \begin_inset Flex Code
24227 status collapsed
24228
24229 \begin_layout Plain Layout
24230 alias
24231 \end_layout
24232
24233 \end_inset
24234
24235 : a (comma-separated) list of commands that fall back to the given 
24236 \begin_inset Flex Code
24237 status collapsed
24238
24239 \begin_layout Plain Layout
24240 LyXName
24241 \end_layout
24242
24243 \end_inset
24244
24245  in the current engine.
24246  This eases the switch of citation packages and engines.
24247  The 
24248 \begin_inset Flex Code
24249 status collapsed
24250
24251 \begin_layout Plain Layout
24252 alias
24253 \end_layout
24254
24255 \end_inset
24256
24257  can be compared to 
24258 \begin_inset Flex Code
24259 status collapsed
24260
24261 \begin_layout Plain Layout
24262 ObsoletedBy
24263 \end_layout
24264
24265 \end_inset
24266
24267  in layout definitions.
24268 \end_layout
24269
24270 \begin_layout Itemize
24271 \begin_inset Flex Code
24272 status collapsed
24273
24274 \begin_layout Plain Layout
24275 latexcmd
24276 \end_layout
24277
24278 \end_inset
24279
24280 : The actual \SpecialChar LaTeX
24281  command that is output.
24282  
24283 \end_layout
24284
24285 \begin_layout Standard
24286 \begin_inset Flex Code
24287 status collapsed
24288
24289 \begin_layout Plain Layout
24290 Alias
24291 \end_layout
24292
24293 \end_inset
24294
24295  and 
24296 \begin_inset Flex Code
24297 status collapsed
24298
24299 \begin_layout Plain Layout
24300 latexcmd
24301 \end_layout
24302
24303 \end_inset
24304
24305  are optional.
24306  If no 
24307 \begin_inset Flex Code
24308 status collapsed
24309
24310 \begin_layout Plain Layout
24311 latexcmd
24312 \end_layout
24313
24314 \end_inset
24315
24316  is given, the 
24317 \begin_inset Flex Code
24318 status collapsed
24319
24320 \begin_layout Plain Layout
24321 LyXName
24322 \end_layout
24323
24324 \end_inset
24325
24326  will be output to \SpecialChar LaTeX
24327 .
24328 \end_layout
24329
24330 \begin_layout Standard
24331 Note further:
24332 \end_layout
24333
24334 \begin_layout Itemize
24335 Capitalization indicates that the command also has a capitalized form (
24336 \begin_inset Flex Code
24337 status collapsed
24338
24339 \begin_layout Plain Layout
24340
24341 \backslash
24342 Latexcmd
24343 \end_layout
24344
24345 \end_inset
24346
24347  vs.
24348  
24349 \begin_inset Flex Code
24350 status collapsed
24351
24352 \begin_layout Plain Layout
24353
24354 \backslash
24355 latexcmd
24356 \end_layout
24357
24358 \end_inset
24359
24360 ).
24361  These usually enforce up-casing of name prefixes (
24362 \emph on
24363 von Goethe
24364 \emph default
24365  
24366 \begin_inset Formula $\Rightarrow$
24367 \end_inset
24368
24369  
24370 \emph on
24371 Von Goethe
24372 \emph default
24373 ).
24374 \end_layout
24375
24376 \begin_layout Itemize
24377 Brackets 
24378 \begin_inset Flex Code
24379 status collapsed
24380
24381 \begin_layout Plain Layout
24382 []
24383 \end_layout
24384
24385 \end_inset
24386
24387  indicate the number of optional arguments (there can be 0–2).
24388 \end_layout
24389
24390 \begin_layout Itemize
24391 A star 
24392 \begin_inset Flex Code
24393 status collapsed
24394
24395 \begin_layout Plain Layout
24396 *
24397 \end_layout
24398
24399 \end_inset
24400
24401  indicates there is a starred version of the command (
24402 \begin_inset Flex Code
24403 status collapsed
24404
24405 \begin_layout Plain Layout
24406
24407 \backslash
24408 latexcmd*
24409 \end_layout
24410
24411 \end_inset
24412
24413  vs.
24414  
24415 \begin_inset Flex Code
24416 status collapsed
24417
24418 \begin_layout Plain Layout
24419
24420 \backslash
24421 latexcmd
24422 \end_layout
24423
24424 \end_inset
24425
24426 ).
24427  
24428 \end_layout
24429
24430 \begin_deeper
24431 \begin_layout Standard
24432 By default, the starred version means: Output all authors even if it should
24433  be shortened with 
24434 \begin_inset Quotes eld
24435 \end_inset
24436
24437 et al.
24438 \begin_inset Quotes erd
24439 \end_inset
24440
24441  due to the 
24442 \begin_inset Flex Code
24443 status collapsed
24444
24445 \begin_layout Plain Layout
24446 MaxCiteNames
24447 \end_layout
24448
24449 \end_inset
24450
24451  threshold.
24452 \end_layout
24453
24454 \begin_layout Standard
24455 If the star has a different meaning for a given command, it can be specified
24456  in angle brackets: 
24457 \begin_inset Flex Code
24458 status collapsed
24459
24460 \begin_layout Plain Layout
24461 <!_stardesc!_stardesctooltip>
24462 \end_layout
24463
24464 \end_inset
24465
24466 .
24467  Maximal two translatable macro keywords, marked by the prefix 
24468 \begin_inset Flex Code
24469 status collapsed
24470
24471 \begin_layout Plain Layout
24472 !_
24473 \end_layout
24474
24475 \end_inset
24476
24477 , can be given.
24478  The first points to the string that replaces the 
24479 \begin_inset Quotes eld
24480 \end_inset
24481
24482 Full aut&hor list
24483 \begin_inset Quotes erd
24484 \end_inset
24485
24486  checkbox label in the citation dialog, the second one to an optional tool
24487  tip for this checkbox.
24488  
24489 \end_layout
24490
24491 \begin_layout Standard
24492 Note that these two macros have to be defined in a 
24493 \begin_inset Flex Code
24494 status collapsed
24495
24496 \begin_layout Plain Layout
24497 CiteFormat
24498 \end_layout
24499
24500 \end_inset
24501
24502  (see next section), dropping the 
24503 \begin_inset Flex Code
24504 status collapsed
24505
24506 \begin_layout Plain Layout
24507 !
24508 \end_layout
24509
24510 \end_inset
24511
24512  from the prefix, like this: 
24513 \end_layout
24514
24515 \begin_layout LyX-Code
24516 _stardesc Sta&rred command label
24517 \end_layout
24518
24519 \begin_layout LyX-Code
24520 _stardesctooltip Tooltip for the starred command checkbox.
24521 \end_layout
24522
24523 \end_deeper
24524 \begin_layout Itemize
24525 A dollar sign 
24526 \begin_inset Flex Code
24527 status collapsed
24528
24529 \begin_layout Plain Layout
24530 $
24531 \end_layout
24532
24533 \end_inset
24534
24535  indicates that this command features 
24536 \begin_inset Quotes eld
24537 \end_inset
24538
24539 qualified citation lists
24540 \begin_inset Quotes erd
24541 \end_inset
24542
24543 .
24544  This is a 
24545 \family sans
24546 Biblatex
24547 \family default
24548 -specific feature for multi-reference citations where an individual pre-
24549  and postnote can be given to each reference in the list.
24550  Please refer to the 
24551 \family sans
24552 Biblatex
24553 \family default
24554  manual for details.
24555 \change_inserted -712698321 1526898670
24556
24557 \end_layout
24558
24559 \begin_layout Standard
24560
24561 \change_inserted -712698321 1526899524
24562 If you want to add a cite command to a cite engine (e.
24563 \begin_inset space \thinspace{}
24564 \end_inset
24565
24566 g., add a specific command provided by a class), you can use 
24567 \begin_inset Flex Code
24568 status collapsed
24569
24570 \begin_layout Plain Layout
24571
24572 \change_inserted -712698321 1526898768
24573 AddToCiteEngine <engine type> \SpecialChar ldots
24574  End
24575 \change_unchanged
24576
24577 \end_layout
24578
24579 \end_inset
24580
24581 .
24582  Note that only cite commands that do not exist yet are added.
24583 \change_unchanged
24584
24585 \end_layout
24586
24587 \begin_layout Subsection
24588 \begin_inset CommandInset label
24589 LatexCommand label
24590 name "subsec:Citation-format-description"
24591
24592 \end_inset
24593
24594 Cite format description
24595 \end_layout
24596
24597 \begin_layout Standard
24598 The 
24599 \begin_inset Flex Code
24600 status collapsed
24601
24602 \begin_layout Plain Layout
24603 CiteFormat
24604 \end_layout
24605
24606 \end_inset
24607
24608  blocks are used to describe how bibliographic information should be displayed,
24609  both within \SpecialChar LyX
24610  itself (in the citation dialog and in tooltips, for example)
24611  and in XHTML output.
24612  Such a block might look like this:
24613 \end_layout
24614
24615 \begin_layout LyX-Code
24616 CiteFormat
24617 \end_layout
24618
24619 \begin_layout LyX-Code
24620  article ...
24621 \end_layout
24622
24623 \begin_layout LyX-Code
24624  book ...
24625 \end_layout
24626
24627 \begin_layout LyX-Code
24628 End
24629 \end_layout
24630
24631 \begin_layout Standard
24632 or
24633 \end_layout
24634
24635 \begin_layout LyX-Code
24636 CiteFormat
24637 \end_layout
24638
24639 \begin_layout LyX-Code
24640  cite ...
24641 \end_layout
24642
24643 \begin_layout LyX-Code
24644  citet*[][] ...
24645 \end_layout
24646
24647 \begin_layout LyX-Code
24648 End
24649 \end_layout
24650
24651 \begin_layout Standard
24652 In the first case, the individual lines define how the bibliographic information
24653  associated with an article or book, respectively, is to be displayed, and
24654  such a definition can be given for any 
24655 \begin_inset Quotes els
24656 \end_inset
24657
24658 entry type
24659 \begin_inset Quotes ers
24660 \end_inset
24661
24662  that might be present in a Bib\SpecialChar TeX
24663  file.
24664  \SpecialChar LyX
24665  defines a default format in the source code that will be used if no specific
24666  definition has been given.
24667  \SpecialChar LyX
24668  predefines several formats in the file 
24669 \begin_inset Flex Code
24670 status collapsed
24671
24672 \begin_layout Plain Layout
24673 stdciteformats.inc
24674 \end_layout
24675
24676 \end_inset
24677
24678 , which is included in most of \SpecialChar LyX
24679 's document classes.
24680 \end_layout
24681
24682 \begin_layout Standard
24683 In the second case, the lines define how a specific citation command (in
24684  the example 
24685 \begin_inset Flex Code
24686 status collapsed
24687
24688 \begin_layout Plain Layout
24689
24690 \backslash
24691 cite
24692 \end_layout
24693
24694 \end_inset
24695
24696
24697 \begin_inset Flex Code
24698 status collapsed
24699
24700 \begin_layout Plain Layout
24701
24702 \backslash
24703 citet
24704 \end_layout
24705
24706 \end_inset
24707
24708 ) is to be displayed on the citation inset label, in the citation dialog,
24709  menu or XHTML output.
24710  \SpecialChar LyX
24711  defines such formats for the citation style variants it supports via 
24712 \family sans
24713 Document\SpecialChar menuseparator
24714 Setting\SpecialChar menuseparator
24715 Bibliography\SpecialChar ldots
24716
24717 \family default
24718  in specific 
24719 \begin_inset Flex Code
24720 status collapsed
24721
24722 \begin_layout Plain Layout
24723 *.citeengine
24724 \end_layout
24725
24726 \end_inset
24727
24728  files that are shipped with \SpecialChar LyX
24729  (see 
24730 \begin_inset CommandInset ref
24731 LatexCommand ref
24732 reference "subsec:Cite-Engine-Files"
24733 plural "false"
24734 caps "false"
24735 noprefix "false"
24736
24737 \end_inset
24738
24739 ).
24740 \end_layout
24741
24742 \begin_layout Standard
24743 The definitions use a simple language that allows Bib\SpecialChar TeX
24744  keys to be replaced
24745  with their values.
24746  Keys should be enclosed in 
24747 \begin_inset Flex Code
24748 status collapsed
24749
24750 \begin_layout Plain Layout
24751 %
24752 \end_layout
24753
24754 \end_inset
24755
24756  signs, e.g.: 
24757 \begin_inset Flex Code
24758 status collapsed
24759
24760 \begin_layout Plain Layout
24761 %author%
24762 \end_layout
24763
24764 \end_inset
24765
24766 .
24767  So a simple definition might look like this:
24768 \end_layout
24769
24770 \begin_layout LyX-Code
24771 misc %author%, 
24772 \begin_inset Quotes eld
24773 \end_inset
24774
24775 %title%
24776 \begin_inset Quotes erd
24777 \end_inset
24778
24779 .
24780 \end_layout
24781
24782 \begin_layout Standard
24783 This would print the author, followed by a comma, followed by the title,
24784  in quotes, followed by a period.
24785 \end_layout
24786
24787 \begin_layout Standard
24788 Of course, sometimes you may want to print a key only if it exists.
24789  This can be done by using a conditional construction, such as: 
24790 \begin_inset Flex Code
24791 status collapsed
24792
24793 \begin_layout Plain Layout
24794 {%volume%[[vol.
24795 \begin_inset space ~
24796 \end_inset
24797
24798 %volume%]]}
24799 \end_layout
24800
24801 \end_inset
24802
24803 .
24804  This says: If the 
24805 \begin_inset Flex Code
24806 status collapsed
24807
24808 \begin_layout Plain Layout
24809 volume
24810 \end_layout
24811
24812 \end_inset
24813
24814  key exists, then print 
24815 \begin_inset Quotes eld
24816 \end_inset
24817
24818 vol.
24819 \begin_inset space ~
24820 \end_inset
24821
24822
24823 \begin_inset Quotes erd
24824 \end_inset
24825
24826  followed by the volume key.
24827  It is also possible to have an else clause in the conditional, such as:
24828 \begin_inset Newline newline
24829 \end_inset
24830
24831
24832 \begin_inset Flex Code
24833 status collapsed
24834
24835 \begin_layout Plain Layout
24836 {%author%[[%author%]][[%editor%, ed.]]}
24837 \end_layout
24838
24839 \end_inset
24840
24841 .
24842 \begin_inset Newline newline
24843 \end_inset
24844
24845 Here, the 
24846 \begin_inset Flex Code
24847 status collapsed
24848
24849 \begin_layout Plain Layout
24850 author
24851 \end_layout
24852
24853 \end_inset
24854
24855  key is printed if it exists; otherwise, the editor key is printed, followed
24856  by 
24857 \begin_inset Quotes eld
24858 \end_inset
24859
24860 ,
24861 \begin_inset space ~
24862 \end_inset
24863
24864 ed.
24865 \begin_inset Quotes erd
24866 \end_inset
24867
24868  Note that the key is again enclosed in 
24869 \begin_inset Flex Code
24870 status collapsed
24871
24872 \begin_layout Plain Layout
24873 %
24874 \end_layout
24875
24876 \end_inset
24877
24878  signs; the entire conditional is enclosed in braces; and the if and else
24879  clauses are enclosed in double brackets, 
24880 \begin_inset Quotes eld
24881 \end_inset
24882
24883
24884 \begin_inset Flex Code
24885 status collapsed
24886
24887 \begin_layout Plain Layout
24888 [[
24889 \end_layout
24890
24891 \end_inset
24892
24893
24894 \begin_inset Quotes eld
24895 \end_inset
24896
24897  and 
24898 \begin_inset Quotes eld
24899 \end_inset
24900
24901
24902 \begin_inset Flex Code
24903 status collapsed
24904
24905 \begin_layout Plain Layout
24906 ]]
24907 \end_layout
24908
24909 \end_inset
24910
24911
24912 \begin_inset Quotes erd
24913 \end_inset
24914
24915 .
24916  There must be no space between any of these.
24917 \end_layout
24918
24919 \begin_layout Standard
24920 Next to the entry keys, there are some special keys that can be used for
24921  these conditionals:
24922 \end_layout
24923
24924 \begin_layout Itemize
24925 \begin_inset Flex Code
24926 status collapsed
24927
24928 \begin_layout Plain Layout
24929 {%dialog%[[true]][[false]]}
24930 \end_layout
24931
24932 \end_inset
24933
24934 : process the 
24935 \begin_inset Quotes eld
24936 \end_inset
24937
24938 true
24939 \begin_inset Quotes erd
24940 \end_inset
24941
24942  part for dialogs and menus, the 
24943 \begin_inset Quotes eld
24944 \end_inset
24945
24946 false
24947 \begin_inset Quotes erd
24948 \end_inset
24949
24950  part for other contexts (workarea, export)
24951 \end_layout
24952
24953 \begin_layout Itemize
24954 \begin_inset Flex Code
24955 status collapsed
24956
24957 \begin_layout Plain Layout
24958 {%export%[[true]][[false]]}
24959 \end_layout
24960
24961 \end_inset
24962
24963 : process the 
24964 \begin_inset Quotes eld
24965 \end_inset
24966
24967 true
24968 \begin_inset Quotes erd
24969 \end_inset
24970
24971  part for export and menus, the 
24972 \begin_inset Quotes eld
24973 \end_inset
24974
24975 false
24976 \begin_inset Quotes erd
24977 \end_inset
24978
24979  part for other contexts (workarea, dialog)
24980 \end_layout
24981
24982 \begin_layout Itemize
24983 \begin_inset Flex Code
24984 status collapsed
24985
24986 \begin_layout Plain Layout
24987 {%next%[[true]]}
24988 \end_layout
24989
24990 \end_inset
24991
24992 : process the 
24993 \begin_inset Quotes eld
24994 \end_inset
24995
24996 true
24997 \begin_inset Quotes erd
24998 \end_inset
24999
25000  part if another item follows (e.
25001 \begin_inset space \thinspace{}
25002 \end_inset
25003
25004 g., in a citation with multiple keys)
25005 \end_layout
25006
25007 \begin_layout Itemize
25008 \begin_inset Flex Code
25009 status collapsed
25010
25011 \begin_layout Plain Layout
25012 {%second%[[true]][[false]]}
25013 \end_layout
25014
25015 \end_inset
25016
25017 : process the 
25018 \begin_inset Quotes eld
25019 \end_inset
25020
25021 true
25022 \begin_inset Quotes erd
25023 \end_inset
25024
25025  if this is the second of multiple items, else the 
25026 \begin_inset Quotes eld
25027 \end_inset
25028
25029 false
25030 \begin_inset Quotes erd
25031 \end_inset
25032
25033  part
25034 \end_layout
25035
25036 \begin_layout Itemize
25037 \begin_inset Flex Code
25038 status collapsed
25039
25040 \begin_layout Plain Layout
25041 {%ifstar%[[true]][[false]]}
25042 \end_layout
25043
25044 \end_inset
25045
25046 : process the 
25047 \begin_inset Quotes eld
25048 \end_inset
25049
25050 true
25051 \begin_inset Quotes erd
25052 \end_inset
25053
25054  part for starred citation commands (such as 
25055 \begin_inset Flex Code
25056 status collapsed
25057
25058 \begin_layout Plain Layout
25059
25060 \backslash
25061 cite*
25062 \end_layout
25063
25064 \end_inset
25065
25066 ), the false part for unstarred
25067 \end_layout
25068
25069 \begin_layout Itemize
25070 \begin_inset Flex Code
25071 status collapsed
25072
25073 \begin_layout Plain Layout
25074 {%ifentrytype:<type>%[[true]][[false]]}
25075 \end_layout
25076
25077 \end_inset
25078
25079 : process the 
25080 \begin_inset Quotes eld
25081 \end_inset
25082
25083 true
25084 \begin_inset Quotes erd
25085 \end_inset
25086
25087  if the current entry type matches 
25088 \begin_inset Flex Code
25089 status collapsed
25090
25091 \begin_layout Plain Layout
25092 <type>
25093 \end_layout
25094
25095 \end_inset
25096
25097 , else the false part (e.g., in a citation definition: 
25098 \begin_inset Flex Code
25099 status collapsed
25100
25101 \begin_layout Plain Layout
25102 {%ifentrytype:book%[[this is a book]][[this is no book]]}
25103 \end_layout
25104
25105 \end_inset
25106
25107 )
25108 \end_layout
25109
25110 \begin_layout Itemize
25111 \begin_inset Flex Code
25112 status collapsed
25113
25114 \begin_layout Plain Layout
25115 {%ifmultiple:<authortype>%[[true]][[false]]}
25116 \end_layout
25117
25118 \end_inset
25119
25120 : process the 
25121 \begin_inset Quotes eld
25122 \end_inset
25123
25124 true
25125 \begin_inset Quotes erd
25126 \end_inset
25127
25128  if the current author type (author, editor etc.) has multiple authors, else
25129  the false part (e.g., in a bibliography definition: 
25130 \begin_inset Flex Code
25131 status collapsed
25132
25133 \begin_layout Plain Layout
25134 {%ifmultiple:editor%[[eds.]][[ed.]]}
25135 \end_layout
25136
25137 \end_inset
25138
25139 )
25140 \end_layout
25141
25142 \begin_layout Itemize
25143 \begin_inset Flex Code
25144 status collapsed
25145
25146 \begin_layout Plain Layout
25147 {%ifqualified%[[true]][[false]]}
25148 \end_layout
25149
25150 \end_inset
25151
25152 : process the 
25153 \begin_inset Quotes eld
25154 \end_inset
25155
25156 true
25157 \begin_inset Quotes erd
25158 \end_inset
25159
25160  part if the current citation is a qualified citation list (a specific 
25161 \family sans
25162 Biblatex
25163 \family default
25164  format for multi-reference citations), the false part if this is not the
25165  case.
25166 \end_layout
25167
25168 \begin_layout Standard
25169 We said that 
25170 \begin_inset Flex Code
25171 status collapsed
25172
25173 \begin_layout Plain Layout
25174 %author%
25175 \end_layout
25176
25177 \end_inset
25178
25179  prints the author key as it is recorded in the bibliography file.
25180  This might not be what you want, since it will result in a string such
25181  as 
25182 \begin_inset Quotes eld
25183 \end_inset
25184
25185 Miller, Peter and Smith, Mary and White, Jane
25186 \begin_inset Quotes erd
25187 \end_inset
25188
25189  (since 
25190 \begin_inset Quotes eld
25191 \end_inset
25192
25193 and
25194 \begin_inset Quotes erd
25195 \end_inset
25196
25197  is used by Bib\SpecialChar TeX
25198  to delimit authors).
25199  \SpecialChar LyX
25200  therefore provides some methods to get properly formatted name lists (which
25201  will also get translated).
25202  The following keys are provided:
25203 \end_layout
25204
25205 \begin_layout Enumerate
25206 For name lists with pre- and surname, suitable for the main authors/editors
25207  of a bibliography item.
25208  The 
25209 \begin_inset Flex Code
25210 status collapsed
25211
25212 \begin_layout Plain Layout
25213 <nametype>
25214 \end_layout
25215
25216 \end_inset
25217
25218  part denotes the kind of list that is requested (e.g.
25219  
25220 \begin_inset Flex Code
25221 status collapsed
25222
25223 \begin_layout Plain Layout
25224 <nametype:author>
25225 \end_layout
25226
25227 \end_inset
25228
25229 ):
25230 \end_layout
25231
25232 \begin_deeper
25233 \begin_layout Itemize
25234 \begin_inset Flex Code
25235 status collapsed
25236
25237 \begin_layout Plain Layout
25238 %abbrvnames:<nametype>%
25239 \end_layout
25240
25241 \end_inset
25242
25243 : Provides a name list which is abbreviated (with 
25244 \begin_inset Quotes eld
25245 \end_inset
25246
25247 et al.
25248 \begin_inset Quotes erd
25249 \end_inset
25250
25251 ) when 
25252 \begin_inset Flex Code
25253 status collapsed
25254
25255 \begin_layout Plain Layout
25256 MaxCiteNames
25257 \end_layout
25258
25259 \end_inset
25260
25261  is reached.
25262 \end_layout
25263
25264 \begin_layout Itemize
25265 \begin_inset Flex Code
25266 status collapsed
25267
25268 \begin_layout Plain Layout
25269 %fullnames:<nametype>%
25270 \end_layout
25271
25272 \end_inset
25273
25274 : Provides a full name list (never abbreviated with 
25275 \begin_inset Quotes eld
25276 \end_inset
25277
25278 et al.
25279 \begin_inset Quotes erd
25280 \end_inset
25281
25282 ).
25283 \end_layout
25284
25285 \begin_layout Itemize
25286 \begin_inset Flex Code
25287 status collapsed
25288
25289 \begin_layout Plain Layout
25290 %forceabbrvnames:<nametype>%
25291 \end_layout
25292
25293 \end_inset
25294
25295 : Provides a name list which is always abbreviated (with 
25296 \begin_inset Quotes eld
25297 \end_inset
25298
25299 et al.
25300 \begin_inset Quotes erd
25301 \end_inset
25302
25303 ) irrespective of 
25304 \begin_inset Flex Code
25305 status collapsed
25306
25307 \begin_layout Plain Layout
25308 MaxCiteNames
25309 \end_layout
25310
25311 \end_inset
25312
25313 .
25314 \end_layout
25315
25316 \end_deeper
25317 \begin_layout Enumerate
25318 Alternative name lists with pre- and surname, if the order of pre- and surname
25319  inside the bibliography item differs (as in: 
25320 \begin_inset Quotes eld
25321 \end_inset
25322
25323 Miller, John: Some text, in: Mary Smith, ed.: A volume
25324 \begin_inset Quotes erd
25325 \end_inset
25326
25327 ):
25328 \end_layout
25329
25330 \begin_deeper
25331 \begin_layout Itemize
25332 \begin_inset Flex Code
25333 status collapsed
25334
25335 \begin_layout Plain Layout
25336 %abbrvbynames:<nametype>%
25337 \end_layout
25338
25339 \end_inset
25340
25341 : Provides a name list which is abbreviated (with 
25342 \begin_inset Quotes eld
25343 \end_inset
25344
25345 et al.
25346 \begin_inset Quotes erd
25347 \end_inset
25348
25349 ) when 
25350 \begin_inset Flex Code
25351 status collapsed
25352
25353 \begin_layout Plain Layout
25354 MaxCiteNames
25355 \end_layout
25356
25357 \end_inset
25358
25359  is reached.
25360 \end_layout
25361
25362 \begin_layout Itemize
25363 \begin_inset Flex Code
25364 status collapsed
25365
25366 \begin_layout Plain Layout
25367 %fullbynames:<nametype>%
25368 \end_layout
25369
25370 \end_inset
25371
25372 : Provides a full name list (never abbreviated with 
25373 \begin_inset Quotes eld
25374 \end_inset
25375
25376 et al.
25377 \begin_inset Quotes erd
25378 \end_inset
25379
25380 ).
25381 \end_layout
25382
25383 \begin_layout Itemize
25384 \begin_inset Flex Code
25385 status collapsed
25386
25387 \begin_layout Plain Layout
25388 %forceabbrvbynames:<nametype>%
25389 \end_layout
25390
25391 \end_inset
25392
25393 : Provides a name list which is always abbreviated (with 
25394 \begin_inset Quotes eld
25395 \end_inset
25396
25397 et al.
25398 \begin_inset Quotes erd
25399 \end_inset
25400
25401 ) irrespective of 
25402 \begin_inset Flex Code
25403 status collapsed
25404
25405 \begin_layout Plain Layout
25406 MaxCiteNames
25407 \end_layout
25408
25409 \end_inset
25410
25411 .
25412 \end_layout
25413
25414 \end_deeper
25415 \begin_layout Enumerate
25416 And finally name lists which consist of family names only, as used in author-yea
25417 r citation labels.
25418  These do not take a 
25419 \begin_inset Flex Code
25420 status collapsed
25421
25422 \begin_layout Plain Layout
25423 <nametype>
25424 \end_layout
25425
25426 \end_inset
25427
25428  part, but always return either an author list or, if this does not exist,
25429  an editor list (as common in author-year labels):
25430 \end_layout
25431
25432 \begin_deeper
25433 \begin_layout Itemize
25434 \begin_inset Flex Code
25435 status collapsed
25436
25437 \begin_layout Plain Layout
25438 %abbrvciteauthor%
25439 \end_layout
25440
25441 \end_inset
25442
25443 : Provides a name list which is abbreviated (with 
25444 \begin_inset Quotes eld
25445 \end_inset
25446
25447 et al.
25448 \begin_inset Quotes erd
25449 \end_inset
25450
25451 ) when 
25452 \begin_inset Flex Code
25453 status collapsed
25454
25455 \begin_layout Plain Layout
25456 MaxCiteNames
25457 \end_layout
25458
25459 \end_inset
25460
25461  is reached.
25462 \end_layout
25463
25464 \begin_layout Itemize
25465 \begin_inset Flex Code
25466 status collapsed
25467
25468 \begin_layout Plain Layout
25469 %fullciteauthor%
25470 \end_layout
25471
25472 \end_inset
25473
25474 : Provides a full name list (never abbreviated with 
25475 \begin_inset Quotes eld
25476 \end_inset
25477
25478 et al.
25479 \begin_inset Quotes erd
25480 \end_inset
25481
25482 ).
25483 \end_layout
25484
25485 \begin_layout Itemize
25486 \begin_inset Flex Code
25487 status collapsed
25488
25489 \begin_layout Plain Layout
25490 %forceabbrvciteauthor%
25491 \end_layout
25492
25493 \end_inset
25494
25495 : Provides a name list which is always abbreviated (with 
25496 \begin_inset Quotes eld
25497 \end_inset
25498
25499 et al.
25500 \begin_inset Quotes erd
25501 \end_inset
25502
25503 ) irrespective of 
25504 \begin_inset Flex Code
25505 status collapsed
25506
25507 \begin_layout Plain Layout
25508 MaxCiteNames
25509 \end_layout
25510
25511 \end_inset
25512
25513 .
25514 \end_layout
25515
25516 \end_deeper
25517 \begin_layout Standard
25518 The order of pre- and surname in the former two lists can be adjusted by
25519  these macros:
25520 \end_layout
25521
25522 \begin_layout Itemize
25523 \begin_inset Flex Code
25524 status collapsed
25525
25526 \begin_layout Plain Layout
25527 !firstnameform %surname%, %prename%
25528 \end_layout
25529
25530 \end_inset
25531
25532  (first author in lists of type 1)
25533 \end_layout
25534
25535 \begin_layout Itemize
25536 \begin_inset Flex Code
25537 status collapsed
25538
25539 \begin_layout Plain Layout
25540 !othernameform %surname%, %prename%
25541 \end_layout
25542
25543 \end_inset
25544
25545  (other authors in lists of type 1)
25546 \end_layout
25547
25548 \begin_layout Itemize
25549 \begin_inset Flex Code
25550 status collapsed
25551
25552 \begin_layout Plain Layout
25553 !firstbynameform %prename% %surname%
25554 \end_layout
25555
25556 \end_inset
25557
25558  (first author in lists of type 2)
25559 \end_layout
25560
25561 \begin_layout Itemize
25562 \begin_inset Flex Code
25563 status collapsed
25564
25565 \begin_layout Plain Layout
25566 !otherbynameform %prename% %surname%
25567 \end_layout
25568
25569 \end_inset
25570
25571  (other authors in lists of type 2)
25572 \end_layout
25573
25574 \begin_layout Standard
25575 This allows you to configure namings like 
25576 \begin_inset Quotes eld
25577 \end_inset
25578
25579 Miller, Peter and Mary Smith: \SpecialChar ldots
25580 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
25581
25582 \begin_inset Quotes erd
25583 \end_inset
25584
25585 .
25586 \end_layout
25587
25588 \begin_layout Standard
25589 There is one other piece of syntax available in definitions, which looks
25590  like this: 
25591 \begin_inset Flex Code
25592 status collapsed
25593
25594 \begin_layout Plain Layout
25595 {!<i>!}
25596 \end_layout
25597
25598 \end_inset
25599
25600 .
25601  This defines a piece of formatting information that is to be used when
25602  creating 
25603 \begin_inset Quotes eld
25604 \end_inset
25605
25606 rich text
25607 \begin_inset Quotes erd
25608 \end_inset
25609
25610 .
25611  Obviously, we do not want to output HTML tags when writing plain text,
25612  so they should be wrapped in 
25613 \begin_inset Quotes eld
25614 \end_inset
25615
25616 {!
25617 \begin_inset Quotes erd
25618 \end_inset
25619
25620  and 
25621 \begin_inset Quotes eld
25622 \end_inset
25623
25624 !}
25625 \begin_inset Quotes erd
25626 \end_inset
25627
25628 .
25629 \end_layout
25630
25631 \begin_layout Standard
25632 Two special sorts of definitions are also possible in a 
25633 \begin_inset Flex Code
25634 status collapsed
25635
25636 \begin_layout Plain Layout
25637 CiteFormat
25638 \end_layout
25639
25640 \end_inset
25641
25642  block.
25643  An example of the first would be:
25644 \end_layout
25645
25646 \begin_layout LyX-Code
25647 !quotetitle 
25648 \begin_inset Quotes eld
25649 \end_inset
25650
25651 %title%
25652 \begin_inset Quotes erd
25653 \end_inset
25654
25655
25656 \end_layout
25657
25658 \begin_layout Standard
25659 This is an abbreviation, or macro, and it can be used by treating it as
25660  if it were a key: 
25661 \begin_inset Flex Code
25662 status collapsed
25663
25664 \begin_layout Plain Layout
25665 %!quotetitle%
25666 \end_layout
25667
25668 \end_inset
25669
25670 .
25671  \SpecialChar LyX
25672  will treat 
25673 \begin_inset Flex Code
25674 status collapsed
25675
25676 \begin_layout Plain Layout
25677 %!quotetitle%
25678 \end_layout
25679
25680 \end_inset
25681
25682  exactly as it would treat its definition.
25683  So, let us issue the obvious 
25684 \emph on
25685 warning
25686 \emph default
25687 .
25688  Do not do this:
25689 \end_layout
25690
25691 \begin_layout LyX-Code
25692 !funfun %funfun%
25693 \end_layout
25694
25695 \begin_layout Standard
25696 or anything like it.
25697  \SpecialChar LyX
25698  shouldn't go into an infinite loop, but it may go into a long one before
25699  it gives up.
25700 \end_layout
25701
25702 \begin_layout Standard
25703 The second sort of special definition might look like this:
25704 \end_layout
25705
25706 \begin_layout LyX-Code
25707 B_pptext pp.
25708 \end_layout
25709
25710 \begin_layout Standard
25711 This defines a translatable piece of text, which allows relevant parts of
25712  the bibliography or citation to be translated.
25713  It can be included in a definition by treating it as a key: 
25714 \begin_inset Flex Code
25715 status collapsed
25716
25717 \begin_layout Plain Layout
25718 %B_pptext%
25719 \end_layout
25720
25721 \end_inset
25722
25723 .
25724  Note that there are two different translation paths: All definitions starting
25725  with 
25726 \begin_inset Flex Code
25727 status collapsed
25728
25729 \begin_layout Plain Layout
25730 B_
25731 \end_layout
25732
25733 \end_inset
25734
25735 , such as in the example above, will be translated to the currently active
25736  buffer language (so the translation will match the generated document).
25737  All definitions starting with underscore only will be translated to the
25738  GUI language.
25739  This is the proper translation for strings that only occur in the dialogs
25740  or on buttons, such as this one:
25741 \end_layout
25742
25743 \begin_layout LyX-Code
25744 _addtobib Add to bibliography only.
25745 \end_layout
25746
25747 \begin_layout Standard
25748 Several of these translatable strings are predefined in 
25749 \begin_inset Flex Code
25750 status collapsed
25751
25752 \begin_layout Plain Layout
25753 stdciteformats.inc
25754 \end_layout
25755
25756 \end_inset
25757
25758  and the diverse 
25759 \begin_inset Flex Code
25760 status collapsed
25761
25762 \begin_layout Plain Layout
25763 *.citeengine
25764 \end_layout
25765
25766 \end_inset
25767
25768  files.
25769  Note that these are not macros, in the sense just defined.
25770  They will not be expanded.
25771 \end_layout
25772
25773 \begin_layout Standard
25774 So here then is an example that uses several of these features:
25775 \begin_inset VSpace defskip
25776 \end_inset
25777
25778
25779 \end_layout
25780
25781 \begin_layout Standard
25782 \noindent
25783
25784 \family sans
25785 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
25786 \end_layout
25787
25788 \begin_layout Standard
25789 \begin_inset VSpace defskip
25790 \end_inset
25791
25792 This defines a macro that prints the author, followed by a comma, if the
25793  
25794 \begin_inset Flex Code
25795 status collapsed
25796
25797 \begin_layout Plain Layout
25798 author
25799 \end_layout
25800
25801 \end_inset
25802
25803  key is defined, or else prints the name of the editor, followed by the
25804  
25805 \begin_inset Flex Code
25806 status collapsed
25807
25808 \begin_layout Plain Layout
25809 B_edtext
25810 \end_layout
25811
25812 \end_inset
25813
25814  or its translation (it is by default 
25815 \begin_inset Quotes eld
25816 \end_inset
25817
25818 ed.
25819 \begin_inset Quotes erd
25820 \end_inset
25821
25822 ), if the 
25823 \begin_inset Flex Code
25824 status collapsed
25825
25826 \begin_layout Plain Layout
25827 editor
25828 \end_layout
25829
25830 \end_inset
25831
25832  key is defined.
25833  Note that this is in fact defined in 
25834 \begin_inset Flex Code
25835 status collapsed
25836
25837 \begin_layout Plain Layout
25838 stdciteformats.inc
25839 \end_layout
25840
25841 \end_inset
25842
25843 , so you can use it in your own definitions, or re-definitions, if you load
25844  that file first.
25845 \end_layout
25846
25847 \begin_layout Section
25848 \begin_inset CommandInset label
25849 LatexCommand label
25850 name "sec:Tags-for-XHTML"
25851
25852 \end_inset
25853
25854 Tags for XHTML output
25855 \end_layout
25856
25857 \begin_layout Standard
25858 As with \SpecialChar LaTeX
25859  or DocBook, the format of \SpecialChar LyX
25860 's XHTML output is also controlled by
25861  layout information.
25862  In general, \SpecialChar LyX
25863  provides sensible defaults and, as mentioned earlier, it will
25864  even construct default CSS style rules from the other layout tags.
25865  For example, \SpecialChar LyX
25866  will attempt to use the information provided in the 
25867 \begin_inset Flex Code
25868 status collapsed
25869
25870 \begin_layout Plain Layout
25871 Font
25872 \end_layout
25873
25874 \end_inset
25875
25876  declaration for the Chapter style to write CSS that will appropriately
25877  format chapter headings.
25878 \end_layout
25879
25880 \begin_layout Standard
25881 In many cases, then, you may not have to do anything at all to get acceptable
25882  XHTML output for your own environments, custom insets, and so forth.
25883  But in some cases you will, and so \SpecialChar LyX
25884  provides a number of layout tags that
25885  can be used to customize the XHTML and CSS that are generated.
25886 \end_layout
25887
25888 \begin_layout Standard
25889 Note that there are two tags, 
25890 \begin_inset Flex Code
25891 status collapsed
25892
25893 \begin_layout Plain Layout
25894 HTMLPreamble
25895 \end_layout
25896
25897 \end_inset
25898
25899  and 
25900 \begin_inset Flex Code
25901 status collapsed
25902
25903 \begin_layout Plain Layout
25904 AddToHTMLPreamble
25905 \end_layout
25906
25907 \end_inset
25908
25909  that may appear outside style and inset declarations.
25910  See 
25911 \begin_inset CommandInset ref
25912 LatexCommand ref
25913 reference "subsec:General-text-class"
25914
25915 \end_inset
25916
25917  for details on these.
25918 \end_layout
25919
25920 \begin_layout Subsection
25921 \begin_inset CommandInset label
25922 LatexCommand label
25923 name "subsec:Paragraph-Style-XHTML"
25924
25925 \end_inset
25926
25927 Paragraph styles
25928 \end_layout
25929
25930 \begin_layout Standard
25931 The sort of XHTML \SpecialChar LyX
25932  outputs for a paragraph depends upon whether we are dealing
25933  with a normal paragraph, a command, or an environment, where this is itself
25934  determined by the contents of the corresponding 
25935 \begin_inset Flex Code
25936 status collapsed
25937
25938 \begin_layout Plain Layout
25939 \SpecialChar LaTeX
25940 Type
25941 \end_layout
25942
25943 \end_inset
25944
25945  tag.
25946  
25947 \end_layout
25948
25949 \begin_layout Standard
25950 For a command or normal paragraph, the output XHTML has the following form:
25951 \end_layout
25952
25953 \begin_layout LyX-Code
25954
25955 \family sans
25956 <tag attr=
25957 \begin_inset Quotes erd
25958 \end_inset
25959
25960 value
25961 \begin_inset Quotes erd
25962 \end_inset
25963
25964 >
25965 \end_layout
25966
25967 \begin_layout LyX-Code
25968
25969 \family sans
25970 <labeltag attr=
25971 \begin_inset Quotes erd
25972 \end_inset
25973
25974 value
25975 \begin_inset Quotes erd
25976 \end_inset
25977
25978 >Label</labeltag>
25979 \end_layout
25980
25981 \begin_layout LyX-Code
25982
25983 \family sans
25984 Contents of the paragraph.
25985 \end_layout
25986
25987 \begin_layout LyX-Code
25988
25989 \family sans
25990 </tag>
25991 \end_layout
25992
25993 \begin_layout Standard
25994 The label tags are of course omitted if the paragraph does not have a label.
25995 \end_layout
25996
25997 \begin_layout Standard
25998 For an environment that is not some sort of list, the XHTML takes this form:
25999 \end_layout
26000
26001 \begin_layout LyX-Code
26002
26003 \family sans
26004 <tag attr=
26005 \begin_inset Quotes erd
26006 \end_inset
26007
26008 value
26009 \begin_inset Quotes erd
26010 \end_inset
26011
26012 >
26013 \end_layout
26014
26015 \begin_layout LyX-Code
26016
26017 \family sans
26018 <itemtag attr=
26019 \begin_inset Quotes erd
26020 \end_inset
26021
26022 value
26023 \begin_inset Quotes erd
26024 \end_inset
26025
26026 ><labeltag attr=
26027 \begin_inset Quotes erd
26028 \end_inset
26029
26030 value
26031 \begin_inset Quotes erd
26032 \end_inset
26033
26034 >Environment Label</labeltag>First paragraph.</itemtag>
26035 \end_layout
26036
26037 \begin_layout LyX-Code
26038
26039 \family sans
26040 <itemtag>Second paragraph.</itemtag>
26041 \end_layout
26042
26043 \begin_layout LyX-Code
26044
26045 \family sans
26046 </tag>
26047 \end_layout
26048
26049 \begin_layout Standard
26050 Note that the label is output only for the first paragraph, as it should
26051  be for a theorem, for example.
26052  
26053 \end_layout
26054
26055 \begin_layout Standard
26056 For a list, we have one of these forms:
26057 \end_layout
26058
26059 \begin_layout LyX-Code
26060
26061 \family sans
26062 <tag attr=
26063 \begin_inset Quotes erd
26064 \end_inset
26065
26066 value
26067 \begin_inset Quotes erd
26068 \end_inset
26069
26070 >
26071 \end_layout
26072
26073 \begin_layout LyX-Code
26074
26075 \family sans
26076 <itemtag attr=
26077 \begin_inset Quotes erd
26078 \end_inset
26079
26080 value
26081 \begin_inset Quotes erd
26082 \end_inset
26083
26084 ><labeltag attr=
26085 \begin_inset Quotes erd
26086 \end_inset
26087
26088 value
26089 \begin_inset Quotes erd
26090 \end_inset
26091
26092 >List Label</labeltag>First item.</itemtag>
26093 \end_layout
26094
26095 \begin_layout LyX-Code
26096
26097 \family sans
26098 <itemtag attr=
26099 \begin_inset Quotes erd
26100 \end_inset
26101
26102 value
26103 \begin_inset Quotes erd
26104 \end_inset
26105
26106 ><labeltag attr=
26107 \begin_inset Quotes erd
26108 \end_inset
26109
26110 value
26111 \begin_inset Quotes erd
26112 \end_inset
26113
26114 >List Label</labeltag>Second item.</itemtag>
26115 \end_layout
26116
26117 \begin_layout LyX-Code
26118
26119 \family sans
26120 </tag>
26121 \end_layout
26122
26123 \begin_layout LyX-Code
26124
26125 \end_layout
26126
26127 \begin_layout LyX-Code
26128
26129 \family sans
26130 <tag attr=
26131 \begin_inset Quotes erd
26132 \end_inset
26133
26134 value
26135 \begin_inset Quotes erd
26136 \end_inset
26137
26138 >
26139 \end_layout
26140
26141 \begin_layout LyX-Code
26142
26143 \family sans
26144 <labeltag attr=
26145 \begin_inset Quotes erd
26146 \end_inset
26147
26148 value
26149 \begin_inset Quotes erd
26150 \end_inset
26151
26152 >List Label</labeltag><itemtag attr=
26153 \begin_inset Quotes erd
26154 \end_inset
26155
26156 value
26157 \begin_inset Quotes erd
26158 \end_inset
26159
26160 >First item.</itemtag>
26161 \end_layout
26162
26163 \begin_layout LyX-Code
26164
26165 \family sans
26166 <labeltag attr=
26167 \begin_inset Quotes erd
26168 \end_inset
26169
26170 value
26171 \begin_inset Quotes erd
26172 \end_inset
26173
26174 >List Label</labeltag><itemtag attr=
26175 \begin_inset Quotes erd
26176 \end_inset
26177
26178 value
26179 \begin_inset Quotes erd
26180 \end_inset
26181
26182 >Second item.</itemtag>
26183 \end_layout
26184
26185 \begin_layout LyX-Code
26186
26187 \family sans
26188 </tag>
26189 \end_layout
26190
26191 \begin_layout Standard
26192 Note the different orders of 
26193 \begin_inset Flex Code
26194 status collapsed
26195
26196 \begin_layout Plain Layout
26197 labeltag
26198 \end_layout
26199
26200 \end_inset
26201
26202  and 
26203 \begin_inset Flex Code
26204 status collapsed
26205
26206 \begin_layout Plain Layout
26207 itemtag
26208 \end_layout
26209
26210 \end_inset
26211
26212 .
26213  Which order we get depends upon the setting of 
26214 \begin_inset Flex Code
26215 status collapsed
26216
26217 \begin_layout Plain Layout
26218 HTMLLabelFirst
26219 \end_layout
26220
26221 \end_inset
26222
26223 : If 
26224 \begin_inset Flex Code
26225 status collapsed
26226
26227 \begin_layout Plain Layout
26228 HTMLLabelFirst
26229 \end_layout
26230
26231 \end_inset
26232
26233  is false (the default), you get the first of these, with the label within
26234  the item; if true, you get the second, with the label outside the item.
26235 \end_layout
26236
26237 \begin_layout Standard
26238 The specific tags and attributes output for each paragraph type can be controlle
26239 d by means of the layout tags we are about to describe.
26240  As mentioned earlier, however, \SpecialChar LyX
26241  uses sensible defaults for many of these,
26242  so you often may not need to do very much to get good XHTML output.
26243  Think of the available tags as there so you can tweak things to your liking.
26244 \end_layout
26245
26246 \begin_layout Description
26247 \begin_inset Flex Code
26248 status collapsed
26249
26250 \begin_layout Plain Layout
26251 HTMLAttr
26252 \end_layout
26253
26254 \end_inset
26255
26256  [
26257 \begin_inset Flex Code
26258 status collapsed
26259
26260 \begin_layout Plain Layout
26261 string
26262 \end_layout
26263
26264 \end_inset
26265
26266 ] Specifies attribute information to be output with the main tag.
26267  For example, 
26268 \begin_inset Quotes eld
26269 \end_inset
26270
26271
26272 \begin_inset Flex Code
26273 status collapsed
26274
26275 \begin_layout Plain Layout
26276 class=`mydiv'
26277 \end_layout
26278
26279 \end_inset
26280
26281
26282 \begin_inset Quotes erd
26283 \end_inset
26284
26285 .
26286  By default, \SpecialChar LyX
26287  will output 
26288 \begin_inset Quotes eld
26289 \end_inset
26290
26291
26292 \begin_inset Flex Code
26293 status collapsed
26294
26295 \begin_layout Plain Layout
26296 class=`layoutname'
26297 \end_layout
26298
26299 \end_inset
26300
26301
26302 \begin_inset Quotes erd
26303 \end_inset
26304
26305 , where 
26306 \begin_inset Flex Code
26307 status collapsed
26308
26309 \begin_layout Plain Layout
26310 layoutname
26311 \end_layout
26312
26313 \end_inset
26314
26315  is the \SpecialChar LyX
26316  name of the layout, made lowercase, for example: chapter.
26317  This should 
26318 \emph on
26319 not
26320 \emph default
26321  contain any style information.
26322  Use 
26323 \begin_inset Flex Code
26324 status collapsed
26325
26326 \begin_layout Plain Layout
26327 HTMLStyle
26328 \end_layout
26329
26330 \end_inset
26331
26332  for that purpose.
26333 \end_layout
26334
26335 \begin_layout Description
26336 \begin_inset Flex Code
26337 status collapsed
26338
26339 \begin_layout Plain Layout
26340 HTMLForceCSS
26341 \end_layout
26342
26343 \end_inset
26344
26345  [
26346 \begin_inset Flex Code
26347 status collapsed
26348
26349 \begin_layout Plain Layout
26350
26351 \emph on
26352 0
26353 \emph default
26354 ,1
26355 \end_layout
26356
26357 \end_inset
26358
26359 ] Whether to output the default CSS information \SpecialChar LyX
26360  generates for this layout,
26361  even if additional information is explicitly provided via 
26362 \begin_inset Flex Code
26363 status collapsed
26364
26365 \begin_layout Plain Layout
26366 HTMLStyle
26367 \end_layout
26368
26369 \end_inset
26370
26371 .
26372  Setting this to 
26373 \begin_inset Flex Code
26374 status collapsed
26375
26376 \begin_layout Plain Layout
26377 1
26378 \end_layout
26379
26380 \end_inset
26381
26382  allows you to alter or augment the generated CSS, rather than to override
26383  it completely.
26384  Default is 
26385 \begin_inset Flex Code
26386 status collapsed
26387
26388 \begin_layout Plain Layout
26389 0
26390 \end_layout
26391
26392 \end_inset
26393
26394 .
26395 \end_layout
26396
26397 \begin_layout Description
26398 \begin_inset Flex Code
26399 status collapsed
26400
26401 \begin_layout Plain Layout
26402 HTMLItem
26403 \end_layout
26404
26405 \end_inset
26406
26407  [
26408 \begin_inset Flex Code
26409 status collapsed
26410
26411 \begin_layout Plain Layout
26412 string
26413 \end_layout
26414
26415 \end_inset
26416
26417 ] The tag to be used for individual paragraphs of environments, replacing
26418  
26419 \begin_inset Flex Code
26420 status collapsed
26421
26422 \begin_layout Plain Layout
26423 itemtag
26424 \end_layout
26425
26426 \end_inset
26427
26428  in the examples above.
26429  Defaults to 
26430 \begin_inset Flex Code
26431 status collapsed
26432
26433 \begin_layout Plain Layout
26434 div
26435 \end_layout
26436
26437 \end_inset
26438
26439 .
26440 \end_layout
26441
26442 \begin_layout Description
26443 \begin_inset Flex Code
26444 status collapsed
26445
26446 \begin_layout Plain Layout
26447 HTMLItemAttr
26448 \end_layout
26449
26450 \end_inset
26451
26452  [
26453 \begin_inset Flex Code
26454 status collapsed
26455
26456 \begin_layout Plain Layout
26457 string
26458 \end_layout
26459
26460 \end_inset
26461
26462 ] Attributes for the item tag.
26463  Defaults to
26464 \begin_inset Newline newline
26465 \end_inset
26466
26467
26468 \begin_inset Quotes eld
26469 \end_inset
26470
26471
26472 \begin_inset Flex Code
26473 status collapsed
26474
26475 \begin_layout Plain Layout
26476 class=`layoutname_item'
26477 \end_layout
26478
26479 \end_inset
26480
26481
26482 \begin_inset Quotes erd
26483 \end_inset
26484
26485 .
26486  This should 
26487 \emph on
26488 not
26489 \emph default
26490  contain any style information.
26491  Use 
26492 \begin_inset Flex Code
26493 status collapsed
26494
26495 \begin_layout Plain Layout
26496 HTMLStyle
26497 \end_layout
26498
26499 \end_inset
26500
26501  for that purpose.
26502 \end_layout
26503
26504 \begin_layout Description
26505 \begin_inset Flex Code
26506 status collapsed
26507
26508 \begin_layout Plain Layout
26509 HTMLLabel
26510 \end_layout
26511
26512 \end_inset
26513
26514  [
26515 \begin_inset Flex Code
26516 status collapsed
26517
26518 \begin_layout Plain Layout
26519 string
26520 \end_layout
26521
26522 \end_inset
26523
26524 ] The tag to be used for paragraph and item labels, replacing 
26525 \begin_inset Flex Code
26526 status collapsed
26527
26528 \begin_layout Plain Layout
26529 labeltag
26530 \end_layout
26531
26532 \end_inset
26533
26534  in the examples above.
26535  Defaults to 
26536 \begin_inset Flex Code
26537 status collapsed
26538
26539 \begin_layout Plain Layout
26540 span
26541 \end_layout
26542
26543 \end_inset
26544
26545 , unless 
26546 \begin_inset Flex Code
26547 status collapsed
26548
26549 \begin_layout Plain Layout
26550 LabelType
26551 \end_layout
26552
26553 \end_inset
26554
26555  is either 
26556 \begin_inset Flex Code
26557 status collapsed
26558
26559 \begin_layout Plain Layout
26560 Top_Environment
26561 \end_layout
26562
26563 \end_inset
26564
26565  or 
26566 \begin_inset Flex Code
26567 status collapsed
26568
26569 \begin_layout Plain Layout
26570 Centered_Top_Environment
26571 \end_layout
26572
26573 \end_inset
26574
26575 , in which case it defaults to 
26576 \begin_inset Flex Code
26577 status collapsed
26578
26579 \begin_layout Plain Layout
26580 div
26581 \end_layout
26582
26583 \end_inset
26584
26585 .
26586 \end_layout
26587
26588 \begin_layout Description
26589 \begin_inset Flex Code
26590 status collapsed
26591
26592 \begin_layout Plain Layout
26593 HTMLLabelAttr
26594 \end_layout
26595
26596 \end_inset
26597
26598  [
26599 \begin_inset Flex Code
26600 status collapsed
26601
26602 \begin_layout Plain Layout
26603 string
26604 \end_layout
26605
26606 \end_inset
26607
26608 ] Attributes for the label tag.
26609  Defaults to
26610 \begin_inset Newline newline
26611 \end_inset
26612
26613
26614 \begin_inset Quotes eld
26615 \end_inset
26616
26617
26618 \begin_inset Flex Code
26619 status collapsed
26620
26621 \begin_layout Plain Layout
26622 class=`layoutname_label'
26623 \end_layout
26624
26625 \end_inset
26626
26627
26628 \begin_inset Quotes erd
26629 \end_inset
26630
26631 .
26632  This should 
26633 \emph on
26634 not
26635 \emph default
26636  contain any style information.
26637  Use 
26638 \begin_inset Flex Code
26639 status collapsed
26640
26641 \begin_layout Plain Layout
26642 HTMLStyle
26643 \end_layout
26644
26645 \end_inset
26646
26647  for that purpose.
26648 \end_layout
26649
26650 \begin_layout Description
26651 \begin_inset Flex Code
26652 status collapsed
26653
26654 \begin_layout Plain Layout
26655 HTMLLabelFirst
26656 \end_layout
26657
26658 \end_inset
26659
26660  [
26661 \begin_inset Flex Code
26662 status collapsed
26663
26664 \begin_layout Plain Layout
26665
26666 \emph on
26667 0
26668 \emph default
26669 ,1
26670 \end_layout
26671
26672 \end_inset
26673
26674 ] Meaningful only for list-like environments, this tag controls whether
26675  the label tag is output before or inside the item tag.
26676  This is used, for example, in the description environment, where we want
26677  `
26678 \begin_inset Flex Code
26679 status collapsed
26680
26681 \begin_layout Plain Layout
26682 <dt>\SpecialChar ldots
26683 </dt><dd>\SpecialChar ldots
26684 </dd>
26685 \end_layout
26686
26687 \end_inset
26688
26689 .
26690  Default is 
26691 \begin_inset Flex Code
26692 status collapsed
26693
26694 \begin_layout Plain Layout
26695 0
26696 \end_layout
26697
26698 \end_inset
26699
26700 : The label tag is output inside the item tag.
26701 \end_layout
26702
26703 \begin_layout Description
26704 \begin_inset Flex Code
26705 status collapsed
26706
26707 \begin_layout Plain Layout
26708 HTMLPreamble
26709 \end_layout
26710
26711 \end_inset
26712
26713  Information to be output in the 
26714 \begin_inset Flex Code
26715 status collapsed
26716
26717 \begin_layout Plain Layout
26718 <head>
26719 \end_layout
26720
26721 \end_inset
26722
26723  section when this style is used.
26724  This might, for example, be used to include a 
26725 \begin_inset Flex Code
26726 status collapsed
26727
26728 \begin_layout Plain Layout
26729 <script>
26730 \end_layout
26731
26732 \end_inset
26733
26734  block defining an 
26735 \begin_inset Flex Code
26736 status collapsed
26737
26738 \begin_layout Plain Layout
26739 onclick
26740 \end_layout
26741
26742 \end_inset
26743
26744  handler.
26745 \end_layout
26746
26747 \begin_layout Description
26748 \begin_inset Flex Code
26749 status collapsed
26750
26751 \begin_layout Plain Layout
26752 HTMLStyle
26753 \end_layout
26754
26755 \end_inset
26756
26757  CSS style information to be included when this style is used.
26758  Note that this will automatically be wrapped in a layout-generated 
26759 \begin_inset Flex Code
26760 status collapsed
26761
26762 \begin_layout Plain Layout
26763 <style>
26764 \end_layout
26765
26766 \end_inset
26767
26768  block, so only the CSS itself need be included.
26769  Must end with 
26770 \begin_inset Flex Code
26771 status collapsed
26772
26773 \begin_layout Plain Layout
26774 EndHTMLStyle
26775 \end_layout
26776
26777 \end_inset
26778
26779 .
26780 \end_layout
26781
26782 \begin_layout Description
26783 \begin_inset Flex Code
26784 status collapsed
26785
26786 \begin_layout Plain Layout
26787 HTMLTag
26788 \end_layout
26789
26790 \end_inset
26791
26792  [
26793 \begin_inset Flex Code
26794 status collapsed
26795
26796 \begin_layout Plain Layout
26797 string
26798 \end_layout
26799
26800 \end_inset
26801
26802 ] The tag to be used for the main label, replacing 
26803 \begin_inset Flex Code
26804 status collapsed
26805
26806 \begin_layout Plain Layout
26807 tag
26808 \end_layout
26809
26810 \end_inset
26811
26812  in the examples above.
26813  Defaults to 
26814 \begin_inset Flex Code
26815 status collapsed
26816
26817 \begin_layout Plain Layout
26818 div
26819 \end_layout
26820
26821 \end_inset
26822
26823 .
26824 \end_layout
26825
26826 \begin_layout Description
26827 \begin_inset Flex Code
26828 status collapsed
26829
26830 \begin_layout Plain Layout
26831 HTMLTitle
26832 \end_layout
26833
26834 \end_inset
26835
26836  [
26837 \begin_inset Flex Code
26838 status collapsed
26839
26840 \begin_layout Plain Layout
26841
26842 \emph on
26843 0
26844 \emph default
26845 ,1
26846 \end_layout
26847
26848 \end_inset
26849
26850 ] Marks this style as the one to be used to generate the 
26851 \begin_inset Flex Code
26852 status collapsed
26853
26854 \begin_layout Plain Layout
26855 <title>
26856 \end_layout
26857
26858 \end_inset
26859
26860  tag for the XHTML file.
26861  By default, it is false.
26862  The 
26863 \begin_inset Flex Code
26864 status collapsed
26865
26866 \begin_layout Plain Layout
26867 stdtitle.inc
26868 \end_layout
26869
26870 \end_inset
26871
26872  file sets it to true for the 
26873 \begin_inset Flex Code
26874 status collapsed
26875
26876 \begin_layout Plain Layout
26877 title
26878 \end_layout
26879
26880 \end_inset
26881
26882  environment.
26883  
26884 \end_layout
26885
26886 \begin_layout Subsection
26887 InsetLayout XHTML
26888 \end_layout
26889
26890 \begin_layout Standard
26891 The XHTML output of insets can also be controlled by information in layout
26892  files.
26893 \begin_inset Foot
26894 status collapsed
26895
26896 \begin_layout Plain Layout
26897 At present, this is true only for 
26898 \begin_inset Quotes eld
26899 \end_inset
26900
26901 text
26902 \begin_inset Quotes erd
26903 \end_inset
26904
26905  insets (insets you can type into) and is not true for 
26906 \begin_inset Quotes eld
26907 \end_inset
26908
26909 command
26910 \begin_inset Quotes erd
26911 \end_inset
26912
26913  insets (insets that are associated with dialog boxes).
26914 \end_layout
26915
26916 \end_inset
26917
26918  Here, too, \SpecialChar LyX
26919  tries to provide sensible defaults, and it constructs default
26920  CSS style rules.
26921  But everything can be customized.
26922 \end_layout
26923
26924 \begin_layout Standard
26925 The XHTML \SpecialChar LyX
26926  outputs for an inset has the following form:
26927 \end_layout
26928
26929 \begin_layout LyX-Code
26930 <tag attr=
26931 \begin_inset Quotes erd
26932 \end_inset
26933
26934 value
26935 \begin_inset Quotes erd
26936 \end_inset
26937
26938 >
26939 \end_layout
26940
26941 \begin_layout LyX-Code
26942 <labeltag>Label</labeltag>
26943 \end_layout
26944
26945 \begin_layout LyX-Code
26946 <innertag attr=
26947 \begin_inset Quotes erd
26948 \end_inset
26949
26950 value
26951 \begin_inset Quotes erd
26952 \end_inset
26953
26954 >Contents of the inset.</innertag>
26955 \end_layout
26956
26957 \begin_layout LyX-Code
26958 </tag>
26959 \end_layout
26960
26961 \begin_layout Standard
26962 If the inset permits multiple paragraphs—that is, if 
26963 \begin_inset Flex Code
26964 status collapsed
26965
26966 \begin_layout Plain Layout
26967 MultiPar
26968 \end_layout
26969
26970 \end_inset
26971
26972  is true—then the contents of the inset will itself be output as paragraphs
26973  formatted according to the styles used for those paragraphs (standard,
26974  quote, and the like).
26975  The label tag is of course omitted if the paragraph does not have a label
26976  and, at present, is always 
26977 \begin_inset Flex Code
26978 status collapsed
26979
26980 \begin_layout Plain Layout
26981 span
26982 \end_layout
26983
26984 \end_inset
26985
26986 .
26987  The inner tag is optional and, by default, does not appear.
26988 \end_layout
26989
26990 \begin_layout Standard
26991 The specific tags and attributes output for each inset can be controlled
26992  by means of the following layout tags.
26993 \end_layout
26994
26995 \begin_layout Description
26996 \begin_inset Flex Code
26997 status collapsed
26998
26999 \begin_layout Plain Layout
27000 HTMLAttr
27001 \end_layout
27002
27003 \end_inset
27004
27005  [
27006 \begin_inset Flex Code
27007 status collapsed
27008
27009 \begin_layout Plain Layout
27010 string
27011 \end_layout
27012
27013 \end_inset
27014
27015 ] Specifies attribute information to be output with the main tag.
27016  For example, 
27017 \begin_inset Quotes eld
27018 \end_inset
27019
27020
27021 \begin_inset Flex Code
27022 status collapsed
27023
27024 \begin_layout Plain Layout
27025 class=`myinset' onclick=`\SpecialChar ldots
27026 '
27027 \end_layout
27028
27029 \end_inset
27030
27031
27032 \begin_inset Quotes erd
27033 \end_inset
27034
27035 .
27036  By default, \SpecialChar LyX
27037  will output 
27038 \begin_inset Quotes eld
27039 \end_inset
27040
27041
27042 \begin_inset Flex Code
27043 status collapsed
27044
27045 \begin_layout Plain Layout
27046 class=`insetname'
27047 \end_layout
27048
27049 \end_inset
27050
27051
27052 \begin_inset Quotes erd
27053 \end_inset
27054
27055 , where 
27056 \begin_inset Flex Code
27057 status collapsed
27058
27059 \begin_layout Plain Layout
27060 insetname
27061 \end_layout
27062
27063 \end_inset
27064
27065  is the \SpecialChar LyX
27066  name of the inset, made lowercase and with non-alphanumeric characters
27067  converted to underscores, for example: footnote.
27068 \end_layout
27069
27070 \begin_layout Description
27071 \begin_inset Flex Code
27072 status collapsed
27073
27074 \begin_layout Plain Layout
27075 HTMLForceCSS
27076 \end_layout
27077
27078 \end_inset
27079
27080  [
27081 \begin_inset Flex Code
27082 status collapsed
27083
27084 \begin_layout Plain Layout
27085
27086 \emph on
27087 0
27088 \emph default
27089 ,1
27090 \end_layout
27091
27092 \end_inset
27093
27094 ] Whether to output the default CSS information \SpecialChar LyX
27095  generates for this layout,
27096  even if additional information is explicitly provided via 
27097 \begin_inset Flex Code
27098 status collapsed
27099
27100 \begin_layout Plain Layout
27101 HTMLStyle
27102 \end_layout
27103
27104 \end_inset
27105
27106 .
27107  Setting this to 
27108 \begin_inset Flex Code
27109 status collapsed
27110
27111 \begin_layout Plain Layout
27112 1
27113 \end_layout
27114
27115 \end_inset
27116
27117  allows you to alter or augment the generated CSS, rather than to override
27118  it completely.
27119  Default is 0.
27120 \end_layout
27121
27122 \begin_layout Description
27123 \begin_inset Flex Code
27124 status collapsed
27125
27126 \begin_layout Plain Layout
27127 HTMLInnerAttr
27128 \end_layout
27129
27130 \end_inset
27131
27132  [
27133 \begin_inset Flex Code
27134 status collapsed
27135
27136 \begin_layout Plain Layout
27137 string
27138 \end_layout
27139
27140 \end_inset
27141
27142 ] Attributes for the inner tag.
27143  Defaults to
27144 \begin_inset Newline newline
27145 \end_inset
27146
27147
27148 \begin_inset Quotes eld
27149 \end_inset
27150
27151
27152 \begin_inset Flex Code
27153 status collapsed
27154
27155 \begin_layout Plain Layout
27156 class=`insetname_inner'
27157 \end_layout
27158
27159 \end_inset
27160
27161
27162 \begin_inset Quotes erd
27163 \end_inset
27164
27165 .
27166 \end_layout
27167
27168 \begin_layout Description
27169 \begin_inset Flex Code
27170 status collapsed
27171
27172 \begin_layout Plain Layout
27173 HTMLInnerTag
27174 \end_layout
27175
27176 \end_inset
27177
27178  [
27179 \begin_inset Flex Code
27180 status collapsed
27181
27182 \begin_layout Plain Layout
27183 string
27184 \end_layout
27185
27186 \end_inset
27187
27188 ] The inner tag, replacing 
27189 \begin_inset Flex Code
27190 status collapsed
27191
27192 \begin_layout Plain Layout
27193 innertag
27194 \end_layout
27195
27196 \end_inset
27197
27198  in the examples above.
27199  By default, there is none.
27200 \end_layout
27201
27202 \begin_layout Description
27203 \begin_inset Flex Code
27204 status collapsed
27205
27206 \begin_layout Plain Layout
27207 HTMLIsBlock
27208 \end_layout
27209
27210 \end_inset
27211
27212  [
27213 \begin_inset Flex Code
27214 status collapsed
27215
27216 \begin_layout Plain Layout
27217 0,
27218 \emph on
27219 1
27220 \end_layout
27221
27222 \end_inset
27223
27224 ] Whether this inset represents a standalone block of text (such as a footnote)
27225  or instead represents material that is included in the surrounding text
27226  (such as a branch).
27227  Defaults to 1.
27228 \end_layout
27229
27230 \begin_layout Description
27231 \begin_inset Flex Code
27232 status collapsed
27233
27234 \begin_layout Plain Layout
27235 HTMLLabel
27236 \end_layout
27237
27238 \end_inset
27239
27240  [
27241 \begin_inset Flex Code
27242 status collapsed
27243
27244 \begin_layout Plain Layout
27245 string
27246 \end_layout
27247
27248 \end_inset
27249
27250 ] A label for this inset, possibly including a reference to a counter.
27251  For example, for footnote, it might be: 
27252 \begin_inset Flex Code
27253 status collapsed
27254
27255 \begin_layout Plain Layout
27256
27257 \backslash
27258 arabic{footnote}
27259 \end_layout
27260
27261 \end_inset
27262
27263 .
27264  This is optional, and there is no default.
27265 \end_layout
27266
27267 \begin_layout Description
27268 \begin_inset Flex Code
27269 status collapsed
27270
27271 \begin_layout Plain Layout
27272 HTMLPreamble
27273 \end_layout
27274
27275 \end_inset
27276
27277  Information to be output in the 
27278 \begin_inset Flex Code
27279 status collapsed
27280
27281 \begin_layout Plain Layout
27282 <head>
27283 \end_layout
27284
27285 \end_inset
27286
27287  section when this style is used.
27288  This might, for example, be used to include a 
27289 \begin_inset Flex Code
27290 status collapsed
27291
27292 \begin_layout Plain Layout
27293 <script>
27294 \end_layout
27295
27296 \end_inset
27297
27298  block defining an 
27299 \begin_inset Flex Code
27300 status collapsed
27301
27302 \begin_layout Plain Layout
27303 onclick
27304 \end_layout
27305
27306 \end_inset
27307
27308  handler.
27309 \end_layout
27310
27311 \begin_layout Description
27312 \begin_inset Flex Code
27313 status collapsed
27314
27315 \begin_layout Plain Layout
27316 HTMLStyle
27317 \end_layout
27318
27319 \end_inset
27320
27321  CSS style information to be included when this style is used.
27322  Note that this will automatically be wrapped in a layout-generated 
27323 \begin_inset Flex Code
27324 status collapsed
27325
27326 \begin_layout Plain Layout
27327 <style>
27328 \end_layout
27329
27330 \end_inset
27331
27332  block, so only the CSS itself need be included.
27333 \end_layout
27334
27335 \begin_layout Description
27336 \begin_inset Flex Code
27337 status collapsed
27338
27339 \begin_layout Plain Layout
27340 HTMLTag
27341 \end_layout
27342
27343 \end_inset
27344
27345  [
27346 \begin_inset Flex Code
27347 status collapsed
27348
27349 \begin_layout Plain Layout
27350 string
27351 \end_layout
27352
27353 \end_inset
27354
27355 ] The tag to be used for the main label, replacing 
27356 \begin_inset Flex Code
27357 status collapsed
27358
27359 \begin_layout Plain Layout
27360 tag
27361 \end_layout
27362
27363 \end_inset
27364
27365  in the examples above.
27366  The default depends upon the setting of 
27367 \begin_inset Flex Code
27368 status collapsed
27369
27370 \begin_layout Plain Layout
27371 MultiPar
27372 \end_layout
27373
27374 \end_inset
27375
27376 : If 
27377 \begin_inset Flex Code
27378 status collapsed
27379
27380 \begin_layout Plain Layout
27381 MultiPar
27382 \end_layout
27383
27384 \end_inset
27385
27386  is true, the default is 
27387 \begin_inset Flex Code
27388 status collapsed
27389
27390 \begin_layout Plain Layout
27391 div
27392 \end_layout
27393
27394 \end_inset
27395
27396 ; if it is false, the default is 
27397 \begin_inset Flex Code
27398 status collapsed
27399
27400 \begin_layout Plain Layout
27401 span
27402 \end_layout
27403
27404 \end_inset
27405
27406 .
27407 \end_layout
27408
27409 \begin_layout Subsection
27410 Float XHTML
27411 \end_layout
27412
27413 \begin_layout Standard
27414 The XHTML output for floats too can be controlled by layout information.
27415  The output has the following form:
27416 \end_layout
27417
27418 \begin_layout LyX-Code
27419 <tag attr=
27420 \begin_inset Quotes erd
27421 \end_inset
27422
27423 value
27424 \begin_inset Quotes erd
27425 \end_inset
27426
27427 >
27428 \end_layout
27429
27430 \begin_layout LyX-Code
27431 Contents of the float.
27432 \end_layout
27433
27434 \begin_layout LyX-Code
27435 </tag>
27436 \end_layout
27437
27438 \begin_layout Standard
27439 The caption, if there is one, is a separate inset and will be output as
27440  such.
27441  Its appearance can be controlled via the InsetLayout for caption insets.
27442  
27443 \end_layout
27444
27445 \begin_layout Description
27446 \begin_inset Flex Code
27447 status collapsed
27448
27449 \begin_layout Plain Layout
27450 HTMLAttr
27451 \end_layout
27452
27453 \end_inset
27454
27455  [
27456 \begin_inset Flex Code
27457 status collapsed
27458
27459 \begin_layout Plain Layout
27460 string
27461 \end_layout
27462
27463 \end_inset
27464
27465 ] Specifies attribute information to be output with the main tag.
27466  For example, 
27467 \begin_inset Quotes eld
27468 \end_inset
27469
27470
27471 \begin_inset Flex Code
27472 status collapsed
27473
27474 \begin_layout Plain Layout
27475 class=`myfloat' onclick=`\SpecialChar ldots
27476 '
27477 \end_layout
27478
27479 \end_inset
27480
27481
27482 \begin_inset Quotes erd
27483 \end_inset
27484
27485 .
27486  By default, \SpecialChar LyX
27487  will output 
27488 \begin_inset Quotes eld
27489 \end_inset
27490
27491
27492 \begin_inset Flex Code
27493 status collapsed
27494
27495 \begin_layout Plain Layout
27496 class=`float float-floattype'
27497 \end_layout
27498
27499 \end_inset
27500
27501
27502 \begin_inset Quotes erd
27503 \end_inset
27504
27505 , where 
27506 \begin_inset Flex Code
27507 status collapsed
27508
27509 \begin_layout Plain Layout
27510 floattype
27511 \end_layout
27512
27513 \end_inset
27514
27515  is \SpecialChar LyX
27516 's name for this type of float, as determined by the float declaration
27517  (see 
27518 \begin_inset CommandInset ref
27519 LatexCommand ref
27520 reference "subsec:Floats"
27521
27522 \end_inset
27523
27524 ), though made lowercase and with non-alphanumeric characters converted
27525  to underscores, for example: float-table.
27526 \end_layout
27527
27528 \begin_layout Description
27529 \begin_inset Flex Code
27530 status collapsed
27531
27532 \begin_layout Plain Layout
27533 HTMLStyle
27534 \end_layout
27535
27536 \end_inset
27537
27538  CSS style information to be included when this float is used.
27539  Note that this will automatically be wrapped in a layout-generated 
27540 \begin_inset Flex Code
27541 status collapsed
27542
27543 \begin_layout Plain Layout
27544 <style>
27545 \end_layout
27546
27547 \end_inset
27548
27549  block, so only the CSS itself need be included.
27550 \end_layout
27551
27552 \begin_layout Description
27553 \begin_inset Flex Code
27554 status collapsed
27555
27556 \begin_layout Plain Layout
27557 HTMLTag
27558 \end_layout
27559
27560 \end_inset
27561
27562  [
27563 \begin_inset Flex Code
27564 status collapsed
27565
27566 \begin_layout Plain Layout
27567 string
27568 \end_layout
27569
27570 \end_inset
27571
27572 ] The tag to be used for this float, replacing 
27573 \begin_inset Quotes eld
27574 \end_inset
27575
27576
27577 \begin_inset Flex Code
27578 status collapsed
27579
27580 \begin_layout Plain Layout
27581 tag
27582 \end_layout
27583
27584 \end_inset
27585
27586
27587 \begin_inset Quotes erd
27588 \end_inset
27589
27590  in the example above.
27591  The default is 
27592 \begin_inset Flex Code
27593 status collapsed
27594
27595 \begin_layout Plain Layout
27596 div
27597 \end_layout
27598
27599 \end_inset
27600
27601  and will rarely need changing.
27602 \end_layout
27603
27604 \begin_layout Subsection
27605 Bibliography formatting
27606 \end_layout
27607
27608 \begin_layout Standard
27609 The bibliography can be formatted using 
27610 \begin_inset Flex Code
27611 status collapsed
27612
27613 \begin_layout Plain Layout
27614 CiteFormat
27615 \end_layout
27616
27617 \end_inset
27618
27619  blocks.
27620  See 
27621 \begin_inset CommandInset ref
27622 LatexCommand ref
27623 reference "subsec:Citation-format-description"
27624
27625 \end_inset
27626
27627  for the details.
27628 \end_layout
27629
27630 \begin_layout Subsection
27631 \SpecialChar LyX
27632 -generated CSS
27633 \end_layout
27634
27635 \begin_layout Standard
27636 We have several times mentioned that \SpecialChar LyX
27637  will generate default CSS style rules
27638  for both insets and paragraph styles, based upon the other layout information
27639  that is provided.
27640  In this section, we shall say a word about which layout information \SpecialChar LyX
27641  uses
27642  and how.
27643 \end_layout
27644
27645 \begin_layout Standard
27646 At present, \SpecialChar LyX
27647  auto-generates CSS only for font information, making use of
27648  the 
27649 \begin_inset Flex Code
27650 status collapsed
27651
27652 \begin_layout Plain Layout
27653 Family
27654 \end_layout
27655
27656 \end_inset
27657
27658
27659 \begin_inset Flex Code
27660 status collapsed
27661
27662 \begin_layout Plain Layout
27663 Series
27664 \end_layout
27665
27666 \end_inset
27667
27668
27669 \begin_inset Flex Code
27670 status collapsed
27671
27672 \begin_layout Plain Layout
27673 Shape
27674 \end_layout
27675
27676 \end_inset
27677
27678 , and 
27679 \begin_inset Flex Code
27680 status collapsed
27681
27682 \begin_layout Plain Layout
27683 Size
27684 \end_layout
27685
27686 \end_inset
27687
27688  specified in the 
27689 \begin_inset Flex Code
27690 status collapsed
27691
27692 \begin_layout Plain Layout
27693 Font
27694 \end_layout
27695
27696 \end_inset
27697
27698  declaration (see 
27699 \begin_inset CommandInset ref
27700 LatexCommand ref
27701 reference "subsec:Font-description"
27702
27703 \end_inset
27704
27705 ).
27706  The translation is mostly straightforward and obvious.
27707  For example, 
27708 \begin_inset Quotes eld
27709 \end_inset
27710
27711
27712 \begin_inset Flex Code
27713 status collapsed
27714
27715 \begin_layout Plain Layout
27716 Family Sans
27717 \end_layout
27718
27719 \end_inset
27720
27721
27722 \begin_inset Quotes erd
27723 \end_inset
27724
27725  becomes 
27726 \begin_inset Quotes eld
27727 \end_inset
27728
27729
27730 \begin_inset Flex Code
27731 status collapsed
27732
27733 \begin_layout Plain Layout
27734 font-family: sans-serif;
27735 \end_layout
27736
27737 \end_inset
27738
27739
27740 \begin_inset Quotes erd
27741 \end_inset
27742
27743 .
27744  The correspondence of \SpecialChar LyX
27745  sizes and CSS sizes is a little less obvious but
27746  nonetheless intuitive.
27747  See the 
27748 \begin_inset Flex Code
27749 status collapsed
27750
27751 \begin_layout Plain Layout
27752 getSizeCSS()
27753 \end_layout
27754
27755 \end_inset
27756
27757  function in 
27758 \begin_inset Flex URL
27759 status collapsed
27760
27761 \begin_layout Plain Layout
27762
27763 src/FontInfo.cpp
27764 \end_layout
27765
27766 \end_inset
27767
27768  for the details.
27769 \change_inserted -970929547 1496610908
27770
27771 \end_layout
27772
27773 \begin_layout Section
27774
27775 \change_inserted -970929547 1496610966
27776 \begin_inset CommandInset label
27777 LatexCommand label
27778 name "sec:Tags-for-DocBook"
27779
27780 \end_inset
27781
27782 Tags for DocBook output
27783 \end_layout
27784
27785 \begin_layout Standard
27786
27787 \change_inserted -970929547 1496611615
27788 As with \SpecialChar LaTeX
27789  or XHTML, the format of \SpecialChar LyX
27790 's DocBook output is also controlled by
27791  layout information.
27792  In general, \SpecialChar LyX
27793  provides sensible defaults; however, much of the styling is
27794  lost during the conversion, as DocBook is strictly semantic and does not
27795  allow formatting.
27796  When possible, information from \SpecialChar LyX
27797  will be rendered in 
27798 \family typewriter
27799 role
27800 \family default
27801  attributes.
27802  
27803 \end_layout
27804
27805 \begin_layout Standard
27806
27807 \change_inserted -970929547 1496612080
27808 In many cases, then, you may not have to do anything at all to get acceptable
27809  DocBook output for your own environments, custom insets, and so forth.
27810  But in some cases you will, and so \SpecialChar LyX
27811  provides a number of layout tags that
27812  can be used to customize the DocBook that is generated.
27813 \end_layout
27814
27815 \begin_layout Standard
27816
27817 \change_inserted -970929547 1515109912
27818 Labels are rarely output, as they are redundant in DocBook: this information
27819  is carried by the tags themselves, and whether labels appear in the final
27820  documents (after processing of DocBook files) is controlled by the stylesheets.
27821  However, sometimes, labels are not redundant content, such as definition
27822  lists: in this case, the term being defined will be the label.
27823  
27824 \end_layout
27825
27826 \begin_layout Subsection
27827
27828 \change_inserted 1075283030 1597699417
27829 \begin_inset CommandInset label
27830 LatexCommand label
27831 name "subsec:Paragraph-Style-DocBook"
27832
27833 \end_inset
27834
27835
27836 \change_deleted 1075283030 1597699417
27837
27838 \begin_inset CommandInset label
27839 LatexCommand label
27840 name "subsec:Paragraph-Style-XHTML-1"
27841
27842 \end_inset
27843
27844
27845 \change_inserted -970929547 1496610966
27846 Paragraph styles
27847 \end_layout
27848
27849 \begin_layout Standard
27850
27851 \change_inserted -970929547 1496612059
27852 The sort of DocBook \SpecialChar LyX
27853  outputs for a paragraph depends upon whether we are
27854  dealing with a normal paragraph, a command, or an environment, where this
27855  is itself determined by the contents of the corresponding 
27856 \begin_inset Flex Code
27857 status collapsed
27858
27859 \begin_layout Plain Layout
27860
27861 \change_inserted -970929547 1496610966
27862 \SpecialChar LaTeX
27863 Type
27864 \change_unchanged
27865
27866 \end_layout
27867
27868 \end_inset
27869
27870  tag.
27871  
27872 \end_layout
27873
27874 \begin_layout Standard
27875
27876 \change_inserted -970929547 1496612107
27877 For a command or normal paragraph, the output DocBook has the following
27878  form:
27879 \end_layout
27880
27881 \begin_layout LyX-Code
27882
27883 \change_inserted -970929547 1515109666
27884 <tag attr>
27885 \end_layout
27886
27887 \begin_layout LyX-Code
27888
27889 \change_inserted -970929547 1496610966
27890 Contents of the paragraph.
27891 \end_layout
27892
27893 \begin_layout LyX-Code
27894
27895 \change_inserted -970929547 1496610966
27896 </tag>
27897 \end_layout
27898
27899 \begin_layout Standard
27900
27901 \change_inserted -970929547 1515109821
27902 For an environment that is not some sort of list, the generated DocBook
27903  takes this form:
27904 \end_layout
27905
27906 \begin_layout LyX-Code
27907
27908 \change_inserted -970929547 1515109671
27909 <tag attr>
27910 \end_layout
27911
27912 \begin_layout LyX-Code
27913
27914 \change_inserted -970929547 1496612114
27915 <itemtag>First paragraph.</itemtag>
27916 \end_layout
27917
27918 \begin_layout LyX-Code
27919
27920 \change_inserted -970929547 1496610966
27921 <itemtag>Second paragraph.</itemtag>
27922 \end_layout
27923
27924 \begin_layout LyX-Code
27925
27926 \change_inserted -970929547 1496610966
27927 </tag>
27928 \end_layout
27929
27930 \begin_layout Standard
27931
27932 \change_inserted -970929547 1515109825
27933 For a list, the resulting DocBook takes this form:
27934 \end_layout
27935
27936 \begin_layout LyX-Code
27937
27938 \change_inserted -970929547 1515109672
27939 <tag attr>
27940 \end_layout
27941
27942 \begin_layout LyX-Code
27943
27944 \change_inserted -970929547 1515109676
27945 <itemtag attr>First item.</itemtag>
27946 \end_layout
27947
27948 \begin_layout LyX-Code
27949
27950 \change_inserted -970929547 1515109678
27951 <itemtag attr>Second item.</itemtag>
27952 \end_layout
27953
27954 \begin_layout LyX-Code
27955
27956 \change_inserted -970929547 1496610966
27957 </tag>
27958 \end_layout
27959
27960 \begin_layout Standard
27961
27962 \change_inserted -970929547 1496612243
27963 The specific tags and roles output for each paragraph type can be controlled
27964  by means of the layout tags we are about to describe.
27965  Please note that, due to the very nature of DocBook, no sensible defaults
27966  really exist, and the values must always be carefully chosen.
27967  
27968 \end_layout
27969
27970 \begin_layout Description
27971
27972 \change_inserted -970929547 1515110057
27973 \begin_inset Flex Code
27974 status collapsed
27975
27976 \begin_layout Plain Layout
27977
27978 \change_inserted -970929547 1515109656
27979 DocBookAttr
27980 \change_unchanged
27981
27982 \end_layout
27983
27984 \end_inset
27985
27986  [
27987 \begin_inset Flex Code
27988 status collapsed
27989
27990 \begin_layout Plain Layout
27991
27992 \change_inserted -970929547 1496610966
27993 string
27994 \change_unchanged
27995
27996 \end_layout
27997
27998 \end_inset
27999
28000 ] Specifies attribute information to be output with the main tag, replacing
28001  
28002 \begin_inset Quotes eld
28003 \end_inset
28004
28005
28006 \begin_inset Flex Code
28007 status collapsed
28008
28009 \begin_layout Plain Layout
28010
28011 \change_inserted -970929547 1515110057
28012 attr
28013 \change_unchanged
28014
28015 \end_layout
28016
28017 \end_inset
28018
28019
28020 \begin_inset Quotes erd
28021 \end_inset
28022
28023  in the example above.
28024  This information can be used in further processing of the DocBook files.
28025  
28026 \change_unchanged
28027
28028 \end_layout
28029
28030 \begin_layout Description
28031
28032 \change_inserted -970929547 1496612296
28033 \begin_inset Flex Code
28034 status collapsed
28035
28036 \begin_layout Plain Layout
28037
28038 \change_inserted -970929547 1496612269
28039 DocBookTag
28040 \change_unchanged
28041
28042 \end_layout
28043
28044 \end_inset
28045
28046  [
28047 \begin_inset Flex Code
28048 status collapsed
28049
28050 \begin_layout Plain Layout
28051
28052 \change_inserted -970929547 1496610966
28053 string
28054 \change_unchanged
28055
28056 \end_layout
28057
28058 \end_inset
28059
28060 ] The tag to be used for this inset, replacing 
28061 \begin_inset Quotes eld
28062 \end_inset
28063
28064
28065 \begin_inset Flex Code
28066 status collapsed
28067
28068 \begin_layout Plain Layout
28069
28070 \change_inserted -970929547 1496612296
28071 tag
28072 \change_unchanged
28073
28074 \end_layout
28075
28076 \end_inset
28077
28078
28079 \begin_inset Quotes erd
28080 \end_inset
28081
28082  in the example above.
28083  The default is the name of the float and always needs to be changed, as
28084  DocBook provides no generic tag.
28085 \change_inserted 1075283030 1597698868
28086
28087 \end_layout
28088
28089 \begin_layout Description
28090
28091 \change_inserted 1075283030 1597699399
28092 \begin_inset Flex Code
28093 status collapsed
28094
28095 \begin_layout Plain Layout
28096
28097 \change_inserted 1075283030 1597698872
28098 DocBookTagType
28099 \change_unchanged
28100
28101 \end_layout
28102
28103 \end_inset
28104
28105  [
28106 \begin_inset Flex Code
28107 status collapsed
28108
28109 \begin_layout Plain Layout
28110
28111 \change_inserted 1075283030 1597700585
28112 block, paragraph, inline
28113 \change_unchanged
28114
28115 \end_layout
28116
28117 \end_inset
28118
28119 ] The new-line policy for this tag, see Section
28120 \begin_inset space ~
28121 \end_inset
28122
28123
28124 \begin_inset CommandInset ref
28125 LatexCommand ref
28126 reference "subsec:DocBook-New-line-policy"
28127 plural "false"
28128 caps "false"
28129 noprefix "false"
28130
28131 \end_inset
28132
28133  for the details.
28134  
28135 \change_unchanged
28136
28137 \end_layout
28138
28139 \begin_layout Subsection
28140
28141 \change_inserted 1075283030 1597699385
28142 New-line policy
28143 \begin_inset CommandInset label
28144 LatexCommand label
28145 name "subsec:DocBook-New-line-policy"
28146
28147 \end_inset
28148
28149
28150 \end_layout
28151
28152 \begin_layout Standard
28153
28154 \change_inserted 1075283030 1597698993
28155 For all tags, there are three possible policies for outputting new lines
28156  (given in the 
28157 \begin_inset Flex Code
28158 status collapsed
28159
28160 \begin_layout Plain Layout
28161
28162 \change_inserted 1075283030 1597698987
28163 DocBook*TagType
28164 \change_unchanged
28165
28166 \end_layout
28167
28168 \end_inset
28169
28170  attribute): 
28171 \end_layout
28172
28173 \begin_layout Itemize
28174
28175 \change_inserted 1075283030 1597699279
28176 \begin_inset Quotes eld
28177 \end_inset
28178
28179
28180 \begin_inset Flex Code
28181 status collapsed
28182
28183 \begin_layout Plain Layout
28184
28185 \change_inserted 1075283030 1597699012
28186 block
28187 \change_unchanged
28188
28189 \end_layout
28190
28191 \end_inset
28192
28193
28194 \begin_inset Quotes erd
28195 \end_inset
28196
28197 : the opening and closing tags are on their own lines (i.e.
28198  a line feed after and before the opening and the closing tags).
28199  Typical elements are floats.
28200  For instance: 
28201 \end_layout
28202
28203 \begin_layout LyX-Code
28204
28205 \change_inserted 1075283030 1597699194
28206 Content before
28207 \end_layout
28208
28209 \begin_layout LyX-Code
28210
28211 \change_inserted 1075283030 1597699194
28212 <blocktag>
28213 \end_layout
28214
28215 \begin_layout LyX-Code
28216
28217 \change_inserted 1075283030 1597699098
28218   Contents of the block.
28219 \end_layout
28220
28221 \begin_layout LyX-Code
28222
28223 \change_inserted 1075283030 1597699196
28224 </blocktag>
28225 \end_layout
28226
28227 \begin_layout LyX-Code
28228
28229 \change_inserted 1075283030 1597699198
28230 Content after
28231 \end_layout
28232
28233 \begin_layout Itemize
28234
28235 \change_inserted 1075283030 1597699289
28236 \begin_inset Quotes eld
28237 \end_inset
28238
28239
28240 \begin_inset Flex Code
28241 status collapsed
28242
28243 \begin_layout Plain Layout
28244
28245 \change_inserted 1075283030 1597699113
28246 paragraph
28247 \change_unchanged
28248
28249 \end_layout
28250
28251 \end_inset
28252
28253
28254 \begin_inset Quotes erd
28255 \end_inset
28256
28257 : the opening and closing tags are on the same, new line; a line feed is
28258  output before the opening tag and after the closing tag.
28259  Typical elements are paragraphs and list items.
28260  For instance: 
28261 \end_layout
28262
28263 \begin_layout LyX-Code
28264
28265 \change_inserted 1075283030 1597699186
28266 Content before
28267 \end_layout
28268
28269 \begin_layout LyX-Code
28270
28271 \change_inserted 1075283030 1597699357
28272 <paratag>Contents of the paragraph.</paratag>
28273 \end_layout
28274
28275 \begin_layout LyX-Code
28276
28277 \change_inserted 1075283030 1597699231
28278 Content after
28279 \end_layout
28280
28281 \begin_layout Itemize
28282
28283 \change_inserted 1075283030 1597699343
28284 \begin_inset Quotes eld
28285 \end_inset
28286
28287
28288 \begin_inset Flex Code
28289 status collapsed
28290
28291 \begin_layout Plain Layout
28292
28293 \change_inserted 1075283030 1597699307
28294 inline
28295 \change_unchanged
28296
28297 \end_layout
28298
28299 \end_inset
28300
28301
28302 \begin_inset Quotes erd
28303 \end_inset
28304
28305 : the opening and closing tags are on the same line as the rest of the content.
28306  No line feeds are output.
28307  Typical elements are fonts.
28308  For instance: 
28309 \end_layout
28310
28311 \begin_layout LyX-Code
28312
28313 \change_inserted 1075283030 1597699585
28314 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
28315 \end_layout
28316
28317 \begin_layout Standard
28318
28319 \change_inserted 1075283030 1597699585
28320 The default value is always 
28321 \begin_inset Quotes eld
28322 \end_inset
28323
28324
28325 \begin_inset Flex Code
28326 status collapsed
28327
28328 \begin_layout Plain Layout
28329
28330 \change_inserted 1075283030 1597699585
28331 block
28332 \change_unchanged
28333
28334 \end_layout
28335
28336 \end_inset
28337
28338
28339 \begin_inset Quotes erd
28340 \end_inset
28341
28342 .
28343 \change_unchanged
28344
28345 \end_layout
28346
28347 \begin_layout Subsection
28348
28349 \change_inserted -970929547 1515111533
28350 InsetLayout DocBook
28351 \change_unchanged
28352
28353 \end_layout
28354
28355 \begin_layout Standard
28356
28357 \change_inserted -970929547 1496611894
28358 The DocBook output of insets can also be controlled by information in layout
28359  files.
28360 \end_layout
28361
28362 \begin_layout Standard
28363
28364 \change_inserted -970929547 1496612045
28365 The DocBook \SpecialChar LyX
28366  outputs for an inset has the following form:
28367 \end_layout
28368
28369 \begin_layout LyX-Code
28370
28371 \change_inserted -970929547 1515110861
28372 <wrappertag wrapperattr>
28373 \end_layout
28374
28375 \begin_layout LyX-Code
28376
28377 \change_inserted -970929547 1515110868
28378   <tag attr>
28379 \end_layout
28380
28381 \begin_layout LyX-Code
28382
28383 \change_inserted -970929547 1515110869
28384     <innertag innerattr>
28385 \end_layout
28386
28387 \begin_layout LyX-Code
28388
28389 \change_inserted -970929547 1515110869
28390       Contents of the inset.
28391 \end_layout
28392
28393 \begin_layout LyX-Code
28394
28395 \change_inserted -970929547 1515110870
28396     </innertag>
28397 \end_layout
28398
28399 \begin_layout LyX-Code
28400
28401 \change_inserted -970929547 1515110871
28402   </tag>
28403 \end_layout
28404
28405 \begin_layout LyX-Code
28406
28407 \change_inserted -970929547 1515111172
28408 </wrappertag>
28409 \end_layout
28410
28411 \begin_layout Standard
28412
28413 \change_inserted -970929547 1515111186
28414 For an itemising inset, it rather looks like this: 
28415 \end_layout
28416
28417 \begin_layout LyX-Code
28418
28419 \change_inserted -970929547 1515111186
28420 <wrappertag wrapperattr>
28421 \end_layout
28422
28423 \begin_layout LyX-Code
28424
28425 \change_inserted -970929547 1515111186
28426   <tag attr>
28427 \end_layout
28428
28429 \begin_layout LyX-Code
28430
28431 \change_inserted -970929547 1515111186
28432     <innertag innerattr>
28433 \end_layout
28434
28435 \begin_layout LyX-Code
28436
28437 \change_inserted -970929547 1515111362
28438       <itemwrappertag itemwrapperattr>
28439 \end_layout
28440
28441 \begin_layout LyX-Code
28442
28443 \change_inserted -970929547 1515111364
28444         <itemlabeltag itemattr>
28445 \end_layout
28446
28447 \begin_layout LyX-Code
28448
28449 \change_inserted -970929547 1515111367
28450           Label of the first item.
28451 \end_layout
28452
28453 \begin_layout LyX-Code
28454
28455 \change_inserted -970929547 1515111362
28456         </itemtag>
28457 \change_unchanged
28458
28459 \end_layout
28460
28461 \begin_layout LyX-Code
28462
28463 \change_inserted -970929547 1515111517
28464         <itemtag itemattr>
28465 \end_layout
28466
28467 \begin_layout LyX-Code
28468
28469 \change_inserted -970929547 1515111517
28470           <itemtag itemattr>
28471 \change_unchanged
28472
28473 \end_layout
28474
28475 \begin_layout LyX-Code
28476
28477 \change_inserted -970929547 1515111516
28478             Contents of the first item.
28479 \end_layout
28480
28481 \begin_layout LyX-Code
28482
28483 \change_inserted -970929547 1515111514
28484           </itemtag>
28485 \change_unchanged
28486
28487 \end_layout
28488
28489 \begin_layout LyX-Code
28490
28491 \change_inserted -970929547 1515111247
28492         </itemtag>
28493 \change_unchanged
28494
28495 \end_layout
28496
28497 \begin_layout LyX-Code
28498
28499 \change_inserted -970929547 1515111221
28500       </itemwrappertag>
28501 \end_layout
28502
28503 \begin_layout LyX-Code
28504
28505 \change_inserted -970929547 1515111370
28506       <itemwrappertag itemwrapperattr>
28507 \end_layout
28508
28509 \begin_layout LyX-Code
28510
28511 \change_inserted -970929547 1515111370
28512         <itemlabeltag itemattr>
28513 \end_layout
28514
28515 \begin_layout LyX-Code
28516
28517 \change_inserted -970929547 1515111372
28518           Label of the second item.
28519 \end_layout
28520
28521 \begin_layout LyX-Code
28522
28523 \change_inserted -970929547 1515111370
28524         </itemtag>
28525 \change_unchanged
28526
28527 \end_layout
28528
28529 \begin_layout LyX-Code
28530
28531 \change_inserted -970929547 1515111504
28532         <itemtag itemattr>
28533 \end_layout
28534
28535 \begin_layout LyX-Code
28536
28537 \change_inserted -970929547 1515111505
28538           <itemtag itemattr>
28539 \change_unchanged
28540
28541 \end_layout
28542
28543 \begin_layout LyX-Code
28544
28545 \change_inserted -970929547 1515111507
28546             Contents of the second item.
28547 \end_layout
28548
28549 \begin_layout LyX-Code
28550
28551 \change_inserted -970929547 1515111509
28552           </itemtag>
28553 \change_unchanged
28554
28555 \end_layout
28556
28557 \begin_layout LyX-Code
28558
28559 \change_inserted -970929547 1515111251
28560         </itemtag>
28561 \change_unchanged
28562
28563 \end_layout
28564
28565 \begin_layout LyX-Code
28566
28567 \change_inserted -970929547 1515111221
28568       </itemwrappertag>
28569 \change_unchanged
28570
28571 \end_layout
28572
28573 \begin_layout LyX-Code
28574
28575 \change_inserted -970929547 1515111219
28576       ...
28577 \change_unchanged
28578
28579 \end_layout
28580
28581 \begin_layout LyX-Code
28582
28583 \change_inserted -970929547 1515111186
28584     </innertag>
28585 \end_layout
28586
28587 \begin_layout LyX-Code
28588
28589 \change_inserted -970929547 1515111186
28590   </tag>
28591 \end_layout
28592
28593 \begin_layout LyX-Code
28594
28595 \change_inserted -970929547 1515111186
28596 </wrappertag>
28597 \end_layout
28598
28599 \begin_layout Standard
28600
28601 \change_inserted -970929547 1515111183
28602 If the inset permits multiple paragraphs—that is, if 
28603 \begin_inset Flex Code
28604 status collapsed
28605
28606 \begin_layout Plain Layout
28607
28608 \change_inserted -970929547 1496610966
28609 MultiPar
28610 \change_unchanged
28611
28612 \end_layout
28613
28614 \end_inset
28615
28616  is true—then the contents of the inset will itself be output as paragraphs
28617  formatted according to the styles used for those paragraphs (standard,
28618  quote, and the like).
28619  The inner tag is optional and, by default, does not appear.
28620 \end_layout
28621
28622 \begin_layout Standard
28623
28624 \change_inserted -970929547 1496610966
28625 The specific tags and attributes output for each inset can be controlled
28626  by means of the following layout tags.
28627 \end_layout
28628
28629 \begin_layout Description
28630
28631 \change_inserted -970929547 1515110317
28632 \begin_inset Flex Code
28633 status collapsed
28634
28635 \begin_layout Plain Layout
28636
28637 \change_inserted -970929547 1515109695
28638 DocBookAttr
28639 \change_unchanged
28640
28641 \end_layout
28642
28643 \end_inset
28644
28645  [
28646 \begin_inset Flex Code
28647 status collapsed
28648
28649 \begin_layout Plain Layout
28650
28651 \change_inserted -970929547 1496611854
28652 string
28653 \change_unchanged
28654
28655 \end_layout
28656
28657 \end_inset
28658
28659 ] Specifies attribute information to be output with the main tag, replacing
28660  
28661 \begin_inset Quotes eld
28662 \end_inset
28663
28664
28665 \begin_inset Flex Code
28666 status collapsed
28667
28668 \begin_layout Plain Layout
28669
28670 \change_inserted -970929547 1515110044
28671 attr
28672 \change_unchanged
28673
28674 \end_layout
28675
28676 \end_inset
28677
28678
28679 \begin_inset Quotes erd
28680 \end_inset
28681
28682  in the example above.
28683  This information can be used in further processing of the DocBook files.
28684  
28685 \end_layout
28686
28687 \begin_layout Description
28688
28689 \change_inserted -970929547 1515110973
28690 \begin_inset Flex Code
28691 status collapsed
28692
28693 \begin_layout Plain Layout
28694
28695 \change_inserted -970929547 1515110319
28696 DocBookInInfo
28697 \change_unchanged
28698
28699 \end_layout
28700
28701 \end_inset
28702
28703  [
28704 \begin_inset Flex Code
28705 status collapsed
28706
28707 \begin_layout Plain Layout
28708
28709 \change_inserted -970929547 1515110384
28710 never, always, maybe
28711 \change_unchanged
28712
28713 \end_layout
28714
28715 \end_inset
28716
28717 ] Specifies whether this tag goes into the 
28718 \begin_inset Flex Code
28719 status collapsed
28720
28721 \begin_layout Plain Layout
28722
28723 \change_inserted -970929547 1515110412
28724 <info>
28725 \change_unchanged
28726
28727 \end_layout
28728
28729 \end_inset
28730
28731  tag at the beginning of the parent layout.
28732  
28733 \begin_inset Flex Code
28734 status collapsed
28735
28736 \begin_layout Plain Layout
28737
28738 \change_inserted -970929547 1515110437
28739 never
28740 \change_unchanged
28741
28742 \end_layout
28743
28744 \end_inset
28745
28746  indicates that the tag never goes into 
28747 \begin_inset Flex Code
28748 status collapsed
28749
28750 \begin_layout Plain Layout
28751
28752 \change_inserted -970929547 1515110497
28753 <info>
28754 \change_unchanged
28755
28756 \end_layout
28757
28758 \end_inset
28759
28760  (this is default value, and corresponds to usual content).
28761  
28762 \begin_inset Flex Code
28763 status collapsed
28764
28765 \begin_layout Plain Layout
28766
28767 \change_inserted -970929547 1515110517
28768 always
28769 \change_unchanged
28770
28771 \end_layout
28772
28773 \end_inset
28774
28775  indicates that the tag always goes into 
28776 \begin_inset Flex Code
28777 status collapsed
28778
28779 \begin_layout Plain Layout
28780
28781 \change_inserted -970929547 1515110514
28782 <info>
28783 \change_unchanged
28784
28785 \end_layout
28786
28787 \end_inset
28788
28789  (this corresponds to usual metadata): if there is no 
28790 \begin_inset Flex Code
28791 status collapsed
28792
28793 \begin_layout Plain Layout
28794
28795 \change_inserted -970929547 1515110550
28796 <info>
28797 \change_unchanged
28798
28799 \end_layout
28800
28801 \end_inset
28802
28803  tag for the parent, one 
28804 \series bold
28805 will
28806 \series default
28807  be generated.
28808  
28809 \begin_inset Flex Code
28810 status collapsed
28811
28812 \begin_layout Plain Layout
28813
28814 \change_inserted -970929547 1515110540
28815 maybe
28816 \change_unchanged
28817
28818 \end_layout
28819
28820 \end_inset
28821
28822  indicates that the tag may go into 
28823 \begin_inset Flex Code
28824 status collapsed
28825
28826 \begin_layout Plain Layout
28827
28828 \change_inserted -970929547 1515110538
28829 <info>
28830 \change_unchanged
28831
28832 \end_layout
28833
28834 \end_inset
28835
28836  (this is only the case for titles): if there is no 
28837 \begin_inset Flex Code
28838 status collapsed
28839
28840 \begin_layout Plain Layout
28841
28842 \change_inserted -970929547 1515110585
28843 <info>
28844 \change_unchanged
28845
28846 \end_layout
28847
28848 \end_inset
28849
28850  tag for the parent, 
28851 \series bold
28852 none
28853 \series default
28854  will be generated, the corresponding tag will be output directly as content.
28855  
28856 \end_layout
28857
28858 \begin_layout Description
28859
28860 \change_inserted -970929547 1515111461
28861 \begin_inset Flex Code
28862 status collapsed
28863
28864 \begin_layout Plain Layout
28865
28866 \change_inserted -970929547 1515110974
28867 DocBookItemAttr
28868 \change_unchanged
28869
28870 \end_layout
28871
28872 \end_inset
28873
28874  [
28875 \begin_inset Flex Code
28876 status collapsed
28877
28878 \begin_layout Plain Layout
28879
28880 \change_inserted -970929547 1515110973
28881 string
28882 \change_unchanged
28883
28884 \end_layout
28885
28886 \end_inset
28887
28888 ] Specifies attribute information to be output with the item tag, replacing
28889  
28890 \begin_inset Quotes eld
28891 \end_inset
28892
28893
28894 \begin_inset Flex Code
28895 status collapsed
28896
28897 \begin_layout Plain Layout
28898
28899 \change_inserted -970929547 1515110984
28900 itemattr
28901 \change_unchanged
28902
28903 \end_layout
28904
28905 \end_inset
28906
28907
28908 \begin_inset Quotes erd
28909 \end_inset
28910
28911  in the example above.
28912  This information can be used in further processing of the DocBook files.
28913  
28914 \end_layout
28915
28916 \begin_layout Description
28917
28918 \change_inserted -970929547 1515111471
28919 \begin_inset Flex Code
28920 status collapsed
28921
28922 \begin_layout Plain Layout
28923
28924 \change_inserted -970929547 1515111465
28925 DocBookItemInnerAttr
28926 \change_unchanged
28927
28928 \end_layout
28929
28930 \end_inset
28931
28932  [
28933 \begin_inset Flex Code
28934 status collapsed
28935
28936 \begin_layout Plain Layout
28937
28938 \change_inserted -970929547 1515111461
28939 string
28940 \change_unchanged
28941
28942 \end_layout
28943
28944 \end_inset
28945
28946 ] Specifies attribute information to be output with the item inner tag,
28947  replacing 
28948 \begin_inset Quotes eld
28949 \end_inset
28950
28951
28952 \begin_inset Flex Code
28953 status collapsed
28954
28955 \begin_layout Plain Layout
28956
28957 \change_inserted -970929547 1515111476
28958 iteminnerattr
28959 \change_unchanged
28960
28961 \end_layout
28962
28963 \end_inset
28964
28965
28966 \begin_inset Quotes erd
28967 \end_inset
28968
28969  in the example above.
28970  This information can be used in further processing of the DocBook files.
28971  
28972 \end_layout
28973
28974 \begin_layout Description
28975
28976 \change_inserted -970929547 1515111494
28977 \begin_inset Flex Code
28978 status collapsed
28979
28980 \begin_layout Plain Layout
28981
28982 \change_inserted -970929547 1515111467
28983 DocBookItemInnerTag
28984 \change_unchanged
28985
28986 \end_layout
28987
28988 \end_inset
28989
28990  [
28991 \begin_inset Flex Code
28992 status collapsed
28993
28994 \begin_layout Plain Layout
28995
28996 \change_inserted -970929547 1515111461
28997 string
28998 \change_unchanged
28999
29000 \end_layout
29001
29002 \end_inset
29003
29004 ] The tag to be used for the item inner tag within the inset, replacing
29005  
29006 \begin_inset Quotes eld
29007 \end_inset
29008
29009
29010 \begin_inset Flex Code
29011 status collapsed
29012
29013 \begin_layout Plain Layout
29014
29015 \change_inserted -970929547 1515111486
29016 iteminnertag
29017 \change_unchanged
29018
29019 \end_layout
29020
29021 \end_inset
29022
29023
29024 \begin_inset Quotes erd
29025 \end_inset
29026
29027  in the example above.
29028  The default is 
29029 \begin_inset Flex Code
29030 status collapsed
29031
29032 \begin_layout Plain Layout
29033
29034 \change_inserted -970929547 1515111461
29035 NONE
29036 \change_unchanged
29037
29038 \end_layout
29039
29040 \end_inset
29041
29042 , indicating that there is no item inner tag: content is directly output
29043  without it for each itemised element.
29044  This parameter only makes sense when itemising layouts are used, such as
29045  lists.
29046  
29047 \change_inserted 1075283030 1598469472
29048 The most likely value is 
29049 \begin_inset Quotes eld
29050 \end_inset
29051
29052
29053 \begin_inset Flex Code
29054 status collapsed
29055
29056 \begin_layout Plain Layout
29057
29058 \change_inserted 1075283030 1598469476
29059 para
29060 \change_unchanged
29061
29062 \end_layout
29063
29064 \end_inset
29065
29066
29067 \begin_inset Quotes erd
29068 \end_inset
29069
29070 .
29071 \begin_inset Newline newline
29072 \end_inset
29073
29074 When a list item is split using a new line, the item inner tag will be repeated
29075  for each part of the paragraph, parts being separated by new lines.
29076  
29077 \end_layout
29078
29079 \begin_layout Description
29080
29081 \change_inserted 1075283030 1597699866
29082 \begin_inset Flex Code
29083 status collapsed
29084
29085 \begin_layout Plain Layout
29086
29087 \change_inserted 1075283030 1597699853
29088 DocBookItemInnerTagType
29089 \change_unchanged
29090
29091 \end_layout
29092
29093 \end_inset
29094
29095  [
29096 \begin_inset Flex Code
29097 status collapsed
29098
29099 \begin_layout Plain Layout
29100
29101 \change_inserted 1075283030 1597699866
29102 block, paragraph, inline
29103 \change_unchanged
29104
29105 \end_layout
29106
29107 \end_inset
29108
29109 ] The new-line policy for this tag, see Section
29110 \begin_inset space ~
29111 \end_inset
29112
29113
29114 \begin_inset CommandInset ref
29115 LatexCommand ref
29116 reference "subsec:DocBook-New-line-policy"
29117 plural "false"
29118 caps "false"
29119 noprefix "false"
29120
29121 \end_inset
29122
29123  for the details.
29124  
29125 \change_unchanged
29126
29127 \end_layout
29128
29129 \begin_layout Description
29130
29131 \change_inserted -970929547 1515111290
29132 \begin_inset Flex Code
29133 status collapsed
29134
29135 \begin_layout Plain Layout
29136
29137 \change_inserted -970929547 1515111283
29138 DocBookItemLabelAttr
29139 \change_unchanged
29140
29141 \end_layout
29142
29143 \end_inset
29144
29145  [
29146 \begin_inset Flex Code
29147 status collapsed
29148
29149 \begin_layout Plain Layout
29150
29151 \change_inserted -970929547 1515111279
29152 string
29153 \change_unchanged
29154
29155 \end_layout
29156
29157 \end_inset
29158
29159 ] Specifies attribute information to be output with the item label tag,
29160  replacing 
29161 \begin_inset Quotes eld
29162 \end_inset
29163
29164
29165 \begin_inset Flex Code
29166 status collapsed
29167
29168 \begin_layout Plain Layout
29169
29170 \change_inserted -970929547 1515111304
29171 itemlabelattr
29172 \change_unchanged
29173
29174 \end_layout
29175
29176 \end_inset
29177
29178
29179 \begin_inset Quotes erd
29180 \end_inset
29181
29182  in the example above.
29183  This information can be used in further processing of the DocBook files.
29184  
29185 \end_layout
29186
29187 \begin_layout Description
29188
29189 \change_inserted -970929547 1515111337
29190 \begin_inset Flex Code
29191 status collapsed
29192
29193 \begin_layout Plain Layout
29194
29195 \change_inserted -970929547 1515111285
29196 DocBookItemLabelTag
29197 \change_unchanged
29198
29199 \end_layout
29200
29201 \end_inset
29202
29203  [
29204 \begin_inset Flex Code
29205 status collapsed
29206
29207 \begin_layout Plain Layout
29208
29209 \change_inserted -970929547 1515111279
29210 string
29211 \change_unchanged
29212
29213 \end_layout
29214
29215 \end_inset
29216
29217 ] The tag to be used for the item label tag within the inset, replacing
29218  
29219 \begin_inset Quotes eld
29220 \end_inset
29221
29222
29223 \begin_inset Flex Code
29224 status collapsed
29225
29226 \begin_layout Plain Layout
29227
29228 \change_inserted -970929547 1515111311
29229 itemlabeltag
29230 \change_unchanged
29231
29232 \end_layout
29233
29234 \end_inset
29235
29236
29237 \begin_inset Quotes erd
29238 \end_inset
29239
29240  in the example above.
29241  This parameter only makes sense when itemising layouts are used with a
29242  notion of labels, such as definition lists.
29243  
29244 \change_inserted 1075283030 1597699874
29245
29246 \end_layout
29247
29248 \begin_layout Description
29249
29250 \change_inserted 1075283030 1597699874
29251 \begin_inset Flex Code
29252 status collapsed
29253
29254 \begin_layout Plain Layout
29255
29256 \change_inserted 1075283030 1597699880
29257 DocBookItemLabelTagType
29258 \change_unchanged
29259
29260 \end_layout
29261
29262 \end_inset
29263
29264  [
29265 \begin_inset Flex Code
29266 status collapsed
29267
29268 \begin_layout Plain Layout
29269
29270 \change_inserted 1075283030 1597699874
29271 block, paragraph, inline
29272 \change_unchanged
29273
29274 \end_layout
29275
29276 \end_inset
29277
29278 ] The new-line policy for this tag, see Section
29279 \begin_inset space ~
29280 \end_inset
29281
29282
29283 \begin_inset CommandInset ref
29284 LatexCommand ref
29285 reference "subsec:DocBook-New-line-policy"
29286 plural "false"
29287 caps "false"
29288 noprefix "false"
29289
29290 \end_inset
29291
29292  for the details.
29293  
29294 \change_unchanged
29295
29296 \end_layout
29297
29298 \begin_layout Description
29299
29300 \change_inserted -970929547 1515111124
29301 \begin_inset Flex Code
29302 status collapsed
29303
29304 \begin_layout Plain Layout
29305
29306 \change_inserted -970929547 1515111060
29307 DocBookItemTag
29308 \change_unchanged
29309
29310 \end_layout
29311
29312 \end_inset
29313
29314  [
29315 \begin_inset Flex Code
29316 status collapsed
29317
29318 \begin_layout Plain Layout
29319
29320 \change_inserted -970929547 1515111060
29321 string
29322 \change_unchanged
29323
29324 \end_layout
29325
29326 \end_inset
29327
29328 ] The tag to be used for the item tag within the inset, replacing 
29329 \begin_inset Quotes eld
29330 \end_inset
29331
29332
29333 \begin_inset Flex Code
29334 status collapsed
29335
29336 \begin_layout Plain Layout
29337
29338 \change_inserted -970929547 1515111060
29339 itemtag
29340 \change_unchanged
29341
29342 \end_layout
29343
29344 \end_inset
29345
29346
29347 \begin_inset Quotes erd
29348 \end_inset
29349
29350  in the example above.
29351  The default is 
29352 \begin_inset Flex Code
29353 status collapsed
29354
29355 \begin_layout Plain Layout
29356
29357 \change_inserted -970929547 1515111060
29358 NONE
29359 \change_unchanged
29360
29361 \end_layout
29362
29363 \end_inset
29364
29365 , indicating that there is no item tag.
29366  This parameter only makes sense when itemising layouts are used, such as
29367  lists.
29368  
29369 \change_inserted 1075283030 1597699890
29370
29371 \end_layout
29372
29373 \begin_layout Description
29374
29375 \change_inserted 1075283030 1597699890
29376 \begin_inset Flex Code
29377 status collapsed
29378
29379 \begin_layout Plain Layout
29380
29381 \change_inserted 1075283030 1597699890
29382 DocBookItemTagType
29383 \change_unchanged
29384
29385 \end_layout
29386
29387 \end_inset
29388
29389  [
29390 \begin_inset Flex Code
29391 status collapsed
29392
29393 \begin_layout Plain Layout
29394
29395 \change_inserted 1075283030 1597699890
29396 block, paragraph, inline
29397 \change_unchanged
29398
29399 \end_layout
29400
29401 \end_inset
29402
29403 ] The new-line policy for this tag, see Section
29404 \begin_inset space ~
29405 \end_inset
29406
29407
29408 \begin_inset CommandInset ref
29409 LatexCommand ref
29410 reference "subsec:DocBook-New-line-policy"
29411 plural "false"
29412 caps "false"
29413 noprefix "false"
29414
29415 \end_inset
29416
29417  for the details.
29418  
29419 \change_unchanged
29420
29421 \end_layout
29422
29423 \begin_layout Description
29424
29425 \change_inserted -970929547 1515111298
29426 \begin_inset Flex Code
29427 status collapsed
29428
29429 \begin_layout Plain Layout
29430
29431 \change_inserted -970929547 1515111124
29432 DocBookItemWrapperAttr
29433 \change_unchanged
29434
29435 \end_layout
29436
29437 \end_inset
29438
29439  [
29440 \begin_inset Flex Code
29441 status collapsed
29442
29443 \begin_layout Plain Layout
29444
29445 \change_inserted -970929547 1515111124
29446 string
29447 \change_unchanged
29448
29449 \end_layout
29450
29451 \end_inset
29452
29453 ] Specifies attribute information to be output with the item wrapper tag,
29454  replacing 
29455 \begin_inset Quotes eld
29456 \end_inset
29457
29458
29459 \begin_inset Flex Code
29460 status collapsed
29461
29462 \begin_layout Plain Layout
29463
29464 \change_inserted -970929547 1515111150
29465 itemwrapperattr
29466 \change_unchanged
29467
29468 \end_layout
29469
29470 \end_inset
29471
29472
29473 \begin_inset Quotes erd
29474 \end_inset
29475
29476  in the example above.
29477  This information can be used in further processing of the DocBook files.
29478  
29479 \change_unchanged
29480
29481 \end_layout
29482
29483 \begin_layout Description
29484
29485 \change_inserted -970929547 1515111113
29486 \begin_inset Flex Code
29487 status collapsed
29488
29489 \begin_layout Plain Layout
29490
29491 \change_inserted -970929547 1515111073
29492 DocBookItemWrapperTag
29493 \change_unchanged
29494
29495 \end_layout
29496
29497 \end_inset
29498
29499  [
29500 \begin_inset Flex Code
29501 status collapsed
29502
29503 \begin_layout Plain Layout
29504
29505 \change_inserted -970929547 1515111073
29506 string
29507 \change_unchanged
29508
29509 \end_layout
29510
29511 \end_inset
29512
29513 ] The tag to be used for the item wrapper tag within the inset, replacing
29514  
29515 \begin_inset Quotes eld
29516 \end_inset
29517
29518
29519 \begin_inset Flex Code
29520 status collapsed
29521
29522 \begin_layout Plain Layout
29523
29524 \change_inserted -970929547 1515111083
29525 itemwrappertag
29526 \change_unchanged
29527
29528 \end_layout
29529
29530 \end_inset
29531
29532
29533 \begin_inset Quotes erd
29534 \end_inset
29535
29536  in the example above.
29537  The default is 
29538 \begin_inset Flex Code
29539 status collapsed
29540
29541 \begin_layout Plain Layout
29542
29543 \change_inserted -970929547 1515111073
29544 NONE
29545 \change_unchanged
29546
29547 \end_layout
29548
29549 \end_inset
29550
29551 , indicating that there is no item wrapper tag: tag and content are directly
29552  output without it for each itemised element.
29553  This parameter only makes sense when itemising layouts are used, such as
29554  lists.
29555  
29556 \change_inserted 1075283030 1597699897
29557
29558 \end_layout
29559
29560 \begin_layout Description
29561
29562 \change_inserted 1075283030 1597699897
29563 \begin_inset Flex Code
29564 status collapsed
29565
29566 \begin_layout Plain Layout
29567
29568 \change_inserted 1075283030 1597699900
29569 DocBookItemWrapperTagType
29570 \change_unchanged
29571
29572 \end_layout
29573
29574 \end_inset
29575
29576  [
29577 \begin_inset Flex Code
29578 status collapsed
29579
29580 \begin_layout Plain Layout
29581
29582 \change_inserted 1075283030 1597699897
29583 block, paragraph, inline
29584 \change_unchanged
29585
29586 \end_layout
29587
29588 \end_inset
29589
29590 ] The new-line policy for this tag, see Section
29591 \begin_inset space ~
29592 \end_inset
29593
29594
29595 \begin_inset CommandInset ref
29596 LatexCommand ref
29597 reference "subsec:DocBook-New-line-policy"
29598 plural "false"
29599 caps "false"
29600 noprefix "false"
29601
29602 \end_inset
29603
29604  for the details.
29605  
29606 \change_unchanged
29607
29608 \end_layout
29609
29610 \begin_layout Description
29611
29612 \change_inserted -970929547 1515110104
29613 \begin_inset Flex Code
29614 status collapsed
29615
29616 \begin_layout Plain Layout
29617
29618 \change_inserted -970929547 1515110104
29619 DocBookInnerAttr
29620 \change_unchanged
29621
29622 \end_layout
29623
29624 \end_inset
29625
29626  [
29627 \begin_inset Flex Code
29628 status collapsed
29629
29630 \begin_layout Plain Layout
29631
29632 \change_inserted -970929547 1515110104
29633 string
29634 \change_unchanged
29635
29636 \end_layout
29637
29638 \end_inset
29639
29640 ] Specifies attribute information to be output with the inner tag, replacing
29641  
29642 \begin_inset Quotes eld
29643 \end_inset
29644
29645
29646 \begin_inset Flex Code
29647 status collapsed
29648
29649 \begin_layout Plain Layout
29650
29651 \change_inserted -970929547 1515110104
29652 innerattr
29653 \change_unchanged
29654
29655 \end_layout
29656
29657 \end_inset
29658
29659
29660 \begin_inset Quotes erd
29661 \end_inset
29662
29663  in the example above.
29664  This information can be used in further processing of the DocBook files.
29665  
29666 \end_layout
29667
29668 \begin_layout Description
29669
29670 \change_inserted -970929547 1515110906
29671 \begin_inset Flex Code
29672 status collapsed
29673
29674 \begin_layout Plain Layout
29675
29676 \change_inserted -970929547 1515110104
29677 DocBookInnerTag
29678 \change_unchanged
29679
29680 \end_layout
29681
29682 \end_inset
29683
29684  [
29685 \begin_inset Flex Code
29686 status collapsed
29687
29688 \begin_layout Plain Layout
29689
29690 \change_inserted -970929547 1515110104
29691 string
29692 \change_unchanged
29693
29694 \end_layout
29695
29696 \end_inset
29697
29698 ] The tag to be used for the inner tag within the inset, replacing 
29699 \begin_inset Quotes eld
29700 \end_inset
29701
29702
29703 \begin_inset Flex Code
29704 status collapsed
29705
29706 \begin_layout Plain Layout
29707
29708 \change_inserted -970929547 1515110104
29709 innertag
29710 \change_unchanged
29711
29712 \end_layout
29713
29714 \end_inset
29715
29716
29717 \begin_inset Quotes erd
29718 \end_inset
29719
29720  in the example above.
29721  The default is 
29722 \begin_inset Flex Code
29723 status collapsed
29724
29725 \begin_layout Plain Layout
29726
29727 \change_inserted -970929547 1515110791
29728 NONE
29729 \change_unchanged
29730
29731 \end_layout
29732
29733 \end_inset
29734
29735 , indicating that there is no inner tag: content is directly output without
29736  it.
29737 \change_inserted 1075283030 1597699904
29738
29739 \end_layout
29740
29741 \begin_layout Description
29742
29743 \change_inserted 1075283030 1597699904
29744 \begin_inset Flex Code
29745 status collapsed
29746
29747 \begin_layout Plain Layout
29748
29749 \change_inserted 1075283030 1597699904
29750 DocBookInnerTagType
29751 \change_unchanged
29752
29753 \end_layout
29754
29755 \end_inset
29756
29757  [
29758 \begin_inset Flex Code
29759 status collapsed
29760
29761 \begin_layout Plain Layout
29762
29763 \change_inserted 1075283030 1597699904
29764 block, paragraph, inline
29765 \change_unchanged
29766
29767 \end_layout
29768
29769 \end_inset
29770
29771 ] The new-line policy for this tag, see Section
29772 \begin_inset space ~
29773 \end_inset
29774
29775
29776 \begin_inset CommandInset ref
29777 LatexCommand ref
29778 reference "subsec:DocBook-New-line-policy"
29779 plural "false"
29780 caps "false"
29781 noprefix "false"
29782
29783 \end_inset
29784
29785  for the details.
29786  
29787 \change_unchanged
29788
29789 \end_layout
29790
29791 \begin_layout Description
29792
29793 \change_inserted -970929547 1515110753
29794 \begin_inset Flex Code
29795 status collapsed
29796
29797 \begin_layout Plain Layout
29798
29799 \change_inserted -970929547 1515110665
29800 DocBookSectionTag
29801 \change_unchanged
29802
29803 \end_layout
29804
29805 \end_inset
29806
29807  [
29808 \begin_inset Flex Code
29809 status collapsed
29810
29811 \begin_layout Plain Layout
29812
29813 \change_inserted -970929547 1515110661
29814 string
29815 \change_unchanged
29816
29817 \end_layout
29818
29819 \end_inset
29820
29821 ] Specifies the tag that corresponds to this kind of section.
29822  This parameter only makes sense for sectioning elements (part, chapter,
29823  section, etc.).
29824  The default value is 
29825 \begin_inset Flex Code
29826 status collapsed
29827
29828 \begin_layout Plain Layout
29829
29830 \change_inserted -970929547 1515110721
29831 section
29832 \change_unchanged
29833
29834 \end_layout
29835
29836 \end_inset
29837
29838 , and is only overridden when DocBook uses something else for sectioning
29839  (
29840 \change_inserted 1075283030 1597699921
29841 typically, 
29842 \change_inserted -970929547 1515110753
29843 parts and chapters of a book).
29844  
29845 \change_unchanged
29846
29847 \end_layout
29848
29849 \begin_layout Description
29850
29851 \change_inserted -970929547 1515110811
29852 \begin_inset Flex Code
29853 status collapsed
29854
29855 \begin_layout Plain Layout
29856
29857 \change_inserted -970929547 1496612023
29858 DocBookTag
29859 \change_unchanged
29860
29861 \end_layout
29862
29863 \end_inset
29864
29865  [
29866 \begin_inset Flex Code
29867 status collapsed
29868
29869 \begin_layout Plain Layout
29870
29871 \change_inserted -970929547 1496610966
29872 string
29873 \change_unchanged
29874
29875 \end_layout
29876
29877 \end_inset
29878
29879 ] The tag to be used for this inset, replacing 
29880 \begin_inset Quotes eld
29881 \end_inset
29882
29883
29884 \begin_inset Flex Code
29885 status collapsed
29886
29887 \begin_layout Plain Layout
29888
29889 \change_inserted -970929547 1496612033
29890 tag
29891 \change_unchanged
29892
29893 \end_layout
29894
29895 \end_inset
29896
29897
29898 \begin_inset Quotes erd
29899 \end_inset
29900
29901  in the example above.
29902  The default is the name of the float and always needs to be changed, as
29903  DocBook provides no generic inset tag.
29904 \change_inserted 1075283030 1597699924
29905
29906 \end_layout
29907
29908 \begin_layout Description
29909
29910 \change_inserted 1075283030 1597699924
29911 \begin_inset Flex Code
29912 status collapsed
29913
29914 \begin_layout Plain Layout
29915
29916 \change_inserted 1075283030 1597699924
29917 DocBookTagType
29918 \change_unchanged
29919
29920 \end_layout
29921
29922 \end_inset
29923
29924  [
29925 \begin_inset Flex Code
29926 status collapsed
29927
29928 \begin_layout Plain Layout
29929
29930 \change_inserted 1075283030 1597699924
29931 block, paragraph, inline
29932 \change_unchanged
29933
29934 \end_layout
29935
29936 \end_inset
29937
29938 ] The new-line policy for this tag, see Section
29939 \begin_inset space ~
29940 \end_inset
29941
29942
29943 \begin_inset CommandInset ref
29944 LatexCommand ref
29945 reference "subsec:DocBook-New-line-policy"
29946 plural "false"
29947 caps "false"
29948 noprefix "false"
29949
29950 \end_inset
29951
29952  for the details.
29953  
29954 \change_unchanged
29955
29956 \end_layout
29957
29958 \begin_layout Description
29959
29960 \change_inserted -970929547 1515110832
29961 \begin_inset Flex Code
29962 status collapsed
29963
29964 \begin_layout Plain Layout
29965
29966 \change_inserted -970929547 1515110822
29967 DocBookWrapperAttr
29968 \change_unchanged
29969
29970 \end_layout
29971
29972 \end_inset
29973
29974  [
29975 \begin_inset Flex Code
29976 status collapsed
29977
29978 \begin_layout Plain Layout
29979
29980 \change_inserted -970929547 1515110811
29981 string
29982 \change_unchanged
29983
29984 \end_layout
29985
29986 \end_inset
29987
29988 ] Specifies attribute information to be output with the outer tag, replacing
29989  
29990 \begin_inset Quotes eld
29991 \end_inset
29992
29993
29994 \begin_inset Flex Code
29995 status collapsed
29996
29997 \begin_layout Plain Layout
29998
29999 \change_inserted -970929547 1515110845
30000 wrapperattr
30001 \change_unchanged
30002
30003 \end_layout
30004
30005 \end_inset
30006
30007
30008 \begin_inset Quotes erd
30009 \end_inset
30010
30011  in the example above.
30012  This information can be used in further processing of the DocBook files.
30013  
30014 \end_layout
30015
30016 \begin_layout Description
30017
30018 \change_inserted -970929547 1515110917
30019 \begin_inset Flex Code
30020 status collapsed
30021
30022 \begin_layout Plain Layout
30023
30024 \change_inserted -970929547 1515110826
30025 DocBookWrapperTag
30026 \change_unchanged
30027
30028 \end_layout
30029
30030 \end_inset
30031
30032  [
30033 \begin_inset Flex Code
30034 status collapsed
30035
30036 \begin_layout Plain Layout
30037
30038 \change_inserted -970929547 1515110811
30039 string
30040 \change_unchanged
30041
30042 \end_layout
30043
30044 \end_inset
30045
30046 ] The tag to be used for the wrapper tag around the inset, replacing 
30047 \begin_inset Quotes eld
30048 \end_inset
30049
30050
30051 \begin_inset Flex Code
30052 status collapsed
30053
30054 \begin_layout Plain Layout
30055
30056 \change_inserted -970929547 1515110842
30057 wrappertag
30058 \change_unchanged
30059
30060 \end_layout
30061
30062 \end_inset
30063
30064
30065 \begin_inset Quotes erd
30066 \end_inset
30067
30068  in the example above.
30069  The default is 
30070 \begin_inset Flex Code
30071 status collapsed
30072
30073 \begin_layout Plain Layout
30074
30075 \change_inserted -970929547 1515110811
30076 NONE
30077 \change_unchanged
30078
30079 \end_layout
30080
30081 \end_inset
30082
30083 , indicating that there is no wrapper tag: tag and content are directly
30084  output without it.
30085 \change_inserted 1075283030 1597699929
30086
30087 \end_layout
30088
30089 \begin_layout Description
30090
30091 \change_inserted 1075283030 1597699929
30092 \begin_inset Flex Code
30093 status collapsed
30094
30095 \begin_layout Plain Layout
30096
30097 \change_inserted 1075283030 1597699932
30098 DocBookWrapperTagType
30099 \change_unchanged
30100
30101 \end_layout
30102
30103 \end_inset
30104
30105  [
30106 \begin_inset Flex Code
30107 status collapsed
30108
30109 \begin_layout Plain Layout
30110
30111 \change_inserted 1075283030 1597699929
30112 block, paragraph, inline
30113 \change_unchanged
30114
30115 \end_layout
30116
30117 \end_inset
30118
30119 ] The new-line policy for this tag, see Section
30120 \begin_inset space ~
30121 \end_inset
30122
30123
30124 \begin_inset CommandInset ref
30125 LatexCommand ref
30126 reference "subsec:DocBook-New-line-policy"
30127 plural "false"
30128 caps "false"
30129 noprefix "false"
30130
30131 \end_inset
30132
30133  for the details.
30134  
30135 \change_unchanged
30136
30137 \end_layout
30138
30139 \begin_layout Subsection
30140
30141 \change_inserted -970929547 1515110040
30142 Float DocBook
30143 \end_layout
30144
30145 \begin_layout Standard
30146
30147 \change_inserted -970929547 1496611700
30148 The DocBook output for floats too can be controlled by layout information.
30149  The output has the following form:
30150 \end_layout
30151
30152 \begin_layout LyX-Code
30153
30154 \change_inserted -970929547 1515109700
30155 <tag attr>
30156 \end_layout
30157
30158 \begin_layout LyX-Code
30159
30160 \change_inserted -970929547 1515110138
30161   Contents of the float as DocBook.
30162 \end_layout
30163
30164 \begin_layout LyX-Code
30165
30166 \change_inserted -970929547 1496610966
30167 </tag>
30168 \end_layout
30169
30170 \begin_layout Standard
30171
30172 \change_inserted -970929547 1496611715
30173 The caption, if there is one, is a separate inset and will be output as
30174  a title.
30175  
30176 \end_layout
30177
30178 \begin_layout Description
30179
30180 \change_inserted -970929547 1515110033
30181 \begin_inset Flex Code
30182 status collapsed
30183
30184 \begin_layout Plain Layout
30185
30186 \change_inserted -970929547 1515109702
30187 DocBookAttr
30188 \change_unchanged
30189
30190 \end_layout
30191
30192 \end_inset
30193
30194  [
30195 \begin_inset Flex Code
30196 status collapsed
30197
30198 \begin_layout Plain Layout
30199
30200 \change_inserted -970929547 1496610966
30201 string
30202 \change_unchanged
30203
30204 \end_layout
30205
30206 \end_inset
30207
30208 ] Specifies attribute information to be output with the main tag, replacing
30209  
30210 \begin_inset Quotes eld
30211 \end_inset
30212
30213
30214 \begin_inset Flex Code
30215 status collapsed
30216
30217 \begin_layout Plain Layout
30218
30219 \change_inserted -970929547 1515110035
30220 attr
30221 \change_unchanged
30222
30223 \end_layout
30224
30225 \end_inset
30226
30227
30228 \begin_inset Quotes erd
30229 \end_inset
30230
30231  in the example above.
30232  This information can be used in further processing of the DocBook files.
30233  
30234 \end_layout
30235
30236 \begin_layout Description
30237
30238 \change_inserted -970929547 1515110157
30239 \begin_inset Flex Code
30240 status collapsed
30241
30242 \begin_layout Plain Layout
30243
30244 \change_inserted -970929547 1496611782
30245 DocBookTag
30246 \change_unchanged
30247
30248 \end_layout
30249
30250 \end_inset
30251
30252  [
30253 \begin_inset Flex Code
30254 status collapsed
30255
30256 \begin_layout Plain Layout
30257
30258 \change_inserted -970929547 1496610966
30259 string
30260 \change_unchanged
30261
30262 \end_layout
30263
30264 \end_inset
30265
30266 ] The tag to be used for this float, replacing 
30267 \begin_inset Quotes eld
30268 \end_inset
30269
30270
30271 \begin_inset Flex Code
30272 status collapsed
30273
30274 \begin_layout Plain Layout
30275
30276 \change_inserted -970929547 1496610966
30277 tag
30278 \change_unchanged
30279
30280 \end_layout
30281
30282 \end_inset
30283
30284
30285 \begin_inset Quotes erd
30286 \end_inset
30287
30288  in the example above.
30289  The default is the name of the float and always needs to be changed, as
30290  DocBook provides no generic float tag.
30291 \end_layout
30292
30293 \begin_layout Subsection
30294
30295 \change_inserted -970929547 1515110157
30296 Bibliography formatting
30297 \end_layout
30298
30299 \begin_layout Standard
30300
30301 \change_deleted 1075283030 1597699984
30302 The 
30303 \change_inserted 1075283030 1597699985
30304 Included 
30305 \change_inserted -970929547 1515110187
30306 bibliograph
30307 \change_deleted 1075283030 1597699987
30308 y
30309 \change_inserted 1075283030 1597699987
30310 ies
30311 \change_inserted -970929547 1515110187
30312  cannot be formatted: all fields are always output in the database-like
30313  DocBook format (equivalent to a BibTeX file)
30314 \change_inserted 1075283030 1597700117
30315 , using the 
30316 \begin_inset Flex Code
30317 status collapsed
30318
30319 \begin_layout Plain Layout
30320
30321 \change_inserted 1075283030 1597700120
30322 biblioentry
30323 \change_unchanged
30324
30325 \end_layout
30326
30327 \end_inset
30328
30329  tag
30330 \change_inserted -970929547 1515110187
30331 .
30332 \change_inserted 1075283030 1597700092
30333
30334 \end_layout
30335
30336 \begin_layout Standard
30337
30338 \change_inserted 1075283030 1597700112
30339 When the bibliographic entries are manually inserted into the LyX document
30340  as Bibliography Items, the user deals with formatting themself: there is
30341  no attempt of parsing what the user wrote, the string is directly used
30342  (with the 
30343 \begin_inset Flex Code
30344 status collapsed
30345
30346 \begin_layout Plain Layout
30347
30348 \change_inserted 1075283030 1597700076
30349 bibliomixed
30350 \change_unchanged
30351
30352 \end_layout
30353
30354 \end_inset
30355
30356  tag).
30357  
30358 \change_unchanged
30359
30360 \end_layout
30361
30362 \begin_layout Chapter
30363 Including External Material
30364 \begin_inset CommandInset label
30365 LatexCommand label
30366 name "chap:Including-External-Material"
30367
30368 \end_inset
30369
30370
30371 \end_layout
30372
30373 \begin_layout Standard
30374 \begin_inset Box Shadowbox
30375 position "t"
30376 hor_pos "c"
30377 has_inner_box 1
30378 inner_pos "t"
30379 use_parbox 0
30380 use_makebox 0
30381 width "100col%"
30382 special "none"
30383 height "1in"
30384 height_special "totalheight"
30385 thickness "0.4pt"
30386 separation "3pt"
30387 shadowsize "4pt"
30388 framecolor "black"
30389 backgroundcolor "none"
30390 status open
30391
30392 \begin_layout Plain Layout
30393 WARNING: This portion of the documentation has not been updated for some
30394  time.
30395  We certainly hope that it is still accurate, but there are no guarantees.
30396 \end_layout
30397
30398 \end_inset
30399
30400
30401 \end_layout
30402
30403 \begin_layout Standard
30404 The use of material from sources external to \SpecialChar LyX
30405  is covered in detail in the
30406  
30407 \emph on
30408 Embedded Objects
30409 \emph default
30410  manual.
30411  This part of the manual covers what needs to happen behind the scenes for
30412  new sorts of material to be included.
30413 \end_layout
30414
30415 \begin_layout Section
30416 How does it work?
30417 \end_layout
30418
30419 \begin_layout Standard
30420 The external material feature is based on the concept of a 
30421 \emph on
30422 template
30423 \emph default
30424 .
30425  A template is a specification of how \SpecialChar LyX
30426  should interface with a certain kind
30427  of material.
30428  As bundled, \SpecialChar LyX
30429  comes with predefined templates for Xfig figures, various
30430  raster format images, chess diagrams, and LilyPond music notation.
30431  You can check the actual list by using the menu 
30432 \begin_inset Flex Noun
30433 status collapsed
30434
30435 \begin_layout Plain Layout
30436 Insert\SpecialChar menuseparator
30437 File\SpecialChar menuseparator
30438 External Material
30439 \end_layout
30440
30441 \end_inset
30442
30443 .
30444  Furthermore, it is possible to roll your own template to support a specific
30445  kind of material.
30446  Later we'll describe in more detail what is involved, and hopefully you
30447  will submit all the templates you create so we can include them in a later
30448  \SpecialChar LyX
30449  version.
30450 \end_layout
30451
30452 \begin_layout Standard
30453 Another basic idea of the external material feature is to distinguish between
30454  the original file that serves as a base for final material and the produced
30455  file that is included in your exported or printed document.
30456  For example, consider the case of a figure produced with 
30457 \begin_inset Flex Code
30458 status collapsed
30459
30460 \begin_layout Plain Layout
30461 Xfig
30462 \end_layout
30463
30464 \end_inset
30465
30466 .
30467  The Xfig application itself works on an original file with the 
30468 \begin_inset Flex Code
30469 status collapsed
30470
30471 \begin_layout Plain Layout
30472 .fig
30473 \end_layout
30474
30475 \end_inset
30476
30477  extension.
30478  Within Xfig, you create and change your figure, and when you are done,
30479  you save the 
30480 \begin_inset Flex Code
30481 status collapsed
30482
30483 \begin_layout Plain Layout
30484 fig
30485 \end_layout
30486
30487 \end_inset
30488
30489 -file.
30490  When you want to include the figure in your document, you invoke 
30491 \begin_inset Flex Code
30492 status collapsed
30493
30494 \begin_layout Plain Layout
30495 transfig
30496 \end_layout
30497
30498 \end_inset
30499
30500  in order to create a PostScript file that can readily be included in your
30501  \SpecialChar LaTeX
30502  file.
30503  In this case, the 
30504 \begin_inset Flex Code
30505 status collapsed
30506
30507 \begin_layout Plain Layout
30508 .fig
30509 \end_layout
30510
30511 \end_inset
30512
30513  file is the original file, and the PostScript file is the produced file.
30514 \end_layout
30515
30516 \begin_layout Standard
30517 This distinction is important in order to allow updating of the material
30518  while you are in the process of writing the document.
30519  Furthermore, it provides us with the flexibility that is needed to support
30520  multiple export formats.
30521  For instance, in the case of a plain text file, it is not exactly an award-winn
30522 ing idea to include the figure as raw PostScript.
30523  Instead, you would either prefer to just include a reference to the figure
30524  or try to invoke some graphics to ASCII converter to make the final result
30525  look similar to the real graphics.
30526  The external material management allows you to do this, because it is parametri
30527 zed on the different export formats that \SpecialChar LyX
30528  supports.
30529 \end_layout
30530
30531 \begin_layout Standard
30532 Besides supporting the production of different products according to the
30533  exported format, it supports tight integration with editing and viewing
30534  applications.
30535  In the case of an Xfig figure, you are able to invoke Xfig on the original
30536  file with a single click from within the external material dialog in \SpecialChar LyX
30537 ,
30538  and also preview the produced PostScript file with Ghostview with another
30539  click.
30540  No more fiddling around with the command line and/or file browsers to locate
30541  and manipulate the original or produced files.
30542  In this way, you are finally able to take full advantage of the many different
30543  applications that are relevant to use when you write your documents, and
30544  ultimately be more productive.
30545 \end_layout
30546
30547 \begin_layout Section
30548 The external template configuration files
30549 \end_layout
30550
30551 \begin_layout Standard
30552 It is relatively easy to add custom external template definitions to \SpecialChar LyX
30553 .
30554  However, be aware that doing this in an careless manner most probably 
30555 \emph on
30556 will
30557 \emph default
30558  introduce an easily exploitable security hole.
30559  So before you do this, please read the discussion about security in 
30560 \begin_inset CommandInset ref
30561 LatexCommand ref
30562 reference "sec:Security-discussion"
30563
30564 \end_inset
30565
30566 .
30567 \end_layout
30568
30569 \begin_layout Standard
30570 Having said that, we encourage you to submit any interesting templates that
30571  you create.
30572  
30573 \end_layout
30574
30575 \begin_layout Standard
30576 The external templates are defined in the 
30577 \begin_inset Flex Code
30578 status collapsed
30579
30580 \begin_layout Plain Layout
30581 *.xtemplate
30582 \end_layout
30583
30584 \end_inset
30585
30586  files that are stored in the 
30587 \begin_inset Flex Code
30588 status collapsed
30589
30590 \begin_layout Plain Layout
30591 LyXDir/lib/xtemplates/
30592 \end_layout
30593
30594 \end_inset
30595
30596  directory.
30597  Each template is defined in a file of its own.
30598  You can place your own templates in 
30599 \begin_inset Flex Code
30600 status collapsed
30601
30602 \begin_layout Plain Layout
30603 UserDir/xtemplates/
30604 \end_layout
30605
30606 \end_inset
30607
30608  or copy existing templates to that directory in order to modify them.
30609 \end_layout
30610
30611 \begin_layout Standard
30612 A typical template looks like this:
30613 \end_layout
30614
30615 \begin_layout LyX-Code
30616 Template XFig
30617 \end_layout
30618
30619 \begin_layout LyX-Code
30620 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
30621 \end_layout
30622
30623 \begin_layout LyX-Code
30624 HelpText
30625 \end_layout
30626
30627 \begin_layout LyX-Code
30628 An XFig figure.
30629 \end_layout
30630
30631 \begin_layout LyX-Code
30632 HelpTextEnd
30633 \end_layout
30634
30635 \begin_layout LyX-Code
30636 InputFormat fig
30637 \end_layout
30638
30639 \begin_layout LyX-Code
30640 FileFilter "*.fig"
30641 \end_layout
30642
30643 \begin_layout LyX-Code
30644 AutomaticProduction true
30645 \end_layout
30646
30647 \begin_layout LyX-Code
30648 Transform Rotate
30649 \end_layout
30650
30651 \begin_layout LyX-Code
30652 Transform Resize
30653 \end_layout
30654
30655 \begin_layout LyX-Code
30656 Format LaTeX
30657 \end_layout
30658
30659 \begin_layout LyX-Code
30660 TransformCommand Rotate RotationLatexCommand
30661 \end_layout
30662
30663 \begin_layout LyX-Code
30664 TransformCommand Resize ResizeLatexCommand
30665 \end_layout
30666
30667 \begin_layout LyX-Code
30668 Product "$$RotateFront$$ResizeFront
30669 \end_layout
30670
30671 \begin_layout LyX-Code
30672          
30673 \backslash
30674
30675 \backslash
30676 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
30677 \end_layout
30678
30679 \begin_layout LyX-Code
30680          $$ResizeBack$$RotateBack"
30681 \end_layout
30682
30683 \begin_layout LyX-Code
30684 UpdateFormat pstex
30685 \end_layout
30686
30687 \begin_layout LyX-Code
30688 UpdateResult "$$AbsPath$$Basename.pstex_t"
30689 \end_layout
30690
30691 \begin_layout LyX-Code
30692 Requirement "graphicx"
30693 \end_layout
30694
30695 \begin_layout LyX-Code
30696 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
30697 \end_layout
30698
30699 \begin_layout LyX-Code
30700 ReferencedFile latex "$$AbsPath$$Basename.eps"
30701 \end_layout
30702
30703 \begin_layout LyX-Code
30704 ReferencedFile dvi "$$AbsPath$$Basename.eps"
30705 \end_layout
30706
30707 \begin_layout LyX-Code
30708 FormatEnd
30709 \end_layout
30710
30711 \begin_layout LyX-Code
30712 Format PDFLaTeX
30713 \end_layout
30714
30715 \begin_layout LyX-Code
30716 TransformCommand Rotate RotationLatexCommand
30717 \end_layout
30718
30719 \begin_layout LyX-Code
30720 TransformCommand Resize ResizeLatexCommand
30721 \end_layout
30722
30723 \begin_layout LyX-Code
30724 Product "$$RotateFront$$ResizeFront
30725 \end_layout
30726
30727 \begin_layout LyX-Code
30728          
30729 \backslash
30730
30731 \backslash
30732 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
30733 \end_layout
30734
30735 \begin_layout LyX-Code
30736          $$ResizeBack$$RotateBack"
30737 \end_layout
30738
30739 \begin_layout LyX-Code
30740 UpdateFormat pdftex
30741 \end_layout
30742
30743 \begin_layout LyX-Code
30744 UpdateResult "$$AbsPath$$Basename.pdftex_t"
30745 \end_layout
30746
30747 \begin_layout LyX-Code
30748 Requirement "graphicx"
30749 \end_layout
30750
30751 \begin_layout LyX-Code
30752 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
30753 \end_layout
30754
30755 \begin_layout LyX-Code
30756 ReferencedFile latex "$$AbsPath$$Basename.pdf"
30757 \end_layout
30758
30759 \begin_layout LyX-Code
30760 FormatEnd
30761 \end_layout
30762
30763 \begin_layout LyX-Code
30764 Format Ascii
30765 \end_layout
30766
30767 \begin_layout LyX-Code
30768 Product "[XFig: $$FName]"
30769 \end_layout
30770
30771 \begin_layout LyX-Code
30772 FormatEnd
30773 \end_layout
30774
30775 \begin_layout LyX-Code
30776 Format DocBook
30777 \end_layout
30778
30779 \begin_layout LyX-Code
30780 Product "<graphic fileref=
30781 \backslash
30782 "$$AbsOrRelPathMaster$$Basename.eps
30783 \backslash
30784 ">
30785 \end_layout
30786
30787 \begin_layout LyX-Code
30788          </graphic>"
30789 \end_layout
30790
30791 \begin_layout LyX-Code
30792 UpdateFormat eps
30793 \end_layout
30794
30795 \begin_layout LyX-Code
30796 UpdateResult "$$AbsPath$$Basename.eps"
30797 \end_layout
30798
30799 \begin_layout LyX-Code
30800 ReferencedFile docbook "$$AbsPath$$Basename.eps"
30801 \end_layout
30802
30803 \begin_layout LyX-Code
30804 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
30805 \end_layout
30806
30807 \begin_layout LyX-Code
30808 FormatEnd
30809 \end_layout
30810
30811 \begin_layout LyX-Code
30812 TemplateEnd
30813 \end_layout
30814
30815 \begin_layout Standard
30816 As you can see, the template is enclosed in 
30817 \begin_inset Flex Code
30818 status collapsed
30819
30820 \begin_layout Plain Layout
30821 Template
30822 \end_layout
30823
30824 \end_inset
30825
30826  \SpecialChar ldots
30827  
30828 \begin_inset Flex Code
30829 status collapsed
30830
30831 \begin_layout Plain Layout
30832 TemplateEnd
30833 \end_layout
30834
30835 \end_inset
30836
30837 .
30838  It contains a header specifying some general settings and, for each supported
30839  primary document file format, a section 
30840 \begin_inset Flex Code
30841 status collapsed
30842
30843 \begin_layout Plain Layout
30844 Format
30845 \end_layout
30846
30847 \end_inset
30848
30849  \SpecialChar ldots
30850  
30851 \begin_inset Flex Code
30852 status collapsed
30853
30854 \begin_layout Plain Layout
30855 FormatEnd
30856 \end_layout
30857
30858 \end_inset
30859
30860 .
30861 \end_layout
30862
30863 \begin_layout Subsection
30864 The template header
30865 \end_layout
30866
30867 \begin_layout Description
30868 \begin_inset Flex Code
30869 status collapsed
30870
30871 \begin_layout Plain Layout
30872 AutomaticProduction
30873 \begin_inset space ~
30874 \end_inset
30875
30876 true|false
30877 \end_layout
30878
30879 \end_inset
30880
30881  Whether the file represented by the template must be generated by \SpecialChar LyX
30882 .
30883  This command must occur exactly once.
30884 \end_layout
30885
30886 \begin_layout Description
30887 \begin_inset Flex Code
30888 status collapsed
30889
30890 \begin_layout Plain Layout
30891 FileFilter
30892 \begin_inset space ~
30893 \end_inset
30894
30895 <pattern>
30896 \end_layout
30897
30898 \end_inset
30899
30900  A glob pattern that is used in the file dialog to filter out the desired
30901  files.
30902  If there is more than one possible file extension (e.
30903 \begin_inset space \thinspace{}
30904 \end_inset
30905
30906 g.
30907 \begin_inset space \space{}
30908 \end_inset
30909
30910 tgif has 
30911 \begin_inset Flex Code
30912 status collapsed
30913
30914 \begin_layout Plain Layout
30915 .obj
30916 \end_layout
30917
30918 \end_inset
30919
30920  and 
30921 \begin_inset Flex Code
30922 status collapsed
30923
30924 \begin_layout Plain Layout
30925 .tgo
30926 \end_layout
30927
30928 \end_inset
30929
30930 ), use something like 
30931 \begin_inset Flex Code
30932 status collapsed
30933
30934 \begin_layout Plain Layout
30935 "*.{obj,tgo}"
30936 \end_layout
30937
30938 \end_inset
30939
30940 .
30941  This command must occur exactly once.
30942 \end_layout
30943
30944 \begin_layout Description
30945 \begin_inset Flex Code
30946 status collapsed
30947
30948 \begin_layout Plain Layout
30949 GuiName
30950 \begin_inset space ~
30951 \end_inset
30952
30953 <guiname>
30954 \end_layout
30955
30956 \end_inset
30957
30958  The text that is displayed on the button.
30959  This command must occur exactly once.
30960 \end_layout
30961
30962 \begin_layout Description
30963 \begin_inset Flex Code
30964 status collapsed
30965
30966 \begin_layout Plain Layout
30967 HelpText
30968 \begin_inset space ~
30969 \end_inset
30970
30971 <text>
30972 \begin_inset space ~
30973 \end_inset
30974
30975 HelpTextEnd
30976 \end_layout
30977
30978 \end_inset
30979
30980  The help text that is used in the External dialog.
30981  Provide enough information to explain to the user just what the template
30982  can provide him with.
30983  This command must occur exactly once.
30984 \end_layout
30985
30986 \begin_layout Description
30987 \begin_inset Flex Code
30988 status collapsed
30989
30990 \begin_layout Plain Layout
30991 InputFormat
30992 \begin_inset space ~
30993 \end_inset
30994
30995 <format>
30996 \end_layout
30997
30998 \end_inset
30999
31000  The file format of the original file.
31001  This must be the name of a format that is known to \SpecialChar LyX
31002  (see 
31003 \begin_inset CommandInset ref
31004 LatexCommand ref
31005 reference "sec:Formats"
31006
31007 \end_inset
31008
31009 ).
31010  Use 
31011 \begin_inset Quotes eld
31012 \end_inset
31013
31014
31015 \begin_inset Flex Code
31016 status collapsed
31017
31018 \begin_layout Plain Layout
31019 *
31020 \end_layout
31021
31022 \end_inset
31023
31024
31025 \begin_inset Quotes erd
31026 \end_inset
31027
31028  if the template can handle original files of more than one format.
31029  \SpecialChar LyX
31030  will attempt to interrogate the file itself in order to deduce its format
31031  in this case.
31032  This command must occur exactly once.
31033 \end_layout
31034
31035 \begin_layout Description
31036 \begin_inset Flex Code
31037 status collapsed
31038
31039 \begin_layout Plain Layout
31040 Template
31041 \begin_inset space ~
31042 \end_inset
31043
31044 <id>
31045 \end_layout
31046
31047 \end_inset
31048
31049  A unique name for the template.
31050  It must not contain substitution macros (see below).
31051 \end_layout
31052
31053 \begin_layout Description
31054 \begin_inset Flex Code
31055 status collapsed
31056
31057 \begin_layout Plain Layout
31058 Transform
31059 \begin_inset space ~
31060 \end_inset
31061
31062 Rotate|Resize|Clip|Extra
31063 \end_layout
31064
31065 \end_inset
31066
31067  This command specifies which transformations are supported by this template.
31068  It may occur zero or more times.
31069  This command enables the corresponding tabs in the external dialog.
31070  Each 
31071 \begin_inset Flex Code
31072 status collapsed
31073
31074 \begin_layout Plain Layout
31075 Transform
31076 \end_layout
31077
31078 \end_inset
31079
31080  command must have either a corresponding 
31081 \begin_inset Flex Code
31082 status collapsed
31083
31084 \begin_layout Plain Layout
31085 TransformCommand
31086 \end_layout
31087
31088 \end_inset
31089
31090  or a 
31091 \begin_inset Flex Code
31092 status collapsed
31093
31094 \begin_layout Plain Layout
31095 TransformOption
31096 \end_layout
31097
31098 \end_inset
31099
31100  command in the 
31101 \begin_inset Flex Code
31102 status collapsed
31103
31104 \begin_layout Plain Layout
31105 Format
31106 \end_layout
31107
31108 \end_inset
31109
31110  section.
31111  Otherwise the transformation will not be supported by that format.
31112 \end_layout
31113
31114 \begin_layout Subsection
31115 The Format section
31116 \end_layout
31117
31118 \begin_layout Description
31119 \begin_inset Flex Code
31120 status collapsed
31121
31122 \begin_layout Plain Layout
31123 Format
31124 \begin_inset space ~
31125 \end_inset
31126
31127 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
31128 \end_layout
31129
31130 \end_inset
31131
31132  The primary document file format that this format definition is for.
31133  Not every template has a sensible representation in all document file formats.
31134  Please define nevertheless a 
31135 \begin_inset Flex Code
31136 status collapsed
31137
31138 \begin_layout Plain Layout
31139 Format
31140 \end_layout
31141
31142 \end_inset
31143
31144  section for all templates.
31145  Use a dummy text when no representation is available.
31146  Then you can at least see a reference to the external material in the exported
31147  document.
31148 \end_layout
31149
31150 \begin_layout Description
31151 \begin_inset Flex Code
31152 status collapsed
31153
31154 \begin_layout Plain Layout
31155 Option
31156 \begin_inset space ~
31157 \end_inset
31158
31159 <name>
31160 \begin_inset space ~
31161 \end_inset
31162
31163 <value>
31164 \end_layout
31165
31166 \end_inset
31167
31168  This command defines an additional macro 
31169 \begin_inset Flex Code
31170 status collapsed
31171
31172 \begin_layout Plain Layout
31173 $$<name>
31174 \end_layout
31175
31176 \end_inset
31177
31178  for substitution in 
31179 \begin_inset Flex Code
31180 status collapsed
31181
31182 \begin_layout Plain Layout
31183 Product
31184 \end_layout
31185
31186 \end_inset
31187
31188 .
31189  
31190 \begin_inset Flex Code
31191 status collapsed
31192
31193 \begin_layout Plain Layout
31194 <value>
31195 \end_layout
31196
31197 \end_inset
31198
31199  itself may contain substitution macros.
31200  The advantage over using 
31201 \begin_inset Flex Code
31202 status collapsed
31203
31204 \begin_layout Plain Layout
31205 <value>
31206 \end_layout
31207
31208 \end_inset
31209
31210  directly in 
31211 \begin_inset Flex Code
31212 status collapsed
31213
31214 \begin_layout Plain Layout
31215 Product
31216 \end_layout
31217
31218 \end_inset
31219
31220  is that the substituted value of 
31221 \begin_inset Flex Code
31222 status collapsed
31223
31224 \begin_layout Plain Layout
31225 $$<name>
31226 \end_layout
31227
31228 \end_inset
31229
31230  is sanitized so that it is a valid optional argument in the document format.
31231  This command may occur zero or more times.
31232 \end_layout
31233
31234 \begin_layout Description
31235 \begin_inset Flex Code
31236 status collapsed
31237
31238 \begin_layout Plain Layout
31239 Product
31240 \begin_inset space ~
31241 \end_inset
31242
31243 <text>
31244 \end_layout
31245
31246 \end_inset
31247
31248  The text that is inserted in the exported document.
31249  This is actually the most important command and can be quite complex.
31250  This command must occur exactly once.
31251 \end_layout
31252
31253 \begin_layout Description
31254 \begin_inset Flex Code
31255 status collapsed
31256
31257 \begin_layout Plain Layout
31258 Preamble
31259 \begin_inset space ~
31260 \end_inset
31261
31262 <name>
31263 \end_layout
31264
31265 \end_inset
31266
31267  This command specifies a preamble snippet that will be included in the
31268  \SpecialChar LaTeX
31269  preamble.
31270  It has to be defined using 
31271 \begin_inset Flex Code
31272 status collapsed
31273
31274 \begin_layout Plain Layout
31275 PreambleDef
31276 \end_layout
31277
31278 \end_inset
31279
31280  \SpecialChar ldots
31281  
31282 \begin_inset Flex Code
31283 status collapsed
31284
31285 \begin_layout Plain Layout
31286 PreambleDefEnd
31287 \end_layout
31288
31289 \end_inset
31290
31291 .
31292  This command may occur zero or more times.
31293 \end_layout
31294
31295 \begin_layout Description
31296 \begin_inset Flex Code
31297 status collapsed
31298
31299 \begin_layout Plain Layout
31300 ReferencedFile
31301 \begin_inset space ~
31302 \end_inset
31303
31304 <format>
31305 \begin_inset space ~
31306 \end_inset
31307
31308 <filename>
31309 \end_layout
31310
31311 \end_inset
31312
31313  This command denotes files that are created by the conversion process and
31314  are needed for a particular export format.
31315  If the filename is relative, it is interpreted relative to the master document.
31316  This command may be given zero or more times.
31317 \end_layout
31318
31319 \begin_layout Description
31320 \begin_inset Flex Code
31321 status collapsed
31322
31323 \begin_layout Plain Layout
31324 Requirement
31325 \begin_inset space ~
31326 \end_inset
31327
31328 <package>
31329 \end_layout
31330
31331 \end_inset
31332
31333  The name of a required \SpecialChar LaTeX
31334  package.
31335  The package is included via 
31336 \begin_inset Flex Code
31337 status collapsed
31338
31339 \begin_layout Plain Layout
31340
31341 \backslash
31342 usepackage{}
31343 \end_layout
31344
31345 \end_inset
31346
31347  in the \SpecialChar LaTeX
31348  preamble.
31349  This command may occur zero or more times.
31350 \end_layout
31351
31352 \begin_layout Description
31353 \begin_inset Flex Code
31354 status collapsed
31355
31356 \begin_layout Plain Layout
31357 TransformCommand
31358 \begin_inset space ~
31359 \end_inset
31360
31361 Rotate
31362 \begin_inset space ~
31363 \end_inset
31364
31365 RotationLatexCommand
31366 \end_layout
31367
31368 \end_inset
31369
31370  This command specifies that the built in \SpecialChar LaTeX
31371  command should be used for rotation.
31372  This command may occur once or not at all.
31373 \end_layout
31374
31375 \begin_layout Description
31376 \begin_inset Flex Code
31377 status collapsed
31378
31379 \begin_layout Plain Layout
31380 TransformCommand
31381 \begin_inset space ~
31382 \end_inset
31383
31384 Resize
31385 \begin_inset space ~
31386 \end_inset
31387
31388 ResizeLatexCommand
31389 \end_layout
31390
31391 \end_inset
31392
31393  This command specifies that the built in \SpecialChar LaTeX
31394  command should be used for resizing.
31395  This command may occur once or not at all.
31396 \end_layout
31397
31398 \begin_layout Description
31399 \begin_inset Flex Code
31400 status collapsed
31401
31402 \begin_layout Plain Layout
31403 TransformOption
31404 \begin_inset space ~
31405 \end_inset
31406
31407 Rotate
31408 \begin_inset space ~
31409 \end_inset
31410
31411 RotationLatexOption
31412 \end_layout
31413
31414 \end_inset
31415
31416  This command specifies that rotation is done via an optional argument.
31417  This command may occur once or not at all.
31418 \end_layout
31419
31420 \begin_layout Description
31421 \begin_inset Flex Code
31422 status collapsed
31423
31424 \begin_layout Plain Layout
31425 TransformOption
31426 \begin_inset space ~
31427 \end_inset
31428
31429 Resize
31430 \begin_inset space ~
31431 \end_inset
31432
31433 ResizeLatexOption
31434 \end_layout
31435
31436 \end_inset
31437
31438  This command specifies that resizing is done via an optional argument.
31439  This command may occur once or not at all.
31440 \end_layout
31441
31442 \begin_layout Description
31443 \begin_inset Flex Code
31444 status collapsed
31445
31446 \begin_layout Plain Layout
31447 TransformOption
31448 \begin_inset space ~
31449 \end_inset
31450
31451 Clip
31452 \begin_inset space ~
31453 \end_inset
31454
31455 ClipLatexOption
31456 \end_layout
31457
31458 \end_inset
31459
31460  This command specifies that clipping is done via an optional argument.
31461  This command may occur once or not at all.
31462 \end_layout
31463
31464 \begin_layout Description
31465 \begin_inset Flex Code
31466 status collapsed
31467
31468 \begin_layout Plain Layout
31469 TransformOption
31470 \begin_inset space ~
31471 \end_inset
31472
31473 Extra
31474 \begin_inset space ~
31475 \end_inset
31476
31477 ExtraLatexOption
31478 \end_layout
31479
31480 \end_inset
31481
31482  This command specifies that an extra optional argument is used.
31483  This command may occur once or not at all.
31484 \end_layout
31485
31486 \begin_layout Description
31487 \begin_inset Flex Code
31488 status collapsed
31489
31490 \begin_layout Plain Layout
31491 UpdateFormat
31492 \begin_inset space ~
31493 \end_inset
31494
31495 <format>
31496 \end_layout
31497
31498 \end_inset
31499
31500  The file format of the converted file.
31501  This must be the name of a format that is known to \SpecialChar LyX
31502  (see the 
31503 \begin_inset Flex Noun
31504 status collapsed
31505
31506 \begin_layout Plain Layout
31507 Tools\SpecialChar menuseparator
31508 Preferences\SpecialChar menuseparator
31509 File Handling\SpecialChar menuseparator
31510 File Format
31511 \end_layout
31512
31513 \end_inset
31514
31515  dialog).
31516  This command must occur exactly once.
31517  If the resulting file format is PDF, you need to specify the format 
31518 \begin_inset Flex Code
31519 status collapsed
31520
31521 \begin_layout Plain Layout
31522 pdf6
31523 \end_layout
31524
31525 \end_inset
31526
31527 .
31528  This is the PDF format used for including graphics.
31529  The other defined PDF formats are for document export.
31530 \end_layout
31531
31532 \begin_layout Description
31533 \begin_inset Flex Code
31534 status collapsed
31535
31536 \begin_layout Plain Layout
31537 UpdateResult
31538 \begin_inset space ~
31539 \end_inset
31540
31541 <filename>
31542 \end_layout
31543
31544 \end_inset
31545
31546  The file name of the converted file.
31547  The file name must be absolute.
31548  This command must occur exactly once.
31549 \end_layout
31550
31551 \begin_layout Subsection
31552 Preamble definitions
31553 \end_layout
31554
31555 \begin_layout Standard
31556 The external template configuration file may contain additional preamble
31557  definitions enclosed by 
31558 \begin_inset Flex Code
31559 status collapsed
31560
31561 \begin_layout Plain Layout
31562 PreambleDef
31563 \end_layout
31564
31565 \end_inset
31566
31567  \SpecialChar ldots
31568  
31569 \begin_inset Flex Code
31570 status collapsed
31571
31572 \begin_layout Plain Layout
31573 PreambleDefEnd
31574 \end_layout
31575
31576 \end_inset
31577
31578 .
31579  They can be used by the templates in the 
31580 \begin_inset Flex Code
31581 status collapsed
31582
31583 \begin_layout Plain Layout
31584 Format
31585 \end_layout
31586
31587 \end_inset
31588
31589  section.
31590 \end_layout
31591
31592 \begin_layout Section
31593 The substitution mechanism
31594 \end_layout
31595
31596 \begin_layout Standard
31597 When the external material facility invokes an external program, it is done
31598  on the basis of a command defined in the template configuration file.
31599  These commands can contain various macros that are expanded before execution.
31600  Execution always take place in the directory of the containing document.
31601 \end_layout
31602
31603 \begin_layout Standard
31604 Also, whenever external material is to be displayed, the name will be produced
31605  by the substitution mechanism, and most other commands in the template
31606  definition support substitution as well.
31607 \end_layout
31608
31609 \begin_layout Standard
31610 The available macros are the following:
31611 \end_layout
31612
31613 \begin_layout Description
31614 \begin_inset Flex Code
31615 status collapsed
31616
31617 \begin_layout Plain Layout
31618 $$AbsOrRelPathMaster
31619 \end_layout
31620
31621 \end_inset
31622
31623  The file path, absolute or relative to the master \SpecialChar LyX
31624  document.
31625 \end_layout
31626
31627 \begin_layout Description
31628 \begin_inset Flex Code
31629 status collapsed
31630
31631 \begin_layout Plain Layout
31632 $$AbsOrRelPathParent
31633 \end_layout
31634
31635 \end_inset
31636
31637  The file path, absolute or relative to the \SpecialChar LyX
31638  document.
31639 \end_layout
31640
31641 \begin_layout Description
31642 \begin_inset Flex Code
31643 status collapsed
31644
31645 \begin_layout Plain Layout
31646 $$AbsPath
31647 \end_layout
31648
31649 \end_inset
31650
31651  The absolute file path.
31652 \end_layout
31653
31654 \begin_layout Description
31655 \begin_inset Flex Code
31656 status collapsed
31657
31658 \begin_layout Plain Layout
31659 $$Basename
31660 \end_layout
31661
31662 \end_inset
31663
31664  The filename without path and without the extension.
31665 \end_layout
31666
31667 \begin_layout Description
31668 \begin_inset Flex Code
31669 status collapsed
31670
31671 \begin_layout Plain Layout
31672 $$Contents(
31673 \begin_inset Quotes eld
31674 \end_inset
31675
31676 filename.ext
31677 \begin_inset Quotes erd
31678 \end_inset
31679
31680 )
31681 \end_layout
31682
31683 \end_inset
31684
31685  This macro will expand to the contents of the file with the name 
31686 \begin_inset Flex Code
31687 status collapsed
31688
31689 \begin_layout Plain Layout
31690 filename.ext
31691 \end_layout
31692
31693 \end_inset
31694
31695 .
31696 \end_layout
31697
31698 \begin_layout Description
31699 \begin_inset Flex Code
31700 status collapsed
31701
31702 \begin_layout Plain Layout
31703 $$Extension
31704 \end_layout
31705
31706 \end_inset
31707
31708  The file extension (including the dot).
31709 \end_layout
31710
31711 \begin_layout Description
31712 \begin_inset Flex Code
31713 status collapsed
31714
31715 \begin_layout Plain Layout
31716 $$pngOrjpg
31717 \end_layout
31718
31719 \end_inset
31720
31721  This will be the string 
31722 \begin_inset Quotes eld
31723 \end_inset
31724
31725 jpg
31726 \begin_inset Quotes erd
31727 \end_inset
31728
31729  if the file is in JPEG format, otherwise it will be the string 
31730 \begin_inset Quotes eld
31731 \end_inset
31732
31733 png
31734 \begin_inset Quotes erd
31735 \end_inset
31736
31737 .
31738  This is useful to avoid uneeded conversions for output formats that support
31739  both PNG and JPEG fomats.
31740  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
31741  output
31742  format.
31743 \end_layout
31744
31745 \begin_layout Description
31746 \begin_inset Flex Code
31747 status collapsed
31748
31749 \begin_layout Plain Layout
31750 $$FName
31751 \end_layout
31752
31753 \end_inset
31754
31755  The filename of the file specified in the external material dialog.
31756  This is either an absolute name, or it is relative to the \SpecialChar LyX
31757  document.
31758 \end_layout
31759
31760 \begin_layout Description
31761 \begin_inset Flex Code
31762 status collapsed
31763
31764 \begin_layout Plain Layout
31765 $$FPath
31766 \end_layout
31767
31768 \end_inset
31769
31770  The path part of 
31771 \begin_inset Flex Code
31772 status collapsed
31773
31774 \begin_layout Plain Layout
31775 $$FName
31776 \end_layout
31777
31778 \end_inset
31779
31780  (absolute name or relative to the \SpecialChar LyX
31781  document).
31782 \end_layout
31783
31784 \begin_layout Description
31785 \begin_inset Flex Code
31786 status collapsed
31787
31788 \begin_layout Plain Layout
31789 $$RelPathMaster
31790 \end_layout
31791
31792 \end_inset
31793
31794  The file path, relative to the master \SpecialChar LyX
31795  document.
31796 \end_layout
31797
31798 \begin_layout Description
31799 \begin_inset Flex Code
31800 status collapsed
31801
31802 \begin_layout Plain Layout
31803 $$RelPathParent
31804 \end_layout
31805
31806 \end_inset
31807
31808  The file path, relative to the \SpecialChar LyX
31809  document.
31810 \end_layout
31811
31812 \begin_layout Description
31813 \begin_inset Flex Code
31814 status collapsed
31815
31816 \begin_layout Plain Layout
31817 $$Sysdir
31818 \end_layout
31819
31820 \end_inset
31821
31822  This macro will expand to the absolute path of the system directory.
31823  This is typically used to point to the various helper scripts that are
31824  bundled with \SpecialChar LyX
31825 .
31826 \end_layout
31827
31828 \begin_layout Description
31829 \begin_inset Flex Code
31830 status collapsed
31831
31832 \begin_layout Plain Layout
31833 $$Tempname
31834 \end_layout
31835
31836 \end_inset
31837
31838  A name and full path to a temporary file which will be automatically deleted
31839  whenever the containing document is closed, or the external material insertion
31840  deleted.
31841 \end_layout
31842
31843 \begin_layout Standard
31844 All path macros contain a trailing directory separator, so you can construct
31845  e.
31846 \begin_inset space \thinspace{}
31847 \end_inset
31848
31849 g.
31850 \begin_inset space \space{}
31851 \end_inset
31852
31853 the absolute filename with 
31854 \begin_inset Flex Code
31855 status collapsed
31856
31857 \begin_layout Plain Layout
31858 $$AbsPath$$Basename$$Extension
31859 \end_layout
31860
31861 \end_inset
31862
31863 .
31864 \end_layout
31865
31866 \begin_layout Standard
31867 The macros above are substituted in all commands unless otherwise noted.
31868  The command 
31869 \begin_inset Flex Code
31870 status collapsed
31871
31872 \begin_layout Plain Layout
31873 Product
31874 \end_layout
31875
31876 \end_inset
31877
31878  supports additionally the following substitutions if they are enabled by
31879  the 
31880 \begin_inset Flex Code
31881 status collapsed
31882
31883 \begin_layout Plain Layout
31884 Transform
31885 \end_layout
31886
31887 \end_inset
31888
31889  and 
31890 \begin_inset Flex Code
31891 status collapsed
31892
31893 \begin_layout Plain Layout
31894 TransformCommand
31895 \end_layout
31896
31897 \end_inset
31898
31899  commands:
31900 \end_layout
31901
31902 \begin_layout Description
31903 \begin_inset Flex Code
31904 status collapsed
31905
31906 \begin_layout Plain Layout
31907 $$ResizeFront
31908 \end_layout
31909
31910 \end_inset
31911
31912  The front part of the resize command.
31913 \end_layout
31914
31915 \begin_layout Description
31916 \begin_inset Flex Code
31917 status collapsed
31918
31919 \begin_layout Plain Layout
31920 $$ResizeBack
31921 \end_layout
31922
31923 \end_inset
31924
31925  The back part of the resize command.
31926 \end_layout
31927
31928 \begin_layout Description
31929 \begin_inset Flex Code
31930 status collapsed
31931
31932 \begin_layout Plain Layout
31933 $$RotateFront
31934 \end_layout
31935
31936 \end_inset
31937
31938  The front part of the rotation command.
31939 \end_layout
31940
31941 \begin_layout Description
31942 \begin_inset Flex Code
31943 status collapsed
31944
31945 \begin_layout Plain Layout
31946 $$RotateBack
31947 \end_layout
31948
31949 \end_inset
31950
31951  The back part of the rotation command.
31952 \end_layout
31953
31954 \begin_layout Standard
31955 The value string of the 
31956 \begin_inset Flex Code
31957 status collapsed
31958
31959 \begin_layout Plain Layout
31960 Option
31961 \end_layout
31962
31963 \end_inset
31964
31965  command supports additionally the following substitutions if they are enabled
31966  by the 
31967 \begin_inset Flex Code
31968 status collapsed
31969
31970 \begin_layout Plain Layout
31971 Transform
31972 \end_layout
31973
31974 \end_inset
31975
31976  and 
31977 \begin_inset Flex Code
31978 status collapsed
31979
31980 \begin_layout Plain Layout
31981 TransformOption
31982 \end_layout
31983
31984 \end_inset
31985
31986  commands:
31987 \end_layout
31988
31989 \begin_layout Description
31990 \begin_inset Flex Code
31991 status collapsed
31992
31993 \begin_layout Plain Layout
31994 $$Clip
31995 \end_layout
31996
31997 \end_inset
31998
31999  The clip option.
32000 \end_layout
32001
32002 \begin_layout Description
32003 \begin_inset Flex Code
32004 status collapsed
32005
32006 \begin_layout Plain Layout
32007 $$Extra
32008 \end_layout
32009
32010 \end_inset
32011
32012  The extra option.
32013 \end_layout
32014
32015 \begin_layout Description
32016 \begin_inset Flex Code
32017 status collapsed
32018
32019 \begin_layout Plain Layout
32020 $$Resize
32021 \end_layout
32022
32023 \end_inset
32024
32025  The resize option.
32026 \end_layout
32027
32028 \begin_layout Description
32029 \begin_inset Flex Code
32030 status collapsed
32031
32032 \begin_layout Plain Layout
32033 $$Rotate
32034 \end_layout
32035
32036 \end_inset
32037
32038  The rotation option.
32039 \end_layout
32040
32041 \begin_layout Standard
32042 You may ask why there are so many path macros.
32043  There are mainly two reasons:
32044 \end_layout
32045
32046 \begin_layout Enumerate
32047 Relative and absolute file names should remain relative or absolute, respectivel
32048 y.
32049  Users may have reasons to prefer either form.
32050  Relative names are useful for portable documents that should work on different
32051  machines, for example.
32052  Absolute names may be required by some programs.
32053 \end_layout
32054
32055 \begin_layout Enumerate
32056 \SpecialChar LaTeX
32057  treats relative file names differently than \SpecialChar LyX
32058  and other programs in nested
32059  included files.
32060  For \SpecialChar LyX
32061 , a relative file name is always relative to the document that contains
32062  the file name.
32063  For \SpecialChar LaTeX
32064 , it is always relative to the master document.
32065  These two definitions are identical if you have only one document, but
32066  differ if you have a master document that includes part documents.
32067  That means that relative filenames must be transformed when presented to
32068  \SpecialChar LaTeX
32069 .
32070  Fortunately \SpecialChar LyX
32071  does this automatically for you if you choose the right macros.
32072 \end_layout
32073
32074 \begin_layout Standard
32075 So which path macro should be used in new template definitions? The rule
32076  is not difficult:
32077 \end_layout
32078
32079 \begin_layout Itemize
32080 Use 
32081 \begin_inset Flex Code
32082 status collapsed
32083
32084 \begin_layout Plain Layout
32085 $$AbsPath
32086 \end_layout
32087
32088 \end_inset
32089
32090  if an absolute path is required.
32091 \end_layout
32092
32093 \begin_layout Itemize
32094 Use 
32095 \begin_inset Flex Code
32096 status collapsed
32097
32098 \begin_layout Plain Layout
32099 $$AbsOrRelPathMaster
32100 \end_layout
32101
32102 \end_inset
32103
32104  if the substituted string is some kind of \SpecialChar LaTeX
32105  input.
32106 \end_layout
32107
32108 \begin_layout Itemize
32109 Else use 
32110 \begin_inset Flex Code
32111 status collapsed
32112
32113 \begin_layout Plain Layout
32114 $$AbsOrRelPathParent
32115 \end_layout
32116
32117 \end_inset
32118
32119  in order to preserve the user's choice.
32120 \end_layout
32121
32122 \begin_layout Standard
32123 There are special cases where this rule does not work and e.
32124 \begin_inset space \thinspace{}
32125 \end_inset
32126
32127 g.
32128 \begin_inset space \space{}
32129 \end_inset
32130
32131 relative names are needed, but normally it will work just fine.
32132  One example for such a case is the command 
32133 \begin_inset Flex Code
32134 status collapsed
32135
32136 \begin_layout Plain Layout
32137 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
32138 \end_layout
32139
32140 \end_inset
32141
32142  in the XFig template above: We can't use the absolute name because the
32143  copier for 
32144 \begin_inset Flex Code
32145 status collapsed
32146
32147 \begin_layout Plain Layout
32148 .pstex_t
32149 \end_layout
32150
32151 \end_inset
32152
32153  files needs the relative name in order to rewrite the file content.
32154 \end_layout
32155
32156 \begin_layout Section
32157 Security discussion
32158 \begin_inset CommandInset label
32159 LatexCommand label
32160 name "sec:Security-discussion"
32161
32162 \end_inset
32163
32164
32165 \end_layout
32166
32167 \begin_layout Standard
32168 The external material feature interfaces with a lot of external programs
32169  and does so automatically, so we have to consider the security implications
32170  of this.
32171  In particular, since you have the option of including your own filenames
32172  and/or parameter strings and those are expanded into a command, it seems
32173  that it would be possible to create a malicious document which executes
32174  arbitrary commands when a user views or prints the document.
32175  This is something we definitely want to avoid.
32176 \end_layout
32177
32178 \begin_layout Standard
32179 However, since the external program commands are specified in the template
32180  configuration file only, there are no security issues if \SpecialChar LyX
32181  is properly configure
32182 d with safe templates only.
32183  This is so because the external programs are invoked with the 
32184 \begin_inset Flex Code
32185 status collapsed
32186
32187 \begin_layout Plain Layout
32188 execvp
32189 \end_layout
32190
32191 \end_inset
32192
32193 -system call rather than the 
32194 \begin_inset Flex Code
32195 status collapsed
32196
32197 \begin_layout Plain Layout
32198 system
32199 \end_layout
32200
32201 \end_inset
32202
32203  system-call, so it's not possible to execute arbitrary commands from the
32204  filename or parameter section via the shell.
32205 \end_layout
32206
32207 \begin_layout Standard
32208 This also implies that you are restricted in what command strings you can
32209  use in the external material templates.
32210  In particular, pipes and redirection are not readily available.
32211  This has to be so if \SpecialChar LyX
32212  should remain safe.
32213  If you want to use some of the shell features, you should write a safe
32214  script to do this in a controlled manner, and then invoke the script from
32215  the command string.
32216  
32217 \end_layout
32218
32219 \begin_layout Standard
32220 It is possible to design a template that interacts directly with the shell,
32221  but since this would allow a malicious user to execute arbitrary commands
32222  by writing clever filenames and/or parameters, we generally recommend that
32223  you only use safe scripts that work with the 
32224 \begin_inset Flex Code
32225 status collapsed
32226
32227 \begin_layout Plain Layout
32228 execvp
32229 \end_layout
32230
32231 \end_inset
32232
32233  system call in a controlled manner.
32234  Of course, for use in a controlled environment, it can be tempting to just
32235  fall back to use ordinary shell scripts.
32236  If you do so, be aware that you 
32237 \emph on
32238 will
32239 \emph default
32240  provide an easily exploitable security hole in your system.
32241  Of course it stands to reason that such unsafe templates will never be
32242  included in the standard \SpecialChar LyX
32243  distribution, although we do encourage people
32244  to submit new templates in the open source tradition.
32245  But \SpecialChar LyX
32246  as shipped from the official distribution channels will never have
32247  unsafe templates.
32248 \end_layout
32249
32250 \begin_layout Standard
32251 Including external material provides a lot of power, and you have to be
32252  careful not to introduce security hazards with this power.
32253  A subtle error in a single line in an innocent looking script can open
32254  the door to huge security problems.
32255  So if you do not fully understand the issues, we recommend that you consult
32256  a knowledgeable security professional or the \SpecialChar LyX
32257  development team if you have
32258  any questions about whether a given template is safe or not.
32259  And do this before you use it in an uncontrolled environment.
32260 \end_layout
32261
32262 \begin_layout Chapter
32263 \start_of_appendix
32264 List of supported \SpecialChar LyX
32265  functions to be used in layouts
32266 \begin_inset CommandInset label
32267 LatexCommand label
32268 name "chap:List-of-functions"
32269
32270 \end_inset
32271
32272
32273 \end_layout
32274
32275 \begin_layout Standard
32276 \align center
32277 \begin_inset Tabular
32278 <lyxtabular version="3" rows="11" columns="8">
32279 <features tabularvalignment="middle">
32280 <column alignment="left" valignment="top">
32281 <column alignment="left" valignment="top">
32282 <column alignment="left" valignment="top">
32283 <column alignment="left" valignment="top">
32284 <column alignment="left" valignment="top">
32285 <column alignment="left" valignment="top">
32286 <column alignment="left" valignment="top">
32287 <column alignment="left" valignment="top">
32288 <row>
32289 <cell alignment="left" valignment="top" usebox="none">
32290 \begin_inset Text
32291
32292 \begin_layout Plain Layout
32293 accents
32294 \end_layout
32295
32296 \end_inset
32297 </cell>
32298 <cell alignment="left" valignment="top" usebox="none">
32299 \begin_inset Text
32300
32301 \begin_layout Plain Layout
32302 booktabs
32303 \end_layout
32304
32305 \end_inset
32306 </cell>
32307 <cell alignment="left" valignment="top" usebox="none">
32308 \begin_inset Text
32309
32310 \begin_layout Plain Layout
32311 feyn
32312 \end_layout
32313
32314 \end_inset
32315 </cell>
32316 <cell alignment="left" valignment="top" usebox="none">
32317 \begin_inset Text
32318
32319 \begin_layout Plain Layout
32320 listings
32321 \end_layout
32322
32323 \end_inset
32324 </cell>
32325 <cell alignment="center" valignment="top" usebox="none">
32326 \begin_inset Text
32327
32328 \begin_layout Plain Layout
32329 natbib
32330 \end_layout
32331
32332 \end_inset
32333 </cell>
32334 <cell alignment="center" valignment="top" usebox="none">
32335 \begin_inset Text
32336
32337 \begin_layout Plain Layout
32338 rotfloat
32339 \end_layout
32340
32341 \end_inset
32342 </cell>
32343 <cell alignment="center" valignment="top" usebox="none">
32344 \begin_inset Text
32345
32346 \begin_layout Plain Layout
32347 tfrupee
32348 \end_layout
32349
32350 \end_inset
32351 </cell>
32352 <cell alignment="center" valignment="top" usebox="none">
32353 \begin_inset Text
32354
32355 \begin_layout Plain Layout
32356 wasysym
32357 \end_layout
32358
32359 \end_inset
32360 </cell>
32361 </row>
32362 <row>
32363 <cell alignment="left" valignment="top" usebox="none">
32364 \begin_inset Text
32365
32366 \begin_layout Plain Layout
32367 amsbsy
32368 \end_layout
32369
32370 \end_inset
32371 </cell>
32372 <cell alignment="left" valignment="top" usebox="none">
32373 \begin_inset Text
32374
32375 \begin_layout Plain Layout
32376 calc
32377 \end_layout
32378
32379 \end_inset
32380 </cell>
32381 <cell alignment="left" valignment="top" usebox="none">
32382 \begin_inset Text
32383
32384 \begin_layout Plain Layout
32385 fixltx2e
32386 \end_layout
32387
32388 \end_inset
32389 </cell>
32390 <cell alignment="left" valignment="top" usebox="none">
32391 \begin_inset Text
32392
32393 \begin_layout Plain Layout
32394 longtable
32395 \end_layout
32396
32397 \end_inset
32398 </cell>
32399 <cell alignment="center" valignment="top" usebox="none">
32400 \begin_inset Text
32401
32402 \begin_layout Plain Layout
32403 nomencl
32404 \end_layout
32405
32406 \end_inset
32407 </cell>
32408 <cell alignment="center" valignment="top" usebox="none">
32409 \begin_inset Text
32410
32411 \begin_layout Plain Layout
32412 rsphrase
32413 \end_layout
32414
32415 \end_inset
32416 </cell>
32417 <cell alignment="center" valignment="top" usebox="none">
32418 \begin_inset Text
32419
32420 \begin_layout Plain Layout
32421 tipa
32422 \end_layout
32423
32424 \end_inset
32425 </cell>
32426 <cell alignment="center" valignment="top" usebox="none">
32427 \begin_inset Text
32428
32429 \begin_layout Plain Layout
32430 wrapfig
32431 \end_layout
32432
32433 \end_inset
32434 </cell>
32435 </row>
32436 <row>
32437 <cell alignment="left" valignment="top" usebox="none">
32438 \begin_inset Text
32439
32440 \begin_layout Plain Layout
32441 amscd
32442 \end_layout
32443
32444 \end_inset
32445 </cell>
32446 <cell alignment="left" valignment="top" usebox="none">
32447 \begin_inset Text
32448
32449 \begin_layout Plain Layout
32450 CJK
32451 \end_layout
32452
32453 \end_inset
32454 </cell>
32455 <cell alignment="left" valignment="top" usebox="none">
32456 \begin_inset Text
32457
32458 \begin_layout Plain Layout
32459 float
32460 \end_layout
32461
32462 \end_inset
32463 </cell>
32464 <cell alignment="left" valignment="top" usebox="none">
32465 \begin_inset Text
32466
32467 \begin_layout Plain Layout
32468 lyxskak
32469 \end_layout
32470
32471 \end_inset
32472 </cell>
32473 <cell alignment="center" valignment="top" usebox="none">
32474 \begin_inset Text
32475
32476 \begin_layout Plain Layout
32477 pdfcolmk
32478 \end_layout
32479
32480 \end_inset
32481 </cell>
32482 <cell alignment="center" valignment="top" usebox="none">
32483 \begin_inset Text
32484
32485 \begin_layout Plain Layout
32486 setspace
32487 \end_layout
32488
32489 \end_inset
32490 </cell>
32491 <cell alignment="center" valignment="top" usebox="none">
32492 \begin_inset Text
32493
32494 \begin_layout Plain Layout
32495 tipx
32496 \end_layout
32497
32498 \end_inset
32499 </cell>
32500 <cell alignment="center" valignment="top" usebox="none">
32501 \begin_inset Text
32502
32503 \begin_layout Plain Layout
32504 xargs
32505 \end_layout
32506
32507 \end_inset
32508 </cell>
32509 </row>
32510 <row>
32511 <cell alignment="left" valignment="top" usebox="none">
32512 \begin_inset Text
32513
32514 \begin_layout Plain Layout
32515 amsmath
32516 \end_layout
32517
32518 \end_inset
32519 </cell>
32520 <cell alignment="left" valignment="top" usebox="none">
32521 \begin_inset Text
32522
32523 \begin_layout Plain Layout
32524 color
32525 \end_layout
32526
32527 \end_inset
32528 </cell>
32529 <cell alignment="left" valignment="top" usebox="none">
32530 \begin_inset Text
32531
32532 \begin_layout Plain Layout
32533 framed
32534 \end_layout
32535
32536 \end_inset
32537 </cell>
32538 <cell alignment="left" valignment="top" usebox="none">
32539 \begin_inset Text
32540
32541 \begin_layout Plain Layout
32542 makeidx
32543 \end_layout
32544
32545 \end_inset
32546 </cell>
32547 <cell alignment="center" valignment="top" usebox="none">
32548 \begin_inset Text
32549
32550 \begin_layout Plain Layout
32551 pdfpages
32552 \end_layout
32553
32554 \end_inset
32555 </cell>
32556 <cell alignment="center" valignment="top" usebox="none">
32557 \begin_inset Text
32558
32559 \begin_layout Plain Layout
32560 shapepar
32561 \end_layout
32562
32563 \end_inset
32564 </cell>
32565 <cell alignment="center" valignment="top" usebox="none">
32566 \begin_inset Text
32567
32568 \begin_layout Plain Layout
32569 tone
32570 \end_layout
32571
32572 \end_inset
32573 </cell>
32574 <cell alignment="center" valignment="top" usebox="none">
32575 \begin_inset Text
32576
32577 \begin_layout Plain Layout
32578 xcolor
32579 \end_layout
32580
32581 \end_inset
32582 </cell>
32583 </row>
32584 <row>
32585 <cell alignment="left" valignment="top" usebox="none">
32586 \begin_inset Text
32587
32588 \begin_layout Plain Layout
32589 amssymb
32590 \end_layout
32591
32592 \end_inset
32593 </cell>
32594 <cell alignment="left" valignment="top" usebox="none">
32595 \begin_inset Text
32596
32597 \begin_layout Plain Layout
32598 covington
32599 \end_layout
32600
32601 \end_inset
32602 </cell>
32603 <cell alignment="left" valignment="top" usebox="none">
32604 \begin_inset Text
32605
32606 \begin_layout Plain Layout
32607 graphicx
32608 \end_layout
32609
32610 \end_inset
32611 </cell>
32612 <cell alignment="left" valignment="top" usebox="none">
32613 \begin_inset Text
32614
32615 \begin_layout Plain Layout
32616 marvosym
32617 \end_layout
32618
32619 \end_inset
32620 </cell>
32621 <cell alignment="center" valignment="top" usebox="none">
32622 \begin_inset Text
32623
32624 \begin_layout Plain Layout
32625 pifont
32626 \end_layout
32627
32628 \end_inset
32629 </cell>
32630 <cell alignment="center" valignment="top" usebox="none">
32631 \begin_inset Text
32632
32633 \begin_layout Plain Layout
32634 slashed
32635 \end_layout
32636
32637 \end_inset
32638 </cell>
32639 <cell alignment="center" valignment="top" usebox="none">
32640 \begin_inset Text
32641
32642 \begin_layout Plain Layout
32643 txfonts
32644 \end_layout
32645
32646 \end_inset
32647 </cell>
32648 <cell alignment="center" valignment="top" usebox="none">
32649 \begin_inset Text
32650
32651 \begin_layout Plain Layout
32652 xy
32653 \end_layout
32654
32655 \end_inset
32656 </cell>
32657 </row>
32658 <row>
32659 <cell alignment="left" valignment="top" usebox="none">
32660 \begin_inset Text
32661
32662 \begin_layout Plain Layout
32663 amstext
32664 \end_layout
32665
32666 \end_inset
32667 </cell>
32668 <cell alignment="left" valignment="top" usebox="none">
32669 \begin_inset Text
32670
32671 \begin_layout Plain Layout
32672 csquotes
32673 \end_layout
32674
32675 \end_inset
32676 </cell>
32677 <cell alignment="left" valignment="top" usebox="none">
32678 \begin_inset Text
32679
32680 \begin_layout Plain Layout
32681 hhline
32682 \end_layout
32683
32684 \end_inset
32685 </cell>
32686 <cell alignment="left" valignment="top" usebox="none">
32687 \begin_inset Text
32688
32689 \begin_layout Plain Layout
32690 mathdesign
32691 \end_layout
32692
32693 \end_inset
32694 </cell>
32695 <cell alignment="center" valignment="top" usebox="none">
32696 \begin_inset Text
32697
32698 \begin_layout Plain Layout
32699 pmboxdraw
32700 \end_layout
32701
32702 \end_inset
32703 </cell>
32704 <cell alignment="center" valignment="top" usebox="none">
32705 \begin_inset Text
32706
32707 \begin_layout Plain Layout
32708 soul
32709 \end_layout
32710
32711 \end_inset
32712 </cell>
32713 <cell alignment="center" valignment="top" usebox="none">
32714 \begin_inset Text
32715
32716 \begin_layout Plain Layout
32717 ulem
32718 \end_layout
32719
32720 \end_inset
32721 </cell>
32722 <cell alignment="center" valignment="top" usebox="none">
32723 \begin_inset Text
32724
32725 \begin_layout Plain Layout
32726 yhmath
32727 \end_layout
32728
32729 \end_inset
32730 </cell>
32731 </row>
32732 <row>
32733 <cell alignment="left" valignment="top" usebox="none">
32734 \begin_inset Text
32735
32736 \begin_layout Plain Layout
32737 amsthm
32738 \end_layout
32739
32740 \end_inset
32741 </cell>
32742 <cell alignment="left" valignment="top" usebox="none">
32743 \begin_inset Text
32744
32745 \begin_layout Plain Layout
32746 dvipost
32747 \end_layout
32748
32749 \end_inset
32750 </cell>
32751 <cell alignment="left" valignment="top" usebox="none">
32752 \begin_inset Text
32753
32754 \begin_layout Plain Layout
32755 hyperref
32756 \end_layout
32757
32758 \end_inset
32759 </cell>
32760 <cell alignment="left" valignment="top" usebox="none">
32761 \begin_inset Text
32762
32763 \begin_layout Plain Layout
32764 mathdots
32765 \end_layout
32766
32767 \end_inset
32768 </cell>
32769 <cell alignment="center" valignment="top" usebox="none">
32770 \begin_inset Text
32771
32772 \begin_layout Plain Layout
32773 polyglossia
32774 \end_layout
32775
32776 \end_inset
32777 </cell>
32778 <cell alignment="center" valignment="top" usebox="none">
32779 \begin_inset Text
32780
32781 \begin_layout Plain Layout
32782 splitidx
32783 \end_layout
32784
32785 \end_inset
32786 </cell>
32787 <cell alignment="center" valignment="top" usebox="none">
32788 \begin_inset Text
32789
32790 \begin_layout Plain Layout
32791 undertilde
32792 \end_layout
32793
32794 \end_inset
32795 </cell>
32796 <cell alignment="center" valignment="top" usebox="none">
32797 \begin_inset Text
32798
32799 \begin_layout Plain Layout
32800
32801 \end_layout
32802
32803 \end_inset
32804 </cell>
32805 </row>
32806 <row>
32807 <cell alignment="left" valignment="top" usebox="none">
32808 \begin_inset Text
32809
32810 \begin_layout Plain Layout
32811 array
32812 \end_layout
32813
32814 \end_inset
32815 </cell>
32816 <cell alignment="left" valignment="top" usebox="none">
32817 \begin_inset Text
32818
32819 \begin_layout Plain Layout
32820 endnotes
32821 \end_layout
32822
32823 \end_inset
32824 </cell>
32825 <cell alignment="left" valignment="top" usebox="none">
32826 \begin_inset Text
32827
32828 \begin_layout Plain Layout
32829 ifsym
32830 \end_layout
32831
32832 \end_inset
32833 </cell>
32834 <cell alignment="left" valignment="top" usebox="none">
32835 \begin_inset Text
32836
32837 \begin_layout Plain Layout
32838 mathrsfs
32839 \end_layout
32840
32841 \end_inset
32842 </cell>
32843 <cell alignment="center" valignment="top" usebox="none">
32844 \begin_inset Text
32845
32846 \begin_layout Plain Layout
32847 prettyref
32848 \end_layout
32849
32850 \end_inset
32851 </cell>
32852 <cell alignment="center" valignment="top" usebox="none">
32853 \begin_inset Text
32854
32855 \begin_layout Plain Layout
32856 subfig
32857 \end_layout
32858
32859 \end_inset
32860 </cell>
32861 <cell alignment="center" valignment="top" usebox="none">
32862 \begin_inset Text
32863
32864 \begin_layout Plain Layout
32865 units
32866 \end_layout
32867
32868 \end_inset
32869 </cell>
32870 <cell alignment="center" valignment="top" usebox="none">
32871 \begin_inset Text
32872
32873 \begin_layout Plain Layout
32874
32875 \end_layout
32876
32877 \end_inset
32878 </cell>
32879 </row>
32880 <row>
32881 <cell alignment="left" valignment="top" usebox="none">
32882 \begin_inset Text
32883
32884 \begin_layout Plain Layout
32885 ascii
32886 \end_layout
32887
32888 \end_inset
32889 </cell>
32890 <cell alignment="left" valignment="top" usebox="none">
32891 \begin_inset Text
32892
32893 \begin_layout Plain Layout
32894 enumitem
32895 \end_layout
32896
32897 \end_inset
32898 </cell>
32899 <cell alignment="left" valignment="top" usebox="none">
32900 \begin_inset Text
32901
32902 \begin_layout Plain Layout
32903 ifthen
32904 \end_layout
32905
32906 \end_inset
32907 </cell>
32908 <cell alignment="left" valignment="top" usebox="none">
32909 \begin_inset Text
32910
32911 \begin_layout Plain Layout
32912 mhchem
32913 \end_layout
32914
32915 \end_inset
32916 </cell>
32917 <cell alignment="center" valignment="top" usebox="none">
32918 \begin_inset Text
32919
32920 \begin_layout Plain Layout
32921 pxfonts
32922 \end_layout
32923
32924 \end_inset
32925 </cell>
32926 <cell alignment="center" valignment="top" usebox="none">
32927 \begin_inset Text
32928
32929 \begin_layout Plain Layout
32930 subscript
32931 \end_layout
32932
32933 \end_inset
32934 </cell>
32935 <cell alignment="center" valignment="top" usebox="none">
32936 \begin_inset Text
32937
32938 \begin_layout Plain Layout
32939 url
32940 \end_layout
32941
32942 \end_inset
32943 </cell>
32944 <cell alignment="center" valignment="top" usebox="none">
32945 \begin_inset Text
32946
32947 \begin_layout Plain Layout
32948
32949 \end_layout
32950
32951 \end_inset
32952 </cell>
32953 </row>
32954 <row>
32955 <cell alignment="left" valignment="top" usebox="none">
32956 \begin_inset Text
32957
32958 \begin_layout Plain Layout
32959 bbding
32960 \end_layout
32961
32962 \end_inset
32963 </cell>
32964 <cell alignment="left" valignment="top" usebox="none">
32965 \begin_inset Text
32966
32967 \begin_layout Plain Layout
32968 esint
32969 \end_layout
32970
32971 \end_inset
32972 </cell>
32973 <cell alignment="left" valignment="top" usebox="none">
32974 \begin_inset Text
32975
32976 \begin_layout Plain Layout
32977 jurabib
32978 \end_layout
32979
32980 \end_inset
32981 </cell>
32982 <cell alignment="left" valignment="top" usebox="none">
32983 \begin_inset Text
32984
32985 \begin_layout Plain Layout
32986 multicol
32987 \end_layout
32988
32989 \end_inset
32990 </cell>
32991 <cell alignment="center" valignment="top" usebox="none">
32992 \begin_inset Text
32993
32994 \begin_layout Plain Layout
32995 refstyle
32996 \end_layout
32997
32998 \end_inset
32999 </cell>
33000 <cell alignment="center" valignment="top" usebox="none">
33001 \begin_inset Text
33002
33003 \begin_layout Plain Layout
33004 textcomp
33005 \end_layout
33006
33007 \end_inset
33008 </cell>
33009 <cell alignment="center" valignment="top" usebox="none">
33010 \begin_inset Text
33011
33012 \begin_layout Plain Layout
33013 varioref
33014 \end_layout
33015
33016 \end_inset
33017 </cell>
33018 <cell alignment="center" valignment="top" usebox="none">
33019 \begin_inset Text
33020
33021 \begin_layout Plain Layout
33022
33023 \end_layout
33024
33025 \end_inset
33026 </cell>
33027 </row>
33028 <row>
33029 <cell alignment="center" valignment="top" usebox="none">
33030 \begin_inset Text
33031
33032 \begin_layout Plain Layout
33033 bm
33034 \end_layout
33035
33036 \end_inset
33037 </cell>
33038 <cell alignment="center" valignment="top" usebox="none">
33039 \begin_inset Text
33040
33041 \begin_layout Plain Layout
33042 fancybox
33043 \end_layout
33044
33045 \end_inset
33046 </cell>
33047 <cell alignment="center" valignment="top" usebox="none">
33048 \begin_inset Text
33049
33050 \begin_layout Plain Layout
33051 latexsym
33052 \end_layout
33053
33054 \end_inset
33055 </cell>
33056 <cell alignment="center" valignment="top" usebox="none">
33057 \begin_inset Text
33058
33059 \begin_layout Plain Layout
33060 multirow
33061 \end_layout
33062
33063 \end_inset
33064 </cell>
33065 <cell alignment="center" valignment="top" usebox="none">
33066 \begin_inset Text
33067
33068 \begin_layout Plain Layout
33069 rotating
33070 \end_layout
33071
33072 \end_inset
33073 </cell>
33074 <cell alignment="center" valignment="top" usebox="none">
33075 \begin_inset Text
33076
33077 \begin_layout Plain Layout
33078 textgreek
33079 \end_layout
33080
33081 \end_inset
33082 </cell>
33083 <cell alignment="center" valignment="top" usebox="none">
33084 \begin_inset Text
33085
33086 \begin_layout Plain Layout
33087 verbatim
33088 \end_layout
33089
33090 \end_inset
33091 </cell>
33092 <cell alignment="center" valignment="top" usebox="none">
33093 \begin_inset Text
33094
33095 \begin_layout Plain Layout
33096
33097 \end_layout
33098
33099 \end_inset
33100 </cell>
33101 </row>
33102 </lyxtabular>
33103
33104 \end_inset
33105
33106
33107 \end_layout
33108
33109 \begin_layout Chapter
33110 Names of available colors to be used in layouts
33111 \begin_inset CommandInset label
33112 LatexCommand label
33113 name "chap:Names-of-colors"
33114
33115 \end_inset
33116
33117
33118 \end_layout
33119
33120 \begin_layout Standard
33121 The colors listed below are the standard colors and those that you can adjust
33122  in the \SpecialChar LyX
33123  preferences.
33124 \end_layout
33125
33126 \begin_layout Section
33127 Color functions
33128 \end_layout
33129
33130 \begin_layout Standard
33131 The following are no real colors, but rather act on color definitions:
33132 \end_layout
33133
33134 \begin_layout Description
33135 ignore The color is ignored
33136 \end_layout
33137
33138 \begin_layout Description
33139 inherit The color is inherited
33140 \end_layout
33141
33142 \begin_layout Description
33143 none
33144 \family roman
33145 \series medium
33146 \shape up
33147 \size normal
33148 \emph off
33149 \bar no
33150 \strikeout off
33151 \uuline off
33152 \uwave off
33153 \noun off
33154 \color none
33155  No particular color – clear or default
33156 \end_layout
33157
33158 \begin_layout Section
33159 Static colors
33160 \end_layout
33161
33162 \begin_layout Standard
33163 These are fixed colors that cannot be customized
33164 \change_inserted -712698321 1607683177
33165 .
33166  Please do 
33167 \emph on
33168 not
33169 \emph default
33170  use these colors in layout definitions, since they will not work well with
33171  some color themes (such as dark themes)
33172 \change_unchanged
33173 :
33174 \end_layout
33175
33176 \begin_layout Description
33177 black
33178 \end_layout
33179
33180 \begin_layout Description
33181 white
33182 \end_layout
33183
33184 \begin_layout Description
33185 blue
33186 \end_layout
33187
33188 \begin_layout Description
33189 brown
33190 \end_layout
33191
33192 \begin_layout Description
33193 cyan
33194 \end_layout
33195
33196 \begin_layout Description
33197 darkgray
33198 \end_layout
33199
33200 \begin_layout Description
33201 gray
33202 \end_layout
33203
33204 \begin_layout Description
33205 green
33206 \end_layout
33207
33208 \begin_layout Description
33209 lightgray
33210 \end_layout
33211
33212 \begin_layout Description
33213 lime
33214 \end_layout
33215
33216 \begin_layout Description
33217 magenta
33218 \end_layout
33219
33220 \begin_layout Description
33221 olive
33222 \end_layout
33223
33224 \begin_layout Description
33225 orange
33226 \end_layout
33227
33228 \begin_layout Description
33229 pink
33230 \end_layout
33231
33232 \begin_layout Description
33233 purple
33234 \end_layout
33235
33236 \begin_layout Description
33237 red
33238 \end_layout
33239
33240 \begin_layout Description
33241 teal
33242 \end_layout
33243
33244 \begin_layout Description
33245 violet
33246 \end_layout
33247
33248 \begin_layout Description
33249 yellow
33250 \end_layout
33251
33252 \begin_layout Section
33253 Dynamic colors
33254 \end_layout
33255
33256 \begin_layout Standard
33257 These are the colors allocated to specific elements in 
33258 \begin_inset Info
33259 type  "menu"
33260 arg   "dialog-show prefs"
33261 \end_inset
33262
33263 :
33264 \end_layout
33265
33266 \begin_layout Description
33267 added_space Added space color
33268 \end_layout
33269
33270 \begin_layout Description
33271 addedtext Added text color
33272 \end_layout
33273
33274 \begin_layout Description
33275 appendix Appendix marker color
33276 \end_layout
33277
33278 \begin_layout Description
33279 background Background color
33280 \end_layout
33281
33282 \begin_layout Description
33283 bottomarea Bottom area color
33284 \end_layout
33285
33286 \begin_layout Description
33287 branchlabel Label color for branches
33288 \end_layout
33289
33290 \begin_layout Description
33291 buttonbg Color used for button background
33292 \end_layout
33293
33294 \begin_layout Description
33295 buttonframe Color for inset button frames
33296 \end_layout
33297
33298 \begin_layout Description
33299 buttonhoverbg Color used for button background under focus
33300 \end_layout
33301
33302 \begin_layout Description
33303 changebar Changebar color
33304 \end_layout
33305
33306 \begin_layout Description
33307 changedtextauthor1 Changed text color author 1
33308 \end_layout
33309
33310 \begin_layout Description
33311 changedtextauthor2 Changed text color author 2
33312 \end_layout
33313
33314 \begin_layout Description
33315 changedtextauthor3 Changed text color author 3
33316 \end_layout
33317
33318 \begin_layout Description
33319 changedtextauthor4 Changed text color author 4
33320 \end_layout
33321
33322 \begin_layout Description
33323 changedtextauthor5 Changed text color author 5
33324 \end_layout
33325
33326 \begin_layout Description
33327 collapsible Collapsible insets text color
33328 \end_layout
33329
33330 \begin_layout Description
33331 collapsibleframe Collapsible insets framecolor
33332 \end_layout
33333
33334 \begin_layout Description
33335 command Text color for command insets
33336 \end_layout
33337
33338 \begin_layout Description
33339 commandbg Background color for command insets
33340 \end_layout
33341
33342 \begin_layout Description
33343 commandframe Frame color for command insets
33344 \end_layout
33345
33346 \begin_layout Description
33347 comment Label color for comments
33348 \end_layout
33349
33350 \begin_layout Description
33351 commentbg Background color of comments
33352 \end_layout
33353
33354 \begin_layout Description
33355 cursor Cursor color
33356 \end_layout
33357
33358 \begin_layout Description
33359 deletedtext Deleted text color
33360 \end_layout
33361
33362 \begin_layout Description
33363 deletedtextmodifier Deleted text modifying color
33364 \end_layout
33365
33366 \begin_layout Description
33367 depthbar Color for the depth bars in the margin
33368 \end_layout
33369
33370 \begin_layout Description
33371 eolmarker End of line marker color
33372 \end_layout
33373
33374 \begin_layout Description
33375 error Color of the \SpecialChar LaTeX
33376  error box
33377 \end_layout
33378
33379 \begin_layout Description
33380 footlabel Label color for footnotes
33381 \end_layout
33382
33383 \begin_layout Description
33384 foreground Foreground color
33385 \end_layout
33386
33387 \begin_layout Description
33388 graphicsbg Graphics inset background color
33389 \end_layout
33390
33391 \begin_layout Description
33392 greyedoutbg Background color of greyedout inset
33393 \end_layout
33394
33395 \begin_layout Description
33396 greyedoutlabel Label color for greyedout insets
33397 \end_layout
33398
33399 \begin_layout Description
33400 greyedouttext Color for greyedout inset text
33401 \end_layout
33402
33403 \begin_layout Description
33404 indexlabel Label color for index insets
33405 \end_layout
33406
33407 \begin_layout Description
33408 inlinecompletion Inline completion color
33409 \end_layout
33410
33411 \begin_layout Description
33412 insetbg Inset marker background color
33413 \end_layout
33414
33415 \begin_layout Description
33416 insetframe Inset marker frame color
33417 \end_layout
33418
33419 \begin_layout Description
33420 language Color for marking foreign language words
33421 \end_layout
33422
33423 \begin_layout Description
33424 latex Text color in \SpecialChar LaTeX
33425  mode
33426 \end_layout
33427
33428 \begin_layout Description
33429 listingsbg Background color of listings inset
33430 \end_layout
33431
33432 \begin_layout Description
33433 marginlabel Label color for margin notes
33434 \end_layout
33435
33436 \begin_layout Description
33437 math Math inset text color
33438 \end_layout
33439
33440 \begin_layout Description
33441 mathbg Math inset background color
33442 \end_layout
33443
33444 \begin_layout Description
33445 mathcorners Math inset frame color not under focus
33446 \end_layout
33447
33448 \begin_layout Description
33449 mathframe Math inset frame color under focus
33450 \end_layout
33451
33452 \begin_layout Description
33453 mathline Math line color
33454 \end_layout
33455
33456 \begin_layout Description
33457 mathmacrobg Macro math inset background color
33458 \end_layout
33459
33460 \begin_layout Description
33461 mathmacroblend Macro math blended color
33462 \end_layout
33463
33464 \begin_layout Description
33465 mathmacroframe Macro math frame color
33466 \end_layout
33467
33468 \begin_layout Description
33469 mathmacrohoverbg Macro math inset background color hovered
33470 \end_layout
33471
33472 \begin_layout Description
33473 mathmacrolabel Macro math label color
33474 \end_layout
33475
33476 \begin_layout Description
33477 mathmacronewarg Macro template color for new parameters
33478 \end_layout
33479
33480 \begin_layout Description
33481 mathmacrooldarg Macro template color for old parameters
33482 \end_layout
33483
33484 \begin_layout Description
33485 newpage New page color
33486 \end_layout
33487
33488 \begin_layout Description
33489 nonunique_inlinecompletion Inline completion color for the non-unique part
33490 \end_layout
33491
33492 \begin_layout Description
33493 note Label color for notes
33494 \end_layout
33495
33496 \begin_layout Description
33497 notebg Background color of notes
33498 \end_layout
33499
33500 \begin_layout Description
33501 pagebreak Page break/line break color
33502 \end_layout
33503
33504 \begin_layout Description
33505 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
33506 \end_layout
33507
33508 \begin_layout Description
33509 phantomtext Text color for phantom insets
33510 \end_layout
33511
33512 \begin_layout Description
33513 preview The color used for previews
33514 \end_layout
33515
33516 \begin_layout Description
33517 previewframe Preview frame color
33518 \end_layout
33519
33520 \begin_layout Description
33521 regexpframe Color for regexp frame
33522 \end_layout
33523
33524 \begin_layout Description
33525 scroll Color that indicates when a row can be scrolled 
33526 \end_layout
33527
33528 \begin_layout Description
33529 selection Background color of selected text
33530 \end_layout
33531
33532 \begin_layout Description
33533 selectiontext Foreground color of selected text
33534 \end_layout
33535
33536 \begin_layout Description
33537 shadedbg Background color of shaded box
33538 \end_layout
33539
33540 \begin_layout Description
33541 special Special chars text color
33542 \end_layout
33543
33544 \begin_layout Description
33545 tabularline Table line color
33546 \end_layout
33547
33548 \begin_layout Description
33549 tabularonoffline Table line color
33550 \change_inserted -712698321 1607682522
33551
33552 \end_layout
33553
33554 \begin_layout Description
33555
33556 \change_inserted -712698321 1607682563
33557 textlabel1 Color 1 of layout and custom inset labels
33558 \end_layout
33559
33560 \begin_layout Description
33561
33562 \change_inserted -712698321 1607682565
33563 textlabel2 Color 2 of layout and custom inset labels
33564 \end_layout
33565
33566 \begin_layout Description
33567
33568 \change_inserted -712698321 1607682568
33569 textlabel3 Color 3 of layout and custom inset labels
33570 \change_unchanged
33571
33572 \end_layout
33573
33574 \begin_layout Description
33575 urllabel Label color for URL insets
33576 \end_layout
33577
33578 \begin_layout Description
33579 urltext Color for URL inset text
33580 \end_layout
33581
33582 \end_body
33583 \end_document