]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Handle URL escaping in beamer frames
[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 \end_layout
12205
12206 \begin_layout Description
12207 \begin_inset Flex Code
12208 status collapsed
12209
12210 \begin_layout Plain Layout
12211 Other
12212 \end_layout
12213
12214 \end_inset
12215
12216  [
12217 \begin_inset Flex Code
12218 status collapsed
12219
12220 \begin_layout Plain Layout
12221 string=""
12222 \end_layout
12223
12224 \end_inset
12225
12226 ] Some document class options,
12227  separated by a comma,
12228  that will be added to the optional part of the 
12229 \begin_inset Flex Code
12230 status collapsed
12231
12232 \begin_layout Plain Layout
12233
12234 \backslash
12235 documentclass
12236 \end_layout
12237
12238 \end_inset
12239
12240  command.
12241 \end_layout
12242
12243 \begin_layout Standard
12244 The 
12245 \begin_inset Flex Code
12246 status collapsed
12247
12248 \begin_layout Plain Layout
12249 ClassOptions
12250 \end_layout
12251
12252 \end_inset
12253
12254  section must end with 
12255 \begin_inset Quotes eld
12256 \end_inset
12257
12258
12259 \begin_inset Flex Code
12260 status collapsed
12261
12262 \begin_layout Plain Layout
12263 End
12264 \end_layout
12265
12266 \end_inset
12267
12268
12269 \begin_inset Quotes erd
12270 \end_inset
12271
12272 .
12273 \end_layout
12274
12275 \begin_layout Subsection
12276 Paragraph styles
12277 \begin_inset CommandInset label
12278 LatexCommand label
12279 name "subsec:Paragraph-Styles"
12280
12281 \end_inset
12282
12283
12284 \end_layout
12285
12286 \begin_layout Standard
12287 A paragraph style description looks like this:
12288 \begin_inset Foot
12289 status collapsed
12290
12291 \begin_layout Plain Layout
12292 Note that this will either define a new style or modify an existing one.
12293 \end_layout
12294
12295 \end_inset
12296
12297
12298 \end_layout
12299
12300 \begin_layout LyX-Code
12301 Style 
12302 \family roman
12303 \emph on
12304 name
12305 \end_layout
12306
12307 \begin_layout LyX-Code
12308  ...
12309 \end_layout
12310
12311 \begin_layout LyX-Code
12312 End
12313 \end_layout
12314
12315 \begin_layout Standard
12316 where the following commands are allowed:
12317 \end_layout
12318
12319 \begin_layout Description
12320 \begin_inset Flex Code
12321 status collapsed
12322
12323 \begin_layout Plain Layout
12324 AddToToc
12325 \end_layout
12326
12327 \end_inset
12328
12329  [
12330 \begin_inset Flex Code
12331 status collapsed
12332
12333 \begin_layout Plain Layout
12334 string
12335 \end_layout
12336
12337 \end_inset
12338
12339 =""] This paragraph will appear in the table of contents of the given type.
12340  An empty string disables.
12341  See also the OutlinerName and the IsTocCaption commands.
12342  Default:
12343  disabled.
12344 \end_layout
12345
12346 \begin_layout Description
12347 \begin_inset Flex Code
12348 status collapsed
12349
12350 \begin_layout Plain Layout
12351 Align
12352 \end_layout
12353
12354 \end_inset
12355
12356  [
12357 \begin_inset Flex Code
12358 status collapsed
12359
12360 \begin_layout Plain Layout
12361
12362 \emph on
12363 block
12364 \emph default
12365 ,
12366  left,
12367  right,
12368  center
12369 \end_layout
12370
12371 \end_inset
12372
12373 ] Paragraph alignment.
12374 \end_layout
12375
12376 \begin_layout Description
12377 \begin_inset Flex Code
12378 status collapsed
12379
12380 \begin_layout Plain Layout
12381 AlignPossible
12382 \end_layout
12383
12384 \end_inset
12385
12386  [
12387 \begin_inset Flex Code
12388 status collapsed
12389
12390 \begin_layout Plain Layout
12391
12392 \emph on
12393 block
12394 \emph default
12395 ,
12396  left,
12397  right,
12398  center
12399 \end_layout
12400
12401 \end_inset
12402
12403 ] A comma separated list of permitted alignments.
12404  (Some \SpecialChar LaTeX
12405  styles prohibit certain alignments,
12406  since those wouldn't make sense.
12407  For example a right-aligned or centered enumeration isn't possible.)
12408 \end_layout
12409
12410 \begin_layout Description
12411 \begin_inset Flex Code
12412 status collapsed
12413
12414 \begin_layout Plain Layout
12415 Argument
12416 \end_layout
12417
12418 \end_inset
12419
12420  [
12421 \begin_inset Flex Code
12422 status collapsed
12423
12424 \begin_layout Plain Layout
12425 int
12426 \end_layout
12427
12428 \end_inset
12429
12430 ] Defines argument number <int> of a command\SpecialChar breakableslash
12431 environment associated with the current style.
12432  The definition must end with 
12433 \begin_inset Flex Code
12434 status collapsed
12435
12436 \begin_layout Plain Layout
12437 EndArgument
12438 \end_layout
12439
12440 \end_inset
12441
12442 .
12443  See 
12444 \begin_inset CommandInset ref
12445 LatexCommand ref
12446 reference "subsec:Arguments"
12447 plural "false"
12448 caps "false"
12449 noprefix "false"
12450 nolink "false"
12451
12452 \end_inset
12453
12454  for more information.
12455  
12456 \end_layout
12457
12458 \begin_layout Description
12459 \begin_inset Flex Code
12460 status collapsed
12461
12462 \begin_layout Plain Layout
12463 AutoNests
12464 \end_layout
12465
12466 \end_inset
12467
12468  Includes a comma-separated list of layouts that should be nested in and after the current layout.
12469  Only makes sense for nestable layouts (such as environments).
12470  Must be ended by 
12471 \begin_inset Quotes eld
12472 \end_inset
12473
12474
12475 \begin_inset Flex Code
12476 status collapsed
12477
12478 \begin_layout Plain Layout
12479 EndAutoNests
12480 \end_layout
12481
12482 \end_inset
12483
12484
12485 \begin_inset Quotes erd
12486 \end_inset
12487
12488 .
12489  See also 
12490 \begin_inset Flex Code
12491 status collapsed
12492
12493 \begin_layout Plain Layout
12494 IsAutoNestedBy
12495 \end_layout
12496
12497 \end_inset
12498
12499 .
12500 \end_layout
12501
12502 \begin_layout Description
12503 \begin_inset Flex Code
12504 status collapsed
12505
12506 \begin_layout Plain Layout
12507 BabelPreamble
12508 \end_layout
12509
12510 \end_inset
12511
12512  Note that this will completely override any prior 
12513 \begin_inset Flex Code
12514 status collapsed
12515
12516 \begin_layout Plain Layout
12517 BabelPreamble
12518 \end_layout
12519
12520 \end_inset
12521
12522  declaration for this style.
12523  Must end with 
12524 \begin_inset Quotes eld
12525 \end_inset
12526
12527
12528 \begin_inset Flex Code
12529 status collapsed
12530
12531 \begin_layout Plain Layout
12532 EndBabelPreamble
12533 \end_layout
12534
12535 \end_inset
12536
12537
12538 \begin_inset Quotes erd
12539 \end_inset
12540
12541 .
12542  See 
12543 \begin_inset CommandInset ref
12544 LatexCommand ref
12545 reference "subsec:I18n"
12546 nolink "false"
12547
12548 \end_inset
12549
12550  for details on its use.
12551 \end_layout
12552
12553 \begin_layout Description
12554 \begin_inset Flex Code
12555 status collapsed
12556
12557 \begin_layout Plain Layout
12558 BottomSep
12559 \end_layout
12560
12561 \end_inset
12562
12563  [
12564 \begin_inset Flex Code
12565 status collapsed
12566
12567 \begin_layout Plain Layout
12568 float=0
12569 \end_layout
12570
12571 \end_inset
12572
12573 ]
12574 \begin_inset Foot
12575 status collapsed
12576
12577 \begin_layout Plain Layout
12578 Note that a `float' here is a real number,
12579  such as:
12580  1.5.
12581 \end_layout
12582
12583 \end_inset
12584
12585  The vertical space with which the last of a chain of paragraphs with this style is separated from the following paragraph.
12586  If the next paragraph has another style,
12587  the separations are not simply added,
12588  but the maximum is taken.
12589 \end_layout
12590
12591 \begin_layout Description
12592 \begin_inset Flex Code
12593 status collapsed
12594
12595 \begin_layout Plain Layout
12596 Category
12597 \end_layout
12598
12599 \end_inset
12600
12601  [
12602 \begin_inset Flex Code
12603 status collapsed
12604
12605 \begin_layout Plain Layout
12606 string
12607 \end_layout
12608
12609 \end_inset
12610
12611 ] The category for this style.
12612  This is used to group related styles in the style combobox on the toolbar.
12613  Any string can be used,
12614  but you may want to use existing categories with your own styles.
12615  
12616 \end_layout
12617
12618 \begin_layout Description
12619 \begin_inset Flex Code
12620 status collapsed
12621
12622 \begin_layout Plain Layout
12623 CopyStyle
12624 \end_layout
12625
12626 \end_inset
12627
12628  [
12629 \begin_inset Flex Code
12630 status collapsed
12631
12632 \begin_layout Plain Layout
12633 string
12634 \end_layout
12635
12636 \end_inset
12637
12638 ] Copies all the features of an existing style into the current one.
12639  Note that this copies the style as it is defined at that point.
12640  Later changes to it will not affect styles into which it has been copied.
12641 \end_layout
12642
12643 \begin_layout Description
12644 \begin_inset Flex Code
12645 status collapsed
12646
12647 \begin_layout Plain Layout
12648 DependsOn
12649 \end_layout
12650
12651 \end_inset
12652
12653  [
12654 \begin_inset Flex Code
12655 status collapsed
12656
12657 \begin_layout Plain Layout
12658 <name>
12659 \end_layout
12660
12661 \end_inset
12662
12663 ] The name of a style whose preamble should be output 
12664 \emph on
12665 before
12666 \emph default
12667  this one.
12668  This allows to ensure some ordering of the preamble snippets when macros definitions depend on one another.
12669 \begin_inset Foot
12670 status collapsed
12671
12672 \begin_layout Plain Layout
12673 Note that,
12674  besides that functionality,
12675  there is no way to ensure any ordering of preambles.
12676  The ordering that you see in a given version of \SpecialChar LyX
12677  may change without warning in later versions.
12678 \end_layout
12679
12680 \end_inset
12681
12682
12683 \end_layout
12684
12685 \begin_layout Description
12686 \begin_inset Flex Code
12687 status collapsed
12688
12689 \begin_layout Plain Layout
12690 DocBookGenerateTitle
12691 \end_layout
12692
12693 \end_inset
12694
12695  [
12696 \begin_inset Flex Code
12697 status collapsed
12698
12699 \begin_layout Plain Layout
12700 bool=false
12701 \end_layout
12702
12703 \end_inset
12704
12705 ] Generates a 
12706 \begin_inset Flex Code
12707 status collapsed
12708
12709 \begin_layout Plain Layout
12710 title
12711 \end_layout
12712
12713 \end_inset
12714
12715  tag after the wrapper tag.
12716  This parameter should only be used with
12717 \begin_inset Flex Code
12718 status collapsed
12719
12720 \begin_layout Plain Layout
12721 DocBookWrapperTag
12722 \end_layout
12723
12724 \end_inset
12725
12726 ,
12727  otherwise the title will be output
12728 \emph on
12729  before
12730 \emph default
12731  the contents of the environment.
12732  The generated title is the same as the LyXHTML label:
12733  a combination of the environment type and its number.
12734  A major use is when DocBook has no close mapping for LaTeX environments and users must fallback to using a generic container such as
12735 \begin_inset Flex Code
12736 status collapsed
12737
12738 \begin_layout Plain Layout
12739 figure
12740 \end_layout
12741
12742 \end_inset
12743
12744 ,
12745  which requires a title although there is none in LaTeX.
12746  This feature is heavily used for theorem-like environments.
12747 \end_layout
12748
12749 \begin_layout Description
12750 \begin_inset Flex Code
12751 status collapsed
12752
12753 \begin_layout Plain Layout
12754 EndLabelType
12755 \end_layout
12756
12757 \end_inset
12758
12759  [
12760 \begin_inset Flex Code
12761 status collapsed
12762
12763 \begin_layout Plain Layout
12764
12765 \emph on
12766 No_Label
12767 \emph default
12768 ,
12769  Box,
12770  Filled_Box,
12771  Static
12772 \end_layout
12773
12774 \end_inset
12775
12776 ] The type of label that stands at the end of the paragraph (or sequence of paragraphs if 
12777 \begin_inset Flex Code
12778 status collapsed
12779
12780 \begin_layout Plain Layout
12781 LatexType
12782 \end_layout
12783
12784 \end_inset
12785
12786  is
12787 \begin_inset Newline newline
12788 \end_inset
12789
12790
12791 \begin_inset Flex Code
12792 status collapsed
12793
12794 \begin_layout Plain Layout
12795 Environment
12796 \end_layout
12797
12798 \end_inset
12799
12800 ,
12801  
12802 \begin_inset Flex Code
12803 status collapsed
12804
12805 \begin_layout Plain Layout
12806 Item_Environment
12807 \end_layout
12808
12809 \end_inset
12810
12811  or 
12812 \begin_inset Flex Code
12813 status collapsed
12814
12815 \begin_layout Plain Layout
12816 List_Environment
12817 \end_layout
12818
12819 \end_inset
12820
12821 ).
12822  
12823 \begin_inset Flex Code
12824 status collapsed
12825
12826 \begin_layout Plain Layout
12827 No_Label
12828 \end_layout
12829
12830 \end_inset
12831
12832  means 
12833 \begin_inset Quotes eld
12834 \end_inset
12835
12836 nothing
12837 \begin_inset Quotes erd
12838 \end_inset
12839
12840 ,
12841  
12842 \begin_inset Flex Code
12843 status collapsed
12844
12845 \begin_layout Plain Layout
12846 Box
12847 \end_layout
12848
12849 \end_inset
12850
12851  (resp.
12852 \begin_inset space \space{}
12853 \end_inset
12854
12855
12856 \begin_inset Flex Code
12857 status collapsed
12858
12859 \begin_layout Plain Layout
12860 Filled_Box
12861 \end_layout
12862
12863 \end_inset
12864
12865 ) is a white (resp.
12866 \begin_inset space ~
12867 \end_inset
12868
12869 black) square suitable for end of proof markers,
12870  
12871 \begin_inset Flex Code
12872 status collapsed
12873
12874 \begin_layout Plain Layout
12875 Static
12876 \end_layout
12877
12878 \end_inset
12879
12880  is an explicit text string.
12881 \end_layout
12882
12883 \begin_layout Description
12884 \begin_inset Flex Code
12885 status collapsed
12886
12887 \begin_layout Plain Layout
12888 EndLabelString
12889 \end_layout
12890
12891 \end_inset
12892
12893  [
12894 \begin_inset Flex Code
12895 status collapsed
12896
12897 \begin_layout Plain Layout
12898 string=""
12899 \end_layout
12900
12901 \end_inset
12902
12903 ] The string used for a label with a 
12904 \begin_inset Flex Code
12905 status collapsed
12906
12907 \begin_layout Plain Layout
12908 Static
12909 \end_layout
12910
12911 \end_inset
12912
12913
12914 \begin_inset Newline newline
12915 \end_inset
12916
12917
12918 \begin_inset Flex Code
12919 status collapsed
12920
12921 \begin_layout Plain Layout
12922 EndLabelType
12923 \end_layout
12924
12925 \end_inset
12926
12927 .
12928  
12929 \end_layout
12930
12931 \begin_layout Description
12932 \begin_inset Flex Code
12933 status collapsed
12934
12935 \begin_layout Plain Layout
12936 Font
12937 \end_layout
12938
12939 \end_inset
12940
12941  The font used for both the text body 
12942 \emph on
12943 and
12944 \emph default
12945  the label.
12946  See 
12947 \begin_inset CommandInset ref
12948 LatexCommand ref
12949 reference "subsec:Font-description"
12950 nolink "false"
12951
12952 \end_inset
12953
12954 .
12955  Note that defining this font automatically defines the 
12956 \begin_inset Flex Code
12957 status collapsed
12958
12959 \begin_layout Plain Layout
12960 LabelFont
12961 \end_layout
12962
12963 \end_inset
12964
12965  to the same value.
12966  So you should define this one first if you also want to define 
12967 \begin_inset Flex Code
12968 status collapsed
12969
12970 \begin_layout Plain Layout
12971 LabelFont
12972 \end_layout
12973
12974 \end_inset
12975
12976 .
12977 \end_layout
12978
12979 \begin_layout Description
12980 \begin_inset Flex Code
12981 status collapsed
12982
12983 \begin_layout Plain Layout
12984 ForceLocal
12985 \end_layout
12986
12987 \end_inset
12988
12989  [
12990 \begin_inset Flex Code
12991 status collapsed
12992
12993 \begin_layout Plain Layout
12994 int=0
12995 \end_layout
12996
12997 \end_inset
12998
12999 ] Used for backporting new styles to stable \SpecialChar LyX
13000  versions.
13001  The first stable version that supports this tag is \SpecialChar LyX
13002  2.1.0.
13003  The argument is a number which may either be 0,
13004  -1 or any value greater than zero.
13005  If the 
13006 \begin_inset Flex Code
13007 status collapsed
13008
13009 \begin_layout Plain Layout
13010 ForceLocal
13011 \end_layout
13012
13013 \end_inset
13014
13015  flag of a style is greater than zero,
13016  it will always be written to the document header.
13017  If a .lyx file is read,
13018  the style definitions from the document header are added to the document class.
13019  Therefore even older \SpecialChar LyX
13020  versions can handle the style.
13021  The argument of 
13022 \begin_inset Flex Code
13023 status collapsed
13024
13025 \begin_layout Plain Layout
13026 ForceLocal
13027 \end_layout
13028
13029 \end_inset
13030
13031  is a version number:
13032  if the style is read,
13033  and the version number is less than the version number of the already existing style in the document class,
13034  the new style is ignored.
13035  If the version number is greater,
13036  the new style replaces the existing style.
13037  A value of -1 means an infinite version number,
13038  i.
13039 \begin_inset space \thinspace{}
13040 \end_inset
13041
13042 e.
13043 \begin_inset space \space{}
13044 \end_inset
13045
13046 the style is always used.
13047 \end_layout
13048
13049 \begin_layout Description
13050 \begin_inset Flex Code
13051 status collapsed
13052
13053 \begin_layout Plain Layout
13054 FreeSpacing
13055 \end_layout
13056
13057 \end_inset
13058
13059  [
13060 \begin_inset Flex Code
13061 status collapsed
13062
13063 \begin_layout Plain Layout
13064
13065 \emph on
13066 0
13067 \end_layout
13068
13069 \end_inset
13070
13071 ,
13072 \begin_inset space \thinspace{}
13073 \end_inset
13074
13075
13076 \begin_inset Flex Code
13077 status collapsed
13078
13079 \begin_layout Plain Layout
13080 1
13081 \end_layout
13082
13083 \end_inset
13084
13085 ] Usually \SpecialChar LyX
13086  does not allow you to insert more than one space between words,
13087  since a space is considered as the separation between two words,
13088  not a character or symbol of its own.
13089  This is a very fine thing but sometimes annoying,
13090  for example,
13091  when typing program code or plain \SpecialChar LaTeX
13092  code.
13093  For this reason,
13094  
13095 \begin_inset Flex Code
13096 status collapsed
13097
13098 \begin_layout Plain Layout
13099 FreeSpacing
13100 \end_layout
13101
13102 \end_inset
13103
13104  can be enabled.
13105  \SpecialChar LyX
13106  will create non-breaking spaces for the additional blanks when 
13107 \begin_inset Flex Code
13108 status collapsed
13109
13110 \begin_layout Plain Layout
13111 Passthru 1
13112 \end_layout
13113
13114 \end_inset
13115
13116  is not specified.
13117  Note that 
13118 \begin_inset Flex Code
13119 status collapsed
13120
13121 \begin_layout Plain Layout
13122 FreeSpacing
13123 \end_layout
13124
13125 \end_inset
13126
13127  implies 
13128 \begin_inset Flex Code
13129 status collapsed
13130
13131 \begin_layout Plain Layout
13132 KeepEmpty
13133 \end_layout
13134
13135 \end_inset
13136
13137 .
13138 \end_layout
13139
13140 \begin_layout Description
13141 \begin_inset Flex Code
13142 status collapsed
13143
13144 \begin_layout Plain Layout
13145 HTML*
13146 \end_layout
13147
13148 \end_inset
13149
13150  These tags are used with XHTML output.
13151  See 
13152 \begin_inset CommandInset ref
13153 LatexCommand ref
13154 reference "subsec:Paragraph-Style-XHTML"
13155 nolink "false"
13156
13157 \end_inset
13158
13159 .
13160 \end_layout
13161
13162 \begin_layout Description
13163 \begin_inset Flex Code
13164 status collapsed
13165
13166 \begin_layout Plain Layout
13167 InPreamble
13168 \end_layout
13169
13170 \end_inset
13171
13172  [
13173 \begin_inset Flex Code
13174 status collapsed
13175
13176 \begin_layout Plain Layout
13177
13178 \emph on
13179 0
13180 \end_layout
13181
13182 \end_inset
13183
13184 ,
13185 \begin_inset space \thinspace{}
13186 \end_inset
13187
13188
13189 \begin_inset Flex Code
13190 status collapsed
13191
13192 \begin_layout Plain Layout
13193 1
13194 \end_layout
13195
13196 \end_inset
13197
13198 ] If 
13199 \begin_inset Flex Code
13200 status collapsed
13201
13202 \begin_layout Plain Layout
13203 1
13204 \end_layout
13205
13206 \end_inset
13207
13208 ,
13209  marks the style as to be included in the document preamble and not in the document body.
13210  This is useful for document classes that want such information as the title and author to appear in the preamble.
13211  Note that this works only for styles for which the 
13212 \begin_inset Flex Code
13213 status collapsed
13214
13215 \begin_layout Plain Layout
13216 LatexType
13217 \end_layout
13218
13219 \end_inset
13220
13221  is 
13222 \begin_inset Flex Code
13223 status collapsed
13224
13225 \begin_layout Plain Layout
13226 Command
13227 \end_layout
13228
13229 \end_inset
13230
13231  or 
13232 \begin_inset Flex Code
13233 status collapsed
13234
13235 \begin_layout Plain Layout
13236 Paragraph
13237 \end_layout
13238
13239 \end_inset
13240
13241 .
13242 \end_layout
13243
13244 \begin_layout Description
13245 \begin_inset Flex Code
13246 status collapsed
13247
13248 \begin_layout Plain Layout
13249 InTitle
13250 \end_layout
13251
13252 \end_inset
13253
13254  [
13255 \begin_inset Flex Code
13256 status collapsed
13257
13258 \begin_layout Plain Layout
13259
13260 \emph on
13261 0
13262 \end_layout
13263
13264 \end_inset
13265
13266 ,
13267 \begin_inset space \thinspace{}
13268 \end_inset
13269
13270
13271 \begin_inset Flex Code
13272 status collapsed
13273
13274 \begin_layout Plain Layout
13275 1
13276 \end_layout
13277
13278 \end_inset
13279
13280 ] If 
13281 \begin_inset Flex Code
13282 status collapsed
13283
13284 \begin_layout Plain Layout
13285 1
13286 \end_layout
13287
13288 \end_inset
13289
13290 ,
13291  marks the style as being part of a title block (see also the 
13292 \begin_inset Flex Code
13293 status collapsed
13294
13295 \begin_layout Plain Layout
13296 TitleLatexType
13297 \end_layout
13298
13299 \end_inset
13300
13301  and 
13302 \begin_inset Flex Code
13303 status collapsed
13304
13305 \begin_layout Plain Layout
13306 TitleLatexName
13307 \end_layout
13308
13309 \end_inset
13310
13311  global entries).
13312 \end_layout
13313
13314 \begin_layout Description
13315 \begin_inset Flex Code
13316 status collapsed
13317
13318 \begin_layout Plain Layout
13319 IsAutoNestedBy
13320 \end_layout
13321
13322 \end_inset
13323
13324  Includes a comma-separated list of layouts after which this one should be nested.
13325  Only makes sense with regard to nestable layouts (such as environments).
13326  Must be ended by 
13327 \begin_inset Quotes eld
13328 \end_inset
13329
13330
13331 \begin_inset Flex Code
13332 status collapsed
13333
13334 \begin_layout Plain Layout
13335 EndIsAutoNestedBy
13336 \end_layout
13337
13338 \end_inset
13339
13340
13341 \begin_inset Quotes erd
13342 \end_inset
13343
13344 .
13345  See also 
13346 \begin_inset Flex Code
13347 status collapsed
13348
13349 \begin_layout Plain Layout
13350 AutoNests
13351 \end_layout
13352
13353 \end_inset
13354
13355 .
13356 \end_layout
13357
13358 \begin_layout Description
13359 \begin_inset Flex Code
13360 status collapsed
13361
13362 \begin_layout Plain Layout
13363 IsTocCaption
13364 \end_layout
13365
13366 \end_inset
13367
13368  [
13369 \begin_inset Flex Code
13370 status collapsed
13371
13372 \begin_layout Plain Layout
13373
13374 \emph on
13375 0
13376 \end_layout
13377
13378 \end_inset
13379
13380 ,
13381 \begin_inset space \thinspace{}
13382 \end_inset
13383
13384
13385 \begin_inset Flex Code
13386 status collapsed
13387
13388 \begin_layout Plain Layout
13389 1
13390 \end_layout
13391
13392 \end_inset
13393
13394 ] If this is set to 1 and AddToToc is enabled,
13395  the paragraph adds a summary of its contents in its item in the table of contents.
13396  Otherwise,
13397  only the label,
13398  if it exists,
13399  appears.
13400 \end_layout
13401
13402 \begin_layout Description
13403 \begin_inset Flex Code
13404 status collapsed
13405
13406 \begin_layout Plain Layout
13407 ItemCommand
13408 \end_layout
13409
13410 \end_inset
13411
13412  [
13413 \begin_inset Flex Code
13414 status collapsed
13415
13416 \begin_layout Plain Layout
13417 string="item"
13418 \end_layout
13419
13420 \end_inset
13421
13422 ] The \SpecialChar LaTeX
13423  command sequence declaring an item in a list.
13424  The command is to be defined without the preceding backslash (the default is 
13425 \begin_inset Quotes eld
13426 \end_inset
13427
13428 item
13429 \begin_inset Quotes erd
13430 \end_inset
13431
13432 ,
13433  resulting in 
13434 \begin_inset Flex Code
13435 status collapsed
13436
13437 \begin_layout Plain Layout
13438
13439 \backslash
13440 item
13441 \end_layout
13442
13443 \end_inset
13444
13445  in the \SpecialChar LaTeX
13446  output).
13447 \end_layout
13448
13449 \begin_layout Description
13450 \begin_inset Flex Code
13451 status collapsed
13452
13453 \begin_layout Plain Layout
13454 ItemSep
13455 \end_layout
13456
13457 \end_inset
13458
13459  [
13460 \begin_inset Flex Code
13461 status collapsed
13462
13463 \begin_layout Plain Layout
13464 float=0
13465 \end_layout
13466
13467 \end_inset
13468
13469 ] This provides extra space between paragraphs that have the same style.
13470  If you put other styles into an environment,
13471  each is separated with the environment's 
13472 \begin_inset Flex Code
13473 status collapsed
13474
13475 \begin_layout Plain Layout
13476 ParSep
13477 \end_layout
13478
13479 \end_inset
13480
13481 .
13482  But the whole items of the environment are additionally separated with this 
13483 \begin_inset Flex Code
13484 status collapsed
13485
13486 \begin_layout Plain Layout
13487 ItemSep
13488 \end_layout
13489
13490 \end_inset
13491
13492 .
13493  Note that this is a
13494 \emph on
13495  multiplier.
13496 \end_layout
13497
13498 \begin_layout Description
13499 \begin_inset Flex Code
13500 status collapsed
13501
13502 \begin_layout Plain Layout
13503 KeepEmpty
13504 \end_layout
13505
13506 \end_inset
13507
13508  [
13509 \begin_inset Flex Code
13510 status collapsed
13511
13512 \begin_layout Plain Layout
13513
13514 \emph on
13515 0
13516 \end_layout
13517
13518 \end_inset
13519
13520 ,
13521 \begin_inset space \thinspace{}
13522 \end_inset
13523
13524
13525 \begin_inset Flex Code
13526 status collapsed
13527
13528 \begin_layout Plain Layout
13529 1
13530 \end_layout
13531
13532 \end_inset
13533
13534 ] Usually \SpecialChar LyX
13535  does not allow you to leave a paragraph empty,
13536  since it would lead to empty \SpecialChar LaTeX
13537  output.
13538  There are some cases where this could be desirable however:
13539  in a letter template,
13540  the required fields can be provided as empty fields,
13541  so that people do not forget them;
13542  in some special classes,
13543  a style can be used as some kind of break,
13544  which does not contain actual text.
13545 \end_layout
13546
13547 \begin_layout Description
13548 \begin_inset Flex Code
13549 status collapsed
13550
13551 \begin_layout Plain Layout
13552 LabelBottomsep
13553 \end_layout
13554
13555 \end_inset
13556
13557  [
13558 \begin_inset Flex Code
13559 status collapsed
13560
13561 \begin_layout Plain Layout
13562 float=0
13563 \end_layout
13564
13565 \end_inset
13566
13567 ] The vertical space between the label and the text body.
13568  Only used for labels that are above the text body (
13569 \begin_inset Flex Code
13570 status collapsed
13571
13572 \begin_layout Plain Layout
13573 Top_Environment
13574 \end_layout
13575
13576 \end_inset
13577
13578  and
13579 \begin_inset Newline newline
13580 \end_inset
13581
13582
13583 \begin_inset Flex Code
13584 status collapsed
13585
13586 \begin_layout Plain Layout
13587 Centered_Top_Environment
13588 \end_layout
13589
13590 \end_inset
13591
13592 ).
13593 \end_layout
13594
13595 \begin_layout Description
13596 \begin_inset Flex Code
13597 status collapsed
13598
13599 \begin_layout Plain Layout
13600 LabelCounter
13601 \end_layout
13602
13603 \end_inset
13604
13605  [
13606 \begin_inset Flex Code
13607 status collapsed
13608
13609 \begin_layout Plain Layout
13610 string=""
13611 \end_layout
13612
13613 \end_inset
13614
13615 ] The name of the counter for automatic numbering.
13616  In order to have the counter appear with your label,
13617  you will need to reference it in the 
13618 \begin_inset Flex Code
13619 status collapsed
13620
13621 \begin_layout Plain Layout
13622
13623 \family typewriter
13624 LabelString
13625 \end_layout
13626
13627 \end_inset
13628
13629 .
13630  This will work with 
13631 \begin_inset Flex Code
13632 status collapsed
13633
13634 \begin_layout Plain Layout
13635 LabelType
13636 \end_layout
13637
13638 \end_inset
13639
13640 s,
13641  
13642 \begin_inset Flex Code
13643 status collapsed
13644
13645 \begin_layout Plain Layout
13646 Static
13647 \end_layout
13648
13649 \end_inset
13650
13651 ,
13652  
13653 \begin_inset Flex Code
13654 status collapsed
13655
13656 \begin_layout Plain Layout
13657 Above
13658 \end_layout
13659
13660 \end_inset
13661
13662  and 
13663 \begin_inset Flex Code
13664 status collapsed
13665
13666 \begin_layout Plain Layout
13667 Centered
13668 \end_layout
13669
13670 \end_inset
13671
13672 ,
13673  at least.
13674 \begin_inset Newline newline
13675 \end_inset
13676
13677 This 
13678 \emph on
13679 may
13680 \emph default
13681  also be given if 
13682 \begin_inset Flex Code
13683 status collapsed
13684
13685 \begin_layout Plain Layout
13686 LabelType
13687 \end_layout
13688
13689 \end_inset
13690
13691  is 
13692 \begin_inset Flex Code
13693 status collapsed
13694
13695 \begin_layout Plain Layout
13696 Enumerate
13697 \end_layout
13698
13699 \end_inset
13700
13701 ,
13702  though this case is a bit complicated.
13703  Suppose you declare 
13704 \begin_inset Quotes eld
13705 \end_inset
13706
13707
13708 \begin_inset Flex Code
13709 status collapsed
13710
13711 \begin_layout Plain Layout
13712 LabelCounter myenum
13713 \end_layout
13714
13715 \end_inset
13716
13717
13718 \begin_inset Quotes erd
13719 \end_inset
13720
13721 .
13722  Then the actual counters used are 
13723 \begin_inset Flex Code
13724 status collapsed
13725
13726 \begin_layout Plain Layout
13727 myenumi
13728 \end_layout
13729
13730 \end_inset
13731
13732 ,
13733  
13734 \begin_inset Flex Code
13735 status collapsed
13736
13737 \begin_layout Plain Layout
13738 myenumii
13739 \end_layout
13740
13741 \end_inset
13742
13743 ,
13744  
13745 \begin_inset Flex Code
13746 status collapsed
13747
13748 \begin_layout Plain Layout
13749 myenumiii
13750 \end_layout
13751
13752 \end_inset
13753
13754  and 
13755 \begin_inset Flex Code
13756 status collapsed
13757
13758 \begin_layout Plain Layout
13759 myenumiv
13760 \end_layout
13761
13762 \end_inset
13763
13764 ,
13765  much as in \SpecialChar LaTeX
13766 .
13767  These counters must all be declared separately.
13768 \begin_inset Newline newline
13769 \end_inset
13770
13771 See 
13772 \begin_inset CommandInset ref
13773 LatexCommand ref
13774 reference "subsec:Counters"
13775 nolink "false"
13776
13777 \end_inset
13778
13779  for details on counters.
13780 \end_layout
13781
13782 \begin_layout Description
13783 \begin_inset Flex Code
13784 status collapsed
13785
13786 \begin_layout Plain Layout
13787 LabelFont
13788 \end_layout
13789
13790 \end_inset
13791
13792  The font used for the label.
13793  See 
13794 \begin_inset CommandInset ref
13795 LatexCommand ref
13796 reference "subsec:Font-description"
13797 nolink "false"
13798
13799 \end_inset
13800
13801 .
13802 \end_layout
13803
13804 \begin_layout Description
13805 \begin_inset Flex Code
13806 status collapsed
13807
13808 \begin_layout Plain Layout
13809 LabelIndent
13810 \end_layout
13811
13812 \end_inset
13813
13814  [
13815 \begin_inset Flex Code
13816 status collapsed
13817
13818 \begin_layout Plain Layout
13819 string=""
13820 \end_layout
13821
13822 \end_inset
13823
13824 ] Text that indicates how far a label should be indented.
13825 \end_layout
13826
13827 \begin_layout Description
13828 \begin_inset Flex Code
13829 status collapsed
13830
13831 \begin_layout Plain Layout
13832 LabelSep
13833 \end_layout
13834
13835 \end_inset
13836
13837  [
13838 \begin_inset Flex Code
13839 status collapsed
13840
13841 \begin_layout Plain Layout
13842 string=""
13843 \end_layout
13844
13845 \end_inset
13846
13847 ] Text that indicates the amount of horizontal space between the label and the text body.
13848  Only used for labels that are not above the text body.
13849 \end_layout
13850
13851 \begin_layout Description
13852 \begin_inset Flex Code
13853 status collapsed
13854
13855 \begin_layout Plain Layout
13856 LabelString
13857 \end_layout
13858
13859 \end_inset
13860
13861  [
13862 \begin_inset Flex Code
13863 status collapsed
13864
13865 \begin_layout Plain Layout
13866 string=""
13867 \end_layout
13868
13869 \end_inset
13870
13871 ] The string used for the label.
13872  When 
13873 \begin_inset Flex Code
13874 status collapsed
13875
13876 \begin_layout Plain Layout
13877 LabelCounter
13878 \end_layout
13879
13880 \end_inset
13881
13882  is set,
13883  this string can be contain the special formatting commands described in 
13884 \begin_inset CommandInset ref
13885 LatexCommand ref
13886 reference "subsec:Counters"
13887 nolink "false"
13888
13889 \end_inset
13890
13891 .
13892 \end_layout
13893
13894 \begin_layout Description
13895 \begin_inset Flex Code
13896 status collapsed
13897
13898 \begin_layout Plain Layout
13899 LabelStringAppendix
13900 \end_layout
13901
13902 \end_inset
13903
13904  [
13905 \begin_inset Flex Code
13906 status collapsed
13907
13908 \begin_layout Plain Layout
13909 string=""
13910 \end_layout
13911
13912 \end_inset
13913
13914 ] This is used inside the appendix instead of
13915 \begin_inset Newline newline
13916 \end_inset
13917
13918
13919 \begin_inset Flex Code
13920 status collapsed
13921
13922 \begin_layout Plain Layout
13923 LabelString
13924 \end_layout
13925
13926 \end_inset
13927
13928 .
13929  Note that every 
13930 \begin_inset Flex Code
13931 status collapsed
13932
13933 \begin_layout Plain Layout
13934 LabelString
13935 \end_layout
13936
13937 \end_inset
13938
13939  statement resets
13940 \begin_inset Newline newline
13941 \end_inset
13942
13943
13944 \begin_inset Flex Code
13945 status collapsed
13946
13947 \begin_layout Plain Layout
13948 LabelStringAppendix
13949 \end_layout
13950
13951 \end_inset
13952
13953  too.
13954 \end_layout
13955
13956 \begin_layout Description
13957 \begin_inset Flex Code
13958 status collapsed
13959
13960 \begin_layout Plain Layout
13961 LabelType
13962 \end_layout
13963
13964 \end_inset
13965
13966  [
13967 \begin_inset Flex Code
13968 status collapsed
13969
13970 \begin_layout Plain Layout
13971
13972 \emph on
13973 No_Label
13974 \emph default
13975 ,
13976  Manual,
13977  Static,
13978  Above,
13979  
13980 \begin_inset Newline newline
13981 \end_inset
13982
13983 Centered,
13984  Sensitive,
13985  Enumerate,
13986 \begin_inset Newline newline
13987 \end_inset
13988
13989 Itemize,
13990  Bibliography
13991 \end_layout
13992
13993 \end_inset
13994
13995 ]
13996 \end_layout
13997
13998 \begin_deeper
13999 \begin_layout Description
14000 \begin_inset Flex Code
14001 status collapsed
14002
14003 \begin_layout Plain Layout
14004 Manual
14005 \end_layout
14006
14007 \end_inset
14008
14009  means the label is the very first word (up to the first real blank).
14010  Use non-breaking spaces if you want more than one word as the label.
14011  
14012 \end_layout
14013
14014 \begin_layout Description
14015 \begin_inset Flex Code
14016 status collapsed
14017
14018 \begin_layout Plain Layout
14019 Static
14020 \end_layout
14021
14022 \end_inset
14023
14024  means the label is simply what is declared as 
14025 \begin_inset Flex Code
14026 status collapsed
14027
14028 \begin_layout Plain Layout
14029 LabelString
14030 \end_layout
14031
14032 \end_inset
14033
14034 .
14035  This will be displayed 
14036 \begin_inset Quotes eld
14037 \end_inset
14038
14039 inline
14040 \begin_inset Quotes erd
14041 \end_inset
14042
14043 ,
14044  at the beginning of the paragraph.
14045  If the 
14046 \begin_inset Flex Code
14047 status collapsed
14048
14049 \begin_layout Plain Layout
14050 LatexType
14051 \end_layout
14052
14053 \end_inset
14054
14055  is 
14056 \begin_inset Flex Code
14057 status collapsed
14058
14059 \begin_layout Plain Layout
14060 Environment
14061 \end_layout
14062
14063 \end_inset
14064
14065 ,
14066  then it will be displayed only in the first paragraph of any sequence of paragraphs with the same 
14067 \begin_inset Flex Code
14068 status collapsed
14069
14070 \begin_layout Plain Layout
14071 Style
14072 \end_layout
14073
14074 \end_inset
14075
14076 .
14077 \end_layout
14078
14079 \begin_layout Description
14080 \begin_inset Flex Code
14081 status collapsed
14082
14083 \begin_layout Plain Layout
14084 Above
14085 \end_layout
14086
14087 \end_inset
14088
14089
14090 \begin_inset space ~
14091 \end_inset
14092
14093 and
14094 \begin_inset space ~
14095 \end_inset
14096
14097
14098 \begin_inset Flex Code
14099 status collapsed
14100
14101 \begin_layout Plain Layout
14102 Centered
14103 \end_layout
14104
14105 \end_inset
14106
14107  are special cases of 
14108 \begin_inset Flex Code
14109 status collapsed
14110
14111 \begin_layout Plain Layout
14112 Static
14113 \end_layout
14114
14115 \end_inset
14116
14117 .
14118  The label will be printed above the paragraph either at the beginning of the line or centered.
14119 \end_layout
14120
14121 \begin_layout Description
14122 \begin_inset Flex Code
14123 status collapsed
14124
14125 \begin_layout Plain Layout
14126 Sensitive
14127 \end_layout
14128
14129 \end_inset
14130
14131  is a special case for the caption-labels 
14132 \begin_inset Quotes eld
14133 \end_inset
14134
14135 Figure
14136 \begin_inset Quotes erd
14137 \end_inset
14138
14139  and 
14140 \begin_inset Quotes eld
14141 \end_inset
14142
14143 Table
14144 \begin_inset Quotes erd
14145 \end_inset
14146
14147 .
14148 \begin_inset Newline newline
14149 \end_inset
14150
14151
14152 \begin_inset Flex Code
14153 status collapsed
14154
14155 \begin_layout Plain Layout
14156 Sensitive
14157 \end_layout
14158
14159 \end_inset
14160
14161  means the (hardcoded) label string depends on the kind of float:
14162  It is hardcoded to be `FloatType N',
14163  where N is the value of the counter associated with the float.
14164  For the case that a caption is inserted outside of a float the 
14165 \begin_inset Flex Code
14166 status collapsed
14167
14168 \begin_layout Plain Layout
14169 LabelString
14170 \end_layout
14171
14172 \end_inset
14173
14174  will appear as 
14175 \begin_inset Quotes eld
14176 \end_inset
14177
14178 Senseless!
14179 \begin_inset Quotes erd
14180 \end_inset
14181
14182 .
14183 \end_layout
14184
14185 \begin_layout Description
14186 \begin_inset Flex Code
14187 status collapsed
14188
14189 \begin_layout Plain Layout
14190 Enumerate
14191 \end_layout
14192
14193 \end_inset
14194
14195  produces the usual sort of enumeration labels.
14196  The number type needs to be set in the 
14197 \family sans
14198 Counter
14199 \family default
14200 ,
14201  see 
14202 \begin_inset CommandInset ref
14203 LatexCommand ref
14204 reference "subsec:Counters"
14205 nolink "false"
14206
14207 \end_inset
14208
14209 .
14210 \end_layout
14211
14212 \begin_layout Description
14213 \begin_inset Flex Code
14214 status collapsed
14215
14216 \begin_layout Plain Layout
14217 Itemize
14218 \end_layout
14219
14220 \end_inset
14221
14222  produces various bullets at the different levels.
14223  The bullet types displayed can be set via 
14224 \begin_inset Flex Noun
14225 status collapsed
14226
14227 \begin_layout Plain Layout
14228 Document\SpecialChar menuseparator
14229 Settings\SpecialChar menuseparator
14230 Bullets
14231 \end_layout
14232
14233 \end_inset
14234
14235 .
14236 \end_layout
14237
14238 \begin_layout Description
14239 \begin_inset Flex Code
14240 status collapsed
14241
14242 \begin_layout Plain Layout
14243 Bibliography
14244 \end_layout
14245
14246 \end_inset
14247
14248  should be used only with 
14249 \begin_inset Flex Code
14250 status collapsed
14251
14252 \begin_layout Plain Layout
14253 LatexType BibEnvironment
14254 \end_layout
14255
14256 \end_inset
14257
14258 .
14259 \end_layout
14260
14261 \end_deeper
14262 \begin_layout Description
14263 \begin_inset Flex Code
14264 status collapsed
14265
14266 \begin_layout Plain Layout
14267 LangPreamble
14268 \end_layout
14269
14270 \end_inset
14271
14272  Note that this will completely override any prior 
14273 \begin_inset Flex Code
14274 status collapsed
14275
14276 \begin_layout Plain Layout
14277 LangPreamble
14278 \end_layout
14279
14280 \end_inset
14281
14282  declaration for this style.
14283  Must end with 
14284 \begin_inset Quotes eld
14285 \end_inset
14286
14287
14288 \begin_inset Flex Code
14289 status collapsed
14290
14291 \begin_layout Plain Layout
14292 EndLangPreamble
14293 \end_layout
14294
14295 \end_inset
14296
14297
14298 \begin_inset Quotes erd
14299 \end_inset
14300
14301 .
14302  See 
14303 \begin_inset CommandInset ref
14304 LatexCommand ref
14305 reference "subsec:I18n"
14306 nolink "false"
14307
14308 \end_inset
14309
14310  for details on its use.
14311 \end_layout
14312
14313 \begin_layout Description
14314 \begin_inset Flex Code
14315 status collapsed
14316
14317 \begin_layout Plain Layout
14318 LatexName
14319 \end_layout
14320
14321 \end_inset
14322
14323  [
14324 \begin_inset Flex Code
14325 status collapsed
14326
14327 \begin_layout Plain Layout
14328 <name>
14329 \end_layout
14330
14331 \end_inset
14332
14333 ] The name of the corresponding \SpecialChar LaTeX
14334  stuff.
14335  Either the environment or command name.
14336 \end_layout
14337
14338 \begin_layout Description
14339 \begin_inset Flex Code
14340 status collapsed
14341
14342 \begin_layout Plain Layout
14343 LatexParam
14344 \end_layout
14345
14346 \end_inset
14347
14348  [
14349 \begin_inset Flex Code
14350 status collapsed
14351
14352 \begin_layout Plain Layout
14353 <parameter>
14354 \end_layout
14355
14356 \end_inset
14357
14358 ] An optional parameter for the corresponding 
14359 \begin_inset Flex Code
14360 status collapsed
14361
14362 \begin_layout Plain Layout
14363 LatexName
14364 \end_layout
14365
14366 \end_inset
14367
14368  stuff.
14369  This parameter cannot be changed from within \SpecialChar LyX
14370  (use 
14371 \begin_inset Flex Code
14372 status collapsed
14373
14374 \begin_layout Plain Layout
14375 Argument
14376 \end_layout
14377
14378 \end_inset
14379
14380  for customizable parameters).
14381  This will be output as is after all \SpecialChar LaTeX
14382  
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387 Argument
14388 \end_layout
14389
14390 \end_inset
14391
14392 s.
14393 \end_layout
14394
14395 \begin_layout Description
14396 \begin_inset Flex Code
14397 status collapsed
14398
14399 \begin_layout Plain Layout
14400 LatexType
14401 \end_layout
14402
14403 \end_inset
14404
14405  [
14406 \begin_inset Flex Code
14407 status collapsed
14408
14409 \begin_layout Plain Layout
14410
14411 \emph on
14412 Paragraph
14413 \emph default
14414 ,
14415  Command,
14416  Environment,
14417  Item_Environment,
14418 \begin_inset Newline newline
14419 \end_inset
14420
14421 List_Environment,
14422  Bib_Environment
14423 \end_layout
14424
14425 \end_inset
14426
14427 ] How the style should be translated into \SpecialChar LaTeX
14428 .
14429 \begin_inset Foot
14430 status collapsed
14431
14432 \begin_layout Plain Layout
14433 \begin_inset Flex Code
14434 status collapsed
14435
14436 \begin_layout Plain Layout
14437 LatexType
14438 \end_layout
14439
14440 \end_inset
14441
14442  is perhaps a bit misleading,
14443  since these rules apply to SGML classes,
14444  too.
14445  Visit the SGML class files for specific examples.
14446 \end_layout
14447
14448 \end_inset
14449
14450
14451 \end_layout
14452
14453 \begin_deeper
14454 \begin_layout Description
14455 \begin_inset Flex Code
14456 status collapsed
14457
14458 \begin_layout Plain Layout
14459 Paragraph
14460 \end_layout
14461
14462 \end_inset
14463
14464  means nothing special.
14465 \end_layout
14466
14467 \begin_layout Description
14468 \begin_inset Flex Code
14469 status collapsed
14470
14471 \begin_layout Plain Layout
14472 Command
14473 \end_layout
14474
14475 \end_inset
14476
14477  means 
14478 \begin_inset Flex Code
14479 status collapsed
14480
14481 \begin_layout Plain Layout
14482
14483 \backslash
14484
14485 \emph on
14486 LatexName
14487 \emph default
14488 {\SpecialChar ldots
14489 }
14490 \end_layout
14491
14492 \end_inset
14493
14494 .
14495 \end_layout
14496
14497 \begin_layout Description
14498 \begin_inset Flex Code
14499 status collapsed
14500
14501 \begin_layout Plain Layout
14502 Environment
14503 \end_layout
14504
14505 \end_inset
14506
14507  means 
14508 \begin_inset Flex Code
14509 status collapsed
14510
14511 \begin_layout Plain Layout
14512
14513 \backslash
14514 begin{
14515 \emph on
14516 LatexName
14517 \emph default
14518 }\SpecialChar ldots
14519
14520 \backslash
14521 end{
14522 \emph on
14523 LatexName
14524 \emph default
14525 }
14526 \end_layout
14527
14528 \end_inset
14529
14530 .
14531  
14532 \end_layout
14533
14534 \begin_layout Description
14535 \begin_inset Flex Code
14536 status collapsed
14537
14538 \begin_layout Plain Layout
14539 Item_Environment
14540 \end_layout
14541
14542 \end_inset
14543
14544  is the same as 
14545 \begin_inset Flex Code
14546 status collapsed
14547
14548 \begin_layout Plain Layout
14549 Environment
14550 \end_layout
14551
14552 \end_inset
14553
14554 ,
14555  except that an 
14556 \begin_inset Flex Code
14557 status collapsed
14558
14559 \begin_layout Plain Layout
14560
14561 \backslash
14562 item
14563 \end_layout
14564
14565 \end_inset
14566
14567  is generated for each paragraph of this environment.
14568  
14569 \end_layout
14570
14571 \begin_layout Description
14572 \begin_inset Flex Code
14573 status collapsed
14574
14575 \begin_layout Plain Layout
14576 List_Environment
14577 \end_layout
14578
14579 \end_inset
14580
14581  is the same as 
14582 \begin_inset Flex Code
14583 status collapsed
14584
14585 \begin_layout Plain Layout
14586 Item_Environment
14587 \end_layout
14588
14589 \end_inset
14590
14591 ,
14592  except that
14593 \begin_inset Newline newline
14594 \end_inset
14595
14596
14597 \begin_inset Flex Code
14598 status collapsed
14599
14600 \begin_layout Plain Layout
14601 LabelWidthString
14602 \end_layout
14603
14604 \end_inset
14605
14606  is passed as an argument to the environment.
14607 \begin_inset Newline newline
14608 \end_inset
14609
14610
14611 \begin_inset Flex Code
14612 status collapsed
14613
14614 \begin_layout Plain Layout
14615 LabelWidthString
14616 \end_layout
14617
14618 \end_inset
14619
14620  can be defined in the 
14621 \begin_inset Flex Noun
14622 status collapsed
14623
14624 \begin_layout Plain Layout
14625 Edit\SpecialChar menuseparator
14626 Paragraph
14627 \begin_inset space ~
14628 \end_inset
14629
14630 settings
14631 \end_layout
14632
14633 \end_inset
14634
14635  dialog.
14636 \end_layout
14637
14638 \begin_layout Description
14639 \begin_inset Flex Code
14640 status collapsed
14641
14642 \begin_layout Plain Layout
14643 Bib_Environment
14644 \end_layout
14645
14646 \end_inset
14647
14648  is like 
14649 \begin_inset Flex Code
14650 status collapsed
14651
14652 \begin_layout Plain Layout
14653 Environment
14654 \end_layout
14655
14656 \end_inset
14657
14658  but adds the necessary mandatory argument (the longest label) to the begin statement of the bibliography environment:
14659 \begin_inset Newline newline
14660 \end_inset
14661
14662
14663 \begin_inset Flex Code
14664 status collapsed
14665
14666 \begin_layout Plain Layout
14667
14668 \backslash
14669 begin{thebibliography}{99}
14670 \end_layout
14671
14672 \end_inset
14673
14674 .
14675  It is therefore only useful for bibliography environments.
14676  The default longest label 
14677 \begin_inset Quotes eld
14678 \end_inset
14679
14680 99
14681 \begin_inset Quotes erd
14682 \end_inset
14683
14684  can be changed by the user in the paragraph settings of a bibliography item.
14685 \end_layout
14686
14687 \begin_layout Standard
14688 Putting the last few things together,
14689  the \SpecialChar LaTeX
14690  output will be either:
14691  
14692 \end_layout
14693
14694 \begin_layout LyX-Code
14695
14696 \backslash
14697 LatexName[LatexParam]{\SpecialChar ldots
14698 }
14699 \end_layout
14700
14701 \begin_layout Standard
14702 or:
14703  
14704 \end_layout
14705
14706 \begin_layout LyX-Code
14707
14708 \backslash
14709 begin{LatexName}[LatexParam] \SpecialChar ldots
14710  
14711 \backslash
14712 end{LatexName}.
14713 \end_layout
14714
14715 \begin_layout Standard
14716 depending upon the \SpecialChar LaTeX
14717  type.
14718 \end_layout
14719
14720 \end_deeper
14721 \begin_layout Description
14722 \begin_inset Flex Code
14723 status collapsed
14724
14725 \begin_layout Plain Layout
14726 LeftDelim
14727 \end_layout
14728
14729 \end_inset
14730
14731  [
14732 \begin_inset Flex Code
14733 status collapsed
14734
14735 \begin_layout Plain Layout
14736 string
14737 \end_layout
14738
14739 \end_inset
14740
14741 ] A string that is put at the beginning of the style content.
14742  A line break in the output can be indicated by 
14743 \begin_inset Flex Code
14744 status collapsed
14745
14746 \begin_layout Plain Layout
14747 <br/>
14748 \end_layout
14749
14750 \end_inset
14751
14752 .
14753 \end_layout
14754
14755 \begin_layout Description
14756 \begin_inset Flex Code
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760 LeftMargin
14761 \end_layout
14762
14763 \end_inset
14764
14765  [
14766 \begin_inset Flex Code
14767 status collapsed
14768
14769 \begin_layout Plain Layout
14770 string=""
14771 \end_layout
14772
14773 \end_inset
14774
14775 ] If you put styles into environments,
14776  the different 
14777 \begin_inset Flex Code
14778 status collapsed
14779
14780 \begin_layout Plain Layout
14781 LeftMargin
14782 \end_layout
14783
14784 \end_inset
14785
14786  are not simply added,
14787  but added with a factor 
14788 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
14789 \end_inset
14790
14791 .
14792  Note that this parameter is also used when 
14793 \begin_inset Flex Code
14794 status collapsed
14795
14796 \begin_layout Plain Layout
14797 Margin
14798 \end_layout
14799
14800 \end_inset
14801
14802  is defined as 
14803 \begin_inset Flex Code
14804 status collapsed
14805
14806 \begin_layout Plain Layout
14807 Manual
14808 \end_layout
14809
14810 \end_inset
14811
14812  or 
14813 \begin_inset Flex Code
14814 status collapsed
14815
14816 \begin_layout Plain Layout
14817 Dynamic
14818 \end_layout
14819
14820 \end_inset
14821
14822 .
14823  Then it is added to the manual or dynamic margin.
14824 \begin_inset Newline newline
14825 \end_inset
14826
14827 For example 
14828 \begin_inset Quotes eld
14829 \end_inset
14830
14831
14832 \begin_inset Flex Code
14833 status collapsed
14834
14835 \begin_layout Plain Layout
14836 MM
14837 \end_layout
14838
14839 \end_inset
14840
14841
14842 \begin_inset Quotes erd
14843 \end_inset
14844
14845  means that the paragraph is indented with the width of 
14846 \begin_inset Quotes eld
14847 \end_inset
14848
14849
14850 \begin_inset Flex Code
14851 status collapsed
14852
14853 \begin_layout Plain Layout
14854 MM
14855 \end_layout
14856
14857 \end_inset
14858
14859
14860 \begin_inset Quotes erd
14861 \end_inset
14862
14863  in the normal font.
14864  You can get a negative width by prefixing the string with 
14865 \begin_inset Quotes eld
14866 \end_inset
14867
14868
14869 \begin_inset Flex Code
14870 status collapsed
14871
14872 \begin_layout Plain Layout
14873 -
14874 \end_layout
14875
14876 \end_inset
14877
14878
14879 \begin_inset Quotes erd
14880 \end_inset
14881
14882 .
14883  This way was chosen so that the look is the same with each used screen font.
14884 \end_layout
14885
14886 \begin_layout Description
14887 \begin_inset Flex Code
14888 status collapsed
14889
14890 \begin_layout Plain Layout
14891 Margin
14892 \end_layout
14893
14894 \end_inset
14895
14896  [
14897 \begin_inset Flex Code
14898 status collapsed
14899
14900 \begin_layout Plain Layout
14901
14902 \emph on
14903 Static
14904 \emph default
14905 ,
14906  Manual,
14907  Dynamic,
14908  First_Dynamic,
14909  Right_Address_Box
14910 \end_layout
14911
14912 \end_inset
14913
14914
14915 \begin_inset Newline newline
14916 \end_inset
14917
14918 The kind of margin that the style has on the left side.
14919 \end_layout
14920
14921 \begin_deeper
14922 \begin_layout Description
14923 \begin_inset Flex Code
14924 status collapsed
14925
14926 \begin_layout Plain Layout
14927 Static
14928 \end_layout
14929
14930 \end_inset
14931
14932  just means a fixed margin.
14933 \end_layout
14934
14935 \begin_layout Description
14936 \begin_inset Flex Code
14937 status collapsed
14938
14939 \begin_layout Plain Layout
14940 Manual
14941 \end_layout
14942
14943 \end_inset
14944
14945  means that the left margin depends on the string entered in the 
14946 \begin_inset Flex Noun
14947 status collapsed
14948
14949 \begin_layout Plain Layout
14950 Edit\SpecialChar menuseparator
14951 Paragraph
14952 \begin_inset space ~
14953 \end_inset
14954
14955 Settings
14956 \end_layout
14957
14958 \end_inset
14959
14960  dialog.
14961  This is used to typeset nice lists without tabulators.
14962 \end_layout
14963
14964 \begin_layout Description
14965 \begin_inset Flex Code
14966 status collapsed
14967
14968 \begin_layout Plain Layout
14969 Dynamic
14970 \end_layout
14971
14972 \end_inset
14973
14974  means that the margin depends on the size of the label.
14975  This is used for automatic enumerated headlines.
14976  It is obvious that the headline 
14977 \begin_inset Quotes eld
14978 \end_inset
14979
14980 5.4.3.2.1 Very long headline
14981 \begin_inset Quotes erd
14982 \end_inset
14983
14984  must have a wider left margin (as wide as 
14985 \begin_inset Quotes eld
14986 \end_inset
14987
14988 5.4.3.2.1
14989 \begin_inset Quotes erd
14990 \end_inset
14991
14992  plus the space) than 
14993 \begin_inset Quotes eld
14994 \end_inset
14995
14996 3.2 Very long headline
14997 \begin_inset Quotes erd
14998 \end_inset
14999
15000 ,
15001  even if standard 
15002 \begin_inset Quotes eld
15003 \end_inset
15004
15005 word processors
15006 \begin_inset Quotes erd
15007 \end_inset
15008
15009  are not able to do this.
15010 \end_layout
15011
15012 \begin_layout Description
15013 \begin_inset Flex Code
15014 status collapsed
15015
15016 \begin_layout Plain Layout
15017 First_Dynamic
15018 \end_layout
15019
15020 \end_inset
15021
15022  is similar,
15023  but only the very first row of the paragraph is dynamic,
15024  while the others are static;
15025  this is used,
15026  for example,
15027  for descriptions.
15028 \end_layout
15029
15030 \begin_layout Description
15031 \begin_inset Flex Code
15032 status collapsed
15033
15034 \begin_layout Plain Layout
15035 Right_Address_Box
15036 \end_layout
15037
15038 \end_inset
15039
15040  means the margin is chosen in a way that the longest row of this paragraph fits to the right margin.
15041  This is used to typeset an address on the right edge of the page.
15042 \end_layout
15043
15044 \end_deeper
15045 \begin_layout Description
15046 \begin_inset Flex Code
15047 status collapsed
15048
15049 \begin_layout Plain Layout
15050 NeedProtect
15051 \end_layout
15052
15053 \end_inset
15054
15055  [
15056 \begin_inset Flex Code
15057 status collapsed
15058
15059 \begin_layout Plain Layout
15060
15061 \emph on
15062 0
15063 \end_layout
15064
15065 \end_inset
15066
15067 ,
15068 \begin_inset space \thinspace{}
15069 \end_inset
15070
15071
15072 \begin_inset Flex Code
15073 status collapsed
15074
15075 \begin_layout Plain Layout
15076 1
15077 \end_layout
15078
15079 \end_inset
15080
15081 ] Whether fragile commands in this style should be 
15082 \begin_inset Flex Code
15083 status collapsed
15084
15085 \begin_layout Plain Layout
15086
15087 \backslash
15088 protect
15089 \end_layout
15090
15091 \end_inset
15092
15093 'ed.
15094  (Note:
15095  This is 
15096 \emph on
15097 not
15098 \emph default
15099  whether this command should itself be protected.)
15100 \end_layout
15101
15102 \begin_layout Description
15103 \begin_inset Flex Code
15104 status collapsed
15105
15106 \begin_layout Plain Layout
15107 NeedCProtect
15108 \end_layout
15109
15110 \end_inset
15111
15112  [
15113 \change_inserted -712698321 1715492667
15114
15115 \begin_inset Flex Code
15116 status collapsed
15117
15118 \begin_layout Plain Layout
15119
15120 \change_inserted -712698321 1715492433
15121 -1
15122 \change_unchanged
15123
15124 \end_layout
15125
15126 \end_inset
15127
15128 ,
15129 \begin_inset space \thinspace{}
15130 \end_inset
15131
15132
15133 \change_unchanged
15134
15135 \begin_inset Flex Code
15136 status collapsed
15137
15138 \begin_layout Plain Layout
15139
15140 \emph on
15141 0
15142 \end_layout
15143
15144 \end_inset
15145
15146 ,
15147 \begin_inset space \thinspace{}
15148 \end_inset
15149
15150
15151 \begin_inset Flex Code
15152 status collapsed
15153
15154 \begin_layout Plain Layout
15155 1
15156 \end_layout
15157
15158 \end_inset
15159
15160
15161 \change_inserted -712698321 1715492466
15162 Value 
15163 \begin_inset Flex Code
15164 status collapsed
15165
15166 \begin_layout Plain Layout
15167
15168 \change_inserted -712698321 1715492466
15169 1
15170 \change_unchanged
15171
15172 \end_layout
15173
15174 \end_inset
15175
15176
15177 \change_deleted -712698321 1715492468
15178 This
15179 \change_unchanged
15180  causes macros that contain this layout to be protected with 
15181 \begin_inset Flex Code
15182 status collapsed
15183
15184 \begin_layout Plain Layout
15185
15186 \backslash
15187 cprotect
15188 \end_layout
15189
15190 \end_inset
15191
15192  (cf.
15193  package 
15194 \family sans
15195 cprotect
15196 \family default
15197 ) if necessary and thus allows (some) verbatim stuff in macros.
15198
15199 \change_inserted -712698321 1715492595
15200  With the default setting (value 
15201 \begin_inset Flex Code
15202 status collapsed
15203
15204 \begin_layout Plain Layout
15205
15206 \change_inserted -712698321 1715492536
15207 0
15208 \change_unchanged
15209
15210 \end_layout
15211
15212 \end_inset
15213
15214 ),
15215  
15216 \begin_inset Flex Code
15217 status collapsed
15218
15219 \begin_layout Plain Layout
15220
15221 \change_inserted -712698321 1715492551
15222
15223 \backslash
15224 cprotect
15225 \change_unchanged
15226
15227 \end_layout
15228
15229 \end_inset
15230
15231  is used if a nested element requires it.
15232  Value 
15233 \begin_inset Flex Code
15234 status collapsed
15235
15236 \begin_layout Plain Layout
15237
15238 \change_inserted -712698321 1715492585
15239 -1
15240 \change_unchanged
15241
15242 \end_layout
15243
15244 \end_inset
15245
15246  prevents any use of 
15247 \begin_inset Flex Code
15248 status collapsed
15249
15250 \begin_layout Plain Layout
15251
15252 \change_inserted -712698321 1715492585
15253
15254 \backslash
15255 cprotect
15256 \change_unchanged
15257
15258 \end_layout
15259
15260 \end_inset
15261
15262  within this layout,
15263  even if required by a nested element.
15264 \change_unchanged
15265
15266 \end_layout
15267
15268 \begin_layout Description
15269 \begin_inset Flex Code
15270 status collapsed
15271
15272 \begin_layout Plain Layout
15273 NeedMBoxProtect
15274 \end_layout
15275
15276 \end_inset
15277
15278  [
15279 \begin_inset Flex Code
15280 status collapsed
15281
15282 \begin_layout Plain Layout
15283
15284 \emph on
15285 0
15286 \end_layout
15287
15288 \end_inset
15289
15290 ,
15291 \begin_inset space \thinspace{}
15292 \end_inset
15293
15294
15295 \begin_inset Flex Code
15296 status collapsed
15297
15298 \begin_layout Plain Layout
15299 1
15300 \end_layout
15301
15302 \end_inset
15303
15304 ] Whether specific commands in this style (such as 
15305 \begin_inset Flex Code
15306 status collapsed
15307
15308 \begin_layout Plain Layout
15309
15310 \backslash
15311 cite
15312 \end_layout
15313
15314 \end_inset
15315
15316  and 
15317 \begin_inset Flex Code
15318 status collapsed
15319
15320 \begin_layout Plain Layout
15321
15322 \backslash
15323 ref
15324 \end_layout
15325
15326 \end_inset
15327
15328 ) should be protected in an 
15329 \begin_inset Flex Code
15330 status collapsed
15331
15332 \begin_layout Plain Layout
15333
15334 \backslash
15335 mbox
15336 \end_layout
15337
15338 \end_inset
15339
15340 .
15341  This is particularly needed for styles that draw on 
15342 \family sans
15343 ulem
15344 \family default
15345  or 
15346 \family sans
15347 soul
15348 \family default
15349  commands which parse their content in complex ways.
15350 \end_layout
15351
15352 \begin_layout Description
15353 \begin_inset Flex Code
15354 status collapsed
15355
15356 \begin_layout Plain Layout
15357 Newline
15358 \end_layout
15359
15360 \end_inset
15361
15362  [
15363 \begin_inset Flex Code
15364 status collapsed
15365
15366 \begin_layout Plain Layout
15367 0
15368 \end_layout
15369
15370 \end_inset
15371
15372 ,
15373 \begin_inset space \thinspace{}
15374 \end_inset
15375
15376
15377 \begin_inset Flex Code
15378 status collapsed
15379
15380 \begin_layout Plain Layout
15381
15382 \emph on
15383 1
15384 \end_layout
15385
15386 \end_inset
15387
15388 ] Whether newlines are translated into \SpecialChar LaTeX
15389  newlines (
15390 \begin_inset Flex Code
15391 status collapsed
15392
15393 \begin_layout Plain Layout
15394
15395 \backslash
15396
15397 \backslash
15398
15399 \end_layout
15400
15401 \end_inset
15402
15403 ) or not.
15404  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15405  editing inside \SpecialChar LyX
15406 .
15407 \end_layout
15408
15409 \begin_layout Description
15410 \begin_inset Flex Code
15411 status collapsed
15412
15413 \begin_layout Plain Layout
15414 NextNoIndent
15415 \end_layout
15416
15417 \end_inset
15418
15419  [
15420 \begin_inset Flex Code
15421 status collapsed
15422
15423 \begin_layout Plain Layout
15424
15425 \emph on
15426 0
15427 \end_layout
15428
15429 \end_inset
15430
15431 ,
15432 \begin_inset space \thinspace{}
15433 \end_inset
15434
15435
15436 \begin_inset Flex Code
15437 status collapsed
15438
15439 \begin_layout Plain Layout
15440 1
15441 \end_layout
15442
15443 \end_inset
15444
15445 ] If set to true,
15446  and if 
15447 \begin_inset Flex Code
15448 status collapsed
15449
15450 \begin_layout Plain Layout
15451 DefaultStyle
15452 \end_layout
15453
15454 \end_inset
15455
15456  (usually 
15457 \begin_inset Flex Code
15458 status collapsed
15459
15460 \begin_layout Plain Layout
15461 Standard
15462 \end_layout
15463
15464 \end_inset
15465
15466 ) paragraphs are being indented,
15467  then the indentation of such a paragraph following one of this type will be suppressed.
15468  (So this will not affect the display of non-default paragraphs.)
15469 \end_layout
15470
15471 \begin_layout Description
15472
15473 \change_inserted -712698321 1715509676
15474 \begin_inset Flex Code
15475 status collapsed
15476
15477 \begin_layout Plain Layout
15478
15479 \change_inserted -712698321 1715509206
15480 NoPassThruChars
15481 \change_unchanged
15482
15483 \end_layout
15484
15485 \end_inset
15486
15487  [
15488 \begin_inset Flex Code
15489 status collapsed
15490
15491 \begin_layout Plain Layout
15492
15493 \change_inserted -712698321 1715509203
15494 string
15495 \change_unchanged
15496
15497 \end_layout
15498
15499 \end_inset
15500
15501 ]
15502 \family typewriter
15503  
15504 \family default
15505 Defines individual characters that should 
15506 \emph on
15507 not
15508 \emph default
15509  be output in raw form (without special translations that \SpecialChar LaTeX
15510  would require),
15511  even if such handling is requested by an element in this layout.
15512  This tag can be used to overwrite 
15513 \begin_inset Quotes els
15514 \end_inset
15515
15516 PassThru
15517 \begin_inset Quotes ers
15518 \end_inset
15519
15520  conditions if they are unsuitable in a given context.
15521 \end_layout
15522
15523 \begin_layout Description
15524 \begin_inset Flex Code
15525 status collapsed
15526
15527 \begin_layout Plain Layout
15528 ObsoletedBy
15529 \end_layout
15530
15531 \end_inset
15532
15533  [
15534 \begin_inset Flex Code
15535 status collapsed
15536
15537 \begin_layout Plain Layout
15538 <name>
15539 \end_layout
15540
15541 \end_inset
15542
15543 ] Name of a style that has replaced this style.
15544  This is used to rename a style,
15545  while keeping backward compatibility.
15546 \end_layout
15547
15548 \begin_layout Description
15549 \begin_inset Flex Code
15550 status collapsed
15551
15552 \begin_layout Plain Layout
15553 ParagraphGroup
15554 \end_layout
15555
15556 \end_inset
15557
15558  [
15559 \begin_inset Flex Code
15560 status collapsed
15561
15562 \begin_layout Plain Layout
15563 0
15564 \end_layout
15565
15566 \end_inset
15567
15568 ,
15569 \begin_inset space \thinspace{}
15570 \end_inset
15571
15572
15573 \begin_inset Flex Code
15574 status collapsed
15575
15576 \begin_layout Plain Layout
15577 1
15578 \end_layout
15579
15580 \end_inset
15581
15582 ] Determines whether consecutive paragraphs of the same type are treated as belonging together.
15583  This has the effect that the 
15584 \begin_inset Flex Code
15585 status collapsed
15586
15587 \begin_layout Plain Layout
15588 GuiLabel
15589 \end_layout
15590
15591 \end_inset
15592
15593  is only printed once before such a group.
15594  By default,
15595  this is true for 
15596 \begin_inset Flex Code
15597 status collapsed
15598
15599 \begin_layout Plain Layout
15600 LaTeXType
15601 \end_layout
15602
15603 \end_inset
15604
15605  
15606 \begin_inset Flex Code
15607 status collapsed
15608
15609 \begin_layout Plain Layout
15610 Environment
15611 \end_layout
15612
15613 \end_inset
15614
15615  and 
15616 \begin_inset Flex Code
15617 status collapsed
15618
15619 \begin_layout Plain Layout
15620 Bib_Environment
15621 \end_layout
15622
15623 \end_inset
15624
15625  and false for all other types.
15626 \end_layout
15627
15628 \begin_layout Description
15629 \begin_inset Flex Code
15630 status collapsed
15631
15632 \begin_layout Plain Layout
15633 ParbreakIsNewline
15634 \end_layout
15635
15636 \end_inset
15637
15638  [
15639 \begin_inset Flex Code
15640 status collapsed
15641
15642 \begin_layout Plain Layout
15643
15644 \emph on
15645 0
15646 \end_layout
15647
15648 \end_inset
15649
15650 ,
15651 \begin_inset space \thinspace{}
15652 \end_inset
15653
15654
15655 \begin_inset Flex Code
15656 status collapsed
15657
15658 \begin_layout Plain Layout
15659 1
15660 \end_layout
15661
15662 \end_inset
15663
15664 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
15665  output,
15666  but only by a line break;
15667  together with 
15668 \begin_inset Flex Code
15669 status collapsed
15670
15671 \begin_layout Plain Layout
15672 PassThru 1
15673 \end_layout
15674
15675 \end_inset
15676
15677 ,
15678  this allows to emulate a plain text editor (like the ERT inset).
15679 \end_layout
15680
15681 \begin_layout Description
15682 \begin_inset Flex Code
15683 status collapsed
15684
15685 \begin_layout Plain Layout
15686 ParIndent
15687 \end_layout
15688
15689 \end_inset
15690
15691  [
15692 \begin_inset Flex Code
15693 status collapsed
15694
15695 \begin_layout Plain Layout
15696 string=""
15697 \end_layout
15698
15699 \end_inset
15700
15701 ] The indent of the very first line of a paragraph.
15702  The
15703 \begin_inset Newline newline
15704 \end_inset
15705
15706
15707 \begin_inset Flex Code
15708 status collapsed
15709
15710 \begin_layout Plain Layout
15711 Parindent
15712 \end_layout
15713
15714 \end_inset
15715
15716  will be fixed for a certain style.
15717  The exception is the default style,
15718  since the indentation for these paragraphs can be prohibited with 
15719 \begin_inset Flex Code
15720 status collapsed
15721
15722 \begin_layout Plain Layout
15723 NextNoIndent
15724 \end_layout
15725
15726 \end_inset
15727
15728 .
15729  Also,
15730  
15731 \begin_inset Flex Code
15732 status collapsed
15733
15734 \begin_layout Plain Layout
15735 Standard
15736 \end_layout
15737
15738 \end_inset
15739
15740  style paragraphs inside environments use the 
15741 \begin_inset Flex Code
15742 status collapsed
15743
15744 \begin_layout Plain Layout
15745 Parindent
15746 \end_layout
15747
15748 \end_inset
15749
15750  of the environment,
15751  not their native one.
15752  For example,
15753  
15754 \begin_inset Flex Code
15755 status collapsed
15756
15757 \begin_layout Plain Layout
15758 Standard
15759 \end_layout
15760
15761 \end_inset
15762
15763  paragraphs inside an enumeration are not indented.
15764 \end_layout
15765
15766 \begin_layout Description
15767 \begin_inset Flex Code
15768 status collapsed
15769
15770 \begin_layout Plain Layout
15771 ParSep
15772 \end_layout
15773
15774 \end_inset
15775
15776  [
15777 \begin_inset Flex Code
15778 status collapsed
15779
15780 \begin_layout Plain Layout
15781 float=0
15782 \end_layout
15783
15784 \end_inset
15785
15786 ] The vertical space between two paragraphs of this style.
15787 \end_layout
15788
15789 \begin_layout Description
15790 \begin_inset Flex Code
15791 status collapsed
15792
15793 \begin_layout Plain Layout
15794 Parskip
15795 \end_layout
15796
15797 \end_inset
15798
15799  [
15800 \begin_inset Flex Code
15801 status collapsed
15802
15803 \begin_layout Plain Layout
15804 float=0
15805 \end_layout
15806
15807 \end_inset
15808
15809 ] \SpecialChar LyX
15810  allows the user to choose either 
15811 \begin_inset Quotes eld
15812 \end_inset
15813
15814 indent
15815 \begin_inset Quotes erd
15816 \end_inset
15817
15818  or 
15819 \begin_inset Quotes eld
15820 \end_inset
15821
15822 skip
15823 \begin_inset Quotes erd
15824 \end_inset
15825
15826  to separate paragraphs.
15827  When 
15828 \begin_inset Quotes eld
15829 \end_inset
15830
15831 indent
15832 \begin_inset Quotes erd
15833 \end_inset
15834
15835  is chosen,
15836  
15837 \begin_inset Flex Code
15838 status collapsed
15839
15840 \begin_layout Plain Layout
15841 Parskip
15842 \end_layout
15843
15844 \end_inset
15845
15846  is ignored.
15847  When 
15848 \begin_inset Quotes eld
15849 \end_inset
15850
15851 skip
15852 \begin_inset Quotes erd
15853 \end_inset
15854
15855  is chosen,
15856  
15857 \begin_inset Flex Code
15858 status collapsed
15859
15860 \begin_layout Plain Layout
15861 ParIndent
15862 \end_layout
15863
15864 \end_inset
15865
15866  is ignored and all paragraphs are separated by the 
15867 \begin_inset Flex Code
15868 status collapsed
15869
15870 \begin_layout Plain Layout
15871 Parskip
15872 \end_layout
15873
15874 \end_inset
15875
15876  argument.
15877  The vertical space is calculated with 
15878 \begin_inset Flex Code
15879 status collapsed
15880
15881 \begin_layout Plain Layout
15882 Parskip
15883 \begin_inset space ~
15884 \end_inset
15885
15886 * DefaultHeight
15887 \end_layout
15888
15889 \end_inset
15890
15891  where 
15892 \begin_inset Flex Code
15893 status collapsed
15894
15895 \begin_layout Plain Layout
15896 DefaultHeight
15897 \end_layout
15898
15899 \end_inset
15900
15901  is the height of a row with the normal font.
15902  This way,
15903  the look stays the same with different screen fonts.
15904 \end_layout
15905
15906 \begin_layout Description
15907 \begin_inset Flex Code
15908 status collapsed
15909
15910 \begin_layout Plain Layout
15911 PassThru
15912 \end_layout
15913
15914 \end_inset
15915
15916  [
15917 \begin_inset Flex Code
15918 status collapsed
15919
15920 \begin_layout Plain Layout
15921
15922 \emph on
15923 0
15924 \end_layout
15925
15926 \end_inset
15927
15928 ,
15929 \begin_inset space \thinspace{}
15930 \end_inset
15931
15932
15933 \begin_inset Flex Code
15934 status collapsed
15935
15936 \begin_layout Plain Layout
15937 1
15938 \end_layout
15939
15940 \end_inset
15941
15942 ] Whether the contents of this paragraph should be output in raw form,
15943  meaning without special translations that \SpecialChar LaTeX
15944  would require.
15945 \end_layout
15946
15947 \begin_layout Description
15948 \begin_inset Flex Code
15949 status collapsed
15950
15951 \begin_layout Plain Layout
15952 PassThruChars
15953 \end_layout
15954
15955 \end_inset
15956
15957  [
15958 \begin_inset Flex Code
15959 status collapsed
15960
15961 \begin_layout Plain Layout
15962 string
15963 \end_layout
15964
15965 \end_inset
15966
15967 ]
15968 \family typewriter
15969  
15970 \family default
15971 Defines individual characters that should be output in raw form,
15972  meaning without special translations that \SpecialChar LaTeX
15973  would require.
15974 \end_layout
15975
15976 \begin_layout Description
15977 \begin_inset Flex Code
15978 status collapsed
15979
15980 \begin_layout Plain Layout
15981 Preamble
15982 \end_layout
15983
15984 \end_inset
15985
15986  Information to be included in the \SpecialChar LaTeX
15987  preamble when this style is used.
15988  Used to define macros,
15989  load packages,
15990  etc.,
15991  required by this particular style.
15992  Must end with 
15993 \begin_inset Quotes eld
15994 \end_inset
15995
15996
15997 \begin_inset Flex Code
15998 status collapsed
15999
16000 \begin_layout Plain Layout
16001 EndPreamble
16002 \end_layout
16003
16004 \end_inset
16005
16006
16007 \begin_inset Quotes erd
16008 \end_inset
16009
16010 .
16011 \end_layout
16012
16013 \begin_layout Description
16014 \begin_inset Flex Code
16015 status collapsed
16016
16017 \begin_layout Plain Layout
16018 RefPrefix
16019 \end_layout
16020
16021 \end_inset
16022
16023  [
16024 \begin_inset Flex Code
16025 status collapsed
16026
16027 \begin_layout Plain Layout
16028 string
16029 \end_layout
16030
16031 \end_inset
16032
16033 ] The prefix to use when creating labels referring to paragraphs of this type.
16034  This allows the use of formatted references.
16035 \end_layout
16036
16037 \begin_layout Description
16038 \begin_inset Flex Code
16039 status collapsed
16040
16041 \begin_layout Plain Layout
16042 Requires 
16043 \end_layout
16044
16045 \end_inset
16046
16047  [
16048 \begin_inset Flex Code
16049 status collapsed
16050
16051 \begin_layout Plain Layout
16052 string
16053 \end_layout
16054
16055 \end_inset
16056
16057 ] Whether the style requires the feature 
16058 \begin_inset Flex Code
16059 status collapsed
16060
16061 \begin_layout Plain Layout
16062 string
16063 \end_layout
16064
16065 \end_inset
16066
16067  (see 
16068 \begin_inset CommandInset ref
16069 LatexCommand ref
16070 reference "chap:List-of-functions"
16071 nolink "false"
16072
16073 \end_inset
16074
16075  for the list of features).
16076  If you require a package with specific options,
16077  you can additionally use 
16078 \begin_inset Flex Code
16079 status collapsed
16080
16081 \begin_layout Plain Layout
16082 PackageOptions
16083 \end_layout
16084
16085 \end_inset
16086
16087  as a general text class parameter (see 
16088 \begin_inset CommandInset ref
16089 LatexCommand ref
16090 reference "subsec:General-text-class"
16091 nolink "false"
16092
16093 \end_inset
16094
16095 ).
16096 \end_layout
16097
16098 \begin_layout Description
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103 ResetArgs
16104 \end_layout
16105
16106 \end_inset
16107
16108  [
16109 \begin_inset Flex Code
16110 status collapsed
16111
16112 \begin_layout Plain Layout
16113
16114 \emph on
16115 0
16116 \end_layout
16117
16118 \end_inset
16119
16120 ,
16121 \begin_inset Flex Code
16122 status collapsed
16123
16124 \begin_layout Plain Layout
16125 1
16126 \end_layout
16127
16128 \end_inset
16129
16130 ] Resets the \SpecialChar LaTeX
16131  arguments of this style (as defined via the 
16132 \begin_inset Flex Code
16133 status collapsed
16134
16135 \begin_layout Plain Layout
16136 Argument
16137 \end_layout
16138
16139 \end_inset
16140
16141  tag).
16142  This is useful if you have copied a style via 
16143 \begin_inset Flex Code
16144 status collapsed
16145
16146 \begin_layout Plain Layout
16147 CopyStyle
16148 \end_layout
16149
16150 \end_inset
16151
16152 ,
16153  but you do not want to inherit its (required and optional) arguments.
16154 \end_layout
16155
16156 \begin_layout Description
16157 \begin_inset Flex Code
16158 status collapsed
16159
16160 \begin_layout Plain Layout
16161 ResumeCounter
16162 \end_layout
16163
16164 \end_inset
16165
16166  [
16167 \begin_inset Flex Code
16168 status collapsed
16169
16170 \begin_layout Plain Layout
16171
16172 \emph on
16173 0
16174 \end_layout
16175
16176 \end_inset
16177
16178 ,
16179 \begin_inset Flex Code
16180 status collapsed
16181
16182 \begin_layout Plain Layout
16183 1
16184 \end_layout
16185
16186 \end_inset
16187
16188 ] Resumes a counter that is usually reset at each new sequence of layouts.
16189  This is currently only useful when 
16190 \begin_inset Flex Code
16191 status collapsed
16192
16193 \begin_layout Plain Layout
16194 LabelType
16195 \end_layout
16196
16197 \end_inset
16198
16199  is 
16200 \begin_inset Flex Code
16201 status collapsed
16202
16203 \begin_layout Plain Layout
16204 Enumerate
16205 \end_layout
16206
16207 \end_inset
16208
16209 .
16210 \end_layout
16211
16212 \begin_layout Description
16213 \begin_inset Flex Code
16214 status collapsed
16215
16216 \begin_layout Plain Layout
16217 RightDelim
16218 \end_layout
16219
16220 \end_inset
16221
16222  [
16223 \begin_inset Flex Code
16224 status collapsed
16225
16226 \begin_layout Plain Layout
16227 string
16228 \end_layout
16229
16230 \end_inset
16231
16232 ] A string that is put at the end of the layout content.
16233  A line break in the output can be indicated by 
16234 \begin_inset Flex Code
16235 status collapsed
16236
16237 \begin_layout Plain Layout
16238 <br/>
16239 \end_layout
16240
16241 \end_inset
16242
16243 .
16244 \end_layout
16245
16246 \begin_layout Description
16247 \begin_inset Flex Code
16248 status collapsed
16249
16250 \begin_layout Plain Layout
16251 RightMargin
16252 \end_layout
16253
16254 \end_inset
16255
16256  [
16257 \begin_inset Flex Code
16258 status collapsed
16259
16260 \begin_layout Plain Layout
16261 string=""
16262 \end_layout
16263
16264 \end_inset
16265
16266 ] Similar to 
16267 \begin_inset Flex Code
16268 status collapsed
16269
16270 \begin_layout Plain Layout
16271 LeftMargin
16272 \end_layout
16273
16274 \end_inset
16275
16276 .
16277 \end_layout
16278
16279 \begin_layout Description
16280 \begin_inset Flex Code
16281 status collapsed
16282
16283 \begin_layout Plain Layout
16284 Spacing
16285 \end_layout
16286
16287 \end_inset
16288
16289  [
16290 \begin_inset Flex Code
16291 status collapsed
16292
16293 \begin_layout Plain Layout
16294
16295 \emph on
16296 single
16297 \end_layout
16298
16299 \end_inset
16300
16301 ,
16302  
16303 \begin_inset Flex Code
16304 status collapsed
16305
16306 \begin_layout Plain Layout
16307 onehalf
16308 \end_layout
16309
16310 \end_inset
16311
16312 ,
16313  
16314 \begin_inset Flex Code
16315 status collapsed
16316
16317 \begin_layout Plain Layout
16318 double
16319 \end_layout
16320
16321 \end_inset
16322
16323 ,
16324  
16325 \begin_inset Flex Code
16326 status collapsed
16327
16328 \begin_layout Plain Layout
16329 other
16330 \begin_inset space ~
16331 \end_inset
16332
16333 <value>
16334 \end_layout
16335
16336 \end_inset
16337
16338 ] This defines what the default spacing should be in the style.
16339  The arguments 
16340 \begin_inset Flex Code
16341 status collapsed
16342
16343 \begin_layout Plain Layout
16344 single
16345 \end_layout
16346
16347 \end_inset
16348
16349 ,
16350  
16351 \begin_inset Flex Code
16352 status collapsed
16353
16354 \begin_layout Plain Layout
16355 onehalf
16356 \end_layout
16357
16358 \end_inset
16359
16360  and 
16361 \begin_inset Flex Code
16362 status collapsed
16363
16364 \begin_layout Plain Layout
16365 double
16366 \end_layout
16367
16368 \end_inset
16369
16370  correspond respectively to a multiplier value of 1,
16371  1.25 and 1.667.
16372  If you specify the argument 
16373 \begin_inset Flex Code
16374 status collapsed
16375
16376 \begin_layout Plain Layout
16377 other
16378 \end_layout
16379
16380 \end_inset
16381
16382 ,
16383  then you must also provide a value argument which will be the actual multiplier value.
16384  Note that,
16385  contrary to other parameters,
16386  
16387 \begin_inset Flex Code
16388 status collapsed
16389
16390 \begin_layout Plain Layout
16391 Spacing
16392 \end_layout
16393
16394 \end_inset
16395
16396  implies the generation of specific \SpecialChar LaTeX
16397  code,
16398  using the \SpecialChar LaTeX
16399  package 
16400 \family roman
16401
16402 \begin_inset Flex Code
16403 status collapsed
16404
16405 \begin_layout Plain Layout
16406 setspace
16407 \end_layout
16408
16409 \end_inset
16410
16411 .
16412 \end_layout
16413
16414 \begin_layout Description
16415 \begin_inset Flex Code
16416 status collapsed
16417
16418 \begin_layout Plain Layout
16419 Spellcheck
16420 \end_layout
16421
16422 \end_inset
16423
16424  [
16425 \begin_inset Flex Code
16426 status collapsed
16427
16428 \begin_layout Plain Layout
16429 0
16430 \end_layout
16431
16432 \end_inset
16433
16434 ,
16435 \begin_inset space \thinspace{}
16436 \end_inset
16437
16438
16439 \begin_inset Flex Code
16440 status collapsed
16441
16442 \begin_layout Plain Layout
16443
16444 \emph on
16445 1
16446 \end_layout
16447
16448 \end_inset
16449
16450 ] Allow spell-checking paragraphs of this style.
16451  Default is true.
16452 \end_layout
16453
16454 \begin_layout Description
16455 \begin_inset Flex Code
16456 status collapsed
16457
16458 \begin_layout Plain Layout
16459 StepParentCounter
16460 \end_layout
16461
16462 \end_inset
16463
16464  [
16465 \begin_inset Flex Code
16466 status collapsed
16467
16468 \begin_layout Plain Layout
16469
16470 \emph on
16471 0
16472 \end_layout
16473
16474 \end_inset
16475
16476 ,
16477 \begin_inset Flex Code
16478 status collapsed
16479
16480 \begin_layout Plain Layout
16481 1
16482 \end_layout
16483
16484 \end_inset
16485
16486 ] Steps the parent counter of a given counter at the beginning of a new sequence of layouts.
16487  This is currently only useful when 
16488 \begin_inset Flex Code
16489 status collapsed
16490
16491 \begin_layout Plain Layout
16492 LabelType
16493 \end_layout
16494
16495 \end_inset
16496
16497  is 
16498 \begin_inset Flex Code
16499 status collapsed
16500
16501 \begin_layout Plain Layout
16502 Enumerate
16503 \end_layout
16504
16505 \end_inset
16506
16507 .
16508 \end_layout
16509
16510 \begin_layout Description
16511 \begin_inset Flex Code
16512 status collapsed
16513
16514 \begin_layout Plain Layout
16515 TextFont
16516 \end_layout
16517
16518 \end_inset
16519
16520  The font used for the text body .
16521  See 
16522 \begin_inset CommandInset ref
16523 LatexCommand ref
16524 reference "subsec:Font-description"
16525 nolink "false"
16526
16527 \end_inset
16528
16529 .
16530 \end_layout
16531
16532 \begin_layout Description
16533 \begin_inset Flex Code
16534 status collapsed
16535
16536 \begin_layout Plain Layout
16537 TocLevel
16538 \end_layout
16539
16540 \end_inset
16541
16542
16543 \series medium
16544  [
16545 \begin_inset Flex Code
16546 status collapsed
16547
16548 \begin_layout Plain Layout
16549
16550 \series medium
16551 int=3
16552 \end_layout
16553
16554 \end_inset
16555
16556 ]
16557 \series default
16558  The level of the style in the table of contents.
16559  This is used for automatic numbering of section headings.
16560 \end_layout
16561
16562 \begin_layout Description
16563 \begin_inset Flex Code
16564 status collapsed
16565
16566 \begin_layout Plain Layout
16567 ToggleIndent
16568 \end_layout
16569
16570 \end_inset
16571
16572  [
16573 \emph on
16574
16575 \begin_inset Flex Code
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579
16580 \emph on
16581 default
16582 \end_layout
16583
16584 \end_inset
16585
16586
16587 \emph default
16588 ,
16589  
16590 \begin_inset Flex Code
16591 status collapsed
16592
16593 \begin_layout Plain Layout
16594 always
16595 \end_layout
16596
16597 \end_inset
16598
16599 ,
16600  
16601 \begin_inset Flex Code
16602 status collapsed
16603
16604 \begin_layout Plain Layout
16605 never
16606 \end_layout
16607
16608 \end_inset
16609
16610 ] This tag determines whether the first line indentation of this paragraph can be toggled via the Paragraph settings dialog.
16611  If 
16612 \emph on
16613
16614 \begin_inset Flex Code
16615 status collapsed
16616
16617 \begin_layout Plain Layout
16618
16619 \emph off
16620 default
16621 \end_layout
16622
16623 \end_inset
16624
16625
16626 \emph default
16627  is set,
16628  indentation can be toggled if the document settings use 
16629 \begin_inset Quotes eld
16630 \end_inset
16631
16632 indent
16633 \begin_inset Quotes erd
16634 \end_inset
16635
16636  paragraph style,
16637  with 
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 always
16643 \end_layout
16644
16645 \end_inset
16646
16647 ,
16648  indentation can always be toggled,
16649  notwithstanding the document settings,
16650  with 
16651 \begin_inset Flex Code
16652 status collapsed
16653
16654 \begin_layout Plain Layout
16655 never
16656 \end_layout
16657
16658 \end_inset
16659
16660 ,
16661  indentation can never be toggled.
16662 \end_layout
16663
16664 \begin_layout Description
16665 \begin_inset Flex Code
16666 status collapsed
16667
16668 \begin_layout Plain Layout
16669 TopSep
16670 \end_layout
16671
16672 \end_inset
16673
16674  [
16675 \begin_inset Flex Code
16676 status collapsed
16677
16678 \begin_layout Plain Layout
16679 float=0
16680 \end_layout
16681
16682 \end_inset
16683
16684 ] The vertical space with which the very first of a chain of paragraphs with this style is separated from the previous paragraph.
16685  If the previous paragraph has another style,
16686  the separations are not simply added,
16687  but the maximum is taken.
16688 \end_layout
16689
16690 \begin_layout Subsection
16691 \begin_inset CommandInset label
16692 LatexCommand label
16693 name "subsec:I18n"
16694
16695 \end_inset
16696
16697 Internationalization of Paragraph Styles
16698 \end_layout
16699
16700 \begin_layout Standard
16701 \SpecialChar LyX
16702  has long supported internationalization of layout information,
16703  but,
16704  until version 2.0,
16705  this applied only to the user interface and not to,
16706  say,
16707  PDF output.
16708  Thus,
16709  French authors were forced to resort to ugly hacks if they wanted `
16710 \lang french
16711 Théorème
16712 \lang english
16713  1' instead of `Theorem 1'.
16714  Thanks to Georg Baum,
16715  that is no longer the case.
16716 \end_layout
16717
16718 \begin_layout Standard
16719 If a 
16720 \begin_inset Flex Code
16721 status collapsed
16722
16723 \begin_layout Plain Layout
16724 Style
16725 \end_layout
16726
16727 \end_inset
16728
16729  defines text that is to appear in the typeset document,
16730  it may use 
16731 \begin_inset Flex Code
16732 status collapsed
16733
16734 \begin_layout Plain Layout
16735 LangPreamble
16736 \end_layout
16737
16738 \end_inset
16739
16740  and 
16741 \begin_inset Flex Code
16742 status collapsed
16743
16744 \begin_layout Plain Layout
16745 BabelPreamble
16746 \end_layout
16747
16748 \end_inset
16749
16750  to support non-English and even multi-language documents correctly.
16751  The following excerpt (from the 
16752 \begin_inset Flex Code
16753 status collapsed
16754
16755 \begin_layout Plain Layout
16756 theorems-ams.inc
16757 \end_layout
16758
16759 \end_inset
16760
16761  file) shows how this works:
16762 \end_layout
16763
16764 \begin_layout LyX-Code
16765 Preamble
16766 \end_layout
16767
16768 \begin_deeper
16769 \begin_layout LyX-Code
16770   
16771 \backslash
16772 theoremstyle{remark}
16773 \end_layout
16774
16775 \begin_layout LyX-Code
16776   
16777 \backslash
16778 newtheorem{claim}[thm]{
16779 \backslash
16780 protect
16781 \backslash
16782 claimname}
16783 \end_layout
16784
16785 \begin_layout LyX-Code
16786 EndPreamble
16787 \end_layout
16788
16789 \begin_layout LyX-Code
16790 LangPreamble
16791 \end_layout
16792
16793 \begin_layout LyX-Code
16794   
16795 \backslash
16796 providecommand{
16797 \backslash
16798 claimname}{_(Claim)}
16799 \end_layout
16800
16801 \begin_layout LyX-Code
16802 EndLangPreamble
16803 \end_layout
16804
16805 \begin_layout LyX-Code
16806 BabelPreamble
16807 \end_layout
16808
16809 \begin_layout LyX-Code
16810     
16811 \backslash
16812 addto
16813 \backslash
16814 captions$$lang{
16815 \backslash
16816 renewcommand{
16817 \backslash
16818 claimname}{_(Claim)}}
16819 \end_layout
16820
16821 \begin_layout LyX-Code
16822 EndBabelPreamble
16823 \end_layout
16824
16825 \end_deeper
16826 \begin_layout Standard
16827 In principle,
16828  any legal \SpecialChar LaTeX
16829  may appear in the 
16830 \begin_inset Flex Code
16831 status collapsed
16832
16833 \begin_layout Plain Layout
16834 LangPreamble
16835 \end_layout
16836
16837 \end_inset
16838
16839  and 
16840 \begin_inset Flex Code
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844 BabelPreamble
16845 \end_layout
16846
16847 \end_inset
16848
16849  tags,
16850  but in practice they will typically look as they do here.
16851  The key to correct translation of the typeset text is the definition of the \SpecialChar LaTeX
16852  command 
16853 \begin_inset Flex Code
16854 status collapsed
16855
16856 \begin_layout Plain Layout
16857
16858 \backslash
16859 claimname
16860 \end_layout
16861
16862 \end_inset
16863
16864  and its use in 
16865 \begin_inset Flex Code
16866 status collapsed
16867
16868 \begin_layout Plain Layout
16869
16870 \backslash
16871 newtheorem
16872 \end_layout
16873
16874 \end_inset
16875
16876 .
16877  
16878 \end_layout
16879
16880 \begin_layout Standard
16881 The 
16882 \begin_inset Flex Code
16883 status collapsed
16884
16885 \begin_layout Plain Layout
16886 LangPreamble
16887 \end_layout
16888
16889 \end_inset
16890
16891  tag provides for internationalization based upon the overall language of the document.
16892  The contents of the tag will be included in the preamble,
16893  just as with the 
16894 \begin_inset Flex Code
16895 status collapsed
16896
16897 \begin_layout Plain Layout
16898 Preamble
16899 \end_layout
16900
16901 \end_inset
16902
16903  tag.
16904  What makes it special is the use of the 
16905 \begin_inset Quotes eld
16906 \end_inset
16907
16908 function
16909 \begin_inset Quotes erd
16910 \end_inset
16911
16912  
16913 \begin_inset Flex Code
16914 status collapsed
16915
16916 \begin_layout Plain Layout
16917 _()
16918 \end_layout
16919
16920 \end_inset
16921
16922 ,
16923  which will be replaced,
16924  when \SpecialChar LyX
16925  produces \SpecialChar LaTeX
16926  output,
16927  with the translation of its argument into the document language.
16928 \end_layout
16929
16930 \begin_layout Standard
16931 The 
16932 \begin_inset Flex Code
16933 status collapsed
16934
16935 \begin_layout Plain Layout
16936 BabelPreamble
16937 \end_layout
16938
16939 \end_inset
16940
16941  tag is more complex,
16942  since it is meant to provide support for multi-language documents and so offers an interface to the 
16943 \begin_inset Flex Code
16944 status collapsed
16945
16946 \begin_layout Plain Layout
16947 babel
16948 \end_layout
16949
16950 \end_inset
16951
16952  package.
16953  Its contents will be added to the preamble once for each language that appears in the document.
16954  In this case,
16955  the argument to 
16956 \begin_inset Flex Code
16957 status collapsed
16958
16959 \begin_layout Plain Layout
16960 _()
16961 \end_layout
16962
16963 \end_inset
16964
16965  will be replaced with its translation into the language in question;
16966  the expression 
16967 \begin_inset Flex Code
16968 status collapsed
16969
16970 \begin_layout Plain Layout
16971 $$lang
16972 \end_layout
16973
16974 \end_inset
16975
16976  is replaced by the language name (as used by the babel package).
16977 \end_layout
16978
16979 \begin_layout Standard
16980 A German document that also included a French section would thus have the following in the preamble:
16981 \end_layout
16982
16983 \begin_layout LyX-Code
16984
16985 \backslash
16986 addto
16987 \backslash
16988 captionsfrench{
16989 \backslash
16990 renewcommand{
16991 \backslash
16992 claimname}{Affirmation}}
16993 \begin_inset Newline newline
16994 \end_inset
16995
16996
16997 \backslash
16998 addto
16999 \backslash
17000 captionsngerman{
17001 \backslash
17002 renewcommand{
17003 \backslash
17004 claimname}{Behauptung}}
17005 \begin_inset Newline newline
17006 \end_inset
17007
17008
17009 \backslash
17010 providecommand{
17011 \backslash
17012 claimname}{Behauptung}
17013 \end_layout
17014
17015 \begin_layout Standard
17016 \SpecialChar LaTeX
17017  and 
17018 \begin_inset Flex Code
17019 status collapsed
17020
17021 \begin_layout Plain Layout
17022 babel
17023 \end_layout
17024
17025 \end_inset
17026
17027  will then conspire to produce the correct text in the output.
17028 \end_layout
17029
17030 \begin_layout Standard
17031 One important point to note here is that the translations are provided by \SpecialChar LyX
17032  itself,
17033  through the file 
17034 \begin_inset Flex Code
17035 status collapsed
17036
17037 \begin_layout Plain Layout
17038 layouttranslations
17039 \end_layout
17040
17041 \end_inset
17042
17043 .
17044  This means,
17045  in effect,
17046  that 
17047 \begin_inset Flex Code
17048 status collapsed
17049
17050 \begin_layout Plain Layout
17051 LangPreamble
17052 \end_layout
17053
17054 \end_inset
17055
17056  and 
17057 \begin_inset Flex Code
17058 status collapsed
17059
17060 \begin_layout Plain Layout
17061 BabelPreamble
17062 \end_layout
17063
17064 \end_inset
17065
17066  are really only of use in layout files that are provided with \SpecialChar LyX
17067 ,
17068  since text entered in user-created layout files will not be seen by \SpecialChar LyX
17069 's internationalization routines unless the 
17070 \begin_inset Flex Code
17071 status collapsed
17072
17073 \begin_layout Plain Layout
17074 layouttranslations
17075 \end_layout
17076
17077 \end_inset
17078
17079  file is modified accordingly.
17080  That said,
17081  however,
17082  any layout created with the intention that it will be included with \SpecialChar LyX
17083  should use these tags where appropriate.
17084  Please note that the paragraph style translations provided by \SpecialChar LyX
17085  will never change with a minor update (e.
17086 \begin_inset space \thinspace{}
17087 \end_inset
17088
17089 g.
17090 \begin_inset space \space{}
17091 \end_inset
17092
17093 from version 2.1.x to 2.1.y).
17094  It is however quite likely that a major update (e.
17095 \begin_inset space \thinspace{}
17096 \end_inset
17097
17098 g.
17099 \begin_inset space \space{}
17100 \end_inset
17101
17102 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17103 \end_layout
17104
17105 \begin_layout Subsection
17106 Floats
17107 \begin_inset CommandInset label
17108 LatexCommand label
17109 name "subsec:Floats"
17110
17111 \end_inset
17112
17113
17114 \end_layout
17115
17116 \begin_layout Standard
17117 It is necessary to define the floats (
17118 \begin_inset Flex Noun
17119 status collapsed
17120
17121 \begin_layout Plain Layout
17122 figure
17123 \end_layout
17124
17125 \end_inset
17126
17127 ,
17128  
17129 \begin_inset Flex Noun
17130 status collapsed
17131
17132 \begin_layout Plain Layout
17133 table
17134 \end_layout
17135
17136 \end_inset
17137
17138 ,
17139  \SpecialChar ldots
17140 ) in the text class itself.
17141  Standard floats are included in the file 
17142 \begin_inset Flex Code
17143 status collapsed
17144
17145 \begin_layout Plain Layout
17146 stdfloats.inc
17147 \end_layout
17148
17149 \end_inset
17150
17151 ,
17152  so you may have to do no more than add
17153 \end_layout
17154
17155 \begin_layout LyX-Code
17156 Input stdfloats.inc
17157 \end_layout
17158
17159 \begin_layout Standard
17160 to your layout file.
17161  If you want to implement a text class that proposes some other float types (like the AGU class bundled with \SpecialChar LyX
17162 ),
17163  the information below will hopefully help you:
17164 \end_layout
17165
17166 \begin_layout Description
17167 \begin_inset Flex Code
17168 status collapsed
17169
17170 \begin_layout Plain Layout
17171 AllowedPlacement
17172 \end_layout
17173
17174 \end_inset
17175
17176  [
17177 \begin_inset Flex Code
17178 status collapsed
17179
17180 \begin_layout Plain Layout
17181 string
17182 \end_layout
17183
17184 \end_inset
17185
17186 =!htbpH] Allowed placement options for this float type.
17187  The value is a string of placement characters.
17188  Possible characters include:
17189  
17190 \emph on
17191 h
17192 \emph default
17193  (
17194 \begin_inset Quotes eld
17195 \end_inset
17196
17197 here if possible
17198 \begin_inset Quotes erd
17199 \end_inset
17200
17201 ),
17202  
17203 \emph on
17204 t
17205 \emph default
17206  (
17207 \begin_inset Quotes eld
17208 \end_inset
17209
17210 top of page
17211 \begin_inset Quotes erd
17212 \end_inset
17213
17214 ),
17215  
17216 \emph on
17217 b
17218 \emph default
17219  (
17220 \begin_inset Quotes eld
17221 \end_inset
17222
17223 bottom of page
17224 \begin_inset Quotes erd
17225 \end_inset
17226
17227 ),
17228  
17229 \emph on
17230 p
17231 \emph default
17232  (
17233 \begin_inset Quotes eld
17234 \end_inset
17235
17236 page of floats
17237 \begin_inset Quotes erd
17238 \end_inset
17239
17240 ),
17241  
17242 \emph on
17243 H
17244 \emph default
17245  (
17246 \begin_inset Quotes eld
17247 \end_inset
17248
17249 here definitely
17250 \begin_inset Quotes erd
17251 \end_inset
17252
17253 ) and 
17254 \emph on
17255 !
17256
17257 \emph default
17258  (
17259 \begin_inset Quotes eld
17260 \end_inset
17261
17262 ignore LaTeX rules
17263 \begin_inset Quotes erd
17264 \end_inset
17265
17266 ).
17267  The order of the characters in the string does not matter.
17268  If no placement options are allowed,
17269  use the string 
17270 \emph on
17271 none
17272 \emph default
17273 .
17274 \end_layout
17275
17276 \begin_layout Description
17277 \begin_inset Flex Code
17278 status collapsed
17279
17280 \begin_layout Plain Layout
17281 AllowsSideways
17282 \end_layout
17283
17284 \end_inset
17285
17286  [
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291
17292 \emph off
17293 0
17294 \end_layout
17295
17296 \end_inset
17297
17298 ,
17299 \begin_inset space \thinspace{}
17300 \end_inset
17301
17302
17303 \emph on
17304
17305 \begin_inset Flex Code
17306 status collapsed
17307
17308 \begin_layout Plain Layout
17309
17310 \emph on
17311 1
17312 \end_layout
17313
17314 \end_inset
17315
17316
17317 \emph default
17318 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17319 -package 
17320 \family typewriter
17321 rotfloat
17322 \family default
17323  (sidewaysfloat).
17324  Set to 
17325 \begin_inset Flex Code
17326 status collapsed
17327
17328 \begin_layout Plain Layout
17329 0
17330 \end_layout
17331
17332 \end_inset
17333
17334  if the float does not support this feature.
17335 \end_layout
17336
17337 \begin_layout Description
17338 \begin_inset Flex Code
17339 status collapsed
17340
17341 \begin_layout Plain Layout
17342 AllowsWide
17343 \end_layout
17344
17345 \end_inset
17346
17347  [
17348 \begin_inset Flex Code
17349 status collapsed
17350
17351 \begin_layout Plain Layout
17352
17353 \emph off
17354 0
17355 \end_layout
17356
17357 \end_inset
17358
17359 ,
17360 \begin_inset space \thinspace{}
17361 \end_inset
17362
17363
17364 \emph on
17365
17366 \begin_inset Flex Code
17367 status collapsed
17368
17369 \begin_layout Plain Layout
17370
17371 \emph on
17372 1
17373 \end_layout
17374
17375 \end_inset
17376
17377
17378 \emph default
17379 ] Defines whether the float has a starred variant that spans columns in a two column paragraph.
17380  Set to 
17381 \begin_inset Flex Code
17382 status collapsed
17383
17384 \begin_layout Plain Layout
17385 0
17386 \end_layout
17387
17388 \end_inset
17389
17390  if the float does not support this feature.
17391 \end_layout
17392
17393 \begin_layout Description
17394 \begin_inset Flex Code
17395 status collapsed
17396
17397 \begin_layout Plain Layout
17398 Extension
17399 \end_layout
17400
17401 \end_inset
17402
17403  [
17404 \begin_inset Flex Code
17405 status collapsed
17406
17407 \begin_layout Plain Layout
17408 string
17409 \end_layout
17410
17411 \end_inset
17412
17413 =
17414 \begin_inset Quotes erd
17415 \end_inset
17416
17417
17418 \begin_inset Quotes erd
17419 \end_inset
17420
17421 ] The file name extension of an auxiliary file for the list of figures (or whatever).
17422  \SpecialChar LaTeX
17423  writes the captions to this file.
17424 \end_layout
17425
17426 \begin_layout Description
17427 \begin_inset Flex Code
17428 status collapsed
17429
17430 \begin_layout Plain Layout
17431 GuiName
17432 \end_layout
17433
17434 \end_inset
17435
17436  [
17437 \begin_inset Flex Code
17438 status collapsed
17439
17440 \begin_layout Plain Layout
17441 string
17442 \end_layout
17443
17444 \end_inset
17445
17446 =
17447 \begin_inset Quotes erd
17448 \end_inset
17449
17450
17451 \begin_inset Quotes erd
17452 \end_inset
17453
17454 ] The string that will be used in the menus and also for the caption.
17455  This is translated to the current language if babel is used.
17456 \end_layout
17457
17458 \begin_layout Description
17459 \begin_inset Flex Code
17460 status collapsed
17461
17462 \begin_layout Plain Layout
17463 HTML*
17464 \end_layout
17465
17466 \end_inset
17467
17468  These tags control the XHTML output.
17469  See 
17470 \begin_inset CommandInset ref
17471 LatexCommand ref
17472 reference "sec:Tags-for-XHTML"
17473 nolink "false"
17474
17475 \end_inset
17476
17477 .
17478 \end_layout
17479
17480 \begin_layout Description
17481 \begin_inset Flex Code
17482 status collapsed
17483
17484 \begin_layout Plain Layout
17485 IsPredefined
17486 \end_layout
17487
17488 \end_inset
17489
17490  [
17491 \emph on
17492
17493 \begin_inset Flex Code
17494 status collapsed
17495
17496 \begin_layout Plain Layout
17497 0
17498 \end_layout
17499
17500 \end_inset
17501
17502
17503 \emph default
17504 ,
17505 \begin_inset space \thinspace{}
17506 \end_inset
17507
17508
17509 \begin_inset Flex Code
17510 status collapsed
17511
17512 \begin_layout Plain Layout
17513 1
17514 \end_layout
17515
17516 \end_inset
17517
17518 ] Indicates whether the float is already defined in the document class or if instead the \SpecialChar LaTeX
17519  package 
17520 \begin_inset Flex Code
17521 status collapsed
17522
17523 \begin_layout Plain Layout
17524 float
17525 \end_layout
17526
17527 \end_inset
17528
17529  needs to be loaded to define it on-the-fly.
17530  The default is 
17531 \begin_inset Flex Code
17532 status collapsed
17533
17534 \begin_layout Plain Layout
17535 0
17536 \end_layout
17537
17538 \end_inset
17539
17540 ,
17541  which means:
17542  
17543 \begin_inset Flex Code
17544 status collapsed
17545
17546 \begin_layout Plain Layout
17547 float
17548 \end_layout
17549
17550 \end_inset
17551
17552  is used.
17553  It should be set to 
17554 \begin_inset Flex Code
17555 status collapsed
17556
17557 \begin_layout Plain Layout
17558 1
17559 \end_layout
17560
17561 \end_inset
17562
17563  if the float is already defined by the \SpecialChar LaTeX
17564  document class.
17565 \end_layout
17566
17567 \begin_layout Description
17568 \begin_inset Flex Code
17569 status collapsed
17570
17571 \begin_layout Plain Layout
17572 ListCommand
17573 \end_layout
17574
17575 \end_inset
17576
17577  [
17578 \begin_inset Flex Code
17579 status collapsed
17580
17581 \begin_layout Plain Layout
17582 string
17583 \end_layout
17584
17585 \end_inset
17586
17587 =
17588 \begin_inset Quotes erd
17589 \end_inset
17590
17591
17592 \begin_inset Quotes erd
17593 \end_inset
17594
17595 ] The command used to generate a list of floats of this type;
17596  the leading `
17597 \backslash
17598 ' must be omitted.
17599  This 
17600 \emph on
17601 must
17602 \emph default
17603  be given if 
17604 \begin_inset Flex Code
17605 status collapsed
17606
17607 \begin_layout Plain Layout
17608 UsesFloatPkg
17609 \end_layout
17610
17611 \end_inset
17612
17613  is false,
17614  since there is no standard way to generate this command.
17615  It is ignored if 
17616 \begin_inset Flex Code
17617 status collapsed
17618
17619 \begin_layout Plain Layout
17620 UsesFloatPkg
17621 \end_layout
17622
17623 \end_inset
17624
17625  is true,
17626  since in that case there is a standard way to define the command.
17627 \end_layout
17628
17629 \begin_layout Description
17630 \begin_inset Flex Code
17631 status collapsed
17632
17633 \begin_layout Plain Layout
17634 ListName
17635 \end_layout
17636
17637 \end_inset
17638
17639  [
17640 \begin_inset Flex Code
17641 status collapsed
17642
17643 \begin_layout Plain Layout
17644 string
17645 \end_layout
17646
17647 \end_inset
17648
17649 =
17650 \begin_inset Quotes erd
17651 \end_inset
17652
17653
17654 \begin_inset Quotes erd
17655 \end_inset
17656
17657 ] A title for a list of floats of this kind (list of figures,
17658  tables,
17659  or whatever).
17660  It is used for the screen label within \SpecialChar LyX
17661 ,
17662  it is used by \SpecialChar LaTeX
17663  for the title and it is used as the title in the XHTML output.
17664  It will be translated to the document language.
17665 \end_layout
17666
17667 \begin_layout Description
17668 \begin_inset Flex Code
17669 status collapsed
17670
17671 \begin_layout Plain Layout
17672 NumberWithin
17673 \end_layout
17674
17675 \end_inset
17676
17677  [
17678 \begin_inset Flex Code
17679 status collapsed
17680
17681 \begin_layout Plain Layout
17682 string
17683 \end_layout
17684
17685 \end_inset
17686
17687 =
17688 \begin_inset Quotes erd
17689 \end_inset
17690
17691
17692 \begin_inset Quotes erd
17693 \end_inset
17694
17695 ] This (optional) argument determines whether floats of this class will be numbered within some sectional unit of the document.
17696  For example,
17697  if 
17698 \begin_inset Flex Code
17699 status collapsed
17700
17701 \begin_layout Plain Layout
17702 NumberWithin
17703 \end_layout
17704
17705 \end_inset
17706
17707  is set to 
17708 \begin_inset Quotes eld
17709 \end_inset
17710
17711
17712 \begin_inset Flex Code
17713 status collapsed
17714
17715 \begin_layout Plain Layout
17716 chapter
17717 \end_layout
17718
17719 \end_inset
17720
17721
17722 \begin_inset Quotes erd
17723 \end_inset
17724
17725 ,
17726  the floats will be numbered within chapters.
17727  
17728 \end_layout
17729
17730 \begin_layout Description
17731 \begin_inset Flex Code
17732 status collapsed
17733
17734 \begin_layout Plain Layout
17735 Placement
17736 \end_layout
17737
17738 \end_inset
17739
17740  [
17741 \begin_inset Flex Code
17742 status collapsed
17743
17744 \begin_layout Plain Layout
17745 string
17746 \end_layout
17747
17748 \end_inset
17749
17750 =
17751 \begin_inset Quotes erd
17752 \end_inset
17753
17754
17755 \begin_inset Quotes erd
17756 \end_inset
17757
17758 ] The default placement for the given class of floats.
17759  The string should be as in standard \SpecialChar LaTeX
17760 :
17761  
17762 \begin_inset Flex Code
17763 status collapsed
17764
17765 \begin_layout Plain Layout
17766 t
17767 \end_layout
17768
17769 \end_inset
17770
17771 ,
17772  
17773 \begin_inset Flex Code
17774 status collapsed
17775
17776 \begin_layout Plain Layout
17777 b
17778 \end_layout
17779
17780 \end_inset
17781
17782 ,
17783  
17784 \begin_inset Flex Code
17785 status collapsed
17786
17787 \begin_layout Plain Layout
17788 p
17789 \end_layout
17790
17791 \end_inset
17792
17793  and 
17794 \begin_inset Flex Code
17795 status collapsed
17796
17797 \begin_layout Plain Layout
17798 h
17799 \end_layout
17800
17801 \end_inset
17802
17803  for top,
17804  bottom,
17805  page,
17806  and here,
17807  respectively.
17808 \begin_inset Foot
17809 status collapsed
17810
17811 \begin_layout Plain Layout
17812 Note that the order of these letters in the string is irrelevant,
17813  like in \SpecialChar LaTeX
17814 .
17815 \end_layout
17816
17817 \end_inset
17818
17819  On top of that there is a new type,
17820  
17821 \begin_inset Flex Code
17822 status collapsed
17823
17824 \begin_layout Plain Layout
17825 H
17826 \end_layout
17827
17828 \end_inset
17829
17830 ,
17831  which does not really correspond to a float,
17832  since it means:
17833  put it 
17834 \begin_inset Quotes eld
17835 \end_inset
17836
17837 here
17838 \begin_inset Quotes erd
17839 \end_inset
17840
17841  and nowhere else.
17842  Note however that the 
17843 \begin_inset Flex Code
17844 status collapsed
17845
17846 \begin_layout Plain Layout
17847 H
17848 \end_layout
17849
17850 \end_inset
17851
17852  specifier is special and,
17853  because of implementation details,
17854  cannot be used in non-built in float types.
17855  If you do not understand what this means,
17856  just use 
17857 \begin_inset Quotes eld
17858 \end_inset
17859
17860
17861 \begin_inset Flex Code
17862 status collapsed
17863
17864 \begin_layout Plain Layout
17865 tbp
17866 \end_layout
17867
17868 \end_inset
17869
17870
17871 \begin_inset Quotes erd
17872 \end_inset
17873
17874 .
17875 \end_layout
17876
17877 \begin_layout Description
17878 \begin_inset Flex Code
17879 status collapsed
17880
17881 \begin_layout Plain Layout
17882 PrettyFormat
17883 \end_layout
17884
17885 \end_inset
17886
17887  [
17888 \begin_inset Flex Code
17889 status collapsed
17890
17891 \begin_layout Plain Layout
17892 string
17893 \end_layout
17894
17895 \end_inset
17896
17897 =
17898 \begin_inset Quotes erd
17899 \end_inset
17900
17901
17902 \begin_inset Quotes erd
17903 \end_inset
17904
17905 ] A format for use with formatted references to this counter.
17906  For example,
17907  one might want to have references to tables appear as 
17908 \begin_inset Quotes eld
17909 \end_inset
17910
17911 Table 2
17912 \begin_inset Quotes erd
17913 \end_inset
17914
17915 .
17916  The string may contain 
17917 \begin_inset Quotes eld
17918 \end_inset
17919
17920 ##
17921 \begin_inset Quotes erd
17922 \end_inset
17923
17924  or a counter specification.
17925  (See the documentation for 
17926 \begin_inset Flex Code
17927 status open
17928
17929 \begin_layout Plain Layout
17930 LabelString
17931 \end_layout
17932
17933 \end_inset
17934
17935  in 
17936 \begin_inset CommandInset ref
17937 LatexCommand formatted
17938 reference "subsec:Counters"
17939 plural "false"
17940 caps "false"
17941 noprefix "false"
17942 nolink "false"
17943
17944 \end_inset
17945
17946 .) The former will be replaced by the counter number itself.
17947  So,
17948  for sections,
17949  it would be:
17950  Section ##,
17951  or perhaps:
17952  section 
17953 \backslash
17954 arabic{section} (which might render as:
17955  section 2.7).
17956 \end_layout
17957
17958 \begin_layout Description
17959 \begin_inset Flex Code
17960 status collapsed
17961
17962 \begin_layout Plain Layout
17963 RefPrefix
17964 \end_layout
17965
17966 \end_inset
17967
17968  [
17969 \begin_inset Flex Code
17970 status collapsed
17971
17972 \begin_layout Plain Layout
17973 string
17974 \end_layout
17975
17976 \end_inset
17977
17978 ] The prefix to use when creating labels referring to floats of this type.
17979  This allows the use of formatted references.
17980  Note that you can remove any 
17981 \begin_inset Flex Code
17982 status collapsed
17983
17984 \begin_layout Plain Layout
17985 RefPrefix
17986 \end_layout
17987
17988 \end_inset
17989
17990  set by a copied style by using the special value 
17991 \begin_inset Quotes eld
17992 \end_inset
17993
17994 OFF
17995 \begin_inset Quotes erd
17996 \end_inset
17997
17998 ,
17999  which must be all caps.
18000 \end_layout
18001
18002 \begin_layout Description
18003 \begin_inset Flex Code
18004 status collapsed
18005
18006 \begin_layout Plain Layout
18007 Requires
18008 \end_layout
18009
18010 \end_inset
18011
18012  [
18013 \begin_inset Flex Code
18014 status collapsed
18015
18016 \begin_layout Plain Layout
18017 string
18018 \end_layout
18019
18020 \end_inset
18021
18022 ] As with paragraph styles,
18023  see 
18024 \begin_inset CommandInset ref
18025 LatexCommand ref
18026 reference "subsec:Paragraph-Styles"
18027 nolink "false"
18028
18029 \end_inset
18030
18031 .
18032 \end_layout
18033
18034 \begin_layout Description
18035 \begin_inset Flex Code
18036 status collapsed
18037
18038 \begin_layout Plain Layout
18039 Style
18040 \end_layout
18041
18042 \end_inset
18043
18044  [
18045 \begin_inset Flex Code
18046 status collapsed
18047
18048 \begin_layout Plain Layout
18049 string
18050 \end_layout
18051
18052 \end_inset
18053
18054 =
18055 \begin_inset Quotes erd
18056 \end_inset
18057
18058
18059 \begin_inset Quotes erd
18060 \end_inset
18061
18062 ] The style used when defining the float using 
18063 \begin_inset Flex Code
18064 status collapsed
18065
18066 \begin_layout Plain Layout
18067
18068 \backslash
18069 newfloat
18070 \end_layout
18071
18072 \end_inset
18073
18074 .
18075 \end_layout
18076
18077 \begin_layout Description
18078 \begin_inset Flex Code
18079 status collapsed
18080
18081 \begin_layout Plain Layout
18082 Type
18083 \end_layout
18084
18085 \end_inset
18086
18087  [
18088 \begin_inset Flex Code
18089 status collapsed
18090
18091 \begin_layout Plain Layout
18092 string
18093 \end_layout
18094
18095 \end_inset
18096
18097 =
18098 \begin_inset Quotes erd
18099 \end_inset
18100
18101
18102 \begin_inset Quotes erd
18103 \end_inset
18104
18105 ] The 
18106 \begin_inset Quotes eld
18107 \end_inset
18108
18109 type
18110 \begin_inset Quotes erd
18111 \end_inset
18112
18113  of the new class of floats,
18114  like program or algorithm.
18115  After the appropriate 
18116 \begin_inset Flex Code
18117 status collapsed
18118
18119 \begin_layout Plain Layout
18120
18121 \backslash
18122 newfloat
18123 \end_layout
18124
18125 \end_inset
18126
18127 ,
18128  commands such as 
18129 \begin_inset Flex Code
18130 status collapsed
18131
18132 \begin_layout Plain Layout
18133
18134 \backslash
18135 begin{program}
18136 \end_layout
18137
18138 \end_inset
18139
18140  or 
18141 \begin_inset Flex Code
18142 status collapsed
18143
18144 \begin_layout Plain Layout
18145
18146 \backslash
18147 end{algorithm*}
18148 \end_layout
18149
18150 \end_inset
18151
18152  will be available.
18153 \end_layout
18154
18155 \begin_layout Description
18156 \begin_inset Flex Code
18157 status collapsed
18158
18159 \begin_layout Plain Layout
18160 UsesFloatPkg
18161 \end_layout
18162
18163 \end_inset
18164
18165  [
18166 \begin_inset Flex Code
18167 status collapsed
18168
18169 \begin_layout Plain Layout
18170 0
18171 \end_layout
18172
18173 \end_inset
18174
18175 ,
18176 \begin_inset space \thinspace{}
18177 \end_inset
18178
18179
18180 \begin_inset Flex Code
18181 status collapsed
18182
18183 \begin_layout Plain Layout
18184
18185 \emph on
18186 1
18187 \end_layout
18188
18189 \end_inset
18190
18191 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18192  package 
18193 \begin_inset Flex Code
18194 status collapsed
18195
18196 \begin_layout Plain Layout
18197 float
18198 \end_layout
18199
18200 \end_inset
18201
18202 ,
18203  either by the class file,
18204  another package or on-the-fly by \SpecialChar LyX
18205  itself.
18206 \end_layout
18207
18208 \begin_layout Standard
18209 Note that defining a float with type 
18210 \begin_inset Flex Code
18211 status collapsed
18212
18213 \begin_layout Plain Layout
18214
18215 \emph on
18216 type
18217 \end_layout
18218
18219 \end_inset
18220
18221  automatically defines the corresponding counter with name 
18222 \begin_inset Flex Code
18223 status collapsed
18224
18225 \begin_layout Plain Layout
18226
18227 \emph on
18228 type
18229 \end_layout
18230
18231 \end_inset
18232
18233 .
18234 \end_layout
18235
18236 \begin_layout Subsection
18237 Flex insets and InsetLayout
18238 \begin_inset CommandInset label
18239 LatexCommand label
18240 name "subsec:Flex-insets-and"
18241
18242 \end_inset
18243
18244
18245 \end_layout
18246
18247 \begin_layout Standard
18248 Flex insets come in two different kinds:
18249  
18250 \end_layout
18251
18252 \begin_layout Itemize
18253 character style (
18254 \begin_inset Flex Code
18255 status collapsed
18256
18257 \begin_layout Plain Layout
18258 CharStyle
18259 \end_layout
18260
18261 \end_inset
18262
18263 ):
18264  These define semantic markup corresponding to such \SpecialChar LaTeX
18265  commands as 
18266 \begin_inset Flex Code
18267 status collapsed
18268
18269 \begin_layout Plain Layout
18270
18271 \backslash
18272 noun
18273 \end_layout
18274
18275 \end_inset
18276
18277  and 
18278 \begin_inset Flex Code
18279 status collapsed
18280
18281 \begin_layout Plain Layout
18282
18283 \backslash
18284 code
18285 \end_layout
18286
18287 \end_inset
18288
18289 .
18290 \end_layout
18291
18292 \begin_layout Itemize
18293 user custom (
18294 \begin_inset Flex Code
18295 status collapsed
18296
18297 \begin_layout Plain Layout
18298 Custom
18299 \end_layout
18300
18301 \end_inset
18302
18303 ):
18304  These can be used to define custom collapsible insets,
18305  similar to \SpecialChar TeX
18306  code,
18307  footnote,
18308  and the like.
18309  An obvious example is an endnote inset,
18310  which is defined in the 
18311 \begin_inset Flex Code
18312 status collapsed
18313
18314 \begin_layout Plain Layout
18315 endnote
18316 \end_layout
18317
18318 \end_inset
18319
18320  module.
18321 \end_layout
18322
18323 \begin_layout Standard
18324 Flex insets are defined using the 
18325 \begin_inset Flex Code
18326 status collapsed
18327
18328 \begin_layout Plain Layout
18329 InsetLayout
18330 \end_layout
18331
18332 \end_inset
18333
18334  tag,
18335  which shall be explained in a moment.
18336 \end_layout
18337
18338 \begin_layout Standard
18339 The 
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344 InsetLayout
18345 \end_layout
18346
18347 \end_inset
18348
18349  tag also serves another function:
18350  It can be used to customize the general layout of many different types of insets.
18351  Currently,
18352  
18353 \begin_inset Flex Code
18354 status collapsed
18355
18356 \begin_layout Plain Layout
18357 InsetLayout
18358 \end_layout
18359
18360 \end_inset
18361
18362  can be used to customize the layout parameters for footnotes,
18363  marginal notes,
18364  note insets,
18365  \SpecialChar TeX
18366  code (ERT) insets,
18367  branches,
18368  listings,
18369  indexes,
18370  boxes,
18371  tables,
18372  algorithms,
18373  URLs,
18374  and captions,
18375  as well as to define Flex insets.
18376 \end_layout
18377
18378 \begin_layout Standard
18379 The 
18380 \begin_inset Flex Code
18381 status collapsed
18382
18383 \begin_layout Plain Layout
18384 InsetLayout
18385 \end_layout
18386
18387 \end_inset
18388
18389  definition must begin with a line of the form:
18390 \end_layout
18391
18392 \begin_layout LyX-Code
18393 InsetLayout <type>
18394 \end_layout
18395
18396 \begin_layout Standard
18397 Here 
18398 \begin_inset Flex Code
18399 status collapsed
18400
18401 \begin_layout Plain Layout
18402 <Type>
18403 \end_layout
18404
18405 \end_inset
18406
18407  indicates the inset whose layout is being defined,
18408  and here there are four cases.
18409 \end_layout
18410
18411 \begin_layout Enumerate
18412 The layout for a pre-existing inset is being modified.
18413  In this case,
18414  can be 
18415 \begin_inset Flex Code
18416 status collapsed
18417
18418 \begin_layout Plain Layout
18419 <Type>
18420 \end_layout
18421
18422 \end_inset
18423
18424  any one of the following:
18425  
18426 \begin_inset Flex Code
18427 status collapsed
18428
18429 \begin_layout Plain Layout
18430 Algorithm
18431 \end_layout
18432
18433 \end_inset
18434
18435 ,
18436  
18437 \begin_inset Flex Code
18438 status collapsed
18439
18440 \begin_layout Plain Layout
18441 Branch
18442 \end_layout
18443
18444 \end_inset
18445
18446 ,
18447  
18448 \begin_inset Flex Code
18449 status collapsed
18450
18451 \begin_layout Plain Layout
18452 Box
18453 \end_layout
18454
18455 \end_inset
18456
18457 ,
18458  
18459 \begin_inset Flex Code
18460 status collapsed
18461
18462 \begin_layout Plain Layout
18463 Box:shaded
18464 \end_layout
18465
18466 \end_inset
18467
18468 ,
18469  
18470 \begin_inset Flex Code
18471 status collapsed
18472
18473 \begin_layout Plain Layout
18474 Caption:Standard
18475 \end_layout
18476
18477 \end_inset
18478
18479 ,
18480  
18481 \begin_inset Flex Code
18482 status collapsed
18483
18484 \begin_layout Plain Layout
18485 ERT
18486 \end_layout
18487
18488 \end_inset
18489
18490 ,
18491  
18492 \begin_inset Flex Code
18493 status collapsed
18494
18495 \begin_layout Plain Layout
18496 Figure
18497 \end_layout
18498
18499 \end_inset
18500
18501 ,
18502  
18503 \begin_inset Flex Code
18504 status collapsed
18505
18506 \begin_layout Plain Layout
18507 Foot
18508 \end_layout
18509
18510 \end_inset
18511
18512 ,
18513  
18514 \begin_inset Flex Code
18515 status collapsed
18516
18517 \begin_layout Plain Layout
18518 Index
18519 \end_layout
18520
18521 \end_inset
18522
18523 ,
18524  
18525 \begin_inset Flex Code
18526 status collapsed
18527
18528 \begin_layout Plain Layout
18529 Info
18530 \end_layout
18531
18532 \end_inset
18533
18534 ,
18535  
18536 \begin_inset Flex Code
18537 status collapsed
18538
18539 \begin_layout Plain Layout
18540 Info:menu
18541 \end_layout
18542
18543 \end_inset
18544
18545 ,
18546  
18547 \begin_inset Flex Code
18548 status collapsed
18549
18550 \begin_layout Plain Layout
18551 Info:shortcut
18552 \end_layout
18553
18554 \end_inset
18555
18556 ,
18557  
18558 \begin_inset Flex Code
18559 status collapsed
18560
18561 \begin_layout Plain Layout
18562 Info:shortcuts
18563 \end_layout
18564
18565 \end_inset
18566
18567 ,
18568  
18569 \begin_inset Flex Code
18570 status collapsed
18571
18572 \begin_layout Plain Layout
18573 Listings
18574 \end_layout
18575
18576 \end_inset
18577
18578 ,
18579  
18580 \begin_inset Flex Code
18581 status collapsed
18582
18583 \begin_layout Plain Layout
18584 Marginal
18585 \end_layout
18586
18587 \end_inset
18588
18589 ,
18590  
18591 \begin_inset Flex Code
18592 status collapsed
18593
18594 \begin_layout Plain Layout
18595 Note:Comment
18596 \end_layout
18597
18598 \end_inset
18599
18600 ,
18601  
18602 \begin_inset Flex Code
18603 status collapsed
18604
18605 \begin_layout Plain Layout
18606 Note:Note
18607 \end_layout
18608
18609 \end_inset
18610
18611 ,
18612  
18613 \begin_inset Flex Code
18614 status collapsed
18615
18616 \begin_layout Plain Layout
18617 Note:Greyedout
18618 \end_layout
18619
18620 \end_inset
18621
18622 ,
18623  
18624 \begin_inset Flex Code
18625 status collapsed
18626
18627 \begin_layout Plain Layout
18628 Table
18629 \end_layout
18630
18631 \end_inset
18632
18633 ,
18634  or 
18635 \begin_inset Flex Code
18636 status collapsed
18637
18638 \begin_layout Plain Layout
18639 URL
18640 \end_layout
18641
18642 \end_inset
18643
18644 .
18645 \end_layout
18646
18647 \begin_layout Enumerate
18648 The layout for a Flex inset is being defined.
18649  In this case,
18650  
18651 \begin_inset Flex Code
18652 status collapsed
18653
18654 \begin_layout Plain Layout
18655 <Type>
18656 \end_layout
18657
18658 \end_inset
18659
18660  must be of the form 
18661 \begin_inset Quotes eld
18662 \end_inset
18663
18664
18665 \begin_inset Flex Code
18666 status collapsed
18667
18668 \begin_layout Plain Layout
18669 Flex:<name>
18670 \end_layout
18671
18672 \end_inset
18673
18674
18675 \begin_inset Quotes erd
18676 \end_inset
18677
18678 ,
18679  where 
18680 \begin_inset Flex Code
18681 status collapsed
18682
18683 \begin_layout Plain Layout
18684 name
18685 \end_layout
18686
18687 \end_inset
18688
18689  may be any valid identifier not used by a pre-existing Flex inset.
18690  The identifier may include spaces,
18691  but in that case the whole thing must be wrapped in quotes.
18692  Note that the definition of a flex inset 
18693 \emph on
18694 must 
18695 \emph default
18696 also include a 
18697 \begin_inset Flex Code
18698 status collapsed
18699
18700 \begin_layout Plain Layout
18701 LyXType
18702 \end_layout
18703
18704 \end_inset
18705
18706  entry,
18707  declaring which type of inset it defines.
18708 \end_layout
18709
18710 \begin_layout Enumerate
18711 The layout for user specific branch is being defined.
18712  In this case,
18713  
18714 \begin_inset Flex Code
18715 status collapsed
18716
18717 \begin_layout Plain Layout
18718 <Type>
18719 \end_layout
18720
18721 \end_inset
18722
18723  must be of the form 
18724 \begin_inset Quotes eld
18725 \end_inset
18726
18727
18728 \begin_inset Flex Code
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 Branch:<name>
18733 \end_layout
18734
18735 \end_inset
18736
18737
18738 \begin_inset Quotes erd
18739 \end_inset
18740
18741 ,
18742  where 
18743 \begin_inset Flex Code
18744 status collapsed
18745
18746 \begin_layout Plain Layout
18747 name
18748 \end_layout
18749
18750 \end_inset
18751
18752  may be any valid identifier of branch defined in user's document.
18753  The identifier may include spaces,
18754  but in that case the whole thing must be wrapped in quotes.
18755  The main purpose of this feature is to allow \SpecialChar LaTeX
18756  wrapping around specific branches as user needs.
18757 \end_layout
18758
18759 \begin_layout Enumerate
18760 The layout of a user (or class) specific caption is being defined.
18761  In this case,
18762  
18763 \begin_inset Flex Code
18764 status collapsed
18765
18766 \begin_layout Plain Layout
18767 <Type>
18768 \end_layout
18769
18770 \end_inset
18771
18772  must be of the form 
18773 \begin_inset Quotes eld
18774 \end_inset
18775
18776
18777 \begin_inset Flex Code
18778 status collapsed
18779
18780 \begin_layout Plain Layout
18781 Caption:<name>
18782 \end_layout
18783
18784 \end_inset
18785
18786
18787 \begin_inset Quotes erd
18788 \end_inset
18789
18790 ,
18791  where 
18792 \begin_inset Flex Code
18793 status collapsed
18794
18795 \begin_layout Plain Layout
18796 name
18797 \end_layout
18798
18799 \end_inset
18800
18801  specifies the name of the caption as it appears in the menu.
18802  Have a look at the standard caption (
18803 \begin_inset Flex Code
18804 status collapsed
18805
18806 \begin_layout Plain Layout
18807 Caption:Standard
18808 \end_layout
18809
18810 \end_inset
18811
18812 ),
18813  the specific captions of the KOMA-Script classes (
18814 \begin_inset Flex Code
18815 status collapsed
18816
18817 \begin_layout Plain Layout
18818 Caption:Above
18819 \end_layout
18820
18821 \end_inset
18822
18823 ,
18824  
18825 \begin_inset Flex Code
18826 status collapsed
18827
18828 \begin_layout Plain Layout
18829 Caption:Below
18830 \end_layout
18831
18832 \end_inset
18833
18834 ) or the module 
18835 \family sans
18836 Multilingual
18837 \begin_inset space ~
18838 \end_inset
18839
18840 Captions
18841 \begin_inset Newline linebreak
18842 \end_inset
18843
18844
18845 \family default
18846 (
18847 \begin_inset Flex Code
18848 status collapsed
18849
18850 \begin_layout Plain Layout
18851 Caption:Bicaption
18852 \end_layout
18853
18854 \end_inset
18855
18856 ) for applications.
18857 \end_layout
18858
18859 \begin_layout Standard
18860 The 
18861 \begin_inset Flex Code
18862 status collapsed
18863
18864 \begin_layout Plain Layout
18865 InsetLayout
18866 \end_layout
18867
18868 \end_inset
18869
18870  definition can contain the following entries:
18871 \end_layout
18872
18873 \begin_layout Description
18874 \begin_inset Flex Code
18875 status collapsed
18876
18877 \begin_layout Plain Layout
18878 AddToToc
18879 \end_layout
18880
18881 \end_inset
18882
18883  [
18884 \begin_inset Flex Code
18885 status collapsed
18886
18887 \begin_layout Plain Layout
18888 string
18889 \end_layout
18890
18891 \end_inset
18892
18893 =""] This inset will appear in the table of contents of the given type.
18894  An empty string disables.
18895  See also the OutlinerName and the IsTocCaption commands.
18896  This is only implemented for Flex insets.
18897  Default:
18898  disabled.
18899 \end_layout
18900
18901 \begin_layout Description
18902 \begin_inset Flex Code
18903 status collapsed
18904
18905 \begin_layout Plain Layout
18906 AllowedInInsets
18907 \end_layout
18908
18909 \end_inset
18910
18911  Includes a comma-separated list of insets to which this inset can be inserted.
18912  Must be ended by 
18913 \begin_inset Quotes eld
18914 \end_inset
18915
18916
18917 \begin_inset Flex Code
18918 status collapsed
18919
18920 \begin_layout Plain Layout
18921 EndAllowedInInsets
18922 \end_layout
18923
18924 \end_inset
18925
18926
18927 \begin_inset Quotes erd
18928 \end_inset
18929
18930 .
18931  If you you also want the insertion to be allowed in specific arguments of the target insets,
18932  append the argument name after @ (e.
18933 \begin_inset space \thinspace{}
18934 \end_inset
18935
18936 g.,
18937  
18938 \begin_inset Flex Code
18939 status collapsed
18940
18941 \begin_layout Plain Layout
18942 My_Inset@post:1
18943 \end_layout
18944
18945 \end_inset
18946
18947 ).
18948  Note that this currently only supports immediately containing insets (no deeper nesting).
18949  See also 
18950 \begin_inset Flex Code
18951 status collapsed
18952
18953 \begin_layout Plain Layout
18954 AllowedInLayouts
18955 \end_layout
18956
18957 \end_inset
18958
18959 .
18960 \end_layout
18961
18962 \begin_layout Description
18963 \begin_inset Flex Code
18964 status collapsed
18965
18966 \begin_layout Plain Layout
18967 AllowedInLayouts
18968 \end_layout
18969
18970 \end_inset
18971
18972  Includes a comma-separated list of layouts within which this inset can be inserted.
18973  Must be ended by 
18974 \begin_inset Quotes eld
18975 \end_inset
18976
18977
18978 \begin_inset Flex Code
18979 status collapsed
18980
18981 \begin_layout Plain Layout
18982 EndAllowedInLayouts
18983 \end_layout
18984
18985 \end_inset
18986
18987
18988 \begin_inset Quotes erd
18989 \end_inset
18990
18991 .
18992  Note that this currently only supports immediately containing layouts (no deeper nesting).
18993  See also 
18994 \begin_inset Flex Code
18995 status collapsed
18996
18997 \begin_layout Plain Layout
18998 AllowedInInsets
18999 \end_layout
19000
19001 \end_inset
19002
19003 .
19004 \end_layout
19005
19006 \begin_layout Description
19007 \begin_inset Flex Code
19008 status collapsed
19009
19010 \begin_layout Plain Layout
19011 AllowedOccurrences
19012 \end_layout
19013
19014 \end_inset
19015
19016  [
19017 \begin_inset Flex Code
19018 status collapsed
19019
19020 \begin_layout Plain Layout
19021 int
19022 \end_layout
19023
19024 \end_inset
19025
19026 ] If 
19027 \begin_inset Flex Code
19028 status collapsed
19029
19030 \begin_layout Plain Layout
19031 AllowedInInsets
19032 \end_layout
19033
19034 \end_inset
19035
19036  or 
19037 \begin_inset Flex Code
19038 status collapsed
19039
19040 \begin_layout Plain Layout
19041 AllowedInLayouts
19042 \end_layout
19043
19044 \end_inset
19045
19046  has been defined,
19047  this can be used to determine how many times the inset can be inserted to a given inset or the paragraph (group).
19048 \end_layout
19049
19050 \begin_layout Description
19051 \begin_inset Flex Code
19052 status collapsed
19053
19054 \begin_layout Plain Layout
19055 AllowedOccurrencesPerItem
19056 \end_layout
19057
19058 \end_inset
19059
19060  [
19061 \begin_inset Flex Code
19062 status collapsed
19063
19064 \begin_layout Plain Layout
19065
19066 \emph on
19067 0
19068 \end_layout
19069
19070 \end_inset
19071
19072 ,
19073 \begin_inset space \thinspace{}
19074 \end_inset
19075
19076
19077 \begin_inset Flex Code
19078 status collapsed
19079
19080 \begin_layout Plain Layout
19081 1
19082 \end_layout
19083
19084 \end_inset
19085
19086 ] If this is set to true,
19087  
19088 \begin_inset Flex Code
19089 status collapsed
19090
19091 \begin_layout Plain Layout
19092 AllowedOccurrences
19093 \end_layout
19094
19095 \end_inset
19096
19097  applies to single paragraphs if we are in a list-type environment (with 
19098 \begin_inset Flex Code
19099 status collapsed
19100
19101 \begin_layout Plain Layout
19102
19103 \backslash
19104 item
19105 \end_layout
19106
19107 \end_inset
19108
19109 s).
19110 \end_layout
19111
19112 \begin_layout Description
19113 \begin_inset Flex Code
19114 status collapsed
19115
19116 \begin_layout Plain Layout
19117 Argument
19118 \end_layout
19119
19120 \end_inset
19121
19122  [
19123 \begin_inset Flex Code
19124 status collapsed
19125
19126 \begin_layout Plain Layout
19127 int
19128 \end_layout
19129
19130 \end_inset
19131
19132 ] Defines argument number of a command\SpecialChar breakableslash
19133 environment associated with the current layout.
19134  The definition must end with 
19135 \begin_inset Flex Code
19136 status collapsed
19137
19138 \begin_layout Plain Layout
19139 EndArgument
19140 \end_layout
19141
19142 \end_inset
19143
19144 .
19145  See 
19146 \begin_inset CommandInset ref
19147 LatexCommand ref
19148 reference "subsec:Arguments"
19149 plural "false"
19150 caps "false"
19151 noprefix "false"
19152 nolink "false"
19153
19154 \end_inset
19155
19156  for more information.
19157 \end_layout
19158
19159 \begin_layout Description
19160 \begin_inset Flex Code
19161 status collapsed
19162
19163 \begin_layout Plain Layout
19164 BabelPreamble
19165 \end_layout
19166
19167 \end_inset
19168
19169  Preamble for changing language commands;
19170  see 
19171 \begin_inset CommandInset ref
19172 LatexCommand ref
19173 reference "subsec:I18n"
19174 nolink "false"
19175
19176 \end_inset
19177
19178 .
19179 \end_layout
19180
19181 \begin_layout Description
19182 \begin_inset Flex Code
19183 status collapsed
19184
19185 \begin_layout Plain Layout
19186 BgColor
19187 \end_layout
19188
19189 \end_inset
19190
19191  [
19192 \begin_inset Flex Code
19193 status collapsed
19194
19195 \begin_layout Plain Layout
19196 <name>
19197 \end_layout
19198
19199 \end_inset
19200
19201 ] The color for the inset's background.
19202  See 
19203 \begin_inset CommandInset ref
19204 LatexCommand ref
19205 reference "chap:Names-of-colors"
19206 nolink "false"
19207
19208 \end_inset
19209
19210  for a list of the available color names.
19211 \end_layout
19212
19213 \begin_layout Description
19214 \begin_inset Flex Code
19215 status collapsed
19216
19217 \begin_layout Plain Layout
19218 ContentAsLabel
19219 \end_layout
19220
19221 \end_inset
19222
19223  [
19224 \begin_inset Flex Code
19225 status collapsed
19226
19227 \begin_layout Plain Layout
19228
19229 \emph on
19230 0
19231 \end_layout
19232
19233 \end_inset
19234
19235 ,
19236 \begin_inset space \thinspace{}
19237 \end_inset
19238
19239
19240 \begin_inset Flex Code
19241 status collapsed
19242
19243 \begin_layout Plain Layout
19244 1
19245 \end_layout
19246
19247 \end_inset
19248
19249 ] Whether to use the content of the inset as the label,
19250  when the inset is closed.
19251  Default is false.
19252 \end_layout
19253
19254 \begin_layout Description
19255 \begin_inset Flex Code
19256 status collapsed
19257
19258 \begin_layout Plain Layout
19259 CopyStyle
19260 \end_layout
19261
19262 \end_inset
19263
19264  [
19265 \begin_inset Flex Code
19266 status collapsed
19267
19268 \begin_layout Plain Layout
19269 <type>
19270 \end_layout
19271
19272 \end_inset
19273
19274 ] As with paragraph styles,
19275  see 
19276 \begin_inset CommandInset ref
19277 LatexCommand ref
19278 reference "subsec:Paragraph-Styles"
19279 nolink "false"
19280
19281 \end_inset
19282
19283 .
19284  Note that you need to specify the complete type,
19285  e.
19286 \begin_inset space \thinspace{}
19287 \end_inset
19288
19289 g.
19290 \begin_inset space ~
19291 \end_inset
19292
19293
19294 \begin_inset Flex Code
19295 status collapsed
19296
19297 \begin_layout Plain Layout
19298 CopyStyle Flex:<name>
19299 \end_layout
19300
19301 \end_inset
19302
19303 .
19304 \end_layout
19305
19306 \begin_layout Description
19307 \begin_inset Flex Code
19308 status collapsed
19309
19310 \begin_layout Plain Layout
19311 CustomPars
19312 \end_layout
19313
19314 \end_inset
19315
19316  [
19317 \begin_inset Flex Code
19318 status collapsed
19319
19320 \begin_layout Plain Layout
19321
19322 \emph on
19323 0
19324 \end_layout
19325
19326 \end_inset
19327
19328 ,
19329 \begin_inset space \thinspace{}
19330 \end_inset
19331
19332
19333 \begin_inset Flex Code
19334 status collapsed
19335
19336 \begin_layout Plain Layout
19337 1
19338 \end_layout
19339
19340 \end_inset
19341
19342 ] Indicates whether the user may employ the Paragraph Settings dialog to customize the paragraph.
19343 \end_layout
19344
19345 \begin_layout Description
19346 \begin_inset Flex Code
19347 status collapsed
19348
19349 \begin_layout Plain Layout
19350 Decoration
19351 \end_layout
19352
19353 \end_inset
19354
19355  can be 
19356 \begin_inset Flex Code
19357 status collapsed
19358
19359 \begin_layout Plain Layout
19360 Classic
19361 \end_layout
19362
19363 \end_inset
19364
19365 ,
19366  
19367 \begin_inset Flex Code
19368 status collapsed
19369
19370 \begin_layout Plain Layout
19371 Minimalistic
19372 \end_layout
19373
19374 \end_inset
19375
19376 ,
19377  or 
19378 \begin_inset Flex Code
19379 status collapsed
19380
19381 \begin_layout Plain Layout
19382 Conglomerate
19383 \end_layout
19384
19385 \end_inset
19386
19387 ,
19388  describing the rendering style used for the inset's frame and buttons.
19389  Footnotes generally use 
19390 \begin_inset Flex Code
19391 status collapsed
19392
19393 \begin_layout Plain Layout
19394 Classic
19395 \end_layout
19396
19397 \end_inset
19398
19399 ,
19400  ERT insets generally 
19401 \begin_inset Flex Code
19402 status collapsed
19403
19404 \begin_layout Plain Layout
19405 Minimalistic
19406 \end_layout
19407
19408 \end_inset
19409
19410 ,
19411  and character styles 
19412 \begin_inset Flex Code
19413 status collapsed
19414
19415 \begin_layout Plain Layout
19416 Conglomerate
19417 \end_layout
19418
19419 \end_inset
19420
19421 .
19422 \end_layout
19423
19424 \begin_layout Description
19425 \begin_inset Flex Code
19426 status collapsed
19427
19428 \begin_layout Plain Layout
19429 Display
19430 \end_layout
19431
19432 \end_inset
19433
19434  [
19435 \begin_inset Flex Code
19436 status collapsed
19437
19438 \begin_layout Plain Layout
19439 0
19440 \end_layout
19441
19442 \end_inset
19443
19444 ,
19445 \emph on
19446
19447 \begin_inset space \thinspace{}
19448 \end_inset
19449
19450
19451 \emph default
19452
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457
19458 \emph on
19459 1
19460 \end_layout
19461
19462 \end_inset
19463
19464 ] Only useful if 
19465 \begin_inset Flex Code
19466 status collapsed
19467
19468 \begin_layout Plain Layout
19469 LatexType
19470 \end_layout
19471
19472 \end_inset
19473
19474  is 
19475 \begin_inset Flex Code
19476 status collapsed
19477
19478 \begin_layout Plain Layout
19479 Environment
19480 \end_layout
19481
19482 \end_inset
19483
19484 .
19485  Indicates whether the environment will stand on its own in the output or will appear inline with the surrounding text.
19486  If set to false,
19487  it is supposed that the \SpecialChar LaTeX
19488  environment ignores white space (including one newline character) after the 
19489 \begin_inset Flex Code
19490 status collapsed
19491
19492 \begin_layout Plain Layout
19493
19494 \backslash
19495 begin{
19496 \emph on
19497 LatexName
19498 \emph default
19499 }
19500 \end_layout
19501
19502 \end_inset
19503
19504  and 
19505 \begin_inset Flex Code
19506 status collapsed
19507
19508 \begin_layout Plain Layout
19509
19510 \backslash
19511 end{
19512 \emph on
19513 LatexName
19514 \emph default
19515 }
19516 \end_layout
19517
19518 \end_inset
19519
19520  tags.
19521  Default is true.
19522 \end_layout
19523
19524 \begin_layout Description
19525 \begin_inset Flex Code
19526 status open
19527
19528 \begin_layout Plain Layout
19529 EditExternal
19530 \end_layout
19531
19532 \end_inset
19533
19534  [
19535 \emph on
19536 0
19537 \emph default
19538 ,1] Allow the contents of the inset to be edited externally (using whatever editor is defined for the document's output format).
19539 \end_layout
19540
19541 \begin_layout Description
19542 \begin_inset Flex Code
19543 status collapsed
19544
19545 \begin_layout Plain Layout
19546 End
19547 \end_layout
19548
19549 \end_inset
19550
19551  Required at the end of the 
19552 \begin_inset Flex Code
19553 status collapsed
19554
19555 \begin_layout Plain Layout
19556 InsetLayout
19557 \end_layout
19558
19559 \end_inset
19560
19561  declarations.
19562 \end_layout
19563
19564 \begin_layout Description
19565 \begin_inset Flex Code
19566 status collapsed
19567
19568 \begin_layout Plain Layout
19569 Font
19570 \end_layout
19571
19572 \end_inset
19573
19574  The font used for both the text body 
19575 \emph on
19576 and
19577 \emph default
19578  the label.
19579  See 
19580 \begin_inset CommandInset ref
19581 LatexCommand formatted
19582 reference "subsec:Font-description"
19583 nolink "false"
19584
19585 \end_inset
19586
19587 .
19588  Note that defining this font automatically defines the 
19589 \begin_inset Flex Code
19590 status collapsed
19591
19592 \begin_layout Plain Layout
19593 LabelFont
19594 \end_layout
19595
19596 \end_inset
19597
19598  to the same value,
19599  so define this first and define 
19600 \begin_inset Flex Code
19601 status collapsed
19602
19603 \begin_layout Plain Layout
19604 LabelFont
19605 \end_layout
19606
19607 \end_inset
19608
19609  later if you want them to be different.
19610 \end_layout
19611
19612 \begin_layout Description
19613 \begin_inset Flex Code
19614 status collapsed
19615
19616 \begin_layout Plain Layout
19617 FixedWidthPreambleEncoding
19618 \end_layout
19619
19620 \end_inset
19621
19622  [
19623 \begin_inset Flex Code
19624 status collapsed
19625
19626 \begin_layout Plain Layout
19627
19628 \emph on
19629 0
19630 \end_layout
19631
19632 \end_inset
19633
19634 ,
19635 \begin_inset space \thinspace{}
19636 \end_inset
19637
19638
19639 \begin_inset Flex Code
19640 status collapsed
19641
19642 \begin_layout Plain Layout
19643 1
19644 \end_layout
19645
19646 \end_inset
19647
19648 ] Force a fixed width encoding for the translated contents of 
19649 \begin_inset Flex Code
19650 status collapsed
19651
19652 \begin_layout Plain Layout
19653 BabelPreamble
19654 \end_layout
19655
19656 \end_inset
19657
19658  and 
19659 \begin_inset Flex Code
19660 status collapsed
19661
19662 \begin_layout Plain Layout
19663 LangPreamble
19664 \end_layout
19665
19666 \end_inset
19667
19668  code generated by this layout.
19669  This is needed for special \SpecialChar LaTeX
19670 -packages like 
19671 \family typewriter
19672 listings
19673 \family default
19674  that do not work with variable width encodings such as 
19675 \family sans
19676 utf8
19677 \family default
19678 .
19679  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19680  backends such as Xe\SpecialChar TeX
19681  or Lua\SpecialChar TeX
19682  are used.
19683 \end_layout
19684
19685 \begin_layout Description
19686 \begin_inset Flex Code
19687 status collapsed
19688
19689 \begin_layout Plain Layout
19690 ForceLocalFontSwitch
19691 \end_layout
19692
19693 \end_inset
19694
19695  [
19696 \begin_inset Flex Code
19697 status collapsed
19698
19699 \begin_layout Plain Layout
19700
19701 \emph on
19702 0
19703 \end_layout
19704
19705 \end_inset
19706
19707 ,
19708 \begin_inset space \thinspace{}
19709 \end_inset
19710
19711
19712 \begin_inset Flex Code
19713 status collapsed
19714
19715 \begin_layout Plain Layout
19716 1
19717 \end_layout
19718
19719 \end_inset
19720
19721 ] When using babel,
19722  always use a local font switch (
19723 \begin_inset Flex Code
19724 status collapsed
19725
19726 \begin_layout Plain Layout
19727
19728 \backslash
19729 foreignlanguage
19730 \end_layout
19731
19732 \end_inset
19733
19734 ),
19735  never a global one (such as 
19736 \begin_inset Flex Code
19737 status collapsed
19738
19739 \begin_layout Plain Layout
19740
19741 \backslash
19742 selectlanguage
19743 \end_layout
19744
19745 \end_inset
19746
19747 ).
19748 \end_layout
19749
19750 \begin_layout Description
19751 \begin_inset Flex Code
19752 status collapsed
19753
19754 \begin_layout Plain Layout
19755 ForceLTR
19756 \end_layout
19757
19758 \end_inset
19759
19760  [
19761 \begin_inset Flex Code
19762 status collapsed
19763
19764 \begin_layout Plain Layout
19765
19766 \emph on
19767 0
19768 \end_layout
19769
19770 \end_inset
19771
19772 ,
19773 \begin_inset space \thinspace{}
19774 \end_inset
19775
19776
19777 \begin_inset Flex Code
19778 status collapsed
19779
19780 \begin_layout Plain Layout
19781 1
19782 \end_layout
19783
19784 \end_inset
19785
19786 ] Force the 
19787 \begin_inset Quotes eld
19788 \end_inset
19789
19790 latex
19791 \begin_inset Quotes erd
19792 \end_inset
19793
19794  language,
19795  leading to Left-to-Right (Latin) output,
19796  e.
19797 \begin_inset space \thinspace{}
19798 \end_inset
19799
19800 g.
19801 \begin_inset space \space{}
19802 \end_inset
19803
19804 in \SpecialChar TeX
19805  code or URL.
19806  A kludge.
19807 \end_layout
19808
19809 \begin_layout Description
19810 \begin_inset Flex Code
19811 status collapsed
19812
19813 \begin_layout Plain Layout
19814 ForceOwnlines
19815 \end_layout
19816
19817 \end_inset
19818
19819  [
19820 \begin_inset Flex Code
19821 status collapsed
19822
19823 \begin_layout Plain Layout
19824
19825 \emph on
19826 0
19827 \end_layout
19828
19829 \end_inset
19830
19831 ,
19832 \begin_inset space \thinspace{}
19833 \end_inset
19834
19835
19836 \begin_inset Flex Code
19837 status collapsed
19838
19839 \begin_layout Plain Layout
19840 1
19841 \end_layout
19842
19843 \end_inset
19844
19845 ] Force a line break in the \SpecialChar LaTeX
19846  output before the inset starts and after the inset ends.
19847  This assures the inset itself is output on its own lines,
19848  for parsing purposes.
19849 \end_layout
19850
19851 \begin_layout Description
19852 \begin_inset Flex Code
19853 status collapsed
19854
19855 \begin_layout Plain Layout
19856 ForcePlain
19857 \end_layout
19858
19859 \end_inset
19860
19861  [
19862 \begin_inset Flex Code
19863 status collapsed
19864
19865 \begin_layout Plain Layout
19866
19867 \emph on
19868 0
19869 \end_layout
19870
19871 \end_inset
19872
19873 ,
19874 \begin_inset space \thinspace{}
19875 \end_inset
19876
19877
19878 \begin_inset Flex Code
19879 status collapsed
19880
19881 \begin_layout Plain Layout
19882 1
19883 \end_layout
19884
19885 \end_inset
19886
19887 ] Indicates whether the 
19888 \begin_inset Flex Code
19889 status collapsed
19890
19891 \begin_layout Plain Layout
19892 PlainLayout
19893 \end_layout
19894
19895 \end_inset
19896
19897  should be used or,
19898  instead,
19899  the user can change the paragraph style used in the inset.
19900  Default is false.
19901 \end_layout
19902
19903 \begin_layout Description
19904 \begin_inset Flex Code
19905 status collapsed
19906
19907 \begin_layout Plain Layout
19908 FreeSpacing
19909 \end_layout
19910
19911 \end_inset
19912
19913  [
19914 \begin_inset Flex Code
19915 status collapsed
19916
19917 \begin_layout Plain Layout
19918
19919 \emph on
19920 0
19921 \end_layout
19922
19923 \end_inset
19924
19925 ,
19926 \begin_inset space \thinspace{}
19927 \end_inset
19928
19929
19930 \begin_inset Flex Code
19931 status collapsed
19932
19933 \begin_layout Plain Layout
19934 1
19935 \end_layout
19936
19937 \end_inset
19938
19939 ] As with paragraph styles,
19940  see 
19941 \begin_inset CommandInset ref
19942 LatexCommand ref
19943 reference "subsec:Paragraph-Styles"
19944 nolink "false"
19945
19946 \end_inset
19947
19948 .
19949 \end_layout
19950
19951 \begin_layout Description
19952 \begin_inset Flex Code
19953 status collapsed
19954
19955 \begin_layout Plain Layout
19956 HTML*
19957 \end_layout
19958
19959 \end_inset
19960
19961  These tags control the XHTML output.
19962  See 
19963 \begin_inset CommandInset ref
19964 LatexCommand ref
19965 reference "sec:Tags-for-XHTML"
19966 nolink "false"
19967
19968 \end_inset
19969
19970 .
19971 \end_layout
19972
19973 \begin_layout Description
19974 \begin_inset Flex Code
19975 status collapsed
19976
19977 \begin_layout Plain Layout
19978 InheritFont
19979 \end_layout
19980
19981 \end_inset
19982
19983  [
19984 \begin_inset Flex Code
19985 status collapsed
19986
19987 \begin_layout Plain Layout
19988 0
19989 \end_layout
19990
19991 \end_inset
19992
19993 ,
19994 \begin_inset space \thinspace{}
19995 \end_inset
19996
19997
19998 \begin_inset Flex Code
19999 status collapsed
20000
20001 \begin_layout Plain Layout
20002
20003 \emph on
20004 1
20005 \end_layout
20006
20007 \end_inset
20008
20009 ] The font inside the inset is inherited from the parent for \SpecialChar LaTeX
20010  export if this parameter is 1,
20011  as well as on screen.
20012  Otherwise the document default font is used.
20013 \end_layout
20014
20015 \begin_layout Description
20016 \begin_inset Flex Code
20017 status collapsed
20018
20019 \begin_layout Plain Layout
20020 InToc
20021 \end_layout
20022
20023 \end_inset
20024
20025  [
20026 \begin_inset Flex Code
20027 status collapsed
20028
20029 \begin_layout Plain Layout
20030
20031 \emph on
20032 0
20033 \end_layout
20034
20035 \end_inset
20036
20037 ,
20038 \begin_inset space \thinspace{}
20039 \end_inset
20040
20041
20042 \begin_inset Flex Code
20043 status collapsed
20044
20045 \begin_layout Plain Layout
20046 1
20047 \end_layout
20048
20049 \end_inset
20050
20051 ] Whether to include the contents of this inset in the strings generated for the `Outline' pane for all table of contents,
20052  regardless of the AddToToc setting.
20053  One would not,
20054  for example,
20055  want the content of a footnote in a section header to be included in the TOC displayed in the outline,
20056  but one would normally want the content of a character style displayed.
20057  Default is false:
20058  not to include.
20059 \end_layout
20060
20061 \begin_layout Description
20062 \begin_inset Flex Code
20063 status collapsed
20064
20065 \begin_layout Plain Layout
20066 IsTocCaption
20067 \end_layout
20068
20069 \end_inset
20070
20071  [
20072 \begin_inset Flex Code
20073 status collapsed
20074
20075 \begin_layout Plain Layout
20076
20077 \emph on
20078 0
20079 \end_layout
20080
20081 \end_inset
20082
20083 ,
20084 \begin_inset space \thinspace{}
20085 \end_inset
20086
20087
20088 \begin_inset Flex Code
20089 status collapsed
20090
20091 \begin_layout Plain Layout
20092 1
20093 \end_layout
20094
20095 \end_inset
20096
20097 ] If this is set to 1 and AddToToc is enabled,
20098  the inset adds a summary of its contents in its item in the table of contents.
20099  Otherwise,
20100  only the label appears.
20101 \end_layout
20102
20103 \begin_layout Description
20104 \begin_inset Flex Code
20105 status collapsed
20106
20107 \begin_layout Plain Layout
20108 KeepEmpty
20109 \end_layout
20110
20111 \end_inset
20112
20113  [
20114 \emph on
20115
20116 \begin_inset Flex Code
20117 status collapsed
20118
20119 \begin_layout Plain Layout
20120 0
20121 \end_layout
20122
20123 \end_inset
20124
20125
20126 \emph default
20127 ,
20128 \begin_inset space \thinspace{}
20129 \end_inset
20130
20131
20132 \begin_inset Flex Code
20133 status collapsed
20134
20135 \begin_layout Plain Layout
20136 1
20137 \end_layout
20138
20139 \end_inset
20140
20141 ] As with paragraph styles,
20142  see 
20143 \begin_inset CommandInset ref
20144 LatexCommand ref
20145 reference "subsec:Paragraph-Styles"
20146 nolink "false"
20147
20148 \end_inset
20149
20150 .
20151 \end_layout
20152
20153 \begin_layout Description
20154 \begin_inset Flex Code
20155 status collapsed
20156
20157 \begin_layout Plain Layout
20158 LabelFont
20159 \end_layout
20160
20161 \end_inset
20162
20163  The font used for the label.
20164  See 
20165 \begin_inset CommandInset ref
20166 LatexCommand ref
20167 reference "subsec:Font-description"
20168 nolink "false"
20169
20170 \end_inset
20171
20172 .
20173  Note that this definition can never appear before 
20174 \begin_inset Flex Code
20175 status collapsed
20176
20177 \begin_layout Plain Layout
20178 Font
20179 \end_layout
20180
20181 \end_inset
20182
20183 ,
20184  lest it be ineffective.
20185 \end_layout
20186
20187 \begin_layout Description
20188 \begin_inset Flex Code
20189 status collapsed
20190
20191 \begin_layout Plain Layout
20192 LabelString
20193 \end_layout
20194
20195 \end_inset
20196
20197  [
20198 \begin_inset Flex Code
20199 status collapsed
20200
20201 \begin_layout Plain Layout
20202 string
20203 \end_layout
20204
20205 \end_inset
20206
20207 =
20208 \begin_inset Quotes erd
20209 \end_inset
20210
20211
20212 \begin_inset Quotes erd
20213 \end_inset
20214
20215 ] What will be displayed on the button or elsewhere as the inset label.
20216  Some inset types (
20217 \begin_inset Flex Code
20218 status collapsed
20219
20220 \begin_layout Plain Layout
20221 \SpecialChar TeX
20222  code
20223 \end_layout
20224
20225 \end_inset
20226
20227  and 
20228 \begin_inset Flex Code
20229 status collapsed
20230
20231 \begin_layout Plain Layout
20232 Branch
20233 \end_layout
20234
20235 \end_inset
20236
20237 ) modify this label on the fly.
20238 \end_layout
20239
20240 \begin_layout Description
20241 \begin_inset Flex Code
20242 status collapsed
20243
20244 \begin_layout Plain Layout
20245 LangPreamble
20246 \end_layout
20247
20248 \end_inset
20249
20250  Language dependent preamble;
20251  see 
20252 \begin_inset CommandInset ref
20253 LatexCommand ref
20254 reference "subsec:I18n"
20255 nolink "false"
20256
20257 \end_inset
20258
20259 .
20260 \end_layout
20261
20262 \begin_layout Description
20263 \begin_inset Flex Code
20264 status collapsed
20265
20266 \begin_layout Plain Layout
20267 LatexName
20268 \end_layout
20269
20270 \end_inset
20271
20272  [
20273 \begin_inset Flex Code
20274 status collapsed
20275
20276 \begin_layout Plain Layout
20277 <name>
20278 \end_layout
20279
20280 \end_inset
20281
20282 ] The name of the corresponding \SpecialChar LaTeX
20283  stuff.
20284  Either the environment or command name.
20285 \end_layout
20286
20287 \begin_layout Description
20288 \begin_inset Flex Code
20289 status collapsed
20290
20291 \begin_layout Plain Layout
20292 LatexParam
20293 \end_layout
20294
20295 \end_inset
20296
20297  [
20298 \begin_inset Flex Code
20299 status collapsed
20300
20301 \begin_layout Plain Layout
20302 <parameter>
20303 \end_layout
20304
20305 \end_inset
20306
20307 ] The optional parameter for the corresponding 
20308 \begin_inset Flex Code
20309 status collapsed
20310
20311 \begin_layout Plain Layout
20312 LatexName
20313 \end_layout
20314
20315 \end_inset
20316
20317  stuff,
20318  including possible bracket pairs like 
20319 \begin_inset Flex Code
20320 status collapsed
20321
20322 \begin_layout Plain Layout
20323 []
20324 \end_layout
20325
20326 \end_inset
20327
20328 .
20329  This parameter cannot be changed from within \SpecialChar LyX
20330  (use 
20331 \begin_inset Flex Code
20332 status collapsed
20333
20334 \begin_layout Plain Layout
20335 Argument
20336 \end_layout
20337
20338 \end_inset
20339
20340  for customizable parameters).
20341  It will be output as is after all \SpecialChar LaTeX
20342  
20343 \begin_inset Flex Code
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347 Argument
20348 \end_layout
20349
20350 \end_inset
20351
20352 s.
20353 \end_layout
20354
20355 \begin_layout Description
20356 \begin_inset Flex Code
20357 status collapsed
20358
20359 \begin_layout Plain Layout
20360 LatexType
20361 \end_layout
20362
20363 \end_inset
20364
20365  [
20366 \begin_inset Flex Code
20367 status collapsed
20368
20369 \begin_layout Plain Layout
20370 Command,
20371  Environment,
20372  None
20373 \end_layout
20374
20375 \end_inset
20376
20377 ] How the style should be translated into \SpecialChar LaTeX
20378 .
20379 \begin_inset Foot
20380 status collapsed
20381
20382 \begin_layout Plain Layout
20383 \begin_inset Flex Code
20384 status collapsed
20385
20386 \begin_layout Plain Layout
20387 LatexType
20388 \end_layout
20389
20390 \end_inset
20391
20392  is perhaps a bit misleading,
20393  since these rules apply to SGML classes too.
20394  Visit the SGML class files for specific examples.
20395 \end_layout
20396
20397 \end_inset
20398
20399
20400 \end_layout
20401
20402 \begin_deeper
20403 \begin_layout Description
20404 \begin_inset Flex Code
20405 status collapsed
20406
20407 \begin_layout Plain Layout
20408 None
20409 \end_layout
20410
20411 \end_inset
20412
20413  means nothing special
20414 \end_layout
20415
20416 \begin_layout Description
20417 \begin_inset Flex Code
20418 status collapsed
20419
20420 \begin_layout Plain Layout
20421 Command
20422 \end_layout
20423
20424 \end_inset
20425
20426  means 
20427 \begin_inset Flex Code
20428 status collapsed
20429
20430 \begin_layout Plain Layout
20431
20432 \backslash
20433
20434 \emph on
20435 LatexName
20436 \emph default
20437 {\SpecialChar ldots
20438 }
20439 \end_layout
20440
20441 \end_inset
20442
20443
20444 \end_layout
20445
20446 \begin_layout Description
20447 \begin_inset Flex Code
20448 status collapsed
20449
20450 \begin_layout Plain Layout
20451 Environment
20452 \end_layout
20453
20454 \end_inset
20455
20456  means 
20457 \begin_inset Flex Code
20458 status collapsed
20459
20460 \begin_layout Plain Layout
20461
20462 \backslash
20463 begin{
20464 \emph on
20465 LatexName
20466 \emph default
20467 }\SpecialChar ldots
20468
20469 \backslash
20470 end{
20471 \emph on
20472 LatexName
20473 \emph default
20474 }
20475 \end_layout
20476
20477 \end_inset
20478
20479
20480 \end_layout
20481
20482 \begin_layout Standard
20483 Putting the last few things together,
20484  the \SpecialChar LaTeX
20485  output will be either:
20486  
20487 \end_layout
20488
20489 \begin_layout LyX-Code
20490
20491 \backslash
20492 LatexName[LatexParam]{\SpecialChar ldots
20493 }
20494 \end_layout
20495
20496 \begin_layout Standard
20497 or:
20498  
20499 \end_layout
20500
20501 \begin_layout LyX-Code
20502
20503 \backslash
20504 begin{LatexName}[LatexParam] \SpecialChar ldots
20505  
20506 \backslash
20507 end{LatexName}
20508 \end_layout
20509
20510 \begin_layout Standard
20511 depending upon the \SpecialChar LaTeX
20512  type.
20513 \end_layout
20514
20515 \end_deeper
20516 \begin_layout Description
20517 \begin_inset Flex Code
20518 status collapsed
20519
20520 \begin_layout Plain Layout
20521 LeftDelim
20522 \end_layout
20523
20524 \end_inset
20525
20526  [
20527 \begin_inset Flex Code
20528 status collapsed
20529
20530 \begin_layout Plain Layout
20531 string
20532 \end_layout
20533
20534 \end_inset
20535
20536 ] A string that is put at the beginning of the layout content.
20537  A line break in the output can be indicated by 
20538 \begin_inset Flex Code
20539 status collapsed
20540
20541 \begin_layout Plain Layout
20542 <br/>
20543 \end_layout
20544
20545 \end_inset
20546
20547 .
20548 \end_layout
20549
20550 \begin_layout Description
20551 \begin_inset Flex Code
20552 status collapsed
20553
20554 \begin_layout Plain Layout
20555 LyxType
20556 \end_layout
20557
20558 \end_inset
20559
20560  Can be 
20561 \begin_inset Flex Code
20562 status collapsed
20563
20564 \begin_layout Plain Layout
20565 charstyle
20566 \end_layout
20567
20568 \end_inset
20569
20570 ,
20571  
20572 \begin_inset Flex Code
20573 status collapsed
20574
20575 \begin_layout Plain Layout
20576 custom
20577 \end_layout
20578
20579 \end_inset
20580
20581 ,
20582  or 
20583 \begin_inset Flex Code
20584 status collapsed
20585
20586 \begin_layout Plain Layout
20587 end
20588 \end_layout
20589
20590 \end_inset
20591
20592  (indicating a dummy definition ending definitions of charstyles,
20593  etc).
20594  This entry is required in and is only meaningful for Flex insets.
20595  Among other things,
20596  it determines on which menu this inset will appear.
20597  Setting 
20598 \begin_inset Flex Code
20599 status collapsed
20600
20601 \begin_layout Plain Layout
20602 LyxType
20603 \end_layout
20604
20605 \end_inset
20606
20607  to 
20608 \begin_inset Flex Code
20609 status collapsed
20610
20611 \begin_layout Plain Layout
20612 charstyle
20613 \end_layout
20614
20615 \end_inset
20616
20617  will automatically set 
20618 \begin_inset Flex Code
20619 status collapsed
20620
20621 \begin_layout Plain Layout
20622 MultiPar
20623 \end_layout
20624
20625 \end_inset
20626
20627  to false and 
20628 \begin_inset Flex Code
20629 status collapsed
20630
20631 \begin_layout Plain Layout
20632 ForcePlain
20633 \end_layout
20634
20635 \end_inset
20636
20637  to true.
20638  
20639 \begin_inset Flex Code
20640 status collapsed
20641
20642 \begin_layout Plain Layout
20643 MultiPar
20644 \end_layout
20645
20646 \end_inset
20647
20648  can be set to true,
20649  or 
20650 \begin_inset Flex Code
20651 status collapsed
20652
20653 \begin_layout Plain Layout
20654 ForcePlain
20655 \end_layout
20656
20657 \end_inset
20658
20659  to false,
20660  for 
20661 \begin_inset Flex Code
20662 status collapsed
20663
20664 \begin_layout Plain Layout
20665 charstyle
20666 \end_layout
20667
20668 \end_inset
20669
20670  insets by setting it 
20671 \emph on
20672 after
20673 \emph default
20674  you set the 
20675 \begin_inset Flex Code
20676 status collapsed
20677
20678 \begin_layout Plain Layout
20679 LyxType
20680 \end_layout
20681
20682 \end_inset
20683
20684 .
20685 \end_layout
20686
20687 \begin_layout Description
20688 \begin_inset Flex Code
20689 status collapsed
20690
20691 \begin_layout Plain Layout
20692 MenuString
20693 \end_layout
20694
20695 \end_inset
20696
20697  
20698 \begin_inset Flex Code
20699 status collapsed
20700
20701 \begin_layout Plain Layout
20702 [string]
20703 \end_layout
20704
20705 \end_inset
20706
20707  A dedicated string for the menu.
20708  You can define an accelerator by appending the respective character to the string,
20709  divided by 
20710 \begin_inset Quotes eld
20711 \end_inset
20712
20713 |
20714 \begin_inset Quotes erd
20715 \end_inset
20716
20717  (e.
20718 \begin_inset space \thinspace{}
20719 \end_inset
20720
20721 g.
20722 \begin_inset space \space{}
20723 \end_inset
20724
20725
20726 \begin_inset Quotes eld
20727 \end_inset
20728
20729
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 My Inset|M
20735 \end_layout
20736
20737 \end_inset
20738
20739
20740 \begin_inset Quotes erd
20741 \end_inset
20742
20743 ).
20744  This specification is optional.
20745  If it is not given the inset name as specified in the type declaration will be used instead for the menu.
20746 \end_layout
20747
20748 \begin_layout Description
20749 \begin_inset Flex Code
20750 status collapsed
20751
20752 \begin_layout Plain Layout
20753 MultiPar
20754 \end_layout
20755
20756 \end_inset
20757
20758  [
20759 \begin_inset Flex Code
20760 status collapsed
20761
20762 \begin_layout Plain Layout
20763
20764 \emph on
20765 0
20766 \end_layout
20767
20768 \end_inset
20769
20770 ,
20771 \begin_inset space \thinspace{}
20772 \end_inset
20773
20774
20775 \begin_inset Flex Code
20776 status collapsed
20777
20778 \begin_layout Plain Layout
20779 1
20780 \end_layout
20781
20782 \end_inset
20783
20784 ] Whether multiple paragraphs are permitted in this inset.
20785  This will also set 
20786 \begin_inset Flex Code
20787 status collapsed
20788
20789 \begin_layout Plain Layout
20790 CustomPars
20791 \end_layout
20792
20793 \end_inset
20794
20795  to the same value and 
20796 \begin_inset Flex Code
20797 status collapsed
20798
20799 \begin_layout Plain Layout
20800 ForcePlain
20801 \end_layout
20802
20803 \end_inset
20804
20805  to the opposite value.
20806  These can be reset to other values,
20807  if they are used 
20808 \emph on
20809 after
20810 \emph default
20811  
20812 \begin_inset Flex Code
20813 status collapsed
20814
20815 \begin_layout Plain Layout
20816 MultiPar
20817 \end_layout
20818
20819 \end_inset
20820
20821 .
20822  Default is true.
20823 \end_layout
20824
20825 \begin_layout Description
20826 \begin_inset Flex Code
20827 status collapsed
20828
20829 \begin_layout Plain Layout
20830 NeedProtect
20831 \end_layout
20832
20833 \end_inset
20834
20835  [
20836 \begin_inset Flex Code
20837 status collapsed
20838
20839 \begin_layout Plain Layout
20840
20841 \emph on
20842 0
20843 \end_layout
20844
20845 \end_inset
20846
20847 ,
20848 \begin_inset space \thinspace{}
20849 \end_inset
20850
20851
20852 \begin_inset Flex Code
20853 status collapsed
20854
20855 \begin_layout Plain Layout
20856 1
20857 \end_layout
20858
20859 \end_inset
20860
20861 ] Whether fragile commands in this inset should be 
20862 \begin_inset Flex Code
20863 status collapsed
20864
20865 \begin_layout Plain Layout
20866
20867 \backslash
20868 protect
20869 \end_layout
20870
20871 \end_inset
20872
20873 'ed.
20874  (Note:
20875  This is 
20876 \emph on
20877 not
20878 \emph default
20879  whether the command should itself be protected.) Default is false.
20880 \end_layout
20881
20882 \begin_layout Description
20883 \begin_inset Flex Code
20884 status collapsed
20885
20886 \begin_layout Plain Layout
20887 NeedCProtect
20888 \end_layout
20889
20890 \end_inset
20891
20892  [
20893 \begin_inset Flex Code
20894 status collapsed
20895
20896 \begin_layout Plain Layout
20897
20898 \emph on
20899 0
20900 \end_layout
20901
20902 \end_inset
20903
20904 ,
20905 \begin_inset space \thinspace{}
20906 \end_inset
20907
20908
20909 \begin_inset Flex Code
20910 status collapsed
20911
20912 \begin_layout Plain Layout
20913 1
20914 \end_layout
20915
20916 \end_inset
20917
20918 ] This causes macros that contain this inset to be protected with 
20919 \begin_inset Flex Code
20920 status collapsed
20921
20922 \begin_layout Plain Layout
20923
20924 \backslash
20925 cprotect
20926 \end_layout
20927
20928 \end_inset
20929
20930  (cf.
20931  package 
20932 \family sans
20933 cprotect
20934 \family default
20935 ) if necessary and thus allows (some) verbatim stuff in macros.
20936  Default is false.
20937 \end_layout
20938
20939 \begin_layout Description
20940 \begin_inset Flex Code
20941 status collapsed
20942
20943 \begin_layout Plain Layout
20944 NeedMBoxProtect
20945 \end_layout
20946
20947 \end_inset
20948
20949  [
20950 \begin_inset Flex Code
20951 status collapsed
20952
20953 \begin_layout Plain Layout
20954
20955 \emph on
20956 0
20957 \end_layout
20958
20959 \end_inset
20960
20961 ,
20962 \begin_inset space \thinspace{}
20963 \end_inset
20964
20965
20966 \begin_inset Flex Code
20967 status collapsed
20968
20969 \begin_layout Plain Layout
20970 1
20971 \end_layout
20972
20973 \end_inset
20974
20975 ] Whether specific commands in this inset (such as 
20976 \begin_inset Flex Code
20977 status collapsed
20978
20979 \begin_layout Plain Layout
20980
20981 \backslash
20982 cite
20983 \end_layout
20984
20985 \end_inset
20986
20987  and 
20988 \begin_inset Flex Code
20989 status collapsed
20990
20991 \begin_layout Plain Layout
20992
20993 \backslash
20994 ref
20995 \end_layout
20996
20997 \end_inset
20998
20999 ) should be protected in an 
21000 \begin_inset Flex Code
21001 status collapsed
21002
21003 \begin_layout Plain Layout
21004
21005 \backslash
21006 mbox
21007 \end_layout
21008
21009 \end_inset
21010
21011 .
21012  This is particularly needed for insets that draw on 
21013 \family sans
21014 ulem
21015 \family default
21016  or 
21017 \family sans
21018 soul
21019 \family default
21020  commands which parse their content in complex ways.
21021  Default is false.
21022 \end_layout
21023
21024 \begin_layout Description
21025 \begin_inset Flex Code
21026 status collapsed
21027
21028 \begin_layout Plain Layout
21029 NewlineCmd
21030 \end_layout
21031
21032 \end_inset
21033
21034  
21035 \begin_inset Flex Code
21036 status collapsed
21037
21038 \begin_layout Plain Layout
21039 [string]
21040 \end_layout
21041
21042 \end_inset
21043
21044  Option to define a different command (from the default 
21045 \begin_inset Flex Code
21046 status collapsed
21047
21048 \begin_layout Plain Layout
21049
21050 \backslash
21051
21052 \backslash
21053
21054 \end_layout
21055
21056 \end_inset
21057
21058 ) to be used for line breaks.
21059  The initial backslash must not be specified.
21060 \end_layout
21061
21062 \begin_layout Description
21063 \begin_inset Flex Code
21064 status collapsed
21065
21066 \begin_layout Plain Layout
21067 NoInsetLayout
21068 \end_layout
21069
21070 \end_inset
21071
21072  [
21073 \begin_inset Flex Code
21074 status collapsed
21075
21076 \begin_layout Plain Layout
21077 <layout>
21078 \end_layout
21079
21080 \end_inset
21081
21082 ] Deletes an existing 
21083 \begin_inset Flex Code
21084 status collapsed
21085
21086 \begin_layout Plain Layout
21087 InsetLayout
21088 \end_layout
21089
21090 \end_inset
21091
21092 .
21093 \change_inserted -712698321 1715512954
21094
21095 \end_layout
21096
21097 \begin_layout Description
21098
21099 \change_inserted -712698321 1715512954
21100 \begin_inset Flex Code
21101 status collapsed
21102
21103 \begin_layout Plain Layout
21104
21105 \change_inserted -712698321 1715512954
21106 NoPassThruChars
21107 \end_layout
21108
21109 \end_inset
21110
21111  [
21112 \begin_inset Flex Code
21113 status collapsed
21114
21115 \begin_layout Plain Layout
21116
21117 \change_inserted -712698321 1715512954
21118 string
21119 \end_layout
21120
21121 \end_inset
21122
21123 ]
21124 \family typewriter
21125  
21126 \family default
21127 Defines individual characters that should 
21128 \emph on
21129 not
21130 \emph default
21131  be output in raw form (without special translations that \SpecialChar LaTeX
21132  would require),
21133  even if such handling is requested by an element in this layout.
21134  This tag can be used to overwrite 
21135 \begin_inset Quotes els
21136 \end_inset
21137
21138 PassThru
21139 \begin_inset Quotes ers
21140 \end_inset
21141
21142  conditions if they are unsuitable in a given context.
21143 \change_unchanged
21144
21145 \end_layout
21146
21147 \begin_layout Description
21148 \begin_inset Flex Code
21149 status collapsed
21150
21151 \begin_layout Plain Layout
21152 ObsoletedBy
21153 \end_layout
21154
21155 \end_inset
21156
21157  [
21158 \begin_inset Flex Code
21159 status collapsed
21160
21161 \begin_layout Plain Layout
21162 <layout>
21163 \end_layout
21164
21165 \end_inset
21166
21167 ] Name of an 
21168 \begin_inset Flex Code
21169 status collapsed
21170
21171 \begin_layout Plain Layout
21172 InsetLayout
21173 \end_layout
21174
21175 \end_inset
21176
21177  that has replaced this 
21178 \begin_inset Flex Code
21179 status collapsed
21180
21181 \begin_layout Plain Layout
21182 InsetLayout
21183 \end_layout
21184
21185 \end_inset
21186
21187 .
21188  This is used to rename an 
21189 \begin_inset Flex Code
21190 status collapsed
21191
21192 \begin_layout Plain Layout
21193 InsetLayout
21194 \end_layout
21195
21196 \end_inset
21197
21198 ,
21199  while keeping backward compatibility.
21200 \end_layout
21201
21202 \begin_layout Description
21203 \begin_inset Flex Code
21204 status collapsed
21205
21206 \begin_layout Plain Layout
21207 ParbreakIgnored
21208 \end_layout
21209
21210 \end_inset
21211
21212  [
21213 \begin_inset Flex Code
21214 status collapsed
21215
21216 \begin_layout Plain Layout
21217
21218 \emph on
21219 0
21220 \end_layout
21221
21222 \end_inset
21223
21224 ,
21225 \begin_inset space \thinspace{}
21226 \end_inset
21227
21228
21229 \begin_inset Flex Code
21230 status collapsed
21231
21232 \begin_layout Plain Layout
21233 1
21234 \end_layout
21235
21236 \end_inset
21237
21238 ] If this is set to 
21239 \begin_inset Flex Code
21240 status collapsed
21241
21242 \begin_layout Plain Layout
21243 1
21244 \end_layout
21245
21246 \end_inset
21247
21248 ,
21249  paragraph breaks will be ignored in the output.
21250  This might be useful for insets where the content should be alignable on different lines only in the \SpecialChar LyX
21251  workarea,
21252  without any effect in the output.
21253 \end_layout
21254
21255 \begin_layout Description
21256 \begin_inset Flex Code
21257 status collapsed
21258
21259 \begin_layout Plain Layout
21260 ParbreakIsNewline
21261 \end_layout
21262
21263 \end_inset
21264
21265  [
21266 \begin_inset Flex Code
21267 status collapsed
21268
21269 \begin_layout Plain Layout
21270
21271 \emph on
21272 0
21273 \end_layout
21274
21275 \end_inset
21276
21277 ,
21278 \begin_inset space \thinspace{}
21279 \end_inset
21280
21281
21282 \begin_inset Flex Code
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286 1
21287 \end_layout
21288
21289 \end_inset
21290
21291 ] As with paragraph styles,
21292  see 
21293 \begin_inset CommandInset ref
21294 LatexCommand ref
21295 reference "subsec:Paragraph-Styles"
21296 nolink "false"
21297
21298 \end_inset
21299
21300 .
21301  Default is false.
21302 \end_layout
21303
21304 \begin_layout Description
21305 \begin_inset Flex Code
21306 status collapsed
21307
21308 \begin_layout Plain Layout
21309 PassThru
21310 \end_layout
21311
21312 \end_inset
21313
21314  [
21315 \begin_inset Flex Code
21316 status collapsed
21317
21318 \begin_layout Plain Layout
21319
21320 \emph on
21321 0
21322 \end_layout
21323
21324 \end_inset
21325
21326 ,
21327 \begin_inset space \thinspace{}
21328 \end_inset
21329
21330
21331 \begin_inset Flex Code
21332 status collapsed
21333
21334 \begin_layout Plain Layout
21335 1
21336 \end_layout
21337
21338 \end_inset
21339
21340 ] As with paragraph styles,
21341  see 
21342 \begin_inset CommandInset ref
21343 LatexCommand ref
21344 reference "subsec:Paragraph-Styles"
21345 nolink "false"
21346
21347 \end_inset
21348
21349 .
21350  Default is false.
21351 \end_layout
21352
21353 \begin_layout Description
21354 \begin_inset Flex Code
21355 status collapsed
21356
21357 \begin_layout Plain Layout
21358 Preamble
21359 \end_layout
21360
21361 \end_inset
21362
21363  As with paragraph styles,
21364  see 
21365 \begin_inset CommandInset ref
21366 LatexCommand ref
21367 reference "subsec:Paragraph-Styles"
21368 nolink "false"
21369
21370 \end_inset
21371
21372 .
21373 \end_layout
21374
21375 \begin_layout Description
21376 \begin_inset Flex Code
21377 status collapsed
21378
21379 \begin_layout Plain Layout
21380 RefPrefix
21381 \end_layout
21382
21383 \end_inset
21384
21385  [
21386 \begin_inset Flex Code
21387 status collapsed
21388
21389 \begin_layout Plain Layout
21390 string
21391 \end_layout
21392
21393 \end_inset
21394
21395 ] The prefix to use when creating labels referring to insets of this type.
21396  This allows the use of formatted references.
21397 \end_layout
21398
21399 \begin_layout Description
21400 \begin_inset Flex Code
21401 status collapsed
21402
21403 \begin_layout Plain Layout
21404 Requires
21405 \end_layout
21406
21407 \end_inset
21408
21409  [
21410 \begin_inset Flex Code
21411 status collapsed
21412
21413 \begin_layout Plain Layout
21414 string
21415 \end_layout
21416
21417 \end_inset
21418
21419 ] As with paragraph styles,
21420  see 
21421 \begin_inset CommandInset ref
21422 LatexCommand ref
21423 reference "subsec:Paragraph-Styles"
21424 nolink "false"
21425
21426 \end_inset
21427
21428 .
21429 \end_layout
21430
21431 \begin_layout Description
21432 \begin_inset Flex Code
21433 status collapsed
21434
21435 \begin_layout Plain Layout
21436 ResetArgs
21437 \end_layout
21438
21439 \end_inset
21440
21441  [
21442 \begin_inset Flex Code
21443 status collapsed
21444
21445 \begin_layout Plain Layout
21446
21447 \emph on
21448 0
21449 \end_layout
21450
21451 \end_inset
21452
21453 ,
21454 \begin_inset space \thinspace{}
21455 \end_inset
21456
21457
21458 \begin_inset Flex Code
21459 status collapsed
21460
21461 \begin_layout Plain Layout
21462 1
21463 \end_layout
21464
21465 \end_inset
21466
21467 ] Resets the \SpecialChar LaTeX
21468  arguments of this layout (as defined via the 
21469 \begin_inset Flex Code
21470 status collapsed
21471
21472 \begin_layout Plain Layout
21473 Argument
21474 \end_layout
21475
21476 \end_inset
21477
21478  tag).
21479  This is useful if you have copied a style via 
21480 \begin_inset Flex Code
21481 status collapsed
21482
21483 \begin_layout Plain Layout
21484 CopyStyle
21485 \end_layout
21486
21487 \end_inset
21488
21489 ,
21490  but you do not want to inherit its (required and optional) arguments.
21491 \end_layout
21492
21493 \begin_layout Description
21494 \begin_inset Flex Code
21495 status collapsed
21496
21497 \begin_layout Plain Layout
21498 ResetsFont
21499 \end_layout
21500
21501 \end_inset
21502
21503  [
21504 \begin_inset Flex Code
21505 status collapsed
21506
21507 \begin_layout Plain Layout
21508
21509 \emph on
21510 0
21511 \end_layout
21512
21513 \end_inset
21514
21515 ,
21516 \begin_inset space \thinspace{}
21517 \end_inset
21518
21519
21520 \begin_inset Flex Code
21521 status collapsed
21522
21523 \begin_layout Plain Layout
21524 1
21525 \end_layout
21526
21527 \end_inset
21528
21529 ] If 
21530 \begin_inset Flex Code
21531 status collapsed
21532
21533 \begin_layout Plain Layout
21534 1
21535 \end_layout
21536
21537 \end_inset
21538
21539 ,
21540  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.
21541 \begin_inset space \thinspace{}
21542 \end_inset
21543
21544 g.,
21545  
21546 \begin_inset Flex Code
21547 status collapsed
21548
21549 \begin_layout Plain Layout
21550
21551 \backslash
21552 textbf{Sourrounding text 
21553 \backslash
21554 myinset{
21555 \backslash
21556 textbf{content}}\SpecialChar ldots
21557 }
21558 \end_layout
21559
21560 \end_inset
21561
21562  rather than 
21563 \begin_inset Flex Code
21564 status collapsed
21565
21566 \begin_layout Plain Layout
21567
21568 \backslash
21569 textbf{Sourrounding text 
21570 \backslash
21571 myinset{content}\SpecialChar ldots
21572 }
21573 \end_layout
21574
21575 \end_inset
21576
21577 .
21578  Setting this makes sense for commands that internally reset font settings (e.
21579 \begin_inset space \thinspace{}
21580 \end_inset
21581
21582 g.,
21583  footnotes).
21584  Note that wrongly setting this might lead to unwanted result (e.
21585 \begin_inset space \thinspace{}
21586 \end_inset
21587
21588 g.,
21589  with 
21590 \begin_inset Flex Code
21591 status collapsed
21592
21593 \begin_layout Plain Layout
21594
21595 \backslash
21596 emph{Sourrounding text 
21597 \backslash
21598 myinset{
21599 \backslash
21600 emph{content}}\SpecialChar ldots
21601 }
21602 \end_layout
21603
21604 \end_inset
21605
21606 ,
21607  content is upright,
21608  as 
21609 \begin_inset Flex Code
21610 status collapsed
21611
21612 \begin_layout Plain Layout
21613
21614 \backslash
21615 emph
21616 \end_layout
21617
21618 \end_inset
21619
21620  toggles.
21621  Default is 
21622 \begin_inset Flex Code
21623 status collapsed
21624
21625 \begin_layout Plain Layout
21626 0
21627 \end_layout
21628
21629 \end_inset
21630
21631 :
21632  font changes are not redone inside the inset.
21633 \end_layout
21634
21635 \begin_layout Description
21636 \begin_inset Flex Code
21637 status collapsed
21638
21639 \begin_layout Plain Layout
21640 RightDelim
21641 \end_layout
21642
21643 \end_inset
21644
21645  [
21646 \begin_inset Flex Code
21647 status collapsed
21648
21649 \begin_layout Plain Layout
21650 string
21651 \end_layout
21652
21653 \end_inset
21654
21655 ] A string that is put at the end of the layout content.
21656  A line break in the output can be indicated by 
21657 \begin_inset Flex Code
21658 status collapsed
21659
21660 \begin_layout Plain Layout
21661 <br/>
21662 \end_layout
21663
21664 \end_inset
21665
21666 .
21667 \end_layout
21668
21669 \begin_layout Description
21670 \begin_inset Flex Code
21671 status collapsed
21672
21673 \begin_layout Plain Layout
21674 Spellcheck
21675 \end_layout
21676
21677 \end_inset
21678
21679  [
21680 \begin_inset Flex Code
21681 status collapsed
21682
21683 \begin_layout Plain Layout
21684 0
21685 \end_layout
21686
21687 \end_inset
21688
21689 ,
21690 \begin_inset space \thinspace{}
21691 \end_inset
21692
21693
21694 \begin_inset Flex Code
21695 status collapsed
21696
21697 \begin_layout Plain Layout
21698
21699 \emph on
21700 1
21701 \end_layout
21702
21703 \end_inset
21704
21705 ] Allow spell-checking the contents of this inset.
21706  Default is true.
21707 \end_layout
21708
21709 \begin_layout Subsection
21710 Arguments
21711 \begin_inset CommandInset label
21712 LatexCommand label
21713 name "subsec:Arguments"
21714
21715 \end_inset
21716
21717
21718 \end_layout
21719
21720 \begin_layout Standard
21721 Both paragraph styles and inset layouts allow for 
21722 \emph on
21723 arguments
21724 \emph default
21725  as well as the main content.
21726  This is especially useful for things like section headings and only makes sense with \SpecialChar LaTeX
21727 .
21728  Each (optional or required) argument of a command or environment—
21729 except for the required argument that is associated with the content—
21730 has a separate definition,
21731  where the number specifies the order of the arguments.
21732  The definition must end with 
21733 \begin_inset Flex Code
21734 status collapsed
21735
21736 \begin_layout Plain Layout
21737 EndArgument
21738 \end_layout
21739
21740 \end_inset
21741
21742 .
21743  So a command with two optional arguments looks like:
21744 \end_layout
21745
21746 \begin_layout Quote
21747
21748 \family typewriter
21749 Argument 1
21750 \end_layout
21751
21752 \begin_layout Quote
21753
21754 \family typewriter
21755 ...
21756 \end_layout
21757
21758 \begin_layout Quote
21759
21760 \family typewriter
21761 EndArgument
21762 \end_layout
21763
21764 \begin_layout Quote
21765
21766 \family typewriter
21767 Argument 2
21768 \end_layout
21769
21770 \begin_layout Quote
21771
21772 \family typewriter
21773 ...
21774 \end_layout
21775
21776 \begin_layout Quote
21777
21778 \family typewriter
21779 EndArgument
21780 \end_layout
21781
21782 \begin_layout Standard
21783 Inside the 
21784 \begin_inset Flex Code
21785 status collapsed
21786
21787 \begin_layout Plain Layout
21788 Argument
21789 \end_layout
21790
21791 \end_inset
21792
21793  definition,
21794  the following specifications are possible:
21795 \end_layout
21796
21797 \begin_layout Itemize
21798 \begin_inset Flex Code
21799 status collapsed
21800
21801 \begin_layout Plain Layout
21802 LabelString
21803 \end_layout
21804
21805 \end_inset
21806
21807  
21808 \begin_inset Flex Code
21809 status collapsed
21810
21811 \begin_layout Plain Layout
21812 [string]
21813 \end_layout
21814
21815 \end_inset
21816
21817  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 
21818 \begin_inset Flex Code
21819 status collapsed
21820
21821 \begin_layout Plain Layout
21822 MenuString
21823 \end_layout
21824
21825 \end_inset
21826
21827 ).
21828  For the menu,
21829  you can define an accelerator by appending the respective character to the string,
21830  divided by 
21831 \begin_inset Quotes eld
21832 \end_inset
21833
21834 |
21835 \begin_inset Quotes erd
21836 \end_inset
21837
21838  (e.
21839 \begin_inset space \thinspace{}
21840 \end_inset
21841
21842 g.
21843 \begin_inset space \space{}
21844 \end_inset
21845
21846
21847 \begin_inset Quotes eld
21848 \end_inset
21849
21850
21851 \begin_inset Flex Code
21852 status collapsed
21853
21854 \begin_layout Plain Layout
21855 Short Title|S
21856 \end_layout
21857
21858 \end_inset
21859
21860
21861 \begin_inset Quotes erd
21862 \end_inset
21863
21864 ).
21865 \end_layout
21866
21867 \begin_layout Itemize
21868 \begin_inset Flex Code
21869 status collapsed
21870
21871 \begin_layout Plain Layout
21872 MenuString
21873 \end_layout
21874
21875 \end_inset
21876
21877  
21878 \begin_inset Flex Code
21879 status collapsed
21880
21881 \begin_layout Plain Layout
21882 [string]
21883 \end_layout
21884
21885 \end_inset
21886
21887  A separate string for the menu.
21888  You can define an accelerator by appending the respective character to the string,
21889  divided by 
21890 \begin_inset Quotes eld
21891 \end_inset
21892
21893 |
21894 \begin_inset Quotes erd
21895 \end_inset
21896
21897  (e.
21898 \begin_inset space \thinspace{}
21899 \end_inset
21900
21901 g.
21902 \begin_inset space \space{}
21903 \end_inset
21904
21905
21906 \begin_inset Quotes eld
21907 \end_inset
21908
21909
21910 \begin_inset Flex Code
21911 status collapsed
21912
21913 \begin_layout Plain Layout
21914 Short Title|S
21915 \end_layout
21916
21917 \end_inset
21918
21919
21920 \begin_inset Quotes erd
21921 \end_inset
21922
21923 ).
21924  This specification is optional.
21925  If it is not given the 
21926 \begin_inset Flex Code
21927 status collapsed
21928
21929 \begin_layout Plain Layout
21930 LabelString
21931 \end_layout
21932
21933 \end_inset
21934
21935  will be used instead for the menu.
21936 \end_layout
21937
21938 \begin_layout Itemize
21939 \begin_inset Flex Code
21940 status collapsed
21941
21942 \begin_layout Plain Layout
21943 Tooltip
21944 \end_layout
21945
21946 \end_inset
21947
21948  
21949 \begin_inset Flex Code
21950 status collapsed
21951
21952 \begin_layout Plain Layout
21953 [string]
21954 \end_layout
21955
21956 \end_inset
21957
21958  A longer explanatory text that appears in the tooltip when hovering over the argument inset.
21959 \end_layout
21960
21961 \begin_layout Itemize
21962 \begin_inset Flex Code
21963 status collapsed
21964
21965 \begin_layout Plain Layout
21966 Mandatory
21967 \end_layout
21968
21969 \end_inset
21970
21971  [
21972 \begin_inset Flex Code
21973 status collapsed
21974
21975 \begin_layout Plain Layout
21976
21977 \emph on
21978 0
21979 \end_layout
21980
21981 \end_inset
21982
21983 ,
21984 \begin_inset space \thinspace{}
21985 \end_inset
21986
21987
21988 \begin_inset Flex Code
21989 status collapsed
21990
21991 \begin_layout Plain Layout
21992 1
21993 \end_layout
21994
21995 \end_inset
21996
21997 ] Declare if this is a mandatory (1) or an optional (0) argument.
21998  Mandatory arguments will be output empty if not given,
21999  while optional arguments will not be output at all.
22000  By default,
22001  mandatory arguments are delimited by 
22002 \begin_inset Flex Code
22003 status collapsed
22004
22005 \begin_layout Plain Layout
22006 {...}
22007 \end_layout
22008
22009 \end_inset
22010
22011 ,
22012  while optional arguments are delimited by 
22013 \begin_inset Flex Code
22014 status collapsed
22015
22016 \begin_layout Plain Layout
22017 [...]
22018 \end_layout
22019
22020 \end_inset
22021
22022
22023 \end_layout
22024
22025 \begin_layout Itemize
22026 \begin_inset Flex Code
22027 status collapsed
22028
22029 \begin_layout Plain Layout
22030 NewlineCmd
22031 \end_layout
22032
22033 \end_inset
22034
22035  
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 [string]
22041 \end_layout
22042
22043 \end_inset
22044
22045  Option to define a different command (from the default 
22046 \begin_inset Flex Code
22047 status collapsed
22048
22049 \begin_layout Plain Layout
22050
22051 \backslash
22052
22053 \backslash
22054
22055 \end_layout
22056
22057 \end_inset
22058
22059 ) to be used for line breaks.
22060  The initial backslash must not be specified.
22061 \end_layout
22062
22063 \begin_layout Itemize
22064 \begin_inset Flex Code
22065 status collapsed
22066
22067 \begin_layout Plain Layout
22068 Requires
22069 \end_layout
22070
22071 \end_inset
22072
22073  
22074 \begin_inset Flex Code
22075 status collapsed
22076
22077 \begin_layout Plain Layout
22078 [int=0]
22079 \end_layout
22080
22081 \end_inset
22082
22083  defines another argument or arguments (by their number) which this argument requires to be output if it is itself output.
22084  E.
22085 \begin_inset space \thinspace{}
22086 \end_inset
22087
22088 g.,
22089  in \SpecialChar LaTeX
22090  commands,
22091  optional arguments often require previous optional arguments to be output (at least empty),
22092  as in 
22093 \begin_inset Flex Code
22094 status collapsed
22095
22096 \begin_layout Plain Layout
22097
22098 \backslash
22099 command[][argument]{text}
22100 \end_layout
22101
22102 \end_inset
22103
22104 .
22105  This can be achieved by the statement 
22106 \begin_inset Flex Code
22107 status collapsed
22108
22109 \begin_layout Plain Layout
22110 Requires 1
22111 \end_layout
22112
22113 \end_inset
22114
22115  within 
22116 \begin_inset Flex Code
22117 status collapsed
22118
22119 \begin_layout Plain Layout
22120 Argument 2
22121 \end_layout
22122
22123 \end_inset
22124
22125 .
22126  If multiple arguments are required,
22127  separate them by comma (e.g.,
22128  
22129 \begin_inset Flex Code
22130 status collapsed
22131
22132 \begin_layout Plain Layout
22133 Requires 1,2
22134 \end_layout
22135
22136 \end_inset
22137
22138 ).
22139 \end_layout
22140
22141 \begin_layout Itemize
22142 \begin_inset Flex Code
22143 status collapsed
22144
22145 \begin_layout Plain Layout
22146 LeftDelim
22147 \end_layout
22148
22149 \end_inset
22150
22151  
22152 \begin_inset Flex Code
22153 status collapsed
22154
22155 \begin_layout Plain Layout
22156 [string]
22157 \end_layout
22158
22159 \end_inset
22160
22161  defines a custom left delimiter (instead of 
22162 \begin_inset Flex Code
22163 status collapsed
22164
22165 \begin_layout Plain Layout
22166 {
22167 \end_layout
22168
22169 \end_inset
22170
22171  or 
22172 \begin_inset Flex Code
22173 status collapsed
22174
22175 \begin_layout Plain Layout
22176 [
22177 \end_layout
22178
22179 \end_inset
22180
22181 ).
22182  A line break in the output can be indicated by 
22183 \begin_inset Flex Code
22184 status collapsed
22185
22186 \begin_layout Plain Layout
22187 <br/>
22188 \end_layout
22189
22190 \end_inset
22191
22192 .
22193 \end_layout
22194
22195 \begin_layout Itemize
22196 \begin_inset Flex Code
22197 status collapsed
22198
22199 \begin_layout Plain Layout
22200 RightDelim
22201 \end_layout
22202
22203 \end_inset
22204
22205  
22206 \begin_inset Flex Code
22207 status collapsed
22208
22209 \begin_layout Plain Layout
22210 [string]
22211 \end_layout
22212
22213 \end_inset
22214
22215  defines a custom right delimiter (instead of 
22216 \begin_inset Flex Code
22217 status collapsed
22218
22219 \begin_layout Plain Layout
22220 }
22221 \end_layout
22222
22223 \end_inset
22224
22225  or 
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  A line break in the output can be indicated by 
22237 \begin_inset Flex Code
22238 status collapsed
22239
22240 \begin_layout Plain Layout
22241 <br/>
22242 \end_layout
22243
22244 \end_inset
22245
22246 .
22247 \end_layout
22248
22249 \begin_layout Itemize
22250 \begin_inset Flex Code
22251 status collapsed
22252
22253 \begin_layout Plain Layout
22254 DefaultArg
22255 \end_layout
22256
22257 \end_inset
22258
22259  
22260 \begin_inset Flex Code
22261 status collapsed
22262
22263 \begin_layout Plain Layout
22264 [string]
22265 \end_layout
22266
22267 \end_inset
22268
22269  defines an argument that is inserted if and only if no user-specified arguments were given,
22270  i.
22271 \begin_inset space \thinspace{}
22272 \end_inset
22273
22274 e.
22275 \begin_inset space \space{}
22276 \end_inset
22277
22278 if no argument inset has been inserted (note that also an empty argument inset omits the DefaultArg).
22279  Multiple arguments need to be separated by comma.
22280 \end_layout
22281
22282 \begin_layout Itemize
22283 \begin_inset Flex Code
22284 status collapsed
22285
22286 \begin_layout Plain Layout
22287 PresetArg
22288 \end_layout
22289
22290 \end_inset
22291
22292  
22293 \begin_inset Flex Code
22294 status collapsed
22295
22296 \begin_layout Plain Layout
22297 [string]
22298 \end_layout
22299
22300 \end_inset
22301
22302  defines an argument that is inserted in any case (alone or in addition to user-specified arguments).
22303  Multiple arguments need to be separated by comma.
22304 \end_layout
22305
22306 \begin_layout Itemize
22307 \begin_inset Flex Code
22308 status collapsed
22309
22310 \begin_layout Plain Layout
22311 Font
22312 \end_layout
22313
22314 \end_inset
22315
22316  The font used for the argument content,
22317  see 
22318 \begin_inset CommandInset ref
22319 LatexCommand ref
22320 reference "subsec:Font-description"
22321 nolink "false"
22322
22323 \end_inset
22324
22325 .
22326 \end_layout
22327
22328 \begin_layout Itemize
22329 \begin_inset Flex Code
22330 status collapsed
22331
22332 \begin_layout Plain Layout
22333 FreeSpacing
22334 \end_layout
22335
22336 \end_inset
22337
22338  [
22339 \begin_inset Flex Code
22340 status collapsed
22341
22342 \begin_layout Plain Layout
22343
22344 \emph on
22345 0
22346 \end_layout
22347
22348 \end_inset
22349
22350 ,
22351 \begin_inset space \thinspace{}
22352 \end_inset
22353
22354
22355 \begin_inset Flex Code
22356 status collapsed
22357
22358 \begin_layout Plain Layout
22359 1
22360 \end_layout
22361
22362 \end_inset
22363
22364 ] As with paragraph styles,
22365  see 
22366 \begin_inset CommandInset ref
22367 LatexCommand ref
22368 reference "subsec:Paragraph-Styles"
22369 nolink "false"
22370
22371 \end_inset
22372
22373 .
22374 \end_layout
22375
22376 \begin_layout Itemize
22377 \begin_inset Flex Code
22378 status collapsed
22379
22380 \begin_layout Plain Layout
22381 LabelFont
22382 \end_layout
22383
22384 \end_inset
22385
22386  The font used for the label;
22387  see 
22388 \begin_inset CommandInset ref
22389 LatexCommand ref
22390 reference "subsec:Font-description"
22391 nolink "false"
22392
22393 \end_inset
22394
22395 .
22396 \end_layout
22397
22398 \begin_layout Itemize
22399 \begin_inset Flex Code
22400 status collapsed
22401
22402 \begin_layout Plain Layout
22403 Decoration
22404 \end_layout
22405
22406 \end_inset
22407
22408  [
22409 \begin_inset Flex Code
22410 status collapsed
22411
22412 \begin_layout Plain Layout
22413
22414 \emph on
22415 Classic
22416 \emph default
22417 ,
22418  Minimalistic,
22419  Conglomerate
22420 \end_layout
22421
22422 \end_inset
22423
22424 ] describes the rendering style used for the inset's frame and buttons.
22425 \end_layout
22426
22427 \begin_layout Itemize
22428 \begin_inset Flex Code
22429 status collapsed
22430
22431 \begin_layout Plain Layout
22432 AutoInsert
22433 \end_layout
22434
22435 \end_inset
22436
22437  
22438 \begin_inset Flex Code
22439 status collapsed
22440
22441 \begin_layout Plain Layout
22442 [int=0]
22443 \end_layout
22444
22445 \end_inset
22446
22447  If this is set to 
22448 \begin_inset Flex Code
22449 status collapsed
22450
22451 \begin_layout Plain Layout
22452 1
22453 \end_layout
22454
22455 \end_inset
22456
22457 ,
22458  this argument is automatically inserted when the respective style is selected.
22459 \end_layout
22460
22461 \begin_layout Itemize
22462 \begin_inset Flex Code
22463 status collapsed
22464
22465 \begin_layout Plain Layout
22466 InsertOnNewline
22467 \end_layout
22468
22469 \end_inset
22470
22471  
22472 \begin_inset Flex Code
22473 status collapsed
22474
22475 \begin_layout Plain Layout
22476 [int=0]
22477 \end_layout
22478
22479 \end_inset
22480
22481  If this is set to 
22482 \begin_inset Flex Code
22483 status collapsed
22484
22485 \begin_layout Plain Layout
22486 1
22487 \end_layout
22488
22489 \end_inset
22490
22491 ,
22492  this argument will be inserted on a new line with 
22493 \begin_inset Flex Code
22494 status collapsed
22495
22496 \begin_layout Plain Layout
22497 AutoInsert
22498 \end_layout
22499
22500 \end_inset
22501
22502  (only available within Flex insets).
22503 \end_layout
22504
22505 \begin_layout Itemize
22506 \begin_inset Flex Code
22507 status collapsed
22508
22509 \begin_layout Plain Layout
22510 InsertCotext
22511 \end_layout
22512
22513 \end_inset
22514
22515  
22516 \begin_inset Flex Code
22517 status collapsed
22518
22519 \begin_layout Plain Layout
22520 [int=0]
22521 \end_layout
22522
22523 \end_inset
22524
22525  If this is set to 
22526 \begin_inset Flex Code
22527 status collapsed
22528
22529 \begin_layout Plain Layout
22530 1
22531 \end_layout
22532
22533 \end_inset
22534
22535 ,
22536  this argument will be inserted with a copy of the co-text (either selected text or the whole paragraph) as content.
22537 \end_layout
22538
22539 \begin_layout Itemize
22540 \begin_inset Flex Code
22541 status collapsed
22542
22543 \begin_layout Plain Layout
22544 PassThru
22545 \end_layout
22546
22547 \end_inset
22548
22549  [
22550 \begin_inset Flex Code
22551 status collapsed
22552
22553 \begin_layout Plain Layout
22554
22555 \emph on
22556 inherited
22557 \emph default
22558 ,
22559  true,
22560  false
22561 \end_layout
22562
22563 \end_inset
22564
22565 ] Whether the contents of this argument should be output in raw form,
22566  meaning without special translations that \SpecialChar LaTeX
22567  would require.
22568  By default,
22569  the 
22570 \begin_inset Flex Code
22571 status collapsed
22572
22573 \begin_layout Plain Layout
22574 PassThru
22575 \end_layout
22576
22577 \end_inset
22578
22579  status is inherited by the inset or paragraph layout the argument belongs to,
22580  true and false change the status for the given argument only.
22581 \end_layout
22582
22583 \begin_layout Itemize
22584 \begin_inset Flex Code
22585 status collapsed
22586
22587 \begin_layout Plain Layout
22588 PassThruChars
22589 \end_layout
22590
22591 \end_inset
22592
22593  [
22594 \begin_inset Flex Code
22595 status collapsed
22596
22597 \begin_layout Plain Layout
22598 string of characters
22599 \end_layout
22600
22601 \end_inset
22602
22603 ]
22604 \family typewriter
22605  
22606 \family default
22607 Defines individual characters
22608 \begin_inset Newline linebreak
22609 \end_inset
22610
22611 that should be output in raw form,
22612  meaning without special translations that \SpecialChar LaTeX
22613  would require.
22614  Note that,
22615  contrary to PassThru,
22616  this needs to be explicitly defined for arguments.
22617  That is,
22618  arguments do not inherit PassThruChars from their parent inset or layout.
22619 \end_layout
22620
22621 \begin_layout Itemize
22622 \begin_inset Flex Code
22623 status collapsed
22624
22625 \begin_layout Plain Layout
22626 IsTocCaption
22627 \end_layout
22628
22629 \end_inset
22630
22631  [
22632 \begin_inset Flex Code
22633 status collapsed
22634
22635 \begin_layout Plain Layout
22636
22637 \emph on
22638 0
22639 \end_layout
22640
22641 \end_inset
22642
22643 ,
22644 \begin_inset space \thinspace{}
22645 \end_inset
22646
22647
22648 \begin_inset Flex Code
22649 status collapsed
22650
22651 \begin_layout Plain Layout
22652 1
22653 \end_layout
22654
22655 \end_inset
22656
22657 ] If this is set to 1,
22658  the argument will output its content in the corresponding item in the table of contents.
22659  See AddToToc.
22660 \end_layout
22661
22662 \begin_layout Standard
22663 By default,
22664  the text entered in the \SpecialChar LyX
22665  workarea in the respective layout is the last (mandatory) argument of a command if the 
22666 \begin_inset Flex Code
22667 status collapsed
22668
22669 \begin_layout Plain Layout
22670 LatexType
22671 \end_layout
22672
22673 \end_inset
22674
22675  is 
22676 \begin_inset Flex Code
22677 status collapsed
22678
22679 \begin_layout Plain Layout
22680 Command
22681 \end_layout
22682
22683 \end_inset
22684
22685 .
22686  However,
22687  arguments with the prefix 
22688 \begin_inset Flex Code
22689 status collapsed
22690
22691 \begin_layout Plain Layout
22692 post:
22693 \end_layout
22694
22695 \end_inset
22696
22697  are output after this workarea argument.
22698  Note that post-argument numbering restarts at 1,
22699  so the first argument following the workarea argument is 
22700 \begin_inset Flex Code
22701 status collapsed
22702
22703 \begin_layout Plain Layout
22704 post:1
22705 \end_layout
22706
22707 \end_inset
22708
22709 .
22710  Post-arguments are ignored in any other 
22711 \begin_inset Flex Code
22712 status collapsed
22713
22714 \begin_layout Plain Layout
22715 LatexType
22716 \end_layout
22717
22718 \end_inset
22719
22720  than 
22721 \begin_inset Flex Code
22722 status collapsed
22723
22724 \begin_layout Plain Layout
22725 Command
22726 \end_layout
22727
22728 \end_inset
22729
22730 .
22731 \end_layout
22732
22733 \begin_layout Standard
22734 Arguments for list 
22735 \begin_inset Flex Code
22736 status collapsed
22737
22738 \begin_layout Plain Layout
22739
22740 \backslash
22741 item
22742 \end_layout
22743
22744 \end_inset
22745
22746 s (as in 
22747 \begin_inset Flex Code
22748 status collapsed
22749
22750 \begin_layout Plain Layout
22751
22752 \backslash
22753 item[foo]
22754 \end_layout
22755
22756 \end_inset
22757
22758 ) have the prefix 
22759 \begin_inset Flex Code
22760 status collapsed
22761
22762 \begin_layout Plain Layout
22763 item:
22764 \end_layout
22765
22766 \end_inset
22767
22768  followed by the number (e.
22769 \begin_inset space \thinspace{}
22770 \end_inset
22771
22772 g.
22773 \begin_inset space \space{}
22774 \end_inset
22775
22776
22777 \begin_inset Flex Code
22778 status collapsed
22779
22780 \begin_layout Plain Layout
22781 Argument item:1
22782 \end_layout
22783
22784 \end_inset
22785
22786 ).
22787 \end_layout
22788
22789 \begin_layout Standard
22790 Finally,
22791  there is a special argument type with the prefix 
22792 \begin_inset Flex Code
22793 status collapsed
22794
22795 \begin_layout Plain Layout
22796 listpreamble:
22797 \end_layout
22798
22799 \end_inset
22800
22801 .
22802  It is not really an argument,
22803  but uses the argument interface (thus,
22804  the prefix is also followed by a number,
22805  e.
22806 \begin_inset space \thinspace{}
22807 \end_inset
22808
22809 g.
22810  
22811 \begin_inset Flex Code
22812 status collapsed
22813
22814 \begin_layout Plain Layout
22815 Argument listpreamble:1
22816 \end_layout
22817
22818 \end_inset
22819
22820 ).
22821  As the name implies,
22822  it is targeted at lists such as 
22823 \family sans
22824 Itemize
22825 \family default
22826 ,
22827  
22828 \family sans
22829 Enumerate
22830 \family default
22831 ,
22832  
22833 \family sans
22834 Description
22835 \family default
22836 ,
22837  or 
22838 \family sans
22839 Bibliography
22840 \family default
22841 .
22842  Its content will be output at the list start,
22843  before the first 
22844 \begin_inset Flex Code
22845 status collapsed
22846
22847 \begin_layout Plain Layout
22848
22849 \backslash
22850 item
22851 \end_layout
22852
22853 \end_inset
22854
22855 ,
22856  on an own line (a place that is otherwise not accessible in \SpecialChar LyX
22857 ).
22858  This way,
22859  users can insert redefinitions (of lengths etc.) to individual lists.
22860  By default,
22861  these arguments do not have a delimiter.
22862 \end_layout
22863
22864 \begin_layout Subsection
22865 Counters
22866 \begin_inset CommandInset label
22867 LatexCommand label
22868 name "subsec:Counters"
22869
22870 \end_inset
22871
22872
22873 \end_layout
22874
22875 \begin_layout Standard
22876 It is necessary to define the counters (
22877 \begin_inset Flex Noun
22878 status collapsed
22879
22880 \begin_layout Plain Layout
22881 chapter
22882 \end_layout
22883
22884 \end_inset
22885
22886 ,
22887  
22888 \begin_inset Flex Noun
22889 status collapsed
22890
22891 \begin_layout Plain Layout
22892 figure
22893 \end_layout
22894
22895 \end_inset
22896
22897 ,
22898  \SpecialChar ldots
22899 ) in the text class itself.
22900  The standard counters are defined in the file 
22901 \begin_inset Flex Code
22902 status collapsed
22903
22904 \begin_layout Plain Layout
22905 stdcounters.inc
22906 \end_layout
22907
22908 \end_inset
22909
22910 ,
22911  so you may have to do no more than add
22912 \end_layout
22913
22914 \begin_layout LyX-Code
22915 Input stdcounters.inc
22916 \end_layout
22917
22918 \begin_layout Standard
22919 to your layout file to get them to work.
22920  But if you want to define custom counters,
22921  then you can do so.
22922  The counter declaration must begin with:
22923 \end_layout
22924
22925 \begin_layout LyX-Code
22926 Counter CounterName
22927 \end_layout
22928
22929 \begin_layout Standard
22930 where of course `
22931 \begin_inset Flex Code
22932 status collapsed
22933
22934 \begin_layout Plain Layout
22935 CounterName
22936 \end_layout
22937
22938 \end_inset
22939
22940 ' is replaced by the name of the counter.
22941  And it must end with 
22942 \begin_inset Quotes eld
22943 \end_inset
22944
22945
22946 \begin_inset Flex Code
22947 status collapsed
22948
22949 \begin_layout Plain Layout
22950 End
22951 \end_layout
22952
22953 \end_inset
22954
22955
22956 \begin_inset Quotes erd
22957 \end_inset
22958
22959 .
22960  The following parameters can also be used:
22961 \end_layout
22962
22963 \begin_layout Description
22964 \begin_inset Flex Code
22965 status collapsed
22966
22967 \begin_layout Plain Layout
22968 InitialValue
22969 \end_layout
22970
22971 \end_inset
22972
22973  [
22974 \begin_inset Flex Code
22975 status collapsed
22976
22977 \begin_layout Plain Layout
22978 int=1
22979 \end_layout
22980
22981 \end_inset
22982
22983 ] Sets the initial value for the counter,
22984  to which it will be reset whenever that happens.
22985  Normally,
22986  one will want the default,
22987  1.
22988 \end_layout
22989
22990 \begin_layout Description
22991 \begin_inset Flex Code
22992 status collapsed
22993
22994 \begin_layout Plain Layout
22995 LabelString
22996 \end_layout
22997
22998 \end_inset
22999
23000  [
23001 \begin_inset Flex Code
23002 status collapsed
23003
23004 \begin_layout Plain Layout
23005 string
23006 \end_layout
23007
23008 \end_inset
23009
23010 =
23011 \begin_inset Quotes erd
23012 \end_inset
23013
23014
23015 \begin_inset Quotes erd
23016 \end_inset
23017
23018 ] When defined,
23019  this string defines how the counter is displayed.
23020  Setting this value sets 
23021 \begin_inset Flex Code
23022 status collapsed
23023
23024 \begin_layout Plain Layout
23025 LabelStringAppendix
23026 \end_layout
23027
23028 \end_inset
23029
23030  to the same value.
23031  The following special constructs can be used in the string:
23032 \end_layout
23033
23034 \begin_deeper
23035 \begin_layout Itemize
23036 \begin_inset Flex Code
23037 status collapsed
23038
23039 \begin_layout Plain Layout
23040
23041 \backslash
23042 thecounter
23043 \end_layout
23044
23045 \end_inset
23046
23047  will be replaced by the expansion of the 
23048 \begin_inset Flex Code
23049 status collapsed
23050
23051 \begin_layout Plain Layout
23052 LabelString
23053 \end_layout
23054
23055 \end_inset
23056
23057  (or 
23058 \begin_inset Flex Code
23059 status collapsed
23060
23061 \begin_layout Plain Layout
23062 LabelStringAppendix
23063 \end_layout
23064
23065 \end_inset
23066
23067 ) of the counter 
23068 \begin_inset Flex Code
23069 status collapsed
23070
23071 \begin_layout Plain Layout
23072 counter
23073 \end_layout
23074
23075 \end_inset
23076
23077 .
23078  
23079 \end_layout
23080
23081 \begin_layout Itemize
23082 counter values can be expressed using \SpecialChar LaTeX
23083 -like macros
23084 \begin_inset Newline newline
23085 \end_inset
23086
23087
23088 \begin_inset Flex Code
23089 status collapsed
23090
23091 \begin_layout Plain Layout
23092
23093 \backslash
23094
23095 \emph on
23096 numbertype
23097 \emph default
23098 {
23099 \emph on
23100 counter
23101 \emph default
23102 }
23103 \end_layout
23104
23105 \end_inset
23106
23107 ,
23108  where 
23109 \begin_inset Flex Code
23110 status collapsed
23111
23112 \begin_layout Plain Layout
23113
23114 \emph on
23115 numbertype
23116 \end_layout
23117
23118 \end_inset
23119
23120  can be:
23121 \begin_inset Foot
23122 status collapsed
23123
23124 \begin_layout Plain Layout
23125
23126 \family roman
23127 \series medium
23128 \shape up
23129 \size normal
23130 \emph off
23131 \bar no
23132 \noun off
23133 \color none
23134 Actually,
23135  the situation is a bit more complicated:
23136  any
23137 \family default
23138 \series default
23139 \shape default
23140 \emph default
23141 \bar default
23142  
23143 \size default
23144 \emph on
23145 \noun default
23146 \color inherit
23147 numbertype
23148 \family roman
23149 \series medium
23150 \shape up
23151 \size normal
23152 \emph off
23153 \bar no
23154 \noun off
23155  other than those described below will produce arabic numerals.
23156  It would not be surprising to see this change in the future.
23157 \end_layout
23158
23159 \end_inset
23160
23161  
23162 \begin_inset Flex Code
23163 status collapsed
23164
23165 \begin_layout Plain Layout
23166 arabic
23167 \end_layout
23168
23169 \end_inset
23170
23171 :
23172  1,
23173  2,
23174  3,\SpecialChar ldots
23175 ;
23176  
23177 \begin_inset Flex Code
23178 status collapsed
23179
23180 \begin_layout Plain Layout
23181 alph
23182 \end_layout
23183
23184 \end_inset
23185
23186  for lower-case letters:
23187  a,
23188  b,
23189  c,
23190  \SpecialChar ldots
23191 ;
23192  
23193 \begin_inset Flex Code
23194 status collapsed
23195
23196 \begin_layout Plain Layout
23197 Alph
23198 \end_layout
23199
23200 \end_inset
23201
23202  for upper-case letters:
23203  A,
23204  B,
23205  C,
23206  \SpecialChar ldots
23207 ;
23208  
23209 \begin_inset Flex Code
23210 status collapsed
23211
23212 \begin_layout Plain Layout
23213 roman
23214 \end_layout
23215
23216 \end_inset
23217
23218  for lower-case roman numerals:
23219  i,
23220  ii,
23221  iii,
23222  \SpecialChar ldots
23223 ;
23224  
23225 \begin_inset Flex Code
23226 status collapsed
23227
23228 \begin_layout Plain Layout
23229 Roman
23230 \end_layout
23231
23232 \end_inset
23233
23234  for upper-case roman numerals:
23235  I,
23236  II,
23237  III\SpecialChar ldots
23238 ;
23239  
23240 \begin_inset Flex Code
23241 status collapsed
23242
23243 \begin_layout Plain Layout
23244 hebrew
23245 \end_layout
23246
23247 \end_inset
23248
23249  for hebrew numerals.
23250 \end_layout
23251
23252 \end_deeper
23253 \begin_layout Standard
23254 If LabelString is not defined,
23255  a default value is constructed as follows:
23256  if the counter has a parent counter 
23257 \begin_inset Flex Code
23258 status collapsed
23259
23260 \begin_layout Plain Layout
23261 parent
23262 \end_layout
23263
23264 \end_inset
23265
23266  (defined via 
23267 \begin_inset Flex Code
23268 status collapsed
23269
23270 \begin_layout Plain Layout
23271 Within
23272 \end_layout
23273
23274 \end_inset
23275
23276 ),
23277  the string
23278 \begin_inset Newline newline
23279 \end_inset
23280
23281
23282 \begin_inset Flex Code
23283 status collapsed
23284
23285 \begin_layout Plain Layout
23286
23287 \backslash
23288 theparent.
23289 \backslash
23290 arabic{counter}
23291 \end_layout
23292
23293 \end_inset
23294
23295  is used;
23296  otherwise the string 
23297 \begin_inset Flex Code
23298 status collapsed
23299
23300 \begin_layout Plain Layout
23301
23302 \backslash
23303 arabic{counter}
23304 \end_layout
23305
23306 \end_inset
23307
23308  is used.
23309 \end_layout
23310
23311 \begin_layout Description
23312 \begin_inset Flex Code
23313 status collapsed
23314
23315 \begin_layout Plain Layout
23316 LabelStringAppendix
23317 \end_layout
23318
23319 \end_inset
23320
23321  [
23322 \begin_inset Flex Code
23323 status collapsed
23324
23325 \begin_layout Plain Layout
23326 string
23327 \end_layout
23328
23329 \end_inset
23330
23331
23332 \begin_inset Quotes eld
23333 \end_inset
23334
23335
23336 \begin_inset Quotes erd
23337 \end_inset
23338
23339 ] Same as 
23340 \begin_inset Flex Code
23341 status collapsed
23342
23343 \begin_layout Plain Layout
23344 LabelString
23345 \end_layout
23346
23347 \end_inset
23348
23349 ,
23350  but for use in the Appendix.
23351 \end_layout
23352
23353 \begin_layout Description
23354 \begin_inset Flex Code
23355 status open
23356
23357 \begin_layout Plain Layout
23358 LaTeXName
23359 \end_layout
23360
23361 \end_inset
23362
23363  [
23364 \begin_inset Flex Code
23365 status open
23366
23367 \begin_layout Plain Layout
23368 string
23369 \end_layout
23370
23371 \end_inset
23372
23373  = 
23374 \begin_inset Quotes eld
23375 \end_inset
23376
23377
23378 \begin_inset Quotes erd
23379 \end_inset
23380
23381 ] The counter name as used in \SpecialChar LaTeX
23382 .
23383  (e.g.,
23384  in \SpecialChar LyX
23385 ,
23386  there is a counter named `theorem',
23387  but it is output to \SpecialChar LaTeX
23388  as `thm'.)
23389 \end_layout
23390
23391 \begin_layout Description
23392 \begin_inset Flex Code
23393 status collapsed
23394
23395 \begin_layout Plain Layout
23396 PrettyFormat
23397 \end_layout
23398
23399 \end_inset
23400
23401  [
23402 \begin_inset Flex Code
23403 status collapsed
23404
23405 \begin_layout Plain Layout
23406 string
23407 \end_layout
23408
23409 \end_inset
23410
23411 =
23412 \begin_inset Quotes erd
23413 \end_inset
23414
23415
23416 \begin_inset Quotes erd
23417 \end_inset
23418
23419 ] A format for use with formatted references to this counter.
23420  For example,
23421  one might want to have references to section numbers appear as 
23422 \begin_inset Quotes eld
23423 \end_inset
23424
23425 Section 2.4
23426 \begin_inset Quotes erd
23427 \end_inset
23428
23429 .
23430  The string may contain 
23431 \begin_inset Quotes eld
23432 \end_inset
23433
23434 ##
23435 \begin_inset Quotes erd
23436 \end_inset
23437
23438  or a counter specification as in 
23439 \begin_inset Flex Code
23440 status open
23441
23442 \begin_layout Plain Layout
23443 LabelString
23444 \end_layout
23445
23446 \end_inset
23447
23448 .
23449  The former will be replaced by the counter number itself.
23450  So,
23451  for sections,
23452  it would be:
23453  Section ##,
23454  or perhaps:
23455  
23456 \begin_inset Flex Code
23457 status open
23458
23459 \begin_layout Plain Layout
23460
23461 \backslash
23462 S
23463 \backslash
23464 arabic{section}
23465 \end_layout
23466
23467 \end_inset
23468
23469  (which might render as §2.7).
23470 \end_layout
23471
23472 \begin_layout Description
23473 \begin_inset Flex Code
23474 status collapsed
23475
23476 \begin_layout Plain Layout
23477 RefFormat
23478 \end_layout
23479
23480 \end_inset
23481
23482  [
23483 \begin_inset Flex Code
23484 status collapsed
23485
23486 \begin_layout Plain Layout
23487 string
23488 \end_layout
23489
23490 \end_inset
23491
23492 ,
23493  
23494 \begin_inset Flex Code
23495 status collapsed
23496
23497 \begin_layout Plain Layout
23498 string
23499 \end_layout
23500
23501 \end_inset
23502
23503 ] For use with `formatted references',
23504  specifically when a single counter is used with multiple sorts of styles.
23505  For example,
23506  the 
23507 \begin_inset Flex Code
23508 status open
23509
23510 \begin_layout Plain Layout
23511 theorem
23512 \end_layout
23513
23514 \end_inset
23515
23516  counter is often used for all sorts of theorem-like environments:
23517  Theorem,
23518  Lemma,
23519  etc.
23520  The first argument gives a prefix used in the labels (e.g.,
23521  
23522 \begin_inset Quotes eld
23523 \end_inset
23524
23525 thm
23526 \begin_inset Quotes erd
23527 \end_inset
23528
23529  or 
23530 \begin_inset Quotes eld
23531 \end_inset
23532
23533 lem
23534 \begin_inset Quotes erd
23535 \end_inset
23536
23537 ),
23538  and the second a formatting string,
23539  as for 
23540 \begin_inset Flex Code
23541 status open
23542
23543 \begin_layout Plain Layout
23544 LabelString
23545 \end_layout
23546
23547 \end_inset
23548
23549  or 
23550 \begin_inset Flex Code
23551 status open
23552
23553 \begin_layout Plain Layout
23554 PrettyFormat
23555 \end_layout
23556
23557 \end_inset
23558
23559 .
23560  If this is not given,
23561  then 
23562 \begin_inset Flex Code
23563 status open
23564
23565 \begin_layout Plain Layout
23566 PrettyFormat
23567 \end_layout
23568
23569 \end_inset
23570
23571  is used.
23572 \end_layout
23573
23574 \begin_layout Description
23575 \begin_inset Flex Code
23576 status collapsed
23577
23578 \begin_layout Plain Layout
23579 Within
23580 \end_layout
23581
23582 \end_inset
23583
23584  [
23585 \begin_inset Flex Code
23586 status collapsed
23587
23588 \begin_layout Plain Layout
23589 string
23590 \end_layout
23591
23592 \end_inset
23593
23594 =
23595 \begin_inset Quotes erd
23596 \end_inset
23597
23598
23599 \begin_inset Quotes erd
23600 \end_inset
23601
23602 ] If this is set to the name of another counter,
23603  the present counter will be reset every time the other one is increased.
23604  For example,
23605  
23606 \begin_inset Flex Code
23607 status collapsed
23608
23609 \begin_layout Plain Layout
23610 subsection
23611 \end_layout
23612
23613 \end_inset
23614
23615  is numbered inside 
23616 \begin_inset Flex Code
23617 status collapsed
23618
23619 \begin_layout Plain Layout
23620 section
23621 \end_layout
23622
23623 \end_inset
23624
23625 .
23626 \end_layout
23627
23628 \begin_layout Subsection
23629 Font description
23630 \begin_inset CommandInset label
23631 LatexCommand label
23632 name "subsec:Font-description"
23633
23634 \end_inset
23635
23636
23637 \end_layout
23638
23639 \begin_layout Standard
23640 A font description looks like this:
23641 \end_layout
23642
23643 \begin_layout LyX-Code
23644 Font 
23645 \family roman
23646 \emph on
23647 or
23648 \family default
23649 \emph default
23650  LabelFont
23651 \emph on
23652  
23653 \family roman
23654 or
23655 \family default
23656 \emph default
23657  DefaultFont
23658 \end_layout
23659
23660 \begin_layout LyX-Code
23661  ...
23662 \end_layout
23663
23664 \begin_layout LyX-Code
23665 EndFont
23666 \end_layout
23667
23668 \begin_layout Standard
23669 The following commands are available:
23670 \end_layout
23671
23672 \begin_layout Description
23673 \begin_inset Flex Code
23674 status collapsed
23675
23676 \begin_layout Plain Layout
23677 Color
23678 \end_layout
23679
23680 \end_inset
23681
23682  [
23683 \begin_inset Flex Code
23684 status collapsed
23685
23686 \begin_layout Plain Layout
23687 string
23688 \end_layout
23689
23690 \end_inset
23691
23692 ] See appendix
23693 \begin_inset space ~
23694 \end_inset
23695
23696
23697 \begin_inset CommandInset ref
23698 LatexCommand ref
23699 reference "chap:Names-of-colors"
23700 plural "false"
23701 caps "false"
23702 noprefix "false"
23703 nolink "false"
23704
23705 \end_inset
23706
23707  for valid arguments.
23708 \end_layout
23709
23710 \begin_layout Description
23711 \begin_inset Flex Code
23712 status collapsed
23713
23714 \begin_layout Plain Layout
23715 Family
23716 \end_layout
23717
23718 \end_inset
23719
23720  [
23721 \begin_inset Flex Code
23722 status collapsed
23723
23724 \begin_layout Plain Layout
23725
23726 \emph on
23727 Roman
23728 \end_layout
23729
23730 \end_inset
23731
23732 ,
23733  
23734 \begin_inset Flex Code
23735 status collapsed
23736
23737 \begin_layout Plain Layout
23738 Sans
23739 \end_layout
23740
23741 \end_inset
23742
23743 ,
23744  
23745 \begin_inset Flex Code
23746 status collapsed
23747
23748 \begin_layout Plain Layout
23749 Typewriter
23750 \end_layout
23751
23752 \end_inset
23753
23754 ]
23755 \end_layout
23756
23757 \begin_layout Description
23758 \begin_inset Flex Code
23759 status collapsed
23760
23761 \begin_layout Plain Layout
23762 Misc
23763 \end_layout
23764
23765 \end_inset
23766
23767  [
23768 \begin_inset Flex Code
23769 status collapsed
23770
23771 \begin_layout Plain Layout
23772 string
23773 \end_layout
23774
23775 \end_inset
23776
23777 ] Valid arguments are:
23778  
23779 \begin_inset Flex Code
23780 status collapsed
23781
23782 \begin_layout Plain Layout
23783 emph
23784 \end_layout
23785
23786 \end_inset
23787
23788 ,
23789  
23790 \begin_inset Flex Code
23791 status collapsed
23792
23793 \begin_layout Plain Layout
23794 noun
23795 \end_layout
23796
23797 \end_inset
23798
23799 ,
23800  
23801 \begin_inset Flex Code
23802 status collapsed
23803
23804 \begin_layout Plain Layout
23805 strikeout
23806 \end_layout
23807
23808 \end_inset
23809
23810 ,
23811  
23812 \begin_inset Flex Code
23813 status collapsed
23814
23815 \begin_layout Plain Layout
23816 underbar
23817 \end_layout
23818
23819 \end_inset
23820
23821 ,
23822  
23823 \begin_inset Flex Code
23824 status collapsed
23825
23826 \begin_layout Plain Layout
23827 uuline
23828 \end_layout
23829
23830 \end_inset
23831
23832 ,
23833  
23834 \begin_inset Flex Code
23835 status collapsed
23836
23837 \begin_layout Plain Layout
23838 uwave
23839 \end_layout
23840
23841 \end_inset
23842
23843 ,
23844  
23845 \begin_inset Flex Code
23846 status collapsed
23847
23848 \begin_layout Plain Layout
23849 no_emph
23850 \end_layout
23851
23852 \end_inset
23853
23854 ,
23855  
23856 \begin_inset Flex Code
23857 status collapsed
23858
23859 \begin_layout Plain Layout
23860 no_noun
23861 \end_layout
23862
23863 \end_inset
23864
23865 ,
23866  
23867 \begin_inset Flex Code
23868 status collapsed
23869
23870 \begin_layout Plain Layout
23871 no_strikeout
23872 \end_layout
23873
23874 \end_inset
23875
23876 ,
23877  
23878 \begin_inset Flex Code
23879 status collapsed
23880
23881 \begin_layout Plain Layout
23882 no_bar
23883 \end_layout
23884
23885 \end_inset
23886
23887 ,
23888  
23889 \begin_inset Flex Code
23890 status collapsed
23891
23892 \begin_layout Plain Layout
23893 no_uuline
23894 \end_layout
23895
23896 \end_inset
23897
23898  and 
23899 \begin_inset Flex Code
23900 status collapsed
23901
23902 \begin_layout Plain Layout
23903 no_uwave
23904 \end_layout
23905
23906 \end_inset
23907
23908 .
23909  Each of these turns on or off the corresponding attribute.
23910  For example,
23911  
23912 \begin_inset Flex Code
23913 status collapsed
23914
23915 \begin_layout Plain Layout
23916 emph
23917 \end_layout
23918
23919 \end_inset
23920
23921  turns on emphasis,
23922  and 
23923 \begin_inset Flex Code
23924 status collapsed
23925
23926 \begin_layout Plain Layout
23927 no_emph
23928 \end_layout
23929
23930 \end_inset
23931
23932  turns it off.
23933  
23934 \begin_inset Newline newline
23935 \end_inset
23936
23937 If the latter seems puzzling,
23938  remember that the font settings for the present context are generally inherited from the surrounding context.
23939  So 
23940 \begin_inset Flex Code
23941 status collapsed
23942
23943 \begin_layout Plain Layout
23944 no_emph
23945 \end_layout
23946
23947 \end_inset
23948
23949  would turn off the emphasis that was anyway in effect,
23950  say,
23951  in a theorem environment.
23952 \end_layout
23953
23954 \begin_layout Description
23955 \begin_inset Flex Code
23956 status collapsed
23957
23958 \begin_layout Plain Layout
23959 Series
23960 \end_layout
23961
23962 \end_inset
23963
23964  [
23965 \begin_inset Flex Code
23966 status collapsed
23967
23968 \begin_layout Plain Layout
23969
23970 \emph on
23971 Medium
23972 \end_layout
23973
23974 \end_inset
23975
23976 ,
23977  
23978 \begin_inset Flex Code
23979 status collapsed
23980
23981 \begin_layout Plain Layout
23982 Bold
23983 \end_layout
23984
23985 \end_inset
23986
23987
23988 \end_layout
23989
23990 \begin_layout Description
23991 \begin_inset Flex Code
23992 status collapsed
23993
23994 \begin_layout Plain Layout
23995 Shape
23996 \end_layout
23997
23998 \end_inset
23999
24000  [
24001 \begin_inset Flex Code
24002 status collapsed
24003
24004 \begin_layout Plain Layout
24005
24006 \emph on
24007 Up
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 Italic
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 SmallCaps
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 Slanted
24041 \end_layout
24042
24043 \end_inset
24044
24045
24046 \end_layout
24047
24048 \begin_layout Description
24049 \begin_inset Flex Code
24050 status collapsed
24051
24052 \begin_layout Plain Layout
24053 Size
24054 \end_layout
24055
24056 \end_inset
24057
24058  [
24059 \begin_inset Flex Code
24060 status collapsed
24061
24062 \begin_layout Plain Layout
24063 tiny
24064 \end_layout
24065
24066 \end_inset
24067
24068 ,
24069  
24070 \begin_inset Flex Code
24071 status collapsed
24072
24073 \begin_layout Plain Layout
24074 small
24075 \end_layout
24076
24077 \end_inset
24078
24079 ,
24080  
24081 \begin_inset Flex Code
24082 status collapsed
24083
24084 \begin_layout Plain Layout
24085
24086 \emph on
24087 normal
24088 \end_layout
24089
24090 \end_inset
24091
24092 ,
24093  
24094 \begin_inset Flex Code
24095 status collapsed
24096
24097 \begin_layout Plain Layout
24098 large
24099 \end_layout
24100
24101 \end_inset
24102
24103 ,
24104  
24105 \begin_inset Flex Code
24106 status collapsed
24107
24108 \begin_layout Plain Layout
24109 larger
24110 \end_layout
24111
24112 \end_inset
24113
24114 ,
24115  
24116 \begin_inset Flex Code
24117 status collapsed
24118
24119 \begin_layout Plain Layout
24120 largest
24121 \end_layout
24122
24123 \end_inset
24124
24125 ,
24126  
24127 \begin_inset Flex Code
24128 status collapsed
24129
24130 \begin_layout Plain Layout
24131 huge
24132 \end_layout
24133
24134 \end_inset
24135
24136 ,
24137  
24138 \begin_inset Flex Code
24139 status collapsed
24140
24141 \begin_layout Plain Layout
24142 giant
24143 \end_layout
24144
24145 \end_inset
24146
24147 ]
24148 \end_layout
24149
24150 \begin_layout Subsection
24151 \begin_inset CommandInset label
24152 LatexCommand label
24153 name "subsec:Citation-engine-description"
24154
24155 \end_inset
24156
24157 Cite engine description
24158 \end_layout
24159
24160 \begin_layout Standard
24161 The 
24162 \begin_inset Flex Code
24163 status collapsed
24164
24165 \begin_layout Plain Layout
24166 CiteEngine
24167 \end_layout
24168
24169 \end_inset
24170
24171  blocks,
24172  as used mainly in cite engine files (see 
24173 \begin_inset CommandInset ref
24174 LatexCommand ref
24175 reference "subsec:Cite-Engine-Files"
24176 plural "false"
24177 caps "false"
24178 noprefix "false"
24179 nolink "false"
24180
24181 \end_inset
24182
24183 ),
24184  define the citation commands provided by a specific 
24185 \begin_inset Quotes eld
24186 \end_inset
24187
24188 cite engine
24189 \begin_inset Quotes erd
24190 \end_inset
24191
24192 .
24193  A cite engine,
24194  in \SpecialChar LyX
24195  terms,
24196  is way specific way to format citations,
24197  using numbers,
24198  author names and/or years.
24199  Currently,
24200  \SpecialChar LyX
24201  supports three such engine types,
24202  namely:
24203 \end_layout
24204
24205 \begin_layout Enumerate
24206 \begin_inset Flex Code
24207 status collapsed
24208
24209 \begin_layout Plain Layout
24210 default
24211 \end_layout
24212
24213 \end_inset
24214
24215 :
24216  the default Bib\SpecialChar TeX
24217  way to format citations,
24218  a simple numeric style (e.
24219 \begin_inset space \thinspace{}
24220 \end_inset
24221
24222 g.,
24223  
24224 \begin_inset Quotes eld
24225 \end_inset
24226
24227 [1]
24228 \begin_inset Quotes erd
24229 \end_inset
24230
24231 )
24232 \end_layout
24233
24234 \begin_layout Enumerate
24235 \begin_inset Flex Code
24236 status collapsed
24237
24238 \begin_layout Plain Layout
24239 authoryear
24240 \end_layout
24241
24242 \end_inset
24243
24244 :
24245  Harvard-styled citations using author names and publication year (e.
24246 \begin_inset space \thinspace{}
24247 \end_inset
24248
24249 g.,
24250  
24251 \begin_inset Quotes eld
24252 \end_inset
24253
24254 Smith and Miller (2017b)
24255 \begin_inset Quotes erd
24256 \end_inset
24257
24258 )
24259 \end_layout
24260
24261 \begin_layout Enumerate
24262 \begin_inset Flex Code
24263 status collapsed
24264
24265 \begin_layout Plain Layout
24266 numerical
24267 \end_layout
24268
24269 \end_inset
24270
24271 :
24272  extended numerical citations that also allow for author or title next to the number (e.
24273 \begin_inset space \thinspace{}
24274 \end_inset
24275
24276 g.,
24277  
24278 \begin_inset Quotes eld
24279 \end_inset
24280
24281 Smith and Miller [1]
24282 \begin_inset Quotes erd
24283 \end_inset
24284
24285 )
24286 \end_layout
24287
24288 \begin_layout Standard
24289 \begin_inset Flex Code
24290 status collapsed
24291
24292 \begin_layout Plain Layout
24293 CiteEngine
24294 \end_layout
24295
24296 \end_inset
24297
24298  blocks look like this:
24299 \end_layout
24300
24301 \begin_layout LyX-Code
24302 CiteEngine default
24303 \end_layout
24304
24305 \begin_layout LyX-Code
24306  cite
24307 \end_layout
24308
24309 \begin_layout LyX-Code
24310  Citep*[][]
24311 \end_layout
24312
24313 \begin_layout LyX-Code
24314  citeyearpar[][]=parencite*
24315 \end_layout
24316
24317 \begin_layout LyX-Code
24318  ...
24319 \end_layout
24320
24321 \begin_layout LyX-Code
24322 End
24323 \end_layout
24324
24325 \begin_layout Standard
24326 The tag following 
24327 \begin_inset Flex Code
24328 status collapsed
24329
24330 \begin_layout Plain Layout
24331 CiteEngine
24332 \end_layout
24333
24334 \end_inset
24335
24336  denotes the engine.
24337  The individual lines respectively define a cite command or cite command paradigm supported by this engine.
24338  The line can be as simple as a cite command that is used both to name the respective \SpecialChar LyX
24339  command and the \SpecialChar LaTeX
24340  output or more complex in order to differentiate things.
24341  The full syntax is:
24342 \end_layout
24343
24344 \begin_layout LyX-Code
24345 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
24346 \end_layout
24347
24348 \begin_layout Itemize
24349 \begin_inset Flex Code
24350 status collapsed
24351
24352 \begin_layout Plain Layout
24353 LyXName
24354 \end_layout
24355
24356 \end_inset
24357
24358 :
24359  The name as used in the 
24360 \begin_inset Flex Code
24361 status collapsed
24362
24363 \begin_layout Plain Layout
24364 *.lyx
24365 \end_layout
24366
24367 \end_inset
24368
24369  file.
24370 \end_layout
24371
24372 \begin_deeper
24373 \begin_layout Standard
24374 For portability reasons,
24375  we try to use the same name for same-formatted commands in different cite packages (thus many names stem from natbib,
24376  and thus we need to differentiate a 
24377 \begin_inset Flex Code
24378 status collapsed
24379
24380 \begin_layout Plain Layout
24381 latexcmd
24382 \end_layout
24383
24384 \end_inset
24385
24386  sometimes,
24387  if the \SpecialChar LaTeX
24388  command names differ).
24389 \end_layout
24390
24391 \end_deeper
24392 \begin_layout Itemize
24393 \begin_inset Flex Code
24394 status collapsed
24395
24396 \begin_layout Plain Layout
24397 alias
24398 \end_layout
24399
24400 \end_inset
24401
24402 :
24403  a (comma-separated) list of commands that fall back to the given 
24404 \begin_inset Flex Code
24405 status collapsed
24406
24407 \begin_layout Plain Layout
24408 LyXName
24409 \end_layout
24410
24411 \end_inset
24412
24413  in the current engine.
24414  This eases the switch of citation packages and engines.
24415  The 
24416 \begin_inset Flex Code
24417 status collapsed
24418
24419 \begin_layout Plain Layout
24420 alias
24421 \end_layout
24422
24423 \end_inset
24424
24425  can be compared to 
24426 \begin_inset Flex Code
24427 status collapsed
24428
24429 \begin_layout Plain Layout
24430 ObsoletedBy
24431 \end_layout
24432
24433 \end_inset
24434
24435  in layout definitions.
24436 \end_layout
24437
24438 \begin_layout Itemize
24439 \begin_inset Flex Code
24440 status collapsed
24441
24442 \begin_layout Plain Layout
24443 latexcmd
24444 \end_layout
24445
24446 \end_inset
24447
24448 :
24449  The actual \SpecialChar LaTeX
24450  command that is output.
24451  
24452 \end_layout
24453
24454 \begin_layout Standard
24455 \begin_inset Flex Code
24456 status collapsed
24457
24458 \begin_layout Plain Layout
24459 Alias
24460 \end_layout
24461
24462 \end_inset
24463
24464  and 
24465 \begin_inset Flex Code
24466 status collapsed
24467
24468 \begin_layout Plain Layout
24469 latexcmd
24470 \end_layout
24471
24472 \end_inset
24473
24474  are optional.
24475  If no 
24476 \begin_inset Flex Code
24477 status collapsed
24478
24479 \begin_layout Plain Layout
24480 latexcmd
24481 \end_layout
24482
24483 \end_inset
24484
24485  is given,
24486  the 
24487 \begin_inset Flex Code
24488 status collapsed
24489
24490 \begin_layout Plain Layout
24491 LyXName
24492 \end_layout
24493
24494 \end_inset
24495
24496  will be output to \SpecialChar LaTeX
24497 .
24498 \end_layout
24499
24500 \begin_layout Standard
24501 Note further:
24502 \end_layout
24503
24504 \begin_layout Itemize
24505 Capitalization indicates that the command also has a capitalized form (
24506 \begin_inset Flex Code
24507 status collapsed
24508
24509 \begin_layout Plain Layout
24510
24511 \backslash
24512 Latexcmd
24513 \end_layout
24514
24515 \end_inset
24516
24517  vs.
24518  
24519 \begin_inset Flex Code
24520 status collapsed
24521
24522 \begin_layout Plain Layout
24523
24524 \backslash
24525 latexcmd
24526 \end_layout
24527
24528 \end_inset
24529
24530 ).
24531  These usually enforce up-casing of name prefixes (
24532 \emph on
24533 von Goethe
24534 \emph default
24535  
24536 \begin_inset Formula $\Rightarrow$
24537 \end_inset
24538
24539  
24540 \emph on
24541 Von Goethe
24542 \emph default
24543 ).
24544 \end_layout
24545
24546 \begin_layout Itemize
24547 Brackets 
24548 \begin_inset Flex Code
24549 status collapsed
24550
24551 \begin_layout Plain Layout
24552 []
24553 \end_layout
24554
24555 \end_inset
24556
24557  indicate the number of optional arguments (there can be 0–2).
24558 \end_layout
24559
24560 \begin_layout Itemize
24561 A star 
24562 \begin_inset Flex Code
24563 status collapsed
24564
24565 \begin_layout Plain Layout
24566 *
24567 \end_layout
24568
24569 \end_inset
24570
24571  indicates there is a starred version of the command (
24572 \begin_inset Flex Code
24573 status collapsed
24574
24575 \begin_layout Plain Layout
24576
24577 \backslash
24578 latexcmd*
24579 \end_layout
24580
24581 \end_inset
24582
24583  vs.
24584  
24585 \begin_inset Flex Code
24586 status collapsed
24587
24588 \begin_layout Plain Layout
24589
24590 \backslash
24591 latexcmd
24592 \end_layout
24593
24594 \end_inset
24595
24596 ).
24597  
24598 \end_layout
24599
24600 \begin_deeper
24601 \begin_layout Standard
24602 By default,
24603  the starred version means:
24604  Output all authors even if it should be shortened with 
24605 \begin_inset Quotes eld
24606 \end_inset
24607
24608 et al.
24609 \begin_inset Quotes erd
24610 \end_inset
24611
24612  due to the 
24613 \begin_inset Flex Code
24614 status collapsed
24615
24616 \begin_layout Plain Layout
24617 MaxCiteNames
24618 \end_layout
24619
24620 \end_inset
24621
24622  threshold.
24623 \end_layout
24624
24625 \begin_layout Standard
24626 If the star has a different meaning for a given command,
24627  it can be specified in angle brackets:
24628  
24629 \begin_inset Flex Code
24630 status collapsed
24631
24632 \begin_layout Plain Layout
24633 <!_stardesc!_stardesctooltip>
24634 \end_layout
24635
24636 \end_inset
24637
24638 .
24639  Maximal two translatable macro keywords,
24640  marked by the prefix 
24641 \begin_inset Flex Code
24642 status collapsed
24643
24644 \begin_layout Plain Layout
24645 !_
24646 \end_layout
24647
24648 \end_inset
24649
24650 ,
24651  can be given.
24652  The first points to the string that replaces the 
24653 \begin_inset Quotes eld
24654 \end_inset
24655
24656 Full aut&hor list
24657 \begin_inset Quotes erd
24658 \end_inset
24659
24660  checkbox label in the citation dialog,
24661  the second one to an optional tool tip for this checkbox.
24662  
24663 \end_layout
24664
24665 \begin_layout Standard
24666 Note that these two macros have to be defined in a 
24667 \begin_inset Flex Code
24668 status collapsed
24669
24670 \begin_layout Plain Layout
24671 CiteFormat
24672 \end_layout
24673
24674 \end_inset
24675
24676  (see next section),
24677  dropping the 
24678 \begin_inset Flex Code
24679 status collapsed
24680
24681 \begin_layout Plain Layout
24682 !
24683 \end_layout
24684
24685 \end_inset
24686
24687  from the prefix,
24688  like this:
24689  
24690 \end_layout
24691
24692 \begin_layout LyX-Code
24693 _stardesc Sta&rred command label
24694 \end_layout
24695
24696 \begin_layout LyX-Code
24697 _stardesctooltip Tooltip for the starred command checkbox.
24698 \end_layout
24699
24700 \end_deeper
24701 \begin_layout Itemize
24702 A dollar sign 
24703 \begin_inset Flex Code
24704 status collapsed
24705
24706 \begin_layout Plain Layout
24707 $
24708 \end_layout
24709
24710 \end_inset
24711
24712  indicates that this command features 
24713 \begin_inset Quotes eld
24714 \end_inset
24715
24716 qualified citation lists
24717 \begin_inset Quotes erd
24718 \end_inset
24719
24720 .
24721  This is a 
24722 \family sans
24723 Biblatex
24724 \family default
24725 -specific feature for multi-reference citations where an individual pre- and postnote can be given to each reference in the list.
24726  Please refer to the 
24727 \family sans
24728 Biblatex
24729 \family default
24730  manual for details.
24731 \end_layout
24732
24733 \begin_layout Standard
24734 If you want to add a cite command to a cite engine (e.
24735 \begin_inset space \thinspace{}
24736 \end_inset
24737
24738 g.,
24739  add a specific command provided by a class),
24740  you can use 
24741 \begin_inset Flex Code
24742 status collapsed
24743
24744 \begin_layout Plain Layout
24745 AddToCiteEngine <engine type> \SpecialChar ldots
24746  End
24747 \end_layout
24748
24749 \end_inset
24750
24751 .
24752  Note that only cite commands that do not exist yet are added.
24753 \end_layout
24754
24755 \begin_layout Subsection
24756 \begin_inset CommandInset label
24757 LatexCommand label
24758 name "subsec:Citation-format-description"
24759
24760 \end_inset
24761
24762 Cite format description
24763 \end_layout
24764
24765 \begin_layout Standard
24766 The 
24767 \begin_inset Flex Code
24768 status collapsed
24769
24770 \begin_layout Plain Layout
24771 CiteFormat
24772 \end_layout
24773
24774 \end_inset
24775
24776  blocks are used to describe how bibliographic information should be displayed,
24777  both within \SpecialChar LyX
24778  itself (in the citation dialog and in tooltips,
24779  for example) and in XHTML output.
24780  Such a block might look like this:
24781 \end_layout
24782
24783 \begin_layout LyX-Code
24784 CiteFormat
24785 \end_layout
24786
24787 \begin_layout LyX-Code
24788  article ...
24789 \end_layout
24790
24791 \begin_layout LyX-Code
24792  book ...
24793 \end_layout
24794
24795 \begin_layout LyX-Code
24796 End
24797 \end_layout
24798
24799 \begin_layout Standard
24800 or
24801 \end_layout
24802
24803 \begin_layout LyX-Code
24804 CiteFormat
24805 \end_layout
24806
24807 \begin_layout LyX-Code
24808  cite ...
24809 \end_layout
24810
24811 \begin_layout LyX-Code
24812  citet*[][] ...
24813 \end_layout
24814
24815 \begin_layout LyX-Code
24816 End
24817 \end_layout
24818
24819 \begin_layout Standard
24820 In the first case,
24821  the individual lines define how the bibliographic information associated with an article or book,
24822  respectively,
24823  is to be displayed,
24824  and such a definition can be given for any 
24825 \begin_inset Quotes els
24826 \end_inset
24827
24828 entry type
24829 \begin_inset Quotes ers
24830 \end_inset
24831
24832  that might be present in a Bib\SpecialChar TeX
24833  file.
24834  \SpecialChar LyX
24835  defines a default format in the source code that will be used if no specific definition has been given.
24836  \SpecialChar LyX
24837  predefines several formats in the file 
24838 \begin_inset Flex Code
24839 status collapsed
24840
24841 \begin_layout Plain Layout
24842 stdciteformats.inc
24843 \end_layout
24844
24845 \end_inset
24846
24847 ,
24848  which is included in most of \SpecialChar LyX
24849 's document classes.
24850 \end_layout
24851
24852 \begin_layout Standard
24853 In the second case,
24854  the lines define how a specific citation command (in the example 
24855 \begin_inset Flex Code
24856 status collapsed
24857
24858 \begin_layout Plain Layout
24859
24860 \backslash
24861 cite
24862 \end_layout
24863
24864 \end_inset
24865
24866 ,
24867  
24868 \begin_inset Flex Code
24869 status collapsed
24870
24871 \begin_layout Plain Layout
24872
24873 \backslash
24874 citet
24875 \end_layout
24876
24877 \end_inset
24878
24879 ) is to be displayed on the citation inset label,
24880  in the citation dialog,
24881  menu or XHTML output.
24882  \SpecialChar LyX
24883  defines such formats for the citation style variants it supports via 
24884 \family sans
24885 Document\SpecialChar menuseparator
24886 Setting\SpecialChar menuseparator
24887 Bibliography\SpecialChar ldots
24888
24889 \family default
24890  in specific 
24891 \begin_inset Flex Code
24892 status collapsed
24893
24894 \begin_layout Plain Layout
24895 *.citeengine
24896 \end_layout
24897
24898 \end_inset
24899
24900  files that are shipped with \SpecialChar LyX
24901  (see 
24902 \begin_inset CommandInset ref
24903 LatexCommand ref
24904 reference "subsec:Cite-Engine-Files"
24905 plural "false"
24906 caps "false"
24907 noprefix "false"
24908 nolink "false"
24909
24910 \end_inset
24911
24912 ).
24913 \end_layout
24914
24915 \begin_layout Standard
24916 The definitions use a simple language that allows Bib\SpecialChar TeX
24917  keys to be replaced with their values.
24918  Keys should be enclosed in 
24919 \begin_inset Flex Code
24920 status collapsed
24921
24922 \begin_layout Plain Layout
24923 %
24924 \end_layout
24925
24926 \end_inset
24927
24928  signs,
24929  e.g.:
24930  
24931 \begin_inset Flex Code
24932 status collapsed
24933
24934 \begin_layout Plain Layout
24935 %author%
24936 \end_layout
24937
24938 \end_inset
24939
24940 .
24941  So a simple definition might look like this:
24942 \end_layout
24943
24944 \begin_layout LyX-Code
24945 misc %author%,
24946  
24947 \begin_inset Quotes eld
24948 \end_inset
24949
24950 %title%
24951 \begin_inset Quotes erd
24952 \end_inset
24953
24954 .
24955 \end_layout
24956
24957 \begin_layout Standard
24958 This would print the author,
24959  followed by a comma,
24960  followed by the title,
24961  in quotes,
24962  followed by a period.
24963 \end_layout
24964
24965 \begin_layout Standard
24966 Of course,
24967  sometimes you may want to print a key only if it exists.
24968  This can be done by using a conditional construction,
24969  such as:
24970  
24971 \begin_inset Flex Code
24972 status collapsed
24973
24974 \begin_layout Plain Layout
24975 {%volume%[[vol.
24976 \begin_inset space ~
24977 \end_inset
24978
24979 %volume%]]}
24980 \end_layout
24981
24982 \end_inset
24983
24984 .
24985  This says:
24986  If the 
24987 \begin_inset Flex Code
24988 status collapsed
24989
24990 \begin_layout Plain Layout
24991 volume
24992 \end_layout
24993
24994 \end_inset
24995
24996  key exists,
24997  then print 
24998 \begin_inset Quotes eld
24999 \end_inset
25000
25001 vol.
25002 \begin_inset space ~
25003 \end_inset
25004
25005
25006 \begin_inset Quotes erd
25007 \end_inset
25008
25009  followed by the volume key.
25010  It is also possible to have an else clause in the conditional,
25011  such as:
25012 \begin_inset Newline newline
25013 \end_inset
25014
25015
25016 \begin_inset Flex Code
25017 status collapsed
25018
25019 \begin_layout Plain Layout
25020 {%author%[[%author%]][[%editor%,
25021  ed.]]}
25022 \end_layout
25023
25024 \end_inset
25025
25026 .
25027 \begin_inset Newline newline
25028 \end_inset
25029
25030 Here,
25031  the 
25032 \begin_inset Flex Code
25033 status collapsed
25034
25035 \begin_layout Plain Layout
25036 author
25037 \end_layout
25038
25039 \end_inset
25040
25041  key is printed if it exists;
25042  otherwise,
25043  the editor key is printed,
25044  followed by 
25045 \begin_inset Quotes eld
25046 \end_inset
25047
25048 ,
25049 \begin_inset space ~
25050 \end_inset
25051
25052 ed.
25053 \begin_inset Quotes erd
25054 \end_inset
25055
25056  Note that the key is again enclosed in 
25057 \begin_inset Flex Code
25058 status collapsed
25059
25060 \begin_layout Plain Layout
25061 %
25062 \end_layout
25063
25064 \end_inset
25065
25066  signs;
25067  the entire conditional is enclosed in braces;
25068  and the if and else clauses are enclosed in double brackets,
25069  
25070 \begin_inset Quotes eld
25071 \end_inset
25072
25073
25074 \begin_inset Flex Code
25075 status collapsed
25076
25077 \begin_layout Plain Layout
25078 [[
25079 \end_layout
25080
25081 \end_inset
25082
25083
25084 \begin_inset Quotes eld
25085 \end_inset
25086
25087  and 
25088 \begin_inset Quotes eld
25089 \end_inset
25090
25091
25092 \begin_inset Flex Code
25093 status collapsed
25094
25095 \begin_layout Plain Layout
25096 ]]
25097 \end_layout
25098
25099 \end_inset
25100
25101
25102 \begin_inset Quotes erd
25103 \end_inset
25104
25105 .
25106  There must be no space between any of these.
25107 \end_layout
25108
25109 \begin_layout Standard
25110 Next to the entry keys,
25111  there are some special keys that can be used for these conditionals:
25112 \end_layout
25113
25114 \begin_layout Itemize
25115 \begin_inset Flex Code
25116 status collapsed
25117
25118 \begin_layout Plain Layout
25119 {%dialog%[[true]][[false]]}
25120 \end_layout
25121
25122 \end_inset
25123
25124 :
25125  process the 
25126 \begin_inset Quotes eld
25127 \end_inset
25128
25129 true
25130 \begin_inset Quotes erd
25131 \end_inset
25132
25133  part for dialogs and menus,
25134  the 
25135 \begin_inset Quotes eld
25136 \end_inset
25137
25138 false
25139 \begin_inset Quotes erd
25140 \end_inset
25141
25142  part for other contexts (workarea,
25143  export)
25144 \end_layout
25145
25146 \begin_layout Itemize
25147 \begin_inset Flex Code
25148 status collapsed
25149
25150 \begin_layout Plain Layout
25151 {%export%[[true]][[false]]}
25152 \end_layout
25153
25154 \end_inset
25155
25156 :
25157  process the 
25158 \begin_inset Quotes eld
25159 \end_inset
25160
25161 true
25162 \begin_inset Quotes erd
25163 \end_inset
25164
25165  part for export and menus,
25166  the 
25167 \begin_inset Quotes eld
25168 \end_inset
25169
25170 false
25171 \begin_inset Quotes erd
25172 \end_inset
25173
25174  part for other contexts (workarea,
25175  dialog)
25176 \end_layout
25177
25178 \begin_layout Itemize
25179 \begin_inset Flex Code
25180 status collapsed
25181
25182 \begin_layout Plain Layout
25183 {%next%[[true]]}
25184 \end_layout
25185
25186 \end_inset
25187
25188 :
25189  process the 
25190 \begin_inset Quotes eld
25191 \end_inset
25192
25193 true
25194 \begin_inset Quotes erd
25195 \end_inset
25196
25197  part if another item follows (e.
25198 \begin_inset space \thinspace{}
25199 \end_inset
25200
25201 g.,
25202  in a citation with multiple keys)
25203 \end_layout
25204
25205 \begin_layout Itemize
25206 \begin_inset Flex Code
25207 status collapsed
25208
25209 \begin_layout Plain Layout
25210 {%second%[[true]][[false]]}
25211 \end_layout
25212
25213 \end_inset
25214
25215 :
25216  process the 
25217 \begin_inset Quotes eld
25218 \end_inset
25219
25220 true
25221 \begin_inset Quotes erd
25222 \end_inset
25223
25224  if this is the second of multiple items,
25225  else the 
25226 \begin_inset Quotes eld
25227 \end_inset
25228
25229 false
25230 \begin_inset Quotes erd
25231 \end_inset
25232
25233  part
25234 \end_layout
25235
25236 \begin_layout Itemize
25237 \begin_inset Flex Code
25238 status collapsed
25239
25240 \begin_layout Plain Layout
25241 {%ifstar%[[true]][[false]]}
25242 \end_layout
25243
25244 \end_inset
25245
25246 :
25247  process the 
25248 \begin_inset Quotes eld
25249 \end_inset
25250
25251 true
25252 \begin_inset Quotes erd
25253 \end_inset
25254
25255  part for starred citation commands (such as 
25256 \begin_inset Flex Code
25257 status collapsed
25258
25259 \begin_layout Plain Layout
25260
25261 \backslash
25262 cite*
25263 \end_layout
25264
25265 \end_inset
25266
25267 ),
25268  the false part for unstarred
25269 \end_layout
25270
25271 \begin_layout Itemize
25272 \begin_inset Flex Code
25273 status collapsed
25274
25275 \begin_layout Plain Layout
25276 {%ifentrytype:<type>%[[true]][[false]]}
25277 \end_layout
25278
25279 \end_inset
25280
25281 :
25282  process the 
25283 \begin_inset Quotes eld
25284 \end_inset
25285
25286 true
25287 \begin_inset Quotes erd
25288 \end_inset
25289
25290  if the current entry type matches 
25291 \begin_inset Flex Code
25292 status collapsed
25293
25294 \begin_layout Plain Layout
25295 <type>
25296 \end_layout
25297
25298 \end_inset
25299
25300 ,
25301  else the false part (e.g.,
25302  in a citation definition:
25303  
25304 \begin_inset Flex Code
25305 status collapsed
25306
25307 \begin_layout Plain Layout
25308 {%ifentrytype:book%[[this is a book]][[this is no book]]}
25309 \end_layout
25310
25311 \end_inset
25312
25313 )
25314 \end_layout
25315
25316 \begin_layout Itemize
25317 \begin_inset Flex Code
25318 status collapsed
25319
25320 \begin_layout Plain Layout
25321 {%ifmultiple:<authortype>%[[true]][[false]]}
25322 \end_layout
25323
25324 \end_inset
25325
25326 :
25327  process the 
25328 \begin_inset Quotes eld
25329 \end_inset
25330
25331 true
25332 \begin_inset Quotes erd
25333 \end_inset
25334
25335  if the current author type (author,
25336  editor etc.) has multiple authors,
25337  else the false part (e.g.,
25338  in a bibliography definition:
25339  
25340 \begin_inset Flex Code
25341 status collapsed
25342
25343 \begin_layout Plain Layout
25344 {%ifmultiple:editor%[[eds.]][[ed.]]}
25345 \end_layout
25346
25347 \end_inset
25348
25349 )
25350 \end_layout
25351
25352 \begin_layout Itemize
25353 \begin_inset Flex Code
25354 status collapsed
25355
25356 \begin_layout Plain Layout
25357 {%ifqualified%[[true]][[false]]}
25358 \end_layout
25359
25360 \end_inset
25361
25362 :
25363  process the 
25364 \begin_inset Quotes eld
25365 \end_inset
25366
25367 true
25368 \begin_inset Quotes erd
25369 \end_inset
25370
25371  part if the current citation is a qualified citation list (a specific 
25372 \family sans
25373 Biblatex
25374 \family default
25375  format for multi-reference citations),
25376  the false part if this is not the case.
25377 \end_layout
25378
25379 \begin_layout Standard
25380 We said that 
25381 \begin_inset Flex Code
25382 status collapsed
25383
25384 \begin_layout Plain Layout
25385 %author%
25386 \end_layout
25387
25388 \end_inset
25389
25390  prints the author key as it is recorded in the bibliography file.
25391  This might not be what you want,
25392  since it will result in a string such as 
25393 \begin_inset Quotes eld
25394 \end_inset
25395
25396 Miller,
25397  Peter and Smith,
25398  Mary and White,
25399  Jane
25400 \begin_inset Quotes erd
25401 \end_inset
25402
25403  (since 
25404 \begin_inset Quotes eld
25405 \end_inset
25406
25407 and
25408 \begin_inset Quotes erd
25409 \end_inset
25410
25411  is used by Bib\SpecialChar TeX
25412  to delimit authors).
25413  \SpecialChar LyX
25414  therefore provides some methods to get properly formatted name lists (which will also get translated).
25415  The following keys are provided:
25416 \end_layout
25417
25418 \begin_layout Enumerate
25419 For name lists with pre- and surname,
25420  suitable for the main authors/editors of a bibliography item.
25421  The 
25422 \begin_inset Flex Code
25423 status collapsed
25424
25425 \begin_layout Plain Layout
25426 <nametype>
25427 \end_layout
25428
25429 \end_inset
25430
25431  part denotes the kind of list that is requested (e.g.
25432  
25433 \begin_inset Flex Code
25434 status collapsed
25435
25436 \begin_layout Plain Layout
25437 <nametype:author>
25438 \end_layout
25439
25440 \end_inset
25441
25442 ):
25443 \end_layout
25444
25445 \begin_deeper
25446 \begin_layout Itemize
25447 \begin_inset Flex Code
25448 status collapsed
25449
25450 \begin_layout Plain Layout
25451 %abbrvnames:<nametype>%
25452 \end_layout
25453
25454 \end_inset
25455
25456 :
25457  Provides a name list which is abbreviated (with 
25458 \begin_inset Quotes eld
25459 \end_inset
25460
25461 et al.
25462 \begin_inset Quotes erd
25463 \end_inset
25464
25465 ) when 
25466 \begin_inset Flex Code
25467 status collapsed
25468
25469 \begin_layout Plain Layout
25470 MaxCiteNames
25471 \end_layout
25472
25473 \end_inset
25474
25475  is reached.
25476 \end_layout
25477
25478 \begin_layout Itemize
25479 \begin_inset Flex Code
25480 status collapsed
25481
25482 \begin_layout Plain Layout
25483 %fullnames:<nametype>%
25484 \end_layout
25485
25486 \end_inset
25487
25488 :
25489  Provides a full name list (never abbreviated with 
25490 \begin_inset Quotes eld
25491 \end_inset
25492
25493 et al.
25494 \begin_inset Quotes erd
25495 \end_inset
25496
25497 ).
25498 \end_layout
25499
25500 \begin_layout Itemize
25501 \begin_inset Flex Code
25502 status collapsed
25503
25504 \begin_layout Plain Layout
25505 %forceabbrvnames:<nametype>%
25506 \end_layout
25507
25508 \end_inset
25509
25510 :
25511  Provides a name list which is always abbreviated (with 
25512 \begin_inset Quotes eld
25513 \end_inset
25514
25515 et al.
25516 \begin_inset Quotes erd
25517 \end_inset
25518
25519 ) irrespective of 
25520 \begin_inset Flex Code
25521 status collapsed
25522
25523 \begin_layout Plain Layout
25524 MaxCiteNames
25525 \end_layout
25526
25527 \end_inset
25528
25529 .
25530 \end_layout
25531
25532 \end_deeper
25533 \begin_layout Enumerate
25534 Alternative name lists with pre- and surname,
25535  if the order of pre- and surname inside the bibliography item differs (as in:
25536  
25537 \begin_inset Quotes eld
25538 \end_inset
25539
25540 Miller,
25541  John:
25542  Some text,
25543  in:
25544  Mary Smith,
25545  ed.:
25546  A volume
25547 \begin_inset Quotes erd
25548 \end_inset
25549
25550 ):
25551 \end_layout
25552
25553 \begin_deeper
25554 \begin_layout Itemize
25555 \begin_inset Flex Code
25556 status collapsed
25557
25558 \begin_layout Plain Layout
25559 %abbrvbynames:<nametype>%
25560 \end_layout
25561
25562 \end_inset
25563
25564 :
25565  Provides a name list which is abbreviated (with 
25566 \begin_inset Quotes eld
25567 \end_inset
25568
25569 et al.
25570 \begin_inset Quotes erd
25571 \end_inset
25572
25573 ) when 
25574 \begin_inset Flex Code
25575 status collapsed
25576
25577 \begin_layout Plain Layout
25578 MaxCiteNames
25579 \end_layout
25580
25581 \end_inset
25582
25583  is reached.
25584 \end_layout
25585
25586 \begin_layout Itemize
25587 \begin_inset Flex Code
25588 status collapsed
25589
25590 \begin_layout Plain Layout
25591 %fullbynames:<nametype>%
25592 \end_layout
25593
25594 \end_inset
25595
25596 :
25597  Provides a full name list (never abbreviated with 
25598 \begin_inset Quotes eld
25599 \end_inset
25600
25601 et al.
25602 \begin_inset Quotes erd
25603 \end_inset
25604
25605 ).
25606 \end_layout
25607
25608 \begin_layout Itemize
25609 \begin_inset Flex Code
25610 status collapsed
25611
25612 \begin_layout Plain Layout
25613 %forceabbrvbynames:<nametype>%
25614 \end_layout
25615
25616 \end_inset
25617
25618 :
25619  Provides a name list which is always abbreviated (with 
25620 \begin_inset Quotes eld
25621 \end_inset
25622
25623 et al.
25624 \begin_inset Quotes erd
25625 \end_inset
25626
25627 ) irrespective of 
25628 \begin_inset Flex Code
25629 status collapsed
25630
25631 \begin_layout Plain Layout
25632 MaxCiteNames
25633 \end_layout
25634
25635 \end_inset
25636
25637 .
25638 \end_layout
25639
25640 \end_deeper
25641 \begin_layout Enumerate
25642 And finally name lists which consist of family names only,
25643  as used in author-year citation labels.
25644  These do not take a 
25645 \begin_inset Flex Code
25646 status collapsed
25647
25648 \begin_layout Plain Layout
25649 <nametype>
25650 \end_layout
25651
25652 \end_inset
25653
25654  part,
25655  but always return either an author list or,
25656  if this does not exist,
25657  an editor list (as common in author-year labels):
25658 \end_layout
25659
25660 \begin_deeper
25661 \begin_layout Itemize
25662 \begin_inset Flex Code
25663 status collapsed
25664
25665 \begin_layout Plain Layout
25666 %abbrvciteauthor%
25667 \end_layout
25668
25669 \end_inset
25670
25671 :
25672  Provides a name list which is abbreviated (with 
25673 \begin_inset Quotes eld
25674 \end_inset
25675
25676 et al.
25677 \begin_inset Quotes erd
25678 \end_inset
25679
25680 ) when 
25681 \begin_inset Flex Code
25682 status collapsed
25683
25684 \begin_layout Plain Layout
25685 MaxCiteNames
25686 \end_layout
25687
25688 \end_inset
25689
25690  is reached.
25691 \end_layout
25692
25693 \begin_layout Itemize
25694 \begin_inset Flex Code
25695 status collapsed
25696
25697 \begin_layout Plain Layout
25698 %fullciteauthor%
25699 \end_layout
25700
25701 \end_inset
25702
25703 :
25704  Provides a full name list (never abbreviated with 
25705 \begin_inset Quotes eld
25706 \end_inset
25707
25708 et al.
25709 \begin_inset Quotes erd
25710 \end_inset
25711
25712 ).
25713 \end_layout
25714
25715 \begin_layout Itemize
25716 \begin_inset Flex Code
25717 status collapsed
25718
25719 \begin_layout Plain Layout
25720 %forceabbrvciteauthor%
25721 \end_layout
25722
25723 \end_inset
25724
25725 :
25726  Provides a name list which is always abbreviated (with 
25727 \begin_inset Quotes eld
25728 \end_inset
25729
25730 et al.
25731 \begin_inset Quotes erd
25732 \end_inset
25733
25734 ) irrespective of 
25735 \begin_inset Flex Code
25736 status collapsed
25737
25738 \begin_layout Plain Layout
25739 MaxCiteNames
25740 \end_layout
25741
25742 \end_inset
25743
25744 .
25745 \end_layout
25746
25747 \end_deeper
25748 \begin_layout Standard
25749 The order of pre- and surname in the former two lists can be adjusted by these macros:
25750 \end_layout
25751
25752 \begin_layout Itemize
25753 \begin_inset Flex Code
25754 status collapsed
25755
25756 \begin_layout Plain Layout
25757 !firstnameform %surname%,
25758  %prename%
25759 \end_layout
25760
25761 \end_inset
25762
25763  (first author in lists of type 1)
25764 \end_layout
25765
25766 \begin_layout Itemize
25767 \begin_inset Flex Code
25768 status collapsed
25769
25770 \begin_layout Plain Layout
25771 !othernameform %surname%,
25772  %prename%
25773 \end_layout
25774
25775 \end_inset
25776
25777  (other authors in lists of type 1)
25778 \end_layout
25779
25780 \begin_layout Itemize
25781 \begin_inset Flex Code
25782 status collapsed
25783
25784 \begin_layout Plain Layout
25785 !firstbynameform %prename% %surname%
25786 \end_layout
25787
25788 \end_inset
25789
25790  (first author in lists of type 2)
25791 \end_layout
25792
25793 \begin_layout Itemize
25794 \begin_inset Flex Code
25795 status collapsed
25796
25797 \begin_layout Plain Layout
25798 !otherbynameform %prename% %surname%
25799 \end_layout
25800
25801 \end_inset
25802
25803  (other authors in lists of type 2)
25804 \end_layout
25805
25806 \begin_layout Standard
25807 This allows you to configure namings like 
25808 \begin_inset Quotes eld
25809 \end_inset
25810
25811 Miller,
25812  Peter and Mary Smith:
25813  \SpecialChar ldots
25814 ,
25815  in:
25816  John Doe and Pat Green,
25817  eds.:\SpecialChar ldots
25818
25819 \begin_inset Quotes erd
25820 \end_inset
25821
25822 .
25823 \end_layout
25824
25825 \begin_layout Standard
25826 There is one other piece of syntax available in definitions,
25827  which looks like this:
25828  
25829 \begin_inset Flex Code
25830 status collapsed
25831
25832 \begin_layout Plain Layout
25833 {!<i>!}
25834 \end_layout
25835
25836 \end_inset
25837
25838 .
25839  This defines a piece of formatting information that is to be used when creating 
25840 \begin_inset Quotes eld
25841 \end_inset
25842
25843 rich text
25844 \begin_inset Quotes erd
25845 \end_inset
25846
25847 .
25848  Obviously,
25849  we do not want to output HTML tags when writing plain text,
25850  so they should be wrapped in 
25851 \begin_inset Quotes eld
25852 \end_inset
25853
25854 {!
25855 \begin_inset Quotes erd
25856 \end_inset
25857
25858  and 
25859 \begin_inset Quotes eld
25860 \end_inset
25861
25862 !}
25863 \begin_inset Quotes erd
25864 \end_inset
25865
25866 .
25867 \end_layout
25868
25869 \begin_layout Standard
25870 Two special sorts of definitions are also possible in a 
25871 \begin_inset Flex Code
25872 status collapsed
25873
25874 \begin_layout Plain Layout
25875 CiteFormat
25876 \end_layout
25877
25878 \end_inset
25879
25880  block.
25881  An example of the first would be:
25882 \end_layout
25883
25884 \begin_layout LyX-Code
25885 !quotetitle 
25886 \begin_inset Quotes eld
25887 \end_inset
25888
25889 %title%
25890 \begin_inset Quotes erd
25891 \end_inset
25892
25893
25894 \end_layout
25895
25896 \begin_layout Standard
25897 This is an abbreviation,
25898  or macro,
25899  and it can be used by treating it as if it were a key:
25900  
25901 \begin_inset Flex Code
25902 status collapsed
25903
25904 \begin_layout Plain Layout
25905 %!quotetitle%
25906 \end_layout
25907
25908 \end_inset
25909
25910 .
25911  \SpecialChar LyX
25912  will treat 
25913 \begin_inset Flex Code
25914 status collapsed
25915
25916 \begin_layout Plain Layout
25917 %!quotetitle%
25918 \end_layout
25919
25920 \end_inset
25921
25922  exactly as it would treat its definition.
25923  So,
25924  let us issue the obvious 
25925 \emph on
25926 warning
25927 \emph default
25928 .
25929  Do not do this:
25930 \end_layout
25931
25932 \begin_layout LyX-Code
25933 !funfun %funfun%
25934 \end_layout
25935
25936 \begin_layout Standard
25937 or anything like it.
25938  \SpecialChar LyX
25939  shouldn't go into an infinite loop,
25940  but it may go into a long one before it gives up.
25941 \end_layout
25942
25943 \begin_layout Standard
25944 The second sort of special definition might look like this:
25945 \end_layout
25946
25947 \begin_layout LyX-Code
25948 B_pptext pp.
25949 \end_layout
25950
25951 \begin_layout Standard
25952 This defines a translatable piece of text,
25953  which allows relevant parts of the bibliography or citation to be translated.
25954  It can be included in a definition by treating it as a key:
25955  
25956 \begin_inset Flex Code
25957 status collapsed
25958
25959 \begin_layout Plain Layout
25960 %B_pptext%
25961 \end_layout
25962
25963 \end_inset
25964
25965 .
25966  Note that there are two different translation paths:
25967  All definitions starting with 
25968 \begin_inset Flex Code
25969 status collapsed
25970
25971 \begin_layout Plain Layout
25972 B_
25973 \end_layout
25974
25975 \end_inset
25976
25977 ,
25978  such as in the example above,
25979  will be translated to the currently active buffer language (so the translation will match the generated document).
25980  All definitions starting with underscore only will be translated to the GUI language.
25981  This is the proper translation for strings that only occur in the dialogs or on buttons,
25982  such as this one:
25983 \end_layout
25984
25985 \begin_layout LyX-Code
25986 _addtobib Add to bibliography only.
25987 \end_layout
25988
25989 \begin_layout Standard
25990 Several of these translatable strings are predefined in 
25991 \begin_inset Flex Code
25992 status collapsed
25993
25994 \begin_layout Plain Layout
25995 stdciteformats.inc
25996 \end_layout
25997
25998 \end_inset
25999
26000  and the diverse 
26001 \begin_inset Flex Code
26002 status collapsed
26003
26004 \begin_layout Plain Layout
26005 *.citeengine
26006 \end_layout
26007
26008 \end_inset
26009
26010  files.
26011  Note that these are not macros,
26012  in the sense just defined.
26013  They will not be expanded.
26014 \end_layout
26015
26016 \begin_layout Standard
26017 So here then is an example that uses several of these features:
26018 \begin_inset VSpace defskip
26019 \end_inset
26020
26021
26022 \end_layout
26023
26024 \begin_layout Standard
26025 \noindent
26026
26027 \family sans
26028 !authoredit {%author%[[%author%,
26029  ]][[{%editor%[[%editor%,
26030  %B_edtext%,
26031  ]]}]]}
26032 \end_layout
26033
26034 \begin_layout Standard
26035 \begin_inset VSpace defskip
26036 \end_inset
26037
26038 This defines a macro that prints the author,
26039  followed by a comma,
26040  if the 
26041 \begin_inset Flex Code
26042 status collapsed
26043
26044 \begin_layout Plain Layout
26045 author
26046 \end_layout
26047
26048 \end_inset
26049
26050  key is defined,
26051  or else prints the name of the editor,
26052  followed by the 
26053 \begin_inset Flex Code
26054 status collapsed
26055
26056 \begin_layout Plain Layout
26057 B_edtext
26058 \end_layout
26059
26060 \end_inset
26061
26062  or its translation (it is by default 
26063 \begin_inset Quotes eld
26064 \end_inset
26065
26066 ed.
26067 \begin_inset Quotes erd
26068 \end_inset
26069
26070 ),
26071  if the 
26072 \begin_inset Flex Code
26073 status collapsed
26074
26075 \begin_layout Plain Layout
26076 editor
26077 \end_layout
26078
26079 \end_inset
26080
26081  key is defined.
26082  Note that this is in fact defined in 
26083 \begin_inset Flex Code
26084 status collapsed
26085
26086 \begin_layout Plain Layout
26087 stdciteformats.inc
26088 \end_layout
26089
26090 \end_inset
26091
26092 ,
26093  so you can use it in your own definitions,
26094  or re-definitions,
26095  if you load that file first.
26096 \end_layout
26097
26098 \begin_layout Section
26099 \begin_inset CommandInset label
26100 LatexCommand label
26101 name "sec:Tags-for-XHTML"
26102
26103 \end_inset
26104
26105 Tags for XHTML output
26106 \end_layout
26107
26108 \begin_layout Standard
26109 As with \SpecialChar LaTeX
26110  or DocBook,
26111  the format of \SpecialChar LyX
26112 's XHTML output is also controlled by layout information.
26113  In general,
26114  \SpecialChar LyX
26115  provides sensible defaults and,
26116  as mentioned earlier,
26117  it will even construct default CSS style rules from the other layout tags.
26118  For example,
26119  \SpecialChar LyX
26120  will attempt to use the information provided in the 
26121 \begin_inset Flex Code
26122 status collapsed
26123
26124 \begin_layout Plain Layout
26125 Font
26126 \end_layout
26127
26128 \end_inset
26129
26130  declaration for the Chapter style to write CSS that will appropriately format chapter headings.
26131 \end_layout
26132
26133 \begin_layout Standard
26134 In many cases,
26135  then,
26136  you may not have to do anything at all to get acceptable XHTML output for your own environments,
26137  custom insets,
26138  and so forth.
26139  But in some cases you will,
26140  and so \SpecialChar LyX
26141  provides a number of layout tags that can be used to customize the XHTML and CSS that are generated.
26142 \end_layout
26143
26144 \begin_layout Standard
26145 Note that there are two tags,
26146  
26147 \begin_inset Flex Code
26148 status collapsed
26149
26150 \begin_layout Plain Layout
26151 HTMLPreamble
26152 \end_layout
26153
26154 \end_inset
26155
26156  and 
26157 \begin_inset Flex Code
26158 status collapsed
26159
26160 \begin_layout Plain Layout
26161 AddToHTMLPreamble
26162 \end_layout
26163
26164 \end_inset
26165
26166  that may appear outside style and inset declarations.
26167  See 
26168 \begin_inset CommandInset ref
26169 LatexCommand ref
26170 reference "subsec:General-text-class"
26171 nolink "false"
26172
26173 \end_inset
26174
26175  for details on these.
26176 \end_layout
26177
26178 \begin_layout Subsection
26179 \begin_inset CommandInset label
26180 LatexCommand label
26181 name "subsec:Paragraph-Style-XHTML"
26182
26183 \end_inset
26184
26185 Paragraph styles
26186 \end_layout
26187
26188 \begin_layout Standard
26189 The sort of XHTML \SpecialChar LyX
26190  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
26191  a command,
26192  or an environment,
26193  where this is itself determined by the contents of the corresponding 
26194 \begin_inset Flex Code
26195 status collapsed
26196
26197 \begin_layout Plain Layout
26198 \SpecialChar LaTeX
26199 Type
26200 \end_layout
26201
26202 \end_inset
26203
26204  tag.
26205  
26206 \end_layout
26207
26208 \begin_layout Standard
26209 For a command or normal paragraph,
26210  the output XHTML has the following form:
26211 \end_layout
26212
26213 \begin_layout LyX-Code
26214
26215 \family sans
26216 <tag attr=
26217 \begin_inset Quotes erd
26218 \end_inset
26219
26220 value
26221 \begin_inset Quotes erd
26222 \end_inset
26223
26224 >
26225 \end_layout
26226
26227 \begin_layout LyX-Code
26228
26229 \family sans
26230 <labeltag attr=
26231 \begin_inset Quotes erd
26232 \end_inset
26233
26234 value
26235 \begin_inset Quotes erd
26236 \end_inset
26237
26238 >Label</labeltag>
26239 \end_layout
26240
26241 \begin_layout LyX-Code
26242
26243 \family sans
26244 Contents of the paragraph.
26245 \end_layout
26246
26247 \begin_layout LyX-Code
26248
26249 \family sans
26250 </tag>
26251 \end_layout
26252
26253 \begin_layout Standard
26254 The label tags are of course omitted if the paragraph does not have a label.
26255 \end_layout
26256
26257 \begin_layout Standard
26258 For an environment that is not some sort of list,
26259  the XHTML takes this form:
26260 \end_layout
26261
26262 \begin_layout LyX-Code
26263
26264 \family sans
26265 <tag attr=
26266 \begin_inset Quotes erd
26267 \end_inset
26268
26269 value
26270 \begin_inset Quotes erd
26271 \end_inset
26272
26273 >
26274 \end_layout
26275
26276 \begin_layout LyX-Code
26277
26278 \family sans
26279 <itemtag attr=
26280 \begin_inset Quotes erd
26281 \end_inset
26282
26283 value
26284 \begin_inset Quotes erd
26285 \end_inset
26286
26287 ><labeltag attr=
26288 \begin_inset Quotes erd
26289 \end_inset
26290
26291 value
26292 \begin_inset Quotes erd
26293 \end_inset
26294
26295 >Environment Label</labeltag>First paragraph.</itemtag>
26296 \end_layout
26297
26298 \begin_layout LyX-Code
26299
26300 \family sans
26301 <itemtag>Second paragraph.</itemtag>
26302 \end_layout
26303
26304 \begin_layout LyX-Code
26305
26306 \family sans
26307 </tag>
26308 \end_layout
26309
26310 \begin_layout Standard
26311 Note that the label is output only for the first paragraph,
26312  as it should be for a theorem,
26313  for example.
26314  
26315 \end_layout
26316
26317 \begin_layout Standard
26318 For a list,
26319  we have one of these forms:
26320 \end_layout
26321
26322 \begin_layout LyX-Code
26323
26324 \family sans
26325 <tag attr=
26326 \begin_inset Quotes erd
26327 \end_inset
26328
26329 value
26330 \begin_inset Quotes erd
26331 \end_inset
26332
26333 >
26334 \end_layout
26335
26336 \begin_layout LyX-Code
26337
26338 \family sans
26339 <itemtag attr=
26340 \begin_inset Quotes erd
26341 \end_inset
26342
26343 value
26344 \begin_inset Quotes erd
26345 \end_inset
26346
26347 ><labeltag attr=
26348 \begin_inset Quotes erd
26349 \end_inset
26350
26351 value
26352 \begin_inset Quotes erd
26353 \end_inset
26354
26355 >List Label</labeltag>First item.</itemtag>
26356 \end_layout
26357
26358 \begin_layout LyX-Code
26359
26360 \family sans
26361 <itemtag attr=
26362 \begin_inset Quotes erd
26363 \end_inset
26364
26365 value
26366 \begin_inset Quotes erd
26367 \end_inset
26368
26369 ><labeltag attr=
26370 \begin_inset Quotes erd
26371 \end_inset
26372
26373 value
26374 \begin_inset Quotes erd
26375 \end_inset
26376
26377 >List Label</labeltag>Second item.</itemtag>
26378 \end_layout
26379
26380 \begin_layout LyX-Code
26381
26382 \family sans
26383 </tag>
26384 \end_layout
26385
26386 \begin_layout LyX-Code
26387
26388 \end_layout
26389
26390 \begin_layout LyX-Code
26391
26392 \family sans
26393 <tag attr=
26394 \begin_inset Quotes erd
26395 \end_inset
26396
26397 value
26398 \begin_inset Quotes erd
26399 \end_inset
26400
26401 >
26402 \end_layout
26403
26404 \begin_layout LyX-Code
26405
26406 \family sans
26407 <labeltag attr=
26408 \begin_inset Quotes erd
26409 \end_inset
26410
26411 value
26412 \begin_inset Quotes erd
26413 \end_inset
26414
26415 >List Label</labeltag><itemtag attr=
26416 \begin_inset Quotes erd
26417 \end_inset
26418
26419 value
26420 \begin_inset Quotes erd
26421 \end_inset
26422
26423 >First item.</itemtag>
26424 \end_layout
26425
26426 \begin_layout LyX-Code
26427
26428 \family sans
26429 <labeltag attr=
26430 \begin_inset Quotes erd
26431 \end_inset
26432
26433 value
26434 \begin_inset Quotes erd
26435 \end_inset
26436
26437 >List Label</labeltag><itemtag attr=
26438 \begin_inset Quotes erd
26439 \end_inset
26440
26441 value
26442 \begin_inset Quotes erd
26443 \end_inset
26444
26445 >Second item.</itemtag>
26446 \end_layout
26447
26448 \begin_layout LyX-Code
26449
26450 \family sans
26451 </tag>
26452 \end_layout
26453
26454 \begin_layout Standard
26455 Note the different orders of 
26456 \begin_inset Flex Code
26457 status collapsed
26458
26459 \begin_layout Plain Layout
26460 labeltag
26461 \end_layout
26462
26463 \end_inset
26464
26465  and 
26466 \begin_inset Flex Code
26467 status collapsed
26468
26469 \begin_layout Plain Layout
26470 itemtag
26471 \end_layout
26472
26473 \end_inset
26474
26475 .
26476  Which order we get depends upon the setting of 
26477 \begin_inset Flex Code
26478 status collapsed
26479
26480 \begin_layout Plain Layout
26481 HTMLLabelFirst
26482 \end_layout
26483
26484 \end_inset
26485
26486 :
26487  If 
26488 \begin_inset Flex Code
26489 status collapsed
26490
26491 \begin_layout Plain Layout
26492 HTMLLabelFirst
26493 \end_layout
26494
26495 \end_inset
26496
26497  is false (the default),
26498  you get the first of these,
26499  with the label within the item;
26500  if true,
26501  you get the second,
26502  with the label outside the item.
26503 \end_layout
26504
26505 \begin_layout Standard
26506 The specific tags and attributes output for each paragraph type can be controlled by means of the layout tags we are about to describe.
26507  As mentioned earlier,
26508  however,
26509  \SpecialChar LyX
26510  uses sensible defaults for many of these,
26511  so you often may not need to do very much to get good XHTML output.
26512  Think of the available tags as there so you can tweak things to your liking.
26513 \end_layout
26514
26515 \begin_layout Description
26516 \begin_inset Flex Code
26517 status collapsed
26518
26519 \begin_layout Plain Layout
26520 HTMLAttr
26521 \end_layout
26522
26523 \end_inset
26524
26525  [
26526 \begin_inset Flex Code
26527 status collapsed
26528
26529 \begin_layout Plain Layout
26530 string
26531 \end_layout
26532
26533 \end_inset
26534
26535 ] Specifies attribute information to be output with the main tag.
26536  For example,
26537  
26538 \begin_inset Quotes eld
26539 \end_inset
26540
26541
26542 \begin_inset Flex Code
26543 status collapsed
26544
26545 \begin_layout Plain Layout
26546 class=`mydiv'
26547 \end_layout
26548
26549 \end_inset
26550
26551
26552 \begin_inset Quotes erd
26553 \end_inset
26554
26555 .
26556  By default,
26557  \SpecialChar LyX
26558  will output 
26559 \begin_inset Quotes eld
26560 \end_inset
26561
26562
26563 \begin_inset Flex Code
26564 status collapsed
26565
26566 \begin_layout Plain Layout
26567 class=`layoutname'
26568 \end_layout
26569
26570 \end_inset
26571
26572
26573 \begin_inset Quotes erd
26574 \end_inset
26575
26576 ,
26577  where 
26578 \begin_inset Flex Code
26579 status collapsed
26580
26581 \begin_layout Plain Layout
26582 layoutname
26583 \end_layout
26584
26585 \end_inset
26586
26587  is the \SpecialChar LyX
26588  name of the layout,
26589  made lowercase,
26590  for example:
26591  chapter.
26592  This should 
26593 \emph on
26594 not
26595 \emph default
26596  contain any style information.
26597  Use 
26598 \begin_inset Flex Code
26599 status collapsed
26600
26601 \begin_layout Plain Layout
26602 HTMLStyle
26603 \end_layout
26604
26605 \end_inset
26606
26607  for that purpose.
26608 \end_layout
26609
26610 \begin_layout Description
26611 \begin_inset Flex Code
26612 status collapsed
26613
26614 \begin_layout Plain Layout
26615 HTMLClass
26616 \end_layout
26617
26618 \end_inset
26619
26620  [
26621 \begin_inset Flex Code
26622 status collapsed
26623
26624 \begin_layout Plain Layout
26625 string
26626 \end_layout
26627
26628 \end_inset
26629
26630 ] The CSS class to use for this paragraph.
26631  Note that,
26632  if the paragarph is of enumerate or itemize type,
26633  then the default will be 
26634 \begin_inset Quotes eld
26635 \end_inset
26636
26637 lyxenum
26638 \begin_inset Quotes erd
26639 \end_inset
26640
26641  or 
26642 \begin_inset Quotes eld
26643 \end_inset
26644
26645 lyxitem
26646 \begin_inset Quotes erd
26647 \end_inset
26648
26649 ,
26650  plus 
26651 \begin_inset Quotes eld
26652 \end_inset
26653
26654 i
26655 \begin_inset Quotes erd
26656 \end_inset
26657
26658 ,
26659  
26660 \begin_inset Quotes eld
26661 \end_inset
26662
26663 ii
26664 \begin_inset Quotes erd
26665 \end_inset
26666
26667 ,
26668  
26669 \begin_inset Quotes eld
26670 \end_inset
26671
26672 iii
26673 \begin_inset Quotes erd
26674 \end_inset
26675
26676 ,
26677  or 
26678 \begin_inset Quotes eld
26679 \end_inset
26680
26681 iv
26682 \begin_inset Quotes erd
26683 \end_inset
26684
26685 ,
26686  depending upon the depth.
26687  That can be over-ridden here.
26688  However,
26689  the suffix will not be added in that case.
26690  I.e.,
26691  the CSS class will always be exactly what it is declared to be here.
26692 \end_layout
26693
26694 \begin_layout Description
26695 \begin_inset Flex Code
26696 status collapsed
26697
26698 \begin_layout Plain Layout
26699 HTMLForceCSS
26700 \end_layout
26701
26702 \end_inset
26703
26704  [
26705 \begin_inset Flex Code
26706 status collapsed
26707
26708 \begin_layout Plain Layout
26709
26710 \emph on
26711 0
26712 \emph default
26713 ,1
26714 \end_layout
26715
26716 \end_inset
26717
26718 ] Whether to output the default CSS information \SpecialChar LyX
26719  generates for this layout,
26720  even if additional information is explicitly provided via 
26721 \begin_inset Flex Code
26722 status collapsed
26723
26724 \begin_layout Plain Layout
26725 HTMLStyle
26726 \end_layout
26727
26728 \end_inset
26729
26730 .
26731  Setting this to 
26732 \begin_inset Flex Code
26733 status collapsed
26734
26735 \begin_layout Plain Layout
26736 1
26737 \end_layout
26738
26739 \end_inset
26740
26741  allows you to alter or augment the generated CSS,
26742  rather than to override it completely.
26743  Default is 
26744 \begin_inset Flex Code
26745 status collapsed
26746
26747 \begin_layout Plain Layout
26748 0
26749 \end_layout
26750
26751 \end_inset
26752
26753 .
26754 \end_layout
26755
26756 \begin_layout Description
26757 \begin_inset Flex Code
26758 status collapsed
26759
26760 \begin_layout Plain Layout
26761 HTMLInToc
26762 \end_layout
26763
26764 \end_inset
26765
26766  [
26767 \begin_inset Flex Code
26768 status open
26769
26770 \begin_layout Plain Layout
26771 0,
26772 \emph on
26773 1
26774 \end_layout
26775
26776 \end_inset
26777
26778 ] Whether to include this paragraph (usually,
26779  a section or something of the sort) in the TOC.
26780  By default,
26781  true,
26782  so it should be set to false e.g.
26783 \begin_inset space ~
26784 \end_inset
26785
26786 for starred sections.
26787 \end_layout
26788
26789 \begin_layout Description
26790 \begin_inset Flex Code
26791 status collapsed
26792
26793 \begin_layout Plain Layout
26794 HTMLItem
26795 \end_layout
26796
26797 \end_inset
26798
26799  [
26800 \begin_inset Flex Code
26801 status collapsed
26802
26803 \begin_layout Plain Layout
26804 string
26805 \end_layout
26806
26807 \end_inset
26808
26809 ] The tag to be used for individual paragraphs of environments,
26810  replacing 
26811 \begin_inset Flex Code
26812 status collapsed
26813
26814 \begin_layout Plain Layout
26815 itemtag
26816 \end_layout
26817
26818 \end_inset
26819
26820  in the examples above.
26821  Defaults to 
26822 \begin_inset Flex Code
26823 status collapsed
26824
26825 \begin_layout Plain Layout
26826 div
26827 \end_layout
26828
26829 \end_inset
26830
26831 .
26832 \end_layout
26833
26834 \begin_layout Description
26835 \begin_inset Flex Code
26836 status collapsed
26837
26838 \begin_layout Plain Layout
26839 HTMLItemAttr
26840 \end_layout
26841
26842 \end_inset
26843
26844  [
26845 \begin_inset Flex Code
26846 status collapsed
26847
26848 \begin_layout Plain Layout
26849 string
26850 \end_layout
26851
26852 \end_inset
26853
26854 ] Attributes for the item tag.
26855  Defaults to
26856 \begin_inset Newline newline
26857 \end_inset
26858
26859
26860 \begin_inset Quotes eld
26861 \end_inset
26862
26863
26864 \begin_inset Flex Code
26865 status collapsed
26866
26867 \begin_layout Plain Layout
26868 class=`layoutname_item'
26869 \end_layout
26870
26871 \end_inset
26872
26873
26874 \begin_inset Quotes erd
26875 \end_inset
26876
26877 .
26878  This should 
26879 \emph on
26880 not
26881 \emph default
26882  contain any style information.
26883  Use 
26884 \begin_inset Flex Code
26885 status collapsed
26886
26887 \begin_layout Plain Layout
26888 HTMLStyle
26889 \end_layout
26890
26891 \end_inset
26892
26893  for that purpose.
26894 \end_layout
26895
26896 \begin_layout Description
26897 \begin_inset Flex Code
26898 status collapsed
26899
26900 \begin_layout Plain Layout
26901 HTMLLabel
26902 \end_layout
26903
26904 \end_inset
26905
26906  [
26907 \begin_inset Flex Code
26908 status collapsed
26909
26910 \begin_layout Plain Layout
26911 string
26912 \end_layout
26913
26914 \end_inset
26915
26916 ] The tag to be used for paragraph and item labels,
26917  replacing 
26918 \begin_inset Flex Code
26919 status collapsed
26920
26921 \begin_layout Plain Layout
26922 labeltag
26923 \end_layout
26924
26925 \end_inset
26926
26927  in the examples above.
26928  Defaults to 
26929 \begin_inset Flex Code
26930 status collapsed
26931
26932 \begin_layout Plain Layout
26933 span
26934 \end_layout
26935
26936 \end_inset
26937
26938 ,
26939  unless 
26940 \begin_inset Flex Code
26941 status collapsed
26942
26943 \begin_layout Plain Layout
26944 LabelType
26945 \end_layout
26946
26947 \end_inset
26948
26949  is either 
26950 \begin_inset Flex Code
26951 status collapsed
26952
26953 \begin_layout Plain Layout
26954 Top_Environment
26955 \end_layout
26956
26957 \end_inset
26958
26959  or 
26960 \begin_inset Flex Code
26961 status collapsed
26962
26963 \begin_layout Plain Layout
26964 Centered_Top_Environment
26965 \end_layout
26966
26967 \end_inset
26968
26969 ,
26970  in which case it defaults to 
26971 \begin_inset Flex Code
26972 status collapsed
26973
26974 \begin_layout Plain Layout
26975 div
26976 \end_layout
26977
26978 \end_inset
26979
26980 .
26981 \end_layout
26982
26983 \begin_layout Description
26984 \begin_inset Flex Code
26985 status collapsed
26986
26987 \begin_layout Plain Layout
26988 HTMLLabelAttr
26989 \end_layout
26990
26991 \end_inset
26992
26993  [
26994 \begin_inset Flex Code
26995 status collapsed
26996
26997 \begin_layout Plain Layout
26998 string
26999 \end_layout
27000
27001 \end_inset
27002
27003 ] Attributes for the label tag.
27004  Defaults to
27005 \begin_inset Newline newline
27006 \end_inset
27007
27008
27009 \begin_inset Quotes eld
27010 \end_inset
27011
27012
27013 \begin_inset Flex Code
27014 status collapsed
27015
27016 \begin_layout Plain Layout
27017 class=`layoutname_label'
27018 \end_layout
27019
27020 \end_inset
27021
27022
27023 \begin_inset Quotes erd
27024 \end_inset
27025
27026 .
27027  This should 
27028 \emph on
27029 not
27030 \emph default
27031  contain any style information.
27032  Use 
27033 \begin_inset Flex Code
27034 status collapsed
27035
27036 \begin_layout Plain Layout
27037 HTMLStyle
27038 \end_layout
27039
27040 \end_inset
27041
27042  for that purpose.
27043 \end_layout
27044
27045 \begin_layout Description
27046 \begin_inset Flex Code
27047 status collapsed
27048
27049 \begin_layout Plain Layout
27050 HTMLLabelFirst
27051 \end_layout
27052
27053 \end_inset
27054
27055  [
27056 \begin_inset Flex Code
27057 status collapsed
27058
27059 \begin_layout Plain Layout
27060
27061 \emph on
27062 0
27063 \emph default
27064 ,1
27065 \end_layout
27066
27067 \end_inset
27068
27069 ] Meaningful only for list-like environments,
27070  this tag controls whether the label tag is output before or inside the item tag.
27071  This is used,
27072  for example,
27073  in the description environment,
27074  where we want `
27075 \begin_inset Flex Code
27076 status collapsed
27077
27078 \begin_layout Plain Layout
27079 <dt>\SpecialChar ldots
27080 </dt><dd>\SpecialChar ldots
27081 </dd>
27082 \end_layout
27083
27084 \end_inset
27085
27086 .
27087  Default is 
27088 \begin_inset Flex Code
27089 status collapsed
27090
27091 \begin_layout Plain Layout
27092 0
27093 \end_layout
27094
27095 \end_inset
27096
27097 :
27098  The label tag is output inside the item tag.
27099 \end_layout
27100
27101 \begin_layout Description
27102 \begin_inset Flex Code
27103 status collapsed
27104
27105 \begin_layout Plain Layout
27106 HTMLPreamble
27107 \end_layout
27108
27109 \end_inset
27110
27111  Information to be output in the 
27112 \begin_inset Flex Code
27113 status collapsed
27114
27115 \begin_layout Plain Layout
27116 <head>
27117 \end_layout
27118
27119 \end_inset
27120
27121  section when this style is used.
27122  This might,
27123  for example,
27124  be used to include a 
27125 \begin_inset Flex Code
27126 status collapsed
27127
27128 \begin_layout Plain Layout
27129 <script>
27130 \end_layout
27131
27132 \end_inset
27133
27134  block defining an 
27135 \begin_inset Flex Code
27136 status collapsed
27137
27138 \begin_layout Plain Layout
27139 onclick
27140 \end_layout
27141
27142 \end_inset
27143
27144  handler.
27145 \end_layout
27146
27147 \begin_layout Description
27148 \begin_inset Flex Code
27149 status collapsed
27150
27151 \begin_layout Plain Layout
27152 HTMLStyle
27153 \end_layout
27154
27155 \end_inset
27156
27157  CSS style information to be included when this style is used.
27158  Note that this will automatically be wrapped in a layout-generated 
27159 \begin_inset Flex Code
27160 status collapsed
27161
27162 \begin_layout Plain Layout
27163 <style>
27164 \end_layout
27165
27166 \end_inset
27167
27168  block,
27169  so only the CSS itself need be included.
27170  Must end with 
27171 \begin_inset Flex Code
27172 status collapsed
27173
27174 \begin_layout Plain Layout
27175 EndHTMLStyle
27176 \end_layout
27177
27178 \end_inset
27179
27180 .
27181 \end_layout
27182
27183 \begin_layout Description
27184 \begin_inset Flex Code
27185 status collapsed
27186
27187 \begin_layout Plain Layout
27188 HTMLTag
27189 \end_layout
27190
27191 \end_inset
27192
27193  [
27194 \begin_inset Flex Code
27195 status collapsed
27196
27197 \begin_layout Plain Layout
27198 string
27199 \end_layout
27200
27201 \end_inset
27202
27203 ] The tag to be used for the main label,
27204  replacing 
27205 \begin_inset Flex Code
27206 status collapsed
27207
27208 \begin_layout Plain Layout
27209 tag
27210 \end_layout
27211
27212 \end_inset
27213
27214  in the examples above.
27215  Defaults to 
27216 \begin_inset Flex Code
27217 status collapsed
27218
27219 \begin_layout Plain Layout
27220 div
27221 \end_layout
27222
27223 \end_inset
27224
27225 .
27226 \end_layout
27227
27228 \begin_layout Description
27229 \begin_inset Flex Code
27230 status collapsed
27231
27232 \begin_layout Plain Layout
27233 HTMLTitle
27234 \end_layout
27235
27236 \end_inset
27237
27238  [
27239 \begin_inset Flex Code
27240 status collapsed
27241
27242 \begin_layout Plain Layout
27243
27244 \emph on
27245 0
27246 \emph default
27247 ,1
27248 \end_layout
27249
27250 \end_inset
27251
27252 ] Marks this style as the one to be used to generate the 
27253 \begin_inset Flex Code
27254 status collapsed
27255
27256 \begin_layout Plain Layout
27257 <title>
27258 \end_layout
27259
27260 \end_inset
27261
27262  tag for the XHTML file.
27263  By default,
27264  it is false.
27265  The 
27266 \begin_inset Flex Code
27267 status collapsed
27268
27269 \begin_layout Plain Layout
27270 stdtitle.inc
27271 \end_layout
27272
27273 \end_inset
27274
27275  file sets it to true for the 
27276 \begin_inset Flex Code
27277 status collapsed
27278
27279 \begin_layout Plain Layout
27280 title
27281 \end_layout
27282
27283 \end_inset
27284
27285  environment.
27286  
27287 \end_layout
27288
27289 \begin_layout Subsection
27290 InsetLayout XHTML
27291 \end_layout
27292
27293 \begin_layout Standard
27294 The XHTML output of insets can also be controlled by information in layout files.
27295 \begin_inset Foot
27296 status collapsed
27297
27298 \begin_layout Plain Layout
27299 At present,
27300  this is true only for 
27301 \begin_inset Quotes eld
27302 \end_inset
27303
27304 text
27305 \begin_inset Quotes erd
27306 \end_inset
27307
27308  insets (insets you can type into) and is not true for 
27309 \begin_inset Quotes eld
27310 \end_inset
27311
27312 command
27313 \begin_inset Quotes erd
27314 \end_inset
27315
27316  insets (insets that are associated with dialog boxes).
27317 \end_layout
27318
27319 \end_inset
27320
27321  Here,
27322  too,
27323  \SpecialChar LyX
27324  tries to provide sensible defaults,
27325  and it constructs default CSS style rules.
27326  But everything can be customized.
27327 \end_layout
27328
27329 \begin_layout Standard
27330 The XHTML \SpecialChar LyX
27331  outputs for an inset has the following form:
27332 \end_layout
27333
27334 \begin_layout LyX-Code
27335 <tag attr=
27336 \begin_inset Quotes erd
27337 \end_inset
27338
27339 value
27340 \begin_inset Quotes erd
27341 \end_inset
27342
27343 >
27344 \end_layout
27345
27346 \begin_layout LyX-Code
27347 <labeltag>Label</labeltag>
27348 \end_layout
27349
27350 \begin_layout LyX-Code
27351 <innertag attr=
27352 \begin_inset Quotes erd
27353 \end_inset
27354
27355 value
27356 \begin_inset Quotes erd
27357 \end_inset
27358
27359 >Contents of the inset.</innertag>
27360 \end_layout
27361
27362 \begin_layout LyX-Code
27363 </tag>
27364 \end_layout
27365
27366 \begin_layout Standard
27367 If the inset permits multiple paragraphs—
27368 that is,
27369  if 
27370 \begin_inset Flex Code
27371 status collapsed
27372
27373 \begin_layout Plain Layout
27374 MultiPar
27375 \end_layout
27376
27377 \end_inset
27378
27379  is true—
27380 then the contents of the inset will itself be output as paragraphs formatted according to the styles used for those paragraphs (standard,
27381  quote,
27382  and the like).
27383  The label tag is of course omitted if the paragraph does not have a label and,
27384  at present,
27385  is always 
27386 \begin_inset Flex Code
27387 status collapsed
27388
27389 \begin_layout Plain Layout
27390 span
27391 \end_layout
27392
27393 \end_inset
27394
27395 .
27396  The inner tag is optional and,
27397  by default,
27398  does not appear.
27399 \end_layout
27400
27401 \begin_layout Standard
27402 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
27403 \end_layout
27404
27405 \begin_layout Description
27406 \begin_inset Flex Code
27407 status collapsed
27408
27409 \begin_layout Plain Layout
27410 HTMLAttr
27411 \end_layout
27412
27413 \end_inset
27414
27415  [
27416 \begin_inset Flex Code
27417 status collapsed
27418
27419 \begin_layout Plain Layout
27420 string
27421 \end_layout
27422
27423 \end_inset
27424
27425 ] Specifies attribute information to be output with the main tag.
27426  For example,
27427  
27428 \begin_inset Quotes eld
27429 \end_inset
27430
27431
27432 \begin_inset Flex Code
27433 status collapsed
27434
27435 \begin_layout Plain Layout
27436 class=`myinset' onclick=`\SpecialChar ldots
27437 '
27438 \end_layout
27439
27440 \end_inset
27441
27442
27443 \begin_inset Quotes erd
27444 \end_inset
27445
27446 .
27447  By default,
27448  \SpecialChar LyX
27449  will output 
27450 \begin_inset Quotes eld
27451 \end_inset
27452
27453
27454 \begin_inset Flex Code
27455 status collapsed
27456
27457 \begin_layout Plain Layout
27458 class=`insetname'
27459 \end_layout
27460
27461 \end_inset
27462
27463
27464 \begin_inset Quotes erd
27465 \end_inset
27466
27467 ,
27468  where 
27469 \begin_inset Flex Code
27470 status collapsed
27471
27472 \begin_layout Plain Layout
27473 insetname
27474 \end_layout
27475
27476 \end_inset
27477
27478  is the \SpecialChar LyX
27479  name of the inset,
27480  made lowercase and with non-alphanumeric characters converted to underscores,
27481  for example:
27482  footnote.
27483 \end_layout
27484
27485 \begin_layout Description
27486 \begin_inset Flex Code
27487 status collapsed
27488
27489 \begin_layout Plain Layout
27490 HTMLForceCSS
27491 \end_layout
27492
27493 \end_inset
27494
27495  [
27496 \begin_inset Flex Code
27497 status collapsed
27498
27499 \begin_layout Plain Layout
27500
27501 \emph on
27502 0
27503 \emph default
27504 ,1
27505 \end_layout
27506
27507 \end_inset
27508
27509 ] Whether to output the default CSS information \SpecialChar LyX
27510  generates for this layout,
27511  even if additional information is explicitly provided via 
27512 \begin_inset Flex Code
27513 status collapsed
27514
27515 \begin_layout Plain Layout
27516 HTMLStyle
27517 \end_layout
27518
27519 \end_inset
27520
27521 .
27522  Setting this to 
27523 \begin_inset Flex Code
27524 status collapsed
27525
27526 \begin_layout Plain Layout
27527 1
27528 \end_layout
27529
27530 \end_inset
27531
27532  allows you to alter or augment the generated CSS,
27533  rather than to override it completely.
27534  Default is 0.
27535 \end_layout
27536
27537 \begin_layout Description
27538 \begin_inset Flex Code
27539 status collapsed
27540
27541 \begin_layout Plain Layout
27542 HTMLInnerAttr
27543 \end_layout
27544
27545 \end_inset
27546
27547  [
27548 \begin_inset Flex Code
27549 status collapsed
27550
27551 \begin_layout Plain Layout
27552 string
27553 \end_layout
27554
27555 \end_inset
27556
27557 ] Attributes for the inner tag.
27558  Defaults to
27559 \begin_inset Newline newline
27560 \end_inset
27561
27562
27563 \begin_inset Quotes eld
27564 \end_inset
27565
27566
27567 \begin_inset Flex Code
27568 status collapsed
27569
27570 \begin_layout Plain Layout
27571 class=`insetname_inner'
27572 \end_layout
27573
27574 \end_inset
27575
27576
27577 \begin_inset Quotes erd
27578 \end_inset
27579
27580 .
27581 \end_layout
27582
27583 \begin_layout Description
27584 \begin_inset Flex Code
27585 status collapsed
27586
27587 \begin_layout Plain Layout
27588 HTMLInnerTag
27589 \end_layout
27590
27591 \end_inset
27592
27593  [
27594 \begin_inset Flex Code
27595 status collapsed
27596
27597 \begin_layout Plain Layout
27598 string
27599 \end_layout
27600
27601 \end_inset
27602
27603 ] The inner tag,
27604  replacing 
27605 \begin_inset Flex Code
27606 status collapsed
27607
27608 \begin_layout Plain Layout
27609 innertag
27610 \end_layout
27611
27612 \end_inset
27613
27614  in the examples above.
27615  By default,
27616  there is none.
27617 \end_layout
27618
27619 \begin_layout Description
27620 \begin_inset Flex Code
27621 status collapsed
27622
27623 \begin_layout Plain Layout
27624 HTMLIsBlock
27625 \end_layout
27626
27627 \end_inset
27628
27629  [
27630 \begin_inset Flex Code
27631 status collapsed
27632
27633 \begin_layout Plain Layout
27634 0,
27635 \emph on
27636 1
27637 \end_layout
27638
27639 \end_inset
27640
27641 ] 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).
27642  Defaults to 1.
27643 \end_layout
27644
27645 \begin_layout Description
27646 \begin_inset Flex Code
27647 status collapsed
27648
27649 \begin_layout Plain Layout
27650 HTMLLabel
27651 \end_layout
27652
27653 \end_inset
27654
27655  [
27656 \begin_inset Flex Code
27657 status collapsed
27658
27659 \begin_layout Plain Layout
27660 string
27661 \end_layout
27662
27663 \end_inset
27664
27665 ] A label for this inset,
27666  possibly including a reference to a counter.
27667  For example,
27668  for footnote,
27669  it might be:
27670  
27671 \begin_inset Flex Code
27672 status collapsed
27673
27674 \begin_layout Plain Layout
27675
27676 \backslash
27677 arabic{footnote}
27678 \end_layout
27679
27680 \end_inset
27681
27682 .
27683  This is optional,
27684  and there is no default.
27685 \end_layout
27686
27687 \begin_layout Description
27688 \begin_inset Flex Code
27689 status collapsed
27690
27691 \begin_layout Plain Layout
27692 HTMLPreamble
27693 \end_layout
27694
27695 \end_inset
27696
27697  Information to be output in the 
27698 \begin_inset Flex Code
27699 status collapsed
27700
27701 \begin_layout Plain Layout
27702 <head>
27703 \end_layout
27704
27705 \end_inset
27706
27707  section when this style is used.
27708  This might,
27709  for example,
27710  be used to include a 
27711 \begin_inset Flex Code
27712 status collapsed
27713
27714 \begin_layout Plain Layout
27715 <script>
27716 \end_layout
27717
27718 \end_inset
27719
27720  block defining an 
27721 \begin_inset Flex Code
27722 status collapsed
27723
27724 \begin_layout Plain Layout
27725 onclick
27726 \end_layout
27727
27728 \end_inset
27729
27730  handler.
27731 \end_layout
27732
27733 \begin_layout Description
27734 \begin_inset Flex Code
27735 status collapsed
27736
27737 \begin_layout Plain Layout
27738 HTMLStyle
27739 \end_layout
27740
27741 \end_inset
27742
27743  CSS style information to be included when this style is used.
27744  Note that this will automatically be wrapped in a layout-generated 
27745 \begin_inset Flex Code
27746 status collapsed
27747
27748 \begin_layout Plain Layout
27749 <style>
27750 \end_layout
27751
27752 \end_inset
27753
27754  block,
27755  so only the CSS itself need be included.
27756 \end_layout
27757
27758 \begin_layout Description
27759 \begin_inset Flex Code
27760 status collapsed
27761
27762 \begin_layout Plain Layout
27763 HTMLTag
27764 \end_layout
27765
27766 \end_inset
27767
27768  [
27769 \begin_inset Flex Code
27770 status collapsed
27771
27772 \begin_layout Plain Layout
27773 string
27774 \end_layout
27775
27776 \end_inset
27777
27778 ] The tag to be used for the main label,
27779  replacing 
27780 \begin_inset Flex Code
27781 status collapsed
27782
27783 \begin_layout Plain Layout
27784 tag
27785 \end_layout
27786
27787 \end_inset
27788
27789  in the examples above.
27790  The default depends upon the setting of 
27791 \begin_inset Flex Code
27792 status collapsed
27793
27794 \begin_layout Plain Layout
27795 MultiPar
27796 \end_layout
27797
27798 \end_inset
27799
27800 :
27801  If 
27802 \begin_inset Flex Code
27803 status collapsed
27804
27805 \begin_layout Plain Layout
27806 MultiPar
27807 \end_layout
27808
27809 \end_inset
27810
27811  is true,
27812  the default is 
27813 \begin_inset Flex Code
27814 status collapsed
27815
27816 \begin_layout Plain Layout
27817 div
27818 \end_layout
27819
27820 \end_inset
27821
27822 ;
27823  if it is false,
27824  the default is 
27825 \begin_inset Flex Code
27826 status collapsed
27827
27828 \begin_layout Plain Layout
27829 span
27830 \end_layout
27831
27832 \end_inset
27833
27834 .
27835 \end_layout
27836
27837 \begin_layout Subsection
27838 Float XHTML
27839 \end_layout
27840
27841 \begin_layout Standard
27842 The XHTML output for floats too can be controlled by layout information.
27843  The output has the following form:
27844 \end_layout
27845
27846 \begin_layout LyX-Code
27847 <tag attr=
27848 \begin_inset Quotes erd
27849 \end_inset
27850
27851 value
27852 \begin_inset Quotes erd
27853 \end_inset
27854
27855 >
27856 \end_layout
27857
27858 \begin_layout LyX-Code
27859 Contents of the float.
27860 \end_layout
27861
27862 \begin_layout LyX-Code
27863 </tag>
27864 \end_layout
27865
27866 \begin_layout Standard
27867 The caption,
27868  if there is one,
27869  is a separate inset and will be output as such.
27870  Its appearance can be controlled via the InsetLayout for caption insets.
27871  
27872 \end_layout
27873
27874 \begin_layout Description
27875 \begin_inset Flex Code
27876 status collapsed
27877
27878 \begin_layout Plain Layout
27879 HTMLAttr
27880 \end_layout
27881
27882 \end_inset
27883
27884  [
27885 \begin_inset Flex Code
27886 status collapsed
27887
27888 \begin_layout Plain Layout
27889 string
27890 \end_layout
27891
27892 \end_inset
27893
27894 ] Specifies attribute information to be output with the main tag.
27895  For example,
27896  
27897 \begin_inset Quotes eld
27898 \end_inset
27899
27900
27901 \begin_inset Flex Code
27902 status collapsed
27903
27904 \begin_layout Plain Layout
27905 class=`myfloat' onclick=`\SpecialChar ldots
27906 '
27907 \end_layout
27908
27909 \end_inset
27910
27911
27912 \begin_inset Quotes erd
27913 \end_inset
27914
27915 .
27916  By default,
27917  \SpecialChar LyX
27918  will output 
27919 \begin_inset Quotes eld
27920 \end_inset
27921
27922
27923 \begin_inset Flex Code
27924 status collapsed
27925
27926 \begin_layout Plain Layout
27927 class=`float float-floattype'
27928 \end_layout
27929
27930 \end_inset
27931
27932
27933 \begin_inset Quotes erd
27934 \end_inset
27935
27936 ,
27937  where 
27938 \begin_inset Flex Code
27939 status collapsed
27940
27941 \begin_layout Plain Layout
27942 floattype
27943 \end_layout
27944
27945 \end_inset
27946
27947  is \SpecialChar LyX
27948 's name for this type of float,
27949  as determined by the float declaration (see 
27950 \begin_inset CommandInset ref
27951 LatexCommand ref
27952 reference "subsec:Floats"
27953 nolink "false"
27954
27955 \end_inset
27956
27957 ),
27958  though made lowercase and with non-alphanumeric characters converted to underscores,
27959  for example:
27960  float-table.
27961 \end_layout
27962
27963 \begin_layout Description
27964 \begin_inset Flex Code
27965 status collapsed
27966
27967 \begin_layout Plain Layout
27968 HTMLStyle
27969 \end_layout
27970
27971 \end_inset
27972
27973  CSS style information to be included when this float is used.
27974  Note that this will automatically be wrapped in a layout-generated 
27975 \begin_inset Flex Code
27976 status collapsed
27977
27978 \begin_layout Plain Layout
27979 <style>
27980 \end_layout
27981
27982 \end_inset
27983
27984  block,
27985  so only the CSS itself need be included.
27986 \end_layout
27987
27988 \begin_layout Description
27989 \begin_inset Flex Code
27990 status collapsed
27991
27992 \begin_layout Plain Layout
27993 HTMLTag
27994 \end_layout
27995
27996 \end_inset
27997
27998  [
27999 \begin_inset Flex Code
28000 status collapsed
28001
28002 \begin_layout Plain Layout
28003 string
28004 \end_layout
28005
28006 \end_inset
28007
28008 ] The tag to be used for this float,
28009  replacing 
28010 \begin_inset Quotes eld
28011 \end_inset
28012
28013
28014 \begin_inset Flex Code
28015 status collapsed
28016
28017 \begin_layout Plain Layout
28018 tag
28019 \end_layout
28020
28021 \end_inset
28022
28023
28024 \begin_inset Quotes erd
28025 \end_inset
28026
28027  in the example above.
28028  The default is 
28029 \begin_inset Flex Code
28030 status collapsed
28031
28032 \begin_layout Plain Layout
28033 div
28034 \end_layout
28035
28036 \end_inset
28037
28038  and will rarely need changing.
28039 \end_layout
28040
28041 \begin_layout Subsection
28042 Bibliography formatting
28043 \end_layout
28044
28045 \begin_layout Standard
28046 The bibliography can be formatted using 
28047 \begin_inset Flex Code
28048 status collapsed
28049
28050 \begin_layout Plain Layout
28051 CiteFormat
28052 \end_layout
28053
28054 \end_inset
28055
28056  blocks.
28057  See 
28058 \begin_inset CommandInset ref
28059 LatexCommand ref
28060 reference "subsec:Citation-format-description"
28061 nolink "false"
28062
28063 \end_inset
28064
28065  for the details.
28066 \end_layout
28067
28068 \begin_layout Subsection
28069 \SpecialChar LyX
28070 -generated CSS
28071 \end_layout
28072
28073 \begin_layout Standard
28074 We have several times mentioned that \SpecialChar LyX
28075  will generate default CSS style rules for both insets and paragraph styles,
28076  based upon the other layout information that is provided.
28077  In this section,
28078  we shall say a word about which layout information \SpecialChar LyX
28079  uses and how.
28080 \end_layout
28081
28082 \begin_layout Standard
28083 At present,
28084  \SpecialChar LyX
28085  auto-generates CSS only for font information,
28086  making use of the 
28087 \begin_inset Flex Code
28088 status collapsed
28089
28090 \begin_layout Plain Layout
28091 Family
28092 \end_layout
28093
28094 \end_inset
28095
28096 ,
28097  
28098 \begin_inset Flex Code
28099 status collapsed
28100
28101 \begin_layout Plain Layout
28102 Series
28103 \end_layout
28104
28105 \end_inset
28106
28107 ,
28108  
28109 \begin_inset Flex Code
28110 status collapsed
28111
28112 \begin_layout Plain Layout
28113 Shape
28114 \end_layout
28115
28116 \end_inset
28117
28118 ,
28119  and 
28120 \begin_inset Flex Code
28121 status collapsed
28122
28123 \begin_layout Plain Layout
28124 Size
28125 \end_layout
28126
28127 \end_inset
28128
28129  specified in the 
28130 \begin_inset Flex Code
28131 status collapsed
28132
28133 \begin_layout Plain Layout
28134 Font
28135 \end_layout
28136
28137 \end_inset
28138
28139  declaration (see 
28140 \begin_inset CommandInset ref
28141 LatexCommand ref
28142 reference "subsec:Font-description"
28143 nolink "false"
28144
28145 \end_inset
28146
28147 ).
28148  The translation is mostly straightforward and obvious.
28149  For example,
28150  
28151 \begin_inset Quotes eld
28152 \end_inset
28153
28154
28155 \begin_inset Flex Code
28156 status collapsed
28157
28158 \begin_layout Plain Layout
28159 Family Sans
28160 \end_layout
28161
28162 \end_inset
28163
28164
28165 \begin_inset Quotes erd
28166 \end_inset
28167
28168  becomes 
28169 \begin_inset Quotes eld
28170 \end_inset
28171
28172
28173 \begin_inset Flex Code
28174 status collapsed
28175
28176 \begin_layout Plain Layout
28177 font-family:
28178  sans-serif;
28179 \end_layout
28180
28181 \end_inset
28182
28183
28184 \begin_inset Quotes erd
28185 \end_inset
28186
28187 .
28188  The correspondence of \SpecialChar LyX
28189  sizes and CSS sizes is a little less obvious but nonetheless intuitive.
28190  See the 
28191 \begin_inset Flex Code
28192 status collapsed
28193
28194 \begin_layout Plain Layout
28195 getSizeCSS()
28196 \end_layout
28197
28198 \end_inset
28199
28200  function in 
28201 \begin_inset Flex URL
28202 status collapsed
28203
28204 \begin_layout Plain Layout
28205
28206 src/FontInfo.cpp
28207 \end_layout
28208
28209 \end_inset
28210
28211  for the details.
28212 \end_layout
28213
28214 \begin_layout Section
28215 \begin_inset CommandInset label
28216 LatexCommand label
28217 name "sec:Tags-for-DocBook"
28218
28219 \end_inset
28220
28221 Tags for DocBook output
28222 \end_layout
28223
28224 \begin_layout Standard
28225 As with \SpecialChar LaTeX
28226  or XHTML,
28227  the format of \SpecialChar LyX
28228 's DocBook output is also controlled by layout information.
28229  In general,
28230  \SpecialChar LyX
28231  provides sensible defaults;
28232  however,
28233  much of the styling is lost during the conversion,
28234  as DocBook is strictly semantic and does not allow formatting.
28235  When possible,
28236  information from \SpecialChar LyX
28237  will be rendered in 
28238 \family typewriter
28239 role
28240 \family default
28241  attributes.
28242 \end_layout
28243
28244 \begin_layout Standard
28245 In many cases,
28246  then,
28247  you may not have to do anything at all to get acceptable DocBook output for your own environments,
28248  custom insets,
28249  and so forth.
28250  But in some cases you will,
28251  and so \SpecialChar LyX
28252  provides a number of layout tags that can be used to customize the DocBook that is generated.
28253 \end_layout
28254
28255 \begin_layout Standard
28256 Labels are rarely output,
28257  as they are redundant in DocBook:
28258  this information is carried by the tags themselves,
28259  and whether labels appear in the final documents (after processing of DocBook files) is controlled by the stylesheets.
28260  However,
28261  sometimes,
28262  labels are not redundant content,
28263  such as definition lists:
28264  in this case,
28265  the term being defined will be the label.
28266 \end_layout
28267
28268 \begin_layout Subsection
28269 \begin_inset CommandInset label
28270 LatexCommand label
28271 name "subsec:Paragraph-Style-DocBook"
28272
28273 \end_inset
28274
28275 Paragraph styles
28276 \end_layout
28277
28278 \begin_layout Standard
28279 The sort of DocBook \SpecialChar LyX
28280  outputs for a paragraph depends upon whether we are dealing with a normal paragraph,
28281  a command,
28282  or an environment,
28283  where this is itself determined by the contents of the corresponding 
28284 \begin_inset Flex Code
28285 status collapsed
28286
28287 \begin_layout Plain Layout
28288 \SpecialChar LaTeX
28289 Type
28290 \end_layout
28291
28292 \end_inset
28293
28294  tag.
28295 \end_layout
28296
28297 \begin_layout Standard
28298 For a command or normal paragraph,
28299  the output DocBook has the following form:
28300 \end_layout
28301
28302 \begin_layout LyX-Code
28303 <tag attr>
28304 \end_layout
28305
28306 \begin_layout LyX-Code
28307 Contents of the paragraph.
28308 \end_layout
28309
28310 \begin_layout LyX-Code
28311 </tag>
28312 \end_layout
28313
28314 \begin_layout Standard
28315 For an environment that is not some sort of list,
28316  the generated DocBook takes this form:
28317 \end_layout
28318
28319 \begin_layout LyX-Code
28320 <tag attr>
28321 \end_layout
28322
28323 \begin_layout LyX-Code
28324 <itemtag>First paragraph.</itemtag>
28325 \end_layout
28326
28327 \begin_layout LyX-Code
28328 <itemtag>Second paragraph.</itemtag>
28329 \end_layout
28330
28331 \begin_layout LyX-Code
28332 </tag>
28333 \end_layout
28334
28335 \begin_layout Standard
28336 For a list,
28337  the resulting DocBook takes this form:
28338 \end_layout
28339
28340 \begin_layout LyX-Code
28341 <tag attr>
28342 \end_layout
28343
28344 \begin_layout LyX-Code
28345 <itemtag attr>First item.</itemtag>
28346 \end_layout
28347
28348 \begin_layout LyX-Code
28349 <itemtag attr>Second item.</itemtag>
28350 \end_layout
28351
28352 \begin_layout LyX-Code
28353 </tag>
28354 \end_layout
28355
28356 \begin_layout Standard
28357 The specific tags and roles output for each paragraph type can be controlled by means of the layout tags we are about to describe.
28358  Please note that,
28359  due to the very nature of DocBook,
28360  no sensible defaults really exist,
28361  and the values must always be carefully chosen.
28362 \end_layout
28363
28364 \begin_layout Description
28365 \begin_inset Flex Code
28366 status collapsed
28367
28368 \begin_layout Plain Layout
28369 DocBookAttr
28370 \end_layout
28371
28372 \end_inset
28373
28374  [
28375 \begin_inset Flex Code
28376 status collapsed
28377
28378 \begin_layout Plain Layout
28379 string
28380 \end_layout
28381
28382 \end_inset
28383
28384 ] Specifies attribute information to be output with the main tag,
28385  replacing 
28386 \begin_inset Quotes eld
28387 \end_inset
28388
28389
28390 \begin_inset Flex Code
28391 status collapsed
28392
28393 \begin_layout Plain Layout
28394 attr
28395 \end_layout
28396
28397 \end_inset
28398
28399
28400 \begin_inset Quotes erd
28401 \end_inset
28402
28403  in the example above.
28404  This information can be used in further processing of the DocBook files.
28405 \end_layout
28406
28407 \begin_layout Description
28408 \begin_inset Flex Code
28409 status collapsed
28410
28411 \begin_layout Plain Layout
28412 DocBookTag
28413 \end_layout
28414
28415 \end_inset
28416
28417  [
28418 \begin_inset Flex Code
28419 status collapsed
28420
28421 \begin_layout Plain Layout
28422 string
28423 \end_layout
28424
28425 \end_inset
28426
28427 ] The tag to be used for this inset,
28428  replacing 
28429 \begin_inset Quotes eld
28430 \end_inset
28431
28432
28433 \begin_inset Flex Code
28434 status collapsed
28435
28436 \begin_layout Plain Layout
28437 tag
28438 \end_layout
28439
28440 \end_inset
28441
28442
28443 \begin_inset Quotes erd
28444 \end_inset
28445
28446  in the example above.
28447  The default is the name of the float and always needs to be changed,
28448  as DocBook provides no generic tag.
28449 \end_layout
28450
28451 \begin_layout Description
28452 \begin_inset Flex Code
28453 status collapsed
28454
28455 \begin_layout Plain Layout
28456 DocBookTagType
28457 \end_layout
28458
28459 \end_inset
28460
28461  [
28462 \begin_inset Flex Code
28463 status collapsed
28464
28465 \begin_layout Plain Layout
28466 block,
28467  paragraph,
28468  inline
28469 \end_layout
28470
28471 \end_inset
28472
28473 ] The new-line policy for this tag,
28474  see Section
28475 \begin_inset space ~
28476 \end_inset
28477
28478
28479 \begin_inset CommandInset ref
28480 LatexCommand ref
28481 reference "subsec:DocBook-New-line-policy"
28482 plural "false"
28483 caps "false"
28484 noprefix "false"
28485 nolink "false"
28486
28487 \end_inset
28488
28489  for the details.
28490 \end_layout
28491
28492 \begin_layout Subsection
28493 New-line policy
28494 \begin_inset CommandInset label
28495 LatexCommand label
28496 name "subsec:DocBook-New-line-policy"
28497
28498 \end_inset
28499
28500
28501 \end_layout
28502
28503 \begin_layout Standard
28504 For all tags,
28505  there are three possible policies for outputting new lines (given in the 
28506 \begin_inset Flex Code
28507 status collapsed
28508
28509 \begin_layout Plain Layout
28510 DocBook*TagType
28511 \end_layout
28512
28513 \end_inset
28514
28515  attribute):
28516 \end_layout
28517
28518 \begin_layout Itemize
28519 \begin_inset Quotes eld
28520 \end_inset
28521
28522
28523 \begin_inset Flex Code
28524 status collapsed
28525
28526 \begin_layout Plain Layout
28527 block
28528 \end_layout
28529
28530 \end_inset
28531
28532
28533 \begin_inset Quotes erd
28534 \end_inset
28535
28536 :
28537  the opening and closing tags are on their own lines (i.e.
28538  a line feed after and before the opening and the closing tags).
28539  Typical elements are floats.
28540  For instance:
28541 \end_layout
28542
28543 \begin_layout LyX-Code
28544 Content before
28545 \end_layout
28546
28547 \begin_layout LyX-Code
28548 <blocktag>
28549 \end_layout
28550
28551 \begin_layout LyX-Code
28552   Contents of the block.
28553 \end_layout
28554
28555 \begin_layout LyX-Code
28556 </blocktag>
28557 \end_layout
28558
28559 \begin_layout LyX-Code
28560 Content after
28561 \end_layout
28562
28563 \begin_layout Itemize
28564 \begin_inset Quotes eld
28565 \end_inset
28566
28567
28568 \begin_inset Flex Code
28569 status collapsed
28570
28571 \begin_layout Plain Layout
28572 paragraph
28573 \end_layout
28574
28575 \end_inset
28576
28577
28578 \begin_inset Quotes erd
28579 \end_inset
28580
28581 :
28582  the opening and closing tags are on the same,
28583  new line;
28584  a line feed is output before the opening tag and after the closing tag.
28585  Typical elements are paragraphs and list items.
28586  For instance:
28587 \end_layout
28588
28589 \begin_layout LyX-Code
28590 Content before
28591 \end_layout
28592
28593 \begin_layout LyX-Code
28594 <paratag>Contents of the paragraph.</paratag>
28595 \end_layout
28596
28597 \begin_layout LyX-Code
28598 Content after
28599 \end_layout
28600
28601 \begin_layout Itemize
28602 \begin_inset Quotes eld
28603 \end_inset
28604
28605
28606 \begin_inset Flex Code
28607 status collapsed
28608
28609 \begin_layout Plain Layout
28610 inline
28611 \end_layout
28612
28613 \end_inset
28614
28615
28616 \begin_inset Quotes erd
28617 \end_inset
28618
28619 :
28620  the opening and closing tags are on the same line as the rest of the content.
28621  No line feeds are output.
28622  Typical elements are fonts.
28623  For instance:
28624 \end_layout
28625
28626 \begin_layout LyX-Code
28627 Content before<inlinetag>Contents of the paragraph.</inlinetag>Content after
28628 \end_layout
28629
28630 \begin_layout Standard
28631 The default value is always 
28632 \begin_inset Quotes eld
28633 \end_inset
28634
28635
28636 \begin_inset Flex Code
28637 status collapsed
28638
28639 \begin_layout Plain Layout
28640 block
28641 \end_layout
28642
28643 \end_inset
28644
28645
28646 \begin_inset Quotes erd
28647 \end_inset
28648
28649 .
28650 \end_layout
28651
28652 \begin_layout Subsection
28653 InsetLayout DocBook
28654 \end_layout
28655
28656 \begin_layout Standard
28657 The DocBook output of insets can also be controlled by information in layout files.
28658 \end_layout
28659
28660 \begin_layout Standard
28661 The DocBook \SpecialChar LyX
28662  outputs for an inset has the following form:
28663 \end_layout
28664
28665 \begin_layout LyX-Code
28666 <wrappertag wrapperattr>
28667 \end_layout
28668
28669 \begin_layout LyX-Code
28670   <tag attr>
28671 \end_layout
28672
28673 \begin_layout LyX-Code
28674     <innertag innerattr>
28675 \end_layout
28676
28677 \begin_layout LyX-Code
28678       Contents of the inset.
28679 \end_layout
28680
28681 \begin_layout LyX-Code
28682     </innertag>
28683 \end_layout
28684
28685 \begin_layout LyX-Code
28686   </tag>
28687 \end_layout
28688
28689 \begin_layout LyX-Code
28690 </wrappertag>
28691 \end_layout
28692
28693 \begin_layout Standard
28694 For an itemising inset,
28695  it rather looks like this:
28696 \end_layout
28697
28698 \begin_layout LyX-Code
28699 <wrappertag wrapperattr>
28700 \end_layout
28701
28702 \begin_layout LyX-Code
28703   <tag attr>
28704 \end_layout
28705
28706 \begin_layout LyX-Code
28707     <innertag innerattr>
28708 \end_layout
28709
28710 \begin_layout LyX-Code
28711       <itemwrappertag itemwrapperattr>
28712 \end_layout
28713
28714 \begin_layout LyX-Code
28715         <itemlabeltag itemattr>
28716 \end_layout
28717
28718 \begin_layout LyX-Code
28719           Label of the first item.
28720 \end_layout
28721
28722 \begin_layout LyX-Code
28723         </itemtag>
28724 \end_layout
28725
28726 \begin_layout LyX-Code
28727         <itemtag itemattr>
28728 \end_layout
28729
28730 \begin_layout LyX-Code
28731           <itemtag itemattr>
28732 \end_layout
28733
28734 \begin_layout LyX-Code
28735             Contents of the first item.
28736 \end_layout
28737
28738 \begin_layout LyX-Code
28739           </itemtag>
28740 \end_layout
28741
28742 \begin_layout LyX-Code
28743         </itemtag>
28744 \end_layout
28745
28746 \begin_layout LyX-Code
28747       </itemwrappertag>
28748 \end_layout
28749
28750 \begin_layout LyX-Code
28751       <itemwrappertag itemwrapperattr>
28752 \end_layout
28753
28754 \begin_layout LyX-Code
28755         <itemlabeltag itemattr>
28756 \end_layout
28757
28758 \begin_layout LyX-Code
28759           Label of the second item.
28760 \end_layout
28761
28762 \begin_layout LyX-Code
28763         </itemtag>
28764 \end_layout
28765
28766 \begin_layout LyX-Code
28767         <itemtag itemattr>
28768 \end_layout
28769
28770 \begin_layout LyX-Code
28771           <itemtag itemattr>
28772 \end_layout
28773
28774 \begin_layout LyX-Code
28775             Contents of the second item.
28776 \end_layout
28777
28778 \begin_layout LyX-Code
28779           </itemtag>
28780 \end_layout
28781
28782 \begin_layout LyX-Code
28783         </itemtag>
28784 \end_layout
28785
28786 \begin_layout LyX-Code
28787       </itemwrappertag>
28788 \end_layout
28789
28790 \begin_layout LyX-Code
28791       ...
28792 \end_layout
28793
28794 \begin_layout LyX-Code
28795     </innertag>
28796 \end_layout
28797
28798 \begin_layout LyX-Code
28799   </tag>
28800 \end_layout
28801
28802 \begin_layout LyX-Code
28803 </wrappertag>
28804 \end_layout
28805
28806 \begin_layout Standard
28807 If the inset permits multiple paragraphs—
28808 that is,
28809  if 
28810 \begin_inset Flex Code
28811 status collapsed
28812
28813 \begin_layout Plain Layout
28814 MultiPar
28815 \end_layout
28816
28817 \end_inset
28818
28819  is true—
28820 then the contents of the inset will themselves be output as paragraphs formatted according to the styles used for those paragraphs (standard,
28821  quote,
28822  and the like).
28823  The inner tag is optional and,
28824  by default,
28825  does not appear.
28826 \end_layout
28827
28828 \begin_layout Standard
28829 The specific tags and attributes output for each inset can be controlled by means of the following layout tags.
28830 \end_layout
28831
28832 \begin_layout Description
28833 \begin_inset Flex Code
28834 status collapsed
28835
28836 \begin_layout Plain Layout
28837 DocBookAttr
28838 \end_layout
28839
28840 \end_inset
28841
28842  [
28843 \begin_inset Flex Code
28844 status collapsed
28845
28846 \begin_layout Plain Layout
28847 string
28848 \end_layout
28849
28850 \end_inset
28851
28852 ] Specifies attribute information to be output with the main tag,
28853  replacing 
28854 \begin_inset Quotes eld
28855 \end_inset
28856
28857
28858 \begin_inset Flex Code
28859 status collapsed
28860
28861 \begin_layout Plain Layout
28862 attr
28863 \end_layout
28864
28865 \end_inset
28866
28867
28868 \begin_inset Quotes erd
28869 \end_inset
28870
28871  in the example above.
28872  This information can be used in further processing of the DocBook files.
28873 \end_layout
28874
28875 \begin_layout Description
28876 \begin_inset Flex Code
28877 status collapsed
28878
28879 \begin_layout Plain Layout
28880 DocBookInInfo
28881 \end_layout
28882
28883 \end_inset
28884
28885  [
28886 \begin_inset Flex Code
28887 status collapsed
28888
28889 \begin_layout Plain Layout
28890 never,
28891  always,
28892  maybe
28893 \end_layout
28894
28895 \end_inset
28896
28897 ] Specifies whether this tag goes into the 
28898 \begin_inset Flex Code
28899 status collapsed
28900
28901 \begin_layout Plain Layout
28902 <info>
28903 \end_layout
28904
28905 \end_inset
28906
28907  tag at the beginning of the parent layout.
28908  
28909 \begin_inset Flex Code
28910 status collapsed
28911
28912 \begin_layout Plain Layout
28913 never
28914 \end_layout
28915
28916 \end_inset
28917
28918  indicates that the tag never goes into 
28919 \begin_inset Flex Code
28920 status collapsed
28921
28922 \begin_layout Plain Layout
28923 <info>
28924 \end_layout
28925
28926 \end_inset
28927
28928  (this is default value,
28929  and corresponds to usual content).
28930  
28931 \begin_inset Flex Code
28932 status collapsed
28933
28934 \begin_layout Plain Layout
28935 always
28936 \end_layout
28937
28938 \end_inset
28939
28940  indicates that the tag always goes into 
28941 \begin_inset Flex Code
28942 status collapsed
28943
28944 \begin_layout Plain Layout
28945 <info>
28946 \end_layout
28947
28948 \end_inset
28949
28950  (this corresponds to usual metadata):
28951  if there is no 
28952 \begin_inset Flex Code
28953 status collapsed
28954
28955 \begin_layout Plain Layout
28956 <info>
28957 \end_layout
28958
28959 \end_inset
28960
28961  tag for the parent,
28962  one 
28963 \series bold
28964 will
28965 \series default
28966  be generated.
28967  
28968 \begin_inset Flex Code
28969 status collapsed
28970
28971 \begin_layout Plain Layout
28972 maybe
28973 \end_layout
28974
28975 \end_inset
28976
28977  indicates that the tag may go into 
28978 \begin_inset Flex Code
28979 status collapsed
28980
28981 \begin_layout Plain Layout
28982 <info>
28983 \end_layout
28984
28985 \end_inset
28986
28987  (this is only the case for titles):
28988  if there is no 
28989 \begin_inset Flex Code
28990 status collapsed
28991
28992 \begin_layout Plain Layout
28993 <info>
28994 \end_layout
28995
28996 \end_inset
28997
28998  tag for the parent,
28999  
29000 \series bold
29001 none
29002 \series default
29003  will be generated,
29004  the corresponding tag will be output directly as content.
29005 \end_layout
29006
29007 \begin_layout Description
29008 \begin_inset Flex Code
29009 status collapsed
29010
29011 \begin_layout Plain Layout
29012 DocBookItemAttr
29013 \end_layout
29014
29015 \end_inset
29016
29017  [
29018 \begin_inset Flex Code
29019 status collapsed
29020
29021 \begin_layout Plain Layout
29022 string
29023 \end_layout
29024
29025 \end_inset
29026
29027 ] Specifies attribute information to be output with the item tag,
29028  replacing 
29029 \begin_inset Quotes eld
29030 \end_inset
29031
29032
29033 \begin_inset Flex Code
29034 status collapsed
29035
29036 \begin_layout Plain Layout
29037 itemattr
29038 \end_layout
29039
29040 \end_inset
29041
29042
29043 \begin_inset Quotes erd
29044 \end_inset
29045
29046  in the example above.
29047  This information can be used in further processing of the DocBook files.
29048 \end_layout
29049
29050 \begin_layout Description
29051 \begin_inset Flex Code
29052 status collapsed
29053
29054 \begin_layout Plain Layout
29055 DocBookItemInnerAttr
29056 \end_layout
29057
29058 \end_inset
29059
29060  [
29061 \begin_inset Flex Code
29062 status collapsed
29063
29064 \begin_layout Plain Layout
29065 string
29066 \end_layout
29067
29068 \end_inset
29069
29070 ] Specifies attribute information to be output with the item inner tag,
29071  replacing 
29072 \begin_inset Quotes eld
29073 \end_inset
29074
29075
29076 \begin_inset Flex Code
29077 status collapsed
29078
29079 \begin_layout Plain Layout
29080 iteminnerattr
29081 \end_layout
29082
29083 \end_inset
29084
29085
29086 \begin_inset Quotes erd
29087 \end_inset
29088
29089  in the example above.
29090  This information can be used in further processing of the DocBook files.
29091 \end_layout
29092
29093 \begin_layout Description
29094 \begin_inset Flex Code
29095 status collapsed
29096
29097 \begin_layout Plain Layout
29098 DocBookItemInnerTag
29099 \end_layout
29100
29101 \end_inset
29102
29103  [
29104 \begin_inset Flex Code
29105 status collapsed
29106
29107 \begin_layout Plain Layout
29108 string
29109 \end_layout
29110
29111 \end_inset
29112
29113 ] The tag to be used for the item inner tag within the inset,
29114  replacing 
29115 \begin_inset Quotes eld
29116 \end_inset
29117
29118
29119 \begin_inset Flex Code
29120 status collapsed
29121
29122 \begin_layout Plain Layout
29123 iteminnertag
29124 \end_layout
29125
29126 \end_inset
29127
29128
29129 \begin_inset Quotes erd
29130 \end_inset
29131
29132  in the example above.
29133  The default is 
29134 \begin_inset Flex Code
29135 status collapsed
29136
29137 \begin_layout Plain Layout
29138 NONE
29139 \end_layout
29140
29141 \end_inset
29142
29143 ,
29144  indicating that there is no item inner tag:
29145  content is directly output without it for each itemised element.
29146  This parameter only makes sense when itemising layouts are used,
29147  such as lists.
29148  The most likely value is 
29149 \begin_inset Quotes eld
29150 \end_inset
29151
29152
29153 \begin_inset Flex Code
29154 status collapsed
29155
29156 \begin_layout Plain Layout
29157 para
29158 \end_layout
29159
29160 \end_inset
29161
29162
29163 \begin_inset Quotes erd
29164 \end_inset
29165
29166 .
29167 \begin_inset Newline newline
29168 \end_inset
29169
29170 When a list item is split using a new line,
29171  the item inner tag will be repeated for each part of the paragraph,
29172  parts being separated by new lines.
29173 \end_layout
29174
29175 \begin_layout Description
29176 \begin_inset Flex Code
29177 status collapsed
29178
29179 \begin_layout Plain Layout
29180 DocBookItemInnerTagType
29181 \end_layout
29182
29183 \end_inset
29184
29185  [
29186 \begin_inset Flex Code
29187 status collapsed
29188
29189 \begin_layout Plain Layout
29190 block,
29191  paragraph,
29192  inline
29193 \end_layout
29194
29195 \end_inset
29196
29197 ] The new-line policy for this tag,
29198  see Section
29199 \begin_inset space ~
29200 \end_inset
29201
29202
29203 \begin_inset CommandInset ref
29204 LatexCommand ref
29205 reference "subsec:DocBook-New-line-policy"
29206 plural "false"
29207 caps "false"
29208 noprefix "false"
29209 nolink "false"
29210
29211 \end_inset
29212
29213  for the details.
29214 \end_layout
29215
29216 \begin_layout Description
29217 \begin_inset Flex Code
29218 status collapsed
29219
29220 \begin_layout Plain Layout
29221 DocBookItemLabelAttr
29222 \end_layout
29223
29224 \end_inset
29225
29226  [
29227 \begin_inset Flex Code
29228 status collapsed
29229
29230 \begin_layout Plain Layout
29231 string
29232 \end_layout
29233
29234 \end_inset
29235
29236 ] Specifies attribute information to be output with the item label tag,
29237  replacing 
29238 \begin_inset Quotes eld
29239 \end_inset
29240
29241
29242 \begin_inset Flex Code
29243 status collapsed
29244
29245 \begin_layout Plain Layout
29246 itemlabelattr
29247 \end_layout
29248
29249 \end_inset
29250
29251
29252 \begin_inset Quotes erd
29253 \end_inset
29254
29255  in the example above.
29256  This information can be used in further processing of the DocBook files.
29257 \end_layout
29258
29259 \begin_layout Description
29260 \begin_inset Flex Code
29261 status collapsed
29262
29263 \begin_layout Plain Layout
29264 DocBookItemLabelTag
29265 \end_layout
29266
29267 \end_inset
29268
29269  [
29270 \begin_inset Flex Code
29271 status collapsed
29272
29273 \begin_layout Plain Layout
29274 string
29275 \end_layout
29276
29277 \end_inset
29278
29279 ] The tag to be used for the item label tag within the inset,
29280  replacing 
29281 \begin_inset Quotes eld
29282 \end_inset
29283
29284
29285 \begin_inset Flex Code
29286 status collapsed
29287
29288 \begin_layout Plain Layout
29289 itemlabeltag
29290 \end_layout
29291
29292 \end_inset
29293
29294
29295 \begin_inset Quotes erd
29296 \end_inset
29297
29298  in the example above.
29299  This parameter only makes sense when itemising layouts are used with a notion of labels,
29300  such as definition lists.
29301 \end_layout
29302
29303 \begin_layout Description
29304 \begin_inset Flex Code
29305 status collapsed
29306
29307 \begin_layout Plain Layout
29308 DocBookItemLabelTagType
29309 \end_layout
29310
29311 \end_inset
29312
29313  [
29314 \begin_inset Flex Code
29315 status collapsed
29316
29317 \begin_layout Plain Layout
29318 block,
29319  paragraph,
29320  inline
29321 \end_layout
29322
29323 \end_inset
29324
29325 ] The new-line policy for this tag,
29326  see Section
29327 \begin_inset space ~
29328 \end_inset
29329
29330
29331 \begin_inset CommandInset ref
29332 LatexCommand ref
29333 reference "subsec:DocBook-New-line-policy"
29334 plural "false"
29335 caps "false"
29336 noprefix "false"
29337 nolink "false"
29338
29339 \end_inset
29340
29341  for the details.
29342 \end_layout
29343
29344 \begin_layout Description
29345 \begin_inset Flex Code
29346 status collapsed
29347
29348 \begin_layout Plain Layout
29349 DocBookItemTag
29350 \end_layout
29351
29352 \end_inset
29353
29354  [
29355 \begin_inset Flex Code
29356 status collapsed
29357
29358 \begin_layout Plain Layout
29359 string
29360 \end_layout
29361
29362 \end_inset
29363
29364 ] The tag to be used for the item tag within the inset,
29365  replacing 
29366 \begin_inset Quotes eld
29367 \end_inset
29368
29369
29370 \begin_inset Flex Code
29371 status collapsed
29372
29373 \begin_layout Plain Layout
29374 itemtag
29375 \end_layout
29376
29377 \end_inset
29378
29379
29380 \begin_inset Quotes erd
29381 \end_inset
29382
29383  in the example above.
29384  The default is 
29385 \begin_inset Flex Code
29386 status collapsed
29387
29388 \begin_layout Plain Layout
29389 NONE
29390 \end_layout
29391
29392 \end_inset
29393
29394 ,
29395  indicating that there is no item tag.
29396  This parameter only makes sense when itemising layouts are used,
29397  such as lists.
29398 \end_layout
29399
29400 \begin_layout Description
29401 \begin_inset Flex Code
29402 status collapsed
29403
29404 \begin_layout Plain Layout
29405 DocBookItemTagType
29406 \end_layout
29407
29408 \end_inset
29409
29410  [
29411 \begin_inset Flex Code
29412 status collapsed
29413
29414 \begin_layout Plain Layout
29415 block,
29416  paragraph,
29417  inline
29418 \end_layout
29419
29420 \end_inset
29421
29422 ] The new-line policy for this tag,
29423  see Section
29424 \begin_inset space ~
29425 \end_inset
29426
29427
29428 \begin_inset CommandInset ref
29429 LatexCommand ref
29430 reference "subsec:DocBook-New-line-policy"
29431 plural "false"
29432 caps "false"
29433 noprefix "false"
29434 nolink "false"
29435
29436 \end_inset
29437
29438  for the details.
29439 \end_layout
29440
29441 \begin_layout Description
29442 \begin_inset Flex Code
29443 status collapsed
29444
29445 \begin_layout Plain Layout
29446 DocBookItemWrapperAttr
29447 \end_layout
29448
29449 \end_inset
29450
29451  [
29452 \begin_inset Flex Code
29453 status collapsed
29454
29455 \begin_layout Plain Layout
29456 string
29457 \end_layout
29458
29459 \end_inset
29460
29461 ] Specifies attribute information to be output with the item wrapper tag,
29462  replacing 
29463 \begin_inset Quotes eld
29464 \end_inset
29465
29466
29467 \begin_inset Flex Code
29468 status collapsed
29469
29470 \begin_layout Plain Layout
29471 itemwrapperattr
29472 \end_layout
29473
29474 \end_inset
29475
29476
29477 \begin_inset Quotes erd
29478 \end_inset
29479
29480  in the example above.
29481  This information can be used in further processing of the DocBook files.
29482 \end_layout
29483
29484 \begin_layout Description
29485 \begin_inset Flex Code
29486 status collapsed
29487
29488 \begin_layout Plain Layout
29489 DocBookItemWrapperTag
29490 \end_layout
29491
29492 \end_inset
29493
29494  [
29495 \begin_inset Flex Code
29496 status collapsed
29497
29498 \begin_layout Plain Layout
29499 string
29500 \end_layout
29501
29502 \end_inset
29503
29504 ] The tag to be used for the item wrapper tag within the inset,
29505  replacing 
29506 \begin_inset Quotes eld
29507 \end_inset
29508
29509
29510 \begin_inset Flex Code
29511 status collapsed
29512
29513 \begin_layout Plain Layout
29514 itemwrappertag
29515 \end_layout
29516
29517 \end_inset
29518
29519
29520 \begin_inset Quotes erd
29521 \end_inset
29522
29523  in the example above.
29524  The default is 
29525 \begin_inset Flex Code
29526 status collapsed
29527
29528 \begin_layout Plain Layout
29529 NONE
29530 \end_layout
29531
29532 \end_inset
29533
29534 ,
29535  indicating that there is no item wrapper tag:
29536  tag and content are directly output without it for each itemised element.
29537  This parameter only makes sense when itemising layouts are used,
29538  such as lists.
29539 \end_layout
29540
29541 \begin_layout Description
29542 \begin_inset Flex Code
29543 status collapsed
29544
29545 \begin_layout Plain Layout
29546 DocBookItemWrapperTagType
29547 \end_layout
29548
29549 \end_inset
29550
29551  [
29552 \begin_inset Flex Code
29553 status collapsed
29554
29555 \begin_layout Plain Layout
29556 block,
29557  paragraph,
29558  inline
29559 \end_layout
29560
29561 \end_inset
29562
29563 ] The new-line policy for this tag,
29564  see Section
29565 \begin_inset space ~
29566 \end_inset
29567
29568
29569 \begin_inset CommandInset ref
29570 LatexCommand ref
29571 reference "subsec:DocBook-New-line-policy"
29572 plural "false"
29573 caps "false"
29574 noprefix "false"
29575 nolink "false"
29576
29577 \end_inset
29578
29579  for the details.
29580 \end_layout
29581
29582 \begin_layout Description
29583 \begin_inset Flex Code
29584 status collapsed
29585
29586 \begin_layout Plain Layout
29587 DocBookInnerAttr
29588 \end_layout
29589
29590 \end_inset
29591
29592  [
29593 \begin_inset Flex Code
29594 status collapsed
29595
29596 \begin_layout Plain Layout
29597 string
29598 \end_layout
29599
29600 \end_inset
29601
29602 ] Specifies attribute information to be output with the inner tag,
29603  replacing 
29604 \begin_inset Quotes eld
29605 \end_inset
29606
29607
29608 \begin_inset Flex Code
29609 status collapsed
29610
29611 \begin_layout Plain Layout
29612 innerattr
29613 \end_layout
29614
29615 \end_inset
29616
29617
29618 \begin_inset Quotes erd
29619 \end_inset
29620
29621  in the example above.
29622  This information can be used in further processing of the DocBook files.
29623 \end_layout
29624
29625 \begin_layout Description
29626 \begin_inset Flex Code
29627 status collapsed
29628
29629 \begin_layout Plain Layout
29630 DocBookInnerTag
29631 \end_layout
29632
29633 \end_inset
29634
29635  [
29636 \begin_inset Flex Code
29637 status collapsed
29638
29639 \begin_layout Plain Layout
29640 string
29641 \end_layout
29642
29643 \end_inset
29644
29645 ] The tag to be used for the inner tag within the inset,
29646  replacing 
29647 \begin_inset Quotes eld
29648 \end_inset
29649
29650
29651 \begin_inset Flex Code
29652 status collapsed
29653
29654 \begin_layout Plain Layout
29655 innertag
29656 \end_layout
29657
29658 \end_inset
29659
29660
29661 \begin_inset Quotes erd
29662 \end_inset
29663
29664  in the example above.
29665  The default is 
29666 \begin_inset Flex Code
29667 status collapsed
29668
29669 \begin_layout Plain Layout
29670 NONE
29671 \end_layout
29672
29673 \end_inset
29674
29675 ,
29676  indicating that there is no inner tag:
29677  content is directly output without it.
29678 \end_layout
29679
29680 \begin_layout Description
29681 \begin_inset Flex Code
29682 status collapsed
29683
29684 \begin_layout Plain Layout
29685 DocBookInnerTagType
29686 \end_layout
29687
29688 \end_inset
29689
29690  [
29691 \begin_inset Flex Code
29692 status collapsed
29693
29694 \begin_layout Plain Layout
29695 block,
29696  paragraph,
29697  inline
29698 \end_layout
29699
29700 \end_inset
29701
29702 ] The new-line policy for this tag,
29703  see Section
29704 \begin_inset space ~
29705 \end_inset
29706
29707
29708 \begin_inset CommandInset ref
29709 LatexCommand ref
29710 reference "subsec:DocBook-New-line-policy"
29711 plural "false"
29712 caps "false"
29713 noprefix "false"
29714 nolink "false"
29715
29716 \end_inset
29717
29718  for the details.
29719 \end_layout
29720
29721 \begin_layout Description
29722 \begin_inset Flex Code
29723 status collapsed
29724
29725 \begin_layout Plain Layout
29726 DocBookSectionTag
29727 \end_layout
29728
29729 \end_inset
29730
29731  [
29732 \begin_inset Flex Code
29733 status collapsed
29734
29735 \begin_layout Plain Layout
29736 string
29737 \end_layout
29738
29739 \end_inset
29740
29741 ] Specifies the tag that corresponds to this kind of section.
29742  This parameter only makes sense for sectioning elements (part,
29743  chapter,
29744  section,
29745  etc.).
29746  The default value is 
29747 \begin_inset Flex Code
29748 status collapsed
29749
29750 \begin_layout Plain Layout
29751 section
29752 \end_layout
29753
29754 \end_inset
29755
29756 ,
29757  and is only overridden when DocBook uses something else for sectioning (typically,
29758  parts and chapters of a book).
29759 \end_layout
29760
29761 \begin_layout Description
29762 \begin_inset Flex Code
29763 status collapsed
29764
29765 \begin_layout Plain Layout
29766 DocBookTag
29767 \end_layout
29768
29769 \end_inset
29770
29771  [
29772 \begin_inset Flex Code
29773 status collapsed
29774
29775 \begin_layout Plain Layout
29776 string
29777 \end_layout
29778
29779 \end_inset
29780
29781 ] The tag to be used for this inset,
29782  replacing 
29783 \begin_inset Quotes eld
29784 \end_inset
29785
29786
29787 \begin_inset Flex Code
29788 status collapsed
29789
29790 \begin_layout Plain Layout
29791 tag
29792 \end_layout
29793
29794 \end_inset
29795
29796
29797 \begin_inset Quotes erd
29798 \end_inset
29799
29800  in the example above.
29801  The default is the name of the float and always needs to be changed,
29802  as DocBook provides no generic inset tag.
29803 \end_layout
29804
29805 \begin_layout Description
29806 \begin_inset Flex Code
29807 status collapsed
29808
29809 \begin_layout Plain Layout
29810 DocBookTagType
29811 \end_layout
29812
29813 \end_inset
29814
29815  [
29816 \begin_inset Flex Code
29817 status collapsed
29818
29819 \begin_layout Plain Layout
29820 block,
29821  paragraph,
29822  inline
29823 \end_layout
29824
29825 \end_inset
29826
29827 ] The new-line policy for this tag,
29828  see Section
29829 \begin_inset space ~
29830 \end_inset
29831
29832
29833 \begin_inset CommandInset ref
29834 LatexCommand ref
29835 reference "subsec:DocBook-New-line-policy"
29836 plural "false"
29837 caps "false"
29838 noprefix "false"
29839 nolink "false"
29840
29841 \end_inset
29842
29843  for the details.
29844 \end_layout
29845
29846 \begin_layout Description
29847 \begin_inset Flex Code
29848 status collapsed
29849
29850 \begin_layout Plain Layout
29851 DocBookWrapperAttr
29852 \end_layout
29853
29854 \end_inset
29855
29856  [
29857 \begin_inset Flex Code
29858 status collapsed
29859
29860 \begin_layout Plain Layout
29861 string
29862 \end_layout
29863
29864 \end_inset
29865
29866 ] Specifies attribute information to be output with the outer wrapper tag,
29867  replacing 
29868 \begin_inset Quotes eld
29869 \end_inset
29870
29871
29872 \begin_inset Flex Code
29873 status collapsed
29874
29875 \begin_layout Plain Layout
29876 wrapperattr
29877 \end_layout
29878
29879 \end_inset
29880
29881
29882 \begin_inset Quotes erd
29883 \end_inset
29884
29885  in the example above.
29886  This information can be used in further processing of the DocBook files.
29887 \end_layout
29888
29889 \begin_layout Description
29890 \begin_inset Flex Code
29891 status collapsed
29892
29893 \begin_layout Plain Layout
29894 DocBookWrapperTag
29895 \end_layout
29896
29897 \end_inset
29898
29899  [
29900 \begin_inset Flex Code
29901 status collapsed
29902
29903 \begin_layout Plain Layout
29904 string
29905 \end_layout
29906
29907 \end_inset
29908
29909 ] The tag to be used for the wrapper tag around the inset,
29910  replacing 
29911 \begin_inset Quotes eld
29912 \end_inset
29913
29914
29915 \begin_inset Flex Code
29916 status collapsed
29917
29918 \begin_layout Plain Layout
29919 wrappertag
29920 \end_layout
29921
29922 \end_inset
29923
29924
29925 \begin_inset Quotes erd
29926 \end_inset
29927
29928  in the example above.
29929  The default is 
29930 \begin_inset Flex Code
29931 status collapsed
29932
29933 \begin_layout Plain Layout
29934 NONE
29935 \end_layout
29936
29937 \end_inset
29938
29939 ,
29940  indicating that there is no wrapper tag:
29941  tag and content are directly output without it.
29942 \end_layout
29943
29944 \begin_layout Description
29945 \begin_inset Flex Code
29946 status collapsed
29947
29948 \begin_layout Plain Layout
29949 DocBookWrapperTagType
29950 \end_layout
29951
29952 \end_inset
29953
29954  [
29955 \begin_inset Flex Code
29956 status collapsed
29957
29958 \begin_layout Plain Layout
29959 block,
29960  paragraph,
29961  inline
29962 \end_layout
29963
29964 \end_inset
29965
29966 ] The new-line policy for this tag,
29967  see Section
29968 \begin_inset space ~
29969 \end_inset
29970
29971
29972 \begin_inset CommandInset ref
29973 LatexCommand ref
29974 reference "subsec:DocBook-New-line-policy"
29975 plural "false"
29976 caps "false"
29977 noprefix "false"
29978 nolink "false"
29979
29980 \end_inset
29981
29982  for the details.
29983 \end_layout
29984
29985 \begin_layout Subsection
29986 Float DocBook
29987 \end_layout
29988
29989 \begin_layout Standard
29990 The DocBook output for floats too can be controlled by layout information.
29991  The output has the following form:
29992 \end_layout
29993
29994 \begin_layout LyX-Code
29995 <tag attr>
29996 \end_layout
29997
29998 \begin_layout LyX-Code
29999   Contents of the float as DocBook.
30000 \end_layout
30001
30002 \begin_layout LyX-Code
30003 </tag>
30004 \end_layout
30005
30006 \begin_layout Standard
30007 The caption,
30008  if there is one,
30009  is a separate inset and will be output as a title.
30010 \end_layout
30011
30012 \begin_layout Description
30013 \begin_inset Flex Code
30014 status collapsed
30015
30016 \begin_layout Plain Layout
30017 DocBookAttr
30018 \end_layout
30019
30020 \end_inset
30021
30022  [
30023 \begin_inset Flex Code
30024 status collapsed
30025
30026 \begin_layout Plain Layout
30027 string
30028 \end_layout
30029
30030 \end_inset
30031
30032 ] Specifies attribute information to be output with the main tag,
30033  replacing 
30034 \begin_inset Quotes eld
30035 \end_inset
30036
30037
30038 \begin_inset Flex Code
30039 status collapsed
30040
30041 \begin_layout Plain Layout
30042 attr
30043 \end_layout
30044
30045 \end_inset
30046
30047
30048 \begin_inset Quotes erd
30049 \end_inset
30050
30051  in the example above.
30052  This information can be used in further processing of the DocBook files.
30053 \end_layout
30054
30055 \begin_layout Description
30056 \begin_inset Flex Code
30057 status collapsed
30058
30059 \begin_layout Plain Layout
30060 DocBookTag
30061 \end_layout
30062
30063 \end_inset
30064
30065  [
30066 \begin_inset Flex Code
30067 status collapsed
30068
30069 \begin_layout Plain Layout
30070 string
30071 \end_layout
30072
30073 \end_inset
30074
30075 ] The tag to be used for this float,
30076  replacing 
30077 \begin_inset Quotes eld
30078 \end_inset
30079
30080
30081 \begin_inset Flex Code
30082 status collapsed
30083
30084 \begin_layout Plain Layout
30085 tag
30086 \end_layout
30087
30088 \end_inset
30089
30090
30091 \begin_inset Quotes erd
30092 \end_inset
30093
30094  in the example above.
30095  The default is the name of the float and always needs to be changed,
30096  as DocBook provides no generic float tag.
30097 \end_layout
30098
30099 \begin_layout Subsection
30100 Bibliography formatting
30101 \end_layout
30102
30103 \begin_layout Standard
30104 Included bibliographies cannot be formatted:
30105  all fields are always output in the database-like DocBook format (equivalent to a BibTeX file),
30106  using the 
30107 \begin_inset Flex Code
30108 status collapsed
30109
30110 \begin_layout Plain Layout
30111 biblioentry
30112 \end_layout
30113
30114 \end_inset
30115
30116  tag.
30117 \end_layout
30118
30119 \begin_layout Standard
30120 When the bibliographic entries are manually inserted into the \SpecialChar LyX
30121  document as Bibliography Items,
30122  the user deals with formatting themself:
30123  there is no attempt of parsing what the user wrote,
30124  the string is directly used (with the 
30125 \begin_inset Flex Code
30126 status collapsed
30127
30128 \begin_layout Plain Layout
30129 bibliomixed
30130 \end_layout
30131
30132 \end_inset
30133
30134  tag).
30135 \end_layout
30136
30137 \begin_layout Chapter
30138 Including External Material
30139 \begin_inset CommandInset label
30140 LatexCommand label
30141 name "chap:Including-External-Material"
30142
30143 \end_inset
30144
30145
30146 \end_layout
30147
30148 \begin_layout Standard
30149 \begin_inset Box Shadowbox
30150 position "t"
30151 hor_pos "c"
30152 has_inner_box 1
30153 inner_pos "t"
30154 use_parbox 0
30155 use_makebox 0
30156 width "100col%"
30157 special "none"
30158 height "1in"
30159 height_special "totalheight"
30160 thickness "0.4pt"
30161 separation "3pt"
30162 shadowsize "4pt"
30163 framecolor "black"
30164 backgroundcolor "none"
30165 status open
30166
30167 \begin_layout Plain Layout
30168 WARNING:
30169  This portion of the documentation has not been updated for some time.
30170  We certainly hope that it is still accurate,
30171  but there are no guarantees.
30172 \end_layout
30173
30174 \end_inset
30175
30176
30177 \end_layout
30178
30179 \begin_layout Standard
30180 The use of material from sources external to \SpecialChar LyX
30181  is covered in detail in the 
30182 \emph on
30183 Embedded Objects
30184 \emph default
30185  manual.
30186  This part of the manual covers what needs to happen behind the scenes for new sorts of material to be included.
30187 \end_layout
30188
30189 \begin_layout Section
30190 How does it work?
30191 \end_layout
30192
30193 \begin_layout Standard
30194 The external material feature is based on the concept of a 
30195 \emph on
30196 template
30197 \emph default
30198 .
30199  A template is a specification of how \SpecialChar LyX
30200  should interface with a certain kind of material.
30201  As bundled,
30202  \SpecialChar LyX
30203  comes with predefined templates for Xfig figures,
30204  various raster format images,
30205  chess diagrams,
30206  and LilyPond music notation.
30207  You can check the actual list by using the menu 
30208 \begin_inset Flex Noun
30209 status collapsed
30210
30211 \begin_layout Plain Layout
30212 Insert\SpecialChar menuseparator
30213 File\SpecialChar menuseparator
30214 External Material
30215 \end_layout
30216
30217 \end_inset
30218
30219 .
30220  Furthermore,
30221  it is possible to roll your own template to support a specific kind of material.
30222  Later we'll describe in more detail what is involved,
30223  and hopefully you will submit all the templates you create so we can include them in a later \SpecialChar LyX
30224  version.
30225 \end_layout
30226
30227 \begin_layout Standard
30228 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.
30229  For example,
30230  consider the case of a figure produced with 
30231 \begin_inset Flex Code
30232 status collapsed
30233
30234 \begin_layout Plain Layout
30235 Xfig
30236 \end_layout
30237
30238 \end_inset
30239
30240 .
30241  The Xfig application itself works on an original file with the 
30242 \begin_inset Flex Code
30243 status collapsed
30244
30245 \begin_layout Plain Layout
30246 .fig
30247 \end_layout
30248
30249 \end_inset
30250
30251  extension.
30252  Within Xfig,
30253  you create and change your figure,
30254  and when you are done,
30255  you save the 
30256 \begin_inset Flex Code
30257 status collapsed
30258
30259 \begin_layout Plain Layout
30260 fig
30261 \end_layout
30262
30263 \end_inset
30264
30265 -file.
30266  When you want to include the figure in your document,
30267  you invoke 
30268 \begin_inset Flex Code
30269 status collapsed
30270
30271 \begin_layout Plain Layout
30272 transfig
30273 \end_layout
30274
30275 \end_inset
30276
30277  in order to create a PostScript file that can readily be included in your \SpecialChar LaTeX
30278  file.
30279  In this case,
30280  the 
30281 \begin_inset Flex Code
30282 status collapsed
30283
30284 \begin_layout Plain Layout
30285 .fig
30286 \end_layout
30287
30288 \end_inset
30289
30290  file is the original file,
30291  and the PostScript file is the produced file.
30292 \end_layout
30293
30294 \begin_layout Standard
30295 This distinction is important in order to allow updating of the material while you are in the process of writing the document.
30296  Furthermore,
30297  it provides us with the flexibility that is needed to support multiple export formats.
30298  For instance,
30299  in the case of a plain text file,
30300  it is not exactly an award-winning idea to include the figure as raw PostScript.
30301  Instead,
30302  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.
30303  The external material management allows you to do this,
30304  because it is parametrized on the different export formats that \SpecialChar LyX
30305  supports.
30306 \end_layout
30307
30308 \begin_layout Standard
30309 Besides supporting the production of different products according to the exported format,
30310  it supports tight integration with editing and viewing applications.
30311  In the case of an Xfig figure,
30312  you are able to invoke Xfig on the original file with a single click from within the external material dialog in \SpecialChar LyX
30313 ,
30314  and also preview the produced PostScript file with Ghostview with another click.
30315  No more fiddling around with the command line and/or file browsers to locate and manipulate the original or produced files.
30316  In this way,
30317  you are finally able to take full advantage of the many different applications that are relevant to use when you write your documents,
30318  and ultimately be more productive.
30319 \end_layout
30320
30321 \begin_layout Section
30322 The external template configuration files
30323 \end_layout
30324
30325 \begin_layout Standard
30326 It is relatively easy to add custom external template definitions to \SpecialChar LyX
30327 .
30328  However,
30329  be aware that doing this in an careless manner most probably 
30330 \emph on
30331 will
30332 \emph default
30333  introduce an easily exploitable security hole.
30334  So before you do this,
30335  please read the discussion about security in 
30336 \begin_inset CommandInset ref
30337 LatexCommand ref
30338 reference "sec:Security-discussion"
30339 nolink "false"
30340
30341 \end_inset
30342
30343 .
30344 \end_layout
30345
30346 \begin_layout Standard
30347 Having said that,
30348  we encourage you to submit any interesting templates that you create.
30349  
30350 \end_layout
30351
30352 \begin_layout Standard
30353 The external templates are defined in the 
30354 \begin_inset Flex Code
30355 status collapsed
30356
30357 \begin_layout Plain Layout
30358 *.xtemplate
30359 \end_layout
30360
30361 \end_inset
30362
30363  files that are stored in the 
30364 \begin_inset Flex Code
30365 status collapsed
30366
30367 \begin_layout Plain Layout
30368 LyXDir/lib/xtemplates/
30369 \end_layout
30370
30371 \end_inset
30372
30373  directory.
30374  Each template is defined in a file of its own.
30375  You can place your own templates in 
30376 \begin_inset Flex Code
30377 status collapsed
30378
30379 \begin_layout Plain Layout
30380 UserDir/xtemplates/
30381 \end_layout
30382
30383 \end_inset
30384
30385  or copy existing templates to that directory in order to modify them.
30386 \end_layout
30387
30388 \begin_layout Standard
30389 A typical template looks like this:
30390 \end_layout
30391
30392 \begin_layout LyX-Code
30393 Template XFig
30394 \end_layout
30395
30396 \begin_layout LyX-Code
30397 GuiName "XFig:
30398  $$AbsOrRelPathParent$$Basename"
30399 \end_layout
30400
30401 \begin_layout LyX-Code
30402 HelpText
30403 \end_layout
30404
30405 \begin_layout LyX-Code
30406 An XFig figure.
30407 \end_layout
30408
30409 \begin_layout LyX-Code
30410 HelpTextEnd
30411 \end_layout
30412
30413 \begin_layout LyX-Code
30414 InputFormat fig
30415 \end_layout
30416
30417 \begin_layout LyX-Code
30418 FileFilter "*.fig"
30419 \end_layout
30420
30421 \begin_layout LyX-Code
30422 AutomaticProduction true
30423 \end_layout
30424
30425 \begin_layout LyX-Code
30426 Transform Rotate
30427 \end_layout
30428
30429 \begin_layout LyX-Code
30430 Transform Resize
30431 \end_layout
30432
30433 \begin_layout LyX-Code
30434 Format LaTeX
30435 \end_layout
30436
30437 \begin_layout LyX-Code
30438 TransformCommand Rotate RotationLatexCommand
30439 \end_layout
30440
30441 \begin_layout LyX-Code
30442 TransformCommand Resize ResizeLatexCommand
30443 \end_layout
30444
30445 \begin_layout LyX-Code
30446 Product "$$RotateFront$$ResizeFront
30447 \end_layout
30448
30449 \begin_layout LyX-Code
30450          
30451 \backslash
30452
30453 \backslash
30454 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
30455 \end_layout
30456
30457 \begin_layout LyX-Code
30458          $$ResizeBack$$RotateBack"
30459 \end_layout
30460
30461 \begin_layout LyX-Code
30462 UpdateFormat pstex
30463 \end_layout
30464
30465 \begin_layout LyX-Code
30466 UpdateResult "$$AbsPath$$Basename.pstex_t"
30467 \end_layout
30468
30469 \begin_layout LyX-Code
30470 Requirement "graphicx"
30471 \end_layout
30472
30473 \begin_layout LyX-Code
30474 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
30475 \end_layout
30476
30477 \begin_layout LyX-Code
30478 ReferencedFile latex "$$AbsPath$$Basename.eps"
30479 \end_layout
30480
30481 \begin_layout LyX-Code
30482 ReferencedFile dvi "$$AbsPath$$Basename.eps"
30483 \end_layout
30484
30485 \begin_layout LyX-Code
30486 FormatEnd
30487 \end_layout
30488
30489 \begin_layout LyX-Code
30490 Format PDFLaTeX
30491 \end_layout
30492
30493 \begin_layout LyX-Code
30494 TransformCommand Rotate RotationLatexCommand
30495 \end_layout
30496
30497 \begin_layout LyX-Code
30498 TransformCommand Resize ResizeLatexCommand
30499 \end_layout
30500
30501 \begin_layout LyX-Code
30502 Product "$$RotateFront$$ResizeFront
30503 \end_layout
30504
30505 \begin_layout LyX-Code
30506          
30507 \backslash
30508
30509 \backslash
30510 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
30511 \end_layout
30512
30513 \begin_layout LyX-Code
30514          $$ResizeBack$$RotateBack"
30515 \end_layout
30516
30517 \begin_layout LyX-Code
30518 UpdateFormat pdftex
30519 \end_layout
30520
30521 \begin_layout LyX-Code
30522 UpdateResult "$$AbsPath$$Basename.pdftex_t"
30523 \end_layout
30524
30525 \begin_layout LyX-Code
30526 Requirement "graphicx"
30527 \end_layout
30528
30529 \begin_layout LyX-Code
30530 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
30531 \end_layout
30532
30533 \begin_layout LyX-Code
30534 ReferencedFile latex "$$AbsPath$$Basename.pdf"
30535 \end_layout
30536
30537 \begin_layout LyX-Code
30538 FormatEnd
30539 \end_layout
30540
30541 \begin_layout LyX-Code
30542 Format Ascii
30543 \end_layout
30544
30545 \begin_layout LyX-Code
30546 Product "[XFig:
30547  $$FName]"
30548 \end_layout
30549
30550 \begin_layout LyX-Code
30551 FormatEnd
30552 \end_layout
30553
30554 \begin_layout LyX-Code
30555 Format DocBook
30556 \end_layout
30557
30558 \begin_layout LyX-Code
30559 Product "<graphic fileref=
30560 \backslash
30561 "$$AbsOrRelPathMaster$$Basename.eps
30562 \backslash
30563 ">
30564 \end_layout
30565
30566 \begin_layout LyX-Code
30567          </graphic>"
30568 \end_layout
30569
30570 \begin_layout LyX-Code
30571 UpdateFormat eps
30572 \end_layout
30573
30574 \begin_layout LyX-Code
30575 UpdateResult "$$AbsPath$$Basename.eps"
30576 \end_layout
30577
30578 \begin_layout LyX-Code
30579 ReferencedFile docbook "$$AbsPath$$Basename.eps"
30580 \end_layout
30581
30582 \begin_layout LyX-Code
30583 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
30584 \end_layout
30585
30586 \begin_layout LyX-Code
30587 FormatEnd
30588 \end_layout
30589
30590 \begin_layout LyX-Code
30591 TemplateEnd
30592 \end_layout
30593
30594 \begin_layout Standard
30595 As you can see,
30596  the template is enclosed in 
30597 \begin_inset Flex Code
30598 status collapsed
30599
30600 \begin_layout Plain Layout
30601 Template
30602 \end_layout
30603
30604 \end_inset
30605
30606  \SpecialChar ldots
30607  
30608 \begin_inset Flex Code
30609 status collapsed
30610
30611 \begin_layout Plain Layout
30612 TemplateEnd
30613 \end_layout
30614
30615 \end_inset
30616
30617 .
30618  It contains a header specifying some general settings and,
30619  for each supported primary document file format,
30620  a section 
30621 \begin_inset Flex Code
30622 status collapsed
30623
30624 \begin_layout Plain Layout
30625 Format
30626 \end_layout
30627
30628 \end_inset
30629
30630  \SpecialChar ldots
30631  
30632 \begin_inset Flex Code
30633 status collapsed
30634
30635 \begin_layout Plain Layout
30636 FormatEnd
30637 \end_layout
30638
30639 \end_inset
30640
30641 .
30642 \end_layout
30643
30644 \begin_layout Subsection
30645 The template header
30646 \end_layout
30647
30648 \begin_layout Description
30649 \begin_inset Flex Code
30650 status collapsed
30651
30652 \begin_layout Plain Layout
30653 AutomaticProduction
30654 \begin_inset space ~
30655 \end_inset
30656
30657 true|false
30658 \end_layout
30659
30660 \end_inset
30661
30662  Whether the file represented by the template must be generated by \SpecialChar LyX
30663 .
30664  This command must occur exactly once.
30665 \end_layout
30666
30667 \begin_layout Description
30668 \begin_inset Flex Code
30669 status collapsed
30670
30671 \begin_layout Plain Layout
30672 FileFilter
30673 \begin_inset space ~
30674 \end_inset
30675
30676 <pattern>
30677 \end_layout
30678
30679 \end_inset
30680
30681  A glob pattern that is used in the file dialog to filter out the desired files.
30682  If there is more than one possible file extension (e.
30683 \begin_inset space \thinspace{}
30684 \end_inset
30685
30686 g.
30687 \begin_inset space \space{}
30688 \end_inset
30689
30690 tgif has 
30691 \begin_inset Flex Code
30692 status collapsed
30693
30694 \begin_layout Plain Layout
30695 .obj
30696 \end_layout
30697
30698 \end_inset
30699
30700  and 
30701 \begin_inset Flex Code
30702 status collapsed
30703
30704 \begin_layout Plain Layout
30705 .tgo
30706 \end_layout
30707
30708 \end_inset
30709
30710 ),
30711  use something like 
30712 \begin_inset Flex Code
30713 status collapsed
30714
30715 \begin_layout Plain Layout
30716 "*.{obj,tgo}"
30717 \end_layout
30718
30719 \end_inset
30720
30721 .
30722  This command must occur exactly once.
30723 \end_layout
30724
30725 \begin_layout Description
30726 \begin_inset Flex Code
30727 status collapsed
30728
30729 \begin_layout Plain Layout
30730 GuiName
30731 \begin_inset space ~
30732 \end_inset
30733
30734 <guiname>
30735 \end_layout
30736
30737 \end_inset
30738
30739  The text that is displayed on the button.
30740  This command must occur exactly once.
30741 \end_layout
30742
30743 \begin_layout Description
30744 \begin_inset Flex Code
30745 status collapsed
30746
30747 \begin_layout Plain Layout
30748 HelpText
30749 \begin_inset space ~
30750 \end_inset
30751
30752 <text>
30753 \begin_inset space ~
30754 \end_inset
30755
30756 HelpTextEnd
30757 \end_layout
30758
30759 \end_inset
30760
30761  The help text that is used in the External dialog.
30762  Provide enough information to explain to the user just what the template can provide him with.
30763  This command must occur exactly once.
30764 \end_layout
30765
30766 \begin_layout Description
30767 \begin_inset Flex Code
30768 status collapsed
30769
30770 \begin_layout Plain Layout
30771 InputFormat
30772 \begin_inset space ~
30773 \end_inset
30774
30775 <format>
30776 \end_layout
30777
30778 \end_inset
30779
30780  The file format of the original file.
30781  This must be the name of a format that is known to \SpecialChar LyX
30782  (see 
30783 \begin_inset CommandInset ref
30784 LatexCommand ref
30785 reference "sec:Formats"
30786 nolink "false"
30787
30788 \end_inset
30789
30790 ).
30791  Use 
30792 \begin_inset Quotes eld
30793 \end_inset
30794
30795
30796 \begin_inset Flex Code
30797 status collapsed
30798
30799 \begin_layout Plain Layout
30800 *
30801 \end_layout
30802
30803 \end_inset
30804
30805
30806 \begin_inset Quotes erd
30807 \end_inset
30808
30809  if the template can handle original files of more than one format.
30810  \SpecialChar LyX
30811  will attempt to interrogate the file itself in order to deduce its format in this case.
30812  This command must occur exactly once.
30813 \end_layout
30814
30815 \begin_layout Description
30816 \begin_inset Flex Code
30817 status collapsed
30818
30819 \begin_layout Plain Layout
30820 Template
30821 \begin_inset space ~
30822 \end_inset
30823
30824 <id>
30825 \end_layout
30826
30827 \end_inset
30828
30829  A unique name for the template.
30830  It must not contain substitution macros (see below).
30831 \end_layout
30832
30833 \begin_layout Description
30834 \begin_inset Flex Code
30835 status collapsed
30836
30837 \begin_layout Plain Layout
30838 Transform
30839 \begin_inset space ~
30840 \end_inset
30841
30842 Rotate|Resize|Clip|Extra
30843 \end_layout
30844
30845 \end_inset
30846
30847  This command specifies which transformations are supported by this template.
30848  It may occur zero or more times.
30849  This command enables the corresponding tabs in the external dialog.
30850  Each 
30851 \begin_inset Flex Code
30852 status collapsed
30853
30854 \begin_layout Plain Layout
30855 Transform
30856 \end_layout
30857
30858 \end_inset
30859
30860  command must have either a corresponding 
30861 \begin_inset Flex Code
30862 status collapsed
30863
30864 \begin_layout Plain Layout
30865 TransformCommand
30866 \end_layout
30867
30868 \end_inset
30869
30870  or a 
30871 \begin_inset Flex Code
30872 status collapsed
30873
30874 \begin_layout Plain Layout
30875 TransformOption
30876 \end_layout
30877
30878 \end_inset
30879
30880  command in the 
30881 \begin_inset Flex Code
30882 status collapsed
30883
30884 \begin_layout Plain Layout
30885 Format
30886 \end_layout
30887
30888 \end_inset
30889
30890  section.
30891  Otherwise the transformation will not be supported by that format.
30892 \end_layout
30893
30894 \begin_layout Subsection
30895 The Format section
30896 \end_layout
30897
30898 \begin_layout Description
30899 \begin_inset Flex Code
30900 status collapsed
30901
30902 \begin_layout Plain Layout
30903 Format
30904 \begin_inset space ~
30905 \end_inset
30906
30907 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
30908 \end_layout
30909
30910 \end_inset
30911
30912  The primary document file format that this format definition is for.
30913  Not every template has a sensible representation in all document file formats.
30914  Please define nevertheless a 
30915 \begin_inset Flex Code
30916 status collapsed
30917
30918 \begin_layout Plain Layout
30919 Format
30920 \end_layout
30921
30922 \end_inset
30923
30924  section for all templates.
30925  Use a dummy text when no representation is available.
30926  Then you can at least see a reference to the external material in the exported document.
30927 \end_layout
30928
30929 \begin_layout Description
30930 \begin_inset Flex Code
30931 status collapsed
30932
30933 \begin_layout Plain Layout
30934 Option
30935 \begin_inset space ~
30936 \end_inset
30937
30938 <name>
30939 \begin_inset space ~
30940 \end_inset
30941
30942 <value>
30943 \end_layout
30944
30945 \end_inset
30946
30947  This command defines an additional macro 
30948 \begin_inset Flex Code
30949 status collapsed
30950
30951 \begin_layout Plain Layout
30952 $$<name>
30953 \end_layout
30954
30955 \end_inset
30956
30957  for substitution in 
30958 \begin_inset Flex Code
30959 status collapsed
30960
30961 \begin_layout Plain Layout
30962 Product
30963 \end_layout
30964
30965 \end_inset
30966
30967 .
30968  
30969 \begin_inset Flex Code
30970 status collapsed
30971
30972 \begin_layout Plain Layout
30973 <value>
30974 \end_layout
30975
30976 \end_inset
30977
30978  itself may contain substitution macros.
30979  The advantage over using 
30980 \begin_inset Flex Code
30981 status collapsed
30982
30983 \begin_layout Plain Layout
30984 <value>
30985 \end_layout
30986
30987 \end_inset
30988
30989  directly in 
30990 \begin_inset Flex Code
30991 status collapsed
30992
30993 \begin_layout Plain Layout
30994 Product
30995 \end_layout
30996
30997 \end_inset
30998
30999  is that the substituted value of 
31000 \begin_inset Flex Code
31001 status collapsed
31002
31003 \begin_layout Plain Layout
31004 $$<name>
31005 \end_layout
31006
31007 \end_inset
31008
31009  is sanitized so that it is a valid optional argument in the document format.
31010  This command may occur zero or more times.
31011 \end_layout
31012
31013 \begin_layout Description
31014 \begin_inset Flex Code
31015 status collapsed
31016
31017 \begin_layout Plain Layout
31018 Product
31019 \begin_inset space ~
31020 \end_inset
31021
31022 <text>
31023 \end_layout
31024
31025 \end_inset
31026
31027  The text that is inserted in the exported document.
31028  This is actually the most important command and can be quite complex.
31029  This command must occur exactly once.
31030 \end_layout
31031
31032 \begin_layout Description
31033 \begin_inset Flex Code
31034 status collapsed
31035
31036 \begin_layout Plain Layout
31037 Preamble
31038 \begin_inset space ~
31039 \end_inset
31040
31041 <name>
31042 \end_layout
31043
31044 \end_inset
31045
31046  This command specifies a preamble snippet that will be included in the \SpecialChar LaTeX
31047  preamble.
31048  It has to be defined using 
31049 \begin_inset Flex Code
31050 status collapsed
31051
31052 \begin_layout Plain Layout
31053 PreambleDef
31054 \end_layout
31055
31056 \end_inset
31057
31058  \SpecialChar ldots
31059  
31060 \begin_inset Flex Code
31061 status collapsed
31062
31063 \begin_layout Plain Layout
31064 PreambleDefEnd
31065 \end_layout
31066
31067 \end_inset
31068
31069 .
31070  This command may occur zero or more times.
31071 \end_layout
31072
31073 \begin_layout Description
31074 \begin_inset Flex Code
31075 status collapsed
31076
31077 \begin_layout Plain Layout
31078 ReferencedFile
31079 \begin_inset space ~
31080 \end_inset
31081
31082 <format>
31083 \begin_inset space ~
31084 \end_inset
31085
31086 <filename>
31087 \end_layout
31088
31089 \end_inset
31090
31091  This command denotes files that are created by the conversion process and are needed for a particular export format.
31092  If the filename is relative,
31093  it is interpreted relative to the master document.
31094  This command may be given zero or more times.
31095 \end_layout
31096
31097 \begin_layout Description
31098 \begin_inset Flex Code
31099 status collapsed
31100
31101 \begin_layout Plain Layout
31102 Requirement
31103 \begin_inset space ~
31104 \end_inset
31105
31106 <package>
31107 \end_layout
31108
31109 \end_inset
31110
31111  The name of a required \SpecialChar LaTeX
31112  package.
31113  The package is included via 
31114 \begin_inset Flex Code
31115 status collapsed
31116
31117 \begin_layout Plain Layout
31118
31119 \backslash
31120 usepackage{}
31121 \end_layout
31122
31123 \end_inset
31124
31125  in the \SpecialChar LaTeX
31126  preamble.
31127  This command may occur zero or more times.
31128 \end_layout
31129
31130 \begin_layout Description
31131 \begin_inset Flex Code
31132 status collapsed
31133
31134 \begin_layout Plain Layout
31135 TransformCommand
31136 \begin_inset space ~
31137 \end_inset
31138
31139 Rotate
31140 \begin_inset space ~
31141 \end_inset
31142
31143 RotationLatexCommand
31144 \end_layout
31145
31146 \end_inset
31147
31148  This command specifies that the built in \SpecialChar LaTeX
31149  command should be used for rotation.
31150  This command may occur once or not at all.
31151 \end_layout
31152
31153 \begin_layout Description
31154 \begin_inset Flex Code
31155 status collapsed
31156
31157 \begin_layout Plain Layout
31158 TransformCommand
31159 \begin_inset space ~
31160 \end_inset
31161
31162 Resize
31163 \begin_inset space ~
31164 \end_inset
31165
31166 ResizeLatexCommand
31167 \end_layout
31168
31169 \end_inset
31170
31171  This command specifies that the built in \SpecialChar LaTeX
31172  command should be used for resizing.
31173  This command may occur once or not at all.
31174 \end_layout
31175
31176 \begin_layout Description
31177 \begin_inset Flex Code
31178 status collapsed
31179
31180 \begin_layout Plain Layout
31181 TransformOption
31182 \begin_inset space ~
31183 \end_inset
31184
31185 Rotate
31186 \begin_inset space ~
31187 \end_inset
31188
31189 RotationLatexOption
31190 \end_layout
31191
31192 \end_inset
31193
31194  This command specifies that rotation is done via an optional argument.
31195  This command may occur once or not at all.
31196 \end_layout
31197
31198 \begin_layout Description
31199 \begin_inset Flex Code
31200 status collapsed
31201
31202 \begin_layout Plain Layout
31203 TransformOption
31204 \begin_inset space ~
31205 \end_inset
31206
31207 Resize
31208 \begin_inset space ~
31209 \end_inset
31210
31211 ResizeLatexOption
31212 \end_layout
31213
31214 \end_inset
31215
31216  This command specifies that resizing is done via an optional argument.
31217  This command may occur once or not at all.
31218 \end_layout
31219
31220 \begin_layout Description
31221 \begin_inset Flex Code
31222 status collapsed
31223
31224 \begin_layout Plain Layout
31225 TransformOption
31226 \begin_inset space ~
31227 \end_inset
31228
31229 Clip
31230 \begin_inset space ~
31231 \end_inset
31232
31233 ClipLatexOption
31234 \end_layout
31235
31236 \end_inset
31237
31238  This command specifies that clipping is done via an optional argument.
31239  This command may occur once or not at all.
31240 \end_layout
31241
31242 \begin_layout Description
31243 \begin_inset Flex Code
31244 status collapsed
31245
31246 \begin_layout Plain Layout
31247 TransformOption
31248 \begin_inset space ~
31249 \end_inset
31250
31251 Extra
31252 \begin_inset space ~
31253 \end_inset
31254
31255 ExtraLatexOption
31256 \end_layout
31257
31258 \end_inset
31259
31260  This command specifies that an extra optional argument is used.
31261  This command may occur once or not at all.
31262 \end_layout
31263
31264 \begin_layout Description
31265 \begin_inset Flex Code
31266 status collapsed
31267
31268 \begin_layout Plain Layout
31269 UpdateFormat
31270 \begin_inset space ~
31271 \end_inset
31272
31273 <format>
31274 \end_layout
31275
31276 \end_inset
31277
31278  The file format of the converted file.
31279  This must be the name of a format that is known to \SpecialChar LyX
31280  (see the 
31281 \begin_inset Flex Noun
31282 status collapsed
31283
31284 \begin_layout Plain Layout
31285 Tools\SpecialChar menuseparator
31286 Preferences\SpecialChar menuseparator
31287 File Handling\SpecialChar menuseparator
31288 File Format
31289 \end_layout
31290
31291 \end_inset
31292
31293  dialog).
31294  This command must occur exactly once.
31295  If the resulting file format is PDF,
31296  you need to specify the format 
31297 \begin_inset Flex Code
31298 status collapsed
31299
31300 \begin_layout Plain Layout
31301 pdf6
31302 \end_layout
31303
31304 \end_inset
31305
31306 .
31307  This is the PDF format used for including graphics.
31308  The other defined PDF formats are for document export.
31309 \end_layout
31310
31311 \begin_layout Description
31312 \begin_inset Flex Code
31313 status collapsed
31314
31315 \begin_layout Plain Layout
31316 UpdateResult
31317 \begin_inset space ~
31318 \end_inset
31319
31320 <filename>
31321 \end_layout
31322
31323 \end_inset
31324
31325  The file name of the converted file.
31326  The file name must be absolute.
31327  This command must occur exactly once.
31328 \end_layout
31329
31330 \begin_layout Subsection
31331 Preamble definitions
31332 \end_layout
31333
31334 \begin_layout Standard
31335 The external template configuration file may contain additional preamble definitions enclosed by 
31336 \begin_inset Flex Code
31337 status collapsed
31338
31339 \begin_layout Plain Layout
31340 PreambleDef
31341 \end_layout
31342
31343 \end_inset
31344
31345  \SpecialChar ldots
31346  
31347 \begin_inset Flex Code
31348 status collapsed
31349
31350 \begin_layout Plain Layout
31351 PreambleDefEnd
31352 \end_layout
31353
31354 \end_inset
31355
31356 .
31357  They can be used by the templates in the 
31358 \begin_inset Flex Code
31359 status collapsed
31360
31361 \begin_layout Plain Layout
31362 Format
31363 \end_layout
31364
31365 \end_inset
31366
31367  section.
31368 \end_layout
31369
31370 \begin_layout Section
31371 The substitution mechanism
31372 \end_layout
31373
31374 \begin_layout Standard
31375 When the external material facility invokes an external program,
31376  it is done on the basis of a command defined in the template configuration file.
31377  These commands can contain various macros that are expanded before execution.
31378  Execution always take place in the directory of the containing document.
31379 \end_layout
31380
31381 \begin_layout Standard
31382 Also,
31383  whenever external material is to be displayed,
31384  the name will be produced by the substitution mechanism,
31385  and most other commands in the template definition support substitution as well.
31386 \end_layout
31387
31388 \begin_layout Standard
31389 The available macros are the following:
31390 \end_layout
31391
31392 \begin_layout Description
31393 \begin_inset Flex Code
31394 status collapsed
31395
31396 \begin_layout Plain Layout
31397 $$AbsOrRelPathMaster
31398 \end_layout
31399
31400 \end_inset
31401
31402  The file path,
31403  absolute or relative to the master \SpecialChar LyX
31404  document.
31405 \end_layout
31406
31407 \begin_layout Description
31408 \begin_inset Flex Code
31409 status collapsed
31410
31411 \begin_layout Plain Layout
31412 $$AbsOrRelPathParent
31413 \end_layout
31414
31415 \end_inset
31416
31417  The file path,
31418  absolute or relative to the \SpecialChar LyX
31419  document.
31420 \end_layout
31421
31422 \begin_layout Description
31423 \begin_inset Flex Code
31424 status collapsed
31425
31426 \begin_layout Plain Layout
31427 $$AbsPath
31428 \end_layout
31429
31430 \end_inset
31431
31432  The absolute file path
31433 \change_inserted -712698321 1712390130
31434 .
31435  If compiling with \SpecialChar LyX
31436 ,
31437  this is the path to the file in the temporary directory
31438 \change_unchanged
31439 .
31440 \end_layout
31441
31442 \begin_layout Description
31443 \begin_inset Flex Code
31444 status collapsed
31445
31446 \begin_layout Plain Layout
31447 $$Basename
31448 \end_layout
31449
31450 \end_inset
31451
31452  The filename without path and without the extension.
31453 \end_layout
31454
31455 \begin_layout Description
31456 \begin_inset Flex Code
31457 status collapsed
31458
31459 \begin_layout Plain Layout
31460 $$Contents(
31461 \begin_inset Quotes eld
31462 \end_inset
31463
31464 filename.ext
31465 \begin_inset Quotes erd
31466 \end_inset
31467
31468 )
31469 \end_layout
31470
31471 \end_inset
31472
31473  This macro will expand to the contents of the file with the name 
31474 \begin_inset Flex Code
31475 status collapsed
31476
31477 \begin_layout Plain Layout
31478 filename.ext
31479 \end_layout
31480
31481 \end_inset
31482
31483 .
31484 \end_layout
31485
31486 \begin_layout Description
31487 \begin_inset Flex Code
31488 status collapsed
31489
31490 \begin_layout Plain Layout
31491 $$Extension
31492 \end_layout
31493
31494 \end_inset
31495
31496  The file extension (including the dot).
31497 \end_layout
31498
31499 \begin_layout Description
31500 \begin_inset Flex Code
31501 status collapsed
31502
31503 \begin_layout Plain Layout
31504 $$pngOrjpg
31505 \end_layout
31506
31507 \end_inset
31508
31509  This will be the string 
31510 \begin_inset Quotes eld
31511 \end_inset
31512
31513 jpg
31514 \begin_inset Quotes erd
31515 \end_inset
31516
31517  if the file is in JPEG format,
31518  otherwise it will be the string 
31519 \begin_inset Quotes eld
31520 \end_inset
31521
31522 png
31523 \begin_inset Quotes erd
31524 \end_inset
31525
31526 .
31527  This is useful to avoid uneeded conversions for output formats that support both PNG and JPEG fomats.
31528  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
31529  output format.
31530 \end_layout
31531
31532 \begin_layout Description
31533 \begin_inset Flex Code
31534 status collapsed
31535
31536 \begin_layout Plain Layout
31537 $$FName
31538 \end_layout
31539
31540 \end_inset
31541
31542  The filename of the file specified in the external material dialog.
31543  This is either an absolute name,
31544  or it is relative to the \SpecialChar LyX
31545  document.
31546 \end_layout
31547
31548 \begin_layout Description
31549 \begin_inset Flex Code
31550 status collapsed
31551
31552 \begin_layout Plain Layout
31553 $$FPath
31554 \end_layout
31555
31556 \end_inset
31557
31558  The path part of 
31559 \begin_inset Flex Code
31560 status collapsed
31561
31562 \begin_layout Plain Layout
31563 $$FName
31564 \end_layout
31565
31566 \end_inset
31567
31568  (absolute name or relative to the \SpecialChar LyX
31569  document).
31570 \change_inserted -712698321 1712389740
31571
31572 \end_layout
31573
31574 \begin_layout Description
31575
31576 \change_inserted -712698321 1712390181
31577 \begin_inset Flex Code
31578 status collapsed
31579
31580 \begin_layout Plain Layout
31581
31582 \change_inserted -712698321 1712389749
31583 $$OrigAbsName
31584 \change_unchanged
31585
31586 \end_layout
31587
31588 \end_inset
31589
31590  The file name with absolute path to the original directory (not the temporary directory).
31591 \change_unchanged
31592
31593 \end_layout
31594
31595 \begin_layout Description
31596 \begin_inset Flex Code
31597 status collapsed
31598
31599 \begin_layout Plain Layout
31600 $$RelPathMaster
31601 \end_layout
31602
31603 \end_inset
31604
31605  The file path,
31606  relative to the master \SpecialChar LyX
31607  document.
31608 \end_layout
31609
31610 \begin_layout Description
31611 \begin_inset Flex Code
31612 status collapsed
31613
31614 \begin_layout Plain Layout
31615 $$RelPathParent
31616 \end_layout
31617
31618 \end_inset
31619
31620  The file path,
31621  relative to the \SpecialChar LyX
31622  document.
31623 \end_layout
31624
31625 \begin_layout Description
31626 \begin_inset Flex Code
31627 status collapsed
31628
31629 \begin_layout Plain Layout
31630 $$Sysdir
31631 \end_layout
31632
31633 \end_inset
31634
31635  This macro will expand to the absolute path of the system directory.
31636  This is typically used to point to the various helper scripts that are bundled with \SpecialChar LyX
31637 .
31638 \end_layout
31639
31640 \begin_layout Description
31641 \begin_inset Flex Code
31642 status collapsed
31643
31644 \begin_layout Plain Layout
31645 $$Tempname
31646 \end_layout
31647
31648 \end_inset
31649
31650  A name and full path to a temporary file which will be automatically deleted whenever the containing document is closed,
31651  or the external material insertion deleted.
31652 \end_layout
31653
31654 \begin_layout Standard
31655 All path macros contain a trailing directory separator,
31656  so you can construct e.
31657 \begin_inset space \thinspace{}
31658 \end_inset
31659
31660 g.
31661 \begin_inset space \space{}
31662 \end_inset
31663
31664 the absolute filename with 
31665 \begin_inset Flex Code
31666 status collapsed
31667
31668 \begin_layout Plain Layout
31669 $$AbsPath$$Basename$$Extension
31670 \end_layout
31671
31672 \end_inset
31673
31674 .
31675 \end_layout
31676
31677 \begin_layout Standard
31678 The macros above are substituted in all commands unless otherwise noted.
31679  The command 
31680 \begin_inset Flex Code
31681 status collapsed
31682
31683 \begin_layout Plain Layout
31684 Product
31685 \end_layout
31686
31687 \end_inset
31688
31689  supports additionally the following substitutions if they are enabled by the 
31690 \begin_inset Flex Code
31691 status collapsed
31692
31693 \begin_layout Plain Layout
31694 Transform
31695 \end_layout
31696
31697 \end_inset
31698
31699  and 
31700 \begin_inset Flex Code
31701 status collapsed
31702
31703 \begin_layout Plain Layout
31704 TransformCommand
31705 \end_layout
31706
31707 \end_inset
31708
31709  commands:
31710 \end_layout
31711
31712 \begin_layout Description
31713 \begin_inset Flex Code
31714 status collapsed
31715
31716 \begin_layout Plain Layout
31717 $$ResizeFront
31718 \end_layout
31719
31720 \end_inset
31721
31722  The front part of the resize command.
31723 \end_layout
31724
31725 \begin_layout Description
31726 \begin_inset Flex Code
31727 status collapsed
31728
31729 \begin_layout Plain Layout
31730 $$ResizeBack
31731 \end_layout
31732
31733 \end_inset
31734
31735  The back part of the resize command.
31736 \end_layout
31737
31738 \begin_layout Description
31739 \begin_inset Flex Code
31740 status collapsed
31741
31742 \begin_layout Plain Layout
31743 $$RotateFront
31744 \end_layout
31745
31746 \end_inset
31747
31748  The front part of the rotation command.
31749 \end_layout
31750
31751 \begin_layout Description
31752 \begin_inset Flex Code
31753 status collapsed
31754
31755 \begin_layout Plain Layout
31756 $$RotateBack
31757 \end_layout
31758
31759 \end_inset
31760
31761  The back part of the rotation command.
31762 \end_layout
31763
31764 \begin_layout Standard
31765 The value string of the 
31766 \begin_inset Flex Code
31767 status collapsed
31768
31769 \begin_layout Plain Layout
31770 Option
31771 \end_layout
31772
31773 \end_inset
31774
31775  command supports additionally the following substitutions if they are enabled by the 
31776 \begin_inset Flex Code
31777 status collapsed
31778
31779 \begin_layout Plain Layout
31780 Transform
31781 \end_layout
31782
31783 \end_inset
31784
31785  and 
31786 \begin_inset Flex Code
31787 status collapsed
31788
31789 \begin_layout Plain Layout
31790 TransformOption
31791 \end_layout
31792
31793 \end_inset
31794
31795  commands:
31796 \end_layout
31797
31798 \begin_layout Description
31799 \begin_inset Flex Code
31800 status collapsed
31801
31802 \begin_layout Plain Layout
31803 $$Clip
31804 \end_layout
31805
31806 \end_inset
31807
31808  The clip option.
31809 \end_layout
31810
31811 \begin_layout Description
31812 \begin_inset Flex Code
31813 status collapsed
31814
31815 \begin_layout Plain Layout
31816 $$Extra
31817 \end_layout
31818
31819 \end_inset
31820
31821  The extra option.
31822 \end_layout
31823
31824 \begin_layout Description
31825 \begin_inset Flex Code
31826 status collapsed
31827
31828 \begin_layout Plain Layout
31829 $$Resize
31830 \end_layout
31831
31832 \end_inset
31833
31834  The resize option.
31835 \end_layout
31836
31837 \begin_layout Description
31838 \begin_inset Flex Code
31839 status collapsed
31840
31841 \begin_layout Plain Layout
31842 $$Rotate
31843 \end_layout
31844
31845 \end_inset
31846
31847  The rotation option.
31848 \end_layout
31849
31850 \begin_layout Standard
31851 You may ask why there are so many path macros.
31852  There are mainly two reasons:
31853 \end_layout
31854
31855 \begin_layout Enumerate
31856 Relative and absolute file names should remain relative or absolute,
31857  respectively.
31858  Users may have reasons to prefer either form.
31859  Relative names are useful for portable documents that should work on different machines,
31860  for example.
31861  Absolute names may be required by some programs.
31862 \end_layout
31863
31864 \begin_layout Enumerate
31865 \SpecialChar LaTeX
31866  treats relative file names differently than \SpecialChar LyX
31867  and other programs in nested included files.
31868  For \SpecialChar LyX
31869 ,
31870  a relative file name is always relative to the document that contains the file name.
31871  For \SpecialChar LaTeX
31872 ,
31873  it is always relative to the master document.
31874  These two definitions are identical if you have only one document,
31875  but differ if you have a master document that includes part documents.
31876  That means that relative filenames must be transformed when presented to \SpecialChar LaTeX
31877 .
31878  Fortunately \SpecialChar LyX
31879  does this automatically for you if you choose the right macros.
31880 \end_layout
31881
31882 \begin_layout Standard
31883 So which path macro should be used in new template definitions?
31884  The rule is not difficult:
31885 \end_layout
31886
31887 \begin_layout Itemize
31888 Use 
31889 \begin_inset Flex Code
31890 status collapsed
31891
31892 \begin_layout Plain Layout
31893 $$AbsPath
31894 \end_layout
31895
31896 \end_inset
31897
31898  if an absolute path is required.
31899 \end_layout
31900
31901 \begin_layout Itemize
31902 Use 
31903 \begin_inset Flex Code
31904 status collapsed
31905
31906 \begin_layout Plain Layout
31907 $$AbsOrRelPathMaster
31908 \end_layout
31909
31910 \end_inset
31911
31912  if the substituted string is some kind of \SpecialChar LaTeX
31913  input.
31914 \end_layout
31915
31916 \begin_layout Itemize
31917 Else use 
31918 \begin_inset Flex Code
31919 status collapsed
31920
31921 \begin_layout Plain Layout
31922 $$AbsOrRelPathParent
31923 \end_layout
31924
31925 \end_inset
31926
31927  in order to preserve the user's choice.
31928 \end_layout
31929
31930 \begin_layout Standard
31931 There are special cases where this rule does not work and e.
31932 \begin_inset space \thinspace{}
31933 \end_inset
31934
31935 g.
31936 \begin_inset space \space{}
31937 \end_inset
31938
31939 relative names are needed,
31940  but normally it will work just fine.
31941  One example for such a case is the command 
31942 \begin_inset Flex Code
31943 status collapsed
31944
31945 \begin_layout Plain Layout
31946 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
31947 \end_layout
31948
31949 \end_inset
31950
31951  in the XFig template above:
31952  We can't use the absolute name because the copier for 
31953 \begin_inset Flex Code
31954 status collapsed
31955
31956 \begin_layout Plain Layout
31957 .pstex_t
31958 \end_layout
31959
31960 \end_inset
31961
31962  files needs the relative name in order to rewrite the file content.
31963 \end_layout
31964
31965 \begin_layout Section
31966 Security discussion
31967 \begin_inset CommandInset label
31968 LatexCommand label
31969 name "sec:Security-discussion"
31970
31971 \end_inset
31972
31973
31974 \end_layout
31975
31976 \begin_layout Standard
31977 The external material feature interfaces with a lot of external programs and does so automatically,
31978  so we have to consider the security implications of this.
31979  In particular,
31980  since you have the option of including your own filenames and/or parameter strings and those are expanded into a command,
31981  it seems that it would be possible to create a malicious document which executes arbitrary commands when a user views or prints the document.
31982  This is something we definitely want to avoid.
31983 \end_layout
31984
31985 \begin_layout Standard
31986 However,
31987  since the external program commands are specified in the template configuration file only,
31988  there are no security issues if \SpecialChar LyX
31989  is properly configured with safe templates only.
31990  This is so because the external programs are invoked with the 
31991 \begin_inset Flex Code
31992 status collapsed
31993
31994 \begin_layout Plain Layout
31995 execvp
31996 \end_layout
31997
31998 \end_inset
31999
32000 -system call rather than the 
32001 \begin_inset Flex Code
32002 status collapsed
32003
32004 \begin_layout Plain Layout
32005 system
32006 \end_layout
32007
32008 \end_inset
32009
32010  system-call,
32011  so it's not possible to execute arbitrary commands from the filename or parameter section via the shell.
32012 \end_layout
32013
32014 \begin_layout Standard
32015 This also implies that you are restricted in what command strings you can use in the external material templates.
32016  In particular,
32017  pipes and redirection are not readily available.
32018  This has to be so if \SpecialChar LyX
32019  should remain safe.
32020  If you want to use some of the shell features,
32021  you should write a safe script to do this in a controlled manner,
32022  and then invoke the script from the command string.
32023  
32024 \end_layout
32025
32026 \begin_layout Standard
32027 It is possible to design a template that interacts directly with the shell,
32028  but since this would allow a malicious user to execute arbitrary commands by writing clever filenames and/or parameters,
32029  we generally recommend that you only use safe scripts that work with the 
32030 \begin_inset Flex Code
32031 status collapsed
32032
32033 \begin_layout Plain Layout
32034 execvp
32035 \end_layout
32036
32037 \end_inset
32038
32039  system call in a controlled manner.
32040  Of course,
32041  for use in a controlled environment,
32042  it can be tempting to just fall back to use ordinary shell scripts.
32043  If you do so,
32044  be aware that you 
32045 \emph on
32046 will
32047 \emph default
32048  provide an easily exploitable security hole in your system.
32049  Of course it stands to reason that such unsafe templates will never be included in the standard \SpecialChar LyX
32050  distribution,
32051  although we do encourage people to submit new templates in the open source tradition.
32052  But \SpecialChar LyX
32053  as shipped from the official distribution channels will never have unsafe templates.
32054 \end_layout
32055
32056 \begin_layout Standard
32057 Including external material provides a lot of power,
32058  and you have to be careful not to introduce security hazards with this power.
32059  A subtle error in a single line in an innocent looking script can open the door to huge security problems.
32060  So if you do not fully understand the issues,
32061  we recommend that you consult a knowledgeable security professional or the \SpecialChar LyX
32062  development team if you have any questions about whether a given template is safe or not.
32063  And do this before you use it in an uncontrolled environment.
32064 \end_layout
32065
32066 \begin_layout Chapter
32067 \start_of_appendix
32068 List of supported \SpecialChar LyX
32069  functions to be used in layouts
32070 \begin_inset CommandInset label
32071 LatexCommand label
32072 name "chap:List-of-functions"
32073
32074 \end_inset
32075
32076
32077 \end_layout
32078
32079 \begin_layout Standard
32080 \align center
32081 \begin_inset Tabular
32082 <lyxtabular version="3" rows="11" columns="8">
32083 <features tabularvalignment="middle">
32084 <column alignment="left" valignment="top">
32085 <column alignment="left" valignment="top">
32086 <column alignment="left" valignment="top">
32087 <column alignment="left" valignment="top">
32088 <column alignment="left" valignment="top">
32089 <column alignment="left" valignment="top">
32090 <column alignment="left" valignment="top">
32091 <column alignment="left" valignment="top">
32092 <row>
32093 <cell alignment="left" valignment="top" usebox="none">
32094 \begin_inset Text
32095
32096 \begin_layout Plain Layout
32097 accents
32098 \end_layout
32099
32100 \end_inset
32101 </cell>
32102 <cell alignment="left" valignment="top" usebox="none">
32103 \begin_inset Text
32104
32105 \begin_layout Plain Layout
32106 booktabs
32107 \end_layout
32108
32109 \end_inset
32110 </cell>
32111 <cell alignment="left" valignment="top" usebox="none">
32112 \begin_inset Text
32113
32114 \begin_layout Plain Layout
32115 feyn
32116 \end_layout
32117
32118 \end_inset
32119 </cell>
32120 <cell alignment="left" valignment="top" usebox="none">
32121 \begin_inset Text
32122
32123 \begin_layout Plain Layout
32124 listings
32125 \end_layout
32126
32127 \end_inset
32128 </cell>
32129 <cell alignment="center" valignment="top" usebox="none">
32130 \begin_inset Text
32131
32132 \begin_layout Plain Layout
32133 natbib
32134 \end_layout
32135
32136 \end_inset
32137 </cell>
32138 <cell alignment="center" valignment="top" usebox="none">
32139 \begin_inset Text
32140
32141 \begin_layout Plain Layout
32142 rsphrase
32143 \end_layout
32144
32145 \end_inset
32146 </cell>
32147 <cell alignment="center" valignment="top" usebox="none">
32148 \begin_inset Text
32149
32150 \begin_layout Plain Layout
32151 tfrupee
32152 \end_layout
32153
32154 \end_inset
32155 </cell>
32156 <cell alignment="center" valignment="top" usebox="none">
32157 \begin_inset Text
32158
32159 \begin_layout Plain Layout
32160 wasysym
32161 \end_layout
32162
32163 \end_inset
32164 </cell>
32165 </row>
32166 <row>
32167 <cell alignment="left" valignment="top" usebox="none">
32168 \begin_inset Text
32169
32170 \begin_layout Plain Layout
32171 amsbsy
32172 \end_layout
32173
32174 \end_inset
32175 </cell>
32176 <cell alignment="left" valignment="top" usebox="none">
32177 \begin_inset Text
32178
32179 \begin_layout Plain Layout
32180 calc
32181 \end_layout
32182
32183 \end_inset
32184 </cell>
32185 <cell alignment="left" valignment="top" usebox="none">
32186 \begin_inset Text
32187
32188 \begin_layout Plain Layout
32189 fixltx2e
32190 \end_layout
32191
32192 \end_inset
32193 </cell>
32194 <cell alignment="left" valignment="top" usebox="none">
32195 \begin_inset Text
32196
32197 \begin_layout Plain Layout
32198 longtable
32199 \end_layout
32200
32201 \end_inset
32202 </cell>
32203 <cell alignment="center" valignment="top" usebox="none">
32204 \begin_inset Text
32205
32206 \begin_layout Plain Layout
32207 nomencl
32208 \end_layout
32209
32210 \end_inset
32211 </cell>
32212 <cell alignment="center" valignment="top" usebox="none">
32213 \begin_inset Text
32214
32215 \begin_layout Plain Layout
32216 setspace
32217 \end_layout
32218
32219 \end_inset
32220 </cell>
32221 <cell alignment="center" valignment="top" usebox="none">
32222 \begin_inset Text
32223
32224 \begin_layout Plain Layout
32225 tipa
32226 \end_layout
32227
32228 \end_inset
32229 </cell>
32230 <cell alignment="center" valignment="top" usebox="none">
32231 \begin_inset Text
32232
32233 \begin_layout Plain Layout
32234 wrapfig
32235 \end_layout
32236
32237 \end_inset
32238 </cell>
32239 </row>
32240 <row>
32241 <cell alignment="left" valignment="top" usebox="none">
32242 \begin_inset Text
32243
32244 \begin_layout Plain Layout
32245 amscd
32246 \end_layout
32247
32248 \end_inset
32249 </cell>
32250 <cell alignment="left" valignment="top" usebox="none">
32251 \begin_inset Text
32252
32253 \begin_layout Plain Layout
32254 CJK
32255 \end_layout
32256
32257 \end_inset
32258 </cell>
32259 <cell alignment="left" valignment="top" usebox="none">
32260 \begin_inset Text
32261
32262 \begin_layout Plain Layout
32263 float
32264 \end_layout
32265
32266 \end_inset
32267 </cell>
32268 <cell alignment="left" valignment="top" usebox="none">
32269 \begin_inset Text
32270
32271 \begin_layout Plain Layout
32272 lyxskak
32273 \end_layout
32274
32275 \end_inset
32276 </cell>
32277 <cell alignment="center" valignment="top" usebox="none">
32278 \begin_inset Text
32279
32280 \begin_layout Plain Layout
32281 pdfpages
32282 \end_layout
32283
32284 \end_inset
32285 </cell>
32286 <cell alignment="center" valignment="top" usebox="none">
32287 \begin_inset Text
32288
32289 \begin_layout Plain Layout
32290 shapepar
32291 \end_layout
32292
32293 \end_inset
32294 </cell>
32295 <cell alignment="center" valignment="top" usebox="none">
32296 \begin_inset Text
32297
32298 \begin_layout Plain Layout
32299 tipx
32300 \end_layout
32301
32302 \end_inset
32303 </cell>
32304 <cell alignment="center" valignment="top" usebox="none">
32305 \begin_inset Text
32306
32307 \begin_layout Plain Layout
32308 xargs
32309 \end_layout
32310
32311 \end_inset
32312 </cell>
32313 </row>
32314 <row>
32315 <cell alignment="left" valignment="top" usebox="none">
32316 \begin_inset Text
32317
32318 \begin_layout Plain Layout
32319 amsmath
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 color
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 framed
32338 \end_layout
32339
32340 \end_inset
32341 </cell>
32342 <cell alignment="left" valignment="top" usebox="none">
32343 \begin_inset Text
32344
32345 \begin_layout Plain Layout
32346 makeidx
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 pifont
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 slashed
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 tone
32374 \end_layout
32375
32376 \end_inset
32377 </cell>
32378 <cell alignment="center" valignment="top" usebox="none">
32379 \begin_inset Text
32380
32381 \begin_layout Plain Layout
32382 xcolor
32383 \end_layout
32384
32385 \end_inset
32386 </cell>
32387 </row>
32388 <row>
32389 <cell alignment="left" valignment="top" usebox="none">
32390 \begin_inset Text
32391
32392 \begin_layout Plain Layout
32393 amssymb
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 covington
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 graphicx
32412 \end_layout
32413
32414 \end_inset
32415 </cell>
32416 <cell alignment="left" valignment="top" usebox="none">
32417 \begin_inset Text
32418
32419 \begin_layout Plain Layout
32420 marvosym
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 pmboxdraw
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 soul
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 txfonts
32448 \end_layout
32449
32450 \end_inset
32451 </cell>
32452 <cell alignment="center" valignment="top" usebox="none">
32453 \begin_inset Text
32454
32455 \begin_layout Plain Layout
32456 xy
32457 \end_layout
32458
32459 \end_inset
32460 </cell>
32461 </row>
32462 <row>
32463 <cell alignment="left" valignment="top" usebox="none">
32464 \begin_inset Text
32465
32466 \begin_layout Plain Layout
32467 amstext
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 csquotes
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 hhline
32486 \end_layout
32487
32488 \end_inset
32489 </cell>
32490 <cell alignment="left" valignment="top" usebox="none">
32491 \begin_inset Text
32492
32493 \begin_layout Plain Layout
32494 mathdesign
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 polyglossia
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 splitidx
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 ulem
32522 \end_layout
32523
32524 \end_inset
32525 </cell>
32526 <cell alignment="center" valignment="top" usebox="none">
32527 \begin_inset Text
32528
32529 \begin_layout Plain Layout
32530 yhmath
32531 \end_layout
32532
32533 \end_inset
32534 </cell>
32535 </row>
32536 <row>
32537 <cell alignment="left" valignment="top" usebox="none">
32538 \begin_inset Text
32539
32540 \begin_layout Plain Layout
32541 amsthm
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 dvipost
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 hyperref
32560 \end_layout
32561
32562 \end_inset
32563 </cell>
32564 <cell alignment="left" valignment="top" usebox="none">
32565 \begin_inset Text
32566
32567 \begin_layout Plain Layout
32568 mathdots
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 prettyref
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 subfig
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 undertilde
32596 \end_layout
32597
32598 \end_inset
32599 </cell>
32600 <cell alignment="center" valignment="top" usebox="none">
32601 \begin_inset Text
32602
32603 \begin_layout Plain Layout
32604
32605 \end_layout
32606
32607 \end_inset
32608 </cell>
32609 </row>
32610 <row>
32611 <cell alignment="left" valignment="top" usebox="none">
32612 \begin_inset Text
32613
32614 \begin_layout Plain Layout
32615 array
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 endnotes
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 ifsym
32634 \end_layout
32635
32636 \end_inset
32637 </cell>
32638 <cell alignment="left" valignment="top" usebox="none">
32639 \begin_inset Text
32640
32641 \begin_layout Plain Layout
32642 mathrsfs
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 pxfonts
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 subscript
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 units
32670 \end_layout
32671
32672 \end_inset
32673 </cell>
32674 <cell alignment="center" valignment="top" usebox="none">
32675 \begin_inset Text
32676
32677 \begin_layout Plain Layout
32678
32679 \end_layout
32680
32681 \end_inset
32682 </cell>
32683 </row>
32684 <row>
32685 <cell alignment="left" valignment="top" usebox="none">
32686 \begin_inset Text
32687
32688 \begin_layout Plain Layout
32689 ascii
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 enumitem
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 ifthen
32708 \end_layout
32709
32710 \end_inset
32711 </cell>
32712 <cell alignment="left" valignment="top" usebox="none">
32713 \begin_inset Text
32714
32715 \begin_layout Plain Layout
32716 mhchem
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 refstyle
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 tcolorbox
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 url
32744 \end_layout
32745
32746 \end_inset
32747 </cell>
32748 <cell alignment="center" valignment="top" usebox="none">
32749 \begin_inset Text
32750
32751 \begin_layout Plain Layout
32752
32753 \end_layout
32754
32755 \end_inset
32756 </cell>
32757 </row>
32758 <row>
32759 <cell alignment="left" valignment="top" usebox="none">
32760 \begin_inset Text
32761
32762 \begin_layout Plain Layout
32763 bbding
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 esint
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 jurabib
32782 \end_layout
32783
32784 \end_inset
32785 </cell>
32786 <cell alignment="left" valignment="top" usebox="none">
32787 \begin_inset Text
32788
32789 \begin_layout Plain Layout
32790 multicol
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 rotating
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 textcomp
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 varioref
32818 \end_layout
32819
32820 \end_inset
32821 </cell>
32822 <cell alignment="center" valignment="top" usebox="none">
32823 \begin_inset Text
32824
32825 \begin_layout Plain Layout
32826
32827 \end_layout
32828
32829 \end_inset
32830 </cell>
32831 </row>
32832 <row>
32833 <cell alignment="center" valignment="top" usebox="none">
32834 \begin_inset Text
32835
32836 \begin_layout Plain Layout
32837 bm
32838 \end_layout
32839
32840 \end_inset
32841 </cell>
32842 <cell alignment="center" valignment="top" usebox="none">
32843 \begin_inset Text
32844
32845 \begin_layout Plain Layout
32846 fancybox
32847 \end_layout
32848
32849 \end_inset
32850 </cell>
32851 <cell alignment="center" valignment="top" usebox="none">
32852 \begin_inset Text
32853
32854 \begin_layout Plain Layout
32855 latexsym
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 multirow
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 rotfloat
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 textgreek
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 verbatim
32892 \end_layout
32893
32894 \end_inset
32895 </cell>
32896 <cell alignment="center" valignment="top" usebox="none">
32897 \begin_inset Text
32898
32899 \begin_layout Plain Layout
32900
32901 \end_layout
32902
32903 \end_inset
32904 </cell>
32905 </row>
32906 </lyxtabular>
32907
32908 \end_inset
32909
32910
32911 \end_layout
32912
32913 \begin_layout Chapter
32914 Names of available colors to be used in layouts
32915 \begin_inset CommandInset label
32916 LatexCommand label
32917 name "chap:Names-of-colors"
32918
32919 \end_inset
32920
32921
32922 \end_layout
32923
32924 \begin_layout Standard
32925 The colors listed below are the standard colors and those that you can adjust in the \SpecialChar LyX
32926  preferences.
32927 \end_layout
32928
32929 \begin_layout Section
32930 Color functions
32931 \end_layout
32932
32933 \begin_layout Standard
32934 The following are no real colors,
32935  but rather act on color definitions:
32936 \end_layout
32937
32938 \begin_layout Description
32939 ignore The color is ignored
32940 \end_layout
32941
32942 \begin_layout Description
32943 inherit The color is inherited
32944 \end_layout
32945
32946 \begin_layout Description
32947 none
32948 \family roman
32949 \series medium
32950 \shape up
32951 \size normal
32952 \emph off
32953 \bar no
32954 \strikeout off
32955 \uuline off
32956 \uwave off
32957 \noun off
32958 \color none
32959  No particular color – clear or default
32960 \end_layout
32961
32962 \begin_layout Section
32963 Static colors
32964 \end_layout
32965
32966 \begin_layout Standard
32967 These are fixed colors that cannot be customized.
32968  Please do 
32969 \emph on
32970 not
32971 \emph default
32972  use these colors in layout definitions,
32973  since they will not work well with some color themes (such as dark themes):
32974 \end_layout
32975
32976 \begin_layout Description
32977 black
32978 \end_layout
32979
32980 \begin_layout Description
32981 white
32982 \end_layout
32983
32984 \begin_layout Description
32985 blue
32986 \end_layout
32987
32988 \begin_layout Description
32989 brown
32990 \end_layout
32991
32992 \begin_layout Description
32993 cyan
32994 \end_layout
32995
32996 \begin_layout Description
32997 darkgray
32998 \end_layout
32999
33000 \begin_layout Description
33001 gray
33002 \end_layout
33003
33004 \begin_layout Description
33005 green
33006 \end_layout
33007
33008 \begin_layout Description
33009 lightgray
33010 \end_layout
33011
33012 \begin_layout Description
33013 lime
33014 \end_layout
33015
33016 \begin_layout Description
33017 magenta
33018 \end_layout
33019
33020 \begin_layout Description
33021 olive
33022 \end_layout
33023
33024 \begin_layout Description
33025 orange
33026 \end_layout
33027
33028 \begin_layout Description
33029 pink
33030 \end_layout
33031
33032 \begin_layout Description
33033 purple
33034 \end_layout
33035
33036 \begin_layout Description
33037 red
33038 \end_layout
33039
33040 \begin_layout Description
33041 teal
33042 \end_layout
33043
33044 \begin_layout Description
33045 violet
33046 \end_layout
33047
33048 \begin_layout Description
33049 yellow
33050 \end_layout
33051
33052 \begin_layout Section
33053 Dynamic colors
33054 \end_layout
33055
33056 \begin_layout Standard
33057 These are the colors allocated to specific elements in 
33058 \begin_inset Info
33059 type  "menu"
33060 arg   "dialog-show prefs"
33061 \end_inset
33062
33063 :
33064 \end_layout
33065
33066 \begin_layout Description
33067 added_space Added space color
33068 \end_layout
33069
33070 \begin_layout Description
33071 addedtext Added text color
33072 \end_layout
33073
33074 \begin_layout Description
33075 appendix Appendix marker color
33076 \end_layout
33077
33078 \begin_layout Description
33079 background Background color
33080 \end_layout
33081
33082 \begin_layout Description
33083 bookmark Bookmark indicator color
33084 \end_layout
33085
33086 \begin_layout Description
33087 bottomarea Bottom area color
33088 \end_layout
33089
33090 \begin_layout Description
33091 branchlabel Label color for branches
33092 \end_layout
33093
33094 \begin_layout Description
33095 buttonbg Color used for button background
33096 \end_layout
33097
33098 \begin_layout Description
33099 buttonframe Color for inset button frames
33100 \end_layout
33101
33102 \begin_layout Description
33103 buttonhoverbg Color used for button background under focus
33104 \end_layout
33105
33106 \begin_layout Description
33107 buttonhoverbg_broken Color used for broken inset button under focus
33108 \end_layout
33109
33110 \begin_layout Description
33111 changebar Changebar color
33112 \end_layout
33113
33114 \begin_layout Description
33115 changedtextauthor1 Changed text color author 1
33116 \end_layout
33117
33118 \begin_layout Description
33119 changedtextauthor2 Changed text color author 2
33120 \end_layout
33121
33122 \begin_layout Description
33123 changedtextauthor3 Changed text color author 3
33124 \end_layout
33125
33126 \begin_layout Description
33127 changedtextauthor4 Changed text color author 4
33128 \end_layout
33129
33130 \begin_layout Description
33131 changedtextauthor5 Changed text color author 5
33132 \end_layout
33133
33134 \begin_layout Description
33135 changedtextcomparison Changed text color document comparison (workarea)
33136 \end_layout
33137
33138 \begin_layout Description
33139 collapsible Collapsible insets text color
33140 \end_layout
33141
33142 \begin_layout Description
33143 collapsibleframe Collapsible insets framecolor
33144 \end_layout
33145
33146 \begin_layout Description
33147 command Text color for command insets
33148 \end_layout
33149
33150 \begin_layout Description
33151 commandbg Background color for command insets
33152 \end_layout
33153
33154 \begin_layout Description
33155 commandframe Frame color for command insets
33156 \end_layout
33157
33158 \begin_layout Description
33159 command_broken Text color for broken (reference) insets
33160 \end_layout
33161
33162 \begin_layout Description
33163 commandbg_broken Background color for broken insets
33164 \end_layout
33165
33166 \begin_layout Description
33167 commandframe_broken Frame color for broken insets
33168 \end_layout
33169
33170 \begin_layout Description
33171 comment Label color for comments
33172 \end_layout
33173
33174 \begin_layout Description
33175 commentbg Background color of comments
33176 \end_layout
33177
33178 \begin_layout Description
33179 cursor Cursor color
33180 \end_layout
33181
33182 \begin_layout Description
33183 deletedtext Deleted text color
33184 \end_layout
33185
33186 \begin_layout Description
33187 deletedtextmodifier Deleted text modifying color (for adjusting the brightness)
33188 \end_layout
33189
33190 \begin_layout Description
33191 depthbar Color for the depth bars in the margin
33192 \end_layout
33193
33194 \begin_layout Description
33195 eolmarker End of line marker color
33196 \end_layout
33197
33198 \begin_layout Description
33199 error Color of the \SpecialChar LaTeX
33200  error box
33201 \end_layout
33202
33203 \begin_layout Description
33204 footlabel Label color for footnotes
33205 \end_layout
33206
33207 \begin_layout Description
33208 foreground Foreground color
33209 \end_layout
33210
33211 \begin_layout Description
33212 graphicsbg Graphics inset background color
33213 \end_layout
33214
33215 \begin_layout Description
33216 greyedoutbg Background color of greyedout inset
33217 \end_layout
33218
33219 \begin_layout Description
33220 greyedoutlabel Label color for greyedout insets
33221 \end_layout
33222
33223 \begin_layout Description
33224 greyedouttext Color for greyedout inset text
33225 \end_layout
33226
33227 \begin_layout Description
33228 indexlabel Label color for index insets
33229 \end_layout
33230
33231 \begin_layout Description
33232 inlinecompletion Inline completion color
33233 \end_layout
33234
33235 \begin_layout Description
33236 insetbg Inset marker background color
33237 \end_layout
33238
33239 \begin_layout Description
33240 insetframe Inset marker frame color
33241 \end_layout
33242
33243 \begin_layout Description
33244 language Color for marking foreign language words
33245 \end_layout
33246
33247 \begin_layout Description
33248 latex Text color in \SpecialChar LaTeX
33249  mode
33250 \end_layout
33251
33252 \begin_layout Description
33253 listingsbg Background color of listings inset
33254 \end_layout
33255
33256 \begin_layout Description
33257 marginlabel Label color for margin notes
33258 \end_layout
33259
33260 \begin_layout Description
33261 math Math inset text color
33262 \end_layout
33263
33264 \begin_layout Description
33265 mathbg Math inset background color
33266 \end_layout
33267
33268 \begin_layout Description
33269 mathcorners Math inset frame color not under focus
33270 \end_layout
33271
33272 \begin_layout Description
33273 mathframe Math inset frame color under focus
33274 \end_layout
33275
33276 \begin_layout Description
33277 mathline Math line color
33278 \end_layout
33279
33280 \begin_layout Description
33281 mathmacrobg Macro math inset background color
33282 \end_layout
33283
33284 \begin_layout Description
33285 mathmacroblend Macro math blended color
33286 \end_layout
33287
33288 \begin_layout Description
33289 mathmacroframe Macro math frame color
33290 \end_layout
33291
33292 \begin_layout Description
33293 mathmacrohoverbg Macro math inset background color hovered
33294 \end_layout
33295
33296 \begin_layout Description
33297 mathmacrolabel Macro math label color
33298 \end_layout
33299
33300 \begin_layout Description
33301 mathmacronewarg Macro template color for new parameters
33302 \end_layout
33303
33304 \begin_layout Description
33305 mathmacrooldarg Macro template color for old parameters
33306 \end_layout
33307
33308 \begin_layout Description
33309 newpage New page color
33310 \end_layout
33311
33312 \begin_layout Description
33313 nonunique_inlinecompletion Inline completion color for the non-unique part
33314 \end_layout
33315
33316 \begin_layout Description
33317 note Label color for notes
33318 \end_layout
33319
33320 \begin_layout Description
33321 notebg Background color of notes
33322 \end_layout
33323
33324 \begin_layout Description
33325 pagebreak Page break/line break color
33326 \end_layout
33327
33328 \begin_layout Description
33329 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
33330 \end_layout
33331
33332 \begin_layout Description
33333 phantomtext Text color for phantom insets
33334 \end_layout
33335
33336 \begin_layout Description
33337 preview The color used for previews
33338 \end_layout
33339
33340 \begin_layout Description
33341 previewframe Preview frame color
33342 \end_layout
33343
33344 \begin_layout Description
33345 regexpframe Color for regexp frame
33346 \end_layout
33347
33348 \begin_layout Description
33349 scroll Color that indicates when a row can be scrolled 
33350 \end_layout
33351
33352 \begin_layout Description
33353 selection Background color of selected text
33354 \end_layout
33355
33356 \begin_layout Description
33357 selectionmath Foreground color of selected text in math insets
33358 \end_layout
33359
33360 \begin_layout Description
33361 selectiontext Foreground color of selected text
33362 \end_layout
33363
33364 \begin_layout Description
33365 shadedbg Background color of shaded box
33366 \end_layout
33367
33368 \begin_layout Description
33369 special Special chars text color
33370 \end_layout
33371
33372 \begin_layout Description
33373 tabularline Table line color
33374 \end_layout
33375
33376 \begin_layout Description
33377 tabularonoffline Table line color
33378 \end_layout
33379
33380 \begin_layout Description
33381 textlabel1 Color 1 of layout and custom inset labels
33382 \end_layout
33383
33384 \begin_layout Description
33385 textlabel2 Color 2 of layout and custom inset labels
33386 \end_layout
33387
33388 \begin_layout Description
33389 textlabel3 Color 3 of layout and custom inset labels
33390 \end_layout
33391
33392 \begin_layout Description
33393 urllabel Label color for URL insets
33394 \end_layout
33395
33396 \begin_layout Description
33397 urltext Color for URL inset text
33398 \end_layout
33399
33400 \end_body
33401 \end_document