]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Customization.lyx: Import and review changes from Phil Netro.
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 599
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children no
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX Configuration Manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX-documentation Customization"
74 \pdf_keywords "LyX, documentation, customization"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen true
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize default
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \use_lineno 0
108 \notefontcolor #0000ff
109 \branch OutDated
110 \selected 0
111 \filename_suffix 0
112 \color #f5fae7
113 \end_branch
114 \index Index
115 \shortcut idx
116 \color #008000
117 \end_index
118 \secnumdepth 3
119 \tocdepth 3
120 \paragraph_separation indent
121 \paragraph_indentation default
122 \is_math_indent 1
123 \math_indentation default
124 \math_numbering_side default
125 \quotes_style english
126 \dynamic_quotes 0
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tablestyle default
131 \tracking_changes true
132 \output_changes false
133 \change_bars false
134 \postpone_fragile_content false
135 \html_math_output 0
136 \html_css_as_file 0
137 \html_be_strict true
138 \docbook_table_output 0
139 \author -970929547 "Thibaut Cuvelier"
140 \author -712698321 "Jürgen Spitzmüller"
141 \author -495245474 "Jean-Marc Lasgouttes"
142 \author 5863208 "ab"
143 \author 232239728 "Owner"
144 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
145 \author 1075283030 "Thibaut"
146 \end_header
147
148 \begin_body
149
150 \begin_layout Title
151 Customizing \SpecialChar LyX
152 : Features for the Advanced User
153 \end_layout
154
155 \begin_layout Author
156 by the \SpecialChar LyX
157  Team
158 \begin_inset Foot
159 status collapsed
160
161 \begin_layout Plain Layout
162 \noindent
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 Heck <rgheck@comcast.net>.
185 \end_layout
186
187 \end_inset
188
189
190 \begin_inset Newline newline
191 \end_inset
192
193
194 \begin_inset Newline newline
195 \end_inset
196
197 Version 2.4.x
198 \end_layout
199
200 \begin_layout Standard
201 \begin_inset CommandInset toc
202 LatexCommand tableofcontents
203
204 \end_inset
205
206
207 \end_layout
208
209 \begin_layout Standard
210 \begin_inset Note Note
211 status open
212
213 \begin_layout Plain Layout
214 Please use change tracking when modifying this document.
215  This makes it easier for our translators to recognize things that have
216  been changed, and it helps the maintainer keep up-to-date with what's been
217  done.
218 \end_layout
219
220 \end_inset
221
222
223 \end_layout
224
225 \begin_layout Chapter
226 Introduction
227 \end_layout
228
229 \begin_layout Standard
230 This manual covers the customization features present in \SpecialChar LyX
231 .
232  In it, we discuss issues like keyboard shortcuts, screen previewing options,
233  printer options, sending commands to \SpecialChar LyX
234  via the \SpecialChar LyX
235  Server, internationalization,
236  installing new \SpecialChar LaTeX
237  classes and \SpecialChar LyX
238  layouts, etc.
239  We can't possibly hope to touch on everything you can change—our developers
240  add new features faster than we can document them—but we will explain the
241  most common customizations and hopefully point you in the right direction
242  for some of the more obscure ones.
243 \end_layout
244
245 \begin_layout Standard
246 \begin_inset Branch OutDated
247 inverted 0
248 status collapsed
249
250 \begin_layout Standard
251 Information from previous versions of this document that now seems to be
252  outdated is contained in the OutDated branch of this document.
253  By default, this information will not appear in the \SpecialChar LaTeX
254  output.
255 \end_layout
256
257 \end_inset
258
259
260 \end_layout
261
262 \begin_layout Chapter
263 \SpecialChar LyX
264  configuration files
265 \end_layout
266
267 \begin_layout Standard
268 This chapter aims to help you to find your way through the \SpecialChar LyX
269  configuration
270  files.
271  Before continuing to read this chapter, you should find out where your
272  \SpecialChar LyX
273  library and user directories are by using 
274 \begin_inset Flex Noun
275 status collapsed
276
277 \begin_layout Plain Layout
278 Help\SpecialChar menuseparator
279 About
280 \begin_inset space ~
281 \end_inset
282
283 LyX
284 \end_layout
285
286 \end_inset
287
288 .
289  The library directory is the place where \SpecialChar LyX
290  places its system-wide configuration
291  files; the user directory is where you can place your modified versions.
292  We will call the former 
293 \begin_inset Flex Code
294 status collapsed
295
296 \begin_layout Plain Layout
297 LyXDir
298 \end_layout
299
300 \end_inset
301
302  and the latter 
303 \begin_inset Flex Noun
304 status collapsed
305
306 \begin_layout Plain Layout
307 UserDir
308 \end_layout
309
310 \end_inset
311
312  in the remainder of this document.
313  
314 \end_layout
315
316 \begin_layout Section
317 What's in 
318 \begin_inset Flex Code
319 status collapsed
320
321 \begin_layout Plain Layout
322 LyXDir
323 \end_layout
324
325 \end_inset
326
327 ?
328 \end_layout
329
330 \begin_layout Standard
331 \begin_inset Flex Code
332 status collapsed
333
334 \begin_layout Plain Layout
335 LyXDir
336 \end_layout
337
338 \end_inset
339
340  and its sub-directories contain a number of files 
341 \change_deleted 232239728 1604787780
342 and
343 \change_unchanged
344  that can be used to customize \SpecialChar LyX
345 's behavior.
346  You can change many of these files from within \SpecialChar LyX
347  itself through the 
348 \begin_inset Flex Noun
349 status collapsed
350
351 \begin_layout Plain Layout
352 Tools\SpecialChar menuseparator
353 Preferences
354 \end_layout
355
356 \end_inset
357
358  dialog.
359  Most customization that you will want to do in \SpecialChar LyX
360  is possible through this
361  dialog.
362  However, many other inner aspects of \SpecialChar LyX
363  can be customized by modifying the
364  files in 
365 \begin_inset Flex Code
366 status collapsed
367
368 \begin_layout Plain Layout
369 LyXDir
370 \end_layout
371
372 \end_inset
373
374 .
375  These files fall in different categories, described in the following subsection
376 s.
377 \end_layout
378
379 \begin_layout Subsection
380 Automatically generated files
381 \end_layout
382
383 \begin_layout Standard
384 The files found in 
385 \begin_inset Flex Noun
386 status collapsed
387
388 \begin_layout Plain Layout
389 UserDir
390 \end_layout
391
392 \end_inset
393
394  are generated when you configure \SpecialChar LyX
395 .
396  They contain various default values that are 
397 \change_inserted 5863208 1604919565
398 automatically detected during reconfiguration.
399 \change_deleted 232239728 1604788241
400 guessed by inspection
401 \change_unchanged
402  In general, it is not a good idea to modify them, since they might be overwritt
403 en at any time.
404 \end_layout
405
406 \begin_layout Labeling
407 \labelwidthstring 00.00.0000
408 \begin_inset Flex Code
409 status collapsed
410
411 \begin_layout Plain Layout
412 lyxrc.defaults
413 \end_layout
414
415 \end_inset
416
417  
418 \change_deleted 5863208 1604919950
419
420 \begin_inset Note Note
421 status collapsed
422
423 \begin_layout Plain Layout
424
425 \change_inserted 232239728 1604853928
426 I capitalized the first word in all of these lists.
427  To me it looks better but it really is a stylistic thing, your call.
428  However if you are not going to capitalize them, the english in some needs
429  to be modified to make it read correctly as a sentence.
430 \change_unchanged
431
432 \end_layout
433
434 \end_inset
435
436
437 \change_deleted 232239728 1604853510
438 c
439 \change_inserted 232239728 1604853510
440 C
441 \change_unchanged
442 ontains defaults for various commands.
443 \end_layout
444
445 \begin_layout Labeling
446 \labelwidthstring 00.00.0000
447 \begin_inset Flex Code
448 status collapsed
449
450 \begin_layout Plain Layout
451 packages.lst
452 \end_layout
453
454 \end_inset
455
456  
457 \change_deleted 232239728 1604853512
458 c
459 \change_inserted 232239728 1604853512
460 C
461 \change_unchanged
462 ontains the list of packages that have been recognized by \SpecialChar LyX
463 .
464  It is currently unused by the \SpecialChar LyX
465  program itself, but the information extracted,
466  and more, is made available with 
467 \begin_inset Flex Noun
468 status collapsed
469
470 \begin_layout Plain Layout
471 Help\SpecialChar menuseparator
472 \SpecialChar LaTeX
473
474 \begin_inset space ~
475 \end_inset
476
477 Configuration
478 \end_layout
479
480 \end_inset
481
482 .
483 \end_layout
484
485 \begin_layout Labeling
486 \labelwidthstring 00.00.0000
487 \begin_inset Flex Code
488 status collapsed
489
490 \begin_layout Plain Layout
491 textclass.lst
492 \end_layout
493
494 \end_inset
495
496  
497 \change_deleted 232239728 1604853515
498 t
499 \change_inserted 232239728 1604853515
500 T
501 \change_unchanged
502 he list of text classes that have been found in your 
503 \begin_inset Flex Code
504 status collapsed
505
506 \begin_layout Plain Layout
507 layout/
508 \end_layout
509
510 \end_inset
511
512  directories, along with the associated \SpecialChar LaTeX
513  document class and their description.
514 \end_layout
515
516 \begin_layout Labeling
517 \labelwidthstring 00.00.0000
518 \begin_inset Flex Code
519 status collapsed
520
521 \begin_layout Plain Layout
522 lyxmodules.lst
523 \end_layout
524
525 \end_inset
526
527  
528 \change_deleted 232239728 1604853518
529 t
530 \change_inserted 232239728 1604853518
531 T
532 \change_unchanged
533 he list of layout modules found in your 
534 \begin_inset Flex Code
535 status collapsed
536
537 \begin_layout Plain Layout
538 layout/
539 \end_layout
540
541 \end_inset
542
543  directories
544 \end_layout
545
546 \begin_layout Labeling
547 \labelwidthstring 00.00.0000
548 \begin_inset Flex Code
549 status open
550
551 \begin_layout Plain Layout
552 *files.lst
553 \end_layout
554
555 \end_inset
556
557  
558 \change_deleted 232239728 1604853523
559 l
560 \change_inserted 232239728 1604853523
561 L
562 \change_unchanged
563 ists of various sorts of \SpecialChar LaTeX
564 -related files found on your system
565 \end_layout
566
567 \begin_layout Labeling
568 \labelwidthstring 00.00.0000
569 \begin_inset Flex Code
570 status open
571
572 \begin_layout Plain Layout
573 doc/\SpecialChar LaTeX
574 Config.lyx
575 \end_layout
576
577 \end_inset
578
579  is automatically generated during configuration from the file 
580 \begin_inset Flex Code
581 status collapsed
582
583 \begin_layout Plain Layout
584 \SpecialChar LaTeX
585 Config.lyx.in
586 \end_layout
587
588 \end_inset
589
590 .
591  It contains information on your \SpecialChar LaTeX
592  configuration.
593 \end_layout
594
595 \begin_layout Subsection
596 Directories
597 \end_layout
598
599 \begin_layout Standard
600 The
601 \change_deleted 5863208 1604928729
602 se
603 \change_unchanged
604  
605 \change_inserted 5863208 1604928636
606 following 
607 \change_unchanged
608 directories 
609 \change_inserted 5863208 1604928661
610 in 
611 \change_unchanged
612
613 \begin_inset Flex Code
614 status collapsed
615
616 \begin_layout Plain Layout
617 LyXDir
618 \end_layout
619
620 \end_inset
621
622
623 \change_inserted 5863208 1604928662
624  can be
625 \change_deleted 5863208 1604928642
626 are
627 \change_unchanged
628  duplicated 
629 \change_deleted 5863208 1604928669
630 between 
631 \begin_inset Flex Code
632 status collapsed
633
634 \begin_layout Plain Layout
635 LyXDir
636 \end_layout
637
638 \end_inset
639
640  and
641 \change_inserted 5863208 1604928680
642 in
643 \change_unchanged
644  
645 \begin_inset Flex Code
646 status collapsed
647
648 \begin_layout Plain Layout
649 UserDir
650 \end_layout
651
652 \end_inset
653
654 .
655  If a particular file
656 \change_deleted 232239728 1604794430
657 s
658 \change_unchanged
659  exists in both places, the one in 
660 \begin_inset Flex Code
661 status collapsed
662
663 \begin_layout Plain Layout
664 UserDir
665 \end_layout
666
667 \end_inset
668
669  will be used.
670 \end_layout
671
672 \begin_layout Labeling
673 \labelwidthstring 00.00.0000
674 \begin_inset Flex Code
675 status collapsed
676
677 \begin_layout Plain Layout
678 bind/
679 \end_layout
680
681 \end_inset
682
683  
684 \change_deleted 232239728 1604794460
685 t
686 \change_inserted 232239728 1604794460
687 T
688 \change_unchanged
689 his directory contains files with the extension 
690 \begin_inset Flex Code
691 status collapsed
692
693 \begin_layout Plain Layout
694 .bind
695 \end_layout
696
697 \end_inset
698
699  that define the keybindings used in \SpecialChar LyX
700 .
701  If there exists an internationalized version of the bind file named 
702 \begin_inset Flex Code
703 status collapsed
704
705 \begin_layout Plain Layout
706 $LANG_xxx.bind
707 \end_layout
708
709 \end_inset
710
711 , that will be used first.
712 \end_layout
713
714 \begin_layout Labeling
715 \labelwidthstring 00.00.0000
716 \begin_inset Flex Code
717 status collapsed
718
719 \begin_layout Plain Layout
720 citeengines/
721 \end_layout
722
723 \end_inset
724
725  
726 \change_deleted 232239728 1604794478
727 c
728 \change_inserted 232239728 1604794478
729 C
730 \change_unchanged
731 ontains files with the extension 
732 \begin_inset Flex Code
733 status collapsed
734
735 \begin_layout Plain Layout
736 .citeengine
737 \end_layout
738
739 \end_inset
740
741  which define the diverse citation possibilities (natbib, biblatex etc.).
742  See 
743 \begin_inset CommandInset ref
744 LatexCommand ref
745 reference "subsec:Cite-Engine-Files"
746 plural "false"
747 caps "false"
748 noprefix "false"
749
750 \end_inset
751
752  for details.
753 \end_layout
754
755 \begin_layout Labeling
756 \labelwidthstring 00.00.0000
757 \begin_inset Flex Code
758 status collapsed
759
760 \begin_layout Plain Layout
761 clipart/
762 \end_layout
763
764 \end_inset
765
766  
767 \change_deleted 232239728 1604794483
768 c
769 \change_inserted 232239728 1604794486
770 C
771 \change_unchanged
772 ontains graphics files that can be included in documents.
773  
774 \end_layout
775
776 \begin_layout Labeling
777 \labelwidthstring 00.00.0000
778 \begin_inset Flex Code
779 status collapsed
780
781 \begin_layout Plain Layout
782 doc/
783 \end_layout
784
785 \end_inset
786
787  
788 \change_deleted 232239728 1604794492
789 c
790 \change_inserted 232239728 1604794492
791 C
792 \change_unchanged
793 ontains \SpecialChar LyX
794  documentation files (including the one you are currently reading).
795  The file 
796 \begin_inset Flex Code
797 status collapsed
798
799 \begin_layout Plain Layout
800
801 \change_deleted 232239728 1604794660
802 \SpecialChar LaTeX
803
804 \change_inserted 232239728 1604794661
805 LaTex
806 \change_unchanged
807 Config.lyx
808 \end_layout
809
810 \end_inset
811
812  deserves special attention, as noted above.
813  The internationalized help docs are in subdirectories 
814 \begin_inset Flex Code
815 status collapsed
816
817 \begin_layout Plain Layout
818 doc/xx
819 \end_layout
820
821 \end_inset
822
823  where 
824 \begin_inset Quotes eld
825 \end_inset
826
827 xx
828 \begin_inset Quotes erd
829 \end_inset
830
831  is the ISO language code.
832  See 
833 \begin_inset CommandInset ref
834 LatexCommand ref
835 reference "cha:Internationalizing-LyX"
836
837 \end_inset
838
839  for details.
840 \end_layout
841
842 \begin_layout Labeling
843 \labelwidthstring 00.00.0000
844 \begin_inset Flex Code
845 status collapsed
846
847 \begin_layout Plain Layout
848 examples/
849 \end_layout
850
851 \end_inset
852
853  
854 \change_deleted 232239728 1604794497
855 c
856 \change_inserted 232239728 1604794497
857 C
858 \change_unchanged
859 ontains example files that explain how to use some features.
860  In the file browser, press the 
861 \begin_inset Flex Noun
862 status collapsed
863
864 \begin_layout Plain Layout
865 Examples
866 \end_layout
867
868 \end_inset
869
870  button to get there.
871 \end_layout
872
873 \begin_layout Labeling
874 \labelwidthstring 00.00.0000
875 \begin_inset Flex Code
876 status collapsed
877
878 \begin_layout Plain Layout
879 images/
880 \end_layout
881
882 \end_inset
883
884  
885 \change_deleted 232239728 1604794500
886 c
887 \change_inserted 232239728 1604794500
888 C
889 \change_unchanged
890 ontains image files that are used by the 
891 \begin_inset Flex Noun
892 status collapsed
893
894 \begin_layout Plain Layout
895 Document
896 \end_layout
897
898 \end_inset
899
900  dialog.
901  In addition, it also contains the individual icons used in the toolbar
902  and the banners that can be shown when \SpecialChar LyX
903  is launched.
904 \end_layout
905
906 \begin_layout Labeling
907 \labelwidthstring 00.00.0000
908 \begin_inset Flex Code
909 status collapsed
910
911 \begin_layout Plain Layout
912 kbd/
913 \end_layout
914
915 \end_inset
916
917  
918 \change_deleted 232239728 1604794505
919 c
920 \change_inserted 232239728 1604794505
921 C
922 \change_unchanged
923 ontains keyboard keymapping files.
924  See 
925 \begin_inset CommandInset ref
926 LatexCommand ref
927 reference "sec:International-Keymap-Stuff"
928
929 \end_inset
930
931  for details.
932 \end_layout
933
934 \begin_layout Labeling
935 \labelwidthstring 00.00.0000
936 \begin_inset Flex Code
937 status collapsed
938
939 \begin_layout Plain Layout
940 layouts/
941 \end_layout
942
943 \end_inset
944
945  
946 \change_deleted 232239728 1604794508
947 c
948 \change_inserted 232239728 1604794508
949 C
950 \change_unchanged
951 ontains the text class and module files described in 
952 \begin_inset CommandInset ref
953 LatexCommand ref
954 reference "cha:Installing-New-Document"
955
956 \end_inset
957
958 .
959 \end_layout
960
961 \begin_layout Labeling
962 \labelwidthstring 00.00.0000
963 \begin_inset Flex Code
964 status collapsed
965
966 \begin_layout Plain Layout
967 lyx2lyx
968 \end_layout
969
970 \end_inset
971
972  
973 \change_deleted 232239728 1604794513
974 c
975 \change_inserted 232239728 1604794513
976 C
977 \change_unchanged
978 ontains the 
979 \begin_inset Flex Code
980 status collapsed
981
982 \begin_layout Plain Layout
983 lyx2lyx
984 \end_layout
985
986 \end_inset
987
988  Python scripts used to convert between \SpecialChar LyX
989  versions.
990  These can be run from the command line if
991 \change_deleted 232239728 1604794749
992 , say,
993 \change_unchanged
994  you want to batch-convert files.
995 \end_layout
996
997 \begin_layout Labeling
998 \labelwidthstring 00.00.0000
999 \begin_inset Flex Code
1000 status collapsed
1001
1002 \begin_layout Plain Layout
1003 scripts/
1004 \end_layout
1005
1006 \end_inset
1007
1008  
1009 \change_deleted 232239728 1604794516
1010 c
1011 \change_inserted 232239728 1604794516
1012 C
1013 \change_unchanged
1014 ontains some files that demonstrate the capabilities of the 
1015 \begin_inset Flex Noun
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 External
1020 \begin_inset space ~
1021 \end_inset
1022
1023 Template
1024 \end_layout
1025
1026 \end_inset
1027
1028  feature.
1029  Also contains some scripts used by \SpecialChar LyX
1030  itself.
1031 \end_layout
1032
1033 \begin_layout Labeling
1034 \labelwidthstring 00.00.0000
1035 \begin_inset Flex Code
1036 status collapsed
1037
1038 \begin_layout Plain Layout
1039 templates/
1040 \end_layout
1041
1042 \end_inset
1043
1044  
1045 \change_deleted 232239728 1604794520
1046 c
1047 \change_inserted 232239728 1604794520
1048 C
1049 \change_unchanged
1050 ontains the standard \SpecialChar LyX
1051  template files described in 
1052 \begin_inset CommandInset ref
1053 LatexCommand ref
1054 reference "subsec:Creating-Templates"
1055
1056 \end_inset
1057
1058 .
1059 \end_layout
1060
1061 \begin_layout Labeling
1062 \labelwidthstring 00.00.0000
1063 \begin_inset Flex Code
1064 status collapsed
1065
1066 \begin_layout Plain Layout
1067 ui/
1068 \end_layout
1069
1070 \end_inset
1071
1072  
1073 \change_deleted 232239728 1604794524
1074 c
1075 \change_inserted 232239728 1604794524
1076 C
1077 \change_unchanged
1078 ontains files with the extension 
1079 \begin_inset Flex Code
1080 status collapsed
1081
1082 \begin_layout Plain Layout
1083 .ui
1084 \end_layout
1085
1086 \end_inset
1087
1088  that define the user interface to \SpecialChar LyX
1089 .
1090  That is, the files define which items appear in which menus and the items
1091  appearing on the toolbar.
1092 \end_layout
1093
1094 \begin_layout Labeling
1095 \labelwidthstring 00.00.0000
1096 \begin_inset Flex Code
1097 status collapsed
1098
1099 \begin_layout Plain Layout
1100 xtemplates/
1101 \end_layout
1102
1103 \end_inset
1104
1105  
1106 \change_deleted 232239728 1604794528
1107 c
1108 \change_inserted 232239728 1604794528
1109 C
1110 \change_unchanged
1111 ontains files with the extension 
1112 \begin_inset Flex Code
1113 status collapsed
1114
1115 \begin_layout Plain Layout
1116 .xtemplate
1117 \end_layout
1118
1119 \end_inset
1120
1121  which define the templates for the insertion of external material to a
1122  \SpecialChar LyX
1123  document; see 
1124 \begin_inset CommandInset ref
1125 LatexCommand ref
1126 reference "chap:Including-External-Material"
1127
1128 \end_inset
1129
1130 .
1131 \end_layout
1132
1133 \begin_layout Subsection
1134 Files you don't want to modify
1135 \end_layout
1136
1137 \begin_layout Standard
1138 These files are used internally by \SpecialChar LyX
1139  and you generally do not need to modify
1140  them unless you are a developer.
1141 \end_layout
1142
1143 \begin_layout Labeling
1144 \labelwidthstring 00.00.0000
1145 \begin_inset Flex Code
1146 status collapsed
1147
1148 \begin_layout Plain Layout
1149 CREDITS
1150 \end_layout
1151
1152 \end_inset
1153
1154  
1155 \change_deleted 232239728 1604797616
1156 t
1157 \change_inserted 232239728 1604797616
1158 T
1159 \change_unchanged
1160 his file contains the list of \SpecialChar LyX
1161  developers.
1162  The contents are displayed with the menu entry 
1163 \begin_inset Flex Noun
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 Help\SpecialChar menuseparator
1168 About
1169 \begin_inset space ~
1170 \end_inset
1171
1172 LyX
1173 \end_layout
1174
1175 \end_inset
1176
1177 .
1178 \end_layout
1179
1180 \begin_layout Labeling
1181 \labelwidthstring 00.00.0000
1182 \begin_inset Flex Code
1183 status collapsed
1184
1185 \begin_layout Plain Layout
1186 chkconfig.ltx
1187 \end_layout
1188
1189 \end_inset
1190
1191  
1192 \change_deleted 232239728 1604797620
1193 t
1194 \change_inserted 232239728 1604797620
1195 T
1196 \change_unchanged
1197 his is a \SpecialChar LaTeX
1198  script used during the configuration process.
1199  Do not run directly.
1200 \end_layout
1201
1202 \begin_layout Labeling
1203 \labelwidthstring 00.00.0000
1204 \begin_inset Flex Code
1205 status collapsed
1206
1207 \begin_layout Plain Layout
1208 configure.py
1209 \end_layout
1210
1211 \end_inset
1212
1213  
1214 \change_deleted 232239728 1604797624
1215 t
1216 \change_inserted 232239728 1604797624
1217 T
1218 \change_unchanged
1219 his is a Python script that is used to re-configure \SpecialChar LyX
1220 .
1221  It creates configuration files in the directory it was run from.
1222 \end_layout
1223
1224 \begin_layout Subsection
1225 Other files needing a line or two
1226 \end_layout
1227
1228 \begin_layout Labeling
1229 \labelwidthstring 00.00.0000
1230 \begin_inset Flex Code
1231 status collapsed
1232
1233 \begin_layout Plain Layout
1234 encodings
1235 \end_layout
1236
1237 \end_inset
1238
1239  
1240 \change_deleted 232239728 1604797580
1241 t
1242 \change_inserted 232239728 1604797580
1243 T
1244 \change_unchanged
1245 his contains tables describing how different character encodings can be
1246  mapped to Unicode
1247 \end_layout
1248
1249 \begin_layout Labeling
1250 \labelwidthstring 00.00.0000
1251 \begin_inset Flex Code
1252 status collapsed
1253
1254 \begin_layout Plain Layout
1255 languages
1256 \end_layout
1257
1258 \end_inset
1259
1260  
1261 \change_deleted 232239728 1604797584
1262 t
1263 \change_inserted 232239728 1604797584
1264 T
1265 \change_unchanged
1266 his file contains a list of all the languages currently supported by \SpecialChar LyX
1267 .
1268 \end_layout
1269
1270 \begin_layout Labeling
1271 \labelwidthstring 00.00.0000
1272 \begin_inset Flex Code
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276 latexfonts
1277 \end_layout
1278
1279 \end_inset
1280
1281  
1282 \change_deleted 232239728 1604797587
1283 c
1284 \change_inserted 232239728 1604797587
1285 C
1286 \change_unchanged
1287 ontains information about the supported fonts.
1288 \end_layout
1289
1290 \begin_layout Labeling
1291 \labelwidthstring 00.00.0000
1292 \begin_inset Flex Code
1293 status collapsed
1294
1295 \begin_layout Plain Layout
1296 layouttranslations
1297 \end_layout
1298
1299 \end_inset
1300
1301  
1302 \change_deleted 232239728 1604797591
1303 t
1304 \change_inserted 232239728 1604797591
1305 T
1306 \change_unchanged
1307 his file contains translations for internationalized paragraph styles (see
1308  
1309 \begin_inset CommandInset ref
1310 LatexCommand ref
1311 reference "subsec:I18n"
1312
1313 \end_inset
1314
1315 ).
1316 \end_layout
1317
1318 \begin_layout Labeling
1319 \labelwidthstring 00.00.0000
1320 \begin_inset Flex Code
1321 status collapsed
1322
1323 \begin_layout Plain Layout
1324 unicodesymbols
1325 \end_layout
1326
1327 \end_inset
1328
1329  
1330 \change_deleted 232239728 1604797594
1331 t
1332 \change_inserted 232239728 1604797594
1333 T
1334 \change_unchanged
1335 his file contains information about Unicode-encoded glyphs and the way they
1336  are supported by \SpecialChar LyX
1337  via \SpecialChar LaTeX
1338 .
1339 \end_layout
1340
1341 \begin_layout Section
1342 Your local configuration directory
1343 \end_layout
1344
1345 \begin_layout Standard
1346 Even if you are using \SpecialChar LyX
1347  as an unprivileged user, you might want to change
1348  \SpecialChar LyX
1349  configuration for your own use.
1350  The 
1351 \begin_inset Flex Code
1352 status collapsed
1353
1354 \begin_layout Plain Layout
1355 UserDir
1356 \end_layout
1357
1358 \end_inset
1359
1360  directory contains all your personal configuration files.
1361  This is the directory described as 
1362 \begin_inset Quotes eld
1363 \end_inset
1364
1365 user directory
1366 \begin_inset Quotes erd
1367 \end_inset
1368
1369  in 
1370 \begin_inset Flex Noun
1371 status collapsed
1372
1373 \begin_layout Plain Layout
1374 Help\SpecialChar menuseparator
1375 About
1376 \begin_inset space ~
1377 \end_inset
1378
1379 LyX
1380 \end_layout
1381
1382 \end_inset
1383
1384 .
1385  This directory is used as a mirror of 
1386 \begin_inset Flex Code
1387 status collapsed
1388
1389 \begin_layout Plain Layout
1390 LyXDir
1391 \end_layout
1392
1393 \end_inset
1394
1395 , which means that every file in 
1396 \begin_inset Flex Code
1397 status collapsed
1398
1399 \begin_layout Plain Layout
1400 UserDir
1401 \end_layout
1402
1403 \end_inset
1404
1405  is a replacement for the corresponding file in 
1406 \begin_inset Flex Code
1407 status collapsed
1408
1409 \begin_layout Plain Layout
1410 LyXDir
1411 \end_layout
1412
1413 \end_inset
1414
1415 .
1416  Any configuration file described in the above sections can be placed either
1417  in the system-wide directory, in which case it will affect all users, or
1418  in your local directory for your own use.
1419 \end_layout
1420
1421 \begin_layout Standard
1422 To make things clearer, let's provide a few examples:
1423 \end_layout
1424
1425 \begin_layout Itemize
1426 The preferences set in the 
1427 \begin_inset Flex Noun
1428 status collapsed
1429
1430 \begin_layout Plain Layout
1431 Tools\SpecialChar menuseparator
1432 Preferences
1433 \end_layout
1434
1435 \end_inset
1436
1437  dialog are saved to a file 
1438 \begin_inset Flex Code
1439 status collapsed
1440
1441 \begin_layout Plain Layout
1442 preferences
1443 \end_layout
1444
1445 \end_inset
1446
1447  in 
1448 \begin_inset Flex Code
1449 status collapsed
1450
1451 \begin_layout Plain Layout
1452 UserDir
1453 \end_layout
1454
1455 \end_inset
1456
1457 .
1458 \end_layout
1459
1460 \begin_layout Itemize
1461 When you reconfigure using 
1462 \begin_inset Flex Noun
1463 status collapsed
1464
1465 \begin_layout Plain Layout
1466 Tools\SpecialChar menuseparator
1467 Reconfigure
1468 \end_layout
1469
1470 \end_inset
1471
1472 , \SpecialChar LyX
1473  runs the 
1474 \begin_inset Flex Code
1475 status collapsed
1476
1477 \begin_layout Plain Layout
1478 configure.py
1479 \end_layout
1480
1481 \end_inset
1482
1483  script, and the resulting files are written in your local configuration
1484  directory.
1485  This means that any additional text class file that you might have added
1486  in 
1487 \begin_inset Flex Code
1488 status collapsed
1489
1490 \begin_layout Plain Layout
1491 UserDir/layouts
1492 \end_layout
1493
1494 \end_inset
1495
1496  will be added to the list of classes in the 
1497 \begin_inset Flex Noun
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 Document\SpecialChar menuseparator
1502 Settings
1503 \end_layout
1504
1505 \end_inset
1506
1507  dialog.
1508 \end_layout
1509
1510 \begin_layout Itemize
1511 If you get some updated documentation from
1512 \change_inserted 232239728 1604798171
1513  a
1514 \change_unchanged
1515  \SpecialChar LyX
1516  ftp site and cannot install it because you do not have sysadmin rights
1517  on your system, you can just copy the files 
1518 \change_deleted 232239728 1604798193
1519 in
1520 \change_inserted 232239728 1604798193
1521 to
1522 \change_unchanged
1523  
1524 \begin_inset Flex Code
1525 status collapsed
1526
1527 \begin_layout Plain Layout
1528 UserDir/doc/
1529 \end_layout
1530
1531 \end_inset
1532
1533  and the items in the 
1534 \begin_inset Flex Noun
1535 status collapsed
1536
1537 \begin_layout Plain Layout
1538 Help
1539 \end_layout
1540
1541 \end_inset
1542
1543  menu will open them!
1544 \end_layout
1545
1546 \begin_layout Section
1547 Running \SpecialChar LyX
1548  with multiple configurations
1549 \end_layout
1550
1551 \begin_layout Standard
1552 The configuration freedom of the local configuration directory may not suffice
1553  if you want to have more than one configuration at your disposal.
1554  For example, you may want to 
1555 \change_deleted 232239728 1604798238
1556 be 
1557 \change_unchanged
1558 use different key bindings or printer settings at different times.
1559  You can achieve this by having several such directories.
1560  You then specify which directory to use at run-time.
1561 \end_layout
1562
1563 \begin_layout Standard
1564 Invoking \SpecialChar LyX
1565  with the command line switch 
1566 \begin_inset Flex Code
1567 status collapsed
1568
1569 \begin_layout Plain Layout
1570 -userdir
1571 \end_layout
1572
1573 \end_inset
1574
1575  
1576 \emph on
1577 <some directory>
1578 \emph default
1579  instructs the program to read the configuration from that directory, and
1580  not from the default directory.
1581  (You can determine the default directory by running \SpecialChar LyX
1582  without the 
1583 \begin_inset Flex Code
1584 status collapsed
1585
1586 \begin_layout Plain Layout
1587 -userdir
1588 \end_layout
1589
1590 \end_inset
1591
1592  switch.) If the specified directory does not exist, \SpecialChar LyX
1593  offers to create it
1594  for you, just like it does for the default directory 
1595 \change_deleted 232239728 1604798318
1596 on
1597 \change_unchanged
1598  the first time you run the program.
1599  You can modify the configuration options in this additional user directory
1600  exactly as you would for the default directory.
1601  These directories are completely independent (but read on).
1602  Note that setting the environment variable 
1603 \begin_inset Flex Code
1604 status collapsed
1605
1606 \begin_layout Plain Layout
1607 LYX_USERDIR_24x
1608 \end_layout
1609
1610 \end_inset
1611
1612  to some value has exactly the same effect.
1613 \end_layout
1614
1615 \begin_layout Standard
1616 Having several configurations also requires more maintenance: if you want
1617  to add a new layout to 
1618 \begin_inset Flex Code
1619 status collapsed
1620
1621 \begin_layout Plain Layout
1622 NewUserDir/layouts
1623 \end_layout
1624
1625 \end_inset
1626
1627  which you want available from all your configurations, you must add it
1628  to each directory separately.
1629  You can avoid this with the following trick: after \SpecialChar LyX
1630  creates the additional
1631  directory, most of the subdirectories (see above) are empty.
1632  If you want the new configuration to mirror an existing one, replace the
1633  empty subdirectory with a symbolic link to the matching subdirectory in
1634  the existing configuration.
1635  Take care with the 
1636 \begin_inset Flex Code
1637 status collapsed
1638
1639 \begin_layout Plain Layout
1640 doc/
1641 \end_layout
1642
1643 \end_inset
1644
1645  subdirectory, however, since it contains a file written by the configuration
1646  script (also accessible through 
1647 \begin_inset Flex Noun
1648 status collapsed
1649
1650 \begin_layout Plain Layout
1651 Tools\SpecialChar menuseparator
1652 Reconfigure
1653 \end_layout
1654
1655 \end_inset
1656
1657 ) which is configuration
1658 \change_deleted 232239728 1604798083
1659 -
1660 \change_inserted 232239728 1604798100
1661  
1662 \change_unchanged
1663 specific.
1664 \end_layout
1665
1666 \begin_layout Chapter
1667 The Preferences dialog
1668 \end_layout
1669
1670 \begin_layout Standard
1671 All options of the preferences dialog are described in the Appendix 
1672 \emph on
1673 The Preferences Dialog
1674 \emph default
1675  in the 
1676 \emph on
1677 User's Guide
1678 \emph default
1679 .
1680  For some options you might find here more details.
1681 \end_layout
1682
1683 \begin_layout Section
1684 Formats
1685 \begin_inset CommandInset label
1686 LatexCommand label
1687 name "sec:Formats"
1688
1689 \end_inset
1690
1691
1692 \end_layout
1693
1694 \begin_layout Standard
1695 The first step is to define your file formats if they are not already defined.
1696  To do so, open the 
1697 \begin_inset Flex Noun
1698 status collapsed
1699
1700 \begin_layout Plain Layout
1701 Tools\SpecialChar menuseparator
1702 Preferences
1703 \end_layout
1704
1705 \end_inset
1706
1707  dialog.
1708  Under 
1709 \begin_inset Flex Noun
1710 status collapsed
1711
1712 \begin_layout Plain Layout
1713 File Handling\SpecialChar menuseparator
1714 File formats
1715 \end_layout
1716
1717 \end_inset
1718
1719  press the 
1720 \begin_inset Flex Noun
1721 status collapsed
1722
1723 \begin_layout Plain Layout
1724 New
1725 \end_layout
1726
1727 \end_inset
1728
1729  button to define your new format.
1730  The 
1731 \begin_inset Flex Noun
1732 status collapsed
1733
1734 \begin_layout Plain Layout
1735 Format
1736 \end_layout
1737
1738 \end_inset
1739
1740  field contains the name used to identify the format in the GUI.
1741  The 
1742 \begin_inset Flex Noun
1743 status collapsed
1744
1745 \begin_layout Plain Layout
1746 Short Name
1747 \end_layout
1748
1749 \end_inset
1750
1751  is used to identify the format internally.
1752  You will also need to enter a file extension.
1753  These are all required.
1754  The optional 
1755 \begin_inset Flex Noun
1756 status collapsed
1757
1758 \begin_layout Plain Layout
1759 Shortcut
1760 \end_layout
1761
1762 \end_inset
1763
1764  field is used to provide a keyboard shortcut on the menus.
1765  (For example, pressing 
1766 \begin_inset Flex Noun
1767 status collapsed
1768
1769 \begin_layout Plain Layout
1770 Ctrl+D
1771 \end_layout
1772
1773 \end_inset
1774
1775  will 
1776 \begin_inset Flex Noun
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780 Document\SpecialChar menuseparator
1781 View (Other Formats)\SpecialChar menuseparator
1782 DVI
1783 \end_layout
1784
1785 \end_inset
1786
1787 .) 
1788 \end_layout
1789
1790 \begin_layout Standard
1791 A Format can have a 
1792 \begin_inset Flex Noun
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 Viewer
1797 \end_layout
1798
1799 \end_inset
1800
1801  and an 
1802 \begin_inset Flex Noun
1803 status collapsed
1804
1805 \begin_layout Plain Layout
1806 Editor
1807 \end_layout
1808
1809 \end_inset
1810
1811  associated with it.
1812  For example, you might want to use 
1813 \begin_inset Flex Noun
1814 status collapsed
1815
1816 \begin_layout Plain Layout
1817 Ghostview
1818 \end_layout
1819
1820 \end_inset
1821
1822  to view PostScript files.
1823  You can enter the command needed to start the program in the corresponding
1824  fields.
1825  In defining this command, you can use the four variables listed in the
1826  next section.
1827  The viewer is launched when you view an image in \SpecialChar LyX
1828  or use the 
1829 \begin_inset Flex Noun
1830 status collapsed
1831
1832 \begin_layout Plain Layout
1833 Document\SpecialChar menuseparator
1834 View
1835 \end_layout
1836
1837 \end_inset
1838
1839  menu.
1840  The editor is for example launched when you right-click on an image and
1841  choose 
1842 \begin_inset Flex Noun
1843 status collapsed
1844
1845 \begin_layout Plain Layout
1846 Edit externally
1847 \end_layout
1848
1849 \end_inset
1850
1851  in the appearing context menu.
1852 \end_layout
1853
1854 \begin_layout Standard
1855 The 
1856 \begin_inset Flex Noun
1857 status collapsed
1858
1859 \begin_layout Plain Layout
1860 MIME
1861 \end_layout
1862
1863 \end_inset
1864
1865  type of a format is optional, but if it is specified, it must be unique
1866  across all formats.
1867  It is used to detect files of this format from the file contents.
1868  For some important file formats there is no MIME type officially registered
1869  with the 
1870 \begin_inset CommandInset href
1871 LatexCommand href
1872 name "IANA"
1873 target "http://www.iana.org/assignments/media-types/"
1874 literal "false"
1875
1876 \end_inset
1877
1878 .
1879  Therefore \SpecialChar LyX
1880  uses the extended list of MIME types as specified by 
1881 \begin_inset CommandInset href
1882 LatexCommand href
1883 name "freedesktop.org"
1884 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1885 literal "false"
1886
1887 \end_inset
1888
1889 .
1890 \end_layout
1891
1892 \begin_layout Standard
1893 The 
1894 \begin_inset Flex Noun
1895 status collapsed
1896
1897 \begin_layout Plain Layout
1898 Document format
1899 \end_layout
1900
1901 \end_inset
1902
1903  option tells \SpecialChar LyX
1904  that a format is suitable for document export.
1905  If this is set and if a suitable conversion route exists (see 
1906 \begin_inset CommandInset ref
1907 LatexCommand ref
1908 reference "sec:Converters"
1909
1910 \end_inset
1911
1912 ), the format will appear in the 
1913 \begin_inset Flex Noun
1914 status collapsed
1915
1916 \begin_layout Plain Layout
1917 File\SpecialChar menuseparator
1918 Export
1919 \end_layout
1920
1921 \end_inset
1922
1923  menu.
1924  The format will also appear in the 
1925 \begin_inset Flex Noun
1926 status collapsed
1927
1928 \begin_layout Plain Layout
1929 Document\SpecialChar menuseparator
1930 View
1931 \end_layout
1932
1933 \end_inset
1934
1935  menu if a viewer is specified for the format.
1936  Pure image formats, such as 
1937 \begin_inset Flex Code
1938 status collapsed
1939
1940 \begin_layout Plain Layout
1941 png
1942 \end_layout
1943
1944 \end_inset
1945
1946 , should not use this option.
1947  Formats that can both represent vector graphics and documents like 
1948 \begin_inset Flex Code
1949 status collapsed
1950
1951 \begin_layout Plain Layout
1952 pdf
1953 \end_layout
1954
1955 \end_inset
1956
1957  should use it.
1958 \end_layout
1959
1960 \begin_layout Standard
1961 The option 
1962 \begin_inset Flex Noun
1963 status collapsed
1964
1965 \begin_layout Plain Layout
1966 Vector graphics format
1967 \end_layout
1968
1969 \end_inset
1970
1971  tells \SpecialChar LyX
1972  that a format can contain vector graphics.
1973  This information is used to determine the target format of included graphics
1974  for 
1975 \begin_inset Flex Noun
1976 status collapsed
1977
1978 \begin_layout Plain Layout
1979 pdflatex
1980 \end_layout
1981
1982 \end_inset
1983
1984  export.
1985  Included graphics may need to be converted to either 
1986 \begin_inset Flex Noun
1987 status collapsed
1988
1989 \begin_layout Plain Layout
1990 pdf
1991 \end_layout
1992
1993 \end_inset
1994
1995
1996 \begin_inset Flex Noun
1997 status collapsed
1998
1999 \begin_layout Plain Layout
2000 png
2001 \end_layout
2002
2003 \end_inset
2004
2005 , or 
2006 \begin_inset Flex Noun
2007 status collapsed
2008
2009 \begin_layout Plain Layout
2010 jpg
2011 \end_layout
2012
2013 \end_inset
2014
2015 , since 
2016 \begin_inset Flex Noun
2017 status collapsed
2018
2019 \begin_layout Plain Layout
2020 pdflatex
2021 \end_layout
2022
2023 \end_inset
2024
2025  cannot handle other image formats.
2026  If an included graphic is not already in 
2027 \begin_inset Flex Noun
2028 status collapsed
2029
2030 \begin_layout Plain Layout
2031 pdf
2032 \end_layout
2033
2034 \end_inset
2035
2036
2037 \begin_inset Flex Noun
2038 status collapsed
2039
2040 \begin_layout Plain Layout
2041 png
2042 \end_layout
2043
2044 \end_inset
2045
2046 , or 
2047 \begin_inset Flex Noun
2048 status collapsed
2049
2050 \begin_layout Plain Layout
2051 jpg
2052 \end_layout
2053
2054 \end_inset
2055
2056  format, it is converted to 
2057 \begin_inset Flex Noun
2058 status collapsed
2059
2060 \begin_layout Plain Layout
2061 pdf
2062 \end_layout
2063
2064 \end_inset
2065
2066  if the vector format option is set, and otherwise to 
2067 \begin_inset Flex Noun
2068 status collapsed
2069
2070 \begin_layout Plain Layout
2071 png
2072 \end_layout
2073
2074 \end_inset
2075
2076 .
2077 \end_layout
2078
2079 \begin_layout Section
2080 Copiers
2081 \end_layout
2082
2083 \begin_layout Standard
2084 Since all conversions from one format to another take place in \SpecialChar LyX
2085 's temporary
2086  directory, it is sometimes necessary to modify a file before copying it
2087  to the temporary directory in order that the conversion may be performed.
2088 \begin_inset Foot
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092 For example, the file may refer to other files—images, for example—using
2093  relative file names, and these may become invalid when the file is copied
2094  to the temporary directory.
2095 \end_layout
2096
2097 \end_inset
2098
2099  This is done by a Copier: It copies a file to (or from) the temporary directory
2100  and may modify it in the process.
2101 \end_layout
2102
2103 \begin_layout Standard
2104 The definitions of the copiers may use eight variables:
2105 \end_layout
2106
2107 \begin_layout Labeling
2108 \labelwidthstring 00.00.0000
2109 \begin_inset Flex Code
2110 status collapsed
2111
2112 \begin_layout Plain Layout
2113 $$s
2114 \end_layout
2115
2116 \end_inset
2117
2118  The \SpecialChar LyX
2119  system directory (e.
2120 \begin_inset space \thinspace{}
2121 \end_inset
2122
2123 g.
2124 \begin_inset space \space{}
2125 \end_inset
2126
2127
2128 \begin_inset Flex Noun
2129 status collapsed
2130
2131 \begin_layout Plain Layout
2132 /usr/share/lyx
2133 \end_layout
2134
2135 \end_inset
2136
2137 ).
2138 \end_layout
2139
2140 \begin_layout Labeling
2141 \labelwidthstring 00.00.0000
2142 \begin_inset Flex Code
2143 status collapsed
2144
2145 \begin_layout Plain Layout
2146 $$i
2147 \end_layout
2148
2149 \end_inset
2150
2151  The input file
2152 \end_layout
2153
2154 \begin_layout Labeling
2155 \labelwidthstring 00.00.0000
2156 \begin_inset Flex Code
2157 status collapsed
2158
2159 \begin_layout Plain Layout
2160 $$o
2161 \end_layout
2162
2163 \end_inset
2164
2165  The output file
2166 \end_layout
2167
2168 \begin_layout Labeling
2169 \labelwidthstring 00.00.0000
2170 \begin_inset Flex Code
2171 status collapsed
2172
2173 \begin_layout Plain Layout
2174 $$b
2175 \end_layout
2176
2177 \end_inset
2178
2179  The base name (without filename extension) in the \SpecialChar LyX
2180  temporary directory
2181 \end_layout
2182
2183 \begin_layout Labeling
2184 \labelwidthstring 00.00.0000
2185 \begin_inset Flex Code
2186 status collapsed
2187
2188 \begin_layout Plain Layout
2189 $$p
2190 \end_layout
2191
2192 \end_inset
2193
2194  The full directory path of the \SpecialChar LyX
2195  temporary directory
2196 \end_layout
2197
2198 \begin_layout Labeling
2199 \labelwidthstring 00.00.0000
2200 \begin_inset Flex Code
2201 status collapsed
2202
2203 \begin_layout Plain Layout
2204 $$r
2205 \end_layout
2206
2207 \end_inset
2208
2209  The full pathname to the original \SpecialChar LyX
2210  file being processed
2211 \end_layout
2212
2213 \begin_layout Labeling
2214 \labelwidthstring 00.00.0000
2215 \begin_inset Flex Code
2216 status collapsed
2217
2218 \begin_layout Plain Layout
2219 $$f
2220 \end_layout
2221
2222 \end_inset
2223
2224  The filename (without any directory path) of the \SpecialChar LyX
2225  file.
2226 \end_layout
2227
2228 \begin_layout Labeling
2229 \labelwidthstring 00.00.0000
2230 \begin_inset Flex Code
2231 status collapsed
2232
2233 \begin_layout Plain Layout
2234 $$l
2235 \end_layout
2236
2237 \end_inset
2238
2239  The `\SpecialChar LaTeX
2240  name'
2241 \end_layout
2242
2243 \begin_layout Standard
2244 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2245 's 
2246 \series bold
2247
2248 \backslash
2249 include
2250 \series default
2251  command.
2252  It is relevant only when exporting files suitable for such inclusion.
2253 \end_layout
2254
2255 \begin_layout Standard
2256 Copiers can be used to do almost anything with output files.
2257  For example, suppose you want generated pdf files to be copied to a special
2258  directory, 
2259 \begin_inset Flex Code
2260 status collapsed
2261
2262 \begin_layout Plain Layout
2263 /home/you/pdf/
2264 \end_layout
2265
2266 \end_inset
2267
2268 .
2269  Then you could write a shell script such as this one:
2270 \end_layout
2271
2272 \begin_layout Standard
2273 \begin_inset listings
2274 inline false
2275 status open
2276
2277 \begin_layout Plain Layout
2278
2279 #!/bin/bash
2280 \end_layout
2281
2282 \begin_layout Plain Layout
2283
2284 FROMFILE=$1
2285 \end_layout
2286
2287 \begin_layout Plain Layout
2288
2289 TOFILE=`basename $2`
2290 \end_layout
2291
2292 \begin_layout Plain Layout
2293
2294 cp $FROMFILE /home/you/pdf/$TOFILE
2295 \end_layout
2296
2297 \end_inset
2298
2299 Save it in your local \SpecialChar LyX
2300  directory—say, 
2301 \begin_inset Flex Code
2302 status collapsed
2303
2304 \begin_layout Plain Layout
2305 /home/you/.lyx/scripts/pdfcopier.sh
2306 \end_layout
2307
2308 \end_inset
2309
2310 —and make it executable, if you need to do so on your platform.
2311  Then, in the 
2312 \begin_inset Flex Noun
2313 status collapsed
2314
2315 \begin_layout Plain Layout
2316 Tools\SpecialChar menuseparator
2317 Preferences
2318 \end_layout
2319
2320 \end_inset
2321
2322  dialog, select under 
2323 \begin_inset Flex Noun
2324 status collapsed
2325
2326 \begin_layout Plain Layout
2327 File Handling\SpecialChar menuseparator
2328 File formats
2329 \end_layout
2330
2331 \end_inset
2332
2333  the 
2334 \begin_inset Flex Noun
2335 status collapsed
2336
2337 \begin_layout Plain Layout
2338 PDF(pdflatex)
2339 \end_layout
2340
2341 \end_inset
2342
2343  format—or one of the other pdf formats—and enter 
2344 \begin_inset Flex Code
2345 status collapsed
2346
2347 \begin_layout Plain Layout
2348 pdfcopier.sh $$i $$o
2349 \end_layout
2350
2351 \end_inset
2352
2353  into the 
2354 \begin_inset Flex Noun
2355 status collapsed
2356
2357 \begin_layout Plain Layout
2358 Copier
2359 \end_layout
2360
2361 \end_inset
2362
2363  field.
2364  
2365 \end_layout
2366
2367 \begin_layout Standard
2368 Copiers are used by \SpecialChar LyX
2369  in various of its own conversions.
2370  For example, if appropriate programs are found, \SpecialChar LyX
2371  will automatically install
2372  copiers for the 
2373 \begin_inset Flex Noun
2374 status collapsed
2375
2376 \begin_layout Plain Layout
2377 HTML
2378 \end_layout
2379
2380 \end_inset
2381
2382  and 
2383 \begin_inset Flex Noun
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 HTML
2388 \begin_inset space ~
2389 \end_inset
2390
2391 (MS Word)
2392 \end_layout
2393
2394 \end_inset
2395
2396  formats.
2397  When these formats are exported, the copier sees that not just the main
2398  HTML file but various associated files (style files, images, etc.) are also
2399  copied.
2400  All these files are written to a subdirectory of the directory in which
2401  the original \SpecialChar LyX
2402  file was found.
2403 \begin_inset Foot
2404 status collapsed
2405
2406 \begin_layout Plain Layout
2407 This copier can be customized.
2408  The optional 
2409 \begin_inset Quotes eld
2410 \end_inset
2411
2412 -e
2413 \begin_inset Quotes erd
2414 \end_inset
2415
2416  argument takes a comma-separated list of extensions to be copied; if it
2417  is omitted, all files will be copied.
2418  The 
2419 \begin_inset Quotes eld
2420 \end_inset
2421
2422 -t
2423 \begin_inset Quotes erd
2424 \end_inset
2425
2426  argument determines the extension added to the generated directory.
2427  By default, it is 
2428 \begin_inset Quotes eld
2429 \end_inset
2430
2431
2432 \begin_inset Flex Noun
2433 status collapsed
2434
2435 \begin_layout Plain Layout
2436 LyXconv
2437 \end_layout
2438
2439 \end_inset
2440
2441
2442 \begin_inset Quotes erd
2443 \end_inset
2444
2445 , so HTML generated from 
2446 \begin_inset Flex Noun
2447 status collapsed
2448
2449 \begin_layout Plain Layout
2450 /path/to/filename.lyx
2451 \end_layout
2452
2453 \end_inset
2454
2455  will end up in 
2456 \begin_inset Flex Noun
2457 status collapsed
2458
2459 \begin_layout Plain Layout
2460 /path/to/filename.html.LyXconv
2461 \end_layout
2462
2463 \end_inset
2464
2465 .
2466  
2467 \end_layout
2468
2469 \end_inset
2470
2471
2472 \end_layout
2473
2474 \begin_layout Section
2475 Converters
2476 \begin_inset CommandInset label
2477 LatexCommand label
2478 name "sec:Converters"
2479
2480 \end_inset
2481
2482
2483 \end_layout
2484
2485 \begin_layout Standard
2486 You can define your own Converters to convert files between different formats.
2487  This is done in the 
2488 \begin_inset Flex Noun
2489 status collapsed
2490
2491 \begin_layout Plain Layout
2492 Tools\SpecialChar menuseparator
2493 Preferences\SpecialChar menuseparator
2494 File Handling\SpecialChar menuseparator
2495 Converters
2496 \end_layout
2497
2498 \end_inset
2499
2500  dialog.
2501 \end_layout
2502
2503 \begin_layout Standard
2504 To define a new converter, select the 
2505 \begin_inset Flex Noun
2506 status collapsed
2507
2508 \begin_layout Plain Layout
2509 From
2510 \begin_inset space ~
2511 \end_inset
2512
2513 format
2514 \end_layout
2515
2516 \end_inset
2517
2518  and 
2519 \begin_inset Flex Noun
2520 status collapsed
2521
2522 \begin_layout Plain Layout
2523 To
2524 \begin_inset space ~
2525 \end_inset
2526
2527 format
2528 \end_layout
2529
2530 \end_inset
2531
2532  from the drop-down lists, enter the command needed for the conversion,
2533  and then press the 
2534 \begin_inset Flex Noun
2535 status collapsed
2536
2537 \begin_layout Plain Layout
2538 Add
2539 \end_layout
2540
2541 \end_inset
2542
2543  button.
2544  Several variables can be used in the definition of converters:
2545 \end_layout
2546
2547 \begin_layout Labeling
2548 \labelwidthstring 00.00.0000
2549 \begin_inset Flex Code
2550 status collapsed
2551
2552 \begin_layout Plain Layout
2553 $$s
2554 \end_layout
2555
2556 \end_inset
2557
2558  The \SpecialChar LyX
2559  system directory
2560 \end_layout
2561
2562 \begin_layout Labeling
2563 \labelwidthstring 00.00.0000
2564 \begin_inset Flex Code
2565 status collapsed
2566
2567 \begin_layout Plain Layout
2568 $$i
2569 \end_layout
2570
2571 \end_inset
2572
2573  The input file
2574 \end_layout
2575
2576 \begin_layout Labeling
2577 \labelwidthstring 00.00.0000
2578 \begin_inset Flex Code
2579 status collapsed
2580
2581 \begin_layout Plain Layout
2582 $$o
2583 \end_layout
2584
2585 \end_inset
2586
2587  The output file
2588 \end_layout
2589
2590 \begin_layout Labeling
2591 \labelwidthstring 00.00.0000
2592 \begin_inset Flex Code
2593 status collapsed
2594
2595 \begin_layout Plain Layout
2596 $$b
2597 \end_layout
2598
2599 \end_inset
2600
2601  The base filename of the input file (i.
2602 \begin_inset space \thinspace{}
2603 \end_inset
2604
2605 g., without the extension)
2606 \end_layout
2607
2608 \begin_layout Labeling
2609 \labelwidthstring 00.00.0000
2610 \begin_inset Flex Code
2611 status collapsed
2612
2613 \begin_layout Plain Layout
2614 $$p
2615 \end_layout
2616
2617 \end_inset
2618
2619  The path to the input file
2620 \end_layout
2621
2622 \begin_layout Labeling
2623 \labelwidthstring 00.00.0000
2624 \begin_inset Flex Code
2625 status collapsed
2626
2627 \begin_layout Plain Layout
2628 $$r
2629 \end_layout
2630
2631 \end_inset
2632
2633  The path to the original input file (this is different from $$p when a
2634  chain of converters is called)
2635 \end_layout
2636
2637 \begin_layout Labeling
2638 \labelwidthstring 00.00.0000
2639 \begin_inset Flex Code
2640 status collapsed
2641
2642 \begin_layout Plain Layout
2643 $$e
2644 \end_layout
2645
2646 \end_inset
2647
2648  The iconv name for the encoding of the document.
2649 \end_layout
2650
2651 \begin_layout Standard
2652 In the 
2653 \begin_inset Flex Noun
2654 status collapsed
2655
2656 \begin_layout Plain Layout
2657 Extra
2658 \begin_inset space ~
2659 \end_inset
2660
2661 Flag
2662 \end_layout
2663
2664 \end_inset
2665
2666  field you can enter the following flags, separated by commas:
2667 \end_layout
2668
2669 \begin_layout Labeling
2670 \labelwidthstring 00.00.0000
2671 \begin_inset Flex Code
2672 status collapsed
2673
2674 \begin_layout Plain Layout
2675 latex
2676 \change_inserted -712698321 1524656940
2677 =flavor
2678 \change_unchanged
2679
2680 \end_layout
2681
2682 \end_inset
2683
2684  This converter runs some form of \SpecialChar LaTeX
2685 .
2686  This will make \SpecialChar LyX
2687 's \SpecialChar LaTeX
2688  error logs available.
2689
2690 \change_inserted -712698321 1524657018
2691  The optional 
2692 \begin_inset Flex Code
2693 status open
2694
2695 \begin_layout Plain Layout
2696
2697 \change_inserted -712698321 1524657012
2698 flavor
2699 \change_unchanged
2700
2701 \end_layout
2702
2703 \end_inset
2704
2705  value specifies the form of \SpecialChar LaTeX
2706  that is run (
2707 \begin_inset Flex Code
2708 status open
2709
2710 \begin_layout Plain Layout
2711
2712 \change_inserted -712698321 1524657005
2713 latex, pdflatex, platex, xetex, luatex
2714 \change_unchanged
2715
2716 \end_layout
2717
2718 \end_inset
2719
2720 ).
2721  If no value is specified, 
2722 \begin_inset Flex Code
2723 status open
2724
2725 \begin_layout Plain Layout
2726
2727 \change_inserted -712698321 1524657018
2728 latex
2729 \change_unchanged
2730
2731 \end_layout
2732
2733 \end_inset
2734
2735  is used.
2736 \change_unchanged
2737
2738 \end_layout
2739
2740 \begin_layout Labeling
2741 \labelwidthstring 00.00.0000
2742 \begin_inset Flex Code
2743 status collapsed
2744
2745 \begin_layout Plain Layout
2746 needaux
2747 \change_inserted -712698321 1524656935
2748 =flavor
2749 \change_unchanged
2750
2751 \end_layout
2752
2753 \end_inset
2754
2755  Needs the \SpecialChar LaTeX
2756  
2757 \begin_inset Flex Noun
2758 status collapsed
2759
2760 \begin_layout Plain Layout
2761 .aux
2762 \end_layout
2763
2764 \end_inset
2765
2766  file for the conversion.
2767
2768 \change_inserted -712698321 1524657047
2769  The optional 
2770 \begin_inset Flex Code
2771 status open
2772
2773 \begin_layout Plain Layout
2774
2775 \change_inserted -712698321 1524657030
2776 flavor
2777 \change_unchanged
2778
2779 \end_layout
2780
2781 \end_inset
2782
2783  value specifies the form of \SpecialChar LaTeX
2784  that is run in order to generate the 
2785 \begin_inset Flex Noun
2786 status collapsed
2787
2788 \begin_layout Plain Layout
2789
2790 \change_inserted -712698321 1524657047
2791 .aux
2792 \change_unchanged
2793
2794 \end_layout
2795
2796 \end_inset
2797
2798  file (
2799 \begin_inset Flex Code
2800 status open
2801
2802 \begin_layout Plain Layout
2803
2804 \change_inserted -712698321 1524657030
2805 latex, pdflatex, platex, xetex, luatex
2806 \change_unchanged
2807
2808 \end_layout
2809
2810 \end_inset
2811
2812 ).
2813  If no value is specified, 
2814 \begin_inset Flex Code
2815 status open
2816
2817 \begin_layout Plain Layout
2818
2819 \change_inserted -712698321 1524657030
2820 latex
2821 \change_unchanged
2822
2823 \end_layout
2824
2825 \end_inset
2826
2827  is used.
2828 \change_unchanged
2829
2830 \end_layout
2831
2832 \begin_layout Labeling
2833 \labelwidthstring 00.00.0000
2834 \begin_inset Flex Code
2835 status collapsed
2836
2837 \begin_layout Plain Layout
2838 nice
2839 \end_layout
2840
2841 \end_inset
2842
2843  Needs a 
2844 \begin_inset Quotes eld
2845 \end_inset
2846
2847 nice
2848 \begin_inset Quotes erd
2849 \end_inset
2850
2851  file from the backend, which in practice means a \SpecialChar LaTeX
2852  file like the one we
2853  would export, without 
2854 \begin_inset Flex Code
2855 status collapsed
2856
2857 \begin_layout Plain Layout
2858 input@path
2859 \end_layout
2860
2861 \end_inset
2862
2863 .
2864 \end_layout
2865
2866 \begin_layout Labeling
2867 \labelwidthstring 00.00.0000
2868 \begin_inset Flex Code
2869 status collapsed
2870
2871 \begin_layout Plain Layout
2872 xml
2873 \end_layout
2874
2875 \end_inset
2876
2877  Output is XML.
2878 \end_layout
2879
2880 \begin_layout Standard
2881 The following three flags are not really flags at all because they take
2882  an argument in the 
2883 \begin_inset Flex Noun
2884 status collapsed
2885
2886 \begin_layout Plain Layout
2887 key
2888 \begin_inset space ~
2889 \end_inset
2890
2891 =
2892 \begin_inset space ~
2893 \end_inset
2894
2895 value
2896 \end_layout
2897
2898 \end_inset
2899
2900  format:
2901 \end_layout
2902
2903 \begin_layout Labeling
2904 \labelwidthstring 00.00.0000
2905
2906 \change_inserted -712698321 1523206314
2907 \begin_inset Flex Code
2908 status collapsed
2909
2910 \begin_layout Plain Layout
2911
2912 \change_inserted -712698321 1523206193
2913 hyperref-driver
2914 \change_unchanged
2915
2916 \end_layout
2917
2918 \end_inset
2919
2920  The name of the driver that needs to be loaded with the 
2921 \family sans
2922 hyperref
2923 \family default
2924  package for this converter.
2925  The loading of the correct driver is necessary to get some PDF-specific
2926  features.
2927  See the 
2928 \family sans
2929 hyperref
2930 \family default
2931  manual for details.
2932 \end_layout
2933
2934 \begin_layout Labeling
2935 \labelwidthstring 00.00.0000
2936 \begin_inset Flex Code
2937 status collapsed
2938
2939 \begin_layout Plain Layout
2940 parselog
2941 \end_layout
2942
2943 \end_inset
2944
2945  If set, the converter's standard error will be redirected to a file 
2946 \begin_inset Flex Code
2947 status collapsed
2948
2949 \begin_layout Plain Layout
2950 infile.out
2951 \end_layout
2952
2953 \end_inset
2954
2955 , and the script given as argument will be run as: 
2956 \begin_inset Flex Code
2957 status collapsed
2958
2959 \begin_layout Plain Layout
2960 script < infile.out > infile.log
2961 \end_layout
2962
2963 \end_inset
2964
2965 .
2966  The argument may contain 
2967 \begin_inset Flex Code
2968 status collapsed
2969
2970 \begin_layout Plain Layout
2971 $$s
2972 \end_layout
2973
2974 \end_inset
2975
2976 .
2977 \end_layout
2978
2979 \begin_layout Labeling
2980 \labelwidthstring 00.00.0000
2981 \begin_inset Flex Code
2982 status collapsed
2983
2984 \begin_layout Plain Layout
2985 resultdir
2986 \end_layout
2987
2988 \end_inset
2989
2990  The name of the directory in which the converter will dump the generated
2991  files.
2992  \SpecialChar LyX
2993  will not create this directory, and it does not copy anything into it,
2994  though it will copy this directory to the destination.
2995  The argument may contain 
2996 \begin_inset Flex Code
2997 status collapsed
2998
2999 \begin_layout Plain Layout
3000 $$b
3001 \end_layout
3002
3003 \end_inset
3004
3005 , which will be replaced by the base name of the input and output files,
3006  respectively, when the directory is copied.
3007 \begin_inset Newline newline
3008 \end_inset
3009
3010 Note that resultdir and usetempdir make no sense together.
3011  The latter will be ignored if the former is given.
3012 \end_layout
3013
3014 \begin_layout Labeling
3015 \labelwidthstring 00.00.0000
3016 \begin_inset Flex Code
3017 status collapsed
3018
3019 \begin_layout Plain Layout
3020 resultfile
3021 \end_layout
3022
3023 \end_inset
3024
3025  Determines the output file name and may, contain 
3026 \begin_inset Flex Code
3027 status collapsed
3028
3029 \begin_layout Plain Layout
3030 $$b
3031 \end_layout
3032
3033 \end_inset
3034
3035 .
3036  Sensible only with resultdir and optional even then; if not given, it defaults
3037  to `index'.
3038 \end_layout
3039
3040 \begin_layout Standard
3041
3042 \change_inserted -712698321 1523206384
3043 A suitable hyperref-driver is set for some converters that are installed
3044  with \SpecialChar LyX
3045 .
3046  
3047 \change_deleted -712698321 1523206388
3048 None of these
3049 \change_inserted -712698321 1523206389
3050 The
3051 \change_unchanged
3052  last three
3053 \change_inserted -712698321 1523206400
3054  flags, however,
3055 \change_unchanged
3056  are presently 
3057 \change_inserted -712698321 1523206407
3058 not 
3059 \change_unchanged
3060 used in any of the 
3061 \change_inserted -712698321 1523206437
3062 pre-installed 
3063 \change_unchanged
3064 converters
3065 \change_deleted -712698321 1523206442
3066  that are installed with \SpecialChar LyX
3067
3068 \change_unchanged
3069 .
3070  
3071 \end_layout
3072
3073 \begin_layout Standard
3074 You do not have to define converters for all formats between which you want
3075  to convert.
3076  For example, you will note that there is no `\SpecialChar LyX
3077  to PostScript' converter,
3078  but \SpecialChar LyX
3079  will export PostScript.
3080  It does so by first creating a \SpecialChar LaTeX
3081  file (no converter needs to be defined
3082  for this) which is then converted to DVI using the `\SpecialChar LaTeX
3083  to DVI' converter,
3084  and finally converting the resulting DVI file to PostScript.
3085  \SpecialChar LyX
3086  finds such `chains' of converters automatically, and it will always choose
3087  the shortest possible chain.
3088  You can, though, still define multiple conversion methods between file
3089  formats.
3090  For example, the standard \SpecialChar LyX
3091  configuration provides five ways to convert
3092  \SpecialChar LaTeX
3093  to PDF:
3094 \end_layout
3095
3096 \begin_layout Enumerate
3097 Directly, using 
3098 \begin_inset Flex Noun
3099 status collapsed
3100
3101 \begin_layout Plain Layout
3102 pdflatex
3103 \end_layout
3104
3105 \end_inset
3106
3107
3108 \end_layout
3109
3110 \begin_layout Enumerate
3111 via (DVI and) PostScript, using 
3112 \begin_inset Flex Noun
3113 status collapsed
3114
3115 \begin_layout Plain Layout
3116 ps2pdf
3117 \end_layout
3118
3119 \end_inset
3120
3121
3122 \end_layout
3123
3124 \begin_layout Enumerate
3125 via DVI, using 
3126 \begin_inset Flex Noun
3127 status collapsed
3128
3129 \begin_layout Plain Layout
3130 dvipdfm
3131 \end_layout
3132
3133 \end_inset
3134
3135
3136 \end_layout
3137
3138 \begin_layout Enumerate
3139 directly using 
3140 \begin_inset Flex Noun
3141 status collapsed
3142
3143 \begin_layout Plain Layout
3144 Xe\SpecialChar TeX
3145
3146 \end_layout
3147
3148 \end_inset
3149
3150
3151 \end_layout
3152
3153 \begin_layout Enumerate
3154 directly using 
3155 \begin_inset Flex Noun
3156 status collapsed
3157
3158 \begin_layout Plain Layout
3159 Lua\SpecialChar TeX
3160
3161 \end_layout
3162
3163 \end_inset
3164
3165
3166 \end_layout
3167
3168 \begin_layout Standard
3169 To define such alternate chains, you must define multiple target `file formats',
3170  as described in 
3171 \begin_inset CommandInset ref
3172 LatexCommand ref
3173 reference "sec:Formats"
3174
3175 \end_inset
3176
3177 .
3178  For example, in the standard configuration, the formats named 
3179 \begin_inset Flex Noun
3180 status collapsed
3181
3182 \begin_layout Plain Layout
3183 pdf
3184 \end_layout
3185
3186 \end_inset
3187
3188  (for 
3189 \begin_inset Flex Noun
3190 status collapsed
3191
3192 \begin_layout Plain Layout
3193 ps2pdf
3194 \end_layout
3195
3196 \end_inset
3197
3198 ), 
3199 \begin_inset Flex Noun
3200 status collapsed
3201
3202 \begin_layout Plain Layout
3203 pdf2
3204 \end_layout
3205
3206 \end_inset
3207
3208  (for 
3209 \begin_inset Flex Noun
3210 status collapsed
3211
3212 \begin_layout Plain Layout
3213 pdflatex
3214 \end_layout
3215
3216 \end_inset
3217
3218 ), 
3219 \begin_inset Flex Noun
3220 status collapsed
3221
3222 \begin_layout Plain Layout
3223 pdf3
3224 \end_layout
3225
3226 \end_inset
3227
3228  (for 
3229 \begin_inset Flex Noun
3230 status collapsed
3231
3232 \begin_layout Plain Layout
3233 dvipdfm
3234 \end_layout
3235
3236 \end_inset
3237
3238 ), 
3239 \begin_inset Flex Noun
3240 status collapsed
3241
3242 \begin_layout Plain Layout
3243 pdf4
3244 \end_layout
3245
3246 \end_inset
3247
3248  (for 
3249 \begin_inset Flex Noun
3250 status collapsed
3251
3252 \begin_layout Plain Layout
3253 Xe\SpecialChar TeX
3254
3255 \end_layout
3256
3257 \end_inset
3258
3259 ), and 
3260 \begin_inset Flex Noun
3261 status collapsed
3262
3263 \begin_layout Plain Layout
3264 pdf5
3265 \end_layout
3266
3267 \end_inset
3268
3269  (for 
3270 \begin_inset Flex Noun
3271 status collapsed
3272
3273 \begin_layout Plain Layout
3274 Lua\SpecialChar TeX
3275
3276 \end_layout
3277
3278 \end_inset
3279
3280 ) are defined, all of which share the extension 
3281 \begin_inset Flex Noun
3282 status collapsed
3283
3284 \begin_layout Plain Layout
3285 .pdf
3286 \end_layout
3287
3288 \end_inset
3289
3290 , and which correspond to the conversion methods just mentioned.
3291 \end_layout
3292
3293 \begin_layout Chapter
3294 Internationalizing \SpecialChar LyX
3295
3296 \begin_inset CommandInset label
3297 LatexCommand label
3298 name "cha:Internationalizing-LyX"
3299
3300 \end_inset
3301
3302
3303 \end_layout
3304
3305 \begin_layout Standard
3306 \SpecialChar LyX
3307  supports using a translated interface.
3308  Last time we checked, \SpecialChar LyX
3309  provided text in thirty languages.
3310  The language of choice is called your 
3311 \emph on
3312 locale
3313 \emph default
3314 .
3315  (For further reading on locale settings, see also the documentation for
3316  locale that comes with your operating system.
3317  For Linux, the manual page for 
3318 \begin_inset Flex Code
3319 status collapsed
3320
3321 \begin_layout Plain Layout
3322 locale(5)
3323 \end_layout
3324
3325 \end_inset
3326
3327  could be a good place to start).
3328 \end_layout
3329
3330 \begin_layout Standard
3331 Notice that these translations will work, but do contain a few flaws.
3332  In particular, all dialogs have been designed with the English text in
3333  mind, which means that some of the translated text will be too large to
3334  fit within the space allocated.
3335  This is only a display problem and will not cause any harm.
3336  Also, you will find that some of the translations do not define shortcut
3337  keys for everything.
3338  Sometimes, there are simply not enough free letters to do it.
3339  Other times, the translator just hasn't got around to doing it yet.
3340  Our localization team, which you may wish to join,
3341 \begin_inset Foot
3342 status collapsed
3343
3344 \begin_layout Plain Layout
3345 If you are a fluent speaker of a language other than English, joining these
3346  teams is a great way to give back to the \SpecialChar LyX
3347  community!
3348 \end_layout
3349
3350 \end_inset
3351
3352  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3353 .
3354 \end_layout
3355
3356 \begin_layout Section
3357 Translating \SpecialChar LyX
3358
3359 \end_layout
3360
3361 \begin_layout Subsection
3362 Translating the graphical user interface (text messages).
3363 \end_layout
3364
3365 \begin_layout Standard
3366 \SpecialChar LyX
3367  uses the GNU 
3368 \begin_inset Flex Code
3369 status collapsed
3370
3371 \begin_layout Plain Layout
3372 gettext
3373 \end_layout
3374
3375 \end_inset
3376
3377  library to handle the internationalization of the interface.
3378  To have \SpecialChar LyX
3379  speak your favorite language in all menus and dialogs, you need
3380  a 
3381 \begin_inset Flex Code
3382 status collapsed
3383
3384 \begin_layout Plain Layout
3385 po
3386 \end_layout
3387
3388 \end_inset
3389
3390 -file for that language.
3391  When this is available, you'll have to generate a 
3392 \begin_inset Flex Code
3393 status collapsed
3394
3395 \begin_layout Plain Layout
3396 mo
3397 \end_layout
3398
3399 \end_inset
3400
3401 -file from it and install the 
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.
3412  The process of doing all of this is explained in the documentation for
3413  GNU 
3414 \begin_inset Flex Code
3415 status collapsed
3416
3417 \begin_layout Plain Layout
3418 gettext
3419 \end_layout
3420
3421 \end_inset
3422
3423 .
3424  It is possible to do this just for yourself, but if you're going to do
3425  it, you might as well share the results of your labors with the rest of
3426  the \SpecialChar LyX
3427  community.
3428  Send a message to the \SpecialChar LyX
3429  developers' list for more information about how
3430  to proceed.
3431 \end_layout
3432
3433 \begin_layout Standard
3434 In short, this is what you should do (xx denotes the language code):
3435 \end_layout
3436
3437 \begin_layout Itemize
3438 Check out the \SpecialChar LyX
3439  source code.
3440  (See the 
3441 \begin_inset CommandInset href
3442 LatexCommand href
3443 name "information on the web"
3444 target "https://www.lyx.org/HowToUseGIT"
3445 literal "false"
3446
3447 \end_inset
3448
3449 .)
3450 \end_layout
3451
3452 \begin_layout Itemize
3453 Copy the file 
3454 \begin_inset Flex Code
3455 status collapsed
3456
3457 \begin_layout Plain Layout
3458 lyx.pot
3459 \end_layout
3460
3461 \end_inset
3462
3463  to the folder of the 
3464 \begin_inset Flex Code
3465 status collapsed
3466
3467 \begin_layout Plain Layout
3468 **.po
3469 \end_layout
3470
3471 \end_inset
3472
3473  files.
3474  Then rename it to 
3475 \begin_inset Flex Code
3476 status collapsed
3477
3478 \begin_layout Plain Layout
3479 xx.po
3480 \end_layout
3481
3482 \end_inset
3483
3484 .
3485  (If 
3486 \begin_inset Flex Code
3487 status collapsed
3488
3489 \begin_layout Plain Layout
3490 lyx.pot
3491 \end_layout
3492
3493 \end_inset
3494
3495  doesn't exist anywhere, it can be remade with the console command 
3496 \begin_inset Flex Code
3497 status collapsed
3498
3499 \begin_layout Plain Layout
3500 make lyx.pot
3501 \end_layout
3502
3503 \end_inset
3504
3505  in that directory, or you can use an existing po-file for some other language
3506  as a template).
3507 \end_layout
3508
3509 \begin_layout Itemize
3510 Edit 
3511 \begin_inset Flex Code
3512 status collapsed
3513
3514 \begin_layout Plain Layout
3515 xx.po
3516 \end_layout
3517
3518 \end_inset
3519
3520 .
3521 \begin_inset Foot
3522 status collapsed
3523
3524 \begin_layout Plain Layout
3525 This is just a text file, so it can be edited in any text editor.
3526  But there are also specialized programs that support such editing, such
3527  as 
3528 \family typewriter
3529 Poedit
3530 \family default
3531  (for all platforms) or 
3532 \family typewriter
3533 KBabel
3534 \family default
3535  (for KDE).
3536  
3537 \family typewriter
3538 Emacs
3539 \family default
3540  contains a `mode' for editing 
3541 \begin_inset Flex Code
3542 status collapsed
3543
3544 \begin_layout Plain Layout
3545 po
3546 \end_layout
3547
3548 \end_inset
3549
3550  files, as well, see 
3551 \begin_inset Flex URL
3552 status open
3553
3554 \begin_layout Plain Layout
3555
3556 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3557 \end_layout
3558
3559 \end_inset
3560
3561 .
3562 \end_layout
3563
3564 \end_inset
3565
3566  For some menu- and widget-labels, there are also shortcut keys that should
3567  be translated.
3568  Those keys are marked after a `|', and should be translated according to
3569  the words and phrases of the language.
3570  You should also fill also out the information at the beginning of the new
3571  
3572 \begin_inset Flex Code
3573 status collapsed
3574
3575 \begin_layout Plain Layout
3576 po
3577 \end_layout
3578
3579 \end_inset
3580
3581 -file with your email-address, etc., so people know where to reach you with
3582  suggestions and entertaining flames.
3583 \end_layout
3584
3585 \begin_layout Standard
3586 If you are just doing this on your own, then:
3587 \end_layout
3588
3589 \begin_layout Itemize
3590 Generate 
3591 \begin_inset Flex Code
3592 status collapsed
3593
3594 \begin_layout Plain Layout
3595 xx.mo
3596 \end_layout
3597
3598 \end_inset
3599
3600 .
3601  This can be done with 
3602 \begin_inset Flex Code
3603 status collapsed
3604
3605 \begin_layout Plain Layout
3606 msgfmt -o xx.mo < xx.po
3607 \end_layout
3608
3609 \end_inset
3610
3611 .
3612 \end_layout
3613
3614 \begin_layout Itemize
3615 Copy the 
3616 \begin_inset Flex Code
3617 status collapsed
3618
3619 \begin_layout Plain Layout
3620 mo
3621 \end_layout
3622
3623 \end_inset
3624
3625 -file to your locale-tree, at the correct directory for application messages
3626  for the language
3627 \series bold
3628  
3629 \series default
3630 xx, and under the name 
3631 \begin_inset Flex Code
3632 status collapsed
3633
3634 \begin_layout Plain Layout
3635 lyx.mo
3636 \end_layout
3637
3638 \end_inset
3639
3640  (e.
3641 \begin_inset space \thinspace{}
3642 \end_inset
3643
3644 g.
3645 \begin_inset space \space{}
3646 \end_inset
3647
3648
3649 \begin_inset Flex Code
3650 status collapsed
3651
3652 \begin_layout Plain Layout
3653 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3654 \end_layout
3655
3656 \end_inset
3657
3658
3659 \series bold
3660 .
3661 \end_layout
3662
3663 \begin_layout Standard
3664 As said, however, it would be best if the new 
3665 \begin_inset Flex Code
3666 status collapsed
3667
3668 \begin_layout Plain Layout
3669 po
3670 \end_layout
3671
3672 \end_inset
3673
3674  file could be added to the \SpecialChar LyX
3675  distribution, so others can use it.
3676  Adding it involves making additional changes to \SpecialChar LyX
3677 .
3678  So send an email to the developers' mailing list if you're interested in
3679  doing that.
3680 \end_layout
3681
3682 \begin_layout Subsubsection
3683 Ambiguous messages
3684 \end_layout
3685
3686 \begin_layout Standard
3687 Sometimes it turns out that one English message needs to be translated into
3688  different messages in the target language.
3689  One example is the message 
3690 \begin_inset Flex Code
3691 status collapsed
3692
3693 \begin_layout Plain Layout
3694 To
3695 \end_layout
3696
3697 \end_inset
3698
3699  which has the German translation 
3700 \lang german
3701 Nach
3702 \lang english
3703  or 
3704 \lang german
3705 Bis
3706 \lang english
3707 , depending upon exactly what the English 
3708 \begin_inset Quotes eld
3709 \end_inset
3710
3711 to
3712 \begin_inset Quotes erd
3713 \end_inset
3714
3715  means.
3716  GNU 
3717 \begin_inset Flex Code
3718 status collapsed
3719
3720 \begin_layout Plain Layout
3721 gettext
3722 \end_layout
3723
3724 \end_inset
3725
3726  does not handle such ambiguous translations.
3727  Therefore you have to add some context information to the message: Instead
3728  of 
3729 \begin_inset Flex Code
3730 status collapsed
3731
3732 \begin_layout Plain Layout
3733 To
3734 \end_layout
3735
3736 \end_inset
3737
3738  it becomes 
3739 \begin_inset Flex Code
3740 status collapsed
3741
3742 \begin_layout Plain Layout
3743 To[[as in 'From format x to format y']]
3744 \end_layout
3745
3746 \end_inset
3747
3748  and 
3749 \begin_inset Flex Code
3750 status collapsed
3751
3752 \begin_layout Plain Layout
3753 To[[as in 'From page x to page y']].
3754 \end_layout
3755
3756 \end_inset
3757
3758  Now the two occurrences of 
3759 \begin_inset Flex Code
3760 status collapsed
3761
3762 \begin_layout Plain Layout
3763 To
3764 \end_layout
3765
3766 \end_inset
3767
3768  are different for 
3769 \begin_inset Flex Code
3770 status collapsed
3771
3772 \begin_layout Plain Layout
3773 gettext
3774 \end_layout
3775
3776 \end_inset
3777
3778  and can be translated correctly to 
3779 \lang german
3780 Nach
3781 \lang english
3782  and 
3783 \lang german
3784 Bis
3785 \lang english
3786 , respectively.
3787 \end_layout
3788
3789 \begin_layout Standard
3790 Of course the context information needs to be stripped off the original
3791  message when no translation is used.
3792  Therefore you have to put it in double square brackets at the end of the
3793  message (see the example above).
3794  The translation mechanism of \SpecialChar LyX
3795  ensures that everything in double square
3796  brackets at the end of messages is removed before displaying the message.
3797 \end_layout
3798
3799 \begin_layout Subsection
3800 Translating the documentation.
3801 \end_layout
3802
3803 \begin_layout Standard
3804 The online documentation (in the 
3805 \begin_inset Flex Noun
3806 status collapsed
3807
3808 \begin_layout Plain Layout
3809 Help
3810 \end_layout
3811
3812 \end_inset
3813
3814 -menu) can (and should!) be translated.
3815  If there are translated versions of the documentation available
3816 \begin_inset Foot
3817 status collapsed
3818
3819 \begin_layout Plain Layout
3820 As of March 2008, at least some of the documents have been translated into
3821  fourteen languages, with the Tutorial available in a few more.
3822 \end_layout
3823
3824 \end_inset
3825
3826  and the locale is set accordingly, these will be used automagically by
3827  \SpecialChar LyX
3828 .
3829  \SpecialChar LyX
3830  looks for translated versions as 
3831 \begin_inset Flex Code
3832 status collapsed
3833
3834 \begin_layout Plain Layout
3835 LyXDir/doc/xx/DocName.lyx
3836 \end_layout
3837
3838 \end_inset
3839
3840 , where 
3841 \begin_inset Flex Code
3842 status collapsed
3843
3844 \begin_layout Plain Layout
3845 xx
3846 \end_layout
3847
3848 \end_inset
3849
3850  is the code for the language currently in use.
3851  If there are no translated documents, the default English versions will
3852  be displayed.
3853  Note that the translated versions must have the same filenames (
3854 \begin_inset Flex Code
3855 status collapsed
3856
3857 \begin_layout Plain Layout
3858 DocName
3859 \end_layout
3860
3861 \end_inset
3862
3863  above) as the original.
3864  If you feel up to translating the documentation (an excellent way to proof-read
3865  the original documentation by the way!), there are a few things you should
3866  do right away:
3867 \end_layout
3868
3869 \begin_layout Itemize
3870 Check out the documentation translation web page at 
3871 \begin_inset CommandInset href
3872 LatexCommand href
3873 name "https://www.lyx.org/Translation"
3874 target "https://www.lyx.org/Translation"
3875 literal "false"
3876
3877 \end_inset
3878
3879 .
3880  That way, you can find out which (if any) documents have already been translate
3881 d into your language.
3882  You can also find out who (if anyone) is organizing the effort to translate
3883  the documentation into your language.
3884  If no one is organizing the effort, please let us know that you're interested.
3885 \end_layout
3886
3887 \begin_layout Standard
3888 Once you get to actually translating, here's a few hints for you that may
3889  save you trouble:
3890 \end_layout
3891
3892 \begin_layout Itemize
3893 Join the documentation team! There is information on how to do that in 
3894 \begin_inset Flex Code
3895 status collapsed
3896
3897 \begin_layout Plain Layout
3898 Intro.lyx
3899 \end_layout
3900
3901 \end_inset
3902
3903  (
3904 \begin_inset Flex Noun
3905 status collapsed
3906
3907 \begin_layout Plain Layout
3908 Help\SpecialChar menuseparator
3909 Introduction
3910 \end_layout
3911
3912 \end_inset
3913
3914 ), which by the way is the first document you should translate.
3915 \end_layout
3916
3917 \begin_layout Itemize
3918 Learn the typographic conventions for the language you are translating to.
3919  Typography is an ancient art and over the centuries, a great variety of
3920  conventions have developed throughout different parts of the world.
3921  Also study the professional terminology amongst typographers in your country.
3922  Inventing your own terminology will only confuse the users.
3923  
3924 \emph on
3925 (Warning! Typography is addictive!)
3926 \end_layout
3927
3928 \begin_layout Itemize
3929 Make a copy of the document.
3930  This will be your working copy.
3931  You can use this as your personal translated help-file by placing it in
3932  your 
3933 \begin_inset Flex Code
3934 status collapsed
3935
3936 \begin_layout Plain Layout
3937 UserDir/doc/xx/
3938 \end_layout
3939
3940 \end_inset
3941
3942  directory.
3943 \begin_inset Note Greyedout
3944 status open
3945
3946 \begin_layout Plain Layout
3947
3948 \series bold
3949 Note:
3950 \series default
3951  For a complex document with external material (images, etc.), if you make
3952  a copy e.
3953 \begin_inset space \thinspace{}
3954 \end_inset
3955
3956 g.
3957 \begin_inset space \space{}
3958 \end_inset
3959
3960 in a temp dir, beware that the links to external material may be broken
3961  when the document is moved to a different place.
3962  The best way is to retrieve the \SpecialChar LyX
3963  tree from git (see 
3964 \begin_inset Flex URL
3965 status collapsed
3966
3967 \begin_layout Plain Layout
3968
3969 https://www.lyx.org/HowToUseGIT
3970 \end_layout
3971
3972 \end_inset
3973
3974 ) and to edit the doc file in place.
3975 \end_layout
3976
3977 \end_inset
3978
3979
3980 \end_layout
3981
3982 \begin_layout Itemize
3983 Sometimes the original document (from the \SpecialChar LyX
3984  team) will be updated.
3985  Use the source viewer at 
3986 \begin_inset CommandInset href
3987 LatexCommand href
3988 name "https://www.lyx.org/trac/timeline"
3989 target "https://www.lyx.org/trac/timeline"
3990 literal "false"
3991
3992 \end_inset
3993
3994  to see what has been changed.
3995  That way you can easily see which parts of the translated document need
3996  to be updated.
3997 \end_layout
3998
3999 \begin_layout Standard
4000 If you ever find an error in the original document, fix it and notify the
4001  rest of the documentation team of the changes! (You didn't forget to join
4002  the documentation team, did you?)
4003 \end_layout
4004
4005 \begin_layout Standard
4006 \begin_inset Branch OutDated
4007 inverted 0
4008 status collapsed
4009
4010 \begin_layout Section
4011 International Keyboard Support
4012 \end_layout
4013
4014 \begin_layout Standard
4015
4016 \emph on
4017 [Editor's Note: The following section is by
4018 \emph default
4019  
4020 \shape smallcaps
4021 \emph on
4022 Ivan Schreter
4023 \shape default
4024 .
4025  It needs to be fixed to conform to the new Documentation Style sheet and
4026  to make use of the new v1.0 features.
4027  The whole thing also needs to be merged with the section following it.-jw
4028  It may also be badly out of date.-rh (2008)]
4029 \end_layout
4030
4031 \begin_layout Subsection
4032 Defining Own Keymaps: Keymap File Format
4033 \end_layout
4034
4035 \begin_layout Standard
4036 Let's look at a keyboard definition file a little closer.
4037  It is a plain text file defining
4038 \end_layout
4039
4040 \begin_layout Itemize
4041 key-to-key or key-to-string translations
4042 \end_layout
4043
4044 \begin_layout Itemize
4045 dead keys
4046 \end_layout
4047
4048 \begin_layout Itemize
4049 dead keys exceptions
4050 \end_layout
4051
4052 \begin_layout Standard
4053 To define key-to-key or key-to-string translation, use this command:
4054 \end_layout
4055
4056 \begin_layout Quotation
4057 \begin_inset Flex Code
4058 status collapsed
4059
4060 \begin_layout Plain Layout
4061
4062 \backslash
4063 kmap
4064 \end_layout
4065
4066 \end_inset
4067
4068  
4069 \begin_inset Flex Code
4070 status collapsed
4071
4072 \begin_layout Plain Layout
4073 key
4074 \end_layout
4075
4076 \end_inset
4077
4078  outstring 
4079 \end_layout
4080
4081 \begin_layout Standard
4082 where 
4083 \begin_inset Flex Code
4084 status collapsed
4085
4086 \begin_layout Plain Layout
4087 key
4088 \end_layout
4089
4090 \end_inset
4091
4092  is the key to be translated and 
4093 \begin_inset Flex Code
4094 status collapsed
4095
4096 \begin_layout Plain Layout
4097 outstring
4098 \end_layout
4099
4100 \end_inset
4101
4102  is the string to be inserted into the document.
4103  To define dead keys, use:
4104 \end_layout
4105
4106 \begin_layout Quotation
4107 \begin_inset Flex Code
4108 status collapsed
4109
4110 \begin_layout Plain Layout
4111
4112 \backslash
4113 kmod
4114 \end_layout
4115
4116 \end_inset
4117
4118  
4119 \begin_inset Flex Code
4120 status collapsed
4121
4122 \begin_layout Plain Layout
4123 key
4124 \end_layout
4125
4126 \end_inset
4127
4128  deadkey
4129 \end_layout
4130
4131 \begin_layout Standard
4132 where 
4133 \begin_inset Flex Code
4134 status collapsed
4135
4136 \begin_layout Plain Layout
4137 key
4138 \end_layout
4139
4140 \end_inset
4141
4142  is a keyboard key and 
4143 \begin_inset Flex Code
4144 status collapsed
4145
4146 \begin_layout Plain Layout
4147 deadkey
4148 \end_layout
4149
4150 \end_inset
4151
4152  is dead key name.
4153  The following dead keys are supported (shortcut name is in parentheses):
4154 \end_layout
4155
4156 \begin_layout Quotation
4157
4158 \emph on
4159 Name
4160 \begin_inset space \hfill{}
4161 \end_inset
4162
4163 Example
4164 \end_layout
4165
4166 \begin_layout Quotation
4167 acute (acu)
4168 \begin_inset space \hfill{}
4169 \end_inset
4170
4171 áéíóú
4172 \end_layout
4173
4174 \begin_layout Quotation
4175 grave (gra)
4176 \begin_inset space \hfill{}
4177 \end_inset
4178
4179 àèìòù
4180 \end_layout
4181
4182 \begin_layout Quotation
4183 macron (mac)
4184 \begin_inset space \hfill{}
4185 \end_inset
4186
4187  ō
4188 \end_layout
4189
4190 \begin_layout Quotation
4191 tilde (til)
4192 \begin_inset space \hfill{}
4193 \end_inset
4194
4195 ñÑ
4196 \end_layout
4197
4198 \begin_layout Quotation
4199 underbar (underb)
4200 \begin_inset space \hfill{}
4201 \end_inset
4202
4203
4204 \begin_inset ERT
4205 status open
4206
4207 \begin_layout Plain Layout
4208
4209
4210 \backslash
4211 b o
4212 \end_layout
4213
4214 \end_inset
4215
4216
4217 \end_layout
4218
4219 \begin_layout Quotation
4220 cedilla (ced)
4221 \begin_inset space \hfill{}
4222 \end_inset
4223
4224 çÇ
4225 \end_layout
4226
4227 \begin_layout Quotation
4228 underdot (underd)
4229 \begin_inset space \hfill{}
4230 \end_inset
4231
4232
4233 \begin_inset ERT
4234 status open
4235
4236 \begin_layout Plain Layout
4237
4238
4239 \backslash
4240 d o
4241 \end_layout
4242
4243 \end_inset
4244
4245
4246 \end_layout
4247
4248 \begin_layout Quotation
4249 circumflex (circu)
4250 \begin_inset space \hfill{}
4251 \end_inset
4252
4253 âêîôû
4254 \end_layout
4255
4256 \begin_layout Quotation
4257 circle (circl)
4258 \begin_inset space \hfill{}
4259 \end_inset
4260
4261 ÅůŮ
4262 \end_layout
4263
4264 \begin_layout Quotation
4265 tie (tie)
4266 \begin_inset space \hfill{}
4267 \end_inset
4268
4269
4270 \begin_inset ERT
4271 status open
4272
4273 \begin_layout Plain Layout
4274
4275
4276 \backslash
4277 t o
4278 \end_layout
4279
4280 \end_inset
4281
4282
4283 \end_layout
4284
4285 \begin_layout Quotation
4286 breve (bre)
4287 \begin_inset space \hfill{}
4288 \end_inset
4289
4290 ă
4291 \begin_inset ERT
4292 status open
4293
4294 \begin_layout Plain Layout
4295
4296
4297 \backslash
4298 u o
4299 \end_layout
4300
4301 \end_inset
4302
4303
4304 \end_layout
4305
4306 \begin_layout Quotation
4307 caron (car)
4308 \begin_inset space \hfill{}
4309 \end_inset
4310
4311 čšž
4312 \end_layout
4313
4314 \begin_layout Quotation
4315 hungarian umlaut (hug)
4316 \begin_inset space \hfill{}
4317 \end_inset
4318
4319 őű
4320 \end_layout
4321
4322 \begin_layout Quotation
4323 umlaut (uml)
4324 \begin_inset space \hfill{}
4325 \end_inset
4326
4327 äöü
4328 \end_layout
4329
4330 \begin_layout Quotation
4331 dot (dot)
4332 \begin_inset space \hfill{}
4333 \end_inset
4334
4335 ż
4336 \begin_inset ERT
4337 status open
4338
4339 \begin_layout Plain Layout
4340
4341
4342 \backslash
4343 .s
4344 \end_layout
4345
4346 \end_inset
4347
4348
4349 \end_layout
4350
4351 \begin_layout Standard
4352 Since in many international keyboards there are exceptions to what some
4353  dead keys should do, you can define them using
4354 \end_layout
4355
4356 \begin_layout Quotation
4357 \begin_inset Flex Code
4358 status collapsed
4359
4360 \begin_layout Plain Layout
4361
4362 \backslash
4363 kxmod
4364 \end_layout
4365
4366 \end_inset
4367
4368  deadkey key outstring
4369 \end_layout
4370
4371 \begin_layout Standard
4372 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4373 , so you put in
4374 \end_layout
4375
4376 \begin_layout Quotation
4377 \begin_inset Flex Code
4378 status collapsed
4379
4380 \begin_layout Plain Layout
4381
4382 \backslash
4383 kxmod
4384 \end_layout
4385
4386 \end_inset
4387
4388  caron o "
4389 \backslash
4390 ^o"
4391 \end_layout
4392
4393 \begin_layout Standard
4394 to make it work correctly.
4395  Also, you have to define as exceptions dead keys over i and j, to remove
4396  the dot from them before inserting an accent mark.
4397  I will change this when the time comes, but so far I haven't had time.
4398 \end_layout
4399
4400 \begin_layout Standard
4401 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4402  double backslash.
4403  Also, quotes and 
4404 \begin_inset Flex Code
4405 status collapsed
4406
4407 \begin_layout Plain Layout
4408 #
4409 \end_layout
4410
4411 \end_inset
4412
4413  have different meaning.
4414  
4415 \begin_inset Flex Code
4416 status collapsed
4417
4418 \begin_layout Plain Layout
4419 #
4420 \end_layout
4421
4422 \end_inset
4423
4424  marks comments, quotes start and end \SpecialChar LaTeX
4425 -style commands.
4426  To enter quote, you'll need to use 
4427 \begin_inset Flex Code
4428 status collapsed
4429
4430 \begin_layout Plain Layout
4431
4432 \backslash
4433 "
4434 \end_layout
4435
4436 \end_inset
4437
4438 , to enter 
4439 \begin_inset Flex Code
4440 status collapsed
4441
4442 \begin_layout Plain Layout
4443 #
4444 \end_layout
4445
4446 \end_inset
4447
4448 , use 
4449 \begin_inset Flex Code
4450 status collapsed
4451
4452 \begin_layout Plain Layout
4453
4454 \backslash
4455 #
4456 \end_layout
4457
4458 \end_inset
4459
4460 .
4461 \end_layout
4462
4463 \begin_layout Standard
4464 If you make a keyboard description file that works for your language, please
4465  mail it to me, so I can include it in the next keymap distribution.
4466 \end_layout
4467
4468 \begin_layout Standard
4469 More keywords will be supported in keymap configuration file in future,
4470  like
4471 \end_layout
4472
4473 \begin_layout Itemize
4474 \begin_inset Flex Code
4475 status collapsed
4476
4477 \begin_layout Plain Layout
4478
4479 \backslash
4480 kinclude filename
4481 \end_layout
4482
4483 \end_inset
4484
4485
4486 \emph on
4487
4488 \begin_inset space \hfill{}
4489 \end_inset
4490
4491
4492 \begin_inset Flex Code
4493 status collapsed
4494
4495 \begin_layout Plain Layout
4496 include
4497 \end_layout
4498
4499 \end_inset
4500
4501  another file
4502 \end_layout
4503
4504 \begin_layout Itemize
4505 \begin_inset Flex Code
4506 status collapsed
4507
4508 \begin_layout Plain Layout
4509
4510 \backslash
4511 kprog program
4512 \end_layout
4513
4514 \end_inset
4515
4516
4517 \emph on
4518
4519 \begin_inset space \hfill{}
4520 \end_inset
4521
4522
4523 \begin_inset Flex Code
4524 status collapsed
4525
4526 \begin_layout Plain Layout
4527 define
4528 \end_layout
4529
4530 \end_inset
4531
4532  an external keymap translation program 
4533 \end_layout
4534
4535 \begin_layout Standard
4536 Also, it should look into 
4537 \begin_inset Flex Code
4538 status collapsed
4539
4540 \begin_layout Plain Layout
4541 lyxrc
4542 \end_layout
4543
4544 \end_inset
4545
4546  file for defaults, too (for example, a 
4547 \begin_inset Flex Code
4548 status collapsed
4549
4550 \begin_layout Plain Layout
4551
4552 \backslash
4553 kinclude
4554 \end_layout
4555
4556 \end_inset
4557
4558  option to include default keyboard).
4559 \end_layout
4560
4561 \end_inset
4562
4563
4564 \end_layout
4565
4566 \begin_layout Section
4567 International Keymap Stuff
4568 \begin_inset CommandInset label
4569 LatexCommand label
4570 name "sec:International-Keymap-Stuff"
4571
4572 \end_inset
4573
4574
4575 \end_layout
4576
4577 \begin_layout Standard
4578 \begin_inset Note Note
4579 status open
4580
4581 \begin_layout Plain Layout
4582 In doing the revisions on this document in March 2008, I did not look over
4583  this stuff, as I do not understand it.
4584  It would be good if someone else could do so.
4585  (RH)
4586 \end_layout
4587
4588 \end_inset
4589
4590
4591 \end_layout
4592
4593 \begin_layout Standard
4594 The next two sections describe the 
4595 \begin_inset Flex Code
4596 status collapsed
4597
4598 \begin_layout Plain Layout
4599
4600 \shape up
4601 .kmap
4602 \end_layout
4603
4604 \end_inset
4605
4606  and 
4607 \begin_inset Flex Code
4608 status collapsed
4609
4610 \begin_layout Plain Layout
4611
4612 \shape up
4613 .cdef
4614 \end_layout
4615
4616 \end_inset
4617
4618  file syntax in detail.
4619  These sections should help you design your own key map if the ones provided
4620  do not meet your needs.
4621 \end_layout
4622
4623 \begin_layout Subsection
4624 The .kmap File
4625 \end_layout
4626
4627 \begin_layout Standard
4628
4629 \shape up
4630 .
4631 \begin_inset Flex Code
4632 status collapsed
4633
4634 \begin_layout Plain Layout
4635 kmap
4636 \end_layout
4637
4638 \end_inset
4639
4640  file maps keystrokes to characters or strings.
4641  As the name suggests, it sets a keyboard mapping.
4642  The 
4643 \begin_inset Flex Code
4644 status collapsed
4645
4646 \begin_layout Plain Layout
4647 .kmap
4648 \end_layout
4649
4650 \end_inset
4651
4652
4653 \shape default
4654  file keywords 
4655 \shape up
4656
4657 \begin_inset Flex Code
4658 status collapsed
4659
4660 \begin_layout Plain Layout
4661
4662 \shape up
4663 kmap
4664 \end_layout
4665
4666 \end_inset
4667
4668
4669 \shape default
4670 ,
4671 \shape up
4672  
4673 \shape default
4674
4675 \begin_inset Flex Code
4676 status collapsed
4677
4678 \begin_layout Plain Layout
4679
4680 \shape up
4681 kmod
4682 \end_layout
4683
4684 \end_inset
4685
4686 ,
4687 \shape up
4688  
4689 \shape default
4690
4691 \begin_inset Flex Code
4692 status collapsed
4693
4694 \begin_layout Plain Layout
4695
4696 \shape up
4697 kxmod
4698 \end_layout
4699
4700 \end_inset
4701
4702 , and 
4703 \begin_inset Flex Code
4704 status collapsed
4705
4706 \begin_layout Plain Layout
4707
4708 \shape up
4709 kcomb
4710 \end_layout
4711
4712 \end_inset
4713
4714  are described in this section.
4715 \end_layout
4716
4717 \begin_layout Labeling
4718 \labelwidthstring 00.00.0000
4719 \begin_inset Flex Code
4720 status collapsed
4721
4722 \begin_layout Plain Layout
4723
4724 \shape up
4725 kmap
4726 \end_layout
4727
4728 \end_inset
4729
4730  Map a character to a string
4731 \end_layout
4732
4733 \begin_layout LyX-Code
4734
4735 \backslash
4736 kmap 
4737 \family roman
4738 \emph on
4739 char
4740 \family default
4741 \emph default
4742  
4743 \family roman
4744 \emph on
4745 string
4746 \end_layout
4747
4748 \begin_layout Standard
4749 This will ma
4750 \family roman
4751 p
4752 \family default
4753  
4754 \family roman
4755 \emph on
4756 char
4757 \family default
4758 \emph default
4759  
4760 \family roman
4761 to
4762 \family default
4763  
4764 \family roman
4765 \emph on
4766 string
4767 \emph default
4768 .
4769  Note that in
4770 \family default
4771  
4772 \family roman
4773 \emph on
4774 string
4775 \emph default
4776 ,
4777 \family default
4778  
4779 \family roman
4780 \shape up
4781 the double-quote (")
4782 \family default
4783 \shape default
4784  
4785 \family roman
4786 and
4787 \family default
4788  
4789 \family roman
4790 \shape up
4791 the backslash (
4792 \backslash
4793 )
4794 \family default
4795 \shape default
4796  
4797 \family roman
4798 must be escaped with a preceding backslash (
4799 \shape up
4800
4801 \backslash
4802
4803 \shape default
4804 )
4805 \family default
4806 .
4807 \end_layout
4808
4809 \begin_layout Standard
4810 An example of a 
4811 \begin_inset Flex Noun
4812 status collapsed
4813
4814 \begin_layout Plain Layout
4815
4816 \shape up
4817 kmap
4818 \end_layout
4819
4820 \end_inset
4821
4822  statement to cause the symbol 
4823 \begin_inset Flex Noun
4824 status collapsed
4825
4826 \begin_layout Plain Layout
4827
4828 \shape up
4829 /
4830 \end_layout
4831
4832 \end_inset
4833
4834  to be output for the keystroke 
4835 \begin_inset Flex Noun
4836 status collapsed
4837
4838 \begin_layout Plain Layout
4839
4840 \shape up
4841 &
4842 \end_layout
4843
4844 \end_inset
4845
4846  is:
4847 \end_layout
4848
4849 \begin_layout LyX-Code
4850
4851 \backslash
4852 kmap & /
4853 \end_layout
4854
4855 \begin_layout Labeling
4856 \labelwidthstring 00.00.0000
4857 \begin_inset Flex Code
4858 status collapsed
4859
4860 \begin_layout Plain Layout
4861
4862 \shape up
4863 kmod
4864 \end_layout
4865
4866 \end_inset
4867
4868  Specify an accent character
4869 \end_layout
4870
4871 \begin_layout LyX-Code
4872
4873 \backslash
4874 kmod 
4875 \family roman
4876 \emph on
4877 char accent allowed
4878 \end_layout
4879
4880 \begin_layout Standard
4881 This will make the cha
4882 \family roman
4883 racter
4884 \family default
4885  
4886 \family roman
4887 \emph on
4888 char
4889 \family default
4890 \emph default
4891  
4892 \family roman
4893 \shape up
4894 \emph on
4895 be an accent
4896 \family default
4897 \shape default
4898 \emph default
4899  
4900 \family roman
4901 \shape up
4902 on the
4903 \family default
4904 \shape default
4905  
4906 \family roman
4907 \shape up
4908 \emph on
4909 allowed
4910 \family default
4911 \shape default
4912 \emph default
4913  
4914 \family roman
4915 \shape up
4916 cha
4917 \family default
4918 racter(s).
4919  This is the dead key
4920 \begin_inset Foot
4921 status collapsed
4922
4923 \begin_layout Plain Layout
4924 The term 
4925 \family roman
4926 \emph on
4927 dead key
4928 \family default
4929 \emph default
4930  refers to a key that does not produce a character by itself, but when followed
4931  with another key, produces the desired accent character.
4932  For example, a German characte
4933 \family roman
4934 r with an umlaut like
4935 \family default
4936  
4937 \family roman
4938 \emph on
4939 ä
4940 \family default
4941 \emph default
4942  
4943 \family roman
4944 can be produced in this manner.
4945 \end_layout
4946
4947 \end_inset
4948
4949  mechanism.
4950  
4951 \end_layout
4952
4953 \begin_layout Standard
4954 If you 
4955 \family roman
4956 hit
4957 \family default
4958  
4959 \family roman
4960 \emph on
4961 char
4962 \family default
4963 \emph default
4964  
4965 \family roman
4966 and then another key not in
4967 \family default
4968  
4969 \family roman
4970 \emph on
4971 allowed
4972 \emph default
4973 , you will get a
4974 \family default
4975  
4976 \family roman
4977 \emph on
4978 char
4979 \family default
4980 \emph default
4981  
4982 \family roman
4983 followed by the other, not allowed key, as output.
4984
4985 \family default
4986  Note that a 
4987 \begin_inset Flex Noun
4988 status collapsed
4989
4990 \begin_layout Plain Layout
4991
4992 \shape up
4993 Backspace
4994 \end_layout
4995
4996 \end_inset
4997
4998  cancels a dead key, so if 
4999 \family roman
5000 you hit
5001 \family default
5002  
5003 \family roman
5004 \emph on
5005 char
5006 \family default
5007 \emph default
5008  
5009 \begin_inset Flex Noun
5010 status collapsed
5011
5012 \begin_layout Plain Layout
5013
5014 \shape up
5015 \emph on
5016 Backspace
5017 \end_layout
5018
5019 \end_inset
5020
5021 , the cursor will not go one position backwards but will instead cancel
5022  the effect t
5023 \family roman
5024 hat
5025 \family default
5026  
5027 \family roman
5028 \shape up
5029 \emph on
5030 char
5031 \family default
5032 \shape default
5033 \emph default
5034  
5035 \family roman
5036 \shape up
5037 might have had on the next keystroke.
5038  
5039 \end_layout
5040
5041 \begin_layout Standard
5042 The following example specifies that the character ' is to be an acute accent,
5043  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
5044 \end_layout
5045
5046 \begin_layout LyX-Code
5047
5048 \backslash
5049 kmod ' acute aeiouAEIOU
5050 \end_layout
5051
5052 \begin_layout Labeling
5053 \labelwidthstring 00.00.0000
5054 \begin_inset Flex Code
5055 status collapsed
5056
5057 \begin_layout Plain Layout
5058 kxmod
5059 \end_layout
5060
5061 \end_inset
5062
5063  Specify an exception to the accent character
5064 \end_layout
5065
5066 \begin_layout LyX-Code
5067
5068 \backslash
5069 kxmod  
5070 \family roman
5071 \emph on
5072 accent char result
5073 \end_layout
5074
5075 \begin_layout Standard
5076 This defines an exce
5077 \family roman
5078 ption for
5079 \family default
5080  
5081 \family roman
5082 \emph on
5083 accent
5084 \family default
5085 \emph default
5086  
5087 \family roman
5088 on
5089 \family default
5090  
5091 \family roman
5092 \emph on
5093 char
5094 \emph default
5095 .
5096  T
5097 \shape up
5098 he
5099 \family default
5100 \shape default
5101  
5102 \family roman
5103 \shape up
5104 \emph on
5105 accent
5106 \family default
5107 \shape default
5108 \emph default
5109  
5110 \family roman
5111 \shape up
5112 must
5113 \family default
5114 \shape default
5115  
5116 \shape up
5117 have been assigned a keystroke with a previous
5118 \shape default
5119  
5120 \begin_inset Flex Code
5121 status collapsed
5122
5123 \begin_layout Plain Layout
5124
5125 \shape up
5126
5127 \backslash
5128 kmo
5129 \shape default
5130 d
5131 \end_layout
5132
5133 \end_inset
5134
5135  declar
5136 \family roman
5137 ation and
5138 \family default
5139  
5140 \family roman
5141 \emph on
5142 char
5143 \family default
5144 \emph default
5145  
5146 \family roman
5147 must not belong in the
5148 \family default
5149  
5150 \family roman
5151 \emph on
5152 allowed
5153 \family default
5154 \emph default
5155  
5156 \family roman
5157 set of
5158 \family default
5159  
5160 \family roman
5161 \emph on
5162 accent
5163 \emph default
5164 .
5165  When
5166 \family default
5167  
5168 \family roman
5169 \shape up
5170 you enter the
5171 \family default
5172 \shape default
5173  
5174 \family roman
5175 \shape up
5176 \emph on
5177 accent char
5178 \family default
5179 \shape default
5180 \emph default
5181  
5182 \family roman
5183 \shape up
5184 sequence,
5185 \family default
5186 \shape default
5187  
5188 \family roman
5189 \shape up
5190 \emph on
5191 result
5192 \emph default
5193  is produced.
5194  If such a declaration does not exist in
5195 \family default
5196 \shape default
5197  
5198 \shape up
5199 the
5200 \shape default
5201  
5202 \begin_inset Flex Code
5203 status collapsed
5204
5205 \begin_layout Plain Layout
5206
5207 \shape up
5208 .kmap
5209 \end_layout
5210
5211 \end_inset
5212
5213  file and yo
5214 \family roman
5215 u enter
5216 \family default
5217  
5218 \family roman
5219 \emph on
5220 accent char
5221 \emph default
5222 , you get
5223 \family default
5224  
5225 \family roman
5226 \emph on
5227 accent_key char
5228 \emph default
5229  where
5230 \family default
5231  
5232 \family roman
5233 \emph on
5234 accent_key
5235 \emph default
5236  is the first arg
5237 \family default
5238 ument of the 
5239 \begin_inset Flex Code
5240 status collapsed
5241
5242 \begin_layout Plain Layout
5243
5244 \shape up
5245
5246 \backslash
5247 kmod
5248 \end_layout
5249
5250 \end_inset
5251
5252  declaration.
5253  
5254 \end_layout
5255
5256 \begin_layout Standard
5257 The following command produces causes äi to be produced when you enter acute-i
5258  ('i):
5259 \end_layout
5260
5261 \begin_layout LyX-Code
5262
5263 \backslash
5264 kxmod acute i "
5265 \backslash
5266
5267 \backslash
5268 '{
5269 \backslash
5270
5271 \backslash
5272 i}"
5273 \end_layout
5274
5275 \begin_layout Labeling
5276 \labelwidthstring 00.00.0000
5277 \begin_inset Flex Code
5278 status collapsed
5279
5280 \begin_layout Plain Layout
5281 kcomb
5282 \end_layout
5283
5284 \end_inset
5285
5286  Combine two accent characters
5287 \end_layout
5288
5289 \begin_layout LyX-Code
5290
5291 \backslash
5292 kcomb 
5293 \family roman
5294 \emph on
5295 accent1 accent2 allowed
5296 \end_layout
5297
5298 \begin_layout Standard
5299 This one is getting pretty esoteric.
5300  It allows you to combine the effect 
5301 \family roman
5302 of
5303 \family default
5304  
5305 \family roman
5306 \emph on
5307 accent1
5308 \family default
5309 \emph default
5310  
5311 \family roman
5312 and
5313 \family default
5314  
5315 \family roman
5316 \emph on
5317 accent2
5318 \family default
5319 \emph default
5320  
5321 \family roman
5322 (in that order!) on
5323 \family default
5324  
5325 \family roman
5326 \emph on
5327 allowed
5328 \family default
5329 \emph default
5330  
5331 \family roman
5332 chars.
5333  The keystrokes for
5334 \family default
5335  
5336 \family roman
5337 \emph on
5338 accent1
5339 \family default
5340 \emph default
5341  
5342 \family roman
5343 and
5344 \family default
5345  
5346 \family roman
5347 \emph on
5348 accent2
5349 \family default
5350 \emph default
5351  
5352 \family roman
5353 must have be
5354 \family default
5355 en set with a 
5356 \begin_inset Flex Code
5357 status collapsed
5358
5359 \begin_layout Plain Layout
5360
5361 \shape up
5362
5363 \backslash
5364 kmod
5365 \end_layout
5366
5367 \end_inset
5368
5369  command at 
5370 \family roman
5371 a
5372 \family default
5373  
5374 \family roman
5375 \emph on
5376 previous
5377 \family default
5378 \emph default
5379  
5380 \family roman
5381 point in the
5382 \family default
5383  file.
5384  
5385 \end_layout
5386
5387 \begin_layout Standard
5388 Consider this example from the 
5389 \begin_inset Flex Code
5390 status collapsed
5391
5392 \begin_layout Plain Layout
5393
5394 \shape up
5395 greek.kmap
5396 \end_layout
5397
5398 \end_inset
5399
5400  file:
5401 \end_layout
5402
5403 \begin_layout LyX-Code
5404
5405 \backslash
5406 kmod ; acute aeioyvhAEIOYVH 
5407 \backslash
5408 kmod : umlaut iyIY 
5409 \backslash
5410 kcomb acute umlaut iyIY
5411 \end_layout
5412
5413 \begin_layout Standard
5414 This allows you to press 
5415 \begin_inset Flex Noun
5416 status collapsed
5417
5418 \begin_layout Plain Layout
5419
5420 \shape up
5421 ;:i
5422 \end_layout
5423
5424 \end_inset
5425
5426  and get the effect of 
5427 \begin_inset Flex Code
5428 status collapsed
5429
5430 \begin_layout Plain Layout
5431
5432 \shape up
5433
5434 \backslash
5435 '{
5436 \backslash
5437 "{i}}
5438 \end_layout
5439
5440 \end_inset
5441
5442 .
5443  
5444 \family roman
5445 \shape up
5446 A backspace
5447 \family default
5448 \shape default
5449  in this case cancels the last dead key, so if you press 
5450 \begin_inset Flex Noun
5451 status collapsed
5452
5453 \begin_layout Plain Layout
5454
5455 \shape up
5456 ;: Backspace i
5457 \end_layout
5458
5459 \end_inset
5460
5461  you get 
5462 \begin_inset Flex Code
5463 status collapsed
5464
5465 \begin_layout Plain Layout
5466
5467 \shape up
5468
5469 \backslash
5470 '{i}
5471 \end_layout
5472
5473 \end_inset
5474
5475 .
5476 \end_layout
5477
5478 \begin_layout Subsection
5479 The .cdef File
5480 \end_layout
5481
5482 \begin_layout Standard
5483 After the 
5484 \begin_inset Flex Code
5485 status collapsed
5486
5487 \begin_layout Plain Layout
5488
5489 \shape up
5490 .kmap
5491 \end_layout
5492
5493 \end_inset
5494
5495  mapping is performed, a 
5496 \begin_inset Flex Code
5497 status collapsed
5498
5499 \begin_layout Plain Layout
5500
5501 \shape up
5502 .cde
5503 \shape default
5504 f
5505 \end_layout
5506
5507 \end_inset
5508
5509  file maps the strings that the symbols generate to characters in the current
5510  font.
5511  The \SpecialChar LyX
5512  distribution currently includes at least the 
5513 \begin_inset Flex Code
5514 status collapsed
5515
5516 \begin_layout Plain Layout
5517
5518 \shape up
5519 iso8859-1.cdef
5520 \end_layout
5521
5522 \end_inset
5523
5524  and 
5525 \begin_inset Flex Code
5526 status collapsed
5527
5528 \begin_layout Plain Layout
5529
5530 \shape up
5531 iso8859-2.cdef
5532 \end_layout
5533
5534 \end_inset
5535
5536  files.
5537 \end_layout
5538
5539 \begin_layout Standard
5540 In general the 
5541 \begin_inset Flex Code
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545
5546 \shape up
5547 .cdef
5548 \end_layout
5549
5550 \end_inset
5551
5552  file is a sequence of declarations of the form
5553 \end_layout
5554
5555 \begin_layout LyX-Code
5556
5557 \family roman
5558 \emph on
5559 char_index_in_set
5560 \family default
5561 \emph default
5562  
5563 \family roman
5564 \emph on
5565  string
5566 \end_layout
5567
5568 \begin_layout Standard
5569 For example, in order to map 
5570 \begin_inset Flex Noun
5571 status collapsed
5572
5573 \begin_layout Plain Layout
5574
5575 \shape up
5576
5577 \backslash
5578 '{e}
5579 \end_layout
5580
5581 \end_inset
5582
5583  to the corresponding character in the iso-8859-1 set (233), the following
5584  declaration is used
5585 \end_layout
5586
5587 \begin_layout LyX-Code
5588 233 "
5589 \backslash
5590
5591 \backslash
5592 '{e}"
5593 \end_layout
5594
5595 \begin_layout Standard
5596 with 
5597 \begin_inset Flex Code
5598 status collapsed
5599
5600 \begin_layout Plain Layout
5601
5602 \backslash
5603
5604 \end_layout
5605
5606 \end_inset
5607
5608  and 
5609 \begin_inset Flex Code
5610 status collapsed
5611
5612 \begin_layout Plain Layout
5613 "
5614 \end_layout
5615
5616 \end_inset
5617
5618  being escap
5619 \family roman
5620 ed in
5621 \family default
5622  
5623 \family roman
5624 \emph on
5625 string
5626 \emph default
5627 .
5628  Note that
5629 \family default
5630  the same character can apply to more than one string.
5631  In the 
5632 \begin_inset Flex Code
5633 status collapsed
5634
5635 \begin_layout Plain Layout
5636 i
5637 \shape up
5638 so-8859-7.cdef
5639 \end_layout
5640
5641 \end_inset
5642
5643  file you have
5644 \end_layout
5645
5646 \begin_layout LyX-Code
5647 192 "
5648 \backslash
5649
5650 \backslash
5651 '{
5652 \backslash
5653
5654 \backslash
5655
5656 \backslash
5657 "{i}}"
5658 \begin_inset Newline newline
5659 \end_inset
5660
5661 192 "
5662 \backslash
5663
5664 \backslash
5665
5666 \backslash
5667 "{
5668 \backslash
5669
5670 \backslash
5671 '{i}}"
5672 \end_layout
5673
5674 \begin_layout Standard
5675 If \SpecialChar LyX
5676  cannot find a mapping for the string produced by the keystroke or a
5677  deadkey sequence, it will check if it looks like an accented char and try
5678  to draw an accent over the character on screen.
5679 \end_layout
5680
5681 \begin_layout Subsection
5682 Dead Keys
5683 \end_layout
5684
5685 \begin_layout Standard
5686 There is a second way to add support for international characters through
5687  so-called dead-keys.
5688  A dead-key works in combination with a letter to produce an accented character.
5689  Here, we'll explain how to create a really simple dead-key to illustrate
5690  how they work.
5691 \end_layout
5692
5693 \begin_layout Standard
5694 Suppose you happen to need the circumflex character, 
5695 \begin_inset Quotes eld
5696 \end_inset
5697
5698  ̂
5699 \begin_inset Quotes erd
5700 \end_inset
5701
5702 .
5703  You could bind the 
5704 \begin_inset Flex Noun
5705 status collapsed
5706
5707 \begin_layout Plain Layout
5708 ^
5709 \end_layout
5710
5711 \end_inset
5712
5713 -key [a.k.a.
5714 \begin_inset space ~
5715 \end_inset
5716
5717
5718 \begin_inset Flex Noun
5719 status collapsed
5720
5721 \begin_layout Plain Layout
5722 Shift-6
5723 \end_layout
5724
5725 \end_inset
5726
5727 ] to the \SpecialChar LyX
5728  command 
5729 \begin_inset Flex Code
5730 status collapsed
5731
5732 \begin_layout Plain Layout
5733 accent-circumflex
5734 \end_layout
5735
5736 \end_inset
5737
5738  in your 
5739 \begin_inset Flex Code
5740 status collapsed
5741
5742 \begin_layout Plain Layout
5743 lyxrc
5744 \end_layout
5745
5746 \end_inset
5747
5748  file.
5749  Now, whenever you type the 
5750 \begin_inset Flex Noun
5751 status collapsed
5752
5753 \begin_layout Plain Layout
5754 ^
5755 \end_layout
5756
5757 \end_inset
5758
5759 -key followed by a letter, that letter will have a circumflex accent on
5760  it.
5761  For example, the sequence 
5762 \begin_inset Quotes eld
5763 \end_inset
5764
5765
5766 \begin_inset Flex Noun
5767 status collapsed
5768
5769 \begin_layout Plain Layout
5770 ^e
5771 \end_layout
5772
5773 \end_inset
5774
5775
5776 \begin_inset Quotes erd
5777 \end_inset
5778
5779  produces the letter: 
5780 \begin_inset Quotes eld
5781 \end_inset
5782
5783 ê
5784 \begin_inset Quotes erd
5785 \end_inset
5786
5787 .
5788  If you tried to type 
5789 \begin_inset Quotes eld
5790 \end_inset
5791
5792
5793 \begin_inset Flex Noun
5794 status collapsed
5795
5796 \begin_layout Plain Layout
5797 ^t
5798 \end_layout
5799
5800 \end_inset
5801
5802
5803 \begin_inset Quotes erd
5804 \end_inset
5805
5806 , however, \SpecialChar LyX
5807  will complain with a beep, since a 
5808 \begin_inset Quotes eld
5809 \end_inset
5810
5811
5812 \begin_inset Flex Noun
5813 status collapsed
5814
5815 \begin_layout Plain Layout
5816 t
5817 \end_layout
5818
5819 \end_inset
5820
5821
5822 \begin_inset Quotes erd
5823 \end_inset
5824
5825  never takes a circumflex accent.
5826  Hitting 
5827 \begin_inset Flex Noun
5828 status collapsed
5829
5830 \begin_layout Plain Layout
5831 Space
5832 \end_layout
5833
5834 \end_inset
5835
5836  after a dead-key produces the bare-accent.
5837  Please note this last point! If you bind a key to a dead-key, you'll need
5838  to rebind the character on that key to yet another key.
5839  Binding the 
5840 \begin_inset Flex Noun
5841 status collapsed
5842
5843 \begin_layout Plain Layout
5844 ,-key
5845 \end_layout
5846
5847 \end_inset
5848
5849  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5850 \end_layout
5851
5852 \begin_layout Standard
5853 One common way to bind dead-keys is to use 
5854 \begin_inset Flex Noun
5855 status collapsed
5856
5857 \begin_layout Plain Layout
5858 Meta-
5859 \end_layout
5860
5861 \end_inset
5862
5863
5864 \begin_inset Flex Noun
5865 status collapsed
5866
5867 \begin_layout Plain Layout
5868 Ctrl-
5869 \end_layout
5870
5871 \end_inset
5872
5873 , and 
5874 \begin_inset Flex Noun
5875 status collapsed
5876
5877 \begin_layout Plain Layout
5878 Shift-
5879 \end_layout
5880
5881 \end_inset
5882
5883  in combination with an accent, like 
5884 \begin_inset Quotes eld
5885 \end_inset
5886
5887
5888 \begin_inset Flex Noun
5889 status collapsed
5890
5891 \begin_layout Plain Layout
5892 ~
5893 \end_layout
5894
5895 \end_inset
5896
5897
5898 \begin_inset Quotes erd
5899 \end_inset
5900
5901  or 
5902 \begin_inset Quotes eld
5903 \end_inset
5904
5905
5906 \begin_inset Flex Noun
5907 status collapsed
5908
5909 \begin_layout Plain Layout
5910 ,
5911 \end_layout
5912
5913 \end_inset
5914
5915
5916 \begin_inset Quotes erd
5917 \end_inset
5918
5919  or 
5920 \begin_inset Quotes eld
5921 \end_inset
5922
5923
5924 \begin_inset Flex Noun
5925 status collapsed
5926
5927 \begin_layout Plain Layout
5928 ^
5929 \end_layout
5930
5931 \end_inset
5932
5933
5934 \begin_inset Quotes erd
5935 \end_inset
5936
5937 .
5938  Another way involves using 
5939 \begin_inset Flex Code
5940 status collapsed
5941
5942 \begin_layout Plain Layout
5943 xmodmap
5944 \end_layout
5945
5946 \end_inset
5947
5948  and 
5949 \begin_inset Flex Code
5950 status collapsed
5951
5952 \begin_layout Plain Layout
5953 xkeycaps
5954 \end_layout
5955
5956 \end_inset
5957
5958  to set up the special 
5959 \begin_inset Flex Code
5960 status collapsed
5961
5962 \begin_layout Plain Layout
5963 Mode_Switch
5964 \end_layout
5965
5966 \end_inset
5967
5968  key.
5969  The 
5970 \begin_inset Flex Code
5971 status collapsed
5972
5973 \begin_layout Plain Layout
5974 Mode_Switch
5975 \end_layout
5976
5977 \end_inset
5978
5979  acts in some ways just like 
5980 \begin_inset Flex Noun
5981 status collapsed
5982
5983 \begin_layout Plain Layout
5984 Shift
5985 \end_layout
5986
5987 \end_inset
5988
5989  and permits you to bind keys to accented characters.
5990  You can also turn keys into dead-keys by binding them to something like
5991  
5992 \begin_inset Flex Code
5993 status collapsed
5994
5995 \begin_layout Plain Layout
5996 usldead_cedilla
5997 \end_layout
5998
5999 \end_inset
6000
6001  and then binding this symbolic key to the corresponding \SpecialChar LyX
6002  command.
6003 \begin_inset Foot
6004 status collapsed
6005
6006 \begin_layout Plain Layout
6007 Note from 
6008 \noun on
6009 John Weiss
6010 \noun default
6011 : This is exactly what I do in my 
6012 \begin_inset Flex Code
6013 status collapsed
6014
6015 \begin_layout Plain Layout
6016 ~/.lyx/lyxrc
6017 \end_layout
6018
6019 \end_inset
6020
6021  and my 
6022 \begin_inset Flex Code
6023 status collapsed
6024
6025 \begin_layout Plain Layout
6026 ~/.xmodmap
6027 \end_layout
6028
6029 \end_inset
6030
6031  files.
6032  I have my 
6033 \begin_inset Flex Noun
6034 status collapsed
6035
6036 \begin_layout Plain Layout
6037 Scroll
6038 \begin_inset space ~
6039 \end_inset
6040
6041 Lock
6042 \end_layout
6043
6044 \end_inset
6045
6046  key set up as 
6047 \begin_inset Flex Code
6048 status collapsed
6049
6050 \begin_layout Plain Layout
6051 Mode_Shift
6052 \end_layout
6053
6054 \end_inset
6055
6056  and a bunch of these 
6057 \begin_inset Quotes eld
6058 \end_inset
6059
6060
6061 \begin_inset Flex Code
6062 status collapsed
6063
6064 \begin_layout Plain Layout
6065 usldead_*
6066 \end_layout
6067
6068 \end_inset
6069
6070
6071 \begin_inset Quotes erd
6072 \end_inset
6073
6074  symbolic keys bound such things as 
6075 \begin_inset Flex Noun
6076 status collapsed
6077
6078 \begin_layout Plain Layout
6079 Scroll
6080 \begin_inset space ~
6081 \end_inset
6082
6083 Lock-^
6084 \end_layout
6085
6086 \end_inset
6087
6088  and 
6089 \begin_inset Flex Noun
6090 status collapsed
6091
6092 \begin_layout Plain Layout
6093 Scroll
6094 \begin_inset space ~
6095 \end_inset
6096
6097 Lock-~
6098 \end_layout
6099
6100 \end_inset
6101
6102 .
6103  This is how I produce my accented characters.
6104 \end_layout
6105
6106 \end_inset
6107
6108  You can make just about anything into the 
6109 \begin_inset Flex Code
6110 status collapsed
6111
6112 \begin_layout Plain Layout
6113 Mode_Switch
6114 \end_layout
6115
6116 \end_inset
6117
6118  key: One of the 
6119 \begin_inset Flex Noun
6120 status collapsed
6121
6122 \begin_layout Plain Layout
6123 Ctrl-
6124 \end_layout
6125
6126 \end_inset
6127
6128  keys, a spare function key, etc.
6129  As for the \SpecialChar LyX
6130  commands that produce accents, check the entry for 
6131 \begin_inset Flex Code
6132 status collapsed
6133
6134 \begin_layout Plain Layout
6135 accent-acute
6136 \end_layout
6137
6138 \end_inset
6139
6140  in the 
6141 \emph on
6142 Reference Manual
6143 \emph default
6144 .
6145  You'll find the complete list there.
6146 \end_layout
6147
6148 \begin_layout Subsection
6149 Saving your Language Configuration
6150 \end_layout
6151
6152 \begin_layout Standard
6153 You can edit your preferences so that your desired language environment
6154  is automatically configured when \SpecialChar LyX
6155  starts up, via the 
6156 \begin_inset Flex Noun
6157 status collapsed
6158
6159 \begin_layout Plain Layout
6160 Edit\SpecialChar menuseparator
6161 Preferences
6162 \end_layout
6163
6164 \end_inset
6165
6166  dialog.
6167 \end_layout
6168
6169 \begin_layout Chapter
6170 Installing New Document Classes, Layouts, and Templates
6171 \begin_inset CommandInset label
6172 LatexCommand label
6173 name "cha:Installing-New-Document"
6174
6175 \end_inset
6176
6177
6178 \begin_inset Argument 1
6179 status collapsed
6180
6181 \begin_layout Plain Layout
6182 Installing New Document Classes
6183 \end_layout
6184
6185 \end_inset
6186
6187
6188 \end_layout
6189
6190 \begin_layout Standard
6191 In this chapter, we describe the procedures for creating and installing
6192  new \SpecialChar LyX
6193  layout and template files, as well as offer a refresher on correctly
6194  installing new \SpecialChar LaTeX
6195  document classes.
6196  
6197 \end_layout
6198
6199 \begin_layout Standard
6200 First, let us a say a few words about how one ought to think about the relation
6201  between \SpecialChar LyX
6202  and \SpecialChar LaTeX
6203 .
6204  The thing to understand is that, in a certain sense, \SpecialChar LyX
6205  doesn't know anything
6206  about \SpecialChar LaTeX
6207 .
6208  Indeed, from \SpecialChar LyX
6209 's point of view, \SpecialChar LaTeX
6210  is just one of several 
6211 \begin_inset Quotes eld
6212 \end_inset
6213
6214 backend formats
6215 \begin_inset Quotes erd
6216 \end_inset
6217
6218  in which it is capable of producing output.
6219  Other such formats are DocBook, plaintext, and XHTML.
6220  \SpecialChar LaTeX
6221  is, of course, a particularly important format, but very little of the
6222  information \SpecialChar LyX
6223  has about \SpecialChar LaTeX
6224  is actually contained in the program itself.
6225 \begin_inset Foot
6226 status collapsed
6227
6228 \begin_layout Plain Layout
6229 Some commands are sufficiently complex that they are 
6230 \begin_inset Quotes eld
6231 \end_inset
6232
6233 hardcoded
6234 \begin_inset Quotes erd
6235 \end_inset
6236
6237  into \SpecialChar LyX
6238 .
6239  But the developers generally regard this as a Bad Thing.
6240 \end_layout
6241
6242 \end_inset
6243
6244  Rather, that information, even for the standard classes like 
6245 \begin_inset Flex Code
6246 status collapsed
6247
6248 \begin_layout Plain Layout
6249 article.cls
6250 \end_layout
6251
6252 \end_inset
6253
6254 , is contained in `layout files'.
6255  Similarly, \SpecialChar LyX
6256  itself does not know much about DocBook or XHTML.
6257  What it knows is contained in layout files.
6258 \end_layout
6259
6260 \begin_layout Standard
6261 You can think of the layout file for a given document class as a translation
6262  manual between \SpecialChar LyX
6263  constructs—paragraphs with their corresponding styles,
6264  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6265 , DocBook, or XHTML
6266  constructs.
6267  Almost everything \SpecialChar LyX
6268  knows about 
6269 \begin_inset Flex Code
6270 status collapsed
6271
6272 \begin_layout Plain Layout
6273 article.cls
6274 \end_layout
6275
6276 \end_inset
6277
6278 , for example, is contained in the file 
6279 \begin_inset Flex Code
6280 status collapsed
6281
6282 \begin_layout Plain Layout
6283 article.layout
6284 \end_layout
6285
6286 \end_inset
6287
6288  and in various other files it includes.
6289  For this reason, anyone intending to write layout files should plan to
6290  study the existing files.
6291  A good place to start is with 
6292 \begin_inset Flex Code
6293 status collapsed
6294
6295 \begin_layout Plain Layout
6296 stdsections.inc
6297 \end_layout
6298
6299 \end_inset
6300
6301 , which is included in 
6302 \begin_inset Flex Code
6303 status collapsed
6304
6305 \begin_layout Plain Layout
6306 article.layout
6307 \end_layout
6308
6309 \end_inset
6310
6311
6312 \begin_inset Flex Code
6313 status collapsed
6314
6315 \begin_layout Plain Layout
6316 book.layout
6317 \end_layout
6318
6319 \end_inset
6320
6321 , and many of the other layout files for document classes.
6322  This file is where sections and the like are defined: 
6323 \begin_inset Flex Code
6324 status collapsed
6325
6326 \begin_layout Plain Layout
6327 stdsections.inc
6328 \end_layout
6329
6330 \end_inset
6331
6332  tells \SpecialChar LyX
6333  how paragraphs that are marked with the Section, Subsection, etc,
6334  styles can be translated into corresponding \SpecialChar LaTeX
6335 , DocBook, and XHTML commands
6336  and tags.
6337  The 
6338 \begin_inset Flex Code
6339 status collapsed
6340
6341 \begin_layout Plain Layout
6342 article.layout
6343 \end_layout
6344
6345 \end_inset
6346
6347  file basically just includes several of these 
6348 \begin_inset Flex Code
6349 status collapsed
6350
6351 \begin_layout Plain Layout
6352 std*.inc
6353 \end_layout
6354
6355 \end_inset
6356
6357  files.
6358 \end_layout
6359
6360 \begin_layout Standard
6361 Defining the \SpecialChar LyX
6362 –\SpecialChar LaTeX
6363  correspondence is not the only thing layout files do, though.
6364  Their other job is to define how the \SpecialChar LyX
6365  constructs themselves will appear
6366  on-screen.
6367  The fact that layout files have these two jobs is often a source of confusion,
6368  because they are completely separate.
6369  Telling \SpecialChar LyX
6370  how to translate a certain paragraph style into \SpecialChar LaTeX
6371  does not tell
6372  \SpecialChar LyX
6373  how to display it; conversely, telling \SpecialChar LyX
6374  how to display a certain paragraph
6375  style does not tell \SpecialChar LyX
6376  how to translate it into \SpecialChar LaTeX
6377  (let alone tell \SpecialChar LaTeX
6378  how to
6379  display it).
6380  So, in general, when you define a new \SpecialChar LyX
6381  construct, you must always do two
6382  quite separate things: (i)
6383 \begin_inset space ~
6384 \end_inset
6385
6386 tell \SpecialChar LyX
6387  how to translate it into \SpecialChar LaTeX
6388  and (ii)
6389 \begin_inset space ~
6390 \end_inset
6391
6392 tell \SpecialChar LyX
6393  how to display it.
6394 \end_layout
6395
6396 \begin_layout Standard
6397 Much the same is true, of course, as regards \SpecialChar LyX
6398 's other backend formats, though
6399  XHTML is in some ways different, because in that case \SpecialChar LyX
6400  
6401 \emph on
6402 is
6403 \emph default
6404  able, to some extent, to use information about how it should display a
6405  paragraph on the screen to output information (in the form of CSS) about
6406  how the paragraph should be displayed in a browser.
6407  Even in this case, however, the distinction between what \SpecialChar LyX
6408  does internally
6409  and how things are rendered externally remains in force, and the two can
6410  be controlled separately.
6411  See 
6412 \begin_inset CommandInset ref
6413 LatexCommand ref
6414 reference "sec:Tags-for-XHTML"
6415
6416 \end_inset
6417
6418  for the details.
6419 \end_layout
6420
6421 \begin_layout Section
6422 Installing new \SpecialChar LaTeX
6423  files
6424 \end_layout
6425
6426 \begin_layout Standard
6427 Some installations may not include a \SpecialChar LaTeX
6428  package or class file that you would
6429  like to use within \SpecialChar LyX
6430 .
6431  For example, you might need Foil\SpecialChar TeX
6432 , a package for preparing slides for overhead
6433  projectors.
6434  Modern \SpecialChar LaTeX
6435  distributions like \SpecialChar TeX
6436 Live (2008 or newer) or MiK\SpecialChar TeX
6437  provide a user interface
6438  for installing such packages.
6439  For example, with MiK\SpecialChar TeX
6440 , you start the program 
6441 \begin_inset Quotes eld
6442 \end_inset
6443
6444 Package
6445 \begin_inset space ~
6446 \end_inset
6447
6448 Manager
6449 \begin_inset Quotes erd
6450 \end_inset
6451
6452  to get a list of available packages.
6453  To install one of them, right click on it or use the corresponding toolbar
6454  button.
6455 \end_layout
6456
6457 \begin_layout Standard
6458 If your \SpecialChar LaTeX
6459  distribution does not provide such a `package manager', or if the
6460  package is not available from your distribution, then follow these steps
6461  to install it manually:
6462 \end_layout
6463
6464 \begin_layout Enumerate
6465 Get the package from 
6466 \begin_inset CommandInset href
6467 LatexCommand href
6468 name "CTAN"
6469 target "http://www.ctan.org/"
6470 literal "false"
6471
6472 \end_inset
6473
6474  or wherever.
6475 \end_layout
6476
6477 \begin_layout Enumerate
6478 If the package contains a file with the ending 
6479 \begin_inset Quotes eld
6480 \end_inset
6481
6482
6483 \begin_inset Flex Code
6484 status collapsed
6485
6486 \begin_layout Plain Layout
6487 .ins
6488 \end_layout
6489
6490 \end_inset
6491
6492
6493 \begin_inset Quotes erd
6494 \end_inset
6495
6496  (is the case for Foil\SpecialChar TeX
6497 ) then open a console, change to the folder of this
6498  file and execute the command 
6499 \begin_inset Flex Code
6500 status collapsed
6501
6502 \begin_layout Plain Layout
6503 latex foiltex.ins
6504 \end_layout
6505
6506 \end_inset
6507
6508 .
6509  You have now unpacked the package and have all files to install it.
6510  Most \SpecialChar LaTeX
6511 -packages are not packed and you can skip this step.
6512 \end_layout
6513
6514 \begin_layout Enumerate
6515 Now you need to decide if the package should be available for all users
6516  or only for you.
6517 \end_layout
6518
6519 \begin_deeper
6520 \begin_layout Enumerate
6521 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6522  for all users on your system, then install it in your `local' \SpecialChar TeX
6523  tree, otherwise
6524  install it in your own `user' \SpecialChar TeX
6525  tree.
6526  Where these trees should be created, if they do not already exist, depends
6527  on your system.
6528  To find this out, look in the file 
6529 \begin_inset Flex Code
6530 status collapsed
6531
6532 \begin_layout Plain Layout
6533 texmf.cnf
6534 \end_layout
6535
6536 \end_inset
6537
6538 .
6539 \begin_inset Foot
6540 status collapsed
6541
6542 \begin_layout Plain Layout
6543 This is usually in the directory 
6544 \begin_inset Flex Code
6545 status collapsed
6546
6547 \begin_layout Plain Layout
6548 $TEXMF/web2c
6549 \end_layout
6550
6551 \end_inset
6552
6553 , though you can execute the command 
6554 \begin_inset Flex Code
6555 status collapsed
6556
6557 \begin_layout Plain Layout
6558 kpsewhich texmf.cnf
6559 \end_layout
6560
6561 \end_inset
6562
6563  to locate it.
6564 \end_layout
6565
6566 \end_inset
6567
6568  The location of the `local' \SpecialChar TeX
6569  tree is defined by the 
6570 \begin_inset Flex Code
6571 status collapsed
6572
6573 \begin_layout Plain Layout
6574 TEXMFLOCAL
6575 \end_layout
6576
6577 \end_inset
6578
6579  variable; this is usually somewhere like 
6580 \begin_inset Flex Code
6581 status collapsed
6582
6583 \begin_layout Plain Layout
6584 /usr/local/share/texmf
6585 \end_layout
6586
6587 \end_inset
6588
6589  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6590 Live
6591  distribution.
6592  The location of the `user' \SpecialChar TeX
6593  tree is defined by 
6594 \begin_inset Flex Code
6595 status collapsed
6596
6597 \begin_layout Plain Layout
6598 TEXMFHOME
6599 \end_layout
6600
6601 \end_inset
6602
6603  and is commonly 
6604 \begin_inset Flex Code
6605 status collapsed
6606
6607 \begin_layout Plain Layout
6608 $HOME/texmf
6609 \end_layout
6610
6611 \end_inset
6612
6613  or 
6614 \begin_inset Flex Code
6615 status collapsed
6616
6617 \begin_layout Plain Layout
6618
6619 \family sans
6620 $HOME/.texliveXXXX
6621 \end_layout
6622
6623 \end_inset
6624
6625 .
6626  (If these variables are not predefined, you have to define them.) You'll
6627  probably need root permissions to create or modify the `local' tree, but
6628  not for your `user' tree.
6629 \begin_inset Newline newline
6630 \end_inset
6631
6632 In general, it is recommended to install in the user tree because your user
6633  will not be modified or even overwritten when you upgrade your system.
6634  It will typically also be backed up together with everything else when
6635  you backup your home directory (which, of course, you do on a regular basis).
6636 \end_layout
6637
6638 \begin_layout Enumerate
6639 On Windows, if you want the new package to be available for all users on
6640  your system, change to the folder where \SpecialChar LaTeX
6641  is installed and then change to
6642  the subfolder 
6643 \begin_inset Flex Code
6644 status collapsed
6645
6646 \begin_layout Plain Layout
6647 ~
6648 \backslash
6649 tex
6650 \backslash
6651 latex
6652 \end_layout
6653
6654 \end_inset
6655
6656 .
6657  (For MiK\SpecialChar TeX
6658 , this would be by default the folder 
6659 \begin_inset Flex Code
6660 status collapsed
6661
6662 \begin_layout Plain Layout
6663 ~:
6664 \backslash
6665 Programs
6666 \backslash
6667 MiKTeX
6668 \backslash
6669 tex
6670 \backslash
6671 latex
6672 \end_layout
6673
6674 \end_inset
6675
6676 .)
6677 \begin_inset Foot
6678 status collapsed
6679
6680 \begin_layout Plain Layout
6681 Note that this will be the correct path only on English installations.
6682  On a German one, it would be 
6683 \begin_inset Flex Code
6684 status collapsed
6685
6686 \begin_layout Plain Layout
6687 ~:
6688 \backslash
6689 Programme
6690 \backslash
6691 MiKTeX
6692 \backslash
6693 tex
6694 \backslash
6695 latex
6696 \end_layout
6697
6698 \end_inset
6699
6700 , and similarly for other languages.
6701 \end_layout
6702
6703 \end_inset
6704
6705  Create there a new folder 
6706 \begin_inset Flex Code
6707 status collapsed
6708
6709 \begin_layout Plain Layout
6710 foiltex
6711 \end_layout
6712
6713 \end_inset
6714
6715  and copy all files of the package into it.
6716  
6717 \begin_inset Newline newline
6718 \end_inset
6719
6720 If the package should only available for you or you don't have admin permissions
6721 , do the same, but in the local \SpecialChar LaTeX
6722  folder.
6723  E.
6724 \begin_inset space \thinspace{}
6725 \end_inset
6726
6727 g., for MiK\SpecialChar TeX
6728
6729 \begin_inset space ~
6730 \end_inset
6731
6732 2.8 under Windows XP, this would be the folder:
6733 \begin_inset Newline newline
6734 \end_inset
6735
6736
6737 \family sans
6738
6739 \begin_inset Flex Code
6740 status collapsed
6741
6742 \begin_layout Plain Layout
6743 ~:
6744 \backslash
6745 Documents and Settings
6746 \backslash
6747 <username>
6748 \backslash
6749 Application Data
6750 \backslash
6751
6752 \end_layout
6753
6754 \end_inset
6755
6756
6757 \begin_inset Newline newline
6758 \end_inset
6759
6760
6761 \family default
6762
6763 \begin_inset Phantom HPhantom
6764 status open
6765
6766 \begin_layout Plain Layout
6767
6768 \family sans
6769 ~:
6770 \backslash
6771
6772 \end_layout
6773
6774 \end_inset
6775
6776
6777 \begin_inset Flex Code
6778 status collapsed
6779
6780 \begin_layout Plain Layout
6781 MiKTeX
6782 \backslash
6783 2.8
6784 \backslash
6785 tex
6786 \backslash
6787 latex
6788 \end_layout
6789
6790 \end_inset
6791
6792
6793 \begin_inset Newline newline
6794 \end_inset
6795
6796 On Vista, it would be:
6797 \begin_inset Newline newline
6798 \end_inset
6799
6800
6801 \begin_inset Flex Code
6802 status collapsed
6803
6804 \begin_layout Plain Layout
6805 ~:
6806 \backslash
6807 Users
6808 \backslash
6809 <username>
6810 \backslash
6811 AppData
6812 \backslash
6813 Roaming
6814 \backslash
6815 2.8
6816 \backslash
6817 MiKTeX
6818 \backslash
6819 tex
6820 \backslash
6821 latex
6822 \end_layout
6823
6824 \end_inset
6825
6826
6827 \end_layout
6828
6829 \end_deeper
6830 \begin_layout Enumerate
6831 Now one only need to tell \SpecialChar LaTeX
6832  that there are new files.
6833  This depends on the used \SpecialChar LaTeX
6834 -Distribution:
6835 \end_layout
6836
6837 \begin_deeper
6838 \begin_layout Enumerate
6839 For \SpecialChar TeX
6840 Live execute the command 
6841 \begin_inset Flex Code
6842 status collapsed
6843
6844 \begin_layout Plain Layout
6845 texhash
6846 \end_layout
6847
6848 \end_inset
6849
6850  from a console.
6851  If you installed the package for all users, then you will probably need
6852  to have root permissions for that.
6853 \end_layout
6854
6855 \begin_layout Enumerate
6856 For MiK\SpecialChar TeX
6857 , if you have installed the package for all users, start the program
6858  
6859 \begin_inset Quotes eld
6860 \end_inset
6861
6862 Settings
6863 \begin_inset space ~
6864 \end_inset
6865
6866 (Admin)
6867 \begin_inset Quotes erd
6868 \end_inset
6869
6870  and press the button marked 
6871 \begin_inset Quotes eld
6872 \end_inset
6873
6874 Refresh FNDB
6875 \begin_inset Quotes erd
6876 \end_inset
6877
6878 .
6879  Otherwise start the program 
6880 \begin_inset Quotes eld
6881 \end_inset
6882
6883 Settings
6884 \begin_inset Quotes erd
6885 \end_inset
6886
6887  and do the same.
6888 \end_layout
6889
6890 \end_deeper
6891 \begin_layout Enumerate
6892 Finally, you need to tell \SpecialChar LyX
6893  that there are new packages available.
6894  So, in \SpecialChar LyX
6895 , use the menu 
6896 \begin_inset Flex Noun
6897 status collapsed
6898
6899 \begin_layout Plain Layout
6900 Tools
6901 \family sans
6902 \SpecialChar menuseparator
6903 Reconfigure
6904 \end_layout
6905
6906 \end_inset
6907
6908  and then restart \SpecialChar LyX
6909 .
6910 \end_layout
6911
6912 \begin_layout Standard
6913 Now the package is installed.
6914  In our example, the document class 
6915 \begin_inset Flex Code
6916 status collapsed
6917
6918 \begin_layout Plain Layout
6919 FoilTex
6920 \end_layout
6921
6922 \end_inset
6923
6924  will now be available under 
6925 \begin_inset Flex Noun
6926 status collapsed
6927
6928 \begin_layout Plain Layout
6929 Document\SpecialChar menuseparator
6930 Settings\SpecialChar menuseparator
6931 Document Class
6932 \end_layout
6933
6934 \end_inset
6935
6936  (in the 
6937 \begin_inset Quotes eld
6938 \end_inset
6939
6940 Presentations
6941 \begin_inset Quotes erd
6942 \end_inset
6943
6944  category).
6945  
6946 \end_layout
6947
6948 \begin_layout Standard
6949 If you would like to use a \SpecialChar LaTeX
6950  document class that is not even listed in the
6951  menu 
6952 \begin_inset Flex Noun
6953 status collapsed
6954
6955 \begin_layout Plain Layout
6956 Document\SpecialChar menuseparator
6957 Settings\SpecialChar menuseparator
6958 Document Class
6959 \end_layout
6960
6961 \end_inset
6962
6963 , then you need to create a `layout' file for it.
6964  That is the topic of the next section.
6965 \end_layout
6966
6967 \begin_layout Section
6968 Types of layout files
6969 \end_layout
6970
6971 \begin_layout Standard
6972 This section describes the various sorts of \SpecialChar LyX
6973  files that contain layout informati
6974 on.
6975  These files describe various paragraph and character styles, determining
6976  how \SpecialChar LyX
6977  should display them and how they should be translated into \SpecialChar LaTeX
6978 , DocBook,
6979  XHTML, or whatever output format is being used.
6980  
6981 \end_layout
6982
6983 \begin_layout Standard
6984 We shall try to provide a thorough description of the process of writing
6985  layout files here.
6986  However, there are so many different types of documents supported even
6987  by just \SpecialChar LaTeX
6988  that we can't hope to cover every different possibility or problem
6989  you might encounter.
6990  The \SpecialChar LyX
6991  users' list is frequented by people with lots of experience with layout
6992  design who are willing to share what they've learned, so please feel free
6993  to ask questions there.
6994 \end_layout
6995
6996 \begin_layout Standard
6997 As you prepare to write a new layout, it is extremely helpful to look at
6998  the layouts distributed with \SpecialChar LyX
6999 .
7000  If you write a \SpecialChar LyX
7001  layout for a \SpecialChar LaTeX
7002  document class that might also be used by
7003  others, or write a module that might be useful to others, then you should
7004  consider posting your layout to the 
7005 \begin_inset CommandInset href
7006 LatexCommand href
7007 name "layout section on the LyX wiki"
7008 target "https://wiki.lyx.org/Layouts/Layouts"
7009 literal "false"
7010
7011 \end_inset
7012
7013  or even to the \SpecialChar LyX
7014  developers' list, so that it might be included in \SpecialChar LyX
7015  itself.
7016 \begin_inset Foot
7017 status collapsed
7018
7019 \begin_layout Plain Layout
7020 Note that \SpecialChar LyX
7021  is licensed under the General Public License, so any material
7022  that is contributed to \SpecialChar LyX
7023  must be similarly licensed.
7024 \end_layout
7025
7026 \end_inset
7027
7028
7029 \end_layout
7030
7031 \begin_layout Subsection
7032 Layout modules
7033 \begin_inset CommandInset label
7034 LatexCommand label
7035 name "subsec:Layout-modules"
7036
7037 \end_inset
7038
7039
7040 \end_layout
7041
7042 \begin_layout Standard
7043 We have spoken to this point about `layout files'.
7044  But there are different sorts of files that contain layout information.
7045  Layout files, strictly so called, have the 
7046 \begin_inset Flex Code
7047 status collapsed
7048
7049 \begin_layout Plain Layout
7050 .layout
7051 \end_layout
7052
7053 \end_inset
7054
7055  extension and provide \SpecialChar LyX
7056  with information about document classes.
7057  Since \SpecialChar LyX
7058  1.6 layout information can also be contained in layout 
7059 \emph on
7060 modules
7061 \emph default
7062 , which have the 
7063 \begin_inset Flex Code
7064 status collapsed
7065
7066 \begin_layout Plain Layout
7067 .module
7068 \end_layout
7069
7070 \end_inset
7071
7072  extension.
7073  Modules are to \SpecialChar LaTeX
7074  packages much as layouts are to \SpecialChar LaTeX
7075  classes, and some modules—such
7076  as the 
7077 \begin_inset Flex Code
7078 status collapsed
7079
7080 \begin_layout Plain Layout
7081 endnotes
7082 \end_layout
7083
7084 \end_inset
7085
7086  module—specifically provide support for one package.
7087  In a sense, layout modules are similar to included
7088 \begin_inset Foot
7089 status collapsed
7090
7091 \begin_layout Plain Layout
7092 These can have any extension, but by convention have the 
7093 \begin_inset Flex Code
7094 status collapsed
7095
7096 \begin_layout Plain Layout
7097 .inc
7098 \end_layout
7099
7100 \end_inset
7101
7102  extension.
7103 \end_layout
7104
7105 \end_inset
7106
7107  files—files like 
7108 \begin_inset Flex Code
7109 status collapsed
7110
7111 \begin_layout Plain Layout
7112 stdsections.inc
7113 \end_layout
7114
7115 \end_inset
7116
7117 —in that modules are not specific to a given document class but may be used
7118  with many different classes.
7119  The difference is that using an included file with 
7120 \begin_inset Flex Code
7121 status collapsed
7122
7123 \begin_layout Plain Layout
7124 article.cls
7125 \end_layout
7126
7127 \end_inset
7128
7129  requires editing that file.
7130  Modules, by contrast, are selected in the 
7131 \begin_inset Flex Noun
7132 status collapsed
7133
7134 \begin_layout Plain Layout
7135 Document\SpecialChar menuseparator
7136 Settings
7137 \end_layout
7138
7139 \end_inset
7140
7141  dialog.
7142 \end_layout
7143
7144 \begin_layout Standard
7145 Building modules is the easiest way to get started with layout editing,
7146  since it can be as simple as adding a single new paragraph style or flex
7147  inset.
7148  But modules may, in principle, contain anything a layout file can contain.
7149 \end_layout
7150
7151 \begin_layout Standard
7152 After creating a new module and copying it to the 
7153 \begin_inset Flex Code
7154 status collapsed
7155
7156 \begin_layout Plain Layout
7157 layouts/
7158 \end_layout
7159
7160 \end_inset
7161
7162  folder, you will need to reconfigure and then restart \SpecialChar LyX
7163  for the module to
7164  appear in the menu.
7165  However, changes you make to the module will be seen immediately, if you
7166  open 
7167 \begin_inset Flex Noun
7168 status collapsed
7169
7170 \begin_layout Plain Layout
7171 Document\SpecialChar menuseparator
7172 Settings
7173 \end_layout
7174
7175 \end_inset
7176
7177 , highlight something, and then hit 
7178 \begin_inset Quotes eld
7179 \end_inset
7180
7181 OK
7182 \begin_inset Quotes erd
7183 \end_inset
7184
7185 .
7186  
7187 \emph on
7188 It is strongly recommended that you save your work before doing this
7189 \emph default
7190 .
7191  In fact, 
7192 \emph on
7193 it is strongly recommended that you not attempt to edit modules while simultaneo
7194 usly working on actual documents
7195 \emph default
7196 .
7197  Though of course the developers strive to keep \SpecialChar LyX
7198  stable in such situations,
7199  syntax errors and the like in your module file could cause strange behavior.
7200 \end_layout
7201
7202 \begin_layout Subsubsection
7203 Local Layout
7204 \end_layout
7205
7206 \begin_layout Standard
7207 Modules are to \SpecialChar LyX
7208  as packages are to \SpecialChar LaTeX
7209 .
7210  Sometimes, however, you find yourself wanting a specific inset or character
7211  style just for one document and writing a module that will also be available
7212  to other documents makes little sense.
7213  What you need is \SpecialChar LyX
7214 's 
7215 \begin_inset Quotes eld
7216 \end_inset
7217
7218 Local Layout
7219 \begin_inset Quotes erd
7220 \end_inset
7221
7222 .
7223 \end_layout
7224
7225 \begin_layout Standard
7226 You will find it under 
7227 \family sans
7228 Document\SpecialChar menuseparator
7229 Settings\SpecialChar menuseparator
7230 Local Layout
7231 \family default
7232 .
7233  The large text box allows you to enter anything that you might enter in
7234  a layout file or module.
7235  You can think of a document's local layout, in fact, as a module that belongs
7236  just to it.
7237  So, in particular, you must enter a 
7238 \begin_inset Flex Code
7239 status collapsed
7240
7241 \begin_layout Plain Layout
7242 Format
7243 \end_layout
7244
7245 \end_inset
7246
7247  tag.
7248  Any format is acceptable, but one would normally use the format current
7249  at the time.
7250  (In \SpecialChar LyX
7251  
7252 \begin_inset Info
7253 type  "lyxinfo"
7254 arg   "version"
7255 \end_inset
7256
7257 , the current layout format is 
7258 \begin_inset Info
7259 type  "lyxinfo"
7260 arg   "layoutformat"
7261 \end_inset
7262
7263 .)
7264 \end_layout
7265
7266 \begin_layout Standard
7267 When you have entered something in the 
7268 \begin_inset Flex Code
7269 status collapsed
7270
7271 \begin_layout Plain Layout
7272 Local Layout
7273 \end_layout
7274
7275 \end_inset
7276
7277  pane, \SpecialChar LyX
7278  will enable the 
7279 \begin_inset Quotes eld
7280 \end_inset
7281
7282 Validate
7283 \begin_inset Quotes erd
7284 \end_inset
7285
7286  button at the bottom.
7287  Clicking this button will cause \SpecialChar LyX
7288  to determine whether what you have entered
7289  is valid layout information for the chosen format.
7290  \SpecialChar LyX
7291  will report the result but, unfortunately, will not tell you what errors
7292  there might have been.
7293  These will be written to the terminal, however, if \SpecialChar LyX
7294  is started from a terminal.
7295  You will not be permitted to save your local layout until you have entered
7296  something valid.
7297 \end_layout
7298
7299 \begin_layout Standard
7300 The warnings at the end of the previous section apply here, too.
7301  Do not play with local layout while you are actually working, especially
7302  if you have not saved your document.
7303  That said, using local layout with a test document can be a very convenient
7304  way to try out layout ideas, or even to start developing a module.
7305 \end_layout
7306
7307 \begin_layout Subsection
7308 Layout for 
7309 \begin_inset Flex Noun
7310 status collapsed
7311
7312 \begin_layout Plain Layout
7313 .sty
7314 \end_layout
7315
7316 \end_inset
7317
7318  files
7319 \end_layout
7320
7321 \begin_layout Standard
7322 There are two situations you are likely to encounter when wanting to support
7323  a new \SpecialChar LaTeX
7324  document class, involving style (
7325 \begin_inset Flex Code
7326 status collapsed
7327
7328 \begin_layout Plain Layout
7329 .sty
7330 \end_layout
7331
7332 \end_inset
7333
7334 ) files and \SpecialChar LaTeX2e
7335  class (
7336 \begin_inset Flex Code
7337 status collapsed
7338
7339 \begin_layout Plain Layout
7340 .cls
7341 \end_layout
7342
7343 \end_inset
7344
7345 ) .
7346  Supporting a style file is usually fairly easy.
7347  Supporting a new class file is a bit harder.
7348  We'll discuss the former in this section and the latter in the next.
7349  
7350 \change_deleted 5863208 1594239023
7351 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7352 \change_unchanged
7353
7354 \end_layout
7355
7356 \begin_layout Standard
7357 The easier case is the one in which your new document class is provided
7358  as a style file that is to be used in conjunction with an already supported
7359  document class.
7360  For the sake of the example, we'll assume that the style file is called
7361  
7362 \begin_inset Flex Noun
7363 status collapsed
7364
7365 \begin_layout Plain Layout
7366 myclass.sty
7367 \end_layout
7368
7369 \end_inset
7370
7371  and that it is meant to be used with 
7372 \begin_inset Flex Noun
7373 status collapsed
7374
7375 \begin_layout Plain Layout
7376 report.cls
7377 \end_layout
7378
7379 \end_inset
7380
7381 , which is a standard class.
7382  
7383 \end_layout
7384
7385 \begin_layout Standard
7386 Start by copying the existing class's layout file into your local directory:
7387 \begin_inset Foot
7388 status collapsed
7389
7390 \begin_layout Plain Layout
7391 Of course, which directory is your local directory will vary by platform,
7392  and \SpecialChar LyX
7393  allows you to specify your local directory on startup, too, using
7394  the 
7395 \begin_inset Flex Code
7396 status collapsed
7397
7398 \begin_layout Plain Layout
7399 -userdir
7400 \end_layout
7401
7402 \end_inset
7403
7404  option.
7405 \end_layout
7406
7407 \end_inset
7408
7409
7410 \end_layout
7411
7412 \begin_layout LyX-Code
7413 cp report.layout ~/.lyx/layouts/myclass.layout
7414 \end_layout
7415
7416 \begin_layout Standard
7417 Then edit 
7418 \begin_inset Flex Code
7419 status collapsed
7420
7421 \begin_layout Plain Layout
7422 myclass.layout
7423 \end_layout
7424
7425 \end_inset
7426
7427  and change the line: 
7428 \end_layout
7429
7430 \begin_layout LyX-Code
7431
7432 \backslash
7433 DeclareLaTeXClass{Report (Standard Class)}
7434 \end_layout
7435
7436 \begin_layout Standard
7437 to read
7438 \end_layout
7439
7440 \begin_layout LyX-Code
7441
7442 \backslash
7443 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7444 \end_layout
7445
7446 \begin_layout Standard
7447 Then add:
7448 \end_layout
7449
7450 \begin_layout LyX-Code
7451 Preamble 
7452 \begin_inset Newline newline
7453 \end_inset
7454
7455     
7456 \backslash
7457 usepackage{myclass}
7458 \begin_inset Newline newline
7459 \end_inset
7460
7461 EndPreamble
7462 \end_layout
7463
7464 \begin_layout Standard
7465 near the top of the file.
7466 \end_layout
7467
7468 \begin_layout Standard
7469 Start \SpecialChar LyX
7470  and select 
7471 \begin_inset Flex Noun
7472 status collapsed
7473
7474 \begin_layout Plain Layout
7475 Tools\SpecialChar menuseparator
7476 Reconfigure
7477 \end_layout
7478
7479 \end_inset
7480
7481 .
7482  Then restart \SpecialChar LyX
7483  and try creating a new document.
7484  You should see "
7485 \begin_inset Flex Noun
7486 status collapsed
7487
7488 \begin_layout Plain Layout
7489 Report (My Class)
7490 \end_layout
7491
7492 \end_inset
7493
7494 " as a document class option in the 
7495 \begin_inset Flex Noun
7496 status collapsed
7497
7498 \begin_layout Plain Layout
7499 Document\SpecialChar menuseparator
7500 Settings
7501 \end_layout
7502
7503 \end_inset
7504
7505  dialog.
7506  It is likely that some of the sectioning commands and such in your new
7507  class will work differently from how they worked in the base class—
7508 \begin_inset Flex Code
7509 status collapsed
7510
7511 \begin_layout Plain Layout
7512 report
7513 \end_layout
7514
7515 \end_inset
7516
7517  in this example—so you can fiddle around with the settings for the different
7518  sections if you wish.
7519  The layout information for sections is contained in 
7520 \begin_inset Flex Code
7521 status collapsed
7522
7523 \begin_layout Plain Layout
7524 stdsections.inc
7525 \end_layout
7526
7527 \end_inset
7528
7529 , but you do not need to copy and change this file.
7530  Instead, you can simply add your changes to your layout file, after the
7531  line 
7532 \begin_inset Flex Code
7533 status collapsed
7534
7535 \begin_layout Plain Layout
7536 Input stdclass.inc
7537 \end_layout
7538
7539 \end_inset
7540
7541 , which itself includes 
7542 \begin_inset Flex Code
7543 status collapsed
7544
7545 \begin_layout Plain Layout
7546 stdsections.inc
7547 \end_layout
7548
7549 \end_inset
7550
7551 .
7552  For example, you might add these lines:
7553 \end_layout
7554
7555 \begin_layout LyX-Code
7556 Style Chapter
7557 \end_layout
7558
7559 \begin_layout LyX-Code
7560     Font
7561 \end_layout
7562
7563 \begin_layout LyX-Code
7564         Family Sans
7565 \end_layout
7566
7567 \begin_layout LyX-Code
7568     EndFont
7569 \end_layout
7570
7571 \begin_layout LyX-Code
7572 End
7573 \end_layout
7574
7575 \begin_layout Standard
7576 to change the font for chapter headings to sans-serif.
7577  This will override (or, in this case, add to) the existing declaration
7578  for the Chapter style.
7579  
7580 \end_layout
7581
7582 \begin_layout Standard
7583 Your new package may also provide commands or environments not present in
7584  the base class.
7585  In this case, you will want to add these to the layout file.
7586  See 
7587 \begin_inset CommandInset ref
7588 LatexCommand ref
7589 reference "sec:TextClass"
7590
7591 \end_inset
7592
7593  for information on how to do so.
7594 \end_layout
7595
7596 \begin_layout Standard
7597 If 
7598 \begin_inset Flex Noun
7599 status collapsed
7600
7601 \begin_layout Plain Layout
7602 myclass.sty
7603 \end_layout
7604
7605 \end_inset
7606
7607  can be used with several different document classes, and even if it cannot,
7608  you might find it easiest just to write a module that you can load with
7609  the base class.
7610  The simplest possible such module would be:
7611 \end_layout
7612
7613 \begin_layout LyX-Code
7614 #
7615 \backslash
7616 DeclareLyXModule{My Class} 
7617 \end_layout
7618
7619 \begin_layout LyX-Code
7620 #DescriptionBegin 
7621 \end_layout
7622
7623 \begin_layout LyX-Code
7624 #Support for myclass.sty.
7625 \end_layout
7626
7627 \begin_layout LyX-Code
7628 #DescriptionEnd
7629 \begin_inset Newline newline
7630 \end_inset
7631
7632
7633 \end_layout
7634
7635 \begin_layout LyX-Code
7636 Format 
7637 \begin_inset Info
7638 type  "lyxinfo"
7639 arg   "layoutformat"
7640 \end_inset
7641
7642
7643 \begin_inset Newline newline
7644 \end_inset
7645
7646
7647 \end_layout
7648
7649 \begin_layout LyX-Code
7650 Preamble
7651 \begin_inset Newline newline
7652 \end_inset
7653
7654     
7655 \backslash
7656 usepackage{myclass}
7657 \begin_inset Newline newline
7658 \end_inset
7659
7660 EndPreamble
7661 \end_layout
7662
7663 \begin_layout Standard
7664 A more complex module might modify the behavior of some existing constructs
7665  or define some new ones.
7666  Again, see 
7667 \begin_inset CommandInset ref
7668 LatexCommand ref
7669 reference "sec:TextClass"
7670
7671 \end_inset
7672
7673  for discussion.
7674 \end_layout
7675
7676 \begin_layout Subsection
7677 Layout for 
7678 \begin_inset Flex Noun
7679 status collapsed
7680
7681 \begin_layout Plain Layout
7682 .cls
7683 \end_layout
7684
7685 \end_inset
7686
7687  files
7688 \end_layout
7689
7690 \begin_layout Standard
7691 There are two possibilities here.
7692  One is that the class file is itself based upon an existing document class.
7693  For example, many thesis classes are based upon 
7694 \begin_inset Flex Noun
7695 status collapsed
7696
7697 \begin_layout Plain Layout
7698 book.cls
7699 \end_layout
7700
7701 \end_inset
7702
7703 .
7704  To see whether yours is, look for a line like
7705 \end_layout
7706
7707 \begin_layout LyX-Code
7708
7709 \backslash
7710 LoadClass{book}
7711 \end_layout
7712
7713 \begin_layout Standard
7714 in the file.
7715  If so, then you may proceed largely as in the previous section, though
7716  the 
7717 \begin_inset Flex Code
7718 status collapsed
7719
7720 \begin_layout Plain Layout
7721 Declare\SpecialChar LaTeX
7722 Class
7723 \end_layout
7724
7725 \end_inset
7726
7727  line will be different.
7728  If your new class is 
7729 \begin_inset Flex Code
7730 status collapsed
7731
7732 \begin_layout Plain Layout
7733 thesis
7734 \end_layout
7735
7736 \end_inset
7737
7738  and it is based upon 
7739 \begin_inset Flex Code
7740 status collapsed
7741
7742 \begin_layout Plain Layout
7743 book
7744 \end_layout
7745
7746 \end_inset
7747
7748 , then the line should read:
7749 \begin_inset Foot
7750 status collapsed
7751
7752 \begin_layout Plain Layout
7753 And it will be easiest if you save the file to 
7754 \begin_inset Flex Code
7755 status collapsed
7756
7757 \begin_layout Plain Layout
7758 thesis.layout
7759 \end_layout
7760
7761 \end_inset
7762
7763 : \SpecialChar LyX
7764  assumes that the document class has the same name as the layout file.
7765  
7766 \end_layout
7767
7768 \end_inset
7769
7770
7771 \end_layout
7772
7773 \begin_layout LyX-Code
7774
7775 \backslash
7776 DeclareLaTeXClass[thesis,book]{thesis}
7777 \end_layout
7778
7779 \begin_layout Standard
7780 If, on the other hand, the new class is not based upon an existing class,
7781  you will probably have to 
7782 \begin_inset Quotes eld
7783 \end_inset
7784
7785 roll your own
7786 \begin_inset Quotes erd
7787 \end_inset
7788
7789  layout.
7790  We strongly suggest copying an existing layout file which uses a similar
7791  \SpecialChar LaTeX
7792  class and then modifying it, if you can do so.
7793  At least use an existing file as a starting point so you can find out what
7794  items you need to worry about.
7795  Again, the specifics are covered below.
7796 \end_layout
7797
7798 \begin_layout Subsection
7799 Creating templates
7800 \begin_inset CommandInset label
7801 LatexCommand label
7802 name "subsec:Creating-Templates"
7803
7804 \end_inset
7805
7806
7807 \end_layout
7808
7809 \begin_layout Standard
7810 Once you have written a layout file for a new document class, you might
7811  want to consider writing a 
7812 \emph on
7813 template
7814 \emph default
7815  for it, too.
7816  A template acts as a kind of tutorial for your layout, showing how it might
7817  be used, though containing dummy content.
7818  You can of course look at the various templates included with \SpecialChar LyX
7819  for ideas.
7820 \end_layout
7821
7822 \begin_layout Standard
7823 Templates are created just like usual documents: using \SpecialChar LyX
7824 .
7825  The only difference is that usual documents contain all possible settings,
7826  including the font scheme and the paper size.
7827  Usually a user doesn't want a template to overwrite his preferred settings
7828  for such parameters.
7829  For that reason, the designer of a template should remove the corresponding
7830  commands like 
7831 \begin_inset Flex Code
7832 status collapsed
7833
7834 \begin_layout Plain Layout
7835
7836 \backslash
7837 font_roman
7838 \end_layout
7839
7840 \end_inset
7841
7842  or 
7843 \begin_inset Flex Code
7844 status collapsed
7845
7846 \begin_layout Plain Layout
7847
7848 \backslash
7849 papersize
7850 \end_layout
7851
7852 \end_inset
7853
7854  from the template \SpecialChar LyX
7855  file.
7856  This can be done with any simple text-editor, for example 
7857 \begin_inset Flex Code
7858 status collapsed
7859
7860 \begin_layout Plain Layout
7861 vi
7862 \end_layout
7863
7864 \end_inset
7865
7866  or 
7867 \begin_inset Flex Code
7868 status collapsed
7869
7870 \begin_layout Plain Layout
7871 notepad
7872 \end_layout
7873
7874 \end_inset
7875
7876 .
7877 \end_layout
7878
7879 \begin_layout Standard
7880 Put the edited template files you create in 
7881 \begin_inset Flex Code
7882 status collapsed
7883
7884 \begin_layout Plain Layout
7885 UserDir/templates/
7886 \end_layout
7887
7888 \end_inset
7889
7890 , copy the ones you use from the global template directory in 
7891 \begin_inset Flex Code
7892 status collapsed
7893
7894 \begin_layout Plain Layout
7895 LyXDir/templates/
7896 \end_layout
7897
7898 \end_inset
7899
7900  to the same place, and redefine the template path in the 
7901 \begin_inset Flex Noun
7902 status collapsed
7903
7904 \begin_layout Plain Layout
7905 Tools\SpecialChar menuseparator
7906 Preferences\SpecialChar menuseparator
7907 Paths
7908 \end_layout
7909
7910 \end_inset
7911
7912  dialog.
7913 \end_layout
7914
7915 \begin_layout Standard
7916 Note, by the way, that there is a template which has a particular meaning:
7917 \begin_inset Newline linebreak
7918 \end_inset
7919
7920
7921 \begin_inset Flex Code
7922 status collapsed
7923
7924 \begin_layout Plain Layout
7925 defaults.lyx
7926 \end_layout
7927
7928 \end_inset
7929
7930 .
7931  This template is loaded every time you create a new document with 
7932 \begin_inset Flex Noun
7933 status collapsed
7934
7935 \begin_layout Plain Layout
7936 File\SpecialChar menuseparator
7937 New
7938 \end_layout
7939
7940 \end_inset
7941
7942  in order to provide useful defaults.
7943  To create this template from inside \SpecialChar LyX
7944 , all you have to do is to open a document
7945  with the correct settings, and use the 
7946 \begin_inset Flex Noun
7947 status collapsed
7948
7949 \begin_layout Plain Layout
7950 Save as Document Defaults
7951 \end_layout
7952
7953 \end_inset
7954
7955  button.
7956 \end_layout
7957
7958 \begin_layout Subsection
7959 Upgrading old layout files
7960 \end_layout
7961
7962 \begin_layout Standard
7963 The format of layout files changes with each \SpecialChar LyX
7964  release, so old layout files
7965  need to be converted to the new format.
7966  If \SpecialChar LyX
7967  reads a layout file in an older format, it automatically calls the
7968  script 
7969 \begin_inset Flex Code
7970 status collapsed
7971
7972 \begin_layout Plain Layout
7973 layout2layout.py
7974 \end_layout
7975
7976 \end_inset
7977
7978  to convert it to a temporary file in current format.
7979  The original file is left untouched.
7980  If you use the layout file often, then, you may want to convert it permanently,
7981  so that \SpecialChar LyX
7982  does not have to do so itself every time.
7983  To do this, you can call the converter manually:
7984 \end_layout
7985
7986 \begin_layout Enumerate
7987 rename the file 
7988 \begin_inset Flex Code
7989 status collapsed
7990
7991 \begin_layout Plain Layout
7992 myclass.layout
7993 \end_layout
7994
7995 \end_inset
7996
7997  to 
7998 \begin_inset Flex Code
7999 status collapsed
8000
8001 \begin_layout Plain Layout
8002 myclass.old
8003 \end_layout
8004
8005 \end_inset
8006
8007
8008 \end_layout
8009
8010 \begin_layout Enumerate
8011 Call the command
8012 \begin_inset Newline newline
8013 \end_inset
8014
8015
8016 \begin_inset Flex Code
8017 status collapsed
8018
8019 \begin_layout Plain Layout
8020 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
8021 \end_layout
8022
8023 \end_inset
8024
8025
8026 \begin_inset Newline newline
8027 \end_inset
8028
8029 where 
8030 \begin_inset Flex Code
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 LyXDir
8035 \end_layout
8036
8037 \end_inset
8038
8039  is the name of your \SpecialChar LyX
8040  system directory.
8041 \end_layout
8042
8043 \begin_layout Standard
8044 Note that manual conversion does not affect included files, so these will
8045  have to be converted separately.
8046 \end_layout
8047
8048 \begin_layout Subsection
8049 \begin_inset CommandInset label
8050 LatexCommand label
8051 name "subsec:Cite-Engine-Files"
8052
8053 \end_inset
8054
8055 Cite engine files
8056 \end_layout
8057
8058 \begin_layout Standard
8059 A specific form of layout files are the so-called 
8060 \begin_inset Flex Code
8061 status collapsed
8062
8063 \begin_layout Plain Layout
8064 *.citeengine
8065 \end_layout
8066
8067 \end_inset
8068
8069  files that are located in the 
8070 \begin_inset Flex Code
8071 status collapsed
8072
8073 \begin_layout Plain Layout
8074 citeengines/
8075 \end_layout
8076
8077 \end_inset
8078
8079  sub-directory.
8080  Their purpose is to define the specifics of \SpecialChar LaTeX
8081  packages aimed at bibliography
8082  generation, such as 
8083 \family sans
8084 natbib
8085 \family default
8086 ,
8087 \family sans
8088  jurabib
8089 \family default
8090  or 
8091 \family sans
8092 biblatex
8093 \family default
8094 , but also the way how normal Bib\SpecialChar TeX
8095  citations (without additional packages)
8096  are handled in \SpecialChar LyX
8097  is defined in such a file.
8098  
8099 \end_layout
8100
8101 \begin_layout Standard
8102 More specifically, it is defined which packages \SpecialChar LyX
8103  needs to load, which citation
8104  commands are available, how these are to be displayed in \SpecialChar LyX
8105  (in the workarea,
8106  the dialogs, the context menus) as well as in the XHTML and plain text
8107  output.
8108  Furthermore, the files specify available style variants (author-year, numerical
8109 , etc.) and their specifics.
8110  The cite engine files are also used to generate the options that are available
8111  in 
8112 \family sans
8113 Document\SpecialChar menuseparator
8114 Settings\SpecialChar menuseparator
8115 Bibliography\SpecialChar menuseparator
8116 Style engine
8117 \family default
8118 .
8119 \end_layout
8120
8121 \begin_layout Standard
8122 Even though a cite engine file is essentially a normal layout file that
8123  could theoretically include any layout information, it usually primarily
8124  includes some specific parameters such as 
8125 \begin_inset Flex Code
8126 status collapsed
8127
8128 \begin_layout Plain Layout
8129 MaxCiteNames
8130 \end_layout
8131
8132 \end_inset
8133
8134
8135 \begin_inset Flex Code
8136 status collapsed
8137
8138 \begin_layout Plain Layout
8139 CiteFramework
8140 \end_layout
8141
8142 \end_inset
8143
8144
8145 \begin_inset Flex Code
8146 status collapsed
8147
8148 \begin_layout Plain Layout
8149 CiteEngine
8150 \end_layout
8151
8152 \end_inset
8153
8154  and 
8155 \begin_inset Flex Code
8156 status collapsed
8157
8158 \begin_layout Plain Layout
8159 CiteFormat
8160 \end_layout
8161
8162 \end_inset
8163
8164  blocks.
8165  The syntax of the latter two is described in 
8166 \begin_inset CommandInset ref
8167 LatexCommand ref
8168 reference "subsec:Citation-engine-description"
8169 plural "false"
8170 caps "false"
8171 noprefix "false"
8172
8173 \end_inset
8174
8175  and 
8176 \begin_inset CommandInset ref
8177 LatexCommand ref
8178 reference "subsec:Citation-format-description"
8179
8180 \end_inset
8181
8182 , as well as in the files themselves.
8183 \end_layout
8184
8185 \begin_layout Section
8186 \begin_inset CommandInset label
8187 LatexCommand label
8188 name "sec:TextClass"
8189
8190 \end_inset
8191
8192 The layout file format
8193 \end_layout
8194
8195 \begin_layout Standard
8196 The following sections describe how layout files are structured and written.
8197  Our advice is to go slowly, save and test often.
8198  It is really not that hard, except that the multitude of options can become
8199  overwhelming, especially if you try to check out too many at once.
8200  It becomes easier if you use existing layouts of \SpecialChar LyX
8201  as examples/reference
8202  or if you modify an existing layout to your needs.
8203 \end_layout
8204
8205 \begin_layout Standard
8206 Note that all the tags used in layout files are case-insensitive.
8207  This means that 
8208 \begin_inset Flex Code
8209 status collapsed
8210
8211 \begin_layout Plain Layout
8212 Style
8213 \end_layout
8214
8215 \end_inset
8216
8217
8218 \begin_inset Flex Code
8219 status collapsed
8220
8221 \begin_layout Plain Layout
8222 style
8223 \end_layout
8224
8225 \end_inset
8226
8227  and 
8228 \begin_inset Flex Code
8229 status collapsed
8230
8231 \begin_layout Plain Layout
8232 StYlE
8233 \end_layout
8234
8235 \end_inset
8236
8237  are really the same tag.
8238  The possible arguments are printed in brackets after the tag's name.
8239  The default argument is typeset 
8240 \begin_inset Flex Code
8241 status collapsed
8242
8243 \begin_layout Plain Layout
8244
8245 \emph on
8246 emphasized
8247 \end_layout
8248
8249 \end_inset
8250
8251 .
8252  If the argument has a data type like 
8253 \begin_inset Quotes eld
8254 \end_inset
8255
8256 string
8257 \begin_inset Quotes erd
8258 \end_inset
8259
8260  or 
8261 \begin_inset Quotes eld
8262 \end_inset
8263
8264 float
8265 \begin_inset Quotes erd
8266 \end_inset
8267
8268 , the default is shown like this: 
8269 \begin_inset Flex Code
8270 status collapsed
8271
8272 \begin_layout Plain Layout
8273 float=
8274 \emph on
8275 default
8276 \end_layout
8277
8278 \end_inset
8279
8280 .
8281 \end_layout
8282
8283 \begin_layout Subsection
8284 The document class declaration and classification
8285 \end_layout
8286
8287 \begin_layout Standard
8288 Lines in a layout file which begin with 
8289 \begin_inset Flex Code
8290 status collapsed
8291
8292 \begin_layout Plain Layout
8293 #
8294 \end_layout
8295
8296 \end_inset
8297
8298  are comments.
8299  There is one exception to this rule.
8300  All 
8301 \begin_inset Flex Code
8302 status collapsed
8303
8304 \begin_layout Plain Layout
8305 *.layout
8306 \end_layout
8307
8308 \end_inset
8309
8310  files should begin with lines like:
8311 \end_layout
8312
8313 \begin_layout LyX-Code
8314
8315 \size small
8316 #% Do not delete the line below; configure depends on this 
8317 \end_layout
8318
8319 \begin_layout LyX-Code
8320
8321 \size small
8322 #  
8323 \backslash
8324 DeclareLaTeXClass{Article (Standard Class)}
8325 \end_layout
8326
8327 \begin_layout LyX-Code
8328
8329 \size small
8330 #  
8331 \backslash
8332 DeclareCategory{Articles}
8333 \end_layout
8334
8335 \begin_layout Standard
8336 The second and third lines are used when you (re)configure \SpecialChar LyX
8337 .
8338  The layout file is read by the \SpecialChar LaTeX
8339  script 
8340 \begin_inset Flex Code
8341 status collapsed
8342
8343 \begin_layout Plain Layout
8344 chkconfig.ltx
8345 \end_layout
8346
8347 \end_inset
8348
8349 , in a special mode where 
8350 \begin_inset Flex Code
8351 status collapsed
8352
8353 \begin_layout Plain Layout
8354 #
8355 \end_layout
8356
8357 \end_inset
8358
8359  is ignored.
8360  The first line is just a \SpecialChar LaTeX
8361  comment, the second one contains the mandatory
8362  declaration of the text class and the third line contains the optional
8363  classification of the class.
8364  If these lines appear in a file named 
8365 \begin_inset Flex Code
8366 status collapsed
8367
8368 \begin_layout Plain Layout
8369 article.layout
8370 \end_layout
8371
8372 \end_inset
8373
8374 , then they define a text class of name 
8375 \begin_inset Flex Code
8376 status collapsed
8377
8378 \begin_layout Plain Layout
8379 article
8380 \end_layout
8381
8382 \end_inset
8383
8384  (the name of the layout file) which uses the \SpecialChar LaTeX
8385  document class 
8386 \begin_inset Flex Code
8387 status collapsed
8388
8389 \begin_layout Plain Layout
8390 article.cls
8391 \end_layout
8392
8393 \end_inset
8394
8395  (the default is to use the same name as the layout).
8396  The string 
8397 \begin_inset Quotes eld
8398 \end_inset
8399
8400 Article (Standard Class)
8401 \begin_inset Quotes erd
8402 \end_inset
8403
8404  that appears above is used as a description of the text class in the 
8405 \begin_inset Flex Noun
8406 status collapsed
8407
8408 \begin_layout Plain Layout
8409 Document\SpecialChar menuseparator
8410 Settings
8411 \end_layout
8412
8413 \end_inset
8414
8415  dialog.
8416  The category (
8417 \begin_inset Quotes eld
8418 \end_inset
8419
8420 Articles
8421 \begin_inset Quotes erd
8422 \end_inset
8423
8424  in the example) is also used in the 
8425 \begin_inset Flex Noun
8426 status collapsed
8427
8428 \begin_layout Plain Layout
8429 Document\SpecialChar menuseparator
8430 Settings
8431 \end_layout
8432
8433 \end_inset
8434
8435  dialog: the text classes are grouped by these categories (which are usually
8436  genres, so typical categories are 
8437 \begin_inset Quotes eld
8438 \end_inset
8439
8440 Articles
8441 \begin_inset Quotes erd
8442 \end_inset
8443
8444
8445 \begin_inset Quotes eld
8446 \end_inset
8447
8448 Books
8449 \begin_inset Quotes erd
8450 \end_inset
8451
8452
8453 \begin_inset Quotes eld
8454 \end_inset
8455
8456 Reports
8457 \begin_inset Quotes erd
8458 \end_inset
8459
8460
8461 \begin_inset Quotes eld
8462 \end_inset
8463
8464 Letters
8465 \begin_inset Quotes erd
8466 \end_inset
8467
8468
8469 \begin_inset Quotes eld
8470 \end_inset
8471
8472 Presentations
8473 \begin_inset Quotes erd
8474 \end_inset
8475
8476
8477 \begin_inset Quotes eld
8478 \end_inset
8479
8480 Curricula Vitae
8481 \begin_inset Quotes erd
8482 \end_inset
8483
8484  etc.).
8485  If no category has been declared, the class will be put in the 
8486 \begin_inset Quotes eld
8487 \end_inset
8488
8489 Uncategorized
8490 \begin_inset Quotes erd
8491 \end_inset
8492
8493  group.
8494 \end_layout
8495
8496 \begin_layout Standard
8497 Let's assume that you wrote your own text class that uses the 
8498 \begin_inset Flex Code
8499 status collapsed
8500
8501 \begin_layout Plain Layout
8502 article.cls
8503 \end_layout
8504
8505 \end_inset
8506
8507  document class, but where you changed the appearance of the section headings.
8508  If you put it in a file 
8509 \begin_inset Flex Code
8510 status collapsed
8511
8512 \begin_layout Plain Layout
8513 myarticle.layout
8514 \end_layout
8515
8516 \end_inset
8517
8518 , the header of this file should be:
8519 \end_layout
8520
8521 \begin_layout LyX-Code
8522
8523 \size small
8524 #% Do not delete the line below; configure depends on this 
8525 \end_layout
8526
8527 \begin_layout LyX-Code
8528
8529 \size small
8530 #  
8531 \backslash
8532 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8533 \end_layout
8534
8535 \begin_layout LyX-Code
8536
8537 \size small
8538 #  
8539 \backslash
8540 DeclareCategory{Articles}
8541 \end_layout
8542
8543 \begin_layout Standard
8544 This declares a text class 
8545 \begin_inset Flex Code
8546 status collapsed
8547
8548 \begin_layout Plain Layout
8549 myarticle
8550 \end_layout
8551
8552 \end_inset
8553
8554 , associated with the \SpecialChar LaTeX
8555  document class 
8556 \begin_inset Flex Code
8557 status collapsed
8558
8559 \begin_layout Plain Layout
8560 article.cls
8561 \end_layout
8562
8563 \end_inset
8564
8565  and described as 
8566 \begin_inset Quotes eld
8567 \end_inset
8568
8569 Article (with My Own Headings)
8570 \begin_inset Quotes erd
8571 \end_inset
8572
8573 .
8574  If your text class depends on several packages, you can declare it as:
8575 \end_layout
8576
8577 \begin_layout LyX-Code
8578
8579 \size small
8580 #% Do not delete the line below; configure depends on this 
8581 \end_layout
8582
8583 \begin_layout LyX-Code
8584
8585 \size small
8586 #  
8587 \backslash
8588 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8589 \end_layout
8590
8591 \begin_layout LyX-Code
8592
8593 \size small
8594 #  
8595 \backslash
8596 DeclareCategory{Articles}
8597 \end_layout
8598
8599 \begin_layout Standard
8600 This indicates that your text class uses the 
8601 \begin_inset Flex Code
8602 status collapsed
8603
8604 \begin_layout Plain Layout
8605 foo.sty
8606 \end_layout
8607
8608 \end_inset
8609
8610  package.
8611  
8612 \change_deleted 5863208 1594239179
8613 Finally, it is also possible to declare classes for DocBook code.
8614  Typical declarations will look like:
8615 \end_layout
8616
8617 \begin_layout LyX-Code
8618
8619 \change_deleted 5863208 1594239179
8620
8621 \size small
8622 #% Do not delete the line below; configure depends on this 
8623 \end_layout
8624
8625 \begin_layout LyX-Code
8626
8627 \change_deleted 5863208 1594239179
8628
8629 \size small
8630
8631 \backslash
8632 DeclareDocBookClass[article]{SGML (DocBook Article)}
8633 \end_layout
8634
8635 \begin_layout LyX-Code
8636
8637 \change_deleted 5863208 1594239179
8638
8639 \size small
8640
8641 \backslash
8642 DeclareCategory{Articles (DocBook)}
8643 \change_unchanged
8644
8645 \end_layout
8646
8647 \begin_layout Standard
8648 Note that these declarations can also be given an optional parameter declaring
8649  the name of the document class (but not a list).
8650 \end_layout
8651
8652 \begin_layout Standard
8653 So, to be as explicit as possible, the form of the layout declaration is:
8654 \end_layout
8655
8656 \begin_layout LyX-Code
8657
8658 \size small
8659 #  
8660 \backslash
8661 DeclareLaTeXClass[class,package.sty]{layout description}
8662 \end_layout
8663
8664 \begin_layout LyX-Code
8665
8666 \size small
8667 #  
8668 \backslash
8669 DeclareCategory{category}
8670 \end_layout
8671
8672 \begin_layout Standard
8673 The class need only be specified if the name of the \SpecialChar LaTeX
8674  class file and the
8675  name of the layout file are different or if there are packages to load.
8676  If the name of the class file is not specified, then \SpecialChar LyX
8677  will simply assume
8678  that it is the same as the name of the layout file.
8679 \end_layout
8680
8681 \begin_layout Standard
8682 When the text class has been modified to your taste, all you have to do
8683  is to copy it either to 
8684 \begin_inset Flex Code
8685 status collapsed
8686
8687 \begin_layout Plain Layout
8688 LyXDir/layouts/
8689 \end_layout
8690
8691 \end_inset
8692
8693  or to 
8694 \begin_inset Flex Code
8695 status collapsed
8696
8697 \begin_layout Plain Layout
8698 UserDir/layouts
8699 \end_layout
8700
8701 \end_inset
8702
8703 , run 
8704 \begin_inset Flex Noun
8705 status collapsed
8706
8707 \begin_layout Plain Layout
8708 Tools\SpecialChar menuseparator
8709 Reconfigure
8710 \end_layout
8711
8712 \end_inset
8713
8714 , exit \SpecialChar LyX
8715  and restart.
8716  Then your new text class should be available along with the others.
8717 \end_layout
8718
8719 \begin_layout Standard
8720 Once the layout file is installed, you can edit it and see your changes
8721  without having to reconfigure or to restart \SpecialChar LyX
8722 .
8723 \begin_inset Foot
8724 status collapsed
8725
8726 \begin_layout Plain Layout
8727 In versions of \SpecialChar LyX
8728  prior to 1.6, this was not true.
8729  As a result, editing layout files was very time consuming, since you had
8730  constantly to restart \SpecialChar LyX
8731  to see changes.
8732 \end_layout
8733
8734 \end_inset
8735
8736  You can force a reload of the current layout by using the \SpecialChar LyX
8737  function 
8738 \begin_inset Flex Noun
8739 status collapsed
8740
8741 \begin_layout Plain Layout
8742 layout-reload
8743 \end_layout
8744
8745 \end_inset
8746
8747 .
8748  There is no default binding for this function—though, of course, you can
8749  bind it to a key yourself.
8750  But you will normally use this function simply by entering it in the mini-buffe
8751 r.
8752  
8753 \end_layout
8754
8755 \begin_layout Standard
8756
8757 \emph on
8758 Warning
8759 \emph default
8760
8761 \begin_inset Flex Noun
8762 status collapsed
8763
8764 \begin_layout Plain Layout
8765 layout-reload
8766 \end_layout
8767
8768 \end_inset
8769
8770  is very much an `advanced feature'.
8771  It is 
8772 \emph on
8773 strongly
8774 \emph default
8775  recommended that you save your work before using this function.
8776  In fact, it is 
8777 \emph on
8778 strongly
8779 \emph default
8780  recommended that you not attempt to edit layout information while simultaneousl
8781 y working on a document that you care about.
8782  Use a test document.
8783  Syntax errors and the like in your layout file could cause peculiar behavior.
8784  In particular, such errors could cause \SpecialChar LyX
8785  to regard the current layout as
8786  invalid and to attempt to switch to some other layout.
8787 \begin_inset Foot
8788 status collapsed
8789
8790 \begin_layout Plain Layout
8791 Really bad syntax errors may even caused \SpecialChar LyX
8792  to exit.
8793  This is because certain sorts of errors may make \SpecialChar LyX
8794  unable to read 
8795 \emph on
8796 any
8797 \emph default
8798  layout information.
8799  Please be careful.
8800 \end_layout
8801
8802 \end_inset
8803
8804  The \SpecialChar LyX
8805  team strives to keep \SpecialChar LyX
8806  stable in such situations, but safe is better
8807  than sorry.
8808 \begin_inset Foot
8809 status collapsed
8810
8811 \begin_layout Plain Layout
8812 While we're giving advice: make regular backups.
8813  And be nice to your mother.
8814 \end_layout
8815
8816 \end_inset
8817
8818
8819 \end_layout
8820
8821 \begin_layout Subsection
8822 The Module declaration
8823 \end_layout
8824
8825 \begin_layout Standard
8826 A module must begin with a line like the following:
8827 \end_layout
8828
8829 \begin_layout LyX-Code
8830 #
8831 \backslash
8832 DeclareLyXModule[endnotes.sty]{Endnotes}
8833 \change_inserted -712698321 1554395911
8834
8835 \end_layout
8836
8837 \begin_layout LyX-Code
8838
8839 \change_inserted -712698321 1554395924
8840
8841 \size small
8842 #
8843 \backslash
8844 DeclareCategory{Foot- and Endnotes}
8845 \change_deleted -712698321 1554395911
8846
8847 \size default
8848  
8849 \change_unchanged
8850
8851 \end_layout
8852
8853 \begin_layout Standard
8854 The mandatory argument
8855 \change_inserted -712698321 1554395956
8856  of 
8857 \family typewriter
8858
8859 \backslash
8860 DeclareLyXModule
8861 \change_unchanged
8862
8863 \family default
8864 , in curly brackets, is the name of the module, as it should appear in 
8865 \begin_inset Flex Noun
8866 status collapsed
8867
8868 \begin_layout Plain Layout
8869 Document\SpecialChar menuseparator
8870 Settings\SpecialChar menuseparator
8871 Modules
8872 \end_layout
8873
8874 \end_inset
8875
8876 .
8877  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8878  packages
8879  on which the module depends.
8880  It is also possible to use the form 
8881 \begin_inset Flex Noun
8882 status collapsed
8883
8884 \begin_layout Plain Layout
8885 from->to
8886 \end_layout
8887
8888 \end_inset
8889
8890  as an optional argument, which declares that the module can only be used
8891  when there exists a conversion chain between the formats `
8892 \begin_inset Flex Code
8893 status collapsed
8894
8895 \begin_layout Plain Layout
8896 from
8897 \end_layout
8898
8899 \end_inset
8900
8901 ' and `
8902 \begin_inset Flex Code
8903 status collapsed
8904
8905 \begin_layout Plain Layout
8906 to
8907 \end_layout
8908
8909 \end_inset
8910
8911 '.
8912
8913 \change_inserted -712698321 1554396133
8914  The 
8915 \family typewriter
8916
8917 \backslash
8918 DeclareCategory
8919 \family default
8920  declaration is not strictly mandatory, but you should add it, since it
8921  is helpful to find the module.
8922  Please have a look at the existing module categories and if appropriate,
8923  use one of those.
8924 \change_unchanged
8925
8926 \end_layout
8927
8928 \begin_layout Standard
8929 The module 
8930 \change_inserted -712698321 1554395988
8931 and category 
8932 \change_unchanged
8933 declaration should then be followed by lines like the following:
8934 \begin_inset Foot
8935 status collapsed
8936
8937 \begin_layout Plain Layout
8938 Preferably in English if the module should be published with \SpecialChar LyX
8939 .
8940  This description will appear in the list of messages to be translated and
8941  will be thus translated with the next interface update.
8942 \end_layout
8943
8944 \end_inset
8945
8946
8947 \end_layout
8948
8949 \begin_layout LyX-Code
8950 #DescriptionBegin 
8951 \end_layout
8952
8953 \begin_layout LyX-Code
8954 #Adds an endnote command, in addition to footnotes.
8955  
8956 \end_layout
8957
8958 \begin_layout LyX-Code
8959 #You will need to add  
8960 \backslash
8961 theendnotes in TeX code where you 
8962 \end_layout
8963
8964 \begin_layout LyX-Code
8965 #want the endnotes to appear.
8966  
8967 \end_layout
8968
8969 \begin_layout LyX-Code
8970 #DescriptionEnd 
8971 \end_layout
8972
8973 \begin_layout LyX-Code
8974 #Requires: somemodule | othermodule
8975 \end_layout
8976
8977 \begin_layout LyX-Code
8978 #Excludes: badmodule
8979 \end_layout
8980
8981 \begin_layout Standard
8982 The description is used in 
8983 \begin_inset Flex Noun
8984 status collapsed
8985
8986 \begin_layout Plain Layout
8987 Document\SpecialChar menuseparator
8988 Settings\SpecialChar menuseparator
8989 Modules
8990 \end_layout
8991
8992 \end_inset
8993
8994  to provide the user with information about what the module does.
8995  The 
8996 \begin_inset Flex Code
8997 status collapsed
8998
8999 \begin_layout Plain Layout
9000 Requires
9001 \end_layout
9002
9003 \end_inset
9004
9005  line is used to identify other modules with which this one must be used;
9006  the 
9007 \begin_inset Flex Code
9008 status collapsed
9009
9010 \begin_layout Plain Layout
9011 Excludes
9012 \end_layout
9013
9014 \end_inset
9015
9016  line is used to identify modules with which this one may not be used.
9017  Both are optional, and, as shown, multiple modules should be separated
9018  with the pipe symbol: |.
9019  Note that the required modules are treated disjunctively: 
9020 \emph on
9021 at least one
9022 \emph default
9023  of the required modules must be used.
9024  Similarly, 
9025 \emph on
9026 no
9027 \emph default
9028  excluded module may be used.
9029  Note that modules are identified here by their filenames without the 
9030 \begin_inset Flex Code
9031 status collapsed
9032
9033 \begin_layout Plain Layout
9034 .module
9035 \end_layout
9036
9037 \end_inset
9038
9039  extension.
9040  So 
9041 \begin_inset Flex Code
9042 status collapsed
9043
9044 \begin_layout Plain Layout
9045 somemodule
9046 \end_layout
9047
9048 \end_inset
9049
9050  is really 
9051 \begin_inset Flex Code
9052 status collapsed
9053
9054 \begin_layout Plain Layout
9055 somemodule.module
9056 \end_layout
9057
9058 \end_inset
9059
9060 .
9061 \end_layout
9062
9063 \begin_layout Subsection
9064 The CiteEngine file declaration
9065 \end_layout
9066
9067 \begin_layout Standard
9068 A cite engine file must begin with a line like the following:
9069 \end_layout
9070
9071 \begin_layout LyX-Code
9072 #
9073 \backslash
9074 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9075 \end_layout
9076
9077 \begin_layout Standard
9078 The mandatory argument, in curly brackets, is the name of the cite style,
9079  as it should appear in 
9080 \begin_inset Flex Noun
9081 status collapsed
9082
9083 \begin_layout Plain Layout
9084 Document\SpecialChar menuseparator
9085 Settings\SpecialChar menuseparator
9086 Bibliography
9087 \end_layout
9088
9089 \end_inset
9090
9091 .
9092  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
9093  packages
9094  on which the cite engine depends.
9095 \end_layout
9096
9097 \begin_layout Standard
9098 The cite engine declaration should then be followed by lines like the following:
9099 \begin_inset Foot
9100 status collapsed
9101
9102 \begin_layout Plain Layout
9103 Preferably in English if the module should be published with \SpecialChar LyX
9104 .
9105  This description will appear in the list of messages to be translated and
9106  will be thus translated with the next interface update.
9107 \end_layout
9108
9109 \end_inset
9110
9111
9112 \end_layout
9113
9114 \begin_layout LyX-Code
9115 # DescriptionBegin
9116 \end_layout
9117
9118 \begin_layout LyX-Code
9119 #   Biblatex supports many author-year and numerical styles.
9120 \end_layout
9121
9122 \begin_layout LyX-Code
9123 #   It is mainly aimed at the Humanities.
9124  It is highly
9125 \end_layout
9126
9127 \begin_layout LyX-Code
9128 #   customizable, fully localized and provides many features
9129 \end_layout
9130
9131 \begin_layout LyX-Code
9132 #   that are not possible with BibTeX.
9133  The use of 'biber' as
9134 \end_layout
9135
9136 \begin_layout LyX-Code
9137 #   bibliography processor is advised.
9138 \end_layout
9139
9140 \begin_layout LyX-Code
9141 # DescriptionEnd
9142 \end_layout
9143
9144 \begin_layout Standard
9145 The description is used in 
9146 \begin_inset Flex Noun
9147 status collapsed
9148
9149 \begin_layout Plain Layout
9150 Document\SpecialChar menuseparator
9151 Settings\SpecialChar menuseparator
9152 Bibliography
9153 \end_layout
9154
9155 \end_inset
9156
9157  to provide the user with information about the cite engine.
9158 \end_layout
9159
9160 \begin_layout Subsection
9161 Format number
9162 \end_layout
9163
9164 \begin_layout Standard
9165 The first non-comment line of any layout file, included file, or module
9166  
9167 \emph on
9168 must
9169 \emph default
9170  contain the file format number:
9171 \end_layout
9172
9173 \begin_layout Description
9174 \begin_inset Flex Code
9175 status collapsed
9176
9177 \begin_layout Plain Layout
9178 Format
9179 \end_layout
9180
9181 \end_inset
9182
9183  [
9184 \begin_inset Flex Code
9185 status collapsed
9186
9187 \begin_layout Plain Layout
9188 int
9189 \end_layout
9190
9191 \end_inset
9192
9193 ] The format number of the layout file.
9194 \end_layout
9195
9196 \begin_layout Standard
9197 This tag was introduced with \SpecialChar LyX
9198
9199 \begin_inset space ~
9200 \end_inset
9201
9202 1.4.0.
9203  Layout files from older \SpecialChar LyX
9204  versions do not have an explicit file format and
9205  are considered to have 
9206 \begin_inset Flex Code
9207 status collapsed
9208
9209 \begin_layout Plain Layout
9210 Format
9211 \begin_inset space ~
9212 \end_inset
9213
9214 1
9215 \end_layout
9216
9217 \end_inset
9218
9219 .
9220  The format for the present version of \SpecialChar LyX
9221  is format 60.
9222  But each version of \SpecialChar LyX
9223  is capable of reading earlier versions' layout files,
9224  just as they are capable of reading files produced by earlier versions
9225  of \SpecialChar LyX
9226 .
9227  There is, however, no provision for converting to earlier formats.
9228 \end_layout
9229
9230 \begin_layout Subsection
9231 \begin_inset CommandInset label
9232 LatexCommand label
9233 name "subsec:General-text-class"
9234
9235 \end_inset
9236
9237 General text class parameters
9238 \end_layout
9239
9240 \begin_layout Standard
9241 These are general parameters that govern the behavior of an entire document
9242  class.
9243  (This does 
9244 \emph on
9245 not
9246 \emph default
9247  mean that they must appear in 
9248 \begin_inset Flex Code
9249 status collapsed
9250
9251 \begin_layout Plain Layout
9252 .layout
9253 \end_layout
9254
9255 \end_inset
9256
9257  files rather than in modules.
9258  A module can contain any layout tag.)
9259 \end_layout
9260
9261 \begin_layout Description
9262
9263 \change_inserted -712698321 1526899478
9264 \begin_inset Flex Code
9265 status collapsed
9266
9267 \begin_layout Plain Layout
9268
9269 \change_inserted -712698321 1526898610
9270 AddToCiteEngine <engine>
9271 \change_unchanged
9272
9273 \end_layout
9274
9275 \end_inset
9276
9277  Extends the possibilities for displaying citation references.
9278  See 
9279 \begin_inset CommandInset ref
9280 LatexCommand ref
9281 reference "subsec:Citation-engine-description"
9282 plural "false"
9283 caps "false"
9284 noprefix "false"
9285
9286 \end_inset
9287
9288  for details.
9289  Must end with 
9290 \begin_inset Flex Code
9291 status collapsed
9292
9293 \begin_layout Plain Layout
9294
9295 \change_inserted -712698321 1526898823
9296 End
9297 \change_unchanged
9298
9299 \end_layout
9300
9301 \end_inset
9302
9303 .
9304 \end_layout
9305
9306 \begin_layout Description
9307 \begin_inset Flex Code
9308 status collapsed
9309
9310 \begin_layout Plain Layout
9311 AddToHTMLPreamble
9312 \end_layout
9313
9314 \end_inset
9315
9316  Adds information that will be output in the 
9317 \begin_inset Flex Code
9318 status collapsed
9319
9320 \begin_layout Plain Layout
9321 <head>
9322 \end_layout
9323
9324 \end_inset
9325
9326  block when the document is output to XHTML.
9327  Typically, this would be used to output CSS style information, but it can
9328  be used for anything that can appear in 
9329 \begin_inset Flex Code
9330 status collapsed
9331
9332 \begin_layout Plain Layout
9333 <head>
9334 \end_layout
9335
9336 \end_inset
9337
9338 .
9339  Must end with 
9340 \begin_inset Quotes eld
9341 \end_inset
9342
9343
9344 \begin_inset Flex Code
9345 status collapsed
9346
9347 \begin_layout Plain Layout
9348 EndPreamble
9349 \end_layout
9350
9351 \end_inset
9352
9353
9354 \begin_inset Quotes erd
9355 \end_inset
9356
9357 .
9358 \end_layout
9359
9360 \begin_layout Description
9361 \begin_inset Flex Code
9362 status collapsed
9363
9364 \begin_layout Plain Layout
9365 AddToPreamble
9366 \end_layout
9367
9368 \end_inset
9369
9370  Adds information to the document preamble.
9371  Must end with
9372 \begin_inset Newline newline
9373 \end_inset
9374
9375
9376 \begin_inset Quotes eld
9377 \end_inset
9378
9379
9380 \begin_inset Flex Code
9381 status collapsed
9382
9383 \begin_layout Plain Layout
9384 EndPreamble
9385 \end_layout
9386
9387 \end_inset
9388
9389
9390 \begin_inset Quotes erd
9391 \end_inset
9392
9393 .
9394 \change_inserted -712698321 1562592950
9395
9396 \end_layout
9397
9398 \begin_layout Description
9399
9400 \change_inserted -712698321 1562593040
9401 \begin_inset Flex Code
9402 status collapsed
9403
9404 \begin_layout Plain Layout
9405
9406 \change_inserted -712698321 1562592954
9407 BibInToc
9408 \change_unchanged
9409
9410 \end_layout
9411
9412 \end_inset
9413
9414  [
9415 \begin_inset Flex Code
9416 status collapsed
9417
9418 \begin_layout Plain Layout
9419
9420 \change_inserted -712698321 1562592950
9421
9422 \emph on
9423 0
9424 \change_unchanged
9425
9426 \end_layout
9427
9428 \end_inset
9429
9430 ,
9431 \begin_inset space \thinspace{}
9432 \end_inset
9433
9434
9435 \begin_inset Flex Code
9436 status collapsed
9437
9438 \begin_layout Plain Layout
9439
9440 \change_inserted -712698321 1562592950
9441 1
9442 \change_unchanged
9443
9444 \end_layout
9445
9446 \end_inset
9447
9448 ] If the document class adds the bibliography to the table of contents,
9449  add this option with value 
9450 \begin_inset Flex Code
9451 status collapsed
9452
9453 \begin_layout Plain Layout
9454
9455 \change_inserted -712698321 1562592996
9456 1
9457 \change_unchanged
9458
9459 \end_layout
9460
9461 \end_inset
9462
9463  (or 
9464 \begin_inset Flex Code
9465 status collapsed
9466
9467 \begin_layout Plain Layout
9468
9469 \change_inserted -712698321 1562593006
9470 true
9471 \change_unchanged
9472
9473 \end_layout
9474
9475 \end_inset
9476
9477 ).
9478  This prevents the bibliography from being added twice.
9479 \change_unchanged
9480
9481 \end_layout
9482
9483 \begin_layout Description
9484 \begin_inset Flex Code
9485 status collapsed
9486
9487 \begin_layout Plain Layout
9488 CiteEngine <engine>
9489 \end_layout
9490
9491 \end_inset
9492
9493  Defines the possibilities for displaying citation references.
9494  See 
9495 \begin_inset CommandInset ref
9496 LatexCommand ref
9497 reference "subsec:Citation-engine-description"
9498 plural "false"
9499 caps "false"
9500 noprefix "false"
9501
9502 \end_inset
9503
9504  for details.
9505  Must end with 
9506 \begin_inset Quotes eld
9507 \end_inset
9508
9509
9510 \begin_inset Flex Code
9511 status collapsed
9512
9513 \begin_layout Plain Layout
9514 End
9515 \end_layout
9516
9517 \end_inset
9518
9519
9520 \begin_inset Quotes erd
9521 \end_inset
9522
9523 .
9524  Primarily used in cite engine files (see 
9525 \begin_inset CommandInset ref
9526 LatexCommand ref
9527 reference "subsec:Cite-Engine-Files"
9528 plural "false"
9529 caps "false"
9530 noprefix "false"
9531
9532 \end_inset
9533
9534 ).
9535
9536 \change_inserted -712698321 1526898530
9537  Note that if you specify this in a layout file or module, any cite engine
9538  definition will be overridden.
9539  Also see 
9540 \begin_inset Flex Code
9541 status collapsed
9542
9543 \begin_layout Plain Layout
9544
9545 \change_inserted -712698321 1526898530
9546 AddToCiteEngine
9547 \change_unchanged
9548
9549 \end_layout
9550
9551 \end_inset
9552
9553 .
9554 \change_unchanged
9555
9556 \end_layout
9557
9558 \begin_layout Description
9559 \begin_inset Flex Code
9560 status collapsed
9561
9562 \begin_layout Plain Layout
9563 CiteFormat
9564 \end_layout
9565
9566 \end_inset
9567
9568  Defines formats for use in the display of bibliographic information.
9569  See 
9570 \begin_inset CommandInset ref
9571 LatexCommand ref
9572 reference "subsec:Citation-format-description"
9573
9574 \end_inset
9575
9576  for details.
9577  Must end with 
9578 \begin_inset Quotes eld
9579 \end_inset
9580
9581
9582 \begin_inset Flex Code
9583 status collapsed
9584
9585 \begin_layout Plain Layout
9586 End
9587 \end_layout
9588
9589 \end_inset
9590
9591
9592 \begin_inset Quotes erd
9593 \end_inset
9594
9595 .
9596  Primarily used in cite engine files (see 
9597 \begin_inset CommandInset ref
9598 LatexCommand ref
9599 reference "subsec:Cite-Engine-Files"
9600 plural "false"
9601 caps "false"
9602 noprefix "false"
9603
9604 \end_inset
9605
9606 ).
9607
9608 \change_inserted -712698321 1526898585
9609  A cite format defined in a layout or module will override the cite engine
9610  definition.
9611 \change_unchanged
9612
9613 \end_layout
9614
9615 \begin_layout Description
9616 \begin_inset Flex Code
9617 status collapsed
9618
9619 \begin_layout Plain Layout
9620 CiteFramework
9621 \end_layout
9622
9623 \end_inset
9624
9625  [
9626 \begin_inset Flex Code
9627 status collapsed
9628
9629 \begin_layout Plain Layout
9630
9631 \emph on
9632 bibtex
9633 \end_layout
9634
9635 \end_inset
9636
9637 ,
9638 \begin_inset Flex Code
9639 status collapsed
9640
9641 \begin_layout Plain Layout
9642 biblatex
9643 \end_layout
9644
9645 \end_inset
9646
9647 ] Determines whether 
9648 \family sans
9649 Biblatex
9650 \family default
9651  or Bib\SpecialChar TeX
9652  is used to generate a Bibliography.
9653  Primarily used in cite engine files (see 
9654 \begin_inset CommandInset ref
9655 LatexCommand ref
9656 reference "subsec:Cite-Engine-Files"
9657 plural "false"
9658 caps "false"
9659 noprefix "false"
9660
9661 \end_inset
9662
9663 ).
9664 \end_layout
9665
9666 \begin_layout Description
9667 \begin_inset Flex Code
9668 status collapsed
9669
9670 \begin_layout Plain Layout
9671 ClassOptions
9672 \end_layout
9673
9674 \end_inset
9675
9676  Describes various global options supported by the document class.
9677  See 
9678 \begin_inset CommandInset ref
9679 LatexCommand ref
9680 reference "subsec:ClassOptions"
9681
9682 \end_inset
9683
9684  for a description.
9685  Must end with 
9686 \begin_inset Quotes eld
9687 \end_inset
9688
9689
9690 \begin_inset Flex Code
9691 status collapsed
9692
9693 \begin_layout Plain Layout
9694 End
9695 \end_layout
9696
9697 \end_inset
9698
9699
9700 \begin_inset Quotes erd
9701 \end_inset
9702
9703 .
9704 \end_layout
9705
9706 \begin_layout Description
9707 \begin_inset Flex Code
9708 status collapsed
9709
9710 \begin_layout Plain Layout
9711 Columns
9712 \end_layout
9713
9714 \end_inset
9715
9716  [
9717 \begin_inset Flex Code
9718 status collapsed
9719
9720 \begin_layout Plain Layout
9721
9722 \emph on
9723 1
9724 \end_layout
9725
9726 \end_inset
9727
9728 ,
9729 \begin_inset space \thinspace{}
9730 \end_inset
9731
9732
9733 \begin_inset Flex Code
9734 status collapsed
9735
9736 \begin_layout Plain Layout
9737 2
9738 \end_layout
9739
9740 \end_inset
9741
9742 ] Whether the class should 
9743 \emph on
9744 default
9745 \emph default
9746  to having one or two columns.
9747  Can be changed in the 
9748 \begin_inset Flex Noun
9749 status collapsed
9750
9751 \begin_layout Plain Layout
9752 Document\SpecialChar menuseparator
9753 Settings
9754 \end_layout
9755
9756 \end_inset
9757
9758  dialog.
9759 \end_layout
9760
9761 \begin_layout Description
9762 \begin_inset Flex Code
9763 status collapsed
9764
9765 \begin_layout Plain Layout
9766 Counter
9767 \end_layout
9768
9769 \end_inset
9770
9771  [
9772 \begin_inset Flex Code
9773 status collapsed
9774
9775 \begin_layout Plain Layout
9776 string
9777 \end_layout
9778
9779 \end_inset
9780
9781 ] This sequence defines the properties for a counter.
9782  If the counter does not yet exist, it is created; if it does exist, it
9783  is modified.
9784  Must end with 
9785 \begin_inset Quotes eld
9786 \end_inset
9787
9788
9789 \begin_inset Flex Code
9790 status collapsed
9791
9792 \begin_layout Plain Layout
9793 End
9794 \end_layout
9795
9796 \end_inset
9797
9798
9799 \begin_inset Quotes erd
9800 \end_inset
9801
9802 .
9803 \begin_inset Newline newline
9804 \end_inset
9805
9806 See 
9807 \begin_inset CommandInset ref
9808 LatexCommand ref
9809 reference "subsec:Counters"
9810
9811 \end_inset
9812
9813  for details on counters.
9814 \end_layout
9815
9816 \begin_layout Description
9817 \begin_inset Flex Code
9818 status collapsed
9819
9820 \begin_layout Plain Layout
9821 DefaultFont
9822 \end_layout
9823
9824 \end_inset
9825
9826  Sets the default font used to display the document.
9827  See 
9828 \begin_inset CommandInset ref
9829 LatexCommand ref
9830 reference "subsec:Font-description"
9831
9832 \end_inset
9833
9834  for how to declare fonts.
9835  Must end with 
9836 \begin_inset Quotes eld
9837 \end_inset
9838
9839
9840 \begin_inset Flex Code
9841 status collapsed
9842
9843 \begin_layout Plain Layout
9844 EndFont
9845 \end_layout
9846
9847 \end_inset
9848
9849
9850 \begin_inset Quotes erd
9851 \end_inset
9852
9853 .
9854 \end_layout
9855
9856 \begin_layout Description
9857 \begin_inset Flex Code
9858 status collapsed
9859
9860 \begin_layout Plain Layout
9861 DefaultModule
9862 \end_layout
9863
9864 \end_inset
9865
9866  [
9867 \begin_inset Flex Code
9868 status collapsed
9869
9870 \begin_layout Plain Layout
9871 <module>
9872 \end_layout
9873
9874 \end_inset
9875
9876 ] Specifies a module to be included by default with this document class.
9877  The module is specified as filename without the 
9878 \begin_inset Flex Code
9879 status collapsed
9880
9881 \begin_layout Plain Layout
9882 .module
9883 \end_layout
9884
9885 \end_inset
9886
9887  extension.
9888  The user can still remove the module, but it will be active at the outset.
9889  (This applies only when new files are created, or when this class is chosen
9890  for an existing document.)
9891 \end_layout
9892
9893 \begin_layout Description
9894 \begin_inset Flex Code
9895 status collapsed
9896
9897 \begin_layout Plain Layout
9898 DefaultStyle
9899 \end_layout
9900
9901 \end_inset
9902
9903  [
9904 \begin_inset Flex Code
9905 status collapsed
9906
9907 \begin_layout Plain Layout
9908 <style>
9909 \end_layout
9910
9911 \end_inset
9912
9913 ] This is the style that will be assigned to new paragraphs, usually 
9914 \begin_inset Flex Noun
9915 status collapsed
9916
9917 \begin_layout Plain Layout
9918 Standard
9919 \end_layout
9920
9921 \end_inset
9922
9923 .
9924  This will default to the first defined style if not given, but you are
9925  encouraged to use this directive.
9926 \end_layout
9927
9928 \begin_layout Description
9929
9930 \change_inserted -970929547 1515112870
9931 \begin_inset Flex Code
9932 status collapsed
9933
9934 \begin_layout Plain Layout
9935
9936 \change_inserted -970929547 1515112782
9937 DocBookRoot
9938 \change_unchanged
9939
9940 \end_layout
9941
9942 \end_inset
9943
9944  [
9945 \begin_inset Flex Code
9946 status collapsed
9947
9948 \begin_layout Plain Layout
9949
9950 \change_inserted -970929547 1515112766
9951 string
9952 \change_unchanged
9953
9954 \end_layout
9955
9956 \end_inset
9957
9958 ] The root element (at the top of the document) to use when outputting documents
9959  with this class in DocBook.
9960  The default value is 
9961 \begin_inset Quotes eld
9962 \end_inset
9963
9964
9965 \begin_inset Flex Code
9966 status collapsed
9967
9968 \begin_layout Plain Layout
9969
9970 \change_inserted -970929547 1515112845
9971 article
9972 \change_unchanged
9973
9974 \end_layout
9975
9976 \end_inset
9977
9978
9979 \begin_inset Quotes erd
9980 \end_inset
9981
9982 .
9983
9984 \change_deleted 1075283030 1594226862
9985  
9986 \change_inserted 1075283030 1594226777
9987
9988 \end_layout
9989
9990 \begin_layout Description
9991
9992 \change_inserted 1075283030 1594226859
9993 \begin_inset Flex Code
9994 status collapsed
9995
9996 \begin_layout Plain Layout
9997
9998 \change_inserted 1075283030 1594226785
9999 DocBookForceAbstract
10000 \change_unchanged
10001
10002 \end_layout
10003
10004 \end_inset
10005
10006  [
10007 \begin_inset Flex Code
10008 status collapsed
10009
10010 \begin_layout Plain Layout
10011
10012 \change_inserted 1075283030 1594226804
10013 boolean
10014 \change_unchanged
10015
10016 \end_layout
10017
10018 \end_inset
10019
10020 ] If 
10021 \begin_inset Quotes eld
10022 \end_inset
10023
10024
10025 \family typewriter
10026 true
10027 \family default
10028
10029 \begin_inset Quotes erd
10030 \end_inset
10031
10032 , the root element will always have an 
10033 \family typewriter
10034 <abstract>
10035 \family default
10036  tag.
10037  The default value is 
10038 \begin_inset Quotes eld
10039 \end_inset
10040
10041
10042 \family typewriter
10043 false
10044 \family default
10045
10046 \begin_inset Quotes erd
10047 \end_inset
10048
10049 .
10050 \change_unchanged
10051
10052 \end_layout
10053
10054 \begin_layout Description
10055 \begin_inset Flex Code
10056 status collapsed
10057
10058 \begin_layout Plain Layout
10059 ExcludesModule
10060 \end_layout
10061
10062 \end_inset
10063
10064  [
10065 \begin_inset Flex Code
10066 status collapsed
10067
10068 \begin_layout Plain Layout
10069 <module>
10070 \end_layout
10071
10072 \end_inset
10073
10074 ] This tag indicates that the module (which is specified by filename without
10075  the 
10076 \begin_inset Flex Code
10077 status collapsed
10078
10079 \begin_layout Plain Layout
10080 .module
10081 \end_layout
10082
10083 \end_inset
10084
10085  extension) cannot be used with this document class.
10086  This might be used in a journal-specific layout file to prevent, say, the
10087  use of the 
10088 \begin_inset Flex Code
10089 status collapsed
10090
10091 \begin_layout Plain Layout
10092 theorems-sec
10093 \end_layout
10094
10095 \end_inset
10096
10097  module that numbers theorems by section.
10098  This tag may 
10099 \emph on
10100 not
10101 \emph default
10102  be used in a module.
10103  Modules have their own way of excluding other modules (see 
10104 \begin_inset CommandInset ref
10105 LatexCommand ref
10106 reference "subsec:Layout-modules"
10107
10108 \end_inset
10109
10110 ).
10111 \end_layout
10112
10113 \begin_layout Description
10114 \begin_inset Flex Code
10115 status collapsed
10116
10117 \begin_layout Plain Layout
10118 Float
10119 \end_layout
10120
10121 \end_inset
10122
10123  Defines a new float.
10124  See 
10125 \begin_inset CommandInset ref
10126 LatexCommand ref
10127 reference "subsec:Floats"
10128
10129 \end_inset
10130
10131  for details.
10132  Must end with 
10133 \begin_inset Quotes eld
10134 \end_inset
10135
10136
10137 \begin_inset Flex Code
10138 status collapsed
10139
10140 \begin_layout Plain Layout
10141 End
10142 \end_layout
10143
10144 \end_inset
10145
10146
10147 \begin_inset Quotes erd
10148 \end_inset
10149
10150 .
10151 \end_layout
10152
10153 \begin_layout Description
10154 \begin_inset Flex Code
10155 status collapsed
10156
10157 \begin_layout Plain Layout
10158 HTMLPreamble
10159 \end_layout
10160
10161 \end_inset
10162
10163  Sets the information that will be output in the 
10164 \begin_inset Flex Code
10165 status collapsed
10166
10167 \begin_layout Plain Layout
10168 <head>
10169 \end_layout
10170
10171 \end_inset
10172
10173  block when this document class is output to XHTML.
10174  Note that this will completely override any prior 
10175 \begin_inset Flex Code
10176 status collapsed
10177
10178 \begin_layout Plain Layout
10179 HTMLPreamble
10180 \end_layout
10181
10182 \end_inset
10183
10184  or 
10185 \begin_inset Flex Code
10186 status collapsed
10187
10188 \begin_layout Plain Layout
10189 AddToHTMLPreamble
10190 \end_layout
10191
10192 \end_inset
10193
10194  declarations.
10195  (Use
10196 \begin_inset Newline newline
10197 \end_inset
10198
10199
10200 \begin_inset Flex Code
10201 status collapsed
10202
10203 \begin_layout Plain Layout
10204 AddToHTMLPreamble
10205 \end_layout
10206
10207 \end_inset
10208
10209  if you just want to add material to the preamble.) Must end with 
10210 \begin_inset Quotes eld
10211 \end_inset
10212
10213
10214 \begin_inset Flex Code
10215 status collapsed
10216
10217 \begin_layout Plain Layout
10218 EndPreamble
10219 \end_layout
10220
10221 \end_inset
10222
10223
10224 \begin_inset Quotes erd
10225 \end_inset
10226
10227 .
10228 \end_layout
10229
10230 \begin_layout Description
10231 \begin_inset Flex Code
10232 status collapsed
10233
10234 \begin_layout Plain Layout
10235 HTMLTOCSection
10236 \end_layout
10237
10238 \end_inset
10239
10240  [
10241 \begin_inset Flex Code
10242 status collapsed
10243
10244 \begin_layout Plain Layout
10245 <style>
10246 \end_layout
10247
10248 \end_inset
10249
10250 ] The style to use for the table of contents, bibliography, and so forth,
10251  when the document is output to HTML.
10252  For articles, this should normally be 
10253 \begin_inset Flex Code
10254 status collapsed
10255
10256 \begin_layout Plain Layout
10257 Section
10258 \end_layout
10259
10260 \end_inset
10261
10262 ; for books 
10263 \begin_inset Flex Code
10264 status collapsed
10265
10266 \begin_layout Plain Layout
10267 Chapter
10268 \end_layout
10269
10270 \end_inset
10271
10272 .
10273  If it is not given, then \SpecialChar LyX
10274  will attempt to figure out which layout to use.
10275 \end_layout
10276
10277 \begin_layout Description
10278 \begin_inset Flex Code
10279 status collapsed
10280
10281 \begin_layout Plain Layout
10282 IfCounter
10283 \end_layout
10284
10285 \end_inset
10286
10287  [
10288 \begin_inset Flex Code
10289 status collapsed
10290
10291 \begin_layout Plain Layout
10292 <counter>
10293 \end_layout
10294
10295 \end_inset
10296
10297 ] Modifies the properties of the given counter.
10298  If the counter does not exist, the statement is ignored.
10299  Must end with 
10300 \begin_inset Quotes eld
10301 \end_inset
10302
10303
10304 \begin_inset Flex Code
10305 status collapsed
10306
10307 \begin_layout Plain Layout
10308 End
10309 \end_layout
10310
10311 \end_inset
10312
10313
10314 \begin_inset Quotes erd
10315 \end_inset
10316
10317 .
10318 \begin_inset Newline newline
10319 \end_inset
10320
10321 See 
10322 \begin_inset CommandInset ref
10323 LatexCommand ref
10324 reference "subsec:Counters"
10325
10326 \end_inset
10327
10328  for details on counters.
10329 \end_layout
10330
10331 \begin_layout Description
10332 \begin_inset Flex Code
10333 status collapsed
10334
10335 \begin_layout Plain Layout
10336 Input
10337 \end_layout
10338
10339 \end_inset
10340
10341  [
10342 \begin_inset Flex Code
10343 status collapsed
10344
10345 \begin_layout Plain Layout
10346 <filename>
10347 \end_layout
10348
10349 \end_inset
10350
10351 ] This allows you to include another layout definition file within yours
10352  to avoid duplicating commands.
10353  Common examples are the standard layout files, for example, 
10354 \begin_inset Flex Code
10355 status collapsed
10356
10357 \begin_layout Plain Layout
10358 stdclass.inc
10359 \end_layout
10360
10361 \end_inset
10362
10363 , which contains most of the basic layouts.
10364 \end_layout
10365
10366 \begin_layout Description
10367 \begin_inset Flex Code
10368 status collapsed
10369
10370 \begin_layout Plain Layout
10371 InsetLayout
10372 \end_layout
10373
10374 \end_inset
10375
10376  [
10377 \begin_inset Flex Code
10378 status collapsed
10379
10380 \begin_layout Plain Layout
10381 <type>
10382 \end_layout
10383
10384 \end_inset
10385
10386 ] This section (re-)defines the layout of an inset.
10387  It can be applied to an existing inset or to a new, user-defined inset,
10388  e.g., a new character style.
10389  Must end with 
10390 \begin_inset Quotes eld
10391 \end_inset
10392
10393
10394 \begin_inset Flex Code
10395 status collapsed
10396
10397 \begin_layout Plain Layout
10398 End
10399 \end_layout
10400
10401 \end_inset
10402
10403
10404 \begin_inset Quotes erd
10405 \end_inset
10406
10407 .
10408 \begin_inset Newline newline
10409 \end_inset
10410
10411 See 
10412 \begin_inset CommandInset ref
10413 LatexCommand ref
10414 reference "subsec:Flex-insets-and"
10415
10416 \end_inset
10417
10418  for more information.
10419  
10420 \end_layout
10421
10422 \begin_layout Description
10423 \begin_inset Flex Code
10424 status collapsed
10425
10426 \begin_layout Plain Layout
10427 LeftMargin
10428 \end_layout
10429
10430 \end_inset
10431
10432  [
10433 \begin_inset Flex Code
10434 status collapsed
10435
10436 \begin_layout Plain Layout
10437 string
10438 \end_layout
10439
10440 \end_inset
10441
10442 ] A string that indicates the width of the left margin on the screen, for
10443  example, 
10444 \begin_inset Quotes eld
10445 \end_inset
10446
10447
10448 \begin_inset Flex Code
10449 status collapsed
10450
10451 \begin_layout Plain Layout
10452 MMMMM
10453 \end_layout
10454
10455 \end_inset
10456
10457
10458 \begin_inset Quotes erd
10459 \end_inset
10460
10461 .
10462  (Note that this is not a `length', like 
10463 \begin_inset Quotes eld
10464 \end_inset
10465
10466 2ex
10467 \begin_inset Quotes erd
10468 \end_inset
10469
10470 .)
10471 \end_layout
10472
10473 \begin_layout Description
10474 \begin_inset Flex Code
10475 status collapsed
10476
10477 \begin_layout Plain Layout
10478 MaxCiteNames
10479 \end_layout
10480
10481 \end_inset
10482
10483  [
10484 \begin_inset Flex Code
10485 status collapsed
10486
10487 \begin_layout Plain Layout
10488 integer
10489 \end_layout
10490
10491 \end_inset
10492
10493 ] An integer that determines the maximal number of names displayed in an
10494  author-year citation before the citation switches to 
10495 \begin_inset Quotes eld
10496 \end_inset
10497
10498 FirstAuthor et al.
10499 \begin_inset Quotes erd
10500 \end_inset
10501
10502 .
10503  Primarily used in cite engine files (see 
10504 \begin_inset CommandInset ref
10505 LatexCommand ref
10506 reference "subsec:Cite-Engine-Files"
10507 plural "false"
10508 caps "false"
10509 noprefix "false"
10510
10511 \end_inset
10512
10513 ).
10514 \end_layout
10515
10516 \begin_layout Description
10517 \begin_inset Flex Code
10518 status collapsed
10519
10520 \begin_layout Plain Layout
10521 ModifyStyle
10522 \end_layout
10523
10524 \end_inset
10525
10526  [
10527 \begin_inset Flex Code
10528 status collapsed
10529
10530 \begin_layout Plain Layout
10531 <style>
10532 \end_layout
10533
10534 \end_inset
10535
10536 ] Modifies the properties of the given paragraph style.
10537  If the style does not exist, this section is ignored.
10538  Must end with 
10539 \begin_inset Quotes eld
10540 \end_inset
10541
10542
10543 \begin_inset Flex Code
10544 status collapsed
10545
10546 \begin_layout Plain Layout
10547 End
10548 \end_layout
10549
10550 \end_inset
10551
10552
10553 \begin_inset Quotes erd
10554 \end_inset
10555
10556 .
10557 \end_layout
10558
10559 \begin_layout Description
10560 \begin_inset Flex Code
10561 status collapsed
10562
10563 \begin_layout Plain Layout
10564 NoCounter
10565 \end_layout
10566
10567 \end_inset
10568
10569  [
10570 \begin_inset Flex Code
10571 status collapsed
10572
10573 \begin_layout Plain Layout
10574 <counter>
10575 \end_layout
10576
10577 \end_inset
10578
10579 ] Deletes an existing counter, usually one defined in an included file.
10580 \end_layout
10581
10582 \begin_layout Description
10583 \begin_inset Flex Code
10584 status collapsed
10585
10586 \begin_layout Plain Layout
10587 NoFloat
10588 \end_layout
10589
10590 \end_inset
10591
10592  [
10593 \begin_inset Flex Code
10594 status collapsed
10595
10596 \begin_layout Plain Layout
10597 <float>
10598 \end_layout
10599
10600 \end_inset
10601
10602 ] Deletes an existing float.
10603  This is particularly useful when you want to suppress a float that has
10604  been defined in an input file.
10605 \end_layout
10606
10607 \begin_layout Description
10608 \begin_inset Flex Code
10609 status collapsed
10610
10611 \begin_layout Plain Layout
10612 NoStyle
10613 \end_layout
10614
10615 \end_inset
10616
10617  [
10618 \begin_inset Flex Code
10619 status collapsed
10620
10621 \begin_layout Plain Layout
10622 <style>
10623 \end_layout
10624
10625 \end_inset
10626
10627 ] Deletes an existing style.
10628 \end_layout
10629
10630 \begin_layout Description
10631 \begin_inset Flex Code
10632 status collapsed
10633
10634 \begin_layout Plain Layout
10635 OutlinerName
10636 \end_layout
10637
10638 \end_inset
10639
10640  [
10641 \begin_inset Flex Code
10642 status collapsed
10643
10644 \begin_layout Plain Layout
10645 <type>
10646 \end_layout
10647
10648 \end_inset
10649
10650 ] [
10651 \begin_inset Flex Code
10652 status collapsed
10653
10654 \begin_layout Plain Layout
10655 <string>
10656 \end_layout
10657
10658 \end_inset
10659
10660 ] Define a new table of contents with type 
10661 \begin_inset Flex Code
10662 status collapsed
10663
10664 \begin_layout Plain Layout
10665 <type>
10666 \end_layout
10667
10668 \end_inset
10669
10670  and name 
10671 \begin_inset Flex Code
10672 status collapsed
10673
10674 \begin_layout Plain Layout
10675 <string>
10676 \end_layout
10677
10678 \end_inset
10679
10680 .
10681  See also the AddToToc commands.
10682 \end_layout
10683
10684 \begin_layout Description
10685 \begin_inset Flex Code
10686 status collapsed
10687
10688 \begin_layout Plain Layout
10689 OutputFormat
10690 \end_layout
10691
10692 \end_inset
10693
10694  [
10695 \begin_inset Flex Code
10696 status collapsed
10697
10698 \begin_layout Plain Layout
10699 <format>
10700 \end_layout
10701
10702 \end_inset
10703
10704 ] The file format (as defined in the \SpecialChar LyX
10705  preferences) produced by this document
10706  class.
10707  It is mainly useful when 
10708 \begin_inset Flex Code
10709 status collapsed
10710
10711 \begin_layout Plain Layout
10712 OutputType
10713 \end_layout
10714
10715 \end_inset
10716
10717  is 
10718 \begin_inset Flex Code
10719 status collapsed
10720
10721 \begin_layout Plain Layout
10722 literate
10723 \end_layout
10724
10725 \end_inset
10726
10727  and one wants to define a new type of literate document.
10728  The format is reset to 
10729 \change_deleted 5863208 1594239413
10730
10731 \begin_inset Quotes eld
10732 \end_inset
10733
10734
10735 \begin_inset Flex Code
10736 status collapsed
10737
10738 \begin_layout Plain Layout
10739 docbook
10740 \end_layout
10741
10742 \end_inset
10743
10744
10745 \begin_inset Quotes erd
10746 \end_inset
10747
10748  or
10749 \change_unchanged
10750  
10751 \begin_inset Quotes eld
10752 \end_inset
10753
10754
10755 \begin_inset Flex Code
10756 status collapsed
10757
10758 \begin_layout Plain Layout
10759 latex
10760 \end_layout
10761
10762 \end_inset
10763
10764
10765 \begin_inset Quotes erd
10766 \end_inset
10767
10768  when the corresponding 
10769 \begin_inset Flex Code
10770 status collapsed
10771
10772 \begin_layout Plain Layout
10773 OutputType
10774 \end_layout
10775
10776 \end_inset
10777
10778  parameter is encountered.
10779 \end_layout
10780
10781 \begin_layout Description
10782 \begin_inset Flex Code
10783 status collapsed
10784
10785 \begin_layout Plain Layout
10786 OutputType
10787 \end_layout
10788
10789 \end_inset
10790
10791  [
10792 \begin_inset Flex Code
10793 status collapsed
10794
10795 \begin_layout Plain Layout
10796
10797 \emph on
10798 lat
10799 \emph default
10800 ex
10801 \end_layout
10802
10803 \end_inset
10804
10805
10806 \change_deleted 5863208 1594239430
10807
10808 \begin_inset Flex Code
10809 status collapsed
10810
10811 \begin_layout Plain Layout
10812 docbook
10813 \end_layout
10814
10815 \end_inset
10816
10817 ,
10818 \change_unchanged
10819  
10820 \begin_inset Flex Code
10821 status collapsed
10822
10823 \begin_layout Plain Layout
10824 literate
10825 \end_layout
10826
10827 \end_inset
10828
10829 ] Specifies what sort of output documents using this class will produce.
10830 \end_layout
10831
10832 \begin_layout Description
10833 \begin_inset Flex Code
10834 status collapsed
10835
10836 \begin_layout Plain Layout
10837 PackageOptions
10838 \end_layout
10839
10840 \end_inset
10841
10842  [
10843 \begin_inset Flex Code
10844 status collapsed
10845
10846 \begin_layout Plain Layout
10847 string
10848 \end_layout
10849
10850 \end_inset
10851
10852  
10853 \begin_inset Flex Code
10854 status collapsed
10855
10856 \begin_layout Plain Layout
10857 string
10858 \end_layout
10859
10860 \end_inset
10861
10862 ] Specifies options, given in the second string, for the package named by
10863  the first string.
10864  For example, 
10865 \begin_inset Quotes eld
10866 \end_inset
10867
10868
10869 \begin_inset Flex Code
10870 status collapsed
10871
10872 \begin_layout Plain Layout
10873 PackageOptions natbib square
10874 \end_layout
10875
10876 \end_inset
10877
10878
10879 \begin_inset Quotes erd
10880 \end_inset
10881
10882  will cause 
10883 \begin_inset Flex Code
10884 status collapsed
10885
10886 \begin_layout Plain Layout
10887 natbib
10888 \end_layout
10889
10890 \end_inset
10891
10892  to be loaded with the 
10893 \begin_inset Flex Code
10894 status collapsed
10895
10896 \begin_layout Plain Layout
10897 square
10898 \end_layout
10899
10900 \end_inset
10901
10902  option.
10903  (For \SpecialChar TeX
10904 perts, this causes \SpecialChar LyX
10905  to output: 
10906 \begin_inset Flex Code
10907 status collapsed
10908
10909 \begin_layout Plain Layout
10910
10911 \backslash
10912 PassOptionsToPackage{natbib}{square}
10913 \end_layout
10914
10915 \end_inset
10916
10917  prior to loading 
10918 \begin_inset Flex Code
10919 status collapsed
10920
10921 \begin_layout Plain Layout
10922 natbib
10923 \end_layout
10924
10925 \end_inset
10926
10927 .)
10928 \change_inserted -712698321 1565102364
10929
10930 \end_layout
10931
10932 \begin_layout Description
10933
10934 \change_inserted -712698321 1565102470
10935 \begin_inset Flex Code
10936 status collapsed
10937
10938 \begin_layout Plain Layout
10939
10940 \change_inserted -712698321 1565102365
10941 PageSize
10942 \change_unchanged
10943
10944 \end_layout
10945
10946 \end_inset
10947
10948  [
10949 \begin_inset Flex Code
10950 status collapsed
10951
10952 \begin_layout Plain Layout
10953
10954 \change_inserted -712698321 1565105222
10955
10956 \emph on
10957 custom
10958 \emph default
10959 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
10960  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
10961 \change_unchanged
10962
10963 \end_layout
10964
10965 \end_inset
10966
10967 ] The default page size.
10968  This is used by some converters.
10969 \change_unchanged
10970
10971 \end_layout
10972
10973 \begin_layout Description
10974 \begin_inset Flex Code
10975 status collapsed
10976
10977 \begin_layout Plain Layout
10978 PageStyle
10979 \end_layout
10980
10981 \end_inset
10982
10983  [
10984 \begin_inset Flex Code
10985 status collapsed
10986
10987 \begin_layout Plain Layout
10988
10989 \emph on
10990 plain
10991 \end_layout
10992
10993 \end_inset
10994
10995
10996 \begin_inset Flex Code
10997 status collapsed
10998
10999 \begin_layout Plain Layout
11000 empty
11001 \end_layout
11002
11003 \end_inset
11004
11005
11006 \begin_inset Flex Code
11007 status collapsed
11008
11009 \begin_layout Plain Layout
11010 headings
11011 \end_layout
11012
11013 \end_inset
11014
11015 ] The default pagestyle.
11016  Can be changed in the 
11017 \begin_inset Flex Noun
11018 status collapsed
11019
11020 \begin_layout Plain Layout
11021 Document\SpecialChar menuseparator
11022 Settings
11023 \end_layout
11024
11025 \end_inset
11026
11027  dialog.
11028 \end_layout
11029
11030 \begin_layout Description
11031 \begin_inset Flex Code
11032 status collapsed
11033
11034 \begin_layout Plain Layout
11035 Preamble
11036 \end_layout
11037
11038 \end_inset
11039
11040  Sets the preamble for the \SpecialChar LaTeX
11041  document.
11042  Note that this will completely override any prior 
11043 \begin_inset Flex Code
11044 status collapsed
11045
11046 \begin_layout Plain Layout
11047 Preamble
11048 \end_layout
11049
11050 \end_inset
11051
11052  or 
11053 \begin_inset Flex Code
11054 status collapsed
11055
11056 \begin_layout Plain Layout
11057 AddToPreamble
11058 \end_layout
11059
11060 \end_inset
11061
11062  declarations.
11063  (Use 
11064 \begin_inset Flex Code
11065 status collapsed
11066
11067 \begin_layout Plain Layout
11068 AddToPreamble
11069 \end_layout
11070
11071 \end_inset
11072
11073  if you just want to add material to the preamble.) Must end with 
11074 \begin_inset Quotes eld
11075 \end_inset
11076
11077
11078 \begin_inset Flex Code
11079 status collapsed
11080
11081 \begin_layout Plain Layout
11082 EndPreamble
11083 \end_layout
11084
11085 \end_inset
11086
11087
11088 \begin_inset Quotes erd
11089 \end_inset
11090
11091 .
11092 \end_layout
11093
11094 \begin_layout Description
11095 \begin_inset Flex Code
11096 status collapsed
11097
11098 \begin_layout Plain Layout
11099 Provides
11100 \end_layout
11101
11102 \end_inset
11103
11104  [
11105 \begin_inset Flex Code
11106 status collapsed
11107
11108 \begin_layout Plain Layout
11109 string
11110 \end_layout
11111
11112 \end_inset
11113
11114 ] [
11115 \begin_inset Flex Code
11116 status collapsed
11117
11118 \begin_layout Plain Layout
11119
11120 \emph on
11121 0
11122 \end_layout
11123
11124 \end_inset
11125
11126 ,
11127 \begin_inset space \thinspace{}
11128 \end_inset
11129
11130
11131 \begin_inset Flex Code
11132 status collapsed
11133
11134 \begin_layout Plain Layout
11135 1
11136 \end_layout
11137
11138 \end_inset
11139
11140 ] Whether the class already provides the feature 
11141 \begin_inset Flex Code
11142 status collapsed
11143
11144 \begin_layout Plain Layout
11145 string
11146 \end_layout
11147
11148 \end_inset
11149
11150 .
11151  A feature is in general the name of a package (e.
11152 \begin_inset space \thinspace{}
11153 \end_inset
11154
11155 g.
11156 \begin_inset space \space{}
11157 \end_inset
11158
11159
11160 \begin_inset Flex Code
11161 status collapsed
11162
11163 \begin_layout Plain Layout
11164 amsmath
11165 \end_layout
11166
11167 \end_inset
11168
11169  or 
11170 \begin_inset Flex Code
11171 status collapsed
11172
11173 \begin_layout Plain Layout
11174 makeidx
11175 \end_layout
11176
11177 \end_inset
11178
11179 ) or a macro (e.
11180 \begin_inset space \thinspace{}
11181 \end_inset
11182
11183 g.
11184 \begin_inset space \space{}
11185 \end_inset
11186
11187
11188 \begin_inset Flex Code
11189 status collapsed
11190
11191 \begin_layout Plain Layout
11192 url
11193 \end_layout
11194
11195 \end_inset
11196
11197  or 
11198 \begin_inset Flex Code
11199 status collapsed
11200
11201 \begin_layout Plain Layout
11202 boldsymbol
11203 \end_layout
11204
11205 \end_inset
11206
11207 ).
11208  See 
11209 \begin_inset CommandInset ref
11210 LatexCommand ref
11211 reference "chap:List-of-functions"
11212
11213 \end_inset
11214
11215  for the list of features.
11216 \end_layout
11217
11218 \begin_layout Description
11219 \begin_inset Flex Code
11220 status collapsed
11221
11222 \begin_layout Plain Layout
11223 ProvidesModule
11224 \end_layout
11225
11226 \end_inset
11227
11228  [
11229 \begin_inset Flex Code
11230 status collapsed
11231
11232 \begin_layout Plain Layout
11233 string
11234 \end_layout
11235
11236 \end_inset
11237
11238 ] Indicates that this layout provides the functionality of the module mentioned,
11239  which should be specified by the filename without the 
11240 \begin_inset Flex Code
11241 status collapsed
11242
11243 \begin_layout Plain Layout
11244 .module
11245 \end_layout
11246
11247 \end_inset
11248
11249  extension.
11250  This will typically be used if the layout includes the module directly,
11251  rather than using the 
11252 \begin_inset Flex Code
11253 status collapsed
11254
11255 \begin_layout Plain Layout
11256 DefaultModule
11257 \end_layout
11258
11259 \end_inset
11260
11261  tag to indicate that it ought to be used.
11262  It could also be used in a module that provided an alternate implementation
11263  of the same functionality.
11264 \end_layout
11265
11266 \begin_layout Description
11267 \begin_inset Flex Code
11268 status collapsed
11269
11270 \begin_layout Plain Layout
11271 ProvideStyle
11272 \end_layout
11273
11274 \end_inset
11275
11276  [
11277 \begin_inset Flex Code
11278 status collapsed
11279
11280 \begin_layout Plain Layout
11281 <style>
11282 \end_layout
11283
11284 \end_inset
11285
11286 ] Creates a new paragraph style if it does not already exist.
11287  If the style does exist, this section is ignored.
11288  Must end with 
11289 \begin_inset Quotes eld
11290 \end_inset
11291
11292
11293 \begin_inset Flex Code
11294 status collapsed
11295
11296 \begin_layout Plain Layout
11297 End
11298 \end_layout
11299
11300 \end_inset
11301
11302
11303 \begin_inset Quotes erd
11304 \end_inset
11305
11306 .
11307 \end_layout
11308
11309 \begin_layout Description
11310 \begin_inset Flex Code
11311 status collapsed
11312
11313 \begin_layout Plain Layout
11314 Requires
11315 \end_layout
11316
11317 \end_inset
11318
11319  [
11320 \begin_inset Flex Code
11321 status collapsed
11322
11323 \begin_layout Plain Layout
11324 string
11325 \end_layout
11326
11327 \end_inset
11328
11329 ] Whether the class requires the feature 
11330 \begin_inset Flex Code
11331 status collapsed
11332
11333 \begin_layout Plain Layout
11334 string
11335 \end_layout
11336
11337 \end_inset
11338
11339 .
11340  Multiple features must be separated by commas.
11341  Note that you can only request supported features.
11342  (See 
11343 \begin_inset CommandInset ref
11344 LatexCommand ref
11345 reference "chap:List-of-functions"
11346
11347 \end_inset
11348
11349  for the list of features.).
11350  If you require a package with specific options, you can additionally use
11351  
11352 \begin_inset Flex Code
11353 status collapsed
11354
11355 \begin_layout Plain Layout
11356 PackageOptions
11357 \end_layout
11358
11359 \end_inset
11360
11361 .
11362 \end_layout
11363
11364 \begin_layout Description
11365 \begin_inset Flex Code
11366 status collapsed
11367
11368 \begin_layout Plain Layout
11369 RightMargin
11370 \end_layout
11371
11372 \end_inset
11373
11374  [
11375 \begin_inset Flex Code
11376 status collapsed
11377
11378 \begin_layout Plain Layout
11379 string
11380 \end_layout
11381
11382 \end_inset
11383
11384 ] A string that indicates the width of the right margin on the screen, for
11385  example, 
11386 \begin_inset Quotes eld
11387 \end_inset
11388
11389
11390 \begin_inset Flex Code
11391 status collapsed
11392
11393 \begin_layout Plain Layout
11394 MMMMM
11395 \end_layout
11396
11397 \end_inset
11398
11399
11400 \begin_inset Quotes erd
11401 \end_inset
11402
11403 .
11404 \end_layout
11405
11406 \begin_layout Description
11407 \begin_inset Flex Code
11408 status collapsed
11409
11410 \begin_layout Plain Layout
11411 SecNumDepth
11412 \end_layout
11413
11414 \end_inset
11415
11416  [
11417 \begin_inset Flex Code
11418 status collapsed
11419
11420 \begin_layout Plain Layout
11421 int=3
11422 \end_layout
11423
11424 \end_inset
11425
11426 ] Sets which divisions get numbered.
11427  Corresponds to the
11428 \begin_inset Newline newline
11429 \end_inset
11430
11431
11432 \begin_inset Flex Code
11433 status collapsed
11434
11435 \begin_layout Plain Layout
11436 secnumdepth
11437 \end_layout
11438
11439 \end_inset
11440
11441  counter in \SpecialChar LaTeX
11442 .
11443 \end_layout
11444
11445 \begin_layout Description
11446 \begin_inset Flex Code
11447 status collapsed
11448
11449 \begin_layout Plain Layout
11450 Sides
11451 \end_layout
11452
11453 \end_inset
11454
11455  [
11456 \begin_inset Flex Code
11457 status collapsed
11458
11459 \begin_layout Plain Layout
11460
11461 \emph on
11462 1
11463 \end_layout
11464
11465 \end_inset
11466
11467 ,
11468 \begin_inset space \thinspace{}
11469 \end_inset
11470
11471
11472 \begin_inset Flex Code
11473 status collapsed
11474
11475 \begin_layout Plain Layout
11476 2
11477 \end_layout
11478
11479 \end_inset
11480
11481 ] Whether the class-default should be printing on one or both sides of the
11482  paper.
11483  Can be changed in the 
11484 \begin_inset Flex Noun
11485 status collapsed
11486
11487 \begin_layout Plain Layout
11488 Document\SpecialChar menuseparator
11489 Settings
11490 \end_layout
11491
11492 \end_inset
11493
11494  dialog.
11495 \end_layout
11496
11497 \begin_layout Description
11498 \begin_inset Flex Code
11499 status collapsed
11500
11501 \begin_layout Plain Layout
11502 Style
11503 \end_layout
11504
11505 \end_inset
11506
11507  [
11508 \begin_inset Flex Code
11509 status collapsed
11510
11511 \begin_layout Plain Layout
11512 <name>
11513 \end_layout
11514
11515 \end_inset
11516
11517 ] This sequence defines a paragraph style.
11518  If the style does not yet exist, it is created; if it does exist, its parameter
11519 s are modified.
11520  Must end with 
11521 \begin_inset Quotes eld
11522 \end_inset
11523
11524
11525 \begin_inset Flex Code
11526 status collapsed
11527
11528 \begin_layout Plain Layout
11529 End
11530 \end_layout
11531
11532 \end_inset
11533
11534
11535 \begin_inset Quotes erd
11536 \end_inset
11537
11538 .
11539 \begin_inset Newline newline
11540 \end_inset
11541
11542 See 
11543 \begin_inset CommandInset ref
11544 LatexCommand ref
11545 reference "subsec:Paragraph-Styles"
11546
11547 \end_inset
11548
11549  for details on paragraph styles.
11550 \change_inserted -712698321 1553617804
11551
11552 \end_layout
11553
11554 \begin_layout Description
11555
11556 \change_inserted -712698321 1553617862
11557 \begin_inset Flex Code
11558 status collapsed
11559
11560 \begin_layout Plain Layout
11561
11562 \change_inserted -712698321 1553617809
11563 TableStyle
11564 \change_unchanged
11565
11566 \end_layout
11567
11568 \end_inset
11569
11570  [
11571 \begin_inset Flex Code
11572 status collapsed
11573
11574 \begin_layout Plain Layout
11575
11576 \change_inserted -712698321 1553617805
11577 <name>
11578 \change_unchanged
11579
11580 \end_layout
11581
11582 \end_inset
11583
11584 ] defines the default table style that is used when inserting a table.
11585  The following styles are available:
11586 \end_layout
11587
11588 \begin_deeper
11589 \begin_layout Itemize
11590
11591 \change_inserted -712698321 1554308039
11592 \begin_inset Flex Code
11593 status collapsed
11594
11595 \begin_layout Plain Layout
11596
11597 \change_inserted -712698321 1554307928
11598 Formal_with_Footline
11599 \change_unchanged
11600
11601 \end_layout
11602
11603 \end_inset
11604
11605 : formal (
11606 \begin_inset Quotes eld
11607 \end_inset
11608
11609 booktabs
11610 \begin_inset Quotes erd
11611 \end_inset
11612
11613 ) style with horizontal lines only, using a bold top and bottom line, the
11614  first and last row are additionally separated from the table body with
11615  a thin middle line.
11616 \end_layout
11617
11618 \begin_layout Itemize
11619
11620 \change_inserted -712698321 1554308087
11621 \begin_inset Flex Code
11622 status collapsed
11623
11624 \begin_layout Plain Layout
11625
11626 \change_inserted -712698321 1554308042
11627 Formal_without_Footline
11628 \change_unchanged
11629
11630 \end_layout
11631
11632 \end_inset
11633
11634 : same as the above, but the last row is not separated with a middle line
11635  from the body.
11636 \end_layout
11637
11638 \begin_layout Itemize
11639
11640 \change_inserted -712698321 1553618031
11641 \begin_inset Flex Code
11642 status collapsed
11643
11644 \begin_layout Plain Layout
11645
11646 \change_inserted -712698321 1553618006
11647 Simple_Grid
11648 \change_unchanged
11649
11650 \end_layout
11651
11652 \end_inset
11653
11654 : Simple table lines.
11655 \end_layout
11656
11657 \begin_layout Itemize
11658
11659 \change_inserted -712698321 1553618309
11660 \begin_inset Flex Code
11661 status collapsed
11662
11663 \begin_layout Plain Layout
11664
11665 \change_inserted -712698321 1553618031
11666 Grid_with_Head
11667 \change_unchanged
11668
11669 \end_layout
11670
11671 \end_inset
11672
11673 : Like 
11674 \begin_inset Flex Code
11675 status collapsed
11676
11677 \begin_layout Plain Layout
11678
11679 \change_inserted -712698321 1553618043
11680 Simple_Grid
11681 \change_unchanged
11682
11683 \end_layout
11684
11685 \end_inset
11686
11687 , but with the header column offset with a second horizontal line.
11688  This is also the default style of \SpecialChar LyX
11689 .
11690 \end_layout
11691
11692 \begin_layout Itemize
11693
11694 \change_inserted -712698321 1553618280
11695 \begin_inset Flex Code
11696 status collapsed
11697
11698 \begin_layout Plain Layout
11699
11700 \change_inserted -712698321 1553618261
11701 No_Borders
11702 \change_unchanged
11703
11704 \end_layout
11705
11706 \end_inset
11707
11708 : Table without lines.
11709 \change_unchanged
11710
11711 \end_layout
11712
11713 \end_deeper
11714 \begin_layout Description
11715 \begin_inset Flex Code
11716 status collapsed
11717
11718 \begin_layout Plain Layout
11719 TitleLatexName
11720 \end_layout
11721
11722 \end_inset
11723
11724  [
11725 \begin_inset Flex Code
11726 status collapsed
11727
11728 \begin_layout Plain Layout
11729 string="maketitle"
11730 \end_layout
11731
11732 \end_inset
11733
11734 ] The name of the command or environment to be used with 
11735 \begin_inset Flex Code
11736 status collapsed
11737
11738 \begin_layout Plain Layout
11739 TitleLatexType
11740 \end_layout
11741
11742 \end_inset
11743
11744 .
11745 \end_layout
11746
11747 \begin_layout Description
11748 \begin_inset Flex Code
11749 status collapsed
11750
11751 \begin_layout Plain Layout
11752 TitleLatexType
11753 \end_layout
11754
11755 \end_inset
11756
11757  [
11758 \begin_inset Flex Code
11759 status collapsed
11760
11761 \begin_layout Plain Layout
11762
11763 \emph on
11764 CommandAfter
11765 \end_layout
11766
11767 \end_inset
11768
11769
11770 \begin_inset Flex Code
11771 status collapsed
11772
11773 \begin_layout Plain Layout
11774 Environment
11775 \end_layout
11776
11777 \end_inset
11778
11779 ] Indicates what kind of markup is used to define the title of a document.
11780  
11781 \begin_inset Flex Code
11782 status collapsed
11783
11784 \begin_layout Plain Layout
11785 CommandAfter
11786 \end_layout
11787
11788 \end_inset
11789
11790  means that the macro with name 
11791 \begin_inset Flex Code
11792 status collapsed
11793
11794 \begin_layout Plain Layout
11795 TitleLatexName
11796 \end_layout
11797
11798 \end_inset
11799
11800  will be inserted after the last layout which has 
11801 \begin_inset Quotes eld
11802 \end_inset
11803
11804
11805 \begin_inset Flex Code
11806 status collapsed
11807
11808 \begin_layout Plain Layout
11809 InTitle
11810 \begin_inset space ~
11811 \end_inset
11812
11813 1
11814 \end_layout
11815
11816 \end_inset
11817
11818
11819 \begin_inset Quotes erd
11820 \end_inset
11821
11822 .
11823  
11824 \begin_inset Flex Code
11825 status collapsed
11826
11827 \begin_layout Plain Layout
11828 Environment
11829 \end_layout
11830
11831 \end_inset
11832
11833  corresponds to the case where all layouts which have 
11834 \begin_inset Quotes eld
11835 \end_inset
11836
11837
11838 \begin_inset Flex Code
11839 status collapsed
11840
11841 \begin_layout Plain Layout
11842 InTitle
11843 \begin_inset space ~
11844 \end_inset
11845
11846 1
11847 \end_layout
11848
11849 \end_inset
11850
11851
11852 \begin_inset Quotes erd
11853 \end_inset
11854
11855  should be enclosed into the 
11856 \begin_inset Flex Code
11857 status collapsed
11858
11859 \begin_layout Plain Layout
11860 TitleLatexName
11861 \end_layout
11862
11863 \end_inset
11864
11865  environment.
11866 \end_layout
11867
11868 \begin_layout Description
11869 \begin_inset Flex Code
11870 status collapsed
11871
11872 \begin_layout Plain Layout
11873 TocDepth
11874 \end_layout
11875
11876 \end_inset
11877
11878  [
11879 \begin_inset Flex Code
11880 status collapsed
11881
11882 \begin_layout Plain Layout
11883 int=3
11884 \end_layout
11885
11886 \end_inset
11887
11888 ] Sets which divisions are included in the table of contents.
11889  Corresponds to the 
11890 \begin_inset Flex Code
11891 status collapsed
11892
11893 \begin_layout Plain Layout
11894 tocdepth
11895 \end_layout
11896
11897 \end_inset
11898
11899  counter in \SpecialChar LaTeX
11900 .
11901 \end_layout
11902
11903 \begin_layout Subsection
11904 \begin_inset Flex Code
11905 status collapsed
11906
11907 \begin_layout Plain Layout
11908 ClassOptions
11909 \end_layout
11910
11911 \end_inset
11912
11913  section
11914 \begin_inset CommandInset label
11915 LatexCommand label
11916 name "subsec:ClassOptions"
11917
11918 \end_inset
11919
11920
11921 \end_layout
11922
11923 \begin_layout Standard
11924 The 
11925 \begin_inset Flex Code
11926 status collapsed
11927
11928 \begin_layout Plain Layout
11929 ClassOptions
11930 \end_layout
11931
11932 \end_inset
11933
11934  section can contain the following entries:
11935 \end_layout
11936
11937 \begin_layout Description
11938 \begin_inset Flex Code
11939 status collapsed
11940
11941 \begin_layout Plain Layout
11942 FontSize
11943 \end_layout
11944
11945 \end_inset
11946
11947  [
11948 \begin_inset Flex Code
11949 status collapsed
11950
11951 \begin_layout Plain Layout
11952 string="10|11|12"
11953 \end_layout
11954
11955 \end_inset
11956
11957 ] The list of available font sizes for the document's main font, separated
11958  by 
11959 \begin_inset Quotes eld
11960 \end_inset
11961
11962
11963 \begin_inset Flex Code
11964 status collapsed
11965
11966 \begin_layout Plain Layout
11967 |
11968 \end_layout
11969
11970 \end_inset
11971
11972
11973 \begin_inset Quotes erd
11974 \end_inset
11975
11976 .
11977
11978 \change_inserted -712698321 1565110196
11979  Any number is possible.
11980 \end_layout
11981
11982 \begin_layout Description
11983
11984 \change_inserted -712698321 1565110259
11985 \begin_inset Flex Code
11986 status collapsed
11987
11988 \begin_layout Plain Layout
11989
11990 \change_inserted -712698321 1565110199
11991 FontSizeFormat
11992 \change_unchanged
11993
11994 \end_layout
11995
11996 \end_inset
11997
11998  [
11999 \begin_inset Flex Code
12000 status collapsed
12001
12002 \begin_layout Plain Layout
12003
12004 \change_inserted -712698321 1565110196
12005 string
12006 \change_unchanged
12007
12008 \end_layout
12009
12010 \end_inset
12011
12012 ] The format for the font size option.
12013  Default: 
12014 \begin_inset Flex Code
12015 status collapsed
12016
12017 \begin_layout Plain Layout
12018
12019 \change_inserted -712698321 1565110238
12020 $$spt
12021 \change_unchanged
12022
12023 \end_layout
12024
12025 \end_inset
12026
12027 .
12028  
12029 \begin_inset Flex Code
12030 status collapsed
12031
12032 \begin_layout Plain Layout
12033
12034 \change_inserted -712698321 1565110248
12035 $$s
12036 \change_unchanged
12037
12038 \end_layout
12039
12040 \end_inset
12041
12042  is a placeholder for the font size.
12043 \change_unchanged
12044
12045 \end_layout
12046
12047 \begin_layout Description
12048
12049 \change_deleted 5863208 1594239483
12050 \begin_inset Flex Code
12051 status collapsed
12052
12053 \begin_layout Plain Layout
12054 Header
12055 \end_layout
12056
12057 \end_inset
12058
12059  Used to set the DTD line with XML-based output classes.
12060  E.
12061 \begin_inset space \thinspace{}
12062 \end_inset
12063
12064 g.: PUBLIC 
12065 \begin_inset Quotes eld
12066 \end_inset
12067
12068 -//OASIS//DTD DocBook V4.2//EN
12069 \begin_inset Quotes erd
12070 \end_inset
12071
12072 .
12073 \change_inserted -712698321 1565101761
12074
12075 \end_layout
12076
12077 \begin_layout Description
12078
12079 \change_inserted -712698321 1565180598
12080 \begin_inset Flex Code
12081 status collapsed
12082
12083 \begin_layout Plain Layout
12084
12085 \change_inserted -712698321 1565101918
12086 PageSize
12087 \change_unchanged
12088
12089 \end_layout
12090
12091 \end_inset
12092
12093  [
12094 \begin_inset Flex Code
12095 status collapsed
12096
12097 \begin_layout Plain Layout
12098
12099 \change_inserted -712698321 1565105399
12100 string="letter|\SpecialChar allowbreak
12101 legal|\SpecialChar allowbreak
12102 executive|\SpecialChar allowbreak
12103 a0|\SpecialChar allowbreak
12104 a1|\SpecialChar allowbreak
12105 a2|\SpecialChar allowbreak
12106 a3|\SpecialChar allowbreak
12107 a4|\SpecialChar allowbreak
12108 a5|\SpecialChar allowbreak
12109 a6|\SpecialChar allowbreak
12110 b0|\SpecialChar allowbreak
12111 b1|\SpecialChar allowbreak
12112 b2|\SpecialChar allowbreak
12113 b3|\SpecialChar allowbreak
12114 b4|\SpecialChar allowbreak
12115 b5|\SpecialChar allowbreak
12116 b6|\SpecialChar allowbreak
12117 c0|\SpecialChar allowbreak
12118 c1|\SpecialChar allowbreak
12119 c
12120 2|\SpecialChar allowbreak
12121 c3|\SpecialChar allowbreak
12122 c4|\SpecialChar allowbreak
12123 c5|\SpecialChar allowbreak
12124 c6|\SpecialChar allowbreak
12125 b0j|\SpecialChar allowbreak
12126 b1j|\SpecialChar allowbreak
12127 b2j|\SpecialChar allowbreak
12128 b3j|\SpecialChar allowbreak
12129 b4j|\SpecialChar allowbreak
12130 b5j|\SpecialChar allowbreak
12131 b6j"
12132 \change_unchanged
12133
12134 \end_layout
12135
12136 \end_inset
12137
12138 ] The list of available page sizes, separated by 
12139 \begin_inset Quotes eld
12140 \end_inset
12141
12142
12143 \begin_inset Flex Code
12144 status collapsed
12145
12146 \begin_layout Plain Layout
12147
12148 \change_inserted -712698321 1565101779
12149 |
12150 \change_unchanged
12151
12152 \end_layout
12153
12154 \end_inset
12155
12156
12157 \begin_inset Quotes erd
12158 \end_inset
12159
12160 .
12161  Currently, only the listed sizes are supported.
12162  Other sizes might be entered as custom class option.
12163 \end_layout
12164
12165 \begin_layout Description
12166
12167 \change_inserted -712698321 1565180623
12168 \begin_inset Flex Code
12169 status collapsed
12170
12171 \begin_layout Plain Layout
12172
12173 \change_inserted -712698321 1565180605
12174 PageSizeFormat
12175 \change_unchanged
12176
12177 \end_layout
12178
12179 \end_inset
12180
12181  [
12182 \begin_inset Flex Code
12183 status collapsed
12184
12185 \begin_layout Plain Layout
12186
12187 \change_inserted -712698321 1565180601
12188 string
12189 \change_unchanged
12190
12191 \end_layout
12192
12193 \end_inset
12194
12195 ] The format for the page size option.
12196  Default: 
12197 \begin_inset Flex Code
12198 status collapsed
12199
12200 \begin_layout Plain Layout
12201
12202 \change_inserted -712698321 1565180618
12203 $$spaper
12204 \change_unchanged
12205
12206 \end_layout
12207
12208 \end_inset
12209
12210 .
12211  
12212 \begin_inset Flex Code
12213 status collapsed
12214
12215 \begin_layout Plain Layout
12216
12217 \change_inserted -712698321 1565180601
12218 $$s
12219 \change_unchanged
12220
12221 \end_layout
12222
12223 \end_inset
12224
12225  is a placeholder for the paper size.
12226 \change_unchanged
12227
12228 \end_layout
12229
12230 \begin_layout Description
12231 \begin_inset Flex Code
12232 status collapsed
12233
12234 \begin_layout Plain Layout
12235 PageStyle
12236 \end_layout
12237
12238 \end_inset
12239
12240  [
12241 \begin_inset Flex Code
12242 status collapsed
12243
12244 \begin_layout Plain Layout
12245 string="empty|plain|headings|fancy"
12246 \end_layout
12247
12248 \end_inset
12249
12250 ] The list of available page sty\SpecialChar softhyphen
12251 les, separated by 
12252 \begin_inset Quotes eld
12253 \end_inset
12254
12255
12256 \begin_inset Flex Code
12257 status collapsed
12258
12259 \begin_layout Plain Layout
12260 |
12261 \end_layout
12262
12263 \end_inset
12264
12265
12266 \begin_inset Quotes erd
12267 \end_inset
12268
12269 .
12270 \end_layout
12271
12272 \begin_layout Description
12273 \begin_inset Flex Code
12274 status collapsed
12275
12276 \begin_layout Plain Layout
12277 Other
12278 \end_layout
12279
12280 \end_inset
12281
12282  [
12283 \begin_inset Flex Code
12284 status collapsed
12285
12286 \begin_layout Plain Layout
12287 string=""
12288 \end_layout
12289
12290 \end_inset
12291
12292 ] Some document class options, separated by a comma, that will be added
12293  to the optional part of the 
12294 \begin_inset Flex Code
12295 status collapsed
12296
12297 \begin_layout Plain Layout
12298
12299 \backslash
12300 documentclass
12301 \end_layout
12302
12303 \end_inset
12304
12305  command.
12306 \end_layout
12307
12308 \begin_layout Standard
12309 The 
12310 \begin_inset Flex Code
12311 status collapsed
12312
12313 \begin_layout Plain Layout
12314 ClassOptions
12315 \end_layout
12316
12317 \end_inset
12318
12319  section must end with 
12320 \begin_inset Quotes eld
12321 \end_inset
12322
12323
12324 \begin_inset Flex Code
12325 status collapsed
12326
12327 \begin_layout Plain Layout
12328 End
12329 \end_layout
12330
12331 \end_inset
12332
12333
12334 \begin_inset Quotes erd
12335 \end_inset
12336
12337 .
12338 \end_layout
12339
12340 \begin_layout Subsection
12341 Paragraph styles
12342 \begin_inset CommandInset label
12343 LatexCommand label
12344 name "subsec:Paragraph-Styles"
12345
12346 \end_inset
12347
12348
12349 \end_layout
12350
12351 \begin_layout Standard
12352 A paragraph style description looks like this:
12353 \begin_inset Foot
12354 status collapsed
12355
12356 \begin_layout Plain Layout
12357 Note that this will either define a new style or modify an existing one.
12358 \end_layout
12359
12360 \end_inset
12361
12362
12363 \end_layout
12364
12365 \begin_layout LyX-Code
12366 Style 
12367 \family roman
12368 \emph on
12369 name
12370 \end_layout
12371
12372 \begin_layout LyX-Code
12373  ...
12374 \end_layout
12375
12376 \begin_layout LyX-Code
12377 End
12378 \end_layout
12379
12380 \begin_layout Standard
12381 where the following commands are allowed:
12382 \end_layout
12383
12384 \begin_layout Description
12385 \begin_inset Flex Code
12386 status collapsed
12387
12388 \begin_layout Plain Layout
12389 AddToToc
12390 \end_layout
12391
12392 \end_inset
12393
12394  [
12395 \begin_inset Flex Code
12396 status collapsed
12397
12398 \begin_layout Plain Layout
12399 string
12400 \end_layout
12401
12402 \end_inset
12403
12404 =""] This paragraph will appear in the table of contents of the given type.
12405  An empty string disables.
12406  See also the OutlinerName and the IsTocCaption commands.
12407  Default: disabled.
12408 \end_layout
12409
12410 \begin_layout Description
12411 \begin_inset Flex Code
12412 status collapsed
12413
12414 \begin_layout Plain Layout
12415 Align
12416 \end_layout
12417
12418 \end_inset
12419
12420  [
12421 \begin_inset Flex Code
12422 status collapsed
12423
12424 \begin_layout Plain Layout
12425
12426 \emph on
12427 block
12428 \emph default
12429 , left, right, center
12430 \end_layout
12431
12432 \end_inset
12433
12434 ] Paragraph alignment.
12435 \end_layout
12436
12437 \begin_layout Description
12438 \begin_inset Flex Code
12439 status collapsed
12440
12441 \begin_layout Plain Layout
12442 AlignPossible
12443 \end_layout
12444
12445 \end_inset
12446
12447  [
12448 \begin_inset Flex Code
12449 status collapsed
12450
12451 \begin_layout Plain Layout
12452
12453 \emph on
12454 block
12455 \emph default
12456 , left, right, center
12457 \end_layout
12458
12459 \end_inset
12460
12461 ] A comma separated list of permitted alignments.
12462  (Some \SpecialChar LaTeX
12463  styles prohibit certain alignments, since those wouldn't make sense.
12464  For example a right-aligned or centered enumeration isn't possible.)
12465 \end_layout
12466
12467 \begin_layout Description
12468 \begin_inset Flex Code
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 Argument
12473 \end_layout
12474
12475 \end_inset
12476
12477  [
12478 \begin_inset Flex Code
12479 status collapsed
12480
12481 \begin_layout Plain Layout
12482 int
12483 \end_layout
12484
12485 \end_inset
12486
12487 ] Defines argument number <int> of a command\SpecialChar breakableslash
12488 environment associated with
12489  the current style.
12490  This is useful for things like section headings, and only makes sense with
12491  \SpecialChar LaTeX
12492 .
12493  Every (optional or required) argument of a command or environment – except
12494  for the required argument that is associated with the content of the paragraph
12495  itself – has a separate definition, where the number specifies the order
12496  of the arguments.
12497  The definition must end with 
12498 \begin_inset Flex Code
12499 status collapsed
12500
12501 \begin_layout Plain Layout
12502 EndArgument
12503 \end_layout
12504
12505 \end_inset
12506
12507 .
12508  So a command with two optional arguments has:
12509 \end_layout
12510
12511 \begin_deeper
12512 \begin_layout Quote
12513
12514 \family typewriter
12515 Argument 1
12516 \end_layout
12517
12518 \begin_layout Quote
12519
12520 \family typewriter
12521 ...
12522 \end_layout
12523
12524 \begin_layout Quote
12525
12526 \family typewriter
12527 EndArgument
12528 \end_layout
12529
12530 \begin_layout Quote
12531
12532 \family typewriter
12533 Argument 2
12534 \end_layout
12535
12536 \begin_layout Quote
12537
12538 \family typewriter
12539 ...
12540 \end_layout
12541
12542 \begin_layout Quote
12543
12544 \family typewriter
12545 EndArgument
12546 \end_layout
12547
12548 \begin_layout Standard
12549 Inside the 
12550 \begin_inset Flex Code
12551 status collapsed
12552
12553 \begin_layout Plain Layout
12554 Argument
12555 \end_layout
12556
12557 \end_inset
12558
12559  definition, the following specifications are possible:
12560 \end_layout
12561
12562 \begin_layout Itemize
12563 \begin_inset Flex Code
12564 status collapsed
12565
12566 \begin_layout Plain Layout
12567 LabelString
12568 \end_layout
12569
12570 \end_inset
12571
12572  
12573 \begin_inset Flex Code
12574 status collapsed
12575
12576 \begin_layout Plain Layout
12577 [string]
12578 \end_layout
12579
12580 \end_inset
12581
12582  The string that will appear both in the menu (to insert this argument)
12583  and on the argument inset button (unless you also specify a separate 
12584 \begin_inset Flex Code
12585 status collapsed
12586
12587 \begin_layout Plain Layout
12588 MenuString
12589 \end_layout
12590
12591 \end_inset
12592
12593 ).
12594  For the menu, you can define an accelerator by appending the respective
12595  character to the string, divided by 
12596 \begin_inset Quotes eld
12597 \end_inset
12598
12599 |
12600 \begin_inset Quotes erd
12601 \end_inset
12602
12603  (e.
12604 \begin_inset space \thinspace{}
12605 \end_inset
12606
12607 g.
12608 \begin_inset space \space{}
12609 \end_inset
12610
12611
12612 \begin_inset Quotes eld
12613 \end_inset
12614
12615
12616 \begin_inset Flex Code
12617 status collapsed
12618
12619 \begin_layout Plain Layout
12620 Short Title|S
12621 \end_layout
12622
12623 \end_inset
12624
12625
12626 \begin_inset Quotes erd
12627 \end_inset
12628
12629 ).
12630 \end_layout
12631
12632 \begin_layout Itemize
12633 \begin_inset Flex Code
12634 status collapsed
12635
12636 \begin_layout Plain Layout
12637 MenuString
12638 \end_layout
12639
12640 \end_inset
12641
12642  
12643 \begin_inset Flex Code
12644 status collapsed
12645
12646 \begin_layout Plain Layout
12647 [string]
12648 \end_layout
12649
12650 \end_inset
12651
12652  A separate string for the menu.
12653  You can define an accelerator by appending the respective character to
12654  the string, divided by 
12655 \begin_inset Quotes eld
12656 \end_inset
12657
12658 |
12659 \begin_inset Quotes erd
12660 \end_inset
12661
12662  (e.
12663 \begin_inset space \thinspace{}
12664 \end_inset
12665
12666 g.
12667 \begin_inset space \space{}
12668 \end_inset
12669
12670
12671 \begin_inset Quotes eld
12672 \end_inset
12673
12674
12675 \begin_inset Flex Code
12676 status collapsed
12677
12678 \begin_layout Plain Layout
12679 Short Title|S
12680 \end_layout
12681
12682 \end_inset
12683
12684
12685 \begin_inset Quotes erd
12686 \end_inset
12687
12688 ).
12689  This specification is optional.
12690  If it is not given the 
12691 \begin_inset Flex Code
12692 status collapsed
12693
12694 \begin_layout Plain Layout
12695 LabelString
12696 \end_layout
12697
12698 \end_inset
12699
12700  will be used instead for the menu.
12701 \end_layout
12702
12703 \begin_layout Itemize
12704 \begin_inset Flex Code
12705 status collapsed
12706
12707 \begin_layout Plain Layout
12708 Tooltip
12709 \end_layout
12710
12711 \end_inset
12712
12713  
12714 \begin_inset Flex Code
12715 status collapsed
12716
12717 \begin_layout Plain Layout
12718 [string]
12719 \end_layout
12720
12721 \end_inset
12722
12723  A longer explanatory text that appears in the tooltip when hovering over
12724  the argument inset.
12725 \end_layout
12726
12727 \begin_layout Itemize
12728 \begin_inset Flex Code
12729 status collapsed
12730
12731 \begin_layout Plain Layout
12732 Mandatory
12733 \end_layout
12734
12735 \end_inset
12736
12737  [
12738 \begin_inset Flex Code
12739 status collapsed
12740
12741 \begin_layout Plain Layout
12742
12743 \emph on
12744 0
12745 \end_layout
12746
12747 \end_inset
12748
12749 ,
12750 \begin_inset space \thinspace{}
12751 \end_inset
12752
12753
12754 \begin_inset Flex Code
12755 status collapsed
12756
12757 \begin_layout Plain Layout
12758 1
12759 \end_layout
12760
12761 \end_inset
12762
12763 ] Declare if this is a mandatory (1) or an optional (0) argument.
12764  Mandatory arguments will be output empty if not given, while optional arguments
12765  will not be output at all.
12766  By default, mandatory arguments are delimited by 
12767 \begin_inset Flex Code
12768 status collapsed
12769
12770 \begin_layout Plain Layout
12771 {...}
12772 \end_layout
12773
12774 \end_inset
12775
12776 , while optional arguments are delimited by 
12777 \begin_inset Flex Code
12778 status collapsed
12779
12780 \begin_layout Plain Layout
12781 [...]
12782 \end_layout
12783
12784 \end_inset
12785
12786
12787 \change_inserted -712698321 1555579782
12788
12789 \end_layout
12790
12791 \begin_layout Itemize
12792
12793 \change_inserted -712698321 1555579780
12794 \begin_inset Flex Code
12795 status collapsed
12796
12797 \begin_layout Plain Layout
12798
12799 \change_inserted -712698321 1555579780
12800 NewlineCmd
12801 \change_unchanged
12802
12803 \end_layout
12804
12805 \end_inset
12806
12807  
12808 \begin_inset Flex Code
12809 status collapsed
12810
12811 \begin_layout Plain Layout
12812
12813 \change_inserted -712698321 1555579780
12814 [string]
12815 \change_unchanged
12816
12817 \end_layout
12818
12819 \end_inset
12820
12821  Option to define a different command (from the default 
12822 \begin_inset Flex Code
12823 status collapsed
12824
12825 \begin_layout Plain Layout
12826
12827 \change_inserted -712698321 1555579780
12828
12829 \backslash
12830
12831 \backslash
12832
12833 \change_unchanged
12834
12835 \end_layout
12836
12837 \end_inset
12838
12839 ) to be used for line breaks.
12840  The initial backslash must not be specified.
12841 \change_unchanged
12842
12843 \end_layout
12844
12845 \begin_layout Itemize
12846 \begin_inset Flex Code
12847 status collapsed
12848
12849 \begin_layout Plain Layout
12850 Requires
12851 \end_layout
12852
12853 \end_inset
12854
12855  
12856 \begin_inset Flex Code
12857 status collapsed
12858
12859 \begin_layout Plain Layout
12860 [int=0]
12861 \end_layout
12862
12863 \end_inset
12864
12865  defines another argument (by its number) which this argument requires to
12866  be output if it is itself output.
12867  E.
12868 \begin_inset space \thinspace{}
12869 \end_inset
12870
12871 g., in \SpecialChar LaTeX
12872  commands, optional arguments often require previous optional arguments
12873  to be output (at least empty), as in 
12874 \begin_inset Flex Code
12875 status collapsed
12876
12877 \begin_layout Plain Layout
12878
12879 \backslash
12880 command[][argument]{text}
12881 \end_layout
12882
12883 \end_inset
12884
12885 .
12886  This can be achieved by the statement 
12887 \begin_inset Flex Code
12888 status collapsed
12889
12890 \begin_layout Plain Layout
12891 Requires 1
12892 \end_layout
12893
12894 \end_inset
12895
12896  within 
12897 \begin_inset Flex Code
12898 status collapsed
12899
12900 \begin_layout Plain Layout
12901 Argument 2
12902 \end_layout
12903
12904 \end_inset
12905
12906 .
12907 \end_layout
12908
12909 \begin_layout Itemize
12910 \begin_inset Flex Code
12911 status collapsed
12912
12913 \begin_layout Plain Layout
12914 LeftDelim
12915 \end_layout
12916
12917 \end_inset
12918
12919  
12920 \begin_inset Flex Code
12921 status collapsed
12922
12923 \begin_layout Plain Layout
12924 [string]
12925 \end_layout
12926
12927 \end_inset
12928
12929  defines a custom left delimiter (instead of 
12930 \begin_inset Flex Code
12931 status collapsed
12932
12933 \begin_layout Plain Layout
12934 {
12935 \end_layout
12936
12937 \end_inset
12938
12939  or 
12940 \begin_inset Flex Code
12941 status collapsed
12942
12943 \begin_layout Plain Layout
12944 [
12945 \end_layout
12946
12947 \end_inset
12948
12949 ).
12950  A line break in the output can be indicated by 
12951 \begin_inset Flex Code
12952 status collapsed
12953
12954 \begin_layout Plain Layout
12955 <br/>
12956 \end_layout
12957
12958 \end_inset
12959
12960 .
12961 \end_layout
12962
12963 \begin_layout Itemize
12964 \begin_inset Flex Code
12965 status collapsed
12966
12967 \begin_layout Plain Layout
12968 RightDelim
12969 \end_layout
12970
12971 \end_inset
12972
12973  
12974 \begin_inset Flex Code
12975 status collapsed
12976
12977 \begin_layout Plain Layout
12978 [string]
12979 \end_layout
12980
12981 \end_inset
12982
12983  defines a custom right delimiter (instead of 
12984 \begin_inset Flex Code
12985 status collapsed
12986
12987 \begin_layout Plain Layout
12988 }
12989 \end_layout
12990
12991 \end_inset
12992
12993  or 
12994 \begin_inset Flex Code
12995 status collapsed
12996
12997 \begin_layout Plain Layout
12998 ]
12999 \end_layout
13000
13001 \end_inset
13002
13003 ).
13004  A line break in the output can be indicated by 
13005 \begin_inset Flex Code
13006 status collapsed
13007
13008 \begin_layout Plain Layout
13009 <br/>
13010 \end_layout
13011
13012 \end_inset
13013
13014 .
13015 \end_layout
13016
13017 \begin_layout Itemize
13018 \begin_inset Flex Code
13019 status collapsed
13020
13021 \begin_layout Plain Layout
13022 DefaultArg
13023 \end_layout
13024
13025 \end_inset
13026
13027  
13028 \begin_inset Flex Code
13029 status collapsed
13030
13031 \begin_layout Plain Layout
13032 [string]
13033 \end_layout
13034
13035 \end_inset
13036
13037  defines an argument that is inserted if and only if no user-specified arguments
13038  were given, i.
13039 \begin_inset space \thinspace{}
13040 \end_inset
13041
13042 e.
13043 \begin_inset space \space{}
13044 \end_inset
13045
13046 if no argument inset has been inserted (note that also an empty argument
13047  inset omits the DefaultArg).
13048  Multiple arguments need to be separated by comma.
13049 \end_layout
13050
13051 \begin_layout Itemize
13052 \begin_inset Flex Code
13053 status collapsed
13054
13055 \begin_layout Plain Layout
13056 PresetArg
13057 \end_layout
13058
13059 \end_inset
13060
13061  
13062 \begin_inset Flex Code
13063 status collapsed
13064
13065 \begin_layout Plain Layout
13066 [string]
13067 \end_layout
13068
13069 \end_inset
13070
13071  defines an argument that is inserted in any case (alone or in addition
13072  to user-specified arguments).
13073  Multiple arguments need to be separated by comma.
13074 \end_layout
13075
13076 \begin_layout Itemize
13077 \begin_inset Flex Code
13078 status collapsed
13079
13080 \begin_layout Plain Layout
13081 Font
13082 \end_layout
13083
13084 \end_inset
13085
13086  The font used for the argument content, see 
13087 \begin_inset CommandInset ref
13088 LatexCommand ref
13089 reference "subsec:Font-description"
13090
13091 \end_inset
13092
13093 .
13094 \change_inserted -712698321 1559484228
13095
13096 \end_layout
13097
13098 \begin_layout Itemize
13099
13100 \change_inserted -712698321 1559484228
13101 \begin_inset Flex Code
13102 status collapsed
13103
13104 \begin_layout Plain Layout
13105
13106 \change_inserted -712698321 1559484228
13107 FreeSpacing
13108 \change_unchanged
13109
13110 \end_layout
13111
13112 \end_inset
13113
13114  [
13115 \begin_inset Flex Code
13116 status collapsed
13117
13118 \begin_layout Plain Layout
13119
13120 \change_inserted -712698321 1559484228
13121
13122 \emph on
13123 0
13124 \change_unchanged
13125
13126 \end_layout
13127
13128 \end_inset
13129
13130 ,
13131 \begin_inset space \thinspace{}
13132 \end_inset
13133
13134
13135 \begin_inset Flex Code
13136 status collapsed
13137
13138 \begin_layout Plain Layout
13139
13140 \change_inserted -712698321 1559484228
13141 1
13142 \change_unchanged
13143
13144 \end_layout
13145
13146 \end_inset
13147
13148 ] As with paragraph styles, see 
13149 \begin_inset CommandInset ref
13150 LatexCommand ref
13151 reference "subsec:Paragraph-Styles"
13152
13153 \end_inset
13154
13155 .
13156 \change_unchanged
13157
13158 \end_layout
13159
13160 \begin_layout Itemize
13161 \begin_inset Flex Code
13162 status collapsed
13163
13164 \begin_layout Plain Layout
13165 LabelFont
13166 \end_layout
13167
13168 \end_inset
13169
13170  The font used for the label; see 
13171 \begin_inset CommandInset ref
13172 LatexCommand ref
13173 reference "subsec:Font-description"
13174
13175 \end_inset
13176
13177 .
13178 \end_layout
13179
13180 \begin_layout Itemize
13181 \begin_inset Flex Code
13182 status collapsed
13183
13184 \begin_layout Plain Layout
13185 Decoration
13186 \end_layout
13187
13188 \end_inset
13189
13190  [
13191 \begin_inset Flex Code
13192 status collapsed
13193
13194 \begin_layout Plain Layout
13195
13196 \emph on
13197 Classic
13198 \emph default
13199 , Minimalistic, Conglomerate
13200 \end_layout
13201
13202 \end_inset
13203
13204 ] describes the rendering style used for the inset's frame and buttons.
13205 \end_layout
13206
13207 \begin_layout Itemize
13208 \begin_inset Flex Code
13209 status collapsed
13210
13211 \begin_layout Plain Layout
13212 AutoInsert
13213 \end_layout
13214
13215 \end_inset
13216
13217  
13218 \begin_inset Flex Code
13219 status collapsed
13220
13221 \begin_layout Plain Layout
13222 [int=0]
13223 \end_layout
13224
13225 \end_inset
13226
13227  If this is set to 
13228 \begin_inset Flex Code
13229 status collapsed
13230
13231 \begin_layout Plain Layout
13232 1
13233 \end_layout
13234
13235 \end_inset
13236
13237 , this argument is automatically inserted when the respective style is selected.
13238
13239 \change_deleted -712698321 1559484200
13240  Currently, only one argument per style\SpecialChar breakableslash
13241 layout can be automatically inserted.
13242 \change_unchanged
13243
13244 \end_layout
13245
13246 \begin_layout Itemize
13247
13248 \change_inserted -712698321 1559491402
13249 \begin_inset Flex Code
13250 status collapsed
13251
13252 \begin_layout Plain Layout
13253
13254 \change_inserted -712698321 1559490711
13255 InsertOnNewline
13256 \change_unchanged
13257
13258 \end_layout
13259
13260 \end_inset
13261
13262  
13263 \begin_inset Flex Code
13264 status collapsed
13265
13266 \begin_layout Plain Layout
13267
13268 \change_inserted -712698321 1559490703
13269 [int=0]
13270 \change_unchanged
13271
13272 \end_layout
13273
13274 \end_inset
13275
13276  If this is set to 
13277 \begin_inset Flex Code
13278 status collapsed
13279
13280 \begin_layout Plain Layout
13281
13282 \change_inserted -712698321 1559490703
13283 1
13284 \change_unchanged
13285
13286 \end_layout
13287
13288 \end_inset
13289
13290 , this argument will be inserted on a new line with 
13291 \begin_inset Flex Code
13292 status collapsed
13293
13294 \begin_layout Plain Layout
13295
13296 \change_inserted -712698321 1559491402
13297 AutoInsert
13298 \change_unchanged
13299
13300 \end_layout
13301
13302 \end_inset
13303
13304  (only available within Flex insets).
13305 \end_layout
13306
13307 \begin_layout Itemize
13308 \begin_inset Flex Code
13309 status collapsed
13310
13311 \begin_layout Plain Layout
13312 InsertCotext
13313 \end_layout
13314
13315 \end_inset
13316
13317  
13318 \begin_inset Flex Code
13319 status collapsed
13320
13321 \begin_layout Plain Layout
13322 [int=0]
13323 \end_layout
13324
13325 \end_inset
13326
13327  If this is set to 
13328 \begin_inset Flex Code
13329 status collapsed
13330
13331 \begin_layout Plain Layout
13332 1
13333 \end_layout
13334
13335 \end_inset
13336
13337 , this argument will be inserted with a copy of the co-text (either selected
13338  text or the whole paragraph) as content.
13339 \end_layout
13340
13341 \begin_layout Itemize
13342 \begin_inset Flex Code
13343 status collapsed
13344
13345 \begin_layout Plain Layout
13346 PassThru
13347 \end_layout
13348
13349 \end_inset
13350
13351  [
13352 \begin_inset Flex Code
13353 status collapsed
13354
13355 \begin_layout Plain Layout
13356
13357 \emph on
13358 inherited
13359 \emph default
13360 , true, false
13361 \end_layout
13362
13363 \end_inset
13364
13365 ] Whether the contents of this argument should be output in raw form, meaning
13366  without special translations that \SpecialChar LaTeX
13367  would require.
13368  By default, the 
13369 \begin_inset Flex Code
13370 status collapsed
13371
13372 \begin_layout Plain Layout
13373 PassThru
13374 \end_layout
13375
13376 \end_inset
13377
13378  status is inherited by the inset or paragraph layout the argument belongs
13379  to, true and false change the status for the given argument only.
13380 \end_layout
13381
13382 \begin_layout Itemize
13383 \begin_inset Flex Code
13384 status collapsed
13385
13386 \begin_layout Plain Layout
13387 PassThruChars
13388 \end_layout
13389
13390 \end_inset
13391
13392  [
13393 \begin_inset Flex Code
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397 string of characters
13398 \end_layout
13399
13400 \end_inset
13401
13402 ]
13403 \family typewriter
13404  
13405 \family default
13406 Defines individual characters
13407 \begin_inset Newline linebreak
13408 \end_inset
13409
13410 that should be output in raw form, meaning without special translations
13411  that \SpecialChar LaTeX
13412  would require.
13413  Note that, contrary to PassThru, this needs to be explicitly defined for
13414  arguments.
13415  That is, arguments do not inherit PassThruChars from their parent inset
13416  or layout.
13417 \end_layout
13418
13419 \begin_layout Itemize
13420 \begin_inset Flex Code
13421 status collapsed
13422
13423 \begin_layout Plain Layout
13424 IsTocCaption
13425 \end_layout
13426
13427 \end_inset
13428
13429  [
13430 \begin_inset Flex Code
13431 status collapsed
13432
13433 \begin_layout Plain Layout
13434
13435 \emph on
13436 0
13437 \end_layout
13438
13439 \end_inset
13440
13441 ,
13442 \begin_inset space \thinspace{}
13443 \end_inset
13444
13445
13446 \begin_inset Flex Code
13447 status collapsed
13448
13449 \begin_layout Plain Layout
13450 1
13451 \end_layout
13452
13453 \end_inset
13454
13455 ] If this is set to 1, the argument will output its content in the corresponding
13456  item in the table of contents.
13457  See AddToToc.
13458 \end_layout
13459
13460 \begin_layout Standard
13461 By default, the text entered in the \SpecialChar LyX
13462  workarea in the respective layout is
13463  the last (mandatory) argument of a command if the 
13464 \begin_inset Flex Code
13465 status collapsed
13466
13467 \begin_layout Plain Layout
13468 LatexType
13469 \end_layout
13470
13471 \end_inset
13472
13473  is 
13474 \begin_inset Flex Code
13475 status collapsed
13476
13477 \begin_layout Plain Layout
13478 Command
13479 \end_layout
13480
13481 \end_inset
13482
13483 .
13484  However, arguments with the prefix 
13485 \begin_inset Flex Code
13486 status collapsed
13487
13488 \begin_layout Plain Layout
13489 post:
13490 \end_layout
13491
13492 \end_inset
13493
13494  are output after this workarea argument.
13495  Note that post-argument numbering restarts at 1, so the first argument
13496  following the workarea argument is 
13497 \begin_inset Flex Code
13498 status collapsed
13499
13500 \begin_layout Plain Layout
13501 post:1
13502 \end_layout
13503
13504 \end_inset
13505
13506 .
13507  Post-arguments are ignored in any other 
13508 \begin_inset Flex Code
13509 status collapsed
13510
13511 \begin_layout Plain Layout
13512 LatexType
13513 \end_layout
13514
13515 \end_inset
13516
13517  than 
13518 \begin_inset Flex Code
13519 status collapsed
13520
13521 \begin_layout Plain Layout
13522 Command
13523 \end_layout
13524
13525 \end_inset
13526
13527 .
13528 \end_layout
13529
13530 \begin_layout Standard
13531 Arguments for list 
13532 \begin_inset Flex Code
13533 status collapsed
13534
13535 \begin_layout Plain Layout
13536
13537 \backslash
13538 item
13539 \end_layout
13540
13541 \end_inset
13542
13543 s (as in 
13544 \begin_inset Flex Code
13545 status collapsed
13546
13547 \begin_layout Plain Layout
13548
13549 \backslash
13550 item[foo]
13551 \end_layout
13552
13553 \end_inset
13554
13555 ) have the prefix 
13556 \begin_inset Flex Code
13557 status collapsed
13558
13559 \begin_layout Plain Layout
13560 item:
13561 \end_layout
13562
13563 \end_inset
13564
13565  followed by the number (e.
13566 \begin_inset space \thinspace{}
13567 \end_inset
13568
13569 g.
13570 \begin_inset space \space{}
13571 \end_inset
13572
13573
13574 \begin_inset Flex Code
13575 status collapsed
13576
13577 \begin_layout Plain Layout
13578 Argument item:1
13579 \end_layout
13580
13581 \end_inset
13582
13583 ).
13584 \change_inserted -712698321 1534487781
13585
13586 \end_layout
13587
13588 \begin_layout Standard
13589
13590 \change_inserted -712698321 1534488561
13591 Finally, there is a special argument type with the prefix 
13592 \begin_inset Flex Code
13593 status collapsed
13594
13595 \begin_layout Plain Layout
13596
13597 \change_inserted -712698321 1534487844
13598 listpreamble:
13599 \change_unchanged
13600
13601 \end_layout
13602
13603 \end_inset
13604
13605 .
13606  It is not really an argument, but uses the argument interface (thus, the
13607  prefix is also followed by a number, e.
13608 \begin_inset space \thinspace{}
13609 \end_inset
13610
13611 g.
13612  
13613 \begin_inset Flex Code
13614 status collapsed
13615
13616 \begin_layout Plain Layout
13617
13618 \change_inserted -712698321 1534488412
13619 Argument listpreamble:1
13620 \change_unchanged
13621
13622 \end_layout
13623
13624 \end_inset
13625
13626 ).
13627  As the name implies, it is targeted at lists such as 
13628 \family sans
13629 Itemize
13630 \family default
13631
13632 \family sans
13633 Enumerate
13634 \family default
13635
13636 \family sans
13637 Description
13638 \family default
13639 , or 
13640 \family sans
13641 Bibliography
13642 \family default
13643 .
13644  Its content will be output at the list start, before the first 
13645 \begin_inset Flex Code
13646 status collapsed
13647
13648 \begin_layout Plain Layout
13649
13650 \change_inserted -712698321 1534488058
13651
13652 \backslash
13653 item
13654 \change_unchanged
13655
13656 \end_layout
13657
13658 \end_inset
13659
13660 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13661 ).
13662  This way, users can insert redefinitions (of lengths etc.) to individual
13663  lists.
13664  By default, these arguments do not have a delimiter.
13665 \change_unchanged
13666
13667 \end_layout
13668
13669 \end_deeper
13670 \begin_layout Description
13671 \begin_inset Flex Code
13672 status collapsed
13673
13674 \begin_layout Plain Layout
13675 AutoNests
13676 \end_layout
13677
13678 \end_inset
13679
13680  Includes a comma-separated list of layouts that should be nested in and
13681  after the current layout.
13682  Only makes sense for nestable layouts (such as environments).
13683  Must be ended by 
13684 \begin_inset Quotes eld
13685 \end_inset
13686
13687
13688 \begin_inset Flex Code
13689 status collapsed
13690
13691 \begin_layout Plain Layout
13692 EndAutoNests
13693 \end_layout
13694
13695 \end_inset
13696
13697
13698 \begin_inset Quotes erd
13699 \end_inset
13700
13701 .
13702  See also 
13703 \begin_inset Flex Code
13704 status collapsed
13705
13706 \begin_layout Plain Layout
13707 IsAutoNestedBy
13708 \end_layout
13709
13710 \end_inset
13711
13712 .
13713 \end_layout
13714
13715 \begin_layout Description
13716 \begin_inset Flex Code
13717 status collapsed
13718
13719 \begin_layout Plain Layout
13720 BabelPreamble
13721 \end_layout
13722
13723 \end_inset
13724
13725  Note that this will completely override any prior 
13726 \begin_inset Flex Code
13727 status collapsed
13728
13729 \begin_layout Plain Layout
13730 BabelPreamble
13731 \end_layout
13732
13733 \end_inset
13734
13735  declaration for this style.
13736  Must end with 
13737 \begin_inset Quotes eld
13738 \end_inset
13739
13740
13741 \begin_inset Flex Code
13742 status collapsed
13743
13744 \begin_layout Plain Layout
13745 EndBabelPreamble
13746 \end_layout
13747
13748 \end_inset
13749
13750
13751 \begin_inset Quotes erd
13752 \end_inset
13753
13754 .
13755  See 
13756 \begin_inset CommandInset ref
13757 LatexCommand ref
13758 reference "subsec:I18n"
13759
13760 \end_inset
13761
13762  for details on its use.
13763 \end_layout
13764
13765 \begin_layout Description
13766 \begin_inset Flex Code
13767 status collapsed
13768
13769 \begin_layout Plain Layout
13770 BottomSep
13771 \end_layout
13772
13773 \end_inset
13774
13775  [
13776 \begin_inset Flex Code
13777 status collapsed
13778
13779 \begin_layout Plain Layout
13780 float=0
13781 \end_layout
13782
13783 \end_inset
13784
13785 ]
13786 \begin_inset Foot
13787 status collapsed
13788
13789 \begin_layout Plain Layout
13790 Note that a `float' here is a real number, such as: 1.5.
13791 \end_layout
13792
13793 \end_inset
13794
13795  The vertical space with which the last of a chain of paragraphs with this
13796  style is separated from the following paragraph.
13797  If the next paragraph has another style, the separations are not simply
13798  added, but the maximum is taken.
13799 \end_layout
13800
13801 \begin_layout Description
13802 \begin_inset Flex Code
13803 status collapsed
13804
13805 \begin_layout Plain Layout
13806 Category
13807 \end_layout
13808
13809 \end_inset
13810
13811  [
13812 \begin_inset Flex Code
13813 status collapsed
13814
13815 \begin_layout Plain Layout
13816 string
13817 \end_layout
13818
13819 \end_inset
13820
13821 ] The category for this style.
13822  This is used to group related styles in the style combobox on the toolbar.
13823  Any string can be used, but you may want to use existing categories with
13824  your own styles.
13825  
13826 \end_layout
13827
13828 \begin_layout Description
13829 \begin_inset Flex Code
13830 status collapsed
13831
13832 \begin_layout Plain Layout
13833 CommandDepth
13834 \end_layout
13835
13836 \end_inset
13837
13838  Depth of XML command.
13839  Used only with XML-type formats.
13840 \end_layout
13841
13842 \begin_layout Description
13843 \begin_inset Flex Code
13844 status collapsed
13845
13846 \begin_layout Plain Layout
13847 CopyStyle
13848 \end_layout
13849
13850 \end_inset
13851
13852  [
13853 \begin_inset Flex Code
13854 status collapsed
13855
13856 \begin_layout Plain Layout
13857 string
13858 \end_layout
13859
13860 \end_inset
13861
13862 ] Copies all the features of an existing style into the current one.
13863  
13864 \end_layout
13865
13866 \begin_layout Description
13867 \begin_inset Flex Code
13868 status collapsed
13869
13870 \begin_layout Plain Layout
13871 DependsOn
13872 \end_layout
13873
13874 \end_inset
13875
13876  [
13877 \begin_inset Flex Code
13878 status collapsed
13879
13880 \begin_layout Plain Layout
13881 <name>
13882 \end_layout
13883
13884 \end_inset
13885
13886 ] The name of a style whose preamble should be output 
13887 \emph on
13888 before
13889 \emph default
13890  this one.
13891  This allows to ensure some ordering of the preamble snippets when macros
13892  definitions depend on one another.
13893 \begin_inset Foot
13894 status collapsed
13895
13896 \begin_layout Plain Layout
13897 Note that, besides that functionality, there is no way to ensure any ordering
13898  of preambles.
13899  The ordering that you see in a given version of \SpecialChar LyX
13900  may change without warning
13901  in later versions.
13902 \end_layout
13903
13904 \end_inset
13905
13906
13907 \end_layout
13908
13909 \begin_layout Description
13910 \begin_inset Flex Code
13911 status collapsed
13912
13913 \begin_layout Plain Layout
13914 EndLabeltype
13915 \end_layout
13916
13917 \end_inset
13918
13919  [
13920 \begin_inset Flex Code
13921 status collapsed
13922
13923 \begin_layout Plain Layout
13924
13925 \emph on
13926 No_Label
13927 \emph default
13928 , Box, Filled_Box, Static
13929 \end_layout
13930
13931 \end_inset
13932
13933 ] The type of label that stands at the end of the paragraph (or sequence
13934  of paragraphs if 
13935 \begin_inset Flex Code
13936 status collapsed
13937
13938 \begin_layout Plain Layout
13939 LatexType
13940 \end_layout
13941
13942 \end_inset
13943
13944  is
13945 \begin_inset Newline newline
13946 \end_inset
13947
13948
13949 \begin_inset Flex Code
13950 status collapsed
13951
13952 \begin_layout Plain Layout
13953 Environment
13954 \end_layout
13955
13956 \end_inset
13957
13958
13959 \begin_inset Flex Code
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963 Item_Environment
13964 \end_layout
13965
13966 \end_inset
13967
13968  or 
13969 \begin_inset Flex Code
13970 status collapsed
13971
13972 \begin_layout Plain Layout
13973 List_Environment
13974 \end_layout
13975
13976 \end_inset
13977
13978 ).
13979  
13980 \begin_inset Flex Code
13981 status collapsed
13982
13983 \begin_layout Plain Layout
13984 No_Label
13985 \end_layout
13986
13987 \end_inset
13988
13989  means 
13990 \begin_inset Quotes eld
13991 \end_inset
13992
13993 nothing
13994 \begin_inset Quotes erd
13995 \end_inset
13996
13997
13998 \begin_inset Flex Code
13999 status collapsed
14000
14001 \begin_layout Plain Layout
14002 Box
14003 \end_layout
14004
14005 \end_inset
14006
14007  (resp.
14008 \begin_inset space \space{}
14009 \end_inset
14010
14011
14012 \begin_inset Flex Code
14013 status collapsed
14014
14015 \begin_layout Plain Layout
14016 Filled_Box
14017 \end_layout
14018
14019 \end_inset
14020
14021 ) is a white (resp.
14022 \begin_inset space ~
14023 \end_inset
14024
14025 black) square suitable for end of proof markers, 
14026 \begin_inset Flex Code
14027 status collapsed
14028
14029 \begin_layout Plain Layout
14030 Static
14031 \end_layout
14032
14033 \end_inset
14034
14035  is an explicit text string.
14036 \end_layout
14037
14038 \begin_layout Description
14039 \begin_inset Flex Code
14040 status collapsed
14041
14042 \begin_layout Plain Layout
14043 EndLabelString
14044 \end_layout
14045
14046 \end_inset
14047
14048  [
14049 \begin_inset Flex Code
14050 status collapsed
14051
14052 \begin_layout Plain Layout
14053 string=""
14054 \end_layout
14055
14056 \end_inset
14057
14058 ] The string used for a label with a 
14059 \begin_inset Flex Code
14060 status collapsed
14061
14062 \begin_layout Plain Layout
14063 Static
14064 \end_layout
14065
14066 \end_inset
14067
14068
14069 \begin_inset Newline newline
14070 \end_inset
14071
14072
14073 \begin_inset Flex Code
14074 status collapsed
14075
14076 \begin_layout Plain Layout
14077 EndLabelType
14078 \end_layout
14079
14080 \end_inset
14081
14082 .
14083  
14084 \end_layout
14085
14086 \begin_layout Description
14087 \begin_inset Flex Code
14088 status collapsed
14089
14090 \begin_layout Plain Layout
14091 Font
14092 \end_layout
14093
14094 \end_inset
14095
14096  The font used for both the text body 
14097 \emph on
14098 and
14099 \emph default
14100  the label.
14101  See 
14102 \begin_inset CommandInset ref
14103 LatexCommand ref
14104 reference "subsec:Font-description"
14105
14106 \end_inset
14107
14108 .
14109  Note that defining this font automatically defines the 
14110 \begin_inset Flex Code
14111 status collapsed
14112
14113 \begin_layout Plain Layout
14114 LabelFont
14115 \end_layout
14116
14117 \end_inset
14118
14119  to the same value.
14120  So you should define this one first if you also want to define 
14121 \begin_inset Flex Code
14122 status collapsed
14123
14124 \begin_layout Plain Layout
14125 LabelFont
14126 \end_layout
14127
14128 \end_inset
14129
14130 .
14131 \end_layout
14132
14133 \begin_layout Description
14134 \begin_inset Flex Code
14135 status collapsed
14136
14137 \begin_layout Plain Layout
14138 ForceLocal
14139 \end_layout
14140
14141 \end_inset
14142
14143  [
14144 \begin_inset Flex Code
14145 status collapsed
14146
14147 \begin_layout Plain Layout
14148 int=0
14149 \end_layout
14150
14151 \end_inset
14152
14153 ] Used for backporting new styles to stable \SpecialChar LyX
14154  versions.
14155  The first stable version that supports this tag is \SpecialChar LyX
14156  2.1.0.
14157  The argument is a number which may either be 0, -1 or any value greater
14158  than zero.
14159  If the 
14160 \begin_inset Flex Code
14161 status collapsed
14162
14163 \begin_layout Plain Layout
14164 ForceLocal
14165 \end_layout
14166
14167 \end_inset
14168
14169  flag of a style is greater than zero, it will always be written to the
14170  document header.
14171  If a .lyx file is read, the style definitions from the document header are
14172  added to the document class.
14173  Therefore even older \SpecialChar LyX
14174  versions can handle the style.
14175  The argument of 
14176 \begin_inset Flex Code
14177 status collapsed
14178
14179 \begin_layout Plain Layout
14180 ForceLocal
14181 \end_layout
14182
14183 \end_inset
14184
14185  is a version number: if the style is read, and the version number is less
14186  than the version number of the already existing style in the document class,
14187  the new style is ignored.
14188  If the version number is greater, the new style replaces the existing style.
14189  A value of -1 means an infinite version number, i.
14190 \begin_inset space \thinspace{}
14191 \end_inset
14192
14193 e.
14194 \begin_inset space \space{}
14195 \end_inset
14196
14197 the style is always used.
14198 \end_layout
14199
14200 \begin_layout Description
14201 \begin_inset Flex Code
14202 status collapsed
14203
14204 \begin_layout Plain Layout
14205 FreeSpacing
14206 \end_layout
14207
14208 \end_inset
14209
14210  [
14211 \begin_inset Flex Code
14212 status collapsed
14213
14214 \begin_layout Plain Layout
14215
14216 \emph on
14217 0
14218 \end_layout
14219
14220 \end_inset
14221
14222 ,
14223 \begin_inset space \thinspace{}
14224 \end_inset
14225
14226
14227 \begin_inset Flex Code
14228 status collapsed
14229
14230 \begin_layout Plain Layout
14231 1
14232 \end_layout
14233
14234 \end_inset
14235
14236 ] Usually \SpecialChar LyX
14237  does not allow you to insert more than one space between words,
14238  since a space is considered as the separation between two words, not a
14239  character or symbol of its own.
14240  This is a very fine thing but sometimes annoying, for example, when typing
14241  program code or plain \SpecialChar LaTeX
14242  code.
14243  For this reason, 
14244 \begin_inset Flex Code
14245 status collapsed
14246
14247 \begin_layout Plain Layout
14248 FreeSpacing
14249 \end_layout
14250
14251 \end_inset
14252
14253  can be enabled.
14254  
14255 \change_deleted -495245474 1550490105
14256 Note that 
14257 \change_unchanged
14258 \SpecialChar LyX
14259  will create protected blanks for the additional blanks when in 
14260 \change_inserted -495245474 1550490096
14261
14262 \begin_inset Flex Code
14263 status collapsed
14264
14265 \begin_layout Plain Layout
14266
14267 \change_inserted -495245474 1550490089
14268 Passthru 1
14269 \change_unchanged
14270
14271 \end_layout
14272
14273 \end_inset
14274
14275  is not specified.
14276 \change_deleted -495245474 1550490116
14277 another mode than \SpecialChar LaTeX
14278 -mode.
14279
14280 \change_inserted -495245474 1550247760
14281  Note that 
14282 \begin_inset Flex Code
14283 status collapsed
14284
14285 \begin_layout Plain Layout
14286
14287 \change_inserted -495245474 1550247736
14288 FreeSpacing
14289 \change_unchanged
14290
14291 \end_layout
14292
14293 \end_inset
14294
14295  implies 
14296 \begin_inset Flex Code
14297 status collapsed
14298
14299 \begin_layout Plain Layout
14300
14301 \change_inserted -495245474 1550247755
14302 KeepEmpty
14303 \change_unchanged
14304
14305 \end_layout
14306
14307 \end_inset
14308
14309 .
14310 \change_unchanged
14311
14312 \end_layout
14313
14314 \begin_layout Description
14315 \begin_inset Flex Code
14316 status collapsed
14317
14318 \begin_layout Plain Layout
14319 HTML*
14320 \end_layout
14321
14322 \end_inset
14323
14324  These tags are used with XHTML output.
14325  See 
14326 \begin_inset CommandInset ref
14327 LatexCommand ref
14328 reference "subsec:Paragraph-Style-XHTML"
14329
14330 \end_inset
14331
14332 .
14333 \end_layout
14334
14335 \begin_layout Description
14336 \begin_inset Flex Code
14337 status collapsed
14338
14339 \begin_layout Plain Layout
14340 InnerTag
14341 \end_layout
14342
14343 \end_inset
14344
14345  [FIXME] (Used only with XML-type formats.)
14346 \end_layout
14347
14348 \begin_layout Description
14349 \begin_inset Flex Code
14350 status collapsed
14351
14352 \begin_layout Plain Layout
14353 InPreamble
14354 \end_layout
14355
14356 \end_inset
14357
14358  [
14359 \begin_inset Flex Code
14360 status collapsed
14361
14362 \begin_layout Plain Layout
14363
14364 \emph on
14365 0
14366 \end_layout
14367
14368 \end_inset
14369
14370 ,
14371 \begin_inset space \thinspace{}
14372 \end_inset
14373
14374
14375 \begin_inset Flex Code
14376 status collapsed
14377
14378 \begin_layout Plain Layout
14379 1
14380 \end_layout
14381
14382 \end_inset
14383
14384 ] If 
14385 \begin_inset Flex Code
14386 status collapsed
14387
14388 \begin_layout Plain Layout
14389 1
14390 \end_layout
14391
14392 \end_inset
14393
14394 , marks the style as to be included in the document preamble and not in
14395  the document body.
14396  This is useful for document classes that want such information as the title
14397  and author to appear in the preamble.
14398  Note that this works only for styles for which the 
14399 \begin_inset Flex Code
14400 status collapsed
14401
14402 \begin_layout Plain Layout
14403 LatexType
14404 \end_layout
14405
14406 \end_inset
14407
14408  is 
14409 \begin_inset Flex Code
14410 status collapsed
14411
14412 \begin_layout Plain Layout
14413 Command
14414 \end_layout
14415
14416 \end_inset
14417
14418  or 
14419 \begin_inset Flex Code
14420 status collapsed
14421
14422 \begin_layout Plain Layout
14423 Paragraph
14424 \end_layout
14425
14426 \end_inset
14427
14428 .
14429 \end_layout
14430
14431 \begin_layout Description
14432 \begin_inset Flex Code
14433 status collapsed
14434
14435 \begin_layout Plain Layout
14436 InTitle
14437 \end_layout
14438
14439 \end_inset
14440
14441  [
14442 \begin_inset Flex Code
14443 status collapsed
14444
14445 \begin_layout Plain Layout
14446
14447 \emph on
14448 0
14449 \end_layout
14450
14451 \end_inset
14452
14453 ,
14454 \begin_inset space \thinspace{}
14455 \end_inset
14456
14457
14458 \begin_inset Flex Code
14459 status collapsed
14460
14461 \begin_layout Plain Layout
14462 1
14463 \end_layout
14464
14465 \end_inset
14466
14467 ] If 
14468 \begin_inset Flex Code
14469 status collapsed
14470
14471 \begin_layout Plain Layout
14472 1
14473 \end_layout
14474
14475 \end_inset
14476
14477 , marks the style as being part of a title block (see also the 
14478 \begin_inset Flex Code
14479 status collapsed
14480
14481 \begin_layout Plain Layout
14482 TitleLatexType
14483 \end_layout
14484
14485 \end_inset
14486
14487  and 
14488 \begin_inset Flex Code
14489 status collapsed
14490
14491 \begin_layout Plain Layout
14492 TitleLatexName
14493 \end_layout
14494
14495 \end_inset
14496
14497  global entries).
14498 \end_layout
14499
14500 \begin_layout Description
14501 \begin_inset Flex Code
14502 status collapsed
14503
14504 \begin_layout Plain Layout
14505 IsAutoNestedBy
14506 \end_layout
14507
14508 \end_inset
14509
14510  Includes a comma-separated list of layouts after which this one should
14511  be nested.
14512  Only makes sense with regard to nestable layouts (such as environments).
14513  Must be ended by 
14514 \begin_inset Quotes eld
14515 \end_inset
14516
14517
14518 \begin_inset Flex Code
14519 status collapsed
14520
14521 \begin_layout Plain Layout
14522 EndIsAutoNestedBy
14523 \end_layout
14524
14525 \end_inset
14526
14527
14528 \begin_inset Quotes erd
14529 \end_inset
14530
14531 .
14532  See also 
14533 \begin_inset Flex Code
14534 status collapsed
14535
14536 \begin_layout Plain Layout
14537 AutoNests
14538 \end_layout
14539
14540 \end_inset
14541
14542 .
14543 \end_layout
14544
14545 \begin_layout Description
14546 \begin_inset Flex Code
14547 status collapsed
14548
14549 \begin_layout Plain Layout
14550 IsTocCaption
14551 \end_layout
14552
14553 \end_inset
14554
14555  [
14556 \begin_inset Flex Code
14557 status collapsed
14558
14559 \begin_layout Plain Layout
14560
14561 \emph on
14562 0
14563 \end_layout
14564
14565 \end_inset
14566
14567 ,
14568 \begin_inset space \thinspace{}
14569 \end_inset
14570
14571
14572 \begin_inset Flex Code
14573 status collapsed
14574
14575 \begin_layout Plain Layout
14576 1
14577 \end_layout
14578
14579 \end_inset
14580
14581 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14582  of its contents in its item in the table of contents.
14583  Otherwise, only the label, if it exists, appears.
14584 \end_layout
14585
14586 \begin_layout Description
14587 \begin_inset Flex Code
14588 status collapsed
14589
14590 \begin_layout Plain Layout
14591 ItemCommand
14592 \end_layout
14593
14594 \end_inset
14595
14596  [
14597 \begin_inset Flex Code
14598 status collapsed
14599
14600 \begin_layout Plain Layout
14601 string="item"
14602 \end_layout
14603
14604 \end_inset
14605
14606 ] The \SpecialChar LaTeX
14607  command sequence declaring an item in a list.
14608  The command is to be defined without the preceding backslash (the default
14609  is 
14610 \begin_inset Quotes eld
14611 \end_inset
14612
14613 item
14614 \begin_inset Quotes erd
14615 \end_inset
14616
14617 , resulting in 
14618 \begin_inset Flex Code
14619 status collapsed
14620
14621 \begin_layout Plain Layout
14622
14623 \backslash
14624 item
14625 \end_layout
14626
14627 \end_inset
14628
14629  in the \SpecialChar LaTeX
14630  output).
14631 \end_layout
14632
14633 \begin_layout Description
14634 \begin_inset Flex Code
14635 status collapsed
14636
14637 \begin_layout Plain Layout
14638 ItemSep
14639 \end_layout
14640
14641 \end_inset
14642
14643  [
14644 \begin_inset Flex Code
14645 status collapsed
14646
14647 \begin_layout Plain Layout
14648 float=0
14649 \end_layout
14650
14651 \end_inset
14652
14653 ] This provides extra space between paragraphs that have the same style.
14654  If you put other styles into an environment, each is separated with the
14655  environment's 
14656 \begin_inset Flex Code
14657 status collapsed
14658
14659 \begin_layout Plain Layout
14660 ParSep
14661 \end_layout
14662
14663 \end_inset
14664
14665 .
14666  But the whole items of the environment are additionally separated with
14667  this 
14668 \begin_inset Flex Code
14669 status collapsed
14670
14671 \begin_layout Plain Layout
14672 ItemSep
14673 \end_layout
14674
14675 \end_inset
14676
14677 .
14678  Note that this is a
14679 \emph on
14680  multiplier.
14681 \end_layout
14682
14683 \begin_layout Description
14684 \begin_inset Flex Code
14685 status collapsed
14686
14687 \begin_layout Plain Layout
14688 ItemTag
14689 \end_layout
14690
14691 \end_inset
14692
14693  [FIXME] (Used only with XML-type formats.)
14694 \end_layout
14695
14696 \begin_layout Description
14697 \begin_inset Flex Code
14698 status collapsed
14699
14700 \begin_layout Plain Layout
14701 KeepEmpty
14702 \end_layout
14703
14704 \end_inset
14705
14706  [
14707 \begin_inset Flex Code
14708 status collapsed
14709
14710 \begin_layout Plain Layout
14711
14712 \emph on
14713 0
14714 \end_layout
14715
14716 \end_inset
14717
14718 ,
14719 \begin_inset space \thinspace{}
14720 \end_inset
14721
14722
14723 \begin_inset Flex Code
14724 status collapsed
14725
14726 \begin_layout Plain Layout
14727 1
14728 \end_layout
14729
14730 \end_inset
14731
14732 ] Usually \SpecialChar LyX
14733  does not allow you to leave a paragraph empty, since it would
14734  lead to empty \SpecialChar LaTeX
14735  output.
14736  There are some cases where this could be desirable however: in a letter
14737  template, the required fields can be provided as empty fields, so that
14738  people do not forget them; in some special classes, a style can be used
14739  as some kind of break, which does not contain actual text.
14740 \end_layout
14741
14742 \begin_layout Description
14743 \begin_inset Flex Code
14744 status collapsed
14745
14746 \begin_layout Plain Layout
14747 LabelBottomsep
14748 \end_layout
14749
14750 \end_inset
14751
14752  [
14753 \begin_inset Flex Code
14754 status collapsed
14755
14756 \begin_layout Plain Layout
14757 float=0
14758 \end_layout
14759
14760 \end_inset
14761
14762 ] The vertical space between the label and the text body.
14763  Only used for labels that are above the text body (
14764 \begin_inset Flex Code
14765 status collapsed
14766
14767 \begin_layout Plain Layout
14768 Top_Environment
14769 \end_layout
14770
14771 \end_inset
14772
14773  and
14774 \begin_inset Newline newline
14775 \end_inset
14776
14777
14778 \begin_inset Flex Code
14779 status collapsed
14780
14781 \begin_layout Plain Layout
14782 Centered_Top_Environment
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 LabelCounter
14796 \end_layout
14797
14798 \end_inset
14799
14800  [
14801 \begin_inset Flex Code
14802 status collapsed
14803
14804 \begin_layout Plain Layout
14805 string=""
14806 \end_layout
14807
14808 \end_inset
14809
14810 ] The name of the counter for automatic numbering.
14811  In order to have the counter appear with your label, you will need to reference
14812  it in the 
14813 \begin_inset Flex Code
14814 status collapsed
14815
14816 \begin_layout Plain Layout
14817
14818 \family typewriter
14819 LabelString
14820 \end_layout
14821
14822 \end_inset
14823
14824 .
14825  This will work with 
14826 \begin_inset Flex Code
14827 status collapsed
14828
14829 \begin_layout Plain Layout
14830 LabelType
14831 \end_layout
14832
14833 \end_inset
14834
14835 s, 
14836 \begin_inset Flex Code
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840 Static
14841 \end_layout
14842
14843 \end_inset
14844
14845
14846 \begin_inset Flex Code
14847 status collapsed
14848
14849 \begin_layout Plain Layout
14850 Above
14851 \end_layout
14852
14853 \end_inset
14854
14855  and 
14856 \begin_inset Flex Code
14857 status collapsed
14858
14859 \begin_layout Plain Layout
14860 Centered
14861 \end_layout
14862
14863 \end_inset
14864
14865 , at least.
14866 \begin_inset Newline newline
14867 \end_inset
14868
14869 This 
14870 \emph on
14871 may
14872 \emph default
14873  also be given if 
14874 \begin_inset Flex Code
14875 status collapsed
14876
14877 \begin_layout Plain Layout
14878 LabelType
14879 \end_layout
14880
14881 \end_inset
14882
14883  is 
14884 \begin_inset Flex Code
14885 status collapsed
14886
14887 \begin_layout Plain Layout
14888 Enumerate
14889 \end_layout
14890
14891 \end_inset
14892
14893 , though this case is a bit complicated.
14894  Suppose you declare 
14895 \begin_inset Quotes eld
14896 \end_inset
14897
14898
14899 \begin_inset Flex Code
14900 status collapsed
14901
14902 \begin_layout Plain Layout
14903 LabelCounter myenum
14904 \end_layout
14905
14906 \end_inset
14907
14908
14909 \begin_inset Quotes erd
14910 \end_inset
14911
14912 .
14913  Then the actual counters used are 
14914 \begin_inset Flex Code
14915 status collapsed
14916
14917 \begin_layout Plain Layout
14918 myenumi
14919 \end_layout
14920
14921 \end_inset
14922
14923
14924 \begin_inset Flex Code
14925 status collapsed
14926
14927 \begin_layout Plain Layout
14928 myenumii
14929 \end_layout
14930
14931 \end_inset
14932
14933
14934 \begin_inset Flex Code
14935 status collapsed
14936
14937 \begin_layout Plain Layout
14938 myenumiii
14939 \end_layout
14940
14941 \end_inset
14942
14943  and 
14944 \begin_inset Flex Code
14945 status collapsed
14946
14947 \begin_layout Plain Layout
14948 myenumiv
14949 \end_layout
14950
14951 \end_inset
14952
14953 , much as in \SpecialChar LaTeX
14954 .
14955  These counters must all be declared separately.
14956 \begin_inset Newline newline
14957 \end_inset
14958
14959 See 
14960 \begin_inset CommandInset ref
14961 LatexCommand ref
14962 reference "subsec:Counters"
14963
14964 \end_inset
14965
14966  for details on counters.
14967 \end_layout
14968
14969 \begin_layout Description
14970 \begin_inset Flex Code
14971 status collapsed
14972
14973 \begin_layout Plain Layout
14974 LabelFont
14975 \end_layout
14976
14977 \end_inset
14978
14979  The font used for the label.
14980  See 
14981 \begin_inset CommandInset ref
14982 LatexCommand ref
14983 reference "subsec:Font-description"
14984
14985 \end_inset
14986
14987 .
14988 \end_layout
14989
14990 \begin_layout Description
14991 \begin_inset Flex Code
14992 status collapsed
14993
14994 \begin_layout Plain Layout
14995 LabelIndent
14996 \end_layout
14997
14998 \end_inset
14999
15000  [
15001 \begin_inset Flex Code
15002 status collapsed
15003
15004 \begin_layout Plain Layout
15005 string=""
15006 \end_layout
15007
15008 \end_inset
15009
15010 ] Text that indicates how far a label should be indented.
15011 \end_layout
15012
15013 \begin_layout Description
15014 \begin_inset Flex Code
15015 status collapsed
15016
15017 \begin_layout Plain Layout
15018 LabelSep
15019 \end_layout
15020
15021 \end_inset
15022
15023  [
15024 \begin_inset Flex Code
15025 status collapsed
15026
15027 \begin_layout Plain Layout
15028 string=""
15029 \end_layout
15030
15031 \end_inset
15032
15033 ] Text that indicates the amount of horizontal space between the label and
15034  the text body.
15035  Only used for labels that are not above the text body.
15036 \end_layout
15037
15038 \begin_layout Description
15039 \begin_inset Flex Code
15040 status collapsed
15041
15042 \begin_layout Plain Layout
15043 LabelString
15044 \end_layout
15045
15046 \end_inset
15047
15048  [
15049 \begin_inset Flex Code
15050 status collapsed
15051
15052 \begin_layout Plain Layout
15053 string=""
15054 \end_layout
15055
15056 \end_inset
15057
15058 ] The string used for the label.
15059  When 
15060 \begin_inset Flex Code
15061 status collapsed
15062
15063 \begin_layout Plain Layout
15064 LabelCounter
15065 \end_layout
15066
15067 \end_inset
15068
15069  is set, this string can be contain the special formatting commands described
15070  in 
15071 \begin_inset CommandInset ref
15072 LatexCommand ref
15073 reference "subsec:Counters"
15074
15075 \end_inset
15076
15077 .
15078 \end_layout
15079
15080 \begin_layout Description
15081 \begin_inset Flex Code
15082 status collapsed
15083
15084 \begin_layout Plain Layout
15085 LabelStringAppendix
15086 \end_layout
15087
15088 \end_inset
15089
15090  [
15091 \begin_inset Flex Code
15092 status collapsed
15093
15094 \begin_layout Plain Layout
15095 string=""
15096 \end_layout
15097
15098 \end_inset
15099
15100 ] This is used inside the appendix instead of
15101 \begin_inset Newline newline
15102 \end_inset
15103
15104
15105 \begin_inset Flex Code
15106 status collapsed
15107
15108 \begin_layout Plain Layout
15109 LabelString
15110 \end_layout
15111
15112 \end_inset
15113
15114 .
15115  Note that every 
15116 \begin_inset Flex Code
15117 status collapsed
15118
15119 \begin_layout Plain Layout
15120 LabelString
15121 \end_layout
15122
15123 \end_inset
15124
15125  statement resets
15126 \begin_inset Newline newline
15127 \end_inset
15128
15129
15130 \begin_inset Flex Code
15131 status collapsed
15132
15133 \begin_layout Plain Layout
15134 LabelStringAppendix
15135 \end_layout
15136
15137 \end_inset
15138
15139  too.
15140 \end_layout
15141
15142 \begin_layout Description
15143 \begin_inset Flex Code
15144 status collapsed
15145
15146 \begin_layout Plain Layout
15147 LabelTag
15148 \end_layout
15149
15150 \end_inset
15151
15152  [FIXME] (Used only with XML-type formats.)
15153 \end_layout
15154
15155 \begin_layout Description
15156 \begin_inset Flex Code
15157 status collapsed
15158
15159 \begin_layout Plain Layout
15160 LabelType
15161 \end_layout
15162
15163 \end_inset
15164
15165  [
15166 \begin_inset Flex Code
15167 status collapsed
15168
15169 \begin_layout Plain Layout
15170
15171 \emph on
15172 No_Label
15173 \emph default
15174 , Manual, Static, Above, 
15175 \begin_inset Newline newline
15176 \end_inset
15177
15178 Centered, Sensitive, Enumerate,
15179 \begin_inset Newline newline
15180 \end_inset
15181
15182 Itemize, Bibliography
15183 \end_layout
15184
15185 \end_inset
15186
15187 ]
15188 \end_layout
15189
15190 \begin_deeper
15191 \begin_layout Description
15192 \begin_inset Flex Code
15193 status collapsed
15194
15195 \begin_layout Plain Layout
15196 Manual
15197 \end_layout
15198
15199 \end_inset
15200
15201  means the label is the very first word (up to the first real blank).
15202  Use protected spaces if you want more than one word as the label.
15203  
15204 \end_layout
15205
15206 \begin_layout Description
15207 \begin_inset Flex Code
15208 status collapsed
15209
15210 \begin_layout Plain Layout
15211 Static
15212 \end_layout
15213
15214 \end_inset
15215
15216  means the label is simply what is declared as 
15217 \begin_inset Flex Code
15218 status collapsed
15219
15220 \begin_layout Plain Layout
15221 LabelString
15222 \end_layout
15223
15224 \end_inset
15225
15226 .
15227  This will be displayed 
15228 \begin_inset Quotes eld
15229 \end_inset
15230
15231 inline
15232 \begin_inset Quotes erd
15233 \end_inset
15234
15235 , at the beginning of the paragraph.
15236  If the 
15237 \begin_inset Flex Code
15238 status collapsed
15239
15240 \begin_layout Plain Layout
15241 LatexType
15242 \end_layout
15243
15244 \end_inset
15245
15246  is 
15247 \begin_inset Flex Code
15248 status collapsed
15249
15250 \begin_layout Plain Layout
15251 Environment
15252 \end_layout
15253
15254 \end_inset
15255
15256 , then it will be displayed only in the first paragraph of any sequence
15257  of paragraphs with the same 
15258 \begin_inset Flex Code
15259 status collapsed
15260
15261 \begin_layout Plain Layout
15262 Style
15263 \end_layout
15264
15265 \end_inset
15266
15267 .
15268 \end_layout
15269
15270 \begin_layout Description
15271 \begin_inset Flex Code
15272 status collapsed
15273
15274 \begin_layout Plain Layout
15275 Above
15276 \end_layout
15277
15278 \end_inset
15279
15280
15281 \begin_inset space ~
15282 \end_inset
15283
15284 and
15285 \begin_inset space ~
15286 \end_inset
15287
15288
15289 \begin_inset Flex Code
15290 status collapsed
15291
15292 \begin_layout Plain Layout
15293 Centered
15294 \end_layout
15295
15296 \end_inset
15297
15298  are special cases of 
15299 \begin_inset Flex Code
15300 status collapsed
15301
15302 \begin_layout Plain Layout
15303 Static
15304 \end_layout
15305
15306 \end_inset
15307
15308 .
15309  The label will be printed above the paragraph either at the beginning of
15310  the line or centered.
15311 \end_layout
15312
15313 \begin_layout Description
15314 \begin_inset Flex Code
15315 status collapsed
15316
15317 \begin_layout Plain Layout
15318 Sensitive
15319 \end_layout
15320
15321 \end_inset
15322
15323  is a special case for the caption-labels 
15324 \begin_inset Quotes eld
15325 \end_inset
15326
15327 Figure
15328 \begin_inset Quotes erd
15329 \end_inset
15330
15331  and 
15332 \begin_inset Quotes eld
15333 \end_inset
15334
15335 Table
15336 \begin_inset Quotes erd
15337 \end_inset
15338
15339 .
15340 \begin_inset Newline newline
15341 \end_inset
15342
15343
15344 \begin_inset Flex Code
15345 status collapsed
15346
15347 \begin_layout Plain Layout
15348 Sensitive
15349 \end_layout
15350
15351 \end_inset
15352
15353  means the (hardcoded) label string depends on the kind of float: It is
15354  hardcoded to be `FloatType N', where N is the value of the counter associated
15355  with the float.
15356  For the case that a caption is inserted outside of a float the 
15357 \begin_inset Flex Code
15358 status collapsed
15359
15360 \begin_layout Plain Layout
15361 LabelString
15362 \end_layout
15363
15364 \end_inset
15365
15366  will appear as 
15367 \begin_inset Quotes eld
15368 \end_inset
15369
15370 Senseless!
15371 \begin_inset Quotes erd
15372 \end_inset
15373
15374 .
15375 \end_layout
15376
15377 \begin_layout Description
15378 \begin_inset Flex Code
15379 status collapsed
15380
15381 \begin_layout Plain Layout
15382 Enumerate
15383 \end_layout
15384
15385 \end_inset
15386
15387  produces the usual sort of enumeration labels.
15388  The number type needs to be set in the 
15389 \family sans
15390 Counter
15391 \family default
15392 , see 
15393 \begin_inset CommandInset ref
15394 LatexCommand ref
15395 reference "subsec:Counters"
15396
15397 \end_inset
15398
15399 .
15400 \end_layout
15401
15402 \begin_layout Description
15403 \begin_inset Flex Code
15404 status collapsed
15405
15406 \begin_layout Plain Layout
15407 Itemize
15408 \end_layout
15409
15410 \end_inset
15411
15412  produces various bullets at the different levels.
15413  The bullet types displayed can be set via 
15414 \begin_inset Flex Noun
15415 status collapsed
15416
15417 \begin_layout Plain Layout
15418 Document\SpecialChar menuseparator
15419 Settings\SpecialChar menuseparator
15420 Bullets
15421 \end_layout
15422
15423 \end_inset
15424
15425 .
15426 \end_layout
15427
15428 \begin_layout Description
15429 \begin_inset Flex Code
15430 status collapsed
15431
15432 \begin_layout Plain Layout
15433 Bibliography
15434 \end_layout
15435
15436 \end_inset
15437
15438  should be used only with 
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443 LatexType BibEnvironment
15444 \end_layout
15445
15446 \end_inset
15447
15448 .
15449 \end_layout
15450
15451 \end_deeper
15452 \begin_layout Description
15453 \begin_inset Flex Code
15454 status collapsed
15455
15456 \begin_layout Plain Layout
15457 LangPreamble
15458 \end_layout
15459
15460 \end_inset
15461
15462  Note that this will completely override any prior 
15463 \begin_inset Flex Code
15464 status collapsed
15465
15466 \begin_layout Plain Layout
15467 LangPreamble
15468 \end_layout
15469
15470 \end_inset
15471
15472  declaration for this style.
15473  Must end with 
15474 \begin_inset Quotes eld
15475 \end_inset
15476
15477
15478 \begin_inset Flex Code
15479 status collapsed
15480
15481 \begin_layout Plain Layout
15482 EndLangPreamble
15483 \end_layout
15484
15485 \end_inset
15486
15487
15488 \begin_inset Quotes erd
15489 \end_inset
15490
15491 .
15492  See 
15493 \begin_inset CommandInset ref
15494 LatexCommand ref
15495 reference "subsec:I18n"
15496
15497 \end_inset
15498
15499  for details on its use.
15500 \end_layout
15501
15502 \begin_layout Description
15503 \begin_inset Flex Code
15504 status collapsed
15505
15506 \begin_layout Plain Layout
15507 LatexName
15508 \end_layout
15509
15510 \end_inset
15511
15512  [
15513 \begin_inset Flex Code
15514 status collapsed
15515
15516 \begin_layout Plain Layout
15517 <name>
15518 \end_layout
15519
15520 \end_inset
15521
15522 ] The name of the corresponding \SpecialChar LaTeX
15523  stuff.
15524  Either the environment or command name.
15525 \end_layout
15526
15527 \begin_layout Description
15528 \begin_inset Flex Code
15529 status collapsed
15530
15531 \begin_layout Plain Layout
15532 LatexParam
15533 \end_layout
15534
15535 \end_inset
15536
15537  [
15538 \begin_inset Flex Code
15539 status collapsed
15540
15541 \begin_layout Plain Layout
15542 <parameter>
15543 \end_layout
15544
15545 \end_inset
15546
15547 ] An optional parameter for the corresponding 
15548 \begin_inset Flex Code
15549 status collapsed
15550
15551 \begin_layout Plain Layout
15552 LatexName
15553 \end_layout
15554
15555 \end_inset
15556
15557  stuff.
15558  This parameter cannot be changed from within \SpecialChar LyX
15559  (use 
15560 \begin_inset Flex Code
15561 status collapsed
15562
15563 \begin_layout Plain Layout
15564 Argument
15565 \end_layout
15566
15567 \end_inset
15568
15569  for customizable parameters).
15570  This will be output as is after all \SpecialChar LaTeX
15571  
15572 \begin_inset Flex Code
15573 status collapsed
15574
15575 \begin_layout Plain Layout
15576 Argument
15577 \end_layout
15578
15579 \end_inset
15580
15581 s.
15582 \end_layout
15583
15584 \begin_layout Description
15585 \begin_inset Flex Code
15586 status collapsed
15587
15588 \begin_layout Plain Layout
15589 LatexType
15590 \end_layout
15591
15592 \end_inset
15593
15594  [
15595 \begin_inset Flex Code
15596 status collapsed
15597
15598 \begin_layout Plain Layout
15599
15600 \emph on
15601 Paragraph
15602 \emph default
15603 , Command, Environment, Item_Environment,
15604 \begin_inset Newline newline
15605 \end_inset
15606
15607 List_Environment, Bib_Environment
15608 \end_layout
15609
15610 \end_inset
15611
15612 ] How the style should be translated into \SpecialChar LaTeX
15613 .
15614 \begin_inset Foot
15615 status collapsed
15616
15617 \begin_layout Plain Layout
15618 \begin_inset Flex Code
15619 status collapsed
15620
15621 \begin_layout Plain Layout
15622 LatexType
15623 \end_layout
15624
15625 \end_inset
15626
15627  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15628  Visit the SGML class files for specific examples.
15629 \end_layout
15630
15631 \end_inset
15632
15633
15634 \end_layout
15635
15636 \begin_deeper
15637 \begin_layout Description
15638 \begin_inset Flex Code
15639 status collapsed
15640
15641 \begin_layout Plain Layout
15642 Paragraph
15643 \end_layout
15644
15645 \end_inset
15646
15647  means nothing special.
15648 \end_layout
15649
15650 \begin_layout Description
15651 \begin_inset Flex Code
15652 status collapsed
15653
15654 \begin_layout Plain Layout
15655 Command
15656 \end_layout
15657
15658 \end_inset
15659
15660  means 
15661 \begin_inset Flex Code
15662 status collapsed
15663
15664 \begin_layout Plain Layout
15665
15666 \backslash
15667
15668 \emph on
15669 LatexName
15670 \emph default
15671 {\SpecialChar ldots
15672 }
15673 \end_layout
15674
15675 \end_inset
15676
15677 .
15678 \end_layout
15679
15680 \begin_layout Description
15681 \begin_inset Flex Code
15682 status collapsed
15683
15684 \begin_layout Plain Layout
15685 Environment
15686 \end_layout
15687
15688 \end_inset
15689
15690  means 
15691 \begin_inset Flex Code
15692 status collapsed
15693
15694 \begin_layout Plain Layout
15695
15696 \backslash
15697 begin{
15698 \emph on
15699 LatexName
15700 \emph default
15701 }\SpecialChar ldots
15702
15703 \backslash
15704 end{
15705 \emph on
15706 LatexName
15707 \emph default
15708 }
15709 \end_layout
15710
15711 \end_inset
15712
15713 .
15714  
15715 \end_layout
15716
15717 \begin_layout Description
15718 \begin_inset Flex Code
15719 status collapsed
15720
15721 \begin_layout Plain Layout
15722 Item_Environment
15723 \end_layout
15724
15725 \end_inset
15726
15727  is the same as 
15728 \begin_inset Flex Code
15729 status collapsed
15730
15731 \begin_layout Plain Layout
15732 Environment
15733 \end_layout
15734
15735 \end_inset
15736
15737 , except that an 
15738 \begin_inset Flex Code
15739 status collapsed
15740
15741 \begin_layout Plain Layout
15742
15743 \backslash
15744 item
15745 \end_layout
15746
15747 \end_inset
15748
15749  is generated for each paragraph of this environment.
15750  
15751 \end_layout
15752
15753 \begin_layout Description
15754 \begin_inset Flex Code
15755 status collapsed
15756
15757 \begin_layout Plain Layout
15758 List_Environment
15759 \end_layout
15760
15761 \end_inset
15762
15763  is the same as 
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 Item_Environment
15769 \end_layout
15770
15771 \end_inset
15772
15773 , except that
15774 \begin_inset Newline newline
15775 \end_inset
15776
15777
15778 \begin_inset Flex Code
15779 status collapsed
15780
15781 \begin_layout Plain Layout
15782 LabelWidthString
15783 \end_layout
15784
15785 \end_inset
15786
15787  is passed as an argument to the environment.
15788 \begin_inset Newline newline
15789 \end_inset
15790
15791
15792 \begin_inset Flex Code
15793 status collapsed
15794
15795 \begin_layout Plain Layout
15796 LabelWidthString
15797 \end_layout
15798
15799 \end_inset
15800
15801  can be defined in the 
15802 \begin_inset Flex Noun
15803 status collapsed
15804
15805 \begin_layout Plain Layout
15806 Edit\SpecialChar menuseparator
15807 Paragraph
15808 \begin_inset space ~
15809 \end_inset
15810
15811 settings
15812 \end_layout
15813
15814 \end_inset
15815
15816  dialog.
15817 \end_layout
15818
15819 \begin_layout Description
15820 \begin_inset Flex Code
15821 status collapsed
15822
15823 \begin_layout Plain Layout
15824 Bib_Environment
15825 \end_layout
15826
15827 \end_inset
15828
15829  is like 
15830 \begin_inset Flex Code
15831 status collapsed
15832
15833 \begin_layout Plain Layout
15834 Environment
15835 \end_layout
15836
15837 \end_inset
15838
15839  but adds the necessary mandatory argument (the longest label) to the begin
15840  statement of the bibliography environment:
15841 \begin_inset Newline newline
15842 \end_inset
15843
15844
15845 \begin_inset Flex Code
15846 status collapsed
15847
15848 \begin_layout Plain Layout
15849
15850 \backslash
15851 begin{thebibliography}{99}
15852 \end_layout
15853
15854 \end_inset
15855
15856 .
15857  It is therefore only useful for bibliography environments.
15858  The default longest label 
15859 \begin_inset Quotes eld
15860 \end_inset
15861
15862 99
15863 \begin_inset Quotes erd
15864 \end_inset
15865
15866  can be changed by the user in the paragraph settings of a bibliography
15867  item.
15868 \end_layout
15869
15870 \begin_layout Standard
15871 Putting the last few things together, the \SpecialChar LaTeX
15872  output will be either: 
15873 \end_layout
15874
15875 \begin_layout LyX-Code
15876
15877 \backslash
15878 LatexName[LatexParam]{\SpecialChar ldots
15879 }
15880 \end_layout
15881
15882 \begin_layout Standard
15883 or: 
15884 \end_layout
15885
15886 \begin_layout LyX-Code
15887
15888 \backslash
15889 begin{LatexName}[LatexParam] \SpecialChar ldots
15890  
15891 \backslash
15892 end{LatexName}.
15893 \end_layout
15894
15895 \begin_layout Standard
15896 depending upon the \SpecialChar LaTeX
15897  type.
15898 \end_layout
15899
15900 \end_deeper
15901 \begin_layout Description
15902 \begin_inset Flex Code
15903 status collapsed
15904
15905 \begin_layout Plain Layout
15906 LeftDelim
15907 \end_layout
15908
15909 \end_inset
15910
15911  [
15912 \begin_inset Flex Code
15913 status collapsed
15914
15915 \begin_layout Plain Layout
15916 string
15917 \end_layout
15918
15919 \end_inset
15920
15921 ] A string that is put at the beginning of the style content.
15922  A line break in the output can be indicated by 
15923 \begin_inset Flex Code
15924 status collapsed
15925
15926 \begin_layout Plain Layout
15927 <br/>
15928 \end_layout
15929
15930 \end_inset
15931
15932 .
15933 \end_layout
15934
15935 \begin_layout Description
15936 \begin_inset Flex Code
15937 status collapsed
15938
15939 \begin_layout Plain Layout
15940 LeftMargin
15941 \end_layout
15942
15943 \end_inset
15944
15945  [
15946 \begin_inset Flex Code
15947 status collapsed
15948
15949 \begin_layout Plain Layout
15950 string=""
15951 \end_layout
15952
15953 \end_inset
15954
15955 ] If you put styles into environments, the different 
15956 \begin_inset Flex Code
15957 status collapsed
15958
15959 \begin_layout Plain Layout
15960 LeftMargin
15961 \end_layout
15962
15963 \end_inset
15964
15965  are not simply added, but added with a factor 
15966 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15967 \end_inset
15968
15969 .
15970  Note that this parameter is also used when 
15971 \begin_inset Flex Code
15972 status collapsed
15973
15974 \begin_layout Plain Layout
15975 Margin
15976 \end_layout
15977
15978 \end_inset
15979
15980  is defined as 
15981 \begin_inset Flex Code
15982 status collapsed
15983
15984 \begin_layout Plain Layout
15985 Manual
15986 \end_layout
15987
15988 \end_inset
15989
15990  or 
15991 \begin_inset Flex Code
15992 status collapsed
15993
15994 \begin_layout Plain Layout
15995 Dynamic
15996 \end_layout
15997
15998 \end_inset
15999
16000 .
16001  Then it is added to the manual or dynamic margin.
16002 \begin_inset Newline newline
16003 \end_inset
16004
16005 For example 
16006 \begin_inset Quotes eld
16007 \end_inset
16008
16009
16010 \begin_inset Flex Code
16011 status collapsed
16012
16013 \begin_layout Plain Layout
16014 MM
16015 \end_layout
16016
16017 \end_inset
16018
16019
16020 \begin_inset Quotes erd
16021 \end_inset
16022
16023  means that the paragraph is indented with the width of 
16024 \begin_inset Quotes eld
16025 \end_inset
16026
16027
16028 \begin_inset Flex Code
16029 status collapsed
16030
16031 \begin_layout Plain Layout
16032 MM
16033 \end_layout
16034
16035 \end_inset
16036
16037
16038 \begin_inset Quotes erd
16039 \end_inset
16040
16041  in the normal font.
16042  You can get a negative width by prefixing the string with 
16043 \begin_inset Quotes eld
16044 \end_inset
16045
16046
16047 \begin_inset Flex Code
16048 status collapsed
16049
16050 \begin_layout Plain Layout
16051 -
16052 \end_layout
16053
16054 \end_inset
16055
16056
16057 \begin_inset Quotes erd
16058 \end_inset
16059
16060 .
16061  This way was chosen so that the look is the same with each used screen
16062  font.
16063 \end_layout
16064
16065 \begin_layout Description
16066 \begin_inset Flex Code
16067 status collapsed
16068
16069 \begin_layout Plain Layout
16070 Margin
16071 \end_layout
16072
16073 \end_inset
16074
16075  [
16076 \begin_inset Flex Code
16077 status collapsed
16078
16079 \begin_layout Plain Layout
16080
16081 \emph on
16082 Static
16083 \emph default
16084 , Manual, Dynamic, First_Dynamic, Right_Address_Box
16085 \end_layout
16086
16087 \end_inset
16088
16089
16090 \begin_inset Newline newline
16091 \end_inset
16092
16093 The kind of margin that the style has on the left side.
16094 \end_layout
16095
16096 \begin_deeper
16097 \begin_layout Description
16098 \begin_inset Flex Code
16099 status collapsed
16100
16101 \begin_layout Plain Layout
16102 Static
16103 \end_layout
16104
16105 \end_inset
16106
16107  just means a fixed margin.
16108 \end_layout
16109
16110 \begin_layout Description
16111 \begin_inset Flex Code
16112 status collapsed
16113
16114 \begin_layout Plain Layout
16115 Manual
16116 \end_layout
16117
16118 \end_inset
16119
16120  means that the left margin depends on the string entered in the 
16121 \begin_inset Flex Noun
16122 status collapsed
16123
16124 \begin_layout Plain Layout
16125 Edit\SpecialChar menuseparator
16126 Paragraph
16127 \begin_inset space ~
16128 \end_inset
16129
16130 Settings
16131 \end_layout
16132
16133 \end_inset
16134
16135  dialog.
16136  This is used to typeset nice lists without tabulators.
16137 \end_layout
16138
16139 \begin_layout Description
16140 \begin_inset Flex Code
16141 status collapsed
16142
16143 \begin_layout Plain Layout
16144 Dynamic
16145 \end_layout
16146
16147 \end_inset
16148
16149  means that the margin depends on the size of the label.
16150  This is used for automatic enumerated headlines.
16151  It is obvious that the headline 
16152 \begin_inset Quotes eld
16153 \end_inset
16154
16155 5.4.3.2.1 Very long headline
16156 \begin_inset Quotes erd
16157 \end_inset
16158
16159  must have a wider left margin (as wide as 
16160 \begin_inset Quotes eld
16161 \end_inset
16162
16163 5.4.3.2.1
16164 \begin_inset Quotes erd
16165 \end_inset
16166
16167  plus the space) than 
16168 \begin_inset Quotes eld
16169 \end_inset
16170
16171 3.2 Very long headline
16172 \begin_inset Quotes erd
16173 \end_inset
16174
16175 , even if standard 
16176 \begin_inset Quotes eld
16177 \end_inset
16178
16179 word processors
16180 \begin_inset Quotes erd
16181 \end_inset
16182
16183  are not able to do this.
16184 \end_layout
16185
16186 \begin_layout Description
16187 \begin_inset Flex Code
16188 status collapsed
16189
16190 \begin_layout Plain Layout
16191 First_Dynamic
16192 \end_layout
16193
16194 \end_inset
16195
16196  is similar, but only the very first row of the paragraph is dynamic, while
16197  the others are static; this is used, for example, for descriptions.
16198 \end_layout
16199
16200 \begin_layout Description
16201 \begin_inset Flex Code
16202 status collapsed
16203
16204 \begin_layout Plain Layout
16205 Right_Address_Box
16206 \end_layout
16207
16208 \end_inset
16209
16210  means the margin is chosen in a way that the longest row of this paragraph
16211  fits to the right margin.
16212  This is used to typeset an address on the right edge of the page.
16213 \end_layout
16214
16215 \end_deeper
16216 \begin_layout Description
16217 \begin_inset Flex Code
16218 status collapsed
16219
16220 \begin_layout Plain Layout
16221 NeedProtect
16222 \end_layout
16223
16224 \end_inset
16225
16226  [
16227 \begin_inset Flex Code
16228 status collapsed
16229
16230 \begin_layout Plain Layout
16231
16232 \emph on
16233 0
16234 \end_layout
16235
16236 \end_inset
16237
16238 ,
16239 \begin_inset space \thinspace{}
16240 \end_inset
16241
16242
16243 \begin_inset Flex Code
16244 status collapsed
16245
16246 \begin_layout Plain Layout
16247 1
16248 \end_layout
16249
16250 \end_inset
16251
16252 ] Whether fragile commands in this style should be 
16253 \begin_inset Flex Code
16254 status collapsed
16255
16256 \begin_layout Plain Layout
16257
16258 \backslash
16259 protect
16260 \end_layout
16261
16262 \end_inset
16263
16264 'ed.
16265  (Note: This is 
16266 \emph on
16267 not
16268 \emph default
16269  whether this command should itself be protected.)
16270 \change_inserted -712698321 1523696949
16271
16272 \end_layout
16273
16274 \begin_layout Description
16275
16276 \change_inserted -712698321 1552395557
16277 \begin_inset Flex Code
16278 status collapsed
16279
16280 \begin_layout Plain Layout
16281
16282 \change_inserted -712698321 1523696950
16283 NeedCProtect
16284 \change_unchanged
16285
16286 \end_layout
16287
16288 \end_inset
16289
16290  [
16291 \begin_inset Flex Code
16292 status collapsed
16293
16294 \begin_layout Plain Layout
16295
16296 \change_inserted -712698321 1523696950
16297
16298 \emph on
16299 0
16300 \change_unchanged
16301
16302 \end_layout
16303
16304 \end_inset
16305
16306 ,
16307 \begin_inset space \thinspace{}
16308 \end_inset
16309
16310
16311 \begin_inset Flex Code
16312 status collapsed
16313
16314 \begin_layout Plain Layout
16315
16316 \change_inserted -712698321 1523696950
16317 1
16318 \change_unchanged
16319
16320 \end_layout
16321
16322 \end_inset
16323
16324 ] This causes macros that contain this layout to be protected with 
16325 \begin_inset Flex Code
16326 status collapsed
16327
16328 \begin_layout Plain Layout
16329
16330 \change_inserted -712698321 1523696950
16331
16332 \backslash
16333 cprotect
16334 \change_unchanged
16335
16336 \end_layout
16337
16338 \end_inset
16339
16340  (cf.
16341  package 
16342 \family sans
16343 cprotect
16344 \family default
16345 ) if necessary and thus allows (some) verbatim stuff in macros.
16346 \end_layout
16347
16348 \begin_layout Description
16349
16350 \change_inserted -712698321 1552395844
16351 \begin_inset Flex Code
16352 status collapsed
16353
16354 \begin_layout Plain Layout
16355
16356 \change_inserted -712698321 1552395561
16357 NeedMBoxProtect
16358 \change_unchanged
16359
16360 \end_layout
16361
16362 \end_inset
16363
16364  [
16365 \begin_inset Flex Code
16366 status collapsed
16367
16368 \begin_layout Plain Layout
16369
16370 \change_inserted -712698321 1552395557
16371
16372 \emph on
16373 0
16374 \change_unchanged
16375
16376 \end_layout
16377
16378 \end_inset
16379
16380 ,
16381 \begin_inset space \thinspace{}
16382 \end_inset
16383
16384
16385 \begin_inset Flex Code
16386 status collapsed
16387
16388 \begin_layout Plain Layout
16389
16390 \change_inserted -712698321 1552395557
16391 1
16392 \change_unchanged
16393
16394 \end_layout
16395
16396 \end_inset
16397
16398 ] Whether specific commands in this style (such as 
16399 \begin_inset Flex Code
16400 status collapsed
16401
16402 \begin_layout Plain Layout
16403
16404 \change_inserted -712698321 1552395655
16405
16406 \backslash
16407 cite
16408 \change_unchanged
16409
16410 \end_layout
16411
16412 \end_inset
16413
16414  and 
16415 \begin_inset Flex Code
16416 status collapsed
16417
16418 \begin_layout Plain Layout
16419
16420 \change_inserted -712698321 1552395661
16421
16422 \backslash
16423 ref
16424 \change_unchanged
16425
16426 \end_layout
16427
16428 \end_inset
16429
16430 ) should be protected in an 
16431 \begin_inset Flex Code
16432 status collapsed
16433
16434 \begin_layout Plain Layout
16435
16436 \change_inserted -712698321 1552395631
16437
16438 \backslash
16439 mbox
16440 \change_unchanged
16441
16442 \end_layout
16443
16444 \end_inset
16445
16446 .
16447  This is particularly needed for styles that draw on 
16448 \family sans
16449 ulem
16450 \family default
16451  or 
16452 \family sans
16453 soul
16454 \family default
16455  commands which parse their content in complex ways.
16456 \change_unchanged
16457
16458 \end_layout
16459
16460 \begin_layout Description
16461 \begin_inset Flex Code
16462 status collapsed
16463
16464 \begin_layout Plain Layout
16465 Newline
16466 \end_layout
16467
16468 \end_inset
16469
16470  [
16471 \begin_inset Flex Code
16472 status collapsed
16473
16474 \begin_layout Plain Layout
16475 0
16476 \end_layout
16477
16478 \end_inset
16479
16480 ,
16481 \begin_inset space \thinspace{}
16482 \end_inset
16483
16484
16485 \begin_inset Flex Code
16486 status collapsed
16487
16488 \begin_layout Plain Layout
16489
16490 \emph on
16491 1
16492 \end_layout
16493
16494 \end_inset
16495
16496 ] Whether newlines are translated into \SpecialChar LaTeX
16497  newlines (
16498 \begin_inset Flex Code
16499 status collapsed
16500
16501 \begin_layout Plain Layout
16502
16503 \backslash
16504
16505 \backslash
16506
16507 \end_layout
16508
16509 \end_inset
16510
16511 ) or not.
16512  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16513  editing
16514  inside \SpecialChar LyX
16515 .
16516 \end_layout
16517
16518 \begin_layout Description
16519 \begin_inset Flex Code
16520 status collapsed
16521
16522 \begin_layout Plain Layout
16523 NextNoIndent
16524 \end_layout
16525
16526 \end_inset
16527
16528  [
16529 \begin_inset Flex Code
16530 status collapsed
16531
16532 \begin_layout Plain Layout
16533
16534 \emph on
16535 0
16536 \end_layout
16537
16538 \end_inset
16539
16540 ,
16541 \begin_inset space \thinspace{}
16542 \end_inset
16543
16544
16545 \begin_inset Flex Code
16546 status collapsed
16547
16548 \begin_layout Plain Layout
16549 1
16550 \end_layout
16551
16552 \end_inset
16553
16554 ] If set to true, and if 
16555 \begin_inset Flex Code
16556 status collapsed
16557
16558 \begin_layout Plain Layout
16559 DefaultStyle
16560 \end_layout
16561
16562 \end_inset
16563
16564  (usually 
16565 \begin_inset Flex Code
16566 status collapsed
16567
16568 \begin_layout Plain Layout
16569 Standard
16570 \end_layout
16571
16572 \end_inset
16573
16574 ) paragraphs are being indented, then the indentation of such a paragraph
16575  following one of this type will be suppressed.
16576  (So this will not affect the display of non-default paragraphs.)
16577 \end_layout
16578
16579 \begin_layout Description
16580 \begin_inset Flex Code
16581 status collapsed
16582
16583 \begin_layout Plain Layout
16584 ObsoletedBy
16585 \end_layout
16586
16587 \end_inset
16588
16589  [
16590 \begin_inset Flex Code
16591 status collapsed
16592
16593 \begin_layout Plain Layout
16594 <name>
16595 \end_layout
16596
16597 \end_inset
16598
16599 ] Name of a style that has replaced this style.
16600  This is used to rename a style, while keeping backward compatibility.
16601 \end_layout
16602
16603 \begin_layout Description
16604 \begin_inset Flex Code
16605 status collapsed
16606
16607 \begin_layout Plain Layout
16608 ParagraphGroup
16609 \end_layout
16610
16611 \end_inset
16612
16613  [
16614 \begin_inset Flex Code
16615 status collapsed
16616
16617 \begin_layout Plain Layout
16618 0
16619 \end_layout
16620
16621 \end_inset
16622
16623 ,
16624 \begin_inset space \thinspace{}
16625 \end_inset
16626
16627
16628 \begin_inset Flex Code
16629 status collapsed
16630
16631 \begin_layout Plain Layout
16632 1
16633 \end_layout
16634
16635 \end_inset
16636
16637 ] Determines whether consecutive paragraphs of the same type are treated
16638  as belonging together.
16639  This has the effect that the 
16640 \begin_inset Flex Code
16641 status collapsed
16642
16643 \begin_layout Plain Layout
16644 GuiLabel
16645 \end_layout
16646
16647 \end_inset
16648
16649  is only printed once before such a group.
16650  By default, this is true for 
16651 \begin_inset Flex Code
16652 status collapsed
16653
16654 \begin_layout Plain Layout
16655 LaTeXType
16656 \end_layout
16657
16658 \end_inset
16659
16660  
16661 \begin_inset Flex Code
16662 status collapsed
16663
16664 \begin_layout Plain Layout
16665 Environment
16666 \end_layout
16667
16668 \end_inset
16669
16670  and 
16671 \begin_inset Flex Code
16672 status collapsed
16673
16674 \begin_layout Plain Layout
16675 Bib_Environment
16676 \end_layout
16677
16678 \end_inset
16679
16680  and false for all other types.
16681 \end_layout
16682
16683 \begin_layout Description
16684 \begin_inset Flex Code
16685 status collapsed
16686
16687 \begin_layout Plain Layout
16688 ParbreakIsNewline
16689 \end_layout
16690
16691 \end_inset
16692
16693  [
16694 \begin_inset Flex Code
16695 status collapsed
16696
16697 \begin_layout Plain Layout
16698
16699 \emph on
16700 0
16701 \end_layout
16702
16703 \end_inset
16704
16705 ,
16706 \begin_inset space \thinspace{}
16707 \end_inset
16708
16709
16710 \begin_inset Flex Code
16711 status collapsed
16712
16713 \begin_layout Plain Layout
16714 1
16715 \end_layout
16716
16717 \end_inset
16718
16719 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16720  output,
16721  but only by a line break; together with 
16722 \begin_inset Flex Code
16723 status collapsed
16724
16725 \begin_layout Plain Layout
16726 PassThru 1
16727 \end_layout
16728
16729 \end_inset
16730
16731 , this allows to emulate a plain text editor (like the ERT inset).
16732 \end_layout
16733
16734 \begin_layout Description
16735 \begin_inset Flex Code
16736 status collapsed
16737
16738 \begin_layout Plain Layout
16739 ParIndent
16740 \end_layout
16741
16742 \end_inset
16743
16744  [
16745 \begin_inset Flex Code
16746 status collapsed
16747
16748 \begin_layout Plain Layout
16749 string=""
16750 \end_layout
16751
16752 \end_inset
16753
16754 ] The indent of the very first line of a paragraph.
16755  The
16756 \begin_inset Newline newline
16757 \end_inset
16758
16759
16760 \begin_inset Flex Code
16761 status collapsed
16762
16763 \begin_layout Plain Layout
16764 Parindent
16765 \end_layout
16766
16767 \end_inset
16768
16769  will be fixed for a certain style.
16770  The exception is the default style, since the indentation for these paragraphs
16771  can be prohibited with 
16772 \begin_inset Flex Code
16773 status collapsed
16774
16775 \begin_layout Plain Layout
16776 NextNoIndent
16777 \end_layout
16778
16779 \end_inset
16780
16781 .
16782  Also, 
16783 \begin_inset Flex Code
16784 status collapsed
16785
16786 \begin_layout Plain Layout
16787 Standard
16788 \end_layout
16789
16790 \end_inset
16791
16792  style paragraphs inside environments use the 
16793 \begin_inset Flex Code
16794 status collapsed
16795
16796 \begin_layout Plain Layout
16797 Parindent
16798 \end_layout
16799
16800 \end_inset
16801
16802  of the environment, not their native one.
16803  For example, 
16804 \begin_inset Flex Code
16805 status collapsed
16806
16807 \begin_layout Plain Layout
16808 Standard
16809 \end_layout
16810
16811 \end_inset
16812
16813  paragraphs inside an enumeration are not indented.
16814 \end_layout
16815
16816 \begin_layout Description
16817 \begin_inset Flex Code
16818 status collapsed
16819
16820 \begin_layout Plain Layout
16821 ParSep
16822 \end_layout
16823
16824 \end_inset
16825
16826  [
16827 \begin_inset Flex Code
16828 status collapsed
16829
16830 \begin_layout Plain Layout
16831 float=0
16832 \end_layout
16833
16834 \end_inset
16835
16836 ] The vertical space between two paragraphs of this style.
16837 \end_layout
16838
16839 \begin_layout Description
16840 \begin_inset Flex Code
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844 Parskip
16845 \end_layout
16846
16847 \end_inset
16848
16849  [
16850 \begin_inset Flex Code
16851 status collapsed
16852
16853 \begin_layout Plain Layout
16854 float=0
16855 \end_layout
16856
16857 \end_inset
16858
16859 ] \SpecialChar LyX
16860  allows the user to choose either 
16861 \begin_inset Quotes eld
16862 \end_inset
16863
16864 indent
16865 \begin_inset Quotes erd
16866 \end_inset
16867
16868  or 
16869 \begin_inset Quotes eld
16870 \end_inset
16871
16872 skip
16873 \begin_inset Quotes erd
16874 \end_inset
16875
16876  to separate paragraphs.
16877  When 
16878 \begin_inset Quotes eld
16879 \end_inset
16880
16881 indent
16882 \begin_inset Quotes erd
16883 \end_inset
16884
16885  is chosen, 
16886 \begin_inset Flex Code
16887 status collapsed
16888
16889 \begin_layout Plain Layout
16890 Parskip
16891 \end_layout
16892
16893 \end_inset
16894
16895  is ignored.
16896  When 
16897 \begin_inset Quotes eld
16898 \end_inset
16899
16900 skip
16901 \begin_inset Quotes erd
16902 \end_inset
16903
16904  is chosen, 
16905 \begin_inset Flex Code
16906 status collapsed
16907
16908 \begin_layout Plain Layout
16909 ParIndent
16910 \end_layout
16911
16912 \end_inset
16913
16914  is ignored and all paragraphs are separated by the 
16915 \begin_inset Flex Code
16916 status collapsed
16917
16918 \begin_layout Plain Layout
16919 Parskip
16920 \end_layout
16921
16922 \end_inset
16923
16924  argument.
16925  The vertical space is calculated with 
16926 \begin_inset Flex Code
16927 status collapsed
16928
16929 \begin_layout Plain Layout
16930 Parskip
16931 \begin_inset space ~
16932 \end_inset
16933
16934 * DefaultHeight
16935 \end_layout
16936
16937 \end_inset
16938
16939  where 
16940 \begin_inset Flex Code
16941 status collapsed
16942
16943 \begin_layout Plain Layout
16944 DefaultHeight
16945 \end_layout
16946
16947 \end_inset
16948
16949  is the height of a row with the normal font.
16950  This way, the look stays the same with different screen fonts.
16951 \end_layout
16952
16953 \begin_layout Description
16954 \begin_inset Flex Code
16955 status collapsed
16956
16957 \begin_layout Plain Layout
16958 PassThru
16959 \end_layout
16960
16961 \end_inset
16962
16963  [
16964 \begin_inset Flex Code
16965 status collapsed
16966
16967 \begin_layout Plain Layout
16968
16969 \emph on
16970 0
16971 \end_layout
16972
16973 \end_inset
16974
16975 ,
16976 \begin_inset space \thinspace{}
16977 \end_inset
16978
16979
16980 \begin_inset Flex Code
16981 status collapsed
16982
16983 \begin_layout Plain Layout
16984 1
16985 \end_layout
16986
16987 \end_inset
16988
16989 ] Whether the contents of this paragraph should be output in raw form, meaning
16990  without special translations that \SpecialChar LaTeX
16991  would require.
16992 \end_layout
16993
16994 \begin_layout Description
16995 \begin_inset Flex Code
16996 status collapsed
16997
16998 \begin_layout Plain Layout
16999 PassThruChars
17000 \end_layout
17001
17002 \end_inset
17003
17004  [
17005 \begin_inset Flex Code
17006 status collapsed
17007
17008 \begin_layout Plain Layout
17009 string
17010 \end_layout
17011
17012 \end_inset
17013
17014 ]
17015 \family typewriter
17016  
17017 \family default
17018 Defines individual characters that should be output in raw form, meaning
17019  without special translations that \SpecialChar LaTeX
17020  would require.
17021 \end_layout
17022
17023 \begin_layout Description
17024 \begin_inset Flex Code
17025 status collapsed
17026
17027 \begin_layout Plain Layout
17028 Preamble
17029 \end_layout
17030
17031 \end_inset
17032
17033  Information to be included in the \SpecialChar LaTeX
17034  preamble when this style is used.
17035  Used to define macros, load packages, etc., required by this particular
17036  style.
17037  Must end with 
17038 \begin_inset Quotes eld
17039 \end_inset
17040
17041
17042 \begin_inset Flex Code
17043 status collapsed
17044
17045 \begin_layout Plain Layout
17046 EndPreamble
17047 \end_layout
17048
17049 \end_inset
17050
17051
17052 \begin_inset Quotes erd
17053 \end_inset
17054
17055 .
17056 \end_layout
17057
17058 \begin_layout Description
17059 \begin_inset Flex Code
17060 status collapsed
17061
17062 \begin_layout Plain Layout
17063 RefPrefix
17064 \end_layout
17065
17066 \end_inset
17067
17068  [
17069 \begin_inset Flex Code
17070 status collapsed
17071
17072 \begin_layout Plain Layout
17073 string
17074 \end_layout
17075
17076 \end_inset
17077
17078 ] The prefix to use when creating labels referring to paragraphs of this
17079  type.
17080  This allows the use of formatted references.
17081 \end_layout
17082
17083 \begin_layout Description
17084 \begin_inset Flex Code
17085 status collapsed
17086
17087 \begin_layout Plain Layout
17088 Requires 
17089 \end_layout
17090
17091 \end_inset
17092
17093  [
17094 \begin_inset Flex Code
17095 status collapsed
17096
17097 \begin_layout Plain Layout
17098 string
17099 \end_layout
17100
17101 \end_inset
17102
17103 ] Whether the style requires the feature 
17104 \begin_inset Flex Code
17105 status collapsed
17106
17107 \begin_layout Plain Layout
17108 string
17109 \end_layout
17110
17111 \end_inset
17112
17113  (see 
17114 \begin_inset CommandInset ref
17115 LatexCommand ref
17116 reference "chap:List-of-functions"
17117
17118 \end_inset
17119
17120  for the list of features).
17121  If you require a package with specific options, you can additionally use
17122  
17123 \begin_inset Flex Code
17124 status collapsed
17125
17126 \begin_layout Plain Layout
17127 PackageOptions
17128 \end_layout
17129
17130 \end_inset
17131
17132  as a general text class parameter (see 
17133 \begin_inset CommandInset ref
17134 LatexCommand ref
17135 reference "subsec:General-text-class"
17136
17137 \end_inset
17138
17139 ).
17140 \end_layout
17141
17142 \begin_layout Description
17143 \begin_inset Flex Code
17144 status collapsed
17145
17146 \begin_layout Plain Layout
17147 ResetArgs
17148 \end_layout
17149
17150 \end_inset
17151
17152  [
17153 \begin_inset Flex Code
17154 status collapsed
17155
17156 \begin_layout Plain Layout
17157
17158 \emph on
17159 0
17160 \end_layout
17161
17162 \end_inset
17163
17164 ,
17165 \begin_inset Flex Code
17166 status collapsed
17167
17168 \begin_layout Plain Layout
17169 1
17170 \end_layout
17171
17172 \end_inset
17173
17174 ] Resets the \SpecialChar LaTeX
17175  arguments of this style (as defined via the 
17176 \begin_inset Flex Code
17177 status collapsed
17178
17179 \begin_layout Plain Layout
17180 Argument
17181 \end_layout
17182
17183 \end_inset
17184
17185  tag).
17186  This is useful if you have copied a style via 
17187 \begin_inset Flex Code
17188 status collapsed
17189
17190 \begin_layout Plain Layout
17191 CopyStyle
17192 \end_layout
17193
17194 \end_inset
17195
17196 , but you do not want to inherit its (required and optional) arguments.
17197 \end_layout
17198
17199 \begin_layout Description
17200 \begin_inset Flex Code
17201 status collapsed
17202
17203 \begin_layout Plain Layout
17204 ResumeCounter
17205 \end_layout
17206
17207 \end_inset
17208
17209  [
17210 \begin_inset Flex Code
17211 status collapsed
17212
17213 \begin_layout Plain Layout
17214
17215 \emph on
17216 0
17217 \end_layout
17218
17219 \end_inset
17220
17221 ,
17222 \begin_inset Flex Code
17223 status collapsed
17224
17225 \begin_layout Plain Layout
17226 1
17227 \end_layout
17228
17229 \end_inset
17230
17231 ] Resumes a counter that is usually reset at each new sequence of layouts.
17232  This is currently only useful when 
17233 \begin_inset Flex Code
17234 status collapsed
17235
17236 \begin_layout Plain Layout
17237 LabelType
17238 \end_layout
17239
17240 \end_inset
17241
17242  is 
17243 \begin_inset Flex Code
17244 status collapsed
17245
17246 \begin_layout Plain Layout
17247 Enumerate
17248 \end_layout
17249
17250 \end_inset
17251
17252 .
17253 \end_layout
17254
17255 \begin_layout Description
17256 \begin_inset Flex Code
17257 status collapsed
17258
17259 \begin_layout Plain Layout
17260 RightDelim
17261 \end_layout
17262
17263 \end_inset
17264
17265  [
17266 \begin_inset Flex Code
17267 status collapsed
17268
17269 \begin_layout Plain Layout
17270 string
17271 \end_layout
17272
17273 \end_inset
17274
17275 ] A string that is put at the end of the layout content.
17276  A line break in the output can be indicated by 
17277 \begin_inset Flex Code
17278 status collapsed
17279
17280 \begin_layout Plain Layout
17281 <br/>
17282 \end_layout
17283
17284 \end_inset
17285
17286 .
17287 \end_layout
17288
17289 \begin_layout Description
17290 \begin_inset Flex Code
17291 status collapsed
17292
17293 \begin_layout Plain Layout
17294 RightMargin
17295 \end_layout
17296
17297 \end_inset
17298
17299  [
17300 \begin_inset Flex Code
17301 status collapsed
17302
17303 \begin_layout Plain Layout
17304 string=""
17305 \end_layout
17306
17307 \end_inset
17308
17309 ] Similar to 
17310 \begin_inset Flex Code
17311 status collapsed
17312
17313 \begin_layout Plain Layout
17314 LeftMargin
17315 \end_layout
17316
17317 \end_inset
17318
17319 .
17320 \end_layout
17321
17322 \begin_layout Description
17323 \begin_inset Flex Code
17324 status collapsed
17325
17326 \begin_layout Plain Layout
17327 Spacing
17328 \end_layout
17329
17330 \end_inset
17331
17332  [
17333 \begin_inset Flex Code
17334 status collapsed
17335
17336 \begin_layout Plain Layout
17337
17338 \emph on
17339 single
17340 \end_layout
17341
17342 \end_inset
17343
17344
17345 \begin_inset Flex Code
17346 status collapsed
17347
17348 \begin_layout Plain Layout
17349 onehalf
17350 \end_layout
17351
17352 \end_inset
17353
17354
17355 \begin_inset Flex Code
17356 status collapsed
17357
17358 \begin_layout Plain Layout
17359 double
17360 \end_layout
17361
17362 \end_inset
17363
17364
17365 \begin_inset Flex Code
17366 status collapsed
17367
17368 \begin_layout Plain Layout
17369 other
17370 \begin_inset space ~
17371 \end_inset
17372
17373 <value>
17374 \end_layout
17375
17376 \end_inset
17377
17378 ] This defines what the default spacing should be in the style.
17379  The arguments 
17380 \begin_inset Flex Code
17381 status collapsed
17382
17383 \begin_layout Plain Layout
17384 single
17385 \end_layout
17386
17387 \end_inset
17388
17389
17390 \begin_inset Flex Code
17391 status collapsed
17392
17393 \begin_layout Plain Layout
17394 onehalf
17395 \end_layout
17396
17397 \end_inset
17398
17399  and 
17400 \begin_inset Flex Code
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404 double
17405 \end_layout
17406
17407 \end_inset
17408
17409  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17410  If you specify the argument 
17411 \begin_inset Flex Code
17412 status collapsed
17413
17414 \begin_layout Plain Layout
17415 other
17416 \end_layout
17417
17418 \end_inset
17419
17420 , then you must also provide a value argument which will be the actual multiplie
17421 r value.
17422  Note that, contrary to other parameters, 
17423 \begin_inset Flex Code
17424 status collapsed
17425
17426 \begin_layout Plain Layout
17427 Spacing
17428 \end_layout
17429
17430 \end_inset
17431
17432  implies the generation of specific \SpecialChar LaTeX
17433  code, using the \SpecialChar LaTeX
17434  package 
17435 \family roman
17436
17437 \begin_inset Flex Code
17438 status collapsed
17439
17440 \begin_layout Plain Layout
17441 setspace
17442 \end_layout
17443
17444 \end_inset
17445
17446 .
17447 \end_layout
17448
17449 \begin_layout Description
17450 \begin_inset Flex Code
17451 status collapsed
17452
17453 \begin_layout Plain Layout
17454 Spellcheck
17455 \end_layout
17456
17457 \end_inset
17458
17459  [
17460 \begin_inset Flex Code
17461 status collapsed
17462
17463 \begin_layout Plain Layout
17464 0
17465 \end_layout
17466
17467 \end_inset
17468
17469 ,
17470 \begin_inset space \thinspace{}
17471 \end_inset
17472
17473
17474 \begin_inset Flex Code
17475 status collapsed
17476
17477 \begin_layout Plain Layout
17478
17479 \emph on
17480 1
17481 \end_layout
17482
17483 \end_inset
17484
17485 ] Allow spell-checking paragraphs of this style.
17486  Default is true.
17487 \end_layout
17488
17489 \begin_layout Description
17490 \begin_inset Flex Code
17491 status collapsed
17492
17493 \begin_layout Plain Layout
17494 Step
17495 \change_deleted 731793113 1604355211
17496 Master
17497 \change_inserted 731793113 1604355212
17498 Parent
17499 \change_unchanged
17500 Counter
17501 \end_layout
17502
17503 \end_inset
17504
17505  [
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510
17511 \emph on
17512 0
17513 \end_layout
17514
17515 \end_inset
17516
17517 ,
17518 \begin_inset Flex Code
17519 status collapsed
17520
17521 \begin_layout Plain Layout
17522 1
17523 \end_layout
17524
17525 \end_inset
17526
17527 ] Steps the 
17528 \change_deleted 731793113 1604355214
17529 master
17530 \change_inserted 731793113 1604355216
17531 parent
17532 \change_unchanged
17533  counter of a given counter at the beginning of a new sequence of layouts.
17534  This is currently only useful when 
17535 \begin_inset Flex Code
17536 status collapsed
17537
17538 \begin_layout Plain Layout
17539 LabelType
17540 \end_layout
17541
17542 \end_inset
17543
17544  is 
17545 \begin_inset Flex Code
17546 status collapsed
17547
17548 \begin_layout Plain Layout
17549 Enumerate
17550 \end_layout
17551
17552 \end_inset
17553
17554 .
17555 \end_layout
17556
17557 \begin_layout Description
17558 \begin_inset Flex Code
17559 status collapsed
17560
17561 \begin_layout Plain Layout
17562 TextFont
17563 \end_layout
17564
17565 \end_inset
17566
17567  The font used for the text body .
17568  See 
17569 \begin_inset CommandInset ref
17570 LatexCommand ref
17571 reference "subsec:Font-description"
17572
17573 \end_inset
17574
17575 .
17576 \end_layout
17577
17578 \begin_layout Description
17579 \begin_inset Flex Code
17580 status collapsed
17581
17582 \begin_layout Plain Layout
17583 TocLevel
17584 \end_layout
17585
17586 \end_inset
17587
17588
17589 \series medium
17590  [
17591 \begin_inset Flex Code
17592 status collapsed
17593
17594 \begin_layout Plain Layout
17595
17596 \series medium
17597 int=3
17598 \end_layout
17599
17600 \end_inset
17601
17602 ]
17603 \series default
17604  The level of the style in the table of contents.
17605  This is used for automatic numbering of section headings.
17606 \end_layout
17607
17608 \begin_layout Description
17609 \begin_inset Flex Code
17610 status collapsed
17611
17612 \begin_layout Plain Layout
17613 ToggleIndent
17614 \end_layout
17615
17616 \end_inset
17617
17618  [
17619 \emph on
17620
17621 \begin_inset Flex Code
17622 status collapsed
17623
17624 \begin_layout Plain Layout
17625
17626 \emph on
17627 default
17628 \end_layout
17629
17630 \end_inset
17631
17632
17633 \emph default
17634
17635 \begin_inset Flex Code
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639 always
17640 \end_layout
17641
17642 \end_inset
17643
17644
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 never
17650 \end_layout
17651
17652 \end_inset
17653
17654 ] This tag determines whether the first line indentation of this paragraph
17655  can be toggled via the Paragraph settings dialog.
17656  If 
17657 \emph on
17658
17659 \begin_inset Flex Code
17660 status collapsed
17661
17662 \begin_layout Plain Layout
17663
17664 \emph off
17665 default
17666 \end_layout
17667
17668 \end_inset
17669
17670
17671 \emph default
17672  is set, indentation can be toggled if the document settings use 
17673 \begin_inset Quotes eld
17674 \end_inset
17675
17676 indent
17677 \begin_inset Quotes erd
17678 \end_inset
17679
17680  paragraph style, with 
17681 \begin_inset Flex Code
17682 status collapsed
17683
17684 \begin_layout Plain Layout
17685 always
17686 \end_layout
17687
17688 \end_inset
17689
17690 , indentation can always be toggled, notwithstanding the document settings,
17691  with 
17692 \begin_inset Flex Code
17693 status collapsed
17694
17695 \begin_layout Plain Layout
17696 never
17697 \end_layout
17698
17699 \end_inset
17700
17701 , indentation can never be toggled.
17702 \end_layout
17703
17704 \begin_layout Description
17705 \begin_inset Flex Code
17706 status collapsed
17707
17708 \begin_layout Plain Layout
17709 TopSep
17710 \end_layout
17711
17712 \end_inset
17713
17714  [
17715 \begin_inset Flex Code
17716 status collapsed
17717
17718 \begin_layout Plain Layout
17719 float=0
17720 \end_layout
17721
17722 \end_inset
17723
17724 ] The vertical space with which the very first of a chain of paragraphs
17725  with this style is separated from the previous paragraph.
17726  If the previous paragraph has another style, the separations are not simply
17727  added, but the maximum is taken.
17728 \end_layout
17729
17730 \begin_layout Subsection
17731 \begin_inset CommandInset label
17732 LatexCommand label
17733 name "subsec:I18n"
17734
17735 \end_inset
17736
17737 Internationalization of Paragraph Styles
17738 \end_layout
17739
17740 \begin_layout Standard
17741 \SpecialChar LyX
17742  has long supported internationalization of layout information, but, until
17743  version 2.0, this applied only to the user interface and not to, say, PDF
17744  output.
17745  Thus, French authors were forced to resort to ugly hacks if they wanted
17746  `
17747 \lang french
17748 Théorème
17749 \lang english
17750  1' instead of `Theorem 1'.
17751  Thanks to Georg Baum, that is no longer the case.
17752 \end_layout
17753
17754 \begin_layout Standard
17755 If a 
17756 \begin_inset Flex Code
17757 status collapsed
17758
17759 \begin_layout Plain Layout
17760 Style
17761 \end_layout
17762
17763 \end_inset
17764
17765  defines text that is to appear in the typeset document, it may use 
17766 \begin_inset Flex Code
17767 status collapsed
17768
17769 \begin_layout Plain Layout
17770 LangPreamble
17771 \end_layout
17772
17773 \end_inset
17774
17775  and 
17776 \begin_inset Flex Code
17777 status collapsed
17778
17779 \begin_layout Plain Layout
17780 BabelPreamble
17781 \end_layout
17782
17783 \end_inset
17784
17785  to support non-English and even multi-language documents correctly.
17786  The following excerpt (from the 
17787 \begin_inset Flex Code
17788 status collapsed
17789
17790 \begin_layout Plain Layout
17791 theorems-ams.inc
17792 \end_layout
17793
17794 \end_inset
17795
17796  file) shows how this works:
17797 \end_layout
17798
17799 \begin_layout LyX-Code
17800 Preamble
17801 \end_layout
17802
17803 \begin_deeper
17804 \begin_layout LyX-Code
17805   
17806 \backslash
17807 theoremstyle{remark}
17808 \end_layout
17809
17810 \begin_layout LyX-Code
17811   
17812 \backslash
17813 newtheorem{claim}[thm]{
17814 \backslash
17815 protect
17816 \backslash
17817 claimname}
17818 \end_layout
17819
17820 \begin_layout LyX-Code
17821 EndPreamble
17822 \end_layout
17823
17824 \begin_layout LyX-Code
17825 LangPreamble
17826 \end_layout
17827
17828 \begin_layout LyX-Code
17829   
17830 \backslash
17831 providecommand{
17832 \backslash
17833 claimname}{_(Claim)}
17834 \end_layout
17835
17836 \begin_layout LyX-Code
17837 EndLangPreamble
17838 \end_layout
17839
17840 \begin_layout LyX-Code
17841 BabelPreamble
17842 \end_layout
17843
17844 \begin_layout LyX-Code
17845     
17846 \backslash
17847 addto
17848 \backslash
17849 captions$$lang{
17850 \backslash
17851 renewcommand{
17852 \backslash
17853 claimname}{_(Claim)}}
17854 \end_layout
17855
17856 \begin_layout LyX-Code
17857 EndBabelPreamble
17858 \end_layout
17859
17860 \end_deeper
17861 \begin_layout Standard
17862 In principle, any legal \SpecialChar LaTeX
17863  may appear in the 
17864 \begin_inset Flex Code
17865 status collapsed
17866
17867 \begin_layout Plain Layout
17868 LangPreamble
17869 \end_layout
17870
17871 \end_inset
17872
17873  and 
17874 \begin_inset Flex Code
17875 status collapsed
17876
17877 \begin_layout Plain Layout
17878 BabelPreamble
17879 \end_layout
17880
17881 \end_inset
17882
17883  tags, but in practice they will typically look as they do here.
17884  The key to correct translation of the typeset text is the definition of
17885  the \SpecialChar LaTeX
17886  command 
17887 \begin_inset Flex Code
17888 status collapsed
17889
17890 \begin_layout Plain Layout
17891
17892 \backslash
17893 claimname
17894 \end_layout
17895
17896 \end_inset
17897
17898  and its use in 
17899 \begin_inset Flex Code
17900 status collapsed
17901
17902 \begin_layout Plain Layout
17903
17904 \backslash
17905 newtheorem
17906 \end_layout
17907
17908 \end_inset
17909
17910 .
17911  
17912 \end_layout
17913
17914 \begin_layout Standard
17915 The 
17916 \begin_inset Flex Code
17917 status collapsed
17918
17919 \begin_layout Plain Layout
17920 LangPreamble
17921 \end_layout
17922
17923 \end_inset
17924
17925  tag provides for internationalization based upon the overall language of
17926  the document.
17927  The contents of the tag will be included in the preamble, just as with
17928  the 
17929 \begin_inset Flex Code
17930 status collapsed
17931
17932 \begin_layout Plain Layout
17933 Preamble
17934 \end_layout
17935
17936 \end_inset
17937
17938  tag.
17939  What makes it special is the use of the 
17940 \begin_inset Quotes eld
17941 \end_inset
17942
17943 function
17944 \begin_inset Quotes erd
17945 \end_inset
17946
17947  
17948 \begin_inset Flex Code
17949 status collapsed
17950
17951 \begin_layout Plain Layout
17952 _()
17953 \end_layout
17954
17955 \end_inset
17956
17957 , which will be replaced, when \SpecialChar LyX
17958  produces \SpecialChar LaTeX
17959  output, with the translation of
17960  its argument into the document language.
17961 \end_layout
17962
17963 \begin_layout Standard
17964 The 
17965 \begin_inset Flex Code
17966 status collapsed
17967
17968 \begin_layout Plain Layout
17969 BabelPreamble
17970 \end_layout
17971
17972 \end_inset
17973
17974  tag is more complex, since it is meant to provide support for multi-language
17975  documents and so offers an interface to the 
17976 \begin_inset Flex Code
17977 status collapsed
17978
17979 \begin_layout Plain Layout
17980 babel
17981 \end_layout
17982
17983 \end_inset
17984
17985  package.
17986  Its contents will be added to the preamble once for each language that
17987  appears in the document.
17988  In this case, the argument to 
17989 \begin_inset Flex Code
17990 status collapsed
17991
17992 \begin_layout Plain Layout
17993 _()
17994 \end_layout
17995
17996 \end_inset
17997
17998  will be replaced with its translation into the language in question; the
17999  expression 
18000 \begin_inset Flex Code
18001 status collapsed
18002
18003 \begin_layout Plain Layout
18004 $$lang
18005 \end_layout
18006
18007 \end_inset
18008
18009  is replaced by the language name (as used by the babel package).
18010 \end_layout
18011
18012 \begin_layout Standard
18013 A German document that also included a French section would thus have the
18014  following in the preamble:
18015 \end_layout
18016
18017 \begin_layout LyX-Code
18018
18019 \backslash
18020 addto
18021 \backslash
18022 captionsfrench{
18023 \backslash
18024 renewcommand{
18025 \backslash
18026 claimname}{Affirmation}}
18027 \begin_inset Newline newline
18028 \end_inset
18029
18030
18031 \backslash
18032 addto
18033 \backslash
18034 captionsngerman{
18035 \backslash
18036 renewcommand{
18037 \backslash
18038 claimname}{Behauptung}}
18039 \begin_inset Newline newline
18040 \end_inset
18041
18042
18043 \backslash
18044 providecommand{
18045 \backslash
18046 claimname}{Behauptung}
18047 \end_layout
18048
18049 \begin_layout Standard
18050 \SpecialChar LaTeX
18051  and 
18052 \begin_inset Flex Code
18053 status collapsed
18054
18055 \begin_layout Plain Layout
18056 babel
18057 \end_layout
18058
18059 \end_inset
18060
18061  will then conspire to produce the correct text in the output.
18062 \end_layout
18063
18064 \begin_layout Standard
18065 One important point to note here is that the translations are provided by
18066  \SpecialChar LyX
18067  itself, through the file 
18068 \begin_inset Flex Code
18069 status collapsed
18070
18071 \begin_layout Plain Layout
18072 layouttranslations
18073 \end_layout
18074
18075 \end_inset
18076
18077 .
18078  This means, in effect, that 
18079 \begin_inset Flex Code
18080 status collapsed
18081
18082 \begin_layout Plain Layout
18083 LangPreamble
18084 \end_layout
18085
18086 \end_inset
18087
18088  and 
18089 \begin_inset Flex Code
18090 status collapsed
18091
18092 \begin_layout Plain Layout
18093 BabelPreamble
18094 \end_layout
18095
18096 \end_inset
18097
18098  are really only of use in layout files that are provided with \SpecialChar LyX
18099 , since text
18100  entered in user-created layout files will not be seen by \SpecialChar LyX
18101 's internationalizatio
18102 n routines unless the 
18103 \begin_inset Flex Code
18104 status collapsed
18105
18106 \begin_layout Plain Layout
18107 layouttranslations
18108 \end_layout
18109
18110 \end_inset
18111
18112  file is modified accordingly.
18113  That said, however, any layout created with the intention that it will
18114  be included with \SpecialChar LyX
18115  should use these tags where appropriate.
18116  Please note that the paragraph style translations provided by \SpecialChar LyX
18117  will never
18118  change with a minor update (e.
18119 \begin_inset space \thinspace{}
18120 \end_inset
18121
18122 g.
18123 \begin_inset space \space{}
18124 \end_inset
18125
18126 from version 2.1.x to 2.1.y).
18127  It is however quite likely that a major update (e.
18128 \begin_inset space \thinspace{}
18129 \end_inset
18130
18131 g.
18132 \begin_inset space \space{}
18133 \end_inset
18134
18135 from 2.0.x to 2.1.0) will introduce new translations or corrections.
18136 \end_layout
18137
18138 \begin_layout Subsection
18139 Floats
18140 \begin_inset CommandInset label
18141 LatexCommand label
18142 name "subsec:Floats"
18143
18144 \end_inset
18145
18146
18147 \end_layout
18148
18149 \begin_layout Standard
18150 It is necessary to define the floats (
18151 \begin_inset Flex Noun
18152 status collapsed
18153
18154 \begin_layout Plain Layout
18155 figure
18156 \end_layout
18157
18158 \end_inset
18159
18160
18161 \begin_inset Flex Noun
18162 status collapsed
18163
18164 \begin_layout Plain Layout
18165 table
18166 \end_layout
18167
18168 \end_inset
18169
18170 , \SpecialChar ldots
18171 ) in the text class itself.
18172  Standard floats are included in the file 
18173 \begin_inset Flex Code
18174 status collapsed
18175
18176 \begin_layout Plain Layout
18177 stdfloats.inc
18178 \end_layout
18179
18180 \end_inset
18181
18182 , so you may have to do no more than add
18183 \end_layout
18184
18185 \begin_layout LyX-Code
18186 Input stdfloats.inc
18187 \end_layout
18188
18189 \begin_layout Standard
18190 to your layout file.
18191  If you want to implement a text class that proposes some other float types
18192  (like the AGU class bundled with \SpecialChar LyX
18193 ), the information below will hopefully
18194  help you:
18195 \end_layout
18196
18197 \begin_layout Description
18198 \begin_inset Flex Code
18199 status collapsed
18200
18201 \begin_layout Plain Layout
18202 AllowedPlacement
18203 \end_layout
18204
18205 \end_inset
18206
18207  [
18208 \begin_inset Flex Code
18209 status collapsed
18210
18211 \begin_layout Plain Layout
18212 string
18213 \end_layout
18214
18215 \end_inset
18216
18217 =!htbpH] Allowed placement options for this float type.
18218  The value is a string of placement characters.
18219  Possible characters include: 
18220 \emph on
18221 h
18222 \emph default
18223  (
18224 \begin_inset Quotes eld
18225 \end_inset
18226
18227 here if possible
18228 \begin_inset Quotes erd
18229 \end_inset
18230
18231 ), 
18232 \emph on
18233 t
18234 \emph default
18235  (
18236 \begin_inset Quotes eld
18237 \end_inset
18238
18239 top of page
18240 \begin_inset Quotes erd
18241 \end_inset
18242
18243 ), 
18244 \emph on
18245 b
18246 \emph default
18247  (
18248 \begin_inset Quotes eld
18249 \end_inset
18250
18251 bottom of page
18252 \begin_inset Quotes erd
18253 \end_inset
18254
18255 ), 
18256 \emph on
18257 p
18258 \emph default
18259  (
18260 \begin_inset Quotes eld
18261 \end_inset
18262
18263 page of floats
18264 \begin_inset Quotes erd
18265 \end_inset
18266
18267 ), 
18268 \emph on
18269 H
18270 \emph default
18271  (
18272 \begin_inset Quotes eld
18273 \end_inset
18274
18275 here definitely
18276 \begin_inset Quotes erd
18277 \end_inset
18278
18279 ) and 
18280 \emph on
18281 !
18282 \emph default
18283  (
18284 \begin_inset Quotes eld
18285 \end_inset
18286
18287 ignore LaTeX rules
18288 \begin_inset Quotes erd
18289 \end_inset
18290
18291 ).
18292  The order of the characters in the string does not matter.
18293  If no placement options are allowed, use the string 
18294 \emph on
18295 none
18296 \emph default
18297 .
18298 \end_layout
18299
18300 \begin_layout Description
18301 \begin_inset Flex Code
18302 status collapsed
18303
18304 \begin_layout Plain Layout
18305 AllowsSideways
18306 \end_layout
18307
18308 \end_inset
18309
18310  [
18311 \begin_inset Flex Code
18312 status collapsed
18313
18314 \begin_layout Plain Layout
18315
18316 \emph off
18317 0
18318 \end_layout
18319
18320 \end_inset
18321
18322 ,
18323 \begin_inset space \thinspace{}
18324 \end_inset
18325
18326
18327 \emph on
18328
18329 \begin_inset Flex Code
18330 status collapsed
18331
18332 \begin_layout Plain Layout
18333
18334 \emph on
18335 1
18336 \end_layout
18337
18338 \end_inset
18339
18340
18341 \emph default
18342 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
18343 -package 
18344 \family typewriter
18345 rotfloat
18346 \family default
18347  (sidewaysfloat).
18348  Set to 
18349 \begin_inset Flex Code
18350 status collapsed
18351
18352 \begin_layout Plain Layout
18353 0
18354 \end_layout
18355
18356 \end_inset
18357
18358  if the float does not support this feature.
18359 \end_layout
18360
18361 \begin_layout Description
18362 \begin_inset Flex Code
18363 status collapsed
18364
18365 \begin_layout Plain Layout
18366 AllowsWide
18367 \end_layout
18368
18369 \end_inset
18370
18371  [
18372 \begin_inset Flex Code
18373 status collapsed
18374
18375 \begin_layout Plain Layout
18376
18377 \emph off
18378 0
18379 \end_layout
18380
18381 \end_inset
18382
18383 ,
18384 \begin_inset space \thinspace{}
18385 \end_inset
18386
18387
18388 \emph on
18389
18390 \begin_inset Flex Code
18391 status collapsed
18392
18393 \begin_layout Plain Layout
18394
18395 \emph on
18396 1
18397 \end_layout
18398
18399 \end_inset
18400
18401
18402 \emph default
18403 ] Defines whether the float has a starred variant that spans columns in
18404  a two column paragraph.
18405  Set to 
18406 \begin_inset Flex Code
18407 status collapsed
18408
18409 \begin_layout Plain Layout
18410 0
18411 \end_layout
18412
18413 \end_inset
18414
18415  if the float does not support this feature.
18416 \end_layout
18417
18418 \begin_layout Description
18419 \begin_inset Flex Code
18420 status collapsed
18421
18422 \begin_layout Plain Layout
18423 Extension
18424 \end_layout
18425
18426 \end_inset
18427
18428  [
18429 \begin_inset Flex Code
18430 status collapsed
18431
18432 \begin_layout Plain Layout
18433 string
18434 \end_layout
18435
18436 \end_inset
18437
18438 =
18439 \begin_inset Quotes erd
18440 \end_inset
18441
18442
18443 \begin_inset Quotes erd
18444 \end_inset
18445
18446 ] The file name extension of an auxiliary file for the list of figures (or
18447  whatever).
18448  \SpecialChar LaTeX
18449  writes the captions to this file.
18450 \end_layout
18451
18452 \begin_layout Description
18453 \begin_inset Flex Code
18454 status collapsed
18455
18456 \begin_layout Plain Layout
18457 GuiName
18458 \end_layout
18459
18460 \end_inset
18461
18462  [
18463 \begin_inset Flex Code
18464 status collapsed
18465
18466 \begin_layout Plain Layout
18467 string
18468 \end_layout
18469
18470 \end_inset
18471
18472 =
18473 \begin_inset Quotes erd
18474 \end_inset
18475
18476
18477 \begin_inset Quotes erd
18478 \end_inset
18479
18480 ] The string that will be used in the menus and also for the caption.
18481  This is translated to the current language if babel is used.
18482 \end_layout
18483
18484 \begin_layout Description
18485 \begin_inset Flex Code
18486 status collapsed
18487
18488 \begin_layout Plain Layout
18489 HTML*
18490 \end_layout
18491
18492 \end_inset
18493
18494  These tags control the XHTML output.
18495  See 
18496 \begin_inset CommandInset ref
18497 LatexCommand ref
18498 reference "sec:Tags-for-XHTML"
18499
18500 \end_inset
18501
18502 .
18503 \end_layout
18504
18505 \begin_layout Description
18506 \begin_inset Flex Code
18507 status collapsed
18508
18509 \begin_layout Plain Layout
18510 IsPredefined
18511 \end_layout
18512
18513 \end_inset
18514
18515  [
18516 \emph on
18517
18518 \begin_inset Flex Code
18519 status collapsed
18520
18521 \begin_layout Plain Layout
18522 0
18523 \end_layout
18524
18525 \end_inset
18526
18527
18528 \emph default
18529 ,
18530 \begin_inset space \thinspace{}
18531 \end_inset
18532
18533
18534 \begin_inset Flex Code
18535 status collapsed
18536
18537 \begin_layout Plain Layout
18538 1
18539 \end_layout
18540
18541 \end_inset
18542
18543 ] Indicates whether the float is already defined in the document class or
18544  if instead the \SpecialChar LaTeX
18545  package 
18546 \begin_inset Flex Code
18547 status collapsed
18548
18549 \begin_layout Plain Layout
18550 float
18551 \end_layout
18552
18553 \end_inset
18554
18555  needs to be loaded to define it on-the-fly.
18556  The default is 
18557 \begin_inset Flex Code
18558 status collapsed
18559
18560 \begin_layout Plain Layout
18561 0
18562 \end_layout
18563
18564 \end_inset
18565
18566 , which means: 
18567 \begin_inset Flex Code
18568 status collapsed
18569
18570 \begin_layout Plain Layout
18571 float
18572 \end_layout
18573
18574 \end_inset
18575
18576  is used.
18577  It should be set to 
18578 \begin_inset Flex Code
18579 status collapsed
18580
18581 \begin_layout Plain Layout
18582 1
18583 \end_layout
18584
18585 \end_inset
18586
18587  if the float is already defined by the \SpecialChar LaTeX
18588  document class.
18589 \end_layout
18590
18591 \begin_layout Description
18592 \begin_inset Flex Code
18593 status collapsed
18594
18595 \begin_layout Plain Layout
18596 ListCommand
18597 \end_layout
18598
18599 \end_inset
18600
18601  [
18602 \begin_inset Flex Code
18603 status collapsed
18604
18605 \begin_layout Plain Layout
18606 string
18607 \end_layout
18608
18609 \end_inset
18610
18611 =
18612 \begin_inset Quotes erd
18613 \end_inset
18614
18615
18616 \begin_inset Quotes erd
18617 \end_inset
18618
18619 ] The command used to generate a list of floats of this type; the leading
18620  `
18621 \backslash
18622 ' must be omitted.
18623  This 
18624 \emph on
18625 must
18626 \emph default
18627  be given if 
18628 \begin_inset Flex Code
18629 status collapsed
18630
18631 \begin_layout Plain Layout
18632 UsesFloatPkg
18633 \end_layout
18634
18635 \end_inset
18636
18637  is false, since there is no standard way to generate this command.
18638  It is ignored if 
18639 \begin_inset Flex Code
18640 status collapsed
18641
18642 \begin_layout Plain Layout
18643 UsesFloatPkg
18644 \end_layout
18645
18646 \end_inset
18647
18648  is true, since in that case there is a standard way to define the command.
18649 \end_layout
18650
18651 \begin_layout Description
18652 \begin_inset Flex Code
18653 status collapsed
18654
18655 \begin_layout Plain Layout
18656 ListName
18657 \end_layout
18658
18659 \end_inset
18660
18661  [
18662 \begin_inset Flex Code
18663 status collapsed
18664
18665 \begin_layout Plain Layout
18666 string
18667 \end_layout
18668
18669 \end_inset
18670
18671 =
18672 \begin_inset Quotes erd
18673 \end_inset
18674
18675
18676 \begin_inset Quotes erd
18677 \end_inset
18678
18679 ] A title for a list of floats of this kind (list of figures, tables, or
18680  whatever).
18681  It is used for the screen label within \SpecialChar LyX
18682 , it is used by \SpecialChar LaTeX
18683  for the title and
18684  it is used as the title in the XHTML output.
18685  It will be translated to the document language.
18686 \end_layout
18687
18688 \begin_layout Description
18689 \begin_inset Flex Code
18690 status collapsed
18691
18692 \begin_layout Plain Layout
18693 NumberWithin
18694 \end_layout
18695
18696 \end_inset
18697
18698  [
18699 \begin_inset Flex Code
18700 status collapsed
18701
18702 \begin_layout Plain Layout
18703 string
18704 \end_layout
18705
18706 \end_inset
18707
18708 =
18709 \begin_inset Quotes erd
18710 \end_inset
18711
18712
18713 \begin_inset Quotes erd
18714 \end_inset
18715
18716 ] This (optional) argument determines whether floats of this class will
18717  be numbered within some sectional unit of the document.
18718  For example, if 
18719 \begin_inset Flex Code
18720 status collapsed
18721
18722 \begin_layout Plain Layout
18723 NumberWithin
18724 \end_layout
18725
18726 \end_inset
18727
18728  is set to 
18729 \begin_inset Quotes eld
18730 \end_inset
18731
18732
18733 \begin_inset Flex Code
18734 status collapsed
18735
18736 \begin_layout Plain Layout
18737 chapter
18738 \end_layout
18739
18740 \end_inset
18741
18742
18743 \begin_inset Quotes erd
18744 \end_inset
18745
18746 , the floats will be numbered within chapters.
18747  
18748 \end_layout
18749
18750 \begin_layout Description
18751 \begin_inset Flex Code
18752 status collapsed
18753
18754 \begin_layout Plain Layout
18755 Placement
18756 \end_layout
18757
18758 \end_inset
18759
18760  [
18761 \begin_inset Flex Code
18762 status collapsed
18763
18764 \begin_layout Plain Layout
18765 string
18766 \end_layout
18767
18768 \end_inset
18769
18770 =
18771 \begin_inset Quotes erd
18772 \end_inset
18773
18774
18775 \begin_inset Quotes erd
18776 \end_inset
18777
18778 ] The default placement for the given class of floats.
18779  The string should be as in standard \SpecialChar LaTeX
18780
18781 \begin_inset Flex Code
18782 status collapsed
18783
18784 \begin_layout Plain Layout
18785 t
18786 \end_layout
18787
18788 \end_inset
18789
18790
18791 \begin_inset Flex Code
18792 status collapsed
18793
18794 \begin_layout Plain Layout
18795 b
18796 \end_layout
18797
18798 \end_inset
18799
18800
18801 \begin_inset Flex Code
18802 status collapsed
18803
18804 \begin_layout Plain Layout
18805 p
18806 \end_layout
18807
18808 \end_inset
18809
18810  and 
18811 \begin_inset Flex Code
18812 status collapsed
18813
18814 \begin_layout Plain Layout
18815 h
18816 \end_layout
18817
18818 \end_inset
18819
18820  for top, bottom, page, and here, respectively.
18821 \begin_inset Foot
18822 status collapsed
18823
18824 \begin_layout Plain Layout
18825 Note that the order of these letters in the string is irrelevant, like in
18826  \SpecialChar LaTeX
18827 .
18828 \end_layout
18829
18830 \end_inset
18831
18832  On top of that there is a new type, 
18833 \begin_inset Flex Code
18834 status collapsed
18835
18836 \begin_layout Plain Layout
18837 H
18838 \end_layout
18839
18840 \end_inset
18841
18842 , which does not really correspond to a float, since it means: put it 
18843 \begin_inset Quotes eld
18844 \end_inset
18845
18846 here
18847 \begin_inset Quotes erd
18848 \end_inset
18849
18850  and nowhere else.
18851  Note however that the 
18852 \begin_inset Flex Code
18853 status collapsed
18854
18855 \begin_layout Plain Layout
18856 H
18857 \end_layout
18858
18859 \end_inset
18860
18861  specifier is special and, because of implementation details, cannot be
18862  used in non-built in float types.
18863  If you do not understand what this means, just use 
18864 \begin_inset Quotes eld
18865 \end_inset
18866
18867
18868 \begin_inset Flex Code
18869 status collapsed
18870
18871 \begin_layout Plain Layout
18872 tbp
18873 \end_layout
18874
18875 \end_inset
18876
18877
18878 \begin_inset Quotes erd
18879 \end_inset
18880
18881 .
18882 \end_layout
18883
18884 \begin_layout Description
18885 \begin_inset Flex Code
18886 status collapsed
18887
18888 \begin_layout Plain Layout
18889 RefPrefix
18890 \end_layout
18891
18892 \end_inset
18893
18894  [
18895 \begin_inset Flex Code
18896 status collapsed
18897
18898 \begin_layout Plain Layout
18899 string
18900 \end_layout
18901
18902 \end_inset
18903
18904 ] The prefix to use when creating labels referring to floats of this type.
18905  This allows the use of formatted references.
18906  Note that you can remove any 
18907 \begin_inset Flex Code
18908 status collapsed
18909
18910 \begin_layout Plain Layout
18911 RefPrefix
18912 \end_layout
18913
18914 \end_inset
18915
18916  set by a copied style by using the special value 
18917 \begin_inset Quotes eld
18918 \end_inset
18919
18920 OFF
18921 \begin_inset Quotes erd
18922 \end_inset
18923
18924 , which must be all caps.
18925 \change_inserted -712698321 1565605014
18926
18927 \end_layout
18928
18929 \begin_layout Description
18930
18931 \change_inserted -712698321 1565605014
18932 \begin_inset Flex Code
18933 status collapsed
18934
18935 \begin_layout Plain Layout
18936
18937 \change_inserted -712698321 1565605014
18938 Requires
18939 \change_unchanged
18940
18941 \end_layout
18942
18943 \end_inset
18944
18945  [
18946 \begin_inset Flex Code
18947 status collapsed
18948
18949 \begin_layout Plain Layout
18950
18951 \change_inserted -712698321 1565605014
18952 string
18953 \change_unchanged
18954
18955 \end_layout
18956
18957 \end_inset
18958
18959 ] As with paragraph styles, see 
18960 \begin_inset CommandInset ref
18961 LatexCommand ref
18962 reference "subsec:Paragraph-Styles"
18963
18964 \end_inset
18965
18966 .
18967 \change_unchanged
18968
18969 \end_layout
18970
18971 \begin_layout Description
18972 \begin_inset Flex Code
18973 status collapsed
18974
18975 \begin_layout Plain Layout
18976 Style
18977 \end_layout
18978
18979 \end_inset
18980
18981  [
18982 \begin_inset Flex Code
18983 status collapsed
18984
18985 \begin_layout Plain Layout
18986 string
18987 \end_layout
18988
18989 \end_inset
18990
18991 =
18992 \begin_inset Quotes erd
18993 \end_inset
18994
18995
18996 \begin_inset Quotes erd
18997 \end_inset
18998
18999 ] The style used when defining the float using 
19000 \begin_inset Flex Code
19001 status collapsed
19002
19003 \begin_layout Plain Layout
19004
19005 \backslash
19006 newfloat
19007 \end_layout
19008
19009 \end_inset
19010
19011 .
19012 \end_layout
19013
19014 \begin_layout Description
19015 \begin_inset Flex Code
19016 status collapsed
19017
19018 \begin_layout Plain Layout
19019 Type
19020 \end_layout
19021
19022 \end_inset
19023
19024  [
19025 \begin_inset Flex Code
19026 status collapsed
19027
19028 \begin_layout Plain Layout
19029 string
19030 \end_layout
19031
19032 \end_inset
19033
19034 =
19035 \begin_inset Quotes erd
19036 \end_inset
19037
19038
19039 \begin_inset Quotes erd
19040 \end_inset
19041
19042 ] The 
19043 \begin_inset Quotes eld
19044 \end_inset
19045
19046 type
19047 \begin_inset Quotes erd
19048 \end_inset
19049
19050  of the new class of floats, like program or algorithm.
19051  After the appropriate 
19052 \begin_inset Flex Code
19053 status collapsed
19054
19055 \begin_layout Plain Layout
19056
19057 \backslash
19058 newfloat
19059 \end_layout
19060
19061 \end_inset
19062
19063 , commands such as 
19064 \begin_inset Flex Code
19065 status collapsed
19066
19067 \begin_layout Plain Layout
19068
19069 \backslash
19070 begin{program}
19071 \end_layout
19072
19073 \end_inset
19074
19075  or 
19076 \begin_inset Flex Code
19077 status collapsed
19078
19079 \begin_layout Plain Layout
19080
19081 \backslash
19082 end{algorithm*}
19083 \end_layout
19084
19085 \end_inset
19086
19087  will be available.
19088 \end_layout
19089
19090 \begin_layout Description
19091 \begin_inset Flex Code
19092 status collapsed
19093
19094 \begin_layout Plain Layout
19095 UsesFloatPkg
19096 \end_layout
19097
19098 \end_inset
19099
19100  [
19101 \begin_inset Flex Code
19102 status collapsed
19103
19104 \begin_layout Plain Layout
19105 0
19106 \end_layout
19107
19108 \end_inset
19109
19110 ,
19111 \begin_inset space \thinspace{}
19112 \end_inset
19113
19114
19115 \begin_inset Flex Code
19116 status collapsed
19117
19118 \begin_layout Plain Layout
19119
19120 \emph on
19121 1
19122 \end_layout
19123
19124 \end_inset
19125
19126 ] Specifies whether this float is defined using the \SpecialChar LaTeX
19127  package 
19128 \begin_inset Flex Code
19129 status collapsed
19130
19131 \begin_layout Plain Layout
19132 float
19133 \end_layout
19134
19135 \end_inset
19136
19137 , either by the class file, another package or on-the-fly by \SpecialChar LyX
19138  itself.
19139 \end_layout
19140
19141 \begin_layout Standard
19142 Note that defining a float with type 
19143 \begin_inset Flex Code
19144 status collapsed
19145
19146 \begin_layout Plain Layout
19147
19148 \emph on
19149 type
19150 \end_layout
19151
19152 \end_inset
19153
19154  automatically defines the corresponding counter with name 
19155 \begin_inset Flex Code
19156 status collapsed
19157
19158 \begin_layout Plain Layout
19159
19160 \emph on
19161 type
19162 \end_layout
19163
19164 \end_inset
19165
19166 .
19167 \end_layout
19168
19169 \begin_layout Subsection
19170 Flex insets and InsetLayout
19171 \begin_inset CommandInset label
19172 LatexCommand label
19173 name "subsec:Flex-insets-and"
19174
19175 \end_inset
19176
19177
19178 \end_layout
19179
19180 \begin_layout Standard
19181 Flex insets come in 
19182 \change_deleted 5863208 1594239511
19183 three
19184 \change_inserted 5863208 1594239512
19185 two
19186 \change_unchanged
19187  different kinds: 
19188 \end_layout
19189
19190 \begin_layout Itemize
19191 character style (
19192 \begin_inset Flex Code
19193 status collapsed
19194
19195 \begin_layout Plain Layout
19196 CharStyle
19197 \end_layout
19198
19199 \end_inset
19200
19201 ): These define semantic markup corresponding to such \SpecialChar LaTeX
19202  commands as 
19203 \begin_inset Flex Code
19204 status collapsed
19205
19206 \begin_layout Plain Layout
19207
19208 \backslash
19209 noun
19210 \end_layout
19211
19212 \end_inset
19213
19214  and 
19215 \begin_inset Flex Code
19216 status collapsed
19217
19218 \begin_layout Plain Layout
19219
19220 \backslash
19221 code
19222 \end_layout
19223
19224 \end_inset
19225
19226 .
19227 \end_layout
19228
19229 \begin_layout Itemize
19230 user custom (
19231 \begin_inset Flex Code
19232 status collapsed
19233
19234 \begin_layout Plain Layout
19235 Custom
19236 \end_layout
19237
19238 \end_inset
19239
19240 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
19241  code,
19242  footnote, and the like.
19243  An obvious example is an endnote inset, which is defined in the 
19244 \begin_inset Flex Code
19245 status collapsed
19246
19247 \begin_layout Plain Layout
19248 endnote
19249 \end_layout
19250
19251 \end_inset
19252
19253  module.
19254 \end_layout
19255
19256 \begin_layout Itemize
19257
19258 \change_deleted 5863208 1594239528
19259 XML elements (
19260 \begin_inset Flex Code
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264 Element
19265 \end_layout
19266
19267 \end_inset
19268
19269 ): For use with DocBook classes.
19270 \change_unchanged
19271
19272 \end_layout
19273
19274 \begin_layout Standard
19275 Flex insets are defined using the 
19276 \begin_inset Flex Code
19277 status collapsed
19278
19279 \begin_layout Plain Layout
19280 InsetLayout
19281 \end_layout
19282
19283 \end_inset
19284
19285  tag, which shall be explained in a moment.
19286 \end_layout
19287
19288 \begin_layout Standard
19289 The 
19290 \begin_inset Flex Code
19291 status collapsed
19292
19293 \begin_layout Plain Layout
19294 InsetLayout
19295 \end_layout
19296
19297 \end_inset
19298
19299  tag also serves another function: It can be used to customize the general
19300  layout of many different types of insets.
19301  Currently, 
19302 \begin_inset Flex Code
19303 status collapsed
19304
19305 \begin_layout Plain Layout
19306 InsetLayout
19307 \end_layout
19308
19309 \end_inset
19310
19311  can be used to customize the layout parameters for footnotes, marginal
19312  notes, note insets, \SpecialChar TeX
19313  code (ERT) insets, branches, listings, indexes, boxes,
19314  tables, algorithms, URLs, and captions, as well as to define Flex insets.
19315 \end_layout
19316
19317 \begin_layout Standard
19318 The 
19319 \begin_inset Flex Code
19320 status collapsed
19321
19322 \begin_layout Plain Layout
19323 InsetLayout
19324 \end_layout
19325
19326 \end_inset
19327
19328  definition must begin with a line of the form:
19329 \end_layout
19330
19331 \begin_layout LyX-Code
19332 InsetLayout <type>
19333 \end_layout
19334
19335 \begin_layout Standard
19336 Here 
19337 \begin_inset Flex Code
19338 status collapsed
19339
19340 \begin_layout Plain Layout
19341 <Type>
19342 \end_layout
19343
19344 \end_inset
19345
19346  indicates the inset whose layout is being defined, and here there are four
19347  cases.
19348 \end_layout
19349
19350 \begin_layout Enumerate
19351 The layout for a pre-existing inset is being modified.
19352  In this case, can be 
19353 \begin_inset Flex Code
19354 status collapsed
19355
19356 \begin_layout Plain Layout
19357 <Type>
19358 \end_layout
19359
19360 \end_inset
19361
19362  any one of the following: 
19363 \begin_inset Flex Code
19364 status collapsed
19365
19366 \begin_layout Plain Layout
19367 Algorithm
19368 \end_layout
19369
19370 \end_inset
19371
19372
19373 \begin_inset Flex Code
19374 status collapsed
19375
19376 \begin_layout Plain Layout
19377 Branch
19378 \end_layout
19379
19380 \end_inset
19381
19382
19383 \begin_inset Flex Code
19384 status collapsed
19385
19386 \begin_layout Plain Layout
19387 Box
19388 \end_layout
19389
19390 \end_inset
19391
19392
19393 \begin_inset Flex Code
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 Box:shaded
19398 \end_layout
19399
19400 \end_inset
19401
19402
19403 \begin_inset Flex Code
19404 status collapsed
19405
19406 \begin_layout Plain Layout
19407 Caption:Standard
19408 \end_layout
19409
19410 \end_inset
19411
19412
19413 \begin_inset Flex Code
19414 status collapsed
19415
19416 \begin_layout Plain Layout
19417 ERT
19418 \end_layout
19419
19420 \end_inset
19421
19422
19423 \begin_inset Flex Code
19424 status collapsed
19425
19426 \begin_layout Plain Layout
19427 Figure
19428 \end_layout
19429
19430 \end_inset
19431
19432
19433 \begin_inset Flex Code
19434 status collapsed
19435
19436 \begin_layout Plain Layout
19437 Foot
19438 \end_layout
19439
19440 \end_inset
19441
19442
19443 \begin_inset Flex Code
19444 status collapsed
19445
19446 \begin_layout Plain Layout
19447 Index
19448 \end_layout
19449
19450 \end_inset
19451
19452
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 Info
19458 \end_layout
19459
19460 \end_inset
19461
19462
19463 \begin_inset Flex Code
19464 status collapsed
19465
19466 \begin_layout Plain Layout
19467 Info:menu
19468 \end_layout
19469
19470 \end_inset
19471
19472
19473 \begin_inset Flex Code
19474 status collapsed
19475
19476 \begin_layout Plain Layout
19477 Info:shortcut
19478 \end_layout
19479
19480 \end_inset
19481
19482
19483 \begin_inset Flex Code
19484 status collapsed
19485
19486 \begin_layout Plain Layout
19487 Info:shortcuts
19488 \end_layout
19489
19490 \end_inset
19491
19492
19493 \begin_inset Flex Code
19494 status collapsed
19495
19496 \begin_layout Plain Layout
19497 Listings
19498 \end_layout
19499
19500 \end_inset
19501
19502
19503 \begin_inset Flex Code
19504 status collapsed
19505
19506 \begin_layout Plain Layout
19507 Marginal
19508 \end_layout
19509
19510 \end_inset
19511
19512
19513 \begin_inset Flex Code
19514 status collapsed
19515
19516 \begin_layout Plain Layout
19517 Note:Comment
19518 \end_layout
19519
19520 \end_inset
19521
19522
19523 \begin_inset Flex Code
19524 status collapsed
19525
19526 \begin_layout Plain Layout
19527 Note:Note
19528 \end_layout
19529
19530 \end_inset
19531
19532
19533 \begin_inset Flex Code
19534 status collapsed
19535
19536 \begin_layout Plain Layout
19537 Note:Greyedout
19538 \end_layout
19539
19540 \end_inset
19541
19542
19543 \begin_inset Flex Code
19544 status collapsed
19545
19546 \begin_layout Plain Layout
19547 Table
19548 \end_layout
19549
19550 \end_inset
19551
19552 , or 
19553 \begin_inset Flex Code
19554 status collapsed
19555
19556 \begin_layout Plain Layout
19557 URL
19558 \end_layout
19559
19560 \end_inset
19561
19562 .
19563 \end_layout
19564
19565 \begin_layout Enumerate
19566 The layout for a Flex inset is being defined.
19567  In this case, 
19568 \begin_inset Flex Code
19569 status collapsed
19570
19571 \begin_layout Plain Layout
19572 <Type>
19573 \end_layout
19574
19575 \end_inset
19576
19577  must be of the form 
19578 \begin_inset Quotes eld
19579 \end_inset
19580
19581
19582 \begin_inset Flex Code
19583 status collapsed
19584
19585 \begin_layout Plain Layout
19586 Flex:<name>
19587 \end_layout
19588
19589 \end_inset
19590
19591
19592 \begin_inset Quotes erd
19593 \end_inset
19594
19595 , where 
19596 \begin_inset Flex Code
19597 status collapsed
19598
19599 \begin_layout Plain Layout
19600 name
19601 \end_layout
19602
19603 \end_inset
19604
19605  may be be any valid identifier not used by a pre-existing Flex inset.
19606  The identifier may include spaces, but in that case the whole thing must
19607  be wrapped in quotes.
19608  Note that the definition of a flex inset 
19609 \emph on
19610 must 
19611 \emph default
19612 also include a 
19613 \begin_inset Flex Code
19614 status collapsed
19615
19616 \begin_layout Plain Layout
19617 LyXType
19618 \end_layout
19619
19620 \end_inset
19621
19622  entry, declaring which type of inset it defines.
19623 \end_layout
19624
19625 \begin_layout Enumerate
19626 The layout for user specific branch is being defined.
19627  In this case, 
19628 \begin_inset Flex Code
19629 status collapsed
19630
19631 \begin_layout Plain Layout
19632 <Type>
19633 \end_layout
19634
19635 \end_inset
19636
19637  must be of the form 
19638 \begin_inset Quotes eld
19639 \end_inset
19640
19641
19642 \begin_inset Flex Code
19643 status collapsed
19644
19645 \begin_layout Plain Layout
19646 Branch:<name>
19647 \end_layout
19648
19649 \end_inset
19650
19651
19652 \begin_inset Quotes erd
19653 \end_inset
19654
19655 , where 
19656 \begin_inset Flex Code
19657 status collapsed
19658
19659 \begin_layout Plain Layout
19660 name
19661 \end_layout
19662
19663 \end_inset
19664
19665  may be be any valid identifier of branch defined in user's document.
19666  The identifier may include spaces, but in that case the whole thing must
19667  be wrapped in quotes.
19668  The main purpose of this feature is to allow \SpecialChar LaTeX
19669  wrapping around specific
19670  branches as user needs.
19671 \end_layout
19672
19673 \begin_layout Enumerate
19674 The layout of a user (or class) specific caption is being defined.
19675  In this case, 
19676 \begin_inset Flex Code
19677 status collapsed
19678
19679 \begin_layout Plain Layout
19680 <Type>
19681 \end_layout
19682
19683 \end_inset
19684
19685  must be of the form 
19686 \begin_inset Quotes eld
19687 \end_inset
19688
19689
19690 \begin_inset Flex Code
19691 status collapsed
19692
19693 \begin_layout Plain Layout
19694 Caption:<name>
19695 \end_layout
19696
19697 \end_inset
19698
19699
19700 \begin_inset Quotes erd
19701 \end_inset
19702
19703 , where 
19704 \begin_inset Flex Code
19705 status collapsed
19706
19707 \begin_layout Plain Layout
19708 name
19709 \end_layout
19710
19711 \end_inset
19712
19713  specifies the name of the caption as it appears in the menu.
19714  Have a look at the standard caption (
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 Caption:Standard
19720 \end_layout
19721
19722 \end_inset
19723
19724 ), the specific captions of the KOMA-Script classes (
19725 \begin_inset Flex Code
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729 Caption:Above
19730 \end_layout
19731
19732 \end_inset
19733
19734
19735 \begin_inset Flex Code
19736 status collapsed
19737
19738 \begin_layout Plain Layout
19739 Caption:Below
19740 \end_layout
19741
19742 \end_inset
19743
19744 ) or the module 
19745 \family sans
19746 Multilingual
19747 \begin_inset space ~
19748 \end_inset
19749
19750 Captions
19751 \begin_inset Newline linebreak
19752 \end_inset
19753
19754
19755 \family default
19756 (
19757 \begin_inset Flex Code
19758 status collapsed
19759
19760 \begin_layout Plain Layout
19761 Caption:Bicaption
19762 \end_layout
19763
19764 \end_inset
19765
19766 ) for applications.
19767 \end_layout
19768
19769 \begin_layout Standard
19770 The 
19771 \begin_inset Flex Code
19772 status collapsed
19773
19774 \begin_layout Plain Layout
19775 InsetLayout
19776 \end_layout
19777
19778 \end_inset
19779
19780  definition can contain the following entries:
19781 \end_layout
19782
19783 \begin_layout Description
19784 \begin_inset Flex Code
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788 AddToToc
19789 \end_layout
19790
19791 \end_inset
19792
19793  [
19794 \begin_inset Flex Code
19795 status collapsed
19796
19797 \begin_layout Plain Layout
19798 string
19799 \end_layout
19800
19801 \end_inset
19802
19803 =""] This inset will appear in the table of contents of the given type.
19804  An empty string disables.
19805  See also the OutlinerName and the IsTocCaption commands.
19806  This is only implemented for Flex insets.
19807  Default: disabled.
19808 \end_layout
19809
19810 \begin_layout Description
19811 \begin_inset Flex Code
19812 status collapsed
19813
19814 \begin_layout Plain Layout
19815 Argument
19816 \end_layout
19817
19818 \end_inset
19819
19820  [
19821 \begin_inset Flex Code
19822 status collapsed
19823
19824 \begin_layout Plain Layout
19825 int
19826 \end_layout
19827
19828 \end_inset
19829
19830 ] Defines argument number of a command\SpecialChar breakableslash
19831 environment associated with the current
19832  layout.
19833  The definition must end with 
19834 \begin_inset Flex Code
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 EndArgument
19839 \end_layout
19840
19841 \end_inset
19842
19843 .
19844  See 
19845 \begin_inset CommandInset ref
19846 LatexCommand ref
19847 reference "subsec:Paragraph-Styles"
19848
19849 \end_inset
19850
19851  for details.
19852 \end_layout
19853
19854 \begin_layout Description
19855 \begin_inset Flex Code
19856 status collapsed
19857
19858 \begin_layout Plain Layout
19859 BabelPreamble
19860 \end_layout
19861
19862 \end_inset
19863
19864  Preamble for changing language commands; see 
19865 \begin_inset CommandInset ref
19866 LatexCommand ref
19867 reference "subsec:I18n"
19868
19869 \end_inset
19870
19871 .
19872 \end_layout
19873
19874 \begin_layout Description
19875 \begin_inset Flex Code
19876 status collapsed
19877
19878 \begin_layout Plain Layout
19879 BgColor
19880 \end_layout
19881
19882 \end_inset
19883
19884  [
19885 \begin_inset Flex Code
19886 status collapsed
19887
19888 \begin_layout Plain Layout
19889 <name>
19890 \end_layout
19891
19892 \end_inset
19893
19894 ] The color for the inset's background.
19895  See 
19896 \begin_inset CommandInset ref
19897 LatexCommand ref
19898 reference "chap:Names-of-colors"
19899
19900 \end_inset
19901
19902  for a list of the available color names.
19903 \end_layout
19904
19905 \begin_layout Description
19906 \begin_inset Flex Code
19907 status collapsed
19908
19909 \begin_layout Plain Layout
19910 ContentAsLabel
19911 \end_layout
19912
19913 \end_inset
19914
19915  [
19916 \begin_inset Flex Code
19917 status collapsed
19918
19919 \begin_layout Plain Layout
19920
19921 \emph on
19922 0
19923 \end_layout
19924
19925 \end_inset
19926
19927 ,
19928 \begin_inset space \thinspace{}
19929 \end_inset
19930
19931
19932 \begin_inset Flex Code
19933 status collapsed
19934
19935 \begin_layout Plain Layout
19936 1
19937 \end_layout
19938
19939 \end_inset
19940
19941 ] Whether to use the content of the inset as the label, when the inset is
19942  closed.
19943  Default is false.
19944 \end_layout
19945
19946 \begin_layout Description
19947 \begin_inset Flex Code
19948 status collapsed
19949
19950 \begin_layout Plain Layout
19951 CopyStyle
19952 \end_layout
19953
19954 \end_inset
19955
19956  [
19957 \begin_inset Flex Code
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961 <type>
19962 \end_layout
19963
19964 \end_inset
19965
19966 ] As with paragraph styles, see 
19967 \begin_inset CommandInset ref
19968 LatexCommand ref
19969 reference "subsec:Paragraph-Styles"
19970
19971 \end_inset
19972
19973 .
19974  Note that you need to specify the complete type, e.
19975 \begin_inset space \thinspace{}
19976 \end_inset
19977
19978 g.
19979 \begin_inset space ~
19980 \end_inset
19981
19982
19983 \begin_inset Flex Code
19984 status collapsed
19985
19986 \begin_layout Plain Layout
19987 CopyStyle Flex:<name>
19988 \end_layout
19989
19990 \end_inset
19991
19992 .
19993 \end_layout
19994
19995 \begin_layout Description
19996 \begin_inset Flex Code
19997 status collapsed
19998
19999 \begin_layout Plain Layout
20000 CustomPars
20001 \end_layout
20002
20003 \end_inset
20004
20005  [
20006 \begin_inset Flex Code
20007 status collapsed
20008
20009 \begin_layout Plain Layout
20010
20011 \emph on
20012 0
20013 \end_layout
20014
20015 \end_inset
20016
20017 ,
20018 \begin_inset space \thinspace{}
20019 \end_inset
20020
20021
20022 \begin_inset Flex Code
20023 status collapsed
20024
20025 \begin_layout Plain Layout
20026 1
20027 \end_layout
20028
20029 \end_inset
20030
20031 ] Indicates whether the user may employ the Paragraph Settings dialog to
20032  customize the paragraph.
20033 \end_layout
20034
20035 \begin_layout Description
20036 \begin_inset Flex Code
20037 status collapsed
20038
20039 \begin_layout Plain Layout
20040 Decoration
20041 \end_layout
20042
20043 \end_inset
20044
20045  can be 
20046 \begin_inset Flex Code
20047 status collapsed
20048
20049 \begin_layout Plain Layout
20050 Classic
20051 \end_layout
20052
20053 \end_inset
20054
20055
20056 \begin_inset Flex Code
20057 status collapsed
20058
20059 \begin_layout Plain Layout
20060 Minimalistic
20061 \end_layout
20062
20063 \end_inset
20064
20065 , or 
20066 \begin_inset Flex Code
20067 status collapsed
20068
20069 \begin_layout Plain Layout
20070 Conglomerate
20071 \end_layout
20072
20073 \end_inset
20074
20075 , describing the rendering style used for the inset's frame and buttons.
20076  Footnotes generally use 
20077 \begin_inset Flex Code
20078 status collapsed
20079
20080 \begin_layout Plain Layout
20081 Classic
20082 \end_layout
20083
20084 \end_inset
20085
20086 , ERT insets generally 
20087 \begin_inset Flex Code
20088 status collapsed
20089
20090 \begin_layout Plain Layout
20091 Minimalistic
20092 \end_layout
20093
20094 \end_inset
20095
20096 , and character styles 
20097 \begin_inset Flex Code
20098 status collapsed
20099
20100 \begin_layout Plain Layout
20101 Conglomerate
20102 \end_layout
20103
20104 \end_inset
20105
20106 .
20107 \end_layout
20108
20109 \begin_layout Description
20110 \begin_inset Flex Code
20111 status collapsed
20112
20113 \begin_layout Plain Layout
20114 Display
20115 \end_layout
20116
20117 \end_inset
20118
20119  [
20120 \begin_inset Flex Code
20121 status collapsed
20122
20123 \begin_layout Plain Layout
20124 0
20125 \end_layout
20126
20127 \end_inset
20128
20129 ,
20130 \emph on
20131
20132 \begin_inset space \thinspace{}
20133 \end_inset
20134
20135
20136 \emph default
20137
20138 \begin_inset Flex Code
20139 status collapsed
20140
20141 \begin_layout Plain Layout
20142
20143 \emph on
20144 1
20145 \end_layout
20146
20147 \end_inset
20148
20149 ] Only useful if 
20150 \begin_inset Flex Code
20151 status collapsed
20152
20153 \begin_layout Plain Layout
20154 LatexType
20155 \end_layout
20156
20157 \end_inset
20158
20159  is 
20160 \begin_inset Flex Code
20161 status collapsed
20162
20163 \begin_layout Plain Layout
20164 Environment
20165 \end_layout
20166
20167 \end_inset
20168
20169 .
20170  Indicates whether the environment will stand on its own in the output or
20171  will appear inline with the surrounding text.
20172  If set to false, it is supposed that the \SpecialChar LaTeX
20173  environment ignores white space
20174  (including one newline character) after the 
20175 \begin_inset Flex Code
20176 status collapsed
20177
20178 \begin_layout Plain Layout
20179
20180 \backslash
20181 begin{
20182 \emph on
20183 LatexName
20184 \emph default
20185 }
20186 \end_layout
20187
20188 \end_inset
20189
20190  and 
20191 \begin_inset Flex Code
20192 status collapsed
20193
20194 \begin_layout Plain Layout
20195
20196 \backslash
20197 end{
20198 \emph on
20199 LatexName
20200 \emph default
20201 }
20202 \end_layout
20203
20204 \end_inset
20205
20206  tags.
20207  Default is true.
20208 \change_inserted 731793113 1538674858
20209
20210 \end_layout
20211
20212 \begin_layout Description
20213
20214 \change_inserted 731793113 1538674891
20215 \begin_inset Flex Code
20216 status open
20217
20218 \begin_layout Plain Layout
20219
20220 \change_inserted 731793113 1538674863
20221 EditExternal
20222 \change_unchanged
20223
20224 \end_layout
20225
20226 \end_inset
20227
20228  [
20229 \emph on
20230 0
20231 \emph default
20232 ,1] Allow the contents of the inset to be edited externally (using whatever
20233  editor is defined for the document's output format).
20234 \change_unchanged
20235
20236 \end_layout
20237
20238 \begin_layout Description
20239 \begin_inset Flex Code
20240 status collapsed
20241
20242 \begin_layout Plain Layout
20243 End
20244 \end_layout
20245
20246 \end_inset
20247
20248  Required at the end of the 
20249 \begin_inset Flex Code
20250 status collapsed
20251
20252 \begin_layout Plain Layout
20253 InsetLayout
20254 \end_layout
20255
20256 \end_inset
20257
20258  declarations.
20259 \end_layout
20260
20261 \begin_layout Description
20262 \begin_inset Flex Code
20263 status collapsed
20264
20265 \begin_layout Plain Layout
20266 Font
20267 \end_layout
20268
20269 \end_inset
20270
20271  The font used for both the text body 
20272 \emph on
20273 and
20274 \emph default
20275  the label.
20276  See 
20277 \begin_inset CommandInset ref
20278 LatexCommand ref
20279 reference "subsec:Font-description"
20280
20281 \end_inset
20282
20283 .
20284  Note that defining this font automatically defines the 
20285 \begin_inset Flex Code
20286 status collapsed
20287
20288 \begin_layout Plain Layout
20289 LabelFont
20290 \end_layout
20291
20292 \end_inset
20293
20294  to the same value, so define this first and define 
20295 \begin_inset Flex Code
20296 status collapsed
20297
20298 \begin_layout Plain Layout
20299 LabelFont
20300 \end_layout
20301
20302 \end_inset
20303
20304  later if you want them to be different.
20305 \end_layout
20306
20307 \begin_layout Description
20308 \begin_inset Flex Code
20309 status collapsed
20310
20311 \begin_layout Plain Layout
20312 FixedWidthPreambleEncoding
20313 \end_layout
20314
20315 \end_inset
20316
20317  [
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322
20323 \emph on
20324 0
20325 \end_layout
20326
20327 \end_inset
20328
20329 ,
20330 \begin_inset space \thinspace{}
20331 \end_inset
20332
20333
20334 \begin_inset Flex Code
20335 status collapsed
20336
20337 \begin_layout Plain Layout
20338 1
20339 \end_layout
20340
20341 \end_inset
20342
20343 ] Force a fixed width encoding for the translated contents of 
20344 \begin_inset Flex Code
20345 status collapsed
20346
20347 \begin_layout Plain Layout
20348 BabelPreamble
20349 \end_layout
20350
20351 \end_inset
20352
20353  and 
20354 \begin_inset Flex Code
20355 status collapsed
20356
20357 \begin_layout Plain Layout
20358 LangPreamble
20359 \end_layout
20360
20361 \end_inset
20362
20363  code generated by this layout.
20364  This is needed for special \SpecialChar LaTeX
20365 -packages like 
20366 \family typewriter
20367 listings
20368 \family default
20369  that do not work with variable width encodings such as 
20370 \family sans
20371 utf8
20372 \family default
20373 .
20374  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
20375  backends such as Xe\SpecialChar TeX
20376  or
20377  Lua\SpecialChar TeX
20378  are used.
20379 \end_layout
20380
20381 \begin_layout Description
20382 \begin_inset Flex Code
20383 status collapsed
20384
20385 \begin_layout Plain Layout
20386 ForceLocalFontSwitch
20387 \end_layout
20388
20389 \end_inset
20390
20391  [
20392 \begin_inset Flex Code
20393 status collapsed
20394
20395 \begin_layout Plain Layout
20396
20397 \emph on
20398 0
20399 \end_layout
20400
20401 \end_inset
20402
20403 ,
20404 \begin_inset space \thinspace{}
20405 \end_inset
20406
20407
20408 \begin_inset Flex Code
20409 status collapsed
20410
20411 \begin_layout Plain Layout
20412 1
20413 \end_layout
20414
20415 \end_inset
20416
20417 ] When using babel, always use a local font switch (
20418 \begin_inset Flex Code
20419 status collapsed
20420
20421 \begin_layout Plain Layout
20422
20423 \backslash
20424 foreignlanguage
20425 \end_layout
20426
20427 \end_inset
20428
20429 ), never a global one (such as 
20430 \begin_inset Flex Code
20431 status collapsed
20432
20433 \begin_layout Plain Layout
20434
20435 \backslash
20436 selectlanguage
20437 \end_layout
20438
20439 \end_inset
20440
20441 ).
20442 \end_layout
20443
20444 \begin_layout Description
20445 \begin_inset Flex Code
20446 status collapsed
20447
20448 \begin_layout Plain Layout
20449 ForceLTR
20450 \end_layout
20451
20452 \end_inset
20453
20454  [
20455 \begin_inset Flex Code
20456 status collapsed
20457
20458 \begin_layout Plain Layout
20459
20460 \emph on
20461 0
20462 \end_layout
20463
20464 \end_inset
20465
20466 ,
20467 \begin_inset space \thinspace{}
20468 \end_inset
20469
20470
20471 \begin_inset Flex Code
20472 status collapsed
20473
20474 \begin_layout Plain Layout
20475 1
20476 \end_layout
20477
20478 \end_inset
20479
20480 ] Force the 
20481 \begin_inset Quotes eld
20482 \end_inset
20483
20484 latex
20485 \begin_inset Quotes erd
20486 \end_inset
20487
20488  language, leading to Left-to-Right (Latin) output, e.
20489 \begin_inset space \thinspace{}
20490 \end_inset
20491
20492 g.
20493 \begin_inset space \space{}
20494 \end_inset
20495
20496 in \SpecialChar TeX
20497  code or URL.
20498  A kludge.
20499 \end_layout
20500
20501 \begin_layout Description
20502 \begin_inset Flex Code
20503 status collapsed
20504
20505 \begin_layout Plain Layout
20506 ForceOwnlines
20507 \end_layout
20508
20509 \end_inset
20510
20511  [
20512 \begin_inset Flex Code
20513 status collapsed
20514
20515 \begin_layout Plain Layout
20516
20517 \emph on
20518 0
20519 \end_layout
20520
20521 \end_inset
20522
20523 ,
20524 \begin_inset space \thinspace{}
20525 \end_inset
20526
20527
20528 \begin_inset Flex Code
20529 status collapsed
20530
20531 \begin_layout Plain Layout
20532 1
20533 \end_layout
20534
20535 \end_inset
20536
20537 ] Force a a line break in the \SpecialChar LaTeX
20538  output before the inset starts and after
20539  the inset ends.
20540  This assures the inset itself is output on its own lines, for parsing purposes.
20541 \end_layout
20542
20543 \begin_layout Description
20544 \begin_inset Flex Code
20545 status collapsed
20546
20547 \begin_layout Plain Layout
20548 ForcePlain
20549 \end_layout
20550
20551 \end_inset
20552
20553  [
20554 \begin_inset Flex Code
20555 status collapsed
20556
20557 \begin_layout Plain Layout
20558
20559 \emph on
20560 0
20561 \end_layout
20562
20563 \end_inset
20564
20565 ,
20566 \begin_inset space \thinspace{}
20567 \end_inset
20568
20569
20570 \begin_inset Flex Code
20571 status collapsed
20572
20573 \begin_layout Plain Layout
20574 1
20575 \end_layout
20576
20577 \end_inset
20578
20579 ] Indicates whether the 
20580 \begin_inset Flex Code
20581 status collapsed
20582
20583 \begin_layout Plain Layout
20584 PlainLayout
20585 \end_layout
20586
20587 \end_inset
20588
20589  should be used or, instead, the user can change the paragraph style used
20590  in the inset.
20591  Default is false.
20592 \end_layout
20593
20594 \begin_layout Description
20595 \begin_inset Flex Code
20596 status collapsed
20597
20598 \begin_layout Plain Layout
20599 FreeSpacing
20600 \end_layout
20601
20602 \end_inset
20603
20604  [
20605 \begin_inset Flex Code
20606 status collapsed
20607
20608 \begin_layout Plain Layout
20609
20610 \emph on
20611 0
20612 \end_layout
20613
20614 \end_inset
20615
20616 ,
20617 \begin_inset space \thinspace{}
20618 \end_inset
20619
20620
20621 \begin_inset Flex Code
20622 status collapsed
20623
20624 \begin_layout Plain Layout
20625 1
20626 \end_layout
20627
20628 \end_inset
20629
20630 ] As with paragraph styles, see 
20631 \begin_inset CommandInset ref
20632 LatexCommand ref
20633 reference "subsec:Paragraph-Styles"
20634
20635 \end_inset
20636
20637 .
20638 \end_layout
20639
20640 \begin_layout Description
20641 \begin_inset Flex Code
20642 status collapsed
20643
20644 \begin_layout Plain Layout
20645 HTML*
20646 \end_layout
20647
20648 \end_inset
20649
20650  These tags control the XHTML output.
20651  See 
20652 \begin_inset CommandInset ref
20653 LatexCommand ref
20654 reference "sec:Tags-for-XHTML"
20655
20656 \end_inset
20657
20658 .
20659 \end_layout
20660
20661 \begin_layout Description
20662 \begin_inset Flex Code
20663 status collapsed
20664
20665 \begin_layout Plain Layout
20666 InToc
20667 \end_layout
20668
20669 \end_inset
20670
20671  [
20672 \begin_inset Flex Code
20673 status collapsed
20674
20675 \begin_layout Plain Layout
20676
20677 \emph on
20678 0
20679 \end_layout
20680
20681 \end_inset
20682
20683 ,
20684 \begin_inset space \thinspace{}
20685 \end_inset
20686
20687
20688 \begin_inset Flex Code
20689 status collapsed
20690
20691 \begin_layout Plain Layout
20692 1
20693 \end_layout
20694
20695 \end_inset
20696
20697 ] Whether to include the contents of this inset in the strings generated
20698  for the `Outline' pane for all table of contents, regardless of the AddToToc
20699  setting.
20700  One would not, for example, want the content of a footnote in a section
20701  header to be included in the TOC displayed in the outline, but one would
20702  normally want the content of a character style displayed.
20703  Default is false: not to include.
20704 \end_layout
20705
20706 \begin_layout Description
20707 \begin_inset Flex Code
20708 status collapsed
20709
20710 \begin_layout Plain Layout
20711 IsTocCaption
20712 \end_layout
20713
20714 \end_inset
20715
20716  [
20717 \begin_inset Flex Code
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721
20722 \emph on
20723 0
20724 \end_layout
20725
20726 \end_inset
20727
20728 ,
20729 \begin_inset space \thinspace{}
20730 \end_inset
20731
20732
20733 \begin_inset Flex Code
20734 status collapsed
20735
20736 \begin_layout Plain Layout
20737 1
20738 \end_layout
20739
20740 \end_inset
20741
20742 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20743  of its contents in its item in the table of contents.
20744  Otherwise, only the label appears.
20745 \end_layout
20746
20747 \begin_layout Description
20748 \begin_inset Flex Code
20749 status collapsed
20750
20751 \begin_layout Plain Layout
20752 KeepEmpty
20753 \end_layout
20754
20755 \end_inset
20756
20757  [
20758 \emph on
20759
20760 \begin_inset Flex Code
20761 status collapsed
20762
20763 \begin_layout Plain Layout
20764 0
20765 \end_layout
20766
20767 \end_inset
20768
20769
20770 \emph default
20771 ,
20772 \begin_inset space \thinspace{}
20773 \end_inset
20774
20775
20776 \begin_inset Flex Code
20777 status collapsed
20778
20779 \begin_layout Plain Layout
20780 1
20781 \end_layout
20782
20783 \end_inset
20784
20785 ] As with paragraph styles, see 
20786 \begin_inset CommandInset ref
20787 LatexCommand ref
20788 reference "subsec:Paragraph-Styles"
20789
20790 \end_inset
20791
20792 .
20793 \end_layout
20794
20795 \begin_layout Description
20796 \begin_inset Flex Code
20797 status collapsed
20798
20799 \begin_layout Plain Layout
20800 LabelFont
20801 \end_layout
20802
20803 \end_inset
20804
20805  The font used for the label.
20806  See 
20807 \begin_inset CommandInset ref
20808 LatexCommand ref
20809 reference "subsec:Font-description"
20810
20811 \end_inset
20812
20813 .
20814  Note that this definition can never appear before 
20815 \begin_inset Flex Code
20816 status collapsed
20817
20818 \begin_layout Plain Layout
20819 Font
20820 \end_layout
20821
20822 \end_inset
20823
20824 , lest it be ineffective.
20825 \end_layout
20826
20827 \begin_layout Description
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832 LabelString
20833 \end_layout
20834
20835 \end_inset
20836
20837  [
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842 string
20843 \end_layout
20844
20845 \end_inset
20846
20847 =
20848 \begin_inset Quotes erd
20849 \end_inset
20850
20851
20852 \begin_inset Quotes erd
20853 \end_inset
20854
20855 ] What will be displayed on the button or elsewhere as the inset label.
20856  Some inset types (
20857 \begin_inset Flex Code
20858 status collapsed
20859
20860 \begin_layout Plain Layout
20861 \SpecialChar TeX
20862  code
20863 \end_layout
20864
20865 \end_inset
20866
20867  and 
20868 \begin_inset Flex Code
20869 status collapsed
20870
20871 \begin_layout Plain Layout
20872 Branch
20873 \end_layout
20874
20875 \end_inset
20876
20877 ) modify this label on the fly.
20878 \end_layout
20879
20880 \begin_layout Description
20881 \begin_inset Flex Code
20882 status collapsed
20883
20884 \begin_layout Plain Layout
20885 LangPreamble
20886 \end_layout
20887
20888 \end_inset
20889
20890  Language dependent preamble; see 
20891 \begin_inset CommandInset ref
20892 LatexCommand ref
20893 reference "subsec:I18n"
20894
20895 \end_inset
20896
20897 .
20898 \end_layout
20899
20900 \begin_layout Description
20901 \begin_inset Flex Code
20902 status collapsed
20903
20904 \begin_layout Plain Layout
20905 LatexName
20906 \end_layout
20907
20908 \end_inset
20909
20910  [
20911 \begin_inset Flex Code
20912 status collapsed
20913
20914 \begin_layout Plain Layout
20915 <name>
20916 \end_layout
20917
20918 \end_inset
20919
20920 ] The name of the corresponding \SpecialChar LaTeX
20921  stuff.
20922  Either the environment or command name.
20923 \end_layout
20924
20925 \begin_layout Description
20926 \begin_inset Flex Code
20927 status collapsed
20928
20929 \begin_layout Plain Layout
20930 LatexParam
20931 \end_layout
20932
20933 \end_inset
20934
20935  [
20936 \begin_inset Flex Code
20937 status collapsed
20938
20939 \begin_layout Plain Layout
20940 <parameter>
20941 \end_layout
20942
20943 \end_inset
20944
20945 ] The optional parameter for the corresponding 
20946 \begin_inset Flex Code
20947 status collapsed
20948
20949 \begin_layout Plain Layout
20950 LatexName
20951 \end_layout
20952
20953 \end_inset
20954
20955  stuff, including possible bracket pairs like 
20956 \begin_inset Flex Code
20957 status collapsed
20958
20959 \begin_layout Plain Layout
20960 []
20961 \end_layout
20962
20963 \end_inset
20964
20965 .
20966  This parameter cannot be changed from within \SpecialChar LyX
20967  (use 
20968 \begin_inset Flex Code
20969 status collapsed
20970
20971 \begin_layout Plain Layout
20972 Argument
20973 \end_layout
20974
20975 \end_inset
20976
20977  for customizable parameters).
20978  It will be output as is after all \SpecialChar LaTeX
20979  
20980 \begin_inset Flex Code
20981 status collapsed
20982
20983 \begin_layout Plain Layout
20984 Argument
20985 \end_layout
20986
20987 \end_inset
20988
20989 s.
20990 \end_layout
20991
20992 \begin_layout Description
20993 \begin_inset Flex Code
20994 status collapsed
20995
20996 \begin_layout Plain Layout
20997 LatexType
20998 \end_layout
20999
21000 \end_inset
21001
21002  [
21003 \begin_inset Flex Code
21004 status collapsed
21005
21006 \begin_layout Plain Layout
21007 Command, Environment, None
21008 \end_layout
21009
21010 \end_inset
21011
21012 ] How the style should be translated into \SpecialChar LaTeX
21013 .
21014 \begin_inset Foot
21015 status collapsed
21016
21017 \begin_layout Plain Layout
21018 \begin_inset Flex Code
21019 status collapsed
21020
21021 \begin_layout Plain Layout
21022 LatexType
21023 \end_layout
21024
21025 \end_inset
21026
21027  is perhaps a bit misleading, since these rules apply to SGML classes too.
21028  Visit the SGML class files for specific examples.
21029 \end_layout
21030
21031 \end_inset
21032
21033
21034 \end_layout
21035
21036 \begin_deeper
21037 \begin_layout Description
21038 \begin_inset Flex Code
21039 status collapsed
21040
21041 \begin_layout Plain Layout
21042 None
21043 \end_layout
21044
21045 \end_inset
21046
21047  means nothing special
21048 \end_layout
21049
21050 \begin_layout Description
21051 \begin_inset Flex Code
21052 status collapsed
21053
21054 \begin_layout Plain Layout
21055 Command
21056 \end_layout
21057
21058 \end_inset
21059
21060  means 
21061 \begin_inset Flex Code
21062 status collapsed
21063
21064 \begin_layout Plain Layout
21065
21066 \backslash
21067
21068 \emph on
21069 LatexName
21070 \emph default
21071 {\SpecialChar ldots
21072 }
21073 \end_layout
21074
21075 \end_inset
21076
21077
21078 \end_layout
21079
21080 \begin_layout Description
21081 \begin_inset Flex Code
21082 status collapsed
21083
21084 \begin_layout Plain Layout
21085 Environment
21086 \end_layout
21087
21088 \end_inset
21089
21090  means 
21091 \begin_inset Flex Code
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095
21096 \backslash
21097 begin{
21098 \emph on
21099 LatexName
21100 \emph default
21101 }\SpecialChar ldots
21102
21103 \backslash
21104 end{
21105 \emph on
21106 LatexName
21107 \emph default
21108 }
21109 \end_layout
21110
21111 \end_inset
21112
21113
21114 \end_layout
21115
21116 \begin_layout Standard
21117 Putting the last few things together, the \SpecialChar LaTeX
21118  output will be either: 
21119 \end_layout
21120
21121 \begin_layout LyX-Code
21122
21123 \backslash
21124 LatexName[LatexParam]{\SpecialChar ldots
21125 }
21126 \end_layout
21127
21128 \begin_layout Standard
21129 or: 
21130 \end_layout
21131
21132 \begin_layout LyX-Code
21133
21134 \backslash
21135 begin{LatexName}[LatexParam] \SpecialChar ldots
21136  
21137 \backslash
21138 end{LatexName}
21139 \end_layout
21140
21141 \begin_layout Standard
21142 depending upon the \SpecialChar LaTeX
21143  type.
21144 \end_layout
21145
21146 \end_deeper
21147 \begin_layout Description
21148 \begin_inset Flex Code
21149 status collapsed
21150
21151 \begin_layout Plain Layout
21152 LeftDelim
21153 \end_layout
21154
21155 \end_inset
21156
21157  [
21158 \begin_inset Flex Code
21159 status collapsed
21160
21161 \begin_layout Plain Layout
21162 string
21163 \end_layout
21164
21165 \end_inset
21166
21167 ] A string that is put at the beginning of the layout content.
21168  A line break in the output can be indicated by 
21169 \begin_inset Flex Code
21170 status collapsed
21171
21172 \begin_layout Plain Layout
21173 <br/>
21174 \end_layout
21175
21176 \end_inset
21177
21178 .
21179 \end_layout
21180
21181 \begin_layout Description
21182 \begin_inset Flex Code
21183 status collapsed
21184
21185 \begin_layout Plain Layout
21186 LyxType
21187 \end_layout
21188
21189 \end_inset
21190
21191  Can be 
21192 \begin_inset Flex Code
21193 status collapsed
21194
21195 \begin_layout Plain Layout
21196 charstyle
21197 \end_layout
21198
21199 \end_inset
21200
21201
21202 \begin_inset Flex Code
21203 status collapsed
21204
21205 \begin_layout Plain Layout
21206 custom
21207 \end_layout
21208
21209 \end_inset
21210
21211
21212 \begin_inset Flex Code
21213 status collapsed
21214
21215 \begin_layout Plain Layout
21216 element
21217 \end_layout
21218
21219 \end_inset
21220
21221  or 
21222 \begin_inset Flex Code
21223 status collapsed
21224
21225 \begin_layout Plain Layout
21226 end
21227 \end_layout
21228
21229 \end_inset
21230
21231  (indicating a dummy definition ending definitions of charstyles, etc).
21232  This entry is required in and is only meaningful for Flex insets.
21233  Among other things, it determines on which menu this inset will appear.
21234  Setting 
21235 \begin_inset Flex Code
21236 status collapsed
21237
21238 \begin_layout Plain Layout
21239 LyxType
21240 \end_layout
21241
21242 \end_inset
21243
21244  to 
21245 \begin_inset Flex Code
21246 status collapsed
21247
21248 \begin_layout Plain Layout
21249 charstyle
21250 \end_layout
21251
21252 \end_inset
21253
21254  will automatically set 
21255 \begin_inset Flex Code
21256 status collapsed
21257
21258 \begin_layout Plain Layout
21259 MultiPar
21260 \end_layout
21261
21262 \end_inset
21263
21264  to false and 
21265 \begin_inset Flex Code
21266 status collapsed
21267
21268 \begin_layout Plain Layout
21269 ForcePlain
21270 \end_layout
21271
21272 \end_inset
21273
21274  to true.
21275  
21276 \begin_inset Flex Code
21277 status collapsed
21278
21279 \begin_layout Plain Layout
21280 MultiPar
21281 \end_layout
21282
21283 \end_inset
21284
21285  can be set to true, or 
21286 \begin_inset Flex Code
21287 status collapsed
21288
21289 \begin_layout Plain Layout
21290 ForcePlain
21291 \end_layout
21292
21293 \end_inset
21294
21295  to false, for 
21296 \begin_inset Flex Code
21297 status collapsed
21298
21299 \begin_layout Plain Layout
21300 charstyle
21301 \end_layout
21302
21303 \end_inset
21304
21305  insets by setting it 
21306 \emph on
21307 after
21308 \emph default
21309  you set the 
21310 \begin_inset Flex Code
21311 status collapsed
21312
21313 \begin_layout Plain Layout
21314 LyxType
21315 \end_layout
21316
21317 \end_inset
21318
21319 .
21320 \change_inserted -712698321 1555575738
21321
21322 \end_layout
21323
21324 \begin_layout Description
21325
21326 \change_inserted -712698321 1555575844
21327 \begin_inset Flex Code
21328 status collapsed
21329
21330 \begin_layout Plain Layout
21331
21332 \change_inserted -712698321 1555575740
21333 MenuString
21334 \change_unchanged
21335
21336 \end_layout
21337
21338 \end_inset
21339
21340  
21341 \begin_inset Flex Code
21342 status collapsed
21343
21344 \begin_layout Plain Layout
21345
21346 \change_inserted -712698321 1555575740
21347 [string]
21348 \change_unchanged
21349
21350 \end_layout
21351
21352 \end_inset
21353
21354  A dedicated string for the menu.
21355  You can define an accelerator by appending the respective character to
21356  the string, divided by 
21357 \begin_inset Quotes eld
21358 \end_inset
21359
21360 |
21361 \begin_inset Quotes erd
21362 \end_inset
21363
21364  (e.
21365 \begin_inset space \thinspace{}
21366 \end_inset
21367
21368 g.
21369 \begin_inset space \space{}
21370 \end_inset
21371
21372
21373 \begin_inset Quotes eld
21374 \end_inset
21375
21376
21377 \begin_inset Flex Code
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381
21382 \change_inserted -712698321 1555575781
21383 My Inset|M
21384 \change_unchanged
21385
21386 \end_layout
21387
21388 \end_inset
21389
21390
21391 \begin_inset Quotes erd
21392 \end_inset
21393
21394 ).
21395  This specification is optional.
21396  If it is not given the inset name as specified in the type declaration
21397  will be used instead for the menu.
21398 \change_unchanged
21399
21400 \end_layout
21401
21402 \begin_layout Description
21403 \begin_inset Flex Code
21404 status collapsed
21405
21406 \begin_layout Plain Layout
21407 MultiPar
21408 \end_layout
21409
21410 \end_inset
21411
21412  [
21413 \begin_inset Flex Code
21414 status collapsed
21415
21416 \begin_layout Plain Layout
21417
21418 \emph on
21419 0
21420 \end_layout
21421
21422 \end_inset
21423
21424 ,
21425 \begin_inset space \thinspace{}
21426 \end_inset
21427
21428
21429 \begin_inset Flex Code
21430 status collapsed
21431
21432 \begin_layout Plain Layout
21433 1
21434 \end_layout
21435
21436 \end_inset
21437
21438 ] Whether multiple paragraphs are permitted in this inset.
21439  This will also set 
21440 \begin_inset Flex Code
21441 status collapsed
21442
21443 \begin_layout Plain Layout
21444 CustomPars
21445 \end_layout
21446
21447 \end_inset
21448
21449  to the same value and 
21450 \begin_inset Flex Code
21451 status collapsed
21452
21453 \begin_layout Plain Layout
21454 ForcePlain
21455 \end_layout
21456
21457 \end_inset
21458
21459  to the opposite value.
21460  These can be reset to other values, if they are used 
21461 \emph on
21462 after
21463 \emph default
21464  
21465 \begin_inset Flex Code
21466 status collapsed
21467
21468 \begin_layout Plain Layout
21469 MultiPar
21470 \end_layout
21471
21472 \end_inset
21473
21474 .
21475  Default is true.
21476 \end_layout
21477
21478 \begin_layout Description
21479 \begin_inset Flex Code
21480 status collapsed
21481
21482 \begin_layout Plain Layout
21483 NeedProtect
21484 \end_layout
21485
21486 \end_inset
21487
21488  [
21489 \begin_inset Flex Code
21490 status collapsed
21491
21492 \begin_layout Plain Layout
21493
21494 \emph on
21495 0
21496 \end_layout
21497
21498 \end_inset
21499
21500 ,
21501 \begin_inset space \thinspace{}
21502 \end_inset
21503
21504
21505 \begin_inset Flex Code
21506 status collapsed
21507
21508 \begin_layout Plain Layout
21509 1
21510 \end_layout
21511
21512 \end_inset
21513
21514 ] Whether fragile commands in this inset should be 
21515 \begin_inset Flex Code
21516 status collapsed
21517
21518 \begin_layout Plain Layout
21519
21520 \backslash
21521 protect
21522 \end_layout
21523
21524 \end_inset
21525
21526 'ed.
21527  (Note: This is 
21528 \emph on
21529 not
21530 \emph default
21531  whether the command should itself be protected.) Default is false.
21532 \change_inserted -712698321 1523633958
21533
21534 \end_layout
21535
21536 \begin_layout Description
21537
21538 \change_inserted -712698321 1552395786
21539 \begin_inset Flex Code
21540 status collapsed
21541
21542 \begin_layout Plain Layout
21543
21544 \change_inserted -712698321 1523633961
21545 NeedCProtect
21546 \change_unchanged
21547
21548 \end_layout
21549
21550 \end_inset
21551
21552  [
21553 \begin_inset Flex Code
21554 status collapsed
21555
21556 \begin_layout Plain Layout
21557
21558 \change_inserted -712698321 1523633958
21559
21560 \emph on
21561 0
21562 \change_unchanged
21563
21564 \end_layout
21565
21566 \end_inset
21567
21568 ,
21569 \begin_inset space \thinspace{}
21570 \end_inset
21571
21572
21573 \begin_inset Flex Code
21574 status collapsed
21575
21576 \begin_layout Plain Layout
21577
21578 \change_inserted -712698321 1523633958
21579 1
21580 \change_unchanged
21581
21582 \end_layout
21583
21584 \end_inset
21585
21586 ] This causes macros that contain this inset to be protected with 
21587 \begin_inset Flex Code
21588 status collapsed
21589
21590 \begin_layout Plain Layout
21591
21592 \change_inserted -712698321 1523634038
21593
21594 \backslash
21595 cprotect
21596 \change_unchanged
21597
21598 \end_layout
21599
21600 \end_inset
21601
21602  (cf.
21603  package 
21604 \family sans
21605 cprotect
21606 \family default
21607 ) if necessary and thus allows (some) verbatim stuff in macros.
21608  Default is false.
21609 \end_layout
21610
21611 \begin_layout Description
21612
21613 \change_inserted -712698321 1555579651
21614 \begin_inset Flex Code
21615 status collapsed
21616
21617 \begin_layout Plain Layout
21618
21619 \change_inserted -712698321 1552395787
21620 NeedMBoxProtect
21621 \change_unchanged
21622
21623 \end_layout
21624
21625 \end_inset
21626
21627  [
21628 \begin_inset Flex Code
21629 status collapsed
21630
21631 \begin_layout Plain Layout
21632
21633 \change_inserted -712698321 1552395787
21634
21635 \emph on
21636 0
21637 \change_unchanged
21638
21639 \end_layout
21640
21641 \end_inset
21642
21643 ,
21644 \begin_inset space \thinspace{}
21645 \end_inset
21646
21647
21648 \begin_inset Flex Code
21649 status collapsed
21650
21651 \begin_layout Plain Layout
21652
21653 \change_inserted -712698321 1552395787
21654 1
21655 \change_unchanged
21656
21657 \end_layout
21658
21659 \end_inset
21660
21661 ] Whether specific commands in this inset (such as 
21662 \begin_inset Flex Code
21663 status collapsed
21664
21665 \begin_layout Plain Layout
21666
21667 \change_inserted -712698321 1552395787
21668
21669 \backslash
21670 cite
21671 \change_unchanged
21672
21673 \end_layout
21674
21675 \end_inset
21676
21677  and 
21678 \begin_inset Flex Code
21679 status collapsed
21680
21681 \begin_layout Plain Layout
21682
21683 \change_inserted -712698321 1552395787
21684
21685 \backslash
21686 ref
21687 \change_unchanged
21688
21689 \end_layout
21690
21691 \end_inset
21692
21693 ) should be protected in an 
21694 \begin_inset Flex Code
21695 status collapsed
21696
21697 \begin_layout Plain Layout
21698
21699 \change_inserted -712698321 1552395787
21700
21701 \backslash
21702 mbox
21703 \change_unchanged
21704
21705 \end_layout
21706
21707 \end_inset
21708
21709 .
21710  This is particularly needed for insets that draw on 
21711 \family sans
21712 ulem
21713 \family default
21714  or 
21715 \family sans
21716 soul
21717 \family default
21718  commands which parse their content in complex ways.
21719  Default is false.
21720 \end_layout
21721
21722 \begin_layout Description
21723
21724 \change_inserted -712698321 1555579742
21725 \begin_inset Flex Code
21726 status collapsed
21727
21728 \begin_layout Plain Layout
21729
21730 \change_inserted -712698321 1555579658
21731 NewlineCmd
21732 \change_unchanged
21733
21734 \end_layout
21735
21736 \end_inset
21737
21738  
21739 \begin_inset Flex Code
21740 status collapsed
21741
21742 \begin_layout Plain Layout
21743
21744 \change_inserted -712698321 1555579651
21745 [string]
21746 \change_unchanged
21747
21748 \end_layout
21749
21750 \end_inset
21751
21752  Option to define a different command (from the default 
21753 \begin_inset Flex Code
21754 status collapsed
21755
21756 \begin_layout Plain Layout
21757
21758 \change_inserted -712698321 1555579742
21759
21760 \backslash
21761
21762 \backslash
21763
21764 \change_unchanged
21765
21766 \end_layout
21767
21768 \end_inset
21769
21770 ) to be used for line breaks.
21771  The initial backslash must not be specified.
21772 \change_unchanged
21773
21774 \end_layout
21775
21776 \begin_layout Description
21777 \begin_inset Flex Code
21778 status collapsed
21779
21780 \begin_layout Plain Layout
21781 NoInsetLayout
21782 \end_layout
21783
21784 \end_inset
21785
21786  [
21787 \begin_inset Flex Code
21788 status collapsed
21789
21790 \begin_layout Plain Layout
21791 <layout>
21792 \end_layout
21793
21794 \end_inset
21795
21796 ] Deletes an existing 
21797 \begin_inset Flex Code
21798 status collapsed
21799
21800 \begin_layout Plain Layout
21801 InsetLayout
21802 \end_layout
21803
21804 \end_inset
21805
21806 .
21807 \end_layout
21808
21809 \begin_layout Description
21810 \begin_inset Flex Code
21811 status collapsed
21812
21813 \begin_layout Plain Layout
21814 ObsoletedBy
21815 \end_layout
21816
21817 \end_inset
21818
21819  [
21820 \begin_inset Flex Code
21821 status collapsed
21822
21823 \begin_layout Plain Layout
21824 <layout>
21825 \end_layout
21826
21827 \end_inset
21828
21829 ] Name of an 
21830 \begin_inset Flex Code
21831 status collapsed
21832
21833 \begin_layout Plain Layout
21834 InsetLayout
21835 \end_layout
21836
21837 \end_inset
21838
21839  that has replaced this 
21840 \begin_inset Flex Code
21841 status collapsed
21842
21843 \begin_layout Plain Layout
21844 InsetLayout
21845 \end_layout
21846
21847 \end_inset
21848
21849 .
21850  This is used to rename an 
21851 \begin_inset Flex Code
21852 status collapsed
21853
21854 \begin_layout Plain Layout
21855 InsetLayout
21856 \end_layout
21857
21858 \end_inset
21859
21860 , while keeping backward compatibility.
21861 \change_inserted -712698321 1559491850
21862
21863 \end_layout
21864
21865 \begin_layout Description
21866
21867 \change_inserted -712698321 1559492002
21868 \begin_inset Flex Code
21869 status collapsed
21870
21871 \begin_layout Plain Layout
21872
21873 \change_inserted -712698321 1559491854
21874 ParbreakIgnored
21875 \change_unchanged
21876
21877 \end_layout
21878
21879 \end_inset
21880
21881  [
21882 \begin_inset Flex Code
21883 status collapsed
21884
21885 \begin_layout Plain Layout
21886
21887 \change_inserted -712698321 1559491850
21888
21889 \emph on
21890 0
21891 \change_unchanged
21892
21893 \end_layout
21894
21895 \end_inset
21896
21897 ,
21898 \begin_inset space \thinspace{}
21899 \end_inset
21900
21901
21902 \begin_inset Flex Code
21903 status collapsed
21904
21905 \begin_layout Plain Layout
21906
21907 \change_inserted -712698321 1559491850
21908 1
21909 \change_unchanged
21910
21911 \end_layout
21912
21913 \end_inset
21914
21915 ] If this is set to 
21916 \begin_inset Flex Code
21917 status collapsed
21918
21919 \begin_layout Plain Layout
21920
21921 \change_inserted -712698321 1559491881
21922 1
21923 \change_unchanged
21924
21925 \end_layout
21926
21927 \end_inset
21928
21929 , paragraph breaks will be ignored in the output.
21930  This might be useful for insets where the content should be alignable on
21931  different lines only in the \SpecialChar LyX
21932  workarea, without any effect in the output.
21933 \change_unchanged
21934
21935 \end_layout
21936
21937 \begin_layout Description
21938 \begin_inset Flex Code
21939 status collapsed
21940
21941 \begin_layout Plain Layout
21942 ParbreakIsNewline
21943 \end_layout
21944
21945 \end_inset
21946
21947  [
21948 \begin_inset Flex Code
21949 status collapsed
21950
21951 \begin_layout Plain Layout
21952
21953 \emph on
21954 0
21955 \end_layout
21956
21957 \end_inset
21958
21959 ,
21960 \begin_inset space \thinspace{}
21961 \end_inset
21962
21963
21964 \begin_inset Flex Code
21965 status collapsed
21966
21967 \begin_layout Plain Layout
21968 1
21969 \end_layout
21970
21971 \end_inset
21972
21973 ] As with paragraph styles, see 
21974 \begin_inset CommandInset ref
21975 LatexCommand ref
21976 reference "subsec:Paragraph-Styles"
21977
21978 \end_inset
21979
21980 .
21981  Default is false.
21982 \end_layout
21983
21984 \begin_layout Description
21985 \begin_inset Flex Code
21986 status collapsed
21987
21988 \begin_layout Plain Layout
21989 PassThru
21990 \end_layout
21991
21992 \end_inset
21993
21994  [
21995 \begin_inset Flex Code
21996 status collapsed
21997
21998 \begin_layout Plain Layout
21999
22000 \emph on
22001 0
22002 \end_layout
22003
22004 \end_inset
22005
22006 ,
22007 \begin_inset space \thinspace{}
22008 \end_inset
22009
22010
22011 \begin_inset Flex Code
22012 status collapsed
22013
22014 \begin_layout Plain Layout
22015 1
22016 \end_layout
22017
22018 \end_inset
22019
22020 ] As with paragraph styles, see 
22021 \begin_inset CommandInset ref
22022 LatexCommand ref
22023 reference "subsec:Paragraph-Styles"
22024
22025 \end_inset
22026
22027 .
22028  Default is false.
22029 \end_layout
22030
22031 \begin_layout Description
22032 \begin_inset Flex Code
22033 status collapsed
22034
22035 \begin_layout Plain Layout
22036 Preamble
22037 \end_layout
22038
22039 \end_inset
22040
22041  As with paragraph styles, see 
22042 \begin_inset CommandInset ref
22043 LatexCommand ref
22044 reference "subsec:Paragraph-Styles"
22045
22046 \end_inset
22047
22048 .
22049 \end_layout
22050
22051 \begin_layout Description
22052 \begin_inset Flex Code
22053 status collapsed
22054
22055 \begin_layout Plain Layout
22056 RefPrefix
22057 \end_layout
22058
22059 \end_inset
22060
22061  [
22062 \begin_inset Flex Code
22063 status collapsed
22064
22065 \begin_layout Plain Layout
22066 string
22067 \end_layout
22068
22069 \end_inset
22070
22071 ] The prefix to use when creating labels referring to insets of this type.
22072  This allows the use of formatted references.
22073 \end_layout
22074
22075 \begin_layout Description
22076 \begin_inset Flex Code
22077 status collapsed
22078
22079 \begin_layout Plain Layout
22080 Requires
22081 \end_layout
22082
22083 \end_inset
22084
22085  [
22086 \begin_inset Flex Code
22087 status collapsed
22088
22089 \begin_layout Plain Layout
22090 string
22091 \end_layout
22092
22093 \end_inset
22094
22095 ] As with paragraph styles, see 
22096 \begin_inset CommandInset ref
22097 LatexCommand ref
22098 reference "subsec:Paragraph-Styles"
22099
22100 \end_inset
22101
22102 .
22103 \end_layout
22104
22105 \begin_layout Description
22106 \begin_inset Flex Code
22107 status collapsed
22108
22109 \begin_layout Plain Layout
22110 ResetArgs
22111 \end_layout
22112
22113 \end_inset
22114
22115  [
22116 \begin_inset Flex Code
22117 status collapsed
22118
22119 \begin_layout Plain Layout
22120
22121 \emph on
22122 0
22123 \end_layout
22124
22125 \end_inset
22126
22127 ,
22128 \begin_inset space \thinspace{}
22129 \end_inset
22130
22131
22132 \begin_inset Flex Code
22133 status collapsed
22134
22135 \begin_layout Plain Layout
22136 1
22137 \end_layout
22138
22139 \end_inset
22140
22141 ] Resets the \SpecialChar LaTeX
22142  arguments of this layout (as defined via the 
22143 \begin_inset Flex Code
22144 status collapsed
22145
22146 \begin_layout Plain Layout
22147 Argument
22148 \end_layout
22149
22150 \end_inset
22151
22152  tag).
22153  This is useful if you have copied a style via 
22154 \begin_inset Flex Code
22155 status collapsed
22156
22157 \begin_layout Plain Layout
22158 CopyStyle
22159 \end_layout
22160
22161 \end_inset
22162
22163 , but you do not want to inherit its (required and optional) arguments.
22164 \end_layout
22165
22166 \begin_layout Description
22167 \begin_inset Flex Code
22168 status collapsed
22169
22170 \begin_layout Plain Layout
22171 ResetsFont
22172 \end_layout
22173
22174 \end_inset
22175
22176  [
22177 \begin_inset Flex Code
22178 status collapsed
22179
22180 \begin_layout Plain Layout
22181
22182 \emph on
22183 0
22184 \end_layout
22185
22186 \end_inset
22187
22188 ,
22189 \begin_inset space \thinspace{}
22190 \end_inset
22191
22192
22193 \begin_inset Flex Code
22194 status collapsed
22195
22196 \begin_layout Plain Layout
22197 1
22198 \end_layout
22199
22200 \end_inset
22201
22202
22203 \change_inserted -712698321 1597733473
22204 If 
22205 \begin_inset Flex Code
22206 status collapsed
22207
22208 \begin_layout Plain Layout
22209
22210 \change_inserted -712698321 1597732178
22211 1
22212 \change_unchanged
22213
22214 \end_layout
22215
22216 \end_inset
22217
22218 , font changes are redone inside the respective inset (in the output) even
22219  if the inset itself is in the context of this font changes (e.
22220 \begin_inset space \thinspace{}
22221 \end_inset
22222
22223 g., 
22224 \begin_inset Flex Code
22225 status collapsed
22226
22227 \begin_layout Plain Layout
22228
22229 \change_inserted -712698321 1597733683
22230
22231 \backslash
22232 textbf{Sourrounding text 
22233 \backslash
22234 myinset{
22235 \backslash
22236 textbf{content}}\SpecialChar ldots
22237 }
22238 \change_unchanged
22239
22240 \end_layout
22241
22242 \end_inset
22243
22244  rather than 
22245 \begin_inset Flex Code
22246 status collapsed
22247
22248 \begin_layout Plain Layout
22249
22250 \change_inserted -712698321 1597733686
22251
22252 \backslash
22253 textbf{Sourrounding text 
22254 \backslash
22255 myinset{content}\SpecialChar ldots
22256 }
22257 \change_unchanged
22258
22259 \end_layout
22260
22261 \end_inset
22262
22263 .
22264  Setting this makes sense for commands that internally reset font settings
22265  (e.
22266 \begin_inset space \thinspace{}
22267 \end_inset
22268
22269 g., footnotes).
22270  Note that wrongly setting this might lead to unwanted result (e.
22271 \begin_inset space \thinspace{}
22272 \end_inset
22273
22274 g., with 
22275 \begin_inset Flex Code
22276 status collapsed
22277
22278 \begin_layout Plain Layout
22279
22280 \change_inserted -712698321 1597733688
22281
22282 \backslash
22283 emph{Sourrounding text 
22284 \backslash
22285 myinset{
22286 \backslash
22287 emph{content}}\SpecialChar ldots
22288 }
22289 \change_unchanged
22290
22291 \end_layout
22292
22293 \end_inset
22294
22295 , content is upright, as 
22296 \begin_inset Flex Code
22297 status collapsed
22298
22299 \begin_layout Plain Layout
22300
22301 \change_inserted -712698321 1597733278
22302
22303 \backslash
22304 emph
22305 \change_unchanged
22306
22307 \end_layout
22308
22309 \end_inset
22310
22311  toggles.
22312  
22313 \change_deleted -712698321 1597733283
22314 Whether this inset should use the font of its surrounding environment or
22315  uses its own.
22316  
22317 \change_unchanged
22318 Default is 
22319 \change_deleted -712698321 1597733290
22320 false
22321 \change_inserted -712698321 1597733290
22322
22323 \begin_inset Flex Code
22324 status collapsed
22325
22326 \begin_layout Plain Layout
22327
22328 \change_inserted -712698321 1597733292
22329 0
22330 \change_unchanged
22331
22332 \end_layout
22333
22334 \end_inset
22335
22336
22337 \change_unchanged
22338
22339 \change_deleted -712698321 1597733327
22340 use the font of the surrounding environment
22341 \change_inserted -712698321 1597733343
22342 font changes are not redone inside the inset
22343 \change_unchanged
22344 .
22345 \end_layout
22346
22347 \begin_layout Description
22348 \begin_inset Flex Code
22349 status collapsed
22350
22351 \begin_layout Plain Layout
22352 RightDelim
22353 \end_layout
22354
22355 \end_inset
22356
22357  [
22358 \begin_inset Flex Code
22359 status collapsed
22360
22361 \begin_layout Plain Layout
22362 string
22363 \end_layout
22364
22365 \end_inset
22366
22367 ] A string that is put at the end of the layout content.
22368  A line break in the output can be indicated by 
22369 \begin_inset Flex Code
22370 status collapsed
22371
22372 \begin_layout Plain Layout
22373 <br/>
22374 \end_layout
22375
22376 \end_inset
22377
22378 .
22379 \end_layout
22380
22381 \begin_layout Description
22382 \begin_inset Flex Code
22383 status collapsed
22384
22385 \begin_layout Plain Layout
22386 Spellcheck
22387 \end_layout
22388
22389 \end_inset
22390
22391  [
22392 \begin_inset Flex Code
22393 status collapsed
22394
22395 \begin_layout Plain Layout
22396 0
22397 \end_layout
22398
22399 \end_inset
22400
22401 ,
22402 \begin_inset space \thinspace{}
22403 \end_inset
22404
22405
22406 \begin_inset Flex Code
22407 status collapsed
22408
22409 \begin_layout Plain Layout
22410
22411 \emph on
22412 1
22413 \end_layout
22414
22415 \end_inset
22416
22417 ] Allow spell-checking the contents of this inset.
22418  Default is true.
22419 \end_layout
22420
22421 \begin_layout Subsection
22422 Counters
22423 \begin_inset CommandInset label
22424 LatexCommand label
22425 name "subsec:Counters"
22426
22427 \end_inset
22428
22429
22430 \end_layout
22431
22432 \begin_layout Standard
22433 It is necessary to define the counters (
22434 \begin_inset Flex Noun
22435 status collapsed
22436
22437 \begin_layout Plain Layout
22438 chapter
22439 \end_layout
22440
22441 \end_inset
22442
22443
22444 \begin_inset Flex Noun
22445 status collapsed
22446
22447 \begin_layout Plain Layout
22448 figure
22449 \end_layout
22450
22451 \end_inset
22452
22453 , \SpecialChar ldots
22454 ) in the text class itself.
22455  The standard counters are defined in the file 
22456 \begin_inset Flex Code
22457 status collapsed
22458
22459 \begin_layout Plain Layout
22460 stdcounters.inc
22461 \end_layout
22462
22463 \end_inset
22464
22465 , so you may have to do no more than add
22466 \end_layout
22467
22468 \begin_layout LyX-Code
22469 Input stdcounters.inc
22470 \end_layout
22471
22472 \begin_layout Standard
22473 to your layout file to get them to work.
22474  But if you want to define custom counters, then you can do so.
22475  The counter declaration must begin with:
22476 \end_layout
22477
22478 \begin_layout LyX-Code
22479 Counter CounterName
22480 \end_layout
22481
22482 \begin_layout Standard
22483 where of course `
22484 \begin_inset Flex Code
22485 status collapsed
22486
22487 \begin_layout Plain Layout
22488 CounterName
22489 \end_layout
22490
22491 \end_inset
22492
22493 ' is replaced by the name of the counter.
22494  And it must end with 
22495 \begin_inset Quotes eld
22496 \end_inset
22497
22498
22499 \begin_inset Flex Code
22500 status collapsed
22501
22502 \begin_layout Plain Layout
22503 End
22504 \end_layout
22505
22506 \end_inset
22507
22508
22509 \begin_inset Quotes erd
22510 \end_inset
22511
22512 .
22513  The following parameters can also be used:
22514 \end_layout
22515
22516 \begin_layout Description
22517 \begin_inset Flex Code
22518 status collapsed
22519
22520 \begin_layout Plain Layout
22521 InitialValue
22522 \end_layout
22523
22524 \end_inset
22525
22526  [
22527 \begin_inset Flex Code
22528 status collapsed
22529
22530 \begin_layout Plain Layout
22531 int=1
22532 \end_layout
22533
22534 \end_inset
22535
22536 ] Sets the initial value for the counter, to which it will be reset whenever
22537  that happens.
22538  Normally, one will want the default, 1.
22539 \end_layout
22540
22541 \begin_layout Description
22542 \begin_inset Flex Code
22543 status collapsed
22544
22545 \begin_layout Plain Layout
22546 LabelString
22547 \end_layout
22548
22549 \end_inset
22550
22551  [
22552 \begin_inset Flex Code
22553 status collapsed
22554
22555 \begin_layout Plain Layout
22556 string
22557 \end_layout
22558
22559 \end_inset
22560
22561 =
22562 \begin_inset Quotes erd
22563 \end_inset
22564
22565
22566 \begin_inset Quotes erd
22567 \end_inset
22568
22569 ] When defined, this string defines how the counter is displayed.
22570  Setting this value sets 
22571 \begin_inset Flex Code
22572 status collapsed
22573
22574 \begin_layout Plain Layout
22575 LabelStringAppendix
22576 \end_layout
22577
22578 \end_inset
22579
22580  to the same value.
22581  The following special constructs can be used in the string:
22582 \end_layout
22583
22584 \begin_deeper
22585 \begin_layout Itemize
22586 \begin_inset Flex Code
22587 status collapsed
22588
22589 \begin_layout Plain Layout
22590
22591 \backslash
22592 thecounter
22593 \end_layout
22594
22595 \end_inset
22596
22597  will be replaced by the expansion of the 
22598 \begin_inset Flex Code
22599 status collapsed
22600
22601 \begin_layout Plain Layout
22602 LabelString
22603 \end_layout
22604
22605 \end_inset
22606
22607  (or 
22608 \begin_inset Flex Code
22609 status collapsed
22610
22611 \begin_layout Plain Layout
22612 LabelStringAppendix
22613 \end_layout
22614
22615 \end_inset
22616
22617 ) of the counter 
22618 \begin_inset Flex Code
22619 status collapsed
22620
22621 \begin_layout Plain Layout
22622 counter
22623 \end_layout
22624
22625 \end_inset
22626
22627 .
22628  
22629 \end_layout
22630
22631 \begin_layout Itemize
22632 counter values can be expressed using \SpecialChar LaTeX
22633 -like macros
22634 \begin_inset Newline newline
22635 \end_inset
22636
22637
22638 \begin_inset Flex Code
22639 status collapsed
22640
22641 \begin_layout Plain Layout
22642
22643 \backslash
22644
22645 \emph on
22646 numbertype
22647 \emph default
22648 {
22649 \emph on
22650 counter
22651 \emph default
22652 }
22653 \end_layout
22654
22655 \end_inset
22656
22657 , where 
22658 \begin_inset Flex Code
22659 status collapsed
22660
22661 \begin_layout Plain Layout
22662
22663 \emph on
22664 numbertype
22665 \end_layout
22666
22667 \end_inset
22668
22669  can be:
22670 \begin_inset Foot
22671 status collapsed
22672
22673 \begin_layout Plain Layout
22674
22675 \family roman
22676 \series medium
22677 \shape up
22678 \size normal
22679 \emph off
22680 \bar no
22681 \noun off
22682 \color none
22683 Actually, the situation is a bit more complicated: any
22684 \family default
22685 \series default
22686 \shape default
22687 \emph default
22688 \bar default
22689  
22690 \size default
22691 \emph on
22692 \noun default
22693 \color inherit
22694 numbertype
22695 \family roman
22696 \series medium
22697 \shape up
22698 \size normal
22699 \emph off
22700 \bar no
22701 \noun off
22702  other than those described below will produce arabic numerals.
22703  It would not be surprising to see this change in the future.
22704 \end_layout
22705
22706 \end_inset
22707
22708  
22709 \begin_inset Flex Code
22710 status collapsed
22711
22712 \begin_layout Plain Layout
22713 arabic
22714 \end_layout
22715
22716 \end_inset
22717
22718 : 1, 2, 3,\SpecialChar ldots
22719
22720 \begin_inset Flex Code
22721 status collapsed
22722
22723 \begin_layout Plain Layout
22724 alph
22725 \end_layout
22726
22727 \end_inset
22728
22729  for lower-case letters: a, b, c, \SpecialChar ldots
22730
22731 \begin_inset Flex Code
22732 status collapsed
22733
22734 \begin_layout Plain Layout
22735 Alph
22736 \end_layout
22737
22738 \end_inset
22739
22740  for upper-case letters: A, B, C, \SpecialChar ldots
22741
22742 \begin_inset Flex Code
22743 status collapsed
22744
22745 \begin_layout Plain Layout
22746 roman
22747 \end_layout
22748
22749 \end_inset
22750
22751  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
22752
22753 \begin_inset Flex Code
22754 status collapsed
22755
22756 \begin_layout Plain Layout
22757 Roman
22758 \end_layout
22759
22760 \end_inset
22761
22762  for upper-case roman numerals: I, II, III\SpecialChar ldots
22763
22764 \begin_inset Flex Code
22765 status collapsed
22766
22767 \begin_layout Plain Layout
22768 hebrew
22769 \end_layout
22770
22771 \end_inset
22772
22773  for hebrew numerals.
22774 \end_layout
22775
22776 \end_deeper
22777 \begin_layout Standard
22778 If LabelString is not defined, a default value is constructed as follows:
22779  if the counter has a 
22780 \change_deleted 731793113 1604355218
22781 master
22782 \change_inserted 731793113 1604355221
22783 parent
22784 \change_unchanged
22785  counter 
22786 \begin_inset Flex Code
22787 status collapsed
22788
22789 \begin_layout Plain Layout
22790
22791 \change_deleted 731793113 1604355223
22792 master
22793 \change_inserted 731793113 1604355226
22794 parent
22795 \change_unchanged
22796
22797 \end_layout
22798
22799 \end_inset
22800
22801  (defined via 
22802 \begin_inset Flex Code
22803 status collapsed
22804
22805 \begin_layout Plain Layout
22806 Within
22807 \end_layout
22808
22809 \end_inset
22810
22811 ), the string
22812 \begin_inset Newline newline
22813 \end_inset
22814
22815
22816 \begin_inset Flex Code
22817 status collapsed
22818
22819 \begin_layout Plain Layout
22820
22821 \backslash
22822 the
22823 \change_inserted 731793113 1604355228
22824 parent
22825 \change_deleted 731793113 1604355230
22826 master
22827 \change_unchanged
22828 .
22829 \backslash
22830 arabic{counter}
22831 \end_layout
22832
22833 \end_inset
22834
22835  is used; otherwise the string 
22836 \begin_inset Flex Code
22837 status collapsed
22838
22839 \begin_layout Plain Layout
22840
22841 \backslash
22842 arabic{counter}
22843 \end_layout
22844
22845 \end_inset
22846
22847  is used.
22848 \end_layout
22849
22850 \begin_layout Description
22851 \begin_inset Flex Code
22852 status collapsed
22853
22854 \begin_layout Plain Layout
22855 LabelStringAppendix
22856 \end_layout
22857
22858 \end_inset
22859
22860  [
22861 \begin_inset Flex Code
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865 string
22866 \end_layout
22867
22868 \end_inset
22869
22870 =
22871 \begin_inset Quotes erd
22872 \end_inset
22873
22874
22875 \begin_inset Quotes erd
22876 \end_inset
22877
22878 ] Same as 
22879 \begin_inset Flex Code
22880 status collapsed
22881
22882 \begin_layout Plain Layout
22883 LabelString
22884 \end_layout
22885
22886 \end_inset
22887
22888 , but for use in the Appendix.
22889 \end_layout
22890
22891 \begin_layout Description
22892 \begin_inset Flex Code
22893 status collapsed
22894
22895 \begin_layout Plain Layout
22896 PrettyFormat
22897 \end_layout
22898
22899 \end_inset
22900
22901  [
22902 \begin_inset Flex Code
22903 status collapsed
22904
22905 \begin_layout Plain Layout
22906 string
22907 \end_layout
22908
22909 \end_inset
22910
22911 =
22912 \begin_inset Quotes erd
22913 \end_inset
22914
22915
22916 \begin_inset Quotes erd
22917 \end_inset
22918
22919 ] A format for use with formatted references to this counter.
22920  For example, one might want to have references to section numbers appear
22921  as 
22922 \begin_inset Quotes eld
22923 \end_inset
22924
22925 Section 2.4
22926 \begin_inset Quotes erd
22927 \end_inset
22928
22929 .
22930  The string should contain 
22931 \begin_inset Quotes eld
22932 \end_inset
22933
22934 ##
22935 \begin_inset Quotes erd
22936 \end_inset
22937
22938 .
22939  This will be replaced by the counter number itself.
22940  So, for sections, it would be: Section ##.
22941 \end_layout
22942
22943 \begin_layout Description
22944 \begin_inset Flex Code
22945 status collapsed
22946
22947 \begin_layout Plain Layout
22948 Within
22949 \end_layout
22950
22951 \end_inset
22952
22953  [
22954 \begin_inset Flex Code
22955 status collapsed
22956
22957 \begin_layout Plain Layout
22958 string
22959 \end_layout
22960
22961 \end_inset
22962
22963 =
22964 \begin_inset Quotes erd
22965 \end_inset
22966
22967
22968 \begin_inset Quotes erd
22969 \end_inset
22970
22971 ] If this is set to the name of another counter, the present counter will
22972  be reset every time the other one is increased.
22973  For example, 
22974 \begin_inset Flex Code
22975 status collapsed
22976
22977 \begin_layout Plain Layout
22978 subsection
22979 \end_layout
22980
22981 \end_inset
22982
22983  is numbered inside 
22984 \begin_inset Flex Code
22985 status collapsed
22986
22987 \begin_layout Plain Layout
22988 section
22989 \end_layout
22990
22991 \end_inset
22992
22993 .
22994 \end_layout
22995
22996 \begin_layout Subsection
22997 Font description
22998 \begin_inset CommandInset label
22999 LatexCommand label
23000 name "subsec:Font-description"
23001
23002 \end_inset
23003
23004
23005 \end_layout
23006
23007 \begin_layout Standard
23008 A font description looks like this:
23009 \end_layout
23010
23011 \begin_layout LyX-Code
23012 Font 
23013 \family roman
23014 \emph on
23015 or
23016 \family default
23017 \emph default
23018  LabelFont
23019 \emph on
23020  
23021 \family roman
23022 or
23023 \family default
23024 \emph default
23025  DefaultFont
23026 \end_layout
23027
23028 \begin_layout LyX-Code
23029  ...
23030 \end_layout
23031
23032 \begin_layout LyX-Code
23033 EndFont
23034 \end_layout
23035
23036 \begin_layout Standard
23037 The following commands are available:
23038 \end_layout
23039
23040 \begin_layout Description
23041 \begin_inset Flex Code
23042 status collapsed
23043
23044 \begin_layout Plain Layout
23045 Color
23046 \end_layout
23047
23048 \end_inset
23049
23050  [
23051 \begin_inset Flex Code
23052 status collapsed
23053
23054 \begin_layout Plain Layout
23055
23056 \emph on
23057 none
23058 \end_layout
23059
23060 \end_inset
23061
23062
23063 \begin_inset Flex Code
23064 status collapsed
23065
23066 \begin_layout Plain Layout
23067 black
23068 \end_layout
23069
23070 \end_inset
23071
23072
23073 \begin_inset Flex Code
23074 status collapsed
23075
23076 \begin_layout Plain Layout
23077 white
23078 \end_layout
23079
23080 \end_inset
23081
23082
23083 \begin_inset Flex Code
23084 status collapsed
23085
23086 \begin_layout Plain Layout
23087 red
23088 \end_layout
23089
23090 \end_inset
23091
23092
23093 \begin_inset Flex Code
23094 status collapsed
23095
23096 \begin_layout Plain Layout
23097 green
23098 \end_layout
23099
23100 \end_inset
23101
23102
23103 \begin_inset Flex Code
23104 status collapsed
23105
23106 \begin_layout Plain Layout
23107 blue
23108 \end_layout
23109
23110 \end_inset
23111
23112
23113 \begin_inset Flex Code
23114 status collapsed
23115
23116 \begin_layout Plain Layout
23117 cyan
23118 \end_layout
23119
23120 \end_inset
23121
23122
23123 \begin_inset Flex Code
23124 status collapsed
23125
23126 \begin_layout Plain Layout
23127 magenta
23128 \end_layout
23129
23130 \end_inset
23131
23132
23133 \begin_inset Flex Code
23134 status collapsed
23135
23136 \begin_layout Plain Layout
23137 yellow
23138 \end_layout
23139
23140 \end_inset
23141
23142
23143 \begin_inset Flex Code
23144 status collapsed
23145
23146 \begin_layout Plain Layout
23147 brown
23148 \end_layout
23149
23150 \end_inset
23151
23152
23153 \begin_inset Flex Code
23154 status collapsed
23155
23156 \begin_layout Plain Layout
23157 darkgray
23158 \end_layout
23159
23160 \end_inset
23161
23162
23163 \begin_inset Flex Code
23164 status collapsed
23165
23166 \begin_layout Plain Layout
23167 gray
23168 \end_layout
23169
23170 \end_inset
23171
23172
23173 \begin_inset Flex Code
23174 status collapsed
23175
23176 \begin_layout Plain Layout
23177 lightgray
23178 \end_layout
23179
23180 \end_inset
23181
23182
23183 \begin_inset Flex Code
23184 status collapsed
23185
23186 \begin_layout Plain Layout
23187 lime
23188 \end_layout
23189
23190 \end_inset
23191
23192
23193 \begin_inset Flex Code
23194 status collapsed
23195
23196 \begin_layout Plain Layout
23197 orange
23198 \end_layout
23199
23200 \end_inset
23201
23202
23203 \begin_inset Flex Code
23204 status collapsed
23205
23206 \begin_layout Plain Layout
23207 olive
23208 \end_layout
23209
23210 \end_inset
23211
23212
23213 \begin_inset Flex Code
23214 status collapsed
23215
23216 \begin_layout Plain Layout
23217 pink
23218 \end_layout
23219
23220 \end_inset
23221
23222
23223 \begin_inset Flex Code
23224 status collapsed
23225
23226 \begin_layout Plain Layout
23227 purple
23228 \end_layout
23229
23230 \end_inset
23231
23232
23233 \begin_inset Flex Code
23234 status collapsed
23235
23236 \begin_layout Plain Layout
23237 teal
23238 \end_layout
23239
23240 \end_inset
23241
23242
23243 \begin_inset Flex Code
23244 status collapsed
23245
23246 \begin_layout Plain Layout
23247 violet
23248 \end_layout
23249
23250 \end_inset
23251
23252 ]
23253 \end_layout
23254
23255 \begin_layout Description
23256 \begin_inset Flex Code
23257 status collapsed
23258
23259 \begin_layout Plain Layout
23260 Family
23261 \end_layout
23262
23263 \end_inset
23264
23265  [
23266 \begin_inset Flex Code
23267 status collapsed
23268
23269 \begin_layout Plain Layout
23270
23271 \emph on
23272 Roman
23273 \end_layout
23274
23275 \end_inset
23276
23277
23278 \begin_inset Flex Code
23279 status collapsed
23280
23281 \begin_layout Plain Layout
23282 Sans
23283 \end_layout
23284
23285 \end_inset
23286
23287
23288 \begin_inset Flex Code
23289 status collapsed
23290
23291 \begin_layout Plain Layout
23292 Typewriter
23293 \end_layout
23294
23295 \end_inset
23296
23297 ]
23298 \end_layout
23299
23300 \begin_layout Description
23301 \begin_inset Flex Code
23302 status collapsed
23303
23304 \begin_layout Plain Layout
23305 Misc
23306 \end_layout
23307
23308 \end_inset
23309
23310  [
23311 \begin_inset Flex Code
23312 status collapsed
23313
23314 \begin_layout Plain Layout
23315 string
23316 \end_layout
23317
23318 \end_inset
23319
23320 ] Valid arguments are: 
23321 \begin_inset Flex Code
23322 status collapsed
23323
23324 \begin_layout Plain Layout
23325 emph
23326 \end_layout
23327
23328 \end_inset
23329
23330
23331 \begin_inset Flex Code
23332 status collapsed
23333
23334 \begin_layout Plain Layout
23335 noun
23336 \end_layout
23337
23338 \end_inset
23339
23340
23341 \begin_inset Flex Code
23342 status collapsed
23343
23344 \begin_layout Plain Layout
23345 strikeout
23346 \end_layout
23347
23348 \end_inset
23349
23350
23351 \begin_inset Flex Code
23352 status collapsed
23353
23354 \begin_layout Plain Layout
23355 underbar
23356 \end_layout
23357
23358 \end_inset
23359
23360
23361 \begin_inset Flex Code
23362 status collapsed
23363
23364 \begin_layout Plain Layout
23365 uuline
23366 \end_layout
23367
23368 \end_inset
23369
23370
23371 \begin_inset Flex Code
23372 status collapsed
23373
23374 \begin_layout Plain Layout
23375 uwave
23376 \end_layout
23377
23378 \end_inset
23379
23380
23381 \begin_inset Flex Code
23382 status collapsed
23383
23384 \begin_layout Plain Layout
23385 no_emph
23386 \end_layout
23387
23388 \end_inset
23389
23390
23391 \begin_inset Flex Code
23392 status collapsed
23393
23394 \begin_layout Plain Layout
23395 no_noun
23396 \end_layout
23397
23398 \end_inset
23399
23400
23401 \begin_inset Flex Code
23402 status collapsed
23403
23404 \begin_layout Plain Layout
23405 no_strikeout
23406 \end_layout
23407
23408 \end_inset
23409
23410
23411 \begin_inset Flex Code
23412 status collapsed
23413
23414 \begin_layout Plain Layout
23415 no_bar
23416 \end_layout
23417
23418 \end_inset
23419
23420
23421 \begin_inset Flex Code
23422 status collapsed
23423
23424 \begin_layout Plain Layout
23425 no_uuline
23426 \end_layout
23427
23428 \end_inset
23429
23430  and 
23431 \begin_inset Flex Code
23432 status collapsed
23433
23434 \begin_layout Plain Layout
23435 no_uwave
23436 \end_layout
23437
23438 \end_inset
23439
23440 .
23441  Each of these turns on or off the corresponding attribute.
23442  For example, 
23443 \begin_inset Flex Code
23444 status collapsed
23445
23446 \begin_layout Plain Layout
23447 emph
23448 \end_layout
23449
23450 \end_inset
23451
23452  turns on emphasis, and 
23453 \begin_inset Flex Code
23454 status collapsed
23455
23456 \begin_layout Plain Layout
23457 no_emph
23458 \end_layout
23459
23460 \end_inset
23461
23462  turns it off.
23463  
23464 \begin_inset Newline newline
23465 \end_inset
23466
23467 If the latter seems puzzling, remember that the font settings for the present
23468  context are generally inherited from the surrounding context.
23469  So 
23470 \begin_inset Flex Code
23471 status collapsed
23472
23473 \begin_layout Plain Layout
23474 no_emph
23475 \end_layout
23476
23477 \end_inset
23478
23479  would turn off the emphasis that was anyway in effect, say, in a theorem
23480  environment.
23481 \end_layout
23482
23483 \begin_layout Description
23484 \begin_inset Flex Code
23485 status collapsed
23486
23487 \begin_layout Plain Layout
23488 Series
23489 \end_layout
23490
23491 \end_inset
23492
23493  [
23494 \begin_inset Flex Code
23495 status collapsed
23496
23497 \begin_layout Plain Layout
23498
23499 \emph on
23500 Medium
23501 \end_layout
23502
23503 \end_inset
23504
23505
23506 \begin_inset Flex Code
23507 status collapsed
23508
23509 \begin_layout Plain Layout
23510 Bold
23511 \end_layout
23512
23513 \end_inset
23514
23515
23516 \end_layout
23517
23518 \begin_layout Description
23519 \begin_inset Flex Code
23520 status collapsed
23521
23522 \begin_layout Plain Layout
23523 Shape
23524 \end_layout
23525
23526 \end_inset
23527
23528  [
23529 \begin_inset Flex Code
23530 status collapsed
23531
23532 \begin_layout Plain Layout
23533
23534 \emph on
23535 Up
23536 \end_layout
23537
23538 \end_inset
23539
23540
23541 \begin_inset Flex Code
23542 status collapsed
23543
23544 \begin_layout Plain Layout
23545 Italic
23546 \end_layout
23547
23548 \end_inset
23549
23550
23551 \begin_inset Flex Code
23552 status collapsed
23553
23554 \begin_layout Plain Layout
23555 SmallCaps
23556 \end_layout
23557
23558 \end_inset
23559
23560
23561 \begin_inset Flex Code
23562 status collapsed
23563
23564 \begin_layout Plain Layout
23565 Slanted
23566 \end_layout
23567
23568 \end_inset
23569
23570
23571 \end_layout
23572
23573 \begin_layout Description
23574 \begin_inset Flex Code
23575 status collapsed
23576
23577 \begin_layout Plain Layout
23578 Size
23579 \end_layout
23580
23581 \end_inset
23582
23583  [
23584 \begin_inset Flex Code
23585 status collapsed
23586
23587 \begin_layout Plain Layout
23588 tiny
23589 \end_layout
23590
23591 \end_inset
23592
23593
23594 \begin_inset Flex Code
23595 status collapsed
23596
23597 \begin_layout Plain Layout
23598 small
23599 \end_layout
23600
23601 \end_inset
23602
23603
23604 \begin_inset Flex Code
23605 status collapsed
23606
23607 \begin_layout Plain Layout
23608
23609 \emph on
23610 normal
23611 \end_layout
23612
23613 \end_inset
23614
23615
23616 \begin_inset Flex Code
23617 status collapsed
23618
23619 \begin_layout Plain Layout
23620 large
23621 \end_layout
23622
23623 \end_inset
23624
23625
23626 \begin_inset Flex Code
23627 status collapsed
23628
23629 \begin_layout Plain Layout
23630 larger
23631 \end_layout
23632
23633 \end_inset
23634
23635
23636 \begin_inset Flex Code
23637 status collapsed
23638
23639 \begin_layout Plain Layout
23640 largest
23641 \end_layout
23642
23643 \end_inset
23644
23645
23646 \begin_inset Flex Code
23647 status collapsed
23648
23649 \begin_layout Plain Layout
23650 huge
23651 \end_layout
23652
23653 \end_inset
23654
23655
23656 \begin_inset Flex Code
23657 status collapsed
23658
23659 \begin_layout Plain Layout
23660 giant
23661 \end_layout
23662
23663 \end_inset
23664
23665 ]
23666 \end_layout
23667
23668 \begin_layout Subsection
23669 \begin_inset CommandInset label
23670 LatexCommand label
23671 name "subsec:Citation-engine-description"
23672
23673 \end_inset
23674
23675 Cite engine description
23676 \end_layout
23677
23678 \begin_layout Standard
23679 The 
23680 \begin_inset Flex Code
23681 status collapsed
23682
23683 \begin_layout Plain Layout
23684 CiteEngine
23685 \end_layout
23686
23687 \end_inset
23688
23689  blocks, as used mainly in cite engine files (see 
23690 \begin_inset CommandInset ref
23691 LatexCommand ref
23692 reference "subsec:Cite-Engine-Files"
23693 plural "false"
23694 caps "false"
23695 noprefix "false"
23696
23697 \end_inset
23698
23699 ), define the citation commands provided by a specific 
23700 \begin_inset Quotes eld
23701 \end_inset
23702
23703 cite engine
23704 \begin_inset Quotes erd
23705 \end_inset
23706
23707 .
23708  A cite engine, in \SpecialChar LyX
23709  terms, is way specific way to format citations, using
23710  numbers, author names and/or years.
23711  Currently, \SpecialChar LyX
23712  supports three such engine types, namely:
23713 \end_layout
23714
23715 \begin_layout Enumerate
23716 \begin_inset Flex Code
23717 status collapsed
23718
23719 \begin_layout Plain Layout
23720 default
23721 \end_layout
23722
23723 \end_inset
23724
23725 : the default Bib\SpecialChar TeX
23726  way to format citations, a simple numeric style (e.
23727 \begin_inset space \thinspace{}
23728 \end_inset
23729
23730 g., 
23731 \begin_inset Quotes eld
23732 \end_inset
23733
23734 [1]
23735 \begin_inset Quotes erd
23736 \end_inset
23737
23738 )
23739 \end_layout
23740
23741 \begin_layout Enumerate
23742 \begin_inset Flex Code
23743 status collapsed
23744
23745 \begin_layout Plain Layout
23746 authoryear
23747 \end_layout
23748
23749 \end_inset
23750
23751 : Harvard-styled citations using author names and publication year (e.
23752 \begin_inset space \thinspace{}
23753 \end_inset
23754
23755 g., 
23756 \begin_inset Quotes eld
23757 \end_inset
23758
23759 Smith and Miller (2017b)
23760 \begin_inset Quotes erd
23761 \end_inset
23762
23763 )
23764 \end_layout
23765
23766 \begin_layout Enumerate
23767 \begin_inset Flex Code
23768 status collapsed
23769
23770 \begin_layout Plain Layout
23771 numerical
23772 \end_layout
23773
23774 \end_inset
23775
23776 : extended numerical citations that also allow for author or title next
23777  to the number (e.
23778 \begin_inset space \thinspace{}
23779 \end_inset
23780
23781 g., 
23782 \begin_inset Quotes eld
23783 \end_inset
23784
23785 Smith and Miller [1]
23786 \begin_inset Quotes erd
23787 \end_inset
23788
23789 )
23790 \end_layout
23791
23792 \begin_layout Standard
23793 \begin_inset Flex Code
23794 status collapsed
23795
23796 \begin_layout Plain Layout
23797 CiteEngine
23798 \end_layout
23799
23800 \end_inset
23801
23802  blocks look like this:
23803 \end_layout
23804
23805 \begin_layout LyX-Code
23806 CiteEngine default
23807 \end_layout
23808
23809 \begin_layout LyX-Code
23810  cite
23811 \end_layout
23812
23813 \begin_layout LyX-Code
23814  Citep*[][]
23815 \end_layout
23816
23817 \begin_layout LyX-Code
23818  citeyearpar[][]=parencite*
23819 \end_layout
23820
23821 \begin_layout LyX-Code
23822  ...
23823 \end_layout
23824
23825 \begin_layout LyX-Code
23826 End
23827 \end_layout
23828
23829 \begin_layout Standard
23830 The tag following 
23831 \begin_inset Flex Code
23832 status collapsed
23833
23834 \begin_layout Plain Layout
23835 CiteEngine
23836 \end_layout
23837
23838 \end_inset
23839
23840  denotes the engine.
23841  The individual lines respectively define a cite command or cite command
23842  paradigm supported by this engine.
23843  The line can be as simple as a cite command that is used both to name the
23844  respective \SpecialChar LyX
23845  command and the \SpecialChar LaTeX
23846  output or more complex in order to differentiate
23847  things.
23848  The full syntax is:
23849 \end_layout
23850
23851 \begin_layout LyX-Code
23852 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23853 \end_layout
23854
23855 \begin_layout Itemize
23856 \begin_inset Flex Code
23857 status collapsed
23858
23859 \begin_layout Plain Layout
23860 LyXName
23861 \end_layout
23862
23863 \end_inset
23864
23865 : The name as used in the 
23866 \begin_inset Flex Code
23867 status collapsed
23868
23869 \begin_layout Plain Layout
23870 *.lyx
23871 \end_layout
23872
23873 \end_inset
23874
23875  file.
23876 \end_layout
23877
23878 \begin_deeper
23879 \begin_layout Standard
23880 For portability reasons, we try to use the same name for same-formatted
23881  commands in different cite packages (thus many names stem from natbib,
23882  and thus we need to differentiate a 
23883 \begin_inset Flex Code
23884 status collapsed
23885
23886 \begin_layout Plain Layout
23887 latexcmd
23888 \end_layout
23889
23890 \end_inset
23891
23892  sometimes, if the \SpecialChar LaTeX
23893  command names differ).
23894 \end_layout
23895
23896 \end_deeper
23897 \begin_layout Itemize
23898 \begin_inset Flex Code
23899 status collapsed
23900
23901 \begin_layout Plain Layout
23902 alias
23903 \end_layout
23904
23905 \end_inset
23906
23907 : a (comma-separated) list of commands that fall back to the given 
23908 \begin_inset Flex Code
23909 status collapsed
23910
23911 \begin_layout Plain Layout
23912 LyXName
23913 \end_layout
23914
23915 \end_inset
23916
23917  in the current engine.
23918  This eases the switch of citation packages and engines.
23919  The 
23920 \begin_inset Flex Code
23921 status collapsed
23922
23923 \begin_layout Plain Layout
23924 alias
23925 \end_layout
23926
23927 \end_inset
23928
23929  can be compared to 
23930 \begin_inset Flex Code
23931 status collapsed
23932
23933 \begin_layout Plain Layout
23934 ObsoletedBy
23935 \end_layout
23936
23937 \end_inset
23938
23939  in layout definitions.
23940 \end_layout
23941
23942 \begin_layout Itemize
23943 \begin_inset Flex Code
23944 status collapsed
23945
23946 \begin_layout Plain Layout
23947 latexcmd
23948 \end_layout
23949
23950 \end_inset
23951
23952 : The actual \SpecialChar LaTeX
23953  command that is output.
23954  
23955 \end_layout
23956
23957 \begin_layout Standard
23958 \begin_inset Flex Code
23959 status collapsed
23960
23961 \begin_layout Plain Layout
23962 Alias
23963 \end_layout
23964
23965 \end_inset
23966
23967  and 
23968 \begin_inset Flex Code
23969 status collapsed
23970
23971 \begin_layout Plain Layout
23972 latexcmd
23973 \end_layout
23974
23975 \end_inset
23976
23977  are optional.
23978  If no 
23979 \begin_inset Flex Code
23980 status collapsed
23981
23982 \begin_layout Plain Layout
23983 latexcmd
23984 \end_layout
23985
23986 \end_inset
23987
23988  is given, the 
23989 \begin_inset Flex Code
23990 status collapsed
23991
23992 \begin_layout Plain Layout
23993 LyXName
23994 \end_layout
23995
23996 \end_inset
23997
23998  will be output to \SpecialChar LaTeX
23999 .
24000 \end_layout
24001
24002 \begin_layout Standard
24003 Note further:
24004 \end_layout
24005
24006 \begin_layout Itemize
24007 Capitalization indicates that the command also has a capitalized form (
24008 \begin_inset Flex Code
24009 status collapsed
24010
24011 \begin_layout Plain Layout
24012
24013 \backslash
24014 Latexcmd
24015 \end_layout
24016
24017 \end_inset
24018
24019  vs.
24020  
24021 \begin_inset Flex Code
24022 status collapsed
24023
24024 \begin_layout Plain Layout
24025
24026 \backslash
24027 latexcmd
24028 \end_layout
24029
24030 \end_inset
24031
24032 ).
24033  These usually enforce up-casing of name prefixes (
24034 \emph on
24035 von Goethe
24036 \emph default
24037  
24038 \begin_inset Formula $\Rightarrow$
24039 \end_inset
24040
24041  
24042 \emph on
24043 Von Goethe
24044 \emph default
24045 ).
24046 \end_layout
24047
24048 \begin_layout Itemize
24049 Brackets 
24050 \begin_inset Flex Code
24051 status collapsed
24052
24053 \begin_layout Plain Layout
24054 []
24055 \end_layout
24056
24057 \end_inset
24058
24059  indicate the number of optional arguments (there can be 0–2).
24060 \end_layout
24061
24062 \begin_layout Itemize
24063 A star 
24064 \begin_inset Flex Code
24065 status collapsed
24066
24067 \begin_layout Plain Layout
24068 *
24069 \end_layout
24070
24071 \end_inset
24072
24073  indicates there is a starred version of the command (
24074 \begin_inset Flex Code
24075 status collapsed
24076
24077 \begin_layout Plain Layout
24078
24079 \backslash
24080 latexcmd*
24081 \end_layout
24082
24083 \end_inset
24084
24085  vs.
24086  
24087 \begin_inset Flex Code
24088 status collapsed
24089
24090 \begin_layout Plain Layout
24091
24092 \backslash
24093 latexcmd
24094 \end_layout
24095
24096 \end_inset
24097
24098 ).
24099  
24100 \end_layout
24101
24102 \begin_deeper
24103 \begin_layout Standard
24104 By default, the starred version means: Output all authors even if it should
24105  be shortened with 
24106 \begin_inset Quotes eld
24107 \end_inset
24108
24109 et al.
24110 \begin_inset Quotes erd
24111 \end_inset
24112
24113  due to the 
24114 \begin_inset Flex Code
24115 status collapsed
24116
24117 \begin_layout Plain Layout
24118 MaxCiteNames
24119 \end_layout
24120
24121 \end_inset
24122
24123  threshold.
24124 \end_layout
24125
24126 \begin_layout Standard
24127 If the star has a different meaning for a given command, it can be specified
24128  in angle brackets: 
24129 \begin_inset Flex Code
24130 status collapsed
24131
24132 \begin_layout Plain Layout
24133 <!_stardesc!_stardesctooltip>
24134 \end_layout
24135
24136 \end_inset
24137
24138 .
24139  Maximal two translatable macro keywords, marked by the prefix 
24140 \begin_inset Flex Code
24141 status collapsed
24142
24143 \begin_layout Plain Layout
24144 !_
24145 \end_layout
24146
24147 \end_inset
24148
24149 , can be given.
24150  The first points to the string that replaces the 
24151 \begin_inset Quotes eld
24152 \end_inset
24153
24154 Full aut&hor list
24155 \begin_inset Quotes erd
24156 \end_inset
24157
24158  checkbox label in the citation dialog, the second one to an optional tool
24159  tip for this checkbox.
24160  
24161 \end_layout
24162
24163 \begin_layout Standard
24164 Note that these two macros have to be defined in a 
24165 \begin_inset Flex Code
24166 status collapsed
24167
24168 \begin_layout Plain Layout
24169 CiteFormat
24170 \end_layout
24171
24172 \end_inset
24173
24174  (see next section), dropping the 
24175 \begin_inset Flex Code
24176 status collapsed
24177
24178 \begin_layout Plain Layout
24179 !
24180 \end_layout
24181
24182 \end_inset
24183
24184  from the prefix, like this: 
24185 \end_layout
24186
24187 \begin_layout LyX-Code
24188 _stardesc Sta&rred command label
24189 \end_layout
24190
24191 \begin_layout LyX-Code
24192 _stardesctooltip Tooltip for the starred command checkbox.
24193 \end_layout
24194
24195 \end_deeper
24196 \begin_layout Itemize
24197 A dollar sign 
24198 \begin_inset Flex Code
24199 status collapsed
24200
24201 \begin_layout Plain Layout
24202 $
24203 \end_layout
24204
24205 \end_inset
24206
24207  indicates that this command features 
24208 \begin_inset Quotes eld
24209 \end_inset
24210
24211 qualified citation lists
24212 \begin_inset Quotes erd
24213 \end_inset
24214
24215 .
24216  This is a 
24217 \family sans
24218 Biblatex
24219 \family default
24220 -specific feature for multi-reference citations where an individual pre-
24221  and postnote can be given to each reference in the list.
24222  Please refer to the 
24223 \family sans
24224 Biblatex
24225 \family default
24226  manual for details.
24227 \change_inserted -712698321 1526898670
24228
24229 \end_layout
24230
24231 \begin_layout Standard
24232
24233 \change_inserted -712698321 1526899524
24234 If you want to add a cite command to a cite engine (e.
24235 \begin_inset space \thinspace{}
24236 \end_inset
24237
24238 g., add a specific command provided by a class), you can use 
24239 \begin_inset Flex Code
24240 status collapsed
24241
24242 \begin_layout Plain Layout
24243
24244 \change_inserted -712698321 1526898768
24245 AddToCiteEngine <engine type> \SpecialChar ldots
24246  End
24247 \change_unchanged
24248
24249 \end_layout
24250
24251 \end_inset
24252
24253 .
24254  Note that only cite commands that do not exist yet are added.
24255 \change_unchanged
24256
24257 \end_layout
24258
24259 \begin_layout Subsection
24260 \begin_inset CommandInset label
24261 LatexCommand label
24262 name "subsec:Citation-format-description"
24263
24264 \end_inset
24265
24266 Cite format description
24267 \end_layout
24268
24269 \begin_layout Standard
24270 The 
24271 \begin_inset Flex Code
24272 status collapsed
24273
24274 \begin_layout Plain Layout
24275 CiteFormat
24276 \end_layout
24277
24278 \end_inset
24279
24280  blocks are used to describe how bibliographic information should be displayed,
24281  both within \SpecialChar LyX
24282  itself (in the citation dialog and in tooltips, for example)
24283  and in XHTML output.
24284  Such a block might look like this:
24285 \end_layout
24286
24287 \begin_layout LyX-Code
24288 CiteFormat
24289 \end_layout
24290
24291 \begin_layout LyX-Code
24292  article ...
24293 \end_layout
24294
24295 \begin_layout LyX-Code
24296  book ...
24297 \end_layout
24298
24299 \begin_layout LyX-Code
24300 End
24301 \end_layout
24302
24303 \begin_layout Standard
24304 or
24305 \end_layout
24306
24307 \begin_layout LyX-Code
24308 CiteFormat
24309 \end_layout
24310
24311 \begin_layout LyX-Code
24312  cite ...
24313 \end_layout
24314
24315 \begin_layout LyX-Code
24316  citet*[][] ...
24317 \end_layout
24318
24319 \begin_layout LyX-Code
24320 End
24321 \end_layout
24322
24323 \begin_layout Standard
24324 In the first case, the individual lines define how the bibliographic information
24325  associated with an article or book, respectively, is to be displayed, and
24326  such a definition can be given for any 
24327 \begin_inset Quotes els
24328 \end_inset
24329
24330 entry type
24331 \begin_inset Quotes ers
24332 \end_inset
24333
24334  that might be present in a Bib\SpecialChar TeX
24335  file.
24336  \SpecialChar LyX
24337  defines a default format in the source code that will be used if no specific
24338  definition has been given.
24339  \SpecialChar LyX
24340  predefines several formats in the file 
24341 \begin_inset Flex Code
24342 status collapsed
24343
24344 \begin_layout Plain Layout
24345 stdciteformats.inc
24346 \end_layout
24347
24348 \end_inset
24349
24350 , which is included in most of \SpecialChar LyX
24351 's document classes.
24352 \end_layout
24353
24354 \begin_layout Standard
24355 In the second case, the lines define how a specific citation command (in
24356  the example 
24357 \begin_inset Flex Code
24358 status collapsed
24359
24360 \begin_layout Plain Layout
24361
24362 \backslash
24363 cite
24364 \end_layout
24365
24366 \end_inset
24367
24368
24369 \begin_inset Flex Code
24370 status collapsed
24371
24372 \begin_layout Plain Layout
24373
24374 \backslash
24375 citet
24376 \end_layout
24377
24378 \end_inset
24379
24380 ) is to be displayed on the citation inset label, in the citation dialog,
24381  menu or XHTML output.
24382  \SpecialChar LyX
24383  defines such formats for the citation style variants it supports via 
24384 \family sans
24385 Document\SpecialChar menuseparator
24386 Setting\SpecialChar menuseparator
24387 Bibliography\SpecialChar ldots
24388
24389 \family default
24390  in specific 
24391 \begin_inset Flex Code
24392 status collapsed
24393
24394 \begin_layout Plain Layout
24395 *.citeengine
24396 \end_layout
24397
24398 \end_inset
24399
24400  files that are shipped with \SpecialChar LyX
24401  (see 
24402 \begin_inset CommandInset ref
24403 LatexCommand ref
24404 reference "subsec:Cite-Engine-Files"
24405 plural "false"
24406 caps "false"
24407 noprefix "false"
24408
24409 \end_inset
24410
24411 ).
24412 \end_layout
24413
24414 \begin_layout Standard
24415 The definitions use a simple language that allows Bib\SpecialChar TeX
24416  keys to be replaced
24417  with their values.
24418  Keys should be enclosed in 
24419 \begin_inset Flex Code
24420 status collapsed
24421
24422 \begin_layout Plain Layout
24423 %
24424 \end_layout
24425
24426 \end_inset
24427
24428  signs, e.g.: 
24429 \begin_inset Flex Code
24430 status collapsed
24431
24432 \begin_layout Plain Layout
24433 %author%
24434 \end_layout
24435
24436 \end_inset
24437
24438 .
24439  So a simple definition might look like this:
24440 \end_layout
24441
24442 \begin_layout LyX-Code
24443 misc %author%, 
24444 \begin_inset Quotes eld
24445 \end_inset
24446
24447 %title%
24448 \begin_inset Quotes erd
24449 \end_inset
24450
24451 .
24452 \end_layout
24453
24454 \begin_layout Standard
24455 This would print the author, followed by a comma, followed by the title,
24456  in quotes, followed by a period.
24457 \end_layout
24458
24459 \begin_layout Standard
24460 Of course, sometimes you may want to print a key only if it exists.
24461  This can be done by using a conditional construction, such as: 
24462 \begin_inset Flex Code
24463 status collapsed
24464
24465 \begin_layout Plain Layout
24466 {%volume%[[vol.
24467 \begin_inset space ~
24468 \end_inset
24469
24470 %volume%]]}
24471 \end_layout
24472
24473 \end_inset
24474
24475 .
24476  This says: If the 
24477 \begin_inset Flex Code
24478 status collapsed
24479
24480 \begin_layout Plain Layout
24481 volume
24482 \end_layout
24483
24484 \end_inset
24485
24486  key exists, then print 
24487 \begin_inset Quotes eld
24488 \end_inset
24489
24490 vol.
24491 \begin_inset space ~
24492 \end_inset
24493
24494
24495 \begin_inset Quotes erd
24496 \end_inset
24497
24498  followed by the volume key.
24499  It is also possible to have an else clause in the conditional, such as:
24500 \begin_inset Newline newline
24501 \end_inset
24502
24503
24504 \begin_inset Flex Code
24505 status collapsed
24506
24507 \begin_layout Plain Layout
24508 {%author%[[%author%]][[%editor%, ed.]]}
24509 \end_layout
24510
24511 \end_inset
24512
24513 .
24514 \begin_inset Newline newline
24515 \end_inset
24516
24517 Here, the 
24518 \begin_inset Flex Code
24519 status collapsed
24520
24521 \begin_layout Plain Layout
24522 author
24523 \end_layout
24524
24525 \end_inset
24526
24527  key is printed if it exists; otherwise, the editor key is printed, followed
24528  by 
24529 \begin_inset Quotes eld
24530 \end_inset
24531
24532 ,
24533 \begin_inset space ~
24534 \end_inset
24535
24536 ed.
24537 \begin_inset Quotes erd
24538 \end_inset
24539
24540  Note that the key is again enclosed in 
24541 \begin_inset Flex Code
24542 status collapsed
24543
24544 \begin_layout Plain Layout
24545 %
24546 \end_layout
24547
24548 \end_inset
24549
24550  signs; the entire conditional is enclosed in braces; and the if and else
24551  clauses are enclosed in double brackets, 
24552 \begin_inset Quotes eld
24553 \end_inset
24554
24555
24556 \begin_inset Flex Code
24557 status collapsed
24558
24559 \begin_layout Plain Layout
24560 [[
24561 \end_layout
24562
24563 \end_inset
24564
24565
24566 \begin_inset Quotes eld
24567 \end_inset
24568
24569  and 
24570 \begin_inset Quotes eld
24571 \end_inset
24572
24573
24574 \begin_inset Flex Code
24575 status collapsed
24576
24577 \begin_layout Plain Layout
24578 ]]
24579 \end_layout
24580
24581 \end_inset
24582
24583
24584 \begin_inset Quotes erd
24585 \end_inset
24586
24587 .
24588  There must be no space between any of these.
24589 \end_layout
24590
24591 \begin_layout Standard
24592 Next to the entry keys, there are some special keys that can be used for
24593  these conditionals:
24594 \end_layout
24595
24596 \begin_layout Itemize
24597 \begin_inset Flex Code
24598 status collapsed
24599
24600 \begin_layout Plain Layout
24601 {%dialog%[[true]][[false]]}
24602 \end_layout
24603
24604 \end_inset
24605
24606 : process the 
24607 \begin_inset Quotes eld
24608 \end_inset
24609
24610 true
24611 \begin_inset Quotes erd
24612 \end_inset
24613
24614  part for dialogs and menus, the 
24615 \begin_inset Quotes eld
24616 \end_inset
24617
24618 false
24619 \begin_inset Quotes erd
24620 \end_inset
24621
24622  part for other contexts (workarea, export)
24623 \end_layout
24624
24625 \begin_layout Itemize
24626 \begin_inset Flex Code
24627 status collapsed
24628
24629 \begin_layout Plain Layout
24630 {%export%[[true]][[false]]}
24631 \end_layout
24632
24633 \end_inset
24634
24635 : process the 
24636 \begin_inset Quotes eld
24637 \end_inset
24638
24639 true
24640 \begin_inset Quotes erd
24641 \end_inset
24642
24643  part for export and menus, the 
24644 \begin_inset Quotes eld
24645 \end_inset
24646
24647 false
24648 \begin_inset Quotes erd
24649 \end_inset
24650
24651  part for other contexts (workarea, dialog)
24652 \end_layout
24653
24654 \begin_layout Itemize
24655 \begin_inset Flex Code
24656 status collapsed
24657
24658 \begin_layout Plain Layout
24659 {%next%[[true]]}
24660 \end_layout
24661
24662 \end_inset
24663
24664 : process the 
24665 \begin_inset Quotes eld
24666 \end_inset
24667
24668 true
24669 \begin_inset Quotes erd
24670 \end_inset
24671
24672  part if another item follows (e.
24673 \begin_inset space \thinspace{}
24674 \end_inset
24675
24676 g., in a citation with multiple keys)
24677 \end_layout
24678
24679 \begin_layout Itemize
24680 \begin_inset Flex Code
24681 status collapsed
24682
24683 \begin_layout Plain Layout
24684 {%second%[[true]][[false]]}
24685 \end_layout
24686
24687 \end_inset
24688
24689 : process the 
24690 \begin_inset Quotes eld
24691 \end_inset
24692
24693 true
24694 \begin_inset Quotes erd
24695 \end_inset
24696
24697  if this is the second of multiple items, else the 
24698 \begin_inset Quotes eld
24699 \end_inset
24700
24701 false
24702 \begin_inset Quotes erd
24703 \end_inset
24704
24705  part
24706 \end_layout
24707
24708 \begin_layout Itemize
24709 \begin_inset Flex Code
24710 status collapsed
24711
24712 \begin_layout Plain Layout
24713 {%ifstar%[[true]][[false]]}
24714 \end_layout
24715
24716 \end_inset
24717
24718 : process the 
24719 \begin_inset Quotes eld
24720 \end_inset
24721
24722 true
24723 \begin_inset Quotes erd
24724 \end_inset
24725
24726  part for starred citation commands (such as 
24727 \begin_inset Flex Code
24728 status collapsed
24729
24730 \begin_layout Plain Layout
24731
24732 \backslash
24733 cite*
24734 \end_layout
24735
24736 \end_inset
24737
24738 ), the false part for unstarred
24739 \end_layout
24740
24741 \begin_layout Itemize
24742 \begin_inset Flex Code
24743 status collapsed
24744
24745 \begin_layout Plain Layout
24746 {%ifentrytype:<type>%[[true]][[false]]}
24747 \end_layout
24748
24749 \end_inset
24750
24751 : process the 
24752 \begin_inset Quotes eld
24753 \end_inset
24754
24755 true
24756 \begin_inset Quotes erd
24757 \end_inset
24758
24759  if the current entry type matches 
24760 \begin_inset Flex Code
24761 status collapsed
24762
24763 \begin_layout Plain Layout
24764 <type>
24765 \end_layout
24766
24767 \end_inset
24768
24769 , else the false part (e.g., in a citation definition: 
24770 \begin_inset Flex Code
24771 status collapsed
24772
24773 \begin_layout Plain Layout
24774 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24775 \end_layout
24776
24777 \end_inset
24778
24779 )
24780 \end_layout
24781
24782 \begin_layout Itemize
24783 \begin_inset Flex Code
24784 status collapsed
24785
24786 \begin_layout Plain Layout
24787 {%ifmultiple:<authortype>%[[true]][[false]]}
24788 \end_layout
24789
24790 \end_inset
24791
24792 : process the 
24793 \begin_inset Quotes eld
24794 \end_inset
24795
24796 true
24797 \begin_inset Quotes erd
24798 \end_inset
24799
24800  if the current author type (author, editor etc.) has multiple authors, else
24801  the false part (e.g., in a bibliography definition: 
24802 \begin_inset Flex Code
24803 status collapsed
24804
24805 \begin_layout Plain Layout
24806 {%ifmultiple:editor%[[eds.]][[ed.]]}
24807 \end_layout
24808
24809 \end_inset
24810
24811 )
24812 \end_layout
24813
24814 \begin_layout Itemize
24815 \begin_inset Flex Code
24816 status collapsed
24817
24818 \begin_layout Plain Layout
24819 {%ifqualified%[[true]][[false]]}
24820 \end_layout
24821
24822 \end_inset
24823
24824 : process the 
24825 \begin_inset Quotes eld
24826 \end_inset
24827
24828 true
24829 \begin_inset Quotes erd
24830 \end_inset
24831
24832  part if the current citation is a qualified citation list (a specific 
24833 \family sans
24834 Biblatex
24835 \family default
24836  format for multi-reference citations), the false part if this is not the
24837  case.
24838 \end_layout
24839
24840 \begin_layout Standard
24841 We said that 
24842 \begin_inset Flex Code
24843 status collapsed
24844
24845 \begin_layout Plain Layout
24846 %author%
24847 \end_layout
24848
24849 \end_inset
24850
24851  prints the author key as it is recorded in the bibliography file.
24852  This might not be what you want, since it will result in a string such
24853  as 
24854 \begin_inset Quotes eld
24855 \end_inset
24856
24857 Miller, Peter and Smith, Mary and White, Jane
24858 \begin_inset Quotes erd
24859 \end_inset
24860
24861  (since 
24862 \begin_inset Quotes eld
24863 \end_inset
24864
24865 and
24866 \begin_inset Quotes erd
24867 \end_inset
24868
24869  is used by Bib\SpecialChar TeX
24870  to delimit authors).
24871  \SpecialChar LyX
24872  therefore provides some methods to get properly formatted name lists (which
24873  will also get translated).
24874  The following keys are provided:
24875 \end_layout
24876
24877 \begin_layout Enumerate
24878 For name lists with pre- and surname, suitable for the main authors/editors
24879  of a bibliography item.
24880  The 
24881 \begin_inset Flex Code
24882 status collapsed
24883
24884 \begin_layout Plain Layout
24885 <nametype>
24886 \end_layout
24887
24888 \end_inset
24889
24890  part denotes the kind of list that is requested (e.g.
24891  
24892 \begin_inset Flex Code
24893 status collapsed
24894
24895 \begin_layout Plain Layout
24896 <nametype:author>
24897 \end_layout
24898
24899 \end_inset
24900
24901 ):
24902 \end_layout
24903
24904 \begin_deeper
24905 \begin_layout Itemize
24906 \begin_inset Flex Code
24907 status collapsed
24908
24909 \begin_layout Plain Layout
24910 %abbrvnames:<nametype>%
24911 \end_layout
24912
24913 \end_inset
24914
24915 : Provides a name list which is abbreviated (with 
24916 \begin_inset Quotes eld
24917 \end_inset
24918
24919 et al.
24920 \begin_inset Quotes erd
24921 \end_inset
24922
24923 ) when 
24924 \begin_inset Flex Code
24925 status collapsed
24926
24927 \begin_layout Plain Layout
24928 MaxCiteNames
24929 \end_layout
24930
24931 \end_inset
24932
24933  is reached.
24934 \end_layout
24935
24936 \begin_layout Itemize
24937 \begin_inset Flex Code
24938 status collapsed
24939
24940 \begin_layout Plain Layout
24941 %fullnames:<nametype>%
24942 \end_layout
24943
24944 \end_inset
24945
24946 : Provides a full name list (never abbreviated with 
24947 \begin_inset Quotes eld
24948 \end_inset
24949
24950 et al.
24951 \begin_inset Quotes erd
24952 \end_inset
24953
24954 ).
24955 \end_layout
24956
24957 \begin_layout Itemize
24958 \begin_inset Flex Code
24959 status collapsed
24960
24961 \begin_layout Plain Layout
24962 %forceabbrvnames:<nametype>%
24963 \end_layout
24964
24965 \end_inset
24966
24967 : Provides a name list which is always abbreviated (with 
24968 \begin_inset Quotes eld
24969 \end_inset
24970
24971 et al.
24972 \begin_inset Quotes erd
24973 \end_inset
24974
24975 ) irrespective of 
24976 \begin_inset Flex Code
24977 status collapsed
24978
24979 \begin_layout Plain Layout
24980 MaxCiteNames
24981 \end_layout
24982
24983 \end_inset
24984
24985 .
24986 \end_layout
24987
24988 \end_deeper
24989 \begin_layout Enumerate
24990 Alternative name lists with pre- and surname, if the order of pre- and surname
24991  inside the bibliography item differs (as in: 
24992 \begin_inset Quotes eld
24993 \end_inset
24994
24995 Miller, John: Some text, in: Mary Smith, ed.: A volume
24996 \begin_inset Quotes erd
24997 \end_inset
24998
24999 ):
25000 \end_layout
25001
25002 \begin_deeper
25003 \begin_layout Itemize
25004 \begin_inset Flex Code
25005 status collapsed
25006
25007 \begin_layout Plain Layout
25008 %abbrvbynames:<nametype>%
25009 \end_layout
25010
25011 \end_inset
25012
25013 : Provides a name list which is abbreviated (with 
25014 \begin_inset Quotes eld
25015 \end_inset
25016
25017 et al.
25018 \begin_inset Quotes erd
25019 \end_inset
25020
25021 ) when 
25022 \begin_inset Flex Code
25023 status collapsed
25024
25025 \begin_layout Plain Layout
25026 MaxCiteNames
25027 \end_layout
25028
25029 \end_inset
25030
25031  is reached.
25032 \end_layout
25033
25034 \begin_layout Itemize
25035 \begin_inset Flex Code
25036 status collapsed
25037
25038 \begin_layout Plain Layout
25039 %fullbynames:<nametype>%
25040 \end_layout
25041
25042 \end_inset
25043
25044 : Provides a full name list (never abbreviated with 
25045 \begin_inset Quotes eld
25046 \end_inset
25047
25048 et al.
25049 \begin_inset Quotes erd
25050 \end_inset
25051
25052 ).
25053 \end_layout
25054
25055 \begin_layout Itemize
25056 \begin_inset Flex Code
25057 status collapsed
25058
25059 \begin_layout Plain Layout
25060 %forceabbrvbynames:<nametype>%
25061 \end_layout
25062
25063 \end_inset
25064
25065 : Provides a name list which is always abbreviated (with 
25066 \begin_inset Quotes eld
25067 \end_inset
25068
25069 et al.
25070 \begin_inset Quotes erd
25071 \end_inset
25072
25073 ) irrespective of 
25074 \begin_inset Flex Code
25075 status collapsed
25076
25077 \begin_layout Plain Layout
25078 MaxCiteNames
25079 \end_layout
25080
25081 \end_inset
25082
25083 .
25084 \end_layout
25085
25086 \end_deeper
25087 \begin_layout Enumerate
25088 And finally name lists which consist of family names only, as used in author-yea
25089 r citation labels.
25090  These do not take a 
25091 \begin_inset Flex Code
25092 status collapsed
25093
25094 \begin_layout Plain Layout
25095 <nametype>
25096 \end_layout
25097
25098 \end_inset
25099
25100  part, but always return either an author list or, if this does not exist,
25101  an editor list (as common in author-year labels):
25102 \end_layout
25103
25104 \begin_deeper
25105 \begin_layout Itemize
25106 \begin_inset Flex Code
25107 status collapsed
25108
25109 \begin_layout Plain Layout
25110 %abbrvciteauthor%
25111 \end_layout
25112
25113 \end_inset
25114
25115 : Provides a name list which is abbreviated (with 
25116 \begin_inset Quotes eld
25117 \end_inset
25118
25119 et al.
25120 \begin_inset Quotes erd
25121 \end_inset
25122
25123 ) when 
25124 \begin_inset Flex Code
25125 status collapsed
25126
25127 \begin_layout Plain Layout
25128 MaxCiteNames
25129 \end_layout
25130
25131 \end_inset
25132
25133  is reached.
25134 \end_layout
25135
25136 \begin_layout Itemize
25137 \begin_inset Flex Code
25138 status collapsed
25139
25140 \begin_layout Plain Layout
25141 %fullciteauthor%
25142 \end_layout
25143
25144 \end_inset
25145
25146 : Provides a full name list (never abbreviated with 
25147 \begin_inset Quotes eld
25148 \end_inset
25149
25150 et al.
25151 \begin_inset Quotes erd
25152 \end_inset
25153
25154 ).
25155 \end_layout
25156
25157 \begin_layout Itemize
25158 \begin_inset Flex Code
25159 status collapsed
25160
25161 \begin_layout Plain Layout
25162 %forceabbrvciteauthor%
25163 \end_layout
25164
25165 \end_inset
25166
25167 : Provides a name list which is always abbreviated (with 
25168 \begin_inset Quotes eld
25169 \end_inset
25170
25171 et al.
25172 \begin_inset Quotes erd
25173 \end_inset
25174
25175 ) irrespective of 
25176 \begin_inset Flex Code
25177 status collapsed
25178
25179 \begin_layout Plain Layout
25180 MaxCiteNames
25181 \end_layout
25182
25183 \end_inset
25184
25185 .
25186 \end_layout
25187
25188 \end_deeper
25189 \begin_layout Standard
25190 The order of pre- and surname in the former two lists can be adjusted by
25191  these macros:
25192 \end_layout
25193
25194 \begin_layout Itemize
25195 \begin_inset Flex Code
25196 status collapsed
25197
25198 \begin_layout Plain Layout
25199 !firstnameform %surname%, %prename%
25200 \end_layout
25201
25202 \end_inset
25203
25204  (first author in lists of type 1)
25205 \end_layout
25206
25207 \begin_layout Itemize
25208 \begin_inset Flex Code
25209 status collapsed
25210
25211 \begin_layout Plain Layout
25212 !othernameform %surname%, %prename%
25213 \end_layout
25214
25215 \end_inset
25216
25217  (other authors in lists of type 1)
25218 \end_layout
25219
25220 \begin_layout Itemize
25221 \begin_inset Flex Code
25222 status collapsed
25223
25224 \begin_layout Plain Layout
25225 !firstbynameform %prename% %surname%
25226 \end_layout
25227
25228 \end_inset
25229
25230  (first author in lists of type 2)
25231 \end_layout
25232
25233 \begin_layout Itemize
25234 \begin_inset Flex Code
25235 status collapsed
25236
25237 \begin_layout Plain Layout
25238 !otherbynameform %prename% %surname%
25239 \end_layout
25240
25241 \end_inset
25242
25243  (other authors in lists of type 2)
25244 \end_layout
25245
25246 \begin_layout Standard
25247 This allows you to configure namings like 
25248 \begin_inset Quotes eld
25249 \end_inset
25250
25251 Miller, Peter and Mary Smith: \SpecialChar ldots
25252 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
25253
25254 \begin_inset Quotes erd
25255 \end_inset
25256
25257 .
25258 \end_layout
25259
25260 \begin_layout Standard
25261 There is one other piece of syntax available in definitions, which looks
25262  like this: 
25263 \begin_inset Flex Code
25264 status collapsed
25265
25266 \begin_layout Plain Layout
25267 {!<i>!}
25268 \end_layout
25269
25270 \end_inset
25271
25272 .
25273  This defines a piece of formatting information that is to be used when
25274  creating 
25275 \begin_inset Quotes eld
25276 \end_inset
25277
25278 rich text
25279 \begin_inset Quotes erd
25280 \end_inset
25281
25282 .
25283  Obviously, we do not want to output HTML tags when writing plain text,
25284  so they should be wrapped in 
25285 \begin_inset Quotes eld
25286 \end_inset
25287
25288 {!
25289 \begin_inset Quotes erd
25290 \end_inset
25291
25292  and 
25293 \begin_inset Quotes eld
25294 \end_inset
25295
25296 !}
25297 \begin_inset Quotes erd
25298 \end_inset
25299
25300 .
25301 \end_layout
25302
25303 \begin_layout Standard
25304 Two special sorts of definitions are also possible in a 
25305 \begin_inset Flex Code
25306 status collapsed
25307
25308 \begin_layout Plain Layout
25309 CiteFormat
25310 \end_layout
25311
25312 \end_inset
25313
25314  block.
25315  An example of the first would be:
25316 \end_layout
25317
25318 \begin_layout LyX-Code
25319 !quotetitle 
25320 \begin_inset Quotes eld
25321 \end_inset
25322
25323 %title%
25324 \begin_inset Quotes erd
25325 \end_inset
25326
25327
25328 \end_layout
25329
25330 \begin_layout Standard
25331 This is an abbreviation, or macro, and it can be used by treating it as
25332  if it were a key: 
25333 \begin_inset Flex Code
25334 status collapsed
25335
25336 \begin_layout Plain Layout
25337 %!quotetitle%
25338 \end_layout
25339
25340 \end_inset
25341
25342 .
25343  \SpecialChar LyX
25344  will treat 
25345 \begin_inset Flex Code
25346 status collapsed
25347
25348 \begin_layout Plain Layout
25349 %!quotetitle%
25350 \end_layout
25351
25352 \end_inset
25353
25354  exactly as it would treat its definition.
25355  So, let us issue the obvious 
25356 \emph on
25357 warning
25358 \emph default
25359 .
25360  Do not do this:
25361 \end_layout
25362
25363 \begin_layout LyX-Code
25364 !funfun %funfun%
25365 \end_layout
25366
25367 \begin_layout Standard
25368 or anything like it.
25369  \SpecialChar LyX
25370  shouldn't go into an infinite loop, but it may go into a long one before
25371  it gives up.
25372 \end_layout
25373
25374 \begin_layout Standard
25375 The second sort of special definition might look like this:
25376 \end_layout
25377
25378 \begin_layout LyX-Code
25379 B_pptext pp.
25380 \end_layout
25381
25382 \begin_layout Standard
25383 This defines a translatable piece of text, which allows relevant parts of
25384  the bibliography or citation to be translated.
25385  It can be included in a definition by treating it as a key: 
25386 \begin_inset Flex Code
25387 status collapsed
25388
25389 \begin_layout Plain Layout
25390 %B_pptext%
25391 \end_layout
25392
25393 \end_inset
25394
25395 .
25396  Note that there are two different translation paths: All definitions starting
25397  with 
25398 \begin_inset Flex Code
25399 status collapsed
25400
25401 \begin_layout Plain Layout
25402 B_
25403 \end_layout
25404
25405 \end_inset
25406
25407 , such as in the example above, will be translated to the currently active
25408  buffer language (so the translation will match the generated document).
25409  All definitions starting with underscore only will be translated to the
25410  GUI language.
25411  This is the proper translation for strings that only occur in the dialogs
25412  or on buttons, such as this one:
25413 \end_layout
25414
25415 \begin_layout LyX-Code
25416 _addtobib Add to bibliography only.
25417 \end_layout
25418
25419 \begin_layout Standard
25420 Several of these translatable strings are predefined in 
25421 \begin_inset Flex Code
25422 status collapsed
25423
25424 \begin_layout Plain Layout
25425 stdciteformats.inc
25426 \end_layout
25427
25428 \end_inset
25429
25430  and the diverse 
25431 \begin_inset Flex Code
25432 status collapsed
25433
25434 \begin_layout Plain Layout
25435 *.citeengine
25436 \end_layout
25437
25438 \end_inset
25439
25440  files.
25441  Note that these are not macros, in the sense just defined.
25442  They will not be expanded.
25443 \end_layout
25444
25445 \begin_layout Standard
25446 So here then is an example that uses several of these features:
25447 \begin_inset VSpace defskip
25448 \end_inset
25449
25450
25451 \end_layout
25452
25453 \begin_layout Standard
25454 \noindent
25455
25456 \family sans
25457 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
25458 \end_layout
25459
25460 \begin_layout Standard
25461 \begin_inset VSpace defskip
25462 \end_inset
25463
25464 This defines a macro that prints the author, followed by a comma, if the
25465  
25466 \begin_inset Flex Code
25467 status collapsed
25468
25469 \begin_layout Plain Layout
25470 author
25471 \end_layout
25472
25473 \end_inset
25474
25475  key is defined, or else prints the name of the editor, followed by the
25476  
25477 \begin_inset Flex Code
25478 status collapsed
25479
25480 \begin_layout Plain Layout
25481 B_edtext
25482 \end_layout
25483
25484 \end_inset
25485
25486  or its translation (it is by default 
25487 \begin_inset Quotes eld
25488 \end_inset
25489
25490 ed.
25491 \begin_inset Quotes erd
25492 \end_inset
25493
25494 ), if the 
25495 \begin_inset Flex Code
25496 status collapsed
25497
25498 \begin_layout Plain Layout
25499 editor
25500 \end_layout
25501
25502 \end_inset
25503
25504  key is defined.
25505  Note that this is in fact defined in 
25506 \begin_inset Flex Code
25507 status collapsed
25508
25509 \begin_layout Plain Layout
25510 stdciteformats.inc
25511 \end_layout
25512
25513 \end_inset
25514
25515 , so you can use it in your own definitions, or re-definitions, if you load
25516  that file first.
25517 \end_layout
25518
25519 \begin_layout Section
25520 \begin_inset CommandInset label
25521 LatexCommand label
25522 name "sec:Tags-for-XHTML"
25523
25524 \end_inset
25525
25526 Tags for XHTML output
25527 \end_layout
25528
25529 \begin_layout Standard
25530 As with \SpecialChar LaTeX
25531  or DocBook, the format of \SpecialChar LyX
25532 's XHTML output is also controlled by
25533  layout information.
25534  In general, \SpecialChar LyX
25535  provides sensible defaults and, as mentioned earlier, it will
25536  even construct default CSS style rules from the other layout tags.
25537  For example, \SpecialChar LyX
25538  will attempt to use the information provided in the 
25539 \begin_inset Flex Code
25540 status collapsed
25541
25542 \begin_layout Plain Layout
25543 Font
25544 \end_layout
25545
25546 \end_inset
25547
25548  declaration for the Chapter style to write CSS that will appropriately
25549  format chapter headings.
25550 \end_layout
25551
25552 \begin_layout Standard
25553 In many cases, then, you may not have to do anything at all to get acceptable
25554  XHTML output for your own environments, custom insets, and so forth.
25555  But in some cases you will, and so \SpecialChar LyX
25556  provides a number of layout tags that
25557  can be used to customize the XHTML and CSS that are generated.
25558 \end_layout
25559
25560 \begin_layout Standard
25561 Note that there are two tags, 
25562 \begin_inset Flex Code
25563 status collapsed
25564
25565 \begin_layout Plain Layout
25566 HTMLPreamble
25567 \end_layout
25568
25569 \end_inset
25570
25571  and 
25572 \begin_inset Flex Code
25573 status collapsed
25574
25575 \begin_layout Plain Layout
25576 AddToHTMLPreamble
25577 \end_layout
25578
25579 \end_inset
25580
25581  that may appear outside style and inset declarations.
25582  See 
25583 \begin_inset CommandInset ref
25584 LatexCommand ref
25585 reference "subsec:General-text-class"
25586
25587 \end_inset
25588
25589  for details on these.
25590 \end_layout
25591
25592 \begin_layout Subsection
25593 \begin_inset CommandInset label
25594 LatexCommand label
25595 name "subsec:Paragraph-Style-XHTML"
25596
25597 \end_inset
25598
25599 Paragraph styles
25600 \end_layout
25601
25602 \begin_layout Standard
25603 The sort of XHTML \SpecialChar LyX
25604  outputs for a paragraph depends upon whether we are dealing
25605  with a normal paragraph, a command, or an environment, where this is itself
25606  determined by the contents of the corresponding 
25607 \begin_inset Flex Code
25608 status collapsed
25609
25610 \begin_layout Plain Layout
25611 \SpecialChar LaTeX
25612 Type
25613 \end_layout
25614
25615 \end_inset
25616
25617  tag.
25618  
25619 \end_layout
25620
25621 \begin_layout Standard
25622 For a command or normal paragraph, the output XHTML has the following form:
25623 \end_layout
25624
25625 \begin_layout LyX-Code
25626
25627 \family sans
25628 <tag attr=
25629 \begin_inset Quotes erd
25630 \end_inset
25631
25632 value
25633 \begin_inset Quotes erd
25634 \end_inset
25635
25636 >
25637 \end_layout
25638
25639 \begin_layout LyX-Code
25640
25641 \family sans
25642 <labeltag attr=
25643 \begin_inset Quotes erd
25644 \end_inset
25645
25646 value
25647 \begin_inset Quotes erd
25648 \end_inset
25649
25650 >Label</labeltag>
25651 \end_layout
25652
25653 \begin_layout LyX-Code
25654
25655 \family sans
25656 Contents of the paragraph.
25657 \end_layout
25658
25659 \begin_layout LyX-Code
25660
25661 \family sans
25662 </tag>
25663 \end_layout
25664
25665 \begin_layout Standard
25666 The label tags are of course omitted if the paragraph does not have a label.
25667 \end_layout
25668
25669 \begin_layout Standard
25670 For an environment that is not some sort of list, the XHTML takes this form:
25671 \end_layout
25672
25673 \begin_layout LyX-Code
25674
25675 \family sans
25676 <tag attr=
25677 \begin_inset Quotes erd
25678 \end_inset
25679
25680 value
25681 \begin_inset Quotes erd
25682 \end_inset
25683
25684 >
25685 \end_layout
25686
25687 \begin_layout LyX-Code
25688
25689 \family sans
25690 <itemtag attr=
25691 \begin_inset Quotes erd
25692 \end_inset
25693
25694 value
25695 \begin_inset Quotes erd
25696 \end_inset
25697
25698 ><labeltag attr=
25699 \begin_inset Quotes erd
25700 \end_inset
25701
25702 value
25703 \begin_inset Quotes erd
25704 \end_inset
25705
25706 >Environment Label</labeltag>First paragraph.</itemtag>
25707 \end_layout
25708
25709 \begin_layout LyX-Code
25710
25711 \family sans
25712 <itemtag>Second paragraph.</itemtag>
25713 \end_layout
25714
25715 \begin_layout LyX-Code
25716
25717 \family sans
25718 </tag>
25719 \end_layout
25720
25721 \begin_layout Standard
25722 Note that the label is output only for the first paragraph, as it should
25723  be for a theorem, for example.
25724  
25725 \end_layout
25726
25727 \begin_layout Standard
25728 For a list, we have one of these forms:
25729 \end_layout
25730
25731 \begin_layout LyX-Code
25732
25733 \family sans
25734 <tag attr=
25735 \begin_inset Quotes erd
25736 \end_inset
25737
25738 value
25739 \begin_inset Quotes erd
25740 \end_inset
25741
25742 >
25743 \end_layout
25744
25745 \begin_layout LyX-Code
25746
25747 \family sans
25748 <itemtag attr=
25749 \begin_inset Quotes erd
25750 \end_inset
25751
25752 value
25753 \begin_inset Quotes erd
25754 \end_inset
25755
25756 ><labeltag attr=
25757 \begin_inset Quotes erd
25758 \end_inset
25759
25760 value
25761 \begin_inset Quotes erd
25762 \end_inset
25763
25764 >List Label</labeltag>First item.</itemtag>
25765 \end_layout
25766
25767 \begin_layout LyX-Code
25768
25769 \family sans
25770 <itemtag attr=
25771 \begin_inset Quotes erd
25772 \end_inset
25773
25774 value
25775 \begin_inset Quotes erd
25776 \end_inset
25777
25778 ><labeltag attr=
25779 \begin_inset Quotes erd
25780 \end_inset
25781
25782 value
25783 \begin_inset Quotes erd
25784 \end_inset
25785
25786 >List Label</labeltag>Second item.</itemtag>
25787 \end_layout
25788
25789 \begin_layout LyX-Code
25790
25791 \family sans
25792 </tag>
25793 \end_layout
25794
25795 \begin_layout LyX-Code
25796
25797 \end_layout
25798
25799 \begin_layout LyX-Code
25800
25801 \family sans
25802 <tag attr=
25803 \begin_inset Quotes erd
25804 \end_inset
25805
25806 value
25807 \begin_inset Quotes erd
25808 \end_inset
25809
25810 >
25811 \end_layout
25812
25813 \begin_layout LyX-Code
25814
25815 \family sans
25816 <labeltag attr=
25817 \begin_inset Quotes erd
25818 \end_inset
25819
25820 value
25821 \begin_inset Quotes erd
25822 \end_inset
25823
25824 >List Label</labeltag><itemtag attr=
25825 \begin_inset Quotes erd
25826 \end_inset
25827
25828 value
25829 \begin_inset Quotes erd
25830 \end_inset
25831
25832 >First item.</itemtag>
25833 \end_layout
25834
25835 \begin_layout LyX-Code
25836
25837 \family sans
25838 <labeltag attr=
25839 \begin_inset Quotes erd
25840 \end_inset
25841
25842 value
25843 \begin_inset Quotes erd
25844 \end_inset
25845
25846 >List Label</labeltag><itemtag attr=
25847 \begin_inset Quotes erd
25848 \end_inset
25849
25850 value
25851 \begin_inset Quotes erd
25852 \end_inset
25853
25854 >Second item.</itemtag>
25855 \end_layout
25856
25857 \begin_layout LyX-Code
25858
25859 \family sans
25860 </tag>
25861 \end_layout
25862
25863 \begin_layout Standard
25864 Note the different orders of 
25865 \begin_inset Flex Code
25866 status collapsed
25867
25868 \begin_layout Plain Layout
25869 labeltag
25870 \end_layout
25871
25872 \end_inset
25873
25874  and 
25875 \begin_inset Flex Code
25876 status collapsed
25877
25878 \begin_layout Plain Layout
25879 itemtag
25880 \end_layout
25881
25882 \end_inset
25883
25884 .
25885  Which order we get depends upon the setting of 
25886 \begin_inset Flex Code
25887 status collapsed
25888
25889 \begin_layout Plain Layout
25890 HTMLLabelFirst
25891 \end_layout
25892
25893 \end_inset
25894
25895 : If 
25896 \begin_inset Flex Code
25897 status collapsed
25898
25899 \begin_layout Plain Layout
25900 HTMLLabelFirst
25901 \end_layout
25902
25903 \end_inset
25904
25905  is false (the default), you get the first of these, with the label within
25906  the item; if true, you get the second, with the label outside the item.
25907 \end_layout
25908
25909 \begin_layout Standard
25910 The specific tags and attributes output for each paragraph type can be controlle
25911 d by means of the layout tags we are about to describe.
25912  As mentioned earlier, however, \SpecialChar LyX
25913  uses sensible defaults for many of these,
25914  so you often may not need to do very much to get good XHTML output.
25915  Think of the available tags as there so you can tweak things to your liking.
25916 \end_layout
25917
25918 \begin_layout Description
25919 \begin_inset Flex Code
25920 status collapsed
25921
25922 \begin_layout Plain Layout
25923 HTMLAttr
25924 \end_layout
25925
25926 \end_inset
25927
25928  [
25929 \begin_inset Flex Code
25930 status collapsed
25931
25932 \begin_layout Plain Layout
25933 string
25934 \end_layout
25935
25936 \end_inset
25937
25938 ] Specifies attribute information to be output with the main tag.
25939  For example, 
25940 \begin_inset Quotes eld
25941 \end_inset
25942
25943
25944 \begin_inset Flex Code
25945 status collapsed
25946
25947 \begin_layout Plain Layout
25948 class=`mydiv'
25949 \end_layout
25950
25951 \end_inset
25952
25953
25954 \begin_inset Quotes erd
25955 \end_inset
25956
25957 .
25958  By default, \SpecialChar LyX
25959  will output 
25960 \begin_inset Quotes eld
25961 \end_inset
25962
25963
25964 \begin_inset Flex Code
25965 status collapsed
25966
25967 \begin_layout Plain Layout
25968 class=`layoutname'
25969 \end_layout
25970
25971 \end_inset
25972
25973
25974 \begin_inset Quotes erd
25975 \end_inset
25976
25977 , where 
25978 \begin_inset Flex Code
25979 status collapsed
25980
25981 \begin_layout Plain Layout
25982 layoutname
25983 \end_layout
25984
25985 \end_inset
25986
25987  is the \SpecialChar LyX
25988  name of the layout, made lowercase, for example: chapter.
25989  This should 
25990 \emph on
25991 not
25992 \emph default
25993  contain any style information.
25994  Use 
25995 \begin_inset Flex Code
25996 status collapsed
25997
25998 \begin_layout Plain Layout
25999 HTMLStyle
26000 \end_layout
26001
26002 \end_inset
26003
26004  for that purpose.
26005 \end_layout
26006
26007 \begin_layout Description
26008 \begin_inset Flex Code
26009 status collapsed
26010
26011 \begin_layout Plain Layout
26012 HTMLForceCSS
26013 \end_layout
26014
26015 \end_inset
26016
26017  [
26018 \begin_inset Flex Code
26019 status collapsed
26020
26021 \begin_layout Plain Layout
26022
26023 \emph on
26024 0
26025 \emph default
26026 ,1
26027 \end_layout
26028
26029 \end_inset
26030
26031 ] Whether to output the default CSS information \SpecialChar LyX
26032  generates for this layout,
26033  even if additional information is explicitly provided via 
26034 \begin_inset Flex Code
26035 status collapsed
26036
26037 \begin_layout Plain Layout
26038 HTMLStyle
26039 \end_layout
26040
26041 \end_inset
26042
26043 .
26044  Setting this to 
26045 \begin_inset Flex Code
26046 status collapsed
26047
26048 \begin_layout Plain Layout
26049 1
26050 \end_layout
26051
26052 \end_inset
26053
26054  allows you to alter or augment the generated CSS, rather than to override
26055  it completely.
26056  Default is 
26057 \begin_inset Flex Code
26058 status collapsed
26059
26060 \begin_layout Plain Layout
26061 0
26062 \end_layout
26063
26064 \end_inset
26065
26066 .
26067 \end_layout
26068
26069 \begin_layout Description
26070 \begin_inset Flex Code
26071 status collapsed
26072
26073 \begin_layout Plain Layout
26074 HTMLItem
26075 \end_layout
26076
26077 \end_inset
26078
26079  [
26080 \begin_inset Flex Code
26081 status collapsed
26082
26083 \begin_layout Plain Layout
26084 string
26085 \end_layout
26086
26087 \end_inset
26088
26089 ] The tag to be used for individual paragraphs of environments, replacing
26090  
26091 \begin_inset Flex Code
26092 status collapsed
26093
26094 \begin_layout Plain Layout
26095 itemtag
26096 \end_layout
26097
26098 \end_inset
26099
26100  in the examples above.
26101  Defaults to 
26102 \begin_inset Flex Code
26103 status collapsed
26104
26105 \begin_layout Plain Layout
26106 div
26107 \end_layout
26108
26109 \end_inset
26110
26111 .
26112 \end_layout
26113
26114 \begin_layout Description
26115 \begin_inset Flex Code
26116 status collapsed
26117
26118 \begin_layout Plain Layout
26119 HTMLItemAttr
26120 \end_layout
26121
26122 \end_inset
26123
26124  [
26125 \begin_inset Flex Code
26126 status collapsed
26127
26128 \begin_layout Plain Layout
26129 string
26130 \end_layout
26131
26132 \end_inset
26133
26134 ] Attributes for the item tag.
26135  Defaults to
26136 \begin_inset Newline newline
26137 \end_inset
26138
26139
26140 \begin_inset Quotes eld
26141 \end_inset
26142
26143
26144 \begin_inset Flex Code
26145 status collapsed
26146
26147 \begin_layout Plain Layout
26148 class=`layoutname_item'
26149 \end_layout
26150
26151 \end_inset
26152
26153
26154 \begin_inset Quotes erd
26155 \end_inset
26156
26157 .
26158  This should 
26159 \emph on
26160 not
26161 \emph default
26162  contain any style information.
26163  Use 
26164 \begin_inset Flex Code
26165 status collapsed
26166
26167 \begin_layout Plain Layout
26168 HTMLStyle
26169 \end_layout
26170
26171 \end_inset
26172
26173  for that purpose.
26174 \end_layout
26175
26176 \begin_layout Description
26177 \begin_inset Flex Code
26178 status collapsed
26179
26180 \begin_layout Plain Layout
26181 HTMLLabel
26182 \end_layout
26183
26184 \end_inset
26185
26186  [
26187 \begin_inset Flex Code
26188 status collapsed
26189
26190 \begin_layout Plain Layout
26191 string
26192 \end_layout
26193
26194 \end_inset
26195
26196 ] The tag to be used for paragraph and item labels, replacing 
26197 \begin_inset Flex Code
26198 status collapsed
26199
26200 \begin_layout Plain Layout
26201 labeltag
26202 \end_layout
26203
26204 \end_inset
26205
26206  in the examples above.
26207  Defaults to 
26208 \begin_inset Flex Code
26209 status collapsed
26210
26211 \begin_layout Plain Layout
26212 span
26213 \end_layout
26214
26215 \end_inset
26216
26217 , unless 
26218 \begin_inset Flex Code
26219 status collapsed
26220
26221 \begin_layout Plain Layout
26222 LabelType
26223 \end_layout
26224
26225 \end_inset
26226
26227  is either 
26228 \begin_inset Flex Code
26229 status collapsed
26230
26231 \begin_layout Plain Layout
26232 Top_Environment
26233 \end_layout
26234
26235 \end_inset
26236
26237  or 
26238 \begin_inset Flex Code
26239 status collapsed
26240
26241 \begin_layout Plain Layout
26242 Centered_Top_Environment
26243 \end_layout
26244
26245 \end_inset
26246
26247 , in which case it defaults to 
26248 \begin_inset Flex Code
26249 status collapsed
26250
26251 \begin_layout Plain Layout
26252 div
26253 \end_layout
26254
26255 \end_inset
26256
26257 .
26258 \end_layout
26259
26260 \begin_layout Description
26261 \begin_inset Flex Code
26262 status collapsed
26263
26264 \begin_layout Plain Layout
26265 HTMLLabelAttr
26266 \end_layout
26267
26268 \end_inset
26269
26270  [
26271 \begin_inset Flex Code
26272 status collapsed
26273
26274 \begin_layout Plain Layout
26275 string
26276 \end_layout
26277
26278 \end_inset
26279
26280 ] Attributes for the label tag.
26281  Defaults to
26282 \begin_inset Newline newline
26283 \end_inset
26284
26285
26286 \begin_inset Quotes eld
26287 \end_inset
26288
26289
26290 \begin_inset Flex Code
26291 status collapsed
26292
26293 \begin_layout Plain Layout
26294 class=`layoutname_label'
26295 \end_layout
26296
26297 \end_inset
26298
26299
26300 \begin_inset Quotes erd
26301 \end_inset
26302
26303 .
26304  This should 
26305 \emph on
26306 not
26307 \emph default
26308  contain any style information.
26309  Use 
26310 \begin_inset Flex Code
26311 status collapsed
26312
26313 \begin_layout Plain Layout
26314 HTMLStyle
26315 \end_layout
26316
26317 \end_inset
26318
26319  for that purpose.
26320 \end_layout
26321
26322 \begin_layout Description
26323 \begin_inset Flex Code
26324 status collapsed
26325
26326 \begin_layout Plain Layout
26327 HTMLLabelFirst
26328 \end_layout
26329
26330 \end_inset
26331
26332  [
26333 \begin_inset Flex Code
26334 status collapsed
26335
26336 \begin_layout Plain Layout
26337
26338 \emph on
26339 0
26340 \emph default
26341 ,1
26342 \end_layout
26343
26344 \end_inset
26345
26346 ] Meaningful only for list-like environments, this tag controls whether
26347  the label tag is output before or inside the item tag.
26348  This is used, for example, in the description environment, where we want
26349  `
26350 \begin_inset Flex Code
26351 status collapsed
26352
26353 \begin_layout Plain Layout
26354 <dt>\SpecialChar ldots
26355 </dt><dd>\SpecialChar ldots
26356 </dd>
26357 \end_layout
26358
26359 \end_inset
26360
26361 .
26362  Default is 
26363 \begin_inset Flex Code
26364 status collapsed
26365
26366 \begin_layout Plain Layout
26367 0
26368 \end_layout
26369
26370 \end_inset
26371
26372 : The label tag is output inside the item tag.
26373 \end_layout
26374
26375 \begin_layout Description
26376 \begin_inset Flex Code
26377 status collapsed
26378
26379 \begin_layout Plain Layout
26380 HTMLPreamble
26381 \end_layout
26382
26383 \end_inset
26384
26385  Information to be output in the 
26386 \begin_inset Flex Code
26387 status collapsed
26388
26389 \begin_layout Plain Layout
26390 <head>
26391 \end_layout
26392
26393 \end_inset
26394
26395  section when this style is used.
26396  This might, for example, be used to include a 
26397 \begin_inset Flex Code
26398 status collapsed
26399
26400 \begin_layout Plain Layout
26401 <script>
26402 \end_layout
26403
26404 \end_inset
26405
26406  block defining an 
26407 \begin_inset Flex Code
26408 status collapsed
26409
26410 \begin_layout Plain Layout
26411 onclick
26412 \end_layout
26413
26414 \end_inset
26415
26416  handler.
26417 \end_layout
26418
26419 \begin_layout Description
26420 \begin_inset Flex Code
26421 status collapsed
26422
26423 \begin_layout Plain Layout
26424 HTMLStyle
26425 \end_layout
26426
26427 \end_inset
26428
26429  CSS style information to be included when this style is used.
26430  Note that this will automatically be wrapped in a layout-generated 
26431 \begin_inset Flex Code
26432 status collapsed
26433
26434 \begin_layout Plain Layout
26435 <style>
26436 \end_layout
26437
26438 \end_inset
26439
26440  block, so only the CSS itself need be included.
26441  Must end with 
26442 \begin_inset Flex Code
26443 status collapsed
26444
26445 \begin_layout Plain Layout
26446 EndHTMLStyle
26447 \end_layout
26448
26449 \end_inset
26450
26451 .
26452 \end_layout
26453
26454 \begin_layout Description
26455 \begin_inset Flex Code
26456 status collapsed
26457
26458 \begin_layout Plain Layout
26459 HTMLTag
26460 \end_layout
26461
26462 \end_inset
26463
26464  [
26465 \begin_inset Flex Code
26466 status collapsed
26467
26468 \begin_layout Plain Layout
26469 string
26470 \end_layout
26471
26472 \end_inset
26473
26474 ] The tag to be used for the main label, replacing 
26475 \begin_inset Flex Code
26476 status collapsed
26477
26478 \begin_layout Plain Layout
26479 tag
26480 \end_layout
26481
26482 \end_inset
26483
26484  in the examples above.
26485  Defaults to 
26486 \begin_inset Flex Code
26487 status collapsed
26488
26489 \begin_layout Plain Layout
26490 div
26491 \end_layout
26492
26493 \end_inset
26494
26495 .
26496 \end_layout
26497
26498 \begin_layout Description
26499 \begin_inset Flex Code
26500 status collapsed
26501
26502 \begin_layout Plain Layout
26503 HTMLTitle
26504 \end_layout
26505
26506 \end_inset
26507
26508  [
26509 \begin_inset Flex Code
26510 status collapsed
26511
26512 \begin_layout Plain Layout
26513
26514 \emph on
26515 0
26516 \emph default
26517 ,1
26518 \end_layout
26519
26520 \end_inset
26521
26522 ] Marks this style as the one to be used to generate the 
26523 \begin_inset Flex Code
26524 status collapsed
26525
26526 \begin_layout Plain Layout
26527 <title>
26528 \end_layout
26529
26530 \end_inset
26531
26532  tag for the XHTML file.
26533  By default, it is false.
26534  The 
26535 \begin_inset Flex Code
26536 status collapsed
26537
26538 \begin_layout Plain Layout
26539 stdtitle.inc
26540 \end_layout
26541
26542 \end_inset
26543
26544  file sets it to true for the 
26545 \begin_inset Flex Code
26546 status collapsed
26547
26548 \begin_layout Plain Layout
26549 title
26550 \end_layout
26551
26552 \end_inset
26553
26554  environment.
26555  
26556 \end_layout
26557
26558 \begin_layout Subsection
26559 InsetLayout XHTML
26560 \end_layout
26561
26562 \begin_layout Standard
26563 The XHTML output of insets can also be controlled by information in layout
26564  files.
26565 \begin_inset Foot
26566 status collapsed
26567
26568 \begin_layout Plain Layout
26569 At present, this is true only for 
26570 \begin_inset Quotes eld
26571 \end_inset
26572
26573 text
26574 \begin_inset Quotes erd
26575 \end_inset
26576
26577  insets (insets you can type into) and is not true for 
26578 \begin_inset Quotes eld
26579 \end_inset
26580
26581 command
26582 \begin_inset Quotes erd
26583 \end_inset
26584
26585  insets (insets that are associated with dialog boxes).
26586 \end_layout
26587
26588 \end_inset
26589
26590  Here, too, \SpecialChar LyX
26591  tries to provide sensible defaults, and it constructs default
26592  CSS style rules.
26593  But everything can be customized.
26594 \end_layout
26595
26596 \begin_layout Standard
26597 The XHTML \SpecialChar LyX
26598  outputs for an inset has the following form:
26599 \end_layout
26600
26601 \begin_layout LyX-Code
26602 <tag attr=
26603 \begin_inset Quotes erd
26604 \end_inset
26605
26606 value
26607 \begin_inset Quotes erd
26608 \end_inset
26609
26610 >
26611 \end_layout
26612
26613 \begin_layout LyX-Code
26614 <labeltag>Label</labeltag>
26615 \end_layout
26616
26617 \begin_layout LyX-Code
26618 <innertag attr=
26619 \begin_inset Quotes erd
26620 \end_inset
26621
26622 value
26623 \begin_inset Quotes erd
26624 \end_inset
26625
26626 >Contents of the inset.</innertag>
26627 \end_layout
26628
26629 \begin_layout LyX-Code
26630 </tag>
26631 \end_layout
26632
26633 \begin_layout Standard
26634 If the inset permits multiple paragraphs—that is, if 
26635 \begin_inset Flex Code
26636 status collapsed
26637
26638 \begin_layout Plain Layout
26639 MultiPar
26640 \end_layout
26641
26642 \end_inset
26643
26644  is true—then the contents of the inset will itself be output as paragraphs
26645  formatted according to the styles used for those paragraphs (standard,
26646  quote, and the like).
26647  The label tag is of course omitted if the paragraph does not have a label
26648  and, at present, is always 
26649 \begin_inset Flex Code
26650 status collapsed
26651
26652 \begin_layout Plain Layout
26653 span
26654 \end_layout
26655
26656 \end_inset
26657
26658 .
26659  The inner tag is optional and, by default, does not appear.
26660 \end_layout
26661
26662 \begin_layout Standard
26663 The specific tags and attributes output for each inset can be controlled
26664  by means of the following layout tags.
26665 \end_layout
26666
26667 \begin_layout Description
26668 \begin_inset Flex Code
26669 status collapsed
26670
26671 \begin_layout Plain Layout
26672 HTMLAttr
26673 \end_layout
26674
26675 \end_inset
26676
26677  [
26678 \begin_inset Flex Code
26679 status collapsed
26680
26681 \begin_layout Plain Layout
26682 string
26683 \end_layout
26684
26685 \end_inset
26686
26687 ] Specifies attribute information to be output with the main tag.
26688  For example, 
26689 \begin_inset Quotes eld
26690 \end_inset
26691
26692
26693 \begin_inset Flex Code
26694 status collapsed
26695
26696 \begin_layout Plain Layout
26697 class=`myinset' onclick=`\SpecialChar ldots
26698 '
26699 \end_layout
26700
26701 \end_inset
26702
26703
26704 \begin_inset Quotes erd
26705 \end_inset
26706
26707 .
26708  By default, \SpecialChar LyX
26709  will output 
26710 \begin_inset Quotes eld
26711 \end_inset
26712
26713
26714 \begin_inset Flex Code
26715 status collapsed
26716
26717 \begin_layout Plain Layout
26718 class=`insetname'
26719 \end_layout
26720
26721 \end_inset
26722
26723
26724 \begin_inset Quotes erd
26725 \end_inset
26726
26727 , where 
26728 \begin_inset Flex Code
26729 status collapsed
26730
26731 \begin_layout Plain Layout
26732 insetname
26733 \end_layout
26734
26735 \end_inset
26736
26737  is the \SpecialChar LyX
26738  name of the inset, made lowercase and with non-alphanumeric characters
26739  converted to underscores, for example: footnote.
26740 \end_layout
26741
26742 \begin_layout Description
26743 \begin_inset Flex Code
26744 status collapsed
26745
26746 \begin_layout Plain Layout
26747 HTMLForceCSS
26748 \end_layout
26749
26750 \end_inset
26751
26752  [
26753 \begin_inset Flex Code
26754 status collapsed
26755
26756 \begin_layout Plain Layout
26757
26758 \emph on
26759 0
26760 \emph default
26761 ,1
26762 \end_layout
26763
26764 \end_inset
26765
26766 ] Whether to output the default CSS information \SpecialChar LyX
26767  generates for this layout,
26768  even if additional information is explicitly provided via 
26769 \begin_inset Flex Code
26770 status collapsed
26771
26772 \begin_layout Plain Layout
26773 HTMLStyle
26774 \end_layout
26775
26776 \end_inset
26777
26778 .
26779  Setting this to 
26780 \begin_inset Flex Code
26781 status collapsed
26782
26783 \begin_layout Plain Layout
26784 1
26785 \end_layout
26786
26787 \end_inset
26788
26789  allows you to alter or augment the generated CSS, rather than to override
26790  it completely.
26791  Default is 0.
26792 \end_layout
26793
26794 \begin_layout Description
26795 \begin_inset Flex Code
26796 status collapsed
26797
26798 \begin_layout Plain Layout
26799 HTMLInnerAttr
26800 \end_layout
26801
26802 \end_inset
26803
26804  [
26805 \begin_inset Flex Code
26806 status collapsed
26807
26808 \begin_layout Plain Layout
26809 string
26810 \end_layout
26811
26812 \end_inset
26813
26814 ] Attributes for the inner tag.
26815  Defaults to
26816 \begin_inset Newline newline
26817 \end_inset
26818
26819
26820 \begin_inset Quotes eld
26821 \end_inset
26822
26823
26824 \begin_inset Flex Code
26825 status collapsed
26826
26827 \begin_layout Plain Layout
26828 class=`insetname_inner'
26829 \end_layout
26830
26831 \end_inset
26832
26833
26834 \begin_inset Quotes erd
26835 \end_inset
26836
26837 .
26838 \end_layout
26839
26840 \begin_layout Description
26841 \begin_inset Flex Code
26842 status collapsed
26843
26844 \begin_layout Plain Layout
26845 HTMLInnerTag
26846 \end_layout
26847
26848 \end_inset
26849
26850  [
26851 \begin_inset Flex Code
26852 status collapsed
26853
26854 \begin_layout Plain Layout
26855 string
26856 \end_layout
26857
26858 \end_inset
26859
26860 ] The inner tag, replacing 
26861 \begin_inset Flex Code
26862 status collapsed
26863
26864 \begin_layout Plain Layout
26865 innertag
26866 \end_layout
26867
26868 \end_inset
26869
26870  in the examples above.
26871  By default, there is none.
26872 \end_layout
26873
26874 \begin_layout Description
26875 \begin_inset Flex Code
26876 status collapsed
26877
26878 \begin_layout Plain Layout
26879 HTMLIsBlock
26880 \end_layout
26881
26882 \end_inset
26883
26884  [
26885 \begin_inset Flex Code
26886 status collapsed
26887
26888 \begin_layout Plain Layout
26889 0,
26890 \emph on
26891 1
26892 \end_layout
26893
26894 \end_inset
26895
26896 ] Whether this inset represents a standalone block of text (such as a footnote)
26897  or instead represents material that is included in the surrounding text
26898  (such as a branch).
26899  Defaults to 1.
26900 \end_layout
26901
26902 \begin_layout Description
26903 \begin_inset Flex Code
26904 status collapsed
26905
26906 \begin_layout Plain Layout
26907 HTMLLabel
26908 \end_layout
26909
26910 \end_inset
26911
26912  [
26913 \begin_inset Flex Code
26914 status collapsed
26915
26916 \begin_layout Plain Layout
26917 string
26918 \end_layout
26919
26920 \end_inset
26921
26922 ] A label for this inset, possibly including a reference to a counter.
26923  For example, for footnote, it might be: 
26924 \begin_inset Flex Code
26925 status collapsed
26926
26927 \begin_layout Plain Layout
26928
26929 \backslash
26930 arabic{footnote}
26931 \end_layout
26932
26933 \end_inset
26934
26935 .
26936  This is optional, and there is no default.
26937 \end_layout
26938
26939 \begin_layout Description
26940 \begin_inset Flex Code
26941 status collapsed
26942
26943 \begin_layout Plain Layout
26944 HTMLPreamble
26945 \end_layout
26946
26947 \end_inset
26948
26949  Information to be output in the 
26950 \begin_inset Flex Code
26951 status collapsed
26952
26953 \begin_layout Plain Layout
26954 <head>
26955 \end_layout
26956
26957 \end_inset
26958
26959  section when this style is used.
26960  This might, for example, be used to include a 
26961 \begin_inset Flex Code
26962 status collapsed
26963
26964 \begin_layout Plain Layout
26965 <script>
26966 \end_layout
26967
26968 \end_inset
26969
26970  block defining an 
26971 \begin_inset Flex Code
26972 status collapsed
26973
26974 \begin_layout Plain Layout
26975 onclick
26976 \end_layout
26977
26978 \end_inset
26979
26980  handler.
26981 \end_layout
26982
26983 \begin_layout Description
26984 \begin_inset Flex Code
26985 status collapsed
26986
26987 \begin_layout Plain Layout
26988 HTMLStyle
26989 \end_layout
26990
26991 \end_inset
26992
26993  CSS style information to be included when this style is used.
26994  Note that this will automatically be wrapped in a layout-generated 
26995 \begin_inset Flex Code
26996 status collapsed
26997
26998 \begin_layout Plain Layout
26999 <style>
27000 \end_layout
27001
27002 \end_inset
27003
27004  block, so only the CSS itself need be included.
27005 \end_layout
27006
27007 \begin_layout Description
27008 \begin_inset Flex Code
27009 status collapsed
27010
27011 \begin_layout Plain Layout
27012 HTMLTag
27013 \end_layout
27014
27015 \end_inset
27016
27017  [
27018 \begin_inset Flex Code
27019 status collapsed
27020
27021 \begin_layout Plain Layout
27022 string
27023 \end_layout
27024
27025 \end_inset
27026
27027 ] The tag to be used for the main label, replacing 
27028 \begin_inset Flex Code
27029 status collapsed
27030
27031 \begin_layout Plain Layout
27032 tag
27033 \end_layout
27034
27035 \end_inset
27036
27037  in the examples above.
27038  The default depends upon the setting of 
27039 \begin_inset Flex Code
27040 status collapsed
27041
27042 \begin_layout Plain Layout
27043 MultiPar
27044 \end_layout
27045
27046 \end_inset
27047
27048 : If 
27049 \begin_inset Flex Code
27050 status collapsed
27051
27052 \begin_layout Plain Layout
27053 MultiPar
27054 \end_layout
27055
27056 \end_inset
27057
27058  is true, the default is 
27059 \begin_inset Flex Code
27060 status collapsed
27061
27062 \begin_layout Plain Layout
27063 div
27064 \end_layout
27065
27066 \end_inset
27067
27068 ; if it is false, the default is 
27069 \begin_inset Flex Code
27070 status collapsed
27071
27072 \begin_layout Plain Layout
27073 span
27074 \end_layout
27075
27076 \end_inset
27077
27078 .
27079 \end_layout
27080
27081 \begin_layout Subsection
27082 Float XHTML
27083 \end_layout
27084
27085 \begin_layout Standard
27086 The XHTML output for floats too can be controlled by layout information.
27087  The output has the following form:
27088 \end_layout
27089
27090 \begin_layout LyX-Code
27091 <tag attr=
27092 \begin_inset Quotes erd
27093 \end_inset
27094
27095 value
27096 \begin_inset Quotes erd
27097 \end_inset
27098
27099 >
27100 \end_layout
27101
27102 \begin_layout LyX-Code
27103 Contents of the float.
27104 \end_layout
27105
27106 \begin_layout LyX-Code
27107 </tag>
27108 \end_layout
27109
27110 \begin_layout Standard
27111 The caption, if there is one, is a separate inset and will be output as
27112  such.
27113  Its appearance can be controlled via the InsetLayout for caption insets.
27114  
27115 \end_layout
27116
27117 \begin_layout Description
27118 \begin_inset Flex Code
27119 status collapsed
27120
27121 \begin_layout Plain Layout
27122 HTMLAttr
27123 \end_layout
27124
27125 \end_inset
27126
27127  [
27128 \begin_inset Flex Code
27129 status collapsed
27130
27131 \begin_layout Plain Layout
27132 string
27133 \end_layout
27134
27135 \end_inset
27136
27137 ] Specifies attribute information to be output with the main tag.
27138  For example, 
27139 \begin_inset Quotes eld
27140 \end_inset
27141
27142
27143 \begin_inset Flex Code
27144 status collapsed
27145
27146 \begin_layout Plain Layout
27147 class=`myfloat' onclick=`\SpecialChar ldots
27148 '
27149 \end_layout
27150
27151 \end_inset
27152
27153
27154 \begin_inset Quotes erd
27155 \end_inset
27156
27157 .
27158  By default, \SpecialChar LyX
27159  will output 
27160 \begin_inset Quotes eld
27161 \end_inset
27162
27163
27164 \begin_inset Flex Code
27165 status collapsed
27166
27167 \begin_layout Plain Layout
27168 class=`float float-floattype'
27169 \end_layout
27170
27171 \end_inset
27172
27173
27174 \begin_inset Quotes erd
27175 \end_inset
27176
27177 , where 
27178 \begin_inset Flex Code
27179 status collapsed
27180
27181 \begin_layout Plain Layout
27182 floattype
27183 \end_layout
27184
27185 \end_inset
27186
27187  is \SpecialChar LyX
27188 's name for this type of float, as determined by the float declaration
27189  (see 
27190 \begin_inset CommandInset ref
27191 LatexCommand ref
27192 reference "subsec:Floats"
27193
27194 \end_inset
27195
27196 ), though made lowercase and with non-alphanumeric characters converted
27197  to underscores, for example: float-table.
27198 \end_layout
27199
27200 \begin_layout Description
27201 \begin_inset Flex Code
27202 status collapsed
27203
27204 \begin_layout Plain Layout
27205 HTMLStyle
27206 \end_layout
27207
27208 \end_inset
27209
27210  CSS style information to be included when this float is used.
27211  Note that this will automatically be wrapped in a layout-generated 
27212 \begin_inset Flex Code
27213 status collapsed
27214
27215 \begin_layout Plain Layout
27216 <style>
27217 \end_layout
27218
27219 \end_inset
27220
27221  block, so only the CSS itself need be included.
27222 \end_layout
27223
27224 \begin_layout Description
27225 \begin_inset Flex Code
27226 status collapsed
27227
27228 \begin_layout Plain Layout
27229 HTMLTag
27230 \end_layout
27231
27232 \end_inset
27233
27234  [
27235 \begin_inset Flex Code
27236 status collapsed
27237
27238 \begin_layout Plain Layout
27239 string
27240 \end_layout
27241
27242 \end_inset
27243
27244 ] The tag to be used for this float, replacing 
27245 \begin_inset Quotes eld
27246 \end_inset
27247
27248
27249 \begin_inset Flex Code
27250 status collapsed
27251
27252 \begin_layout Plain Layout
27253 tag
27254 \end_layout
27255
27256 \end_inset
27257
27258
27259 \begin_inset Quotes erd
27260 \end_inset
27261
27262  in the example above.
27263  The default is 
27264 \begin_inset Flex Code
27265 status collapsed
27266
27267 \begin_layout Plain Layout
27268 div
27269 \end_layout
27270
27271 \end_inset
27272
27273  and will rarely need changing.
27274 \end_layout
27275
27276 \begin_layout Subsection
27277 Bibliography formatting
27278 \end_layout
27279
27280 \begin_layout Standard
27281 The bibliography can be formatted using 
27282 \begin_inset Flex Code
27283 status collapsed
27284
27285 \begin_layout Plain Layout
27286 CiteFormat
27287 \end_layout
27288
27289 \end_inset
27290
27291  blocks.
27292  See 
27293 \begin_inset CommandInset ref
27294 LatexCommand ref
27295 reference "subsec:Citation-format-description"
27296
27297 \end_inset
27298
27299  for the details.
27300 \end_layout
27301
27302 \begin_layout Subsection
27303 \SpecialChar LyX
27304 -generated CSS
27305 \end_layout
27306
27307 \begin_layout Standard
27308 We have several times mentioned that \SpecialChar LyX
27309  will generate default CSS style rules
27310  for both insets and paragraph styles, based upon the other layout information
27311  that is provided.
27312  In this section, we shall say a word about which layout information \SpecialChar LyX
27313  uses
27314  and how.
27315 \end_layout
27316
27317 \begin_layout Standard
27318 At present, \SpecialChar LyX
27319  auto-generates CSS only for font information, making use of
27320  the 
27321 \begin_inset Flex Code
27322 status collapsed
27323
27324 \begin_layout Plain Layout
27325 Family
27326 \end_layout
27327
27328 \end_inset
27329
27330
27331 \begin_inset Flex Code
27332 status collapsed
27333
27334 \begin_layout Plain Layout
27335 Series
27336 \end_layout
27337
27338 \end_inset
27339
27340
27341 \begin_inset Flex Code
27342 status collapsed
27343
27344 \begin_layout Plain Layout
27345 Shape
27346 \end_layout
27347
27348 \end_inset
27349
27350 , and 
27351 \begin_inset Flex Code
27352 status collapsed
27353
27354 \begin_layout Plain Layout
27355 Size
27356 \end_layout
27357
27358 \end_inset
27359
27360  specified in the 
27361 \begin_inset Flex Code
27362 status collapsed
27363
27364 \begin_layout Plain Layout
27365 Font
27366 \end_layout
27367
27368 \end_inset
27369
27370  declaration (see 
27371 \begin_inset CommandInset ref
27372 LatexCommand ref
27373 reference "subsec:Font-description"
27374
27375 \end_inset
27376
27377 ).
27378  The translation is mostly straightforward and obvious.
27379  For example, 
27380 \begin_inset Quotes eld
27381 \end_inset
27382
27383
27384 \begin_inset Flex Code
27385 status collapsed
27386
27387 \begin_layout Plain Layout
27388 Family Sans
27389 \end_layout
27390
27391 \end_inset
27392
27393
27394 \begin_inset Quotes erd
27395 \end_inset
27396
27397  becomes 
27398 \begin_inset Quotes eld
27399 \end_inset
27400
27401
27402 \begin_inset Flex Code
27403 status collapsed
27404
27405 \begin_layout Plain Layout
27406 font-family: sans-serif;
27407 \end_layout
27408
27409 \end_inset
27410
27411
27412 \begin_inset Quotes erd
27413 \end_inset
27414
27415 .
27416  The correspondence of \SpecialChar LyX
27417  sizes and CSS sizes is a little less obvious but
27418  nonetheless intuitive.
27419  See the 
27420 \begin_inset Flex Code
27421 status collapsed
27422
27423 \begin_layout Plain Layout
27424 getSizeCSS()
27425 \end_layout
27426
27427 \end_inset
27428
27429  function in 
27430 \begin_inset Flex URL
27431 status collapsed
27432
27433 \begin_layout Plain Layout
27434
27435 src/FontInfo.cpp
27436 \end_layout
27437
27438 \end_inset
27439
27440  for the details.
27441 \change_inserted -970929547 1496610908
27442
27443 \end_layout
27444
27445 \begin_layout Section
27446
27447 \change_inserted -970929547 1496610966
27448 \begin_inset CommandInset label
27449 LatexCommand label
27450 name "sec:Tags-for-DocBook"
27451
27452 \end_inset
27453
27454 Tags for DocBook output
27455 \end_layout
27456
27457 \begin_layout Standard
27458
27459 \change_inserted -970929547 1496611615
27460 As with \SpecialChar LaTeX
27461  or XHTML, the format of \SpecialChar LyX
27462 's DocBook output is also controlled by
27463  layout information.
27464  In general, \SpecialChar LyX
27465  provides sensible defaults; however, much of the styling is
27466  lost during the conversion, as DocBook is strictly semantic and does not
27467  allow formatting.
27468  When possible, information from \SpecialChar LyX
27469  will be rendered in 
27470 \family typewriter
27471 role
27472 \family default
27473  attributes.
27474  
27475 \end_layout
27476
27477 \begin_layout Standard
27478
27479 \change_inserted -970929547 1496612080
27480 In many cases, then, you may not have to do anything at all to get acceptable
27481  DocBook output for your own environments, custom insets, and so forth.
27482  But in some cases you will, and so \SpecialChar LyX
27483  provides a number of layout tags that
27484  can be used to customize the DocBook that is generated.
27485 \end_layout
27486
27487 \begin_layout Standard
27488
27489 \change_inserted -970929547 1515109912
27490 Labels are rarely output, as they are redundant in DocBook: this information
27491  is carried by the tags themselves, and whether labels appear in the final
27492  documents (after processing of DocBook files) is controlled by the stylesheets.
27493  However, sometimes, labels are not redundant content, such as definition
27494  lists: in this case, the term being defined will be the label.
27495  
27496 \end_layout
27497
27498 \begin_layout Subsection
27499
27500 \change_inserted 1075283030 1597699417
27501 \begin_inset CommandInset label
27502 LatexCommand label
27503 name "subsec:Paragraph-Style-DocBook"
27504
27505 \end_inset
27506
27507
27508 \change_deleted 1075283030 1597699417
27509
27510 \begin_inset CommandInset label
27511 LatexCommand label
27512 name "subsec:Paragraph-Style-XHTML-1"
27513
27514 \end_inset
27515
27516
27517 \change_inserted -970929547 1496610966
27518 Paragraph styles
27519 \end_layout
27520
27521 \begin_layout Standard
27522
27523 \change_inserted -970929547 1496612059
27524 The sort of DocBook \SpecialChar LyX
27525  outputs for a paragraph depends upon whether we are
27526  dealing with a normal paragraph, a command, or an environment, where this
27527  is itself determined by the contents of the corresponding 
27528 \begin_inset Flex Code
27529 status collapsed
27530
27531 \begin_layout Plain Layout
27532
27533 \change_inserted -970929547 1496610966
27534 \SpecialChar LaTeX
27535 Type
27536 \change_unchanged
27537
27538 \end_layout
27539
27540 \end_inset
27541
27542  tag.
27543  
27544 \end_layout
27545
27546 \begin_layout Standard
27547
27548 \change_inserted -970929547 1496612107
27549 For a command or normal paragraph, the output DocBook has the following
27550  form:
27551 \end_layout
27552
27553 \begin_layout LyX-Code
27554
27555 \change_inserted -970929547 1515109666
27556 <tag attr>
27557 \end_layout
27558
27559 \begin_layout LyX-Code
27560
27561 \change_inserted -970929547 1496610966
27562 Contents of the paragraph.
27563 \end_layout
27564
27565 \begin_layout LyX-Code
27566
27567 \change_inserted -970929547 1496610966
27568 </tag>
27569 \end_layout
27570
27571 \begin_layout Standard
27572
27573 \change_inserted -970929547 1515109821
27574 For an environment that is not some sort of list, the generated DocBook
27575  takes this form:
27576 \end_layout
27577
27578 \begin_layout LyX-Code
27579
27580 \change_inserted -970929547 1515109671
27581 <tag attr>
27582 \end_layout
27583
27584 \begin_layout LyX-Code
27585
27586 \change_inserted -970929547 1496612114
27587 <itemtag>First paragraph.</itemtag>
27588 \end_layout
27589
27590 \begin_layout LyX-Code
27591
27592 \change_inserted -970929547 1496610966
27593 <itemtag>Second paragraph.</itemtag>
27594 \end_layout
27595
27596 \begin_layout LyX-Code
27597
27598 \change_inserted -970929547 1496610966
27599 </tag>
27600 \end_layout
27601
27602 \begin_layout Standard
27603
27604 \change_inserted -970929547 1515109825
27605 For a list, the resulting DocBook takes this form:
27606 \end_layout
27607
27608 \begin_layout LyX-Code
27609
27610 \change_inserted -970929547 1515109672
27611 <tag attr>
27612 \end_layout
27613
27614 \begin_layout LyX-Code
27615
27616 \change_inserted -970929547 1515109676
27617 <itemtag attr>First item.</itemtag>
27618 \end_layout
27619
27620 \begin_layout LyX-Code
27621
27622 \change_inserted -970929547 1515109678
27623 <itemtag attr>Second item.</itemtag>
27624 \end_layout
27625
27626 \begin_layout LyX-Code
27627
27628 \change_inserted -970929547 1496610966
27629 </tag>
27630 \end_layout
27631
27632 \begin_layout Standard
27633
27634 \change_inserted -970929547 1496612243
27635 The specific tags and roles output for each paragraph type can be controlled
27636  by means of the layout tags we are about to describe.
27637  Please note that, due to the very nature of DocBook, no sensible defaults
27638  really exist, and the values must always be carefully chosen.
27639  
27640 \end_layout
27641
27642 \begin_layout Description
27643
27644 \change_inserted -970929547 1515110057
27645 \begin_inset Flex Code
27646 status collapsed
27647
27648 \begin_layout Plain Layout
27649
27650 \change_inserted -970929547 1515109656
27651 DocBookAttr
27652 \change_unchanged
27653
27654 \end_layout
27655
27656 \end_inset
27657
27658  [
27659 \begin_inset Flex Code
27660 status collapsed
27661
27662 \begin_layout Plain Layout
27663
27664 \change_inserted -970929547 1496610966
27665 string
27666 \change_unchanged
27667
27668 \end_layout
27669
27670 \end_inset
27671
27672 ] Specifies attribute information to be output with the main tag, replacing
27673  
27674 \begin_inset Quotes eld
27675 \end_inset
27676
27677
27678 \begin_inset Flex Code
27679 status collapsed
27680
27681 \begin_layout Plain Layout
27682
27683 \change_inserted -970929547 1515110057
27684 attr
27685 \change_unchanged
27686
27687 \end_layout
27688
27689 \end_inset
27690
27691
27692 \begin_inset Quotes erd
27693 \end_inset
27694
27695  in the example above.
27696  This information can be used in further processing of the DocBook files.
27697  
27698 \change_unchanged
27699
27700 \end_layout
27701
27702 \begin_layout Description
27703
27704 \change_inserted -970929547 1496612296
27705 \begin_inset Flex Code
27706 status collapsed
27707
27708 \begin_layout Plain Layout
27709
27710 \change_inserted -970929547 1496612269
27711 DocBookTag
27712 \change_unchanged
27713
27714 \end_layout
27715
27716 \end_inset
27717
27718  [
27719 \begin_inset Flex Code
27720 status collapsed
27721
27722 \begin_layout Plain Layout
27723
27724 \change_inserted -970929547 1496610966
27725 string
27726 \change_unchanged
27727
27728 \end_layout
27729
27730 \end_inset
27731
27732 ] The tag to be used for this inset, replacing 
27733 \begin_inset Quotes eld
27734 \end_inset
27735
27736
27737 \begin_inset Flex Code
27738 status collapsed
27739
27740 \begin_layout Plain Layout
27741
27742 \change_inserted -970929547 1496612296
27743 tag
27744 \change_unchanged
27745
27746 \end_layout
27747
27748 \end_inset
27749
27750
27751 \begin_inset Quotes erd
27752 \end_inset
27753
27754  in the example above.
27755  The default is the name of the float and always needs to be changed, as
27756  DocBook provides no generic tag.
27757 \change_inserted 1075283030 1597698868
27758
27759 \end_layout
27760
27761 \begin_layout Description
27762
27763 \change_inserted 1075283030 1597699399
27764 \begin_inset Flex Code
27765 status collapsed
27766
27767 \begin_layout Plain Layout
27768
27769 \change_inserted 1075283030 1597698872
27770 DocBookTagType
27771 \change_unchanged
27772
27773 \end_layout
27774
27775 \end_inset
27776
27777  [
27778 \begin_inset Flex Code
27779 status collapsed
27780
27781 \begin_layout Plain Layout
27782
27783 \change_inserted 1075283030 1597700585
27784 block, paragraph, inline
27785 \change_unchanged
27786
27787 \end_layout
27788
27789 \end_inset
27790
27791 ] The new-line policy for this tag, see Section
27792 \begin_inset space ~
27793 \end_inset
27794
27795
27796 \begin_inset CommandInset ref
27797 LatexCommand ref
27798 reference "subsec:DocBook-New-line-policy"
27799 plural "false"
27800 caps "false"
27801 noprefix "false"
27802
27803 \end_inset
27804
27805  for the details.
27806  
27807 \change_unchanged
27808
27809 \end_layout
27810
27811 \begin_layout Subsection
27812
27813 \change_inserted 1075283030 1597699385
27814 New-line policy
27815 \begin_inset CommandInset label
27816 LatexCommand label
27817 name "subsec:DocBook-New-line-policy"
27818
27819 \end_inset
27820
27821
27822 \end_layout
27823
27824 \begin_layout Standard
27825
27826 \change_inserted 1075283030 1597698993
27827 For all tags, there are three possible policies for outputting new lines
27828  (given in the 
27829 \begin_inset Flex Code
27830 status collapsed
27831
27832 \begin_layout Plain Layout
27833
27834 \change_inserted 1075283030 1597698987
27835 DocBook*TagType
27836 \change_unchanged
27837
27838 \end_layout
27839
27840 \end_inset
27841
27842  attribute): 
27843 \end_layout
27844
27845 \begin_layout Itemize
27846
27847 \change_inserted 1075283030 1597699279
27848 \begin_inset Quotes eld
27849 \end_inset
27850
27851
27852 \begin_inset Flex Code
27853 status collapsed
27854
27855 \begin_layout Plain Layout
27856
27857 \change_inserted 1075283030 1597699012
27858 block
27859 \change_unchanged
27860
27861 \end_layout
27862
27863 \end_inset
27864
27865
27866 \begin_inset Quotes erd
27867 \end_inset
27868
27869 : the opening and closing tags are on their own lines (i.e.
27870  a line feed after and before the opening and the closing tags).
27871  Typical elements are floats.
27872  For instance: 
27873 \end_layout
27874
27875 \begin_layout LyX-Code
27876
27877 \change_inserted 1075283030 1597699194
27878 Content before
27879 \end_layout
27880
27881 \begin_layout LyX-Code
27882
27883 \change_inserted 1075283030 1597699194
27884 <blocktag>
27885 \end_layout
27886
27887 \begin_layout LyX-Code
27888
27889 \change_inserted 1075283030 1597699098
27890   Contents of the block.
27891 \end_layout
27892
27893 \begin_layout LyX-Code
27894
27895 \change_inserted 1075283030 1597699196
27896 </blocktag>
27897 \end_layout
27898
27899 \begin_layout LyX-Code
27900
27901 \change_inserted 1075283030 1597699198
27902 Content after
27903 \end_layout
27904
27905 \begin_layout Itemize
27906
27907 \change_inserted 1075283030 1597699289
27908 \begin_inset Quotes eld
27909 \end_inset
27910
27911
27912 \begin_inset Flex Code
27913 status collapsed
27914
27915 \begin_layout Plain Layout
27916
27917 \change_inserted 1075283030 1597699113
27918 paragraph
27919 \change_unchanged
27920
27921 \end_layout
27922
27923 \end_inset
27924
27925
27926 \begin_inset Quotes erd
27927 \end_inset
27928
27929 : the opening and closing tags are on the same, new line; a line feed is
27930  output before the opening tag and after the closing tag.
27931  Typical elements are paragraphs and list items.
27932  For instance: 
27933 \end_layout
27934
27935 \begin_layout LyX-Code
27936
27937 \change_inserted 1075283030 1597699186
27938 Content before
27939 \end_layout
27940
27941 \begin_layout LyX-Code
27942
27943 \change_inserted 1075283030 1597699357
27944 <paratag>Contents of the paragraph.</paratag>
27945 \end_layout
27946
27947 \begin_layout LyX-Code
27948
27949 \change_inserted 1075283030 1597699231
27950 Content after
27951 \end_layout
27952
27953 \begin_layout Itemize
27954
27955 \change_inserted 1075283030 1597699343
27956 \begin_inset Quotes eld
27957 \end_inset
27958
27959
27960 \begin_inset Flex Code
27961 status collapsed
27962
27963 \begin_layout Plain Layout
27964
27965 \change_inserted 1075283030 1597699307
27966 inline
27967 \change_unchanged
27968
27969 \end_layout
27970
27971 \end_inset
27972
27973
27974 \begin_inset Quotes erd
27975 \end_inset
27976
27977 : the opening and closing tags are on the same line as the rest of the content.
27978  No line feeds are output.
27979  Typical elements are fonts.
27980  For instance: 
27981 \end_layout
27982
27983 \begin_layout LyX-Code
27984
27985 \change_inserted 1075283030 1597699585
27986 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
27987 \end_layout
27988
27989 \begin_layout Standard
27990
27991 \change_inserted 1075283030 1597699585
27992 The default value is always 
27993 \begin_inset Quotes eld
27994 \end_inset
27995
27996
27997 \begin_inset Flex Code
27998 status collapsed
27999
28000 \begin_layout Plain Layout
28001
28002 \change_inserted 1075283030 1597699585
28003 block
28004 \change_unchanged
28005
28006 \end_layout
28007
28008 \end_inset
28009
28010
28011 \begin_inset Quotes erd
28012 \end_inset
28013
28014 .
28015 \change_unchanged
28016
28017 \end_layout
28018
28019 \begin_layout Subsection
28020
28021 \change_inserted -970929547 1515111533
28022 InsetLayout DocBook
28023 \change_unchanged
28024
28025 \end_layout
28026
28027 \begin_layout Standard
28028
28029 \change_inserted -970929547 1496611894
28030 The DocBook output of insets can also be controlled by information in layout
28031  files.
28032 \end_layout
28033
28034 \begin_layout Standard
28035
28036 \change_inserted -970929547 1496612045
28037 The DocBook \SpecialChar LyX
28038  outputs for an inset has the following form:
28039 \end_layout
28040
28041 \begin_layout LyX-Code
28042
28043 \change_inserted -970929547 1515110861
28044 <wrappertag wrapperattr>
28045 \end_layout
28046
28047 \begin_layout LyX-Code
28048
28049 \change_inserted -970929547 1515110868
28050   <tag attr>
28051 \end_layout
28052
28053 \begin_layout LyX-Code
28054
28055 \change_inserted -970929547 1515110869
28056     <innertag innerattr>
28057 \end_layout
28058
28059 \begin_layout LyX-Code
28060
28061 \change_inserted -970929547 1515110869
28062       Contents of the inset.
28063 \end_layout
28064
28065 \begin_layout LyX-Code
28066
28067 \change_inserted -970929547 1515110870
28068     </innertag>
28069 \end_layout
28070
28071 \begin_layout LyX-Code
28072
28073 \change_inserted -970929547 1515110871
28074   </tag>
28075 \end_layout
28076
28077 \begin_layout LyX-Code
28078
28079 \change_inserted -970929547 1515111172
28080 </wrappertag>
28081 \end_layout
28082
28083 \begin_layout Standard
28084
28085 \change_inserted -970929547 1515111186
28086 For an itemising inset, it rather looks like this: 
28087 \end_layout
28088
28089 \begin_layout LyX-Code
28090
28091 \change_inserted -970929547 1515111186
28092 <wrappertag wrapperattr>
28093 \end_layout
28094
28095 \begin_layout LyX-Code
28096
28097 \change_inserted -970929547 1515111186
28098   <tag attr>
28099 \end_layout
28100
28101 \begin_layout LyX-Code
28102
28103 \change_inserted -970929547 1515111186
28104     <innertag innerattr>
28105 \end_layout
28106
28107 \begin_layout LyX-Code
28108
28109 \change_inserted -970929547 1515111362
28110       <itemwrappertag itemwrapperattr>
28111 \end_layout
28112
28113 \begin_layout LyX-Code
28114
28115 \change_inserted -970929547 1515111364
28116         <itemlabeltag itemattr>
28117 \end_layout
28118
28119 \begin_layout LyX-Code
28120
28121 \change_inserted -970929547 1515111367
28122           Label of the first item.
28123 \end_layout
28124
28125 \begin_layout LyX-Code
28126
28127 \change_inserted -970929547 1515111362
28128         </itemtag>
28129 \change_unchanged
28130
28131 \end_layout
28132
28133 \begin_layout LyX-Code
28134
28135 \change_inserted -970929547 1515111517
28136         <itemtag itemattr>
28137 \end_layout
28138
28139 \begin_layout LyX-Code
28140
28141 \change_inserted -970929547 1515111517
28142           <itemtag itemattr>
28143 \change_unchanged
28144
28145 \end_layout
28146
28147 \begin_layout LyX-Code
28148
28149 \change_inserted -970929547 1515111516
28150             Contents of the first item.
28151 \end_layout
28152
28153 \begin_layout LyX-Code
28154
28155 \change_inserted -970929547 1515111514
28156           </itemtag>
28157 \change_unchanged
28158
28159 \end_layout
28160
28161 \begin_layout LyX-Code
28162
28163 \change_inserted -970929547 1515111247
28164         </itemtag>
28165 \change_unchanged
28166
28167 \end_layout
28168
28169 \begin_layout LyX-Code
28170
28171 \change_inserted -970929547 1515111221
28172       </itemwrappertag>
28173 \end_layout
28174
28175 \begin_layout LyX-Code
28176
28177 \change_inserted -970929547 1515111370
28178       <itemwrappertag itemwrapperattr>
28179 \end_layout
28180
28181 \begin_layout LyX-Code
28182
28183 \change_inserted -970929547 1515111370
28184         <itemlabeltag itemattr>
28185 \end_layout
28186
28187 \begin_layout LyX-Code
28188
28189 \change_inserted -970929547 1515111372
28190           Label of the second item.
28191 \end_layout
28192
28193 \begin_layout LyX-Code
28194
28195 \change_inserted -970929547 1515111370
28196         </itemtag>
28197 \change_unchanged
28198
28199 \end_layout
28200
28201 \begin_layout LyX-Code
28202
28203 \change_inserted -970929547 1515111504
28204         <itemtag itemattr>
28205 \end_layout
28206
28207 \begin_layout LyX-Code
28208
28209 \change_inserted -970929547 1515111505
28210           <itemtag itemattr>
28211 \change_unchanged
28212
28213 \end_layout
28214
28215 \begin_layout LyX-Code
28216
28217 \change_inserted -970929547 1515111507
28218             Contents of the second item.
28219 \end_layout
28220
28221 \begin_layout LyX-Code
28222
28223 \change_inserted -970929547 1515111509
28224           </itemtag>
28225 \change_unchanged
28226
28227 \end_layout
28228
28229 \begin_layout LyX-Code
28230
28231 \change_inserted -970929547 1515111251
28232         </itemtag>
28233 \change_unchanged
28234
28235 \end_layout
28236
28237 \begin_layout LyX-Code
28238
28239 \change_inserted -970929547 1515111221
28240       </itemwrappertag>
28241 \change_unchanged
28242
28243 \end_layout
28244
28245 \begin_layout LyX-Code
28246
28247 \change_inserted -970929547 1515111219
28248       ...
28249 \change_unchanged
28250
28251 \end_layout
28252
28253 \begin_layout LyX-Code
28254
28255 \change_inserted -970929547 1515111186
28256     </innertag>
28257 \end_layout
28258
28259 \begin_layout LyX-Code
28260
28261 \change_inserted -970929547 1515111186
28262   </tag>
28263 \end_layout
28264
28265 \begin_layout LyX-Code
28266
28267 \change_inserted -970929547 1515111186
28268 </wrappertag>
28269 \end_layout
28270
28271 \begin_layout Standard
28272
28273 \change_inserted -970929547 1515111183
28274 If the inset permits multiple paragraphs—that is, if 
28275 \begin_inset Flex Code
28276 status collapsed
28277
28278 \begin_layout Plain Layout
28279
28280 \change_inserted -970929547 1496610966
28281 MultiPar
28282 \change_unchanged
28283
28284 \end_layout
28285
28286 \end_inset
28287
28288  is true—then the contents of the inset will itself be output as paragraphs
28289  formatted according to the styles used for those paragraphs (standard,
28290  quote, and the like).
28291  The inner tag is optional and, by default, does not appear.
28292 \end_layout
28293
28294 \begin_layout Standard
28295
28296 \change_inserted -970929547 1496610966
28297 The specific tags and attributes output for each inset can be controlled
28298  by means of the following layout tags.
28299 \end_layout
28300
28301 \begin_layout Description
28302
28303 \change_inserted -970929547 1515110317
28304 \begin_inset Flex Code
28305 status collapsed
28306
28307 \begin_layout Plain Layout
28308
28309 \change_inserted -970929547 1515109695
28310 DocBookAttr
28311 \change_unchanged
28312
28313 \end_layout
28314
28315 \end_inset
28316
28317  [
28318 \begin_inset Flex Code
28319 status collapsed
28320
28321 \begin_layout Plain Layout
28322
28323 \change_inserted -970929547 1496611854
28324 string
28325 \change_unchanged
28326
28327 \end_layout
28328
28329 \end_inset
28330
28331 ] Specifies attribute information to be output with the main tag, replacing
28332  
28333 \begin_inset Quotes eld
28334 \end_inset
28335
28336
28337 \begin_inset Flex Code
28338 status collapsed
28339
28340 \begin_layout Plain Layout
28341
28342 \change_inserted -970929547 1515110044
28343 attr
28344 \change_unchanged
28345
28346 \end_layout
28347
28348 \end_inset
28349
28350
28351 \begin_inset Quotes erd
28352 \end_inset
28353
28354  in the example above.
28355  This information can be used in further processing of the DocBook files.
28356  
28357 \end_layout
28358
28359 \begin_layout Description
28360
28361 \change_inserted -970929547 1515110973
28362 \begin_inset Flex Code
28363 status collapsed
28364
28365 \begin_layout Plain Layout
28366
28367 \change_inserted -970929547 1515110319
28368 DocBookInInfo
28369 \change_unchanged
28370
28371 \end_layout
28372
28373 \end_inset
28374
28375  [
28376 \begin_inset Flex Code
28377 status collapsed
28378
28379 \begin_layout Plain Layout
28380
28381 \change_inserted -970929547 1515110384
28382 never, always, maybe
28383 \change_unchanged
28384
28385 \end_layout
28386
28387 \end_inset
28388
28389 ] Specifies whether this tag goes into the 
28390 \begin_inset Flex Code
28391 status collapsed
28392
28393 \begin_layout Plain Layout
28394
28395 \change_inserted -970929547 1515110412
28396 <info>
28397 \change_unchanged
28398
28399 \end_layout
28400
28401 \end_inset
28402
28403  tag at the beginning of the parent layout.
28404  
28405 \begin_inset Flex Code
28406 status collapsed
28407
28408 \begin_layout Plain Layout
28409
28410 \change_inserted -970929547 1515110437
28411 never
28412 \change_unchanged
28413
28414 \end_layout
28415
28416 \end_inset
28417
28418  indicates that the tag never goes into 
28419 \begin_inset Flex Code
28420 status collapsed
28421
28422 \begin_layout Plain Layout
28423
28424 \change_inserted -970929547 1515110497
28425 <info>
28426 \change_unchanged
28427
28428 \end_layout
28429
28430 \end_inset
28431
28432  (this is default value, and corresponds to usual content).
28433  
28434 \begin_inset Flex Code
28435 status collapsed
28436
28437 \begin_layout Plain Layout
28438
28439 \change_inserted -970929547 1515110517
28440 always
28441 \change_unchanged
28442
28443 \end_layout
28444
28445 \end_inset
28446
28447  indicates that the tag always goes into 
28448 \begin_inset Flex Code
28449 status collapsed
28450
28451 \begin_layout Plain Layout
28452
28453 \change_inserted -970929547 1515110514
28454 <info>
28455 \change_unchanged
28456
28457 \end_layout
28458
28459 \end_inset
28460
28461  (this corresponds to usual metadata): if there is no 
28462 \begin_inset Flex Code
28463 status collapsed
28464
28465 \begin_layout Plain Layout
28466
28467 \change_inserted -970929547 1515110550
28468 <info>
28469 \change_unchanged
28470
28471 \end_layout
28472
28473 \end_inset
28474
28475  tag for the parent, one 
28476 \series bold
28477 will
28478 \series default
28479  be generated.
28480  
28481 \begin_inset Flex Code
28482 status collapsed
28483
28484 \begin_layout Plain Layout
28485
28486 \change_inserted -970929547 1515110540
28487 maybe
28488 \change_unchanged
28489
28490 \end_layout
28491
28492 \end_inset
28493
28494  indicates that the tag may go into 
28495 \begin_inset Flex Code
28496 status collapsed
28497
28498 \begin_layout Plain Layout
28499
28500 \change_inserted -970929547 1515110538
28501 <info>
28502 \change_unchanged
28503
28504 \end_layout
28505
28506 \end_inset
28507
28508  (this is only the case for titles): if there is no 
28509 \begin_inset Flex Code
28510 status collapsed
28511
28512 \begin_layout Plain Layout
28513
28514 \change_inserted -970929547 1515110585
28515 <info>
28516 \change_unchanged
28517
28518 \end_layout
28519
28520 \end_inset
28521
28522  tag for the parent, 
28523 \series bold
28524 none
28525 \series default
28526  will be generated, the corresponding tag will be output directly as content.
28527  
28528 \end_layout
28529
28530 \begin_layout Description
28531
28532 \change_inserted -970929547 1515111461
28533 \begin_inset Flex Code
28534 status collapsed
28535
28536 \begin_layout Plain Layout
28537
28538 \change_inserted -970929547 1515110974
28539 DocBookItemAttr
28540 \change_unchanged
28541
28542 \end_layout
28543
28544 \end_inset
28545
28546  [
28547 \begin_inset Flex Code
28548 status collapsed
28549
28550 \begin_layout Plain Layout
28551
28552 \change_inserted -970929547 1515110973
28553 string
28554 \change_unchanged
28555
28556 \end_layout
28557
28558 \end_inset
28559
28560 ] Specifies attribute information to be output with the item tag, replacing
28561  
28562 \begin_inset Quotes eld
28563 \end_inset
28564
28565
28566 \begin_inset Flex Code
28567 status collapsed
28568
28569 \begin_layout Plain Layout
28570
28571 \change_inserted -970929547 1515110984
28572 itemattr
28573 \change_unchanged
28574
28575 \end_layout
28576
28577 \end_inset
28578
28579
28580 \begin_inset Quotes erd
28581 \end_inset
28582
28583  in the example above.
28584  This information can be used in further processing of the DocBook files.
28585  
28586 \end_layout
28587
28588 \begin_layout Description
28589
28590 \change_inserted -970929547 1515111471
28591 \begin_inset Flex Code
28592 status collapsed
28593
28594 \begin_layout Plain Layout
28595
28596 \change_inserted -970929547 1515111465
28597 DocBookItemInnerAttr
28598 \change_unchanged
28599
28600 \end_layout
28601
28602 \end_inset
28603
28604  [
28605 \begin_inset Flex Code
28606 status collapsed
28607
28608 \begin_layout Plain Layout
28609
28610 \change_inserted -970929547 1515111461
28611 string
28612 \change_unchanged
28613
28614 \end_layout
28615
28616 \end_inset
28617
28618 ] Specifies attribute information to be output with the item inner tag,
28619  replacing 
28620 \begin_inset Quotes eld
28621 \end_inset
28622
28623
28624 \begin_inset Flex Code
28625 status collapsed
28626
28627 \begin_layout Plain Layout
28628
28629 \change_inserted -970929547 1515111476
28630 iteminnerattr
28631 \change_unchanged
28632
28633 \end_layout
28634
28635 \end_inset
28636
28637
28638 \begin_inset Quotes erd
28639 \end_inset
28640
28641  in the example above.
28642  This information can be used in further processing of the DocBook files.
28643  
28644 \end_layout
28645
28646 \begin_layout Description
28647
28648 \change_inserted -970929547 1515111494
28649 \begin_inset Flex Code
28650 status collapsed
28651
28652 \begin_layout Plain Layout
28653
28654 \change_inserted -970929547 1515111467
28655 DocBookItemInnerTag
28656 \change_unchanged
28657
28658 \end_layout
28659
28660 \end_inset
28661
28662  [
28663 \begin_inset Flex Code
28664 status collapsed
28665
28666 \begin_layout Plain Layout
28667
28668 \change_inserted -970929547 1515111461
28669 string
28670 \change_unchanged
28671
28672 \end_layout
28673
28674 \end_inset
28675
28676 ] The tag to be used for the item inner tag within the inset, replacing
28677  
28678 \begin_inset Quotes eld
28679 \end_inset
28680
28681
28682 \begin_inset Flex Code
28683 status collapsed
28684
28685 \begin_layout Plain Layout
28686
28687 \change_inserted -970929547 1515111486
28688 iteminnertag
28689 \change_unchanged
28690
28691 \end_layout
28692
28693 \end_inset
28694
28695
28696 \begin_inset Quotes erd
28697 \end_inset
28698
28699  in the example above.
28700  The default is 
28701 \begin_inset Flex Code
28702 status collapsed
28703
28704 \begin_layout Plain Layout
28705
28706 \change_inserted -970929547 1515111461
28707 NONE
28708 \change_unchanged
28709
28710 \end_layout
28711
28712 \end_inset
28713
28714 , indicating that there is no item inner tag: content is directly output
28715  without it for each itemised element.
28716  This parameter only makes sense when itemising layouts are used, such as
28717  lists.
28718  
28719 \change_inserted 1075283030 1598469472
28720 The most likely value is 
28721 \begin_inset Quotes eld
28722 \end_inset
28723
28724
28725 \begin_inset Flex Code
28726 status collapsed
28727
28728 \begin_layout Plain Layout
28729
28730 \change_inserted 1075283030 1598469476
28731 para
28732 \change_unchanged
28733
28734 \end_layout
28735
28736 \end_inset
28737
28738
28739 \begin_inset Quotes erd
28740 \end_inset
28741
28742 .
28743 \begin_inset Newline newline
28744 \end_inset
28745
28746 When a list item is split using a new line, the item inner tag will be repeated
28747  for each part of the paragraph, parts being separated by new lines.
28748  
28749 \end_layout
28750
28751 \begin_layout Description
28752
28753 \change_inserted 1075283030 1597699866
28754 \begin_inset Flex Code
28755 status collapsed
28756
28757 \begin_layout Plain Layout
28758
28759 \change_inserted 1075283030 1597699853
28760 DocBookItemInnerTagType
28761 \change_unchanged
28762
28763 \end_layout
28764
28765 \end_inset
28766
28767  [
28768 \begin_inset Flex Code
28769 status collapsed
28770
28771 \begin_layout Plain Layout
28772
28773 \change_inserted 1075283030 1597699866
28774 block, paragraph, inline
28775 \change_unchanged
28776
28777 \end_layout
28778
28779 \end_inset
28780
28781 ] The new-line policy for this tag, see Section
28782 \begin_inset space ~
28783 \end_inset
28784
28785
28786 \begin_inset CommandInset ref
28787 LatexCommand ref
28788 reference "subsec:DocBook-New-line-policy"
28789 plural "false"
28790 caps "false"
28791 noprefix "false"
28792
28793 \end_inset
28794
28795  for the details.
28796  
28797 \change_unchanged
28798
28799 \end_layout
28800
28801 \begin_layout Description
28802
28803 \change_inserted -970929547 1515111290
28804 \begin_inset Flex Code
28805 status collapsed
28806
28807 \begin_layout Plain Layout
28808
28809 \change_inserted -970929547 1515111283
28810 DocBookItemLabelAttr
28811 \change_unchanged
28812
28813 \end_layout
28814
28815 \end_inset
28816
28817  [
28818 \begin_inset Flex Code
28819 status collapsed
28820
28821 \begin_layout Plain Layout
28822
28823 \change_inserted -970929547 1515111279
28824 string
28825 \change_unchanged
28826
28827 \end_layout
28828
28829 \end_inset
28830
28831 ] Specifies attribute information to be output with the item label tag,
28832  replacing 
28833 \begin_inset Quotes eld
28834 \end_inset
28835
28836
28837 \begin_inset Flex Code
28838 status collapsed
28839
28840 \begin_layout Plain Layout
28841
28842 \change_inserted -970929547 1515111304
28843 itemlabelattr
28844 \change_unchanged
28845
28846 \end_layout
28847
28848 \end_inset
28849
28850
28851 \begin_inset Quotes erd
28852 \end_inset
28853
28854  in the example above.
28855  This information can be used in further processing of the DocBook files.
28856  
28857 \end_layout
28858
28859 \begin_layout Description
28860
28861 \change_inserted -970929547 1515111337
28862 \begin_inset Flex Code
28863 status collapsed
28864
28865 \begin_layout Plain Layout
28866
28867 \change_inserted -970929547 1515111285
28868 DocBookItemLabelTag
28869 \change_unchanged
28870
28871 \end_layout
28872
28873 \end_inset
28874
28875  [
28876 \begin_inset Flex Code
28877 status collapsed
28878
28879 \begin_layout Plain Layout
28880
28881 \change_inserted -970929547 1515111279
28882 string
28883 \change_unchanged
28884
28885 \end_layout
28886
28887 \end_inset
28888
28889 ] The tag to be used for the item label tag within the inset, replacing
28890  
28891 \begin_inset Quotes eld
28892 \end_inset
28893
28894
28895 \begin_inset Flex Code
28896 status collapsed
28897
28898 \begin_layout Plain Layout
28899
28900 \change_inserted -970929547 1515111311
28901 itemlabeltag
28902 \change_unchanged
28903
28904 \end_layout
28905
28906 \end_inset
28907
28908
28909 \begin_inset Quotes erd
28910 \end_inset
28911
28912  in the example above.
28913  This parameter only makes sense when itemising layouts are used with a
28914  notion of labels, such as definition lists.
28915  
28916 \change_inserted 1075283030 1597699874
28917
28918 \end_layout
28919
28920 \begin_layout Description
28921
28922 \change_inserted 1075283030 1597699874
28923 \begin_inset Flex Code
28924 status collapsed
28925
28926 \begin_layout Plain Layout
28927
28928 \change_inserted 1075283030 1597699880
28929 DocBookItemLabelTagType
28930 \change_unchanged
28931
28932 \end_layout
28933
28934 \end_inset
28935
28936  [
28937 \begin_inset Flex Code
28938 status collapsed
28939
28940 \begin_layout Plain Layout
28941
28942 \change_inserted 1075283030 1597699874
28943 block, paragraph, inline
28944 \change_unchanged
28945
28946 \end_layout
28947
28948 \end_inset
28949
28950 ] The new-line policy for this tag, see Section
28951 \begin_inset space ~
28952 \end_inset
28953
28954
28955 \begin_inset CommandInset ref
28956 LatexCommand ref
28957 reference "subsec:DocBook-New-line-policy"
28958 plural "false"
28959 caps "false"
28960 noprefix "false"
28961
28962 \end_inset
28963
28964  for the details.
28965  
28966 \change_unchanged
28967
28968 \end_layout
28969
28970 \begin_layout Description
28971
28972 \change_inserted -970929547 1515111124
28973 \begin_inset Flex Code
28974 status collapsed
28975
28976 \begin_layout Plain Layout
28977
28978 \change_inserted -970929547 1515111060
28979 DocBookItemTag
28980 \change_unchanged
28981
28982 \end_layout
28983
28984 \end_inset
28985
28986  [
28987 \begin_inset Flex Code
28988 status collapsed
28989
28990 \begin_layout Plain Layout
28991
28992 \change_inserted -970929547 1515111060
28993 string
28994 \change_unchanged
28995
28996 \end_layout
28997
28998 \end_inset
28999
29000 ] The tag to be used for the item tag within the inset, replacing 
29001 \begin_inset Quotes eld
29002 \end_inset
29003
29004
29005 \begin_inset Flex Code
29006 status collapsed
29007
29008 \begin_layout Plain Layout
29009
29010 \change_inserted -970929547 1515111060
29011 itemtag
29012 \change_unchanged
29013
29014 \end_layout
29015
29016 \end_inset
29017
29018
29019 \begin_inset Quotes erd
29020 \end_inset
29021
29022  in the example above.
29023  The default is 
29024 \begin_inset Flex Code
29025 status collapsed
29026
29027 \begin_layout Plain Layout
29028
29029 \change_inserted -970929547 1515111060
29030 NONE
29031 \change_unchanged
29032
29033 \end_layout
29034
29035 \end_inset
29036
29037 , indicating that there is no item tag.
29038  This parameter only makes sense when itemising layouts are used, such as
29039  lists.
29040  
29041 \change_inserted 1075283030 1597699890
29042
29043 \end_layout
29044
29045 \begin_layout Description
29046
29047 \change_inserted 1075283030 1597699890
29048 \begin_inset Flex Code
29049 status collapsed
29050
29051 \begin_layout Plain Layout
29052
29053 \change_inserted 1075283030 1597699890
29054 DocBookItemTagType
29055 \change_unchanged
29056
29057 \end_layout
29058
29059 \end_inset
29060
29061  [
29062 \begin_inset Flex Code
29063 status collapsed
29064
29065 \begin_layout Plain Layout
29066
29067 \change_inserted 1075283030 1597699890
29068 block, paragraph, inline
29069 \change_unchanged
29070
29071 \end_layout
29072
29073 \end_inset
29074
29075 ] The new-line policy for this tag, see Section
29076 \begin_inset space ~
29077 \end_inset
29078
29079
29080 \begin_inset CommandInset ref
29081 LatexCommand ref
29082 reference "subsec:DocBook-New-line-policy"
29083 plural "false"
29084 caps "false"
29085 noprefix "false"
29086
29087 \end_inset
29088
29089  for the details.
29090  
29091 \change_unchanged
29092
29093 \end_layout
29094
29095 \begin_layout Description
29096
29097 \change_inserted -970929547 1515111298
29098 \begin_inset Flex Code
29099 status collapsed
29100
29101 \begin_layout Plain Layout
29102
29103 \change_inserted -970929547 1515111124
29104 DocBookItemWrapperAttr
29105 \change_unchanged
29106
29107 \end_layout
29108
29109 \end_inset
29110
29111  [
29112 \begin_inset Flex Code
29113 status collapsed
29114
29115 \begin_layout Plain Layout
29116
29117 \change_inserted -970929547 1515111124
29118 string
29119 \change_unchanged
29120
29121 \end_layout
29122
29123 \end_inset
29124
29125 ] Specifies attribute information to be output with the item wrapper tag,
29126  replacing 
29127 \begin_inset Quotes eld
29128 \end_inset
29129
29130
29131 \begin_inset Flex Code
29132 status collapsed
29133
29134 \begin_layout Plain Layout
29135
29136 \change_inserted -970929547 1515111150
29137 itemwrapperattr
29138 \change_unchanged
29139
29140 \end_layout
29141
29142 \end_inset
29143
29144
29145 \begin_inset Quotes erd
29146 \end_inset
29147
29148  in the example above.
29149  This information can be used in further processing of the DocBook files.
29150  
29151 \change_unchanged
29152
29153 \end_layout
29154
29155 \begin_layout Description
29156
29157 \change_inserted -970929547 1515111113
29158 \begin_inset Flex Code
29159 status collapsed
29160
29161 \begin_layout Plain Layout
29162
29163 \change_inserted -970929547 1515111073
29164 DocBookItemWrapperTag
29165 \change_unchanged
29166
29167 \end_layout
29168
29169 \end_inset
29170
29171  [
29172 \begin_inset Flex Code
29173 status collapsed
29174
29175 \begin_layout Plain Layout
29176
29177 \change_inserted -970929547 1515111073
29178 string
29179 \change_unchanged
29180
29181 \end_layout
29182
29183 \end_inset
29184
29185 ] The tag to be used for the item wrapper tag within the inset, replacing
29186  
29187 \begin_inset Quotes eld
29188 \end_inset
29189
29190
29191 \begin_inset Flex Code
29192 status collapsed
29193
29194 \begin_layout Plain Layout
29195
29196 \change_inserted -970929547 1515111083
29197 itemwrappertag
29198 \change_unchanged
29199
29200 \end_layout
29201
29202 \end_inset
29203
29204
29205 \begin_inset Quotes erd
29206 \end_inset
29207
29208  in the example above.
29209  The default is 
29210 \begin_inset Flex Code
29211 status collapsed
29212
29213 \begin_layout Plain Layout
29214
29215 \change_inserted -970929547 1515111073
29216 NONE
29217 \change_unchanged
29218
29219 \end_layout
29220
29221 \end_inset
29222
29223 , indicating that there is no item wrapper tag: tag and content are directly
29224  output without it for each itemised element.
29225  This parameter only makes sense when itemising layouts are used, such as
29226  lists.
29227  
29228 \change_inserted 1075283030 1597699897
29229
29230 \end_layout
29231
29232 \begin_layout Description
29233
29234 \change_inserted 1075283030 1597699897
29235 \begin_inset Flex Code
29236 status collapsed
29237
29238 \begin_layout Plain Layout
29239
29240 \change_inserted 1075283030 1597699900
29241 DocBookItemWrapperTagType
29242 \change_unchanged
29243
29244 \end_layout
29245
29246 \end_inset
29247
29248  [
29249 \begin_inset Flex Code
29250 status collapsed
29251
29252 \begin_layout Plain Layout
29253
29254 \change_inserted 1075283030 1597699897
29255 block, paragraph, inline
29256 \change_unchanged
29257
29258 \end_layout
29259
29260 \end_inset
29261
29262 ] The new-line policy for this tag, see Section
29263 \begin_inset space ~
29264 \end_inset
29265
29266
29267 \begin_inset CommandInset ref
29268 LatexCommand ref
29269 reference "subsec:DocBook-New-line-policy"
29270 plural "false"
29271 caps "false"
29272 noprefix "false"
29273
29274 \end_inset
29275
29276  for the details.
29277  
29278 \change_unchanged
29279
29280 \end_layout
29281
29282 \begin_layout Description
29283
29284 \change_inserted -970929547 1515110104
29285 \begin_inset Flex Code
29286 status collapsed
29287
29288 \begin_layout Plain Layout
29289
29290 \change_inserted -970929547 1515110104
29291 DocBookInnerAttr
29292 \change_unchanged
29293
29294 \end_layout
29295
29296 \end_inset
29297
29298  [
29299 \begin_inset Flex Code
29300 status collapsed
29301
29302 \begin_layout Plain Layout
29303
29304 \change_inserted -970929547 1515110104
29305 string
29306 \change_unchanged
29307
29308 \end_layout
29309
29310 \end_inset
29311
29312 ] Specifies attribute information to be output with the inner tag, replacing
29313  
29314 \begin_inset Quotes eld
29315 \end_inset
29316
29317
29318 \begin_inset Flex Code
29319 status collapsed
29320
29321 \begin_layout Plain Layout
29322
29323 \change_inserted -970929547 1515110104
29324 innerattr
29325 \change_unchanged
29326
29327 \end_layout
29328
29329 \end_inset
29330
29331
29332 \begin_inset Quotes erd
29333 \end_inset
29334
29335  in the example above.
29336  This information can be used in further processing of the DocBook files.
29337  
29338 \end_layout
29339
29340 \begin_layout Description
29341
29342 \change_inserted -970929547 1515110906
29343 \begin_inset Flex Code
29344 status collapsed
29345
29346 \begin_layout Plain Layout
29347
29348 \change_inserted -970929547 1515110104
29349 DocBookInnerTag
29350 \change_unchanged
29351
29352 \end_layout
29353
29354 \end_inset
29355
29356  [
29357 \begin_inset Flex Code
29358 status collapsed
29359
29360 \begin_layout Plain Layout
29361
29362 \change_inserted -970929547 1515110104
29363 string
29364 \change_unchanged
29365
29366 \end_layout
29367
29368 \end_inset
29369
29370 ] The tag to be used for the inner tag within the inset, replacing 
29371 \begin_inset Quotes eld
29372 \end_inset
29373
29374
29375 \begin_inset Flex Code
29376 status collapsed
29377
29378 \begin_layout Plain Layout
29379
29380 \change_inserted -970929547 1515110104
29381 innertag
29382 \change_unchanged
29383
29384 \end_layout
29385
29386 \end_inset
29387
29388
29389 \begin_inset Quotes erd
29390 \end_inset
29391
29392  in the example above.
29393  The default is 
29394 \begin_inset Flex Code
29395 status collapsed
29396
29397 \begin_layout Plain Layout
29398
29399 \change_inserted -970929547 1515110791
29400 NONE
29401 \change_unchanged
29402
29403 \end_layout
29404
29405 \end_inset
29406
29407 , indicating that there is no inner tag: content is directly output without
29408  it.
29409 \change_inserted 1075283030 1597699904
29410
29411 \end_layout
29412
29413 \begin_layout Description
29414
29415 \change_inserted 1075283030 1597699904
29416 \begin_inset Flex Code
29417 status collapsed
29418
29419 \begin_layout Plain Layout
29420
29421 \change_inserted 1075283030 1597699904
29422 DocBookInnerTagType
29423 \change_unchanged
29424
29425 \end_layout
29426
29427 \end_inset
29428
29429  [
29430 \begin_inset Flex Code
29431 status collapsed
29432
29433 \begin_layout Plain Layout
29434
29435 \change_inserted 1075283030 1597699904
29436 block, paragraph, inline
29437 \change_unchanged
29438
29439 \end_layout
29440
29441 \end_inset
29442
29443 ] The new-line policy for this tag, see Section
29444 \begin_inset space ~
29445 \end_inset
29446
29447
29448 \begin_inset CommandInset ref
29449 LatexCommand ref
29450 reference "subsec:DocBook-New-line-policy"
29451 plural "false"
29452 caps "false"
29453 noprefix "false"
29454
29455 \end_inset
29456
29457  for the details.
29458  
29459 \change_unchanged
29460
29461 \end_layout
29462
29463 \begin_layout Description
29464
29465 \change_inserted -970929547 1515110753
29466 \begin_inset Flex Code
29467 status collapsed
29468
29469 \begin_layout Plain Layout
29470
29471 \change_inserted -970929547 1515110665
29472 DocBookSectionTag
29473 \change_unchanged
29474
29475 \end_layout
29476
29477 \end_inset
29478
29479  [
29480 \begin_inset Flex Code
29481 status collapsed
29482
29483 \begin_layout Plain Layout
29484
29485 \change_inserted -970929547 1515110661
29486 string
29487 \change_unchanged
29488
29489 \end_layout
29490
29491 \end_inset
29492
29493 ] Specifies the tag that corresponds to this kind of section.
29494  This parameter only makes sense for sectioning elements (part, chapter,
29495  section, etc.).
29496  The default value is 
29497 \begin_inset Flex Code
29498 status collapsed
29499
29500 \begin_layout Plain Layout
29501
29502 \change_inserted -970929547 1515110721
29503 section
29504 \change_unchanged
29505
29506 \end_layout
29507
29508 \end_inset
29509
29510 , and is only overridden when DocBook uses something else for sectioning
29511  (
29512 \change_inserted 1075283030 1597699921
29513 typically, 
29514 \change_inserted -970929547 1515110753
29515 parts and chapters of a book).
29516  
29517 \change_unchanged
29518
29519 \end_layout
29520
29521 \begin_layout Description
29522
29523 \change_inserted -970929547 1515110811
29524 \begin_inset Flex Code
29525 status collapsed
29526
29527 \begin_layout Plain Layout
29528
29529 \change_inserted -970929547 1496612023
29530 DocBookTag
29531 \change_unchanged
29532
29533 \end_layout
29534
29535 \end_inset
29536
29537  [
29538 \begin_inset Flex Code
29539 status collapsed
29540
29541 \begin_layout Plain Layout
29542
29543 \change_inserted -970929547 1496610966
29544 string
29545 \change_unchanged
29546
29547 \end_layout
29548
29549 \end_inset
29550
29551 ] The tag to be used for this inset, replacing 
29552 \begin_inset Quotes eld
29553 \end_inset
29554
29555
29556 \begin_inset Flex Code
29557 status collapsed
29558
29559 \begin_layout Plain Layout
29560
29561 \change_inserted -970929547 1496612033
29562 tag
29563 \change_unchanged
29564
29565 \end_layout
29566
29567 \end_inset
29568
29569
29570 \begin_inset Quotes erd
29571 \end_inset
29572
29573  in the example above.
29574  The default is the name of the float and always needs to be changed, as
29575  DocBook provides no generic inset tag.
29576 \change_inserted 1075283030 1597699924
29577
29578 \end_layout
29579
29580 \begin_layout Description
29581
29582 \change_inserted 1075283030 1597699924
29583 \begin_inset Flex Code
29584 status collapsed
29585
29586 \begin_layout Plain Layout
29587
29588 \change_inserted 1075283030 1597699924
29589 DocBookTagType
29590 \change_unchanged
29591
29592 \end_layout
29593
29594 \end_inset
29595
29596  [
29597 \begin_inset Flex Code
29598 status collapsed
29599
29600 \begin_layout Plain Layout
29601
29602 \change_inserted 1075283030 1597699924
29603 block, paragraph, inline
29604 \change_unchanged
29605
29606 \end_layout
29607
29608 \end_inset
29609
29610 ] The new-line policy for this tag, see Section
29611 \begin_inset space ~
29612 \end_inset
29613
29614
29615 \begin_inset CommandInset ref
29616 LatexCommand ref
29617 reference "subsec:DocBook-New-line-policy"
29618 plural "false"
29619 caps "false"
29620 noprefix "false"
29621
29622 \end_inset
29623
29624  for the details.
29625  
29626 \change_unchanged
29627
29628 \end_layout
29629
29630 \begin_layout Description
29631
29632 \change_inserted -970929547 1515110832
29633 \begin_inset Flex Code
29634 status collapsed
29635
29636 \begin_layout Plain Layout
29637
29638 \change_inserted -970929547 1515110822
29639 DocBookWrapperAttr
29640 \change_unchanged
29641
29642 \end_layout
29643
29644 \end_inset
29645
29646  [
29647 \begin_inset Flex Code
29648 status collapsed
29649
29650 \begin_layout Plain Layout
29651
29652 \change_inserted -970929547 1515110811
29653 string
29654 \change_unchanged
29655
29656 \end_layout
29657
29658 \end_inset
29659
29660 ] Specifies attribute information to be output with the outer tag, replacing
29661  
29662 \begin_inset Quotes eld
29663 \end_inset
29664
29665
29666 \begin_inset Flex Code
29667 status collapsed
29668
29669 \begin_layout Plain Layout
29670
29671 \change_inserted -970929547 1515110845
29672 wrapperattr
29673 \change_unchanged
29674
29675 \end_layout
29676
29677 \end_inset
29678
29679
29680 \begin_inset Quotes erd
29681 \end_inset
29682
29683  in the example above.
29684  This information can be used in further processing of the DocBook files.
29685  
29686 \end_layout
29687
29688 \begin_layout Description
29689
29690 \change_inserted -970929547 1515110917
29691 \begin_inset Flex Code
29692 status collapsed
29693
29694 \begin_layout Plain Layout
29695
29696 \change_inserted -970929547 1515110826
29697 DocBookWrapperTag
29698 \change_unchanged
29699
29700 \end_layout
29701
29702 \end_inset
29703
29704  [
29705 \begin_inset Flex Code
29706 status collapsed
29707
29708 \begin_layout Plain Layout
29709
29710 \change_inserted -970929547 1515110811
29711 string
29712 \change_unchanged
29713
29714 \end_layout
29715
29716 \end_inset
29717
29718 ] The tag to be used for the wrapper tag around the inset, replacing 
29719 \begin_inset Quotes eld
29720 \end_inset
29721
29722
29723 \begin_inset Flex Code
29724 status collapsed
29725
29726 \begin_layout Plain Layout
29727
29728 \change_inserted -970929547 1515110842
29729 wrappertag
29730 \change_unchanged
29731
29732 \end_layout
29733
29734 \end_inset
29735
29736
29737 \begin_inset Quotes erd
29738 \end_inset
29739
29740  in the example above.
29741  The default is 
29742 \begin_inset Flex Code
29743 status collapsed
29744
29745 \begin_layout Plain Layout
29746
29747 \change_inserted -970929547 1515110811
29748 NONE
29749 \change_unchanged
29750
29751 \end_layout
29752
29753 \end_inset
29754
29755 , indicating that there is no wrapper tag: tag and content are directly
29756  output without it.
29757 \change_inserted 1075283030 1597699929
29758
29759 \end_layout
29760
29761 \begin_layout Description
29762
29763 \change_inserted 1075283030 1597699929
29764 \begin_inset Flex Code
29765 status collapsed
29766
29767 \begin_layout Plain Layout
29768
29769 \change_inserted 1075283030 1597699932
29770 DocBookWrapperTagType
29771 \change_unchanged
29772
29773 \end_layout
29774
29775 \end_inset
29776
29777  [
29778 \begin_inset Flex Code
29779 status collapsed
29780
29781 \begin_layout Plain Layout
29782
29783 \change_inserted 1075283030 1597699929
29784 block, paragraph, inline
29785 \change_unchanged
29786
29787 \end_layout
29788
29789 \end_inset
29790
29791 ] The new-line policy for this tag, see Section
29792 \begin_inset space ~
29793 \end_inset
29794
29795
29796 \begin_inset CommandInset ref
29797 LatexCommand ref
29798 reference "subsec:DocBook-New-line-policy"
29799 plural "false"
29800 caps "false"
29801 noprefix "false"
29802
29803 \end_inset
29804
29805  for the details.
29806  
29807 \change_unchanged
29808
29809 \end_layout
29810
29811 \begin_layout Subsection
29812
29813 \change_inserted -970929547 1515110040
29814 Float DocBook
29815 \end_layout
29816
29817 \begin_layout Standard
29818
29819 \change_inserted -970929547 1496611700
29820 The DocBook output for floats too can be controlled by layout information.
29821  The output has the following form:
29822 \end_layout
29823
29824 \begin_layout LyX-Code
29825
29826 \change_inserted -970929547 1515109700
29827 <tag attr>
29828 \end_layout
29829
29830 \begin_layout LyX-Code
29831
29832 \change_inserted -970929547 1515110138
29833   Contents of the float as DocBook.
29834 \end_layout
29835
29836 \begin_layout LyX-Code
29837
29838 \change_inserted -970929547 1496610966
29839 </tag>
29840 \end_layout
29841
29842 \begin_layout Standard
29843
29844 \change_inserted -970929547 1496611715
29845 The caption, if there is one, is a separate inset and will be output as
29846  a title.
29847  
29848 \end_layout
29849
29850 \begin_layout Description
29851
29852 \change_inserted -970929547 1515110033
29853 \begin_inset Flex Code
29854 status collapsed
29855
29856 \begin_layout Plain Layout
29857
29858 \change_inserted -970929547 1515109702
29859 DocBookAttr
29860 \change_unchanged
29861
29862 \end_layout
29863
29864 \end_inset
29865
29866  [
29867 \begin_inset Flex Code
29868 status collapsed
29869
29870 \begin_layout Plain Layout
29871
29872 \change_inserted -970929547 1496610966
29873 string
29874 \change_unchanged
29875
29876 \end_layout
29877
29878 \end_inset
29879
29880 ] Specifies attribute information to be output with the main tag, replacing
29881  
29882 \begin_inset Quotes eld
29883 \end_inset
29884
29885
29886 \begin_inset Flex Code
29887 status collapsed
29888
29889 \begin_layout Plain Layout
29890
29891 \change_inserted -970929547 1515110035
29892 attr
29893 \change_unchanged
29894
29895 \end_layout
29896
29897 \end_inset
29898
29899
29900 \begin_inset Quotes erd
29901 \end_inset
29902
29903  in the example above.
29904  This information can be used in further processing of the DocBook files.
29905  
29906 \end_layout
29907
29908 \begin_layout Description
29909
29910 \change_inserted -970929547 1515110157
29911 \begin_inset Flex Code
29912 status collapsed
29913
29914 \begin_layout Plain Layout
29915
29916 \change_inserted -970929547 1496611782
29917 DocBookTag
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 -970929547 1496610966
29931 string
29932 \change_unchanged
29933
29934 \end_layout
29935
29936 \end_inset
29937
29938 ] The tag to be used for this float, replacing 
29939 \begin_inset Quotes eld
29940 \end_inset
29941
29942
29943 \begin_inset Flex Code
29944 status collapsed
29945
29946 \begin_layout Plain Layout
29947
29948 \change_inserted -970929547 1496610966
29949 tag
29950 \change_unchanged
29951
29952 \end_layout
29953
29954 \end_inset
29955
29956
29957 \begin_inset Quotes erd
29958 \end_inset
29959
29960  in the example above.
29961  The default is the name of the float and always needs to be changed, as
29962  DocBook provides no generic float tag.
29963 \end_layout
29964
29965 \begin_layout Subsection
29966
29967 \change_inserted -970929547 1515110157
29968 Bibliography formatting
29969 \end_layout
29970
29971 \begin_layout Standard
29972
29973 \change_deleted 1075283030 1597699984
29974 The 
29975 \change_inserted 1075283030 1597699985
29976 Included 
29977 \change_inserted -970929547 1515110187
29978 bibliograph
29979 \change_deleted 1075283030 1597699987
29980 y
29981 \change_inserted 1075283030 1597699987
29982 ies
29983 \change_inserted -970929547 1515110187
29984  cannot be formatted: all fields are always output in the database-like
29985  DocBook format (equivalent to a BibTeX file)
29986 \change_inserted 1075283030 1597700117
29987 , using the 
29988 \begin_inset Flex Code
29989 status collapsed
29990
29991 \begin_layout Plain Layout
29992
29993 \change_inserted 1075283030 1597700120
29994 biblioentry
29995 \change_unchanged
29996
29997 \end_layout
29998
29999 \end_inset
30000
30001  tag
30002 \change_inserted -970929547 1515110187
30003 .
30004 \change_inserted 1075283030 1597700092
30005
30006 \end_layout
30007
30008 \begin_layout Standard
30009
30010 \change_inserted 1075283030 1597700112
30011 When the bibliographic entries are manually inserted into the LyX document
30012  as Bibliography Items, the user deals with formatting themself: there is
30013  no attempt of parsing what the user wrote, the string is directly used
30014  (with the 
30015 \begin_inset Flex Code
30016 status collapsed
30017
30018 \begin_layout Plain Layout
30019
30020 \change_inserted 1075283030 1597700076
30021 bibliomixed
30022 \change_unchanged
30023
30024 \end_layout
30025
30026 \end_inset
30027
30028  tag).
30029  
30030 \change_unchanged
30031
30032 \end_layout
30033
30034 \begin_layout Chapter
30035 Including External Material
30036 \begin_inset CommandInset label
30037 LatexCommand label
30038 name "chap:Including-External-Material"
30039
30040 \end_inset
30041
30042
30043 \end_layout
30044
30045 \begin_layout Standard
30046 \begin_inset Box Shadowbox
30047 position "t"
30048 hor_pos "c"
30049 has_inner_box 1
30050 inner_pos "t"
30051 use_parbox 0
30052 use_makebox 0
30053 width "100col%"
30054 special "none"
30055 height "1in"
30056 height_special "totalheight"
30057 thickness "0.4pt"
30058 separation "3pt"
30059 shadowsize "4pt"
30060 framecolor "black"
30061 backgroundcolor "none"
30062 status open
30063
30064 \begin_layout Plain Layout
30065 WARNING: This portion of the documentation has not been updated for some
30066  time.
30067  We certainly hope that it is still accurate, but there are no guarantees.
30068 \end_layout
30069
30070 \end_inset
30071
30072
30073 \end_layout
30074
30075 \begin_layout Standard
30076 The use of material from sources external to \SpecialChar LyX
30077  is covered in detail in the
30078  
30079 \emph on
30080 Embedded Objects
30081 \emph default
30082  manual.
30083  This part of the manual covers what needs to happen behind the scenes for
30084  new sorts of material to be included.
30085 \end_layout
30086
30087 \begin_layout Section
30088 How does it work?
30089 \end_layout
30090
30091 \begin_layout Standard
30092 The external material feature is based on the concept of a 
30093 \emph on
30094 template
30095 \emph default
30096 .
30097  A template is a specification of how \SpecialChar LyX
30098  should interface with a certain kind
30099  of material.
30100  As bundled, \SpecialChar LyX
30101  comes with predefined templates for Xfig figures, various
30102  raster format images, chess diagrams, and LilyPond music notation.
30103  You can check the actual list by using the menu 
30104 \begin_inset Flex Noun
30105 status collapsed
30106
30107 \begin_layout Plain Layout
30108 Insert\SpecialChar menuseparator
30109 File\SpecialChar menuseparator
30110 External Material
30111 \end_layout
30112
30113 \end_inset
30114
30115 .
30116  Furthermore, it is possible to roll your own template to support a specific
30117  kind of material.
30118  Later we'll describe in more detail what is involved, and hopefully you
30119  will submit all the templates you create so we can include them in a later
30120  \SpecialChar LyX
30121  version.
30122 \end_layout
30123
30124 \begin_layout Standard
30125 Another basic idea of the external material feature is to distinguish between
30126  the original file that serves as a base for final material and the produced
30127  file that is included in your exported or printed document.
30128  For example, consider the case of a figure produced with 
30129 \begin_inset Flex Code
30130 status collapsed
30131
30132 \begin_layout Plain Layout
30133 Xfig
30134 \end_layout
30135
30136 \end_inset
30137
30138 .
30139  The Xfig application itself works on an original file with the 
30140 \begin_inset Flex Code
30141 status collapsed
30142
30143 \begin_layout Plain Layout
30144 .fig
30145 \end_layout
30146
30147 \end_inset
30148
30149  extension.
30150  Within Xfig, you create and change your figure, and when you are done,
30151  you save the 
30152 \begin_inset Flex Code
30153 status collapsed
30154
30155 \begin_layout Plain Layout
30156 fig
30157 \end_layout
30158
30159 \end_inset
30160
30161 -file.
30162  When you want to include the figure in your document, you invoke 
30163 \begin_inset Flex Code
30164 status collapsed
30165
30166 \begin_layout Plain Layout
30167 transfig
30168 \end_layout
30169
30170 \end_inset
30171
30172  in order to create a PostScript file that can readily be included in your
30173  \SpecialChar LaTeX
30174  file.
30175  In this case, the 
30176 \begin_inset Flex Code
30177 status collapsed
30178
30179 \begin_layout Plain Layout
30180 .fig
30181 \end_layout
30182
30183 \end_inset
30184
30185  file is the original file, and the PostScript file is the produced file.
30186 \end_layout
30187
30188 \begin_layout Standard
30189 This distinction is important in order to allow updating of the material
30190  while you are in the process of writing the document.
30191  Furthermore, it provides us with the flexibility that is needed to support
30192  multiple export formats.
30193  For instance, in the case of a plain text file, it is not exactly an award-winn
30194 ing idea to include the figure as raw PostScript.
30195  Instead, you would either prefer to just include a reference to the figure
30196  or try to invoke some graphics to ASCII converter to make the final result
30197  look similar to the real graphics.
30198  The external material management allows you to do this, because it is parametri
30199 zed on the different export formats that \SpecialChar LyX
30200  supports.
30201 \end_layout
30202
30203 \begin_layout Standard
30204 Besides supporting the production of different products according to the
30205  exported format, it supports tight integration with editing and viewing
30206  applications.
30207  In the case of an Xfig figure, you are able to invoke Xfig on the original
30208  file with a single click from within the external material dialog in \SpecialChar LyX
30209 ,
30210  and also preview the produced PostScript file with Ghostview with another
30211  click.
30212  No more fiddling around with the command line and/or file browsers to locate
30213  and manipulate the original or produced files.
30214  In this way, you are finally able to take full advantage of the many different
30215  applications that are relevant to use when you write your documents, and
30216  ultimately be more productive.
30217 \end_layout
30218
30219 \begin_layout Section
30220 The external template configuration files
30221 \end_layout
30222
30223 \begin_layout Standard
30224 It is relatively easy to add custom external template definitions to \SpecialChar LyX
30225 .
30226  However, be aware that doing this in an careless manner most probably 
30227 \emph on
30228 will
30229 \emph default
30230  introduce an easily exploitable security hole.
30231  So before you do this, please read the discussion about security in 
30232 \begin_inset CommandInset ref
30233 LatexCommand ref
30234 reference "sec:Security-discussion"
30235
30236 \end_inset
30237
30238 .
30239 \end_layout
30240
30241 \begin_layout Standard
30242 Having said that, we encourage you to submit any interesting templates that
30243  you create.
30244  
30245 \end_layout
30246
30247 \begin_layout Standard
30248 The external templates are defined in the 
30249 \begin_inset Flex Code
30250 status collapsed
30251
30252 \begin_layout Plain Layout
30253 *.xtemplate
30254 \end_layout
30255
30256 \end_inset
30257
30258  files that are stored in the 
30259 \begin_inset Flex Code
30260 status collapsed
30261
30262 \begin_layout Plain Layout
30263 LyXDir/lib/xtemplates/
30264 \end_layout
30265
30266 \end_inset
30267
30268  directory.
30269  Each template is defined in a file of its own.
30270  You can place your own templates in 
30271 \begin_inset Flex Code
30272 status collapsed
30273
30274 \begin_layout Plain Layout
30275 UserDir/xtemplates/
30276 \end_layout
30277
30278 \end_inset
30279
30280  or copy existing templates to that directory in order to modify them.
30281 \end_layout
30282
30283 \begin_layout Standard
30284 A typical template looks like this:
30285 \end_layout
30286
30287 \begin_layout LyX-Code
30288 Template XFig
30289 \end_layout
30290
30291 \begin_layout LyX-Code
30292 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
30293 \end_layout
30294
30295 \begin_layout LyX-Code
30296 HelpText
30297 \end_layout
30298
30299 \begin_layout LyX-Code
30300 An XFig figure.
30301 \end_layout
30302
30303 \begin_layout LyX-Code
30304 HelpTextEnd
30305 \end_layout
30306
30307 \begin_layout LyX-Code
30308 InputFormat fig
30309 \end_layout
30310
30311 \begin_layout LyX-Code
30312 FileFilter "*.fig"
30313 \end_layout
30314
30315 \begin_layout LyX-Code
30316 AutomaticProduction true
30317 \end_layout
30318
30319 \begin_layout LyX-Code
30320 Transform Rotate
30321 \end_layout
30322
30323 \begin_layout LyX-Code
30324 Transform Resize
30325 \end_layout
30326
30327 \begin_layout LyX-Code
30328 Format LaTeX
30329 \end_layout
30330
30331 \begin_layout LyX-Code
30332 TransformCommand Rotate RotationLatexCommand
30333 \end_layout
30334
30335 \begin_layout LyX-Code
30336 TransformCommand Resize ResizeLatexCommand
30337 \end_layout
30338
30339 \begin_layout LyX-Code
30340 Product "$$RotateFront$$ResizeFront
30341 \end_layout
30342
30343 \begin_layout LyX-Code
30344          
30345 \backslash
30346
30347 \backslash
30348 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
30349 \end_layout
30350
30351 \begin_layout LyX-Code
30352          $$ResizeBack$$RotateBack"
30353 \end_layout
30354
30355 \begin_layout LyX-Code
30356 UpdateFormat pstex
30357 \end_layout
30358
30359 \begin_layout LyX-Code
30360 UpdateResult "$$AbsPath$$Basename.pstex_t"
30361 \end_layout
30362
30363 \begin_layout LyX-Code
30364 Requirement "graphicx"
30365 \end_layout
30366
30367 \begin_layout LyX-Code
30368 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
30369 \end_layout
30370
30371 \begin_layout LyX-Code
30372 ReferencedFile latex "$$AbsPath$$Basename.eps"
30373 \end_layout
30374
30375 \begin_layout LyX-Code
30376 ReferencedFile dvi "$$AbsPath$$Basename.eps"
30377 \end_layout
30378
30379 \begin_layout LyX-Code
30380 FormatEnd
30381 \end_layout
30382
30383 \begin_layout LyX-Code
30384 Format PDFLaTeX
30385 \end_layout
30386
30387 \begin_layout LyX-Code
30388 TransformCommand Rotate RotationLatexCommand
30389 \end_layout
30390
30391 \begin_layout LyX-Code
30392 TransformCommand Resize ResizeLatexCommand
30393 \end_layout
30394
30395 \begin_layout LyX-Code
30396 Product "$$RotateFront$$ResizeFront
30397 \end_layout
30398
30399 \begin_layout LyX-Code
30400          
30401 \backslash
30402
30403 \backslash
30404 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
30405 \end_layout
30406
30407 \begin_layout LyX-Code
30408          $$ResizeBack$$RotateBack"
30409 \end_layout
30410
30411 \begin_layout LyX-Code
30412 UpdateFormat pdftex
30413 \end_layout
30414
30415 \begin_layout LyX-Code
30416 UpdateResult "$$AbsPath$$Basename.pdftex_t"
30417 \end_layout
30418
30419 \begin_layout LyX-Code
30420 Requirement "graphicx"
30421 \end_layout
30422
30423 \begin_layout LyX-Code
30424 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
30425 \end_layout
30426
30427 \begin_layout LyX-Code
30428 ReferencedFile latex "$$AbsPath$$Basename.pdf"
30429 \end_layout
30430
30431 \begin_layout LyX-Code
30432 FormatEnd
30433 \end_layout
30434
30435 \begin_layout LyX-Code
30436 Format Ascii
30437 \end_layout
30438
30439 \begin_layout LyX-Code
30440 Product "[XFig: $$FName]"
30441 \end_layout
30442
30443 \begin_layout LyX-Code
30444 FormatEnd
30445 \end_layout
30446
30447 \begin_layout LyX-Code
30448 Format DocBook
30449 \end_layout
30450
30451 \begin_layout LyX-Code
30452 Product "<graphic fileref=
30453 \backslash
30454 "$$AbsOrRelPathMaster$$Basename.eps
30455 \backslash
30456 ">
30457 \end_layout
30458
30459 \begin_layout LyX-Code
30460          </graphic>"
30461 \end_layout
30462
30463 \begin_layout LyX-Code
30464 UpdateFormat eps
30465 \end_layout
30466
30467 \begin_layout LyX-Code
30468 UpdateResult "$$AbsPath$$Basename.eps"
30469 \end_layout
30470
30471 \begin_layout LyX-Code
30472 ReferencedFile docbook "$$AbsPath$$Basename.eps"
30473 \end_layout
30474
30475 \begin_layout LyX-Code
30476 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
30477 \end_layout
30478
30479 \begin_layout LyX-Code
30480 FormatEnd
30481 \end_layout
30482
30483 \begin_layout LyX-Code
30484 TemplateEnd
30485 \end_layout
30486
30487 \begin_layout Standard
30488 As you can see, the template is enclosed in 
30489 \begin_inset Flex Code
30490 status collapsed
30491
30492 \begin_layout Plain Layout
30493 Template
30494 \end_layout
30495
30496 \end_inset
30497
30498  \SpecialChar ldots
30499  
30500 \begin_inset Flex Code
30501 status collapsed
30502
30503 \begin_layout Plain Layout
30504 TemplateEnd
30505 \end_layout
30506
30507 \end_inset
30508
30509 .
30510  It contains a header specifying some general settings and, for each supported
30511  primary document file format, a section 
30512 \begin_inset Flex Code
30513 status collapsed
30514
30515 \begin_layout Plain Layout
30516 Format
30517 \end_layout
30518
30519 \end_inset
30520
30521  \SpecialChar ldots
30522  
30523 \begin_inset Flex Code
30524 status collapsed
30525
30526 \begin_layout Plain Layout
30527 FormatEnd
30528 \end_layout
30529
30530 \end_inset
30531
30532 .
30533 \end_layout
30534
30535 \begin_layout Subsection
30536 The template header
30537 \end_layout
30538
30539 \begin_layout Description
30540 \begin_inset Flex Code
30541 status collapsed
30542
30543 \begin_layout Plain Layout
30544 AutomaticProduction
30545 \begin_inset space ~
30546 \end_inset
30547
30548 true|false
30549 \end_layout
30550
30551 \end_inset
30552
30553  Whether the file represented by the template must be generated by \SpecialChar LyX
30554 .
30555  This command must occur exactly once.
30556 \end_layout
30557
30558 \begin_layout Description
30559 \begin_inset Flex Code
30560 status collapsed
30561
30562 \begin_layout Plain Layout
30563 FileFilter
30564 \begin_inset space ~
30565 \end_inset
30566
30567 <pattern>
30568 \end_layout
30569
30570 \end_inset
30571
30572  A glob pattern that is used in the file dialog to filter out the desired
30573  files.
30574  If there is more than one possible file extension (e.
30575 \begin_inset space \thinspace{}
30576 \end_inset
30577
30578 g.
30579 \begin_inset space \space{}
30580 \end_inset
30581
30582 tgif has 
30583 \begin_inset Flex Code
30584 status collapsed
30585
30586 \begin_layout Plain Layout
30587 .obj
30588 \end_layout
30589
30590 \end_inset
30591
30592  and 
30593 \begin_inset Flex Code
30594 status collapsed
30595
30596 \begin_layout Plain Layout
30597 .tgo
30598 \end_layout
30599
30600 \end_inset
30601
30602 ), use something like 
30603 \begin_inset Flex Code
30604 status collapsed
30605
30606 \begin_layout Plain Layout
30607 "*.{obj,tgo}"
30608 \end_layout
30609
30610 \end_inset
30611
30612 .
30613  This command must occur exactly once.
30614 \end_layout
30615
30616 \begin_layout Description
30617 \begin_inset Flex Code
30618 status collapsed
30619
30620 \begin_layout Plain Layout
30621 GuiName
30622 \begin_inset space ~
30623 \end_inset
30624
30625 <guiname>
30626 \end_layout
30627
30628 \end_inset
30629
30630  The text that is displayed on the button.
30631  This command must occur exactly once.
30632 \end_layout
30633
30634 \begin_layout Description
30635 \begin_inset Flex Code
30636 status collapsed
30637
30638 \begin_layout Plain Layout
30639 HelpText
30640 \begin_inset space ~
30641 \end_inset
30642
30643 <text>
30644 \begin_inset space ~
30645 \end_inset
30646
30647 HelpTextEnd
30648 \end_layout
30649
30650 \end_inset
30651
30652  The help text that is used in the External dialog.
30653  Provide enough information to explain to the user just what the template
30654  can provide him with.
30655  This command must occur exactly once.
30656 \end_layout
30657
30658 \begin_layout Description
30659 \begin_inset Flex Code
30660 status collapsed
30661
30662 \begin_layout Plain Layout
30663 InputFormat
30664 \begin_inset space ~
30665 \end_inset
30666
30667 <format>
30668 \end_layout
30669
30670 \end_inset
30671
30672  The file format of the original file.
30673  This must be the name of a format that is known to \SpecialChar LyX
30674  (see 
30675 \begin_inset CommandInset ref
30676 LatexCommand ref
30677 reference "sec:Formats"
30678
30679 \end_inset
30680
30681 ).
30682  Use 
30683 \begin_inset Quotes eld
30684 \end_inset
30685
30686
30687 \begin_inset Flex Code
30688 status collapsed
30689
30690 \begin_layout Plain Layout
30691 *
30692 \end_layout
30693
30694 \end_inset
30695
30696
30697 \begin_inset Quotes erd
30698 \end_inset
30699
30700  if the template can handle original files of more than one format.
30701  \SpecialChar LyX
30702  will attempt to interrogate the file itself in order to deduce its format
30703  in this case.
30704  This command must occur exactly once.
30705 \end_layout
30706
30707 \begin_layout Description
30708 \begin_inset Flex Code
30709 status collapsed
30710
30711 \begin_layout Plain Layout
30712 Template
30713 \begin_inset space ~
30714 \end_inset
30715
30716 <id>
30717 \end_layout
30718
30719 \end_inset
30720
30721  A unique name for the template.
30722  It must not contain substitution macros (see below).
30723 \end_layout
30724
30725 \begin_layout Description
30726 \begin_inset Flex Code
30727 status collapsed
30728
30729 \begin_layout Plain Layout
30730 Transform
30731 \begin_inset space ~
30732 \end_inset
30733
30734 Rotate|Resize|Clip|Extra
30735 \end_layout
30736
30737 \end_inset
30738
30739  This command specifies which transformations are supported by this template.
30740  It may occur zero or more times.
30741  This command enables the corresponding tabs in the external dialog.
30742  Each 
30743 \begin_inset Flex Code
30744 status collapsed
30745
30746 \begin_layout Plain Layout
30747 Transform
30748 \end_layout
30749
30750 \end_inset
30751
30752  command must have either a corresponding 
30753 \begin_inset Flex Code
30754 status collapsed
30755
30756 \begin_layout Plain Layout
30757 TransformCommand
30758 \end_layout
30759
30760 \end_inset
30761
30762  or a 
30763 \begin_inset Flex Code
30764 status collapsed
30765
30766 \begin_layout Plain Layout
30767 TransformOption
30768 \end_layout
30769
30770 \end_inset
30771
30772  command in the 
30773 \begin_inset Flex Code
30774 status collapsed
30775
30776 \begin_layout Plain Layout
30777 Format
30778 \end_layout
30779
30780 \end_inset
30781
30782  section.
30783  Otherwise the transformation will not be supported by that format.
30784 \end_layout
30785
30786 \begin_layout Subsection
30787 The Format section
30788 \end_layout
30789
30790 \begin_layout Description
30791 \begin_inset Flex Code
30792 status collapsed
30793
30794 \begin_layout Plain Layout
30795 Format
30796 \begin_inset space ~
30797 \end_inset
30798
30799 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
30800 \end_layout
30801
30802 \end_inset
30803
30804  The primary document file format that this format definition is for.
30805  Not every template has a sensible representation in all document file formats.
30806  Please define nevertheless a 
30807 \begin_inset Flex Code
30808 status collapsed
30809
30810 \begin_layout Plain Layout
30811 Format
30812 \end_layout
30813
30814 \end_inset
30815
30816  section for all templates.
30817  Use a dummy text when no representation is available.
30818  Then you can at least see a reference to the external material in the exported
30819  document.
30820 \end_layout
30821
30822 \begin_layout Description
30823 \begin_inset Flex Code
30824 status collapsed
30825
30826 \begin_layout Plain Layout
30827 Option
30828 \begin_inset space ~
30829 \end_inset
30830
30831 <name>
30832 \begin_inset space ~
30833 \end_inset
30834
30835 <value>
30836 \end_layout
30837
30838 \end_inset
30839
30840  This command defines an additional macro 
30841 \begin_inset Flex Code
30842 status collapsed
30843
30844 \begin_layout Plain Layout
30845 $$<name>
30846 \end_layout
30847
30848 \end_inset
30849
30850  for substitution in 
30851 \begin_inset Flex Code
30852 status collapsed
30853
30854 \begin_layout Plain Layout
30855 Product
30856 \end_layout
30857
30858 \end_inset
30859
30860 .
30861  
30862 \begin_inset Flex Code
30863 status collapsed
30864
30865 \begin_layout Plain Layout
30866 <value>
30867 \end_layout
30868
30869 \end_inset
30870
30871  itself may contain substitution macros.
30872  The advantage over using 
30873 \begin_inset Flex Code
30874 status collapsed
30875
30876 \begin_layout Plain Layout
30877 <value>
30878 \end_layout
30879
30880 \end_inset
30881
30882  directly in 
30883 \begin_inset Flex Code
30884 status collapsed
30885
30886 \begin_layout Plain Layout
30887 Product
30888 \end_layout
30889
30890 \end_inset
30891
30892  is that the substituted value of 
30893 \begin_inset Flex Code
30894 status collapsed
30895
30896 \begin_layout Plain Layout
30897 $$<name>
30898 \end_layout
30899
30900 \end_inset
30901
30902  is sanitized so that it is a valid optional argument in the document format.
30903  This command may occur zero or more times.
30904 \end_layout
30905
30906 \begin_layout Description
30907 \begin_inset Flex Code
30908 status collapsed
30909
30910 \begin_layout Plain Layout
30911 Product
30912 \begin_inset space ~
30913 \end_inset
30914
30915 <text>
30916 \end_layout
30917
30918 \end_inset
30919
30920  The text that is inserted in the exported document.
30921  This is actually the most important command and can be quite complex.
30922  This command must occur exactly once.
30923 \end_layout
30924
30925 \begin_layout Description
30926 \begin_inset Flex Code
30927 status collapsed
30928
30929 \begin_layout Plain Layout
30930 Preamble
30931 \begin_inset space ~
30932 \end_inset
30933
30934 <name>
30935 \end_layout
30936
30937 \end_inset
30938
30939  This command specifies a preamble snippet that will be included in the
30940  \SpecialChar LaTeX
30941  preamble.
30942  It has to be defined using 
30943 \begin_inset Flex Code
30944 status collapsed
30945
30946 \begin_layout Plain Layout
30947 PreambleDef
30948 \end_layout
30949
30950 \end_inset
30951
30952  \SpecialChar ldots
30953  
30954 \begin_inset Flex Code
30955 status collapsed
30956
30957 \begin_layout Plain Layout
30958 PreambleDefEnd
30959 \end_layout
30960
30961 \end_inset
30962
30963 .
30964  This command may occur zero or more times.
30965 \end_layout
30966
30967 \begin_layout Description
30968 \begin_inset Flex Code
30969 status collapsed
30970
30971 \begin_layout Plain Layout
30972 ReferencedFile
30973 \begin_inset space ~
30974 \end_inset
30975
30976 <format>
30977 \begin_inset space ~
30978 \end_inset
30979
30980 <filename>
30981 \end_layout
30982
30983 \end_inset
30984
30985  This command denotes files that are created by the conversion process and
30986  are needed for a particular export format.
30987  If the filename is relative, it is interpreted relative to the master document.
30988  This command may be given zero or more times.
30989 \end_layout
30990
30991 \begin_layout Description
30992 \begin_inset Flex Code
30993 status collapsed
30994
30995 \begin_layout Plain Layout
30996 Requirement
30997 \begin_inset space ~
30998 \end_inset
30999
31000 <package>
31001 \end_layout
31002
31003 \end_inset
31004
31005  The name of a required \SpecialChar LaTeX
31006  package.
31007  The package is included via 
31008 \begin_inset Flex Code
31009 status collapsed
31010
31011 \begin_layout Plain Layout
31012
31013 \backslash
31014 usepackage{}
31015 \end_layout
31016
31017 \end_inset
31018
31019  in the \SpecialChar LaTeX
31020  preamble.
31021  This command may occur zero or more times.
31022 \end_layout
31023
31024 \begin_layout Description
31025 \begin_inset Flex Code
31026 status collapsed
31027
31028 \begin_layout Plain Layout
31029 TransformCommand
31030 \begin_inset space ~
31031 \end_inset
31032
31033 Rotate
31034 \begin_inset space ~
31035 \end_inset
31036
31037 RotationLatexCommand
31038 \end_layout
31039
31040 \end_inset
31041
31042  This command specifies that the built in \SpecialChar LaTeX
31043  command should be used for rotation.
31044  This command may occur once or not at all.
31045 \end_layout
31046
31047 \begin_layout Description
31048 \begin_inset Flex Code
31049 status collapsed
31050
31051 \begin_layout Plain Layout
31052 TransformCommand
31053 \begin_inset space ~
31054 \end_inset
31055
31056 Resize
31057 \begin_inset space ~
31058 \end_inset
31059
31060 ResizeLatexCommand
31061 \end_layout
31062
31063 \end_inset
31064
31065  This command specifies that the built in \SpecialChar LaTeX
31066  command should be used for resizing.
31067  This command may occur once or not at all.
31068 \end_layout
31069
31070 \begin_layout Description
31071 \begin_inset Flex Code
31072 status collapsed
31073
31074 \begin_layout Plain Layout
31075 TransformOption
31076 \begin_inset space ~
31077 \end_inset
31078
31079 Rotate
31080 \begin_inset space ~
31081 \end_inset
31082
31083 RotationLatexOption
31084 \end_layout
31085
31086 \end_inset
31087
31088  This command specifies that rotation is done via an optional argument.
31089  This command may occur once or not at all.
31090 \end_layout
31091
31092 \begin_layout Description
31093 \begin_inset Flex Code
31094 status collapsed
31095
31096 \begin_layout Plain Layout
31097 TransformOption
31098 \begin_inset space ~
31099 \end_inset
31100
31101 Resize
31102 \begin_inset space ~
31103 \end_inset
31104
31105 ResizeLatexOption
31106 \end_layout
31107
31108 \end_inset
31109
31110  This command specifies that resizing is done via an optional argument.
31111  This command may occur once or not at all.
31112 \end_layout
31113
31114 \begin_layout Description
31115 \begin_inset Flex Code
31116 status collapsed
31117
31118 \begin_layout Plain Layout
31119 TransformOption
31120 \begin_inset space ~
31121 \end_inset
31122
31123 Clip
31124 \begin_inset space ~
31125 \end_inset
31126
31127 ClipLatexOption
31128 \end_layout
31129
31130 \end_inset
31131
31132  This command specifies that clipping is done via an optional argument.
31133  This command may occur once or not at all.
31134 \end_layout
31135
31136 \begin_layout Description
31137 \begin_inset Flex Code
31138 status collapsed
31139
31140 \begin_layout Plain Layout
31141 TransformOption
31142 \begin_inset space ~
31143 \end_inset
31144
31145 Extra
31146 \begin_inset space ~
31147 \end_inset
31148
31149 ExtraLatexOption
31150 \end_layout
31151
31152 \end_inset
31153
31154  This command specifies that an extra optional argument is used.
31155  This command may occur once or not at all.
31156 \end_layout
31157
31158 \begin_layout Description
31159 \begin_inset Flex Code
31160 status collapsed
31161
31162 \begin_layout Plain Layout
31163 UpdateFormat
31164 \begin_inset space ~
31165 \end_inset
31166
31167 <format>
31168 \end_layout
31169
31170 \end_inset
31171
31172  The file format of the converted file.
31173  This must be the name of a format that is known to \SpecialChar LyX
31174  (see the 
31175 \begin_inset Flex Noun
31176 status collapsed
31177
31178 \begin_layout Plain Layout
31179 Tools\SpecialChar menuseparator
31180 Preferences\SpecialChar menuseparator
31181 File Handling\SpecialChar menuseparator
31182 File Format
31183 \end_layout
31184
31185 \end_inset
31186
31187  dialog).
31188  This command must occur exactly once.
31189  If the resulting file format is PDF, you need to specify the format 
31190 \begin_inset Flex Code
31191 status collapsed
31192
31193 \begin_layout Plain Layout
31194 pdf6
31195 \end_layout
31196
31197 \end_inset
31198
31199 .
31200  This is the PDF format used for including graphics.
31201  The other defined PDF formats are for document export.
31202 \end_layout
31203
31204 \begin_layout Description
31205 \begin_inset Flex Code
31206 status collapsed
31207
31208 \begin_layout Plain Layout
31209 UpdateResult
31210 \begin_inset space ~
31211 \end_inset
31212
31213 <filename>
31214 \end_layout
31215
31216 \end_inset
31217
31218  The file name of the converted file.
31219  The file name must be absolute.
31220  This command must occur exactly once.
31221 \end_layout
31222
31223 \begin_layout Subsection
31224 Preamble definitions
31225 \end_layout
31226
31227 \begin_layout Standard
31228 The external template configuration file may contain additional preamble
31229  definitions enclosed by 
31230 \begin_inset Flex Code
31231 status collapsed
31232
31233 \begin_layout Plain Layout
31234 PreambleDef
31235 \end_layout
31236
31237 \end_inset
31238
31239  \SpecialChar ldots
31240  
31241 \begin_inset Flex Code
31242 status collapsed
31243
31244 \begin_layout Plain Layout
31245 PreambleDefEnd
31246 \end_layout
31247
31248 \end_inset
31249
31250 .
31251  They can be used by the templates in the 
31252 \begin_inset Flex Code
31253 status collapsed
31254
31255 \begin_layout Plain Layout
31256 Format
31257 \end_layout
31258
31259 \end_inset
31260
31261  section.
31262 \end_layout
31263
31264 \begin_layout Section
31265 The substitution mechanism
31266 \end_layout
31267
31268 \begin_layout Standard
31269 When the external material facility invokes an external program, it is done
31270  on the basis of a command defined in the template configuration file.
31271  These commands can contain various macros that are expanded before execution.
31272  Execution always take place in the directory of the containing document.
31273 \end_layout
31274
31275 \begin_layout Standard
31276 Also, whenever external material is to be displayed, the name will be produced
31277  by the substitution mechanism, and most other commands in the template
31278  definition support substitution as well.
31279 \end_layout
31280
31281 \begin_layout Standard
31282 The available macros are the following:
31283 \end_layout
31284
31285 \begin_layout Description
31286 \begin_inset Flex Code
31287 status collapsed
31288
31289 \begin_layout Plain Layout
31290 $$AbsOrRelPathMaster
31291 \end_layout
31292
31293 \end_inset
31294
31295  The file path, absolute or relative to the master \SpecialChar LyX
31296  document.
31297 \end_layout
31298
31299 \begin_layout Description
31300 \begin_inset Flex Code
31301 status collapsed
31302
31303 \begin_layout Plain Layout
31304 $$AbsOrRelPathParent
31305 \end_layout
31306
31307 \end_inset
31308
31309  The file path, absolute or relative to the \SpecialChar LyX
31310  document.
31311 \end_layout
31312
31313 \begin_layout Description
31314 \begin_inset Flex Code
31315 status collapsed
31316
31317 \begin_layout Plain Layout
31318 $$AbsPath
31319 \end_layout
31320
31321 \end_inset
31322
31323  The absolute file path.
31324 \end_layout
31325
31326 \begin_layout Description
31327 \begin_inset Flex Code
31328 status collapsed
31329
31330 \begin_layout Plain Layout
31331 $$Basename
31332 \end_layout
31333
31334 \end_inset
31335
31336  The filename without path and without the extension.
31337 \end_layout
31338
31339 \begin_layout Description
31340 \begin_inset Flex Code
31341 status collapsed
31342
31343 \begin_layout Plain Layout
31344 $$Contents(
31345 \begin_inset Quotes eld
31346 \end_inset
31347
31348 filename.ext
31349 \begin_inset Quotes erd
31350 \end_inset
31351
31352 )
31353 \end_layout
31354
31355 \end_inset
31356
31357  This macro will expand to the contents of the file with the name 
31358 \begin_inset Flex Code
31359 status collapsed
31360
31361 \begin_layout Plain Layout
31362 filename.ext
31363 \end_layout
31364
31365 \end_inset
31366
31367 .
31368 \end_layout
31369
31370 \begin_layout Description
31371 \begin_inset Flex Code
31372 status collapsed
31373
31374 \begin_layout Plain Layout
31375 $$Extension
31376 \end_layout
31377
31378 \end_inset
31379
31380  The file extension (including the dot).
31381 \end_layout
31382
31383 \begin_layout Description
31384 \begin_inset Flex Code
31385 status collapsed
31386
31387 \begin_layout Plain Layout
31388 $$pngOrjpg
31389 \end_layout
31390
31391 \end_inset
31392
31393  This will be the string 
31394 \begin_inset Quotes eld
31395 \end_inset
31396
31397 jpg
31398 \begin_inset Quotes erd
31399 \end_inset
31400
31401  if the file is in JPEG format, otherwise it will be the string 
31402 \begin_inset Quotes eld
31403 \end_inset
31404
31405 png
31406 \begin_inset Quotes erd
31407 \end_inset
31408
31409 .
31410  This is useful to avoid uneeded conversions for output formats that support
31411  both PNG and JPEG fomats.
31412  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
31413  output
31414  format.
31415 \end_layout
31416
31417 \begin_layout Description
31418 \begin_inset Flex Code
31419 status collapsed
31420
31421 \begin_layout Plain Layout
31422 $$FName
31423 \end_layout
31424
31425 \end_inset
31426
31427  The filename of the file specified in the external material dialog.
31428  This is either an absolute name, or it is relative to the \SpecialChar LyX
31429  document.
31430 \end_layout
31431
31432 \begin_layout Description
31433 \begin_inset Flex Code
31434 status collapsed
31435
31436 \begin_layout Plain Layout
31437 $$FPath
31438 \end_layout
31439
31440 \end_inset
31441
31442  The path part of 
31443 \begin_inset Flex Code
31444 status collapsed
31445
31446 \begin_layout Plain Layout
31447 $$FName
31448 \end_layout
31449
31450 \end_inset
31451
31452  (absolute name or relative to the \SpecialChar LyX
31453  document).
31454 \end_layout
31455
31456 \begin_layout Description
31457 \begin_inset Flex Code
31458 status collapsed
31459
31460 \begin_layout Plain Layout
31461 $$RelPathMaster
31462 \end_layout
31463
31464 \end_inset
31465
31466  The file path, relative to the master \SpecialChar LyX
31467  document.
31468 \end_layout
31469
31470 \begin_layout Description
31471 \begin_inset Flex Code
31472 status collapsed
31473
31474 \begin_layout Plain Layout
31475 $$RelPathParent
31476 \end_layout
31477
31478 \end_inset
31479
31480  The file path, relative to the \SpecialChar LyX
31481  document.
31482 \end_layout
31483
31484 \begin_layout Description
31485 \begin_inset Flex Code
31486 status collapsed
31487
31488 \begin_layout Plain Layout
31489 $$Sysdir
31490 \end_layout
31491
31492 \end_inset
31493
31494  This macro will expand to the absolute path of the system directory.
31495  This is typically used to point to the various helper scripts that are
31496  bundled with \SpecialChar LyX
31497 .
31498 \end_layout
31499
31500 \begin_layout Description
31501 \begin_inset Flex Code
31502 status collapsed
31503
31504 \begin_layout Plain Layout
31505 $$Tempname
31506 \end_layout
31507
31508 \end_inset
31509
31510  A name and full path to a temporary file which will be automatically deleted
31511  whenever the containing document is closed, or the external material insertion
31512  deleted.
31513 \end_layout
31514
31515 \begin_layout Standard
31516 All path macros contain a trailing directory separator, so you can construct
31517  e.
31518 \begin_inset space \thinspace{}
31519 \end_inset
31520
31521 g.
31522 \begin_inset space \space{}
31523 \end_inset
31524
31525 the absolute filename with 
31526 \begin_inset Flex Code
31527 status collapsed
31528
31529 \begin_layout Plain Layout
31530 $$AbsPath$$Basename$$Extension
31531 \end_layout
31532
31533 \end_inset
31534
31535 .
31536 \end_layout
31537
31538 \begin_layout Standard
31539 The macros above are substituted in all commands unless otherwise noted.
31540  The command 
31541 \begin_inset Flex Code
31542 status collapsed
31543
31544 \begin_layout Plain Layout
31545 Product
31546 \end_layout
31547
31548 \end_inset
31549
31550  supports additionally the following substitutions if they are enabled by
31551  the 
31552 \begin_inset Flex Code
31553 status collapsed
31554
31555 \begin_layout Plain Layout
31556 Transform
31557 \end_layout
31558
31559 \end_inset
31560
31561  and 
31562 \begin_inset Flex Code
31563 status collapsed
31564
31565 \begin_layout Plain Layout
31566 TransformCommand
31567 \end_layout
31568
31569 \end_inset
31570
31571  commands:
31572 \end_layout
31573
31574 \begin_layout Description
31575 \begin_inset Flex Code
31576 status collapsed
31577
31578 \begin_layout Plain Layout
31579 $$ResizeFront
31580 \end_layout
31581
31582 \end_inset
31583
31584  The front part of the resize command.
31585 \end_layout
31586
31587 \begin_layout Description
31588 \begin_inset Flex Code
31589 status collapsed
31590
31591 \begin_layout Plain Layout
31592 $$ResizeBack
31593 \end_layout
31594
31595 \end_inset
31596
31597  The back part of the resize command.
31598 \end_layout
31599
31600 \begin_layout Description
31601 \begin_inset Flex Code
31602 status collapsed
31603
31604 \begin_layout Plain Layout
31605 $$RotateFront
31606 \end_layout
31607
31608 \end_inset
31609
31610  The front part of the rotation command.
31611 \end_layout
31612
31613 \begin_layout Description
31614 \begin_inset Flex Code
31615 status collapsed
31616
31617 \begin_layout Plain Layout
31618 $$RotateBack
31619 \end_layout
31620
31621 \end_inset
31622
31623  The back part of the rotation command.
31624 \end_layout
31625
31626 \begin_layout Standard
31627 The value string of the 
31628 \begin_inset Flex Code
31629 status collapsed
31630
31631 \begin_layout Plain Layout
31632 Option
31633 \end_layout
31634
31635 \end_inset
31636
31637  command supports additionally the following substitutions if they are enabled
31638  by the 
31639 \begin_inset Flex Code
31640 status collapsed
31641
31642 \begin_layout Plain Layout
31643 Transform
31644 \end_layout
31645
31646 \end_inset
31647
31648  and 
31649 \begin_inset Flex Code
31650 status collapsed
31651
31652 \begin_layout Plain Layout
31653 TransformOption
31654 \end_layout
31655
31656 \end_inset
31657
31658  commands:
31659 \end_layout
31660
31661 \begin_layout Description
31662 \begin_inset Flex Code
31663 status collapsed
31664
31665 \begin_layout Plain Layout
31666 $$Clip
31667 \end_layout
31668
31669 \end_inset
31670
31671  The clip option.
31672 \end_layout
31673
31674 \begin_layout Description
31675 \begin_inset Flex Code
31676 status collapsed
31677
31678 \begin_layout Plain Layout
31679 $$Extra
31680 \end_layout
31681
31682 \end_inset
31683
31684  The extra option.
31685 \end_layout
31686
31687 \begin_layout Description
31688 \begin_inset Flex Code
31689 status collapsed
31690
31691 \begin_layout Plain Layout
31692 $$Resize
31693 \end_layout
31694
31695 \end_inset
31696
31697  The resize option.
31698 \end_layout
31699
31700 \begin_layout Description
31701 \begin_inset Flex Code
31702 status collapsed
31703
31704 \begin_layout Plain Layout
31705 $$Rotate
31706 \end_layout
31707
31708 \end_inset
31709
31710  The rotation option.
31711 \end_layout
31712
31713 \begin_layout Standard
31714 You may ask why there are so many path macros.
31715  There are mainly two reasons:
31716 \end_layout
31717
31718 \begin_layout Enumerate
31719 Relative and absolute file names should remain relative or absolute, respectivel
31720 y.
31721  Users may have reasons to prefer either form.
31722  Relative names are useful for portable documents that should work on different
31723  machines, for example.
31724  Absolute names may be required by some programs.
31725 \end_layout
31726
31727 \begin_layout Enumerate
31728 \SpecialChar LaTeX
31729  treats relative file names differently than \SpecialChar LyX
31730  and other programs in nested
31731  included files.
31732  For \SpecialChar LyX
31733 , a relative file name is always relative to the document that contains
31734  the file name.
31735  For \SpecialChar LaTeX
31736 , it is always relative to the master document.
31737  These two definitions are identical if you have only one document, but
31738  differ if you have a master document that includes part documents.
31739  That means that relative filenames must be transformed when presented to
31740  \SpecialChar LaTeX
31741 .
31742  Fortunately \SpecialChar LyX
31743  does this automatically for you if you choose the right macros.
31744 \end_layout
31745
31746 \begin_layout Standard
31747 So which path macro should be used in new template definitions? The rule
31748  is not difficult:
31749 \end_layout
31750
31751 \begin_layout Itemize
31752 Use 
31753 \begin_inset Flex Code
31754 status collapsed
31755
31756 \begin_layout Plain Layout
31757 $$AbsPath
31758 \end_layout
31759
31760 \end_inset
31761
31762  if an absolute path is required.
31763 \end_layout
31764
31765 \begin_layout Itemize
31766 Use 
31767 \begin_inset Flex Code
31768 status collapsed
31769
31770 \begin_layout Plain Layout
31771 $$AbsOrRelPathMaster
31772 \end_layout
31773
31774 \end_inset
31775
31776  if the substituted string is some kind of \SpecialChar LaTeX
31777  input.
31778 \end_layout
31779
31780 \begin_layout Itemize
31781 Else use 
31782 \begin_inset Flex Code
31783 status collapsed
31784
31785 \begin_layout Plain Layout
31786 $$AbsOrRelPathParent
31787 \end_layout
31788
31789 \end_inset
31790
31791  in order to preserve the user's choice.
31792 \end_layout
31793
31794 \begin_layout Standard
31795 There are special cases where this rule does not work and e.
31796 \begin_inset space \thinspace{}
31797 \end_inset
31798
31799 g.
31800 \begin_inset space \space{}
31801 \end_inset
31802
31803 relative names are needed, but normally it will work just fine.
31804  One example for such a case is the command 
31805 \begin_inset Flex Code
31806 status collapsed
31807
31808 \begin_layout Plain Layout
31809 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
31810 \end_layout
31811
31812 \end_inset
31813
31814  in the XFig template above: We can't use the absolute name because the
31815  copier for 
31816 \begin_inset Flex Code
31817 status collapsed
31818
31819 \begin_layout Plain Layout
31820 .pstex_t
31821 \end_layout
31822
31823 \end_inset
31824
31825  files needs the relative name in order to rewrite the file content.
31826 \end_layout
31827
31828 \begin_layout Section
31829 Security discussion
31830 \begin_inset CommandInset label
31831 LatexCommand label
31832 name "sec:Security-discussion"
31833
31834 \end_inset
31835
31836
31837 \end_layout
31838
31839 \begin_layout Standard
31840 The external material feature interfaces with a lot of external programs
31841  and does so automatically, so we have to consider the security implications
31842  of this.
31843  In particular, since you have the option of including your own filenames
31844  and/or parameter strings and those are expanded into a command, it seems
31845  that it would be possible to create a malicious document which executes
31846  arbitrary commands when a user views or prints the document.
31847  This is something we definitely want to avoid.
31848 \end_layout
31849
31850 \begin_layout Standard
31851 However, since the external program commands are specified in the template
31852  configuration file only, there are no security issues if \SpecialChar LyX
31853  is properly configure
31854 d with safe templates only.
31855  This is so because the external programs are invoked with the 
31856 \begin_inset Flex Code
31857 status collapsed
31858
31859 \begin_layout Plain Layout
31860 execvp
31861 \end_layout
31862
31863 \end_inset
31864
31865 -system call rather than the 
31866 \begin_inset Flex Code
31867 status collapsed
31868
31869 \begin_layout Plain Layout
31870 system
31871 \end_layout
31872
31873 \end_inset
31874
31875  system-call, so it's not possible to execute arbitrary commands from the
31876  filename or parameter section via the shell.
31877 \end_layout
31878
31879 \begin_layout Standard
31880 This also implies that you are restricted in what command strings you can
31881  use in the external material templates.
31882  In particular, pipes and redirection are not readily available.
31883  This has to be so if \SpecialChar LyX
31884  should remain safe.
31885  If you want to use some of the shell features, you should write a safe
31886  script to do this in a controlled manner, and then invoke the script from
31887  the command string.
31888  
31889 \end_layout
31890
31891 \begin_layout Standard
31892 It is possible to design a template that interacts directly with the shell,
31893  but since this would allow a malicious user to execute arbitrary commands
31894  by writing clever filenames and/or parameters, we generally recommend that
31895  you only use safe scripts that work with the 
31896 \begin_inset Flex Code
31897 status collapsed
31898
31899 \begin_layout Plain Layout
31900 execvp
31901 \end_layout
31902
31903 \end_inset
31904
31905  system call in a controlled manner.
31906  Of course, for use in a controlled environment, it can be tempting to just
31907  fall back to use ordinary shell scripts.
31908  If you do so, be aware that you 
31909 \emph on
31910 will
31911 \emph default
31912  provide an easily exploitable security hole in your system.
31913  Of course it stands to reason that such unsafe templates will never be
31914  included in the standard \SpecialChar LyX
31915  distribution, although we do encourage people
31916  to submit new templates in the open source tradition.
31917  But \SpecialChar LyX
31918  as shipped from the official distribution channels will never have
31919  unsafe templates.
31920 \end_layout
31921
31922 \begin_layout Standard
31923 Including external material provides a lot of power, and you have to be
31924  careful not to introduce security hazards with this power.
31925  A subtle error in a single line in an innocent looking script can open
31926  the door to huge security problems.
31927  So if you do not fully understand the issues, we recommend that you consult
31928  a knowledgeable security professional or the \SpecialChar LyX
31929  development team if you have
31930  any questions about whether a given template is safe or not.
31931  And do this before you use it in an uncontrolled environment.
31932 \end_layout
31933
31934 \begin_layout Chapter
31935 \start_of_appendix
31936 List of supported \SpecialChar LyX
31937  functions to be used in layouts
31938 \begin_inset CommandInset label
31939 LatexCommand label
31940 name "chap:List-of-functions"
31941
31942 \end_inset
31943
31944
31945 \end_layout
31946
31947 \begin_layout Standard
31948 \align center
31949 \begin_inset Tabular
31950 <lyxtabular version="3" rows="11" columns="8">
31951 <features tabularvalignment="middle">
31952 <column alignment="left" valignment="top">
31953 <column alignment="left" valignment="top">
31954 <column alignment="left" valignment="top">
31955 <column alignment="left" valignment="top">
31956 <column alignment="left" valignment="top">
31957 <column alignment="left" valignment="top">
31958 <column alignment="left" valignment="top">
31959 <column alignment="left" valignment="top">
31960 <row>
31961 <cell alignment="left" valignment="top" usebox="none">
31962 \begin_inset Text
31963
31964 \begin_layout Plain Layout
31965 accents
31966 \end_layout
31967
31968 \end_inset
31969 </cell>
31970 <cell alignment="left" valignment="top" usebox="none">
31971 \begin_inset Text
31972
31973 \begin_layout Plain Layout
31974 booktabs
31975 \end_layout
31976
31977 \end_inset
31978 </cell>
31979 <cell alignment="left" valignment="top" usebox="none">
31980 \begin_inset Text
31981
31982 \begin_layout Plain Layout
31983 feyn
31984 \end_layout
31985
31986 \end_inset
31987 </cell>
31988 <cell alignment="left" valignment="top" usebox="none">
31989 \begin_inset Text
31990
31991 \begin_layout Plain Layout
31992 listings
31993 \end_layout
31994
31995 \end_inset
31996 </cell>
31997 <cell alignment="center" valignment="top" usebox="none">
31998 \begin_inset Text
31999
32000 \begin_layout Plain Layout
32001 natbib
32002 \end_layout
32003
32004 \end_inset
32005 </cell>
32006 <cell alignment="center" valignment="top" usebox="none">
32007 \begin_inset Text
32008
32009 \begin_layout Plain Layout
32010 rotfloat
32011 \end_layout
32012
32013 \end_inset
32014 </cell>
32015 <cell alignment="center" valignment="top" usebox="none">
32016 \begin_inset Text
32017
32018 \begin_layout Plain Layout
32019 tfrupee
32020 \end_layout
32021
32022 \end_inset
32023 </cell>
32024 <cell alignment="center" valignment="top" usebox="none">
32025 \begin_inset Text
32026
32027 \begin_layout Plain Layout
32028 wasysym
32029 \end_layout
32030
32031 \end_inset
32032 </cell>
32033 </row>
32034 <row>
32035 <cell alignment="left" valignment="top" usebox="none">
32036 \begin_inset Text
32037
32038 \begin_layout Plain Layout
32039 amsbsy
32040 \end_layout
32041
32042 \end_inset
32043 </cell>
32044 <cell alignment="left" valignment="top" usebox="none">
32045 \begin_inset Text
32046
32047 \begin_layout Plain Layout
32048 calc
32049 \end_layout
32050
32051 \end_inset
32052 </cell>
32053 <cell alignment="left" valignment="top" usebox="none">
32054 \begin_inset Text
32055
32056 \begin_layout Plain Layout
32057 fixltx2e
32058 \end_layout
32059
32060 \end_inset
32061 </cell>
32062 <cell alignment="left" valignment="top" usebox="none">
32063 \begin_inset Text
32064
32065 \begin_layout Plain Layout
32066 longtable
32067 \end_layout
32068
32069 \end_inset
32070 </cell>
32071 <cell alignment="center" valignment="top" usebox="none">
32072 \begin_inset Text
32073
32074 \begin_layout Plain Layout
32075 nomencl
32076 \end_layout
32077
32078 \end_inset
32079 </cell>
32080 <cell alignment="center" valignment="top" usebox="none">
32081 \begin_inset Text
32082
32083 \begin_layout Plain Layout
32084 rsphrase
32085 \end_layout
32086
32087 \end_inset
32088 </cell>
32089 <cell alignment="center" valignment="top" usebox="none">
32090 \begin_inset Text
32091
32092 \begin_layout Plain Layout
32093 tipa
32094 \end_layout
32095
32096 \end_inset
32097 </cell>
32098 <cell alignment="center" valignment="top" usebox="none">
32099 \begin_inset Text
32100
32101 \begin_layout Plain Layout
32102 wrapfig
32103 \end_layout
32104
32105 \end_inset
32106 </cell>
32107 </row>
32108 <row>
32109 <cell alignment="left" valignment="top" usebox="none">
32110 \begin_inset Text
32111
32112 \begin_layout Plain Layout
32113 amscd
32114 \end_layout
32115
32116 \end_inset
32117 </cell>
32118 <cell alignment="left" valignment="top" usebox="none">
32119 \begin_inset Text
32120
32121 \begin_layout Plain Layout
32122 CJK
32123 \end_layout
32124
32125 \end_inset
32126 </cell>
32127 <cell alignment="left" valignment="top" usebox="none">
32128 \begin_inset Text
32129
32130 \begin_layout Plain Layout
32131 float
32132 \end_layout
32133
32134 \end_inset
32135 </cell>
32136 <cell alignment="left" valignment="top" usebox="none">
32137 \begin_inset Text
32138
32139 \begin_layout Plain Layout
32140 lyxskak
32141 \end_layout
32142
32143 \end_inset
32144 </cell>
32145 <cell alignment="center" valignment="top" usebox="none">
32146 \begin_inset Text
32147
32148 \begin_layout Plain Layout
32149 pdfcolmk
32150 \end_layout
32151
32152 \end_inset
32153 </cell>
32154 <cell alignment="center" valignment="top" usebox="none">
32155 \begin_inset Text
32156
32157 \begin_layout Plain Layout
32158 setspace
32159 \end_layout
32160
32161 \end_inset
32162 </cell>
32163 <cell alignment="center" valignment="top" usebox="none">
32164 \begin_inset Text
32165
32166 \begin_layout Plain Layout
32167 tipx
32168 \end_layout
32169
32170 \end_inset
32171 </cell>
32172 <cell alignment="center" valignment="top" usebox="none">
32173 \begin_inset Text
32174
32175 \begin_layout Plain Layout
32176 xargs
32177 \end_layout
32178
32179 \end_inset
32180 </cell>
32181 </row>
32182 <row>
32183 <cell alignment="left" valignment="top" usebox="none">
32184 \begin_inset Text
32185
32186 \begin_layout Plain Layout
32187 amsmath
32188 \end_layout
32189
32190 \end_inset
32191 </cell>
32192 <cell alignment="left" valignment="top" usebox="none">
32193 \begin_inset Text
32194
32195 \begin_layout Plain Layout
32196 color
32197 \end_layout
32198
32199 \end_inset
32200 </cell>
32201 <cell alignment="left" valignment="top" usebox="none">
32202 \begin_inset Text
32203
32204 \begin_layout Plain Layout
32205 framed
32206 \end_layout
32207
32208 \end_inset
32209 </cell>
32210 <cell alignment="left" valignment="top" usebox="none">
32211 \begin_inset Text
32212
32213 \begin_layout Plain Layout
32214 makeidx
32215 \end_layout
32216
32217 \end_inset
32218 </cell>
32219 <cell alignment="center" valignment="top" usebox="none">
32220 \begin_inset Text
32221
32222 \begin_layout Plain Layout
32223 pdfpages
32224 \end_layout
32225
32226 \end_inset
32227 </cell>
32228 <cell alignment="center" valignment="top" usebox="none">
32229 \begin_inset Text
32230
32231 \begin_layout Plain Layout
32232 shapepar
32233 \end_layout
32234
32235 \end_inset
32236 </cell>
32237 <cell alignment="center" valignment="top" usebox="none">
32238 \begin_inset Text
32239
32240 \begin_layout Plain Layout
32241 tone
32242 \end_layout
32243
32244 \end_inset
32245 </cell>
32246 <cell alignment="center" valignment="top" usebox="none">
32247 \begin_inset Text
32248
32249 \begin_layout Plain Layout
32250 xcolor
32251 \end_layout
32252
32253 \end_inset
32254 </cell>
32255 </row>
32256 <row>
32257 <cell alignment="left" valignment="top" usebox="none">
32258 \begin_inset Text
32259
32260 \begin_layout Plain Layout
32261 amssymb
32262 \end_layout
32263
32264 \end_inset
32265 </cell>
32266 <cell alignment="left" valignment="top" usebox="none">
32267 \begin_inset Text
32268
32269 \begin_layout Plain Layout
32270 covington
32271 \end_layout
32272
32273 \end_inset
32274 </cell>
32275 <cell alignment="left" valignment="top" usebox="none">
32276 \begin_inset Text
32277
32278 \begin_layout Plain Layout
32279 graphicx
32280 \end_layout
32281
32282 \end_inset
32283 </cell>
32284 <cell alignment="left" valignment="top" usebox="none">
32285 \begin_inset Text
32286
32287 \begin_layout Plain Layout
32288 marvosym
32289 \end_layout
32290
32291 \end_inset
32292 </cell>
32293 <cell alignment="center" valignment="top" usebox="none">
32294 \begin_inset Text
32295
32296 \begin_layout Plain Layout
32297 pifont
32298 \end_layout
32299
32300 \end_inset
32301 </cell>
32302 <cell alignment="center" valignment="top" usebox="none">
32303 \begin_inset Text
32304
32305 \begin_layout Plain Layout
32306 slashed
32307 \end_layout
32308
32309 \end_inset
32310 </cell>
32311 <cell alignment="center" valignment="top" usebox="none">
32312 \begin_inset Text
32313
32314 \begin_layout Plain Layout
32315 txfonts
32316 \end_layout
32317
32318 \end_inset
32319 </cell>
32320 <cell alignment="center" valignment="top" usebox="none">
32321 \begin_inset Text
32322
32323 \begin_layout Plain Layout
32324 xy
32325 \end_layout
32326
32327 \end_inset
32328 </cell>
32329 </row>
32330 <row>
32331 <cell alignment="left" valignment="top" usebox="none">
32332 \begin_inset Text
32333
32334 \begin_layout Plain Layout
32335 amstext
32336 \end_layout
32337
32338 \end_inset
32339 </cell>
32340 <cell alignment="left" valignment="top" usebox="none">
32341 \begin_inset Text
32342
32343 \begin_layout Plain Layout
32344 csquotes
32345 \end_layout
32346
32347 \end_inset
32348 </cell>
32349 <cell alignment="left" valignment="top" usebox="none">
32350 \begin_inset Text
32351
32352 \begin_layout Plain Layout
32353 hhline
32354 \end_layout
32355
32356 \end_inset
32357 </cell>
32358 <cell alignment="left" valignment="top" usebox="none">
32359 \begin_inset Text
32360
32361 \begin_layout Plain Layout
32362 mathdesign
32363 \end_layout
32364
32365 \end_inset
32366 </cell>
32367 <cell alignment="center" valignment="top" usebox="none">
32368 \begin_inset Text
32369
32370 \begin_layout Plain Layout
32371 pmboxdraw
32372 \end_layout
32373
32374 \end_inset
32375 </cell>
32376 <cell alignment="center" valignment="top" usebox="none">
32377 \begin_inset Text
32378
32379 \begin_layout Plain Layout
32380 soul
32381 \end_layout
32382
32383 \end_inset
32384 </cell>
32385 <cell alignment="center" valignment="top" usebox="none">
32386 \begin_inset Text
32387
32388 \begin_layout Plain Layout
32389 ulem
32390 \end_layout
32391
32392 \end_inset
32393 </cell>
32394 <cell alignment="center" valignment="top" usebox="none">
32395 \begin_inset Text
32396
32397 \begin_layout Plain Layout
32398 yhmath
32399 \end_layout
32400
32401 \end_inset
32402 </cell>
32403 </row>
32404 <row>
32405 <cell alignment="left" valignment="top" usebox="none">
32406 \begin_inset Text
32407
32408 \begin_layout Plain Layout
32409 amsthm
32410 \end_layout
32411
32412 \end_inset
32413 </cell>
32414 <cell alignment="left" valignment="top" usebox="none">
32415 \begin_inset Text
32416
32417 \begin_layout Plain Layout
32418 dvipost
32419 \end_layout
32420
32421 \end_inset
32422 </cell>
32423 <cell alignment="left" valignment="top" usebox="none">
32424 \begin_inset Text
32425
32426 \begin_layout Plain Layout
32427 hyperref
32428 \end_layout
32429
32430 \end_inset
32431 </cell>
32432 <cell alignment="left" valignment="top" usebox="none">
32433 \begin_inset Text
32434
32435 \begin_layout Plain Layout
32436 mathdots
32437 \end_layout
32438
32439 \end_inset
32440 </cell>
32441 <cell alignment="center" valignment="top" usebox="none">
32442 \begin_inset Text
32443
32444 \begin_layout Plain Layout
32445 polyglossia
32446 \end_layout
32447
32448 \end_inset
32449 </cell>
32450 <cell alignment="center" valignment="top" usebox="none">
32451 \begin_inset Text
32452
32453 \begin_layout Plain Layout
32454 splitidx
32455 \end_layout
32456
32457 \end_inset
32458 </cell>
32459 <cell alignment="center" valignment="top" usebox="none">
32460 \begin_inset Text
32461
32462 \begin_layout Plain Layout
32463 undertilde
32464 \end_layout
32465
32466 \end_inset
32467 </cell>
32468 <cell alignment="center" valignment="top" usebox="none">
32469 \begin_inset Text
32470
32471 \begin_layout Plain Layout
32472
32473 \end_layout
32474
32475 \end_inset
32476 </cell>
32477 </row>
32478 <row>
32479 <cell alignment="left" valignment="top" usebox="none">
32480 \begin_inset Text
32481
32482 \begin_layout Plain Layout
32483 array
32484 \end_layout
32485
32486 \end_inset
32487 </cell>
32488 <cell alignment="left" valignment="top" usebox="none">
32489 \begin_inset Text
32490
32491 \begin_layout Plain Layout
32492 endnotes
32493 \end_layout
32494
32495 \end_inset
32496 </cell>
32497 <cell alignment="left" valignment="top" usebox="none">
32498 \begin_inset Text
32499
32500 \begin_layout Plain Layout
32501 ifsym
32502 \end_layout
32503
32504 \end_inset
32505 </cell>
32506 <cell alignment="left" valignment="top" usebox="none">
32507 \begin_inset Text
32508
32509 \begin_layout Plain Layout
32510 mathrsfs
32511 \end_layout
32512
32513 \end_inset
32514 </cell>
32515 <cell alignment="center" valignment="top" usebox="none">
32516 \begin_inset Text
32517
32518 \begin_layout Plain Layout
32519 prettyref
32520 \end_layout
32521
32522 \end_inset
32523 </cell>
32524 <cell alignment="center" valignment="top" usebox="none">
32525 \begin_inset Text
32526
32527 \begin_layout Plain Layout
32528 subfig
32529 \end_layout
32530
32531 \end_inset
32532 </cell>
32533 <cell alignment="center" valignment="top" usebox="none">
32534 \begin_inset Text
32535
32536 \begin_layout Plain Layout
32537 units
32538 \end_layout
32539
32540 \end_inset
32541 </cell>
32542 <cell alignment="center" valignment="top" usebox="none">
32543 \begin_inset Text
32544
32545 \begin_layout Plain Layout
32546
32547 \end_layout
32548
32549 \end_inset
32550 </cell>
32551 </row>
32552 <row>
32553 <cell alignment="left" valignment="top" usebox="none">
32554 \begin_inset Text
32555
32556 \begin_layout Plain Layout
32557 ascii
32558 \end_layout
32559
32560 \end_inset
32561 </cell>
32562 <cell alignment="left" valignment="top" usebox="none">
32563 \begin_inset Text
32564
32565 \begin_layout Plain Layout
32566 enumitem
32567 \end_layout
32568
32569 \end_inset
32570 </cell>
32571 <cell alignment="left" valignment="top" usebox="none">
32572 \begin_inset Text
32573
32574 \begin_layout Plain Layout
32575 ifthen
32576 \end_layout
32577
32578 \end_inset
32579 </cell>
32580 <cell alignment="left" valignment="top" usebox="none">
32581 \begin_inset Text
32582
32583 \begin_layout Plain Layout
32584 mhchem
32585 \end_layout
32586
32587 \end_inset
32588 </cell>
32589 <cell alignment="center" valignment="top" usebox="none">
32590 \begin_inset Text
32591
32592 \begin_layout Plain Layout
32593 pxfonts
32594 \end_layout
32595
32596 \end_inset
32597 </cell>
32598 <cell alignment="center" valignment="top" usebox="none">
32599 \begin_inset Text
32600
32601 \begin_layout Plain Layout
32602 subscript
32603 \end_layout
32604
32605 \end_inset
32606 </cell>
32607 <cell alignment="center" valignment="top" usebox="none">
32608 \begin_inset Text
32609
32610 \begin_layout Plain Layout
32611 url
32612 \end_layout
32613
32614 \end_inset
32615 </cell>
32616 <cell alignment="center" valignment="top" usebox="none">
32617 \begin_inset Text
32618
32619 \begin_layout Plain Layout
32620
32621 \end_layout
32622
32623 \end_inset
32624 </cell>
32625 </row>
32626 <row>
32627 <cell alignment="left" valignment="top" usebox="none">
32628 \begin_inset Text
32629
32630 \begin_layout Plain Layout
32631 bbding
32632 \end_layout
32633
32634 \end_inset
32635 </cell>
32636 <cell alignment="left" valignment="top" usebox="none">
32637 \begin_inset Text
32638
32639 \begin_layout Plain Layout
32640 esint
32641 \end_layout
32642
32643 \end_inset
32644 </cell>
32645 <cell alignment="left" valignment="top" usebox="none">
32646 \begin_inset Text
32647
32648 \begin_layout Plain Layout
32649 jurabib
32650 \end_layout
32651
32652 \end_inset
32653 </cell>
32654 <cell alignment="left" valignment="top" usebox="none">
32655 \begin_inset Text
32656
32657 \begin_layout Plain Layout
32658 multicol
32659 \end_layout
32660
32661 \end_inset
32662 </cell>
32663 <cell alignment="center" valignment="top" usebox="none">
32664 \begin_inset Text
32665
32666 \begin_layout Plain Layout
32667 refstyle
32668 \end_layout
32669
32670 \end_inset
32671 </cell>
32672 <cell alignment="center" valignment="top" usebox="none">
32673 \begin_inset Text
32674
32675 \begin_layout Plain Layout
32676 textcomp
32677 \end_layout
32678
32679 \end_inset
32680 </cell>
32681 <cell alignment="center" valignment="top" usebox="none">
32682 \begin_inset Text
32683
32684 \begin_layout Plain Layout
32685 varioref
32686 \end_layout
32687
32688 \end_inset
32689 </cell>
32690 <cell alignment="center" valignment="top" usebox="none">
32691 \begin_inset Text
32692
32693 \begin_layout Plain Layout
32694
32695 \end_layout
32696
32697 \end_inset
32698 </cell>
32699 </row>
32700 <row>
32701 <cell alignment="center" valignment="top" usebox="none">
32702 \begin_inset Text
32703
32704 \begin_layout Plain Layout
32705 bm
32706 \end_layout
32707
32708 \end_inset
32709 </cell>
32710 <cell alignment="center" valignment="top" usebox="none">
32711 \begin_inset Text
32712
32713 \begin_layout Plain Layout
32714 fancybox
32715 \end_layout
32716
32717 \end_inset
32718 </cell>
32719 <cell alignment="center" valignment="top" usebox="none">
32720 \begin_inset Text
32721
32722 \begin_layout Plain Layout
32723 latexsym
32724 \end_layout
32725
32726 \end_inset
32727 </cell>
32728 <cell alignment="center" valignment="top" usebox="none">
32729 \begin_inset Text
32730
32731 \begin_layout Plain Layout
32732 multirow
32733 \end_layout
32734
32735 \end_inset
32736 </cell>
32737 <cell alignment="center" valignment="top" usebox="none">
32738 \begin_inset Text
32739
32740 \begin_layout Plain Layout
32741 rotating
32742 \end_layout
32743
32744 \end_inset
32745 </cell>
32746 <cell alignment="center" valignment="top" usebox="none">
32747 \begin_inset Text
32748
32749 \begin_layout Plain Layout
32750 textgreek
32751 \end_layout
32752
32753 \end_inset
32754 </cell>
32755 <cell alignment="center" valignment="top" usebox="none">
32756 \begin_inset Text
32757
32758 \begin_layout Plain Layout
32759 verbatim
32760 \end_layout
32761
32762 \end_inset
32763 </cell>
32764 <cell alignment="center" valignment="top" usebox="none">
32765 \begin_inset Text
32766
32767 \begin_layout Plain Layout
32768
32769 \end_layout
32770
32771 \end_inset
32772 </cell>
32773 </row>
32774 </lyxtabular>
32775
32776 \end_inset
32777
32778
32779 \end_layout
32780
32781 \begin_layout Chapter
32782 Names of available colors to be used in layouts
32783 \begin_inset CommandInset label
32784 LatexCommand label
32785 name "chap:Names-of-colors"
32786
32787 \end_inset
32788
32789
32790 \end_layout
32791
32792 \begin_layout Standard
32793 The colors listed below are the standard colors and those that you can adjust
32794  in the \SpecialChar LyX
32795  preferences.
32796 \end_layout
32797
32798 \begin_layout Section
32799 Color functions
32800 \end_layout
32801
32802 \begin_layout Standard
32803 The following are no real colors, but rather act on color definitions:
32804 \end_layout
32805
32806 \begin_layout Description
32807 ignore The color is ignored
32808 \end_layout
32809
32810 \begin_layout Description
32811 inherit The color is inherited
32812 \end_layout
32813
32814 \begin_layout Description
32815 none
32816 \family roman
32817 \series medium
32818 \shape up
32819 \size normal
32820 \emph off
32821 \bar no
32822 \strikeout off
32823 \uuline off
32824 \uwave off
32825 \noun off
32826 \color none
32827  No particular color – clear or default
32828 \end_layout
32829
32830 \begin_layout Section
32831 Static colors
32832 \end_layout
32833
32834 \begin_layout Standard
32835 These are fixed colors that cannot be customized:
32836 \end_layout
32837
32838 \begin_layout Description
32839 black
32840 \end_layout
32841
32842 \begin_layout Description
32843 white
32844 \end_layout
32845
32846 \begin_layout Description
32847 blue
32848 \end_layout
32849
32850 \begin_layout Description
32851 brown
32852 \end_layout
32853
32854 \begin_layout Description
32855 cyan
32856 \end_layout
32857
32858 \begin_layout Description
32859 darkgray
32860 \end_layout
32861
32862 \begin_layout Description
32863 gray
32864 \end_layout
32865
32866 \begin_layout Description
32867 green
32868 \end_layout
32869
32870 \begin_layout Description
32871 lightgray
32872 \end_layout
32873
32874 \begin_layout Description
32875 lime
32876 \end_layout
32877
32878 \begin_layout Description
32879 magenta
32880 \end_layout
32881
32882 \begin_layout Description
32883 olive
32884 \end_layout
32885
32886 \begin_layout Description
32887 orange
32888 \end_layout
32889
32890 \begin_layout Description
32891 pink
32892 \end_layout
32893
32894 \begin_layout Description
32895 purple
32896 \end_layout
32897
32898 \begin_layout Description
32899 red
32900 \end_layout
32901
32902 \begin_layout Description
32903 teal
32904 \end_layout
32905
32906 \begin_layout Description
32907 violet
32908 \end_layout
32909
32910 \begin_layout Description
32911 yellow
32912 \end_layout
32913
32914 \begin_layout Section
32915 Dynamic colors
32916 \end_layout
32917
32918 \begin_layout Standard
32919 These are the colors allocated to specific elements in 
32920 \begin_inset Info
32921 type  "menu"
32922 arg   "dialog-show prefs"
32923 \end_inset
32924
32925 :
32926 \end_layout
32927
32928 \begin_layout Description
32929 added_space Added space color
32930 \end_layout
32931
32932 \begin_layout Description
32933 addedtext Added text color
32934 \end_layout
32935
32936 \begin_layout Description
32937 appendix Appendix marker color
32938 \end_layout
32939
32940 \begin_layout Description
32941 background Background color
32942 \end_layout
32943
32944 \begin_layout Description
32945 bottomarea Bottom area color
32946 \end_layout
32947
32948 \begin_layout Description
32949 branchlabel Label color for branches
32950 \end_layout
32951
32952 \begin_layout Description
32953 buttonbg Color used for button background
32954 \end_layout
32955
32956 \begin_layout Description
32957 buttonframe Color for inset button frames
32958 \end_layout
32959
32960 \begin_layout Description
32961 buttonhoverbg Color used for button background under focus
32962 \end_layout
32963
32964 \begin_layout Description
32965 changebar Changebar color
32966 \end_layout
32967
32968 \begin_layout Description
32969 changedtextauthor1 Changed text color author 1
32970 \end_layout
32971
32972 \begin_layout Description
32973 changedtextauthor2 Changed text color author 2
32974 \end_layout
32975
32976 \begin_layout Description
32977 changedtextauthor3 Changed text color author 3
32978 \end_layout
32979
32980 \begin_layout Description
32981 changedtextauthor4 Changed text color author 4
32982 \end_layout
32983
32984 \begin_layout Description
32985 changedtextauthor5 Changed text color author 5
32986 \end_layout
32987
32988 \begin_layout Description
32989 collapsible Collapsible insets text color
32990 \end_layout
32991
32992 \begin_layout Description
32993 collapsibleframe Collapsible insets framecolor
32994 \end_layout
32995
32996 \begin_layout Description
32997 command Text color for command insets
32998 \end_layout
32999
33000 \begin_layout Description
33001 commandbg Background color for command insets
33002 \end_layout
33003
33004 \begin_layout Description
33005 commandframe Frame color for command insets
33006 \end_layout
33007
33008 \begin_layout Description
33009 comment Label color for comments
33010 \end_layout
33011
33012 \begin_layout Description
33013 commentbg Background color of comments
33014 \end_layout
33015
33016 \begin_layout Description
33017 cursor Cursor color
33018 \end_layout
33019
33020 \begin_layout Description
33021 deletedtext Deleted text color
33022 \end_layout
33023
33024 \begin_layout Description
33025 deletedtextmodifier Deleted text modifying color
33026 \end_layout
33027
33028 \begin_layout Description
33029 depthbar Color for the depth bars in the margin
33030 \end_layout
33031
33032 \begin_layout Description
33033 eolmarker End of line marker color
33034 \end_layout
33035
33036 \begin_layout Description
33037 error Color of the \SpecialChar LaTeX
33038  error box
33039 \end_layout
33040
33041 \begin_layout Description
33042 footlabel Label color for footnotes
33043 \end_layout
33044
33045 \begin_layout Description
33046 foreground Foreground color
33047 \end_layout
33048
33049 \begin_layout Description
33050 graphicsbg Graphics inset background color
33051 \end_layout
33052
33053 \begin_layout Description
33054 greyedoutbg Background color of greyedout inset
33055 \end_layout
33056
33057 \begin_layout Description
33058 greyedoutlabel Label color for greyedout insets
33059 \end_layout
33060
33061 \begin_layout Description
33062 greyedouttext Color for greyedout inset text
33063 \end_layout
33064
33065 \begin_layout Description
33066 indexlabel Label color for index insets
33067 \end_layout
33068
33069 \begin_layout Description
33070 inlinecompletion Inline completion color
33071 \end_layout
33072
33073 \begin_layout Description
33074 insetbg Inset marker background color
33075 \end_layout
33076
33077 \begin_layout Description
33078 insetframe Inset marker frame color
33079 \end_layout
33080
33081 \begin_layout Description
33082 language Color for marking foreign language words
33083 \end_layout
33084
33085 \begin_layout Description
33086 latex Text color in \SpecialChar LaTeX
33087  mode
33088 \end_layout
33089
33090 \begin_layout Description
33091 listingsbg Background color of listings inset
33092 \end_layout
33093
33094 \begin_layout Description
33095 marginlabel Label color for margin notes
33096 \end_layout
33097
33098 \begin_layout Description
33099 math Math inset text color
33100 \end_layout
33101
33102 \begin_layout Description
33103 mathbg Math inset background color
33104 \end_layout
33105
33106 \begin_layout Description
33107 mathcorners Math inset frame color not under focus
33108 \end_layout
33109
33110 \begin_layout Description
33111 mathframe Math inset frame color under focus
33112 \end_layout
33113
33114 \begin_layout Description
33115 mathline Math line color
33116 \end_layout
33117
33118 \begin_layout Description
33119 mathmacrobg Macro math inset background color
33120 \end_layout
33121
33122 \begin_layout Description
33123 mathmacroblend Macro math blended color
33124 \end_layout
33125
33126 \begin_layout Description
33127 mathmacroframe Macro math frame color
33128 \end_layout
33129
33130 \begin_layout Description
33131 mathmacrohoverbg Macro math inset background color hovered
33132 \end_layout
33133
33134 \begin_layout Description
33135 mathmacrolabel Macro math label color
33136 \end_layout
33137
33138 \begin_layout Description
33139 mathmacronewarg Macro template color for new parameters
33140 \end_layout
33141
33142 \begin_layout Description
33143 mathmacrooldarg Macro template color for old parameters
33144 \end_layout
33145
33146 \begin_layout Description
33147 newpage New page color
33148 \end_layout
33149
33150 \begin_layout Description
33151 nonunique_inlinecompletion Inline completion color for the non-unique part
33152 \end_layout
33153
33154 \begin_layout Description
33155 note Label color for notes
33156 \end_layout
33157
33158 \begin_layout Description
33159 notebg Background color of notes
33160 \end_layout
33161
33162 \begin_layout Description
33163 pagebreak Page break/line break color
33164 \end_layout
33165
33166 \begin_layout Description
33167 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
33168 \end_layout
33169
33170 \begin_layout Description
33171 phantomtext Text color for phantom insets
33172 \end_layout
33173
33174 \begin_layout Description
33175 preview The color used for previews
33176 \end_layout
33177
33178 \begin_layout Description
33179 previewframe Preview frame color
33180 \end_layout
33181
33182 \begin_layout Description
33183 regexpframe Color for regexp frame
33184 \end_layout
33185
33186 \begin_layout Description
33187 scroll Color that indicates when a row can be scrolled 
33188 \end_layout
33189
33190 \begin_layout Description
33191 selection Background color of selected text
33192 \end_layout
33193
33194 \begin_layout Description
33195 selectiontext Foreground color of selected text
33196 \end_layout
33197
33198 \begin_layout Description
33199 shadedbg Background color of shaded box
33200 \end_layout
33201
33202 \begin_layout Description
33203 special Special chars text color
33204 \end_layout
33205
33206 \begin_layout Description
33207 tabularline Table line color
33208 \end_layout
33209
33210 \begin_layout Description
33211 tabularonoffline Table line color
33212 \end_layout
33213
33214 \begin_layout Description
33215 urllabel Label color for URL insets
33216 \end_layout
33217
33218 \begin_layout Description
33219 urltext Color for URL inset text
33220 \end_layout
33221
33222 \end_body
33223 \end_document