]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Move DrawStrategy enum to update_flags.h.
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 620
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_formatted_ref 0
107 \use_minted 0
108 \use_lineno 0
109 \notefontcolor #0000ff
110 \branch OutDated
111 \selected 0
112 \filename_suffix 0
113 \color #f5fae7 #0a0518
114 \end_branch
115 \index Index
116 \shortcut idx
117 \color #008000
118 \end_index
119 \secnumdepth 3
120 \tocdepth 3
121 \paragraph_separation indent
122 \paragraph_indentation default
123 \is_math_indent 1
124 \math_indentation default
125 \math_numbering_side default
126 \quotes_style english
127 \dynamic_quotes 0
128 \papercolumns 1
129 \papersides 2
130 \paperpagestyle headings
131 \tablestyle default
132 \tracking_changes true
133 \output_changes false
134 \change_bars false
135 \postpone_fragile_content false
136 \html_math_output 0
137 \html_css_as_file 0
138 \html_be_strict true
139 \docbook_table_output 0
140 \docbook_mathml_prefix 1
141 \author -712698321 "Jürgen Spitzmüller"
142 \end_header
143
144 \begin_body
145
146 \begin_layout Title
147 Customizing \SpecialChar LyX
148 :
149  Features for the Advanced User
150 \end_layout
151
152 \begin_layout Author
153 by the \SpecialChar LyX
154  Team
155 \begin_inset Foot
156 status collapsed
157
158 \begin_layout Plain Layout
159 If you have comments or error corrections,
160  please send them to the \SpecialChar LyX
161  Documentation mailing list,
162  
163 \begin_inset CommandInset href
164 LatexCommand href
165 target "lyx-docs@lists.lyx.org"
166 type "mailto:"
167 literal "false"
168
169 \end_inset
170
171 .
172  Include 
173 \begin_inset Quotes eld
174 \end_inset
175
176 [Customization]
177 \begin_inset Quotes erd
178 \end_inset
179
180  in the subject header,
181  and please cc the current maintainer of this file,
182  Richard Kimberly Heck <rikiheck@lyx.org>.
183 \end_layout
184
185 \end_inset
186
187
188 \begin_inset Newline newline
189 \end_inset
190
191
192 \begin_inset Newline newline
193 \end_inset
194
195 Version 2.4.x
196 \end_layout
197
198 \begin_layout Standard
199 \begin_inset CommandInset toc
200 LatexCommand tableofcontents
201
202 \end_inset
203
204
205 \end_layout
206
207 \begin_layout Standard
208 \begin_inset Note Note
209 status collapsed
210
211 \begin_layout Plain Layout
212 Please use change tracking when modifying this document.
213  This makes it easier for our translators to recognize things that have been changed,
214  and it helps the maintainer keep up-to-date with what's been done.
215 \end_layout
216
217 \end_inset
218
219
220 \end_layout
221
222 \begin_layout Chapter
223 Introduction
224 \end_layout
225
226 \begin_layout Standard
227 This manual covers the customization features present in \SpecialChar LyX
228 .
229  In it,
230  we discuss issues like keyboard shortcuts,
231  screen previewing options,
232  printer options,
233  sending commands to \SpecialChar LyX
234  via the \SpecialChar LyX
235  Server,
236  internationalization,
237  installing new \SpecialChar LaTeX
238  classes and \SpecialChar LyX
239  layouts,
240  etc.
241  We can't possibly hope to touch on everything you can change—
242 our developers add new features faster than we can document them—
243 but we will explain the most common customizations and hopefully point you in the right direction for some of the more obscure ones.
244 \end_layout
245
246 \begin_layout Standard
247 \begin_inset Branch OutDated
248 inverted 0
249 status collapsed
250
251 \begin_layout Standard
252 Information from previous versions of this document that now seems to be outdated is contained in the OutDated branch of this document.
253  By default,
254  this information will not appear in the \SpecialChar LaTeX
255  output.
256 \end_layout
257
258 \end_inset
259
260
261 \end_layout
262
263 \begin_layout Chapter
264 \SpecialChar LyX
265  configuration files
266 \end_layout
267
268 \begin_layout Standard
269 This chapter aims to help you to find your way through the \SpecialChar LyX
270  configuration files.
271  Before continuing to read this chapter,
272  you should find out where your \SpecialChar LyX
273  system and user directories are by using 
274 \begin_inset Flex Noun
275 status collapsed
276
277 \begin_layout Plain Layout
278 Help\SpecialChar menuseparator
279 About
280 \begin_inset space ~
281 \end_inset
282
283 LyX
284 \end_layout
285
286 \end_inset
287
288 .
289  The system directory is the place where \SpecialChar LyX
290  places its system-wide configuration files;
291  the user directory is where you can place your modified versions.
292  We will call the former 
293 \begin_inset Flex Code
294 status collapsed
295
296 \begin_layout Plain Layout
297 LyXDir
298 \end_layout
299
300 \end_inset
301
302  and the latter 
303 \begin_inset Flex Noun
304 status collapsed
305
306 \begin_layout Plain Layout
307 UserDir
308 \end_layout
309
310 \end_inset
311
312  in the remainder of this document.
313  
314 \end_layout
315
316 \begin_layout Section
317 What's in 
318 \begin_inset Flex Code
319 status collapsed
320
321 \begin_layout Plain Layout
322 LyXDir
323 \end_layout
324
325 \end_inset
326
327 ?
328 \end_layout
329
330 \begin_layout Standard
331 \begin_inset Flex Code
332 status collapsed
333
334 \begin_layout Plain Layout
335 LyXDir
336 \end_layout
337
338 \end_inset
339
340  and its sub-directories contain a number of files that can be used 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 dialog.
357  However,
358  many other inner aspects of \SpecialChar LyX
359  can be customized by modifying the files in 
360 \begin_inset Flex Code
361 status collapsed
362
363 \begin_layout Plain Layout
364 LyXDir
365 \end_layout
366
367 \end_inset
368
369 .
370  These files fall in different categories,
371  described in the following subsections.
372 \end_layout
373
374 \begin_layout Subsection
375 Automatically generated files
376 \end_layout
377
378 \begin_layout Standard
379 The files found in 
380 \begin_inset Flex Noun
381 status collapsed
382
383 \begin_layout Plain Layout
384 UserDir
385 \end_layout
386
387 \end_inset
388
389  are generated when you configure \SpecialChar LyX
390 .
391  They contain various default values that are automatically detected during reconfiguration.
392  In general,
393  it is not a good idea to modify them,
394  since they might be overwritten 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,
426  but the information extracted,
427  and more,
428  is made available with 
429 \begin_inset Flex Noun
430 status collapsed
431
432 \begin_layout Plain Layout
433 Help\SpecialChar menuseparator
434 \SpecialChar LaTeX
435
436 \begin_inset space ~
437 \end_inset
438
439 Configuration
440 \end_layout
441
442 \end_inset
443
444 .
445 \end_layout
446
447 \begin_layout Labeling
448 \labelwidthstring 00.00.0000
449 \begin_inset Flex Code
450 status collapsed
451
452 \begin_layout Plain Layout
453 textclass.lst
454 \end_layout
455
456 \end_inset
457
458  The list of text classes that have been found in your 
459 \begin_inset Flex Code
460 status collapsed
461
462 \begin_layout Plain Layout
463 layout/
464 \end_layout
465
466 \end_inset
467
468  directories,
469  along with the associated \SpecialChar LaTeX
470  document class and their description.
471 \end_layout
472
473 \begin_layout Labeling
474 \labelwidthstring 00.00.0000
475 \begin_inset Flex Code
476 status collapsed
477
478 \begin_layout Plain Layout
479 lyxmodules.lst
480 \end_layout
481
482 \end_inset
483
484  The list of layout modules found in your 
485 \begin_inset Flex Code
486 status collapsed
487
488 \begin_layout Plain Layout
489 layout/
490 \end_layout
491
492 \end_inset
493
494  directories
495 \end_layout
496
497 \begin_layout Labeling
498 \labelwidthstring 00.00.0000
499 \begin_inset Flex Code
500 status open
501
502 \begin_layout Plain Layout
503 *files.lst
504 \end_layout
505
506 \end_inset
507
508  Lists of various sorts of \SpecialChar LaTeX
509 -related files found on your system
510 \end_layout
511
512 \begin_layout Labeling
513 \labelwidthstring 00.00.0000
514 \begin_inset Flex Code
515 status open
516
517 \begin_layout Plain Layout
518 doc/\SpecialChar LaTeX
519 Config.lyx
520 \end_layout
521
522 \end_inset
523
524  is automatically generated during configuration from the file 
525 \begin_inset Flex Code
526 status collapsed
527
528 \begin_layout Plain Layout
529 \SpecialChar LaTeX
530 Config.lyx.in
531 \end_layout
532
533 \end_inset
534
535 .
536  It contains information on your \SpecialChar LaTeX
537  configuration.
538 \end_layout
539
540 \begin_layout Subsection
541 Directories
542 \end_layout
543
544 \begin_layout Standard
545 The following directories in 
546 \begin_inset Flex Code
547 status collapsed
548
549 \begin_layout Plain Layout
550 LyXDir
551 \end_layout
552
553 \end_inset
554
555  can be duplicated in 
556 \begin_inset Flex Code
557 status collapsed
558
559 \begin_layout Plain Layout
560 UserDir
561 \end_layout
562
563 \end_inset
564
565 .
566  If a particular file exists in both places,
567  the one in 
568 \begin_inset Flex Code
569 status collapsed
570
571 \begin_layout Plain Layout
572 UserDir
573 \end_layout
574
575 \end_inset
576
577  will be used.
578 \end_layout
579
580 \begin_layout Labeling
581 \labelwidthstring 00.00.0000
582 \begin_inset Flex Code
583 status collapsed
584
585 \begin_layout Plain Layout
586 bind/
587 \end_layout
588
589 \end_inset
590
591  This directory contains files with the extension 
592 \begin_inset Flex Code
593 status collapsed
594
595 \begin_layout Plain Layout
596 .bind
597 \end_layout
598
599 \end_inset
600
601  that define the keybindings used in \SpecialChar LyX
602 .
603  If there exists an internationalized version of the bind file in a subdirectory 
604 \begin_inset Flex Code
605 status collapsed
606
607 \begin_layout Plain Layout
608 bind/xx
609 \end_layout
610
611 \end_inset
612
613  where 
614 \begin_inset Quotes eld
615 \end_inset
616
617 xx
618 \begin_inset Quotes erd
619 \end_inset
620
621  is the ISO language code,
622  that will be used first.
623 \end_layout
624
625 \begin_layout Labeling
626 \labelwidthstring 00.00.0000
627 \begin_inset Flex Code
628 status collapsed
629
630 \begin_layout Plain Layout
631 citeengines/
632 \end_layout
633
634 \end_inset
635
636  Contains files with the extension 
637 \begin_inset Flex Code
638 status collapsed
639
640 \begin_layout Plain Layout
641 .citeengine
642 \end_layout
643
644 \end_inset
645
646  which define the diverse citation possibilities (natbib,
647  biblatex etc.).
648  See 
649 \begin_inset CommandInset ref
650 LatexCommand ref
651 reference "subsec:Cite-Engine-Files"
652 plural "false"
653 caps "false"
654 noprefix "false"
655 nolink "false"
656
657 \end_inset
658
659  for details.
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 clipart/
669 \end_layout
670
671 \end_inset
672
673  Contains graphics files that can be included in documents.
674  
675 \end_layout
676
677 \begin_layout Labeling
678 \labelwidthstring 00.00.0000
679 \begin_inset Flex Code
680 status collapsed
681
682 \begin_layout Plain Layout
683 doc/
684 \end_layout
685
686 \end_inset
687
688  Contains \SpecialChar LyX
689  documentation files (including the one you are currently reading).
690  The file 
691 \begin_inset Flex Code
692 status collapsed
693
694 \begin_layout Plain Layout
695 LaTexConfig.lyx
696 \end_layout
697
698 \end_inset
699
700  deserves special attention,
701  as noted above.
702  The internationalized help docs are in subdirectories 
703 \begin_inset Flex Code
704 status collapsed
705
706 \begin_layout Plain Layout
707 doc/xx
708 \end_layout
709
710 \end_inset
711
712  where 
713 \begin_inset Quotes eld
714 \end_inset
715
716 xx
717 \begin_inset Quotes erd
718 \end_inset
719
720  is the ISO language code.
721  See 
722 \begin_inset CommandInset ref
723 LatexCommand ref
724 reference "cha:Internationalizing-LyX"
725 nolink "false"
726
727 \end_inset
728
729  for details.
730 \end_layout
731
732 \begin_layout Labeling
733 \labelwidthstring 00.00.0000
734 \begin_inset Flex Code
735 status collapsed
736
737 \begin_layout Plain Layout
738 examples/
739 \end_layout
740
741 \end_inset
742
743  Contains example files that explain how to use some features.
744  In the file browser,
745  press the 
746 \begin_inset Flex Noun
747 status collapsed
748
749 \begin_layout Plain Layout
750 Examples
751 \end_layout
752
753 \end_inset
754
755  button to get there.
756 \end_layout
757
758 \begin_layout Labeling
759 \labelwidthstring 00.00.0000
760 \begin_inset Flex Code
761 status collapsed
762
763 \begin_layout Plain Layout
764 images/
765 \end_layout
766
767 \end_inset
768
769  Contains image files that are used by the 
770 \begin_inset Flex Noun
771 status collapsed
772
773 \begin_layout Plain Layout
774 Document
775 \end_layout
776
777 \end_inset
778
779  dialog.
780  In addition,
781  it also contains the individual icons used in the toolbar and the banners that can be shown when \SpecialChar LyX
782  is launched.
783 \end_layout
784
785 \begin_layout Labeling
786 \labelwidthstring 00.00.0000
787 \begin_inset Flex Code
788 status collapsed
789
790 \begin_layout Plain Layout
791 kbd/
792 \end_layout
793
794 \end_inset
795
796  Contains keyboard keymapping files.
797  See 
798 \begin_inset CommandInset ref
799 LatexCommand ref
800 reference "sec:International-Keymap-Stuff"
801 nolink "false"
802
803 \end_inset
804
805  for details.
806 \end_layout
807
808 \begin_layout Labeling
809 \labelwidthstring 00.00.0000
810 \begin_inset Flex Code
811 status collapsed
812
813 \begin_layout Plain Layout
814 layouts/
815 \end_layout
816
817 \end_inset
818
819  Contains the text class and module files described in 
820 \begin_inset CommandInset ref
821 LatexCommand ref
822 reference "cha:Installing-New-Document"
823 nolink "false"
824
825 \end_inset
826
827 .
828 \end_layout
829
830 \begin_layout Labeling
831 \labelwidthstring 00.00.0000
832 \begin_inset Flex Code
833 status collapsed
834
835 \begin_layout Plain Layout
836 lyx2lyx
837 \end_layout
838
839 \end_inset
840
841  Contains the 
842 \begin_inset Flex Code
843 status collapsed
844
845 \begin_layout Plain Layout
846 lyx2lyx
847 \end_layout
848
849 \end_inset
850
851  Python scripts used to convert between \SpecialChar LyX
852  versions.
853  These can be run from the command line if you want to batch-convert files.
854 \end_layout
855
856 \begin_layout Labeling
857 \labelwidthstring 00.00.0000
858 \begin_inset Flex Code
859 status collapsed
860
861 \begin_layout Plain Layout
862 scripts/
863 \end_layout
864
865 \end_inset
866
867  Contains some files that demonstrate the capabilities of the 
868 \begin_inset Flex Noun
869 status collapsed
870
871 \begin_layout Plain Layout
872 External
873 \begin_inset space ~
874 \end_inset
875
876 Template
877 \end_layout
878
879 \end_inset
880
881  feature.
882  Also contains some scripts used by \SpecialChar LyX
883  itself.
884 \end_layout
885
886 \begin_layout Labeling
887 \labelwidthstring 00.00.0000
888 \begin_inset Flex Code
889 status collapsed
890
891 \begin_layout Plain Layout
892 templates/
893 \end_layout
894
895 \end_inset
896
897  Contains the standard \SpecialChar LyX
898  template files described in 
899 \begin_inset CommandInset ref
900 LatexCommand ref
901 reference "subsec:Creating-Templates"
902 nolink "false"
903
904 \end_inset
905
906 .
907 \end_layout
908
909 \begin_layout Labeling
910 \labelwidthstring 00.00.0000
911 \begin_inset Flex Code
912 status collapsed
913
914 \begin_layout Plain Layout
915 ui/
916 \end_layout
917
918 \end_inset
919
920  Contains files with the extension 
921 \begin_inset Flex Code
922 status collapsed
923
924 \begin_layout Plain Layout
925 .ui
926 \end_layout
927
928 \end_inset
929
930  that define the user interface to \SpecialChar LyX
931 .
932  That is,
933  the files define which items appear in which menus and the items appearing on the toolbar.
934 \end_layout
935
936 \begin_layout Labeling
937 \labelwidthstring 00.00.0000
938 \begin_inset Flex Code
939 status collapsed
940
941 \begin_layout Plain Layout
942 xtemplates/
943 \end_layout
944
945 \end_inset
946
947  Contains files with the extension 
948 \begin_inset Flex Code
949 status collapsed
950
951 \begin_layout Plain Layout
952 .xtemplate
953 \end_layout
954
955 \end_inset
956
957  which define the templates for the insertion of external material to a \SpecialChar LyX
958  document;
959  see 
960 \begin_inset CommandInset ref
961 LatexCommand ref
962 reference "chap:Including-External-Material"
963 nolink "false"
964
965 \end_inset
966
967 .
968 \end_layout
969
970 \begin_layout Subsection
971 Files you don't want to modify
972 \end_layout
973
974 \begin_layout Standard
975 These files are used internally by \SpecialChar LyX
976  and you generally do not need to modify them unless you are a developer.
977 \end_layout
978
979 \begin_layout Labeling
980 \labelwidthstring 00.00.0000
981 \begin_inset Flex Code
982 status collapsed
983
984 \begin_layout Plain Layout
985 CREDITS
986 \end_layout
987
988 \end_inset
989
990  This file contains the list of \SpecialChar LyX
991  developers.
992  The contents are displayed with the menu entry 
993 \begin_inset Flex Noun
994 status collapsed
995
996 \begin_layout Plain Layout
997 Help\SpecialChar menuseparator
998 About
999 \begin_inset space ~
1000 \end_inset
1001
1002 LyX
1003 \end_layout
1004
1005 \end_inset
1006
1007 .
1008 \end_layout
1009
1010 \begin_layout Labeling
1011 \labelwidthstring 00.00.0000
1012 \begin_inset Flex Code
1013 status collapsed
1014
1015 \begin_layout Plain Layout
1016 chkconfig.ltx
1017 \end_layout
1018
1019 \end_inset
1020
1021  This is a \SpecialChar LaTeX
1022  script used during the configuration process.
1023  Do not run directly.
1024 \end_layout
1025
1026 \begin_layout Labeling
1027 \labelwidthstring 00.00.0000
1028 \begin_inset Flex Code
1029 status collapsed
1030
1031 \begin_layout Plain Layout
1032 configure.py
1033 \end_layout
1034
1035 \end_inset
1036
1037  This is a Python script that is used to re-configure \SpecialChar LyX
1038 .
1039  It creates configuration files in the directory it was run from.
1040 \end_layout
1041
1042 \begin_layout Subsection
1043 Other files needing a line or two
1044 \end_layout
1045
1046 \begin_layout Labeling
1047 \labelwidthstring 00.00.0000
1048 \begin_inset Flex Code
1049 status collapsed
1050
1051 \begin_layout Plain Layout
1052 encodings
1053 \end_layout
1054
1055 \end_inset
1056
1057  This contains tables describing how different character encodings can be mapped to Unicode
1058 \end_layout
1059
1060 \begin_layout Labeling
1061 \labelwidthstring 00.00.0000
1062 \begin_inset Flex Code
1063 status collapsed
1064
1065 \begin_layout Plain Layout
1066 languages
1067 \end_layout
1068
1069 \end_inset
1070
1071  This file contains a list of all the languages currently supported by \SpecialChar LyX
1072 .
1073 \end_layout
1074
1075 \begin_layout Labeling
1076 \labelwidthstring 00.00.0000
1077 \begin_inset Flex Code
1078 status collapsed
1079
1080 \begin_layout Plain Layout
1081 latexfonts
1082 \end_layout
1083
1084 \end_inset
1085
1086  Contains information about the supported fonts.
1087 \end_layout
1088
1089 \begin_layout Labeling
1090 \labelwidthstring 00.00.0000
1091 \begin_inset Flex Code
1092 status collapsed
1093
1094 \begin_layout Plain Layout
1095 layouttranslations
1096 \end_layout
1097
1098 \end_inset
1099
1100  This file contains translations for internationalized paragraph styles (see 
1101 \begin_inset CommandInset ref
1102 LatexCommand ref
1103 reference "subsec:I18n"
1104 nolink "false"
1105
1106 \end_inset
1107
1108 ).
1109 \end_layout
1110
1111 \begin_layout Labeling
1112 \labelwidthstring 00.00.0000
1113 \begin_inset Flex Code
1114 status collapsed
1115
1116 \begin_layout Plain Layout
1117 unicodesymbols
1118 \end_layout
1119
1120 \end_inset
1121
1122  This file contains information about Unicode-encoded glyphs and the way they are supported by \SpecialChar LyX
1123  via \SpecialChar LaTeX
1124 .
1125 \end_layout
1126
1127 \begin_layout Section
1128 Your local configuration directory
1129 \end_layout
1130
1131 \begin_layout Standard
1132 Even if you are using \SpecialChar LyX
1133  as an unprivileged user,
1134  you might want to change \SpecialChar LyX
1135  configuration for your own use.
1136  The 
1137 \begin_inset Flex Code
1138 status collapsed
1139
1140 \begin_layout Plain Layout
1141 UserDir
1142 \end_layout
1143
1144 \end_inset
1145
1146  directory contains all your personal configuration files.
1147  This is the directory described as 
1148 \begin_inset Quotes eld
1149 \end_inset
1150
1151 user directory
1152 \begin_inset Quotes erd
1153 \end_inset
1154
1155  in 
1156 \begin_inset Flex Noun
1157 status collapsed
1158
1159 \begin_layout Plain Layout
1160 Help\SpecialChar menuseparator
1161 About
1162 \begin_inset space ~
1163 \end_inset
1164
1165 LyX
1166 \end_layout
1167
1168 \end_inset
1169
1170 .
1171  This directory is used as a mirror of 
1172 \begin_inset Flex Code
1173 status collapsed
1174
1175 \begin_layout Plain Layout
1176 LyXDir
1177 \end_layout
1178
1179 \end_inset
1180
1181 ,
1182  which means that every file in 
1183 \begin_inset Flex Code
1184 status collapsed
1185
1186 \begin_layout Plain Layout
1187 UserDir
1188 \end_layout
1189
1190 \end_inset
1191
1192  is a replacement for the corresponding file in 
1193 \begin_inset Flex Code
1194 status collapsed
1195
1196 \begin_layout Plain Layout
1197 LyXDir
1198 \end_layout
1199
1200 \end_inset
1201
1202 .
1203  Any configuration file described in the above sections can be placed either in the system-wide directory,
1204  in which case it will affect all users,
1205  or in your local directory for your own use.
1206 \end_layout
1207
1208 \begin_layout Standard
1209 To make things clearer,
1210  let's provide a few examples:
1211 \end_layout
1212
1213 \begin_layout Itemize
1214 The preferences set in the 
1215 \begin_inset Flex Noun
1216 status collapsed
1217
1218 \begin_layout Plain Layout
1219 Tools\SpecialChar menuseparator
1220 Preferences
1221 \end_layout
1222
1223 \end_inset
1224
1225  dialog are saved to a file 
1226 \begin_inset Flex Code
1227 status collapsed
1228
1229 \begin_layout Plain Layout
1230 preferences
1231 \end_layout
1232
1233 \end_inset
1234
1235  in 
1236 \begin_inset Flex Code
1237 status collapsed
1238
1239 \begin_layout Plain Layout
1240 UserDir
1241 \end_layout
1242
1243 \end_inset
1244
1245 .
1246 \end_layout
1247
1248 \begin_layout Itemize
1249 When you reconfigure using 
1250 \begin_inset Flex Noun
1251 status collapsed
1252
1253 \begin_layout Plain Layout
1254 Tools\SpecialChar menuseparator
1255 Reconfigure
1256 \end_layout
1257
1258 \end_inset
1259
1260 ,
1261  \SpecialChar LyX
1262  runs the 
1263 \begin_inset Flex Code
1264 status collapsed
1265
1266 \begin_layout Plain Layout
1267 configure.py
1268 \end_layout
1269
1270 \end_inset
1271
1272  script,
1273  and the resulting files are written in your local configuration directory.
1274  This means that any additional text class file that you might have added in 
1275 \begin_inset Flex Code
1276 status collapsed
1277
1278 \begin_layout Plain Layout
1279 UserDir/layouts
1280 \end_layout
1281
1282 \end_inset
1283
1284  will be added to the list of classes in the 
1285 \begin_inset Flex Noun
1286 status collapsed
1287
1288 \begin_layout Plain Layout
1289 Document\SpecialChar menuseparator
1290 Settings
1291 \end_layout
1292
1293 \end_inset
1294
1295  dialog.
1296 \end_layout
1297
1298 \begin_layout Itemize
1299 If you get some updated documentation from a \SpecialChar LyX
1300  ftp site and cannot install it because you do not have sysadmin rights on your system,
1301  you can just copy the files to 
1302 \begin_inset Flex Code
1303 status collapsed
1304
1305 \begin_layout Plain Layout
1306 UserDir/doc/
1307 \end_layout
1308
1309 \end_inset
1310
1311  and the items in the 
1312 \begin_inset Flex Noun
1313 status collapsed
1314
1315 \begin_layout Plain Layout
1316 Help
1317 \end_layout
1318
1319 \end_inset
1320
1321  menu will open them!
1322 \end_layout
1323
1324 \begin_layout Section
1325 Running \SpecialChar LyX
1326  with multiple configurations
1327 \end_layout
1328
1329 \begin_layout Standard
1330 The configuration freedom of the local configuration directory may not suffice if you want to have more than one configuration at your disposal.
1331  For example,
1332  you may want to use different key bindings or printer settings at different times.
1333  You can achieve this by having several such directories.
1334  You then specify which directory to use at run-time.
1335 \end_layout
1336
1337 \begin_layout Standard
1338 Invoking \SpecialChar LyX
1339  with the command line switch 
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  
1350 \emph on
1351 <some directory>
1352 \emph default
1353  instructs the program to read the configuration from that directory,
1354  and not from the default directory.
1355  (You can determine the default directory by running \SpecialChar LyX
1356  without the 
1357 \begin_inset Flex Code
1358 status collapsed
1359
1360 \begin_layout Plain Layout
1361 -userdir
1362 \end_layout
1363
1364 \end_inset
1365
1366  switch.) If the specified directory does not exist,
1367  \SpecialChar LyX
1368  offers to create it for you,
1369  just like it does for the default directory the first time you run the program.
1370  You can modify the configuration options in this additional user directory exactly as you would for the default directory.
1371  These directories are completely independent (but read on).
1372  Note that setting the environment variable 
1373 \begin_inset Flex Code
1374 status collapsed
1375
1376 \begin_layout Plain Layout
1377 LYX_USERDIR_24x
1378 \end_layout
1379
1380 \end_inset
1381
1382  to some value has exactly the same effect.
1383 \end_layout
1384
1385 \begin_layout Standard
1386 Having several configurations also requires more maintenance:
1387  if you want to add a new layout to 
1388 \begin_inset Flex Code
1389 status collapsed
1390
1391 \begin_layout Plain Layout
1392 NewUserDir/layouts
1393 \end_layout
1394
1395 \end_inset
1396
1397  which you want available from all your configurations,
1398  you must add it to each directory separately.
1399  You can avoid this with the following trick:
1400  after \SpecialChar LyX
1401  creates the additional directory,
1402  most of the subdirectories (see above) are empty.
1403  If you want the new configuration to mirror an existing one,
1404  replace the empty subdirectory with a symbolic link to the matching subdirectory in the existing configuration.
1405  Take care with the 
1406 \begin_inset Flex Code
1407 status collapsed
1408
1409 \begin_layout Plain Layout
1410 doc/
1411 \end_layout
1412
1413 \end_inset
1414
1415  subdirectory,
1416  however,
1417  since it contains a file written by the configuration script (also accessible through 
1418 \begin_inset Flex Noun
1419 status collapsed
1420
1421 \begin_layout Plain Layout
1422 Tools\SpecialChar menuseparator
1423 Reconfigure
1424 \end_layout
1425
1426 \end_inset
1427
1428 ) which is configuration specific.
1429 \end_layout
1430
1431 \begin_layout Chapter
1432 The Preferences dialog
1433 \end_layout
1434
1435 \begin_layout Standard
1436 All options of the preferences dialog are described in the Appendix 
1437 \emph on
1438 The Preferences Dialog
1439 \emph default
1440  in the 
1441 \emph on
1442 User's Guide
1443 \emph default
1444 .
1445  For some options you might find here more details.
1446 \end_layout
1447
1448 \begin_layout Section
1449 Formats
1450 \begin_inset CommandInset label
1451 LatexCommand label
1452 name "sec:Formats"
1453
1454 \end_inset
1455
1456
1457 \end_layout
1458
1459 \begin_layout Standard
1460 The first step is to define your file formats if they are not already defined.
1461  To do so,
1462  open the 
1463 \begin_inset Flex Noun
1464 status collapsed
1465
1466 \begin_layout Plain Layout
1467 Tools\SpecialChar menuseparator
1468 Preferences
1469 \end_layout
1470
1471 \end_inset
1472
1473  dialog.
1474  Under 
1475 \begin_inset Flex Noun
1476 status collapsed
1477
1478 \begin_layout Plain Layout
1479 File Handling\SpecialChar menuseparator
1480 File formats
1481 \end_layout
1482
1483 \end_inset
1484
1485  press the 
1486 \begin_inset Flex Noun
1487 status collapsed
1488
1489 \begin_layout Plain Layout
1490 New
1491 \end_layout
1492
1493 \end_inset
1494
1495  button to define your new format.
1496  The 
1497 \begin_inset Flex Noun
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 Format
1502 \end_layout
1503
1504 \end_inset
1505
1506  field contains the name used to identify the format in the GUI.
1507  The 
1508 \begin_inset Flex Noun
1509 status collapsed
1510
1511 \begin_layout Plain Layout
1512 Short Name
1513 \end_layout
1514
1515 \end_inset
1516
1517  is used to identify the format internally.
1518  You will also need to enter a file extension.
1519  These are all required.
1520  The optional 
1521 \begin_inset Flex Noun
1522 status collapsed
1523
1524 \begin_layout Plain Layout
1525 Shortcut
1526 \end_layout
1527
1528 \end_inset
1529
1530  field is used to provide a keyboard shortcut on the menus.
1531  (For example,
1532  pressing 
1533 \begin_inset Flex Noun
1534 status collapsed
1535
1536 \begin_layout Plain Layout
1537 Ctrl+D
1538 \end_layout
1539
1540 \end_inset
1541
1542  will 
1543 \begin_inset Flex Noun
1544 status collapsed
1545
1546 \begin_layout Plain Layout
1547 Document\SpecialChar menuseparator
1548 View (Other Formats)\SpecialChar menuseparator
1549 DVI
1550 \end_layout
1551
1552 \end_inset
1553
1554 .) 
1555 \end_layout
1556
1557 \begin_layout Standard
1558 A Format can have a 
1559 \begin_inset Flex Noun
1560 status collapsed
1561
1562 \begin_layout Plain Layout
1563 Viewer
1564 \end_layout
1565
1566 \end_inset
1567
1568  and an 
1569 \begin_inset Flex Noun
1570 status collapsed
1571
1572 \begin_layout Plain Layout
1573 Editor
1574 \end_layout
1575
1576 \end_inset
1577
1578  associated with it.
1579  For example,
1580  you might want to use 
1581 \begin_inset Flex Noun
1582 status collapsed
1583
1584 \begin_layout Plain Layout
1585 Ghostview
1586 \end_layout
1587
1588 \end_inset
1589
1590  to view PostScript files.
1591  You can enter the command needed to start the program in the corresponding fields.
1592  In defining this command,
1593  you can use the four variables listed in the next section.
1594  The viewer is launched when you view an image in \SpecialChar LyX
1595  or use the 
1596 \begin_inset Flex Noun
1597 status collapsed
1598
1599 \begin_layout Plain Layout
1600 Document\SpecialChar menuseparator
1601 View
1602 \end_layout
1603
1604 \end_inset
1605
1606  menu.
1607  The editor is for example launched when you right-click on an image and choose 
1608 \begin_inset Flex Noun
1609 status collapsed
1610
1611 \begin_layout Plain Layout
1612 Edit externally
1613 \end_layout
1614
1615 \end_inset
1616
1617  in the appearing context menu.
1618 \end_layout
1619
1620 \begin_layout Standard
1621 The 
1622 \begin_inset Flex Noun
1623 status collapsed
1624
1625 \begin_layout Plain Layout
1626 MIME
1627 \end_layout
1628
1629 \end_inset
1630
1631  type of a format is optional,
1632  but if it is specified,
1633  it must be unique across all formats.
1634  It is used to detect files of this format from the file contents.
1635  For some important file formats there is no MIME type officially registered with the 
1636 \begin_inset CommandInset href
1637 LatexCommand href
1638 name "IANA"
1639 target "http://www.iana.org/assignments/media-types/"
1640 literal "false"
1641
1642 \end_inset
1643
1644 .
1645  Therefore \SpecialChar LyX
1646  uses the extended list of MIME types as specified by 
1647 \begin_inset CommandInset href
1648 LatexCommand href
1649 name "freedesktop.org"
1650 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1651 literal "false"
1652
1653 \end_inset
1654
1655 .
1656 \end_layout
1657
1658 \begin_layout Standard
1659 The 
1660 \begin_inset Flex Noun
1661 status collapsed
1662
1663 \begin_layout Plain Layout
1664 Document format
1665 \end_layout
1666
1667 \end_inset
1668
1669  option tells \SpecialChar LyX
1670  that a format is suitable for document export.
1671  If this is set and if a suitable conversion route exists (see 
1672 \begin_inset CommandInset ref
1673 LatexCommand ref
1674 reference "sec:Converters"
1675 nolink "false"
1676
1677 \end_inset
1678
1679 ),
1680  the format will appear in the 
1681 \begin_inset Flex Noun
1682 status collapsed
1683
1684 \begin_layout Plain Layout
1685 File\SpecialChar menuseparator
1686 Export
1687 \end_layout
1688
1689 \end_inset
1690
1691  menu.
1692  The format will also appear in the 
1693 \begin_inset Flex Noun
1694 status collapsed
1695
1696 \begin_layout Plain Layout
1697 Document\SpecialChar menuseparator
1698 View
1699 \end_layout
1700
1701 \end_inset
1702
1703  menu if a viewer is specified for the format.
1704  Pure image formats,
1705  such as 
1706 \begin_inset Flex Code
1707 status collapsed
1708
1709 \begin_layout Plain Layout
1710 png
1711 \end_layout
1712
1713 \end_inset
1714
1715 ,
1716  should not use this option.
1717  Formats that can both represent vector graphics and documents like 
1718 \begin_inset Flex Code
1719 status collapsed
1720
1721 \begin_layout Plain Layout
1722 pdf
1723 \end_layout
1724
1725 \end_inset
1726
1727  should use it.
1728 \end_layout
1729
1730 \begin_layout Standard
1731 The option 
1732 \begin_inset Flex Noun
1733 status collapsed
1734
1735 \begin_layout Plain Layout
1736 Vector graphics format
1737 \end_layout
1738
1739 \end_inset
1740
1741  tells \SpecialChar LyX
1742  that a format can contain vector graphics.
1743  This information is used to determine the target format of included graphics for 
1744 \begin_inset Flex Noun
1745 status collapsed
1746
1747 \begin_layout Plain Layout
1748 pdflatex
1749 \end_layout
1750
1751 \end_inset
1752
1753  export.
1754  Included graphics may need to be converted to either 
1755 \begin_inset Flex Noun
1756 status collapsed
1757
1758 \begin_layout Plain Layout
1759 pdf
1760 \end_layout
1761
1762 \end_inset
1763
1764 ,
1765  
1766 \begin_inset Flex Noun
1767 status collapsed
1768
1769 \begin_layout Plain Layout
1770 png
1771 \end_layout
1772
1773 \end_inset
1774
1775 ,
1776  or 
1777 \begin_inset Flex Noun
1778 status collapsed
1779
1780 \begin_layout Plain Layout
1781 jpg
1782 \end_layout
1783
1784 \end_inset
1785
1786 ,
1787  since 
1788 \begin_inset Flex Noun
1789 status collapsed
1790
1791 \begin_layout Plain Layout
1792 pdflatex
1793 \end_layout
1794
1795 \end_inset
1796
1797  cannot handle other image formats.
1798  If an included graphic is not already in 
1799 \begin_inset Flex Noun
1800 status collapsed
1801
1802 \begin_layout Plain Layout
1803 pdf
1804 \end_layout
1805
1806 \end_inset
1807
1808 ,
1809  
1810 \begin_inset Flex Noun
1811 status collapsed
1812
1813 \begin_layout Plain Layout
1814 png
1815 \end_layout
1816
1817 \end_inset
1818
1819 ,
1820  or 
1821 \begin_inset Flex Noun
1822 status collapsed
1823
1824 \begin_layout Plain Layout
1825 jpg
1826 \end_layout
1827
1828 \end_inset
1829
1830  format,
1831  it is converted to 
1832 \begin_inset Flex Noun
1833 status collapsed
1834
1835 \begin_layout Plain Layout
1836 pdf
1837 \end_layout
1838
1839 \end_inset
1840
1841  if the vector format option is set,
1842  and otherwise to 
1843 \begin_inset Flex Noun
1844 status collapsed
1845
1846 \begin_layout Plain Layout
1847 png
1848 \end_layout
1849
1850 \end_inset
1851
1852 .
1853 \end_layout
1854
1855 \begin_layout Section
1856 Copiers
1857 \end_layout
1858
1859 \begin_layout Standard
1860 Since all conversions from one format to another take place in \SpecialChar LyX
1861 's temporary directory,
1862  it is sometimes necessary to modify a file before copying it to the temporary directory in order that the conversion may be performed.
1863 \begin_inset Foot
1864 status collapsed
1865
1866 \begin_layout Plain Layout
1867 For example,
1868  the file may refer to other files—
1869 images,
1870  for example—
1871 using relative file names,
1872  and these may become invalid when the file is copied to the temporary directory.
1873 \end_layout
1874
1875 \end_inset
1876
1877  This is done by a Copier:
1878  It copies a file to (or from) the temporary directory and may modify it in the process.
1879 \end_layout
1880
1881 \begin_layout Standard
1882 The definitions of the copiers may use eight variables:
1883 \end_layout
1884
1885 \begin_layout Labeling
1886 \labelwidthstring 00.00.0000
1887 \begin_inset Flex Code
1888 status collapsed
1889
1890 \begin_layout Plain Layout
1891 $$s
1892 \end_layout
1893
1894 \end_inset
1895
1896  The \SpecialChar LyX
1897  system directory (e.
1898 \begin_inset space \thinspace{}
1899 \end_inset
1900
1901 g.
1902 \begin_inset space \space{}
1903 \end_inset
1904
1905
1906 \begin_inset Flex Noun
1907 status collapsed
1908
1909 \begin_layout Plain Layout
1910 /usr/share/lyx
1911 \end_layout
1912
1913 \end_inset
1914
1915 ).
1916 \end_layout
1917
1918 \begin_layout Labeling
1919 \labelwidthstring 00.00.0000
1920 \begin_inset Flex Code
1921 status collapsed
1922
1923 \begin_layout Plain Layout
1924 $$i
1925 \end_layout
1926
1927 \end_inset
1928
1929  The input file
1930 \end_layout
1931
1932 \begin_layout Labeling
1933 \labelwidthstring 00.00.0000
1934 \begin_inset Flex Code
1935 status collapsed
1936
1937 \begin_layout Plain Layout
1938 $$o
1939 \end_layout
1940
1941 \end_inset
1942
1943  The output file
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 $$b
1953 \end_layout
1954
1955 \end_inset
1956
1957  The base name (without filename extension) in the \SpecialChar LyX
1958  temporary directory
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 $$p
1968 \end_layout
1969
1970 \end_inset
1971
1972  The full directory path of the \SpecialChar LyX
1973  temporary directory
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 $$r
1983 \end_layout
1984
1985 \end_inset
1986
1987  The full pathname to the original \SpecialChar LyX
1988  file being processed
1989 \end_layout
1990
1991 \begin_layout Labeling
1992 \labelwidthstring 00.00.0000
1993 \begin_inset Flex Code
1994 status collapsed
1995
1996 \begin_layout Plain Layout
1997 $$f
1998 \end_layout
1999
2000 \end_inset
2001
2002  The filename (without any directory path) of the \SpecialChar LyX
2003  file.
2004 \end_layout
2005
2006 \begin_layout Labeling
2007 \labelwidthstring 00.00.0000
2008 \begin_inset Flex Code
2009 status collapsed
2010
2011 \begin_layout Plain Layout
2012 $$l
2013 \end_layout
2014
2015 \end_inset
2016
2017  The `\SpecialChar LaTeX
2018  name'
2019 \end_layout
2020
2021 \begin_layout Standard
2022 The latter should be the filename as it would be used in a \SpecialChar LaTeX
2023 's 
2024 \series bold
2025
2026 \backslash
2027 include
2028 \series default
2029  command.
2030  It is relevant only when exporting files suitable for such inclusion.
2031 \end_layout
2032
2033 \begin_layout Standard
2034 Copiers can be used to do almost anything with output files.
2035  For example,
2036  suppose you want generated pdf files to be copied to a special directory,
2037  
2038 \begin_inset Flex Code
2039 status collapsed
2040
2041 \begin_layout Plain Layout
2042 /home/you/pdf/
2043 \end_layout
2044
2045 \end_inset
2046
2047 .
2048  Then you could write a shell script such as this one:
2049 \end_layout
2050
2051 \begin_layout Standard
2052 \begin_inset listings
2053 inline false
2054 status open
2055
2056 \begin_layout Plain Layout
2057
2058 #!/bin/bash
2059 \end_layout
2060
2061 \begin_layout Plain Layout
2062
2063 FROMFILE=$1
2064 \end_layout
2065
2066 \begin_layout Plain Layout
2067
2068 TOFILE=`basename $2`
2069 \end_layout
2070
2071 \begin_layout Plain Layout
2072
2073 cp $FROMFILE /home/you/pdf/$TOFILE
2074 \end_layout
2075
2076 \end_inset
2077
2078 Save it in your local \SpecialChar LyX
2079  directory—
2080 say,
2081  
2082 \begin_inset Flex Code
2083 status collapsed
2084
2085 \begin_layout Plain Layout
2086 /home/you/.lyx/scripts/pdfcopier.sh
2087 \end_layout
2088
2089 \end_inset
2090
2091
2092 and make it executable,
2093  if you need to do so on your platform.
2094  Then,
2095  in the 
2096 \begin_inset Flex Noun
2097 status collapsed
2098
2099 \begin_layout Plain Layout
2100 Tools\SpecialChar menuseparator
2101 Preferences
2102 \end_layout
2103
2104 \end_inset
2105
2106  dialog,
2107  select under 
2108 \begin_inset Flex Noun
2109 status collapsed
2110
2111 \begin_layout Plain Layout
2112 File Handling\SpecialChar menuseparator
2113 File formats
2114 \end_layout
2115
2116 \end_inset
2117
2118  the 
2119 \begin_inset Flex Noun
2120 status collapsed
2121
2122 \begin_layout Plain Layout
2123 PDF(pdflatex)
2124 \end_layout
2125
2126 \end_inset
2127
2128  format—
2129 or one of the other pdf formats—
2130 and enter 
2131 \begin_inset Flex Code
2132 status collapsed
2133
2134 \begin_layout Plain Layout
2135 pdfcopier.sh $$i $$o
2136 \end_layout
2137
2138 \end_inset
2139
2140  into the 
2141 \begin_inset Flex Noun
2142 status collapsed
2143
2144 \begin_layout Plain Layout
2145 Copier
2146 \end_layout
2147
2148 \end_inset
2149
2150  field.
2151  
2152 \end_layout
2153
2154 \begin_layout Standard
2155 Copiers are used by \SpecialChar LyX
2156  in various of its own conversions.
2157  For example,
2158  if appropriate programs are found,
2159  \SpecialChar LyX
2160  will automatically install copiers for the 
2161 \begin_inset Flex Noun
2162 status collapsed
2163
2164 \begin_layout Plain Layout
2165 HTML
2166 \end_layout
2167
2168 \end_inset
2169
2170  and 
2171 \begin_inset Flex Noun
2172 status collapsed
2173
2174 \begin_layout Plain Layout
2175 HTML
2176 \begin_inset space ~
2177 \end_inset
2178
2179 (MS Word)
2180 \end_layout
2181
2182 \end_inset
2183
2184  formats.
2185  When these formats are exported,
2186  the copier sees that not just the main HTML file but various associated files (style files,
2187  images,
2188  etc.) are also copied.
2189  All these files are written to a subdirectory of the directory in which the original \SpecialChar LyX
2190  file was found.
2191 \begin_inset Foot
2192 status collapsed
2193
2194 \begin_layout Plain Layout
2195 This copier can be customized.
2196  The optional 
2197 \begin_inset Quotes eld
2198 \end_inset
2199
2200 -e
2201 \begin_inset Quotes erd
2202 \end_inset
2203
2204  argument takes a comma-separated list of extensions to be copied;
2205  if it is omitted,
2206  all files will be copied.
2207  The 
2208 \begin_inset Quotes eld
2209 \end_inset
2210
2211 -t
2212 \begin_inset Quotes erd
2213 \end_inset
2214
2215  argument determines the extension added to the generated directory.
2216  By default,
2217  it is 
2218 \begin_inset Quotes eld
2219 \end_inset
2220
2221
2222 \begin_inset Flex Noun
2223 status collapsed
2224
2225 \begin_layout Plain Layout
2226 LyXconv
2227 \end_layout
2228
2229 \end_inset
2230
2231
2232 \begin_inset Quotes erd
2233 \end_inset
2234
2235 ,
2236  so HTML generated from 
2237 \begin_inset Flex Noun
2238 status collapsed
2239
2240 \begin_layout Plain Layout
2241 /path/to/filename.lyx
2242 \end_layout
2243
2244 \end_inset
2245
2246  will end up in 
2247 \begin_inset Flex Noun
2248 status collapsed
2249
2250 \begin_layout Plain Layout
2251 /path/to/filename.html.LyXconv
2252 \end_layout
2253
2254 \end_inset
2255
2256 .
2257  
2258 \end_layout
2259
2260 \end_inset
2261
2262
2263 \end_layout
2264
2265 \begin_layout Section
2266 Converters
2267 \begin_inset CommandInset label
2268 LatexCommand label
2269 name "sec:Converters"
2270
2271 \end_inset
2272
2273
2274 \end_layout
2275
2276 \begin_layout Standard
2277 You can define your own Converters to convert files between different formats.
2278  This is done in the 
2279 \begin_inset Flex Noun
2280 status collapsed
2281
2282 \begin_layout Plain Layout
2283 Tools\SpecialChar menuseparator
2284 Preferences\SpecialChar menuseparator
2285 File Handling\SpecialChar menuseparator
2286 Converters
2287 \end_layout
2288
2289 \end_inset
2290
2291  dialog.
2292 \end_layout
2293
2294 \begin_layout Standard
2295 To define a new converter,
2296  select the 
2297 \begin_inset Flex Noun
2298 status collapsed
2299
2300 \begin_layout Plain Layout
2301 From
2302 \begin_inset space ~
2303 \end_inset
2304
2305 format
2306 \end_layout
2307
2308 \end_inset
2309
2310  and 
2311 \begin_inset Flex Noun
2312 status collapsed
2313
2314 \begin_layout Plain Layout
2315 To
2316 \begin_inset space ~
2317 \end_inset
2318
2319 format
2320 \end_layout
2321
2322 \end_inset
2323
2324  from the drop-down lists,
2325  enter the command needed for the conversion,
2326  and then press the 
2327 \begin_inset Flex Noun
2328 status collapsed
2329
2330 \begin_layout Plain Layout
2331 Add
2332 \end_layout
2333
2334 \end_inset
2335
2336  button.
2337  Several variables can be used in the definition of converters:
2338 \end_layout
2339
2340 \begin_layout Labeling
2341 \labelwidthstring 00.00.0000
2342 \begin_inset Flex Code
2343 status collapsed
2344
2345 \begin_layout Plain Layout
2346 $$s
2347 \end_layout
2348
2349 \end_inset
2350
2351  The \SpecialChar LyX
2352  system directory
2353 \end_layout
2354
2355 \begin_layout Labeling
2356 \labelwidthstring 00.00.0000
2357 \begin_inset Flex Code
2358 status collapsed
2359
2360 \begin_layout Plain Layout
2361 $$i
2362 \end_layout
2363
2364 \end_inset
2365
2366  The input file
2367 \end_layout
2368
2369 \begin_layout Labeling
2370 \labelwidthstring 00.00.0000
2371 \begin_inset Flex Code
2372 status collapsed
2373
2374 \begin_layout Plain Layout
2375 $$o
2376 \end_layout
2377
2378 \end_inset
2379
2380  The output file
2381 \end_layout
2382
2383 \begin_layout Labeling
2384 \labelwidthstring 00.00.0000
2385 \begin_inset Flex Code
2386 status collapsed
2387
2388 \begin_layout Plain Layout
2389 $$b
2390 \end_layout
2391
2392 \end_inset
2393
2394  The base filename of the input file (i.
2395 \begin_inset space \thinspace{}
2396 \end_inset
2397
2398 g.,
2399  without the extension)
2400 \end_layout
2401
2402 \begin_layout Labeling
2403 \labelwidthstring 00.00.0000
2404 \begin_inset Flex Code
2405 status collapsed
2406
2407 \begin_layout Plain Layout
2408 $$p
2409 \end_layout
2410
2411 \end_inset
2412
2413  The path to the input file
2414 \end_layout
2415
2416 \begin_layout Labeling
2417 \labelwidthstring 00.00.0000
2418 \begin_inset Flex Code
2419 status collapsed
2420
2421 \begin_layout Plain Layout
2422 $$r
2423 \end_layout
2424
2425 \end_inset
2426
2427  The path to the original input file (this is different from $$p when a chain of converters is called)
2428 \end_layout
2429
2430 \begin_layout Labeling
2431 \labelwidthstring 00.00.0000
2432 \begin_inset Flex Code
2433 status collapsed
2434
2435 \begin_layout Plain Layout
2436 $$e
2437 \end_layout
2438
2439 \end_inset
2440
2441  The iconv name for the encoding of the document.
2442 \end_layout
2443
2444 \begin_layout Standard
2445 In the 
2446 \begin_inset Flex Noun
2447 status collapsed
2448
2449 \begin_layout Plain Layout
2450 Extra
2451 \begin_inset space ~
2452 \end_inset
2453
2454 Flag
2455 \end_layout
2456
2457 \end_inset
2458
2459  field you can enter the following flags,
2460  separated by commas:
2461 \end_layout
2462
2463 \begin_layout Labeling
2464 \labelwidthstring 00.00.0000
2465 \begin_inset Flex Code
2466 status collapsed
2467
2468 \begin_layout Plain Layout
2469 latex=flavor
2470 \end_layout
2471
2472 \end_inset
2473
2474  This converter runs some form of \SpecialChar LaTeX
2475 .
2476  This will make \SpecialChar LyX
2477 's \SpecialChar LaTeX
2478  error logs available.
2479  The optional 
2480 \begin_inset Flex Code
2481 status open
2482
2483 \begin_layout Plain Layout
2484 flavor
2485 \end_layout
2486
2487 \end_inset
2488
2489  value specifies the form of \SpecialChar LaTeX
2490  that is run (
2491 \begin_inset Flex Code
2492 status open
2493
2494 \begin_layout Plain Layout
2495 latex,
2496  pdflatex,
2497  platex,
2498  xetex,
2499  luatex
2500 \end_layout
2501
2502 \end_inset
2503
2504 ).
2505  If no value is specified,
2506  
2507 \begin_inset Flex Code
2508 status open
2509
2510 \begin_layout Plain Layout
2511 latex
2512 \end_layout
2513
2514 \end_inset
2515
2516  is used.
2517 \end_layout
2518
2519 \begin_layout Labeling
2520 \labelwidthstring 00.00.0000
2521 \begin_inset Flex Code
2522 status collapsed
2523
2524 \begin_layout Plain Layout
2525 needauth
2526 \end_layout
2527
2528 \end_inset
2529
2530  This converter is considered non-safe and needs authorization by the user.
2531  Depending on the settings in 
2532 \family sans
2533 Tools\SpecialChar menuseparator
2534 Preferences\SpecialChar menuseparator
2535 File Handling\SpecialChar menuseparator
2536 Converters
2537 \family default
2538 ,
2539  users will (a.) be asked whether they trust the current document temporarily,
2540  permanently,
2541  or not,
2542  (b.) be informed that conversion is not possible due to security concerns,
2543  or (c.) not be informed as they gave permanent consent.
2544  Set this flag for converters that might execute arbitrary programs.
2545 \end_layout
2546
2547 \begin_layout Labeling
2548 \labelwidthstring 00.00.0000
2549 \begin_inset Flex Code
2550 status collapsed
2551
2552 \begin_layout Plain Layout
2553 needaux=flavor
2554 \end_layout
2555
2556 \end_inset
2557
2558  Needs the \SpecialChar LaTeX
2559  
2560 \begin_inset Flex Noun
2561 status collapsed
2562
2563 \begin_layout Plain Layout
2564 .aux
2565 \end_layout
2566
2567 \end_inset
2568
2569  file for the conversion.
2570  The optional 
2571 \begin_inset Flex Code
2572 status open
2573
2574 \begin_layout Plain Layout
2575 flavor
2576 \end_layout
2577
2578 \end_inset
2579
2580  value specifies the form of \SpecialChar LaTeX
2581  that is run in order to generate the 
2582 \begin_inset Flex Noun
2583 status collapsed
2584
2585 \begin_layout Plain Layout
2586 .aux
2587 \end_layout
2588
2589 \end_inset
2590
2591  file (
2592 \begin_inset Flex Code
2593 status open
2594
2595 \begin_layout Plain Layout
2596 latex,
2597  pdflatex,
2598  platex,
2599  xetex,
2600  luatex
2601 \end_layout
2602
2603 \end_inset
2604
2605 ).
2606  If no value is specified,
2607  
2608 \begin_inset Flex Code
2609 status open
2610
2611 \begin_layout Plain Layout
2612 latex
2613 \end_layout
2614
2615 \end_inset
2616
2617  is used.
2618 \end_layout
2619
2620 \begin_layout Labeling
2621 \labelwidthstring 00.00.0000
2622 \begin_inset Flex Code
2623 status collapsed
2624
2625 \begin_layout Plain Layout
2626 nice
2627 \end_layout
2628
2629 \end_inset
2630
2631  Needs a 
2632 \begin_inset Quotes eld
2633 \end_inset
2634
2635 nice
2636 \begin_inset Quotes erd
2637 \end_inset
2638
2639  file from the backend,
2640  which in practice means a \SpecialChar LaTeX
2641  file like the one we would export,
2642  without 
2643 \begin_inset Flex Code
2644 status collapsed
2645
2646 \begin_layout Plain Layout
2647 input@path
2648 \end_layout
2649
2650 \end_inset
2651
2652 .
2653 \end_layout
2654
2655 \begin_layout Labeling
2656 \labelwidthstring 00.00.0000
2657 \begin_inset Flex Code
2658 status collapsed
2659
2660 \begin_layout Plain Layout
2661 xml
2662 \end_layout
2663
2664 \end_inset
2665
2666  Output is XML.
2667 \end_layout
2668
2669 \begin_layout Standard
2670 The following three flags are not really flags at all because they take an argument in the 
2671 \begin_inset Flex Noun
2672 status collapsed
2673
2674 \begin_layout Plain Layout
2675 key
2676 \begin_inset space ~
2677 \end_inset
2678
2679 =
2680 \begin_inset space ~
2681 \end_inset
2682
2683 value
2684 \end_layout
2685
2686 \end_inset
2687
2688  format:
2689 \end_layout
2690
2691 \begin_layout Labeling
2692 \labelwidthstring 00.00.0000
2693 \begin_inset Flex Code
2694 status collapsed
2695
2696 \begin_layout Plain Layout
2697 hyperref-driver
2698 \end_layout
2699
2700 \end_inset
2701
2702  The name of the driver that needs to be loaded with the 
2703 \family sans
2704 hyperref
2705 \family default
2706  package for this converter.
2707  The loading of the correct driver is necessary to get some PDF-specific features.
2708  See the 
2709 \family sans
2710 hyperref
2711 \family default
2712  manual for details.
2713 \end_layout
2714
2715 \begin_layout Labeling
2716 \labelwidthstring 00.00.0000
2717 \begin_inset Flex Code
2718 status collapsed
2719
2720 \begin_layout Plain Layout
2721 parselog
2722 \end_layout
2723
2724 \end_inset
2725
2726  If set,
2727  the converter's standard error will be redirected to a file 
2728 \begin_inset Flex Code
2729 status collapsed
2730
2731 \begin_layout Plain Layout
2732 infile.out
2733 \end_layout
2734
2735 \end_inset
2736
2737 ,
2738  and the script given as argument will be run as:
2739  
2740 \begin_inset Flex Code
2741 status collapsed
2742
2743 \begin_layout Plain Layout
2744 script < infile.out > infile.log
2745 \end_layout
2746
2747 \end_inset
2748
2749 .
2750  The argument may contain 
2751 \begin_inset Flex Code
2752 status collapsed
2753
2754 \begin_layout Plain Layout
2755 $$s
2756 \end_layout
2757
2758 \end_inset
2759
2760 .
2761 \end_layout
2762
2763 \begin_layout Labeling
2764 \labelwidthstring 00.00.0000
2765 \begin_inset Flex Code
2766 status collapsed
2767
2768 \begin_layout Plain Layout
2769 resultdir
2770 \end_layout
2771
2772 \end_inset
2773
2774  The name of the directory in which the converter will dump the generated files.
2775  \SpecialChar LyX
2776  will not create this directory,
2777  and it does not copy anything into it,
2778  though it will copy this directory to the destination.
2779  The argument may contain 
2780 \begin_inset Flex Code
2781 status collapsed
2782
2783 \begin_layout Plain Layout
2784 $$b
2785 \end_layout
2786
2787 \end_inset
2788
2789 ,
2790  which will be replaced by the base name of the input and output files,
2791  respectively,
2792  when the directory is copied.
2793 \begin_inset Newline newline
2794 \end_inset
2795
2796 Note that resultdir and usetempdir make no sense together.
2797  The latter will be ignored if the former is given.
2798 \end_layout
2799
2800 \begin_layout Labeling
2801 \labelwidthstring 00.00.0000
2802 \begin_inset Flex Code
2803 status collapsed
2804
2805 \begin_layout Plain Layout
2806 resultfile
2807 \end_layout
2808
2809 \end_inset
2810
2811  Determines the output file name and may,
2812  contain 
2813 \begin_inset Flex Code
2814 status collapsed
2815
2816 \begin_layout Plain Layout
2817 $$b
2818 \end_layout
2819
2820 \end_inset
2821
2822 .
2823  Sensible only with resultdir and optional even then;
2824  if not given,
2825  it defaults to `index'.
2826 \end_layout
2827
2828 \begin_layout Standard
2829 A suitable hyperref-driver is set for some converters that are installed with \SpecialChar LyX
2830 .
2831  The last three flags,
2832  however,
2833  are presently not used in any of the pre-installed converters.
2834 \end_layout
2835
2836 \begin_layout Standard
2837 You do not have to define converters for all formats between which you want to convert.
2838  For example,
2839  you will note that there is no `\SpecialChar LyX
2840  to PostScript' converter,
2841  but \SpecialChar LyX
2842  will export PostScript.
2843  It does so by first creating a \SpecialChar LaTeX
2844  file (no converter needs to be defined for this) which is then converted to DVI using the `\SpecialChar LaTeX
2845  to DVI' converter,
2846  and finally converting the resulting DVI file to PostScript.
2847  \SpecialChar LyX
2848  finds such `chains' of converters automatically,
2849  and it will always choose the shortest possible chain.
2850  You can,
2851  though,
2852  still define multiple conversion methods between file formats.
2853  For example,
2854  the standard \SpecialChar LyX
2855  configuration provides five ways to convert \SpecialChar LaTeX
2856  to PDF:
2857 \end_layout
2858
2859 \begin_layout Enumerate
2860 Directly,
2861  using 
2862 \begin_inset Flex Noun
2863 status collapsed
2864
2865 \begin_layout Plain Layout
2866 pdflatex
2867 \end_layout
2868
2869 \end_inset
2870
2871
2872 \end_layout
2873
2874 \begin_layout Enumerate
2875 via (DVI and) PostScript,
2876  using 
2877 \begin_inset Flex Noun
2878 status collapsed
2879
2880 \begin_layout Plain Layout
2881 ps2pdf
2882 \end_layout
2883
2884 \end_inset
2885
2886
2887 \end_layout
2888
2889 \begin_layout Enumerate
2890 via DVI,
2891  using 
2892 \begin_inset Flex Noun
2893 status collapsed
2894
2895 \begin_layout Plain Layout
2896 dvipdfm
2897 \end_layout
2898
2899 \end_inset
2900
2901
2902 \end_layout
2903
2904 \begin_layout Enumerate
2905 directly using 
2906 \begin_inset Flex Noun
2907 status collapsed
2908
2909 \begin_layout Plain Layout
2910 Xe\SpecialChar TeX
2911
2912 \end_layout
2913
2914 \end_inset
2915
2916
2917 \end_layout
2918
2919 \begin_layout Enumerate
2920 directly using 
2921 \begin_inset Flex Noun
2922 status collapsed
2923
2924 \begin_layout Plain Layout
2925 Lua\SpecialChar TeX
2926
2927 \end_layout
2928
2929 \end_inset
2930
2931
2932 \end_layout
2933
2934 \begin_layout Standard
2935 To define such alternate chains,
2936  you must define multiple target `file formats',
2937  as described in 
2938 \begin_inset CommandInset ref
2939 LatexCommand ref
2940 reference "sec:Formats"
2941 nolink "false"
2942
2943 \end_inset
2944
2945 .
2946  For example,
2947  in the standard configuration,
2948  the formats named 
2949 \begin_inset Flex Noun
2950 status collapsed
2951
2952 \begin_layout Plain Layout
2953 pdf
2954 \end_layout
2955
2956 \end_inset
2957
2958  (for 
2959 \begin_inset Flex Noun
2960 status collapsed
2961
2962 \begin_layout Plain Layout
2963 ps2pdf
2964 \end_layout
2965
2966 \end_inset
2967
2968 ),
2969  
2970 \begin_inset Flex Noun
2971 status collapsed
2972
2973 \begin_layout Plain Layout
2974 pdf2
2975 \end_layout
2976
2977 \end_inset
2978
2979  (for 
2980 \begin_inset Flex Noun
2981 status collapsed
2982
2983 \begin_layout Plain Layout
2984 pdflatex
2985 \end_layout
2986
2987 \end_inset
2988
2989 ),
2990  
2991 \begin_inset Flex Noun
2992 status collapsed
2993
2994 \begin_layout Plain Layout
2995 pdf3
2996 \end_layout
2997
2998 \end_inset
2999
3000  (for 
3001 \begin_inset Flex Noun
3002 status collapsed
3003
3004 \begin_layout Plain Layout
3005 dvipdfm
3006 \end_layout
3007
3008 \end_inset
3009
3010 ),
3011  
3012 \begin_inset Flex Noun
3013 status collapsed
3014
3015 \begin_layout Plain Layout
3016 pdf4
3017 \end_layout
3018
3019 \end_inset
3020
3021  (for 
3022 \begin_inset Flex Noun
3023 status collapsed
3024
3025 \begin_layout Plain Layout
3026 Xe\SpecialChar TeX
3027
3028 \end_layout
3029
3030 \end_inset
3031
3032 ),
3033  and 
3034 \begin_inset Flex Noun
3035 status collapsed
3036
3037 \begin_layout Plain Layout
3038 pdf5
3039 \end_layout
3040
3041 \end_inset
3042
3043  (for 
3044 \begin_inset Flex Noun
3045 status collapsed
3046
3047 \begin_layout Plain Layout
3048 Lua\SpecialChar TeX
3049
3050 \end_layout
3051
3052 \end_inset
3053
3054 ) are defined,
3055  all of which share the extension 
3056 \begin_inset Flex Noun
3057 status collapsed
3058
3059 \begin_layout Plain Layout
3060 .pdf
3061 \end_layout
3062
3063 \end_inset
3064
3065 ,
3066  and which correspond to the conversion methods just mentioned.
3067 \end_layout
3068
3069 \begin_layout Chapter
3070 Internationalizing \SpecialChar LyX
3071
3072 \begin_inset CommandInset label
3073 LatexCommand label
3074 name "cha:Internationalizing-LyX"
3075
3076 \end_inset
3077
3078
3079 \end_layout
3080
3081 \begin_layout Standard
3082 \SpecialChar LyX
3083  supports using a translated interface.
3084  Last time we checked,
3085  \SpecialChar LyX
3086  provided text in thirty languages.
3087  The language of choice is called your 
3088 \emph on
3089 locale
3090 \emph default
3091 .
3092  (For further reading on locale settings,
3093  see also the documentation for locale that comes with your operating system.
3094  For Linux,
3095  the manual page for 
3096 \begin_inset Flex Code
3097 status collapsed
3098
3099 \begin_layout Plain Layout
3100 locale(5)
3101 \end_layout
3102
3103 \end_inset
3104
3105  could be a good place to start).
3106 \end_layout
3107
3108 \begin_layout Standard
3109 Notice that these translations will work,
3110  but do contain a few flaws.
3111  In particular,
3112  all dialogs have been designed with the English text in mind,
3113  which means that some of the translated text will be too large to fit within the space allocated.
3114  This is only a display problem and will not cause any harm.
3115  Also,
3116  you will find that some of the translations do not define shortcut keys for everything.
3117  Sometimes,
3118  there are simply not enough free letters to do it.
3119  Other times,
3120  the translator just hasn't got around to doing it yet.
3121  Our localization team,
3122  which you may wish to join,
3123 \begin_inset Foot
3124 status collapsed
3125
3126 \begin_layout Plain Layout
3127 If you are a fluent speaker of a language other than English,
3128  joining these teams is a great way to give back to the \SpecialChar LyX
3129  community!
3130 \end_layout
3131
3132 \end_inset
3133
3134  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3135 .
3136 \end_layout
3137
3138 \begin_layout Section
3139 Translating \SpecialChar LyX
3140
3141 \end_layout
3142
3143 \begin_layout Subsection
3144 Translating the graphical user interface (text messages).
3145 \end_layout
3146
3147 \begin_layout Standard
3148 \SpecialChar LyX
3149  uses the GNU 
3150 \begin_inset Flex Code
3151 status collapsed
3152
3153 \begin_layout Plain Layout
3154 gettext
3155 \end_layout
3156
3157 \end_inset
3158
3159  library to handle the internationalization of the interface.
3160  To have \SpecialChar LyX
3161  speak your favorite language in all menus and dialogs,
3162  you need a 
3163 \begin_inset Flex Code
3164 status collapsed
3165
3166 \begin_layout Plain Layout
3167 po
3168 \end_layout
3169
3170 \end_inset
3171
3172 -file for that language.
3173  When this is available,
3174  you'll have to generate a 
3175 \begin_inset Flex Code
3176 status collapsed
3177
3178 \begin_layout Plain Layout
3179 mo
3180 \end_layout
3181
3182 \end_inset
3183
3184 -file from it and install the 
3185 \begin_inset Flex Code
3186 status collapsed
3187
3188 \begin_layout Plain Layout
3189 mo
3190 \end_layout
3191
3192 \end_inset
3193
3194 -file.
3195  The process of doing all of this is explained in the documentation for GNU 
3196 \begin_inset Flex Code
3197 status collapsed
3198
3199 \begin_layout Plain Layout
3200 gettext
3201 \end_layout
3202
3203 \end_inset
3204
3205 .
3206  It is possible to do this just for yourself,
3207  but if you're going to do it,
3208  you might as well share the results of your labors with the rest of the \SpecialChar LyX
3209  community.
3210  Send a message to the \SpecialChar LyX
3211  developers' list for more information about how to proceed.
3212 \end_layout
3213
3214 \begin_layout Standard
3215 In short,
3216  this is what you should do (xx denotes the language code):
3217 \end_layout
3218
3219 \begin_layout Itemize
3220 Check out the \SpecialChar LyX
3221  source code.
3222  (See the 
3223 \begin_inset CommandInset href
3224 LatexCommand href
3225 name "information on the web"
3226 target "https://www.lyx.org/HowToUseGIT"
3227 literal "false"
3228
3229 \end_inset
3230
3231 .)
3232 \end_layout
3233
3234 \begin_layout Itemize
3235 Copy the file 
3236 \begin_inset Flex Code
3237 status collapsed
3238
3239 \begin_layout Plain Layout
3240 lyx.pot
3241 \end_layout
3242
3243 \end_inset
3244
3245  to the folder of the 
3246 \begin_inset Flex Code
3247 status collapsed
3248
3249 \begin_layout Plain Layout
3250 **.po
3251 \end_layout
3252
3253 \end_inset
3254
3255  files.
3256  Then rename it to 
3257 \begin_inset Flex Code
3258 status collapsed
3259
3260 \begin_layout Plain Layout
3261 xx.po
3262 \end_layout
3263
3264 \end_inset
3265
3266 .
3267  (If 
3268 \begin_inset Flex Code
3269 status collapsed
3270
3271 \begin_layout Plain Layout
3272 lyx.pot
3273 \end_layout
3274
3275 \end_inset
3276
3277  doesn't exist anywhere,
3278  it can be remade with the console command 
3279 \begin_inset Flex Code
3280 status collapsed
3281
3282 \begin_layout Plain Layout
3283 make lyx.pot
3284 \end_layout
3285
3286 \end_inset
3287
3288  in that directory,
3289  or you can use an existing po-file for some other language as a template).
3290 \end_layout
3291
3292 \begin_layout Itemize
3293 Edit 
3294 \begin_inset Flex Code
3295 status collapsed
3296
3297 \begin_layout Plain Layout
3298 xx.po
3299 \end_layout
3300
3301 \end_inset
3302
3303 .
3304 \begin_inset Foot
3305 status collapsed
3306
3307 \begin_layout Plain Layout
3308 This is just a text file,
3309  so it can be edited in any text editor.
3310  But there are also specialized programs that support such editing,
3311  such as 
3312 \family typewriter
3313 Poedit
3314 \family default
3315  (for all platforms) or 
3316 \family typewriter
3317 KBabel
3318 \family default
3319  (for KDE).
3320  
3321 \family typewriter
3322 Emacs
3323 \family default
3324  contains a `mode' for editing 
3325 \begin_inset Flex Code
3326 status collapsed
3327
3328 \begin_layout Plain Layout
3329 po
3330 \end_layout
3331
3332 \end_inset
3333
3334  files,
3335  as well,
3336  see 
3337 \begin_inset Flex URL
3338 status open
3339
3340 \begin_layout Plain Layout
3341
3342 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3343 \end_layout
3344
3345 \end_inset
3346
3347 .
3348 \end_layout
3349
3350 \end_inset
3351
3352  For some menu- and widget-labels,
3353  there are also shortcut keys that should be translated.
3354  Those keys are marked after a `|',
3355  and should be translated according to the words and phrases of the language.
3356  You should also fill also out the information at the beginning of the new 
3357 \begin_inset Flex Code
3358 status collapsed
3359
3360 \begin_layout Plain Layout
3361 po
3362 \end_layout
3363
3364 \end_inset
3365
3366 -file with your email-address,
3367  etc.,
3368  so people know where to reach you with suggestions and entertaining flames.
3369 \end_layout
3370
3371 \begin_layout Standard
3372 If you are just doing this on your own,
3373  then:
3374 \end_layout
3375
3376 \begin_layout Itemize
3377 Generate 
3378 \begin_inset Flex Code
3379 status collapsed
3380
3381 \begin_layout Plain Layout
3382 xx.mo
3383 \end_layout
3384
3385 \end_inset
3386
3387 .
3388  This can be done with 
3389 \begin_inset Flex Code
3390 status collapsed
3391
3392 \begin_layout Plain Layout
3393 msgfmt -o xx.mo < xx.po
3394 \end_layout
3395
3396 \end_inset
3397
3398 .
3399 \end_layout
3400
3401 \begin_layout Itemize
3402 Copy the 
3403 \begin_inset Flex Code
3404 status collapsed
3405
3406 \begin_layout Plain Layout
3407 mo
3408 \end_layout
3409
3410 \end_inset
3411
3412 -file to your locale-tree,
3413  at the correct directory for application messages for the language
3414 \series bold
3415  
3416 \series default
3417 xx,
3418  and under the name 
3419 \begin_inset Flex Code
3420 status collapsed
3421
3422 \begin_layout Plain Layout
3423 lyx.mo
3424 \end_layout
3425
3426 \end_inset
3427
3428  (e.
3429 \begin_inset space \thinspace{}
3430 \end_inset
3431
3432 g.
3433 \begin_inset space \space{}
3434 \end_inset
3435
3436
3437 \begin_inset Flex Code
3438 status collapsed
3439
3440 \begin_layout Plain Layout
3441 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3442 \end_layout
3443
3444 \end_inset
3445
3446
3447 \series bold
3448 .
3449 \end_layout
3450
3451 \begin_layout Standard
3452 As said,
3453  however,
3454  it would be best if the new 
3455 \begin_inset Flex Code
3456 status collapsed
3457
3458 \begin_layout Plain Layout
3459 po
3460 \end_layout
3461
3462 \end_inset
3463
3464  file could be added to the \SpecialChar LyX
3465  distribution,
3466  so others can use it.
3467  Adding it involves making additional changes to \SpecialChar LyX
3468 .
3469  So send an email to the developers' mailing list if you're interested in doing that.
3470 \end_layout
3471
3472 \begin_layout Subsubsection
3473 Ambiguous messages
3474 \end_layout
3475
3476 \begin_layout Standard
3477 Sometimes it turns out that one English message needs to be translated into different messages in the target language.
3478  One example is the message 
3479 \begin_inset Flex Code
3480 status collapsed
3481
3482 \begin_layout Plain Layout
3483 To
3484 \end_layout
3485
3486 \end_inset
3487
3488  which has the German translation 
3489 \lang german
3490 Nach
3491 \lang english
3492  or 
3493 \lang german
3494 Bis
3495 \lang english
3496 ,
3497  depending upon exactly what the English 
3498 \begin_inset Quotes eld
3499 \end_inset
3500
3501 to
3502 \begin_inset Quotes erd
3503 \end_inset
3504
3505  means.
3506  GNU 
3507 \begin_inset Flex Code
3508 status collapsed
3509
3510 \begin_layout Plain Layout
3511 gettext
3512 \end_layout
3513
3514 \end_inset
3515
3516  does not handle such ambiguous translations.
3517  Therefore you have to add some context information to the message:
3518  Instead of 
3519 \begin_inset Flex Code
3520 status collapsed
3521
3522 \begin_layout Plain Layout
3523 To
3524 \end_layout
3525
3526 \end_inset
3527
3528  it becomes 
3529 \begin_inset Flex Code
3530 status collapsed
3531
3532 \begin_layout Plain Layout
3533 To[[as in 'From format x to format y']]
3534 \end_layout
3535
3536 \end_inset
3537
3538  and 
3539 \begin_inset Flex Code
3540 status collapsed
3541
3542 \begin_layout Plain Layout
3543 To[[as in 'From page x to page y']].
3544 \end_layout
3545
3546 \end_inset
3547
3548  Now the two occurrences of 
3549 \begin_inset Flex Code
3550 status collapsed
3551
3552 \begin_layout Plain Layout
3553 To
3554 \end_layout
3555
3556 \end_inset
3557
3558  are different for 
3559 \begin_inset Flex Code
3560 status collapsed
3561
3562 \begin_layout Plain Layout
3563 gettext
3564 \end_layout
3565
3566 \end_inset
3567
3568  and can be translated correctly to 
3569 \lang german
3570 Nach
3571 \lang english
3572  and 
3573 \lang german
3574 Bis
3575 \lang english
3576 ,
3577  respectively.
3578 \end_layout
3579
3580 \begin_layout Standard
3581 Of course the context information needs to be stripped off the original message when no translation is used.
3582  Therefore you have to put it in double square brackets at the end of the message (see the example above).
3583  The translation mechanism of \SpecialChar LyX
3584  ensures that everything in double square brackets at the end of messages is removed before displaying the message.
3585 \end_layout
3586
3587 \begin_layout Subsection
3588 Translating the documentation.
3589 \end_layout
3590
3591 \begin_layout Standard
3592 The online documentation (in the 
3593 \begin_inset Flex Noun
3594 status collapsed
3595
3596 \begin_layout Plain Layout
3597 Help
3598 \end_layout
3599
3600 \end_inset
3601
3602 -menu) can (and should!) be translated.
3603  If there are translated versions of the documentation available
3604 \begin_inset Foot
3605 status collapsed
3606
3607 \begin_layout Plain Layout
3608 As of March 2008,
3609  at least some of the documents have been translated into fourteen languages,
3610  with the Tutorial available in a few more.
3611 \end_layout
3612
3613 \end_inset
3614
3615  and the locale is set accordingly,
3616  these will be used automagically by \SpecialChar LyX
3617 .
3618  \SpecialChar LyX
3619  looks for translated versions as 
3620 \begin_inset Flex Code
3621 status collapsed
3622
3623 \begin_layout Plain Layout
3624 LyXDir/doc/xx/DocName.lyx
3625 \end_layout
3626
3627 \end_inset
3628
3629 ,
3630  where 
3631 \begin_inset Flex Code
3632 status collapsed
3633
3634 \begin_layout Plain Layout
3635 xx
3636 \end_layout
3637
3638 \end_inset
3639
3640  is the code for the language currently in use.
3641  If there are no translated documents,
3642  the default English versions will be displayed.
3643  Note that the translated versions must have the same filenames (
3644 \begin_inset Flex Code
3645 status collapsed
3646
3647 \begin_layout Plain Layout
3648 DocName
3649 \end_layout
3650
3651 \end_inset
3652
3653  above) as the original.
3654  If you feel up to translating the documentation (an excellent way to proof-read the original documentation by the way!),
3655  there are a few things you should do right away:
3656 \end_layout
3657
3658 \begin_layout Itemize
3659 Check out the documentation translation web page at 
3660 \begin_inset CommandInset href
3661 LatexCommand href
3662 name "https://www.lyx.org/Translation"
3663 target "https://www.lyx.org/Translation"
3664 literal "false"
3665
3666 \end_inset
3667
3668 .
3669  That way,
3670  you can find out which (if any) documents have already been translated into your language.
3671  You can also find out who (if anyone) is organizing the effort to translate the documentation into your language.
3672  If no one is organizing the effort,
3673  please let us know that you're interested.
3674 \end_layout
3675
3676 \begin_layout Standard
3677 Once you get to actually translating,
3678  here's a few hints for you that may save you trouble:
3679 \end_layout
3680
3681 \begin_layout Itemize
3682 Join the documentation team!
3683  There is information on how to do that in 
3684 \begin_inset Flex Code
3685 status collapsed
3686
3687 \begin_layout Plain Layout
3688 Intro.lyx
3689 \end_layout
3690
3691 \end_inset
3692
3693  (
3694 \begin_inset Flex Noun
3695 status collapsed
3696
3697 \begin_layout Plain Layout
3698 Help\SpecialChar menuseparator
3699 Introduction
3700 \end_layout
3701
3702 \end_inset
3703
3704 ),
3705  which by the way is the first document you should translate.
3706 \end_layout
3707
3708 \begin_layout Itemize
3709 Learn the typographic conventions for the language you are translating to.
3710  Typography is an ancient art and over the centuries,
3711  a great variety of conventions have developed throughout different parts of the world.
3712  Also study the professional terminology amongst typographers in your country.
3713  Inventing your own terminology will only confuse the users.
3714  
3715 \emph on
3716 (Warning!
3717  Typography is addictive!)
3718 \end_layout
3719
3720 \begin_layout Itemize
3721 Make a copy of the document.
3722  This will be your working copy.
3723  You can use this as your personal translated help-file by placing it in your 
3724 \begin_inset Flex Code
3725 status collapsed
3726
3727 \begin_layout Plain Layout
3728 UserDir/doc/xx/
3729 \end_layout
3730
3731 \end_inset
3732
3733  directory.
3734 \begin_inset Note Greyedout
3735 status open
3736
3737 \begin_layout Plain Layout
3738
3739 \series bold
3740 Note:
3741
3742 \series default
3743  For a complex document with external material (images,
3744  etc.),
3745  if you make a copy e.
3746 \begin_inset space \thinspace{}
3747 \end_inset
3748
3749 g.
3750 \begin_inset space \space{}
3751 \end_inset
3752
3753 in a temp dir,
3754  beware that the links to external material may be broken when the document is moved to a different place.
3755  The best way is to retrieve the \SpecialChar LyX
3756  tree from git (see 
3757 \begin_inset Flex URL
3758 status collapsed
3759
3760 \begin_layout Plain Layout
3761
3762 https://www.lyx.org/HowToUseGIT
3763 \end_layout
3764
3765 \end_inset
3766
3767 ) and to edit the doc file in place.
3768 \end_layout
3769
3770 \end_inset
3771
3772
3773 \end_layout
3774
3775 \begin_layout Itemize
3776 Sometimes the original document (from the \SpecialChar LyX
3777  team) will be updated.
3778  Use the source viewer at 
3779 \begin_inset CommandInset href
3780 LatexCommand href
3781 name "https://www.lyx.org/trac/timeline"
3782 target "https://www.lyx.org/trac/timeline"
3783 literal "false"
3784
3785 \end_inset
3786
3787  to see what has been changed.
3788  That way you can easily see which parts of the translated document need to be updated.
3789 \end_layout
3790
3791 \begin_layout Standard
3792 If you ever find an error in the original document,
3793  fix it and notify the rest of the documentation team of the changes!
3794  (You didn't forget to join the documentation team,
3795  did you?)
3796 \end_layout
3797
3798 \begin_layout Standard
3799 \begin_inset Branch OutDated
3800 inverted 0
3801 status collapsed
3802
3803 \begin_layout Section
3804 International Keyboard Support
3805 \end_layout
3806
3807 \begin_layout Standard
3808
3809 \emph on
3810 [Editor's Note:
3811  The following section is by
3812 \emph default
3813  
3814 \shape smallcaps
3815 \emph on
3816 Ivan Schreter
3817 \shape default
3818 .
3819  It needs to be fixed to conform to the new Documentation Style sheet and to make use of the new v1.0 features.
3820  The whole thing also needs to be merged with the section following it.-jw It may also be badly out of date.-rh (2008)]
3821 \end_layout
3822
3823 \begin_layout Subsection
3824 Defining Own Keymaps:
3825  Keymap File Format
3826 \end_layout
3827
3828 \begin_layout Standard
3829 Let's look at a keyboard definition file a little closer.
3830  It is a plain text file defining
3831 \end_layout
3832
3833 \begin_layout Itemize
3834 key-to-key or key-to-string translations
3835 \end_layout
3836
3837 \begin_layout Itemize
3838 dead keys
3839 \end_layout
3840
3841 \begin_layout Itemize
3842 dead keys exceptions
3843 \end_layout
3844
3845 \begin_layout Standard
3846 To define key-to-key or key-to-string translation,
3847  use this command:
3848 \end_layout
3849
3850 \begin_layout Quotation
3851 \begin_inset Flex Code
3852 status collapsed
3853
3854 \begin_layout Plain Layout
3855
3856 \backslash
3857 kmap
3858 \end_layout
3859
3860 \end_inset
3861
3862  
3863 \begin_inset Flex Code
3864 status collapsed
3865
3866 \begin_layout Plain Layout
3867 key
3868 \end_layout
3869
3870 \end_inset
3871
3872  outstring 
3873 \end_layout
3874
3875 \begin_layout Standard
3876 where 
3877 \begin_inset Flex Code
3878 status collapsed
3879
3880 \begin_layout Plain Layout
3881 key
3882 \end_layout
3883
3884 \end_inset
3885
3886  is the key to be translated and 
3887 \begin_inset Flex Code
3888 status collapsed
3889
3890 \begin_layout Plain Layout
3891 outstring
3892 \end_layout
3893
3894 \end_inset
3895
3896  is the string to be inserted into the document.
3897  To define dead keys,
3898  use:
3899 \end_layout
3900
3901 \begin_layout Quotation
3902 \begin_inset Flex Code
3903 status collapsed
3904
3905 \begin_layout Plain Layout
3906
3907 \backslash
3908 kmod
3909 \end_layout
3910
3911 \end_inset
3912
3913  
3914 \begin_inset Flex Code
3915 status collapsed
3916
3917 \begin_layout Plain Layout
3918 key
3919 \end_layout
3920
3921 \end_inset
3922
3923  deadkey
3924 \end_layout
3925
3926 \begin_layout Standard
3927 where 
3928 \begin_inset Flex Code
3929 status collapsed
3930
3931 \begin_layout Plain Layout
3932 key
3933 \end_layout
3934
3935 \end_inset
3936
3937  is a keyboard key and 
3938 \begin_inset Flex Code
3939 status collapsed
3940
3941 \begin_layout Plain Layout
3942 deadkey
3943 \end_layout
3944
3945 \end_inset
3946
3947  is dead key name.
3948  The following dead keys are supported (shortcut name is in parentheses):
3949 \end_layout
3950
3951 \begin_layout Quotation
3952
3953 \emph on
3954 Name
3955 \begin_inset space \hfill{}
3956 \end_inset
3957
3958 Example
3959 \end_layout
3960
3961 \begin_layout Quotation
3962 acute (acu)
3963 \begin_inset space \hfill{}
3964 \end_inset
3965
3966 áéíóú
3967 \end_layout
3968
3969 \begin_layout Quotation
3970 grave (gra)
3971 \begin_inset space \hfill{}
3972 \end_inset
3973
3974 àèìòù
3975 \end_layout
3976
3977 \begin_layout Quotation
3978 macron (mac)
3979 \begin_inset space \hfill{}
3980 \end_inset
3981
3982  ō
3983 \end_layout
3984
3985 \begin_layout Quotation
3986 tilde (til)
3987 \begin_inset space \hfill{}
3988 \end_inset
3989
3990 ñÑ
3991 \end_layout
3992
3993 \begin_layout Quotation
3994 underbar (underb)
3995 \begin_inset space \hfill{}
3996 \end_inset
3997
3998
3999 \begin_inset ERT
4000 status open
4001
4002 \begin_layout Plain Layout
4003
4004
4005 \backslash
4006 b o
4007 \end_layout
4008
4009 \end_inset
4010
4011
4012 \end_layout
4013
4014 \begin_layout Quotation
4015 cedilla (ced)
4016 \begin_inset space \hfill{}
4017 \end_inset
4018
4019 çÇ
4020 \end_layout
4021
4022 \begin_layout Quotation
4023 underdot (underd)
4024 \begin_inset space \hfill{}
4025 \end_inset
4026
4027
4028 \begin_inset ERT
4029 status open
4030
4031 \begin_layout Plain Layout
4032
4033
4034 \backslash
4035 d o
4036 \end_layout
4037
4038 \end_inset
4039
4040
4041 \end_layout
4042
4043 \begin_layout Quotation
4044 circumflex (circu)
4045 \begin_inset space \hfill{}
4046 \end_inset
4047
4048 âêîôû
4049 \end_layout
4050
4051 \begin_layout Quotation
4052 circle (circl)
4053 \begin_inset space \hfill{}
4054 \end_inset
4055
4056 ÅůŮ
4057 \end_layout
4058
4059 \begin_layout Quotation
4060 tie (tie)
4061 \begin_inset space \hfill{}
4062 \end_inset
4063
4064
4065 \begin_inset ERT
4066 status open
4067
4068 \begin_layout Plain Layout
4069
4070
4071 \backslash
4072 t o
4073 \end_layout
4074
4075 \end_inset
4076
4077
4078 \end_layout
4079
4080 \begin_layout Quotation
4081 breve (bre)
4082 \begin_inset space \hfill{}
4083 \end_inset
4084
4085 ă
4086 \begin_inset ERT
4087 status open
4088
4089 \begin_layout Plain Layout
4090
4091
4092 \backslash
4093 u o
4094 \end_layout
4095
4096 \end_inset
4097
4098
4099 \end_layout
4100
4101 \begin_layout Quotation
4102 caron (car)
4103 \begin_inset space \hfill{}
4104 \end_inset
4105
4106 čšž
4107 \end_layout
4108
4109 \begin_layout Quotation
4110 hungarian umlaut (hug)
4111 \begin_inset space \hfill{}
4112 \end_inset
4113
4114 őű
4115 \end_layout
4116
4117 \begin_layout Quotation
4118 umlaut (uml)
4119 \begin_inset space \hfill{}
4120 \end_inset
4121
4122 äöü
4123 \end_layout
4124
4125 \begin_layout Quotation
4126 dot (dot)
4127 \begin_inset space \hfill{}
4128 \end_inset
4129
4130 ż
4131 \begin_inset ERT
4132 status open
4133
4134 \begin_layout Plain Layout
4135
4136
4137 \backslash
4138 .s
4139 \end_layout
4140
4141 \end_inset
4142
4143
4144 \end_layout
4145
4146 \begin_layout Standard
4147 Since in many international keyboards there are exceptions to what some dead keys should do,
4148  you can define them using
4149 \end_layout
4150
4151 \begin_layout Quotation
4152 \begin_inset Flex Code
4153 status collapsed
4154
4155 \begin_layout Plain Layout
4156
4157 \backslash
4158 kxmod
4159 \end_layout
4160
4161 \end_inset
4162
4163  deadkey key outstring
4164 \end_layout
4165
4166 \begin_layout Standard
4167 For example,
4168  on Slovak keyboard,
4169  if you enter caron-o,
4170  it generates circumflex-o,
4171  so you put in
4172 \end_layout
4173
4174 \begin_layout Quotation
4175 \begin_inset Flex Code
4176 status collapsed
4177
4178 \begin_layout Plain Layout
4179
4180 \backslash
4181 kxmod
4182 \end_layout
4183
4184 \end_inset
4185
4186  caron o "
4187 \backslash
4188 ^o"
4189 \end_layout
4190
4191 \begin_layout Standard
4192 to make it work correctly.
4193  Also,
4194  you have to define as exceptions dead keys over i and j,
4195  to remove the dot from them before inserting an accent mark.
4196  I will change this when the time comes,
4197  but so far I haven't had time.
4198 \end_layout
4199
4200 \begin_layout Standard
4201 Oh,
4202  and about characters:
4203  backslash is escaped,
4204  so to enter it,
4205  you'll need double backslash.
4206  Also,
4207  quotes and 
4208 \begin_inset Flex Code
4209 status collapsed
4210
4211 \begin_layout Plain Layout
4212 #
4213 \end_layout
4214
4215 \end_inset
4216
4217  have different meaning.
4218  
4219 \begin_inset Flex Code
4220 status collapsed
4221
4222 \begin_layout Plain Layout
4223 #
4224 \end_layout
4225
4226 \end_inset
4227
4228  marks comments,
4229  quotes start and end \SpecialChar LaTeX
4230 -style commands.
4231  To enter quote,
4232  you'll need to use 
4233 \begin_inset Flex Code
4234 status collapsed
4235
4236 \begin_layout Plain Layout
4237
4238 \backslash
4239 "
4240 \end_layout
4241
4242 \end_inset
4243
4244 ,
4245  to enter 
4246 \begin_inset Flex Code
4247 status collapsed
4248
4249 \begin_layout Plain Layout
4250 #
4251 \end_layout
4252
4253 \end_inset
4254
4255 ,
4256  use 
4257 \begin_inset Flex Code
4258 status collapsed
4259
4260 \begin_layout Plain Layout
4261
4262 \backslash
4263 #
4264 \end_layout
4265
4266 \end_inset
4267
4268 .
4269 \end_layout
4270
4271 \begin_layout Standard
4272 If you make a keyboard description file that works for your language,
4273  please mail it to me,
4274  so I can include it in the next keymap distribution.
4275 \end_layout
4276
4277 \begin_layout Standard
4278 More keywords will be supported in keymap configuration file in future,
4279  like
4280 \end_layout
4281
4282 \begin_layout Itemize
4283 \begin_inset Flex Code
4284 status collapsed
4285
4286 \begin_layout Plain Layout
4287
4288 \backslash
4289 kinclude filename
4290 \end_layout
4291
4292 \end_inset
4293
4294
4295 \emph on
4296
4297 \begin_inset space \hfill{}
4298 \end_inset
4299
4300
4301 \begin_inset Flex Code
4302 status collapsed
4303
4304 \begin_layout Plain Layout
4305 include
4306 \end_layout
4307
4308 \end_inset
4309
4310  another file
4311 \end_layout
4312
4313 \begin_layout Itemize
4314 \begin_inset Flex Code
4315 status collapsed
4316
4317 \begin_layout Plain Layout
4318
4319 \backslash
4320 kprog program
4321 \end_layout
4322
4323 \end_inset
4324
4325
4326 \emph on
4327
4328 \begin_inset space \hfill{}
4329 \end_inset
4330
4331
4332 \begin_inset Flex Code
4333 status collapsed
4334
4335 \begin_layout Plain Layout
4336 define
4337 \end_layout
4338
4339 \end_inset
4340
4341  an external keymap translation program 
4342 \end_layout
4343
4344 \begin_layout Standard
4345 Also,
4346  it should look into 
4347 \begin_inset Flex Code
4348 status collapsed
4349
4350 \begin_layout Plain Layout
4351 lyxrc
4352 \end_layout
4353
4354 \end_inset
4355
4356  file for defaults,
4357  too (for example,
4358  a 
4359 \begin_inset Flex Code
4360 status collapsed
4361
4362 \begin_layout Plain Layout
4363
4364 \backslash
4365 kinclude
4366 \end_layout
4367
4368 \end_inset
4369
4370  option to include default keyboard).
4371 \end_layout
4372
4373 \end_inset
4374
4375
4376 \end_layout
4377
4378 \begin_layout Section
4379 International Keymap Stuff
4380 \begin_inset CommandInset label
4381 LatexCommand label
4382 name "sec:International-Keymap-Stuff"
4383
4384 \end_inset
4385
4386
4387 \end_layout
4388
4389 \begin_layout Standard
4390 \begin_inset Note Note
4391 status open
4392
4393 \begin_layout Plain Layout
4394 In doing the revisions on this document in March 2008,
4395  I did not look over this stuff,
4396  as I do not understand it.
4397  It would be good if someone else could do so.
4398  (RH)
4399 \end_layout
4400
4401 \end_inset
4402
4403
4404 \end_layout
4405
4406 \begin_layout Standard
4407 The next two sections describe the 
4408 \begin_inset Flex Code
4409 status collapsed
4410
4411 \begin_layout Plain Layout
4412
4413 \shape up
4414 .kmap
4415 \end_layout
4416
4417 \end_inset
4418
4419  and 
4420 \begin_inset Flex Code
4421 status collapsed
4422
4423 \begin_layout Plain Layout
4424
4425 \shape up
4426 .cdef
4427 \end_layout
4428
4429 \end_inset
4430
4431  file syntax in detail.
4432  These sections should help you design your own key map if the ones provided do not meet your needs.
4433 \end_layout
4434
4435 \begin_layout Subsection
4436 The .kmap File
4437 \end_layout
4438
4439 \begin_layout Standard
4440
4441 \shape up
4442 .
4443 \begin_inset Flex Code
4444 status collapsed
4445
4446 \begin_layout Plain Layout
4447 kmap
4448 \end_layout
4449
4450 \end_inset
4451
4452  file maps keystrokes to characters or strings.
4453  As the name suggests,
4454  it sets a keyboard mapping.
4455  The 
4456 \begin_inset Flex Code
4457 status collapsed
4458
4459 \begin_layout Plain Layout
4460 .kmap
4461 \end_layout
4462
4463 \end_inset
4464
4465
4466 \shape default
4467  file keywords 
4468 \shape up
4469
4470 \begin_inset Flex Code
4471 status collapsed
4472
4473 \begin_layout Plain Layout
4474
4475 \shape up
4476 kmap
4477 \end_layout
4478
4479 \end_inset
4480
4481
4482 \shape default
4483 ,
4484
4485 \shape up
4486  
4487 \shape default
4488
4489 \begin_inset Flex Code
4490 status collapsed
4491
4492 \begin_layout Plain Layout
4493
4494 \shape up
4495 kmod
4496 \end_layout
4497
4498 \end_inset
4499
4500 ,
4501
4502 \shape up
4503  
4504 \shape default
4505
4506 \begin_inset Flex Code
4507 status collapsed
4508
4509 \begin_layout Plain Layout
4510
4511 \shape up
4512 kxmod
4513 \end_layout
4514
4515 \end_inset
4516
4517 ,
4518  and 
4519 \begin_inset Flex Code
4520 status collapsed
4521
4522 \begin_layout Plain Layout
4523
4524 \shape up
4525 kcomb
4526 \end_layout
4527
4528 \end_inset
4529
4530  are described in this section.
4531 \end_layout
4532
4533 \begin_layout Labeling
4534 \labelwidthstring 00.00.0000
4535 \begin_inset Flex Code
4536 status collapsed
4537
4538 \begin_layout Plain Layout
4539
4540 \shape up
4541 kmap
4542 \end_layout
4543
4544 \end_inset
4545
4546  Map a character to a string
4547 \end_layout
4548
4549 \begin_layout LyX-Code
4550
4551 \backslash
4552 kmap 
4553 \family roman
4554 \emph on
4555 char
4556 \family default
4557 \emph default
4558  
4559 \family roman
4560 \emph on
4561 string
4562 \end_layout
4563
4564 \begin_layout Standard
4565 This will ma
4566 \family roman
4567 p
4568 \family default
4569  
4570 \family roman
4571 \emph on
4572 char
4573 \family default
4574 \emph default
4575  
4576 \family roman
4577 to
4578 \family default
4579  
4580 \family roman
4581 \emph on
4582 string
4583 \emph default
4584 .
4585  Note that in
4586 \family default
4587  
4588 \family roman
4589 \emph on
4590 string
4591 \emph default
4592 ,
4593
4594 \family default
4595  
4596 \family roman
4597 \shape up
4598 the double-quote (")
4599 \family default
4600 \shape default
4601  
4602 \family roman
4603 and
4604 \family default
4605  
4606 \family roman
4607 \shape up
4608 the backslash (
4609 \backslash
4610 )
4611 \family default
4612 \shape default
4613  
4614 \family roman
4615 must be escaped with a preceding backslash (
4616 \shape up
4617
4618 \backslash
4619
4620 \shape default
4621 )
4622 \family default
4623 .
4624 \end_layout
4625
4626 \begin_layout Standard
4627 An example of a 
4628 \begin_inset Flex Noun
4629 status collapsed
4630
4631 \begin_layout Plain Layout
4632
4633 \shape up
4634 kmap
4635 \end_layout
4636
4637 \end_inset
4638
4639  statement to cause the symbol 
4640 \begin_inset Flex Noun
4641 status collapsed
4642
4643 \begin_layout Plain Layout
4644
4645 \shape up
4646 /
4647 \end_layout
4648
4649 \end_inset
4650
4651  to be output for the keystroke 
4652 \begin_inset Flex Noun
4653 status collapsed
4654
4655 \begin_layout Plain Layout
4656
4657 \shape up
4658 &
4659 \end_layout
4660
4661 \end_inset
4662
4663  is:
4664 \end_layout
4665
4666 \begin_layout LyX-Code
4667
4668 \backslash
4669 kmap & /
4670 \end_layout
4671
4672 \begin_layout Labeling
4673 \labelwidthstring 00.00.0000
4674 \begin_inset Flex Code
4675 status collapsed
4676
4677 \begin_layout Plain Layout
4678
4679 \shape up
4680 kmod
4681 \end_layout
4682
4683 \end_inset
4684
4685  Specify an accent character
4686 \end_layout
4687
4688 \begin_layout LyX-Code
4689
4690 \backslash
4691 kmod 
4692 \family roman
4693 \emph on
4694 char accent allowed
4695 \end_layout
4696
4697 \begin_layout Standard
4698 This will make the cha
4699 \family roman
4700 racter
4701 \family default
4702  
4703 \family roman
4704 \emph on
4705 char
4706 \family default
4707 \emph default
4708  
4709 \family roman
4710 \shape up
4711 \emph on
4712 be an accent
4713 \family default
4714 \shape default
4715 \emph default
4716  
4717 \family roman
4718 \shape up
4719 on the
4720 \family default
4721 \shape default
4722  
4723 \family roman
4724 \shape up
4725 \emph on
4726 allowed
4727 \family default
4728 \shape default
4729 \emph default
4730  
4731 \family roman
4732 \shape up
4733 cha
4734 \family default
4735 racter(s).
4736  This is the dead key
4737 \begin_inset Foot
4738 status collapsed
4739
4740 \begin_layout Plain Layout
4741 The term 
4742 \family roman
4743 \emph on
4744 dead key
4745 \family default
4746 \emph default
4747  refers to a key that does not produce a character by itself,
4748  but when followed with another key,
4749  produces the desired accent character.
4750  For example,
4751  a German characte
4752 \family roman
4753 r with an umlaut like
4754 \family default
4755  
4756 \family roman
4757 \emph on
4758 ä
4759 \family default
4760 \emph default
4761  
4762 \family roman
4763 can be produced in this manner.
4764 \end_layout
4765
4766 \end_inset
4767
4768  mechanism.
4769  
4770 \end_layout
4771
4772 \begin_layout Standard
4773 If you 
4774 \family roman
4775 hit
4776 \family default
4777  
4778 \family roman
4779 \emph on
4780 char
4781 \family default
4782 \emph default
4783  
4784 \family roman
4785 and then another key not in
4786 \family default
4787  
4788 \family roman
4789 \emph on
4790 allowed
4791 \emph default
4792 ,
4793  you will get a
4794 \family default
4795  
4796 \family roman
4797 \emph on
4798 char
4799 \family default
4800 \emph default
4801  
4802 \family roman
4803 followed by the other,
4804  not allowed key,
4805  as output.
4806
4807 \family default
4808  Note that a 
4809 \begin_inset Flex Noun
4810 status collapsed
4811
4812 \begin_layout Plain Layout
4813
4814 \shape up
4815 Backspace
4816 \end_layout
4817
4818 \end_inset
4819
4820  cancels a dead key,
4821  so if 
4822 \family roman
4823 you hit
4824 \family default
4825  
4826 \family roman
4827 \emph on
4828 char
4829 \family default
4830 \emph default
4831  
4832 \begin_inset Flex Noun
4833 status collapsed
4834
4835 \begin_layout Plain Layout
4836
4837 \shape up
4838 \emph on
4839 Backspace
4840 \end_layout
4841
4842 \end_inset
4843
4844 ,
4845  the cursor will not go one position backwards but will instead cancel the effect t
4846 \family roman
4847 hat
4848 \family default
4849  
4850 \family roman
4851 \shape up
4852 \emph on
4853 char
4854 \family default
4855 \shape default
4856 \emph default
4857  
4858 \family roman
4859 \shape up
4860 might have had on the next keystroke.
4861  
4862 \end_layout
4863
4864 \begin_layout Standard
4865 The following example specifies that the character ' is to be an acute accent,
4866  allowed on the characters a,
4867  e,
4868  i,
4869  o,
4870  u,
4871  A,
4872  E,
4873  I,
4874  O,
4875  and U:
4876 \end_layout
4877
4878 \begin_layout LyX-Code
4879
4880 \backslash
4881 kmod ' acute aeiouAEIOU
4882 \end_layout
4883
4884 \begin_layout Labeling
4885 \labelwidthstring 00.00.0000
4886 \begin_inset Flex Code
4887 status collapsed
4888
4889 \begin_layout Plain Layout
4890 kxmod
4891 \end_layout
4892
4893 \end_inset
4894
4895  Specify an exception to the accent character
4896 \end_layout
4897
4898 \begin_layout LyX-Code
4899
4900 \backslash
4901 kxmod  
4902 \family roman
4903 \emph on
4904 accent char result
4905 \end_layout
4906
4907 \begin_layout Standard
4908 This defines an exce
4909 \family roman
4910 ption for
4911 \family default
4912  
4913 \family roman
4914 \emph on
4915 accent
4916 \family default
4917 \emph default
4918  
4919 \family roman
4920 on
4921 \family default
4922  
4923 \family roman
4924 \emph on
4925 char
4926 \emph default
4927 .
4928  T
4929 \shape up
4930 he
4931 \family default
4932 \shape default
4933  
4934 \family roman
4935 \shape up
4936 \emph on
4937 accent
4938 \family default
4939 \shape default
4940 \emph default
4941  
4942 \family roman
4943 \shape up
4944 must
4945 \family default
4946 \shape default
4947  
4948 \shape up
4949 have been assigned a keystroke with a previous
4950 \shape default
4951  
4952 \begin_inset Flex Code
4953 status collapsed
4954
4955 \begin_layout Plain Layout
4956
4957 \shape up
4958
4959 \backslash
4960 kmo
4961 \shape default
4962 d
4963 \end_layout
4964
4965 \end_inset
4966
4967  declar
4968 \family roman
4969 ation and
4970 \family default
4971  
4972 \family roman
4973 \emph on
4974 char
4975 \family default
4976 \emph default
4977  
4978 \family roman
4979 must not belong in the
4980 \family default
4981  
4982 \family roman
4983 \emph on
4984 allowed
4985 \family default
4986 \emph default
4987  
4988 \family roman
4989 set of
4990 \family default
4991  
4992 \family roman
4993 \emph on
4994 accent
4995 \emph default
4996 .
4997  When
4998 \family default
4999  
5000 \family roman
5001 \shape up
5002 you enter the
5003 \family default
5004 \shape default
5005  
5006 \family roman
5007 \shape up
5008 \emph on
5009 accent char
5010 \family default
5011 \shape default
5012 \emph default
5013  
5014 \family roman
5015 \shape up
5016 sequence,
5017
5018 \family default
5019 \shape default
5020  
5021 \family roman
5022 \shape up
5023 \emph on
5024 result
5025 \emph default
5026  is produced.
5027  If such a declaration does not exist in
5028 \family default
5029 \shape default
5030  
5031 \shape up
5032 the
5033 \shape default
5034  
5035 \begin_inset Flex Code
5036 status collapsed
5037
5038 \begin_layout Plain Layout
5039
5040 \shape up
5041 .kmap
5042 \end_layout
5043
5044 \end_inset
5045
5046  file and yo
5047 \family roman
5048 u enter
5049 \family default
5050  
5051 \family roman
5052 \emph on
5053 accent char
5054 \emph default
5055 ,
5056  you get
5057 \family default
5058  
5059 \family roman
5060 \emph on
5061 accent_key char
5062 \emph default
5063  where
5064 \family default
5065  
5066 \family roman
5067 \emph on
5068 accent_key
5069 \emph default
5070  is the first arg
5071 \family default
5072 ument of the 
5073 \begin_inset Flex Code
5074 status collapsed
5075
5076 \begin_layout Plain Layout
5077
5078 \shape up
5079
5080 \backslash
5081 kmod
5082 \end_layout
5083
5084 \end_inset
5085
5086  declaration.
5087  
5088 \end_layout
5089
5090 \begin_layout Standard
5091 The following command produces causes äi to be produced when you enter acute-i ('i):
5092 \end_layout
5093
5094 \begin_layout LyX-Code
5095
5096 \backslash
5097 kxmod acute i "
5098 \backslash
5099
5100 \backslash
5101 '{
5102 \backslash
5103
5104 \backslash
5105 i}"
5106 \end_layout
5107
5108 \begin_layout Labeling
5109 \labelwidthstring 00.00.0000
5110 \begin_inset Flex Code
5111 status collapsed
5112
5113 \begin_layout Plain Layout
5114 kcomb
5115 \end_layout
5116
5117 \end_inset
5118
5119  Combine two accent characters
5120 \end_layout
5121
5122 \begin_layout LyX-Code
5123
5124 \backslash
5125 kcomb 
5126 \family roman
5127 \emph on
5128 accent1 accent2 allowed
5129 \end_layout
5130
5131 \begin_layout Standard
5132 This one is getting pretty esoteric.
5133  It allows you to combine the effect 
5134 \family roman
5135 of
5136 \family default
5137  
5138 \family roman
5139 \emph on
5140 accent1
5141 \family default
5142 \emph default
5143  
5144 \family roman
5145 and
5146 \family default
5147  
5148 \family roman
5149 \emph on
5150 accent2
5151 \family default
5152 \emph default
5153  
5154 \family roman
5155 (in that order!) on
5156 \family default
5157  
5158 \family roman
5159 \emph on
5160 allowed
5161 \family default
5162 \emph default
5163  
5164 \family roman
5165 chars.
5166  The keystrokes for
5167 \family default
5168  
5169 \family roman
5170 \emph on
5171 accent1
5172 \family default
5173 \emph default
5174  
5175 \family roman
5176 and
5177 \family default
5178  
5179 \family roman
5180 \emph on
5181 accent2
5182 \family default
5183 \emph default
5184  
5185 \family roman
5186 must have be
5187 \family default
5188 en set with a 
5189 \begin_inset Flex Code
5190 status collapsed
5191
5192 \begin_layout Plain Layout
5193
5194 \shape up
5195
5196 \backslash
5197 kmod
5198 \end_layout
5199
5200 \end_inset
5201
5202  command at 
5203 \family roman
5204 a
5205 \family default
5206  
5207 \family roman
5208 \emph on
5209 previous
5210 \family default
5211 \emph default
5212  
5213 \family roman
5214 point in the
5215 \family default
5216  file.
5217  
5218 \end_layout
5219
5220 \begin_layout Standard
5221 Consider this example from the 
5222 \begin_inset Flex Code
5223 status collapsed
5224
5225 \begin_layout Plain Layout
5226
5227 \shape up
5228 greek.kmap
5229 \end_layout
5230
5231 \end_inset
5232
5233  file:
5234 \end_layout
5235
5236 \begin_layout LyX-Code
5237
5238 \backslash
5239 kmod ;
5240  acute aeioyvhAEIOYVH 
5241 \backslash
5242 kmod :
5243  umlaut iyIY 
5244 \backslash
5245 kcomb acute umlaut iyIY
5246 \end_layout
5247
5248 \begin_layout Standard
5249 This allows you to press 
5250 \begin_inset Flex Noun
5251 status collapsed
5252
5253 \begin_layout Plain Layout
5254
5255 \shape up
5256 ;:i
5257 \end_layout
5258
5259 \end_inset
5260
5261  and get the effect of 
5262 \begin_inset Flex Code
5263 status collapsed
5264
5265 \begin_layout Plain Layout
5266
5267 \shape up
5268
5269 \backslash
5270 '{
5271 \backslash
5272 "{i}}
5273 \end_layout
5274
5275 \end_inset
5276
5277 .
5278  
5279 \family roman
5280 \shape up
5281 A backspace
5282 \family default
5283 \shape default
5284  in this case cancels the last dead key,
5285  so if you press 
5286 \begin_inset Flex Noun
5287 status collapsed
5288
5289 \begin_layout Plain Layout
5290
5291 \shape up
5292 ;:
5293  Backspace i
5294 \end_layout
5295
5296 \end_inset
5297
5298  you get 
5299 \begin_inset Flex Code
5300 status collapsed
5301
5302 \begin_layout Plain Layout
5303
5304 \shape up
5305
5306 \backslash
5307 '{i}
5308 \end_layout
5309
5310 \end_inset
5311
5312 .
5313 \end_layout
5314
5315 \begin_layout Subsection
5316 The .cdef File
5317 \end_layout
5318
5319 \begin_layout Standard
5320 After the 
5321 \begin_inset Flex Code
5322 status collapsed
5323
5324 \begin_layout Plain Layout
5325
5326 \shape up
5327 .kmap
5328 \end_layout
5329
5330 \end_inset
5331
5332  mapping is performed,
5333  a 
5334 \begin_inset Flex Code
5335 status collapsed
5336
5337 \begin_layout Plain Layout
5338
5339 \shape up
5340 .cde
5341 \shape default
5342 f
5343 \end_layout
5344
5345 \end_inset
5346
5347  file maps the strings that the symbols generate to characters in the current font.
5348  The \SpecialChar LyX
5349  distribution currently includes at least the 
5350 \begin_inset Flex Code
5351 status collapsed
5352
5353 \begin_layout Plain Layout
5354
5355 \shape up
5356 iso8859-1.cdef
5357 \end_layout
5358
5359 \end_inset
5360
5361  and 
5362 \begin_inset Flex Code
5363 status collapsed
5364
5365 \begin_layout Plain Layout
5366
5367 \shape up
5368 iso8859-2.cdef
5369 \end_layout
5370
5371 \end_inset
5372
5373  files.
5374 \end_layout
5375
5376 \begin_layout Standard
5377 In general the 
5378 \begin_inset Flex Code
5379 status collapsed
5380
5381 \begin_layout Plain Layout
5382
5383 \shape up
5384 .cdef
5385 \end_layout
5386
5387 \end_inset
5388
5389  file is a sequence of declarations of the form
5390 \end_layout
5391
5392 \begin_layout LyX-Code
5393
5394 \family roman
5395 \emph on
5396 char_index_in_set
5397 \family default
5398 \emph default
5399  
5400 \family roman
5401 \emph on
5402  string
5403 \end_layout
5404
5405 \begin_layout Standard
5406 For example,
5407  in order to map 
5408 \begin_inset Flex Noun
5409 status collapsed
5410
5411 \begin_layout Plain Layout
5412
5413 \shape up
5414
5415 \backslash
5416 '{e}
5417 \end_layout
5418
5419 \end_inset
5420
5421  to the corresponding character in the iso-8859-1 set (233),
5422  the following declaration is used
5423 \end_layout
5424
5425 \begin_layout LyX-Code
5426 233 "
5427 \backslash
5428
5429 \backslash
5430 '{e}"
5431 \end_layout
5432
5433 \begin_layout Standard
5434 with 
5435 \begin_inset Flex Code
5436 status collapsed
5437
5438 \begin_layout Plain Layout
5439
5440 \backslash
5441
5442 \end_layout
5443
5444 \end_inset
5445
5446  and 
5447 \begin_inset Flex Code
5448 status collapsed
5449
5450 \begin_layout Plain Layout
5451 "
5452 \end_layout
5453
5454 \end_inset
5455
5456  being escap
5457 \family roman
5458 ed in
5459 \family default
5460  
5461 \family roman
5462 \emph on
5463 string
5464 \emph default
5465 .
5466  Note that
5467 \family default
5468  the same character can apply to more than one string.
5469  In the 
5470 \begin_inset Flex Code
5471 status collapsed
5472
5473 \begin_layout Plain Layout
5474 i
5475 \shape up
5476 so-8859-7.cdef
5477 \end_layout
5478
5479 \end_inset
5480
5481  file you have
5482 \end_layout
5483
5484 \begin_layout LyX-Code
5485 192 "
5486 \backslash
5487
5488 \backslash
5489 '{
5490 \backslash
5491
5492 \backslash
5493
5494 \backslash
5495 "{i}}"
5496 \begin_inset Newline newline
5497 \end_inset
5498
5499 192 "
5500 \backslash
5501
5502 \backslash
5503
5504 \backslash
5505 "{
5506 \backslash
5507
5508 \backslash
5509 '{i}}"
5510 \end_layout
5511
5512 \begin_layout Standard
5513 If \SpecialChar LyX
5514  cannot find a mapping for the string produced by the keystroke or a deadkey sequence,
5515  it will check if it looks like an accented char and try to draw an accent over the character on screen.
5516 \end_layout
5517
5518 \begin_layout Subsection
5519 Dead Keys
5520 \end_layout
5521
5522 \begin_layout Standard
5523 There is a second way to add support for international characters through so-called dead-keys.
5524  A dead-key works in combination with a letter to produce an accented character.
5525  Here,
5526  we'll explain how to create a really simple dead-key to illustrate how they work.
5527 \end_layout
5528
5529 \begin_layout Standard
5530 Suppose you happen to need the circumflex character,
5531  
5532 \begin_inset Quotes eld
5533 \end_inset
5534
5535  ̂
5536 \begin_inset Quotes erd
5537 \end_inset
5538
5539 .
5540  You could bind the 
5541 \begin_inset Flex Noun
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545 ^
5546 \end_layout
5547
5548 \end_inset
5549
5550 -key [a.k.a.
5551 \begin_inset space ~
5552 \end_inset
5553
5554
5555 \begin_inset Flex Noun
5556 status collapsed
5557
5558 \begin_layout Plain Layout
5559 Shift-6
5560 \end_layout
5561
5562 \end_inset
5563
5564 ] to the \SpecialChar LyX
5565  command 
5566 \begin_inset Flex Code
5567 status collapsed
5568
5569 \begin_layout Plain Layout
5570 accent-circumflex
5571 \end_layout
5572
5573 \end_inset
5574
5575  in your 
5576 \begin_inset Flex Code
5577 status collapsed
5578
5579 \begin_layout Plain Layout
5580 lyxrc
5581 \end_layout
5582
5583 \end_inset
5584
5585  file.
5586  Now,
5587  whenever you type the 
5588 \begin_inset Flex Noun
5589 status collapsed
5590
5591 \begin_layout Plain Layout
5592 ^
5593 \end_layout
5594
5595 \end_inset
5596
5597 -key followed by a letter,
5598  that letter will have a circumflex accent on it.
5599  For example,
5600  the sequence 
5601 \begin_inset Quotes eld
5602 \end_inset
5603
5604
5605 \begin_inset Flex Noun
5606 status collapsed
5607
5608 \begin_layout Plain Layout
5609 ^e
5610 \end_layout
5611
5612 \end_inset
5613
5614
5615 \begin_inset Quotes erd
5616 \end_inset
5617
5618  produces the letter:
5619  
5620 \begin_inset Quotes eld
5621 \end_inset
5622
5623 ê
5624 \begin_inset Quotes erd
5625 \end_inset
5626
5627 .
5628  If you tried to type 
5629 \begin_inset Quotes eld
5630 \end_inset
5631
5632
5633 \begin_inset Flex Noun
5634 status collapsed
5635
5636 \begin_layout Plain Layout
5637 ^t
5638 \end_layout
5639
5640 \end_inset
5641
5642
5643 \begin_inset Quotes erd
5644 \end_inset
5645
5646 ,
5647  however,
5648  \SpecialChar LyX
5649  will complain with a beep,
5650  since a 
5651 \begin_inset Quotes eld
5652 \end_inset
5653
5654
5655 \begin_inset Flex Noun
5656 status collapsed
5657
5658 \begin_layout Plain Layout
5659 t
5660 \end_layout
5661
5662 \end_inset
5663
5664
5665 \begin_inset Quotes erd
5666 \end_inset
5667
5668  never takes a circumflex accent.
5669  Hitting 
5670 \begin_inset Flex Noun
5671 status collapsed
5672
5673 \begin_layout Plain Layout
5674 Space
5675 \end_layout
5676
5677 \end_inset
5678
5679  after a dead-key produces the bare-accent.
5680  Please note this last point!
5681  If you bind a key to a dead-key,
5682  you'll need to rebind the character on that key to yet another key.
5683  Binding the 
5684 \begin_inset Flex Noun
5685 status collapsed
5686
5687 \begin_layout Plain Layout
5688 ,-key
5689 \end_layout
5690
5691 \end_inset
5692
5693  to a cedilla is a bad idea,
5694  since you'll only get cedillas instead of commas.
5695 \end_layout
5696
5697 \begin_layout Standard
5698 One common way to bind dead-keys is to use 
5699 \begin_inset Flex Noun
5700 status collapsed
5701
5702 \begin_layout Plain Layout
5703 Meta-
5704 \end_layout
5705
5706 \end_inset
5707
5708 ,
5709  
5710 \begin_inset Flex Noun
5711 status collapsed
5712
5713 \begin_layout Plain Layout
5714 Ctrl-
5715 \end_layout
5716
5717 \end_inset
5718
5719 ,
5720  and 
5721 \begin_inset Flex Noun
5722 status collapsed
5723
5724 \begin_layout Plain Layout
5725 Shift-
5726 \end_layout
5727
5728 \end_inset
5729
5730  in combination with an accent,
5731  like 
5732 \begin_inset Quotes eld
5733 \end_inset
5734
5735
5736 \begin_inset Flex Noun
5737 status collapsed
5738
5739 \begin_layout Plain Layout
5740 ~
5741 \end_layout
5742
5743 \end_inset
5744
5745
5746 \begin_inset Quotes erd
5747 \end_inset
5748
5749  or 
5750 \begin_inset Quotes eld
5751 \end_inset
5752
5753
5754 \begin_inset Flex Noun
5755 status collapsed
5756
5757 \begin_layout Plain Layout
5758 ,
5759 \end_layout
5760
5761 \end_inset
5762
5763
5764 \begin_inset Quotes erd
5765 \end_inset
5766
5767  or 
5768 \begin_inset Quotes eld
5769 \end_inset
5770
5771
5772 \begin_inset Flex Noun
5773 status collapsed
5774
5775 \begin_layout Plain Layout
5776 ^
5777 \end_layout
5778
5779 \end_inset
5780
5781
5782 \begin_inset Quotes erd
5783 \end_inset
5784
5785 .
5786  Another way involves using 
5787 \begin_inset Flex Code
5788 status collapsed
5789
5790 \begin_layout Plain Layout
5791 xmodmap
5792 \end_layout
5793
5794 \end_inset
5795
5796  and 
5797 \begin_inset Flex Code
5798 status collapsed
5799
5800 \begin_layout Plain Layout
5801 xkeycaps
5802 \end_layout
5803
5804 \end_inset
5805
5806  to set up the special 
5807 \begin_inset Flex Code
5808 status collapsed
5809
5810 \begin_layout Plain Layout
5811 Mode_Switch
5812 \end_layout
5813
5814 \end_inset
5815
5816  key.
5817  The 
5818 \begin_inset Flex Code
5819 status collapsed
5820
5821 \begin_layout Plain Layout
5822 Mode_Switch
5823 \end_layout
5824
5825 \end_inset
5826
5827  acts in some ways just like 
5828 \begin_inset Flex Noun
5829 status collapsed
5830
5831 \begin_layout Plain Layout
5832 Shift
5833 \end_layout
5834
5835 \end_inset
5836
5837  and permits you to bind keys to accented characters.
5838  You can also turn keys into dead-keys by binding them to something like 
5839 \begin_inset Flex Code
5840 status collapsed
5841
5842 \begin_layout Plain Layout
5843 usldead_cedilla
5844 \end_layout
5845
5846 \end_inset
5847
5848  and then binding this symbolic key to the corresponding \SpecialChar LyX
5849  command.
5850 \begin_inset Foot
5851 status collapsed
5852
5853 \begin_layout Plain Layout
5854 Note from 
5855 \noun on
5856 John Weiss
5857 \noun default
5858 :
5859  This is exactly what I do in my 
5860 \begin_inset Flex Code
5861 status collapsed
5862
5863 \begin_layout Plain Layout
5864 ~/.lyx/lyxrc
5865 \end_layout
5866
5867 \end_inset
5868
5869  and my 
5870 \begin_inset Flex Code
5871 status collapsed
5872
5873 \begin_layout Plain Layout
5874 ~/.xmodmap
5875 \end_layout
5876
5877 \end_inset
5878
5879  files.
5880  I have my 
5881 \begin_inset Flex Noun
5882 status collapsed
5883
5884 \begin_layout Plain Layout
5885 Scroll
5886 \begin_inset space ~
5887 \end_inset
5888
5889 Lock
5890 \end_layout
5891
5892 \end_inset
5893
5894  key set up as 
5895 \begin_inset Flex Code
5896 status collapsed
5897
5898 \begin_layout Plain Layout
5899 Mode_Shift
5900 \end_layout
5901
5902 \end_inset
5903
5904  and a bunch of these 
5905 \begin_inset Quotes eld
5906 \end_inset
5907
5908
5909 \begin_inset Flex Code
5910 status collapsed
5911
5912 \begin_layout Plain Layout
5913 usldead_*
5914 \end_layout
5915
5916 \end_inset
5917
5918
5919 \begin_inset Quotes erd
5920 \end_inset
5921
5922  symbolic keys bound such things as 
5923 \begin_inset Flex Noun
5924 status collapsed
5925
5926 \begin_layout Plain Layout
5927 Scroll
5928 \begin_inset space ~
5929 \end_inset
5930
5931 Lock-^
5932 \end_layout
5933
5934 \end_inset
5935
5936  and 
5937 \begin_inset Flex Noun
5938 status collapsed
5939
5940 \begin_layout Plain Layout
5941 Scroll
5942 \begin_inset space ~
5943 \end_inset
5944
5945 Lock-~
5946 \end_layout
5947
5948 \end_inset
5949
5950 .
5951  This is how I produce my accented characters.
5952 \end_layout
5953
5954 \end_inset
5955
5956  You can make just about anything into the 
5957 \begin_inset Flex Code
5958 status collapsed
5959
5960 \begin_layout Plain Layout
5961 Mode_Switch
5962 \end_layout
5963
5964 \end_inset
5965
5966  key:
5967  One of the 
5968 \begin_inset Flex Noun
5969 status collapsed
5970
5971 \begin_layout Plain Layout
5972 Ctrl-
5973 \end_layout
5974
5975 \end_inset
5976
5977  keys,
5978  a spare function key,
5979  etc.
5980  As for the \SpecialChar LyX
5981  commands that produce accents,
5982  check the entry for 
5983 \begin_inset Flex Code
5984 status collapsed
5985
5986 \begin_layout Plain Layout
5987 accent-acute
5988 \end_layout
5989
5990 \end_inset
5991
5992  in the 
5993 \emph on
5994 Reference Manual
5995 \emph default
5996 .
5997  You'll find the complete list there.
5998 \end_layout
5999
6000 \begin_layout Subsection
6001 Saving your Language Configuration
6002 \end_layout
6003
6004 \begin_layout Standard
6005 You can edit your preferences so that your desired language environment is automatically configured when \SpecialChar LyX
6006  starts up,
6007  via the 
6008 \begin_inset Flex Noun
6009 status collapsed
6010
6011 \begin_layout Plain Layout
6012 Edit\SpecialChar menuseparator
6013 Preferences
6014 \end_layout
6015
6016 \end_inset
6017
6018  dialog.
6019 \end_layout
6020
6021 \begin_layout Chapter
6022 Creating and Installing New Document Classes,
6023  Layouts,
6024  and Templates
6025 \begin_inset CommandInset label
6026 LatexCommand label
6027 name "cha:Installing-New-Document"
6028
6029 \end_inset
6030
6031
6032 \begin_inset Argument 1
6033 status collapsed
6034
6035 \begin_layout Plain Layout
6036 Installing New Document Classes
6037 \end_layout
6038
6039 \end_inset
6040
6041
6042 \end_layout
6043
6044 \begin_layout Standard
6045 In this chapter,
6046  we describe the procedures for creating and installing new \SpecialChar LyX
6047  layout and template files,
6048  as well as offer a refresher on correctly installing new \SpecialChar LaTeX
6049  document classes.
6050  
6051 \end_layout
6052
6053 \begin_layout Standard
6054 First,
6055  let us a say a few words about how one ought to think about the relation between \SpecialChar LyX
6056  and \SpecialChar LaTeX
6057 .
6058  The thing to understand is that,
6059  in a certain sense,
6060  \SpecialChar LyX
6061  doesn't know anything about \SpecialChar LaTeX
6062 .
6063  Indeed,
6064  from \SpecialChar LyX
6065 's point of view,
6066  \SpecialChar LaTeX
6067  is just one of several 
6068 \begin_inset Quotes eld
6069 \end_inset
6070
6071 backend formats
6072 \begin_inset Quotes erd
6073 \end_inset
6074
6075  in which it is capable of producing output.
6076  Other such formats are DocBook,
6077  plaintext,
6078  and XHTML.
6079  \SpecialChar LaTeX
6080  is,
6081  of course,
6082  a particularly important format,
6083  but very little of the information \SpecialChar LyX
6084  has about \SpecialChar LaTeX
6085  is actually contained in the program itself.
6086 \begin_inset Foot
6087 status collapsed
6088
6089 \begin_layout Plain Layout
6090 Some commands are sufficiently complex that they are 
6091 \begin_inset Quotes eld
6092 \end_inset
6093
6094 hardcoded
6095 \begin_inset Quotes erd
6096 \end_inset
6097
6098  into \SpecialChar LyX
6099 .
6100  But the developers generally regard this as a Bad Thing.
6101 \end_layout
6102
6103 \end_inset
6104
6105  Rather,
6106  that information,
6107  even for the standard classes like 
6108 \begin_inset Flex Code
6109 status collapsed
6110
6111 \begin_layout Plain Layout
6112 article.cls
6113 \end_layout
6114
6115 \end_inset
6116
6117 ,
6118  is contained in `layout files'.
6119  Similarly,
6120  \SpecialChar LyX
6121  itself does not know much about DocBook or XHTML.
6122  What it knows is contained in layout files.
6123 \end_layout
6124
6125 \begin_layout Standard
6126 You can think of the layout file for a given document class as a translation manual between \SpecialChar LyX
6127  constructs—
6128 paragraphs with their corresponding styles,
6129  certain sorts of insets,
6130  etc—
6131 and the corresponding \SpecialChar LaTeX
6132 ,
6133  DocBook,
6134  or XHTML constructs.
6135  Almost everything \SpecialChar LyX
6136  knows about 
6137 \begin_inset Flex Code
6138 status collapsed
6139
6140 \begin_layout Plain Layout
6141 article.cls
6142 \end_layout
6143
6144 \end_inset
6145
6146 ,
6147  for example,
6148  is contained in the file 
6149 \begin_inset Flex Code
6150 status collapsed
6151
6152 \begin_layout Plain Layout
6153 article.layout
6154 \end_layout
6155
6156 \end_inset
6157
6158  and in various other files it includes.
6159  For this reason,
6160  anyone intending to write layout files should plan to study the existing files.
6161  A good place to start is with 
6162 \begin_inset Flex Code
6163 status collapsed
6164
6165 \begin_layout Plain Layout
6166 stdsections.inc
6167 \end_layout
6168
6169 \end_inset
6170
6171 ,
6172  which is included in 
6173 \begin_inset Flex Code
6174 status collapsed
6175
6176 \begin_layout Plain Layout
6177 article.layout
6178 \end_layout
6179
6180 \end_inset
6181
6182 ,
6183  
6184 \begin_inset Flex Code
6185 status collapsed
6186
6187 \begin_layout Plain Layout
6188 book.layout
6189 \end_layout
6190
6191 \end_inset
6192
6193 ,
6194  and many of the other layout files for document classes.
6195  This file is where sections and the like are defined:
6196  
6197 \begin_inset Flex Code
6198 status collapsed
6199
6200 \begin_layout Plain Layout
6201 stdsections.inc
6202 \end_layout
6203
6204 \end_inset
6205
6206  tells \SpecialChar LyX
6207  how paragraphs that are marked with the Section,
6208  Subsection,
6209  etc,
6210  styles can be translated into corresponding \SpecialChar LaTeX
6211 ,
6212  DocBook,
6213  and XHTML commands and tags.
6214  The 
6215 \begin_inset Flex Code
6216 status collapsed
6217
6218 \begin_layout Plain Layout
6219 article.layout
6220 \end_layout
6221
6222 \end_inset
6223
6224  file basically just includes several of these 
6225 \begin_inset Flex Code
6226 status collapsed
6227
6228 \begin_layout Plain Layout
6229 std*.inc
6230 \end_layout
6231
6232 \end_inset
6233
6234  files.
6235 \end_layout
6236
6237 \begin_layout Standard
6238 Defining the \SpecialChar LyX
6239 –\SpecialChar LaTeX
6240  correspondence is not the only thing layout files do,
6241  though.
6242  Their other job is to define how the \SpecialChar LyX
6243  constructs themselves will appear on-screen.
6244  The fact that layout files have these two jobs is often a source of confusion,
6245  because they are completely separate.
6246  Telling \SpecialChar LyX
6247  how to translate a certain paragraph style into \SpecialChar LaTeX
6248  does not tell \SpecialChar LyX
6249  how to display it;
6250  conversely,
6251  telling \SpecialChar LyX
6252  how to display a certain paragraph style does not tell \SpecialChar LyX
6253  how to translate it into \SpecialChar LaTeX
6254  (let alone tell \SpecialChar LaTeX
6255  how to display it).
6256  So,
6257  in general,
6258  when you define a new \SpecialChar LyX
6259  construct,
6260  you must always do two quite separate things:
6261  (i)
6262 \begin_inset space ~
6263 \end_inset
6264
6265 tell \SpecialChar LyX
6266  how to translate it into \SpecialChar LaTeX
6267  and (ii)
6268 \begin_inset space ~
6269 \end_inset
6270
6271 tell \SpecialChar LyX
6272  how to display it.
6273 \end_layout
6274
6275 \begin_layout Standard
6276 Much the same is true,
6277  of course,
6278  as regards \SpecialChar LyX
6279 's other backend formats,
6280  though XHTML is in some ways different,
6281  because in that case \SpecialChar LyX
6282  
6283 \emph on
6284 is
6285 \emph default
6286  able,
6287  to some extent,
6288  to use information about how it should display a paragraph on the screen to output information (in the form of CSS) about how the paragraph should be displayed in a browser.
6289  Even in this case,
6290  however,
6291  the distinction between what \SpecialChar LyX
6292  does internally and how things are rendered externally remains in force,
6293  and the two can be controlled separately.
6294  See 
6295 \begin_inset CommandInset ref
6296 LatexCommand ref
6297 reference "sec:Tags-for-XHTML"
6298 nolink "false"
6299
6300 \end_inset
6301
6302  for the details.
6303 \end_layout
6304
6305 \begin_layout Section
6306 Installing new \SpecialChar LaTeX
6307  files
6308 \end_layout
6309
6310 \begin_layout Standard
6311 Some installations may not include a \SpecialChar LaTeX
6312  package or class file that you would like to use within \SpecialChar LyX
6313 .
6314  For example,
6315  you might need Foil\SpecialChar TeX
6316 ,
6317  a package for preparing slides for overhead projectors.
6318  Modern \SpecialChar LaTeX
6319  distributions like \SpecialChar TeX
6320 Live (2008 or newer) or MiK\SpecialChar TeX
6321  provide a user interface for installing such packages.
6322  For example,
6323  with MiK\SpecialChar TeX
6324 ,
6325  you start the program 
6326 \begin_inset Quotes eld
6327 \end_inset
6328
6329 Package
6330 \begin_inset space ~
6331 \end_inset
6332
6333 Manager
6334 \begin_inset Quotes erd
6335 \end_inset
6336
6337  to get a list of available packages.
6338  To install one of them,
6339  right click on it or use the corresponding toolbar button.
6340 \end_layout
6341
6342 \begin_layout Standard
6343 If your \SpecialChar LaTeX
6344  distribution does not provide such a `package manager',
6345  or if the package is not available from your distribution,
6346  then follow these steps to install it manually:
6347 \end_layout
6348
6349 \begin_layout Enumerate
6350 Get the package from 
6351 \begin_inset CommandInset href
6352 LatexCommand href
6353 name "CTAN"
6354 target "http://www.ctan.org/"
6355 literal "false"
6356
6357 \end_inset
6358
6359  or wherever.
6360 \end_layout
6361
6362 \begin_layout Enumerate
6363 If the package contains a file with the ending 
6364 \begin_inset Quotes eld
6365 \end_inset
6366
6367
6368 \begin_inset Flex Code
6369 status collapsed
6370
6371 \begin_layout Plain Layout
6372 .ins
6373 \end_layout
6374
6375 \end_inset
6376
6377
6378 \begin_inset Quotes erd
6379 \end_inset
6380
6381  (is the case for Foil\SpecialChar TeX
6382 ) then open a console,
6383  change to the folder of this file and execute the command 
6384 \begin_inset Flex Code
6385 status collapsed
6386
6387 \begin_layout Plain Layout
6388 latex foiltex.ins
6389 \end_layout
6390
6391 \end_inset
6392
6393 .
6394  You have now unpacked the package and have all files to install it.
6395  Most \SpecialChar LaTeX
6396 -packages are not packed and you can skip this step.
6397 \end_layout
6398
6399 \begin_layout Enumerate
6400 Now you need to decide if the package should be available for all users or only for you.
6401 \end_layout
6402
6403 \begin_deeper
6404 \begin_layout Enumerate
6405 On *nix systems (Linux,
6406  OSX,
6407  etc.),
6408  if you want the new package to be available for all users on your system,
6409  then install it in your `local' \SpecialChar TeX
6410  tree,
6411  otherwise install it in your own `user' \SpecialChar TeX
6412  tree.
6413  Where these trees should be created,
6414  if they do not already exist,
6415  depends on your system.
6416  To find this out,
6417  look in the file 
6418 \begin_inset Flex Code
6419 status collapsed
6420
6421 \begin_layout Plain Layout
6422 texmf.cnf
6423 \end_layout
6424
6425 \end_inset
6426
6427 .
6428 \begin_inset Foot
6429 status collapsed
6430
6431 \begin_layout Plain Layout
6432 This is usually in the directory 
6433 \begin_inset Flex Code
6434 status collapsed
6435
6436 \begin_layout Plain Layout
6437 $TEXMF/web2c
6438 \end_layout
6439
6440 \end_inset
6441
6442 ,
6443  though you can execute the command 
6444 \begin_inset Flex Code
6445 status collapsed
6446
6447 \begin_layout Plain Layout
6448 kpsewhich texmf.cnf
6449 \end_layout
6450
6451 \end_inset
6452
6453  to locate it.
6454 \end_layout
6455
6456 \end_inset
6457
6458  The location of the `local' \SpecialChar TeX
6459  tree is defined by the 
6460 \begin_inset Flex Code
6461 status collapsed
6462
6463 \begin_layout Plain Layout
6464 TEXMFLOCAL
6465 \end_layout
6466
6467 \end_inset
6468
6469  variable;
6470  this is usually somewhere like 
6471 \begin_inset Flex Code
6472 status collapsed
6473
6474 \begin_layout Plain Layout
6475 /usr/local/share/texmf
6476 \end_layout
6477
6478 \end_inset
6479
6480  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6481 Live distribution.
6482  The location of the `user' \SpecialChar TeX
6483  tree is defined by 
6484 \begin_inset Flex Code
6485 status collapsed
6486
6487 \begin_layout Plain Layout
6488 TEXMFHOME
6489 \end_layout
6490
6491 \end_inset
6492
6493  and is commonly 
6494 \begin_inset Flex Code
6495 status collapsed
6496
6497 \begin_layout Plain Layout
6498 $HOME/texmf
6499 \end_layout
6500
6501 \end_inset
6502
6503  or 
6504 \begin_inset Flex Code
6505 status collapsed
6506
6507 \begin_layout Plain Layout
6508
6509 \family sans
6510 $HOME/.texliveXXXX
6511 \end_layout
6512
6513 \end_inset
6514
6515 .
6516  (If these variables are not predefined,
6517  you have to define them.) You'll probably need root permissions to create or modify the `local' tree,
6518  but not for your `user' tree.
6519 \begin_inset Newline newline
6520 \end_inset
6521
6522 In general,
6523  it is recommended to install in the user tree because your user will not be modified or even overwritten when you upgrade your system.
6524  It will typically also be backed up together with everything else when you backup your home directory (which,
6525  of course,
6526  you do on a regular basis).
6527 \end_layout
6528
6529 \begin_layout Enumerate
6530 On Windows,
6531  if you want the new package to be available for all users on your system,
6532  change to the folder where \SpecialChar LaTeX
6533  is installed and then change to the subfolder 
6534 \begin_inset Flex Code
6535 status collapsed
6536
6537 \begin_layout Plain Layout
6538 ~
6539 \backslash
6540 tex
6541 \backslash
6542 latex
6543 \end_layout
6544
6545 \end_inset
6546
6547 .
6548  (For MiK\SpecialChar TeX
6549 ,
6550  this would be by default the folder 
6551 \begin_inset Flex Code
6552 status collapsed
6553
6554 \begin_layout Plain Layout
6555 ~:
6556 \backslash
6557 Programs
6558 \backslash
6559 MiKTeX
6560 \backslash
6561 tex
6562 \backslash
6563 latex
6564 \end_layout
6565
6566 \end_inset
6567
6568 .)
6569 \begin_inset Foot
6570 status collapsed
6571
6572 \begin_layout Plain Layout
6573 Note that this will be the correct path only on English installations.
6574  On a German one,
6575  it would be 
6576 \begin_inset Flex Code
6577 status collapsed
6578
6579 \begin_layout Plain Layout
6580 ~:
6581 \backslash
6582 Programme
6583 \backslash
6584 MiKTeX
6585 \backslash
6586 tex
6587 \backslash
6588 latex
6589 \end_layout
6590
6591 \end_inset
6592
6593 ,
6594  and similarly for other languages.
6595 \end_layout
6596
6597 \end_inset
6598
6599  Create there a new folder 
6600 \begin_inset Flex Code
6601 status collapsed
6602
6603 \begin_layout Plain Layout
6604 foiltex
6605 \end_layout
6606
6607 \end_inset
6608
6609  and copy all files of the package into it.
6610  
6611 \begin_inset Newline newline
6612 \end_inset
6613
6614 If the package should only available for you or you don't have admin permissions,
6615  do the same,
6616  but in the local \SpecialChar LaTeX
6617  folder.
6618  E.
6619 \begin_inset space \thinspace{}
6620 \end_inset
6621
6622 g.,
6623  for MiK\SpecialChar TeX
6624
6625 \begin_inset space ~
6626 \end_inset
6627
6628 2.8 under Windows XP,
6629  this would be the folder:
6630 \begin_inset Newline newline
6631 \end_inset
6632
6633
6634 \family sans
6635
6636 \begin_inset Flex Code
6637 status collapsed
6638
6639 \begin_layout Plain Layout
6640 ~:
6641 \backslash
6642 Documents and Settings
6643 \backslash
6644 <username>
6645 \backslash
6646 Application Data
6647 \backslash
6648
6649 \end_layout
6650
6651 \end_inset
6652
6653
6654 \begin_inset Newline newline
6655 \end_inset
6656
6657
6658 \family default
6659
6660 \begin_inset Phantom HPhantom
6661 status open
6662
6663 \begin_layout Plain Layout
6664
6665 \family sans
6666 ~:
6667 \backslash
6668
6669 \end_layout
6670
6671 \end_inset
6672
6673
6674 \begin_inset Flex Code
6675 status collapsed
6676
6677 \begin_layout Plain Layout
6678 MiKTeX
6679 \backslash
6680 2.8
6681 \backslash
6682 tex
6683 \backslash
6684 latex
6685 \end_layout
6686
6687 \end_inset
6688
6689
6690 \begin_inset Newline newline
6691 \end_inset
6692
6693 On Vista,
6694  it would be:
6695 \begin_inset Newline newline
6696 \end_inset
6697
6698
6699 \begin_inset Flex Code
6700 status collapsed
6701
6702 \begin_layout Plain Layout
6703 ~:
6704 \backslash
6705 Users
6706 \backslash
6707 <username>
6708 \backslash
6709 AppData
6710 \backslash
6711 Roaming
6712 \backslash
6713 2.8
6714 \backslash
6715 MiKTeX
6716 \backslash
6717 tex
6718 \backslash
6719 latex
6720 \end_layout
6721
6722 \end_inset
6723
6724
6725 \end_layout
6726
6727 \end_deeper
6728 \begin_layout Enumerate
6729 Now one only need to tell \SpecialChar LaTeX
6730  that there are new files.
6731  This depends on the used \SpecialChar LaTeX
6732 -Distribution:
6733 \end_layout
6734
6735 \begin_deeper
6736 \begin_layout Enumerate
6737 For \SpecialChar TeX
6738 Live execute the command 
6739 \begin_inset Flex Code
6740 status collapsed
6741
6742 \begin_layout Plain Layout
6743 texhash
6744 \end_layout
6745
6746 \end_inset
6747
6748  from a console.
6749  If you installed the package for all users,
6750  then you will probably need to have root permissions for that.
6751 \end_layout
6752
6753 \begin_layout Enumerate
6754 For MiK\SpecialChar TeX
6755 ,
6756  if you have installed the package for all users,
6757  start the program 
6758 \begin_inset Quotes eld
6759 \end_inset
6760
6761 Settings
6762 \begin_inset space ~
6763 \end_inset
6764
6765 (Admin)
6766 \begin_inset Quotes erd
6767 \end_inset
6768
6769  and press the button marked 
6770 \begin_inset Quotes eld
6771 \end_inset
6772
6773 Refresh FNDB
6774 \begin_inset Quotes erd
6775 \end_inset
6776
6777 .
6778  Otherwise start the program 
6779 \begin_inset Quotes eld
6780 \end_inset
6781
6782 Settings
6783 \begin_inset Quotes erd
6784 \end_inset
6785
6786  and do the same.
6787 \end_layout
6788
6789 \end_deeper
6790 \begin_layout Enumerate
6791 Finally,
6792  you need to tell \SpecialChar LyX
6793  that there are new packages available.
6794  So,
6795  in \SpecialChar LyX
6796 ,
6797  use the menu 
6798 \begin_inset Flex Noun
6799 status collapsed
6800
6801 \begin_layout Plain Layout
6802 Tools
6803 \family sans
6804 \SpecialChar menuseparator
6805 Reconfigure
6806 \end_layout
6807
6808 \end_inset
6809
6810  and then restart \SpecialChar LyX
6811 .
6812 \end_layout
6813
6814 \begin_layout Standard
6815 Now the package is installed.
6816  In our example,
6817  the document class 
6818 \begin_inset Flex Code
6819 status collapsed
6820
6821 \begin_layout Plain Layout
6822 FoilTex
6823 \end_layout
6824
6825 \end_inset
6826
6827  will now be available under 
6828 \begin_inset Flex Noun
6829 status collapsed
6830
6831 \begin_layout Plain Layout
6832 Document\SpecialChar menuseparator
6833 Settings\SpecialChar menuseparator
6834 Document Class
6835 \end_layout
6836
6837 \end_inset
6838
6839  (in the 
6840 \begin_inset Quotes eld
6841 \end_inset
6842
6843 Presentations
6844 \begin_inset Quotes erd
6845 \end_inset
6846
6847  category).
6848  
6849 \end_layout
6850
6851 \begin_layout Standard
6852 If you would like to use a \SpecialChar LaTeX
6853  document class that is not even listed in the menu 
6854 \begin_inset Flex Noun
6855 status collapsed
6856
6857 \begin_layout Plain Layout
6858 Document\SpecialChar menuseparator
6859 Settings\SpecialChar menuseparator
6860 Document Class
6861 \end_layout
6862
6863 \end_inset
6864
6865 ,
6866  then you need to create a `layout' file for it.
6867  That is the topic of the next section.
6868 \end_layout
6869
6870 \begin_layout Section
6871 Types of layout files
6872 \end_layout
6873
6874 \begin_layout Standard
6875 This section describes the various sorts of \SpecialChar LyX
6876  files that contain layout information.
6877  These files describe various paragraph and character styles,
6878  determining how \SpecialChar LyX
6879  should display them and how they should be translated into \SpecialChar LaTeX
6880 ,
6881  DocBook,
6882  XHTML,
6883  or whatever output format is being used.
6884  
6885 \end_layout
6886
6887 \begin_layout Standard
6888 We shall try to provide a thorough description of the process of writing layout files here.
6889  However,
6890  there are so many different types of documents supported even by just \SpecialChar LaTeX
6891  that we can't hope to cover every different possibility or problem you might encounter.
6892  The \SpecialChar LyX
6893  users' list is frequented by people with lots of experience with layout design who are willing to share what they've learned,
6894  so please feel free to ask questions there.
6895 \end_layout
6896
6897 \begin_layout Standard
6898 As you prepare to write a new layout,
6899  it is extremely helpful to look at the layouts distributed with \SpecialChar LyX
6900 .
6901  If you write a \SpecialChar LyX
6902  layout for a \SpecialChar LaTeX
6903  document class that might also be used by others,
6904  or write a module that might be useful to others,
6905  then you should consider posting your layout to the 
6906 \begin_inset CommandInset href
6907 LatexCommand href
6908 name "layout section on the LyX wiki"
6909 target "https://wiki.lyx.org/Layouts/Layouts"
6910 literal "false"
6911
6912 \end_inset
6913
6914  or even to the \SpecialChar LyX
6915  developers' list,
6916  so that it might be included in \SpecialChar LyX
6917  itself.
6918 \begin_inset Foot
6919 status collapsed
6920
6921 \begin_layout Plain Layout
6922 Note that \SpecialChar LyX
6923  is licensed under the General Public License,
6924  so any material that is contributed to \SpecialChar LyX
6925  must be similarly licensed.
6926 \end_layout
6927
6928 \end_inset
6929
6930
6931 \end_layout
6932
6933 \begin_layout Subsection
6934 Layout modules
6935 \begin_inset CommandInset label
6936 LatexCommand label
6937 name "subsec:Layout-modules"
6938
6939 \end_inset
6940
6941
6942 \end_layout
6943
6944 \begin_layout Standard
6945 We have spoken to this point about `layout files'.
6946  But there are different sorts of files that contain layout information.
6947  Layout files,
6948  strictly so called,
6949  have the 
6950 \begin_inset Flex Code
6951 status collapsed
6952
6953 \begin_layout Plain Layout
6954 .layout
6955 \end_layout
6956
6957 \end_inset
6958
6959  extension and provide \SpecialChar LyX
6960  with information about document classes.
6961  Since \SpecialChar LyX
6962  1.6 layout information can also be contained in layout 
6963 \emph on
6964 modules
6965 \emph default
6966 ,
6967  which have the 
6968 \begin_inset Flex Code
6969 status collapsed
6970
6971 \begin_layout Plain Layout
6972 .module
6973 \end_layout
6974
6975 \end_inset
6976
6977  extension.
6978  Modules are to \SpecialChar LaTeX
6979  packages much as layouts are to \SpecialChar LaTeX
6980  classes,
6981  and some modules—
6982 such as the 
6983 \begin_inset Flex Code
6984 status collapsed
6985
6986 \begin_layout Plain Layout
6987 endnotes
6988 \end_layout
6989
6990 \end_inset
6991
6992  module—
6993 specifically provide support for one package.
6994  In a sense,
6995  layout modules are similar to included
6996 \begin_inset Foot
6997 status collapsed
6998
6999 \begin_layout Plain Layout
7000 These can have any extension,
7001  but by convention have the 
7002 \begin_inset Flex Code
7003 status collapsed
7004
7005 \begin_layout Plain Layout
7006 .inc
7007 \end_layout
7008
7009 \end_inset
7010
7011  extension.
7012 \end_layout
7013
7014 \end_inset
7015
7016  files—
7017 files like 
7018 \begin_inset Flex Code
7019 status collapsed
7020
7021 \begin_layout Plain Layout
7022 stdsections.inc
7023 \end_layout
7024
7025 \end_inset
7026
7027
7028 in that modules are not specific to a given document class but may be used with many different classes.
7029  The difference is that using an included file with 
7030 \begin_inset Flex Code
7031 status collapsed
7032
7033 \begin_layout Plain Layout
7034 article.cls
7035 \end_layout
7036
7037 \end_inset
7038
7039  requires editing that file.
7040  Modules,
7041  by contrast,
7042  are selected in the 
7043 \begin_inset Flex Noun
7044 status collapsed
7045
7046 \begin_layout Plain Layout
7047 Document\SpecialChar menuseparator
7048 Settings
7049 \end_layout
7050
7051 \end_inset
7052
7053  dialog.
7054 \end_layout
7055
7056 \begin_layout Standard
7057 Building modules is the easiest way to get started with layout editing,
7058  since it can be as simple as adding a single new paragraph style or flex inset.
7059  But modules may,
7060  in principle,
7061  contain anything a layout file can contain.
7062 \end_layout
7063
7064 \begin_layout Standard
7065 After creating a new module and copying it to the 
7066 \begin_inset Flex Code
7067 status collapsed
7068
7069 \begin_layout Plain Layout
7070 layouts/
7071 \end_layout
7072
7073 \end_inset
7074
7075  folder,
7076  you will need to reconfigure and then restart \SpecialChar LyX
7077  for the module to appear in the menu.
7078  However,
7079  changes you make to the module will be seen immediately,
7080  if you open 
7081 \begin_inset Flex Noun
7082 status collapsed
7083
7084 \begin_layout Plain Layout
7085 Document\SpecialChar menuseparator
7086 Settings
7087 \end_layout
7088
7089 \end_inset
7090
7091 ,
7092  highlight something,
7093  and then hit 
7094 \begin_inset Quotes eld
7095 \end_inset
7096
7097 OK
7098 \begin_inset Quotes erd
7099 \end_inset
7100
7101 .
7102  
7103 \emph on
7104 It is strongly recommended that you save your work before doing this
7105 \emph default
7106 .
7107  In fact,
7108  
7109 \emph on
7110 it is strongly recommended that you not attempt to edit modules while simultaneously working on actual documents
7111 \emph default
7112 .
7113  Though of course the developers strive to keep \SpecialChar LyX
7114  stable in such situations,
7115  syntax errors and the like in your module file could cause strange behavior.
7116 \end_layout
7117
7118 \begin_layout Subsubsection
7119 Local Layout
7120 \end_layout
7121
7122 \begin_layout Standard
7123 Modules are to \SpecialChar LyX
7124  as packages are to \SpecialChar LaTeX
7125 .
7126  Sometimes,
7127  however,
7128  you find yourself wanting a specific inset or character style just for one document and writing a module that will also be available to other documents makes little sense.
7129  What you need is \SpecialChar LyX
7130 's 
7131 \begin_inset Quotes eld
7132 \end_inset
7133
7134 Local Layout
7135 \begin_inset Quotes erd
7136 \end_inset
7137
7138 .
7139 \end_layout
7140
7141 \begin_layout Standard
7142 You will find it under 
7143 \family sans
7144 Document\SpecialChar menuseparator
7145 Settings\SpecialChar menuseparator
7146 Local Layout
7147 \family default
7148 .
7149  The large text box allows you to enter anything that you might enter in a layout file or module.
7150  You can think of a document's local layout,
7151  in fact,
7152  as a module that belongs just to it.
7153  So,
7154  in particular,
7155  you must enter a 
7156 \begin_inset Flex Code
7157 status collapsed
7158
7159 \begin_layout Plain Layout
7160 Format
7161 \end_layout
7162
7163 \end_inset
7164
7165  tag.
7166  Any format is acceptable,
7167  but one would normally use the format current at the time.
7168  (In \SpecialChar LyX
7169  
7170 \begin_inset Info
7171 type  "lyxinfo"
7172 arg   "version"
7173 \end_inset
7174
7175 ,
7176  the current layout format is 
7177 \begin_inset Info
7178 type  "lyxinfo"
7179 arg   "layoutformat"
7180 \end_inset
7181
7182 .)
7183 \end_layout
7184
7185 \begin_layout Standard
7186 When you have entered something in the 
7187 \begin_inset Flex Code
7188 status collapsed
7189
7190 \begin_layout Plain Layout
7191 Local Layout
7192 \end_layout
7193
7194 \end_inset
7195
7196  pane,
7197  \SpecialChar LyX
7198  will enable the 
7199 \begin_inset Quotes eld
7200 \end_inset
7201
7202 Validate
7203 \begin_inset Quotes erd
7204 \end_inset
7205
7206  button at the bottom.
7207  Clicking this button will cause \SpecialChar LyX
7208  to determine whether what you have entered is valid layout information for the chosen format.
7209  \SpecialChar LyX
7210  will report the result but,
7211  unfortunately,
7212  will not tell you what errors there might have been.
7213  These will be written to the terminal,
7214  however,
7215  if \SpecialChar LyX
7216  is started from a terminal.
7217  You will not be permitted to save your local layout until you have entered something valid.
7218 \end_layout
7219
7220 \begin_layout Standard
7221 The warnings at the end of the previous section apply here,
7222  too.
7223  Do not play with local layout while you are actually working,
7224  especially if you have not saved your document.
7225  That said,
7226  using local layout with a test document can be a very convenient way to try out layout ideas,
7227  or even to start developing a module.
7228 \end_layout
7229
7230 \begin_layout Subsection
7231 Layout for 
7232 \begin_inset Flex Noun
7233 status collapsed
7234
7235 \begin_layout Plain Layout
7236 .sty
7237 \end_layout
7238
7239 \end_inset
7240
7241  files
7242 \end_layout
7243
7244 \begin_layout Standard
7245 There are two situations you are likely to encounter when wanting to support a new \SpecialChar LaTeX
7246  document class,
7247  involving style (
7248 \begin_inset Flex Code
7249 status collapsed
7250
7251 \begin_layout Plain Layout
7252 .sty
7253 \end_layout
7254
7255 \end_inset
7256
7257 ) files and \SpecialChar LaTeX2e
7258  class (
7259 \begin_inset Flex Code
7260 status collapsed
7261
7262 \begin_layout Plain Layout
7263 .cls
7264 \end_layout
7265
7266 \end_inset
7267
7268 ) .
7269  Supporting a style file is usually fairly easy.
7270  Supporting a new class file is a bit harder.
7271  We'll discuss the former in this section and the latter in the next.
7272  
7273 \end_layout
7274
7275 \begin_layout Standard
7276 The easier case is the one in which your new document class is provided as a style file that is to be used in conjunction with an already supported document class.
7277  For the sake of the example,
7278  we'll assume that the style file is called 
7279 \begin_inset Flex Noun
7280 status collapsed
7281
7282 \begin_layout Plain Layout
7283 myclass.sty
7284 \end_layout
7285
7286 \end_inset
7287
7288  and that it is meant to be used with 
7289 \begin_inset Flex Noun
7290 status collapsed
7291
7292 \begin_layout Plain Layout
7293 report.cls
7294 \end_layout
7295
7296 \end_inset
7297
7298 ,
7299  which is a standard class.
7300  
7301 \end_layout
7302
7303 \begin_layout Standard
7304 Start by copying the existing class's layout file into your local directory:
7305 \begin_inset Foot
7306 status collapsed
7307
7308 \begin_layout Plain Layout
7309 Of course,
7310  which directory is your local directory will vary by platform,
7311  and \SpecialChar LyX
7312  allows you to specify your local directory on startup,
7313  too,
7314  using the 
7315 \begin_inset Flex Code
7316 status collapsed
7317
7318 \begin_layout Plain Layout
7319 -userdir
7320 \end_layout
7321
7322 \end_inset
7323
7324  option.
7325 \end_layout
7326
7327 \end_inset
7328
7329
7330 \end_layout
7331
7332 \begin_layout LyX-Code
7333 cp report.layout ~/.lyx/layouts/myclass.layout
7334 \end_layout
7335
7336 \begin_layout Standard
7337 Then edit 
7338 \begin_inset Flex Code
7339 status collapsed
7340
7341 \begin_layout Plain Layout
7342 myclass.layout
7343 \end_layout
7344
7345 \end_inset
7346
7347  and change the line:
7348  
7349 \end_layout
7350
7351 \begin_layout LyX-Code
7352
7353 \backslash
7354 DeclareLaTeXClass{Report (Standard Class)}
7355 \end_layout
7356
7357 \begin_layout Standard
7358 to read
7359 \end_layout
7360
7361 \begin_layout LyX-Code
7362
7363 \backslash
7364 DeclareLaTeXClass[report,
7365  myclass.sty]{Report (My Class)}
7366 \end_layout
7367
7368 \begin_layout Standard
7369 Then add:
7370 \end_layout
7371
7372 \begin_layout LyX-Code
7373 Preamble 
7374 \begin_inset Newline newline
7375 \end_inset
7376
7377     
7378 \backslash
7379 usepackage{myclass}
7380 \begin_inset Newline newline
7381 \end_inset
7382
7383 EndPreamble
7384 \end_layout
7385
7386 \begin_layout Standard
7387 near the top of the file.
7388 \end_layout
7389
7390 \begin_layout Standard
7391 Start \SpecialChar LyX
7392  and select 
7393 \begin_inset Flex Noun
7394 status collapsed
7395
7396 \begin_layout Plain Layout
7397 Tools\SpecialChar menuseparator
7398 Reconfigure
7399 \end_layout
7400
7401 \end_inset
7402
7403 .
7404  Then restart \SpecialChar LyX
7405  and try creating a new document.
7406  You should see "
7407 \begin_inset Flex Noun
7408 status collapsed
7409
7410 \begin_layout Plain Layout
7411 Report (My Class)
7412 \end_layout
7413
7414 \end_inset
7415
7416 " as a document class option in the 
7417 \begin_inset Flex Noun
7418 status collapsed
7419
7420 \begin_layout Plain Layout
7421 Document\SpecialChar menuseparator
7422 Settings
7423 \end_layout
7424
7425 \end_inset
7426
7427  dialog.
7428  It is likely that some of the sectioning commands and such in your new class will work differently from how they worked in the base class—
7429
7430 \begin_inset Flex Code
7431 status collapsed
7432
7433 \begin_layout Plain Layout
7434 report
7435 \end_layout
7436
7437 \end_inset
7438
7439  in this example—
7440 so you can fiddle around with the settings for the different sections if you wish.
7441  The layout information for sections is contained in 
7442 \begin_inset Flex Code
7443 status collapsed
7444
7445 \begin_layout Plain Layout
7446 stdsections.inc
7447 \end_layout
7448
7449 \end_inset
7450
7451 ,
7452  but you do not need to copy and change this file.
7453  Instead,
7454  you can simply add your changes to your layout file,
7455  after the line 
7456 \begin_inset Flex Code
7457 status collapsed
7458
7459 \begin_layout Plain Layout
7460 Input stdclass.inc
7461 \end_layout
7462
7463 \end_inset
7464
7465 ,
7466  which itself includes 
7467 \begin_inset Flex Code
7468 status collapsed
7469
7470 \begin_layout Plain Layout
7471 stdsections.inc
7472 \end_layout
7473
7474 \end_inset
7475
7476 .
7477  For example,
7478  you might add these lines:
7479 \end_layout
7480
7481 \begin_layout LyX-Code
7482 Style Chapter
7483 \end_layout
7484
7485 \begin_layout LyX-Code
7486     Font
7487 \end_layout
7488
7489 \begin_layout LyX-Code
7490         Family Sans
7491 \end_layout
7492
7493 \begin_layout LyX-Code
7494     EndFont
7495 \end_layout
7496
7497 \begin_layout LyX-Code
7498 End
7499 \end_layout
7500
7501 \begin_layout Standard
7502 to change the font for chapter headings to sans-serif.
7503  This will override (or,
7504  in this case,
7505  add to) the existing declaration for the Chapter style.
7506  
7507 \end_layout
7508
7509 \begin_layout Standard
7510 Your new package may also provide commands or environments not present in the base class.
7511  In this case,
7512  you will want to add these to the layout file.
7513  See 
7514 \begin_inset CommandInset ref
7515 LatexCommand ref
7516 reference "sec:TextClass"
7517 nolink "false"
7518
7519 \end_inset
7520
7521  for information on how to do so.
7522 \end_layout
7523
7524 \begin_layout Standard
7525 If 
7526 \begin_inset Flex Noun
7527 status collapsed
7528
7529 \begin_layout Plain Layout
7530 myclass.sty
7531 \end_layout
7532
7533 \end_inset
7534
7535  can be used with several different document classes,
7536  and even if it cannot,
7537  you might find it easiest just to write a module that you can load with the base class.
7538  The simplest possible such module would be:
7539 \end_layout
7540
7541 \begin_layout LyX-Code
7542 #
7543 \backslash
7544 DeclareLyXModule{My Class} 
7545 \end_layout
7546
7547 \begin_layout LyX-Code
7548 #DescriptionBegin 
7549 \end_layout
7550
7551 \begin_layout LyX-Code
7552 #Support for myclass.sty.
7553 \end_layout
7554
7555 \begin_layout LyX-Code
7556 #DescriptionEnd
7557 \begin_inset Newline newline
7558 \end_inset
7559
7560
7561 \end_layout
7562
7563 \begin_layout LyX-Code
7564 Format 
7565 \begin_inset Info
7566 type  "lyxinfo"
7567 arg   "layoutformat"
7568 \end_inset
7569
7570
7571 \begin_inset Newline newline
7572 \end_inset
7573
7574
7575 \end_layout
7576
7577 \begin_layout LyX-Code
7578 Preamble
7579 \begin_inset Newline newline
7580 \end_inset
7581
7582     
7583 \backslash
7584 usepackage{myclass}
7585 \begin_inset Newline newline
7586 \end_inset
7587
7588 EndPreamble
7589 \end_layout
7590
7591 \begin_layout Standard
7592 A more complex module might modify the behavior of some existing constructs or define some new ones.
7593  Again,
7594  see 
7595 \begin_inset CommandInset ref
7596 LatexCommand ref
7597 reference "sec:TextClass"
7598 nolink "false"
7599
7600 \end_inset
7601
7602  for discussion.
7603 \end_layout
7604
7605 \begin_layout Subsection
7606 Layout for 
7607 \begin_inset Flex Noun
7608 status collapsed
7609
7610 \begin_layout Plain Layout
7611 .cls
7612 \end_layout
7613
7614 \end_inset
7615
7616  files
7617 \end_layout
7618
7619 \begin_layout Standard
7620 There are two possibilities here.
7621  One is that the class file is itself based upon an existing document class.
7622  For example,
7623  many thesis classes are based upon 
7624 \begin_inset Flex Noun
7625 status collapsed
7626
7627 \begin_layout Plain Layout
7628 book.cls
7629 \end_layout
7630
7631 \end_inset
7632
7633 .
7634  To see whether yours is,
7635  look for a line like
7636 \end_layout
7637
7638 \begin_layout LyX-Code
7639
7640 \backslash
7641 LoadClass{book}
7642 \end_layout
7643
7644 \begin_layout Standard
7645 in the file.
7646  If so,
7647  then you may proceed largely as in the previous section,
7648  though the 
7649 \begin_inset Flex Code
7650 status collapsed
7651
7652 \begin_layout Plain Layout
7653 Declare\SpecialChar LaTeX
7654 Class
7655 \end_layout
7656
7657 \end_inset
7658
7659  line will be different.
7660  If your new class is 
7661 \begin_inset Flex Code
7662 status collapsed
7663
7664 \begin_layout Plain Layout
7665 thesis
7666 \end_layout
7667
7668 \end_inset
7669
7670  and it is based upon 
7671 \begin_inset Flex Code
7672 status collapsed
7673
7674 \begin_layout Plain Layout
7675 book
7676 \end_layout
7677
7678 \end_inset
7679
7680 ,
7681  then the line should read:
7682 \begin_inset Foot
7683 status collapsed
7684
7685 \begin_layout Plain Layout
7686 And it will be easiest if you save the file to 
7687 \begin_inset Flex Code
7688 status collapsed
7689
7690 \begin_layout Plain Layout
7691 thesis.layout
7692 \end_layout
7693
7694 \end_inset
7695
7696 :
7697  \SpecialChar LyX
7698  assumes that the document class has the same name as the layout file.
7699  
7700 \end_layout
7701
7702 \end_inset
7703
7704
7705 \end_layout
7706
7707 \begin_layout LyX-Code
7708
7709 \backslash
7710 DeclareLaTeXClass[thesis,book]{thesis}
7711 \end_layout
7712
7713 \begin_layout Standard
7714 If,
7715  on the other hand,
7716  the new class is not based upon an existing class,
7717  you will probably have to 
7718 \begin_inset Quotes eld
7719 \end_inset
7720
7721 roll your own
7722 \begin_inset Quotes erd
7723 \end_inset
7724
7725  layout.
7726  We strongly suggest copying an existing layout file which uses a similar \SpecialChar LaTeX
7727  class and then modifying it,
7728  if you can do so.
7729  At least use an existing file as a starting point so you can find out what items you need to worry about.
7730  Again,
7731  the specifics are covered below.
7732 \end_layout
7733
7734 \begin_layout Subsection
7735 Creating templates
7736 \begin_inset CommandInset label
7737 LatexCommand label
7738 name "subsec:Creating-Templates"
7739
7740 \end_inset
7741
7742
7743 \end_layout
7744
7745 \begin_layout Standard
7746 Once you have written a layout file for a new document class,
7747  you might want to consider writing a 
7748 \emph on
7749 template
7750 \emph default
7751  for it,
7752  too.
7753  A template acts as a kind of tutorial for your layout,
7754  showing how it might be used,
7755  though containing dummy content.
7756  You can of course look at the various templates included with \SpecialChar LyX
7757  for ideas.
7758 \end_layout
7759
7760 \begin_layout Standard
7761 Templates are created just like usual documents:
7762  using \SpecialChar LyX
7763 .
7764  The only difference is that usual documents contain all possible settings,
7765  including the font scheme and the paper size.
7766  Usually a user doesn't want a template to overwrite his preferred settings for such parameters.
7767  For that reason,
7768  the designer of a template should remove the corresponding commands like 
7769 \begin_inset Flex Code
7770 status collapsed
7771
7772 \begin_layout Plain Layout
7773
7774 \backslash
7775 font_roman
7776 \end_layout
7777
7778 \end_inset
7779
7780  or 
7781 \begin_inset Flex Code
7782 status collapsed
7783
7784 \begin_layout Plain Layout
7785
7786 \backslash
7787 papersize
7788 \end_layout
7789
7790 \end_inset
7791
7792  from the template \SpecialChar LyX
7793  file.
7794  This can be done with any simple text-editor,
7795  for example 
7796 \begin_inset Flex Code
7797 status collapsed
7798
7799 \begin_layout Plain Layout
7800 vi
7801 \end_layout
7802
7803 \end_inset
7804
7805  or 
7806 \begin_inset Flex Code
7807 status collapsed
7808
7809 \begin_layout Plain Layout
7810 notepad
7811 \end_layout
7812
7813 \end_inset
7814
7815 .
7816 \end_layout
7817
7818 \begin_layout Standard
7819 Put the edited template files you create in 
7820 \begin_inset Flex Code
7821 status collapsed
7822
7823 \begin_layout Plain Layout
7824 UserDir/templates/
7825 \end_layout
7826
7827 \end_inset
7828
7829 ,
7830  copy the ones you use from the global template directory in 
7831 \begin_inset Flex Code
7832 status collapsed
7833
7834 \begin_layout Plain Layout
7835 LyXDir/templates/
7836 \end_layout
7837
7838 \end_inset
7839
7840  to the same place,
7841  and redefine the template path in the 
7842 \begin_inset Flex Noun
7843 status collapsed
7844
7845 \begin_layout Plain Layout
7846 Tools\SpecialChar menuseparator
7847 Preferences\SpecialChar menuseparator
7848 Paths
7849 \end_layout
7850
7851 \end_inset
7852
7853  dialog.
7854 \end_layout
7855
7856 \begin_layout Standard
7857 Note,
7858  by the way,
7859  that there is a template which has a particular meaning:
7860 \begin_inset Newline linebreak
7861 \end_inset
7862
7863
7864 \begin_inset Flex Code
7865 status collapsed
7866
7867 \begin_layout Plain Layout
7868 defaults.lyx
7869 \end_layout
7870
7871 \end_inset
7872
7873 .
7874  This template is loaded every time you create a new document with 
7875 \begin_inset Flex Noun
7876 status collapsed
7877
7878 \begin_layout Plain Layout
7879 File\SpecialChar menuseparator
7880 New
7881 \end_layout
7882
7883 \end_inset
7884
7885  in order to provide useful defaults.
7886  To create this template from inside \SpecialChar LyX
7887 ,
7888  all you have to do is to open a document with the correct settings,
7889  and use the 
7890 \begin_inset Flex Noun
7891 status collapsed
7892
7893 \begin_layout Plain Layout
7894 Save as Document Defaults
7895 \end_layout
7896
7897 \end_inset
7898
7899  button.
7900 \end_layout
7901
7902 \begin_layout Subsection
7903 Upgrading old layout files
7904 \end_layout
7905
7906 \begin_layout Standard
7907 The format of layout files changes with each \SpecialChar LyX
7908  release,
7909  so old layout files need to be converted to the new format.
7910  If \SpecialChar LyX
7911  reads a layout file in an older format,
7912  it automatically calls the script 
7913 \begin_inset Flex Code
7914 status collapsed
7915
7916 \begin_layout Plain Layout
7917 layout2layout.py
7918 \end_layout
7919
7920 \end_inset
7921
7922  to convert it to a temporary file in current format.
7923  The original file is left untouched.
7924  If you use the layout file often,
7925  then,
7926  you may want to convert it permanently,
7927  so that \SpecialChar LyX
7928  does not have to do so itself every time.
7929  To do this,
7930  you can call the converter manually:
7931 \end_layout
7932
7933 \begin_layout Enumerate
7934 rename the file 
7935 \begin_inset Flex Code
7936 status collapsed
7937
7938 \begin_layout Plain Layout
7939 myclass.layout
7940 \end_layout
7941
7942 \end_inset
7943
7944  to 
7945 \begin_inset Flex Code
7946 status collapsed
7947
7948 \begin_layout Plain Layout
7949 myclass.old
7950 \end_layout
7951
7952 \end_inset
7953
7954
7955 \end_layout
7956
7957 \begin_layout Enumerate
7958 Call the command
7959 \begin_inset Newline newline
7960 \end_inset
7961
7962
7963 \begin_inset Flex Code
7964 status collapsed
7965
7966 \begin_layout Plain Layout
7967 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7968 \end_layout
7969
7970 \end_inset
7971
7972
7973 \begin_inset Newline newline
7974 \end_inset
7975
7976 where 
7977 \begin_inset Flex Code
7978 status collapsed
7979
7980 \begin_layout Plain Layout
7981 LyXDir
7982 \end_layout
7983
7984 \end_inset
7985
7986  is the name of your \SpecialChar LyX
7987  system directory.
7988 \end_layout
7989
7990 \begin_layout Standard
7991 Note that manual conversion does not affect included files,
7992  so these will have to be converted separately.
7993 \end_layout
7994
7995 \begin_layout Subsection
7996 \begin_inset CommandInset label
7997 LatexCommand label
7998 name "subsec:Cite-Engine-Files"
7999
8000 \end_inset
8001
8002 Cite engine files
8003 \end_layout
8004
8005 \begin_layout Standard
8006 A specific form of layout files are the so-called 
8007 \begin_inset Flex Code
8008 status collapsed
8009
8010 \begin_layout Plain Layout
8011 *.citeengine
8012 \end_layout
8013
8014 \end_inset
8015
8016  files that are located in the 
8017 \begin_inset Flex Code
8018 status collapsed
8019
8020 \begin_layout Plain Layout
8021 citeengines/
8022 \end_layout
8023
8024 \end_inset
8025
8026  sub-directory.
8027  Their purpose is to define the specifics of \SpecialChar LaTeX
8028  packages aimed at bibliography generation,
8029  such as 
8030 \family sans
8031 natbib
8032 \family default
8033 ,
8034
8035 \family sans
8036  jurabib
8037 \family default
8038  or 
8039 \family sans
8040 biblatex
8041 \family default
8042 ,
8043  but also the way how normal Bib\SpecialChar TeX
8044  citations (without additional packages) are handled in \SpecialChar LyX
8045  is defined in such a file.
8046  
8047 \end_layout
8048
8049 \begin_layout Standard
8050 More specifically,
8051  it is defined which packages \SpecialChar LyX
8052  needs to load,
8053  which citation commands are available,
8054  how these are to be displayed in \SpecialChar LyX
8055  (in the workarea,
8056  the dialogs,
8057  the context menus) as well as in the XHTML and plain text output.
8058  Furthermore,
8059  the files specify available style variants (author-year,
8060  numerical,
8061  etc.) and their specifics.
8062  The cite engine files are also used to generate the options that are available in 
8063 \family sans
8064 Document\SpecialChar menuseparator
8065 Settings\SpecialChar menuseparator
8066 Bibliography\SpecialChar menuseparator
8067 Style engine
8068 \family default
8069 .
8070 \end_layout
8071
8072 \begin_layout Standard
8073 Even though a cite engine file is essentially a normal layout file that could theoretically include any layout information,
8074  it usually primarily includes some specific parameters such as 
8075 \begin_inset Flex Code
8076 status collapsed
8077
8078 \begin_layout Plain Layout
8079 MaxCiteNames
8080 \end_layout
8081
8082 \end_inset
8083
8084 ,
8085  
8086 \begin_inset Flex Code
8087 status collapsed
8088
8089 \begin_layout Plain Layout
8090 CiteFramework
8091 \end_layout
8092
8093 \end_inset
8094
8095 ,
8096  
8097 \begin_inset Flex Code
8098 status collapsed
8099
8100 \begin_layout Plain Layout
8101 CiteEngine
8102 \end_layout
8103
8104 \end_inset
8105
8106  and 
8107 \begin_inset Flex Code
8108 status collapsed
8109
8110 \begin_layout Plain Layout
8111 CiteFormat
8112 \end_layout
8113
8114 \end_inset
8115
8116  blocks.
8117  The syntax of the latter two is described in 
8118 \begin_inset CommandInset ref
8119 LatexCommand ref
8120 reference "subsec:Citation-engine-description"
8121 plural "false"
8122 caps "false"
8123 noprefix "false"
8124 nolink "false"
8125
8126 \end_inset
8127
8128  and 
8129 \begin_inset CommandInset ref
8130 LatexCommand ref
8131 reference "subsec:Citation-format-description"
8132 nolink "false"
8133
8134 \end_inset
8135
8136 ,
8137  as well as in the files themselves.
8138 \end_layout
8139
8140 \begin_layout Section
8141 \begin_inset CommandInset label
8142 LatexCommand label
8143 name "sec:TextClass"
8144
8145 \end_inset
8146
8147 The layout file format
8148 \end_layout
8149
8150 \begin_layout Standard
8151 The following sections describe how layout files are structured and written.
8152  Our advice is to go slowly,
8153  save and test often.
8154  It is really not that hard,
8155  except that the multitude of options can become overwhelming,
8156  especially if you try to check out too many at once.
8157  It becomes easier if you use existing layouts of \SpecialChar LyX
8158  as examples/reference or if you modify an existing layout to your needs.
8159 \end_layout
8160
8161 \begin_layout Standard
8162 Note that all the tags used in layout files are case-insensitive.
8163  This means that 
8164 \begin_inset Flex Code
8165 status collapsed
8166
8167 \begin_layout Plain Layout
8168 Style
8169 \end_layout
8170
8171 \end_inset
8172
8173 ,
8174  
8175 \begin_inset Flex Code
8176 status collapsed
8177
8178 \begin_layout Plain Layout
8179 style
8180 \end_layout
8181
8182 \end_inset
8183
8184  and 
8185 \begin_inset Flex Code
8186 status collapsed
8187
8188 \begin_layout Plain Layout
8189 StYlE
8190 \end_layout
8191
8192 \end_inset
8193
8194  are really the same tag.
8195  The possible arguments are printed in brackets after the tag's name.
8196  The default argument is typeset 
8197 \begin_inset Flex Code
8198 status collapsed
8199
8200 \begin_layout Plain Layout
8201
8202 \emph on
8203 emphasized
8204 \end_layout
8205
8206 \end_inset
8207
8208 .
8209  If the argument has a data type like 
8210 \begin_inset Quotes eld
8211 \end_inset
8212
8213 string
8214 \begin_inset Quotes erd
8215 \end_inset
8216
8217  or 
8218 \begin_inset Quotes eld
8219 \end_inset
8220
8221 float
8222 \begin_inset Quotes erd
8223 \end_inset
8224
8225 ,
8226  the default is shown like this:
8227  
8228 \begin_inset Flex Code
8229 status collapsed
8230
8231 \begin_layout Plain Layout
8232 float=
8233 \emph on
8234 default
8235 \end_layout
8236
8237 \end_inset
8238
8239 .
8240 \end_layout
8241
8242 \begin_layout Subsection
8243 The document class declaration and classification
8244 \end_layout
8245
8246 \begin_layout Standard
8247 Lines in a layout file which begin with 
8248 \begin_inset Flex Code
8249 status collapsed
8250
8251 \begin_layout Plain Layout
8252 #
8253 \end_layout
8254
8255 \end_inset
8256
8257  are comments.
8258  There is one exception to this rule.
8259  All 
8260 \begin_inset Flex Code
8261 status collapsed
8262
8263 \begin_layout Plain Layout
8264 *.layout
8265 \end_layout
8266
8267 \end_inset
8268
8269  files should begin with lines like:
8270 \end_layout
8271
8272 \begin_layout LyX-Code
8273
8274 \size small
8275 #% Do not delete the line below;
8276  configure depends on this 
8277 \end_layout
8278
8279 \begin_layout LyX-Code
8280
8281 \size small
8282 #  
8283 \backslash
8284 DeclareLaTeXClass{Article (Standard Class)}
8285 \end_layout
8286
8287 \begin_layout LyX-Code
8288
8289 \size small
8290 #  
8291 \backslash
8292 DeclareCategory{Articles}
8293 \end_layout
8294
8295 \begin_layout Standard
8296 The second and third lines are used when you (re)configure \SpecialChar LyX
8297 .
8298  The layout file is read by the \SpecialChar LaTeX
8299  script 
8300 \begin_inset Flex Code
8301 status collapsed
8302
8303 \begin_layout Plain Layout
8304 chkconfig.ltx
8305 \end_layout
8306
8307 \end_inset
8308
8309 ,
8310  in a special mode where 
8311 \begin_inset Flex Code
8312 status collapsed
8313
8314 \begin_layout Plain Layout
8315 #
8316 \end_layout
8317
8318 \end_inset
8319
8320  is ignored.
8321  The first line is just a \SpecialChar LaTeX
8322  comment,
8323  the second one contains the mandatory declaration of the text class and the third line contains the optional classification of the class.
8324  If these lines appear in a file named 
8325 \begin_inset Flex Code
8326 status collapsed
8327
8328 \begin_layout Plain Layout
8329 article.layout
8330 \end_layout
8331
8332 \end_inset
8333
8334 ,
8335  then they define a text class of name 
8336 \begin_inset Flex Code
8337 status collapsed
8338
8339 \begin_layout Plain Layout
8340 article
8341 \end_layout
8342
8343 \end_inset
8344
8345  (the name of the layout file) which uses the \SpecialChar LaTeX
8346  document class 
8347 \begin_inset Flex Code
8348 status collapsed
8349
8350 \begin_layout Plain Layout
8351 article.cls
8352 \end_layout
8353
8354 \end_inset
8355
8356  (the default is to use the same name as the layout).
8357  The string 
8358 \begin_inset Quotes eld
8359 \end_inset
8360
8361 Article (Standard Class)
8362 \begin_inset Quotes erd
8363 \end_inset
8364
8365  that appears above is used as a description of the text class in the 
8366 \begin_inset Flex Noun
8367 status collapsed
8368
8369 \begin_layout Plain Layout
8370 Document\SpecialChar menuseparator
8371 Settings
8372 \end_layout
8373
8374 \end_inset
8375
8376  dialog.
8377  The category (
8378 \begin_inset Quotes eld
8379 \end_inset
8380
8381 Articles
8382 \begin_inset Quotes erd
8383 \end_inset
8384
8385  in the example) is also used in the 
8386 \begin_inset Flex Noun
8387 status collapsed
8388
8389 \begin_layout Plain Layout
8390 Document\SpecialChar menuseparator
8391 Settings
8392 \end_layout
8393
8394 \end_inset
8395
8396  dialog:
8397  the text classes are grouped by these categories (which are usually genres,
8398  so typical categories are 
8399 \begin_inset Quotes eld
8400 \end_inset
8401
8402 Articles
8403 \begin_inset Quotes erd
8404 \end_inset
8405
8406 ,
8407  
8408 \begin_inset Quotes eld
8409 \end_inset
8410
8411 Books
8412 \begin_inset Quotes erd
8413 \end_inset
8414
8415 ,
8416  
8417 \begin_inset Quotes eld
8418 \end_inset
8419
8420 Reports
8421 \begin_inset Quotes erd
8422 \end_inset
8423
8424 ,
8425  
8426 \begin_inset Quotes eld
8427 \end_inset
8428
8429 Letters
8430 \begin_inset Quotes erd
8431 \end_inset
8432
8433 ,
8434  
8435 \begin_inset Quotes eld
8436 \end_inset
8437
8438 Presentations
8439 \begin_inset Quotes erd
8440 \end_inset
8441
8442 ,
8443  
8444 \begin_inset Quotes eld
8445 \end_inset
8446
8447 Curricula Vitae
8448 \begin_inset Quotes erd
8449 \end_inset
8450
8451  etc.).
8452  If no category has been declared,
8453  the class will be put in the 
8454 \begin_inset Quotes eld
8455 \end_inset
8456
8457 Uncategorized
8458 \begin_inset Quotes erd
8459 \end_inset
8460
8461  group.
8462 \end_layout
8463
8464 \begin_layout Standard
8465 Let's assume that you wrote your own text class that uses the 
8466 \begin_inset Flex Code
8467 status collapsed
8468
8469 \begin_layout Plain Layout
8470 article.cls
8471 \end_layout
8472
8473 \end_inset
8474
8475  document class,
8476  but where you changed the appearance of the section headings.
8477  If you put it in a file 
8478 \begin_inset Flex Code
8479 status collapsed
8480
8481 \begin_layout Plain Layout
8482 myarticle.layout
8483 \end_layout
8484
8485 \end_inset
8486
8487 ,
8488  the header of this file should be:
8489 \end_layout
8490
8491 \begin_layout LyX-Code
8492
8493 \size small
8494 #% Do not delete the line below;
8495  configure depends on this 
8496 \end_layout
8497
8498 \begin_layout LyX-Code
8499
8500 \size small
8501 #  
8502 \backslash
8503 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8504 \end_layout
8505
8506 \begin_layout LyX-Code
8507
8508 \size small
8509 #  
8510 \backslash
8511 DeclareCategory{Articles}
8512 \end_layout
8513
8514 \begin_layout Standard
8515 This declares a text class 
8516 \begin_inset Flex Code
8517 status collapsed
8518
8519 \begin_layout Plain Layout
8520 myarticle
8521 \end_layout
8522
8523 \end_inset
8524
8525 ,
8526  associated with the \SpecialChar LaTeX
8527  document class 
8528 \begin_inset Flex Code
8529 status collapsed
8530
8531 \begin_layout Plain Layout
8532 article.cls
8533 \end_layout
8534
8535 \end_inset
8536
8537  and described as 
8538 \begin_inset Quotes eld
8539 \end_inset
8540
8541 Article (with My Own Headings)
8542 \begin_inset Quotes erd
8543 \end_inset
8544
8545 .
8546  If your text class depends on several packages,
8547  you can declare it as:
8548 \end_layout
8549
8550 \begin_layout LyX-Code
8551
8552 \size small
8553 #% Do not delete the line below;
8554  configure depends on this 
8555 \end_layout
8556
8557 \begin_layout LyX-Code
8558
8559 \size small
8560 #  
8561 \backslash
8562 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8563 \end_layout
8564
8565 \begin_layout LyX-Code
8566
8567 \size small
8568 #  
8569 \backslash
8570 DeclareCategory{Articles}
8571 \end_layout
8572
8573 \begin_layout Standard
8574 This indicates that your text class uses the 
8575 \begin_inset Flex Code
8576 status collapsed
8577
8578 \begin_layout Plain Layout
8579 foo.sty
8580 \end_layout
8581
8582 \end_inset
8583
8584  package.
8585  
8586 \end_layout
8587
8588 \begin_layout Standard
8589 Note that these declarations can also be given an optional parameter declaring the name of the document class (but not a list).
8590 \end_layout
8591
8592 \begin_layout Standard
8593 So,
8594  to be as explicit as possible,
8595  the form of the layout declaration is:
8596 \end_layout
8597
8598 \begin_layout LyX-Code
8599
8600 \size small
8601 #  
8602 \backslash
8603 DeclareLaTeXClass[class,package.sty]{layout description}
8604 \end_layout
8605
8606 \begin_layout LyX-Code
8607
8608 \size small
8609 #  
8610 \backslash
8611 DeclareCategory{category}
8612 \end_layout
8613
8614 \begin_layout Standard
8615 The class need only be specified if the name of the \SpecialChar LaTeX
8616  class file and the name of the layout file are different or if there are packages to load.
8617  If the name of the class file is not specified,
8618  then \SpecialChar LyX
8619  will simply assume that it is the same as the name of the layout file.
8620 \end_layout
8621
8622 \begin_layout Standard
8623 When the text class has been modified to your taste,
8624  all you have to do is to copy it either to 
8625 \begin_inset Flex Code
8626 status collapsed
8627
8628 \begin_layout Plain Layout
8629 LyXDir/layouts/
8630 \end_layout
8631
8632 \end_inset
8633
8634  or to 
8635 \begin_inset Flex Code
8636 status collapsed
8637
8638 \begin_layout Plain Layout
8639 UserDir/layouts
8640 \end_layout
8641
8642 \end_inset
8643
8644 ,
8645  run 
8646 \begin_inset Flex Noun
8647 status collapsed
8648
8649 \begin_layout Plain Layout
8650 Tools\SpecialChar menuseparator
8651 Reconfigure
8652 \end_layout
8653
8654 \end_inset
8655
8656 ,
8657  exit \SpecialChar LyX
8658  and restart.
8659  Then your new text class should be available along with the others.
8660 \end_layout
8661
8662 \begin_layout Standard
8663 Once the layout file is installed,
8664  you can edit it and see your changes without having to reconfigure or to restart \SpecialChar LyX
8665 .
8666 \begin_inset Foot
8667 status collapsed
8668
8669 \begin_layout Plain Layout
8670 In versions of \SpecialChar LyX
8671  prior to 1.6,
8672  this was not true.
8673  As a result,
8674  editing layout files was very time consuming,
8675  since you had constantly to restart \SpecialChar LyX
8676  to see changes.
8677 \end_layout
8678
8679 \end_inset
8680
8681  You can force a reload of the current layout by using the \SpecialChar LyX
8682  function 
8683 \begin_inset Flex Noun
8684 status collapsed
8685
8686 \begin_layout Plain Layout
8687 layout-reload
8688 \end_layout
8689
8690 \end_inset
8691
8692 .
8693  There is no default binding for this function—
8694 though,
8695  of course,
8696  you can bind it to a key yourself.
8697  But you will normally use this function simply by entering it in the mini-buffer.
8698  
8699 \end_layout
8700
8701 \begin_layout Standard
8702
8703 \emph on
8704 Warning
8705 \emph default
8706 :
8707  
8708 \begin_inset Flex Noun
8709 status collapsed
8710
8711 \begin_layout Plain Layout
8712 layout-reload
8713 \end_layout
8714
8715 \end_inset
8716
8717  is very much an `advanced feature'.
8718  It is 
8719 \emph on
8720 strongly
8721 \emph default
8722  recommended that you save your work before using this function.
8723  In fact,
8724  it is 
8725 \emph on
8726 strongly
8727 \emph default
8728  recommended that you not attempt to edit layout information while simultaneously working on a document that you care about.
8729  Use a test document.
8730  Syntax errors and the like in your layout file could cause peculiar behavior.
8731  In particular,
8732  such errors could cause \SpecialChar LyX
8733  to regard the current layout as invalid and to attempt to switch to some other layout.
8734 \begin_inset Foot
8735 status collapsed
8736
8737 \begin_layout Plain Layout
8738 Really bad syntax errors may even caused \SpecialChar LyX
8739  to exit.
8740  This is because certain sorts of errors may make \SpecialChar LyX
8741  unable to read 
8742 \emph on
8743 any
8744 \emph default
8745  layout information.
8746  Please be careful.
8747 \end_layout
8748
8749 \end_inset
8750
8751  The \SpecialChar LyX
8752  team strives to keep \SpecialChar LyX
8753  stable in such situations,
8754  but safe is better than sorry.
8755 \begin_inset Foot
8756 status collapsed
8757
8758 \begin_layout Plain Layout
8759 While we're giving advice:
8760  make regular backups.
8761  And be nice to your mother.
8762 \end_layout
8763
8764 \end_inset
8765
8766
8767 \end_layout
8768
8769 \begin_layout Subsection
8770 The Module declaration
8771 \end_layout
8772
8773 \begin_layout Standard
8774 A module must begin with a line like the following:
8775 \end_layout
8776
8777 \begin_layout LyX-Code
8778 #
8779 \backslash
8780 DeclareLyXModule[endnotes.sty]{Endnotes}
8781 \end_layout
8782
8783 \begin_layout LyX-Code
8784
8785 \size small
8786 #
8787 \backslash
8788 DeclareCategory{Foot- and Endnotes}
8789 \end_layout
8790
8791 \begin_layout Standard
8792 The mandatory argument of 
8793 \family typewriter
8794
8795 \backslash
8796 DeclareLyXModule
8797 \family default
8798 ,
8799  in curly brackets,
8800  is the name of the module,
8801  as it should appear in 
8802 \begin_inset Flex Noun
8803 status collapsed
8804
8805 \begin_layout Plain Layout
8806 Document\SpecialChar menuseparator
8807 Settings\SpecialChar menuseparator
8808 Modules
8809 \end_layout
8810
8811 \end_inset
8812
8813 .
8814  The argument in square brackets is optional:
8815  It declares any \SpecialChar LaTeX
8816  packages on which the module depends.
8817  It is also possible to use the form 
8818 \begin_inset Flex Noun
8819 status collapsed
8820
8821 \begin_layout Plain Layout
8822 from->to
8823 \end_layout
8824
8825 \end_inset
8826
8827  as an optional argument,
8828  which declares that the module can only be used when there exists a conversion chain between the formats `
8829 \begin_inset Flex Code
8830 status collapsed
8831
8832 \begin_layout Plain Layout
8833 from
8834 \end_layout
8835
8836 \end_inset
8837
8838 ' and `
8839 \begin_inset Flex Code
8840 status collapsed
8841
8842 \begin_layout Plain Layout
8843 to
8844 \end_layout
8845
8846 \end_inset
8847
8848 '.
8849  The 
8850 \family typewriter
8851
8852 \backslash
8853 DeclareCategory
8854 \family default
8855  declaration is not strictly mandatory,
8856  but you should add it,
8857  since it is helpful to find the module.
8858  Please have a look at the existing module categories and if appropriate,
8859  use one of those.
8860 \end_layout
8861
8862 \begin_layout Standard
8863 The module and category declaration should then be followed by lines like the following:
8864 \begin_inset Foot
8865 status collapsed
8866
8867 \begin_layout Plain Layout
8868 Preferably in English if the module should be published with \SpecialChar LyX
8869 .
8870  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
8871 \end_layout
8872
8873 \end_inset
8874
8875
8876 \end_layout
8877
8878 \begin_layout LyX-Code
8879 #DescriptionBegin 
8880 \end_layout
8881
8882 \begin_layout LyX-Code
8883 #Adds an endnote command,
8884  in addition to footnotes.
8885  
8886 \end_layout
8887
8888 \begin_layout LyX-Code
8889 #You will need to add  
8890 \backslash
8891 theendnotes in TeX code where you 
8892 \end_layout
8893
8894 \begin_layout LyX-Code
8895 #want the endnotes to appear.
8896  
8897 \end_layout
8898
8899 \begin_layout LyX-Code
8900 #DescriptionEnd 
8901 \end_layout
8902
8903 \begin_layout LyX-Code
8904 #Requires:
8905  somemodule | othermodule
8906 \end_layout
8907
8908 \begin_layout LyX-Code
8909 #Excludes:
8910  badmodule
8911 \end_layout
8912
8913 \begin_layout Standard
8914 The description is used in 
8915 \begin_inset Flex Noun
8916 status collapsed
8917
8918 \begin_layout Plain Layout
8919 Document\SpecialChar menuseparator
8920 Settings\SpecialChar menuseparator
8921 Modules
8922 \end_layout
8923
8924 \end_inset
8925
8926  to provide the user with information about what the module does.
8927  The 
8928 \begin_inset Flex Code
8929 status collapsed
8930
8931 \begin_layout Plain Layout
8932 Requires
8933 \end_layout
8934
8935 \end_inset
8936
8937  line is used to identify other modules with which this one must be used;
8938  the 
8939 \begin_inset Flex Code
8940 status collapsed
8941
8942 \begin_layout Plain Layout
8943 Excludes
8944 \end_layout
8945
8946 \end_inset
8947
8948  line is used to identify modules with which this one may not be used.
8949  Both are optional,
8950  and,
8951  as shown,
8952  multiple modules should be separated with the pipe symbol:
8953  |.
8954  Note that the required modules are treated disjunctively:
8955  
8956 \emph on
8957 at least one
8958 \emph default
8959  of the required modules must be used.
8960  Similarly,
8961  
8962 \emph on
8963 no
8964 \emph default
8965  excluded module may be used.
8966  Note that modules are identified here by their filenames without the 
8967 \begin_inset Flex Code
8968 status collapsed
8969
8970 \begin_layout Plain Layout
8971 .module
8972 \end_layout
8973
8974 \end_inset
8975
8976  extension.
8977  So 
8978 \begin_inset Flex Code
8979 status collapsed
8980
8981 \begin_layout Plain Layout
8982 somemodule
8983 \end_layout
8984
8985 \end_inset
8986
8987  is really 
8988 \begin_inset Flex Code
8989 status collapsed
8990
8991 \begin_layout Plain Layout
8992 somemodule.module
8993 \end_layout
8994
8995 \end_inset
8996
8997 .
8998 \end_layout
8999
9000 \begin_layout Subsection
9001 The CiteEngine file declaration
9002 \end_layout
9003
9004 \begin_layout Standard
9005 A cite engine file must begin with a line like the following:
9006 \end_layout
9007
9008 \begin_layout LyX-Code
9009 #
9010 \backslash
9011 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
9012 \end_layout
9013
9014 \begin_layout Standard
9015 The mandatory argument,
9016  in curly brackets,
9017  is the name of the cite style,
9018  as it should appear in 
9019 \begin_inset Flex Noun
9020 status collapsed
9021
9022 \begin_layout Plain Layout
9023 Document\SpecialChar menuseparator
9024 Settings\SpecialChar menuseparator
9025 Bibliography
9026 \end_layout
9027
9028 \end_inset
9029
9030 .
9031  The argument in square brackets is optional:
9032  It declares any \SpecialChar LaTeX
9033  packages on which the cite engine depends.
9034 \end_layout
9035
9036 \begin_layout Standard
9037 The cite engine declaration should then be followed by lines like the following:
9038 \begin_inset Foot
9039 status collapsed
9040
9041 \begin_layout Plain Layout
9042 Preferably in English if the module should be published with \SpecialChar LyX
9043 .
9044  This description will appear in the list of messages to be translated and will be thus translated with the next interface update.
9045 \end_layout
9046
9047 \end_inset
9048
9049
9050 \end_layout
9051
9052 \begin_layout LyX-Code
9053 # DescriptionBegin
9054 \end_layout
9055
9056 \begin_layout LyX-Code
9057 #   Biblatex supports many author-year and numerical styles.
9058 \end_layout
9059
9060 \begin_layout LyX-Code
9061 #   It is mainly aimed at the Humanities.
9062  It is highly
9063 \end_layout
9064
9065 \begin_layout LyX-Code
9066 #   customizable,
9067  fully localized and provides many features
9068 \end_layout
9069
9070 \begin_layout LyX-Code
9071 #   that are not possible with BibTeX.
9072  The use of 'biber' as
9073 \end_layout
9074
9075 \begin_layout LyX-Code
9076 #   bibliography processor is advised.
9077 \end_layout
9078
9079 \begin_layout LyX-Code
9080 # DescriptionEnd
9081 \end_layout
9082
9083 \begin_layout Standard
9084 The description is used in 
9085 \begin_inset Flex Noun
9086 status collapsed
9087
9088 \begin_layout Plain Layout
9089 Document\SpecialChar menuseparator
9090 Settings\SpecialChar menuseparator
9091 Bibliography
9092 \end_layout
9093
9094 \end_inset
9095
9096  to provide the user with information about the cite engine.
9097 \end_layout
9098
9099 \begin_layout Subsection
9100 Format number
9101 \end_layout
9102
9103 \begin_layout Standard
9104 The first non-comment line of any layout file,
9105  included file,
9106  or module 
9107 \emph on
9108 must
9109 \emph default
9110  contain the file format number:
9111 \end_layout
9112
9113 \begin_layout Description
9114 \begin_inset Flex Code
9115 status collapsed
9116
9117 \begin_layout Plain Layout
9118 Format
9119 \end_layout
9120
9121 \end_inset
9122
9123  [
9124 \begin_inset Flex Code
9125 status collapsed
9126
9127 \begin_layout Plain Layout
9128 int
9129 \end_layout
9130
9131 \end_inset
9132
9133 ] The format number of the layout file.
9134 \end_layout
9135
9136 \begin_layout Standard
9137 This tag was introduced with \SpecialChar LyX
9138
9139 \begin_inset space ~
9140 \end_inset
9141
9142 1.4.0.
9143  Layout files from older \SpecialChar LyX
9144  versions do not have an explicit file format and are considered to have 
9145 \begin_inset Flex Code
9146 status collapsed
9147
9148 \begin_layout Plain Layout
9149 Format
9150 \begin_inset space ~
9151 \end_inset
9152
9153 1
9154 \end_layout
9155
9156 \end_inset
9157
9158 .
9159  The format for the present version of \SpecialChar LyX
9160  is format 60.
9161  But each version of \SpecialChar LyX
9162  is capable of reading earlier versions' layout files,
9163  just as they are capable of reading files produced by earlier versions of \SpecialChar LyX
9164 .
9165  There is,
9166  however,
9167  no provision for converting to earlier formats.
9168 \end_layout
9169
9170 \begin_layout Subsection
9171 \begin_inset CommandInset label
9172 LatexCommand label
9173 name "subsec:General-text-class"
9174
9175 \end_inset
9176
9177 General text class parameters
9178 \end_layout
9179
9180 \begin_layout Standard
9181 These are general parameters that govern the behavior of an entire document class.
9182  (This does 
9183 \emph on
9184 not
9185 \emph default
9186  mean that they must appear in 
9187 \begin_inset Flex Code
9188 status collapsed
9189
9190 \begin_layout Plain Layout
9191 .layout
9192 \end_layout
9193
9194 \end_inset
9195
9196  files rather than in modules.
9197  A module can contain any layout tag.)
9198 \end_layout
9199
9200 \begin_layout Description
9201 \begin_inset Flex Code
9202 status collapsed
9203
9204 \begin_layout Plain Layout
9205 AddToCiteEngine <engine>
9206 \end_layout
9207
9208 \end_inset
9209
9210  Extends the possibilities for displaying citation references.
9211  See 
9212 \begin_inset CommandInset ref
9213 LatexCommand ref
9214 reference "subsec:Citation-engine-description"
9215 plural "false"
9216 caps "false"
9217 noprefix "false"
9218 nolink "false"
9219
9220 \end_inset
9221
9222  for details.
9223  Must end with 
9224 \begin_inset Flex Code
9225 status collapsed
9226
9227 \begin_layout Plain Layout
9228 End
9229 \end_layout
9230
9231 \end_inset
9232
9233 .
9234 \end_layout
9235
9236 \begin_layout Description
9237 \begin_inset Flex Code
9238 status collapsed
9239
9240 \begin_layout Plain Layout
9241 AddToHTMLPreamble
9242 \end_layout
9243
9244 \end_inset
9245
9246  Adds information that will be output in the 
9247 \begin_inset Flex Code
9248 status collapsed
9249
9250 \begin_layout Plain Layout
9251 <head>
9252 \end_layout
9253
9254 \end_inset
9255
9256  block when the document is output to XHTML.
9257  Typically,
9258  this would be used to output CSS style information,
9259  but it can be used for anything that can appear in 
9260 \begin_inset Flex Code
9261 status collapsed
9262
9263 \begin_layout Plain Layout
9264 <head>
9265 \end_layout
9266
9267 \end_inset
9268
9269 .
9270  Must end with 
9271 \begin_inset Quotes eld
9272 \end_inset
9273
9274
9275 \begin_inset Flex Code
9276 status collapsed
9277
9278 \begin_layout Plain Layout
9279 EndPreamble
9280 \end_layout
9281
9282 \end_inset
9283
9284
9285 \begin_inset Quotes erd
9286 \end_inset
9287
9288 .
9289 \end_layout
9290
9291 \begin_layout Description
9292 \begin_inset Flex Code
9293 status collapsed
9294
9295 \begin_layout Plain Layout
9296 AddToPreamble
9297 \end_layout
9298
9299 \end_inset
9300
9301  Adds information to the document preamble.
9302  Must end with
9303 \begin_inset Newline newline
9304 \end_inset
9305
9306
9307 \begin_inset Quotes eld
9308 \end_inset
9309
9310
9311 \begin_inset Flex Code
9312 status collapsed
9313
9314 \begin_layout Plain Layout
9315 EndPreamble
9316 \end_layout
9317
9318 \end_inset
9319
9320
9321 \begin_inset Quotes erd
9322 \end_inset
9323
9324 .
9325 \end_layout
9326
9327 \begin_layout Description
9328 \begin_inset Flex Code
9329 status collapsed
9330
9331 \begin_layout Plain Layout
9332 BibInToc
9333 \end_layout
9334
9335 \end_inset
9336
9337  [
9338 \begin_inset Flex Code
9339 status collapsed
9340
9341 \begin_layout Plain Layout
9342
9343 \emph on
9344 0
9345 \end_layout
9346
9347 \end_inset
9348
9349 ,
9350 \begin_inset space \thinspace{}
9351 \end_inset
9352
9353
9354 \begin_inset Flex Code
9355 status collapsed
9356
9357 \begin_layout Plain Layout
9358 1
9359 \end_layout
9360
9361 \end_inset
9362
9363 ] If the document class adds the bibliography to the table of contents,
9364  add this option with value 
9365 \begin_inset Flex Code
9366 status collapsed
9367
9368 \begin_layout Plain Layout
9369 1
9370 \end_layout
9371
9372 \end_inset
9373
9374  (or 
9375 \begin_inset Flex Code
9376 status collapsed
9377
9378 \begin_layout Plain Layout
9379 true
9380 \end_layout
9381
9382 \end_inset
9383
9384 ).
9385  This prevents the bibliography from being added twice.
9386 \end_layout
9387
9388 \begin_layout Description
9389 \begin_inset Flex Code
9390 status collapsed
9391
9392 \begin_layout Plain Layout
9393 CiteEngine <engine>
9394 \end_layout
9395
9396 \end_inset
9397
9398  Defines the possibilities for displaying citation references.
9399  See 
9400 \begin_inset CommandInset ref
9401 LatexCommand ref
9402 reference "subsec:Citation-engine-description"
9403 plural "false"
9404 caps "false"
9405 noprefix "false"
9406 nolink "false"
9407
9408 \end_inset
9409
9410  for details.
9411  Must end with 
9412 \begin_inset Quotes eld
9413 \end_inset
9414
9415
9416 \begin_inset Flex Code
9417 status collapsed
9418
9419 \begin_layout Plain Layout
9420 End
9421 \end_layout
9422
9423 \end_inset
9424
9425
9426 \begin_inset Quotes erd
9427 \end_inset
9428
9429 .
9430  Primarily used in cite engine files (see 
9431 \begin_inset CommandInset ref
9432 LatexCommand ref
9433 reference "subsec:Cite-Engine-Files"
9434 plural "false"
9435 caps "false"
9436 noprefix "false"
9437 nolink "false"
9438
9439 \end_inset
9440
9441 ).
9442  Note that if you specify this in a layout file or module,
9443  any cite engine definition will be overridden.
9444  Also see 
9445 \begin_inset Flex Code
9446 status collapsed
9447
9448 \begin_layout Plain Layout
9449 AddToCiteEngine
9450 \end_layout
9451
9452 \end_inset
9453
9454 .
9455 \end_layout
9456
9457 \begin_layout Description
9458 \begin_inset Flex Code
9459 status collapsed
9460
9461 \begin_layout Plain Layout
9462 CiteFormat
9463 \end_layout
9464
9465 \end_inset
9466
9467  Defines formats for use in the display of bibliographic information.
9468  See 
9469 \begin_inset CommandInset ref
9470 LatexCommand ref
9471 reference "subsec:Citation-format-description"
9472 nolink "false"
9473
9474 \end_inset
9475
9476  for details.
9477  Must end with 
9478 \begin_inset Quotes eld
9479 \end_inset
9480
9481
9482 \begin_inset Flex Code
9483 status collapsed
9484
9485 \begin_layout Plain Layout
9486 End
9487 \end_layout
9488
9489 \end_inset
9490
9491
9492 \begin_inset Quotes erd
9493 \end_inset
9494
9495 .
9496  Primarily used in cite engine files (see 
9497 \begin_inset CommandInset ref
9498 LatexCommand ref
9499 reference "subsec:Cite-Engine-Files"
9500 plural "false"
9501 caps "false"
9502 noprefix "false"
9503 nolink "false"
9504
9505 \end_inset
9506
9507 ).
9508  A cite format defined in a layout or module will override the cite engine definition.
9509 \end_layout
9510
9511 \begin_layout Description
9512 \begin_inset Flex Code
9513 status collapsed
9514
9515 \begin_layout Plain Layout
9516 CiteFramework
9517 \end_layout
9518
9519 \end_inset
9520
9521  [
9522 \begin_inset Flex Code
9523 status collapsed
9524
9525 \begin_layout Plain Layout
9526
9527 \emph on
9528 bibtex
9529 \end_layout
9530
9531 \end_inset
9532
9533 ,
9534 \begin_inset Flex Code
9535 status collapsed
9536
9537 \begin_layout Plain Layout
9538 biblatex
9539 \end_layout
9540
9541 \end_inset
9542
9543 ] Determines whether 
9544 \family sans
9545 Biblatex
9546 \family default
9547  or Bib\SpecialChar TeX
9548  is used to generate a Bibliography.
9549  Primarily used in cite engine files (see 
9550 \begin_inset CommandInset ref
9551 LatexCommand ref
9552 reference "subsec:Cite-Engine-Files"
9553 plural "false"
9554 caps "false"
9555 noprefix "false"
9556 nolink "false"
9557
9558 \end_inset
9559
9560 ).
9561 \end_layout
9562
9563 \begin_layout Description
9564 \begin_inset Flex Code
9565 status collapsed
9566
9567 \begin_layout Plain Layout
9568 ClassOptions
9569 \end_layout
9570
9571 \end_inset
9572
9573  Describes various global options supported by the document class.
9574  See 
9575 \begin_inset CommandInset ref
9576 LatexCommand ref
9577 reference "subsec:ClassOptions"
9578 nolink "false"
9579
9580 \end_inset
9581
9582  for a description.
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 End
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 Columns
9610 \end_layout
9611
9612 \end_inset
9613
9614  [
9615 \begin_inset Flex Code
9616 status collapsed
9617
9618 \begin_layout Plain Layout
9619
9620 \emph on
9621 1
9622 \end_layout
9623
9624 \end_inset
9625
9626 ,
9627 \begin_inset space \thinspace{}
9628 \end_inset
9629
9630
9631 \begin_inset Flex Code
9632 status collapsed
9633
9634 \begin_layout Plain Layout
9635 2
9636 \end_layout
9637
9638 \end_inset
9639
9640 ] Whether the class should 
9641 \emph on
9642 default
9643 \emph default
9644  to having one or two columns.
9645  Can be changed in the 
9646 \begin_inset Flex Noun
9647 status collapsed
9648
9649 \begin_layout Plain Layout
9650 Document\SpecialChar menuseparator
9651 Settings
9652 \end_layout
9653
9654 \end_inset
9655
9656  dialog.
9657 \end_layout
9658
9659 \begin_layout Description
9660 \begin_inset Flex Code
9661 status collapsed
9662
9663 \begin_layout Plain Layout
9664 Counter
9665 \end_layout
9666
9667 \end_inset
9668
9669  [
9670 \begin_inset Flex Code
9671 status collapsed
9672
9673 \begin_layout Plain Layout
9674 string
9675 \end_layout
9676
9677 \end_inset
9678
9679 ] This sequence defines the properties for a counter.
9680  If the counter does not yet exist,
9681  it is created;
9682  if it does exist,
9683  it is modified.
9684  Must end with 
9685 \begin_inset Quotes eld
9686 \end_inset
9687
9688
9689 \begin_inset Flex Code
9690 status collapsed
9691
9692 \begin_layout Plain Layout
9693 End
9694 \end_layout
9695
9696 \end_inset
9697
9698
9699 \begin_inset Quotes erd
9700 \end_inset
9701
9702 .
9703 \begin_inset Newline newline
9704 \end_inset
9705
9706 See 
9707 \begin_inset CommandInset ref
9708 LatexCommand ref
9709 reference "subsec:Counters"
9710 nolink "false"
9711
9712 \end_inset
9713
9714  for details on counters.
9715 \end_layout
9716
9717 \begin_layout Description
9718 \begin_inset Flex Code
9719 status collapsed
9720
9721 \begin_layout Plain Layout
9722 DefaultFont
9723 \end_layout
9724
9725 \end_inset
9726
9727  Sets the default font used to display the document.
9728  See 
9729 \begin_inset CommandInset ref
9730 LatexCommand ref
9731 reference "subsec:Font-description"
9732 nolink "false"
9733
9734 \end_inset
9735
9736  for how to declare fonts.
9737  Must end with 
9738 \begin_inset Quotes eld
9739 \end_inset
9740
9741
9742 \begin_inset Flex Code
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746 EndFont
9747 \end_layout
9748
9749 \end_inset
9750
9751
9752 \begin_inset Quotes erd
9753 \end_inset
9754
9755 .
9756 \end_layout
9757
9758 \begin_layout Description
9759 \begin_inset Flex Code
9760 status collapsed
9761
9762 \begin_layout Plain Layout
9763 DefaultModule
9764 \end_layout
9765
9766 \end_inset
9767
9768  [
9769 \begin_inset Flex Code
9770 status collapsed
9771
9772 \begin_layout Plain Layout
9773 <module>
9774 \end_layout
9775
9776 \end_inset
9777
9778 ] Specifies a module to be included by default with this document class.
9779  The module is specified as filename without the 
9780 \begin_inset Flex Code
9781 status collapsed
9782
9783 \begin_layout Plain Layout
9784 .module
9785 \end_layout
9786
9787 \end_inset
9788
9789  extension.
9790  The user can still remove the module,
9791  but it will be active at the outset.
9792  (This applies only when new files are created,
9793  or when this class is chosen for an existing document.)
9794 \end_layout
9795
9796 \begin_layout Description
9797 \begin_inset Flex Code
9798 status collapsed
9799
9800 \begin_layout Plain Layout
9801 DefaultStyle
9802 \end_layout
9803
9804 \end_inset
9805
9806  [
9807 \begin_inset Flex Code
9808 status collapsed
9809
9810 \begin_layout Plain Layout
9811 <style>
9812 \end_layout
9813
9814 \end_inset
9815
9816 ] This is the style that will be assigned to new paragraphs,
9817  usually 
9818 \begin_inset Flex Noun
9819 status collapsed
9820
9821 \begin_layout Plain Layout
9822 Standard
9823 \end_layout
9824
9825 \end_inset
9826
9827 .
9828  This will default to the first defined style if not given,
9829  but you are encouraged to use this directive.
9830 \end_layout
9831
9832 \begin_layout Description
9833 \begin_inset Flex Code
9834 status collapsed
9835
9836 \begin_layout Plain Layout
9837 DocBookRoot
9838 \end_layout
9839
9840 \end_inset
9841
9842  [
9843 \begin_inset Flex Code
9844 status collapsed
9845
9846 \begin_layout Plain Layout
9847 string
9848 \end_layout
9849
9850 \end_inset
9851
9852 ] The root element (at the top of the document) to use when outputting documents with this class in DocBook.
9853  The default value is 
9854 \begin_inset Quotes eld
9855 \end_inset
9856
9857
9858 \begin_inset Flex Code
9859 status collapsed
9860
9861 \begin_layout Plain Layout
9862 article
9863 \end_layout
9864
9865 \end_inset
9866
9867
9868 \begin_inset Quotes erd
9869 \end_inset
9870
9871 .
9872 \end_layout
9873
9874 \begin_layout Description
9875 \begin_inset Flex Code
9876 status collapsed
9877
9878 \begin_layout Plain Layout
9879 DocBookForceAbstract
9880 \end_layout
9881
9882 \end_inset
9883
9884  [
9885 \begin_inset Flex Code
9886 status collapsed
9887
9888 \begin_layout Plain Layout
9889 boolean
9890 \end_layout
9891
9892 \end_inset
9893
9894 ] If 
9895 \begin_inset Quotes eld
9896 \end_inset
9897
9898
9899 \family typewriter
9900 true
9901 \family default
9902
9903 \begin_inset Quotes erd
9904 \end_inset
9905
9906 ,
9907  the root element will always have an 
9908 \family typewriter
9909 <abstract>
9910 \family default
9911  tag.
9912  The default value is 
9913 \begin_inset Quotes eld
9914 \end_inset
9915
9916
9917 \family typewriter
9918 false
9919 \family default
9920
9921 \begin_inset Quotes erd
9922 \end_inset
9923
9924 .
9925 \end_layout
9926
9927 \begin_layout Description
9928 \begin_inset Flex Code
9929 status collapsed
9930
9931 \begin_layout Plain Layout
9932 ExcludesModule
9933 \end_layout
9934
9935 \end_inset
9936
9937  [
9938 \begin_inset Flex Code
9939 status collapsed
9940
9941 \begin_layout Plain Layout
9942 <module>
9943 \end_layout
9944
9945 \end_inset
9946
9947 ] This tag indicates that the module (which is specified by filename without the 
9948 \begin_inset Flex Code
9949 status collapsed
9950
9951 \begin_layout Plain Layout
9952 .module
9953 \end_layout
9954
9955 \end_inset
9956
9957  extension) cannot be used with this document class.
9958  This might be used in a journal-specific layout file to prevent,
9959  say,
9960  the use of the 
9961 \begin_inset Flex Code
9962 status collapsed
9963
9964 \begin_layout Plain Layout
9965 theorems-sec
9966 \end_layout
9967
9968 \end_inset
9969
9970  module that numbers theorems by section.
9971  This tag may 
9972 \emph on
9973 not
9974 \emph default
9975  be used in a module.
9976  Modules have their own way of excluding other modules (see 
9977 \begin_inset CommandInset ref
9978 LatexCommand ref
9979 reference "subsec:Layout-modules"
9980 nolink "false"
9981
9982 \end_inset
9983
9984 ).
9985 \end_layout
9986
9987 \begin_layout Description
9988 \begin_inset Flex Code
9989 status collapsed
9990
9991 \begin_layout Plain Layout
9992 Float
9993 \end_layout
9994
9995 \end_inset
9996
9997  Defines a new float.
9998  See 
9999 \begin_inset CommandInset ref
10000 LatexCommand ref
10001 reference "subsec:Floats"
10002 nolink "false"
10003
10004 \end_inset
10005
10006  for details.
10007  Must end with 
10008 \begin_inset Quotes eld
10009 \end_inset
10010
10011
10012 \begin_inset Flex Code
10013 status collapsed
10014
10015 \begin_layout Plain Layout
10016 End
10017 \end_layout
10018
10019 \end_inset
10020
10021
10022 \begin_inset Quotes erd
10023 \end_inset
10024
10025 .
10026 \end_layout
10027
10028 \begin_layout Description
10029 \begin_inset Flex Code
10030 status collapsed
10031
10032 \begin_layout Plain Layout
10033 HTMLPreamble
10034 \end_layout
10035
10036 \end_inset
10037
10038  Sets the information that will be output in the 
10039 \begin_inset Flex Code
10040 status collapsed
10041
10042 \begin_layout Plain Layout
10043 <head>
10044 \end_layout
10045
10046 \end_inset
10047
10048  block when this document class is output to XHTML.
10049  Note that this will completely override any prior 
10050 \begin_inset Flex Code
10051 status collapsed
10052
10053 \begin_layout Plain Layout
10054 HTMLPreamble
10055 \end_layout
10056
10057 \end_inset
10058
10059  or 
10060 \begin_inset Flex Code
10061 status collapsed
10062
10063 \begin_layout Plain Layout
10064 AddToHTMLPreamble
10065 \end_layout
10066
10067 \end_inset
10068
10069  declarations.
10070  (Use
10071 \begin_inset Newline newline
10072 \end_inset
10073
10074
10075 \begin_inset Flex Code
10076 status collapsed
10077
10078 \begin_layout Plain Layout
10079 AddToHTMLPreamble
10080 \end_layout
10081
10082 \end_inset
10083
10084  if you just want to add material to the preamble.) Must end with 
10085 \begin_inset Quotes eld
10086 \end_inset
10087
10088
10089 \begin_inset Flex Code
10090 status collapsed
10091
10092 \begin_layout Plain Layout
10093 EndPreamble
10094 \end_layout
10095
10096 \end_inset
10097
10098
10099 \begin_inset Quotes erd
10100 \end_inset
10101
10102 .
10103 \end_layout
10104
10105 \begin_layout Description
10106 \begin_inset Flex Code
10107 status collapsed
10108
10109 \begin_layout Plain Layout
10110 HTMLTOCSection
10111 \end_layout
10112
10113 \end_inset
10114
10115  [
10116 \begin_inset Flex Code
10117 status collapsed
10118
10119 \begin_layout Plain Layout
10120 <style>
10121 \end_layout
10122
10123 \end_inset
10124
10125 ] The style to use for the table of contents,
10126  bibliography,
10127  and so forth,
10128  when the document is output to HTML.
10129  For articles,
10130  this should normally be 
10131 \begin_inset Flex Code
10132 status collapsed
10133
10134 \begin_layout Plain Layout
10135 Section
10136 \end_layout
10137
10138 \end_inset
10139
10140 ;
10141  for books 
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 Chapter
10147 \end_layout
10148
10149 \end_inset
10150
10151 .
10152  If it is not given,
10153  then \SpecialChar LyX
10154  will attempt to figure out which layout to use.
10155 \end_layout
10156
10157 \begin_layout Description
10158 \begin_inset Flex Code
10159 status collapsed
10160
10161 \begin_layout Plain Layout
10162 IfCounter
10163 \end_layout
10164
10165 \end_inset
10166
10167  [
10168 \begin_inset Flex Code
10169 status collapsed
10170
10171 \begin_layout Plain Layout
10172 <counter>
10173 \end_layout
10174
10175 \end_inset
10176
10177 ] Modifies the properties of the given counter.
10178  If the counter does not exist,
10179  the statement is ignored.
10180  Must end with 
10181 \begin_inset Quotes eld
10182 \end_inset
10183
10184
10185 \begin_inset Flex Code
10186 status collapsed
10187
10188 \begin_layout Plain Layout
10189 End
10190 \end_layout
10191
10192 \end_inset
10193
10194
10195 \begin_inset Quotes erd
10196 \end_inset
10197
10198 .
10199 \begin_inset Newline newline
10200 \end_inset
10201
10202 See 
10203 \begin_inset CommandInset ref
10204 LatexCommand ref
10205 reference "subsec:Counters"
10206 nolink "false"
10207
10208 \end_inset
10209
10210  for details on counters.
10211 \end_layout
10212
10213 \begin_layout Description
10214 \begin_inset Flex Code
10215 status collapsed
10216
10217 \begin_layout Plain Layout
10218 Input
10219 \end_layout
10220
10221 \end_inset
10222
10223  [
10224 \begin_inset Flex Code
10225 status collapsed
10226
10227 \begin_layout Plain Layout
10228 <filename>
10229 \end_layout
10230
10231 \end_inset
10232
10233 ] This allows you to include another layout definition file within yours to avoid duplicating commands.
10234  Common examples are the standard layout files,
10235  for example,
10236  
10237 \begin_inset Flex Code
10238 status collapsed
10239
10240 \begin_layout Plain Layout
10241 stdclass.inc
10242 \end_layout
10243
10244 \end_inset
10245
10246 ,
10247  which contains most of the basic layouts.
10248 \end_layout
10249
10250 \begin_layout Description
10251 \begin_inset Flex Code
10252 status collapsed
10253
10254 \begin_layout Plain Layout
10255 InputGlobal
10256 \end_layout
10257
10258 \end_inset
10259
10260  [
10261 \begin_inset Flex Code
10262 status collapsed
10263
10264 \begin_layout Plain Layout
10265 <filename>
10266 \end_layout
10267
10268 \end_inset
10269
10270 ] is a variant of the 
10271 \begin_inset Flex Code
10272 status collapsed
10273
10274 \begin_layout Plain Layout
10275 Input
10276 \end_layout
10277
10278 \end_inset
10279
10280  command which does not look for files in the user directory.
10281  This allows to create a file 
10282 \begin_inset Flex Code
10283 status collapsed
10284
10285 \begin_layout Plain Layout
10286 name.layout
10287 \end_layout
10288
10289 \end_inset
10290
10291  or 
10292 \begin_inset Flex Code
10293 status collapsed
10294
10295 \begin_layout Plain Layout
10296 name.inc
10297 \end_layout
10298
10299 \end_inset
10300
10301  in the user directory which includes a global file with the same name via 
10302 \begin_inset Flex Code
10303 status collapsed
10304
10305 \begin_layout Plain Layout
10306 InputGlobal name
10307 \end_layout
10308
10309 \end_inset
10310
10311  or 
10312 \begin_inset Flex Code
10313 status collapsed
10314
10315 \begin_layout Plain Layout
10316 InputGlobal name.inc
10317 \end_layout
10318
10319 \end_inset
10320
10321 ,
10322  respectively (with 
10323 \begin_inset Flex Code
10324 status collapsed
10325
10326 \begin_layout Plain Layout
10327 Input
10328 \end_layout
10329
10330 \end_inset
10331
10332 ,
10333  the file would recursively include itself).
10334  This way,
10335  you can modify global files without having to completely copy them.
10336 \end_layout
10337
10338 \begin_layout Description
10339 \begin_inset Flex Code
10340 status collapsed
10341
10342 \begin_layout Plain Layout
10343 InsetLayout
10344 \end_layout
10345
10346 \end_inset
10347
10348  [
10349 \begin_inset Flex Code
10350 status collapsed
10351
10352 \begin_layout Plain Layout
10353 <type>
10354 \end_layout
10355
10356 \end_inset
10357
10358 ] This section (re-)defines the layout of an inset.
10359  It can be applied to an existing inset or to a new,
10360  user-defined inset,
10361  e.g.,
10362  a new character style.
10363  Must end with 
10364 \begin_inset Quotes eld
10365 \end_inset
10366
10367
10368 \begin_inset Flex Code
10369 status collapsed
10370
10371 \begin_layout Plain Layout
10372 End
10373 \end_layout
10374
10375 \end_inset
10376
10377
10378 \begin_inset Quotes erd
10379 \end_inset
10380
10381 .
10382 \begin_inset Newline newline
10383 \end_inset
10384
10385 See 
10386 \begin_inset CommandInset ref
10387 LatexCommand ref
10388 reference "subsec:Flex-insets-and"
10389 nolink "false"
10390
10391 \end_inset
10392
10393  for more information.
10394  
10395 \end_layout
10396
10397 \begin_layout Description
10398 \begin_inset Flex Code
10399 status collapsed
10400
10401 \begin_layout Plain Layout
10402 LeftMargin
10403 \end_layout
10404
10405 \end_inset
10406
10407  [
10408 \begin_inset Flex Code
10409 status collapsed
10410
10411 \begin_layout Plain Layout
10412 string
10413 \end_layout
10414
10415 \end_inset
10416
10417 ] A string that indicates the width of the left margin on the screen,
10418  for example,
10419  
10420 \begin_inset Quotes eld
10421 \end_inset
10422
10423
10424 \begin_inset Flex Code
10425 status collapsed
10426
10427 \begin_layout Plain Layout
10428 MMMMM
10429 \end_layout
10430
10431 \end_inset
10432
10433
10434 \begin_inset Quotes erd
10435 \end_inset
10436
10437 .
10438  (Note that this is not a `length',
10439  like 
10440 \begin_inset Quotes eld
10441 \end_inset
10442
10443 2ex
10444 \begin_inset Quotes erd
10445 \end_inset
10446
10447 .)
10448 \end_layout
10449
10450 \begin_layout Description
10451 \begin_inset Flex Code
10452 status collapsed
10453
10454 \begin_layout Plain Layout
10455 MaxCiteNames
10456 \end_layout
10457
10458 \end_inset
10459
10460  [
10461 \begin_inset Flex Code
10462 status collapsed
10463
10464 \begin_layout Plain Layout
10465 integer
10466 \end_layout
10467
10468 \end_inset
10469
10470 ] An integer that determines the maximal number of names displayed in an author-year citation before the citation switches to 
10471 \begin_inset Quotes eld
10472 \end_inset
10473
10474 FirstAuthor et al.
10475 \begin_inset Quotes erd
10476 \end_inset
10477
10478 .
10479  Primarily used in cite engine files (see 
10480 \begin_inset CommandInset ref
10481 LatexCommand ref
10482 reference "subsec:Cite-Engine-Files"
10483 plural "false"
10484 caps "false"
10485 noprefix "false"
10486 nolink "false"
10487
10488 \end_inset
10489
10490 ).
10491 \end_layout
10492
10493 \begin_layout Description
10494 \begin_inset Flex Code
10495 status collapsed
10496
10497 \begin_layout Plain Layout
10498 ModifyInsetLayout
10499 \end_layout
10500
10501 \end_inset
10502
10503  [
10504 \begin_inset Flex Code
10505 status collapsed
10506
10507 \begin_layout Plain Layout
10508 <type>
10509 \end_layout
10510
10511 \end_inset
10512
10513 ] Modifies the layout of an inset.
10514  If the layout does not exist,
10515  this section is ignored.
10516  Must end with 
10517 \begin_inset Quotes eld
10518 \end_inset
10519
10520
10521 \begin_inset Flex Code
10522 status collapsed
10523
10524 \begin_layout Plain Layout
10525 End
10526 \end_layout
10527
10528 \end_inset
10529
10530
10531 \begin_inset Quotes erd
10532 \end_inset
10533
10534 .
10535 \end_layout
10536
10537 \begin_layout Description
10538 \begin_inset Flex Code
10539 status collapsed
10540
10541 \begin_layout Plain Layout
10542 ModifyStyle
10543 \end_layout
10544
10545 \end_inset
10546
10547  [
10548 \begin_inset Flex Code
10549 status collapsed
10550
10551 \begin_layout Plain Layout
10552 <style>
10553 \end_layout
10554
10555 \end_inset
10556
10557 ] Modifies the properties of the given paragraph style.
10558  If the style does not exist,
10559  this section is ignored.
10560  Must end with 
10561 \begin_inset Quotes eld
10562 \end_inset
10563
10564
10565 \begin_inset Flex Code
10566 status collapsed
10567
10568 \begin_layout Plain Layout
10569 End
10570 \end_layout
10571
10572 \end_inset
10573
10574
10575 \begin_inset Quotes erd
10576 \end_inset
10577
10578 .
10579 \end_layout
10580
10581 \begin_layout Description
10582 \begin_inset Flex Code
10583 status collapsed
10584
10585 \begin_layout Plain Layout
10586 NoCounter
10587 \end_layout
10588
10589 \end_inset
10590
10591  [
10592 \begin_inset Flex Code
10593 status collapsed
10594
10595 \begin_layout Plain Layout
10596 <counter>
10597 \end_layout
10598
10599 \end_inset
10600
10601 ] Deletes an existing counter,
10602  usually one defined in an included file.
10603 \end_layout
10604
10605 \begin_layout Description
10606 \begin_inset Flex Code
10607 status collapsed
10608
10609 \begin_layout Plain Layout
10610 NoFloat
10611 \end_layout
10612
10613 \end_inset
10614
10615  [
10616 \begin_inset Flex Code
10617 status collapsed
10618
10619 \begin_layout Plain Layout
10620 <float>
10621 \end_layout
10622
10623 \end_inset
10624
10625 ] Deletes an existing float.
10626  This is particularly useful when you want to suppress a float that has been defined in an input file.
10627 \end_layout
10628
10629 \begin_layout Description
10630 \begin_inset Flex Code
10631 status collapsed
10632
10633 \begin_layout Plain Layout
10634 NoStyle
10635 \end_layout
10636
10637 \end_inset
10638
10639  [
10640 \begin_inset Flex Code
10641 status collapsed
10642
10643 \begin_layout Plain Layout
10644 <style>
10645 \end_layout
10646
10647 \end_inset
10648
10649 ] Deletes an existing style.
10650 \end_layout
10651
10652 \begin_layout Description
10653 \begin_inset Flex Code
10654 status collapsed
10655
10656 \begin_layout Plain Layout
10657 OutlinerName
10658 \end_layout
10659
10660 \end_inset
10661
10662  [
10663 \begin_inset Flex Code
10664 status collapsed
10665
10666 \begin_layout Plain Layout
10667 <type>
10668 \end_layout
10669
10670 \end_inset
10671
10672 ] [
10673 \begin_inset Flex Code
10674 status collapsed
10675
10676 \begin_layout Plain Layout
10677 <string>
10678 \end_layout
10679
10680 \end_inset
10681
10682 ] Define a new table of contents with type 
10683 \begin_inset Flex Code
10684 status collapsed
10685
10686 \begin_layout Plain Layout
10687 <type>
10688 \end_layout
10689
10690 \end_inset
10691
10692  and name 
10693 \begin_inset Flex Code
10694 status collapsed
10695
10696 \begin_layout Plain Layout
10697 <string>
10698 \end_layout
10699
10700 \end_inset
10701
10702 .
10703  See also the AddToToc commands.
10704 \end_layout
10705
10706 \begin_layout Description
10707 \begin_inset Flex Code
10708 status collapsed
10709
10710 \begin_layout Plain Layout
10711 OutputFormat
10712 \end_layout
10713
10714 \end_inset
10715
10716  [
10717 \begin_inset Flex Code
10718 status collapsed
10719
10720 \begin_layout Plain Layout
10721 <format>
10722 \end_layout
10723
10724 \end_inset
10725
10726 ] The file format (as defined in the \SpecialChar LyX
10727  preferences) produced by this document class.
10728  It is mainly useful when 
10729 \begin_inset Flex Code
10730 status collapsed
10731
10732 \begin_layout Plain Layout
10733 OutputType
10734 \end_layout
10735
10736 \end_inset
10737
10738  is 
10739 \begin_inset Flex Code
10740 status collapsed
10741
10742 \begin_layout Plain Layout
10743 literate
10744 \end_layout
10745
10746 \end_inset
10747
10748  and one wants to define a new type of literate document.
10749  The format is reset to 
10750 \begin_inset Quotes eld
10751 \end_inset
10752
10753
10754 \begin_inset Flex Code
10755 status collapsed
10756
10757 \begin_layout Plain Layout
10758 latex
10759 \end_layout
10760
10761 \end_inset
10762
10763
10764 \begin_inset Quotes erd
10765 \end_inset
10766
10767  when the corresponding 
10768 \begin_inset Flex Code
10769 status collapsed
10770
10771 \begin_layout Plain Layout
10772 OutputType
10773 \end_layout
10774
10775 \end_inset
10776
10777  parameter is encountered.
10778 \end_layout
10779
10780 \begin_layout Description
10781 \begin_inset Flex Code
10782 status collapsed
10783
10784 \begin_layout Plain Layout
10785 OutputType
10786 \end_layout
10787
10788 \end_inset
10789
10790  [
10791 \begin_inset Flex Code
10792 status collapsed
10793
10794 \begin_layout Plain Layout
10795
10796 \emph on
10797 lat
10798 \emph default
10799 ex
10800 \end_layout
10801
10802 \end_inset
10803
10804 ,
10805  
10806 \begin_inset Flex Code
10807 status collapsed
10808
10809 \begin_layout Plain Layout
10810 literate
10811 \end_layout
10812
10813 \end_inset
10814
10815 ] Specifies what sort of output documents using this class will produce.
10816 \end_layout
10817
10818 \begin_layout Description
10819 \begin_inset Flex Code
10820 status collapsed
10821
10822 \begin_layout Plain Layout
10823 PackageOptions
10824 \end_layout
10825
10826 \end_inset
10827
10828  [
10829 \begin_inset Flex Code
10830 status collapsed
10831
10832 \begin_layout Plain Layout
10833 string
10834 \end_layout
10835
10836 \end_inset
10837
10838  
10839 \begin_inset Flex Code
10840 status collapsed
10841
10842 \begin_layout Plain Layout
10843 string
10844 \end_layout
10845
10846 \end_inset
10847
10848 ] Specifies options,
10849  given in the second string,
10850  for the package named by the first string.
10851  For example,
10852  
10853 \begin_inset Quotes eld
10854 \end_inset
10855
10856
10857 \begin_inset Flex Code
10858 status collapsed
10859
10860 \begin_layout Plain Layout
10861 PackageOptions natbib square
10862 \end_layout
10863
10864 \end_inset
10865
10866
10867 \begin_inset Quotes erd
10868 \end_inset
10869
10870  will cause 
10871 \begin_inset Flex Code
10872 status collapsed
10873
10874 \begin_layout Plain Layout
10875 natbib
10876 \end_layout
10877
10878 \end_inset
10879
10880  to be loaded with the 
10881 \begin_inset Flex Code
10882 status collapsed
10883
10884 \begin_layout Plain Layout
10885 square
10886 \end_layout
10887
10888 \end_inset
10889
10890  option.
10891  (For \SpecialChar TeX
10892 perts,
10893  this causes \SpecialChar LyX
10894  to output:
10895  
10896 \begin_inset Flex Code
10897 status collapsed
10898
10899 \begin_layout Plain Layout
10900
10901 \backslash
10902 PassOptionsToPackage{natbib}{square}
10903 \end_layout
10904
10905 \end_inset
10906
10907  prior to loading 
10908 \begin_inset Flex Code
10909 status collapsed
10910
10911 \begin_layout Plain Layout
10912 natbib
10913 \end_layout
10914
10915 \end_inset
10916
10917 .)
10918 \end_layout
10919
10920 \begin_layout Description
10921 \begin_inset Flex Code
10922 status collapsed
10923
10924 \begin_layout Plain Layout
10925 PageSize
10926 \end_layout
10927
10928 \end_inset
10929
10930  [
10931 \begin_inset Flex Code
10932 status collapsed
10933
10934 \begin_layout Plain Layout
10935
10936 \emph on
10937 custom
10938 \emph default
10939 ,
10940  letter,
10941  legal,
10942  executive,
10943  a0,
10944  a1,
10945  a2,
10946  a3,
10947  a4,
10948  a5,
10949  a6,
10950  b0,
10951  b1,
10952  b2,
10953  b3,
10954  b4,
10955  b5,
10956  b6,
10957  c0,
10958  c1,
10959  c2,
10960  c3,
10961  c4,
10962  c5,
10963  c6,
10964  b0j,
10965  b1j,
10966  b2j,
10967  b3j,
10968  b4j,
10969  b5j,
10970  b6j
10971 \end_layout
10972
10973 \end_inset
10974
10975 ] The default page size.
10976  This is used by some converters.
10977 \end_layout
10978
10979 \begin_layout Description
10980 \begin_inset Flex Code
10981 status collapsed
10982
10983 \begin_layout Plain Layout
10984 PageStyle
10985 \end_layout
10986
10987 \end_inset
10988
10989  [
10990 \begin_inset Flex Code
10991 status collapsed
10992
10993 \begin_layout Plain Layout
10994
10995 \emph on
10996 plain
10997 \end_layout
10998
10999 \end_inset
11000
11001 ,
11002  
11003 \begin_inset Flex Code
11004 status collapsed
11005
11006 \begin_layout Plain Layout
11007 empty
11008 \end_layout
11009
11010 \end_inset
11011
11012 ,
11013  
11014 \begin_inset Flex Code
11015 status collapsed
11016
11017 \begin_layout Plain Layout
11018 headings
11019 \end_layout
11020
11021 \end_inset
11022
11023 ] The default pagestyle.
11024  Can be changed in the 
11025 \begin_inset Flex Noun
11026 status collapsed
11027
11028 \begin_layout Plain Layout
11029 Document\SpecialChar menuseparator
11030 Settings
11031 \end_layout
11032
11033 \end_inset
11034
11035  dialog.
11036 \end_layout
11037
11038 \begin_layout Description
11039 \begin_inset Flex Code
11040 status collapsed
11041
11042 \begin_layout Plain Layout
11043 Preamble
11044 \end_layout
11045
11046 \end_inset
11047
11048  Sets the preamble for the \SpecialChar LaTeX
11049  document.
11050  Note that this will completely override any prior 
11051 \begin_inset Flex Code
11052 status collapsed
11053
11054 \begin_layout Plain Layout
11055 Preamble
11056 \end_layout
11057
11058 \end_inset
11059
11060  or 
11061 \begin_inset Flex Code
11062 status collapsed
11063
11064 \begin_layout Plain Layout
11065 AddToPreamble
11066 \end_layout
11067
11068 \end_inset
11069
11070  declarations.
11071  (Use 
11072 \begin_inset Flex Code
11073 status collapsed
11074
11075 \begin_layout Plain Layout
11076 AddToPreamble
11077 \end_layout
11078
11079 \end_inset
11080
11081  if you just want to add material to the preamble.) Must end with 
11082 \begin_inset Quotes eld
11083 \end_inset
11084
11085
11086 \begin_inset Flex Code
11087 status collapsed
11088
11089 \begin_layout Plain Layout
11090 EndPreamble
11091 \end_layout
11092
11093 \end_inset
11094
11095
11096 \begin_inset Quotes erd
11097 \end_inset
11098
11099 .
11100 \end_layout
11101
11102 \begin_layout Description
11103 \begin_inset Flex Code
11104 status collapsed
11105
11106 \begin_layout Plain Layout
11107 ProvideInsetLayout
11108 \end_layout
11109
11110 \end_inset
11111
11112  [
11113 \begin_inset Flex Code
11114 status collapsed
11115
11116 \begin_layout Plain Layout
11117 <type>
11118 \end_layout
11119
11120 \end_inset
11121
11122 ] Defines the layout of an inset if it does not already exist.
11123  If the layout does exist,
11124  this section is ignored.
11125  Must end with 
11126 \begin_inset Quotes eld
11127 \end_inset
11128
11129
11130 \begin_inset Flex Code
11131 status collapsed
11132
11133 \begin_layout Plain Layout
11134 End
11135 \end_layout
11136
11137 \end_inset
11138
11139
11140 \begin_inset Quotes erd
11141 \end_inset
11142
11143 .
11144 \end_layout
11145
11146 \begin_layout Description
11147 \begin_inset Flex Code
11148 status collapsed
11149
11150 \begin_layout Plain Layout
11151 Provides
11152 \end_layout
11153
11154 \end_inset
11155
11156  [
11157 \begin_inset Flex Code
11158 status collapsed
11159
11160 \begin_layout Plain Layout
11161 string
11162 \end_layout
11163
11164 \end_inset
11165
11166 ] [
11167 \begin_inset Flex Code
11168 status collapsed
11169
11170 \begin_layout Plain Layout
11171
11172 \emph on
11173 0
11174 \end_layout
11175
11176 \end_inset
11177
11178 ,
11179 \begin_inset space \thinspace{}
11180 \end_inset
11181
11182
11183 \begin_inset Flex Code
11184 status collapsed
11185
11186 \begin_layout Plain Layout
11187 1
11188 \end_layout
11189
11190 \end_inset
11191
11192 ] Whether the class already provides the feature 
11193 \begin_inset Flex Code
11194 status collapsed
11195
11196 \begin_layout Plain Layout
11197 string
11198 \end_layout
11199
11200 \end_inset
11201
11202 .
11203  A feature is in general the name of a package (e.
11204 \begin_inset space \thinspace{}
11205 \end_inset
11206
11207 g.
11208 \begin_inset space \space{}
11209 \end_inset
11210
11211
11212 \begin_inset Flex Code
11213 status collapsed
11214
11215 \begin_layout Plain Layout
11216 amsmath
11217 \end_layout
11218
11219 \end_inset
11220
11221  or 
11222 \begin_inset Flex Code
11223 status collapsed
11224
11225 \begin_layout Plain Layout
11226 makeidx
11227 \end_layout
11228
11229 \end_inset
11230
11231 ) or a macro (e.
11232 \begin_inset space \thinspace{}
11233 \end_inset
11234
11235 g.
11236 \begin_inset space \space{}
11237 \end_inset
11238
11239
11240 \begin_inset Flex Code
11241 status collapsed
11242
11243 \begin_layout Plain Layout
11244 url
11245 \end_layout
11246
11247 \end_inset
11248
11249  or 
11250 \begin_inset Flex Code
11251 status collapsed
11252
11253 \begin_layout Plain Layout
11254 boldsymbol
11255 \end_layout
11256
11257 \end_inset
11258
11259 ).
11260  See 
11261 \begin_inset CommandInset ref
11262 LatexCommand ref
11263 reference "chap:List-of-functions"
11264 nolink "false"
11265
11266 \end_inset
11267
11268  for the list of features.
11269 \end_layout
11270
11271 \begin_layout Description
11272 \begin_inset Flex Code
11273 status collapsed
11274
11275 \begin_layout Plain Layout
11276 ProvidesModule
11277 \end_layout
11278
11279 \end_inset
11280
11281  [
11282 \begin_inset Flex Code
11283 status collapsed
11284
11285 \begin_layout Plain Layout
11286 string
11287 \end_layout
11288
11289 \end_inset
11290
11291 ] Indicates that this layout provides the functionality of the module mentioned,
11292  which should be specified by the filename without the 
11293 \begin_inset Flex Code
11294 status collapsed
11295
11296 \begin_layout Plain Layout
11297 .module
11298 \end_layout
11299
11300 \end_inset
11301
11302  extension.
11303  This will typically be used if the layout includes the module directly,
11304  rather than using the 
11305 \begin_inset Flex Code
11306 status collapsed
11307
11308 \begin_layout Plain Layout
11309 DefaultModule
11310 \end_layout
11311
11312 \end_inset
11313
11314  tag to indicate that it ought to be used.
11315  It could also be used in a module that provided an alternate implementation of the same functionality.
11316 \end_layout
11317
11318 \begin_layout Description
11319 \begin_inset Flex Code
11320 status collapsed
11321
11322 \begin_layout Plain Layout
11323 ProvideStyle
11324 \end_layout
11325
11326 \end_inset
11327
11328  [
11329 \begin_inset Flex Code
11330 status collapsed
11331
11332 \begin_layout Plain Layout
11333 <style>
11334 \end_layout
11335
11336 \end_inset
11337
11338 ] Creates a new paragraph style if it does not already exist.
11339  If the style does exist,
11340  this section is ignored.
11341  Must end with 
11342 \begin_inset Quotes eld
11343 \end_inset
11344
11345
11346 \begin_inset Flex Code
11347 status collapsed
11348
11349 \begin_layout Plain Layout
11350 End
11351 \end_layout
11352
11353 \end_inset
11354
11355
11356 \begin_inset Quotes erd
11357 \end_inset
11358
11359 .
11360 \end_layout
11361
11362 \begin_layout Description
11363 \begin_inset Flex Code
11364 status collapsed
11365
11366 \begin_layout Plain Layout
11367 Requires
11368 \end_layout
11369
11370 \end_inset
11371
11372  [
11373 \begin_inset Flex Code
11374 status collapsed
11375
11376 \begin_layout Plain Layout
11377 string
11378 \end_layout
11379
11380 \end_inset
11381
11382 ] Whether the class requires the feature 
11383 \begin_inset Flex Code
11384 status collapsed
11385
11386 \begin_layout Plain Layout
11387 string
11388 \end_layout
11389
11390 \end_inset
11391
11392 .
11393  Multiple features must be separated by commas.
11394  Note that you can only request supported features.
11395  (See 
11396 \begin_inset CommandInset ref
11397 LatexCommand ref
11398 reference "chap:List-of-functions"
11399 nolink "false"
11400
11401 \end_inset
11402
11403  for the list of features.).
11404  If you require a package with specific options,
11405  you can additionally use 
11406 \begin_inset Flex Code
11407 status collapsed
11408
11409 \begin_layout Plain Layout
11410 PackageOptions
11411 \end_layout
11412
11413 \end_inset
11414
11415 .
11416 \end_layout
11417
11418 \begin_layout Description
11419 \begin_inset Flex Code
11420 status collapsed
11421
11422 \begin_layout Plain Layout
11423 RightMargin
11424 \end_layout
11425
11426 \end_inset
11427
11428  [
11429 \begin_inset Flex Code
11430 status collapsed
11431
11432 \begin_layout Plain Layout
11433 string
11434 \end_layout
11435
11436 \end_inset
11437
11438 ] A string that indicates the width of the right margin on the screen,
11439  for example,
11440  
11441 \begin_inset Quotes eld
11442 \end_inset
11443
11444
11445 \begin_inset Flex Code
11446 status collapsed
11447
11448 \begin_layout Plain Layout
11449 MMMMM
11450 \end_layout
11451
11452 \end_inset
11453
11454
11455 \begin_inset Quotes erd
11456 \end_inset
11457
11458 .
11459 \end_layout
11460
11461 \begin_layout Description
11462 \begin_inset Flex Code
11463 status collapsed
11464
11465 \begin_layout Plain Layout
11466 SecNumDepth
11467 \end_layout
11468
11469 \end_inset
11470
11471  [
11472 \begin_inset Flex Code
11473 status collapsed
11474
11475 \begin_layout Plain Layout
11476 int=3
11477 \end_layout
11478
11479 \end_inset
11480
11481 ] Sets which divisions get numbered.
11482  Corresponds to the
11483 \begin_inset Newline newline
11484 \end_inset
11485
11486
11487 \begin_inset Flex Code
11488 status collapsed
11489
11490 \begin_layout Plain Layout
11491 secnumdepth
11492 \end_layout
11493
11494 \end_inset
11495
11496  counter in \SpecialChar LaTeX
11497 .
11498 \end_layout
11499
11500 \begin_layout Description
11501 \begin_inset Flex Code
11502 status collapsed
11503
11504 \begin_layout Plain Layout
11505 Sides
11506 \end_layout
11507
11508 \end_inset
11509
11510  [
11511 \begin_inset Flex Code
11512 status collapsed
11513
11514 \begin_layout Plain Layout
11515
11516 \emph on
11517 1
11518 \end_layout
11519
11520 \end_inset
11521
11522 ,
11523 \begin_inset space \thinspace{}
11524 \end_inset
11525
11526
11527 \begin_inset Flex Code
11528 status collapsed
11529
11530 \begin_layout Plain Layout
11531 2
11532 \end_layout
11533
11534 \end_inset
11535
11536 ] Whether the class-default should be printing on one or both sides of the paper.
11537  Can be changed in the 
11538 \begin_inset Flex Noun
11539 status collapsed
11540
11541 \begin_layout Plain Layout
11542 Document\SpecialChar menuseparator
11543 Settings
11544 \end_layout
11545
11546 \end_inset
11547
11548  dialog.
11549 \end_layout
11550
11551 \begin_layout Description
11552 \begin_inset Flex Code
11553 status collapsed
11554
11555 \begin_layout Plain Layout
11556 Style
11557 \end_layout
11558
11559 \end_inset
11560
11561  [
11562 \begin_inset Flex Code
11563 status collapsed
11564
11565 \begin_layout Plain Layout
11566 <name>
11567 \end_layout
11568
11569 \end_inset
11570
11571 ] This sequence defines a paragraph style.
11572  If the style does not yet exist,
11573  it is created;
11574  if it does exist,
11575  its parameters are modified.
11576  Must end with 
11577 \begin_inset Quotes eld
11578 \end_inset
11579
11580
11581 \begin_inset Flex Code
11582 status collapsed
11583
11584 \begin_layout Plain Layout
11585 End
11586 \end_layout
11587
11588 \end_inset
11589
11590
11591 \begin_inset Quotes erd
11592 \end_inset
11593
11594 .
11595 \begin_inset Newline newline
11596 \end_inset
11597
11598 See 
11599 \begin_inset CommandInset ref
11600 LatexCommand ref
11601 reference "subsec:Paragraph-Styles"
11602 nolink "false"
11603
11604 \end_inset
11605
11606  for details on paragraph styles.
11607 \end_layout
11608
11609 \begin_layout Description
11610 \begin_inset Flex Code
11611 status collapsed
11612
11613 \begin_layout Plain Layout
11614 TableStyle
11615 \end_layout
11616
11617 \end_inset
11618
11619  [
11620 \begin_inset Flex Code
11621 status collapsed
11622
11623 \begin_layout Plain Layout
11624 <name>
11625 \end_layout
11626
11627 \end_inset
11628
11629 ] defines the default table style that is used when inserting a table.
11630  The following styles are available:
11631 \end_layout
11632
11633 \begin_deeper
11634 \begin_layout Itemize
11635 \begin_inset Flex Code
11636 status collapsed
11637
11638 \begin_layout Plain Layout
11639 Formal_with_Footline
11640 \end_layout
11641
11642 \end_inset
11643
11644 :
11645  formal (
11646 \begin_inset Quotes eld
11647 \end_inset
11648
11649 booktabs
11650 \begin_inset Quotes erd
11651 \end_inset
11652
11653 ) style with horizontal lines only,
11654  using a bold top and bottom line,
11655  the first and last row are additionally separated from the table body with a thin middle line.
11656 \end_layout
11657
11658 \begin_layout Itemize
11659 \begin_inset Flex Code
11660 status collapsed
11661
11662 \begin_layout Plain Layout
11663 Formal_without_Footline
11664 \end_layout
11665
11666 \end_inset
11667
11668 :
11669  same as the above,
11670  but the last row is not separated with a middle line from the body.
11671 \end_layout
11672
11673 \begin_layout Itemize
11674 \begin_inset Flex Code
11675 status collapsed
11676
11677 \begin_layout Plain Layout
11678 Simple_Grid
11679 \end_layout
11680
11681 \end_inset
11682
11683 :
11684  Simple table lines.
11685 \end_layout
11686
11687 \begin_layout Itemize
11688 \begin_inset Flex Code
11689 status collapsed
11690
11691 \begin_layout Plain Layout
11692 Grid_with_Head
11693 \end_layout
11694
11695 \end_inset
11696
11697 :
11698  Like 
11699 \begin_inset Flex Code
11700 status collapsed
11701
11702 \begin_layout Plain Layout
11703 Simple_Grid
11704 \end_layout
11705
11706 \end_inset
11707
11708 ,
11709  but with the header row offset with a second horizontal line.
11710  This is also the default style of \SpecialChar LyX
11711 .
11712 \end_layout
11713
11714 \begin_layout Itemize
11715 \begin_inset Flex Code
11716 status collapsed
11717
11718 \begin_layout Plain Layout
11719 No_Borders
11720 \end_layout
11721
11722 \end_inset
11723
11724 :
11725  Table without lines.
11726 \end_layout
11727
11728 \end_deeper
11729 \begin_layout Description
11730 \begin_inset Flex Code
11731 status collapsed
11732
11733 \begin_layout Plain Layout
11734 TitleLatexName
11735 \end_layout
11736
11737 \end_inset
11738
11739  [
11740 \begin_inset Flex Code
11741 status collapsed
11742
11743 \begin_layout Plain Layout
11744 string="maketitle"
11745 \end_layout
11746
11747 \end_inset
11748
11749 ] The name of the command or environment to be used with 
11750 \begin_inset Flex Code
11751 status collapsed
11752
11753 \begin_layout Plain Layout
11754 TitleLatexType
11755 \end_layout
11756
11757 \end_inset
11758
11759 .
11760 \end_layout
11761
11762 \begin_layout Description
11763 \begin_inset Flex Code
11764 status collapsed
11765
11766 \begin_layout Plain Layout
11767 TitleLatexType
11768 \end_layout
11769
11770 \end_inset
11771
11772  [
11773 \begin_inset Flex Code
11774 status collapsed
11775
11776 \begin_layout Plain Layout
11777
11778 \emph on
11779 CommandAfter
11780 \end_layout
11781
11782 \end_inset
11783
11784 ,
11785  
11786 \begin_inset Flex Code
11787 status collapsed
11788
11789 \begin_layout Plain Layout
11790 Environment
11791 \end_layout
11792
11793 \end_inset
11794
11795 ] Indicates what kind of markup is used to define the title of a document.
11796  
11797 \begin_inset Flex Code
11798 status collapsed
11799
11800 \begin_layout Plain Layout
11801 CommandAfter
11802 \end_layout
11803
11804 \end_inset
11805
11806  means that the macro with name 
11807 \begin_inset Flex Code
11808 status collapsed
11809
11810 \begin_layout Plain Layout
11811 TitleLatexName
11812 \end_layout
11813
11814 \end_inset
11815
11816  will be inserted after the last layout which has 
11817 \begin_inset Quotes eld
11818 \end_inset
11819
11820
11821 \begin_inset Flex Code
11822 status collapsed
11823
11824 \begin_layout Plain Layout
11825 InTitle
11826 \begin_inset space ~
11827 \end_inset
11828
11829 1
11830 \end_layout
11831
11832 \end_inset
11833
11834
11835 \begin_inset Quotes erd
11836 \end_inset
11837
11838 .
11839  
11840 \begin_inset Flex Code
11841 status collapsed
11842
11843 \begin_layout Plain Layout
11844 Environment
11845 \end_layout
11846
11847 \end_inset
11848
11849  corresponds to the case where all layouts which have 
11850 \begin_inset Quotes eld
11851 \end_inset
11852
11853
11854 \begin_inset Flex Code
11855 status collapsed
11856
11857 \begin_layout Plain Layout
11858 InTitle
11859 \begin_inset space ~
11860 \end_inset
11861
11862 1
11863 \end_layout
11864
11865 \end_inset
11866
11867
11868 \begin_inset Quotes erd
11869 \end_inset
11870
11871  should be enclosed into the 
11872 \begin_inset Flex Code
11873 status collapsed
11874
11875 \begin_layout Plain Layout
11876 TitleLatexName
11877 \end_layout
11878
11879 \end_inset
11880
11881  environment.
11882 \end_layout
11883
11884 \begin_layout Description
11885 \begin_inset Flex Code
11886 status collapsed
11887
11888 \begin_layout Plain Layout
11889 TocDepth
11890 \end_layout
11891
11892 \end_inset
11893
11894  [
11895 \begin_inset Flex Code
11896 status collapsed
11897
11898 \begin_layout Plain Layout
11899 int=3
11900 \end_layout
11901
11902 \end_inset
11903
11904 ] Sets which divisions are included in the table of contents.
11905  Corresponds to the 
11906 \begin_inset Flex Code
11907 status collapsed
11908
11909 \begin_layout Plain Layout
11910 tocdepth
11911 \end_layout
11912
11913 \end_inset
11914
11915  counter in \SpecialChar LaTeX
11916 .
11917 \end_layout
11918
11919 \begin_layout Subsection
11920 \begin_inset Flex Code
11921 status collapsed
11922
11923 \begin_layout Plain Layout
11924 ClassOptions
11925 \end_layout
11926
11927 \end_inset
11928
11929  section
11930 \begin_inset CommandInset label
11931 LatexCommand label
11932 name "subsec:ClassOptions"
11933
11934 \end_inset
11935
11936
11937 \end_layout
11938
11939 \begin_layout Standard
11940 The 
11941 \begin_inset Flex Code
11942 status collapsed
11943
11944 \begin_layout Plain Layout
11945 ClassOptions
11946 \end_layout
11947
11948 \end_inset
11949
11950  section can contain the following entries:
11951 \end_layout
11952
11953 \begin_layout Description
11954 \begin_inset Flex Code
11955 status collapsed
11956
11957 \begin_layout Plain Layout
11958 FontSize
11959 \end_layout
11960
11961 \end_inset
11962
11963  [
11964 \begin_inset Flex Code
11965 status collapsed
11966
11967 \begin_layout Plain Layout
11968 string="10|11|12"
11969 \end_layout
11970
11971 \end_inset
11972
11973 ] The list of available font sizes for the document's main font,
11974  separated by 
11975 \begin_inset Quotes eld
11976 \end_inset
11977
11978
11979 \begin_inset Flex Code
11980 status collapsed
11981
11982 \begin_layout Plain Layout
11983 |
11984 \end_layout
11985
11986 \end_inset
11987
11988
11989 \begin_inset Quotes erd
11990 \end_inset
11991
11992 .
11993  Any number is possible.
11994 \end_layout
11995
11996 \begin_layout Description
11997 \begin_inset Flex Code
11998 status collapsed
11999
12000 \begin_layout Plain Layout
12001 FontSizeFormat
12002 \end_layout
12003
12004 \end_inset
12005
12006  [
12007 \begin_inset Flex Code
12008 status collapsed
12009
12010 \begin_layout Plain Layout
12011 string
12012 \end_layout
12013
12014 \end_inset
12015
12016 ] The format for the font size option.
12017  Default:
12018  
12019 \begin_inset Flex Code
12020 status collapsed
12021
12022 \begin_layout Plain Layout
12023 $$spt
12024 \end_layout
12025
12026 \end_inset
12027
12028 .
12029  
12030 \begin_inset Flex Code
12031 status collapsed
12032
12033 \begin_layout Plain Layout
12034 $$s
12035 \end_layout
12036
12037 \end_inset
12038
12039  is a placeholder for the font size.
12040 \end_layout
12041
12042 \begin_layout Description
12043 \begin_inset Flex Code
12044 status collapsed
12045
12046 \begin_layout Plain Layout
12047 PageSize
12048 \end_layout
12049
12050 \end_inset
12051
12052  [
12053 \begin_inset Flex Code
12054 status collapsed
12055
12056 \begin_layout Plain Layout
12057 string="letter|\SpecialChar allowbreak
12058 legal|\SpecialChar allowbreak
12059 executive|\SpecialChar allowbreak
12060 a0|\SpecialChar allowbreak
12061 a1|\SpecialChar allowbreak
12062 a2|\SpecialChar allowbreak
12063 a3|\SpecialChar allowbreak
12064 a4|\SpecialChar allowbreak
12065 a5|\SpecialChar allowbreak
12066 a6|\SpecialChar allowbreak
12067 b0|\SpecialChar allowbreak
12068 b1|\SpecialChar allowbreak
12069 b2|\SpecialChar allowbreak
12070 b3|\SpecialChar allowbreak
12071 b4|\SpecialChar allowbreak
12072 b5|\SpecialChar allowbreak
12073 b6|\SpecialChar allowbreak
12074 c0|\SpecialChar allowbreak
12075 c1|\SpecialChar allowbreak
12076 c2|\SpecialChar allowbreak
12077 c3|\SpecialChar allowbreak
12078 c4|\SpecialChar allowbreak
12079 c5|\SpecialChar allowbreak
12080 c6|\SpecialChar allowbreak
12081 b0j|\SpecialChar allowbreak
12082 b1j|\SpecialChar allowbreak
12083 b2j|\SpecialChar allowbreak
12084 b3j|\SpecialChar allowbreak
12085 b4j|\SpecialChar allowbreak
12086 b5j|\SpecialChar allowbreak
12087 b6j"
12088 \end_layout
12089
12090 \end_inset
12091
12092 ] The list of available page sizes,
12093  separated by 
12094 \begin_inset Quotes eld
12095 \end_inset
12096
12097
12098 \begin_inset Flex Code
12099 status collapsed
12100
12101 \begin_layout Plain Layout
12102 |
12103 \end_layout
12104
12105 \end_inset
12106
12107
12108 \begin_inset Quotes erd
12109 \end_inset
12110
12111 .
12112  Currently,
12113  only the listed sizes are supported.
12114  Other sizes might be entered as custom class option.
12115 \end_layout
12116
12117 \begin_layout Description
12118 \begin_inset Flex Code
12119 status collapsed
12120
12121 \begin_layout Plain Layout
12122 PageSizeFormat
12123 \end_layout
12124
12125 \end_inset
12126
12127  [
12128 \begin_inset Flex Code
12129 status collapsed
12130
12131 \begin_layout Plain Layout
12132 string
12133 \end_layout
12134
12135 \end_inset
12136
12137 ] The format for the page size option.
12138  Default:
12139  
12140 \begin_inset Flex Code
12141 status collapsed
12142
12143 \begin_layout Plain Layout
12144 $$spaper
12145 \end_layout
12146
12147 \end_inset
12148
12149 .
12150  
12151 \begin_inset Flex Code
12152 status collapsed
12153
12154 \begin_layout Plain Layout
12155 $$s
12156 \end_layout
12157
12158 \end_inset
12159
12160  is a placeholder for the paper size.
12161 \end_layout
12162
12163 \begin_layout Description
12164 \begin_inset Flex Code
12165 status collapsed
12166
12167 \begin_layout Plain Layout
12168 PageStyle
12169 \end_layout
12170
12171 \end_inset
12172
12173  [
12174 \begin_inset Flex Code
12175 status collapsed
12176
12177 \begin_layout Plain Layout
12178 string="empty|plain|headings|fancy"
12179 \end_layout
12180
12181 \end_inset
12182
12183 ] The list of available page sty\SpecialChar softhyphen
12184 les,
12185  separated by 
12186 \begin_inset Quotes eld
12187 \end_inset
12188
12189
12190 \begin_inset Flex Code
12191 status collapsed
12192
12193 \begin_layout Plain Layout
12194 |
12195 \end_layout
12196
12197 \end_inset
12198
12199
12200 \begin_inset Quotes erd
12201 \end_inset
12202
12203 .
12204 \change_inserted -712698321 1717320820
12205
12206 \end_layout
12207
12208 \begin_layout Description
12209
12210 \change_inserted -712698321 1717321090
12211 \begin_inset Flex Code
12212 status collapsed
12213
12214 \begin_layout Plain Layout
12215
12216 \change_inserted -712698321 1717320831
12217 ParskipFull
12218 \end_layout
12219
12220 \end_inset
12221
12222  [
12223 \begin_inset Flex Code
12224 status collapsed
12225
12226 \begin_layout Plain Layout
12227
12228 \change_inserted -712698321 1717320820
12229 string
12230 \end_layout
12231
12232 \end_inset
12233
12234 ] If the class has an option to set a full line paragraph skip,
12235  specify it here (e.g.,
12236  
12237 \begin_inset Flex Code
12238 status collapsed
12239
12240 \begin_layout Plain Layout
12241
12242 \change_inserted -712698321 1717320884
12243 parskip=full
12244 \change_unchanged
12245
12246 \end_layout
12247
12248 \end_inset
12249
12250 ).
12251  This then outputs the option rather than using the 
12252 \emph on
12253 parskip
12254 \emph default
12255  package.
12256 \end_layout
12257
12258 \begin_layout Description
12259
12260 \change_inserted -712698321 1717321094
12261 \begin_inset Flex Code
12262 status collapsed
12263
12264 \begin_layout Plain Layout
12265
12266 \change_inserted -712698321 1717320913
12267 ParskipHalf
12268 \end_layout
12269
12270 \end_inset
12271
12272  [
12273 \begin_inset Flex Code
12274 status collapsed
12275
12276 \begin_layout Plain Layout
12277
12278 \change_inserted -712698321 1717320909
12279 string
12280 \end_layout
12281
12282 \end_inset
12283
12284 ] If the class has an option to set a half line paragraph skip,
12285  specify it here (e.g.,
12286  
12287 \begin_inset Flex Code
12288 status collapsed
12289
12290 \begin_layout Plain Layout
12291
12292 \change_inserted -712698321 1717320920
12293 parskip=half
12294 \end_layout
12295
12296 \end_inset
12297
12298 ).
12299  This then outputs the option rather than using the 
12300 \emph on
12301 parskip
12302 \emph default
12303  package.
12304 \change_unchanged
12305
12306 \end_layout
12307
12308 \begin_layout Description
12309 \begin_inset Flex Code
12310 status collapsed
12311
12312 \begin_layout Plain Layout
12313 Other
12314 \end_layout
12315
12316 \end_inset
12317
12318  [
12319 \begin_inset Flex Code
12320 status collapsed
12321
12322 \begin_layout Plain Layout
12323 string=""
12324 \end_layout
12325
12326 \end_inset
12327
12328 ] Some document class options,
12329  separated by a comma,
12330  that will be added to the optional part of the 
12331 \begin_inset Flex Code
12332 status collapsed
12333
12334 \begin_layout Plain Layout
12335
12336 \backslash
12337 documentclass
12338 \end_layout
12339
12340 \end_inset
12341
12342  command.
12343 \end_layout
12344
12345 \begin_layout Standard
12346 The 
12347 \begin_inset Flex Code
12348 status collapsed
12349
12350 \begin_layout Plain Layout
12351 ClassOptions
12352 \end_layout
12353
12354 \end_inset
12355
12356  section must end with 
12357 \begin_inset Quotes eld
12358 \end_inset
12359
12360
12361 \begin_inset Flex Code
12362 status collapsed
12363
12364 \begin_layout Plain Layout
12365 End
12366 \end_layout
12367
12368 \end_inset
12369
12370
12371 \begin_inset Quotes erd
12372 \end_inset
12373
12374 .
12375 \end_layout
12376
12377 \begin_layout Subsection
12378 Paragraph styles
12379 \begin_inset CommandInset label
12380 LatexCommand label
12381 name "subsec:Paragraph-Styles"
12382
12383 \end_inset
12384
12385
12386 \end_layout
12387
12388 \begin_layout Standard
12389 A paragraph style description looks like this:
12390 \begin_inset Foot
12391 status collapsed
12392
12393 \begin_layout Plain Layout
12394 Note that this will either define a new style or modify an existing one.
12395 \end_layout
12396
12397 \end_inset
12398
12399
12400 \end_layout
12401
12402 \begin_layout LyX-Code
12403 Style 
12404 \family roman
12405 \emph on
12406 name
12407 \end_layout
12408
12409 \begin_layout LyX-Code
12410  ...
12411 \end_layout
12412
12413 \begin_layout LyX-Code
12414 End
12415 \end_layout
12416
12417 \begin_layout Standard
12418 where the following commands are allowed:
12419 \end_layout
12420
12421 \begin_layout Description
12422 \begin_inset Flex Code
12423 status collapsed
12424
12425 \begin_layout Plain Layout
12426 AddToToc
12427 \end_layout
12428
12429 \end_inset
12430
12431  [
12432 \begin_inset Flex Code
12433 status collapsed
12434
12435 \begin_layout Plain Layout
12436 string
12437 \end_layout
12438
12439 \end_inset
12440
12441 =""] This paragraph will appear in the table of contents of the given type.
12442  An empty string disables.
12443  See also the OutlinerName and the IsTocCaption commands.
12444  Default:
12445  disabled.
12446 \end_layout
12447
12448 \begin_layout Description
12449 \begin_inset Flex Code
12450 status collapsed
12451
12452 \begin_layout Plain Layout
12453 Align
12454 \end_layout
12455
12456 \end_inset
12457
12458  [
12459 \begin_inset Flex Code
12460 status collapsed
12461
12462 \begin_layout Plain Layout
12463
12464 \emph on
12465 block
12466 \emph default
12467 ,
12468  left,
12469  right,
12470  center
12471 \end_layout
12472
12473 \end_inset
12474
12475 ] Paragraph alignment.
12476 \end_layout
12477
12478 \begin_layout Description
12479 \begin_inset Flex Code
12480 status collapsed
12481
12482 \begin_layout Plain Layout
12483 AlignPossible
12484 \end_layout
12485
12486 \end_inset
12487
12488  [
12489 \begin_inset Flex Code
12490 status collapsed
12491
12492 \begin_layout Plain Layout
12493
12494 \emph on
12495 block
12496 \emph default
12497 ,
12498  left,
12499  right,
12500  center
12501 \end_layout
12502
12503 \end_inset
12504
12505 ] A comma separated list of permitted alignments.
12506  (Some \SpecialChar LaTeX
12507  styles prohibit certain alignments,
12508  since those wouldn't make sense.
12509  For example a right-aligned or centered enumeration isn't possible.)
12510 \end_layout
12511
12512 \begin_layout Description
12513 \begin_inset Flex Code
12514 status collapsed
12515
12516 \begin_layout Plain Layout
12517 Argument
12518 \end_layout
12519
12520 \end_inset
12521
12522  [
12523 \begin_inset Flex Code
12524 status collapsed
12525
12526 \begin_layout Plain Layout
12527 int
12528 \end_layout
12529
12530 \end_inset
12531
12532 ] Defines argument number <int> of a command\SpecialChar breakableslash
12533 environment associated with the current style.
12534  The definition must end with 
12535 \begin_inset Flex Code
12536 status collapsed
12537
12538 \begin_layout Plain Layout
12539 EndArgument
12540 \end_layout
12541
12542 \end_inset
12543
12544 .
12545  See 
12546 \begin_inset CommandInset ref
12547 LatexCommand ref
12548 reference "subsec:Arguments"
12549 plural "false"
12550 caps "false"
12551 noprefix "false"
12552 nolink "false"
12553
12554 \end_inset
12555
12556  for more information.
12557  
12558 \end_layout
12559
12560 \begin_layout Description
12561 \begin_inset Flex Code
12562 status collapsed
12563
12564 \begin_layout Plain Layout
12565 AutoNests
12566 \end_layout
12567
12568 \end_inset
12569
12570  Includes a comma-separated list of layouts that should be nested in and after the current layout.
12571  Only makes sense for nestable layouts (such as environments).
12572  Must be ended by 
12573 \begin_inset Quotes eld
12574 \end_inset
12575
12576
12577 \begin_inset Flex Code
12578 status collapsed
12579
12580 \begin_layout Plain Layout
12581 EndAutoNests
12582 \end_layout
12583
12584 \end_inset
12585
12586
12587 \begin_inset Quotes erd
12588 \end_inset
12589
12590 .
12591  See also 
12592 \begin_inset Flex Code
12593 status collapsed
12594
12595 \begin_layout Plain Layout
12596 IsAutoNestedBy
12597 \end_layout
12598
12599 \end_inset
12600
12601 .
12602 \end_layout
12603
12604 \begin_layout Description
12605 \begin_inset Flex Code
12606 status collapsed
12607
12608 \begin_layout Plain Layout
12609 BabelPreamble
12610 \end_layout
12611
12612 \end_inset
12613
12614  Note that this will completely override any prior 
12615 \begin_inset Flex Code
12616 status collapsed
12617
12618 \begin_layout Plain Layout
12619 BabelPreamble
12620 \end_layout
12621
12622 \end_inset
12623
12624  declaration for this style.
12625  Must end with 
12626 \begin_inset Quotes eld
12627 \end_inset
12628
12629
12630 \begin_inset Flex Code
12631 status collapsed
12632
12633 \begin_layout Plain Layout
12634 EndBabelPreamble
12635 \end_layout
12636
12637 \end_inset
12638
12639
12640 \begin_inset Quotes erd
12641 \end_inset
12642
12643 .
12644  See 
12645 \begin_inset CommandInset ref
12646 LatexCommand ref
12647 reference "subsec:I18n"
12648 nolink "false"
12649
12650 \end_inset
12651
12652  for details on its use.
12653 \end_layout
12654
12655 \begin_layout Description
12656 \begin_inset Flex Code
12657 status collapsed
12658
12659 \begin_layout Plain Layout
12660 BottomSep
12661 \end_layout
12662
12663 \end_inset
12664
12665  [
12666 \begin_inset Flex Code
12667 status collapsed
12668
12669 \begin_layout Plain Layout
12670 float=0
12671 \end_layout
12672
12673 \end_inset
12674
12675 ]
12676 \begin_inset Foot
12677 status collapsed
12678
12679 \begin_layout Plain Layout
12680 Note that a `float' here is a real number,
12681  such as:
12682  1.5.
12683 \end_layout
12684
12685 \end_inset
12686
12687  The vertical space with which the last of a chain of paragraphs with this style is separated from the following paragraph.
12688  If the next paragraph has another style,
12689  the separations are not simply added,
12690  but the maximum is taken.
12691 \end_layout
12692
12693 \begin_layout Description
12694 \begin_inset Flex Code
12695 status collapsed
12696
12697 \begin_layout Plain Layout
12698 Category
12699 \end_layout
12700
12701 \end_inset
12702
12703  [
12704 \begin_inset Flex Code
12705 status collapsed
12706
12707 \begin_layout Plain Layout
12708 string
12709 \end_layout
12710
12711 \end_inset
12712
12713 ] The category for this style.
12714  This is used to group related styles in the style combobox on the toolbar.
12715  Any string can be used,
12716  but you may want to use existing categories with your own styles.
12717  
12718 \end_layout
12719
12720 \begin_layout Description
12721 \begin_inset Flex Code
12722 status collapsed
12723
12724 \begin_layout Plain Layout
12725 CopyStyle
12726 \end_layout
12727
12728 \end_inset
12729
12730  [
12731 \begin_inset Flex Code
12732 status collapsed
12733
12734 \begin_layout Plain Layout
12735 string
12736 \end_layout
12737
12738 \end_inset
12739
12740 ] Copies all the features of an existing style into the current one.
12741  Note that this copies the style as it is defined at that point.
12742  Later changes to it will not affect styles into which it has been copied.
12743 \end_layout
12744
12745 \begin_layout Description
12746 \begin_inset Flex Code
12747 status collapsed
12748
12749 \begin_layout Plain Layout
12750 DependsOn
12751 \end_layout
12752
12753 \end_inset
12754
12755  [
12756 \begin_inset Flex Code
12757 status collapsed
12758
12759 \begin_layout Plain Layout
12760 <name>
12761 \end_layout
12762
12763 \end_inset
12764
12765 ] The name of a style whose preamble should be output 
12766 \emph on
12767 before
12768 \emph default
12769  this one.
12770  This allows to ensure some ordering of the preamble snippets when macros definitions depend on one another.
12771 \begin_inset Foot
12772 status collapsed
12773
12774 \begin_layout Plain Layout
12775 Note that,
12776  besides that functionality,
12777  there is no way to ensure any ordering of preambles.
12778  The ordering that you see in a given version of \SpecialChar LyX
12779  may change without warning in later versions.
12780 \end_layout
12781
12782 \end_inset
12783
12784
12785 \end_layout
12786
12787 \begin_layout Description
12788 \begin_inset Flex Code
12789 status collapsed
12790
12791 \begin_layout Plain Layout
12792 DocBookGenerateTitle
12793 \end_layout
12794
12795 \end_inset
12796
12797  [
12798 \begin_inset Flex Code
12799 status collapsed
12800
12801 \begin_layout Plain Layout
12802 bool=false
12803 \end_layout
12804
12805 \end_inset
12806
12807 ] Generates a 
12808 \begin_inset Flex Code
12809 status collapsed
12810
12811 \begin_layout Plain Layout
12812 title
12813 \end_layout
12814
12815 \end_inset
12816
12817  tag after the wrapper tag.
12818  This parameter should only be used with
12819 \begin_inset Flex Code
12820 status collapsed
12821
12822 \begin_layout Plain Layout
12823 DocBookWrapperTag
12824 \end_layout
12825
12826 \end_inset
12827
12828 ,
12829  otherwise the title will be output
12830 \emph on
12831  before
12832 \emph default
12833  the contents of the environment.
12834  The generated title is the same as the LyXHTML label:
12835  a combination of the environment type and its number.
12836  A major use is when DocBook has no close mapping for LaTeX environments and users must fallback to using a generic container such as
12837 \begin_inset Flex Code
12838 status collapsed
12839
12840 \begin_layout Plain Layout
12841 figure
12842 \end_layout
12843
12844 \end_inset
12845
12846 ,
12847  which requires a title although there is none in LaTeX.
12848  This feature is heavily used for theorem-like environments.
12849 \end_layout
12850
12851 \begin_layout Description
12852 \begin_inset Flex Code
12853 status collapsed
12854
12855 \begin_layout Plain Layout
12856 EndLabelType
12857 \end_layout
12858
12859 \end_inset
12860
12861  [
12862 \begin_inset Flex Code
12863 status collapsed
12864
12865 \begin_layout Plain Layout
12866
12867 \emph on
12868 No_Label
12869 \emph default
12870 ,
12871  Box,
12872  Filled_Box,
12873  Static
12874 \end_layout
12875
12876 \end_inset
12877
12878 ] The type of label that stands at the end of the paragraph (or sequence of paragraphs if 
12879 \begin_inset Flex Code
12880 status collapsed
12881
12882 \begin_layout Plain Layout
12883 LatexType
12884 \end_layout
12885
12886 \end_inset
12887
12888  is
12889 \begin_inset Newline newline
12890 \end_inset
12891
12892
12893 \begin_inset Flex Code
12894 status collapsed
12895
12896 \begin_layout Plain Layout
12897 Environment
12898 \end_layout
12899
12900 \end_inset
12901
12902 ,
12903  
12904 \begin_inset Flex Code
12905 status collapsed
12906
12907 \begin_layout Plain Layout
12908 Item_Environment
12909 \end_layout
12910
12911 \end_inset
12912
12913  or 
12914 \begin_inset Flex Code
12915 status collapsed
12916
12917 \begin_layout Plain Layout
12918 List_Environment
12919 \end_layout
12920
12921 \end_inset
12922
12923 ).
12924  
12925 \begin_inset Flex Code
12926 status collapsed
12927
12928 \begin_layout Plain Layout
12929 No_Label
12930 \end_layout
12931
12932 \end_inset
12933
12934  means 
12935 \begin_inset Quotes eld
12936 \end_inset
12937
12938 nothing
12939 \begin_inset Quotes erd
12940 \end_inset
12941
12942 ,
12943  
12944 \begin_inset Flex Code
12945 status collapsed
12946
12947 \begin_layout Plain Layout
12948 Box
12949 \end_layout
12950
12951 \end_inset
12952
12953  (resp.
12954 \begin_inset space \space{}
12955 \end_inset
12956
12957
12958 \begin_inset Flex Code
12959 status collapsed
12960
12961 \begin_layout Plain Layout
12962 Filled_Box
12963 \end_layout
12964
12965 \end_inset
12966
12967 ) is a white (resp.
12968 \begin_inset space ~
12969 \end_inset
12970
12971 black) square suitable for end of proof markers,
12972  
12973 \begin_inset Flex Code
12974 status collapsed
12975
12976 \begin_layout Plain Layout
12977 Static
12978 \end_layout
12979
12980 \end_inset
12981
12982  is an explicit text string.
12983 \end_layout
12984
12985 \begin_layout Description
12986 \begin_inset Flex Code
12987 status collapsed
12988
12989 \begin_layout Plain Layout
12990 EndLabelString
12991 \end_layout
12992
12993 \end_inset
12994
12995  [
12996 \begin_inset Flex Code
12997 status collapsed
12998
12999 \begin_layout Plain Layout
13000 string=""
13001 \end_layout
13002
13003 \end_inset
13004
13005 ] The string used for a label with a 
13006 \begin_inset Flex Code
13007 status collapsed
13008
13009 \begin_layout Plain Layout
13010 Static
13011 \end_layout
13012
13013 \end_inset
13014
13015
13016 \begin_inset Newline newline
13017 \end_inset
13018
13019
13020 \begin_inset Flex Code
13021 status collapsed
13022
13023 \begin_layout Plain Layout
13024 EndLabelType
13025 \end_layout
13026
13027 \end_inset
13028
13029 .
13030  
13031 \end_layout
13032
13033 \begin_layout Description
13034 \begin_inset Flex Code
13035 status collapsed
13036
13037 \begin_layout Plain Layout
13038 Font
13039 \end_layout
13040
13041 \end_inset
13042
13043  The font used for both the text body 
13044 \emph on
13045 and
13046 \emph default
13047  the label.
13048  See 
13049 \begin_inset CommandInset ref
13050 LatexCommand ref
13051 reference "subsec:Font-description"
13052 nolink "false"
13053
13054 \end_inset
13055
13056 .
13057  Note that defining this font automatically defines the 
13058 \begin_inset Flex Code
13059 status collapsed
13060
13061 \begin_layout Plain Layout
13062 LabelFont
13063 \end_layout
13064
13065 \end_inset
13066
13067  to the same value.
13068  So you should define this one first if you also want to define 
13069 \begin_inset Flex Code
13070 status collapsed
13071
13072 \begin_layout Plain Layout
13073 LabelFont
13074 \end_layout
13075
13076 \end_inset
13077
13078 .
13079 \end_layout
13080
13081 \begin_layout Description
13082 \begin_inset Flex Code
13083 status collapsed
13084
13085 \begin_layout Plain Layout
13086 ForceLocal
13087 \end_layout
13088
13089 \end_inset
13090
13091  [
13092 \begin_inset Flex Code
13093 status collapsed
13094
13095 \begin_layout Plain Layout
13096 int=0
13097 \end_layout
13098
13099 \end_inset
13100
13101 ] Used for backporting new styles to stable \SpecialChar LyX
13102  versions.
13103  The first stable version that supports this tag is \SpecialChar LyX
13104  2.1.0.
13105  The argument is a number which may either be 0,
13106  -1 or any value greater than zero.
13107  If the 
13108 \begin_inset Flex Code
13109 status collapsed
13110
13111 \begin_layout Plain Layout
13112 ForceLocal
13113 \end_layout
13114
13115 \end_inset
13116
13117  flag of a style is greater than zero,
13118  it will always be written to the document header.
13119  If a .lyx file is read,
13120  the style definitions from the document header are added to the document class.
13121  Therefore even older \SpecialChar LyX
13122  versions can handle the style.
13123  The argument of 
13124 \begin_inset Flex Code
13125 status collapsed
13126
13127 \begin_layout Plain Layout
13128 ForceLocal
13129 \end_layout
13130
13131 \end_inset
13132
13133  is a version number:
13134  if the style is read,
13135  and the version number is less than the version number of the already existing style in the document class,
13136  the new style is ignored.
13137  If the version number is greater,
13138  the new style replaces the existing style.
13139  A value of -1 means an infinite version number,
13140  i.
13141 \begin_inset space \thinspace{}
13142 \end_inset
13143
13144 e.
13145 \begin_inset space \space{}
13146 \end_inset
13147
13148 the style is always used.
13149 \end_layout
13150
13151 \begin_layout Description
13152 \begin_inset Flex Code
13153 status collapsed
13154
13155 \begin_layout Plain Layout
13156 FreeSpacing
13157 \end_layout
13158
13159 \end_inset
13160
13161  [
13162 \begin_inset Flex Code
13163 status collapsed
13164
13165 \begin_layout Plain Layout
13166
13167 \emph on
13168 0
13169 \end_layout
13170
13171 \end_inset
13172
13173 ,
13174 \begin_inset space \thinspace{}
13175 \end_inset
13176
13177
13178 \begin_inset Flex Code
13179 status collapsed
13180
13181 \begin_layout Plain Layout
13182 1
13183 \end_layout
13184
13185 \end_inset
13186
13187 ] Usually \SpecialChar LyX
13188  does not allow you to insert more than one space between words,
13189  since a space is considered as the separation between two words,
13190  not a character or symbol of its own.
13191  This is a very fine thing but sometimes annoying,
13192  for example,
13193  when typing program code or plain \SpecialChar LaTeX
13194  code.
13195  For this reason,
13196  
13197 \begin_inset Flex Code
13198 status collapsed
13199
13200 \begin_layout Plain Layout
13201 FreeSpacing
13202 \end_layout
13203
13204 \end_inset
13205
13206  can be enabled.
13207  \SpecialChar LyX
13208  will create non-breaking spaces for the additional blanks when 
13209 \begin_inset Flex Code
13210 status collapsed
13211
13212 \begin_layout Plain Layout
13213 Passthru 1
13214 \end_layout
13215
13216 \end_inset
13217
13218  is not specified.
13219  Note that 
13220 \begin_inset Flex Code
13221 status collapsed
13222
13223 \begin_layout Plain Layout
13224 FreeSpacing
13225 \end_layout
13226
13227 \end_inset
13228
13229  implies 
13230 \begin_inset Flex Code
13231 status collapsed
13232
13233 \begin_layout Plain Layout
13234 KeepEmpty
13235 \end_layout
13236
13237 \end_inset
13238
13239 .
13240 \end_layout
13241
13242 \begin_layout Description
13243 \begin_inset Flex Code
13244 status collapsed
13245
13246 \begin_layout Plain Layout
13247 HTML*
13248 \end_layout
13249
13250 \end_inset
13251
13252  These tags are used with XHTML output.
13253  See 
13254 \begin_inset CommandInset ref
13255 LatexCommand ref
13256 reference "subsec:Paragraph-Style-XHTML"
13257 nolink "false"
13258
13259 \end_inset
13260
13261 .
13262 \end_layout
13263
13264 \begin_layout Description
13265 \begin_inset Flex Code
13266 status collapsed
13267
13268 \begin_layout Plain Layout
13269 InPreamble
13270 \end_layout
13271
13272 \end_inset
13273
13274  [
13275 \begin_inset Flex Code
13276 status collapsed
13277
13278 \begin_layout Plain Layout
13279
13280 \emph on
13281 0
13282 \end_layout
13283
13284 \end_inset
13285
13286 ,
13287 \begin_inset space \thinspace{}
13288 \end_inset
13289
13290
13291 \begin_inset Flex Code
13292 status collapsed
13293
13294 \begin_layout Plain Layout
13295 1
13296 \end_layout
13297
13298 \end_inset
13299
13300 ] If 
13301 \begin_inset Flex Code
13302 status collapsed
13303
13304 \begin_layout Plain Layout
13305 1
13306 \end_layout
13307
13308 \end_inset
13309
13310 ,
13311  marks the style as to be included in the document preamble and not in the document body.
13312  This is useful for document classes that want such information as the title and author to appear in the preamble.
13313  Note that this works only for styles for which the 
13314 \begin_inset Flex Code
13315 status collapsed
13316
13317 \begin_layout Plain Layout
13318 LatexType
13319 \end_layout
13320
13321 \end_inset
13322
13323  is 
13324 \begin_inset Flex Code
13325 status collapsed
13326
13327 \begin_layout Plain Layout
13328 Command
13329 \end_layout
13330
13331 \end_inset
13332
13333  or 
13334 \begin_inset Flex Code
13335 status collapsed
13336
13337 \begin_layout Plain Layout
13338 Paragraph
13339 \end_layout
13340
13341 \end_inset
13342
13343 .
13344 \end_layout
13345
13346 \begin_layout Description
13347 \begin_inset Flex Code
13348 status collapsed
13349
13350 \begin_layout Plain Layout
13351 InTitle
13352 \end_layout
13353
13354 \end_inset
13355
13356  [
13357 \begin_inset Flex Code
13358 status collapsed
13359
13360 \begin_layout Plain Layout
13361
13362 \emph on
13363 0
13364 \end_layout
13365
13366 \end_inset
13367
13368 ,
13369 \begin_inset space \thinspace{}
13370 \end_inset
13371
13372
13373 \begin_inset Flex Code
13374 status collapsed
13375
13376 \begin_layout Plain Layout
13377 1
13378 \end_layout
13379
13380 \end_inset
13381
13382 ] If 
13383 \begin_inset Flex Code
13384 status collapsed
13385
13386 \begin_layout Plain Layout
13387 1
13388 \end_layout
13389
13390 \end_inset
13391
13392 ,
13393  marks the style as being part of a title block (see also the 
13394 \begin_inset Flex Code
13395 status collapsed
13396
13397 \begin_layout Plain Layout
13398 TitleLatexType
13399 \end_layout
13400
13401 \end_inset
13402
13403  and 
13404 \begin_inset Flex Code
13405 status collapsed
13406
13407 \begin_layout Plain Layout
13408 TitleLatexName
13409 \end_layout
13410
13411 \end_inset
13412
13413  global entries).
13414 \end_layout
13415
13416 \begin_layout Description
13417 \begin_inset Flex Code
13418 status collapsed
13419
13420 \begin_layout Plain Layout
13421 IsAutoNestedBy
13422 \end_layout
13423
13424 \end_inset
13425
13426  Includes a comma-separated list of layouts after which this one should be nested.
13427  Only makes sense with regard to nestable layouts (such as environments).
13428  Must be ended by 
13429 \begin_inset Quotes eld
13430 \end_inset
13431
13432
13433 \begin_inset Flex Code
13434 status collapsed
13435
13436 \begin_layout Plain Layout
13437 EndIsAutoNestedBy
13438 \end_layout
13439
13440 \end_inset
13441
13442
13443 \begin_inset Quotes erd
13444 \end_inset
13445
13446 .
13447  See also 
13448 \begin_inset Flex Code
13449 status collapsed
13450
13451 \begin_layout Plain Layout
13452 AutoNests
13453 \end_layout
13454
13455 \end_inset
13456
13457 .
13458 \end_layout
13459
13460 \begin_layout Description
13461 \begin_inset Flex Code
13462 status collapsed
13463
13464 \begin_layout Plain Layout
13465 IsTocCaption
13466 \end_layout
13467
13468 \end_inset
13469
13470  [
13471 \begin_inset Flex Code
13472 status collapsed
13473
13474 \begin_layout Plain Layout
13475
13476 \emph on
13477 0
13478 \end_layout
13479
13480 \end_inset
13481
13482 ,
13483 \begin_inset space \thinspace{}
13484 \end_inset
13485
13486
13487 \begin_inset Flex Code
13488 status collapsed
13489
13490 \begin_layout Plain Layout
13491 1
13492 \end_layout
13493
13494 \end_inset
13495
13496 ] If this is set to 1 and AddToToc is enabled,
13497  the paragraph adds a summary of its contents in its item in the table of contents.
13498  Otherwise,
13499  only the label,
13500  if it exists,
13501  appears.
13502 \end_layout
13503
13504 \begin_layout Description
13505 \begin_inset Flex Code
13506 status collapsed
13507
13508 \begin_layout Plain Layout
13509 ItemCommand
13510 \end_layout
13511
13512 \end_inset
13513
13514  [
13515 \begin_inset Flex Code
13516 status collapsed
13517
13518 \begin_layout Plain Layout
13519 string="item"
13520 \end_layout
13521
13522 \end_inset
13523
13524 ] The \SpecialChar LaTeX
13525  command sequence declaring an item in a list.
13526  The command is to be defined without the preceding backslash (the default is 
13527 \begin_inset Quotes eld
13528 \end_inset
13529
13530 item
13531 \begin_inset Quotes erd
13532 \end_inset
13533
13534 ,
13535  resulting in 
13536 \begin_inset Flex Code
13537 status collapsed
13538
13539 \begin_layout Plain Layout
13540
13541 \backslash
13542 item
13543 \end_layout
13544
13545 \end_inset
13546
13547  in the \SpecialChar LaTeX
13548  output).
13549 \end_layout
13550
13551 \begin_layout Description
13552 \begin_inset Flex Code
13553 status collapsed
13554
13555 \begin_layout Plain Layout
13556 ItemSep
13557 \end_layout
13558
13559 \end_inset
13560
13561  [
13562 \begin_inset Flex Code
13563 status collapsed
13564
13565 \begin_layout Plain Layout
13566 float=0
13567 \end_layout
13568
13569 \end_inset
13570
13571 ] This provides extra space between paragraphs that have the same style.
13572  If you put other styles into an environment,
13573  each is separated with the environment's 
13574 \begin_inset Flex Code
13575 status collapsed
13576
13577 \begin_layout Plain Layout
13578 ParSep
13579 \end_layout
13580
13581 \end_inset
13582
13583 .
13584  But the whole items of the environment are additionally separated with this 
13585 \begin_inset Flex Code
13586 status collapsed
13587
13588 \begin_layout Plain Layout
13589 ItemSep
13590 \end_layout
13591
13592 \end_inset
13593
13594 .
13595  Note that this is a
13596 \emph on
13597  multiplier.
13598 \end_layout
13599
13600 \begin_layout Description
13601 \begin_inset Flex Code
13602 status collapsed
13603
13604 \begin_layout Plain Layout
13605 KeepEmpty
13606 \end_layout
13607
13608 \end_inset
13609
13610  [
13611 \begin_inset Flex Code
13612 status collapsed
13613
13614 \begin_layout Plain Layout
13615
13616 \emph on
13617 0
13618 \end_layout
13619
13620 \end_inset
13621
13622 ,
13623 \begin_inset space \thinspace{}
13624 \end_inset
13625
13626
13627 \begin_inset Flex Code
13628 status collapsed
13629
13630 \begin_layout Plain Layout
13631 1
13632 \end_layout
13633
13634 \end_inset
13635
13636 ] Usually \SpecialChar LyX
13637  does not allow you to leave a paragraph empty,
13638  since it would lead to empty \SpecialChar LaTeX
13639  output.
13640  There are some cases where this could be desirable however:
13641  in a letter template,
13642  the required fields can be provided as empty fields,
13643  so that people do not forget them;
13644  in some special classes,
13645  a style can be used as some kind of break,
13646  which does not contain actual text.
13647 \end_layout
13648
13649 \begin_layout Description
13650 \begin_inset Flex Code
13651 status collapsed
13652
13653 \begin_layout Plain Layout
13654 LabelBottomsep
13655 \end_layout
13656
13657 \end_inset
13658
13659  [
13660 \begin_inset Flex Code
13661 status collapsed
13662
13663 \begin_layout Plain Layout
13664 float=0
13665 \end_layout
13666
13667 \end_inset
13668
13669 ] The vertical space between the label and the text body.
13670  Only used for labels that are above the text body (
13671 \begin_inset Flex Code
13672 status collapsed
13673
13674 \begin_layout Plain Layout
13675 Top_Environment
13676 \end_layout
13677
13678 \end_inset
13679
13680  and
13681 \begin_inset Newline newline
13682 \end_inset
13683
13684
13685 \begin_inset Flex Code
13686 status collapsed
13687
13688 \begin_layout Plain Layout
13689 Centered_Top_Environment
13690 \end_layout
13691
13692 \end_inset
13693
13694 ).
13695 \end_layout
13696
13697 \begin_layout Description
13698 \begin_inset Flex Code
13699 status collapsed
13700
13701 \begin_layout Plain Layout
13702 LabelCounter
13703 \end_layout
13704
13705 \end_inset
13706
13707  [
13708 \begin_inset Flex Code
13709 status collapsed
13710
13711 \begin_layout Plain Layout
13712 string=""
13713 \end_layout
13714
13715 \end_inset
13716
13717 ] The name of the counter for automatic numbering.
13718  In order to have the counter appear with your label,
13719  you will need to reference it in the 
13720 \begin_inset Flex Code
13721 status collapsed
13722
13723 \begin_layout Plain Layout
13724
13725 \family typewriter
13726 LabelString
13727 \end_layout
13728
13729 \end_inset
13730
13731 .
13732  This will work with 
13733 \begin_inset Flex Code
13734 status collapsed
13735
13736 \begin_layout Plain Layout
13737 LabelType
13738 \end_layout
13739
13740 \end_inset
13741
13742 s,
13743  
13744 \begin_inset Flex Code
13745 status collapsed
13746
13747 \begin_layout Plain Layout
13748 Static
13749 \end_layout
13750
13751 \end_inset
13752
13753 ,
13754  
13755 \begin_inset Flex Code
13756 status collapsed
13757
13758 \begin_layout Plain Layout
13759 Above
13760 \end_layout
13761
13762 \end_inset
13763
13764  and 
13765 \begin_inset Flex Code
13766 status collapsed
13767
13768 \begin_layout Plain Layout
13769 Centered
13770 \end_layout
13771
13772 \end_inset
13773
13774 ,
13775  at least.
13776 \begin_inset Newline newline
13777 \end_inset
13778
13779 This 
13780 \emph on
13781 may
13782 \emph default
13783  also be given if 
13784 \begin_inset Flex Code
13785 status collapsed
13786
13787 \begin_layout Plain Layout
13788 LabelType
13789 \end_layout
13790
13791 \end_inset
13792
13793  is 
13794 \begin_inset Flex Code
13795 status collapsed
13796
13797 \begin_layout Plain Layout
13798 Enumerate
13799 \end_layout
13800
13801 \end_inset
13802
13803 ,
13804  though this case is a bit complicated.
13805  Suppose you declare 
13806 \begin_inset Quotes eld
13807 \end_inset
13808
13809
13810 \begin_inset Flex Code
13811 status collapsed
13812
13813 \begin_layout Plain Layout
13814 LabelCounter myenum
13815 \end_layout
13816
13817 \end_inset
13818
13819
13820 \begin_inset Quotes erd
13821 \end_inset
13822
13823 .
13824  Then the actual counters used are 
13825 \begin_inset Flex Code
13826 status collapsed
13827
13828 \begin_layout Plain Layout
13829 myenumi
13830 \end_layout
13831
13832 \end_inset
13833
13834 ,
13835  
13836 \begin_inset Flex Code
13837 status collapsed
13838
13839 \begin_layout Plain Layout
13840 myenumii
13841 \end_layout
13842
13843 \end_inset
13844
13845 ,
13846  
13847 \begin_inset Flex Code
13848 status collapsed
13849
13850 \begin_layout Plain Layout
13851 myenumiii
13852 \end_layout
13853
13854 \end_inset
13855
13856  and 
13857 \begin_inset Flex Code
13858 status collapsed
13859
13860 \begin_layout Plain Layout
13861 myenumiv
13862 \end_layout
13863
13864 \end_inset
13865
13866 ,
13867  much as in \SpecialChar LaTeX
13868 .
13869  These counters must all be declared separately.
13870 \begin_inset Newline newline
13871 \end_inset
13872
13873 See 
13874 \begin_inset CommandInset ref
13875 LatexCommand ref
13876 reference "subsec:Counters"
13877 nolink "false"
13878
13879 \end_inset
13880
13881  for details on counters.
13882 \end_layout
13883
13884 \begin_layout Description
13885 \begin_inset Flex Code
13886 status collapsed
13887
13888 \begin_layout Plain Layout
13889 LabelFont
13890 \end_layout
13891
13892 \end_inset
13893
13894  The font used for the label.
13895  See 
13896 \begin_inset CommandInset ref
13897 LatexCommand ref
13898 reference "subsec:Font-description"
13899 nolink "false"
13900
13901 \end_inset
13902
13903 .
13904 \end_layout
13905
13906 \begin_layout Description
13907 \begin_inset Flex Code
13908 status collapsed
13909
13910 \begin_layout Plain Layout
13911 LabelIndent
13912 \end_layout
13913
13914 \end_inset
13915
13916  [
13917 \begin_inset Flex Code
13918 status collapsed
13919
13920 \begin_layout Plain Layout
13921 string=""
13922 \end_layout
13923
13924 \end_inset
13925
13926 ] Text that indicates how far a label should be indented.
13927 \end_layout
13928
13929 \begin_layout Description
13930 \begin_inset Flex Code
13931 status collapsed
13932
13933 \begin_layout Plain Layout
13934 LabelSep
13935 \end_layout
13936
13937 \end_inset
13938
13939  [
13940 \begin_inset Flex Code
13941 status collapsed
13942
13943 \begin_layout Plain Layout
13944 string=""
13945 \end_layout
13946
13947 \end_inset
13948
13949 ] Text that indicates the amount of horizontal space between the label and the text body.
13950  Only used for labels that are not above the text body.
13951 \end_layout
13952
13953 \begin_layout Description
13954 \begin_inset Flex Code
13955 status collapsed
13956
13957 \begin_layout Plain Layout
13958 LabelString
13959 \end_layout
13960
13961 \end_inset
13962
13963  [
13964 \begin_inset Flex Code
13965 status collapsed
13966
13967 \begin_layout Plain Layout
13968 string=""
13969 \end_layout
13970
13971 \end_inset
13972
13973 ] The string used for the label.
13974  When 
13975 \begin_inset Flex Code
13976 status collapsed
13977
13978 \begin_layout Plain Layout
13979 LabelCounter
13980 \end_layout
13981
13982 \end_inset
13983
13984  is set,
13985  this string can be contain the special formatting commands described in 
13986 \begin_inset CommandInset ref
13987 LatexCommand ref
13988 reference "subsec:Counters"
13989 nolink "false"
13990
13991 \end_inset
13992
13993 .
13994 \end_layout
13995
13996 \begin_layout Description
13997 \begin_inset Flex Code
13998 status collapsed
13999
14000 \begin_layout Plain Layout
14001 LabelStringAppendix
14002 \end_layout
14003
14004 \end_inset
14005
14006  [
14007 \begin_inset Flex Code
14008 status collapsed
14009
14010 \begin_layout Plain Layout
14011 string=""
14012 \end_layout
14013
14014 \end_inset
14015
14016 ] This is used inside the appendix instead of
14017 \begin_inset Newline newline
14018 \end_inset
14019
14020
14021 \begin_inset Flex Code
14022 status collapsed
14023
14024 \begin_layout Plain Layout
14025 LabelString
14026 \end_layout
14027
14028 \end_inset
14029
14030 .
14031  Note that every 
14032 \begin_inset Flex Code
14033 status collapsed
14034
14035 \begin_layout Plain Layout
14036 LabelString
14037 \end_layout
14038
14039 \end_inset
14040
14041  statement resets
14042 \begin_inset Newline newline
14043 \end_inset
14044
14045
14046 \begin_inset Flex Code
14047 status collapsed
14048
14049 \begin_layout Plain Layout
14050 LabelStringAppendix
14051 \end_layout
14052
14053 \end_inset
14054
14055  too.
14056 \end_layout
14057
14058 \begin_layout Description
14059 \begin_inset Flex Code
14060 status collapsed
14061
14062 \begin_layout Plain Layout
14063 LabelType
14064 \end_layout
14065
14066 \end_inset
14067
14068  [
14069 \begin_inset Flex Code
14070 status collapsed
14071
14072 \begin_layout Plain Layout
14073
14074 \emph on
14075 No_Label
14076 \emph default
14077 ,
14078  Manual,
14079  Static,
14080  Above,
14081  
14082 \begin_inset Newline newline
14083 \end_inset
14084
14085 Centered,
14086  Sensitive,
14087  Enumerate,
14088 \begin_inset Newline newline
14089 \end_inset
14090
14091 Itemize,
14092  Bibliography
14093 \end_layout
14094
14095 \end_inset
14096
14097 ]
14098 \end_layout
14099
14100 \begin_deeper
14101 \begin_layout Description
14102 \begin_inset Flex Code
14103 status collapsed
14104
14105 \begin_layout Plain Layout
14106 Manual
14107 \end_layout
14108
14109 \end_inset
14110
14111  means the label is the very first word (up to the first real blank).
14112  Use non-breaking spaces if you want more than one word as the label.
14113  
14114 \end_layout
14115
14116 \begin_layout Description
14117 \begin_inset Flex Code
14118 status collapsed
14119
14120 \begin_layout Plain Layout
14121 Static
14122 \end_layout
14123
14124 \end_inset
14125
14126  means the label is simply what is declared as 
14127 \begin_inset Flex Code
14128 status collapsed
14129
14130 \begin_layout Plain Layout
14131 LabelString
14132 \end_layout
14133
14134 \end_inset
14135
14136 .
14137  This will be displayed 
14138 \begin_inset Quotes eld
14139 \end_inset
14140
14141 inline
14142 \begin_inset Quotes erd
14143 \end_inset
14144
14145 ,
14146  at the beginning of the paragraph.
14147  If the 
14148 \begin_inset Flex Code
14149 status collapsed
14150
14151 \begin_layout Plain Layout
14152 LatexType
14153 \end_layout
14154
14155 \end_inset
14156
14157  is 
14158 \begin_inset Flex Code
14159 status collapsed
14160
14161 \begin_layout Plain Layout
14162 Environment
14163 \end_layout
14164
14165 \end_inset
14166
14167 ,
14168  then it will be displayed only in the first paragraph of any sequence of paragraphs with the same 
14169 \begin_inset Flex Code
14170 status collapsed
14171
14172 \begin_layout Plain Layout
14173 Style
14174 \end_layout
14175
14176 \end_inset
14177
14178 .
14179 \end_layout
14180
14181 \begin_layout Description
14182 \begin_inset Flex Code
14183 status collapsed
14184
14185 \begin_layout Plain Layout
14186 Above
14187 \end_layout
14188
14189 \end_inset
14190
14191
14192 \begin_inset space ~
14193 \end_inset
14194
14195 and
14196 \begin_inset space ~
14197 \end_inset
14198
14199
14200 \begin_inset Flex Code
14201 status collapsed
14202
14203 \begin_layout Plain Layout
14204 Centered
14205 \end_layout
14206
14207 \end_inset
14208
14209  are special cases of 
14210 \begin_inset Flex Code
14211 status collapsed
14212
14213 \begin_layout Plain Layout
14214 Static
14215 \end_layout
14216
14217 \end_inset
14218
14219 .
14220  The label will be printed above the paragraph either at the beginning of the line or centered.
14221 \end_layout
14222
14223 \begin_layout Description
14224 \begin_inset Flex Code
14225 status collapsed
14226
14227 \begin_layout Plain Layout
14228 Sensitive
14229 \end_layout
14230
14231 \end_inset
14232
14233  is a special case for the caption-labels 
14234 \begin_inset Quotes eld
14235 \end_inset
14236
14237 Figure
14238 \begin_inset Quotes erd
14239 \end_inset
14240
14241  and 
14242 \begin_inset Quotes eld
14243 \end_inset
14244
14245 Table
14246 \begin_inset Quotes erd
14247 \end_inset
14248
14249 .
14250 \begin_inset Newline newline
14251 \end_inset
14252
14253
14254 \begin_inset Flex Code
14255 status collapsed
14256
14257 \begin_layout Plain Layout
14258 Sensitive
14259 \end_layout
14260
14261 \end_inset
14262
14263  means the (hardcoded) label string depends on the kind of float:
14264  It is hardcoded to be `FloatType N',
14265  where N is the value of the counter associated with the float.
14266  For the case that a caption is inserted outside of a float the 
14267 \begin_inset Flex Code
14268 status collapsed
14269
14270 \begin_layout Plain Layout
14271 LabelString
14272 \end_layout
14273
14274 \end_inset
14275
14276  will appear as 
14277 \begin_inset Quotes eld
14278 \end_inset
14279
14280 Senseless!
14281 \begin_inset Quotes erd
14282 \end_inset
14283
14284 .
14285 \end_layout
14286
14287 \begin_layout Description
14288 \begin_inset Flex Code
14289 status collapsed
14290
14291 \begin_layout Plain Layout
14292 Enumerate
14293 \end_layout
14294
14295 \end_inset
14296
14297  produces the usual sort of enumeration labels.
14298  The number type needs to be set in the 
14299 \family sans
14300 Counter
14301 \family default
14302 ,
14303  see 
14304 \begin_inset CommandInset ref
14305 LatexCommand ref
14306 reference "subsec:Counters"
14307 nolink "false"
14308
14309 \end_inset
14310
14311 .
14312 \end_layout
14313
14314 \begin_layout Description
14315 \begin_inset Flex Code
14316 status collapsed
14317
14318 \begin_layout Plain Layout
14319 Itemize
14320 \end_layout
14321
14322 \end_inset
14323
14324  produces various bullets at the different levels.
14325  The bullet types displayed can be set via 
14326 \begin_inset Flex Noun
14327 status collapsed
14328
14329 \begin_layout Plain Layout
14330 Document\SpecialChar menuseparator
14331 Settings\SpecialChar menuseparator
14332 Bullets
14333 \end_layout
14334
14335 \end_inset
14336
14337 .
14338 \end_layout
14339
14340 \begin_layout Description
14341 \begin_inset Flex Code
14342 status collapsed
14343
14344 \begin_layout Plain Layout
14345 Bibliography
14346 \end_layout
14347
14348 \end_inset
14349
14350  should be used only with 
14351 \begin_inset Flex Code
14352 status collapsed
14353
14354 \begin_layout Plain Layout
14355 LatexType BibEnvironment
14356 \end_layout
14357
14358 \end_inset
14359
14360 .
14361 \end_layout
14362
14363 \end_deeper
14364 \begin_layout Description
14365 \begin_inset Flex Code
14366 status collapsed
14367
14368 \begin_layout Plain Layout
14369 LangPreamble
14370 \end_layout
14371
14372 \end_inset
14373
14374  Note that this will completely override any prior 
14375 \begin_inset Flex Code
14376 status collapsed
14377
14378 \begin_layout Plain Layout
14379 LangPreamble
14380 \end_layout
14381
14382 \end_inset
14383
14384  declaration for this style.
14385  Must end with 
14386 \begin_inset Quotes eld
14387 \end_inset
14388
14389
14390 \begin_inset Flex Code
14391 status collapsed
14392
14393 \begin_layout Plain Layout
14394 EndLangPreamble
14395 \end_layout
14396
14397 \end_inset
14398
14399
14400 \begin_inset Quotes erd
14401 \end_inset
14402
14403 .
14404  See 
14405 \begin_inset CommandInset ref
14406 LatexCommand ref
14407 reference "subsec:I18n"
14408 nolink "false"
14409
14410 \end_inset
14411
14412  for details on its use.
14413 \end_layout
14414
14415 \begin_layout Description
14416 \begin_inset Flex Code
14417 status collapsed
14418
14419 \begin_layout Plain Layout
14420 LatexName
14421 \end_layout
14422
14423 \end_inset
14424
14425  [
14426 \begin_inset Flex Code
14427 status collapsed
14428
14429 \begin_layout Plain Layout
14430 <name>
14431 \end_layout
14432
14433 \end_inset
14434
14435 ] The name of the corresponding \SpecialChar LaTeX
14436  stuff.
14437  Either the environment or command name.
14438 \end_layout
14439
14440 \begin_layout Description
14441 \begin_inset Flex Code
14442 status collapsed
14443
14444 \begin_layout Plain Layout
14445 LatexParam
14446 \end_layout
14447
14448 \end_inset
14449
14450  [
14451 \begin_inset Flex Code
14452 status collapsed
14453
14454 \begin_layout Plain Layout
14455 <parameter>
14456 \end_layout
14457
14458 \end_inset
14459
14460 ] An optional parameter for the corresponding 
14461 \begin_inset Flex Code
14462 status collapsed
14463
14464 \begin_layout Plain Layout
14465 LatexName
14466 \end_layout
14467
14468 \end_inset
14469
14470  stuff.
14471  This parameter cannot be changed from within \SpecialChar LyX
14472  (use 
14473 \begin_inset Flex Code
14474 status collapsed
14475
14476 \begin_layout Plain Layout
14477 Argument
14478 \end_layout
14479
14480 \end_inset
14481
14482  for customizable parameters).
14483  This will be output as is after all \SpecialChar LaTeX
14484  
14485 \begin_inset Flex Code
14486 status collapsed
14487
14488 \begin_layout Plain Layout
14489 Argument
14490 \end_layout
14491
14492 \end_inset
14493
14494 s.
14495 \end_layout
14496
14497 \begin_layout Description
14498 \begin_inset Flex Code
14499 status collapsed
14500
14501 \begin_layout Plain Layout
14502 LatexType
14503 \end_layout
14504
14505 \end_inset
14506
14507  [
14508 \begin_inset Flex Code
14509 status collapsed
14510
14511 \begin_layout Plain Layout
14512
14513 \emph on
14514 Paragraph
14515 \emph default
14516 ,
14517  Command,
14518  Environment,
14519  Item_Environment,
14520 \begin_inset Newline newline
14521 \end_inset
14522
14523 List_Environment,
14524  Bib_Environment
14525 \end_layout
14526
14527 \end_inset
14528
14529 ] How the style should be translated into \SpecialChar LaTeX
14530 .
14531 \begin_inset Foot
14532 status collapsed
14533
14534 \begin_layout Plain Layout
14535 \begin_inset Flex Code
14536 status collapsed
14537
14538 \begin_layout Plain Layout
14539 LatexType
14540 \end_layout
14541
14542 \end_inset
14543
14544  is perhaps a bit misleading,
14545  since these rules apply to SGML classes,
14546  too.
14547  Visit the SGML class files for specific examples.
14548 \end_layout
14549
14550 \end_inset
14551
14552
14553 \end_layout
14554
14555 \begin_deeper
14556 \begin_layout Description
14557 \begin_inset Flex Code
14558 status collapsed
14559
14560 \begin_layout Plain Layout
14561 Paragraph
14562 \end_layout
14563
14564 \end_inset
14565
14566  means nothing special.
14567 \end_layout
14568
14569 \begin_layout Description
14570 \begin_inset Flex Code
14571 status collapsed
14572
14573 \begin_layout Plain Layout
14574 Command
14575 \end_layout
14576
14577 \end_inset
14578
14579  means 
14580 \begin_inset Flex Code
14581 status collapsed
14582
14583 \begin_layout Plain Layout
14584
14585 \backslash
14586
14587 \emph on
14588 LatexName
14589 \emph default
14590 {\SpecialChar ldots
14591 }
14592 \end_layout
14593
14594 \end_inset
14595
14596 .
14597 \end_layout
14598
14599 \begin_layout Description
14600 \begin_inset Flex Code
14601 status collapsed
14602
14603 \begin_layout Plain Layout
14604 Environment
14605 \end_layout
14606
14607 \end_inset
14608
14609  means 
14610 \begin_inset Flex Code
14611 status collapsed
14612
14613 \begin_layout Plain Layout
14614
14615 \backslash
14616 begin{
14617 \emph on
14618 LatexName
14619 \emph default
14620 }\SpecialChar ldots
14621
14622 \backslash
14623 end{
14624 \emph on
14625 LatexName
14626 \emph default
14627 }
14628 \end_layout
14629
14630 \end_inset
14631
14632 .
14633  
14634 \end_layout
14635
14636 \begin_layout Description
14637 \begin_inset Flex Code
14638 status collapsed
14639
14640 \begin_layout Plain Layout
14641 Item_Environment
14642 \end_layout
14643
14644 \end_inset
14645
14646  is the same as 
14647 \begin_inset Flex Code
14648 status collapsed
14649
14650 \begin_layout Plain Layout
14651 Environment
14652 \end_layout
14653
14654 \end_inset
14655
14656 ,
14657  except that an 
14658 \begin_inset Flex Code
14659 status collapsed
14660
14661 \begin_layout Plain Layout
14662
14663 \backslash
14664 item
14665 \end_layout
14666
14667 \end_inset
14668
14669  is generated for each paragraph of this environment.
14670  
14671 \end_layout
14672
14673 \begin_layout Description
14674 \begin_inset Flex Code
14675 status collapsed
14676
14677 \begin_layout Plain Layout
14678 List_Environment
14679 \end_layout
14680
14681 \end_inset
14682
14683  is the same as 
14684 \begin_inset Flex Code
14685 status collapsed
14686
14687 \begin_layout Plain Layout
14688 Item_Environment
14689 \end_layout
14690
14691 \end_inset
14692
14693 ,
14694  except that
14695 \begin_inset Newline newline
14696 \end_inset
14697
14698
14699 \begin_inset Flex Code
14700 status collapsed
14701
14702 \begin_layout Plain Layout
14703 LabelWidthString
14704 \end_layout
14705
14706 \end_inset
14707
14708  is passed as an argument to the environment.
14709 \begin_inset Newline newline
14710 \end_inset
14711
14712
14713 \begin_inset Flex Code
14714 status collapsed
14715
14716 \begin_layout Plain Layout
14717 LabelWidthString
14718 \end_layout
14719
14720 \end_inset
14721
14722  can be defined in the 
14723 \begin_inset Flex Noun
14724 status collapsed
14725
14726 \begin_layout Plain Layout
14727 Edit\SpecialChar menuseparator
14728 Paragraph
14729 \begin_inset space ~
14730 \end_inset
14731
14732 settings
14733 \end_layout
14734
14735 \end_inset
14736
14737  dialog.
14738 \end_layout
14739
14740 \begin_layout Description
14741 \begin_inset Flex Code
14742 status collapsed
14743
14744 \begin_layout Plain Layout
14745 Bib_Environment
14746 \end_layout
14747
14748 \end_inset
14749
14750  is like 
14751 \begin_inset Flex Code
14752 status collapsed
14753
14754 \begin_layout Plain Layout
14755 Environment
14756 \end_layout
14757
14758 \end_inset
14759
14760  but adds the necessary mandatory argument (the longest label) to the begin statement of the bibliography environment:
14761 \begin_inset Newline newline
14762 \end_inset
14763
14764
14765 \begin_inset Flex Code
14766 status collapsed
14767
14768 \begin_layout Plain Layout
14769
14770 \backslash
14771 begin{thebibliography}{99}
14772 \end_layout
14773
14774 \end_inset
14775
14776 .
14777  It is therefore only useful for bibliography environments.
14778  The default longest label 
14779 \begin_inset Quotes eld
14780 \end_inset
14781
14782 99
14783 \begin_inset Quotes erd
14784 \end_inset
14785
14786  can be changed by the user in the paragraph settings of a bibliography item.
14787 \end_layout
14788
14789 \begin_layout Standard
14790 Putting the last few things together,
14791  the \SpecialChar LaTeX
14792  output will be either:
14793  
14794 \end_layout
14795
14796 \begin_layout LyX-Code
14797
14798 \backslash
14799 LatexName[LatexParam]{\SpecialChar ldots
14800 }
14801 \end_layout
14802
14803 \begin_layout Standard
14804 or:
14805  
14806 \end_layout
14807
14808 \begin_layout LyX-Code
14809
14810 \backslash
14811 begin{LatexName}[LatexParam] \SpecialChar ldots
14812  
14813 \backslash
14814 end{LatexName}.
14815 \end_layout
14816
14817 \begin_layout Standard
14818 depending upon the \SpecialChar LaTeX
14819  type.
14820 \end_layout
14821
14822 \end_deeper
14823 \begin_layout Description
14824 \begin_inset Flex Code
14825 status collapsed
14826
14827 \begin_layout Plain Layout
14828 LeftDelim
14829 \end_layout
14830
14831 \end_inset
14832
14833  [
14834 \begin_inset Flex Code
14835 status collapsed
14836
14837 \begin_layout Plain Layout
14838 string
14839 \end_layout
14840
14841 \end_inset
14842
14843 ] A string that is put at the beginning of the style content.
14844  A line break in the output can be indicated by 
14845 \begin_inset Flex Code
14846 status collapsed
14847
14848 \begin_layout Plain Layout
14849 <br/>
14850 \end_layout
14851
14852 \end_inset
14853
14854 .
14855 \end_layout
14856
14857 \begin_layout Description
14858 \begin_inset Flex Code
14859 status collapsed
14860
14861 \begin_layout Plain Layout
14862 LeftMargin
14863 \end_layout
14864
14865 \end_inset
14866
14867  [
14868 \begin_inset Flex Code
14869 status collapsed
14870
14871 \begin_layout Plain Layout
14872 string=""
14873 \end_layout
14874
14875 \end_inset
14876
14877 ] If you put styles into environments,
14878  the different 
14879 \begin_inset Flex Code
14880 status collapsed
14881
14882 \begin_layout Plain Layout
14883 LeftMargin
14884 \end_layout
14885
14886 \end_inset
14887
14888  are not simply added,
14889  but added with a factor 
14890 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14891 \end_inset
14892
14893 .
14894  Note that this parameter is also used when 
14895 \begin_inset Flex Code
14896 status collapsed
14897
14898 \begin_layout Plain Layout
14899 Margin
14900 \end_layout
14901
14902 \end_inset
14903
14904  is defined as 
14905 \begin_inset Flex Code
14906 status collapsed
14907
14908 \begin_layout Plain Layout
14909 Manual
14910 \end_layout
14911
14912 \end_inset
14913
14914  or 
14915 \begin_inset Flex Code
14916 status collapsed
14917
14918 \begin_layout Plain Layout
14919 Dynamic
14920 \end_layout
14921
14922 \end_inset
14923
14924 .
14925  Then it is added to the manual or dynamic margin.
14926 \begin_inset Newline newline
14927 \end_inset
14928
14929 For example 
14930 \begin_inset Quotes eld
14931 \end_inset
14932
14933
14934 \begin_inset Flex Code
14935 status collapsed
14936
14937 \begin_layout Plain Layout
14938 MM
14939 \end_layout
14940
14941 \end_inset
14942
14943
14944 \begin_inset Quotes erd
14945 \end_inset
14946
14947  means that the paragraph is indented with the width of 
14948 \begin_inset Quotes eld
14949 \end_inset
14950
14951
14952 \begin_inset Flex Code
14953 status collapsed
14954
14955 \begin_layout Plain Layout
14956 MM
14957 \end_layout
14958
14959 \end_inset
14960
14961
14962 \begin_inset Quotes erd
14963 \end_inset
14964
14965  in the normal font.
14966  You can get a negative width by prefixing the string with 
14967 \begin_inset Quotes eld
14968 \end_inset
14969
14970
14971 \begin_inset Flex Code
14972 status collapsed
14973
14974 \begin_layout Plain Layout
14975 -
14976 \end_layout
14977
14978 \end_inset
14979
14980
14981 \begin_inset Quotes erd
14982 \end_inset
14983
14984 .
14985  This way was chosen so that the look is the same with each used screen font.
14986 \end_layout
14987
14988 \begin_layout Description
14989 \begin_inset Flex Code
14990 status collapsed
14991
14992 \begin_layout Plain Layout
14993 Margin
14994 \end_layout
14995
14996 \end_inset
14997
14998  [
14999 \begin_inset Flex Code
15000 status collapsed
15001
15002 \begin_layout Plain Layout
15003
15004 \emph on
15005 Static
15006 \emph default
15007 ,
15008  Manual,
15009  Dynamic,
15010  First_Dynamic,
15011  Right_Address_Box
15012 \end_layout
15013
15014 \end_inset
15015
15016
15017 \begin_inset Newline newline
15018 \end_inset
15019
15020 The kind of margin that the style has on the left side.
15021 \end_layout
15022
15023 \begin_deeper
15024 \begin_layout Description
15025 \begin_inset Flex Code
15026 status collapsed
15027
15028 \begin_layout Plain Layout
15029 Static
15030 \end_layout
15031
15032 \end_inset
15033
15034  just means a fixed margin.
15035 \end_layout
15036
15037 \begin_layout Description
15038 \begin_inset Flex Code
15039 status collapsed
15040
15041 \begin_layout Plain Layout
15042 Manual
15043 \end_layout
15044
15045 \end_inset
15046
15047  means that the left margin depends on the string entered in the 
15048 \begin_inset Flex Noun
15049 status collapsed
15050
15051 \begin_layout Plain Layout
15052 Edit\SpecialChar menuseparator
15053 Paragraph
15054 \begin_inset space ~
15055 \end_inset
15056
15057 Settings
15058 \end_layout
15059
15060 \end_inset
15061
15062  dialog.
15063  This is used to typeset nice lists without tabulators.
15064 \end_layout
15065
15066 \begin_layout Description
15067 \begin_inset Flex Code
15068 status collapsed
15069
15070 \begin_layout Plain Layout
15071 Dynamic
15072 \end_layout
15073
15074 \end_inset
15075
15076  means that the margin depends on the size of the label.
15077  This is used for automatic enumerated headlines.
15078  It is obvious that the headline 
15079 \begin_inset Quotes eld
15080 \end_inset
15081
15082 5.4.3.2.1 Very long headline
15083 \begin_inset Quotes erd
15084 \end_inset
15085
15086  must have a wider left margin (as wide as 
15087 \begin_inset Quotes eld
15088 \end_inset
15089
15090 5.4.3.2.1
15091 \begin_inset Quotes erd
15092 \end_inset
15093
15094  plus the space) than 
15095 \begin_inset Quotes eld
15096 \end_inset
15097
15098 3.2 Very long headline
15099 \begin_inset Quotes erd
15100 \end_inset
15101
15102 ,
15103  even if standard 
15104 \begin_inset Quotes eld
15105 \end_inset
15106
15107 word processors
15108 \begin_inset Quotes erd
15109 \end_inset
15110
15111  are not able to do this.
15112 \end_layout
15113
15114 \begin_layout Description
15115 \begin_inset Flex Code
15116 status collapsed
15117
15118 \begin_layout Plain Layout
15119 First_Dynamic
15120 \end_layout
15121
15122 \end_inset
15123
15124  is similar,
15125  but only the very first row of the paragraph is dynamic,
15126  while the others are static;
15127  this is used,
15128  for example,
15129  for descriptions.
15130 \end_layout
15131
15132 \begin_layout Description
15133 \begin_inset Flex Code
15134 status collapsed
15135
15136 \begin_layout Plain Layout
15137 Right_Address_Box
15138 \end_layout
15139
15140 \end_inset
15141
15142  means the margin is chosen in a way that the longest row of this paragraph fits to the right margin.
15143  This is used to typeset an address on the right edge of the page.
15144 \end_layout
15145
15146 \end_deeper
15147 \begin_layout Description
15148 \begin_inset Flex Code
15149 status collapsed
15150
15151 \begin_layout Plain Layout
15152 NeedProtect
15153 \end_layout
15154
15155 \end_inset
15156
15157  [
15158 \begin_inset Flex Code
15159 status collapsed
15160
15161 \begin_layout Plain Layout
15162
15163 \emph on
15164 0
15165 \end_layout
15166
15167 \end_inset
15168
15169 ,
15170 \begin_inset space \thinspace{}
15171 \end_inset
15172
15173
15174 \begin_inset Flex Code
15175 status collapsed
15176
15177 \begin_layout Plain Layout
15178 1
15179 \end_layout
15180
15181 \end_inset
15182
15183 ] Whether fragile commands in this style should be 
15184 \begin_inset Flex Code
15185 status collapsed
15186
15187 \begin_layout Plain Layout
15188
15189 \backslash
15190 protect
15191 \end_layout
15192
15193 \end_inset
15194
15195 'ed.
15196  (Note:
15197  This is 
15198 \emph on
15199 not
15200 \emph default
15201  whether this command should itself be protected.)
15202 \end_layout
15203
15204 \begin_layout Description
15205 \begin_inset Flex Code
15206 status collapsed
15207
15208 \begin_layout Plain Layout
15209 NeedCProtect
15210 \end_layout
15211
15212 \end_inset
15213
15214  [
15215 \change_inserted -712698321 1715492667
15216
15217 \begin_inset Flex Code
15218 status collapsed
15219
15220 \begin_layout Plain Layout
15221
15222 \change_inserted -712698321 1715492433
15223 -1
15224 \change_unchanged
15225
15226 \end_layout
15227
15228 \end_inset
15229
15230 ,
15231 \begin_inset space \thinspace{}
15232 \end_inset
15233
15234
15235 \change_unchanged
15236
15237 \begin_inset Flex Code
15238 status collapsed
15239
15240 \begin_layout Plain Layout
15241
15242 \emph on
15243 0
15244 \end_layout
15245
15246 \end_inset
15247
15248 ,
15249 \begin_inset space \thinspace{}
15250 \end_inset
15251
15252
15253 \begin_inset Flex Code
15254 status collapsed
15255
15256 \begin_layout Plain Layout
15257 1
15258 \end_layout
15259
15260 \end_inset
15261
15262
15263 \change_inserted -712698321 1715492466
15264 Value 
15265 \begin_inset Flex Code
15266 status collapsed
15267
15268 \begin_layout Plain Layout
15269
15270 \change_inserted -712698321 1715492466
15271 1
15272 \change_unchanged
15273
15274 \end_layout
15275
15276 \end_inset
15277
15278
15279 \change_deleted -712698321 1715492468
15280 This
15281 \change_unchanged
15282  causes macros that contain this layout to be protected with 
15283 \begin_inset Flex Code
15284 status collapsed
15285
15286 \begin_layout Plain Layout
15287
15288 \backslash
15289 cprotect
15290 \end_layout
15291
15292 \end_inset
15293
15294  (cf.
15295  package 
15296 \family sans
15297 cprotect
15298 \family default
15299 ) if necessary and thus allows (some) verbatim stuff in macros.
15300
15301 \change_inserted -712698321 1715492595
15302  With the default setting (value 
15303 \begin_inset Flex Code
15304 status collapsed
15305
15306 \begin_layout Plain Layout
15307
15308 \change_inserted -712698321 1715492536
15309 0
15310 \change_unchanged
15311
15312 \end_layout
15313
15314 \end_inset
15315
15316 ),
15317  
15318 \begin_inset Flex Code
15319 status collapsed
15320
15321 \begin_layout Plain Layout
15322
15323 \change_inserted -712698321 1715492551
15324
15325 \backslash
15326 cprotect
15327 \change_unchanged
15328
15329 \end_layout
15330
15331 \end_inset
15332
15333  is used if a nested element requires it.
15334  Value 
15335 \begin_inset Flex Code
15336 status collapsed
15337
15338 \begin_layout Plain Layout
15339
15340 \change_inserted -712698321 1715492585
15341 -1
15342 \change_unchanged
15343
15344 \end_layout
15345
15346 \end_inset
15347
15348  prevents any use of 
15349 \begin_inset Flex Code
15350 status collapsed
15351
15352 \begin_layout Plain Layout
15353
15354 \change_inserted -712698321 1715492585
15355
15356 \backslash
15357 cprotect
15358 \change_unchanged
15359
15360 \end_layout
15361
15362 \end_inset
15363
15364  within this layout,
15365  even if required by a nested element.
15366 \change_unchanged
15367
15368 \end_layout
15369
15370 \begin_layout Description
15371 \begin_inset Flex Code
15372 status collapsed
15373
15374 \begin_layout Plain Layout
15375 NeedMBoxProtect
15376 \end_layout
15377
15378 \end_inset
15379
15380  [
15381 \begin_inset Flex Code
15382 status collapsed
15383
15384 \begin_layout Plain Layout
15385
15386 \emph on
15387 0
15388 \end_layout
15389
15390 \end_inset
15391
15392 ,
15393 \begin_inset space \thinspace{}
15394 \end_inset
15395
15396
15397 \begin_inset Flex Code
15398 status collapsed
15399
15400 \begin_layout Plain Layout
15401 1
15402 \end_layout
15403
15404 \end_inset
15405
15406 ] Whether specific commands in this style (such as 
15407 \begin_inset Flex Code
15408 status collapsed
15409
15410 \begin_layout Plain Layout
15411
15412 \backslash
15413 cite
15414 \end_layout
15415
15416 \end_inset
15417
15418  and 
15419 \begin_inset Flex Code
15420 status collapsed
15421
15422 \begin_layout Plain Layout
15423
15424 \backslash
15425 ref
15426 \end_layout
15427
15428 \end_inset
15429
15430 ) should be protected in an 
15431 \begin_inset Flex Code
15432 status collapsed
15433
15434 \begin_layout Plain Layout
15435
15436 \backslash
15437 mbox
15438 \end_layout
15439
15440 \end_inset
15441
15442 .
15443  This is particularly needed for styles that draw on 
15444 \family sans
15445 ulem
15446 \family default
15447  or 
15448 \family sans
15449 soul
15450 \family default
15451  commands which parse their content in complex ways.
15452 \end_layout
15453
15454 \begin_layout Description
15455 \begin_inset Flex Code
15456 status collapsed
15457
15458 \begin_layout Plain Layout
15459 Newline
15460 \end_layout
15461
15462 \end_inset
15463
15464  [
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 0
15470 \end_layout
15471
15472 \end_inset
15473
15474 ,
15475 \begin_inset space \thinspace{}
15476 \end_inset
15477
15478
15479 \begin_inset Flex Code
15480 status collapsed
15481
15482 \begin_layout Plain Layout
15483
15484 \emph on
15485 1
15486 \end_layout
15487
15488 \end_inset
15489
15490 ] Whether newlines are translated into \SpecialChar LaTeX
15491  newlines (
15492 \begin_inset Flex Code
15493 status collapsed
15494
15495 \begin_layout Plain Layout
15496
15497 \backslash
15498
15499 \backslash
15500
15501 \end_layout
15502
15503 \end_inset
15504
15505 ) or not.
15506  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15507  editing inside \SpecialChar LyX
15508 .
15509 \end_layout
15510
15511 \begin_layout Description
15512 \begin_inset Flex Code
15513 status collapsed
15514
15515 \begin_layout Plain Layout
15516 NextNoIndent
15517 \end_layout
15518
15519 \end_inset
15520
15521  [
15522 \begin_inset Flex Code
15523 status collapsed
15524
15525 \begin_layout Plain Layout
15526
15527 \emph on
15528 0
15529 \end_layout
15530
15531 \end_inset
15532
15533 ,
15534 \begin_inset space \thinspace{}
15535 \end_inset
15536
15537
15538 \begin_inset Flex Code
15539 status collapsed
15540
15541 \begin_layout Plain Layout
15542 1
15543 \end_layout
15544
15545 \end_inset
15546
15547 ] If set to true,
15548  and if 
15549 \begin_inset Flex Code
15550 status collapsed
15551
15552 \begin_layout Plain Layout
15553 DefaultStyle
15554 \end_layout
15555
15556 \end_inset
15557
15558  (usually 
15559 \begin_inset Flex Code
15560 status collapsed
15561
15562 \begin_layout Plain Layout
15563 Standard
15564 \end_layout
15565
15566 \end_inset
15567
15568 ) paragraphs are being indented,
15569  then the indentation of such a paragraph following one of this type will be suppressed.
15570  (So this will not affect the display of non-default paragraphs.)
15571 \end_layout
15572
15573 \begin_layout Description
15574
15575 \change_inserted -712698321 1715509676
15576 \begin_inset Flex Code
15577 status collapsed
15578
15579 \begin_layout Plain Layout
15580
15581 \change_inserted -712698321 1715509206
15582 NoPassThruChars
15583 \change_unchanged
15584
15585 \end_layout
15586
15587 \end_inset
15588
15589  [
15590 \begin_inset Flex Code
15591 status collapsed
15592
15593 \begin_layout Plain Layout
15594
15595 \change_inserted -712698321 1715509203
15596 string
15597 \change_unchanged
15598
15599 \end_layout
15600
15601 \end_inset
15602
15603 ]
15604 \family typewriter
15605  
15606 \family default
15607 Defines individual characters that should 
15608 \emph on
15609 not
15610 \emph default
15611  be output in raw form (without special translations that \SpecialChar LaTeX
15612  would require),
15613  even if such handling is requested by an element in this layout.
15614  This tag can be used to overwrite 
15615 \begin_inset Quotes els
15616 \end_inset
15617
15618 PassThru
15619 \begin_inset Quotes ers
15620 \end_inset
15621
15622  conditions if they are unsuitable in a given context.
15623 \end_layout
15624
15625 \begin_layout Description
15626 \begin_inset Flex Code
15627 status collapsed
15628
15629 \begin_layout Plain Layout
15630 ObsoletedBy
15631 \end_layout
15632
15633 \end_inset
15634
15635  [
15636 \begin_inset Flex Code
15637 status collapsed
15638
15639 \begin_layout Plain Layout
15640 <name>
15641 \end_layout
15642
15643 \end_inset
15644
15645 ] Name of a style that has replaced this style.
15646  This is used to rename a style,
15647  while keeping backward compatibility.
15648 \end_layout
15649
15650 \begin_layout Description
15651 \begin_inset Flex Code
15652 status collapsed
15653
15654 \begin_layout Plain Layout
15655 ParagraphGroup
15656 \end_layout
15657
15658 \end_inset
15659
15660  [
15661 \begin_inset Flex Code
15662 status collapsed
15663
15664 \begin_layout Plain Layout
15665 0
15666 \end_layout
15667
15668 \end_inset
15669
15670 ,
15671 \begin_inset space \thinspace{}
15672 \end_inset
15673
15674
15675 \begin_inset Flex Code
15676 status collapsed
15677
15678 \begin_layout Plain Layout
15679 1
15680 \end_layout
15681
15682 \end_inset
15683
15684 ] Determines whether consecutive paragraphs of the same type are treated as belonging together.
15685  This has the effect that the 
15686 \begin_inset Flex Code
15687 status collapsed
15688
15689 \begin_layout Plain Layout
15690 GuiLabel
15691 \end_layout
15692
15693 \end_inset
15694
15695  is only printed once before such a group.
15696  By default,
15697  this is true for 
15698 \begin_inset Flex Code
15699 status collapsed
15700
15701 \begin_layout Plain Layout
15702 LaTeXType
15703 \end_layout
15704
15705 \end_inset
15706
15707  
15708 \begin_inset Flex Code
15709 status collapsed
15710
15711 \begin_layout Plain Layout
15712 Environment
15713 \end_layout
15714
15715 \end_inset
15716
15717  and 
15718 \begin_inset Flex Code
15719 status collapsed
15720
15721 \begin_layout Plain Layout
15722 Bib_Environment
15723 \end_layout
15724
15725 \end_inset
15726
15727  and false for all other types.
15728 \end_layout
15729
15730 \begin_layout Description
15731 \begin_inset Flex Code
15732 status collapsed
15733
15734 \begin_layout Plain Layout
15735 ParbreakIsNewline
15736 \end_layout
15737
15738 \end_inset
15739
15740  [
15741 \begin_inset Flex Code
15742 status collapsed
15743
15744 \begin_layout Plain Layout
15745
15746 \emph on
15747 0
15748 \end_layout
15749
15750 \end_inset
15751
15752 ,
15753 \begin_inset space \thinspace{}
15754 \end_inset
15755
15756
15757 \begin_inset Flex Code
15758 status collapsed
15759
15760 \begin_layout Plain Layout
15761 1
15762 \end_layout
15763
15764 \end_inset
15765
15766 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15767  output,
15768  but only by a line break;
15769  together with 
15770 \begin_inset Flex Code
15771 status collapsed
15772
15773 \begin_layout Plain Layout
15774 PassThru 1
15775 \end_layout
15776
15777 \end_inset
15778
15779 ,
15780  this allows to emulate a plain text editor (like the ERT inset).
15781 \end_layout
15782
15783 \begin_layout Description
15784 \begin_inset Flex Code
15785 status collapsed
15786
15787 \begin_layout Plain Layout
15788 ParIndent
15789 \end_layout
15790
15791 \end_inset
15792
15793  [
15794 \begin_inset Flex Code
15795 status collapsed
15796
15797 \begin_layout Plain Layout
15798 string=""
15799 \end_layout
15800
15801 \end_inset
15802
15803 ] The indent of the very first line of a paragraph.
15804  The
15805 \begin_inset Newline newline
15806 \end_inset
15807
15808
15809 \begin_inset Flex Code
15810 status collapsed
15811
15812 \begin_layout Plain Layout
15813 Parindent
15814 \end_layout
15815
15816 \end_inset
15817
15818  will be fixed for a certain style.
15819  The exception is the default style,
15820  since the indentation for these paragraphs can be prohibited with 
15821 \begin_inset Flex Code
15822 status collapsed
15823
15824 \begin_layout Plain Layout
15825 NextNoIndent
15826 \end_layout
15827
15828 \end_inset
15829
15830 .
15831  Also,
15832  
15833 \begin_inset Flex Code
15834 status collapsed
15835
15836 \begin_layout Plain Layout
15837 Standard
15838 \end_layout
15839
15840 \end_inset
15841
15842  style paragraphs inside environments use the 
15843 \begin_inset Flex Code
15844 status collapsed
15845
15846 \begin_layout Plain Layout
15847 Parindent
15848 \end_layout
15849
15850 \end_inset
15851
15852  of the environment,
15853  not their native one.
15854  For example,
15855  
15856 \begin_inset Flex Code
15857 status collapsed
15858
15859 \begin_layout Plain Layout
15860 Standard
15861 \end_layout
15862
15863 \end_inset
15864
15865  paragraphs inside an enumeration are not indented.
15866 \end_layout
15867
15868 \begin_layout Description
15869 \begin_inset Flex Code
15870 status collapsed
15871
15872 \begin_layout Plain Layout
15873 ParSep
15874 \end_layout
15875
15876 \end_inset
15877
15878  [
15879 \begin_inset Flex Code
15880 status collapsed
15881
15882 \begin_layout Plain Layout
15883 float=0
15884 \end_layout
15885
15886 \end_inset
15887
15888 ] The vertical space between two paragraphs of this style.
15889 \end_layout
15890
15891 \begin_layout Description
15892 \begin_inset Flex Code
15893 status collapsed
15894
15895 \begin_layout Plain Layout
15896 Parskip
15897 \end_layout
15898
15899 \end_inset
15900
15901  [
15902 \begin_inset Flex Code
15903 status collapsed
15904
15905 \begin_layout Plain Layout
15906 float=0
15907 \end_layout
15908
15909 \end_inset
15910
15911 ] \SpecialChar LyX
15912  allows the user to choose either 
15913 \begin_inset Quotes eld
15914 \end_inset
15915
15916 indent
15917 \begin_inset Quotes erd
15918 \end_inset
15919
15920  or 
15921 \begin_inset Quotes eld
15922 \end_inset
15923
15924 skip
15925 \begin_inset Quotes erd
15926 \end_inset
15927
15928  to separate paragraphs.
15929  When 
15930 \begin_inset Quotes eld
15931 \end_inset
15932
15933 indent
15934 \begin_inset Quotes erd
15935 \end_inset
15936
15937  is chosen,
15938  
15939 \begin_inset Flex Code
15940 status collapsed
15941
15942 \begin_layout Plain Layout
15943 Parskip
15944 \end_layout
15945
15946 \end_inset
15947
15948  is ignored.
15949  When 
15950 \begin_inset Quotes eld
15951 \end_inset
15952
15953 skip
15954 \begin_inset Quotes erd
15955 \end_inset
15956
15957  is chosen,
15958  
15959 \begin_inset Flex Code
15960 status collapsed
15961
15962 \begin_layout Plain Layout
15963 ParIndent
15964 \end_layout
15965
15966 \end_inset
15967
15968  is ignored and all paragraphs are separated by the 
15969 \begin_inset Flex Code
15970 status collapsed
15971
15972 \begin_layout Plain Layout
15973 Parskip
15974 \end_layout
15975
15976 \end_inset
15977
15978  argument.
15979  The vertical space is calculated with 
15980 \begin_inset Flex Code
15981 status collapsed
15982
15983 \begin_layout Plain Layout
15984 Parskip
15985 \begin_inset space ~
15986 \end_inset
15987
15988 * DefaultHeight
15989 \end_layout
15990
15991 \end_inset
15992
15993  where 
15994 \begin_inset Flex Code
15995 status collapsed
15996
15997 \begin_layout Plain Layout
15998 DefaultHeight
15999 \end_layout
16000
16001 \end_inset
16002
16003  is the height of a row with the normal font.
16004  This way,
16005  the look stays the same with different screen fonts.
16006 \end_layout
16007
16008 \begin_layout Description
16009 \begin_inset Flex Code
16010 status collapsed
16011
16012 \begin_layout Plain Layout
16013 PassThru
16014 \end_layout
16015
16016 \end_inset
16017
16018  [
16019 \begin_inset Flex Code
16020 status collapsed
16021
16022 \begin_layout Plain Layout
16023
16024 \emph on
16025 0
16026 \end_layout
16027
16028 \end_inset
16029
16030 ,
16031 \begin_inset space \thinspace{}
16032 \end_inset
16033
16034
16035 \begin_inset Flex Code
16036 status collapsed
16037
16038 \begin_layout Plain Layout
16039 1
16040 \end_layout
16041
16042 \end_inset
16043
16044 ] Whether the contents of this paragraph should be output in raw form,
16045  meaning without special translations that \SpecialChar LaTeX
16046  would require.
16047 \end_layout
16048
16049 \begin_layout Description
16050 \begin_inset Flex Code
16051 status collapsed
16052
16053 \begin_layout Plain Layout
16054 PassThruChars
16055 \end_layout
16056
16057 \end_inset
16058
16059  [
16060 \begin_inset Flex Code
16061 status collapsed
16062
16063 \begin_layout Plain Layout
16064 string
16065 \end_layout
16066
16067 \end_inset
16068
16069 ]
16070 \family typewriter
16071  
16072 \family default
16073 Defines individual characters that should be output in raw form,
16074  meaning without special translations that \SpecialChar LaTeX
16075  would require.
16076 \end_layout
16077
16078 \begin_layout Description
16079 \begin_inset Flex Code
16080 status collapsed
16081
16082 \begin_layout Plain Layout
16083 Preamble
16084 \end_layout
16085
16086 \end_inset
16087
16088  Information to be included in the \SpecialChar LaTeX
16089  preamble when this style is used.
16090  Used to define macros,
16091  load packages,
16092  etc.,
16093  required by this particular style.
16094  Must end with 
16095 \begin_inset Quotes eld
16096 \end_inset
16097
16098
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103 EndPreamble
16104 \end_layout
16105
16106 \end_inset
16107
16108
16109 \begin_inset Quotes erd
16110 \end_inset
16111
16112 .
16113 \end_layout
16114
16115 \begin_layout Description
16116 \begin_inset Flex Code
16117 status collapsed
16118
16119 \begin_layout Plain Layout
16120 RefPrefix
16121 \end_layout
16122
16123 \end_inset
16124
16125  [
16126 \begin_inset Flex Code
16127 status collapsed
16128
16129 \begin_layout Plain Layout
16130 string
16131 \end_layout
16132
16133 \end_inset
16134
16135 ] The prefix to use when creating labels referring to paragraphs of this type.
16136  This allows the use of formatted references.
16137 \end_layout
16138
16139 \begin_layout Description
16140 \begin_inset Flex Code
16141 status collapsed
16142
16143 \begin_layout Plain Layout
16144 Requires 
16145 \end_layout
16146
16147 \end_inset
16148
16149  [
16150 \begin_inset Flex Code
16151 status collapsed
16152
16153 \begin_layout Plain Layout
16154 string
16155 \end_layout
16156
16157 \end_inset
16158
16159 ] Whether the style requires the feature 
16160 \begin_inset Flex Code
16161 status collapsed
16162
16163 \begin_layout Plain Layout
16164 string
16165 \end_layout
16166
16167 \end_inset
16168
16169  (see 
16170 \begin_inset CommandInset ref
16171 LatexCommand ref
16172 reference "chap:List-of-functions"
16173 nolink "false"
16174
16175 \end_inset
16176
16177  for the list of features).
16178  If you require a package with specific options,
16179  you can additionally use 
16180 \begin_inset Flex Code
16181 status collapsed
16182
16183 \begin_layout Plain Layout
16184 PackageOptions
16185 \end_layout
16186
16187 \end_inset
16188
16189  as a general text class parameter (see 
16190 \begin_inset CommandInset ref
16191 LatexCommand ref
16192 reference "subsec:General-text-class"
16193 nolink "false"
16194
16195 \end_inset
16196
16197 ).
16198 \end_layout
16199
16200 \begin_layout Description
16201 \begin_inset Flex Code
16202 status collapsed
16203
16204 \begin_layout Plain Layout
16205 ResetArgs
16206 \end_layout
16207
16208 \end_inset
16209
16210  [
16211 \begin_inset Flex Code
16212 status collapsed
16213
16214 \begin_layout Plain Layout
16215
16216 \emph on
16217 0
16218 \end_layout
16219
16220 \end_inset
16221
16222 ,
16223 \begin_inset Flex Code
16224 status collapsed
16225
16226 \begin_layout Plain Layout
16227 1
16228 \end_layout
16229
16230 \end_inset
16231
16232 ] Resets the \SpecialChar LaTeX
16233  arguments of this style (as defined via the 
16234 \begin_inset Flex Code
16235 status collapsed
16236
16237 \begin_layout Plain Layout
16238 Argument
16239 \end_layout
16240
16241 \end_inset
16242
16243  tag).
16244  This is useful if you have copied a style via 
16245 \begin_inset Flex Code
16246 status collapsed
16247
16248 \begin_layout Plain Layout
16249 CopyStyle
16250 \end_layout
16251
16252 \end_inset
16253
16254 ,
16255  but you do not want to inherit its (required and optional) arguments.
16256 \end_layout
16257
16258 \begin_layout Description
16259 \begin_inset Flex Code
16260 status collapsed
16261
16262 \begin_layout Plain Layout
16263 ResumeCounter
16264 \end_layout
16265
16266 \end_inset
16267
16268  [
16269 \begin_inset Flex Code
16270 status collapsed
16271
16272 \begin_layout Plain Layout
16273
16274 \emph on
16275 0
16276 \end_layout
16277
16278 \end_inset
16279
16280 ,
16281 \begin_inset Flex Code
16282 status collapsed
16283
16284 \begin_layout Plain Layout
16285 1
16286 \end_layout
16287
16288 \end_inset
16289
16290 ] Resumes a counter that is usually reset at each new sequence of layouts.
16291  This is currently only useful when 
16292 \begin_inset Flex Code
16293 status collapsed
16294
16295 \begin_layout Plain Layout
16296 LabelType
16297 \end_layout
16298
16299 \end_inset
16300
16301  is 
16302 \begin_inset Flex Code
16303 status collapsed
16304
16305 \begin_layout Plain Layout
16306 Enumerate
16307 \end_layout
16308
16309 \end_inset
16310
16311 .
16312 \end_layout
16313
16314 \begin_layout Description
16315 \begin_inset Flex Code
16316 status collapsed
16317
16318 \begin_layout Plain Layout
16319 RightDelim
16320 \end_layout
16321
16322 \end_inset
16323
16324  [
16325 \begin_inset Flex Code
16326 status collapsed
16327
16328 \begin_layout Plain Layout
16329 string
16330 \end_layout
16331
16332 \end_inset
16333
16334 ] A string that is put at the end of the layout content.
16335  A line break in the output can be indicated by 
16336 \begin_inset Flex Code
16337 status collapsed
16338
16339 \begin_layout Plain Layout
16340 <br/>
16341 \end_layout
16342
16343 \end_inset
16344
16345 .
16346 \end_layout
16347
16348 \begin_layout Description
16349 \begin_inset Flex Code
16350 status collapsed
16351
16352 \begin_layout Plain Layout
16353 RightMargin
16354 \end_layout
16355
16356 \end_inset
16357
16358  [
16359 \begin_inset Flex Code
16360 status collapsed
16361
16362 \begin_layout Plain Layout
16363 string=""
16364 \end_layout
16365
16366 \end_inset
16367
16368 ] Similar to 
16369 \begin_inset Flex Code
16370 status collapsed
16371
16372 \begin_layout Plain Layout
16373 LeftMargin
16374 \end_layout
16375
16376 \end_inset
16377
16378 .
16379 \end_layout
16380
16381 \begin_layout Description
16382 \begin_inset Flex Code
16383 status collapsed
16384
16385 \begin_layout Plain Layout
16386 Spacing
16387 \end_layout
16388
16389 \end_inset
16390
16391  [
16392 \begin_inset Flex Code
16393 status collapsed
16394
16395 \begin_layout Plain Layout
16396
16397 \emph on
16398 single
16399 \end_layout
16400
16401 \end_inset
16402
16403 ,
16404  
16405 \begin_inset Flex Code
16406 status collapsed
16407
16408 \begin_layout Plain Layout
16409 onehalf
16410 \end_layout
16411
16412 \end_inset
16413
16414 ,
16415  
16416 \begin_inset Flex Code
16417 status collapsed
16418
16419 \begin_layout Plain Layout
16420 double
16421 \end_layout
16422
16423 \end_inset
16424
16425 ,
16426  
16427 \begin_inset Flex Code
16428 status collapsed
16429
16430 \begin_layout Plain Layout
16431 other
16432 \begin_inset space ~
16433 \end_inset
16434
16435 <value>
16436 \end_layout
16437
16438 \end_inset
16439
16440 ] This defines what the default spacing should be in the style.
16441  The arguments 
16442 \begin_inset Flex Code
16443 status collapsed
16444
16445 \begin_layout Plain Layout
16446 single
16447 \end_layout
16448
16449 \end_inset
16450
16451 ,
16452  
16453 \begin_inset Flex Code
16454 status collapsed
16455
16456 \begin_layout Plain Layout
16457 onehalf
16458 \end_layout
16459
16460 \end_inset
16461
16462  and 
16463 \begin_inset Flex Code
16464 status collapsed
16465
16466 \begin_layout Plain Layout
16467 double
16468 \end_layout
16469
16470 \end_inset
16471
16472  correspond respectively to a multiplier value of 1,
16473  1.25 and 1.667.
16474  If you specify the argument 
16475 \begin_inset Flex Code
16476 status collapsed
16477
16478 \begin_layout Plain Layout
16479 other
16480 \end_layout
16481
16482 \end_inset
16483
16484 ,
16485  then you must also provide a value argument which will be the actual multiplier value.
16486  Note that,
16487  contrary to other parameters,
16488  
16489 \begin_inset Flex Code
16490 status collapsed
16491
16492 \begin_layout Plain Layout
16493 Spacing
16494 \end_layout
16495
16496 \end_inset
16497
16498  implies the generation of specific \SpecialChar LaTeX
16499  code,
16500  using the \SpecialChar LaTeX
16501  package 
16502 \family roman
16503
16504 \begin_inset Flex Code
16505 status collapsed
16506
16507 \begin_layout Plain Layout
16508 setspace
16509 \end_layout
16510
16511 \end_inset
16512
16513 .
16514 \end_layout
16515
16516 \begin_layout Description
16517 \begin_inset Flex Code
16518 status collapsed
16519
16520 \begin_layout Plain Layout
16521 Spellcheck
16522 \end_layout
16523
16524 \end_inset
16525
16526  [
16527 \begin_inset Flex Code
16528 status collapsed
16529
16530 \begin_layout Plain Layout
16531 0
16532 \end_layout
16533
16534 \end_inset
16535
16536 ,
16537 \begin_inset space \thinspace{}
16538 \end_inset
16539
16540
16541 \begin_inset Flex Code
16542 status collapsed
16543
16544 \begin_layout Plain Layout
16545
16546 \emph on
16547 1
16548 \end_layout
16549
16550 \end_inset
16551
16552 ] Allow spell-checking paragraphs of this style.
16553  Default is true.
16554 \end_layout
16555
16556 \begin_layout Description
16557 \begin_inset Flex Code
16558 status collapsed
16559
16560 \begin_layout Plain Layout
16561 StepParentCounter
16562 \end_layout
16563
16564 \end_inset
16565
16566  [
16567 \begin_inset Flex Code
16568 status collapsed
16569
16570 \begin_layout Plain Layout
16571
16572 \emph on
16573 0
16574 \end_layout
16575
16576 \end_inset
16577
16578 ,
16579 \begin_inset Flex Code
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583 1
16584 \end_layout
16585
16586 \end_inset
16587
16588 ] Steps the parent counter of a given counter at the beginning of a new sequence of layouts.
16589  This is currently only useful when 
16590 \begin_inset Flex Code
16591 status collapsed
16592
16593 \begin_layout Plain Layout
16594 LabelType
16595 \end_layout
16596
16597 \end_inset
16598
16599  is 
16600 \begin_inset Flex Code
16601 status collapsed
16602
16603 \begin_layout Plain Layout
16604 Enumerate
16605 \end_layout
16606
16607 \end_inset
16608
16609 .
16610 \end_layout
16611
16612 \begin_layout Description
16613 \begin_inset Flex Code
16614 status collapsed
16615
16616 \begin_layout Plain Layout
16617 TextFont
16618 \end_layout
16619
16620 \end_inset
16621
16622  The font used for the text body .
16623  See 
16624 \begin_inset CommandInset ref
16625 LatexCommand ref
16626 reference "subsec:Font-description"
16627 nolink "false"
16628
16629 \end_inset
16630
16631 .
16632 \end_layout
16633
16634 \begin_layout Description
16635 \begin_inset Flex Code
16636 status collapsed
16637
16638 \begin_layout Plain Layout
16639 TocLevel
16640 \end_layout
16641
16642 \end_inset
16643
16644
16645 \series medium
16646  [
16647 \begin_inset Flex Code
16648 status collapsed
16649
16650 \begin_layout Plain Layout
16651
16652 \series medium
16653 int=3
16654 \end_layout
16655
16656 \end_inset
16657
16658 ]
16659 \series default
16660  The level of the style in the table of contents.
16661  This is used for automatic numbering of section headings.
16662 \end_layout
16663
16664 \begin_layout Description
16665 \begin_inset Flex Code
16666 status collapsed
16667
16668 \begin_layout Plain Layout
16669 ToggleIndent
16670 \end_layout
16671
16672 \end_inset
16673
16674  [
16675 \emph on
16676
16677 \begin_inset Flex Code
16678 status collapsed
16679
16680 \begin_layout Plain Layout
16681
16682 \emph on
16683 default
16684 \end_layout
16685
16686 \end_inset
16687
16688
16689 \emph default
16690 ,
16691  
16692 \begin_inset Flex Code
16693 status collapsed
16694
16695 \begin_layout Plain Layout
16696 always
16697 \end_layout
16698
16699 \end_inset
16700
16701 ,
16702  
16703 \begin_inset Flex Code
16704 status collapsed
16705
16706 \begin_layout Plain Layout
16707 never
16708 \end_layout
16709
16710 \end_inset
16711
16712 ] This tag determines whether the first line indentation of this paragraph can be toggled via the Paragraph settings dialog.
16713  If 
16714 \emph on
16715
16716 \begin_inset Flex Code
16717 status collapsed
16718
16719 \begin_layout Plain Layout
16720
16721 \emph off
16722 default
16723 \end_layout
16724
16725 \end_inset
16726
16727
16728 \emph default
16729  is set,
16730  indentation can be toggled if the document settings use 
16731 \begin_inset Quotes eld
16732 \end_inset
16733
16734 indent
16735 \begin_inset Quotes erd
16736 \end_inset
16737
16738  paragraph style,
16739  with 
16740 \begin_inset Flex Code
16741 status collapsed
16742
16743 \begin_layout Plain Layout
16744 always
16745 \end_layout
16746
16747 \end_inset
16748
16749 ,
16750  indentation can always be toggled,
16751  notwithstanding the document settings,
16752  with 
16753 \begin_inset Flex Code
16754 status collapsed
16755
16756 \begin_layout Plain Layout
16757 never
16758 \end_layout
16759
16760 \end_inset
16761
16762 ,
16763  indentation can never be toggled.
16764 \end_layout
16765
16766 \begin_layout Description
16767 \begin_inset Flex Code
16768 status collapsed
16769
16770 \begin_layout Plain Layout
16771 TopSep
16772 \end_layout
16773
16774 \end_inset
16775
16776  [
16777 \begin_inset Flex Code
16778 status collapsed
16779
16780 \begin_layout Plain Layout
16781 float=0
16782 \end_layout
16783
16784 \end_inset
16785
16786 ] The vertical space with which the very first of a chain of paragraphs with this style is separated from the previous paragraph.
16787  If the previous paragraph has another style,
16788  the separations are not simply added,
16789  but the maximum is taken.
16790 \end_layout
16791
16792 \begin_layout Subsection
16793 \begin_inset CommandInset label
16794 LatexCommand label
16795 name "subsec:I18n"
16796
16797 \end_inset
16798
16799 Internationalization of Paragraph Styles
16800 \end_layout
16801
16802 \begin_layout Standard
16803 \SpecialChar LyX
16804  has long supported internationalization of layout information,
16805  but,
16806  until version 2.0,
16807  this applied only to the user interface and not to,
16808  say,
16809  PDF output.
16810  Thus,
16811  French authors were forced to resort to ugly hacks if they wanted `
16812 \lang french
16813 Théorème
16814 \lang english
16815  1' instead of `Theorem 1'.
16816  Thanks to Georg Baum,
16817  that is no longer the case.
16818 \end_layout
16819
16820 \begin_layout Standard
16821 If a 
16822 \begin_inset Flex Code
16823 status collapsed
16824
16825 \begin_layout Plain Layout
16826 Style
16827 \end_layout
16828
16829 \end_inset
16830
16831  defines text that is to appear in the typeset document,
16832  it may use 
16833 \begin_inset Flex Code
16834 status collapsed
16835
16836 \begin_layout Plain Layout
16837 LangPreamble
16838 \end_layout
16839
16840 \end_inset
16841
16842  and 
16843 \begin_inset Flex Code
16844 status collapsed
16845
16846 \begin_layout Plain Layout
16847 BabelPreamble
16848 \end_layout
16849
16850 \end_inset
16851
16852  to support non-English and even multi-language documents correctly.
16853  The following excerpt (from the 
16854 \begin_inset Flex Code
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858 theorems-ams.inc
16859 \end_layout
16860
16861 \end_inset
16862
16863  file) shows how this works:
16864 \end_layout
16865
16866 \begin_layout LyX-Code
16867 Preamble
16868 \end_layout
16869
16870 \begin_deeper
16871 \begin_layout LyX-Code
16872   
16873 \backslash
16874 theoremstyle{remark}
16875 \end_layout
16876
16877 \begin_layout LyX-Code
16878   
16879 \backslash
16880 newtheorem{claim}[thm]{
16881 \backslash
16882 protect
16883 \backslash
16884 claimname}
16885 \end_layout
16886
16887 \begin_layout LyX-Code
16888 EndPreamble
16889 \end_layout
16890
16891 \begin_layout LyX-Code
16892 LangPreamble
16893 \end_layout
16894
16895 \begin_layout LyX-Code
16896   
16897 \backslash
16898 providecommand{
16899 \backslash
16900 claimname}{_(Claim)}
16901 \end_layout
16902
16903 \begin_layout LyX-Code
16904 EndLangPreamble
16905 \end_layout
16906
16907 \begin_layout LyX-Code
16908 BabelPreamble
16909 \end_layout
16910
16911 \begin_layout LyX-Code
16912     
16913 \backslash
16914 addto
16915 \backslash
16916 captions$$lang{
16917 \backslash
16918 renewcommand{
16919 \backslash
16920 claimname}{_(Claim)}}
16921 \end_layout
16922
16923 \begin_layout LyX-Code
16924 EndBabelPreamble
16925 \end_layout
16926
16927 \end_deeper
16928 \begin_layout Standard
16929 In principle,
16930  any legal \SpecialChar LaTeX
16931  may appear in the 
16932 \begin_inset Flex Code
16933 status collapsed
16934
16935 \begin_layout Plain Layout
16936 LangPreamble
16937 \end_layout
16938
16939 \end_inset
16940
16941  and 
16942 \begin_inset Flex Code
16943 status collapsed
16944
16945 \begin_layout Plain Layout
16946 BabelPreamble
16947 \end_layout
16948
16949 \end_inset
16950
16951  tags,
16952  but in practice they will typically look as they do here.
16953  The key to correct translation of the typeset text is the definition of the \SpecialChar LaTeX
16954  command 
16955 \begin_inset Flex Code
16956 status collapsed
16957
16958 \begin_layout Plain Layout
16959
16960 \backslash
16961 claimname
16962 \end_layout
16963
16964 \end_inset
16965
16966  and its use in 
16967 \begin_inset Flex Code
16968 status collapsed
16969
16970 \begin_layout Plain Layout
16971
16972 \backslash
16973 newtheorem
16974 \end_layout
16975
16976 \end_inset
16977
16978 .
16979  
16980 \end_layout
16981
16982 \begin_layout Standard
16983 The 
16984 \begin_inset Flex Code
16985 status collapsed
16986
16987 \begin_layout Plain Layout
16988 LangPreamble
16989 \end_layout
16990
16991 \end_inset
16992
16993  tag provides for internationalization based upon the overall language of the document.
16994  The contents of the tag will be included in the preamble,
16995  just as with the 
16996 \begin_inset Flex Code
16997 status collapsed
16998
16999 \begin_layout Plain Layout
17000 Preamble
17001 \end_layout
17002
17003 \end_inset
17004
17005  tag.
17006  What makes it special is the use of the 
17007 \begin_inset Quotes eld
17008 \end_inset
17009
17010 function
17011 \begin_inset Quotes erd
17012 \end_inset
17013
17014  
17015 \begin_inset Flex Code
17016 status collapsed
17017
17018 \begin_layout Plain Layout
17019 _()
17020 \end_layout
17021
17022 \end_inset
17023
17024 ,
17025  which will be replaced,
17026  when \SpecialChar LyX
17027  produces \SpecialChar LaTeX
17028  output,
17029  with the translation of its argument into the document language.
17030 \end_layout
17031
17032 \begin_layout Standard
17033 The 
17034 \begin_inset Flex Code
17035 status collapsed
17036
17037 \begin_layout Plain Layout
17038 BabelPreamble
17039 \end_layout
17040
17041 \end_inset
17042
17043  tag is more complex,
17044  since it is meant to provide support for multi-language documents and so offers an interface to the 
17045 \begin_inset Flex Code
17046 status collapsed
17047
17048 \begin_layout Plain Layout
17049 babel
17050 \end_layout
17051
17052 \end_inset
17053
17054  package.
17055  Its contents will be added to the preamble once for each language that appears in the document.
17056  In this case,
17057  the argument to 
17058 \begin_inset Flex Code
17059 status collapsed
17060
17061 \begin_layout Plain Layout
17062 _()
17063 \end_layout
17064
17065 \end_inset
17066
17067  will be replaced with its translation into the language in question;
17068  the expression 
17069 \begin_inset Flex Code
17070 status collapsed
17071
17072 \begin_layout Plain Layout
17073 $$lang
17074 \end_layout
17075
17076 \end_inset
17077
17078  is replaced by the language name (as used by the babel package).
17079 \end_layout
17080
17081 \begin_layout Standard
17082 A German document that also included a French section would thus have the following in the preamble:
17083 \end_layout
17084
17085 \begin_layout LyX-Code
17086
17087 \backslash
17088 addto
17089 \backslash
17090 captionsfrench{
17091 \backslash
17092 renewcommand{
17093 \backslash
17094 claimname}{Affirmation}}
17095 \begin_inset Newline newline
17096 \end_inset
17097
17098
17099 \backslash
17100 addto
17101 \backslash
17102 captionsngerman{
17103 \backslash
17104 renewcommand{
17105 \backslash
17106 claimname}{Behauptung}}
17107 \begin_inset Newline newline
17108 \end_inset
17109
17110
17111 \backslash
17112 providecommand{
17113 \backslash
17114 claimname}{Behauptung}
17115 \end_layout
17116
17117 \begin_layout Standard
17118 \SpecialChar LaTeX
17119  and 
17120 \begin_inset Flex Code
17121 status collapsed
17122
17123 \begin_layout Plain Layout
17124 babel
17125 \end_layout
17126
17127 \end_inset
17128
17129  will then conspire to produce the correct text in the output.
17130 \end_layout
17131
17132 \begin_layout Standard
17133 One important point to note here is that the translations are provided by \SpecialChar LyX
17134  itself,
17135  through the file 
17136 \begin_inset Flex Code
17137 status collapsed
17138
17139 \begin_layout Plain Layout
17140 layouttranslations
17141 \end_layout
17142
17143 \end_inset
17144
17145 .
17146  This means,
17147  in effect,
17148  that 
17149 \begin_inset Flex Code
17150 status collapsed
17151
17152 \begin_layout Plain Layout
17153 LangPreamble
17154 \end_layout
17155
17156 \end_inset
17157
17158  and 
17159 \begin_inset Flex Code
17160 status collapsed
17161
17162 \begin_layout Plain Layout
17163 BabelPreamble
17164 \end_layout
17165
17166 \end_inset
17167
17168  are really only of use in layout files that are provided with \SpecialChar LyX
17169 ,
17170  since text entered in user-created layout files will not be seen by \SpecialChar LyX
17171 's internationalization routines unless the 
17172 \begin_inset Flex Code
17173 status collapsed
17174
17175 \begin_layout Plain Layout
17176 layouttranslations
17177 \end_layout
17178
17179 \end_inset
17180
17181  file is modified accordingly.
17182  That said,
17183  however,
17184  any layout created with the intention that it will be included with \SpecialChar LyX
17185  should use these tags where appropriate.
17186  Please note that the paragraph style translations provided by \SpecialChar LyX
17187  will never change with a minor update (e.
17188 \begin_inset space \thinspace{}
17189 \end_inset
17190
17191 g.
17192 \begin_inset space \space{}
17193 \end_inset
17194
17195 from version 2.1.x to 2.1.y).
17196  It is however quite likely that a major update (e.
17197 \begin_inset space \thinspace{}
17198 \end_inset
17199
17200 g.
17201 \begin_inset space \space{}
17202 \end_inset
17203
17204 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17205 \end_layout
17206
17207 \begin_layout Subsection
17208 Floats
17209 \begin_inset CommandInset label
17210 LatexCommand label
17211 name "subsec:Floats"
17212
17213 \end_inset
17214
17215
17216 \end_layout
17217
17218 \begin_layout Standard
17219 It is necessary to define the floats (
17220 \begin_inset Flex Noun
17221 status collapsed
17222
17223 \begin_layout Plain Layout
17224 figure
17225 \end_layout
17226
17227 \end_inset
17228
17229 ,
17230  
17231 \begin_inset Flex Noun
17232 status collapsed
17233
17234 \begin_layout Plain Layout
17235 table
17236 \end_layout
17237
17238 \end_inset
17239
17240 ,
17241  \SpecialChar ldots
17242 ) in the text class itself.
17243  Standard floats are included in the file 
17244 \begin_inset Flex Code
17245 status collapsed
17246
17247 \begin_layout Plain Layout
17248 stdfloats.inc
17249 \end_layout
17250
17251 \end_inset
17252
17253 ,
17254  so you may have to do no more than add
17255 \end_layout
17256
17257 \begin_layout LyX-Code
17258 Input stdfloats.inc
17259 \end_layout
17260
17261 \begin_layout Standard
17262 to your layout file.
17263  If you want to implement a text class that proposes some other float types (like the AGU class bundled with \SpecialChar LyX
17264 ),
17265  the information below will hopefully help you:
17266 \end_layout
17267
17268 \begin_layout Description
17269 \begin_inset Flex Code
17270 status collapsed
17271
17272 \begin_layout Plain Layout
17273 AllowedPlacement
17274 \end_layout
17275
17276 \end_inset
17277
17278  [
17279 \begin_inset Flex Code
17280 status collapsed
17281
17282 \begin_layout Plain Layout
17283 string
17284 \end_layout
17285
17286 \end_inset
17287
17288 =!htbpH] Allowed placement options for this float type.
17289  The value is a string of placement characters.
17290  Possible characters include:
17291  
17292 \emph on
17293 h
17294 \emph default
17295  (
17296 \begin_inset Quotes eld
17297 \end_inset
17298
17299 here if possible
17300 \begin_inset Quotes erd
17301 \end_inset
17302
17303 ),
17304  
17305 \emph on
17306 t
17307 \emph default
17308  (
17309 \begin_inset Quotes eld
17310 \end_inset
17311
17312 top of page
17313 \begin_inset Quotes erd
17314 \end_inset
17315
17316 ),
17317  
17318 \emph on
17319 b
17320 \emph default
17321  (
17322 \begin_inset Quotes eld
17323 \end_inset
17324
17325 bottom of page
17326 \begin_inset Quotes erd
17327 \end_inset
17328
17329 ),
17330  
17331 \emph on
17332 p
17333 \emph default
17334  (
17335 \begin_inset Quotes eld
17336 \end_inset
17337
17338 page of floats
17339 \begin_inset Quotes erd
17340 \end_inset
17341
17342 ),
17343  
17344 \emph on
17345 H
17346 \emph default
17347  (
17348 \begin_inset Quotes eld
17349 \end_inset
17350
17351 here definitely
17352 \begin_inset Quotes erd
17353 \end_inset
17354
17355 ) and 
17356 \emph on
17357 !
17358
17359 \emph default
17360  (
17361 \begin_inset Quotes eld
17362 \end_inset
17363
17364 ignore LaTeX rules
17365 \begin_inset Quotes erd
17366 \end_inset
17367
17368 ).
17369  The order of the characters in the string does not matter.
17370  If no placement options are allowed,
17371  use the string 
17372 \emph on
17373 none
17374 \emph default
17375 .
17376 \end_layout
17377
17378 \begin_layout Description
17379 \begin_inset Flex Code
17380 status collapsed
17381
17382 \begin_layout Plain Layout
17383 AllowsSideways
17384 \end_layout
17385
17386 \end_inset
17387
17388  [
17389 \begin_inset Flex Code
17390 status collapsed
17391
17392 \begin_layout Plain Layout
17393
17394 \emph off
17395 0
17396 \end_layout
17397
17398 \end_inset
17399
17400 ,
17401 \begin_inset space \thinspace{}
17402 \end_inset
17403
17404
17405 \emph on
17406
17407 \begin_inset Flex Code
17408 status collapsed
17409
17410 \begin_layout Plain Layout
17411
17412 \emph on
17413 1
17414 \end_layout
17415
17416 \end_inset
17417
17418
17419 \emph default
17420 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17421 -package 
17422 \family typewriter
17423 rotfloat
17424 \family default
17425  (sidewaysfloat).
17426  Set to 
17427 \begin_inset Flex Code
17428 status collapsed
17429
17430 \begin_layout Plain Layout
17431 0
17432 \end_layout
17433
17434 \end_inset
17435
17436  if the float does not support this feature.
17437 \end_layout
17438
17439 \begin_layout Description
17440 \begin_inset Flex Code
17441 status collapsed
17442
17443 \begin_layout Plain Layout
17444 AllowsWide
17445 \end_layout
17446
17447 \end_inset
17448
17449  [
17450 \begin_inset Flex Code
17451 status collapsed
17452
17453 \begin_layout Plain Layout
17454
17455 \emph off
17456 0
17457 \end_layout
17458
17459 \end_inset
17460
17461 ,
17462 \begin_inset space \thinspace{}
17463 \end_inset
17464
17465
17466 \emph on
17467
17468 \begin_inset Flex Code
17469 status collapsed
17470
17471 \begin_layout Plain Layout
17472
17473 \emph on
17474 1
17475 \end_layout
17476
17477 \end_inset
17478
17479
17480 \emph default
17481 ] Defines whether the float has a starred variant that spans columns in a two column paragraph.
17482  Set to 
17483 \begin_inset Flex Code
17484 status collapsed
17485
17486 \begin_layout Plain Layout
17487 0
17488 \end_layout
17489
17490 \end_inset
17491
17492  if the float does not support this feature.
17493 \end_layout
17494
17495 \begin_layout Description
17496 \begin_inset Flex Code
17497 status collapsed
17498
17499 \begin_layout Plain Layout
17500 Extension
17501 \end_layout
17502
17503 \end_inset
17504
17505  [
17506 \begin_inset Flex Code
17507 status collapsed
17508
17509 \begin_layout Plain Layout
17510 string
17511 \end_layout
17512
17513 \end_inset
17514
17515 =
17516 \begin_inset Quotes erd
17517 \end_inset
17518
17519
17520 \begin_inset Quotes erd
17521 \end_inset
17522
17523 ] The file name extension of an auxiliary file for the list of figures (or whatever).
17524  \SpecialChar LaTeX
17525  writes the captions to this file.
17526 \end_layout
17527
17528 \begin_layout Description
17529 \begin_inset Flex Code
17530 status collapsed
17531
17532 \begin_layout Plain Layout
17533 GuiName
17534 \end_layout
17535
17536 \end_inset
17537
17538  [
17539 \begin_inset Flex Code
17540 status collapsed
17541
17542 \begin_layout Plain Layout
17543 string
17544 \end_layout
17545
17546 \end_inset
17547
17548 =
17549 \begin_inset Quotes erd
17550 \end_inset
17551
17552
17553 \begin_inset Quotes erd
17554 \end_inset
17555
17556 ] The string that will be used in the menus and also for the caption.
17557  This is translated to the current language if babel is used.
17558 \end_layout
17559
17560 \begin_layout Description
17561 \begin_inset Flex Code
17562 status collapsed
17563
17564 \begin_layout Plain Layout
17565 HTML*
17566 \end_layout
17567
17568 \end_inset
17569
17570  These tags control the XHTML output.
17571  See 
17572 \begin_inset CommandInset ref
17573 LatexCommand ref
17574 reference "sec:Tags-for-XHTML"
17575 nolink "false"
17576
17577 \end_inset
17578
17579 .
17580 \end_layout
17581
17582 \begin_layout Description
17583 \begin_inset Flex Code
17584 status collapsed
17585
17586 \begin_layout Plain Layout
17587 IsPredefined
17588 \end_layout
17589
17590 \end_inset
17591
17592  [
17593 \emph on
17594
17595 \begin_inset Flex Code
17596 status collapsed
17597
17598 \begin_layout Plain Layout
17599 0
17600 \end_layout
17601
17602 \end_inset
17603
17604
17605 \emph default
17606 ,
17607 \begin_inset space \thinspace{}
17608 \end_inset
17609
17610
17611 \begin_inset Flex Code
17612 status collapsed
17613
17614 \begin_layout Plain Layout
17615 1
17616 \end_layout
17617
17618 \end_inset
17619
17620 ] Indicates whether the float is already defined in the document class or if instead the \SpecialChar LaTeX
17621  package 
17622 \begin_inset Flex Code
17623 status collapsed
17624
17625 \begin_layout Plain Layout
17626 float
17627 \end_layout
17628
17629 \end_inset
17630
17631  needs to be loaded to define it on-the-fly.
17632  The default is 
17633 \begin_inset Flex Code
17634 status collapsed
17635
17636 \begin_layout Plain Layout
17637 0
17638 \end_layout
17639
17640 \end_inset
17641
17642 ,
17643  which means:
17644  
17645 \begin_inset Flex Code
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 float
17650 \end_layout
17651
17652 \end_inset
17653
17654  is used.
17655  It should be set to 
17656 \begin_inset Flex Code
17657 status collapsed
17658
17659 \begin_layout Plain Layout
17660 1
17661 \end_layout
17662
17663 \end_inset
17664
17665  if the float is already defined by the \SpecialChar LaTeX
17666  document class.
17667 \end_layout
17668
17669 \begin_layout Description
17670 \begin_inset Flex Code
17671 status collapsed
17672
17673 \begin_layout Plain Layout
17674 ListCommand
17675 \end_layout
17676
17677 \end_inset
17678
17679  [
17680 \begin_inset Flex Code
17681 status collapsed
17682
17683 \begin_layout Plain Layout
17684 string
17685 \end_layout
17686
17687 \end_inset
17688
17689 =
17690 \begin_inset Quotes erd
17691 \end_inset
17692
17693
17694 \begin_inset Quotes erd
17695 \end_inset
17696
17697 ] The command used to generate a list of floats of this type;
17698  the leading `
17699 \backslash
17700 ' must be omitted.
17701  This 
17702 \emph on
17703 must
17704 \emph default
17705  be given if 
17706 \begin_inset Flex Code
17707 status collapsed
17708
17709 \begin_layout Plain Layout
17710 UsesFloatPkg
17711 \end_layout
17712
17713 \end_inset
17714
17715  is false,
17716  since there is no standard way to generate this command.
17717  It is ignored if 
17718 \begin_inset Flex Code
17719 status collapsed
17720
17721 \begin_layout Plain Layout
17722 UsesFloatPkg
17723 \end_layout
17724
17725 \end_inset
17726
17727  is true,
17728  since in that case there is a standard way to define the command.
17729 \end_layout
17730
17731 \begin_layout Description
17732 \begin_inset Flex Code
17733 status collapsed
17734
17735 \begin_layout Plain Layout
17736 ListName
17737 \end_layout
17738
17739 \end_inset
17740
17741  [
17742 \begin_inset Flex Code
17743 status collapsed
17744
17745 \begin_layout Plain Layout
17746 string
17747 \end_layout
17748
17749 \end_inset
17750
17751 =
17752 \begin_inset Quotes erd
17753 \end_inset
17754
17755
17756 \begin_inset Quotes erd
17757 \end_inset
17758
17759 ] A title for a list of floats of this kind (list of figures,
17760  tables,
17761  or whatever).
17762  It is used for the screen label within \SpecialChar LyX
17763 ,
17764  it is used by \SpecialChar LaTeX
17765  for the title and it is used as the title in the XHTML output.
17766  It will be translated to the document language.
17767 \end_layout
17768
17769 \begin_layout Description
17770 \begin_inset Flex Code
17771 status collapsed
17772
17773 \begin_layout Plain Layout
17774 NumberWithin
17775 \end_layout
17776
17777 \end_inset
17778
17779  [
17780 \begin_inset Flex Code
17781 status collapsed
17782
17783 \begin_layout Plain Layout
17784 string
17785 \end_layout
17786
17787 \end_inset
17788
17789 =
17790 \begin_inset Quotes erd
17791 \end_inset
17792
17793
17794 \begin_inset Quotes erd
17795 \end_inset
17796
17797 ] This (optional) argument determines whether floats of this class will be numbered within some sectional unit of the document.
17798  For example,
17799  if 
17800 \begin_inset Flex Code
17801 status collapsed
17802
17803 \begin_layout Plain Layout
17804 NumberWithin
17805 \end_layout
17806
17807 \end_inset
17808
17809  is set to 
17810 \begin_inset Quotes eld
17811 \end_inset
17812
17813
17814 \begin_inset Flex Code
17815 status collapsed
17816
17817 \begin_layout Plain Layout
17818 chapter
17819 \end_layout
17820
17821 \end_inset
17822
17823
17824 \begin_inset Quotes erd
17825 \end_inset
17826
17827 ,
17828  the floats will be numbered within chapters.
17829  
17830 \end_layout
17831
17832 \begin_layout Description
17833 \begin_inset Flex Code
17834 status collapsed
17835
17836 \begin_layout Plain Layout
17837 Placement
17838 \end_layout
17839
17840 \end_inset
17841
17842  [
17843 \begin_inset Flex Code
17844 status collapsed
17845
17846 \begin_layout Plain Layout
17847 string
17848 \end_layout
17849
17850 \end_inset
17851
17852 =
17853 \begin_inset Quotes erd
17854 \end_inset
17855
17856
17857 \begin_inset Quotes erd
17858 \end_inset
17859
17860 ] The default placement for the given class of floats.
17861  The string should be as in standard \SpecialChar LaTeX
17862 :
17863  
17864 \begin_inset Flex Code
17865 status collapsed
17866
17867 \begin_layout Plain Layout
17868 t
17869 \end_layout
17870
17871 \end_inset
17872
17873 ,
17874  
17875 \begin_inset Flex Code
17876 status collapsed
17877
17878 \begin_layout Plain Layout
17879 b
17880 \end_layout
17881
17882 \end_inset
17883
17884 ,
17885  
17886 \begin_inset Flex Code
17887 status collapsed
17888
17889 \begin_layout Plain Layout
17890 p
17891 \end_layout
17892
17893 \end_inset
17894
17895  and 
17896 \begin_inset Flex Code
17897 status collapsed
17898
17899 \begin_layout Plain Layout
17900 h
17901 \end_layout
17902
17903 \end_inset
17904
17905  for top,
17906  bottom,
17907  page,
17908  and here,
17909  respectively.
17910 \begin_inset Foot
17911 status collapsed
17912
17913 \begin_layout Plain Layout
17914 Note that the order of these letters in the string is irrelevant,
17915  like in \SpecialChar LaTeX
17916 .
17917 \end_layout
17918
17919 \end_inset
17920
17921  On top of that there is a new type,
17922  
17923 \begin_inset Flex Code
17924 status collapsed
17925
17926 \begin_layout Plain Layout
17927 H
17928 \end_layout
17929
17930 \end_inset
17931
17932 ,
17933  which does not really correspond to a float,
17934  since it means:
17935  put it 
17936 \begin_inset Quotes eld
17937 \end_inset
17938
17939 here
17940 \begin_inset Quotes erd
17941 \end_inset
17942
17943  and nowhere else.
17944  Note however that the 
17945 \begin_inset Flex Code
17946 status collapsed
17947
17948 \begin_layout Plain Layout
17949 H
17950 \end_layout
17951
17952 \end_inset
17953
17954  specifier is special and,
17955  because of implementation details,
17956  cannot be used in non-built in float types.
17957  If you do not understand what this means,
17958  just use 
17959 \begin_inset Quotes eld
17960 \end_inset
17961
17962
17963 \begin_inset Flex Code
17964 status collapsed
17965
17966 \begin_layout Plain Layout
17967 tbp
17968 \end_layout
17969
17970 \end_inset
17971
17972
17973 \begin_inset Quotes erd
17974 \end_inset
17975
17976 .
17977 \end_layout
17978
17979 \begin_layout Description
17980 \begin_inset Flex Code
17981 status collapsed
17982
17983 \begin_layout Plain Layout
17984 PrettyFormat
17985 \end_layout
17986
17987 \end_inset
17988
17989  [
17990 \begin_inset Flex Code
17991 status collapsed
17992
17993 \begin_layout Plain Layout
17994 string
17995 \end_layout
17996
17997 \end_inset
17998
17999 =
18000 \begin_inset Quotes erd
18001 \end_inset
18002
18003
18004 \begin_inset Quotes erd
18005 \end_inset
18006
18007 ] A format for use with formatted references to this counter.
18008  For example,
18009  one might want to have references to tables appear as 
18010 \begin_inset Quotes eld
18011 \end_inset
18012
18013 Table 2
18014 \begin_inset Quotes erd
18015 \end_inset
18016
18017 .
18018  The string may contain 
18019 \begin_inset Quotes eld
18020 \end_inset
18021
18022 ##
18023 \begin_inset Quotes erd
18024 \end_inset
18025
18026  or a counter specification.
18027  (See the documentation for 
18028 \begin_inset Flex Code
18029 status open
18030
18031 \begin_layout Plain Layout
18032 LabelString
18033 \end_layout
18034
18035 \end_inset
18036
18037  in 
18038 \begin_inset CommandInset ref
18039 LatexCommand formatted
18040 reference "subsec:Counters"
18041 plural "false"
18042 caps "false"
18043 noprefix "false"
18044 nolink "false"
18045
18046 \end_inset
18047
18048 .) The former will be replaced by the counter number itself.
18049  So,
18050  for sections,
18051  it would be:
18052  Section ##,
18053  or perhaps:
18054  section 
18055 \backslash
18056 arabic{section} (which might render as:
18057  section 2.7).
18058 \end_layout
18059
18060 \begin_layout Description
18061 \begin_inset Flex Code
18062 status collapsed
18063
18064 \begin_layout Plain Layout
18065 RefPrefix
18066 \end_layout
18067
18068 \end_inset
18069
18070  [
18071 \begin_inset Flex Code
18072 status collapsed
18073
18074 \begin_layout Plain Layout
18075 string
18076 \end_layout
18077
18078 \end_inset
18079
18080 ] The prefix to use when creating labels referring to floats of this type.
18081  This allows the use of formatted references.
18082  Note that you can remove any 
18083 \begin_inset Flex Code
18084 status collapsed
18085
18086 \begin_layout Plain Layout
18087 RefPrefix
18088 \end_layout
18089
18090 \end_inset
18091
18092  set by a copied style by using the special value 
18093 \begin_inset Quotes eld
18094 \end_inset
18095
18096 OFF
18097 \begin_inset Quotes erd
18098 \end_inset
18099
18100 ,
18101  which must be all caps.
18102 \end_layout
18103
18104 \begin_layout Description
18105 \begin_inset Flex Code
18106 status collapsed
18107
18108 \begin_layout Plain Layout
18109 Requires
18110 \end_layout
18111
18112 \end_inset
18113
18114  [
18115 \begin_inset Flex Code
18116 status collapsed
18117
18118 \begin_layout Plain Layout
18119 string
18120 \end_layout
18121
18122 \end_inset
18123
18124 ] As with paragraph styles,
18125  see 
18126 \begin_inset CommandInset ref
18127 LatexCommand ref
18128 reference "subsec:Paragraph-Styles"
18129 nolink "false"
18130
18131 \end_inset
18132
18133 .
18134 \end_layout
18135
18136 \begin_layout Description
18137 \begin_inset Flex Code
18138 status collapsed
18139
18140 \begin_layout Plain Layout
18141 Style
18142 \end_layout
18143
18144 \end_inset
18145
18146  [
18147 \begin_inset Flex Code
18148 status collapsed
18149
18150 \begin_layout Plain Layout
18151 string
18152 \end_layout
18153
18154 \end_inset
18155
18156 =
18157 \begin_inset Quotes erd
18158 \end_inset
18159
18160
18161 \begin_inset Quotes erd
18162 \end_inset
18163
18164 ] The style used when defining the float using 
18165 \begin_inset Flex Code
18166 status collapsed
18167
18168 \begin_layout Plain Layout
18169
18170 \backslash
18171 newfloat
18172 \end_layout
18173
18174 \end_inset
18175
18176 .
18177 \end_layout
18178
18179 \begin_layout Description
18180 \begin_inset Flex Code
18181 status collapsed
18182
18183 \begin_layout Plain Layout
18184 Type
18185 \end_layout
18186
18187 \end_inset
18188
18189  [
18190 \begin_inset Flex Code
18191 status collapsed
18192
18193 \begin_layout Plain Layout
18194 string
18195 \end_layout
18196
18197 \end_inset
18198
18199 =
18200 \begin_inset Quotes erd
18201 \end_inset
18202
18203
18204 \begin_inset Quotes erd
18205 \end_inset
18206
18207 ] The 
18208 \begin_inset Quotes eld
18209 \end_inset
18210
18211 type
18212 \begin_inset Quotes erd
18213 \end_inset
18214
18215  of the new class of floats,
18216  like program or algorithm.
18217  After the appropriate 
18218 \begin_inset Flex Code
18219 status collapsed
18220
18221 \begin_layout Plain Layout
18222
18223 \backslash
18224 newfloat
18225 \end_layout
18226
18227 \end_inset
18228
18229 ,
18230  commands such as 
18231 \begin_inset Flex Code
18232 status collapsed
18233
18234 \begin_layout Plain Layout
18235
18236 \backslash
18237 begin{program}
18238 \end_layout
18239
18240 \end_inset
18241
18242  or 
18243 \begin_inset Flex Code
18244 status collapsed
18245
18246 \begin_layout Plain Layout
18247
18248 \backslash
18249 end{algorithm*}
18250 \end_layout
18251
18252 \end_inset
18253
18254  will be available.
18255 \end_layout
18256
18257 \begin_layout Description
18258 \begin_inset Flex Code
18259 status collapsed
18260
18261 \begin_layout Plain Layout
18262 UsesFloatPkg
18263 \end_layout
18264
18265 \end_inset
18266
18267  [
18268 \begin_inset Flex Code
18269 status collapsed
18270
18271 \begin_layout Plain Layout
18272 0
18273 \end_layout
18274
18275 \end_inset
18276
18277 ,
18278 \begin_inset space \thinspace{}
18279 \end_inset
18280
18281
18282 \begin_inset Flex Code
18283 status collapsed
18284
18285 \begin_layout Plain Layout
18286
18287 \emph on
18288 1
18289 \end_layout
18290
18291 \end_inset
18292
18293 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18294  package 
18295 \begin_inset Flex Code
18296 status collapsed
18297
18298 \begin_layout Plain Layout
18299 float
18300 \end_layout
18301
18302 \end_inset
18303
18304 ,
18305  either by the class file,
18306  another package or on-the-fly by \SpecialChar LyX
18307  itself.
18308 \end_layout
18309
18310 \begin_layout Standard
18311 Note that defining a float with type 
18312 \begin_inset Flex Code
18313 status collapsed
18314
18315 \begin_layout Plain Layout
18316
18317 \emph on
18318 type
18319 \end_layout
18320
18321 \end_inset
18322
18323  automatically defines the corresponding counter with name 
18324 \begin_inset Flex Code
18325 status collapsed
18326
18327 \begin_layout Plain Layout
18328
18329 \emph on
18330 type
18331 \end_layout
18332
18333 \end_inset
18334
18335 .
18336 \end_layout
18337
18338 \begin_layout Subsection
18339 Flex insets and InsetLayout
18340 \begin_inset CommandInset label
18341 LatexCommand label
18342 name "subsec:Flex-insets-and"
18343
18344 \end_inset
18345
18346
18347 \end_layout
18348
18349 \begin_layout Standard
18350 Flex insets come in two different kinds:
18351  
18352 \end_layout
18353
18354 \begin_layout Itemize
18355 character style (
18356 \begin_inset Flex Code
18357 status collapsed
18358
18359 \begin_layout Plain Layout
18360 CharStyle
18361 \end_layout
18362
18363 \end_inset
18364
18365 ):
18366  These define semantic markup corresponding to such \SpecialChar LaTeX
18367  commands as 
18368 \begin_inset Flex Code
18369 status collapsed
18370
18371 \begin_layout Plain Layout
18372
18373 \backslash
18374 noun
18375 \end_layout
18376
18377 \end_inset
18378
18379  and 
18380 \begin_inset Flex Code
18381 status collapsed
18382
18383 \begin_layout Plain Layout
18384
18385 \backslash
18386 code
18387 \end_layout
18388
18389 \end_inset
18390
18391 .
18392 \end_layout
18393
18394 \begin_layout Itemize
18395 user custom (
18396 \begin_inset Flex Code
18397 status collapsed
18398
18399 \begin_layout Plain Layout
18400 Custom
18401 \end_layout
18402
18403 \end_inset
18404
18405 ):
18406  These can be used to define custom collapsible insets,
18407  similar to \SpecialChar TeX
18408  code,
18409  footnote,
18410  and the like.
18411  An obvious example is an endnote inset,
18412  which is defined in the 
18413 \begin_inset Flex Code
18414 status collapsed
18415
18416 \begin_layout Plain Layout
18417 endnote
18418 \end_layout
18419
18420 \end_inset
18421
18422  module.
18423 \end_layout
18424
18425 \begin_layout Standard
18426 Flex insets are defined using the 
18427 \begin_inset Flex Code
18428 status collapsed
18429
18430 \begin_layout Plain Layout
18431 InsetLayout
18432 \end_layout
18433
18434 \end_inset
18435
18436  tag,
18437  which shall be explained in a moment.
18438 \end_layout
18439
18440 \begin_layout Standard
18441 The 
18442 \begin_inset Flex Code
18443 status collapsed
18444
18445 \begin_layout Plain Layout
18446 InsetLayout
18447 \end_layout
18448
18449 \end_inset
18450
18451  tag also serves another function:
18452  It can be used to customize the general layout of many different types of insets.
18453  Currently,
18454  
18455 \begin_inset Flex Code
18456 status collapsed
18457
18458 \begin_layout Plain Layout
18459 InsetLayout
18460 \end_layout
18461
18462 \end_inset
18463
18464  can be used to customize the layout parameters for footnotes,
18465  marginal notes,
18466  note insets,
18467  \SpecialChar TeX
18468  code (ERT) insets,
18469  branches,
18470  listings,
18471  indexes,
18472  boxes,
18473  tables,
18474  algorithms,
18475  URLs,
18476  and captions,
18477  as well as to define Flex insets.
18478 \end_layout
18479
18480 \begin_layout Standard
18481 The 
18482 \begin_inset Flex Code
18483 status collapsed
18484
18485 \begin_layout Plain Layout
18486 InsetLayout
18487 \end_layout
18488
18489 \end_inset
18490
18491  definition must begin with a line of the form:
18492 \end_layout
18493
18494 \begin_layout LyX-Code
18495 InsetLayout <type>
18496 \end_layout
18497
18498 \begin_layout Standard
18499 Here 
18500 \begin_inset Flex Code
18501 status collapsed
18502
18503 \begin_layout Plain Layout
18504 <Type>
18505 \end_layout
18506
18507 \end_inset
18508
18509  indicates the inset whose layout is being defined,
18510  and here there are four cases.
18511 \end_layout
18512
18513 \begin_layout Enumerate
18514 The layout for a pre-existing inset is being modified.
18515  In this case,
18516  can be 
18517 \begin_inset Flex Code
18518 status collapsed
18519
18520 \begin_layout Plain Layout
18521 <Type>
18522 \end_layout
18523
18524 \end_inset
18525
18526  any one of the following:
18527  
18528 \begin_inset Flex Code
18529 status collapsed
18530
18531 \begin_layout Plain Layout
18532 Algorithm
18533 \end_layout
18534
18535 \end_inset
18536
18537 ,
18538  
18539 \begin_inset Flex Code
18540 status collapsed
18541
18542 \begin_layout Plain Layout
18543 Branch
18544 \end_layout
18545
18546 \end_inset
18547
18548 ,
18549  
18550 \begin_inset Flex Code
18551 status collapsed
18552
18553 \begin_layout Plain Layout
18554 Box
18555 \end_layout
18556
18557 \end_inset
18558
18559 ,
18560  
18561 \begin_inset Flex Code
18562 status collapsed
18563
18564 \begin_layout Plain Layout
18565 Box:shaded
18566 \end_layout
18567
18568 \end_inset
18569
18570 ,
18571  
18572 \begin_inset Flex Code
18573 status collapsed
18574
18575 \begin_layout Plain Layout
18576 Caption:Standard
18577 \end_layout
18578
18579 \end_inset
18580
18581 ,
18582  
18583 \begin_inset Flex Code
18584 status collapsed
18585
18586 \begin_layout Plain Layout
18587 ERT
18588 \end_layout
18589
18590 \end_inset
18591
18592 ,
18593  
18594 \begin_inset Flex Code
18595 status collapsed
18596
18597 \begin_layout Plain Layout
18598 Figure
18599 \end_layout
18600
18601 \end_inset
18602
18603 ,
18604  
18605 \begin_inset Flex Code
18606 status collapsed
18607
18608 \begin_layout Plain Layout
18609 Foot
18610 \end_layout
18611
18612 \end_inset
18613
18614 ,
18615  
18616 \begin_inset Flex Code
18617 status collapsed
18618
18619 \begin_layout Plain Layout
18620 Index
18621 \end_layout
18622
18623 \end_inset
18624
18625 ,
18626  
18627 \begin_inset Flex Code
18628 status collapsed
18629
18630 \begin_layout Plain Layout
18631 Info
18632 \end_layout
18633
18634 \end_inset
18635
18636 ,
18637  
18638 \begin_inset Flex Code
18639 status collapsed
18640
18641 \begin_layout Plain Layout
18642 Info:menu
18643 \end_layout
18644
18645 \end_inset
18646
18647 ,
18648  
18649 \begin_inset Flex Code
18650 status collapsed
18651
18652 \begin_layout Plain Layout
18653 Info:shortcut
18654 \end_layout
18655
18656 \end_inset
18657
18658 ,
18659  
18660 \begin_inset Flex Code
18661 status collapsed
18662
18663 \begin_layout Plain Layout
18664 Info:shortcuts
18665 \end_layout
18666
18667 \end_inset
18668
18669 ,
18670  
18671 \begin_inset Flex Code
18672 status collapsed
18673
18674 \begin_layout Plain Layout
18675 Listings
18676 \end_layout
18677
18678 \end_inset
18679
18680 ,
18681  
18682 \begin_inset Flex Code
18683 status collapsed
18684
18685 \begin_layout Plain Layout
18686 Marginal
18687 \end_layout
18688
18689 \end_inset
18690
18691 ,
18692  
18693 \begin_inset Flex Code
18694 status collapsed
18695
18696 \begin_layout Plain Layout
18697 Note:Comment
18698 \end_layout
18699
18700 \end_inset
18701
18702 ,
18703  
18704 \begin_inset Flex Code
18705 status collapsed
18706
18707 \begin_layout Plain Layout
18708 Note:Note
18709 \end_layout
18710
18711 \end_inset
18712
18713 ,
18714  
18715 \begin_inset Flex Code
18716 status collapsed
18717
18718 \begin_layout Plain Layout
18719 Note:Greyedout
18720 \end_layout
18721
18722 \end_inset
18723
18724 ,
18725  
18726 \begin_inset Flex Code
18727 status collapsed
18728
18729 \begin_layout Plain Layout
18730 Table
18731 \end_layout
18732
18733 \end_inset
18734
18735 ,
18736  or 
18737 \begin_inset Flex Code
18738 status collapsed
18739
18740 \begin_layout Plain Layout
18741 URL
18742 \end_layout
18743
18744 \end_inset
18745
18746 .
18747 \end_layout
18748
18749 \begin_layout Enumerate
18750 The layout for a Flex inset is being defined.
18751  In this case,
18752  
18753 \begin_inset Flex Code
18754 status collapsed
18755
18756 \begin_layout Plain Layout
18757 <Type>
18758 \end_layout
18759
18760 \end_inset
18761
18762  must be of the form 
18763 \begin_inset Quotes eld
18764 \end_inset
18765
18766
18767 \begin_inset Flex Code
18768 status collapsed
18769
18770 \begin_layout Plain Layout
18771 Flex:<name>
18772 \end_layout
18773
18774 \end_inset
18775
18776
18777 \begin_inset Quotes erd
18778 \end_inset
18779
18780 ,
18781  where 
18782 \begin_inset Flex Code
18783 status collapsed
18784
18785 \begin_layout Plain Layout
18786 name
18787 \end_layout
18788
18789 \end_inset
18790
18791  may be any valid identifier not used by a pre-existing Flex inset.
18792  The identifier may include spaces,
18793  but in that case the whole thing must be wrapped in quotes.
18794  Note that the definition of a flex inset 
18795 \emph on
18796 must 
18797 \emph default
18798 also include a 
18799 \begin_inset Flex Code
18800 status collapsed
18801
18802 \begin_layout Plain Layout
18803 LyXType
18804 \end_layout
18805
18806 \end_inset
18807
18808  entry,
18809  declaring which type of inset it defines.
18810 \end_layout
18811
18812 \begin_layout Enumerate
18813 The layout for user specific branch is being defined.
18814  In this case,
18815  
18816 \begin_inset Flex Code
18817 status collapsed
18818
18819 \begin_layout Plain Layout
18820 <Type>
18821 \end_layout
18822
18823 \end_inset
18824
18825  must be of the form 
18826 \begin_inset Quotes eld
18827 \end_inset
18828
18829
18830 \begin_inset Flex Code
18831 status collapsed
18832
18833 \begin_layout Plain Layout
18834 Branch:<name>
18835 \end_layout
18836
18837 \end_inset
18838
18839
18840 \begin_inset Quotes erd
18841 \end_inset
18842
18843 ,
18844  where 
18845 \begin_inset Flex Code
18846 status collapsed
18847
18848 \begin_layout Plain Layout
18849 name
18850 \end_layout
18851
18852 \end_inset
18853
18854  may be any valid identifier of branch defined in user's document.
18855  The identifier may include spaces,
18856  but in that case the whole thing must be wrapped in quotes.
18857  The main purpose of this feature is to allow \SpecialChar LaTeX
18858  wrapping around specific branches as user needs.
18859 \end_layout
18860
18861 \begin_layout Enumerate
18862 The layout of a user (or class) specific caption is being defined.
18863  In this case,
18864  
18865 \begin_inset Flex Code
18866 status collapsed
18867
18868 \begin_layout Plain Layout
18869 <Type>
18870 \end_layout
18871
18872 \end_inset
18873
18874  must be of the form 
18875 \begin_inset Quotes eld
18876 \end_inset
18877
18878
18879 \begin_inset Flex Code
18880 status collapsed
18881
18882 \begin_layout Plain Layout
18883 Caption:<name>
18884 \end_layout
18885
18886 \end_inset
18887
18888
18889 \begin_inset Quotes erd
18890 \end_inset
18891
18892 ,
18893  where 
18894 \begin_inset Flex Code
18895 status collapsed
18896
18897 \begin_layout Plain Layout
18898 name
18899 \end_layout
18900
18901 \end_inset
18902
18903  specifies the name of the caption as it appears in the menu.
18904  Have a look at the standard caption (
18905 \begin_inset Flex Code
18906 status collapsed
18907
18908 \begin_layout Plain Layout
18909 Caption:Standard
18910 \end_layout
18911
18912 \end_inset
18913
18914 ),
18915  the specific captions of the KOMA-Script classes (
18916 \begin_inset Flex Code
18917 status collapsed
18918
18919 \begin_layout Plain Layout
18920 Caption:Above
18921 \end_layout
18922
18923 \end_inset
18924
18925 ,
18926  
18927 \begin_inset Flex Code
18928 status collapsed
18929
18930 \begin_layout Plain Layout
18931 Caption:Below
18932 \end_layout
18933
18934 \end_inset
18935
18936 ) or the module 
18937 \family sans
18938 Multilingual
18939 \begin_inset space ~
18940 \end_inset
18941
18942 Captions
18943 \begin_inset Newline linebreak
18944 \end_inset
18945
18946
18947 \family default
18948 (
18949 \begin_inset Flex Code
18950 status collapsed
18951
18952 \begin_layout Plain Layout
18953 Caption:Bicaption
18954 \end_layout
18955
18956 \end_inset
18957
18958 ) for applications.
18959 \end_layout
18960
18961 \begin_layout Standard
18962 The 
18963 \begin_inset Flex Code
18964 status collapsed
18965
18966 \begin_layout Plain Layout
18967 InsetLayout
18968 \end_layout
18969
18970 \end_inset
18971
18972  definition can contain the following entries:
18973 \end_layout
18974
18975 \begin_layout Description
18976 \begin_inset Flex Code
18977 status collapsed
18978
18979 \begin_layout Plain Layout
18980 AddToToc
18981 \end_layout
18982
18983 \end_inset
18984
18985  [
18986 \begin_inset Flex Code
18987 status collapsed
18988
18989 \begin_layout Plain Layout
18990 string
18991 \end_layout
18992
18993 \end_inset
18994
18995 =""] This inset will appear in the table of contents of the given type.
18996  An empty string disables.
18997  See also the OutlinerName and the IsTocCaption commands.
18998  This is only implemented for Flex insets.
18999  Default:
19000  disabled.
19001 \end_layout
19002
19003 \begin_layout Description
19004 \begin_inset Flex Code
19005 status collapsed
19006
19007 \begin_layout Plain Layout
19008 AllowedInInsets
19009 \end_layout
19010
19011 \end_inset
19012
19013  Includes a comma-separated list of insets to which this inset can be inserted.
19014  Must be ended by 
19015 \begin_inset Quotes eld
19016 \end_inset
19017
19018
19019 \begin_inset Flex Code
19020 status collapsed
19021
19022 \begin_layout Plain Layout
19023 EndAllowedInInsets
19024 \end_layout
19025
19026 \end_inset
19027
19028
19029 \begin_inset Quotes erd
19030 \end_inset
19031
19032 .
19033  If you you also want the insertion to be allowed in specific arguments of the target insets,
19034  append the argument name after @ (e.
19035 \begin_inset space \thinspace{}
19036 \end_inset
19037
19038 g.,
19039  
19040 \begin_inset Flex Code
19041 status collapsed
19042
19043 \begin_layout Plain Layout
19044 My_Inset@post:1
19045 \end_layout
19046
19047 \end_inset
19048
19049 ).
19050  Note that this currently only supports immediately containing insets (no deeper nesting).
19051  See also 
19052 \begin_inset Flex Code
19053 status collapsed
19054
19055 \begin_layout Plain Layout
19056 AllowedInLayouts
19057 \end_layout
19058
19059 \end_inset
19060
19061 .
19062 \end_layout
19063
19064 \begin_layout Description
19065 \begin_inset Flex Code
19066 status collapsed
19067
19068 \begin_layout Plain Layout
19069 AllowedInLayouts
19070 \end_layout
19071
19072 \end_inset
19073
19074  Includes a comma-separated list of layouts within which this inset can be inserted.
19075  Must be ended by 
19076 \begin_inset Quotes eld
19077 \end_inset
19078
19079
19080 \begin_inset Flex Code
19081 status collapsed
19082
19083 \begin_layout Plain Layout
19084 EndAllowedInLayouts
19085 \end_layout
19086
19087 \end_inset
19088
19089
19090 \begin_inset Quotes erd
19091 \end_inset
19092
19093 .
19094  Note that this currently only supports immediately containing layouts (no deeper nesting).
19095  See also 
19096 \begin_inset Flex Code
19097 status collapsed
19098
19099 \begin_layout Plain Layout
19100 AllowedInInsets
19101 \end_layout
19102
19103 \end_inset
19104
19105 .
19106 \end_layout
19107
19108 \begin_layout Description
19109 \begin_inset Flex Code
19110 status collapsed
19111
19112 \begin_layout Plain Layout
19113 AllowedOccurrences
19114 \end_layout
19115
19116 \end_inset
19117
19118  [
19119 \begin_inset Flex Code
19120 status collapsed
19121
19122 \begin_layout Plain Layout
19123 int
19124 \end_layout
19125
19126 \end_inset
19127
19128 ] If 
19129 \begin_inset Flex Code
19130 status collapsed
19131
19132 \begin_layout Plain Layout
19133 AllowedInInsets
19134 \end_layout
19135
19136 \end_inset
19137
19138  or 
19139 \begin_inset Flex Code
19140 status collapsed
19141
19142 \begin_layout Plain Layout
19143 AllowedInLayouts
19144 \end_layout
19145
19146 \end_inset
19147
19148  has been defined,
19149  this can be used to determine how many times the inset can be inserted to a given inset or the paragraph (group).
19150 \end_layout
19151
19152 \begin_layout Description
19153 \begin_inset Flex Code
19154 status collapsed
19155
19156 \begin_layout Plain Layout
19157 AllowedOccurrencesPerItem
19158 \end_layout
19159
19160 \end_inset
19161
19162  [
19163 \begin_inset Flex Code
19164 status collapsed
19165
19166 \begin_layout Plain Layout
19167
19168 \emph on
19169 0
19170 \end_layout
19171
19172 \end_inset
19173
19174 ,
19175 \begin_inset space \thinspace{}
19176 \end_inset
19177
19178
19179 \begin_inset Flex Code
19180 status collapsed
19181
19182 \begin_layout Plain Layout
19183 1
19184 \end_layout
19185
19186 \end_inset
19187
19188 ] If this is set to true,
19189  
19190 \begin_inset Flex Code
19191 status collapsed
19192
19193 \begin_layout Plain Layout
19194 AllowedOccurrences
19195 \end_layout
19196
19197 \end_inset
19198
19199  applies to single paragraphs if we are in a list-type environment (with 
19200 \begin_inset Flex Code
19201 status collapsed
19202
19203 \begin_layout Plain Layout
19204
19205 \backslash
19206 item
19207 \end_layout
19208
19209 \end_inset
19210
19211 s).
19212 \end_layout
19213
19214 \begin_layout Description
19215 \begin_inset Flex Code
19216 status collapsed
19217
19218 \begin_layout Plain Layout
19219 Argument
19220 \end_layout
19221
19222 \end_inset
19223
19224  [
19225 \begin_inset Flex Code
19226 status collapsed
19227
19228 \begin_layout Plain Layout
19229 int
19230 \end_layout
19231
19232 \end_inset
19233
19234 ] Defines argument number of a command\SpecialChar breakableslash
19235 environment associated with the current layout.
19236  The definition must end with 
19237 \begin_inset Flex Code
19238 status collapsed
19239
19240 \begin_layout Plain Layout
19241 EndArgument
19242 \end_layout
19243
19244 \end_inset
19245
19246 .
19247  See 
19248 \begin_inset CommandInset ref
19249 LatexCommand ref
19250 reference "subsec:Arguments"
19251 plural "false"
19252 caps "false"
19253 noprefix "false"
19254 nolink "false"
19255
19256 \end_inset
19257
19258  for more information.
19259 \end_layout
19260
19261 \begin_layout Description
19262 \begin_inset Flex Code
19263 status collapsed
19264
19265 \begin_layout Plain Layout
19266 BabelPreamble
19267 \end_layout
19268
19269 \end_inset
19270
19271  Preamble for changing language commands;
19272  see 
19273 \begin_inset CommandInset ref
19274 LatexCommand ref
19275 reference "subsec:I18n"
19276 nolink "false"
19277
19278 \end_inset
19279
19280 .
19281 \end_layout
19282
19283 \begin_layout Description
19284 \begin_inset Flex Code
19285 status collapsed
19286
19287 \begin_layout Plain Layout
19288 BgColor
19289 \end_layout
19290
19291 \end_inset
19292
19293  [
19294 \begin_inset Flex Code
19295 status collapsed
19296
19297 \begin_layout Plain Layout
19298 <name>
19299 \end_layout
19300
19301 \end_inset
19302
19303 ] The color for the inset's background.
19304  See 
19305 \begin_inset CommandInset ref
19306 LatexCommand ref
19307 reference "chap:Names-of-colors"
19308 nolink "false"
19309
19310 \end_inset
19311
19312  for a list of the available color names.
19313 \end_layout
19314
19315 \begin_layout Description
19316 \begin_inset Flex Code
19317 status collapsed
19318
19319 \begin_layout Plain Layout
19320 ContentAsLabel
19321 \end_layout
19322
19323 \end_inset
19324
19325  [
19326 \begin_inset Flex Code
19327 status collapsed
19328
19329 \begin_layout Plain Layout
19330
19331 \emph on
19332 0
19333 \end_layout
19334
19335 \end_inset
19336
19337 ,
19338 \begin_inset space \thinspace{}
19339 \end_inset
19340
19341
19342 \begin_inset Flex Code
19343 status collapsed
19344
19345 \begin_layout Plain Layout
19346 1
19347 \end_layout
19348
19349 \end_inset
19350
19351 ] Whether to use the content of the inset as the label,
19352  when the inset is closed.
19353  Default is false.
19354 \end_layout
19355
19356 \begin_layout Description
19357 \begin_inset Flex Code
19358 status collapsed
19359
19360 \begin_layout Plain Layout
19361 CopyStyle
19362 \end_layout
19363
19364 \end_inset
19365
19366  [
19367 \begin_inset Flex Code
19368 status collapsed
19369
19370 \begin_layout Plain Layout
19371 <type>
19372 \end_layout
19373
19374 \end_inset
19375
19376 ] As with paragraph styles,
19377  see 
19378 \begin_inset CommandInset ref
19379 LatexCommand ref
19380 reference "subsec:Paragraph-Styles"
19381 nolink "false"
19382
19383 \end_inset
19384
19385 .
19386  Note that you need to specify the complete type,
19387  e.
19388 \begin_inset space \thinspace{}
19389 \end_inset
19390
19391 g.
19392 \begin_inset space ~
19393 \end_inset
19394
19395
19396 \begin_inset Flex Code
19397 status collapsed
19398
19399 \begin_layout Plain Layout
19400 CopyStyle Flex:<name>
19401 \end_layout
19402
19403 \end_inset
19404
19405 .
19406 \end_layout
19407
19408 \begin_layout Description
19409 \begin_inset Flex Code
19410 status collapsed
19411
19412 \begin_layout Plain Layout
19413 CustomPars
19414 \end_layout
19415
19416 \end_inset
19417
19418  [
19419 \begin_inset Flex Code
19420 status collapsed
19421
19422 \begin_layout Plain Layout
19423
19424 \emph on
19425 0
19426 \end_layout
19427
19428 \end_inset
19429
19430 ,
19431 \begin_inset space \thinspace{}
19432 \end_inset
19433
19434
19435 \begin_inset Flex Code
19436 status collapsed
19437
19438 \begin_layout Plain Layout
19439 1
19440 \end_layout
19441
19442 \end_inset
19443
19444 ] Indicates whether the user may employ the Paragraph Settings dialog to customize the paragraph.
19445 \end_layout
19446
19447 \begin_layout Description
19448 \begin_inset Flex Code
19449 status collapsed
19450
19451 \begin_layout Plain Layout
19452 Decoration
19453 \end_layout
19454
19455 \end_inset
19456
19457  can be 
19458 \begin_inset Flex Code
19459 status collapsed
19460
19461 \begin_layout Plain Layout
19462 Classic
19463 \end_layout
19464
19465 \end_inset
19466
19467 ,
19468  
19469 \begin_inset Flex Code
19470 status collapsed
19471
19472 \begin_layout Plain Layout
19473 Minimalistic
19474 \end_layout
19475
19476 \end_inset
19477
19478 ,
19479  or 
19480 \begin_inset Flex Code
19481 status collapsed
19482
19483 \begin_layout Plain Layout
19484 Conglomerate
19485 \end_layout
19486
19487 \end_inset
19488
19489 ,
19490  describing the rendering style used for the inset's frame and buttons.
19491  Footnotes generally use 
19492 \begin_inset Flex Code
19493 status collapsed
19494
19495 \begin_layout Plain Layout
19496 Classic
19497 \end_layout
19498
19499 \end_inset
19500
19501 ,
19502  ERT insets generally 
19503 \begin_inset Flex Code
19504 status collapsed
19505
19506 \begin_layout Plain Layout
19507 Minimalistic
19508 \end_layout
19509
19510 \end_inset
19511
19512 ,
19513  and character styles 
19514 \begin_inset Flex Code
19515 status collapsed
19516
19517 \begin_layout Plain Layout
19518 Conglomerate
19519 \end_layout
19520
19521 \end_inset
19522
19523 .
19524 \end_layout
19525
19526 \begin_layout Description
19527 \begin_inset Flex Code
19528 status collapsed
19529
19530 \begin_layout Plain Layout
19531 Display
19532 \end_layout
19533
19534 \end_inset
19535
19536  [
19537 \begin_inset Flex Code
19538 status collapsed
19539
19540 \begin_layout Plain Layout
19541 0
19542 \end_layout
19543
19544 \end_inset
19545
19546 ,
19547 \emph on
19548
19549 \begin_inset space \thinspace{}
19550 \end_inset
19551
19552
19553 \emph default
19554
19555 \begin_inset Flex Code
19556 status collapsed
19557
19558 \begin_layout Plain Layout
19559
19560 \emph on
19561 1
19562 \end_layout
19563
19564 \end_inset
19565
19566 ] Only useful if 
19567 \begin_inset Flex Code
19568 status collapsed
19569
19570 \begin_layout Plain Layout
19571 LatexType
19572 \end_layout
19573
19574 \end_inset
19575
19576  is 
19577 \begin_inset Flex Code
19578 status collapsed
19579
19580 \begin_layout Plain Layout
19581 Environment
19582 \end_layout
19583
19584 \end_inset
19585
19586 .
19587  Indicates whether the environment will stand on its own in the output or will appear inline with the surrounding text.
19588  If set to false,
19589  it is supposed that the \SpecialChar LaTeX
19590  environment ignores white space (including one newline character) after the 
19591 \begin_inset Flex Code
19592 status collapsed
19593
19594 \begin_layout Plain Layout
19595
19596 \backslash
19597 begin{
19598 \emph on
19599 LatexName
19600 \emph default
19601 }
19602 \end_layout
19603
19604 \end_inset
19605
19606  and 
19607 \begin_inset Flex Code
19608 status collapsed
19609
19610 \begin_layout Plain Layout
19611
19612 \backslash
19613 end{
19614 \emph on
19615 LatexName
19616 \emph default
19617 }
19618 \end_layout
19619
19620 \end_inset
19621
19622  tags.
19623  Default is true.
19624 \end_layout
19625
19626 \begin_layout Description
19627 \begin_inset Flex Code
19628 status open
19629
19630 \begin_layout Plain Layout
19631 EditExternal
19632 \end_layout
19633
19634 \end_inset
19635
19636  [
19637 \emph on
19638 0
19639 \emph default
19640 ,1] Allow the contents of the inset to be edited externally (using whatever editor is defined for the document's output format).
19641 \end_layout
19642
19643 \begin_layout Description
19644 \begin_inset Flex Code
19645 status collapsed
19646
19647 \begin_layout Plain Layout
19648 End
19649 \end_layout
19650
19651 \end_inset
19652
19653  Required at the end of the 
19654 \begin_inset Flex Code
19655 status collapsed
19656
19657 \begin_layout Plain Layout
19658 InsetLayout
19659 \end_layout
19660
19661 \end_inset
19662
19663  declarations.
19664 \end_layout
19665
19666 \begin_layout Description
19667 \begin_inset Flex Code
19668 status collapsed
19669
19670 \begin_layout Plain Layout
19671 Font
19672 \end_layout
19673
19674 \end_inset
19675
19676  The font used for both the text body 
19677 \emph on
19678 and
19679 \emph default
19680  the label.
19681  See 
19682 \begin_inset CommandInset ref
19683 LatexCommand formatted
19684 reference "subsec:Font-description"
19685 nolink "false"
19686
19687 \end_inset
19688
19689 .
19690  Note that defining this font automatically defines the 
19691 \begin_inset Flex Code
19692 status collapsed
19693
19694 \begin_layout Plain Layout
19695 LabelFont
19696 \end_layout
19697
19698 \end_inset
19699
19700  to the same value,
19701  so define this first and define 
19702 \begin_inset Flex Code
19703 status collapsed
19704
19705 \begin_layout Plain Layout
19706 LabelFont
19707 \end_layout
19708
19709 \end_inset
19710
19711  later if you want them to be different.
19712 \end_layout
19713
19714 \begin_layout Description
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 FixedWidthPreambleEncoding
19720 \end_layout
19721
19722 \end_inset
19723
19724  [
19725 \begin_inset Flex Code
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729
19730 \emph on
19731 0
19732 \end_layout
19733
19734 \end_inset
19735
19736 ,
19737 \begin_inset space \thinspace{}
19738 \end_inset
19739
19740
19741 \begin_inset Flex Code
19742 status collapsed
19743
19744 \begin_layout Plain Layout
19745 1
19746 \end_layout
19747
19748 \end_inset
19749
19750 ] Force a fixed width encoding for the translated contents of 
19751 \begin_inset Flex Code
19752 status collapsed
19753
19754 \begin_layout Plain Layout
19755 BabelPreamble
19756 \end_layout
19757
19758 \end_inset
19759
19760  and 
19761 \begin_inset Flex Code
19762 status collapsed
19763
19764 \begin_layout Plain Layout
19765 LangPreamble
19766 \end_layout
19767
19768 \end_inset
19769
19770  code generated by this layout.
19771  This is needed for special \SpecialChar LaTeX
19772 -packages like 
19773 \family typewriter
19774 listings
19775 \family default
19776  that do not work with variable width encodings such as 
19777 \family sans
19778 utf8
19779 \family default
19780 .
19781  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19782  backends such as Xe\SpecialChar TeX
19783  or Lua\SpecialChar TeX
19784  are used.
19785 \end_layout
19786
19787 \begin_layout Description
19788 \begin_inset Flex Code
19789 status collapsed
19790
19791 \begin_layout Plain Layout
19792 ForceLocalFontSwitch
19793 \end_layout
19794
19795 \end_inset
19796
19797  [
19798 \begin_inset Flex Code
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802
19803 \emph on
19804 0
19805 \end_layout
19806
19807 \end_inset
19808
19809 ,
19810 \begin_inset space \thinspace{}
19811 \end_inset
19812
19813
19814 \begin_inset Flex Code
19815 status collapsed
19816
19817 \begin_layout Plain Layout
19818 1
19819 \end_layout
19820
19821 \end_inset
19822
19823 ] When using babel,
19824  always use a local font switch (
19825 \begin_inset Flex Code
19826 status collapsed
19827
19828 \begin_layout Plain Layout
19829
19830 \backslash
19831 foreignlanguage
19832 \end_layout
19833
19834 \end_inset
19835
19836 ),
19837  never a global one (such as 
19838 \begin_inset Flex Code
19839 status collapsed
19840
19841 \begin_layout Plain Layout
19842
19843 \backslash
19844 selectlanguage
19845 \end_layout
19846
19847 \end_inset
19848
19849 ).
19850 \end_layout
19851
19852 \begin_layout Description
19853 \begin_inset Flex Code
19854 status collapsed
19855
19856 \begin_layout Plain Layout
19857 ForceLTR
19858 \end_layout
19859
19860 \end_inset
19861
19862  [
19863 \begin_inset Flex Code
19864 status collapsed
19865
19866 \begin_layout Plain Layout
19867
19868 \emph on
19869 0
19870 \end_layout
19871
19872 \end_inset
19873
19874 ,
19875 \begin_inset space \thinspace{}
19876 \end_inset
19877
19878
19879 \begin_inset Flex Code
19880 status collapsed
19881
19882 \begin_layout Plain Layout
19883 1
19884 \end_layout
19885
19886 \end_inset
19887
19888 ] Force the 
19889 \begin_inset Quotes eld
19890 \end_inset
19891
19892 latex
19893 \begin_inset Quotes erd
19894 \end_inset
19895
19896  language,
19897  leading to Left-to-Right (Latin) output,
19898  e.
19899 \begin_inset space \thinspace{}
19900 \end_inset
19901
19902 g.
19903 \begin_inset space \space{}
19904 \end_inset
19905
19906 in \SpecialChar TeX
19907  code or URL.
19908  A kludge.
19909 \end_layout
19910
19911 \begin_layout Description
19912 \begin_inset Flex Code
19913 status collapsed
19914
19915 \begin_layout Plain Layout
19916 ForceOwnlines
19917 \end_layout
19918
19919 \end_inset
19920
19921  [
19922 \begin_inset Flex Code
19923 status collapsed
19924
19925 \begin_layout Plain Layout
19926
19927 \emph on
19928 0
19929 \end_layout
19930
19931 \end_inset
19932
19933 ,
19934 \begin_inset space \thinspace{}
19935 \end_inset
19936
19937
19938 \begin_inset Flex Code
19939 status collapsed
19940
19941 \begin_layout Plain Layout
19942 1
19943 \end_layout
19944
19945 \end_inset
19946
19947 ] Force a line break in the \SpecialChar LaTeX
19948  output before the inset starts and after the inset ends.
19949  This assures the inset itself is output on its own lines,
19950  for parsing purposes.
19951 \end_layout
19952
19953 \begin_layout Description
19954 \begin_inset Flex Code
19955 status collapsed
19956
19957 \begin_layout Plain Layout
19958 ForcePlain
19959 \end_layout
19960
19961 \end_inset
19962
19963  [
19964 \begin_inset Flex Code
19965 status collapsed
19966
19967 \begin_layout Plain Layout
19968
19969 \emph on
19970 0
19971 \end_layout
19972
19973 \end_inset
19974
19975 ,
19976 \begin_inset space \thinspace{}
19977 \end_inset
19978
19979
19980 \begin_inset Flex Code
19981 status collapsed
19982
19983 \begin_layout Plain Layout
19984 1
19985 \end_layout
19986
19987 \end_inset
19988
19989 ] Indicates whether the 
19990 \begin_inset Flex Code
19991 status collapsed
19992
19993 \begin_layout Plain Layout
19994 PlainLayout
19995 \end_layout
19996
19997 \end_inset
19998
19999  should be used or,
20000  instead,
20001  the user can change the paragraph style used in the inset.
20002  Default is false.
20003 \end_layout
20004
20005 \begin_layout Description
20006 \begin_inset Flex Code
20007 status collapsed
20008
20009 \begin_layout Plain Layout
20010 FreeSpacing
20011 \end_layout
20012
20013 \end_inset
20014
20015  [
20016 \begin_inset Flex Code
20017 status collapsed
20018
20019 \begin_layout Plain Layout
20020
20021 \emph on
20022 0
20023 \end_layout
20024
20025 \end_inset
20026
20027 ,
20028 \begin_inset space \thinspace{}
20029 \end_inset
20030
20031
20032 \begin_inset Flex Code
20033 status collapsed
20034
20035 \begin_layout Plain Layout
20036 1
20037 \end_layout
20038
20039 \end_inset
20040
20041 ] As with paragraph styles,
20042  see 
20043 \begin_inset CommandInset ref
20044 LatexCommand ref
20045 reference "subsec:Paragraph-Styles"
20046 nolink "false"
20047
20048 \end_inset
20049
20050 .
20051 \end_layout
20052
20053 \begin_layout Description
20054 \begin_inset Flex Code
20055 status collapsed
20056
20057 \begin_layout Plain Layout
20058 HTML*
20059 \end_layout
20060
20061 \end_inset
20062
20063  These tags control the XHTML output.
20064  See 
20065 \begin_inset CommandInset ref
20066 LatexCommand ref
20067 reference "sec:Tags-for-XHTML"
20068 nolink "false"
20069
20070 \end_inset
20071
20072 .
20073 \end_layout
20074
20075 \begin_layout Description
20076 \begin_inset Flex Code
20077 status collapsed
20078
20079 \begin_layout Plain Layout
20080 InheritFont
20081 \end_layout
20082
20083 \end_inset
20084
20085  [
20086 \begin_inset Flex Code
20087 status collapsed
20088
20089 \begin_layout Plain Layout
20090 0
20091 \end_layout
20092
20093 \end_inset
20094
20095 ,
20096 \begin_inset space \thinspace{}
20097 \end_inset
20098
20099
20100 \begin_inset Flex Code
20101 status collapsed
20102
20103 \begin_layout Plain Layout
20104
20105 \emph on
20106 1
20107 \end_layout
20108
20109 \end_inset
20110
20111 ] The font inside the inset is inherited from the parent for \SpecialChar LaTeX
20112  export if this parameter is 1,
20113  as well as on screen.
20114  Otherwise the document default font is used.
20115 \end_layout
20116
20117 \begin_layout Description
20118 \begin_inset Flex Code
20119 status collapsed
20120
20121 \begin_layout Plain Layout
20122 InToc
20123 \end_layout
20124
20125 \end_inset
20126
20127  [
20128 \begin_inset Flex Code
20129 status collapsed
20130
20131 \begin_layout Plain Layout
20132
20133 \emph on
20134 0
20135 \end_layout
20136
20137 \end_inset
20138
20139 ,
20140 \begin_inset space \thinspace{}
20141 \end_inset
20142
20143
20144 \begin_inset Flex Code
20145 status collapsed
20146
20147 \begin_layout Plain Layout
20148 1
20149 \end_layout
20150
20151 \end_inset
20152
20153 ] Whether to include the contents of this inset in the strings generated for the `Outline' pane for all table of contents,
20154  regardless of the AddToToc setting.
20155  One would not,
20156  for example,
20157  want the content of a footnote in a section header to be included in the TOC displayed in the outline,
20158  but one would normally want the content of a character style displayed.
20159  Default is false:
20160  not to include.
20161 \end_layout
20162
20163 \begin_layout Description
20164 \begin_inset Flex Code
20165 status collapsed
20166
20167 \begin_layout Plain Layout
20168 IsTocCaption
20169 \end_layout
20170
20171 \end_inset
20172
20173  [
20174 \begin_inset Flex Code
20175 status collapsed
20176
20177 \begin_layout Plain Layout
20178
20179 \emph on
20180 0
20181 \end_layout
20182
20183 \end_inset
20184
20185 ,
20186 \begin_inset space \thinspace{}
20187 \end_inset
20188
20189
20190 \begin_inset Flex Code
20191 status collapsed
20192
20193 \begin_layout Plain Layout
20194 1
20195 \end_layout
20196
20197 \end_inset
20198
20199 ] If this is set to 1 and AddToToc is enabled,
20200  the inset adds a summary of its contents in its item in the table of contents.
20201  Otherwise,
20202  only the label appears.
20203 \end_layout
20204
20205 \begin_layout Description
20206 \begin_inset Flex Code
20207 status collapsed
20208
20209 \begin_layout Plain Layout
20210 KeepEmpty
20211 \end_layout
20212
20213 \end_inset
20214
20215  [
20216 \emph on
20217
20218 \begin_inset Flex Code
20219 status collapsed
20220
20221 \begin_layout Plain Layout
20222 0
20223 \end_layout
20224
20225 \end_inset
20226
20227
20228 \emph default
20229 ,
20230 \begin_inset space \thinspace{}
20231 \end_inset
20232
20233
20234 \begin_inset Flex Code
20235 status collapsed
20236
20237 \begin_layout Plain Layout
20238 1
20239 \end_layout
20240
20241 \end_inset
20242
20243 ] As with paragraph styles,
20244  see 
20245 \begin_inset CommandInset ref
20246 LatexCommand ref
20247 reference "subsec:Paragraph-Styles"
20248 nolink "false"
20249
20250 \end_inset
20251
20252 .
20253 \end_layout
20254
20255 \begin_layout Description
20256 \begin_inset Flex Code
20257 status collapsed
20258
20259 \begin_layout Plain Layout
20260 LabelFont
20261 \end_layout
20262
20263 \end_inset
20264
20265  The font used for the label.
20266  See 
20267 \begin_inset CommandInset ref
20268 LatexCommand ref
20269 reference "subsec:Font-description"
20270 nolink "false"
20271
20272 \end_inset
20273
20274 .
20275  Note that this definition can never appear before 
20276 \begin_inset Flex Code
20277 status collapsed
20278
20279 \begin_layout Plain Layout
20280 Font
20281 \end_layout
20282
20283 \end_inset
20284
20285 ,
20286  lest it be ineffective.
20287 \end_layout
20288
20289 \begin_layout Description
20290 \begin_inset Flex Code
20291 status collapsed
20292
20293 \begin_layout Plain Layout
20294 LabelString
20295 \end_layout
20296
20297 \end_inset
20298
20299  [
20300 \begin_inset Flex Code
20301 status collapsed
20302
20303 \begin_layout Plain Layout
20304 string
20305 \end_layout
20306
20307 \end_inset
20308
20309 =
20310 \begin_inset Quotes erd
20311 \end_inset
20312
20313
20314 \begin_inset Quotes erd
20315 \end_inset
20316
20317 ] What will be displayed on the button or elsewhere as the inset label.
20318  Some inset types (
20319 \begin_inset Flex Code
20320 status collapsed
20321
20322 \begin_layout Plain Layout
20323 \SpecialChar TeX
20324  code
20325 \end_layout
20326
20327 \end_inset
20328
20329  and 
20330 \begin_inset Flex Code
20331 status collapsed
20332
20333 \begin_layout Plain Layout
20334 Branch
20335 \end_layout
20336
20337 \end_inset
20338
20339 ) modify this label on the fly.
20340 \end_layout
20341
20342 \begin_layout Description
20343 \begin_inset Flex Code
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347 LangPreamble
20348 \end_layout
20349
20350 \end_inset
20351
20352  Language dependent preamble;
20353  see 
20354 \begin_inset CommandInset ref
20355 LatexCommand ref
20356 reference "subsec:I18n"
20357 nolink "false"
20358
20359 \end_inset
20360
20361 .
20362 \end_layout
20363
20364 \begin_layout Description
20365 \begin_inset Flex Code
20366 status collapsed
20367
20368 \begin_layout Plain Layout
20369 LatexName
20370 \end_layout
20371
20372 \end_inset
20373
20374  [
20375 \begin_inset Flex Code
20376 status collapsed
20377
20378 \begin_layout Plain Layout
20379 <name>
20380 \end_layout
20381
20382 \end_inset
20383
20384 ] The name of the corresponding \SpecialChar LaTeX
20385  stuff.
20386  Either the environment or command name.
20387 \end_layout
20388
20389 \begin_layout Description
20390 \begin_inset Flex Code
20391 status collapsed
20392
20393 \begin_layout Plain Layout
20394 LatexParam
20395 \end_layout
20396
20397 \end_inset
20398
20399  [
20400 \begin_inset Flex Code
20401 status collapsed
20402
20403 \begin_layout Plain Layout
20404 <parameter>
20405 \end_layout
20406
20407 \end_inset
20408
20409 ] The optional parameter for the corresponding 
20410 \begin_inset Flex Code
20411 status collapsed
20412
20413 \begin_layout Plain Layout
20414 LatexName
20415 \end_layout
20416
20417 \end_inset
20418
20419  stuff,
20420  including possible bracket pairs like 
20421 \begin_inset Flex Code
20422 status collapsed
20423
20424 \begin_layout Plain Layout
20425 []
20426 \end_layout
20427
20428 \end_inset
20429
20430 .
20431  This parameter cannot be changed from within \SpecialChar LyX
20432  (use 
20433 \begin_inset Flex Code
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437 Argument
20438 \end_layout
20439
20440 \end_inset
20441
20442  for customizable parameters).
20443  It will be output as is after all \SpecialChar LaTeX
20444  
20445 \begin_inset Flex Code
20446 status collapsed
20447
20448 \begin_layout Plain Layout
20449 Argument
20450 \end_layout
20451
20452 \end_inset
20453
20454 s.
20455 \end_layout
20456
20457 \begin_layout Description
20458 \begin_inset Flex Code
20459 status collapsed
20460
20461 \begin_layout Plain Layout
20462 LatexType
20463 \end_layout
20464
20465 \end_inset
20466
20467  [
20468 \begin_inset Flex Code
20469 status collapsed
20470
20471 \begin_layout Plain Layout
20472 Command,
20473  Environment,
20474  None
20475 \end_layout
20476
20477 \end_inset
20478
20479 ] How the style should be translated into \SpecialChar LaTeX
20480 .
20481 \begin_inset Foot
20482 status collapsed
20483
20484 \begin_layout Plain Layout
20485 \begin_inset Flex Code
20486 status collapsed
20487
20488 \begin_layout Plain Layout
20489 LatexType
20490 \end_layout
20491
20492 \end_inset
20493
20494  is perhaps a bit misleading,
20495  since these rules apply to SGML classes too.
20496  Visit the SGML class files for specific examples.
20497 \end_layout
20498
20499 \end_inset
20500
20501
20502 \end_layout
20503
20504 \begin_deeper
20505 \begin_layout Description
20506 \begin_inset Flex Code
20507 status collapsed
20508
20509 \begin_layout Plain Layout
20510 None
20511 \end_layout
20512
20513 \end_inset
20514
20515  means nothing special
20516 \end_layout
20517
20518 \begin_layout Description
20519 \begin_inset Flex Code
20520 status collapsed
20521
20522 \begin_layout Plain Layout
20523 Command
20524 \end_layout
20525
20526 \end_inset
20527
20528  means 
20529 \begin_inset Flex Code
20530 status collapsed
20531
20532 \begin_layout Plain Layout
20533
20534 \backslash
20535
20536 \emph on
20537 LatexName
20538 \emph default
20539 {\SpecialChar ldots
20540 }
20541 \end_layout
20542
20543 \end_inset
20544
20545
20546 \end_layout
20547
20548 \begin_layout Description
20549 \begin_inset Flex Code
20550 status collapsed
20551
20552 \begin_layout Plain Layout
20553 Environment
20554 \end_layout
20555
20556 \end_inset
20557
20558  means 
20559 \begin_inset Flex Code
20560 status collapsed
20561
20562 \begin_layout Plain Layout
20563
20564 \backslash
20565 begin{
20566 \emph on
20567 LatexName
20568 \emph default
20569 }\SpecialChar ldots
20570
20571 \backslash
20572 end{
20573 \emph on
20574 LatexName
20575 \emph default
20576 }
20577 \end_layout
20578
20579 \end_inset
20580
20581
20582 \end_layout
20583
20584 \begin_layout Standard
20585 Putting the last few things together,
20586  the \SpecialChar LaTeX
20587  output will be either:
20588  
20589 \end_layout
20590
20591 \begin_layout LyX-Code
20592
20593 \backslash
20594 LatexName[LatexParam]{\SpecialChar ldots
20595 }
20596 \end_layout
20597
20598 \begin_layout Standard
20599 or:
20600  
20601 \end_layout
20602
20603 \begin_layout LyX-Code
20604
20605 \backslash
20606 begin{LatexName}[LatexParam] \SpecialChar ldots
20607  
20608 \backslash
20609 end{LatexName}
20610 \end_layout
20611
20612 \begin_layout Standard
20613 depending upon the \SpecialChar LaTeX
20614  type.
20615 \end_layout
20616
20617 \end_deeper
20618 \begin_layout Description
20619 \begin_inset Flex Code
20620 status collapsed
20621
20622 \begin_layout Plain Layout
20623 LeftDelim
20624 \end_layout
20625
20626 \end_inset
20627
20628  [
20629 \begin_inset Flex Code
20630 status collapsed
20631
20632 \begin_layout Plain Layout
20633 string
20634 \end_layout
20635
20636 \end_inset
20637
20638 ] A string that is put at the beginning of the layout content.
20639  A line break in the output can be indicated by 
20640 \begin_inset Flex Code
20641 status collapsed
20642
20643 \begin_layout Plain Layout
20644 <br/>
20645 \end_layout
20646
20647 \end_inset
20648
20649 .
20650 \end_layout
20651
20652 \begin_layout Description
20653 \begin_inset Flex Code
20654 status collapsed
20655
20656 \begin_layout Plain Layout
20657 LyxType
20658 \end_layout
20659
20660 \end_inset
20661
20662  Can be 
20663 \begin_inset Flex Code
20664 status collapsed
20665
20666 \begin_layout Plain Layout
20667 charstyle
20668 \end_layout
20669
20670 \end_inset
20671
20672 ,
20673  
20674 \begin_inset Flex Code
20675 status collapsed
20676
20677 \begin_layout Plain Layout
20678 custom
20679 \end_layout
20680
20681 \end_inset
20682
20683 ,
20684  or 
20685 \begin_inset Flex Code
20686 status collapsed
20687
20688 \begin_layout Plain Layout
20689 end
20690 \end_layout
20691
20692 \end_inset
20693
20694  (indicating a dummy definition ending definitions of charstyles,
20695  etc).
20696  This entry is required in and is only meaningful for Flex insets.
20697  Among other things,
20698  it determines on which menu this inset will appear.
20699  Setting 
20700 \begin_inset Flex Code
20701 status collapsed
20702
20703 \begin_layout Plain Layout
20704 LyxType
20705 \end_layout
20706
20707 \end_inset
20708
20709  to 
20710 \begin_inset Flex Code
20711 status collapsed
20712
20713 \begin_layout Plain Layout
20714 charstyle
20715 \end_layout
20716
20717 \end_inset
20718
20719  will automatically set 
20720 \begin_inset Flex Code
20721 status collapsed
20722
20723 \begin_layout Plain Layout
20724 MultiPar
20725 \end_layout
20726
20727 \end_inset
20728
20729  to false and 
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 ForcePlain
20735 \end_layout
20736
20737 \end_inset
20738
20739  to true.
20740  
20741 \begin_inset Flex Code
20742 status collapsed
20743
20744 \begin_layout Plain Layout
20745 MultiPar
20746 \end_layout
20747
20748 \end_inset
20749
20750  can be set to true,
20751  or 
20752 \begin_inset Flex Code
20753 status collapsed
20754
20755 \begin_layout Plain Layout
20756 ForcePlain
20757 \end_layout
20758
20759 \end_inset
20760
20761  to false,
20762  for 
20763 \begin_inset Flex Code
20764 status collapsed
20765
20766 \begin_layout Plain Layout
20767 charstyle
20768 \end_layout
20769
20770 \end_inset
20771
20772  insets by setting it 
20773 \emph on
20774 after
20775 \emph default
20776  you set the 
20777 \begin_inset Flex Code
20778 status collapsed
20779
20780 \begin_layout Plain Layout
20781 LyxType
20782 \end_layout
20783
20784 \end_inset
20785
20786 .
20787 \end_layout
20788
20789 \begin_layout Description
20790 \begin_inset Flex Code
20791 status collapsed
20792
20793 \begin_layout Plain Layout
20794 MenuString
20795 \end_layout
20796
20797 \end_inset
20798
20799  
20800 \begin_inset Flex Code
20801 status collapsed
20802
20803 \begin_layout Plain Layout
20804 [string]
20805 \end_layout
20806
20807 \end_inset
20808
20809  A dedicated string for the menu.
20810  You can define an accelerator by appending the respective character to the string,
20811  divided by 
20812 \begin_inset Quotes eld
20813 \end_inset
20814
20815 |
20816 \begin_inset Quotes erd
20817 \end_inset
20818
20819  (e.
20820 \begin_inset space \thinspace{}
20821 \end_inset
20822
20823 g.
20824 \begin_inset space \space{}
20825 \end_inset
20826
20827
20828 \begin_inset Quotes eld
20829 \end_inset
20830
20831
20832 \begin_inset Flex Code
20833 status collapsed
20834
20835 \begin_layout Plain Layout
20836 My Inset|M
20837 \end_layout
20838
20839 \end_inset
20840
20841
20842 \begin_inset Quotes erd
20843 \end_inset
20844
20845 ).
20846  This specification is optional.
20847  If it is not given the inset name as specified in the type declaration will be used instead for the menu.
20848 \end_layout
20849
20850 \begin_layout Description
20851 \begin_inset Flex Code
20852 status collapsed
20853
20854 \begin_layout Plain Layout
20855 MultiPar
20856 \end_layout
20857
20858 \end_inset
20859
20860  [
20861 \begin_inset Flex Code
20862 status collapsed
20863
20864 \begin_layout Plain Layout
20865
20866 \emph on
20867 0
20868 \end_layout
20869
20870 \end_inset
20871
20872 ,
20873 \begin_inset space \thinspace{}
20874 \end_inset
20875
20876
20877 \begin_inset Flex Code
20878 status collapsed
20879
20880 \begin_layout Plain Layout
20881 1
20882 \end_layout
20883
20884 \end_inset
20885
20886 ] Whether multiple paragraphs are permitted in this inset.
20887  This will also set 
20888 \begin_inset Flex Code
20889 status collapsed
20890
20891 \begin_layout Plain Layout
20892 CustomPars
20893 \end_layout
20894
20895 \end_inset
20896
20897  to the same value and 
20898 \begin_inset Flex Code
20899 status collapsed
20900
20901 \begin_layout Plain Layout
20902 ForcePlain
20903 \end_layout
20904
20905 \end_inset
20906
20907  to the opposite value.
20908  These can be reset to other values,
20909  if they are used 
20910 \emph on
20911 after
20912 \emph default
20913  
20914 \begin_inset Flex Code
20915 status collapsed
20916
20917 \begin_layout Plain Layout
20918 MultiPar
20919 \end_layout
20920
20921 \end_inset
20922
20923 .
20924  Default is true.
20925 \end_layout
20926
20927 \begin_layout Description
20928 \begin_inset Flex Code
20929 status collapsed
20930
20931 \begin_layout Plain Layout
20932 NeedProtect
20933 \end_layout
20934
20935 \end_inset
20936
20937  [
20938 \begin_inset Flex Code
20939 status collapsed
20940
20941 \begin_layout Plain Layout
20942
20943 \emph on
20944 0
20945 \end_layout
20946
20947 \end_inset
20948
20949 ,
20950 \begin_inset space \thinspace{}
20951 \end_inset
20952
20953
20954 \begin_inset Flex Code
20955 status collapsed
20956
20957 \begin_layout Plain Layout
20958 1
20959 \end_layout
20960
20961 \end_inset
20962
20963 ] Whether fragile commands in this inset should be 
20964 \begin_inset Flex Code
20965 status collapsed
20966
20967 \begin_layout Plain Layout
20968
20969 \backslash
20970 protect
20971 \end_layout
20972
20973 \end_inset
20974
20975 'ed.
20976  (Note:
20977  This is 
20978 \emph on
20979 not
20980 \emph default
20981  whether the command should itself be protected.) Default is false.
20982 \end_layout
20983
20984 \begin_layout Description
20985 \begin_inset Flex Code
20986 status collapsed
20987
20988 \begin_layout Plain Layout
20989 NeedCProtect
20990 \end_layout
20991
20992 \end_inset
20993
20994  [
20995 \change_inserted -712698321 1715685021
20996
20997 \begin_inset Flex Code
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001
21002 \change_inserted -712698321 1715685023
21003 -1
21004 \change_unchanged
21005
21006 \end_layout
21007
21008 \end_inset
21009
21010 ,
21011  
21012 \change_unchanged
21013
21014 \begin_inset Flex Code
21015 status collapsed
21016
21017 \begin_layout Plain Layout
21018
21019 \emph on
21020 0
21021 \end_layout
21022
21023 \end_inset
21024
21025 ,
21026 \begin_inset space \thinspace{}
21027 \end_inset
21028
21029
21030 \begin_inset Flex Code
21031 status collapsed
21032
21033 \begin_layout Plain Layout
21034 1
21035 \end_layout
21036
21037 \end_inset
21038
21039
21040 \change_deleted -712698321 1715685030
21041 This
21042 \change_inserted -712698321 1715685031
21043 Value 
21044 \begin_inset Flex Code
21045 status collapsed
21046
21047 \begin_layout Plain Layout
21048
21049 \change_inserted -712698321 1715685031
21050 1
21051 \change_unchanged
21052
21053 \end_layout
21054
21055 \end_inset
21056
21057
21058 \change_unchanged
21059  causes macros that contain this inset to be protected with 
21060 \begin_inset Flex Code
21061 status collapsed
21062
21063 \begin_layout Plain Layout
21064
21065 \backslash
21066 cprotect
21067 \end_layout
21068
21069 \end_inset
21070
21071  (cf.
21072  package 
21073 \family sans
21074 cprotect
21075 \family default
21076 ) if necessary and thus allows (some) verbatim stuff in macros.
21077  Default is false.
21078
21079 \change_inserted -712698321 1715685049
21080  With the default setting (value 
21081 \begin_inset Flex Code
21082 status collapsed
21083
21084 \begin_layout Plain Layout
21085
21086 \change_inserted -712698321 1715685008
21087 0
21088 \change_unchanged
21089
21090 \end_layout
21091
21092 \end_inset
21093
21094 ),
21095  
21096 \begin_inset Flex Code
21097 status collapsed
21098
21099 \begin_layout Plain Layout
21100
21101 \change_inserted -712698321 1715685008
21102
21103 \backslash
21104 cprotect
21105 \change_unchanged
21106
21107 \end_layout
21108
21109 \end_inset
21110
21111  is used if a nested element requires it.
21112  Value 
21113 \begin_inset Flex Code
21114 status collapsed
21115
21116 \begin_layout Plain Layout
21117
21118 \change_inserted -712698321 1715685008
21119 -1
21120 \change_unchanged
21121
21122 \end_layout
21123
21124 \end_inset
21125
21126  prevents any use of 
21127 \begin_inset Flex Code
21128 status collapsed
21129
21130 \begin_layout Plain Layout
21131
21132 \change_inserted -712698321 1715685008
21133
21134 \backslash
21135 cprotect
21136 \change_unchanged
21137
21138 \end_layout
21139
21140 \end_inset
21141
21142  within this inset,
21143  even if required by a nested element.
21144 \change_unchanged
21145
21146 \end_layout
21147
21148 \begin_layout Description
21149 \begin_inset Flex Code
21150 status collapsed
21151
21152 \begin_layout Plain Layout
21153 NeedMBoxProtect
21154 \end_layout
21155
21156 \end_inset
21157
21158  [
21159 \begin_inset Flex Code
21160 status collapsed
21161
21162 \begin_layout Plain Layout
21163
21164 \emph on
21165 0
21166 \end_layout
21167
21168 \end_inset
21169
21170 ,
21171 \begin_inset space \thinspace{}
21172 \end_inset
21173
21174
21175 \begin_inset Flex Code
21176 status collapsed
21177
21178 \begin_layout Plain Layout
21179 1
21180 \end_layout
21181
21182 \end_inset
21183
21184 ] Whether specific commands in this inset (such as 
21185 \begin_inset Flex Code
21186 status collapsed
21187
21188 \begin_layout Plain Layout
21189
21190 \backslash
21191 cite
21192 \end_layout
21193
21194 \end_inset
21195
21196  and 
21197 \begin_inset Flex Code
21198 status collapsed
21199
21200 \begin_layout Plain Layout
21201
21202 \backslash
21203 ref
21204 \end_layout
21205
21206 \end_inset
21207
21208 ) should be protected in an 
21209 \begin_inset Flex Code
21210 status collapsed
21211
21212 \begin_layout Plain Layout
21213
21214 \backslash
21215 mbox
21216 \end_layout
21217
21218 \end_inset
21219
21220 .
21221  This is particularly needed for insets that draw on 
21222 \family sans
21223 ulem
21224 \family default
21225  or 
21226 \family sans
21227 soul
21228 \family default
21229  commands which parse their content in complex ways.
21230  Default is false.
21231 \end_layout
21232
21233 \begin_layout Description
21234 \begin_inset Flex Code
21235 status collapsed
21236
21237 \begin_layout Plain Layout
21238 NewlineCmd
21239 \end_layout
21240
21241 \end_inset
21242
21243  
21244 \begin_inset Flex Code
21245 status collapsed
21246
21247 \begin_layout Plain Layout
21248 [string]
21249 \end_layout
21250
21251 \end_inset
21252
21253  Option to define a different command (from the default 
21254 \begin_inset Flex Code
21255 status collapsed
21256
21257 \begin_layout Plain Layout
21258
21259 \backslash
21260
21261 \backslash
21262
21263 \end_layout
21264
21265 \end_inset
21266
21267 ) to be used for line breaks.
21268  The initial backslash must not be specified.
21269 \end_layout
21270
21271 \begin_layout Description
21272 \begin_inset Flex Code
21273 status collapsed
21274
21275 \begin_layout Plain Layout
21276 NoInsetLayout
21277 \end_layout
21278
21279 \end_inset
21280
21281  [
21282 \begin_inset Flex Code
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286 <layout>
21287 \end_layout
21288
21289 \end_inset
21290
21291 ] Deletes an existing 
21292 \begin_inset Flex Code
21293 status collapsed
21294
21295 \begin_layout Plain Layout
21296 InsetLayout
21297 \end_layout
21298
21299 \end_inset
21300
21301 .
21302 \change_inserted -712698321 1715512954
21303
21304 \end_layout
21305
21306 \begin_layout Description
21307
21308 \change_inserted -712698321 1715512954
21309 \begin_inset Flex Code
21310 status collapsed
21311
21312 \begin_layout Plain Layout
21313
21314 \change_inserted -712698321 1715512954
21315 NoPassThruChars
21316 \change_unchanged
21317
21318 \end_layout
21319
21320 \end_inset
21321
21322  [
21323 \begin_inset Flex Code
21324 status collapsed
21325
21326 \begin_layout Plain Layout
21327
21328 \change_inserted -712698321 1715512954
21329 string
21330 \change_unchanged
21331
21332 \end_layout
21333
21334 \end_inset
21335
21336 ]
21337 \family typewriter
21338  
21339 \family default
21340 Defines individual characters that should 
21341 \emph on
21342 not
21343 \emph default
21344  be output in raw form (without special translations that \SpecialChar LaTeX
21345  would require),
21346  even if such handling is requested by an element in this layout.
21347  This tag can be used to overwrite 
21348 \begin_inset Quotes els
21349 \end_inset
21350
21351 PassThru
21352 \begin_inset Quotes ers
21353 \end_inset
21354
21355  conditions if they are unsuitable in a given context.
21356 \change_unchanged
21357
21358 \end_layout
21359
21360 \begin_layout Description
21361 \begin_inset Flex Code
21362 status collapsed
21363
21364 \begin_layout Plain Layout
21365 ObsoletedBy
21366 \end_layout
21367
21368 \end_inset
21369
21370  [
21371 \begin_inset Flex Code
21372 status collapsed
21373
21374 \begin_layout Plain Layout
21375 <layout>
21376 \end_layout
21377
21378 \end_inset
21379
21380 ] Name of an 
21381 \begin_inset Flex Code
21382 status collapsed
21383
21384 \begin_layout Plain Layout
21385 InsetLayout
21386 \end_layout
21387
21388 \end_inset
21389
21390  that has replaced this 
21391 \begin_inset Flex Code
21392 status collapsed
21393
21394 \begin_layout Plain Layout
21395 InsetLayout
21396 \end_layout
21397
21398 \end_inset
21399
21400 .
21401  This is used to rename an 
21402 \begin_inset Flex Code
21403 status collapsed
21404
21405 \begin_layout Plain Layout
21406 InsetLayout
21407 \end_layout
21408
21409 \end_inset
21410
21411 ,
21412  while keeping backward compatibility.
21413 \end_layout
21414
21415 \begin_layout Description
21416 \begin_inset Flex Code
21417 status collapsed
21418
21419 \begin_layout Plain Layout
21420 ParbreakIgnored
21421 \end_layout
21422
21423 \end_inset
21424
21425  [
21426 \begin_inset Flex Code
21427 status collapsed
21428
21429 \begin_layout Plain Layout
21430
21431 \emph on
21432 0
21433 \end_layout
21434
21435 \end_inset
21436
21437 ,
21438 \begin_inset space \thinspace{}
21439 \end_inset
21440
21441
21442 \begin_inset Flex Code
21443 status collapsed
21444
21445 \begin_layout Plain Layout
21446 1
21447 \end_layout
21448
21449 \end_inset
21450
21451 ] If this is set to 
21452 \begin_inset Flex Code
21453 status collapsed
21454
21455 \begin_layout Plain Layout
21456 1
21457 \end_layout
21458
21459 \end_inset
21460
21461 ,
21462  paragraph breaks will be ignored in the output.
21463  This might be useful for insets where the content should be alignable on different lines only in the \SpecialChar LyX
21464  workarea,
21465  without any effect in the output.
21466 \end_layout
21467
21468 \begin_layout Description
21469 \begin_inset Flex Code
21470 status collapsed
21471
21472 \begin_layout Plain Layout
21473 ParbreakIsNewline
21474 \end_layout
21475
21476 \end_inset
21477
21478  [
21479 \begin_inset Flex Code
21480 status collapsed
21481
21482 \begin_layout Plain Layout
21483
21484 \emph on
21485 0
21486 \end_layout
21487
21488 \end_inset
21489
21490 ,
21491 \begin_inset space \thinspace{}
21492 \end_inset
21493
21494
21495 \begin_inset Flex Code
21496 status collapsed
21497
21498 \begin_layout Plain Layout
21499 1
21500 \end_layout
21501
21502 \end_inset
21503
21504 ] As with paragraph styles,
21505  see 
21506 \begin_inset CommandInset ref
21507 LatexCommand ref
21508 reference "subsec:Paragraph-Styles"
21509 nolink "false"
21510
21511 \end_inset
21512
21513 .
21514  Default is false.
21515 \end_layout
21516
21517 \begin_layout Description
21518 \begin_inset Flex Code
21519 status collapsed
21520
21521 \begin_layout Plain Layout
21522 PassThru
21523 \end_layout
21524
21525 \end_inset
21526
21527  [
21528 \begin_inset Flex Code
21529 status collapsed
21530
21531 \begin_layout Plain Layout
21532
21533 \emph on
21534 0
21535 \end_layout
21536
21537 \end_inset
21538
21539 ,
21540 \begin_inset space \thinspace{}
21541 \end_inset
21542
21543
21544 \begin_inset Flex Code
21545 status collapsed
21546
21547 \begin_layout Plain Layout
21548 1
21549 \end_layout
21550
21551 \end_inset
21552
21553 ] As with paragraph styles,
21554  see 
21555 \begin_inset CommandInset ref
21556 LatexCommand ref
21557 reference "subsec:Paragraph-Styles"
21558 nolink "false"
21559
21560 \end_inset
21561
21562 .
21563  Default is false.
21564 \end_layout
21565
21566 \begin_layout Description
21567 \begin_inset Flex Code
21568 status collapsed
21569
21570 \begin_layout Plain Layout
21571 Preamble
21572 \end_layout
21573
21574 \end_inset
21575
21576  As with paragraph styles,
21577  see 
21578 \begin_inset CommandInset ref
21579 LatexCommand ref
21580 reference "subsec:Paragraph-Styles"
21581 nolink "false"
21582
21583 \end_inset
21584
21585 .
21586 \end_layout
21587
21588 \begin_layout Description
21589 \begin_inset Flex Code
21590 status collapsed
21591
21592 \begin_layout Plain Layout
21593 RefPrefix
21594 \end_layout
21595
21596 \end_inset
21597
21598  [
21599 \begin_inset Flex Code
21600 status collapsed
21601
21602 \begin_layout Plain Layout
21603 string
21604 \end_layout
21605
21606 \end_inset
21607
21608 ] The prefix to use when creating labels referring to insets of this type.
21609  This allows the use of formatted references.
21610 \end_layout
21611
21612 \begin_layout Description
21613 \begin_inset Flex Code
21614 status collapsed
21615
21616 \begin_layout Plain Layout
21617 Requires
21618 \end_layout
21619
21620 \end_inset
21621
21622  [
21623 \begin_inset Flex Code
21624 status collapsed
21625
21626 \begin_layout Plain Layout
21627 string
21628 \end_layout
21629
21630 \end_inset
21631
21632 ] As with paragraph styles,
21633  see 
21634 \begin_inset CommandInset ref
21635 LatexCommand ref
21636 reference "subsec:Paragraph-Styles"
21637 nolink "false"
21638
21639 \end_inset
21640
21641 .
21642 \end_layout
21643
21644 \begin_layout Description
21645 \begin_inset Flex Code
21646 status collapsed
21647
21648 \begin_layout Plain Layout
21649 ResetArgs
21650 \end_layout
21651
21652 \end_inset
21653
21654  [
21655 \begin_inset Flex Code
21656 status collapsed
21657
21658 \begin_layout Plain Layout
21659
21660 \emph on
21661 0
21662 \end_layout
21663
21664 \end_inset
21665
21666 ,
21667 \begin_inset space \thinspace{}
21668 \end_inset
21669
21670
21671 \begin_inset Flex Code
21672 status collapsed
21673
21674 \begin_layout Plain Layout
21675 1
21676 \end_layout
21677
21678 \end_inset
21679
21680 ] Resets the \SpecialChar LaTeX
21681  arguments of this layout (as defined via the 
21682 \begin_inset Flex Code
21683 status collapsed
21684
21685 \begin_layout Plain Layout
21686 Argument
21687 \end_layout
21688
21689 \end_inset
21690
21691  tag).
21692  This is useful if you have copied a style via 
21693 \begin_inset Flex Code
21694 status collapsed
21695
21696 \begin_layout Plain Layout
21697 CopyStyle
21698 \end_layout
21699
21700 \end_inset
21701
21702 ,
21703  but you do not want to inherit its (required and optional) arguments.
21704 \end_layout
21705
21706 \begin_layout Description
21707 \begin_inset Flex Code
21708 status collapsed
21709
21710 \begin_layout Plain Layout
21711 ResetsFont
21712 \end_layout
21713
21714 \end_inset
21715
21716  [
21717 \begin_inset Flex Code
21718 status collapsed
21719
21720 \begin_layout Plain Layout
21721
21722 \emph on
21723 0
21724 \end_layout
21725
21726 \end_inset
21727
21728 ,
21729 \begin_inset space \thinspace{}
21730 \end_inset
21731
21732
21733 \begin_inset Flex Code
21734 status collapsed
21735
21736 \begin_layout Plain Layout
21737 1
21738 \end_layout
21739
21740 \end_inset
21741
21742 ] If 
21743 \begin_inset Flex Code
21744 status collapsed
21745
21746 \begin_layout Plain Layout
21747 1
21748 \end_layout
21749
21750 \end_inset
21751
21752 ,
21753  font changes are redone inside the respective inset (in the output) even if the inset itself is in the context of this font changes (e.
21754 \begin_inset space \thinspace{}
21755 \end_inset
21756
21757 g.,
21758  
21759 \begin_inset Flex Code
21760 status collapsed
21761
21762 \begin_layout Plain Layout
21763
21764 \backslash
21765 textbf{Sourrounding text 
21766 \backslash
21767 myinset{
21768 \backslash
21769 textbf{content}}\SpecialChar ldots
21770 }
21771 \end_layout
21772
21773 \end_inset
21774
21775  rather than 
21776 \begin_inset Flex Code
21777 status collapsed
21778
21779 \begin_layout Plain Layout
21780
21781 \backslash
21782 textbf{Sourrounding text 
21783 \backslash
21784 myinset{content}\SpecialChar ldots
21785 }
21786 \end_layout
21787
21788 \end_inset
21789
21790 .
21791  Setting this makes sense for commands that internally reset font settings (e.
21792 \begin_inset space \thinspace{}
21793 \end_inset
21794
21795 g.,
21796  footnotes).
21797  Note that wrongly setting this might lead to unwanted result (e.
21798 \begin_inset space \thinspace{}
21799 \end_inset
21800
21801 g.,
21802  with 
21803 \begin_inset Flex Code
21804 status collapsed
21805
21806 \begin_layout Plain Layout
21807
21808 \backslash
21809 emph{Sourrounding text 
21810 \backslash
21811 myinset{
21812 \backslash
21813 emph{content}}\SpecialChar ldots
21814 }
21815 \end_layout
21816
21817 \end_inset
21818
21819 ,
21820  content is upright,
21821  as 
21822 \begin_inset Flex Code
21823 status collapsed
21824
21825 \begin_layout Plain Layout
21826
21827 \backslash
21828 emph
21829 \end_layout
21830
21831 \end_inset
21832
21833  toggles.
21834  Default is 
21835 \begin_inset Flex Code
21836 status collapsed
21837
21838 \begin_layout Plain Layout
21839 0
21840 \end_layout
21841
21842 \end_inset
21843
21844 :
21845  font changes are not redone inside the inset.
21846 \end_layout
21847
21848 \begin_layout Description
21849 \begin_inset Flex Code
21850 status collapsed
21851
21852 \begin_layout Plain Layout
21853 RightDelim
21854 \end_layout
21855
21856 \end_inset
21857
21858  [
21859 \begin_inset Flex Code
21860 status collapsed
21861
21862 \begin_layout Plain Layout
21863 string
21864 \end_layout
21865
21866 \end_inset
21867
21868 ] A string that is put at the end of the layout content.
21869  A line break in the output can be indicated by 
21870 \begin_inset Flex Code
21871 status collapsed
21872
21873 \begin_layout Plain Layout
21874 <br/>
21875 \end_layout
21876
21877 \end_inset
21878
21879 .
21880 \end_layout
21881
21882 \begin_layout Description
21883 \begin_inset Flex Code
21884 status collapsed
21885
21886 \begin_layout Plain Layout
21887 Spellcheck
21888 \end_layout
21889
21890 \end_inset
21891
21892  [
21893 \begin_inset Flex Code
21894 status collapsed
21895
21896 \begin_layout Plain Layout
21897 0
21898 \end_layout
21899
21900 \end_inset
21901
21902 ,
21903 \begin_inset space \thinspace{}
21904 \end_inset
21905
21906
21907 \begin_inset Flex Code
21908 status collapsed
21909
21910 \begin_layout Plain Layout
21911
21912 \emph on
21913 1
21914 \end_layout
21915
21916 \end_inset
21917
21918 ] Allow spell-checking the contents of this inset.
21919  Default is true.
21920 \end_layout
21921
21922 \begin_layout Subsection
21923 Arguments
21924 \begin_inset CommandInset label
21925 LatexCommand label
21926 name "subsec:Arguments"
21927
21928 \end_inset
21929
21930
21931 \end_layout
21932
21933 \begin_layout Standard
21934 Both paragraph styles and inset layouts allow for 
21935 \emph on
21936 arguments
21937 \emph default
21938  as well as the main content.
21939  This is especially useful for things like section headings and only makes sense with \SpecialChar LaTeX
21940 .
21941  Each (optional or required) argument of a command or environment—
21942 except for the required argument that is associated with the content—
21943 has a separate definition,
21944  where the number specifies the order of the arguments.
21945  The definition must end with 
21946 \begin_inset Flex Code
21947 status collapsed
21948
21949 \begin_layout Plain Layout
21950 EndArgument
21951 \end_layout
21952
21953 \end_inset
21954
21955 .
21956  So a command with two optional arguments looks like:
21957 \end_layout
21958
21959 \begin_layout Quote
21960
21961 \family typewriter
21962 Argument 1
21963 \end_layout
21964
21965 \begin_layout Quote
21966
21967 \family typewriter
21968 ...
21969 \end_layout
21970
21971 \begin_layout Quote
21972
21973 \family typewriter
21974 EndArgument
21975 \end_layout
21976
21977 \begin_layout Quote
21978
21979 \family typewriter
21980 Argument 2
21981 \end_layout
21982
21983 \begin_layout Quote
21984
21985 \family typewriter
21986 ...
21987 \end_layout
21988
21989 \begin_layout Quote
21990
21991 \family typewriter
21992 EndArgument
21993 \end_layout
21994
21995 \begin_layout Standard
21996 Inside the 
21997 \begin_inset Flex Code
21998 status collapsed
21999
22000 \begin_layout Plain Layout
22001 Argument
22002 \end_layout
22003
22004 \end_inset
22005
22006  definition,
22007  the following specifications are possible:
22008 \end_layout
22009
22010 \begin_layout Itemize
22011 \begin_inset Flex Code
22012 status collapsed
22013
22014 \begin_layout Plain Layout
22015 LabelString
22016 \end_layout
22017
22018 \end_inset
22019
22020  
22021 \begin_inset Flex Code
22022 status collapsed
22023
22024 \begin_layout Plain Layout
22025 [string]
22026 \end_layout
22027
22028 \end_inset
22029
22030  The string that will appear both in the menu (to insert this argument) and on the argument inset button (unless you also specify a separate 
22031 \begin_inset Flex Code
22032 status collapsed
22033
22034 \begin_layout Plain Layout
22035 MenuString
22036 \end_layout
22037
22038 \end_inset
22039
22040 ).
22041  For the menu,
22042  you can define an accelerator by appending the respective character to the string,
22043  divided by 
22044 \begin_inset Quotes eld
22045 \end_inset
22046
22047 |
22048 \begin_inset Quotes erd
22049 \end_inset
22050
22051  (e.
22052 \begin_inset space \thinspace{}
22053 \end_inset
22054
22055 g.
22056 \begin_inset space \space{}
22057 \end_inset
22058
22059
22060 \begin_inset Quotes eld
22061 \end_inset
22062
22063
22064 \begin_inset Flex Code
22065 status collapsed
22066
22067 \begin_layout Plain Layout
22068 Short Title|S
22069 \end_layout
22070
22071 \end_inset
22072
22073
22074 \begin_inset Quotes erd
22075 \end_inset
22076
22077 ).
22078 \end_layout
22079
22080 \begin_layout Itemize
22081 \begin_inset Flex Code
22082 status collapsed
22083
22084 \begin_layout Plain Layout
22085 MenuString
22086 \end_layout
22087
22088 \end_inset
22089
22090  
22091 \begin_inset Flex Code
22092 status collapsed
22093
22094 \begin_layout Plain Layout
22095 [string]
22096 \end_layout
22097
22098 \end_inset
22099
22100  A separate string for the menu.
22101  You can define an accelerator by appending the respective character to the string,
22102  divided by 
22103 \begin_inset Quotes eld
22104 \end_inset
22105
22106 |
22107 \begin_inset Quotes erd
22108 \end_inset
22109
22110  (e.
22111 \begin_inset space \thinspace{}
22112 \end_inset
22113
22114 g.
22115 \begin_inset space \space{}
22116 \end_inset
22117
22118
22119 \begin_inset Quotes eld
22120 \end_inset
22121
22122
22123 \begin_inset Flex Code
22124 status collapsed
22125
22126 \begin_layout Plain Layout
22127 Short Title|S
22128 \end_layout
22129
22130 \end_inset
22131
22132
22133 \begin_inset Quotes erd
22134 \end_inset
22135
22136 ).
22137  This specification is optional.
22138  If it is not given the 
22139 \begin_inset Flex Code
22140 status collapsed
22141
22142 \begin_layout Plain Layout
22143 LabelString
22144 \end_layout
22145
22146 \end_inset
22147
22148  will be used instead for the menu.
22149 \end_layout
22150
22151 \begin_layout Itemize
22152 \begin_inset Flex Code
22153 status collapsed
22154
22155 \begin_layout Plain Layout
22156 Tooltip
22157 \end_layout
22158
22159 \end_inset
22160
22161  
22162 \begin_inset Flex Code
22163 status collapsed
22164
22165 \begin_layout Plain Layout
22166 [string]
22167 \end_layout
22168
22169 \end_inset
22170
22171  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
22172 \end_layout
22173
22174 \begin_layout Itemize
22175 \begin_inset Flex Code
22176 status collapsed
22177
22178 \begin_layout Plain Layout
22179 Mandatory
22180 \end_layout
22181
22182 \end_inset
22183
22184  [
22185 \begin_inset Flex Code
22186 status collapsed
22187
22188 \begin_layout Plain Layout
22189
22190 \emph on
22191 0
22192 \end_layout
22193
22194 \end_inset
22195
22196 ,
22197 \begin_inset space \thinspace{}
22198 \end_inset
22199
22200
22201 \begin_inset Flex Code
22202 status collapsed
22203
22204 \begin_layout Plain Layout
22205 1
22206 \end_layout
22207
22208 \end_inset
22209
22210 ] Declare if this is a mandatory (1) or an optional (0) argument.
22211  Mandatory arguments will be output empty if not given,
22212  while optional arguments will not be output at all.
22213  By default,
22214  mandatory arguments are delimited by 
22215 \begin_inset Flex Code
22216 status collapsed
22217
22218 \begin_layout Plain Layout
22219 {...}
22220 \end_layout
22221
22222 \end_inset
22223
22224 ,
22225  while optional arguments are delimited by 
22226 \begin_inset Flex Code
22227 status collapsed
22228
22229 \begin_layout Plain Layout
22230 [...]
22231 \end_layout
22232
22233 \end_inset
22234
22235
22236 \end_layout
22237
22238 \begin_layout Itemize
22239 \begin_inset Flex Code
22240 status collapsed
22241
22242 \begin_layout Plain Layout
22243 NewlineCmd
22244 \end_layout
22245
22246 \end_inset
22247
22248  
22249 \begin_inset Flex Code
22250 status collapsed
22251
22252 \begin_layout Plain Layout
22253 [string]
22254 \end_layout
22255
22256 \end_inset
22257
22258  Option to define a different command (from the default 
22259 \begin_inset Flex Code
22260 status collapsed
22261
22262 \begin_layout Plain Layout
22263
22264 \backslash
22265
22266 \backslash
22267
22268 \end_layout
22269
22270 \end_inset
22271
22272 ) to be used for line breaks.
22273  The initial backslash must not be specified.
22274 \end_layout
22275
22276 \begin_layout Itemize
22277 \begin_inset Flex Code
22278 status collapsed
22279
22280 \begin_layout Plain Layout
22281 Requires
22282 \end_layout
22283
22284 \end_inset
22285
22286  
22287 \begin_inset Flex Code
22288 status collapsed
22289
22290 \begin_layout Plain Layout
22291 [int=0]
22292 \end_layout
22293
22294 \end_inset
22295
22296  defines another argument or arguments (by their number) which this argument requires to be output if it is itself output.
22297  E.
22298 \begin_inset space \thinspace{}
22299 \end_inset
22300
22301 g.,
22302  in \SpecialChar LaTeX
22303  commands,
22304  optional arguments often require previous optional arguments to be output (at least empty),
22305  as in 
22306 \begin_inset Flex Code
22307 status collapsed
22308
22309 \begin_layout Plain Layout
22310
22311 \backslash
22312 command[][argument]{text}
22313 \end_layout
22314
22315 \end_inset
22316
22317 .
22318  This can be achieved by the statement 
22319 \begin_inset Flex Code
22320 status collapsed
22321
22322 \begin_layout Plain Layout
22323 Requires 1
22324 \end_layout
22325
22326 \end_inset
22327
22328  within 
22329 \begin_inset Flex Code
22330 status collapsed
22331
22332 \begin_layout Plain Layout
22333 Argument 2
22334 \end_layout
22335
22336 \end_inset
22337
22338 .
22339  If multiple arguments are required,
22340  separate them by comma (e.g.,
22341  
22342 \begin_inset Flex Code
22343 status collapsed
22344
22345 \begin_layout Plain Layout
22346 Requires 1,2
22347 \end_layout
22348
22349 \end_inset
22350
22351 ).
22352 \end_layout
22353
22354 \begin_layout Itemize
22355 \begin_inset Flex Code
22356 status collapsed
22357
22358 \begin_layout Plain Layout
22359 LeftDelim
22360 \end_layout
22361
22362 \end_inset
22363
22364  
22365 \begin_inset Flex Code
22366 status collapsed
22367
22368 \begin_layout Plain Layout
22369 [string]
22370 \end_layout
22371
22372 \end_inset
22373
22374  defines a custom left delimiter (instead of 
22375 \begin_inset Flex Code
22376 status collapsed
22377
22378 \begin_layout Plain Layout
22379 {
22380 \end_layout
22381
22382 \end_inset
22383
22384  or 
22385 \begin_inset Flex Code
22386 status collapsed
22387
22388 \begin_layout Plain Layout
22389 [
22390 \end_layout
22391
22392 \end_inset
22393
22394 ).
22395  A line break in the output can be indicated by 
22396 \begin_inset Flex Code
22397 status collapsed
22398
22399 \begin_layout Plain Layout
22400 <br/>
22401 \end_layout
22402
22403 \end_inset
22404
22405 .
22406 \end_layout
22407
22408 \begin_layout Itemize
22409 \begin_inset Flex Code
22410 status collapsed
22411
22412 \begin_layout Plain Layout
22413 RightDelim
22414 \end_layout
22415
22416 \end_inset
22417
22418  
22419 \begin_inset Flex Code
22420 status collapsed
22421
22422 \begin_layout Plain Layout
22423 [string]
22424 \end_layout
22425
22426 \end_inset
22427
22428  defines a custom right delimiter (instead of 
22429 \begin_inset Flex Code
22430 status collapsed
22431
22432 \begin_layout Plain Layout
22433 }
22434 \end_layout
22435
22436 \end_inset
22437
22438  or 
22439 \begin_inset Flex Code
22440 status collapsed
22441
22442 \begin_layout Plain Layout
22443 ]
22444 \end_layout
22445
22446 \end_inset
22447
22448 ).
22449  A line break in the output can be indicated by 
22450 \begin_inset Flex Code
22451 status collapsed
22452
22453 \begin_layout Plain Layout
22454 <br/>
22455 \end_layout
22456
22457 \end_inset
22458
22459 .
22460 \end_layout
22461
22462 \begin_layout Itemize
22463 \begin_inset Flex Code
22464 status collapsed
22465
22466 \begin_layout Plain Layout
22467 DefaultArg
22468 \end_layout
22469
22470 \end_inset
22471
22472  
22473 \begin_inset Flex Code
22474 status collapsed
22475
22476 \begin_layout Plain Layout
22477 [string]
22478 \end_layout
22479
22480 \end_inset
22481
22482  defines an argument that is inserted if and only if no user-specified arguments were given,
22483  i.
22484 \begin_inset space \thinspace{}
22485 \end_inset
22486
22487 e.
22488 \begin_inset space \space{}
22489 \end_inset
22490
22491 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
22492  Multiple arguments need to be separated by comma.
22493 \end_layout
22494
22495 \begin_layout Itemize
22496 \begin_inset Flex Code
22497 status collapsed
22498
22499 \begin_layout Plain Layout
22500 PresetArg
22501 \end_layout
22502
22503 \end_inset
22504
22505  
22506 \begin_inset Flex Code
22507 status collapsed
22508
22509 \begin_layout Plain Layout
22510 [string]
22511 \end_layout
22512
22513 \end_inset
22514
22515  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
22516  Multiple arguments need to be separated by comma.
22517 \end_layout
22518
22519 \begin_layout Itemize
22520 \begin_inset Flex Code
22521 status collapsed
22522
22523 \begin_layout Plain Layout
22524 Font
22525 \end_layout
22526
22527 \end_inset
22528
22529  The font used for the argument content,
22530  see 
22531 \begin_inset CommandInset ref
22532 LatexCommand ref
22533 reference "subsec:Font-description"
22534 nolink "false"
22535
22536 \end_inset
22537
22538 .
22539 \end_layout
22540
22541 \begin_layout Itemize
22542 \begin_inset Flex Code
22543 status collapsed
22544
22545 \begin_layout Plain Layout
22546 FreeSpacing
22547 \end_layout
22548
22549 \end_inset
22550
22551  [
22552 \begin_inset Flex Code
22553 status collapsed
22554
22555 \begin_layout Plain Layout
22556
22557 \emph on
22558 0
22559 \end_layout
22560
22561 \end_inset
22562
22563 ,
22564 \begin_inset space \thinspace{}
22565 \end_inset
22566
22567
22568 \begin_inset Flex Code
22569 status collapsed
22570
22571 \begin_layout Plain Layout
22572 1
22573 \end_layout
22574
22575 \end_inset
22576
22577 ] As with paragraph styles,
22578  see 
22579 \begin_inset CommandInset ref
22580 LatexCommand ref
22581 reference "subsec:Paragraph-Styles"
22582 nolink "false"
22583
22584 \end_inset
22585
22586 .
22587 \end_layout
22588
22589 \begin_layout Itemize
22590 \begin_inset Flex Code
22591 status collapsed
22592
22593 \begin_layout Plain Layout
22594 LabelFont
22595 \end_layout
22596
22597 \end_inset
22598
22599  The font used for the label;
22600  see 
22601 \begin_inset CommandInset ref
22602 LatexCommand ref
22603 reference "subsec:Font-description"
22604 nolink "false"
22605
22606 \end_inset
22607
22608 .
22609 \end_layout
22610
22611 \begin_layout Itemize
22612 \begin_inset Flex Code
22613 status collapsed
22614
22615 \begin_layout Plain Layout
22616 Decoration
22617 \end_layout
22618
22619 \end_inset
22620
22621  [
22622 \begin_inset Flex Code
22623 status collapsed
22624
22625 \begin_layout Plain Layout
22626
22627 \emph on
22628 Classic
22629 \emph default
22630 ,
22631  Minimalistic,
22632  Conglomerate
22633 \end_layout
22634
22635 \end_inset
22636
22637 ] describes the rendering style used for the inset's frame and buttons.
22638 \end_layout
22639
22640 \begin_layout Itemize
22641 \begin_inset Flex Code
22642 status collapsed
22643
22644 \begin_layout Plain Layout
22645 AutoInsert
22646 \end_layout
22647
22648 \end_inset
22649
22650  
22651 \begin_inset Flex Code
22652 status collapsed
22653
22654 \begin_layout Plain Layout
22655 [int=0]
22656 \end_layout
22657
22658 \end_inset
22659
22660  If this is set to 
22661 \begin_inset Flex Code
22662 status collapsed
22663
22664 \begin_layout Plain Layout
22665 1
22666 \end_layout
22667
22668 \end_inset
22669
22670 ,
22671  this argument is automatically inserted when the respective style is selected.
22672 \end_layout
22673
22674 \begin_layout Itemize
22675 \begin_inset Flex Code
22676 status collapsed
22677
22678 \begin_layout Plain Layout
22679 InsertOnNewline
22680 \end_layout
22681
22682 \end_inset
22683
22684  
22685 \begin_inset Flex Code
22686 status collapsed
22687
22688 \begin_layout Plain Layout
22689 [int=0]
22690 \end_layout
22691
22692 \end_inset
22693
22694  If this is set to 
22695 \begin_inset Flex Code
22696 status collapsed
22697
22698 \begin_layout Plain Layout
22699 1
22700 \end_layout
22701
22702 \end_inset
22703
22704 ,
22705  this argument will be inserted on a new line with 
22706 \begin_inset Flex Code
22707 status collapsed
22708
22709 \begin_layout Plain Layout
22710 AutoInsert
22711 \end_layout
22712
22713 \end_inset
22714
22715  (only available within Flex insets).
22716 \end_layout
22717
22718 \begin_layout Itemize
22719 \begin_inset Flex Code
22720 status collapsed
22721
22722 \begin_layout Plain Layout
22723 InsertCotext
22724 \end_layout
22725
22726 \end_inset
22727
22728  
22729 \begin_inset Flex Code
22730 status collapsed
22731
22732 \begin_layout Plain Layout
22733 [int=0]
22734 \end_layout
22735
22736 \end_inset
22737
22738  If this is set to 
22739 \begin_inset Flex Code
22740 status collapsed
22741
22742 \begin_layout Plain Layout
22743 1
22744 \end_layout
22745
22746 \end_inset
22747
22748 ,
22749  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
22750 \end_layout
22751
22752 \begin_layout Itemize
22753 \begin_inset Flex Code
22754 status collapsed
22755
22756 \begin_layout Plain Layout
22757 PassThru
22758 \end_layout
22759
22760 \end_inset
22761
22762  [
22763 \begin_inset Flex Code
22764 status collapsed
22765
22766 \begin_layout Plain Layout
22767
22768 \emph on
22769 inherited
22770 \emph default
22771 ,
22772  true,
22773  false
22774 \end_layout
22775
22776 \end_inset
22777
22778 ] Whether the contents of this argument should be output in raw form,
22779  meaning without special translations that \SpecialChar LaTeX
22780  would require.
22781  By default,
22782  the 
22783 \begin_inset Flex Code
22784 status collapsed
22785
22786 \begin_layout Plain Layout
22787 PassThru
22788 \end_layout
22789
22790 \end_inset
22791
22792  status is inherited by the inset or paragraph layout the argument belongs to,
22793  true and false change the status for the given argument only.
22794 \end_layout
22795
22796 \begin_layout Itemize
22797 \begin_inset Flex Code
22798 status collapsed
22799
22800 \begin_layout Plain Layout
22801 PassThruChars
22802 \end_layout
22803
22804 \end_inset
22805
22806  [
22807 \begin_inset Flex Code
22808 status collapsed
22809
22810 \begin_layout Plain Layout
22811 string of characters
22812 \end_layout
22813
22814 \end_inset
22815
22816 ]
22817 \family typewriter
22818  
22819 \family default
22820 Defines individual characters
22821 \begin_inset Newline linebreak
22822 \end_inset
22823
22824 that should be output in raw form,
22825  meaning without special translations that \SpecialChar LaTeX
22826  would require.
22827  Note that,
22828  contrary to PassThru,
22829  this needs to be explicitly defined for arguments.
22830  That is,
22831  arguments do not inherit PassThruChars from their parent inset or layout.
22832 \end_layout
22833
22834 \begin_layout Itemize
22835 \begin_inset Flex Code
22836 status collapsed
22837
22838 \begin_layout Plain Layout
22839 IsTocCaption
22840 \end_layout
22841
22842 \end_inset
22843
22844  [
22845 \begin_inset Flex Code
22846 status collapsed
22847
22848 \begin_layout Plain Layout
22849
22850 \emph on
22851 0
22852 \end_layout
22853
22854 \end_inset
22855
22856 ,
22857 \begin_inset space \thinspace{}
22858 \end_inset
22859
22860
22861 \begin_inset Flex Code
22862 status collapsed
22863
22864 \begin_layout Plain Layout
22865 1
22866 \end_layout
22867
22868 \end_inset
22869
22870 ] If this is set to 1,
22871  the argument will output its content in the corresponding item in the table of contents.
22872  See AddToToc.
22873 \end_layout
22874
22875 \begin_layout Standard
22876 By default,
22877  the text entered in the \SpecialChar LyX
22878  workarea in the respective layout is the last (mandatory) argument of a command if the 
22879 \begin_inset Flex Code
22880 status collapsed
22881
22882 \begin_layout Plain Layout
22883 LatexType
22884 \end_layout
22885
22886 \end_inset
22887
22888  is 
22889 \begin_inset Flex Code
22890 status collapsed
22891
22892 \begin_layout Plain Layout
22893 Command
22894 \end_layout
22895
22896 \end_inset
22897
22898 .
22899  However,
22900  arguments with the prefix 
22901 \begin_inset Flex Code
22902 status collapsed
22903
22904 \begin_layout Plain Layout
22905 post:
22906 \end_layout
22907
22908 \end_inset
22909
22910  are output after this workarea argument.
22911  Note that post-argument numbering restarts at 1,
22912  so the first argument following the workarea argument is 
22913 \begin_inset Flex Code
22914 status collapsed
22915
22916 \begin_layout Plain Layout
22917 post:1
22918 \end_layout
22919
22920 \end_inset
22921
22922 .
22923  Post-arguments are ignored in any other 
22924 \begin_inset Flex Code
22925 status collapsed
22926
22927 \begin_layout Plain Layout
22928 LatexType
22929 \end_layout
22930
22931 \end_inset
22932
22933  than 
22934 \begin_inset Flex Code
22935 status collapsed
22936
22937 \begin_layout Plain Layout
22938 Command
22939 \end_layout
22940
22941 \end_inset
22942
22943 .
22944 \end_layout
22945
22946 \begin_layout Standard
22947 Arguments for list 
22948 \begin_inset Flex Code
22949 status collapsed
22950
22951 \begin_layout Plain Layout
22952
22953 \backslash
22954 item
22955 \end_layout
22956
22957 \end_inset
22958
22959 s (as in 
22960 \begin_inset Flex Code
22961 status collapsed
22962
22963 \begin_layout Plain Layout
22964
22965 \backslash
22966 item[foo]
22967 \end_layout
22968
22969 \end_inset
22970
22971 ) have the prefix 
22972 \begin_inset Flex Code
22973 status collapsed
22974
22975 \begin_layout Plain Layout
22976 item:
22977 \end_layout
22978
22979 \end_inset
22980
22981  followed by the number (e.
22982 \begin_inset space \thinspace{}
22983 \end_inset
22984
22985 g.
22986 \begin_inset space \space{}
22987 \end_inset
22988
22989
22990 \begin_inset Flex Code
22991 status collapsed
22992
22993 \begin_layout Plain Layout
22994 Argument item:1
22995 \end_layout
22996
22997 \end_inset
22998
22999 ).
23000 \end_layout
23001
23002 \begin_layout Standard
23003 Finally,
23004  there is a special argument type with the prefix 
23005 \begin_inset Flex Code
23006 status collapsed
23007
23008 \begin_layout Plain Layout
23009 listpreamble:
23010 \end_layout
23011
23012 \end_inset
23013
23014 .
23015  It is not really an argument,
23016  but uses the argument interface (thus,
23017  the prefix is also followed by a number,
23018  e.
23019 \begin_inset space \thinspace{}
23020 \end_inset
23021
23022 g.
23023  
23024 \begin_inset Flex Code
23025 status collapsed
23026
23027 \begin_layout Plain Layout
23028 Argument listpreamble:1
23029 \end_layout
23030
23031 \end_inset
23032
23033 ).
23034  As the name implies,
23035  it is targeted at lists such as 
23036 \family sans
23037 Itemize
23038 \family default
23039 ,
23040  
23041 \family sans
23042 Enumerate
23043 \family default
23044 ,
23045  
23046 \family sans
23047 Description
23048 \family default
23049 ,
23050  or 
23051 \family sans
23052 Bibliography
23053 \family default
23054 .
23055  Its content will be output at the list start,
23056  before the first 
23057 \begin_inset Flex Code
23058 status collapsed
23059
23060 \begin_layout Plain Layout
23061
23062 \backslash
23063 item
23064 \end_layout
23065
23066 \end_inset
23067
23068 ,
23069  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
23070 ).
23071  This way,
23072  users can insert redefinitions (of lengths etc.) to individual lists.
23073  By default,
23074  these arguments do not have a delimiter.
23075 \end_layout
23076
23077 \begin_layout Subsection
23078 Counters
23079 \begin_inset CommandInset label
23080 LatexCommand label
23081 name "subsec:Counters"
23082
23083 \end_inset
23084
23085
23086 \end_layout
23087
23088 \begin_layout Standard
23089 It is necessary to define the counters (
23090 \begin_inset Flex Noun
23091 status collapsed
23092
23093 \begin_layout Plain Layout
23094 chapter
23095 \end_layout
23096
23097 \end_inset
23098
23099 ,
23100  
23101 \begin_inset Flex Noun
23102 status collapsed
23103
23104 \begin_layout Plain Layout
23105 figure
23106 \end_layout
23107
23108 \end_inset
23109
23110 ,
23111  \SpecialChar ldots
23112 ) in the text class itself.
23113  The standard counters are defined in the file 
23114 \begin_inset Flex Code
23115 status collapsed
23116
23117 \begin_layout Plain Layout
23118 stdcounters.inc
23119 \end_layout
23120
23121 \end_inset
23122
23123 ,
23124  so you may have to do no more than add
23125 \end_layout
23126
23127 \begin_layout LyX-Code
23128 Input stdcounters.inc
23129 \end_layout
23130
23131 \begin_layout Standard
23132 to your layout file to get them to work.
23133  But if you want to define custom counters,
23134  then you can do so.
23135  The counter declaration must begin with:
23136 \end_layout
23137
23138 \begin_layout LyX-Code
23139 Counter CounterName
23140 \end_layout
23141
23142 \begin_layout Standard
23143 where of course `
23144 \begin_inset Flex Code
23145 status collapsed
23146
23147 \begin_layout Plain Layout
23148 CounterName
23149 \end_layout
23150
23151 \end_inset
23152
23153 ' is replaced by the name of the counter.
23154  And it must end with 
23155 \begin_inset Quotes eld
23156 \end_inset
23157
23158
23159 \begin_inset Flex Code
23160 status collapsed
23161
23162 \begin_layout Plain Layout
23163 End
23164 \end_layout
23165
23166 \end_inset
23167
23168
23169 \begin_inset Quotes erd
23170 \end_inset
23171
23172 .
23173  The following parameters can also be used:
23174 \end_layout
23175
23176 \begin_layout Description
23177 \begin_inset Flex Code
23178 status collapsed
23179
23180 \begin_layout Plain Layout
23181 InitialValue
23182 \end_layout
23183
23184 \end_inset
23185
23186  [
23187 \begin_inset Flex Code
23188 status collapsed
23189
23190 \begin_layout Plain Layout
23191 int=1
23192 \end_layout
23193
23194 \end_inset
23195
23196 ] Sets the initial value for the counter,
23197  to which it will be reset whenever that happens.
23198  Normally,
23199  one will want the default,
23200  1.
23201 \end_layout
23202
23203 \begin_layout Description
23204 \begin_inset Flex Code
23205 status collapsed
23206
23207 \begin_layout Plain Layout
23208 LabelString
23209 \end_layout
23210
23211 \end_inset
23212
23213  [
23214 \begin_inset Flex Code
23215 status collapsed
23216
23217 \begin_layout Plain Layout
23218 string
23219 \end_layout
23220
23221 \end_inset
23222
23223 =
23224 \begin_inset Quotes erd
23225 \end_inset
23226
23227
23228 \begin_inset Quotes erd
23229 \end_inset
23230
23231 ] When defined,
23232  this string defines how the counter is displayed.
23233  Setting this value sets 
23234 \begin_inset Flex Code
23235 status collapsed
23236
23237 \begin_layout Plain Layout
23238 LabelStringAppendix
23239 \end_layout
23240
23241 \end_inset
23242
23243  to the same value.
23244  The following special constructs can be used in the string:
23245 \end_layout
23246
23247 \begin_deeper
23248 \begin_layout Itemize
23249 \begin_inset Flex Code
23250 status collapsed
23251
23252 \begin_layout Plain Layout
23253
23254 \backslash
23255 thecounter
23256 \end_layout
23257
23258 \end_inset
23259
23260  will be replaced by the expansion of the 
23261 \begin_inset Flex Code
23262 status collapsed
23263
23264 \begin_layout Plain Layout
23265 LabelString
23266 \end_layout
23267
23268 \end_inset
23269
23270  (or 
23271 \begin_inset Flex Code
23272 status collapsed
23273
23274 \begin_layout Plain Layout
23275 LabelStringAppendix
23276 \end_layout
23277
23278 \end_inset
23279
23280 ) of the counter 
23281 \begin_inset Flex Code
23282 status collapsed
23283
23284 \begin_layout Plain Layout
23285 counter
23286 \end_layout
23287
23288 \end_inset
23289
23290 .
23291  
23292 \end_layout
23293
23294 \begin_layout Itemize
23295 counter values can be expressed using \SpecialChar LaTeX
23296 -like macros
23297 \begin_inset Newline newline
23298 \end_inset
23299
23300
23301 \begin_inset Flex Code
23302 status collapsed
23303
23304 \begin_layout Plain Layout
23305
23306 \backslash
23307
23308 \emph on
23309 numbertype
23310 \emph default
23311 {
23312 \emph on
23313 counter
23314 \emph default
23315 }
23316 \end_layout
23317
23318 \end_inset
23319
23320 ,
23321  where 
23322 \begin_inset Flex Code
23323 status collapsed
23324
23325 \begin_layout Plain Layout
23326
23327 \emph on
23328 numbertype
23329 \end_layout
23330
23331 \end_inset
23332
23333  can be:
23334 \begin_inset Foot
23335 status collapsed
23336
23337 \begin_layout Plain Layout
23338
23339 \family roman
23340 \series medium
23341 \shape up
23342 \size normal
23343 \emph off
23344 \bar no
23345 \noun off
23346 \color none
23347 Actually,
23348  the situation is a bit more complicated:
23349  any
23350 \family default
23351 \series default
23352 \shape default
23353 \emph default
23354 \bar default
23355  
23356 \size default
23357 \emph on
23358 \noun default
23359 \color inherit
23360 numbertype
23361 \family roman
23362 \series medium
23363 \shape up
23364 \size normal
23365 \emph off
23366 \bar no
23367 \noun off
23368  other than those described below will produce arabic numerals.
23369  It would not be surprising to see this change in the future.
23370 \end_layout
23371
23372 \end_inset
23373
23374  
23375 \begin_inset Flex Code
23376 status collapsed
23377
23378 \begin_layout Plain Layout
23379 arabic
23380 \end_layout
23381
23382 \end_inset
23383
23384 :
23385  1,
23386  2,
23387  3,\SpecialChar ldots
23388 ;
23389  
23390 \begin_inset Flex Code
23391 status collapsed
23392
23393 \begin_layout Plain Layout
23394 alph
23395 \end_layout
23396
23397 \end_inset
23398
23399  for lower-case letters:
23400  a,
23401  b,
23402  c,
23403  \SpecialChar ldots
23404 ;
23405  
23406 \begin_inset Flex Code
23407 status collapsed
23408
23409 \begin_layout Plain Layout
23410 Alph
23411 \end_layout
23412
23413 \end_inset
23414
23415  for upper-case letters:
23416  A,
23417  B,
23418  C,
23419  \SpecialChar ldots
23420 ;
23421  
23422 \begin_inset Flex Code
23423 status collapsed
23424
23425 \begin_layout Plain Layout
23426 roman
23427 \end_layout
23428
23429 \end_inset
23430
23431  for lower-case roman numerals:
23432  i,
23433  ii,
23434  iii,
23435  \SpecialChar ldots
23436 ;
23437  
23438 \begin_inset Flex Code
23439 status collapsed
23440
23441 \begin_layout Plain Layout
23442 Roman
23443 \end_layout
23444
23445 \end_inset
23446
23447  for upper-case roman numerals:
23448  I,
23449  II,
23450  III\SpecialChar ldots
23451 ;
23452  
23453 \begin_inset Flex Code
23454 status collapsed
23455
23456 \begin_layout Plain Layout
23457 hebrew
23458 \end_layout
23459
23460 \end_inset
23461
23462  for hebrew numerals.
23463 \end_layout
23464
23465 \end_deeper
23466 \begin_layout Standard
23467 If LabelString is not defined,
23468  a default value is constructed as follows:
23469  if the counter has a parent counter 
23470 \begin_inset Flex Code
23471 status collapsed
23472
23473 \begin_layout Plain Layout
23474 parent
23475 \end_layout
23476
23477 \end_inset
23478
23479  (defined via 
23480 \begin_inset Flex Code
23481 status collapsed
23482
23483 \begin_layout Plain Layout
23484 Within
23485 \end_layout
23486
23487 \end_inset
23488
23489 ),
23490  the string
23491 \begin_inset Newline newline
23492 \end_inset
23493
23494
23495 \begin_inset Flex Code
23496 status collapsed
23497
23498 \begin_layout Plain Layout
23499
23500 \backslash
23501 theparent.
23502 \backslash
23503 arabic{counter}
23504 \end_layout
23505
23506 \end_inset
23507
23508  is used;
23509  otherwise the string 
23510 \begin_inset Flex Code
23511 status collapsed
23512
23513 \begin_layout Plain Layout
23514
23515 \backslash
23516 arabic{counter}
23517 \end_layout
23518
23519 \end_inset
23520
23521  is used.
23522 \end_layout
23523
23524 \begin_layout Description
23525 \begin_inset Flex Code
23526 status collapsed
23527
23528 \begin_layout Plain Layout
23529 LabelStringAppendix
23530 \end_layout
23531
23532 \end_inset
23533
23534  [
23535 \begin_inset Flex Code
23536 status collapsed
23537
23538 \begin_layout Plain Layout
23539 string
23540 \end_layout
23541
23542 \end_inset
23543
23544
23545 \begin_inset Quotes eld
23546 \end_inset
23547
23548
23549 \begin_inset Quotes erd
23550 \end_inset
23551
23552 ] Same as 
23553 \begin_inset Flex Code
23554 status collapsed
23555
23556 \begin_layout Plain Layout
23557 LabelString
23558 \end_layout
23559
23560 \end_inset
23561
23562 ,
23563  but for use in the Appendix.
23564 \end_layout
23565
23566 \begin_layout Description
23567 \begin_inset Flex Code
23568 status open
23569
23570 \begin_layout Plain Layout
23571 LaTeXName
23572 \end_layout
23573
23574 \end_inset
23575
23576  [
23577 \begin_inset Flex Code
23578 status open
23579
23580 \begin_layout Plain Layout
23581 string
23582 \end_layout
23583
23584 \end_inset
23585
23586  = 
23587 \begin_inset Quotes eld
23588 \end_inset
23589
23590
23591 \begin_inset Quotes erd
23592 \end_inset
23593
23594 ] The counter name as used in \SpecialChar LaTeX
23595 .
23596  (e.g.,
23597  in \SpecialChar LyX
23598 ,
23599  there is a counter named `theorem',
23600  but it is output to \SpecialChar LaTeX
23601  as `thm'.)
23602 \end_layout
23603
23604 \begin_layout Description
23605 \begin_inset Flex Code
23606 status collapsed
23607
23608 \begin_layout Plain Layout
23609 PrettyFormat
23610 \end_layout
23611
23612 \end_inset
23613
23614  [
23615 \begin_inset Flex Code
23616 status collapsed
23617
23618 \begin_layout Plain Layout
23619 string
23620 \end_layout
23621
23622 \end_inset
23623
23624 =
23625 \begin_inset Quotes erd
23626 \end_inset
23627
23628
23629 \begin_inset Quotes erd
23630 \end_inset
23631
23632 ] A format for use with formatted references to this counter.
23633  For example,
23634  one might want to have references to section numbers appear as 
23635 \begin_inset Quotes eld
23636 \end_inset
23637
23638 Section 2.4
23639 \begin_inset Quotes erd
23640 \end_inset
23641
23642 .
23643  The string may contain 
23644 \begin_inset Quotes eld
23645 \end_inset
23646
23647 ##
23648 \begin_inset Quotes erd
23649 \end_inset
23650
23651  or a counter specification as in 
23652 \begin_inset Flex Code
23653 status open
23654
23655 \begin_layout Plain Layout
23656 LabelString
23657 \end_layout
23658
23659 \end_inset
23660
23661 .
23662  The former will be replaced by the counter number itself.
23663  So,
23664  for sections,
23665  it would be:
23666  Section ##,
23667  or perhaps:
23668  
23669 \begin_inset Flex Code
23670 status open
23671
23672 \begin_layout Plain Layout
23673
23674 \backslash
23675 S
23676 \backslash
23677 arabic{section}
23678 \end_layout
23679
23680 \end_inset
23681
23682  (which might render as §2.7).
23683 \end_layout
23684
23685 \begin_layout Description
23686 \begin_inset Flex Code
23687 status collapsed
23688
23689 \begin_layout Plain Layout
23690 RefFormat
23691 \end_layout
23692
23693 \end_inset
23694
23695  [
23696 \begin_inset Flex Code
23697 status collapsed
23698
23699 \begin_layout Plain Layout
23700 string
23701 \end_layout
23702
23703 \end_inset
23704
23705 ,
23706  
23707 \begin_inset Flex Code
23708 status collapsed
23709
23710 \begin_layout Plain Layout
23711 string
23712 \end_layout
23713
23714 \end_inset
23715
23716 ] For use with `formatted references',
23717  specifically when a single counter is used with multiple sorts of styles.
23718  For example,
23719  the 
23720 \begin_inset Flex Code
23721 status open
23722
23723 \begin_layout Plain Layout
23724 theorem
23725 \end_layout
23726
23727 \end_inset
23728
23729  counter is often used for all sorts of theorem-like environments:
23730  Theorem,
23731  Lemma,
23732  etc.
23733  The first argument gives a prefix used in the labels (e.g.,
23734  
23735 \begin_inset Quotes eld
23736 \end_inset
23737
23738 thm
23739 \begin_inset Quotes erd
23740 \end_inset
23741
23742  or 
23743 \begin_inset Quotes eld
23744 \end_inset
23745
23746 lem
23747 \begin_inset Quotes erd
23748 \end_inset
23749
23750 ),
23751  and the second a formatting string,
23752  as for 
23753 \begin_inset Flex Code
23754 status open
23755
23756 \begin_layout Plain Layout
23757 LabelString
23758 \end_layout
23759
23760 \end_inset
23761
23762  or 
23763 \begin_inset Flex Code
23764 status open
23765
23766 \begin_layout Plain Layout
23767 PrettyFormat
23768 \end_layout
23769
23770 \end_inset
23771
23772 .
23773  If this is not given,
23774  then 
23775 \begin_inset Flex Code
23776 status open
23777
23778 \begin_layout Plain Layout
23779 PrettyFormat
23780 \end_layout
23781
23782 \end_inset
23783
23784  is used.
23785 \end_layout
23786
23787 \begin_layout Description
23788 \begin_inset Flex Code
23789 status collapsed
23790
23791 \begin_layout Plain Layout
23792 Within
23793 \end_layout
23794
23795 \end_inset
23796
23797  [
23798 \begin_inset Flex Code
23799 status collapsed
23800
23801 \begin_layout Plain Layout
23802 string
23803 \end_layout
23804
23805 \end_inset
23806
23807 =
23808 \begin_inset Quotes erd
23809 \end_inset
23810
23811
23812 \begin_inset Quotes erd
23813 \end_inset
23814
23815 ] If this is set to the name of another counter,
23816  the present counter will be reset every time the other one is increased.
23817  For example,
23818  
23819 \begin_inset Flex Code
23820 status collapsed
23821
23822 \begin_layout Plain Layout
23823 subsection
23824 \end_layout
23825
23826 \end_inset
23827
23828  is numbered inside 
23829 \begin_inset Flex Code
23830 status collapsed
23831
23832 \begin_layout Plain Layout
23833 section
23834 \end_layout
23835
23836 \end_inset
23837
23838 .
23839 \end_layout
23840
23841 \begin_layout Subsection
23842 Font description
23843 \begin_inset CommandInset label
23844 LatexCommand label
23845 name "subsec:Font-description"
23846
23847 \end_inset
23848
23849
23850 \end_layout
23851
23852 \begin_layout Standard
23853 A font description looks like this:
23854 \end_layout
23855
23856 \begin_layout LyX-Code
23857 Font 
23858 \family roman
23859 \emph on
23860 or
23861 \family default
23862 \emph default
23863  LabelFont
23864 \emph on
23865  
23866 \family roman
23867 or
23868 \family default
23869 \emph default
23870  DefaultFont
23871 \end_layout
23872
23873 \begin_layout LyX-Code
23874  ...
23875 \end_layout
23876
23877 \begin_layout LyX-Code
23878 EndFont
23879 \end_layout
23880
23881 \begin_layout Standard
23882 The following commands are available:
23883 \end_layout
23884
23885 \begin_layout Description
23886 \begin_inset Flex Code
23887 status collapsed
23888
23889 \begin_layout Plain Layout
23890 Color
23891 \end_layout
23892
23893 \end_inset
23894
23895  [
23896 \begin_inset Flex Code
23897 status collapsed
23898
23899 \begin_layout Plain Layout
23900 string
23901 \end_layout
23902
23903 \end_inset
23904
23905 ] See appendix
23906 \begin_inset space ~
23907 \end_inset
23908
23909
23910 \begin_inset CommandInset ref
23911 LatexCommand ref
23912 reference "chap:Names-of-colors"
23913 plural "false"
23914 caps "false"
23915 noprefix "false"
23916 nolink "false"
23917
23918 \end_inset
23919
23920  for valid arguments.
23921 \end_layout
23922
23923 \begin_layout Description
23924 \begin_inset Flex Code
23925 status collapsed
23926
23927 \begin_layout Plain Layout
23928 Family
23929 \end_layout
23930
23931 \end_inset
23932
23933  [
23934 \begin_inset Flex Code
23935 status collapsed
23936
23937 \begin_layout Plain Layout
23938
23939 \emph on
23940 Roman
23941 \end_layout
23942
23943 \end_inset
23944
23945 ,
23946  
23947 \begin_inset Flex Code
23948 status collapsed
23949
23950 \begin_layout Plain Layout
23951 Sans
23952 \end_layout
23953
23954 \end_inset
23955
23956 ,
23957  
23958 \begin_inset Flex Code
23959 status collapsed
23960
23961 \begin_layout Plain Layout
23962 Typewriter
23963 \end_layout
23964
23965 \end_inset
23966
23967 ]
23968 \end_layout
23969
23970 \begin_layout Description
23971 \begin_inset Flex Code
23972 status collapsed
23973
23974 \begin_layout Plain Layout
23975 Misc
23976 \end_layout
23977
23978 \end_inset
23979
23980  [
23981 \begin_inset Flex Code
23982 status collapsed
23983
23984 \begin_layout Plain Layout
23985 string
23986 \end_layout
23987
23988 \end_inset
23989
23990 ] Valid arguments are:
23991  
23992 \begin_inset Flex Code
23993 status collapsed
23994
23995 \begin_layout Plain Layout
23996 emph
23997 \end_layout
23998
23999 \end_inset
24000
24001 ,
24002  
24003 \begin_inset Flex Code
24004 status collapsed
24005
24006 \begin_layout Plain Layout
24007 noun
24008 \end_layout
24009
24010 \end_inset
24011
24012 ,
24013  
24014 \begin_inset Flex Code
24015 status collapsed
24016
24017 \begin_layout Plain Layout
24018 strikeout
24019 \end_layout
24020
24021 \end_inset
24022
24023 ,
24024  
24025 \begin_inset Flex Code
24026 status collapsed
24027
24028 \begin_layout Plain Layout
24029 underbar
24030 \end_layout
24031
24032 \end_inset
24033
24034 ,
24035  
24036 \begin_inset Flex Code
24037 status collapsed
24038
24039 \begin_layout Plain Layout
24040 uuline
24041 \end_layout
24042
24043 \end_inset
24044
24045 ,
24046  
24047 \begin_inset Flex Code
24048 status collapsed
24049
24050 \begin_layout Plain Layout
24051 uwave
24052 \end_layout
24053
24054 \end_inset
24055
24056 ,
24057  
24058 \begin_inset Flex Code
24059 status collapsed
24060
24061 \begin_layout Plain Layout
24062 no_emph
24063 \end_layout
24064
24065 \end_inset
24066
24067 ,
24068  
24069 \begin_inset Flex Code
24070 status collapsed
24071
24072 \begin_layout Plain Layout
24073 no_noun
24074 \end_layout
24075
24076 \end_inset
24077
24078 ,
24079  
24080 \begin_inset Flex Code
24081 status collapsed
24082
24083 \begin_layout Plain Layout
24084 no_strikeout
24085 \end_layout
24086
24087 \end_inset
24088
24089 ,
24090  
24091 \begin_inset Flex Code
24092 status collapsed
24093
24094 \begin_layout Plain Layout
24095 no_bar
24096 \end_layout
24097
24098 \end_inset
24099
24100 ,
24101  
24102 \begin_inset Flex Code
24103 status collapsed
24104
24105 \begin_layout Plain Layout
24106 no_uuline
24107 \end_layout
24108
24109 \end_inset
24110
24111  and 
24112 \begin_inset Flex Code
24113 status collapsed
24114
24115 \begin_layout Plain Layout
24116 no_uwave
24117 \end_layout
24118
24119 \end_inset
24120
24121 .
24122  Each of these turns on or off the corresponding attribute.
24123  For example,
24124  
24125 \begin_inset Flex Code
24126 status collapsed
24127
24128 \begin_layout Plain Layout
24129 emph
24130 \end_layout
24131
24132 \end_inset
24133
24134  turns on emphasis,
24135  and 
24136 \begin_inset Flex Code
24137 status collapsed
24138
24139 \begin_layout Plain Layout
24140 no_emph
24141 \end_layout
24142
24143 \end_inset
24144
24145  turns it off.
24146  
24147 \begin_inset Newline newline
24148 \end_inset
24149
24150 If the latter seems puzzling,
24151  remember that the font settings for the present context are generally inherited from the surrounding context.
24152  So 
24153 \begin_inset Flex Code
24154 status collapsed
24155
24156 \begin_layout Plain Layout
24157 no_emph
24158 \end_layout
24159
24160 \end_inset
24161
24162  would turn off the emphasis that was anyway in effect,
24163  say,
24164  in a theorem environment.
24165 \end_layout
24166
24167 \begin_layout Description
24168 \begin_inset Flex Code
24169 status collapsed
24170
24171 \begin_layout Plain Layout
24172 Series
24173 \end_layout
24174
24175 \end_inset
24176
24177  [
24178 \begin_inset Flex Code
24179 status collapsed
24180
24181 \begin_layout Plain Layout
24182
24183 \emph on
24184 Medium
24185 \end_layout
24186
24187 \end_inset
24188
24189 ,
24190  
24191 \begin_inset Flex Code
24192 status collapsed
24193
24194 \begin_layout Plain Layout
24195 Bold
24196 \end_layout
24197
24198 \end_inset
24199
24200
24201 \end_layout
24202
24203 \begin_layout Description
24204 \begin_inset Flex Code
24205 status collapsed
24206
24207 \begin_layout Plain Layout
24208 Shape
24209 \end_layout
24210
24211 \end_inset
24212
24213  [
24214 \begin_inset Flex Code
24215 status collapsed
24216
24217 \begin_layout Plain Layout
24218
24219 \emph on
24220 Up
24221 \end_layout
24222
24223 \end_inset
24224
24225 ,
24226  
24227 \begin_inset Flex Code
24228 status collapsed
24229
24230 \begin_layout Plain Layout
24231 Italic
24232 \end_layout
24233
24234 \end_inset
24235
24236 ,
24237  
24238 \begin_inset Flex Code
24239 status collapsed
24240
24241 \begin_layout Plain Layout
24242 SmallCaps
24243 \end_layout
24244
24245 \end_inset
24246
24247 ,
24248  
24249 \begin_inset Flex Code
24250 status collapsed
24251
24252 \begin_layout Plain Layout
24253 Slanted
24254 \end_layout
24255
24256 \end_inset
24257
24258
24259 \end_layout
24260
24261 \begin_layout Description
24262 \begin_inset Flex Code
24263 status collapsed
24264
24265 \begin_layout Plain Layout
24266 Size
24267 \end_layout
24268
24269 \end_inset
24270
24271  [
24272 \begin_inset Flex Code
24273 status collapsed
24274
24275 \begin_layout Plain Layout
24276 tiny
24277 \end_layout
24278
24279 \end_inset
24280
24281 ,
24282  
24283 \begin_inset Flex Code
24284 status collapsed
24285
24286 \begin_layout Plain Layout
24287 small
24288 \end_layout
24289
24290 \end_inset
24291
24292 ,
24293  
24294 \begin_inset Flex Code
24295 status collapsed
24296
24297 \begin_layout Plain Layout
24298
24299 \emph on
24300 normal
24301 \end_layout
24302
24303 \end_inset
24304
24305 ,
24306  
24307 \begin_inset Flex Code
24308 status collapsed
24309
24310 \begin_layout Plain Layout
24311 large
24312 \end_layout
24313
24314 \end_inset
24315
24316 ,
24317  
24318 \begin_inset Flex Code
24319 status collapsed
24320
24321 \begin_layout Plain Layout
24322 larger
24323 \end_layout
24324
24325 \end_inset
24326
24327 ,
24328  
24329 \begin_inset Flex Code
24330 status collapsed
24331
24332 \begin_layout Plain Layout
24333 largest
24334 \end_layout
24335
24336 \end_inset
24337
24338 ,
24339  
24340 \begin_inset Flex Code
24341 status collapsed
24342
24343 \begin_layout Plain Layout
24344 huge
24345 \end_layout
24346
24347 \end_inset
24348
24349 ,
24350  
24351 \begin_inset Flex Code
24352 status collapsed
24353
24354 \begin_layout Plain Layout
24355 giant
24356 \end_layout
24357
24358 \end_inset
24359
24360 ]
24361 \end_layout
24362
24363 \begin_layout Subsection
24364 \begin_inset CommandInset label
24365 LatexCommand label
24366 name "subsec:Citation-engine-description"
24367
24368 \end_inset
24369
24370 Cite engine description
24371 \end_layout
24372
24373 \begin_layout Standard
24374 The 
24375 \begin_inset Flex Code
24376 status collapsed
24377
24378 \begin_layout Plain Layout
24379 CiteEngine
24380 \end_layout
24381
24382 \end_inset
24383
24384  blocks,
24385  as used mainly in cite engine files (see 
24386 \begin_inset CommandInset ref
24387 LatexCommand ref
24388 reference "subsec:Cite-Engine-Files"
24389 plural "false"
24390 caps "false"
24391 noprefix "false"
24392 nolink "false"
24393
24394 \end_inset
24395
24396 ),
24397  define the citation commands provided by a specific 
24398 \begin_inset Quotes eld
24399 \end_inset
24400
24401 cite engine
24402 \begin_inset Quotes erd
24403 \end_inset
24404
24405 .
24406  A cite engine,
24407  in \SpecialChar LyX
24408  terms,
24409  is way specific way to format citations,
24410  using numbers,
24411  author names and/or years.
24412  Currently,
24413  \SpecialChar LyX
24414  supports three such engine types,
24415  namely:
24416 \end_layout
24417
24418 \begin_layout Enumerate
24419 \begin_inset Flex Code
24420 status collapsed
24421
24422 \begin_layout Plain Layout
24423 default
24424 \end_layout
24425
24426 \end_inset
24427
24428 :
24429  the default Bib\SpecialChar TeX
24430  way to format citations,
24431  a simple numeric style (e.
24432 \begin_inset space \thinspace{}
24433 \end_inset
24434
24435 g.,
24436  
24437 \begin_inset Quotes eld
24438 \end_inset
24439
24440 [1]
24441 \begin_inset Quotes erd
24442 \end_inset
24443
24444 )
24445 \end_layout
24446
24447 \begin_layout Enumerate
24448 \begin_inset Flex Code
24449 status collapsed
24450
24451 \begin_layout Plain Layout
24452 authoryear
24453 \end_layout
24454
24455 \end_inset
24456
24457 :
24458  Harvard-styled citations using author names and publication year (e.
24459 \begin_inset space \thinspace{}
24460 \end_inset
24461
24462 g.,
24463  
24464 \begin_inset Quotes eld
24465 \end_inset
24466
24467 Smith and Miller (2017b)
24468 \begin_inset Quotes erd
24469 \end_inset
24470
24471 )
24472 \end_layout
24473
24474 \begin_layout Enumerate
24475 \begin_inset Flex Code
24476 status collapsed
24477
24478 \begin_layout Plain Layout
24479 numerical
24480 \end_layout
24481
24482 \end_inset
24483
24484 :
24485  extended numerical citations that also allow for author or title next to the number (e.
24486 \begin_inset space \thinspace{}
24487 \end_inset
24488
24489 g.,
24490  
24491 \begin_inset Quotes eld
24492 \end_inset
24493
24494 Smith and Miller [1]
24495 \begin_inset Quotes erd
24496 \end_inset
24497
24498 )
24499 \end_layout
24500
24501 \begin_layout Standard
24502 \begin_inset Flex Code
24503 status collapsed
24504
24505 \begin_layout Plain Layout
24506 CiteEngine
24507 \end_layout
24508
24509 \end_inset
24510
24511  blocks look like this:
24512 \end_layout
24513
24514 \begin_layout LyX-Code
24515 CiteEngine default
24516 \end_layout
24517
24518 \begin_layout LyX-Code
24519  cite
24520 \end_layout
24521
24522 \begin_layout LyX-Code
24523  Citep*[][]
24524 \end_layout
24525
24526 \begin_layout LyX-Code
24527  citeyearpar[][]=parencite*
24528 \end_layout
24529
24530 \begin_layout LyX-Code
24531  ...
24532 \end_layout
24533
24534 \begin_layout LyX-Code
24535 End
24536 \end_layout
24537
24538 \begin_layout Standard
24539 The tag following 
24540 \begin_inset Flex Code
24541 status collapsed
24542
24543 \begin_layout Plain Layout
24544 CiteEngine
24545 \end_layout
24546
24547 \end_inset
24548
24549  denotes the engine.
24550  The individual lines respectively define a cite command or cite command paradigm supported by this engine.
24551  The line can be as simple as a cite command that is used both to name the respective \SpecialChar LyX
24552  command and the \SpecialChar LaTeX
24553  output or more complex in order to differentiate things.
24554  The full syntax is:
24555 \end_layout
24556
24557 \begin_layout LyX-Code
24558 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
24559 \end_layout
24560
24561 \begin_layout Itemize
24562 \begin_inset Flex Code
24563 status collapsed
24564
24565 \begin_layout Plain Layout
24566 LyXName
24567 \end_layout
24568
24569 \end_inset
24570
24571 :
24572  The name as used in the 
24573 \begin_inset Flex Code
24574 status collapsed
24575
24576 \begin_layout Plain Layout
24577 *.lyx
24578 \end_layout
24579
24580 \end_inset
24581
24582  file.
24583 \end_layout
24584
24585 \begin_deeper
24586 \begin_layout Standard
24587 For portability reasons,
24588  we try to use the same name for same-formatted commands in different cite packages (thus many names stem from natbib,
24589  and thus we need to differentiate a 
24590 \begin_inset Flex Code
24591 status collapsed
24592
24593 \begin_layout Plain Layout
24594 latexcmd
24595 \end_layout
24596
24597 \end_inset
24598
24599  sometimes,
24600  if the \SpecialChar LaTeX
24601  command names differ).
24602 \end_layout
24603
24604 \end_deeper
24605 \begin_layout Itemize
24606 \begin_inset Flex Code
24607 status collapsed
24608
24609 \begin_layout Plain Layout
24610 alias
24611 \end_layout
24612
24613 \end_inset
24614
24615 :
24616  a (comma-separated) list of commands that fall back to the given 
24617 \begin_inset Flex Code
24618 status collapsed
24619
24620 \begin_layout Plain Layout
24621 LyXName
24622 \end_layout
24623
24624 \end_inset
24625
24626  in the current engine.
24627  This eases the switch of citation packages and engines.
24628  The 
24629 \begin_inset Flex Code
24630 status collapsed
24631
24632 \begin_layout Plain Layout
24633 alias
24634 \end_layout
24635
24636 \end_inset
24637
24638  can be compared to 
24639 \begin_inset Flex Code
24640 status collapsed
24641
24642 \begin_layout Plain Layout
24643 ObsoletedBy
24644 \end_layout
24645
24646 \end_inset
24647
24648  in layout definitions.
24649 \end_layout
24650
24651 \begin_layout Itemize
24652 \begin_inset Flex Code
24653 status collapsed
24654
24655 \begin_layout Plain Layout
24656 latexcmd
24657 \end_layout
24658
24659 \end_inset
24660
24661 :
24662  The actual \SpecialChar LaTeX
24663  command that is output.
24664  
24665 \end_layout
24666
24667 \begin_layout Standard
24668 \begin_inset Flex Code
24669 status collapsed
24670
24671 \begin_layout Plain Layout
24672 Alias
24673 \end_layout
24674
24675 \end_inset
24676
24677  and 
24678 \begin_inset Flex Code
24679 status collapsed
24680
24681 \begin_layout Plain Layout
24682 latexcmd
24683 \end_layout
24684
24685 \end_inset
24686
24687  are optional.
24688  If no 
24689 \begin_inset Flex Code
24690 status collapsed
24691
24692 \begin_layout Plain Layout
24693 latexcmd
24694 \end_layout
24695
24696 \end_inset
24697
24698  is given,
24699  the 
24700 \begin_inset Flex Code
24701 status collapsed
24702
24703 \begin_layout Plain Layout
24704 LyXName
24705 \end_layout
24706
24707 \end_inset
24708
24709  will be output to \SpecialChar LaTeX
24710 .
24711 \end_layout
24712
24713 \begin_layout Standard
24714 Note further:
24715 \end_layout
24716
24717 \begin_layout Itemize
24718 Capitalization indicates that the command also has a capitalized form (
24719 \begin_inset Flex Code
24720 status collapsed
24721
24722 \begin_layout Plain Layout
24723
24724 \backslash
24725 Latexcmd
24726 \end_layout
24727
24728 \end_inset
24729
24730  vs.
24731  
24732 \begin_inset Flex Code
24733 status collapsed
24734
24735 \begin_layout Plain Layout
24736
24737 \backslash
24738 latexcmd
24739 \end_layout
24740
24741 \end_inset
24742
24743 ).
24744  These usually enforce up-casing of name prefixes (
24745 \emph on
24746 von Goethe
24747 \emph default
24748  
24749 \begin_inset Formula $\Rightarrow$
24750 \end_inset
24751
24752  
24753 \emph on
24754 Von Goethe
24755 \emph default
24756 ).
24757 \end_layout
24758
24759 \begin_layout Itemize
24760 Brackets 
24761 \begin_inset Flex Code
24762 status collapsed
24763
24764 \begin_layout Plain Layout
24765 []
24766 \end_layout
24767
24768 \end_inset
24769
24770  indicate the number of optional arguments (there can be 0–2).
24771 \end_layout
24772
24773 \begin_layout Itemize
24774 A star 
24775 \begin_inset Flex Code
24776 status collapsed
24777
24778 \begin_layout Plain Layout
24779 *
24780 \end_layout
24781
24782 \end_inset
24783
24784  indicates there is a starred version of the command (
24785 \begin_inset Flex Code
24786 status collapsed
24787
24788 \begin_layout Plain Layout
24789
24790 \backslash
24791 latexcmd*
24792 \end_layout
24793
24794 \end_inset
24795
24796  vs.
24797  
24798 \begin_inset Flex Code
24799 status collapsed
24800
24801 \begin_layout Plain Layout
24802
24803 \backslash
24804 latexcmd
24805 \end_layout
24806
24807 \end_inset
24808
24809 ).
24810  
24811 \end_layout
24812
24813 \begin_deeper
24814 \begin_layout Standard
24815 By default,
24816  the starred version means:
24817  Output all authors even if it should be shortened with 
24818 \begin_inset Quotes eld
24819 \end_inset
24820
24821 et al.
24822 \begin_inset Quotes erd
24823 \end_inset
24824
24825  due to the 
24826 \begin_inset Flex Code
24827 status collapsed
24828
24829 \begin_layout Plain Layout
24830 MaxCiteNames
24831 \end_layout
24832
24833 \end_inset
24834
24835  threshold.
24836 \end_layout
24837
24838 \begin_layout Standard
24839 If the star has a different meaning for a given command,
24840  it can be specified in angle brackets:
24841  
24842 \begin_inset Flex Code
24843 status collapsed
24844
24845 \begin_layout Plain Layout
24846 <!_stardesc!_stardesctooltip>
24847 \end_layout
24848
24849 \end_inset
24850
24851 .
24852  Maximal two translatable macro keywords,
24853  marked by the prefix 
24854 \begin_inset Flex Code
24855 status collapsed
24856
24857 \begin_layout Plain Layout
24858 !_
24859 \end_layout
24860
24861 \end_inset
24862
24863 ,
24864  can be given.
24865  The first points to the string that replaces the 
24866 \begin_inset Quotes eld
24867 \end_inset
24868
24869 Full aut&hor list
24870 \begin_inset Quotes erd
24871 \end_inset
24872
24873  checkbox label in the citation dialog,
24874  the second one to an optional tool tip for this checkbox.
24875  
24876 \end_layout
24877
24878 \begin_layout Standard
24879 Note that these two macros have to be defined in a 
24880 \begin_inset Flex Code
24881 status collapsed
24882
24883 \begin_layout Plain Layout
24884 CiteFormat
24885 \end_layout
24886
24887 \end_inset
24888
24889  (see next section),
24890  dropping the 
24891 \begin_inset Flex Code
24892 status collapsed
24893
24894 \begin_layout Plain Layout
24895 !
24896 \end_layout
24897
24898 \end_inset
24899
24900  from the prefix,
24901  like this:
24902  
24903 \end_layout
24904
24905 \begin_layout LyX-Code
24906 _stardesc Sta&rred command label
24907 \end_layout
24908
24909 \begin_layout LyX-Code
24910 _stardesctooltip Tooltip for the starred command checkbox.
24911 \end_layout
24912
24913 \end_deeper
24914 \begin_layout Itemize
24915 A dollar sign 
24916 \begin_inset Flex Code
24917 status collapsed
24918
24919 \begin_layout Plain Layout
24920 $
24921 \end_layout
24922
24923 \end_inset
24924
24925  indicates that this command features 
24926 \begin_inset Quotes eld
24927 \end_inset
24928
24929 qualified citation lists
24930 \begin_inset Quotes erd
24931 \end_inset
24932
24933 .
24934  This is a 
24935 \family sans
24936 Biblatex
24937 \family default
24938 -specific feature for multi-reference citations where an individual pre- and postnote can be given to each reference in the list.
24939  Please refer to the 
24940 \family sans
24941 Biblatex
24942 \family default
24943  manual for details.
24944 \end_layout
24945
24946 \begin_layout Standard
24947 If you want to add a cite command to a cite engine (e.
24948 \begin_inset space \thinspace{}
24949 \end_inset
24950
24951 g.,
24952  add a specific command provided by a class),
24953  you can use 
24954 \begin_inset Flex Code
24955 status collapsed
24956
24957 \begin_layout Plain Layout
24958 AddToCiteEngine <engine type> \SpecialChar ldots
24959  End
24960 \end_layout
24961
24962 \end_inset
24963
24964 .
24965  Note that only cite commands that do not exist yet are added.
24966 \end_layout
24967
24968 \begin_layout Subsection
24969 \begin_inset CommandInset label
24970 LatexCommand label
24971 name "subsec:Citation-format-description"
24972
24973 \end_inset
24974
24975 Cite format description
24976 \end_layout
24977
24978 \begin_layout Standard
24979 The 
24980 \begin_inset Flex Code
24981 status collapsed
24982
24983 \begin_layout Plain Layout
24984 CiteFormat
24985 \end_layout
24986
24987 \end_inset
24988
24989  blocks are used to describe how bibliographic information should be displayed,
24990  both within \SpecialChar LyX
24991  itself (in the citation dialog and in tooltips,
24992  for example) and in XHTML output.
24993  Such a block might look like this:
24994 \end_layout
24995
24996 \begin_layout LyX-Code
24997 CiteFormat
24998 \end_layout
24999
25000 \begin_layout LyX-Code
25001  article ...
25002 \end_layout
25003
25004 \begin_layout LyX-Code
25005  book ...
25006 \end_layout
25007
25008 \begin_layout LyX-Code
25009 End
25010 \end_layout
25011
25012 \begin_layout Standard
25013 or
25014 \end_layout
25015
25016 \begin_layout LyX-Code
25017 CiteFormat
25018 \end_layout
25019
25020 \begin_layout LyX-Code
25021  cite ...
25022 \end_layout
25023
25024 \begin_layout LyX-Code
25025  citet*[][] ...
25026 \end_layout
25027
25028 \begin_layout LyX-Code
25029 End
25030 \end_layout
25031
25032 \begin_layout Standard
25033 In the first case,
25034  the individual lines define how the bibliographic information associated with an article or book,
25035  respectively,
25036  is to be displayed,
25037  and such a definition can be given for any 
25038 \begin_inset Quotes els
25039 \end_inset
25040
25041 entry type
25042 \begin_inset Quotes ers
25043 \end_inset
25044
25045  that might be present in a Bib\SpecialChar TeX
25046  file.
25047  \SpecialChar LyX
25048  defines a default format in the source code that will be used if no specific definition has been given.
25049  \SpecialChar LyX
25050  predefines several formats in the file 
25051 \begin_inset Flex Code
25052 status collapsed
25053
25054 \begin_layout Plain Layout
25055 stdciteformats.inc
25056 \end_layout
25057
25058 \end_inset
25059
25060 ,
25061  which is included in most of \SpecialChar LyX
25062 's document classes.
25063 \end_layout
25064
25065 \begin_layout Standard
25066 In the second case,
25067  the lines define how a specific citation command (in the example 
25068 \begin_inset Flex Code
25069 status collapsed
25070
25071 \begin_layout Plain Layout
25072
25073 \backslash
25074 cite
25075 \end_layout
25076
25077 \end_inset
25078
25079 ,
25080  
25081 \begin_inset Flex Code
25082 status collapsed
25083
25084 \begin_layout Plain Layout
25085
25086 \backslash
25087 citet
25088 \end_layout
25089
25090 \end_inset
25091
25092 ) is to be displayed on the citation inset label,
25093  in the citation dialog,
25094  menu or XHTML output.
25095  \SpecialChar LyX
25096  defines such formats for the citation style variants it supports via 
25097 \family sans
25098 Document\SpecialChar menuseparator
25099 Setting\SpecialChar menuseparator
25100 Bibliography\SpecialChar ldots
25101
25102 \family default
25103  in specific 
25104 \begin_inset Flex Code
25105 status collapsed
25106
25107 \begin_layout Plain Layout
25108 *.citeengine
25109 \end_layout
25110
25111 \end_inset
25112
25113  files that are shipped with \SpecialChar LyX
25114  (see 
25115 \begin_inset CommandInset ref
25116 LatexCommand ref
25117 reference "subsec:Cite-Engine-Files"
25118 plural "false"
25119 caps "false"
25120 noprefix "false"
25121 nolink "false"
25122
25123 \end_inset
25124
25125 ).
25126 \end_layout
25127
25128 \begin_layout Standard
25129 The definitions use a simple language that allows Bib\SpecialChar TeX
25130  keys to be replaced with their values.
25131  Keys should be enclosed in 
25132 \begin_inset Flex Code
25133 status collapsed
25134
25135 \begin_layout Plain Layout
25136 %
25137 \end_layout
25138
25139 \end_inset
25140
25141  signs,
25142  e.g.:
25143  
25144 \begin_inset Flex Code
25145 status collapsed
25146
25147 \begin_layout Plain Layout
25148 %author%
25149 \end_layout
25150
25151 \end_inset
25152
25153 .
25154  So a simple definition might look like this:
25155 \end_layout
25156
25157 \begin_layout LyX-Code
25158 misc %author%,
25159  
25160 \begin_inset Quotes eld
25161 \end_inset
25162
25163 %title%
25164 \begin_inset Quotes erd
25165 \end_inset
25166
25167 .
25168 \end_layout
25169
25170 \begin_layout Standard
25171 This would print the author,
25172  followed by a comma,
25173  followed by the title,
25174  in quotes,
25175  followed by a period.
25176 \end_layout
25177
25178 \begin_layout Standard
25179 Of course,
25180  sometimes you may want to print a key only if it exists.
25181  This can be done by using a conditional construction,
25182  such as:
25183  
25184 \begin_inset Flex Code
25185 status collapsed
25186
25187 \begin_layout Plain Layout
25188 {%volume%[[vol.
25189 \begin_inset space ~
25190 \end_inset
25191
25192 %volume%]]}
25193 \end_layout
25194
25195 \end_inset
25196
25197 .
25198  This says:
25199  If the 
25200 \begin_inset Flex Code
25201 status collapsed
25202
25203 \begin_layout Plain Layout
25204 volume
25205 \end_layout
25206
25207 \end_inset
25208
25209  key exists,
25210  then print 
25211 \begin_inset Quotes eld
25212 \end_inset
25213
25214 vol.
25215 \begin_inset space ~
25216 \end_inset
25217
25218
25219 \begin_inset Quotes erd
25220 \end_inset
25221
25222  followed by the volume key.
25223  It is also possible to have an else clause in the conditional,
25224  such as:
25225 \begin_inset Newline newline
25226 \end_inset
25227
25228
25229 \begin_inset Flex Code
25230 status collapsed
25231
25232 \begin_layout Plain Layout
25233 {%author%[[%author%]][[%editor%,
25234  ed.]]}
25235 \end_layout
25236
25237 \end_inset
25238
25239 .
25240 \begin_inset Newline newline
25241 \end_inset
25242
25243 Here,
25244  the 
25245 \begin_inset Flex Code
25246 status collapsed
25247
25248 \begin_layout Plain Layout
25249 author
25250 \end_layout
25251
25252 \end_inset
25253
25254  key is printed if it exists;
25255  otherwise,
25256  the editor key is printed,
25257  followed by 
25258 \begin_inset Quotes eld
25259 \end_inset
25260
25261 ,
25262 \begin_inset space ~
25263 \end_inset
25264
25265 ed.
25266 \begin_inset Quotes erd
25267 \end_inset
25268
25269  Note that the key is again enclosed in 
25270 \begin_inset Flex Code
25271 status collapsed
25272
25273 \begin_layout Plain Layout
25274 %
25275 \end_layout
25276
25277 \end_inset
25278
25279  signs;
25280  the entire conditional is enclosed in braces;
25281  and the if and else clauses are enclosed in double brackets,
25282  
25283 \begin_inset Quotes eld
25284 \end_inset
25285
25286
25287 \begin_inset Flex Code
25288 status collapsed
25289
25290 \begin_layout Plain Layout
25291 [[
25292 \end_layout
25293
25294 \end_inset
25295
25296
25297 \begin_inset Quotes eld
25298 \end_inset
25299
25300  and 
25301 \begin_inset Quotes eld
25302 \end_inset
25303
25304
25305 \begin_inset Flex Code
25306 status collapsed
25307
25308 \begin_layout Plain Layout
25309 ]]
25310 \end_layout
25311
25312 \end_inset
25313
25314
25315 \begin_inset Quotes erd
25316 \end_inset
25317
25318 .
25319  There must be no space between any of these.
25320 \end_layout
25321
25322 \begin_layout Standard
25323 Next to the entry keys,
25324  there are some special keys that can be used for these conditionals:
25325 \end_layout
25326
25327 \begin_layout Itemize
25328 \begin_inset Flex Code
25329 status collapsed
25330
25331 \begin_layout Plain Layout
25332 {%dialog%[[true]][[false]]}
25333 \end_layout
25334
25335 \end_inset
25336
25337 :
25338  process the 
25339 \begin_inset Quotes eld
25340 \end_inset
25341
25342 true
25343 \begin_inset Quotes erd
25344 \end_inset
25345
25346  part for dialogs and menus,
25347  the 
25348 \begin_inset Quotes eld
25349 \end_inset
25350
25351 false
25352 \begin_inset Quotes erd
25353 \end_inset
25354
25355  part for other contexts (workarea,
25356  export)
25357 \end_layout
25358
25359 \begin_layout Itemize
25360 \begin_inset Flex Code
25361 status collapsed
25362
25363 \begin_layout Plain Layout
25364 {%export%[[true]][[false]]}
25365 \end_layout
25366
25367 \end_inset
25368
25369 :
25370  process the 
25371 \begin_inset Quotes eld
25372 \end_inset
25373
25374 true
25375 \begin_inset Quotes erd
25376 \end_inset
25377
25378  part for export and menus,
25379  the 
25380 \begin_inset Quotes eld
25381 \end_inset
25382
25383 false
25384 \begin_inset Quotes erd
25385 \end_inset
25386
25387  part for other contexts (workarea,
25388  dialog)
25389 \end_layout
25390
25391 \begin_layout Itemize
25392 \begin_inset Flex Code
25393 status collapsed
25394
25395 \begin_layout Plain Layout
25396 {%next%[[true]]}
25397 \end_layout
25398
25399 \end_inset
25400
25401 :
25402  process the 
25403 \begin_inset Quotes eld
25404 \end_inset
25405
25406 true
25407 \begin_inset Quotes erd
25408 \end_inset
25409
25410  part if another item follows (e.
25411 \begin_inset space \thinspace{}
25412 \end_inset
25413
25414 g.,
25415  in a citation with multiple keys)
25416 \end_layout
25417
25418 \begin_layout Itemize
25419 \begin_inset Flex Code
25420 status collapsed
25421
25422 \begin_layout Plain Layout
25423 {%second%[[true]][[false]]}
25424 \end_layout
25425
25426 \end_inset
25427
25428 :
25429  process the 
25430 \begin_inset Quotes eld
25431 \end_inset
25432
25433 true
25434 \begin_inset Quotes erd
25435 \end_inset
25436
25437  if this is the second of multiple items,
25438  else the 
25439 \begin_inset Quotes eld
25440 \end_inset
25441
25442 false
25443 \begin_inset Quotes erd
25444 \end_inset
25445
25446  part
25447 \end_layout
25448
25449 \begin_layout Itemize
25450 \begin_inset Flex Code
25451 status collapsed
25452
25453 \begin_layout Plain Layout
25454 {%ifstar%[[true]][[false]]}
25455 \end_layout
25456
25457 \end_inset
25458
25459 :
25460  process the 
25461 \begin_inset Quotes eld
25462 \end_inset
25463
25464 true
25465 \begin_inset Quotes erd
25466 \end_inset
25467
25468  part for starred citation commands (such as 
25469 \begin_inset Flex Code
25470 status collapsed
25471
25472 \begin_layout Plain Layout
25473
25474 \backslash
25475 cite*
25476 \end_layout
25477
25478 \end_inset
25479
25480 ),
25481  the false part for unstarred
25482 \end_layout
25483
25484 \begin_layout Itemize
25485 \begin_inset Flex Code
25486 status collapsed
25487
25488 \begin_layout Plain Layout
25489 {%ifentrytype:<type>%[[true]][[false]]}
25490 \end_layout
25491
25492 \end_inset
25493
25494 :
25495  process the 
25496 \begin_inset Quotes eld
25497 \end_inset
25498
25499 true
25500 \begin_inset Quotes erd
25501 \end_inset
25502
25503  if the current entry type matches 
25504 \begin_inset Flex Code
25505 status collapsed
25506
25507 \begin_layout Plain Layout
25508 <type>
25509 \end_layout
25510
25511 \end_inset
25512
25513 ,
25514  else the false part (e.g.,
25515  in a citation definition:
25516  
25517 \begin_inset Flex Code
25518 status collapsed
25519
25520 \begin_layout Plain Layout
25521 {%ifentrytype:book%[[this is a book]][[this is no book]]}
25522 \end_layout
25523
25524 \end_inset
25525
25526 )
25527 \end_layout
25528
25529 \begin_layout Itemize
25530 \begin_inset Flex Code
25531 status collapsed
25532
25533 \begin_layout Plain Layout
25534 {%ifmultiple:<authortype>%[[true]][[false]]}
25535 \end_layout
25536
25537 \end_inset
25538
25539 :
25540  process the 
25541 \begin_inset Quotes eld
25542 \end_inset
25543
25544 true
25545 \begin_inset Quotes erd
25546 \end_inset
25547
25548  if the current author type (author,
25549  editor etc.) has multiple authors,
25550  else the false part (e.g.,
25551  in a bibliography definition:
25552  
25553 \begin_inset Flex Code
25554 status collapsed
25555
25556 \begin_layout Plain Layout
25557 {%ifmultiple:editor%[[eds.]][[ed.]]}
25558 \end_layout
25559
25560 \end_inset
25561
25562 )
25563 \end_layout
25564
25565 \begin_layout Itemize
25566 \begin_inset Flex Code
25567 status collapsed
25568
25569 \begin_layout Plain Layout
25570 {%ifqualified%[[true]][[false]]}
25571 \end_layout
25572
25573 \end_inset
25574
25575 :
25576  process the 
25577 \begin_inset Quotes eld
25578 \end_inset
25579
25580 true
25581 \begin_inset Quotes erd
25582 \end_inset
25583
25584  part if the current citation is a qualified citation list (a specific 
25585 \family sans
25586 Biblatex
25587 \family default
25588  format for multi-reference citations),
25589  the false part if this is not the case.
25590 \end_layout
25591
25592 \begin_layout Standard
25593 We said that 
25594 \begin_inset Flex Code
25595 status collapsed
25596
25597 \begin_layout Plain Layout
25598 %author%
25599 \end_layout
25600
25601 \end_inset
25602
25603  prints the author key as it is recorded in the bibliography file.
25604  This might not be what you want,
25605  since it will result in a string such as 
25606 \begin_inset Quotes eld
25607 \end_inset
25608
25609 Miller,
25610  Peter and Smith,
25611  Mary and White,
25612  Jane
25613 \begin_inset Quotes erd
25614 \end_inset
25615
25616  (since 
25617 \begin_inset Quotes eld
25618 \end_inset
25619
25620 and
25621 \begin_inset Quotes erd
25622 \end_inset
25623
25624  is used by Bib\SpecialChar TeX
25625  to delimit authors).
25626  \SpecialChar LyX
25627  therefore provides some methods to get properly formatted name lists (which will also get translated).
25628  The following keys are provided:
25629 \end_layout
25630
25631 \begin_layout Enumerate
25632 For name lists with pre- and surname,
25633  suitable for the main authors/editors of a bibliography item.
25634  The 
25635 \begin_inset Flex Code
25636 status collapsed
25637
25638 \begin_layout Plain Layout
25639 <nametype>
25640 \end_layout
25641
25642 \end_inset
25643
25644  part denotes the kind of list that is requested (e.g.
25645  
25646 \begin_inset Flex Code
25647 status collapsed
25648
25649 \begin_layout Plain Layout
25650 <nametype:author>
25651 \end_layout
25652
25653 \end_inset
25654
25655 ):
25656 \end_layout
25657
25658 \begin_deeper
25659 \begin_layout Itemize
25660 \begin_inset Flex Code
25661 status collapsed
25662
25663 \begin_layout Plain Layout
25664 %abbrvnames:<nametype>%
25665 \end_layout
25666
25667 \end_inset
25668
25669 :
25670  Provides a name list which is abbreviated (with 
25671 \begin_inset Quotes eld
25672 \end_inset
25673
25674 et al.
25675 \begin_inset Quotes erd
25676 \end_inset
25677
25678 ) when 
25679 \begin_inset Flex Code
25680 status collapsed
25681
25682 \begin_layout Plain Layout
25683 MaxCiteNames
25684 \end_layout
25685
25686 \end_inset
25687
25688  is reached.
25689 \end_layout
25690
25691 \begin_layout Itemize
25692 \begin_inset Flex Code
25693 status collapsed
25694
25695 \begin_layout Plain Layout
25696 %fullnames:<nametype>%
25697 \end_layout
25698
25699 \end_inset
25700
25701 :
25702  Provides a full name list (never abbreviated with 
25703 \begin_inset Quotes eld
25704 \end_inset
25705
25706 et al.
25707 \begin_inset Quotes erd
25708 \end_inset
25709
25710 ).
25711 \end_layout
25712
25713 \begin_layout Itemize
25714 \begin_inset Flex Code
25715 status collapsed
25716
25717 \begin_layout Plain Layout
25718 %forceabbrvnames:<nametype>%
25719 \end_layout
25720
25721 \end_inset
25722
25723 :
25724  Provides a name list which is always abbreviated (with 
25725 \begin_inset Quotes eld
25726 \end_inset
25727
25728 et al.
25729 \begin_inset Quotes erd
25730 \end_inset
25731
25732 ) irrespective of 
25733 \begin_inset Flex Code
25734 status collapsed
25735
25736 \begin_layout Plain Layout
25737 MaxCiteNames
25738 \end_layout
25739
25740 \end_inset
25741
25742 .
25743 \end_layout
25744
25745 \end_deeper
25746 \begin_layout Enumerate
25747 Alternative name lists with pre- and surname,
25748  if the order of pre- and surname inside the bibliography item differs (as in:
25749  
25750 \begin_inset Quotes eld
25751 \end_inset
25752
25753 Miller,
25754  John:
25755  Some text,
25756  in:
25757  Mary Smith,
25758  ed.:
25759  A volume
25760 \begin_inset Quotes erd
25761 \end_inset
25762
25763 ):
25764 \end_layout
25765
25766 \begin_deeper
25767 \begin_layout Itemize
25768 \begin_inset Flex Code
25769 status collapsed
25770
25771 \begin_layout Plain Layout
25772 %abbrvbynames:<nametype>%
25773 \end_layout
25774
25775 \end_inset
25776
25777 :
25778  Provides a name list which is abbreviated (with 
25779 \begin_inset Quotes eld
25780 \end_inset
25781
25782 et al.
25783 \begin_inset Quotes erd
25784 \end_inset
25785
25786 ) when 
25787 \begin_inset Flex Code
25788 status collapsed
25789
25790 \begin_layout Plain Layout
25791 MaxCiteNames
25792 \end_layout
25793
25794 \end_inset
25795
25796  is reached.
25797 \end_layout
25798
25799 \begin_layout Itemize
25800 \begin_inset Flex Code
25801 status collapsed
25802
25803 \begin_layout Plain Layout
25804 %fullbynames:<nametype>%
25805 \end_layout
25806
25807 \end_inset
25808
25809 :
25810  Provides a full name list (never abbreviated with 
25811 \begin_inset Quotes eld
25812 \end_inset
25813
25814 et al.
25815 \begin_inset Quotes erd
25816 \end_inset
25817
25818 ).
25819 \end_layout
25820
25821 \begin_layout Itemize
25822 \begin_inset Flex Code
25823 status collapsed
25824
25825 \begin_layout Plain Layout
25826 %forceabbrvbynames:<nametype>%
25827 \end_layout
25828
25829 \end_inset
25830
25831 :
25832  Provides a name list which is always abbreviated (with 
25833 \begin_inset Quotes eld
25834 \end_inset
25835
25836 et al.
25837 \begin_inset Quotes erd
25838 \end_inset
25839
25840 ) irrespective of 
25841 \begin_inset Flex Code
25842 status collapsed
25843
25844 \begin_layout Plain Layout
25845 MaxCiteNames
25846 \end_layout
25847
25848 \end_inset
25849
25850 .
25851 \end_layout
25852
25853 \end_deeper
25854 \begin_layout Enumerate
25855 And finally name lists which consist of family names only,
25856  as used in author-year citation labels.
25857  These do not take a 
25858 \begin_inset Flex Code
25859 status collapsed
25860
25861 \begin_layout Plain Layout
25862 <nametype>
25863 \end_layout
25864
25865 \end_inset
25866
25867  part,
25868  but always return either an author list or,
25869  if this does not exist,
25870  an editor list (as common in author-year labels):
25871 \end_layout
25872
25873 \begin_deeper
25874 \begin_layout Itemize
25875 \begin_inset Flex Code
25876 status collapsed
25877
25878 \begin_layout Plain Layout
25879 %abbrvciteauthor%
25880 \end_layout
25881
25882 \end_inset
25883
25884 :
25885  Provides a name list which is abbreviated (with 
25886 \begin_inset Quotes eld
25887 \end_inset
25888
25889 et al.
25890 \begin_inset Quotes erd
25891 \end_inset
25892
25893 ) when 
25894 \begin_inset Flex Code
25895 status collapsed
25896
25897 \begin_layout Plain Layout
25898 MaxCiteNames
25899 \end_layout
25900
25901 \end_inset
25902
25903  is reached.
25904 \end_layout
25905
25906 \begin_layout Itemize
25907 \begin_inset Flex Code
25908 status collapsed
25909
25910 \begin_layout Plain Layout
25911 %fullciteauthor%
25912 \end_layout
25913
25914 \end_inset
25915
25916 :
25917  Provides a full name list (never abbreviated with 
25918 \begin_inset Quotes eld
25919 \end_inset
25920
25921 et al.
25922 \begin_inset Quotes erd
25923 \end_inset
25924
25925 ).
25926 \end_layout
25927
25928 \begin_layout Itemize
25929 \begin_inset Flex Code
25930 status collapsed
25931
25932 \begin_layout Plain Layout
25933 %forceabbrvciteauthor%
25934 \end_layout
25935
25936 \end_inset
25937
25938 :
25939  Provides a name list which is always abbreviated (with 
25940 \begin_inset Quotes eld
25941 \end_inset
25942
25943 et al.
25944 \begin_inset Quotes erd
25945 \end_inset
25946
25947 ) irrespective of 
25948 \begin_inset Flex Code
25949 status collapsed
25950
25951 \begin_layout Plain Layout
25952 MaxCiteNames
25953 \end_layout
25954
25955 \end_inset
25956
25957 .
25958 \end_layout
25959
25960 \end_deeper
25961 \begin_layout Standard
25962 The order of pre- and surname in the former two lists can be adjusted by these macros:
25963 \end_layout
25964
25965 \begin_layout Itemize
25966 \begin_inset Flex Code
25967 status collapsed
25968
25969 \begin_layout Plain Layout
25970 !firstnameform %surname%,
25971  %prename%
25972 \end_layout
25973
25974 \end_inset
25975
25976  (first author in lists of type 1)
25977 \end_layout
25978
25979 \begin_layout Itemize
25980 \begin_inset Flex Code
25981 status collapsed
25982
25983 \begin_layout Plain Layout
25984 !othernameform %surname%,
25985  %prename%
25986 \end_layout
25987
25988 \end_inset
25989
25990  (other authors in lists of type 1)
25991 \end_layout
25992
25993 \begin_layout Itemize
25994 \begin_inset Flex Code
25995 status collapsed
25996
25997 \begin_layout Plain Layout
25998 !firstbynameform %prename% %surname%
25999 \end_layout
26000
26001 \end_inset
26002
26003  (first author in lists of type 2)
26004 \end_layout
26005
26006 \begin_layout Itemize
26007 \begin_inset Flex Code
26008 status collapsed
26009
26010 \begin_layout Plain Layout
26011 !otherbynameform %prename% %surname%
26012 \end_layout
26013
26014 \end_inset
26015
26016  (other authors in lists of type 2)
26017 \end_layout
26018
26019 \begin_layout Standard
26020 This allows you to configure namings like 
26021 \begin_inset Quotes eld
26022 \end_inset
26023
26024 Miller,
26025  Peter and Mary Smith:
26026  \SpecialChar ldots
26027 ,
26028  in:
26029  John Doe and Pat Green,
26030  eds.:\SpecialChar ldots
26031
26032 \begin_inset Quotes erd
26033 \end_inset
26034
26035 .
26036 \end_layout
26037
26038 \begin_layout Standard
26039 There is one other piece of syntax available in definitions,
26040  which looks like this:
26041  
26042 \begin_inset Flex Code
26043 status collapsed
26044
26045 \begin_layout Plain Layout
26046 {!<i>!}
26047 \end_layout
26048
26049 \end_inset
26050
26051 .
26052  This defines a piece of formatting information that is to be used when creating 
26053 \begin_inset Quotes eld
26054 \end_inset
26055
26056 rich text
26057 \begin_inset Quotes erd
26058 \end_inset
26059
26060 .
26061  Obviously,
26062  we do not want to output HTML tags when writing plain text,
26063  so they should be wrapped in 
26064 \begin_inset Quotes eld
26065 \end_inset
26066
26067 {!
26068 \begin_inset Quotes erd
26069 \end_inset
26070
26071  and 
26072 \begin_inset Quotes eld
26073 \end_inset
26074
26075 !}
26076 \begin_inset Quotes erd
26077 \end_inset
26078
26079 .
26080 \end_layout
26081
26082 \begin_layout Standard
26083 Two special sorts of definitions are also possible in a 
26084 \begin_inset Flex Code
26085 status collapsed
26086
26087 \begin_layout Plain Layout
26088 CiteFormat
26089 \end_layout
26090
26091 \end_inset
26092
26093  block.
26094  An example of the first would be:
26095 \end_layout
26096
26097 \begin_layout LyX-Code
26098 !quotetitle 
26099 \begin_inset Quotes eld
26100 \end_inset
26101
26102 %title%
26103 \begin_inset Quotes erd
26104 \end_inset
26105
26106
26107 \end_layout
26108
26109 \begin_layout Standard
26110 This is an abbreviation,
26111  or macro,
26112  and it can be used by treating it as if it were a key:
26113  
26114 \begin_inset Flex Code
26115 status collapsed
26116
26117 \begin_layout Plain Layout
26118 %!quotetitle%
26119 \end_layout
26120
26121 \end_inset
26122
26123 .
26124  \SpecialChar LyX
26125  will treat 
26126 \begin_inset Flex Code
26127 status collapsed
26128
26129 \begin_layout Plain Layout
26130 %!quotetitle%
26131 \end_layout
26132
26133 \end_inset
26134
26135  exactly as it would treat its definition.
26136  So,
26137  let us issue the obvious 
26138 \emph on
26139 warning
26140 \emph default
26141 .
26142  Do not do this:
26143 \end_layout
26144
26145 \begin_layout LyX-Code
26146 !funfun %funfun%
26147 \end_layout
26148
26149 \begin_layout Standard
26150 or anything like it.
26151  \SpecialChar LyX
26152  shouldn't go into an infinite loop,
26153  but it may go into a long one before it gives up.
26154 \end_layout
26155
26156 \begin_layout Standard
26157 The second sort of special definition might look like this:
26158 \end_layout
26159
26160 \begin_layout LyX-Code
26161 B_pptext pp.
26162 \end_layout
26163
26164 \begin_layout Standard
26165 This defines a translatable piece of text,
26166  which allows relevant parts of the bibliography or citation to be translated.
26167  It can be included in a definition by treating it as a key:
26168  
26169 \begin_inset Flex Code
26170 status collapsed
26171
26172 \begin_layout Plain Layout
26173 %B_pptext%
26174 \end_layout
26175
26176 \end_inset
26177
26178 .
26179  Note that there are two different translation paths:
26180  All definitions starting with 
26181 \begin_inset Flex Code
26182 status collapsed
26183
26184 \begin_layout Plain Layout
26185 B_
26186 \end_layout
26187
26188 \end_inset
26189
26190 ,
26191  such as in the example above,
26192  will be translated to the currently active buffer language (so the translation will match the generated document).
26193  All definitions starting with underscore only will be translated to the GUI language.
26194  This is the proper translation for strings that only occur in the dialogs or on buttons,
26195  such as this one:
26196 \end_layout
26197
26198 \begin_layout LyX-Code
26199 _addtobib Add to bibliography only.
26200 \end_layout
26201
26202 \begin_layout Standard
26203 Several of these translatable strings are predefined in 
26204 \begin_inset Flex Code
26205 status collapsed
26206
26207 \begin_layout Plain Layout
26208 stdciteformats.inc
26209 \end_layout
26210
26211 \end_inset
26212
26213  and the diverse 
26214 \begin_inset Flex Code
26215 status collapsed
26216
26217 \begin_layout Plain Layout
26218 *.citeengine
26219 \end_layout
26220
26221 \end_inset
26222
26223  files.
26224  Note that these are not macros,
26225  in the sense just defined.
26226  They will not be expanded.
26227 \end_layout
26228
26229 \begin_layout Standard
26230 So here then is an example that uses several of these features:
26231 \begin_inset VSpace defskip
26232 \end_inset
26233
26234
26235 \end_layout
26236
26237 \begin_layout Standard
26238 \noindent
26239
26240 \family sans
26241 !authoredit {%author%[[%author%,
26242  ]][[{%editor%[[%editor%,
26243  %B_edtext%,
26244  ]]}]]}
26245 \end_layout
26246
26247 \begin_layout Standard
26248 \begin_inset VSpace defskip
26249 \end_inset
26250
26251 This defines a macro that prints the author,
26252  followed by a comma,
26253  if the 
26254 \begin_inset Flex Code
26255 status collapsed
26256
26257 \begin_layout Plain Layout
26258 author
26259 \end_layout
26260
26261 \end_inset
26262
26263  key is defined,
26264  or else prints the name of the editor,
26265  followed by the 
26266 \begin_inset Flex Code
26267 status collapsed
26268
26269 \begin_layout Plain Layout
26270 B_edtext
26271 \end_layout
26272
26273 \end_inset
26274
26275  or its translation (it is by default 
26276 \begin_inset Quotes eld
26277 \end_inset
26278
26279 ed.
26280 \begin_inset Quotes erd
26281 \end_inset
26282
26283 ),
26284  if the 
26285 \begin_inset Flex Code
26286 status collapsed
26287
26288 \begin_layout Plain Layout
26289 editor
26290 \end_layout
26291
26292 \end_inset
26293
26294  key is defined.
26295  Note that this is in fact defined in 
26296 \begin_inset Flex Code
26297 status collapsed
26298
26299 \begin_layout Plain Layout
26300 stdciteformats.inc
26301 \end_layout
26302
26303 \end_inset
26304
26305 ,
26306  so you can use it in your own definitions,
26307  or re-definitions,
26308  if you load that file first.
26309 \end_layout
26310
26311 \begin_layout Section
26312 \begin_inset CommandInset label
26313 LatexCommand label
26314 name "sec:Tags-for-XHTML"
26315
26316 \end_inset
26317
26318 Tags for XHTML output
26319 \end_layout
26320
26321 \begin_layout Standard
26322 As with \SpecialChar LaTeX
26323  or DocBook,
26324  the format of \SpecialChar LyX
26325 's XHTML output is also controlled by layout information.
26326  In general,
26327  \SpecialChar LyX
26328  provides sensible defaults and,
26329  as mentioned earlier,
26330  it will even construct default CSS style rules from the other layout tags.
26331  For example,
26332  \SpecialChar LyX
26333  will attempt to use the information provided in the 
26334 \begin_inset Flex Code
26335 status collapsed
26336
26337 \begin_layout Plain Layout
26338 Font
26339 \end_layout
26340
26341 \end_inset
26342
26343  declaration for the Chapter style to write CSS that will appropriately format chapter headings.
26344 \end_layout
26345
26346 \begin_layout Standard
26347 In many cases,
26348  then,
26349  you may not have to do anything at all to get acceptable XHTML output for your own environments,
26350  custom insets,
26351  and so forth.
26352  But in some cases you will,
26353  and so \SpecialChar LyX
26354  provides a number of layout tags that can be used to customize the XHTML and CSS that are generated.
26355 \end_layout
26356
26357 \begin_layout Standard
26358 Note that there are two tags,
26359  
26360 \begin_inset Flex Code
26361 status collapsed
26362
26363 \begin_layout Plain Layout
26364 HTMLPreamble
26365 \end_layout
26366
26367 \end_inset
26368
26369  and 
26370 \begin_inset Flex Code
26371 status collapsed
26372
26373 \begin_layout Plain Layout
26374 AddToHTMLPreamble
26375 \end_layout
26376
26377 \end_inset
26378
26379  that may appear outside style and inset declarations.
26380  See 
26381 \begin_inset CommandInset ref
26382 LatexCommand ref
26383 reference "subsec:General-text-class"
26384 nolink "false"
26385
26386 \end_inset
26387
26388  for details on these.
26389 \end_layout
26390
26391 \begin_layout Subsection
26392 \begin_inset CommandInset label
26393 LatexCommand label
26394 name "subsec:Paragraph-Style-XHTML"
26395
26396 \end_inset
26397
26398 Paragraph styles
26399 \end_layout
26400
26401 \begin_layout Standard
26402 The sort of XHTML \SpecialChar LyX
26403  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
26404  a command,
26405  or an environment,
26406  where this is itself determined by the contents of the corresponding 
26407 \begin_inset Flex Code
26408 status collapsed
26409
26410 \begin_layout Plain Layout
26411 \SpecialChar LaTeX
26412 Type
26413 \end_layout
26414
26415 \end_inset
26416
26417  tag.
26418  
26419 \end_layout
26420
26421 \begin_layout Standard
26422 For a command or normal paragraph,
26423  the output XHTML has the following form:
26424 \end_layout
26425
26426 \begin_layout LyX-Code
26427
26428 \family sans
26429 <tag attr=
26430 \begin_inset Quotes erd
26431 \end_inset
26432
26433 value
26434 \begin_inset Quotes erd
26435 \end_inset
26436
26437 >
26438 \end_layout
26439
26440 \begin_layout LyX-Code
26441
26442 \family sans
26443 <labeltag attr=
26444 \begin_inset Quotes erd
26445 \end_inset
26446
26447 value
26448 \begin_inset Quotes erd
26449 \end_inset
26450
26451 >Label</labeltag>
26452 \end_layout
26453
26454 \begin_layout LyX-Code
26455
26456 \family sans
26457 Contents of the paragraph.
26458 \end_layout
26459
26460 \begin_layout LyX-Code
26461
26462 \family sans
26463 </tag>
26464 \end_layout
26465
26466 \begin_layout Standard
26467 The label tags are of course omitted if the paragraph does not have a label.
26468 \end_layout
26469
26470 \begin_layout Standard
26471 For an environment that is not some sort of list,
26472  the XHTML takes this form:
26473 \end_layout
26474
26475 \begin_layout LyX-Code
26476
26477 \family sans
26478 <tag attr=
26479 \begin_inset Quotes erd
26480 \end_inset
26481
26482 value
26483 \begin_inset Quotes erd
26484 \end_inset
26485
26486 >
26487 \end_layout
26488
26489 \begin_layout LyX-Code
26490
26491 \family sans
26492 <itemtag attr=
26493 \begin_inset Quotes erd
26494 \end_inset
26495
26496 value
26497 \begin_inset Quotes erd
26498 \end_inset
26499
26500 ><labeltag attr=
26501 \begin_inset Quotes erd
26502 \end_inset
26503
26504 value
26505 \begin_inset Quotes erd
26506 \end_inset
26507
26508 >Environment Label</labeltag>First paragraph.</itemtag>
26509 \end_layout
26510
26511 \begin_layout LyX-Code
26512
26513 \family sans
26514 <itemtag>Second paragraph.</itemtag>
26515 \end_layout
26516
26517 \begin_layout LyX-Code
26518
26519 \family sans
26520 </tag>
26521 \end_layout
26522
26523 \begin_layout Standard
26524 Note that the label is output only for the first paragraph,
26525  as it should be for a theorem,
26526  for example.
26527  
26528 \end_layout
26529
26530 \begin_layout Standard
26531 For a list,
26532  we have one of these forms:
26533 \end_layout
26534
26535 \begin_layout LyX-Code
26536
26537 \family sans
26538 <tag attr=
26539 \begin_inset Quotes erd
26540 \end_inset
26541
26542 value
26543 \begin_inset Quotes erd
26544 \end_inset
26545
26546 >
26547 \end_layout
26548
26549 \begin_layout LyX-Code
26550
26551 \family sans
26552 <itemtag attr=
26553 \begin_inset Quotes erd
26554 \end_inset
26555
26556 value
26557 \begin_inset Quotes erd
26558 \end_inset
26559
26560 ><labeltag attr=
26561 \begin_inset Quotes erd
26562 \end_inset
26563
26564 value
26565 \begin_inset Quotes erd
26566 \end_inset
26567
26568 >List Label</labeltag>First item.</itemtag>
26569 \end_layout
26570
26571 \begin_layout LyX-Code
26572
26573 \family sans
26574 <itemtag attr=
26575 \begin_inset Quotes erd
26576 \end_inset
26577
26578 value
26579 \begin_inset Quotes erd
26580 \end_inset
26581
26582 ><labeltag attr=
26583 \begin_inset Quotes erd
26584 \end_inset
26585
26586 value
26587 \begin_inset Quotes erd
26588 \end_inset
26589
26590 >List Label</labeltag>Second item.</itemtag>
26591 \end_layout
26592
26593 \begin_layout LyX-Code
26594
26595 \family sans
26596 </tag>
26597 \end_layout
26598
26599 \begin_layout LyX-Code
26600
26601 \end_layout
26602
26603 \begin_layout LyX-Code
26604
26605 \family sans
26606 <tag attr=
26607 \begin_inset Quotes erd
26608 \end_inset
26609
26610 value
26611 \begin_inset Quotes erd
26612 \end_inset
26613
26614 >
26615 \end_layout
26616
26617 \begin_layout LyX-Code
26618
26619 \family sans
26620 <labeltag attr=
26621 \begin_inset Quotes erd
26622 \end_inset
26623
26624 value
26625 \begin_inset Quotes erd
26626 \end_inset
26627
26628 >List Label</labeltag><itemtag attr=
26629 \begin_inset Quotes erd
26630 \end_inset
26631
26632 value
26633 \begin_inset Quotes erd
26634 \end_inset
26635
26636 >First item.</itemtag>
26637 \end_layout
26638
26639 \begin_layout LyX-Code
26640
26641 \family sans
26642 <labeltag attr=
26643 \begin_inset Quotes erd
26644 \end_inset
26645
26646 value
26647 \begin_inset Quotes erd
26648 \end_inset
26649
26650 >List Label</labeltag><itemtag attr=
26651 \begin_inset Quotes erd
26652 \end_inset
26653
26654 value
26655 \begin_inset Quotes erd
26656 \end_inset
26657
26658 >Second item.</itemtag>
26659 \end_layout
26660
26661 \begin_layout LyX-Code
26662
26663 \family sans
26664 </tag>
26665 \end_layout
26666
26667 \begin_layout Standard
26668 Note the different orders of 
26669 \begin_inset Flex Code
26670 status collapsed
26671
26672 \begin_layout Plain Layout
26673 labeltag
26674 \end_layout
26675
26676 \end_inset
26677
26678  and 
26679 \begin_inset Flex Code
26680 status collapsed
26681
26682 \begin_layout Plain Layout
26683 itemtag
26684 \end_layout
26685
26686 \end_inset
26687
26688 .
26689  Which order we get depends upon the setting of 
26690 \begin_inset Flex Code
26691 status collapsed
26692
26693 \begin_layout Plain Layout
26694 HTMLLabelFirst
26695 \end_layout
26696
26697 \end_inset
26698
26699 :
26700  If 
26701 \begin_inset Flex Code
26702 status collapsed
26703
26704 \begin_layout Plain Layout
26705 HTMLLabelFirst
26706 \end_layout
26707
26708 \end_inset
26709
26710  is false (the default),
26711  you get the first of these,
26712  with the label within the item;
26713  if true,
26714  you get the second,
26715  with the label outside the item.
26716 \end_layout
26717
26718 \begin_layout Standard
26719 The specific tags and attributes output for each paragraph type can be controlled by means of the layout tags we are about to describe.
26720  As mentioned earlier,
26721  however,
26722  \SpecialChar LyX
26723  uses sensible defaults for many of these,
26724  so you often may not need to do very much to get good XHTML output.
26725  Think of the available tags as there so you can tweak things to your liking.
26726 \end_layout
26727
26728 \begin_layout Description
26729 \begin_inset Flex Code
26730 status collapsed
26731
26732 \begin_layout Plain Layout
26733 HTMLAttr
26734 \end_layout
26735
26736 \end_inset
26737
26738  [
26739 \begin_inset Flex Code
26740 status collapsed
26741
26742 \begin_layout Plain Layout
26743 string
26744 \end_layout
26745
26746 \end_inset
26747
26748 ] Specifies attribute information to be output with the main tag.
26749  For example,
26750  
26751 \begin_inset Quotes eld
26752 \end_inset
26753
26754
26755 \begin_inset Flex Code
26756 status collapsed
26757
26758 \begin_layout Plain Layout
26759 class=`mydiv'
26760 \end_layout
26761
26762 \end_inset
26763
26764
26765 \begin_inset Quotes erd
26766 \end_inset
26767
26768 .
26769  By default,
26770  \SpecialChar LyX
26771  will output 
26772 \begin_inset Quotes eld
26773 \end_inset
26774
26775
26776 \begin_inset Flex Code
26777 status collapsed
26778
26779 \begin_layout Plain Layout
26780 class=`layoutname'
26781 \end_layout
26782
26783 \end_inset
26784
26785
26786 \begin_inset Quotes erd
26787 \end_inset
26788
26789 ,
26790  where 
26791 \begin_inset Flex Code
26792 status collapsed
26793
26794 \begin_layout Plain Layout
26795 layoutname
26796 \end_layout
26797
26798 \end_inset
26799
26800  is the \SpecialChar LyX
26801  name of the layout,
26802  made lowercase,
26803  for example:
26804  chapter.
26805  This should 
26806 \emph on
26807 not
26808 \emph default
26809  contain any style information.
26810  Use 
26811 \begin_inset Flex Code
26812 status collapsed
26813
26814 \begin_layout Plain Layout
26815 HTMLStyle
26816 \end_layout
26817
26818 \end_inset
26819
26820  for that purpose.
26821 \end_layout
26822
26823 \begin_layout Description
26824 \begin_inset Flex Code
26825 status collapsed
26826
26827 \begin_layout Plain Layout
26828 HTMLClass
26829 \end_layout
26830
26831 \end_inset
26832
26833  [
26834 \begin_inset Flex Code
26835 status collapsed
26836
26837 \begin_layout Plain Layout
26838 string
26839 \end_layout
26840
26841 \end_inset
26842
26843 ] The CSS class to use for this paragraph.
26844  Note that,
26845  if the paragarph is of enumerate or itemize type,
26846  then the default will be 
26847 \begin_inset Quotes eld
26848 \end_inset
26849
26850 lyxenum
26851 \begin_inset Quotes erd
26852 \end_inset
26853
26854  or 
26855 \begin_inset Quotes eld
26856 \end_inset
26857
26858 lyxitem
26859 \begin_inset Quotes erd
26860 \end_inset
26861
26862 ,
26863  plus 
26864 \begin_inset Quotes eld
26865 \end_inset
26866
26867 i
26868 \begin_inset Quotes erd
26869 \end_inset
26870
26871 ,
26872  
26873 \begin_inset Quotes eld
26874 \end_inset
26875
26876 ii
26877 \begin_inset Quotes erd
26878 \end_inset
26879
26880 ,
26881  
26882 \begin_inset Quotes eld
26883 \end_inset
26884
26885 iii
26886 \begin_inset Quotes erd
26887 \end_inset
26888
26889 ,
26890  or 
26891 \begin_inset Quotes eld
26892 \end_inset
26893
26894 iv
26895 \begin_inset Quotes erd
26896 \end_inset
26897
26898 ,
26899  depending upon the depth.
26900  That can be over-ridden here.
26901  However,
26902  the suffix will not be added in that case.
26903  I.e.,
26904  the CSS class will always be exactly what it is declared to be here.
26905 \end_layout
26906
26907 \begin_layout Description
26908 \begin_inset Flex Code
26909 status collapsed
26910
26911 \begin_layout Plain Layout
26912 HTMLForceCSS
26913 \end_layout
26914
26915 \end_inset
26916
26917  [
26918 \begin_inset Flex Code
26919 status collapsed
26920
26921 \begin_layout Plain Layout
26922
26923 \emph on
26924 0
26925 \emph default
26926 ,1
26927 \end_layout
26928
26929 \end_inset
26930
26931 ] Whether to output the default CSS information \SpecialChar LyX
26932  generates for this layout,
26933  even if additional information is explicitly provided via 
26934 \begin_inset Flex Code
26935 status collapsed
26936
26937 \begin_layout Plain Layout
26938 HTMLStyle
26939 \end_layout
26940
26941 \end_inset
26942
26943 .
26944  Setting this to 
26945 \begin_inset Flex Code
26946 status collapsed
26947
26948 \begin_layout Plain Layout
26949 1
26950 \end_layout
26951
26952 \end_inset
26953
26954  allows you to alter or augment the generated CSS,
26955  rather than to override it completely.
26956  Default is 
26957 \begin_inset Flex Code
26958 status collapsed
26959
26960 \begin_layout Plain Layout
26961 0
26962 \end_layout
26963
26964 \end_inset
26965
26966 .
26967 \end_layout
26968
26969 \begin_layout Description
26970 \begin_inset Flex Code
26971 status collapsed
26972
26973 \begin_layout Plain Layout
26974 HTMLInToc
26975 \end_layout
26976
26977 \end_inset
26978
26979  [
26980 \begin_inset Flex Code
26981 status open
26982
26983 \begin_layout Plain Layout
26984 0,
26985 \emph on
26986 1
26987 \end_layout
26988
26989 \end_inset
26990
26991 ] Whether to include this paragraph (usually,
26992  a section or something of the sort) in the TOC.
26993  By default,
26994  true,
26995  so it should be set to false e.g.
26996 \begin_inset space ~
26997 \end_inset
26998
26999 for starred sections.
27000 \end_layout
27001
27002 \begin_layout Description
27003 \begin_inset Flex Code
27004 status collapsed
27005
27006 \begin_layout Plain Layout
27007 HTMLItem
27008 \end_layout
27009
27010 \end_inset
27011
27012  [
27013 \begin_inset Flex Code
27014 status collapsed
27015
27016 \begin_layout Plain Layout
27017 string
27018 \end_layout
27019
27020 \end_inset
27021
27022 ] The tag to be used for individual paragraphs of environments,
27023  replacing 
27024 \begin_inset Flex Code
27025 status collapsed
27026
27027 \begin_layout Plain Layout
27028 itemtag
27029 \end_layout
27030
27031 \end_inset
27032
27033  in the examples above.
27034  Defaults to 
27035 \begin_inset Flex Code
27036 status collapsed
27037
27038 \begin_layout Plain Layout
27039 div
27040 \end_layout
27041
27042 \end_inset
27043
27044 .
27045 \end_layout
27046
27047 \begin_layout Description
27048 \begin_inset Flex Code
27049 status collapsed
27050
27051 \begin_layout Plain Layout
27052 HTMLItemAttr
27053 \end_layout
27054
27055 \end_inset
27056
27057  [
27058 \begin_inset Flex Code
27059 status collapsed
27060
27061 \begin_layout Plain Layout
27062 string
27063 \end_layout
27064
27065 \end_inset
27066
27067 ] Attributes for the item tag.
27068  Defaults to
27069 \begin_inset Newline newline
27070 \end_inset
27071
27072
27073 \begin_inset Quotes eld
27074 \end_inset
27075
27076
27077 \begin_inset Flex Code
27078 status collapsed
27079
27080 \begin_layout Plain Layout
27081 class=`layoutname_item'
27082 \end_layout
27083
27084 \end_inset
27085
27086
27087 \begin_inset Quotes erd
27088 \end_inset
27089
27090 .
27091  This should 
27092 \emph on
27093 not
27094 \emph default
27095  contain any style information.
27096  Use 
27097 \begin_inset Flex Code
27098 status collapsed
27099
27100 \begin_layout Plain Layout
27101 HTMLStyle
27102 \end_layout
27103
27104 \end_inset
27105
27106  for that purpose.
27107 \end_layout
27108
27109 \begin_layout Description
27110 \begin_inset Flex Code
27111 status collapsed
27112
27113 \begin_layout Plain Layout
27114 HTMLLabel
27115 \end_layout
27116
27117 \end_inset
27118
27119  [
27120 \begin_inset Flex Code
27121 status collapsed
27122
27123 \begin_layout Plain Layout
27124 string
27125 \end_layout
27126
27127 \end_inset
27128
27129 ] The tag to be used for paragraph and item labels,
27130  replacing 
27131 \begin_inset Flex Code
27132 status collapsed
27133
27134 \begin_layout Plain Layout
27135 labeltag
27136 \end_layout
27137
27138 \end_inset
27139
27140  in the examples above.
27141  Defaults to 
27142 \begin_inset Flex Code
27143 status collapsed
27144
27145 \begin_layout Plain Layout
27146 span
27147 \end_layout
27148
27149 \end_inset
27150
27151 ,
27152  unless 
27153 \begin_inset Flex Code
27154 status collapsed
27155
27156 \begin_layout Plain Layout
27157 LabelType
27158 \end_layout
27159
27160 \end_inset
27161
27162  is either 
27163 \begin_inset Flex Code
27164 status collapsed
27165
27166 \begin_layout Plain Layout
27167 Top_Environment
27168 \end_layout
27169
27170 \end_inset
27171
27172  or 
27173 \begin_inset Flex Code
27174 status collapsed
27175
27176 \begin_layout Plain Layout
27177 Centered_Top_Environment
27178 \end_layout
27179
27180 \end_inset
27181
27182 ,
27183  in which case it defaults to 
27184 \begin_inset Flex Code
27185 status collapsed
27186
27187 \begin_layout Plain Layout
27188 div
27189 \end_layout
27190
27191 \end_inset
27192
27193 .
27194 \end_layout
27195
27196 \begin_layout Description
27197 \begin_inset Flex Code
27198 status collapsed
27199
27200 \begin_layout Plain Layout
27201 HTMLLabelAttr
27202 \end_layout
27203
27204 \end_inset
27205
27206  [
27207 \begin_inset Flex Code
27208 status collapsed
27209
27210 \begin_layout Plain Layout
27211 string
27212 \end_layout
27213
27214 \end_inset
27215
27216 ] Attributes for the label tag.
27217  Defaults to
27218 \begin_inset Newline newline
27219 \end_inset
27220
27221
27222 \begin_inset Quotes eld
27223 \end_inset
27224
27225
27226 \begin_inset Flex Code
27227 status collapsed
27228
27229 \begin_layout Plain Layout
27230 class=`layoutname_label'
27231 \end_layout
27232
27233 \end_inset
27234
27235
27236 \begin_inset Quotes erd
27237 \end_inset
27238
27239 .
27240  This should 
27241 \emph on
27242 not
27243 \emph default
27244  contain any style information.
27245  Use 
27246 \begin_inset Flex Code
27247 status collapsed
27248
27249 \begin_layout Plain Layout
27250 HTMLStyle
27251 \end_layout
27252
27253 \end_inset
27254
27255  for that purpose.
27256 \end_layout
27257
27258 \begin_layout Description
27259 \begin_inset Flex Code
27260 status collapsed
27261
27262 \begin_layout Plain Layout
27263 HTMLLabelFirst
27264 \end_layout
27265
27266 \end_inset
27267
27268  [
27269 \begin_inset Flex Code
27270 status collapsed
27271
27272 \begin_layout Plain Layout
27273
27274 \emph on
27275 0
27276 \emph default
27277 ,1
27278 \end_layout
27279
27280 \end_inset
27281
27282 ] Meaningful only for list-like environments,
27283  this tag controls whether the label tag is output before or inside the item tag.
27284  This is used,
27285  for example,
27286  in the description environment,
27287  where we want `
27288 \begin_inset Flex Code
27289 status collapsed
27290
27291 \begin_layout Plain Layout
27292 <dt>\SpecialChar ldots
27293 </dt><dd>\SpecialChar ldots
27294 </dd>
27295 \end_layout
27296
27297 \end_inset
27298
27299 .
27300  Default is 
27301 \begin_inset Flex Code
27302 status collapsed
27303
27304 \begin_layout Plain Layout
27305 0
27306 \end_layout
27307
27308 \end_inset
27309
27310 :
27311  The label tag is output inside the item tag.
27312 \end_layout
27313
27314 \begin_layout Description
27315 \begin_inset Flex Code
27316 status collapsed
27317
27318 \begin_layout Plain Layout
27319 HTMLPreamble
27320 \end_layout
27321
27322 \end_inset
27323
27324  Information to be output in the 
27325 \begin_inset Flex Code
27326 status collapsed
27327
27328 \begin_layout Plain Layout
27329 <head>
27330 \end_layout
27331
27332 \end_inset
27333
27334  section when this style is used.
27335  This might,
27336  for example,
27337  be used to include a 
27338 \begin_inset Flex Code
27339 status collapsed
27340
27341 \begin_layout Plain Layout
27342 <script>
27343 \end_layout
27344
27345 \end_inset
27346
27347  block defining an 
27348 \begin_inset Flex Code
27349 status collapsed
27350
27351 \begin_layout Plain Layout
27352 onclick
27353 \end_layout
27354
27355 \end_inset
27356
27357  handler.
27358 \end_layout
27359
27360 \begin_layout Description
27361 \begin_inset Flex Code
27362 status collapsed
27363
27364 \begin_layout Plain Layout
27365 HTMLStyle
27366 \end_layout
27367
27368 \end_inset
27369
27370  CSS style information to be included when this style is used.
27371  Note that this will automatically be wrapped in a layout-generated 
27372 \begin_inset Flex Code
27373 status collapsed
27374
27375 \begin_layout Plain Layout
27376 <style>
27377 \end_layout
27378
27379 \end_inset
27380
27381  block,
27382  so only the CSS itself need be included.
27383  Must end with 
27384 \begin_inset Flex Code
27385 status collapsed
27386
27387 \begin_layout Plain Layout
27388 EndHTMLStyle
27389 \end_layout
27390
27391 \end_inset
27392
27393 .
27394 \end_layout
27395
27396 \begin_layout Description
27397 \begin_inset Flex Code
27398 status collapsed
27399
27400 \begin_layout Plain Layout
27401 HTMLTag
27402 \end_layout
27403
27404 \end_inset
27405
27406  [
27407 \begin_inset Flex Code
27408 status collapsed
27409
27410 \begin_layout Plain Layout
27411 string
27412 \end_layout
27413
27414 \end_inset
27415
27416 ] The tag to be used for the main label,
27417  replacing 
27418 \begin_inset Flex Code
27419 status collapsed
27420
27421 \begin_layout Plain Layout
27422 tag
27423 \end_layout
27424
27425 \end_inset
27426
27427  in the examples above.
27428  Defaults to 
27429 \begin_inset Flex Code
27430 status collapsed
27431
27432 \begin_layout Plain Layout
27433 div
27434 \end_layout
27435
27436 \end_inset
27437
27438 .
27439 \end_layout
27440
27441 \begin_layout Description
27442 \begin_inset Flex Code
27443 status collapsed
27444
27445 \begin_layout Plain Layout
27446 HTMLTitle
27447 \end_layout
27448
27449 \end_inset
27450
27451  [
27452 \begin_inset Flex Code
27453 status collapsed
27454
27455 \begin_layout Plain Layout
27456
27457 \emph on
27458 0
27459 \emph default
27460 ,1
27461 \end_layout
27462
27463 \end_inset
27464
27465 ] Marks this style as the one to be used to generate the 
27466 \begin_inset Flex Code
27467 status collapsed
27468
27469 \begin_layout Plain Layout
27470 <title>
27471 \end_layout
27472
27473 \end_inset
27474
27475  tag for the XHTML file.
27476  By default,
27477  it is false.
27478  The 
27479 \begin_inset Flex Code
27480 status collapsed
27481
27482 \begin_layout Plain Layout
27483 stdtitle.inc
27484 \end_layout
27485
27486 \end_inset
27487
27488  file sets it to true for the 
27489 \begin_inset Flex Code
27490 status collapsed
27491
27492 \begin_layout Plain Layout
27493 title
27494 \end_layout
27495
27496 \end_inset
27497
27498  environment.
27499  
27500 \end_layout
27501
27502 \begin_layout Subsection
27503 InsetLayout XHTML
27504 \end_layout
27505
27506 \begin_layout Standard
27507 The XHTML output of insets can also be controlled by information in layout files.
27508 \begin_inset Foot
27509 status collapsed
27510
27511 \begin_layout Plain Layout
27512 At present,
27513  this is true only for 
27514 \begin_inset Quotes eld
27515 \end_inset
27516
27517 text
27518 \begin_inset Quotes erd
27519 \end_inset
27520
27521  insets (insets you can type into) and is not true for 
27522 \begin_inset Quotes eld
27523 \end_inset
27524
27525 command
27526 \begin_inset Quotes erd
27527 \end_inset
27528
27529  insets (insets that are associated with dialog boxes).
27530 \end_layout
27531
27532 \end_inset
27533
27534  Here,
27535  too,
27536  \SpecialChar LyX
27537  tries to provide sensible defaults,
27538  and it constructs default CSS style rules.
27539  But everything can be customized.
27540 \end_layout
27541
27542 \begin_layout Standard
27543 The XHTML \SpecialChar LyX
27544  outputs for an inset has the following form:
27545 \end_layout
27546
27547 \begin_layout LyX-Code
27548 <tag attr=
27549 \begin_inset Quotes erd
27550 \end_inset
27551
27552 value
27553 \begin_inset Quotes erd
27554 \end_inset
27555
27556 >
27557 \end_layout
27558
27559 \begin_layout LyX-Code
27560 <labeltag>Label</labeltag>
27561 \end_layout
27562
27563 \begin_layout LyX-Code
27564 <innertag attr=
27565 \begin_inset Quotes erd
27566 \end_inset
27567
27568 value
27569 \begin_inset Quotes erd
27570 \end_inset
27571
27572 >Contents of the inset.</innertag>
27573 \end_layout
27574
27575 \begin_layout LyX-Code
27576 </tag>
27577 \end_layout
27578
27579 \begin_layout Standard
27580 If the inset permits multiple paragraphs—
27581 that is,
27582  if 
27583 \begin_inset Flex Code
27584 status collapsed
27585
27586 \begin_layout Plain Layout
27587 MultiPar
27588 \end_layout
27589
27590 \end_inset
27591
27592  is true—
27593 then the contents of the inset will itself be output as paragraphs formatted according to the styles used for those paragraphs (standard,
27594  quote,
27595  and the like).
27596  The label tag is of course omitted if the paragraph does not have a label and,
27597  at present,
27598  is always 
27599 \begin_inset Flex Code
27600 status collapsed
27601
27602 \begin_layout Plain Layout
27603 span
27604 \end_layout
27605
27606 \end_inset
27607
27608 .
27609  The inner tag is optional and,
27610  by default,
27611  does not appear.
27612 \end_layout
27613
27614 \begin_layout Standard
27615 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
27616 \end_layout
27617
27618 \begin_layout Description
27619 \begin_inset Flex Code
27620 status collapsed
27621
27622 \begin_layout Plain Layout
27623 HTMLAttr
27624 \end_layout
27625
27626 \end_inset
27627
27628  [
27629 \begin_inset Flex Code
27630 status collapsed
27631
27632 \begin_layout Plain Layout
27633 string
27634 \end_layout
27635
27636 \end_inset
27637
27638 ] Specifies attribute information to be output with the main tag.
27639  For example,
27640  
27641 \begin_inset Quotes eld
27642 \end_inset
27643
27644
27645 \begin_inset Flex Code
27646 status collapsed
27647
27648 \begin_layout Plain Layout
27649 class=`myinset' onclick=`\SpecialChar ldots
27650 '
27651 \end_layout
27652
27653 \end_inset
27654
27655
27656 \begin_inset Quotes erd
27657 \end_inset
27658
27659 .
27660  By default,
27661  \SpecialChar LyX
27662  will output 
27663 \begin_inset Quotes eld
27664 \end_inset
27665
27666
27667 \begin_inset Flex Code
27668 status collapsed
27669
27670 \begin_layout Plain Layout
27671 class=`insetname'
27672 \end_layout
27673
27674 \end_inset
27675
27676
27677 \begin_inset Quotes erd
27678 \end_inset
27679
27680 ,
27681  where 
27682 \begin_inset Flex Code
27683 status collapsed
27684
27685 \begin_layout Plain Layout
27686 insetname
27687 \end_layout
27688
27689 \end_inset
27690
27691  is the \SpecialChar LyX
27692  name of the inset,
27693  made lowercase and with non-alphanumeric characters converted to underscores,
27694  for example:
27695  footnote.
27696 \end_layout
27697
27698 \begin_layout Description
27699 \begin_inset Flex Code
27700 status collapsed
27701
27702 \begin_layout Plain Layout
27703 HTMLForceCSS
27704 \end_layout
27705
27706 \end_inset
27707
27708  [
27709 \begin_inset Flex Code
27710 status collapsed
27711
27712 \begin_layout Plain Layout
27713
27714 \emph on
27715 0
27716 \emph default
27717 ,1
27718 \end_layout
27719
27720 \end_inset
27721
27722 ] Whether to output the default CSS information \SpecialChar LyX
27723  generates for this layout,
27724  even if additional information is explicitly provided via 
27725 \begin_inset Flex Code
27726 status collapsed
27727
27728 \begin_layout Plain Layout
27729 HTMLStyle
27730 \end_layout
27731
27732 \end_inset
27733
27734 .
27735  Setting this to 
27736 \begin_inset Flex Code
27737 status collapsed
27738
27739 \begin_layout Plain Layout
27740 1
27741 \end_layout
27742
27743 \end_inset
27744
27745  allows you to alter or augment the generated CSS,
27746  rather than to override it completely.
27747  Default is 0.
27748 \end_layout
27749
27750 \begin_layout Description
27751 \begin_inset Flex Code
27752 status collapsed
27753
27754 \begin_layout Plain Layout
27755 HTMLInnerAttr
27756 \end_layout
27757
27758 \end_inset
27759
27760  [
27761 \begin_inset Flex Code
27762 status collapsed
27763
27764 \begin_layout Plain Layout
27765 string
27766 \end_layout
27767
27768 \end_inset
27769
27770 ] Attributes for the inner tag.
27771  Defaults to
27772 \begin_inset Newline newline
27773 \end_inset
27774
27775
27776 \begin_inset Quotes eld
27777 \end_inset
27778
27779
27780 \begin_inset Flex Code
27781 status collapsed
27782
27783 \begin_layout Plain Layout
27784 class=`insetname_inner'
27785 \end_layout
27786
27787 \end_inset
27788
27789
27790 \begin_inset Quotes erd
27791 \end_inset
27792
27793 .
27794 \end_layout
27795
27796 \begin_layout Description
27797 \begin_inset Flex Code
27798 status collapsed
27799
27800 \begin_layout Plain Layout
27801 HTMLInnerTag
27802 \end_layout
27803
27804 \end_inset
27805
27806  [
27807 \begin_inset Flex Code
27808 status collapsed
27809
27810 \begin_layout Plain Layout
27811 string
27812 \end_layout
27813
27814 \end_inset
27815
27816 ] The inner tag,
27817  replacing 
27818 \begin_inset Flex Code
27819 status collapsed
27820
27821 \begin_layout Plain Layout
27822 innertag
27823 \end_layout
27824
27825 \end_inset
27826
27827  in the examples above.
27828  By default,
27829  there is none.
27830 \end_layout
27831
27832 \begin_layout Description
27833 \begin_inset Flex Code
27834 status collapsed
27835
27836 \begin_layout Plain Layout
27837 HTMLIsBlock
27838 \end_layout
27839
27840 \end_inset
27841
27842  [
27843 \begin_inset Flex Code
27844 status collapsed
27845
27846 \begin_layout Plain Layout
27847 0,
27848 \emph on
27849 1
27850 \end_layout
27851
27852 \end_inset
27853
27854 ] Whether this inset represents a standalone block of text (such as a footnote) or instead represents material that is included in the surrounding text (such as a branch).
27855  Defaults to 1.
27856 \end_layout
27857
27858 \begin_layout Description
27859 \begin_inset Flex Code
27860 status collapsed
27861
27862 \begin_layout Plain Layout
27863 HTMLLabel
27864 \end_layout
27865
27866 \end_inset
27867
27868  [
27869 \begin_inset Flex Code
27870 status collapsed
27871
27872 \begin_layout Plain Layout
27873 string
27874 \end_layout
27875
27876 \end_inset
27877
27878 ] A label for this inset,
27879  possibly including a reference to a counter.
27880  For example,
27881  for footnote,
27882  it might be:
27883  
27884 \begin_inset Flex Code
27885 status collapsed
27886
27887 \begin_layout Plain Layout
27888
27889 \backslash
27890 arabic{footnote}
27891 \end_layout
27892
27893 \end_inset
27894
27895 .
27896  This is optional,
27897  and there is no default.
27898 \end_layout
27899
27900 \begin_layout Description
27901 \begin_inset Flex Code
27902 status collapsed
27903
27904 \begin_layout Plain Layout
27905 HTMLPreamble
27906 \end_layout
27907
27908 \end_inset
27909
27910  Information to be output in the 
27911 \begin_inset Flex Code
27912 status collapsed
27913
27914 \begin_layout Plain Layout
27915 <head>
27916 \end_layout
27917
27918 \end_inset
27919
27920  section when this style is used.
27921  This might,
27922  for example,
27923  be used to include a 
27924 \begin_inset Flex Code
27925 status collapsed
27926
27927 \begin_layout Plain Layout
27928 <script>
27929 \end_layout
27930
27931 \end_inset
27932
27933  block defining an 
27934 \begin_inset Flex Code
27935 status collapsed
27936
27937 \begin_layout Plain Layout
27938 onclick
27939 \end_layout
27940
27941 \end_inset
27942
27943  handler.
27944 \end_layout
27945
27946 \begin_layout Description
27947 \begin_inset Flex Code
27948 status collapsed
27949
27950 \begin_layout Plain Layout
27951 HTMLStyle
27952 \end_layout
27953
27954 \end_inset
27955
27956  CSS style information to be included when this style is used.
27957  Note that this will automatically be wrapped in a layout-generated 
27958 \begin_inset Flex Code
27959 status collapsed
27960
27961 \begin_layout Plain Layout
27962 <style>
27963 \end_layout
27964
27965 \end_inset
27966
27967  block,
27968  so only the CSS itself need be included.
27969 \end_layout
27970
27971 \begin_layout Description
27972 \begin_inset Flex Code
27973 status collapsed
27974
27975 \begin_layout Plain Layout
27976 HTMLTag
27977 \end_layout
27978
27979 \end_inset
27980
27981  [
27982 \begin_inset Flex Code
27983 status collapsed
27984
27985 \begin_layout Plain Layout
27986 string
27987 \end_layout
27988
27989 \end_inset
27990
27991 ] The tag to be used for the main label,
27992  replacing 
27993 \begin_inset Flex Code
27994 status collapsed
27995
27996 \begin_layout Plain Layout
27997 tag
27998 \end_layout
27999
28000 \end_inset
28001
28002  in the examples above.
28003  The default depends upon the setting of 
28004 \begin_inset Flex Code
28005 status collapsed
28006
28007 \begin_layout Plain Layout
28008 MultiPar
28009 \end_layout
28010
28011 \end_inset
28012
28013 :
28014  If 
28015 \begin_inset Flex Code
28016 status collapsed
28017
28018 \begin_layout Plain Layout
28019 MultiPar
28020 \end_layout
28021
28022 \end_inset
28023
28024  is true,
28025  the default is 
28026 \begin_inset Flex Code
28027 status collapsed
28028
28029 \begin_layout Plain Layout
28030 div
28031 \end_layout
28032
28033 \end_inset
28034
28035 ;
28036  if it is false,
28037  the default is 
28038 \begin_inset Flex Code
28039 status collapsed
28040
28041 \begin_layout Plain Layout
28042 span
28043 \end_layout
28044
28045 \end_inset
28046
28047 .
28048 \end_layout
28049
28050 \begin_layout Subsection
28051 Float XHTML
28052 \end_layout
28053
28054 \begin_layout Standard
28055 The XHTML output for floats too can be controlled by layout information.
28056  The output has the following form:
28057 \end_layout
28058
28059 \begin_layout LyX-Code
28060 <tag attr=
28061 \begin_inset Quotes erd
28062 \end_inset
28063
28064 value
28065 \begin_inset Quotes erd
28066 \end_inset
28067
28068 >
28069 \end_layout
28070
28071 \begin_layout LyX-Code
28072 Contents of the float.
28073 \end_layout
28074
28075 \begin_layout LyX-Code
28076 </tag>
28077 \end_layout
28078
28079 \begin_layout Standard
28080 The caption,
28081  if there is one,
28082  is a separate inset and will be output as such.
28083  Its appearance can be controlled via the InsetLayout for caption insets.
28084  
28085 \end_layout
28086
28087 \begin_layout Description
28088 \begin_inset Flex Code
28089 status collapsed
28090
28091 \begin_layout Plain Layout
28092 HTMLAttr
28093 \end_layout
28094
28095 \end_inset
28096
28097  [
28098 \begin_inset Flex Code
28099 status collapsed
28100
28101 \begin_layout Plain Layout
28102 string
28103 \end_layout
28104
28105 \end_inset
28106
28107 ] Specifies attribute information to be output with the main tag.
28108  For example,
28109  
28110 \begin_inset Quotes eld
28111 \end_inset
28112
28113
28114 \begin_inset Flex Code
28115 status collapsed
28116
28117 \begin_layout Plain Layout
28118 class=`myfloat' onclick=`\SpecialChar ldots
28119 '
28120 \end_layout
28121
28122 \end_inset
28123
28124
28125 \begin_inset Quotes erd
28126 \end_inset
28127
28128 .
28129  By default,
28130  \SpecialChar LyX
28131  will output 
28132 \begin_inset Quotes eld
28133 \end_inset
28134
28135
28136 \begin_inset Flex Code
28137 status collapsed
28138
28139 \begin_layout Plain Layout
28140 class=`float float-floattype'
28141 \end_layout
28142
28143 \end_inset
28144
28145
28146 \begin_inset Quotes erd
28147 \end_inset
28148
28149 ,
28150  where 
28151 \begin_inset Flex Code
28152 status collapsed
28153
28154 \begin_layout Plain Layout
28155 floattype
28156 \end_layout
28157
28158 \end_inset
28159
28160  is \SpecialChar LyX
28161 's name for this type of float,
28162  as determined by the float declaration (see 
28163 \begin_inset CommandInset ref
28164 LatexCommand ref
28165 reference "subsec:Floats"
28166 nolink "false"
28167
28168 \end_inset
28169
28170 ),
28171  though made lowercase and with non-alphanumeric characters converted to underscores,
28172  for example:
28173  float-table.
28174 \end_layout
28175
28176 \begin_layout Description
28177 \begin_inset Flex Code
28178 status collapsed
28179
28180 \begin_layout Plain Layout
28181 HTMLStyle
28182 \end_layout
28183
28184 \end_inset
28185
28186  CSS style information to be included when this float is used.
28187  Note that this will automatically be wrapped in a layout-generated 
28188 \begin_inset Flex Code
28189 status collapsed
28190
28191 \begin_layout Plain Layout
28192 <style>
28193 \end_layout
28194
28195 \end_inset
28196
28197  block,
28198  so only the CSS itself need be included.
28199 \end_layout
28200
28201 \begin_layout Description
28202 \begin_inset Flex Code
28203 status collapsed
28204
28205 \begin_layout Plain Layout
28206 HTMLTag
28207 \end_layout
28208
28209 \end_inset
28210
28211  [
28212 \begin_inset Flex Code
28213 status collapsed
28214
28215 \begin_layout Plain Layout
28216 string
28217 \end_layout
28218
28219 \end_inset
28220
28221 ] The tag to be used for this float,
28222  replacing 
28223 \begin_inset Quotes eld
28224 \end_inset
28225
28226
28227 \begin_inset Flex Code
28228 status collapsed
28229
28230 \begin_layout Plain Layout
28231 tag
28232 \end_layout
28233
28234 \end_inset
28235
28236
28237 \begin_inset Quotes erd
28238 \end_inset
28239
28240  in the example above.
28241  The default is 
28242 \begin_inset Flex Code
28243 status collapsed
28244
28245 \begin_layout Plain Layout
28246 div
28247 \end_layout
28248
28249 \end_inset
28250
28251  and will rarely need changing.
28252 \end_layout
28253
28254 \begin_layout Subsection
28255 Bibliography formatting
28256 \end_layout
28257
28258 \begin_layout Standard
28259 The bibliography can be formatted using 
28260 \begin_inset Flex Code
28261 status collapsed
28262
28263 \begin_layout Plain Layout
28264 CiteFormat
28265 \end_layout
28266
28267 \end_inset
28268
28269  blocks.
28270  See 
28271 \begin_inset CommandInset ref
28272 LatexCommand ref
28273 reference "subsec:Citation-format-description"
28274 nolink "false"
28275
28276 \end_inset
28277
28278  for the details.
28279 \end_layout
28280
28281 \begin_layout Subsection
28282 \SpecialChar LyX
28283 -generated CSS
28284 \end_layout
28285
28286 \begin_layout Standard
28287 We have several times mentioned that \SpecialChar LyX
28288  will generate default CSS style rules for both insets and paragraph styles,
28289  based upon the other layout information that is provided.
28290  In this section,
28291  we shall say a word about which layout information \SpecialChar LyX
28292  uses and how.
28293 \end_layout
28294
28295 \begin_layout Standard
28296 At present,
28297  \SpecialChar LyX
28298  auto-generates CSS only for font information,
28299  making use of the 
28300 \begin_inset Flex Code
28301 status collapsed
28302
28303 \begin_layout Plain Layout
28304 Family
28305 \end_layout
28306
28307 \end_inset
28308
28309 ,
28310  
28311 \begin_inset Flex Code
28312 status collapsed
28313
28314 \begin_layout Plain Layout
28315 Series
28316 \end_layout
28317
28318 \end_inset
28319
28320 ,
28321  
28322 \begin_inset Flex Code
28323 status collapsed
28324
28325 \begin_layout Plain Layout
28326 Shape
28327 \end_layout
28328
28329 \end_inset
28330
28331 ,
28332  and 
28333 \begin_inset Flex Code
28334 status collapsed
28335
28336 \begin_layout Plain Layout
28337 Size
28338 \end_layout
28339
28340 \end_inset
28341
28342  specified in the 
28343 \begin_inset Flex Code
28344 status collapsed
28345
28346 \begin_layout Plain Layout
28347 Font
28348 \end_layout
28349
28350 \end_inset
28351
28352  declaration (see 
28353 \begin_inset CommandInset ref
28354 LatexCommand ref
28355 reference "subsec:Font-description"
28356 nolink "false"
28357
28358 \end_inset
28359
28360 ).
28361  The translation is mostly straightforward and obvious.
28362  For example,
28363  
28364 \begin_inset Quotes eld
28365 \end_inset
28366
28367
28368 \begin_inset Flex Code
28369 status collapsed
28370
28371 \begin_layout Plain Layout
28372 Family Sans
28373 \end_layout
28374
28375 \end_inset
28376
28377
28378 \begin_inset Quotes erd
28379 \end_inset
28380
28381  becomes 
28382 \begin_inset Quotes eld
28383 \end_inset
28384
28385
28386 \begin_inset Flex Code
28387 status collapsed
28388
28389 \begin_layout Plain Layout
28390 font-family:
28391  sans-serif;
28392 \end_layout
28393
28394 \end_inset
28395
28396
28397 \begin_inset Quotes erd
28398 \end_inset
28399
28400 .
28401  The correspondence of \SpecialChar LyX
28402  sizes and CSS sizes is a little less obvious but nonetheless intuitive.
28403  See the 
28404 \begin_inset Flex Code
28405 status collapsed
28406
28407 \begin_layout Plain Layout
28408 getSizeCSS()
28409 \end_layout
28410
28411 \end_inset
28412
28413  function in 
28414 \begin_inset Flex URL
28415 status collapsed
28416
28417 \begin_layout Plain Layout
28418
28419 src/FontInfo.cpp
28420 \end_layout
28421
28422 \end_inset
28423
28424  for the details.
28425 \end_layout
28426
28427 \begin_layout Section
28428 \begin_inset CommandInset label
28429 LatexCommand label
28430 name "sec:Tags-for-DocBook"
28431
28432 \end_inset
28433
28434 Tags for DocBook output
28435 \end_layout
28436
28437 \begin_layout Standard
28438 As with \SpecialChar LaTeX
28439  or XHTML,
28440  the format of \SpecialChar LyX
28441 's DocBook output is also controlled by layout information.
28442  In general,
28443  \SpecialChar LyX
28444  provides sensible defaults;
28445  however,
28446  much of the styling is lost during the conversion,
28447  as DocBook is strictly semantic and does not allow formatting.
28448  When possible,
28449  information from \SpecialChar LyX
28450  will be rendered in 
28451 \family typewriter
28452 role
28453 \family default
28454  attributes.
28455 \end_layout
28456
28457 \begin_layout Standard
28458 In many cases,
28459  then,
28460  you may not have to do anything at all to get acceptable DocBook output for your own environments,
28461  custom insets,
28462  and so forth.
28463  But in some cases you will,
28464  and so \SpecialChar LyX
28465  provides a number of layout tags that can be used to customize the DocBook that is generated.
28466 \end_layout
28467
28468 \begin_layout Standard
28469 Labels are rarely output,
28470  as they are redundant in DocBook:
28471  this information is carried by the tags themselves,
28472  and whether labels appear in the final documents (after processing of DocBook files) is controlled by the stylesheets.
28473  However,
28474  sometimes,
28475  labels are not redundant content,
28476  such as definition lists:
28477  in this case,
28478  the term being defined will be the label.
28479 \end_layout
28480
28481 \begin_layout Subsection
28482 \begin_inset CommandInset label
28483 LatexCommand label
28484 name "subsec:Paragraph-Style-DocBook"
28485
28486 \end_inset
28487
28488 Paragraph styles
28489 \end_layout
28490
28491 \begin_layout Standard
28492 The sort of DocBook \SpecialChar LyX
28493  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
28494  a command,
28495  or an environment,
28496  where this is itself determined by the contents of the corresponding 
28497 \begin_inset Flex Code
28498 status collapsed
28499
28500 \begin_layout Plain Layout
28501 \SpecialChar LaTeX
28502 Type
28503 \end_layout
28504
28505 \end_inset
28506
28507  tag.
28508 \end_layout
28509
28510 \begin_layout Standard
28511 For a command or normal paragraph,
28512  the output DocBook has the following form:
28513 \end_layout
28514
28515 \begin_layout LyX-Code
28516 <tag attr>
28517 \end_layout
28518
28519 \begin_layout LyX-Code
28520 Contents of the paragraph.
28521 \end_layout
28522
28523 \begin_layout LyX-Code
28524 </tag>
28525 \end_layout
28526
28527 \begin_layout Standard
28528 For an environment that is not some sort of list,
28529  the generated DocBook takes this form:
28530 \end_layout
28531
28532 \begin_layout LyX-Code
28533 <tag attr>
28534 \end_layout
28535
28536 \begin_layout LyX-Code
28537 <itemtag>First paragraph.</itemtag>
28538 \end_layout
28539
28540 \begin_layout LyX-Code
28541 <itemtag>Second paragraph.</itemtag>
28542 \end_layout
28543
28544 \begin_layout LyX-Code
28545 </tag>
28546 \end_layout
28547
28548 \begin_layout Standard
28549 For a list,
28550  the resulting DocBook takes this form:
28551 \end_layout
28552
28553 \begin_layout LyX-Code
28554 <tag attr>
28555 \end_layout
28556
28557 \begin_layout LyX-Code
28558 <itemtag attr>First item.</itemtag>
28559 \end_layout
28560
28561 \begin_layout LyX-Code
28562 <itemtag attr>Second item.</itemtag>
28563 \end_layout
28564
28565 \begin_layout LyX-Code
28566 </tag>
28567 \end_layout
28568
28569 \begin_layout Standard
28570 The specific tags and roles output for each paragraph type can be controlled by means of the layout tags we are about to describe.
28571  Please note that,
28572  due to the very nature of DocBook,
28573  no sensible defaults really exist,
28574  and the values must always be carefully chosen.
28575 \end_layout
28576
28577 \begin_layout Description
28578 \begin_inset Flex Code
28579 status collapsed
28580
28581 \begin_layout Plain Layout
28582 DocBookAttr
28583 \end_layout
28584
28585 \end_inset
28586
28587  [
28588 \begin_inset Flex Code
28589 status collapsed
28590
28591 \begin_layout Plain Layout
28592 string
28593 \end_layout
28594
28595 \end_inset
28596
28597 ] Specifies attribute information to be output with the main tag,
28598  replacing 
28599 \begin_inset Quotes eld
28600 \end_inset
28601
28602
28603 \begin_inset Flex Code
28604 status collapsed
28605
28606 \begin_layout Plain Layout
28607 attr
28608 \end_layout
28609
28610 \end_inset
28611
28612
28613 \begin_inset Quotes erd
28614 \end_inset
28615
28616  in the example above.
28617  This information can be used in further processing of the DocBook files.
28618 \end_layout
28619
28620 \begin_layout Description
28621 \begin_inset Flex Code
28622 status collapsed
28623
28624 \begin_layout Plain Layout
28625 DocBookTag
28626 \end_layout
28627
28628 \end_inset
28629
28630  [
28631 \begin_inset Flex Code
28632 status collapsed
28633
28634 \begin_layout Plain Layout
28635 string
28636 \end_layout
28637
28638 \end_inset
28639
28640 ] The tag to be used for this inset,
28641  replacing 
28642 \begin_inset Quotes eld
28643 \end_inset
28644
28645
28646 \begin_inset Flex Code
28647 status collapsed
28648
28649 \begin_layout Plain Layout
28650 tag
28651 \end_layout
28652
28653 \end_inset
28654
28655
28656 \begin_inset Quotes erd
28657 \end_inset
28658
28659  in the example above.
28660  The default is the name of the float and always needs to be changed,
28661  as DocBook provides no generic tag.
28662 \end_layout
28663
28664 \begin_layout Description
28665 \begin_inset Flex Code
28666 status collapsed
28667
28668 \begin_layout Plain Layout
28669 DocBookTagType
28670 \end_layout
28671
28672 \end_inset
28673
28674  [
28675 \begin_inset Flex Code
28676 status collapsed
28677
28678 \begin_layout Plain Layout
28679 block,
28680  paragraph,
28681  inline
28682 \end_layout
28683
28684 \end_inset
28685
28686 ] The new-line policy for this tag,
28687  see Section
28688 \begin_inset space ~
28689 \end_inset
28690
28691
28692 \begin_inset CommandInset ref
28693 LatexCommand ref
28694 reference "subsec:DocBook-New-line-policy"
28695 plural "false"
28696 caps "false"
28697 noprefix "false"
28698 nolink "false"
28699
28700 \end_inset
28701
28702  for the details.
28703 \end_layout
28704
28705 \begin_layout Subsection
28706 New-line policy
28707 \begin_inset CommandInset label
28708 LatexCommand label
28709 name "subsec:DocBook-New-line-policy"
28710
28711 \end_inset
28712
28713
28714 \end_layout
28715
28716 \begin_layout Standard
28717 For all tags,
28718  there are three possible policies for outputting new lines (given in the 
28719 \begin_inset Flex Code
28720 status collapsed
28721
28722 \begin_layout Plain Layout
28723 DocBook*TagType
28724 \end_layout
28725
28726 \end_inset
28727
28728  attribute):
28729 \end_layout
28730
28731 \begin_layout Itemize
28732 \begin_inset Quotes eld
28733 \end_inset
28734
28735
28736 \begin_inset Flex Code
28737 status collapsed
28738
28739 \begin_layout Plain Layout
28740 block
28741 \end_layout
28742
28743 \end_inset
28744
28745
28746 \begin_inset Quotes erd
28747 \end_inset
28748
28749 :
28750  the opening and closing tags are on their own lines (i.e.
28751  a line feed after and before the opening and the closing tags).
28752  Typical elements are floats.
28753  For instance:
28754 \end_layout
28755
28756 \begin_layout LyX-Code
28757 Content before
28758 \end_layout
28759
28760 \begin_layout LyX-Code
28761 <blocktag>
28762 \end_layout
28763
28764 \begin_layout LyX-Code
28765   Contents of the block.
28766 \end_layout
28767
28768 \begin_layout LyX-Code
28769 </blocktag>
28770 \end_layout
28771
28772 \begin_layout LyX-Code
28773 Content after
28774 \end_layout
28775
28776 \begin_layout Itemize
28777 \begin_inset Quotes eld
28778 \end_inset
28779
28780
28781 \begin_inset Flex Code
28782 status collapsed
28783
28784 \begin_layout Plain Layout
28785 paragraph
28786 \end_layout
28787
28788 \end_inset
28789
28790
28791 \begin_inset Quotes erd
28792 \end_inset
28793
28794 :
28795  the opening and closing tags are on the same,
28796  new line;
28797  a line feed is output before the opening tag and after the closing tag.
28798  Typical elements are paragraphs and list items.
28799  For instance:
28800 \end_layout
28801
28802 \begin_layout LyX-Code
28803 Content before
28804 \end_layout
28805
28806 \begin_layout LyX-Code
28807 <paratag>Contents of the paragraph.</paratag>
28808 \end_layout
28809
28810 \begin_layout LyX-Code
28811 Content after
28812 \end_layout
28813
28814 \begin_layout Itemize
28815 \begin_inset Quotes eld
28816 \end_inset
28817
28818
28819 \begin_inset Flex Code
28820 status collapsed
28821
28822 \begin_layout Plain Layout
28823 inline
28824 \end_layout
28825
28826 \end_inset
28827
28828
28829 \begin_inset Quotes erd
28830 \end_inset
28831
28832 :
28833  the opening and closing tags are on the same line as the rest of the content.
28834  No line feeds are output.
28835  Typical elements are fonts.
28836  For instance:
28837 \end_layout
28838
28839 \begin_layout LyX-Code
28840 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
28841 \end_layout
28842
28843 \begin_layout Standard
28844 The default value is always 
28845 \begin_inset Quotes eld
28846 \end_inset
28847
28848
28849 \begin_inset Flex Code
28850 status collapsed
28851
28852 \begin_layout Plain Layout
28853 block
28854 \end_layout
28855
28856 \end_inset
28857
28858
28859 \begin_inset Quotes erd
28860 \end_inset
28861
28862 .
28863 \end_layout
28864
28865 \begin_layout Subsection
28866 InsetLayout DocBook
28867 \end_layout
28868
28869 \begin_layout Standard
28870 The DocBook output of insets can also be controlled by information in layout files.
28871 \end_layout
28872
28873 \begin_layout Standard
28874 The DocBook \SpecialChar LyX
28875  outputs for an inset has the following form:
28876 \end_layout
28877
28878 \begin_layout LyX-Code
28879 <wrappertag wrapperattr>
28880 \end_layout
28881
28882 \begin_layout LyX-Code
28883   <tag attr>
28884 \end_layout
28885
28886 \begin_layout LyX-Code
28887     <innertag innerattr>
28888 \end_layout
28889
28890 \begin_layout LyX-Code
28891       Contents of the inset.
28892 \end_layout
28893
28894 \begin_layout LyX-Code
28895     </innertag>
28896 \end_layout
28897
28898 \begin_layout LyX-Code
28899   </tag>
28900 \end_layout
28901
28902 \begin_layout LyX-Code
28903 </wrappertag>
28904 \end_layout
28905
28906 \begin_layout Standard
28907 For an itemising inset,
28908  it rather looks like this:
28909 \end_layout
28910
28911 \begin_layout LyX-Code
28912 <wrappertag wrapperattr>
28913 \end_layout
28914
28915 \begin_layout LyX-Code
28916   <tag attr>
28917 \end_layout
28918
28919 \begin_layout LyX-Code
28920     <innertag innerattr>
28921 \end_layout
28922
28923 \begin_layout LyX-Code
28924       <itemwrappertag itemwrapperattr>
28925 \end_layout
28926
28927 \begin_layout LyX-Code
28928         <itemlabeltag itemattr>
28929 \end_layout
28930
28931 \begin_layout LyX-Code
28932           Label of the first item.
28933 \end_layout
28934
28935 \begin_layout LyX-Code
28936         </itemtag>
28937 \end_layout
28938
28939 \begin_layout LyX-Code
28940         <itemtag itemattr>
28941 \end_layout
28942
28943 \begin_layout LyX-Code
28944           <itemtag itemattr>
28945 \end_layout
28946
28947 \begin_layout LyX-Code
28948             Contents of the first item.
28949 \end_layout
28950
28951 \begin_layout LyX-Code
28952           </itemtag>
28953 \end_layout
28954
28955 \begin_layout LyX-Code
28956         </itemtag>
28957 \end_layout
28958
28959 \begin_layout LyX-Code
28960       </itemwrappertag>
28961 \end_layout
28962
28963 \begin_layout LyX-Code
28964       <itemwrappertag itemwrapperattr>
28965 \end_layout
28966
28967 \begin_layout LyX-Code
28968         <itemlabeltag itemattr>
28969 \end_layout
28970
28971 \begin_layout LyX-Code
28972           Label of the second item.
28973 \end_layout
28974
28975 \begin_layout LyX-Code
28976         </itemtag>
28977 \end_layout
28978
28979 \begin_layout LyX-Code
28980         <itemtag itemattr>
28981 \end_layout
28982
28983 \begin_layout LyX-Code
28984           <itemtag itemattr>
28985 \end_layout
28986
28987 \begin_layout LyX-Code
28988             Contents of the second item.
28989 \end_layout
28990
28991 \begin_layout LyX-Code
28992           </itemtag>
28993 \end_layout
28994
28995 \begin_layout LyX-Code
28996         </itemtag>
28997 \end_layout
28998
28999 \begin_layout LyX-Code
29000       </itemwrappertag>
29001 \end_layout
29002
29003 \begin_layout LyX-Code
29004       ...
29005 \end_layout
29006
29007 \begin_layout LyX-Code
29008     </innertag>
29009 \end_layout
29010
29011 \begin_layout LyX-Code
29012   </tag>
29013 \end_layout
29014
29015 \begin_layout LyX-Code
29016 </wrappertag>
29017 \end_layout
29018
29019 \begin_layout Standard
29020 If the inset permits multiple paragraphs—
29021 that is,
29022  if 
29023 \begin_inset Flex Code
29024 status collapsed
29025
29026 \begin_layout Plain Layout
29027 MultiPar
29028 \end_layout
29029
29030 \end_inset
29031
29032  is true—
29033 then the contents of the inset will themselves be output as paragraphs formatted according to the styles used for those paragraphs (standard,
29034  quote,
29035  and the like).
29036  The inner tag is optional and,
29037  by default,
29038  does not appear.
29039 \end_layout
29040
29041 \begin_layout Standard
29042 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
29043 \end_layout
29044
29045 \begin_layout Description
29046 \begin_inset Flex Code
29047 status collapsed
29048
29049 \begin_layout Plain Layout
29050 DocBookAttr
29051 \end_layout
29052
29053 \end_inset
29054
29055  [
29056 \begin_inset Flex Code
29057 status collapsed
29058
29059 \begin_layout Plain Layout
29060 string
29061 \end_layout
29062
29063 \end_inset
29064
29065 ] Specifies attribute information to be output with the main tag,
29066  replacing 
29067 \begin_inset Quotes eld
29068 \end_inset
29069
29070
29071 \begin_inset Flex Code
29072 status collapsed
29073
29074 \begin_layout Plain Layout
29075 attr
29076 \end_layout
29077
29078 \end_inset
29079
29080
29081 \begin_inset Quotes erd
29082 \end_inset
29083
29084  in the example above.
29085  This information can be used in further processing of the DocBook files.
29086 \end_layout
29087
29088 \begin_layout Description
29089 \begin_inset Flex Code
29090 status collapsed
29091
29092 \begin_layout Plain Layout
29093 DocBookInInfo
29094 \end_layout
29095
29096 \end_inset
29097
29098  [
29099 \begin_inset Flex Code
29100 status collapsed
29101
29102 \begin_layout Plain Layout
29103 never,
29104  always,
29105  maybe
29106 \end_layout
29107
29108 \end_inset
29109
29110 ] Specifies whether this tag goes into the 
29111 \begin_inset Flex Code
29112 status collapsed
29113
29114 \begin_layout Plain Layout
29115 <info>
29116 \end_layout
29117
29118 \end_inset
29119
29120  tag at the beginning of the parent layout.
29121  
29122 \begin_inset Flex Code
29123 status collapsed
29124
29125 \begin_layout Plain Layout
29126 never
29127 \end_layout
29128
29129 \end_inset
29130
29131  indicates that the tag never goes into 
29132 \begin_inset Flex Code
29133 status collapsed
29134
29135 \begin_layout Plain Layout
29136 <info>
29137 \end_layout
29138
29139 \end_inset
29140
29141  (this is default value,
29142  and corresponds to usual content).
29143  
29144 \begin_inset Flex Code
29145 status collapsed
29146
29147 \begin_layout Plain Layout
29148 always
29149 \end_layout
29150
29151 \end_inset
29152
29153  indicates that the tag always goes into 
29154 \begin_inset Flex Code
29155 status collapsed
29156
29157 \begin_layout Plain Layout
29158 <info>
29159 \end_layout
29160
29161 \end_inset
29162
29163  (this corresponds to usual metadata):
29164  if there is no 
29165 \begin_inset Flex Code
29166 status collapsed
29167
29168 \begin_layout Plain Layout
29169 <info>
29170 \end_layout
29171
29172 \end_inset
29173
29174  tag for the parent,
29175  one 
29176 \series bold
29177 will
29178 \series default
29179  be generated.
29180  
29181 \begin_inset Flex Code
29182 status collapsed
29183
29184 \begin_layout Plain Layout
29185 maybe
29186 \end_layout
29187
29188 \end_inset
29189
29190  indicates that the tag may go into 
29191 \begin_inset Flex Code
29192 status collapsed
29193
29194 \begin_layout Plain Layout
29195 <info>
29196 \end_layout
29197
29198 \end_inset
29199
29200  (this is only the case for titles):
29201  if there is no 
29202 \begin_inset Flex Code
29203 status collapsed
29204
29205 \begin_layout Plain Layout
29206 <info>
29207 \end_layout
29208
29209 \end_inset
29210
29211  tag for the parent,
29212  
29213 \series bold
29214 none
29215 \series default
29216  will be generated,
29217  the corresponding tag will be output directly as content.
29218 \end_layout
29219
29220 \begin_layout Description
29221 \begin_inset Flex Code
29222 status collapsed
29223
29224 \begin_layout Plain Layout
29225 DocBookItemAttr
29226 \end_layout
29227
29228 \end_inset
29229
29230  [
29231 \begin_inset Flex Code
29232 status collapsed
29233
29234 \begin_layout Plain Layout
29235 string
29236 \end_layout
29237
29238 \end_inset
29239
29240 ] Specifies attribute information to be output with the item tag,
29241  replacing 
29242 \begin_inset Quotes eld
29243 \end_inset
29244
29245
29246 \begin_inset Flex Code
29247 status collapsed
29248
29249 \begin_layout Plain Layout
29250 itemattr
29251 \end_layout
29252
29253 \end_inset
29254
29255
29256 \begin_inset Quotes erd
29257 \end_inset
29258
29259  in the example above.
29260  This information can be used in further processing of the DocBook files.
29261 \end_layout
29262
29263 \begin_layout Description
29264 \begin_inset Flex Code
29265 status collapsed
29266
29267 \begin_layout Plain Layout
29268 DocBookItemInnerAttr
29269 \end_layout
29270
29271 \end_inset
29272
29273  [
29274 \begin_inset Flex Code
29275 status collapsed
29276
29277 \begin_layout Plain Layout
29278 string
29279 \end_layout
29280
29281 \end_inset
29282
29283 ] Specifies attribute information to be output with the item inner tag,
29284  replacing 
29285 \begin_inset Quotes eld
29286 \end_inset
29287
29288
29289 \begin_inset Flex Code
29290 status collapsed
29291
29292 \begin_layout Plain Layout
29293 iteminnerattr
29294 \end_layout
29295
29296 \end_inset
29297
29298
29299 \begin_inset Quotes erd
29300 \end_inset
29301
29302  in the example above.
29303  This information can be used in further processing of the DocBook files.
29304 \end_layout
29305
29306 \begin_layout Description
29307 \begin_inset Flex Code
29308 status collapsed
29309
29310 \begin_layout Plain Layout
29311 DocBookItemInnerTag
29312 \end_layout
29313
29314 \end_inset
29315
29316  [
29317 \begin_inset Flex Code
29318 status collapsed
29319
29320 \begin_layout Plain Layout
29321 string
29322 \end_layout
29323
29324 \end_inset
29325
29326 ] The tag to be used for the item inner tag within the inset,
29327  replacing 
29328 \begin_inset Quotes eld
29329 \end_inset
29330
29331
29332 \begin_inset Flex Code
29333 status collapsed
29334
29335 \begin_layout Plain Layout
29336 iteminnertag
29337 \end_layout
29338
29339 \end_inset
29340
29341
29342 \begin_inset Quotes erd
29343 \end_inset
29344
29345  in the example above.
29346  The default is 
29347 \begin_inset Flex Code
29348 status collapsed
29349
29350 \begin_layout Plain Layout
29351 NONE
29352 \end_layout
29353
29354 \end_inset
29355
29356 ,
29357  indicating that there is no item inner tag:
29358  content is directly output without it for each itemised element.
29359  This parameter only makes sense when itemising layouts are used,
29360  such as lists.
29361  The most likely value is 
29362 \begin_inset Quotes eld
29363 \end_inset
29364
29365
29366 \begin_inset Flex Code
29367 status collapsed
29368
29369 \begin_layout Plain Layout
29370 para
29371 \end_layout
29372
29373 \end_inset
29374
29375
29376 \begin_inset Quotes erd
29377 \end_inset
29378
29379 .
29380 \begin_inset Newline newline
29381 \end_inset
29382
29383 When a list item is split using a new line,
29384  the item inner tag will be repeated for each part of the paragraph,
29385  parts being separated by new lines.
29386 \end_layout
29387
29388 \begin_layout Description
29389 \begin_inset Flex Code
29390 status collapsed
29391
29392 \begin_layout Plain Layout
29393 DocBookItemInnerTagType
29394 \end_layout
29395
29396 \end_inset
29397
29398  [
29399 \begin_inset Flex Code
29400 status collapsed
29401
29402 \begin_layout Plain Layout
29403 block,
29404  paragraph,
29405  inline
29406 \end_layout
29407
29408 \end_inset
29409
29410 ] The new-line policy for this tag,
29411  see Section
29412 \begin_inset space ~
29413 \end_inset
29414
29415
29416 \begin_inset CommandInset ref
29417 LatexCommand ref
29418 reference "subsec:DocBook-New-line-policy"
29419 plural "false"
29420 caps "false"
29421 noprefix "false"
29422 nolink "false"
29423
29424 \end_inset
29425
29426  for the details.
29427 \end_layout
29428
29429 \begin_layout Description
29430 \begin_inset Flex Code
29431 status collapsed
29432
29433 \begin_layout Plain Layout
29434 DocBookItemLabelAttr
29435 \end_layout
29436
29437 \end_inset
29438
29439  [
29440 \begin_inset Flex Code
29441 status collapsed
29442
29443 \begin_layout Plain Layout
29444 string
29445 \end_layout
29446
29447 \end_inset
29448
29449 ] Specifies attribute information to be output with the item label tag,
29450  replacing 
29451 \begin_inset Quotes eld
29452 \end_inset
29453
29454
29455 \begin_inset Flex Code
29456 status collapsed
29457
29458 \begin_layout Plain Layout
29459 itemlabelattr
29460 \end_layout
29461
29462 \end_inset
29463
29464
29465 \begin_inset Quotes erd
29466 \end_inset
29467
29468  in the example above.
29469  This information can be used in further processing of the DocBook files.
29470 \end_layout
29471
29472 \begin_layout Description
29473 \begin_inset Flex Code
29474 status collapsed
29475
29476 \begin_layout Plain Layout
29477 DocBookItemLabelTag
29478 \end_layout
29479
29480 \end_inset
29481
29482  [
29483 \begin_inset Flex Code
29484 status collapsed
29485
29486 \begin_layout Plain Layout
29487 string
29488 \end_layout
29489
29490 \end_inset
29491
29492 ] The tag to be used for the item label tag within the inset,
29493  replacing 
29494 \begin_inset Quotes eld
29495 \end_inset
29496
29497
29498 \begin_inset Flex Code
29499 status collapsed
29500
29501 \begin_layout Plain Layout
29502 itemlabeltag
29503 \end_layout
29504
29505 \end_inset
29506
29507
29508 \begin_inset Quotes erd
29509 \end_inset
29510
29511  in the example above.
29512  This parameter only makes sense when itemising layouts are used with a notion of labels,
29513  such as definition lists.
29514 \end_layout
29515
29516 \begin_layout Description
29517 \begin_inset Flex Code
29518 status collapsed
29519
29520 \begin_layout Plain Layout
29521 DocBookItemLabelTagType
29522 \end_layout
29523
29524 \end_inset
29525
29526  [
29527 \begin_inset Flex Code
29528 status collapsed
29529
29530 \begin_layout Plain Layout
29531 block,
29532  paragraph,
29533  inline
29534 \end_layout
29535
29536 \end_inset
29537
29538 ] The new-line policy for this tag,
29539  see Section
29540 \begin_inset space ~
29541 \end_inset
29542
29543
29544 \begin_inset CommandInset ref
29545 LatexCommand ref
29546 reference "subsec:DocBook-New-line-policy"
29547 plural "false"
29548 caps "false"
29549 noprefix "false"
29550 nolink "false"
29551
29552 \end_inset
29553
29554  for the details.
29555 \end_layout
29556
29557 \begin_layout Description
29558 \begin_inset Flex Code
29559 status collapsed
29560
29561 \begin_layout Plain Layout
29562 DocBookItemTag
29563 \end_layout
29564
29565 \end_inset
29566
29567  [
29568 \begin_inset Flex Code
29569 status collapsed
29570
29571 \begin_layout Plain Layout
29572 string
29573 \end_layout
29574
29575 \end_inset
29576
29577 ] The tag to be used for the item tag within the inset,
29578  replacing 
29579 \begin_inset Quotes eld
29580 \end_inset
29581
29582
29583 \begin_inset Flex Code
29584 status collapsed
29585
29586 \begin_layout Plain Layout
29587 itemtag
29588 \end_layout
29589
29590 \end_inset
29591
29592
29593 \begin_inset Quotes erd
29594 \end_inset
29595
29596  in the example above.
29597  The default is 
29598 \begin_inset Flex Code
29599 status collapsed
29600
29601 \begin_layout Plain Layout
29602 NONE
29603 \end_layout
29604
29605 \end_inset
29606
29607 ,
29608  indicating that there is no item tag.
29609  This parameter only makes sense when itemising layouts are used,
29610  such as lists.
29611 \end_layout
29612
29613 \begin_layout Description
29614 \begin_inset Flex Code
29615 status collapsed
29616
29617 \begin_layout Plain Layout
29618 DocBookItemTagType
29619 \end_layout
29620
29621 \end_inset
29622
29623  [
29624 \begin_inset Flex Code
29625 status collapsed
29626
29627 \begin_layout Plain Layout
29628 block,
29629  paragraph,
29630  inline
29631 \end_layout
29632
29633 \end_inset
29634
29635 ] The new-line policy for this tag,
29636  see Section
29637 \begin_inset space ~
29638 \end_inset
29639
29640
29641 \begin_inset CommandInset ref
29642 LatexCommand ref
29643 reference "subsec:DocBook-New-line-policy"
29644 plural "false"
29645 caps "false"
29646 noprefix "false"
29647 nolink "false"
29648
29649 \end_inset
29650
29651  for the details.
29652 \end_layout
29653
29654 \begin_layout Description
29655 \begin_inset Flex Code
29656 status collapsed
29657
29658 \begin_layout Plain Layout
29659 DocBookItemWrapperAttr
29660 \end_layout
29661
29662 \end_inset
29663
29664  [
29665 \begin_inset Flex Code
29666 status collapsed
29667
29668 \begin_layout Plain Layout
29669 string
29670 \end_layout
29671
29672 \end_inset
29673
29674 ] Specifies attribute information to be output with the item wrapper tag,
29675  replacing 
29676 \begin_inset Quotes eld
29677 \end_inset
29678
29679
29680 \begin_inset Flex Code
29681 status collapsed
29682
29683 \begin_layout Plain Layout
29684 itemwrapperattr
29685 \end_layout
29686
29687 \end_inset
29688
29689
29690 \begin_inset Quotes erd
29691 \end_inset
29692
29693  in the example above.
29694  This information can be used in further processing of the DocBook files.
29695 \end_layout
29696
29697 \begin_layout Description
29698 \begin_inset Flex Code
29699 status collapsed
29700
29701 \begin_layout Plain Layout
29702 DocBookItemWrapperTag
29703 \end_layout
29704
29705 \end_inset
29706
29707  [
29708 \begin_inset Flex Code
29709 status collapsed
29710
29711 \begin_layout Plain Layout
29712 string
29713 \end_layout
29714
29715 \end_inset
29716
29717 ] The tag to be used for the item wrapper tag within the inset,
29718  replacing 
29719 \begin_inset Quotes eld
29720 \end_inset
29721
29722
29723 \begin_inset Flex Code
29724 status collapsed
29725
29726 \begin_layout Plain Layout
29727 itemwrappertag
29728 \end_layout
29729
29730 \end_inset
29731
29732
29733 \begin_inset Quotes erd
29734 \end_inset
29735
29736  in the example above.
29737  The default is 
29738 \begin_inset Flex Code
29739 status collapsed
29740
29741 \begin_layout Plain Layout
29742 NONE
29743 \end_layout
29744
29745 \end_inset
29746
29747 ,
29748  indicating that there is no item wrapper tag:
29749  tag and content are directly output without it for each itemised element.
29750  This parameter only makes sense when itemising layouts are used,
29751  such as lists.
29752 \end_layout
29753
29754 \begin_layout Description
29755 \begin_inset Flex Code
29756 status collapsed
29757
29758 \begin_layout Plain Layout
29759 DocBookItemWrapperTagType
29760 \end_layout
29761
29762 \end_inset
29763
29764  [
29765 \begin_inset Flex Code
29766 status collapsed
29767
29768 \begin_layout Plain Layout
29769 block,
29770  paragraph,
29771  inline
29772 \end_layout
29773
29774 \end_inset
29775
29776 ] The new-line policy for this tag,
29777  see Section
29778 \begin_inset space ~
29779 \end_inset
29780
29781
29782 \begin_inset CommandInset ref
29783 LatexCommand ref
29784 reference "subsec:DocBook-New-line-policy"
29785 plural "false"
29786 caps "false"
29787 noprefix "false"
29788 nolink "false"
29789
29790 \end_inset
29791
29792  for the details.
29793 \end_layout
29794
29795 \begin_layout Description
29796 \begin_inset Flex Code
29797 status collapsed
29798
29799 \begin_layout Plain Layout
29800 DocBookInnerAttr
29801 \end_layout
29802
29803 \end_inset
29804
29805  [
29806 \begin_inset Flex Code
29807 status collapsed
29808
29809 \begin_layout Plain Layout
29810 string
29811 \end_layout
29812
29813 \end_inset
29814
29815 ] Specifies attribute information to be output with the inner tag,
29816  replacing 
29817 \begin_inset Quotes eld
29818 \end_inset
29819
29820
29821 \begin_inset Flex Code
29822 status collapsed
29823
29824 \begin_layout Plain Layout
29825 innerattr
29826 \end_layout
29827
29828 \end_inset
29829
29830
29831 \begin_inset Quotes erd
29832 \end_inset
29833
29834  in the example above.
29835  This information can be used in further processing of the DocBook files.
29836 \end_layout
29837
29838 \begin_layout Description
29839 \begin_inset Flex Code
29840 status collapsed
29841
29842 \begin_layout Plain Layout
29843 DocBookInnerTag
29844 \end_layout
29845
29846 \end_inset
29847
29848  [
29849 \begin_inset Flex Code
29850 status collapsed
29851
29852 \begin_layout Plain Layout
29853 string
29854 \end_layout
29855
29856 \end_inset
29857
29858 ] The tag to be used for the inner tag within the inset,
29859  replacing 
29860 \begin_inset Quotes eld
29861 \end_inset
29862
29863
29864 \begin_inset Flex Code
29865 status collapsed
29866
29867 \begin_layout Plain Layout
29868 innertag
29869 \end_layout
29870
29871 \end_inset
29872
29873
29874 \begin_inset Quotes erd
29875 \end_inset
29876
29877  in the example above.
29878  The default is 
29879 \begin_inset Flex Code
29880 status collapsed
29881
29882 \begin_layout Plain Layout
29883 NONE
29884 \end_layout
29885
29886 \end_inset
29887
29888 ,
29889  indicating that there is no inner tag:
29890  content is directly output without it.
29891 \end_layout
29892
29893 \begin_layout Description
29894 \begin_inset Flex Code
29895 status collapsed
29896
29897 \begin_layout Plain Layout
29898 DocBookInnerTagType
29899 \end_layout
29900
29901 \end_inset
29902
29903  [
29904 \begin_inset Flex Code
29905 status collapsed
29906
29907 \begin_layout Plain Layout
29908 block,
29909  paragraph,
29910  inline
29911 \end_layout
29912
29913 \end_inset
29914
29915 ] The new-line policy for this tag,
29916  see Section
29917 \begin_inset space ~
29918 \end_inset
29919
29920
29921 \begin_inset CommandInset ref
29922 LatexCommand ref
29923 reference "subsec:DocBook-New-line-policy"
29924 plural "false"
29925 caps "false"
29926 noprefix "false"
29927 nolink "false"
29928
29929 \end_inset
29930
29931  for the details.
29932 \end_layout
29933
29934 \begin_layout Description
29935 \begin_inset Flex Code
29936 status collapsed
29937
29938 \begin_layout Plain Layout
29939 DocBookSectionTag
29940 \end_layout
29941
29942 \end_inset
29943
29944  [
29945 \begin_inset Flex Code
29946 status collapsed
29947
29948 \begin_layout Plain Layout
29949 string
29950 \end_layout
29951
29952 \end_inset
29953
29954 ] Specifies the tag that corresponds to this kind of section.
29955  This parameter only makes sense for sectioning elements (part,
29956  chapter,
29957  section,
29958  etc.).
29959  The default value is 
29960 \begin_inset Flex Code
29961 status collapsed
29962
29963 \begin_layout Plain Layout
29964 section
29965 \end_layout
29966
29967 \end_inset
29968
29969 ,
29970  and is only overridden when DocBook uses something else for sectioning (typically,
29971  parts and chapters of a book).
29972 \end_layout
29973
29974 \begin_layout Description
29975 \begin_inset Flex Code
29976 status collapsed
29977
29978 \begin_layout Plain Layout
29979 DocBookTag
29980 \end_layout
29981
29982 \end_inset
29983
29984  [
29985 \begin_inset Flex Code
29986 status collapsed
29987
29988 \begin_layout Plain Layout
29989 string
29990 \end_layout
29991
29992 \end_inset
29993
29994 ] The tag to be used for this inset,
29995  replacing 
29996 \begin_inset Quotes eld
29997 \end_inset
29998
29999
30000 \begin_inset Flex Code
30001 status collapsed
30002
30003 \begin_layout Plain Layout
30004 tag
30005 \end_layout
30006
30007 \end_inset
30008
30009
30010 \begin_inset Quotes erd
30011 \end_inset
30012
30013  in the example above.
30014  The default is the name of the float and always needs to be changed,
30015  as DocBook provides no generic inset tag.
30016 \end_layout
30017
30018 \begin_layout Description
30019 \begin_inset Flex Code
30020 status collapsed
30021
30022 \begin_layout Plain Layout
30023 DocBookTagType
30024 \end_layout
30025
30026 \end_inset
30027
30028  [
30029 \begin_inset Flex Code
30030 status collapsed
30031
30032 \begin_layout Plain Layout
30033 block,
30034  paragraph,
30035  inline
30036 \end_layout
30037
30038 \end_inset
30039
30040 ] The new-line policy for this tag,
30041  see Section
30042 \begin_inset space ~
30043 \end_inset
30044
30045
30046 \begin_inset CommandInset ref
30047 LatexCommand ref
30048 reference "subsec:DocBook-New-line-policy"
30049 plural "false"
30050 caps "false"
30051 noprefix "false"
30052 nolink "false"
30053
30054 \end_inset
30055
30056  for the details.
30057 \end_layout
30058
30059 \begin_layout Description
30060 \begin_inset Flex Code
30061 status collapsed
30062
30063 \begin_layout Plain Layout
30064 DocBookWrapperAttr
30065 \end_layout
30066
30067 \end_inset
30068
30069  [
30070 \begin_inset Flex Code
30071 status collapsed
30072
30073 \begin_layout Plain Layout
30074 string
30075 \end_layout
30076
30077 \end_inset
30078
30079 ] Specifies attribute information to be output with the outer wrapper tag,
30080  replacing 
30081 \begin_inset Quotes eld
30082 \end_inset
30083
30084
30085 \begin_inset Flex Code
30086 status collapsed
30087
30088 \begin_layout Plain Layout
30089 wrapperattr
30090 \end_layout
30091
30092 \end_inset
30093
30094
30095 \begin_inset Quotes erd
30096 \end_inset
30097
30098  in the example above.
30099  This information can be used in further processing of the DocBook files.
30100 \end_layout
30101
30102 \begin_layout Description
30103 \begin_inset Flex Code
30104 status collapsed
30105
30106 \begin_layout Plain Layout
30107 DocBookWrapperTag
30108 \end_layout
30109
30110 \end_inset
30111
30112  [
30113 \begin_inset Flex Code
30114 status collapsed
30115
30116 \begin_layout Plain Layout
30117 string
30118 \end_layout
30119
30120 \end_inset
30121
30122 ] The tag to be used for the wrapper tag around the inset,
30123  replacing 
30124 \begin_inset Quotes eld
30125 \end_inset
30126
30127
30128 \begin_inset Flex Code
30129 status collapsed
30130
30131 \begin_layout Plain Layout
30132 wrappertag
30133 \end_layout
30134
30135 \end_inset
30136
30137
30138 \begin_inset Quotes erd
30139 \end_inset
30140
30141  in the example above.
30142  The default is 
30143 \begin_inset Flex Code
30144 status collapsed
30145
30146 \begin_layout Plain Layout
30147 NONE
30148 \end_layout
30149
30150 \end_inset
30151
30152 ,
30153  indicating that there is no wrapper tag:
30154  tag and content are directly output without it.
30155 \end_layout
30156
30157 \begin_layout Description
30158 \begin_inset Flex Code
30159 status collapsed
30160
30161 \begin_layout Plain Layout
30162 DocBookWrapperTagType
30163 \end_layout
30164
30165 \end_inset
30166
30167  [
30168 \begin_inset Flex Code
30169 status collapsed
30170
30171 \begin_layout Plain Layout
30172 block,
30173  paragraph,
30174  inline
30175 \end_layout
30176
30177 \end_inset
30178
30179 ] The new-line policy for this tag,
30180  see Section
30181 \begin_inset space ~
30182 \end_inset
30183
30184
30185 \begin_inset CommandInset ref
30186 LatexCommand ref
30187 reference "subsec:DocBook-New-line-policy"
30188 plural "false"
30189 caps "false"
30190 noprefix "false"
30191 nolink "false"
30192
30193 \end_inset
30194
30195  for the details.
30196 \end_layout
30197
30198 \begin_layout Subsection
30199 Float DocBook
30200 \end_layout
30201
30202 \begin_layout Standard
30203 The DocBook output for floats too can be controlled by layout information.
30204  The output has the following form:
30205 \end_layout
30206
30207 \begin_layout LyX-Code
30208 <tag attr>
30209 \end_layout
30210
30211 \begin_layout LyX-Code
30212   Contents of the float as DocBook.
30213 \end_layout
30214
30215 \begin_layout LyX-Code
30216 </tag>
30217 \end_layout
30218
30219 \begin_layout Standard
30220 The caption,
30221  if there is one,
30222  is a separate inset and will be output as a title.
30223 \end_layout
30224
30225 \begin_layout Description
30226 \begin_inset Flex Code
30227 status collapsed
30228
30229 \begin_layout Plain Layout
30230 DocBookAttr
30231 \end_layout
30232
30233 \end_inset
30234
30235  [
30236 \begin_inset Flex Code
30237 status collapsed
30238
30239 \begin_layout Plain Layout
30240 string
30241 \end_layout
30242
30243 \end_inset
30244
30245 ] Specifies attribute information to be output with the main tag,
30246  replacing 
30247 \begin_inset Quotes eld
30248 \end_inset
30249
30250
30251 \begin_inset Flex Code
30252 status collapsed
30253
30254 \begin_layout Plain Layout
30255 attr
30256 \end_layout
30257
30258 \end_inset
30259
30260
30261 \begin_inset Quotes erd
30262 \end_inset
30263
30264  in the example above.
30265  This information can be used in further processing of the DocBook files.
30266 \end_layout
30267
30268 \begin_layout Description
30269 \begin_inset Flex Code
30270 status collapsed
30271
30272 \begin_layout Plain Layout
30273 DocBookTag
30274 \end_layout
30275
30276 \end_inset
30277
30278  [
30279 \begin_inset Flex Code
30280 status collapsed
30281
30282 \begin_layout Plain Layout
30283 string
30284 \end_layout
30285
30286 \end_inset
30287
30288 ] The tag to be used for this float,
30289  replacing 
30290 \begin_inset Quotes eld
30291 \end_inset
30292
30293
30294 \begin_inset Flex Code
30295 status collapsed
30296
30297 \begin_layout Plain Layout
30298 tag
30299 \end_layout
30300
30301 \end_inset
30302
30303
30304 \begin_inset Quotes erd
30305 \end_inset
30306
30307  in the example above.
30308  The default is the name of the float and always needs to be changed,
30309  as DocBook provides no generic float tag.
30310 \end_layout
30311
30312 \begin_layout Subsection
30313 Bibliography formatting
30314 \end_layout
30315
30316 \begin_layout Standard
30317 Included bibliographies cannot be formatted:
30318  all fields are always output in the database-like DocBook format (equivalent to a BibTeX file),
30319  using the 
30320 \begin_inset Flex Code
30321 status collapsed
30322
30323 \begin_layout Plain Layout
30324 biblioentry
30325 \end_layout
30326
30327 \end_inset
30328
30329  tag.
30330 \end_layout
30331
30332 \begin_layout Standard
30333 When the bibliographic entries are manually inserted into the \SpecialChar LyX
30334  document as Bibliography Items,
30335  the user deals with formatting themself:
30336  there is no attempt of parsing what the user wrote,
30337  the string is directly used (with the 
30338 \begin_inset Flex Code
30339 status collapsed
30340
30341 \begin_layout Plain Layout
30342 bibliomixed
30343 \end_layout
30344
30345 \end_inset
30346
30347  tag).
30348 \end_layout
30349
30350 \begin_layout Chapter
30351 Including External Material
30352 \begin_inset CommandInset label
30353 LatexCommand label
30354 name "chap:Including-External-Material"
30355
30356 \end_inset
30357
30358
30359 \end_layout
30360
30361 \begin_layout Standard
30362 \begin_inset Box Shadowbox
30363 position "t"
30364 hor_pos "c"
30365 has_inner_box 1
30366 inner_pos "t"
30367 use_parbox 0
30368 use_makebox 0
30369 width "100col%"
30370 special "none"
30371 height "1in"
30372 height_special "totalheight"
30373 thickness "0.4pt"
30374 separation "3pt"
30375 shadowsize "4pt"
30376 framecolor "black"
30377 backgroundcolor "none"
30378 status open
30379
30380 \begin_layout Plain Layout
30381 WARNING:
30382  This portion of the documentation has not been updated for some time.
30383  We certainly hope that it is still accurate,
30384  but there are no guarantees.
30385 \end_layout
30386
30387 \end_inset
30388
30389
30390 \end_layout
30391
30392 \begin_layout Standard
30393 The use of material from sources external to \SpecialChar LyX
30394  is covered in detail in the 
30395 \emph on
30396 Embedded Objects
30397 \emph default
30398  manual.
30399  This part of the manual covers what needs to happen behind the scenes for new sorts of material to be included.
30400 \end_layout
30401
30402 \begin_layout Section
30403 How does it work?
30404 \end_layout
30405
30406 \begin_layout Standard
30407 The external material feature is based on the concept of a 
30408 \emph on
30409 template
30410 \emph default
30411 .
30412  A template is a specification of how \SpecialChar LyX
30413  should interface with a certain kind of material.
30414  As bundled,
30415  \SpecialChar LyX
30416  comes with predefined templates for Xfig figures,
30417  various raster format images,
30418  chess diagrams,
30419  and LilyPond music notation.
30420  You can check the actual list by using the menu 
30421 \begin_inset Flex Noun
30422 status collapsed
30423
30424 \begin_layout Plain Layout
30425 Insert\SpecialChar menuseparator
30426 File\SpecialChar menuseparator
30427 External Material
30428 \end_layout
30429
30430 \end_inset
30431
30432 .
30433  Furthermore,
30434  it is possible to roll your own template to support a specific kind of material.
30435  Later we'll describe in more detail what is involved,
30436  and hopefully you will submit all the templates you create so we can include them in a later \SpecialChar LyX
30437  version.
30438 \end_layout
30439
30440 \begin_layout Standard
30441 Another basic idea of the external material feature is to distinguish between the original file that serves as a base for final material and the produced file that is included in your exported or printed document.
30442  For example,
30443  consider the case of a figure produced with 
30444 \begin_inset Flex Code
30445 status collapsed
30446
30447 \begin_layout Plain Layout
30448 Xfig
30449 \end_layout
30450
30451 \end_inset
30452
30453 .
30454  The Xfig application itself works on an original file with the 
30455 \begin_inset Flex Code
30456 status collapsed
30457
30458 \begin_layout Plain Layout
30459 .fig
30460 \end_layout
30461
30462 \end_inset
30463
30464  extension.
30465  Within Xfig,
30466  you create and change your figure,
30467  and when you are done,
30468  you save the 
30469 \begin_inset Flex Code
30470 status collapsed
30471
30472 \begin_layout Plain Layout
30473 fig
30474 \end_layout
30475
30476 \end_inset
30477
30478 -file.
30479  When you want to include the figure in your document,
30480  you invoke 
30481 \begin_inset Flex Code
30482 status collapsed
30483
30484 \begin_layout Plain Layout
30485 transfig
30486 \end_layout
30487
30488 \end_inset
30489
30490  in order to create a PostScript file that can readily be included in your \SpecialChar LaTeX
30491  file.
30492  In this case,
30493  the 
30494 \begin_inset Flex Code
30495 status collapsed
30496
30497 \begin_layout Plain Layout
30498 .fig
30499 \end_layout
30500
30501 \end_inset
30502
30503  file is the original file,
30504  and the PostScript file is the produced file.
30505 \end_layout
30506
30507 \begin_layout Standard
30508 This distinction is important in order to allow updating of the material while you are in the process of writing the document.
30509  Furthermore,
30510  it provides us with the flexibility that is needed to support multiple export formats.
30511  For instance,
30512  in the case of a plain text file,
30513  it is not exactly an award-winning idea to include the figure as raw PostScript.
30514  Instead,
30515  you would either prefer to just include a reference to the figure or try to invoke some graphics to ASCII converter to make the final result look similar to the real graphics.
30516  The external material management allows you to do this,
30517  because it is parametrized on the different export formats that \SpecialChar LyX
30518  supports.
30519 \end_layout
30520
30521 \begin_layout Standard
30522 Besides supporting the production of different products according to the exported format,
30523  it supports tight integration with editing and viewing applications.
30524  In the case of an Xfig figure,
30525  you are able to invoke Xfig on the original file with a single click from within the external material dialog in \SpecialChar LyX
30526 ,
30527  and also preview the produced PostScript file with Ghostview with another click.
30528  No more fiddling around with the command line and/or file browsers to locate and manipulate the original or produced files.
30529  In this way,
30530  you are finally able to take full advantage of the many different applications that are relevant to use when you write your documents,
30531  and ultimately be more productive.
30532 \end_layout
30533
30534 \begin_layout Section
30535 The external template configuration files
30536 \end_layout
30537
30538 \begin_layout Standard
30539 It is relatively easy to add custom external template definitions to \SpecialChar LyX
30540 .
30541  However,
30542  be aware that doing this in an careless manner most probably 
30543 \emph on
30544 will
30545 \emph default
30546  introduce an easily exploitable security hole.
30547  So before you do this,
30548  please read the discussion about security in 
30549 \begin_inset CommandInset ref
30550 LatexCommand ref
30551 reference "sec:Security-discussion"
30552 nolink "false"
30553
30554 \end_inset
30555
30556 .
30557 \end_layout
30558
30559 \begin_layout Standard
30560 Having said that,
30561  we encourage you to submit any interesting templates that you create.
30562  
30563 \end_layout
30564
30565 \begin_layout Standard
30566 The external templates are defined in the 
30567 \begin_inset Flex Code
30568 status collapsed
30569
30570 \begin_layout Plain Layout
30571 *.xtemplate
30572 \end_layout
30573
30574 \end_inset
30575
30576  files that are stored in the 
30577 \begin_inset Flex Code
30578 status collapsed
30579
30580 \begin_layout Plain Layout
30581 LyXDir/lib/xtemplates/
30582 \end_layout
30583
30584 \end_inset
30585
30586  directory.
30587  Each template is defined in a file of its own.
30588  You can place your own templates in 
30589 \begin_inset Flex Code
30590 status collapsed
30591
30592 \begin_layout Plain Layout
30593 UserDir/xtemplates/
30594 \end_layout
30595
30596 \end_inset
30597
30598  or copy existing templates to that directory in order to modify them.
30599 \end_layout
30600
30601 \begin_layout Standard
30602 A typical template looks like this:
30603 \end_layout
30604
30605 \begin_layout LyX-Code
30606 Template XFig
30607 \end_layout
30608
30609 \begin_layout LyX-Code
30610 GuiName "XFig:
30611  $$AbsOrRelPathParent$$Basename"
30612 \end_layout
30613
30614 \begin_layout LyX-Code
30615 HelpText
30616 \end_layout
30617
30618 \begin_layout LyX-Code
30619 An XFig figure.
30620 \end_layout
30621
30622 \begin_layout LyX-Code
30623 HelpTextEnd
30624 \end_layout
30625
30626 \begin_layout LyX-Code
30627 InputFormat fig
30628 \end_layout
30629
30630 \begin_layout LyX-Code
30631 FileFilter "*.fig"
30632 \end_layout
30633
30634 \begin_layout LyX-Code
30635 AutomaticProduction true
30636 \end_layout
30637
30638 \begin_layout LyX-Code
30639 Transform Rotate
30640 \end_layout
30641
30642 \begin_layout LyX-Code
30643 Transform Resize
30644 \end_layout
30645
30646 \begin_layout LyX-Code
30647 Format LaTeX
30648 \end_layout
30649
30650 \begin_layout LyX-Code
30651 TransformCommand Rotate RotationLatexCommand
30652 \end_layout
30653
30654 \begin_layout LyX-Code
30655 TransformCommand Resize ResizeLatexCommand
30656 \end_layout
30657
30658 \begin_layout LyX-Code
30659 Product "$$RotateFront$$ResizeFront
30660 \end_layout
30661
30662 \begin_layout LyX-Code
30663          
30664 \backslash
30665
30666 \backslash
30667 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
30668 \end_layout
30669
30670 \begin_layout LyX-Code
30671          $$ResizeBack$$RotateBack"
30672 \end_layout
30673
30674 \begin_layout LyX-Code
30675 UpdateFormat pstex
30676 \end_layout
30677
30678 \begin_layout LyX-Code
30679 UpdateResult "$$AbsPath$$Basename.pstex_t"
30680 \end_layout
30681
30682 \begin_layout LyX-Code
30683 Requirement "graphicx"
30684 \end_layout
30685
30686 \begin_layout LyX-Code
30687 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
30688 \end_layout
30689
30690 \begin_layout LyX-Code
30691 ReferencedFile latex "$$AbsPath$$Basename.eps"
30692 \end_layout
30693
30694 \begin_layout LyX-Code
30695 ReferencedFile dvi "$$AbsPath$$Basename.eps"
30696 \end_layout
30697
30698 \begin_layout LyX-Code
30699 FormatEnd
30700 \end_layout
30701
30702 \begin_layout LyX-Code
30703 Format PDFLaTeX
30704 \end_layout
30705
30706 \begin_layout LyX-Code
30707 TransformCommand Rotate RotationLatexCommand
30708 \end_layout
30709
30710 \begin_layout LyX-Code
30711 TransformCommand Resize ResizeLatexCommand
30712 \end_layout
30713
30714 \begin_layout LyX-Code
30715 Product "$$RotateFront$$ResizeFront
30716 \end_layout
30717
30718 \begin_layout LyX-Code
30719          
30720 \backslash
30721
30722 \backslash
30723 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
30724 \end_layout
30725
30726 \begin_layout LyX-Code
30727          $$ResizeBack$$RotateBack"
30728 \end_layout
30729
30730 \begin_layout LyX-Code
30731 UpdateFormat pdftex
30732 \end_layout
30733
30734 \begin_layout LyX-Code
30735 UpdateResult "$$AbsPath$$Basename.pdftex_t"
30736 \end_layout
30737
30738 \begin_layout LyX-Code
30739 Requirement "graphicx"
30740 \end_layout
30741
30742 \begin_layout LyX-Code
30743 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
30744 \end_layout
30745
30746 \begin_layout LyX-Code
30747 ReferencedFile latex "$$AbsPath$$Basename.pdf"
30748 \end_layout
30749
30750 \begin_layout LyX-Code
30751 FormatEnd
30752 \end_layout
30753
30754 \begin_layout LyX-Code
30755 Format Ascii
30756 \end_layout
30757
30758 \begin_layout LyX-Code
30759 Product "[XFig:
30760  $$FName]"
30761 \end_layout
30762
30763 \begin_layout LyX-Code
30764 FormatEnd
30765 \end_layout
30766
30767 \begin_layout LyX-Code
30768 Format DocBook
30769 \end_layout
30770
30771 \begin_layout LyX-Code
30772 Product "<graphic fileref=
30773 \backslash
30774 "$$AbsOrRelPathMaster$$Basename.eps
30775 \backslash
30776 ">
30777 \end_layout
30778
30779 \begin_layout LyX-Code
30780          </graphic>"
30781 \end_layout
30782
30783 \begin_layout LyX-Code
30784 UpdateFormat eps
30785 \end_layout
30786
30787 \begin_layout LyX-Code
30788 UpdateResult "$$AbsPath$$Basename.eps"
30789 \end_layout
30790
30791 \begin_layout LyX-Code
30792 ReferencedFile docbook "$$AbsPath$$Basename.eps"
30793 \end_layout
30794
30795 \begin_layout LyX-Code
30796 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
30797 \end_layout
30798
30799 \begin_layout LyX-Code
30800 FormatEnd
30801 \end_layout
30802
30803 \begin_layout LyX-Code
30804 TemplateEnd
30805 \end_layout
30806
30807 \begin_layout Standard
30808 As you can see,
30809  the template is enclosed in 
30810 \begin_inset Flex Code
30811 status collapsed
30812
30813 \begin_layout Plain Layout
30814 Template
30815 \end_layout
30816
30817 \end_inset
30818
30819  \SpecialChar ldots
30820  
30821 \begin_inset Flex Code
30822 status collapsed
30823
30824 \begin_layout Plain Layout
30825 TemplateEnd
30826 \end_layout
30827
30828 \end_inset
30829
30830 .
30831  It contains a header specifying some general settings and,
30832  for each supported primary document file format,
30833  a section 
30834 \begin_inset Flex Code
30835 status collapsed
30836
30837 \begin_layout Plain Layout
30838 Format
30839 \end_layout
30840
30841 \end_inset
30842
30843  \SpecialChar ldots
30844  
30845 \begin_inset Flex Code
30846 status collapsed
30847
30848 \begin_layout Plain Layout
30849 FormatEnd
30850 \end_layout
30851
30852 \end_inset
30853
30854 .
30855 \end_layout
30856
30857 \begin_layout Subsection
30858 The template header
30859 \end_layout
30860
30861 \begin_layout Description
30862 \begin_inset Flex Code
30863 status collapsed
30864
30865 \begin_layout Plain Layout
30866 AutomaticProduction
30867 \begin_inset space ~
30868 \end_inset
30869
30870 true|false
30871 \end_layout
30872
30873 \end_inset
30874
30875  Whether the file represented by the template must be generated by \SpecialChar LyX
30876 .
30877  This command must occur exactly once.
30878 \end_layout
30879
30880 \begin_layout Description
30881 \begin_inset Flex Code
30882 status collapsed
30883
30884 \begin_layout Plain Layout
30885 FileFilter
30886 \begin_inset space ~
30887 \end_inset
30888
30889 <pattern>
30890 \end_layout
30891
30892 \end_inset
30893
30894  A glob pattern that is used in the file dialog to filter out the desired files.
30895  If there is more than one possible file extension (e.
30896 \begin_inset space \thinspace{}
30897 \end_inset
30898
30899 g.
30900 \begin_inset space \space{}
30901 \end_inset
30902
30903 tgif has 
30904 \begin_inset Flex Code
30905 status collapsed
30906
30907 \begin_layout Plain Layout
30908 .obj
30909 \end_layout
30910
30911 \end_inset
30912
30913  and 
30914 \begin_inset Flex Code
30915 status collapsed
30916
30917 \begin_layout Plain Layout
30918 .tgo
30919 \end_layout
30920
30921 \end_inset
30922
30923 ),
30924  use something like 
30925 \begin_inset Flex Code
30926 status collapsed
30927
30928 \begin_layout Plain Layout
30929 "*.{obj,tgo}"
30930 \end_layout
30931
30932 \end_inset
30933
30934 .
30935  This command must occur exactly once.
30936 \end_layout
30937
30938 \begin_layout Description
30939 \begin_inset Flex Code
30940 status collapsed
30941
30942 \begin_layout Plain Layout
30943 GuiName
30944 \begin_inset space ~
30945 \end_inset
30946
30947 <guiname>
30948 \end_layout
30949
30950 \end_inset
30951
30952  The text that is displayed on the button.
30953  This command must occur exactly once.
30954 \end_layout
30955
30956 \begin_layout Description
30957 \begin_inset Flex Code
30958 status collapsed
30959
30960 \begin_layout Plain Layout
30961 HelpText
30962 \begin_inset space ~
30963 \end_inset
30964
30965 <text>
30966 \begin_inset space ~
30967 \end_inset
30968
30969 HelpTextEnd
30970 \end_layout
30971
30972 \end_inset
30973
30974  The help text that is used in the External dialog.
30975  Provide enough information to explain to the user just what the template can provide him with.
30976  This command must occur exactly once.
30977 \end_layout
30978
30979 \begin_layout Description
30980 \begin_inset Flex Code
30981 status collapsed
30982
30983 \begin_layout Plain Layout
30984 InputFormat
30985 \begin_inset space ~
30986 \end_inset
30987
30988 <format>
30989 \end_layout
30990
30991 \end_inset
30992
30993  The file format of the original file.
30994  This must be the name of a format that is known to \SpecialChar LyX
30995  (see 
30996 \begin_inset CommandInset ref
30997 LatexCommand ref
30998 reference "sec:Formats"
30999 nolink "false"
31000
31001 \end_inset
31002
31003 ).
31004  Use 
31005 \begin_inset Quotes eld
31006 \end_inset
31007
31008
31009 \begin_inset Flex Code
31010 status collapsed
31011
31012 \begin_layout Plain Layout
31013 *
31014 \end_layout
31015
31016 \end_inset
31017
31018
31019 \begin_inset Quotes erd
31020 \end_inset
31021
31022  if the template can handle original files of more than one format.
31023  \SpecialChar LyX
31024  will attempt to interrogate the file itself in order to deduce its format in this case.
31025  This command must occur exactly once.
31026 \end_layout
31027
31028 \begin_layout Description
31029 \begin_inset Flex Code
31030 status collapsed
31031
31032 \begin_layout Plain Layout
31033 Template
31034 \begin_inset space ~
31035 \end_inset
31036
31037 <id>
31038 \end_layout
31039
31040 \end_inset
31041
31042  A unique name for the template.
31043  It must not contain substitution macros (see below).
31044 \end_layout
31045
31046 \begin_layout Description
31047 \begin_inset Flex Code
31048 status collapsed
31049
31050 \begin_layout Plain Layout
31051 Transform
31052 \begin_inset space ~
31053 \end_inset
31054
31055 Rotate|Resize|Clip|Extra
31056 \end_layout
31057
31058 \end_inset
31059
31060  This command specifies which transformations are supported by this template.
31061  It may occur zero or more times.
31062  This command enables the corresponding tabs in the external dialog.
31063  Each 
31064 \begin_inset Flex Code
31065 status collapsed
31066
31067 \begin_layout Plain Layout
31068 Transform
31069 \end_layout
31070
31071 \end_inset
31072
31073  command must have either a corresponding 
31074 \begin_inset Flex Code
31075 status collapsed
31076
31077 \begin_layout Plain Layout
31078 TransformCommand
31079 \end_layout
31080
31081 \end_inset
31082
31083  or a 
31084 \begin_inset Flex Code
31085 status collapsed
31086
31087 \begin_layout Plain Layout
31088 TransformOption
31089 \end_layout
31090
31091 \end_inset
31092
31093  command in the 
31094 \begin_inset Flex Code
31095 status collapsed
31096
31097 \begin_layout Plain Layout
31098 Format
31099 \end_layout
31100
31101 \end_inset
31102
31103  section.
31104  Otherwise the transformation will not be supported by that format.
31105 \end_layout
31106
31107 \begin_layout Subsection
31108 The Format section
31109 \end_layout
31110
31111 \begin_layout Description
31112 \begin_inset Flex Code
31113 status collapsed
31114
31115 \begin_layout Plain Layout
31116 Format
31117 \begin_inset space ~
31118 \end_inset
31119
31120 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
31121 \end_layout
31122
31123 \end_inset
31124
31125  The primary document file format that this format definition is for.
31126  Not every template has a sensible representation in all document file formats.
31127  Please define nevertheless a 
31128 \begin_inset Flex Code
31129 status collapsed
31130
31131 \begin_layout Plain Layout
31132 Format
31133 \end_layout
31134
31135 \end_inset
31136
31137  section for all templates.
31138  Use a dummy text when no representation is available.
31139  Then you can at least see a reference to the external material in the exported document.
31140 \end_layout
31141
31142 \begin_layout Description
31143 \begin_inset Flex Code
31144 status collapsed
31145
31146 \begin_layout Plain Layout
31147 Option
31148 \begin_inset space ~
31149 \end_inset
31150
31151 <name>
31152 \begin_inset space ~
31153 \end_inset
31154
31155 <value>
31156 \end_layout
31157
31158 \end_inset
31159
31160  This command defines an additional macro 
31161 \begin_inset Flex Code
31162 status collapsed
31163
31164 \begin_layout Plain Layout
31165 $$<name>
31166 \end_layout
31167
31168 \end_inset
31169
31170  for substitution in 
31171 \begin_inset Flex Code
31172 status collapsed
31173
31174 \begin_layout Plain Layout
31175 Product
31176 \end_layout
31177
31178 \end_inset
31179
31180 .
31181  
31182 \begin_inset Flex Code
31183 status collapsed
31184
31185 \begin_layout Plain Layout
31186 <value>
31187 \end_layout
31188
31189 \end_inset
31190
31191  itself may contain substitution macros.
31192  The advantage over using 
31193 \begin_inset Flex Code
31194 status collapsed
31195
31196 \begin_layout Plain Layout
31197 <value>
31198 \end_layout
31199
31200 \end_inset
31201
31202  directly in 
31203 \begin_inset Flex Code
31204 status collapsed
31205
31206 \begin_layout Plain Layout
31207 Product
31208 \end_layout
31209
31210 \end_inset
31211
31212  is that the substituted value of 
31213 \begin_inset Flex Code
31214 status collapsed
31215
31216 \begin_layout Plain Layout
31217 $$<name>
31218 \end_layout
31219
31220 \end_inset
31221
31222  is sanitized so that it is a valid optional argument in the document format.
31223  This command may occur zero or more times.
31224 \end_layout
31225
31226 \begin_layout Description
31227 \begin_inset Flex Code
31228 status collapsed
31229
31230 \begin_layout Plain Layout
31231 Product
31232 \begin_inset space ~
31233 \end_inset
31234
31235 <text>
31236 \end_layout
31237
31238 \end_inset
31239
31240  The text that is inserted in the exported document.
31241  This is actually the most important command and can be quite complex.
31242  This command must occur exactly once.
31243 \end_layout
31244
31245 \begin_layout Description
31246 \begin_inset Flex Code
31247 status collapsed
31248
31249 \begin_layout Plain Layout
31250 Preamble
31251 \begin_inset space ~
31252 \end_inset
31253
31254 <name>
31255 \end_layout
31256
31257 \end_inset
31258
31259  This command specifies a preamble snippet that will be included in the \SpecialChar LaTeX
31260  preamble.
31261  It has to be defined using 
31262 \begin_inset Flex Code
31263 status collapsed
31264
31265 \begin_layout Plain Layout
31266 PreambleDef
31267 \end_layout
31268
31269 \end_inset
31270
31271  \SpecialChar ldots
31272  
31273 \begin_inset Flex Code
31274 status collapsed
31275
31276 \begin_layout Plain Layout
31277 PreambleDefEnd
31278 \end_layout
31279
31280 \end_inset
31281
31282 .
31283  This command may occur zero or more times.
31284 \end_layout
31285
31286 \begin_layout Description
31287 \begin_inset Flex Code
31288 status collapsed
31289
31290 \begin_layout Plain Layout
31291 ReferencedFile
31292 \begin_inset space ~
31293 \end_inset
31294
31295 <format>
31296 \begin_inset space ~
31297 \end_inset
31298
31299 <filename>
31300 \end_layout
31301
31302 \end_inset
31303
31304  This command denotes files that are created by the conversion process and are needed for a particular export format.
31305  If the filename is relative,
31306  it is interpreted relative to the master document.
31307  This command may be given zero or more times.
31308 \end_layout
31309
31310 \begin_layout Description
31311 \begin_inset Flex Code
31312 status collapsed
31313
31314 \begin_layout Plain Layout
31315 Requirement
31316 \begin_inset space ~
31317 \end_inset
31318
31319 <package>
31320 \end_layout
31321
31322 \end_inset
31323
31324  The name of a required \SpecialChar LaTeX
31325  package.
31326  The package is included via 
31327 \begin_inset Flex Code
31328 status collapsed
31329
31330 \begin_layout Plain Layout
31331
31332 \backslash
31333 usepackage{}
31334 \end_layout
31335
31336 \end_inset
31337
31338  in the \SpecialChar LaTeX
31339  preamble.
31340  This command may occur zero or more times.
31341 \end_layout
31342
31343 \begin_layout Description
31344 \begin_inset Flex Code
31345 status collapsed
31346
31347 \begin_layout Plain Layout
31348 TransformCommand
31349 \begin_inset space ~
31350 \end_inset
31351
31352 Rotate
31353 \begin_inset space ~
31354 \end_inset
31355
31356 RotationLatexCommand
31357 \end_layout
31358
31359 \end_inset
31360
31361  This command specifies that the built in \SpecialChar LaTeX
31362  command should be used for rotation.
31363  This command may occur once or not at all.
31364 \end_layout
31365
31366 \begin_layout Description
31367 \begin_inset Flex Code
31368 status collapsed
31369
31370 \begin_layout Plain Layout
31371 TransformCommand
31372 \begin_inset space ~
31373 \end_inset
31374
31375 Resize
31376 \begin_inset space ~
31377 \end_inset
31378
31379 ResizeLatexCommand
31380 \end_layout
31381
31382 \end_inset
31383
31384  This command specifies that the built in \SpecialChar LaTeX
31385  command should be used for resizing.
31386  This command may occur once or not at all.
31387 \end_layout
31388
31389 \begin_layout Description
31390 \begin_inset Flex Code
31391 status collapsed
31392
31393 \begin_layout Plain Layout
31394 TransformOption
31395 \begin_inset space ~
31396 \end_inset
31397
31398 Rotate
31399 \begin_inset space ~
31400 \end_inset
31401
31402 RotationLatexOption
31403 \end_layout
31404
31405 \end_inset
31406
31407  This command specifies that rotation is done via an optional argument.
31408  This command may occur once or not at all.
31409 \end_layout
31410
31411 \begin_layout Description
31412 \begin_inset Flex Code
31413 status collapsed
31414
31415 \begin_layout Plain Layout
31416 TransformOption
31417 \begin_inset space ~
31418 \end_inset
31419
31420 Resize
31421 \begin_inset space ~
31422 \end_inset
31423
31424 ResizeLatexOption
31425 \end_layout
31426
31427 \end_inset
31428
31429  This command specifies that resizing is done via an optional argument.
31430  This command may occur once or not at all.
31431 \end_layout
31432
31433 \begin_layout Description
31434 \begin_inset Flex Code
31435 status collapsed
31436
31437 \begin_layout Plain Layout
31438 TransformOption
31439 \begin_inset space ~
31440 \end_inset
31441
31442 Clip
31443 \begin_inset space ~
31444 \end_inset
31445
31446 ClipLatexOption
31447 \end_layout
31448
31449 \end_inset
31450
31451  This command specifies that clipping is done via an optional argument.
31452  This command may occur once or not at all.
31453 \end_layout
31454
31455 \begin_layout Description
31456 \begin_inset Flex Code
31457 status collapsed
31458
31459 \begin_layout Plain Layout
31460 TransformOption
31461 \begin_inset space ~
31462 \end_inset
31463
31464 Extra
31465 \begin_inset space ~
31466 \end_inset
31467
31468 ExtraLatexOption
31469 \end_layout
31470
31471 \end_inset
31472
31473  This command specifies that an extra optional argument is used.
31474  This command may occur once or not at all.
31475 \end_layout
31476
31477 \begin_layout Description
31478 \begin_inset Flex Code
31479 status collapsed
31480
31481 \begin_layout Plain Layout
31482 UpdateFormat
31483 \begin_inset space ~
31484 \end_inset
31485
31486 <format>
31487 \end_layout
31488
31489 \end_inset
31490
31491  The file format of the converted file.
31492  This must be the name of a format that is known to \SpecialChar LyX
31493  (see the 
31494 \begin_inset Flex Noun
31495 status collapsed
31496
31497 \begin_layout Plain Layout
31498 Tools\SpecialChar menuseparator
31499 Preferences\SpecialChar menuseparator
31500 File Handling\SpecialChar menuseparator
31501 File Format
31502 \end_layout
31503
31504 \end_inset
31505
31506  dialog).
31507  This command must occur exactly once.
31508  If the resulting file format is PDF,
31509  you need to specify the format 
31510 \begin_inset Flex Code
31511 status collapsed
31512
31513 \begin_layout Plain Layout
31514 pdf6
31515 \end_layout
31516
31517 \end_inset
31518
31519 .
31520  This is the PDF format used for including graphics.
31521  The other defined PDF formats are for document export.
31522 \end_layout
31523
31524 \begin_layout Description
31525 \begin_inset Flex Code
31526 status collapsed
31527
31528 \begin_layout Plain Layout
31529 UpdateResult
31530 \begin_inset space ~
31531 \end_inset
31532
31533 <filename>
31534 \end_layout
31535
31536 \end_inset
31537
31538  The file name of the converted file.
31539  The file name must be absolute.
31540  This command must occur exactly once.
31541 \end_layout
31542
31543 \begin_layout Subsection
31544 Preamble definitions
31545 \end_layout
31546
31547 \begin_layout Standard
31548 The external template configuration file may contain additional preamble definitions enclosed by 
31549 \begin_inset Flex Code
31550 status collapsed
31551
31552 \begin_layout Plain Layout
31553 PreambleDef
31554 \end_layout
31555
31556 \end_inset
31557
31558  \SpecialChar ldots
31559  
31560 \begin_inset Flex Code
31561 status collapsed
31562
31563 \begin_layout Plain Layout
31564 PreambleDefEnd
31565 \end_layout
31566
31567 \end_inset
31568
31569 .
31570  They can be used by the templates in the 
31571 \begin_inset Flex Code
31572 status collapsed
31573
31574 \begin_layout Plain Layout
31575 Format
31576 \end_layout
31577
31578 \end_inset
31579
31580  section.
31581 \end_layout
31582
31583 \begin_layout Section
31584 The substitution mechanism
31585 \end_layout
31586
31587 \begin_layout Standard
31588 When the external material facility invokes an external program,
31589  it is done on the basis of a command defined in the template configuration file.
31590  These commands can contain various macros that are expanded before execution.
31591  Execution always take place in the directory of the containing document.
31592 \end_layout
31593
31594 \begin_layout Standard
31595 Also,
31596  whenever external material is to be displayed,
31597  the name will be produced by the substitution mechanism,
31598  and most other commands in the template definition support substitution as well.
31599 \end_layout
31600
31601 \begin_layout Standard
31602 The available macros are the following:
31603 \end_layout
31604
31605 \begin_layout Description
31606 \begin_inset Flex Code
31607 status collapsed
31608
31609 \begin_layout Plain Layout
31610 $$AbsOrRelPathMaster
31611 \end_layout
31612
31613 \end_inset
31614
31615  The file path,
31616  absolute or relative to the master \SpecialChar LyX
31617  document.
31618 \end_layout
31619
31620 \begin_layout Description
31621 \begin_inset Flex Code
31622 status collapsed
31623
31624 \begin_layout Plain Layout
31625 $$AbsOrRelPathParent
31626 \end_layout
31627
31628 \end_inset
31629
31630  The file path,
31631  absolute or relative to the \SpecialChar LyX
31632  document.
31633 \end_layout
31634
31635 \begin_layout Description
31636 \begin_inset Flex Code
31637 status collapsed
31638
31639 \begin_layout Plain Layout
31640 $$AbsPath
31641 \end_layout
31642
31643 \end_inset
31644
31645  The absolute file path
31646 \change_inserted -712698321 1712390130
31647 .
31648  If compiling with \SpecialChar LyX
31649 ,
31650  this is the path to the file in the temporary directory
31651 \change_unchanged
31652 .
31653 \end_layout
31654
31655 \begin_layout Description
31656 \begin_inset Flex Code
31657 status collapsed
31658
31659 \begin_layout Plain Layout
31660 $$Basename
31661 \end_layout
31662
31663 \end_inset
31664
31665  The filename without path and without the extension.
31666 \end_layout
31667
31668 \begin_layout Description
31669 \begin_inset Flex Code
31670 status collapsed
31671
31672 \begin_layout Plain Layout
31673 $$Contents(
31674 \begin_inset Quotes eld
31675 \end_inset
31676
31677 filename.ext
31678 \begin_inset Quotes erd
31679 \end_inset
31680
31681 )
31682 \end_layout
31683
31684 \end_inset
31685
31686  This macro will expand to the contents of the file with the name 
31687 \begin_inset Flex Code
31688 status collapsed
31689
31690 \begin_layout Plain Layout
31691 filename.ext
31692 \end_layout
31693
31694 \end_inset
31695
31696 .
31697 \end_layout
31698
31699 \begin_layout Description
31700 \begin_inset Flex Code
31701 status collapsed
31702
31703 \begin_layout Plain Layout
31704 $$Extension
31705 \end_layout
31706
31707 \end_inset
31708
31709  The file extension (including the dot).
31710 \end_layout
31711
31712 \begin_layout Description
31713 \begin_inset Flex Code
31714 status collapsed
31715
31716 \begin_layout Plain Layout
31717 $$pngOrjpg
31718 \end_layout
31719
31720 \end_inset
31721
31722  This will be the string 
31723 \begin_inset Quotes eld
31724 \end_inset
31725
31726 jpg
31727 \begin_inset Quotes erd
31728 \end_inset
31729
31730  if the file is in JPEG format,
31731  otherwise it will be the string 
31732 \begin_inset Quotes eld
31733 \end_inset
31734
31735 png
31736 \begin_inset Quotes erd
31737 \end_inset
31738
31739 .
31740  This is useful to avoid uneeded conversions for output formats that support both PNG and JPEG fomats.
31741  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
31742  output format.
31743 \end_layout
31744
31745 \begin_layout Description
31746 \begin_inset Flex Code
31747 status collapsed
31748
31749 \begin_layout Plain Layout
31750 $$FName
31751 \end_layout
31752
31753 \end_inset
31754
31755  The filename of the file specified in the external material dialog.
31756  This is either an absolute name,
31757  or it is relative to the \SpecialChar LyX
31758  document.
31759 \end_layout
31760
31761 \begin_layout Description
31762 \begin_inset Flex Code
31763 status collapsed
31764
31765 \begin_layout Plain Layout
31766 $$FPath
31767 \end_layout
31768
31769 \end_inset
31770
31771  The path part of 
31772 \begin_inset Flex Code
31773 status collapsed
31774
31775 \begin_layout Plain Layout
31776 $$FName
31777 \end_layout
31778
31779 \end_inset
31780
31781  (absolute name or relative to the \SpecialChar LyX
31782  document).
31783 \change_inserted -712698321 1712389740
31784
31785 \end_layout
31786
31787 \begin_layout Description
31788
31789 \change_inserted -712698321 1712390181
31790 \begin_inset Flex Code
31791 status collapsed
31792
31793 \begin_layout Plain Layout
31794
31795 \change_inserted -712698321 1712389749
31796 $$OrigAbsName
31797 \change_unchanged
31798
31799 \end_layout
31800
31801 \end_inset
31802
31803  The file name with absolute path to the original directory (not the temporary directory).
31804 \change_unchanged
31805
31806 \end_layout
31807
31808 \begin_layout Description
31809 \begin_inset Flex Code
31810 status collapsed
31811
31812 \begin_layout Plain Layout
31813 $$RelPathMaster
31814 \end_layout
31815
31816 \end_inset
31817
31818  The file path,
31819  relative to the master \SpecialChar LyX
31820  document.
31821 \end_layout
31822
31823 \begin_layout Description
31824 \begin_inset Flex Code
31825 status collapsed
31826
31827 \begin_layout Plain Layout
31828 $$RelPathParent
31829 \end_layout
31830
31831 \end_inset
31832
31833  The file path,
31834  relative to the \SpecialChar LyX
31835  document.
31836 \end_layout
31837
31838 \begin_layout Description
31839 \begin_inset Flex Code
31840 status collapsed
31841
31842 \begin_layout Plain Layout
31843 $$Sysdir
31844 \end_layout
31845
31846 \end_inset
31847
31848  This macro will expand to the absolute path of the system directory.
31849  This is typically used to point to the various helper scripts that are bundled with \SpecialChar LyX
31850 .
31851 \end_layout
31852
31853 \begin_layout Description
31854 \begin_inset Flex Code
31855 status collapsed
31856
31857 \begin_layout Plain Layout
31858 $$Tempname
31859 \end_layout
31860
31861 \end_inset
31862
31863  A name and full path to a temporary file which will be automatically deleted whenever the containing document is closed,
31864  or the external material insertion deleted.
31865 \end_layout
31866
31867 \begin_layout Standard
31868 All path macros contain a trailing directory separator,
31869  so you can construct e.
31870 \begin_inset space \thinspace{}
31871 \end_inset
31872
31873 g.
31874 \begin_inset space \space{}
31875 \end_inset
31876
31877 the absolute filename with 
31878 \begin_inset Flex Code
31879 status collapsed
31880
31881 \begin_layout Plain Layout
31882 $$AbsPath$$Basename$$Extension
31883 \end_layout
31884
31885 \end_inset
31886
31887 .
31888 \end_layout
31889
31890 \begin_layout Standard
31891 The macros above are substituted in all commands unless otherwise noted.
31892  The command 
31893 \begin_inset Flex Code
31894 status collapsed
31895
31896 \begin_layout Plain Layout
31897 Product
31898 \end_layout
31899
31900 \end_inset
31901
31902  supports additionally the following substitutions if they are enabled by the 
31903 \begin_inset Flex Code
31904 status collapsed
31905
31906 \begin_layout Plain Layout
31907 Transform
31908 \end_layout
31909
31910 \end_inset
31911
31912  and 
31913 \begin_inset Flex Code
31914 status collapsed
31915
31916 \begin_layout Plain Layout
31917 TransformCommand
31918 \end_layout
31919
31920 \end_inset
31921
31922  commands:
31923 \end_layout
31924
31925 \begin_layout Description
31926 \begin_inset Flex Code
31927 status collapsed
31928
31929 \begin_layout Plain Layout
31930 $$ResizeFront
31931 \end_layout
31932
31933 \end_inset
31934
31935  The front part of the resize command.
31936 \end_layout
31937
31938 \begin_layout Description
31939 \begin_inset Flex Code
31940 status collapsed
31941
31942 \begin_layout Plain Layout
31943 $$ResizeBack
31944 \end_layout
31945
31946 \end_inset
31947
31948  The back part of the resize command.
31949 \end_layout
31950
31951 \begin_layout Description
31952 \begin_inset Flex Code
31953 status collapsed
31954
31955 \begin_layout Plain Layout
31956 $$RotateFront
31957 \end_layout
31958
31959 \end_inset
31960
31961  The front part of the rotation command.
31962 \end_layout
31963
31964 \begin_layout Description
31965 \begin_inset Flex Code
31966 status collapsed
31967
31968 \begin_layout Plain Layout
31969 $$RotateBack
31970 \end_layout
31971
31972 \end_inset
31973
31974  The back part of the rotation command.
31975 \end_layout
31976
31977 \begin_layout Standard
31978 The value string of the 
31979 \begin_inset Flex Code
31980 status collapsed
31981
31982 \begin_layout Plain Layout
31983 Option
31984 \end_layout
31985
31986 \end_inset
31987
31988  command supports additionally the following substitutions if they are enabled by the 
31989 \begin_inset Flex Code
31990 status collapsed
31991
31992 \begin_layout Plain Layout
31993 Transform
31994 \end_layout
31995
31996 \end_inset
31997
31998  and 
31999 \begin_inset Flex Code
32000 status collapsed
32001
32002 \begin_layout Plain Layout
32003 TransformOption
32004 \end_layout
32005
32006 \end_inset
32007
32008  commands:
32009 \end_layout
32010
32011 \begin_layout Description
32012 \begin_inset Flex Code
32013 status collapsed
32014
32015 \begin_layout Plain Layout
32016 $$Clip
32017 \end_layout
32018
32019 \end_inset
32020
32021  The clip option.
32022 \end_layout
32023
32024 \begin_layout Description
32025 \begin_inset Flex Code
32026 status collapsed
32027
32028 \begin_layout Plain Layout
32029 $$Extra
32030 \end_layout
32031
32032 \end_inset
32033
32034  The extra option.
32035 \end_layout
32036
32037 \begin_layout Description
32038 \begin_inset Flex Code
32039 status collapsed
32040
32041 \begin_layout Plain Layout
32042 $$Resize
32043 \end_layout
32044
32045 \end_inset
32046
32047  The resize option.
32048 \end_layout
32049
32050 \begin_layout Description
32051 \begin_inset Flex Code
32052 status collapsed
32053
32054 \begin_layout Plain Layout
32055 $$Rotate
32056 \end_layout
32057
32058 \end_inset
32059
32060  The rotation option.
32061 \end_layout
32062
32063 \begin_layout Standard
32064 You may ask why there are so many path macros.
32065  There are mainly two reasons:
32066 \end_layout
32067
32068 \begin_layout Enumerate
32069 Relative and absolute file names should remain relative or absolute,
32070  respectively.
32071  Users may have reasons to prefer either form.
32072  Relative names are useful for portable documents that should work on different machines,
32073  for example.
32074  Absolute names may be required by some programs.
32075 \end_layout
32076
32077 \begin_layout Enumerate
32078 \SpecialChar LaTeX
32079  treats relative file names differently than \SpecialChar LyX
32080  and other programs in nested included files.
32081  For \SpecialChar LyX
32082 ,
32083  a relative file name is always relative to the document that contains the file name.
32084  For \SpecialChar LaTeX
32085 ,
32086  it is always relative to the master document.
32087  These two definitions are identical if you have only one document,
32088  but differ if you have a master document that includes part documents.
32089  That means that relative filenames must be transformed when presented to \SpecialChar LaTeX
32090 .
32091  Fortunately \SpecialChar LyX
32092  does this automatically for you if you choose the right macros.
32093 \end_layout
32094
32095 \begin_layout Standard
32096 So which path macro should be used in new template definitions?
32097  The rule is not difficult:
32098 \end_layout
32099
32100 \begin_layout Itemize
32101 Use 
32102 \begin_inset Flex Code
32103 status collapsed
32104
32105 \begin_layout Plain Layout
32106 $$AbsPath
32107 \end_layout
32108
32109 \end_inset
32110
32111  if an absolute path is required.
32112 \end_layout
32113
32114 \begin_layout Itemize
32115 Use 
32116 \begin_inset Flex Code
32117 status collapsed
32118
32119 \begin_layout Plain Layout
32120 $$AbsOrRelPathMaster
32121 \end_layout
32122
32123 \end_inset
32124
32125  if the substituted string is some kind of \SpecialChar LaTeX
32126  input.
32127 \end_layout
32128
32129 \begin_layout Itemize
32130 Else use 
32131 \begin_inset Flex Code
32132 status collapsed
32133
32134 \begin_layout Plain Layout
32135 $$AbsOrRelPathParent
32136 \end_layout
32137
32138 \end_inset
32139
32140  in order to preserve the user's choice.
32141 \end_layout
32142
32143 \begin_layout Standard
32144 There are special cases where this rule does not work and e.
32145 \begin_inset space \thinspace{}
32146 \end_inset
32147
32148 g.
32149 \begin_inset space \space{}
32150 \end_inset
32151
32152 relative names are needed,
32153  but normally it will work just fine.
32154  One example for such a case is the command 
32155 \begin_inset Flex Code
32156 status collapsed
32157
32158 \begin_layout Plain Layout
32159 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
32160 \end_layout
32161
32162 \end_inset
32163
32164  in the XFig template above:
32165  We can't use the absolute name because the copier for 
32166 \begin_inset Flex Code
32167 status collapsed
32168
32169 \begin_layout Plain Layout
32170 .pstex_t
32171 \end_layout
32172
32173 \end_inset
32174
32175  files needs the relative name in order to rewrite the file content.
32176 \end_layout
32177
32178 \begin_layout Section
32179 Security discussion
32180 \begin_inset CommandInset label
32181 LatexCommand label
32182 name "sec:Security-discussion"
32183
32184 \end_inset
32185
32186
32187 \end_layout
32188
32189 \begin_layout Standard
32190 The external material feature interfaces with a lot of external programs and does so automatically,
32191  so we have to consider the security implications of this.
32192  In particular,
32193  since you have the option of including your own filenames and/or parameter strings and those are expanded into a command,
32194  it seems that it would be possible to create a malicious document which executes arbitrary commands when a user views or prints the document.
32195  This is something we definitely want to avoid.
32196 \end_layout
32197
32198 \begin_layout Standard
32199 However,
32200  since the external program commands are specified in the template configuration file only,
32201  there are no security issues if \SpecialChar LyX
32202  is properly configured with safe templates only.
32203  This is so because the external programs are invoked with the 
32204 \begin_inset Flex Code
32205 status collapsed
32206
32207 \begin_layout Plain Layout
32208 execvp
32209 \end_layout
32210
32211 \end_inset
32212
32213 -system call rather than the 
32214 \begin_inset Flex Code
32215 status collapsed
32216
32217 \begin_layout Plain Layout
32218 system
32219 \end_layout
32220
32221 \end_inset
32222
32223  system-call,
32224  so it's not possible to execute arbitrary commands from the filename or parameter section via the shell.
32225 \end_layout
32226
32227 \begin_layout Standard
32228 This also implies that you are restricted in what command strings you can use in the external material templates.
32229  In particular,
32230  pipes and redirection are not readily available.
32231  This has to be so if \SpecialChar LyX
32232  should remain safe.
32233  If you want to use some of the shell features,
32234  you should write a safe script to do this in a controlled manner,
32235  and then invoke the script from the command string.
32236  
32237 \end_layout
32238
32239 \begin_layout Standard
32240 It is possible to design a template that interacts directly with the shell,
32241  but since this would allow a malicious user to execute arbitrary commands by writing clever filenames and/or parameters,
32242  we generally recommend that you only use safe scripts that work with the 
32243 \begin_inset Flex Code
32244 status collapsed
32245
32246 \begin_layout Plain Layout
32247 execvp
32248 \end_layout
32249
32250 \end_inset
32251
32252  system call in a controlled manner.
32253  Of course,
32254  for use in a controlled environment,
32255  it can be tempting to just fall back to use ordinary shell scripts.
32256  If you do so,
32257  be aware that you 
32258 \emph on
32259 will
32260 \emph default
32261  provide an easily exploitable security hole in your system.
32262  Of course it stands to reason that such unsafe templates will never be included in the standard \SpecialChar LyX
32263  distribution,
32264  although we do encourage people to submit new templates in the open source tradition.
32265  But \SpecialChar LyX
32266  as shipped from the official distribution channels will never have unsafe templates.
32267 \end_layout
32268
32269 \begin_layout Standard
32270 Including external material provides a lot of power,
32271  and you have to be careful not to introduce security hazards with this power.
32272  A subtle error in a single line in an innocent looking script can open the door to huge security problems.
32273  So if you do not fully understand the issues,
32274  we recommend that you consult a knowledgeable security professional or the \SpecialChar LyX
32275  development team if you have any questions about whether a given template is safe or not.
32276  And do this before you use it in an uncontrolled environment.
32277 \end_layout
32278
32279 \begin_layout Chapter
32280 \start_of_appendix
32281 List of supported \SpecialChar LyX
32282  functions to be used in layouts
32283 \begin_inset CommandInset label
32284 LatexCommand label
32285 name "chap:List-of-functions"
32286
32287 \end_inset
32288
32289
32290 \end_layout
32291
32292 \begin_layout Standard
32293 \align center
32294 \begin_inset Tabular
32295 <lyxtabular version="3" rows="11" columns="8">
32296 <features tabularvalignment="middle">
32297 <column alignment="left" valignment="top">
32298 <column alignment="left" valignment="top">
32299 <column alignment="left" valignment="top">
32300 <column alignment="left" valignment="top">
32301 <column alignment="left" valignment="top">
32302 <column alignment="left" valignment="top">
32303 <column alignment="left" valignment="top">
32304 <column alignment="left" valignment="top">
32305 <row>
32306 <cell alignment="left" valignment="top" usebox="none">
32307 \begin_inset Text
32308
32309 \begin_layout Plain Layout
32310 accents
32311 \end_layout
32312
32313 \end_inset
32314 </cell>
32315 <cell alignment="left" valignment="top" usebox="none">
32316 \begin_inset Text
32317
32318 \begin_layout Plain Layout
32319 booktabs
32320 \end_layout
32321
32322 \end_inset
32323 </cell>
32324 <cell alignment="left" valignment="top" usebox="none">
32325 \begin_inset Text
32326
32327 \begin_layout Plain Layout
32328 feyn
32329 \end_layout
32330
32331 \end_inset
32332 </cell>
32333 <cell alignment="left" valignment="top" usebox="none">
32334 \begin_inset Text
32335
32336 \begin_layout Plain Layout
32337 listings
32338 \end_layout
32339
32340 \end_inset
32341 </cell>
32342 <cell alignment="center" valignment="top" usebox="none">
32343 \begin_inset Text
32344
32345 \begin_layout Plain Layout
32346 natbib
32347 \end_layout
32348
32349 \end_inset
32350 </cell>
32351 <cell alignment="center" valignment="top" usebox="none">
32352 \begin_inset Text
32353
32354 \begin_layout Plain Layout
32355 rsphrase
32356 \end_layout
32357
32358 \end_inset
32359 </cell>
32360 <cell alignment="center" valignment="top" usebox="none">
32361 \begin_inset Text
32362
32363 \begin_layout Plain Layout
32364 tfrupee
32365 \end_layout
32366
32367 \end_inset
32368 </cell>
32369 <cell alignment="center" valignment="top" usebox="none">
32370 \begin_inset Text
32371
32372 \begin_layout Plain Layout
32373 wasysym
32374 \end_layout
32375
32376 \end_inset
32377 </cell>
32378 </row>
32379 <row>
32380 <cell alignment="left" valignment="top" usebox="none">
32381 \begin_inset Text
32382
32383 \begin_layout Plain Layout
32384 amsbsy
32385 \end_layout
32386
32387 \end_inset
32388 </cell>
32389 <cell alignment="left" valignment="top" usebox="none">
32390 \begin_inset Text
32391
32392 \begin_layout Plain Layout
32393 calc
32394 \end_layout
32395
32396 \end_inset
32397 </cell>
32398 <cell alignment="left" valignment="top" usebox="none">
32399 \begin_inset Text
32400
32401 \begin_layout Plain Layout
32402 fixltx2e
32403 \end_layout
32404
32405 \end_inset
32406 </cell>
32407 <cell alignment="left" valignment="top" usebox="none">
32408 \begin_inset Text
32409
32410 \begin_layout Plain Layout
32411 longtable
32412 \end_layout
32413
32414 \end_inset
32415 </cell>
32416 <cell alignment="center" valignment="top" usebox="none">
32417 \begin_inset Text
32418
32419 \begin_layout Plain Layout
32420 nomencl
32421 \end_layout
32422
32423 \end_inset
32424 </cell>
32425 <cell alignment="center" valignment="top" usebox="none">
32426 \begin_inset Text
32427
32428 \begin_layout Plain Layout
32429 setspace
32430 \end_layout
32431
32432 \end_inset
32433 </cell>
32434 <cell alignment="center" valignment="top" usebox="none">
32435 \begin_inset Text
32436
32437 \begin_layout Plain Layout
32438 tipa
32439 \end_layout
32440
32441 \end_inset
32442 </cell>
32443 <cell alignment="center" valignment="top" usebox="none">
32444 \begin_inset Text
32445
32446 \begin_layout Plain Layout
32447 wrapfig
32448 \end_layout
32449
32450 \end_inset
32451 </cell>
32452 </row>
32453 <row>
32454 <cell alignment="left" valignment="top" usebox="none">
32455 \begin_inset Text
32456
32457 \begin_layout Plain Layout
32458 amscd
32459 \end_layout
32460
32461 \end_inset
32462 </cell>
32463 <cell alignment="left" valignment="top" usebox="none">
32464 \begin_inset Text
32465
32466 \begin_layout Plain Layout
32467 CJK
32468 \end_layout
32469
32470 \end_inset
32471 </cell>
32472 <cell alignment="left" valignment="top" usebox="none">
32473 \begin_inset Text
32474
32475 \begin_layout Plain Layout
32476 float
32477 \end_layout
32478
32479 \end_inset
32480 </cell>
32481 <cell alignment="left" valignment="top" usebox="none">
32482 \begin_inset Text
32483
32484 \begin_layout Plain Layout
32485 lyxskak
32486 \end_layout
32487
32488 \end_inset
32489 </cell>
32490 <cell alignment="center" valignment="top" usebox="none">
32491 \begin_inset Text
32492
32493 \begin_layout Plain Layout
32494 pdfpages
32495 \end_layout
32496
32497 \end_inset
32498 </cell>
32499 <cell alignment="center" valignment="top" usebox="none">
32500 \begin_inset Text
32501
32502 \begin_layout Plain Layout
32503 shapepar
32504 \end_layout
32505
32506 \end_inset
32507 </cell>
32508 <cell alignment="center" valignment="top" usebox="none">
32509 \begin_inset Text
32510
32511 \begin_layout Plain Layout
32512 tipx
32513 \end_layout
32514
32515 \end_inset
32516 </cell>
32517 <cell alignment="center" valignment="top" usebox="none">
32518 \begin_inset Text
32519
32520 \begin_layout Plain Layout
32521 xargs
32522 \end_layout
32523
32524 \end_inset
32525 </cell>
32526 </row>
32527 <row>
32528 <cell alignment="left" valignment="top" usebox="none">
32529 \begin_inset Text
32530
32531 \begin_layout Plain Layout
32532 amsmath
32533 \end_layout
32534
32535 \end_inset
32536 </cell>
32537 <cell alignment="left" valignment="top" usebox="none">
32538 \begin_inset Text
32539
32540 \begin_layout Plain Layout
32541 color
32542 \end_layout
32543
32544 \end_inset
32545 </cell>
32546 <cell alignment="left" valignment="top" usebox="none">
32547 \begin_inset Text
32548
32549 \begin_layout Plain Layout
32550 framed
32551 \end_layout
32552
32553 \end_inset
32554 </cell>
32555 <cell alignment="left" valignment="top" usebox="none">
32556 \begin_inset Text
32557
32558 \begin_layout Plain Layout
32559 makeidx
32560 \end_layout
32561
32562 \end_inset
32563 </cell>
32564 <cell alignment="center" valignment="top" usebox="none">
32565 \begin_inset Text
32566
32567 \begin_layout Plain Layout
32568 pifont
32569 \end_layout
32570
32571 \end_inset
32572 </cell>
32573 <cell alignment="center" valignment="top" usebox="none">
32574 \begin_inset Text
32575
32576 \begin_layout Plain Layout
32577 slashed
32578 \end_layout
32579
32580 \end_inset
32581 </cell>
32582 <cell alignment="center" valignment="top" usebox="none">
32583 \begin_inset Text
32584
32585 \begin_layout Plain Layout
32586 tone
32587 \end_layout
32588
32589 \end_inset
32590 </cell>
32591 <cell alignment="center" valignment="top" usebox="none">
32592 \begin_inset Text
32593
32594 \begin_layout Plain Layout
32595 xcolor
32596 \end_layout
32597
32598 \end_inset
32599 </cell>
32600 </row>
32601 <row>
32602 <cell alignment="left" valignment="top" usebox="none">
32603 \begin_inset Text
32604
32605 \begin_layout Plain Layout
32606 amssymb
32607 \end_layout
32608
32609 \end_inset
32610 </cell>
32611 <cell alignment="left" valignment="top" usebox="none">
32612 \begin_inset Text
32613
32614 \begin_layout Plain Layout
32615 covington
32616 \end_layout
32617
32618 \end_inset
32619 </cell>
32620 <cell alignment="left" valignment="top" usebox="none">
32621 \begin_inset Text
32622
32623 \begin_layout Plain Layout
32624 graphicx
32625 \end_layout
32626
32627 \end_inset
32628 </cell>
32629 <cell alignment="left" valignment="top" usebox="none">
32630 \begin_inset Text
32631
32632 \begin_layout Plain Layout
32633 marvosym
32634 \end_layout
32635
32636 \end_inset
32637 </cell>
32638 <cell alignment="center" valignment="top" usebox="none">
32639 \begin_inset Text
32640
32641 \begin_layout Plain Layout
32642 pmboxdraw
32643 \end_layout
32644
32645 \end_inset
32646 </cell>
32647 <cell alignment="center" valignment="top" usebox="none">
32648 \begin_inset Text
32649
32650 \begin_layout Plain Layout
32651 soul
32652 \end_layout
32653
32654 \end_inset
32655 </cell>
32656 <cell alignment="center" valignment="top" usebox="none">
32657 \begin_inset Text
32658
32659 \begin_layout Plain Layout
32660 txfonts
32661 \end_layout
32662
32663 \end_inset
32664 </cell>
32665 <cell alignment="center" valignment="top" usebox="none">
32666 \begin_inset Text
32667
32668 \begin_layout Plain Layout
32669 xy
32670 \end_layout
32671
32672 \end_inset
32673 </cell>
32674 </row>
32675 <row>
32676 <cell alignment="left" valignment="top" usebox="none">
32677 \begin_inset Text
32678
32679 \begin_layout Plain Layout
32680 amstext
32681 \end_layout
32682
32683 \end_inset
32684 </cell>
32685 <cell alignment="left" valignment="top" usebox="none">
32686 \begin_inset Text
32687
32688 \begin_layout Plain Layout
32689 csquotes
32690 \end_layout
32691
32692 \end_inset
32693 </cell>
32694 <cell alignment="left" valignment="top" usebox="none">
32695 \begin_inset Text
32696
32697 \begin_layout Plain Layout
32698 hhline
32699 \end_layout
32700
32701 \end_inset
32702 </cell>
32703 <cell alignment="left" valignment="top" usebox="none">
32704 \begin_inset Text
32705
32706 \begin_layout Plain Layout
32707 mathdesign
32708 \end_layout
32709
32710 \end_inset
32711 </cell>
32712 <cell alignment="center" valignment="top" usebox="none">
32713 \begin_inset Text
32714
32715 \begin_layout Plain Layout
32716 polyglossia
32717 \end_layout
32718
32719 \end_inset
32720 </cell>
32721 <cell alignment="center" valignment="top" usebox="none">
32722 \begin_inset Text
32723
32724 \begin_layout Plain Layout
32725 splitidx
32726 \end_layout
32727
32728 \end_inset
32729 </cell>
32730 <cell alignment="center" valignment="top" usebox="none">
32731 \begin_inset Text
32732
32733 \begin_layout Plain Layout
32734 ulem
32735 \end_layout
32736
32737 \end_inset
32738 </cell>
32739 <cell alignment="center" valignment="top" usebox="none">
32740 \begin_inset Text
32741
32742 \begin_layout Plain Layout
32743 yhmath
32744 \end_layout
32745
32746 \end_inset
32747 </cell>
32748 </row>
32749 <row>
32750 <cell alignment="left" valignment="top" usebox="none">
32751 \begin_inset Text
32752
32753 \begin_layout Plain Layout
32754 amsthm
32755 \end_layout
32756
32757 \end_inset
32758 </cell>
32759 <cell alignment="left" valignment="top" usebox="none">
32760 \begin_inset Text
32761
32762 \begin_layout Plain Layout
32763 dvipost
32764 \end_layout
32765
32766 \end_inset
32767 </cell>
32768 <cell alignment="left" valignment="top" usebox="none">
32769 \begin_inset Text
32770
32771 \begin_layout Plain Layout
32772 hyperref
32773 \end_layout
32774
32775 \end_inset
32776 </cell>
32777 <cell alignment="left" valignment="top" usebox="none">
32778 \begin_inset Text
32779
32780 \begin_layout Plain Layout
32781 mathdots
32782 \end_layout
32783
32784 \end_inset
32785 </cell>
32786 <cell alignment="center" valignment="top" usebox="none">
32787 \begin_inset Text
32788
32789 \begin_layout Plain Layout
32790 prettyref
32791 \end_layout
32792
32793 \end_inset
32794 </cell>
32795 <cell alignment="center" valignment="top" usebox="none">
32796 \begin_inset Text
32797
32798 \begin_layout Plain Layout
32799 subfig
32800 \end_layout
32801
32802 \end_inset
32803 </cell>
32804 <cell alignment="center" valignment="top" usebox="none">
32805 \begin_inset Text
32806
32807 \begin_layout Plain Layout
32808 undertilde
32809 \end_layout
32810
32811 \end_inset
32812 </cell>
32813 <cell alignment="center" valignment="top" usebox="none">
32814 \begin_inset Text
32815
32816 \begin_layout Plain Layout
32817
32818 \end_layout
32819
32820 \end_inset
32821 </cell>
32822 </row>
32823 <row>
32824 <cell alignment="left" valignment="top" usebox="none">
32825 \begin_inset Text
32826
32827 \begin_layout Plain Layout
32828 array
32829 \end_layout
32830
32831 \end_inset
32832 </cell>
32833 <cell alignment="left" valignment="top" usebox="none">
32834 \begin_inset Text
32835
32836 \begin_layout Plain Layout
32837 endnotes
32838 \end_layout
32839
32840 \end_inset
32841 </cell>
32842 <cell alignment="left" valignment="top" usebox="none">
32843 \begin_inset Text
32844
32845 \begin_layout Plain Layout
32846 ifsym
32847 \end_layout
32848
32849 \end_inset
32850 </cell>
32851 <cell alignment="left" valignment="top" usebox="none">
32852 \begin_inset Text
32853
32854 \begin_layout Plain Layout
32855 mathrsfs
32856 \end_layout
32857
32858 \end_inset
32859 </cell>
32860 <cell alignment="center" valignment="top" usebox="none">
32861 \begin_inset Text
32862
32863 \begin_layout Plain Layout
32864 pxfonts
32865 \end_layout
32866
32867 \end_inset
32868 </cell>
32869 <cell alignment="center" valignment="top" usebox="none">
32870 \begin_inset Text
32871
32872 \begin_layout Plain Layout
32873 subscript
32874 \end_layout
32875
32876 \end_inset
32877 </cell>
32878 <cell alignment="center" valignment="top" usebox="none">
32879 \begin_inset Text
32880
32881 \begin_layout Plain Layout
32882 units
32883 \end_layout
32884
32885 \end_inset
32886 </cell>
32887 <cell alignment="center" valignment="top" usebox="none">
32888 \begin_inset Text
32889
32890 \begin_layout Plain Layout
32891
32892 \end_layout
32893
32894 \end_inset
32895 </cell>
32896 </row>
32897 <row>
32898 <cell alignment="left" valignment="top" usebox="none">
32899 \begin_inset Text
32900
32901 \begin_layout Plain Layout
32902 ascii
32903 \end_layout
32904
32905 \end_inset
32906 </cell>
32907 <cell alignment="left" valignment="top" usebox="none">
32908 \begin_inset Text
32909
32910 \begin_layout Plain Layout
32911 enumitem
32912 \end_layout
32913
32914 \end_inset
32915 </cell>
32916 <cell alignment="left" valignment="top" usebox="none">
32917 \begin_inset Text
32918
32919 \begin_layout Plain Layout
32920 ifthen
32921 \end_layout
32922
32923 \end_inset
32924 </cell>
32925 <cell alignment="left" valignment="top" usebox="none">
32926 \begin_inset Text
32927
32928 \begin_layout Plain Layout
32929 mhchem
32930 \end_layout
32931
32932 \end_inset
32933 </cell>
32934 <cell alignment="center" valignment="top" usebox="none">
32935 \begin_inset Text
32936
32937 \begin_layout Plain Layout
32938 refstyle
32939 \end_layout
32940
32941 \end_inset
32942 </cell>
32943 <cell alignment="center" valignment="top" usebox="none">
32944 \begin_inset Text
32945
32946 \begin_layout Plain Layout
32947 tcolorbox
32948 \end_layout
32949
32950 \end_inset
32951 </cell>
32952 <cell alignment="center" valignment="top" usebox="none">
32953 \begin_inset Text
32954
32955 \begin_layout Plain Layout
32956 url
32957 \end_layout
32958
32959 \end_inset
32960 </cell>
32961 <cell alignment="center" valignment="top" usebox="none">
32962 \begin_inset Text
32963
32964 \begin_layout Plain Layout
32965
32966 \end_layout
32967
32968 \end_inset
32969 </cell>
32970 </row>
32971 <row>
32972 <cell alignment="left" valignment="top" usebox="none">
32973 \begin_inset Text
32974
32975 \begin_layout Plain Layout
32976 bbding
32977 \end_layout
32978
32979 \end_inset
32980 </cell>
32981 <cell alignment="left" valignment="top" usebox="none">
32982 \begin_inset Text
32983
32984 \begin_layout Plain Layout
32985 esint
32986 \end_layout
32987
32988 \end_inset
32989 </cell>
32990 <cell alignment="left" valignment="top" usebox="none">
32991 \begin_inset Text
32992
32993 \begin_layout Plain Layout
32994 jurabib
32995 \end_layout
32996
32997 \end_inset
32998 </cell>
32999 <cell alignment="left" valignment="top" usebox="none">
33000 \begin_inset Text
33001
33002 \begin_layout Plain Layout
33003 multicol
33004 \end_layout
33005
33006 \end_inset
33007 </cell>
33008 <cell alignment="center" valignment="top" usebox="none">
33009 \begin_inset Text
33010
33011 \begin_layout Plain Layout
33012 rotating
33013 \end_layout
33014
33015 \end_inset
33016 </cell>
33017 <cell alignment="center" valignment="top" usebox="none">
33018 \begin_inset Text
33019
33020 \begin_layout Plain Layout
33021 textcomp
33022 \end_layout
33023
33024 \end_inset
33025 </cell>
33026 <cell alignment="center" valignment="top" usebox="none">
33027 \begin_inset Text
33028
33029 \begin_layout Plain Layout
33030 varioref
33031 \end_layout
33032
33033 \end_inset
33034 </cell>
33035 <cell alignment="center" valignment="top" usebox="none">
33036 \begin_inset Text
33037
33038 \begin_layout Plain Layout
33039
33040 \end_layout
33041
33042 \end_inset
33043 </cell>
33044 </row>
33045 <row>
33046 <cell alignment="center" valignment="top" usebox="none">
33047 \begin_inset Text
33048
33049 \begin_layout Plain Layout
33050 bm
33051 \end_layout
33052
33053 \end_inset
33054 </cell>
33055 <cell alignment="center" valignment="top" usebox="none">
33056 \begin_inset Text
33057
33058 \begin_layout Plain Layout
33059 fancybox
33060 \end_layout
33061
33062 \end_inset
33063 </cell>
33064 <cell alignment="center" valignment="top" usebox="none">
33065 \begin_inset Text
33066
33067 \begin_layout Plain Layout
33068 latexsym
33069 \end_layout
33070
33071 \end_inset
33072 </cell>
33073 <cell alignment="center" valignment="top" usebox="none">
33074 \begin_inset Text
33075
33076 \begin_layout Plain Layout
33077 multirow
33078 \end_layout
33079
33080 \end_inset
33081 </cell>
33082 <cell alignment="center" valignment="top" usebox="none">
33083 \begin_inset Text
33084
33085 \begin_layout Plain Layout
33086 rotfloat
33087 \end_layout
33088
33089 \end_inset
33090 </cell>
33091 <cell alignment="center" valignment="top" usebox="none">
33092 \begin_inset Text
33093
33094 \begin_layout Plain Layout
33095 textgreek
33096 \end_layout
33097
33098 \end_inset
33099 </cell>
33100 <cell alignment="center" valignment="top" usebox="none">
33101 \begin_inset Text
33102
33103 \begin_layout Plain Layout
33104 verbatim
33105 \end_layout
33106
33107 \end_inset
33108 </cell>
33109 <cell alignment="center" valignment="top" usebox="none">
33110 \begin_inset Text
33111
33112 \begin_layout Plain Layout
33113
33114 \end_layout
33115
33116 \end_inset
33117 </cell>
33118 </row>
33119 </lyxtabular>
33120
33121 \end_inset
33122
33123
33124 \end_layout
33125
33126 \begin_layout Chapter
33127 Names of available colors to be used in layouts
33128 \begin_inset CommandInset label
33129 LatexCommand label
33130 name "chap:Names-of-colors"
33131
33132 \end_inset
33133
33134
33135 \end_layout
33136
33137 \begin_layout Standard
33138 The colors listed below are the standard colors and those that you can adjust in the \SpecialChar LyX
33139  preferences.
33140 \end_layout
33141
33142 \begin_layout Section
33143 Color functions
33144 \end_layout
33145
33146 \begin_layout Standard
33147 The following are no real colors,
33148  but rather act on color definitions:
33149 \end_layout
33150
33151 \begin_layout Description
33152 ignore The color is ignored
33153 \end_layout
33154
33155 \begin_layout Description
33156 inherit The color is inherited
33157 \end_layout
33158
33159 \begin_layout Description
33160 none
33161 \family roman
33162 \series medium
33163 \shape up
33164 \size normal
33165 \emph off
33166 \bar no
33167 \strikeout off
33168 \uuline off
33169 \uwave off
33170 \noun off
33171 \color none
33172  No particular color – clear or default
33173 \end_layout
33174
33175 \begin_layout Section
33176 Static colors
33177 \end_layout
33178
33179 \begin_layout Standard
33180 These are fixed colors that cannot be customized.
33181  Please do 
33182 \emph on
33183 not
33184 \emph default
33185  use these colors in layout definitions,
33186  since they will not work well with some color themes (such as dark themes):
33187 \end_layout
33188
33189 \begin_layout Description
33190 black
33191 \end_layout
33192
33193 \begin_layout Description
33194 white
33195 \end_layout
33196
33197 \begin_layout Description
33198 blue
33199 \end_layout
33200
33201 \begin_layout Description
33202 brown
33203 \end_layout
33204
33205 \begin_layout Description
33206 cyan
33207 \end_layout
33208
33209 \begin_layout Description
33210 darkgray
33211 \end_layout
33212
33213 \begin_layout Description
33214 gray
33215 \end_layout
33216
33217 \begin_layout Description
33218 green
33219 \end_layout
33220
33221 \begin_layout Description
33222 lightgray
33223 \end_layout
33224
33225 \begin_layout Description
33226 lime
33227 \end_layout
33228
33229 \begin_layout Description
33230 magenta
33231 \end_layout
33232
33233 \begin_layout Description
33234 olive
33235 \end_layout
33236
33237 \begin_layout Description
33238 orange
33239 \end_layout
33240
33241 \begin_layout Description
33242 pink
33243 \end_layout
33244
33245 \begin_layout Description
33246 purple
33247 \end_layout
33248
33249 \begin_layout Description
33250 red
33251 \end_layout
33252
33253 \begin_layout Description
33254 teal
33255 \end_layout
33256
33257 \begin_layout Description
33258 violet
33259 \end_layout
33260
33261 \begin_layout Description
33262 yellow
33263 \end_layout
33264
33265 \begin_layout Section
33266 Dynamic colors
33267 \end_layout
33268
33269 \begin_layout Standard
33270 These are the colors allocated to specific elements in 
33271 \begin_inset Info
33272 type  "menu"
33273 arg   "dialog-show prefs"
33274 \end_inset
33275
33276 :
33277 \end_layout
33278
33279 \begin_layout Description
33280 added_space Added space color
33281 \end_layout
33282
33283 \begin_layout Description
33284 addedtext Added text color
33285 \end_layout
33286
33287 \begin_layout Description
33288 appendix Appendix marker color
33289 \end_layout
33290
33291 \begin_layout Description
33292 background Background color
33293 \end_layout
33294
33295 \begin_layout Description
33296 bookmark Bookmark indicator color
33297 \end_layout
33298
33299 \begin_layout Description
33300 bottomarea Bottom area color
33301 \end_layout
33302
33303 \begin_layout Description
33304 branchlabel Label color for branches
33305 \end_layout
33306
33307 \begin_layout Description
33308 buttonbg Color used for button background
33309 \end_layout
33310
33311 \begin_layout Description
33312 buttonframe Color for inset button frames
33313 \end_layout
33314
33315 \begin_layout Description
33316 buttonhoverbg Color used for button background under focus
33317 \end_layout
33318
33319 \begin_layout Description
33320 buttonhoverbg_broken Color used for broken inset button under focus
33321 \end_layout
33322
33323 \begin_layout Description
33324 changebar Changebar color
33325 \end_layout
33326
33327 \begin_layout Description
33328 changedtextauthor1 Changed text color author 1
33329 \end_layout
33330
33331 \begin_layout Description
33332 changedtextauthor2 Changed text color author 2
33333 \end_layout
33334
33335 \begin_layout Description
33336 changedtextauthor3 Changed text color author 3
33337 \end_layout
33338
33339 \begin_layout Description
33340 changedtextauthor4 Changed text color author 4
33341 \end_layout
33342
33343 \begin_layout Description
33344 changedtextauthor5 Changed text color author 5
33345 \end_layout
33346
33347 \begin_layout Description
33348 changedtextcomparison Changed text color document comparison (workarea)
33349 \end_layout
33350
33351 \begin_layout Description
33352 collapsible Collapsible insets text color
33353 \end_layout
33354
33355 \begin_layout Description
33356 collapsibleframe Collapsible insets framecolor
33357 \end_layout
33358
33359 \begin_layout Description
33360 command Text color for command insets
33361 \end_layout
33362
33363 \begin_layout Description
33364 commandbg Background color for command insets
33365 \end_layout
33366
33367 \begin_layout Description
33368 commandframe Frame color for command insets
33369 \end_layout
33370
33371 \begin_layout Description
33372 command_broken Text color for broken (reference) insets
33373 \end_layout
33374
33375 \begin_layout Description
33376 commandbg_broken Background color for broken insets
33377 \end_layout
33378
33379 \begin_layout Description
33380 commandframe_broken Frame color for broken insets
33381 \end_layout
33382
33383 \begin_layout Description
33384 comment Label color for comments
33385 \end_layout
33386
33387 \begin_layout Description
33388 commentbg Background color of comments
33389 \end_layout
33390
33391 \begin_layout Description
33392 cursor Cursor color
33393 \end_layout
33394
33395 \begin_layout Description
33396 deletedtext Deleted text color
33397 \end_layout
33398
33399 \begin_layout Description
33400 deletedtextmodifier Deleted text modifying color (for adjusting the brightness)
33401 \end_layout
33402
33403 \begin_layout Description
33404 depthbar Color for the depth bars in the margin
33405 \end_layout
33406
33407 \begin_layout Description
33408 eolmarker End of line marker color
33409 \end_layout
33410
33411 \begin_layout Description
33412 error Color of the \SpecialChar LaTeX
33413  error box
33414 \end_layout
33415
33416 \begin_layout Description
33417 footlabel Label color for footnotes
33418 \end_layout
33419
33420 \begin_layout Description
33421 foreground Foreground color
33422 \end_layout
33423
33424 \begin_layout Description
33425 graphicsbg Graphics inset background color
33426 \end_layout
33427
33428 \begin_layout Description
33429 greyedoutbg Background color of greyedout inset
33430 \end_layout
33431
33432 \begin_layout Description
33433 greyedoutlabel Label color for greyedout insets
33434 \end_layout
33435
33436 \begin_layout Description
33437 greyedouttext Color for greyedout inset text
33438 \end_layout
33439
33440 \begin_layout Description
33441 indexlabel Label color for index insets
33442 \end_layout
33443
33444 \begin_layout Description
33445 inlinecompletion Inline completion color
33446 \end_layout
33447
33448 \begin_layout Description
33449 insetbg Inset marker background color
33450 \end_layout
33451
33452 \begin_layout Description
33453 insetframe Inset marker frame color
33454 \end_layout
33455
33456 \begin_layout Description
33457 language Color for marking foreign language words
33458 \end_layout
33459
33460 \begin_layout Description
33461 latex Text color in \SpecialChar LaTeX
33462  mode
33463 \end_layout
33464
33465 \begin_layout Description
33466 listingsbg Background color of listings inset
33467 \end_layout
33468
33469 \begin_layout Description
33470 marginlabel Label color for margin notes
33471 \end_layout
33472
33473 \begin_layout Description
33474 math Math inset text color
33475 \end_layout
33476
33477 \begin_layout Description
33478 mathbg Math inset background color
33479 \end_layout
33480
33481 \begin_layout Description
33482 mathcorners Math inset frame color not under focus
33483 \end_layout
33484
33485 \begin_layout Description
33486 mathframe Math inset frame color under focus
33487 \end_layout
33488
33489 \begin_layout Description
33490 mathline Math line color
33491 \end_layout
33492
33493 \begin_layout Description
33494 mathmacrobg Macro math inset background color
33495 \end_layout
33496
33497 \begin_layout Description
33498 mathmacroblend Macro math blended color
33499 \end_layout
33500
33501 \begin_layout Description
33502 mathmacroframe Macro math frame color
33503 \end_layout
33504
33505 \begin_layout Description
33506 mathmacrohoverbg Macro math inset background color hovered
33507 \end_layout
33508
33509 \begin_layout Description
33510 mathmacrolabel Macro math label color
33511 \end_layout
33512
33513 \begin_layout Description
33514 mathmacronewarg Macro template color for new parameters
33515 \end_layout
33516
33517 \begin_layout Description
33518 mathmacrooldarg Macro template color for old parameters
33519 \end_layout
33520
33521 \begin_layout Description
33522 newpage New page color
33523 \end_layout
33524
33525 \begin_layout Description
33526 nonunique_inlinecompletion Inline completion color for the non-unique part
33527 \end_layout
33528
33529 \begin_layout Description
33530 note Label color for notes
33531 \end_layout
33532
33533 \begin_layout Description
33534 notebg Background color of notes
33535 \end_layout
33536
33537 \begin_layout Description
33538 pagebreak Page break/line break color
33539 \end_layout
33540
33541 \begin_layout Description
33542 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
33543 \end_layout
33544
33545 \begin_layout Description
33546 phantomtext Text color for phantom insets
33547 \end_layout
33548
33549 \begin_layout Description
33550 preview The color used for previews
33551 \end_layout
33552
33553 \begin_layout Description
33554 previewframe Preview frame color
33555 \end_layout
33556
33557 \begin_layout Description
33558 regexpframe Color for regexp frame
33559 \end_layout
33560
33561 \begin_layout Description
33562 scroll Color that indicates when a row can be scrolled 
33563 \end_layout
33564
33565 \begin_layout Description
33566 selection Background color of selected text
33567 \end_layout
33568
33569 \begin_layout Description
33570 selectionmath Foreground color of selected text in math insets
33571 \end_layout
33572
33573 \begin_layout Description
33574 selectiontext Foreground color of selected text
33575 \end_layout
33576
33577 \begin_layout Description
33578 shadedbg Background color of shaded box
33579 \end_layout
33580
33581 \begin_layout Description
33582 special Special chars text color
33583 \end_layout
33584
33585 \begin_layout Description
33586 tabularline Table line color
33587 \end_layout
33588
33589 \begin_layout Description
33590 tabularonoffline Table line color
33591 \end_layout
33592
33593 \begin_layout Description
33594 textlabel1 Color 1 of layout and custom inset labels
33595 \end_layout
33596
33597 \begin_layout Description
33598 textlabel2 Color 2 of layout and custom inset labels
33599 \end_layout
33600
33601 \begin_layout Description
33602 textlabel3 Color 3 of layout and custom inset labels
33603 \end_layout
33604
33605 \begin_layout Description
33606 urllabel Label color for URL insets
33607 \end_layout
33608
33609 \begin_layout Description
33610 urltext Color for URL inset text
33611 \end_layout
33612
33613 \end_body
33614 \end_document