]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
de/UserGuide: adapt some changes from en
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 598
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 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
144 \author 1075283030 "Thibaut"
145 \end_header
146
147 \begin_body
148
149 \begin_layout Title
150 Customizing \SpecialChar LyX
151 : Features for the Advanced User
152 \end_layout
153
154 \begin_layout Author
155 by the \SpecialChar LyX
156  Team
157 \begin_inset Foot
158 status collapsed
159
160 \begin_layout Plain Layout
161 \noindent
162 If you have comments or error corrections, please send them to the \SpecialChar LyX
163  Documentatio
164 n mailing list, 
165 \begin_inset CommandInset href
166 LatexCommand href
167 target "lyx-docs@lists.lyx.org"
168 type "mailto:"
169 literal "false"
170
171 \end_inset
172
173 .
174  Include 
175 \begin_inset Quotes eld
176 \end_inset
177
178 [Customization]
179 \begin_inset Quotes erd
180 \end_inset
181
182  in the subject header, and please cc the current maintainer of this file,
183  Richard Heck <rgheck@comcast.net>.
184 \end_layout
185
186 \end_inset
187
188
189 \begin_inset Newline newline
190 \end_inset
191
192
193 \begin_inset Newline newline
194 \end_inset
195
196 Version 2.3.x 
197 \end_layout
198
199 \begin_layout Standard
200 \begin_inset CommandInset toc
201 LatexCommand tableofcontents
202
203 \end_inset
204
205
206 \end_layout
207
208 \begin_layout Standard
209 \begin_inset Note Note
210 status open
211
212 \begin_layout Plain Layout
213 Please use change tracking when modifying this document.
214  This makes it easier for our translators to recognize things that have
215  been changed, and it helps the maintainer keep up-to-date with what's been
216  done.
217 \end_layout
218
219 \end_inset
220
221
222 \end_layout
223
224 \begin_layout Chapter
225 Introduction
226 \end_layout
227
228 \begin_layout Standard
229 This manual covers the customization features present in \SpecialChar LyX
230 .
231  In it, we discuss issues like keyboard shortcuts, screen previewing options,
232  printer options, sending commands to \SpecialChar LyX
233  via the \SpecialChar LyX
234  Server, internationalization,
235  installing new \SpecialChar LaTeX
236  classes and \SpecialChar LyX
237  layouts, etc.
238  We can't possibly hope to touch on everything you can change—our developers
239  add new features faster than we can document them—but we will explain the
240  most common customizations and hopefully point you in the right direction
241  for some of the more obscure ones.
242 \end_layout
243
244 \begin_layout Standard
245 \begin_inset Branch OutDated
246 inverted 0
247 status collapsed
248
249 \begin_layout Standard
250 Information from previous versions of this document that now seems to be
251  outdated is contained in the OutDated branch of this document.
252  By default, this information will not appear in the \SpecialChar LaTeX
253  output.
254 \end_layout
255
256 \end_inset
257
258
259 \end_layout
260
261 \begin_layout Chapter
262 \SpecialChar LyX
263  configuration files
264 \end_layout
265
266 \begin_layout Standard
267 This chapter aims to help you to find your way through the \SpecialChar LyX
268  configuration
269  files.
270  Before continuing to read this chapter, you should find out where your
271  \SpecialChar LyX
272  library and user directories are by using 
273 \begin_inset Flex Noun
274 status collapsed
275
276 \begin_layout Plain Layout
277 Help\SpecialChar menuseparator
278 About
279 \begin_inset space ~
280 \end_inset
281
282 LyX
283 \end_layout
284
285 \end_inset
286
287 .
288  The library directory is the place where \SpecialChar LyX
289  places its system-wide configuration
290  files; the user directory is where you can place your modified versions.
291  We will call the former 
292 \begin_inset Flex Code
293 status collapsed
294
295 \begin_layout Plain Layout
296 LyXDir
297 \end_layout
298
299 \end_inset
300
301  and the latter 
302 \begin_inset Flex Noun
303 status collapsed
304
305 \begin_layout Plain Layout
306 UserDir
307 \end_layout
308
309 \end_inset
310
311  in the remainder of this document.
312  
313 \end_layout
314
315 \begin_layout Section
316 What's in 
317 \begin_inset Flex Code
318 status collapsed
319
320 \begin_layout Plain Layout
321 LyXDir
322 \end_layout
323
324 \end_inset
325
326 ?
327 \end_layout
328
329 \begin_layout Standard
330 \begin_inset Flex Code
331 status collapsed
332
333 \begin_layout Plain Layout
334 LyXDir
335 \end_layout
336
337 \end_inset
338
339  and its sub-directories contain a number of files and that can be used
340  to customize \SpecialChar LyX
341 's behavior.
342  You can change many of these files from within \SpecialChar LyX
343  itself through the 
344 \begin_inset Flex Noun
345 status collapsed
346
347 \begin_layout Plain Layout
348 Tools\SpecialChar menuseparator
349 Preferences
350 \end_layout
351
352 \end_inset
353
354  dialog.
355  Most customization that you will want to do in \SpecialChar LyX
356  is possible through this
357  dialog.
358  However, many other inner aspects of \SpecialChar LyX
359  can be customized by modifying the
360  files in 
361 \begin_inset Flex Code
362 status collapsed
363
364 \begin_layout Plain Layout
365 LyXDir
366 \end_layout
367
368 \end_inset
369
370 .
371  These files fall in different categories, described in the following subsection
372 s.
373 \end_layout
374
375 \begin_layout Subsection
376 Automatically generated files
377 \end_layout
378
379 \begin_layout Standard
380 The files, which are to be found in 
381 \begin_inset Flex Noun
382 status collapsed
383
384 \begin_layout Plain Layout
385 UserDir
386 \end_layout
387
388 \end_inset
389
390 , are generated when you configure \SpecialChar LyX
391 .
392  They contain various default values that are guessed by inspection.
393  In general, it is not a good idea to modify them, since they might be overwritt
394 en at any time.
395 \end_layout
396
397 \begin_layout Labeling
398 \labelwidthstring 00.00.0000
399 \begin_inset Flex Code
400 status collapsed
401
402 \begin_layout Plain Layout
403 lyxrc.defaults
404 \end_layout
405
406 \end_inset
407
408  contains defaults for various commands.
409 \end_layout
410
411 \begin_layout Labeling
412 \labelwidthstring 00.00.0000
413 \begin_inset Flex Code
414 status collapsed
415
416 \begin_layout Plain Layout
417 packages.lst
418 \end_layout
419
420 \end_inset
421
422  contains the list of packages that have been recognized by \SpecialChar LyX
423 .
424  It is currently unused by the \SpecialChar LyX
425  program itself, but the information extracted,
426  and more, is made available with 
427 \begin_inset Flex Noun
428 status collapsed
429
430 \begin_layout Plain Layout
431 Help\SpecialChar menuseparator
432 \SpecialChar LaTeX
433
434 \begin_inset space ~
435 \end_inset
436
437 Configuration
438 \end_layout
439
440 \end_inset
441
442 .
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 textclass.lst
452 \end_layout
453
454 \end_inset
455
456  the list of text classes that have been found in your 
457 \begin_inset Flex Code
458 status collapsed
459
460 \begin_layout Plain Layout
461 layout/
462 \end_layout
463
464 \end_inset
465
466  directories, along with the associated \SpecialChar LaTeX
467  document class and their description.
468 \end_layout
469
470 \begin_layout Labeling
471 \labelwidthstring 00.00.0000
472 \begin_inset Flex Code
473 status collapsed
474
475 \begin_layout Plain Layout
476 lyxmodules.lst
477 \end_layout
478
479 \end_inset
480
481  the list of layout modules found in your 
482 \begin_inset Flex Code
483 status collapsed
484
485 \begin_layout Plain Layout
486 layout/
487 \end_layout
488
489 \end_inset
490
491  directories
492 \end_layout
493
494 \begin_layout Labeling
495 \labelwidthstring 00.00.0000
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500 *files.lst
501 \end_layout
502
503 \end_inset
504
505  lists of various sorts of \SpecialChar LaTeX
506 -related files found on your system
507 \end_layout
508
509 \begin_layout Labeling
510 \labelwidthstring 00.00.0000
511 \begin_inset Flex Code
512 status collapsed
513
514 \begin_layout Plain Layout
515 doc/\SpecialChar LaTeX
516 Config.lyx
517 \end_layout
518
519 \end_inset
520
521  is automatically generated during configuration from the file 
522 \begin_inset Flex Code
523 status collapsed
524
525 \begin_layout Plain Layout
526 \SpecialChar LaTeX
527 Config.lyx.in
528 \end_layout
529
530 \end_inset
531
532 .
533  It contains information on your \SpecialChar LaTeX
534  configuration.
535 \end_layout
536
537 \begin_layout Subsection
538 Directories
539 \end_layout
540
541 \begin_layout Standard
542 These directories are duplicated between 
543 \begin_inset Flex Code
544 status collapsed
545
546 \begin_layout Plain Layout
547 LyXDir
548 \end_layout
549
550 \end_inset
551
552  and 
553 \begin_inset Flex Code
554 status collapsed
555
556 \begin_layout Plain Layout
557 UserDir
558 \end_layout
559
560 \end_inset
561
562 .
563  If a particular files exists in both places, the one in 
564 \begin_inset Flex Code
565 status collapsed
566
567 \begin_layout Plain Layout
568 UserDir
569 \end_layout
570
571 \end_inset
572
573  will be used.
574 \end_layout
575
576 \begin_layout Labeling
577 \labelwidthstring 00.00.0000
578 \begin_inset Flex Code
579 status collapsed
580
581 \begin_layout Plain Layout
582 bind/
583 \end_layout
584
585 \end_inset
586
587  this directory contains files with the extension 
588 \begin_inset Flex Code
589 status collapsed
590
591 \begin_layout Plain Layout
592 .bind
593 \end_layout
594
595 \end_inset
596
597  that define the keybindings used in \SpecialChar LyX
598 .
599  If there exists an internationalized version of the bind file named 
600 \begin_inset Flex Code
601 status collapsed
602
603 \begin_layout Plain Layout
604 $LANG_xxx.bind
605 \end_layout
606
607 \end_inset
608
609 , that will be used first.
610 \end_layout
611
612 \begin_layout Labeling
613 \labelwidthstring 00.00.0000
614 \begin_inset Flex Code
615 status collapsed
616
617 \begin_layout Plain Layout
618 citeengines/
619 \end_layout
620
621 \end_inset
622
623  contains files with the extension 
624 \begin_inset Flex Code
625 status collapsed
626
627 \begin_layout Plain Layout
628 .citeengine
629 \end_layout
630
631 \end_inset
632
633  which define the diverse citation possibilities (natbib, biblatex etc.).
634  See 
635 \begin_inset CommandInset ref
636 LatexCommand ref
637 reference "subsec:Cite-Engine-Files"
638 plural "false"
639 caps "false"
640 noprefix "false"
641
642 \end_inset
643
644  for details.
645 \end_layout
646
647 \begin_layout Labeling
648 \labelwidthstring 00.00.0000
649 \begin_inset Flex Code
650 status collapsed
651
652 \begin_layout Plain Layout
653 clipart/
654 \end_layout
655
656 \end_inset
657
658  contains graphics files that can be included in documents.
659  
660 \end_layout
661
662 \begin_layout Labeling
663 \labelwidthstring 00.00.0000
664 \begin_inset Flex Code
665 status collapsed
666
667 \begin_layout Plain Layout
668 doc/
669 \end_layout
670
671 \end_inset
672
673  contains \SpecialChar LyX
674  documentation files (including the one you are currently reading).
675  The file 
676 \begin_inset Flex Code
677 status collapsed
678
679 \begin_layout Plain Layout
680 \SpecialChar LaTeX
681 Config.lyx
682 \end_layout
683
684 \end_inset
685
686  deserves special attention, as noted above.
687  The internationalized help docs are in subdirectories 
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692 doc/xx
693 \end_layout
694
695 \end_inset
696
697  where 
698 \begin_inset Quotes eld
699 \end_inset
700
701 xx
702 \begin_inset Quotes erd
703 \end_inset
704
705  is the ISO language code.
706  See 
707 \begin_inset CommandInset ref
708 LatexCommand ref
709 reference "cha:Internationalizing-LyX"
710
711 \end_inset
712
713  for details.
714 \end_layout
715
716 \begin_layout Labeling
717 \labelwidthstring 00.00.0000
718 \begin_inset Flex Code
719 status collapsed
720
721 \begin_layout Plain Layout
722 examples/
723 \end_layout
724
725 \end_inset
726
727  contains example files that explain how to use some features.
728  In the file browser, press the 
729 \begin_inset Flex Noun
730 status collapsed
731
732 \begin_layout Plain Layout
733 Examples
734 \end_layout
735
736 \end_inset
737
738  button to get there.
739 \end_layout
740
741 \begin_layout Labeling
742 \labelwidthstring 00.00.0000
743 \begin_inset Flex Code
744 status collapsed
745
746 \begin_layout Plain Layout
747 images/
748 \end_layout
749
750 \end_inset
751
752  contains image files that are used by the 
753 \begin_inset Flex Noun
754 status collapsed
755
756 \begin_layout Plain Layout
757 Document
758 \end_layout
759
760 \end_inset
761
762  dialog.
763  In addition, it also contains the individual icons used in the toolbar
764  and the banners that can be shown when \SpecialChar LyX
765  is launched.
766 \end_layout
767
768 \begin_layout Labeling
769 \labelwidthstring 00.00.0000
770 \begin_inset Flex Code
771 status collapsed
772
773 \begin_layout Plain Layout
774 kbd/
775 \end_layout
776
777 \end_inset
778
779  contains keyboard keymapping files.
780  See 
781 \begin_inset CommandInset ref
782 LatexCommand ref
783 reference "sec:International-Keymap-Stuff"
784
785 \end_inset
786
787  for details.
788 \end_layout
789
790 \begin_layout Labeling
791 \labelwidthstring 00.00.0000
792 \begin_inset Flex Code
793 status collapsed
794
795 \begin_layout Plain Layout
796 layouts/
797 \end_layout
798
799 \end_inset
800
801  contains the text class and module files described in 
802 \begin_inset CommandInset ref
803 LatexCommand ref
804 reference "cha:Installing-New-Document"
805
806 \end_inset
807
808 .
809 \end_layout
810
811 \begin_layout Labeling
812 \labelwidthstring 00.00.0000
813 \begin_inset Flex Code
814 status collapsed
815
816 \begin_layout Plain Layout
817 lyx2lyx
818 \end_layout
819
820 \end_inset
821
822  contains the 
823 \begin_inset Flex Code
824 status collapsed
825
826 \begin_layout Plain Layout
827 lyx2lyx
828 \end_layout
829
830 \end_inset
831
832  Python scripts used to convert between \SpecialChar LyX
833  versions.
834  These can be run from the command line if, say, you want to batch-convert
835  files.
836 \end_layout
837
838 \begin_layout Labeling
839 \labelwidthstring 00.00.0000
840 \begin_inset Flex Code
841 status collapsed
842
843 \begin_layout Plain Layout
844 scripts/
845 \end_layout
846
847 \end_inset
848
849  contains some files that demonstrate the capabilities of the 
850 \begin_inset Flex Noun
851 status collapsed
852
853 \begin_layout Plain Layout
854 External
855 \begin_inset space ~
856 \end_inset
857
858 Template
859 \end_layout
860
861 \end_inset
862
863  feature.
864  Also contains some scripts used by \SpecialChar LyX
865  itself.
866 \end_layout
867
868 \begin_layout Labeling
869 \labelwidthstring 00.00.0000
870 \begin_inset Flex Code
871 status collapsed
872
873 \begin_layout Plain Layout
874 templates/
875 \end_layout
876
877 \end_inset
878
879  contains the standard \SpecialChar LyX
880  template files described in 
881 \begin_inset CommandInset ref
882 LatexCommand ref
883 reference "subsec:Creating-Templates"
884
885 \end_inset
886
887 .
888 \end_layout
889
890 \begin_layout Labeling
891 \labelwidthstring 00.00.0000
892 \begin_inset Flex Code
893 status collapsed
894
895 \begin_layout Plain Layout
896 ui/
897 \end_layout
898
899 \end_inset
900
901  contains files with the extension 
902 \begin_inset Flex Code
903 status collapsed
904
905 \begin_layout Plain Layout
906 .ui
907 \end_layout
908
909 \end_inset
910
911  that define the user interface to \SpecialChar LyX
912 .
913  That is, the files define which items appear in which menus and the items
914  appearing on the toolbar.
915 \end_layout
916
917 \begin_layout Labeling
918 \labelwidthstring 00.00.0000
919 \begin_inset Flex Code
920 status collapsed
921
922 \begin_layout Plain Layout
923 xtemplates/
924 \end_layout
925
926 \end_inset
927
928  contains files with the extension 
929 \begin_inset Flex Code
930 status collapsed
931
932 \begin_layout Plain Layout
933 .xtemplate
934 \end_layout
935
936 \end_inset
937
938  which define the templates for the insertion of external material to a
939  \SpecialChar LyX
940  document; see 
941 \begin_inset CommandInset ref
942 LatexCommand ref
943 reference "chap:Including-External-Material"
944
945 \end_inset
946
947 .
948 \end_layout
949
950 \begin_layout Subsection
951 Files you don't want to modify
952 \end_layout
953
954 \begin_layout Standard
955 These files are used internally by \SpecialChar LyX
956  and you generally do not need to modify
957  them unless you are a developer.
958 \end_layout
959
960 \begin_layout Labeling
961 \labelwidthstring 00.00.0000
962 \begin_inset Flex Code
963 status collapsed
964
965 \begin_layout Plain Layout
966 CREDITS
967 \end_layout
968
969 \end_inset
970
971  this file contains the list of \SpecialChar LyX
972  developers.
973  The contents are displayed with the menu entry 
974 \begin_inset Flex Noun
975 status collapsed
976
977 \begin_layout Plain Layout
978 Help\SpecialChar menuseparator
979 About
980 \begin_inset space ~
981 \end_inset
982
983 LyX
984 \end_layout
985
986 \end_inset
987
988 .
989 \end_layout
990
991 \begin_layout Labeling
992 \labelwidthstring 00.00.0000
993 \begin_inset Flex Code
994 status collapsed
995
996 \begin_layout Plain Layout
997 chkconfig.ltx
998 \end_layout
999
1000 \end_inset
1001
1002  this is a \SpecialChar LaTeX
1003  script used during the configuration process.
1004  Do not run directly.
1005 \end_layout
1006
1007 \begin_layout Labeling
1008 \labelwidthstring 00.00.0000
1009 \begin_inset Flex Code
1010 status collapsed
1011
1012 \begin_layout Plain Layout
1013 configure.py
1014 \end_layout
1015
1016 \end_inset
1017
1018  this is a Python script that is used to re-configure \SpecialChar LyX
1019 .
1020  It creates configuration files in the directory it was run from.
1021 \end_layout
1022
1023 \begin_layout Subsection
1024 Other files needing a line or two
1025 \end_layout
1026
1027 \begin_layout Labeling
1028 \labelwidthstring 00.00.0000
1029 \begin_inset Flex Code
1030 status collapsed
1031
1032 \begin_layout Plain Layout
1033 encodings
1034 \end_layout
1035
1036 \end_inset
1037
1038  this contains tables describing how different character encodings can be
1039  mapped to Unicode
1040 \end_layout
1041
1042 \begin_layout Labeling
1043 \labelwidthstring 00.00.0000
1044 \begin_inset Flex Code
1045 status collapsed
1046
1047 \begin_layout Plain Layout
1048 languages
1049 \end_layout
1050
1051 \end_inset
1052
1053  this file contains a list of all the languages currently supported by \SpecialChar LyX
1054 .
1055 \end_layout
1056
1057 \begin_layout Labeling
1058 \labelwidthstring 00.00.0000
1059 \begin_inset Flex Code
1060 status collapsed
1061
1062 \begin_layout Plain Layout
1063 latexfonts
1064 \end_layout
1065
1066 \end_inset
1067
1068  contains information about the supported fonts.
1069 \end_layout
1070
1071 \begin_layout Labeling
1072 \labelwidthstring 00.00.0000
1073 \begin_inset Flex Code
1074 status collapsed
1075
1076 \begin_layout Plain Layout
1077 layouttranslations
1078 \end_layout
1079
1080 \end_inset
1081
1082  this file contains translations for internationalized paragraph styles
1083  (see 
1084 \begin_inset CommandInset ref
1085 LatexCommand ref
1086 reference "subsec:I18n"
1087
1088 \end_inset
1089
1090 ).
1091 \end_layout
1092
1093 \begin_layout Labeling
1094 \labelwidthstring 00.00.0000
1095 \begin_inset Flex Code
1096 status collapsed
1097
1098 \begin_layout Plain Layout
1099 unicodesymbols
1100 \end_layout
1101
1102 \end_inset
1103
1104  this file contains information about Unicode-encoded glyphs and the way
1105  they are supported by \SpecialChar LyX
1106  via \SpecialChar LaTeX
1107 .
1108 \end_layout
1109
1110 \begin_layout Section
1111 Your local configuration directory
1112 \end_layout
1113
1114 \begin_layout Standard
1115 Even if you are using \SpecialChar LyX
1116  as an unprivileged user, you might want to change
1117  \SpecialChar LyX
1118  configuration for your own use.
1119  The 
1120 \begin_inset Flex Code
1121 status collapsed
1122
1123 \begin_layout Plain Layout
1124 UserDir
1125 \end_layout
1126
1127 \end_inset
1128
1129  directory contains all your personal configuration files.
1130  This is the directory described as 
1131 \begin_inset Quotes eld
1132 \end_inset
1133
1134 user directory
1135 \begin_inset Quotes erd
1136 \end_inset
1137
1138  in 
1139 \begin_inset Flex Noun
1140 status collapsed
1141
1142 \begin_layout Plain Layout
1143 Help\SpecialChar menuseparator
1144 About
1145 \begin_inset space ~
1146 \end_inset
1147
1148 LyX
1149 \end_layout
1150
1151 \end_inset
1152
1153 .
1154  This directory is used as a mirror of 
1155 \begin_inset Flex Code
1156 status collapsed
1157
1158 \begin_layout Plain Layout
1159 LyXDir
1160 \end_layout
1161
1162 \end_inset
1163
1164 , which means that every file in 
1165 \begin_inset Flex Code
1166 status collapsed
1167
1168 \begin_layout Plain Layout
1169 UserDir
1170 \end_layout
1171
1172 \end_inset
1173
1174  is a replacement for the corresponding file in 
1175 \begin_inset Flex Code
1176 status collapsed
1177
1178 \begin_layout Plain Layout
1179 LyXDir
1180 \end_layout
1181
1182 \end_inset
1183
1184 .
1185  Any configuration file described in the above sections can be placed either
1186  in the system-wide directory, in which case it will affect all users, or
1187  in your local directory for your own use.
1188 \end_layout
1189
1190 \begin_layout Standard
1191 To make things clearer, let's provide a few examples:
1192 \end_layout
1193
1194 \begin_layout Itemize
1195 The preferences set in the 
1196 \begin_inset Flex Noun
1197 status collapsed
1198
1199 \begin_layout Plain Layout
1200 Tools\SpecialChar menuseparator
1201 Preferences
1202 \end_layout
1203
1204 \end_inset
1205
1206  dialog are saved to a file 
1207 \begin_inset Flex Code
1208 status collapsed
1209
1210 \begin_layout Plain Layout
1211 preferences
1212 \end_layout
1213
1214 \end_inset
1215
1216  in 
1217 \begin_inset Flex Code
1218 status collapsed
1219
1220 \begin_layout Plain Layout
1221 UserDir
1222 \end_layout
1223
1224 \end_inset
1225
1226 .
1227 \end_layout
1228
1229 \begin_layout Itemize
1230 When you reconfigure using 
1231 \begin_inset Flex Noun
1232 status collapsed
1233
1234 \begin_layout Plain Layout
1235 Tools\SpecialChar menuseparator
1236 Reconfigure
1237 \end_layout
1238
1239 \end_inset
1240
1241 , \SpecialChar LyX
1242  runs the 
1243 \begin_inset Flex Code
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 configure.py
1248 \end_layout
1249
1250 \end_inset
1251
1252  script, and the resulting files are written in your local configuration
1253  directory.
1254  This means that any additional text class file that you might have added
1255  in 
1256 \begin_inset Flex Code
1257 status collapsed
1258
1259 \begin_layout Plain Layout
1260 UserDir/layouts
1261 \end_layout
1262
1263 \end_inset
1264
1265  will be added to the list of classes in the 
1266 \begin_inset Flex Noun
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 Document\SpecialChar menuseparator
1271 Settings
1272 \end_layout
1273
1274 \end_inset
1275
1276  dialog.
1277 \end_layout
1278
1279 \begin_layout Itemize
1280 If you get some updated documentation from \SpecialChar LyX
1281  ftp site and cannot install
1282  it because you do not have sysadmin rights on your system, you can just
1283  copy the files in 
1284 \begin_inset Flex Code
1285 status collapsed
1286
1287 \begin_layout Plain Layout
1288 UserDir/doc/
1289 \end_layout
1290
1291 \end_inset
1292
1293  and the items in the 
1294 \begin_inset Flex Noun
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 Help
1299 \end_layout
1300
1301 \end_inset
1302
1303  menu will open them!
1304 \end_layout
1305
1306 \begin_layout Section
1307 Running \SpecialChar LyX
1308  with multiple configurations
1309 \end_layout
1310
1311 \begin_layout Standard
1312 The configuration freedom of the local configuration directory may not suffice
1313  if you want to have more than one configuration at your disposal.
1314  For example, you may want to be use different key bindings or printer settings
1315  at different times.
1316  You can achieve this by having several such directories.
1317  You then specify which directory to use at run-time.
1318 \end_layout
1319
1320 \begin_layout Standard
1321 Invoking \SpecialChar LyX
1322  with the command line switch 
1323 \begin_inset Flex Code
1324 status collapsed
1325
1326 \begin_layout Plain Layout
1327 -userdir
1328 \end_layout
1329
1330 \end_inset
1331
1332  
1333 \emph on
1334 <some directory>
1335 \emph default
1336  instructs the program to read the configuration from that directory, and
1337  not from the default directory.
1338  (You can determine the default directory by running \SpecialChar LyX
1339  without the 
1340 \begin_inset Flex Code
1341 status collapsed
1342
1343 \begin_layout Plain Layout
1344 -userdir
1345 \end_layout
1346
1347 \end_inset
1348
1349  switch.) If the specified directory does not exist, \SpecialChar LyX
1350  offers to create it
1351  for you, just like it does for the default directory on the first time
1352  you run the program.
1353  You can modify the configuration options in this additional user directory
1354  exactly as you would for the default directory.
1355  These directories are completely independent (but read on).
1356  Note that setting the environment variable 
1357 \begin_inset Flex Code
1358 status collapsed
1359
1360 \begin_layout Plain Layout
1361 LYX_USERDIR_VER
1362 \end_layout
1363
1364 \end_inset
1365
1366  to some value has exactly the same effect.
1367 \end_layout
1368
1369 \begin_layout Standard
1370 Having several configurations also requires more maintenance: if you want
1371  to add a new layout to 
1372 \begin_inset Flex Code
1373 status collapsed
1374
1375 \begin_layout Plain Layout
1376 NewUserDir/layouts
1377 \end_layout
1378
1379 \end_inset
1380
1381  which you want available from all your configurations, you must add it
1382  to each directory separately.
1383  You can avoid this with the following trick: after \SpecialChar LyX
1384  creates the additional
1385  directory, most of the subdirectories (see above) are empty.
1386  If you want the new configuration to mirror an existing one, replace the
1387  empty subdirectory with a symbolic link to the matching subdirectory in
1388  the existing configuration.
1389  Take care with the 
1390 \begin_inset Flex Code
1391 status collapsed
1392
1393 \begin_layout Plain Layout
1394 doc/
1395 \end_layout
1396
1397 \end_inset
1398
1399  subdirectory, however, since it contains a file written by the configuration
1400  script (also accessible through 
1401 \begin_inset Flex Noun
1402 status collapsed
1403
1404 \begin_layout Plain Layout
1405 Tools\SpecialChar menuseparator
1406 Reconfigure
1407 \end_layout
1408
1409 \end_inset
1410
1411 ) which is configuration-specific.
1412 \end_layout
1413
1414 \begin_layout Chapter
1415 The Preferences dialog
1416 \end_layout
1417
1418 \begin_layout Standard
1419 All options of the preferences dialog are described in the Appendix 
1420 \emph on
1421 The Preferences Dialog
1422 \emph default
1423  in the 
1424 \emph on
1425 User's Guide
1426 \emph default
1427 .
1428  For some options you might find here more details.
1429 \end_layout
1430
1431 \begin_layout Section
1432 Formats
1433 \begin_inset CommandInset label
1434 LatexCommand label
1435 name "sec:Formats"
1436
1437 \end_inset
1438
1439
1440 \end_layout
1441
1442 \begin_layout Standard
1443 The first step is to define your file formats if they are not already defined.
1444  To do so, open the 
1445 \begin_inset Flex Noun
1446 status collapsed
1447
1448 \begin_layout Plain Layout
1449 Tools\SpecialChar menuseparator
1450 Preferences
1451 \end_layout
1452
1453 \end_inset
1454
1455  dialog.
1456  Under 
1457 \begin_inset Flex Noun
1458 status collapsed
1459
1460 \begin_layout Plain Layout
1461 File Handling\SpecialChar menuseparator
1462 File formats
1463 \end_layout
1464
1465 \end_inset
1466
1467  press the 
1468 \begin_inset Flex Noun
1469 status collapsed
1470
1471 \begin_layout Plain Layout
1472 New
1473 \end_layout
1474
1475 \end_inset
1476
1477  button to define your new format.
1478  The 
1479 \begin_inset Flex Noun
1480 status collapsed
1481
1482 \begin_layout Plain Layout
1483 Format
1484 \end_layout
1485
1486 \end_inset
1487
1488  field contains the name used to identify the format in the GUI.
1489  The 
1490 \begin_inset Flex Noun
1491 status collapsed
1492
1493 \begin_layout Plain Layout
1494 Short Name
1495 \end_layout
1496
1497 \end_inset
1498
1499  is used to identify the format internally.
1500  You will also need to enter a file extension.
1501  These are all required.
1502  The optional 
1503 \begin_inset Flex Noun
1504 status collapsed
1505
1506 \begin_layout Plain Layout
1507 Shortcut
1508 \end_layout
1509
1510 \end_inset
1511
1512  field is used to provide a keyboard shortcut on the menus.
1513  (For example, pressing 
1514 \begin_inset Flex Noun
1515 status collapsed
1516
1517 \begin_layout Plain Layout
1518 Ctrl+D
1519 \end_layout
1520
1521 \end_inset
1522
1523  will 
1524 \begin_inset Flex Noun
1525 status collapsed
1526
1527 \begin_layout Plain Layout
1528 Document\SpecialChar menuseparator
1529 View (Other Formats)\SpecialChar menuseparator
1530 DVI
1531 \end_layout
1532
1533 \end_inset
1534
1535 .) 
1536 \end_layout
1537
1538 \begin_layout Standard
1539 A Format can have a 
1540 \begin_inset Flex Noun
1541 status collapsed
1542
1543 \begin_layout Plain Layout
1544 Viewer
1545 \end_layout
1546
1547 \end_inset
1548
1549  and an 
1550 \begin_inset Flex Noun
1551 status collapsed
1552
1553 \begin_layout Plain Layout
1554 Editor
1555 \end_layout
1556
1557 \end_inset
1558
1559  associated with it.
1560  For example, you might want to use 
1561 \begin_inset Flex Noun
1562 status collapsed
1563
1564 \begin_layout Plain Layout
1565 Ghostview
1566 \end_layout
1567
1568 \end_inset
1569
1570  to view PostScript files.
1571  You can enter the command needed to start the program in the corresponding
1572  fields.
1573  In defining this command, you can use the four variables listed in the
1574  next section.
1575  The viewer is launched when you view an image in \SpecialChar LyX
1576  or use the 
1577 \begin_inset Flex Noun
1578 status collapsed
1579
1580 \begin_layout Plain Layout
1581 Document\SpecialChar menuseparator
1582 View
1583 \end_layout
1584
1585 \end_inset
1586
1587  menu.
1588  The editor is for example launched when you right-click on an image and
1589  choose 
1590 \begin_inset Flex Noun
1591 status collapsed
1592
1593 \begin_layout Plain Layout
1594 Edit externally
1595 \end_layout
1596
1597 \end_inset
1598
1599  in the appearing context menu.
1600 \end_layout
1601
1602 \begin_layout Standard
1603 The 
1604 \begin_inset Flex Noun
1605 status collapsed
1606
1607 \begin_layout Plain Layout
1608 MIME
1609 \end_layout
1610
1611 \end_inset
1612
1613  type of a format is optional, but if it is specified, it must be unique
1614  across all formats.
1615  It is used to detect files of this format from the file contents.
1616  For some important file formats there is no MIME type officially registered
1617  with the 
1618 \begin_inset CommandInset href
1619 LatexCommand href
1620 name "IANA"
1621 target "http://www.iana.org/assignments/media-types/"
1622 literal "false"
1623
1624 \end_inset
1625
1626 .
1627  Therefore \SpecialChar LyX
1628  uses the extended list of MIME types as specified by 
1629 \begin_inset CommandInset href
1630 LatexCommand href
1631 name "freedesktop.org"
1632 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1633 literal "false"
1634
1635 \end_inset
1636
1637 .
1638 \end_layout
1639
1640 \begin_layout Standard
1641 The 
1642 \begin_inset Flex Noun
1643 status collapsed
1644
1645 \begin_layout Plain Layout
1646 Document format
1647 \end_layout
1648
1649 \end_inset
1650
1651  option tells \SpecialChar LyX
1652  that a format is suitable for document export.
1653  If this is set and if a suitable conversion route exists (see 
1654 \begin_inset CommandInset ref
1655 LatexCommand ref
1656 reference "sec:Converters"
1657
1658 \end_inset
1659
1660 ), the format will appear in the 
1661 \begin_inset Flex Noun
1662 status collapsed
1663
1664 \begin_layout Plain Layout
1665 File\SpecialChar menuseparator
1666 Export
1667 \end_layout
1668
1669 \end_inset
1670
1671  menu.
1672  The format will also appear in the 
1673 \begin_inset Flex Noun
1674 status collapsed
1675
1676 \begin_layout Plain Layout
1677 Document\SpecialChar menuseparator
1678 View
1679 \end_layout
1680
1681 \end_inset
1682
1683  menu if a viewer is specified for the format.
1684  Pure image formats, such as 
1685 \begin_inset Flex Code
1686 status collapsed
1687
1688 \begin_layout Plain Layout
1689 png
1690 \end_layout
1691
1692 \end_inset
1693
1694 , should not use this option.
1695  Formats that can both represent vector graphics and documents like 
1696 \begin_inset Flex Code
1697 status collapsed
1698
1699 \begin_layout Plain Layout
1700 pdf
1701 \end_layout
1702
1703 \end_inset
1704
1705  should use it.
1706 \end_layout
1707
1708 \begin_layout Standard
1709 The option 
1710 \begin_inset Flex Noun
1711 status collapsed
1712
1713 \begin_layout Plain Layout
1714 Vector graphics format
1715 \end_layout
1716
1717 \end_inset
1718
1719  tells \SpecialChar LyX
1720  that a format can contain vector graphics.
1721  This information is used to determine the target format of included graphics
1722  for 
1723 \begin_inset Flex Noun
1724 status collapsed
1725
1726 \begin_layout Plain Layout
1727 pdflatex
1728 \end_layout
1729
1730 \end_inset
1731
1732  export.
1733  Included graphics may need to be converted to either 
1734 \begin_inset Flex Noun
1735 status collapsed
1736
1737 \begin_layout Plain Layout
1738 pdf
1739 \end_layout
1740
1741 \end_inset
1742
1743
1744 \begin_inset Flex Noun
1745 status collapsed
1746
1747 \begin_layout Plain Layout
1748 png
1749 \end_layout
1750
1751 \end_inset
1752
1753 , or 
1754 \begin_inset Flex Noun
1755 status collapsed
1756
1757 \begin_layout Plain Layout
1758 jpg
1759 \end_layout
1760
1761 \end_inset
1762
1763 , since 
1764 \begin_inset Flex Noun
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 pdflatex
1769 \end_layout
1770
1771 \end_inset
1772
1773  cannot handle other image formats.
1774  If an included graphic is not already in 
1775 \begin_inset Flex Noun
1776 status collapsed
1777
1778 \begin_layout Plain Layout
1779 pdf
1780 \end_layout
1781
1782 \end_inset
1783
1784
1785 \begin_inset Flex Noun
1786 status collapsed
1787
1788 \begin_layout Plain Layout
1789 png
1790 \end_layout
1791
1792 \end_inset
1793
1794 , or 
1795 \begin_inset Flex Noun
1796 status collapsed
1797
1798 \begin_layout Plain Layout
1799 jpg
1800 \end_layout
1801
1802 \end_inset
1803
1804  format, it is converted to 
1805 \begin_inset Flex Noun
1806 status collapsed
1807
1808 \begin_layout Plain Layout
1809 pdf
1810 \end_layout
1811
1812 \end_inset
1813
1814  if the vector format option is set, and otherwise to 
1815 \begin_inset Flex Noun
1816 status collapsed
1817
1818 \begin_layout Plain Layout
1819 png
1820 \end_layout
1821
1822 \end_inset
1823
1824 .
1825 \end_layout
1826
1827 \begin_layout Section
1828 Copiers
1829 \end_layout
1830
1831 \begin_layout Standard
1832 Since all conversions from one format to another take place in \SpecialChar LyX
1833 's temporary
1834  directory, it is sometimes necessary to modify a file before copying it
1835  to the temporary directory in order that the conversion may be performed.
1836 \begin_inset Foot
1837 status collapsed
1838
1839 \begin_layout Plain Layout
1840 For example, the file may refer to other files—images, for example—using
1841  relative file names, and these may become invalid when the file is copied
1842  to the temporary directory.
1843 \end_layout
1844
1845 \end_inset
1846
1847  This is done by a Copier: It copies a file to (or from) the temporary directory
1848  and may modify it in the process.
1849 \end_layout
1850
1851 \begin_layout Standard
1852 The definitions of the copiers may use eight variables:
1853 \end_layout
1854
1855 \begin_layout Labeling
1856 \labelwidthstring 00.00.0000
1857 \begin_inset Flex Code
1858 status collapsed
1859
1860 \begin_layout Plain Layout
1861 $$s
1862 \end_layout
1863
1864 \end_inset
1865
1866  The \SpecialChar LyX
1867  system directory (e.
1868 \begin_inset space \thinspace{}
1869 \end_inset
1870
1871 g.
1872 \begin_inset space \space{}
1873 \end_inset
1874
1875
1876 \begin_inset Flex Noun
1877 status collapsed
1878
1879 \begin_layout Plain Layout
1880 /usr/share/lyx
1881 \end_layout
1882
1883 \end_inset
1884
1885 ).
1886 \end_layout
1887
1888 \begin_layout Labeling
1889 \labelwidthstring 00.00.0000
1890 \begin_inset Flex Code
1891 status collapsed
1892
1893 \begin_layout Plain Layout
1894 $$i
1895 \end_layout
1896
1897 \end_inset
1898
1899  The input file
1900 \end_layout
1901
1902 \begin_layout Labeling
1903 \labelwidthstring 00.00.0000
1904 \begin_inset Flex Code
1905 status collapsed
1906
1907 \begin_layout Plain Layout
1908 $$o
1909 \end_layout
1910
1911 \end_inset
1912
1913  The output file
1914 \end_layout
1915
1916 \begin_layout Labeling
1917 \labelwidthstring 00.00.0000
1918 \begin_inset Flex Code
1919 status collapsed
1920
1921 \begin_layout Plain Layout
1922 $$b
1923 \end_layout
1924
1925 \end_inset
1926
1927  The base name (without filename extension) in the \SpecialChar LyX
1928  temporary directory
1929 \end_layout
1930
1931 \begin_layout Labeling
1932 \labelwidthstring 00.00.0000
1933 \begin_inset Flex Code
1934 status collapsed
1935
1936 \begin_layout Plain Layout
1937 $$p
1938 \end_layout
1939
1940 \end_inset
1941
1942  The full directory path of the \SpecialChar LyX
1943  temporary directory
1944 \end_layout
1945
1946 \begin_layout Labeling
1947 \labelwidthstring 00.00.0000
1948 \begin_inset Flex Code
1949 status collapsed
1950
1951 \begin_layout Plain Layout
1952 $$r
1953 \end_layout
1954
1955 \end_inset
1956
1957  The full pathname to the original \SpecialChar LyX
1958  file being processed
1959 \end_layout
1960
1961 \begin_layout Labeling
1962 \labelwidthstring 00.00.0000
1963 \begin_inset Flex Code
1964 status collapsed
1965
1966 \begin_layout Plain Layout
1967 $$f
1968 \end_layout
1969
1970 \end_inset
1971
1972  The filename (without any directory path) of the \SpecialChar LyX
1973  file.
1974 \end_layout
1975
1976 \begin_layout Labeling
1977 \labelwidthstring 00.00.0000
1978 \begin_inset Flex Code
1979 status collapsed
1980
1981 \begin_layout Plain Layout
1982 $$l
1983 \end_layout
1984
1985 \end_inset
1986
1987  The `\SpecialChar LaTeX
1988  name'
1989 \end_layout
1990
1991 \begin_layout Standard
1992 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1993 's 
1994 \series bold
1995
1996 \backslash
1997 include
1998 \series default
1999  command.
2000  It is relevant only when exporting files suitable for such inclusion.
2001 \end_layout
2002
2003 \begin_layout Standard
2004 Copiers can be used to do almost anything with output files.
2005  For example, suppose you want generated pdf files to be copied to a special
2006  directory, 
2007 \begin_inset Flex Code
2008 status collapsed
2009
2010 \begin_layout Plain Layout
2011 /home/you/pdf/
2012 \end_layout
2013
2014 \end_inset
2015
2016 .
2017  Then you could write a shell script such as this one:
2018 \end_layout
2019
2020 \begin_layout Standard
2021 \begin_inset listings
2022 inline false
2023 status open
2024
2025 \begin_layout Plain Layout
2026
2027 #!/bin/bash
2028 \end_layout
2029
2030 \begin_layout Plain Layout
2031
2032 FROMFILE=$1
2033 \end_layout
2034
2035 \begin_layout Plain Layout
2036
2037 TOFILE=`basename $2`
2038 \end_layout
2039
2040 \begin_layout Plain Layout
2041
2042 cp $FROMFILE /home/you/pdf/$TOFILE
2043 \end_layout
2044
2045 \end_inset
2046
2047 Save it in your local \SpecialChar LyX
2048  directory—say, 
2049 \begin_inset Flex Code
2050 status collapsed
2051
2052 \begin_layout Plain Layout
2053 /home/you/.lyx/scripts/pdfcopier.sh
2054 \end_layout
2055
2056 \end_inset
2057
2058 —and make it executable, if you need to do so on your platform.
2059  Then, in the 
2060 \begin_inset Flex Noun
2061 status collapsed
2062
2063 \begin_layout Plain Layout
2064 Tools\SpecialChar menuseparator
2065 Preferences
2066 \end_layout
2067
2068 \end_inset
2069
2070  dialog, select under 
2071 \begin_inset Flex Noun
2072 status collapsed
2073
2074 \begin_layout Plain Layout
2075 File Handling\SpecialChar menuseparator
2076 File formats
2077 \end_layout
2078
2079 \end_inset
2080
2081  the 
2082 \begin_inset Flex Noun
2083 status collapsed
2084
2085 \begin_layout Plain Layout
2086 PDF(pdflatex)
2087 \end_layout
2088
2089 \end_inset
2090
2091  format—or one of the other pdf formats—and enter 
2092 \begin_inset Flex Code
2093 status collapsed
2094
2095 \begin_layout Plain Layout
2096 pdfcopier.sh $$i $$o
2097 \end_layout
2098
2099 \end_inset
2100
2101  into the 
2102 \begin_inset Flex Noun
2103 status collapsed
2104
2105 \begin_layout Plain Layout
2106 Copier
2107 \end_layout
2108
2109 \end_inset
2110
2111  field.
2112  
2113 \end_layout
2114
2115 \begin_layout Standard
2116 Copiers are used by \SpecialChar LyX
2117  in various of its own conversions.
2118  For example, if appropriate programs are found, \SpecialChar LyX
2119  will automatically install
2120  copiers for the 
2121 \begin_inset Flex Noun
2122 status collapsed
2123
2124 \begin_layout Plain Layout
2125 HTML
2126 \end_layout
2127
2128 \end_inset
2129
2130  and 
2131 \begin_inset Flex Noun
2132 status collapsed
2133
2134 \begin_layout Plain Layout
2135 HTML
2136 \begin_inset space ~
2137 \end_inset
2138
2139 (MS Word)
2140 \end_layout
2141
2142 \end_inset
2143
2144  formats.
2145  When these formats are exported, the copier sees that not just the main
2146  HTML file but various associated files (style files, images, etc.) are also
2147  copied.
2148  All these files are written to a subdirectory of the directory in which
2149  the original \SpecialChar LyX
2150  file was found.
2151 \begin_inset Foot
2152 status collapsed
2153
2154 \begin_layout Plain Layout
2155 This copier can be customized.
2156  The optional 
2157 \begin_inset Quotes eld
2158 \end_inset
2159
2160 -e
2161 \begin_inset Quotes erd
2162 \end_inset
2163
2164  argument takes a comma-separated list of extensions to be copied; if it
2165  is omitted, all files will be copied.
2166  The 
2167 \begin_inset Quotes eld
2168 \end_inset
2169
2170 -t
2171 \begin_inset Quotes erd
2172 \end_inset
2173
2174  argument determines the extension added to the generated directory.
2175  By default, it is 
2176 \begin_inset Quotes eld
2177 \end_inset
2178
2179
2180 \begin_inset Flex Noun
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 LyXconv
2185 \end_layout
2186
2187 \end_inset
2188
2189
2190 \begin_inset Quotes erd
2191 \end_inset
2192
2193 , so HTML generated from 
2194 \begin_inset Flex Noun
2195 status collapsed
2196
2197 \begin_layout Plain Layout
2198 /path/to/filename.lyx
2199 \end_layout
2200
2201 \end_inset
2202
2203  will end up in 
2204 \begin_inset Flex Noun
2205 status collapsed
2206
2207 \begin_layout Plain Layout
2208 /path/to/filename.html.LyXconv
2209 \end_layout
2210
2211 \end_inset
2212
2213 .
2214  
2215 \end_layout
2216
2217 \end_inset
2218
2219
2220 \end_layout
2221
2222 \begin_layout Section
2223 Converters
2224 \begin_inset CommandInset label
2225 LatexCommand label
2226 name "sec:Converters"
2227
2228 \end_inset
2229
2230
2231 \end_layout
2232
2233 \begin_layout Standard
2234 You can define your own Converters to convert files between different formats.
2235  This is done in the 
2236 \begin_inset Flex Noun
2237 status collapsed
2238
2239 \begin_layout Plain Layout
2240 Tools\SpecialChar menuseparator
2241 Preferences\SpecialChar menuseparator
2242 File Handling\SpecialChar menuseparator
2243 Converters
2244 \end_layout
2245
2246 \end_inset
2247
2248  dialog.
2249 \end_layout
2250
2251 \begin_layout Standard
2252 To define a new converter, select the 
2253 \begin_inset Flex Noun
2254 status collapsed
2255
2256 \begin_layout Plain Layout
2257 From
2258 \begin_inset space ~
2259 \end_inset
2260
2261 format
2262 \end_layout
2263
2264 \end_inset
2265
2266  and 
2267 \begin_inset Flex Noun
2268 status collapsed
2269
2270 \begin_layout Plain Layout
2271 To
2272 \begin_inset space ~
2273 \end_inset
2274
2275 format
2276 \end_layout
2277
2278 \end_inset
2279
2280  from the drop-down lists, enter the command needed for the conversion,
2281  and then press the 
2282 \begin_inset Flex Noun
2283 status collapsed
2284
2285 \begin_layout Plain Layout
2286 Add
2287 \end_layout
2288
2289 \end_inset
2290
2291  button.
2292  Several variables can be used in the definition of converters:
2293 \end_layout
2294
2295 \begin_layout Labeling
2296 \labelwidthstring 00.00.0000
2297 \begin_inset Flex Code
2298 status collapsed
2299
2300 \begin_layout Plain Layout
2301 $$s
2302 \end_layout
2303
2304 \end_inset
2305
2306  The \SpecialChar LyX
2307  system directory
2308 \end_layout
2309
2310 \begin_layout Labeling
2311 \labelwidthstring 00.00.0000
2312 \begin_inset Flex Code
2313 status collapsed
2314
2315 \begin_layout Plain Layout
2316 $$i
2317 \end_layout
2318
2319 \end_inset
2320
2321  The input file
2322 \end_layout
2323
2324 \begin_layout Labeling
2325 \labelwidthstring 00.00.0000
2326 \begin_inset Flex Code
2327 status collapsed
2328
2329 \begin_layout Plain Layout
2330 $$o
2331 \end_layout
2332
2333 \end_inset
2334
2335  The output file
2336 \end_layout
2337
2338 \begin_layout Labeling
2339 \labelwidthstring 00.00.0000
2340 \begin_inset Flex Code
2341 status collapsed
2342
2343 \begin_layout Plain Layout
2344 $$b
2345 \end_layout
2346
2347 \end_inset
2348
2349  The base filename of the input file (i.
2350 \begin_inset space \thinspace{}
2351 \end_inset
2352
2353 g., without the extension)
2354 \end_layout
2355
2356 \begin_layout Labeling
2357 \labelwidthstring 00.00.0000
2358 \begin_inset Flex Code
2359 status collapsed
2360
2361 \begin_layout Plain Layout
2362 $$p
2363 \end_layout
2364
2365 \end_inset
2366
2367  The path to the input file
2368 \end_layout
2369
2370 \begin_layout Labeling
2371 \labelwidthstring 00.00.0000
2372 \begin_inset Flex Code
2373 status collapsed
2374
2375 \begin_layout Plain Layout
2376 $$r
2377 \end_layout
2378
2379 \end_inset
2380
2381  The path to the original input file (this is different from $$p when a
2382  chain of converters is called)
2383 \end_layout
2384
2385 \begin_layout Labeling
2386 \labelwidthstring 00.00.0000
2387 \begin_inset Flex Code
2388 status collapsed
2389
2390 \begin_layout Plain Layout
2391 $$e
2392 \end_layout
2393
2394 \end_inset
2395
2396  The iconv name for the encoding of the document.
2397 \end_layout
2398
2399 \begin_layout Standard
2400 In the 
2401 \begin_inset Flex Noun
2402 status collapsed
2403
2404 \begin_layout Plain Layout
2405 Extra
2406 \begin_inset space ~
2407 \end_inset
2408
2409 Flag
2410 \end_layout
2411
2412 \end_inset
2413
2414  field you can enter the following flags, separated by commas:
2415 \end_layout
2416
2417 \begin_layout Labeling
2418 \labelwidthstring 00.00.0000
2419 \begin_inset Flex Code
2420 status collapsed
2421
2422 \begin_layout Plain Layout
2423 latex
2424 \change_inserted -712698321 1524656940
2425 =flavor
2426 \change_unchanged
2427
2428 \end_layout
2429
2430 \end_inset
2431
2432  This converter runs some form of \SpecialChar LaTeX
2433 .
2434  This will make \SpecialChar LyX
2435 's \SpecialChar LaTeX
2436  error logs available.
2437
2438 \change_inserted -712698321 1524657018
2439  The optional 
2440 \begin_inset Flex Code
2441 status open
2442
2443 \begin_layout Plain Layout
2444
2445 \change_inserted -712698321 1524657012
2446 flavor
2447 \change_unchanged
2448
2449 \end_layout
2450
2451 \end_inset
2452
2453  value specifies the form of \SpecialChar LaTeX
2454  that is run (
2455 \begin_inset Flex Code
2456 status open
2457
2458 \begin_layout Plain Layout
2459
2460 \change_inserted -712698321 1524657005
2461 latex, pdflatex, platex, xetex, luatex
2462 \change_unchanged
2463
2464 \end_layout
2465
2466 \end_inset
2467
2468 ).
2469  If no value is specified, 
2470 \begin_inset Flex Code
2471 status open
2472
2473 \begin_layout Plain Layout
2474
2475 \change_inserted -712698321 1524657018
2476 latex
2477 \change_unchanged
2478
2479 \end_layout
2480
2481 \end_inset
2482
2483  is used.
2484 \change_unchanged
2485
2486 \end_layout
2487
2488 \begin_layout Labeling
2489 \labelwidthstring 00.00.0000
2490 \begin_inset Flex Code
2491 status collapsed
2492
2493 \begin_layout Plain Layout
2494 needaux
2495 \change_inserted -712698321 1524656935
2496 =flavor
2497 \change_unchanged
2498
2499 \end_layout
2500
2501 \end_inset
2502
2503  Needs the \SpecialChar LaTeX
2504  
2505 \begin_inset Flex Noun
2506 status collapsed
2507
2508 \begin_layout Plain Layout
2509 .aux
2510 \end_layout
2511
2512 \end_inset
2513
2514  file for the conversion.
2515
2516 \change_inserted -712698321 1524657047
2517  The optional 
2518 \begin_inset Flex Code
2519 status open
2520
2521 \begin_layout Plain Layout
2522
2523 \change_inserted -712698321 1524657030
2524 flavor
2525 \change_unchanged
2526
2527 \end_layout
2528
2529 \end_inset
2530
2531  value specifies the form of \SpecialChar LaTeX
2532  that is run in order to generate the 
2533 \begin_inset Flex Noun
2534 status collapsed
2535
2536 \begin_layout Plain Layout
2537
2538 \change_inserted -712698321 1524657047
2539 .aux
2540 \change_unchanged
2541
2542 \end_layout
2543
2544 \end_inset
2545
2546  file (
2547 \begin_inset Flex Code
2548 status open
2549
2550 \begin_layout Plain Layout
2551
2552 \change_inserted -712698321 1524657030
2553 latex, pdflatex, platex, xetex, luatex
2554 \change_unchanged
2555
2556 \end_layout
2557
2558 \end_inset
2559
2560 ).
2561  If no value is specified, 
2562 \begin_inset Flex Code
2563 status open
2564
2565 \begin_layout Plain Layout
2566
2567 \change_inserted -712698321 1524657030
2568 latex
2569 \change_unchanged
2570
2571 \end_layout
2572
2573 \end_inset
2574
2575  is used.
2576 \change_unchanged
2577
2578 \end_layout
2579
2580 \begin_layout Labeling
2581 \labelwidthstring 00.00.0000
2582 \begin_inset Flex Code
2583 status collapsed
2584
2585 \begin_layout Plain Layout
2586 nice
2587 \end_layout
2588
2589 \end_inset
2590
2591  Needs a 
2592 \begin_inset Quotes eld
2593 \end_inset
2594
2595 nice
2596 \begin_inset Quotes erd
2597 \end_inset
2598
2599  file from the backend, which in practice means a \SpecialChar LaTeX
2600  file like the one we
2601  would export, without 
2602 \begin_inset Flex Code
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 input@path
2607 \end_layout
2608
2609 \end_inset
2610
2611 .
2612 \end_layout
2613
2614 \begin_layout Labeling
2615 \labelwidthstring 00.00.0000
2616 \begin_inset Flex Code
2617 status collapsed
2618
2619 \begin_layout Plain Layout
2620 xml
2621 \end_layout
2622
2623 \end_inset
2624
2625  Output is XML.
2626 \end_layout
2627
2628 \begin_layout Standard
2629 The following three flags are not really flags at all because they take
2630  an argument in the 
2631 \begin_inset Flex Noun
2632 status collapsed
2633
2634 \begin_layout Plain Layout
2635 key
2636 \begin_inset space ~
2637 \end_inset
2638
2639 =
2640 \begin_inset space ~
2641 \end_inset
2642
2643 value
2644 \end_layout
2645
2646 \end_inset
2647
2648  format:
2649 \end_layout
2650
2651 \begin_layout Labeling
2652 \labelwidthstring 00.00.0000
2653
2654 \change_inserted -712698321 1523206314
2655 \begin_inset Flex Code
2656 status collapsed
2657
2658 \begin_layout Plain Layout
2659
2660 \change_inserted -712698321 1523206193
2661 hyperref-driver
2662 \change_unchanged
2663
2664 \end_layout
2665
2666 \end_inset
2667
2668  The name of the driver that needs to be loaded with the 
2669 \family sans
2670 hyperref
2671 \family default
2672  package for this converter.
2673  The loading of the correct driver is necessary to get some PDF-specific
2674  features.
2675  See the 
2676 \family sans
2677 hyperref
2678 \family default
2679  manual for details.
2680 \end_layout
2681
2682 \begin_layout Labeling
2683 \labelwidthstring 00.00.0000
2684 \begin_inset Flex Code
2685 status collapsed
2686
2687 \begin_layout Plain Layout
2688 parselog
2689 \end_layout
2690
2691 \end_inset
2692
2693  If set, the converter's standard error will be redirected to a file 
2694 \begin_inset Flex Code
2695 status collapsed
2696
2697 \begin_layout Plain Layout
2698 infile.out
2699 \end_layout
2700
2701 \end_inset
2702
2703 , and the script given as argument will be run as: 
2704 \begin_inset Flex Code
2705 status collapsed
2706
2707 \begin_layout Plain Layout
2708 script < infile.out > infile.log
2709 \end_layout
2710
2711 \end_inset
2712
2713 .
2714  The argument may contain 
2715 \begin_inset Flex Code
2716 status collapsed
2717
2718 \begin_layout Plain Layout
2719 $$s
2720 \end_layout
2721
2722 \end_inset
2723
2724 .
2725 \end_layout
2726
2727 \begin_layout Labeling
2728 \labelwidthstring 00.00.0000
2729 \begin_inset Flex Code
2730 status collapsed
2731
2732 \begin_layout Plain Layout
2733 resultdir
2734 \end_layout
2735
2736 \end_inset
2737
2738  The name of the directory in which the converter will dump the generated
2739  files.
2740  \SpecialChar LyX
2741  will not create this directory, and it does not copy anything into it,
2742  though it will copy this directory to the destination.
2743  The argument may contain 
2744 \begin_inset Flex Code
2745 status collapsed
2746
2747 \begin_layout Plain Layout
2748 $$b
2749 \end_layout
2750
2751 \end_inset
2752
2753 , which will be replaced by the base name of the input and output files,
2754  respectively, when the directory is copied.
2755 \begin_inset Newline newline
2756 \end_inset
2757
2758 Note that resultdir and usetempdir make no sense together.
2759  The latter will be ignored if the former is given.
2760 \end_layout
2761
2762 \begin_layout Labeling
2763 \labelwidthstring 00.00.0000
2764 \begin_inset Flex Code
2765 status collapsed
2766
2767 \begin_layout Plain Layout
2768 resultfile
2769 \end_layout
2770
2771 \end_inset
2772
2773  Determines the output file name and may, contain 
2774 \begin_inset Flex Code
2775 status collapsed
2776
2777 \begin_layout Plain Layout
2778 $$b
2779 \end_layout
2780
2781 \end_inset
2782
2783 .
2784  Sensible only with resultdir and optional even then; if not given, it defaults
2785  to `index'.
2786 \end_layout
2787
2788 \begin_layout Standard
2789
2790 \change_inserted -712698321 1523206384
2791 A suitable hyperref-driver is set for some converters that are installed
2792  with \SpecialChar LyX
2793 .
2794  
2795 \change_deleted -712698321 1523206388
2796 None of these
2797 \change_inserted -712698321 1523206389
2798 The
2799 \change_unchanged
2800  last three
2801 \change_inserted -712698321 1523206400
2802  flags, however,
2803 \change_unchanged
2804  are presently 
2805 \change_inserted -712698321 1523206407
2806 not 
2807 \change_unchanged
2808 used in any of the 
2809 \change_inserted -712698321 1523206437
2810 pre-installed 
2811 \change_unchanged
2812 converters
2813 \change_deleted -712698321 1523206442
2814  that are installed with \SpecialChar LyX
2815
2816 \change_unchanged
2817 .
2818  
2819 \end_layout
2820
2821 \begin_layout Standard
2822 You do not have to define converters for all formats between which you want
2823  to convert.
2824  For example, you will note that there is no `\SpecialChar LyX
2825  to PostScript' converter,
2826  but \SpecialChar LyX
2827  will export PostScript.
2828  It does so by first creating a \SpecialChar LaTeX
2829  file (no converter needs to be defined
2830  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2831  to DVI' converter,
2832  and finally converting the resulting DVI file to PostScript.
2833  \SpecialChar LyX
2834  finds such `chains' of converters automatically, and it will always choose
2835  the shortest possible chain.
2836  You can, though, still define multiple conversion methods between file
2837  formats.
2838  For example, the standard \SpecialChar LyX
2839  configuration provides five ways to convert
2840  \SpecialChar LaTeX
2841  to PDF:
2842 \end_layout
2843
2844 \begin_layout Enumerate
2845 Directly, using 
2846 \begin_inset Flex Noun
2847 status collapsed
2848
2849 \begin_layout Plain Layout
2850 pdflatex
2851 \end_layout
2852
2853 \end_inset
2854
2855
2856 \end_layout
2857
2858 \begin_layout Enumerate
2859 via (DVI and) PostScript, using 
2860 \begin_inset Flex Noun
2861 status collapsed
2862
2863 \begin_layout Plain Layout
2864 ps2pdf
2865 \end_layout
2866
2867 \end_inset
2868
2869
2870 \end_layout
2871
2872 \begin_layout Enumerate
2873 via DVI, using 
2874 \begin_inset Flex Noun
2875 status collapsed
2876
2877 \begin_layout Plain Layout
2878 dvipdfm
2879 \end_layout
2880
2881 \end_inset
2882
2883
2884 \end_layout
2885
2886 \begin_layout Enumerate
2887 directly using 
2888 \begin_inset Flex Noun
2889 status collapsed
2890
2891 \begin_layout Plain Layout
2892 Xe\SpecialChar TeX
2893
2894 \end_layout
2895
2896 \end_inset
2897
2898
2899 \end_layout
2900
2901 \begin_layout Enumerate
2902 directly using 
2903 \begin_inset Flex Noun
2904 status collapsed
2905
2906 \begin_layout Plain Layout
2907 Lua\SpecialChar TeX
2908
2909 \end_layout
2910
2911 \end_inset
2912
2913
2914 \end_layout
2915
2916 \begin_layout Standard
2917 To define such alternate chains, you must define multiple target `file formats',
2918  as described in 
2919 \begin_inset CommandInset ref
2920 LatexCommand ref
2921 reference "sec:Formats"
2922
2923 \end_inset
2924
2925 .
2926  For example, in the standard configuration, the formats named 
2927 \begin_inset Flex Noun
2928 status collapsed
2929
2930 \begin_layout Plain Layout
2931 pdf
2932 \end_layout
2933
2934 \end_inset
2935
2936  (for 
2937 \begin_inset Flex Noun
2938 status collapsed
2939
2940 \begin_layout Plain Layout
2941 ps2pdf
2942 \end_layout
2943
2944 \end_inset
2945
2946 ), 
2947 \begin_inset Flex Noun
2948 status collapsed
2949
2950 \begin_layout Plain Layout
2951 pdf2
2952 \end_layout
2953
2954 \end_inset
2955
2956  (for 
2957 \begin_inset Flex Noun
2958 status collapsed
2959
2960 \begin_layout Plain Layout
2961 pdflatex
2962 \end_layout
2963
2964 \end_inset
2965
2966 ), 
2967 \begin_inset Flex Noun
2968 status collapsed
2969
2970 \begin_layout Plain Layout
2971 pdf3
2972 \end_layout
2973
2974 \end_inset
2975
2976  (for 
2977 \begin_inset Flex Noun
2978 status collapsed
2979
2980 \begin_layout Plain Layout
2981 dvipdfm
2982 \end_layout
2983
2984 \end_inset
2985
2986 ), 
2987 \begin_inset Flex Noun
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991 pdf4
2992 \end_layout
2993
2994 \end_inset
2995
2996  (for 
2997 \begin_inset Flex Noun
2998 status collapsed
2999
3000 \begin_layout Plain Layout
3001 Xe\SpecialChar TeX
3002
3003 \end_layout
3004
3005 \end_inset
3006
3007 ), and 
3008 \begin_inset Flex Noun
3009 status collapsed
3010
3011 \begin_layout Plain Layout
3012 pdf5
3013 \end_layout
3014
3015 \end_inset
3016
3017  (for 
3018 \begin_inset Flex Noun
3019 status collapsed
3020
3021 \begin_layout Plain Layout
3022 Lua\SpecialChar TeX
3023
3024 \end_layout
3025
3026 \end_inset
3027
3028 ) are defined, all of which share the extension 
3029 \begin_inset Flex Noun
3030 status collapsed
3031
3032 \begin_layout Plain Layout
3033 .pdf
3034 \end_layout
3035
3036 \end_inset
3037
3038 , and which correspond to the conversion methods just mentioned.
3039 \end_layout
3040
3041 \begin_layout Chapter
3042 Internationalizing \SpecialChar LyX
3043
3044 \begin_inset CommandInset label
3045 LatexCommand label
3046 name "cha:Internationalizing-LyX"
3047
3048 \end_inset
3049
3050
3051 \end_layout
3052
3053 \begin_layout Standard
3054 \SpecialChar LyX
3055  supports using a translated interface.
3056  Last time we checked, \SpecialChar LyX
3057  provided text in thirty languages.
3058  The language of choice is called your 
3059 \emph on
3060 locale
3061 \emph default
3062 .
3063  (For further reading on locale settings, see also the documentation for
3064  locale that comes with your operating system.
3065  For Linux, the manual page for 
3066 \begin_inset Flex Code
3067 status collapsed
3068
3069 \begin_layout Plain Layout
3070 locale(5)
3071 \end_layout
3072
3073 \end_inset
3074
3075  could be a good place to start).
3076 \end_layout
3077
3078 \begin_layout Standard
3079 Notice that these translations will work, but do contain a few flaws.
3080  In particular, all dialogs have been designed with the English text in
3081  mind, which means that some of the translated text will be too large to
3082  fit within the space allocated.
3083  This is only a display problem and will not cause any harm.
3084  Also, you will find that some of the translations do not define shortcut
3085  keys for everything.
3086  Sometimes, there are simply not enough free letters to do it.
3087  Other times, the translator just hasn't got around to doing it yet.
3088  Our localization team, which you may wish to join,
3089 \begin_inset Foot
3090 status collapsed
3091
3092 \begin_layout Plain Layout
3093 If you are a fluent speaker of a language other than English, joining these
3094  teams is a great way to give back to the \SpecialChar LyX
3095  community!
3096 \end_layout
3097
3098 \end_inset
3099
3100  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3101 .
3102 \end_layout
3103
3104 \begin_layout Section
3105 Translating \SpecialChar LyX
3106
3107 \end_layout
3108
3109 \begin_layout Subsection
3110 Translating the graphical user interface (text messages).
3111 \end_layout
3112
3113 \begin_layout Standard
3114 \SpecialChar LyX
3115  uses the GNU 
3116 \begin_inset Flex Code
3117 status collapsed
3118
3119 \begin_layout Plain Layout
3120 gettext
3121 \end_layout
3122
3123 \end_inset
3124
3125  library to handle the internationalization of the interface.
3126  To have \SpecialChar LyX
3127  speak your favorite language in all menus and dialogs, you need
3128  a 
3129 \begin_inset Flex Code
3130 status collapsed
3131
3132 \begin_layout Plain Layout
3133 po
3134 \end_layout
3135
3136 \end_inset
3137
3138 -file for that language.
3139  When this is available, you'll have to generate a 
3140 \begin_inset Flex Code
3141 status collapsed
3142
3143 \begin_layout Plain Layout
3144 mo
3145 \end_layout
3146
3147 \end_inset
3148
3149 -file from it and install the 
3150 \begin_inset Flex Code
3151 status collapsed
3152
3153 \begin_layout Plain Layout
3154 mo
3155 \end_layout
3156
3157 \end_inset
3158
3159 -file.
3160  The process of doing all of this is explained in the documentation for
3161  GNU 
3162 \begin_inset Flex Code
3163 status collapsed
3164
3165 \begin_layout Plain Layout
3166 gettext
3167 \end_layout
3168
3169 \end_inset
3170
3171 .
3172  It is possible to do this just for yourself, but if you're going to do
3173  it, you might as well share the results of your labors with the rest of
3174  the \SpecialChar LyX
3175  community.
3176  Send a message to the \SpecialChar LyX
3177  developers' list for more information about how
3178  to proceed.
3179 \end_layout
3180
3181 \begin_layout Standard
3182 In short, this is what you should do (xx denotes the language code):
3183 \end_layout
3184
3185 \begin_layout Itemize
3186 Check out the \SpecialChar LyX
3187  source code.
3188  (See the 
3189 \begin_inset CommandInset href
3190 LatexCommand href
3191 name "information on the web"
3192 target "https://www.lyx.org/HowToUseGIT"
3193 literal "false"
3194
3195 \end_inset
3196
3197 .)
3198 \end_layout
3199
3200 \begin_layout Itemize
3201 Copy the file 
3202 \begin_inset Flex Code
3203 status collapsed
3204
3205 \begin_layout Plain Layout
3206 lyx.pot
3207 \end_layout
3208
3209 \end_inset
3210
3211  to the folder of the 
3212 \begin_inset Flex Code
3213 status collapsed
3214
3215 \begin_layout Plain Layout
3216 **.po
3217 \end_layout
3218
3219 \end_inset
3220
3221  files.
3222  Then rename it to 
3223 \begin_inset Flex Code
3224 status collapsed
3225
3226 \begin_layout Plain Layout
3227 xx.po
3228 \end_layout
3229
3230 \end_inset
3231
3232 .
3233  (If 
3234 \begin_inset Flex Code
3235 status collapsed
3236
3237 \begin_layout Plain Layout
3238 lyx.pot
3239 \end_layout
3240
3241 \end_inset
3242
3243  doesn't exist anywhere, it can be remade with the console command 
3244 \begin_inset Flex Code
3245 status collapsed
3246
3247 \begin_layout Plain Layout
3248 make lyx.pot
3249 \end_layout
3250
3251 \end_inset
3252
3253  in that directory, or you can use an existing po-file for some other language
3254  as a template).
3255 \end_layout
3256
3257 \begin_layout Itemize
3258 Edit 
3259 \begin_inset Flex Code
3260 status collapsed
3261
3262 \begin_layout Plain Layout
3263 xx.po
3264 \end_layout
3265
3266 \end_inset
3267
3268 .
3269 \begin_inset Foot
3270 status collapsed
3271
3272 \begin_layout Plain Layout
3273 This is just a text file, so it can be edited in any text editor.
3274  But there are also specialized programs that support such editing, such
3275  as 
3276 \family typewriter
3277 Poedit
3278 \family default
3279  (for all platforms) or 
3280 \family typewriter
3281 KBabel
3282 \family default
3283  (for KDE).
3284  
3285 \family typewriter
3286 Emacs
3287 \family default
3288  contains a `mode' for editing 
3289 \begin_inset Flex Code
3290 status collapsed
3291
3292 \begin_layout Plain Layout
3293 po
3294 \end_layout
3295
3296 \end_inset
3297
3298  files, as well, see 
3299 \begin_inset Flex URL
3300 status open
3301
3302 \begin_layout Plain Layout
3303
3304 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3305 \end_layout
3306
3307 \end_inset
3308
3309 .
3310 \end_layout
3311
3312 \end_inset
3313
3314  For some menu- and widget-labels, there are also shortcut keys that should
3315  be translated.
3316  Those keys are marked after a `|', and should be translated according to
3317  the words and phrases of the language.
3318  You should also fill also out the information at the beginning of the new
3319  
3320 \begin_inset Flex Code
3321 status collapsed
3322
3323 \begin_layout Plain Layout
3324 po
3325 \end_layout
3326
3327 \end_inset
3328
3329 -file with your email-address, etc., so people know where to reach you with
3330  suggestions and entertaining flames.
3331 \end_layout
3332
3333 \begin_layout Standard
3334 If you are just doing this on your own, then:
3335 \end_layout
3336
3337 \begin_layout Itemize
3338 Generate 
3339 \begin_inset Flex Code
3340 status collapsed
3341
3342 \begin_layout Plain Layout
3343 xx.mo
3344 \end_layout
3345
3346 \end_inset
3347
3348 .
3349  This can be done with 
3350 \begin_inset Flex Code
3351 status collapsed
3352
3353 \begin_layout Plain Layout
3354 msgfmt -o xx.mo < xx.po
3355 \end_layout
3356
3357 \end_inset
3358
3359 .
3360 \end_layout
3361
3362 \begin_layout Itemize
3363 Copy the 
3364 \begin_inset Flex Code
3365 status collapsed
3366
3367 \begin_layout Plain Layout
3368 mo
3369 \end_layout
3370
3371 \end_inset
3372
3373 -file to your locale-tree, at the correct directory for application messages
3374  for the language
3375 \series bold
3376  
3377 \series default
3378 xx, and under the name 
3379 \begin_inset Flex Code
3380 status collapsed
3381
3382 \begin_layout Plain Layout
3383 lyx.mo
3384 \end_layout
3385
3386 \end_inset
3387
3388  (e.
3389 \begin_inset space \thinspace{}
3390 \end_inset
3391
3392 g.
3393 \begin_inset space \space{}
3394 \end_inset
3395
3396
3397 \begin_inset Flex Code
3398 status collapsed
3399
3400 \begin_layout Plain Layout
3401 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3402 \end_layout
3403
3404 \end_inset
3405
3406
3407 \series bold
3408 .
3409 \end_layout
3410
3411 \begin_layout Standard
3412 As said, however, it would be best if the new 
3413 \begin_inset Flex Code
3414 status collapsed
3415
3416 \begin_layout Plain Layout
3417 po
3418 \end_layout
3419
3420 \end_inset
3421
3422  file could be added to the \SpecialChar LyX
3423  distribution, so others can use it.
3424  Adding it involves making additional changes to \SpecialChar LyX
3425 .
3426  So send an email to the developers' mailing list if you're interested in
3427  doing that.
3428 \end_layout
3429
3430 \begin_layout Subsubsection
3431 Ambiguous messages
3432 \end_layout
3433
3434 \begin_layout Standard
3435 Sometimes it turns out that one English message needs to be translated into
3436  different messages in the target language.
3437  One example is the message 
3438 \begin_inset Flex Code
3439 status collapsed
3440
3441 \begin_layout Plain Layout
3442 To
3443 \end_layout
3444
3445 \end_inset
3446
3447  which has the German translation 
3448 \lang german
3449 Nach
3450 \lang english
3451  or 
3452 \lang german
3453 Bis
3454 \lang english
3455 , depending upon exactly what the English 
3456 \begin_inset Quotes eld
3457 \end_inset
3458
3459 to
3460 \begin_inset Quotes erd
3461 \end_inset
3462
3463  means.
3464  GNU 
3465 \begin_inset Flex Code
3466 status collapsed
3467
3468 \begin_layout Plain Layout
3469 gettext
3470 \end_layout
3471
3472 \end_inset
3473
3474  does not handle such ambiguous translations.
3475  Therefore you have to add some context information to the message: Instead
3476  of 
3477 \begin_inset Flex Code
3478 status collapsed
3479
3480 \begin_layout Plain Layout
3481 To
3482 \end_layout
3483
3484 \end_inset
3485
3486  it becomes 
3487 \begin_inset Flex Code
3488 status collapsed
3489
3490 \begin_layout Plain Layout
3491 To[[as in 'From format x to format y']]
3492 \end_layout
3493
3494 \end_inset
3495
3496  and 
3497 \begin_inset Flex Code
3498 status collapsed
3499
3500 \begin_layout Plain Layout
3501 To[[as in 'From page x to page y']].
3502 \end_layout
3503
3504 \end_inset
3505
3506  Now the two occurrences of 
3507 \begin_inset Flex Code
3508 status collapsed
3509
3510 \begin_layout Plain Layout
3511 To
3512 \end_layout
3513
3514 \end_inset
3515
3516  are different for 
3517 \begin_inset Flex Code
3518 status collapsed
3519
3520 \begin_layout Plain Layout
3521 gettext
3522 \end_layout
3523
3524 \end_inset
3525
3526  and can be translated correctly to 
3527 \lang german
3528 Nach
3529 \lang english
3530  and 
3531 \lang german
3532 Bis
3533 \lang english
3534 , respectively.
3535 \end_layout
3536
3537 \begin_layout Standard
3538 Of course the context information needs to be stripped off the original
3539  message when no translation is used.
3540  Therefore you have to put it in double square brackets at the end of the
3541  message (see the example above).
3542  The translation mechanism of \SpecialChar LyX
3543  ensures that everything in double square
3544  brackets at the end of messages is removed before displaying the message.
3545 \end_layout
3546
3547 \begin_layout Subsection
3548 Translating the documentation.
3549 \end_layout
3550
3551 \begin_layout Standard
3552 The online documentation (in the 
3553 \begin_inset Flex Noun
3554 status collapsed
3555
3556 \begin_layout Plain Layout
3557 Help
3558 \end_layout
3559
3560 \end_inset
3561
3562 -menu) can (and should!) be translated.
3563  If there are translated versions of the documentation available
3564 \begin_inset Foot
3565 status collapsed
3566
3567 \begin_layout Plain Layout
3568 As of March 2008, at least some of the documents have been translated into
3569  fourteen languages, with the Tutorial available in a few more.
3570 \end_layout
3571
3572 \end_inset
3573
3574  and the locale is set accordingly, these will be used automagically by
3575  \SpecialChar LyX
3576 .
3577  \SpecialChar LyX
3578  looks for translated versions as 
3579 \begin_inset Flex Code
3580 status collapsed
3581
3582 \begin_layout Plain Layout
3583 LyXDir/doc/xx/DocName.lyx
3584 \end_layout
3585
3586 \end_inset
3587
3588 , where 
3589 \begin_inset Flex Code
3590 status collapsed
3591
3592 \begin_layout Plain Layout
3593 xx
3594 \end_layout
3595
3596 \end_inset
3597
3598  is the code for the language currently in use.
3599  If there are no translated documents, the default English versions will
3600  be displayed.
3601  Note that the translated versions must have the same filenames (
3602 \begin_inset Flex Code
3603 status collapsed
3604
3605 \begin_layout Plain Layout
3606 DocName
3607 \end_layout
3608
3609 \end_inset
3610
3611  above) as the original.
3612  If you feel up to translating the documentation (an excellent way to proof-read
3613  the original documentation by the way!), there are a few things you should
3614  do right away:
3615 \end_layout
3616
3617 \begin_layout Itemize
3618 Check out the documentation translation web page at 
3619 \begin_inset CommandInset href
3620 LatexCommand href
3621 name "https://www.lyx.org/Translation"
3622 target "https://www.lyx.org/Translation"
3623 literal "false"
3624
3625 \end_inset
3626
3627 .
3628  That way, you can find out which (if any) documents have already been translate
3629 d into your language.
3630  You can also find out who (if anyone) is organizing the effort to translate
3631  the documentation into your language.
3632  If no one is organizing the effort, please let us know that you're interested.
3633 \end_layout
3634
3635 \begin_layout Standard
3636 Once you get to actually translating, here's a few hints for you that may
3637  save you trouble:
3638 \end_layout
3639
3640 \begin_layout Itemize
3641 Join the documentation team! There is information on how to do that in 
3642 \begin_inset Flex Code
3643 status collapsed
3644
3645 \begin_layout Plain Layout
3646 Intro.lyx
3647 \end_layout
3648
3649 \end_inset
3650
3651  (
3652 \begin_inset Flex Noun
3653 status collapsed
3654
3655 \begin_layout Plain Layout
3656 Help\SpecialChar menuseparator
3657 Introduction
3658 \end_layout
3659
3660 \end_inset
3661
3662 ), which by the way is the first document you should translate.
3663 \end_layout
3664
3665 \begin_layout Itemize
3666 Learn the typographic conventions for the language you are translating to.
3667  Typography is an ancient art and over the centuries, a great variety of
3668  conventions have developed throughout different parts of the world.
3669  Also study the professional terminology amongst typographers in your country.
3670  Inventing your own terminology will only confuse the users.
3671  
3672 \emph on
3673 (Warning! Typography is addictive!)
3674 \end_layout
3675
3676 \begin_layout Itemize
3677 Make a copy of the document.
3678  This will be your working copy.
3679  You can use this as your personal translated help-file by placing it in
3680  your 
3681 \begin_inset Flex Code
3682 status collapsed
3683
3684 \begin_layout Plain Layout
3685 UserDir/doc/xx/
3686 \end_layout
3687
3688 \end_inset
3689
3690  directory.
3691 \begin_inset Note Greyedout
3692 status open
3693
3694 \begin_layout Plain Layout
3695
3696 \series bold
3697 Note:
3698 \series default
3699  For a complex document with external material (images, etc.), if you make
3700  a copy e.
3701 \begin_inset space \thinspace{}
3702 \end_inset
3703
3704 g.
3705 \begin_inset space \space{}
3706 \end_inset
3707
3708 in a temp dir, beware that the links to external material may be broken
3709  when the document is moved to a different place.
3710  The best way is to retrieve the \SpecialChar LyX
3711  tree from git (see 
3712 \begin_inset Flex URL
3713 status collapsed
3714
3715 \begin_layout Plain Layout
3716
3717 https://www.lyx.org/HowToUseGIT
3718 \end_layout
3719
3720 \end_inset
3721
3722 ) and to edit the doc file in place.
3723 \end_layout
3724
3725 \end_inset
3726
3727
3728 \end_layout
3729
3730 \begin_layout Itemize
3731 Sometimes the original document (from the \SpecialChar LyX
3732  team) will be updated.
3733  Use the source viewer at 
3734 \begin_inset CommandInset href
3735 LatexCommand href
3736 name "https://www.lyx.org/trac/timeline"
3737 target "https://www.lyx.org/trac/timeline"
3738 literal "false"
3739
3740 \end_inset
3741
3742  to see what has been changed.
3743  That way you can easily see which parts of the translated document need
3744  to be updated.
3745 \end_layout
3746
3747 \begin_layout Standard
3748 If you ever find an error in the original document, fix it and notify the
3749  rest of the documentation team of the changes! (You didn't forget to join
3750  the documentation team, did you?)
3751 \end_layout
3752
3753 \begin_layout Standard
3754 \begin_inset Branch OutDated
3755 inverted 0
3756 status collapsed
3757
3758 \begin_layout Section
3759 International Keyboard Support
3760 \end_layout
3761
3762 \begin_layout Standard
3763
3764 \emph on
3765 [Editor's Note: The following section is by
3766 \emph default
3767  
3768 \shape smallcaps
3769 \emph on
3770 Ivan Schreter
3771 \shape default
3772 .
3773  It needs to be fixed to conform to the new Documentation Style sheet and
3774  to make use of the new v1.0 features.
3775  The whole thing also needs to be merged with the section following it.-jw
3776  It may also be badly out of date.-rh (2008)]
3777 \end_layout
3778
3779 \begin_layout Subsection
3780 Defining Own Keymaps: Keymap File Format
3781 \end_layout
3782
3783 \begin_layout Standard
3784 Let's look at a keyboard definition file a little closer.
3785  It is a plain text file defining
3786 \end_layout
3787
3788 \begin_layout Itemize
3789 key-to-key or key-to-string translations
3790 \end_layout
3791
3792 \begin_layout Itemize
3793 dead keys
3794 \end_layout
3795
3796 \begin_layout Itemize
3797 dead keys exceptions
3798 \end_layout
3799
3800 \begin_layout Standard
3801 To define key-to-key or key-to-string translation, use this command:
3802 \end_layout
3803
3804 \begin_layout Quotation
3805 \begin_inset Flex Code
3806 status collapsed
3807
3808 \begin_layout Plain Layout
3809
3810 \backslash
3811 kmap
3812 \end_layout
3813
3814 \end_inset
3815
3816  
3817 \begin_inset Flex Code
3818 status collapsed
3819
3820 \begin_layout Plain Layout
3821 key
3822 \end_layout
3823
3824 \end_inset
3825
3826  outstring 
3827 \end_layout
3828
3829 \begin_layout Standard
3830 where 
3831 \begin_inset Flex Code
3832 status collapsed
3833
3834 \begin_layout Plain Layout
3835 key
3836 \end_layout
3837
3838 \end_inset
3839
3840  is the key to be translated and 
3841 \begin_inset Flex Code
3842 status collapsed
3843
3844 \begin_layout Plain Layout
3845 outstring
3846 \end_layout
3847
3848 \end_inset
3849
3850  is the string to be inserted into the document.
3851  To define dead keys, use:
3852 \end_layout
3853
3854 \begin_layout Quotation
3855 \begin_inset Flex Code
3856 status collapsed
3857
3858 \begin_layout Plain Layout
3859
3860 \backslash
3861 kmod
3862 \end_layout
3863
3864 \end_inset
3865
3866  
3867 \begin_inset Flex Code
3868 status collapsed
3869
3870 \begin_layout Plain Layout
3871 key
3872 \end_layout
3873
3874 \end_inset
3875
3876  deadkey
3877 \end_layout
3878
3879 \begin_layout Standard
3880 where 
3881 \begin_inset Flex Code
3882 status collapsed
3883
3884 \begin_layout Plain Layout
3885 key
3886 \end_layout
3887
3888 \end_inset
3889
3890  is a keyboard key and 
3891 \begin_inset Flex Code
3892 status collapsed
3893
3894 \begin_layout Plain Layout
3895 deadkey
3896 \end_layout
3897
3898 \end_inset
3899
3900  is dead key name.
3901  The following dead keys are supported (shortcut name is in parentheses):
3902 \end_layout
3903
3904 \begin_layout Quotation
3905
3906 \emph on
3907 Name
3908 \begin_inset space \hfill{}
3909 \end_inset
3910
3911 Example
3912 \end_layout
3913
3914 \begin_layout Quotation
3915 acute (acu)
3916 \begin_inset space \hfill{}
3917 \end_inset
3918
3919 áéíóú
3920 \end_layout
3921
3922 \begin_layout Quotation
3923 grave (gra)
3924 \begin_inset space \hfill{}
3925 \end_inset
3926
3927 àèìòù
3928 \end_layout
3929
3930 \begin_layout Quotation
3931 macron (mac)
3932 \begin_inset space \hfill{}
3933 \end_inset
3934
3935  ō
3936 \end_layout
3937
3938 \begin_layout Quotation
3939 tilde (til)
3940 \begin_inset space \hfill{}
3941 \end_inset
3942
3943 ñÑ
3944 \end_layout
3945
3946 \begin_layout Quotation
3947 underbar (underb)
3948 \begin_inset space \hfill{}
3949 \end_inset
3950
3951
3952 \begin_inset ERT
3953 status open
3954
3955 \begin_layout Plain Layout
3956
3957
3958 \backslash
3959 b o
3960 \end_layout
3961
3962 \end_inset
3963
3964
3965 \end_layout
3966
3967 \begin_layout Quotation
3968 cedilla (ced)
3969 \begin_inset space \hfill{}
3970 \end_inset
3971
3972 çÇ
3973 \end_layout
3974
3975 \begin_layout Quotation
3976 underdot (underd)
3977 \begin_inset space \hfill{}
3978 \end_inset
3979
3980
3981 \begin_inset ERT
3982 status open
3983
3984 \begin_layout Plain Layout
3985
3986
3987 \backslash
3988 d o
3989 \end_layout
3990
3991 \end_inset
3992
3993
3994 \end_layout
3995
3996 \begin_layout Quotation
3997 circumflex (circu)
3998 \begin_inset space \hfill{}
3999 \end_inset
4000
4001 âêîôû
4002 \end_layout
4003
4004 \begin_layout Quotation
4005 circle (circl)
4006 \begin_inset space \hfill{}
4007 \end_inset
4008
4009 ÅůŮ
4010 \end_layout
4011
4012 \begin_layout Quotation
4013 tie (tie)
4014 \begin_inset space \hfill{}
4015 \end_inset
4016
4017
4018 \begin_inset ERT
4019 status open
4020
4021 \begin_layout Plain Layout
4022
4023
4024 \backslash
4025 t o
4026 \end_layout
4027
4028 \end_inset
4029
4030
4031 \end_layout
4032
4033 \begin_layout Quotation
4034 breve (bre)
4035 \begin_inset space \hfill{}
4036 \end_inset
4037
4038 ă
4039 \begin_inset ERT
4040 status open
4041
4042 \begin_layout Plain Layout
4043
4044
4045 \backslash
4046 u o
4047 \end_layout
4048
4049 \end_inset
4050
4051
4052 \end_layout
4053
4054 \begin_layout Quotation
4055 caron (car)
4056 \begin_inset space \hfill{}
4057 \end_inset
4058
4059 čšž
4060 \end_layout
4061
4062 \begin_layout Quotation
4063 hungarian umlaut (hug)
4064 \begin_inset space \hfill{}
4065 \end_inset
4066
4067 őű
4068 \end_layout
4069
4070 \begin_layout Quotation
4071 umlaut (uml)
4072 \begin_inset space \hfill{}
4073 \end_inset
4074
4075 äöü
4076 \end_layout
4077
4078 \begin_layout Quotation
4079 dot (dot)
4080 \begin_inset space \hfill{}
4081 \end_inset
4082
4083 ż
4084 \begin_inset ERT
4085 status open
4086
4087 \begin_layout Plain Layout
4088
4089
4090 \backslash
4091 .s
4092 \end_layout
4093
4094 \end_inset
4095
4096
4097 \end_layout
4098
4099 \begin_layout Standard
4100 Since in many international keyboards there are exceptions to what some
4101  dead keys should do, you can define them using
4102 \end_layout
4103
4104 \begin_layout Quotation
4105 \begin_inset Flex Code
4106 status collapsed
4107
4108 \begin_layout Plain Layout
4109
4110 \backslash
4111 kxmod
4112 \end_layout
4113
4114 \end_inset
4115
4116  deadkey key outstring
4117 \end_layout
4118
4119 \begin_layout Standard
4120 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4121 , so you put in
4122 \end_layout
4123
4124 \begin_layout Quotation
4125 \begin_inset Flex Code
4126 status collapsed
4127
4128 \begin_layout Plain Layout
4129
4130 \backslash
4131 kxmod
4132 \end_layout
4133
4134 \end_inset
4135
4136  caron o "
4137 \backslash
4138 ^o"
4139 \end_layout
4140
4141 \begin_layout Standard
4142 to make it work correctly.
4143  Also, you have to define as exceptions dead keys over i and j, to remove
4144  the dot from them before inserting an accent mark.
4145  I will change this when the time comes, but so far I haven't had time.
4146 \end_layout
4147
4148 \begin_layout Standard
4149 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4150  double backslash.
4151  Also, quotes and 
4152 \begin_inset Flex Code
4153 status collapsed
4154
4155 \begin_layout Plain Layout
4156 #
4157 \end_layout
4158
4159 \end_inset
4160
4161  have different meaning.
4162  
4163 \begin_inset Flex Code
4164 status collapsed
4165
4166 \begin_layout Plain Layout
4167 #
4168 \end_layout
4169
4170 \end_inset
4171
4172  marks comments, quotes start and end \SpecialChar LaTeX
4173 -style commands.
4174  To enter quote, you'll need to use 
4175 \begin_inset Flex Code
4176 status collapsed
4177
4178 \begin_layout Plain Layout
4179
4180 \backslash
4181 "
4182 \end_layout
4183
4184 \end_inset
4185
4186 , to enter 
4187 \begin_inset Flex Code
4188 status collapsed
4189
4190 \begin_layout Plain Layout
4191 #
4192 \end_layout
4193
4194 \end_inset
4195
4196 , use 
4197 \begin_inset Flex Code
4198 status collapsed
4199
4200 \begin_layout Plain Layout
4201
4202 \backslash
4203 #
4204 \end_layout
4205
4206 \end_inset
4207
4208 .
4209 \end_layout
4210
4211 \begin_layout Standard
4212 If you make a keyboard description file that works for your language, please
4213  mail it to me, so I can include it in the next keymap distribution.
4214 \end_layout
4215
4216 \begin_layout Standard
4217 More keywords will be supported in keymap configuration file in future,
4218  like
4219 \end_layout
4220
4221 \begin_layout Itemize
4222 \begin_inset Flex Code
4223 status collapsed
4224
4225 \begin_layout Plain Layout
4226
4227 \backslash
4228 kinclude filename
4229 \end_layout
4230
4231 \end_inset
4232
4233
4234 \emph on
4235
4236 \begin_inset space \hfill{}
4237 \end_inset
4238
4239
4240 \begin_inset Flex Code
4241 status collapsed
4242
4243 \begin_layout Plain Layout
4244 include
4245 \end_layout
4246
4247 \end_inset
4248
4249  another file
4250 \end_layout
4251
4252 \begin_layout Itemize
4253 \begin_inset Flex Code
4254 status collapsed
4255
4256 \begin_layout Plain Layout
4257
4258 \backslash
4259 kprog program
4260 \end_layout
4261
4262 \end_inset
4263
4264
4265 \emph on
4266
4267 \begin_inset space \hfill{}
4268 \end_inset
4269
4270
4271 \begin_inset Flex Code
4272 status collapsed
4273
4274 \begin_layout Plain Layout
4275 define
4276 \end_layout
4277
4278 \end_inset
4279
4280  an external keymap translation program 
4281 \end_layout
4282
4283 \begin_layout Standard
4284 Also, it should look into 
4285 \begin_inset Flex Code
4286 status collapsed
4287
4288 \begin_layout Plain Layout
4289 lyxrc
4290 \end_layout
4291
4292 \end_inset
4293
4294  file for defaults, too (for example, a 
4295 \begin_inset Flex Code
4296 status collapsed
4297
4298 \begin_layout Plain Layout
4299
4300 \backslash
4301 kinclude
4302 \end_layout
4303
4304 \end_inset
4305
4306  option to include default keyboard).
4307 \end_layout
4308
4309 \end_inset
4310
4311
4312 \end_layout
4313
4314 \begin_layout Section
4315 International Keymap Stuff
4316 \begin_inset CommandInset label
4317 LatexCommand label
4318 name "sec:International-Keymap-Stuff"
4319
4320 \end_inset
4321
4322
4323 \end_layout
4324
4325 \begin_layout Standard
4326 \begin_inset Note Note
4327 status open
4328
4329 \begin_layout Plain Layout
4330 In doing the revisions on this document in March 2008, I did not look over
4331  this stuff, as I do not understand it.
4332  It would be good if someone else could do so.
4333  (RH)
4334 \end_layout
4335
4336 \end_inset
4337
4338
4339 \end_layout
4340
4341 \begin_layout Standard
4342 The next two sections describe the 
4343 \begin_inset Flex Code
4344 status collapsed
4345
4346 \begin_layout Plain Layout
4347
4348 \shape up
4349 .kmap
4350 \end_layout
4351
4352 \end_inset
4353
4354  and 
4355 \begin_inset Flex Code
4356 status collapsed
4357
4358 \begin_layout Plain Layout
4359
4360 \shape up
4361 .cdef
4362 \end_layout
4363
4364 \end_inset
4365
4366  file syntax in detail.
4367  These sections should help you design your own key map if the ones provided
4368  do not meet your needs.
4369 \end_layout
4370
4371 \begin_layout Subsection
4372 The .kmap File
4373 \end_layout
4374
4375 \begin_layout Standard
4376
4377 \shape up
4378 .
4379 \begin_inset Flex Code
4380 status collapsed
4381
4382 \begin_layout Plain Layout
4383 kmap
4384 \end_layout
4385
4386 \end_inset
4387
4388  file maps keystrokes to characters or strings.
4389  As the name suggests, it sets a keyboard mapping.
4390  The 
4391 \begin_inset Flex Code
4392 status collapsed
4393
4394 \begin_layout Plain Layout
4395 .kmap
4396 \end_layout
4397
4398 \end_inset
4399
4400
4401 \shape default
4402  file keywords 
4403 \shape up
4404
4405 \begin_inset Flex Code
4406 status collapsed
4407
4408 \begin_layout Plain Layout
4409
4410 \shape up
4411 kmap
4412 \end_layout
4413
4414 \end_inset
4415
4416
4417 \shape default
4418 ,
4419 \shape up
4420  
4421 \shape default
4422
4423 \begin_inset Flex Code
4424 status collapsed
4425
4426 \begin_layout Plain Layout
4427
4428 \shape up
4429 kmod
4430 \end_layout
4431
4432 \end_inset
4433
4434 ,
4435 \shape up
4436  
4437 \shape default
4438
4439 \begin_inset Flex Code
4440 status collapsed
4441
4442 \begin_layout Plain Layout
4443
4444 \shape up
4445 kxmod
4446 \end_layout
4447
4448 \end_inset
4449
4450 , and 
4451 \begin_inset Flex Code
4452 status collapsed
4453
4454 \begin_layout Plain Layout
4455
4456 \shape up
4457 kcomb
4458 \end_layout
4459
4460 \end_inset
4461
4462  are described in this section.
4463 \end_layout
4464
4465 \begin_layout Labeling
4466 \labelwidthstring 00.00.0000
4467 \begin_inset Flex Code
4468 status collapsed
4469
4470 \begin_layout Plain Layout
4471
4472 \shape up
4473 kmap
4474 \end_layout
4475
4476 \end_inset
4477
4478  Map a character to a string
4479 \end_layout
4480
4481 \begin_layout LyX-Code
4482
4483 \backslash
4484 kmap 
4485 \family roman
4486 \emph on
4487 char
4488 \family default
4489 \emph default
4490  
4491 \family roman
4492 \emph on
4493 string
4494 \end_layout
4495
4496 \begin_layout Standard
4497 This will ma
4498 \family roman
4499 p
4500 \family default
4501  
4502 \family roman
4503 \emph on
4504 char
4505 \family default
4506 \emph default
4507  
4508 \family roman
4509 to
4510 \family default
4511  
4512 \family roman
4513 \emph on
4514 string
4515 \emph default
4516 .
4517  Note that in
4518 \family default
4519  
4520 \family roman
4521 \emph on
4522 string
4523 \emph default
4524 ,
4525 \family default
4526  
4527 \family roman
4528 \shape up
4529 the double-quote (")
4530 \family default
4531 \shape default
4532  
4533 \family roman
4534 and
4535 \family default
4536  
4537 \family roman
4538 \shape up
4539 the backslash (
4540 \backslash
4541 )
4542 \family default
4543 \shape default
4544  
4545 \family roman
4546 must be escaped with a preceding backslash (
4547 \shape up
4548
4549 \backslash
4550
4551 \shape default
4552 )
4553 \family default
4554 .
4555 \end_layout
4556
4557 \begin_layout Standard
4558 An example of a 
4559 \begin_inset Flex Noun
4560 status collapsed
4561
4562 \begin_layout Plain Layout
4563
4564 \shape up
4565 kmap
4566 \end_layout
4567
4568 \end_inset
4569
4570  statement to cause the symbol 
4571 \begin_inset Flex Noun
4572 status collapsed
4573
4574 \begin_layout Plain Layout
4575
4576 \shape up
4577 /
4578 \end_layout
4579
4580 \end_inset
4581
4582  to be output for the keystroke 
4583 \begin_inset Flex Noun
4584 status collapsed
4585
4586 \begin_layout Plain Layout
4587
4588 \shape up
4589 &
4590 \end_layout
4591
4592 \end_inset
4593
4594  is:
4595 \end_layout
4596
4597 \begin_layout LyX-Code
4598
4599 \backslash
4600 kmap & /
4601 \end_layout
4602
4603 \begin_layout Labeling
4604 \labelwidthstring 00.00.0000
4605 \begin_inset Flex Code
4606 status collapsed
4607
4608 \begin_layout Plain Layout
4609
4610 \shape up
4611 kmod
4612 \end_layout
4613
4614 \end_inset
4615
4616  Specify an accent character
4617 \end_layout
4618
4619 \begin_layout LyX-Code
4620
4621 \backslash
4622 kmod 
4623 \family roman
4624 \emph on
4625 char accent allowed
4626 \end_layout
4627
4628 \begin_layout Standard
4629 This will make the cha
4630 \family roman
4631 racter
4632 \family default
4633  
4634 \family roman
4635 \emph on
4636 char
4637 \family default
4638 \emph default
4639  
4640 \family roman
4641 \shape up
4642 \emph on
4643 be an accent
4644 \family default
4645 \shape default
4646 \emph default
4647  
4648 \family roman
4649 \shape up
4650 on the
4651 \family default
4652 \shape default
4653  
4654 \family roman
4655 \shape up
4656 \emph on
4657 allowed
4658 \family default
4659 \shape default
4660 \emph default
4661  
4662 \family roman
4663 \shape up
4664 cha
4665 \family default
4666 racter(s).
4667  This is the dead key
4668 \begin_inset Foot
4669 status collapsed
4670
4671 \begin_layout Plain Layout
4672 The term 
4673 \family roman
4674 \emph on
4675 dead key
4676 \family default
4677 \emph default
4678  refers to a key that does not produce a character by itself, but when followed
4679  with another key, produces the desired accent character.
4680  For example, a German characte
4681 \family roman
4682 r with an umlaut like
4683 \family default
4684  
4685 \family roman
4686 \emph on
4687 ä
4688 \family default
4689 \emph default
4690  
4691 \family roman
4692 can be produced in this manner.
4693 \end_layout
4694
4695 \end_inset
4696
4697  mechanism.
4698  
4699 \end_layout
4700
4701 \begin_layout Standard
4702 If you 
4703 \family roman
4704 hit
4705 \family default
4706  
4707 \family roman
4708 \emph on
4709 char
4710 \family default
4711 \emph default
4712  
4713 \family roman
4714 and then another key not in
4715 \family default
4716  
4717 \family roman
4718 \emph on
4719 allowed
4720 \emph default
4721 , you will get a
4722 \family default
4723  
4724 \family roman
4725 \emph on
4726 char
4727 \family default
4728 \emph default
4729  
4730 \family roman
4731 followed by the other, not allowed key, as output.
4732
4733 \family default
4734  Note that a 
4735 \begin_inset Flex Noun
4736 status collapsed
4737
4738 \begin_layout Plain Layout
4739
4740 \shape up
4741 Backspace
4742 \end_layout
4743
4744 \end_inset
4745
4746  cancels a dead key, so if 
4747 \family roman
4748 you hit
4749 \family default
4750  
4751 \family roman
4752 \emph on
4753 char
4754 \family default
4755 \emph default
4756  
4757 \begin_inset Flex Noun
4758 status collapsed
4759
4760 \begin_layout Plain Layout
4761
4762 \shape up
4763 \emph on
4764 Backspace
4765 \end_layout
4766
4767 \end_inset
4768
4769 , the cursor will not go one position backwards but will instead cancel
4770  the effect t
4771 \family roman
4772 hat
4773 \family default
4774  
4775 \family roman
4776 \shape up
4777 \emph on
4778 char
4779 \family default
4780 \shape default
4781 \emph default
4782  
4783 \family roman
4784 \shape up
4785 might have had on the next keystroke.
4786  
4787 \end_layout
4788
4789 \begin_layout Standard
4790 The following example specifies that the character ' is to be an acute accent,
4791  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4792 \end_layout
4793
4794 \begin_layout LyX-Code
4795
4796 \backslash
4797 kmod ' acute aeiouAEIOU
4798 \end_layout
4799
4800 \begin_layout Labeling
4801 \labelwidthstring 00.00.0000
4802 \begin_inset Flex Code
4803 status collapsed
4804
4805 \begin_layout Plain Layout
4806 kxmod
4807 \end_layout
4808
4809 \end_inset
4810
4811  Specify an exception to the accent character
4812 \end_layout
4813
4814 \begin_layout LyX-Code
4815
4816 \backslash
4817 kxmod  
4818 \family roman
4819 \emph on
4820 accent char result
4821 \end_layout
4822
4823 \begin_layout Standard
4824 This defines an exce
4825 \family roman
4826 ption for
4827 \family default
4828  
4829 \family roman
4830 \emph on
4831 accent
4832 \family default
4833 \emph default
4834  
4835 \family roman
4836 on
4837 \family default
4838  
4839 \family roman
4840 \emph on
4841 char
4842 \emph default
4843 .
4844  T
4845 \shape up
4846 he
4847 \family default
4848 \shape default
4849  
4850 \family roman
4851 \shape up
4852 \emph on
4853 accent
4854 \family default
4855 \shape default
4856 \emph default
4857  
4858 \family roman
4859 \shape up
4860 must
4861 \family default
4862 \shape default
4863  
4864 \shape up
4865 have been assigned a keystroke with a previous
4866 \shape default
4867  
4868 \begin_inset Flex Code
4869 status collapsed
4870
4871 \begin_layout Plain Layout
4872
4873 \shape up
4874
4875 \backslash
4876 kmo
4877 \shape default
4878 d
4879 \end_layout
4880
4881 \end_inset
4882
4883  declar
4884 \family roman
4885 ation and
4886 \family default
4887  
4888 \family roman
4889 \emph on
4890 char
4891 \family default
4892 \emph default
4893  
4894 \family roman
4895 must not belong in the
4896 \family default
4897  
4898 \family roman
4899 \emph on
4900 allowed
4901 \family default
4902 \emph default
4903  
4904 \family roman
4905 set of
4906 \family default
4907  
4908 \family roman
4909 \emph on
4910 accent
4911 \emph default
4912 .
4913  When
4914 \family default
4915  
4916 \family roman
4917 \shape up
4918 you enter the
4919 \family default
4920 \shape default
4921  
4922 \family roman
4923 \shape up
4924 \emph on
4925 accent char
4926 \family default
4927 \shape default
4928 \emph default
4929  
4930 \family roman
4931 \shape up
4932 sequence,
4933 \family default
4934 \shape default
4935  
4936 \family roman
4937 \shape up
4938 \emph on
4939 result
4940 \emph default
4941  is produced.
4942  If such a declaration does not exist in
4943 \family default
4944 \shape default
4945  
4946 \shape up
4947 the
4948 \shape default
4949  
4950 \begin_inset Flex Code
4951 status collapsed
4952
4953 \begin_layout Plain Layout
4954
4955 \shape up
4956 .kmap
4957 \end_layout
4958
4959 \end_inset
4960
4961  file and yo
4962 \family roman
4963 u enter
4964 \family default
4965  
4966 \family roman
4967 \emph on
4968 accent char
4969 \emph default
4970 , you get
4971 \family default
4972  
4973 \family roman
4974 \emph on
4975 accent_key char
4976 \emph default
4977  where
4978 \family default
4979  
4980 \family roman
4981 \emph on
4982 accent_key
4983 \emph default
4984  is the first arg
4985 \family default
4986 ument of the 
4987 \begin_inset Flex Code
4988 status collapsed
4989
4990 \begin_layout Plain Layout
4991
4992 \shape up
4993
4994 \backslash
4995 kmod
4996 \end_layout
4997
4998 \end_inset
4999
5000  declaration.
5001  
5002 \end_layout
5003
5004 \begin_layout Standard
5005 The following command produces causes äi to be produced when you enter acute-i
5006  ('i):
5007 \end_layout
5008
5009 \begin_layout LyX-Code
5010
5011 \backslash
5012 kxmod acute i "
5013 \backslash
5014
5015 \backslash
5016 '{
5017 \backslash
5018
5019 \backslash
5020 i}"
5021 \end_layout
5022
5023 \begin_layout Labeling
5024 \labelwidthstring 00.00.0000
5025 \begin_inset Flex Code
5026 status collapsed
5027
5028 \begin_layout Plain Layout
5029 kcomb
5030 \end_layout
5031
5032 \end_inset
5033
5034  Combine two accent characters
5035 \end_layout
5036
5037 \begin_layout LyX-Code
5038
5039 \backslash
5040 kcomb 
5041 \family roman
5042 \emph on
5043 accent1 accent2 allowed
5044 \end_layout
5045
5046 \begin_layout Standard
5047 This one is getting pretty esoteric.
5048  It allows you to combine the effect 
5049 \family roman
5050 of
5051 \family default
5052  
5053 \family roman
5054 \emph on
5055 accent1
5056 \family default
5057 \emph default
5058  
5059 \family roman
5060 and
5061 \family default
5062  
5063 \family roman
5064 \emph on
5065 accent2
5066 \family default
5067 \emph default
5068  
5069 \family roman
5070 (in that order!) on
5071 \family default
5072  
5073 \family roman
5074 \emph on
5075 allowed
5076 \family default
5077 \emph default
5078  
5079 \family roman
5080 chars.
5081  The keystrokes for
5082 \family default
5083  
5084 \family roman
5085 \emph on
5086 accent1
5087 \family default
5088 \emph default
5089  
5090 \family roman
5091 and
5092 \family default
5093  
5094 \family roman
5095 \emph on
5096 accent2
5097 \family default
5098 \emph default
5099  
5100 \family roman
5101 must have be
5102 \family default
5103 en set with a 
5104 \begin_inset Flex Code
5105 status collapsed
5106
5107 \begin_layout Plain Layout
5108
5109 \shape up
5110
5111 \backslash
5112 kmod
5113 \end_layout
5114
5115 \end_inset
5116
5117  command at 
5118 \family roman
5119 a
5120 \family default
5121  
5122 \family roman
5123 \emph on
5124 previous
5125 \family default
5126 \emph default
5127  
5128 \family roman
5129 point in the
5130 \family default
5131  file.
5132  
5133 \end_layout
5134
5135 \begin_layout Standard
5136 Consider this example from the 
5137 \begin_inset Flex Code
5138 status collapsed
5139
5140 \begin_layout Plain Layout
5141
5142 \shape up
5143 greek.kmap
5144 \end_layout
5145
5146 \end_inset
5147
5148  file:
5149 \end_layout
5150
5151 \begin_layout LyX-Code
5152
5153 \backslash
5154 kmod ; acute aeioyvhAEIOYVH 
5155 \backslash
5156 kmod : umlaut iyIY 
5157 \backslash
5158 kcomb acute umlaut iyIY
5159 \end_layout
5160
5161 \begin_layout Standard
5162 This allows you to press 
5163 \begin_inset Flex Noun
5164 status collapsed
5165
5166 \begin_layout Plain Layout
5167
5168 \shape up
5169 ;:i
5170 \end_layout
5171
5172 \end_inset
5173
5174  and get the effect of 
5175 \begin_inset Flex Code
5176 status collapsed
5177
5178 \begin_layout Plain Layout
5179
5180 \shape up
5181
5182 \backslash
5183 '{
5184 \backslash
5185 "{i}}
5186 \end_layout
5187
5188 \end_inset
5189
5190 .
5191  
5192 \family roman
5193 \shape up
5194 A backspace
5195 \family default
5196 \shape default
5197  in this case cancels the last dead key, so if you press 
5198 \begin_inset Flex Noun
5199 status collapsed
5200
5201 \begin_layout Plain Layout
5202
5203 \shape up
5204 ;: Backspace i
5205 \end_layout
5206
5207 \end_inset
5208
5209  you get 
5210 \begin_inset Flex Code
5211 status collapsed
5212
5213 \begin_layout Plain Layout
5214
5215 \shape up
5216
5217 \backslash
5218 '{i}
5219 \end_layout
5220
5221 \end_inset
5222
5223 .
5224 \end_layout
5225
5226 \begin_layout Subsection
5227 The .cdef File
5228 \end_layout
5229
5230 \begin_layout Standard
5231 After the 
5232 \begin_inset Flex Code
5233 status collapsed
5234
5235 \begin_layout Plain Layout
5236
5237 \shape up
5238 .kmap
5239 \end_layout
5240
5241 \end_inset
5242
5243  mapping is performed, a 
5244 \begin_inset Flex Code
5245 status collapsed
5246
5247 \begin_layout Plain Layout
5248
5249 \shape up
5250 .cde
5251 \shape default
5252 f
5253 \end_layout
5254
5255 \end_inset
5256
5257  file maps the strings that the symbols generate to characters in the current
5258  font.
5259  The \SpecialChar LyX
5260  distribution currently includes at least the 
5261 \begin_inset Flex Code
5262 status collapsed
5263
5264 \begin_layout Plain Layout
5265
5266 \shape up
5267 iso8859-1.cdef
5268 \end_layout
5269
5270 \end_inset
5271
5272  and 
5273 \begin_inset Flex Code
5274 status collapsed
5275
5276 \begin_layout Plain Layout
5277
5278 \shape up
5279 iso8859-2.cdef
5280 \end_layout
5281
5282 \end_inset
5283
5284  files.
5285 \end_layout
5286
5287 \begin_layout Standard
5288 In general the 
5289 \begin_inset Flex Code
5290 status collapsed
5291
5292 \begin_layout Plain Layout
5293
5294 \shape up
5295 .cdef
5296 \end_layout
5297
5298 \end_inset
5299
5300  file is a sequence of declarations of the form
5301 \end_layout
5302
5303 \begin_layout LyX-Code
5304
5305 \family roman
5306 \emph on
5307 char_index_in_set
5308 \family default
5309 \emph default
5310  
5311 \family roman
5312 \emph on
5313  string
5314 \end_layout
5315
5316 \begin_layout Standard
5317 For example, in order to map 
5318 \begin_inset Flex Noun
5319 status collapsed
5320
5321 \begin_layout Plain Layout
5322
5323 \shape up
5324
5325 \backslash
5326 '{e}
5327 \end_layout
5328
5329 \end_inset
5330
5331  to the corresponding character in the iso-8859-1 set (233), the following
5332  declaration is used
5333 \end_layout
5334
5335 \begin_layout LyX-Code
5336 233 "
5337 \backslash
5338
5339 \backslash
5340 '{e}"
5341 \end_layout
5342
5343 \begin_layout Standard
5344 with 
5345 \begin_inset Flex Code
5346 status collapsed
5347
5348 \begin_layout Plain Layout
5349
5350 \backslash
5351
5352 \end_layout
5353
5354 \end_inset
5355
5356  and 
5357 \begin_inset Flex Code
5358 status collapsed
5359
5360 \begin_layout Plain Layout
5361 "
5362 \end_layout
5363
5364 \end_inset
5365
5366  being escap
5367 \family roman
5368 ed in
5369 \family default
5370  
5371 \family roman
5372 \emph on
5373 string
5374 \emph default
5375 .
5376  Note that
5377 \family default
5378  the same character can apply to more than one string.
5379  In the 
5380 \begin_inset Flex Code
5381 status collapsed
5382
5383 \begin_layout Plain Layout
5384 i
5385 \shape up
5386 so-8859-7.cdef
5387 \end_layout
5388
5389 \end_inset
5390
5391  file you have
5392 \end_layout
5393
5394 \begin_layout LyX-Code
5395 192 "
5396 \backslash
5397
5398 \backslash
5399 '{
5400 \backslash
5401
5402 \backslash
5403
5404 \backslash
5405 "{i}}"
5406 \begin_inset Newline newline
5407 \end_inset
5408
5409 192 "
5410 \backslash
5411
5412 \backslash
5413
5414 \backslash
5415 "{
5416 \backslash
5417
5418 \backslash
5419 '{i}}"
5420 \end_layout
5421
5422 \begin_layout Standard
5423 If \SpecialChar LyX
5424  cannot find a mapping for the string produced by the keystroke or a
5425  deadkey sequence, it will check if it looks like an accented char and try
5426  to draw an accent over the character on screen.
5427 \end_layout
5428
5429 \begin_layout Subsection
5430 Dead Keys
5431 \end_layout
5432
5433 \begin_layout Standard
5434 There is a second way to add support for international characters through
5435  so-called dead-keys.
5436  A dead-key works in combination with a letter to produce an accented character.
5437  Here, we'll explain how to create a really simple dead-key to illustrate
5438  how they work.
5439 \end_layout
5440
5441 \begin_layout Standard
5442 Suppose you happen to need the circumflex character, 
5443 \begin_inset Quotes eld
5444 \end_inset
5445
5446  ̂
5447 \begin_inset Quotes erd
5448 \end_inset
5449
5450 .
5451  You could bind the 
5452 \begin_inset Flex Noun
5453 status collapsed
5454
5455 \begin_layout Plain Layout
5456 ^
5457 \end_layout
5458
5459 \end_inset
5460
5461 -key [a.k.a.
5462 \begin_inset space ~
5463 \end_inset
5464
5465
5466 \begin_inset Flex Noun
5467 status collapsed
5468
5469 \begin_layout Plain Layout
5470 Shift-6
5471 \end_layout
5472
5473 \end_inset
5474
5475 ] to the \SpecialChar LyX
5476  command 
5477 \begin_inset Flex Code
5478 status collapsed
5479
5480 \begin_layout Plain Layout
5481 accent-circumflex
5482 \end_layout
5483
5484 \end_inset
5485
5486  in your 
5487 \begin_inset Flex Code
5488 status collapsed
5489
5490 \begin_layout Plain Layout
5491 lyxrc
5492 \end_layout
5493
5494 \end_inset
5495
5496  file.
5497  Now, whenever you type the 
5498 \begin_inset Flex Noun
5499 status collapsed
5500
5501 \begin_layout Plain Layout
5502 ^
5503 \end_layout
5504
5505 \end_inset
5506
5507 -key followed by a letter, that letter will have a circumflex accent on
5508  it.
5509  For example, the sequence 
5510 \begin_inset Quotes eld
5511 \end_inset
5512
5513
5514 \begin_inset Flex Noun
5515 status collapsed
5516
5517 \begin_layout Plain Layout
5518 ^e
5519 \end_layout
5520
5521 \end_inset
5522
5523
5524 \begin_inset Quotes erd
5525 \end_inset
5526
5527  produces the letter: 
5528 \begin_inset Quotes eld
5529 \end_inset
5530
5531 ê
5532 \begin_inset Quotes erd
5533 \end_inset
5534
5535 .
5536  If you tried to type 
5537 \begin_inset Quotes eld
5538 \end_inset
5539
5540
5541 \begin_inset Flex Noun
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545 ^t
5546 \end_layout
5547
5548 \end_inset
5549
5550
5551 \begin_inset Quotes erd
5552 \end_inset
5553
5554 , however, \SpecialChar LyX
5555  will complain with a beep, since a 
5556 \begin_inset Quotes eld
5557 \end_inset
5558
5559
5560 \begin_inset Flex Noun
5561 status collapsed
5562
5563 \begin_layout Plain Layout
5564 t
5565 \end_layout
5566
5567 \end_inset
5568
5569
5570 \begin_inset Quotes erd
5571 \end_inset
5572
5573  never takes a circumflex accent.
5574  Hitting 
5575 \begin_inset Flex Noun
5576 status collapsed
5577
5578 \begin_layout Plain Layout
5579 Space
5580 \end_layout
5581
5582 \end_inset
5583
5584  after a dead-key produces the bare-accent.
5585  Please note this last point! If you bind a key to a dead-key, you'll need
5586  to rebind the character on that key to yet another key.
5587  Binding the 
5588 \begin_inset Flex Noun
5589 status collapsed
5590
5591 \begin_layout Plain Layout
5592 ,-key
5593 \end_layout
5594
5595 \end_inset
5596
5597  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5598 \end_layout
5599
5600 \begin_layout Standard
5601 One common way to bind dead-keys is to use 
5602 \begin_inset Flex Noun
5603 status collapsed
5604
5605 \begin_layout Plain Layout
5606 Meta-
5607 \end_layout
5608
5609 \end_inset
5610
5611
5612 \begin_inset Flex Noun
5613 status collapsed
5614
5615 \begin_layout Plain Layout
5616 Ctrl-
5617 \end_layout
5618
5619 \end_inset
5620
5621 , and 
5622 \begin_inset Flex Noun
5623 status collapsed
5624
5625 \begin_layout Plain Layout
5626 Shift-
5627 \end_layout
5628
5629 \end_inset
5630
5631  in combination with an accent, like 
5632 \begin_inset Quotes eld
5633 \end_inset
5634
5635
5636 \begin_inset Flex Noun
5637 status collapsed
5638
5639 \begin_layout Plain Layout
5640 ~
5641 \end_layout
5642
5643 \end_inset
5644
5645
5646 \begin_inset Quotes erd
5647 \end_inset
5648
5649  or 
5650 \begin_inset Quotes eld
5651 \end_inset
5652
5653
5654 \begin_inset Flex Noun
5655 status collapsed
5656
5657 \begin_layout Plain Layout
5658 ,
5659 \end_layout
5660
5661 \end_inset
5662
5663
5664 \begin_inset Quotes erd
5665 \end_inset
5666
5667  or 
5668 \begin_inset Quotes eld
5669 \end_inset
5670
5671
5672 \begin_inset Flex Noun
5673 status collapsed
5674
5675 \begin_layout Plain Layout
5676 ^
5677 \end_layout
5678
5679 \end_inset
5680
5681
5682 \begin_inset Quotes erd
5683 \end_inset
5684
5685 .
5686  Another way involves using 
5687 \begin_inset Flex Code
5688 status collapsed
5689
5690 \begin_layout Plain Layout
5691 xmodmap
5692 \end_layout
5693
5694 \end_inset
5695
5696  and 
5697 \begin_inset Flex Code
5698 status collapsed
5699
5700 \begin_layout Plain Layout
5701 xkeycaps
5702 \end_layout
5703
5704 \end_inset
5705
5706  to set up the special 
5707 \begin_inset Flex Code
5708 status collapsed
5709
5710 \begin_layout Plain Layout
5711 Mode_Switch
5712 \end_layout
5713
5714 \end_inset
5715
5716  key.
5717  The 
5718 \begin_inset Flex Code
5719 status collapsed
5720
5721 \begin_layout Plain Layout
5722 Mode_Switch
5723 \end_layout
5724
5725 \end_inset
5726
5727  acts in some ways just like 
5728 \begin_inset Flex Noun
5729 status collapsed
5730
5731 \begin_layout Plain Layout
5732 Shift
5733 \end_layout
5734
5735 \end_inset
5736
5737  and permits you to bind keys to accented characters.
5738  You can also turn keys into dead-keys by binding them to something like
5739  
5740 \begin_inset Flex Code
5741 status collapsed
5742
5743 \begin_layout Plain Layout
5744 usldead_cedilla
5745 \end_layout
5746
5747 \end_inset
5748
5749  and then binding this symbolic key to the corresponding \SpecialChar LyX
5750  command.
5751 \begin_inset Foot
5752 status collapsed
5753
5754 \begin_layout Plain Layout
5755 Note from 
5756 \noun on
5757 John Weiss
5758 \noun default
5759 : This is exactly what I do in my 
5760 \begin_inset Flex Code
5761 status collapsed
5762
5763 \begin_layout Plain Layout
5764 ~/.lyx/lyxrc
5765 \end_layout
5766
5767 \end_inset
5768
5769  and my 
5770 \begin_inset Flex Code
5771 status collapsed
5772
5773 \begin_layout Plain Layout
5774 ~/.xmodmap
5775 \end_layout
5776
5777 \end_inset
5778
5779  files.
5780  I have my 
5781 \begin_inset Flex Noun
5782 status collapsed
5783
5784 \begin_layout Plain Layout
5785 Scroll
5786 \begin_inset space ~
5787 \end_inset
5788
5789 Lock
5790 \end_layout
5791
5792 \end_inset
5793
5794  key set up as 
5795 \begin_inset Flex Code
5796 status collapsed
5797
5798 \begin_layout Plain Layout
5799 Mode_Shift
5800 \end_layout
5801
5802 \end_inset
5803
5804  and a bunch of these 
5805 \begin_inset Quotes eld
5806 \end_inset
5807
5808
5809 \begin_inset Flex Code
5810 status collapsed
5811
5812 \begin_layout Plain Layout
5813 usldead_*
5814 \end_layout
5815
5816 \end_inset
5817
5818
5819 \begin_inset Quotes erd
5820 \end_inset
5821
5822  symbolic keys bound such things as 
5823 \begin_inset Flex Noun
5824 status collapsed
5825
5826 \begin_layout Plain Layout
5827 Scroll
5828 \begin_inset space ~
5829 \end_inset
5830
5831 Lock-^
5832 \end_layout
5833
5834 \end_inset
5835
5836  and 
5837 \begin_inset Flex Noun
5838 status collapsed
5839
5840 \begin_layout Plain Layout
5841 Scroll
5842 \begin_inset space ~
5843 \end_inset
5844
5845 Lock-~
5846 \end_layout
5847
5848 \end_inset
5849
5850 .
5851  This is how I produce my accented characters.
5852 \end_layout
5853
5854 \end_inset
5855
5856  You can make just about anything into the 
5857 \begin_inset Flex Code
5858 status collapsed
5859
5860 \begin_layout Plain Layout
5861 Mode_Switch
5862 \end_layout
5863
5864 \end_inset
5865
5866  key: One of the 
5867 \begin_inset Flex Noun
5868 status collapsed
5869
5870 \begin_layout Plain Layout
5871 Ctrl-
5872 \end_layout
5873
5874 \end_inset
5875
5876  keys, a spare function key, etc.
5877  As for the \SpecialChar LyX
5878  commands that produce accents, check the entry for 
5879 \begin_inset Flex Code
5880 status collapsed
5881
5882 \begin_layout Plain Layout
5883 accent-acute
5884 \end_layout
5885
5886 \end_inset
5887
5888  in the 
5889 \emph on
5890 Reference Manual
5891 \emph default
5892 .
5893  You'll find the complete list there.
5894 \end_layout
5895
5896 \begin_layout Subsection
5897 Saving your Language Configuration
5898 \end_layout
5899
5900 \begin_layout Standard
5901 You can edit your preferences so that your desired language environment
5902  is automatically configured when \SpecialChar LyX
5903  starts up, via the 
5904 \begin_inset Flex Noun
5905 status collapsed
5906
5907 \begin_layout Plain Layout
5908 Edit\SpecialChar menuseparator
5909 Preferences
5910 \end_layout
5911
5912 \end_inset
5913
5914  dialog.
5915 \end_layout
5916
5917 \begin_layout Chapter
5918 Installing New Document Classes, Layouts, and Templates
5919 \begin_inset CommandInset label
5920 LatexCommand label
5921 name "cha:Installing-New-Document"
5922
5923 \end_inset
5924
5925
5926 \begin_inset Argument 1
5927 status collapsed
5928
5929 \begin_layout Plain Layout
5930 Installing New Document Classes
5931 \end_layout
5932
5933 \end_inset
5934
5935
5936 \end_layout
5937
5938 \begin_layout Standard
5939 In this chapter, we describe the procedures for creating and installing
5940  new \SpecialChar LyX
5941  layout and template files, as well as offer a refresher on correctly
5942  installing new \SpecialChar LaTeX
5943  document classes.
5944  
5945 \end_layout
5946
5947 \begin_layout Standard
5948 First, let us a say a few words about how one ought to think about the relation
5949  between \SpecialChar LyX
5950  and \SpecialChar LaTeX
5951 .
5952  The thing to understand is that, in a certain sense, \SpecialChar LyX
5953  doesn't know anything
5954  about \SpecialChar LaTeX
5955 .
5956  Indeed, from \SpecialChar LyX
5957 's point of view, \SpecialChar LaTeX
5958  is just one of several 
5959 \begin_inset Quotes eld
5960 \end_inset
5961
5962 backend formats
5963 \begin_inset Quotes erd
5964 \end_inset
5965
5966  in which it is capable of producing output.
5967  Other such formats are DocBook, plaintext, and XHTML.
5968  \SpecialChar LaTeX
5969  is, of course, a particularly important format, but very little of the
5970  information \SpecialChar LyX
5971  has about \SpecialChar LaTeX
5972  is actually contained in the program itself.
5973 \begin_inset Foot
5974 status collapsed
5975
5976 \begin_layout Plain Layout
5977 Some commands are sufficiently complex that they are 
5978 \begin_inset Quotes eld
5979 \end_inset
5980
5981 hardcoded
5982 \begin_inset Quotes erd
5983 \end_inset
5984
5985  into \SpecialChar LyX
5986 .
5987  But the developers generally regard this as a Bad Thing.
5988 \end_layout
5989
5990 \end_inset
5991
5992  Rather, that information, even for the standard classes like 
5993 \begin_inset Flex Code
5994 status collapsed
5995
5996 \begin_layout Plain Layout
5997 article.cls
5998 \end_layout
5999
6000 \end_inset
6001
6002 , is contained in `layout files'.
6003  Similarly, \SpecialChar LyX
6004  itself does not know much about DocBook or XHTML.
6005  What it knows is contained in layout files.
6006 \end_layout
6007
6008 \begin_layout Standard
6009 You can think of the layout file for a given document class as a translation
6010  manual between \SpecialChar LyX
6011  constructs—paragraphs with their corresponding styles,
6012  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6013 , DocBook, or XHTML
6014  constructs.
6015  Almost everything \SpecialChar LyX
6016  knows about 
6017 \begin_inset Flex Code
6018 status collapsed
6019
6020 \begin_layout Plain Layout
6021 article.cls
6022 \end_layout
6023
6024 \end_inset
6025
6026 , for example, is contained in the file 
6027 \begin_inset Flex Code
6028 status collapsed
6029
6030 \begin_layout Plain Layout
6031 article.layout
6032 \end_layout
6033
6034 \end_inset
6035
6036  and in various other files it includes.
6037  For this reason, anyone intending to write layout files should plan to
6038  study the existing files.
6039  A good place to start is with 
6040 \begin_inset Flex Code
6041 status collapsed
6042
6043 \begin_layout Plain Layout
6044 stdsections.inc
6045 \end_layout
6046
6047 \end_inset
6048
6049 , which is included in 
6050 \begin_inset Flex Code
6051 status collapsed
6052
6053 \begin_layout Plain Layout
6054 article.layout
6055 \end_layout
6056
6057 \end_inset
6058
6059
6060 \begin_inset Flex Code
6061 status collapsed
6062
6063 \begin_layout Plain Layout
6064 book.layout
6065 \end_layout
6066
6067 \end_inset
6068
6069 , and many of the other layout files for document classes.
6070  This file is where sections and the like are defined: 
6071 \begin_inset Flex Code
6072 status collapsed
6073
6074 \begin_layout Plain Layout
6075 stdsections.inc
6076 \end_layout
6077
6078 \end_inset
6079
6080  tells \SpecialChar LyX
6081  how paragraphs that are marked with the Section, Subsection, etc,
6082  styles can be translated into corresponding \SpecialChar LaTeX
6083 , DocBook, and XHTML commands
6084  and tags.
6085  The 
6086 \begin_inset Flex Code
6087 status collapsed
6088
6089 \begin_layout Plain Layout
6090 article.layout
6091 \end_layout
6092
6093 \end_inset
6094
6095  file basically just includes several of these 
6096 \begin_inset Flex Code
6097 status collapsed
6098
6099 \begin_layout Plain Layout
6100 std*.inc
6101 \end_layout
6102
6103 \end_inset
6104
6105  files.
6106 \end_layout
6107
6108 \begin_layout Standard
6109 Defining the \SpecialChar LyX
6110 –\SpecialChar LaTeX
6111  correspondence is not the only thing layout files do, though.
6112  Their other job is to define how the \SpecialChar LyX
6113  constructs themselves will appear
6114  on-screen.
6115  The fact that layout files have these two jobs is often a source of confusion,
6116  because they are completely separate.
6117  Telling \SpecialChar LyX
6118  how to translate a certain paragraph style into \SpecialChar LaTeX
6119  does not tell
6120  \SpecialChar LyX
6121  how to display it; conversely, telling \SpecialChar LyX
6122  how to display a certain paragraph
6123  style does not tell \SpecialChar LyX
6124  how to translate it into \SpecialChar LaTeX
6125  (let alone tell \SpecialChar LaTeX
6126  how to
6127  display it).
6128  So, in general, when you define a new \SpecialChar LyX
6129  construct, you must always do two
6130  quite separate things: (i)
6131 \begin_inset space ~
6132 \end_inset
6133
6134 tell \SpecialChar LyX
6135  how to translate it into \SpecialChar LaTeX
6136  and (ii)
6137 \begin_inset space ~
6138 \end_inset
6139
6140 tell \SpecialChar LyX
6141  how to display it.
6142 \end_layout
6143
6144 \begin_layout Standard
6145 Much the same is true, of course, as regards \SpecialChar LyX
6146 's other backend formats, though
6147  XHTML is in some ways different, because in that case \SpecialChar LyX
6148  
6149 \emph on
6150 is
6151 \emph default
6152  able, to some extent, to use information about how it should display a
6153  paragraph on the screen to output information (in the form of CSS) about
6154  how the paragraph should be displayed in a browser.
6155  Even in this case, however, the distinction between what \SpecialChar LyX
6156  does internally
6157  and how things are rendered externally remains in force, and the two can
6158  be controlled separately.
6159  See 
6160 \begin_inset CommandInset ref
6161 LatexCommand ref
6162 reference "sec:Tags-for-XHTML"
6163
6164 \end_inset
6165
6166  for the details.
6167 \end_layout
6168
6169 \begin_layout Section
6170 Installing new \SpecialChar LaTeX
6171  files
6172 \end_layout
6173
6174 \begin_layout Standard
6175 Some installations may not include a \SpecialChar LaTeX
6176  package or class file that you would
6177  like to use within \SpecialChar LyX
6178 .
6179  For example, you might need Foil\SpecialChar TeX
6180 , a package for preparing slides for overhead
6181  projectors.
6182  Modern \SpecialChar LaTeX
6183  distributions like \SpecialChar TeX
6184 Live (2008 or newer) or MiK\SpecialChar TeX
6185  provide a user interface
6186  for installing such packages.
6187  For example, with MiK\SpecialChar TeX
6188 , you start the program 
6189 \begin_inset Quotes eld
6190 \end_inset
6191
6192 Package
6193 \begin_inset space ~
6194 \end_inset
6195
6196 Manager
6197 \begin_inset Quotes erd
6198 \end_inset
6199
6200  to get a list of available packages.
6201  To install one of them, right click on it or use the corresponding toolbar
6202  button.
6203 \end_layout
6204
6205 \begin_layout Standard
6206 If your \SpecialChar LaTeX
6207  distribution does not provide such a `package manager', or if the
6208  package is not available from your distribution, then follow these steps
6209  to install it manually:
6210 \end_layout
6211
6212 \begin_layout Enumerate
6213 Get the package from 
6214 \begin_inset CommandInset href
6215 LatexCommand href
6216 name "CTAN"
6217 target "http://www.ctan.org/"
6218 literal "false"
6219
6220 \end_inset
6221
6222  or wherever.
6223 \end_layout
6224
6225 \begin_layout Enumerate
6226 If the package contains a file with the ending 
6227 \begin_inset Quotes eld
6228 \end_inset
6229
6230
6231 \begin_inset Flex Code
6232 status collapsed
6233
6234 \begin_layout Plain Layout
6235 .ins
6236 \end_layout
6237
6238 \end_inset
6239
6240
6241 \begin_inset Quotes erd
6242 \end_inset
6243
6244  (is the case for Foil\SpecialChar TeX
6245 ) then open a console, change to the folder of this
6246  file and execute the command 
6247 \begin_inset Flex Code
6248 status collapsed
6249
6250 \begin_layout Plain Layout
6251 latex foiltex.ins
6252 \end_layout
6253
6254 \end_inset
6255
6256 .
6257  You have now unpacked the package and have all files to install it.
6258  Most \SpecialChar LaTeX
6259 -packages are not packed and you can skip this step.
6260 \end_layout
6261
6262 \begin_layout Enumerate
6263 Now you need to decide if the package should be available for all users
6264  or only for you.
6265 \end_layout
6266
6267 \begin_deeper
6268 \begin_layout Enumerate
6269 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6270  for all users on your system, then install it in your `local' \SpecialChar TeX
6271  tree, otherwise
6272  install it in your own `user' \SpecialChar TeX
6273  tree.
6274  Where these trees should be created, if they do not already exist, depends
6275  on your system.
6276  To find this out, look in the file 
6277 \begin_inset Flex Code
6278 status collapsed
6279
6280 \begin_layout Plain Layout
6281 texmf.cnf
6282 \end_layout
6283
6284 \end_inset
6285
6286 .
6287 \begin_inset Foot
6288 status collapsed
6289
6290 \begin_layout Plain Layout
6291 This is usually in the directory 
6292 \begin_inset Flex Code
6293 status collapsed
6294
6295 \begin_layout Plain Layout
6296 $TEXMF/web2c
6297 \end_layout
6298
6299 \end_inset
6300
6301 , though you can execute the command 
6302 \begin_inset Flex Code
6303 status collapsed
6304
6305 \begin_layout Plain Layout
6306 kpsewhich texmf.cnf
6307 \end_layout
6308
6309 \end_inset
6310
6311  to locate it.
6312 \end_layout
6313
6314 \end_inset
6315
6316  The location of the `local' \SpecialChar TeX
6317  tree is defined by the 
6318 \begin_inset Flex Code
6319 status collapsed
6320
6321 \begin_layout Plain Layout
6322 TEXMFLOCAL
6323 \end_layout
6324
6325 \end_inset
6326
6327  variable; this is usually somewhere like 
6328 \begin_inset Flex Code
6329 status collapsed
6330
6331 \begin_layout Plain Layout
6332 /usr/local/share/texmf
6333 \end_layout
6334
6335 \end_inset
6336
6337  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6338 Live
6339  distribution.
6340  The location of the `user' \SpecialChar TeX
6341  tree is defined by 
6342 \begin_inset Flex Code
6343 status collapsed
6344
6345 \begin_layout Plain Layout
6346 TEXMFHOME
6347 \end_layout
6348
6349 \end_inset
6350
6351  and is commonly 
6352 \begin_inset Flex Code
6353 status collapsed
6354
6355 \begin_layout Plain Layout
6356 $HOME/texmf
6357 \end_layout
6358
6359 \end_inset
6360
6361  or 
6362 \begin_inset Flex Code
6363 status collapsed
6364
6365 \begin_layout Plain Layout
6366
6367 \family sans
6368 $HOME/.texliveXXXX
6369 \end_layout
6370
6371 \end_inset
6372
6373 .
6374  (If these variables are not predefined, you have to define them.) You'll
6375  probably need root permissions to create or modify the `local' tree, but
6376  not for your `user' tree.
6377 \begin_inset Newline newline
6378 \end_inset
6379
6380 In general, it is recommended to install in the user tree because your user
6381  will not be modified or even overwritten when you upgrade your system.
6382  It will typically also be backed up together with everything else when
6383  you backup your home directory (which, of course, you do on a regular basis).
6384 \end_layout
6385
6386 \begin_layout Enumerate
6387 On Windows, if you want the new package to be available for all users on
6388  your system, change to the folder where \SpecialChar LaTeX
6389  is installed and then change to
6390  the subfolder 
6391 \begin_inset Flex Code
6392 status collapsed
6393
6394 \begin_layout Plain Layout
6395 ~
6396 \backslash
6397 tex
6398 \backslash
6399 latex
6400 \end_layout
6401
6402 \end_inset
6403
6404 .
6405  (For MiK\SpecialChar TeX
6406 , this would be by default the folder 
6407 \begin_inset Flex Code
6408 status collapsed
6409
6410 \begin_layout Plain Layout
6411 ~:
6412 \backslash
6413 Programs
6414 \backslash
6415 MiKTeX
6416 \backslash
6417 tex
6418 \backslash
6419 latex
6420 \end_layout
6421
6422 \end_inset
6423
6424 .)
6425 \begin_inset Foot
6426 status collapsed
6427
6428 \begin_layout Plain Layout
6429 Note that this will be the correct path only on English installations.
6430  On a German one, it would be 
6431 \begin_inset Flex Code
6432 status collapsed
6433
6434 \begin_layout Plain Layout
6435 ~:
6436 \backslash
6437 Programme
6438 \backslash
6439 MiKTeX
6440 \backslash
6441 tex
6442 \backslash
6443 latex
6444 \end_layout
6445
6446 \end_inset
6447
6448 , and similarly for other languages.
6449 \end_layout
6450
6451 \end_inset
6452
6453  Create there a new folder 
6454 \begin_inset Flex Code
6455 status collapsed
6456
6457 \begin_layout Plain Layout
6458 foiltex
6459 \end_layout
6460
6461 \end_inset
6462
6463  and copy all files of the package into it.
6464  
6465 \begin_inset Newline newline
6466 \end_inset
6467
6468 If the package should only available for you or you don't have admin permissions
6469 , do the same, but in the local \SpecialChar LaTeX
6470  folder.
6471  E.
6472 \begin_inset space \thinspace{}
6473 \end_inset
6474
6475 g., for MiK\SpecialChar TeX
6476
6477 \begin_inset space ~
6478 \end_inset
6479
6480 2.8 under Windows XP, this would be the folder:
6481 \begin_inset Newline newline
6482 \end_inset
6483
6484
6485 \family sans
6486
6487 \begin_inset Flex Code
6488 status collapsed
6489
6490 \begin_layout Plain Layout
6491 ~:
6492 \backslash
6493 Documents and Settings
6494 \backslash
6495 <username>
6496 \backslash
6497 Application Data
6498 \backslash
6499
6500 \end_layout
6501
6502 \end_inset
6503
6504
6505 \begin_inset Newline newline
6506 \end_inset
6507
6508
6509 \family default
6510
6511 \begin_inset Phantom HPhantom
6512 status open
6513
6514 \begin_layout Plain Layout
6515
6516 \family sans
6517 ~:
6518 \backslash
6519
6520 \end_layout
6521
6522 \end_inset
6523
6524
6525 \begin_inset Flex Code
6526 status collapsed
6527
6528 \begin_layout Plain Layout
6529 MiKTeX
6530 \backslash
6531 2.8
6532 \backslash
6533 tex
6534 \backslash
6535 latex
6536 \end_layout
6537
6538 \end_inset
6539
6540
6541 \begin_inset Newline newline
6542 \end_inset
6543
6544 On Vista, it would be:
6545 \begin_inset Newline newline
6546 \end_inset
6547
6548
6549 \begin_inset Flex Code
6550 status collapsed
6551
6552 \begin_layout Plain Layout
6553 ~:
6554 \backslash
6555 Users
6556 \backslash
6557 <username>
6558 \backslash
6559 AppData
6560 \backslash
6561 Roaming
6562 \backslash
6563 2.8
6564 \backslash
6565 MiKTeX
6566 \backslash
6567 tex
6568 \backslash
6569 latex
6570 \end_layout
6571
6572 \end_inset
6573
6574
6575 \end_layout
6576
6577 \end_deeper
6578 \begin_layout Enumerate
6579 Now one only need to tell \SpecialChar LaTeX
6580  that there are new files.
6581  This depends on the used \SpecialChar LaTeX
6582 -Distribution:
6583 \end_layout
6584
6585 \begin_deeper
6586 \begin_layout Enumerate
6587 For \SpecialChar TeX
6588 Live execute the command 
6589 \begin_inset Flex Code
6590 status collapsed
6591
6592 \begin_layout Plain Layout
6593 texhash
6594 \end_layout
6595
6596 \end_inset
6597
6598  from a console.
6599  If you installed the package for all users, then you will probably need
6600  to have root permissions for that.
6601 \end_layout
6602
6603 \begin_layout Enumerate
6604 For MiK\SpecialChar TeX
6605 , if you have installed the package for all users, start the program
6606  
6607 \begin_inset Quotes eld
6608 \end_inset
6609
6610 Settings
6611 \begin_inset space ~
6612 \end_inset
6613
6614 (Admin)
6615 \begin_inset Quotes erd
6616 \end_inset
6617
6618  and press the button marked 
6619 \begin_inset Quotes eld
6620 \end_inset
6621
6622 Refresh FNDB
6623 \begin_inset Quotes erd
6624 \end_inset
6625
6626 .
6627  Otherwise start the program 
6628 \begin_inset Quotes eld
6629 \end_inset
6630
6631 Settings
6632 \begin_inset Quotes erd
6633 \end_inset
6634
6635  and do the same.
6636 \end_layout
6637
6638 \end_deeper
6639 \begin_layout Enumerate
6640 Finally, you need to tell \SpecialChar LyX
6641  that there are new packages available.
6642  So, in \SpecialChar LyX
6643 , use the menu 
6644 \begin_inset Flex Noun
6645 status collapsed
6646
6647 \begin_layout Plain Layout
6648 Tools
6649 \family sans
6650 \SpecialChar menuseparator
6651 Reconfigure
6652 \end_layout
6653
6654 \end_inset
6655
6656  and then restart \SpecialChar LyX
6657 .
6658 \end_layout
6659
6660 \begin_layout Standard
6661 Now the package is installed.
6662  In our example, the document class 
6663 \begin_inset Flex Code
6664 status collapsed
6665
6666 \begin_layout Plain Layout
6667 FoilTex
6668 \end_layout
6669
6670 \end_inset
6671
6672  will now be available under 
6673 \begin_inset Flex Noun
6674 status collapsed
6675
6676 \begin_layout Plain Layout
6677 Document\SpecialChar menuseparator
6678 Settings\SpecialChar menuseparator
6679 Document Class
6680 \end_layout
6681
6682 \end_inset
6683
6684  (in the 
6685 \begin_inset Quotes eld
6686 \end_inset
6687
6688 Presentations
6689 \begin_inset Quotes erd
6690 \end_inset
6691
6692  category).
6693  
6694 \end_layout
6695
6696 \begin_layout Standard
6697 If you would like to use a \SpecialChar LaTeX
6698  document class that is not even listed in the
6699  menu 
6700 \begin_inset Flex Noun
6701 status collapsed
6702
6703 \begin_layout Plain Layout
6704 Document\SpecialChar menuseparator
6705 Settings\SpecialChar menuseparator
6706 Document Class
6707 \end_layout
6708
6709 \end_inset
6710
6711 , then you need to create a `layout' file for it.
6712  That is the topic of the next section.
6713 \end_layout
6714
6715 \begin_layout Section
6716 Types of layout files
6717 \end_layout
6718
6719 \begin_layout Standard
6720 This section describes the various sorts of \SpecialChar LyX
6721  files that contain layout informati
6722 on.
6723  These files describe various paragraph and character styles, determining
6724  how \SpecialChar LyX
6725  should display them and how they should be translated into \SpecialChar LaTeX
6726 , DocBook,
6727  XHTML, or whatever output format is being used.
6728  
6729 \end_layout
6730
6731 \begin_layout Standard
6732 We shall try to provide a thorough description of the process of writing
6733  layout files here.
6734  However, there are so many different types of documents supported even
6735  by just \SpecialChar LaTeX
6736  that we can't hope to cover every different possibility or problem
6737  you might encounter.
6738  The \SpecialChar LyX
6739  users' list is frequented by people with lots of experience with layout
6740  design who are willing to share what they've learned, so please feel free
6741  to ask questions there.
6742 \end_layout
6743
6744 \begin_layout Standard
6745 As you prepare to write a new layout, it is extremely helpful to look at
6746  the layouts distributed with \SpecialChar LyX
6747 .
6748  If you write a \SpecialChar LyX
6749  layout for a \SpecialChar LaTeX
6750  document class that might also be used by
6751  others, or write a module that might be useful to others, then you should
6752  consider posting your layout to the 
6753 \begin_inset CommandInset href
6754 LatexCommand href
6755 name "layout section on the LyX wiki"
6756 target "https://wiki.lyx.org/Layouts/Layouts"
6757 literal "false"
6758
6759 \end_inset
6760
6761  or even to the \SpecialChar LyX
6762  developers' list, so that it might be included in \SpecialChar LyX
6763  itself.
6764 \begin_inset Foot
6765 status collapsed
6766
6767 \begin_layout Plain Layout
6768 Note that \SpecialChar LyX
6769  is licensed under the General Public License, so any material
6770  that is contributed to \SpecialChar LyX
6771  must be similarly licensed.
6772 \end_layout
6773
6774 \end_inset
6775
6776
6777 \end_layout
6778
6779 \begin_layout Subsection
6780 Layout modules
6781 \begin_inset CommandInset label
6782 LatexCommand label
6783 name "subsec:Layout-modules"
6784
6785 \end_inset
6786
6787
6788 \end_layout
6789
6790 \begin_layout Standard
6791 We have spoken to this point about `layout files'.
6792  But there are different sorts of files that contain layout information.
6793  Layout files, strictly so called, have the 
6794 \begin_inset Flex Code
6795 status collapsed
6796
6797 \begin_layout Plain Layout
6798 .layout
6799 \end_layout
6800
6801 \end_inset
6802
6803  extension and provide \SpecialChar LyX
6804  with information about document classes.
6805  Since \SpecialChar LyX
6806  1.6 layout information can also be contained in layout 
6807 \emph on
6808 modules
6809 \emph default
6810 , which have the 
6811 \begin_inset Flex Code
6812 status collapsed
6813
6814 \begin_layout Plain Layout
6815 .module
6816 \end_layout
6817
6818 \end_inset
6819
6820  extension.
6821  Modules are to \SpecialChar LaTeX
6822  packages much as layouts are to \SpecialChar LaTeX
6823  classes, and some modules—such
6824  as the 
6825 \begin_inset Flex Code
6826 status collapsed
6827
6828 \begin_layout Plain Layout
6829 endnotes
6830 \end_layout
6831
6832 \end_inset
6833
6834  module—specifically provide support for one package.
6835  In a sense, layout modules are similar to included
6836 \begin_inset Foot
6837 status collapsed
6838
6839 \begin_layout Plain Layout
6840 These can have any extension, but by convention have the 
6841 \begin_inset Flex Code
6842 status collapsed
6843
6844 \begin_layout Plain Layout
6845 .inc
6846 \end_layout
6847
6848 \end_inset
6849
6850  extension.
6851 \end_layout
6852
6853 \end_inset
6854
6855  files—files like 
6856 \begin_inset Flex Code
6857 status collapsed
6858
6859 \begin_layout Plain Layout
6860 stdsections.inc
6861 \end_layout
6862
6863 \end_inset
6864
6865 —in that modules are not specific to a given document class but may be used
6866  with many different classes.
6867  The difference is that using an included file with 
6868 \begin_inset Flex Code
6869 status collapsed
6870
6871 \begin_layout Plain Layout
6872 article.cls
6873 \end_layout
6874
6875 \end_inset
6876
6877  requires editing that file.
6878  Modules, by contrast, are selected in the 
6879 \begin_inset Flex Noun
6880 status collapsed
6881
6882 \begin_layout Plain Layout
6883 Document\SpecialChar menuseparator
6884 Settings
6885 \end_layout
6886
6887 \end_inset
6888
6889  dialog.
6890 \end_layout
6891
6892 \begin_layout Standard
6893 Building modules is the easiest way to get started with layout editing,
6894  since it can be as simple as adding a single new paragraph style or flex
6895  inset.
6896  But modules may, in principle, contain anything a layout file can contain.
6897 \end_layout
6898
6899 \begin_layout Standard
6900 After creating a new module and copying it to the 
6901 \begin_inset Flex Code
6902 status collapsed
6903
6904 \begin_layout Plain Layout
6905 layouts/
6906 \end_layout
6907
6908 \end_inset
6909
6910  folder, you will need to reconfigure and then restart \SpecialChar LyX
6911  for the module to
6912  appear in the menu.
6913  However, changes you make to the module will be seen immediately, if you
6914  open 
6915 \begin_inset Flex Noun
6916 status collapsed
6917
6918 \begin_layout Plain Layout
6919 Document\SpecialChar menuseparator
6920 Settings
6921 \end_layout
6922
6923 \end_inset
6924
6925 , highlight something, and then hit 
6926 \begin_inset Quotes eld
6927 \end_inset
6928
6929 OK
6930 \begin_inset Quotes erd
6931 \end_inset
6932
6933 .
6934  
6935 \emph on
6936 It is strongly recommended that you save your work before doing this
6937 \emph default
6938 .
6939  In fact, 
6940 \emph on
6941 it is strongly recommended that you not attempt to edit modules while simultaneo
6942 usly working on actual documents
6943 \emph default
6944 .
6945  Though of course the developers strive to keep \SpecialChar LyX
6946  stable in such situations,
6947  syntax errors and the like in your module file could cause strange behavior.
6948 \end_layout
6949
6950 \begin_layout Subsubsection
6951 Local Layout
6952 \end_layout
6953
6954 \begin_layout Standard
6955 Modules are to \SpecialChar LyX
6956  as packages are to \SpecialChar LaTeX
6957 .
6958  Sometimes, however, you find yourself wanting a specific inset or character
6959  style just for one document and writing a module that will also be available
6960  to other documents makes little sense.
6961  What you need is \SpecialChar LyX
6962 's 
6963 \begin_inset Quotes eld
6964 \end_inset
6965
6966 Local Layout
6967 \begin_inset Quotes erd
6968 \end_inset
6969
6970 .
6971 \end_layout
6972
6973 \begin_layout Standard
6974 You will find it under 
6975 \family sans
6976 Document\SpecialChar menuseparator
6977 Settings\SpecialChar menuseparator
6978 Local Layout
6979 \family default
6980 .
6981  The large text box allows you to enter anything that you might enter in
6982  a layout file or module.
6983  You can think of a document's local layout, in fact, as a module that belongs
6984  just to it.
6985  So, in particular, you must enter a 
6986 \begin_inset Flex Code
6987 status collapsed
6988
6989 \begin_layout Plain Layout
6990 Format
6991 \end_layout
6992
6993 \end_inset
6994
6995  tag.
6996  Any format is acceptable, but one would normally use the format current
6997  at the time.
6998  (In \SpecialChar LyX
6999  
7000 \begin_inset Info
7001 type  "lyxinfo"
7002 arg   "version"
7003 \end_inset
7004
7005 , the current layout format is 
7006 \begin_inset Info
7007 type  "lyxinfo"
7008 arg   "layoutformat"
7009 \end_inset
7010
7011 .)
7012 \end_layout
7013
7014 \begin_layout Standard
7015 When you have entered something in the 
7016 \begin_inset Flex Code
7017 status collapsed
7018
7019 \begin_layout Plain Layout
7020 Local Layout
7021 \end_layout
7022
7023 \end_inset
7024
7025  pane, \SpecialChar LyX
7026  will enable the 
7027 \begin_inset Quotes eld
7028 \end_inset
7029
7030 Validate
7031 \begin_inset Quotes erd
7032 \end_inset
7033
7034  button at the bottom.
7035  Clicking this button will cause \SpecialChar LyX
7036  to determine whether what you have entered
7037  is valid layout information for the chosen format.
7038  \SpecialChar LyX
7039  will report the result but, unfortunately, will not tell you what errors
7040  there might have been.
7041  These will be written to the terminal, however, if \SpecialChar LyX
7042  is started from a terminal.
7043  You will not be permitted to save your local layout until you have entered
7044  something valid.
7045 \end_layout
7046
7047 \begin_layout Standard
7048 The warnings at the end of the previous section apply here, too.
7049  Do not play with local layout while you are actually working, especially
7050  if you have not saved your document.
7051  That said, using local layout with a test document can be a very convenient
7052  way to try out layout ideas, or even to start developing a module.
7053 \end_layout
7054
7055 \begin_layout Subsection
7056 Layout for 
7057 \begin_inset Flex Noun
7058 status collapsed
7059
7060 \begin_layout Plain Layout
7061 .sty
7062 \end_layout
7063
7064 \end_inset
7065
7066  files
7067 \end_layout
7068
7069 \begin_layout Standard
7070 There are two situations you are likely to encounter when wanting to support
7071  a new \SpecialChar LaTeX
7072  document class, involving style (
7073 \begin_inset Flex Code
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 .sty
7078 \end_layout
7079
7080 \end_inset
7081
7082 ) files and \SpecialChar LaTeX2e
7083  class (
7084 \begin_inset Flex Code
7085 status collapsed
7086
7087 \begin_layout Plain Layout
7088 .cls
7089 \end_layout
7090
7091 \end_inset
7092
7093 ) .
7094  Supporting a style file is usually fairly easy.
7095  Supporting a new class file is a bit harder.
7096  We'll discuss the former in this section and the latter in the next.
7097  
7098 \change_deleted 5863208 1594239023
7099 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7100 \change_unchanged
7101
7102 \end_layout
7103
7104 \begin_layout Standard
7105 The easier case is the one in which your new document class is provided
7106  as a style file that is to be used in conjunction with an already supported
7107  document class.
7108  For the sake of the example, we'll assume that the style file is called
7109  
7110 \begin_inset Flex Noun
7111 status collapsed
7112
7113 \begin_layout Plain Layout
7114 myclass.sty
7115 \end_layout
7116
7117 \end_inset
7118
7119  and that it is meant to be used with 
7120 \begin_inset Flex Noun
7121 status collapsed
7122
7123 \begin_layout Plain Layout
7124 report.cls
7125 \end_layout
7126
7127 \end_inset
7128
7129 , which is a standard class.
7130  
7131 \end_layout
7132
7133 \begin_layout Standard
7134 Start by copying the existing class's layout file into your local directory:
7135 \begin_inset Foot
7136 status collapsed
7137
7138 \begin_layout Plain Layout
7139 Of course, which directory is your local directory will vary by platform,
7140  and \SpecialChar LyX
7141  allows you to specify your local directory on startup, too, using
7142  the 
7143 \begin_inset Flex Code
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 -userdir
7148 \end_layout
7149
7150 \end_inset
7151
7152  option.
7153 \end_layout
7154
7155 \end_inset
7156
7157
7158 \end_layout
7159
7160 \begin_layout LyX-Code
7161 cp report.layout ~/.lyx/layouts/myclass.layout
7162 \end_layout
7163
7164 \begin_layout Standard
7165 Then edit 
7166 \begin_inset Flex Code
7167 status collapsed
7168
7169 \begin_layout Plain Layout
7170 myclass.layout
7171 \end_layout
7172
7173 \end_inset
7174
7175  and change the line: 
7176 \end_layout
7177
7178 \begin_layout LyX-Code
7179
7180 \backslash
7181 DeclareLaTeXClass{Report (Standard Class)}
7182 \end_layout
7183
7184 \begin_layout Standard
7185 to read
7186 \end_layout
7187
7188 \begin_layout LyX-Code
7189
7190 \backslash
7191 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7192 \end_layout
7193
7194 \begin_layout Standard
7195 Then add:
7196 \end_layout
7197
7198 \begin_layout LyX-Code
7199 Preamble 
7200 \begin_inset Newline newline
7201 \end_inset
7202
7203     
7204 \backslash
7205 usepackage{myclass}
7206 \begin_inset Newline newline
7207 \end_inset
7208
7209 EndPreamble
7210 \end_layout
7211
7212 \begin_layout Standard
7213 near the top of the file.
7214 \end_layout
7215
7216 \begin_layout Standard
7217 Start \SpecialChar LyX
7218  and select 
7219 \begin_inset Flex Noun
7220 status collapsed
7221
7222 \begin_layout Plain Layout
7223 Tools\SpecialChar menuseparator
7224 Reconfigure
7225 \end_layout
7226
7227 \end_inset
7228
7229 .
7230  Then restart \SpecialChar LyX
7231  and try creating a new document.
7232  You should see "
7233 \begin_inset Flex Noun
7234 status collapsed
7235
7236 \begin_layout Plain Layout
7237 Report (My Class)
7238 \end_layout
7239
7240 \end_inset
7241
7242 " as a document class option in the 
7243 \begin_inset Flex Noun
7244 status collapsed
7245
7246 \begin_layout Plain Layout
7247 Document\SpecialChar menuseparator
7248 Settings
7249 \end_layout
7250
7251 \end_inset
7252
7253  dialog.
7254  It is likely that some of the sectioning commands and such in your new
7255  class will work differently from how they worked in the base class—
7256 \begin_inset Flex Code
7257 status collapsed
7258
7259 \begin_layout Plain Layout
7260 report
7261 \end_layout
7262
7263 \end_inset
7264
7265  in this example—so you can fiddle around with the settings for the different
7266  sections if you wish.
7267  The layout information for sections is contained in 
7268 \begin_inset Flex Code
7269 status collapsed
7270
7271 \begin_layout Plain Layout
7272 stdsections.inc
7273 \end_layout
7274
7275 \end_inset
7276
7277 , but you do not need to copy and change this file.
7278  Instead, you can simply add your changes to your layout file, after the
7279  line 
7280 \begin_inset Flex Code
7281 status collapsed
7282
7283 \begin_layout Plain Layout
7284 Input stdclass.inc
7285 \end_layout
7286
7287 \end_inset
7288
7289 , which itself includes 
7290 \begin_inset Flex Code
7291 status collapsed
7292
7293 \begin_layout Plain Layout
7294 stdsections.inc
7295 \end_layout
7296
7297 \end_inset
7298
7299 .
7300  For example, you might add these lines:
7301 \end_layout
7302
7303 \begin_layout LyX-Code
7304 Style Chapter
7305 \end_layout
7306
7307 \begin_layout LyX-Code
7308     Font
7309 \end_layout
7310
7311 \begin_layout LyX-Code
7312         Family Sans
7313 \end_layout
7314
7315 \begin_layout LyX-Code
7316     EndFont
7317 \end_layout
7318
7319 \begin_layout LyX-Code
7320 End
7321 \end_layout
7322
7323 \begin_layout Standard
7324 to change the font for chapter headings to sans-serif.
7325  This will override (or, in this case, add to) the existing declaration
7326  for the Chapter style.
7327  
7328 \end_layout
7329
7330 \begin_layout Standard
7331 Your new package may also provide commands or environments not present in
7332  the base class.
7333  In this case, you will want to add these to the layout file.
7334  See 
7335 \begin_inset CommandInset ref
7336 LatexCommand ref
7337 reference "sec:TextClass"
7338
7339 \end_inset
7340
7341  for information on how to do so.
7342 \end_layout
7343
7344 \begin_layout Standard
7345 If 
7346 \begin_inset Flex Noun
7347 status collapsed
7348
7349 \begin_layout Plain Layout
7350 myclass.sty
7351 \end_layout
7352
7353 \end_inset
7354
7355  can be used with several different document classes, and even if it cannot,
7356  you might find it easiest just to write a module that you can load with
7357  the base class.
7358  The simplest possible such module would be:
7359 \end_layout
7360
7361 \begin_layout LyX-Code
7362 #
7363 \backslash
7364 DeclareLyXModule{My Class} 
7365 \end_layout
7366
7367 \begin_layout LyX-Code
7368 #DescriptionBegin 
7369 \end_layout
7370
7371 \begin_layout LyX-Code
7372 #Support for myclass.sty.
7373 \end_layout
7374
7375 \begin_layout LyX-Code
7376 #DescriptionEnd
7377 \begin_inset Newline newline
7378 \end_inset
7379
7380
7381 \end_layout
7382
7383 \begin_layout LyX-Code
7384 Format 
7385 \begin_inset Info
7386 type  "lyxinfo"
7387 arg   "layoutformat"
7388 \end_inset
7389
7390
7391 \begin_inset Newline newline
7392 \end_inset
7393
7394
7395 \end_layout
7396
7397 \begin_layout LyX-Code
7398 Preamble
7399 \begin_inset Newline newline
7400 \end_inset
7401
7402     
7403 \backslash
7404 usepackage{myclass}
7405 \begin_inset Newline newline
7406 \end_inset
7407
7408 EndPreamble
7409 \end_layout
7410
7411 \begin_layout Standard
7412 A more complex module might modify the behavior of some existing constructs
7413  or define some new ones.
7414  Again, see 
7415 \begin_inset CommandInset ref
7416 LatexCommand ref
7417 reference "sec:TextClass"
7418
7419 \end_inset
7420
7421  for discussion.
7422 \end_layout
7423
7424 \begin_layout Subsection
7425 Layout for 
7426 \begin_inset Flex Noun
7427 status collapsed
7428
7429 \begin_layout Plain Layout
7430 .cls
7431 \end_layout
7432
7433 \end_inset
7434
7435  files
7436 \end_layout
7437
7438 \begin_layout Standard
7439 There are two possibilities here.
7440  One is that the class file is itself based upon an existing document class.
7441  For example, many thesis classes are based upon 
7442 \begin_inset Flex Noun
7443 status collapsed
7444
7445 \begin_layout Plain Layout
7446 book.cls
7447 \end_layout
7448
7449 \end_inset
7450
7451 .
7452  To see whether yours is, look for a line like
7453 \end_layout
7454
7455 \begin_layout LyX-Code
7456
7457 \backslash
7458 LoadClass{book}
7459 \end_layout
7460
7461 \begin_layout Standard
7462 in the file.
7463  If so, then you may proceed largely as in the previous section, though
7464  the 
7465 \begin_inset Flex Code
7466 status collapsed
7467
7468 \begin_layout Plain Layout
7469 Declare\SpecialChar LaTeX
7470 Class
7471 \end_layout
7472
7473 \end_inset
7474
7475  line will be different.
7476  If your new class is 
7477 \begin_inset Flex Code
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481 thesis
7482 \end_layout
7483
7484 \end_inset
7485
7486  and it is based upon 
7487 \begin_inset Flex Code
7488 status collapsed
7489
7490 \begin_layout Plain Layout
7491 book
7492 \end_layout
7493
7494 \end_inset
7495
7496 , then the line should read:
7497 \begin_inset Foot
7498 status collapsed
7499
7500 \begin_layout Plain Layout
7501 And it will be easiest if you save the file to 
7502 \begin_inset Flex Code
7503 status collapsed
7504
7505 \begin_layout Plain Layout
7506 thesis.layout
7507 \end_layout
7508
7509 \end_inset
7510
7511 : \SpecialChar LyX
7512  assumes that the document class has the same name as the layout file.
7513  
7514 \end_layout
7515
7516 \end_inset
7517
7518
7519 \end_layout
7520
7521 \begin_layout LyX-Code
7522
7523 \backslash
7524 DeclareLaTeXClass[thesis,book]{thesis}
7525 \end_layout
7526
7527 \begin_layout Standard
7528 If, on the other hand, the new class is not based upon an existing class,
7529  you will probably have to 
7530 \begin_inset Quotes eld
7531 \end_inset
7532
7533 roll your own
7534 \begin_inset Quotes erd
7535 \end_inset
7536
7537  layout.
7538  We strongly suggest copying an existing layout file which uses a similar
7539  \SpecialChar LaTeX
7540  class and then modifying it, if you can do so.
7541  At least use an existing file as a starting point so you can find out what
7542  items you need to worry about.
7543  Again, the specifics are covered below.
7544 \end_layout
7545
7546 \begin_layout Subsection
7547 Creating templates
7548 \begin_inset CommandInset label
7549 LatexCommand label
7550 name "subsec:Creating-Templates"
7551
7552 \end_inset
7553
7554
7555 \end_layout
7556
7557 \begin_layout Standard
7558 Once you have written a layout file for a new document class, you might
7559  want to consider writing a 
7560 \emph on
7561 template
7562 \emph default
7563  for it, too.
7564  A template acts as a kind of tutorial for your layout, showing how it might
7565  be used, though containing dummy content.
7566  You can of course look at the various templates included with \SpecialChar LyX
7567  for ideas.
7568 \end_layout
7569
7570 \begin_layout Standard
7571 Templates are created just like usual documents: using \SpecialChar LyX
7572 .
7573  The only difference is that usual documents contain all possible settings,
7574  including the font scheme and the paper size.
7575  Usually a user doesn't want a template to overwrite his preferred settings
7576  for such parameters.
7577  For that reason, the designer of a template should remove the corresponding
7578  commands like 
7579 \begin_inset Flex Code
7580 status collapsed
7581
7582 \begin_layout Plain Layout
7583
7584 \backslash
7585 font_roman
7586 \end_layout
7587
7588 \end_inset
7589
7590  or 
7591 \begin_inset Flex Code
7592 status collapsed
7593
7594 \begin_layout Plain Layout
7595
7596 \backslash
7597 papersize
7598 \end_layout
7599
7600 \end_inset
7601
7602  from the template \SpecialChar LyX
7603  file.
7604  This can be done with any simple text-editor, for example 
7605 \begin_inset Flex Code
7606 status collapsed
7607
7608 \begin_layout Plain Layout
7609 vi
7610 \end_layout
7611
7612 \end_inset
7613
7614  or 
7615 \begin_inset Flex Code
7616 status collapsed
7617
7618 \begin_layout Plain Layout
7619 notepad
7620 \end_layout
7621
7622 \end_inset
7623
7624 .
7625 \end_layout
7626
7627 \begin_layout Standard
7628 Put the edited template files you create in 
7629 \begin_inset Flex Code
7630 status collapsed
7631
7632 \begin_layout Plain Layout
7633 UserDir/templates/
7634 \end_layout
7635
7636 \end_inset
7637
7638 , copy the ones you use from the global template directory in 
7639 \begin_inset Flex Code
7640 status collapsed
7641
7642 \begin_layout Plain Layout
7643 LyXDir/templates/
7644 \end_layout
7645
7646 \end_inset
7647
7648  to the same place, and redefine the template path in the 
7649 \begin_inset Flex Noun
7650 status collapsed
7651
7652 \begin_layout Plain Layout
7653 Tools\SpecialChar menuseparator
7654 Preferences\SpecialChar menuseparator
7655 Paths
7656 \end_layout
7657
7658 \end_inset
7659
7660  dialog.
7661 \end_layout
7662
7663 \begin_layout Standard
7664 Note, by the way, that there is a template which has a particular meaning:
7665 \begin_inset Newline linebreak
7666 \end_inset
7667
7668
7669 \begin_inset Flex Code
7670 status collapsed
7671
7672 \begin_layout Plain Layout
7673 defaults.lyx
7674 \end_layout
7675
7676 \end_inset
7677
7678 .
7679  This template is loaded every time you create a new document with 
7680 \begin_inset Flex Noun
7681 status collapsed
7682
7683 \begin_layout Plain Layout
7684 File\SpecialChar menuseparator
7685 New
7686 \end_layout
7687
7688 \end_inset
7689
7690  in order to provide useful defaults.
7691  To create this template from inside \SpecialChar LyX
7692 , all you have to do is to open a document
7693  with the correct settings, and use the 
7694 \begin_inset Flex Noun
7695 status collapsed
7696
7697 \begin_layout Plain Layout
7698 Save as Document Defaults
7699 \end_layout
7700
7701 \end_inset
7702
7703  button.
7704 \end_layout
7705
7706 \begin_layout Subsection
7707 Upgrading old layout files
7708 \end_layout
7709
7710 \begin_layout Standard
7711 The format of layout files changes with each \SpecialChar LyX
7712  release, so old layout files
7713  need to be converted to the new format.
7714  If \SpecialChar LyX
7715  reads a layout file in an older format, it automatically calls the
7716  script 
7717 \begin_inset Flex Code
7718 status collapsed
7719
7720 \begin_layout Plain Layout
7721 layout2layout.py
7722 \end_layout
7723
7724 \end_inset
7725
7726  to convert it to a temporary file in current format.
7727  The original file is left untouched.
7728  If you use the layout file often, then, you may want to convert it permanently,
7729  so that \SpecialChar LyX
7730  does not have to do so itself every time.
7731  To do this, you can call the converter manually:
7732 \end_layout
7733
7734 \begin_layout Enumerate
7735 rename the file 
7736 \begin_inset Flex Code
7737 status collapsed
7738
7739 \begin_layout Plain Layout
7740 myclass.layout
7741 \end_layout
7742
7743 \end_inset
7744
7745  to 
7746 \begin_inset Flex Code
7747 status collapsed
7748
7749 \begin_layout Plain Layout
7750 myclass.old
7751 \end_layout
7752
7753 \end_inset
7754
7755
7756 \end_layout
7757
7758 \begin_layout Enumerate
7759 Call the command
7760 \begin_inset Newline newline
7761 \end_inset
7762
7763
7764 \begin_inset Flex Code
7765 status collapsed
7766
7767 \begin_layout Plain Layout
7768 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7769 \end_layout
7770
7771 \end_inset
7772
7773
7774 \begin_inset Newline newline
7775 \end_inset
7776
7777 where 
7778 \begin_inset Flex Code
7779 status collapsed
7780
7781 \begin_layout Plain Layout
7782 LyXDir
7783 \end_layout
7784
7785 \end_inset
7786
7787  is the name of your \SpecialChar LyX
7788  system directory.
7789 \end_layout
7790
7791 \begin_layout Standard
7792 Note that manual conversion does not affect included files, so these will
7793  have to be converted separately.
7794 \end_layout
7795
7796 \begin_layout Subsection
7797 \begin_inset CommandInset label
7798 LatexCommand label
7799 name "subsec:Cite-Engine-Files"
7800
7801 \end_inset
7802
7803 Cite engine files
7804 \end_layout
7805
7806 \begin_layout Standard
7807 A specific form of layout files are the so-called 
7808 \begin_inset Flex Code
7809 status collapsed
7810
7811 \begin_layout Plain Layout
7812 *.citeengine
7813 \end_layout
7814
7815 \end_inset
7816
7817  files that are located in the 
7818 \begin_inset Flex Code
7819 status collapsed
7820
7821 \begin_layout Plain Layout
7822 citeengines/
7823 \end_layout
7824
7825 \end_inset
7826
7827  sub-directory.
7828  Their purpose is to define the specifics of \SpecialChar LaTeX
7829  packages aimed at bibliography
7830  generation, such as 
7831 \family sans
7832 natbib
7833 \family default
7834 ,
7835 \family sans
7836  jurabib
7837 \family default
7838  or 
7839 \family sans
7840 biblatex
7841 \family default
7842 , but also the way how normal Bib\SpecialChar TeX
7843  citations (without additional packages)
7844  are handled in \SpecialChar LyX
7845  is defined in such a file.
7846  
7847 \end_layout
7848
7849 \begin_layout Standard
7850 More specifically, it is defined which packages \SpecialChar LyX
7851  needs to load, which citation
7852  commands are available, how these are to be displayed in \SpecialChar LyX
7853  (in the workarea,
7854  the dialogs, the context menus) as well as in the XHTML and plain text
7855  output.
7856  Furthermore, the files specify available style variants (author-year, numerical
7857 , etc.) and their specifics.
7858  The cite engine files are also used to generate the options that are available
7859  in 
7860 \family sans
7861 Document\SpecialChar menuseparator
7862 Settings\SpecialChar menuseparator
7863 Bibliography\SpecialChar menuseparator
7864 Style engine
7865 \family default
7866 .
7867 \end_layout
7868
7869 \begin_layout Standard
7870 Even though a cite engine file is essentially a normal layout file that
7871  could theoretically include any layout information, it usually primarily
7872  includes some specific parameters such as 
7873 \begin_inset Flex Code
7874 status collapsed
7875
7876 \begin_layout Plain Layout
7877 MaxCiteNames
7878 \end_layout
7879
7880 \end_inset
7881
7882
7883 \begin_inset Flex Code
7884 status collapsed
7885
7886 \begin_layout Plain Layout
7887 CiteFramework
7888 \end_layout
7889
7890 \end_inset
7891
7892
7893 \begin_inset Flex Code
7894 status collapsed
7895
7896 \begin_layout Plain Layout
7897 CiteEngine
7898 \end_layout
7899
7900 \end_inset
7901
7902  and 
7903 \begin_inset Flex Code
7904 status collapsed
7905
7906 \begin_layout Plain Layout
7907 CiteFormat
7908 \end_layout
7909
7910 \end_inset
7911
7912  blocks.
7913  The syntax of the latter two is described in 
7914 \begin_inset CommandInset ref
7915 LatexCommand ref
7916 reference "subsec:Citation-engine-description"
7917 plural "false"
7918 caps "false"
7919 noprefix "false"
7920
7921 \end_inset
7922
7923  and 
7924 \begin_inset CommandInset ref
7925 LatexCommand ref
7926 reference "subsec:Citation-format-description"
7927
7928 \end_inset
7929
7930 , as well as in the files themselves.
7931 \end_layout
7932
7933 \begin_layout Section
7934 \begin_inset CommandInset label
7935 LatexCommand label
7936 name "sec:TextClass"
7937
7938 \end_inset
7939
7940 The layout file format
7941 \end_layout
7942
7943 \begin_layout Standard
7944 The following sections describe how layout files are structured and written.
7945  Our advice is to go slowly, save and test often.
7946  It is really not that hard, except that the multitude of options can become
7947  overwhelming, especially if you try to check out too many at once.
7948  It becomes easier if you use existing layouts of \SpecialChar LyX
7949  as examples/reference
7950  or if you modify an existing layout to your needs.
7951 \end_layout
7952
7953 \begin_layout Standard
7954 Note that all the tags used in layout files are case-insensitive.
7955  This means that 
7956 \begin_inset Flex Code
7957 status collapsed
7958
7959 \begin_layout Plain Layout
7960 Style
7961 \end_layout
7962
7963 \end_inset
7964
7965
7966 \begin_inset Flex Code
7967 status collapsed
7968
7969 \begin_layout Plain Layout
7970 style
7971 \end_layout
7972
7973 \end_inset
7974
7975  and 
7976 \begin_inset Flex Code
7977 status collapsed
7978
7979 \begin_layout Plain Layout
7980 StYlE
7981 \end_layout
7982
7983 \end_inset
7984
7985  are really the same tag.
7986  The possible arguments are printed in brackets after the tag's name.
7987  The default argument is typeset 
7988 \begin_inset Flex Code
7989 status collapsed
7990
7991 \begin_layout Plain Layout
7992
7993 \emph on
7994 emphasized
7995 \end_layout
7996
7997 \end_inset
7998
7999 .
8000  If the argument has a data type like 
8001 \begin_inset Quotes eld
8002 \end_inset
8003
8004 string
8005 \begin_inset Quotes erd
8006 \end_inset
8007
8008  or 
8009 \begin_inset Quotes eld
8010 \end_inset
8011
8012 float
8013 \begin_inset Quotes erd
8014 \end_inset
8015
8016 , the default is shown like this: 
8017 \begin_inset Flex Code
8018 status collapsed
8019
8020 \begin_layout Plain Layout
8021 float=
8022 \emph on
8023 default
8024 \end_layout
8025
8026 \end_inset
8027
8028 .
8029 \end_layout
8030
8031 \begin_layout Subsection
8032 The document class declaration and classification
8033 \end_layout
8034
8035 \begin_layout Standard
8036 Lines in a layout file which begin with 
8037 \begin_inset Flex Code
8038 status collapsed
8039
8040 \begin_layout Plain Layout
8041 #
8042 \end_layout
8043
8044 \end_inset
8045
8046  are comments.
8047  There is one exception to this rule.
8048  All 
8049 \begin_inset Flex Code
8050 status collapsed
8051
8052 \begin_layout Plain Layout
8053 *.layout
8054 \end_layout
8055
8056 \end_inset
8057
8058  files should begin with lines like:
8059 \end_layout
8060
8061 \begin_layout LyX-Code
8062
8063 \size small
8064 #% Do not delete the line below; configure depends on this 
8065 \end_layout
8066
8067 \begin_layout LyX-Code
8068
8069 \size small
8070 #  
8071 \backslash
8072 DeclareLaTeXClass{Article (Standard Class)}
8073 \end_layout
8074
8075 \begin_layout LyX-Code
8076
8077 \size small
8078 #  
8079 \backslash
8080 DeclareCategory{Articles}
8081 \end_layout
8082
8083 \begin_layout Standard
8084 The second and third lines are used when you (re)configure \SpecialChar LyX
8085 .
8086  The layout file is read by the \SpecialChar LaTeX
8087  script 
8088 \begin_inset Flex Code
8089 status collapsed
8090
8091 \begin_layout Plain Layout
8092 chkconfig.ltx
8093 \end_layout
8094
8095 \end_inset
8096
8097 , in a special mode where 
8098 \begin_inset Flex Code
8099 status collapsed
8100
8101 \begin_layout Plain Layout
8102 #
8103 \end_layout
8104
8105 \end_inset
8106
8107  is ignored.
8108  The first line is just a \SpecialChar LaTeX
8109  comment, the second one contains the mandatory
8110  declaration of the text class and the third line contains the optional
8111  classification of the class.
8112  If these lines appear in a file named 
8113 \begin_inset Flex Code
8114 status collapsed
8115
8116 \begin_layout Plain Layout
8117 article.layout
8118 \end_layout
8119
8120 \end_inset
8121
8122 , then they define a text class of name 
8123 \begin_inset Flex Code
8124 status collapsed
8125
8126 \begin_layout Plain Layout
8127 article
8128 \end_layout
8129
8130 \end_inset
8131
8132  (the name of the layout file) which uses the \SpecialChar LaTeX
8133  document class 
8134 \begin_inset Flex Code
8135 status collapsed
8136
8137 \begin_layout Plain Layout
8138 article.cls
8139 \end_layout
8140
8141 \end_inset
8142
8143  (the default is to use the same name as the layout).
8144  The string 
8145 \begin_inset Quotes eld
8146 \end_inset
8147
8148 Article (Standard Class)
8149 \begin_inset Quotes erd
8150 \end_inset
8151
8152  that appears above is used as a description of the text class in the 
8153 \begin_inset Flex Noun
8154 status collapsed
8155
8156 \begin_layout Plain Layout
8157 Document\SpecialChar menuseparator
8158 Settings
8159 \end_layout
8160
8161 \end_inset
8162
8163  dialog.
8164  The category (
8165 \begin_inset Quotes eld
8166 \end_inset
8167
8168 Articles
8169 \begin_inset Quotes erd
8170 \end_inset
8171
8172  in the example) is also used in the 
8173 \begin_inset Flex Noun
8174 status collapsed
8175
8176 \begin_layout Plain Layout
8177 Document\SpecialChar menuseparator
8178 Settings
8179 \end_layout
8180
8181 \end_inset
8182
8183  dialog: the text classes are grouped by these categories (which are usually
8184  genres, so typical categories are 
8185 \begin_inset Quotes eld
8186 \end_inset
8187
8188 Articles
8189 \begin_inset Quotes erd
8190 \end_inset
8191
8192
8193 \begin_inset Quotes eld
8194 \end_inset
8195
8196 Books
8197 \begin_inset Quotes erd
8198 \end_inset
8199
8200
8201 \begin_inset Quotes eld
8202 \end_inset
8203
8204 Reports
8205 \begin_inset Quotes erd
8206 \end_inset
8207
8208
8209 \begin_inset Quotes eld
8210 \end_inset
8211
8212 Letters
8213 \begin_inset Quotes erd
8214 \end_inset
8215
8216
8217 \begin_inset Quotes eld
8218 \end_inset
8219
8220 Presentations
8221 \begin_inset Quotes erd
8222 \end_inset
8223
8224
8225 \begin_inset Quotes eld
8226 \end_inset
8227
8228 Curricula Vitae
8229 \begin_inset Quotes erd
8230 \end_inset
8231
8232  etc.).
8233  If no category has been declared, the class will be put in the 
8234 \begin_inset Quotes eld
8235 \end_inset
8236
8237 Uncategorized
8238 \begin_inset Quotes erd
8239 \end_inset
8240
8241  group.
8242 \end_layout
8243
8244 \begin_layout Standard
8245 Let's assume that you wrote your own text class that uses the 
8246 \begin_inset Flex Code
8247 status collapsed
8248
8249 \begin_layout Plain Layout
8250 article.cls
8251 \end_layout
8252
8253 \end_inset
8254
8255  document class, but where you changed the appearance of the section headings.
8256  If you put it in a file 
8257 \begin_inset Flex Code
8258 status collapsed
8259
8260 \begin_layout Plain Layout
8261 myarticle.layout
8262 \end_layout
8263
8264 \end_inset
8265
8266 , the header of this file should be:
8267 \end_layout
8268
8269 \begin_layout LyX-Code
8270
8271 \size small
8272 #% Do not delete the line below; configure depends on this 
8273 \end_layout
8274
8275 \begin_layout LyX-Code
8276
8277 \size small
8278 #  
8279 \backslash
8280 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8281 \end_layout
8282
8283 \begin_layout LyX-Code
8284
8285 \size small
8286 #  
8287 \backslash
8288 DeclareCategory{Articles}
8289 \end_layout
8290
8291 \begin_layout Standard
8292 This declares a text class 
8293 \begin_inset Flex Code
8294 status collapsed
8295
8296 \begin_layout Plain Layout
8297 myarticle
8298 \end_layout
8299
8300 \end_inset
8301
8302 , associated with the \SpecialChar LaTeX
8303  document class 
8304 \begin_inset Flex Code
8305 status collapsed
8306
8307 \begin_layout Plain Layout
8308 article.cls
8309 \end_layout
8310
8311 \end_inset
8312
8313  and described as 
8314 \begin_inset Quotes eld
8315 \end_inset
8316
8317 Article (with My Own Headings)
8318 \begin_inset Quotes erd
8319 \end_inset
8320
8321 .
8322  If your text class depends on several packages, you can declare it as:
8323 \end_layout
8324
8325 \begin_layout LyX-Code
8326
8327 \size small
8328 #% Do not delete the line below; configure depends on this 
8329 \end_layout
8330
8331 \begin_layout LyX-Code
8332
8333 \size small
8334 #  
8335 \backslash
8336 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8337 \end_layout
8338
8339 \begin_layout LyX-Code
8340
8341 \size small
8342 #  
8343 \backslash
8344 DeclareCategory{Articles}
8345 \end_layout
8346
8347 \begin_layout Standard
8348 This indicates that your text class uses the 
8349 \begin_inset Flex Code
8350 status collapsed
8351
8352 \begin_layout Plain Layout
8353 foo.sty
8354 \end_layout
8355
8356 \end_inset
8357
8358  package.
8359  
8360 \change_deleted 5863208 1594239179
8361 Finally, it is also possible to declare classes for DocBook code.
8362  Typical declarations will look like:
8363 \end_layout
8364
8365 \begin_layout LyX-Code
8366
8367 \change_deleted 5863208 1594239179
8368
8369 \size small
8370 #% Do not delete the line below; configure depends on this 
8371 \end_layout
8372
8373 \begin_layout LyX-Code
8374
8375 \change_deleted 5863208 1594239179
8376
8377 \size small
8378
8379 \backslash
8380 DeclareDocBookClass[article]{SGML (DocBook Article)}
8381 \end_layout
8382
8383 \begin_layout LyX-Code
8384
8385 \change_deleted 5863208 1594239179
8386
8387 \size small
8388
8389 \backslash
8390 DeclareCategory{Articles (DocBook)}
8391 \change_unchanged
8392
8393 \end_layout
8394
8395 \begin_layout Standard
8396 Note that these declarations can also be given an optional parameter declaring
8397  the name of the document class (but not a list).
8398 \end_layout
8399
8400 \begin_layout Standard
8401 So, to be as explicit as possible, the form of the layout declaration is:
8402 \end_layout
8403
8404 \begin_layout LyX-Code
8405
8406 \size small
8407 #  
8408 \backslash
8409 DeclareLaTeXClass[class,package.sty]{layout description}
8410 \end_layout
8411
8412 \begin_layout LyX-Code
8413
8414 \size small
8415 #  
8416 \backslash
8417 DeclareCategory{category}
8418 \end_layout
8419
8420 \begin_layout Standard
8421 The class need only be specified if the name of the \SpecialChar LaTeX
8422  class file and the
8423  name of the layout file are different or if there are packages to load.
8424  If the name of the class file is not specified, then \SpecialChar LyX
8425  will simply assume
8426  that it is the same as the name of the layout file.
8427 \end_layout
8428
8429 \begin_layout Standard
8430 When the text class has been modified to your taste, all you have to do
8431  is to copy it either to 
8432 \begin_inset Flex Code
8433 status collapsed
8434
8435 \begin_layout Plain Layout
8436 LyXDir/layouts/
8437 \end_layout
8438
8439 \end_inset
8440
8441  or to 
8442 \begin_inset Flex Code
8443 status collapsed
8444
8445 \begin_layout Plain Layout
8446 UserDir/layouts
8447 \end_layout
8448
8449 \end_inset
8450
8451 , run 
8452 \begin_inset Flex Noun
8453 status collapsed
8454
8455 \begin_layout Plain Layout
8456 Tools\SpecialChar menuseparator
8457 Reconfigure
8458 \end_layout
8459
8460 \end_inset
8461
8462 , exit \SpecialChar LyX
8463  and restart.
8464  Then your new text class should be available along with the others.
8465 \end_layout
8466
8467 \begin_layout Standard
8468 Once the layout file is installed, you can edit it and see your changes
8469  without having to reconfigure or to restart \SpecialChar LyX
8470 .
8471 \begin_inset Foot
8472 status collapsed
8473
8474 \begin_layout Plain Layout
8475 In versions of \SpecialChar LyX
8476  prior to 1.6, this was not true.
8477  As a result, editing layout files was very time consuming, since you had
8478  constantly to restart \SpecialChar LyX
8479  to see changes.
8480 \end_layout
8481
8482 \end_inset
8483
8484  You can force a reload of the current layout by using the \SpecialChar LyX
8485  function 
8486 \begin_inset Flex Noun
8487 status collapsed
8488
8489 \begin_layout Plain Layout
8490 layout-reload
8491 \end_layout
8492
8493 \end_inset
8494
8495 .
8496  There is no default binding for this function—though, of course, you can
8497  bind it to a key yourself.
8498  But you will normally use this function simply by entering it in the mini-buffe
8499 r.
8500  
8501 \end_layout
8502
8503 \begin_layout Standard
8504
8505 \emph on
8506 Warning
8507 \emph default
8508
8509 \begin_inset Flex Noun
8510 status collapsed
8511
8512 \begin_layout Plain Layout
8513 layout-reload
8514 \end_layout
8515
8516 \end_inset
8517
8518  is very much an `advanced feature'.
8519  It is 
8520 \emph on
8521 strongly
8522 \emph default
8523  recommended that you save your work before using this function.
8524  In fact, it is 
8525 \emph on
8526 strongly
8527 \emph default
8528  recommended that you not attempt to edit layout information while simultaneousl
8529 y working on a document that you care about.
8530  Use a test document.
8531  Syntax errors and the like in your layout file could cause peculiar behavior.
8532  In particular, such errors could cause \SpecialChar LyX
8533  to regard the current layout as
8534  invalid and to attempt to switch to some other layout.
8535 \begin_inset Foot
8536 status collapsed
8537
8538 \begin_layout Plain Layout
8539 Really bad syntax errors may even caused \SpecialChar LyX
8540  to exit.
8541  This is because certain sorts of errors may make \SpecialChar LyX
8542  unable to read 
8543 \emph on
8544 any
8545 \emph default
8546  layout information.
8547  Please be careful.
8548 \end_layout
8549
8550 \end_inset
8551
8552  The \SpecialChar LyX
8553  team strives to keep \SpecialChar LyX
8554  stable in such situations, but safe is better
8555  than sorry.
8556 \begin_inset Foot
8557 status collapsed
8558
8559 \begin_layout Plain Layout
8560 While we're giving advice: make regular backups.
8561  And be nice to your mother.
8562 \end_layout
8563
8564 \end_inset
8565
8566
8567 \end_layout
8568
8569 \begin_layout Subsection
8570 The Module declaration
8571 \end_layout
8572
8573 \begin_layout Standard
8574 A module must begin with a line like the following:
8575 \end_layout
8576
8577 \begin_layout LyX-Code
8578 #
8579 \backslash
8580 DeclareLyXModule[endnotes.sty]{Endnotes}
8581 \change_inserted -712698321 1554395911
8582
8583 \end_layout
8584
8585 \begin_layout LyX-Code
8586
8587 \change_inserted -712698321 1554395924
8588
8589 \size small
8590 #
8591 \backslash
8592 DeclareCategory{Foot- and Endnotes}
8593 \change_deleted -712698321 1554395911
8594
8595 \size default
8596  
8597 \change_unchanged
8598
8599 \end_layout
8600
8601 \begin_layout Standard
8602 The mandatory argument
8603 \change_inserted -712698321 1554395956
8604  of 
8605 \family typewriter
8606
8607 \backslash
8608 DeclareLyXModule
8609 \change_unchanged
8610
8611 \family default
8612 , in curly brackets, is the name of the module, as it should appear in 
8613 \begin_inset Flex Noun
8614 status collapsed
8615
8616 \begin_layout Plain Layout
8617 Document\SpecialChar menuseparator
8618 Settings\SpecialChar menuseparator
8619 Modules
8620 \end_layout
8621
8622 \end_inset
8623
8624 .
8625  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8626  packages
8627  on which the module depends.
8628  It is also possible to use the form 
8629 \begin_inset Flex Noun
8630 status collapsed
8631
8632 \begin_layout Plain Layout
8633 from->to
8634 \end_layout
8635
8636 \end_inset
8637
8638  as an optional argument, which declares that the module can only be used
8639  when there exists a conversion chain between the formats `
8640 \begin_inset Flex Code
8641 status collapsed
8642
8643 \begin_layout Plain Layout
8644 from
8645 \end_layout
8646
8647 \end_inset
8648
8649 ' and `
8650 \begin_inset Flex Code
8651 status collapsed
8652
8653 \begin_layout Plain Layout
8654 to
8655 \end_layout
8656
8657 \end_inset
8658
8659 '.
8660
8661 \change_inserted -712698321 1554396133
8662  The 
8663 \family typewriter
8664
8665 \backslash
8666 DeclareCategory
8667 \family default
8668  declaration is not strictly mandatory, but you should add it, since it
8669  is helpful to find the module.
8670  Please have a look at the existing module categories and if appropriate,
8671  use one of those.
8672 \change_unchanged
8673
8674 \end_layout
8675
8676 \begin_layout Standard
8677 The module 
8678 \change_inserted -712698321 1554395988
8679 and category 
8680 \change_unchanged
8681 declaration should then be followed by lines like the following:
8682 \begin_inset Foot
8683 status collapsed
8684
8685 \begin_layout Plain Layout
8686 Preferably in English if the module should be published with \SpecialChar LyX
8687 .
8688  This description will appear in the list of messages to be translated and
8689  will be thus translated with the next interface update.
8690 \end_layout
8691
8692 \end_inset
8693
8694
8695 \end_layout
8696
8697 \begin_layout LyX-Code
8698 #DescriptionBegin 
8699 \end_layout
8700
8701 \begin_layout LyX-Code
8702 #Adds an endnote command, in addition to footnotes.
8703  
8704 \end_layout
8705
8706 \begin_layout LyX-Code
8707 #You will need to add  
8708 \backslash
8709 theendnotes in TeX code where you 
8710 \end_layout
8711
8712 \begin_layout LyX-Code
8713 #want the endnotes to appear.
8714  
8715 \end_layout
8716
8717 \begin_layout LyX-Code
8718 #DescriptionEnd 
8719 \end_layout
8720
8721 \begin_layout LyX-Code
8722 #Requires: somemodule | othermodule
8723 \end_layout
8724
8725 \begin_layout LyX-Code
8726 #Excludes: badmodule
8727 \end_layout
8728
8729 \begin_layout Standard
8730 The description is used in 
8731 \begin_inset Flex Noun
8732 status collapsed
8733
8734 \begin_layout Plain Layout
8735 Document\SpecialChar menuseparator
8736 Settings\SpecialChar menuseparator
8737 Modules
8738 \end_layout
8739
8740 \end_inset
8741
8742  to provide the user with information about what the module does.
8743  The 
8744 \begin_inset Flex Code
8745 status collapsed
8746
8747 \begin_layout Plain Layout
8748 Requires
8749 \end_layout
8750
8751 \end_inset
8752
8753  line is used to identify other modules with which this one must be used;
8754  the 
8755 \begin_inset Flex Code
8756 status collapsed
8757
8758 \begin_layout Plain Layout
8759 Excludes
8760 \end_layout
8761
8762 \end_inset
8763
8764  line is used to identify modules with which this one may not be used.
8765  Both are optional, and, as shown, multiple modules should be separated
8766  with the pipe symbol: |.
8767  Note that the required modules are treated disjunctively: 
8768 \emph on
8769 at least one
8770 \emph default
8771  of the required modules must be used.
8772  Similarly, 
8773 \emph on
8774 no
8775 \emph default
8776  excluded module may be used.
8777  Note that modules are identified here by their filenames without the 
8778 \begin_inset Flex Code
8779 status collapsed
8780
8781 \begin_layout Plain Layout
8782 .module
8783 \end_layout
8784
8785 \end_inset
8786
8787  extension.
8788  So 
8789 \begin_inset Flex Code
8790 status collapsed
8791
8792 \begin_layout Plain Layout
8793 somemodule
8794 \end_layout
8795
8796 \end_inset
8797
8798  is really 
8799 \begin_inset Flex Code
8800 status collapsed
8801
8802 \begin_layout Plain Layout
8803 somemodule.module
8804 \end_layout
8805
8806 \end_inset
8807
8808 .
8809 \end_layout
8810
8811 \begin_layout Subsection
8812 The CiteEngine file declaration
8813 \end_layout
8814
8815 \begin_layout Standard
8816 A cite engine file must begin with a line like the following:
8817 \end_layout
8818
8819 \begin_layout LyX-Code
8820 #
8821 \backslash
8822 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8823 \end_layout
8824
8825 \begin_layout Standard
8826 The mandatory argument, in curly brackets, is the name of the cite style,
8827  as it should appear in 
8828 \begin_inset Flex Noun
8829 status collapsed
8830
8831 \begin_layout Plain Layout
8832 Document\SpecialChar menuseparator
8833 Settings\SpecialChar menuseparator
8834 Bibliography
8835 \end_layout
8836
8837 \end_inset
8838
8839 .
8840  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8841  packages
8842  on which the cite engine depends.
8843 \end_layout
8844
8845 \begin_layout Standard
8846 The cite engine declaration should then be followed by lines like the following:
8847 \begin_inset Foot
8848 status collapsed
8849
8850 \begin_layout Plain Layout
8851 Preferably in English if the module should be published with \SpecialChar LyX
8852 .
8853  This description will appear in the list of messages to be translated and
8854  will be thus translated with the next interface update.
8855 \end_layout
8856
8857 \end_inset
8858
8859
8860 \end_layout
8861
8862 \begin_layout LyX-Code
8863 # DescriptionBegin
8864 \end_layout
8865
8866 \begin_layout LyX-Code
8867 #   Biblatex supports many author-year and numerical styles.
8868 \end_layout
8869
8870 \begin_layout LyX-Code
8871 #   It is mainly aimed at the Humanities.
8872  It is highly
8873 \end_layout
8874
8875 \begin_layout LyX-Code
8876 #   customizable, fully localized and provides many features
8877 \end_layout
8878
8879 \begin_layout LyX-Code
8880 #   that are not possible with BibTeX.
8881  The use of 'biber' as
8882 \end_layout
8883
8884 \begin_layout LyX-Code
8885 #   bibliography processor is advised.
8886 \end_layout
8887
8888 \begin_layout LyX-Code
8889 # DescriptionEnd
8890 \end_layout
8891
8892 \begin_layout Standard
8893 The description is used in 
8894 \begin_inset Flex Noun
8895 status collapsed
8896
8897 \begin_layout Plain Layout
8898 Document\SpecialChar menuseparator
8899 Settings\SpecialChar menuseparator
8900 Bibliography
8901 \end_layout
8902
8903 \end_inset
8904
8905  to provide the user with information about the cite engine.
8906 \end_layout
8907
8908 \begin_layout Subsection
8909 Format number
8910 \end_layout
8911
8912 \begin_layout Standard
8913 The first non-comment line of any layout file, included file, or module
8914  
8915 \emph on
8916 must
8917 \emph default
8918  contain the file format number:
8919 \end_layout
8920
8921 \begin_layout Description
8922 \begin_inset Flex Code
8923 status collapsed
8924
8925 \begin_layout Plain Layout
8926 Format
8927 \end_layout
8928
8929 \end_inset
8930
8931  [
8932 \begin_inset Flex Code
8933 status collapsed
8934
8935 \begin_layout Plain Layout
8936 int
8937 \end_layout
8938
8939 \end_inset
8940
8941 ] The format number of the layout file.
8942 \end_layout
8943
8944 \begin_layout Standard
8945 This tag was introduced with \SpecialChar LyX
8946
8947 \begin_inset space ~
8948 \end_inset
8949
8950 1.4.0.
8951  Layout files from older \SpecialChar LyX
8952  versions do not have an explicit file format and
8953  are considered to have 
8954 \begin_inset Flex Code
8955 status collapsed
8956
8957 \begin_layout Plain Layout
8958 Format
8959 \begin_inset space ~
8960 \end_inset
8961
8962 1
8963 \end_layout
8964
8965 \end_inset
8966
8967 .
8968  The format for the present version of \SpecialChar LyX
8969  is format 60.
8970  But each version of \SpecialChar LyX
8971  is capable of reading earlier versions' layout files,
8972  just as they are capable of reading files produced by earlier versions
8973  of \SpecialChar LyX
8974 .
8975  There is, however, no provision for converting to earlier formats.
8976 \end_layout
8977
8978 \begin_layout Subsection
8979 \begin_inset CommandInset label
8980 LatexCommand label
8981 name "subsec:General-text-class"
8982
8983 \end_inset
8984
8985 General text class parameters
8986 \end_layout
8987
8988 \begin_layout Standard
8989 These are general parameters that govern the behavior of an entire document
8990  class.
8991  (This does 
8992 \emph on
8993 not
8994 \emph default
8995  mean that they must appear in 
8996 \begin_inset Flex Code
8997 status collapsed
8998
8999 \begin_layout Plain Layout
9000 .layout
9001 \end_layout
9002
9003 \end_inset
9004
9005  files rather than in modules.
9006  A module can contain any layout tag.)
9007 \end_layout
9008
9009 \begin_layout Description
9010
9011 \change_inserted -712698321 1526899478
9012 \begin_inset Flex Code
9013 status collapsed
9014
9015 \begin_layout Plain Layout
9016
9017 \change_inserted -712698321 1526898610
9018 AddToCiteEngine <engine>
9019 \change_unchanged
9020
9021 \end_layout
9022
9023 \end_inset
9024
9025  Extends the possibilities for displaying citation references.
9026  See 
9027 \begin_inset CommandInset ref
9028 LatexCommand ref
9029 reference "subsec:Citation-engine-description"
9030 plural "false"
9031 caps "false"
9032 noprefix "false"
9033
9034 \end_inset
9035
9036  for details.
9037  Must end with 
9038 \begin_inset Flex Code
9039 status collapsed
9040
9041 \begin_layout Plain Layout
9042
9043 \change_inserted -712698321 1526898823
9044 End
9045 \change_unchanged
9046
9047 \end_layout
9048
9049 \end_inset
9050
9051 .
9052 \end_layout
9053
9054 \begin_layout Description
9055 \begin_inset Flex Code
9056 status collapsed
9057
9058 \begin_layout Plain Layout
9059 AddToHTMLPreamble
9060 \end_layout
9061
9062 \end_inset
9063
9064  Adds information that will be output in the 
9065 \begin_inset Flex Code
9066 status collapsed
9067
9068 \begin_layout Plain Layout
9069 <head>
9070 \end_layout
9071
9072 \end_inset
9073
9074  block when the document is output to XHTML.
9075  Typically, this would be used to output CSS style information, but it can
9076  be used for anything that can appear in 
9077 \begin_inset Flex Code
9078 status collapsed
9079
9080 \begin_layout Plain Layout
9081 <head>
9082 \end_layout
9083
9084 \end_inset
9085
9086 .
9087  Must end with 
9088 \begin_inset Quotes eld
9089 \end_inset
9090
9091
9092 \begin_inset Flex Code
9093 status collapsed
9094
9095 \begin_layout Plain Layout
9096 EndPreamble
9097 \end_layout
9098
9099 \end_inset
9100
9101
9102 \begin_inset Quotes erd
9103 \end_inset
9104
9105 .
9106 \end_layout
9107
9108 \begin_layout Description
9109 \begin_inset Flex Code
9110 status collapsed
9111
9112 \begin_layout Plain Layout
9113 AddToPreamble
9114 \end_layout
9115
9116 \end_inset
9117
9118  Adds information to the document preamble.
9119  Must end with
9120 \begin_inset Newline newline
9121 \end_inset
9122
9123
9124 \begin_inset Quotes eld
9125 \end_inset
9126
9127
9128 \begin_inset Flex Code
9129 status collapsed
9130
9131 \begin_layout Plain Layout
9132 EndPreamble
9133 \end_layout
9134
9135 \end_inset
9136
9137
9138 \begin_inset Quotes erd
9139 \end_inset
9140
9141 .
9142 \change_inserted -712698321 1562592950
9143
9144 \end_layout
9145
9146 \begin_layout Description
9147
9148 \change_inserted -712698321 1562593040
9149 \begin_inset Flex Code
9150 status collapsed
9151
9152 \begin_layout Plain Layout
9153
9154 \change_inserted -712698321 1562592954
9155 BibInToc
9156 \change_unchanged
9157
9158 \end_layout
9159
9160 \end_inset
9161
9162  [
9163 \begin_inset Flex Code
9164 status collapsed
9165
9166 \begin_layout Plain Layout
9167
9168 \change_inserted -712698321 1562592950
9169
9170 \emph on
9171 0
9172 \change_unchanged
9173
9174 \end_layout
9175
9176 \end_inset
9177
9178 ,
9179 \begin_inset space \thinspace{}
9180 \end_inset
9181
9182
9183 \begin_inset Flex Code
9184 status collapsed
9185
9186 \begin_layout Plain Layout
9187
9188 \change_inserted -712698321 1562592950
9189 1
9190 \change_unchanged
9191
9192 \end_layout
9193
9194 \end_inset
9195
9196 ] If the document class adds the bibliography to the table of contents,
9197  add this option with value 
9198 \begin_inset Flex Code
9199 status collapsed
9200
9201 \begin_layout Plain Layout
9202
9203 \change_inserted -712698321 1562592996
9204 1
9205 \change_unchanged
9206
9207 \end_layout
9208
9209 \end_inset
9210
9211  (or 
9212 \begin_inset Flex Code
9213 status collapsed
9214
9215 \begin_layout Plain Layout
9216
9217 \change_inserted -712698321 1562593006
9218 true
9219 \change_unchanged
9220
9221 \end_layout
9222
9223 \end_inset
9224
9225 ).
9226  This prevents the bibliography from being added twice.
9227 \change_unchanged
9228
9229 \end_layout
9230
9231 \begin_layout Description
9232 \begin_inset Flex Code
9233 status collapsed
9234
9235 \begin_layout Plain Layout
9236 CiteEngine <engine>
9237 \end_layout
9238
9239 \end_inset
9240
9241  Defines the possibilities for displaying citation references.
9242  See 
9243 \begin_inset CommandInset ref
9244 LatexCommand ref
9245 reference "subsec:Citation-engine-description"
9246 plural "false"
9247 caps "false"
9248 noprefix "false"
9249
9250 \end_inset
9251
9252  for details.
9253  Must end with 
9254 \begin_inset Quotes eld
9255 \end_inset
9256
9257
9258 \begin_inset Flex Code
9259 status collapsed
9260
9261 \begin_layout Plain Layout
9262 End
9263 \end_layout
9264
9265 \end_inset
9266
9267
9268 \begin_inset Quotes erd
9269 \end_inset
9270
9271 .
9272  Primarily used in cite engine files (see 
9273 \begin_inset CommandInset ref
9274 LatexCommand ref
9275 reference "subsec:Cite-Engine-Files"
9276 plural "false"
9277 caps "false"
9278 noprefix "false"
9279
9280 \end_inset
9281
9282 ).
9283
9284 \change_inserted -712698321 1526898530
9285  Note that if you specify this in a layout file or module, any cite engine
9286  definition will be overridden.
9287  Also see 
9288 \begin_inset Flex Code
9289 status collapsed
9290
9291 \begin_layout Plain Layout
9292
9293 \change_inserted -712698321 1526898530
9294 AddToCiteEngine
9295 \change_unchanged
9296
9297 \end_layout
9298
9299 \end_inset
9300
9301 .
9302 \change_unchanged
9303
9304 \end_layout
9305
9306 \begin_layout Description
9307 \begin_inset Flex Code
9308 status collapsed
9309
9310 \begin_layout Plain Layout
9311 CiteFormat
9312 \end_layout
9313
9314 \end_inset
9315
9316  Defines formats for use in the display of bibliographic information.
9317  See 
9318 \begin_inset CommandInset ref
9319 LatexCommand ref
9320 reference "subsec:Citation-format-description"
9321
9322 \end_inset
9323
9324  for details.
9325  Must end with 
9326 \begin_inset Quotes eld
9327 \end_inset
9328
9329
9330 \begin_inset Flex Code
9331 status collapsed
9332
9333 \begin_layout Plain Layout
9334 End
9335 \end_layout
9336
9337 \end_inset
9338
9339
9340 \begin_inset Quotes erd
9341 \end_inset
9342
9343 .
9344  Primarily used in cite engine files (see 
9345 \begin_inset CommandInset ref
9346 LatexCommand ref
9347 reference "subsec:Cite-Engine-Files"
9348 plural "false"
9349 caps "false"
9350 noprefix "false"
9351
9352 \end_inset
9353
9354 ).
9355
9356 \change_inserted -712698321 1526898585
9357  A cite format defined in a layout or module will override the cite engine
9358  definition.
9359 \change_unchanged
9360
9361 \end_layout
9362
9363 \begin_layout Description
9364 \begin_inset Flex Code
9365 status collapsed
9366
9367 \begin_layout Plain Layout
9368 CiteFramework
9369 \end_layout
9370
9371 \end_inset
9372
9373  [
9374 \begin_inset Flex Code
9375 status collapsed
9376
9377 \begin_layout Plain Layout
9378
9379 \emph on
9380 bibtex
9381 \end_layout
9382
9383 \end_inset
9384
9385 ,
9386 \begin_inset Flex Code
9387 status collapsed
9388
9389 \begin_layout Plain Layout
9390 biblatex
9391 \end_layout
9392
9393 \end_inset
9394
9395 ] Determines whether 
9396 \family sans
9397 Biblatex
9398 \family default
9399  or Bib\SpecialChar TeX
9400  is used to generate a Bibliography.
9401  Primarily used in cite engine files (see 
9402 \begin_inset CommandInset ref
9403 LatexCommand ref
9404 reference "subsec:Cite-Engine-Files"
9405 plural "false"
9406 caps "false"
9407 noprefix "false"
9408
9409 \end_inset
9410
9411 ).
9412 \end_layout
9413
9414 \begin_layout Description
9415 \begin_inset Flex Code
9416 status collapsed
9417
9418 \begin_layout Plain Layout
9419 ClassOptions
9420 \end_layout
9421
9422 \end_inset
9423
9424  Describes various global options supported by the document class.
9425  See 
9426 \begin_inset CommandInset ref
9427 LatexCommand ref
9428 reference "subsec:ClassOptions"
9429
9430 \end_inset
9431
9432  for a description.
9433  Must end with 
9434 \begin_inset Quotes eld
9435 \end_inset
9436
9437
9438 \begin_inset Flex Code
9439 status collapsed
9440
9441 \begin_layout Plain Layout
9442 End
9443 \end_layout
9444
9445 \end_inset
9446
9447
9448 \begin_inset Quotes erd
9449 \end_inset
9450
9451 .
9452 \end_layout
9453
9454 \begin_layout Description
9455 \begin_inset Flex Code
9456 status collapsed
9457
9458 \begin_layout Plain Layout
9459 Columns
9460 \end_layout
9461
9462 \end_inset
9463
9464  [
9465 \begin_inset Flex Code
9466 status collapsed
9467
9468 \begin_layout Plain Layout
9469
9470 \emph on
9471 1
9472 \end_layout
9473
9474 \end_inset
9475
9476 ,
9477 \begin_inset space \thinspace{}
9478 \end_inset
9479
9480
9481 \begin_inset Flex Code
9482 status collapsed
9483
9484 \begin_layout Plain Layout
9485 2
9486 \end_layout
9487
9488 \end_inset
9489
9490 ] Whether the class should 
9491 \emph on
9492 default
9493 \emph default
9494  to having one or two columns.
9495  Can be changed in the 
9496 \begin_inset Flex Noun
9497 status collapsed
9498
9499 \begin_layout Plain Layout
9500 Document\SpecialChar menuseparator
9501 Settings
9502 \end_layout
9503
9504 \end_inset
9505
9506  dialog.
9507 \end_layout
9508
9509 \begin_layout Description
9510 \begin_inset Flex Code
9511 status collapsed
9512
9513 \begin_layout Plain Layout
9514 Counter
9515 \end_layout
9516
9517 \end_inset
9518
9519  [
9520 \begin_inset Flex Code
9521 status collapsed
9522
9523 \begin_layout Plain Layout
9524 string
9525 \end_layout
9526
9527 \end_inset
9528
9529 ] This sequence defines the properties for a counter.
9530  If the counter does not yet exist, it is created; if it does exist, it
9531  is modified.
9532  Must end with 
9533 \begin_inset Quotes eld
9534 \end_inset
9535
9536
9537 \begin_inset Flex Code
9538 status collapsed
9539
9540 \begin_layout Plain Layout
9541 End
9542 \end_layout
9543
9544 \end_inset
9545
9546
9547 \begin_inset Quotes erd
9548 \end_inset
9549
9550 .
9551 \begin_inset Newline newline
9552 \end_inset
9553
9554 See 
9555 \begin_inset CommandInset ref
9556 LatexCommand ref
9557 reference "subsec:Counters"
9558
9559 \end_inset
9560
9561  for details on counters.
9562 \end_layout
9563
9564 \begin_layout Description
9565 \begin_inset Flex Code
9566 status collapsed
9567
9568 \begin_layout Plain Layout
9569 DefaultFont
9570 \end_layout
9571
9572 \end_inset
9573
9574  Sets the default font used to display the document.
9575  See 
9576 \begin_inset CommandInset ref
9577 LatexCommand ref
9578 reference "subsec:Font-description"
9579
9580 \end_inset
9581
9582  for how to declare fonts.
9583  Must end with 
9584 \begin_inset Quotes eld
9585 \end_inset
9586
9587
9588 \begin_inset Flex Code
9589 status collapsed
9590
9591 \begin_layout Plain Layout
9592 EndFont
9593 \end_layout
9594
9595 \end_inset
9596
9597
9598 \begin_inset Quotes erd
9599 \end_inset
9600
9601 .
9602 \end_layout
9603
9604 \begin_layout Description
9605 \begin_inset Flex Code
9606 status collapsed
9607
9608 \begin_layout Plain Layout
9609 DefaultModule
9610 \end_layout
9611
9612 \end_inset
9613
9614  [
9615 \begin_inset Flex Code
9616 status collapsed
9617
9618 \begin_layout Plain Layout
9619 <module>
9620 \end_layout
9621
9622 \end_inset
9623
9624 ] Specifies a module to be included by default with this document class.
9625  The module is specified as filename without the 
9626 \begin_inset Flex Code
9627 status collapsed
9628
9629 \begin_layout Plain Layout
9630 .module
9631 \end_layout
9632
9633 \end_inset
9634
9635  extension.
9636  The user can still remove the module, but it will be active at the outset.
9637  (This applies only when new files are created, or when this class is chosen
9638  for an existing document.)
9639 \end_layout
9640
9641 \begin_layout Description
9642 \begin_inset Flex Code
9643 status collapsed
9644
9645 \begin_layout Plain Layout
9646 DefaultStyle
9647 \end_layout
9648
9649 \end_inset
9650
9651  [
9652 \begin_inset Flex Code
9653 status collapsed
9654
9655 \begin_layout Plain Layout
9656 <style>
9657 \end_layout
9658
9659 \end_inset
9660
9661 ] This is the style that will be assigned to new paragraphs, usually 
9662 \begin_inset Flex Noun
9663 status collapsed
9664
9665 \begin_layout Plain Layout
9666 Standard
9667 \end_layout
9668
9669 \end_inset
9670
9671 .
9672  This will default to the first defined style if not given, but you are
9673  encouraged to use this directive.
9674 \end_layout
9675
9676 \begin_layout Description
9677
9678 \change_inserted -970929547 1515112870
9679 \begin_inset Flex Code
9680 status collapsed
9681
9682 \begin_layout Plain Layout
9683
9684 \change_inserted -970929547 1515112782
9685 DocBookRoot
9686 \change_unchanged
9687
9688 \end_layout
9689
9690 \end_inset
9691
9692  [
9693 \begin_inset Flex Code
9694 status collapsed
9695
9696 \begin_layout Plain Layout
9697
9698 \change_inserted -970929547 1515112766
9699 string
9700 \change_unchanged
9701
9702 \end_layout
9703
9704 \end_inset
9705
9706 ] The root element (at the top of the document) to use when outputting documents
9707  with this class in DocBook.
9708  The default value is 
9709 \begin_inset Quotes eld
9710 \end_inset
9711
9712
9713 \begin_inset Flex Code
9714 status collapsed
9715
9716 \begin_layout Plain Layout
9717
9718 \change_inserted -970929547 1515112845
9719 article
9720 \change_unchanged
9721
9722 \end_layout
9723
9724 \end_inset
9725
9726
9727 \begin_inset Quotes erd
9728 \end_inset
9729
9730 .
9731
9732 \change_deleted 1075283030 1594226862
9733  
9734 \change_inserted 1075283030 1594226777
9735
9736 \end_layout
9737
9738 \begin_layout Description
9739
9740 \change_inserted 1075283030 1594226859
9741 \begin_inset Flex Code
9742 status collapsed
9743
9744 \begin_layout Plain Layout
9745
9746 \change_inserted 1075283030 1594226785
9747 DocBookForceAbstract
9748 \change_unchanged
9749
9750 \end_layout
9751
9752 \end_inset
9753
9754  [
9755 \begin_inset Flex Code
9756 status collapsed
9757
9758 \begin_layout Plain Layout
9759
9760 \change_inserted 1075283030 1594226804
9761 boolean
9762 \change_unchanged
9763
9764 \end_layout
9765
9766 \end_inset
9767
9768 ] If 
9769 \begin_inset Quotes eld
9770 \end_inset
9771
9772
9773 \family typewriter
9774 true
9775 \family default
9776
9777 \begin_inset Quotes erd
9778 \end_inset
9779
9780 , the root element will always have an 
9781 \family typewriter
9782 <abstract>
9783 \family default
9784  tag.
9785  The default value is 
9786 \begin_inset Quotes eld
9787 \end_inset
9788
9789
9790 \family typewriter
9791 false
9792 \family default
9793
9794 \begin_inset Quotes erd
9795 \end_inset
9796
9797 .
9798 \change_unchanged
9799
9800 \end_layout
9801
9802 \begin_layout Description
9803 \begin_inset Flex Code
9804 status collapsed
9805
9806 \begin_layout Plain Layout
9807 ExcludesModule
9808 \end_layout
9809
9810 \end_inset
9811
9812  [
9813 \begin_inset Flex Code
9814 status collapsed
9815
9816 \begin_layout Plain Layout
9817 <module>
9818 \end_layout
9819
9820 \end_inset
9821
9822 ] This tag indicates that the module (which is specified by filename without
9823  the 
9824 \begin_inset Flex Code
9825 status collapsed
9826
9827 \begin_layout Plain Layout
9828 .module
9829 \end_layout
9830
9831 \end_inset
9832
9833  extension) cannot be used with this document class.
9834  This might be used in a journal-specific layout file to prevent, say, the
9835  use of the 
9836 \begin_inset Flex Code
9837 status collapsed
9838
9839 \begin_layout Plain Layout
9840 theorems-sec
9841 \end_layout
9842
9843 \end_inset
9844
9845  module that numbers theorems by section.
9846  This tag may 
9847 \emph on
9848 not
9849 \emph default
9850  be used in a module.
9851  Modules have their own way of excluding other modules (see 
9852 \begin_inset CommandInset ref
9853 LatexCommand ref
9854 reference "subsec:Layout-modules"
9855
9856 \end_inset
9857
9858 ).
9859 \end_layout
9860
9861 \begin_layout Description
9862 \begin_inset Flex Code
9863 status collapsed
9864
9865 \begin_layout Plain Layout
9866 Float
9867 \end_layout
9868
9869 \end_inset
9870
9871  Defines a new float.
9872  See 
9873 \begin_inset CommandInset ref
9874 LatexCommand ref
9875 reference "subsec:Floats"
9876
9877 \end_inset
9878
9879  for details.
9880  Must end with 
9881 \begin_inset Quotes eld
9882 \end_inset
9883
9884
9885 \begin_inset Flex Code
9886 status collapsed
9887
9888 \begin_layout Plain Layout
9889 End
9890 \end_layout
9891
9892 \end_inset
9893
9894
9895 \begin_inset Quotes erd
9896 \end_inset
9897
9898 .
9899 \end_layout
9900
9901 \begin_layout Description
9902 \begin_inset Flex Code
9903 status collapsed
9904
9905 \begin_layout Plain Layout
9906 HTMLPreamble
9907 \end_layout
9908
9909 \end_inset
9910
9911  Sets the information that will be output in the 
9912 \begin_inset Flex Code
9913 status collapsed
9914
9915 \begin_layout Plain Layout
9916 <head>
9917 \end_layout
9918
9919 \end_inset
9920
9921  block when this document class is output to XHTML.
9922  Note that this will completely override any prior 
9923 \begin_inset Flex Code
9924 status collapsed
9925
9926 \begin_layout Plain Layout
9927 HTMLPreamble
9928 \end_layout
9929
9930 \end_inset
9931
9932  or 
9933 \begin_inset Flex Code
9934 status collapsed
9935
9936 \begin_layout Plain Layout
9937 AddToHTMLPreamble
9938 \end_layout
9939
9940 \end_inset
9941
9942  declarations.
9943  (Use
9944 \begin_inset Newline newline
9945 \end_inset
9946
9947
9948 \begin_inset Flex Code
9949 status collapsed
9950
9951 \begin_layout Plain Layout
9952 AddToHTMLPreamble
9953 \end_layout
9954
9955 \end_inset
9956
9957  if you just want to add material to the preamble.) Must end with 
9958 \begin_inset Quotes eld
9959 \end_inset
9960
9961
9962 \begin_inset Flex Code
9963 status collapsed
9964
9965 \begin_layout Plain Layout
9966 EndPreamble
9967 \end_layout
9968
9969 \end_inset
9970
9971
9972 \begin_inset Quotes erd
9973 \end_inset
9974
9975 .
9976 \end_layout
9977
9978 \begin_layout Description
9979 \begin_inset Flex Code
9980 status collapsed
9981
9982 \begin_layout Plain Layout
9983 HTMLTOCSection
9984 \end_layout
9985
9986 \end_inset
9987
9988  [
9989 \begin_inset Flex Code
9990 status collapsed
9991
9992 \begin_layout Plain Layout
9993 <style>
9994 \end_layout
9995
9996 \end_inset
9997
9998 ] The style to use for the table of contents, bibliography, and so forth,
9999  when the document is output to HTML.
10000  For articles, this should normally be 
10001 \begin_inset Flex Code
10002 status collapsed
10003
10004 \begin_layout Plain Layout
10005 Section
10006 \end_layout
10007
10008 \end_inset
10009
10010 ; for books 
10011 \begin_inset Flex Code
10012 status collapsed
10013
10014 \begin_layout Plain Layout
10015 Chapter
10016 \end_layout
10017
10018 \end_inset
10019
10020 .
10021  If it is not given, then \SpecialChar LyX
10022  will attempt to figure out which layout to use.
10023 \end_layout
10024
10025 \begin_layout Description
10026 \begin_inset Flex Code
10027 status collapsed
10028
10029 \begin_layout Plain Layout
10030 IfCounter
10031 \end_layout
10032
10033 \end_inset
10034
10035  [
10036 \begin_inset Flex Code
10037 status collapsed
10038
10039 \begin_layout Plain Layout
10040 <counter>
10041 \end_layout
10042
10043 \end_inset
10044
10045 ] Modifies the properties of the given counter.
10046  If the counter does not exist, the statement is ignored.
10047  Must end with 
10048 \begin_inset Quotes eld
10049 \end_inset
10050
10051
10052 \begin_inset Flex Code
10053 status collapsed
10054
10055 \begin_layout Plain Layout
10056 End
10057 \end_layout
10058
10059 \end_inset
10060
10061
10062 \begin_inset Quotes erd
10063 \end_inset
10064
10065 .
10066 \begin_inset Newline newline
10067 \end_inset
10068
10069 See 
10070 \begin_inset CommandInset ref
10071 LatexCommand ref
10072 reference "subsec:Counters"
10073
10074 \end_inset
10075
10076  for details on counters.
10077 \end_layout
10078
10079 \begin_layout Description
10080 \begin_inset Flex Code
10081 status collapsed
10082
10083 \begin_layout Plain Layout
10084 Input
10085 \end_layout
10086
10087 \end_inset
10088
10089  [
10090 \begin_inset Flex Code
10091 status collapsed
10092
10093 \begin_layout Plain Layout
10094 <filename>
10095 \end_layout
10096
10097 \end_inset
10098
10099 ] This allows you to include another layout definition file within yours
10100  to avoid duplicating commands.
10101  Common examples are the standard layout files, for example, 
10102 \begin_inset Flex Code
10103 status collapsed
10104
10105 \begin_layout Plain Layout
10106 stdclass.inc
10107 \end_layout
10108
10109 \end_inset
10110
10111 , which contains most of the basic layouts.
10112 \end_layout
10113
10114 \begin_layout Description
10115 \begin_inset Flex Code
10116 status collapsed
10117
10118 \begin_layout Plain Layout
10119 InsetLayout
10120 \end_layout
10121
10122 \end_inset
10123
10124  [
10125 \begin_inset Flex Code
10126 status collapsed
10127
10128 \begin_layout Plain Layout
10129 <type>
10130 \end_layout
10131
10132 \end_inset
10133
10134 ] This section (re-)defines the layout of an inset.
10135  It can be applied to an existing inset or to a new, user-defined inset,
10136  e.g., a new character style.
10137  Must end with 
10138 \begin_inset Quotes eld
10139 \end_inset
10140
10141
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 End
10147 \end_layout
10148
10149 \end_inset
10150
10151
10152 \begin_inset Quotes erd
10153 \end_inset
10154
10155 .
10156 \begin_inset Newline newline
10157 \end_inset
10158
10159 See 
10160 \begin_inset CommandInset ref
10161 LatexCommand ref
10162 reference "subsec:Flex-insets-and"
10163
10164 \end_inset
10165
10166  for more information.
10167  
10168 \end_layout
10169
10170 \begin_layout Description
10171 \begin_inset Flex Code
10172 status collapsed
10173
10174 \begin_layout Plain Layout
10175 LeftMargin
10176 \end_layout
10177
10178 \end_inset
10179
10180  [
10181 \begin_inset Flex Code
10182 status collapsed
10183
10184 \begin_layout Plain Layout
10185 string
10186 \end_layout
10187
10188 \end_inset
10189
10190 ] A string that indicates the width of the left margin on the screen, for
10191  example, 
10192 \begin_inset Quotes eld
10193 \end_inset
10194
10195
10196 \begin_inset Flex Code
10197 status collapsed
10198
10199 \begin_layout Plain Layout
10200 MMMMM
10201 \end_layout
10202
10203 \end_inset
10204
10205
10206 \begin_inset Quotes erd
10207 \end_inset
10208
10209 .
10210  (Note that this is not a `length', like 
10211 \begin_inset Quotes eld
10212 \end_inset
10213
10214 2ex
10215 \begin_inset Quotes erd
10216 \end_inset
10217
10218 .)
10219 \end_layout
10220
10221 \begin_layout Description
10222 \begin_inset Flex Code
10223 status collapsed
10224
10225 \begin_layout Plain Layout
10226 MaxCiteNames
10227 \end_layout
10228
10229 \end_inset
10230
10231  [
10232 \begin_inset Flex Code
10233 status collapsed
10234
10235 \begin_layout Plain Layout
10236 integer
10237 \end_layout
10238
10239 \end_inset
10240
10241 ] An integer that determines the maximal number of names displayed in an
10242  author-year citation before the citation switches to 
10243 \begin_inset Quotes eld
10244 \end_inset
10245
10246 FirstAuthor et al.
10247 \begin_inset Quotes erd
10248 \end_inset
10249
10250 .
10251  Primarily used in cite engine files (see 
10252 \begin_inset CommandInset ref
10253 LatexCommand ref
10254 reference "subsec:Cite-Engine-Files"
10255 plural "false"
10256 caps "false"
10257 noprefix "false"
10258
10259 \end_inset
10260
10261 ).
10262 \end_layout
10263
10264 \begin_layout Description
10265 \begin_inset Flex Code
10266 status collapsed
10267
10268 \begin_layout Plain Layout
10269 ModifyStyle
10270 \end_layout
10271
10272 \end_inset
10273
10274  [
10275 \begin_inset Flex Code
10276 status collapsed
10277
10278 \begin_layout Plain Layout
10279 <style>
10280 \end_layout
10281
10282 \end_inset
10283
10284 ] Modifies the properties of the given paragraph style.
10285  If the style does not exist, this section is ignored.
10286  Must end with 
10287 \begin_inset Quotes eld
10288 \end_inset
10289
10290
10291 \begin_inset Flex Code
10292 status collapsed
10293
10294 \begin_layout Plain Layout
10295 End
10296 \end_layout
10297
10298 \end_inset
10299
10300
10301 \begin_inset Quotes erd
10302 \end_inset
10303
10304 .
10305 \end_layout
10306
10307 \begin_layout Description
10308 \begin_inset Flex Code
10309 status collapsed
10310
10311 \begin_layout Plain Layout
10312 NoCounter
10313 \end_layout
10314
10315 \end_inset
10316
10317  [
10318 \begin_inset Flex Code
10319 status collapsed
10320
10321 \begin_layout Plain Layout
10322 <counter>
10323 \end_layout
10324
10325 \end_inset
10326
10327 ] Deletes an existing counter, usually one defined in an included file.
10328 \end_layout
10329
10330 \begin_layout Description
10331 \begin_inset Flex Code
10332 status collapsed
10333
10334 \begin_layout Plain Layout
10335 NoFloat
10336 \end_layout
10337
10338 \end_inset
10339
10340  [
10341 \begin_inset Flex Code
10342 status collapsed
10343
10344 \begin_layout Plain Layout
10345 <float>
10346 \end_layout
10347
10348 \end_inset
10349
10350 ] Deletes an existing float.
10351  This is particularly useful when you want to suppress a float that has
10352  been defined in an input file.
10353 \end_layout
10354
10355 \begin_layout Description
10356 \begin_inset Flex Code
10357 status collapsed
10358
10359 \begin_layout Plain Layout
10360 NoStyle
10361 \end_layout
10362
10363 \end_inset
10364
10365  [
10366 \begin_inset Flex Code
10367 status collapsed
10368
10369 \begin_layout Plain Layout
10370 <style>
10371 \end_layout
10372
10373 \end_inset
10374
10375 ] Deletes an existing style.
10376 \end_layout
10377
10378 \begin_layout Description
10379 \begin_inset Flex Code
10380 status collapsed
10381
10382 \begin_layout Plain Layout
10383 OutlinerName
10384 \end_layout
10385
10386 \end_inset
10387
10388  [
10389 \begin_inset Flex Code
10390 status collapsed
10391
10392 \begin_layout Plain Layout
10393 <type>
10394 \end_layout
10395
10396 \end_inset
10397
10398 ] [
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403 <string>
10404 \end_layout
10405
10406 \end_inset
10407
10408 ] Define a new table of contents with type 
10409 \begin_inset Flex Code
10410 status collapsed
10411
10412 \begin_layout Plain Layout
10413 <type>
10414 \end_layout
10415
10416 \end_inset
10417
10418  and name 
10419 \begin_inset Flex Code
10420 status collapsed
10421
10422 \begin_layout Plain Layout
10423 <string>
10424 \end_layout
10425
10426 \end_inset
10427
10428 .
10429  See also the AddToToc commands.
10430 \end_layout
10431
10432 \begin_layout Description
10433 \begin_inset Flex Code
10434 status collapsed
10435
10436 \begin_layout Plain Layout
10437 OutputFormat
10438 \end_layout
10439
10440 \end_inset
10441
10442  [
10443 \begin_inset Flex Code
10444 status collapsed
10445
10446 \begin_layout Plain Layout
10447 <format>
10448 \end_layout
10449
10450 \end_inset
10451
10452 ] The file format (as defined in the \SpecialChar LyX
10453  preferences) produced by this document
10454  class.
10455  It is mainly useful when 
10456 \begin_inset Flex Code
10457 status collapsed
10458
10459 \begin_layout Plain Layout
10460 OutputType
10461 \end_layout
10462
10463 \end_inset
10464
10465  is 
10466 \begin_inset Flex Code
10467 status collapsed
10468
10469 \begin_layout Plain Layout
10470 literate
10471 \end_layout
10472
10473 \end_inset
10474
10475  and one wants to define a new type of literate document.
10476  The format is reset to 
10477 \change_deleted 5863208 1594239413
10478
10479 \begin_inset Quotes eld
10480 \end_inset
10481
10482
10483 \begin_inset Flex Code
10484 status collapsed
10485
10486 \begin_layout Plain Layout
10487 docbook
10488 \end_layout
10489
10490 \end_inset
10491
10492
10493 \begin_inset Quotes erd
10494 \end_inset
10495
10496  or
10497 \change_unchanged
10498  
10499 \begin_inset Quotes eld
10500 \end_inset
10501
10502
10503 \begin_inset Flex Code
10504 status collapsed
10505
10506 \begin_layout Plain Layout
10507 latex
10508 \end_layout
10509
10510 \end_inset
10511
10512
10513 \begin_inset Quotes erd
10514 \end_inset
10515
10516  when the corresponding 
10517 \begin_inset Flex Code
10518 status collapsed
10519
10520 \begin_layout Plain Layout
10521 OutputType
10522 \end_layout
10523
10524 \end_inset
10525
10526  parameter is encountered.
10527 \end_layout
10528
10529 \begin_layout Description
10530 \begin_inset Flex Code
10531 status collapsed
10532
10533 \begin_layout Plain Layout
10534 OutputType
10535 \end_layout
10536
10537 \end_inset
10538
10539  [
10540 \begin_inset Flex Code
10541 status collapsed
10542
10543 \begin_layout Plain Layout
10544
10545 \emph on
10546 lat
10547 \emph default
10548 ex
10549 \end_layout
10550
10551 \end_inset
10552
10553
10554 \change_deleted 5863208 1594239430
10555
10556 \begin_inset Flex Code
10557 status collapsed
10558
10559 \begin_layout Plain Layout
10560 docbook
10561 \end_layout
10562
10563 \end_inset
10564
10565 ,
10566 \change_unchanged
10567  
10568 \begin_inset Flex Code
10569 status collapsed
10570
10571 \begin_layout Plain Layout
10572 literate
10573 \end_layout
10574
10575 \end_inset
10576
10577 ] Specifies what sort of output documents using this class will produce.
10578 \end_layout
10579
10580 \begin_layout Description
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 PackageOptions
10586 \end_layout
10587
10588 \end_inset
10589
10590  [
10591 \begin_inset Flex Code
10592 status collapsed
10593
10594 \begin_layout Plain Layout
10595 string
10596 \end_layout
10597
10598 \end_inset
10599
10600  
10601 \begin_inset Flex Code
10602 status collapsed
10603
10604 \begin_layout Plain Layout
10605 string
10606 \end_layout
10607
10608 \end_inset
10609
10610 ] Specifies options, given in the second string, for the package named by
10611  the first string.
10612  For example, 
10613 \begin_inset Quotes eld
10614 \end_inset
10615
10616
10617 \begin_inset Flex Code
10618 status collapsed
10619
10620 \begin_layout Plain Layout
10621 PackageOptions natbib square
10622 \end_layout
10623
10624 \end_inset
10625
10626
10627 \begin_inset Quotes erd
10628 \end_inset
10629
10630  will cause 
10631 \begin_inset Flex Code
10632 status collapsed
10633
10634 \begin_layout Plain Layout
10635 natbib
10636 \end_layout
10637
10638 \end_inset
10639
10640  to be loaded with the 
10641 \begin_inset Flex Code
10642 status collapsed
10643
10644 \begin_layout Plain Layout
10645 square
10646 \end_layout
10647
10648 \end_inset
10649
10650  option.
10651  (For \SpecialChar TeX
10652 perts, this causes \SpecialChar LyX
10653  to output: 
10654 \begin_inset Flex Code
10655 status collapsed
10656
10657 \begin_layout Plain Layout
10658
10659 \backslash
10660 PassOptionsToPackage{natbib}{square}
10661 \end_layout
10662
10663 \end_inset
10664
10665  prior to loading 
10666 \begin_inset Flex Code
10667 status collapsed
10668
10669 \begin_layout Plain Layout
10670 natbib
10671 \end_layout
10672
10673 \end_inset
10674
10675 .)
10676 \change_inserted -712698321 1565102364
10677
10678 \end_layout
10679
10680 \begin_layout Description
10681
10682 \change_inserted -712698321 1565102470
10683 \begin_inset Flex Code
10684 status collapsed
10685
10686 \begin_layout Plain Layout
10687
10688 \change_inserted -712698321 1565102365
10689 PageSize
10690 \change_unchanged
10691
10692 \end_layout
10693
10694 \end_inset
10695
10696  [
10697 \begin_inset Flex Code
10698 status collapsed
10699
10700 \begin_layout Plain Layout
10701
10702 \change_inserted -712698321 1565105222
10703
10704 \emph on
10705 custom
10706 \emph default
10707 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
10708  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
10709 \change_unchanged
10710
10711 \end_layout
10712
10713 \end_inset
10714
10715 ] The default page size.
10716  This is used by some converters.
10717 \change_unchanged
10718
10719 \end_layout
10720
10721 \begin_layout Description
10722 \begin_inset Flex Code
10723 status collapsed
10724
10725 \begin_layout Plain Layout
10726 PageStyle
10727 \end_layout
10728
10729 \end_inset
10730
10731  [
10732 \begin_inset Flex Code
10733 status collapsed
10734
10735 \begin_layout Plain Layout
10736
10737 \emph on
10738 plain
10739 \end_layout
10740
10741 \end_inset
10742
10743
10744 \begin_inset Flex Code
10745 status collapsed
10746
10747 \begin_layout Plain Layout
10748 empty
10749 \end_layout
10750
10751 \end_inset
10752
10753
10754 \begin_inset Flex Code
10755 status collapsed
10756
10757 \begin_layout Plain Layout
10758 headings
10759 \end_layout
10760
10761 \end_inset
10762
10763 ] The default pagestyle.
10764  Can be changed in the 
10765 \begin_inset Flex Noun
10766 status collapsed
10767
10768 \begin_layout Plain Layout
10769 Document\SpecialChar menuseparator
10770 Settings
10771 \end_layout
10772
10773 \end_inset
10774
10775  dialog.
10776 \end_layout
10777
10778 \begin_layout Description
10779 \begin_inset Flex Code
10780 status collapsed
10781
10782 \begin_layout Plain Layout
10783 Preamble
10784 \end_layout
10785
10786 \end_inset
10787
10788  Sets the preamble for the \SpecialChar LaTeX
10789  document.
10790  Note that this will completely override any prior 
10791 \begin_inset Flex Code
10792 status collapsed
10793
10794 \begin_layout Plain Layout
10795 Preamble
10796 \end_layout
10797
10798 \end_inset
10799
10800  or 
10801 \begin_inset Flex Code
10802 status collapsed
10803
10804 \begin_layout Plain Layout
10805 AddToPreamble
10806 \end_layout
10807
10808 \end_inset
10809
10810  declarations.
10811  (Use 
10812 \begin_inset Flex Code
10813 status collapsed
10814
10815 \begin_layout Plain Layout
10816 AddToPreamble
10817 \end_layout
10818
10819 \end_inset
10820
10821  if you just want to add material to the preamble.) Must end with 
10822 \begin_inset Quotes eld
10823 \end_inset
10824
10825
10826 \begin_inset Flex Code
10827 status collapsed
10828
10829 \begin_layout Plain Layout
10830 EndPreamble
10831 \end_layout
10832
10833 \end_inset
10834
10835
10836 \begin_inset Quotes erd
10837 \end_inset
10838
10839 .
10840 \end_layout
10841
10842 \begin_layout Description
10843 \begin_inset Flex Code
10844 status collapsed
10845
10846 \begin_layout Plain Layout
10847 Provides
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 ] [
10863 \begin_inset Flex Code
10864 status collapsed
10865
10866 \begin_layout Plain Layout
10867
10868 \emph on
10869 0
10870 \end_layout
10871
10872 \end_inset
10873
10874 ,
10875 \begin_inset space \thinspace{}
10876 \end_inset
10877
10878
10879 \begin_inset Flex Code
10880 status collapsed
10881
10882 \begin_layout Plain Layout
10883 1
10884 \end_layout
10885
10886 \end_inset
10887
10888 ] Whether the class already provides the feature 
10889 \begin_inset Flex Code
10890 status collapsed
10891
10892 \begin_layout Plain Layout
10893 string
10894 \end_layout
10895
10896 \end_inset
10897
10898 .
10899  A feature is in general the name of a package (e.
10900 \begin_inset space \thinspace{}
10901 \end_inset
10902
10903 g.
10904 \begin_inset space \space{}
10905 \end_inset
10906
10907
10908 \begin_inset Flex Code
10909 status collapsed
10910
10911 \begin_layout Plain Layout
10912 amsmath
10913 \end_layout
10914
10915 \end_inset
10916
10917  or 
10918 \begin_inset Flex Code
10919 status collapsed
10920
10921 \begin_layout Plain Layout
10922 makeidx
10923 \end_layout
10924
10925 \end_inset
10926
10927 ) or a macro (e.
10928 \begin_inset space \thinspace{}
10929 \end_inset
10930
10931 g.
10932 \begin_inset space \space{}
10933 \end_inset
10934
10935
10936 \begin_inset Flex Code
10937 status collapsed
10938
10939 \begin_layout Plain Layout
10940 url
10941 \end_layout
10942
10943 \end_inset
10944
10945  or 
10946 \begin_inset Flex Code
10947 status collapsed
10948
10949 \begin_layout Plain Layout
10950 boldsymbol
10951 \end_layout
10952
10953 \end_inset
10954
10955 ).
10956  See 
10957 \begin_inset CommandInset ref
10958 LatexCommand ref
10959 reference "chap:List-of-functions"
10960
10961 \end_inset
10962
10963  for the list of features.
10964 \end_layout
10965
10966 \begin_layout Description
10967 \begin_inset Flex Code
10968 status collapsed
10969
10970 \begin_layout Plain Layout
10971 ProvidesModule
10972 \end_layout
10973
10974 \end_inset
10975
10976  [
10977 \begin_inset Flex Code
10978 status collapsed
10979
10980 \begin_layout Plain Layout
10981 string
10982 \end_layout
10983
10984 \end_inset
10985
10986 ] Indicates that this layout provides the functionality of the module mentioned,
10987  which should be specified by the filename without the 
10988 \begin_inset Flex Code
10989 status collapsed
10990
10991 \begin_layout Plain Layout
10992 .module
10993 \end_layout
10994
10995 \end_inset
10996
10997  extension.
10998  This will typically be used if the layout includes the module directly,
10999  rather than using the 
11000 \begin_inset Flex Code
11001 status collapsed
11002
11003 \begin_layout Plain Layout
11004 DefaultModule
11005 \end_layout
11006
11007 \end_inset
11008
11009  tag to indicate that it ought to be used.
11010  It could also be used in a module that provided an alternate implementation
11011  of the same functionality.
11012 \end_layout
11013
11014 \begin_layout Description
11015 \begin_inset Flex Code
11016 status collapsed
11017
11018 \begin_layout Plain Layout
11019 ProvideStyle
11020 \end_layout
11021
11022 \end_inset
11023
11024  [
11025 \begin_inset Flex Code
11026 status collapsed
11027
11028 \begin_layout Plain Layout
11029 <style>
11030 \end_layout
11031
11032 \end_inset
11033
11034 ] Creates a new paragraph style if it does not already exist.
11035  If the style does exist, this section is ignored.
11036  Must end with 
11037 \begin_inset Quotes eld
11038 \end_inset
11039
11040
11041 \begin_inset Flex Code
11042 status collapsed
11043
11044 \begin_layout Plain Layout
11045 End
11046 \end_layout
11047
11048 \end_inset
11049
11050
11051 \begin_inset Quotes erd
11052 \end_inset
11053
11054 .
11055 \end_layout
11056
11057 \begin_layout Description
11058 \begin_inset Flex Code
11059 status collapsed
11060
11061 \begin_layout Plain Layout
11062 Requires
11063 \end_layout
11064
11065 \end_inset
11066
11067  [
11068 \begin_inset Flex Code
11069 status collapsed
11070
11071 \begin_layout Plain Layout
11072 string
11073 \end_layout
11074
11075 \end_inset
11076
11077 ] Whether the class requires the feature 
11078 \begin_inset Flex Code
11079 status collapsed
11080
11081 \begin_layout Plain Layout
11082 string
11083 \end_layout
11084
11085 \end_inset
11086
11087 .
11088  Multiple features must be separated by commas.
11089  Note that you can only request supported features.
11090  (See 
11091 \begin_inset CommandInset ref
11092 LatexCommand ref
11093 reference "chap:List-of-functions"
11094
11095 \end_inset
11096
11097  for the list of features.).
11098  If you require a package with specific options, you can additionally use
11099  
11100 \begin_inset Flex Code
11101 status collapsed
11102
11103 \begin_layout Plain Layout
11104 PackageOptions
11105 \end_layout
11106
11107 \end_inset
11108
11109 .
11110 \end_layout
11111
11112 \begin_layout Description
11113 \begin_inset Flex Code
11114 status collapsed
11115
11116 \begin_layout Plain Layout
11117 RightMargin
11118 \end_layout
11119
11120 \end_inset
11121
11122  [
11123 \begin_inset Flex Code
11124 status collapsed
11125
11126 \begin_layout Plain Layout
11127 string
11128 \end_layout
11129
11130 \end_inset
11131
11132 ] A string that indicates the width of the right margin on the screen, for
11133  example, 
11134 \begin_inset Quotes eld
11135 \end_inset
11136
11137
11138 \begin_inset Flex Code
11139 status collapsed
11140
11141 \begin_layout Plain Layout
11142 MMMMM
11143 \end_layout
11144
11145 \end_inset
11146
11147
11148 \begin_inset Quotes erd
11149 \end_inset
11150
11151 .
11152 \end_layout
11153
11154 \begin_layout Description
11155 \begin_inset Flex Code
11156 status collapsed
11157
11158 \begin_layout Plain Layout
11159 SecNumDepth
11160 \end_layout
11161
11162 \end_inset
11163
11164  [
11165 \begin_inset Flex Code
11166 status collapsed
11167
11168 \begin_layout Plain Layout
11169 int=3
11170 \end_layout
11171
11172 \end_inset
11173
11174 ] Sets which divisions get numbered.
11175  Corresponds to the
11176 \begin_inset Newline newline
11177 \end_inset
11178
11179
11180 \begin_inset Flex Code
11181 status collapsed
11182
11183 \begin_layout Plain Layout
11184 secnumdepth
11185 \end_layout
11186
11187 \end_inset
11188
11189  counter in \SpecialChar LaTeX
11190 .
11191 \end_layout
11192
11193 \begin_layout Description
11194 \begin_inset Flex Code
11195 status collapsed
11196
11197 \begin_layout Plain Layout
11198 Sides
11199 \end_layout
11200
11201 \end_inset
11202
11203  [
11204 \begin_inset Flex Code
11205 status collapsed
11206
11207 \begin_layout Plain Layout
11208
11209 \emph on
11210 1
11211 \end_layout
11212
11213 \end_inset
11214
11215 ,
11216 \begin_inset space \thinspace{}
11217 \end_inset
11218
11219
11220 \begin_inset Flex Code
11221 status collapsed
11222
11223 \begin_layout Plain Layout
11224 2
11225 \end_layout
11226
11227 \end_inset
11228
11229 ] Whether the class-default should be printing on one or both sides of the
11230  paper.
11231  Can be changed in the 
11232 \begin_inset Flex Noun
11233 status collapsed
11234
11235 \begin_layout Plain Layout
11236 Document\SpecialChar menuseparator
11237 Settings
11238 \end_layout
11239
11240 \end_inset
11241
11242  dialog.
11243 \end_layout
11244
11245 \begin_layout Description
11246 \begin_inset Flex Code
11247 status collapsed
11248
11249 \begin_layout Plain Layout
11250 Style
11251 \end_layout
11252
11253 \end_inset
11254
11255  [
11256 \begin_inset Flex Code
11257 status collapsed
11258
11259 \begin_layout Plain Layout
11260 <name>
11261 \end_layout
11262
11263 \end_inset
11264
11265 ] This sequence defines a paragraph style.
11266  If the style does not yet exist, it is created; if it does exist, its parameter
11267 s are modified.
11268  Must end with 
11269 \begin_inset Quotes eld
11270 \end_inset
11271
11272
11273 \begin_inset Flex Code
11274 status collapsed
11275
11276 \begin_layout Plain Layout
11277 End
11278 \end_layout
11279
11280 \end_inset
11281
11282
11283 \begin_inset Quotes erd
11284 \end_inset
11285
11286 .
11287 \begin_inset Newline newline
11288 \end_inset
11289
11290 See 
11291 \begin_inset CommandInset ref
11292 LatexCommand ref
11293 reference "subsec:Paragraph-Styles"
11294
11295 \end_inset
11296
11297  for details on paragraph styles.
11298 \change_inserted -712698321 1553617804
11299
11300 \end_layout
11301
11302 \begin_layout Description
11303
11304 \change_inserted -712698321 1553617862
11305 \begin_inset Flex Code
11306 status collapsed
11307
11308 \begin_layout Plain Layout
11309
11310 \change_inserted -712698321 1553617809
11311 TableStyle
11312 \change_unchanged
11313
11314 \end_layout
11315
11316 \end_inset
11317
11318  [
11319 \begin_inset Flex Code
11320 status collapsed
11321
11322 \begin_layout Plain Layout
11323
11324 \change_inserted -712698321 1553617805
11325 <name>
11326 \change_unchanged
11327
11328 \end_layout
11329
11330 \end_inset
11331
11332 ] defines the default table style that is used when inserting a table.
11333  The following styles are available:
11334 \end_layout
11335
11336 \begin_deeper
11337 \begin_layout Itemize
11338
11339 \change_inserted -712698321 1554308039
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344
11345 \change_inserted -712698321 1554307928
11346 Formal_with_Footline
11347 \change_unchanged
11348
11349 \end_layout
11350
11351 \end_inset
11352
11353 : formal (
11354 \begin_inset Quotes eld
11355 \end_inset
11356
11357 booktabs
11358 \begin_inset Quotes erd
11359 \end_inset
11360
11361 ) style with horizontal lines only, using a bold top and bottom line, the
11362  first and last row are additionally separated from the table body with
11363  a thin middle line.
11364 \end_layout
11365
11366 \begin_layout Itemize
11367
11368 \change_inserted -712698321 1554308087
11369 \begin_inset Flex Code
11370 status collapsed
11371
11372 \begin_layout Plain Layout
11373
11374 \change_inserted -712698321 1554308042
11375 Formal_without_Footline
11376 \change_unchanged
11377
11378 \end_layout
11379
11380 \end_inset
11381
11382 : same as the above, but the last row is not separated with a middle line
11383  from the body.
11384 \end_layout
11385
11386 \begin_layout Itemize
11387
11388 \change_inserted -712698321 1553618031
11389 \begin_inset Flex Code
11390 status collapsed
11391
11392 \begin_layout Plain Layout
11393
11394 \change_inserted -712698321 1553618006
11395 Simple_Grid
11396 \change_unchanged
11397
11398 \end_layout
11399
11400 \end_inset
11401
11402 : Simple table lines.
11403 \end_layout
11404
11405 \begin_layout Itemize
11406
11407 \change_inserted -712698321 1553618309
11408 \begin_inset Flex Code
11409 status collapsed
11410
11411 \begin_layout Plain Layout
11412
11413 \change_inserted -712698321 1553618031
11414 Grid_with_Head
11415 \change_unchanged
11416
11417 \end_layout
11418
11419 \end_inset
11420
11421 : Like 
11422 \begin_inset Flex Code
11423 status collapsed
11424
11425 \begin_layout Plain Layout
11426
11427 \change_inserted -712698321 1553618043
11428 Simple_Grid
11429 \change_unchanged
11430
11431 \end_layout
11432
11433 \end_inset
11434
11435 , but with the header column offset with a second horizontal line.
11436  This is also the default style of \SpecialChar LyX
11437 .
11438 \end_layout
11439
11440 \begin_layout Itemize
11441
11442 \change_inserted -712698321 1553618280
11443 \begin_inset Flex Code
11444 status collapsed
11445
11446 \begin_layout Plain Layout
11447
11448 \change_inserted -712698321 1553618261
11449 No_Borders
11450 \change_unchanged
11451
11452 \end_layout
11453
11454 \end_inset
11455
11456 : Table without lines.
11457 \change_unchanged
11458
11459 \end_layout
11460
11461 \end_deeper
11462 \begin_layout Description
11463 \begin_inset Flex Code
11464 status collapsed
11465
11466 \begin_layout Plain Layout
11467 TitleLatexName
11468 \end_layout
11469
11470 \end_inset
11471
11472  [
11473 \begin_inset Flex Code
11474 status collapsed
11475
11476 \begin_layout Plain Layout
11477 string="maketitle"
11478 \end_layout
11479
11480 \end_inset
11481
11482 ] The name of the command or environment to be used with 
11483 \begin_inset Flex Code
11484 status collapsed
11485
11486 \begin_layout Plain Layout
11487 TitleLatexType
11488 \end_layout
11489
11490 \end_inset
11491
11492 .
11493 \end_layout
11494
11495 \begin_layout Description
11496 \begin_inset Flex Code
11497 status collapsed
11498
11499 \begin_layout Plain Layout
11500 TitleLatexType
11501 \end_layout
11502
11503 \end_inset
11504
11505  [
11506 \begin_inset Flex Code
11507 status collapsed
11508
11509 \begin_layout Plain Layout
11510
11511 \emph on
11512 CommandAfter
11513 \end_layout
11514
11515 \end_inset
11516
11517
11518 \begin_inset Flex Code
11519 status collapsed
11520
11521 \begin_layout Plain Layout
11522 Environment
11523 \end_layout
11524
11525 \end_inset
11526
11527 ] Indicates what kind of markup is used to define the title of a document.
11528  
11529 \begin_inset Flex Code
11530 status collapsed
11531
11532 \begin_layout Plain Layout
11533 CommandAfter
11534 \end_layout
11535
11536 \end_inset
11537
11538  means that the macro with name 
11539 \begin_inset Flex Code
11540 status collapsed
11541
11542 \begin_layout Plain Layout
11543 TitleLatexName
11544 \end_layout
11545
11546 \end_inset
11547
11548  will be inserted after the last layout which has 
11549 \begin_inset Quotes eld
11550 \end_inset
11551
11552
11553 \begin_inset Flex Code
11554 status collapsed
11555
11556 \begin_layout Plain Layout
11557 InTitle
11558 \begin_inset space ~
11559 \end_inset
11560
11561 1
11562 \end_layout
11563
11564 \end_inset
11565
11566
11567 \begin_inset Quotes erd
11568 \end_inset
11569
11570 .
11571  
11572 \begin_inset Flex Code
11573 status collapsed
11574
11575 \begin_layout Plain Layout
11576 Environment
11577 \end_layout
11578
11579 \end_inset
11580
11581  corresponds to the case where all layouts which have 
11582 \begin_inset Quotes eld
11583 \end_inset
11584
11585
11586 \begin_inset Flex Code
11587 status collapsed
11588
11589 \begin_layout Plain Layout
11590 InTitle
11591 \begin_inset space ~
11592 \end_inset
11593
11594 1
11595 \end_layout
11596
11597 \end_inset
11598
11599
11600 \begin_inset Quotes erd
11601 \end_inset
11602
11603  should be enclosed into the 
11604 \begin_inset Flex Code
11605 status collapsed
11606
11607 \begin_layout Plain Layout
11608 TitleLatexName
11609 \end_layout
11610
11611 \end_inset
11612
11613  environment.
11614 \end_layout
11615
11616 \begin_layout Description
11617 \begin_inset Flex Code
11618 status collapsed
11619
11620 \begin_layout Plain Layout
11621 TocDepth
11622 \end_layout
11623
11624 \end_inset
11625
11626  [
11627 \begin_inset Flex Code
11628 status collapsed
11629
11630 \begin_layout Plain Layout
11631 int=3
11632 \end_layout
11633
11634 \end_inset
11635
11636 ] Sets which divisions are included in the table of contents.
11637  Corresponds to the 
11638 \begin_inset Flex Code
11639 status collapsed
11640
11641 \begin_layout Plain Layout
11642 tocdepth
11643 \end_layout
11644
11645 \end_inset
11646
11647  counter in \SpecialChar LaTeX
11648 .
11649 \end_layout
11650
11651 \begin_layout Subsection
11652 \begin_inset Flex Code
11653 status collapsed
11654
11655 \begin_layout Plain Layout
11656 ClassOptions
11657 \end_layout
11658
11659 \end_inset
11660
11661  section
11662 \begin_inset CommandInset label
11663 LatexCommand label
11664 name "subsec:ClassOptions"
11665
11666 \end_inset
11667
11668
11669 \end_layout
11670
11671 \begin_layout Standard
11672 The 
11673 \begin_inset Flex Code
11674 status collapsed
11675
11676 \begin_layout Plain Layout
11677 ClassOptions
11678 \end_layout
11679
11680 \end_inset
11681
11682  section can contain the following entries:
11683 \end_layout
11684
11685 \begin_layout Description
11686 \begin_inset Flex Code
11687 status collapsed
11688
11689 \begin_layout Plain Layout
11690 FontSize
11691 \end_layout
11692
11693 \end_inset
11694
11695  [
11696 \begin_inset Flex Code
11697 status collapsed
11698
11699 \begin_layout Plain Layout
11700 string="10|11|12"
11701 \end_layout
11702
11703 \end_inset
11704
11705 ] The list of available font sizes for the document's main font, separated
11706  by 
11707 \begin_inset Quotes eld
11708 \end_inset
11709
11710
11711 \begin_inset Flex Code
11712 status collapsed
11713
11714 \begin_layout Plain Layout
11715 |
11716 \end_layout
11717
11718 \end_inset
11719
11720
11721 \begin_inset Quotes erd
11722 \end_inset
11723
11724 .
11725
11726 \change_inserted -712698321 1565110196
11727  Any number is possible.
11728 \end_layout
11729
11730 \begin_layout Description
11731
11732 \change_inserted -712698321 1565110259
11733 \begin_inset Flex Code
11734 status collapsed
11735
11736 \begin_layout Plain Layout
11737
11738 \change_inserted -712698321 1565110199
11739 FontSizeFormat
11740 \change_unchanged
11741
11742 \end_layout
11743
11744 \end_inset
11745
11746  [
11747 \begin_inset Flex Code
11748 status collapsed
11749
11750 \begin_layout Plain Layout
11751
11752 \change_inserted -712698321 1565110196
11753 string
11754 \change_unchanged
11755
11756 \end_layout
11757
11758 \end_inset
11759
11760 ] The format for the font size option.
11761  Default: 
11762 \begin_inset Flex Code
11763 status collapsed
11764
11765 \begin_layout Plain Layout
11766
11767 \change_inserted -712698321 1565110238
11768 $$spt
11769 \change_unchanged
11770
11771 \end_layout
11772
11773 \end_inset
11774
11775 .
11776  
11777 \begin_inset Flex Code
11778 status collapsed
11779
11780 \begin_layout Plain Layout
11781
11782 \change_inserted -712698321 1565110248
11783 $$s
11784 \change_unchanged
11785
11786 \end_layout
11787
11788 \end_inset
11789
11790  is a placeholder for the font size.
11791 \change_unchanged
11792
11793 \end_layout
11794
11795 \begin_layout Description
11796
11797 \change_deleted 5863208 1594239483
11798 \begin_inset Flex Code
11799 status collapsed
11800
11801 \begin_layout Plain Layout
11802 Header
11803 \end_layout
11804
11805 \end_inset
11806
11807  Used to set the DTD line with XML-based output classes.
11808  E.
11809 \begin_inset space \thinspace{}
11810 \end_inset
11811
11812 g.: PUBLIC 
11813 \begin_inset Quotes eld
11814 \end_inset
11815
11816 -//OASIS//DTD DocBook V4.2//EN
11817 \begin_inset Quotes erd
11818 \end_inset
11819
11820 .
11821 \change_inserted -712698321 1565101761
11822
11823 \end_layout
11824
11825 \begin_layout Description
11826
11827 \change_inserted -712698321 1565180598
11828 \begin_inset Flex Code
11829 status collapsed
11830
11831 \begin_layout Plain Layout
11832
11833 \change_inserted -712698321 1565101918
11834 PageSize
11835 \change_unchanged
11836
11837 \end_layout
11838
11839 \end_inset
11840
11841  [
11842 \begin_inset Flex Code
11843 status collapsed
11844
11845 \begin_layout Plain Layout
11846
11847 \change_inserted -712698321 1565105399
11848 string="letter|\SpecialChar allowbreak
11849 legal|\SpecialChar allowbreak
11850 executive|\SpecialChar allowbreak
11851 a0|\SpecialChar allowbreak
11852 a1|\SpecialChar allowbreak
11853 a2|\SpecialChar allowbreak
11854 a3|\SpecialChar allowbreak
11855 a4|\SpecialChar allowbreak
11856 a5|\SpecialChar allowbreak
11857 a6|\SpecialChar allowbreak
11858 b0|\SpecialChar allowbreak
11859 b1|\SpecialChar allowbreak
11860 b2|\SpecialChar allowbreak
11861 b3|\SpecialChar allowbreak
11862 b4|\SpecialChar allowbreak
11863 b5|\SpecialChar allowbreak
11864 b6|\SpecialChar allowbreak
11865 c0|\SpecialChar allowbreak
11866 c1|\SpecialChar allowbreak
11867 c
11868 2|\SpecialChar allowbreak
11869 c3|\SpecialChar allowbreak
11870 c4|\SpecialChar allowbreak
11871 c5|\SpecialChar allowbreak
11872 c6|\SpecialChar allowbreak
11873 b0j|\SpecialChar allowbreak
11874 b1j|\SpecialChar allowbreak
11875 b2j|\SpecialChar allowbreak
11876 b3j|\SpecialChar allowbreak
11877 b4j|\SpecialChar allowbreak
11878 b5j|\SpecialChar allowbreak
11879 b6j"
11880 \change_unchanged
11881
11882 \end_layout
11883
11884 \end_inset
11885
11886 ] The list of available page sizes, separated by 
11887 \begin_inset Quotes eld
11888 \end_inset
11889
11890
11891 \begin_inset Flex Code
11892 status collapsed
11893
11894 \begin_layout Plain Layout
11895
11896 \change_inserted -712698321 1565101779
11897 |
11898 \change_unchanged
11899
11900 \end_layout
11901
11902 \end_inset
11903
11904
11905 \begin_inset Quotes erd
11906 \end_inset
11907
11908 .
11909  Currently, only the listed sizes are supported.
11910  Other sizes might be entered as custom class option.
11911 \end_layout
11912
11913 \begin_layout Description
11914
11915 \change_inserted -712698321 1565180623
11916 \begin_inset Flex Code
11917 status collapsed
11918
11919 \begin_layout Plain Layout
11920
11921 \change_inserted -712698321 1565180605
11922 PageSizeFormat
11923 \change_unchanged
11924
11925 \end_layout
11926
11927 \end_inset
11928
11929  [
11930 \begin_inset Flex Code
11931 status collapsed
11932
11933 \begin_layout Plain Layout
11934
11935 \change_inserted -712698321 1565180601
11936 string
11937 \change_unchanged
11938
11939 \end_layout
11940
11941 \end_inset
11942
11943 ] The format for the page size option.
11944  Default: 
11945 \begin_inset Flex Code
11946 status collapsed
11947
11948 \begin_layout Plain Layout
11949
11950 \change_inserted -712698321 1565180618
11951 $$spaper
11952 \change_unchanged
11953
11954 \end_layout
11955
11956 \end_inset
11957
11958 .
11959  
11960 \begin_inset Flex Code
11961 status collapsed
11962
11963 \begin_layout Plain Layout
11964
11965 \change_inserted -712698321 1565180601
11966 $$s
11967 \change_unchanged
11968
11969 \end_layout
11970
11971 \end_inset
11972
11973  is a placeholder for the paper size.
11974 \change_unchanged
11975
11976 \end_layout
11977
11978 \begin_layout Description
11979 \begin_inset Flex Code
11980 status collapsed
11981
11982 \begin_layout Plain Layout
11983 PageStyle
11984 \end_layout
11985
11986 \end_inset
11987
11988  [
11989 \begin_inset Flex Code
11990 status collapsed
11991
11992 \begin_layout Plain Layout
11993 string="empty|plain|headings|fancy"
11994 \end_layout
11995
11996 \end_inset
11997
11998 ] The list of available page sty\SpecialChar softhyphen
11999 les, separated by 
12000 \begin_inset Quotes eld
12001 \end_inset
12002
12003
12004 \begin_inset Flex Code
12005 status collapsed
12006
12007 \begin_layout Plain Layout
12008 |
12009 \end_layout
12010
12011 \end_inset
12012
12013
12014 \begin_inset Quotes erd
12015 \end_inset
12016
12017 .
12018 \end_layout
12019
12020 \begin_layout Description
12021 \begin_inset Flex Code
12022 status collapsed
12023
12024 \begin_layout Plain Layout
12025 Other
12026 \end_layout
12027
12028 \end_inset
12029
12030  [
12031 \begin_inset Flex Code
12032 status collapsed
12033
12034 \begin_layout Plain Layout
12035 string=""
12036 \end_layout
12037
12038 \end_inset
12039
12040 ] Some document class options, separated by a comma, that will be added
12041  to the optional part of the 
12042 \begin_inset Flex Code
12043 status collapsed
12044
12045 \begin_layout Plain Layout
12046
12047 \backslash
12048 documentclass
12049 \end_layout
12050
12051 \end_inset
12052
12053  command.
12054 \end_layout
12055
12056 \begin_layout Standard
12057 The 
12058 \begin_inset Flex Code
12059 status collapsed
12060
12061 \begin_layout Plain Layout
12062 ClassOptions
12063 \end_layout
12064
12065 \end_inset
12066
12067  section must end with 
12068 \begin_inset Quotes eld
12069 \end_inset
12070
12071
12072 \begin_inset Flex Code
12073 status collapsed
12074
12075 \begin_layout Plain Layout
12076 End
12077 \end_layout
12078
12079 \end_inset
12080
12081
12082 \begin_inset Quotes erd
12083 \end_inset
12084
12085 .
12086 \end_layout
12087
12088 \begin_layout Subsection
12089 Paragraph styles
12090 \begin_inset CommandInset label
12091 LatexCommand label
12092 name "subsec:Paragraph-Styles"
12093
12094 \end_inset
12095
12096
12097 \end_layout
12098
12099 \begin_layout Standard
12100 A paragraph style description looks like this:
12101 \begin_inset Foot
12102 status collapsed
12103
12104 \begin_layout Plain Layout
12105 Note that this will either define a new style or modify an existing one.
12106 \end_layout
12107
12108 \end_inset
12109
12110
12111 \end_layout
12112
12113 \begin_layout LyX-Code
12114 Style 
12115 \family roman
12116 \emph on
12117 name
12118 \end_layout
12119
12120 \begin_layout LyX-Code
12121  ...
12122 \end_layout
12123
12124 \begin_layout LyX-Code
12125 End
12126 \end_layout
12127
12128 \begin_layout Standard
12129 where the following commands are allowed:
12130 \end_layout
12131
12132 \begin_layout Description
12133 \begin_inset Flex Code
12134 status collapsed
12135
12136 \begin_layout Plain Layout
12137 AddToToc
12138 \end_layout
12139
12140 \end_inset
12141
12142  [
12143 \begin_inset Flex Code
12144 status collapsed
12145
12146 \begin_layout Plain Layout
12147 string
12148 \end_layout
12149
12150 \end_inset
12151
12152 =""] This paragraph will appear in the table of contents of the given type.
12153  An empty string disables.
12154  See also the OutlinerName and the IsTocCaption commands.
12155  Default: disabled.
12156 \end_layout
12157
12158 \begin_layout Description
12159 \begin_inset Flex Code
12160 status collapsed
12161
12162 \begin_layout Plain Layout
12163 Align
12164 \end_layout
12165
12166 \end_inset
12167
12168  [
12169 \begin_inset Flex Code
12170 status collapsed
12171
12172 \begin_layout Plain Layout
12173
12174 \emph on
12175 block
12176 \emph default
12177 , left, right, center
12178 \end_layout
12179
12180 \end_inset
12181
12182 ] Paragraph alignment.
12183 \end_layout
12184
12185 \begin_layout Description
12186 \begin_inset Flex Code
12187 status collapsed
12188
12189 \begin_layout Plain Layout
12190 AlignPossible
12191 \end_layout
12192
12193 \end_inset
12194
12195  [
12196 \begin_inset Flex Code
12197 status collapsed
12198
12199 \begin_layout Plain Layout
12200
12201 \emph on
12202 block
12203 \emph default
12204 , left, right, center
12205 \end_layout
12206
12207 \end_inset
12208
12209 ] A comma separated list of permitted alignments.
12210  (Some \SpecialChar LaTeX
12211  styles prohibit certain alignments, since those wouldn't make sense.
12212  For example a right-aligned or centered enumeration isn't possible.)
12213 \end_layout
12214
12215 \begin_layout Description
12216 \begin_inset Flex Code
12217 status collapsed
12218
12219 \begin_layout Plain Layout
12220 Argument
12221 \end_layout
12222
12223 \end_inset
12224
12225  [
12226 \begin_inset Flex Code
12227 status collapsed
12228
12229 \begin_layout Plain Layout
12230 int
12231 \end_layout
12232
12233 \end_inset
12234
12235 ] Defines argument number <int> of a command\SpecialChar breakableslash
12236 environment associated with
12237  the current style.
12238  This is useful for things like section headings, and only makes sense with
12239  \SpecialChar LaTeX
12240 .
12241  Every (optional or required) argument of a command or environment – except
12242  for the required argument that is associated with the content of the paragraph
12243  itself – has a separate definition, where the number specifies the order
12244  of the arguments.
12245  The definition must end with 
12246 \begin_inset Flex Code
12247 status collapsed
12248
12249 \begin_layout Plain Layout
12250 EndArgument
12251 \end_layout
12252
12253 \end_inset
12254
12255 .
12256  So a command with two optional arguments has:
12257 \end_layout
12258
12259 \begin_deeper
12260 \begin_layout Quote
12261
12262 \family typewriter
12263 Argument 1
12264 \end_layout
12265
12266 \begin_layout Quote
12267
12268 \family typewriter
12269 ...
12270 \end_layout
12271
12272 \begin_layout Quote
12273
12274 \family typewriter
12275 EndArgument
12276 \end_layout
12277
12278 \begin_layout Quote
12279
12280 \family typewriter
12281 Argument 2
12282 \end_layout
12283
12284 \begin_layout Quote
12285
12286 \family typewriter
12287 ...
12288 \end_layout
12289
12290 \begin_layout Quote
12291
12292 \family typewriter
12293 EndArgument
12294 \end_layout
12295
12296 \begin_layout Standard
12297 Inside the 
12298 \begin_inset Flex Code
12299 status collapsed
12300
12301 \begin_layout Plain Layout
12302 Argument
12303 \end_layout
12304
12305 \end_inset
12306
12307  definition, the following specifications are possible:
12308 \end_layout
12309
12310 \begin_layout Itemize
12311 \begin_inset Flex Code
12312 status collapsed
12313
12314 \begin_layout Plain Layout
12315 LabelString
12316 \end_layout
12317
12318 \end_inset
12319
12320  
12321 \begin_inset Flex Code
12322 status collapsed
12323
12324 \begin_layout Plain Layout
12325 [string]
12326 \end_layout
12327
12328 \end_inset
12329
12330  The string that will appear both in the menu (to insert this argument)
12331  and on the argument inset button (unless you also specify a separate 
12332 \begin_inset Flex Code
12333 status collapsed
12334
12335 \begin_layout Plain Layout
12336 MenuString
12337 \end_layout
12338
12339 \end_inset
12340
12341 ).
12342  For the menu, you can define an accelerator by appending the respective
12343  character to the string, divided by 
12344 \begin_inset Quotes eld
12345 \end_inset
12346
12347 |
12348 \begin_inset Quotes erd
12349 \end_inset
12350
12351  (e.
12352 \begin_inset space \thinspace{}
12353 \end_inset
12354
12355 g.
12356 \begin_inset space \space{}
12357 \end_inset
12358
12359
12360 \begin_inset Quotes eld
12361 \end_inset
12362
12363
12364 \begin_inset Flex Code
12365 status collapsed
12366
12367 \begin_layout Plain Layout
12368 Short Title|S
12369 \end_layout
12370
12371 \end_inset
12372
12373
12374 \begin_inset Quotes erd
12375 \end_inset
12376
12377 ).
12378 \end_layout
12379
12380 \begin_layout Itemize
12381 \begin_inset Flex Code
12382 status collapsed
12383
12384 \begin_layout Plain Layout
12385 MenuString
12386 \end_layout
12387
12388 \end_inset
12389
12390  
12391 \begin_inset Flex Code
12392 status collapsed
12393
12394 \begin_layout Plain Layout
12395 [string]
12396 \end_layout
12397
12398 \end_inset
12399
12400  A separate string for the menu.
12401  You can define an accelerator by appending the respective character to
12402  the string, divided by 
12403 \begin_inset Quotes eld
12404 \end_inset
12405
12406 |
12407 \begin_inset Quotes erd
12408 \end_inset
12409
12410  (e.
12411 \begin_inset space \thinspace{}
12412 \end_inset
12413
12414 g.
12415 \begin_inset space \space{}
12416 \end_inset
12417
12418
12419 \begin_inset Quotes eld
12420 \end_inset
12421
12422
12423 \begin_inset Flex Code
12424 status collapsed
12425
12426 \begin_layout Plain Layout
12427 Short Title|S
12428 \end_layout
12429
12430 \end_inset
12431
12432
12433 \begin_inset Quotes erd
12434 \end_inset
12435
12436 ).
12437  This specification is optional.
12438  If it is not given the 
12439 \begin_inset Flex Code
12440 status collapsed
12441
12442 \begin_layout Plain Layout
12443 LabelString
12444 \end_layout
12445
12446 \end_inset
12447
12448  will be used instead for the menu.
12449 \end_layout
12450
12451 \begin_layout Itemize
12452 \begin_inset Flex Code
12453 status collapsed
12454
12455 \begin_layout Plain Layout
12456 Tooltip
12457 \end_layout
12458
12459 \end_inset
12460
12461  
12462 \begin_inset Flex Code
12463 status collapsed
12464
12465 \begin_layout Plain Layout
12466 [string]
12467 \end_layout
12468
12469 \end_inset
12470
12471  A longer explanatory text that appears in the tooltip when hovering over
12472  the argument inset.
12473 \end_layout
12474
12475 \begin_layout Itemize
12476 \begin_inset Flex Code
12477 status collapsed
12478
12479 \begin_layout Plain Layout
12480 Mandatory
12481 \end_layout
12482
12483 \end_inset
12484
12485  [
12486 \begin_inset Flex Code
12487 status collapsed
12488
12489 \begin_layout Plain Layout
12490
12491 \emph on
12492 0
12493 \end_layout
12494
12495 \end_inset
12496
12497 ,
12498 \begin_inset space \thinspace{}
12499 \end_inset
12500
12501
12502 \begin_inset Flex Code
12503 status collapsed
12504
12505 \begin_layout Plain Layout
12506 1
12507 \end_layout
12508
12509 \end_inset
12510
12511 ] Declare if this is a mandatory (1) or an optional (0) argument.
12512  Mandatory arguments will be output empty if not given, while optional arguments
12513  will not be output at all.
12514  By default, mandatory arguments are delimited by 
12515 \begin_inset Flex Code
12516 status collapsed
12517
12518 \begin_layout Plain Layout
12519 {...}
12520 \end_layout
12521
12522 \end_inset
12523
12524 , while optional arguments are delimited by 
12525 \begin_inset Flex Code
12526 status collapsed
12527
12528 \begin_layout Plain Layout
12529 [...]
12530 \end_layout
12531
12532 \end_inset
12533
12534
12535 \change_inserted -712698321 1555579782
12536
12537 \end_layout
12538
12539 \begin_layout Itemize
12540
12541 \change_inserted -712698321 1555579780
12542 \begin_inset Flex Code
12543 status collapsed
12544
12545 \begin_layout Plain Layout
12546
12547 \change_inserted -712698321 1555579780
12548 NewlineCmd
12549 \change_unchanged
12550
12551 \end_layout
12552
12553 \end_inset
12554
12555  
12556 \begin_inset Flex Code
12557 status collapsed
12558
12559 \begin_layout Plain Layout
12560
12561 \change_inserted -712698321 1555579780
12562 [string]
12563 \change_unchanged
12564
12565 \end_layout
12566
12567 \end_inset
12568
12569  Option to define a different command (from the default 
12570 \begin_inset Flex Code
12571 status collapsed
12572
12573 \begin_layout Plain Layout
12574
12575 \change_inserted -712698321 1555579780
12576
12577 \backslash
12578
12579 \backslash
12580
12581 \change_unchanged
12582
12583 \end_layout
12584
12585 \end_inset
12586
12587 ) to be used for line breaks.
12588  The initial backslash must not be specified.
12589 \change_unchanged
12590
12591 \end_layout
12592
12593 \begin_layout Itemize
12594 \begin_inset Flex Code
12595 status collapsed
12596
12597 \begin_layout Plain Layout
12598 Requires
12599 \end_layout
12600
12601 \end_inset
12602
12603  
12604 \begin_inset Flex Code
12605 status collapsed
12606
12607 \begin_layout Plain Layout
12608 [int=0]
12609 \end_layout
12610
12611 \end_inset
12612
12613  defines another argument (by its number) which this argument requires to
12614  be output if it is itself output.
12615  E.
12616 \begin_inset space \thinspace{}
12617 \end_inset
12618
12619 g., in \SpecialChar LaTeX
12620  commands, optional arguments often require previous optional arguments
12621  to be output (at least empty), as in 
12622 \begin_inset Flex Code
12623 status collapsed
12624
12625 \begin_layout Plain Layout
12626
12627 \backslash
12628 command[][argument]{text}
12629 \end_layout
12630
12631 \end_inset
12632
12633 .
12634  This can be achieved by the statement 
12635 \begin_inset Flex Code
12636 status collapsed
12637
12638 \begin_layout Plain Layout
12639 Requires 1
12640 \end_layout
12641
12642 \end_inset
12643
12644  within 
12645 \begin_inset Flex Code
12646 status collapsed
12647
12648 \begin_layout Plain Layout
12649 Argument 2
12650 \end_layout
12651
12652 \end_inset
12653
12654 .
12655 \end_layout
12656
12657 \begin_layout Itemize
12658 \begin_inset Flex Code
12659 status collapsed
12660
12661 \begin_layout Plain Layout
12662 LeftDelim
12663 \end_layout
12664
12665 \end_inset
12666
12667  
12668 \begin_inset Flex Code
12669 status collapsed
12670
12671 \begin_layout Plain Layout
12672 [string]
12673 \end_layout
12674
12675 \end_inset
12676
12677  defines a custom left delimiter (instead of 
12678 \begin_inset Flex Code
12679 status collapsed
12680
12681 \begin_layout Plain Layout
12682 {
12683 \end_layout
12684
12685 \end_inset
12686
12687  or 
12688 \begin_inset Flex Code
12689 status collapsed
12690
12691 \begin_layout Plain Layout
12692 [
12693 \end_layout
12694
12695 \end_inset
12696
12697 ).
12698  A line break in the output can be indicated by 
12699 \begin_inset Flex Code
12700 status collapsed
12701
12702 \begin_layout Plain Layout
12703 <br/>
12704 \end_layout
12705
12706 \end_inset
12707
12708 .
12709 \end_layout
12710
12711 \begin_layout Itemize
12712 \begin_inset Flex Code
12713 status collapsed
12714
12715 \begin_layout Plain Layout
12716 RightDelim
12717 \end_layout
12718
12719 \end_inset
12720
12721  
12722 \begin_inset Flex Code
12723 status collapsed
12724
12725 \begin_layout Plain Layout
12726 [string]
12727 \end_layout
12728
12729 \end_inset
12730
12731  defines a custom right delimiter (instead of 
12732 \begin_inset Flex Code
12733 status collapsed
12734
12735 \begin_layout Plain Layout
12736 }
12737 \end_layout
12738
12739 \end_inset
12740
12741  or 
12742 \begin_inset Flex Code
12743 status collapsed
12744
12745 \begin_layout Plain Layout
12746 ]
12747 \end_layout
12748
12749 \end_inset
12750
12751 ).
12752  A line break in the output can be indicated by 
12753 \begin_inset Flex Code
12754 status collapsed
12755
12756 \begin_layout Plain Layout
12757 <br/>
12758 \end_layout
12759
12760 \end_inset
12761
12762 .
12763 \end_layout
12764
12765 \begin_layout Itemize
12766 \begin_inset Flex Code
12767 status collapsed
12768
12769 \begin_layout Plain Layout
12770 DefaultArg
12771 \end_layout
12772
12773 \end_inset
12774
12775  
12776 \begin_inset Flex Code
12777 status collapsed
12778
12779 \begin_layout Plain Layout
12780 [string]
12781 \end_layout
12782
12783 \end_inset
12784
12785  defines an argument that is inserted if and only if no user-specified arguments
12786  were given, i.
12787 \begin_inset space \thinspace{}
12788 \end_inset
12789
12790 e.
12791 \begin_inset space \space{}
12792 \end_inset
12793
12794 if no argument inset has been inserted (note that also an empty argument
12795  inset omits the DefaultArg).
12796  Multiple arguments need to be separated by comma.
12797 \end_layout
12798
12799 \begin_layout Itemize
12800 \begin_inset Flex Code
12801 status collapsed
12802
12803 \begin_layout Plain Layout
12804 PresetArg
12805 \end_layout
12806
12807 \end_inset
12808
12809  
12810 \begin_inset Flex Code
12811 status collapsed
12812
12813 \begin_layout Plain Layout
12814 [string]
12815 \end_layout
12816
12817 \end_inset
12818
12819  defines an argument that is inserted in any case (alone or in addition
12820  to user-specified arguments).
12821  Multiple arguments need to be separated by comma.
12822 \end_layout
12823
12824 \begin_layout Itemize
12825 \begin_inset Flex Code
12826 status collapsed
12827
12828 \begin_layout Plain Layout
12829 Font
12830 \end_layout
12831
12832 \end_inset
12833
12834  The font used for the argument content, see 
12835 \begin_inset CommandInset ref
12836 LatexCommand ref
12837 reference "subsec:Font-description"
12838
12839 \end_inset
12840
12841 .
12842 \change_inserted -712698321 1559484228
12843
12844 \end_layout
12845
12846 \begin_layout Itemize
12847
12848 \change_inserted -712698321 1559484228
12849 \begin_inset Flex Code
12850 status collapsed
12851
12852 \begin_layout Plain Layout
12853
12854 \change_inserted -712698321 1559484228
12855 FreeSpacing
12856 \change_unchanged
12857
12858 \end_layout
12859
12860 \end_inset
12861
12862  [
12863 \begin_inset Flex Code
12864 status collapsed
12865
12866 \begin_layout Plain Layout
12867
12868 \change_inserted -712698321 1559484228
12869
12870 \emph on
12871 0
12872 \change_unchanged
12873
12874 \end_layout
12875
12876 \end_inset
12877
12878 ,
12879 \begin_inset space \thinspace{}
12880 \end_inset
12881
12882
12883 \begin_inset Flex Code
12884 status collapsed
12885
12886 \begin_layout Plain Layout
12887
12888 \change_inserted -712698321 1559484228
12889 1
12890 \change_unchanged
12891
12892 \end_layout
12893
12894 \end_inset
12895
12896 ] As with paragraph styles, see 
12897 \begin_inset CommandInset ref
12898 LatexCommand ref
12899 reference "subsec:Paragraph-Styles"
12900
12901 \end_inset
12902
12903 .
12904 \change_unchanged
12905
12906 \end_layout
12907
12908 \begin_layout Itemize
12909 \begin_inset Flex Code
12910 status collapsed
12911
12912 \begin_layout Plain Layout
12913 LabelFont
12914 \end_layout
12915
12916 \end_inset
12917
12918  The font used for the label; see 
12919 \begin_inset CommandInset ref
12920 LatexCommand ref
12921 reference "subsec:Font-description"
12922
12923 \end_inset
12924
12925 .
12926 \end_layout
12927
12928 \begin_layout Itemize
12929 \begin_inset Flex Code
12930 status collapsed
12931
12932 \begin_layout Plain Layout
12933 Decoration
12934 \end_layout
12935
12936 \end_inset
12937
12938  [
12939 \begin_inset Flex Code
12940 status collapsed
12941
12942 \begin_layout Plain Layout
12943
12944 \emph on
12945 Classic
12946 \emph default
12947 , Minimalistic, Conglomerate
12948 \end_layout
12949
12950 \end_inset
12951
12952 ] describes the rendering style used for the inset's frame and buttons.
12953 \end_layout
12954
12955 \begin_layout Itemize
12956 \begin_inset Flex Code
12957 status collapsed
12958
12959 \begin_layout Plain Layout
12960 AutoInsert
12961 \end_layout
12962
12963 \end_inset
12964
12965  
12966 \begin_inset Flex Code
12967 status collapsed
12968
12969 \begin_layout Plain Layout
12970 [int=0]
12971 \end_layout
12972
12973 \end_inset
12974
12975  If this is set to 
12976 \begin_inset Flex Code
12977 status collapsed
12978
12979 \begin_layout Plain Layout
12980 1
12981 \end_layout
12982
12983 \end_inset
12984
12985 , this argument is automatically inserted when the respective style is selected.
12986
12987 \change_deleted -712698321 1559484200
12988  Currently, only one argument per style\SpecialChar breakableslash
12989 layout can be automatically inserted.
12990 \change_unchanged
12991
12992 \end_layout
12993
12994 \begin_layout Itemize
12995
12996 \change_inserted -712698321 1559491402
12997 \begin_inset Flex Code
12998 status collapsed
12999
13000 \begin_layout Plain Layout
13001
13002 \change_inserted -712698321 1559490711
13003 InsertOnNewline
13004 \change_unchanged
13005
13006 \end_layout
13007
13008 \end_inset
13009
13010  
13011 \begin_inset Flex Code
13012 status collapsed
13013
13014 \begin_layout Plain Layout
13015
13016 \change_inserted -712698321 1559490703
13017 [int=0]
13018 \change_unchanged
13019
13020 \end_layout
13021
13022 \end_inset
13023
13024  If this is set to 
13025 \begin_inset Flex Code
13026 status collapsed
13027
13028 \begin_layout Plain Layout
13029
13030 \change_inserted -712698321 1559490703
13031 1
13032 \change_unchanged
13033
13034 \end_layout
13035
13036 \end_inset
13037
13038 , this argument will be inserted on a new line with 
13039 \begin_inset Flex Code
13040 status collapsed
13041
13042 \begin_layout Plain Layout
13043
13044 \change_inserted -712698321 1559491402
13045 AutoInsert
13046 \change_unchanged
13047
13048 \end_layout
13049
13050 \end_inset
13051
13052  (only available within Flex insets).
13053 \end_layout
13054
13055 \begin_layout Itemize
13056 \begin_inset Flex Code
13057 status collapsed
13058
13059 \begin_layout Plain Layout
13060 InsertCotext
13061 \end_layout
13062
13063 \end_inset
13064
13065  
13066 \begin_inset Flex Code
13067 status collapsed
13068
13069 \begin_layout Plain Layout
13070 [int=0]
13071 \end_layout
13072
13073 \end_inset
13074
13075  If this is set to 
13076 \begin_inset Flex Code
13077 status collapsed
13078
13079 \begin_layout Plain Layout
13080 1
13081 \end_layout
13082
13083 \end_inset
13084
13085 , this argument will be inserted with a copy of the co-text (either selected
13086  text or the whole paragraph) as content.
13087 \end_layout
13088
13089 \begin_layout Itemize
13090 \begin_inset Flex Code
13091 status collapsed
13092
13093 \begin_layout Plain Layout
13094 PassThru
13095 \end_layout
13096
13097 \end_inset
13098
13099  [
13100 \begin_inset Flex Code
13101 status collapsed
13102
13103 \begin_layout Plain Layout
13104
13105 \emph on
13106 inherited
13107 \emph default
13108 , true, false
13109 \end_layout
13110
13111 \end_inset
13112
13113 ] Whether the contents of this argument should be output in raw form, meaning
13114  without special translations that \SpecialChar LaTeX
13115  would require.
13116  By default, the 
13117 \begin_inset Flex Code
13118 status collapsed
13119
13120 \begin_layout Plain Layout
13121 PassThru
13122 \end_layout
13123
13124 \end_inset
13125
13126  status is inherited by the inset or paragraph layout the argument belongs
13127  to, true and false change the status for the given argument only.
13128 \end_layout
13129
13130 \begin_layout Itemize
13131 \begin_inset Flex Code
13132 status collapsed
13133
13134 \begin_layout Plain Layout
13135 PassThruChars
13136 \end_layout
13137
13138 \end_inset
13139
13140  [
13141 \begin_inset Flex Code
13142 status collapsed
13143
13144 \begin_layout Plain Layout
13145 string of characters
13146 \end_layout
13147
13148 \end_inset
13149
13150 ]
13151 \family typewriter
13152  
13153 \family default
13154 Defines individual characters
13155 \begin_inset Newline linebreak
13156 \end_inset
13157
13158 that should be output in raw form, meaning without special translations
13159  that \SpecialChar LaTeX
13160  would require.
13161  Note that, contrary to PassThru, this needs to be explicitly defined for
13162  arguments.
13163  That is, arguments do not inherit PassThruChars from their parent inset
13164  or layout.
13165 \end_layout
13166
13167 \begin_layout Itemize
13168 \begin_inset Flex Code
13169 status collapsed
13170
13171 \begin_layout Plain Layout
13172 IsTocCaption
13173 \end_layout
13174
13175 \end_inset
13176
13177  [
13178 \begin_inset Flex Code
13179 status collapsed
13180
13181 \begin_layout Plain Layout
13182
13183 \emph on
13184 0
13185 \end_layout
13186
13187 \end_inset
13188
13189 ,
13190 \begin_inset space \thinspace{}
13191 \end_inset
13192
13193
13194 \begin_inset Flex Code
13195 status collapsed
13196
13197 \begin_layout Plain Layout
13198 1
13199 \end_layout
13200
13201 \end_inset
13202
13203 ] If this is set to 1, the argument will output its content in the corresponding
13204  item in the table of contents.
13205  See AddToToc.
13206 \end_layout
13207
13208 \begin_layout Standard
13209 By default, the text entered in the \SpecialChar LyX
13210  workarea in the respective layout is
13211  the last (mandatory) argument of a command if the 
13212 \begin_inset Flex Code
13213 status collapsed
13214
13215 \begin_layout Plain Layout
13216 LatexType
13217 \end_layout
13218
13219 \end_inset
13220
13221  is 
13222 \begin_inset Flex Code
13223 status collapsed
13224
13225 \begin_layout Plain Layout
13226 Command
13227 \end_layout
13228
13229 \end_inset
13230
13231 .
13232  However, arguments with the prefix 
13233 \begin_inset Flex Code
13234 status collapsed
13235
13236 \begin_layout Plain Layout
13237 post:
13238 \end_layout
13239
13240 \end_inset
13241
13242  are output after this workarea argument.
13243  Note that post-argument numbering restarts at 1, so the first argument
13244  following the workarea argument is 
13245 \begin_inset Flex Code
13246 status collapsed
13247
13248 \begin_layout Plain Layout
13249 post:1
13250 \end_layout
13251
13252 \end_inset
13253
13254 .
13255  Post-arguments are ignored in any other 
13256 \begin_inset Flex Code
13257 status collapsed
13258
13259 \begin_layout Plain Layout
13260 LatexType
13261 \end_layout
13262
13263 \end_inset
13264
13265  than 
13266 \begin_inset Flex Code
13267 status collapsed
13268
13269 \begin_layout Plain Layout
13270 Command
13271 \end_layout
13272
13273 \end_inset
13274
13275 .
13276 \end_layout
13277
13278 \begin_layout Standard
13279 Arguments for list 
13280 \begin_inset Flex Code
13281 status collapsed
13282
13283 \begin_layout Plain Layout
13284
13285 \backslash
13286 item
13287 \end_layout
13288
13289 \end_inset
13290
13291 s (as in 
13292 \begin_inset Flex Code
13293 status collapsed
13294
13295 \begin_layout Plain Layout
13296
13297 \backslash
13298 item[foo]
13299 \end_layout
13300
13301 \end_inset
13302
13303 ) have the prefix 
13304 \begin_inset Flex Code
13305 status collapsed
13306
13307 \begin_layout Plain Layout
13308 item:
13309 \end_layout
13310
13311 \end_inset
13312
13313  followed by the number (e.
13314 \begin_inset space \thinspace{}
13315 \end_inset
13316
13317 g.
13318 \begin_inset space \space{}
13319 \end_inset
13320
13321
13322 \begin_inset Flex Code
13323 status collapsed
13324
13325 \begin_layout Plain Layout
13326 Argument item:1
13327 \end_layout
13328
13329 \end_inset
13330
13331 ).
13332 \change_inserted -712698321 1534487781
13333
13334 \end_layout
13335
13336 \begin_layout Standard
13337
13338 \change_inserted -712698321 1534488561
13339 Finally, there is a special argument type with the prefix 
13340 \begin_inset Flex Code
13341 status collapsed
13342
13343 \begin_layout Plain Layout
13344
13345 \change_inserted -712698321 1534487844
13346 listpreamble:
13347 \change_unchanged
13348
13349 \end_layout
13350
13351 \end_inset
13352
13353 .
13354  It is not really an argument, but uses the argument interface (thus, the
13355  prefix is also followed by a number, e.
13356 \begin_inset space \thinspace{}
13357 \end_inset
13358
13359 g.
13360  
13361 \begin_inset Flex Code
13362 status collapsed
13363
13364 \begin_layout Plain Layout
13365
13366 \change_inserted -712698321 1534488412
13367 Argument listpreamble:1
13368 \change_unchanged
13369
13370 \end_layout
13371
13372 \end_inset
13373
13374 ).
13375  As the name implies, it is targeted at lists such as 
13376 \family sans
13377 Itemize
13378 \family default
13379
13380 \family sans
13381 Enumerate
13382 \family default
13383
13384 \family sans
13385 Description
13386 \family default
13387 , or 
13388 \family sans
13389 Bibliography
13390 \family default
13391 .
13392  Its content will be output at the list start, before the first 
13393 \begin_inset Flex Code
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397
13398 \change_inserted -712698321 1534488058
13399
13400 \backslash
13401 item
13402 \change_unchanged
13403
13404 \end_layout
13405
13406 \end_inset
13407
13408 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13409 ).
13410  This way, users can insert redefinitions (of lengths etc.) to individual
13411  lists.
13412  By default, these arguments do not have a delimiter.
13413 \change_unchanged
13414
13415 \end_layout
13416
13417 \end_deeper
13418 \begin_layout Description
13419 \begin_inset Flex Code
13420 status collapsed
13421
13422 \begin_layout Plain Layout
13423 AutoNests
13424 \end_layout
13425
13426 \end_inset
13427
13428  Includes a comma-separated list of layouts that should be nested in and
13429  after the current layout.
13430  Only makes sense for nestable layouts (such as environments).
13431  Must be ended by 
13432 \begin_inset Quotes eld
13433 \end_inset
13434
13435
13436 \begin_inset Flex Code
13437 status collapsed
13438
13439 \begin_layout Plain Layout
13440 EndAutoNests
13441 \end_layout
13442
13443 \end_inset
13444
13445
13446 \begin_inset Quotes erd
13447 \end_inset
13448
13449 .
13450  See also 
13451 \begin_inset Flex Code
13452 status collapsed
13453
13454 \begin_layout Plain Layout
13455 IsAutoNestedBy
13456 \end_layout
13457
13458 \end_inset
13459
13460 .
13461 \end_layout
13462
13463 \begin_layout Description
13464 \begin_inset Flex Code
13465 status collapsed
13466
13467 \begin_layout Plain Layout
13468 BabelPreamble
13469 \end_layout
13470
13471 \end_inset
13472
13473  Note that this will completely override any prior 
13474 \begin_inset Flex Code
13475 status collapsed
13476
13477 \begin_layout Plain Layout
13478 BabelPreamble
13479 \end_layout
13480
13481 \end_inset
13482
13483  declaration for this style.
13484  Must end with 
13485 \begin_inset Quotes eld
13486 \end_inset
13487
13488
13489 \begin_inset Flex Code
13490 status collapsed
13491
13492 \begin_layout Plain Layout
13493 EndBabelPreamble
13494 \end_layout
13495
13496 \end_inset
13497
13498
13499 \begin_inset Quotes erd
13500 \end_inset
13501
13502 .
13503  See 
13504 \begin_inset CommandInset ref
13505 LatexCommand ref
13506 reference "subsec:I18n"
13507
13508 \end_inset
13509
13510  for details on its use.
13511 \end_layout
13512
13513 \begin_layout Description
13514 \begin_inset Flex Code
13515 status collapsed
13516
13517 \begin_layout Plain Layout
13518 BottomSep
13519 \end_layout
13520
13521 \end_inset
13522
13523  [
13524 \begin_inset Flex Code
13525 status collapsed
13526
13527 \begin_layout Plain Layout
13528 float=0
13529 \end_layout
13530
13531 \end_inset
13532
13533 ]
13534 \begin_inset Foot
13535 status collapsed
13536
13537 \begin_layout Plain Layout
13538 Note that a `float' here is a real number, such as: 1.5.
13539 \end_layout
13540
13541 \end_inset
13542
13543  The vertical space with which the last of a chain of paragraphs with this
13544  style is separated from the following paragraph.
13545  If the next paragraph has another style, the separations are not simply
13546  added, but the maximum is taken.
13547 \end_layout
13548
13549 \begin_layout Description
13550 \begin_inset Flex Code
13551 status collapsed
13552
13553 \begin_layout Plain Layout
13554 Category
13555 \end_layout
13556
13557 \end_inset
13558
13559  [
13560 \begin_inset Flex Code
13561 status collapsed
13562
13563 \begin_layout Plain Layout
13564 string
13565 \end_layout
13566
13567 \end_inset
13568
13569 ] The category for this style.
13570  This is used to group related styles in the style combobox on the toolbar.
13571  Any string can be used, but you may want to use existing categories with
13572  your own styles.
13573  
13574 \end_layout
13575
13576 \begin_layout Description
13577 \begin_inset Flex Code
13578 status collapsed
13579
13580 \begin_layout Plain Layout
13581 CommandDepth
13582 \end_layout
13583
13584 \end_inset
13585
13586  Depth of XML command.
13587  Used only with XML-type formats.
13588 \end_layout
13589
13590 \begin_layout Description
13591 \begin_inset Flex Code
13592 status collapsed
13593
13594 \begin_layout Plain Layout
13595 CopyStyle
13596 \end_layout
13597
13598 \end_inset
13599
13600  [
13601 \begin_inset Flex Code
13602 status collapsed
13603
13604 \begin_layout Plain Layout
13605 string
13606 \end_layout
13607
13608 \end_inset
13609
13610 ] Copies all the features of an existing style into the current one.
13611  
13612 \end_layout
13613
13614 \begin_layout Description
13615 \begin_inset Flex Code
13616 status collapsed
13617
13618 \begin_layout Plain Layout
13619 DependsOn
13620 \end_layout
13621
13622 \end_inset
13623
13624  [
13625 \begin_inset Flex Code
13626 status collapsed
13627
13628 \begin_layout Plain Layout
13629 <name>
13630 \end_layout
13631
13632 \end_inset
13633
13634 ] The name of a style whose preamble should be output 
13635 \emph on
13636 before
13637 \emph default
13638  this one.
13639  This allows to ensure some ordering of the preamble snippets when macros
13640  definitions depend on one another.
13641 \begin_inset Foot
13642 status collapsed
13643
13644 \begin_layout Plain Layout
13645 Note that, besides that functionality, there is no way to ensure any ordering
13646  of preambles.
13647  The ordering that you see in a given version of \SpecialChar LyX
13648  may change without warning
13649  in later versions.
13650 \end_layout
13651
13652 \end_inset
13653
13654
13655 \end_layout
13656
13657 \begin_layout Description
13658 \begin_inset Flex Code
13659 status collapsed
13660
13661 \begin_layout Plain Layout
13662 EndLabeltype
13663 \end_layout
13664
13665 \end_inset
13666
13667  [
13668 \begin_inset Flex Code
13669 status collapsed
13670
13671 \begin_layout Plain Layout
13672
13673 \emph on
13674 No_Label
13675 \emph default
13676 , Box, Filled_Box, Static
13677 \end_layout
13678
13679 \end_inset
13680
13681 ] The type of label that stands at the end of the paragraph (or sequence
13682  of paragraphs if 
13683 \begin_inset Flex Code
13684 status collapsed
13685
13686 \begin_layout Plain Layout
13687 LatexType
13688 \end_layout
13689
13690 \end_inset
13691
13692  is
13693 \begin_inset Newline newline
13694 \end_inset
13695
13696
13697 \begin_inset Flex Code
13698 status collapsed
13699
13700 \begin_layout Plain Layout
13701 Environment
13702 \end_layout
13703
13704 \end_inset
13705
13706
13707 \begin_inset Flex Code
13708 status collapsed
13709
13710 \begin_layout Plain Layout
13711 Item_Environment
13712 \end_layout
13713
13714 \end_inset
13715
13716  or 
13717 \begin_inset Flex Code
13718 status collapsed
13719
13720 \begin_layout Plain Layout
13721 List_Environment
13722 \end_layout
13723
13724 \end_inset
13725
13726 ).
13727  
13728 \begin_inset Flex Code
13729 status collapsed
13730
13731 \begin_layout Plain Layout
13732 No_Label
13733 \end_layout
13734
13735 \end_inset
13736
13737  means 
13738 \begin_inset Quotes eld
13739 \end_inset
13740
13741 nothing
13742 \begin_inset Quotes erd
13743 \end_inset
13744
13745
13746 \begin_inset Flex Code
13747 status collapsed
13748
13749 \begin_layout Plain Layout
13750 Box
13751 \end_layout
13752
13753 \end_inset
13754
13755  (resp.
13756 \begin_inset space \space{}
13757 \end_inset
13758
13759
13760 \begin_inset Flex Code
13761 status collapsed
13762
13763 \begin_layout Plain Layout
13764 Filled_Box
13765 \end_layout
13766
13767 \end_inset
13768
13769 ) is a white (resp.
13770 \begin_inset space ~
13771 \end_inset
13772
13773 black) square suitable for end of proof markers, 
13774 \begin_inset Flex Code
13775 status collapsed
13776
13777 \begin_layout Plain Layout
13778 Static
13779 \end_layout
13780
13781 \end_inset
13782
13783  is an explicit text string.
13784 \end_layout
13785
13786 \begin_layout Description
13787 \begin_inset Flex Code
13788 status collapsed
13789
13790 \begin_layout Plain Layout
13791 EndLabelString
13792 \end_layout
13793
13794 \end_inset
13795
13796  [
13797 \begin_inset Flex Code
13798 status collapsed
13799
13800 \begin_layout Plain Layout
13801 string=""
13802 \end_layout
13803
13804 \end_inset
13805
13806 ] The string used for a label with a 
13807 \begin_inset Flex Code
13808 status collapsed
13809
13810 \begin_layout Plain Layout
13811 Static
13812 \end_layout
13813
13814 \end_inset
13815
13816
13817 \begin_inset Newline newline
13818 \end_inset
13819
13820
13821 \begin_inset Flex Code
13822 status collapsed
13823
13824 \begin_layout Plain Layout
13825 EndLabelType
13826 \end_layout
13827
13828 \end_inset
13829
13830 .
13831  
13832 \end_layout
13833
13834 \begin_layout Description
13835 \begin_inset Flex Code
13836 status collapsed
13837
13838 \begin_layout Plain Layout
13839 Font
13840 \end_layout
13841
13842 \end_inset
13843
13844  The font used for both the text body 
13845 \emph on
13846 and
13847 \emph default
13848  the label.
13849  See 
13850 \begin_inset CommandInset ref
13851 LatexCommand ref
13852 reference "subsec:Font-description"
13853
13854 \end_inset
13855
13856 .
13857  Note that defining this font automatically defines the 
13858 \begin_inset Flex Code
13859 status collapsed
13860
13861 \begin_layout Plain Layout
13862 LabelFont
13863 \end_layout
13864
13865 \end_inset
13866
13867  to the same value.
13868  So you should define this one first if you also want to define 
13869 \begin_inset Flex Code
13870 status collapsed
13871
13872 \begin_layout Plain Layout
13873 LabelFont
13874 \end_layout
13875
13876 \end_inset
13877
13878 .
13879 \end_layout
13880
13881 \begin_layout Description
13882 \begin_inset Flex Code
13883 status collapsed
13884
13885 \begin_layout Plain Layout
13886 ForceLocal
13887 \end_layout
13888
13889 \end_inset
13890
13891  [
13892 \begin_inset Flex Code
13893 status collapsed
13894
13895 \begin_layout Plain Layout
13896 int=0
13897 \end_layout
13898
13899 \end_inset
13900
13901 ] Used for backporting new styles to stable \SpecialChar LyX
13902  versions.
13903  The first stable version that supports this tag is \SpecialChar LyX
13904  2.1.0.
13905  The argument is a number which may either be 0, -1 or any value greater
13906  than zero.
13907  If the 
13908 \begin_inset Flex Code
13909 status collapsed
13910
13911 \begin_layout Plain Layout
13912 ForceLocal
13913 \end_layout
13914
13915 \end_inset
13916
13917  flag of a style is greater than zero, it will always be written to the
13918  document header.
13919  If a .lyx file is read, the style definitions from the document header are
13920  added to the document class.
13921  Therefore even older \SpecialChar LyX
13922  versions can handle the style.
13923  The argument of 
13924 \begin_inset Flex Code
13925 status collapsed
13926
13927 \begin_layout Plain Layout
13928 ForceLocal
13929 \end_layout
13930
13931 \end_inset
13932
13933  is a version number: if the style is read, and the version number is less
13934  than the version number of the already existing style in the document class,
13935  the new style is ignored.
13936  If the version number is greater, the new style replaces the existing style.
13937  A value of -1 means an infinite version number, i.
13938 \begin_inset space \thinspace{}
13939 \end_inset
13940
13941 e.
13942 \begin_inset space \space{}
13943 \end_inset
13944
13945 the style is always used.
13946 \end_layout
13947
13948 \begin_layout Description
13949 \begin_inset Flex Code
13950 status collapsed
13951
13952 \begin_layout Plain Layout
13953 FreeSpacing
13954 \end_layout
13955
13956 \end_inset
13957
13958  [
13959 \begin_inset Flex Code
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963
13964 \emph on
13965 0
13966 \end_layout
13967
13968 \end_inset
13969
13970 ,
13971 \begin_inset space \thinspace{}
13972 \end_inset
13973
13974
13975 \begin_inset Flex Code
13976 status collapsed
13977
13978 \begin_layout Plain Layout
13979 1
13980 \end_layout
13981
13982 \end_inset
13983
13984 ] Usually \SpecialChar LyX
13985  does not allow you to insert more than one space between words,
13986  since a space is considered as the separation between two words, not a
13987  character or symbol of its own.
13988  This is a very fine thing but sometimes annoying, for example, when typing
13989  program code or plain \SpecialChar LaTeX
13990  code.
13991  For this reason, 
13992 \begin_inset Flex Code
13993 status collapsed
13994
13995 \begin_layout Plain Layout
13996 FreeSpacing
13997 \end_layout
13998
13999 \end_inset
14000
14001  can be enabled.
14002  
14003 \change_deleted -495245474 1550490105
14004 Note that 
14005 \change_unchanged
14006 \SpecialChar LyX
14007  will create protected blanks for the additional blanks when in 
14008 \change_inserted -495245474 1550490096
14009
14010 \begin_inset Flex Code
14011 status collapsed
14012
14013 \begin_layout Plain Layout
14014
14015 \change_inserted -495245474 1550490089
14016 Passthru 1
14017 \change_unchanged
14018
14019 \end_layout
14020
14021 \end_inset
14022
14023  is not specified.
14024 \change_deleted -495245474 1550490116
14025 another mode than \SpecialChar LaTeX
14026 -mode.
14027
14028 \change_inserted -495245474 1550247760
14029  Note that 
14030 \begin_inset Flex Code
14031 status collapsed
14032
14033 \begin_layout Plain Layout
14034
14035 \change_inserted -495245474 1550247736
14036 FreeSpacing
14037 \change_unchanged
14038
14039 \end_layout
14040
14041 \end_inset
14042
14043  implies 
14044 \begin_inset Flex Code
14045 status collapsed
14046
14047 \begin_layout Plain Layout
14048
14049 \change_inserted -495245474 1550247755
14050 KeepEmpty
14051 \change_unchanged
14052
14053 \end_layout
14054
14055 \end_inset
14056
14057 .
14058 \change_unchanged
14059
14060 \end_layout
14061
14062 \begin_layout Description
14063 \begin_inset Flex Code
14064 status collapsed
14065
14066 \begin_layout Plain Layout
14067 HTML*
14068 \end_layout
14069
14070 \end_inset
14071
14072  These tags are used with XHTML output.
14073  See 
14074 \begin_inset CommandInset ref
14075 LatexCommand ref
14076 reference "subsec:Paragraph-Style-XHTML"
14077
14078 \end_inset
14079
14080 .
14081 \end_layout
14082
14083 \begin_layout Description
14084 \begin_inset Flex Code
14085 status collapsed
14086
14087 \begin_layout Plain Layout
14088 InnerTag
14089 \end_layout
14090
14091 \end_inset
14092
14093  [FIXME] (Used only with XML-type formats.)
14094 \end_layout
14095
14096 \begin_layout Description
14097 \begin_inset Flex Code
14098 status collapsed
14099
14100 \begin_layout Plain Layout
14101 InPreamble
14102 \end_layout
14103
14104 \end_inset
14105
14106  [
14107 \begin_inset Flex Code
14108 status collapsed
14109
14110 \begin_layout Plain Layout
14111
14112 \emph on
14113 0
14114 \end_layout
14115
14116 \end_inset
14117
14118 ,
14119 \begin_inset space \thinspace{}
14120 \end_inset
14121
14122
14123 \begin_inset Flex Code
14124 status collapsed
14125
14126 \begin_layout Plain Layout
14127 1
14128 \end_layout
14129
14130 \end_inset
14131
14132 ] If 
14133 \begin_inset Flex Code
14134 status collapsed
14135
14136 \begin_layout Plain Layout
14137 1
14138 \end_layout
14139
14140 \end_inset
14141
14142 , marks the style as to be included in the document preamble and not in
14143  the document body.
14144  This is useful for document classes that want such information as the title
14145  and author to appear in the preamble.
14146  Note that this works only for styles for which the 
14147 \begin_inset Flex Code
14148 status collapsed
14149
14150 \begin_layout Plain Layout
14151 LatexType
14152 \end_layout
14153
14154 \end_inset
14155
14156  is 
14157 \begin_inset Flex Code
14158 status collapsed
14159
14160 \begin_layout Plain Layout
14161 Command
14162 \end_layout
14163
14164 \end_inset
14165
14166  or 
14167 \begin_inset Flex Code
14168 status collapsed
14169
14170 \begin_layout Plain Layout
14171 Paragraph
14172 \end_layout
14173
14174 \end_inset
14175
14176 .
14177 \end_layout
14178
14179 \begin_layout Description
14180 \begin_inset Flex Code
14181 status collapsed
14182
14183 \begin_layout Plain Layout
14184 InTitle
14185 \end_layout
14186
14187 \end_inset
14188
14189  [
14190 \begin_inset Flex Code
14191 status collapsed
14192
14193 \begin_layout Plain Layout
14194
14195 \emph on
14196 0
14197 \end_layout
14198
14199 \end_inset
14200
14201 ,
14202 \begin_inset space \thinspace{}
14203 \end_inset
14204
14205
14206 \begin_inset Flex Code
14207 status collapsed
14208
14209 \begin_layout Plain Layout
14210 1
14211 \end_layout
14212
14213 \end_inset
14214
14215 ] If 
14216 \begin_inset Flex Code
14217 status collapsed
14218
14219 \begin_layout Plain Layout
14220 1
14221 \end_layout
14222
14223 \end_inset
14224
14225 , marks the style as being part of a title block (see also the 
14226 \begin_inset Flex Code
14227 status collapsed
14228
14229 \begin_layout Plain Layout
14230 TitleLatexType
14231 \end_layout
14232
14233 \end_inset
14234
14235  and 
14236 \begin_inset Flex Code
14237 status collapsed
14238
14239 \begin_layout Plain Layout
14240 TitleLatexName
14241 \end_layout
14242
14243 \end_inset
14244
14245  global entries).
14246 \end_layout
14247
14248 \begin_layout Description
14249 \begin_inset Flex Code
14250 status collapsed
14251
14252 \begin_layout Plain Layout
14253 IsAutoNestedBy
14254 \end_layout
14255
14256 \end_inset
14257
14258  Includes a comma-separated list of layouts after which this one should
14259  be nested.
14260  Only makes sense with regard to nestable layouts (such as environments).
14261  Must be ended by 
14262 \begin_inset Quotes eld
14263 \end_inset
14264
14265
14266 \begin_inset Flex Code
14267 status collapsed
14268
14269 \begin_layout Plain Layout
14270 EndIsAutoNestedBy
14271 \end_layout
14272
14273 \end_inset
14274
14275
14276 \begin_inset Quotes erd
14277 \end_inset
14278
14279 .
14280  See also 
14281 \begin_inset Flex Code
14282 status collapsed
14283
14284 \begin_layout Plain Layout
14285 AutoNests
14286 \end_layout
14287
14288 \end_inset
14289
14290 .
14291 \end_layout
14292
14293 \begin_layout Description
14294 \begin_inset Flex Code
14295 status collapsed
14296
14297 \begin_layout Plain Layout
14298 IsTocCaption
14299 \end_layout
14300
14301 \end_inset
14302
14303  [
14304 \begin_inset Flex Code
14305 status collapsed
14306
14307 \begin_layout Plain Layout
14308
14309 \emph on
14310 0
14311 \end_layout
14312
14313 \end_inset
14314
14315 ,
14316 \begin_inset space \thinspace{}
14317 \end_inset
14318
14319
14320 \begin_inset Flex Code
14321 status collapsed
14322
14323 \begin_layout Plain Layout
14324 1
14325 \end_layout
14326
14327 \end_inset
14328
14329 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14330  of its contents in its item in the table of contents.
14331  Otherwise, only the label, if it exists, appears.
14332 \end_layout
14333
14334 \begin_layout Description
14335 \begin_inset Flex Code
14336 status collapsed
14337
14338 \begin_layout Plain Layout
14339 ItemCommand
14340 \end_layout
14341
14342 \end_inset
14343
14344  [
14345 \begin_inset Flex Code
14346 status collapsed
14347
14348 \begin_layout Plain Layout
14349 string="item"
14350 \end_layout
14351
14352 \end_inset
14353
14354 ] The \SpecialChar LaTeX
14355  command sequence declaring an item in a list.
14356  The command is to be defined without the preceding backslash (the default
14357  is 
14358 \begin_inset Quotes eld
14359 \end_inset
14360
14361 item
14362 \begin_inset Quotes erd
14363 \end_inset
14364
14365 , resulting in 
14366 \begin_inset Flex Code
14367 status collapsed
14368
14369 \begin_layout Plain Layout
14370
14371 \backslash
14372 item
14373 \end_layout
14374
14375 \end_inset
14376
14377  in the \SpecialChar LaTeX
14378  output).
14379 \end_layout
14380
14381 \begin_layout Description
14382 \begin_inset Flex Code
14383 status collapsed
14384
14385 \begin_layout Plain Layout
14386 ItemSep
14387 \end_layout
14388
14389 \end_inset
14390
14391  [
14392 \begin_inset Flex Code
14393 status collapsed
14394
14395 \begin_layout Plain Layout
14396 float=0
14397 \end_layout
14398
14399 \end_inset
14400
14401 ] This provides extra space between paragraphs that have the same style.
14402  If you put other styles into an environment, each is separated with the
14403  environment's 
14404 \begin_inset Flex Code
14405 status collapsed
14406
14407 \begin_layout Plain Layout
14408 ParSep
14409 \end_layout
14410
14411 \end_inset
14412
14413 .
14414  But the whole items of the environment are additionally separated with
14415  this 
14416 \begin_inset Flex Code
14417 status collapsed
14418
14419 \begin_layout Plain Layout
14420 ItemSep
14421 \end_layout
14422
14423 \end_inset
14424
14425 .
14426  Note that this is a
14427 \emph on
14428  multiplier.
14429 \end_layout
14430
14431 \begin_layout Description
14432 \begin_inset Flex Code
14433 status collapsed
14434
14435 \begin_layout Plain Layout
14436 ItemTag
14437 \end_layout
14438
14439 \end_inset
14440
14441  [FIXME] (Used only with XML-type formats.)
14442 \end_layout
14443
14444 \begin_layout Description
14445 \begin_inset Flex Code
14446 status collapsed
14447
14448 \begin_layout Plain Layout
14449 KeepEmpty
14450 \end_layout
14451
14452 \end_inset
14453
14454  [
14455 \begin_inset Flex Code
14456 status collapsed
14457
14458 \begin_layout Plain Layout
14459
14460 \emph on
14461 0
14462 \end_layout
14463
14464 \end_inset
14465
14466 ,
14467 \begin_inset space \thinspace{}
14468 \end_inset
14469
14470
14471 \begin_inset Flex Code
14472 status collapsed
14473
14474 \begin_layout Plain Layout
14475 1
14476 \end_layout
14477
14478 \end_inset
14479
14480 ] Usually \SpecialChar LyX
14481  does not allow you to leave a paragraph empty, since it would
14482  lead to empty \SpecialChar LaTeX
14483  output.
14484  There are some cases where this could be desirable however: in a letter
14485  template, the required fields can be provided as empty fields, so that
14486  people do not forget them; in some special classes, a style can be used
14487  as some kind of break, which does not contain actual text.
14488 \end_layout
14489
14490 \begin_layout Description
14491 \begin_inset Flex Code
14492 status collapsed
14493
14494 \begin_layout Plain Layout
14495 LabelBottomsep
14496 \end_layout
14497
14498 \end_inset
14499
14500  [
14501 \begin_inset Flex Code
14502 status collapsed
14503
14504 \begin_layout Plain Layout
14505 float=0
14506 \end_layout
14507
14508 \end_inset
14509
14510 ] The vertical space between the label and the text body.
14511  Only used for labels that are above the text body (
14512 \begin_inset Flex Code
14513 status collapsed
14514
14515 \begin_layout Plain Layout
14516 Top_Environment
14517 \end_layout
14518
14519 \end_inset
14520
14521  and
14522 \begin_inset Newline newline
14523 \end_inset
14524
14525
14526 \begin_inset Flex Code
14527 status collapsed
14528
14529 \begin_layout Plain Layout
14530 Centered_Top_Environment
14531 \end_layout
14532
14533 \end_inset
14534
14535 ).
14536 \end_layout
14537
14538 \begin_layout Description
14539 \begin_inset Flex Code
14540 status collapsed
14541
14542 \begin_layout Plain Layout
14543 LabelCounter
14544 \end_layout
14545
14546 \end_inset
14547
14548  [
14549 \begin_inset Flex Code
14550 status collapsed
14551
14552 \begin_layout Plain Layout
14553 string=""
14554 \end_layout
14555
14556 \end_inset
14557
14558 ] The name of the counter for automatic numbering.
14559  In order to have the counter appear with your label, you will need to reference
14560  it in the 
14561 \begin_inset Flex Code
14562 status collapsed
14563
14564 \begin_layout Plain Layout
14565
14566 \family typewriter
14567 LabelString
14568 \end_layout
14569
14570 \end_inset
14571
14572 .
14573  This will work with 
14574 \begin_inset Flex Code
14575 status collapsed
14576
14577 \begin_layout Plain Layout
14578 LabelType
14579 \end_layout
14580
14581 \end_inset
14582
14583 s, 
14584 \begin_inset Flex Code
14585 status collapsed
14586
14587 \begin_layout Plain Layout
14588 Static
14589 \end_layout
14590
14591 \end_inset
14592
14593
14594 \begin_inset Flex Code
14595 status collapsed
14596
14597 \begin_layout Plain Layout
14598 Above
14599 \end_layout
14600
14601 \end_inset
14602
14603  and 
14604 \begin_inset Flex Code
14605 status collapsed
14606
14607 \begin_layout Plain Layout
14608 Centered
14609 \end_layout
14610
14611 \end_inset
14612
14613 , at least.
14614 \begin_inset Newline newline
14615 \end_inset
14616
14617 This 
14618 \emph on
14619 may
14620 \emph default
14621  also be given if 
14622 \begin_inset Flex Code
14623 status collapsed
14624
14625 \begin_layout Plain Layout
14626 LabelType
14627 \end_layout
14628
14629 \end_inset
14630
14631  is 
14632 \begin_inset Flex Code
14633 status collapsed
14634
14635 \begin_layout Plain Layout
14636 Enumerate
14637 \end_layout
14638
14639 \end_inset
14640
14641 , though this case is a bit complicated.
14642  Suppose you declare 
14643 \begin_inset Quotes eld
14644 \end_inset
14645
14646
14647 \begin_inset Flex Code
14648 status collapsed
14649
14650 \begin_layout Plain Layout
14651 LabelCounter myenum
14652 \end_layout
14653
14654 \end_inset
14655
14656
14657 \begin_inset Quotes erd
14658 \end_inset
14659
14660 .
14661  Then the actual counters used are 
14662 \begin_inset Flex Code
14663 status collapsed
14664
14665 \begin_layout Plain Layout
14666 myenumi
14667 \end_layout
14668
14669 \end_inset
14670
14671
14672 \begin_inset Flex Code
14673 status collapsed
14674
14675 \begin_layout Plain Layout
14676 myenumii
14677 \end_layout
14678
14679 \end_inset
14680
14681
14682 \begin_inset Flex Code
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686 myenumiii
14687 \end_layout
14688
14689 \end_inset
14690
14691  and 
14692 \begin_inset Flex Code
14693 status collapsed
14694
14695 \begin_layout Plain Layout
14696 myenumiv
14697 \end_layout
14698
14699 \end_inset
14700
14701 , much as in \SpecialChar LaTeX
14702 .
14703  These counters must all be declared separately.
14704 \begin_inset Newline newline
14705 \end_inset
14706
14707 See 
14708 \begin_inset CommandInset ref
14709 LatexCommand ref
14710 reference "subsec:Counters"
14711
14712 \end_inset
14713
14714  for details on counters.
14715 \end_layout
14716
14717 \begin_layout Description
14718 \begin_inset Flex Code
14719 status collapsed
14720
14721 \begin_layout Plain Layout
14722 LabelFont
14723 \end_layout
14724
14725 \end_inset
14726
14727  The font used for the label.
14728  See 
14729 \begin_inset CommandInset ref
14730 LatexCommand ref
14731 reference "subsec:Font-description"
14732
14733 \end_inset
14734
14735 .
14736 \end_layout
14737
14738 \begin_layout Description
14739 \begin_inset Flex Code
14740 status collapsed
14741
14742 \begin_layout Plain Layout
14743 LabelIndent
14744 \end_layout
14745
14746 \end_inset
14747
14748  [
14749 \begin_inset Flex Code
14750 status collapsed
14751
14752 \begin_layout Plain Layout
14753 string=""
14754 \end_layout
14755
14756 \end_inset
14757
14758 ] Text that indicates how far a label should be indented.
14759 \end_layout
14760
14761 \begin_layout Description
14762 \begin_inset Flex Code
14763 status collapsed
14764
14765 \begin_layout Plain Layout
14766 LabelSep
14767 \end_layout
14768
14769 \end_inset
14770
14771  [
14772 \begin_inset Flex Code
14773 status collapsed
14774
14775 \begin_layout Plain Layout
14776 string=""
14777 \end_layout
14778
14779 \end_inset
14780
14781 ] Text that indicates the amount of horizontal space between the label and
14782  the text body.
14783  Only used for labels that are not above the text body.
14784 \end_layout
14785
14786 \begin_layout Description
14787 \begin_inset Flex Code
14788 status collapsed
14789
14790 \begin_layout Plain Layout
14791 LabelString
14792 \end_layout
14793
14794 \end_inset
14795
14796  [
14797 \begin_inset Flex Code
14798 status collapsed
14799
14800 \begin_layout Plain Layout
14801 string=""
14802 \end_layout
14803
14804 \end_inset
14805
14806 ] The string used for the label.
14807  When 
14808 \begin_inset Flex Code
14809 status collapsed
14810
14811 \begin_layout Plain Layout
14812 LabelCounter
14813 \end_layout
14814
14815 \end_inset
14816
14817  is set, this string can be contain the special formatting commands described
14818  in 
14819 \begin_inset CommandInset ref
14820 LatexCommand ref
14821 reference "subsec:Counters"
14822
14823 \end_inset
14824
14825 .
14826 \end_layout
14827
14828 \begin_layout Description
14829 \begin_inset Flex Code
14830 status collapsed
14831
14832 \begin_layout Plain Layout
14833 LabelStringAppendix
14834 \end_layout
14835
14836 \end_inset
14837
14838  [
14839 \begin_inset Flex Code
14840 status collapsed
14841
14842 \begin_layout Plain Layout
14843 string=""
14844 \end_layout
14845
14846 \end_inset
14847
14848 ] This is used inside the appendix instead of
14849 \begin_inset Newline newline
14850 \end_inset
14851
14852
14853 \begin_inset Flex Code
14854 status collapsed
14855
14856 \begin_layout Plain Layout
14857 LabelString
14858 \end_layout
14859
14860 \end_inset
14861
14862 .
14863  Note that every 
14864 \begin_inset Flex Code
14865 status collapsed
14866
14867 \begin_layout Plain Layout
14868 LabelString
14869 \end_layout
14870
14871 \end_inset
14872
14873  statement resets
14874 \begin_inset Newline newline
14875 \end_inset
14876
14877
14878 \begin_inset Flex Code
14879 status collapsed
14880
14881 \begin_layout Plain Layout
14882 LabelStringAppendix
14883 \end_layout
14884
14885 \end_inset
14886
14887  too.
14888 \end_layout
14889
14890 \begin_layout Description
14891 \begin_inset Flex Code
14892 status collapsed
14893
14894 \begin_layout Plain Layout
14895 LabelTag
14896 \end_layout
14897
14898 \end_inset
14899
14900  [FIXME] (Used only with XML-type formats.)
14901 \end_layout
14902
14903 \begin_layout Description
14904 \begin_inset Flex Code
14905 status collapsed
14906
14907 \begin_layout Plain Layout
14908 LabelType
14909 \end_layout
14910
14911 \end_inset
14912
14913  [
14914 \begin_inset Flex Code
14915 status collapsed
14916
14917 \begin_layout Plain Layout
14918
14919 \emph on
14920 No_Label
14921 \emph default
14922 , Manual, Static, Above, 
14923 \begin_inset Newline newline
14924 \end_inset
14925
14926 Centered, Sensitive, Enumerate,
14927 \begin_inset Newline newline
14928 \end_inset
14929
14930 Itemize, Bibliography
14931 \end_layout
14932
14933 \end_inset
14934
14935 ]
14936 \end_layout
14937
14938 \begin_deeper
14939 \begin_layout Description
14940 \begin_inset Flex Code
14941 status collapsed
14942
14943 \begin_layout Plain Layout
14944 Manual
14945 \end_layout
14946
14947 \end_inset
14948
14949  means the label is the very first word (up to the first real blank).
14950  Use protected spaces if you want more than one word as the label.
14951  
14952 \end_layout
14953
14954 \begin_layout Description
14955 \begin_inset Flex Code
14956 status collapsed
14957
14958 \begin_layout Plain Layout
14959 Static
14960 \end_layout
14961
14962 \end_inset
14963
14964  means the label is simply what is declared as 
14965 \begin_inset Flex Code
14966 status collapsed
14967
14968 \begin_layout Plain Layout
14969 LabelString
14970 \end_layout
14971
14972 \end_inset
14973
14974 .
14975  This will be displayed 
14976 \begin_inset Quotes eld
14977 \end_inset
14978
14979 inline
14980 \begin_inset Quotes erd
14981 \end_inset
14982
14983 , at the beginning of the paragraph.
14984  If the 
14985 \begin_inset Flex Code
14986 status collapsed
14987
14988 \begin_layout Plain Layout
14989 LatexType
14990 \end_layout
14991
14992 \end_inset
14993
14994  is 
14995 \begin_inset Flex Code
14996 status collapsed
14997
14998 \begin_layout Plain Layout
14999 Environment
15000 \end_layout
15001
15002 \end_inset
15003
15004 , then it will be displayed only in the first paragraph of any sequence
15005  of paragraphs with the same 
15006 \begin_inset Flex Code
15007 status collapsed
15008
15009 \begin_layout Plain Layout
15010 Style
15011 \end_layout
15012
15013 \end_inset
15014
15015 .
15016 \end_layout
15017
15018 \begin_layout Description
15019 \begin_inset Flex Code
15020 status collapsed
15021
15022 \begin_layout Plain Layout
15023 Above
15024 \end_layout
15025
15026 \end_inset
15027
15028
15029 \begin_inset space ~
15030 \end_inset
15031
15032 and
15033 \begin_inset space ~
15034 \end_inset
15035
15036
15037 \begin_inset Flex Code
15038 status collapsed
15039
15040 \begin_layout Plain Layout
15041 Centered
15042 \end_layout
15043
15044 \end_inset
15045
15046  are special cases of 
15047 \begin_inset Flex Code
15048 status collapsed
15049
15050 \begin_layout Plain Layout
15051 Static
15052 \end_layout
15053
15054 \end_inset
15055
15056 .
15057  The label will be printed above the paragraph either at the beginning of
15058  the line or centered.
15059 \end_layout
15060
15061 \begin_layout Description
15062 \begin_inset Flex Code
15063 status collapsed
15064
15065 \begin_layout Plain Layout
15066 Sensitive
15067 \end_layout
15068
15069 \end_inset
15070
15071  is a special case for the caption-labels 
15072 \begin_inset Quotes eld
15073 \end_inset
15074
15075 Figure
15076 \begin_inset Quotes erd
15077 \end_inset
15078
15079  and 
15080 \begin_inset Quotes eld
15081 \end_inset
15082
15083 Table
15084 \begin_inset Quotes erd
15085 \end_inset
15086
15087 .
15088 \begin_inset Newline newline
15089 \end_inset
15090
15091
15092 \begin_inset Flex Code
15093 status collapsed
15094
15095 \begin_layout Plain Layout
15096 Sensitive
15097 \end_layout
15098
15099 \end_inset
15100
15101  means the (hardcoded) label string depends on the kind of float: It is
15102  hardcoded to be `FloatType N', where N is the value of the counter associated
15103  with the float.
15104  For the case that a caption is inserted outside of a float the 
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  will appear as 
15115 \begin_inset Quotes eld
15116 \end_inset
15117
15118 Senseless!
15119 \begin_inset Quotes erd
15120 \end_inset
15121
15122 .
15123 \end_layout
15124
15125 \begin_layout Description
15126 \begin_inset Flex Code
15127 status collapsed
15128
15129 \begin_layout Plain Layout
15130 Enumerate
15131 \end_layout
15132
15133 \end_inset
15134
15135  produces the usual sort of enumeration labels.
15136  The number type needs to be set in the 
15137 \family sans
15138 Counter
15139 \family default
15140 , see 
15141 \begin_inset CommandInset ref
15142 LatexCommand ref
15143 reference "subsec:Counters"
15144
15145 \end_inset
15146
15147 .
15148 \end_layout
15149
15150 \begin_layout Description
15151 \begin_inset Flex Code
15152 status collapsed
15153
15154 \begin_layout Plain Layout
15155 Itemize
15156 \end_layout
15157
15158 \end_inset
15159
15160  produces various bullets at the different levels.
15161  The bullet types displayed can be set via 
15162 \begin_inset Flex Noun
15163 status collapsed
15164
15165 \begin_layout Plain Layout
15166 Document\SpecialChar menuseparator
15167 Settings\SpecialChar menuseparator
15168 Bullets
15169 \end_layout
15170
15171 \end_inset
15172
15173 .
15174 \end_layout
15175
15176 \begin_layout Description
15177 \begin_inset Flex Code
15178 status collapsed
15179
15180 \begin_layout Plain Layout
15181 Bibliography
15182 \end_layout
15183
15184 \end_inset
15185
15186  should be used only with 
15187 \begin_inset Flex Code
15188 status collapsed
15189
15190 \begin_layout Plain Layout
15191 LatexType BibEnvironment
15192 \end_layout
15193
15194 \end_inset
15195
15196 .
15197 \end_layout
15198
15199 \end_deeper
15200 \begin_layout Description
15201 \begin_inset Flex Code
15202 status collapsed
15203
15204 \begin_layout Plain Layout
15205 LangPreamble
15206 \end_layout
15207
15208 \end_inset
15209
15210  Note that this will completely override any prior 
15211 \begin_inset Flex Code
15212 status collapsed
15213
15214 \begin_layout Plain Layout
15215 LangPreamble
15216 \end_layout
15217
15218 \end_inset
15219
15220  declaration for this style.
15221  Must end with 
15222 \begin_inset Quotes eld
15223 \end_inset
15224
15225
15226 \begin_inset Flex Code
15227 status collapsed
15228
15229 \begin_layout Plain Layout
15230 EndLangPreamble
15231 \end_layout
15232
15233 \end_inset
15234
15235
15236 \begin_inset Quotes erd
15237 \end_inset
15238
15239 .
15240  See 
15241 \begin_inset CommandInset ref
15242 LatexCommand ref
15243 reference "subsec:I18n"
15244
15245 \end_inset
15246
15247  for details on its use.
15248 \end_layout
15249
15250 \begin_layout Description
15251 \begin_inset Flex Code
15252 status collapsed
15253
15254 \begin_layout Plain Layout
15255 LatexName
15256 \end_layout
15257
15258 \end_inset
15259
15260  [
15261 \begin_inset Flex Code
15262 status collapsed
15263
15264 \begin_layout Plain Layout
15265 <name>
15266 \end_layout
15267
15268 \end_inset
15269
15270 ] The name of the corresponding \SpecialChar LaTeX
15271  stuff.
15272  Either the environment or command name.
15273 \end_layout
15274
15275 \begin_layout Description
15276 \begin_inset Flex Code
15277 status collapsed
15278
15279 \begin_layout Plain Layout
15280 LatexParam
15281 \end_layout
15282
15283 \end_inset
15284
15285  [
15286 \begin_inset Flex Code
15287 status collapsed
15288
15289 \begin_layout Plain Layout
15290 <parameter>
15291 \end_layout
15292
15293 \end_inset
15294
15295 ] An optional parameter for the corresponding 
15296 \begin_inset Flex Code
15297 status collapsed
15298
15299 \begin_layout Plain Layout
15300 LatexName
15301 \end_layout
15302
15303 \end_inset
15304
15305  stuff.
15306  This parameter cannot be changed from within \SpecialChar LyX
15307  (use 
15308 \begin_inset Flex Code
15309 status collapsed
15310
15311 \begin_layout Plain Layout
15312 Argument
15313 \end_layout
15314
15315 \end_inset
15316
15317  for customizable parameters).
15318  This will be output as is after all \SpecialChar LaTeX
15319  
15320 \begin_inset Flex Code
15321 status collapsed
15322
15323 \begin_layout Plain Layout
15324 Argument
15325 \end_layout
15326
15327 \end_inset
15328
15329 s.
15330 \end_layout
15331
15332 \begin_layout Description
15333 \begin_inset Flex Code
15334 status collapsed
15335
15336 \begin_layout Plain Layout
15337 LatexType
15338 \end_layout
15339
15340 \end_inset
15341
15342  [
15343 \begin_inset Flex Code
15344 status collapsed
15345
15346 \begin_layout Plain Layout
15347
15348 \emph on
15349 Paragraph
15350 \emph default
15351 , Command, Environment, Item_Environment,
15352 \begin_inset Newline newline
15353 \end_inset
15354
15355 List_Environment, Bib_Environment
15356 \end_layout
15357
15358 \end_inset
15359
15360 ] How the style should be translated into \SpecialChar LaTeX
15361 .
15362 \begin_inset Foot
15363 status collapsed
15364
15365 \begin_layout Plain Layout
15366 \begin_inset Flex Code
15367 status collapsed
15368
15369 \begin_layout Plain Layout
15370 LatexType
15371 \end_layout
15372
15373 \end_inset
15374
15375  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15376  Visit the SGML class files for specific examples.
15377 \end_layout
15378
15379 \end_inset
15380
15381
15382 \end_layout
15383
15384 \begin_deeper
15385 \begin_layout Description
15386 \begin_inset Flex Code
15387 status collapsed
15388
15389 \begin_layout Plain Layout
15390 Paragraph
15391 \end_layout
15392
15393 \end_inset
15394
15395  means nothing special.
15396 \end_layout
15397
15398 \begin_layout Description
15399 \begin_inset Flex Code
15400 status collapsed
15401
15402 \begin_layout Plain Layout
15403 Command
15404 \end_layout
15405
15406 \end_inset
15407
15408  means 
15409 \begin_inset Flex Code
15410 status collapsed
15411
15412 \begin_layout Plain Layout
15413
15414 \backslash
15415
15416 \emph on
15417 LatexName
15418 \emph default
15419 {\SpecialChar ldots
15420 }
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 Environment
15434 \end_layout
15435
15436 \end_inset
15437
15438  means 
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443
15444 \backslash
15445 begin{
15446 \emph on
15447 LatexName
15448 \emph default
15449 }\SpecialChar ldots
15450
15451 \backslash
15452 end{
15453 \emph on
15454 LatexName
15455 \emph default
15456 }
15457 \end_layout
15458
15459 \end_inset
15460
15461 .
15462  
15463 \end_layout
15464
15465 \begin_layout Description
15466 \begin_inset Flex Code
15467 status collapsed
15468
15469 \begin_layout Plain Layout
15470 Item_Environment
15471 \end_layout
15472
15473 \end_inset
15474
15475  is the same as 
15476 \begin_inset Flex Code
15477 status collapsed
15478
15479 \begin_layout Plain Layout
15480 Environment
15481 \end_layout
15482
15483 \end_inset
15484
15485 , except that an 
15486 \begin_inset Flex Code
15487 status collapsed
15488
15489 \begin_layout Plain Layout
15490
15491 \backslash
15492 item
15493 \end_layout
15494
15495 \end_inset
15496
15497  is generated for each paragraph of this environment.
15498  
15499 \end_layout
15500
15501 \begin_layout Description
15502 \begin_inset Flex Code
15503 status collapsed
15504
15505 \begin_layout Plain Layout
15506 List_Environment
15507 \end_layout
15508
15509 \end_inset
15510
15511  is the same as 
15512 \begin_inset Flex Code
15513 status collapsed
15514
15515 \begin_layout Plain Layout
15516 Item_Environment
15517 \end_layout
15518
15519 \end_inset
15520
15521 , except that
15522 \begin_inset Newline newline
15523 \end_inset
15524
15525
15526 \begin_inset Flex Code
15527 status collapsed
15528
15529 \begin_layout Plain Layout
15530 LabelWidthString
15531 \end_layout
15532
15533 \end_inset
15534
15535  is passed as an argument to the environment.
15536 \begin_inset Newline newline
15537 \end_inset
15538
15539
15540 \begin_inset Flex Code
15541 status collapsed
15542
15543 \begin_layout Plain Layout
15544 LabelWidthString
15545 \end_layout
15546
15547 \end_inset
15548
15549  can be defined in the 
15550 \begin_inset Flex Noun
15551 status collapsed
15552
15553 \begin_layout Plain Layout
15554 Edit\SpecialChar menuseparator
15555 Paragraph
15556 \begin_inset space ~
15557 \end_inset
15558
15559 settings
15560 \end_layout
15561
15562 \end_inset
15563
15564  dialog.
15565 \end_layout
15566
15567 \begin_layout Description
15568 \begin_inset Flex Code
15569 status collapsed
15570
15571 \begin_layout Plain Layout
15572 Bib_Environment
15573 \end_layout
15574
15575 \end_inset
15576
15577  is like 
15578 \begin_inset Flex Code
15579 status collapsed
15580
15581 \begin_layout Plain Layout
15582 Environment
15583 \end_layout
15584
15585 \end_inset
15586
15587  but adds the necessary mandatory argument (the longest label) to the begin
15588  statement of the bibliography environment:
15589 \begin_inset Newline newline
15590 \end_inset
15591
15592
15593 \begin_inset Flex Code
15594 status collapsed
15595
15596 \begin_layout Plain Layout
15597
15598 \backslash
15599 begin{thebibliography}{99}
15600 \end_layout
15601
15602 \end_inset
15603
15604 .
15605  It is therefore only useful for bibliography environments.
15606  The default longest label 
15607 \begin_inset Quotes eld
15608 \end_inset
15609
15610 99
15611 \begin_inset Quotes erd
15612 \end_inset
15613
15614  can be changed by the user in the paragraph settings of a bibliography
15615  item.
15616 \end_layout
15617
15618 \begin_layout Standard
15619 Putting the last few things together, the \SpecialChar LaTeX
15620  output will be either: 
15621 \end_layout
15622
15623 \begin_layout LyX-Code
15624
15625 \backslash
15626 LatexName[LatexParam]{\SpecialChar ldots
15627 }
15628 \end_layout
15629
15630 \begin_layout Standard
15631 or: 
15632 \end_layout
15633
15634 \begin_layout LyX-Code
15635
15636 \backslash
15637 begin{LatexName}[LatexParam] \SpecialChar ldots
15638  
15639 \backslash
15640 end{LatexName}.
15641 \end_layout
15642
15643 \begin_layout Standard
15644 depending upon the \SpecialChar LaTeX
15645  type.
15646 \end_layout
15647
15648 \end_deeper
15649 \begin_layout Description
15650 \begin_inset Flex Code
15651 status collapsed
15652
15653 \begin_layout Plain Layout
15654 LeftDelim
15655 \end_layout
15656
15657 \end_inset
15658
15659  [
15660 \begin_inset Flex Code
15661 status collapsed
15662
15663 \begin_layout Plain Layout
15664 string
15665 \end_layout
15666
15667 \end_inset
15668
15669 ] A string that is put at the beginning of the style content.
15670  A line break in the output can be indicated by 
15671 \begin_inset Flex Code
15672 status collapsed
15673
15674 \begin_layout Plain Layout
15675 <br/>
15676 \end_layout
15677
15678 \end_inset
15679
15680 .
15681 \end_layout
15682
15683 \begin_layout Description
15684 \begin_inset Flex Code
15685 status collapsed
15686
15687 \begin_layout Plain Layout
15688 LeftMargin
15689 \end_layout
15690
15691 \end_inset
15692
15693  [
15694 \begin_inset Flex Code
15695 status collapsed
15696
15697 \begin_layout Plain Layout
15698 string=""
15699 \end_layout
15700
15701 \end_inset
15702
15703 ] If you put styles into environments, the different 
15704 \begin_inset Flex Code
15705 status collapsed
15706
15707 \begin_layout Plain Layout
15708 LeftMargin
15709 \end_layout
15710
15711 \end_inset
15712
15713  are not simply added, but added with a factor 
15714 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15715 \end_inset
15716
15717 .
15718  Note that this parameter is also used when 
15719 \begin_inset Flex Code
15720 status collapsed
15721
15722 \begin_layout Plain Layout
15723 Margin
15724 \end_layout
15725
15726 \end_inset
15727
15728  is defined as 
15729 \begin_inset Flex Code
15730 status collapsed
15731
15732 \begin_layout Plain Layout
15733 Manual
15734 \end_layout
15735
15736 \end_inset
15737
15738  or 
15739 \begin_inset Flex Code
15740 status collapsed
15741
15742 \begin_layout Plain Layout
15743 Dynamic
15744 \end_layout
15745
15746 \end_inset
15747
15748 .
15749  Then it is added to the manual or dynamic margin.
15750 \begin_inset Newline newline
15751 \end_inset
15752
15753 For example 
15754 \begin_inset Quotes eld
15755 \end_inset
15756
15757
15758 \begin_inset Flex Code
15759 status collapsed
15760
15761 \begin_layout Plain Layout
15762 MM
15763 \end_layout
15764
15765 \end_inset
15766
15767
15768 \begin_inset Quotes erd
15769 \end_inset
15770
15771  means that the paragraph is indented with the width of 
15772 \begin_inset Quotes eld
15773 \end_inset
15774
15775
15776 \begin_inset Flex Code
15777 status collapsed
15778
15779 \begin_layout Plain Layout
15780 MM
15781 \end_layout
15782
15783 \end_inset
15784
15785
15786 \begin_inset Quotes erd
15787 \end_inset
15788
15789  in the normal font.
15790  You can get a negative width by prefixing the string with 
15791 \begin_inset Quotes eld
15792 \end_inset
15793
15794
15795 \begin_inset Flex Code
15796 status collapsed
15797
15798 \begin_layout Plain Layout
15799 -
15800 \end_layout
15801
15802 \end_inset
15803
15804
15805 \begin_inset Quotes erd
15806 \end_inset
15807
15808 .
15809  This way was chosen so that the look is the same with each used screen
15810  font.
15811 \end_layout
15812
15813 \begin_layout Description
15814 \begin_inset Flex Code
15815 status collapsed
15816
15817 \begin_layout Plain Layout
15818 Margin
15819 \end_layout
15820
15821 \end_inset
15822
15823  [
15824 \begin_inset Flex Code
15825 status collapsed
15826
15827 \begin_layout Plain Layout
15828
15829 \emph on
15830 Static
15831 \emph default
15832 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15833 \end_layout
15834
15835 \end_inset
15836
15837
15838 \begin_inset Newline newline
15839 \end_inset
15840
15841 The kind of margin that the style has on the left side.
15842 \end_layout
15843
15844 \begin_deeper
15845 \begin_layout Description
15846 \begin_inset Flex Code
15847 status collapsed
15848
15849 \begin_layout Plain Layout
15850 Static
15851 \end_layout
15852
15853 \end_inset
15854
15855  just means a fixed margin.
15856 \end_layout
15857
15858 \begin_layout Description
15859 \begin_inset Flex Code
15860 status collapsed
15861
15862 \begin_layout Plain Layout
15863 Manual
15864 \end_layout
15865
15866 \end_inset
15867
15868  means that the left margin depends on the string entered in the 
15869 \begin_inset Flex Noun
15870 status collapsed
15871
15872 \begin_layout Plain Layout
15873 Edit\SpecialChar menuseparator
15874 Paragraph
15875 \begin_inset space ~
15876 \end_inset
15877
15878 Settings
15879 \end_layout
15880
15881 \end_inset
15882
15883  dialog.
15884  This is used to typeset nice lists without tabulators.
15885 \end_layout
15886
15887 \begin_layout Description
15888 \begin_inset Flex Code
15889 status collapsed
15890
15891 \begin_layout Plain Layout
15892 Dynamic
15893 \end_layout
15894
15895 \end_inset
15896
15897  means that the margin depends on the size of the label.
15898  This is used for automatic enumerated headlines.
15899  It is obvious that the headline 
15900 \begin_inset Quotes eld
15901 \end_inset
15902
15903 5.4.3.2.1 Very long headline
15904 \begin_inset Quotes erd
15905 \end_inset
15906
15907  must have a wider left margin (as wide as 
15908 \begin_inset Quotes eld
15909 \end_inset
15910
15911 5.4.3.2.1
15912 \begin_inset Quotes erd
15913 \end_inset
15914
15915  plus the space) than 
15916 \begin_inset Quotes eld
15917 \end_inset
15918
15919 3.2 Very long headline
15920 \begin_inset Quotes erd
15921 \end_inset
15922
15923 , even if standard 
15924 \begin_inset Quotes eld
15925 \end_inset
15926
15927 word processors
15928 \begin_inset Quotes erd
15929 \end_inset
15930
15931  are not able to do this.
15932 \end_layout
15933
15934 \begin_layout Description
15935 \begin_inset Flex Code
15936 status collapsed
15937
15938 \begin_layout Plain Layout
15939 First_Dynamic
15940 \end_layout
15941
15942 \end_inset
15943
15944  is similar, but only the very first row of the paragraph is dynamic, while
15945  the others are static; this is used, for example, for descriptions.
15946 \end_layout
15947
15948 \begin_layout Description
15949 \begin_inset Flex Code
15950 status collapsed
15951
15952 \begin_layout Plain Layout
15953 Right_Address_Box
15954 \end_layout
15955
15956 \end_inset
15957
15958  means the margin is chosen in a way that the longest row of this paragraph
15959  fits to the right margin.
15960  This is used to typeset an address on the right edge of the page.
15961 \end_layout
15962
15963 \end_deeper
15964 \begin_layout Description
15965 \begin_inset Flex Code
15966 status collapsed
15967
15968 \begin_layout Plain Layout
15969 NeedProtect
15970 \end_layout
15971
15972 \end_inset
15973
15974  [
15975 \begin_inset Flex Code
15976 status collapsed
15977
15978 \begin_layout Plain Layout
15979
15980 \emph on
15981 0
15982 \end_layout
15983
15984 \end_inset
15985
15986 ,
15987 \begin_inset space \thinspace{}
15988 \end_inset
15989
15990
15991 \begin_inset Flex Code
15992 status collapsed
15993
15994 \begin_layout Plain Layout
15995 1
15996 \end_layout
15997
15998 \end_inset
15999
16000 ] Whether fragile commands in this style should be 
16001 \begin_inset Flex Code
16002 status collapsed
16003
16004 \begin_layout Plain Layout
16005
16006 \backslash
16007 protect
16008 \end_layout
16009
16010 \end_inset
16011
16012 'ed.
16013  (Note: This is 
16014 \emph on
16015 not
16016 \emph default
16017  whether this command should itself be protected.)
16018 \change_inserted -712698321 1523696949
16019
16020 \end_layout
16021
16022 \begin_layout Description
16023
16024 \change_inserted -712698321 1552395557
16025 \begin_inset Flex Code
16026 status collapsed
16027
16028 \begin_layout Plain Layout
16029
16030 \change_inserted -712698321 1523696950
16031 NeedCProtect
16032 \change_unchanged
16033
16034 \end_layout
16035
16036 \end_inset
16037
16038  [
16039 \begin_inset Flex Code
16040 status collapsed
16041
16042 \begin_layout Plain Layout
16043
16044 \change_inserted -712698321 1523696950
16045
16046 \emph on
16047 0
16048 \change_unchanged
16049
16050 \end_layout
16051
16052 \end_inset
16053
16054 ,
16055 \begin_inset space \thinspace{}
16056 \end_inset
16057
16058
16059 \begin_inset Flex Code
16060 status collapsed
16061
16062 \begin_layout Plain Layout
16063
16064 \change_inserted -712698321 1523696950
16065 1
16066 \change_unchanged
16067
16068 \end_layout
16069
16070 \end_inset
16071
16072 ] This causes macros that contain this layout to be protected with 
16073 \begin_inset Flex Code
16074 status collapsed
16075
16076 \begin_layout Plain Layout
16077
16078 \change_inserted -712698321 1523696950
16079
16080 \backslash
16081 cprotect
16082 \change_unchanged
16083
16084 \end_layout
16085
16086 \end_inset
16087
16088  (cf.
16089  package 
16090 \family sans
16091 cprotect
16092 \family default
16093 ) if necessary and thus allows (some) verbatim stuff in macros.
16094 \end_layout
16095
16096 \begin_layout Description
16097
16098 \change_inserted -712698321 1552395844
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103
16104 \change_inserted -712698321 1552395561
16105 NeedMBoxProtect
16106 \change_unchanged
16107
16108 \end_layout
16109
16110 \end_inset
16111
16112  [
16113 \begin_inset Flex Code
16114 status collapsed
16115
16116 \begin_layout Plain Layout
16117
16118 \change_inserted -712698321 1552395557
16119
16120 \emph on
16121 0
16122 \change_unchanged
16123
16124 \end_layout
16125
16126 \end_inset
16127
16128 ,
16129 \begin_inset space \thinspace{}
16130 \end_inset
16131
16132
16133 \begin_inset Flex Code
16134 status collapsed
16135
16136 \begin_layout Plain Layout
16137
16138 \change_inserted -712698321 1552395557
16139 1
16140 \change_unchanged
16141
16142 \end_layout
16143
16144 \end_inset
16145
16146 ] Whether specific commands in this style (such as 
16147 \begin_inset Flex Code
16148 status collapsed
16149
16150 \begin_layout Plain Layout
16151
16152 \change_inserted -712698321 1552395655
16153
16154 \backslash
16155 cite
16156 \change_unchanged
16157
16158 \end_layout
16159
16160 \end_inset
16161
16162  and 
16163 \begin_inset Flex Code
16164 status collapsed
16165
16166 \begin_layout Plain Layout
16167
16168 \change_inserted -712698321 1552395661
16169
16170 \backslash
16171 ref
16172 \change_unchanged
16173
16174 \end_layout
16175
16176 \end_inset
16177
16178 ) should be protected in an 
16179 \begin_inset Flex Code
16180 status collapsed
16181
16182 \begin_layout Plain Layout
16183
16184 \change_inserted -712698321 1552395631
16185
16186 \backslash
16187 mbox
16188 \change_unchanged
16189
16190 \end_layout
16191
16192 \end_inset
16193
16194 .
16195  This is particularly needed for styles that draw on 
16196 \family sans
16197 ulem
16198 \family default
16199  or 
16200 \family sans
16201 soul
16202 \family default
16203  commands which parse their content in complex ways.
16204 \change_unchanged
16205
16206 \end_layout
16207
16208 \begin_layout Description
16209 \begin_inset Flex Code
16210 status collapsed
16211
16212 \begin_layout Plain Layout
16213 Newline
16214 \end_layout
16215
16216 \end_inset
16217
16218  [
16219 \begin_inset Flex Code
16220 status collapsed
16221
16222 \begin_layout Plain Layout
16223 0
16224 \end_layout
16225
16226 \end_inset
16227
16228 ,
16229 \begin_inset space \thinspace{}
16230 \end_inset
16231
16232
16233 \begin_inset Flex Code
16234 status collapsed
16235
16236 \begin_layout Plain Layout
16237
16238 \emph on
16239 1
16240 \end_layout
16241
16242 \end_inset
16243
16244 ] Whether newlines are translated into \SpecialChar LaTeX
16245  newlines (
16246 \begin_inset Flex Code
16247 status collapsed
16248
16249 \begin_layout Plain Layout
16250
16251 \backslash
16252
16253 \backslash
16254
16255 \end_layout
16256
16257 \end_inset
16258
16259 ) or not.
16260  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16261  editing
16262  inside \SpecialChar LyX
16263 .
16264 \end_layout
16265
16266 \begin_layout Description
16267 \begin_inset Flex Code
16268 status collapsed
16269
16270 \begin_layout Plain Layout
16271 NextNoIndent
16272 \end_layout
16273
16274 \end_inset
16275
16276  [
16277 \begin_inset Flex Code
16278 status collapsed
16279
16280 \begin_layout Plain Layout
16281
16282 \emph on
16283 0
16284 \end_layout
16285
16286 \end_inset
16287
16288 ,
16289 \begin_inset space \thinspace{}
16290 \end_inset
16291
16292
16293 \begin_inset Flex Code
16294 status collapsed
16295
16296 \begin_layout Plain Layout
16297 1
16298 \end_layout
16299
16300 \end_inset
16301
16302 ] If set to true, and if 
16303 \begin_inset Flex Code
16304 status collapsed
16305
16306 \begin_layout Plain Layout
16307 DefaultStyle
16308 \end_layout
16309
16310 \end_inset
16311
16312  (usually 
16313 \begin_inset Flex Code
16314 status collapsed
16315
16316 \begin_layout Plain Layout
16317 Standard
16318 \end_layout
16319
16320 \end_inset
16321
16322 ) paragraphs are being indented, then the indentation of such a paragraph
16323  following one of this type will be suppressed.
16324  (So this will not affect the display of non-default paragraphs.)
16325 \end_layout
16326
16327 \begin_layout Description
16328 \begin_inset Flex Code
16329 status collapsed
16330
16331 \begin_layout Plain Layout
16332 ObsoletedBy
16333 \end_layout
16334
16335 \end_inset
16336
16337  [
16338 \begin_inset Flex Code
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342 <name>
16343 \end_layout
16344
16345 \end_inset
16346
16347 ] Name of a style that has replaced this style.
16348  This is used to rename a style, while keeping backward compatibility.
16349 \end_layout
16350
16351 \begin_layout Description
16352 \begin_inset Flex Code
16353 status collapsed
16354
16355 \begin_layout Plain Layout
16356 ParagraphGroup
16357 \end_layout
16358
16359 \end_inset
16360
16361  [
16362 \begin_inset Flex Code
16363 status collapsed
16364
16365 \begin_layout Plain Layout
16366 0
16367 \end_layout
16368
16369 \end_inset
16370
16371 ,
16372 \begin_inset space \thinspace{}
16373 \end_inset
16374
16375
16376 \begin_inset Flex Code
16377 status collapsed
16378
16379 \begin_layout Plain Layout
16380 1
16381 \end_layout
16382
16383 \end_inset
16384
16385 ] Determines whether consecutive paragraphs of the same type are treated
16386  as belonging together.
16387  This has the effect that the 
16388 \begin_inset Flex Code
16389 status collapsed
16390
16391 \begin_layout Plain Layout
16392 GuiLabel
16393 \end_layout
16394
16395 \end_inset
16396
16397  is only printed once before such a group.
16398  By default, this is true for 
16399 \begin_inset Flex Code
16400 status collapsed
16401
16402 \begin_layout Plain Layout
16403 LaTeXType
16404 \end_layout
16405
16406 \end_inset
16407
16408  
16409 \begin_inset Flex Code
16410 status collapsed
16411
16412 \begin_layout Plain Layout
16413 Environment
16414 \end_layout
16415
16416 \end_inset
16417
16418  and 
16419 \begin_inset Flex Code
16420 status collapsed
16421
16422 \begin_layout Plain Layout
16423 Bib_Environment
16424 \end_layout
16425
16426 \end_inset
16427
16428  and false for all other types.
16429 \end_layout
16430
16431 \begin_layout Description
16432 \begin_inset Flex Code
16433 status collapsed
16434
16435 \begin_layout Plain Layout
16436 ParbreakIsNewline
16437 \end_layout
16438
16439 \end_inset
16440
16441  [
16442 \begin_inset Flex Code
16443 status collapsed
16444
16445 \begin_layout Plain Layout
16446
16447 \emph on
16448 0
16449 \end_layout
16450
16451 \end_inset
16452
16453 ,
16454 \begin_inset space \thinspace{}
16455 \end_inset
16456
16457
16458 \begin_inset Flex Code
16459 status collapsed
16460
16461 \begin_layout Plain Layout
16462 1
16463 \end_layout
16464
16465 \end_inset
16466
16467 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16468  output,
16469  but only by a line break; together with 
16470 \begin_inset Flex Code
16471 status collapsed
16472
16473 \begin_layout Plain Layout
16474 PassThru 1
16475 \end_layout
16476
16477 \end_inset
16478
16479 , this allows to emulate a plain text editor (like the ERT inset).
16480 \end_layout
16481
16482 \begin_layout Description
16483 \begin_inset Flex Code
16484 status collapsed
16485
16486 \begin_layout Plain Layout
16487 ParIndent
16488 \end_layout
16489
16490 \end_inset
16491
16492  [
16493 \begin_inset Flex Code
16494 status collapsed
16495
16496 \begin_layout Plain Layout
16497 string=""
16498 \end_layout
16499
16500 \end_inset
16501
16502 ] The indent of the very first line of a paragraph.
16503  The
16504 \begin_inset Newline newline
16505 \end_inset
16506
16507
16508 \begin_inset Flex Code
16509 status collapsed
16510
16511 \begin_layout Plain Layout
16512 Parindent
16513 \end_layout
16514
16515 \end_inset
16516
16517  will be fixed for a certain style.
16518  The exception is the default style, since the indentation for these paragraphs
16519  can be prohibited with 
16520 \begin_inset Flex Code
16521 status collapsed
16522
16523 \begin_layout Plain Layout
16524 NextNoIndent
16525 \end_layout
16526
16527 \end_inset
16528
16529 .
16530  Also, 
16531 \begin_inset Flex Code
16532 status collapsed
16533
16534 \begin_layout Plain Layout
16535 Standard
16536 \end_layout
16537
16538 \end_inset
16539
16540  style paragraphs inside environments use the 
16541 \begin_inset Flex Code
16542 status collapsed
16543
16544 \begin_layout Plain Layout
16545 Parindent
16546 \end_layout
16547
16548 \end_inset
16549
16550  of the environment, not their native one.
16551  For example, 
16552 \begin_inset Flex Code
16553 status collapsed
16554
16555 \begin_layout Plain Layout
16556 Standard
16557 \end_layout
16558
16559 \end_inset
16560
16561  paragraphs inside an enumeration are not indented.
16562 \end_layout
16563
16564 \begin_layout Description
16565 \begin_inset Flex Code
16566 status collapsed
16567
16568 \begin_layout Plain Layout
16569 ParSep
16570 \end_layout
16571
16572 \end_inset
16573
16574  [
16575 \begin_inset Flex Code
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579 float=0
16580 \end_layout
16581
16582 \end_inset
16583
16584 ] The vertical space between two paragraphs of this style.
16585 \end_layout
16586
16587 \begin_layout Description
16588 \begin_inset Flex Code
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592 Parskip
16593 \end_layout
16594
16595 \end_inset
16596
16597  [
16598 \begin_inset Flex Code
16599 status collapsed
16600
16601 \begin_layout Plain Layout
16602 float=0
16603 \end_layout
16604
16605 \end_inset
16606
16607 ] \SpecialChar LyX
16608  allows the user to choose either 
16609 \begin_inset Quotes eld
16610 \end_inset
16611
16612 indent
16613 \begin_inset Quotes erd
16614 \end_inset
16615
16616  or 
16617 \begin_inset Quotes eld
16618 \end_inset
16619
16620 skip
16621 \begin_inset Quotes erd
16622 \end_inset
16623
16624  to separate paragraphs.
16625  When 
16626 \begin_inset Quotes eld
16627 \end_inset
16628
16629 indent
16630 \begin_inset Quotes erd
16631 \end_inset
16632
16633  is chosen, 
16634 \begin_inset Flex Code
16635 status collapsed
16636
16637 \begin_layout Plain Layout
16638 Parskip
16639 \end_layout
16640
16641 \end_inset
16642
16643  is ignored.
16644  When 
16645 \begin_inset Quotes eld
16646 \end_inset
16647
16648 skip
16649 \begin_inset Quotes erd
16650 \end_inset
16651
16652  is chosen, 
16653 \begin_inset Flex Code
16654 status collapsed
16655
16656 \begin_layout Plain Layout
16657 ParIndent
16658 \end_layout
16659
16660 \end_inset
16661
16662  is ignored and all paragraphs are separated by the 
16663 \begin_inset Flex Code
16664 status collapsed
16665
16666 \begin_layout Plain Layout
16667 Parskip
16668 \end_layout
16669
16670 \end_inset
16671
16672  argument.
16673  The vertical space is calculated with 
16674 \begin_inset Flex Code
16675 status collapsed
16676
16677 \begin_layout Plain Layout
16678 Parskip
16679 \begin_inset space ~
16680 \end_inset
16681
16682 * DefaultHeight
16683 \end_layout
16684
16685 \end_inset
16686
16687  where 
16688 \begin_inset Flex Code
16689 status collapsed
16690
16691 \begin_layout Plain Layout
16692 DefaultHeight
16693 \end_layout
16694
16695 \end_inset
16696
16697  is the height of a row with the normal font.
16698  This way, the look stays the same with different screen fonts.
16699 \end_layout
16700
16701 \begin_layout Description
16702 \begin_inset Flex Code
16703 status collapsed
16704
16705 \begin_layout Plain Layout
16706 PassThru
16707 \end_layout
16708
16709 \end_inset
16710
16711  [
16712 \begin_inset Flex Code
16713 status collapsed
16714
16715 \begin_layout Plain Layout
16716
16717 \emph on
16718 0
16719 \end_layout
16720
16721 \end_inset
16722
16723 ,
16724 \begin_inset space \thinspace{}
16725 \end_inset
16726
16727
16728 \begin_inset Flex Code
16729 status collapsed
16730
16731 \begin_layout Plain Layout
16732 1
16733 \end_layout
16734
16735 \end_inset
16736
16737 ] Whether the contents of this paragraph should be output in raw form, meaning
16738  without special translations that \SpecialChar LaTeX
16739  would require.
16740 \end_layout
16741
16742 \begin_layout Description
16743 \begin_inset Flex Code
16744 status collapsed
16745
16746 \begin_layout Plain Layout
16747 PassThruChars
16748 \end_layout
16749
16750 \end_inset
16751
16752  [
16753 \begin_inset Flex Code
16754 status collapsed
16755
16756 \begin_layout Plain Layout
16757 string
16758 \end_layout
16759
16760 \end_inset
16761
16762 ]
16763 \family typewriter
16764  
16765 \family default
16766 Defines individual characters that should be output in raw form, meaning
16767  without special translations that \SpecialChar LaTeX
16768  would require.
16769 \end_layout
16770
16771 \begin_layout Description
16772 \begin_inset Flex Code
16773 status collapsed
16774
16775 \begin_layout Plain Layout
16776 Preamble
16777 \end_layout
16778
16779 \end_inset
16780
16781  Information to be included in the \SpecialChar LaTeX
16782  preamble when this style is used.
16783  Used to define macros, load packages, etc., required by this particular
16784  style.
16785  Must end with 
16786 \begin_inset Quotes eld
16787 \end_inset
16788
16789
16790 \begin_inset Flex Code
16791 status collapsed
16792
16793 \begin_layout Plain Layout
16794 EndPreamble
16795 \end_layout
16796
16797 \end_inset
16798
16799
16800 \begin_inset Quotes erd
16801 \end_inset
16802
16803 .
16804 \end_layout
16805
16806 \begin_layout Description
16807 \begin_inset Flex Code
16808 status collapsed
16809
16810 \begin_layout Plain Layout
16811 RefPrefix
16812 \end_layout
16813
16814 \end_inset
16815
16816  [
16817 \begin_inset Flex Code
16818 status collapsed
16819
16820 \begin_layout Plain Layout
16821 string
16822 \end_layout
16823
16824 \end_inset
16825
16826 ] The prefix to use when creating labels referring to paragraphs of this
16827  type.
16828  This allows the use of formatted references.
16829 \end_layout
16830
16831 \begin_layout Description
16832 \begin_inset Flex Code
16833 status collapsed
16834
16835 \begin_layout Plain Layout
16836 Requires 
16837 \end_layout
16838
16839 \end_inset
16840
16841  [
16842 \begin_inset Flex Code
16843 status collapsed
16844
16845 \begin_layout Plain Layout
16846 string
16847 \end_layout
16848
16849 \end_inset
16850
16851 ] Whether the style requires the feature 
16852 \begin_inset Flex Code
16853 status collapsed
16854
16855 \begin_layout Plain Layout
16856 string
16857 \end_layout
16858
16859 \end_inset
16860
16861  (see 
16862 \begin_inset CommandInset ref
16863 LatexCommand ref
16864 reference "chap:List-of-functions"
16865
16866 \end_inset
16867
16868  for the list of features).
16869  If you require a package with specific options, you can additionally use
16870  
16871 \begin_inset Flex Code
16872 status collapsed
16873
16874 \begin_layout Plain Layout
16875 PackageOptions
16876 \end_layout
16877
16878 \end_inset
16879
16880  as a general text class parameter (see 
16881 \begin_inset CommandInset ref
16882 LatexCommand ref
16883 reference "subsec:General-text-class"
16884
16885 \end_inset
16886
16887 ).
16888 \end_layout
16889
16890 \begin_layout Description
16891 \begin_inset Flex Code
16892 status collapsed
16893
16894 \begin_layout Plain Layout
16895 ResetArgs
16896 \end_layout
16897
16898 \end_inset
16899
16900  [
16901 \begin_inset Flex Code
16902 status collapsed
16903
16904 \begin_layout Plain Layout
16905
16906 \emph on
16907 0
16908 \end_layout
16909
16910 \end_inset
16911
16912 ,
16913 \begin_inset Flex Code
16914 status collapsed
16915
16916 \begin_layout Plain Layout
16917 1
16918 \end_layout
16919
16920 \end_inset
16921
16922 ] Resets the \SpecialChar LaTeX
16923  arguments of this style (as defined via the 
16924 \begin_inset Flex Code
16925 status collapsed
16926
16927 \begin_layout Plain Layout
16928 Argument
16929 \end_layout
16930
16931 \end_inset
16932
16933  tag).
16934  This is useful if you have copied a style via 
16935 \begin_inset Flex Code
16936 status collapsed
16937
16938 \begin_layout Plain Layout
16939 CopyStyle
16940 \end_layout
16941
16942 \end_inset
16943
16944 , but you do not want to inherit its (required and optional) arguments.
16945 \end_layout
16946
16947 \begin_layout Description
16948 \begin_inset Flex Code
16949 status collapsed
16950
16951 \begin_layout Plain Layout
16952 ResumeCounter
16953 \end_layout
16954
16955 \end_inset
16956
16957  [
16958 \begin_inset Flex Code
16959 status collapsed
16960
16961 \begin_layout Plain Layout
16962
16963 \emph on
16964 0
16965 \end_layout
16966
16967 \end_inset
16968
16969 ,
16970 \begin_inset Flex Code
16971 status collapsed
16972
16973 \begin_layout Plain Layout
16974 1
16975 \end_layout
16976
16977 \end_inset
16978
16979 ] Resumes a counter that is usually reset at each new sequence of layouts.
16980  This is currently only useful when 
16981 \begin_inset Flex Code
16982 status collapsed
16983
16984 \begin_layout Plain Layout
16985 LabelType
16986 \end_layout
16987
16988 \end_inset
16989
16990  is 
16991 \begin_inset Flex Code
16992 status collapsed
16993
16994 \begin_layout Plain Layout
16995 Enumerate
16996 \end_layout
16997
16998 \end_inset
16999
17000 .
17001 \end_layout
17002
17003 \begin_layout Description
17004 \begin_inset Flex Code
17005 status collapsed
17006
17007 \begin_layout Plain Layout
17008 RightDelim
17009 \end_layout
17010
17011 \end_inset
17012
17013  [
17014 \begin_inset Flex Code
17015 status collapsed
17016
17017 \begin_layout Plain Layout
17018 string
17019 \end_layout
17020
17021 \end_inset
17022
17023 ] A string that is put at the end of the layout content.
17024  A line break in the output can be indicated by 
17025 \begin_inset Flex Code
17026 status collapsed
17027
17028 \begin_layout Plain Layout
17029 <br/>
17030 \end_layout
17031
17032 \end_inset
17033
17034 .
17035 \end_layout
17036
17037 \begin_layout Description
17038 \begin_inset Flex Code
17039 status collapsed
17040
17041 \begin_layout Plain Layout
17042 RightMargin
17043 \end_layout
17044
17045 \end_inset
17046
17047  [
17048 \begin_inset Flex Code
17049 status collapsed
17050
17051 \begin_layout Plain Layout
17052 string=""
17053 \end_layout
17054
17055 \end_inset
17056
17057 ] Similar to 
17058 \begin_inset Flex Code
17059 status collapsed
17060
17061 \begin_layout Plain Layout
17062 LeftMargin
17063 \end_layout
17064
17065 \end_inset
17066
17067 .
17068 \end_layout
17069
17070 \begin_layout Description
17071 \begin_inset Flex Code
17072 status collapsed
17073
17074 \begin_layout Plain Layout
17075 Spacing
17076 \end_layout
17077
17078 \end_inset
17079
17080  [
17081 \begin_inset Flex Code
17082 status collapsed
17083
17084 \begin_layout Plain Layout
17085
17086 \emph on
17087 single
17088 \end_layout
17089
17090 \end_inset
17091
17092
17093 \begin_inset Flex Code
17094 status collapsed
17095
17096 \begin_layout Plain Layout
17097 onehalf
17098 \end_layout
17099
17100 \end_inset
17101
17102
17103 \begin_inset Flex Code
17104 status collapsed
17105
17106 \begin_layout Plain Layout
17107 double
17108 \end_layout
17109
17110 \end_inset
17111
17112
17113 \begin_inset Flex Code
17114 status collapsed
17115
17116 \begin_layout Plain Layout
17117 other
17118 \begin_inset space ~
17119 \end_inset
17120
17121 <value>
17122 \end_layout
17123
17124 \end_inset
17125
17126 ] This defines what the default spacing should be in the style.
17127  The arguments 
17128 \begin_inset Flex Code
17129 status collapsed
17130
17131 \begin_layout Plain Layout
17132 single
17133 \end_layout
17134
17135 \end_inset
17136
17137
17138 \begin_inset Flex Code
17139 status collapsed
17140
17141 \begin_layout Plain Layout
17142 onehalf
17143 \end_layout
17144
17145 \end_inset
17146
17147  and 
17148 \begin_inset Flex Code
17149 status collapsed
17150
17151 \begin_layout Plain Layout
17152 double
17153 \end_layout
17154
17155 \end_inset
17156
17157  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17158  If you specify the argument 
17159 \begin_inset Flex Code
17160 status collapsed
17161
17162 \begin_layout Plain Layout
17163 other
17164 \end_layout
17165
17166 \end_inset
17167
17168 , then you must also provide a value argument which will be the actual multiplie
17169 r value.
17170  Note that, contrary to other parameters, 
17171 \begin_inset Flex Code
17172 status collapsed
17173
17174 \begin_layout Plain Layout
17175 Spacing
17176 \end_layout
17177
17178 \end_inset
17179
17180  implies the generation of specific \SpecialChar LaTeX
17181  code, using the \SpecialChar LaTeX
17182  package 
17183 \family roman
17184
17185 \begin_inset Flex Code
17186 status collapsed
17187
17188 \begin_layout Plain Layout
17189 setspace
17190 \end_layout
17191
17192 \end_inset
17193
17194 .
17195 \end_layout
17196
17197 \begin_layout Description
17198 \begin_inset Flex Code
17199 status collapsed
17200
17201 \begin_layout Plain Layout
17202 Spellcheck
17203 \end_layout
17204
17205 \end_inset
17206
17207  [
17208 \begin_inset Flex Code
17209 status collapsed
17210
17211 \begin_layout Plain Layout
17212 0
17213 \end_layout
17214
17215 \end_inset
17216
17217 ,
17218 \begin_inset space \thinspace{}
17219 \end_inset
17220
17221
17222 \begin_inset Flex Code
17223 status collapsed
17224
17225 \begin_layout Plain Layout
17226
17227 \emph on
17228 1
17229 \end_layout
17230
17231 \end_inset
17232
17233 ] Allow spell-checking paragraphs of this style.
17234  Default is true.
17235 \end_layout
17236
17237 \begin_layout Description
17238 \begin_inset Flex Code
17239 status collapsed
17240
17241 \begin_layout Plain Layout
17242 StepMasterCounter
17243 \end_layout
17244
17245 \end_inset
17246
17247  [
17248 \begin_inset Flex Code
17249 status collapsed
17250
17251 \begin_layout Plain Layout
17252
17253 \emph on
17254 0
17255 \end_layout
17256
17257 \end_inset
17258
17259 ,
17260 \begin_inset Flex Code
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264 1
17265 \end_layout
17266
17267 \end_inset
17268
17269 ] Steps the master counter of a given counter at the beginning of a new
17270  sequence of layouts.
17271  This is currently only useful when 
17272 \begin_inset Flex Code
17273 status collapsed
17274
17275 \begin_layout Plain Layout
17276 LabelType
17277 \end_layout
17278
17279 \end_inset
17280
17281  is 
17282 \begin_inset Flex Code
17283 status collapsed
17284
17285 \begin_layout Plain Layout
17286 Enumerate
17287 \end_layout
17288
17289 \end_inset
17290
17291 .
17292 \end_layout
17293
17294 \begin_layout Description
17295 \begin_inset Flex Code
17296 status collapsed
17297
17298 \begin_layout Plain Layout
17299 TextFont
17300 \end_layout
17301
17302 \end_inset
17303
17304  The font used for the text body .
17305  See 
17306 \begin_inset CommandInset ref
17307 LatexCommand ref
17308 reference "subsec:Font-description"
17309
17310 \end_inset
17311
17312 .
17313 \end_layout
17314
17315 \begin_layout Description
17316 \begin_inset Flex Code
17317 status collapsed
17318
17319 \begin_layout Plain Layout
17320 TocLevel
17321 \end_layout
17322
17323 \end_inset
17324
17325
17326 \series medium
17327  [
17328 \begin_inset Flex Code
17329 status collapsed
17330
17331 \begin_layout Plain Layout
17332
17333 \series medium
17334 int=3
17335 \end_layout
17336
17337 \end_inset
17338
17339 ]
17340 \series default
17341  The level of the style in the table of contents.
17342  This is used for automatic numbering of section headings.
17343 \end_layout
17344
17345 \begin_layout Description
17346 \begin_inset Flex Code
17347 status collapsed
17348
17349 \begin_layout Plain Layout
17350 ToggleIndent
17351 \end_layout
17352
17353 \end_inset
17354
17355  [
17356 \emph on
17357
17358 \begin_inset Flex Code
17359 status collapsed
17360
17361 \begin_layout Plain Layout
17362
17363 \emph on
17364 default
17365 \end_layout
17366
17367 \end_inset
17368
17369
17370 \emph default
17371
17372 \begin_inset Flex Code
17373 status collapsed
17374
17375 \begin_layout Plain Layout
17376 always
17377 \end_layout
17378
17379 \end_inset
17380
17381
17382 \begin_inset Flex Code
17383 status collapsed
17384
17385 \begin_layout Plain Layout
17386 never
17387 \end_layout
17388
17389 \end_inset
17390
17391 ] This tag determines whether the first line indentation of this paragraph
17392  can be toggled via the Paragraph settings dialog.
17393  If 
17394 \emph on
17395
17396 \begin_inset Flex Code
17397 status collapsed
17398
17399 \begin_layout Plain Layout
17400
17401 \emph off
17402 default
17403 \end_layout
17404
17405 \end_inset
17406
17407
17408 \emph default
17409  is set, indentation can be toggled if the document settings use 
17410 \begin_inset Quotes eld
17411 \end_inset
17412
17413 indent
17414 \begin_inset Quotes erd
17415 \end_inset
17416
17417  paragraph style, with 
17418 \begin_inset Flex Code
17419 status collapsed
17420
17421 \begin_layout Plain Layout
17422 always
17423 \end_layout
17424
17425 \end_inset
17426
17427 , indentation can always be toggled, notwithstanding the document settings,
17428  with 
17429 \begin_inset Flex Code
17430 status collapsed
17431
17432 \begin_layout Plain Layout
17433 never
17434 \end_layout
17435
17436 \end_inset
17437
17438 , indentation can never be toggled.
17439 \end_layout
17440
17441 \begin_layout Description
17442 \begin_inset Flex Code
17443 status collapsed
17444
17445 \begin_layout Plain Layout
17446 TopSep
17447 \end_layout
17448
17449 \end_inset
17450
17451  [
17452 \begin_inset Flex Code
17453 status collapsed
17454
17455 \begin_layout Plain Layout
17456 float=0
17457 \end_layout
17458
17459 \end_inset
17460
17461 ] The vertical space with which the very first of a chain of paragraphs
17462  with this style is separated from the previous paragraph.
17463  If the previous paragraph has another style, the separations are not simply
17464  added, but the maximum is taken.
17465 \end_layout
17466
17467 \begin_layout Subsection
17468 \begin_inset CommandInset label
17469 LatexCommand label
17470 name "subsec:I18n"
17471
17472 \end_inset
17473
17474 Internationalization of Paragraph Styles
17475 \end_layout
17476
17477 \begin_layout Standard
17478 \SpecialChar LyX
17479  has long supported internationalization of layout information, but, until
17480  version 2.0, this applied only to the user interface and not to, say, PDF
17481  output.
17482  Thus, French authors were forced to resort to ugly hacks if they wanted
17483  `
17484 \lang french
17485 Théorème
17486 \lang english
17487  1' instead of `Theorem 1'.
17488  Thanks to Georg Baum, that is no longer the case.
17489 \end_layout
17490
17491 \begin_layout Standard
17492 If a 
17493 \begin_inset Flex Code
17494 status collapsed
17495
17496 \begin_layout Plain Layout
17497 Style
17498 \end_layout
17499
17500 \end_inset
17501
17502  defines text that is to appear in the typeset document, it may use 
17503 \begin_inset Flex Code
17504 status collapsed
17505
17506 \begin_layout Plain Layout
17507 LangPreamble
17508 \end_layout
17509
17510 \end_inset
17511
17512  and 
17513 \begin_inset Flex Code
17514 status collapsed
17515
17516 \begin_layout Plain Layout
17517 BabelPreamble
17518 \end_layout
17519
17520 \end_inset
17521
17522  to support non-English and even multi-language documents correctly.
17523  The following excerpt (from the 
17524 \begin_inset Flex Code
17525 status collapsed
17526
17527 \begin_layout Plain Layout
17528 theorems-ams.inc
17529 \end_layout
17530
17531 \end_inset
17532
17533  file) shows how this works:
17534 \end_layout
17535
17536 \begin_layout LyX-Code
17537 Preamble
17538 \end_layout
17539
17540 \begin_deeper
17541 \begin_layout LyX-Code
17542   
17543 \backslash
17544 theoremstyle{remark}
17545 \end_layout
17546
17547 \begin_layout LyX-Code
17548   
17549 \backslash
17550 newtheorem{claim}[thm]{
17551 \backslash
17552 protect
17553 \backslash
17554 claimname}
17555 \end_layout
17556
17557 \begin_layout LyX-Code
17558 EndPreamble
17559 \end_layout
17560
17561 \begin_layout LyX-Code
17562 LangPreamble
17563 \end_layout
17564
17565 \begin_layout LyX-Code
17566   
17567 \backslash
17568 providecommand{
17569 \backslash
17570 claimname}{_(Claim)}
17571 \end_layout
17572
17573 \begin_layout LyX-Code
17574 EndLangPreamble
17575 \end_layout
17576
17577 \begin_layout LyX-Code
17578 BabelPreamble
17579 \end_layout
17580
17581 \begin_layout LyX-Code
17582     
17583 \backslash
17584 addto
17585 \backslash
17586 captions$$lang{
17587 \backslash
17588 renewcommand{
17589 \backslash
17590 claimname}{_(Claim)}}
17591 \end_layout
17592
17593 \begin_layout LyX-Code
17594 EndBabelPreamble
17595 \end_layout
17596
17597 \end_deeper
17598 \begin_layout Standard
17599 In principle, any legal \SpecialChar LaTeX
17600  may appear in the 
17601 \begin_inset Flex Code
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605 LangPreamble
17606 \end_layout
17607
17608 \end_inset
17609
17610  and 
17611 \begin_inset Flex Code
17612 status collapsed
17613
17614 \begin_layout Plain Layout
17615 BabelPreamble
17616 \end_layout
17617
17618 \end_inset
17619
17620  tags, but in practice they will typically look as they do here.
17621  The key to correct translation of the typeset text is the definition of
17622  the \SpecialChar LaTeX
17623  command 
17624 \begin_inset Flex Code
17625 status collapsed
17626
17627 \begin_layout Plain Layout
17628
17629 \backslash
17630 claimname
17631 \end_layout
17632
17633 \end_inset
17634
17635  and its use in 
17636 \begin_inset Flex Code
17637 status collapsed
17638
17639 \begin_layout Plain Layout
17640
17641 \backslash
17642 newtheorem
17643 \end_layout
17644
17645 \end_inset
17646
17647 .
17648  
17649 \end_layout
17650
17651 \begin_layout Standard
17652 The 
17653 \begin_inset Flex Code
17654 status collapsed
17655
17656 \begin_layout Plain Layout
17657 LangPreamble
17658 \end_layout
17659
17660 \end_inset
17661
17662  tag provides for internationalization based upon the overall language of
17663  the document.
17664  The contents of the tag will be included in the preamble, just as with
17665  the 
17666 \begin_inset Flex Code
17667 status collapsed
17668
17669 \begin_layout Plain Layout
17670 Preamble
17671 \end_layout
17672
17673 \end_inset
17674
17675  tag.
17676  What makes it special is the use of the 
17677 \begin_inset Quotes eld
17678 \end_inset
17679
17680 function
17681 \begin_inset Quotes erd
17682 \end_inset
17683
17684  
17685 \begin_inset Flex Code
17686 status collapsed
17687
17688 \begin_layout Plain Layout
17689 _()
17690 \end_layout
17691
17692 \end_inset
17693
17694 , which will be replaced, when \SpecialChar LyX
17695  produces \SpecialChar LaTeX
17696  output, with the translation of
17697  its argument into the document language.
17698 \end_layout
17699
17700 \begin_layout Standard
17701 The 
17702 \begin_inset Flex Code
17703 status collapsed
17704
17705 \begin_layout Plain Layout
17706 BabelPreamble
17707 \end_layout
17708
17709 \end_inset
17710
17711  tag is more complex, since it is meant to provide support for multi-language
17712  documents and so offers an interface to the 
17713 \begin_inset Flex Code
17714 status collapsed
17715
17716 \begin_layout Plain Layout
17717 babel
17718 \end_layout
17719
17720 \end_inset
17721
17722  package.
17723  Its contents will be added to the preamble once for each language that
17724  appears in the document.
17725  In this case, the argument to 
17726 \begin_inset Flex Code
17727 status collapsed
17728
17729 \begin_layout Plain Layout
17730 _()
17731 \end_layout
17732
17733 \end_inset
17734
17735  will be replaced with its translation into the language in question; the
17736  expression 
17737 \begin_inset Flex Code
17738 status collapsed
17739
17740 \begin_layout Plain Layout
17741 $$lang
17742 \end_layout
17743
17744 \end_inset
17745
17746  is replaced by the language name (as used by the babel package).
17747 \end_layout
17748
17749 \begin_layout Standard
17750 A German document that also included a French section would thus have the
17751  following in the preamble:
17752 \end_layout
17753
17754 \begin_layout LyX-Code
17755
17756 \backslash
17757 addto
17758 \backslash
17759 captionsfrench{
17760 \backslash
17761 renewcommand{
17762 \backslash
17763 claimname}{Affirmation}}
17764 \begin_inset Newline newline
17765 \end_inset
17766
17767
17768 \backslash
17769 addto
17770 \backslash
17771 captionsngerman{
17772 \backslash
17773 renewcommand{
17774 \backslash
17775 claimname}{Behauptung}}
17776 \begin_inset Newline newline
17777 \end_inset
17778
17779
17780 \backslash
17781 providecommand{
17782 \backslash
17783 claimname}{Behauptung}
17784 \end_layout
17785
17786 \begin_layout Standard
17787 \SpecialChar LaTeX
17788  and 
17789 \begin_inset Flex Code
17790 status collapsed
17791
17792 \begin_layout Plain Layout
17793 babel
17794 \end_layout
17795
17796 \end_inset
17797
17798  will then conspire to produce the correct text in the output.
17799 \end_layout
17800
17801 \begin_layout Standard
17802 One important point to note here is that the translations are provided by
17803  \SpecialChar LyX
17804  itself, through the file 
17805 \begin_inset Flex Code
17806 status collapsed
17807
17808 \begin_layout Plain Layout
17809 layouttranslations
17810 \end_layout
17811
17812 \end_inset
17813
17814 .
17815  This means, in effect, that 
17816 \begin_inset Flex Code
17817 status collapsed
17818
17819 \begin_layout Plain Layout
17820 LangPreamble
17821 \end_layout
17822
17823 \end_inset
17824
17825  and 
17826 \begin_inset Flex Code
17827 status collapsed
17828
17829 \begin_layout Plain Layout
17830 BabelPreamble
17831 \end_layout
17832
17833 \end_inset
17834
17835  are really only of use in layout files that are provided with \SpecialChar LyX
17836 , since text
17837  entered in user-created layout files will not be seen by \SpecialChar LyX
17838 's internationalizatio
17839 n routines unless the 
17840 \begin_inset Flex Code
17841 status collapsed
17842
17843 \begin_layout Plain Layout
17844 layouttranslations
17845 \end_layout
17846
17847 \end_inset
17848
17849  file is modified accordingly.
17850  That said, however, any layout created with the intention that it will
17851  be included with \SpecialChar LyX
17852  should use these tags where appropriate.
17853  Please note that the paragraph style translations provided by \SpecialChar LyX
17854  will never
17855  change with a minor update (e.
17856 \begin_inset space \thinspace{}
17857 \end_inset
17858
17859 g.
17860 \begin_inset space \space{}
17861 \end_inset
17862
17863 from version 2.1.x to 2.1.y).
17864  It is however quite likely that a major update (e.
17865 \begin_inset space \thinspace{}
17866 \end_inset
17867
17868 g.
17869 \begin_inset space \space{}
17870 \end_inset
17871
17872 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17873 \end_layout
17874
17875 \begin_layout Subsection
17876 Floats
17877 \begin_inset CommandInset label
17878 LatexCommand label
17879 name "subsec:Floats"
17880
17881 \end_inset
17882
17883
17884 \end_layout
17885
17886 \begin_layout Standard
17887 It is necessary to define the floats (
17888 \begin_inset Flex Noun
17889 status collapsed
17890
17891 \begin_layout Plain Layout
17892 figure
17893 \end_layout
17894
17895 \end_inset
17896
17897
17898 \begin_inset Flex Noun
17899 status collapsed
17900
17901 \begin_layout Plain Layout
17902 table
17903 \end_layout
17904
17905 \end_inset
17906
17907 , \SpecialChar ldots
17908 ) in the text class itself.
17909  Standard floats are included in the file 
17910 \begin_inset Flex Code
17911 status collapsed
17912
17913 \begin_layout Plain Layout
17914 stdfloats.inc
17915 \end_layout
17916
17917 \end_inset
17918
17919 , so you may have to do no more than add
17920 \end_layout
17921
17922 \begin_layout LyX-Code
17923 Input stdfloats.inc
17924 \end_layout
17925
17926 \begin_layout Standard
17927 to your layout file.
17928  If you want to implement a text class that proposes some other float types
17929  (like the AGU class bundled with \SpecialChar LyX
17930 ), the information below will hopefully
17931  help you:
17932 \end_layout
17933
17934 \begin_layout Description
17935 \begin_inset Flex Code
17936 status collapsed
17937
17938 \begin_layout Plain Layout
17939 AllowedPlacement
17940 \end_layout
17941
17942 \end_inset
17943
17944  [
17945 \begin_inset Flex Code
17946 status collapsed
17947
17948 \begin_layout Plain Layout
17949 string
17950 \end_layout
17951
17952 \end_inset
17953
17954 =!htbpH] Allowed placement options for this float type.
17955  The value is a string of placement characters.
17956  Possible characters include: 
17957 \emph on
17958 h
17959 \emph default
17960  (
17961 \begin_inset Quotes eld
17962 \end_inset
17963
17964 here if possible
17965 \begin_inset Quotes erd
17966 \end_inset
17967
17968 ), 
17969 \emph on
17970 t
17971 \emph default
17972  (
17973 \begin_inset Quotes eld
17974 \end_inset
17975
17976 top of page
17977 \begin_inset Quotes erd
17978 \end_inset
17979
17980 ), 
17981 \emph on
17982 b
17983 \emph default
17984  (
17985 \begin_inset Quotes eld
17986 \end_inset
17987
17988 bottom of page
17989 \begin_inset Quotes erd
17990 \end_inset
17991
17992 ), 
17993 \emph on
17994 p
17995 \emph default
17996  (
17997 \begin_inset Quotes eld
17998 \end_inset
17999
18000 page of floats
18001 \begin_inset Quotes erd
18002 \end_inset
18003
18004 ), 
18005 \emph on
18006 H
18007 \emph default
18008  (
18009 \begin_inset Quotes eld
18010 \end_inset
18011
18012 here definitely
18013 \begin_inset Quotes erd
18014 \end_inset
18015
18016 ) and 
18017 \emph on
18018 !
18019 \emph default
18020  (
18021 \begin_inset Quotes eld
18022 \end_inset
18023
18024 ignore LaTeX rules
18025 \begin_inset Quotes erd
18026 \end_inset
18027
18028 ).
18029  The order of the characters in the string does not matter.
18030  If no placement options are allowed, use the string 
18031 \emph on
18032 none
18033 \emph default
18034 .
18035 \end_layout
18036
18037 \begin_layout Description
18038 \begin_inset Flex Code
18039 status collapsed
18040
18041 \begin_layout Plain Layout
18042 AllowsSideways
18043 \end_layout
18044
18045 \end_inset
18046
18047  [
18048 \begin_inset Flex Code
18049 status collapsed
18050
18051 \begin_layout Plain Layout
18052
18053 \emph off
18054 0
18055 \end_layout
18056
18057 \end_inset
18058
18059 ,
18060 \begin_inset space \thinspace{}
18061 \end_inset
18062
18063
18064 \emph on
18065
18066 \begin_inset Flex Code
18067 status collapsed
18068
18069 \begin_layout Plain Layout
18070
18071 \emph on
18072 1
18073 \end_layout
18074
18075 \end_inset
18076
18077
18078 \emph default
18079 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
18080 -package 
18081 \family typewriter
18082 rotfloat
18083 \family default
18084  (sidewaysfloat).
18085  Set to 
18086 \begin_inset Flex Code
18087 status collapsed
18088
18089 \begin_layout Plain Layout
18090 0
18091 \end_layout
18092
18093 \end_inset
18094
18095  if the float does not support this feature.
18096 \end_layout
18097
18098 \begin_layout Description
18099 \begin_inset Flex Code
18100 status collapsed
18101
18102 \begin_layout Plain Layout
18103 AllowsWide
18104 \end_layout
18105
18106 \end_inset
18107
18108  [
18109 \begin_inset Flex Code
18110 status collapsed
18111
18112 \begin_layout Plain Layout
18113
18114 \emph off
18115 0
18116 \end_layout
18117
18118 \end_inset
18119
18120 ,
18121 \begin_inset space \thinspace{}
18122 \end_inset
18123
18124
18125 \emph on
18126
18127 \begin_inset Flex Code
18128 status collapsed
18129
18130 \begin_layout Plain Layout
18131
18132 \emph on
18133 1
18134 \end_layout
18135
18136 \end_inset
18137
18138
18139 \emph default
18140 ] Defines whether the float has a starred variant that spans columns in
18141  a two column paragraph.
18142  Set to 
18143 \begin_inset Flex Code
18144 status collapsed
18145
18146 \begin_layout Plain Layout
18147 0
18148 \end_layout
18149
18150 \end_inset
18151
18152  if the float does not support this feature.
18153 \end_layout
18154
18155 \begin_layout Description
18156 \begin_inset Flex Code
18157 status collapsed
18158
18159 \begin_layout Plain Layout
18160 Extension
18161 \end_layout
18162
18163 \end_inset
18164
18165  [
18166 \begin_inset Flex Code
18167 status collapsed
18168
18169 \begin_layout Plain Layout
18170 string
18171 \end_layout
18172
18173 \end_inset
18174
18175 =
18176 \begin_inset Quotes erd
18177 \end_inset
18178
18179
18180 \begin_inset Quotes erd
18181 \end_inset
18182
18183 ] The file name extension of an auxiliary file for the list of figures (or
18184  whatever).
18185  \SpecialChar LaTeX
18186  writes the captions to this file.
18187 \end_layout
18188
18189 \begin_layout Description
18190 \begin_inset Flex Code
18191 status collapsed
18192
18193 \begin_layout Plain Layout
18194 GuiName
18195 \end_layout
18196
18197 \end_inset
18198
18199  [
18200 \begin_inset Flex Code
18201 status collapsed
18202
18203 \begin_layout Plain Layout
18204 string
18205 \end_layout
18206
18207 \end_inset
18208
18209 =
18210 \begin_inset Quotes erd
18211 \end_inset
18212
18213
18214 \begin_inset Quotes erd
18215 \end_inset
18216
18217 ] The string that will be used in the menus and also for the caption.
18218  This is translated to the current language if babel is used.
18219 \end_layout
18220
18221 \begin_layout Description
18222 \begin_inset Flex Code
18223 status collapsed
18224
18225 \begin_layout Plain Layout
18226 HTML*
18227 \end_layout
18228
18229 \end_inset
18230
18231  These tags control the XHTML output.
18232  See 
18233 \begin_inset CommandInset ref
18234 LatexCommand ref
18235 reference "sec:Tags-for-XHTML"
18236
18237 \end_inset
18238
18239 .
18240 \end_layout
18241
18242 \begin_layout Description
18243 \begin_inset Flex Code
18244 status collapsed
18245
18246 \begin_layout Plain Layout
18247 IsPredefined
18248 \end_layout
18249
18250 \end_inset
18251
18252  [
18253 \emph on
18254
18255 \begin_inset Flex Code
18256 status collapsed
18257
18258 \begin_layout Plain Layout
18259 0
18260 \end_layout
18261
18262 \end_inset
18263
18264
18265 \emph default
18266 ,
18267 \begin_inset space \thinspace{}
18268 \end_inset
18269
18270
18271 \begin_inset Flex Code
18272 status collapsed
18273
18274 \begin_layout Plain Layout
18275 1
18276 \end_layout
18277
18278 \end_inset
18279
18280 ] Indicates whether the float is already defined in the document class or
18281  if instead the \SpecialChar LaTeX
18282  package 
18283 \begin_inset Flex Code
18284 status collapsed
18285
18286 \begin_layout Plain Layout
18287 float
18288 \end_layout
18289
18290 \end_inset
18291
18292  needs to be loaded to define it on-the-fly.
18293  The default is 
18294 \begin_inset Flex Code
18295 status collapsed
18296
18297 \begin_layout Plain Layout
18298 0
18299 \end_layout
18300
18301 \end_inset
18302
18303 , which means: 
18304 \begin_inset Flex Code
18305 status collapsed
18306
18307 \begin_layout Plain Layout
18308 float
18309 \end_layout
18310
18311 \end_inset
18312
18313  is used.
18314  It should be set to 
18315 \begin_inset Flex Code
18316 status collapsed
18317
18318 \begin_layout Plain Layout
18319 1
18320 \end_layout
18321
18322 \end_inset
18323
18324  if the float is already defined by the \SpecialChar LaTeX
18325  document class.
18326 \end_layout
18327
18328 \begin_layout Description
18329 \begin_inset Flex Code
18330 status collapsed
18331
18332 \begin_layout Plain Layout
18333 ListCommand
18334 \end_layout
18335
18336 \end_inset
18337
18338  [
18339 \begin_inset Flex Code
18340 status collapsed
18341
18342 \begin_layout Plain Layout
18343 string
18344 \end_layout
18345
18346 \end_inset
18347
18348 =
18349 \begin_inset Quotes erd
18350 \end_inset
18351
18352
18353 \begin_inset Quotes erd
18354 \end_inset
18355
18356 ] The command used to generate a list of floats of this type; the leading
18357  `
18358 \backslash
18359 ' must be omitted.
18360  This 
18361 \emph on
18362 must
18363 \emph default
18364  be given if 
18365 \begin_inset Flex Code
18366 status collapsed
18367
18368 \begin_layout Plain Layout
18369 UsesFloatPkg
18370 \end_layout
18371
18372 \end_inset
18373
18374  is false, since there is no standard way to generate this command.
18375  It is ignored if 
18376 \begin_inset Flex Code
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380 UsesFloatPkg
18381 \end_layout
18382
18383 \end_inset
18384
18385  is true, since in that case there is a standard way to define the command.
18386 \end_layout
18387
18388 \begin_layout Description
18389 \begin_inset Flex Code
18390 status collapsed
18391
18392 \begin_layout Plain Layout
18393 ListName
18394 \end_layout
18395
18396 \end_inset
18397
18398  [
18399 \begin_inset Flex Code
18400 status collapsed
18401
18402 \begin_layout Plain Layout
18403 string
18404 \end_layout
18405
18406 \end_inset
18407
18408 =
18409 \begin_inset Quotes erd
18410 \end_inset
18411
18412
18413 \begin_inset Quotes erd
18414 \end_inset
18415
18416 ] A title for a list of floats of this kind (list of figures, tables, or
18417  whatever).
18418  It is used for the screen label within \SpecialChar LyX
18419 , it is used by \SpecialChar LaTeX
18420  for the title and
18421  it is used as the title in the XHTML output.
18422  It will be translated to the document language.
18423 \end_layout
18424
18425 \begin_layout Description
18426 \begin_inset Flex Code
18427 status collapsed
18428
18429 \begin_layout Plain Layout
18430 NumberWithin
18431 \end_layout
18432
18433 \end_inset
18434
18435  [
18436 \begin_inset Flex Code
18437 status collapsed
18438
18439 \begin_layout Plain Layout
18440 string
18441 \end_layout
18442
18443 \end_inset
18444
18445 =
18446 \begin_inset Quotes erd
18447 \end_inset
18448
18449
18450 \begin_inset Quotes erd
18451 \end_inset
18452
18453 ] This (optional) argument determines whether floats of this class will
18454  be numbered within some sectional unit of the document.
18455  For example, if 
18456 \begin_inset Flex Code
18457 status collapsed
18458
18459 \begin_layout Plain Layout
18460 NumberWithin
18461 \end_layout
18462
18463 \end_inset
18464
18465  is set to 
18466 \begin_inset Quotes eld
18467 \end_inset
18468
18469
18470 \begin_inset Flex Code
18471 status collapsed
18472
18473 \begin_layout Plain Layout
18474 chapter
18475 \end_layout
18476
18477 \end_inset
18478
18479
18480 \begin_inset Quotes erd
18481 \end_inset
18482
18483 , the floats will be numbered within chapters.
18484  
18485 \end_layout
18486
18487 \begin_layout Description
18488 \begin_inset Flex Code
18489 status collapsed
18490
18491 \begin_layout Plain Layout
18492 Placement
18493 \end_layout
18494
18495 \end_inset
18496
18497  [
18498 \begin_inset Flex Code
18499 status collapsed
18500
18501 \begin_layout Plain Layout
18502 string
18503 \end_layout
18504
18505 \end_inset
18506
18507 =
18508 \begin_inset Quotes erd
18509 \end_inset
18510
18511
18512 \begin_inset Quotes erd
18513 \end_inset
18514
18515 ] The default placement for the given class of floats.
18516  The string should be as in standard \SpecialChar LaTeX
18517
18518 \begin_inset Flex Code
18519 status collapsed
18520
18521 \begin_layout Plain Layout
18522 t
18523 \end_layout
18524
18525 \end_inset
18526
18527
18528 \begin_inset Flex Code
18529 status collapsed
18530
18531 \begin_layout Plain Layout
18532 b
18533 \end_layout
18534
18535 \end_inset
18536
18537
18538 \begin_inset Flex Code
18539 status collapsed
18540
18541 \begin_layout Plain Layout
18542 p
18543 \end_layout
18544
18545 \end_inset
18546
18547  and 
18548 \begin_inset Flex Code
18549 status collapsed
18550
18551 \begin_layout Plain Layout
18552 h
18553 \end_layout
18554
18555 \end_inset
18556
18557  for top, bottom, page, and here, respectively.
18558 \begin_inset Foot
18559 status collapsed
18560
18561 \begin_layout Plain Layout
18562 Note that the order of these letters in the string is irrelevant, like in
18563  \SpecialChar LaTeX
18564 .
18565 \end_layout
18566
18567 \end_inset
18568
18569  On top of that there is a new type, 
18570 \begin_inset Flex Code
18571 status collapsed
18572
18573 \begin_layout Plain Layout
18574 H
18575 \end_layout
18576
18577 \end_inset
18578
18579 , which does not really correspond to a float, since it means: put it 
18580 \begin_inset Quotes eld
18581 \end_inset
18582
18583 here
18584 \begin_inset Quotes erd
18585 \end_inset
18586
18587  and nowhere else.
18588  Note however that the 
18589 \begin_inset Flex Code
18590 status collapsed
18591
18592 \begin_layout Plain Layout
18593 H
18594 \end_layout
18595
18596 \end_inset
18597
18598  specifier is special and, because of implementation details, cannot be
18599  used in non-built in float types.
18600  If you do not understand what this means, just use 
18601 \begin_inset Quotes eld
18602 \end_inset
18603
18604
18605 \begin_inset Flex Code
18606 status collapsed
18607
18608 \begin_layout Plain Layout
18609 tbp
18610 \end_layout
18611
18612 \end_inset
18613
18614
18615 \begin_inset Quotes erd
18616 \end_inset
18617
18618 .
18619 \end_layout
18620
18621 \begin_layout Description
18622 \begin_inset Flex Code
18623 status collapsed
18624
18625 \begin_layout Plain Layout
18626 RefPrefix
18627 \end_layout
18628
18629 \end_inset
18630
18631  [
18632 \begin_inset Flex Code
18633 status collapsed
18634
18635 \begin_layout Plain Layout
18636 string
18637 \end_layout
18638
18639 \end_inset
18640
18641 ] The prefix to use when creating labels referring to floats of this type.
18642  This allows the use of formatted references.
18643  Note that you can remove any 
18644 \begin_inset Flex Code
18645 status collapsed
18646
18647 \begin_layout Plain Layout
18648 RefPrefix
18649 \end_layout
18650
18651 \end_inset
18652
18653  set by a copied style by using the special value 
18654 \begin_inset Quotes eld
18655 \end_inset
18656
18657 OFF
18658 \begin_inset Quotes erd
18659 \end_inset
18660
18661 , which must be all caps.
18662 \change_inserted -712698321 1565605014
18663
18664 \end_layout
18665
18666 \begin_layout Description
18667
18668 \change_inserted -712698321 1565605014
18669 \begin_inset Flex Code
18670 status collapsed
18671
18672 \begin_layout Plain Layout
18673
18674 \change_inserted -712698321 1565605014
18675 Requires
18676 \change_unchanged
18677
18678 \end_layout
18679
18680 \end_inset
18681
18682  [
18683 \begin_inset Flex Code
18684 status collapsed
18685
18686 \begin_layout Plain Layout
18687
18688 \change_inserted -712698321 1565605014
18689 string
18690 \change_unchanged
18691
18692 \end_layout
18693
18694 \end_inset
18695
18696 ] As with paragraph styles, see 
18697 \begin_inset CommandInset ref
18698 LatexCommand ref
18699 reference "subsec:Paragraph-Styles"
18700
18701 \end_inset
18702
18703 .
18704 \change_unchanged
18705
18706 \end_layout
18707
18708 \begin_layout Description
18709 \begin_inset Flex Code
18710 status collapsed
18711
18712 \begin_layout Plain Layout
18713 Style
18714 \end_layout
18715
18716 \end_inset
18717
18718  [
18719 \begin_inset Flex Code
18720 status collapsed
18721
18722 \begin_layout Plain Layout
18723 string
18724 \end_layout
18725
18726 \end_inset
18727
18728 =
18729 \begin_inset Quotes erd
18730 \end_inset
18731
18732
18733 \begin_inset Quotes erd
18734 \end_inset
18735
18736 ] The style used when defining the float using 
18737 \begin_inset Flex Code
18738 status collapsed
18739
18740 \begin_layout Plain Layout
18741
18742 \backslash
18743 newfloat
18744 \end_layout
18745
18746 \end_inset
18747
18748 .
18749 \end_layout
18750
18751 \begin_layout Description
18752 \begin_inset Flex Code
18753 status collapsed
18754
18755 \begin_layout Plain Layout
18756 Type
18757 \end_layout
18758
18759 \end_inset
18760
18761  [
18762 \begin_inset Flex Code
18763 status collapsed
18764
18765 \begin_layout Plain Layout
18766 string
18767 \end_layout
18768
18769 \end_inset
18770
18771 =
18772 \begin_inset Quotes erd
18773 \end_inset
18774
18775
18776 \begin_inset Quotes erd
18777 \end_inset
18778
18779 ] The 
18780 \begin_inset Quotes eld
18781 \end_inset
18782
18783 type
18784 \begin_inset Quotes erd
18785 \end_inset
18786
18787  of the new class of floats, like program or algorithm.
18788  After the appropriate 
18789 \begin_inset Flex Code
18790 status collapsed
18791
18792 \begin_layout Plain Layout
18793
18794 \backslash
18795 newfloat
18796 \end_layout
18797
18798 \end_inset
18799
18800 , commands such as 
18801 \begin_inset Flex Code
18802 status collapsed
18803
18804 \begin_layout Plain Layout
18805
18806 \backslash
18807 begin{program}
18808 \end_layout
18809
18810 \end_inset
18811
18812  or 
18813 \begin_inset Flex Code
18814 status collapsed
18815
18816 \begin_layout Plain Layout
18817
18818 \backslash
18819 end{algorithm*}
18820 \end_layout
18821
18822 \end_inset
18823
18824  will be available.
18825 \end_layout
18826
18827 \begin_layout Description
18828 \begin_inset Flex Code
18829 status collapsed
18830
18831 \begin_layout Plain Layout
18832 UsesFloatPkg
18833 \end_layout
18834
18835 \end_inset
18836
18837  [
18838 \begin_inset Flex Code
18839 status collapsed
18840
18841 \begin_layout Plain Layout
18842 0
18843 \end_layout
18844
18845 \end_inset
18846
18847 ,
18848 \begin_inset space \thinspace{}
18849 \end_inset
18850
18851
18852 \begin_inset Flex Code
18853 status collapsed
18854
18855 \begin_layout Plain Layout
18856
18857 \emph on
18858 1
18859 \end_layout
18860
18861 \end_inset
18862
18863 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18864  package 
18865 \begin_inset Flex Code
18866 status collapsed
18867
18868 \begin_layout Plain Layout
18869 float
18870 \end_layout
18871
18872 \end_inset
18873
18874 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18875  itself.
18876 \end_layout
18877
18878 \begin_layout Standard
18879 Note that defining a float with type 
18880 \begin_inset Flex Code
18881 status collapsed
18882
18883 \begin_layout Plain Layout
18884
18885 \emph on
18886 type
18887 \end_layout
18888
18889 \end_inset
18890
18891  automatically defines the corresponding counter with name 
18892 \begin_inset Flex Code
18893 status collapsed
18894
18895 \begin_layout Plain Layout
18896
18897 \emph on
18898 type
18899 \end_layout
18900
18901 \end_inset
18902
18903 .
18904 \end_layout
18905
18906 \begin_layout Subsection
18907 Flex insets and InsetLayout
18908 \begin_inset CommandInset label
18909 LatexCommand label
18910 name "subsec:Flex-insets-and"
18911
18912 \end_inset
18913
18914
18915 \end_layout
18916
18917 \begin_layout Standard
18918 Flex insets come in 
18919 \change_deleted 5863208 1594239511
18920 three
18921 \change_inserted 5863208 1594239512
18922 two
18923 \change_unchanged
18924  different kinds: 
18925 \end_layout
18926
18927 \begin_layout Itemize
18928 character style (
18929 \begin_inset Flex Code
18930 status collapsed
18931
18932 \begin_layout Plain Layout
18933 CharStyle
18934 \end_layout
18935
18936 \end_inset
18937
18938 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18939  commands as 
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944
18945 \backslash
18946 noun
18947 \end_layout
18948
18949 \end_inset
18950
18951  and 
18952 \begin_inset Flex Code
18953 status collapsed
18954
18955 \begin_layout Plain Layout
18956
18957 \backslash
18958 code
18959 \end_layout
18960
18961 \end_inset
18962
18963 .
18964 \end_layout
18965
18966 \begin_layout Itemize
18967 user custom (
18968 \begin_inset Flex Code
18969 status collapsed
18970
18971 \begin_layout Plain Layout
18972 Custom
18973 \end_layout
18974
18975 \end_inset
18976
18977 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18978  code,
18979  footnote, and the like.
18980  An obvious example is an endnote inset, which is defined in the 
18981 \begin_inset Flex Code
18982 status collapsed
18983
18984 \begin_layout Plain Layout
18985 endnote
18986 \end_layout
18987
18988 \end_inset
18989
18990  module.
18991 \end_layout
18992
18993 \begin_layout Itemize
18994
18995 \change_deleted 5863208 1594239528
18996 XML elements (
18997 \begin_inset Flex Code
18998 status collapsed
18999
19000 \begin_layout Plain Layout
19001 Element
19002 \end_layout
19003
19004 \end_inset
19005
19006 ): For use with DocBook classes.
19007 \change_unchanged
19008
19009 \end_layout
19010
19011 \begin_layout Standard
19012 Flex insets are defined using the 
19013 \begin_inset Flex Code
19014 status collapsed
19015
19016 \begin_layout Plain Layout
19017 InsetLayout
19018 \end_layout
19019
19020 \end_inset
19021
19022  tag, which shall be explained in a moment.
19023 \end_layout
19024
19025 \begin_layout Standard
19026 The 
19027 \begin_inset Flex Code
19028 status collapsed
19029
19030 \begin_layout Plain Layout
19031 InsetLayout
19032 \end_layout
19033
19034 \end_inset
19035
19036  tag also serves another function: It can be used to customize the general
19037  layout of many different types of insets.
19038  Currently, 
19039 \begin_inset Flex Code
19040 status collapsed
19041
19042 \begin_layout Plain Layout
19043 InsetLayout
19044 \end_layout
19045
19046 \end_inset
19047
19048  can be used to customize the layout parameters for footnotes, marginal
19049  notes, note insets, \SpecialChar TeX
19050  code (ERT) insets, branches, listings, indexes, boxes,
19051  tables, algorithms, URLs, and captions, as well as to define Flex insets.
19052 \end_layout
19053
19054 \begin_layout Standard
19055 The 
19056 \begin_inset Flex Code
19057 status collapsed
19058
19059 \begin_layout Plain Layout
19060 InsetLayout
19061 \end_layout
19062
19063 \end_inset
19064
19065  definition must begin with a line of the form:
19066 \end_layout
19067
19068 \begin_layout LyX-Code
19069 InsetLayout <type>
19070 \end_layout
19071
19072 \begin_layout Standard
19073 Here 
19074 \begin_inset Flex Code
19075 status collapsed
19076
19077 \begin_layout Plain Layout
19078 <Type>
19079 \end_layout
19080
19081 \end_inset
19082
19083  indicates the inset whose layout is being defined, and here there are four
19084  cases.
19085 \end_layout
19086
19087 \begin_layout Enumerate
19088 The layout for a pre-existing inset is being modified.
19089  In this case, can be 
19090 \begin_inset Flex Code
19091 status collapsed
19092
19093 \begin_layout Plain Layout
19094 <Type>
19095 \end_layout
19096
19097 \end_inset
19098
19099  any one of the following: 
19100 \begin_inset Flex Code
19101 status collapsed
19102
19103 \begin_layout Plain Layout
19104 Algorithm
19105 \end_layout
19106
19107 \end_inset
19108
19109
19110 \begin_inset Flex Code
19111 status collapsed
19112
19113 \begin_layout Plain Layout
19114 Branch
19115 \end_layout
19116
19117 \end_inset
19118
19119
19120 \begin_inset Flex Code
19121 status collapsed
19122
19123 \begin_layout Plain Layout
19124 Box
19125 \end_layout
19126
19127 \end_inset
19128
19129
19130 \begin_inset Flex Code
19131 status collapsed
19132
19133 \begin_layout Plain Layout
19134 Box:shaded
19135 \end_layout
19136
19137 \end_inset
19138
19139
19140 \begin_inset Flex Code
19141 status collapsed
19142
19143 \begin_layout Plain Layout
19144 Caption:Standard
19145 \end_layout
19146
19147 \end_inset
19148
19149
19150 \begin_inset Flex Code
19151 status collapsed
19152
19153 \begin_layout Plain Layout
19154 ERT
19155 \end_layout
19156
19157 \end_inset
19158
19159
19160 \begin_inset Flex Code
19161 status collapsed
19162
19163 \begin_layout Plain Layout
19164 Figure
19165 \end_layout
19166
19167 \end_inset
19168
19169
19170 \begin_inset Flex Code
19171 status collapsed
19172
19173 \begin_layout Plain Layout
19174 Foot
19175 \end_layout
19176
19177 \end_inset
19178
19179
19180 \begin_inset Flex Code
19181 status collapsed
19182
19183 \begin_layout Plain Layout
19184 Index
19185 \end_layout
19186
19187 \end_inset
19188
19189
19190 \begin_inset Flex Code
19191 status collapsed
19192
19193 \begin_layout Plain Layout
19194 Info
19195 \end_layout
19196
19197 \end_inset
19198
19199
19200 \begin_inset Flex Code
19201 status collapsed
19202
19203 \begin_layout Plain Layout
19204 Info:menu
19205 \end_layout
19206
19207 \end_inset
19208
19209
19210 \begin_inset Flex Code
19211 status collapsed
19212
19213 \begin_layout Plain Layout
19214 Info:shortcut
19215 \end_layout
19216
19217 \end_inset
19218
19219
19220 \begin_inset Flex Code
19221 status collapsed
19222
19223 \begin_layout Plain Layout
19224 Info:shortcuts
19225 \end_layout
19226
19227 \end_inset
19228
19229
19230 \begin_inset Flex Code
19231 status collapsed
19232
19233 \begin_layout Plain Layout
19234 Listings
19235 \end_layout
19236
19237 \end_inset
19238
19239
19240 \begin_inset Flex Code
19241 status collapsed
19242
19243 \begin_layout Plain Layout
19244 Marginal
19245 \end_layout
19246
19247 \end_inset
19248
19249
19250 \begin_inset Flex Code
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254 Note:Comment
19255 \end_layout
19256
19257 \end_inset
19258
19259
19260 \begin_inset Flex Code
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264 Note:Note
19265 \end_layout
19266
19267 \end_inset
19268
19269
19270 \begin_inset Flex Code
19271 status collapsed
19272
19273 \begin_layout Plain Layout
19274 Note:Greyedout
19275 \end_layout
19276
19277 \end_inset
19278
19279
19280 \begin_inset Flex Code
19281 status collapsed
19282
19283 \begin_layout Plain Layout
19284 Table
19285 \end_layout
19286
19287 \end_inset
19288
19289 , or 
19290 \begin_inset Flex Code
19291 status collapsed
19292
19293 \begin_layout Plain Layout
19294 URL
19295 \end_layout
19296
19297 \end_inset
19298
19299 .
19300 \end_layout
19301
19302 \begin_layout Enumerate
19303 The layout for a Flex inset is being defined.
19304  In this case, 
19305 \begin_inset Flex Code
19306 status collapsed
19307
19308 \begin_layout Plain Layout
19309 <Type>
19310 \end_layout
19311
19312 \end_inset
19313
19314  must be of the form 
19315 \begin_inset Quotes eld
19316 \end_inset
19317
19318
19319 \begin_inset Flex Code
19320 status collapsed
19321
19322 \begin_layout Plain Layout
19323 Flex:<name>
19324 \end_layout
19325
19326 \end_inset
19327
19328
19329 \begin_inset Quotes erd
19330 \end_inset
19331
19332 , where 
19333 \begin_inset Flex Code
19334 status collapsed
19335
19336 \begin_layout Plain Layout
19337 name
19338 \end_layout
19339
19340 \end_inset
19341
19342  may be be any valid identifier not used by a pre-existing Flex inset.
19343  The identifier may include spaces, but in that case the whole thing must
19344  be wrapped in quotes.
19345  Note that the definition of a flex inset 
19346 \emph on
19347 must 
19348 \emph default
19349 also include a 
19350 \begin_inset Flex Code
19351 status collapsed
19352
19353 \begin_layout Plain Layout
19354 LyXType
19355 \end_layout
19356
19357 \end_inset
19358
19359  entry, declaring which type of inset it defines.
19360 \end_layout
19361
19362 \begin_layout Enumerate
19363 The layout for user specific branch is being defined.
19364  In this case, 
19365 \begin_inset Flex Code
19366 status collapsed
19367
19368 \begin_layout Plain Layout
19369 <Type>
19370 \end_layout
19371
19372 \end_inset
19373
19374  must be of the form 
19375 \begin_inset Quotes eld
19376 \end_inset
19377
19378
19379 \begin_inset Flex Code
19380 status collapsed
19381
19382 \begin_layout Plain Layout
19383 Branch:<name>
19384 \end_layout
19385
19386 \end_inset
19387
19388
19389 \begin_inset Quotes erd
19390 \end_inset
19391
19392 , where 
19393 \begin_inset Flex Code
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 name
19398 \end_layout
19399
19400 \end_inset
19401
19402  may be be any valid identifier of branch defined in user's document.
19403  The identifier may include spaces, but in that case the whole thing must
19404  be wrapped in quotes.
19405  The main purpose of this feature is to allow \SpecialChar LaTeX
19406  wrapping around specific
19407  branches as user needs.
19408 \end_layout
19409
19410 \begin_layout Enumerate
19411 The layout of a user (or class) specific caption is being defined.
19412  In this case, 
19413 \begin_inset Flex Code
19414 status collapsed
19415
19416 \begin_layout Plain Layout
19417 <Type>
19418 \end_layout
19419
19420 \end_inset
19421
19422  must be of the form 
19423 \begin_inset Quotes eld
19424 \end_inset
19425
19426
19427 \begin_inset Flex Code
19428 status collapsed
19429
19430 \begin_layout Plain Layout
19431 Caption:<name>
19432 \end_layout
19433
19434 \end_inset
19435
19436
19437 \begin_inset Quotes erd
19438 \end_inset
19439
19440 , where 
19441 \begin_inset Flex Code
19442 status collapsed
19443
19444 \begin_layout Plain Layout
19445 name
19446 \end_layout
19447
19448 \end_inset
19449
19450  specifies the name of the caption as it appears in the menu.
19451  Have a look at the standard caption (
19452 \begin_inset Flex Code
19453 status collapsed
19454
19455 \begin_layout Plain Layout
19456 Caption:Standard
19457 \end_layout
19458
19459 \end_inset
19460
19461 ), the specific captions of the KOMA-Script classes (
19462 \begin_inset Flex Code
19463 status collapsed
19464
19465 \begin_layout Plain Layout
19466 Caption:Above
19467 \end_layout
19468
19469 \end_inset
19470
19471
19472 \begin_inset Flex Code
19473 status collapsed
19474
19475 \begin_layout Plain Layout
19476 Caption:Below
19477 \end_layout
19478
19479 \end_inset
19480
19481 ) or the module 
19482 \family sans
19483 Multilingual
19484 \begin_inset space ~
19485 \end_inset
19486
19487 Captions
19488 \begin_inset Newline linebreak
19489 \end_inset
19490
19491
19492 \family default
19493 (
19494 \begin_inset Flex Code
19495 status collapsed
19496
19497 \begin_layout Plain Layout
19498 Caption:Bicaption
19499 \end_layout
19500
19501 \end_inset
19502
19503 ) for applications.
19504 \end_layout
19505
19506 \begin_layout Standard
19507 The 
19508 \begin_inset Flex Code
19509 status collapsed
19510
19511 \begin_layout Plain Layout
19512 InsetLayout
19513 \end_layout
19514
19515 \end_inset
19516
19517  definition can contain the following entries:
19518 \end_layout
19519
19520 \begin_layout Description
19521 \begin_inset Flex Code
19522 status collapsed
19523
19524 \begin_layout Plain Layout
19525 AddToToc
19526 \end_layout
19527
19528 \end_inset
19529
19530  [
19531 \begin_inset Flex Code
19532 status collapsed
19533
19534 \begin_layout Plain Layout
19535 string
19536 \end_layout
19537
19538 \end_inset
19539
19540 =""] This inset will appear in the table of contents of the given type.
19541  An empty string disables.
19542  See also the OutlinerName and the IsTocCaption commands.
19543  This is only implemented for Flex insets.
19544  Default: disabled.
19545 \end_layout
19546
19547 \begin_layout Description
19548 \begin_inset Flex Code
19549 status collapsed
19550
19551 \begin_layout Plain Layout
19552 Argument
19553 \end_layout
19554
19555 \end_inset
19556
19557  [
19558 \begin_inset Flex Code
19559 status collapsed
19560
19561 \begin_layout Plain Layout
19562 int
19563 \end_layout
19564
19565 \end_inset
19566
19567 ] Defines argument number of a command\SpecialChar breakableslash
19568 environment associated with the current
19569  layout.
19570  The definition must end with 
19571 \begin_inset Flex Code
19572 status collapsed
19573
19574 \begin_layout Plain Layout
19575 EndArgument
19576 \end_layout
19577
19578 \end_inset
19579
19580 .
19581  See 
19582 \begin_inset CommandInset ref
19583 LatexCommand ref
19584 reference "subsec:Paragraph-Styles"
19585
19586 \end_inset
19587
19588  for details.
19589 \end_layout
19590
19591 \begin_layout Description
19592 \begin_inset Flex Code
19593 status collapsed
19594
19595 \begin_layout Plain Layout
19596 BabelPreamble
19597 \end_layout
19598
19599 \end_inset
19600
19601  Preamble for changing language commands; see 
19602 \begin_inset CommandInset ref
19603 LatexCommand ref
19604 reference "subsec:I18n"
19605
19606 \end_inset
19607
19608 .
19609 \end_layout
19610
19611 \begin_layout Description
19612 \begin_inset Flex Code
19613 status collapsed
19614
19615 \begin_layout Plain Layout
19616 BgColor
19617 \end_layout
19618
19619 \end_inset
19620
19621  [
19622 \begin_inset Flex Code
19623 status collapsed
19624
19625 \begin_layout Plain Layout
19626 <name>
19627 \end_layout
19628
19629 \end_inset
19630
19631 ] The color for the inset's background.
19632  See 
19633 \begin_inset CommandInset ref
19634 LatexCommand ref
19635 reference "chap:Names-of-colors"
19636
19637 \end_inset
19638
19639  for a list of the available color names.
19640 \end_layout
19641
19642 \begin_layout Description
19643 \begin_inset Flex Code
19644 status collapsed
19645
19646 \begin_layout Plain Layout
19647 ContentAsLabel
19648 \end_layout
19649
19650 \end_inset
19651
19652  [
19653 \begin_inset Flex Code
19654 status collapsed
19655
19656 \begin_layout Plain Layout
19657
19658 \emph on
19659 0
19660 \end_layout
19661
19662 \end_inset
19663
19664 ,
19665 \begin_inset space \thinspace{}
19666 \end_inset
19667
19668
19669 \begin_inset Flex Code
19670 status collapsed
19671
19672 \begin_layout Plain Layout
19673 1
19674 \end_layout
19675
19676 \end_inset
19677
19678 ] Whether to use the content of the inset as the label, when the inset is
19679  closed.
19680  Default is false.
19681 \end_layout
19682
19683 \begin_layout Description
19684 \begin_inset Flex Code
19685 status collapsed
19686
19687 \begin_layout Plain Layout
19688 CopyStyle
19689 \end_layout
19690
19691 \end_inset
19692
19693  [
19694 \begin_inset Flex Code
19695 status collapsed
19696
19697 \begin_layout Plain Layout
19698 <type>
19699 \end_layout
19700
19701 \end_inset
19702
19703 ] As with paragraph styles, see 
19704 \begin_inset CommandInset ref
19705 LatexCommand ref
19706 reference "subsec:Paragraph-Styles"
19707
19708 \end_inset
19709
19710 .
19711  Note that you need to specify the complete type, e.
19712 \begin_inset space \thinspace{}
19713 \end_inset
19714
19715 g.
19716 \begin_inset space ~
19717 \end_inset
19718
19719
19720 \begin_inset Flex Code
19721 status collapsed
19722
19723 \begin_layout Plain Layout
19724 CopyStyle Flex:<name>
19725 \end_layout
19726
19727 \end_inset
19728
19729 .
19730 \end_layout
19731
19732 \begin_layout Description
19733 \begin_inset Flex Code
19734 status collapsed
19735
19736 \begin_layout Plain Layout
19737 CustomPars
19738 \end_layout
19739
19740 \end_inset
19741
19742  [
19743 \begin_inset Flex Code
19744 status collapsed
19745
19746 \begin_layout Plain Layout
19747
19748 \emph on
19749 0
19750 \end_layout
19751
19752 \end_inset
19753
19754 ,
19755 \begin_inset space \thinspace{}
19756 \end_inset
19757
19758
19759 \begin_inset Flex Code
19760 status collapsed
19761
19762 \begin_layout Plain Layout
19763 1
19764 \end_layout
19765
19766 \end_inset
19767
19768 ] Indicates whether the user may employ the Paragraph Settings dialog to
19769  customize the paragraph.
19770 \end_layout
19771
19772 \begin_layout Description
19773 \begin_inset Flex Code
19774 status collapsed
19775
19776 \begin_layout Plain Layout
19777 Decoration
19778 \end_layout
19779
19780 \end_inset
19781
19782  can be 
19783 \begin_inset Flex Code
19784 status collapsed
19785
19786 \begin_layout Plain Layout
19787 Classic
19788 \end_layout
19789
19790 \end_inset
19791
19792
19793 \begin_inset Flex Code
19794 status collapsed
19795
19796 \begin_layout Plain Layout
19797 Minimalistic
19798 \end_layout
19799
19800 \end_inset
19801
19802 , or 
19803 \begin_inset Flex Code
19804 status collapsed
19805
19806 \begin_layout Plain Layout
19807 Conglomerate
19808 \end_layout
19809
19810 \end_inset
19811
19812 , describing the rendering style used for the inset's frame and buttons.
19813  Footnotes generally use 
19814 \begin_inset Flex Code
19815 status collapsed
19816
19817 \begin_layout Plain Layout
19818 Classic
19819 \end_layout
19820
19821 \end_inset
19822
19823 , ERT insets generally 
19824 \begin_inset Flex Code
19825 status collapsed
19826
19827 \begin_layout Plain Layout
19828 Minimalistic
19829 \end_layout
19830
19831 \end_inset
19832
19833 , and character styles 
19834 \begin_inset Flex Code
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 Conglomerate
19839 \end_layout
19840
19841 \end_inset
19842
19843 .
19844 \end_layout
19845
19846 \begin_layout Description
19847 \begin_inset Flex Code
19848 status collapsed
19849
19850 \begin_layout Plain Layout
19851 Display
19852 \end_layout
19853
19854 \end_inset
19855
19856  [
19857 \begin_inset Flex Code
19858 status collapsed
19859
19860 \begin_layout Plain Layout
19861 0
19862 \end_layout
19863
19864 \end_inset
19865
19866 ,
19867 \emph on
19868
19869 \begin_inset space \thinspace{}
19870 \end_inset
19871
19872
19873 \emph default
19874
19875 \begin_inset Flex Code
19876 status collapsed
19877
19878 \begin_layout Plain Layout
19879
19880 \emph on
19881 1
19882 \end_layout
19883
19884 \end_inset
19885
19886 ] Only useful if 
19887 \begin_inset Flex Code
19888 status collapsed
19889
19890 \begin_layout Plain Layout
19891 LatexType
19892 \end_layout
19893
19894 \end_inset
19895
19896  is 
19897 \begin_inset Flex Code
19898 status collapsed
19899
19900 \begin_layout Plain Layout
19901 Environment
19902 \end_layout
19903
19904 \end_inset
19905
19906 .
19907  Indicates whether the environment will stand on its own in the output or
19908  will appear inline with the surrounding text.
19909  If set to false, it is supposed that the \SpecialChar LaTeX
19910  environment ignores white space
19911  (including one newline character) after the 
19912 \begin_inset Flex Code
19913 status collapsed
19914
19915 \begin_layout Plain Layout
19916
19917 \backslash
19918 begin{
19919 \emph on
19920 LatexName
19921 \emph default
19922 }
19923 \end_layout
19924
19925 \end_inset
19926
19927  and 
19928 \begin_inset Flex Code
19929 status collapsed
19930
19931 \begin_layout Plain Layout
19932
19933 \backslash
19934 end{
19935 \emph on
19936 LatexName
19937 \emph default
19938 }
19939 \end_layout
19940
19941 \end_inset
19942
19943  tags.
19944  Default is true.
19945 \change_inserted 731793113 1538674858
19946
19947 \end_layout
19948
19949 \begin_layout Description
19950
19951 \change_inserted 731793113 1538674891
19952 \begin_inset Flex Code
19953 status open
19954
19955 \begin_layout Plain Layout
19956
19957 \change_inserted 731793113 1538674863
19958 EditExternal
19959 \change_unchanged
19960
19961 \end_layout
19962
19963 \end_inset
19964
19965  [
19966 \emph on
19967 0
19968 \emph default
19969 ,1] Allow the contents of the inset to be edited externally (using whatever
19970  editor is defined for the document's output format).
19971 \change_unchanged
19972
19973 \end_layout
19974
19975 \begin_layout Description
19976 \begin_inset Flex Code
19977 status collapsed
19978
19979 \begin_layout Plain Layout
19980 End
19981 \end_layout
19982
19983 \end_inset
19984
19985  Required at the end of the 
19986 \begin_inset Flex Code
19987 status collapsed
19988
19989 \begin_layout Plain Layout
19990 InsetLayout
19991 \end_layout
19992
19993 \end_inset
19994
19995  declarations.
19996 \end_layout
19997
19998 \begin_layout Description
19999 \begin_inset Flex Code
20000 status collapsed
20001
20002 \begin_layout Plain Layout
20003 Font
20004 \end_layout
20005
20006 \end_inset
20007
20008  The font used for both the text body 
20009 \emph on
20010 and
20011 \emph default
20012  the label.
20013  See 
20014 \begin_inset CommandInset ref
20015 LatexCommand ref
20016 reference "subsec:Font-description"
20017
20018 \end_inset
20019
20020 .
20021  Note that defining this font automatically defines the 
20022 \begin_inset Flex Code
20023 status collapsed
20024
20025 \begin_layout Plain Layout
20026 LabelFont
20027 \end_layout
20028
20029 \end_inset
20030
20031  to the same value, so define this first and define 
20032 \begin_inset Flex Code
20033 status collapsed
20034
20035 \begin_layout Plain Layout
20036 LabelFont
20037 \end_layout
20038
20039 \end_inset
20040
20041  later if you want them to be different.
20042 \end_layout
20043
20044 \begin_layout Description
20045 \begin_inset Flex Code
20046 status collapsed
20047
20048 \begin_layout Plain Layout
20049 FixedWidthPreambleEncoding
20050 \end_layout
20051
20052 \end_inset
20053
20054  [
20055 \begin_inset Flex Code
20056 status collapsed
20057
20058 \begin_layout Plain Layout
20059
20060 \emph on
20061 0
20062 \end_layout
20063
20064 \end_inset
20065
20066 ,
20067 \begin_inset space \thinspace{}
20068 \end_inset
20069
20070
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 1
20076 \end_layout
20077
20078 \end_inset
20079
20080 ] Force a fixed width encoding for the translated contents of 
20081 \begin_inset Flex Code
20082 status collapsed
20083
20084 \begin_layout Plain Layout
20085 BabelPreamble
20086 \end_layout
20087
20088 \end_inset
20089
20090  and 
20091 \begin_inset Flex Code
20092 status collapsed
20093
20094 \begin_layout Plain Layout
20095 LangPreamble
20096 \end_layout
20097
20098 \end_inset
20099
20100  code generated by this layout.
20101  This is needed for special \SpecialChar LaTeX
20102 -packages like 
20103 \family typewriter
20104 listings
20105 \family default
20106  that do not work with variable width encodings such as 
20107 \family sans
20108 utf8
20109 \family default
20110 .
20111  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
20112  backends such as Xe\SpecialChar TeX
20113  or
20114  Lua\SpecialChar TeX
20115  are used.
20116 \end_layout
20117
20118 \begin_layout Description
20119 \begin_inset Flex Code
20120 status collapsed
20121
20122 \begin_layout Plain Layout
20123 ForceLocalFontSwitch
20124 \end_layout
20125
20126 \end_inset
20127
20128  [
20129 \begin_inset Flex Code
20130 status collapsed
20131
20132 \begin_layout Plain Layout
20133
20134 \emph on
20135 0
20136 \end_layout
20137
20138 \end_inset
20139
20140 ,
20141 \begin_inset space \thinspace{}
20142 \end_inset
20143
20144
20145 \begin_inset Flex Code
20146 status collapsed
20147
20148 \begin_layout Plain Layout
20149 1
20150 \end_layout
20151
20152 \end_inset
20153
20154 ] When using babel, always use a local font switch (
20155 \begin_inset Flex Code
20156 status collapsed
20157
20158 \begin_layout Plain Layout
20159
20160 \backslash
20161 foreignlanguage
20162 \end_layout
20163
20164 \end_inset
20165
20166 ), never a global one (such as 
20167 \begin_inset Flex Code
20168 status collapsed
20169
20170 \begin_layout Plain Layout
20171
20172 \backslash
20173 selectlanguage
20174 \end_layout
20175
20176 \end_inset
20177
20178 ).
20179 \end_layout
20180
20181 \begin_layout Description
20182 \begin_inset Flex Code
20183 status collapsed
20184
20185 \begin_layout Plain Layout
20186 ForceLTR
20187 \end_layout
20188
20189 \end_inset
20190
20191  [
20192 \begin_inset Flex Code
20193 status collapsed
20194
20195 \begin_layout Plain Layout
20196
20197 \emph on
20198 0
20199 \end_layout
20200
20201 \end_inset
20202
20203 ,
20204 \begin_inset space \thinspace{}
20205 \end_inset
20206
20207
20208 \begin_inset Flex Code
20209 status collapsed
20210
20211 \begin_layout Plain Layout
20212 1
20213 \end_layout
20214
20215 \end_inset
20216
20217 ] Force the 
20218 \begin_inset Quotes eld
20219 \end_inset
20220
20221 latex
20222 \begin_inset Quotes erd
20223 \end_inset
20224
20225  language, leading to Left-to-Right (Latin) output, e.
20226 \begin_inset space \thinspace{}
20227 \end_inset
20228
20229 g.
20230 \begin_inset space \space{}
20231 \end_inset
20232
20233 in \SpecialChar TeX
20234  code or URL.
20235  A kludge.
20236 \end_layout
20237
20238 \begin_layout Description
20239 \begin_inset Flex Code
20240 status collapsed
20241
20242 \begin_layout Plain Layout
20243 ForceOwnlines
20244 \end_layout
20245
20246 \end_inset
20247
20248  [
20249 \begin_inset Flex Code
20250 status collapsed
20251
20252 \begin_layout Plain Layout
20253
20254 \emph on
20255 0
20256 \end_layout
20257
20258 \end_inset
20259
20260 ,
20261 \begin_inset space \thinspace{}
20262 \end_inset
20263
20264
20265 \begin_inset Flex Code
20266 status collapsed
20267
20268 \begin_layout Plain Layout
20269 1
20270 \end_layout
20271
20272 \end_inset
20273
20274 ] Force a a line break in the \SpecialChar LaTeX
20275  output before the inset starts and after
20276  the inset ends.
20277  This assures the inset itself is output on its own lines, for parsing purposes.
20278 \end_layout
20279
20280 \begin_layout Description
20281 \begin_inset Flex Code
20282 status collapsed
20283
20284 \begin_layout Plain Layout
20285 ForcePlain
20286 \end_layout
20287
20288 \end_inset
20289
20290  [
20291 \begin_inset Flex Code
20292 status collapsed
20293
20294 \begin_layout Plain Layout
20295
20296 \emph on
20297 0
20298 \end_layout
20299
20300 \end_inset
20301
20302 ,
20303 \begin_inset space \thinspace{}
20304 \end_inset
20305
20306
20307 \begin_inset Flex Code
20308 status collapsed
20309
20310 \begin_layout Plain Layout
20311 1
20312 \end_layout
20313
20314 \end_inset
20315
20316 ] Indicates whether the 
20317 \begin_inset Flex Code
20318 status collapsed
20319
20320 \begin_layout Plain Layout
20321 PlainLayout
20322 \end_layout
20323
20324 \end_inset
20325
20326  should be used or, instead, the user can change the paragraph style used
20327  in the inset.
20328  Default is false.
20329 \end_layout
20330
20331 \begin_layout Description
20332 \begin_inset Flex Code
20333 status collapsed
20334
20335 \begin_layout Plain Layout
20336 FreeSpacing
20337 \end_layout
20338
20339 \end_inset
20340
20341  [
20342 \begin_inset Flex Code
20343 status collapsed
20344
20345 \begin_layout Plain Layout
20346
20347 \emph on
20348 0
20349 \end_layout
20350
20351 \end_inset
20352
20353 ,
20354 \begin_inset space \thinspace{}
20355 \end_inset
20356
20357
20358 \begin_inset Flex Code
20359 status collapsed
20360
20361 \begin_layout Plain Layout
20362 1
20363 \end_layout
20364
20365 \end_inset
20366
20367 ] As with paragraph styles, see 
20368 \begin_inset CommandInset ref
20369 LatexCommand ref
20370 reference "subsec:Paragraph-Styles"
20371
20372 \end_inset
20373
20374 .
20375 \end_layout
20376
20377 \begin_layout Description
20378 \begin_inset Flex Code
20379 status collapsed
20380
20381 \begin_layout Plain Layout
20382 HTML*
20383 \end_layout
20384
20385 \end_inset
20386
20387  These tags control the XHTML output.
20388  See 
20389 \begin_inset CommandInset ref
20390 LatexCommand ref
20391 reference "sec:Tags-for-XHTML"
20392
20393 \end_inset
20394
20395 .
20396 \end_layout
20397
20398 \begin_layout Description
20399 \begin_inset Flex Code
20400 status collapsed
20401
20402 \begin_layout Plain Layout
20403 InToc
20404 \end_layout
20405
20406 \end_inset
20407
20408  [
20409 \begin_inset Flex Code
20410 status collapsed
20411
20412 \begin_layout Plain Layout
20413
20414 \emph on
20415 0
20416 \end_layout
20417
20418 \end_inset
20419
20420 ,
20421 \begin_inset space \thinspace{}
20422 \end_inset
20423
20424
20425 \begin_inset Flex Code
20426 status collapsed
20427
20428 \begin_layout Plain Layout
20429 1
20430 \end_layout
20431
20432 \end_inset
20433
20434 ] Whether to include the contents of this inset in the strings generated
20435  for the `Outline' pane for all table of contents, regardless of the AddToToc
20436  setting.
20437  One would not, for example, want the content of a footnote in a section
20438  header to be included in the TOC displayed in the outline, but one would
20439  normally want the content of a character style displayed.
20440  Default is false: not to include.
20441 \end_layout
20442
20443 \begin_layout Description
20444 \begin_inset Flex Code
20445 status collapsed
20446
20447 \begin_layout Plain Layout
20448 IsTocCaption
20449 \end_layout
20450
20451 \end_inset
20452
20453  [
20454 \begin_inset Flex Code
20455 status collapsed
20456
20457 \begin_layout Plain Layout
20458
20459 \emph on
20460 0
20461 \end_layout
20462
20463 \end_inset
20464
20465 ,
20466 \begin_inset space \thinspace{}
20467 \end_inset
20468
20469
20470 \begin_inset Flex Code
20471 status collapsed
20472
20473 \begin_layout Plain Layout
20474 1
20475 \end_layout
20476
20477 \end_inset
20478
20479 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20480  of its contents in its item in the table of contents.
20481  Otherwise, only the label appears.
20482 \end_layout
20483
20484 \begin_layout Description
20485 \begin_inset Flex Code
20486 status collapsed
20487
20488 \begin_layout Plain Layout
20489 KeepEmpty
20490 \end_layout
20491
20492 \end_inset
20493
20494  [
20495 \emph on
20496
20497 \begin_inset Flex Code
20498 status collapsed
20499
20500 \begin_layout Plain Layout
20501 0
20502 \end_layout
20503
20504 \end_inset
20505
20506
20507 \emph default
20508 ,
20509 \begin_inset space \thinspace{}
20510 \end_inset
20511
20512
20513 \begin_inset Flex Code
20514 status collapsed
20515
20516 \begin_layout Plain Layout
20517 1
20518 \end_layout
20519
20520 \end_inset
20521
20522 ] As with paragraph styles, see 
20523 \begin_inset CommandInset ref
20524 LatexCommand ref
20525 reference "subsec:Paragraph-Styles"
20526
20527 \end_inset
20528
20529 .
20530 \end_layout
20531
20532 \begin_layout Description
20533 \begin_inset Flex Code
20534 status collapsed
20535
20536 \begin_layout Plain Layout
20537 LabelFont
20538 \end_layout
20539
20540 \end_inset
20541
20542  The font used for the label.
20543  See 
20544 \begin_inset CommandInset ref
20545 LatexCommand ref
20546 reference "subsec:Font-description"
20547
20548 \end_inset
20549
20550 .
20551  Note that this definition can never appear before 
20552 \begin_inset Flex Code
20553 status collapsed
20554
20555 \begin_layout Plain Layout
20556 Font
20557 \end_layout
20558
20559 \end_inset
20560
20561 , lest it be ineffective.
20562 \end_layout
20563
20564 \begin_layout Description
20565 \begin_inset Flex Code
20566 status collapsed
20567
20568 \begin_layout Plain Layout
20569 LabelString
20570 \end_layout
20571
20572 \end_inset
20573
20574  [
20575 \begin_inset Flex Code
20576 status collapsed
20577
20578 \begin_layout Plain Layout
20579 string
20580 \end_layout
20581
20582 \end_inset
20583
20584 =
20585 \begin_inset Quotes erd
20586 \end_inset
20587
20588
20589 \begin_inset Quotes erd
20590 \end_inset
20591
20592 ] What will be displayed on the button or elsewhere as the inset label.
20593  Some inset types (
20594 \begin_inset Flex Code
20595 status collapsed
20596
20597 \begin_layout Plain Layout
20598 \SpecialChar TeX
20599  code
20600 \end_layout
20601
20602 \end_inset
20603
20604  and 
20605 \begin_inset Flex Code
20606 status collapsed
20607
20608 \begin_layout Plain Layout
20609 Branch
20610 \end_layout
20611
20612 \end_inset
20613
20614 ) modify this label on the fly.
20615 \end_layout
20616
20617 \begin_layout Description
20618 \begin_inset Flex Code
20619 status collapsed
20620
20621 \begin_layout Plain Layout
20622 LangPreamble
20623 \end_layout
20624
20625 \end_inset
20626
20627  Language dependent preamble; see 
20628 \begin_inset CommandInset ref
20629 LatexCommand ref
20630 reference "subsec:I18n"
20631
20632 \end_inset
20633
20634 .
20635 \end_layout
20636
20637 \begin_layout Description
20638 \begin_inset Flex Code
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642 LatexName
20643 \end_layout
20644
20645 \end_inset
20646
20647  [
20648 \begin_inset Flex Code
20649 status collapsed
20650
20651 \begin_layout Plain Layout
20652 <name>
20653 \end_layout
20654
20655 \end_inset
20656
20657 ] The name of the corresponding \SpecialChar LaTeX
20658  stuff.
20659  Either the environment or command name.
20660 \end_layout
20661
20662 \begin_layout Description
20663 \begin_inset Flex Code
20664 status collapsed
20665
20666 \begin_layout Plain Layout
20667 LatexParam
20668 \end_layout
20669
20670 \end_inset
20671
20672  [
20673 \begin_inset Flex Code
20674 status collapsed
20675
20676 \begin_layout Plain Layout
20677 <parameter>
20678 \end_layout
20679
20680 \end_inset
20681
20682 ] The optional parameter for the corresponding 
20683 \begin_inset Flex Code
20684 status collapsed
20685
20686 \begin_layout Plain Layout
20687 LatexName
20688 \end_layout
20689
20690 \end_inset
20691
20692  stuff, including possible bracket pairs like 
20693 \begin_inset Flex Code
20694 status collapsed
20695
20696 \begin_layout Plain Layout
20697 []
20698 \end_layout
20699
20700 \end_inset
20701
20702 .
20703  This parameter cannot be changed from within \SpecialChar LyX
20704  (use 
20705 \begin_inset Flex Code
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 Argument
20710 \end_layout
20711
20712 \end_inset
20713
20714  for customizable parameters).
20715  It will be output as is after all \SpecialChar LaTeX
20716  
20717 \begin_inset Flex Code
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721 Argument
20722 \end_layout
20723
20724 \end_inset
20725
20726 s.
20727 \end_layout
20728
20729 \begin_layout Description
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 LatexType
20735 \end_layout
20736
20737 \end_inset
20738
20739  [
20740 \begin_inset Flex Code
20741 status collapsed
20742
20743 \begin_layout Plain Layout
20744 Command, Environment, None
20745 \end_layout
20746
20747 \end_inset
20748
20749 ] How the style should be translated into \SpecialChar LaTeX
20750 .
20751 \begin_inset Foot
20752 status collapsed
20753
20754 \begin_layout Plain Layout
20755 \begin_inset Flex Code
20756 status collapsed
20757
20758 \begin_layout Plain Layout
20759 LatexType
20760 \end_layout
20761
20762 \end_inset
20763
20764  is perhaps a bit misleading, since these rules apply to SGML classes too.
20765  Visit the SGML class files for specific examples.
20766 \end_layout
20767
20768 \end_inset
20769
20770
20771 \end_layout
20772
20773 \begin_deeper
20774 \begin_layout Description
20775 \begin_inset Flex Code
20776 status collapsed
20777
20778 \begin_layout Plain Layout
20779 None
20780 \end_layout
20781
20782 \end_inset
20783
20784  means nothing special
20785 \end_layout
20786
20787 \begin_layout Description
20788 \begin_inset Flex Code
20789 status collapsed
20790
20791 \begin_layout Plain Layout
20792 Command
20793 \end_layout
20794
20795 \end_inset
20796
20797  means 
20798 \begin_inset Flex Code
20799 status collapsed
20800
20801 \begin_layout Plain Layout
20802
20803 \backslash
20804
20805 \emph on
20806 LatexName
20807 \emph default
20808 {\SpecialChar ldots
20809 }
20810 \end_layout
20811
20812 \end_inset
20813
20814
20815 \end_layout
20816
20817 \begin_layout Description
20818 \begin_inset Flex Code
20819 status collapsed
20820
20821 \begin_layout Plain Layout
20822 Environment
20823 \end_layout
20824
20825 \end_inset
20826
20827  means 
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832
20833 \backslash
20834 begin{
20835 \emph on
20836 LatexName
20837 \emph default
20838 }\SpecialChar ldots
20839
20840 \backslash
20841 end{
20842 \emph on
20843 LatexName
20844 \emph default
20845 }
20846 \end_layout
20847
20848 \end_inset
20849
20850
20851 \end_layout
20852
20853 \begin_layout Standard
20854 Putting the last few things together, the \SpecialChar LaTeX
20855  output will be either: 
20856 \end_layout
20857
20858 \begin_layout LyX-Code
20859
20860 \backslash
20861 LatexName[LatexParam]{\SpecialChar ldots
20862 }
20863 \end_layout
20864
20865 \begin_layout Standard
20866 or: 
20867 \end_layout
20868
20869 \begin_layout LyX-Code
20870
20871 \backslash
20872 begin{LatexName}[LatexParam] \SpecialChar ldots
20873  
20874 \backslash
20875 end{LatexName}
20876 \end_layout
20877
20878 \begin_layout Standard
20879 depending upon the \SpecialChar LaTeX
20880  type.
20881 \end_layout
20882
20883 \end_deeper
20884 \begin_layout Description
20885 \begin_inset Flex Code
20886 status collapsed
20887
20888 \begin_layout Plain Layout
20889 LeftDelim
20890 \end_layout
20891
20892 \end_inset
20893
20894  [
20895 \begin_inset Flex Code
20896 status collapsed
20897
20898 \begin_layout Plain Layout
20899 string
20900 \end_layout
20901
20902 \end_inset
20903
20904 ] A string that is put at the beginning of the layout content.
20905  A line break in the output can be indicated by 
20906 \begin_inset Flex Code
20907 status collapsed
20908
20909 \begin_layout Plain Layout
20910 <br/>
20911 \end_layout
20912
20913 \end_inset
20914
20915 .
20916 \end_layout
20917
20918 \begin_layout Description
20919 \begin_inset Flex Code
20920 status collapsed
20921
20922 \begin_layout Plain Layout
20923 LyxType
20924 \end_layout
20925
20926 \end_inset
20927
20928  Can be 
20929 \begin_inset Flex Code
20930 status collapsed
20931
20932 \begin_layout Plain Layout
20933 charstyle
20934 \end_layout
20935
20936 \end_inset
20937
20938
20939 \begin_inset Flex Code
20940 status collapsed
20941
20942 \begin_layout Plain Layout
20943 custom
20944 \end_layout
20945
20946 \end_inset
20947
20948
20949 \begin_inset Flex Code
20950 status collapsed
20951
20952 \begin_layout Plain Layout
20953 element
20954 \end_layout
20955
20956 \end_inset
20957
20958  or 
20959 \begin_inset Flex Code
20960 status collapsed
20961
20962 \begin_layout Plain Layout
20963 end
20964 \end_layout
20965
20966 \end_inset
20967
20968  (indicating a dummy definition ending definitions of charstyles, etc).
20969  This entry is required in and is only meaningful for Flex insets.
20970  Among other things, it determines on which menu this inset will appear.
20971  Setting 
20972 \begin_inset Flex Code
20973 status collapsed
20974
20975 \begin_layout Plain Layout
20976 LyxType
20977 \end_layout
20978
20979 \end_inset
20980
20981  to 
20982 \begin_inset Flex Code
20983 status collapsed
20984
20985 \begin_layout Plain Layout
20986 charstyle
20987 \end_layout
20988
20989 \end_inset
20990
20991  will automatically set 
20992 \begin_inset Flex Code
20993 status collapsed
20994
20995 \begin_layout Plain Layout
20996 MultiPar
20997 \end_layout
20998
20999 \end_inset
21000
21001  to false and 
21002 \begin_inset Flex Code
21003 status collapsed
21004
21005 \begin_layout Plain Layout
21006 ForcePlain
21007 \end_layout
21008
21009 \end_inset
21010
21011  to true.
21012  
21013 \begin_inset Flex Code
21014 status collapsed
21015
21016 \begin_layout Plain Layout
21017 MultiPar
21018 \end_layout
21019
21020 \end_inset
21021
21022  can be set to true, or 
21023 \begin_inset Flex Code
21024 status collapsed
21025
21026 \begin_layout Plain Layout
21027 ForcePlain
21028 \end_layout
21029
21030 \end_inset
21031
21032  to false, for 
21033 \begin_inset Flex Code
21034 status collapsed
21035
21036 \begin_layout Plain Layout
21037 charstyle
21038 \end_layout
21039
21040 \end_inset
21041
21042  insets by setting it 
21043 \emph on
21044 after
21045 \emph default
21046  you set the 
21047 \begin_inset Flex Code
21048 status collapsed
21049
21050 \begin_layout Plain Layout
21051 LyxType
21052 \end_layout
21053
21054 \end_inset
21055
21056 .
21057 \change_inserted -712698321 1555575738
21058
21059 \end_layout
21060
21061 \begin_layout Description
21062
21063 \change_inserted -712698321 1555575844
21064 \begin_inset Flex Code
21065 status collapsed
21066
21067 \begin_layout Plain Layout
21068
21069 \change_inserted -712698321 1555575740
21070 MenuString
21071 \change_unchanged
21072
21073 \end_layout
21074
21075 \end_inset
21076
21077  
21078 \begin_inset Flex Code
21079 status collapsed
21080
21081 \begin_layout Plain Layout
21082
21083 \change_inserted -712698321 1555575740
21084 [string]
21085 \change_unchanged
21086
21087 \end_layout
21088
21089 \end_inset
21090
21091  A dedicated string for the menu.
21092  You can define an accelerator by appending the respective character to
21093  the string, divided by 
21094 \begin_inset Quotes eld
21095 \end_inset
21096
21097 |
21098 \begin_inset Quotes erd
21099 \end_inset
21100
21101  (e.
21102 \begin_inset space \thinspace{}
21103 \end_inset
21104
21105 g.
21106 \begin_inset space \space{}
21107 \end_inset
21108
21109
21110 \begin_inset Quotes eld
21111 \end_inset
21112
21113
21114 \begin_inset Flex Code
21115 status collapsed
21116
21117 \begin_layout Plain Layout
21118
21119 \change_inserted -712698321 1555575781
21120 My Inset|M
21121 \change_unchanged
21122
21123 \end_layout
21124
21125 \end_inset
21126
21127
21128 \begin_inset Quotes erd
21129 \end_inset
21130
21131 ).
21132  This specification is optional.
21133  If it is not given the inset name as specified in the type declaration
21134  will be used instead for the menu.
21135 \change_unchanged
21136
21137 \end_layout
21138
21139 \begin_layout Description
21140 \begin_inset Flex Code
21141 status collapsed
21142
21143 \begin_layout Plain Layout
21144 MultiPar
21145 \end_layout
21146
21147 \end_inset
21148
21149  [
21150 \begin_inset Flex Code
21151 status collapsed
21152
21153 \begin_layout Plain Layout
21154
21155 \emph on
21156 0
21157 \end_layout
21158
21159 \end_inset
21160
21161 ,
21162 \begin_inset space \thinspace{}
21163 \end_inset
21164
21165
21166 \begin_inset Flex Code
21167 status collapsed
21168
21169 \begin_layout Plain Layout
21170 1
21171 \end_layout
21172
21173 \end_inset
21174
21175 ] Whether multiple paragraphs are permitted in this inset.
21176  This will also set 
21177 \begin_inset Flex Code
21178 status collapsed
21179
21180 \begin_layout Plain Layout
21181 CustomPars
21182 \end_layout
21183
21184 \end_inset
21185
21186  to the same value and 
21187 \begin_inset Flex Code
21188 status collapsed
21189
21190 \begin_layout Plain Layout
21191 ForcePlain
21192 \end_layout
21193
21194 \end_inset
21195
21196  to the opposite value.
21197  These can be reset to other values, if they are used 
21198 \emph on
21199 after
21200 \emph default
21201  
21202 \begin_inset Flex Code
21203 status collapsed
21204
21205 \begin_layout Plain Layout
21206 MultiPar
21207 \end_layout
21208
21209 \end_inset
21210
21211 .
21212  Default is true.
21213 \end_layout
21214
21215 \begin_layout Description
21216 \begin_inset Flex Code
21217 status collapsed
21218
21219 \begin_layout Plain Layout
21220 NeedProtect
21221 \end_layout
21222
21223 \end_inset
21224
21225  [
21226 \begin_inset Flex Code
21227 status collapsed
21228
21229 \begin_layout Plain Layout
21230
21231 \emph on
21232 0
21233 \end_layout
21234
21235 \end_inset
21236
21237 ,
21238 \begin_inset space \thinspace{}
21239 \end_inset
21240
21241
21242 \begin_inset Flex Code
21243 status collapsed
21244
21245 \begin_layout Plain Layout
21246 1
21247 \end_layout
21248
21249 \end_inset
21250
21251 ] Whether fragile commands in this inset should be 
21252 \begin_inset Flex Code
21253 status collapsed
21254
21255 \begin_layout Plain Layout
21256
21257 \backslash
21258 protect
21259 \end_layout
21260
21261 \end_inset
21262
21263 'ed.
21264  (Note: This is 
21265 \emph on
21266 not
21267 \emph default
21268  whether the command should itself be protected.) Default is false.
21269 \change_inserted -712698321 1523633958
21270
21271 \end_layout
21272
21273 \begin_layout Description
21274
21275 \change_inserted -712698321 1552395786
21276 \begin_inset Flex Code
21277 status collapsed
21278
21279 \begin_layout Plain Layout
21280
21281 \change_inserted -712698321 1523633961
21282 NeedCProtect
21283 \change_unchanged
21284
21285 \end_layout
21286
21287 \end_inset
21288
21289  [
21290 \begin_inset Flex Code
21291 status collapsed
21292
21293 \begin_layout Plain Layout
21294
21295 \change_inserted -712698321 1523633958
21296
21297 \emph on
21298 0
21299 \change_unchanged
21300
21301 \end_layout
21302
21303 \end_inset
21304
21305 ,
21306 \begin_inset space \thinspace{}
21307 \end_inset
21308
21309
21310 \begin_inset Flex Code
21311 status collapsed
21312
21313 \begin_layout Plain Layout
21314
21315 \change_inserted -712698321 1523633958
21316 1
21317 \change_unchanged
21318
21319 \end_layout
21320
21321 \end_inset
21322
21323 ] This causes macros that contain this inset to be protected with 
21324 \begin_inset Flex Code
21325 status collapsed
21326
21327 \begin_layout Plain Layout
21328
21329 \change_inserted -712698321 1523634038
21330
21331 \backslash
21332 cprotect
21333 \change_unchanged
21334
21335 \end_layout
21336
21337 \end_inset
21338
21339  (cf.
21340  package 
21341 \family sans
21342 cprotect
21343 \family default
21344 ) if necessary and thus allows (some) verbatim stuff in macros.
21345  Default is false.
21346 \end_layout
21347
21348 \begin_layout Description
21349
21350 \change_inserted -712698321 1555579651
21351 \begin_inset Flex Code
21352 status collapsed
21353
21354 \begin_layout Plain Layout
21355
21356 \change_inserted -712698321 1552395787
21357 NeedMBoxProtect
21358 \change_unchanged
21359
21360 \end_layout
21361
21362 \end_inset
21363
21364  [
21365 \begin_inset Flex Code
21366 status collapsed
21367
21368 \begin_layout Plain Layout
21369
21370 \change_inserted -712698321 1552395787
21371
21372 \emph on
21373 0
21374 \change_unchanged
21375
21376 \end_layout
21377
21378 \end_inset
21379
21380 ,
21381 \begin_inset space \thinspace{}
21382 \end_inset
21383
21384
21385 \begin_inset Flex Code
21386 status collapsed
21387
21388 \begin_layout Plain Layout
21389
21390 \change_inserted -712698321 1552395787
21391 1
21392 \change_unchanged
21393
21394 \end_layout
21395
21396 \end_inset
21397
21398 ] Whether specific commands in this inset (such as 
21399 \begin_inset Flex Code
21400 status collapsed
21401
21402 \begin_layout Plain Layout
21403
21404 \change_inserted -712698321 1552395787
21405
21406 \backslash
21407 cite
21408 \change_unchanged
21409
21410 \end_layout
21411
21412 \end_inset
21413
21414  and 
21415 \begin_inset Flex Code
21416 status collapsed
21417
21418 \begin_layout Plain Layout
21419
21420 \change_inserted -712698321 1552395787
21421
21422 \backslash
21423 ref
21424 \change_unchanged
21425
21426 \end_layout
21427
21428 \end_inset
21429
21430 ) should be protected in an 
21431 \begin_inset Flex Code
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435
21436 \change_inserted -712698321 1552395787
21437
21438 \backslash
21439 mbox
21440 \change_unchanged
21441
21442 \end_layout
21443
21444 \end_inset
21445
21446 .
21447  This is particularly needed for insets that draw on 
21448 \family sans
21449 ulem
21450 \family default
21451  or 
21452 \family sans
21453 soul
21454 \family default
21455  commands which parse their content in complex ways.
21456  Default is false.
21457 \end_layout
21458
21459 \begin_layout Description
21460
21461 \change_inserted -712698321 1555579742
21462 \begin_inset Flex Code
21463 status collapsed
21464
21465 \begin_layout Plain Layout
21466
21467 \change_inserted -712698321 1555579658
21468 NewlineCmd
21469 \change_unchanged
21470
21471 \end_layout
21472
21473 \end_inset
21474
21475  
21476 \begin_inset Flex Code
21477 status collapsed
21478
21479 \begin_layout Plain Layout
21480
21481 \change_inserted -712698321 1555579651
21482 [string]
21483 \change_unchanged
21484
21485 \end_layout
21486
21487 \end_inset
21488
21489  Option to define a different command (from the default 
21490 \begin_inset Flex Code
21491 status collapsed
21492
21493 \begin_layout Plain Layout
21494
21495 \change_inserted -712698321 1555579742
21496
21497 \backslash
21498
21499 \backslash
21500
21501 \change_unchanged
21502
21503 \end_layout
21504
21505 \end_inset
21506
21507 ) to be used for line breaks.
21508  The initial backslash must not be specified.
21509 \change_unchanged
21510
21511 \end_layout
21512
21513 \begin_layout Description
21514 \begin_inset Flex Code
21515 status collapsed
21516
21517 \begin_layout Plain Layout
21518 NoInsetLayout
21519 \end_layout
21520
21521 \end_inset
21522
21523  [
21524 \begin_inset Flex Code
21525 status collapsed
21526
21527 \begin_layout Plain Layout
21528 <layout>
21529 \end_layout
21530
21531 \end_inset
21532
21533 ] Deletes an existing 
21534 \begin_inset Flex Code
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538 InsetLayout
21539 \end_layout
21540
21541 \end_inset
21542
21543 .
21544 \end_layout
21545
21546 \begin_layout Description
21547 \begin_inset Flex Code
21548 status collapsed
21549
21550 \begin_layout Plain Layout
21551 ObsoletedBy
21552 \end_layout
21553
21554 \end_inset
21555
21556  [
21557 \begin_inset Flex Code
21558 status collapsed
21559
21560 \begin_layout Plain Layout
21561 <layout>
21562 \end_layout
21563
21564 \end_inset
21565
21566 ] Name of an 
21567 \begin_inset Flex Code
21568 status collapsed
21569
21570 \begin_layout Plain Layout
21571 InsetLayout
21572 \end_layout
21573
21574 \end_inset
21575
21576  that has replaced this 
21577 \begin_inset Flex Code
21578 status collapsed
21579
21580 \begin_layout Plain Layout
21581 InsetLayout
21582 \end_layout
21583
21584 \end_inset
21585
21586 .
21587  This is used to rename an 
21588 \begin_inset Flex Code
21589 status collapsed
21590
21591 \begin_layout Plain Layout
21592 InsetLayout
21593 \end_layout
21594
21595 \end_inset
21596
21597 , while keeping backward compatibility.
21598 \change_inserted -712698321 1559491850
21599
21600 \end_layout
21601
21602 \begin_layout Description
21603
21604 \change_inserted -712698321 1559492002
21605 \begin_inset Flex Code
21606 status collapsed
21607
21608 \begin_layout Plain Layout
21609
21610 \change_inserted -712698321 1559491854
21611 ParbreakIgnored
21612 \change_unchanged
21613
21614 \end_layout
21615
21616 \end_inset
21617
21618  [
21619 \begin_inset Flex Code
21620 status collapsed
21621
21622 \begin_layout Plain Layout
21623
21624 \change_inserted -712698321 1559491850
21625
21626 \emph on
21627 0
21628 \change_unchanged
21629
21630 \end_layout
21631
21632 \end_inset
21633
21634 ,
21635 \begin_inset space \thinspace{}
21636 \end_inset
21637
21638
21639 \begin_inset Flex Code
21640 status collapsed
21641
21642 \begin_layout Plain Layout
21643
21644 \change_inserted -712698321 1559491850
21645 1
21646 \change_unchanged
21647
21648 \end_layout
21649
21650 \end_inset
21651
21652 ] If this is set to 
21653 \begin_inset Flex Code
21654 status collapsed
21655
21656 \begin_layout Plain Layout
21657
21658 \change_inserted -712698321 1559491881
21659 1
21660 \change_unchanged
21661
21662 \end_layout
21663
21664 \end_inset
21665
21666 , paragraph breaks will be ignored in the output.
21667  This might be useful for insets where the content should be alignable on
21668  different lines only in the \SpecialChar LyX
21669  workarea, without any effect in the output.
21670 \change_unchanged
21671
21672 \end_layout
21673
21674 \begin_layout Description
21675 \begin_inset Flex Code
21676 status collapsed
21677
21678 \begin_layout Plain Layout
21679 ParbreakIsNewline
21680 \end_layout
21681
21682 \end_inset
21683
21684  [
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689
21690 \emph on
21691 0
21692 \end_layout
21693
21694 \end_inset
21695
21696 ,
21697 \begin_inset space \thinspace{}
21698 \end_inset
21699
21700
21701 \begin_inset Flex Code
21702 status collapsed
21703
21704 \begin_layout Plain Layout
21705 1
21706 \end_layout
21707
21708 \end_inset
21709
21710 ] As with paragraph styles, see 
21711 \begin_inset CommandInset ref
21712 LatexCommand ref
21713 reference "subsec:Paragraph-Styles"
21714
21715 \end_inset
21716
21717 .
21718  Default is false.
21719 \end_layout
21720
21721 \begin_layout Description
21722 \begin_inset Flex Code
21723 status collapsed
21724
21725 \begin_layout Plain Layout
21726 PassThru
21727 \end_layout
21728
21729 \end_inset
21730
21731  [
21732 \begin_inset Flex Code
21733 status collapsed
21734
21735 \begin_layout Plain Layout
21736
21737 \emph on
21738 0
21739 \end_layout
21740
21741 \end_inset
21742
21743 ,
21744 \begin_inset space \thinspace{}
21745 \end_inset
21746
21747
21748 \begin_inset Flex Code
21749 status collapsed
21750
21751 \begin_layout Plain Layout
21752 1
21753 \end_layout
21754
21755 \end_inset
21756
21757 ] As with paragraph styles, see 
21758 \begin_inset CommandInset ref
21759 LatexCommand ref
21760 reference "subsec:Paragraph-Styles"
21761
21762 \end_inset
21763
21764 .
21765  Default is false.
21766 \end_layout
21767
21768 \begin_layout Description
21769 \begin_inset Flex Code
21770 status collapsed
21771
21772 \begin_layout Plain Layout
21773 Preamble
21774 \end_layout
21775
21776 \end_inset
21777
21778  As with paragraph styles, see 
21779 \begin_inset CommandInset ref
21780 LatexCommand ref
21781 reference "subsec:Paragraph-Styles"
21782
21783 \end_inset
21784
21785 .
21786 \end_layout
21787
21788 \begin_layout Description
21789 \begin_inset Flex Code
21790 status collapsed
21791
21792 \begin_layout Plain Layout
21793 RefPrefix
21794 \end_layout
21795
21796 \end_inset
21797
21798  [
21799 \begin_inset Flex Code
21800 status collapsed
21801
21802 \begin_layout Plain Layout
21803 string
21804 \end_layout
21805
21806 \end_inset
21807
21808 ] The prefix to use when creating labels referring to insets of this type.
21809  This allows the use of formatted references.
21810 \end_layout
21811
21812 \begin_layout Description
21813 \begin_inset Flex Code
21814 status collapsed
21815
21816 \begin_layout Plain Layout
21817 Requires
21818 \end_layout
21819
21820 \end_inset
21821
21822  [
21823 \begin_inset Flex Code
21824 status collapsed
21825
21826 \begin_layout Plain Layout
21827 string
21828 \end_layout
21829
21830 \end_inset
21831
21832 ] As with paragraph styles, see 
21833 \begin_inset CommandInset ref
21834 LatexCommand ref
21835 reference "subsec:Paragraph-Styles"
21836
21837 \end_inset
21838
21839 .
21840 \end_layout
21841
21842 \begin_layout Description
21843 \begin_inset Flex Code
21844 status collapsed
21845
21846 \begin_layout Plain Layout
21847 ResetArgs
21848 \end_layout
21849
21850 \end_inset
21851
21852  [
21853 \begin_inset Flex Code
21854 status collapsed
21855
21856 \begin_layout Plain Layout
21857
21858 \emph on
21859 0
21860 \end_layout
21861
21862 \end_inset
21863
21864 ,
21865 \begin_inset space \thinspace{}
21866 \end_inset
21867
21868
21869 \begin_inset Flex Code
21870 status collapsed
21871
21872 \begin_layout Plain Layout
21873 1
21874 \end_layout
21875
21876 \end_inset
21877
21878 ] Resets the \SpecialChar LaTeX
21879  arguments of this layout (as defined via the 
21880 \begin_inset Flex Code
21881 status collapsed
21882
21883 \begin_layout Plain Layout
21884 Argument
21885 \end_layout
21886
21887 \end_inset
21888
21889  tag).
21890  This is useful if you have copied a style via 
21891 \begin_inset Flex Code
21892 status collapsed
21893
21894 \begin_layout Plain Layout
21895 CopyStyle
21896 \end_layout
21897
21898 \end_inset
21899
21900 , but you do not want to inherit its (required and optional) arguments.
21901 \end_layout
21902
21903 \begin_layout Description
21904 \begin_inset Flex Code
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908 ResetsFont
21909 \end_layout
21910
21911 \end_inset
21912
21913  [
21914 \begin_inset Flex Code
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918
21919 \emph on
21920 0
21921 \end_layout
21922
21923 \end_inset
21924
21925 ,
21926 \begin_inset space \thinspace{}
21927 \end_inset
21928
21929
21930 \begin_inset Flex Code
21931 status collapsed
21932
21933 \begin_layout Plain Layout
21934 1
21935 \end_layout
21936
21937 \end_inset
21938
21939
21940 \change_inserted -712698321 1597733473
21941 If 
21942 \begin_inset Flex Code
21943 status collapsed
21944
21945 \begin_layout Plain Layout
21946
21947 \change_inserted -712698321 1597732178
21948 1
21949 \change_unchanged
21950
21951 \end_layout
21952
21953 \end_inset
21954
21955 , font changes are redone inside the respective inset (in the output) even
21956  if the inset itself is in the context of this font changes (e.
21957 \begin_inset space \thinspace{}
21958 \end_inset
21959
21960 g., 
21961 \begin_inset Flex Code
21962 status collapsed
21963
21964 \begin_layout Plain Layout
21965
21966 \change_inserted -712698321 1597733683
21967
21968 \backslash
21969 textbf{Sourrounding text 
21970 \backslash
21971 myinset{
21972 \backslash
21973 textbf{content}}\SpecialChar ldots
21974 }
21975 \change_unchanged
21976
21977 \end_layout
21978
21979 \end_inset
21980
21981  rather than 
21982 \begin_inset Flex Code
21983 status collapsed
21984
21985 \begin_layout Plain Layout
21986
21987 \change_inserted -712698321 1597733686
21988
21989 \backslash
21990 textbf{Sourrounding text 
21991 \backslash
21992 myinset{content}\SpecialChar ldots
21993 }
21994 \end_layout
21995
21996 \end_inset
21997
21998 .
21999  Setting this makes sense for commands that internally reset font settings
22000  (e.
22001 \begin_inset space \thinspace{}
22002 \end_inset
22003
22004 g., footnotes).
22005  Note that wrongly setting this might lead to unwanted result (e.
22006 \begin_inset space \thinspace{}
22007 \end_inset
22008
22009 g., with 
22010 \begin_inset Flex Code
22011 status collapsed
22012
22013 \begin_layout Plain Layout
22014
22015 \change_inserted -712698321 1597733688
22016
22017 \backslash
22018 emph{Sourrounding text 
22019 \backslash
22020 myinset{
22021 \backslash
22022 emph{content}}\SpecialChar ldots
22023 }
22024 \end_layout
22025
22026 \end_inset
22027
22028 , content is upright, as 
22029 \begin_inset Flex Code
22030 status collapsed
22031
22032 \begin_layout Plain Layout
22033
22034 \change_inserted -712698321 1597733278
22035
22036 \backslash
22037 emph
22038 \end_layout
22039
22040 \end_inset
22041
22042  toggles.
22043  
22044 \change_deleted -712698321 1597733283
22045 Whether this inset should use the font of its surrounding environment or
22046  uses its own.
22047  
22048 \change_unchanged
22049 Default is 
22050 \change_deleted -712698321 1597733290
22051 false
22052 \change_inserted -712698321 1597733290
22053
22054 \begin_inset Flex Code
22055 status collapsed
22056
22057 \begin_layout Plain Layout
22058
22059 \change_inserted -712698321 1597733292
22060 0
22061 \end_layout
22062
22063 \end_inset
22064
22065
22066 \change_unchanged
22067
22068 \change_deleted -712698321 1597733327
22069 use the font of the surrounding environment
22070 \change_inserted -712698321 1597733343
22071 font changes are not redone inside the inset
22072 \change_unchanged
22073 .
22074 \end_layout
22075
22076 \begin_layout Description
22077 \begin_inset Flex Code
22078 status collapsed
22079
22080 \begin_layout Plain Layout
22081 RightDelim
22082 \end_layout
22083
22084 \end_inset
22085
22086  [
22087 \begin_inset Flex Code
22088 status collapsed
22089
22090 \begin_layout Plain Layout
22091 string
22092 \end_layout
22093
22094 \end_inset
22095
22096 ] A string that is put at the end of the layout content.
22097  A line break in the output can be indicated by 
22098 \begin_inset Flex Code
22099 status collapsed
22100
22101 \begin_layout Plain Layout
22102 <br/>
22103 \end_layout
22104
22105 \end_inset
22106
22107 .
22108 \end_layout
22109
22110 \begin_layout Description
22111 \begin_inset Flex Code
22112 status collapsed
22113
22114 \begin_layout Plain Layout
22115 Spellcheck
22116 \end_layout
22117
22118 \end_inset
22119
22120  [
22121 \begin_inset Flex Code
22122 status collapsed
22123
22124 \begin_layout Plain Layout
22125 0
22126 \end_layout
22127
22128 \end_inset
22129
22130 ,
22131 \begin_inset space \thinspace{}
22132 \end_inset
22133
22134
22135 \begin_inset Flex Code
22136 status collapsed
22137
22138 \begin_layout Plain Layout
22139
22140 \emph on
22141 1
22142 \end_layout
22143
22144 \end_inset
22145
22146 ] Allow spell-checking the contents of this inset.
22147  Default is true.
22148 \end_layout
22149
22150 \begin_layout Subsection
22151 Counters
22152 \begin_inset CommandInset label
22153 LatexCommand label
22154 name "subsec:Counters"
22155
22156 \end_inset
22157
22158
22159 \end_layout
22160
22161 \begin_layout Standard
22162 It is necessary to define the counters (
22163 \begin_inset Flex Noun
22164 status collapsed
22165
22166 \begin_layout Plain Layout
22167 chapter
22168 \end_layout
22169
22170 \end_inset
22171
22172
22173 \begin_inset Flex Noun
22174 status collapsed
22175
22176 \begin_layout Plain Layout
22177 figure
22178 \end_layout
22179
22180 \end_inset
22181
22182 , \SpecialChar ldots
22183 ) in the text class itself.
22184  The standard counters are defined in the file 
22185 \begin_inset Flex Code
22186 status collapsed
22187
22188 \begin_layout Plain Layout
22189 stdcounters.inc
22190 \end_layout
22191
22192 \end_inset
22193
22194 , so you may have to do no more than add
22195 \end_layout
22196
22197 \begin_layout LyX-Code
22198 Input stdcounters.inc
22199 \end_layout
22200
22201 \begin_layout Standard
22202 to your layout file to get them to work.
22203  But if you want to define custom counters, then you can do so.
22204  The counter declaration must begin with:
22205 \end_layout
22206
22207 \begin_layout LyX-Code
22208 Counter CounterName
22209 \end_layout
22210
22211 \begin_layout Standard
22212 where of course `
22213 \begin_inset Flex Code
22214 status collapsed
22215
22216 \begin_layout Plain Layout
22217 CounterName
22218 \end_layout
22219
22220 \end_inset
22221
22222 ' is replaced by the name of the counter.
22223  And it must end with 
22224 \begin_inset Quotes eld
22225 \end_inset
22226
22227
22228 \begin_inset Flex Code
22229 status collapsed
22230
22231 \begin_layout Plain Layout
22232 End
22233 \end_layout
22234
22235 \end_inset
22236
22237
22238 \begin_inset Quotes erd
22239 \end_inset
22240
22241 .
22242  The following parameters can also be used:
22243 \end_layout
22244
22245 \begin_layout Description
22246 \begin_inset Flex Code
22247 status collapsed
22248
22249 \begin_layout Plain Layout
22250 InitialValue
22251 \end_layout
22252
22253 \end_inset
22254
22255  [
22256 \begin_inset Flex Code
22257 status collapsed
22258
22259 \begin_layout Plain Layout
22260 int=1
22261 \end_layout
22262
22263 \end_inset
22264
22265 ] Sets the initial value for the counter, to which it will be reset whenever
22266  that happens.
22267  Normally, one will want the default, 1.
22268 \end_layout
22269
22270 \begin_layout Description
22271 \begin_inset Flex Code
22272 status collapsed
22273
22274 \begin_layout Plain Layout
22275 LabelString
22276 \end_layout
22277
22278 \end_inset
22279
22280  [
22281 \begin_inset Flex Code
22282 status collapsed
22283
22284 \begin_layout Plain Layout
22285 string
22286 \end_layout
22287
22288 \end_inset
22289
22290 =
22291 \begin_inset Quotes erd
22292 \end_inset
22293
22294
22295 \begin_inset Quotes erd
22296 \end_inset
22297
22298 ] When defined, this string defines how the counter is displayed.
22299  Setting this value sets 
22300 \begin_inset Flex Code
22301 status collapsed
22302
22303 \begin_layout Plain Layout
22304 LabelStringAppendix
22305 \end_layout
22306
22307 \end_inset
22308
22309  to the same value.
22310  The following special constructs can be used in the string:
22311 \end_layout
22312
22313 \begin_deeper
22314 \begin_layout Itemize
22315 \begin_inset Flex Code
22316 status collapsed
22317
22318 \begin_layout Plain Layout
22319
22320 \backslash
22321 thecounter
22322 \end_layout
22323
22324 \end_inset
22325
22326  will be replaced by the expansion of the 
22327 \begin_inset Flex Code
22328 status collapsed
22329
22330 \begin_layout Plain Layout
22331 LabelString
22332 \end_layout
22333
22334 \end_inset
22335
22336  (or 
22337 \begin_inset Flex Code
22338 status collapsed
22339
22340 \begin_layout Plain Layout
22341 LabelStringAppendix
22342 \end_layout
22343
22344 \end_inset
22345
22346 ) of the counter 
22347 \begin_inset Flex Code
22348 status collapsed
22349
22350 \begin_layout Plain Layout
22351 counter
22352 \end_layout
22353
22354 \end_inset
22355
22356 .
22357  
22358 \end_layout
22359
22360 \begin_layout Itemize
22361 counter values can be expressed using \SpecialChar LaTeX
22362 -like macros
22363 \begin_inset Newline newline
22364 \end_inset
22365
22366
22367 \begin_inset Flex Code
22368 status collapsed
22369
22370 \begin_layout Plain Layout
22371
22372 \backslash
22373
22374 \emph on
22375 numbertype
22376 \emph default
22377 {
22378 \emph on
22379 counter
22380 \emph default
22381 }
22382 \end_layout
22383
22384 \end_inset
22385
22386 , where 
22387 \begin_inset Flex Code
22388 status collapsed
22389
22390 \begin_layout Plain Layout
22391
22392 \emph on
22393 numbertype
22394 \end_layout
22395
22396 \end_inset
22397
22398  can be:
22399 \begin_inset Foot
22400 status collapsed
22401
22402 \begin_layout Plain Layout
22403
22404 \family roman
22405 \series medium
22406 \shape up
22407 \size normal
22408 \emph off
22409 \bar no
22410 \noun off
22411 \color none
22412 Actually, the situation is a bit more complicated: any
22413 \family default
22414 \series default
22415 \shape default
22416 \emph default
22417 \bar default
22418  
22419 \size default
22420 \emph on
22421 \noun default
22422 \color inherit
22423 numbertype
22424 \family roman
22425 \series medium
22426 \shape up
22427 \size normal
22428 \emph off
22429 \bar no
22430 \noun off
22431  other than those described below will produce arabic numerals.
22432  It would not be surprising to see this change in the future.
22433 \end_layout
22434
22435 \end_inset
22436
22437  
22438 \begin_inset Flex Code
22439 status collapsed
22440
22441 \begin_layout Plain Layout
22442 arabic
22443 \end_layout
22444
22445 \end_inset
22446
22447 : 1, 2, 3,\SpecialChar ldots
22448
22449 \begin_inset Flex Code
22450 status collapsed
22451
22452 \begin_layout Plain Layout
22453 alph
22454 \end_layout
22455
22456 \end_inset
22457
22458  for lower-case letters: a, b, c, \SpecialChar ldots
22459
22460 \begin_inset Flex Code
22461 status collapsed
22462
22463 \begin_layout Plain Layout
22464 Alph
22465 \end_layout
22466
22467 \end_inset
22468
22469  for upper-case letters: A, B, C, \SpecialChar ldots
22470
22471 \begin_inset Flex Code
22472 status collapsed
22473
22474 \begin_layout Plain Layout
22475 roman
22476 \end_layout
22477
22478 \end_inset
22479
22480  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
22481
22482 \begin_inset Flex Code
22483 status collapsed
22484
22485 \begin_layout Plain Layout
22486 Roman
22487 \end_layout
22488
22489 \end_inset
22490
22491  for upper-case roman numerals: I, II, III\SpecialChar ldots
22492
22493 \begin_inset Flex Code
22494 status collapsed
22495
22496 \begin_layout Plain Layout
22497 hebrew
22498 \end_layout
22499
22500 \end_inset
22501
22502  for hebrew numerals.
22503 \end_layout
22504
22505 \end_deeper
22506 \begin_layout Standard
22507 If LabelString is not defined, a default value is constructed as follows:
22508  if the counter has a master counter 
22509 \begin_inset Flex Code
22510 status collapsed
22511
22512 \begin_layout Plain Layout
22513 master
22514 \end_layout
22515
22516 \end_inset
22517
22518  (defined via 
22519 \begin_inset Flex Code
22520 status collapsed
22521
22522 \begin_layout Plain Layout
22523 Within
22524 \end_layout
22525
22526 \end_inset
22527
22528 ), the string
22529 \begin_inset Newline newline
22530 \end_inset
22531
22532
22533 \begin_inset Flex Code
22534 status collapsed
22535
22536 \begin_layout Plain Layout
22537
22538 \backslash
22539 themaster.
22540 \backslash
22541 arabic{counter}
22542 \end_layout
22543
22544 \end_inset
22545
22546  is used; otherwise the string 
22547 \begin_inset Flex Code
22548 status collapsed
22549
22550 \begin_layout Plain Layout
22551
22552 \backslash
22553 arabic{counter}
22554 \end_layout
22555
22556 \end_inset
22557
22558  is used.
22559 \end_layout
22560
22561 \begin_layout Description
22562 \begin_inset Flex Code
22563 status collapsed
22564
22565 \begin_layout Plain Layout
22566 LabelStringAppendix
22567 \end_layout
22568
22569 \end_inset
22570
22571  [
22572 \begin_inset Flex Code
22573 status collapsed
22574
22575 \begin_layout Plain Layout
22576 string
22577 \end_layout
22578
22579 \end_inset
22580
22581 =
22582 \begin_inset Quotes erd
22583 \end_inset
22584
22585
22586 \begin_inset Quotes erd
22587 \end_inset
22588
22589 ] Same as 
22590 \begin_inset Flex Code
22591 status collapsed
22592
22593 \begin_layout Plain Layout
22594 LabelString
22595 \end_layout
22596
22597 \end_inset
22598
22599 , but for use in the Appendix.
22600 \end_layout
22601
22602 \begin_layout Description
22603 \begin_inset Flex Code
22604 status collapsed
22605
22606 \begin_layout Plain Layout
22607 PrettyFormat
22608 \end_layout
22609
22610 \end_inset
22611
22612  [
22613 \begin_inset Flex Code
22614 status collapsed
22615
22616 \begin_layout Plain Layout
22617 string
22618 \end_layout
22619
22620 \end_inset
22621
22622 =
22623 \begin_inset Quotes erd
22624 \end_inset
22625
22626
22627 \begin_inset Quotes erd
22628 \end_inset
22629
22630 ] A format for use with formatted references to this counter.
22631  For example, one might want to have references to section numbers appear
22632  as 
22633 \begin_inset Quotes eld
22634 \end_inset
22635
22636 Section 2.4
22637 \begin_inset Quotes erd
22638 \end_inset
22639
22640 .
22641  The string should contain 
22642 \begin_inset Quotes eld
22643 \end_inset
22644
22645 ##
22646 \begin_inset Quotes erd
22647 \end_inset
22648
22649 .
22650  This will be replaced by the counter number itself.
22651  So, for sections, it would be: Section ##.
22652 \end_layout
22653
22654 \begin_layout Description
22655 \begin_inset Flex Code
22656 status collapsed
22657
22658 \begin_layout Plain Layout
22659 Within
22660 \end_layout
22661
22662 \end_inset
22663
22664  [
22665 \begin_inset Flex Code
22666 status collapsed
22667
22668 \begin_layout Plain Layout
22669 string
22670 \end_layout
22671
22672 \end_inset
22673
22674 =
22675 \begin_inset Quotes erd
22676 \end_inset
22677
22678
22679 \begin_inset Quotes erd
22680 \end_inset
22681
22682 ] If this is set to the name of another counter, the present counter will
22683  be reset every time the other one is increased.
22684  For example, 
22685 \begin_inset Flex Code
22686 status collapsed
22687
22688 \begin_layout Plain Layout
22689 subsection
22690 \end_layout
22691
22692 \end_inset
22693
22694  is numbered inside 
22695 \begin_inset Flex Code
22696 status collapsed
22697
22698 \begin_layout Plain Layout
22699 section
22700 \end_layout
22701
22702 \end_inset
22703
22704 .
22705 \end_layout
22706
22707 \begin_layout Subsection
22708 Font description
22709 \begin_inset CommandInset label
22710 LatexCommand label
22711 name "subsec:Font-description"
22712
22713 \end_inset
22714
22715
22716 \end_layout
22717
22718 \begin_layout Standard
22719 A font description looks like this:
22720 \end_layout
22721
22722 \begin_layout LyX-Code
22723 Font 
22724 \family roman
22725 \emph on
22726 or
22727 \family default
22728 \emph default
22729  LabelFont
22730 \emph on
22731  
22732 \family roman
22733 or
22734 \family default
22735 \emph default
22736  DefaultFont
22737 \end_layout
22738
22739 \begin_layout LyX-Code
22740  ...
22741 \end_layout
22742
22743 \begin_layout LyX-Code
22744 EndFont
22745 \end_layout
22746
22747 \begin_layout Standard
22748 The following commands are available:
22749 \end_layout
22750
22751 \begin_layout Description
22752 \begin_inset Flex Code
22753 status collapsed
22754
22755 \begin_layout Plain Layout
22756 Color
22757 \end_layout
22758
22759 \end_inset
22760
22761  [
22762 \begin_inset Flex Code
22763 status collapsed
22764
22765 \begin_layout Plain Layout
22766
22767 \emph on
22768 none
22769 \end_layout
22770
22771 \end_inset
22772
22773
22774 \begin_inset Flex Code
22775 status collapsed
22776
22777 \begin_layout Plain Layout
22778 black
22779 \end_layout
22780
22781 \end_inset
22782
22783
22784 \begin_inset Flex Code
22785 status collapsed
22786
22787 \begin_layout Plain Layout
22788 white
22789 \end_layout
22790
22791 \end_inset
22792
22793
22794 \begin_inset Flex Code
22795 status collapsed
22796
22797 \begin_layout Plain Layout
22798 red
22799 \end_layout
22800
22801 \end_inset
22802
22803
22804 \begin_inset Flex Code
22805 status collapsed
22806
22807 \begin_layout Plain Layout
22808 green
22809 \end_layout
22810
22811 \end_inset
22812
22813
22814 \begin_inset Flex Code
22815 status collapsed
22816
22817 \begin_layout Plain Layout
22818 blue
22819 \end_layout
22820
22821 \end_inset
22822
22823
22824 \begin_inset Flex Code
22825 status collapsed
22826
22827 \begin_layout Plain Layout
22828 cyan
22829 \end_layout
22830
22831 \end_inset
22832
22833
22834 \begin_inset Flex Code
22835 status collapsed
22836
22837 \begin_layout Plain Layout
22838 magenta
22839 \end_layout
22840
22841 \end_inset
22842
22843
22844 \begin_inset Flex Code
22845 status collapsed
22846
22847 \begin_layout Plain Layout
22848 yellow
22849 \end_layout
22850
22851 \end_inset
22852
22853
22854 \begin_inset Flex Code
22855 status collapsed
22856
22857 \begin_layout Plain Layout
22858 brown
22859 \end_layout
22860
22861 \end_inset
22862
22863
22864 \begin_inset Flex Code
22865 status collapsed
22866
22867 \begin_layout Plain Layout
22868 darkgray
22869 \end_layout
22870
22871 \end_inset
22872
22873
22874 \begin_inset Flex Code
22875 status collapsed
22876
22877 \begin_layout Plain Layout
22878 gray
22879 \end_layout
22880
22881 \end_inset
22882
22883
22884 \begin_inset Flex Code
22885 status collapsed
22886
22887 \begin_layout Plain Layout
22888 lightgray
22889 \end_layout
22890
22891 \end_inset
22892
22893
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 lime
22899 \end_layout
22900
22901 \end_inset
22902
22903
22904 \begin_inset Flex Code
22905 status collapsed
22906
22907 \begin_layout Plain Layout
22908 orange
22909 \end_layout
22910
22911 \end_inset
22912
22913
22914 \begin_inset Flex Code
22915 status collapsed
22916
22917 \begin_layout Plain Layout
22918 olive
22919 \end_layout
22920
22921 \end_inset
22922
22923
22924 \begin_inset Flex Code
22925 status collapsed
22926
22927 \begin_layout Plain Layout
22928 pink
22929 \end_layout
22930
22931 \end_inset
22932
22933
22934 \begin_inset Flex Code
22935 status collapsed
22936
22937 \begin_layout Plain Layout
22938 purple
22939 \end_layout
22940
22941 \end_inset
22942
22943
22944 \begin_inset Flex Code
22945 status collapsed
22946
22947 \begin_layout Plain Layout
22948 teal
22949 \end_layout
22950
22951 \end_inset
22952
22953
22954 \begin_inset Flex Code
22955 status collapsed
22956
22957 \begin_layout Plain Layout
22958 violet
22959 \end_layout
22960
22961 \end_inset
22962
22963 ]
22964 \end_layout
22965
22966 \begin_layout Description
22967 \begin_inset Flex Code
22968 status collapsed
22969
22970 \begin_layout Plain Layout
22971 Family
22972 \end_layout
22973
22974 \end_inset
22975
22976  [
22977 \begin_inset Flex Code
22978 status collapsed
22979
22980 \begin_layout Plain Layout
22981
22982 \emph on
22983 Roman
22984 \end_layout
22985
22986 \end_inset
22987
22988
22989 \begin_inset Flex Code
22990 status collapsed
22991
22992 \begin_layout Plain Layout
22993 Sans
22994 \end_layout
22995
22996 \end_inset
22997
22998
22999 \begin_inset Flex Code
23000 status collapsed
23001
23002 \begin_layout Plain Layout
23003 Typewriter
23004 \end_layout
23005
23006 \end_inset
23007
23008 ]
23009 \end_layout
23010
23011 \begin_layout Description
23012 \begin_inset Flex Code
23013 status collapsed
23014
23015 \begin_layout Plain Layout
23016 Misc
23017 \end_layout
23018
23019 \end_inset
23020
23021  [
23022 \begin_inset Flex Code
23023 status collapsed
23024
23025 \begin_layout Plain Layout
23026 string
23027 \end_layout
23028
23029 \end_inset
23030
23031 ] Valid arguments are: 
23032 \begin_inset Flex Code
23033 status collapsed
23034
23035 \begin_layout Plain Layout
23036 emph
23037 \end_layout
23038
23039 \end_inset
23040
23041
23042 \begin_inset Flex Code
23043 status collapsed
23044
23045 \begin_layout Plain Layout
23046 noun
23047 \end_layout
23048
23049 \end_inset
23050
23051
23052 \begin_inset Flex Code
23053 status collapsed
23054
23055 \begin_layout Plain Layout
23056 strikeout
23057 \end_layout
23058
23059 \end_inset
23060
23061
23062 \begin_inset Flex Code
23063 status collapsed
23064
23065 \begin_layout Plain Layout
23066 underbar
23067 \end_layout
23068
23069 \end_inset
23070
23071
23072 \begin_inset Flex Code
23073 status collapsed
23074
23075 \begin_layout Plain Layout
23076 uuline
23077 \end_layout
23078
23079 \end_inset
23080
23081
23082 \begin_inset Flex Code
23083 status collapsed
23084
23085 \begin_layout Plain Layout
23086 uwave
23087 \end_layout
23088
23089 \end_inset
23090
23091
23092 \begin_inset Flex Code
23093 status collapsed
23094
23095 \begin_layout Plain Layout
23096 no_emph
23097 \end_layout
23098
23099 \end_inset
23100
23101
23102 \begin_inset Flex Code
23103 status collapsed
23104
23105 \begin_layout Plain Layout
23106 no_noun
23107 \end_layout
23108
23109 \end_inset
23110
23111
23112 \begin_inset Flex Code
23113 status collapsed
23114
23115 \begin_layout Plain Layout
23116 no_strikeout
23117 \end_layout
23118
23119 \end_inset
23120
23121
23122 \begin_inset Flex Code
23123 status collapsed
23124
23125 \begin_layout Plain Layout
23126 no_bar
23127 \end_layout
23128
23129 \end_inset
23130
23131
23132 \begin_inset Flex Code
23133 status collapsed
23134
23135 \begin_layout Plain Layout
23136 no_uuline
23137 \end_layout
23138
23139 \end_inset
23140
23141  and 
23142 \begin_inset Flex Code
23143 status collapsed
23144
23145 \begin_layout Plain Layout
23146 no_uwave
23147 \end_layout
23148
23149 \end_inset
23150
23151 .
23152  Each of these turns on or off the corresponding attribute.
23153  For example, 
23154 \begin_inset Flex Code
23155 status collapsed
23156
23157 \begin_layout Plain Layout
23158 emph
23159 \end_layout
23160
23161 \end_inset
23162
23163  turns on emphasis, and 
23164 \begin_inset Flex Code
23165 status collapsed
23166
23167 \begin_layout Plain Layout
23168 no_emph
23169 \end_layout
23170
23171 \end_inset
23172
23173  turns it off.
23174  
23175 \begin_inset Newline newline
23176 \end_inset
23177
23178 If the latter seems puzzling, remember that the font settings for the present
23179  context are generally inherited from the surrounding context.
23180  So 
23181 \begin_inset Flex Code
23182 status collapsed
23183
23184 \begin_layout Plain Layout
23185 no_emph
23186 \end_layout
23187
23188 \end_inset
23189
23190  would turn off the emphasis that was anyway in effect, say, in a theorem
23191  environment.
23192 \end_layout
23193
23194 \begin_layout Description
23195 \begin_inset Flex Code
23196 status collapsed
23197
23198 \begin_layout Plain Layout
23199 Series
23200 \end_layout
23201
23202 \end_inset
23203
23204  [
23205 \begin_inset Flex Code
23206 status collapsed
23207
23208 \begin_layout Plain Layout
23209
23210 \emph on
23211 Medium
23212 \end_layout
23213
23214 \end_inset
23215
23216
23217 \begin_inset Flex Code
23218 status collapsed
23219
23220 \begin_layout Plain Layout
23221 Bold
23222 \end_layout
23223
23224 \end_inset
23225
23226
23227 \end_layout
23228
23229 \begin_layout Description
23230 \begin_inset Flex Code
23231 status collapsed
23232
23233 \begin_layout Plain Layout
23234 Shape
23235 \end_layout
23236
23237 \end_inset
23238
23239  [
23240 \begin_inset Flex Code
23241 status collapsed
23242
23243 \begin_layout Plain Layout
23244
23245 \emph on
23246 Up
23247 \end_layout
23248
23249 \end_inset
23250
23251
23252 \begin_inset Flex Code
23253 status collapsed
23254
23255 \begin_layout Plain Layout
23256 Italic
23257 \end_layout
23258
23259 \end_inset
23260
23261
23262 \begin_inset Flex Code
23263 status collapsed
23264
23265 \begin_layout Plain Layout
23266 SmallCaps
23267 \end_layout
23268
23269 \end_inset
23270
23271
23272 \begin_inset Flex Code
23273 status collapsed
23274
23275 \begin_layout Plain Layout
23276 Slanted
23277 \end_layout
23278
23279 \end_inset
23280
23281
23282 \end_layout
23283
23284 \begin_layout Description
23285 \begin_inset Flex Code
23286 status collapsed
23287
23288 \begin_layout Plain Layout
23289 Size
23290 \end_layout
23291
23292 \end_inset
23293
23294  [
23295 \begin_inset Flex Code
23296 status collapsed
23297
23298 \begin_layout Plain Layout
23299 tiny
23300 \end_layout
23301
23302 \end_inset
23303
23304
23305 \begin_inset Flex Code
23306 status collapsed
23307
23308 \begin_layout Plain Layout
23309 small
23310 \end_layout
23311
23312 \end_inset
23313
23314
23315 \begin_inset Flex Code
23316 status collapsed
23317
23318 \begin_layout Plain Layout
23319
23320 \emph on
23321 normal
23322 \end_layout
23323
23324 \end_inset
23325
23326
23327 \begin_inset Flex Code
23328 status collapsed
23329
23330 \begin_layout Plain Layout
23331 large
23332 \end_layout
23333
23334 \end_inset
23335
23336
23337 \begin_inset Flex Code
23338 status collapsed
23339
23340 \begin_layout Plain Layout
23341 larger
23342 \end_layout
23343
23344 \end_inset
23345
23346
23347 \begin_inset Flex Code
23348 status collapsed
23349
23350 \begin_layout Plain Layout
23351 largest
23352 \end_layout
23353
23354 \end_inset
23355
23356
23357 \begin_inset Flex Code
23358 status collapsed
23359
23360 \begin_layout Plain Layout
23361 huge
23362 \end_layout
23363
23364 \end_inset
23365
23366
23367 \begin_inset Flex Code
23368 status collapsed
23369
23370 \begin_layout Plain Layout
23371 giant
23372 \end_layout
23373
23374 \end_inset
23375
23376 ]
23377 \end_layout
23378
23379 \begin_layout Subsection
23380 \begin_inset CommandInset label
23381 LatexCommand label
23382 name "subsec:Citation-engine-description"
23383
23384 \end_inset
23385
23386 Cite engine description
23387 \end_layout
23388
23389 \begin_layout Standard
23390 The 
23391 \begin_inset Flex Code
23392 status collapsed
23393
23394 \begin_layout Plain Layout
23395 CiteEngine
23396 \end_layout
23397
23398 \end_inset
23399
23400  blocks, as used mainly in cite engine files (see 
23401 \begin_inset CommandInset ref
23402 LatexCommand ref
23403 reference "subsec:Cite-Engine-Files"
23404 plural "false"
23405 caps "false"
23406 noprefix "false"
23407
23408 \end_inset
23409
23410 ), define the citation commands provided by a specific 
23411 \begin_inset Quotes eld
23412 \end_inset
23413
23414 cite engine
23415 \begin_inset Quotes erd
23416 \end_inset
23417
23418 .
23419  A cite engine, in \SpecialChar LyX
23420  terms, is way specific way to format citations, using
23421  numbers, author names and/or years.
23422  Currently, \SpecialChar LyX
23423  supports three such engine types, namely:
23424 \end_layout
23425
23426 \begin_layout Enumerate
23427 \begin_inset Flex Code
23428 status collapsed
23429
23430 \begin_layout Plain Layout
23431 default
23432 \end_layout
23433
23434 \end_inset
23435
23436 : the default Bib\SpecialChar TeX
23437  way to format citations, a simple numeric style (e.
23438 \begin_inset space \thinspace{}
23439 \end_inset
23440
23441 g., 
23442 \begin_inset Quotes eld
23443 \end_inset
23444
23445 [1]
23446 \begin_inset Quotes erd
23447 \end_inset
23448
23449 )
23450 \end_layout
23451
23452 \begin_layout Enumerate
23453 \begin_inset Flex Code
23454 status collapsed
23455
23456 \begin_layout Plain Layout
23457 authoryear
23458 \end_layout
23459
23460 \end_inset
23461
23462 : Harvard-styled citations using author names and publication year (e.
23463 \begin_inset space \thinspace{}
23464 \end_inset
23465
23466 g., 
23467 \begin_inset Quotes eld
23468 \end_inset
23469
23470 Smith and Miller (2017b)
23471 \begin_inset Quotes erd
23472 \end_inset
23473
23474 )
23475 \end_layout
23476
23477 \begin_layout Enumerate
23478 \begin_inset Flex Code
23479 status collapsed
23480
23481 \begin_layout Plain Layout
23482 numerical
23483 \end_layout
23484
23485 \end_inset
23486
23487 : extended numerical citations that also allow for author or title next
23488  to the number (e.
23489 \begin_inset space \thinspace{}
23490 \end_inset
23491
23492 g., 
23493 \begin_inset Quotes eld
23494 \end_inset
23495
23496 Smith and Miller [1]
23497 \begin_inset Quotes erd
23498 \end_inset
23499
23500 )
23501 \end_layout
23502
23503 \begin_layout Standard
23504 \begin_inset Flex Code
23505 status collapsed
23506
23507 \begin_layout Plain Layout
23508 CiteEngine
23509 \end_layout
23510
23511 \end_inset
23512
23513  blocks look like this:
23514 \end_layout
23515
23516 \begin_layout LyX-Code
23517 CiteEngine default
23518 \end_layout
23519
23520 \begin_layout LyX-Code
23521  cite
23522 \end_layout
23523
23524 \begin_layout LyX-Code
23525  Citep*[][]
23526 \end_layout
23527
23528 \begin_layout LyX-Code
23529  citeyearpar[][]=parencite*
23530 \end_layout
23531
23532 \begin_layout LyX-Code
23533  ...
23534 \end_layout
23535
23536 \begin_layout LyX-Code
23537 End
23538 \end_layout
23539
23540 \begin_layout Standard
23541 The tag following 
23542 \begin_inset Flex Code
23543 status collapsed
23544
23545 \begin_layout Plain Layout
23546 CiteEngine
23547 \end_layout
23548
23549 \end_inset
23550
23551  denotes the engine.
23552  The individual lines respectively define a cite command or cite command
23553  paradigm supported by this engine.
23554  The line can be as simple as a cite command that is used both to name the
23555  respective \SpecialChar LyX
23556  command and the \SpecialChar LaTeX
23557  output or more complex in order to differentiate
23558  things.
23559  The full syntax is:
23560 \end_layout
23561
23562 \begin_layout LyX-Code
23563 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23564 \end_layout
23565
23566 \begin_layout Itemize
23567 \begin_inset Flex Code
23568 status collapsed
23569
23570 \begin_layout Plain Layout
23571 LyXName
23572 \end_layout
23573
23574 \end_inset
23575
23576 : The name as used in the 
23577 \begin_inset Flex Code
23578 status collapsed
23579
23580 \begin_layout Plain Layout
23581 *.lyx
23582 \end_layout
23583
23584 \end_inset
23585
23586  file.
23587 \end_layout
23588
23589 \begin_deeper
23590 \begin_layout Standard
23591 For portability reasons, we try to use the same name for same-formatted
23592  commands in different cite packages (thus many names stem from natbib,
23593  and thus we need to differentiate a 
23594 \begin_inset Flex Code
23595 status collapsed
23596
23597 \begin_layout Plain Layout
23598 latexcmd
23599 \end_layout
23600
23601 \end_inset
23602
23603  sometimes, if the \SpecialChar LaTeX
23604  command names differ).
23605 \end_layout
23606
23607 \end_deeper
23608 \begin_layout Itemize
23609 \begin_inset Flex Code
23610 status collapsed
23611
23612 \begin_layout Plain Layout
23613 alias
23614 \end_layout
23615
23616 \end_inset
23617
23618 : a (comma-separated) list of commands that fall back to the given 
23619 \begin_inset Flex Code
23620 status collapsed
23621
23622 \begin_layout Plain Layout
23623 LyXName
23624 \end_layout
23625
23626 \end_inset
23627
23628  in the current engine.
23629  This eases the switch of citation packages and engines.
23630  The 
23631 \begin_inset Flex Code
23632 status collapsed
23633
23634 \begin_layout Plain Layout
23635 alias
23636 \end_layout
23637
23638 \end_inset
23639
23640  can be compared to 
23641 \begin_inset Flex Code
23642 status collapsed
23643
23644 \begin_layout Plain Layout
23645 ObsoletedBy
23646 \end_layout
23647
23648 \end_inset
23649
23650  in layout definitions.
23651 \end_layout
23652
23653 \begin_layout Itemize
23654 \begin_inset Flex Code
23655 status collapsed
23656
23657 \begin_layout Plain Layout
23658 latexcmd
23659 \end_layout
23660
23661 \end_inset
23662
23663 : The actual \SpecialChar LaTeX
23664  command that is output.
23665  
23666 \end_layout
23667
23668 \begin_layout Standard
23669 \begin_inset Flex Code
23670 status collapsed
23671
23672 \begin_layout Plain Layout
23673 Alias
23674 \end_layout
23675
23676 \end_inset
23677
23678  and 
23679 \begin_inset Flex Code
23680 status collapsed
23681
23682 \begin_layout Plain Layout
23683 latexcmd
23684 \end_layout
23685
23686 \end_inset
23687
23688  are optional.
23689  If no 
23690 \begin_inset Flex Code
23691 status collapsed
23692
23693 \begin_layout Plain Layout
23694 latexcmd
23695 \end_layout
23696
23697 \end_inset
23698
23699  is given, the 
23700 \begin_inset Flex Code
23701 status collapsed
23702
23703 \begin_layout Plain Layout
23704 LyXName
23705 \end_layout
23706
23707 \end_inset
23708
23709  will be output to \SpecialChar LaTeX
23710 .
23711 \end_layout
23712
23713 \begin_layout Standard
23714 Note further:
23715 \end_layout
23716
23717 \begin_layout Itemize
23718 Capitalization indicates that the command also has a capitalized form (
23719 \begin_inset Flex Code
23720 status collapsed
23721
23722 \begin_layout Plain Layout
23723
23724 \backslash
23725 Latexcmd
23726 \end_layout
23727
23728 \end_inset
23729
23730  vs.
23731  
23732 \begin_inset Flex Code
23733 status collapsed
23734
23735 \begin_layout Plain Layout
23736
23737 \backslash
23738 latexcmd
23739 \end_layout
23740
23741 \end_inset
23742
23743 ).
23744  These usually enforce up-casing of name prefixes (
23745 \emph on
23746 von Goethe
23747 \emph default
23748  
23749 \begin_inset Formula $\Rightarrow$
23750 \end_inset
23751
23752  
23753 \emph on
23754 Von Goethe
23755 \emph default
23756 ).
23757 \end_layout
23758
23759 \begin_layout Itemize
23760 Brackets 
23761 \begin_inset Flex Code
23762 status collapsed
23763
23764 \begin_layout Plain Layout
23765 []
23766 \end_layout
23767
23768 \end_inset
23769
23770  indicate the number of optional arguments (there can be 0–2).
23771 \end_layout
23772
23773 \begin_layout Itemize
23774 A star 
23775 \begin_inset Flex Code
23776 status collapsed
23777
23778 \begin_layout Plain Layout
23779 *
23780 \end_layout
23781
23782 \end_inset
23783
23784  indicates there is a starred version of the command (
23785 \begin_inset Flex Code
23786 status collapsed
23787
23788 \begin_layout Plain Layout
23789
23790 \backslash
23791 latexcmd*
23792 \end_layout
23793
23794 \end_inset
23795
23796  vs.
23797  
23798 \begin_inset Flex Code
23799 status collapsed
23800
23801 \begin_layout Plain Layout
23802
23803 \backslash
23804 latexcmd
23805 \end_layout
23806
23807 \end_inset
23808
23809 ).
23810  
23811 \end_layout
23812
23813 \begin_deeper
23814 \begin_layout Standard
23815 By default, the starred version means: Output all authors even if it should
23816  be shortened with 
23817 \begin_inset Quotes eld
23818 \end_inset
23819
23820 et al.
23821 \begin_inset Quotes erd
23822 \end_inset
23823
23824  due to the 
23825 \begin_inset Flex Code
23826 status collapsed
23827
23828 \begin_layout Plain Layout
23829 MaxCiteNames
23830 \end_layout
23831
23832 \end_inset
23833
23834  threshold.
23835 \end_layout
23836
23837 \begin_layout Standard
23838 If the star has a different meaning for a given command, it can be specified
23839  in angle brackets: 
23840 \begin_inset Flex Code
23841 status collapsed
23842
23843 \begin_layout Plain Layout
23844 <!_stardesc!_stardesctooltip>
23845 \end_layout
23846
23847 \end_inset
23848
23849 .
23850  Maximal two translatable macro keywords, marked by the prefix 
23851 \begin_inset Flex Code
23852 status collapsed
23853
23854 \begin_layout Plain Layout
23855 !_
23856 \end_layout
23857
23858 \end_inset
23859
23860 , can be given.
23861  The first points to the string that replaces the 
23862 \begin_inset Quotes eld
23863 \end_inset
23864
23865 Full aut&hor list
23866 \begin_inset Quotes erd
23867 \end_inset
23868
23869  checkbox label in the citation dialog, the second one to an optional tool
23870  tip for this checkbox.
23871  
23872 \end_layout
23873
23874 \begin_layout Standard
23875 Note that these two macros have to be defined in a 
23876 \begin_inset Flex Code
23877 status collapsed
23878
23879 \begin_layout Plain Layout
23880 CiteFormat
23881 \end_layout
23882
23883 \end_inset
23884
23885  (see next section), dropping the 
23886 \begin_inset Flex Code
23887 status collapsed
23888
23889 \begin_layout Plain Layout
23890 !
23891 \end_layout
23892
23893 \end_inset
23894
23895  from the prefix, like this: 
23896 \end_layout
23897
23898 \begin_layout LyX-Code
23899 _stardesc Sta&rred command label
23900 \end_layout
23901
23902 \begin_layout LyX-Code
23903 _stardesctooltip Tooltip for the starred command checkbox.
23904 \end_layout
23905
23906 \end_deeper
23907 \begin_layout Itemize
23908 A dollar sign 
23909 \begin_inset Flex Code
23910 status collapsed
23911
23912 \begin_layout Plain Layout
23913 $
23914 \end_layout
23915
23916 \end_inset
23917
23918  indicates that this command features 
23919 \begin_inset Quotes eld
23920 \end_inset
23921
23922 qualified citation lists
23923 \begin_inset Quotes erd
23924 \end_inset
23925
23926 .
23927  This is a 
23928 \family sans
23929 Biblatex
23930 \family default
23931 -specific feature for multi-reference citations where an individual pre-
23932  and postnote can be given to each reference in the list.
23933  Please refer to the 
23934 \family sans
23935 Biblatex
23936 \family default
23937  manual for details.
23938 \change_inserted -712698321 1526898670
23939
23940 \end_layout
23941
23942 \begin_layout Standard
23943
23944 \change_inserted -712698321 1526899524
23945 If you want to add a cite command to a cite engine (e.
23946 \begin_inset space \thinspace{}
23947 \end_inset
23948
23949 g., add a specific command provided by a class), you can use 
23950 \begin_inset Flex Code
23951 status collapsed
23952
23953 \begin_layout Plain Layout
23954
23955 \change_inserted -712698321 1526898768
23956 AddToCiteEngine <engine type> \SpecialChar ldots
23957  End
23958 \change_unchanged
23959
23960 \end_layout
23961
23962 \end_inset
23963
23964 .
23965  Note that only cite commands that do not exist yet are added.
23966 \change_unchanged
23967
23968 \end_layout
23969
23970 \begin_layout Subsection
23971 \begin_inset CommandInset label
23972 LatexCommand label
23973 name "subsec:Citation-format-description"
23974
23975 \end_inset
23976
23977 Cite format description
23978 \end_layout
23979
23980 \begin_layout Standard
23981 The 
23982 \begin_inset Flex Code
23983 status collapsed
23984
23985 \begin_layout Plain Layout
23986 CiteFormat
23987 \end_layout
23988
23989 \end_inset
23990
23991  blocks are used to describe how bibliographic information should be displayed,
23992  both within \SpecialChar LyX
23993  itself (in the citation dialog and in tooltips, for example)
23994  and in XHTML output.
23995  Such a block might look like this:
23996 \end_layout
23997
23998 \begin_layout LyX-Code
23999 CiteFormat
24000 \end_layout
24001
24002 \begin_layout LyX-Code
24003  article ...
24004 \end_layout
24005
24006 \begin_layout LyX-Code
24007  book ...
24008 \end_layout
24009
24010 \begin_layout LyX-Code
24011 End
24012 \end_layout
24013
24014 \begin_layout Standard
24015 or
24016 \end_layout
24017
24018 \begin_layout LyX-Code
24019 CiteFormat
24020 \end_layout
24021
24022 \begin_layout LyX-Code
24023  cite ...
24024 \end_layout
24025
24026 \begin_layout LyX-Code
24027  citet*[][] ...
24028 \end_layout
24029
24030 \begin_layout LyX-Code
24031 End
24032 \end_layout
24033
24034 \begin_layout Standard
24035 In the first case, the individual lines define how the bibliographic information
24036  associated with an article or book, respectively, is to be displayed, and
24037  such a definition can be given for any 
24038 \begin_inset Quotes els
24039 \end_inset
24040
24041 entry type
24042 \begin_inset Quotes ers
24043 \end_inset
24044
24045  that might be present in a Bib\SpecialChar TeX
24046  file.
24047  \SpecialChar LyX
24048  defines a default format in the source code that will be used if no specific
24049  definition has been given.
24050  \SpecialChar LyX
24051  predefines several formats in the file 
24052 \begin_inset Flex Code
24053 status collapsed
24054
24055 \begin_layout Plain Layout
24056 stdciteformats.inc
24057 \end_layout
24058
24059 \end_inset
24060
24061 , which is included in most of \SpecialChar LyX
24062 's document classes.
24063 \end_layout
24064
24065 \begin_layout Standard
24066 In the second case, the lines define how a specific citation command (in
24067  the example 
24068 \begin_inset Flex Code
24069 status collapsed
24070
24071 \begin_layout Plain Layout
24072
24073 \backslash
24074 cite
24075 \end_layout
24076
24077 \end_inset
24078
24079
24080 \begin_inset Flex Code
24081 status collapsed
24082
24083 \begin_layout Plain Layout
24084
24085 \backslash
24086 citet
24087 \end_layout
24088
24089 \end_inset
24090
24091 ) is to be displayed on the citation inset label, in the citation dialog,
24092  menu or XHTML output.
24093  \SpecialChar LyX
24094  defines such formats for the citation style variants it supports via 
24095 \family sans
24096 Document\SpecialChar menuseparator
24097 Setting\SpecialChar menuseparator
24098 Bibliography\SpecialChar ldots
24099
24100 \family default
24101  in specific 
24102 \begin_inset Flex Code
24103 status collapsed
24104
24105 \begin_layout Plain Layout
24106 *.citeengine
24107 \end_layout
24108
24109 \end_inset
24110
24111  files that are shipped with \SpecialChar LyX
24112  (see 
24113 \begin_inset CommandInset ref
24114 LatexCommand ref
24115 reference "subsec:Cite-Engine-Files"
24116 plural "false"
24117 caps "false"
24118 noprefix "false"
24119
24120 \end_inset
24121
24122 ).
24123 \end_layout
24124
24125 \begin_layout Standard
24126 The definitions use a simple language that allows Bib\SpecialChar TeX
24127  keys to be replaced
24128  with their values.
24129  Keys should be enclosed in 
24130 \begin_inset Flex Code
24131 status collapsed
24132
24133 \begin_layout Plain Layout
24134 %
24135 \end_layout
24136
24137 \end_inset
24138
24139  signs, e.g.: 
24140 \begin_inset Flex Code
24141 status collapsed
24142
24143 \begin_layout Plain Layout
24144 %author%
24145 \end_layout
24146
24147 \end_inset
24148
24149 .
24150  So a simple definition might look like this:
24151 \end_layout
24152
24153 \begin_layout LyX-Code
24154 misc %author%, 
24155 \begin_inset Quotes eld
24156 \end_inset
24157
24158 %title%
24159 \begin_inset Quotes erd
24160 \end_inset
24161
24162 .
24163 \end_layout
24164
24165 \begin_layout Standard
24166 This would print the author, followed by a comma, followed by the title,
24167  in quotes, followed by a period.
24168 \end_layout
24169
24170 \begin_layout Standard
24171 Of course, sometimes you may want to print a key only if it exists.
24172  This can be done by using a conditional construction, such as: 
24173 \begin_inset Flex Code
24174 status collapsed
24175
24176 \begin_layout Plain Layout
24177 {%volume%[[vol.
24178 \begin_inset space ~
24179 \end_inset
24180
24181 %volume%]]}
24182 \end_layout
24183
24184 \end_inset
24185
24186 .
24187  This says: If the 
24188 \begin_inset Flex Code
24189 status collapsed
24190
24191 \begin_layout Plain Layout
24192 volume
24193 \end_layout
24194
24195 \end_inset
24196
24197  key exists, then print 
24198 \begin_inset Quotes eld
24199 \end_inset
24200
24201 vol.
24202 \begin_inset space ~
24203 \end_inset
24204
24205
24206 \begin_inset Quotes erd
24207 \end_inset
24208
24209  followed by the volume key.
24210  It is also possible to have an else clause in the conditional, such as:
24211 \begin_inset Newline newline
24212 \end_inset
24213
24214
24215 \begin_inset Flex Code
24216 status collapsed
24217
24218 \begin_layout Plain Layout
24219 {%author%[[%author%]][[%editor%, ed.]]}
24220 \end_layout
24221
24222 \end_inset
24223
24224 .
24225 \begin_inset Newline newline
24226 \end_inset
24227
24228 Here, the 
24229 \begin_inset Flex Code
24230 status collapsed
24231
24232 \begin_layout Plain Layout
24233 author
24234 \end_layout
24235
24236 \end_inset
24237
24238  key is printed if it exists; otherwise, the editor key is printed, followed
24239  by 
24240 \begin_inset Quotes eld
24241 \end_inset
24242
24243 ,
24244 \begin_inset space ~
24245 \end_inset
24246
24247 ed.
24248 \begin_inset Quotes erd
24249 \end_inset
24250
24251  Note that the key is again enclosed in 
24252 \begin_inset Flex Code
24253 status collapsed
24254
24255 \begin_layout Plain Layout
24256 %
24257 \end_layout
24258
24259 \end_inset
24260
24261  signs; the entire conditional is enclosed in braces; and the if and else
24262  clauses are enclosed in double brackets, 
24263 \begin_inset Quotes eld
24264 \end_inset
24265
24266
24267 \begin_inset Flex Code
24268 status collapsed
24269
24270 \begin_layout Plain Layout
24271 [[
24272 \end_layout
24273
24274 \end_inset
24275
24276
24277 \begin_inset Quotes eld
24278 \end_inset
24279
24280  and 
24281 \begin_inset Quotes eld
24282 \end_inset
24283
24284
24285 \begin_inset Flex Code
24286 status collapsed
24287
24288 \begin_layout Plain Layout
24289 ]]
24290 \end_layout
24291
24292 \end_inset
24293
24294
24295 \begin_inset Quotes erd
24296 \end_inset
24297
24298 .
24299  There must be no space between any of these.
24300 \end_layout
24301
24302 \begin_layout Standard
24303 Next to the entry keys, there are some special keys that can be used for
24304  these conditionals:
24305 \end_layout
24306
24307 \begin_layout Itemize
24308 \begin_inset Flex Code
24309 status collapsed
24310
24311 \begin_layout Plain Layout
24312 {%dialog%[[true]][[false]]}
24313 \end_layout
24314
24315 \end_inset
24316
24317 : process the 
24318 \begin_inset Quotes eld
24319 \end_inset
24320
24321 true
24322 \begin_inset Quotes erd
24323 \end_inset
24324
24325  part for dialogs and menus, the 
24326 \begin_inset Quotes eld
24327 \end_inset
24328
24329 false
24330 \begin_inset Quotes erd
24331 \end_inset
24332
24333  part for other contexts (workarea, export)
24334 \end_layout
24335
24336 \begin_layout Itemize
24337 \begin_inset Flex Code
24338 status collapsed
24339
24340 \begin_layout Plain Layout
24341 {%export%[[true]][[false]]}
24342 \end_layout
24343
24344 \end_inset
24345
24346 : process the 
24347 \begin_inset Quotes eld
24348 \end_inset
24349
24350 true
24351 \begin_inset Quotes erd
24352 \end_inset
24353
24354  part for export and menus, the 
24355 \begin_inset Quotes eld
24356 \end_inset
24357
24358 false
24359 \begin_inset Quotes erd
24360 \end_inset
24361
24362  part for other contexts (workarea, dialog)
24363 \end_layout
24364
24365 \begin_layout Itemize
24366 \begin_inset Flex Code
24367 status collapsed
24368
24369 \begin_layout Plain Layout
24370 {%next%[[true]]}
24371 \end_layout
24372
24373 \end_inset
24374
24375 : process the 
24376 \begin_inset Quotes eld
24377 \end_inset
24378
24379 true
24380 \begin_inset Quotes erd
24381 \end_inset
24382
24383  part if another item follows (e.
24384 \begin_inset space \thinspace{}
24385 \end_inset
24386
24387 g., in a citation with multiple keys)
24388 \end_layout
24389
24390 \begin_layout Itemize
24391 \begin_inset Flex Code
24392 status collapsed
24393
24394 \begin_layout Plain Layout
24395 {%second%[[true]][[false]]}
24396 \end_layout
24397
24398 \end_inset
24399
24400 : process the 
24401 \begin_inset Quotes eld
24402 \end_inset
24403
24404 true
24405 \begin_inset Quotes erd
24406 \end_inset
24407
24408  if this is the second of multiple items, else the 
24409 \begin_inset Quotes eld
24410 \end_inset
24411
24412 false
24413 \begin_inset Quotes erd
24414 \end_inset
24415
24416  part
24417 \end_layout
24418
24419 \begin_layout Itemize
24420 \begin_inset Flex Code
24421 status collapsed
24422
24423 \begin_layout Plain Layout
24424 {%ifstar%[[true]][[false]]}
24425 \end_layout
24426
24427 \end_inset
24428
24429 : process the 
24430 \begin_inset Quotes eld
24431 \end_inset
24432
24433 true
24434 \begin_inset Quotes erd
24435 \end_inset
24436
24437  part for starred citation commands (such as 
24438 \begin_inset Flex Code
24439 status collapsed
24440
24441 \begin_layout Plain Layout
24442
24443 \backslash
24444 cite*
24445 \end_layout
24446
24447 \end_inset
24448
24449 ), the false part for unstarred
24450 \end_layout
24451
24452 \begin_layout Itemize
24453 \begin_inset Flex Code
24454 status collapsed
24455
24456 \begin_layout Plain Layout
24457 {%ifentrytype:<type>%[[true]][[false]]}
24458 \end_layout
24459
24460 \end_inset
24461
24462 : process the 
24463 \begin_inset Quotes eld
24464 \end_inset
24465
24466 true
24467 \begin_inset Quotes erd
24468 \end_inset
24469
24470  if the current entry type matches 
24471 \begin_inset Flex Code
24472 status collapsed
24473
24474 \begin_layout Plain Layout
24475 <type>
24476 \end_layout
24477
24478 \end_inset
24479
24480 , else the false part (e.g., in a citation definition: 
24481 \begin_inset Flex Code
24482 status collapsed
24483
24484 \begin_layout Plain Layout
24485 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24486 \end_layout
24487
24488 \end_inset
24489
24490 )
24491 \end_layout
24492
24493 \begin_layout Itemize
24494 \begin_inset Flex Code
24495 status collapsed
24496
24497 \begin_layout Plain Layout
24498 {%ifmultiple:<authortype>%[[true]][[false]]}
24499 \end_layout
24500
24501 \end_inset
24502
24503 : process the 
24504 \begin_inset Quotes eld
24505 \end_inset
24506
24507 true
24508 \begin_inset Quotes erd
24509 \end_inset
24510
24511  if the current author type (author, editor etc.) has multiple authors, else
24512  the false part (e.g., in a bibliography definition: 
24513 \begin_inset Flex Code
24514 status collapsed
24515
24516 \begin_layout Plain Layout
24517 {%ifmultiple:editor%[[eds.]][[ed.]]}
24518 \end_layout
24519
24520 \end_inset
24521
24522 )
24523 \end_layout
24524
24525 \begin_layout Itemize
24526 \begin_inset Flex Code
24527 status collapsed
24528
24529 \begin_layout Plain Layout
24530 {%ifqualified%[[true]][[false]]}
24531 \end_layout
24532
24533 \end_inset
24534
24535 : process the 
24536 \begin_inset Quotes eld
24537 \end_inset
24538
24539 true
24540 \begin_inset Quotes erd
24541 \end_inset
24542
24543  part if the current citation is a qualified citation list (a specific 
24544 \family sans
24545 Biblatex
24546 \family default
24547  format for multi-reference citations), the false part if this is not the
24548  case.
24549 \end_layout
24550
24551 \begin_layout Standard
24552 We said that 
24553 \begin_inset Flex Code
24554 status collapsed
24555
24556 \begin_layout Plain Layout
24557 %author%
24558 \end_layout
24559
24560 \end_inset
24561
24562  prints the author key as it is recorded in the bibliography file.
24563  This might not be what you want, since it will result in a string such
24564  as 
24565 \begin_inset Quotes eld
24566 \end_inset
24567
24568 Miller, Peter and Smith, Mary and White, Jane
24569 \begin_inset Quotes erd
24570 \end_inset
24571
24572  (since 
24573 \begin_inset Quotes eld
24574 \end_inset
24575
24576 and
24577 \begin_inset Quotes erd
24578 \end_inset
24579
24580  is used by Bib\SpecialChar TeX
24581  to delimit authors).
24582  \SpecialChar LyX
24583  therefore provides some methods to get properly formatted name lists (which
24584  will also get translated).
24585  The following keys are provided:
24586 \end_layout
24587
24588 \begin_layout Enumerate
24589 For name lists with pre- and surname, suitable for the main authors/editors
24590  of a bibliography item.
24591  The 
24592 \begin_inset Flex Code
24593 status collapsed
24594
24595 \begin_layout Plain Layout
24596 <nametype>
24597 \end_layout
24598
24599 \end_inset
24600
24601  part denotes the kind of list that is requested (e.g.
24602  
24603 \begin_inset Flex Code
24604 status collapsed
24605
24606 \begin_layout Plain Layout
24607 <nametype:author>
24608 \end_layout
24609
24610 \end_inset
24611
24612 ):
24613 \end_layout
24614
24615 \begin_deeper
24616 \begin_layout Itemize
24617 \begin_inset Flex Code
24618 status collapsed
24619
24620 \begin_layout Plain Layout
24621 %abbrvnames:<nametype>%
24622 \end_layout
24623
24624 \end_inset
24625
24626 : Provides a name list which is abbreviated (with 
24627 \begin_inset Quotes eld
24628 \end_inset
24629
24630 et al.
24631 \begin_inset Quotes erd
24632 \end_inset
24633
24634 ) when 
24635 \begin_inset Flex Code
24636 status collapsed
24637
24638 \begin_layout Plain Layout
24639 MaxCiteNames
24640 \end_layout
24641
24642 \end_inset
24643
24644  is reached.
24645 \end_layout
24646
24647 \begin_layout Itemize
24648 \begin_inset Flex Code
24649 status collapsed
24650
24651 \begin_layout Plain Layout
24652 %fullnames:<nametype>%
24653 \end_layout
24654
24655 \end_inset
24656
24657 : Provides a full name list (never abbreviated with 
24658 \begin_inset Quotes eld
24659 \end_inset
24660
24661 et al.
24662 \begin_inset Quotes erd
24663 \end_inset
24664
24665 ).
24666 \end_layout
24667
24668 \begin_layout Itemize
24669 \begin_inset Flex Code
24670 status collapsed
24671
24672 \begin_layout Plain Layout
24673 %forceabbrvnames:<nametype>%
24674 \end_layout
24675
24676 \end_inset
24677
24678 : Provides a name list which is always abbreviated (with 
24679 \begin_inset Quotes eld
24680 \end_inset
24681
24682 et al.
24683 \begin_inset Quotes erd
24684 \end_inset
24685
24686 ) irrespective of 
24687 \begin_inset Flex Code
24688 status collapsed
24689
24690 \begin_layout Plain Layout
24691 MaxCiteNames
24692 \end_layout
24693
24694 \end_inset
24695
24696 .
24697 \end_layout
24698
24699 \end_deeper
24700 \begin_layout Enumerate
24701 Alternative name lists with pre- and surname, if the order of pre- and surname
24702  inside the bibliography item differs (as in: 
24703 \begin_inset Quotes eld
24704 \end_inset
24705
24706 Miller, John: Some text, in: Mary Smith, ed.: A volume
24707 \begin_inset Quotes erd
24708 \end_inset
24709
24710 ):
24711 \end_layout
24712
24713 \begin_deeper
24714 \begin_layout Itemize
24715 \begin_inset Flex Code
24716 status collapsed
24717
24718 \begin_layout Plain Layout
24719 %abbrvbynames:<nametype>%
24720 \end_layout
24721
24722 \end_inset
24723
24724 : Provides a name list which is abbreviated (with 
24725 \begin_inset Quotes eld
24726 \end_inset
24727
24728 et al.
24729 \begin_inset Quotes erd
24730 \end_inset
24731
24732 ) when 
24733 \begin_inset Flex Code
24734 status collapsed
24735
24736 \begin_layout Plain Layout
24737 MaxCiteNames
24738 \end_layout
24739
24740 \end_inset
24741
24742  is reached.
24743 \end_layout
24744
24745 \begin_layout Itemize
24746 \begin_inset Flex Code
24747 status collapsed
24748
24749 \begin_layout Plain Layout
24750 %fullbynames:<nametype>%
24751 \end_layout
24752
24753 \end_inset
24754
24755 : Provides a full name list (never abbreviated with 
24756 \begin_inset Quotes eld
24757 \end_inset
24758
24759 et al.
24760 \begin_inset Quotes erd
24761 \end_inset
24762
24763 ).
24764 \end_layout
24765
24766 \begin_layout Itemize
24767 \begin_inset Flex Code
24768 status collapsed
24769
24770 \begin_layout Plain Layout
24771 %forceabbrvbynames:<nametype>%
24772 \end_layout
24773
24774 \end_inset
24775
24776 : Provides a name list which is always abbreviated (with 
24777 \begin_inset Quotes eld
24778 \end_inset
24779
24780 et al.
24781 \begin_inset Quotes erd
24782 \end_inset
24783
24784 ) irrespective of 
24785 \begin_inset Flex Code
24786 status collapsed
24787
24788 \begin_layout Plain Layout
24789 MaxCiteNames
24790 \end_layout
24791
24792 \end_inset
24793
24794 .
24795 \end_layout
24796
24797 \end_deeper
24798 \begin_layout Enumerate
24799 And finally name lists which consist of family names only, as used in author-yea
24800 r citation labels.
24801  These do not take a 
24802 \begin_inset Flex Code
24803 status collapsed
24804
24805 \begin_layout Plain Layout
24806 <nametype>
24807 \end_layout
24808
24809 \end_inset
24810
24811  part, but always return either an author list or, if this does not exist,
24812  an editor list (as common in author-year labels):
24813 \end_layout
24814
24815 \begin_deeper
24816 \begin_layout Itemize
24817 \begin_inset Flex Code
24818 status collapsed
24819
24820 \begin_layout Plain Layout
24821 %abbrvciteauthor%
24822 \end_layout
24823
24824 \end_inset
24825
24826 : Provides a name list which is abbreviated (with 
24827 \begin_inset Quotes eld
24828 \end_inset
24829
24830 et al.
24831 \begin_inset Quotes erd
24832 \end_inset
24833
24834 ) when 
24835 \begin_inset Flex Code
24836 status collapsed
24837
24838 \begin_layout Plain Layout
24839 MaxCiteNames
24840 \end_layout
24841
24842 \end_inset
24843
24844  is reached.
24845 \end_layout
24846
24847 \begin_layout Itemize
24848 \begin_inset Flex Code
24849 status collapsed
24850
24851 \begin_layout Plain Layout
24852 %fullciteauthor%
24853 \end_layout
24854
24855 \end_inset
24856
24857 : Provides a full name list (never abbreviated with 
24858 \begin_inset Quotes eld
24859 \end_inset
24860
24861 et al.
24862 \begin_inset Quotes erd
24863 \end_inset
24864
24865 ).
24866 \end_layout
24867
24868 \begin_layout Itemize
24869 \begin_inset Flex Code
24870 status collapsed
24871
24872 \begin_layout Plain Layout
24873 %forceabbrvciteauthor%
24874 \end_layout
24875
24876 \end_inset
24877
24878 : Provides a name list which is always abbreviated (with 
24879 \begin_inset Quotes eld
24880 \end_inset
24881
24882 et al.
24883 \begin_inset Quotes erd
24884 \end_inset
24885
24886 ) irrespective of 
24887 \begin_inset Flex Code
24888 status collapsed
24889
24890 \begin_layout Plain Layout
24891 MaxCiteNames
24892 \end_layout
24893
24894 \end_inset
24895
24896 .
24897 \end_layout
24898
24899 \end_deeper
24900 \begin_layout Standard
24901 The order of pre- and surname in the former two lists can be adjusted by
24902  these macros:
24903 \end_layout
24904
24905 \begin_layout Itemize
24906 \begin_inset Flex Code
24907 status collapsed
24908
24909 \begin_layout Plain Layout
24910 !firstnameform %surname%, %prename%
24911 \end_layout
24912
24913 \end_inset
24914
24915  (first author in lists of type 1)
24916 \end_layout
24917
24918 \begin_layout Itemize
24919 \begin_inset Flex Code
24920 status collapsed
24921
24922 \begin_layout Plain Layout
24923 !othernameform %surname%, %prename%
24924 \end_layout
24925
24926 \end_inset
24927
24928  (other authors in lists of type 1)
24929 \end_layout
24930
24931 \begin_layout Itemize
24932 \begin_inset Flex Code
24933 status collapsed
24934
24935 \begin_layout Plain Layout
24936 !firstbynameform %prename% %surname%
24937 \end_layout
24938
24939 \end_inset
24940
24941  (first author in lists of type 2)
24942 \end_layout
24943
24944 \begin_layout Itemize
24945 \begin_inset Flex Code
24946 status collapsed
24947
24948 \begin_layout Plain Layout
24949 !otherbynameform %prename% %surname%
24950 \end_layout
24951
24952 \end_inset
24953
24954  (other authors in lists of type 2)
24955 \end_layout
24956
24957 \begin_layout Standard
24958 This allows you to configure namings like 
24959 \begin_inset Quotes eld
24960 \end_inset
24961
24962 Miller, Peter and Mary Smith: \SpecialChar ldots
24963 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
24964
24965 \begin_inset Quotes erd
24966 \end_inset
24967
24968 .
24969 \end_layout
24970
24971 \begin_layout Standard
24972 There is one other piece of syntax available in definitions, which looks
24973  like this: 
24974 \begin_inset Flex Code
24975 status collapsed
24976
24977 \begin_layout Plain Layout
24978 {!<i>!}
24979 \end_layout
24980
24981 \end_inset
24982
24983 .
24984  This defines a piece of formatting information that is to be used when
24985  creating 
24986 \begin_inset Quotes eld
24987 \end_inset
24988
24989 rich text
24990 \begin_inset Quotes erd
24991 \end_inset
24992
24993 .
24994  Obviously, we do not want to output HTML tags when writing plain text,
24995  so they should be wrapped in 
24996 \begin_inset Quotes eld
24997 \end_inset
24998
24999 {!
25000 \begin_inset Quotes erd
25001 \end_inset
25002
25003  and 
25004 \begin_inset Quotes eld
25005 \end_inset
25006
25007 !}
25008 \begin_inset Quotes erd
25009 \end_inset
25010
25011 .
25012 \end_layout
25013
25014 \begin_layout Standard
25015 Two special sorts of definitions are also possible in a 
25016 \begin_inset Flex Code
25017 status collapsed
25018
25019 \begin_layout Plain Layout
25020 CiteFormat
25021 \end_layout
25022
25023 \end_inset
25024
25025  block.
25026  An example of the first would be:
25027 \end_layout
25028
25029 \begin_layout LyX-Code
25030 !quotetitle 
25031 \begin_inset Quotes eld
25032 \end_inset
25033
25034 %title%
25035 \begin_inset Quotes erd
25036 \end_inset
25037
25038
25039 \end_layout
25040
25041 \begin_layout Standard
25042 This is an abbreviation, or macro, and it can be used by treating it as
25043  if it were a key: 
25044 \begin_inset Flex Code
25045 status collapsed
25046
25047 \begin_layout Plain Layout
25048 %!quotetitle%
25049 \end_layout
25050
25051 \end_inset
25052
25053 .
25054  \SpecialChar LyX
25055  will treat 
25056 \begin_inset Flex Code
25057 status collapsed
25058
25059 \begin_layout Plain Layout
25060 %!quotetitle%
25061 \end_layout
25062
25063 \end_inset
25064
25065  exactly as it would treat its definition.
25066  So, let us issue the obvious 
25067 \emph on
25068 warning
25069 \emph default
25070 .
25071  Do not do this:
25072 \end_layout
25073
25074 \begin_layout LyX-Code
25075 !funfun %funfun%
25076 \end_layout
25077
25078 \begin_layout Standard
25079 or anything like it.
25080  \SpecialChar LyX
25081  shouldn't go into an infinite loop, but it may go into a long one before
25082  it gives up.
25083 \end_layout
25084
25085 \begin_layout Standard
25086 The second sort of special definition might look like this:
25087 \end_layout
25088
25089 \begin_layout LyX-Code
25090 B_pptext pp.
25091 \end_layout
25092
25093 \begin_layout Standard
25094 This defines a translatable piece of text, which allows relevant parts of
25095  the bibliography or citation to be translated.
25096  It can be included in a definition by treating it as a key: 
25097 \begin_inset Flex Code
25098 status collapsed
25099
25100 \begin_layout Plain Layout
25101 %B_pptext%
25102 \end_layout
25103
25104 \end_inset
25105
25106 .
25107  Note that there are two different translation paths: All definitions starting
25108  with 
25109 \begin_inset Flex Code
25110 status collapsed
25111
25112 \begin_layout Plain Layout
25113 B_
25114 \end_layout
25115
25116 \end_inset
25117
25118 , such as in the example above, will be translated to the currently active
25119  buffer language (so the translation will match the generated document).
25120  All definitions starting with underscore only will be translated to the
25121  GUI language.
25122  This is the proper translation for strings that only occur in the dialogs
25123  or on buttons, such as this one:
25124 \end_layout
25125
25126 \begin_layout LyX-Code
25127 _addtobib Add to bibliography only.
25128 \end_layout
25129
25130 \begin_layout Standard
25131 Several of these translatable strings are predefined in 
25132 \begin_inset Flex Code
25133 status collapsed
25134
25135 \begin_layout Plain Layout
25136 stdciteformats.inc
25137 \end_layout
25138
25139 \end_inset
25140
25141  and the diverse 
25142 \begin_inset Flex Code
25143 status collapsed
25144
25145 \begin_layout Plain Layout
25146 *.citeengine
25147 \end_layout
25148
25149 \end_inset
25150
25151  files.
25152  Note that these are not macros, in the sense just defined.
25153  They will not be expanded.
25154 \end_layout
25155
25156 \begin_layout Standard
25157 So here then is an example that uses several of these features:
25158 \begin_inset VSpace defskip
25159 \end_inset
25160
25161
25162 \end_layout
25163
25164 \begin_layout Standard
25165 \noindent
25166
25167 \family sans
25168 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
25169 \end_layout
25170
25171 \begin_layout Standard
25172 \begin_inset VSpace defskip
25173 \end_inset
25174
25175 This defines a macro that prints the author, followed by a comma, if the
25176  
25177 \begin_inset Flex Code
25178 status collapsed
25179
25180 \begin_layout Plain Layout
25181 author
25182 \end_layout
25183
25184 \end_inset
25185
25186  key is defined, or else prints the name of the editor, followed by the
25187  
25188 \begin_inset Flex Code
25189 status collapsed
25190
25191 \begin_layout Plain Layout
25192 B_edtext
25193 \end_layout
25194
25195 \end_inset
25196
25197  or its translation (it is by default 
25198 \begin_inset Quotes eld
25199 \end_inset
25200
25201 ed.
25202 \begin_inset Quotes erd
25203 \end_inset
25204
25205 ), if the 
25206 \begin_inset Flex Code
25207 status collapsed
25208
25209 \begin_layout Plain Layout
25210 editor
25211 \end_layout
25212
25213 \end_inset
25214
25215  key is defined.
25216  Note that this is in fact defined in 
25217 \begin_inset Flex Code
25218 status collapsed
25219
25220 \begin_layout Plain Layout
25221 stdciteformats.inc
25222 \end_layout
25223
25224 \end_inset
25225
25226 , so you can use it in your own definitions, or re-definitions, if you load
25227  that file first.
25228 \end_layout
25229
25230 \begin_layout Section
25231 \begin_inset CommandInset label
25232 LatexCommand label
25233 name "sec:Tags-for-XHTML"
25234
25235 \end_inset
25236
25237 Tags for XHTML output
25238 \end_layout
25239
25240 \begin_layout Standard
25241 As with \SpecialChar LaTeX
25242  or DocBook, the format of \SpecialChar LyX
25243 's XHTML output is also controlled by
25244  layout information.
25245  In general, \SpecialChar LyX
25246  provides sensible defaults and, as mentioned earlier, it will
25247  even construct default CSS style rules from the other layout tags.
25248  For example, \SpecialChar LyX
25249  will attempt to use the information provided in the 
25250 \begin_inset Flex Code
25251 status collapsed
25252
25253 \begin_layout Plain Layout
25254 Font
25255 \end_layout
25256
25257 \end_inset
25258
25259  declaration for the Chapter style to write CSS that will appropriately
25260  format chapter headings.
25261 \end_layout
25262
25263 \begin_layout Standard
25264 In many cases, then, you may not have to do anything at all to get acceptable
25265  XHTML output for your own environments, custom insets, and so forth.
25266  But in some cases you will, and so \SpecialChar LyX
25267  provides a number of layout tags that
25268  can be used to customize the XHTML and CSS that are generated.
25269 \end_layout
25270
25271 \begin_layout Standard
25272 Note that there are two tags, 
25273 \begin_inset Flex Code
25274 status collapsed
25275
25276 \begin_layout Plain Layout
25277 HTMLPreamble
25278 \end_layout
25279
25280 \end_inset
25281
25282  and 
25283 \begin_inset Flex Code
25284 status collapsed
25285
25286 \begin_layout Plain Layout
25287 AddToHTMLPreamble
25288 \end_layout
25289
25290 \end_inset
25291
25292  that may appear outside style and inset declarations.
25293  See 
25294 \begin_inset CommandInset ref
25295 LatexCommand ref
25296 reference "subsec:General-text-class"
25297
25298 \end_inset
25299
25300  for details on these.
25301 \end_layout
25302
25303 \begin_layout Subsection
25304 \begin_inset CommandInset label
25305 LatexCommand label
25306 name "subsec:Paragraph-Style-XHTML"
25307
25308 \end_inset
25309
25310 Paragraph styles
25311 \end_layout
25312
25313 \begin_layout Standard
25314 The sort of XHTML \SpecialChar LyX
25315  outputs for a paragraph depends upon whether we are dealing
25316  with a normal paragraph, a command, or an environment, where this is itself
25317  determined by the contents of the corresponding 
25318 \begin_inset Flex Code
25319 status collapsed
25320
25321 \begin_layout Plain Layout
25322 \SpecialChar LaTeX
25323 Type
25324 \end_layout
25325
25326 \end_inset
25327
25328  tag.
25329  
25330 \end_layout
25331
25332 \begin_layout Standard
25333 For a command or normal paragraph, the output XHTML has the following form:
25334 \end_layout
25335
25336 \begin_layout LyX-Code
25337
25338 \family sans
25339 <tag attr=
25340 \begin_inset Quotes erd
25341 \end_inset
25342
25343 value
25344 \begin_inset Quotes erd
25345 \end_inset
25346
25347 >
25348 \end_layout
25349
25350 \begin_layout LyX-Code
25351
25352 \family sans
25353 <labeltag attr=
25354 \begin_inset Quotes erd
25355 \end_inset
25356
25357 value
25358 \begin_inset Quotes erd
25359 \end_inset
25360
25361 >Label</labeltag>
25362 \end_layout
25363
25364 \begin_layout LyX-Code
25365
25366 \family sans
25367 Contents of the paragraph.
25368 \end_layout
25369
25370 \begin_layout LyX-Code
25371
25372 \family sans
25373 </tag>
25374 \end_layout
25375
25376 \begin_layout Standard
25377 The label tags are of course omitted if the paragraph does not have a label.
25378 \end_layout
25379
25380 \begin_layout Standard
25381 For an environment that is not some sort of list, the XHTML takes this form:
25382 \end_layout
25383
25384 \begin_layout LyX-Code
25385
25386 \family sans
25387 <tag attr=
25388 \begin_inset Quotes erd
25389 \end_inset
25390
25391 value
25392 \begin_inset Quotes erd
25393 \end_inset
25394
25395 >
25396 \end_layout
25397
25398 \begin_layout LyX-Code
25399
25400 \family sans
25401 <itemtag attr=
25402 \begin_inset Quotes erd
25403 \end_inset
25404
25405 value
25406 \begin_inset Quotes erd
25407 \end_inset
25408
25409 ><labeltag attr=
25410 \begin_inset Quotes erd
25411 \end_inset
25412
25413 value
25414 \begin_inset Quotes erd
25415 \end_inset
25416
25417 >Environment Label</labeltag>First paragraph.</itemtag>
25418 \end_layout
25419
25420 \begin_layout LyX-Code
25421
25422 \family sans
25423 <itemtag>Second paragraph.</itemtag>
25424 \end_layout
25425
25426 \begin_layout LyX-Code
25427
25428 \family sans
25429 </tag>
25430 \end_layout
25431
25432 \begin_layout Standard
25433 Note that the label is output only for the first paragraph, as it should
25434  be for a theorem, for example.
25435  
25436 \end_layout
25437
25438 \begin_layout Standard
25439 For a list, we have one of these forms:
25440 \end_layout
25441
25442 \begin_layout LyX-Code
25443
25444 \family sans
25445 <tag attr=
25446 \begin_inset Quotes erd
25447 \end_inset
25448
25449 value
25450 \begin_inset Quotes erd
25451 \end_inset
25452
25453 >
25454 \end_layout
25455
25456 \begin_layout LyX-Code
25457
25458 \family sans
25459 <itemtag attr=
25460 \begin_inset Quotes erd
25461 \end_inset
25462
25463 value
25464 \begin_inset Quotes erd
25465 \end_inset
25466
25467 ><labeltag attr=
25468 \begin_inset Quotes erd
25469 \end_inset
25470
25471 value
25472 \begin_inset Quotes erd
25473 \end_inset
25474
25475 >List Label</labeltag>First item.</itemtag>
25476 \end_layout
25477
25478 \begin_layout LyX-Code
25479
25480 \family sans
25481 <itemtag attr=
25482 \begin_inset Quotes erd
25483 \end_inset
25484
25485 value
25486 \begin_inset Quotes erd
25487 \end_inset
25488
25489 ><labeltag attr=
25490 \begin_inset Quotes erd
25491 \end_inset
25492
25493 value
25494 \begin_inset Quotes erd
25495 \end_inset
25496
25497 >List Label</labeltag>Second item.</itemtag>
25498 \end_layout
25499
25500 \begin_layout LyX-Code
25501
25502 \family sans
25503 </tag>
25504 \end_layout
25505
25506 \begin_layout LyX-Code
25507
25508 \end_layout
25509
25510 \begin_layout LyX-Code
25511
25512 \family sans
25513 <tag attr=
25514 \begin_inset Quotes erd
25515 \end_inset
25516
25517 value
25518 \begin_inset Quotes erd
25519 \end_inset
25520
25521 >
25522 \end_layout
25523
25524 \begin_layout LyX-Code
25525
25526 \family sans
25527 <labeltag attr=
25528 \begin_inset Quotes erd
25529 \end_inset
25530
25531 value
25532 \begin_inset Quotes erd
25533 \end_inset
25534
25535 >List Label</labeltag><itemtag attr=
25536 \begin_inset Quotes erd
25537 \end_inset
25538
25539 value
25540 \begin_inset Quotes erd
25541 \end_inset
25542
25543 >First item.</itemtag>
25544 \end_layout
25545
25546 \begin_layout LyX-Code
25547
25548 \family sans
25549 <labeltag attr=
25550 \begin_inset Quotes erd
25551 \end_inset
25552
25553 value
25554 \begin_inset Quotes erd
25555 \end_inset
25556
25557 >List Label</labeltag><itemtag attr=
25558 \begin_inset Quotes erd
25559 \end_inset
25560
25561 value
25562 \begin_inset Quotes erd
25563 \end_inset
25564
25565 >Second item.</itemtag>
25566 \end_layout
25567
25568 \begin_layout LyX-Code
25569
25570 \family sans
25571 </tag>
25572 \end_layout
25573
25574 \begin_layout Standard
25575 Note the different orders of 
25576 \begin_inset Flex Code
25577 status collapsed
25578
25579 \begin_layout Plain Layout
25580 labeltag
25581 \end_layout
25582
25583 \end_inset
25584
25585  and 
25586 \begin_inset Flex Code
25587 status collapsed
25588
25589 \begin_layout Plain Layout
25590 itemtag
25591 \end_layout
25592
25593 \end_inset
25594
25595 .
25596  Which order we get depends upon the setting of 
25597 \begin_inset Flex Code
25598 status collapsed
25599
25600 \begin_layout Plain Layout
25601 HTMLLabelFirst
25602 \end_layout
25603
25604 \end_inset
25605
25606 : If 
25607 \begin_inset Flex Code
25608 status collapsed
25609
25610 \begin_layout Plain Layout
25611 HTMLLabelFirst
25612 \end_layout
25613
25614 \end_inset
25615
25616  is false (the default), you get the first of these, with the label within
25617  the item; if true, you get the second, with the label outside the item.
25618 \end_layout
25619
25620 \begin_layout Standard
25621 The specific tags and attributes output for each paragraph type can be controlle
25622 d by means of the layout tags we are about to describe.
25623  As mentioned earlier, however, \SpecialChar LyX
25624  uses sensible defaults for many of these,
25625  so you often may not need to do very much to get good XHTML output.
25626  Think of the available tags as there so you can tweak things to your liking.
25627 \end_layout
25628
25629 \begin_layout Description
25630 \begin_inset Flex Code
25631 status collapsed
25632
25633 \begin_layout Plain Layout
25634 HTMLAttr
25635 \end_layout
25636
25637 \end_inset
25638
25639  [
25640 \begin_inset Flex Code
25641 status collapsed
25642
25643 \begin_layout Plain Layout
25644 string
25645 \end_layout
25646
25647 \end_inset
25648
25649 ] Specifies attribute information to be output with the main tag.
25650  For example, 
25651 \begin_inset Quotes eld
25652 \end_inset
25653
25654
25655 \begin_inset Flex Code
25656 status collapsed
25657
25658 \begin_layout Plain Layout
25659 class=`mydiv'
25660 \end_layout
25661
25662 \end_inset
25663
25664
25665 \begin_inset Quotes erd
25666 \end_inset
25667
25668 .
25669  By default, \SpecialChar LyX
25670  will output 
25671 \begin_inset Quotes eld
25672 \end_inset
25673
25674
25675 \begin_inset Flex Code
25676 status collapsed
25677
25678 \begin_layout Plain Layout
25679 class=`layoutname'
25680 \end_layout
25681
25682 \end_inset
25683
25684
25685 \begin_inset Quotes erd
25686 \end_inset
25687
25688 , where 
25689 \begin_inset Flex Code
25690 status collapsed
25691
25692 \begin_layout Plain Layout
25693 layoutname
25694 \end_layout
25695
25696 \end_inset
25697
25698  is the \SpecialChar LyX
25699  name of the layout, made lowercase, for example: chapter.
25700  This should 
25701 \emph on
25702 not
25703 \emph default
25704  contain any style information.
25705  Use 
25706 \begin_inset Flex Code
25707 status collapsed
25708
25709 \begin_layout Plain Layout
25710 HTMLStyle
25711 \end_layout
25712
25713 \end_inset
25714
25715  for that purpose.
25716 \end_layout
25717
25718 \begin_layout Description
25719 \begin_inset Flex Code
25720 status collapsed
25721
25722 \begin_layout Plain Layout
25723 HTMLForceCSS
25724 \end_layout
25725
25726 \end_inset
25727
25728  [
25729 \begin_inset Flex Code
25730 status collapsed
25731
25732 \begin_layout Plain Layout
25733
25734 \emph on
25735 0
25736 \emph default
25737 ,1
25738 \end_layout
25739
25740 \end_inset
25741
25742 ] Whether to output the default CSS information \SpecialChar LyX
25743  generates for this layout,
25744  even if additional information is explicitly provided via 
25745 \begin_inset Flex Code
25746 status collapsed
25747
25748 \begin_layout Plain Layout
25749 HTMLStyle
25750 \end_layout
25751
25752 \end_inset
25753
25754 .
25755  Setting this to 
25756 \begin_inset Flex Code
25757 status collapsed
25758
25759 \begin_layout Plain Layout
25760 1
25761 \end_layout
25762
25763 \end_inset
25764
25765  allows you to alter or augment the generated CSS, rather than to override
25766  it completely.
25767  Default is 
25768 \begin_inset Flex Code
25769 status collapsed
25770
25771 \begin_layout Plain Layout
25772 0
25773 \end_layout
25774
25775 \end_inset
25776
25777 .
25778 \end_layout
25779
25780 \begin_layout Description
25781 \begin_inset Flex Code
25782 status collapsed
25783
25784 \begin_layout Plain Layout
25785 HTMLItem
25786 \end_layout
25787
25788 \end_inset
25789
25790  [
25791 \begin_inset Flex Code
25792 status collapsed
25793
25794 \begin_layout Plain Layout
25795 string
25796 \end_layout
25797
25798 \end_inset
25799
25800 ] The tag to be used for individual paragraphs of environments, replacing
25801  
25802 \begin_inset Flex Code
25803 status collapsed
25804
25805 \begin_layout Plain Layout
25806 itemtag
25807 \end_layout
25808
25809 \end_inset
25810
25811  in the examples above.
25812  Defaults to 
25813 \begin_inset Flex Code
25814 status collapsed
25815
25816 \begin_layout Plain Layout
25817 div
25818 \end_layout
25819
25820 \end_inset
25821
25822 .
25823 \end_layout
25824
25825 \begin_layout Description
25826 \begin_inset Flex Code
25827 status collapsed
25828
25829 \begin_layout Plain Layout
25830 HTMLItemAttr
25831 \end_layout
25832
25833 \end_inset
25834
25835  [
25836 \begin_inset Flex Code
25837 status collapsed
25838
25839 \begin_layout Plain Layout
25840 string
25841 \end_layout
25842
25843 \end_inset
25844
25845 ] Attributes for the item tag.
25846  Defaults to
25847 \begin_inset Newline newline
25848 \end_inset
25849
25850
25851 \begin_inset Quotes eld
25852 \end_inset
25853
25854
25855 \begin_inset Flex Code
25856 status collapsed
25857
25858 \begin_layout Plain Layout
25859 class=`layoutname_item'
25860 \end_layout
25861
25862 \end_inset
25863
25864
25865 \begin_inset Quotes erd
25866 \end_inset
25867
25868 .
25869  This should 
25870 \emph on
25871 not
25872 \emph default
25873  contain any style information.
25874  Use 
25875 \begin_inset Flex Code
25876 status collapsed
25877
25878 \begin_layout Plain Layout
25879 HTMLStyle
25880 \end_layout
25881
25882 \end_inset
25883
25884  for that purpose.
25885 \end_layout
25886
25887 \begin_layout Description
25888 \begin_inset Flex Code
25889 status collapsed
25890
25891 \begin_layout Plain Layout
25892 HTMLLabel
25893 \end_layout
25894
25895 \end_inset
25896
25897  [
25898 \begin_inset Flex Code
25899 status collapsed
25900
25901 \begin_layout Plain Layout
25902 string
25903 \end_layout
25904
25905 \end_inset
25906
25907 ] The tag to be used for paragraph and item labels, replacing 
25908 \begin_inset Flex Code
25909 status collapsed
25910
25911 \begin_layout Plain Layout
25912 labeltag
25913 \end_layout
25914
25915 \end_inset
25916
25917  in the examples above.
25918  Defaults to 
25919 \begin_inset Flex Code
25920 status collapsed
25921
25922 \begin_layout Plain Layout
25923 span
25924 \end_layout
25925
25926 \end_inset
25927
25928 , unless 
25929 \begin_inset Flex Code
25930 status collapsed
25931
25932 \begin_layout Plain Layout
25933 LabelType
25934 \end_layout
25935
25936 \end_inset
25937
25938  is either 
25939 \begin_inset Flex Code
25940 status collapsed
25941
25942 \begin_layout Plain Layout
25943 Top_Environment
25944 \end_layout
25945
25946 \end_inset
25947
25948  or 
25949 \begin_inset Flex Code
25950 status collapsed
25951
25952 \begin_layout Plain Layout
25953 Centered_Top_Environment
25954 \end_layout
25955
25956 \end_inset
25957
25958 , in which case it defaults to 
25959 \begin_inset Flex Code
25960 status collapsed
25961
25962 \begin_layout Plain Layout
25963 div
25964 \end_layout
25965
25966 \end_inset
25967
25968 .
25969 \end_layout
25970
25971 \begin_layout Description
25972 \begin_inset Flex Code
25973 status collapsed
25974
25975 \begin_layout Plain Layout
25976 HTMLLabelAttr
25977 \end_layout
25978
25979 \end_inset
25980
25981  [
25982 \begin_inset Flex Code
25983 status collapsed
25984
25985 \begin_layout Plain Layout
25986 string
25987 \end_layout
25988
25989 \end_inset
25990
25991 ] Attributes for the label tag.
25992  Defaults to
25993 \begin_inset Newline newline
25994 \end_inset
25995
25996
25997 \begin_inset Quotes eld
25998 \end_inset
25999
26000
26001 \begin_inset Flex Code
26002 status collapsed
26003
26004 \begin_layout Plain Layout
26005 class=`layoutname_label'
26006 \end_layout
26007
26008 \end_inset
26009
26010
26011 \begin_inset Quotes erd
26012 \end_inset
26013
26014 .
26015  This should 
26016 \emph on
26017 not
26018 \emph default
26019  contain any style information.
26020  Use 
26021 \begin_inset Flex Code
26022 status collapsed
26023
26024 \begin_layout Plain Layout
26025 HTMLStyle
26026 \end_layout
26027
26028 \end_inset
26029
26030  for that purpose.
26031 \end_layout
26032
26033 \begin_layout Description
26034 \begin_inset Flex Code
26035 status collapsed
26036
26037 \begin_layout Plain Layout
26038 HTMLLabelFirst
26039 \end_layout
26040
26041 \end_inset
26042
26043  [
26044 \begin_inset Flex Code
26045 status collapsed
26046
26047 \begin_layout Plain Layout
26048
26049 \emph on
26050 0
26051 \emph default
26052 ,1
26053 \end_layout
26054
26055 \end_inset
26056
26057 ] Meaningful only for list-like environments, this tag controls whether
26058  the label tag is output before or inside the item tag.
26059  This is used, for example, in the description environment, where we want
26060  `
26061 \begin_inset Flex Code
26062 status collapsed
26063
26064 \begin_layout Plain Layout
26065 <dt>\SpecialChar ldots
26066 </dt><dd>\SpecialChar ldots
26067 </dd>
26068 \end_layout
26069
26070 \end_inset
26071
26072 .
26073  Default is 
26074 \begin_inset Flex Code
26075 status collapsed
26076
26077 \begin_layout Plain Layout
26078 0
26079 \end_layout
26080
26081 \end_inset
26082
26083 : The label tag is output inside the item tag.
26084 \end_layout
26085
26086 \begin_layout Description
26087 \begin_inset Flex Code
26088 status collapsed
26089
26090 \begin_layout Plain Layout
26091 HTMLPreamble
26092 \end_layout
26093
26094 \end_inset
26095
26096  Information to be output in the 
26097 \begin_inset Flex Code
26098 status collapsed
26099
26100 \begin_layout Plain Layout
26101 <head>
26102 \end_layout
26103
26104 \end_inset
26105
26106  section when this style is used.
26107  This might, for example, be used to include a 
26108 \begin_inset Flex Code
26109 status collapsed
26110
26111 \begin_layout Plain Layout
26112 <script>
26113 \end_layout
26114
26115 \end_inset
26116
26117  block defining an 
26118 \begin_inset Flex Code
26119 status collapsed
26120
26121 \begin_layout Plain Layout
26122 onclick
26123 \end_layout
26124
26125 \end_inset
26126
26127  handler.
26128 \end_layout
26129
26130 \begin_layout Description
26131 \begin_inset Flex Code
26132 status collapsed
26133
26134 \begin_layout Plain Layout
26135 HTMLStyle
26136 \end_layout
26137
26138 \end_inset
26139
26140  CSS style information to be included when this style is used.
26141  Note that this will automatically be wrapped in a layout-generated 
26142 \begin_inset Flex Code
26143 status collapsed
26144
26145 \begin_layout Plain Layout
26146 <style>
26147 \end_layout
26148
26149 \end_inset
26150
26151  block, so only the CSS itself need be included.
26152  Must end with 
26153 \begin_inset Flex Code
26154 status collapsed
26155
26156 \begin_layout Plain Layout
26157 EndHTMLStyle
26158 \end_layout
26159
26160 \end_inset
26161
26162 .
26163 \end_layout
26164
26165 \begin_layout Description
26166 \begin_inset Flex Code
26167 status collapsed
26168
26169 \begin_layout Plain Layout
26170 HTMLTag
26171 \end_layout
26172
26173 \end_inset
26174
26175  [
26176 \begin_inset Flex Code
26177 status collapsed
26178
26179 \begin_layout Plain Layout
26180 string
26181 \end_layout
26182
26183 \end_inset
26184
26185 ] The tag to be used for the main label, replacing 
26186 \begin_inset Flex Code
26187 status collapsed
26188
26189 \begin_layout Plain Layout
26190 tag
26191 \end_layout
26192
26193 \end_inset
26194
26195  in the examples above.
26196  Defaults to 
26197 \begin_inset Flex Code
26198 status collapsed
26199
26200 \begin_layout Plain Layout
26201 div
26202 \end_layout
26203
26204 \end_inset
26205
26206 .
26207 \end_layout
26208
26209 \begin_layout Description
26210 \begin_inset Flex Code
26211 status collapsed
26212
26213 \begin_layout Plain Layout
26214 HTMLTitle
26215 \end_layout
26216
26217 \end_inset
26218
26219  [
26220 \begin_inset Flex Code
26221 status collapsed
26222
26223 \begin_layout Plain Layout
26224
26225 \emph on
26226 0
26227 \emph default
26228 ,1
26229 \end_layout
26230
26231 \end_inset
26232
26233 ] Marks this style as the one to be used to generate the 
26234 \begin_inset Flex Code
26235 status collapsed
26236
26237 \begin_layout Plain Layout
26238 <title>
26239 \end_layout
26240
26241 \end_inset
26242
26243  tag for the XHTML file.
26244  By default, it is false.
26245  The 
26246 \begin_inset Flex Code
26247 status collapsed
26248
26249 \begin_layout Plain Layout
26250 stdtitle.inc
26251 \end_layout
26252
26253 \end_inset
26254
26255  file sets it to true for the 
26256 \begin_inset Flex Code
26257 status collapsed
26258
26259 \begin_layout Plain Layout
26260 title
26261 \end_layout
26262
26263 \end_inset
26264
26265  environment.
26266  
26267 \end_layout
26268
26269 \begin_layout Subsection
26270 InsetLayout XHTML
26271 \end_layout
26272
26273 \begin_layout Standard
26274 The XHTML output of insets can also be controlled by information in layout
26275  files.
26276 \begin_inset Foot
26277 status collapsed
26278
26279 \begin_layout Plain Layout
26280 At present, this is true only for 
26281 \begin_inset Quotes eld
26282 \end_inset
26283
26284 text
26285 \begin_inset Quotes erd
26286 \end_inset
26287
26288  insets (insets you can type into) and is not true for 
26289 \begin_inset Quotes eld
26290 \end_inset
26291
26292 command
26293 \begin_inset Quotes erd
26294 \end_inset
26295
26296  insets (insets that are associated with dialog boxes).
26297 \end_layout
26298
26299 \end_inset
26300
26301  Here, too, \SpecialChar LyX
26302  tries to provide sensible defaults, and it constructs default
26303  CSS style rules.
26304  But everything can be customized.
26305 \end_layout
26306
26307 \begin_layout Standard
26308 The XHTML \SpecialChar LyX
26309  outputs for an inset has the following form:
26310 \end_layout
26311
26312 \begin_layout LyX-Code
26313 <tag attr=
26314 \begin_inset Quotes erd
26315 \end_inset
26316
26317 value
26318 \begin_inset Quotes erd
26319 \end_inset
26320
26321 >
26322 \end_layout
26323
26324 \begin_layout LyX-Code
26325 <labeltag>Label</labeltag>
26326 \end_layout
26327
26328 \begin_layout LyX-Code
26329 <innertag attr=
26330 \begin_inset Quotes erd
26331 \end_inset
26332
26333 value
26334 \begin_inset Quotes erd
26335 \end_inset
26336
26337 >Contents of the inset.</innertag>
26338 \end_layout
26339
26340 \begin_layout LyX-Code
26341 </tag>
26342 \end_layout
26343
26344 \begin_layout Standard
26345 If the inset permits multiple paragraphs—that is, if 
26346 \begin_inset Flex Code
26347 status collapsed
26348
26349 \begin_layout Plain Layout
26350 MultiPar
26351 \end_layout
26352
26353 \end_inset
26354
26355  is true—then the contents of the inset will itself be output as paragraphs
26356  formatted according to the styles used for those paragraphs (standard,
26357  quote, and the like).
26358  The label tag is of course omitted if the paragraph does not have a label
26359  and, at present, is always 
26360 \begin_inset Flex Code
26361 status collapsed
26362
26363 \begin_layout Plain Layout
26364 span
26365 \end_layout
26366
26367 \end_inset
26368
26369 .
26370  The inner tag is optional and, by default, does not appear.
26371 \end_layout
26372
26373 \begin_layout Standard
26374 The specific tags and attributes output for each inset can be controlled
26375  by means of the following layout tags.
26376 \end_layout
26377
26378 \begin_layout Description
26379 \begin_inset Flex Code
26380 status collapsed
26381
26382 \begin_layout Plain Layout
26383 HTMLAttr
26384 \end_layout
26385
26386 \end_inset
26387
26388  [
26389 \begin_inset Flex Code
26390 status collapsed
26391
26392 \begin_layout Plain Layout
26393 string
26394 \end_layout
26395
26396 \end_inset
26397
26398 ] Specifies attribute information to be output with the main tag.
26399  For example, 
26400 \begin_inset Quotes eld
26401 \end_inset
26402
26403
26404 \begin_inset Flex Code
26405 status collapsed
26406
26407 \begin_layout Plain Layout
26408 class=`myinset' onclick=`\SpecialChar ldots
26409 '
26410 \end_layout
26411
26412 \end_inset
26413
26414
26415 \begin_inset Quotes erd
26416 \end_inset
26417
26418 .
26419  By default, \SpecialChar LyX
26420  will output 
26421 \begin_inset Quotes eld
26422 \end_inset
26423
26424
26425 \begin_inset Flex Code
26426 status collapsed
26427
26428 \begin_layout Plain Layout
26429 class=`insetname'
26430 \end_layout
26431
26432 \end_inset
26433
26434
26435 \begin_inset Quotes erd
26436 \end_inset
26437
26438 , where 
26439 \begin_inset Flex Code
26440 status collapsed
26441
26442 \begin_layout Plain Layout
26443 insetname
26444 \end_layout
26445
26446 \end_inset
26447
26448  is the \SpecialChar LyX
26449  name of the inset, made lowercase and with non-alphanumeric characters
26450  converted to underscores, for example: footnote.
26451 \end_layout
26452
26453 \begin_layout Description
26454 \begin_inset Flex Code
26455 status collapsed
26456
26457 \begin_layout Plain Layout
26458 HTMLForceCSS
26459 \end_layout
26460
26461 \end_inset
26462
26463  [
26464 \begin_inset Flex Code
26465 status collapsed
26466
26467 \begin_layout Plain Layout
26468
26469 \emph on
26470 0
26471 \emph default
26472 ,1
26473 \end_layout
26474
26475 \end_inset
26476
26477 ] Whether to output the default CSS information \SpecialChar LyX
26478  generates for this layout,
26479  even if additional information is explicitly provided via 
26480 \begin_inset Flex Code
26481 status collapsed
26482
26483 \begin_layout Plain Layout
26484 HTMLStyle
26485 \end_layout
26486
26487 \end_inset
26488
26489 .
26490  Setting this to 
26491 \begin_inset Flex Code
26492 status collapsed
26493
26494 \begin_layout Plain Layout
26495 1
26496 \end_layout
26497
26498 \end_inset
26499
26500  allows you to alter or augment the generated CSS, rather than to override
26501  it completely.
26502  Default is 0.
26503 \end_layout
26504
26505 \begin_layout Description
26506 \begin_inset Flex Code
26507 status collapsed
26508
26509 \begin_layout Plain Layout
26510 HTMLInnerAttr
26511 \end_layout
26512
26513 \end_inset
26514
26515  [
26516 \begin_inset Flex Code
26517 status collapsed
26518
26519 \begin_layout Plain Layout
26520 string
26521 \end_layout
26522
26523 \end_inset
26524
26525 ] Attributes for the inner tag.
26526  Defaults to
26527 \begin_inset Newline newline
26528 \end_inset
26529
26530
26531 \begin_inset Quotes eld
26532 \end_inset
26533
26534
26535 \begin_inset Flex Code
26536 status collapsed
26537
26538 \begin_layout Plain Layout
26539 class=`insetname_inner'
26540 \end_layout
26541
26542 \end_inset
26543
26544
26545 \begin_inset Quotes erd
26546 \end_inset
26547
26548 .
26549 \end_layout
26550
26551 \begin_layout Description
26552 \begin_inset Flex Code
26553 status collapsed
26554
26555 \begin_layout Plain Layout
26556 HTMLInnerTag
26557 \end_layout
26558
26559 \end_inset
26560
26561  [
26562 \begin_inset Flex Code
26563 status collapsed
26564
26565 \begin_layout Plain Layout
26566 string
26567 \end_layout
26568
26569 \end_inset
26570
26571 ] The inner tag, replacing 
26572 \begin_inset Flex Code
26573 status collapsed
26574
26575 \begin_layout Plain Layout
26576 innertag
26577 \end_layout
26578
26579 \end_inset
26580
26581  in the examples above.
26582  By default, there is none.
26583 \end_layout
26584
26585 \begin_layout Description
26586 \begin_inset Flex Code
26587 status collapsed
26588
26589 \begin_layout Plain Layout
26590 HTMLIsBlock
26591 \end_layout
26592
26593 \end_inset
26594
26595  [
26596 \begin_inset Flex Code
26597 status collapsed
26598
26599 \begin_layout Plain Layout
26600 0,
26601 \emph on
26602 1
26603 \end_layout
26604
26605 \end_inset
26606
26607 ] Whether this inset represents a standalone block of text (such as a footnote)
26608  or instead represents material that is included in the surrounding text
26609  (such as a branch).
26610  Defaults to 1.
26611 \end_layout
26612
26613 \begin_layout Description
26614 \begin_inset Flex Code
26615 status collapsed
26616
26617 \begin_layout Plain Layout
26618 HTMLLabel
26619 \end_layout
26620
26621 \end_inset
26622
26623  [
26624 \begin_inset Flex Code
26625 status collapsed
26626
26627 \begin_layout Plain Layout
26628 string
26629 \end_layout
26630
26631 \end_inset
26632
26633 ] A label for this inset, possibly including a reference to a counter.
26634  For example, for footnote, it might be: 
26635 \begin_inset Flex Code
26636 status collapsed
26637
26638 \begin_layout Plain Layout
26639
26640 \backslash
26641 arabic{footnote}
26642 \end_layout
26643
26644 \end_inset
26645
26646 .
26647  This is optional, and there is no default.
26648 \end_layout
26649
26650 \begin_layout Description
26651 \begin_inset Flex Code
26652 status collapsed
26653
26654 \begin_layout Plain Layout
26655 HTMLPreamble
26656 \end_layout
26657
26658 \end_inset
26659
26660  Information to be output in the 
26661 \begin_inset Flex Code
26662 status collapsed
26663
26664 \begin_layout Plain Layout
26665 <head>
26666 \end_layout
26667
26668 \end_inset
26669
26670  section when this style is used.
26671  This might, for example, be used to include a 
26672 \begin_inset Flex Code
26673 status collapsed
26674
26675 \begin_layout Plain Layout
26676 <script>
26677 \end_layout
26678
26679 \end_inset
26680
26681  block defining an 
26682 \begin_inset Flex Code
26683 status collapsed
26684
26685 \begin_layout Plain Layout
26686 onclick
26687 \end_layout
26688
26689 \end_inset
26690
26691  handler.
26692 \end_layout
26693
26694 \begin_layout Description
26695 \begin_inset Flex Code
26696 status collapsed
26697
26698 \begin_layout Plain Layout
26699 HTMLStyle
26700 \end_layout
26701
26702 \end_inset
26703
26704  CSS style information to be included when this style is used.
26705  Note that this will automatically be wrapped in a layout-generated 
26706 \begin_inset Flex Code
26707 status collapsed
26708
26709 \begin_layout Plain Layout
26710 <style>
26711 \end_layout
26712
26713 \end_inset
26714
26715  block, so only the CSS itself need be included.
26716 \end_layout
26717
26718 \begin_layout Description
26719 \begin_inset Flex Code
26720 status collapsed
26721
26722 \begin_layout Plain Layout
26723 HTMLTag
26724 \end_layout
26725
26726 \end_inset
26727
26728  [
26729 \begin_inset Flex Code
26730 status collapsed
26731
26732 \begin_layout Plain Layout
26733 string
26734 \end_layout
26735
26736 \end_inset
26737
26738 ] The tag to be used for the main label, replacing 
26739 \begin_inset Flex Code
26740 status collapsed
26741
26742 \begin_layout Plain Layout
26743 tag
26744 \end_layout
26745
26746 \end_inset
26747
26748  in the examples above.
26749  The default depends upon the setting of 
26750 \begin_inset Flex Code
26751 status collapsed
26752
26753 \begin_layout Plain Layout
26754 MultiPar
26755 \end_layout
26756
26757 \end_inset
26758
26759 : If 
26760 \begin_inset Flex Code
26761 status collapsed
26762
26763 \begin_layout Plain Layout
26764 MultiPar
26765 \end_layout
26766
26767 \end_inset
26768
26769  is true, the default is 
26770 \begin_inset Flex Code
26771 status collapsed
26772
26773 \begin_layout Plain Layout
26774 div
26775 \end_layout
26776
26777 \end_inset
26778
26779 ; if it is false, the default is 
26780 \begin_inset Flex Code
26781 status collapsed
26782
26783 \begin_layout Plain Layout
26784 span
26785 \end_layout
26786
26787 \end_inset
26788
26789 .
26790 \end_layout
26791
26792 \begin_layout Subsection
26793 Float XHTML
26794 \end_layout
26795
26796 \begin_layout Standard
26797 The XHTML output for floats too can be controlled by layout information.
26798  The output has the following form:
26799 \end_layout
26800
26801 \begin_layout LyX-Code
26802 <tag attr=
26803 \begin_inset Quotes erd
26804 \end_inset
26805
26806 value
26807 \begin_inset Quotes erd
26808 \end_inset
26809
26810 >
26811 \end_layout
26812
26813 \begin_layout LyX-Code
26814 Contents of the float.
26815 \end_layout
26816
26817 \begin_layout LyX-Code
26818 </tag>
26819 \end_layout
26820
26821 \begin_layout Standard
26822 The caption, if there is one, is a separate inset and will be output as
26823  such.
26824  Its appearance can be controlled via the InsetLayout for caption insets.
26825  
26826 \end_layout
26827
26828 \begin_layout Description
26829 \begin_inset Flex Code
26830 status collapsed
26831
26832 \begin_layout Plain Layout
26833 HTMLAttr
26834 \end_layout
26835
26836 \end_inset
26837
26838  [
26839 \begin_inset Flex Code
26840 status collapsed
26841
26842 \begin_layout Plain Layout
26843 string
26844 \end_layout
26845
26846 \end_inset
26847
26848 ] Specifies attribute information to be output with the main tag.
26849  For example, 
26850 \begin_inset Quotes eld
26851 \end_inset
26852
26853
26854 \begin_inset Flex Code
26855 status collapsed
26856
26857 \begin_layout Plain Layout
26858 class=`myfloat' onclick=`\SpecialChar ldots
26859 '
26860 \end_layout
26861
26862 \end_inset
26863
26864
26865 \begin_inset Quotes erd
26866 \end_inset
26867
26868 .
26869  By default, \SpecialChar LyX
26870  will output 
26871 \begin_inset Quotes eld
26872 \end_inset
26873
26874
26875 \begin_inset Flex Code
26876 status collapsed
26877
26878 \begin_layout Plain Layout
26879 class=`float float-floattype'
26880 \end_layout
26881
26882 \end_inset
26883
26884
26885 \begin_inset Quotes erd
26886 \end_inset
26887
26888 , where 
26889 \begin_inset Flex Code
26890 status collapsed
26891
26892 \begin_layout Plain Layout
26893 floattype
26894 \end_layout
26895
26896 \end_inset
26897
26898  is \SpecialChar LyX
26899 's name for this type of float, as determined by the float declaration
26900  (see 
26901 \begin_inset CommandInset ref
26902 LatexCommand ref
26903 reference "subsec:Floats"
26904
26905 \end_inset
26906
26907 ), though made lowercase and with non-alphanumeric characters converted
26908  to underscores, for example: float-table.
26909 \end_layout
26910
26911 \begin_layout Description
26912 \begin_inset Flex Code
26913 status collapsed
26914
26915 \begin_layout Plain Layout
26916 HTMLStyle
26917 \end_layout
26918
26919 \end_inset
26920
26921  CSS style information to be included when this float is used.
26922  Note that this will automatically be wrapped in a layout-generated 
26923 \begin_inset Flex Code
26924 status collapsed
26925
26926 \begin_layout Plain Layout
26927 <style>
26928 \end_layout
26929
26930 \end_inset
26931
26932  block, so only the CSS itself need be included.
26933 \end_layout
26934
26935 \begin_layout Description
26936 \begin_inset Flex Code
26937 status collapsed
26938
26939 \begin_layout Plain Layout
26940 HTMLTag
26941 \end_layout
26942
26943 \end_inset
26944
26945  [
26946 \begin_inset Flex Code
26947 status collapsed
26948
26949 \begin_layout Plain Layout
26950 string
26951 \end_layout
26952
26953 \end_inset
26954
26955 ] The tag to be used for this float, replacing 
26956 \begin_inset Quotes eld
26957 \end_inset
26958
26959
26960 \begin_inset Flex Code
26961 status collapsed
26962
26963 \begin_layout Plain Layout
26964 tag
26965 \end_layout
26966
26967 \end_inset
26968
26969
26970 \begin_inset Quotes erd
26971 \end_inset
26972
26973  in the example above.
26974  The default is 
26975 \begin_inset Flex Code
26976 status collapsed
26977
26978 \begin_layout Plain Layout
26979 div
26980 \end_layout
26981
26982 \end_inset
26983
26984  and will rarely need changing.
26985 \end_layout
26986
26987 \begin_layout Subsection
26988 Bibliography formatting
26989 \end_layout
26990
26991 \begin_layout Standard
26992 The bibliography can be formatted using 
26993 \begin_inset Flex Code
26994 status collapsed
26995
26996 \begin_layout Plain Layout
26997 CiteFormat
26998 \end_layout
26999
27000 \end_inset
27001
27002  blocks.
27003  See 
27004 \begin_inset CommandInset ref
27005 LatexCommand ref
27006 reference "subsec:Citation-format-description"
27007
27008 \end_inset
27009
27010  for the details.
27011 \end_layout
27012
27013 \begin_layout Subsection
27014 \SpecialChar LyX
27015 -generated CSS
27016 \end_layout
27017
27018 \begin_layout Standard
27019 We have several times mentioned that \SpecialChar LyX
27020  will generate default CSS style rules
27021  for both insets and paragraph styles, based upon the other layout information
27022  that is provided.
27023  In this section, we shall say a word about which layout information \SpecialChar LyX
27024  uses
27025  and how.
27026 \end_layout
27027
27028 \begin_layout Standard
27029 At present, \SpecialChar LyX
27030  auto-generates CSS only for font information, making use of
27031  the 
27032 \begin_inset Flex Code
27033 status collapsed
27034
27035 \begin_layout Plain Layout
27036 Family
27037 \end_layout
27038
27039 \end_inset
27040
27041
27042 \begin_inset Flex Code
27043 status collapsed
27044
27045 \begin_layout Plain Layout
27046 Series
27047 \end_layout
27048
27049 \end_inset
27050
27051
27052 \begin_inset Flex Code
27053 status collapsed
27054
27055 \begin_layout Plain Layout
27056 Shape
27057 \end_layout
27058
27059 \end_inset
27060
27061 , and 
27062 \begin_inset Flex Code
27063 status collapsed
27064
27065 \begin_layout Plain Layout
27066 Size
27067 \end_layout
27068
27069 \end_inset
27070
27071  specified in the 
27072 \begin_inset Flex Code
27073 status collapsed
27074
27075 \begin_layout Plain Layout
27076 Font
27077 \end_layout
27078
27079 \end_inset
27080
27081  declaration (see 
27082 \begin_inset CommandInset ref
27083 LatexCommand ref
27084 reference "subsec:Font-description"
27085
27086 \end_inset
27087
27088 ).
27089  The translation is mostly straightforward and obvious.
27090  For example, 
27091 \begin_inset Quotes eld
27092 \end_inset
27093
27094
27095 \begin_inset Flex Code
27096 status collapsed
27097
27098 \begin_layout Plain Layout
27099 Family Sans
27100 \end_layout
27101
27102 \end_inset
27103
27104
27105 \begin_inset Quotes erd
27106 \end_inset
27107
27108  becomes 
27109 \begin_inset Quotes eld
27110 \end_inset
27111
27112
27113 \begin_inset Flex Code
27114 status collapsed
27115
27116 \begin_layout Plain Layout
27117 font-family: sans-serif;
27118 \end_layout
27119
27120 \end_inset
27121
27122
27123 \begin_inset Quotes erd
27124 \end_inset
27125
27126 .
27127  The correspondence of \SpecialChar LyX
27128  sizes and CSS sizes is a little less obvious but
27129  nonetheless intuitive.
27130  See the 
27131 \begin_inset Flex Code
27132 status collapsed
27133
27134 \begin_layout Plain Layout
27135 getSizeCSS()
27136 \end_layout
27137
27138 \end_inset
27139
27140  function in 
27141 \begin_inset Flex URL
27142 status collapsed
27143
27144 \begin_layout Plain Layout
27145
27146 src/FontInfo.cpp
27147 \end_layout
27148
27149 \end_inset
27150
27151  for the details.
27152 \change_inserted -970929547 1496610908
27153
27154 \end_layout
27155
27156 \begin_layout Section
27157
27158 \change_inserted -970929547 1496610966
27159 \begin_inset CommandInset label
27160 LatexCommand label
27161 name "sec:Tags-for-DocBook"
27162
27163 \end_inset
27164
27165 Tags for DocBook output
27166 \end_layout
27167
27168 \begin_layout Standard
27169
27170 \change_inserted -970929547 1496611615
27171 As with \SpecialChar LaTeX
27172  or XHTML, the format of \SpecialChar LyX
27173 's DocBook output is also controlled by
27174  layout information.
27175  In general, \SpecialChar LyX
27176  provides sensible defaults; however, much of the styling is
27177  lost during the conversion, as DocBook is strictly semantic and does not
27178  allow formatting.
27179  When possible, information from \SpecialChar LyX
27180  will be rendered in 
27181 \family typewriter
27182 role
27183 \family default
27184  attributes.
27185  
27186 \end_layout
27187
27188 \begin_layout Standard
27189
27190 \change_inserted -970929547 1496612080
27191 In many cases, then, you may not have to do anything at all to get acceptable
27192  DocBook output for your own environments, custom insets, and so forth.
27193  But in some cases you will, and so \SpecialChar LyX
27194  provides a number of layout tags that
27195  can be used to customize the DocBook that is generated.
27196 \end_layout
27197
27198 \begin_layout Standard
27199
27200 \change_inserted -970929547 1515109912
27201 Labels are rarely output, as they are redundant in DocBook: this information
27202  is carried by the tags themselves, and whether labels appear in the final
27203  documents (after processing of DocBook files) is controlled by the stylesheets.
27204  However, sometimes, labels are not redundant content, such as definition
27205  lists: in this case, the term being defined will be the label.
27206  
27207 \end_layout
27208
27209 \begin_layout Subsection
27210
27211 \change_inserted -970929547 1496610966
27212 \begin_inset CommandInset label
27213 LatexCommand label
27214 name "subsec:Paragraph-Style-XHTML-1"
27215
27216 \end_inset
27217
27218 Paragraph styles
27219 \end_layout
27220
27221 \begin_layout Standard
27222
27223 \change_inserted -970929547 1496612059
27224 The sort of DocBook \SpecialChar LyX
27225  outputs for a paragraph depends upon whether we are
27226  dealing with a normal paragraph, a command, or an environment, where this
27227  is itself determined by the contents of the corresponding 
27228 \begin_inset Flex Code
27229 status collapsed
27230
27231 \begin_layout Plain Layout
27232
27233 \change_inserted -970929547 1496610966
27234 \SpecialChar LaTeX
27235 Type
27236 \change_unchanged
27237
27238 \end_layout
27239
27240 \end_inset
27241
27242  tag.
27243  
27244 \end_layout
27245
27246 \begin_layout Standard
27247
27248 \change_inserted -970929547 1496612107
27249 For a command or normal paragraph, the output DocBook has the following
27250  form:
27251 \end_layout
27252
27253 \begin_layout LyX-Code
27254
27255 \change_inserted -970929547 1515109666
27256 <tag attr>
27257 \end_layout
27258
27259 \begin_layout LyX-Code
27260
27261 \change_inserted -970929547 1496610966
27262 Contents of the paragraph.
27263 \end_layout
27264
27265 \begin_layout LyX-Code
27266
27267 \change_inserted -970929547 1496610966
27268 </tag>
27269 \end_layout
27270
27271 \begin_layout Standard
27272
27273 \change_inserted -970929547 1515109821
27274 For an environment that is not some sort of list, the generated DocBook
27275  takes this form:
27276 \end_layout
27277
27278 \begin_layout LyX-Code
27279
27280 \change_inserted -970929547 1515109671
27281 <tag attr>
27282 \end_layout
27283
27284 \begin_layout LyX-Code
27285
27286 \change_inserted -970929547 1496612114
27287 <itemtag>First paragraph.</itemtag>
27288 \end_layout
27289
27290 \begin_layout LyX-Code
27291
27292 \change_inserted -970929547 1496610966
27293 <itemtag>Second paragraph.</itemtag>
27294 \end_layout
27295
27296 \begin_layout LyX-Code
27297
27298 \change_inserted -970929547 1496610966
27299 </tag>
27300 \end_layout
27301
27302 \begin_layout Standard
27303
27304 \change_inserted -970929547 1515109825
27305 For a list, the resulting DocBook takes this form:
27306 \end_layout
27307
27308 \begin_layout LyX-Code
27309
27310 \change_inserted -970929547 1515109672
27311 <tag attr>
27312 \end_layout
27313
27314 \begin_layout LyX-Code
27315
27316 \change_inserted -970929547 1515109676
27317 <itemtag attr>First item.</itemtag>
27318 \end_layout
27319
27320 \begin_layout LyX-Code
27321
27322 \change_inserted -970929547 1515109678
27323 <itemtag attr>Second item.</itemtag>
27324 \end_layout
27325
27326 \begin_layout LyX-Code
27327
27328 \change_inserted -970929547 1496610966
27329 </tag>
27330 \end_layout
27331
27332 \begin_layout Standard
27333
27334 \change_inserted -970929547 1496612243
27335 The specific tags and roles output for each paragraph type can be controlled
27336  by means of the layout tags we are about to describe.
27337  Please note that, due to the very nature of DocBook, no sensible defaults
27338  really exist, and the values must always be carefully chosen.
27339  
27340 \end_layout
27341
27342 \begin_layout Description
27343
27344 \change_inserted -970929547 1515110057
27345 \begin_inset Flex Code
27346 status collapsed
27347
27348 \begin_layout Plain Layout
27349
27350 \change_inserted -970929547 1515109656
27351 DocBookAttr
27352 \change_unchanged
27353
27354 \end_layout
27355
27356 \end_inset
27357
27358  [
27359 \begin_inset Flex Code
27360 status collapsed
27361
27362 \begin_layout Plain Layout
27363
27364 \change_inserted -970929547 1496610966
27365 string
27366 \change_unchanged
27367
27368 \end_layout
27369
27370 \end_inset
27371
27372 ] Specifies attribute information to be output with the main tag, replacing
27373  
27374 \begin_inset Quotes eld
27375 \end_inset
27376
27377
27378 \begin_inset Flex Code
27379 status collapsed
27380
27381 \begin_layout Plain Layout
27382
27383 \change_inserted -970929547 1515110057
27384 attr
27385 \change_unchanged
27386
27387 \end_layout
27388
27389 \end_inset
27390
27391
27392 \begin_inset Quotes erd
27393 \end_inset
27394
27395  in the example above.
27396  This information can be used in further processing of the DocBook files.
27397  
27398 \change_unchanged
27399
27400 \end_layout
27401
27402 \begin_layout Description
27403
27404 \change_inserted -970929547 1496612296
27405 \begin_inset Flex Code
27406 status collapsed
27407
27408 \begin_layout Plain Layout
27409
27410 \change_inserted -970929547 1496612269
27411 DocBookTag
27412 \change_unchanged
27413
27414 \end_layout
27415
27416 \end_inset
27417
27418  [
27419 \begin_inset Flex Code
27420 status collapsed
27421
27422 \begin_layout Plain Layout
27423
27424 \change_inserted -970929547 1496610966
27425 string
27426 \change_unchanged
27427
27428 \end_layout
27429
27430 \end_inset
27431
27432 ] The tag to be used for this inset, replacing 
27433 \begin_inset Quotes eld
27434 \end_inset
27435
27436
27437 \begin_inset Flex Code
27438 status collapsed
27439
27440 \begin_layout Plain Layout
27441
27442 \change_inserted -970929547 1496612296
27443 tag
27444 \change_unchanged
27445
27446 \end_layout
27447
27448 \end_inset
27449
27450
27451 \begin_inset Quotes erd
27452 \end_inset
27453
27454  in the example above.
27455  The default is the name of the float and always needs to be changed, as
27456  DocBook provides no generic tag.
27457 \change_unchanged
27458
27459 \end_layout
27460
27461 \begin_layout Subsection
27462
27463 \change_inserted -970929547 1515111533
27464 InsetLayout DocBook
27465 \change_unchanged
27466
27467 \end_layout
27468
27469 \begin_layout Standard
27470
27471 \change_inserted -970929547 1496611894
27472 The DocBook output of insets can also be controlled by information in layout
27473  files.
27474 \end_layout
27475
27476 \begin_layout Standard
27477
27478 \change_inserted -970929547 1496612045
27479 The DocBook \SpecialChar LyX
27480  outputs for an inset has the following form:
27481 \end_layout
27482
27483 \begin_layout LyX-Code
27484
27485 \change_inserted -970929547 1515110861
27486 <wrappertag wrapperattr>
27487 \end_layout
27488
27489 \begin_layout LyX-Code
27490
27491 \change_inserted -970929547 1515110868
27492   <tag attr>
27493 \end_layout
27494
27495 \begin_layout LyX-Code
27496
27497 \change_inserted -970929547 1515110869
27498     <innertag innerattr>
27499 \end_layout
27500
27501 \begin_layout LyX-Code
27502
27503 \change_inserted -970929547 1515110869
27504       Contents of the inset.
27505 \end_layout
27506
27507 \begin_layout LyX-Code
27508
27509 \change_inserted -970929547 1515110870
27510     </innertag>
27511 \end_layout
27512
27513 \begin_layout LyX-Code
27514
27515 \change_inserted -970929547 1515110871
27516   </tag>
27517 \end_layout
27518
27519 \begin_layout LyX-Code
27520
27521 \change_inserted -970929547 1515111172
27522 </wrappertag>
27523 \end_layout
27524
27525 \begin_layout Standard
27526
27527 \change_inserted -970929547 1515111186
27528 For an itemising inset, it rather looks like this: 
27529 \end_layout
27530
27531 \begin_layout LyX-Code
27532
27533 \change_inserted -970929547 1515111186
27534 <wrappertag wrapperattr>
27535 \end_layout
27536
27537 \begin_layout LyX-Code
27538
27539 \change_inserted -970929547 1515111186
27540   <tag attr>
27541 \end_layout
27542
27543 \begin_layout LyX-Code
27544
27545 \change_inserted -970929547 1515111186
27546     <innertag innerattr>
27547 \end_layout
27548
27549 \begin_layout LyX-Code
27550
27551 \change_inserted -970929547 1515111362
27552       <itemwrappertag itemwrapperattr>
27553 \end_layout
27554
27555 \begin_layout LyX-Code
27556
27557 \change_inserted -970929547 1515111364
27558         <itemlabeltag itemattr>
27559 \end_layout
27560
27561 \begin_layout LyX-Code
27562
27563 \change_inserted -970929547 1515111367
27564           Label of the first item.
27565 \end_layout
27566
27567 \begin_layout LyX-Code
27568
27569 \change_inserted -970929547 1515111362
27570         </itemtag>
27571 \change_unchanged
27572
27573 \end_layout
27574
27575 \begin_layout LyX-Code
27576
27577 \change_inserted -970929547 1515111517
27578         <itemtag itemattr>
27579 \end_layout
27580
27581 \begin_layout LyX-Code
27582
27583 \change_inserted -970929547 1515111517
27584           <itemtag itemattr>
27585 \change_unchanged
27586
27587 \end_layout
27588
27589 \begin_layout LyX-Code
27590
27591 \change_inserted -970929547 1515111516
27592             Contents of the first item.
27593 \end_layout
27594
27595 \begin_layout LyX-Code
27596
27597 \change_inserted -970929547 1515111514
27598           </itemtag>
27599 \change_unchanged
27600
27601 \end_layout
27602
27603 \begin_layout LyX-Code
27604
27605 \change_inserted -970929547 1515111247
27606         </itemtag>
27607 \change_unchanged
27608
27609 \end_layout
27610
27611 \begin_layout LyX-Code
27612
27613 \change_inserted -970929547 1515111221
27614       </itemwrappertag>
27615 \end_layout
27616
27617 \begin_layout LyX-Code
27618
27619 \change_inserted -970929547 1515111370
27620       <itemwrappertag itemwrapperattr>
27621 \end_layout
27622
27623 \begin_layout LyX-Code
27624
27625 \change_inserted -970929547 1515111370
27626         <itemlabeltag itemattr>
27627 \end_layout
27628
27629 \begin_layout LyX-Code
27630
27631 \change_inserted -970929547 1515111372
27632           Label of the second item.
27633 \end_layout
27634
27635 \begin_layout LyX-Code
27636
27637 \change_inserted -970929547 1515111370
27638         </itemtag>
27639 \change_unchanged
27640
27641 \end_layout
27642
27643 \begin_layout LyX-Code
27644
27645 \change_inserted -970929547 1515111504
27646         <itemtag itemattr>
27647 \end_layout
27648
27649 \begin_layout LyX-Code
27650
27651 \change_inserted -970929547 1515111505
27652           <itemtag itemattr>
27653 \change_unchanged
27654
27655 \end_layout
27656
27657 \begin_layout LyX-Code
27658
27659 \change_inserted -970929547 1515111507
27660             Contents of the second item.
27661 \end_layout
27662
27663 \begin_layout LyX-Code
27664
27665 \change_inserted -970929547 1515111509
27666           </itemtag>
27667 \change_unchanged
27668
27669 \end_layout
27670
27671 \begin_layout LyX-Code
27672
27673 \change_inserted -970929547 1515111251
27674         </itemtag>
27675 \change_unchanged
27676
27677 \end_layout
27678
27679 \begin_layout LyX-Code
27680
27681 \change_inserted -970929547 1515111221
27682       </itemwrappertag>
27683 \change_unchanged
27684
27685 \end_layout
27686
27687 \begin_layout LyX-Code
27688
27689 \change_inserted -970929547 1515111219
27690       ...
27691 \change_unchanged
27692
27693 \end_layout
27694
27695 \begin_layout LyX-Code
27696
27697 \change_inserted -970929547 1515111186
27698     </innertag>
27699 \end_layout
27700
27701 \begin_layout LyX-Code
27702
27703 \change_inserted -970929547 1515111186
27704   </tag>
27705 \end_layout
27706
27707 \begin_layout LyX-Code
27708
27709 \change_inserted -970929547 1515111186
27710 </wrappertag>
27711 \end_layout
27712
27713 \begin_layout Standard
27714
27715 \change_inserted -970929547 1515111183
27716 If the inset permits multiple paragraphs—that is, if 
27717 \begin_inset Flex Code
27718 status collapsed
27719
27720 \begin_layout Plain Layout
27721
27722 \change_inserted -970929547 1496610966
27723 MultiPar
27724 \change_unchanged
27725
27726 \end_layout
27727
27728 \end_inset
27729
27730  is true—then the contents of the inset will itself be output as paragraphs
27731  formatted according to the styles used for those paragraphs (standard,
27732  quote, and the like).
27733  The inner tag is optional and, by default, does not appear.
27734 \end_layout
27735
27736 \begin_layout Standard
27737
27738 \change_inserted -970929547 1496610966
27739 The specific tags and attributes output for each inset can be controlled
27740  by means of the following layout tags.
27741 \end_layout
27742
27743 \begin_layout Description
27744
27745 \change_inserted -970929547 1515110317
27746 \begin_inset Flex Code
27747 status collapsed
27748
27749 \begin_layout Plain Layout
27750
27751 \change_inserted -970929547 1515109695
27752 DocBookAttr
27753 \change_unchanged
27754
27755 \end_layout
27756
27757 \end_inset
27758
27759  [
27760 \begin_inset Flex Code
27761 status collapsed
27762
27763 \begin_layout Plain Layout
27764
27765 \change_inserted -970929547 1496611854
27766 string
27767 \change_unchanged
27768
27769 \end_layout
27770
27771 \end_inset
27772
27773 ] Specifies attribute information to be output with the main tag, replacing
27774  
27775 \begin_inset Quotes eld
27776 \end_inset
27777
27778
27779 \begin_inset Flex Code
27780 status collapsed
27781
27782 \begin_layout Plain Layout
27783
27784 \change_inserted -970929547 1515110044
27785 attr
27786 \change_unchanged
27787
27788 \end_layout
27789
27790 \end_inset
27791
27792
27793 \begin_inset Quotes erd
27794 \end_inset
27795
27796  in the example above.
27797  This information can be used in further processing of the DocBook files.
27798  
27799 \end_layout
27800
27801 \begin_layout Description
27802
27803 \change_inserted -970929547 1515110973
27804 \begin_inset Flex Code
27805 status collapsed
27806
27807 \begin_layout Plain Layout
27808
27809 \change_inserted -970929547 1515110319
27810 DocBookInInfo
27811 \change_unchanged
27812
27813 \end_layout
27814
27815 \end_inset
27816
27817  [
27818 \begin_inset Flex Code
27819 status collapsed
27820
27821 \begin_layout Plain Layout
27822
27823 \change_inserted -970929547 1515110384
27824 never, always, maybe
27825 \change_unchanged
27826
27827 \end_layout
27828
27829 \end_inset
27830
27831 ] Specifies whether this tag goes into the 
27832 \begin_inset Flex Code
27833 status collapsed
27834
27835 \begin_layout Plain Layout
27836
27837 \change_inserted -970929547 1515110412
27838 <info>
27839 \change_unchanged
27840
27841 \end_layout
27842
27843 \end_inset
27844
27845  tag at the beginning of the parent layout.
27846  
27847 \begin_inset Flex Code
27848 status collapsed
27849
27850 \begin_layout Plain Layout
27851
27852 \change_inserted -970929547 1515110437
27853 never
27854 \change_unchanged
27855
27856 \end_layout
27857
27858 \end_inset
27859
27860  indicates that the tag never goes into 
27861 \begin_inset Flex Code
27862 status collapsed
27863
27864 \begin_layout Plain Layout
27865
27866 \change_inserted -970929547 1515110497
27867 <info>
27868 \change_unchanged
27869
27870 \end_layout
27871
27872 \end_inset
27873
27874  (this is default value, and corresponds to usual content).
27875  
27876 \begin_inset Flex Code
27877 status collapsed
27878
27879 \begin_layout Plain Layout
27880
27881 \change_inserted -970929547 1515110517
27882 always
27883 \change_unchanged
27884
27885 \end_layout
27886
27887 \end_inset
27888
27889  indicates that the tag always goes into 
27890 \begin_inset Flex Code
27891 status collapsed
27892
27893 \begin_layout Plain Layout
27894
27895 \change_inserted -970929547 1515110514
27896 <info>
27897 \change_unchanged
27898
27899 \end_layout
27900
27901 \end_inset
27902
27903  (this corresponds to usual metadata): if there is no 
27904 \begin_inset Flex Code
27905 status collapsed
27906
27907 \begin_layout Plain Layout
27908
27909 \change_inserted -970929547 1515110550
27910 <info>
27911 \change_unchanged
27912
27913 \end_layout
27914
27915 \end_inset
27916
27917  tag for the parent, one 
27918 \series bold
27919 will
27920 \series default
27921  be generated.
27922  
27923 \begin_inset Flex Code
27924 status collapsed
27925
27926 \begin_layout Plain Layout
27927
27928 \change_inserted -970929547 1515110540
27929 maybe
27930 \change_unchanged
27931
27932 \end_layout
27933
27934 \end_inset
27935
27936  indicates that the tag may go into 
27937 \begin_inset Flex Code
27938 status collapsed
27939
27940 \begin_layout Plain Layout
27941
27942 \change_inserted -970929547 1515110538
27943 <info>
27944 \change_unchanged
27945
27946 \end_layout
27947
27948 \end_inset
27949
27950  (this is only the case for titles): if there is no 
27951 \begin_inset Flex Code
27952 status collapsed
27953
27954 \begin_layout Plain Layout
27955
27956 \change_inserted -970929547 1515110585
27957 <info>
27958 \change_unchanged
27959
27960 \end_layout
27961
27962 \end_inset
27963
27964  tag for the parent, 
27965 \series bold
27966 none
27967 \series default
27968  will be generated, the corresponding tag will be output directly as content.
27969  
27970 \end_layout
27971
27972 \begin_layout Description
27973
27974 \change_inserted -970929547 1515111461
27975 \begin_inset Flex Code
27976 status collapsed
27977
27978 \begin_layout Plain Layout
27979
27980 \change_inserted -970929547 1515110974
27981 DocBookItemAttr
27982 \change_unchanged
27983
27984 \end_layout
27985
27986 \end_inset
27987
27988  [
27989 \begin_inset Flex Code
27990 status collapsed
27991
27992 \begin_layout Plain Layout
27993
27994 \change_inserted -970929547 1515110973
27995 string
27996 \change_unchanged
27997
27998 \end_layout
27999
28000 \end_inset
28001
28002 ] Specifies attribute information to be output with the item tag, replacing
28003  
28004 \begin_inset Quotes eld
28005 \end_inset
28006
28007
28008 \begin_inset Flex Code
28009 status collapsed
28010
28011 \begin_layout Plain Layout
28012
28013 \change_inserted -970929547 1515110984
28014 itemattr
28015 \change_unchanged
28016
28017 \end_layout
28018
28019 \end_inset
28020
28021
28022 \begin_inset Quotes erd
28023 \end_inset
28024
28025  in the example above.
28026  This information can be used in further processing of the DocBook files.
28027  
28028 \end_layout
28029
28030 \begin_layout Description
28031
28032 \change_inserted -970929547 1515111471
28033 \begin_inset Flex Code
28034 status collapsed
28035
28036 \begin_layout Plain Layout
28037
28038 \change_inserted -970929547 1515111465
28039 DocBookItemInnerAttr
28040 \change_unchanged
28041
28042 \end_layout
28043
28044 \end_inset
28045
28046  [
28047 \begin_inset Flex Code
28048 status collapsed
28049
28050 \begin_layout Plain Layout
28051
28052 \change_inserted -970929547 1515111461
28053 string
28054 \change_unchanged
28055
28056 \end_layout
28057
28058 \end_inset
28059
28060 ] Specifies attribute information to be output with the item inner tag,
28061  replacing 
28062 \begin_inset Quotes eld
28063 \end_inset
28064
28065
28066 \begin_inset Flex Code
28067 status collapsed
28068
28069 \begin_layout Plain Layout
28070
28071 \change_inserted -970929547 1515111476
28072 iteminnerattr
28073 \change_unchanged
28074
28075 \end_layout
28076
28077 \end_inset
28078
28079
28080 \begin_inset Quotes erd
28081 \end_inset
28082
28083  in the example above.
28084  This information can be used in further processing of the DocBook files.
28085  
28086 \end_layout
28087
28088 \begin_layout Description
28089
28090 \change_inserted -970929547 1515111494
28091 \begin_inset Flex Code
28092 status collapsed
28093
28094 \begin_layout Plain Layout
28095
28096 \change_inserted -970929547 1515111467
28097 DocBookItemInnerTag
28098 \change_unchanged
28099
28100 \end_layout
28101
28102 \end_inset
28103
28104  [
28105 \begin_inset Flex Code
28106 status collapsed
28107
28108 \begin_layout Plain Layout
28109
28110 \change_inserted -970929547 1515111461
28111 string
28112 \change_unchanged
28113
28114 \end_layout
28115
28116 \end_inset
28117
28118 ] The tag to be used for the item inner tag within the inset, replacing
28119  
28120 \begin_inset Quotes eld
28121 \end_inset
28122
28123
28124 \begin_inset Flex Code
28125 status collapsed
28126
28127 \begin_layout Plain Layout
28128
28129 \change_inserted -970929547 1515111486
28130 iteminnertag
28131 \change_unchanged
28132
28133 \end_layout
28134
28135 \end_inset
28136
28137
28138 \begin_inset Quotes erd
28139 \end_inset
28140
28141  in the example above.
28142  The default is 
28143 \begin_inset Flex Code
28144 status collapsed
28145
28146 \begin_layout Plain Layout
28147
28148 \change_inserted -970929547 1515111461
28149 NONE
28150 \change_unchanged
28151
28152 \end_layout
28153
28154 \end_inset
28155
28156 , indicating that there is no item inner tag: content is directly output
28157  without it for each itemised element.
28158  This parameter only makes sense when itemising layouts are used, such as
28159  lists.
28160  
28161 \change_unchanged
28162
28163 \end_layout
28164
28165 \begin_layout Description
28166
28167 \change_inserted -970929547 1515111290
28168 \begin_inset Flex Code
28169 status collapsed
28170
28171 \begin_layout Plain Layout
28172
28173 \change_inserted -970929547 1515111283
28174 DocBookItemLabelAttr
28175 \change_unchanged
28176
28177 \end_layout
28178
28179 \end_inset
28180
28181  [
28182 \begin_inset Flex Code
28183 status collapsed
28184
28185 \begin_layout Plain Layout
28186
28187 \change_inserted -970929547 1515111279
28188 string
28189 \change_unchanged
28190
28191 \end_layout
28192
28193 \end_inset
28194
28195 ] Specifies attribute information to be output with the item label tag,
28196  replacing 
28197 \begin_inset Quotes eld
28198 \end_inset
28199
28200
28201 \begin_inset Flex Code
28202 status collapsed
28203
28204 \begin_layout Plain Layout
28205
28206 \change_inserted -970929547 1515111304
28207 itemlabelattr
28208 \change_unchanged
28209
28210 \end_layout
28211
28212 \end_inset
28213
28214
28215 \begin_inset Quotes erd
28216 \end_inset
28217
28218  in the example above.
28219  This information can be used in further processing of the DocBook files.
28220  
28221 \end_layout
28222
28223 \begin_layout Description
28224
28225 \change_inserted -970929547 1515111337
28226 \begin_inset Flex Code
28227 status collapsed
28228
28229 \begin_layout Plain Layout
28230
28231 \change_inserted -970929547 1515111285
28232 DocBookItemLabelTag
28233 \change_unchanged
28234
28235 \end_layout
28236
28237 \end_inset
28238
28239  [
28240 \begin_inset Flex Code
28241 status collapsed
28242
28243 \begin_layout Plain Layout
28244
28245 \change_inserted -970929547 1515111279
28246 string
28247 \change_unchanged
28248
28249 \end_layout
28250
28251 \end_inset
28252
28253 ] The tag to be used for the item label tag within the inset, replacing
28254  
28255 \begin_inset Quotes eld
28256 \end_inset
28257
28258
28259 \begin_inset Flex Code
28260 status collapsed
28261
28262 \begin_layout Plain Layout
28263
28264 \change_inserted -970929547 1515111311
28265 itemlabeltag
28266 \change_unchanged
28267
28268 \end_layout
28269
28270 \end_inset
28271
28272
28273 \begin_inset Quotes erd
28274 \end_inset
28275
28276  in the example above.
28277  This parameter only makes sense when itemising layouts are used with a
28278  notion of labels, such as definition lists.
28279  
28280 \change_unchanged
28281
28282 \end_layout
28283
28284 \begin_layout Description
28285
28286 \change_inserted -970929547 1515111124
28287 \begin_inset Flex Code
28288 status collapsed
28289
28290 \begin_layout Plain Layout
28291
28292 \change_inserted -970929547 1515111060
28293 DocBookItemTag
28294 \change_unchanged
28295
28296 \end_layout
28297
28298 \end_inset
28299
28300  [
28301 \begin_inset Flex Code
28302 status collapsed
28303
28304 \begin_layout Plain Layout
28305
28306 \change_inserted -970929547 1515111060
28307 string
28308 \change_unchanged
28309
28310 \end_layout
28311
28312 \end_inset
28313
28314 ] The tag to be used for the item tag within the inset, replacing 
28315 \begin_inset Quotes eld
28316 \end_inset
28317
28318
28319 \begin_inset Flex Code
28320 status collapsed
28321
28322 \begin_layout Plain Layout
28323
28324 \change_inserted -970929547 1515111060
28325 itemtag
28326 \change_unchanged
28327
28328 \end_layout
28329
28330 \end_inset
28331
28332
28333 \begin_inset Quotes erd
28334 \end_inset
28335
28336  in the example above.
28337  The default is 
28338 \begin_inset Flex Code
28339 status collapsed
28340
28341 \begin_layout Plain Layout
28342
28343 \change_inserted -970929547 1515111060
28344 NONE
28345 \change_unchanged
28346
28347 \end_layout
28348
28349 \end_inset
28350
28351 , indicating that there is no item tag.
28352  This parameter only makes sense when itemising layouts are used, such as
28353  lists.
28354  
28355 \end_layout
28356
28357 \begin_layout Description
28358
28359 \change_inserted -970929547 1515111298
28360 \begin_inset Flex Code
28361 status collapsed
28362
28363 \begin_layout Plain Layout
28364
28365 \change_inserted -970929547 1515111124
28366 DocBookItemWrapperAttr
28367 \change_unchanged
28368
28369 \end_layout
28370
28371 \end_inset
28372
28373  [
28374 \begin_inset Flex Code
28375 status collapsed
28376
28377 \begin_layout Plain Layout
28378
28379 \change_inserted -970929547 1515111124
28380 string
28381 \change_unchanged
28382
28383 \end_layout
28384
28385 \end_inset
28386
28387 ] Specifies attribute information to be output with the item wrapper tag,
28388  replacing 
28389 \begin_inset Quotes eld
28390 \end_inset
28391
28392
28393 \begin_inset Flex Code
28394 status collapsed
28395
28396 \begin_layout Plain Layout
28397
28398 \change_inserted -970929547 1515111150
28399 itemwrapperattr
28400 \change_unchanged
28401
28402 \end_layout
28403
28404 \end_inset
28405
28406
28407 \begin_inset Quotes erd
28408 \end_inset
28409
28410  in the example above.
28411  This information can be used in further processing of the DocBook files.
28412  
28413 \change_unchanged
28414
28415 \end_layout
28416
28417 \begin_layout Description
28418
28419 \change_inserted -970929547 1515111113
28420 \begin_inset Flex Code
28421 status collapsed
28422
28423 \begin_layout Plain Layout
28424
28425 \change_inserted -970929547 1515111073
28426 DocBookItemWrapperTag
28427 \change_unchanged
28428
28429 \end_layout
28430
28431 \end_inset
28432
28433  [
28434 \begin_inset Flex Code
28435 status collapsed
28436
28437 \begin_layout Plain Layout
28438
28439 \change_inserted -970929547 1515111073
28440 string
28441 \change_unchanged
28442
28443 \end_layout
28444
28445 \end_inset
28446
28447 ] The tag to be used for the item wrapper tag within the inset, replacing
28448  
28449 \begin_inset Quotes eld
28450 \end_inset
28451
28452
28453 \begin_inset Flex Code
28454 status collapsed
28455
28456 \begin_layout Plain Layout
28457
28458 \change_inserted -970929547 1515111083
28459 itemwrappertag
28460 \change_unchanged
28461
28462 \end_layout
28463
28464 \end_inset
28465
28466
28467 \begin_inset Quotes erd
28468 \end_inset
28469
28470  in the example above.
28471  The default is 
28472 \begin_inset Flex Code
28473 status collapsed
28474
28475 \begin_layout Plain Layout
28476
28477 \change_inserted -970929547 1515111073
28478 NONE
28479 \change_unchanged
28480
28481 \end_layout
28482
28483 \end_inset
28484
28485 , indicating that there is no item wrapper tag: tag and content are directly
28486  output without it for each itemised element.
28487  This parameter only makes sense when itemising layouts are used, such as
28488  lists.
28489  
28490 \change_unchanged
28491
28492 \end_layout
28493
28494 \begin_layout Description
28495
28496 \change_inserted -970929547 1515110104
28497 \begin_inset Flex Code
28498 status collapsed
28499
28500 \begin_layout Plain Layout
28501
28502 \change_inserted -970929547 1515110104
28503 DocBookInnerAttr
28504 \change_unchanged
28505
28506 \end_layout
28507
28508 \end_inset
28509
28510  [
28511 \begin_inset Flex Code
28512 status collapsed
28513
28514 \begin_layout Plain Layout
28515
28516 \change_inserted -970929547 1515110104
28517 string
28518 \change_unchanged
28519
28520 \end_layout
28521
28522 \end_inset
28523
28524 ] Specifies attribute information to be output with the inner tag, replacing
28525  
28526 \begin_inset Quotes eld
28527 \end_inset
28528
28529
28530 \begin_inset Flex Code
28531 status collapsed
28532
28533 \begin_layout Plain Layout
28534
28535 \change_inserted -970929547 1515110104
28536 innerattr
28537 \change_unchanged
28538
28539 \end_layout
28540
28541 \end_inset
28542
28543
28544 \begin_inset Quotes erd
28545 \end_inset
28546
28547  in the example above.
28548  This information can be used in further processing of the DocBook files.
28549  
28550 \end_layout
28551
28552 \begin_layout Description
28553
28554 \change_inserted -970929547 1515110906
28555 \begin_inset Flex Code
28556 status collapsed
28557
28558 \begin_layout Plain Layout
28559
28560 \change_inserted -970929547 1515110104
28561 DocBookInnerTag
28562 \change_unchanged
28563
28564 \end_layout
28565
28566 \end_inset
28567
28568  [
28569 \begin_inset Flex Code
28570 status collapsed
28571
28572 \begin_layout Plain Layout
28573
28574 \change_inserted -970929547 1515110104
28575 string
28576 \change_unchanged
28577
28578 \end_layout
28579
28580 \end_inset
28581
28582 ] The tag to be used for the inner tag within the inset, replacing 
28583 \begin_inset Quotes eld
28584 \end_inset
28585
28586
28587 \begin_inset Flex Code
28588 status collapsed
28589
28590 \begin_layout Plain Layout
28591
28592 \change_inserted -970929547 1515110104
28593 innertag
28594 \change_unchanged
28595
28596 \end_layout
28597
28598 \end_inset
28599
28600
28601 \begin_inset Quotes erd
28602 \end_inset
28603
28604  in the example above.
28605  The default is 
28606 \begin_inset Flex Code
28607 status collapsed
28608
28609 \begin_layout Plain Layout
28610
28611 \change_inserted -970929547 1515110791
28612 NONE
28613 \change_unchanged
28614
28615 \end_layout
28616
28617 \end_inset
28618
28619 , indicating that there is no inner tag: content is directly output without
28620  it.
28621 \end_layout
28622
28623 \begin_layout Description
28624
28625 \change_inserted -970929547 1515110753
28626 \begin_inset Flex Code
28627 status collapsed
28628
28629 \begin_layout Plain Layout
28630
28631 \change_inserted -970929547 1515110665
28632 DocBookSectionTag
28633 \change_unchanged
28634
28635 \end_layout
28636
28637 \end_inset
28638
28639  [
28640 \begin_inset Flex Code
28641 status collapsed
28642
28643 \begin_layout Plain Layout
28644
28645 \change_inserted -970929547 1515110661
28646 string
28647 \change_unchanged
28648
28649 \end_layout
28650
28651 \end_inset
28652
28653 ] Specifies the tag that corresponds to this kind of section.
28654  This parameter only makes sense for sectioning elements (part, chapter,
28655  section, etc.).
28656  The default value is 
28657 \begin_inset Flex Code
28658 status collapsed
28659
28660 \begin_layout Plain Layout
28661
28662 \change_inserted -970929547 1515110721
28663 section
28664 \change_unchanged
28665
28666 \end_layout
28667
28668 \end_inset
28669
28670 , and is only overridden when DocBook uses something else for sectioning
28671  (parts and chapters of a book).
28672  
28673 \change_unchanged
28674
28675 \end_layout
28676
28677 \begin_layout Description
28678
28679 \change_inserted -970929547 1515110811
28680 \begin_inset Flex Code
28681 status collapsed
28682
28683 \begin_layout Plain Layout
28684
28685 \change_inserted -970929547 1496612023
28686 DocBookTag
28687 \change_unchanged
28688
28689 \end_layout
28690
28691 \end_inset
28692
28693  [
28694 \begin_inset Flex Code
28695 status collapsed
28696
28697 \begin_layout Plain Layout
28698
28699 \change_inserted -970929547 1496610966
28700 string
28701 \change_unchanged
28702
28703 \end_layout
28704
28705 \end_inset
28706
28707 ] The tag to be used for this inset, replacing 
28708 \begin_inset Quotes eld
28709 \end_inset
28710
28711
28712 \begin_inset Flex Code
28713 status collapsed
28714
28715 \begin_layout Plain Layout
28716
28717 \change_inserted -970929547 1496612033
28718 tag
28719 \change_unchanged
28720
28721 \end_layout
28722
28723 \end_inset
28724
28725
28726 \begin_inset Quotes erd
28727 \end_inset
28728
28729  in the example above.
28730  The default is the name of the float and always needs to be changed, as
28731  DocBook provides no generic inset tag.
28732 \end_layout
28733
28734 \begin_layout Description
28735
28736 \change_inserted -970929547 1515110832
28737 \begin_inset Flex Code
28738 status collapsed
28739
28740 \begin_layout Plain Layout
28741
28742 \change_inserted -970929547 1515110822
28743 DocBookWrapperAttr
28744 \change_unchanged
28745
28746 \end_layout
28747
28748 \end_inset
28749
28750  [
28751 \begin_inset Flex Code
28752 status collapsed
28753
28754 \begin_layout Plain Layout
28755
28756 \change_inserted -970929547 1515110811
28757 string
28758 \change_unchanged
28759
28760 \end_layout
28761
28762 \end_inset
28763
28764 ] Specifies attribute information to be output with the outer tag, replacing
28765  
28766 \begin_inset Quotes eld
28767 \end_inset
28768
28769
28770 \begin_inset Flex Code
28771 status collapsed
28772
28773 \begin_layout Plain Layout
28774
28775 \change_inserted -970929547 1515110845
28776 wrapperattr
28777 \change_unchanged
28778
28779 \end_layout
28780
28781 \end_inset
28782
28783
28784 \begin_inset Quotes erd
28785 \end_inset
28786
28787  in the example above.
28788  This information can be used in further processing of the DocBook files.
28789  
28790 \end_layout
28791
28792 \begin_layout Description
28793
28794 \change_inserted -970929547 1515110917
28795 \begin_inset Flex Code
28796 status collapsed
28797
28798 \begin_layout Plain Layout
28799
28800 \change_inserted -970929547 1515110826
28801 DocBookWrapperTag
28802 \change_unchanged
28803
28804 \end_layout
28805
28806 \end_inset
28807
28808  [
28809 \begin_inset Flex Code
28810 status collapsed
28811
28812 \begin_layout Plain Layout
28813
28814 \change_inserted -970929547 1515110811
28815 string
28816 \change_unchanged
28817
28818 \end_layout
28819
28820 \end_inset
28821
28822 ] The tag to be used for the wrapper tag around the inset, replacing 
28823 \begin_inset Quotes eld
28824 \end_inset
28825
28826
28827 \begin_inset Flex Code
28828 status collapsed
28829
28830 \begin_layout Plain Layout
28831
28832 \change_inserted -970929547 1515110842
28833 wrappertag
28834 \change_unchanged
28835
28836 \end_layout
28837
28838 \end_inset
28839
28840
28841 \begin_inset Quotes erd
28842 \end_inset
28843
28844  in the example above.
28845  The default is 
28846 \begin_inset Flex Code
28847 status collapsed
28848
28849 \begin_layout Plain Layout
28850
28851 \change_inserted -970929547 1515110811
28852 NONE
28853 \change_unchanged
28854
28855 \end_layout
28856
28857 \end_inset
28858
28859 , indicating that there is no wrapper tag: tag and content are directly
28860  output without it.
28861 \change_deleted -970929547 1515111523
28862
28863 \end_layout
28864
28865 \begin_layout Subsection
28866
28867 \change_inserted -970929547 1515110040
28868 Float DocBook
28869 \end_layout
28870
28871 \begin_layout Standard
28872
28873 \change_inserted -970929547 1496611700
28874 The DocBook output for floats too can be controlled by layout information.
28875  The output has the following form:
28876 \end_layout
28877
28878 \begin_layout LyX-Code
28879
28880 \change_inserted -970929547 1515109700
28881 <tag attr>
28882 \end_layout
28883
28884 \begin_layout LyX-Code
28885
28886 \change_inserted -970929547 1515110138
28887   Contents of the float as DocBook.
28888 \end_layout
28889
28890 \begin_layout LyX-Code
28891
28892 \change_inserted -970929547 1496610966
28893 </tag>
28894 \end_layout
28895
28896 \begin_layout Standard
28897
28898 \change_inserted -970929547 1496611715
28899 The caption, if there is one, is a separate inset and will be output as
28900  a title.
28901  
28902 \end_layout
28903
28904 \begin_layout Description
28905
28906 \change_inserted -970929547 1515110033
28907 \begin_inset Flex Code
28908 status collapsed
28909
28910 \begin_layout Plain Layout
28911
28912 \change_inserted -970929547 1515109702
28913 DocBookAttr
28914 \change_unchanged
28915
28916 \end_layout
28917
28918 \end_inset
28919
28920  [
28921 \begin_inset Flex Code
28922 status collapsed
28923
28924 \begin_layout Plain Layout
28925
28926 \change_inserted -970929547 1496610966
28927 string
28928 \change_unchanged
28929
28930 \end_layout
28931
28932 \end_inset
28933
28934 ] Specifies attribute information to be output with the main tag, replacing
28935  
28936 \begin_inset Quotes eld
28937 \end_inset
28938
28939
28940 \begin_inset Flex Code
28941 status collapsed
28942
28943 \begin_layout Plain Layout
28944
28945 \change_inserted -970929547 1515110035
28946 attr
28947 \change_unchanged
28948
28949 \end_layout
28950
28951 \end_inset
28952
28953
28954 \begin_inset Quotes erd
28955 \end_inset
28956
28957  in the example above.
28958  This information can be used in further processing of the DocBook files.
28959  
28960 \end_layout
28961
28962 \begin_layout Description
28963
28964 \change_inserted -970929547 1515110157
28965 \begin_inset Flex Code
28966 status collapsed
28967
28968 \begin_layout Plain Layout
28969
28970 \change_inserted -970929547 1496611782
28971 DocBookTag
28972 \change_unchanged
28973
28974 \end_layout
28975
28976 \end_inset
28977
28978  [
28979 \begin_inset Flex Code
28980 status collapsed
28981
28982 \begin_layout Plain Layout
28983
28984 \change_inserted -970929547 1496610966
28985 string
28986 \change_unchanged
28987
28988 \end_layout
28989
28990 \end_inset
28991
28992 ] The tag to be used for this float, replacing 
28993 \begin_inset Quotes eld
28994 \end_inset
28995
28996
28997 \begin_inset Flex Code
28998 status collapsed
28999
29000 \begin_layout Plain Layout
29001
29002 \change_inserted -970929547 1496610966
29003 tag
29004 \change_unchanged
29005
29006 \end_layout
29007
29008 \end_inset
29009
29010
29011 \begin_inset Quotes erd
29012 \end_inset
29013
29014  in the example above.
29015  The default is the name of the float and always needs to be changed, as
29016  DocBook provides no generic float tag.
29017 \end_layout
29018
29019 \begin_layout Subsection
29020
29021 \change_inserted -970929547 1515110157
29022 Bibliography formatting
29023 \end_layout
29024
29025 \begin_layout Standard
29026
29027 \change_inserted -970929547 1515110187
29028 The bibliography cannot be formatted: all fields are always output in the
29029  database-like DocBook format (equivalent to a BibTeX file).
29030 \change_unchanged
29031
29032 \end_layout
29033
29034 \begin_layout Chapter
29035 Including External Material
29036 \begin_inset CommandInset label
29037 LatexCommand label
29038 name "chap:Including-External-Material"
29039
29040 \end_inset
29041
29042
29043 \end_layout
29044
29045 \begin_layout Standard
29046 \begin_inset Box Shadowbox
29047 position "t"
29048 hor_pos "c"
29049 has_inner_box 1
29050 inner_pos "t"
29051 use_parbox 0
29052 use_makebox 0
29053 width "100col%"
29054 special "none"
29055 height "1in"
29056 height_special "totalheight"
29057 thickness "0.4pt"
29058 separation "3pt"
29059 shadowsize "4pt"
29060 framecolor "black"
29061 backgroundcolor "none"
29062 status open
29063
29064 \begin_layout Plain Layout
29065 WARNING: This portion of the documentation has not been updated for some
29066  time.
29067  We certainly hope that it is still accurate, but there are no guarantees.
29068 \end_layout
29069
29070 \end_inset
29071
29072
29073 \end_layout
29074
29075 \begin_layout Standard
29076 The use of material from sources external to \SpecialChar LyX
29077  is covered in detail in the
29078  
29079 \emph on
29080 Embedded Objects
29081 \emph default
29082  manual.
29083  This part of the manual covers what needs to happen behind the scenes for
29084  new sorts of material to be included.
29085 \end_layout
29086
29087 \begin_layout Section
29088 How does it work?
29089 \end_layout
29090
29091 \begin_layout Standard
29092 The external material feature is based on the concept of a 
29093 \emph on
29094 template
29095 \emph default
29096 .
29097  A template is a specification of how \SpecialChar LyX
29098  should interface with a certain kind
29099  of material.
29100  As bundled, \SpecialChar LyX
29101  comes with predefined templates for Xfig figures, various
29102  raster format images, chess diagrams, and LilyPond music notation.
29103  You can check the actual list by using the menu 
29104 \begin_inset Flex Noun
29105 status collapsed
29106
29107 \begin_layout Plain Layout
29108 Insert\SpecialChar menuseparator
29109 File\SpecialChar menuseparator
29110 External Material
29111 \end_layout
29112
29113 \end_inset
29114
29115 .
29116  Furthermore, it is possible to roll your own template to support a specific
29117  kind of material.
29118  Later we'll describe in more detail what is involved, and hopefully you
29119  will submit all the templates you create so we can include them in a later
29120  \SpecialChar LyX
29121  version.
29122 \end_layout
29123
29124 \begin_layout Standard
29125 Another basic idea of the external material feature is to distinguish between
29126  the original file that serves as a base for final material and the produced
29127  file that is included in your exported or printed document.
29128  For example, consider the case of a figure produced with 
29129 \begin_inset Flex Code
29130 status collapsed
29131
29132 \begin_layout Plain Layout
29133 Xfig
29134 \end_layout
29135
29136 \end_inset
29137
29138 .
29139  The Xfig application itself works on an original file with the 
29140 \begin_inset Flex Code
29141 status collapsed
29142
29143 \begin_layout Plain Layout
29144 .fig
29145 \end_layout
29146
29147 \end_inset
29148
29149  extension.
29150  Within Xfig, you create and change your figure, and when you are done,
29151  you save the 
29152 \begin_inset Flex Code
29153 status collapsed
29154
29155 \begin_layout Plain Layout
29156 fig
29157 \end_layout
29158
29159 \end_inset
29160
29161 -file.
29162  When you want to include the figure in your document, you invoke 
29163 \begin_inset Flex Code
29164 status collapsed
29165
29166 \begin_layout Plain Layout
29167 transfig
29168 \end_layout
29169
29170 \end_inset
29171
29172  in order to create a PostScript file that can readily be included in your
29173  \SpecialChar LaTeX
29174  file.
29175  In this case, the 
29176 \begin_inset Flex Code
29177 status collapsed
29178
29179 \begin_layout Plain Layout
29180 .fig
29181 \end_layout
29182
29183 \end_inset
29184
29185  file is the original file, and the PostScript file is the produced file.
29186 \end_layout
29187
29188 \begin_layout Standard
29189 This distinction is important in order to allow updating of the material
29190  while you are in the process of writing the document.
29191  Furthermore, it provides us with the flexibility that is needed to support
29192  multiple export formats.
29193  For instance, in the case of a plain text file, it is not exactly an award-winn
29194 ing idea to include the figure as raw PostScript.
29195  Instead, you would either prefer to just include a reference to the figure
29196  or try to invoke some graphics to ASCII converter to make the final result
29197  look similar to the real graphics.
29198  The external material management allows you to do this, because it is parametri
29199 zed on the different export formats that \SpecialChar LyX
29200  supports.
29201 \end_layout
29202
29203 \begin_layout Standard
29204 Besides supporting the production of different products according to the
29205  exported format, it supports tight integration with editing and viewing
29206  applications.
29207  In the case of an Xfig figure, you are able to invoke Xfig on the original
29208  file with a single click from within the external material dialog in \SpecialChar LyX
29209 ,
29210  and also preview the produced PostScript file with Ghostview with another
29211  click.
29212  No more fiddling around with the command line and/or file browsers to locate
29213  and manipulate the original or produced files.
29214  In this way, you are finally able to take full advantage of the many different
29215  applications that are relevant to use when you write your documents, and
29216  ultimately be more productive.
29217 \end_layout
29218
29219 \begin_layout Section
29220 The external template configuration files
29221 \end_layout
29222
29223 \begin_layout Standard
29224 It is relatively easy to add custom external template definitions to \SpecialChar LyX
29225 .
29226  However, be aware that doing this in an careless manner most probably 
29227 \emph on
29228 will
29229 \emph default
29230  introduce an easily exploitable security hole.
29231  So before you do this, please read the discussion about security in 
29232 \begin_inset CommandInset ref
29233 LatexCommand ref
29234 reference "sec:Security-discussion"
29235
29236 \end_inset
29237
29238 .
29239 \end_layout
29240
29241 \begin_layout Standard
29242 Having said that, we encourage you to submit any interesting templates that
29243  you create.
29244  
29245 \end_layout
29246
29247 \begin_layout Standard
29248 The external templates are defined in the 
29249 \begin_inset Flex Code
29250 status collapsed
29251
29252 \begin_layout Plain Layout
29253 *.xtemplate
29254 \end_layout
29255
29256 \end_inset
29257
29258  files that are stored in the 
29259 \begin_inset Flex Code
29260 status collapsed
29261
29262 \begin_layout Plain Layout
29263 LyXDir/lib/xtemplates/
29264 \end_layout
29265
29266 \end_inset
29267
29268  directory.
29269  Each template is defined in a file of its own.
29270  You can place your own templates in 
29271 \begin_inset Flex Code
29272 status collapsed
29273
29274 \begin_layout Plain Layout
29275 UserDir/xtemplates/
29276 \end_layout
29277
29278 \end_inset
29279
29280  or copy existing templates to that directory in order to modify them.
29281 \end_layout
29282
29283 \begin_layout Standard
29284 A typical template looks like this:
29285 \end_layout
29286
29287 \begin_layout LyX-Code
29288 Template XFig
29289 \end_layout
29290
29291 \begin_layout LyX-Code
29292 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
29293 \end_layout
29294
29295 \begin_layout LyX-Code
29296 HelpText
29297 \end_layout
29298
29299 \begin_layout LyX-Code
29300 An XFig figure.
29301 \end_layout
29302
29303 \begin_layout LyX-Code
29304 HelpTextEnd
29305 \end_layout
29306
29307 \begin_layout LyX-Code
29308 InputFormat fig
29309 \end_layout
29310
29311 \begin_layout LyX-Code
29312 FileFilter "*.fig"
29313 \end_layout
29314
29315 \begin_layout LyX-Code
29316 AutomaticProduction true
29317 \end_layout
29318
29319 \begin_layout LyX-Code
29320 Transform Rotate
29321 \end_layout
29322
29323 \begin_layout LyX-Code
29324 Transform Resize
29325 \end_layout
29326
29327 \begin_layout LyX-Code
29328 Format LaTeX
29329 \end_layout
29330
29331 \begin_layout LyX-Code
29332 TransformCommand Rotate RotationLatexCommand
29333 \end_layout
29334
29335 \begin_layout LyX-Code
29336 TransformCommand Resize ResizeLatexCommand
29337 \end_layout
29338
29339 \begin_layout LyX-Code
29340 Product "$$RotateFront$$ResizeFront
29341 \end_layout
29342
29343 \begin_layout LyX-Code
29344          
29345 \backslash
29346
29347 \backslash
29348 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
29349 \end_layout
29350
29351 \begin_layout LyX-Code
29352          $$ResizeBack$$RotateBack"
29353 \end_layout
29354
29355 \begin_layout LyX-Code
29356 UpdateFormat pstex
29357 \end_layout
29358
29359 \begin_layout LyX-Code
29360 UpdateResult "$$AbsPath$$Basename.pstex_t"
29361 \end_layout
29362
29363 \begin_layout LyX-Code
29364 Requirement "graphicx"
29365 \end_layout
29366
29367 \begin_layout LyX-Code
29368 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
29369 \end_layout
29370
29371 \begin_layout LyX-Code
29372 ReferencedFile latex "$$AbsPath$$Basename.eps"
29373 \end_layout
29374
29375 \begin_layout LyX-Code
29376 ReferencedFile dvi "$$AbsPath$$Basename.eps"
29377 \end_layout
29378
29379 \begin_layout LyX-Code
29380 FormatEnd
29381 \end_layout
29382
29383 \begin_layout LyX-Code
29384 Format PDFLaTeX
29385 \end_layout
29386
29387 \begin_layout LyX-Code
29388 TransformCommand Rotate RotationLatexCommand
29389 \end_layout
29390
29391 \begin_layout LyX-Code
29392 TransformCommand Resize ResizeLatexCommand
29393 \end_layout
29394
29395 \begin_layout LyX-Code
29396 Product "$$RotateFront$$ResizeFront
29397 \end_layout
29398
29399 \begin_layout LyX-Code
29400          
29401 \backslash
29402
29403 \backslash
29404 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
29405 \end_layout
29406
29407 \begin_layout LyX-Code
29408          $$ResizeBack$$RotateBack"
29409 \end_layout
29410
29411 \begin_layout LyX-Code
29412 UpdateFormat pdftex
29413 \end_layout
29414
29415 \begin_layout LyX-Code
29416 UpdateResult "$$AbsPath$$Basename.pdftex_t"
29417 \end_layout
29418
29419 \begin_layout LyX-Code
29420 Requirement "graphicx"
29421 \end_layout
29422
29423 \begin_layout LyX-Code
29424 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
29425 \end_layout
29426
29427 \begin_layout LyX-Code
29428 ReferencedFile latex "$$AbsPath$$Basename.pdf"
29429 \end_layout
29430
29431 \begin_layout LyX-Code
29432 FormatEnd
29433 \end_layout
29434
29435 \begin_layout LyX-Code
29436 Format Ascii
29437 \end_layout
29438
29439 \begin_layout LyX-Code
29440 Product "[XFig: $$FName]"
29441 \end_layout
29442
29443 \begin_layout LyX-Code
29444 FormatEnd
29445 \end_layout
29446
29447 \begin_layout LyX-Code
29448 Format DocBook
29449 \end_layout
29450
29451 \begin_layout LyX-Code
29452 Product "<graphic fileref=
29453 \backslash
29454 "$$AbsOrRelPathMaster$$Basename.eps
29455 \backslash
29456 ">
29457 \end_layout
29458
29459 \begin_layout LyX-Code
29460          </graphic>"
29461 \end_layout
29462
29463 \begin_layout LyX-Code
29464 UpdateFormat eps
29465 \end_layout
29466
29467 \begin_layout LyX-Code
29468 UpdateResult "$$AbsPath$$Basename.eps"
29469 \end_layout
29470
29471 \begin_layout LyX-Code
29472 ReferencedFile docbook "$$AbsPath$$Basename.eps"
29473 \end_layout
29474
29475 \begin_layout LyX-Code
29476 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
29477 \end_layout
29478
29479 \begin_layout LyX-Code
29480 FormatEnd
29481 \end_layout
29482
29483 \begin_layout LyX-Code
29484 TemplateEnd
29485 \end_layout
29486
29487 \begin_layout Standard
29488 As you can see, the template is enclosed in 
29489 \begin_inset Flex Code
29490 status collapsed
29491
29492 \begin_layout Plain Layout
29493 Template
29494 \end_layout
29495
29496 \end_inset
29497
29498  \SpecialChar ldots
29499  
29500 \begin_inset Flex Code
29501 status collapsed
29502
29503 \begin_layout Plain Layout
29504 TemplateEnd
29505 \end_layout
29506
29507 \end_inset
29508
29509 .
29510  It contains a header specifying some general settings and, for each supported
29511  primary document file format, a section 
29512 \begin_inset Flex Code
29513 status collapsed
29514
29515 \begin_layout Plain Layout
29516 Format
29517 \end_layout
29518
29519 \end_inset
29520
29521  \SpecialChar ldots
29522  
29523 \begin_inset Flex Code
29524 status collapsed
29525
29526 \begin_layout Plain Layout
29527 FormatEnd
29528 \end_layout
29529
29530 \end_inset
29531
29532 .
29533 \end_layout
29534
29535 \begin_layout Subsection
29536 The template header
29537 \end_layout
29538
29539 \begin_layout Description
29540 \begin_inset Flex Code
29541 status collapsed
29542
29543 \begin_layout Plain Layout
29544 AutomaticProduction
29545 \begin_inset space ~
29546 \end_inset
29547
29548 true|false
29549 \end_layout
29550
29551 \end_inset
29552
29553  Whether the file represented by the template must be generated by \SpecialChar LyX
29554 .
29555  This command must occur exactly once.
29556 \end_layout
29557
29558 \begin_layout Description
29559 \begin_inset Flex Code
29560 status collapsed
29561
29562 \begin_layout Plain Layout
29563 FileFilter
29564 \begin_inset space ~
29565 \end_inset
29566
29567 <pattern>
29568 \end_layout
29569
29570 \end_inset
29571
29572  A glob pattern that is used in the file dialog to filter out the desired
29573  files.
29574  If there is more than one possible file extension (e.
29575 \begin_inset space \thinspace{}
29576 \end_inset
29577
29578 g.
29579 \begin_inset space \space{}
29580 \end_inset
29581
29582 tgif has 
29583 \begin_inset Flex Code
29584 status collapsed
29585
29586 \begin_layout Plain Layout
29587 .obj
29588 \end_layout
29589
29590 \end_inset
29591
29592  and 
29593 \begin_inset Flex Code
29594 status collapsed
29595
29596 \begin_layout Plain Layout
29597 .tgo
29598 \end_layout
29599
29600 \end_inset
29601
29602 ), use something like 
29603 \begin_inset Flex Code
29604 status collapsed
29605
29606 \begin_layout Plain Layout
29607 "*.{obj,tgo}"
29608 \end_layout
29609
29610 \end_inset
29611
29612 .
29613  This command must occur exactly once.
29614 \end_layout
29615
29616 \begin_layout Description
29617 \begin_inset Flex Code
29618 status collapsed
29619
29620 \begin_layout Plain Layout
29621 GuiName
29622 \begin_inset space ~
29623 \end_inset
29624
29625 <guiname>
29626 \end_layout
29627
29628 \end_inset
29629
29630  The text that is displayed on the button.
29631  This command must occur exactly once.
29632 \end_layout
29633
29634 \begin_layout Description
29635 \begin_inset Flex Code
29636 status collapsed
29637
29638 \begin_layout Plain Layout
29639 HelpText
29640 \begin_inset space ~
29641 \end_inset
29642
29643 <text>
29644 \begin_inset space ~
29645 \end_inset
29646
29647 HelpTextEnd
29648 \end_layout
29649
29650 \end_inset
29651
29652  The help text that is used in the External dialog.
29653  Provide enough information to explain to the user just what the template
29654  can provide him with.
29655  This command must occur exactly once.
29656 \end_layout
29657
29658 \begin_layout Description
29659 \begin_inset Flex Code
29660 status collapsed
29661
29662 \begin_layout Plain Layout
29663 InputFormat
29664 \begin_inset space ~
29665 \end_inset
29666
29667 <format>
29668 \end_layout
29669
29670 \end_inset
29671
29672  The file format of the original file.
29673  This must be the name of a format that is known to \SpecialChar LyX
29674  (see 
29675 \begin_inset CommandInset ref
29676 LatexCommand ref
29677 reference "sec:Formats"
29678
29679 \end_inset
29680
29681 ).
29682  Use 
29683 \begin_inset Quotes eld
29684 \end_inset
29685
29686
29687 \begin_inset Flex Code
29688 status collapsed
29689
29690 \begin_layout Plain Layout
29691 *
29692 \end_layout
29693
29694 \end_inset
29695
29696
29697 \begin_inset Quotes erd
29698 \end_inset
29699
29700  if the template can handle original files of more than one format.
29701  \SpecialChar LyX
29702  will attempt to interrogate the file itself in order to deduce its format
29703  in this case.
29704  This command must occur exactly once.
29705 \end_layout
29706
29707 \begin_layout Description
29708 \begin_inset Flex Code
29709 status collapsed
29710
29711 \begin_layout Plain Layout
29712 Template
29713 \begin_inset space ~
29714 \end_inset
29715
29716 <id>
29717 \end_layout
29718
29719 \end_inset
29720
29721  A unique name for the template.
29722  It must not contain substitution macros (see below).
29723 \end_layout
29724
29725 \begin_layout Description
29726 \begin_inset Flex Code
29727 status collapsed
29728
29729 \begin_layout Plain Layout
29730 Transform
29731 \begin_inset space ~
29732 \end_inset
29733
29734 Rotate|Resize|Clip|Extra
29735 \end_layout
29736
29737 \end_inset
29738
29739  This command specifies which transformations are supported by this template.
29740  It may occur zero or more times.
29741  This command enables the corresponding tabs in the external dialog.
29742  Each 
29743 \begin_inset Flex Code
29744 status collapsed
29745
29746 \begin_layout Plain Layout
29747 Transform
29748 \end_layout
29749
29750 \end_inset
29751
29752  command must have either a corresponding 
29753 \begin_inset Flex Code
29754 status collapsed
29755
29756 \begin_layout Plain Layout
29757 TransformCommand
29758 \end_layout
29759
29760 \end_inset
29761
29762  or a 
29763 \begin_inset Flex Code
29764 status collapsed
29765
29766 \begin_layout Plain Layout
29767 TransformOption
29768 \end_layout
29769
29770 \end_inset
29771
29772  command in the 
29773 \begin_inset Flex Code
29774 status collapsed
29775
29776 \begin_layout Plain Layout
29777 Format
29778 \end_layout
29779
29780 \end_inset
29781
29782  section.
29783  Otherwise the transformation will not be supported by that format.
29784 \end_layout
29785
29786 \begin_layout Subsection
29787 The Format section
29788 \end_layout
29789
29790 \begin_layout Description
29791 \begin_inset Flex Code
29792 status collapsed
29793
29794 \begin_layout Plain Layout
29795 Format
29796 \begin_inset space ~
29797 \end_inset
29798
29799 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
29800 \end_layout
29801
29802 \end_inset
29803
29804  The primary document file format that this format definition is for.
29805  Not every template has a sensible representation in all document file formats.
29806  Please define nevertheless a 
29807 \begin_inset Flex Code
29808 status collapsed
29809
29810 \begin_layout Plain Layout
29811 Format
29812 \end_layout
29813
29814 \end_inset
29815
29816  section for all templates.
29817  Use a dummy text when no representation is available.
29818  Then you can at least see a reference to the external material in the exported
29819  document.
29820 \end_layout
29821
29822 \begin_layout Description
29823 \begin_inset Flex Code
29824 status collapsed
29825
29826 \begin_layout Plain Layout
29827 Option
29828 \begin_inset space ~
29829 \end_inset
29830
29831 <name>
29832 \begin_inset space ~
29833 \end_inset
29834
29835 <value>
29836 \end_layout
29837
29838 \end_inset
29839
29840  This command defines an additional macro 
29841 \begin_inset Flex Code
29842 status collapsed
29843
29844 \begin_layout Plain Layout
29845 $$<name>
29846 \end_layout
29847
29848 \end_inset
29849
29850  for substitution in 
29851 \begin_inset Flex Code
29852 status collapsed
29853
29854 \begin_layout Plain Layout
29855 Product
29856 \end_layout
29857
29858 \end_inset
29859
29860 .
29861  
29862 \begin_inset Flex Code
29863 status collapsed
29864
29865 \begin_layout Plain Layout
29866 <value>
29867 \end_layout
29868
29869 \end_inset
29870
29871  itself may contain substitution macros.
29872  The advantage over using 
29873 \begin_inset Flex Code
29874 status collapsed
29875
29876 \begin_layout Plain Layout
29877 <value>
29878 \end_layout
29879
29880 \end_inset
29881
29882  directly in 
29883 \begin_inset Flex Code
29884 status collapsed
29885
29886 \begin_layout Plain Layout
29887 Product
29888 \end_layout
29889
29890 \end_inset
29891
29892  is that the substituted value of 
29893 \begin_inset Flex Code
29894 status collapsed
29895
29896 \begin_layout Plain Layout
29897 $$<name>
29898 \end_layout
29899
29900 \end_inset
29901
29902  is sanitized so that it is a valid optional argument in the document format.
29903  This command may occur zero or more times.
29904 \end_layout
29905
29906 \begin_layout Description
29907 \begin_inset Flex Code
29908 status collapsed
29909
29910 \begin_layout Plain Layout
29911 Product
29912 \begin_inset space ~
29913 \end_inset
29914
29915 <text>
29916 \end_layout
29917
29918 \end_inset
29919
29920  The text that is inserted in the exported document.
29921  This is actually the most important command and can be quite complex.
29922  This command must occur exactly once.
29923 \end_layout
29924
29925 \begin_layout Description
29926 \begin_inset Flex Code
29927 status collapsed
29928
29929 \begin_layout Plain Layout
29930 Preamble
29931 \begin_inset space ~
29932 \end_inset
29933
29934 <name>
29935 \end_layout
29936
29937 \end_inset
29938
29939  This command specifies a preamble snippet that will be included in the
29940  \SpecialChar LaTeX
29941  preamble.
29942  It has to be defined using 
29943 \begin_inset Flex Code
29944 status collapsed
29945
29946 \begin_layout Plain Layout
29947 PreambleDef
29948 \end_layout
29949
29950 \end_inset
29951
29952  \SpecialChar ldots
29953  
29954 \begin_inset Flex Code
29955 status collapsed
29956
29957 \begin_layout Plain Layout
29958 PreambleDefEnd
29959 \end_layout
29960
29961 \end_inset
29962
29963 .
29964  This command may occur zero or more times.
29965 \end_layout
29966
29967 \begin_layout Description
29968 \begin_inset Flex Code
29969 status collapsed
29970
29971 \begin_layout Plain Layout
29972 ReferencedFile
29973 \begin_inset space ~
29974 \end_inset
29975
29976 <format>
29977 \begin_inset space ~
29978 \end_inset
29979
29980 <filename>
29981 \end_layout
29982
29983 \end_inset
29984
29985  This command denotes files that are created by the conversion process and
29986  are needed for a particular export format.
29987  If the filename is relative, it is interpreted relative to the master document.
29988  This command may be given zero or more times.
29989 \end_layout
29990
29991 \begin_layout Description
29992 \begin_inset Flex Code
29993 status collapsed
29994
29995 \begin_layout Plain Layout
29996 Requirement
29997 \begin_inset space ~
29998 \end_inset
29999
30000 <package>
30001 \end_layout
30002
30003 \end_inset
30004
30005  The name of a required \SpecialChar LaTeX
30006  package.
30007  The package is included via 
30008 \begin_inset Flex Code
30009 status collapsed
30010
30011 \begin_layout Plain Layout
30012
30013 \backslash
30014 usepackage{}
30015 \end_layout
30016
30017 \end_inset
30018
30019  in the \SpecialChar LaTeX
30020  preamble.
30021  This command may occur zero or more times.
30022 \end_layout
30023
30024 \begin_layout Description
30025 \begin_inset Flex Code
30026 status collapsed
30027
30028 \begin_layout Plain Layout
30029 TransformCommand
30030 \begin_inset space ~
30031 \end_inset
30032
30033 Rotate
30034 \begin_inset space ~
30035 \end_inset
30036
30037 RotationLatexCommand
30038 \end_layout
30039
30040 \end_inset
30041
30042  This command specifies that the built in \SpecialChar LaTeX
30043  command should be used for rotation.
30044  This command may occur once or not at all.
30045 \end_layout
30046
30047 \begin_layout Description
30048 \begin_inset Flex Code
30049 status collapsed
30050
30051 \begin_layout Plain Layout
30052 TransformCommand
30053 \begin_inset space ~
30054 \end_inset
30055
30056 Resize
30057 \begin_inset space ~
30058 \end_inset
30059
30060 ResizeLatexCommand
30061 \end_layout
30062
30063 \end_inset
30064
30065  This command specifies that the built in \SpecialChar LaTeX
30066  command should be used for resizing.
30067  This command may occur once or not at all.
30068 \end_layout
30069
30070 \begin_layout Description
30071 \begin_inset Flex Code
30072 status collapsed
30073
30074 \begin_layout Plain Layout
30075 TransformOption
30076 \begin_inset space ~
30077 \end_inset
30078
30079 Rotate
30080 \begin_inset space ~
30081 \end_inset
30082
30083 RotationLatexOption
30084 \end_layout
30085
30086 \end_inset
30087
30088  This command specifies that rotation is done via an optional argument.
30089  This command may occur once or not at all.
30090 \end_layout
30091
30092 \begin_layout Description
30093 \begin_inset Flex Code
30094 status collapsed
30095
30096 \begin_layout Plain Layout
30097 TransformOption
30098 \begin_inset space ~
30099 \end_inset
30100
30101 Resize
30102 \begin_inset space ~
30103 \end_inset
30104
30105 ResizeLatexOption
30106 \end_layout
30107
30108 \end_inset
30109
30110  This command specifies that resizing is done via an optional argument.
30111  This command may occur once or not at all.
30112 \end_layout
30113
30114 \begin_layout Description
30115 \begin_inset Flex Code
30116 status collapsed
30117
30118 \begin_layout Plain Layout
30119 TransformOption
30120 \begin_inset space ~
30121 \end_inset
30122
30123 Clip
30124 \begin_inset space ~
30125 \end_inset
30126
30127 ClipLatexOption
30128 \end_layout
30129
30130 \end_inset
30131
30132  This command specifies that clipping is done via an optional argument.
30133  This command may occur once or not at all.
30134 \end_layout
30135
30136 \begin_layout Description
30137 \begin_inset Flex Code
30138 status collapsed
30139
30140 \begin_layout Plain Layout
30141 TransformOption
30142 \begin_inset space ~
30143 \end_inset
30144
30145 Extra
30146 \begin_inset space ~
30147 \end_inset
30148
30149 ExtraLatexOption
30150 \end_layout
30151
30152 \end_inset
30153
30154  This command specifies that an extra optional argument is used.
30155  This command may occur once or not at all.
30156 \end_layout
30157
30158 \begin_layout Description
30159 \begin_inset Flex Code
30160 status collapsed
30161
30162 \begin_layout Plain Layout
30163 UpdateFormat
30164 \begin_inset space ~
30165 \end_inset
30166
30167 <format>
30168 \end_layout
30169
30170 \end_inset
30171
30172  The file format of the converted file.
30173  This must be the name of a format that is known to \SpecialChar LyX
30174  (see the 
30175 \begin_inset Flex Noun
30176 status collapsed
30177
30178 \begin_layout Plain Layout
30179 Tools\SpecialChar menuseparator
30180 Preferences\SpecialChar menuseparator
30181 File Handling\SpecialChar menuseparator
30182 File Format
30183 \end_layout
30184
30185 \end_inset
30186
30187  dialog).
30188  This command must occur exactly once.
30189  If the resulting file format is PDF, you need to specify the format 
30190 \begin_inset Flex Code
30191 status collapsed
30192
30193 \begin_layout Plain Layout
30194 pdf6
30195 \end_layout
30196
30197 \end_inset
30198
30199 .
30200  This is the PDF format used for including graphics.
30201  The other defined PDF formats are for document export.
30202 \end_layout
30203
30204 \begin_layout Description
30205 \begin_inset Flex Code
30206 status collapsed
30207
30208 \begin_layout Plain Layout
30209 UpdateResult
30210 \begin_inset space ~
30211 \end_inset
30212
30213 <filename>
30214 \end_layout
30215
30216 \end_inset
30217
30218  The file name of the converted file.
30219  The file name must be absolute.
30220  This command must occur exactly once.
30221 \end_layout
30222
30223 \begin_layout Subsection
30224 Preamble definitions
30225 \end_layout
30226
30227 \begin_layout Standard
30228 The external template configuration file may contain additional preamble
30229  definitions enclosed by 
30230 \begin_inset Flex Code
30231 status collapsed
30232
30233 \begin_layout Plain Layout
30234 PreambleDef
30235 \end_layout
30236
30237 \end_inset
30238
30239  \SpecialChar ldots
30240  
30241 \begin_inset Flex Code
30242 status collapsed
30243
30244 \begin_layout Plain Layout
30245 PreambleDefEnd
30246 \end_layout
30247
30248 \end_inset
30249
30250 .
30251  They can be used by the templates in the 
30252 \begin_inset Flex Code
30253 status collapsed
30254
30255 \begin_layout Plain Layout
30256 Format
30257 \end_layout
30258
30259 \end_inset
30260
30261  section.
30262 \end_layout
30263
30264 \begin_layout Section
30265 The substitution mechanism
30266 \end_layout
30267
30268 \begin_layout Standard
30269 When the external material facility invokes an external program, it is done
30270  on the basis of a command defined in the template configuration file.
30271  These commands can contain various macros that are expanded before execution.
30272  Execution always take place in the directory of the containing document.
30273 \end_layout
30274
30275 \begin_layout Standard
30276 Also, whenever external material is to be displayed, the name will be produced
30277  by the substitution mechanism, and most other commands in the template
30278  definition support substitution as well.
30279 \end_layout
30280
30281 \begin_layout Standard
30282 The available macros are the following:
30283 \end_layout
30284
30285 \begin_layout Description
30286 \begin_inset Flex Code
30287 status collapsed
30288
30289 \begin_layout Plain Layout
30290 $$AbsOrRelPathMaster
30291 \end_layout
30292
30293 \end_inset
30294
30295  The file path, absolute or relative to the master \SpecialChar LyX
30296  document.
30297 \end_layout
30298
30299 \begin_layout Description
30300 \begin_inset Flex Code
30301 status collapsed
30302
30303 \begin_layout Plain Layout
30304 $$AbsOrRelPathParent
30305 \end_layout
30306
30307 \end_inset
30308
30309  The file path, absolute or relative to the \SpecialChar LyX
30310  document.
30311 \end_layout
30312
30313 \begin_layout Description
30314 \begin_inset Flex Code
30315 status collapsed
30316
30317 \begin_layout Plain Layout
30318 $$AbsPath
30319 \end_layout
30320
30321 \end_inset
30322
30323  The absolute file path.
30324 \end_layout
30325
30326 \begin_layout Description
30327 \begin_inset Flex Code
30328 status collapsed
30329
30330 \begin_layout Plain Layout
30331 $$Basename
30332 \end_layout
30333
30334 \end_inset
30335
30336  The filename without path and without the extension.
30337 \end_layout
30338
30339 \begin_layout Description
30340 \begin_inset Flex Code
30341 status collapsed
30342
30343 \begin_layout Plain Layout
30344 $$Contents(
30345 \begin_inset Quotes eld
30346 \end_inset
30347
30348 filename.ext
30349 \begin_inset Quotes erd
30350 \end_inset
30351
30352 )
30353 \end_layout
30354
30355 \end_inset
30356
30357  This macro will expand to the contents of the file with the name 
30358 \begin_inset Flex Code
30359 status collapsed
30360
30361 \begin_layout Plain Layout
30362 filename.ext
30363 \end_layout
30364
30365 \end_inset
30366
30367 .
30368 \end_layout
30369
30370 \begin_layout Description
30371 \begin_inset Flex Code
30372 status collapsed
30373
30374 \begin_layout Plain Layout
30375 $$Extension
30376 \end_layout
30377
30378 \end_inset
30379
30380  The file extension (including the dot).
30381 \end_layout
30382
30383 \begin_layout Description
30384 \begin_inset Flex Code
30385 status collapsed
30386
30387 \begin_layout Plain Layout
30388 $$pngOrjpg
30389 \end_layout
30390
30391 \end_inset
30392
30393  This will be the string 
30394 \begin_inset Quotes eld
30395 \end_inset
30396
30397 jpg
30398 \begin_inset Quotes erd
30399 \end_inset
30400
30401  if the file is in JPEG format, otherwise it will be the string 
30402 \begin_inset Quotes eld
30403 \end_inset
30404
30405 png
30406 \begin_inset Quotes erd
30407 \end_inset
30408
30409 .
30410  This is useful to avoid uneeded conversions for output formats that support
30411  both PNG and JPEG fomats.
30412  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
30413  output
30414  format.
30415 \end_layout
30416
30417 \begin_layout Description
30418 \begin_inset Flex Code
30419 status collapsed
30420
30421 \begin_layout Plain Layout
30422 $$FName
30423 \end_layout
30424
30425 \end_inset
30426
30427  The filename of the file specified in the external material dialog.
30428  This is either an absolute name, or it is relative to the \SpecialChar LyX
30429  document.
30430 \end_layout
30431
30432 \begin_layout Description
30433 \begin_inset Flex Code
30434 status collapsed
30435
30436 \begin_layout Plain Layout
30437 $$FPath
30438 \end_layout
30439
30440 \end_inset
30441
30442  The path part of 
30443 \begin_inset Flex Code
30444 status collapsed
30445
30446 \begin_layout Plain Layout
30447 $$FName
30448 \end_layout
30449
30450 \end_inset
30451
30452  (absolute name or relative to the \SpecialChar LyX
30453  document).
30454 \end_layout
30455
30456 \begin_layout Description
30457 \begin_inset Flex Code
30458 status collapsed
30459
30460 \begin_layout Plain Layout
30461 $$RelPathMaster
30462 \end_layout
30463
30464 \end_inset
30465
30466  The file path, relative to the master \SpecialChar LyX
30467  document.
30468 \end_layout
30469
30470 \begin_layout Description
30471 \begin_inset Flex Code
30472 status collapsed
30473
30474 \begin_layout Plain Layout
30475 $$RelPathParent
30476 \end_layout
30477
30478 \end_inset
30479
30480  The file path, relative to the \SpecialChar LyX
30481  document.
30482 \end_layout
30483
30484 \begin_layout Description
30485 \begin_inset Flex Code
30486 status collapsed
30487
30488 \begin_layout Plain Layout
30489 $$Sysdir
30490 \end_layout
30491
30492 \end_inset
30493
30494  This macro will expand to the absolute path of the system directory.
30495  This is typically used to point to the various helper scripts that are
30496  bundled with \SpecialChar LyX
30497 .
30498 \end_layout
30499
30500 \begin_layout Description
30501 \begin_inset Flex Code
30502 status collapsed
30503
30504 \begin_layout Plain Layout
30505 $$Tempname
30506 \end_layout
30507
30508 \end_inset
30509
30510  A name and full path to a temporary file which will be automatically deleted
30511  whenever the containing document is closed, or the external material insertion
30512  deleted.
30513 \end_layout
30514
30515 \begin_layout Standard
30516 All path macros contain a trailing directory separator, so you can construct
30517  e.
30518 \begin_inset space \thinspace{}
30519 \end_inset
30520
30521 g.
30522 \begin_inset space \space{}
30523 \end_inset
30524
30525 the absolute filename with 
30526 \begin_inset Flex Code
30527 status collapsed
30528
30529 \begin_layout Plain Layout
30530 $$AbsPath$$Basename$$Extension
30531 \end_layout
30532
30533 \end_inset
30534
30535 .
30536 \end_layout
30537
30538 \begin_layout Standard
30539 The macros above are substituted in all commands unless otherwise noted.
30540  The command 
30541 \begin_inset Flex Code
30542 status collapsed
30543
30544 \begin_layout Plain Layout
30545 Product
30546 \end_layout
30547
30548 \end_inset
30549
30550  supports additionally the following substitutions if they are enabled by
30551  the 
30552 \begin_inset Flex Code
30553 status collapsed
30554
30555 \begin_layout Plain Layout
30556 Transform
30557 \end_layout
30558
30559 \end_inset
30560
30561  and 
30562 \begin_inset Flex Code
30563 status collapsed
30564
30565 \begin_layout Plain Layout
30566 TransformCommand
30567 \end_layout
30568
30569 \end_inset
30570
30571  commands:
30572 \end_layout
30573
30574 \begin_layout Description
30575 \begin_inset Flex Code
30576 status collapsed
30577
30578 \begin_layout Plain Layout
30579 $$ResizeFront
30580 \end_layout
30581
30582 \end_inset
30583
30584  The front part of the resize command.
30585 \end_layout
30586
30587 \begin_layout Description
30588 \begin_inset Flex Code
30589 status collapsed
30590
30591 \begin_layout Plain Layout
30592 $$ResizeBack
30593 \end_layout
30594
30595 \end_inset
30596
30597  The back part of the resize command.
30598 \end_layout
30599
30600 \begin_layout Description
30601 \begin_inset Flex Code
30602 status collapsed
30603
30604 \begin_layout Plain Layout
30605 $$RotateFront
30606 \end_layout
30607
30608 \end_inset
30609
30610  The front part of the rotation command.
30611 \end_layout
30612
30613 \begin_layout Description
30614 \begin_inset Flex Code
30615 status collapsed
30616
30617 \begin_layout Plain Layout
30618 $$RotateBack
30619 \end_layout
30620
30621 \end_inset
30622
30623  The back part of the rotation command.
30624 \end_layout
30625
30626 \begin_layout Standard
30627 The value string of the 
30628 \begin_inset Flex Code
30629 status collapsed
30630
30631 \begin_layout Plain Layout
30632 Option
30633 \end_layout
30634
30635 \end_inset
30636
30637  command supports additionally the following substitutions if they are enabled
30638  by the 
30639 \begin_inset Flex Code
30640 status collapsed
30641
30642 \begin_layout Plain Layout
30643 Transform
30644 \end_layout
30645
30646 \end_inset
30647
30648  and 
30649 \begin_inset Flex Code
30650 status collapsed
30651
30652 \begin_layout Plain Layout
30653 TransformOption
30654 \end_layout
30655
30656 \end_inset
30657
30658  commands:
30659 \end_layout
30660
30661 \begin_layout Description
30662 \begin_inset Flex Code
30663 status collapsed
30664
30665 \begin_layout Plain Layout
30666 $$Clip
30667 \end_layout
30668
30669 \end_inset
30670
30671  The clip option.
30672 \end_layout
30673
30674 \begin_layout Description
30675 \begin_inset Flex Code
30676 status collapsed
30677
30678 \begin_layout Plain Layout
30679 $$Extra
30680 \end_layout
30681
30682 \end_inset
30683
30684  The extra option.
30685 \end_layout
30686
30687 \begin_layout Description
30688 \begin_inset Flex Code
30689 status collapsed
30690
30691 \begin_layout Plain Layout
30692 $$Resize
30693 \end_layout
30694
30695 \end_inset
30696
30697  The resize option.
30698 \end_layout
30699
30700 \begin_layout Description
30701 \begin_inset Flex Code
30702 status collapsed
30703
30704 \begin_layout Plain Layout
30705 $$Rotate
30706 \end_layout
30707
30708 \end_inset
30709
30710  The rotation option.
30711 \end_layout
30712
30713 \begin_layout Standard
30714 You may ask why there are so many path macros.
30715  There are mainly two reasons:
30716 \end_layout
30717
30718 \begin_layout Enumerate
30719 Relative and absolute file names should remain relative or absolute, respectivel
30720 y.
30721  Users may have reasons to prefer either form.
30722  Relative names are useful for portable documents that should work on different
30723  machines, for example.
30724  Absolute names may be required by some programs.
30725 \end_layout
30726
30727 \begin_layout Enumerate
30728 \SpecialChar LaTeX
30729  treats relative file names differently than \SpecialChar LyX
30730  and other programs in nested
30731  included files.
30732  For \SpecialChar LyX
30733 , a relative file name is always relative to the document that contains
30734  the file name.
30735  For \SpecialChar LaTeX
30736 , it is always relative to the master document.
30737  These two definitions are identical if you have only one document, but
30738  differ if you have a master document that includes part documents.
30739  That means that relative filenames must be transformed when presented to
30740  \SpecialChar LaTeX
30741 .
30742  Fortunately \SpecialChar LyX
30743  does this automatically for you if you choose the right macros.
30744 \end_layout
30745
30746 \begin_layout Standard
30747 So which path macro should be used in new template definitions? The rule
30748  is not difficult:
30749 \end_layout
30750
30751 \begin_layout Itemize
30752 Use 
30753 \begin_inset Flex Code
30754 status collapsed
30755
30756 \begin_layout Plain Layout
30757 $$AbsPath
30758 \end_layout
30759
30760 \end_inset
30761
30762  if an absolute path is required.
30763 \end_layout
30764
30765 \begin_layout Itemize
30766 Use 
30767 \begin_inset Flex Code
30768 status collapsed
30769
30770 \begin_layout Plain Layout
30771 $$AbsOrRelPathMaster
30772 \end_layout
30773
30774 \end_inset
30775
30776  if the substituted string is some kind of \SpecialChar LaTeX
30777  input.
30778 \end_layout
30779
30780 \begin_layout Itemize
30781 Else use 
30782 \begin_inset Flex Code
30783 status collapsed
30784
30785 \begin_layout Plain Layout
30786 $$AbsOrRelPathParent
30787 \end_layout
30788
30789 \end_inset
30790
30791  in order to preserve the user's choice.
30792 \end_layout
30793
30794 \begin_layout Standard
30795 There are special cases where this rule does not work and e.
30796 \begin_inset space \thinspace{}
30797 \end_inset
30798
30799 g.
30800 \begin_inset space \space{}
30801 \end_inset
30802
30803 relative names are needed, but normally it will work just fine.
30804  One example for such a case is the command 
30805 \begin_inset Flex Code
30806 status collapsed
30807
30808 \begin_layout Plain Layout
30809 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
30810 \end_layout
30811
30812 \end_inset
30813
30814  in the XFig template above: We can't use the absolute name because the
30815  copier for 
30816 \begin_inset Flex Code
30817 status collapsed
30818
30819 \begin_layout Plain Layout
30820 .pstex_t
30821 \end_layout
30822
30823 \end_inset
30824
30825  files needs the relative name in order to rewrite the file content.
30826 \end_layout
30827
30828 \begin_layout Section
30829 Security discussion
30830 \begin_inset CommandInset label
30831 LatexCommand label
30832 name "sec:Security-discussion"
30833
30834 \end_inset
30835
30836
30837 \end_layout
30838
30839 \begin_layout Standard
30840 The external material feature interfaces with a lot of external programs
30841  and does so automatically, so we have to consider the security implications
30842  of this.
30843  In particular, since you have the option of including your own filenames
30844  and/or parameter strings and those are expanded into a command, it seems
30845  that it would be possible to create a malicious document which executes
30846  arbitrary commands when a user views or prints the document.
30847  This is something we definitely want to avoid.
30848 \end_layout
30849
30850 \begin_layout Standard
30851 However, since the external program commands are specified in the template
30852  configuration file only, there are no security issues if \SpecialChar LyX
30853  is properly configure
30854 d with safe templates only.
30855  This is so because the external programs are invoked with the 
30856 \begin_inset Flex Code
30857 status collapsed
30858
30859 \begin_layout Plain Layout
30860 execvp
30861 \end_layout
30862
30863 \end_inset
30864
30865 -system call rather than the 
30866 \begin_inset Flex Code
30867 status collapsed
30868
30869 \begin_layout Plain Layout
30870 system
30871 \end_layout
30872
30873 \end_inset
30874
30875  system-call, so it's not possible to execute arbitrary commands from the
30876  filename or parameter section via the shell.
30877 \end_layout
30878
30879 \begin_layout Standard
30880 This also implies that you are restricted in what command strings you can
30881  use in the external material templates.
30882  In particular, pipes and redirection are not readily available.
30883  This has to be so if \SpecialChar LyX
30884  should remain safe.
30885  If you want to use some of the shell features, you should write a safe
30886  script to do this in a controlled manner, and then invoke the script from
30887  the command string.
30888  
30889 \end_layout
30890
30891 \begin_layout Standard
30892 It is possible to design a template that interacts directly with the shell,
30893  but since this would allow a malicious user to execute arbitrary commands
30894  by writing clever filenames and/or parameters, we generally recommend that
30895  you only use safe scripts that work with the 
30896 \begin_inset Flex Code
30897 status collapsed
30898
30899 \begin_layout Plain Layout
30900 execvp
30901 \end_layout
30902
30903 \end_inset
30904
30905  system call in a controlled manner.
30906  Of course, for use in a controlled environment, it can be tempting to just
30907  fall back to use ordinary shell scripts.
30908  If you do so, be aware that you 
30909 \emph on
30910 will
30911 \emph default
30912  provide an easily exploitable security hole in your system.
30913  Of course it stands to reason that such unsafe templates will never be
30914  included in the standard \SpecialChar LyX
30915  distribution, although we do encourage people
30916  to submit new templates in the open source tradition.
30917  But \SpecialChar LyX
30918  as shipped from the official distribution channels will never have
30919  unsafe templates.
30920 \end_layout
30921
30922 \begin_layout Standard
30923 Including external material provides a lot of power, and you have to be
30924  careful not to introduce security hazards with this power.
30925  A subtle error in a single line in an innocent looking script can open
30926  the door to huge security problems.
30927  So if you do not fully understand the issues, we recommend that you consult
30928  a knowledgeable security professional or the \SpecialChar LyX
30929  development team if you have
30930  any questions about whether a given template is safe or not.
30931  And do this before you use it in an uncontrolled environment.
30932 \end_layout
30933
30934 \begin_layout Chapter
30935 \start_of_appendix
30936 List of supported \SpecialChar LyX
30937  functions to be used in layouts
30938 \begin_inset CommandInset label
30939 LatexCommand label
30940 name "chap:List-of-functions"
30941
30942 \end_inset
30943
30944
30945 \end_layout
30946
30947 \begin_layout Standard
30948 \align center
30949 \begin_inset Tabular
30950 <lyxtabular version="3" rows="11" columns="8">
30951 <features tabularvalignment="middle">
30952 <column alignment="left" valignment="top">
30953 <column alignment="left" valignment="top">
30954 <column alignment="left" valignment="top">
30955 <column alignment="left" valignment="top">
30956 <column alignment="left" valignment="top">
30957 <column alignment="left" valignment="top">
30958 <column alignment="left" valignment="top">
30959 <column alignment="left" valignment="top">
30960 <row>
30961 <cell alignment="left" valignment="top" usebox="none">
30962 \begin_inset Text
30963
30964 \begin_layout Plain Layout
30965 accents
30966 \end_layout
30967
30968 \end_inset
30969 </cell>
30970 <cell alignment="left" valignment="top" usebox="none">
30971 \begin_inset Text
30972
30973 \begin_layout Plain Layout
30974 booktabs
30975 \end_layout
30976
30977 \end_inset
30978 </cell>
30979 <cell alignment="left" valignment="top" usebox="none">
30980 \begin_inset Text
30981
30982 \begin_layout Plain Layout
30983 feyn
30984 \end_layout
30985
30986 \end_inset
30987 </cell>
30988 <cell alignment="left" valignment="top" usebox="none">
30989 \begin_inset Text
30990
30991 \begin_layout Plain Layout
30992 listings
30993 \end_layout
30994
30995 \end_inset
30996 </cell>
30997 <cell alignment="center" valignment="top" usebox="none">
30998 \begin_inset Text
30999
31000 \begin_layout Plain Layout
31001 natbib
31002 \end_layout
31003
31004 \end_inset
31005 </cell>
31006 <cell alignment="center" valignment="top" usebox="none">
31007 \begin_inset Text
31008
31009 \begin_layout Plain Layout
31010 rotfloat
31011 \end_layout
31012
31013 \end_inset
31014 </cell>
31015 <cell alignment="center" valignment="top" usebox="none">
31016 \begin_inset Text
31017
31018 \begin_layout Plain Layout
31019 tfrupee
31020 \end_layout
31021
31022 \end_inset
31023 </cell>
31024 <cell alignment="center" valignment="top" usebox="none">
31025 \begin_inset Text
31026
31027 \begin_layout Plain Layout
31028 wasysym
31029 \end_layout
31030
31031 \end_inset
31032 </cell>
31033 </row>
31034 <row>
31035 <cell alignment="left" valignment="top" usebox="none">
31036 \begin_inset Text
31037
31038 \begin_layout Plain Layout
31039 amsbsy
31040 \end_layout
31041
31042 \end_inset
31043 </cell>
31044 <cell alignment="left" valignment="top" usebox="none">
31045 \begin_inset Text
31046
31047 \begin_layout Plain Layout
31048 calc
31049 \end_layout
31050
31051 \end_inset
31052 </cell>
31053 <cell alignment="left" valignment="top" usebox="none">
31054 \begin_inset Text
31055
31056 \begin_layout Plain Layout
31057 fixltx2e
31058 \end_layout
31059
31060 \end_inset
31061 </cell>
31062 <cell alignment="left" valignment="top" usebox="none">
31063 \begin_inset Text
31064
31065 \begin_layout Plain Layout
31066 longtable
31067 \end_layout
31068
31069 \end_inset
31070 </cell>
31071 <cell alignment="center" valignment="top" usebox="none">
31072 \begin_inset Text
31073
31074 \begin_layout Plain Layout
31075 nomencl
31076 \end_layout
31077
31078 \end_inset
31079 </cell>
31080 <cell alignment="center" valignment="top" usebox="none">
31081 \begin_inset Text
31082
31083 \begin_layout Plain Layout
31084 rsphrase
31085 \end_layout
31086
31087 \end_inset
31088 </cell>
31089 <cell alignment="center" valignment="top" usebox="none">
31090 \begin_inset Text
31091
31092 \begin_layout Plain Layout
31093 tipa
31094 \end_layout
31095
31096 \end_inset
31097 </cell>
31098 <cell alignment="center" valignment="top" usebox="none">
31099 \begin_inset Text
31100
31101 \begin_layout Plain Layout
31102 wrapfig
31103 \end_layout
31104
31105 \end_inset
31106 </cell>
31107 </row>
31108 <row>
31109 <cell alignment="left" valignment="top" usebox="none">
31110 \begin_inset Text
31111
31112 \begin_layout Plain Layout
31113 amscd
31114 \end_layout
31115
31116 \end_inset
31117 </cell>
31118 <cell alignment="left" valignment="top" usebox="none">
31119 \begin_inset Text
31120
31121 \begin_layout Plain Layout
31122 CJK
31123 \end_layout
31124
31125 \end_inset
31126 </cell>
31127 <cell alignment="left" valignment="top" usebox="none">
31128 \begin_inset Text
31129
31130 \begin_layout Plain Layout
31131 float
31132 \end_layout
31133
31134 \end_inset
31135 </cell>
31136 <cell alignment="left" valignment="top" usebox="none">
31137 \begin_inset Text
31138
31139 \begin_layout Plain Layout
31140 lyxskak
31141 \end_layout
31142
31143 \end_inset
31144 </cell>
31145 <cell alignment="center" valignment="top" usebox="none">
31146 \begin_inset Text
31147
31148 \begin_layout Plain Layout
31149 pdfcolmk
31150 \end_layout
31151
31152 \end_inset
31153 </cell>
31154 <cell alignment="center" valignment="top" usebox="none">
31155 \begin_inset Text
31156
31157 \begin_layout Plain Layout
31158 setspace
31159 \end_layout
31160
31161 \end_inset
31162 </cell>
31163 <cell alignment="center" valignment="top" usebox="none">
31164 \begin_inset Text
31165
31166 \begin_layout Plain Layout
31167 tipx
31168 \end_layout
31169
31170 \end_inset
31171 </cell>
31172 <cell alignment="center" valignment="top" usebox="none">
31173 \begin_inset Text
31174
31175 \begin_layout Plain Layout
31176 xargs
31177 \end_layout
31178
31179 \end_inset
31180 </cell>
31181 </row>
31182 <row>
31183 <cell alignment="left" valignment="top" usebox="none">
31184 \begin_inset Text
31185
31186 \begin_layout Plain Layout
31187 amsmath
31188 \end_layout
31189
31190 \end_inset
31191 </cell>
31192 <cell alignment="left" valignment="top" usebox="none">
31193 \begin_inset Text
31194
31195 \begin_layout Plain Layout
31196 color
31197 \end_layout
31198
31199 \end_inset
31200 </cell>
31201 <cell alignment="left" valignment="top" usebox="none">
31202 \begin_inset Text
31203
31204 \begin_layout Plain Layout
31205 framed
31206 \end_layout
31207
31208 \end_inset
31209 </cell>
31210 <cell alignment="left" valignment="top" usebox="none">
31211 \begin_inset Text
31212
31213 \begin_layout Plain Layout
31214 makeidx
31215 \end_layout
31216
31217 \end_inset
31218 </cell>
31219 <cell alignment="center" valignment="top" usebox="none">
31220 \begin_inset Text
31221
31222 \begin_layout Plain Layout
31223 pdfpages
31224 \end_layout
31225
31226 \end_inset
31227 </cell>
31228 <cell alignment="center" valignment="top" usebox="none">
31229 \begin_inset Text
31230
31231 \begin_layout Plain Layout
31232 shapepar
31233 \end_layout
31234
31235 \end_inset
31236 </cell>
31237 <cell alignment="center" valignment="top" usebox="none">
31238 \begin_inset Text
31239
31240 \begin_layout Plain Layout
31241 tone
31242 \end_layout
31243
31244 \end_inset
31245 </cell>
31246 <cell alignment="center" valignment="top" usebox="none">
31247 \begin_inset Text
31248
31249 \begin_layout Plain Layout
31250 xcolor
31251 \end_layout
31252
31253 \end_inset
31254 </cell>
31255 </row>
31256 <row>
31257 <cell alignment="left" valignment="top" usebox="none">
31258 \begin_inset Text
31259
31260 \begin_layout Plain Layout
31261 amssymb
31262 \end_layout
31263
31264 \end_inset
31265 </cell>
31266 <cell alignment="left" valignment="top" usebox="none">
31267 \begin_inset Text
31268
31269 \begin_layout Plain Layout
31270 covington
31271 \end_layout
31272
31273 \end_inset
31274 </cell>
31275 <cell alignment="left" valignment="top" usebox="none">
31276 \begin_inset Text
31277
31278 \begin_layout Plain Layout
31279 graphicx
31280 \end_layout
31281
31282 \end_inset
31283 </cell>
31284 <cell alignment="left" valignment="top" usebox="none">
31285 \begin_inset Text
31286
31287 \begin_layout Plain Layout
31288 marvosym
31289 \end_layout
31290
31291 \end_inset
31292 </cell>
31293 <cell alignment="center" valignment="top" usebox="none">
31294 \begin_inset Text
31295
31296 \begin_layout Plain Layout
31297 pifont
31298 \end_layout
31299
31300 \end_inset
31301 </cell>
31302 <cell alignment="center" valignment="top" usebox="none">
31303 \begin_inset Text
31304
31305 \begin_layout Plain Layout
31306 slashed
31307 \end_layout
31308
31309 \end_inset
31310 </cell>
31311 <cell alignment="center" valignment="top" usebox="none">
31312 \begin_inset Text
31313
31314 \begin_layout Plain Layout
31315 txfonts
31316 \end_layout
31317
31318 \end_inset
31319 </cell>
31320 <cell alignment="center" valignment="top" usebox="none">
31321 \begin_inset Text
31322
31323 \begin_layout Plain Layout
31324 xy
31325 \end_layout
31326
31327 \end_inset
31328 </cell>
31329 </row>
31330 <row>
31331 <cell alignment="left" valignment="top" usebox="none">
31332 \begin_inset Text
31333
31334 \begin_layout Plain Layout
31335 amstext
31336 \end_layout
31337
31338 \end_inset
31339 </cell>
31340 <cell alignment="left" valignment="top" usebox="none">
31341 \begin_inset Text
31342
31343 \begin_layout Plain Layout
31344 csquotes
31345 \end_layout
31346
31347 \end_inset
31348 </cell>
31349 <cell alignment="left" valignment="top" usebox="none">
31350 \begin_inset Text
31351
31352 \begin_layout Plain Layout
31353 hhline
31354 \end_layout
31355
31356 \end_inset
31357 </cell>
31358 <cell alignment="left" valignment="top" usebox="none">
31359 \begin_inset Text
31360
31361 \begin_layout Plain Layout
31362 mathdesign
31363 \end_layout
31364
31365 \end_inset
31366 </cell>
31367 <cell alignment="center" valignment="top" usebox="none">
31368 \begin_inset Text
31369
31370 \begin_layout Plain Layout
31371 pmboxdraw
31372 \end_layout
31373
31374 \end_inset
31375 </cell>
31376 <cell alignment="center" valignment="top" usebox="none">
31377 \begin_inset Text
31378
31379 \begin_layout Plain Layout
31380 soul
31381 \end_layout
31382
31383 \end_inset
31384 </cell>
31385 <cell alignment="center" valignment="top" usebox="none">
31386 \begin_inset Text
31387
31388 \begin_layout Plain Layout
31389 ulem
31390 \end_layout
31391
31392 \end_inset
31393 </cell>
31394 <cell alignment="center" valignment="top" usebox="none">
31395 \begin_inset Text
31396
31397 \begin_layout Plain Layout
31398 yhmath
31399 \end_layout
31400
31401 \end_inset
31402 </cell>
31403 </row>
31404 <row>
31405 <cell alignment="left" valignment="top" usebox="none">
31406 \begin_inset Text
31407
31408 \begin_layout Plain Layout
31409 amsthm
31410 \end_layout
31411
31412 \end_inset
31413 </cell>
31414 <cell alignment="left" valignment="top" usebox="none">
31415 \begin_inset Text
31416
31417 \begin_layout Plain Layout
31418 dvipost
31419 \end_layout
31420
31421 \end_inset
31422 </cell>
31423 <cell alignment="left" valignment="top" usebox="none">
31424 \begin_inset Text
31425
31426 \begin_layout Plain Layout
31427 hyperref
31428 \end_layout
31429
31430 \end_inset
31431 </cell>
31432 <cell alignment="left" valignment="top" usebox="none">
31433 \begin_inset Text
31434
31435 \begin_layout Plain Layout
31436 mathdots
31437 \end_layout
31438
31439 \end_inset
31440 </cell>
31441 <cell alignment="center" valignment="top" usebox="none">
31442 \begin_inset Text
31443
31444 \begin_layout Plain Layout
31445 polyglossia
31446 \end_layout
31447
31448 \end_inset
31449 </cell>
31450 <cell alignment="center" valignment="top" usebox="none">
31451 \begin_inset Text
31452
31453 \begin_layout Plain Layout
31454 splitidx
31455 \end_layout
31456
31457 \end_inset
31458 </cell>
31459 <cell alignment="center" valignment="top" usebox="none">
31460 \begin_inset Text
31461
31462 \begin_layout Plain Layout
31463 undertilde
31464 \end_layout
31465
31466 \end_inset
31467 </cell>
31468 <cell alignment="center" valignment="top" usebox="none">
31469 \begin_inset Text
31470
31471 \begin_layout Plain Layout
31472
31473 \end_layout
31474
31475 \end_inset
31476 </cell>
31477 </row>
31478 <row>
31479 <cell alignment="left" valignment="top" usebox="none">
31480 \begin_inset Text
31481
31482 \begin_layout Plain Layout
31483 array
31484 \end_layout
31485
31486 \end_inset
31487 </cell>
31488 <cell alignment="left" valignment="top" usebox="none">
31489 \begin_inset Text
31490
31491 \begin_layout Plain Layout
31492 endnotes
31493 \end_layout
31494
31495 \end_inset
31496 </cell>
31497 <cell alignment="left" valignment="top" usebox="none">
31498 \begin_inset Text
31499
31500 \begin_layout Plain Layout
31501 ifsym
31502 \end_layout
31503
31504 \end_inset
31505 </cell>
31506 <cell alignment="left" valignment="top" usebox="none">
31507 \begin_inset Text
31508
31509 \begin_layout Plain Layout
31510 mathrsfs
31511 \end_layout
31512
31513 \end_inset
31514 </cell>
31515 <cell alignment="center" valignment="top" usebox="none">
31516 \begin_inset Text
31517
31518 \begin_layout Plain Layout
31519 prettyref
31520 \end_layout
31521
31522 \end_inset
31523 </cell>
31524 <cell alignment="center" valignment="top" usebox="none">
31525 \begin_inset Text
31526
31527 \begin_layout Plain Layout
31528 subfig
31529 \end_layout
31530
31531 \end_inset
31532 </cell>
31533 <cell alignment="center" valignment="top" usebox="none">
31534 \begin_inset Text
31535
31536 \begin_layout Plain Layout
31537 units
31538 \end_layout
31539
31540 \end_inset
31541 </cell>
31542 <cell alignment="center" valignment="top" usebox="none">
31543 \begin_inset Text
31544
31545 \begin_layout Plain Layout
31546
31547 \end_layout
31548
31549 \end_inset
31550 </cell>
31551 </row>
31552 <row>
31553 <cell alignment="left" valignment="top" usebox="none">
31554 \begin_inset Text
31555
31556 \begin_layout Plain Layout
31557 ascii
31558 \end_layout
31559
31560 \end_inset
31561 </cell>
31562 <cell alignment="left" valignment="top" usebox="none">
31563 \begin_inset Text
31564
31565 \begin_layout Plain Layout
31566 enumitem
31567 \end_layout
31568
31569 \end_inset
31570 </cell>
31571 <cell alignment="left" valignment="top" usebox="none">
31572 \begin_inset Text
31573
31574 \begin_layout Plain Layout
31575 ifthen
31576 \end_layout
31577
31578 \end_inset
31579 </cell>
31580 <cell alignment="left" valignment="top" usebox="none">
31581 \begin_inset Text
31582
31583 \begin_layout Plain Layout
31584 mhchem
31585 \end_layout
31586
31587 \end_inset
31588 </cell>
31589 <cell alignment="center" valignment="top" usebox="none">
31590 \begin_inset Text
31591
31592 \begin_layout Plain Layout
31593 pxfonts
31594 \end_layout
31595
31596 \end_inset
31597 </cell>
31598 <cell alignment="center" valignment="top" usebox="none">
31599 \begin_inset Text
31600
31601 \begin_layout Plain Layout
31602 subscript
31603 \end_layout
31604
31605 \end_inset
31606 </cell>
31607 <cell alignment="center" valignment="top" usebox="none">
31608 \begin_inset Text
31609
31610 \begin_layout Plain Layout
31611 url
31612 \end_layout
31613
31614 \end_inset
31615 </cell>
31616 <cell alignment="center" valignment="top" usebox="none">
31617 \begin_inset Text
31618
31619 \begin_layout Plain Layout
31620
31621 \end_layout
31622
31623 \end_inset
31624 </cell>
31625 </row>
31626 <row>
31627 <cell alignment="left" valignment="top" usebox="none">
31628 \begin_inset Text
31629
31630 \begin_layout Plain Layout
31631 bbding
31632 \end_layout
31633
31634 \end_inset
31635 </cell>
31636 <cell alignment="left" valignment="top" usebox="none">
31637 \begin_inset Text
31638
31639 \begin_layout Plain Layout
31640 esint
31641 \end_layout
31642
31643 \end_inset
31644 </cell>
31645 <cell alignment="left" valignment="top" usebox="none">
31646 \begin_inset Text
31647
31648 \begin_layout Plain Layout
31649 jurabib
31650 \end_layout
31651
31652 \end_inset
31653 </cell>
31654 <cell alignment="left" valignment="top" usebox="none">
31655 \begin_inset Text
31656
31657 \begin_layout Plain Layout
31658 multicol
31659 \end_layout
31660
31661 \end_inset
31662 </cell>
31663 <cell alignment="center" valignment="top" usebox="none">
31664 \begin_inset Text
31665
31666 \begin_layout Plain Layout
31667 refstyle
31668 \end_layout
31669
31670 \end_inset
31671 </cell>
31672 <cell alignment="center" valignment="top" usebox="none">
31673 \begin_inset Text
31674
31675 \begin_layout Plain Layout
31676 textcomp
31677 \end_layout
31678
31679 \end_inset
31680 </cell>
31681 <cell alignment="center" valignment="top" usebox="none">
31682 \begin_inset Text
31683
31684 \begin_layout Plain Layout
31685 varioref
31686 \end_layout
31687
31688 \end_inset
31689 </cell>
31690 <cell alignment="center" valignment="top" usebox="none">
31691 \begin_inset Text
31692
31693 \begin_layout Plain Layout
31694
31695 \end_layout
31696
31697 \end_inset
31698 </cell>
31699 </row>
31700 <row>
31701 <cell alignment="center" valignment="top" usebox="none">
31702 \begin_inset Text
31703
31704 \begin_layout Plain Layout
31705 bm
31706 \end_layout
31707
31708 \end_inset
31709 </cell>
31710 <cell alignment="center" valignment="top" usebox="none">
31711 \begin_inset Text
31712
31713 \begin_layout Plain Layout
31714 fancybox
31715 \end_layout
31716
31717 \end_inset
31718 </cell>
31719 <cell alignment="center" valignment="top" usebox="none">
31720 \begin_inset Text
31721
31722 \begin_layout Plain Layout
31723 latexsym
31724 \end_layout
31725
31726 \end_inset
31727 </cell>
31728 <cell alignment="center" valignment="top" usebox="none">
31729 \begin_inset Text
31730
31731 \begin_layout Plain Layout
31732 multirow
31733 \end_layout
31734
31735 \end_inset
31736 </cell>
31737 <cell alignment="center" valignment="top" usebox="none">
31738 \begin_inset Text
31739
31740 \begin_layout Plain Layout
31741 rotating
31742 \end_layout
31743
31744 \end_inset
31745 </cell>
31746 <cell alignment="center" valignment="top" usebox="none">
31747 \begin_inset Text
31748
31749 \begin_layout Plain Layout
31750 textgreek
31751 \end_layout
31752
31753 \end_inset
31754 </cell>
31755 <cell alignment="center" valignment="top" usebox="none">
31756 \begin_inset Text
31757
31758 \begin_layout Plain Layout
31759 verbatim
31760 \end_layout
31761
31762 \end_inset
31763 </cell>
31764 <cell alignment="center" valignment="top" usebox="none">
31765 \begin_inset Text
31766
31767 \begin_layout Plain Layout
31768
31769 \end_layout
31770
31771 \end_inset
31772 </cell>
31773 </row>
31774 </lyxtabular>
31775
31776 \end_inset
31777
31778
31779 \end_layout
31780
31781 \begin_layout Chapter
31782 Names of available colors to be used in layouts
31783 \begin_inset CommandInset label
31784 LatexCommand label
31785 name "chap:Names-of-colors"
31786
31787 \end_inset
31788
31789
31790 \end_layout
31791
31792 \begin_layout Standard
31793 The colors listed below are the standard colors and those that you can adjust
31794  in the \SpecialChar LyX
31795  preferences.
31796 \end_layout
31797
31798 \begin_layout Section
31799 Color functions
31800 \end_layout
31801
31802 \begin_layout Standard
31803 The following are no real colors, but rather act on color definitions:
31804 \end_layout
31805
31806 \begin_layout Description
31807 ignore The color is ignored
31808 \end_layout
31809
31810 \begin_layout Description
31811 inherit The color is inherited
31812 \end_layout
31813
31814 \begin_layout Description
31815 none
31816 \family roman
31817 \series medium
31818 \shape up
31819 \size normal
31820 \emph off
31821 \bar no
31822 \strikeout off
31823 \uuline off
31824 \uwave off
31825 \noun off
31826 \color none
31827  No particular color – clear or default
31828 \end_layout
31829
31830 \begin_layout Section
31831 Static colors
31832 \end_layout
31833
31834 \begin_layout Standard
31835 These are fixed colors that cannot be customized:
31836 \end_layout
31837
31838 \begin_layout Description
31839 black
31840 \end_layout
31841
31842 \begin_layout Description
31843 white
31844 \end_layout
31845
31846 \begin_layout Description
31847 blue
31848 \end_layout
31849
31850 \begin_layout Description
31851 brown
31852 \end_layout
31853
31854 \begin_layout Description
31855 cyan
31856 \end_layout
31857
31858 \begin_layout Description
31859 darkgray
31860 \end_layout
31861
31862 \begin_layout Description
31863 gray
31864 \end_layout
31865
31866 \begin_layout Description
31867 green
31868 \end_layout
31869
31870 \begin_layout Description
31871 lightgray
31872 \end_layout
31873
31874 \begin_layout Description
31875 lime
31876 \end_layout
31877
31878 \begin_layout Description
31879 magenta
31880 \end_layout
31881
31882 \begin_layout Description
31883 olive
31884 \end_layout
31885
31886 \begin_layout Description
31887 orange
31888 \end_layout
31889
31890 \begin_layout Description
31891 pink
31892 \end_layout
31893
31894 \begin_layout Description
31895 purple
31896 \end_layout
31897
31898 \begin_layout Description
31899 red
31900 \end_layout
31901
31902 \begin_layout Description
31903 teal
31904 \end_layout
31905
31906 \begin_layout Description
31907 violet
31908 \end_layout
31909
31910 \begin_layout Description
31911 yellow
31912 \end_layout
31913
31914 \begin_layout Section
31915 Dynamic colors
31916 \end_layout
31917
31918 \begin_layout Standard
31919 These are the colors allocated to specific elements in 
31920 \begin_inset Info
31921 type  "menu"
31922 arg   "dialog-show prefs"
31923 \end_inset
31924
31925 :
31926 \end_layout
31927
31928 \begin_layout Description
31929 added_space Added space color
31930 \end_layout
31931
31932 \begin_layout Description
31933 addedtext Added text color
31934 \end_layout
31935
31936 \begin_layout Description
31937 appendix Appendix marker color
31938 \end_layout
31939
31940 \begin_layout Description
31941 background Background color
31942 \end_layout
31943
31944 \begin_layout Description
31945 bottomarea Bottom area color
31946 \end_layout
31947
31948 \begin_layout Description
31949 branchlabel Label color for branches
31950 \end_layout
31951
31952 \begin_layout Description
31953 buttonbg Color used for button background
31954 \end_layout
31955
31956 \begin_layout Description
31957 buttonframe Color for inset button frames
31958 \end_layout
31959
31960 \begin_layout Description
31961 buttonhoverbg Color used for button background under focus
31962 \end_layout
31963
31964 \begin_layout Description
31965 changebar Changebar color
31966 \end_layout
31967
31968 \begin_layout Description
31969 changedtextauthor1 Changed text color author 1
31970 \end_layout
31971
31972 \begin_layout Description
31973 changedtextauthor2 Changed text color author 2
31974 \end_layout
31975
31976 \begin_layout Description
31977 changedtextauthor3 Changed text color author 3
31978 \end_layout
31979
31980 \begin_layout Description
31981 changedtextauthor4 Changed text color author 4
31982 \end_layout
31983
31984 \begin_layout Description
31985 changedtextauthor5 Changed text color author 5
31986 \end_layout
31987
31988 \begin_layout Description
31989 collapsible Collapsible insets text color
31990 \end_layout
31991
31992 \begin_layout Description
31993 collapsibleframe Collapsible insets framecolor
31994 \end_layout
31995
31996 \begin_layout Description
31997 command Text color for command insets
31998 \end_layout
31999
32000 \begin_layout Description
32001 commandbg Background color for command insets
32002 \end_layout
32003
32004 \begin_layout Description
32005 commandframe Frame color for command insets
32006 \end_layout
32007
32008 \begin_layout Description
32009 comment Label color for comments
32010 \end_layout
32011
32012 \begin_layout Description
32013 commentbg Background color of comments
32014 \end_layout
32015
32016 \begin_layout Description
32017 cursor Cursor color
32018 \end_layout
32019
32020 \begin_layout Description
32021 deletedtext Deleted text color
32022 \end_layout
32023
32024 \begin_layout Description
32025 deletedtextmodifier Deleted text modifying color
32026 \end_layout
32027
32028 \begin_layout Description
32029 depthbar Color for the depth bars in the margin
32030 \end_layout
32031
32032 \begin_layout Description
32033 eolmarker End of line marker color
32034 \end_layout
32035
32036 \begin_layout Description
32037 error Color of the \SpecialChar LaTeX
32038  error box
32039 \end_layout
32040
32041 \begin_layout Description
32042 footlabel Label color for footnotes
32043 \end_layout
32044
32045 \begin_layout Description
32046 foreground Foreground color
32047 \end_layout
32048
32049 \begin_layout Description
32050 graphicsbg Graphics inset background color
32051 \end_layout
32052
32053 \begin_layout Description
32054 greyedoutbg Background color of greyedout inset
32055 \end_layout
32056
32057 \begin_layout Description
32058 greyedoutlabel Label color for greyedout insets
32059 \end_layout
32060
32061 \begin_layout Description
32062 greyedouttext Color for greyedout inset text
32063 \end_layout
32064
32065 \begin_layout Description
32066 indexlabel Label color for index insets
32067 \end_layout
32068
32069 \begin_layout Description
32070 inlinecompletion Inline completion color
32071 \end_layout
32072
32073 \begin_layout Description
32074 insetbg Inset marker background color
32075 \end_layout
32076
32077 \begin_layout Description
32078 insetframe Inset marker frame color
32079 \end_layout
32080
32081 \begin_layout Description
32082 language Color for marking foreign language words
32083 \end_layout
32084
32085 \begin_layout Description
32086 latex Text color in \SpecialChar LaTeX
32087  mode
32088 \end_layout
32089
32090 \begin_layout Description
32091 listingsbg Background color of listings inset
32092 \end_layout
32093
32094 \begin_layout Description
32095 marginlabel Label color for margin notes
32096 \end_layout
32097
32098 \begin_layout Description
32099 math Math inset text color
32100 \end_layout
32101
32102 \begin_layout Description
32103 mathbg Math inset background color
32104 \end_layout
32105
32106 \begin_layout Description
32107 mathcorners Math inset frame color not under focus
32108 \end_layout
32109
32110 \begin_layout Description
32111 mathframe Math inset frame color under focus
32112 \end_layout
32113
32114 \begin_layout Description
32115 mathline Math line color
32116 \end_layout
32117
32118 \begin_layout Description
32119 mathmacrobg Macro math inset background color
32120 \end_layout
32121
32122 \begin_layout Description
32123 mathmacroblend Macro math blended color
32124 \end_layout
32125
32126 \begin_layout Description
32127 mathmacroframe Macro math frame color
32128 \end_layout
32129
32130 \begin_layout Description
32131 mathmacrohoverbg Macro math inset background color hovered
32132 \end_layout
32133
32134 \begin_layout Description
32135 mathmacrolabel Macro math label color
32136 \end_layout
32137
32138 \begin_layout Description
32139 mathmacronewarg Macro template color for new parameters
32140 \end_layout
32141
32142 \begin_layout Description
32143 mathmacrooldarg Macro template color for old parameters
32144 \end_layout
32145
32146 \begin_layout Description
32147 newpage New page color
32148 \end_layout
32149
32150 \begin_layout Description
32151 nonunique_inlinecompletion Inline completion color for the non-unique part
32152 \end_layout
32153
32154 \begin_layout Description
32155 note Label color for notes
32156 \end_layout
32157
32158 \begin_layout Description
32159 notebg Background color of notes
32160 \end_layout
32161
32162 \begin_layout Description
32163 pagebreak Page break/line break color
32164 \end_layout
32165
32166 \begin_layout Description
32167 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
32168 \end_layout
32169
32170 \begin_layout Description
32171 phantomtext Text color for phantom insets
32172 \end_layout
32173
32174 \begin_layout Description
32175 preview The color used for previews
32176 \end_layout
32177
32178 \begin_layout Description
32179 previewframe Preview frame color
32180 \end_layout
32181
32182 \begin_layout Description
32183 regexpframe Color for regexp frame
32184 \end_layout
32185
32186 \begin_layout Description
32187 scroll Color that indicates when a row can be scrolled 
32188 \end_layout
32189
32190 \begin_layout Description
32191 selection Background color of selected text
32192 \end_layout
32193
32194 \begin_layout Description
32195 selectiontext Foreground color of selected text
32196 \end_layout
32197
32198 \begin_layout Description
32199 shadedbg Background color of shaded box
32200 \end_layout
32201
32202 \begin_layout Description
32203 special Special chars text color
32204 \end_layout
32205
32206 \begin_layout Description
32207 tabularline Table line color
32208 \end_layout
32209
32210 \begin_layout Description
32211 tabularonoffline Table line color
32212 \end_layout
32213
32214 \begin_layout Description
32215 urllabel Label color for URL insets
32216 \end_layout
32217
32218 \begin_layout Description
32219 urltext Color for URL inset text
32220 \end_layout
32221
32222 \end_body
32223 \end_document