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