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