]> git.lyx.org Git - lyx.git/blob - lib/doc/Customization.lyx
Fix default mark (#8454)
[lyx.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 598
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that this document prints
12 % out as advertised. If you mess with this preamble,
13 % parts of this document may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC is numbered roman
19 % and a pdf-bookmark for the TOC is added
20 \let\myTOC\tableofcontents
21 \renewcommand\tableofcontents{%
22   \frontmatter
23   \pdfbookmark[1]{\contentsname}{}
24   \myTOC
25   \mainmatter }
26
27 % increase link area for cross-references and autoname them,
28 \AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
29 \@ifundefined{extrasenglish}{\usepackage[english]{babel}}{}
30 \@ifpackageloaded{babel}{
31  \addto\extrasenglish{%
32   \renewcommand*{\equationautorefname}[1]{}%
33   \renewcommand{\sectionautorefname}{sec.\negthinspace}%
34   \renewcommand{\subsectionautorefname}{sec.\negthinspace}%
35   \renewcommand{\subsubsectionautorefname}{sec.\negthinspace}%
36  }
37 }{}
38 \end_preamble
39 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
40 \use_default_options false
41 \begin_modules
42 logicalmkup
43 \end_modules
44 \maintain_unincluded_children no
45 \language english
46 \language_package default
47 \inputencoding utf8
48 \fontencoding auto
49 \font_roman "lmodern" "default"
50 \font_sans "lmss" "default"
51 \font_typewriter "lmtt" "default"
52 \font_math "auto" "auto"
53 \font_default_family default
54 \use_non_tex_fonts false
55 \font_sc false
56 \font_roman_osf false
57 \font_sans_osf false
58 \font_typewriter_osf false
59 \font_sf_scale 100 100
60 \font_tt_scale 100 100
61 \use_microtype false
62 \use_dash_ligatures true
63 \graphics default
64 \default_output_format pdf2
65 \output_sync 0
66 \bibtex_command default
67 \index_command default
68 \paperfontsize 12
69 \spacing single
70 \use_hyperref true
71 \pdf_title "LyX Configuration Manual"
72 \pdf_author "LyX Team"
73 \pdf_subject "LyX-documentation Customization"
74 \pdf_keywords "LyX, documentation, customization"
75 \pdf_bookmarks true
76 \pdf_bookmarksnumbered true
77 \pdf_bookmarksopen true
78 \pdf_bookmarksopenlevel 1
79 \pdf_breaklinks false
80 \pdf_pdfborder false
81 \pdf_colorlinks true
82 \pdf_backref false
83 \pdf_pdfusetitle false
84 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue,pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
85 \papersize default
86 \use_geometry false
87 \use_package amsmath 1
88 \use_package amssymb 1
89 \use_package cancel 1
90 \use_package esint 1
91 \use_package mathdots 1
92 \use_package mathtools 1
93 \use_package mhchem 1
94 \use_package stackrel 1
95 \use_package stmaryrd 1
96 \use_package undertilde 1
97 \cite_engine basic
98 \cite_engine_type default
99 \biblio_style plain
100 \use_bibtopic false
101 \use_indices false
102 \paperorientation portrait
103 \suppress_date false
104 \justification true
105 \use_refstyle 0
106 \use_minted 0
107 \use_lineno 0
108 \notefontcolor #0000ff
109 \branch OutDated
110 \selected 0
111 \filename_suffix 0
112 \color #f5fae7
113 \end_branch
114 \index Index
115 \shortcut idx
116 \color #008000
117 \end_index
118 \secnumdepth 3
119 \tocdepth 3
120 \paragraph_separation indent
121 \paragraph_indentation default
122 \is_math_indent 1
123 \math_indentation default
124 \math_numbering_side default
125 \quotes_style english
126 \dynamic_quotes 0
127 \papercolumns 1
128 \papersides 2
129 \paperpagestyle headings
130 \tablestyle default
131 \tracking_changes true
132 \output_changes false
133 \change_bars false
134 \postpone_fragile_content false
135 \html_math_output 0
136 \html_css_as_file 0
137 \html_be_strict true
138 \docbook_table_output 0
139 \author -970929547 "Thibaut Cuvelier"
140 \author -712698321 "Jürgen Spitzmüller"
141 \author -495245474 "Jean-Marc Lasgouttes"
142 \author 5863208 "ab"
143 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
144 \author 1075283030 "Thibaut"
145 \end_header
146
147 \begin_body
148
149 \begin_layout Title
150 Customizing \SpecialChar LyX
151 : Features for the Advanced User
152 \end_layout
153
154 \begin_layout Author
155 by the \SpecialChar LyX
156  Team
157 \begin_inset Foot
158 status collapsed
159
160 \begin_layout Plain Layout
161 \noindent
162 If you have comments or error corrections, please send them to the \SpecialChar LyX
163  Documentatio
164 n mailing list, 
165 \begin_inset CommandInset href
166 LatexCommand href
167 target "lyx-docs@lists.lyx.org"
168 type "mailto:"
169 literal "false"
170
171 \end_inset
172
173 .
174  Include 
175 \begin_inset Quotes eld
176 \end_inset
177
178 [Customization]
179 \begin_inset Quotes erd
180 \end_inset
181
182  in the subject header, and please cc the current maintainer of this file,
183  Richard Heck <rgheck@comcast.net>.
184 \end_layout
185
186 \end_inset
187
188
189 \begin_inset Newline newline
190 \end_inset
191
192
193 \begin_inset Newline newline
194 \end_inset
195
196 Version 2.3.x 
197 \end_layout
198
199 \begin_layout Standard
200 \begin_inset CommandInset toc
201 LatexCommand tableofcontents
202
203 \end_inset
204
205
206 \end_layout
207
208 \begin_layout Standard
209 \begin_inset Note Note
210 status open
211
212 \begin_layout Plain Layout
213 Please use change tracking when modifying this document.
214  This makes it easier for our translators to recognize things that have
215  been changed, and it helps the maintainer keep up-to-date with what's been
216  done.
217 \end_layout
218
219 \end_inset
220
221
222 \end_layout
223
224 \begin_layout Chapter
225 Introduction
226 \end_layout
227
228 \begin_layout Standard
229 This manual covers the customization features present in \SpecialChar LyX
230 .
231  In it, we discuss issues like keyboard shortcuts, screen previewing options,
232  printer options, sending commands to \SpecialChar LyX
233  via the \SpecialChar LyX
234  Server, internationalization,
235  installing new \SpecialChar LaTeX
236  classes and \SpecialChar LyX
237  layouts, etc.
238  We can't possibly hope to touch on everything you can change—our developers
239  add new features faster than we can document them—but we will explain the
240  most common customizations and hopefully point you in the right direction
241  for some of the more obscure ones.
242 \end_layout
243
244 \begin_layout Standard
245 \begin_inset Branch OutDated
246 inverted 0
247 status collapsed
248
249 \begin_layout Standard
250 Information from previous versions of this document that now seems to be
251  outdated is contained in the OutDated branch of this document.
252  By default, this information will not appear in the \SpecialChar LaTeX
253  output.
254 \end_layout
255
256 \end_inset
257
258
259 \end_layout
260
261 \begin_layout Chapter
262 \SpecialChar LyX
263  configuration files
264 \end_layout
265
266 \begin_layout Standard
267 This chapter aims to help you to find your way through the \SpecialChar LyX
268  configuration
269  files.
270  Before continuing to read this chapter, you should find out where your
271  \SpecialChar LyX
272  library and user directories are by using 
273 \begin_inset Flex Noun
274 status collapsed
275
276 \begin_layout Plain Layout
277 Help\SpecialChar menuseparator
278 About
279 \begin_inset space ~
280 \end_inset
281
282 LyX
283 \end_layout
284
285 \end_inset
286
287 .
288  The library directory is the place where \SpecialChar LyX
289  places its system-wide configuration
290  files; the user directory is where you can place your modified versions.
291  We will call the former 
292 \begin_inset Flex Code
293 status collapsed
294
295 \begin_layout Plain Layout
296 LyXDir
297 \end_layout
298
299 \end_inset
300
301  and the latter 
302 \begin_inset Flex Noun
303 status collapsed
304
305 \begin_layout Plain Layout
306 UserDir
307 \end_layout
308
309 \end_inset
310
311  in the remainder of this document.
312  
313 \end_layout
314
315 \begin_layout Section
316 What's in 
317 \begin_inset Flex Code
318 status collapsed
319
320 \begin_layout Plain Layout
321 LyXDir
322 \end_layout
323
324 \end_inset
325
326 ?
327 \end_layout
328
329 \begin_layout Standard
330 \begin_inset Flex Code
331 status collapsed
332
333 \begin_layout Plain Layout
334 LyXDir
335 \end_layout
336
337 \end_inset
338
339  and its sub-directories contain a number of files and that can be used
340  to customize \SpecialChar LyX
341 's behavior.
342  You can change many of these files from within \SpecialChar LyX
343  itself through the 
344 \begin_inset Flex Noun
345 status collapsed
346
347 \begin_layout Plain Layout
348 Tools\SpecialChar menuseparator
349 Preferences
350 \end_layout
351
352 \end_inset
353
354  dialog.
355  Most customization that you will want to do in \SpecialChar LyX
356  is possible through this
357  dialog.
358  However, many other inner aspects of \SpecialChar LyX
359  can be customized by modifying the
360  files in 
361 \begin_inset Flex Code
362 status collapsed
363
364 \begin_layout Plain Layout
365 LyXDir
366 \end_layout
367
368 \end_inset
369
370 .
371  These files fall in different categories, described in the following subsection
372 s.
373 \end_layout
374
375 \begin_layout Subsection
376 Automatically generated files
377 \end_layout
378
379 \begin_layout Standard
380 The files, which are to be found in 
381 \begin_inset Flex Noun
382 status collapsed
383
384 \begin_layout Plain Layout
385 UserDir
386 \end_layout
387
388 \end_inset
389
390 , are generated when you configure \SpecialChar LyX
391 .
392  They contain various default values that are guessed by inspection.
393  In general, it is not a good idea to modify them, since they might be overwritt
394 en at any time.
395 \end_layout
396
397 \begin_layout Labeling
398 \labelwidthstring 00.00.0000
399 \begin_inset Flex Code
400 status collapsed
401
402 \begin_layout Plain Layout
403 lyxrc.defaults
404 \end_layout
405
406 \end_inset
407
408  contains defaults for various commands.
409 \end_layout
410
411 \begin_layout Labeling
412 \labelwidthstring 00.00.0000
413 \begin_inset Flex Code
414 status collapsed
415
416 \begin_layout Plain Layout
417 packages.lst
418 \end_layout
419
420 \end_inset
421
422  contains the list of packages that have been recognized by \SpecialChar LyX
423 .
424  It is currently unused by the \SpecialChar LyX
425  program itself, but the information extracted,
426  and more, is made available with 
427 \begin_inset Flex Noun
428 status collapsed
429
430 \begin_layout Plain Layout
431 Help\SpecialChar menuseparator
432 \SpecialChar LaTeX
433
434 \begin_inset space ~
435 \end_inset
436
437 Configuration
438 \end_layout
439
440 \end_inset
441
442 .
443 \end_layout
444
445 \begin_layout Labeling
446 \labelwidthstring 00.00.0000
447 \begin_inset Flex Code
448 status collapsed
449
450 \begin_layout Plain Layout
451 textclass.lst
452 \end_layout
453
454 \end_inset
455
456  the list of text classes that have been found in your 
457 \begin_inset Flex Code
458 status collapsed
459
460 \begin_layout Plain Layout
461 layout/
462 \end_layout
463
464 \end_inset
465
466  directories, along with the associated \SpecialChar LaTeX
467  document class and their description.
468 \end_layout
469
470 \begin_layout Labeling
471 \labelwidthstring 00.00.0000
472 \begin_inset Flex Code
473 status collapsed
474
475 \begin_layout Plain Layout
476 lyxmodules.lst
477 \end_layout
478
479 \end_inset
480
481  the list of layout modules found in your 
482 \begin_inset Flex Code
483 status collapsed
484
485 \begin_layout Plain Layout
486 layout/
487 \end_layout
488
489 \end_inset
490
491  directories
492 \end_layout
493
494 \begin_layout Labeling
495 \labelwidthstring 00.00.0000
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500 *files.lst
501 \end_layout
502
503 \end_inset
504
505  lists of various sorts of \SpecialChar LaTeX
506 -related files found on your system
507 \end_layout
508
509 \begin_layout Labeling
510 \labelwidthstring 00.00.0000
511 \begin_inset Flex Code
512 status collapsed
513
514 \begin_layout Plain Layout
515 doc/\SpecialChar LaTeX
516 Config.lyx
517 \end_layout
518
519 \end_inset
520
521  is automatically generated during configuration from the file 
522 \begin_inset Flex Code
523 status collapsed
524
525 \begin_layout Plain Layout
526 \SpecialChar LaTeX
527 Config.lyx.in
528 \end_layout
529
530 \end_inset
531
532 .
533  It contains information on your \SpecialChar LaTeX
534  configuration.
535 \end_layout
536
537 \begin_layout Subsection
538 Directories
539 \end_layout
540
541 \begin_layout Standard
542 These directories are duplicated between 
543 \begin_inset Flex Code
544 status collapsed
545
546 \begin_layout Plain Layout
547 LyXDir
548 \end_layout
549
550 \end_inset
551
552  and 
553 \begin_inset Flex Code
554 status collapsed
555
556 \begin_layout Plain Layout
557 UserDir
558 \end_layout
559
560 \end_inset
561
562 .
563  If a particular files exists in both places, the one in 
564 \begin_inset Flex Code
565 status collapsed
566
567 \begin_layout Plain Layout
568 UserDir
569 \end_layout
570
571 \end_inset
572
573  will be used.
574 \end_layout
575
576 \begin_layout Labeling
577 \labelwidthstring 00.00.0000
578 \begin_inset Flex Code
579 status collapsed
580
581 \begin_layout Plain Layout
582 bind/
583 \end_layout
584
585 \end_inset
586
587  this directory contains files with the extension 
588 \begin_inset Flex Code
589 status collapsed
590
591 \begin_layout Plain Layout
592 .bind
593 \end_layout
594
595 \end_inset
596
597  that define the keybindings used in \SpecialChar LyX
598 .
599  If there exists an internationalized version of the bind file named 
600 \begin_inset Flex Code
601 status collapsed
602
603 \begin_layout Plain Layout
604 $LANG_xxx.bind
605 \end_layout
606
607 \end_inset
608
609 , that will be used first.
610 \end_layout
611
612 \begin_layout Labeling
613 \labelwidthstring 00.00.0000
614 \begin_inset Flex Code
615 status collapsed
616
617 \begin_layout Plain Layout
618 citeengines/
619 \end_layout
620
621 \end_inset
622
623  contains files with the extension 
624 \begin_inset Flex Code
625 status collapsed
626
627 \begin_layout Plain Layout
628 .citeengine
629 \end_layout
630
631 \end_inset
632
633  which define the diverse citation possibilities (natbib, biblatex etc.).
634  See 
635 \begin_inset CommandInset ref
636 LatexCommand ref
637 reference "subsec:Cite-Engine-Files"
638 plural "false"
639 caps "false"
640 noprefix "false"
641
642 \end_inset
643
644  for details.
645 \end_layout
646
647 \begin_layout Labeling
648 \labelwidthstring 00.00.0000
649 \begin_inset Flex Code
650 status collapsed
651
652 \begin_layout Plain Layout
653 clipart/
654 \end_layout
655
656 \end_inset
657
658  contains graphics files that can be included in documents.
659  
660 \end_layout
661
662 \begin_layout Labeling
663 \labelwidthstring 00.00.0000
664 \begin_inset Flex Code
665 status collapsed
666
667 \begin_layout Plain Layout
668 doc/
669 \end_layout
670
671 \end_inset
672
673  contains \SpecialChar LyX
674  documentation files (including the one you are currently reading).
675  The file 
676 \begin_inset Flex Code
677 status collapsed
678
679 \begin_layout Plain Layout
680 \SpecialChar LaTeX
681 Config.lyx
682 \end_layout
683
684 \end_inset
685
686  deserves special attention, as noted above.
687  The internationalized help docs are in subdirectories 
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692 doc/xx
693 \end_layout
694
695 \end_inset
696
697  where 
698 \begin_inset Quotes eld
699 \end_inset
700
701 xx
702 \begin_inset Quotes erd
703 \end_inset
704
705  is the ISO language code.
706  See 
707 \begin_inset CommandInset ref
708 LatexCommand ref
709 reference "cha:Internationalizing-LyX"
710
711 \end_inset
712
713  for details.
714 \end_layout
715
716 \begin_layout Labeling
717 \labelwidthstring 00.00.0000
718 \begin_inset Flex Code
719 status collapsed
720
721 \begin_layout Plain Layout
722 examples/
723 \end_layout
724
725 \end_inset
726
727  contains example files that explain how to use some features.
728  In the file browser, press the 
729 \begin_inset Flex Noun
730 status collapsed
731
732 \begin_layout Plain Layout
733 Examples
734 \end_layout
735
736 \end_inset
737
738  button to get there.
739 \end_layout
740
741 \begin_layout Labeling
742 \labelwidthstring 00.00.0000
743 \begin_inset Flex Code
744 status collapsed
745
746 \begin_layout Plain Layout
747 images/
748 \end_layout
749
750 \end_inset
751
752  contains image files that are used by the 
753 \begin_inset Flex Noun
754 status collapsed
755
756 \begin_layout Plain Layout
757 Document
758 \end_layout
759
760 \end_inset
761
762  dialog.
763  In addition, it also contains the individual icons used in the toolbar
764  and the banners that can be shown when \SpecialChar LyX
765  is launched.
766 \end_layout
767
768 \begin_layout Labeling
769 \labelwidthstring 00.00.0000
770 \begin_inset Flex Code
771 status collapsed
772
773 \begin_layout Plain Layout
774 kbd/
775 \end_layout
776
777 \end_inset
778
779  contains keyboard keymapping files.
780  See 
781 \begin_inset CommandInset ref
782 LatexCommand ref
783 reference "sec:International-Keymap-Stuff"
784
785 \end_inset
786
787  for details.
788 \end_layout
789
790 \begin_layout Labeling
791 \labelwidthstring 00.00.0000
792 \begin_inset Flex Code
793 status collapsed
794
795 \begin_layout Plain Layout
796 layouts/
797 \end_layout
798
799 \end_inset
800
801  contains the text class and module files described in 
802 \begin_inset CommandInset ref
803 LatexCommand ref
804 reference "cha:Installing-New-Document"
805
806 \end_inset
807
808 .
809 \end_layout
810
811 \begin_layout Labeling
812 \labelwidthstring 00.00.0000
813 \begin_inset Flex Code
814 status collapsed
815
816 \begin_layout Plain Layout
817 lyx2lyx
818 \end_layout
819
820 \end_inset
821
822  contains the 
823 \begin_inset Flex Code
824 status collapsed
825
826 \begin_layout Plain Layout
827 lyx2lyx
828 \end_layout
829
830 \end_inset
831
832  Python scripts used to convert between \SpecialChar LyX
833  versions.
834  These can be run from the command line if, say, you want to batch-convert
835  files.
836 \end_layout
837
838 \begin_layout Labeling
839 \labelwidthstring 00.00.0000
840 \begin_inset Flex Code
841 status collapsed
842
843 \begin_layout Plain Layout
844 scripts/
845 \end_layout
846
847 \end_inset
848
849  contains some files that demonstrate the capabilities of the 
850 \begin_inset Flex Noun
851 status collapsed
852
853 \begin_layout Plain Layout
854 External
855 \begin_inset space ~
856 \end_inset
857
858 Template
859 \end_layout
860
861 \end_inset
862
863  feature.
864  Also contains some scripts used by \SpecialChar LyX
865  itself.
866 \end_layout
867
868 \begin_layout Labeling
869 \labelwidthstring 00.00.0000
870 \begin_inset Flex Code
871 status collapsed
872
873 \begin_layout Plain Layout
874 templates/
875 \end_layout
876
877 \end_inset
878
879  contains the standard \SpecialChar LyX
880  template files described in 
881 \begin_inset CommandInset ref
882 LatexCommand ref
883 reference "subsec:Creating-Templates"
884
885 \end_inset
886
887 .
888 \end_layout
889
890 \begin_layout Labeling
891 \labelwidthstring 00.00.0000
892 \begin_inset Flex Code
893 status collapsed
894
895 \begin_layout Plain Layout
896 ui/
897 \end_layout
898
899 \end_inset
900
901  contains files with the extension 
902 \begin_inset Flex Code
903 status collapsed
904
905 \begin_layout Plain Layout
906 .ui
907 \end_layout
908
909 \end_inset
910
911  that define the user interface to \SpecialChar LyX
912 .
913  That is, the files define which items appear in which menus and the items
914  appearing on the toolbar.
915 \end_layout
916
917 \begin_layout Labeling
918 \labelwidthstring 00.00.0000
919 \begin_inset Flex Code
920 status collapsed
921
922 \begin_layout Plain Layout
923 xtemplates/
924 \end_layout
925
926 \end_inset
927
928  contains files with the extension 
929 \begin_inset Flex Code
930 status collapsed
931
932 \begin_layout Plain Layout
933 .xtemplate
934 \end_layout
935
936 \end_inset
937
938  which define the templates for the insertion of external material to a
939  \SpecialChar LyX
940  document; see 
941 \begin_inset CommandInset ref
942 LatexCommand ref
943 reference "chap:Including-External-Material"
944
945 \end_inset
946
947 .
948 \end_layout
949
950 \begin_layout Subsection
951 Files you don't want to modify
952 \end_layout
953
954 \begin_layout Standard
955 These files are used internally by \SpecialChar LyX
956  and you generally do not need to modify
957  them unless you are a developer.
958 \end_layout
959
960 \begin_layout Labeling
961 \labelwidthstring 00.00.0000
962 \begin_inset Flex Code
963 status collapsed
964
965 \begin_layout Plain Layout
966 CREDITS
967 \end_layout
968
969 \end_inset
970
971  this file contains the list of \SpecialChar LyX
972  developers.
973  The contents are displayed with the menu entry 
974 \begin_inset Flex Noun
975 status collapsed
976
977 \begin_layout Plain Layout
978 Help\SpecialChar menuseparator
979 About
980 \begin_inset space ~
981 \end_inset
982
983 LyX
984 \end_layout
985
986 \end_inset
987
988 .
989 \end_layout
990
991 \begin_layout Labeling
992 \labelwidthstring 00.00.0000
993 \begin_inset Flex Code
994 status collapsed
995
996 \begin_layout Plain Layout
997 chkconfig.ltx
998 \end_layout
999
1000 \end_inset
1001
1002  this is a \SpecialChar LaTeX
1003  script used during the configuration process.
1004  Do not run directly.
1005 \end_layout
1006
1007 \begin_layout Labeling
1008 \labelwidthstring 00.00.0000
1009 \begin_inset Flex Code
1010 status collapsed
1011
1012 \begin_layout Plain Layout
1013 configure.py
1014 \end_layout
1015
1016 \end_inset
1017
1018  this is a Python script that is used to re-configure \SpecialChar LyX
1019 .
1020  It creates configuration files in the directory it was run from.
1021 \end_layout
1022
1023 \begin_layout Subsection
1024 Other files needing a line or two
1025 \end_layout
1026
1027 \begin_layout Labeling
1028 \labelwidthstring 00.00.0000
1029 \begin_inset Flex Code
1030 status collapsed
1031
1032 \begin_layout Plain Layout
1033 encodings
1034 \end_layout
1035
1036 \end_inset
1037
1038  this contains tables describing how different character encodings can be
1039  mapped to Unicode
1040 \end_layout
1041
1042 \begin_layout Labeling
1043 \labelwidthstring 00.00.0000
1044 \begin_inset Flex Code
1045 status collapsed
1046
1047 \begin_layout Plain Layout
1048 languages
1049 \end_layout
1050
1051 \end_inset
1052
1053  this file contains a list of all the languages currently supported by \SpecialChar LyX
1054 .
1055 \end_layout
1056
1057 \begin_layout Labeling
1058 \labelwidthstring 00.00.0000
1059 \begin_inset Flex Code
1060 status collapsed
1061
1062 \begin_layout Plain Layout
1063 latexfonts
1064 \end_layout
1065
1066 \end_inset
1067
1068  contains information about the supported fonts.
1069 \end_layout
1070
1071 \begin_layout Labeling
1072 \labelwidthstring 00.00.0000
1073 \begin_inset Flex Code
1074 status collapsed
1075
1076 \begin_layout Plain Layout
1077 layouttranslations
1078 \end_layout
1079
1080 \end_inset
1081
1082  this file contains translations for internationalized paragraph styles
1083  (see 
1084 \begin_inset CommandInset ref
1085 LatexCommand ref
1086 reference "subsec:I18n"
1087
1088 \end_inset
1089
1090 ).
1091 \end_layout
1092
1093 \begin_layout Labeling
1094 \labelwidthstring 00.00.0000
1095 \begin_inset Flex Code
1096 status collapsed
1097
1098 \begin_layout Plain Layout
1099 unicodesymbols
1100 \end_layout
1101
1102 \end_inset
1103
1104  this file contains information about Unicode-encoded glyphs and the way
1105  they are supported by \SpecialChar LyX
1106  via \SpecialChar LaTeX
1107 .
1108 \end_layout
1109
1110 \begin_layout Section
1111 Your local configuration directory
1112 \end_layout
1113
1114 \begin_layout Standard
1115 Even if you are using \SpecialChar LyX
1116  as an unprivileged user, you might want to change
1117  \SpecialChar LyX
1118  configuration for your own use.
1119  The 
1120 \begin_inset Flex Code
1121 status collapsed
1122
1123 \begin_layout Plain Layout
1124 UserDir
1125 \end_layout
1126
1127 \end_inset
1128
1129  directory contains all your personal configuration files.
1130  This is the directory described as 
1131 \begin_inset Quotes eld
1132 \end_inset
1133
1134 user directory
1135 \begin_inset Quotes erd
1136 \end_inset
1137
1138  in 
1139 \begin_inset Flex Noun
1140 status collapsed
1141
1142 \begin_layout Plain Layout
1143 Help\SpecialChar menuseparator
1144 About
1145 \begin_inset space ~
1146 \end_inset
1147
1148 LyX
1149 \end_layout
1150
1151 \end_inset
1152
1153 .
1154  This directory is used as a mirror of 
1155 \begin_inset Flex Code
1156 status collapsed
1157
1158 \begin_layout Plain Layout
1159 LyXDir
1160 \end_layout
1161
1162 \end_inset
1163
1164 , which means that every file in 
1165 \begin_inset Flex Code
1166 status collapsed
1167
1168 \begin_layout Plain Layout
1169 UserDir
1170 \end_layout
1171
1172 \end_inset
1173
1174  is a replacement for the corresponding file in 
1175 \begin_inset Flex Code
1176 status collapsed
1177
1178 \begin_layout Plain Layout
1179 LyXDir
1180 \end_layout
1181
1182 \end_inset
1183
1184 .
1185  Any configuration file described in the above sections can be placed either
1186  in the system-wide directory, in which case it will affect all users, or
1187  in your local directory for your own use.
1188 \end_layout
1189
1190 \begin_layout Standard
1191 To make things clearer, let's provide a few examples:
1192 \end_layout
1193
1194 \begin_layout Itemize
1195 The preferences set in the 
1196 \begin_inset Flex Noun
1197 status collapsed
1198
1199 \begin_layout Plain Layout
1200 Tools\SpecialChar menuseparator
1201 Preferences
1202 \end_layout
1203
1204 \end_inset
1205
1206  dialog are saved to a file 
1207 \begin_inset Flex Code
1208 status collapsed
1209
1210 \begin_layout Plain Layout
1211 preferences
1212 \end_layout
1213
1214 \end_inset
1215
1216  in 
1217 \begin_inset Flex Code
1218 status collapsed
1219
1220 \begin_layout Plain Layout
1221 UserDir
1222 \end_layout
1223
1224 \end_inset
1225
1226 .
1227 \end_layout
1228
1229 \begin_layout Itemize
1230 When you reconfigure using 
1231 \begin_inset Flex Noun
1232 status collapsed
1233
1234 \begin_layout Plain Layout
1235 Tools\SpecialChar menuseparator
1236 Reconfigure
1237 \end_layout
1238
1239 \end_inset
1240
1241 , \SpecialChar LyX
1242  runs the 
1243 \begin_inset Flex Code
1244 status collapsed
1245
1246 \begin_layout Plain Layout
1247 configure.py
1248 \end_layout
1249
1250 \end_inset
1251
1252  script, and the resulting files are written in your local configuration
1253  directory.
1254  This means that any additional text class file that you might have added
1255  in 
1256 \begin_inset Flex Code
1257 status collapsed
1258
1259 \begin_layout Plain Layout
1260 UserDir/layouts
1261 \end_layout
1262
1263 \end_inset
1264
1265  will be added to the list of classes in the 
1266 \begin_inset Flex Noun
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 Document\SpecialChar menuseparator
1271 Settings
1272 \end_layout
1273
1274 \end_inset
1275
1276  dialog.
1277 \end_layout
1278
1279 \begin_layout Itemize
1280 If you get some updated documentation from \SpecialChar LyX
1281  ftp site and cannot install
1282  it because you do not have sysadmin rights on your system, you can just
1283  copy the files in 
1284 \begin_inset Flex Code
1285 status collapsed
1286
1287 \begin_layout Plain Layout
1288 UserDir/doc/
1289 \end_layout
1290
1291 \end_inset
1292
1293  and the items in the 
1294 \begin_inset Flex Noun
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 Help
1299 \end_layout
1300
1301 \end_inset
1302
1303  menu will open them!
1304 \end_layout
1305
1306 \begin_layout Section
1307 Running \SpecialChar LyX
1308  with multiple configurations
1309 \end_layout
1310
1311 \begin_layout Standard
1312 The configuration freedom of the local configuration directory may not suffice
1313  if you want to have more than one configuration at your disposal.
1314  For example, you may want to be use different key bindings or printer settings
1315  at different times.
1316  You can achieve this by having several such directories.
1317  You then specify which directory to use at run-time.
1318 \end_layout
1319
1320 \begin_layout Standard
1321 Invoking \SpecialChar LyX
1322  with the command line switch 
1323 \begin_inset Flex Code
1324 status collapsed
1325
1326 \begin_layout Plain Layout
1327 -userdir
1328 \end_layout
1329
1330 \end_inset
1331
1332  
1333 \emph on
1334 <some directory>
1335 \emph default
1336  instructs the program to read the configuration from that directory, and
1337  not from the default directory.
1338  (You can determine the default directory by running \SpecialChar LyX
1339  without the 
1340 \begin_inset Flex Code
1341 status collapsed
1342
1343 \begin_layout Plain Layout
1344 -userdir
1345 \end_layout
1346
1347 \end_inset
1348
1349  switch.) If the specified directory does not exist, \SpecialChar LyX
1350  offers to create it
1351  for you, just like it does for the default directory on the first time
1352  you run the program.
1353  You can modify the configuration options in this additional user directory
1354  exactly as you would for the default directory.
1355  These directories are completely independent (but read on).
1356  Note that setting the environment variable 
1357 \begin_inset Flex Code
1358 status collapsed
1359
1360 \begin_layout Plain Layout
1361 LYX_USERDIR_VER
1362 \end_layout
1363
1364 \end_inset
1365
1366  to some value has exactly the same effect.
1367 \end_layout
1368
1369 \begin_layout Standard
1370 Having several configurations also requires more maintenance: if you want
1371  to add a new layout to 
1372 \begin_inset Flex Code
1373 status collapsed
1374
1375 \begin_layout Plain Layout
1376 NewUserDir/layouts
1377 \end_layout
1378
1379 \end_inset
1380
1381  which you want available from all your configurations, you must add it
1382  to each directory separately.
1383  You can avoid this with the following trick: after \SpecialChar LyX
1384  creates the additional
1385  directory, most of the subdirectories (see above) are empty.
1386  If you want the new configuration to mirror an existing one, replace the
1387  empty subdirectory with a symbolic link to the matching subdirectory in
1388  the existing configuration.
1389  Take care with the 
1390 \begin_inset Flex Code
1391 status collapsed
1392
1393 \begin_layout Plain Layout
1394 doc/
1395 \end_layout
1396
1397 \end_inset
1398
1399  subdirectory, however, since it contains a file written by the configuration
1400  script (also accessible through 
1401 \begin_inset Flex Noun
1402 status collapsed
1403
1404 \begin_layout Plain Layout
1405 Tools\SpecialChar menuseparator
1406 Reconfigure
1407 \end_layout
1408
1409 \end_inset
1410
1411 ) which is configuration-specific.
1412 \end_layout
1413
1414 \begin_layout Chapter
1415 The Preferences dialog
1416 \end_layout
1417
1418 \begin_layout Standard
1419 All options of the preferences dialog are described in the Appendix 
1420 \emph on
1421 The Preferences Dialog
1422 \emph default
1423  in the 
1424 \emph on
1425 User's Guide
1426 \emph default
1427 .
1428  For some options you might find here more details.
1429 \end_layout
1430
1431 \begin_layout Section
1432 Formats
1433 \begin_inset CommandInset label
1434 LatexCommand label
1435 name "sec:Formats"
1436
1437 \end_inset
1438
1439
1440 \end_layout
1441
1442 \begin_layout Standard
1443 The first step is to define your file formats if they are not already defined.
1444  To do so, open the 
1445 \begin_inset Flex Noun
1446 status collapsed
1447
1448 \begin_layout Plain Layout
1449 Tools\SpecialChar menuseparator
1450 Preferences
1451 \end_layout
1452
1453 \end_inset
1454
1455  dialog.
1456  Under 
1457 \begin_inset Flex Noun
1458 status collapsed
1459
1460 \begin_layout Plain Layout
1461 File Handling\SpecialChar menuseparator
1462 File formats
1463 \end_layout
1464
1465 \end_inset
1466
1467  press the 
1468 \begin_inset Flex Noun
1469 status collapsed
1470
1471 \begin_layout Plain Layout
1472 New
1473 \end_layout
1474
1475 \end_inset
1476
1477  button to define your new format.
1478  The 
1479 \begin_inset Flex Noun
1480 status collapsed
1481
1482 \begin_layout Plain Layout
1483 Format
1484 \end_layout
1485
1486 \end_inset
1487
1488  field contains the name used to identify the format in the GUI.
1489  The 
1490 \begin_inset Flex Noun
1491 status collapsed
1492
1493 \begin_layout Plain Layout
1494 Short Name
1495 \end_layout
1496
1497 \end_inset
1498
1499  is used to identify the format internally.
1500  You will also need to enter a file extension.
1501  These are all required.
1502  The optional 
1503 \begin_inset Flex Noun
1504 status collapsed
1505
1506 \begin_layout Plain Layout
1507 Shortcut
1508 \end_layout
1509
1510 \end_inset
1511
1512  field is used to provide a keyboard shortcut on the menus.
1513  (For example, pressing 
1514 \begin_inset Flex Noun
1515 status collapsed
1516
1517 \begin_layout Plain Layout
1518 Ctrl+D
1519 \end_layout
1520
1521 \end_inset
1522
1523  will 
1524 \begin_inset Flex Noun
1525 status collapsed
1526
1527 \begin_layout Plain Layout
1528 Document\SpecialChar menuseparator
1529 View (Other Formats)\SpecialChar menuseparator
1530 DVI
1531 \end_layout
1532
1533 \end_inset
1534
1535 .) 
1536 \end_layout
1537
1538 \begin_layout Standard
1539 A Format can have a 
1540 \begin_inset Flex Noun
1541 status collapsed
1542
1543 \begin_layout Plain Layout
1544 Viewer
1545 \end_layout
1546
1547 \end_inset
1548
1549  and an 
1550 \begin_inset Flex Noun
1551 status collapsed
1552
1553 \begin_layout Plain Layout
1554 Editor
1555 \end_layout
1556
1557 \end_inset
1558
1559  associated with it.
1560  For example, you might want to use 
1561 \begin_inset Flex Noun
1562 status collapsed
1563
1564 \begin_layout Plain Layout
1565 Ghostview
1566 \end_layout
1567
1568 \end_inset
1569
1570  to view PostScript files.
1571  You can enter the command needed to start the program in the corresponding
1572  fields.
1573  In defining this command, you can use the four variables listed in the
1574  next section.
1575  The viewer is launched when you view an image in \SpecialChar LyX
1576  or use the 
1577 \begin_inset Flex Noun
1578 status collapsed
1579
1580 \begin_layout Plain Layout
1581 Document\SpecialChar menuseparator
1582 View
1583 \end_layout
1584
1585 \end_inset
1586
1587  menu.
1588  The editor is for example launched when you right-click on an image and
1589  choose 
1590 \begin_inset Flex Noun
1591 status collapsed
1592
1593 \begin_layout Plain Layout
1594 Edit externally
1595 \end_layout
1596
1597 \end_inset
1598
1599  in the appearing context menu.
1600 \end_layout
1601
1602 \begin_layout Standard
1603 The 
1604 \begin_inset Flex Noun
1605 status collapsed
1606
1607 \begin_layout Plain Layout
1608 MIME
1609 \end_layout
1610
1611 \end_inset
1612
1613  type of a format is optional, but if it is specified, it must be unique
1614  across all formats.
1615  It is used to detect files of this format from the file contents.
1616  For some important file formats there is no MIME type officially registered
1617  with the 
1618 \begin_inset CommandInset href
1619 LatexCommand href
1620 name "IANA"
1621 target "http://www.iana.org/assignments/media-types/"
1622 literal "false"
1623
1624 \end_inset
1625
1626 .
1627  Therefore \SpecialChar LyX
1628  uses the extended list of MIME types as specified by 
1629 \begin_inset CommandInset href
1630 LatexCommand href
1631 name "freedesktop.org"
1632 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1633 literal "false"
1634
1635 \end_inset
1636
1637 .
1638 \end_layout
1639
1640 \begin_layout Standard
1641 The 
1642 \begin_inset Flex Noun
1643 status collapsed
1644
1645 \begin_layout Plain Layout
1646 Document format
1647 \end_layout
1648
1649 \end_inset
1650
1651  option tells \SpecialChar LyX
1652  that a format is suitable for document export.
1653  If this is set and if a suitable conversion route exists (see 
1654 \begin_inset CommandInset ref
1655 LatexCommand ref
1656 reference "sec:Converters"
1657
1658 \end_inset
1659
1660 ), the format will appear in the 
1661 \begin_inset Flex Noun
1662 status collapsed
1663
1664 \begin_layout Plain Layout
1665 File\SpecialChar menuseparator
1666 Export
1667 \end_layout
1668
1669 \end_inset
1670
1671  menu.
1672  The format will also appear in the 
1673 \begin_inset Flex Noun
1674 status collapsed
1675
1676 \begin_layout Plain Layout
1677 Document\SpecialChar menuseparator
1678 View
1679 \end_layout
1680
1681 \end_inset
1682
1683  menu if a viewer is specified for the format.
1684  Pure image formats, such as 
1685 \begin_inset Flex Code
1686 status collapsed
1687
1688 \begin_layout Plain Layout
1689 png
1690 \end_layout
1691
1692 \end_inset
1693
1694 , should not use this option.
1695  Formats that can both represent vector graphics and documents like 
1696 \begin_inset Flex Code
1697 status collapsed
1698
1699 \begin_layout Plain Layout
1700 pdf
1701 \end_layout
1702
1703 \end_inset
1704
1705  should use it.
1706 \end_layout
1707
1708 \begin_layout Standard
1709 The option 
1710 \begin_inset Flex Noun
1711 status collapsed
1712
1713 \begin_layout Plain Layout
1714 Vector graphics format
1715 \end_layout
1716
1717 \end_inset
1718
1719  tells \SpecialChar LyX
1720  that a format can contain vector graphics.
1721  This information is used to determine the target format of included graphics
1722  for 
1723 \begin_inset Flex Noun
1724 status collapsed
1725
1726 \begin_layout Plain Layout
1727 pdflatex
1728 \end_layout
1729
1730 \end_inset
1731
1732  export.
1733  Included graphics may need to be converted to either 
1734 \begin_inset Flex Noun
1735 status collapsed
1736
1737 \begin_layout Plain Layout
1738 pdf
1739 \end_layout
1740
1741 \end_inset
1742
1743
1744 \begin_inset Flex Noun
1745 status collapsed
1746
1747 \begin_layout Plain Layout
1748 png
1749 \end_layout
1750
1751 \end_inset
1752
1753 , or 
1754 \begin_inset Flex Noun
1755 status collapsed
1756
1757 \begin_layout Plain Layout
1758 jpg
1759 \end_layout
1760
1761 \end_inset
1762
1763 , since 
1764 \begin_inset Flex Noun
1765 status collapsed
1766
1767 \begin_layout Plain Layout
1768 pdflatex
1769 \end_layout
1770
1771 \end_inset
1772
1773  cannot handle other image formats.
1774  If an included graphic is not already in 
1775 \begin_inset Flex Noun
1776 status collapsed
1777
1778 \begin_layout Plain Layout
1779 pdf
1780 \end_layout
1781
1782 \end_inset
1783
1784
1785 \begin_inset Flex Noun
1786 status collapsed
1787
1788 \begin_layout Plain Layout
1789 png
1790 \end_layout
1791
1792 \end_inset
1793
1794 , or 
1795 \begin_inset Flex Noun
1796 status collapsed
1797
1798 \begin_layout Plain Layout
1799 jpg
1800 \end_layout
1801
1802 \end_inset
1803
1804  format, it is converted to 
1805 \begin_inset Flex Noun
1806 status collapsed
1807
1808 \begin_layout Plain Layout
1809 pdf
1810 \end_layout
1811
1812 \end_inset
1813
1814  if the vector format option is set, and otherwise to 
1815 \begin_inset Flex Noun
1816 status collapsed
1817
1818 \begin_layout Plain Layout
1819 png
1820 \end_layout
1821
1822 \end_inset
1823
1824 .
1825 \end_layout
1826
1827 \begin_layout Section
1828 Copiers
1829 \end_layout
1830
1831 \begin_layout Standard
1832 Since all conversions from one format to another take place in \SpecialChar LyX
1833 's temporary
1834  directory, it is sometimes necessary to modify a file before copying it
1835  to the temporary directory in order that the conversion may be performed.
1836 \begin_inset Foot
1837 status collapsed
1838
1839 \begin_layout Plain Layout
1840 For example, the file may refer to other files—images, for example—using
1841  relative file names, and these may become invalid when the file is copied
1842  to the temporary directory.
1843 \end_layout
1844
1845 \end_inset
1846
1847  This is done by a Copier: It copies a file to (or from) the temporary directory
1848  and may modify it in the process.
1849 \end_layout
1850
1851 \begin_layout Standard
1852 The definitions of the copiers may use eight variables:
1853 \end_layout
1854
1855 \begin_layout Labeling
1856 \labelwidthstring 00.00.0000
1857 \begin_inset Flex Code
1858 status collapsed
1859
1860 \begin_layout Plain Layout
1861 $$s
1862 \end_layout
1863
1864 \end_inset
1865
1866  The \SpecialChar LyX
1867  system directory (e.
1868 \begin_inset space \thinspace{}
1869 \end_inset
1870
1871 g.
1872 \begin_inset space \space{}
1873 \end_inset
1874
1875
1876 \begin_inset Flex Noun
1877 status collapsed
1878
1879 \begin_layout Plain Layout
1880 /usr/share/lyx
1881 \end_layout
1882
1883 \end_inset
1884
1885 ).
1886 \end_layout
1887
1888 \begin_layout Labeling
1889 \labelwidthstring 00.00.0000
1890 \begin_inset Flex Code
1891 status collapsed
1892
1893 \begin_layout Plain Layout
1894 $$i
1895 \end_layout
1896
1897 \end_inset
1898
1899  The input file
1900 \end_layout
1901
1902 \begin_layout Labeling
1903 \labelwidthstring 00.00.0000
1904 \begin_inset Flex Code
1905 status collapsed
1906
1907 \begin_layout Plain Layout
1908 $$o
1909 \end_layout
1910
1911 \end_inset
1912
1913  The output file
1914 \end_layout
1915
1916 \begin_layout Labeling
1917 \labelwidthstring 00.00.0000
1918 \begin_inset Flex Code
1919 status collapsed
1920
1921 \begin_layout Plain Layout
1922 $$b
1923 \end_layout
1924
1925 \end_inset
1926
1927  The base name (without filename extension) in the \SpecialChar LyX
1928  temporary directory
1929 \end_layout
1930
1931 \begin_layout Labeling
1932 \labelwidthstring 00.00.0000
1933 \begin_inset Flex Code
1934 status collapsed
1935
1936 \begin_layout Plain Layout
1937 $$p
1938 \end_layout
1939
1940 \end_inset
1941
1942  The full directory path of the \SpecialChar LyX
1943  temporary directory
1944 \end_layout
1945
1946 \begin_layout Labeling
1947 \labelwidthstring 00.00.0000
1948 \begin_inset Flex Code
1949 status collapsed
1950
1951 \begin_layout Plain Layout
1952 $$r
1953 \end_layout
1954
1955 \end_inset
1956
1957  The full pathname to the original \SpecialChar LyX
1958  file being processed
1959 \end_layout
1960
1961 \begin_layout Labeling
1962 \labelwidthstring 00.00.0000
1963 \begin_inset Flex Code
1964 status collapsed
1965
1966 \begin_layout Plain Layout
1967 $$f
1968 \end_layout
1969
1970 \end_inset
1971
1972  The filename (without any directory path) of the \SpecialChar LyX
1973  file.
1974 \end_layout
1975
1976 \begin_layout Labeling
1977 \labelwidthstring 00.00.0000
1978 \begin_inset Flex Code
1979 status collapsed
1980
1981 \begin_layout Plain Layout
1982 $$l
1983 \end_layout
1984
1985 \end_inset
1986
1987  The `\SpecialChar LaTeX
1988  name'
1989 \end_layout
1990
1991 \begin_layout Standard
1992 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1993 's 
1994 \series bold
1995
1996 \backslash
1997 include
1998 \series default
1999  command.
2000  It is relevant only when exporting files suitable for such inclusion.
2001 \end_layout
2002
2003 \begin_layout Standard
2004 Copiers can be used to do almost anything with output files.
2005  For example, suppose you want generated pdf files to be copied to a special
2006  directory, 
2007 \begin_inset Flex Code
2008 status collapsed
2009
2010 \begin_layout Plain Layout
2011 /home/you/pdf/
2012 \end_layout
2013
2014 \end_inset
2015
2016 .
2017  Then you could write a shell script such as this one:
2018 \end_layout
2019
2020 \begin_layout Standard
2021 \begin_inset listings
2022 inline false
2023 status open
2024
2025 \begin_layout Plain Layout
2026
2027 #!/bin/bash
2028 \end_layout
2029
2030 \begin_layout Plain Layout
2031
2032 FROMFILE=$1
2033 \end_layout
2034
2035 \begin_layout Plain Layout
2036
2037 TOFILE=`basename $2`
2038 \end_layout
2039
2040 \begin_layout Plain Layout
2041
2042 cp $FROMFILE /home/you/pdf/$TOFILE
2043 \end_layout
2044
2045 \end_inset
2046
2047 Save it in your local \SpecialChar LyX
2048  directory—say, 
2049 \begin_inset Flex Code
2050 status collapsed
2051
2052 \begin_layout Plain Layout
2053 /home/you/.lyx/scripts/pdfcopier.sh
2054 \end_layout
2055
2056 \end_inset
2057
2058 —and make it executable, if you need to do so on your platform.
2059  Then, in the 
2060 \begin_inset Flex Noun
2061 status collapsed
2062
2063 \begin_layout Plain Layout
2064 Tools\SpecialChar menuseparator
2065 Preferences
2066 \end_layout
2067
2068 \end_inset
2069
2070  dialog, select under 
2071 \begin_inset Flex Noun
2072 status collapsed
2073
2074 \begin_layout Plain Layout
2075 File Handling\SpecialChar menuseparator
2076 File formats
2077 \end_layout
2078
2079 \end_inset
2080
2081  the 
2082 \begin_inset Flex Noun
2083 status collapsed
2084
2085 \begin_layout Plain Layout
2086 PDF(pdflatex)
2087 \end_layout
2088
2089 \end_inset
2090
2091  format—or one of the other pdf formats—and enter 
2092 \begin_inset Flex Code
2093 status collapsed
2094
2095 \begin_layout Plain Layout
2096 pdfcopier.sh $$i $$o
2097 \end_layout
2098
2099 \end_inset
2100
2101  into the 
2102 \begin_inset Flex Noun
2103 status collapsed
2104
2105 \begin_layout Plain Layout
2106 Copier
2107 \end_layout
2108
2109 \end_inset
2110
2111  field.
2112  
2113 \end_layout
2114
2115 \begin_layout Standard
2116 Copiers are used by \SpecialChar LyX
2117  in various of its own conversions.
2118  For example, if appropriate programs are found, \SpecialChar LyX
2119  will automatically install
2120  copiers for the 
2121 \begin_inset Flex Noun
2122 status collapsed
2123
2124 \begin_layout Plain Layout
2125 HTML
2126 \end_layout
2127
2128 \end_inset
2129
2130  and 
2131 \begin_inset Flex Noun
2132 status collapsed
2133
2134 \begin_layout Plain Layout
2135 HTML
2136 \begin_inset space ~
2137 \end_inset
2138
2139 (MS Word)
2140 \end_layout
2141
2142 \end_inset
2143
2144  formats.
2145  When these formats are exported, the copier sees that not just the main
2146  HTML file but various associated files (style files, images, etc.) are also
2147  copied.
2148  All these files are written to a subdirectory of the directory in which
2149  the original \SpecialChar LyX
2150  file was found.
2151 \begin_inset Foot
2152 status collapsed
2153
2154 \begin_layout Plain Layout
2155 This copier can be customized.
2156  The optional 
2157 \begin_inset Quotes eld
2158 \end_inset
2159
2160 -e
2161 \begin_inset Quotes erd
2162 \end_inset
2163
2164  argument takes a comma-separated list of extensions to be copied; if it
2165  is omitted, all files will be copied.
2166  The 
2167 \begin_inset Quotes eld
2168 \end_inset
2169
2170 -t
2171 \begin_inset Quotes erd
2172 \end_inset
2173
2174  argument determines the extension added to the generated directory.
2175  By default, it is 
2176 \begin_inset Quotes eld
2177 \end_inset
2178
2179
2180 \begin_inset Flex Noun
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 LyXconv
2185 \end_layout
2186
2187 \end_inset
2188
2189
2190 \begin_inset Quotes erd
2191 \end_inset
2192
2193 , so HTML generated from 
2194 \begin_inset Flex Noun
2195 status collapsed
2196
2197 \begin_layout Plain Layout
2198 /path/to/filename.lyx
2199 \end_layout
2200
2201 \end_inset
2202
2203  will end up in 
2204 \begin_inset Flex Noun
2205 status collapsed
2206
2207 \begin_layout Plain Layout
2208 /path/to/filename.html.LyXconv
2209 \end_layout
2210
2211 \end_inset
2212
2213 .
2214  
2215 \end_layout
2216
2217 \end_inset
2218
2219
2220 \end_layout
2221
2222 \begin_layout Section
2223 Converters
2224 \begin_inset CommandInset label
2225 LatexCommand label
2226 name "sec:Converters"
2227
2228 \end_inset
2229
2230
2231 \end_layout
2232
2233 \begin_layout Standard
2234 You can define your own Converters to convert files between different formats.
2235  This is done in the 
2236 \begin_inset Flex Noun
2237 status collapsed
2238
2239 \begin_layout Plain Layout
2240 Tools\SpecialChar menuseparator
2241 Preferences\SpecialChar menuseparator
2242 File Handling\SpecialChar menuseparator
2243 Converters
2244 \end_layout
2245
2246 \end_inset
2247
2248  dialog.
2249 \end_layout
2250
2251 \begin_layout Standard
2252 To define a new converter, select the 
2253 \begin_inset Flex Noun
2254 status collapsed
2255
2256 \begin_layout Plain Layout
2257 From
2258 \begin_inset space ~
2259 \end_inset
2260
2261 format
2262 \end_layout
2263
2264 \end_inset
2265
2266  and 
2267 \begin_inset Flex Noun
2268 status collapsed
2269
2270 \begin_layout Plain Layout
2271 To
2272 \begin_inset space ~
2273 \end_inset
2274
2275 format
2276 \end_layout
2277
2278 \end_inset
2279
2280  from the drop-down lists, enter the command needed for the conversion,
2281  and then press the 
2282 \begin_inset Flex Noun
2283 status collapsed
2284
2285 \begin_layout Plain Layout
2286 Add
2287 \end_layout
2288
2289 \end_inset
2290
2291  button.
2292  Several variables can be used in the definition of converters:
2293 \end_layout
2294
2295 \begin_layout Labeling
2296 \labelwidthstring 00.00.0000
2297 \begin_inset Flex Code
2298 status collapsed
2299
2300 \begin_layout Plain Layout
2301 $$s
2302 \end_layout
2303
2304 \end_inset
2305
2306  The \SpecialChar LyX
2307  system directory
2308 \end_layout
2309
2310 \begin_layout Labeling
2311 \labelwidthstring 00.00.0000
2312 \begin_inset Flex Code
2313 status collapsed
2314
2315 \begin_layout Plain Layout
2316 $$i
2317 \end_layout
2318
2319 \end_inset
2320
2321  The input file
2322 \end_layout
2323
2324 \begin_layout Labeling
2325 \labelwidthstring 00.00.0000
2326 \begin_inset Flex Code
2327 status collapsed
2328
2329 \begin_layout Plain Layout
2330 $$o
2331 \end_layout
2332
2333 \end_inset
2334
2335  The output file
2336 \end_layout
2337
2338 \begin_layout Labeling
2339 \labelwidthstring 00.00.0000
2340 \begin_inset Flex Code
2341 status collapsed
2342
2343 \begin_layout Plain Layout
2344 $$b
2345 \end_layout
2346
2347 \end_inset
2348
2349  The base filename of the input file (i.
2350 \begin_inset space \thinspace{}
2351 \end_inset
2352
2353 g., without the extension)
2354 \end_layout
2355
2356 \begin_layout Labeling
2357 \labelwidthstring 00.00.0000
2358 \begin_inset Flex Code
2359 status collapsed
2360
2361 \begin_layout Plain Layout
2362 $$p
2363 \end_layout
2364
2365 \end_inset
2366
2367  The path to the input file
2368 \end_layout
2369
2370 \begin_layout Labeling
2371 \labelwidthstring 00.00.0000
2372 \begin_inset Flex Code
2373 status collapsed
2374
2375 \begin_layout Plain Layout
2376 $$r
2377 \end_layout
2378
2379 \end_inset
2380
2381  The path to the original input file (this is different from $$p when a
2382  chain of converters is called)
2383 \end_layout
2384
2385 \begin_layout Labeling
2386 \labelwidthstring 00.00.0000
2387 \begin_inset Flex Code
2388 status collapsed
2389
2390 \begin_layout Plain Layout
2391 $$e
2392 \end_layout
2393
2394 \end_inset
2395
2396  The iconv name for the encoding of the document.
2397 \end_layout
2398
2399 \begin_layout Standard
2400 In the 
2401 \begin_inset Flex Noun
2402 status collapsed
2403
2404 \begin_layout Plain Layout
2405 Extra
2406 \begin_inset space ~
2407 \end_inset
2408
2409 Flag
2410 \end_layout
2411
2412 \end_inset
2413
2414  field you can enter the following flags, separated by commas:
2415 \end_layout
2416
2417 \begin_layout Labeling
2418 \labelwidthstring 00.00.0000
2419 \begin_inset Flex Code
2420 status collapsed
2421
2422 \begin_layout Plain Layout
2423 latex
2424 \change_inserted -712698321 1524656940
2425 =flavor
2426 \change_unchanged
2427
2428 \end_layout
2429
2430 \end_inset
2431
2432  This converter runs some form of \SpecialChar LaTeX
2433 .
2434  This will make \SpecialChar LyX
2435 's \SpecialChar LaTeX
2436  error logs available.
2437
2438 \change_inserted -712698321 1524657018
2439  The optional 
2440 \begin_inset Flex Code
2441 status open
2442
2443 \begin_layout Plain Layout
2444
2445 \change_inserted -712698321 1524657012
2446 flavor
2447 \change_unchanged
2448
2449 \end_layout
2450
2451 \end_inset
2452
2453  value specifies the form of \SpecialChar LaTeX
2454  that is run (
2455 \begin_inset Flex Code
2456 status open
2457
2458 \begin_layout Plain Layout
2459
2460 \change_inserted -712698321 1524657005
2461 latex, pdflatex, platex, xetex, luatex
2462 \change_unchanged
2463
2464 \end_layout
2465
2466 \end_inset
2467
2468 ).
2469  If no value is specified, 
2470 \begin_inset Flex Code
2471 status open
2472
2473 \begin_layout Plain Layout
2474
2475 \change_inserted -712698321 1524657018
2476 latex
2477 \change_unchanged
2478
2479 \end_layout
2480
2481 \end_inset
2482
2483  is used.
2484 \change_unchanged
2485
2486 \end_layout
2487
2488 \begin_layout Labeling
2489 \labelwidthstring 00.00.0000
2490 \begin_inset Flex Code
2491 status collapsed
2492
2493 \begin_layout Plain Layout
2494 needaux
2495 \change_inserted -712698321 1524656935
2496 =flavor
2497 \change_unchanged
2498
2499 \end_layout
2500
2501 \end_inset
2502
2503  Needs the \SpecialChar LaTeX
2504  
2505 \begin_inset Flex Noun
2506 status collapsed
2507
2508 \begin_layout Plain Layout
2509 .aux
2510 \end_layout
2511
2512 \end_inset
2513
2514  file for the conversion.
2515
2516 \change_inserted -712698321 1524657047
2517  The optional 
2518 \begin_inset Flex Code
2519 status open
2520
2521 \begin_layout Plain Layout
2522
2523 \change_inserted -712698321 1524657030
2524 flavor
2525 \change_unchanged
2526
2527 \end_layout
2528
2529 \end_inset
2530
2531  value specifies the form of \SpecialChar LaTeX
2532  that is run in order to generate the 
2533 \begin_inset Flex Noun
2534 status collapsed
2535
2536 \begin_layout Plain Layout
2537
2538 \change_inserted -712698321 1524657047
2539 .aux
2540 \change_unchanged
2541
2542 \end_layout
2543
2544 \end_inset
2545
2546  file (
2547 \begin_inset Flex Code
2548 status open
2549
2550 \begin_layout Plain Layout
2551
2552 \change_inserted -712698321 1524657030
2553 latex, pdflatex, platex, xetex, luatex
2554 \change_unchanged
2555
2556 \end_layout
2557
2558 \end_inset
2559
2560 ).
2561  If no value is specified, 
2562 \begin_inset Flex Code
2563 status open
2564
2565 \begin_layout Plain Layout
2566
2567 \change_inserted -712698321 1524657030
2568 latex
2569 \change_unchanged
2570
2571 \end_layout
2572
2573 \end_inset
2574
2575  is used.
2576 \change_unchanged
2577
2578 \end_layout
2579
2580 \begin_layout Labeling
2581 \labelwidthstring 00.00.0000
2582 \begin_inset Flex Code
2583 status collapsed
2584
2585 \begin_layout Plain Layout
2586 nice
2587 \end_layout
2588
2589 \end_inset
2590
2591  Needs a 
2592 \begin_inset Quotes eld
2593 \end_inset
2594
2595 nice
2596 \begin_inset Quotes erd
2597 \end_inset
2598
2599  file from the backend, which in practice means a \SpecialChar LaTeX
2600  file like the one we
2601  would export, without 
2602 \begin_inset Flex Code
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 input@path
2607 \end_layout
2608
2609 \end_inset
2610
2611 .
2612 \end_layout
2613
2614 \begin_layout Labeling
2615 \labelwidthstring 00.00.0000
2616 \begin_inset Flex Code
2617 status collapsed
2618
2619 \begin_layout Plain Layout
2620 xml
2621 \end_layout
2622
2623 \end_inset
2624
2625  Output is XML.
2626 \end_layout
2627
2628 \begin_layout Standard
2629 The following three flags are not really flags at all because they take
2630  an argument in the 
2631 \begin_inset Flex Noun
2632 status collapsed
2633
2634 \begin_layout Plain Layout
2635 key
2636 \begin_inset space ~
2637 \end_inset
2638
2639 =
2640 \begin_inset space ~
2641 \end_inset
2642
2643 value
2644 \end_layout
2645
2646 \end_inset
2647
2648  format:
2649 \end_layout
2650
2651 \begin_layout Labeling
2652 \labelwidthstring 00.00.0000
2653
2654 \change_inserted -712698321 1523206314
2655 \begin_inset Flex Code
2656 status collapsed
2657
2658 \begin_layout Plain Layout
2659
2660 \change_inserted -712698321 1523206193
2661 hyperref-driver
2662 \change_unchanged
2663
2664 \end_layout
2665
2666 \end_inset
2667
2668  The name of the driver that needs to be loaded with the 
2669 \family sans
2670 hyperref
2671 \family default
2672  package for this converter.
2673  The loading of the correct driver is necessary to get some PDF-specific
2674  features.
2675  See the 
2676 \family sans
2677 hyperref
2678 \family default
2679  manual for details.
2680 \end_layout
2681
2682 \begin_layout Labeling
2683 \labelwidthstring 00.00.0000
2684 \begin_inset Flex Code
2685 status collapsed
2686
2687 \begin_layout Plain Layout
2688 parselog
2689 \end_layout
2690
2691 \end_inset
2692
2693  If set, the converter's standard error will be redirected to a file 
2694 \begin_inset Flex Code
2695 status collapsed
2696
2697 \begin_layout Plain Layout
2698 infile.out
2699 \end_layout
2700
2701 \end_inset
2702
2703 , and the script given as argument will be run as: 
2704 \begin_inset Flex Code
2705 status collapsed
2706
2707 \begin_layout Plain Layout
2708 script < infile.out > infile.log
2709 \end_layout
2710
2711 \end_inset
2712
2713 .
2714  The argument may contain 
2715 \begin_inset Flex Code
2716 status collapsed
2717
2718 \begin_layout Plain Layout
2719 $$s
2720 \end_layout
2721
2722 \end_inset
2723
2724 .
2725 \end_layout
2726
2727 \begin_layout Labeling
2728 \labelwidthstring 00.00.0000
2729 \begin_inset Flex Code
2730 status collapsed
2731
2732 \begin_layout Plain Layout
2733 resultdir
2734 \end_layout
2735
2736 \end_inset
2737
2738  The name of the directory in which the converter will dump the generated
2739  files.
2740  \SpecialChar LyX
2741  will not create this directory, and it does not copy anything into it,
2742  though it will copy this directory to the destination.
2743  The argument may contain 
2744 \begin_inset Flex Code
2745 status collapsed
2746
2747 \begin_layout Plain Layout
2748 $$b
2749 \end_layout
2750
2751 \end_inset
2752
2753 , which will be replaced by the base name of the input and output files,
2754  respectively, when the directory is copied.
2755 \begin_inset Newline newline
2756 \end_inset
2757
2758 Note that resultdir and usetempdir make no sense together.
2759  The latter will be ignored if the former is given.
2760 \end_layout
2761
2762 \begin_layout Labeling
2763 \labelwidthstring 00.00.0000
2764 \begin_inset Flex Code
2765 status collapsed
2766
2767 \begin_layout Plain Layout
2768 resultfile
2769 \end_layout
2770
2771 \end_inset
2772
2773  Determines the output file name and may, contain 
2774 \begin_inset Flex Code
2775 status collapsed
2776
2777 \begin_layout Plain Layout
2778 $$b
2779 \end_layout
2780
2781 \end_inset
2782
2783 .
2784  Sensible only with resultdir and optional even then; if not given, it defaults
2785  to `index'.
2786 \end_layout
2787
2788 \begin_layout Standard
2789
2790 \change_inserted -712698321 1523206384
2791 A suitable hyperref-driver is set for some converters that are installed
2792  with \SpecialChar LyX
2793 .
2794  
2795 \change_deleted -712698321 1523206388
2796 None of these
2797 \change_inserted -712698321 1523206389
2798 The
2799 \change_unchanged
2800  last three
2801 \change_inserted -712698321 1523206400
2802  flags, however,
2803 \change_unchanged
2804  are presently 
2805 \change_inserted -712698321 1523206407
2806 not 
2807 \change_unchanged
2808 used in any of the 
2809 \change_inserted -712698321 1523206437
2810 pre-installed 
2811 \change_unchanged
2812 converters
2813 \change_deleted -712698321 1523206442
2814  that are installed with \SpecialChar LyX
2815
2816 \change_unchanged
2817 .
2818  
2819 \end_layout
2820
2821 \begin_layout Standard
2822 You do not have to define converters for all formats between which you want
2823  to convert.
2824  For example, you will note that there is no `\SpecialChar LyX
2825  to PostScript' converter,
2826  but \SpecialChar LyX
2827  will export PostScript.
2828  It does so by first creating a \SpecialChar LaTeX
2829  file (no converter needs to be defined
2830  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2831  to DVI' converter,
2832  and finally converting the resulting DVI file to PostScript.
2833  \SpecialChar LyX
2834  finds such `chains' of converters automatically, and it will always choose
2835  the shortest possible chain.
2836  You can, though, still define multiple conversion methods between file
2837  formats.
2838  For example, the standard \SpecialChar LyX
2839  configuration provides five ways to convert
2840  \SpecialChar LaTeX
2841  to PDF:
2842 \end_layout
2843
2844 \begin_layout Enumerate
2845 Directly, using 
2846 \begin_inset Flex Noun
2847 status collapsed
2848
2849 \begin_layout Plain Layout
2850 pdflatex
2851 \end_layout
2852
2853 \end_inset
2854
2855
2856 \end_layout
2857
2858 \begin_layout Enumerate
2859 via (DVI and) PostScript, using 
2860 \begin_inset Flex Noun
2861 status collapsed
2862
2863 \begin_layout Plain Layout
2864 ps2pdf
2865 \end_layout
2866
2867 \end_inset
2868
2869
2870 \end_layout
2871
2872 \begin_layout Enumerate
2873 via DVI, using 
2874 \begin_inset Flex Noun
2875 status collapsed
2876
2877 \begin_layout Plain Layout
2878 dvipdfm
2879 \end_layout
2880
2881 \end_inset
2882
2883
2884 \end_layout
2885
2886 \begin_layout Enumerate
2887 directly using 
2888 \begin_inset Flex Noun
2889 status collapsed
2890
2891 \begin_layout Plain Layout
2892 Xe\SpecialChar TeX
2893
2894 \end_layout
2895
2896 \end_inset
2897
2898
2899 \end_layout
2900
2901 \begin_layout Enumerate
2902 directly using 
2903 \begin_inset Flex Noun
2904 status collapsed
2905
2906 \begin_layout Plain Layout
2907 Lua\SpecialChar TeX
2908
2909 \end_layout
2910
2911 \end_inset
2912
2913
2914 \end_layout
2915
2916 \begin_layout Standard
2917 To define such alternate chains, you must define multiple target `file formats',
2918  as described in 
2919 \begin_inset CommandInset ref
2920 LatexCommand ref
2921 reference "sec:Formats"
2922
2923 \end_inset
2924
2925 .
2926  For example, in the standard configuration, the formats named 
2927 \begin_inset Flex Noun
2928 status collapsed
2929
2930 \begin_layout Plain Layout
2931 pdf
2932 \end_layout
2933
2934 \end_inset
2935
2936  (for 
2937 \begin_inset Flex Noun
2938 status collapsed
2939
2940 \begin_layout Plain Layout
2941 ps2pdf
2942 \end_layout
2943
2944 \end_inset
2945
2946 ), 
2947 \begin_inset Flex Noun
2948 status collapsed
2949
2950 \begin_layout Plain Layout
2951 pdf2
2952 \end_layout
2953
2954 \end_inset
2955
2956  (for 
2957 \begin_inset Flex Noun
2958 status collapsed
2959
2960 \begin_layout Plain Layout
2961 pdflatex
2962 \end_layout
2963
2964 \end_inset
2965
2966 ), 
2967 \begin_inset Flex Noun
2968 status collapsed
2969
2970 \begin_layout Plain Layout
2971 pdf3
2972 \end_layout
2973
2974 \end_inset
2975
2976  (for 
2977 \begin_inset Flex Noun
2978 status collapsed
2979
2980 \begin_layout Plain Layout
2981 dvipdfm
2982 \end_layout
2983
2984 \end_inset
2985
2986 ), 
2987 \begin_inset Flex Noun
2988 status collapsed
2989
2990 \begin_layout Plain Layout
2991 pdf4
2992 \end_layout
2993
2994 \end_inset
2995
2996  (for 
2997 \begin_inset Flex Noun
2998 status collapsed
2999
3000 \begin_layout Plain Layout
3001 Xe\SpecialChar TeX
3002
3003 \end_layout
3004
3005 \end_inset
3006
3007 ), and 
3008 \begin_inset Flex Noun
3009 status collapsed
3010
3011 \begin_layout Plain Layout
3012 pdf5
3013 \end_layout
3014
3015 \end_inset
3016
3017  (for 
3018 \begin_inset Flex Noun
3019 status collapsed
3020
3021 \begin_layout Plain Layout
3022 Lua\SpecialChar TeX
3023
3024 \end_layout
3025
3026 \end_inset
3027
3028 ) are defined, all of which share the extension 
3029 \begin_inset Flex Noun
3030 status collapsed
3031
3032 \begin_layout Plain Layout
3033 .pdf
3034 \end_layout
3035
3036 \end_inset
3037
3038 , and which correspond to the conversion methods just mentioned.
3039 \end_layout
3040
3041 \begin_layout Chapter
3042 Internationalizing \SpecialChar LyX
3043
3044 \begin_inset CommandInset label
3045 LatexCommand label
3046 name "cha:Internationalizing-LyX"
3047
3048 \end_inset
3049
3050
3051 \end_layout
3052
3053 \begin_layout Standard
3054 \SpecialChar LyX
3055  supports using a translated interface.
3056  Last time we checked, \SpecialChar LyX
3057  provided text in thirty languages.
3058  The language of choice is called your 
3059 \emph on
3060 locale
3061 \emph default
3062 .
3063  (For further reading on locale settings, see also the documentation for
3064  locale that comes with your operating system.
3065  For Linux, the manual page for 
3066 \begin_inset Flex Code
3067 status collapsed
3068
3069 \begin_layout Plain Layout
3070 locale(5)
3071 \end_layout
3072
3073 \end_inset
3074
3075  could be a good place to start).
3076 \end_layout
3077
3078 \begin_layout Standard
3079 Notice that these translations will work, but do contain a few flaws.
3080  In particular, all dialogs have been designed with the English text in
3081  mind, which means that some of the translated text will be too large to
3082  fit within the space allocated.
3083  This is only a display problem and will not cause any harm.
3084  Also, you will find that some of the translations do not define shortcut
3085  keys for everything.
3086  Sometimes, there are simply not enough free letters to do it.
3087  Other times, the translator just hasn't got around to doing it yet.
3088  Our localization team, which you may wish to join,
3089 \begin_inset Foot
3090 status collapsed
3091
3092 \begin_layout Plain Layout
3093 If you are a fluent speaker of a language other than English, joining these
3094  teams is a great way to give back to the \SpecialChar LyX
3095  community!
3096 \end_layout
3097
3098 \end_inset
3099
3100  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3101 .
3102 \end_layout
3103
3104 \begin_layout Section
3105 Translating \SpecialChar LyX
3106
3107 \end_layout
3108
3109 \begin_layout Subsection
3110 Translating the graphical user interface (text messages).
3111 \end_layout
3112
3113 \begin_layout Standard
3114 \SpecialChar LyX
3115  uses the GNU 
3116 \begin_inset Flex Code
3117 status collapsed
3118
3119 \begin_layout Plain Layout
3120 gettext
3121 \end_layout
3122
3123 \end_inset
3124
3125  library to handle the internationalization of the interface.
3126  To have \SpecialChar LyX
3127  speak your favorite language in all menus and dialogs, you need
3128  a 
3129 \begin_inset Flex Code
3130 status collapsed
3131
3132 \begin_layout Plain Layout
3133 po
3134 \end_layout
3135
3136 \end_inset
3137
3138 -file for that language.
3139  When this is available, you'll have to generate a 
3140 \begin_inset Flex Code
3141 status collapsed
3142
3143 \begin_layout Plain Layout
3144 mo
3145 \end_layout
3146
3147 \end_inset
3148
3149 -file from it and install the 
3150 \begin_inset Flex Code
3151 status collapsed
3152
3153 \begin_layout Plain Layout
3154 mo
3155 \end_layout
3156
3157 \end_inset
3158
3159 -file.
3160  The process of doing all of this is explained in the documentation for
3161  GNU 
3162 \begin_inset Flex Code
3163 status collapsed
3164
3165 \begin_layout Plain Layout
3166 gettext
3167 \end_layout
3168
3169 \end_inset
3170
3171 .
3172  It is possible to do this just for yourself, but if you're going to do
3173  it, you might as well share the results of your labors with the rest of
3174  the \SpecialChar LyX
3175  community.
3176  Send a message to the \SpecialChar LyX
3177  developers' list for more information about how
3178  to proceed.
3179 \end_layout
3180
3181 \begin_layout Standard
3182 In short, this is what you should do (xx denotes the language code):
3183 \end_layout
3184
3185 \begin_layout Itemize
3186 Check out the \SpecialChar LyX
3187  source code.
3188  (See the 
3189 \begin_inset CommandInset href
3190 LatexCommand href
3191 name "information on the web"
3192 target "https://www.lyx.org/HowToUseGIT"
3193 literal "false"
3194
3195 \end_inset
3196
3197 .)
3198 \end_layout
3199
3200 \begin_layout Itemize
3201 Copy the file 
3202 \begin_inset Flex Code
3203 status collapsed
3204
3205 \begin_layout Plain Layout
3206 lyx.pot
3207 \end_layout
3208
3209 \end_inset
3210
3211  to the folder of the 
3212 \begin_inset Flex Code
3213 status collapsed
3214
3215 \begin_layout Plain Layout
3216 **.po
3217 \end_layout
3218
3219 \end_inset
3220
3221  files.
3222  Then rename it to 
3223 \begin_inset Flex Code
3224 status collapsed
3225
3226 \begin_layout Plain Layout
3227 xx.po
3228 \end_layout
3229
3230 \end_inset
3231
3232 .
3233  (If 
3234 \begin_inset Flex Code
3235 status collapsed
3236
3237 \begin_layout Plain Layout
3238 lyx.pot
3239 \end_layout
3240
3241 \end_inset
3242
3243  doesn't exist anywhere, it can be remade with the console command 
3244 \begin_inset Flex Code
3245 status collapsed
3246
3247 \begin_layout Plain Layout
3248 make lyx.pot
3249 \end_layout
3250
3251 \end_inset
3252
3253  in that directory, or you can use an existing po-file for some other language
3254  as a template).
3255 \end_layout
3256
3257 \begin_layout Itemize
3258 Edit 
3259 \begin_inset Flex Code
3260 status collapsed
3261
3262 \begin_layout Plain Layout
3263 xx.po
3264 \end_layout
3265
3266 \end_inset
3267
3268 .
3269 \begin_inset Foot
3270 status collapsed
3271
3272 \begin_layout Plain Layout
3273 This is just a text file, so it can be edited in any text editor.
3274  But there are also specialized programs that support such editing, such
3275  as 
3276 \family typewriter
3277 Poedit
3278 \family default
3279  (for all platforms) or 
3280 \family typewriter
3281 KBabel
3282 \family default
3283  (for KDE).
3284  
3285 \family typewriter
3286 Emacs
3287 \family default
3288  contains a `mode' for editing 
3289 \begin_inset Flex Code
3290 status collapsed
3291
3292 \begin_layout Plain Layout
3293 po
3294 \end_layout
3295
3296 \end_inset
3297
3298  files, as well, see 
3299 \begin_inset Flex URL
3300 status open
3301
3302 \begin_layout Plain Layout
3303
3304 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3305 \end_layout
3306
3307 \end_inset
3308
3309 .
3310 \end_layout
3311
3312 \end_inset
3313
3314  For some menu- and widget-labels, there are also shortcut keys that should
3315  be translated.
3316  Those keys are marked after a `|', and should be translated according to
3317  the words and phrases of the language.
3318  You should also fill also out the information at the beginning of the new
3319  
3320 \begin_inset Flex Code
3321 status collapsed
3322
3323 \begin_layout Plain Layout
3324 po
3325 \end_layout
3326
3327 \end_inset
3328
3329 -file with your email-address, etc., so people know where to reach you with
3330  suggestions and entertaining flames.
3331 \end_layout
3332
3333 \begin_layout Standard
3334 If you are just doing this on your own, then:
3335 \end_layout
3336
3337 \begin_layout Itemize
3338 Generate 
3339 \begin_inset Flex Code
3340 status collapsed
3341
3342 \begin_layout Plain Layout
3343 xx.mo
3344 \end_layout
3345
3346 \end_inset
3347
3348 .
3349  This can be done with 
3350 \begin_inset Flex Code
3351 status collapsed
3352
3353 \begin_layout Plain Layout
3354 msgfmt -o xx.mo < xx.po
3355 \end_layout
3356
3357 \end_inset
3358
3359 .
3360 \end_layout
3361
3362 \begin_layout Itemize
3363 Copy the 
3364 \begin_inset Flex Code
3365 status collapsed
3366
3367 \begin_layout Plain Layout
3368 mo
3369 \end_layout
3370
3371 \end_inset
3372
3373 -file to your locale-tree, at the correct directory for application messages
3374  for the language
3375 \series bold
3376  
3377 \series default
3378 xx, and under the name 
3379 \begin_inset Flex Code
3380 status collapsed
3381
3382 \begin_layout Plain Layout
3383 lyx.mo
3384 \end_layout
3385
3386 \end_inset
3387
3388  (e.
3389 \begin_inset space \thinspace{}
3390 \end_inset
3391
3392 g.
3393 \begin_inset space \space{}
3394 \end_inset
3395
3396
3397 \begin_inset Flex Code
3398 status collapsed
3399
3400 \begin_layout Plain Layout
3401 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3402 \end_layout
3403
3404 \end_inset
3405
3406
3407 \series bold
3408 .
3409 \end_layout
3410
3411 \begin_layout Standard
3412 As said, however, it would be best if the new 
3413 \begin_inset Flex Code
3414 status collapsed
3415
3416 \begin_layout Plain Layout
3417 po
3418 \end_layout
3419
3420 \end_inset
3421
3422  file could be added to the \SpecialChar LyX
3423  distribution, so others can use it.
3424  Adding it involves making additional changes to \SpecialChar LyX
3425 .
3426  So send an email to the developers' mailing list if you're interested in
3427  doing that.
3428 \end_layout
3429
3430 \begin_layout Subsubsection
3431 Ambiguous messages
3432 \end_layout
3433
3434 \begin_layout Standard
3435 Sometimes it turns out that one English message needs to be translated into
3436  different messages in the target language.
3437  One example is the message 
3438 \begin_inset Flex Code
3439 status collapsed
3440
3441 \begin_layout Plain Layout
3442 To
3443 \end_layout
3444
3445 \end_inset
3446
3447  which has the German translation 
3448 \lang german
3449 Nach
3450 \lang english
3451  or 
3452 \lang german
3453 Bis
3454 \lang english
3455 , depending upon exactly what the English 
3456 \begin_inset Quotes eld
3457 \end_inset
3458
3459 to
3460 \begin_inset Quotes erd
3461 \end_inset
3462
3463  means.
3464  GNU 
3465 \begin_inset Flex Code
3466 status collapsed
3467
3468 \begin_layout Plain Layout
3469 gettext
3470 \end_layout
3471
3472 \end_inset
3473
3474  does not handle such ambiguous translations.
3475  Therefore you have to add some context information to the message: Instead
3476  of 
3477 \begin_inset Flex Code
3478 status collapsed
3479
3480 \begin_layout Plain Layout
3481 To
3482 \end_layout
3483
3484 \end_inset
3485
3486  it becomes 
3487 \begin_inset Flex Code
3488 status collapsed
3489
3490 \begin_layout Plain Layout
3491 To[[as in 'From format x to format y']]
3492 \end_layout
3493
3494 \end_inset
3495
3496  and 
3497 \begin_inset Flex Code
3498 status collapsed
3499
3500 \begin_layout Plain Layout
3501 To[[as in 'From page x to page y']].
3502 \end_layout
3503
3504 \end_inset
3505
3506  Now the two occurrences of 
3507 \begin_inset Flex Code
3508 status collapsed
3509
3510 \begin_layout Plain Layout
3511 To
3512 \end_layout
3513
3514 \end_inset
3515
3516  are different for 
3517 \begin_inset Flex Code
3518 status collapsed
3519
3520 \begin_layout Plain Layout
3521 gettext
3522 \end_layout
3523
3524 \end_inset
3525
3526  and can be translated correctly to 
3527 \lang german
3528 Nach
3529 \lang english
3530  and 
3531 \lang german
3532 Bis
3533 \lang english
3534 , respectively.
3535 \end_layout
3536
3537 \begin_layout Standard
3538 Of course the context information needs to be stripped off the original
3539  message when no translation is used.
3540  Therefore you have to put it in double square brackets at the end of the
3541  message (see the example above).
3542  The translation mechanism of \SpecialChar LyX
3543  ensures that everything in double square
3544  brackets at the end of messages is removed before displaying the message.
3545 \end_layout
3546
3547 \begin_layout Subsection
3548 Translating the documentation.
3549 \end_layout
3550
3551 \begin_layout Standard
3552 The online documentation (in the 
3553 \begin_inset Flex Noun
3554 status collapsed
3555
3556 \begin_layout Plain Layout
3557 Help
3558 \end_layout
3559
3560 \end_inset
3561
3562 -menu) can (and should!) be translated.
3563  If there are translated versions of the documentation available
3564 \begin_inset Foot
3565 status collapsed
3566
3567 \begin_layout Plain Layout
3568 As of March 2008, at least some of the documents have been translated into
3569  fourteen languages, with the Tutorial available in a few more.
3570 \end_layout
3571
3572 \end_inset
3573
3574  and the locale is set accordingly, these will be used automagically by
3575  \SpecialChar LyX
3576 .
3577  \SpecialChar LyX
3578  looks for translated versions as 
3579 \begin_inset Flex Code
3580 status collapsed
3581
3582 \begin_layout Plain Layout
3583 LyXDir/doc/xx/DocName.lyx
3584 \end_layout
3585
3586 \end_inset
3587
3588 , where 
3589 \begin_inset Flex Code
3590 status collapsed
3591
3592 \begin_layout Plain Layout
3593 xx
3594 \end_layout
3595
3596 \end_inset
3597
3598  is the code for the language currently in use.
3599  If there are no translated documents, the default English versions will
3600  be displayed.
3601  Note that the translated versions must have the same filenames (
3602 \begin_inset Flex Code
3603 status collapsed
3604
3605 \begin_layout Plain Layout
3606 DocName
3607 \end_layout
3608
3609 \end_inset
3610
3611  above) as the original.
3612  If you feel up to translating the documentation (an excellent way to proof-read
3613  the original documentation by the way!), there are a few things you should
3614  do right away:
3615 \end_layout
3616
3617 \begin_layout Itemize
3618 Check out the documentation translation web page at 
3619 \begin_inset CommandInset href
3620 LatexCommand href
3621 name "https://www.lyx.org/Translation"
3622 target "https://www.lyx.org/Translation"
3623 literal "false"
3624
3625 \end_inset
3626
3627 .
3628  That way, you can find out which (if any) documents have already been translate
3629 d into your language.
3630  You can also find out who (if anyone) is organizing the effort to translate
3631  the documentation into your language.
3632  If no one is organizing the effort, please let us know that you're interested.
3633 \end_layout
3634
3635 \begin_layout Standard
3636 Once you get to actually translating, here's a few hints for you that may
3637  save you trouble:
3638 \end_layout
3639
3640 \begin_layout Itemize
3641 Join the documentation team! There is information on how to do that in 
3642 \begin_inset Flex Code
3643 status collapsed
3644
3645 \begin_layout Plain Layout
3646 Intro.lyx
3647 \end_layout
3648
3649 \end_inset
3650
3651  (
3652 \begin_inset Flex Noun
3653 status collapsed
3654
3655 \begin_layout Plain Layout
3656 Help\SpecialChar menuseparator
3657 Introduction
3658 \end_layout
3659
3660 \end_inset
3661
3662 ), which by the way is the first document you should translate.
3663 \end_layout
3664
3665 \begin_layout Itemize
3666 Learn the typographic conventions for the language you are translating to.
3667  Typography is an ancient art and over the centuries, a great variety of
3668  conventions have developed throughout different parts of the world.
3669  Also study the professional terminology amongst typographers in your country.
3670  Inventing your own terminology will only confuse the users.
3671  
3672 \emph on
3673 (Warning! Typography is addictive!)
3674 \end_layout
3675
3676 \begin_layout Itemize
3677 Make a copy of the document.
3678  This will be your working copy.
3679  You can use this as your personal translated help-file by placing it in
3680  your 
3681 \begin_inset Flex Code
3682 status collapsed
3683
3684 \begin_layout Plain Layout
3685 UserDir/doc/xx/
3686 \end_layout
3687
3688 \end_inset
3689
3690  directory.
3691 \begin_inset Note Greyedout
3692 status open
3693
3694 \begin_layout Plain Layout
3695
3696 \series bold
3697 Note:
3698 \series default
3699  For a complex document with external material (images, etc.), if you make
3700  a copy e.
3701 \begin_inset space \thinspace{}
3702 \end_inset
3703
3704 g.
3705 \begin_inset space \space{}
3706 \end_inset
3707
3708 in a temp dir, beware that the links to external material may be broken
3709  when the document is moved to a different place.
3710  The best way is to retrieve the \SpecialChar LyX
3711  tree from git (see 
3712 \begin_inset Flex URL
3713 status collapsed
3714
3715 \begin_layout Plain Layout
3716
3717 https://www.lyx.org/HowToUseGIT
3718 \end_layout
3719
3720 \end_inset
3721
3722 ) and to edit the doc file in place.
3723 \end_layout
3724
3725 \end_inset
3726
3727
3728 \end_layout
3729
3730 \begin_layout Itemize
3731 Sometimes the original document (from the \SpecialChar LyX
3732  team) will be updated.
3733  Use the source viewer at 
3734 \begin_inset CommandInset href
3735 LatexCommand href
3736 name "https://www.lyx.org/trac/timeline"
3737 target "https://www.lyx.org/trac/timeline"
3738 literal "false"
3739
3740 \end_inset
3741
3742  to see what has been changed.
3743  That way you can easily see which parts of the translated document need
3744  to be updated.
3745 \end_layout
3746
3747 \begin_layout Standard
3748 If you ever find an error in the original document, fix it and notify the
3749  rest of the documentation team of the changes! (You didn't forget to join
3750  the documentation team, did you?)
3751 \end_layout
3752
3753 \begin_layout Standard
3754 \begin_inset Branch OutDated
3755 inverted 0
3756 status collapsed
3757
3758 \begin_layout Section
3759 International Keyboard Support
3760 \end_layout
3761
3762 \begin_layout Standard
3763
3764 \emph on
3765 [Editor's Note: The following section is by
3766 \emph default
3767  
3768 \shape smallcaps
3769 \emph on
3770 Ivan Schreter
3771 \shape default
3772 .
3773  It needs to be fixed to conform to the new Documentation Style sheet and
3774  to make use of the new v1.0 features.
3775  The whole thing also needs to be merged with the section following it.-jw
3776  It may also be badly out of date.-rh (2008)]
3777 \end_layout
3778
3779 \begin_layout Subsection
3780 Defining Own Keymaps: Keymap File Format
3781 \end_layout
3782
3783 \begin_layout Standard
3784 Let's look at a keyboard definition file a little closer.
3785  It is a plain text file defining
3786 \end_layout
3787
3788 \begin_layout Itemize
3789 key-to-key or key-to-string translations
3790 \end_layout
3791
3792 \begin_layout Itemize
3793 dead keys
3794 \end_layout
3795
3796 \begin_layout Itemize
3797 dead keys exceptions
3798 \end_layout
3799
3800 \begin_layout Standard
3801 To define key-to-key or key-to-string translation, use this command:
3802 \end_layout
3803
3804 \begin_layout Quotation
3805 \begin_inset Flex Code
3806 status collapsed
3807
3808 \begin_layout Plain Layout
3809
3810 \backslash
3811 kmap
3812 \end_layout
3813
3814 \end_inset
3815
3816  
3817 \begin_inset Flex Code
3818 status collapsed
3819
3820 \begin_layout Plain Layout
3821 key
3822 \end_layout
3823
3824 \end_inset
3825
3826  outstring 
3827 \end_layout
3828
3829 \begin_layout Standard
3830 where 
3831 \begin_inset Flex Code
3832 status collapsed
3833
3834 \begin_layout Plain Layout
3835 key
3836 \end_layout
3837
3838 \end_inset
3839
3840  is the key to be translated and 
3841 \begin_inset Flex Code
3842 status collapsed
3843
3844 \begin_layout Plain Layout
3845 outstring
3846 \end_layout
3847
3848 \end_inset
3849
3850  is the string to be inserted into the document.
3851  To define dead keys, use:
3852 \end_layout
3853
3854 \begin_layout Quotation
3855 \begin_inset Flex Code
3856 status collapsed
3857
3858 \begin_layout Plain Layout
3859
3860 \backslash
3861 kmod
3862 \end_layout
3863
3864 \end_inset
3865
3866  
3867 \begin_inset Flex Code
3868 status collapsed
3869
3870 \begin_layout Plain Layout
3871 key
3872 \end_layout
3873
3874 \end_inset
3875
3876  deadkey
3877 \end_layout
3878
3879 \begin_layout Standard
3880 where 
3881 \begin_inset Flex Code
3882 status collapsed
3883
3884 \begin_layout Plain Layout
3885 key
3886 \end_layout
3887
3888 \end_inset
3889
3890  is a keyboard key and 
3891 \begin_inset Flex Code
3892 status collapsed
3893
3894 \begin_layout Plain Layout
3895 deadkey
3896 \end_layout
3897
3898 \end_inset
3899
3900  is dead key name.
3901  The following dead keys are supported (shortcut name is in parentheses):
3902 \end_layout
3903
3904 \begin_layout Quotation
3905
3906 \emph on
3907 Name
3908 \begin_inset space \hfill{}
3909 \end_inset
3910
3911 Example
3912 \end_layout
3913
3914 \begin_layout Quotation
3915 acute (acu)
3916 \begin_inset space \hfill{}
3917 \end_inset
3918
3919 áéíóú
3920 \end_layout
3921
3922 \begin_layout Quotation
3923 grave (gra)
3924 \begin_inset space \hfill{}
3925 \end_inset
3926
3927 àèìòù
3928 \end_layout
3929
3930 \begin_layout Quotation
3931 macron (mac)
3932 \begin_inset space \hfill{}
3933 \end_inset
3934
3935  ō
3936 \end_layout
3937
3938 \begin_layout Quotation
3939 tilde (til)
3940 \begin_inset space \hfill{}
3941 \end_inset
3942
3943 ñÑ
3944 \end_layout
3945
3946 \begin_layout Quotation
3947 underbar (underb)
3948 \begin_inset space \hfill{}
3949 \end_inset
3950
3951
3952 \begin_inset ERT
3953 status open
3954
3955 \begin_layout Plain Layout
3956
3957
3958 \backslash
3959 b o
3960 \end_layout
3961
3962 \end_inset
3963
3964
3965 \end_layout
3966
3967 \begin_layout Quotation
3968 cedilla (ced)
3969 \begin_inset space \hfill{}
3970 \end_inset
3971
3972 çÇ
3973 \end_layout
3974
3975 \begin_layout Quotation
3976 underdot (underd)
3977 \begin_inset space \hfill{}
3978 \end_inset
3979
3980
3981 \begin_inset ERT
3982 status open
3983
3984 \begin_layout Plain Layout
3985
3986
3987 \backslash
3988 d o
3989 \end_layout
3990
3991 \end_inset
3992
3993
3994 \end_layout
3995
3996 \begin_layout Quotation
3997 circumflex (circu)
3998 \begin_inset space \hfill{}
3999 \end_inset
4000
4001 âêîôû
4002 \end_layout
4003
4004 \begin_layout Quotation
4005 circle (circl)
4006 \begin_inset space \hfill{}
4007 \end_inset
4008
4009 ÅůŮ
4010 \end_layout
4011
4012 \begin_layout Quotation
4013 tie (tie)
4014 \begin_inset space \hfill{}
4015 \end_inset
4016
4017
4018 \begin_inset ERT
4019 status open
4020
4021 \begin_layout Plain Layout
4022
4023
4024 \backslash
4025 t o
4026 \end_layout
4027
4028 \end_inset
4029
4030
4031 \end_layout
4032
4033 \begin_layout Quotation
4034 breve (bre)
4035 \begin_inset space \hfill{}
4036 \end_inset
4037
4038 ă
4039 \begin_inset ERT
4040 status open
4041
4042 \begin_layout Plain Layout
4043
4044
4045 \backslash
4046 u o
4047 \end_layout
4048
4049 \end_inset
4050
4051
4052 \end_layout
4053
4054 \begin_layout Quotation
4055 caron (car)
4056 \begin_inset space \hfill{}
4057 \end_inset
4058
4059 čšž
4060 \end_layout
4061
4062 \begin_layout Quotation
4063 hungarian umlaut (hug)
4064 \begin_inset space \hfill{}
4065 \end_inset
4066
4067 őű
4068 \end_layout
4069
4070 \begin_layout Quotation
4071 umlaut (uml)
4072 \begin_inset space \hfill{}
4073 \end_inset
4074
4075 äöü
4076 \end_layout
4077
4078 \begin_layout Quotation
4079 dot (dot)
4080 \begin_inset space \hfill{}
4081 \end_inset
4082
4083 ż
4084 \begin_inset ERT
4085 status open
4086
4087 \begin_layout Plain Layout
4088
4089
4090 \backslash
4091 .s
4092 \end_layout
4093
4094 \end_inset
4095
4096
4097 \end_layout
4098
4099 \begin_layout Standard
4100 Since in many international keyboards there are exceptions to what some
4101  dead keys should do, you can define them using
4102 \end_layout
4103
4104 \begin_layout Quotation
4105 \begin_inset Flex Code
4106 status collapsed
4107
4108 \begin_layout Plain Layout
4109
4110 \backslash
4111 kxmod
4112 \end_layout
4113
4114 \end_inset
4115
4116  deadkey key outstring
4117 \end_layout
4118
4119 \begin_layout Standard
4120 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4121 , so you put in
4122 \end_layout
4123
4124 \begin_layout Quotation
4125 \begin_inset Flex Code
4126 status collapsed
4127
4128 \begin_layout Plain Layout
4129
4130 \backslash
4131 kxmod
4132 \end_layout
4133
4134 \end_inset
4135
4136  caron o "
4137 \backslash
4138 ^o"
4139 \end_layout
4140
4141 \begin_layout Standard
4142 to make it work correctly.
4143  Also, you have to define as exceptions dead keys over i and j, to remove
4144  the dot from them before inserting an accent mark.
4145  I will change this when the time comes, but so far I haven't had time.
4146 \end_layout
4147
4148 \begin_layout Standard
4149 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4150  double backslash.
4151  Also, quotes and 
4152 \begin_inset Flex Code
4153 status collapsed
4154
4155 \begin_layout Plain Layout
4156 #
4157 \end_layout
4158
4159 \end_inset
4160
4161  have different meaning.
4162  
4163 \begin_inset Flex Code
4164 status collapsed
4165
4166 \begin_layout Plain Layout
4167 #
4168 \end_layout
4169
4170 \end_inset
4171
4172  marks comments, quotes start and end \SpecialChar LaTeX
4173 -style commands.
4174  To enter quote, you'll need to use 
4175 \begin_inset Flex Code
4176 status collapsed
4177
4178 \begin_layout Plain Layout
4179
4180 \backslash
4181 "
4182 \end_layout
4183
4184 \end_inset
4185
4186 , to enter 
4187 \begin_inset Flex Code
4188 status collapsed
4189
4190 \begin_layout Plain Layout
4191 #
4192 \end_layout
4193
4194 \end_inset
4195
4196 , use 
4197 \begin_inset Flex Code
4198 status collapsed
4199
4200 \begin_layout Plain Layout
4201
4202 \backslash
4203 #
4204 \end_layout
4205
4206 \end_inset
4207
4208 .
4209 \end_layout
4210
4211 \begin_layout Standard
4212 If you make a keyboard description file that works for your language, please
4213  mail it to me, so I can include it in the next keymap distribution.
4214 \end_layout
4215
4216 \begin_layout Standard
4217 More keywords will be supported in keymap configuration file in future,
4218  like
4219 \end_layout
4220
4221 \begin_layout Itemize
4222 \begin_inset Flex Code
4223 status collapsed
4224
4225 \begin_layout Plain Layout
4226
4227 \backslash
4228 kinclude filename
4229 \end_layout
4230
4231 \end_inset
4232
4233
4234 \emph on
4235
4236 \begin_inset space \hfill{}
4237 \end_inset
4238
4239
4240 \begin_inset Flex Code
4241 status collapsed
4242
4243 \begin_layout Plain Layout
4244 include
4245 \end_layout
4246
4247 \end_inset
4248
4249  another file
4250 \end_layout
4251
4252 \begin_layout Itemize
4253 \begin_inset Flex Code
4254 status collapsed
4255
4256 \begin_layout Plain Layout
4257
4258 \backslash
4259 kprog program
4260 \end_layout
4261
4262 \end_inset
4263
4264
4265 \emph on
4266
4267 \begin_inset space \hfill{}
4268 \end_inset
4269
4270
4271 \begin_inset Flex Code
4272 status collapsed
4273
4274 \begin_layout Plain Layout
4275 define
4276 \end_layout
4277
4278 \end_inset
4279
4280  an external keymap translation program 
4281 \end_layout
4282
4283 \begin_layout Standard
4284 Also, it should look into 
4285 \begin_inset Flex Code
4286 status collapsed
4287
4288 \begin_layout Plain Layout
4289 lyxrc
4290 \end_layout
4291
4292 \end_inset
4293
4294  file for defaults, too (for example, a 
4295 \begin_inset Flex Code
4296 status collapsed
4297
4298 \begin_layout Plain Layout
4299
4300 \backslash
4301 kinclude
4302 \end_layout
4303
4304 \end_inset
4305
4306  option to include default keyboard).
4307 \end_layout
4308
4309 \end_inset
4310
4311
4312 \end_layout
4313
4314 \begin_layout Section
4315 International Keymap Stuff
4316 \begin_inset CommandInset label
4317 LatexCommand label
4318 name "sec:International-Keymap-Stuff"
4319
4320 \end_inset
4321
4322
4323 \end_layout
4324
4325 \begin_layout Standard
4326 \begin_inset Note Note
4327 status open
4328
4329 \begin_layout Plain Layout
4330 In doing the revisions on this document in March 2008, I did not look over
4331  this stuff, as I do not understand it.
4332  It would be good if someone else could do so.
4333  (RH)
4334 \end_layout
4335
4336 \end_inset
4337
4338
4339 \end_layout
4340
4341 \begin_layout Standard
4342 The next two sections describe the 
4343 \begin_inset Flex Code
4344 status collapsed
4345
4346 \begin_layout Plain Layout
4347
4348 \shape up
4349 .kmap
4350 \end_layout
4351
4352 \end_inset
4353
4354  and 
4355 \begin_inset Flex Code
4356 status collapsed
4357
4358 \begin_layout Plain Layout
4359
4360 \shape up
4361 .cdef
4362 \end_layout
4363
4364 \end_inset
4365
4366  file syntax in detail.
4367  These sections should help you design your own key map if the ones provided
4368  do not meet your needs.
4369 \end_layout
4370
4371 \begin_layout Subsection
4372 The .kmap File
4373 \end_layout
4374
4375 \begin_layout Standard
4376
4377 \shape up
4378 .
4379 \begin_inset Flex Code
4380 status collapsed
4381
4382 \begin_layout Plain Layout
4383 kmap
4384 \end_layout
4385
4386 \end_inset
4387
4388  file maps keystrokes to characters or strings.
4389  As the name suggests, it sets a keyboard mapping.
4390  The 
4391 \begin_inset Flex Code
4392 status collapsed
4393
4394 \begin_layout Plain Layout
4395 .kmap
4396 \end_layout
4397
4398 \end_inset
4399
4400
4401 \shape default
4402  file keywords 
4403 \shape up
4404
4405 \begin_inset Flex Code
4406 status collapsed
4407
4408 \begin_layout Plain Layout
4409
4410 \shape up
4411 kmap
4412 \end_layout
4413
4414 \end_inset
4415
4416
4417 \shape default
4418 ,
4419 \shape up
4420  
4421 \shape default
4422
4423 \begin_inset Flex Code
4424 status collapsed
4425
4426 \begin_layout Plain Layout
4427
4428 \shape up
4429 kmod
4430 \end_layout
4431
4432 \end_inset
4433
4434 ,
4435 \shape up
4436  
4437 \shape default
4438
4439 \begin_inset Flex Code
4440 status collapsed
4441
4442 \begin_layout Plain Layout
4443
4444 \shape up
4445 kxmod
4446 \end_layout
4447
4448 \end_inset
4449
4450 , and 
4451 \begin_inset Flex Code
4452 status collapsed
4453
4454 \begin_layout Plain Layout
4455
4456 \shape up
4457 kcomb
4458 \end_layout
4459
4460 \end_inset
4461
4462  are described in this section.
4463 \end_layout
4464
4465 \begin_layout Labeling
4466 \labelwidthstring 00.00.0000
4467 \begin_inset Flex Code
4468 status collapsed
4469
4470 \begin_layout Plain Layout
4471
4472 \shape up
4473 kmap
4474 \end_layout
4475
4476 \end_inset
4477
4478  Map a character to a string
4479 \end_layout
4480
4481 \begin_layout LyX-Code
4482
4483 \backslash
4484 kmap 
4485 \family roman
4486 \emph on
4487 char
4488 \family default
4489 \emph default
4490  
4491 \family roman
4492 \emph on
4493 string
4494 \end_layout
4495
4496 \begin_layout Standard
4497 This will ma
4498 \family roman
4499 p
4500 \family default
4501  
4502 \family roman
4503 \emph on
4504 char
4505 \family default
4506 \emph default
4507  
4508 \family roman
4509 to
4510 \family default
4511  
4512 \family roman
4513 \emph on
4514 string
4515 \emph default
4516 .
4517  Note that in
4518 \family default
4519  
4520 \family roman
4521 \emph on
4522 string
4523 \emph default
4524 ,
4525 \family default
4526  
4527 \family roman
4528 \shape up
4529 the double-quote (")
4530 \family default
4531 \shape default
4532  
4533 \family roman
4534 and
4535 \family default
4536  
4537 \family roman
4538 \shape up
4539 the backslash (
4540 \backslash
4541 )
4542 \family default
4543 \shape default
4544  
4545 \family roman
4546 must be escaped with a preceding backslash (
4547 \shape up
4548
4549 \backslash
4550
4551 \shape default
4552 )
4553 \family default
4554 .
4555 \end_layout
4556
4557 \begin_layout Standard
4558 An example of a 
4559 \begin_inset Flex Noun
4560 status collapsed
4561
4562 \begin_layout Plain Layout
4563
4564 \shape up
4565 kmap
4566 \end_layout
4567
4568 \end_inset
4569
4570  statement to cause the symbol 
4571 \begin_inset Flex Noun
4572 status collapsed
4573
4574 \begin_layout Plain Layout
4575
4576 \shape up
4577 /
4578 \end_layout
4579
4580 \end_inset
4581
4582  to be output for the keystroke 
4583 \begin_inset Flex Noun
4584 status collapsed
4585
4586 \begin_layout Plain Layout
4587
4588 \shape up
4589 &
4590 \end_layout
4591
4592 \end_inset
4593
4594  is:
4595 \end_layout
4596
4597 \begin_layout LyX-Code
4598
4599 \backslash
4600 kmap & /
4601 \end_layout
4602
4603 \begin_layout Labeling
4604 \labelwidthstring 00.00.0000
4605 \begin_inset Flex Code
4606 status collapsed
4607
4608 \begin_layout Plain Layout
4609
4610 \shape up
4611 kmod
4612 \end_layout
4613
4614 \end_inset
4615
4616  Specify an accent character
4617 \end_layout
4618
4619 \begin_layout LyX-Code
4620
4621 \backslash
4622 kmod 
4623 \family roman
4624 \emph on
4625 char accent allowed
4626 \end_layout
4627
4628 \begin_layout Standard
4629 This will make the cha
4630 \family roman
4631 racter
4632 \family default
4633  
4634 \family roman
4635 \emph on
4636 char
4637 \family default
4638 \emph default
4639  
4640 \family roman
4641 \shape up
4642 \emph on
4643 be an accent
4644 \family default
4645 \shape default
4646 \emph default
4647  
4648 \family roman
4649 \shape up
4650 on the
4651 \family default
4652 \shape default
4653  
4654 \family roman
4655 \shape up
4656 \emph on
4657 allowed
4658 \family default
4659 \shape default
4660 \emph default
4661  
4662 \family roman
4663 \shape up
4664 cha
4665 \family default
4666 racter(s).
4667  This is the dead key
4668 \begin_inset Foot
4669 status collapsed
4670
4671 \begin_layout Plain Layout
4672 The term 
4673 \family roman
4674 \emph on
4675 dead key
4676 \family default
4677 \emph default
4678  refers to a key that does not produce a character by itself, but when followed
4679  with another key, produces the desired accent character.
4680  For example, a German characte
4681 \family roman
4682 r with an umlaut like
4683 \family default
4684  
4685 \family roman
4686 \emph on
4687 ä
4688 \family default
4689 \emph default
4690  
4691 \family roman
4692 can be produced in this manner.
4693 \end_layout
4694
4695 \end_inset
4696
4697  mechanism.
4698  
4699 \end_layout
4700
4701 \begin_layout Standard
4702 If you 
4703 \family roman
4704 hit
4705 \family default
4706  
4707 \family roman
4708 \emph on
4709 char
4710 \family default
4711 \emph default
4712  
4713 \family roman
4714 and then another key not in
4715 \family default
4716  
4717 \family roman
4718 \emph on
4719 allowed
4720 \emph default
4721 , you will get a
4722 \family default
4723  
4724 \family roman
4725 \emph on
4726 char
4727 \family default
4728 \emph default
4729  
4730 \family roman
4731 followed by the other, not allowed key, as output.
4732
4733 \family default
4734  Note that a 
4735 \begin_inset Flex Noun
4736 status collapsed
4737
4738 \begin_layout Plain Layout
4739
4740 \shape up
4741 Backspace
4742 \end_layout
4743
4744 \end_inset
4745
4746  cancels a dead key, so if 
4747 \family roman
4748 you hit
4749 \family default
4750  
4751 \family roman
4752 \emph on
4753 char
4754 \family default
4755 \emph default
4756  
4757 \begin_inset Flex Noun
4758 status collapsed
4759
4760 \begin_layout Plain Layout
4761
4762 \shape up
4763 \emph on
4764 Backspace
4765 \end_layout
4766
4767 \end_inset
4768
4769 , the cursor will not go one position backwards but will instead cancel
4770  the effect t
4771 \family roman
4772 hat
4773 \family default
4774  
4775 \family roman
4776 \shape up
4777 \emph on
4778 char
4779 \family default
4780 \shape default
4781 \emph default
4782  
4783 \family roman
4784 \shape up
4785 might have had on the next keystroke.
4786  
4787 \end_layout
4788
4789 \begin_layout Standard
4790 The following example specifies that the character ' is to be an acute accent,
4791  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4792 \end_layout
4793
4794 \begin_layout LyX-Code
4795
4796 \backslash
4797 kmod ' acute aeiouAEIOU
4798 \end_layout
4799
4800 \begin_layout Labeling
4801 \labelwidthstring 00.00.0000
4802 \begin_inset Flex Code
4803 status collapsed
4804
4805 \begin_layout Plain Layout
4806 kxmod
4807 \end_layout
4808
4809 \end_inset
4810
4811  Specify an exception to the accent character
4812 \end_layout
4813
4814 \begin_layout LyX-Code
4815
4816 \backslash
4817 kxmod  
4818 \family roman
4819 \emph on
4820 accent char result
4821 \end_layout
4822
4823 \begin_layout Standard
4824 This defines an exce
4825 \family roman
4826 ption for
4827 \family default
4828  
4829 \family roman
4830 \emph on
4831 accent
4832 \family default
4833 \emph default
4834  
4835 \family roman
4836 on
4837 \family default
4838  
4839 \family roman
4840 \emph on
4841 char
4842 \emph default
4843 .
4844  T
4845 \shape up
4846 he
4847 \family default
4848 \shape default
4849  
4850 \family roman
4851 \shape up
4852 \emph on
4853 accent
4854 \family default
4855 \shape default
4856 \emph default
4857  
4858 \family roman
4859 \shape up
4860 must
4861 \family default
4862 \shape default
4863  
4864 \shape up
4865 have been assigned a keystroke with a previous
4866 \shape default
4867  
4868 \begin_inset Flex Code
4869 status collapsed
4870
4871 \begin_layout Plain Layout
4872
4873 \shape up
4874
4875 \backslash
4876 kmo
4877 \shape default
4878 d
4879 \end_layout
4880
4881 \end_inset
4882
4883  declar
4884 \family roman
4885 ation and
4886 \family default
4887  
4888 \family roman
4889 \emph on
4890 char
4891 \family default
4892 \emph default
4893  
4894 \family roman
4895 must not belong in the
4896 \family default
4897  
4898 \family roman
4899 \emph on
4900 allowed
4901 \family default
4902 \emph default
4903  
4904 \family roman
4905 set of
4906 \family default
4907  
4908 \family roman
4909 \emph on
4910 accent
4911 \emph default
4912 .
4913  When
4914 \family default
4915  
4916 \family roman
4917 \shape up
4918 you enter the
4919 \family default
4920 \shape default
4921  
4922 \family roman
4923 \shape up
4924 \emph on
4925 accent char
4926 \family default
4927 \shape default
4928 \emph default
4929  
4930 \family roman
4931 \shape up
4932 sequence,
4933 \family default
4934 \shape default
4935  
4936 \family roman
4937 \shape up
4938 \emph on
4939 result
4940 \emph default
4941  is produced.
4942  If such a declaration does not exist in
4943 \family default
4944 \shape default
4945  
4946 \shape up
4947 the
4948 \shape default
4949  
4950 \begin_inset Flex Code
4951 status collapsed
4952
4953 \begin_layout Plain Layout
4954
4955 \shape up
4956 .kmap
4957 \end_layout
4958
4959 \end_inset
4960
4961  file and yo
4962 \family roman
4963 u enter
4964 \family default
4965  
4966 \family roman
4967 \emph on
4968 accent char
4969 \emph default
4970 , you get
4971 \family default
4972  
4973 \family roman
4974 \emph on
4975 accent_key char
4976 \emph default
4977  where
4978 \family default
4979  
4980 \family roman
4981 \emph on
4982 accent_key
4983 \emph default
4984  is the first arg
4985 \family default
4986 ument of the 
4987 \begin_inset Flex Code
4988 status collapsed
4989
4990 \begin_layout Plain Layout
4991
4992 \shape up
4993
4994 \backslash
4995 kmod
4996 \end_layout
4997
4998 \end_inset
4999
5000  declaration.
5001  
5002 \end_layout
5003
5004 \begin_layout Standard
5005 The following command produces causes äi to be produced when you enter acute-i
5006  ('i):
5007 \end_layout
5008
5009 \begin_layout LyX-Code
5010
5011 \backslash
5012 kxmod acute i "
5013 \backslash
5014
5015 \backslash
5016 '{
5017 \backslash
5018
5019 \backslash
5020 i}"
5021 \end_layout
5022
5023 \begin_layout Labeling
5024 \labelwidthstring 00.00.0000
5025 \begin_inset Flex Code
5026 status collapsed
5027
5028 \begin_layout Plain Layout
5029 kcomb
5030 \end_layout
5031
5032 \end_inset
5033
5034  Combine two accent characters
5035 \end_layout
5036
5037 \begin_layout LyX-Code
5038
5039 \backslash
5040 kcomb 
5041 \family roman
5042 \emph on
5043 accent1 accent2 allowed
5044 \end_layout
5045
5046 \begin_layout Standard
5047 This one is getting pretty esoteric.
5048  It allows you to combine the effect 
5049 \family roman
5050 of
5051 \family default
5052  
5053 \family roman
5054 \emph on
5055 accent1
5056 \family default
5057 \emph default
5058  
5059 \family roman
5060 and
5061 \family default
5062  
5063 \family roman
5064 \emph on
5065 accent2
5066 \family default
5067 \emph default
5068  
5069 \family roman
5070 (in that order!) on
5071 \family default
5072  
5073 \family roman
5074 \emph on
5075 allowed
5076 \family default
5077 \emph default
5078  
5079 \family roman
5080 chars.
5081  The keystrokes for
5082 \family default
5083  
5084 \family roman
5085 \emph on
5086 accent1
5087 \family default
5088 \emph default
5089  
5090 \family roman
5091 and
5092 \family default
5093  
5094 \family roman
5095 \emph on
5096 accent2
5097 \family default
5098 \emph default
5099  
5100 \family roman
5101 must have be
5102 \family default
5103 en set with a 
5104 \begin_inset Flex Code
5105 status collapsed
5106
5107 \begin_layout Plain Layout
5108
5109 \shape up
5110
5111 \backslash
5112 kmod
5113 \end_layout
5114
5115 \end_inset
5116
5117  command at 
5118 \family roman
5119 a
5120 \family default
5121  
5122 \family roman
5123 \emph on
5124 previous
5125 \family default
5126 \emph default
5127  
5128 \family roman
5129 point in the
5130 \family default
5131  file.
5132  
5133 \end_layout
5134
5135 \begin_layout Standard
5136 Consider this example from the 
5137 \begin_inset Flex Code
5138 status collapsed
5139
5140 \begin_layout Plain Layout
5141
5142 \shape up
5143 greek.kmap
5144 \end_layout
5145
5146 \end_inset
5147
5148  file:
5149 \end_layout
5150
5151 \begin_layout LyX-Code
5152
5153 \backslash
5154 kmod ; acute aeioyvhAEIOYVH 
5155 \backslash
5156 kmod : umlaut iyIY 
5157 \backslash
5158 kcomb acute umlaut iyIY
5159 \end_layout
5160
5161 \begin_layout Standard
5162 This allows you to press 
5163 \begin_inset Flex Noun
5164 status collapsed
5165
5166 \begin_layout Plain Layout
5167
5168 \shape up
5169 ;:i
5170 \end_layout
5171
5172 \end_inset
5173
5174  and get the effect of 
5175 \begin_inset Flex Code
5176 status collapsed
5177
5178 \begin_layout Plain Layout
5179
5180 \shape up
5181
5182 \backslash
5183 '{
5184 \backslash
5185 "{i}}
5186 \end_layout
5187
5188 \end_inset
5189
5190 .
5191  
5192 \family roman
5193 \shape up
5194 A backspace
5195 \family default
5196 \shape default
5197  in this case cancels the last dead key, so if you press 
5198 \begin_inset Flex Noun
5199 status collapsed
5200
5201 \begin_layout Plain Layout
5202
5203 \shape up
5204 ;: Backspace i
5205 \end_layout
5206
5207 \end_inset
5208
5209  you get 
5210 \begin_inset Flex Code
5211 status collapsed
5212
5213 \begin_layout Plain Layout
5214
5215 \shape up
5216
5217 \backslash
5218 '{i}
5219 \end_layout
5220
5221 \end_inset
5222
5223 .
5224 \end_layout
5225
5226 \begin_layout Subsection
5227 The .cdef File
5228 \end_layout
5229
5230 \begin_layout Standard
5231 After the 
5232 \begin_inset Flex Code
5233 status collapsed
5234
5235 \begin_layout Plain Layout
5236
5237 \shape up
5238 .kmap
5239 \end_layout
5240
5241 \end_inset
5242
5243  mapping is performed, a 
5244 \begin_inset Flex Code
5245 status collapsed
5246
5247 \begin_layout Plain Layout
5248
5249 \shape up
5250 .cde
5251 \shape default
5252 f
5253 \end_layout
5254
5255 \end_inset
5256
5257  file maps the strings that the symbols generate to characters in the current
5258  font.
5259  The \SpecialChar LyX
5260  distribution currently includes at least the 
5261 \begin_inset Flex Code
5262 status collapsed
5263
5264 \begin_layout Plain Layout
5265
5266 \shape up
5267 iso8859-1.cdef
5268 \end_layout
5269
5270 \end_inset
5271
5272  and 
5273 \begin_inset Flex Code
5274 status collapsed
5275
5276 \begin_layout Plain Layout
5277
5278 \shape up
5279 iso8859-2.cdef
5280 \end_layout
5281
5282 \end_inset
5283
5284  files.
5285 \end_layout
5286
5287 \begin_layout Standard
5288 In general the 
5289 \begin_inset Flex Code
5290 status collapsed
5291
5292 \begin_layout Plain Layout
5293
5294 \shape up
5295 .cdef
5296 \end_layout
5297
5298 \end_inset
5299
5300  file is a sequence of declarations of the form
5301 \end_layout
5302
5303 \begin_layout LyX-Code
5304
5305 \family roman
5306 \emph on
5307 char_index_in_set
5308 \family default
5309 \emph default
5310  
5311 \family roman
5312 \emph on
5313  string
5314 \end_layout
5315
5316 \begin_layout Standard
5317 For example, in order to map 
5318 \begin_inset Flex Noun
5319 status collapsed
5320
5321 \begin_layout Plain Layout
5322
5323 \shape up
5324
5325 \backslash
5326 '{e}
5327 \end_layout
5328
5329 \end_inset
5330
5331  to the corresponding character in the iso-8859-1 set (233), the following
5332  declaration is used
5333 \end_layout
5334
5335 \begin_layout LyX-Code
5336 233 "
5337 \backslash
5338
5339 \backslash
5340 '{e}"
5341 \end_layout
5342
5343 \begin_layout Standard
5344 with 
5345 \begin_inset Flex Code
5346 status collapsed
5347
5348 \begin_layout Plain Layout
5349
5350 \backslash
5351
5352 \end_layout
5353
5354 \end_inset
5355
5356  and 
5357 \begin_inset Flex Code
5358 status collapsed
5359
5360 \begin_layout Plain Layout
5361 "
5362 \end_layout
5363
5364 \end_inset
5365
5366  being escap
5367 \family roman
5368 ed in
5369 \family default
5370  
5371 \family roman
5372 \emph on
5373 string
5374 \emph default
5375 .
5376  Note that
5377 \family default
5378  the same character can apply to more than one string.
5379  In the 
5380 \begin_inset Flex Code
5381 status collapsed
5382
5383 \begin_layout Plain Layout
5384 i
5385 \shape up
5386 so-8859-7.cdef
5387 \end_layout
5388
5389 \end_inset
5390
5391  file you have
5392 \end_layout
5393
5394 \begin_layout LyX-Code
5395 192 "
5396 \backslash
5397
5398 \backslash
5399 '{
5400 \backslash
5401
5402 \backslash
5403
5404 \backslash
5405 "{i}}"
5406 \begin_inset Newline newline
5407 \end_inset
5408
5409 192 "
5410 \backslash
5411
5412 \backslash
5413
5414 \backslash
5415 "{
5416 \backslash
5417
5418 \backslash
5419 '{i}}"
5420 \end_layout
5421
5422 \begin_layout Standard
5423 If \SpecialChar LyX
5424  cannot find a mapping for the string produced by the keystroke or a
5425  deadkey sequence, it will check if it looks like an accented char and try
5426  to draw an accent over the character on screen.
5427 \end_layout
5428
5429 \begin_layout Subsection
5430 Dead Keys
5431 \end_layout
5432
5433 \begin_layout Standard
5434 There is a second way to add support for international characters through
5435  so-called dead-keys.
5436  A dead-key works in combination with a letter to produce an accented character.
5437  Here, we'll explain how to create a really simple dead-key to illustrate
5438  how they work.
5439 \end_layout
5440
5441 \begin_layout Standard
5442 Suppose you happen to need the circumflex character, 
5443 \begin_inset Quotes eld
5444 \end_inset
5445
5446  ̂
5447 \begin_inset Quotes erd
5448 \end_inset
5449
5450 .
5451  You could bind the 
5452 \begin_inset Flex Noun
5453 status collapsed
5454
5455 \begin_layout Plain Layout
5456 ^
5457 \end_layout
5458
5459 \end_inset
5460
5461 -key [a.k.a.
5462 \begin_inset space ~
5463 \end_inset
5464
5465
5466 \begin_inset Flex Noun
5467 status collapsed
5468
5469 \begin_layout Plain Layout
5470 Shift-6
5471 \end_layout
5472
5473 \end_inset
5474
5475 ] to the \SpecialChar LyX
5476  command 
5477 \begin_inset Flex Code
5478 status collapsed
5479
5480 \begin_layout Plain Layout
5481 accent-circumflex
5482 \end_layout
5483
5484 \end_inset
5485
5486  in your 
5487 \begin_inset Flex Code
5488 status collapsed
5489
5490 \begin_layout Plain Layout
5491 lyxrc
5492 \end_layout
5493
5494 \end_inset
5495
5496  file.
5497  Now, whenever you type the 
5498 \begin_inset Flex Noun
5499 status collapsed
5500
5501 \begin_layout Plain Layout
5502 ^
5503 \end_layout
5504
5505 \end_inset
5506
5507 -key followed by a letter, that letter will have a circumflex accent on
5508  it.
5509  For example, the sequence 
5510 \begin_inset Quotes eld
5511 \end_inset
5512
5513
5514 \begin_inset Flex Noun
5515 status collapsed
5516
5517 \begin_layout Plain Layout
5518 ^e
5519 \end_layout
5520
5521 \end_inset
5522
5523
5524 \begin_inset Quotes erd
5525 \end_inset
5526
5527  produces the letter: 
5528 \begin_inset Quotes eld
5529 \end_inset
5530
5531 ê
5532 \begin_inset Quotes erd
5533 \end_inset
5534
5535 .
5536  If you tried to type 
5537 \begin_inset Quotes eld
5538 \end_inset
5539
5540
5541 \begin_inset Flex Noun
5542 status collapsed
5543
5544 \begin_layout Plain Layout
5545 ^t
5546 \end_layout
5547
5548 \end_inset
5549
5550
5551 \begin_inset Quotes erd
5552 \end_inset
5553
5554 , however, \SpecialChar LyX
5555  will complain with a beep, since a 
5556 \begin_inset Quotes eld
5557 \end_inset
5558
5559
5560 \begin_inset Flex Noun
5561 status collapsed
5562
5563 \begin_layout Plain Layout
5564 t
5565 \end_layout
5566
5567 \end_inset
5568
5569
5570 \begin_inset Quotes erd
5571 \end_inset
5572
5573  never takes a circumflex accent.
5574  Hitting 
5575 \begin_inset Flex Noun
5576 status collapsed
5577
5578 \begin_layout Plain Layout
5579 Space
5580 \end_layout
5581
5582 \end_inset
5583
5584  after a dead-key produces the bare-accent.
5585  Please note this last point! If you bind a key to a dead-key, you'll need
5586  to rebind the character on that key to yet another key.
5587  Binding the 
5588 \begin_inset Flex Noun
5589 status collapsed
5590
5591 \begin_layout Plain Layout
5592 ,-key
5593 \end_layout
5594
5595 \end_inset
5596
5597  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5598 \end_layout
5599
5600 \begin_layout Standard
5601 One common way to bind dead-keys is to use 
5602 \begin_inset Flex Noun
5603 status collapsed
5604
5605 \begin_layout Plain Layout
5606 Meta-
5607 \end_layout
5608
5609 \end_inset
5610
5611
5612 \begin_inset Flex Noun
5613 status collapsed
5614
5615 \begin_layout Plain Layout
5616 Ctrl-
5617 \end_layout
5618
5619 \end_inset
5620
5621 , and 
5622 \begin_inset Flex Noun
5623 status collapsed
5624
5625 \begin_layout Plain Layout
5626 Shift-
5627 \end_layout
5628
5629 \end_inset
5630
5631  in combination with an accent, like 
5632 \begin_inset Quotes eld
5633 \end_inset
5634
5635
5636 \begin_inset Flex Noun
5637 status collapsed
5638
5639 \begin_layout Plain Layout
5640 ~
5641 \end_layout
5642
5643 \end_inset
5644
5645
5646 \begin_inset Quotes erd
5647 \end_inset
5648
5649  or 
5650 \begin_inset Quotes eld
5651 \end_inset
5652
5653
5654 \begin_inset Flex Noun
5655 status collapsed
5656
5657 \begin_layout Plain Layout
5658 ,
5659 \end_layout
5660
5661 \end_inset
5662
5663
5664 \begin_inset Quotes erd
5665 \end_inset
5666
5667  or 
5668 \begin_inset Quotes eld
5669 \end_inset
5670
5671
5672 \begin_inset Flex Noun
5673 status collapsed
5674
5675 \begin_layout Plain Layout
5676 ^
5677 \end_layout
5678
5679 \end_inset
5680
5681
5682 \begin_inset Quotes erd
5683 \end_inset
5684
5685 .
5686  Another way involves using 
5687 \begin_inset Flex Code
5688 status collapsed
5689
5690 \begin_layout Plain Layout
5691 xmodmap
5692 \end_layout
5693
5694 \end_inset
5695
5696  and 
5697 \begin_inset Flex Code
5698 status collapsed
5699
5700 \begin_layout Plain Layout
5701 xkeycaps
5702 \end_layout
5703
5704 \end_inset
5705
5706  to set up the special 
5707 \begin_inset Flex Code
5708 status collapsed
5709
5710 \begin_layout Plain Layout
5711 Mode_Switch
5712 \end_layout
5713
5714 \end_inset
5715
5716  key.
5717  The 
5718 \begin_inset Flex Code
5719 status collapsed
5720
5721 \begin_layout Plain Layout
5722 Mode_Switch
5723 \end_layout
5724
5725 \end_inset
5726
5727  acts in some ways just like 
5728 \begin_inset Flex Noun
5729 status collapsed
5730
5731 \begin_layout Plain Layout
5732 Shift
5733 \end_layout
5734
5735 \end_inset
5736
5737  and permits you to bind keys to accented characters.
5738  You can also turn keys into dead-keys by binding them to something like
5739  
5740 \begin_inset Flex Code
5741 status collapsed
5742
5743 \begin_layout Plain Layout
5744 usldead_cedilla
5745 \end_layout
5746
5747 \end_inset
5748
5749  and then binding this symbolic key to the corresponding \SpecialChar LyX
5750  command.
5751 \begin_inset Foot
5752 status collapsed
5753
5754 \begin_layout Plain Layout
5755 Note from 
5756 \noun on
5757 John Weiss
5758 \noun default
5759 : This is exactly what I do in my 
5760 \begin_inset Flex Code
5761 status collapsed
5762
5763 \begin_layout Plain Layout
5764 ~/.lyx/lyxrc
5765 \end_layout
5766
5767 \end_inset
5768
5769  and my 
5770 \begin_inset Flex Code
5771 status collapsed
5772
5773 \begin_layout Plain Layout
5774 ~/.xmodmap
5775 \end_layout
5776
5777 \end_inset
5778
5779  files.
5780  I have my 
5781 \begin_inset Flex Noun
5782 status collapsed
5783
5784 \begin_layout Plain Layout
5785 Scroll
5786 \begin_inset space ~
5787 \end_inset
5788
5789 Lock
5790 \end_layout
5791
5792 \end_inset
5793
5794  key set up as 
5795 \begin_inset Flex Code
5796 status collapsed
5797
5798 \begin_layout Plain Layout
5799 Mode_Shift
5800 \end_layout
5801
5802 \end_inset
5803
5804  and a bunch of these 
5805 \begin_inset Quotes eld
5806 \end_inset
5807
5808
5809 \begin_inset Flex Code
5810 status collapsed
5811
5812 \begin_layout Plain Layout
5813 usldead_*
5814 \end_layout
5815
5816 \end_inset
5817
5818
5819 \begin_inset Quotes erd
5820 \end_inset
5821
5822  symbolic keys bound such things as 
5823 \begin_inset Flex Noun
5824 status collapsed
5825
5826 \begin_layout Plain Layout
5827 Scroll
5828 \begin_inset space ~
5829 \end_inset
5830
5831 Lock-^
5832 \end_layout
5833
5834 \end_inset
5835
5836  and 
5837 \begin_inset Flex Noun
5838 status collapsed
5839
5840 \begin_layout Plain Layout
5841 Scroll
5842 \begin_inset space ~
5843 \end_inset
5844
5845 Lock-~
5846 \end_layout
5847
5848 \end_inset
5849
5850 .
5851  This is how I produce my accented characters.
5852 \end_layout
5853
5854 \end_inset
5855
5856  You can make just about anything into the 
5857 \begin_inset Flex Code
5858 status collapsed
5859
5860 \begin_layout Plain Layout
5861 Mode_Switch
5862 \end_layout
5863
5864 \end_inset
5865
5866  key: One of the 
5867 \begin_inset Flex Noun
5868 status collapsed
5869
5870 \begin_layout Plain Layout
5871 Ctrl-
5872 \end_layout
5873
5874 \end_inset
5875
5876  keys, a spare function key, etc.
5877  As for the \SpecialChar LyX
5878  commands that produce accents, check the entry for 
5879 \begin_inset Flex Code
5880 status collapsed
5881
5882 \begin_layout Plain Layout
5883 accent-acute
5884 \end_layout
5885
5886 \end_inset
5887
5888  in the 
5889 \emph on
5890 Reference Manual
5891 \emph default
5892 .
5893  You'll find the complete list there.
5894 \end_layout
5895
5896 \begin_layout Subsection
5897 Saving your Language Configuration
5898 \end_layout
5899
5900 \begin_layout Standard
5901 You can edit your preferences so that your desired language environment
5902  is automatically configured when \SpecialChar LyX
5903  starts up, via the 
5904 \begin_inset Flex Noun
5905 status collapsed
5906
5907 \begin_layout Plain Layout
5908 Edit\SpecialChar menuseparator
5909 Preferences
5910 \end_layout
5911
5912 \end_inset
5913
5914  dialog.
5915 \end_layout
5916
5917 \begin_layout Chapter
5918 Installing New Document Classes, Layouts, and Templates
5919 \begin_inset CommandInset label
5920 LatexCommand label
5921 name "cha:Installing-New-Document"
5922
5923 \end_inset
5924
5925
5926 \begin_inset Argument 1
5927 status collapsed
5928
5929 \begin_layout Plain Layout
5930 Installing New Document Classes
5931 \end_layout
5932
5933 \end_inset
5934
5935
5936 \end_layout
5937
5938 \begin_layout Standard
5939 In this chapter, we describe the procedures for creating and installing
5940  new \SpecialChar LyX
5941  layout and template files, as well as offer a refresher on correctly
5942  installing new \SpecialChar LaTeX
5943  document classes.
5944  
5945 \end_layout
5946
5947 \begin_layout Standard
5948 First, let us a say a few words about how one ought to think about the relation
5949  between \SpecialChar LyX
5950  and \SpecialChar LaTeX
5951 .
5952  The thing to understand is that, in a certain sense, \SpecialChar LyX
5953  doesn't know anything
5954  about \SpecialChar LaTeX
5955 .
5956  Indeed, from \SpecialChar LyX
5957 's point of view, \SpecialChar LaTeX
5958  is just one of several 
5959 \begin_inset Quotes eld
5960 \end_inset
5961
5962 backend formats
5963 \begin_inset Quotes erd
5964 \end_inset
5965
5966  in which it is capable of producing output.
5967  Other such formats are DocBook, plaintext, and XHTML.
5968  \SpecialChar LaTeX
5969  is, of course, a particularly important format, but very little of the
5970  information \SpecialChar LyX
5971  has about \SpecialChar LaTeX
5972  is actually contained in the program itself.
5973 \begin_inset Foot
5974 status collapsed
5975
5976 \begin_layout Plain Layout
5977 Some commands are sufficiently complex that they are 
5978 \begin_inset Quotes eld
5979 \end_inset
5980
5981 hardcoded
5982 \begin_inset Quotes erd
5983 \end_inset
5984
5985  into \SpecialChar LyX
5986 .
5987  But the developers generally regard this as a Bad Thing.
5988 \end_layout
5989
5990 \end_inset
5991
5992  Rather, that information, even for the standard classes like 
5993 \begin_inset Flex Code
5994 status collapsed
5995
5996 \begin_layout Plain Layout
5997 article.cls
5998 \end_layout
5999
6000 \end_inset
6001
6002 , is contained in `layout files'.
6003  Similarly, \SpecialChar LyX
6004  itself does not know much about DocBook or XHTML.
6005  What it knows is contained in layout files.
6006 \end_layout
6007
6008 \begin_layout Standard
6009 You can think of the layout file for a given document class as a translation
6010  manual between \SpecialChar LyX
6011  constructs—paragraphs with their corresponding styles,
6012  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
6013 , DocBook, or XHTML
6014  constructs.
6015  Almost everything \SpecialChar LyX
6016  knows about 
6017 \begin_inset Flex Code
6018 status collapsed
6019
6020 \begin_layout Plain Layout
6021 article.cls
6022 \end_layout
6023
6024 \end_inset
6025
6026 , for example, is contained in the file 
6027 \begin_inset Flex Code
6028 status collapsed
6029
6030 \begin_layout Plain Layout
6031 article.layout
6032 \end_layout
6033
6034 \end_inset
6035
6036  and in various other files it includes.
6037  For this reason, anyone intending to write layout files should plan to
6038  study the existing files.
6039  A good place to start is with 
6040 \begin_inset Flex Code
6041 status collapsed
6042
6043 \begin_layout Plain Layout
6044 stdsections.inc
6045 \end_layout
6046
6047 \end_inset
6048
6049 , which is included in 
6050 \begin_inset Flex Code
6051 status collapsed
6052
6053 \begin_layout Plain Layout
6054 article.layout
6055 \end_layout
6056
6057 \end_inset
6058
6059
6060 \begin_inset Flex Code
6061 status collapsed
6062
6063 \begin_layout Plain Layout
6064 book.layout
6065 \end_layout
6066
6067 \end_inset
6068
6069 , and many of the other layout files for document classes.
6070  This file is where sections and the like are defined: 
6071 \begin_inset Flex Code
6072 status collapsed
6073
6074 \begin_layout Plain Layout
6075 stdsections.inc
6076 \end_layout
6077
6078 \end_inset
6079
6080  tells \SpecialChar LyX
6081  how paragraphs that are marked with the Section, Subsection, etc,
6082  styles can be translated into corresponding \SpecialChar LaTeX
6083 , DocBook, and XHTML commands
6084  and tags.
6085  The 
6086 \begin_inset Flex Code
6087 status collapsed
6088
6089 \begin_layout Plain Layout
6090 article.layout
6091 \end_layout
6092
6093 \end_inset
6094
6095  file basically just includes several of these 
6096 \begin_inset Flex Code
6097 status collapsed
6098
6099 \begin_layout Plain Layout
6100 std*.inc
6101 \end_layout
6102
6103 \end_inset
6104
6105  files.
6106 \end_layout
6107
6108 \begin_layout Standard
6109 Defining the \SpecialChar LyX
6110 –\SpecialChar LaTeX
6111  correspondence is not the only thing layout files do, though.
6112  Their other job is to define how the \SpecialChar LyX
6113  constructs themselves will appear
6114  on-screen.
6115  The fact that layout files have these two jobs is often a source of confusion,
6116  because they are completely separate.
6117  Telling \SpecialChar LyX
6118  how to translate a certain paragraph style into \SpecialChar LaTeX
6119  does not tell
6120  \SpecialChar LyX
6121  how to display it; conversely, telling \SpecialChar LyX
6122  how to display a certain paragraph
6123  style does not tell \SpecialChar LyX
6124  how to translate it into \SpecialChar LaTeX
6125  (let alone tell \SpecialChar LaTeX
6126  how to
6127  display it).
6128  So, in general, when you define a new \SpecialChar LyX
6129  construct, you must always do two
6130  quite separate things: (i)
6131 \begin_inset space ~
6132 \end_inset
6133
6134 tell \SpecialChar LyX
6135  how to translate it into \SpecialChar LaTeX
6136  and (ii)
6137 \begin_inset space ~
6138 \end_inset
6139
6140 tell \SpecialChar LyX
6141  how to display it.
6142 \end_layout
6143
6144 \begin_layout Standard
6145 Much the same is true, of course, as regards \SpecialChar LyX
6146 's other backend formats, though
6147  XHTML is in some ways different, because in that case \SpecialChar LyX
6148  
6149 \emph on
6150 is
6151 \emph default
6152  able, to some extent, to use information about how it should display a
6153  paragraph on the screen to output information (in the form of CSS) about
6154  how the paragraph should be displayed in a browser.
6155  Even in this case, however, the distinction between what \SpecialChar LyX
6156  does internally
6157  and how things are rendered externally remains in force, and the two can
6158  be controlled separately.
6159  See 
6160 \begin_inset CommandInset ref
6161 LatexCommand ref
6162 reference "sec:Tags-for-XHTML"
6163
6164 \end_inset
6165
6166  for the details.
6167 \end_layout
6168
6169 \begin_layout Section
6170 Installing new \SpecialChar LaTeX
6171  files
6172 \end_layout
6173
6174 \begin_layout Standard
6175 Some installations may not include a \SpecialChar LaTeX
6176  package or class file that you would
6177  like to use within \SpecialChar LyX
6178 .
6179  For example, you might need Foil\SpecialChar TeX
6180 , a package for preparing slides for overhead
6181  projectors.
6182  Modern \SpecialChar LaTeX
6183  distributions like \SpecialChar TeX
6184 Live (2008 or newer) or MiK\SpecialChar TeX
6185  provide a user interface
6186  for installing such packages.
6187  For example, with MiK\SpecialChar TeX
6188 , you start the program 
6189 \begin_inset Quotes eld
6190 \end_inset
6191
6192 Package
6193 \begin_inset space ~
6194 \end_inset
6195
6196 Manager
6197 \begin_inset Quotes erd
6198 \end_inset
6199
6200  to get a list of available packages.
6201  To install one of them, right click on it or use the corresponding toolbar
6202  button.
6203 \end_layout
6204
6205 \begin_layout Standard
6206 If your \SpecialChar LaTeX
6207  distribution does not provide such a `package manager', or if the
6208  package is not available from your distribution, then follow these steps
6209  to install it manually:
6210 \end_layout
6211
6212 \begin_layout Enumerate
6213 Get the package from 
6214 \begin_inset CommandInset href
6215 LatexCommand href
6216 name "CTAN"
6217 target "http://www.ctan.org/"
6218 literal "false"
6219
6220 \end_inset
6221
6222  or wherever.
6223 \end_layout
6224
6225 \begin_layout Enumerate
6226 If the package contains a file with the ending 
6227 \begin_inset Quotes eld
6228 \end_inset
6229
6230
6231 \begin_inset Flex Code
6232 status collapsed
6233
6234 \begin_layout Plain Layout
6235 .ins
6236 \end_layout
6237
6238 \end_inset
6239
6240
6241 \begin_inset Quotes erd
6242 \end_inset
6243
6244  (is the case for Foil\SpecialChar TeX
6245 ) then open a console, change to the folder of this
6246  file and execute the command 
6247 \begin_inset Flex Code
6248 status collapsed
6249
6250 \begin_layout Plain Layout
6251 latex foiltex.ins
6252 \end_layout
6253
6254 \end_inset
6255
6256 .
6257  You have now unpacked the package and have all files to install it.
6258  Most \SpecialChar LaTeX
6259 -packages are not packed and you can skip this step.
6260 \end_layout
6261
6262 \begin_layout Enumerate
6263 Now you need to decide if the package should be available for all users
6264  or only for you.
6265 \end_layout
6266
6267 \begin_deeper
6268 \begin_layout Enumerate
6269 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6270  for all users on your system, then install it in your `local' \SpecialChar TeX
6271  tree, otherwise
6272  install it in your own `user' \SpecialChar TeX
6273  tree.
6274  Where these trees should be created, if they do not already exist, depends
6275  on your system.
6276  To find this out, look in the file 
6277 \begin_inset Flex Code
6278 status collapsed
6279
6280 \begin_layout Plain Layout
6281 texmf.cnf
6282 \end_layout
6283
6284 \end_inset
6285
6286 .
6287 \begin_inset Foot
6288 status collapsed
6289
6290 \begin_layout Plain Layout
6291 This is usually in the directory 
6292 \begin_inset Flex Code
6293 status collapsed
6294
6295 \begin_layout Plain Layout
6296 $TEXMF/web2c
6297 \end_layout
6298
6299 \end_inset
6300
6301 , though you can execute the command 
6302 \begin_inset Flex Code
6303 status collapsed
6304
6305 \begin_layout Plain Layout
6306 kpsewhich texmf.cnf
6307 \end_layout
6308
6309 \end_inset
6310
6311  to locate it.
6312 \end_layout
6313
6314 \end_inset
6315
6316  The location of the `local' \SpecialChar TeX
6317  tree is defined by the 
6318 \begin_inset Flex Code
6319 status collapsed
6320
6321 \begin_layout Plain Layout
6322 TEXMFLOCAL
6323 \end_layout
6324
6325 \end_inset
6326
6327  variable; this is usually somewhere like 
6328 \begin_inset Flex Code
6329 status collapsed
6330
6331 \begin_layout Plain Layout
6332 /usr/local/share/texmf
6333 \end_layout
6334
6335 \end_inset
6336
6337  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6338 Live
6339  distribution.
6340  The location of the `user' \SpecialChar TeX
6341  tree is defined by 
6342 \begin_inset Flex Code
6343 status collapsed
6344
6345 \begin_layout Plain Layout
6346 TEXMFHOME
6347 \end_layout
6348
6349 \end_inset
6350
6351  and is commonly 
6352 \begin_inset Flex Code
6353 status collapsed
6354
6355 \begin_layout Plain Layout
6356 $HOME/texmf
6357 \end_layout
6358
6359 \end_inset
6360
6361  or 
6362 \begin_inset Flex Code
6363 status collapsed
6364
6365 \begin_layout Plain Layout
6366
6367 \family sans
6368 $HOME/.texliveXXXX
6369 \end_layout
6370
6371 \end_inset
6372
6373 .
6374  (If these variables are not predefined, you have to define them.) You'll
6375  probably need root permissions to create or modify the `local' tree, but
6376  not for your `user' tree.
6377 \begin_inset Newline newline
6378 \end_inset
6379
6380 In general, it is recommended to install in the user tree because your user
6381  will not be modified or even overwritten when you upgrade your system.
6382  It will typically also be backed up together with everything else when
6383  you backup your home directory (which, of course, you do on a regular basis).
6384 \end_layout
6385
6386 \begin_layout Enumerate
6387 On Windows, if you want the new package to be available for all users on
6388  your system, change to the folder where \SpecialChar LaTeX
6389  is installed and then change to
6390  the subfolder 
6391 \begin_inset Flex Code
6392 status collapsed
6393
6394 \begin_layout Plain Layout
6395 ~
6396 \backslash
6397 tex
6398 \backslash
6399 latex
6400 \end_layout
6401
6402 \end_inset
6403
6404 .
6405  (For MiK\SpecialChar TeX
6406 , this would be by default the folder 
6407 \begin_inset Flex Code
6408 status collapsed
6409
6410 \begin_layout Plain Layout
6411 ~:
6412 \backslash
6413 Programs
6414 \backslash
6415 MiKTeX
6416 \backslash
6417 tex
6418 \backslash
6419 latex
6420 \end_layout
6421
6422 \end_inset
6423
6424 .)
6425 \begin_inset Foot
6426 status collapsed
6427
6428 \begin_layout Plain Layout
6429 Note that this will be the correct path only on English installations.
6430  On a German one, it would be 
6431 \begin_inset Flex Code
6432 status collapsed
6433
6434 \begin_layout Plain Layout
6435 ~:
6436 \backslash
6437 Programme
6438 \backslash
6439 MiKTeX
6440 \backslash
6441 tex
6442 \backslash
6443 latex
6444 \end_layout
6445
6446 \end_inset
6447
6448 , and similarly for other languages.
6449 \end_layout
6450
6451 \end_inset
6452
6453  Create there a new folder 
6454 \begin_inset Flex Code
6455 status collapsed
6456
6457 \begin_layout Plain Layout
6458 foiltex
6459 \end_layout
6460
6461 \end_inset
6462
6463  and copy all files of the package into it.
6464  
6465 \begin_inset Newline newline
6466 \end_inset
6467
6468 If the package should only available for you or you don't have admin permissions
6469 , do the same, but in the local \SpecialChar LaTeX
6470  folder.
6471  E.
6472 \begin_inset space \thinspace{}
6473 \end_inset
6474
6475 g., for MiK\SpecialChar TeX
6476
6477 \begin_inset space ~
6478 \end_inset
6479
6480 2.8 under Windows XP, this would be the folder:
6481 \begin_inset Newline newline
6482 \end_inset
6483
6484
6485 \family sans
6486
6487 \begin_inset Flex Code
6488 status collapsed
6489
6490 \begin_layout Plain Layout
6491 ~:
6492 \backslash
6493 Documents and Settings
6494 \backslash
6495 <username>
6496 \backslash
6497 Application Data
6498 \backslash
6499
6500 \end_layout
6501
6502 \end_inset
6503
6504
6505 \begin_inset Newline newline
6506 \end_inset
6507
6508
6509 \family default
6510
6511 \begin_inset Phantom HPhantom
6512 status open
6513
6514 \begin_layout Plain Layout
6515
6516 \family sans
6517 ~:
6518 \backslash
6519
6520 \end_layout
6521
6522 \end_inset
6523
6524
6525 \begin_inset Flex Code
6526 status collapsed
6527
6528 \begin_layout Plain Layout
6529 MiKTeX
6530 \backslash
6531 2.8
6532 \backslash
6533 tex
6534 \backslash
6535 latex
6536 \end_layout
6537
6538 \end_inset
6539
6540
6541 \begin_inset Newline newline
6542 \end_inset
6543
6544 On Vista, it would be:
6545 \begin_inset Newline newline
6546 \end_inset
6547
6548
6549 \begin_inset Flex Code
6550 status collapsed
6551
6552 \begin_layout Plain Layout
6553 ~:
6554 \backslash
6555 Users
6556 \backslash
6557 <username>
6558 \backslash
6559 AppData
6560 \backslash
6561 Roaming
6562 \backslash
6563 2.8
6564 \backslash
6565 MiKTeX
6566 \backslash
6567 tex
6568 \backslash
6569 latex
6570 \end_layout
6571
6572 \end_inset
6573
6574
6575 \end_layout
6576
6577 \end_deeper
6578 \begin_layout Enumerate
6579 Now one only need to tell \SpecialChar LaTeX
6580  that there are new files.
6581  This depends on the used \SpecialChar LaTeX
6582 -Distribution:
6583 \end_layout
6584
6585 \begin_deeper
6586 \begin_layout Enumerate
6587 For \SpecialChar TeX
6588 Live execute the command 
6589 \begin_inset Flex Code
6590 status collapsed
6591
6592 \begin_layout Plain Layout
6593 texhash
6594 \end_layout
6595
6596 \end_inset
6597
6598  from a console.
6599  If you installed the package for all users, then you will probably need
6600  to have root permissions for that.
6601 \end_layout
6602
6603 \begin_layout Enumerate
6604 For MiK\SpecialChar TeX
6605 , if you have installed the package for all users, start the program
6606  
6607 \begin_inset Quotes eld
6608 \end_inset
6609
6610 Settings
6611 \begin_inset space ~
6612 \end_inset
6613
6614 (Admin)
6615 \begin_inset Quotes erd
6616 \end_inset
6617
6618  and press the button marked 
6619 \begin_inset Quotes eld
6620 \end_inset
6621
6622 Refresh FNDB
6623 \begin_inset Quotes erd
6624 \end_inset
6625
6626 .
6627  Otherwise start the program 
6628 \begin_inset Quotes eld
6629 \end_inset
6630
6631 Settings
6632 \begin_inset Quotes erd
6633 \end_inset
6634
6635  and do the same.
6636 \end_layout
6637
6638 \end_deeper
6639 \begin_layout Enumerate
6640 Finally, you need to tell \SpecialChar LyX
6641  that there are new packages available.
6642  So, in \SpecialChar LyX
6643 , use the menu 
6644 \begin_inset Flex Noun
6645 status collapsed
6646
6647 \begin_layout Plain Layout
6648 Tools
6649 \family sans
6650 \SpecialChar menuseparator
6651 Reconfigure
6652 \end_layout
6653
6654 \end_inset
6655
6656  and then restart \SpecialChar LyX
6657 .
6658 \end_layout
6659
6660 \begin_layout Standard
6661 Now the package is installed.
6662  In our example, the document class 
6663 \begin_inset Flex Code
6664 status collapsed
6665
6666 \begin_layout Plain Layout
6667 FoilTex
6668 \end_layout
6669
6670 \end_inset
6671
6672  will now be available under 
6673 \begin_inset Flex Noun
6674 status collapsed
6675
6676 \begin_layout Plain Layout
6677 Document\SpecialChar menuseparator
6678 Settings\SpecialChar menuseparator
6679 Document Class
6680 \end_layout
6681
6682 \end_inset
6683
6684  (in the 
6685 \begin_inset Quotes eld
6686 \end_inset
6687
6688 Presentations
6689 \begin_inset Quotes erd
6690 \end_inset
6691
6692  category).
6693  
6694 \end_layout
6695
6696 \begin_layout Standard
6697 If you would like to use a \SpecialChar LaTeX
6698  document class that is not even listed in the
6699  menu 
6700 \begin_inset Flex Noun
6701 status collapsed
6702
6703 \begin_layout Plain Layout
6704 Document\SpecialChar menuseparator
6705 Settings\SpecialChar menuseparator
6706 Document Class
6707 \end_layout
6708
6709 \end_inset
6710
6711 , then you need to create a `layout' file for it.
6712  That is the topic of the next section.
6713 \end_layout
6714
6715 \begin_layout Section
6716 Types of layout files
6717 \end_layout
6718
6719 \begin_layout Standard
6720 This section describes the various sorts of \SpecialChar LyX
6721  files that contain layout informati
6722 on.
6723  These files describe various paragraph and character styles, determining
6724  how \SpecialChar LyX
6725  should display them and how they should be translated into \SpecialChar LaTeX
6726 , DocBook,
6727  XHTML, or whatever output format is being used.
6728  
6729 \end_layout
6730
6731 \begin_layout Standard
6732 We shall try to provide a thorough description of the process of writing
6733  layout files here.
6734  However, there are so many different types of documents supported even
6735  by just \SpecialChar LaTeX
6736  that we can't hope to cover every different possibility or problem
6737  you might encounter.
6738  The \SpecialChar LyX
6739  users' list is frequented by people with lots of experience with layout
6740  design who are willing to share what they've learned, so please feel free
6741  to ask questions there.
6742 \end_layout
6743
6744 \begin_layout Standard
6745 As you prepare to write a new layout, it is extremely helpful to look at
6746  the layouts distributed with \SpecialChar LyX
6747 .
6748  If you write a \SpecialChar LyX
6749  layout for a \SpecialChar LaTeX
6750  document class that might also be used by
6751  others, or write a module that might be useful to others, then you should
6752  consider posting your layout to the 
6753 \begin_inset CommandInset href
6754 LatexCommand href
6755 name "layout section on the LyX wiki"
6756 target "https://wiki.lyx.org/Layouts/Layouts"
6757 literal "false"
6758
6759 \end_inset
6760
6761  or even to the \SpecialChar LyX
6762  developers' list, so that it might be included in \SpecialChar LyX
6763  itself.
6764 \begin_inset Foot
6765 status collapsed
6766
6767 \begin_layout Plain Layout
6768 Note that \SpecialChar LyX
6769  is licensed under the General Public License, so any material
6770  that is contributed to \SpecialChar LyX
6771  must be similarly licensed.
6772 \end_layout
6773
6774 \end_inset
6775
6776
6777 \end_layout
6778
6779 \begin_layout Subsection
6780 Layout modules
6781 \begin_inset CommandInset label
6782 LatexCommand label
6783 name "subsec:Layout-modules"
6784
6785 \end_inset
6786
6787
6788 \end_layout
6789
6790 \begin_layout Standard
6791 We have spoken to this point about `layout files'.
6792  But there are different sorts of files that contain layout information.
6793  Layout files, strictly so called, have the 
6794 \begin_inset Flex Code
6795 status collapsed
6796
6797 \begin_layout Plain Layout
6798 .layout
6799 \end_layout
6800
6801 \end_inset
6802
6803  extension and provide \SpecialChar LyX
6804  with information about document classes.
6805  Since \SpecialChar LyX
6806  1.6 layout information can also be contained in layout 
6807 \emph on
6808 modules
6809 \emph default
6810 , which have the 
6811 \begin_inset Flex Code
6812 status collapsed
6813
6814 \begin_layout Plain Layout
6815 .module
6816 \end_layout
6817
6818 \end_inset
6819
6820  extension.
6821  Modules are to \SpecialChar LaTeX
6822  packages much as layouts are to \SpecialChar LaTeX
6823  classes, and some modules—such
6824  as the 
6825 \begin_inset Flex Code
6826 status collapsed
6827
6828 \begin_layout Plain Layout
6829 endnotes
6830 \end_layout
6831
6832 \end_inset
6833
6834  module—specifically provide support for one package.
6835  In a sense, layout modules are similar to included
6836 \begin_inset Foot
6837 status collapsed
6838
6839 \begin_layout Plain Layout
6840 These can have any extension, but by convention have the 
6841 \begin_inset Flex Code
6842 status collapsed
6843
6844 \begin_layout Plain Layout
6845 .inc
6846 \end_layout
6847
6848 \end_inset
6849
6850  extension.
6851 \end_layout
6852
6853 \end_inset
6854
6855  files—files like 
6856 \begin_inset Flex Code
6857 status collapsed
6858
6859 \begin_layout Plain Layout
6860 stdsections.inc
6861 \end_layout
6862
6863 \end_inset
6864
6865 —in that modules are not specific to a given document class but may be used
6866  with many different classes.
6867  The difference is that using an included file with 
6868 \begin_inset Flex Code
6869 status collapsed
6870
6871 \begin_layout Plain Layout
6872 article.cls
6873 \end_layout
6874
6875 \end_inset
6876
6877  requires editing that file.
6878  Modules, by contrast, are selected in the 
6879 \begin_inset Flex Noun
6880 status collapsed
6881
6882 \begin_layout Plain Layout
6883 Document\SpecialChar menuseparator
6884 Settings
6885 \end_layout
6886
6887 \end_inset
6888
6889  dialog.
6890 \end_layout
6891
6892 \begin_layout Standard
6893 Building modules is the easiest way to get started with layout editing,
6894  since it can be as simple as adding a single new paragraph style or flex
6895  inset.
6896  But modules may, in principle, contain anything a layout file can contain.
6897 \end_layout
6898
6899 \begin_layout Standard
6900 After creating a new module and copying it to the 
6901 \begin_inset Flex Code
6902 status collapsed
6903
6904 \begin_layout Plain Layout
6905 layouts/
6906 \end_layout
6907
6908 \end_inset
6909
6910  folder, you will need to reconfigure and then restart \SpecialChar LyX
6911  for the module to
6912  appear in the menu.
6913  However, changes you make to the module will be seen immediately, if you
6914  open 
6915 \begin_inset Flex Noun
6916 status collapsed
6917
6918 \begin_layout Plain Layout
6919 Document\SpecialChar menuseparator
6920 Settings
6921 \end_layout
6922
6923 \end_inset
6924
6925 , highlight something, and then hit 
6926 \begin_inset Quotes eld
6927 \end_inset
6928
6929 OK
6930 \begin_inset Quotes erd
6931 \end_inset
6932
6933 .
6934  
6935 \emph on
6936 It is strongly recommended that you save your work before doing this
6937 \emph default
6938 .
6939  In fact, 
6940 \emph on
6941 it is strongly recommended that you not attempt to edit modules while simultaneo
6942 usly working on actual documents
6943 \emph default
6944 .
6945  Though of course the developers strive to keep \SpecialChar LyX
6946  stable in such situations,
6947  syntax errors and the like in your module file could cause strange behavior.
6948 \end_layout
6949
6950 \begin_layout Subsubsection
6951 Local Layout
6952 \end_layout
6953
6954 \begin_layout Standard
6955 Modules are to \SpecialChar LyX
6956  as packages are to \SpecialChar LaTeX
6957 .
6958  Sometimes, however, you find yourself wanting a specific inset or character
6959  style just for one document and writing a module that will also be available
6960  to other documents makes little sense.
6961  What you need is \SpecialChar LyX
6962 's 
6963 \begin_inset Quotes eld
6964 \end_inset
6965
6966 Local Layout
6967 \begin_inset Quotes erd
6968 \end_inset
6969
6970 .
6971 \end_layout
6972
6973 \begin_layout Standard
6974 You will find it under 
6975 \family sans
6976 Document\SpecialChar menuseparator
6977 Settings\SpecialChar menuseparator
6978 Local Layout
6979 \family default
6980 .
6981  The large text box allows you to enter anything that you might enter in
6982  a layout file or module.
6983  You can think of a document's local layout, in fact, as a module that belongs
6984  just to it.
6985  So, in particular, you must enter a 
6986 \begin_inset Flex Code
6987 status collapsed
6988
6989 \begin_layout Plain Layout
6990 Format
6991 \end_layout
6992
6993 \end_inset
6994
6995  tag.
6996  Any format is acceptable, but one would normally use the format current
6997  at the time.
6998  (In \SpecialChar LyX
6999  
7000 \begin_inset Info
7001 type  "lyxinfo"
7002 arg   "version"
7003 \end_inset
7004
7005 , the current layout format is 
7006 \begin_inset Info
7007 type  "lyxinfo"
7008 arg   "layoutformat"
7009 \end_inset
7010
7011 .)
7012 \end_layout
7013
7014 \begin_layout Standard
7015 When you have entered something in the 
7016 \begin_inset Flex Code
7017 status collapsed
7018
7019 \begin_layout Plain Layout
7020 Local Layout
7021 \end_layout
7022
7023 \end_inset
7024
7025  pane, \SpecialChar LyX
7026  will enable the 
7027 \begin_inset Quotes eld
7028 \end_inset
7029
7030 Validate
7031 \begin_inset Quotes erd
7032 \end_inset
7033
7034  button at the bottom.
7035  Clicking this button will cause \SpecialChar LyX
7036  to determine whether what you have entered
7037  is valid layout information for the chosen format.
7038  \SpecialChar LyX
7039  will report the result but, unfortunately, will not tell you what errors
7040  there might have been.
7041  These will be written to the terminal, however, if \SpecialChar LyX
7042  is started from a terminal.
7043  You will not be permitted to save your local layout until you have entered
7044  something valid.
7045 \end_layout
7046
7047 \begin_layout Standard
7048 The warnings at the end of the previous section apply here, too.
7049  Do not play with local layout while you are actually working, especially
7050  if you have not saved your document.
7051  That said, using local layout with a test document can be a very convenient
7052  way to try out layout ideas, or even to start developing a module.
7053 \end_layout
7054
7055 \begin_layout Subsection
7056 Layout for 
7057 \begin_inset Flex Noun
7058 status collapsed
7059
7060 \begin_layout Plain Layout
7061 .sty
7062 \end_layout
7063
7064 \end_inset
7065
7066  files
7067 \end_layout
7068
7069 \begin_layout Standard
7070 There are two situations you are likely to encounter when wanting to support
7071  a new \SpecialChar LaTeX
7072  document class, involving style (
7073 \begin_inset Flex Code
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 .sty
7078 \end_layout
7079
7080 \end_inset
7081
7082 ) files and \SpecialChar LaTeX2e
7083  class (
7084 \begin_inset Flex Code
7085 status collapsed
7086
7087 \begin_layout Plain Layout
7088 .cls
7089 \end_layout
7090
7091 \end_inset
7092
7093 ) .
7094  Supporting a style file is usually fairly easy.
7095  Supporting a new class file is a bit harder.
7096  We'll discuss the former in this section and the latter in the next.
7097  
7098 \change_deleted 5863208 1594239023
7099 Similar remarks apply, of course, if you want to support a new DocBook DTD.
7100 \change_unchanged
7101
7102 \end_layout
7103
7104 \begin_layout Standard
7105 The easier case is the one in which your new document class is provided
7106  as a style file that is to be used in conjunction with an already supported
7107  document class.
7108  For the sake of the example, we'll assume that the style file is called
7109  
7110 \begin_inset Flex Noun
7111 status collapsed
7112
7113 \begin_layout Plain Layout
7114 myclass.sty
7115 \end_layout
7116
7117 \end_inset
7118
7119  and that it is meant to be used with 
7120 \begin_inset Flex Noun
7121 status collapsed
7122
7123 \begin_layout Plain Layout
7124 report.cls
7125 \end_layout
7126
7127 \end_inset
7128
7129 , which is a standard class.
7130  
7131 \end_layout
7132
7133 \begin_layout Standard
7134 Start by copying the existing class's layout file into your local directory:
7135 \begin_inset Foot
7136 status collapsed
7137
7138 \begin_layout Plain Layout
7139 Of course, which directory is your local directory will vary by platform,
7140  and \SpecialChar LyX
7141  allows you to specify your local directory on startup, too, using
7142  the 
7143 \begin_inset Flex Code
7144 status collapsed
7145
7146 \begin_layout Plain Layout
7147 -userdir
7148 \end_layout
7149
7150 \end_inset
7151
7152  option.
7153 \end_layout
7154
7155 \end_inset
7156
7157
7158 \end_layout
7159
7160 \begin_layout LyX-Code
7161 cp report.layout ~/.lyx/layouts/myclass.layout
7162 \end_layout
7163
7164 \begin_layout Standard
7165 Then edit 
7166 \begin_inset Flex Code
7167 status collapsed
7168
7169 \begin_layout Plain Layout
7170 myclass.layout
7171 \end_layout
7172
7173 \end_inset
7174
7175  and change the line: 
7176 \end_layout
7177
7178 \begin_layout LyX-Code
7179
7180 \backslash
7181 DeclareLaTeXClass{Report (Standard Class)}
7182 \end_layout
7183
7184 \begin_layout Standard
7185 to read
7186 \end_layout
7187
7188 \begin_layout LyX-Code
7189
7190 \backslash
7191 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7192 \end_layout
7193
7194 \begin_layout Standard
7195 Then add:
7196 \end_layout
7197
7198 \begin_layout LyX-Code
7199 Preamble 
7200 \begin_inset Newline newline
7201 \end_inset
7202
7203     
7204 \backslash
7205 usepackage{myclass}
7206 \begin_inset Newline newline
7207 \end_inset
7208
7209 EndPreamble
7210 \end_layout
7211
7212 \begin_layout Standard
7213 near the top of the file.
7214 \end_layout
7215
7216 \begin_layout Standard
7217 Start \SpecialChar LyX
7218  and select 
7219 \begin_inset Flex Noun
7220 status collapsed
7221
7222 \begin_layout Plain Layout
7223 Tools\SpecialChar menuseparator
7224 Reconfigure
7225 \end_layout
7226
7227 \end_inset
7228
7229 .
7230  Then restart \SpecialChar LyX
7231  and try creating a new document.
7232  You should see "
7233 \begin_inset Flex Noun
7234 status collapsed
7235
7236 \begin_layout Plain Layout
7237 Report (My Class)
7238 \end_layout
7239
7240 \end_inset
7241
7242 " as a document class option in the 
7243 \begin_inset Flex Noun
7244 status collapsed
7245
7246 \begin_layout Plain Layout
7247 Document\SpecialChar menuseparator
7248 Settings
7249 \end_layout
7250
7251 \end_inset
7252
7253  dialog.
7254  It is likely that some of the sectioning commands and such in your new
7255  class will work differently from how they worked in the base class—
7256 \begin_inset Flex Code
7257 status collapsed
7258
7259 \begin_layout Plain Layout
7260 report
7261 \end_layout
7262
7263 \end_inset
7264
7265  in this example—so you can fiddle around with the settings for the different
7266  sections if you wish.
7267  The layout information for sections is contained in 
7268 \begin_inset Flex Code
7269 status collapsed
7270
7271 \begin_layout Plain Layout
7272 stdsections.inc
7273 \end_layout
7274
7275 \end_inset
7276
7277 , but you do not need to copy and change this file.
7278  Instead, you can simply add your changes to your layout file, after the
7279  line 
7280 \begin_inset Flex Code
7281 status collapsed
7282
7283 \begin_layout Plain Layout
7284 Input stdclass.inc
7285 \end_layout
7286
7287 \end_inset
7288
7289 , which itself includes 
7290 \begin_inset Flex Code
7291 status collapsed
7292
7293 \begin_layout Plain Layout
7294 stdsections.inc
7295 \end_layout
7296
7297 \end_inset
7298
7299 .
7300  For example, you might add these lines:
7301 \end_layout
7302
7303 \begin_layout LyX-Code
7304 Style Chapter
7305 \end_layout
7306
7307 \begin_layout LyX-Code
7308     Font
7309 \end_layout
7310
7311 \begin_layout LyX-Code
7312         Family Sans
7313 \end_layout
7314
7315 \begin_layout LyX-Code
7316     EndFont
7317 \end_layout
7318
7319 \begin_layout LyX-Code
7320 End
7321 \end_layout
7322
7323 \begin_layout Standard
7324 to change the font for chapter headings to sans-serif.
7325  This will override (or, in this case, add to) the existing declaration
7326  for the Chapter style.
7327  
7328 \end_layout
7329
7330 \begin_layout Standard
7331 Your new package may also provide commands or environments not present in
7332  the base class.
7333  In this case, you will want to add these to the layout file.
7334  See 
7335 \begin_inset CommandInset ref
7336 LatexCommand ref
7337 reference "sec:TextClass"
7338
7339 \end_inset
7340
7341  for information on how to do so.
7342 \end_layout
7343
7344 \begin_layout Standard
7345 If 
7346 \begin_inset Flex Noun
7347 status collapsed
7348
7349 \begin_layout Plain Layout
7350 myclass.sty
7351 \end_layout
7352
7353 \end_inset
7354
7355  can be used with several different document classes, and even if it cannot,
7356  you might find it easiest just to write a module that you can load with
7357  the base class.
7358  The simplest possible such module would be:
7359 \end_layout
7360
7361 \begin_layout LyX-Code
7362 #
7363 \backslash
7364 DeclareLyXModule{My Class} 
7365 \end_layout
7366
7367 \begin_layout LyX-Code
7368 #DescriptionBegin 
7369 \end_layout
7370
7371 \begin_layout LyX-Code
7372 #Support for myclass.sty.
7373 \end_layout
7374
7375 \begin_layout LyX-Code
7376 #DescriptionEnd
7377 \begin_inset Newline newline
7378 \end_inset
7379
7380
7381 \end_layout
7382
7383 \begin_layout LyX-Code
7384 Format 
7385 \begin_inset Info
7386 type  "lyxinfo"
7387 arg   "layoutformat"
7388 \end_inset
7389
7390
7391 \begin_inset Newline newline
7392 \end_inset
7393
7394
7395 \end_layout
7396
7397 \begin_layout LyX-Code
7398 Preamble
7399 \begin_inset Newline newline
7400 \end_inset
7401
7402     
7403 \backslash
7404 usepackage{myclass}
7405 \begin_inset Newline newline
7406 \end_inset
7407
7408 EndPreamble
7409 \end_layout
7410
7411 \begin_layout Standard
7412 A more complex module might modify the behavior of some existing constructs
7413  or define some new ones.
7414  Again, see 
7415 \begin_inset CommandInset ref
7416 LatexCommand ref
7417 reference "sec:TextClass"
7418
7419 \end_inset
7420
7421  for discussion.
7422 \end_layout
7423
7424 \begin_layout Subsection
7425 Layout for 
7426 \begin_inset Flex Noun
7427 status collapsed
7428
7429 \begin_layout Plain Layout
7430 .cls
7431 \end_layout
7432
7433 \end_inset
7434
7435  files
7436 \end_layout
7437
7438 \begin_layout Standard
7439 There are two possibilities here.
7440  One is that the class file is itself based upon an existing document class.
7441  For example, many thesis classes are based upon 
7442 \begin_inset Flex Noun
7443 status collapsed
7444
7445 \begin_layout Plain Layout
7446 book.cls
7447 \end_layout
7448
7449 \end_inset
7450
7451 .
7452  To see whether yours is, look for a line like
7453 \end_layout
7454
7455 \begin_layout LyX-Code
7456
7457 \backslash
7458 LoadClass{book}
7459 \end_layout
7460
7461 \begin_layout Standard
7462 in the file.
7463  If so, then you may proceed largely as in the previous section, though
7464  the 
7465 \begin_inset Flex Code
7466 status collapsed
7467
7468 \begin_layout Plain Layout
7469 Declare\SpecialChar LaTeX
7470 Class
7471 \end_layout
7472
7473 \end_inset
7474
7475  line will be different.
7476  If your new class is 
7477 \begin_inset Flex Code
7478 status collapsed
7479
7480 \begin_layout Plain Layout
7481 thesis
7482 \end_layout
7483
7484 \end_inset
7485
7486  and it is based upon 
7487 \begin_inset Flex Code
7488 status collapsed
7489
7490 \begin_layout Plain Layout
7491 book
7492 \end_layout
7493
7494 \end_inset
7495
7496 , then the line should read:
7497 \begin_inset Foot
7498 status collapsed
7499
7500 \begin_layout Plain Layout
7501 And it will be easiest if you save the file to 
7502 \begin_inset Flex Code
7503 status collapsed
7504
7505 \begin_layout Plain Layout
7506 thesis.layout
7507 \end_layout
7508
7509 \end_inset
7510
7511 : \SpecialChar LyX
7512  assumes that the document class has the same name as the layout file.
7513  
7514 \end_layout
7515
7516 \end_inset
7517
7518
7519 \end_layout
7520
7521 \begin_layout LyX-Code
7522
7523 \backslash
7524 DeclareLaTeXClass[thesis,book]{thesis}
7525 \end_layout
7526
7527 \begin_layout Standard
7528 If, on the other hand, the new class is not based upon an existing class,
7529  you will probably have to 
7530 \begin_inset Quotes eld
7531 \end_inset
7532
7533 roll your own
7534 \begin_inset Quotes erd
7535 \end_inset
7536
7537  layout.
7538  We strongly suggest copying an existing layout file which uses a similar
7539  \SpecialChar LaTeX
7540  class and then modifying it, if you can do so.
7541  At least use an existing file as a starting point so you can find out what
7542  items you need to worry about.
7543  Again, the specifics are covered below.
7544 \end_layout
7545
7546 \begin_layout Subsection
7547 Creating templates
7548 \begin_inset CommandInset label
7549 LatexCommand label
7550 name "subsec:Creating-Templates"
7551
7552 \end_inset
7553
7554
7555 \end_layout
7556
7557 \begin_layout Standard
7558 Once you have written a layout file for a new document class, you might
7559  want to consider writing a 
7560 \emph on
7561 template
7562 \emph default
7563  for it, too.
7564  A template acts as a kind of tutorial for your layout, showing how it might
7565  be used, though containing dummy content.
7566  You can of course look at the various templates included with \SpecialChar LyX
7567  for ideas.
7568 \end_layout
7569
7570 \begin_layout Standard
7571 Templates are created just like usual documents: using \SpecialChar LyX
7572 .
7573  The only difference is that usual documents contain all possible settings,
7574  including the font scheme and the paper size.
7575  Usually a user doesn't want a template to overwrite his preferred settings
7576  for such parameters.
7577  For that reason, the designer of a template should remove the corresponding
7578  commands like 
7579 \begin_inset Flex Code
7580 status collapsed
7581
7582 \begin_layout Plain Layout
7583
7584 \backslash
7585 font_roman
7586 \end_layout
7587
7588 \end_inset
7589
7590  or 
7591 \begin_inset Flex Code
7592 status collapsed
7593
7594 \begin_layout Plain Layout
7595
7596 \backslash
7597 papersize
7598 \end_layout
7599
7600 \end_inset
7601
7602  from the template \SpecialChar LyX
7603  file.
7604  This can be done with any simple text-editor, for example 
7605 \begin_inset Flex Code
7606 status collapsed
7607
7608 \begin_layout Plain Layout
7609 vi
7610 \end_layout
7611
7612 \end_inset
7613
7614  or 
7615 \begin_inset Flex Code
7616 status collapsed
7617
7618 \begin_layout Plain Layout
7619 notepad
7620 \end_layout
7621
7622 \end_inset
7623
7624 .
7625 \end_layout
7626
7627 \begin_layout Standard
7628 Put the edited template files you create in 
7629 \begin_inset Flex Code
7630 status collapsed
7631
7632 \begin_layout Plain Layout
7633 UserDir/templates/
7634 \end_layout
7635
7636 \end_inset
7637
7638 , copy the ones you use from the global template directory in 
7639 \begin_inset Flex Code
7640 status collapsed
7641
7642 \begin_layout Plain Layout
7643 LyXDir/templates/
7644 \end_layout
7645
7646 \end_inset
7647
7648  to the same place, and redefine the template path in the 
7649 \begin_inset Flex Noun
7650 status collapsed
7651
7652 \begin_layout Plain Layout
7653 Tools\SpecialChar menuseparator
7654 Preferences\SpecialChar menuseparator
7655 Paths
7656 \end_layout
7657
7658 \end_inset
7659
7660  dialog.
7661 \end_layout
7662
7663 \begin_layout Standard
7664 Note, by the way, that there is a template which has a particular meaning:
7665 \begin_inset Newline linebreak
7666 \end_inset
7667
7668
7669 \begin_inset Flex Code
7670 status collapsed
7671
7672 \begin_layout Plain Layout
7673 defaults.lyx
7674 \end_layout
7675
7676 \end_inset
7677
7678 .
7679  This template is loaded every time you create a new document with 
7680 \begin_inset Flex Noun
7681 status collapsed
7682
7683 \begin_layout Plain Layout
7684 File\SpecialChar menuseparator
7685 New
7686 \end_layout
7687
7688 \end_inset
7689
7690  in order to provide useful defaults.
7691  To create this template from inside \SpecialChar LyX
7692 , all you have to do is to open a document
7693  with the correct settings, and use the 
7694 \begin_inset Flex Noun
7695 status collapsed
7696
7697 \begin_layout Plain Layout
7698 Save as Document Defaults
7699 \end_layout
7700
7701 \end_inset
7702
7703  button.
7704 \end_layout
7705
7706 \begin_layout Subsection
7707 Upgrading old layout files
7708 \end_layout
7709
7710 \begin_layout Standard
7711 The format of layout files changes with each \SpecialChar LyX
7712  release, so old layout files
7713  need to be converted to the new format.
7714  If \SpecialChar LyX
7715  reads a layout file in an older format, it automatically calls the
7716  script 
7717 \begin_inset Flex Code
7718 status collapsed
7719
7720 \begin_layout Plain Layout
7721 layout2layout.py
7722 \end_layout
7723
7724 \end_inset
7725
7726  to convert it to a temporary file in current format.
7727  The original file is left untouched.
7728  If you use the layout file often, then, you may want to convert it permanently,
7729  so that \SpecialChar LyX
7730  does not have to do so itself every time.
7731  To do this, you can call the converter manually:
7732 \end_layout
7733
7734 \begin_layout Enumerate
7735 rename the file 
7736 \begin_inset Flex Code
7737 status collapsed
7738
7739 \begin_layout Plain Layout
7740 myclass.layout
7741 \end_layout
7742
7743 \end_inset
7744
7745  to 
7746 \begin_inset Flex Code
7747 status collapsed
7748
7749 \begin_layout Plain Layout
7750 myclass.old
7751 \end_layout
7752
7753 \end_inset
7754
7755
7756 \end_layout
7757
7758 \begin_layout Enumerate
7759 Call the command
7760 \begin_inset Newline newline
7761 \end_inset
7762
7763
7764 \begin_inset Flex Code
7765 status collapsed
7766
7767 \begin_layout Plain Layout
7768 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7769 \end_layout
7770
7771 \end_inset
7772
7773
7774 \begin_inset Newline newline
7775 \end_inset
7776
7777 where 
7778 \begin_inset Flex Code
7779 status collapsed
7780
7781 \begin_layout Plain Layout
7782 LyXDir
7783 \end_layout
7784
7785 \end_inset
7786
7787  is the name of your \SpecialChar LyX
7788  system directory.
7789 \end_layout
7790
7791 \begin_layout Standard
7792 Note that manual conversion does not affect included files, so these will
7793  have to be converted separately.
7794 \end_layout
7795
7796 \begin_layout Subsection
7797 \begin_inset CommandInset label
7798 LatexCommand label
7799 name "subsec:Cite-Engine-Files"
7800
7801 \end_inset
7802
7803 Cite engine files
7804 \end_layout
7805
7806 \begin_layout Standard
7807 A specific form of layout files are the so-called 
7808 \begin_inset Flex Code
7809 status collapsed
7810
7811 \begin_layout Plain Layout
7812 *.citeengine
7813 \end_layout
7814
7815 \end_inset
7816
7817  files that are located in the 
7818 \begin_inset Flex Code
7819 status collapsed
7820
7821 \begin_layout Plain Layout
7822 citeengines/
7823 \end_layout
7824
7825 \end_inset
7826
7827  sub-directory.
7828  Their purpose is to define the specifics of \SpecialChar LaTeX
7829  packages aimed at bibliography
7830  generation, such as 
7831 \family sans
7832 natbib
7833 \family default
7834 ,
7835 \family sans
7836  jurabib
7837 \family default
7838  or 
7839 \family sans
7840 biblatex
7841 \family default
7842 , but also the way how normal Bib\SpecialChar TeX
7843  citations (without additional packages)
7844  are handled in \SpecialChar LyX
7845  is defined in such a file.
7846  
7847 \end_layout
7848
7849 \begin_layout Standard
7850 More specifically, it is defined which packages \SpecialChar LyX
7851  needs to load, which citation
7852  commands are available, how these are to be displayed in \SpecialChar LyX
7853  (in the workarea,
7854  the dialogs, the context menus) as well as in the XHTML and plain text
7855  output.
7856  Furthermore, the files specify available style variants (author-year, numerical
7857 , etc.) and their specifics.
7858  The cite engine files are also used to generate the options that are available
7859  in 
7860 \family sans
7861 Document\SpecialChar menuseparator
7862 Settings\SpecialChar menuseparator
7863 Bibliography\SpecialChar menuseparator
7864 Style engine
7865 \family default
7866 .
7867 \end_layout
7868
7869 \begin_layout Standard
7870 Even though a cite engine file is essentially a normal layout file that
7871  could theoretically include any layout information, it usually primarily
7872  includes some specific parameters such as 
7873 \begin_inset Flex Code
7874 status collapsed
7875
7876 \begin_layout Plain Layout
7877 MaxCiteNames
7878 \end_layout
7879
7880 \end_inset
7881
7882
7883 \begin_inset Flex Code
7884 status collapsed
7885
7886 \begin_layout Plain Layout
7887 CiteFramework
7888 \end_layout
7889
7890 \end_inset
7891
7892
7893 \begin_inset Flex Code
7894 status collapsed
7895
7896 \begin_layout Plain Layout
7897 CiteEngine
7898 \end_layout
7899
7900 \end_inset
7901
7902  and 
7903 \begin_inset Flex Code
7904 status collapsed
7905
7906 \begin_layout Plain Layout
7907 CiteFormat
7908 \end_layout
7909
7910 \end_inset
7911
7912  blocks.
7913  The syntax of the latter two is described in 
7914 \begin_inset CommandInset ref
7915 LatexCommand ref
7916 reference "subsec:Citation-engine-description"
7917 plural "false"
7918 caps "false"
7919 noprefix "false"
7920
7921 \end_inset
7922
7923  and 
7924 \begin_inset CommandInset ref
7925 LatexCommand ref
7926 reference "subsec:Citation-format-description"
7927
7928 \end_inset
7929
7930 , as well as in the files themselves.
7931 \end_layout
7932
7933 \begin_layout Section
7934 \begin_inset CommandInset label
7935 LatexCommand label
7936 name "sec:TextClass"
7937
7938 \end_inset
7939
7940 The layout file format
7941 \end_layout
7942
7943 \begin_layout Standard
7944 The following sections describe how layout files are structured and written.
7945  Our advice is to go slowly, save and test often.
7946  It is really not that hard, except that the multitude of options can become
7947  overwhelming, especially if you try to check out too many at once.
7948  It becomes easier if you use existing layouts of \SpecialChar LyX
7949  as examples/reference
7950  or if you modify an existing layout to your needs.
7951 \end_layout
7952
7953 \begin_layout Standard
7954 Note that all the tags used in layout files are case-insensitive.
7955  This means that 
7956 \begin_inset Flex Code
7957 status collapsed
7958
7959 \begin_layout Plain Layout
7960 Style
7961 \end_layout
7962
7963 \end_inset
7964
7965
7966 \begin_inset Flex Code
7967 status collapsed
7968
7969 \begin_layout Plain Layout
7970 style
7971 \end_layout
7972
7973 \end_inset
7974
7975  and 
7976 \begin_inset Flex Code
7977 status collapsed
7978
7979 \begin_layout Plain Layout
7980 StYlE
7981 \end_layout
7982
7983 \end_inset
7984
7985  are really the same tag.
7986  The possible arguments are printed in brackets after the tag's name.
7987  The default argument is typeset 
7988 \begin_inset Flex Code
7989 status collapsed
7990
7991 \begin_layout Plain Layout
7992
7993 \emph on
7994 emphasized
7995 \end_layout
7996
7997 \end_inset
7998
7999 .
8000  If the argument has a data type like 
8001 \begin_inset Quotes eld
8002 \end_inset
8003
8004 string
8005 \begin_inset Quotes erd
8006 \end_inset
8007
8008  or 
8009 \begin_inset Quotes eld
8010 \end_inset
8011
8012 float
8013 \begin_inset Quotes erd
8014 \end_inset
8015
8016 , the default is shown like this: 
8017 \begin_inset Flex Code
8018 status collapsed
8019
8020 \begin_layout Plain Layout
8021 float=
8022 \emph on
8023 default
8024 \end_layout
8025
8026 \end_inset
8027
8028 .
8029 \end_layout
8030
8031 \begin_layout Subsection
8032 The document class declaration and classification
8033 \end_layout
8034
8035 \begin_layout Standard
8036 Lines in a layout file which begin with 
8037 \begin_inset Flex Code
8038 status collapsed
8039
8040 \begin_layout Plain Layout
8041 #
8042 \end_layout
8043
8044 \end_inset
8045
8046  are comments.
8047  There is one exception to this rule.
8048  All 
8049 \begin_inset Flex Code
8050 status collapsed
8051
8052 \begin_layout Plain Layout
8053 *.layout
8054 \end_layout
8055
8056 \end_inset
8057
8058  files should begin with lines like:
8059 \end_layout
8060
8061 \begin_layout LyX-Code
8062
8063 \size small
8064 #% Do not delete the line below; configure depends on this 
8065 \end_layout
8066
8067 \begin_layout LyX-Code
8068
8069 \size small
8070 #  
8071 \backslash
8072 DeclareLaTeXClass{Article (Standard Class)}
8073 \end_layout
8074
8075 \begin_layout LyX-Code
8076
8077 \size small
8078 #  
8079 \backslash
8080 DeclareCategory{Articles}
8081 \end_layout
8082
8083 \begin_layout Standard
8084 The second and third lines are used when you (re)configure \SpecialChar LyX
8085 .
8086  The layout file is read by the \SpecialChar LaTeX
8087  script 
8088 \begin_inset Flex Code
8089 status collapsed
8090
8091 \begin_layout Plain Layout
8092 chkconfig.ltx
8093 \end_layout
8094
8095 \end_inset
8096
8097 , in a special mode where 
8098 \begin_inset Flex Code
8099 status collapsed
8100
8101 \begin_layout Plain Layout
8102 #
8103 \end_layout
8104
8105 \end_inset
8106
8107  is ignored.
8108  The first line is just a \SpecialChar LaTeX
8109  comment, the second one contains the mandatory
8110  declaration of the text class and the third line contains the optional
8111  classification of the class.
8112  If these lines appear in a file named 
8113 \begin_inset Flex Code
8114 status collapsed
8115
8116 \begin_layout Plain Layout
8117 article.layout
8118 \end_layout
8119
8120 \end_inset
8121
8122 , then they define a text class of name 
8123 \begin_inset Flex Code
8124 status collapsed
8125
8126 \begin_layout Plain Layout
8127 article
8128 \end_layout
8129
8130 \end_inset
8131
8132  (the name of the layout file) which uses the \SpecialChar LaTeX
8133  document class 
8134 \begin_inset Flex Code
8135 status collapsed
8136
8137 \begin_layout Plain Layout
8138 article.cls
8139 \end_layout
8140
8141 \end_inset
8142
8143  (the default is to use the same name as the layout).
8144  The string 
8145 \begin_inset Quotes eld
8146 \end_inset
8147
8148 Article (Standard Class)
8149 \begin_inset Quotes erd
8150 \end_inset
8151
8152  that appears above is used as a description of the text class in the 
8153 \begin_inset Flex Noun
8154 status collapsed
8155
8156 \begin_layout Plain Layout
8157 Document\SpecialChar menuseparator
8158 Settings
8159 \end_layout
8160
8161 \end_inset
8162
8163  dialog.
8164  The category (
8165 \begin_inset Quotes eld
8166 \end_inset
8167
8168 Articles
8169 \begin_inset Quotes erd
8170 \end_inset
8171
8172  in the example) is also used in the 
8173 \begin_inset Flex Noun
8174 status collapsed
8175
8176 \begin_layout Plain Layout
8177 Document\SpecialChar menuseparator
8178 Settings
8179 \end_layout
8180
8181 \end_inset
8182
8183  dialog: the text classes are grouped by these categories (which are usually
8184  genres, so typical categories are 
8185 \begin_inset Quotes eld
8186 \end_inset
8187
8188 Articles
8189 \begin_inset Quotes erd
8190 \end_inset
8191
8192
8193 \begin_inset Quotes eld
8194 \end_inset
8195
8196 Books
8197 \begin_inset Quotes erd
8198 \end_inset
8199
8200
8201 \begin_inset Quotes eld
8202 \end_inset
8203
8204 Reports
8205 \begin_inset Quotes erd
8206 \end_inset
8207
8208
8209 \begin_inset Quotes eld
8210 \end_inset
8211
8212 Letters
8213 \begin_inset Quotes erd
8214 \end_inset
8215
8216
8217 \begin_inset Quotes eld
8218 \end_inset
8219
8220 Presentations
8221 \begin_inset Quotes erd
8222 \end_inset
8223
8224
8225 \begin_inset Quotes eld
8226 \end_inset
8227
8228 Curricula Vitae
8229 \begin_inset Quotes erd
8230 \end_inset
8231
8232  etc.).
8233  If no category has been declared, the class will be put in the 
8234 \begin_inset Quotes eld
8235 \end_inset
8236
8237 Uncategorized
8238 \begin_inset Quotes erd
8239 \end_inset
8240
8241  group.
8242 \end_layout
8243
8244 \begin_layout Standard
8245 Let's assume that you wrote your own text class that uses the 
8246 \begin_inset Flex Code
8247 status collapsed
8248
8249 \begin_layout Plain Layout
8250 article.cls
8251 \end_layout
8252
8253 \end_inset
8254
8255  document class, but where you changed the appearance of the section headings.
8256  If you put it in a file 
8257 \begin_inset Flex Code
8258 status collapsed
8259
8260 \begin_layout Plain Layout
8261 myarticle.layout
8262 \end_layout
8263
8264 \end_inset
8265
8266 , the header of this file should be:
8267 \end_layout
8268
8269 \begin_layout LyX-Code
8270
8271 \size small
8272 #% Do not delete the line below; configure depends on this 
8273 \end_layout
8274
8275 \begin_layout LyX-Code
8276
8277 \size small
8278 #  
8279 \backslash
8280 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8281 \end_layout
8282
8283 \begin_layout LyX-Code
8284
8285 \size small
8286 #  
8287 \backslash
8288 DeclareCategory{Articles}
8289 \end_layout
8290
8291 \begin_layout Standard
8292 This declares a text class 
8293 \begin_inset Flex Code
8294 status collapsed
8295
8296 \begin_layout Plain Layout
8297 myarticle
8298 \end_layout
8299
8300 \end_inset
8301
8302 , associated with the \SpecialChar LaTeX
8303  document class 
8304 \begin_inset Flex Code
8305 status collapsed
8306
8307 \begin_layout Plain Layout
8308 article.cls
8309 \end_layout
8310
8311 \end_inset
8312
8313  and described as 
8314 \begin_inset Quotes eld
8315 \end_inset
8316
8317 Article (with My Own Headings)
8318 \begin_inset Quotes erd
8319 \end_inset
8320
8321 .
8322  If your text class depends on several packages, you can declare it as:
8323 \end_layout
8324
8325 \begin_layout LyX-Code
8326
8327 \size small
8328 #% Do not delete the line below; configure depends on this 
8329 \end_layout
8330
8331 \begin_layout LyX-Code
8332
8333 \size small
8334 #  
8335 \backslash
8336 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8337 \end_layout
8338
8339 \begin_layout LyX-Code
8340
8341 \size small
8342 #  
8343 \backslash
8344 DeclareCategory{Articles}
8345 \end_layout
8346
8347 \begin_layout Standard
8348 This indicates that your text class uses the 
8349 \begin_inset Flex Code
8350 status collapsed
8351
8352 \begin_layout Plain Layout
8353 foo.sty
8354 \end_layout
8355
8356 \end_inset
8357
8358  package.
8359  
8360 \change_deleted 5863208 1594239179
8361 Finally, it is also possible to declare classes for DocBook code.
8362  Typical declarations will look like:
8363 \end_layout
8364
8365 \begin_layout LyX-Code
8366
8367 \change_deleted 5863208 1594239179
8368
8369 \size small
8370 #% Do not delete the line below; configure depends on this 
8371 \end_layout
8372
8373 \begin_layout LyX-Code
8374
8375 \change_deleted 5863208 1594239179
8376
8377 \size small
8378
8379 \backslash
8380 DeclareDocBookClass[article]{SGML (DocBook Article)}
8381 \end_layout
8382
8383 \begin_layout LyX-Code
8384
8385 \change_deleted 5863208 1594239179
8386
8387 \size small
8388
8389 \backslash
8390 DeclareCategory{Articles (DocBook)}
8391 \change_unchanged
8392
8393 \end_layout
8394
8395 \begin_layout Standard
8396 Note that these declarations can also be given an optional parameter declaring
8397  the name of the document class (but not a list).
8398 \end_layout
8399
8400 \begin_layout Standard
8401 So, to be as explicit as possible, the form of the layout declaration is:
8402 \end_layout
8403
8404 \begin_layout LyX-Code
8405
8406 \size small
8407 #  
8408 \backslash
8409 DeclareLaTeXClass[class,package.sty]{layout description}
8410 \end_layout
8411
8412 \begin_layout LyX-Code
8413
8414 \size small
8415 #  
8416 \backslash
8417 DeclareCategory{category}
8418 \end_layout
8419
8420 \begin_layout Standard
8421 The class need only be specified if the name of the \SpecialChar LaTeX
8422  class file and the
8423  name of the layout file are different or if there are packages to load.
8424  If the name of the class file is not specified, then \SpecialChar LyX
8425  will simply assume
8426  that it is the same as the name of the layout file.
8427 \end_layout
8428
8429 \begin_layout Standard
8430 When the text class has been modified to your taste, all you have to do
8431  is to copy it either to 
8432 \begin_inset Flex Code
8433 status collapsed
8434
8435 \begin_layout Plain Layout
8436 LyXDir/layouts/
8437 \end_layout
8438
8439 \end_inset
8440
8441  or to 
8442 \begin_inset Flex Code
8443 status collapsed
8444
8445 \begin_layout Plain Layout
8446 UserDir/layouts
8447 \end_layout
8448
8449 \end_inset
8450
8451 , run 
8452 \begin_inset Flex Noun
8453 status collapsed
8454
8455 \begin_layout Plain Layout
8456 Tools\SpecialChar menuseparator
8457 Reconfigure
8458 \end_layout
8459
8460 \end_inset
8461
8462 , exit \SpecialChar LyX
8463  and restart.
8464  Then your new text class should be available along with the others.
8465 \end_layout
8466
8467 \begin_layout Standard
8468 Once the layout file is installed, you can edit it and see your changes
8469  without having to reconfigure or to restart \SpecialChar LyX
8470 .
8471 \begin_inset Foot
8472 status collapsed
8473
8474 \begin_layout Plain Layout
8475 In versions of \SpecialChar LyX
8476  prior to 1.6, this was not true.
8477  As a result, editing layout files was very time consuming, since you had
8478  constantly to restart \SpecialChar LyX
8479  to see changes.
8480 \end_layout
8481
8482 \end_inset
8483
8484  You can force a reload of the current layout by using the \SpecialChar LyX
8485  function 
8486 \begin_inset Flex Noun
8487 status collapsed
8488
8489 \begin_layout Plain Layout
8490 layout-reload
8491 \end_layout
8492
8493 \end_inset
8494
8495 .
8496  There is no default binding for this function—though, of course, you can
8497  bind it to a key yourself.
8498  But you will normally use this function simply by entering it in the mini-buffe
8499 r.
8500  
8501 \end_layout
8502
8503 \begin_layout Standard
8504
8505 \emph on
8506 Warning
8507 \emph default
8508
8509 \begin_inset Flex Noun
8510 status collapsed
8511
8512 \begin_layout Plain Layout
8513 layout-reload
8514 \end_layout
8515
8516 \end_inset
8517
8518  is very much an `advanced feature'.
8519  It is 
8520 \emph on
8521 strongly
8522 \emph default
8523  recommended that you save your work before using this function.
8524  In fact, it is 
8525 \emph on
8526 strongly
8527 \emph default
8528  recommended that you not attempt to edit layout information while simultaneousl
8529 y working on a document that you care about.
8530  Use a test document.
8531  Syntax errors and the like in your layout file could cause peculiar behavior.
8532  In particular, such errors could cause \SpecialChar LyX
8533  to regard the current layout as
8534  invalid and to attempt to switch to some other layout.
8535 \begin_inset Foot
8536 status collapsed
8537
8538 \begin_layout Plain Layout
8539 Really bad syntax errors may even caused \SpecialChar LyX
8540  to exit.
8541  This is because certain sorts of errors may make \SpecialChar LyX
8542  unable to read 
8543 \emph on
8544 any
8545 \emph default
8546  layout information.
8547  Please be careful.
8548 \end_layout
8549
8550 \end_inset
8551
8552  The \SpecialChar LyX
8553  team strives to keep \SpecialChar LyX
8554  stable in such situations, but safe is better
8555  than sorry.
8556 \begin_inset Foot
8557 status collapsed
8558
8559 \begin_layout Plain Layout
8560 While we're giving advice: make regular backups.
8561  And be nice to your mother.
8562 \end_layout
8563
8564 \end_inset
8565
8566
8567 \end_layout
8568
8569 \begin_layout Subsection
8570 The Module declaration
8571 \end_layout
8572
8573 \begin_layout Standard
8574 A module must begin with a line like the following:
8575 \end_layout
8576
8577 \begin_layout LyX-Code
8578 #
8579 \backslash
8580 DeclareLyXModule[endnotes.sty]{Endnotes}
8581 \change_inserted -712698321 1554395911
8582
8583 \end_layout
8584
8585 \begin_layout LyX-Code
8586
8587 \change_inserted -712698321 1554395924
8588
8589 \size small
8590 #
8591 \backslash
8592 DeclareCategory{Foot- and Endnotes}
8593 \change_deleted -712698321 1554395911
8594
8595 \size default
8596  
8597 \change_unchanged
8598
8599 \end_layout
8600
8601 \begin_layout Standard
8602 The mandatory argument
8603 \change_inserted -712698321 1554395956
8604  of 
8605 \family typewriter
8606
8607 \backslash
8608 DeclareLyXModule
8609 \change_unchanged
8610
8611 \family default
8612 , in curly brackets, is the name of the module, as it should appear in 
8613 \begin_inset Flex Noun
8614 status collapsed
8615
8616 \begin_layout Plain Layout
8617 Document\SpecialChar menuseparator
8618 Settings\SpecialChar menuseparator
8619 Modules
8620 \end_layout
8621
8622 \end_inset
8623
8624 .
8625  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8626  packages
8627  on which the module depends.
8628  It is also possible to use the form 
8629 \begin_inset Flex Noun
8630 status collapsed
8631
8632 \begin_layout Plain Layout
8633 from->to
8634 \end_layout
8635
8636 \end_inset
8637
8638  as an optional argument, which declares that the module can only be used
8639  when there exists a conversion chain between the formats `
8640 \begin_inset Flex Code
8641 status collapsed
8642
8643 \begin_layout Plain Layout
8644 from
8645 \end_layout
8646
8647 \end_inset
8648
8649 ' and `
8650 \begin_inset Flex Code
8651 status collapsed
8652
8653 \begin_layout Plain Layout
8654 to
8655 \end_layout
8656
8657 \end_inset
8658
8659 '.
8660
8661 \change_inserted -712698321 1554396133
8662  The 
8663 \family typewriter
8664
8665 \backslash
8666 DeclareCategory
8667 \family default
8668  declaration is not strictly mandatory, but you should add it, since it
8669  is helpful to find the module.
8670  Please have a look at the existing module categories and if appropriate,
8671  use one of those.
8672 \change_unchanged
8673
8674 \end_layout
8675
8676 \begin_layout Standard
8677 The module 
8678 \change_inserted -712698321 1554395988
8679 and category 
8680 \change_unchanged
8681 declaration should then be followed by lines like the following:
8682 \begin_inset Foot
8683 status collapsed
8684
8685 \begin_layout Plain Layout
8686 Preferably in English if the module should be published with \SpecialChar LyX
8687 .
8688  This description will appear in the list of messages to be translated and
8689  will be thus translated with the next interface update.
8690 \end_layout
8691
8692 \end_inset
8693
8694
8695 \end_layout
8696
8697 \begin_layout LyX-Code
8698 #DescriptionBegin 
8699 \end_layout
8700
8701 \begin_layout LyX-Code
8702 #Adds an endnote command, in addition to footnotes.
8703  
8704 \end_layout
8705
8706 \begin_layout LyX-Code
8707 #You will need to add  
8708 \backslash
8709 theendnotes in TeX code where you 
8710 \end_layout
8711
8712 \begin_layout LyX-Code
8713 #want the endnotes to appear.
8714  
8715 \end_layout
8716
8717 \begin_layout LyX-Code
8718 #DescriptionEnd 
8719 \end_layout
8720
8721 \begin_layout LyX-Code
8722 #Requires: somemodule | othermodule
8723 \end_layout
8724
8725 \begin_layout LyX-Code
8726 #Excludes: badmodule
8727 \end_layout
8728
8729 \begin_layout Standard
8730 The description is used in 
8731 \begin_inset Flex Noun
8732 status collapsed
8733
8734 \begin_layout Plain Layout
8735 Document\SpecialChar menuseparator
8736 Settings\SpecialChar menuseparator
8737 Modules
8738 \end_layout
8739
8740 \end_inset
8741
8742  to provide the user with information about what the module does.
8743  The 
8744 \begin_inset Flex Code
8745 status collapsed
8746
8747 \begin_layout Plain Layout
8748 Requires
8749 \end_layout
8750
8751 \end_inset
8752
8753  line is used to identify other modules with which this one must be used;
8754  the 
8755 \begin_inset Flex Code
8756 status collapsed
8757
8758 \begin_layout Plain Layout
8759 Excludes
8760 \end_layout
8761
8762 \end_inset
8763
8764  line is used to identify modules with which this one may not be used.
8765  Both are optional, and, as shown, multiple modules should be separated
8766  with the pipe symbol: |.
8767  Note that the required modules are treated disjunctively: 
8768 \emph on
8769 at least one
8770 \emph default
8771  of the required modules must be used.
8772  Similarly, 
8773 \emph on
8774 no
8775 \emph default
8776  excluded module may be used.
8777  Note that modules are identified here by their filenames without the 
8778 \begin_inset Flex Code
8779 status collapsed
8780
8781 \begin_layout Plain Layout
8782 .module
8783 \end_layout
8784
8785 \end_inset
8786
8787  extension.
8788  So 
8789 \begin_inset Flex Code
8790 status collapsed
8791
8792 \begin_layout Plain Layout
8793 somemodule
8794 \end_layout
8795
8796 \end_inset
8797
8798  is really 
8799 \begin_inset Flex Code
8800 status collapsed
8801
8802 \begin_layout Plain Layout
8803 somemodule.module
8804 \end_layout
8805
8806 \end_inset
8807
8808 .
8809 \end_layout
8810
8811 \begin_layout Subsection
8812 The CiteEngine file declaration
8813 \end_layout
8814
8815 \begin_layout Standard
8816 A cite engine file must begin with a line like the following:
8817 \end_layout
8818
8819 \begin_layout LyX-Code
8820 #
8821 \backslash
8822 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8823 \end_layout
8824
8825 \begin_layout Standard
8826 The mandatory argument, in curly brackets, is the name of the cite style,
8827  as it should appear in 
8828 \begin_inset Flex Noun
8829 status collapsed
8830
8831 \begin_layout Plain Layout
8832 Document\SpecialChar menuseparator
8833 Settings\SpecialChar menuseparator
8834 Bibliography
8835 \end_layout
8836
8837 \end_inset
8838
8839 .
8840  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8841  packages
8842  on which the cite engine depends.
8843 \end_layout
8844
8845 \begin_layout Standard
8846 The cite engine declaration should then be followed by lines like the following:
8847 \begin_inset Foot
8848 status collapsed
8849
8850 \begin_layout Plain Layout
8851 Preferably in English if the module should be published with \SpecialChar LyX
8852 .
8853  This description will appear in the list of messages to be translated and
8854  will be thus translated with the next interface update.
8855 \end_layout
8856
8857 \end_inset
8858
8859
8860 \end_layout
8861
8862 \begin_layout LyX-Code
8863 # DescriptionBegin
8864 \end_layout
8865
8866 \begin_layout LyX-Code
8867 #   Biblatex supports many author-year and numerical styles.
8868 \end_layout
8869
8870 \begin_layout LyX-Code
8871 #   It is mainly aimed at the Humanities.
8872  It is highly
8873 \end_layout
8874
8875 \begin_layout LyX-Code
8876 #   customizable, fully localized and provides many features
8877 \end_layout
8878
8879 \begin_layout LyX-Code
8880 #   that are not possible with BibTeX.
8881  The use of 'biber' as
8882 \end_layout
8883
8884 \begin_layout LyX-Code
8885 #   bibliography processor is advised.
8886 \end_layout
8887
8888 \begin_layout LyX-Code
8889 # DescriptionEnd
8890 \end_layout
8891
8892 \begin_layout Standard
8893 The description is used in 
8894 \begin_inset Flex Noun
8895 status collapsed
8896
8897 \begin_layout Plain Layout
8898 Document\SpecialChar menuseparator
8899 Settings\SpecialChar menuseparator
8900 Bibliography
8901 \end_layout
8902
8903 \end_inset
8904
8905  to provide the user with information about the cite engine.
8906 \end_layout
8907
8908 \begin_layout Subsection
8909 Format number
8910 \end_layout
8911
8912 \begin_layout Standard
8913 The first non-comment line of any layout file, included file, or module
8914  
8915 \emph on
8916 must
8917 \emph default
8918  contain the file format number:
8919 \end_layout
8920
8921 \begin_layout Description
8922 \begin_inset Flex Code
8923 status collapsed
8924
8925 \begin_layout Plain Layout
8926 Format
8927 \end_layout
8928
8929 \end_inset
8930
8931  [
8932 \begin_inset Flex Code
8933 status collapsed
8934
8935 \begin_layout Plain Layout
8936 int
8937 \end_layout
8938
8939 \end_inset
8940
8941 ] The format number of the layout file.
8942 \end_layout
8943
8944 \begin_layout Standard
8945 This tag was introduced with \SpecialChar LyX
8946
8947 \begin_inset space ~
8948 \end_inset
8949
8950 1.4.0.
8951  Layout files from older \SpecialChar LyX
8952  versions do not have an explicit file format and
8953  are considered to have 
8954 \begin_inset Flex Code
8955 status collapsed
8956
8957 \begin_layout Plain Layout
8958 Format
8959 \begin_inset space ~
8960 \end_inset
8961
8962 1
8963 \end_layout
8964
8965 \end_inset
8966
8967 .
8968  The format for the present version of \SpecialChar LyX
8969  is format 60.
8970  But each version of \SpecialChar LyX
8971  is capable of reading earlier versions' layout files,
8972  just as they are capable of reading files produced by earlier versions
8973  of \SpecialChar LyX
8974 .
8975  There is, however, no provision for converting to earlier formats.
8976 \end_layout
8977
8978 \begin_layout Subsection
8979 \begin_inset CommandInset label
8980 LatexCommand label
8981 name "subsec:General-text-class"
8982
8983 \end_inset
8984
8985 General text class parameters
8986 \end_layout
8987
8988 \begin_layout Standard
8989 These are general parameters that govern the behavior of an entire document
8990  class.
8991  (This does 
8992 \emph on
8993 not
8994 \emph default
8995  mean that they must appear in 
8996 \begin_inset Flex Code
8997 status collapsed
8998
8999 \begin_layout Plain Layout
9000 .layout
9001 \end_layout
9002
9003 \end_inset
9004
9005  files rather than in modules.
9006  A module can contain any layout tag.)
9007 \end_layout
9008
9009 \begin_layout Description
9010
9011 \change_inserted -712698321 1526899478
9012 \begin_inset Flex Code
9013 status collapsed
9014
9015 \begin_layout Plain Layout
9016
9017 \change_inserted -712698321 1526898610
9018 AddToCiteEngine <engine>
9019 \change_unchanged
9020
9021 \end_layout
9022
9023 \end_inset
9024
9025  Extends the possibilities for displaying citation references.
9026  See 
9027 \begin_inset CommandInset ref
9028 LatexCommand ref
9029 reference "subsec:Citation-engine-description"
9030 plural "false"
9031 caps "false"
9032 noprefix "false"
9033
9034 \end_inset
9035
9036  for details.
9037  Must end with 
9038 \begin_inset Flex Code
9039 status collapsed
9040
9041 \begin_layout Plain Layout
9042
9043 \change_inserted -712698321 1526898823
9044 End
9045 \change_unchanged
9046
9047 \end_layout
9048
9049 \end_inset
9050
9051 .
9052 \end_layout
9053
9054 \begin_layout Description
9055 \begin_inset Flex Code
9056 status collapsed
9057
9058 \begin_layout Plain Layout
9059 AddToHTMLPreamble
9060 \end_layout
9061
9062 \end_inset
9063
9064  Adds information that will be output in the 
9065 \begin_inset Flex Code
9066 status collapsed
9067
9068 \begin_layout Plain Layout
9069 <head>
9070 \end_layout
9071
9072 \end_inset
9073
9074  block when the document is output to XHTML.
9075  Typically, this would be used to output CSS style information, but it can
9076  be used for anything that can appear in 
9077 \begin_inset Flex Code
9078 status collapsed
9079
9080 \begin_layout Plain Layout
9081 <head>
9082 \end_layout
9083
9084 \end_inset
9085
9086 .
9087  Must end with 
9088 \begin_inset Quotes eld
9089 \end_inset
9090
9091
9092 \begin_inset Flex Code
9093 status collapsed
9094
9095 \begin_layout Plain Layout
9096 EndPreamble
9097 \end_layout
9098
9099 \end_inset
9100
9101
9102 \begin_inset Quotes erd
9103 \end_inset
9104
9105 .
9106 \end_layout
9107
9108 \begin_layout Description
9109 \begin_inset Flex Code
9110 status collapsed
9111
9112 \begin_layout Plain Layout
9113 AddToPreamble
9114 \end_layout
9115
9116 \end_inset
9117
9118  Adds information to the document preamble.
9119  Must end with
9120 \begin_inset Newline newline
9121 \end_inset
9122
9123
9124 \begin_inset Quotes eld
9125 \end_inset
9126
9127
9128 \begin_inset Flex Code
9129 status collapsed
9130
9131 \begin_layout Plain Layout
9132 EndPreamble
9133 \end_layout
9134
9135 \end_inset
9136
9137
9138 \begin_inset Quotes erd
9139 \end_inset
9140
9141 .
9142 \change_inserted -712698321 1562592950
9143
9144 \end_layout
9145
9146 \begin_layout Description
9147
9148 \change_inserted -712698321 1562593040
9149 \begin_inset Flex Code
9150 status collapsed
9151
9152 \begin_layout Plain Layout
9153
9154 \change_inserted -712698321 1562592954
9155 BibInToc
9156 \change_unchanged
9157
9158 \end_layout
9159
9160 \end_inset
9161
9162  [
9163 \begin_inset Flex Code
9164 status collapsed
9165
9166 \begin_layout Plain Layout
9167
9168 \change_inserted -712698321 1562592950
9169
9170 \emph on
9171 0
9172 \change_unchanged
9173
9174 \end_layout
9175
9176 \end_inset
9177
9178 ,
9179 \begin_inset space \thinspace{}
9180 \end_inset
9181
9182
9183 \begin_inset Flex Code
9184 status collapsed
9185
9186 \begin_layout Plain Layout
9187
9188 \change_inserted -712698321 1562592950
9189 1
9190 \change_unchanged
9191
9192 \end_layout
9193
9194 \end_inset
9195
9196 ] If the document class adds the bibliography to the table of contents,
9197  add this option with value 
9198 \begin_inset Flex Code
9199 status collapsed
9200
9201 \begin_layout Plain Layout
9202
9203 \change_inserted -712698321 1562592996
9204 1
9205 \change_unchanged
9206
9207 \end_layout
9208
9209 \end_inset
9210
9211  (or 
9212 \begin_inset Flex Code
9213 status collapsed
9214
9215 \begin_layout Plain Layout
9216
9217 \change_inserted -712698321 1562593006
9218 true
9219 \change_unchanged
9220
9221 \end_layout
9222
9223 \end_inset
9224
9225 ).
9226  This prevents the bibliography from being added twice.
9227 \change_unchanged
9228
9229 \end_layout
9230
9231 \begin_layout Description
9232 \begin_inset Flex Code
9233 status collapsed
9234
9235 \begin_layout Plain Layout
9236 CiteEngine <engine>
9237 \end_layout
9238
9239 \end_inset
9240
9241  Defines the possibilities for displaying citation references.
9242  See 
9243 \begin_inset CommandInset ref
9244 LatexCommand ref
9245 reference "subsec:Citation-engine-description"
9246 plural "false"
9247 caps "false"
9248 noprefix "false"
9249
9250 \end_inset
9251
9252  for details.
9253  Must end with 
9254 \begin_inset Quotes eld
9255 \end_inset
9256
9257
9258 \begin_inset Flex Code
9259 status collapsed
9260
9261 \begin_layout Plain Layout
9262 End
9263 \end_layout
9264
9265 \end_inset
9266
9267
9268 \begin_inset Quotes erd
9269 \end_inset
9270
9271 .
9272  Primarily used in cite engine files (see 
9273 \begin_inset CommandInset ref
9274 LatexCommand ref
9275 reference "subsec:Cite-Engine-Files"
9276 plural "false"
9277 caps "false"
9278 noprefix "false"
9279
9280 \end_inset
9281
9282 ).
9283
9284 \change_inserted -712698321 1526898530
9285  Note that if you specify this in a layout file or module, any cite engine
9286  definition will be overridden.
9287  Also see 
9288 \begin_inset Flex Code
9289 status collapsed
9290
9291 \begin_layout Plain Layout
9292
9293 \change_inserted -712698321 1526898530
9294 AddToCiteEngine
9295 \change_unchanged
9296
9297 \end_layout
9298
9299 \end_inset
9300
9301 .
9302 \change_unchanged
9303
9304 \end_layout
9305
9306 \begin_layout Description
9307 \begin_inset Flex Code
9308 status collapsed
9309
9310 \begin_layout Plain Layout
9311 CiteFormat
9312 \end_layout
9313
9314 \end_inset
9315
9316  Defines formats for use in the display of bibliographic information.
9317  See 
9318 \begin_inset CommandInset ref
9319 LatexCommand ref
9320 reference "subsec:Citation-format-description"
9321
9322 \end_inset
9323
9324  for details.
9325  Must end with 
9326 \begin_inset Quotes eld
9327 \end_inset
9328
9329
9330 \begin_inset Flex Code
9331 status collapsed
9332
9333 \begin_layout Plain Layout
9334 End
9335 \end_layout
9336
9337 \end_inset
9338
9339
9340 \begin_inset Quotes erd
9341 \end_inset
9342
9343 .
9344  Primarily used in cite engine files (see 
9345 \begin_inset CommandInset ref
9346 LatexCommand ref
9347 reference "subsec:Cite-Engine-Files"
9348 plural "false"
9349 caps "false"
9350 noprefix "false"
9351
9352 \end_inset
9353
9354 ).
9355
9356 \change_inserted -712698321 1526898585
9357  A cite format defined in a layout or module will override the cite engine
9358  definition.
9359 \change_unchanged
9360
9361 \end_layout
9362
9363 \begin_layout Description
9364 \begin_inset Flex Code
9365 status collapsed
9366
9367 \begin_layout Plain Layout
9368 CiteFramework
9369 \end_layout
9370
9371 \end_inset
9372
9373  [
9374 \begin_inset Flex Code
9375 status collapsed
9376
9377 \begin_layout Plain Layout
9378
9379 \emph on
9380 bibtex
9381 \end_layout
9382
9383 \end_inset
9384
9385 ,
9386 \begin_inset Flex Code
9387 status collapsed
9388
9389 \begin_layout Plain Layout
9390 biblatex
9391 \end_layout
9392
9393 \end_inset
9394
9395 ] Determines whether 
9396 \family sans
9397 Biblatex
9398 \family default
9399  or Bib\SpecialChar TeX
9400  is used to generate a Bibliography.
9401  Primarily used in cite engine files (see 
9402 \begin_inset CommandInset ref
9403 LatexCommand ref
9404 reference "subsec:Cite-Engine-Files"
9405 plural "false"
9406 caps "false"
9407 noprefix "false"
9408
9409 \end_inset
9410
9411 ).
9412 \end_layout
9413
9414 \begin_layout Description
9415 \begin_inset Flex Code
9416 status collapsed
9417
9418 \begin_layout Plain Layout
9419 ClassOptions
9420 \end_layout
9421
9422 \end_inset
9423
9424  Describes various global options supported by the document class.
9425  See 
9426 \begin_inset CommandInset ref
9427 LatexCommand ref
9428 reference "subsec:ClassOptions"
9429
9430 \end_inset
9431
9432  for a description.
9433  Must end with 
9434 \begin_inset Quotes eld
9435 \end_inset
9436
9437
9438 \begin_inset Flex Code
9439 status collapsed
9440
9441 \begin_layout Plain Layout
9442 End
9443 \end_layout
9444
9445 \end_inset
9446
9447
9448 \begin_inset Quotes erd
9449 \end_inset
9450
9451 .
9452 \end_layout
9453
9454 \begin_layout Description
9455 \begin_inset Flex Code
9456 status collapsed
9457
9458 \begin_layout Plain Layout
9459 Columns
9460 \end_layout
9461
9462 \end_inset
9463
9464  [
9465 \begin_inset Flex Code
9466 status collapsed
9467
9468 \begin_layout Plain Layout
9469
9470 \emph on
9471 1
9472 \end_layout
9473
9474 \end_inset
9475
9476 ,
9477 \begin_inset space \thinspace{}
9478 \end_inset
9479
9480
9481 \begin_inset Flex Code
9482 status collapsed
9483
9484 \begin_layout Plain Layout
9485 2
9486 \end_layout
9487
9488 \end_inset
9489
9490 ] Whether the class should 
9491 \emph on
9492 default
9493 \emph default
9494  to having one or two columns.
9495  Can be changed in the 
9496 \begin_inset Flex Noun
9497 status collapsed
9498
9499 \begin_layout Plain Layout
9500 Document\SpecialChar menuseparator
9501 Settings
9502 \end_layout
9503
9504 \end_inset
9505
9506  dialog.
9507 \end_layout
9508
9509 \begin_layout Description
9510 \begin_inset Flex Code
9511 status collapsed
9512
9513 \begin_layout Plain Layout
9514 Counter
9515 \end_layout
9516
9517 \end_inset
9518
9519  [
9520 \begin_inset Flex Code
9521 status collapsed
9522
9523 \begin_layout Plain Layout
9524 string
9525 \end_layout
9526
9527 \end_inset
9528
9529 ] This sequence defines the properties for a counter.
9530  If the counter does not yet exist, it is created; if it does exist, it
9531  is modified.
9532  Must end with 
9533 \begin_inset Quotes eld
9534 \end_inset
9535
9536
9537 \begin_inset Flex Code
9538 status collapsed
9539
9540 \begin_layout Plain Layout
9541 End
9542 \end_layout
9543
9544 \end_inset
9545
9546
9547 \begin_inset Quotes erd
9548 \end_inset
9549
9550 .
9551 \begin_inset Newline newline
9552 \end_inset
9553
9554 See 
9555 \begin_inset CommandInset ref
9556 LatexCommand ref
9557 reference "subsec:Counters"
9558
9559 \end_inset
9560
9561  for details on counters.
9562 \end_layout
9563
9564 \begin_layout Description
9565 \begin_inset Flex Code
9566 status collapsed
9567
9568 \begin_layout Plain Layout
9569 DefaultFont
9570 \end_layout
9571
9572 \end_inset
9573
9574  Sets the default font used to display the document.
9575  See 
9576 \begin_inset CommandInset ref
9577 LatexCommand ref
9578 reference "subsec:Font-description"
9579
9580 \end_inset
9581
9582  for how to declare fonts.
9583  Must end with 
9584 \begin_inset Quotes eld
9585 \end_inset
9586
9587
9588 \begin_inset Flex Code
9589 status collapsed
9590
9591 \begin_layout Plain Layout
9592 EndFont
9593 \end_layout
9594
9595 \end_inset
9596
9597
9598 \begin_inset Quotes erd
9599 \end_inset
9600
9601 .
9602 \end_layout
9603
9604 \begin_layout Description
9605 \begin_inset Flex Code
9606 status collapsed
9607
9608 \begin_layout Plain Layout
9609 DefaultModule
9610 \end_layout
9611
9612 \end_inset
9613
9614  [
9615 \begin_inset Flex Code
9616 status collapsed
9617
9618 \begin_layout Plain Layout
9619 <module>
9620 \end_layout
9621
9622 \end_inset
9623
9624 ] Specifies a module to be included by default with this document class.
9625  The module is specified as filename without the 
9626 \begin_inset Flex Code
9627 status collapsed
9628
9629 \begin_layout Plain Layout
9630 .module
9631 \end_layout
9632
9633 \end_inset
9634
9635  extension.
9636  The user can still remove the module, but it will be active at the outset.
9637  (This applies only when new files are created, or when this class is chosen
9638  for an existing document.)
9639 \end_layout
9640
9641 \begin_layout Description
9642 \begin_inset Flex Code
9643 status collapsed
9644
9645 \begin_layout Plain Layout
9646 DefaultStyle
9647 \end_layout
9648
9649 \end_inset
9650
9651  [
9652 \begin_inset Flex Code
9653 status collapsed
9654
9655 \begin_layout Plain Layout
9656 <style>
9657 \end_layout
9658
9659 \end_inset
9660
9661 ] This is the style that will be assigned to new paragraphs, usually 
9662 \begin_inset Flex Noun
9663 status collapsed
9664
9665 \begin_layout Plain Layout
9666 Standard
9667 \end_layout
9668
9669 \end_inset
9670
9671 .
9672  This will default to the first defined style if not given, but you are
9673  encouraged to use this directive.
9674 \end_layout
9675
9676 \begin_layout Description
9677
9678 \change_inserted -970929547 1515112870
9679 \begin_inset Flex Code
9680 status collapsed
9681
9682 \begin_layout Plain Layout
9683
9684 \change_inserted -970929547 1515112782
9685 DocBookRoot
9686 \change_unchanged
9687
9688 \end_layout
9689
9690 \end_inset
9691
9692  [
9693 \begin_inset Flex Code
9694 status collapsed
9695
9696 \begin_layout Plain Layout
9697
9698 \change_inserted -970929547 1515112766
9699 string
9700 \change_unchanged
9701
9702 \end_layout
9703
9704 \end_inset
9705
9706 ] The root element (at the top of the document) to use when outputting documents
9707  with this class in DocBook.
9708  The default value is 
9709 \begin_inset Quotes eld
9710 \end_inset
9711
9712
9713 \begin_inset Flex Code
9714 status collapsed
9715
9716 \begin_layout Plain Layout
9717
9718 \change_inserted -970929547 1515112845
9719 article
9720 \change_unchanged
9721
9722 \end_layout
9723
9724 \end_inset
9725
9726
9727 \begin_inset Quotes erd
9728 \end_inset
9729
9730 .
9731
9732 \change_deleted 1075283030 1594226862
9733  
9734 \change_inserted 1075283030 1594226777
9735
9736 \end_layout
9737
9738 \begin_layout Description
9739
9740 \change_inserted 1075283030 1594226859
9741 \begin_inset Flex Code
9742 status collapsed
9743
9744 \begin_layout Plain Layout
9745
9746 \change_inserted 1075283030 1594226785
9747 DocBookForceAbstract
9748 \change_unchanged
9749
9750 \end_layout
9751
9752 \end_inset
9753
9754  [
9755 \begin_inset Flex Code
9756 status collapsed
9757
9758 \begin_layout Plain Layout
9759
9760 \change_inserted 1075283030 1594226804
9761 boolean
9762 \change_unchanged
9763
9764 \end_layout
9765
9766 \end_inset
9767
9768 ] If 
9769 \begin_inset Quotes eld
9770 \end_inset
9771
9772
9773 \family typewriter
9774 true
9775 \family default
9776
9777 \begin_inset Quotes erd
9778 \end_inset
9779
9780 , the root element will always have an 
9781 \family typewriter
9782 <abstract>
9783 \family default
9784  tag.
9785  The default value is 
9786 \begin_inset Quotes eld
9787 \end_inset
9788
9789
9790 \family typewriter
9791 false
9792 \family default
9793
9794 \begin_inset Quotes erd
9795 \end_inset
9796
9797 .
9798 \change_unchanged
9799
9800 \end_layout
9801
9802 \begin_layout Description
9803 \begin_inset Flex Code
9804 status collapsed
9805
9806 \begin_layout Plain Layout
9807 ExcludesModule
9808 \end_layout
9809
9810 \end_inset
9811
9812  [
9813 \begin_inset Flex Code
9814 status collapsed
9815
9816 \begin_layout Plain Layout
9817 <module>
9818 \end_layout
9819
9820 \end_inset
9821
9822 ] This tag indicates that the module (which is specified by filename without
9823  the 
9824 \begin_inset Flex Code
9825 status collapsed
9826
9827 \begin_layout Plain Layout
9828 .module
9829 \end_layout
9830
9831 \end_inset
9832
9833  extension) cannot be used with this document class.
9834  This might be used in a journal-specific layout file to prevent, say, the
9835  use of the 
9836 \begin_inset Flex Code
9837 status collapsed
9838
9839 \begin_layout Plain Layout
9840 theorems-sec
9841 \end_layout
9842
9843 \end_inset
9844
9845  module that numbers theorems by section.
9846  This tag may 
9847 \emph on
9848 not
9849 \emph default
9850  be used in a module.
9851  Modules have their own way of excluding other modules (see 
9852 \begin_inset CommandInset ref
9853 LatexCommand ref
9854 reference "subsec:Layout-modules"
9855
9856 \end_inset
9857
9858 ).
9859 \end_layout
9860
9861 \begin_layout Description
9862 \begin_inset Flex Code
9863 status collapsed
9864
9865 \begin_layout Plain Layout
9866 Float
9867 \end_layout
9868
9869 \end_inset
9870
9871  Defines a new float.
9872  See 
9873 \begin_inset CommandInset ref
9874 LatexCommand ref
9875 reference "subsec:Floats"
9876
9877 \end_inset
9878
9879  for details.
9880  Must end with 
9881 \begin_inset Quotes eld
9882 \end_inset
9883
9884
9885 \begin_inset Flex Code
9886 status collapsed
9887
9888 \begin_layout Plain Layout
9889 End
9890 \end_layout
9891
9892 \end_inset
9893
9894
9895 \begin_inset Quotes erd
9896 \end_inset
9897
9898 .
9899 \end_layout
9900
9901 \begin_layout Description
9902 \begin_inset Flex Code
9903 status collapsed
9904
9905 \begin_layout Plain Layout
9906 HTMLPreamble
9907 \end_layout
9908
9909 \end_inset
9910
9911  Sets the information that will be output in the 
9912 \begin_inset Flex Code
9913 status collapsed
9914
9915 \begin_layout Plain Layout
9916 <head>
9917 \end_layout
9918
9919 \end_inset
9920
9921  block when this document class is output to XHTML.
9922  Note that this will completely override any prior 
9923 \begin_inset Flex Code
9924 status collapsed
9925
9926 \begin_layout Plain Layout
9927 HTMLPreamble
9928 \end_layout
9929
9930 \end_inset
9931
9932  or 
9933 \begin_inset Flex Code
9934 status collapsed
9935
9936 \begin_layout Plain Layout
9937 AddToHTMLPreamble
9938 \end_layout
9939
9940 \end_inset
9941
9942  declarations.
9943  (Use
9944 \begin_inset Newline newline
9945 \end_inset
9946
9947
9948 \begin_inset Flex Code
9949 status collapsed
9950
9951 \begin_layout Plain Layout
9952 AddToHTMLPreamble
9953 \end_layout
9954
9955 \end_inset
9956
9957  if you just want to add material to the preamble.) Must end with 
9958 \begin_inset Quotes eld
9959 \end_inset
9960
9961
9962 \begin_inset Flex Code
9963 status collapsed
9964
9965 \begin_layout Plain Layout
9966 EndPreamble
9967 \end_layout
9968
9969 \end_inset
9970
9971
9972 \begin_inset Quotes erd
9973 \end_inset
9974
9975 .
9976 \end_layout
9977
9978 \begin_layout Description
9979 \begin_inset Flex Code
9980 status collapsed
9981
9982 \begin_layout Plain Layout
9983 HTMLTOCSection
9984 \end_layout
9985
9986 \end_inset
9987
9988  [
9989 \begin_inset Flex Code
9990 status collapsed
9991
9992 \begin_layout Plain Layout
9993 <style>
9994 \end_layout
9995
9996 \end_inset
9997
9998 ] The style to use for the table of contents, bibliography, and so forth,
9999  when the document is output to HTML.
10000  For articles, this should normally be 
10001 \begin_inset Flex Code
10002 status collapsed
10003
10004 \begin_layout Plain Layout
10005 Section
10006 \end_layout
10007
10008 \end_inset
10009
10010 ; for books 
10011 \begin_inset Flex Code
10012 status collapsed
10013
10014 \begin_layout Plain Layout
10015 Chapter
10016 \end_layout
10017
10018 \end_inset
10019
10020 .
10021  If it is not given, then \SpecialChar LyX
10022  will attempt to figure out which layout to use.
10023 \end_layout
10024
10025 \begin_layout Description
10026 \begin_inset Flex Code
10027 status collapsed
10028
10029 \begin_layout Plain Layout
10030 IfCounter
10031 \end_layout
10032
10033 \end_inset
10034
10035  [
10036 \begin_inset Flex Code
10037 status collapsed
10038
10039 \begin_layout Plain Layout
10040 <counter>
10041 \end_layout
10042
10043 \end_inset
10044
10045 ] Modifies the properties of the given counter.
10046  If the counter does not exist, the statement is ignored.
10047  Must end with 
10048 \begin_inset Quotes eld
10049 \end_inset
10050
10051
10052 \begin_inset Flex Code
10053 status collapsed
10054
10055 \begin_layout Plain Layout
10056 End
10057 \end_layout
10058
10059 \end_inset
10060
10061
10062 \begin_inset Quotes erd
10063 \end_inset
10064
10065 .
10066 \begin_inset Newline newline
10067 \end_inset
10068
10069 See 
10070 \begin_inset CommandInset ref
10071 LatexCommand ref
10072 reference "subsec:Counters"
10073
10074 \end_inset
10075
10076  for details on counters.
10077 \end_layout
10078
10079 \begin_layout Description
10080 \begin_inset Flex Code
10081 status collapsed
10082
10083 \begin_layout Plain Layout
10084 Input
10085 \end_layout
10086
10087 \end_inset
10088
10089  [
10090 \begin_inset Flex Code
10091 status collapsed
10092
10093 \begin_layout Plain Layout
10094 <filename>
10095 \end_layout
10096
10097 \end_inset
10098
10099 ] This allows you to include another layout definition file within yours
10100  to avoid duplicating commands.
10101  Common examples are the standard layout files, for example, 
10102 \begin_inset Flex Code
10103 status collapsed
10104
10105 \begin_layout Plain Layout
10106 stdclass.inc
10107 \end_layout
10108
10109 \end_inset
10110
10111 , which contains most of the basic layouts.
10112 \end_layout
10113
10114 \begin_layout Description
10115 \begin_inset Flex Code
10116 status collapsed
10117
10118 \begin_layout Plain Layout
10119 InsetLayout
10120 \end_layout
10121
10122 \end_inset
10123
10124  [
10125 \begin_inset Flex Code
10126 status collapsed
10127
10128 \begin_layout Plain Layout
10129 <type>
10130 \end_layout
10131
10132 \end_inset
10133
10134 ] This section (re-)defines the layout of an inset.
10135  It can be applied to an existing inset or to a new, user-defined inset,
10136  e.g., a new character style.
10137  Must end with 
10138 \begin_inset Quotes eld
10139 \end_inset
10140
10141
10142 \begin_inset Flex Code
10143 status collapsed
10144
10145 \begin_layout Plain Layout
10146 End
10147 \end_layout
10148
10149 \end_inset
10150
10151
10152 \begin_inset Quotes erd
10153 \end_inset
10154
10155 .
10156 \begin_inset Newline newline
10157 \end_inset
10158
10159 See 
10160 \begin_inset CommandInset ref
10161 LatexCommand ref
10162 reference "subsec:Flex-insets-and"
10163
10164 \end_inset
10165
10166  for more information.
10167  
10168 \end_layout
10169
10170 \begin_layout Description
10171 \begin_inset Flex Code
10172 status collapsed
10173
10174 \begin_layout Plain Layout
10175 LeftMargin
10176 \end_layout
10177
10178 \end_inset
10179
10180  [
10181 \begin_inset Flex Code
10182 status collapsed
10183
10184 \begin_layout Plain Layout
10185 string
10186 \end_layout
10187
10188 \end_inset
10189
10190 ] A string that indicates the width of the left margin on the screen, for
10191  example, 
10192 \begin_inset Quotes eld
10193 \end_inset
10194
10195
10196 \begin_inset Flex Code
10197 status collapsed
10198
10199 \begin_layout Plain Layout
10200 MMMMM
10201 \end_layout
10202
10203 \end_inset
10204
10205
10206 \begin_inset Quotes erd
10207 \end_inset
10208
10209 .
10210  (Note that this is not a `length', like 
10211 \begin_inset Quotes eld
10212 \end_inset
10213
10214 2ex
10215 \begin_inset Quotes erd
10216 \end_inset
10217
10218 .)
10219 \end_layout
10220
10221 \begin_layout Description
10222 \begin_inset Flex Code
10223 status collapsed
10224
10225 \begin_layout Plain Layout
10226 MaxCiteNames
10227 \end_layout
10228
10229 \end_inset
10230
10231  [
10232 \begin_inset Flex Code
10233 status collapsed
10234
10235 \begin_layout Plain Layout
10236 integer
10237 \end_layout
10238
10239 \end_inset
10240
10241 ] An integer that determines the maximal number of names displayed in an
10242  author-year citation before the citation switches to 
10243 \begin_inset Quotes eld
10244 \end_inset
10245
10246 FirstAuthor et al.
10247 \begin_inset Quotes erd
10248 \end_inset
10249
10250 .
10251  Primarily used in cite engine files (see 
10252 \begin_inset CommandInset ref
10253 LatexCommand ref
10254 reference "subsec:Cite-Engine-Files"
10255 plural "false"
10256 caps "false"
10257 noprefix "false"
10258
10259 \end_inset
10260
10261 ).
10262 \end_layout
10263
10264 \begin_layout Description
10265 \begin_inset Flex Code
10266 status collapsed
10267
10268 \begin_layout Plain Layout
10269 ModifyStyle
10270 \end_layout
10271
10272 \end_inset
10273
10274  [
10275 \begin_inset Flex Code
10276 status collapsed
10277
10278 \begin_layout Plain Layout
10279 <style>
10280 \end_layout
10281
10282 \end_inset
10283
10284 ] Modifies the properties of the given paragraph style.
10285  If the style does not exist, this section is ignored.
10286  Must end with 
10287 \begin_inset Quotes eld
10288 \end_inset
10289
10290
10291 \begin_inset Flex Code
10292 status collapsed
10293
10294 \begin_layout Plain Layout
10295 End
10296 \end_layout
10297
10298 \end_inset
10299
10300
10301 \begin_inset Quotes erd
10302 \end_inset
10303
10304 .
10305 \end_layout
10306
10307 \begin_layout Description
10308 \begin_inset Flex Code
10309 status collapsed
10310
10311 \begin_layout Plain Layout
10312 NoCounter
10313 \end_layout
10314
10315 \end_inset
10316
10317  [
10318 \begin_inset Flex Code
10319 status collapsed
10320
10321 \begin_layout Plain Layout
10322 <counter>
10323 \end_layout
10324
10325 \end_inset
10326
10327 ] Deletes an existing counter, usually one defined in an included file.
10328 \end_layout
10329
10330 \begin_layout Description
10331 \begin_inset Flex Code
10332 status collapsed
10333
10334 \begin_layout Plain Layout
10335 NoFloat
10336 \end_layout
10337
10338 \end_inset
10339
10340  [
10341 \begin_inset Flex Code
10342 status collapsed
10343
10344 \begin_layout Plain Layout
10345 <float>
10346 \end_layout
10347
10348 \end_inset
10349
10350 ] Deletes an existing float.
10351  This is particularly useful when you want to suppress a float that has
10352  been defined in an input file.
10353 \end_layout
10354
10355 \begin_layout Description
10356 \begin_inset Flex Code
10357 status collapsed
10358
10359 \begin_layout Plain Layout
10360 NoStyle
10361 \end_layout
10362
10363 \end_inset
10364
10365  [
10366 \begin_inset Flex Code
10367 status collapsed
10368
10369 \begin_layout Plain Layout
10370 <style>
10371 \end_layout
10372
10373 \end_inset
10374
10375 ] Deletes an existing style.
10376 \end_layout
10377
10378 \begin_layout Description
10379 \begin_inset Flex Code
10380 status collapsed
10381
10382 \begin_layout Plain Layout
10383 OutlinerName
10384 \end_layout
10385
10386 \end_inset
10387
10388  [
10389 \begin_inset Flex Code
10390 status collapsed
10391
10392 \begin_layout Plain Layout
10393 <type>
10394 \end_layout
10395
10396 \end_inset
10397
10398 ] [
10399 \begin_inset Flex Code
10400 status collapsed
10401
10402 \begin_layout Plain Layout
10403 <string>
10404 \end_layout
10405
10406 \end_inset
10407
10408 ] Define a new table of contents with type 
10409 \begin_inset Flex Code
10410 status collapsed
10411
10412 \begin_layout Plain Layout
10413 <type>
10414 \end_layout
10415
10416 \end_inset
10417
10418  and name 
10419 \begin_inset Flex Code
10420 status collapsed
10421
10422 \begin_layout Plain Layout
10423 <string>
10424 \end_layout
10425
10426 \end_inset
10427
10428 .
10429  See also the AddToToc commands.
10430 \end_layout
10431
10432 \begin_layout Description
10433 \begin_inset Flex Code
10434 status collapsed
10435
10436 \begin_layout Plain Layout
10437 OutputFormat
10438 \end_layout
10439
10440 \end_inset
10441
10442  [
10443 \begin_inset Flex Code
10444 status collapsed
10445
10446 \begin_layout Plain Layout
10447 <format>
10448 \end_layout
10449
10450 \end_inset
10451
10452 ] The file format (as defined in the \SpecialChar LyX
10453  preferences) produced by this document
10454  class.
10455  It is mainly useful when 
10456 \begin_inset Flex Code
10457 status collapsed
10458
10459 \begin_layout Plain Layout
10460 OutputType
10461 \end_layout
10462
10463 \end_inset
10464
10465  is 
10466 \begin_inset Flex Code
10467 status collapsed
10468
10469 \begin_layout Plain Layout
10470 literate
10471 \end_layout
10472
10473 \end_inset
10474
10475  and one wants to define a new type of literate document.
10476  The format is reset to 
10477 \change_deleted 5863208 1594239413
10478
10479 \begin_inset Quotes eld
10480 \end_inset
10481
10482
10483 \begin_inset Flex Code
10484 status collapsed
10485
10486 \begin_layout Plain Layout
10487 docbook
10488 \end_layout
10489
10490 \end_inset
10491
10492
10493 \begin_inset Quotes erd
10494 \end_inset
10495
10496  or
10497 \change_unchanged
10498  
10499 \begin_inset Quotes eld
10500 \end_inset
10501
10502
10503 \begin_inset Flex Code
10504 status collapsed
10505
10506 \begin_layout Plain Layout
10507 latex
10508 \end_layout
10509
10510 \end_inset
10511
10512
10513 \begin_inset Quotes erd
10514 \end_inset
10515
10516  when the corresponding 
10517 \begin_inset Flex Code
10518 status collapsed
10519
10520 \begin_layout Plain Layout
10521 OutputType
10522 \end_layout
10523
10524 \end_inset
10525
10526  parameter is encountered.
10527 \end_layout
10528
10529 \begin_layout Description
10530 \begin_inset Flex Code
10531 status collapsed
10532
10533 \begin_layout Plain Layout
10534 OutputType
10535 \end_layout
10536
10537 \end_inset
10538
10539  [
10540 \begin_inset Flex Code
10541 status collapsed
10542
10543 \begin_layout Plain Layout
10544
10545 \emph on
10546 lat
10547 \emph default
10548 ex
10549 \end_layout
10550
10551 \end_inset
10552
10553
10554 \change_deleted 5863208 1594239430
10555
10556 \begin_inset Flex Code
10557 status collapsed
10558
10559 \begin_layout Plain Layout
10560 docbook
10561 \end_layout
10562
10563 \end_inset
10564
10565 ,
10566 \change_unchanged
10567  
10568 \begin_inset Flex Code
10569 status collapsed
10570
10571 \begin_layout Plain Layout
10572 literate
10573 \end_layout
10574
10575 \end_inset
10576
10577 ] Specifies what sort of output documents using this class will produce.
10578 \end_layout
10579
10580 \begin_layout Description
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 PackageOptions
10586 \end_layout
10587
10588 \end_inset
10589
10590  [
10591 \begin_inset Flex Code
10592 status collapsed
10593
10594 \begin_layout Plain Layout
10595 string
10596 \end_layout
10597
10598 \end_inset
10599
10600  
10601 \begin_inset Flex Code
10602 status collapsed
10603
10604 \begin_layout Plain Layout
10605 string
10606 \end_layout
10607
10608 \end_inset
10609
10610 ] Specifies options, given in the second string, for the package named by
10611  the first string.
10612  For example, 
10613 \begin_inset Quotes eld
10614 \end_inset
10615
10616
10617 \begin_inset Flex Code
10618 status collapsed
10619
10620 \begin_layout Plain Layout
10621 PackageOptions natbib square
10622 \end_layout
10623
10624 \end_inset
10625
10626
10627 \begin_inset Quotes erd
10628 \end_inset
10629
10630  will cause 
10631 \begin_inset Flex Code
10632 status collapsed
10633
10634 \begin_layout Plain Layout
10635 natbib
10636 \end_layout
10637
10638 \end_inset
10639
10640  to be loaded with the 
10641 \begin_inset Flex Code
10642 status collapsed
10643
10644 \begin_layout Plain Layout
10645 square
10646 \end_layout
10647
10648 \end_inset
10649
10650  option.
10651  (For \SpecialChar TeX
10652 perts, this causes \SpecialChar LyX
10653  to output: 
10654 \begin_inset Flex Code
10655 status collapsed
10656
10657 \begin_layout Plain Layout
10658
10659 \backslash
10660 PassOptionsToPackage{natbib}{square}
10661 \end_layout
10662
10663 \end_inset
10664
10665  prior to loading 
10666 \begin_inset Flex Code
10667 status collapsed
10668
10669 \begin_layout Plain Layout
10670 natbib
10671 \end_layout
10672
10673 \end_inset
10674
10675 .)
10676 \change_inserted -712698321 1565102364
10677
10678 \end_layout
10679
10680 \begin_layout Description
10681
10682 \change_inserted -712698321 1565102470
10683 \begin_inset Flex Code
10684 status collapsed
10685
10686 \begin_layout Plain Layout
10687
10688 \change_inserted -712698321 1565102365
10689 PageSize
10690 \change_unchanged
10691
10692 \end_layout
10693
10694 \end_inset
10695
10696  [
10697 \begin_inset Flex Code
10698 status collapsed
10699
10700 \begin_layout Plain Layout
10701
10702 \change_inserted -712698321 1565105222
10703
10704 \emph on
10705 custom
10706 \emph default
10707 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
10708  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
10709 \change_unchanged
10710
10711 \end_layout
10712
10713 \end_inset
10714
10715 ] The default page size.
10716  This is used by some converters.
10717 \change_unchanged
10718
10719 \end_layout
10720
10721 \begin_layout Description
10722 \begin_inset Flex Code
10723 status collapsed
10724
10725 \begin_layout Plain Layout
10726 PageStyle
10727 \end_layout
10728
10729 \end_inset
10730
10731  [
10732 \begin_inset Flex Code
10733 status collapsed
10734
10735 \begin_layout Plain Layout
10736
10737 \emph on
10738 plain
10739 \end_layout
10740
10741 \end_inset
10742
10743
10744 \begin_inset Flex Code
10745 status collapsed
10746
10747 \begin_layout Plain Layout
10748 empty
10749 \end_layout
10750
10751 \end_inset
10752
10753
10754 \begin_inset Flex Code
10755 status collapsed
10756
10757 \begin_layout Plain Layout
10758 headings
10759 \end_layout
10760
10761 \end_inset
10762
10763 ] The default pagestyle.
10764  Can be changed in the 
10765 \begin_inset Flex Noun
10766 status collapsed
10767
10768 \begin_layout Plain Layout
10769 Document\SpecialChar menuseparator
10770 Settings
10771 \end_layout
10772
10773 \end_inset
10774
10775  dialog.
10776 \end_layout
10777
10778 \begin_layout Description
10779 \begin_inset Flex Code
10780 status collapsed
10781
10782 \begin_layout Plain Layout
10783 Preamble
10784 \end_layout
10785
10786 \end_inset
10787
10788  Sets the preamble for the \SpecialChar LaTeX
10789  document.
10790  Note that this will completely override any prior 
10791 \begin_inset Flex Code
10792 status collapsed
10793
10794 \begin_layout Plain Layout
10795 Preamble
10796 \end_layout
10797
10798 \end_inset
10799
10800  or 
10801 \begin_inset Flex Code
10802 status collapsed
10803
10804 \begin_layout Plain Layout
10805 AddToPreamble
10806 \end_layout
10807
10808 \end_inset
10809
10810  declarations.
10811  (Use 
10812 \begin_inset Flex Code
10813 status collapsed
10814
10815 \begin_layout Plain Layout
10816 AddToPreamble
10817 \end_layout
10818
10819 \end_inset
10820
10821  if you just want to add material to the preamble.) Must end with 
10822 \begin_inset Quotes eld
10823 \end_inset
10824
10825
10826 \begin_inset Flex Code
10827 status collapsed
10828
10829 \begin_layout Plain Layout
10830 EndPreamble
10831 \end_layout
10832
10833 \end_inset
10834
10835
10836 \begin_inset Quotes erd
10837 \end_inset
10838
10839 .
10840 \end_layout
10841
10842 \begin_layout Description
10843 \begin_inset Flex Code
10844 status collapsed
10845
10846 \begin_layout Plain Layout
10847 Provides
10848 \end_layout
10849
10850 \end_inset
10851
10852  [
10853 \begin_inset Flex Code
10854 status collapsed
10855
10856 \begin_layout Plain Layout
10857 string
10858 \end_layout
10859
10860 \end_inset
10861
10862 ] [
10863 \begin_inset Flex Code
10864 status collapsed
10865
10866 \begin_layout Plain Layout
10867
10868 \emph on
10869 0
10870 \end_layout
10871
10872 \end_inset
10873
10874 ,
10875 \begin_inset space \thinspace{}
10876 \end_inset
10877
10878
10879 \begin_inset Flex Code
10880 status collapsed
10881
10882 \begin_layout Plain Layout
10883 1
10884 \end_layout
10885
10886 \end_inset
10887
10888 ] Whether the class already provides the feature 
10889 \begin_inset Flex Code
10890 status collapsed
10891
10892 \begin_layout Plain Layout
10893 string
10894 \end_layout
10895
10896 \end_inset
10897
10898 .
10899  A feature is in general the name of a package (e.
10900 \begin_inset space \thinspace{}
10901 \end_inset
10902
10903 g.
10904 \begin_inset space \space{}
10905 \end_inset
10906
10907
10908 \begin_inset Flex Code
10909 status collapsed
10910
10911 \begin_layout Plain Layout
10912 amsmath
10913 \end_layout
10914
10915 \end_inset
10916
10917  or 
10918 \begin_inset Flex Code
10919 status collapsed
10920
10921 \begin_layout Plain Layout
10922 makeidx
10923 \end_layout
10924
10925 \end_inset
10926
10927 ) or a macro (e.
10928 \begin_inset space \thinspace{}
10929 \end_inset
10930
10931 g.
10932 \begin_inset space \space{}
10933 \end_inset
10934
10935
10936 \begin_inset Flex Code
10937 status collapsed
10938
10939 \begin_layout Plain Layout
10940 url
10941 \end_layout
10942
10943 \end_inset
10944
10945  or 
10946 \begin_inset Flex Code
10947 status collapsed
10948
10949 \begin_layout Plain Layout
10950 boldsymbol
10951 \end_layout
10952
10953 \end_inset
10954
10955 ).
10956  See 
10957 \begin_inset CommandInset ref
10958 LatexCommand ref
10959 reference "chap:List-of-functions"
10960
10961 \end_inset
10962
10963  for the list of features.
10964 \end_layout
10965
10966 \begin_layout Description
10967 \begin_inset Flex Code
10968 status collapsed
10969
10970 \begin_layout Plain Layout
10971 ProvidesModule
10972 \end_layout
10973
10974 \end_inset
10975
10976  [
10977 \begin_inset Flex Code
10978 status collapsed
10979
10980 \begin_layout Plain Layout
10981 string
10982 \end_layout
10983
10984 \end_inset
10985
10986 ] Indicates that this layout provides the functionality of the module mentioned,
10987  which should be specified by the filename without the 
10988 \begin_inset Flex Code
10989 status collapsed
10990
10991 \begin_layout Plain Layout
10992 .module
10993 \end_layout
10994
10995 \end_inset
10996
10997  extension.
10998  This will typically be used if the layout includes the module directly,
10999  rather than using the 
11000 \begin_inset Flex Code
11001 status collapsed
11002
11003 \begin_layout Plain Layout
11004 DefaultModule
11005 \end_layout
11006
11007 \end_inset
11008
11009  tag to indicate that it ought to be used.
11010  It could also be used in a module that provided an alternate implementation
11011  of the same functionality.
11012 \end_layout
11013
11014 \begin_layout Description
11015 \begin_inset Flex Code
11016 status collapsed
11017
11018 \begin_layout Plain Layout
11019 ProvideStyle
11020 \end_layout
11021
11022 \end_inset
11023
11024  [
11025 \begin_inset Flex Code
11026 status collapsed
11027
11028 \begin_layout Plain Layout
11029 <style>
11030 \end_layout
11031
11032 \end_inset
11033
11034 ] Creates a new paragraph style if it does not already exist.
11035  If the style does exist, this section is ignored.
11036  Must end with 
11037 \begin_inset Quotes eld
11038 \end_inset
11039
11040
11041 \begin_inset Flex Code
11042 status collapsed
11043
11044 \begin_layout Plain Layout
11045 End
11046 \end_layout
11047
11048 \end_inset
11049
11050
11051 \begin_inset Quotes erd
11052 \end_inset
11053
11054 .
11055 \end_layout
11056
11057 \begin_layout Description
11058 \begin_inset Flex Code
11059 status collapsed
11060
11061 \begin_layout Plain Layout
11062 Requires
11063 \end_layout
11064
11065 \end_inset
11066
11067  [
11068 \begin_inset Flex Code
11069 status collapsed
11070
11071 \begin_layout Plain Layout
11072 string
11073 \end_layout
11074
11075 \end_inset
11076
11077 ] Whether the class requires the feature 
11078 \begin_inset Flex Code
11079 status collapsed
11080
11081 \begin_layout Plain Layout
11082 string
11083 \end_layout
11084
11085 \end_inset
11086
11087 .
11088  Multiple features must be separated by commas.
11089  Note that you can only request supported features.
11090  (See 
11091 \begin_inset CommandInset ref
11092 LatexCommand ref
11093 reference "chap:List-of-functions"
11094
11095 \end_inset
11096
11097  for the list of features.).
11098  If you require a package with specific options, you can additionally use
11099  
11100 \begin_inset Flex Code
11101 status collapsed
11102
11103 \begin_layout Plain Layout
11104 PackageOptions
11105 \end_layout
11106
11107 \end_inset
11108
11109 .
11110 \end_layout
11111
11112 \begin_layout Description
11113 \begin_inset Flex Code
11114 status collapsed
11115
11116 \begin_layout Plain Layout
11117 RightMargin
11118 \end_layout
11119
11120 \end_inset
11121
11122  [
11123 \begin_inset Flex Code
11124 status collapsed
11125
11126 \begin_layout Plain Layout
11127 string
11128 \end_layout
11129
11130 \end_inset
11131
11132 ] A string that indicates the width of the right margin on the screen, for
11133  example, 
11134 \begin_inset Quotes eld
11135 \end_inset
11136
11137
11138 \begin_inset Flex Code
11139 status collapsed
11140
11141 \begin_layout Plain Layout
11142 MMMMM
11143 \end_layout
11144
11145 \end_inset
11146
11147
11148 \begin_inset Quotes erd
11149 \end_inset
11150
11151 .
11152 \end_layout
11153
11154 \begin_layout Description
11155 \begin_inset Flex Code
11156 status collapsed
11157
11158 \begin_layout Plain Layout
11159 SecNumDepth
11160 \end_layout
11161
11162 \end_inset
11163
11164  [
11165 \begin_inset Flex Code
11166 status collapsed
11167
11168 \begin_layout Plain Layout
11169 int=3
11170 \end_layout
11171
11172 \end_inset
11173
11174 ] Sets which divisions get numbered.
11175  Corresponds to the
11176 \begin_inset Newline newline
11177 \end_inset
11178
11179
11180 \begin_inset Flex Code
11181 status collapsed
11182
11183 \begin_layout Plain Layout
11184 secnumdepth
11185 \end_layout
11186
11187 \end_inset
11188
11189  counter in \SpecialChar LaTeX
11190 .
11191 \end_layout
11192
11193 \begin_layout Description
11194 \begin_inset Flex Code
11195 status collapsed
11196
11197 \begin_layout Plain Layout
11198 Sides
11199 \end_layout
11200
11201 \end_inset
11202
11203  [
11204 \begin_inset Flex Code
11205 status collapsed
11206
11207 \begin_layout Plain Layout
11208
11209 \emph on
11210 1
11211 \end_layout
11212
11213 \end_inset
11214
11215 ,
11216 \begin_inset space \thinspace{}
11217 \end_inset
11218
11219
11220 \begin_inset Flex Code
11221 status collapsed
11222
11223 \begin_layout Plain Layout
11224 2
11225 \end_layout
11226
11227 \end_inset
11228
11229 ] Whether the class-default should be printing on one or both sides of the
11230  paper.
11231  Can be changed in the 
11232 \begin_inset Flex Noun
11233 status collapsed
11234
11235 \begin_layout Plain Layout
11236 Document\SpecialChar menuseparator
11237 Settings
11238 \end_layout
11239
11240 \end_inset
11241
11242  dialog.
11243 \end_layout
11244
11245 \begin_layout Description
11246 \begin_inset Flex Code
11247 status collapsed
11248
11249 \begin_layout Plain Layout
11250 Style
11251 \end_layout
11252
11253 \end_inset
11254
11255  [
11256 \begin_inset Flex Code
11257 status collapsed
11258
11259 \begin_layout Plain Layout
11260 <name>
11261 \end_layout
11262
11263 \end_inset
11264
11265 ] This sequence defines a paragraph style.
11266  If the style does not yet exist, it is created; if it does exist, its parameter
11267 s are modified.
11268  Must end with 
11269 \begin_inset Quotes eld
11270 \end_inset
11271
11272
11273 \begin_inset Flex Code
11274 status collapsed
11275
11276 \begin_layout Plain Layout
11277 End
11278 \end_layout
11279
11280 \end_inset
11281
11282
11283 \begin_inset Quotes erd
11284 \end_inset
11285
11286 .
11287 \begin_inset Newline newline
11288 \end_inset
11289
11290 See 
11291 \begin_inset CommandInset ref
11292 LatexCommand ref
11293 reference "subsec:Paragraph-Styles"
11294
11295 \end_inset
11296
11297  for details on paragraph styles.
11298 \change_inserted -712698321 1553617804
11299
11300 \end_layout
11301
11302 \begin_layout Description
11303
11304 \change_inserted -712698321 1553617862
11305 \begin_inset Flex Code
11306 status collapsed
11307
11308 \begin_layout Plain Layout
11309
11310 \change_inserted -712698321 1553617809
11311 TableStyle
11312 \change_unchanged
11313
11314 \end_layout
11315
11316 \end_inset
11317
11318  [
11319 \begin_inset Flex Code
11320 status collapsed
11321
11322 \begin_layout Plain Layout
11323
11324 \change_inserted -712698321 1553617805
11325 <name>
11326 \change_unchanged
11327
11328 \end_layout
11329
11330 \end_inset
11331
11332 ] defines the default table style that is used when inserting a table.
11333  The following styles are available:
11334 \end_layout
11335
11336 \begin_deeper
11337 \begin_layout Itemize
11338
11339 \change_inserted -712698321 1554308039
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344
11345 \change_inserted -712698321 1554307928
11346 Formal_with_Footline
11347 \change_unchanged
11348
11349 \end_layout
11350
11351 \end_inset
11352
11353 : formal (
11354 \begin_inset Quotes eld
11355 \end_inset
11356
11357 booktabs
11358 \begin_inset Quotes erd
11359 \end_inset
11360
11361 ) style with horizontal lines only, using a bold top and bottom line, the
11362  first and last row are additionally separated from the table body with
11363  a thin middle line.
11364 \end_layout
11365
11366 \begin_layout Itemize
11367
11368 \change_inserted -712698321 1554308087
11369 \begin_inset Flex Code
11370 status collapsed
11371
11372 \begin_layout Plain Layout
11373
11374 \change_inserted -712698321 1554308042
11375 Formal_without_Footline
11376 \change_unchanged
11377
11378 \end_layout
11379
11380 \end_inset
11381
11382 : same as the above, but the last row is not separated with a middle line
11383  from the body.
11384 \end_layout
11385
11386 \begin_layout Itemize
11387
11388 \change_inserted -712698321 1553618031
11389 \begin_inset Flex Code
11390 status collapsed
11391
11392 \begin_layout Plain Layout
11393
11394 \change_inserted -712698321 1553618006
11395 Simple_Grid
11396 \change_unchanged
11397
11398 \end_layout
11399
11400 \end_inset
11401
11402 : Simple table lines.
11403 \end_layout
11404
11405 \begin_layout Itemize
11406
11407 \change_inserted -712698321 1553618309
11408 \begin_inset Flex Code
11409 status collapsed
11410
11411 \begin_layout Plain Layout
11412
11413 \change_inserted -712698321 1553618031
11414 Grid_with_Head
11415 \change_unchanged
11416
11417 \end_layout
11418
11419 \end_inset
11420
11421 : Like 
11422 \begin_inset Flex Code
11423 status collapsed
11424
11425 \begin_layout Plain Layout
11426
11427 \change_inserted -712698321 1553618043
11428 Simple_Grid
11429 \change_unchanged
11430
11431 \end_layout
11432
11433 \end_inset
11434
11435 , but with the header column offset with a second horizontal line.
11436  This is also the default style of \SpecialChar LyX
11437 .
11438 \end_layout
11439
11440 \begin_layout Itemize
11441
11442 \change_inserted -712698321 1553618280
11443 \begin_inset Flex Code
11444 status collapsed
11445
11446 \begin_layout Plain Layout
11447
11448 \change_inserted -712698321 1553618261
11449 No_Borders
11450 \change_unchanged
11451
11452 \end_layout
11453
11454 \end_inset
11455
11456 : Table without lines.
11457 \change_unchanged
11458
11459 \end_layout
11460
11461 \end_deeper
11462 \begin_layout Description
11463 \begin_inset Flex Code
11464 status collapsed
11465
11466 \begin_layout Plain Layout
11467 TitleLatexName
11468 \end_layout
11469
11470 \end_inset
11471
11472  [
11473 \begin_inset Flex Code
11474 status collapsed
11475
11476 \begin_layout Plain Layout
11477 string="maketitle"
11478 \end_layout
11479
11480 \end_inset
11481
11482 ] The name of the command or environment to be used with 
11483 \begin_inset Flex Code
11484 status collapsed
11485
11486 \begin_layout Plain Layout
11487 TitleLatexType
11488 \end_layout
11489
11490 \end_inset
11491
11492 .
11493 \end_layout
11494
11495 \begin_layout Description
11496 \begin_inset Flex Code
11497 status collapsed
11498
11499 \begin_layout Plain Layout
11500 TitleLatexType
11501 \end_layout
11502
11503 \end_inset
11504
11505  [
11506 \begin_inset Flex Code
11507 status collapsed
11508
11509 \begin_layout Plain Layout
11510
11511 \emph on
11512 CommandAfter
11513 \end_layout
11514
11515 \end_inset
11516
11517
11518 \begin_inset Flex Code
11519 status collapsed
11520
11521 \begin_layout Plain Layout
11522 Environment
11523 \end_layout
11524
11525 \end_inset
11526
11527 ] Indicates what kind of markup is used to define the title of a document.
11528  
11529 \begin_inset Flex Code
11530 status collapsed
11531
11532 \begin_layout Plain Layout
11533 CommandAfter
11534 \end_layout
11535
11536 \end_inset
11537
11538  means that the macro with name 
11539 \begin_inset Flex Code
11540 status collapsed
11541
11542 \begin_layout Plain Layout
11543 TitleLatexName
11544 \end_layout
11545
11546 \end_inset
11547
11548  will be inserted after the last layout which has 
11549 \begin_inset Quotes eld
11550 \end_inset
11551
11552
11553 \begin_inset Flex Code
11554 status collapsed
11555
11556 \begin_layout Plain Layout
11557 InTitle
11558 \begin_inset space ~
11559 \end_inset
11560
11561 1
11562 \end_layout
11563
11564 \end_inset
11565
11566
11567 \begin_inset Quotes erd
11568 \end_inset
11569
11570 .
11571  
11572 \begin_inset Flex Code
11573 status collapsed
11574
11575 \begin_layout Plain Layout
11576 Environment
11577 \end_layout
11578
11579 \end_inset
11580
11581  corresponds to the case where all layouts which have 
11582 \begin_inset Quotes eld
11583 \end_inset
11584
11585
11586 \begin_inset Flex Code
11587 status collapsed
11588
11589 \begin_layout Plain Layout
11590 InTitle
11591 \begin_inset space ~
11592 \end_inset
11593
11594 1
11595 \end_layout
11596
11597 \end_inset
11598
11599
11600 \begin_inset Quotes erd
11601 \end_inset
11602
11603  should be enclosed into the 
11604 \begin_inset Flex Code
11605 status collapsed
11606
11607 \begin_layout Plain Layout
11608 TitleLatexName
11609 \end_layout
11610
11611 \end_inset
11612
11613  environment.
11614 \end_layout
11615
11616 \begin_layout Description
11617 \begin_inset Flex Code
11618 status collapsed
11619
11620 \begin_layout Plain Layout
11621 TocDepth
11622 \end_layout
11623
11624 \end_inset
11625
11626  [
11627 \begin_inset Flex Code
11628 status collapsed
11629
11630 \begin_layout Plain Layout
11631 int=3
11632 \end_layout
11633
11634 \end_inset
11635
11636 ] Sets which divisions are included in the table of contents.
11637  Corresponds to the 
11638 \begin_inset Flex Code
11639 status collapsed
11640
11641 \begin_layout Plain Layout
11642 tocdepth
11643 \end_layout
11644
11645 \end_inset
11646
11647  counter in \SpecialChar LaTeX
11648 .
11649 \end_layout
11650
11651 \begin_layout Subsection
11652 \begin_inset Flex Code
11653 status collapsed
11654
11655 \begin_layout Plain Layout
11656 ClassOptions
11657 \end_layout
11658
11659 \end_inset
11660
11661  section
11662 \begin_inset CommandInset label
11663 LatexCommand label
11664 name "subsec:ClassOptions"
11665
11666 \end_inset
11667
11668
11669 \end_layout
11670
11671 \begin_layout Standard
11672 The 
11673 \begin_inset Flex Code
11674 status collapsed
11675
11676 \begin_layout Plain Layout
11677 ClassOptions
11678 \end_layout
11679
11680 \end_inset
11681
11682  section can contain the following entries:
11683 \end_layout
11684
11685 \begin_layout Description
11686 \begin_inset Flex Code
11687 status collapsed
11688
11689 \begin_layout Plain Layout
11690 FontSize
11691 \end_layout
11692
11693 \end_inset
11694
11695  [
11696 \begin_inset Flex Code
11697 status collapsed
11698
11699 \begin_layout Plain Layout
11700 string="10|11|12"
11701 \end_layout
11702
11703 \end_inset
11704
11705 ] The list of available font sizes for the document's main font, separated
11706  by 
11707 \begin_inset Quotes eld
11708 \end_inset
11709
11710
11711 \begin_inset Flex Code
11712 status collapsed
11713
11714 \begin_layout Plain Layout
11715 |
11716 \end_layout
11717
11718 \end_inset
11719
11720
11721 \begin_inset Quotes erd
11722 \end_inset
11723
11724 .
11725
11726 \change_inserted -712698321 1565110196
11727  Any number is possible.
11728 \end_layout
11729
11730 \begin_layout Description
11731
11732 \change_inserted -712698321 1565110259
11733 \begin_inset Flex Code
11734 status collapsed
11735
11736 \begin_layout Plain Layout
11737
11738 \change_inserted -712698321 1565110199
11739 FontSizeFormat
11740 \change_unchanged
11741
11742 \end_layout
11743
11744 \end_inset
11745
11746  [
11747 \begin_inset Flex Code
11748 status collapsed
11749
11750 \begin_layout Plain Layout
11751
11752 \change_inserted -712698321 1565110196
11753 string
11754 \change_unchanged
11755
11756 \end_layout
11757
11758 \end_inset
11759
11760 ] The format for the font size option.
11761  Default: 
11762 \begin_inset Flex Code
11763 status collapsed
11764
11765 \begin_layout Plain Layout
11766
11767 \change_inserted -712698321 1565110238
11768 $$spt
11769 \change_unchanged
11770
11771 \end_layout
11772
11773 \end_inset
11774
11775 .
11776  
11777 \begin_inset Flex Code
11778 status collapsed
11779
11780 \begin_layout Plain Layout
11781
11782 \change_inserted -712698321 1565110248
11783 $$s
11784 \change_unchanged
11785
11786 \end_layout
11787
11788 \end_inset
11789
11790  is a placeholder for the font size.
11791 \change_unchanged
11792
11793 \end_layout
11794
11795 \begin_layout Description
11796
11797 \change_deleted 5863208 1594239483
11798 \begin_inset Flex Code
11799 status collapsed
11800
11801 \begin_layout Plain Layout
11802 Header
11803 \end_layout
11804
11805 \end_inset
11806
11807  Used to set the DTD line with XML-based output classes.
11808  E.
11809 \begin_inset space \thinspace{}
11810 \end_inset
11811
11812 g.: PUBLIC 
11813 \begin_inset Quotes eld
11814 \end_inset
11815
11816 -//OASIS//DTD DocBook V4.2//EN
11817 \begin_inset Quotes erd
11818 \end_inset
11819
11820 .
11821 \change_inserted -712698321 1565101761
11822
11823 \end_layout
11824
11825 \begin_layout Description
11826
11827 \change_inserted -712698321 1565180598
11828 \begin_inset Flex Code
11829 status collapsed
11830
11831 \begin_layout Plain Layout
11832
11833 \change_inserted -712698321 1565101918
11834 PageSize
11835 \change_unchanged
11836
11837 \end_layout
11838
11839 \end_inset
11840
11841  [
11842 \begin_inset Flex Code
11843 status collapsed
11844
11845 \begin_layout Plain Layout
11846
11847 \change_inserted -712698321 1565105399
11848 string="letter|\SpecialChar allowbreak
11849 legal|\SpecialChar allowbreak
11850 executive|\SpecialChar allowbreak
11851 a0|\SpecialChar allowbreak
11852 a1|\SpecialChar allowbreak
11853 a2|\SpecialChar allowbreak
11854 a3|\SpecialChar allowbreak
11855 a4|\SpecialChar allowbreak
11856 a5|\SpecialChar allowbreak
11857 a6|\SpecialChar allowbreak
11858 b0|\SpecialChar allowbreak
11859 b1|\SpecialChar allowbreak
11860 b2|\SpecialChar allowbreak
11861 b3|\SpecialChar allowbreak
11862 b4|\SpecialChar allowbreak
11863 b5|\SpecialChar allowbreak
11864 b6|\SpecialChar allowbreak
11865 c0|\SpecialChar allowbreak
11866 c1|\SpecialChar allowbreak
11867 c
11868 2|\SpecialChar allowbreak
11869 c3|\SpecialChar allowbreak
11870 c4|\SpecialChar allowbreak
11871 c5|\SpecialChar allowbreak
11872 c6|\SpecialChar allowbreak
11873 b0j|\SpecialChar allowbreak
11874 b1j|\SpecialChar allowbreak
11875 b2j|\SpecialChar allowbreak
11876 b3j|\SpecialChar allowbreak
11877 b4j|\SpecialChar allowbreak
11878 b5j|\SpecialChar allowbreak
11879 b6j"
11880 \change_unchanged
11881
11882 \end_layout
11883
11884 \end_inset
11885
11886 ] The list of available page sizes, separated by 
11887 \begin_inset Quotes eld
11888 \end_inset
11889
11890
11891 \begin_inset Flex Code
11892 status collapsed
11893
11894 \begin_layout Plain Layout
11895
11896 \change_inserted -712698321 1565101779
11897 |
11898 \change_unchanged
11899
11900 \end_layout
11901
11902 \end_inset
11903
11904
11905 \begin_inset Quotes erd
11906 \end_inset
11907
11908 .
11909  Currently, only the listed sizes are supported.
11910  Other sizes might be entered as custom class option.
11911 \end_layout
11912
11913 \begin_layout Description
11914
11915 \change_inserted -712698321 1565180623
11916 \begin_inset Flex Code
11917 status collapsed
11918
11919 \begin_layout Plain Layout
11920
11921 \change_inserted -712698321 1565180605
11922 PageSizeFormat
11923 \change_unchanged
11924
11925 \end_layout
11926
11927 \end_inset
11928
11929  [
11930 \begin_inset Flex Code
11931 status collapsed
11932
11933 \begin_layout Plain Layout
11934
11935 \change_inserted -712698321 1565180601
11936 string
11937 \change_unchanged
11938
11939 \end_layout
11940
11941 \end_inset
11942
11943 ] The format for the page size option.
11944  Default: 
11945 \begin_inset Flex Code
11946 status collapsed
11947
11948 \begin_layout Plain Layout
11949
11950 \change_inserted -712698321 1565180618
11951 $$spaper
11952 \change_unchanged
11953
11954 \end_layout
11955
11956 \end_inset
11957
11958 .
11959  
11960 \begin_inset Flex Code
11961 status collapsed
11962
11963 \begin_layout Plain Layout
11964
11965 \change_inserted -712698321 1565180601
11966 $$s
11967 \change_unchanged
11968
11969 \end_layout
11970
11971 \end_inset
11972
11973  is a placeholder for the paper size.
11974 \change_unchanged
11975
11976 \end_layout
11977
11978 \begin_layout Description
11979 \begin_inset Flex Code
11980 status collapsed
11981
11982 \begin_layout Plain Layout
11983 PageStyle
11984 \end_layout
11985
11986 \end_inset
11987
11988  [
11989 \begin_inset Flex Code
11990 status collapsed
11991
11992 \begin_layout Plain Layout
11993 string="empty|plain|headings|fancy"
11994 \end_layout
11995
11996 \end_inset
11997
11998 ] The list of available page sty\SpecialChar softhyphen
11999 les, separated by 
12000 \begin_inset Quotes eld
12001 \end_inset
12002
12003
12004 \begin_inset Flex Code
12005 status collapsed
12006
12007 \begin_layout Plain Layout
12008 |
12009 \end_layout
12010
12011 \end_inset
12012
12013
12014 \begin_inset Quotes erd
12015 \end_inset
12016
12017 .
12018 \end_layout
12019
12020 \begin_layout Description
12021 \begin_inset Flex Code
12022 status collapsed
12023
12024 \begin_layout Plain Layout
12025 Other
12026 \end_layout
12027
12028 \end_inset
12029
12030  [
12031 \begin_inset Flex Code
12032 status collapsed
12033
12034 \begin_layout Plain Layout
12035 string=""
12036 \end_layout
12037
12038 \end_inset
12039
12040 ] Some document class options, separated by a comma, that will be added
12041  to the optional part of the 
12042 \begin_inset Flex Code
12043 status collapsed
12044
12045 \begin_layout Plain Layout
12046
12047 \backslash
12048 documentclass
12049 \end_layout
12050
12051 \end_inset
12052
12053  command.
12054 \end_layout
12055
12056 \begin_layout Standard
12057 The 
12058 \begin_inset Flex Code
12059 status collapsed
12060
12061 \begin_layout Plain Layout
12062 ClassOptions
12063 \end_layout
12064
12065 \end_inset
12066
12067  section must end with 
12068 \begin_inset Quotes eld
12069 \end_inset
12070
12071
12072 \begin_inset Flex Code
12073 status collapsed
12074
12075 \begin_layout Plain Layout
12076 End
12077 \end_layout
12078
12079 \end_inset
12080
12081
12082 \begin_inset Quotes erd
12083 \end_inset
12084
12085 .
12086 \end_layout
12087
12088 \begin_layout Subsection
12089 Paragraph styles
12090 \begin_inset CommandInset label
12091 LatexCommand label
12092 name "subsec:Paragraph-Styles"
12093
12094 \end_inset
12095
12096
12097 \end_layout
12098
12099 \begin_layout Standard
12100 A paragraph style description looks like this:
12101 \begin_inset Foot
12102 status collapsed
12103
12104 \begin_layout Plain Layout
12105 Note that this will either define a new style or modify an existing one.
12106 \end_layout
12107
12108 \end_inset
12109
12110
12111 \end_layout
12112
12113 \begin_layout LyX-Code
12114 Style 
12115 \family roman
12116 \emph on
12117 name
12118 \end_layout
12119
12120 \begin_layout LyX-Code
12121  ...
12122 \end_layout
12123
12124 \begin_layout LyX-Code
12125 End
12126 \end_layout
12127
12128 \begin_layout Standard
12129 where the following commands are allowed:
12130 \end_layout
12131
12132 \begin_layout Description
12133 \begin_inset Flex Code
12134 status collapsed
12135
12136 \begin_layout Plain Layout
12137 AddToToc
12138 \end_layout
12139
12140 \end_inset
12141
12142  [
12143 \begin_inset Flex Code
12144 status collapsed
12145
12146 \begin_layout Plain Layout
12147 string
12148 \end_layout
12149
12150 \end_inset
12151
12152 =""] This paragraph will appear in the table of contents of the given type.
12153  An empty string disables.
12154  See also the OutlinerName and the IsTocCaption commands.
12155  Default: disabled.
12156 \end_layout
12157
12158 \begin_layout Description
12159 \begin_inset Flex Code
12160 status collapsed
12161
12162 \begin_layout Plain Layout
12163 Align
12164 \end_layout
12165
12166 \end_inset
12167
12168  [
12169 \begin_inset Flex Code
12170 status collapsed
12171
12172 \begin_layout Plain Layout
12173
12174 \emph on
12175 block
12176 \emph default
12177 , left, right, center
12178 \end_layout
12179
12180 \end_inset
12181
12182 ] Paragraph alignment.
12183 \end_layout
12184
12185 \begin_layout Description
12186 \begin_inset Flex Code
12187 status collapsed
12188
12189 \begin_layout Plain Layout
12190 AlignPossible
12191 \end_layout
12192
12193 \end_inset
12194
12195  [
12196 \begin_inset Flex Code
12197 status collapsed
12198
12199 \begin_layout Plain Layout
12200
12201 \emph on
12202 block
12203 \emph default
12204 , left, right, center
12205 \end_layout
12206
12207 \end_inset
12208
12209 ] A comma separated list of permitted alignments.
12210  (Some \SpecialChar LaTeX
12211  styles prohibit certain alignments, since those wouldn't make sense.
12212  For example a right-aligned or centered enumeration isn't possible.)
12213 \end_layout
12214
12215 \begin_layout Description
12216 \begin_inset Flex Code
12217 status collapsed
12218
12219 \begin_layout Plain Layout
12220 Argument
12221 \end_layout
12222
12223 \end_inset
12224
12225  [
12226 \begin_inset Flex Code
12227 status collapsed
12228
12229 \begin_layout Plain Layout
12230 int
12231 \end_layout
12232
12233 \end_inset
12234
12235 ] Defines argument number <int> of a command\SpecialChar breakableslash
12236 environment associated with
12237  the current style.
12238  This is useful for things like section headings, and only makes sense with
12239  \SpecialChar LaTeX
12240 .
12241  Every (optional or required) argument of a command or environment – except
12242  for the required argument that is associated with the content of the paragraph
12243  itself – has a separate definition, where the number specifies the order
12244  of the arguments.
12245  The definition must end with 
12246 \begin_inset Flex Code
12247 status collapsed
12248
12249 \begin_layout Plain Layout
12250 EndArgument
12251 \end_layout
12252
12253 \end_inset
12254
12255 .
12256  So a command with two optional arguments has:
12257 \end_layout
12258
12259 \begin_deeper
12260 \begin_layout Quote
12261
12262 \family typewriter
12263 Argument 1
12264 \end_layout
12265
12266 \begin_layout Quote
12267
12268 \family typewriter
12269 ...
12270 \end_layout
12271
12272 \begin_layout Quote
12273
12274 \family typewriter
12275 EndArgument
12276 \end_layout
12277
12278 \begin_layout Quote
12279
12280 \family typewriter
12281 Argument 2
12282 \end_layout
12283
12284 \begin_layout Quote
12285
12286 \family typewriter
12287 ...
12288 \end_layout
12289
12290 \begin_layout Quote
12291
12292 \family typewriter
12293 EndArgument
12294 \end_layout
12295
12296 \begin_layout Standard
12297 Inside the 
12298 \begin_inset Flex Code
12299 status collapsed
12300
12301 \begin_layout Plain Layout
12302 Argument
12303 \end_layout
12304
12305 \end_inset
12306
12307  definition, the following specifications are possible:
12308 \end_layout
12309
12310 \begin_layout Itemize
12311 \begin_inset Flex Code
12312 status collapsed
12313
12314 \begin_layout Plain Layout
12315 LabelString
12316 \end_layout
12317
12318 \end_inset
12319
12320  
12321 \begin_inset Flex Code
12322 status collapsed
12323
12324 \begin_layout Plain Layout
12325 [string]
12326 \end_layout
12327
12328 \end_inset
12329
12330  The string that will appear both in the menu (to insert this argument)
12331  and on the argument inset button (unless you also specify a separate 
12332 \begin_inset Flex Code
12333 status collapsed
12334
12335 \begin_layout Plain Layout
12336 MenuString
12337 \end_layout
12338
12339 \end_inset
12340
12341 ).
12342  For the menu, you can define an accelerator by appending the respective
12343  character to the string, divided by 
12344 \begin_inset Quotes eld
12345 \end_inset
12346
12347 |
12348 \begin_inset Quotes erd
12349 \end_inset
12350
12351  (e.
12352 \begin_inset space \thinspace{}
12353 \end_inset
12354
12355 g.
12356 \begin_inset space \space{}
12357 \end_inset
12358
12359
12360 \begin_inset Quotes eld
12361 \end_inset
12362
12363
12364 \begin_inset Flex Code
12365 status collapsed
12366
12367 \begin_layout Plain Layout
12368 Short Title|S
12369 \end_layout
12370
12371 \end_inset
12372
12373
12374 \begin_inset Quotes erd
12375 \end_inset
12376
12377 ).
12378 \end_layout
12379
12380 \begin_layout Itemize
12381 \begin_inset Flex Code
12382 status collapsed
12383
12384 \begin_layout Plain Layout
12385 MenuString
12386 \end_layout
12387
12388 \end_inset
12389
12390  
12391 \begin_inset Flex Code
12392 status collapsed
12393
12394 \begin_layout Plain Layout
12395 [string]
12396 \end_layout
12397
12398 \end_inset
12399
12400  A separate string for the menu.
12401  You can define an accelerator by appending the respective character to
12402  the string, divided by 
12403 \begin_inset Quotes eld
12404 \end_inset
12405
12406 |
12407 \begin_inset Quotes erd
12408 \end_inset
12409
12410  (e.
12411 \begin_inset space \thinspace{}
12412 \end_inset
12413
12414 g.
12415 \begin_inset space \space{}
12416 \end_inset
12417
12418
12419 \begin_inset Quotes eld
12420 \end_inset
12421
12422
12423 \begin_inset Flex Code
12424 status collapsed
12425
12426 \begin_layout Plain Layout
12427 Short Title|S
12428 \end_layout
12429
12430 \end_inset
12431
12432
12433 \begin_inset Quotes erd
12434 \end_inset
12435
12436 ).
12437  This specification is optional.
12438  If it is not given the 
12439 \begin_inset Flex Code
12440 status collapsed
12441
12442 \begin_layout Plain Layout
12443 LabelString
12444 \end_layout
12445
12446 \end_inset
12447
12448  will be used instead for the menu.
12449 \end_layout
12450
12451 \begin_layout Itemize
12452 \begin_inset Flex Code
12453 status collapsed
12454
12455 \begin_layout Plain Layout
12456 Tooltip
12457 \end_layout
12458
12459 \end_inset
12460
12461  
12462 \begin_inset Flex Code
12463 status collapsed
12464
12465 \begin_layout Plain Layout
12466 [string]
12467 \end_layout
12468
12469 \end_inset
12470
12471  A longer explanatory text that appears in the tooltip when hovering over
12472  the argument inset.
12473 \end_layout
12474
12475 \begin_layout Itemize
12476 \begin_inset Flex Code
12477 status collapsed
12478
12479 \begin_layout Plain Layout
12480 Mandatory
12481 \end_layout
12482
12483 \end_inset
12484
12485  [
12486 \begin_inset Flex Code
12487 status collapsed
12488
12489 \begin_layout Plain Layout
12490
12491 \emph on
12492 0
12493 \end_layout
12494
12495 \end_inset
12496
12497 ,
12498 \begin_inset space \thinspace{}
12499 \end_inset
12500
12501
12502 \begin_inset Flex Code
12503 status collapsed
12504
12505 \begin_layout Plain Layout
12506 1
12507 \end_layout
12508
12509 \end_inset
12510
12511 ] Declare if this is a mandatory (1) or an optional (0) argument.
12512  Mandatory arguments will be output empty if not given, while optional arguments
12513  will not be output at all.
12514  By default, mandatory arguments are delimited by 
12515 \begin_inset Flex Code
12516 status collapsed
12517
12518 \begin_layout Plain Layout
12519 {...}
12520 \end_layout
12521
12522 \end_inset
12523
12524 , while optional arguments are delimited by 
12525 \begin_inset Flex Code
12526 status collapsed
12527
12528 \begin_layout Plain Layout
12529 [...]
12530 \end_layout
12531
12532 \end_inset
12533
12534
12535 \change_inserted -712698321 1555579782
12536
12537 \end_layout
12538
12539 \begin_layout Itemize
12540
12541 \change_inserted -712698321 1555579780
12542 \begin_inset Flex Code
12543 status collapsed
12544
12545 \begin_layout Plain Layout
12546
12547 \change_inserted -712698321 1555579780
12548 NewlineCmd
12549 \change_unchanged
12550
12551 \end_layout
12552
12553 \end_inset
12554
12555  
12556 \begin_inset Flex Code
12557 status collapsed
12558
12559 \begin_layout Plain Layout
12560
12561 \change_inserted -712698321 1555579780
12562 [string]
12563 \change_unchanged
12564
12565 \end_layout
12566
12567 \end_inset
12568
12569  Option to define a different command (from the default 
12570 \begin_inset Flex Code
12571 status collapsed
12572
12573 \begin_layout Plain Layout
12574
12575 \change_inserted -712698321 1555579780
12576
12577 \backslash
12578
12579 \backslash
12580
12581 \change_unchanged
12582
12583 \end_layout
12584
12585 \end_inset
12586
12587 ) to be used for line breaks.
12588  The initial backslash must not be specified.
12589 \change_unchanged
12590
12591 \end_layout
12592
12593 \begin_layout Itemize
12594 \begin_inset Flex Code
12595 status collapsed
12596
12597 \begin_layout Plain Layout
12598 Requires
12599 \end_layout
12600
12601 \end_inset
12602
12603  
12604 \begin_inset Flex Code
12605 status collapsed
12606
12607 \begin_layout Plain Layout
12608 [int=0]
12609 \end_layout
12610
12611 \end_inset
12612
12613  defines another argument (by its number) which this argument requires to
12614  be output if it is itself output.
12615  E.
12616 \begin_inset space \thinspace{}
12617 \end_inset
12618
12619 g., in \SpecialChar LaTeX
12620  commands, optional arguments often require previous optional arguments
12621  to be output (at least empty), as in 
12622 \begin_inset Flex Code
12623 status collapsed
12624
12625 \begin_layout Plain Layout
12626
12627 \backslash
12628 command[][argument]{text}
12629 \end_layout
12630
12631 \end_inset
12632
12633 .
12634  This can be achieved by the statement 
12635 \begin_inset Flex Code
12636 status collapsed
12637
12638 \begin_layout Plain Layout
12639 Requires 1
12640 \end_layout
12641
12642 \end_inset
12643
12644  within 
12645 \begin_inset Flex Code
12646 status collapsed
12647
12648 \begin_layout Plain Layout
12649 Argument 2
12650 \end_layout
12651
12652 \end_inset
12653
12654 .
12655 \end_layout
12656
12657 \begin_layout Itemize
12658 \begin_inset Flex Code
12659 status collapsed
12660
12661 \begin_layout Plain Layout
12662 LeftDelim
12663 \end_layout
12664
12665 \end_inset
12666
12667  
12668 \begin_inset Flex Code
12669 status collapsed
12670
12671 \begin_layout Plain Layout
12672 [string]
12673 \end_layout
12674
12675 \end_inset
12676
12677  defines a custom left delimiter (instead of 
12678 \begin_inset Flex Code
12679 status collapsed
12680
12681 \begin_layout Plain Layout
12682 {
12683 \end_layout
12684
12685 \end_inset
12686
12687  or 
12688 \begin_inset Flex Code
12689 status collapsed
12690
12691 \begin_layout Plain Layout
12692 [
12693 \end_layout
12694
12695 \end_inset
12696
12697 ).
12698  A line break in the output can be indicated by 
12699 \begin_inset Flex Code
12700 status collapsed
12701
12702 \begin_layout Plain Layout
12703 <br/>
12704 \end_layout
12705
12706 \end_inset
12707
12708 .
12709 \end_layout
12710
12711 \begin_layout Itemize
12712 \begin_inset Flex Code
12713 status collapsed
12714
12715 \begin_layout Plain Layout
12716 RightDelim
12717 \end_layout
12718
12719 \end_inset
12720
12721  
12722 \begin_inset Flex Code
12723 status collapsed
12724
12725 \begin_layout Plain Layout
12726 [string]
12727 \end_layout
12728
12729 \end_inset
12730
12731  defines a custom right delimiter (instead of 
12732 \begin_inset Flex Code
12733 status collapsed
12734
12735 \begin_layout Plain Layout
12736 }
12737 \end_layout
12738
12739 \end_inset
12740
12741  or 
12742 \begin_inset Flex Code
12743 status collapsed
12744
12745 \begin_layout Plain Layout
12746 ]
12747 \end_layout
12748
12749 \end_inset
12750
12751 ).
12752  A line break in the output can be indicated by 
12753 \begin_inset Flex Code
12754 status collapsed
12755
12756 \begin_layout Plain Layout
12757 <br/>
12758 \end_layout
12759
12760 \end_inset
12761
12762 .
12763 \end_layout
12764
12765 \begin_layout Itemize
12766 \begin_inset Flex Code
12767 status collapsed
12768
12769 \begin_layout Plain Layout
12770 DefaultArg
12771 \end_layout
12772
12773 \end_inset
12774
12775  
12776 \begin_inset Flex Code
12777 status collapsed
12778
12779 \begin_layout Plain Layout
12780 [string]
12781 \end_layout
12782
12783 \end_inset
12784
12785  defines an argument that is inserted if and only if no user-specified arguments
12786  were given, i.
12787 \begin_inset space \thinspace{}
12788 \end_inset
12789
12790 e.
12791 \begin_inset space \space{}
12792 \end_inset
12793
12794 if no argument inset has been inserted (note that also an empty argument
12795  inset omits the DefaultArg).
12796  Multiple arguments need to be separated by comma.
12797 \end_layout
12798
12799 \begin_layout Itemize
12800 \begin_inset Flex Code
12801 status collapsed
12802
12803 \begin_layout Plain Layout
12804 PresetArg
12805 \end_layout
12806
12807 \end_inset
12808
12809  
12810 \begin_inset Flex Code
12811 status collapsed
12812
12813 \begin_layout Plain Layout
12814 [string]
12815 \end_layout
12816
12817 \end_inset
12818
12819  defines an argument that is inserted in any case (alone or in addition
12820  to user-specified arguments).
12821  Multiple arguments need to be separated by comma.
12822 \end_layout
12823
12824 \begin_layout Itemize
12825 \begin_inset Flex Code
12826 status collapsed
12827
12828 \begin_layout Plain Layout
12829 Font
12830 \end_layout
12831
12832 \end_inset
12833
12834  The font used for the argument content, see 
12835 \begin_inset CommandInset ref
12836 LatexCommand ref
12837 reference "subsec:Font-description"
12838
12839 \end_inset
12840
12841 .
12842 \change_inserted -712698321 1559484228
12843
12844 \end_layout
12845
12846 \begin_layout Itemize
12847
12848 \change_inserted -712698321 1559484228
12849 \begin_inset Flex Code
12850 status collapsed
12851
12852 \begin_layout Plain Layout
12853
12854 \change_inserted -712698321 1559484228
12855 FreeSpacing
12856 \change_unchanged
12857
12858 \end_layout
12859
12860 \end_inset
12861
12862  [
12863 \begin_inset Flex Code
12864 status collapsed
12865
12866 \begin_layout Plain Layout
12867
12868 \change_inserted -712698321 1559484228
12869
12870 \emph on
12871 0
12872 \change_unchanged
12873
12874 \end_layout
12875
12876 \end_inset
12877
12878 ,
12879 \begin_inset space \thinspace{}
12880 \end_inset
12881
12882
12883 \begin_inset Flex Code
12884 status collapsed
12885
12886 \begin_layout Plain Layout
12887
12888 \change_inserted -712698321 1559484228
12889 1
12890 \change_unchanged
12891
12892 \end_layout
12893
12894 \end_inset
12895
12896 ] As with paragraph styles, see 
12897 \begin_inset CommandInset ref
12898 LatexCommand ref
12899 reference "subsec:Paragraph-Styles"
12900
12901 \end_inset
12902
12903 .
12904 \change_unchanged
12905
12906 \end_layout
12907
12908 \begin_layout Itemize
12909 \begin_inset Flex Code
12910 status collapsed
12911
12912 \begin_layout Plain Layout
12913 LabelFont
12914 \end_layout
12915
12916 \end_inset
12917
12918  The font used for the label; see 
12919 \begin_inset CommandInset ref
12920 LatexCommand ref
12921 reference "subsec:Font-description"
12922
12923 \end_inset
12924
12925 .
12926 \end_layout
12927
12928 \begin_layout Itemize
12929 \begin_inset Flex Code
12930 status collapsed
12931
12932 \begin_layout Plain Layout
12933 Decoration
12934 \end_layout
12935
12936 \end_inset
12937
12938  [
12939 \begin_inset Flex Code
12940 status collapsed
12941
12942 \begin_layout Plain Layout
12943
12944 \emph on
12945 Classic
12946 \emph default
12947 , Minimalistic, Conglomerate
12948 \end_layout
12949
12950 \end_inset
12951
12952 ] describes the rendering style used for the inset's frame and buttons.
12953 \end_layout
12954
12955 \begin_layout Itemize
12956 \begin_inset Flex Code
12957 status collapsed
12958
12959 \begin_layout Plain Layout
12960 AutoInsert
12961 \end_layout
12962
12963 \end_inset
12964
12965  
12966 \begin_inset Flex Code
12967 status collapsed
12968
12969 \begin_layout Plain Layout
12970 [int=0]
12971 \end_layout
12972
12973 \end_inset
12974
12975  If this is set to 
12976 \begin_inset Flex Code
12977 status collapsed
12978
12979 \begin_layout Plain Layout
12980 1
12981 \end_layout
12982
12983 \end_inset
12984
12985 , this argument is automatically inserted when the respective style is selected.
12986
12987 \change_deleted -712698321 1559484200
12988  Currently, only one argument per style\SpecialChar breakableslash
12989 layout can be automatically inserted.
12990 \change_unchanged
12991
12992 \end_layout
12993
12994 \begin_layout Itemize
12995
12996 \change_inserted -712698321 1559491402
12997 \begin_inset Flex Code
12998 status collapsed
12999
13000 \begin_layout Plain Layout
13001
13002 \change_inserted -712698321 1559490711
13003 InsertOnNewline
13004 \change_unchanged
13005
13006 \end_layout
13007
13008 \end_inset
13009
13010  
13011 \begin_inset Flex Code
13012 status collapsed
13013
13014 \begin_layout Plain Layout
13015
13016 \change_inserted -712698321 1559490703
13017 [int=0]
13018 \change_unchanged
13019
13020 \end_layout
13021
13022 \end_inset
13023
13024  If this is set to 
13025 \begin_inset Flex Code
13026 status collapsed
13027
13028 \begin_layout Plain Layout
13029
13030 \change_inserted -712698321 1559490703
13031 1
13032 \change_unchanged
13033
13034 \end_layout
13035
13036 \end_inset
13037
13038 , this argument will be inserted on a new line with 
13039 \begin_inset Flex Code
13040 status collapsed
13041
13042 \begin_layout Plain Layout
13043
13044 \change_inserted -712698321 1559491402
13045 AutoInsert
13046 \change_unchanged
13047
13048 \end_layout
13049
13050 \end_inset
13051
13052  (only available within Flex insets).
13053 \end_layout
13054
13055 \begin_layout Itemize
13056 \begin_inset Flex Code
13057 status collapsed
13058
13059 \begin_layout Plain Layout
13060 InsertCotext
13061 \end_layout
13062
13063 \end_inset
13064
13065  
13066 \begin_inset Flex Code
13067 status collapsed
13068
13069 \begin_layout Plain Layout
13070 [int=0]
13071 \end_layout
13072
13073 \end_inset
13074
13075  If this is set to 
13076 \begin_inset Flex Code
13077 status collapsed
13078
13079 \begin_layout Plain Layout
13080 1
13081 \end_layout
13082
13083 \end_inset
13084
13085 , this argument will be inserted with a copy of the co-text (either selected
13086  text or the whole paragraph) as content.
13087 \end_layout
13088
13089 \begin_layout Itemize
13090 \begin_inset Flex Code
13091 status collapsed
13092
13093 \begin_layout Plain Layout
13094 PassThru
13095 \end_layout
13096
13097 \end_inset
13098
13099  [
13100 \begin_inset Flex Code
13101 status collapsed
13102
13103 \begin_layout Plain Layout
13104
13105 \emph on
13106 inherited
13107 \emph default
13108 , true, false
13109 \end_layout
13110
13111 \end_inset
13112
13113 ] Whether the contents of this argument should be output in raw form, meaning
13114  without special translations that \SpecialChar LaTeX
13115  would require.
13116  By default, the 
13117 \begin_inset Flex Code
13118 status collapsed
13119
13120 \begin_layout Plain Layout
13121 PassThru
13122 \end_layout
13123
13124 \end_inset
13125
13126  status is inherited by the inset or paragraph layout the argument belongs
13127  to, true and false change the status for the given argument only.
13128 \end_layout
13129
13130 \begin_layout Itemize
13131 \begin_inset Flex Code
13132 status collapsed
13133
13134 \begin_layout Plain Layout
13135 PassThruChars
13136 \end_layout
13137
13138 \end_inset
13139
13140  [
13141 \begin_inset Flex Code
13142 status collapsed
13143
13144 \begin_layout Plain Layout
13145 string of characters
13146 \end_layout
13147
13148 \end_inset
13149
13150 ]
13151 \family typewriter
13152  
13153 \family default
13154 Defines individual characters
13155 \begin_inset Newline linebreak
13156 \end_inset
13157
13158 that should be output in raw form, meaning without special translations
13159  that \SpecialChar LaTeX
13160  would require.
13161  Note that, contrary to PassThru, this needs to be explicitly defined for
13162  arguments.
13163  That is, arguments do not inherit PassThruChars from their parent inset
13164  or layout.
13165 \end_layout
13166
13167 \begin_layout Itemize
13168 \begin_inset Flex Code
13169 status collapsed
13170
13171 \begin_layout Plain Layout
13172 IsTocCaption
13173 \end_layout
13174
13175 \end_inset
13176
13177  [
13178 \begin_inset Flex Code
13179 status collapsed
13180
13181 \begin_layout Plain Layout
13182
13183 \emph on
13184 0
13185 \end_layout
13186
13187 \end_inset
13188
13189 ,
13190 \begin_inset space \thinspace{}
13191 \end_inset
13192
13193
13194 \begin_inset Flex Code
13195 status collapsed
13196
13197 \begin_layout Plain Layout
13198 1
13199 \end_layout
13200
13201 \end_inset
13202
13203 ] If this is set to 1, the argument will output its content in the corresponding
13204  item in the table of contents.
13205  See AddToToc.
13206 \end_layout
13207
13208 \begin_layout Standard
13209 By default, the text entered in the \SpecialChar LyX
13210  workarea in the respective layout is
13211  the last (mandatory) argument of a command if the 
13212 \begin_inset Flex Code
13213 status collapsed
13214
13215 \begin_layout Plain Layout
13216 LatexType
13217 \end_layout
13218
13219 \end_inset
13220
13221  is 
13222 \begin_inset Flex Code
13223 status collapsed
13224
13225 \begin_layout Plain Layout
13226 Command
13227 \end_layout
13228
13229 \end_inset
13230
13231 .
13232  However, arguments with the prefix 
13233 \begin_inset Flex Code
13234 status collapsed
13235
13236 \begin_layout Plain Layout
13237 post:
13238 \end_layout
13239
13240 \end_inset
13241
13242  are output after this workarea argument.
13243  Note that post-argument numbering restarts at 1, so the first argument
13244  following the workarea argument is 
13245 \begin_inset Flex Code
13246 status collapsed
13247
13248 \begin_layout Plain Layout
13249 post:1
13250 \end_layout
13251
13252 \end_inset
13253
13254 .
13255  Post-arguments are ignored in any other 
13256 \begin_inset Flex Code
13257 status collapsed
13258
13259 \begin_layout Plain Layout
13260 LatexType
13261 \end_layout
13262
13263 \end_inset
13264
13265  than 
13266 \begin_inset Flex Code
13267 status collapsed
13268
13269 \begin_layout Plain Layout
13270 Command
13271 \end_layout
13272
13273 \end_inset
13274
13275 .
13276 \end_layout
13277
13278 \begin_layout Standard
13279 Arguments for list 
13280 \begin_inset Flex Code
13281 status collapsed
13282
13283 \begin_layout Plain Layout
13284
13285 \backslash
13286 item
13287 \end_layout
13288
13289 \end_inset
13290
13291 s (as in 
13292 \begin_inset Flex Code
13293 status collapsed
13294
13295 \begin_layout Plain Layout
13296
13297 \backslash
13298 item[foo]
13299 \end_layout
13300
13301 \end_inset
13302
13303 ) have the prefix 
13304 \begin_inset Flex Code
13305 status collapsed
13306
13307 \begin_layout Plain Layout
13308 item:
13309 \end_layout
13310
13311 \end_inset
13312
13313  followed by the number (e.
13314 \begin_inset space \thinspace{}
13315 \end_inset
13316
13317 g.
13318 \begin_inset space \space{}
13319 \end_inset
13320
13321
13322 \begin_inset Flex Code
13323 status collapsed
13324
13325 \begin_layout Plain Layout
13326 Argument item:1
13327 \end_layout
13328
13329 \end_inset
13330
13331 ).
13332 \change_inserted -712698321 1534487781
13333
13334 \end_layout
13335
13336 \begin_layout Standard
13337
13338 \change_inserted -712698321 1534488561
13339 Finally, there is a special argument type with the prefix 
13340 \begin_inset Flex Code
13341 status collapsed
13342
13343 \begin_layout Plain Layout
13344
13345 \change_inserted -712698321 1534487844
13346 listpreamble:
13347 \change_unchanged
13348
13349 \end_layout
13350
13351 \end_inset
13352
13353 .
13354  It is not really an argument, but uses the argument interface (thus, the
13355  prefix is also followed by a number, e.
13356 \begin_inset space \thinspace{}
13357 \end_inset
13358
13359 g.
13360  
13361 \begin_inset Flex Code
13362 status collapsed
13363
13364 \begin_layout Plain Layout
13365
13366 \change_inserted -712698321 1534488412
13367 Argument listpreamble:1
13368 \change_unchanged
13369
13370 \end_layout
13371
13372 \end_inset
13373
13374 ).
13375  As the name implies, it is targeted at lists such as 
13376 \family sans
13377 Itemize
13378 \family default
13379
13380 \family sans
13381 Enumerate
13382 \family default
13383
13384 \family sans
13385 Description
13386 \family default
13387 , or 
13388 \family sans
13389 Bibliography
13390 \family default
13391 .
13392  Its content will be output at the list start, before the first 
13393 \begin_inset Flex Code
13394 status collapsed
13395
13396 \begin_layout Plain Layout
13397
13398 \change_inserted -712698321 1534488058
13399
13400 \backslash
13401 item
13402 \change_unchanged
13403
13404 \end_layout
13405
13406 \end_inset
13407
13408 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13409 ).
13410  This way, users can insert redefinitions (of lengths etc.) to individual
13411  lists.
13412  By default, these arguments do not have a delimiter.
13413 \change_unchanged
13414
13415 \end_layout
13416
13417 \end_deeper
13418 \begin_layout Description
13419 \begin_inset Flex Code
13420 status collapsed
13421
13422 \begin_layout Plain Layout
13423 AutoNests
13424 \end_layout
13425
13426 \end_inset
13427
13428  Includes a comma-separated list of layouts that should be nested in and
13429  after the current layout.
13430  Only makes sense for nestable layouts (such as environments).
13431  Must be ended by 
13432 \begin_inset Quotes eld
13433 \end_inset
13434
13435
13436 \begin_inset Flex Code
13437 status collapsed
13438
13439 \begin_layout Plain Layout
13440 EndAutoNests
13441 \end_layout
13442
13443 \end_inset
13444
13445
13446 \begin_inset Quotes erd
13447 \end_inset
13448
13449 .
13450  See also 
13451 \begin_inset Flex Code
13452 status collapsed
13453
13454 \begin_layout Plain Layout
13455 IsAutoNestedBy
13456 \end_layout
13457
13458 \end_inset
13459
13460 .
13461 \end_layout
13462
13463 \begin_layout Description
13464 \begin_inset Flex Code
13465 status collapsed
13466
13467 \begin_layout Plain Layout
13468 BabelPreamble
13469 \end_layout
13470
13471 \end_inset
13472
13473  Note that this will completely override any prior 
13474 \begin_inset Flex Code
13475 status collapsed
13476
13477 \begin_layout Plain Layout
13478 BabelPreamble
13479 \end_layout
13480
13481 \end_inset
13482
13483  declaration for this style.
13484  Must end with 
13485 \begin_inset Quotes eld
13486 \end_inset
13487
13488
13489 \begin_inset Flex Code
13490 status collapsed
13491
13492 \begin_layout Plain Layout
13493 EndBabelPreamble
13494 \end_layout
13495
13496 \end_inset
13497
13498
13499 \begin_inset Quotes erd
13500 \end_inset
13501
13502 .
13503  See 
13504 \begin_inset CommandInset ref
13505 LatexCommand ref
13506 reference "subsec:I18n"
13507
13508 \end_inset
13509
13510  for details on its use.
13511 \end_layout
13512
13513 \begin_layout Description
13514 \begin_inset Flex Code
13515 status collapsed
13516
13517 \begin_layout Plain Layout
13518 BottomSep
13519 \end_layout
13520
13521 \end_inset
13522
13523  [
13524 \begin_inset Flex Code
13525 status collapsed
13526
13527 \begin_layout Plain Layout
13528 float=0
13529 \end_layout
13530
13531 \end_inset
13532
13533 ]
13534 \begin_inset Foot
13535 status collapsed
13536
13537 \begin_layout Plain Layout
13538 Note that a `float' here is a real number, such as: 1.5.
13539 \end_layout
13540
13541 \end_inset
13542
13543  The vertical space with which the last of a chain of paragraphs with this
13544  style is separated from the following paragraph.
13545  If the next paragraph has another style, the separations are not simply
13546  added, but the maximum is taken.
13547 \end_layout
13548
13549 \begin_layout Description
13550 \begin_inset Flex Code
13551 status collapsed
13552
13553 \begin_layout Plain Layout
13554 Category
13555 \end_layout
13556
13557 \end_inset
13558
13559  [
13560 \begin_inset Flex Code
13561 status collapsed
13562
13563 \begin_layout Plain Layout
13564 string
13565 \end_layout
13566
13567 \end_inset
13568
13569 ] The category for this style.
13570  This is used to group related styles in the style combobox on the toolbar.
13571  Any string can be used, but you may want to use existing categories with
13572  your own styles.
13573  
13574 \end_layout
13575
13576 \begin_layout Description
13577 \begin_inset Flex Code
13578 status collapsed
13579
13580 \begin_layout Plain Layout
13581 CommandDepth
13582 \end_layout
13583
13584 \end_inset
13585
13586  Depth of XML command.
13587  Used only with XML-type formats.
13588 \end_layout
13589
13590 \begin_layout Description
13591 \begin_inset Flex Code
13592 status collapsed
13593
13594 \begin_layout Plain Layout
13595 CopyStyle
13596 \end_layout
13597
13598 \end_inset
13599
13600  [
13601 \begin_inset Flex Code
13602 status collapsed
13603
13604 \begin_layout Plain Layout
13605 string
13606 \end_layout
13607
13608 \end_inset
13609
13610 ] Copies all the features of an existing style into the current one.
13611  
13612 \end_layout
13613
13614 \begin_layout Description
13615 \begin_inset Flex Code
13616 status collapsed
13617
13618 \begin_layout Plain Layout
13619 DependsOn
13620 \end_layout
13621
13622 \end_inset
13623
13624  [
13625 \begin_inset Flex Code
13626 status collapsed
13627
13628 \begin_layout Plain Layout
13629 <name>
13630 \end_layout
13631
13632 \end_inset
13633
13634 ] The name of a style whose preamble should be output 
13635 \emph on
13636 before
13637 \emph default
13638  this one.
13639  This allows to ensure some ordering of the preamble snippets when macros
13640  definitions depend on one another.
13641 \begin_inset Foot
13642 status collapsed
13643
13644 \begin_layout Plain Layout
13645 Note that, besides that functionality, there is no way to ensure any ordering
13646  of preambles.
13647  The ordering that you see in a given version of \SpecialChar LyX
13648  may change without warning
13649  in later versions.
13650 \end_layout
13651
13652 \end_inset
13653
13654
13655 \end_layout
13656
13657 \begin_layout Description
13658 \begin_inset Flex Code
13659 status collapsed
13660
13661 \begin_layout Plain Layout
13662 EndLabeltype
13663 \end_layout
13664
13665 \end_inset
13666
13667  [
13668 \begin_inset Flex Code
13669 status collapsed
13670
13671 \begin_layout Plain Layout
13672
13673 \emph on
13674 No_Label
13675 \emph default
13676 , Box, Filled_Box, Static
13677 \end_layout
13678
13679 \end_inset
13680
13681 ] The type of label that stands at the end of the paragraph (or sequence
13682  of paragraphs if 
13683 \begin_inset Flex Code
13684 status collapsed
13685
13686 \begin_layout Plain Layout
13687 LatexType
13688 \end_layout
13689
13690 \end_inset
13691
13692  is
13693 \begin_inset Newline newline
13694 \end_inset
13695
13696
13697 \begin_inset Flex Code
13698 status collapsed
13699
13700 \begin_layout Plain Layout
13701 Environment
13702 \end_layout
13703
13704 \end_inset
13705
13706
13707 \begin_inset Flex Code
13708 status collapsed
13709
13710 \begin_layout Plain Layout
13711 Item_Environment
13712 \end_layout
13713
13714 \end_inset
13715
13716  or 
13717 \begin_inset Flex Code
13718 status collapsed
13719
13720 \begin_layout Plain Layout
13721 List_Environment
13722 \end_layout
13723
13724 \end_inset
13725
13726 ).
13727  
13728 \begin_inset Flex Code
13729 status collapsed
13730
13731 \begin_layout Plain Layout
13732 No_Label
13733 \end_layout
13734
13735 \end_inset
13736
13737  means 
13738 \begin_inset Quotes eld
13739 \end_inset
13740
13741 nothing
13742 \begin_inset Quotes erd
13743 \end_inset
13744
13745
13746 \begin_inset Flex Code
13747 status collapsed
13748
13749 \begin_layout Plain Layout
13750 Box
13751 \end_layout
13752
13753 \end_inset
13754
13755  (resp.
13756 \begin_inset space \space{}
13757 \end_inset
13758
13759
13760 \begin_inset Flex Code
13761 status collapsed
13762
13763 \begin_layout Plain Layout
13764 Filled_Box
13765 \end_layout
13766
13767 \end_inset
13768
13769 ) is a white (resp.
13770 \begin_inset space ~
13771 \end_inset
13772
13773 black) square suitable for end of proof markers, 
13774 \begin_inset Flex Code
13775 status collapsed
13776
13777 \begin_layout Plain Layout
13778 Static
13779 \end_layout
13780
13781 \end_inset
13782
13783  is an explicit text string.
13784 \end_layout
13785
13786 \begin_layout Description
13787 \begin_inset Flex Code
13788 status collapsed
13789
13790 \begin_layout Plain Layout
13791 EndLabelString
13792 \end_layout
13793
13794 \end_inset
13795
13796  [
13797 \begin_inset Flex Code
13798 status collapsed
13799
13800 \begin_layout Plain Layout
13801 string=""
13802 \end_layout
13803
13804 \end_inset
13805
13806 ] The string used for a label with a 
13807 \begin_inset Flex Code
13808 status collapsed
13809
13810 \begin_layout Plain Layout
13811 Static
13812 \end_layout
13813
13814 \end_inset
13815
13816
13817 \begin_inset Newline newline
13818 \end_inset
13819
13820
13821 \begin_inset Flex Code
13822 status collapsed
13823
13824 \begin_layout Plain Layout
13825 EndLabelType
13826 \end_layout
13827
13828 \end_inset
13829
13830 .
13831  
13832 \end_layout
13833
13834 \begin_layout Description
13835 \begin_inset Flex Code
13836 status collapsed
13837
13838 \begin_layout Plain Layout
13839 Font
13840 \end_layout
13841
13842 \end_inset
13843
13844  The font used for both the text body 
13845 \emph on
13846 and
13847 \emph default
13848  the label.
13849  See 
13850 \begin_inset CommandInset ref
13851 LatexCommand ref
13852 reference "subsec:Font-description"
13853
13854 \end_inset
13855
13856 .
13857  Note that defining this font automatically defines the 
13858 \begin_inset Flex Code
13859 status collapsed
13860
13861 \begin_layout Plain Layout
13862 LabelFont
13863 \end_layout
13864
13865 \end_inset
13866
13867  to the same value.
13868  So you should define this one first if you also want to define 
13869 \begin_inset Flex Code
13870 status collapsed
13871
13872 \begin_layout Plain Layout
13873 LabelFont
13874 \end_layout
13875
13876 \end_inset
13877
13878 .
13879 \end_layout
13880
13881 \begin_layout Description
13882 \begin_inset Flex Code
13883 status collapsed
13884
13885 \begin_layout Plain Layout
13886 ForceLocal
13887 \end_layout
13888
13889 \end_inset
13890
13891  [
13892 \begin_inset Flex Code
13893 status collapsed
13894
13895 \begin_layout Plain Layout
13896 int=0
13897 \end_layout
13898
13899 \end_inset
13900
13901 ] Used for backporting new styles to stable \SpecialChar LyX
13902  versions.
13903  The first stable version that supports this tag is \SpecialChar LyX
13904  2.1.0.
13905  The argument is a number which may either be 0, -1 or any value greater
13906  than zero.
13907  If the 
13908 \begin_inset Flex Code
13909 status collapsed
13910
13911 \begin_layout Plain Layout
13912 ForceLocal
13913 \end_layout
13914
13915 \end_inset
13916
13917  flag of a style is greater than zero, it will always be written to the
13918  document header.
13919  If a .lyx file is read, the style definitions from the document header are
13920  added to the document class.
13921  Therefore even older \SpecialChar LyX
13922  versions can handle the style.
13923  The argument of 
13924 \begin_inset Flex Code
13925 status collapsed
13926
13927 \begin_layout Plain Layout
13928 ForceLocal
13929 \end_layout
13930
13931 \end_inset
13932
13933  is a version number: if the style is read, and the version number is less
13934  than the version number of the already existing style in the document class,
13935  the new style is ignored.
13936  If the version number is greater, the new style replaces the existing style.
13937  A value of -1 means an infinite version number, i.
13938 \begin_inset space \thinspace{}
13939 \end_inset
13940
13941 e.
13942 \begin_inset space \space{}
13943 \end_inset
13944
13945 the style is always used.
13946 \end_layout
13947
13948 \begin_layout Description
13949 \begin_inset Flex Code
13950 status collapsed
13951
13952 \begin_layout Plain Layout
13953 FreeSpacing
13954 \end_layout
13955
13956 \end_inset
13957
13958  [
13959 \begin_inset Flex Code
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963
13964 \emph on
13965 0
13966 \end_layout
13967
13968 \end_inset
13969
13970 ,
13971 \begin_inset space \thinspace{}
13972 \end_inset
13973
13974
13975 \begin_inset Flex Code
13976 status collapsed
13977
13978 \begin_layout Plain Layout
13979 1
13980 \end_layout
13981
13982 \end_inset
13983
13984 ] Usually \SpecialChar LyX
13985  does not allow you to insert more than one space between words,
13986  since a space is considered as the separation between two words, not a
13987  character or symbol of its own.
13988  This is a very fine thing but sometimes annoying, for example, when typing
13989  program code or plain \SpecialChar LaTeX
13990  code.
13991  For this reason, 
13992 \begin_inset Flex Code
13993 status collapsed
13994
13995 \begin_layout Plain Layout
13996 FreeSpacing
13997 \end_layout
13998
13999 \end_inset
14000
14001  can be enabled.
14002  
14003 \change_deleted -495245474 1550490105
14004 Note that 
14005 \change_unchanged
14006 \SpecialChar LyX
14007  will create protected blanks for the additional blanks when in 
14008 \change_inserted -495245474 1550490096
14009
14010 \begin_inset Flex Code
14011 status collapsed
14012
14013 \begin_layout Plain Layout
14014
14015 \change_inserted -495245474 1550490089
14016 Passthru 1
14017 \change_unchanged
14018
14019 \end_layout
14020
14021 \end_inset
14022
14023  is not specified.
14024 \change_deleted -495245474 1550490116
14025 another mode than \SpecialChar LaTeX
14026 -mode.
14027
14028 \change_inserted -495245474 1550247760
14029  Note that 
14030 \begin_inset Flex Code
14031 status collapsed
14032
14033 \begin_layout Plain Layout
14034
14035 \change_inserted -495245474 1550247736
14036 FreeSpacing
14037 \change_unchanged
14038
14039 \end_layout
14040
14041 \end_inset
14042
14043  implies 
14044 \begin_inset Flex Code
14045 status collapsed
14046
14047 \begin_layout Plain Layout
14048
14049 \change_inserted -495245474 1550247755
14050 KeepEmpty
14051 \change_unchanged
14052
14053 \end_layout
14054
14055 \end_inset
14056
14057 .
14058 \change_unchanged
14059
14060 \end_layout
14061
14062 \begin_layout Description
14063 \begin_inset Flex Code
14064 status collapsed
14065
14066 \begin_layout Plain Layout
14067 HTML*
14068 \end_layout
14069
14070 \end_inset
14071
14072  These tags are used with XHTML output.
14073  See 
14074 \begin_inset CommandInset ref
14075 LatexCommand ref
14076 reference "subsec:Paragraph-Style-XHTML"
14077
14078 \end_inset
14079
14080 .
14081 \end_layout
14082
14083 \begin_layout Description
14084 \begin_inset Flex Code
14085 status collapsed
14086
14087 \begin_layout Plain Layout
14088 InnerTag
14089 \end_layout
14090
14091 \end_inset
14092
14093  [FIXME] (Used only with XML-type formats.)
14094 \end_layout
14095
14096 \begin_layout Description
14097 \begin_inset Flex Code
14098 status collapsed
14099
14100 \begin_layout Plain Layout
14101 InPreamble
14102 \end_layout
14103
14104 \end_inset
14105
14106  [
14107 \begin_inset Flex Code
14108 status collapsed
14109
14110 \begin_layout Plain Layout
14111
14112 \emph on
14113 0
14114 \end_layout
14115
14116 \end_inset
14117
14118 ,
14119 \begin_inset space \thinspace{}
14120 \end_inset
14121
14122
14123 \begin_inset Flex Code
14124 status collapsed
14125
14126 \begin_layout Plain Layout
14127 1
14128 \end_layout
14129
14130 \end_inset
14131
14132 ] If 
14133 \begin_inset Flex Code
14134 status collapsed
14135
14136 \begin_layout Plain Layout
14137 1
14138 \end_layout
14139
14140 \end_inset
14141
14142 , marks the style as to be included in the document preamble and not in
14143  the document body.
14144  This is useful for document classes that want such information as the title
14145  and author to appear in the preamble.
14146  Note that this works only for styles for which the 
14147 \begin_inset Flex Code
14148 status collapsed
14149
14150 \begin_layout Plain Layout
14151 LatexType
14152 \end_layout
14153
14154 \end_inset
14155
14156  is 
14157 \begin_inset Flex Code
14158 status collapsed
14159
14160 \begin_layout Plain Layout
14161 Command
14162 \end_layout
14163
14164 \end_inset
14165
14166  or 
14167 \begin_inset Flex Code
14168 status collapsed
14169
14170 \begin_layout Plain Layout
14171 Paragraph
14172 \end_layout
14173
14174 \end_inset
14175
14176 .
14177 \end_layout
14178
14179 \begin_layout Description
14180 \begin_inset Flex Code
14181 status collapsed
14182
14183 \begin_layout Plain Layout
14184 InTitle
14185 \end_layout
14186
14187 \end_inset
14188
14189  [
14190 \begin_inset Flex Code
14191 status collapsed
14192
14193 \begin_layout Plain Layout
14194
14195 \emph on
14196 0
14197 \end_layout
14198
14199 \end_inset
14200
14201 ,
14202 \begin_inset space \thinspace{}
14203 \end_inset
14204
14205
14206 \begin_inset Flex Code
14207 status collapsed
14208
14209 \begin_layout Plain Layout
14210 1
14211 \end_layout
14212
14213 \end_inset
14214
14215 ] If 
14216 \begin_inset Flex Code
14217 status collapsed
14218
14219 \begin_layout Plain Layout
14220 1
14221 \end_layout
14222
14223 \end_inset
14224
14225 , marks the style as being part of a title block (see also the 
14226 \begin_inset Flex Code
14227 status collapsed
14228
14229 \begin_layout Plain Layout
14230 TitleLatexType
14231 \end_layout
14232
14233 \end_inset
14234
14235  and 
14236 \begin_inset Flex Code
14237 status collapsed
14238
14239 \begin_layout Plain Layout
14240 TitleLatexName
14241 \end_layout
14242
14243 \end_inset
14244
14245  global entries).
14246 \end_layout
14247
14248 \begin_layout Description
14249 \begin_inset Flex Code
14250 status collapsed
14251
14252 \begin_layout Plain Layout
14253 IsAutoNestedBy
14254 \end_layout
14255
14256 \end_inset
14257
14258  Includes a comma-separated list of layouts after which this one should
14259  be nested.
14260  Only makes sense with regard to nestable layouts (such as environments).
14261  Must be ended by 
14262 \begin_inset Quotes eld
14263 \end_inset
14264
14265
14266 \begin_inset Flex Code
14267 status collapsed
14268
14269 \begin_layout Plain Layout
14270 EndIsAutoNestedBy
14271 \end_layout
14272
14273 \end_inset
14274
14275
14276 \begin_inset Quotes erd
14277 \end_inset
14278
14279 .
14280  See also 
14281 \begin_inset Flex Code
14282 status collapsed
14283
14284 \begin_layout Plain Layout
14285 AutoNests
14286 \end_layout
14287
14288 \end_inset
14289
14290 .
14291 \end_layout
14292
14293 \begin_layout Description
14294 \begin_inset Flex Code
14295 status collapsed
14296
14297 \begin_layout Plain Layout
14298 IsTocCaption
14299 \end_layout
14300
14301 \end_inset
14302
14303  [
14304 \begin_inset Flex Code
14305 status collapsed
14306
14307 \begin_layout Plain Layout
14308
14309 \emph on
14310 0
14311 \end_layout
14312
14313 \end_inset
14314
14315 ,
14316 \begin_inset space \thinspace{}
14317 \end_inset
14318
14319
14320 \begin_inset Flex Code
14321 status collapsed
14322
14323 \begin_layout Plain Layout
14324 1
14325 \end_layout
14326
14327 \end_inset
14328
14329 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14330  of its contents in its item in the table of contents.
14331  Otherwise, only the label, if it exists, appears.
14332 \end_layout
14333
14334 \begin_layout Description
14335 \begin_inset Flex Code
14336 status collapsed
14337
14338 \begin_layout Plain Layout
14339 ItemCommand
14340 \end_layout
14341
14342 \end_inset
14343
14344  [
14345 \begin_inset Flex Code
14346 status collapsed
14347
14348 \begin_layout Plain Layout
14349 string="item"
14350 \end_layout
14351
14352 \end_inset
14353
14354 ] The \SpecialChar LaTeX
14355  command sequence declaring an item in a list.
14356  The command is to be defined without the preceding backslash (the default
14357  is 
14358 \begin_inset Quotes eld
14359 \end_inset
14360
14361 item
14362 \begin_inset Quotes erd
14363 \end_inset
14364
14365 , resulting in 
14366 \begin_inset Flex Code
14367 status collapsed
14368
14369 \begin_layout Plain Layout
14370
14371 \backslash
14372 item
14373 \end_layout
14374
14375 \end_inset
14376
14377  in the \SpecialChar LaTeX
14378  output).
14379 \end_layout
14380
14381 \begin_layout Description
14382 \begin_inset Flex Code
14383 status collapsed
14384
14385 \begin_layout Plain Layout
14386 ItemSep
14387 \end_layout
14388
14389 \end_inset
14390
14391  [
14392 \begin_inset Flex Code
14393 status collapsed
14394
14395 \begin_layout Plain Layout
14396 float=0
14397 \end_layout
14398
14399 \end_inset
14400
14401 ] This provides extra space between paragraphs that have the same style.
14402  If you put other styles into an environment, each is separated with the
14403  environment's 
14404 \begin_inset Flex Code
14405 status collapsed
14406
14407 \begin_layout Plain Layout
14408 ParSep
14409 \end_layout
14410
14411 \end_inset
14412
14413 .
14414  But the whole items of the environment are additionally separated with
14415  this 
14416 \begin_inset Flex Code
14417 status collapsed
14418
14419 \begin_layout Plain Layout
14420 ItemSep
14421 \end_layout
14422
14423 \end_inset
14424
14425 .
14426  Note that this is a
14427 \emph on
14428  multiplier.
14429 \end_layout
14430
14431 \begin_layout Description
14432 \begin_inset Flex Code
14433 status collapsed
14434
14435 \begin_layout Plain Layout
14436 ItemTag
14437 \end_layout
14438
14439 \end_inset
14440
14441  [FIXME] (Used only with XML-type formats.)
14442 \end_layout
14443
14444 \begin_layout Description
14445 \begin_inset Flex Code
14446 status collapsed
14447
14448 \begin_layout Plain Layout
14449 KeepEmpty
14450 \end_layout
14451
14452 \end_inset
14453
14454  [
14455 \begin_inset Flex Code
14456 status collapsed
14457
14458 \begin_layout Plain Layout
14459
14460 \emph on
14461 0
14462 \end_layout
14463
14464 \end_inset
14465
14466 ,
14467 \begin_inset space \thinspace{}
14468 \end_inset
14469
14470
14471 \begin_inset Flex Code
14472 status collapsed
14473
14474 \begin_layout Plain Layout
14475 1
14476 \end_layout
14477
14478 \end_inset
14479
14480 ] Usually \SpecialChar LyX
14481  does not allow you to leave a paragraph empty, since it would
14482  lead to empty \SpecialChar LaTeX
14483  output.
14484  There are some cases where this could be desirable however: in a letter
14485  template, the required fields can be provided as empty fields, so that
14486  people do not forget them; in some special classes, a style can be used
14487  as some kind of break, which does not contain actual text.
14488 \end_layout
14489
14490 \begin_layout Description
14491 \begin_inset Flex Code
14492 status collapsed
14493
14494 \begin_layout Plain Layout
14495 LabelBottomsep
14496 \end_layout
14497
14498 \end_inset
14499
14500  [
14501 \begin_inset Flex Code
14502 status collapsed
14503
14504 \begin_layout Plain Layout
14505 float=0
14506 \end_layout
14507
14508 \end_inset
14509
14510 ] The vertical space between the label and the text body.
14511  Only used for labels that are above the text body (
14512 \begin_inset Flex Code
14513 status collapsed
14514
14515 \begin_layout Plain Layout
14516 Top_Environment
14517 \end_layout
14518
14519 \end_inset
14520
14521  and
14522 \begin_inset Newline newline
14523 \end_inset
14524
14525
14526 \begin_inset Flex Code
14527 status collapsed
14528
14529 \begin_layout Plain Layout
14530 Centered_Top_Environment
14531 \end_layout
14532
14533 \end_inset
14534
14535 ).
14536 \end_layout
14537
14538 \begin_layout Description
14539 \begin_inset Flex Code
14540 status collapsed
14541
14542 \begin_layout Plain Layout
14543 LabelCounter
14544 \end_layout
14545
14546 \end_inset
14547
14548  [
14549 \begin_inset Flex Code
14550 status collapsed
14551
14552 \begin_layout Plain Layout
14553 string=""
14554 \end_layout
14555
14556 \end_inset
14557
14558 ] The name of the counter for automatic numbering.
14559  In order to have the counter appear with your label, you will need to reference
14560  it in the 
14561 \begin_inset Flex Code
14562 status collapsed
14563
14564 \begin_layout Plain Layout
14565
14566 \family typewriter
14567 LabelString
14568 \end_layout
14569
14570 \end_inset
14571
14572 .
14573  This will work with 
14574 \begin_inset Flex Code
14575 status collapsed
14576
14577 \begin_layout Plain Layout
14578 LabelType
14579 \end_layout
14580
14581 \end_inset
14582
14583 s, 
14584 \begin_inset Flex Code
14585 status collapsed
14586
14587 \begin_layout Plain Layout
14588 Static
14589 \end_layout
14590
14591 \end_inset
14592
14593
14594 \begin_inset Flex Code
14595 status collapsed
14596
14597 \begin_layout Plain Layout
14598 Above
14599 \end_layout
14600
14601 \end_inset
14602
14603  and 
14604 \begin_inset Flex Code
14605 status collapsed
14606
14607 \begin_layout Plain Layout
14608 Centered
14609 \end_layout
14610
14611 \end_inset
14612
14613 , at least.
14614 \begin_inset Newline newline
14615 \end_inset
14616
14617 This 
14618 \emph on
14619 may
14620 \emph default
14621  also be given if 
14622 \begin_inset Flex Code
14623 status collapsed
14624
14625 \begin_layout Plain Layout
14626 LabelType
14627 \end_layout
14628
14629 \end_inset
14630
14631  is 
14632 \begin_inset Flex Code
14633 status collapsed
14634
14635 \begin_layout Plain Layout
14636 Enumerate
14637 \end_layout
14638
14639 \end_inset
14640
14641 , though this case is a bit complicated.
14642  Suppose you declare 
14643 \begin_inset Quotes eld
14644 \end_inset
14645
14646
14647 \begin_inset Flex Code
14648 status collapsed
14649
14650 \begin_layout Plain Layout
14651 LabelCounter myenum
14652 \end_layout
14653
14654 \end_inset
14655
14656
14657 \begin_inset Quotes erd
14658 \end_inset
14659
14660 .
14661  Then the actual counters used are 
14662 \begin_inset Flex Code
14663 status collapsed
14664
14665 \begin_layout Plain Layout
14666 myenumi
14667 \end_layout
14668
14669 \end_inset
14670
14671
14672 \begin_inset Flex Code
14673 status collapsed
14674
14675 \begin_layout Plain Layout
14676 myenumii
14677 \end_layout
14678
14679 \end_inset
14680
14681
14682 \begin_inset Flex Code
14683 status collapsed
14684
14685 \begin_layout Plain Layout
14686 myenumiii
14687 \end_layout
14688
14689 \end_inset
14690
14691  and 
14692 \begin_inset Flex Code
14693 status collapsed
14694
14695 \begin_layout Plain Layout
14696 myenumiv
14697 \end_layout
14698
14699 \end_inset
14700
14701 , much as in \SpecialChar LaTeX
14702 .
14703  These counters must all be declared separately.
14704 \begin_inset Newline newline
14705 \end_inset
14706
14707 See 
14708 \begin_inset CommandInset ref
14709 LatexCommand ref
14710 reference "subsec:Counters"
14711
14712 \end_inset
14713
14714  for details on counters.
14715 \end_layout
14716
14717 \begin_layout Description
14718 \begin_inset Flex Code
14719 status collapsed
14720
14721 \begin_layout Plain Layout
14722 LabelFont
14723 \end_layout
14724
14725 \end_inset
14726
14727  The font used for the label.
14728  See 
14729 \begin_inset CommandInset ref
14730 LatexCommand ref
14731 reference "subsec:Font-description"
14732
14733 \end_inset
14734
14735 .
14736 \end_layout
14737
14738 \begin_layout Description
14739 \begin_inset Flex Code
14740 status collapsed
14741
14742 \begin_layout Plain Layout
14743 LabelIndent
14744 \end_layout
14745
14746 \end_inset
14747
14748  [
14749 \begin_inset Flex Code
14750 status collapsed
14751
14752 \begin_layout Plain Layout
14753 string=""
14754 \end_layout
14755
14756 \end_inset
14757
14758 ] Text that indicates how far a label should be indented.
14759 \end_layout
14760
14761 \begin_layout Description
14762 \begin_inset Flex Code
14763 status collapsed
14764
14765 \begin_layout Plain Layout
14766 LabelSep
14767 \end_layout
14768
14769 \end_inset
14770
14771  [
14772 \begin_inset Flex Code
14773 status collapsed
14774
14775 \begin_layout Plain Layout
14776 string=""
14777 \end_layout
14778
14779 \end_inset
14780
14781 ] Text that indicates the amount of horizontal space between the label and
14782  the text body.
14783  Only used for labels that are not above the text body.
14784 \end_layout
14785
14786 \begin_layout Description
14787 \begin_inset Flex Code
14788 status collapsed
14789
14790 \begin_layout Plain Layout
14791 LabelString
14792 \end_layout
14793
14794 \end_inset
14795
14796  [
14797 \begin_inset Flex Code
14798 status collapsed
14799
14800 \begin_layout Plain Layout
14801 string=""
14802 \end_layout
14803
14804 \end_inset
14805
14806 ] The string used for the label.
14807  When 
14808 \begin_inset Flex Code
14809 status collapsed
14810
14811 \begin_layout Plain Layout
14812 LabelCounter
14813 \end_layout
14814
14815 \end_inset
14816
14817  is set, this string can be contain the special formatting commands described
14818  in 
14819 \begin_inset CommandInset ref
14820 LatexCommand ref
14821 reference "subsec:Counters"
14822
14823 \end_inset
14824
14825 .
14826 \end_layout
14827
14828 \begin_layout Description
14829 \begin_inset Flex Code
14830 status collapsed
14831
14832 \begin_layout Plain Layout
14833 LabelStringAppendix
14834 \end_layout
14835
14836 \end_inset
14837
14838  [
14839 \begin_inset Flex Code
14840 status collapsed
14841
14842 \begin_layout Plain Layout
14843 string=""
14844 \end_layout
14845
14846 \end_inset
14847
14848 ] This is used inside the appendix instead of
14849 \begin_inset Newline newline
14850 \end_inset
14851
14852
14853 \begin_inset Flex Code
14854 status collapsed
14855
14856 \begin_layout Plain Layout
14857 LabelString
14858 \end_layout
14859
14860 \end_inset
14861
14862 .
14863  Note that every 
14864 \begin_inset Flex Code
14865 status collapsed
14866
14867 \begin_layout Plain Layout
14868 LabelString
14869 \end_layout
14870
14871 \end_inset
14872
14873  statement resets
14874 \begin_inset Newline newline
14875 \end_inset
14876
14877
14878 \begin_inset Flex Code
14879 status collapsed
14880
14881 \begin_layout Plain Layout
14882 LabelStringAppendix
14883 \end_layout
14884
14885 \end_inset
14886
14887  too.
14888 \end_layout
14889
14890 \begin_layout Description
14891 \begin_inset Flex Code
14892 status collapsed
14893
14894 \begin_layout Plain Layout
14895 LabelTag
14896 \end_layout
14897
14898 \end_inset
14899
14900  [FIXME] (Used only with XML-type formats.)
14901 \end_layout
14902
14903 \begin_layout Description
14904 \begin_inset Flex Code
14905 status collapsed
14906
14907 \begin_layout Plain Layout
14908 LabelType
14909 \end_layout
14910
14911 \end_inset
14912
14913  [
14914 \begin_inset Flex Code
14915 status collapsed
14916
14917 \begin_layout Plain Layout
14918
14919 \emph on
14920 No_Label
14921 \emph default
14922 , Manual, Static, Above, 
14923 \begin_inset Newline newline
14924 \end_inset
14925
14926 Centered, Sensitive, Enumerate,
14927 \begin_inset Newline newline
14928 \end_inset
14929
14930 Itemize, Bibliography
14931 \end_layout
14932
14933 \end_inset
14934
14935 ]
14936 \end_layout
14937
14938 \begin_deeper
14939 \begin_layout Description
14940 \begin_inset Flex Code
14941 status collapsed
14942
14943 \begin_layout Plain Layout
14944 Manual
14945 \end_layout
14946
14947 \end_inset
14948
14949  means the label is the very first word (up to the first real blank).
14950  Use protected spaces if you want more than one word as the label.
14951  
14952 \end_layout
14953
14954 \begin_layout Description
14955 \begin_inset Flex Code
14956 status collapsed
14957
14958 \begin_layout Plain Layout
14959 Static
14960 \end_layout
14961
14962 \end_inset
14963
14964  means the label is simply what is declared as 
14965 \begin_inset Flex Code
14966 status collapsed
14967
14968 \begin_layout Plain Layout
14969 LabelString
14970 \end_layout
14971
14972 \end_inset
14973
14974 .
14975  This will be displayed 
14976 \begin_inset Quotes eld
14977 \end_inset
14978
14979 inline
14980 \begin_inset Quotes erd
14981 \end_inset
14982
14983 , at the beginning of the paragraph.
14984  If the 
14985 \begin_inset Flex Code
14986 status collapsed
14987
14988 \begin_layout Plain Layout
14989 LatexType
14990 \end_layout
14991
14992 \end_inset
14993
14994  is 
14995 \begin_inset Flex Code
14996 status collapsed
14997
14998 \begin_layout Plain Layout
14999 Environment
15000 \end_layout
15001
15002 \end_inset
15003
15004 , then it will be displayed only in the first paragraph of any sequence
15005  of paragraphs with the same 
15006 \begin_inset Flex Code
15007 status collapsed
15008
15009 \begin_layout Plain Layout
15010 Style
15011 \end_layout
15012
15013 \end_inset
15014
15015 .
15016 \end_layout
15017
15018 \begin_layout Description
15019 \begin_inset Flex Code
15020 status collapsed
15021
15022 \begin_layout Plain Layout
15023 Above
15024 \end_layout
15025
15026 \end_inset
15027
15028
15029 \begin_inset space ~
15030 \end_inset
15031
15032 and
15033 \begin_inset space ~
15034 \end_inset
15035
15036
15037 \begin_inset Flex Code
15038 status collapsed
15039
15040 \begin_layout Plain Layout
15041 Centered
15042 \end_layout
15043
15044 \end_inset
15045
15046  are special cases of 
15047 \begin_inset Flex Code
15048 status collapsed
15049
15050 \begin_layout Plain Layout
15051 Static
15052 \end_layout
15053
15054 \end_inset
15055
15056 .
15057  The label will be printed above the paragraph either at the beginning of
15058  the line or centered.
15059 \end_layout
15060
15061 \begin_layout Description
15062 \begin_inset Flex Code
15063 status collapsed
15064
15065 \begin_layout Plain Layout
15066 Sensitive
15067 \end_layout
15068
15069 \end_inset
15070
15071  is a special case for the caption-labels 
15072 \begin_inset Quotes eld
15073 \end_inset
15074
15075 Figure
15076 \begin_inset Quotes erd
15077 \end_inset
15078
15079  and 
15080 \begin_inset Quotes eld
15081 \end_inset
15082
15083 Table
15084 \begin_inset Quotes erd
15085 \end_inset
15086
15087 .
15088 \begin_inset Newline newline
15089 \end_inset
15090
15091
15092 \begin_inset Flex Code
15093 status collapsed
15094
15095 \begin_layout Plain Layout
15096 Sensitive
15097 \end_layout
15098
15099 \end_inset
15100
15101  means the (hardcoded) label string depends on the kind of float: It is
15102  hardcoded to be `FloatType N', where N is the value of the counter associated
15103  with the float.
15104  For the case that a caption is inserted outside of a float the 
15105 \begin_inset Flex Code
15106 status collapsed
15107
15108 \begin_layout Plain Layout
15109 LabelString
15110 \end_layout
15111
15112 \end_inset
15113
15114  will appear as 
15115 \begin_inset Quotes eld
15116 \end_inset
15117
15118 Senseless!
15119 \begin_inset Quotes erd
15120 \end_inset
15121
15122 .
15123 \end_layout
15124
15125 \begin_layout Description
15126 \begin_inset Flex Code
15127 status collapsed
15128
15129 \begin_layout Plain Layout
15130 Enumerate
15131 \end_layout
15132
15133 \end_inset
15134
15135  produces the usual sort of enumeration labels.
15136  The number type needs to be set in the 
15137 \family sans
15138 Counter
15139 \family default
15140 , see 
15141 \begin_inset CommandInset ref
15142 LatexCommand ref
15143 reference "subsec:Counters"
15144
15145 \end_inset
15146
15147 .
15148 \end_layout
15149
15150 \begin_layout Description
15151 \begin_inset Flex Code
15152 status collapsed
15153
15154 \begin_layout Plain Layout
15155 Itemize
15156 \end_layout
15157
15158 \end_inset
15159
15160  produces various bullets at the different levels.
15161  The bullet types displayed can be set via 
15162 \begin_inset Flex Noun
15163 status collapsed
15164
15165 \begin_layout Plain Layout
15166 Document\SpecialChar menuseparator
15167 Settings\SpecialChar menuseparator
15168 Bullets
15169 \end_layout
15170
15171 \end_inset
15172
15173 .
15174 \end_layout
15175
15176 \begin_layout Description
15177 \begin_inset Flex Code
15178 status collapsed
15179
15180 \begin_layout Plain Layout
15181 Bibliography
15182 \end_layout
15183
15184 \end_inset
15185
15186  should be used only with 
15187 \begin_inset Flex Code
15188 status collapsed
15189
15190 \begin_layout Plain Layout
15191 LatexType BibEnvironment
15192 \end_layout
15193
15194 \end_inset
15195
15196 .
15197 \end_layout
15198
15199 \end_deeper
15200 \begin_layout Description
15201 \begin_inset Flex Code
15202 status collapsed
15203
15204 \begin_layout Plain Layout
15205 LangPreamble
15206 \end_layout
15207
15208 \end_inset
15209
15210  Note that this will completely override any prior 
15211 \begin_inset Flex Code
15212 status collapsed
15213
15214 \begin_layout Plain Layout
15215 LangPreamble
15216 \end_layout
15217
15218 \end_inset
15219
15220  declaration for this style.
15221  Must end with 
15222 \begin_inset Quotes eld
15223 \end_inset
15224
15225
15226 \begin_inset Flex Code
15227 status collapsed
15228
15229 \begin_layout Plain Layout
15230 EndLangPreamble
15231 \end_layout
15232
15233 \end_inset
15234
15235
15236 \begin_inset Quotes erd
15237 \end_inset
15238
15239 .
15240  See 
15241 \begin_inset CommandInset ref
15242 LatexCommand ref
15243 reference "subsec:I18n"
15244
15245 \end_inset
15246
15247  for details on its use.
15248 \end_layout
15249
15250 \begin_layout Description
15251 \begin_inset Flex Code
15252 status collapsed
15253
15254 \begin_layout Plain Layout
15255 LatexName
15256 \end_layout
15257
15258 \end_inset
15259
15260  [
15261 \begin_inset Flex Code
15262 status collapsed
15263
15264 \begin_layout Plain Layout
15265 <name>
15266 \end_layout
15267
15268 \end_inset
15269
15270 ] The name of the corresponding \SpecialChar LaTeX
15271  stuff.
15272  Either the environment or command name.
15273 \end_layout
15274
15275 \begin_layout Description
15276 \begin_inset Flex Code
15277 status collapsed
15278
15279 \begin_layout Plain Layout
15280 LatexParam
15281 \end_layout
15282
15283 \end_inset
15284
15285  [
15286 \begin_inset Flex Code
15287 status collapsed
15288
15289 \begin_layout Plain Layout
15290 <parameter>
15291 \end_layout
15292
15293 \end_inset
15294
15295 ] An optional parameter for the corresponding 
15296 \begin_inset Flex Code
15297 status collapsed
15298
15299 \begin_layout Plain Layout
15300 LatexName
15301 \end_layout
15302
15303 \end_inset
15304
15305  stuff.
15306  This parameter cannot be changed from within \SpecialChar LyX
15307  (use 
15308 \begin_inset Flex Code
15309 status collapsed
15310
15311 \begin_layout Plain Layout
15312 Argument
15313 \end_layout
15314
15315 \end_inset
15316
15317  for customizable parameters).
15318  This will be output as is after all \SpecialChar LaTeX
15319  
15320 \begin_inset Flex Code
15321 status collapsed
15322
15323 \begin_layout Plain Layout
15324 Argument
15325 \end_layout
15326
15327 \end_inset
15328
15329 s.
15330 \end_layout
15331
15332 \begin_layout Description
15333 \begin_inset Flex Code
15334 status collapsed
15335
15336 \begin_layout Plain Layout
15337 LatexType
15338 \end_layout
15339
15340 \end_inset
15341
15342  [
15343 \begin_inset Flex Code
15344 status collapsed
15345
15346 \begin_layout Plain Layout
15347
15348 \emph on
15349 Paragraph
15350 \emph default
15351 , Command, Environment, Item_Environment,
15352 \begin_inset Newline newline
15353 \end_inset
15354
15355 List_Environment, Bib_Environment
15356 \end_layout
15357
15358 \end_inset
15359
15360 ] How the style should be translated into \SpecialChar LaTeX
15361 .
15362 \begin_inset Foot
15363 status collapsed
15364
15365 \begin_layout Plain Layout
15366 \begin_inset Flex Code
15367 status collapsed
15368
15369 \begin_layout Plain Layout
15370 LatexType
15371 \end_layout
15372
15373 \end_inset
15374
15375  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15376  Visit the SGML class files for specific examples.
15377 \end_layout
15378
15379 \end_inset
15380
15381
15382 \end_layout
15383
15384 \begin_deeper
15385 \begin_layout Description
15386 \begin_inset Flex Code
15387 status collapsed
15388
15389 \begin_layout Plain Layout
15390 Paragraph
15391 \end_layout
15392
15393 \end_inset
15394
15395  means nothing special.
15396 \end_layout
15397
15398 \begin_layout Description
15399 \begin_inset Flex Code
15400 status collapsed
15401
15402 \begin_layout Plain Layout
15403 Command
15404 \end_layout
15405
15406 \end_inset
15407
15408  means 
15409 \begin_inset Flex Code
15410 status collapsed
15411
15412 \begin_layout Plain Layout
15413
15414 \backslash
15415
15416 \emph on
15417 LatexName
15418 \emph default
15419 {\SpecialChar ldots
15420 }
15421 \end_layout
15422
15423 \end_inset
15424
15425 .
15426 \end_layout
15427
15428 \begin_layout Description
15429 \begin_inset Flex Code
15430 status collapsed
15431
15432 \begin_layout Plain Layout
15433 Environment
15434 \end_layout
15435
15436 \end_inset
15437
15438  means 
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443
15444 \backslash
15445 begin{
15446 \emph on
15447 LatexName
15448 \emph default
15449 }\SpecialChar ldots
15450
15451 \backslash
15452 end{
15453 \emph on
15454 LatexName
15455 \emph default
15456 }
15457 \end_layout
15458
15459 \end_inset
15460
15461 .
15462  
15463 \end_layout
15464
15465 \begin_layout Description
15466 \begin_inset Flex Code
15467 status collapsed
15468
15469 \begin_layout Plain Layout
15470 Item_Environment
15471 \end_layout
15472
15473 \end_inset
15474
15475  is the same as 
15476 \begin_inset Flex Code
15477 status collapsed
15478
15479 \begin_layout Plain Layout
15480 Environment
15481 \end_layout
15482
15483 \end_inset
15484
15485 , except that an 
15486 \begin_inset Flex Code
15487 status collapsed
15488
15489 \begin_layout Plain Layout
15490
15491 \backslash
15492 item
15493 \end_layout
15494
15495 \end_inset
15496
15497  is generated for each paragraph of this environment.
15498  
15499 \end_layout
15500
15501 \begin_layout Description
15502 \begin_inset Flex Code
15503 status collapsed
15504
15505 \begin_layout Plain Layout
15506 List_Environment
15507 \end_layout
15508
15509 \end_inset
15510
15511  is the same as 
15512 \begin_inset Flex Code
15513 status collapsed
15514
15515 \begin_layout Plain Layout
15516 Item_Environment
15517 \end_layout
15518
15519 \end_inset
15520
15521 , except that
15522 \begin_inset Newline newline
15523 \end_inset
15524
15525
15526 \begin_inset Flex Code
15527 status collapsed
15528
15529 \begin_layout Plain Layout
15530 LabelWidthString
15531 \end_layout
15532
15533 \end_inset
15534
15535  is passed as an argument to the environment.
15536 \begin_inset Newline newline
15537 \end_inset
15538
15539
15540 \begin_inset Flex Code
15541 status collapsed
15542
15543 \begin_layout Plain Layout
15544 LabelWidthString
15545 \end_layout
15546
15547 \end_inset
15548
15549  can be defined in the 
15550 \begin_inset Flex Noun
15551 status collapsed
15552
15553 \begin_layout Plain Layout
15554 Edit\SpecialChar menuseparator
15555 Paragraph
15556 \begin_inset space ~
15557 \end_inset
15558
15559 settings
15560 \end_layout
15561
15562 \end_inset
15563
15564  dialog.
15565 \end_layout
15566
15567 \begin_layout Description
15568 \begin_inset Flex Code
15569 status collapsed
15570
15571 \begin_layout Plain Layout
15572 Bib_Environment
15573 \end_layout
15574
15575 \end_inset
15576
15577  is like 
15578 \begin_inset Flex Code
15579 status collapsed
15580
15581 \begin_layout Plain Layout
15582 Environment
15583 \end_layout
15584
15585 \end_inset
15586
15587  but adds the necessary mandatory argument (the longest label) to the begin
15588  statement of the bibliography environment:
15589 \begin_inset Newline newline
15590 \end_inset
15591
15592
15593 \begin_inset Flex Code
15594 status collapsed
15595
15596 \begin_layout Plain Layout
15597
15598 \backslash
15599 begin{thebibliography}{99}
15600 \end_layout
15601
15602 \end_inset
15603
15604 .
15605  It is therefore only useful for bibliography environments.
15606  The default longest label 
15607 \begin_inset Quotes eld
15608 \end_inset
15609
15610 99
15611 \begin_inset Quotes erd
15612 \end_inset
15613
15614  can be changed by the user in the paragraph settings of a bibliography
15615  item.
15616 \end_layout
15617
15618 \begin_layout Standard
15619 Putting the last few things together, the \SpecialChar LaTeX
15620  output will be either: 
15621 \end_layout
15622
15623 \begin_layout LyX-Code
15624
15625 \backslash
15626 LatexName[LatexParam]{\SpecialChar ldots
15627 }
15628 \end_layout
15629
15630 \begin_layout Standard
15631 or: 
15632 \end_layout
15633
15634 \begin_layout LyX-Code
15635
15636 \backslash
15637 begin{LatexName}[LatexParam] \SpecialChar ldots
15638  
15639 \backslash
15640 end{LatexName}.
15641 \end_layout
15642
15643 \begin_layout Standard
15644 depending upon the \SpecialChar LaTeX
15645  type.
15646 \end_layout
15647
15648 \end_deeper
15649 \begin_layout Description
15650 \begin_inset Flex Code
15651 status collapsed
15652
15653 \begin_layout Plain Layout
15654 LeftDelim
15655 \end_layout
15656
15657 \end_inset
15658
15659  [
15660 \begin_inset Flex Code
15661 status collapsed
15662
15663 \begin_layout Plain Layout
15664 string
15665 \end_layout
15666
15667 \end_inset
15668
15669 ] A string that is put at the beginning of the style content.
15670  A line break in the output can be indicated by 
15671 \begin_inset Flex Code
15672 status collapsed
15673
15674 \begin_layout Plain Layout
15675 <br/>
15676 \end_layout
15677
15678 \end_inset
15679
15680 .
15681 \end_layout
15682
15683 \begin_layout Description
15684 \begin_inset Flex Code
15685 status collapsed
15686
15687 \begin_layout Plain Layout
15688 LeftMargin
15689 \end_layout
15690
15691 \end_inset
15692
15693  [
15694 \begin_inset Flex Code
15695 status collapsed
15696
15697 \begin_layout Plain Layout
15698 string=""
15699 \end_layout
15700
15701 \end_inset
15702
15703 ] If you put styles into environments, the different 
15704 \begin_inset Flex Code
15705 status collapsed
15706
15707 \begin_layout Plain Layout
15708 LeftMargin
15709 \end_layout
15710
15711 \end_inset
15712
15713  are not simply added, but added with a factor 
15714 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15715 \end_inset
15716
15717 .
15718  Note that this parameter is also used when 
15719 \begin_inset Flex Code
15720 status collapsed
15721
15722 \begin_layout Plain Layout
15723 Margin
15724 \end_layout
15725
15726 \end_inset
15727
15728  is defined as 
15729 \begin_inset Flex Code
15730 status collapsed
15731
15732 \begin_layout Plain Layout
15733 Manual
15734 \end_layout
15735
15736 \end_inset
15737
15738  or 
15739 \begin_inset Flex Code
15740 status collapsed
15741
15742 \begin_layout Plain Layout
15743 Dynamic
15744 \end_layout
15745
15746 \end_inset
15747
15748 .
15749  Then it is added to the manual or dynamic margin.
15750 \begin_inset Newline newline
15751 \end_inset
15752
15753 For example 
15754 \begin_inset Quotes eld
15755 \end_inset
15756
15757
15758 \begin_inset Flex Code
15759 status collapsed
15760
15761 \begin_layout Plain Layout
15762 MM
15763 \end_layout
15764
15765 \end_inset
15766
15767
15768 \begin_inset Quotes erd
15769 \end_inset
15770
15771  means that the paragraph is indented with the width of 
15772 \begin_inset Quotes eld
15773 \end_inset
15774
15775
15776 \begin_inset Flex Code
15777 status collapsed
15778
15779 \begin_layout Plain Layout
15780 MM
15781 \end_layout
15782
15783 \end_inset
15784
15785
15786 \begin_inset Quotes erd
15787 \end_inset
15788
15789  in the normal font.
15790  You can get a negative width by prefixing the string with 
15791 \begin_inset Quotes eld
15792 \end_inset
15793
15794
15795 \begin_inset Flex Code
15796 status collapsed
15797
15798 \begin_layout Plain Layout
15799 -
15800 \end_layout
15801
15802 \end_inset
15803
15804
15805 \begin_inset Quotes erd
15806 \end_inset
15807
15808 .
15809  This way was chosen so that the look is the same with each used screen
15810  font.
15811 \end_layout
15812
15813 \begin_layout Description
15814 \begin_inset Flex Code
15815 status collapsed
15816
15817 \begin_layout Plain Layout
15818 Margin
15819 \end_layout
15820
15821 \end_inset
15822
15823  [
15824 \begin_inset Flex Code
15825 status collapsed
15826
15827 \begin_layout Plain Layout
15828
15829 \emph on
15830 Static
15831 \emph default
15832 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15833 \end_layout
15834
15835 \end_inset
15836
15837
15838 \begin_inset Newline newline
15839 \end_inset
15840
15841 The kind of margin that the style has on the left side.
15842 \end_layout
15843
15844 \begin_deeper
15845 \begin_layout Description
15846 \begin_inset Flex Code
15847 status collapsed
15848
15849 \begin_layout Plain Layout
15850 Static
15851 \end_layout
15852
15853 \end_inset
15854
15855  just means a fixed margin.
15856 \end_layout
15857
15858 \begin_layout Description
15859 \begin_inset Flex Code
15860 status collapsed
15861
15862 \begin_layout Plain Layout
15863 Manual
15864 \end_layout
15865
15866 \end_inset
15867
15868  means that the left margin depends on the string entered in the 
15869 \begin_inset Flex Noun
15870 status collapsed
15871
15872 \begin_layout Plain Layout
15873 Edit\SpecialChar menuseparator
15874 Paragraph
15875 \begin_inset space ~
15876 \end_inset
15877
15878 Settings
15879 \end_layout
15880
15881 \end_inset
15882
15883  dialog.
15884  This is used to typeset nice lists without tabulators.
15885 \end_layout
15886
15887 \begin_layout Description
15888 \begin_inset Flex Code
15889 status collapsed
15890
15891 \begin_layout Plain Layout
15892 Dynamic
15893 \end_layout
15894
15895 \end_inset
15896
15897  means that the margin depends on the size of the label.
15898  This is used for automatic enumerated headlines.
15899  It is obvious that the headline 
15900 \begin_inset Quotes eld
15901 \end_inset
15902
15903 5.4.3.2.1 Very long headline
15904 \begin_inset Quotes erd
15905 \end_inset
15906
15907  must have a wider left margin (as wide as 
15908 \begin_inset Quotes eld
15909 \end_inset
15910
15911 5.4.3.2.1
15912 \begin_inset Quotes erd
15913 \end_inset
15914
15915  plus the space) than 
15916 \begin_inset Quotes eld
15917 \end_inset
15918
15919 3.2 Very long headline
15920 \begin_inset Quotes erd
15921 \end_inset
15922
15923 , even if standard 
15924 \begin_inset Quotes eld
15925 \end_inset
15926
15927 word processors
15928 \begin_inset Quotes erd
15929 \end_inset
15930
15931  are not able to do this.
15932 \end_layout
15933
15934 \begin_layout Description
15935 \begin_inset Flex Code
15936 status collapsed
15937
15938 \begin_layout Plain Layout
15939 First_Dynamic
15940 \end_layout
15941
15942 \end_inset
15943
15944  is similar, but only the very first row of the paragraph is dynamic, while
15945  the others are static; this is used, for example, for descriptions.
15946 \end_layout
15947
15948 \begin_layout Description
15949 \begin_inset Flex Code
15950 status collapsed
15951
15952 \begin_layout Plain Layout
15953 Right_Address_Box
15954 \end_layout
15955
15956 \end_inset
15957
15958  means the margin is chosen in a way that the longest row of this paragraph
15959  fits to the right margin.
15960  This is used to typeset an address on the right edge of the page.
15961 \end_layout
15962
15963 \end_deeper
15964 \begin_layout Description
15965 \begin_inset Flex Code
15966 status collapsed
15967
15968 \begin_layout Plain Layout
15969 NeedProtect
15970 \end_layout
15971
15972 \end_inset
15973
15974  [
15975 \begin_inset Flex Code
15976 status collapsed
15977
15978 \begin_layout Plain Layout
15979
15980 \emph on
15981 0
15982 \end_layout
15983
15984 \end_inset
15985
15986 ,
15987 \begin_inset space \thinspace{}
15988 \end_inset
15989
15990
15991 \begin_inset Flex Code
15992 status collapsed
15993
15994 \begin_layout Plain Layout
15995 1
15996 \end_layout
15997
15998 \end_inset
15999
16000 ] Whether fragile commands in this style should be 
16001 \begin_inset Flex Code
16002 status collapsed
16003
16004 \begin_layout Plain Layout
16005
16006 \backslash
16007 protect
16008 \end_layout
16009
16010 \end_inset
16011
16012 'ed.
16013  (Note: This is 
16014 \emph on
16015 not
16016 \emph default
16017  whether this command should itself be protected.)
16018 \change_inserted -712698321 1523696949
16019
16020 \end_layout
16021
16022 \begin_layout Description
16023
16024 \change_inserted -712698321 1552395557
16025 \begin_inset Flex Code
16026 status collapsed
16027
16028 \begin_layout Plain Layout
16029
16030 \change_inserted -712698321 1523696950
16031 NeedCProtect
16032 \change_unchanged
16033
16034 \end_layout
16035
16036 \end_inset
16037
16038  [
16039 \begin_inset Flex Code
16040 status collapsed
16041
16042 \begin_layout Plain Layout
16043
16044 \change_inserted -712698321 1523696950
16045
16046 \emph on
16047 0
16048 \change_unchanged
16049
16050 \end_layout
16051
16052 \end_inset
16053
16054 ,
16055 \begin_inset space \thinspace{}
16056 \end_inset
16057
16058
16059 \begin_inset Flex Code
16060 status collapsed
16061
16062 \begin_layout Plain Layout
16063
16064 \change_inserted -712698321 1523696950
16065 1
16066 \change_unchanged
16067
16068 \end_layout
16069
16070 \end_inset
16071
16072 ] This causes macros that contain this layout to be protected with 
16073 \begin_inset Flex Code
16074 status collapsed
16075
16076 \begin_layout Plain Layout
16077
16078 \change_inserted -712698321 1523696950
16079
16080 \backslash
16081 cprotect
16082 \change_unchanged
16083
16084 \end_layout
16085
16086 \end_inset
16087
16088  (cf.
16089  package 
16090 \family sans
16091 cprotect
16092 \family default
16093 ) if necessary and thus allows (some) verbatim stuff in macros.
16094 \end_layout
16095
16096 \begin_layout Description
16097
16098 \change_inserted -712698321 1552395844
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103
16104 \change_inserted -712698321 1552395561
16105 NeedMBoxProtect
16106 \change_unchanged
16107
16108 \end_layout
16109
16110 \end_inset
16111
16112  [
16113 \begin_inset Flex Code
16114 status collapsed
16115
16116 \begin_layout Plain Layout
16117
16118 \change_inserted -712698321 1552395557
16119
16120 \emph on
16121 0
16122 \change_unchanged
16123
16124 \end_layout
16125
16126 \end_inset
16127
16128 ,
16129 \begin_inset space \thinspace{}
16130 \end_inset
16131
16132
16133 \begin_inset Flex Code
16134 status collapsed
16135
16136 \begin_layout Plain Layout
16137
16138 \change_inserted -712698321 1552395557
16139 1
16140 \change_unchanged
16141
16142 \end_layout
16143
16144 \end_inset
16145
16146 ] Whether specific commands in this style (such as 
16147 \begin_inset Flex Code
16148 status collapsed
16149
16150 \begin_layout Plain Layout
16151
16152 \change_inserted -712698321 1552395655
16153
16154 \backslash
16155 cite
16156 \change_unchanged
16157
16158 \end_layout
16159
16160 \end_inset
16161
16162  and 
16163 \begin_inset Flex Code
16164 status collapsed
16165
16166 \begin_layout Plain Layout
16167
16168 \change_inserted -712698321 1552395661
16169
16170 \backslash
16171 ref
16172 \change_unchanged
16173
16174 \end_layout
16175
16176 \end_inset
16177
16178 ) should be protected in an 
16179 \begin_inset Flex Code
16180 status collapsed
16181
16182 \begin_layout Plain Layout
16183
16184 \change_inserted -712698321 1552395631
16185
16186 \backslash
16187 mbox
16188 \change_unchanged
16189
16190 \end_layout
16191
16192 \end_inset
16193
16194 .
16195  This is particularly needed for styles that draw on 
16196 \family sans
16197 ulem
16198 \family default
16199  or 
16200 \family sans
16201 soul
16202 \family default
16203  commands which parse their content in complex ways.
16204 \change_unchanged
16205
16206 \end_layout
16207
16208 \begin_layout Description
16209 \begin_inset Flex Code
16210 status collapsed
16211
16212 \begin_layout Plain Layout
16213 Newline
16214 \end_layout
16215
16216 \end_inset
16217
16218  [
16219 \begin_inset Flex Code
16220 status collapsed
16221
16222 \begin_layout Plain Layout
16223 0
16224 \end_layout
16225
16226 \end_inset
16227
16228 ,
16229 \begin_inset space \thinspace{}
16230 \end_inset
16231
16232
16233 \begin_inset Flex Code
16234 status collapsed
16235
16236 \begin_layout Plain Layout
16237
16238 \emph on
16239 1
16240 \end_layout
16241
16242 \end_inset
16243
16244 ] Whether newlines are translated into \SpecialChar LaTeX
16245  newlines (
16246 \begin_inset Flex Code
16247 status collapsed
16248
16249 \begin_layout Plain Layout
16250
16251 \backslash
16252
16253 \backslash
16254
16255 \end_layout
16256
16257 \end_inset
16258
16259 ) or not.
16260  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16261  editing
16262  inside \SpecialChar LyX
16263 .
16264 \end_layout
16265
16266 \begin_layout Description
16267 \begin_inset Flex Code
16268 status collapsed
16269
16270 \begin_layout Plain Layout
16271 NextNoIndent
16272 \end_layout
16273
16274 \end_inset
16275
16276  [
16277 \begin_inset Flex Code
16278 status collapsed
16279
16280 \begin_layout Plain Layout
16281
16282 \emph on
16283 0
16284 \end_layout
16285
16286 \end_inset
16287
16288 ,
16289 \begin_inset space \thinspace{}
16290 \end_inset
16291
16292
16293 \begin_inset Flex Code
16294 status collapsed
16295
16296 \begin_layout Plain Layout
16297 1
16298 \end_layout
16299
16300 \end_inset
16301
16302 ] If set to true, and if 
16303 \begin_inset Flex Code
16304 status collapsed
16305
16306 \begin_layout Plain Layout
16307 DefaultStyle
16308 \end_layout
16309
16310 \end_inset
16311
16312  (usually 
16313 \begin_inset Flex Code
16314 status collapsed
16315
16316 \begin_layout Plain Layout
16317 Standard
16318 \end_layout
16319
16320 \end_inset
16321
16322 ) paragraphs are being indented, then the indentation of such a paragraph
16323  following one of this type will be suppressed.
16324  (So this will not affect the display of non-default paragraphs.)
16325 \end_layout
16326
16327 \begin_layout Description
16328 \begin_inset Flex Code
16329 status collapsed
16330
16331 \begin_layout Plain Layout
16332 ObsoletedBy
16333 \end_layout
16334
16335 \end_inset
16336
16337  [
16338 \begin_inset Flex Code
16339 status collapsed
16340
16341 \begin_layout Plain Layout
16342 <name>
16343 \end_layout
16344
16345 \end_inset
16346
16347 ] Name of a style that has replaced this style.
16348  This is used to rename a style, while keeping backward compatibility.
16349 \end_layout
16350
16351 \begin_layout Description
16352 \begin_inset Flex Code
16353 status collapsed
16354
16355 \begin_layout Plain Layout
16356 ParagraphGroup
16357 \end_layout
16358
16359 \end_inset
16360
16361  [
16362 \begin_inset Flex Code
16363 status collapsed
16364
16365 \begin_layout Plain Layout
16366 0
16367 \end_layout
16368
16369 \end_inset
16370
16371 ,
16372 \begin_inset space \thinspace{}
16373 \end_inset
16374
16375
16376 \begin_inset Flex Code
16377 status collapsed
16378
16379 \begin_layout Plain Layout
16380 1
16381 \end_layout
16382
16383 \end_inset
16384
16385 ] Determines whether consecutive paragraphs of the same type are treated
16386  as belonging together.
16387  This has the effect that the 
16388 \begin_inset Flex Code
16389 status collapsed
16390
16391 \begin_layout Plain Layout
16392 GuiLabel
16393 \end_layout
16394
16395 \end_inset
16396
16397  is only printed once before such a group.
16398  By default, this is true for 
16399 \begin_inset Flex Code
16400 status collapsed
16401
16402 \begin_layout Plain Layout
16403 LaTeXType
16404 \end_layout
16405
16406 \end_inset
16407
16408  
16409 \begin_inset Flex Code
16410 status collapsed
16411
16412 \begin_layout Plain Layout
16413 Environment
16414 \end_layout
16415
16416 \end_inset
16417
16418  and 
16419 \begin_inset Flex Code
16420 status collapsed
16421
16422 \begin_layout Plain Layout
16423 Bib_Environment
16424 \end_layout
16425
16426 \end_inset
16427
16428  and false for all other types.
16429 \end_layout
16430
16431 \begin_layout Description
16432 \begin_inset Flex Code
16433 status collapsed
16434
16435 \begin_layout Plain Layout
16436 ParbreakIsNewline
16437 \end_layout
16438
16439 \end_inset
16440
16441  [
16442 \begin_inset Flex Code
16443 status collapsed
16444
16445 \begin_layout Plain Layout
16446
16447 \emph on
16448 0
16449 \end_layout
16450
16451 \end_inset
16452
16453 ,
16454 \begin_inset space \thinspace{}
16455 \end_inset
16456
16457
16458 \begin_inset Flex Code
16459 status collapsed
16460
16461 \begin_layout Plain Layout
16462 1
16463 \end_layout
16464
16465 \end_inset
16466
16467 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16468  output,
16469  but only by a line break; together with 
16470 \begin_inset Flex Code
16471 status collapsed
16472
16473 \begin_layout Plain Layout
16474 PassThru 1
16475 \end_layout
16476
16477 \end_inset
16478
16479 , this allows to emulate a plain text editor (like the ERT inset).
16480 \end_layout
16481
16482 \begin_layout Description
16483 \begin_inset Flex Code
16484 status collapsed
16485
16486 \begin_layout Plain Layout
16487 ParIndent
16488 \end_layout
16489
16490 \end_inset
16491
16492  [
16493 \begin_inset Flex Code
16494 status collapsed
16495
16496 \begin_layout Plain Layout
16497 string=""
16498 \end_layout
16499
16500 \end_inset
16501
16502 ] The indent of the very first line of a paragraph.
16503  The
16504 \begin_inset Newline newline
16505 \end_inset
16506
16507
16508 \begin_inset Flex Code
16509 status collapsed
16510
16511 \begin_layout Plain Layout
16512 Parindent
16513 \end_layout
16514
16515 \end_inset
16516
16517  will be fixed for a certain style.
16518  The exception is the default style, since the indentation for these paragraphs
16519  can be prohibited with 
16520 \begin_inset Flex Code
16521 status collapsed
16522
16523 \begin_layout Plain Layout
16524 NextNoIndent
16525 \end_layout
16526
16527 \end_inset
16528
16529 .
16530  Also, 
16531 \begin_inset Flex Code
16532 status collapsed
16533
16534 \begin_layout Plain Layout
16535 Standard
16536 \end_layout
16537
16538 \end_inset
16539
16540  style paragraphs inside environments use the 
16541 \begin_inset Flex Code
16542 status collapsed
16543
16544 \begin_layout Plain Layout
16545 Parindent
16546 \end_layout
16547
16548 \end_inset
16549
16550  of the environment, not their native one.
16551  For example, 
16552 \begin_inset Flex Code
16553 status collapsed
16554
16555 \begin_layout Plain Layout
16556 Standard
16557 \end_layout
16558
16559 \end_inset
16560
16561  paragraphs inside an enumeration are not indented.
16562 \end_layout
16563
16564 \begin_layout Description
16565 \begin_inset Flex Code
16566 status collapsed
16567
16568 \begin_layout Plain Layout
16569 ParSep
16570 \end_layout
16571
16572 \end_inset
16573
16574  [
16575 \begin_inset Flex Code
16576 status collapsed
16577
16578 \begin_layout Plain Layout
16579 float=0
16580 \end_layout
16581
16582 \end_inset
16583
16584 ] The vertical space between two paragraphs of this style.
16585 \end_layout
16586
16587 \begin_layout Description
16588 \begin_inset Flex Code
16589 status collapsed
16590
16591 \begin_layout Plain Layout
16592 Parskip
16593 \end_layout
16594
16595 \end_inset
16596
16597  [
16598 \begin_inset Flex Code
16599 status collapsed
16600
16601 \begin_layout Plain Layout
16602 float=0
16603 \end_layout
16604
16605 \end_inset
16606
16607 ] \SpecialChar LyX
16608  allows the user to choose either 
16609 \begin_inset Quotes eld
16610 \end_inset
16611
16612 indent
16613 \begin_inset Quotes erd
16614 \end_inset
16615
16616  or 
16617 \begin_inset Quotes eld
16618 \end_inset
16619
16620 skip
16621 \begin_inset Quotes erd
16622 \end_inset
16623
16624  to separate paragraphs.
16625  When 
16626 \begin_inset Quotes eld
16627 \end_inset
16628
16629 indent
16630 \begin_inset Quotes erd
16631 \end_inset
16632
16633  is chosen, 
16634 \begin_inset Flex Code
16635 status collapsed
16636
16637 \begin_layout Plain Layout
16638 Parskip
16639 \end_layout
16640
16641 \end_inset
16642
16643  is ignored.
16644  When 
16645 \begin_inset Quotes eld
16646 \end_inset
16647
16648 skip
16649 \begin_inset Quotes erd
16650 \end_inset
16651
16652  is chosen, 
16653 \begin_inset Flex Code
16654 status collapsed
16655
16656 \begin_layout Plain Layout
16657 ParIndent
16658 \end_layout
16659
16660 \end_inset
16661
16662  is ignored and all paragraphs are separated by the 
16663 \begin_inset Flex Code
16664 status collapsed
16665
16666 \begin_layout Plain Layout
16667 Parskip
16668 \end_layout
16669
16670 \end_inset
16671
16672  argument.
16673  The vertical space is calculated with 
16674 \begin_inset Flex Code
16675 status collapsed
16676
16677 \begin_layout Plain Layout
16678 Parskip
16679 \begin_inset space ~
16680 \end_inset
16681
16682 * DefaultHeight
16683 \end_layout
16684
16685 \end_inset
16686
16687  where 
16688 \begin_inset Flex Code
16689 status collapsed
16690
16691 \begin_layout Plain Layout
16692 DefaultHeight
16693 \end_layout
16694
16695 \end_inset
16696
16697  is the height of a row with the normal font.
16698  This way, the look stays the same with different screen fonts.
16699 \end_layout
16700
16701 \begin_layout Description
16702 \begin_inset Flex Code
16703 status collapsed
16704
16705 \begin_layout Plain Layout
16706 PassThru
16707 \end_layout
16708
16709 \end_inset
16710
16711  [
16712 \begin_inset Flex Code
16713 status collapsed
16714
16715 \begin_layout Plain Layout
16716
16717 \emph on
16718 0
16719 \end_layout
16720
16721 \end_inset
16722
16723 ,
16724 \begin_inset space \thinspace{}
16725 \end_inset
16726
16727
16728 \begin_inset Flex Code
16729 status collapsed
16730
16731 \begin_layout Plain Layout
16732 1
16733 \end_layout
16734
16735 \end_inset
16736
16737 ] Whether the contents of this paragraph should be output in raw form, meaning
16738  without special translations that \SpecialChar LaTeX
16739  would require.
16740 \end_layout
16741
16742 \begin_layout Description
16743 \begin_inset Flex Code
16744 status collapsed
16745
16746 \begin_layout Plain Layout
16747 PassThruChars
16748 \end_layout
16749
16750 \end_inset
16751
16752  [
16753 \begin_inset Flex Code
16754 status collapsed
16755
16756 \begin_layout Plain Layout
16757 string
16758 \end_layout
16759
16760 \end_inset
16761
16762 ]
16763 \family typewriter
16764  
16765 \family default
16766 Defines individual characters that should be output in raw form, meaning
16767  without special translations that \SpecialChar LaTeX
16768  would require.
16769 \end_layout
16770
16771 \begin_layout Description
16772 \begin_inset Flex Code
16773 status collapsed
16774
16775 \begin_layout Plain Layout
16776 Preamble
16777 \end_layout
16778
16779 \end_inset
16780
16781  Information to be included in the \SpecialChar LaTeX
16782  preamble when this style is used.
16783  Used to define macros, load packages, etc., required by this particular
16784  style.
16785  Must end with 
16786 \begin_inset Quotes eld
16787 \end_inset
16788
16789
16790 \begin_inset Flex Code
16791 status collapsed
16792
16793 \begin_layout Plain Layout
16794 EndPreamble
16795 \end_layout
16796
16797 \end_inset
16798
16799
16800 \begin_inset Quotes erd
16801 \end_inset
16802
16803 .
16804 \end_layout
16805
16806 \begin_layout Description
16807 \begin_inset Flex Code
16808 status collapsed
16809
16810 \begin_layout Plain Layout
16811 RefPrefix
16812 \end_layout
16813
16814 \end_inset
16815
16816  [
16817 \begin_inset Flex Code
16818 status collapsed
16819
16820 \begin_layout Plain Layout
16821 string
16822 \end_layout
16823
16824 \end_inset
16825
16826 ] The prefix to use when creating labels referring to paragraphs of this
16827  type.
16828  This allows the use of formatted references.
16829 \end_layout
16830
16831 \begin_layout Description
16832 \begin_inset Flex Code
16833 status collapsed
16834
16835 \begin_layout Plain Layout
16836 Requires 
16837 \end_layout
16838
16839 \end_inset
16840
16841  [
16842 \begin_inset Flex Code
16843 status collapsed
16844
16845 \begin_layout Plain Layout
16846 string
16847 \end_layout
16848
16849 \end_inset
16850
16851 ] Whether the style requires the feature 
16852 \begin_inset Flex Code
16853 status collapsed
16854
16855 \begin_layout Plain Layout
16856 string
16857 \end_layout
16858
16859 \end_inset
16860
16861  (see 
16862 \begin_inset CommandInset ref
16863 LatexCommand ref
16864 reference "chap:List-of-functions"
16865
16866 \end_inset
16867
16868  for the list of features).
16869  If you require a package with specific options, you can additionally use
16870  
16871 \begin_inset Flex Code
16872 status collapsed
16873
16874 \begin_layout Plain Layout
16875 PackageOptions
16876 \end_layout
16877
16878 \end_inset
16879
16880  as a general text class parameter (see 
16881 \begin_inset CommandInset ref
16882 LatexCommand ref
16883 reference "subsec:General-text-class"
16884
16885 \end_inset
16886
16887 ).
16888 \end_layout
16889
16890 \begin_layout Description
16891 \begin_inset Flex Code
16892 status collapsed
16893
16894 \begin_layout Plain Layout
16895 ResetArgs
16896 \end_layout
16897
16898 \end_inset
16899
16900  [
16901 \begin_inset Flex Code
16902 status collapsed
16903
16904 \begin_layout Plain Layout
16905
16906 \emph on
16907 0
16908 \end_layout
16909
16910 \end_inset
16911
16912 ,
16913 \begin_inset Flex Code
16914 status collapsed
16915
16916 \begin_layout Plain Layout
16917 1
16918 \end_layout
16919
16920 \end_inset
16921
16922 ] Resets the \SpecialChar LaTeX
16923  arguments of this style (as defined via the 
16924 \begin_inset Flex Code
16925 status collapsed
16926
16927 \begin_layout Plain Layout
16928 Argument
16929 \end_layout
16930
16931 \end_inset
16932
16933  tag).
16934  This is useful if you have copied a style via 
16935 \begin_inset Flex Code
16936 status collapsed
16937
16938 \begin_layout Plain Layout
16939 CopyStyle
16940 \end_layout
16941
16942 \end_inset
16943
16944 , but you do not want to inherit its (required and optional) arguments.
16945 \end_layout
16946
16947 \begin_layout Description
16948 \begin_inset Flex Code
16949 status collapsed
16950
16951 \begin_layout Plain Layout
16952 ResumeCounter
16953 \end_layout
16954
16955 \end_inset
16956
16957  [
16958 \begin_inset Flex Code
16959 status collapsed
16960
16961 \begin_layout Plain Layout
16962
16963 \emph on
16964 0
16965 \end_layout
16966
16967 \end_inset
16968
16969 ,
16970 \begin_inset Flex Code
16971 status collapsed
16972
16973 \begin_layout Plain Layout
16974 1
16975 \end_layout
16976
16977 \end_inset
16978
16979 ] Resumes a counter that is usually reset at each new sequence of layouts.
16980  This is currently only useful when 
16981 \begin_inset Flex Code
16982 status collapsed
16983
16984 \begin_layout Plain Layout
16985 LabelType
16986 \end_layout
16987
16988 \end_inset
16989
16990  is 
16991 \begin_inset Flex Code
16992 status collapsed
16993
16994 \begin_layout Plain Layout
16995 Enumerate
16996 \end_layout
16997
16998 \end_inset
16999
17000 .
17001 \end_layout
17002
17003 \begin_layout Description
17004 \begin_inset Flex Code
17005 status collapsed
17006
17007 \begin_layout Plain Layout
17008 RightDelim
17009 \end_layout
17010
17011 \end_inset
17012
17013  [
17014 \begin_inset Flex Code
17015 status collapsed
17016
17017 \begin_layout Plain Layout
17018 string
17019 \end_layout
17020
17021 \end_inset
17022
17023 ] A string that is put at the end of the layout content.
17024  A line break in the output can be indicated by 
17025 \begin_inset Flex Code
17026 status collapsed
17027
17028 \begin_layout Plain Layout
17029 <br/>
17030 \end_layout
17031
17032 \end_inset
17033
17034 .
17035 \end_layout
17036
17037 \begin_layout Description
17038 \begin_inset Flex Code
17039 status collapsed
17040
17041 \begin_layout Plain Layout
17042 RightMargin
17043 \end_layout
17044
17045 \end_inset
17046
17047  [
17048 \begin_inset Flex Code
17049 status collapsed
17050
17051 \begin_layout Plain Layout
17052 string=""
17053 \end_layout
17054
17055 \end_inset
17056
17057 ] Similar to 
17058 \begin_inset Flex Code
17059 status collapsed
17060
17061 \begin_layout Plain Layout
17062 LeftMargin
17063 \end_layout
17064
17065 \end_inset
17066
17067 .
17068 \end_layout
17069
17070 \begin_layout Description
17071 \begin_inset Flex Code
17072 status collapsed
17073
17074 \begin_layout Plain Layout
17075 Spacing
17076 \end_layout
17077
17078 \end_inset
17079
17080  [
17081 \begin_inset Flex Code
17082 status collapsed
17083
17084 \begin_layout Plain Layout
17085
17086 \emph on
17087 single
17088 \end_layout
17089
17090 \end_inset
17091
17092
17093 \begin_inset Flex Code
17094 status collapsed
17095
17096 \begin_layout Plain Layout
17097 onehalf
17098 \end_layout
17099
17100 \end_inset
17101
17102
17103 \begin_inset Flex Code
17104 status collapsed
17105
17106 \begin_layout Plain Layout
17107 double
17108 \end_layout
17109
17110 \end_inset
17111
17112
17113 \begin_inset Flex Code
17114 status collapsed
17115
17116 \begin_layout Plain Layout
17117 other
17118 \begin_inset space ~
17119 \end_inset
17120
17121 <value>
17122 \end_layout
17123
17124 \end_inset
17125
17126 ] This defines what the default spacing should be in the style.
17127  The arguments 
17128 \begin_inset Flex Code
17129 status collapsed
17130
17131 \begin_layout Plain Layout
17132 single
17133 \end_layout
17134
17135 \end_inset
17136
17137
17138 \begin_inset Flex Code
17139 status collapsed
17140
17141 \begin_layout Plain Layout
17142 onehalf
17143 \end_layout
17144
17145 \end_inset
17146
17147  and 
17148 \begin_inset Flex Code
17149 status collapsed
17150
17151 \begin_layout Plain Layout
17152 double
17153 \end_layout
17154
17155 \end_inset
17156
17157  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
17158  If you specify the argument 
17159 \begin_inset Flex Code
17160 status collapsed
17161
17162 \begin_layout Plain Layout
17163 other
17164 \end_layout
17165
17166 \end_inset
17167
17168 , then you must also provide a value argument which will be the actual multiplie
17169 r value.
17170  Note that, contrary to other parameters, 
17171 \begin_inset Flex Code
17172 status collapsed
17173
17174 \begin_layout Plain Layout
17175 Spacing
17176 \end_layout
17177
17178 \end_inset
17179
17180  implies the generation of specific \SpecialChar LaTeX
17181  code, using the \SpecialChar LaTeX
17182  package 
17183 \family roman
17184
17185 \begin_inset Flex Code
17186 status collapsed
17187
17188 \begin_layout Plain Layout
17189 setspace
17190 \end_layout
17191
17192 \end_inset
17193
17194 .
17195 \end_layout
17196
17197 \begin_layout Description
17198 \begin_inset Flex Code
17199 status collapsed
17200
17201 \begin_layout Plain Layout
17202 Spellcheck
17203 \end_layout
17204
17205 \end_inset
17206
17207  [
17208 \begin_inset Flex Code
17209 status collapsed
17210
17211 \begin_layout Plain Layout
17212 0
17213 \end_layout
17214
17215 \end_inset
17216
17217 ,
17218 \begin_inset space \thinspace{}
17219 \end_inset
17220
17221
17222 \begin_inset Flex Code
17223 status collapsed
17224
17225 \begin_layout Plain Layout
17226
17227 \emph on
17228 1
17229 \end_layout
17230
17231 \end_inset
17232
17233 ] Allow spell-checking paragraphs of this style.
17234  Default is true.
17235 \end_layout
17236
17237 \begin_layout Description
17238 \begin_inset Flex Code
17239 status collapsed
17240
17241 \begin_layout Plain Layout
17242 StepMasterCounter
17243 \end_layout
17244
17245 \end_inset
17246
17247  [
17248 \begin_inset Flex Code
17249 status collapsed
17250
17251 \begin_layout Plain Layout
17252
17253 \emph on
17254 0
17255 \end_layout
17256
17257 \end_inset
17258
17259 ,
17260 \begin_inset Flex Code
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264 1
17265 \end_layout
17266
17267 \end_inset
17268
17269 ] Steps the master counter of a given counter at the beginning of a new
17270  sequence of layouts.
17271  This is currently only useful when 
17272 \begin_inset Flex Code
17273 status collapsed
17274
17275 \begin_layout Plain Layout
17276 LabelType
17277 \end_layout
17278
17279 \end_inset
17280
17281  is 
17282 \begin_inset Flex Code
17283 status collapsed
17284
17285 \begin_layout Plain Layout
17286 Enumerate
17287 \end_layout
17288
17289 \end_inset
17290
17291 .
17292 \end_layout
17293
17294 \begin_layout Description
17295 \begin_inset Flex Code
17296 status collapsed
17297
17298 \begin_layout Plain Layout
17299 TextFont
17300 \end_layout
17301
17302 \end_inset
17303
17304  The font used for the text body .
17305  See 
17306 \begin_inset CommandInset ref
17307 LatexCommand ref
17308 reference "subsec:Font-description"
17309
17310 \end_inset
17311
17312 .
17313 \end_layout
17314
17315 \begin_layout Description
17316 \begin_inset Flex Code
17317 status collapsed
17318
17319 \begin_layout Plain Layout
17320 TocLevel
17321 \end_layout
17322
17323 \end_inset
17324
17325
17326 \series medium
17327  [
17328 \begin_inset Flex Code
17329 status collapsed
17330
17331 \begin_layout Plain Layout
17332
17333 \series medium
17334 int=3
17335 \end_layout
17336
17337 \end_inset
17338
17339 ]
17340 \series default
17341  The level of the style in the table of contents.
17342  This is used for automatic numbering of section headings.
17343 \end_layout
17344
17345 \begin_layout Description
17346 \begin_inset Flex Code
17347 status collapsed
17348
17349 \begin_layout Plain Layout
17350 ToggleIndent
17351 \end_layout
17352
17353 \end_inset
17354
17355  [
17356 \emph on
17357
17358 \begin_inset Flex Code
17359 status collapsed
17360
17361 \begin_layout Plain Layout
17362
17363 \emph on
17364 default
17365 \end_layout
17366
17367 \end_inset
17368
17369
17370 \emph default
17371
17372 \begin_inset Flex Code
17373 status collapsed
17374
17375 \begin_layout Plain Layout
17376 always
17377 \end_layout
17378
17379 \end_inset
17380
17381
17382 \begin_inset Flex Code
17383 status collapsed
17384
17385 \begin_layout Plain Layout
17386 never
17387 \end_layout
17388
17389 \end_inset
17390
17391 ] This tag determines whether the first line indentation of this paragraph
17392  can be toggled via the Paragraph settings dialog.
17393  If 
17394 \emph on
17395
17396 \begin_inset Flex Code
17397 status collapsed
17398
17399 \begin_layout Plain Layout
17400
17401 \emph off
17402 default
17403 \end_layout
17404
17405 \end_inset
17406
17407
17408 \emph default
17409  is set, indentation can be toggled if the document settings use 
17410 \begin_inset Quotes eld
17411 \end_inset
17412
17413 indent
17414 \begin_inset Quotes erd
17415 \end_inset
17416
17417  paragraph style, with 
17418 \begin_inset Flex Code
17419 status collapsed
17420
17421 \begin_layout Plain Layout
17422 always
17423 \end_layout
17424
17425 \end_inset
17426
17427 , indentation can always be toggled, notwithstanding the document settings,
17428  with 
17429 \begin_inset Flex Code
17430 status collapsed
17431
17432 \begin_layout Plain Layout
17433 never
17434 \end_layout
17435
17436 \end_inset
17437
17438 , indentation can never be toggled.
17439 \end_layout
17440
17441 \begin_layout Description
17442 \begin_inset Flex Code
17443 status collapsed
17444
17445 \begin_layout Plain Layout
17446 TopSep
17447 \end_layout
17448
17449 \end_inset
17450
17451  [
17452 \begin_inset Flex Code
17453 status collapsed
17454
17455 \begin_layout Plain Layout
17456 float=0
17457 \end_layout
17458
17459 \end_inset
17460
17461 ] The vertical space with which the very first of a chain of paragraphs
17462  with this style is separated from the previous paragraph.
17463  If the previous paragraph has another style, the separations are not simply
17464  added, but the maximum is taken.
17465 \end_layout
17466
17467 \begin_layout Subsection
17468 \begin_inset CommandInset label
17469 LatexCommand label
17470 name "subsec:I18n"
17471
17472 \end_inset
17473
17474 Internationalization of Paragraph Styles
17475 \end_layout
17476
17477 \begin_layout Standard
17478 \SpecialChar LyX
17479  has long supported internationalization of layout information, but, until
17480  version 2.0, this applied only to the user interface and not to, say, PDF
17481  output.
17482  Thus, French authors were forced to resort to ugly hacks if they wanted
17483  `
17484 \lang french
17485 Théorème
17486 \lang english
17487  1' instead of `Theorem 1'.
17488  Thanks to Georg Baum, that is no longer the case.
17489 \end_layout
17490
17491 \begin_layout Standard
17492 If a 
17493 \begin_inset Flex Code
17494 status collapsed
17495
17496 \begin_layout Plain Layout
17497 Style
17498 \end_layout
17499
17500 \end_inset
17501
17502  defines text that is to appear in the typeset document, it may use 
17503 \begin_inset Flex Code
17504 status collapsed
17505
17506 \begin_layout Plain Layout
17507 LangPreamble
17508 \end_layout
17509
17510 \end_inset
17511
17512  and 
17513 \begin_inset Flex Code
17514 status collapsed
17515
17516 \begin_layout Plain Layout
17517 BabelPreamble
17518 \end_layout
17519
17520 \end_inset
17521
17522  to support non-English and even multi-language documents correctly.
17523  The following excerpt (from the 
17524 \begin_inset Flex Code
17525 status collapsed
17526
17527 \begin_layout Plain Layout
17528 theorems-ams.inc
17529 \end_layout
17530
17531 \end_inset
17532
17533  file) shows how this works:
17534 \end_layout
17535
17536 \begin_layout LyX-Code
17537 Preamble
17538 \end_layout
17539
17540 \begin_deeper
17541 \begin_layout LyX-Code
17542   
17543 \backslash
17544 theoremstyle{remark}
17545 \end_layout
17546
17547 \begin_layout LyX-Code
17548   
17549 \backslash
17550 newtheorem{claim}[thm]{
17551 \backslash
17552 protect
17553 \backslash
17554 claimname}
17555 \end_layout
17556
17557 \begin_layout LyX-Code
17558 EndPreamble
17559 \end_layout
17560
17561 \begin_layout LyX-Code
17562 LangPreamble
17563 \end_layout
17564
17565 \begin_layout LyX-Code
17566   
17567 \backslash
17568 providecommand{
17569 \backslash
17570 claimname}{_(Claim)}
17571 \end_layout
17572
17573 \begin_layout LyX-Code
17574 EndLangPreamble
17575 \end_layout
17576
17577 \begin_layout LyX-Code
17578 BabelPreamble
17579 \end_layout
17580
17581 \begin_layout LyX-Code
17582     
17583 \backslash
17584 addto
17585 \backslash
17586 captions$$lang{
17587 \backslash
17588 renewcommand{
17589 \backslash
17590 claimname}{_(Claim)}}
17591 \end_layout
17592
17593 \begin_layout LyX-Code
17594 EndBabelPreamble
17595 \end_layout
17596
17597 \end_deeper
17598 \begin_layout Standard
17599 In principle, any legal \SpecialChar LaTeX
17600  may appear in the 
17601 \begin_inset Flex Code
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605 LangPreamble
17606 \end_layout
17607
17608 \end_inset
17609
17610  and 
17611 \begin_inset Flex Code
17612 status collapsed
17613
17614 \begin_layout Plain Layout
17615 BabelPreamble
17616 \end_layout
17617
17618 \end_inset
17619
17620  tags, but in practice they will typically look as they do here.
17621  The key to correct translation of the typeset text is the definition of
17622  the \SpecialChar LaTeX
17623  command 
17624 \begin_inset Flex Code
17625 status collapsed
17626
17627 \begin_layout Plain Layout
17628
17629 \backslash
17630 claimname
17631 \end_layout
17632
17633 \end_inset
17634
17635  and its use in 
17636 \begin_inset Flex Code
17637 status collapsed
17638
17639 \begin_layout Plain Layout
17640
17641 \backslash
17642 newtheorem
17643 \end_layout
17644
17645 \end_inset
17646
17647 .
17648  
17649 \end_layout
17650
17651 \begin_layout Standard
17652 The 
17653 \begin_inset Flex Code
17654 status collapsed
17655
17656 \begin_layout Plain Layout
17657 LangPreamble
17658 \end_layout
17659
17660 \end_inset
17661
17662  tag provides for internationalization based upon the overall language of
17663  the document.
17664  The contents of the tag will be included in the preamble, just as with
17665  the 
17666 \begin_inset Flex Code
17667 status collapsed
17668
17669 \begin_layout Plain Layout
17670 Preamble
17671 \end_layout
17672
17673 \end_inset
17674
17675  tag.
17676  What makes it special is the use of the 
17677 \begin_inset Quotes eld
17678 \end_inset
17679
17680 function
17681 \begin_inset Quotes erd
17682 \end_inset
17683
17684  
17685 \begin_inset Flex Code
17686 status collapsed
17687
17688 \begin_layout Plain Layout
17689 _()
17690 \end_layout
17691
17692 \end_inset
17693
17694 , which will be replaced, when \SpecialChar LyX
17695  produces \SpecialChar LaTeX
17696  output, with the translation of
17697  its argument into the document language.
17698 \end_layout
17699
17700 \begin_layout Standard
17701 The 
17702 \begin_inset Flex Code
17703 status collapsed
17704
17705 \begin_layout Plain Layout
17706 BabelPreamble
17707 \end_layout
17708
17709 \end_inset
17710
17711  tag is more complex, since it is meant to provide support for multi-language
17712  documents and so offers an interface to the 
17713 \begin_inset Flex Code
17714 status collapsed
17715
17716 \begin_layout Plain Layout
17717 babel
17718 \end_layout
17719
17720 \end_inset
17721
17722  package.
17723  Its contents will be added to the preamble once for each language that
17724  appears in the document.
17725  In this case, the argument to 
17726 \begin_inset Flex Code
17727 status collapsed
17728
17729 \begin_layout Plain Layout
17730 _()
17731 \end_layout
17732
17733 \end_inset
17734
17735  will be replaced with its translation into the language in question; the
17736  expression 
17737 \begin_inset Flex Code
17738 status collapsed
17739
17740 \begin_layout Plain Layout
17741 $$lang
17742 \end_layout
17743
17744 \end_inset
17745
17746  is replaced by the language name (as used by the babel package).
17747 \end_layout
17748
17749 \begin_layout Standard
17750 A German document that also included a French section would thus have the
17751  following in the preamble:
17752 \end_layout
17753
17754 \begin_layout LyX-Code
17755
17756 \backslash
17757 addto
17758 \backslash
17759 captionsfrench{
17760 \backslash
17761 renewcommand{
17762 \backslash
17763 claimname}{Affirmation}}
17764 \begin_inset Newline newline
17765 \end_inset
17766
17767
17768 \backslash
17769 addto
17770 \backslash
17771 captionsngerman{
17772 \backslash
17773 renewcommand{
17774 \backslash
17775 claimname}{Behauptung}}
17776 \begin_inset Newline newline
17777 \end_inset
17778
17779
17780 \backslash
17781 providecommand{
17782 \backslash
17783 claimname}{Behauptung}
17784 \end_layout
17785
17786 \begin_layout Standard
17787 \SpecialChar LaTeX
17788  and 
17789 \begin_inset Flex Code
17790 status collapsed
17791
17792 \begin_layout Plain Layout
17793 babel
17794 \end_layout
17795
17796 \end_inset
17797
17798  will then conspire to produce the correct text in the output.
17799 \end_layout
17800
17801 \begin_layout Standard
17802 One important point to note here is that the translations are provided by
17803  \SpecialChar LyX
17804  itself, through the file 
17805 \begin_inset Flex Code
17806 status collapsed
17807
17808 \begin_layout Plain Layout
17809 layouttranslations
17810 \end_layout
17811
17812 \end_inset
17813
17814 .
17815  This means, in effect, that 
17816 \begin_inset Flex Code
17817 status collapsed
17818
17819 \begin_layout Plain Layout
17820 LangPreamble
17821 \end_layout
17822
17823 \end_inset
17824
17825  and 
17826 \begin_inset Flex Code
17827 status collapsed
17828
17829 \begin_layout Plain Layout
17830 BabelPreamble
17831 \end_layout
17832
17833 \end_inset
17834
17835  are really only of use in layout files that are provided with \SpecialChar LyX
17836 , since text
17837  entered in user-created layout files will not be seen by \SpecialChar LyX
17838 's internationalizatio
17839 n routines unless the 
17840 \begin_inset Flex Code
17841 status collapsed
17842
17843 \begin_layout Plain Layout
17844 layouttranslations
17845 \end_layout
17846
17847 \end_inset
17848
17849  file is modified accordingly.
17850  That said, however, any layout created with the intention that it will
17851  be included with \SpecialChar LyX
17852  should use these tags where appropriate.
17853  Please note that the paragraph style translations provided by \SpecialChar LyX
17854  will never
17855  change with a minor update (e.
17856 \begin_inset space \thinspace{}
17857 \end_inset
17858
17859 g.
17860 \begin_inset space \space{}
17861 \end_inset
17862
17863 from version 2.1.x to 2.1.y).
17864  It is however quite likely that a major update (e.
17865 \begin_inset space \thinspace{}
17866 \end_inset
17867
17868 g.
17869 \begin_inset space \space{}
17870 \end_inset
17871
17872 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17873 \end_layout
17874
17875 \begin_layout Subsection
17876 Floats
17877 \begin_inset CommandInset label
17878 LatexCommand label
17879 name "subsec:Floats"
17880
17881 \end_inset
17882
17883
17884 \end_layout
17885
17886 \begin_layout Standard
17887 It is necessary to define the floats (
17888 \begin_inset Flex Noun
17889 status collapsed
17890
17891 \begin_layout Plain Layout
17892 figure
17893 \end_layout
17894
17895 \end_inset
17896
17897
17898 \begin_inset Flex Noun
17899 status collapsed
17900
17901 \begin_layout Plain Layout
17902 table
17903 \end_layout
17904
17905 \end_inset
17906
17907 , \SpecialChar ldots
17908 ) in the text class itself.
17909  Standard floats are included in the file 
17910 \begin_inset Flex Code
17911 status collapsed
17912
17913 \begin_layout Plain Layout
17914 stdfloats.inc
17915 \end_layout
17916
17917 \end_inset
17918
17919 , so you may have to do no more than add
17920 \end_layout
17921
17922 \begin_layout LyX-Code
17923 Input stdfloats.inc
17924 \end_layout
17925
17926 \begin_layout Standard
17927 to your layout file.
17928  If you want to implement a text class that proposes some other float types
17929  (like the AGU class bundled with \SpecialChar LyX
17930 ), the information below will hopefully
17931  help you:
17932 \end_layout
17933
17934 \begin_layout Description
17935 \begin_inset Flex Code
17936 status collapsed
17937
17938 \begin_layout Plain Layout
17939 AllowedPlacement
17940 \end_layout
17941
17942 \end_inset
17943
17944  [
17945 \begin_inset Flex Code
17946 status collapsed
17947
17948 \begin_layout Plain Layout
17949 string
17950 \end_layout
17951
17952 \end_inset
17953
17954 =!htbpH] Allowed placement options for this float type.
17955  The value is a string of placement characters.
17956  Possible characters include: 
17957 \emph on
17958 h
17959 \emph default
17960  (
17961 \begin_inset Quotes eld
17962 \end_inset
17963
17964 here if possible
17965 \begin_inset Quotes erd
17966 \end_inset
17967
17968 ), 
17969 \emph on
17970 t
17971 \emph default
17972  (
17973 \begin_inset Quotes eld
17974 \end_inset
17975
17976 top of page
17977 \begin_inset Quotes erd
17978 \end_inset
17979
17980 ), 
17981 \emph on
17982 b
17983 \emph default
17984  (
17985 \begin_inset Quotes eld
17986 \end_inset
17987
17988 bottom of page
17989 \begin_inset Quotes erd
17990 \end_inset
17991
17992 ), 
17993 \emph on
17994 p
17995 \emph default
17996  (
17997 \begin_inset Quotes eld
17998 \end_inset
17999
18000 page of floats
18001 \begin_inset Quotes erd
18002 \end_inset
18003
18004 ), 
18005 \emph on
18006 H
18007 \emph default
18008  (
18009 \begin_inset Quotes eld
18010 \end_inset
18011
18012 here definitely
18013 \begin_inset Quotes erd
18014 \end_inset
18015
18016 ) and 
18017 \emph on
18018 !
18019 \emph default
18020  (
18021 \begin_inset Quotes eld
18022 \end_inset
18023
18024 ignore LaTeX rules
18025 \begin_inset Quotes erd
18026 \end_inset
18027
18028 ).
18029  The order of the characters in the string does not matter.
18030  If no placement options are allowed, use the string 
18031 \emph on
18032 none
18033 \emph default
18034 .
18035 \end_layout
18036
18037 \begin_layout Description
18038 \begin_inset Flex Code
18039 status collapsed
18040
18041 \begin_layout Plain Layout
18042 AllowsSideways
18043 \end_layout
18044
18045 \end_inset
18046
18047  [
18048 \begin_inset Flex Code
18049 status collapsed
18050
18051 \begin_layout Plain Layout
18052
18053 \emph off
18054 0
18055 \end_layout
18056
18057 \end_inset
18058
18059 ,
18060 \begin_inset space \thinspace{}
18061 \end_inset
18062
18063
18064 \emph on
18065
18066 \begin_inset Flex Code
18067 status collapsed
18068
18069 \begin_layout Plain Layout
18070
18071 \emph on
18072 1
18073 \end_layout
18074
18075 \end_inset
18076
18077
18078 \emph default
18079 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
18080 -package 
18081 \family typewriter
18082 rotfloat
18083 \family default
18084  (sidewaysfloat).
18085  Set to 
18086 \begin_inset Flex Code
18087 status collapsed
18088
18089 \begin_layout Plain Layout
18090 0
18091 \end_layout
18092
18093 \end_inset
18094
18095  if the float does not support this feature.
18096 \end_layout
18097
18098 \begin_layout Description
18099 \begin_inset Flex Code
18100 status collapsed
18101
18102 \begin_layout Plain Layout
18103 AllowsWide
18104 \end_layout
18105
18106 \end_inset
18107
18108  [
18109 \begin_inset Flex Code
18110 status collapsed
18111
18112 \begin_layout Plain Layout
18113
18114 \emph off
18115 0
18116 \end_layout
18117
18118 \end_inset
18119
18120 ,
18121 \begin_inset space \thinspace{}
18122 \end_inset
18123
18124
18125 \emph on
18126
18127 \begin_inset Flex Code
18128 status collapsed
18129
18130 \begin_layout Plain Layout
18131
18132 \emph on
18133 1
18134 \end_layout
18135
18136 \end_inset
18137
18138
18139 \emph default
18140 ] Defines whether the float has a starred variant that spans columns in
18141  a two column paragraph.
18142  Set to 
18143 \begin_inset Flex Code
18144 status collapsed
18145
18146 \begin_layout Plain Layout
18147 0
18148 \end_layout
18149
18150 \end_inset
18151
18152  if the float does not support this feature.
18153 \end_layout
18154
18155 \begin_layout Description
18156 \begin_inset Flex Code
18157 status collapsed
18158
18159 \begin_layout Plain Layout
18160 Extension
18161 \end_layout
18162
18163 \end_inset
18164
18165  [
18166 \begin_inset Flex Code
18167 status collapsed
18168
18169 \begin_layout Plain Layout
18170 string
18171 \end_layout
18172
18173 \end_inset
18174
18175 =
18176 \begin_inset Quotes erd
18177 \end_inset
18178
18179
18180 \begin_inset Quotes erd
18181 \end_inset
18182
18183 ] The file name extension of an auxiliary file for the list of figures (or
18184  whatever).
18185  \SpecialChar LaTeX
18186  writes the captions to this file.
18187 \end_layout
18188
18189 \begin_layout Description
18190 \begin_inset Flex Code
18191 status collapsed
18192
18193 \begin_layout Plain Layout
18194 GuiName
18195 \end_layout
18196
18197 \end_inset
18198
18199  [
18200 \begin_inset Flex Code
18201 status collapsed
18202
18203 \begin_layout Plain Layout
18204 string
18205 \end_layout
18206
18207 \end_inset
18208
18209 =
18210 \begin_inset Quotes erd
18211 \end_inset
18212
18213
18214 \begin_inset Quotes erd
18215 \end_inset
18216
18217 ] The string that will be used in the menus and also for the caption.
18218  This is translated to the current language if babel is used.
18219 \end_layout
18220
18221 \begin_layout Description
18222 \begin_inset Flex Code
18223 status collapsed
18224
18225 \begin_layout Plain Layout
18226 HTML*
18227 \end_layout
18228
18229 \end_inset
18230
18231  These tags control the XHTML output.
18232  See 
18233 \begin_inset CommandInset ref
18234 LatexCommand ref
18235 reference "sec:Tags-for-XHTML"
18236
18237 \end_inset
18238
18239 .
18240 \end_layout
18241
18242 \begin_layout Description
18243 \begin_inset Flex Code
18244 status collapsed
18245
18246 \begin_layout Plain Layout
18247 IsPredefined
18248 \end_layout
18249
18250 \end_inset
18251
18252  [
18253 \emph on
18254
18255 \begin_inset Flex Code
18256 status collapsed
18257
18258 \begin_layout Plain Layout
18259 0
18260 \end_layout
18261
18262 \end_inset
18263
18264
18265 \emph default
18266 ,
18267 \begin_inset space \thinspace{}
18268 \end_inset
18269
18270
18271 \begin_inset Flex Code
18272 status collapsed
18273
18274 \begin_layout Plain Layout
18275 1
18276 \end_layout
18277
18278 \end_inset
18279
18280 ] Indicates whether the float is already defined in the document class or
18281  if instead the \SpecialChar LaTeX
18282  package 
18283 \begin_inset Flex Code
18284 status collapsed
18285
18286 \begin_layout Plain Layout
18287 float
18288 \end_layout
18289
18290 \end_inset
18291
18292  needs to be loaded to define it on-the-fly.
18293  The default is 
18294 \begin_inset Flex Code
18295 status collapsed
18296
18297 \begin_layout Plain Layout
18298 0
18299 \end_layout
18300
18301 \end_inset
18302
18303 , which means: 
18304 \begin_inset Flex Code
18305 status collapsed
18306
18307 \begin_layout Plain Layout
18308 float
18309 \end_layout
18310
18311 \end_inset
18312
18313  is used.
18314  It should be set to 
18315 \begin_inset Flex Code
18316 status collapsed
18317
18318 \begin_layout Plain Layout
18319 1
18320 \end_layout
18321
18322 \end_inset
18323
18324  if the float is already defined by the \SpecialChar LaTeX
18325  document class.
18326 \end_layout
18327
18328 \begin_layout Description
18329 \begin_inset Flex Code
18330 status collapsed
18331
18332 \begin_layout Plain Layout
18333 ListCommand
18334 \end_layout
18335
18336 \end_inset
18337
18338  [
18339 \begin_inset Flex Code
18340 status collapsed
18341
18342 \begin_layout Plain Layout
18343 string
18344 \end_layout
18345
18346 \end_inset
18347
18348 =
18349 \begin_inset Quotes erd
18350 \end_inset
18351
18352
18353 \begin_inset Quotes erd
18354 \end_inset
18355
18356 ] The command used to generate a list of floats of this type; the leading
18357  `
18358 \backslash
18359 ' must be omitted.
18360  This 
18361 \emph on
18362 must
18363 \emph default
18364  be given if 
18365 \begin_inset Flex Code
18366 status collapsed
18367
18368 \begin_layout Plain Layout
18369 UsesFloatPkg
18370 \end_layout
18371
18372 \end_inset
18373
18374  is false, since there is no standard way to generate this command.
18375  It is ignored if 
18376 \begin_inset Flex Code
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380 UsesFloatPkg
18381 \end_layout
18382
18383 \end_inset
18384
18385  is true, since in that case there is a standard way to define the command.
18386 \end_layout
18387
18388 \begin_layout Description
18389 \begin_inset Flex Code
18390 status collapsed
18391
18392 \begin_layout Plain Layout
18393 ListName
18394 \end_layout
18395
18396 \end_inset
18397
18398  [
18399 \begin_inset Flex Code
18400 status collapsed
18401
18402 \begin_layout Plain Layout
18403 string
18404 \end_layout
18405
18406 \end_inset
18407
18408 =
18409 \begin_inset Quotes erd
18410 \end_inset
18411
18412
18413 \begin_inset Quotes erd
18414 \end_inset
18415
18416 ] A title for a list of floats of this kind (list of figures, tables, or
18417  whatever).
18418  It is used for the screen label within \SpecialChar LyX
18419 , it is used by \SpecialChar LaTeX
18420  for the title and
18421  it is used as the title in the XHTML output.
18422  It will be translated to the document language.
18423 \end_layout
18424
18425 \begin_layout Description
18426 \begin_inset Flex Code
18427 status collapsed
18428
18429 \begin_layout Plain Layout
18430 NumberWithin
18431 \end_layout
18432
18433 \end_inset
18434
18435  [
18436 \begin_inset Flex Code
18437 status collapsed
18438
18439 \begin_layout Plain Layout
18440 string
18441 \end_layout
18442
18443 \end_inset
18444
18445 =
18446 \begin_inset Quotes erd
18447 \end_inset
18448
18449
18450 \begin_inset Quotes erd
18451 \end_inset
18452
18453 ] This (optional) argument determines whether floats of this class will
18454  be numbered within some sectional unit of the document.
18455  For example, if 
18456 \begin_inset Flex Code
18457 status collapsed
18458
18459 \begin_layout Plain Layout
18460 NumberWithin
18461 \end_layout
18462
18463 \end_inset
18464
18465  is set to 
18466 \begin_inset Quotes eld
18467 \end_inset
18468
18469
18470 \begin_inset Flex Code
18471 status collapsed
18472
18473 \begin_layout Plain Layout
18474 chapter
18475 \end_layout
18476
18477 \end_inset
18478
18479
18480 \begin_inset Quotes erd
18481 \end_inset
18482
18483 , the floats will be numbered within chapters.
18484  
18485 \end_layout
18486
18487 \begin_layout Description
18488 \begin_inset Flex Code
18489 status collapsed
18490
18491 \begin_layout Plain Layout
18492 Placement
18493 \end_layout
18494
18495 \end_inset
18496
18497  [
18498 \begin_inset Flex Code
18499 status collapsed
18500
18501 \begin_layout Plain Layout
18502 string
18503 \end_layout
18504
18505 \end_inset
18506
18507 =
18508 \begin_inset Quotes erd
18509 \end_inset
18510
18511
18512 \begin_inset Quotes erd
18513 \end_inset
18514
18515 ] The default placement for the given class of floats.
18516  The string should be as in standard \SpecialChar LaTeX
18517
18518 \begin_inset Flex Code
18519 status collapsed
18520
18521 \begin_layout Plain Layout
18522 t
18523 \end_layout
18524
18525 \end_inset
18526
18527
18528 \begin_inset Flex Code
18529 status collapsed
18530
18531 \begin_layout Plain Layout
18532 b
18533 \end_layout
18534
18535 \end_inset
18536
18537
18538 \begin_inset Flex Code
18539 status collapsed
18540
18541 \begin_layout Plain Layout
18542 p
18543 \end_layout
18544
18545 \end_inset
18546
18547  and 
18548 \begin_inset Flex Code
18549 status collapsed
18550
18551 \begin_layout Plain Layout
18552 h
18553 \end_layout
18554
18555 \end_inset
18556
18557  for top, bottom, page, and here, respectively.
18558 \begin_inset Foot
18559 status collapsed
18560
18561 \begin_layout Plain Layout
18562 Note that the order of these letters in the string is irrelevant, like in
18563  \SpecialChar LaTeX
18564 .
18565 \end_layout
18566
18567 \end_inset
18568
18569  On top of that there is a new type, 
18570 \begin_inset Flex Code
18571 status collapsed
18572
18573 \begin_layout Plain Layout
18574 H
18575 \end_layout
18576
18577 \end_inset
18578
18579 , which does not really correspond to a float, since it means: put it 
18580 \begin_inset Quotes eld
18581 \end_inset
18582
18583 here
18584 \begin_inset Quotes erd
18585 \end_inset
18586
18587  and nowhere else.
18588  Note however that the 
18589 \begin_inset Flex Code
18590 status collapsed
18591
18592 \begin_layout Plain Layout
18593 H
18594 \end_layout
18595
18596 \end_inset
18597
18598  specifier is special and, because of implementation details, cannot be
18599  used in non-built in float types.
18600  If you do not understand what this means, just use 
18601 \begin_inset Quotes eld
18602 \end_inset
18603
18604
18605 \begin_inset Flex Code
18606 status collapsed
18607
18608 \begin_layout Plain Layout
18609 tbp
18610 \end_layout
18611
18612 \end_inset
18613
18614
18615 \begin_inset Quotes erd
18616 \end_inset
18617
18618 .
18619 \end_layout
18620
18621 \begin_layout Description
18622 \begin_inset Flex Code
18623 status collapsed
18624
18625 \begin_layout Plain Layout
18626 RefPrefix
18627 \end_layout
18628
18629 \end_inset
18630
18631  [
18632 \begin_inset Flex Code
18633 status collapsed
18634
18635 \begin_layout Plain Layout
18636 string
18637 \end_layout
18638
18639 \end_inset
18640
18641 ] The prefix to use when creating labels referring to floats of this type.
18642  This allows the use of formatted references.
18643  Note that you can remove any 
18644 \begin_inset Flex Code
18645 status collapsed
18646
18647 \begin_layout Plain Layout
18648 RefPrefix
18649 \end_layout
18650
18651 \end_inset
18652
18653  set by a copied style by using the special value 
18654 \begin_inset Quotes eld
18655 \end_inset
18656
18657 OFF
18658 \begin_inset Quotes erd
18659 \end_inset
18660
18661 , which must be all caps.
18662 \change_inserted -712698321 1565605014
18663
18664 \end_layout
18665
18666 \begin_layout Description
18667
18668 \change_inserted -712698321 1565605014
18669 \begin_inset Flex Code
18670 status collapsed
18671
18672 \begin_layout Plain Layout
18673
18674 \change_inserted -712698321 1565605014
18675 Requires
18676 \change_unchanged
18677
18678 \end_layout
18679
18680 \end_inset
18681
18682  [
18683 \begin_inset Flex Code
18684 status collapsed
18685
18686 \begin_layout Plain Layout
18687
18688 \change_inserted -712698321 1565605014
18689 string
18690 \change_unchanged
18691
18692 \end_layout
18693
18694 \end_inset
18695
18696 ] As with paragraph styles, see 
18697 \begin_inset CommandInset ref
18698 LatexCommand ref
18699 reference "subsec:Paragraph-Styles"
18700
18701 \end_inset
18702
18703 .
18704 \change_unchanged
18705
18706 \end_layout
18707
18708 \begin_layout Description
18709 \begin_inset Flex Code
18710 status collapsed
18711
18712 \begin_layout Plain Layout
18713 Style
18714 \end_layout
18715
18716 \end_inset
18717
18718  [
18719 \begin_inset Flex Code
18720 status collapsed
18721
18722 \begin_layout Plain Layout
18723 string
18724 \end_layout
18725
18726 \end_inset
18727
18728 =
18729 \begin_inset Quotes erd
18730 \end_inset
18731
18732
18733 \begin_inset Quotes erd
18734 \end_inset
18735
18736 ] The style used when defining the float using 
18737 \begin_inset Flex Code
18738 status collapsed
18739
18740 \begin_layout Plain Layout
18741
18742 \backslash
18743 newfloat
18744 \end_layout
18745
18746 \end_inset
18747
18748 .
18749 \end_layout
18750
18751 \begin_layout Description
18752 \begin_inset Flex Code
18753 status collapsed
18754
18755 \begin_layout Plain Layout
18756 Type
18757 \end_layout
18758
18759 \end_inset
18760
18761  [
18762 \begin_inset Flex Code
18763 status collapsed
18764
18765 \begin_layout Plain Layout
18766 string
18767 \end_layout
18768
18769 \end_inset
18770
18771 =
18772 \begin_inset Quotes erd
18773 \end_inset
18774
18775
18776 \begin_inset Quotes erd
18777 \end_inset
18778
18779 ] The 
18780 \begin_inset Quotes eld
18781 \end_inset
18782
18783 type
18784 \begin_inset Quotes erd
18785 \end_inset
18786
18787  of the new class of floats, like program or algorithm.
18788  After the appropriate 
18789 \begin_inset Flex Code
18790 status collapsed
18791
18792 \begin_layout Plain Layout
18793
18794 \backslash
18795 newfloat
18796 \end_layout
18797
18798 \end_inset
18799
18800 , commands such as 
18801 \begin_inset Flex Code
18802 status collapsed
18803
18804 \begin_layout Plain Layout
18805
18806 \backslash
18807 begin{program}
18808 \end_layout
18809
18810 \end_inset
18811
18812  or 
18813 \begin_inset Flex Code
18814 status collapsed
18815
18816 \begin_layout Plain Layout
18817
18818 \backslash
18819 end{algorithm*}
18820 \end_layout
18821
18822 \end_inset
18823
18824  will be available.
18825 \end_layout
18826
18827 \begin_layout Description
18828 \begin_inset Flex Code
18829 status collapsed
18830
18831 \begin_layout Plain Layout
18832 UsesFloatPkg
18833 \end_layout
18834
18835 \end_inset
18836
18837  [
18838 \begin_inset Flex Code
18839 status collapsed
18840
18841 \begin_layout Plain Layout
18842 0
18843 \end_layout
18844
18845 \end_inset
18846
18847 ,
18848 \begin_inset space \thinspace{}
18849 \end_inset
18850
18851
18852 \begin_inset Flex Code
18853 status collapsed
18854
18855 \begin_layout Plain Layout
18856
18857 \emph on
18858 1
18859 \end_layout
18860
18861 \end_inset
18862
18863 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18864  package 
18865 \begin_inset Flex Code
18866 status collapsed
18867
18868 \begin_layout Plain Layout
18869 float
18870 \end_layout
18871
18872 \end_inset
18873
18874 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18875  itself.
18876 \end_layout
18877
18878 \begin_layout Standard
18879 Note that defining a float with type 
18880 \begin_inset Flex Code
18881 status collapsed
18882
18883 \begin_layout Plain Layout
18884
18885 \emph on
18886 type
18887 \end_layout
18888
18889 \end_inset
18890
18891  automatically defines the corresponding counter with name 
18892 \begin_inset Flex Code
18893 status collapsed
18894
18895 \begin_layout Plain Layout
18896
18897 \emph on
18898 type
18899 \end_layout
18900
18901 \end_inset
18902
18903 .
18904 \end_layout
18905
18906 \begin_layout Subsection
18907 Flex insets and InsetLayout
18908 \begin_inset CommandInset label
18909 LatexCommand label
18910 name "subsec:Flex-insets-and"
18911
18912 \end_inset
18913
18914
18915 \end_layout
18916
18917 \begin_layout Standard
18918 Flex insets come in 
18919 \change_deleted 5863208 1594239511
18920 three
18921 \change_inserted 5863208 1594239512
18922 two
18923 \change_unchanged
18924  different kinds: 
18925 \end_layout
18926
18927 \begin_layout Itemize
18928 character style (
18929 \begin_inset Flex Code
18930 status collapsed
18931
18932 \begin_layout Plain Layout
18933 CharStyle
18934 \end_layout
18935
18936 \end_inset
18937
18938 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18939  commands as 
18940 \begin_inset Flex Code
18941 status collapsed
18942
18943 \begin_layout Plain Layout
18944
18945 \backslash
18946 noun
18947 \end_layout
18948
18949 \end_inset
18950
18951  and 
18952 \begin_inset Flex Code
18953 status collapsed
18954
18955 \begin_layout Plain Layout
18956
18957 \backslash
18958 code
18959 \end_layout
18960
18961 \end_inset
18962
18963 .
18964 \end_layout
18965
18966 \begin_layout Itemize
18967 user custom (
18968 \begin_inset Flex Code
18969 status collapsed
18970
18971 \begin_layout Plain Layout
18972 Custom
18973 \end_layout
18974
18975 \end_inset
18976
18977 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18978  code,
18979  footnote, and the like.
18980  An obvious example is an endnote inset, which is defined in the 
18981 \begin_inset Flex Code
18982 status collapsed
18983
18984 \begin_layout Plain Layout
18985 endnote
18986 \end_layout
18987
18988 \end_inset
18989
18990  module.
18991 \end_layout
18992
18993 \begin_layout Itemize
18994
18995 \change_deleted 5863208 1594239528
18996 XML elements (
18997 \begin_inset Flex Code
18998 status collapsed
18999
19000 \begin_layout Plain Layout
19001 Element
19002 \end_layout
19003
19004 \end_inset
19005
19006 ): For use with DocBook classes.
19007 \change_unchanged
19008
19009 \end_layout
19010
19011 \begin_layout Standard
19012 Flex insets are defined using the 
19013 \begin_inset Flex Code
19014 status collapsed
19015
19016 \begin_layout Plain Layout
19017 InsetLayout
19018 \end_layout
19019
19020 \end_inset
19021
19022  tag, which shall be explained in a moment.
19023 \end_layout
19024
19025 \begin_layout Standard
19026 The 
19027 \begin_inset Flex Code
19028 status collapsed
19029
19030 \begin_layout Plain Layout
19031 InsetLayout
19032 \end_layout
19033
19034 \end_inset
19035
19036  tag also serves another function: It can be used to customize the general
19037  layout of many different types of insets.
19038  Currently, 
19039 \begin_inset Flex Code
19040 status collapsed
19041
19042 \begin_layout Plain Layout
19043 InsetLayout
19044 \end_layout
19045
19046 \end_inset
19047
19048  can be used to customize the layout parameters for footnotes, marginal
19049  notes, note insets, \SpecialChar TeX
19050  code (ERT) insets, branches, listings, indexes, boxes,
19051  tables, algorithms, URLs, and captions, as well as to define Flex insets.
19052 \end_layout
19053
19054 \begin_layout Standard
19055 The 
19056 \begin_inset Flex Code
19057 status collapsed
19058
19059 \begin_layout Plain Layout
19060 InsetLayout
19061 \end_layout
19062
19063 \end_inset
19064
19065  definition must begin with a line of the form:
19066 \end_layout
19067
19068 \begin_layout LyX-Code
19069 InsetLayout <type>
19070 \end_layout
19071
19072 \begin_layout Standard
19073 Here 
19074 \begin_inset Flex Code
19075 status collapsed
19076
19077 \begin_layout Plain Layout
19078 <Type>
19079 \end_layout
19080
19081 \end_inset
19082
19083  indicates the inset whose layout is being defined, and here there are four
19084  cases.
19085 \end_layout
19086
19087 \begin_layout Enumerate
19088 The layout for a pre-existing inset is being modified.
19089  In this case, can be 
19090 \begin_inset Flex Code
19091 status collapsed
19092
19093 \begin_layout Plain Layout
19094 <Type>
19095 \end_layout
19096
19097 \end_inset
19098
19099  any one of the following: 
19100 \begin_inset Flex Code
19101 status collapsed
19102
19103 \begin_layout Plain Layout
19104 Algorithm
19105 \end_layout
19106
19107 \end_inset
19108
19109
19110 \begin_inset Flex Code
19111 status collapsed
19112
19113 \begin_layout Plain Layout
19114 Branch
19115 \end_layout
19116
19117 \end_inset
19118
19119
19120 \begin_inset Flex Code
19121 status collapsed
19122
19123 \begin_layout Plain Layout
19124 Box
19125 \end_layout
19126
19127 \end_inset
19128
19129
19130 \begin_inset Flex Code
19131 status collapsed
19132
19133 \begin_layout Plain Layout
19134 Box:shaded
19135 \end_layout
19136
19137 \end_inset
19138
19139
19140 \begin_inset Flex Code
19141 status collapsed
19142
19143 \begin_layout Plain Layout
19144 Caption:Standard
19145 \end_layout
19146
19147 \end_inset
19148
19149
19150 \begin_inset Flex Code
19151 status collapsed
19152
19153 \begin_layout Plain Layout
19154 ERT
19155 \end_layout
19156
19157 \end_inset
19158
19159
19160 \begin_inset Flex Code
19161 status collapsed
19162
19163 \begin_layout Plain Layout
19164 Figure
19165 \end_layout
19166
19167 \end_inset
19168
19169
19170 \begin_inset Flex Code
19171 status collapsed
19172
19173 \begin_layout Plain Layout
19174 Foot
19175 \end_layout
19176
19177 \end_inset
19178
19179
19180 \begin_inset Flex Code
19181 status collapsed
19182
19183 \begin_layout Plain Layout
19184 Index
19185 \end_layout
19186
19187 \end_inset
19188
19189
19190 \begin_inset Flex Code
19191 status collapsed
19192
19193 \begin_layout Plain Layout
19194 Info
19195 \end_layout
19196
19197 \end_inset
19198
19199
19200 \begin_inset Flex Code
19201 status collapsed
19202
19203 \begin_layout Plain Layout
19204 Info:menu
19205 \end_layout
19206
19207 \end_inset
19208
19209
19210 \begin_inset Flex Code
19211 status collapsed
19212
19213 \begin_layout Plain Layout
19214 Info:shortcut
19215 \end_layout
19216
19217 \end_inset
19218
19219
19220 \begin_inset Flex Code
19221 status collapsed
19222
19223 \begin_layout Plain Layout
19224 Info:shortcuts
19225 \end_layout
19226
19227 \end_inset
19228
19229
19230 \begin_inset Flex Code
19231 status collapsed
19232
19233 \begin_layout Plain Layout
19234 Listings
19235 \end_layout
19236
19237 \end_inset
19238
19239
19240 \begin_inset Flex Code
19241 status collapsed
19242
19243 \begin_layout Plain Layout
19244 Marginal
19245 \end_layout
19246
19247 \end_inset
19248
19249
19250 \begin_inset Flex Code
19251 status collapsed
19252
19253 \begin_layout Plain Layout
19254 Note:Comment
19255 \end_layout
19256
19257 \end_inset
19258
19259
19260 \begin_inset Flex Code
19261 status collapsed
19262
19263 \begin_layout Plain Layout
19264 Note:Note
19265 \end_layout
19266
19267 \end_inset
19268
19269
19270 \begin_inset Flex Code
19271 status collapsed
19272
19273 \begin_layout Plain Layout
19274 Note:Greyedout
19275 \end_layout
19276
19277 \end_inset
19278
19279
19280 \begin_inset Flex Code
19281 status collapsed
19282
19283 \begin_layout Plain Layout
19284 Table
19285 \end_layout
19286
19287 \end_inset
19288
19289 , or 
19290 \begin_inset Flex Code
19291 status collapsed
19292
19293 \begin_layout Plain Layout
19294 URL
19295 \end_layout
19296
19297 \end_inset
19298
19299 .
19300 \end_layout
19301
19302 \begin_layout Enumerate
19303 The layout for a Flex inset is being defined.
19304  In this case, 
19305 \begin_inset Flex Code
19306 status collapsed
19307
19308 \begin_layout Plain Layout
19309 <Type>
19310 \end_layout
19311
19312 \end_inset
19313
19314  must be of the form 
19315 \begin_inset Quotes eld
19316 \end_inset
19317
19318
19319 \begin_inset Flex Code
19320 status collapsed
19321
19322 \begin_layout Plain Layout
19323 Flex:<name>
19324 \end_layout
19325
19326 \end_inset
19327
19328
19329 \begin_inset Quotes erd
19330 \end_inset
19331
19332 , where 
19333 \begin_inset Flex Code
19334 status collapsed
19335
19336 \begin_layout Plain Layout
19337 name
19338 \end_layout
19339
19340 \end_inset
19341
19342  may be be any valid identifier not used by a pre-existing Flex inset.
19343  The identifier may include spaces, but in that case the whole thing must
19344  be wrapped in quotes.
19345  Note that the definition of a flex inset 
19346 \emph on
19347 must 
19348 \emph default
19349 also include a 
19350 \begin_inset Flex Code
19351 status collapsed
19352
19353 \begin_layout Plain Layout
19354 LyXType
19355 \end_layout
19356
19357 \end_inset
19358
19359  entry, declaring which type of inset it defines.
19360 \end_layout
19361
19362 \begin_layout Enumerate
19363 The layout for user specific branch is being defined.
19364  In this case, 
19365 \begin_inset Flex Code
19366 status collapsed
19367
19368 \begin_layout Plain Layout
19369 <Type>
19370 \end_layout
19371
19372 \end_inset
19373
19374  must be of the form 
19375 \begin_inset Quotes eld
19376 \end_inset
19377
19378
19379 \begin_inset Flex Code
19380 status collapsed
19381
19382 \begin_layout Plain Layout
19383 Branch:<name>
19384 \end_layout
19385
19386 \end_inset
19387
19388
19389 \begin_inset Quotes erd
19390 \end_inset
19391
19392 , where 
19393 \begin_inset Flex Code
19394 status collapsed
19395
19396 \begin_layout Plain Layout
19397 name
19398 \end_layout
19399
19400 \end_inset
19401
19402  may be be any valid identifier of branch defined in user's document.
19403  The identifier may include spaces, but in that case the whole thing must
19404  be wrapped in quotes.
19405  The main purpose of this feature is to allow \SpecialChar LaTeX
19406  wrapping around specific
19407  branches as user needs.
19408 \end_layout
19409
19410 \begin_layout Enumerate
19411 The layout of a user (or class) specific caption is being defined.
19412  In this case, 
19413 \begin_inset Flex Code
19414 status collapsed
19415
19416 \begin_layout Plain Layout
19417 <Type>
19418 \end_layout
19419
19420 \end_inset
19421
19422  must be of the form 
19423 \begin_inset Quotes eld
19424 \end_inset
19425
19426
19427 \begin_inset Flex Code
19428 status collapsed
19429
19430 \begin_layout Plain Layout
19431 Caption:<name>
19432 \end_layout
19433
19434 \end_inset
19435
19436
19437 \begin_inset Quotes erd
19438 \end_inset
19439
19440 , where 
19441 \begin_inset Flex Code
19442 status collapsed
19443
19444 \begin_layout Plain Layout
19445 name
19446 \end_layout
19447
19448 \end_inset
19449
19450  specifies the name of the caption as it appears in the menu.
19451  Have a look at the standard caption (
19452 \begin_inset Flex Code
19453 status collapsed
19454
19455 \begin_layout Plain Layout
19456 Caption:Standard
19457 \end_layout
19458
19459 \end_inset
19460
19461 ), the specific captions of the KOMA-Script classes (
19462 \begin_inset Flex Code
19463 status collapsed
19464
19465 \begin_layout Plain Layout
19466 Caption:Above
19467 \end_layout
19468
19469 \end_inset
19470
19471
19472 \begin_inset Flex Code
19473 status collapsed
19474
19475 \begin_layout Plain Layout
19476 Caption:Below
19477 \end_layout
19478
19479 \end_inset
19480
19481 ) or the module 
19482 \family sans
19483 Multilingual
19484 \begin_inset space ~
19485 \end_inset
19486
19487 Captions
19488 \begin_inset Newline linebreak
19489 \end_inset
19490
19491
19492 \family default
19493 (
19494 \begin_inset Flex Code
19495 status collapsed
19496
19497 \begin_layout Plain Layout
19498 Caption:Bicaption
19499 \end_layout
19500
19501 \end_inset
19502
19503 ) for applications.
19504 \end_layout
19505
19506 \begin_layout Standard
19507 The 
19508 \begin_inset Flex Code
19509 status collapsed
19510
19511 \begin_layout Plain Layout
19512 InsetLayout
19513 \end_layout
19514
19515 \end_inset
19516
19517  definition can contain the following entries:
19518 \end_layout
19519
19520 \begin_layout Description
19521 \begin_inset Flex Code
19522 status collapsed
19523
19524 \begin_layout Plain Layout
19525 AddToToc
19526 \end_layout
19527
19528 \end_inset
19529
19530  [
19531 \begin_inset Flex Code
19532 status collapsed
19533
19534 \begin_layout Plain Layout
19535 string
19536 \end_layout
19537
19538 \end_inset
19539
19540 =""] This inset will appear in the table of contents of the given type.
19541  An empty string disables.
19542  See also the OutlinerName and the IsTocCaption commands.
19543  This is only implemented for Flex insets.
19544  Default: disabled.
19545 \end_layout
19546
19547 \begin_layout Description
19548 \begin_inset Flex Code
19549 status collapsed
19550
19551 \begin_layout Plain Layout
19552 Argument
19553 \end_layout
19554
19555 \end_inset
19556
19557  [
19558 \begin_inset Flex Code
19559 status collapsed
19560
19561 \begin_layout Plain Layout
19562 int
19563 \end_layout
19564
19565 \end_inset
19566
19567 ] Defines argument number of a command\SpecialChar breakableslash
19568 environment associated with the current
19569  layout.
19570  The definition must end with 
19571 \begin_inset Flex Code
19572 status collapsed
19573
19574 \begin_layout Plain Layout
19575 EndArgument
19576 \end_layout
19577
19578 \end_inset
19579
19580 .
19581  See 
19582 \begin_inset CommandInset ref
19583 LatexCommand ref
19584 reference "subsec:Paragraph-Styles"
19585
19586 \end_inset
19587
19588  for details.
19589 \end_layout
19590
19591 \begin_layout Description
19592 \begin_inset Flex Code
19593 status collapsed
19594
19595 \begin_layout Plain Layout
19596 BabelPreamble
19597 \end_layout
19598
19599 \end_inset
19600
19601  Preamble for changing language commands; see 
19602 \begin_inset CommandInset ref
19603 LatexCommand ref
19604 reference "subsec:I18n"
19605
19606 \end_inset
19607
19608 .
19609 \end_layout
19610
19611 \begin_layout Description
19612 \begin_inset Flex Code
19613 status collapsed
19614
19615 \begin_layout Plain Layout
19616 BgColor
19617 \end_layout
19618
19619 \end_inset
19620
19621  [
19622 \begin_inset Flex Code
19623 status collapsed
19624
19625 \begin_layout Plain Layout
19626 <name>
19627 \end_layout
19628
19629 \end_inset
19630
19631 ] The color for the inset's background.
19632  See 
19633 \begin_inset CommandInset ref
19634 LatexCommand ref
19635 reference "chap:Names-of-colors"
19636
19637 \end_inset
19638
19639  for a list of the available color names.
19640 \end_layout
19641
19642 \begin_layout Description
19643 \begin_inset Flex Code
19644 status collapsed
19645
19646 \begin_layout Plain Layout
19647 ContentAsLabel
19648 \end_layout
19649
19650 \end_inset
19651
19652  [
19653 \begin_inset Flex Code
19654 status collapsed
19655
19656 \begin_layout Plain Layout
19657
19658 \emph on
19659 0
19660 \end_layout
19661
19662 \end_inset
19663
19664 ,
19665 \begin_inset space \thinspace{}
19666 \end_inset
19667
19668
19669 \begin_inset Flex Code
19670 status collapsed
19671
19672 \begin_layout Plain Layout
19673 1
19674 \end_layout
19675
19676 \end_inset
19677
19678 ] Whether to use the content of the inset as the label, when the inset is
19679  closed.
19680  Default is false.
19681 \end_layout
19682
19683 \begin_layout Description
19684 \begin_inset Flex Code
19685 status collapsed
19686
19687 \begin_layout Plain Layout
19688 CopyStyle
19689 \end_layout
19690
19691 \end_inset
19692
19693  [
19694 \begin_inset Flex Code
19695 status collapsed
19696
19697 \begin_layout Plain Layout
19698 <type>
19699 \end_layout
19700
19701 \end_inset
19702
19703 ] As with paragraph styles, see 
19704 \begin_inset CommandInset ref
19705 LatexCommand ref
19706 reference "subsec:Paragraph-Styles"
19707
19708 \end_inset
19709
19710 .
19711  Note that you need to specify the complete type, e.
19712 \begin_inset space \thinspace{}
19713 \end_inset
19714
19715 g.
19716 \begin_inset space ~
19717 \end_inset
19718
19719
19720 \begin_inset Flex Code
19721 status collapsed
19722
19723 \begin_layout Plain Layout
19724 CopyStyle Flex:<name>
19725 \end_layout
19726
19727 \end_inset
19728
19729 .
19730 \end_layout
19731
19732 \begin_layout Description
19733 \begin_inset Flex Code
19734 status collapsed
19735
19736 \begin_layout Plain Layout
19737 CustomPars
19738 \end_layout
19739
19740 \end_inset
19741
19742  [
19743 \begin_inset Flex Code
19744 status collapsed
19745
19746 \begin_layout Plain Layout
19747
19748 \emph on
19749 0
19750 \end_layout
19751
19752 \end_inset
19753
19754 ,
19755 \begin_inset space \thinspace{}
19756 \end_inset
19757
19758
19759 \begin_inset Flex Code
19760 status collapsed
19761
19762 \begin_layout Plain Layout
19763 1
19764 \end_layout
19765
19766 \end_inset
19767
19768 ] Indicates whether the user may employ the Paragraph Settings dialog to
19769  customize the paragraph.
19770 \end_layout
19771
19772 \begin_layout Description
19773 \begin_inset Flex Code
19774 status collapsed
19775
19776 \begin_layout Plain Layout
19777 Decoration
19778 \end_layout
19779
19780 \end_inset
19781
19782  can be 
19783 \begin_inset Flex Code
19784 status collapsed
19785
19786 \begin_layout Plain Layout
19787 Classic
19788 \end_layout
19789
19790 \end_inset
19791
19792
19793 \begin_inset Flex Code
19794 status collapsed
19795
19796 \begin_layout Plain Layout
19797 Minimalistic
19798 \end_layout
19799
19800 \end_inset
19801
19802 , or 
19803 \begin_inset Flex Code
19804 status collapsed
19805
19806 \begin_layout Plain Layout
19807 Conglomerate
19808 \end_layout
19809
19810 \end_inset
19811
19812 , describing the rendering style used for the inset's frame and buttons.
19813  Footnotes generally use 
19814 \begin_inset Flex Code
19815 status collapsed
19816
19817 \begin_layout Plain Layout
19818 Classic
19819 \end_layout
19820
19821 \end_inset
19822
19823 , ERT insets generally 
19824 \begin_inset Flex Code
19825 status collapsed
19826
19827 \begin_layout Plain Layout
19828 Minimalistic
19829 \end_layout
19830
19831 \end_inset
19832
19833 , and character styles 
19834 \begin_inset Flex Code
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838 Conglomerate
19839 \end_layout
19840
19841 \end_inset
19842
19843 .
19844 \end_layout
19845
19846 \begin_layout Description
19847 \begin_inset Flex Code
19848 status collapsed
19849
19850 \begin_layout Plain Layout
19851 Display
19852 \end_layout
19853
19854 \end_inset
19855
19856  [
19857 \begin_inset Flex Code
19858 status collapsed
19859
19860 \begin_layout Plain Layout
19861 0
19862 \end_layout
19863
19864 \end_inset
19865
19866 ,
19867 \emph on
19868
19869 \begin_inset space \thinspace{}
19870 \end_inset
19871
19872
19873 \emph default
19874
19875 \begin_inset Flex Code
19876 status collapsed
19877
19878 \begin_layout Plain Layout
19879
19880 \emph on
19881 1
19882 \end_layout
19883
19884 \end_inset
19885
19886 ] Only useful if 
19887 \begin_inset Flex Code
19888 status collapsed
19889
19890 \begin_layout Plain Layout
19891 LatexType
19892 \end_layout
19893
19894 \end_inset
19895
19896  is 
19897 \begin_inset Flex Code
19898 status collapsed
19899
19900 \begin_layout Plain Layout
19901 Environment
19902 \end_layout
19903
19904 \end_inset
19905
19906 .
19907  Indicates whether the environment will stand on its own in the output or
19908  will appear inline with the surrounding text.
19909  If set to false, it is supposed that the \SpecialChar LaTeX
19910  environment ignores white space
19911  (including one newline character) after the 
19912 \begin_inset Flex Code
19913 status collapsed
19914
19915 \begin_layout Plain Layout
19916
19917 \backslash
19918 begin{
19919 \emph on
19920 LatexName
19921 \emph default
19922 }
19923 \end_layout
19924
19925 \end_inset
19926
19927  and 
19928 \begin_inset Flex Code
19929 status collapsed
19930
19931 \begin_layout Plain Layout
19932
19933 \backslash
19934 end{
19935 \emph on
19936 LatexName
19937 \emph default
19938 }
19939 \end_layout
19940
19941 \end_inset
19942
19943  tags.
19944  Default is true.
19945 \change_inserted 731793113 1538674858
19946
19947 \end_layout
19948
19949 \begin_layout Description
19950
19951 \change_inserted 731793113 1538674891
19952 \begin_inset Flex Code
19953 status open
19954
19955 \begin_layout Plain Layout
19956
19957 \change_inserted 731793113 1538674863
19958 EditExternal
19959 \change_unchanged
19960
19961 \end_layout
19962
19963 \end_inset
19964
19965  [
19966 \emph on
19967 0
19968 \emph default
19969 ,1] Allow the contents of the inset to be edited externally (using whatever
19970  editor is defined for the document's output format).
19971 \change_unchanged
19972
19973 \end_layout
19974
19975 \begin_layout Description
19976 \begin_inset Flex Code
19977 status collapsed
19978
19979 \begin_layout Plain Layout
19980 End
19981 \end_layout
19982
19983 \end_inset
19984
19985  Required at the end of the 
19986 \begin_inset Flex Code
19987 status collapsed
19988
19989 \begin_layout Plain Layout
19990 InsetLayout
19991 \end_layout
19992
19993 \end_inset
19994
19995  declarations.
19996 \end_layout
19997
19998 \begin_layout Description
19999 \begin_inset Flex Code
20000 status collapsed
20001
20002 \begin_layout Plain Layout
20003 Font
20004 \end_layout
20005
20006 \end_inset
20007
20008  The font used for both the text body 
20009 \emph on
20010 and
20011 \emph default
20012  the label.
20013  See 
20014 \begin_inset CommandInset ref
20015 LatexCommand ref
20016 reference "subsec:Font-description"
20017
20018 \end_inset
20019
20020 .
20021  Note that defining this font automatically defines the 
20022 \begin_inset Flex Code
20023 status collapsed
20024
20025 \begin_layout Plain Layout
20026 LabelFont
20027 \end_layout
20028
20029 \end_inset
20030
20031  to the same value, so define this first and define 
20032 \begin_inset Flex Code
20033 status collapsed
20034
20035 \begin_layout Plain Layout
20036 LabelFont
20037 \end_layout
20038
20039 \end_inset
20040
20041  later if you want them to be different.
20042 \end_layout
20043
20044 \begin_layout Description
20045 \begin_inset Flex Code
20046 status collapsed
20047
20048 \begin_layout Plain Layout
20049 FixedWidthPreambleEncoding
20050 \end_layout
20051
20052 \end_inset
20053
20054  [
20055 \begin_inset Flex Code
20056 status collapsed
20057
20058 \begin_layout Plain Layout
20059
20060 \emph on
20061 0
20062 \end_layout
20063
20064 \end_inset
20065
20066 ,
20067 \begin_inset space \thinspace{}
20068 \end_inset
20069
20070
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 1
20076 \end_layout
20077
20078 \end_inset
20079
20080 ] Force a fixed width encoding for the translated contents of 
20081 \begin_inset Flex Code
20082 status collapsed
20083
20084 \begin_layout Plain Layout
20085 BabelPreamble
20086 \end_layout
20087
20088 \end_inset
20089
20090  and 
20091 \begin_inset Flex Code
20092 status collapsed
20093
20094 \begin_layout Plain Layout
20095 LangPreamble
20096 \end_layout
20097
20098 \end_inset
20099
20100  code generated by this layout.
20101  This is needed for special \SpecialChar LaTeX
20102 -packages like 
20103 \family typewriter
20104 listings
20105 \family default
20106  that do not work with variable width encodings such as 
20107 \family sans
20108 utf8
20109 \family default
20110 .
20111  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
20112  backends such as Xe\SpecialChar TeX
20113  or
20114  Lua\SpecialChar TeX
20115  are used.
20116 \end_layout
20117
20118 \begin_layout Description
20119 \begin_inset Flex Code
20120 status collapsed
20121
20122 \begin_layout Plain Layout
20123 ForceLocalFontSwitch
20124 \end_layout
20125
20126 \end_inset
20127
20128  [
20129 \begin_inset Flex Code
20130 status collapsed
20131
20132 \begin_layout Plain Layout
20133
20134 \emph on
20135 0
20136 \end_layout
20137
20138 \end_inset
20139
20140 ,
20141 \begin_inset space \thinspace{}
20142 \end_inset
20143
20144
20145 \begin_inset Flex Code
20146 status collapsed
20147
20148 \begin_layout Plain Layout
20149 1
20150 \end_layout
20151
20152 \end_inset
20153
20154 ] When using babel, always use a local font switch (
20155 \begin_inset Flex Code
20156 status collapsed
20157
20158 \begin_layout Plain Layout
20159
20160 \backslash
20161 foreignlanguage
20162 \end_layout
20163
20164 \end_inset
20165
20166 ), never a global one (such as 
20167 \begin_inset Flex Code
20168 status collapsed
20169
20170 \begin_layout Plain Layout
20171
20172 \backslash
20173 selectlanguage
20174 \end_layout
20175
20176 \end_inset
20177
20178 ).
20179 \end_layout
20180
20181 \begin_layout Description
20182 \begin_inset Flex Code
20183 status collapsed
20184
20185 \begin_layout Plain Layout
20186 ForceLTR
20187 \end_layout
20188
20189 \end_inset
20190
20191  [
20192 \begin_inset Flex Code
20193 status collapsed
20194
20195 \begin_layout Plain Layout
20196
20197 \emph on
20198 0
20199 \end_layout
20200
20201 \end_inset
20202
20203 ,
20204 \begin_inset space \thinspace{}
20205 \end_inset
20206
20207
20208 \begin_inset Flex Code
20209 status collapsed
20210
20211 \begin_layout Plain Layout
20212 1
20213 \end_layout
20214
20215 \end_inset
20216
20217 ] Force the 
20218 \begin_inset Quotes eld
20219 \end_inset
20220
20221 latex
20222 \begin_inset Quotes erd
20223 \end_inset
20224
20225  language, leading to Left-to-Right (Latin) output, e.
20226 \begin_inset space \thinspace{}
20227 \end_inset
20228
20229 g.
20230 \begin_inset space \space{}
20231 \end_inset
20232
20233 in \SpecialChar TeX
20234  code or URL.
20235  A kludge.
20236 \end_layout
20237
20238 \begin_layout Description
20239 \begin_inset Flex Code
20240 status collapsed
20241
20242 \begin_layout Plain Layout
20243 ForceOwnlines
20244 \end_layout
20245
20246 \end_inset
20247
20248  [
20249 \begin_inset Flex Code
20250 status collapsed
20251
20252 \begin_layout Plain Layout
20253
20254 \emph on
20255 0
20256 \end_layout
20257
20258 \end_inset
20259
20260 ,
20261 \begin_inset space \thinspace{}
20262 \end_inset
20263
20264
20265 \begin_inset Flex Code
20266 status collapsed
20267
20268 \begin_layout Plain Layout
20269 1
20270 \end_layout
20271
20272 \end_inset
20273
20274 ] Force a a line break in the \SpecialChar LaTeX
20275  output before the inset starts and after
20276  the inset ends.
20277  This assures the inset itself is output on its own lines, for parsing purposes.
20278 \end_layout
20279
20280 \begin_layout Description
20281 \begin_inset Flex Code
20282 status collapsed
20283
20284 \begin_layout Plain Layout
20285 ForcePlain
20286 \end_layout
20287
20288 \end_inset
20289
20290  [
20291 \begin_inset Flex Code
20292 status collapsed
20293
20294 \begin_layout Plain Layout
20295
20296 \emph on
20297 0
20298 \end_layout
20299
20300 \end_inset
20301
20302 ,
20303 \begin_inset space \thinspace{}
20304 \end_inset
20305
20306
20307 \begin_inset Flex Code
20308 status collapsed
20309
20310 \begin_layout Plain Layout
20311 1
20312 \end_layout
20313
20314 \end_inset
20315
20316 ] Indicates whether the 
20317 \begin_inset Flex Code
20318 status collapsed
20319
20320 \begin_layout Plain Layout
20321 PlainLayout
20322 \end_layout
20323
20324 \end_inset
20325
20326  should be used or, instead, the user can change the paragraph style used
20327  in the inset.
20328  Default is false.
20329 \end_layout
20330
20331 \begin_layout Description
20332 \begin_inset Flex Code
20333 status collapsed
20334
20335 \begin_layout Plain Layout
20336 FreeSpacing
20337 \end_layout
20338
20339 \end_inset
20340
20341  [
20342 \begin_inset Flex Code
20343 status collapsed
20344
20345 \begin_layout Plain Layout
20346
20347 \emph on
20348 0
20349 \end_layout
20350
20351 \end_inset
20352
20353 ,
20354 \begin_inset space \thinspace{}
20355 \end_inset
20356
20357
20358 \begin_inset Flex Code
20359 status collapsed
20360
20361 \begin_layout Plain Layout
20362 1
20363 \end_layout
20364
20365 \end_inset
20366
20367 ] As with paragraph styles, see 
20368 \begin_inset CommandInset ref
20369 LatexCommand ref
20370 reference "subsec:Paragraph-Styles"
20371
20372 \end_inset
20373
20374 .
20375 \end_layout
20376
20377 \begin_layout Description
20378 \begin_inset Flex Code
20379 status collapsed
20380
20381 \begin_layout Plain Layout
20382 HTML*
20383 \end_layout
20384
20385 \end_inset
20386
20387  These tags control the XHTML output.
20388  See 
20389 \begin_inset CommandInset ref
20390 LatexCommand ref
20391 reference "sec:Tags-for-XHTML"
20392
20393 \end_inset
20394
20395 .
20396 \end_layout
20397
20398 \begin_layout Description
20399 \begin_inset Flex Code
20400 status collapsed
20401
20402 \begin_layout Plain Layout
20403 InToc
20404 \end_layout
20405
20406 \end_inset
20407
20408  [
20409 \begin_inset Flex Code
20410 status collapsed
20411
20412 \begin_layout Plain Layout
20413
20414 \emph on
20415 0
20416 \end_layout
20417
20418 \end_inset
20419
20420 ,
20421 \begin_inset space \thinspace{}
20422 \end_inset
20423
20424
20425 \begin_inset Flex Code
20426 status collapsed
20427
20428 \begin_layout Plain Layout
20429 1
20430 \end_layout
20431
20432 \end_inset
20433
20434 ] Whether to include the contents of this inset in the strings generated
20435  for the `Outline' pane for all table of contents, regardless of the AddToToc
20436  setting.
20437  One would not, for example, want the content of a footnote in a section
20438  header to be included in the TOC displayed in the outline, but one would
20439  normally want the content of a character style displayed.
20440  Default is false: not to include.
20441 \end_layout
20442
20443 \begin_layout Description
20444 \begin_inset Flex Code
20445 status collapsed
20446
20447 \begin_layout Plain Layout
20448 IsTocCaption
20449 \end_layout
20450
20451 \end_inset
20452
20453  [
20454 \begin_inset Flex Code
20455 status collapsed
20456
20457 \begin_layout Plain Layout
20458
20459 \emph on
20460 0
20461 \end_layout
20462
20463 \end_inset
20464
20465 ,
20466 \begin_inset space \thinspace{}
20467 \end_inset
20468
20469
20470 \begin_inset Flex Code
20471 status collapsed
20472
20473 \begin_layout Plain Layout
20474 1
20475 \end_layout
20476
20477 \end_inset
20478
20479 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20480  of its contents in its item in the table of contents.
20481  Otherwise, only the label appears.
20482 \end_layout
20483
20484 \begin_layout Description
20485 \begin_inset Flex Code
20486 status collapsed
20487
20488 \begin_layout Plain Layout
20489 KeepEmpty
20490 \end_layout
20491
20492 \end_inset
20493
20494  [
20495 \emph on
20496
20497 \begin_inset Flex Code
20498 status collapsed
20499
20500 \begin_layout Plain Layout
20501 0
20502 \end_layout
20503
20504 \end_inset
20505
20506
20507 \emph default
20508 ,
20509 \begin_inset space \thinspace{}
20510 \end_inset
20511
20512
20513 \begin_inset Flex Code
20514 status collapsed
20515
20516 \begin_layout Plain Layout
20517 1
20518 \end_layout
20519
20520 \end_inset
20521
20522 ] As with paragraph styles, see 
20523 \begin_inset CommandInset ref
20524 LatexCommand ref
20525 reference "subsec:Paragraph-Styles"
20526
20527 \end_inset
20528
20529 .
20530 \end_layout
20531
20532 \begin_layout Description
20533 \begin_inset Flex Code
20534 status collapsed
20535
20536 \begin_layout Plain Layout
20537 LabelFont
20538 \end_layout
20539
20540 \end_inset
20541
20542  The font used for the label.
20543  See 
20544 \begin_inset CommandInset ref
20545 LatexCommand ref
20546 reference "subsec:Font-description"
20547
20548 \end_inset
20549
20550 .
20551  Note that this definition can never appear before 
20552 \begin_inset Flex Code
20553 status collapsed
20554
20555 \begin_layout Plain Layout
20556 Font
20557 \end_layout
20558
20559 \end_inset
20560
20561 , lest it be ineffective.
20562 \end_layout
20563
20564 \begin_layout Description
20565 \begin_inset Flex Code
20566 status collapsed
20567
20568 \begin_layout Plain Layout
20569 LabelString
20570 \end_layout
20571
20572 \end_inset
20573
20574  [
20575 \begin_inset Flex Code
20576 status collapsed
20577
20578 \begin_layout Plain Layout
20579 string
20580 \end_layout
20581
20582 \end_inset
20583
20584 =
20585 \begin_inset Quotes erd
20586 \end_inset
20587
20588
20589 \begin_inset Quotes erd
20590 \end_inset
20591
20592 ] What will be displayed on the button or elsewhere as the inset label.
20593  Some inset types (
20594 \begin_inset Flex Code
20595 status collapsed
20596
20597 \begin_layout Plain Layout
20598 \SpecialChar TeX
20599  code
20600 \end_layout
20601
20602 \end_inset
20603
20604  and 
20605 \begin_inset Flex Code
20606 status collapsed
20607
20608 \begin_layout Plain Layout
20609 Branch
20610 \end_layout
20611
20612 \end_inset
20613
20614 ) modify this label on the fly.
20615 \end_layout
20616
20617 \begin_layout Description
20618 \begin_inset Flex Code
20619 status collapsed
20620
20621 \begin_layout Plain Layout
20622 LangPreamble
20623 \end_layout
20624
20625 \end_inset
20626
20627  Language dependent preamble; see 
20628 \begin_inset CommandInset ref
20629 LatexCommand ref
20630 reference "subsec:I18n"
20631
20632 \end_inset
20633
20634 .
20635 \end_layout
20636
20637 \begin_layout Description
20638 \begin_inset Flex Code
20639 status collapsed
20640
20641 \begin_layout Plain Layout
20642 LatexName
20643 \end_layout
20644
20645 \end_inset
20646
20647  [
20648 \begin_inset Flex Code
20649 status collapsed
20650
20651 \begin_layout Plain Layout
20652 <name>
20653 \end_layout
20654
20655 \end_inset
20656
20657 ] The name of the corresponding \SpecialChar LaTeX
20658  stuff.
20659  Either the environment or command name.
20660 \end_layout
20661
20662 \begin_layout Description
20663 \begin_inset Flex Code
20664 status collapsed
20665
20666 \begin_layout Plain Layout
20667 LatexParam
20668 \end_layout
20669
20670 \end_inset
20671
20672  [
20673 \begin_inset Flex Code
20674 status collapsed
20675
20676 \begin_layout Plain Layout
20677 <parameter>
20678 \end_layout
20679
20680 \end_inset
20681
20682 ] The optional parameter for the corresponding 
20683 \begin_inset Flex Code
20684 status collapsed
20685
20686 \begin_layout Plain Layout
20687 LatexName
20688 \end_layout
20689
20690 \end_inset
20691
20692  stuff, including possible bracket pairs like 
20693 \begin_inset Flex Code
20694 status collapsed
20695
20696 \begin_layout Plain Layout
20697 []
20698 \end_layout
20699
20700 \end_inset
20701
20702 .
20703  This parameter cannot be changed from within \SpecialChar LyX
20704  (use 
20705 \begin_inset Flex Code
20706 status collapsed
20707
20708 \begin_layout Plain Layout
20709 Argument
20710 \end_layout
20711
20712 \end_inset
20713
20714  for customizable parameters).
20715  It will be output as is after all \SpecialChar LaTeX
20716  
20717 \begin_inset Flex Code
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721 Argument
20722 \end_layout
20723
20724 \end_inset
20725
20726 s.
20727 \end_layout
20728
20729 \begin_layout Description
20730 \begin_inset Flex Code
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 LatexType
20735 \end_layout
20736
20737 \end_inset
20738
20739  [
20740 \begin_inset Flex Code
20741 status collapsed
20742
20743 \begin_layout Plain Layout
20744 Command, Environment, None
20745 \end_layout
20746
20747 \end_inset
20748
20749 ] How the style should be translated into \SpecialChar LaTeX
20750 .
20751 \begin_inset Foot
20752 status collapsed
20753
20754 \begin_layout Plain Layout
20755 \begin_inset Flex Code
20756 status collapsed
20757
20758 \begin_layout Plain Layout
20759 LatexType
20760 \end_layout
20761
20762 \end_inset
20763
20764  is perhaps a bit misleading, since these rules apply to SGML classes too.
20765  Visit the SGML class files for specific examples.
20766 \end_layout
20767
20768 \end_inset
20769
20770
20771 \end_layout
20772
20773 \begin_deeper
20774 \begin_layout Description
20775 \begin_inset Flex Code
20776 status collapsed
20777
20778 \begin_layout Plain Layout
20779 None
20780 \end_layout
20781
20782 \end_inset
20783
20784  means nothing special
20785 \end_layout
20786
20787 \begin_layout Description
20788 \begin_inset Flex Code
20789 status collapsed
20790
20791 \begin_layout Plain Layout
20792 Command
20793 \end_layout
20794
20795 \end_inset
20796
20797  means 
20798 \begin_inset Flex Code
20799 status collapsed
20800
20801 \begin_layout Plain Layout
20802
20803 \backslash
20804
20805 \emph on
20806 LatexName
20807 \emph default
20808 {\SpecialChar ldots
20809 }
20810 \end_layout
20811
20812 \end_inset
20813
20814
20815 \end_layout
20816
20817 \begin_layout Description
20818 \begin_inset Flex Code
20819 status collapsed
20820
20821 \begin_layout Plain Layout
20822 Environment
20823 \end_layout
20824
20825 \end_inset
20826
20827  means 
20828 \begin_inset Flex Code
20829 status collapsed
20830
20831 \begin_layout Plain Layout
20832
20833 \backslash
20834 begin{
20835 \emph on
20836 LatexName
20837 \emph default
20838 }\SpecialChar ldots
20839
20840 \backslash
20841 end{
20842 \emph on
20843 LatexName
20844 \emph default
20845 }
20846 \end_layout
20847
20848 \end_inset
20849
20850
20851 \end_layout
20852
20853 \begin_layout Standard
20854 Putting the last few things together, the \SpecialChar LaTeX
20855  output will be either: 
20856 \end_layout
20857
20858 \begin_layout LyX-Code
20859
20860 \backslash
20861 LatexName[LatexParam]{\SpecialChar ldots
20862 }
20863 \end_layout
20864
20865 \begin_layout Standard
20866 or: 
20867 \end_layout
20868
20869 \begin_layout LyX-Code
20870
20871 \backslash
20872 begin{LatexName}[LatexParam] \SpecialChar ldots
20873  
20874 \backslash
20875 end{LatexName}
20876 \end_layout
20877
20878 \begin_layout Standard
20879 depending upon the \SpecialChar LaTeX
20880  type.
20881 \end_layout
20882
20883 \end_deeper
20884 \begin_layout Description
20885 \begin_inset Flex Code
20886 status collapsed
20887
20888 \begin_layout Plain Layout
20889 LeftDelim
20890 \end_layout
20891
20892 \end_inset
20893
20894  [
20895 \begin_inset Flex Code
20896 status collapsed
20897
20898 \begin_layout Plain Layout
20899 string
20900 \end_layout
20901
20902 \end_inset
20903
20904 ] A string that is put at the beginning of the layout content.
20905  A line break in the output can be indicated by 
20906 \begin_inset Flex Code
20907 status collapsed
20908
20909 \begin_layout Plain Layout
20910 <br/>
20911 \end_layout
20912
20913 \end_inset
20914
20915 .
20916 \end_layout
20917
20918 \begin_layout Description
20919 \begin_inset Flex Code
20920 status collapsed
20921
20922 \begin_layout Plain Layout
20923 LyxType
20924 \end_layout
20925
20926 \end_inset
20927
20928  Can be 
20929 \begin_inset Flex Code
20930 status collapsed
20931
20932 \begin_layout Plain Layout
20933 charstyle
20934 \end_layout
20935
20936 \end_inset
20937
20938
20939 \begin_inset Flex Code
20940 status collapsed
20941
20942 \begin_layout Plain Layout
20943 custom
20944 \end_layout
20945
20946 \end_inset
20947
20948
20949 \begin_inset Flex Code
20950 status collapsed
20951
20952 \begin_layout Plain Layout
20953 element
20954 \end_layout
20955
20956 \end_inset
20957
20958  or 
20959 \begin_inset Flex Code
20960 status collapsed
20961
20962 \begin_layout Plain Layout
20963 end
20964 \end_layout
20965
20966 \end_inset
20967
20968  (indicating a dummy definition ending definitions of charstyles, etc).
20969  This entry is required in and is only meaningful for Flex insets.
20970  Among other things, it determines on which menu this inset will appear.
20971  Setting 
20972 \begin_inset Flex Code
20973 status collapsed
20974
20975 \begin_layout Plain Layout
20976 LyxType
20977 \end_layout
20978
20979 \end_inset
20980
20981  to 
20982 \begin_inset Flex Code
20983 status collapsed
20984
20985 \begin_layout Plain Layout
20986 charstyle
20987 \end_layout
20988
20989 \end_inset
20990
20991  will automatically set 
20992 \begin_inset Flex Code
20993 status collapsed
20994
20995 \begin_layout Plain Layout
20996 MultiPar
20997 \end_layout
20998
20999 \end_inset
21000
21001  to false and 
21002 \begin_inset Flex Code
21003 status collapsed
21004
21005 \begin_layout Plain Layout
21006 ForcePlain
21007 \end_layout
21008
21009 \end_inset
21010
21011  to true.
21012  
21013 \begin_inset Flex Code
21014 status collapsed
21015
21016 \begin_layout Plain Layout
21017 MultiPar
21018 \end_layout
21019
21020 \end_inset
21021
21022  can be set to true, or 
21023 \begin_inset Flex Code
21024 status collapsed
21025
21026 \begin_layout Plain Layout
21027 ForcePlain
21028 \end_layout
21029
21030 \end_inset
21031
21032  to false, for 
21033 \begin_inset Flex Code
21034 status collapsed
21035
21036 \begin_layout Plain Layout
21037 charstyle
21038 \end_layout
21039
21040 \end_inset
21041
21042  insets by setting it 
21043 \emph on
21044 after
21045 \emph default
21046  you set the 
21047 \begin_inset Flex Code
21048 status collapsed
21049
21050 \begin_layout Plain Layout
21051 LyxType
21052 \end_layout
21053
21054 \end_inset
21055
21056 .
21057 \change_inserted -712698321 1555575738
21058
21059 \end_layout
21060
21061 \begin_layout Description
21062
21063 \change_inserted -712698321 1555575844
21064 \begin_inset Flex Code
21065 status collapsed
21066
21067 \begin_layout Plain Layout
21068
21069 \change_inserted -712698321 1555575740
21070 MenuString
21071 \change_unchanged
21072
21073 \end_layout
21074
21075 \end_inset
21076
21077  
21078 \begin_inset Flex Code
21079 status collapsed
21080
21081 \begin_layout Plain Layout
21082
21083 \change_inserted -712698321 1555575740
21084 [string]
21085 \change_unchanged
21086
21087 \end_layout
21088
21089 \end_inset
21090
21091  A dedicated string for the menu.
21092  You can define an accelerator by appending the respective character to
21093  the string, divided by 
21094 \begin_inset Quotes eld
21095 \end_inset
21096
21097 |
21098 \begin_inset Quotes erd
21099 \end_inset
21100
21101  (e.
21102 \begin_inset space \thinspace{}
21103 \end_inset
21104
21105 g.
21106 \begin_inset space \space{}
21107 \end_inset
21108
21109
21110 \begin_inset Quotes eld
21111 \end_inset
21112
21113
21114 \begin_inset Flex Code
21115 status collapsed
21116
21117 \begin_layout Plain Layout
21118
21119 \change_inserted -712698321 1555575781
21120 My Inset|M
21121 \change_unchanged
21122
21123 \end_layout
21124
21125 \end_inset
21126
21127
21128 \begin_inset Quotes erd
21129 \end_inset
21130
21131 ).
21132  This specification is optional.
21133  If it is not given the inset name as specified in the type declaration
21134  will be used instead for the menu.
21135 \change_unchanged
21136
21137 \end_layout
21138
21139 \begin_layout Description
21140 \begin_inset Flex Code
21141 status collapsed
21142
21143 \begin_layout Plain Layout
21144 MultiPar
21145 \end_layout
21146
21147 \end_inset
21148
21149  [
21150 \begin_inset Flex Code
21151 status collapsed
21152
21153 \begin_layout Plain Layout
21154
21155 \emph on
21156 0
21157 \end_layout
21158
21159 \end_inset
21160
21161 ,
21162 \begin_inset space \thinspace{}
21163 \end_inset
21164
21165
21166 \begin_inset Flex Code
21167 status collapsed
21168
21169 \begin_layout Plain Layout
21170 1
21171 \end_layout
21172
21173 \end_inset
21174
21175 ] Whether multiple paragraphs are permitted in this inset.
21176  This will also set 
21177 \begin_inset Flex Code
21178 status collapsed
21179
21180 \begin_layout Plain Layout
21181 CustomPars
21182 \end_layout
21183
21184 \end_inset
21185
21186  to the same value and 
21187 \begin_inset Flex Code
21188 status collapsed
21189
21190 \begin_layout Plain Layout
21191 ForcePlain
21192 \end_layout
21193
21194 \end_inset
21195
21196  to the opposite value.
21197  These can be reset to other values, if they are used 
21198 \emph on
21199 after
21200 \emph default
21201  
21202 \begin_inset Flex Code
21203 status collapsed
21204
21205 \begin_layout Plain Layout
21206 MultiPar
21207 \end_layout
21208
21209 \end_inset
21210
21211 .
21212  Default is true.
21213 \end_layout
21214
21215 \begin_layout Description
21216 \begin_inset Flex Code
21217 status collapsed
21218
21219 \begin_layout Plain Layout
21220 NeedProtect
21221 \end_layout
21222
21223 \end_inset
21224
21225  [
21226 \begin_inset Flex Code
21227 status collapsed
21228
21229 \begin_layout Plain Layout
21230
21231 \emph on
21232 0
21233 \end_layout
21234
21235 \end_inset
21236
21237 ,
21238 \begin_inset space \thinspace{}
21239 \end_inset
21240
21241
21242 \begin_inset Flex Code
21243 status collapsed
21244
21245 \begin_layout Plain Layout
21246 1
21247 \end_layout
21248
21249 \end_inset
21250
21251 ] Whether fragile commands in this inset should be 
21252 \begin_inset Flex Code
21253 status collapsed
21254
21255 \begin_layout Plain Layout
21256
21257 \backslash
21258 protect
21259 \end_layout
21260
21261 \end_inset
21262
21263 'ed.
21264  (Note: This is 
21265 \emph on
21266 not
21267 \emph default
21268  whether the command should itself be protected.) Default is false.
21269 \change_inserted -712698321 1523633958
21270
21271 \end_layout
21272
21273 \begin_layout Description
21274
21275 \change_inserted -712698321 1552395786
21276 \begin_inset Flex Code
21277 status collapsed
21278
21279 \begin_layout Plain Layout
21280
21281 \change_inserted -712698321 1523633961
21282 NeedCProtect
21283 \change_unchanged
21284
21285 \end_layout
21286
21287 \end_inset
21288
21289  [
21290 \begin_inset Flex Code
21291 status collapsed
21292
21293 \begin_layout Plain Layout
21294
21295 \change_inserted -712698321 1523633958
21296
21297 \emph on
21298 0
21299 \change_unchanged
21300
21301 \end_layout
21302
21303 \end_inset
21304
21305 ,
21306 \begin_inset space \thinspace{}
21307 \end_inset
21308
21309
21310 \begin_inset Flex Code
21311 status collapsed
21312
21313 \begin_layout Plain Layout
21314
21315 \change_inserted -712698321 1523633958
21316 1
21317 \change_unchanged
21318
21319 \end_layout
21320
21321 \end_inset
21322
21323 ] This causes macros that contain this inset to be protected with 
21324 \begin_inset Flex Code
21325 status collapsed
21326
21327 \begin_layout Plain Layout
21328
21329 \change_inserted -712698321 1523634038
21330
21331 \backslash
21332 cprotect
21333 \change_unchanged
21334
21335 \end_layout
21336
21337 \end_inset
21338
21339  (cf.
21340  package 
21341 \family sans
21342 cprotect
21343 \family default
21344 ) if necessary and thus allows (some) verbatim stuff in macros.
21345  Default is false.
21346 \end_layout
21347
21348 \begin_layout Description
21349
21350 \change_inserted -712698321 1555579651
21351 \begin_inset Flex Code
21352 status collapsed
21353
21354 \begin_layout Plain Layout
21355
21356 \change_inserted -712698321 1552395787
21357 NeedMBoxProtect
21358 \change_unchanged
21359
21360 \end_layout
21361
21362 \end_inset
21363
21364  [
21365 \begin_inset Flex Code
21366 status collapsed
21367
21368 \begin_layout Plain Layout
21369
21370 \change_inserted -712698321 1552395787
21371
21372 \emph on
21373 0
21374 \change_unchanged
21375
21376 \end_layout
21377
21378 \end_inset
21379
21380 ,
21381 \begin_inset space \thinspace{}
21382 \end_inset
21383
21384
21385 \begin_inset Flex Code
21386 status collapsed
21387
21388 \begin_layout Plain Layout
21389
21390 \change_inserted -712698321 1552395787
21391 1
21392 \change_unchanged
21393
21394 \end_layout
21395
21396 \end_inset
21397
21398 ] Whether specific commands in this inset (such as 
21399 \begin_inset Flex Code
21400 status collapsed
21401
21402 \begin_layout Plain Layout
21403
21404 \change_inserted -712698321 1552395787
21405
21406 \backslash
21407 cite
21408 \change_unchanged
21409
21410 \end_layout
21411
21412 \end_inset
21413
21414  and 
21415 \begin_inset Flex Code
21416 status collapsed
21417
21418 \begin_layout Plain Layout
21419
21420 \change_inserted -712698321 1552395787
21421
21422 \backslash
21423 ref
21424 \change_unchanged
21425
21426 \end_layout
21427
21428 \end_inset
21429
21430 ) should be protected in an 
21431 \begin_inset Flex Code
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435
21436 \change_inserted -712698321 1552395787
21437
21438 \backslash
21439 mbox
21440 \change_unchanged
21441
21442 \end_layout
21443
21444 \end_inset
21445
21446 .
21447  This is particularly needed for insets that draw on 
21448 \family sans
21449 ulem
21450 \family default
21451  or 
21452 \family sans
21453 soul
21454 \family default
21455  commands which parse their content in complex ways.
21456  Default is false.
21457 \end_layout
21458
21459 \begin_layout Description
21460
21461 \change_inserted -712698321 1555579742
21462 \begin_inset Flex Code
21463 status collapsed
21464
21465 \begin_layout Plain Layout
21466
21467 \change_inserted -712698321 1555579658
21468 NewlineCmd
21469 \change_unchanged
21470
21471 \end_layout
21472
21473 \end_inset
21474
21475  
21476 \begin_inset Flex Code
21477 status collapsed
21478
21479 \begin_layout Plain Layout
21480
21481 \change_inserted -712698321 1555579651
21482 [string]
21483 \change_unchanged
21484
21485 \end_layout
21486
21487 \end_inset
21488
21489  Option to define a different command (from the default 
21490 \begin_inset Flex Code
21491 status collapsed
21492
21493 \begin_layout Plain Layout
21494
21495 \change_inserted -712698321 1555579742
21496
21497 \backslash
21498
21499 \backslash
21500
21501 \change_unchanged
21502
21503 \end_layout
21504
21505 \end_inset
21506
21507 ) to be used for line breaks.
21508  The initial backslash must not be specified.
21509 \change_unchanged
21510
21511 \end_layout
21512
21513 \begin_layout Description
21514 \begin_inset Flex Code
21515 status collapsed
21516
21517 \begin_layout Plain Layout
21518 NoInsetLayout
21519 \end_layout
21520
21521 \end_inset
21522
21523  [
21524 \begin_inset Flex Code
21525 status collapsed
21526
21527 \begin_layout Plain Layout
21528 <layout>
21529 \end_layout
21530
21531 \end_inset
21532
21533 ] Deletes an existing 
21534 \begin_inset Flex Code
21535 status collapsed
21536
21537 \begin_layout Plain Layout
21538 InsetLayout
21539 \end_layout
21540
21541 \end_inset
21542
21543 .
21544 \end_layout
21545
21546 \begin_layout Description
21547 \begin_inset Flex Code
21548 status collapsed
21549
21550 \begin_layout Plain Layout
21551 ObsoletedBy
21552 \end_layout
21553
21554 \end_inset
21555
21556  [
21557 \begin_inset Flex Code
21558 status collapsed
21559
21560 \begin_layout Plain Layout
21561 <layout>
21562 \end_layout
21563
21564 \end_inset
21565
21566 ] Name of an 
21567 \begin_inset Flex Code
21568 status collapsed
21569
21570 \begin_layout Plain Layout
21571 InsetLayout
21572 \end_layout
21573
21574 \end_inset
21575
21576  that has replaced this 
21577 \begin_inset Flex Code
21578 status collapsed
21579
21580 \begin_layout Plain Layout
21581 InsetLayout
21582 \end_layout
21583
21584 \end_inset
21585
21586 .
21587  This is used to rename an 
21588 \begin_inset Flex Code
21589 status collapsed
21590
21591 \begin_layout Plain Layout
21592 InsetLayout
21593 \end_layout
21594
21595 \end_inset
21596
21597 , while keeping backward compatibility.
21598 \change_inserted -712698321 1559491850
21599
21600 \end_layout
21601
21602 \begin_layout Description
21603
21604 \change_inserted -712698321 1559492002
21605 \begin_inset Flex Code
21606 status collapsed
21607
21608 \begin_layout Plain Layout
21609
21610 \change_inserted -712698321 1559491854
21611 ParbreakIgnored
21612 \change_unchanged
21613
21614 \end_layout
21615
21616 \end_inset
21617
21618  [
21619 \begin_inset Flex Code
21620 status collapsed
21621
21622 \begin_layout Plain Layout
21623
21624 \change_inserted -712698321 1559491850
21625
21626 \emph on
21627 0
21628 \change_unchanged
21629
21630 \end_layout
21631
21632 \end_inset
21633
21634 ,
21635 \begin_inset space \thinspace{}
21636 \end_inset
21637
21638
21639 \begin_inset Flex Code
21640 status collapsed
21641
21642 \begin_layout Plain Layout
21643
21644 \change_inserted -712698321 1559491850
21645 1
21646 \change_unchanged
21647
21648 \end_layout
21649
21650 \end_inset
21651
21652 ] If this is set to 
21653 \begin_inset Flex Code
21654 status collapsed
21655
21656 \begin_layout Plain Layout
21657
21658 \change_inserted -712698321 1559491881
21659 1
21660 \change_unchanged
21661
21662 \end_layout
21663
21664 \end_inset
21665
21666 , paragraph breaks will be ignored in the output.
21667  This might be useful for insets where the content should be alignable on
21668  different lines only in the \SpecialChar LyX
21669  workarea, without any effect in the output.
21670 \change_unchanged
21671
21672 \end_layout
21673
21674 \begin_layout Description
21675 \begin_inset Flex Code
21676 status collapsed
21677
21678 \begin_layout Plain Layout
21679 ParbreakIsNewline
21680 \end_layout
21681
21682 \end_inset
21683
21684  [
21685 \begin_inset Flex Code
21686 status collapsed
21687
21688 \begin_layout Plain Layout
21689
21690 \emph on
21691 0
21692 \end_layout
21693
21694 \end_inset
21695
21696 ,
21697 \begin_inset space \thinspace{}
21698 \end_inset
21699
21700
21701 \begin_inset Flex Code
21702 status collapsed
21703
21704 \begin_layout Plain Layout
21705 1
21706 \end_layout
21707
21708 \end_inset
21709
21710 ] As with paragraph styles, see 
21711 \begin_inset CommandInset ref
21712 LatexCommand ref
21713 reference "subsec:Paragraph-Styles"
21714
21715 \end_inset
21716
21717 .
21718  Default is false.
21719 \end_layout
21720
21721 \begin_layout Description
21722 \begin_inset Flex Code
21723 status collapsed
21724
21725 \begin_layout Plain Layout
21726 PassThru
21727 \end_layout
21728
21729 \end_inset
21730
21731  [
21732 \begin_inset Flex Code
21733 status collapsed
21734
21735 \begin_layout Plain Layout
21736
21737 \emph on
21738 0
21739 \end_layout
21740
21741 \end_inset
21742
21743 ,
21744 \begin_inset space \thinspace{}
21745 \end_inset
21746
21747
21748 \begin_inset Flex Code
21749 status collapsed
21750
21751 \begin_layout Plain Layout
21752 1
21753 \end_layout
21754
21755 \end_inset
21756
21757 ] As with paragraph styles, see 
21758 \begin_inset CommandInset ref
21759 LatexCommand ref
21760 reference "subsec:Paragraph-Styles"
21761
21762 \end_inset
21763
21764 .
21765  Default is false.
21766 \end_layout
21767
21768 \begin_layout Description
21769 \begin_inset Flex Code
21770 status collapsed
21771
21772 \begin_layout Plain Layout
21773 Preamble
21774 \end_layout
21775
21776 \end_inset
21777
21778  As with paragraph styles, see 
21779 \begin_inset CommandInset ref
21780 LatexCommand ref
21781 reference "subsec:Paragraph-Styles"
21782
21783 \end_inset
21784
21785 .
21786 \end_layout
21787
21788 \begin_layout Description
21789 \begin_inset Flex Code
21790 status collapsed
21791
21792 \begin_layout Plain Layout
21793 RefPrefix
21794 \end_layout
21795
21796 \end_inset
21797
21798  [
21799 \begin_inset Flex Code
21800 status collapsed
21801
21802 \begin_layout Plain Layout
21803 string
21804 \end_layout
21805
21806 \end_inset
21807
21808 ] The prefix to use when creating labels referring to insets of this type.
21809  This allows the use of formatted references.
21810 \end_layout
21811
21812 \begin_layout Description
21813 \begin_inset Flex Code
21814 status collapsed
21815
21816 \begin_layout Plain Layout
21817 Requires
21818 \end_layout
21819
21820 \end_inset
21821
21822  [
21823 \begin_inset Flex Code
21824 status collapsed
21825
21826 \begin_layout Plain Layout
21827 string
21828 \end_layout
21829
21830 \end_inset
21831
21832 ] As with paragraph styles, see 
21833 \begin_inset CommandInset ref
21834 LatexCommand ref
21835 reference "subsec:Paragraph-Styles"
21836
21837 \end_inset
21838
21839 .
21840 \end_layout
21841
21842 \begin_layout Description
21843 \begin_inset Flex Code
21844 status collapsed
21845
21846 \begin_layout Plain Layout
21847 ResetArgs
21848 \end_layout
21849
21850 \end_inset
21851
21852  [
21853 \begin_inset Flex Code
21854 status collapsed
21855
21856 \begin_layout Plain Layout
21857
21858 \emph on
21859 0
21860 \end_layout
21861
21862 \end_inset
21863
21864 ,
21865 \begin_inset space \thinspace{}
21866 \end_inset
21867
21868
21869 \begin_inset Flex Code
21870 status collapsed
21871
21872 \begin_layout Plain Layout
21873 1
21874 \end_layout
21875
21876 \end_inset
21877
21878 ] Resets the \SpecialChar LaTeX
21879  arguments of this layout (as defined via the 
21880 \begin_inset Flex Code
21881 status collapsed
21882
21883 \begin_layout Plain Layout
21884 Argument
21885 \end_layout
21886
21887 \end_inset
21888
21889  tag).
21890  This is useful if you have copied a style via 
21891 \begin_inset Flex Code
21892 status collapsed
21893
21894 \begin_layout Plain Layout
21895 CopyStyle
21896 \end_layout
21897
21898 \end_inset
21899
21900 , but you do not want to inherit its (required and optional) arguments.
21901 \end_layout
21902
21903 \begin_layout Description
21904 \begin_inset Flex Code
21905 status collapsed
21906
21907 \begin_layout Plain Layout
21908 ResetsFont
21909 \end_layout
21910
21911 \end_inset
21912
21913  [
21914 \begin_inset Flex Code
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918
21919 \emph on
21920 0
21921 \end_layout
21922
21923 \end_inset
21924
21925 ,
21926 \begin_inset space \thinspace{}
21927 \end_inset
21928
21929
21930 \begin_inset Flex Code
21931 status collapsed
21932
21933 \begin_layout Plain Layout
21934 1
21935 \end_layout
21936
21937 \end_inset
21938
21939 ] Whether this inset should use the font of its surrounding environment
21940  or uses its own.
21941  Default is false: use the font of the surrounding environment.
21942 \end_layout
21943
21944 \begin_layout Description
21945 \begin_inset Flex Code
21946 status collapsed
21947
21948 \begin_layout Plain Layout
21949 RightDelim
21950 \end_layout
21951
21952 \end_inset
21953
21954  [
21955 \begin_inset Flex Code
21956 status collapsed
21957
21958 \begin_layout Plain Layout
21959 string
21960 \end_layout
21961
21962 \end_inset
21963
21964 ] A string that is put at the end of the layout content.
21965  A line break in the output can be indicated by 
21966 \begin_inset Flex Code
21967 status collapsed
21968
21969 \begin_layout Plain Layout
21970 <br/>
21971 \end_layout
21972
21973 \end_inset
21974
21975 .
21976 \end_layout
21977
21978 \begin_layout Description
21979 \begin_inset Flex Code
21980 status collapsed
21981
21982 \begin_layout Plain Layout
21983 Spellcheck
21984 \end_layout
21985
21986 \end_inset
21987
21988  [
21989 \begin_inset Flex Code
21990 status collapsed
21991
21992 \begin_layout Plain Layout
21993 0
21994 \end_layout
21995
21996 \end_inset
21997
21998 ,
21999 \begin_inset space \thinspace{}
22000 \end_inset
22001
22002
22003 \begin_inset Flex Code
22004 status collapsed
22005
22006 \begin_layout Plain Layout
22007
22008 \emph on
22009 1
22010 \end_layout
22011
22012 \end_inset
22013
22014 ] Allow spell-checking the contents of this inset.
22015  Default is true.
22016 \end_layout
22017
22018 \begin_layout Subsection
22019 Counters
22020 \begin_inset CommandInset label
22021 LatexCommand label
22022 name "subsec:Counters"
22023
22024 \end_inset
22025
22026
22027 \end_layout
22028
22029 \begin_layout Standard
22030 It is necessary to define the counters (
22031 \begin_inset Flex Noun
22032 status collapsed
22033
22034 \begin_layout Plain Layout
22035 chapter
22036 \end_layout
22037
22038 \end_inset
22039
22040
22041 \begin_inset Flex Noun
22042 status collapsed
22043
22044 \begin_layout Plain Layout
22045 figure
22046 \end_layout
22047
22048 \end_inset
22049
22050 , \SpecialChar ldots
22051 ) in the text class itself.
22052  The standard counters are defined in the file 
22053 \begin_inset Flex Code
22054 status collapsed
22055
22056 \begin_layout Plain Layout
22057 stdcounters.inc
22058 \end_layout
22059
22060 \end_inset
22061
22062 , so you may have to do no more than add
22063 \end_layout
22064
22065 \begin_layout LyX-Code
22066 Input stdcounters.inc
22067 \end_layout
22068
22069 \begin_layout Standard
22070 to your layout file to get them to work.
22071  But if you want to define custom counters, then you can do so.
22072  The counter declaration must begin with:
22073 \end_layout
22074
22075 \begin_layout LyX-Code
22076 Counter CounterName
22077 \end_layout
22078
22079 \begin_layout Standard
22080 where of course `
22081 \begin_inset Flex Code
22082 status collapsed
22083
22084 \begin_layout Plain Layout
22085 CounterName
22086 \end_layout
22087
22088 \end_inset
22089
22090 ' is replaced by the name of the counter.
22091  And it must end with 
22092 \begin_inset Quotes eld
22093 \end_inset
22094
22095
22096 \begin_inset Flex Code
22097 status collapsed
22098
22099 \begin_layout Plain Layout
22100 End
22101 \end_layout
22102
22103 \end_inset
22104
22105
22106 \begin_inset Quotes erd
22107 \end_inset
22108
22109 .
22110  The following parameters can also be used:
22111 \end_layout
22112
22113 \begin_layout Description
22114 \begin_inset Flex Code
22115 status collapsed
22116
22117 \begin_layout Plain Layout
22118 InitialValue
22119 \end_layout
22120
22121 \end_inset
22122
22123  [
22124 \begin_inset Flex Code
22125 status collapsed
22126
22127 \begin_layout Plain Layout
22128 int=1
22129 \end_layout
22130
22131 \end_inset
22132
22133 ] Sets the initial value for the counter, to which it will be reset whenever
22134  that happens.
22135  Normally, one will want the default, 1.
22136 \end_layout
22137
22138 \begin_layout Description
22139 \begin_inset Flex Code
22140 status collapsed
22141
22142 \begin_layout Plain Layout
22143 LabelString
22144 \end_layout
22145
22146 \end_inset
22147
22148  [
22149 \begin_inset Flex Code
22150 status collapsed
22151
22152 \begin_layout Plain Layout
22153 string
22154 \end_layout
22155
22156 \end_inset
22157
22158 =
22159 \begin_inset Quotes erd
22160 \end_inset
22161
22162
22163 \begin_inset Quotes erd
22164 \end_inset
22165
22166 ] When defined, this string defines how the counter is displayed.
22167  Setting this value sets 
22168 \begin_inset Flex Code
22169 status collapsed
22170
22171 \begin_layout Plain Layout
22172 LabelStringAppendix
22173 \end_layout
22174
22175 \end_inset
22176
22177  to the same value.
22178  The following special constructs can be used in the string:
22179 \end_layout
22180
22181 \begin_deeper
22182 \begin_layout Itemize
22183 \begin_inset Flex Code
22184 status collapsed
22185
22186 \begin_layout Plain Layout
22187
22188 \backslash
22189 thecounter
22190 \end_layout
22191
22192 \end_inset
22193
22194  will be replaced by the expansion of the 
22195 \begin_inset Flex Code
22196 status collapsed
22197
22198 \begin_layout Plain Layout
22199 LabelString
22200 \end_layout
22201
22202 \end_inset
22203
22204  (or 
22205 \begin_inset Flex Code
22206 status collapsed
22207
22208 \begin_layout Plain Layout
22209 LabelStringAppendix
22210 \end_layout
22211
22212 \end_inset
22213
22214 ) of the counter 
22215 \begin_inset Flex Code
22216 status collapsed
22217
22218 \begin_layout Plain Layout
22219 counter
22220 \end_layout
22221
22222 \end_inset
22223
22224 .
22225  
22226 \end_layout
22227
22228 \begin_layout Itemize
22229 counter values can be expressed using \SpecialChar LaTeX
22230 -like macros
22231 \begin_inset Newline newline
22232 \end_inset
22233
22234
22235 \begin_inset Flex Code
22236 status collapsed
22237
22238 \begin_layout Plain Layout
22239
22240 \backslash
22241
22242 \emph on
22243 numbertype
22244 \emph default
22245 {
22246 \emph on
22247 counter
22248 \emph default
22249 }
22250 \end_layout
22251
22252 \end_inset
22253
22254 , where 
22255 \begin_inset Flex Code
22256 status collapsed
22257
22258 \begin_layout Plain Layout
22259
22260 \emph on
22261 numbertype
22262 \end_layout
22263
22264 \end_inset
22265
22266  can be:
22267 \begin_inset Foot
22268 status collapsed
22269
22270 \begin_layout Plain Layout
22271
22272 \family roman
22273 \series medium
22274 \shape up
22275 \size normal
22276 \emph off
22277 \bar no
22278 \noun off
22279 \color none
22280 Actually, the situation is a bit more complicated: any
22281 \family default
22282 \series default
22283 \shape default
22284 \emph default
22285 \bar default
22286  
22287 \size default
22288 \emph on
22289 \noun default
22290 \color inherit
22291 numbertype
22292 \family roman
22293 \series medium
22294 \shape up
22295 \size normal
22296 \emph off
22297 \bar no
22298 \noun off
22299  other than those described below will produce arabic numerals.
22300  It would not be surprising to see this change in the future.
22301 \end_layout
22302
22303 \end_inset
22304
22305  
22306 \begin_inset Flex Code
22307 status collapsed
22308
22309 \begin_layout Plain Layout
22310 arabic
22311 \end_layout
22312
22313 \end_inset
22314
22315 : 1, 2, 3,\SpecialChar ldots
22316
22317 \begin_inset Flex Code
22318 status collapsed
22319
22320 \begin_layout Plain Layout
22321 alph
22322 \end_layout
22323
22324 \end_inset
22325
22326  for lower-case letters: a, b, c, \SpecialChar ldots
22327
22328 \begin_inset Flex Code
22329 status collapsed
22330
22331 \begin_layout Plain Layout
22332 Alph
22333 \end_layout
22334
22335 \end_inset
22336
22337  for upper-case letters: A, B, C, \SpecialChar ldots
22338
22339 \begin_inset Flex Code
22340 status collapsed
22341
22342 \begin_layout Plain Layout
22343 roman
22344 \end_layout
22345
22346 \end_inset
22347
22348  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
22349
22350 \begin_inset Flex Code
22351 status collapsed
22352
22353 \begin_layout Plain Layout
22354 Roman
22355 \end_layout
22356
22357 \end_inset
22358
22359  for upper-case roman numerals: I, II, III\SpecialChar ldots
22360
22361 \begin_inset Flex Code
22362 status collapsed
22363
22364 \begin_layout Plain Layout
22365 hebrew
22366 \end_layout
22367
22368 \end_inset
22369
22370  for hebrew numerals.
22371 \end_layout
22372
22373 \end_deeper
22374 \begin_layout Standard
22375 If LabelString is not defined, a default value is constructed as follows:
22376  if the counter has a master counter 
22377 \begin_inset Flex Code
22378 status collapsed
22379
22380 \begin_layout Plain Layout
22381 master
22382 \end_layout
22383
22384 \end_inset
22385
22386  (defined via 
22387 \begin_inset Flex Code
22388 status collapsed
22389
22390 \begin_layout Plain Layout
22391 Within
22392 \end_layout
22393
22394 \end_inset
22395
22396 ), the string
22397 \begin_inset Newline newline
22398 \end_inset
22399
22400
22401 \begin_inset Flex Code
22402 status collapsed
22403
22404 \begin_layout Plain Layout
22405
22406 \backslash
22407 themaster.
22408 \backslash
22409 arabic{counter}
22410 \end_layout
22411
22412 \end_inset
22413
22414  is used; otherwise the string 
22415 \begin_inset Flex Code
22416 status collapsed
22417
22418 \begin_layout Plain Layout
22419
22420 \backslash
22421 arabic{counter}
22422 \end_layout
22423
22424 \end_inset
22425
22426  is used.
22427 \end_layout
22428
22429 \begin_layout Description
22430 \begin_inset Flex Code
22431 status collapsed
22432
22433 \begin_layout Plain Layout
22434 LabelStringAppendix
22435 \end_layout
22436
22437 \end_inset
22438
22439  [
22440 \begin_inset Flex Code
22441 status collapsed
22442
22443 \begin_layout Plain Layout
22444 string
22445 \end_layout
22446
22447 \end_inset
22448
22449 =
22450 \begin_inset Quotes erd
22451 \end_inset
22452
22453
22454 \begin_inset Quotes erd
22455 \end_inset
22456
22457 ] Same as 
22458 \begin_inset Flex Code
22459 status collapsed
22460
22461 \begin_layout Plain Layout
22462 LabelString
22463 \end_layout
22464
22465 \end_inset
22466
22467 , but for use in the Appendix.
22468 \end_layout
22469
22470 \begin_layout Description
22471 \begin_inset Flex Code
22472 status collapsed
22473
22474 \begin_layout Plain Layout
22475 PrettyFormat
22476 \end_layout
22477
22478 \end_inset
22479
22480  [
22481 \begin_inset Flex Code
22482 status collapsed
22483
22484 \begin_layout Plain Layout
22485 string
22486 \end_layout
22487
22488 \end_inset
22489
22490 =
22491 \begin_inset Quotes erd
22492 \end_inset
22493
22494
22495 \begin_inset Quotes erd
22496 \end_inset
22497
22498 ] A format for use with formatted references to this counter.
22499  For example, one might want to have references to section numbers appear
22500  as 
22501 \begin_inset Quotes eld
22502 \end_inset
22503
22504 Section 2.4
22505 \begin_inset Quotes erd
22506 \end_inset
22507
22508 .
22509  The string should contain 
22510 \begin_inset Quotes eld
22511 \end_inset
22512
22513 ##
22514 \begin_inset Quotes erd
22515 \end_inset
22516
22517 .
22518  This will be replaced by the counter number itself.
22519  So, for sections, it would be: Section ##.
22520 \end_layout
22521
22522 \begin_layout Description
22523 \begin_inset Flex Code
22524 status collapsed
22525
22526 \begin_layout Plain Layout
22527 Within
22528 \end_layout
22529
22530 \end_inset
22531
22532  [
22533 \begin_inset Flex Code
22534 status collapsed
22535
22536 \begin_layout Plain Layout
22537 string
22538 \end_layout
22539
22540 \end_inset
22541
22542 =
22543 \begin_inset Quotes erd
22544 \end_inset
22545
22546
22547 \begin_inset Quotes erd
22548 \end_inset
22549
22550 ] If this is set to the name of another counter, the present counter will
22551  be reset every time the other one is increased.
22552  For example, 
22553 \begin_inset Flex Code
22554 status collapsed
22555
22556 \begin_layout Plain Layout
22557 subsection
22558 \end_layout
22559
22560 \end_inset
22561
22562  is numbered inside 
22563 \begin_inset Flex Code
22564 status collapsed
22565
22566 \begin_layout Plain Layout
22567 section
22568 \end_layout
22569
22570 \end_inset
22571
22572 .
22573 \end_layout
22574
22575 \begin_layout Subsection
22576 Font description
22577 \begin_inset CommandInset label
22578 LatexCommand label
22579 name "subsec:Font-description"
22580
22581 \end_inset
22582
22583
22584 \end_layout
22585
22586 \begin_layout Standard
22587 A font description looks like this:
22588 \end_layout
22589
22590 \begin_layout LyX-Code
22591 Font 
22592 \family roman
22593 \emph on
22594 or
22595 \family default
22596 \emph default
22597  LabelFont
22598 \emph on
22599  
22600 \family roman
22601 or
22602 \family default
22603 \emph default
22604  DefaultFont
22605 \end_layout
22606
22607 \begin_layout LyX-Code
22608  ...
22609 \end_layout
22610
22611 \begin_layout LyX-Code
22612 EndFont
22613 \end_layout
22614
22615 \begin_layout Standard
22616 The following commands are available:
22617 \end_layout
22618
22619 \begin_layout Description
22620 \begin_inset Flex Code
22621 status collapsed
22622
22623 \begin_layout Plain Layout
22624 Color
22625 \end_layout
22626
22627 \end_inset
22628
22629  [
22630 \begin_inset Flex Code
22631 status collapsed
22632
22633 \begin_layout Plain Layout
22634
22635 \emph on
22636 none
22637 \end_layout
22638
22639 \end_inset
22640
22641
22642 \begin_inset Flex Code
22643 status collapsed
22644
22645 \begin_layout Plain Layout
22646 black
22647 \end_layout
22648
22649 \end_inset
22650
22651
22652 \begin_inset Flex Code
22653 status collapsed
22654
22655 \begin_layout Plain Layout
22656 white
22657 \end_layout
22658
22659 \end_inset
22660
22661
22662 \begin_inset Flex Code
22663 status collapsed
22664
22665 \begin_layout Plain Layout
22666 red
22667 \end_layout
22668
22669 \end_inset
22670
22671
22672 \begin_inset Flex Code
22673 status collapsed
22674
22675 \begin_layout Plain Layout
22676 green
22677 \end_layout
22678
22679 \end_inset
22680
22681
22682 \begin_inset Flex Code
22683 status collapsed
22684
22685 \begin_layout Plain Layout
22686 blue
22687 \end_layout
22688
22689 \end_inset
22690
22691
22692 \begin_inset Flex Code
22693 status collapsed
22694
22695 \begin_layout Plain Layout
22696 cyan
22697 \end_layout
22698
22699 \end_inset
22700
22701
22702 \begin_inset Flex Code
22703 status collapsed
22704
22705 \begin_layout Plain Layout
22706 magenta
22707 \end_layout
22708
22709 \end_inset
22710
22711
22712 \begin_inset Flex Code
22713 status collapsed
22714
22715 \begin_layout Plain Layout
22716 yellow
22717 \end_layout
22718
22719 \end_inset
22720
22721
22722 \begin_inset Flex Code
22723 status collapsed
22724
22725 \begin_layout Plain Layout
22726 brown
22727 \end_layout
22728
22729 \end_inset
22730
22731
22732 \begin_inset Flex Code
22733 status collapsed
22734
22735 \begin_layout Plain Layout
22736 darkgray
22737 \end_layout
22738
22739 \end_inset
22740
22741
22742 \begin_inset Flex Code
22743 status collapsed
22744
22745 \begin_layout Plain Layout
22746 gray
22747 \end_layout
22748
22749 \end_inset
22750
22751
22752 \begin_inset Flex Code
22753 status collapsed
22754
22755 \begin_layout Plain Layout
22756 lightgray
22757 \end_layout
22758
22759 \end_inset
22760
22761
22762 \begin_inset Flex Code
22763 status collapsed
22764
22765 \begin_layout Plain Layout
22766 lime
22767 \end_layout
22768
22769 \end_inset
22770
22771
22772 \begin_inset Flex Code
22773 status collapsed
22774
22775 \begin_layout Plain Layout
22776 orange
22777 \end_layout
22778
22779 \end_inset
22780
22781
22782 \begin_inset Flex Code
22783 status collapsed
22784
22785 \begin_layout Plain Layout
22786 olive
22787 \end_layout
22788
22789 \end_inset
22790
22791
22792 \begin_inset Flex Code
22793 status collapsed
22794
22795 \begin_layout Plain Layout
22796 pink
22797 \end_layout
22798
22799 \end_inset
22800
22801
22802 \begin_inset Flex Code
22803 status collapsed
22804
22805 \begin_layout Plain Layout
22806 purple
22807 \end_layout
22808
22809 \end_inset
22810
22811
22812 \begin_inset Flex Code
22813 status collapsed
22814
22815 \begin_layout Plain Layout
22816 teal
22817 \end_layout
22818
22819 \end_inset
22820
22821
22822 \begin_inset Flex Code
22823 status collapsed
22824
22825 \begin_layout Plain Layout
22826 violet
22827 \end_layout
22828
22829 \end_inset
22830
22831 ]
22832 \end_layout
22833
22834 \begin_layout Description
22835 \begin_inset Flex Code
22836 status collapsed
22837
22838 \begin_layout Plain Layout
22839 Family
22840 \end_layout
22841
22842 \end_inset
22843
22844  [
22845 \begin_inset Flex Code
22846 status collapsed
22847
22848 \begin_layout Plain Layout
22849
22850 \emph on
22851 Roman
22852 \end_layout
22853
22854 \end_inset
22855
22856
22857 \begin_inset Flex Code
22858 status collapsed
22859
22860 \begin_layout Plain Layout
22861 Sans
22862 \end_layout
22863
22864 \end_inset
22865
22866
22867 \begin_inset Flex Code
22868 status collapsed
22869
22870 \begin_layout Plain Layout
22871 Typewriter
22872 \end_layout
22873
22874 \end_inset
22875
22876 ]
22877 \end_layout
22878
22879 \begin_layout Description
22880 \begin_inset Flex Code
22881 status collapsed
22882
22883 \begin_layout Plain Layout
22884 Misc
22885 \end_layout
22886
22887 \end_inset
22888
22889  [
22890 \begin_inset Flex Code
22891 status collapsed
22892
22893 \begin_layout Plain Layout
22894 string
22895 \end_layout
22896
22897 \end_inset
22898
22899 ] Valid arguments are: 
22900 \begin_inset Flex Code
22901 status collapsed
22902
22903 \begin_layout Plain Layout
22904 emph
22905 \end_layout
22906
22907 \end_inset
22908
22909
22910 \begin_inset Flex Code
22911 status collapsed
22912
22913 \begin_layout Plain Layout
22914 noun
22915 \end_layout
22916
22917 \end_inset
22918
22919
22920 \begin_inset Flex Code
22921 status collapsed
22922
22923 \begin_layout Plain Layout
22924 strikeout
22925 \end_layout
22926
22927 \end_inset
22928
22929
22930 \begin_inset Flex Code
22931 status collapsed
22932
22933 \begin_layout Plain Layout
22934 underbar
22935 \end_layout
22936
22937 \end_inset
22938
22939
22940 \begin_inset Flex Code
22941 status collapsed
22942
22943 \begin_layout Plain Layout
22944 uuline
22945 \end_layout
22946
22947 \end_inset
22948
22949
22950 \begin_inset Flex Code
22951 status collapsed
22952
22953 \begin_layout Plain Layout
22954 uwave
22955 \end_layout
22956
22957 \end_inset
22958
22959
22960 \begin_inset Flex Code
22961 status collapsed
22962
22963 \begin_layout Plain Layout
22964 no_emph
22965 \end_layout
22966
22967 \end_inset
22968
22969
22970 \begin_inset Flex Code
22971 status collapsed
22972
22973 \begin_layout Plain Layout
22974 no_noun
22975 \end_layout
22976
22977 \end_inset
22978
22979
22980 \begin_inset Flex Code
22981 status collapsed
22982
22983 \begin_layout Plain Layout
22984 no_strikeout
22985 \end_layout
22986
22987 \end_inset
22988
22989
22990 \begin_inset Flex Code
22991 status collapsed
22992
22993 \begin_layout Plain Layout
22994 no_bar
22995 \end_layout
22996
22997 \end_inset
22998
22999
23000 \begin_inset Flex Code
23001 status collapsed
23002
23003 \begin_layout Plain Layout
23004 no_uuline
23005 \end_layout
23006
23007 \end_inset
23008
23009  and 
23010 \begin_inset Flex Code
23011 status collapsed
23012
23013 \begin_layout Plain Layout
23014 no_uwave
23015 \end_layout
23016
23017 \end_inset
23018
23019 .
23020  Each of these turns on or off the corresponding attribute.
23021  For example, 
23022 \begin_inset Flex Code
23023 status collapsed
23024
23025 \begin_layout Plain Layout
23026 emph
23027 \end_layout
23028
23029 \end_inset
23030
23031  turns on emphasis, and 
23032 \begin_inset Flex Code
23033 status collapsed
23034
23035 \begin_layout Plain Layout
23036 no_emph
23037 \end_layout
23038
23039 \end_inset
23040
23041  turns it off.
23042  
23043 \begin_inset Newline newline
23044 \end_inset
23045
23046 If the latter seems puzzling, remember that the font settings for the present
23047  context are generally inherited from the surrounding context.
23048  So 
23049 \begin_inset Flex Code
23050 status collapsed
23051
23052 \begin_layout Plain Layout
23053 no_emph
23054 \end_layout
23055
23056 \end_inset
23057
23058  would turn off the emphasis that was anyway in effect, say, in a theorem
23059  environment.
23060 \end_layout
23061
23062 \begin_layout Description
23063 \begin_inset Flex Code
23064 status collapsed
23065
23066 \begin_layout Plain Layout
23067 Series
23068 \end_layout
23069
23070 \end_inset
23071
23072  [
23073 \begin_inset Flex Code
23074 status collapsed
23075
23076 \begin_layout Plain Layout
23077
23078 \emph on
23079 Medium
23080 \end_layout
23081
23082 \end_inset
23083
23084
23085 \begin_inset Flex Code
23086 status collapsed
23087
23088 \begin_layout Plain Layout
23089 Bold
23090 \end_layout
23091
23092 \end_inset
23093
23094
23095 \end_layout
23096
23097 \begin_layout Description
23098 \begin_inset Flex Code
23099 status collapsed
23100
23101 \begin_layout Plain Layout
23102 Shape
23103 \end_layout
23104
23105 \end_inset
23106
23107  [
23108 \begin_inset Flex Code
23109 status collapsed
23110
23111 \begin_layout Plain Layout
23112
23113 \emph on
23114 Up
23115 \end_layout
23116
23117 \end_inset
23118
23119
23120 \begin_inset Flex Code
23121 status collapsed
23122
23123 \begin_layout Plain Layout
23124 Italic
23125 \end_layout
23126
23127 \end_inset
23128
23129
23130 \begin_inset Flex Code
23131 status collapsed
23132
23133 \begin_layout Plain Layout
23134 SmallCaps
23135 \end_layout
23136
23137 \end_inset
23138
23139
23140 \begin_inset Flex Code
23141 status collapsed
23142
23143 \begin_layout Plain Layout
23144 Slanted
23145 \end_layout
23146
23147 \end_inset
23148
23149
23150 \end_layout
23151
23152 \begin_layout Description
23153 \begin_inset Flex Code
23154 status collapsed
23155
23156 \begin_layout Plain Layout
23157 Size
23158 \end_layout
23159
23160 \end_inset
23161
23162  [
23163 \begin_inset Flex Code
23164 status collapsed
23165
23166 \begin_layout Plain Layout
23167 tiny
23168 \end_layout
23169
23170 \end_inset
23171
23172
23173 \begin_inset Flex Code
23174 status collapsed
23175
23176 \begin_layout Plain Layout
23177 small
23178 \end_layout
23179
23180 \end_inset
23181
23182
23183 \begin_inset Flex Code
23184 status collapsed
23185
23186 \begin_layout Plain Layout
23187
23188 \emph on
23189 normal
23190 \end_layout
23191
23192 \end_inset
23193
23194
23195 \begin_inset Flex Code
23196 status collapsed
23197
23198 \begin_layout Plain Layout
23199 large
23200 \end_layout
23201
23202 \end_inset
23203
23204
23205 \begin_inset Flex Code
23206 status collapsed
23207
23208 \begin_layout Plain Layout
23209 larger
23210 \end_layout
23211
23212 \end_inset
23213
23214
23215 \begin_inset Flex Code
23216 status collapsed
23217
23218 \begin_layout Plain Layout
23219 largest
23220 \end_layout
23221
23222 \end_inset
23223
23224
23225 \begin_inset Flex Code
23226 status collapsed
23227
23228 \begin_layout Plain Layout
23229 huge
23230 \end_layout
23231
23232 \end_inset
23233
23234
23235 \begin_inset Flex Code
23236 status collapsed
23237
23238 \begin_layout Plain Layout
23239 giant
23240 \end_layout
23241
23242 \end_inset
23243
23244 ]
23245 \end_layout
23246
23247 \begin_layout Subsection
23248 \begin_inset CommandInset label
23249 LatexCommand label
23250 name "subsec:Citation-engine-description"
23251
23252 \end_inset
23253
23254 Cite engine description
23255 \end_layout
23256
23257 \begin_layout Standard
23258 The 
23259 \begin_inset Flex Code
23260 status collapsed
23261
23262 \begin_layout Plain Layout
23263 CiteEngine
23264 \end_layout
23265
23266 \end_inset
23267
23268  blocks, as used mainly in cite engine files (see 
23269 \begin_inset CommandInset ref
23270 LatexCommand ref
23271 reference "subsec:Cite-Engine-Files"
23272 plural "false"
23273 caps "false"
23274 noprefix "false"
23275
23276 \end_inset
23277
23278 ), define the citation commands provided by a specific 
23279 \begin_inset Quotes eld
23280 \end_inset
23281
23282 cite engine
23283 \begin_inset Quotes erd
23284 \end_inset
23285
23286 .
23287  A cite engine, in \SpecialChar LyX
23288  terms, is way specific way to format citations, using
23289  numbers, author names and/or years.
23290  Currently, \SpecialChar LyX
23291  supports three such engine types, namely:
23292 \end_layout
23293
23294 \begin_layout Enumerate
23295 \begin_inset Flex Code
23296 status collapsed
23297
23298 \begin_layout Plain Layout
23299 default
23300 \end_layout
23301
23302 \end_inset
23303
23304 : the default Bib\SpecialChar TeX
23305  way to format citations, a simple numeric style (e.
23306 \begin_inset space \thinspace{}
23307 \end_inset
23308
23309 g., 
23310 \begin_inset Quotes eld
23311 \end_inset
23312
23313 [1]
23314 \begin_inset Quotes erd
23315 \end_inset
23316
23317 )
23318 \end_layout
23319
23320 \begin_layout Enumerate
23321 \begin_inset Flex Code
23322 status collapsed
23323
23324 \begin_layout Plain Layout
23325 authoryear
23326 \end_layout
23327
23328 \end_inset
23329
23330 : Harvard-styled citations using author names and publication year (e.
23331 \begin_inset space \thinspace{}
23332 \end_inset
23333
23334 g., 
23335 \begin_inset Quotes eld
23336 \end_inset
23337
23338 Smith and Miller (2017b)
23339 \begin_inset Quotes erd
23340 \end_inset
23341
23342 )
23343 \end_layout
23344
23345 \begin_layout Enumerate
23346 \begin_inset Flex Code
23347 status collapsed
23348
23349 \begin_layout Plain Layout
23350 numerical
23351 \end_layout
23352
23353 \end_inset
23354
23355 : extended numerical citations that also allow for author or title next
23356  to the number (e.
23357 \begin_inset space \thinspace{}
23358 \end_inset
23359
23360 g., 
23361 \begin_inset Quotes eld
23362 \end_inset
23363
23364 Smith and Miller [1]
23365 \begin_inset Quotes erd
23366 \end_inset
23367
23368 )
23369 \end_layout
23370
23371 \begin_layout Standard
23372 \begin_inset Flex Code
23373 status collapsed
23374
23375 \begin_layout Plain Layout
23376 CiteEngine
23377 \end_layout
23378
23379 \end_inset
23380
23381  blocks look like this:
23382 \end_layout
23383
23384 \begin_layout LyX-Code
23385 CiteEngine default
23386 \end_layout
23387
23388 \begin_layout LyX-Code
23389  cite
23390 \end_layout
23391
23392 \begin_layout LyX-Code
23393  Citep*[][]
23394 \end_layout
23395
23396 \begin_layout LyX-Code
23397  citeyearpar[][]=parencite*
23398 \end_layout
23399
23400 \begin_layout LyX-Code
23401  ...
23402 \end_layout
23403
23404 \begin_layout LyX-Code
23405 End
23406 \end_layout
23407
23408 \begin_layout Standard
23409 The tag following 
23410 \begin_inset Flex Code
23411 status collapsed
23412
23413 \begin_layout Plain Layout
23414 CiteEngine
23415 \end_layout
23416
23417 \end_inset
23418
23419  denotes the engine.
23420  The individual lines respectively define a cite command or cite command
23421  paradigm supported by this engine.
23422  The line can be as simple as a cite command that is used both to name the
23423  respective \SpecialChar LyX
23424  command and the \SpecialChar LaTeX
23425  output or more complex in order to differentiate
23426  things.
23427  The full syntax is:
23428 \end_layout
23429
23430 \begin_layout LyX-Code
23431 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23432 \end_layout
23433
23434 \begin_layout Itemize
23435 \begin_inset Flex Code
23436 status collapsed
23437
23438 \begin_layout Plain Layout
23439 LyXName
23440 \end_layout
23441
23442 \end_inset
23443
23444 : The name as used in the 
23445 \begin_inset Flex Code
23446 status collapsed
23447
23448 \begin_layout Plain Layout
23449 *.lyx
23450 \end_layout
23451
23452 \end_inset
23453
23454  file.
23455 \end_layout
23456
23457 \begin_deeper
23458 \begin_layout Standard
23459 For portability reasons, we try to use the same name for same-formatted
23460  commands in different cite packages (thus many names stem from natbib,
23461  and thus we need to differentiate a 
23462 \begin_inset Flex Code
23463 status collapsed
23464
23465 \begin_layout Plain Layout
23466 latexcmd
23467 \end_layout
23468
23469 \end_inset
23470
23471  sometimes, if the \SpecialChar LaTeX
23472  command names differ).
23473 \end_layout
23474
23475 \end_deeper
23476 \begin_layout Itemize
23477 \begin_inset Flex Code
23478 status collapsed
23479
23480 \begin_layout Plain Layout
23481 alias
23482 \end_layout
23483
23484 \end_inset
23485
23486 : a (comma-separated) list of commands that fall back to the given 
23487 \begin_inset Flex Code
23488 status collapsed
23489
23490 \begin_layout Plain Layout
23491 LyXName
23492 \end_layout
23493
23494 \end_inset
23495
23496  in the current engine.
23497  This eases the switch of citation packages and engines.
23498  The 
23499 \begin_inset Flex Code
23500 status collapsed
23501
23502 \begin_layout Plain Layout
23503 alias
23504 \end_layout
23505
23506 \end_inset
23507
23508  can be compared to 
23509 \begin_inset Flex Code
23510 status collapsed
23511
23512 \begin_layout Plain Layout
23513 ObsoletedBy
23514 \end_layout
23515
23516 \end_inset
23517
23518  in layout definitions.
23519 \end_layout
23520
23521 \begin_layout Itemize
23522 \begin_inset Flex Code
23523 status collapsed
23524
23525 \begin_layout Plain Layout
23526 latexcmd
23527 \end_layout
23528
23529 \end_inset
23530
23531 : The actual \SpecialChar LaTeX
23532  command that is output.
23533  
23534 \end_layout
23535
23536 \begin_layout Standard
23537 \begin_inset Flex Code
23538 status collapsed
23539
23540 \begin_layout Plain Layout
23541 Alias
23542 \end_layout
23543
23544 \end_inset
23545
23546  and 
23547 \begin_inset Flex Code
23548 status collapsed
23549
23550 \begin_layout Plain Layout
23551 latexcmd
23552 \end_layout
23553
23554 \end_inset
23555
23556  are optional.
23557  If no 
23558 \begin_inset Flex Code
23559 status collapsed
23560
23561 \begin_layout Plain Layout
23562 latexcmd
23563 \end_layout
23564
23565 \end_inset
23566
23567  is given, the 
23568 \begin_inset Flex Code
23569 status collapsed
23570
23571 \begin_layout Plain Layout
23572 LyXName
23573 \end_layout
23574
23575 \end_inset
23576
23577  will be output to \SpecialChar LaTeX
23578 .
23579 \end_layout
23580
23581 \begin_layout Standard
23582 Note further:
23583 \end_layout
23584
23585 \begin_layout Itemize
23586 Capitalization indicates that the command also has a capitalized form (
23587 \begin_inset Flex Code
23588 status collapsed
23589
23590 \begin_layout Plain Layout
23591
23592 \backslash
23593 Latexcmd
23594 \end_layout
23595
23596 \end_inset
23597
23598  vs.
23599  
23600 \begin_inset Flex Code
23601 status collapsed
23602
23603 \begin_layout Plain Layout
23604
23605 \backslash
23606 latexcmd
23607 \end_layout
23608
23609 \end_inset
23610
23611 ).
23612  These usually enforce up-casing of name prefixes (
23613 \emph on
23614 von Goethe
23615 \emph default
23616  
23617 \begin_inset Formula $\Rightarrow$
23618 \end_inset
23619
23620  
23621 \emph on
23622 Von Goethe
23623 \emph default
23624 ).
23625 \end_layout
23626
23627 \begin_layout Itemize
23628 Brackets 
23629 \begin_inset Flex Code
23630 status collapsed
23631
23632 \begin_layout Plain Layout
23633 []
23634 \end_layout
23635
23636 \end_inset
23637
23638  indicate the number of optional arguments (there can be 0–2).
23639 \end_layout
23640
23641 \begin_layout Itemize
23642 A star 
23643 \begin_inset Flex Code
23644 status collapsed
23645
23646 \begin_layout Plain Layout
23647 *
23648 \end_layout
23649
23650 \end_inset
23651
23652  indicates there is a starred version of the command (
23653 \begin_inset Flex Code
23654 status collapsed
23655
23656 \begin_layout Plain Layout
23657
23658 \backslash
23659 latexcmd*
23660 \end_layout
23661
23662 \end_inset
23663
23664  vs.
23665  
23666 \begin_inset Flex Code
23667 status collapsed
23668
23669 \begin_layout Plain Layout
23670
23671 \backslash
23672 latexcmd
23673 \end_layout
23674
23675 \end_inset
23676
23677 ).
23678  
23679 \end_layout
23680
23681 \begin_deeper
23682 \begin_layout Standard
23683 By default, the starred version means: Output all authors even if it should
23684  be shortened with 
23685 \begin_inset Quotes eld
23686 \end_inset
23687
23688 et al.
23689 \begin_inset Quotes erd
23690 \end_inset
23691
23692  due to the 
23693 \begin_inset Flex Code
23694 status collapsed
23695
23696 \begin_layout Plain Layout
23697 MaxCiteNames
23698 \end_layout
23699
23700 \end_inset
23701
23702  threshold.
23703 \end_layout
23704
23705 \begin_layout Standard
23706 If the star has a different meaning for a given command, it can be specified
23707  in angle brackets: 
23708 \begin_inset Flex Code
23709 status collapsed
23710
23711 \begin_layout Plain Layout
23712 <!_stardesc!_stardesctooltip>
23713 \end_layout
23714
23715 \end_inset
23716
23717 .
23718  Maximal two translatable macro keywords, marked by the prefix 
23719 \begin_inset Flex Code
23720 status collapsed
23721
23722 \begin_layout Plain Layout
23723 !_
23724 \end_layout
23725
23726 \end_inset
23727
23728 , can be given.
23729  The first points to the string that replaces the 
23730 \begin_inset Quotes eld
23731 \end_inset
23732
23733 Full aut&hor list
23734 \begin_inset Quotes erd
23735 \end_inset
23736
23737  checkbox label in the citation dialog, the second one to an optional tool
23738  tip for this checkbox.
23739  
23740 \end_layout
23741
23742 \begin_layout Standard
23743 Note that these two macros have to be defined in a 
23744 \begin_inset Flex Code
23745 status collapsed
23746
23747 \begin_layout Plain Layout
23748 CiteFormat
23749 \end_layout
23750
23751 \end_inset
23752
23753  (see next section), dropping the 
23754 \begin_inset Flex Code
23755 status collapsed
23756
23757 \begin_layout Plain Layout
23758 !
23759 \end_layout
23760
23761 \end_inset
23762
23763  from the prefix, like this: 
23764 \end_layout
23765
23766 \begin_layout LyX-Code
23767 _stardesc Sta&rred command label
23768 \end_layout
23769
23770 \begin_layout LyX-Code
23771 _stardesctooltip Tooltip for the starred command checkbox.
23772 \end_layout
23773
23774 \end_deeper
23775 \begin_layout Itemize
23776 A dollar sign 
23777 \begin_inset Flex Code
23778 status collapsed
23779
23780 \begin_layout Plain Layout
23781 $
23782 \end_layout
23783
23784 \end_inset
23785
23786  indicates that this command features 
23787 \begin_inset Quotes eld
23788 \end_inset
23789
23790 qualified citation lists
23791 \begin_inset Quotes erd
23792 \end_inset
23793
23794 .
23795  This is a 
23796 \family sans
23797 Biblatex
23798 \family default
23799 -specific feature for multi-reference citations where an individual pre-
23800  and postnote can be given to each reference in the list.
23801  Please refer to the 
23802 \family sans
23803 Biblatex
23804 \family default
23805  manual for details.
23806 \change_inserted -712698321 1526898670
23807
23808 \end_layout
23809
23810 \begin_layout Standard
23811
23812 \change_inserted -712698321 1526899524
23813 If you want to add a cite command to a cite engine (e.
23814 \begin_inset space \thinspace{}
23815 \end_inset
23816
23817 g., add a specific command provided by a class), you can use 
23818 \begin_inset Flex Code
23819 status collapsed
23820
23821 \begin_layout Plain Layout
23822
23823 \change_inserted -712698321 1526898768
23824 AddToCiteEngine <engine type> \SpecialChar ldots
23825  End
23826 \change_unchanged
23827
23828 \end_layout
23829
23830 \end_inset
23831
23832 .
23833  Note that only cite commands that do not exist yet are added.
23834 \change_unchanged
23835
23836 \end_layout
23837
23838 \begin_layout Subsection
23839 \begin_inset CommandInset label
23840 LatexCommand label
23841 name "subsec:Citation-format-description"
23842
23843 \end_inset
23844
23845 Cite format description
23846 \end_layout
23847
23848 \begin_layout Standard
23849 The 
23850 \begin_inset Flex Code
23851 status collapsed
23852
23853 \begin_layout Plain Layout
23854 CiteFormat
23855 \end_layout
23856
23857 \end_inset
23858
23859  blocks are used to describe how bibliographic information should be displayed,
23860  both within \SpecialChar LyX
23861  itself (in the citation dialog and in tooltips, for example)
23862  and in XHTML output.
23863  Such a block might look like this:
23864 \end_layout
23865
23866 \begin_layout LyX-Code
23867 CiteFormat
23868 \end_layout
23869
23870 \begin_layout LyX-Code
23871  article ...
23872 \end_layout
23873
23874 \begin_layout LyX-Code
23875  book ...
23876 \end_layout
23877
23878 \begin_layout LyX-Code
23879 End
23880 \end_layout
23881
23882 \begin_layout Standard
23883 or
23884 \end_layout
23885
23886 \begin_layout LyX-Code
23887 CiteFormat
23888 \end_layout
23889
23890 \begin_layout LyX-Code
23891  cite ...
23892 \end_layout
23893
23894 \begin_layout LyX-Code
23895  citet*[][] ...
23896 \end_layout
23897
23898 \begin_layout LyX-Code
23899 End
23900 \end_layout
23901
23902 \begin_layout Standard
23903 In the first case, the individual lines define how the bibliographic information
23904  associated with an article or book, respectively, is to be displayed, and
23905  such a definition can be given for any 
23906 \begin_inset Quotes els
23907 \end_inset
23908
23909 entry type
23910 \begin_inset Quotes ers
23911 \end_inset
23912
23913  that might be present in a Bib\SpecialChar TeX
23914  file.
23915  \SpecialChar LyX
23916  defines a default format in the source code that will be used if no specific
23917  definition has been given.
23918  \SpecialChar LyX
23919  predefines several formats in the file 
23920 \begin_inset Flex Code
23921 status collapsed
23922
23923 \begin_layout Plain Layout
23924 stdciteformats.inc
23925 \end_layout
23926
23927 \end_inset
23928
23929 , which is included in most of \SpecialChar LyX
23930 's document classes.
23931 \end_layout
23932
23933 \begin_layout Standard
23934 In the second case, the lines define how a specific citation command (in
23935  the example 
23936 \begin_inset Flex Code
23937 status collapsed
23938
23939 \begin_layout Plain Layout
23940
23941 \backslash
23942 cite
23943 \end_layout
23944
23945 \end_inset
23946
23947
23948 \begin_inset Flex Code
23949 status collapsed
23950
23951 \begin_layout Plain Layout
23952
23953 \backslash
23954 citet
23955 \end_layout
23956
23957 \end_inset
23958
23959 ) is to be displayed on the citation inset label, in the citation dialog,
23960  menu or XHTML output.
23961  \SpecialChar LyX
23962  defines such formats for the citation style variants it supports via 
23963 \family sans
23964 Document\SpecialChar menuseparator
23965 Setting\SpecialChar menuseparator
23966 Bibliography\SpecialChar ldots
23967
23968 \family default
23969  in specific 
23970 \begin_inset Flex Code
23971 status collapsed
23972
23973 \begin_layout Plain Layout
23974 *.citeengine
23975 \end_layout
23976
23977 \end_inset
23978
23979  files that are shipped with \SpecialChar LyX
23980  (see 
23981 \begin_inset CommandInset ref
23982 LatexCommand ref
23983 reference "subsec:Cite-Engine-Files"
23984 plural "false"
23985 caps "false"
23986 noprefix "false"
23987
23988 \end_inset
23989
23990 ).
23991 \end_layout
23992
23993 \begin_layout Standard
23994 The definitions use a simple language that allows Bib\SpecialChar TeX
23995  keys to be replaced
23996  with their values.
23997  Keys should be enclosed in 
23998 \begin_inset Flex Code
23999 status collapsed
24000
24001 \begin_layout Plain Layout
24002 %
24003 \end_layout
24004
24005 \end_inset
24006
24007  signs, e.g.: 
24008 \begin_inset Flex Code
24009 status collapsed
24010
24011 \begin_layout Plain Layout
24012 %author%
24013 \end_layout
24014
24015 \end_inset
24016
24017 .
24018  So a simple definition might look like this:
24019 \end_layout
24020
24021 \begin_layout LyX-Code
24022 misc %author%, 
24023 \begin_inset Quotes eld
24024 \end_inset
24025
24026 %title%
24027 \begin_inset Quotes erd
24028 \end_inset
24029
24030 .
24031 \end_layout
24032
24033 \begin_layout Standard
24034 This would print the author, followed by a comma, followed by the title,
24035  in quotes, followed by a period.
24036 \end_layout
24037
24038 \begin_layout Standard
24039 Of course, sometimes you may want to print a key only if it exists.
24040  This can be done by using a conditional construction, such as: 
24041 \begin_inset Flex Code
24042 status collapsed
24043
24044 \begin_layout Plain Layout
24045 {%volume%[[vol.
24046 \begin_inset space ~
24047 \end_inset
24048
24049 %volume%]]}
24050 \end_layout
24051
24052 \end_inset
24053
24054 .
24055  This says: If the 
24056 \begin_inset Flex Code
24057 status collapsed
24058
24059 \begin_layout Plain Layout
24060 volume
24061 \end_layout
24062
24063 \end_inset
24064
24065  key exists, then print 
24066 \begin_inset Quotes eld
24067 \end_inset
24068
24069 vol.
24070 \begin_inset space ~
24071 \end_inset
24072
24073
24074 \begin_inset Quotes erd
24075 \end_inset
24076
24077  followed by the volume key.
24078  It is also possible to have an else clause in the conditional, such as:
24079 \begin_inset Newline newline
24080 \end_inset
24081
24082
24083 \begin_inset Flex Code
24084 status collapsed
24085
24086 \begin_layout Plain Layout
24087 {%author%[[%author%]][[%editor%, ed.]]}
24088 \end_layout
24089
24090 \end_inset
24091
24092 .
24093 \begin_inset Newline newline
24094 \end_inset
24095
24096 Here, the 
24097 \begin_inset Flex Code
24098 status collapsed
24099
24100 \begin_layout Plain Layout
24101 author
24102 \end_layout
24103
24104 \end_inset
24105
24106  key is printed if it exists; otherwise, the editor key is printed, followed
24107  by 
24108 \begin_inset Quotes eld
24109 \end_inset
24110
24111 ,
24112 \begin_inset space ~
24113 \end_inset
24114
24115 ed.
24116 \begin_inset Quotes erd
24117 \end_inset
24118
24119  Note that the key is again enclosed in 
24120 \begin_inset Flex Code
24121 status collapsed
24122
24123 \begin_layout Plain Layout
24124 %
24125 \end_layout
24126
24127 \end_inset
24128
24129  signs; the entire conditional is enclosed in braces; and the if and else
24130  clauses are enclosed in double brackets, 
24131 \begin_inset Quotes eld
24132 \end_inset
24133
24134
24135 \begin_inset Flex Code
24136 status collapsed
24137
24138 \begin_layout Plain Layout
24139 [[
24140 \end_layout
24141
24142 \end_inset
24143
24144
24145 \begin_inset Quotes eld
24146 \end_inset
24147
24148  and 
24149 \begin_inset Quotes eld
24150 \end_inset
24151
24152
24153 \begin_inset Flex Code
24154 status collapsed
24155
24156 \begin_layout Plain Layout
24157 ]]
24158 \end_layout
24159
24160 \end_inset
24161
24162
24163 \begin_inset Quotes erd
24164 \end_inset
24165
24166 .
24167  There must be no space between any of these.
24168 \end_layout
24169
24170 \begin_layout Standard
24171 Next to the entry keys, there are some special keys that can be used for
24172  these conditionals:
24173 \end_layout
24174
24175 \begin_layout Itemize
24176 \begin_inset Flex Code
24177 status collapsed
24178
24179 \begin_layout Plain Layout
24180 {%dialog%[[true]][[false]]}
24181 \end_layout
24182
24183 \end_inset
24184
24185 : process the 
24186 \begin_inset Quotes eld
24187 \end_inset
24188
24189 true
24190 \begin_inset Quotes erd
24191 \end_inset
24192
24193  part for dialogs and menus, the 
24194 \begin_inset Quotes eld
24195 \end_inset
24196
24197 false
24198 \begin_inset Quotes erd
24199 \end_inset
24200
24201  part for other contexts (workarea, export)
24202 \end_layout
24203
24204 \begin_layout Itemize
24205 \begin_inset Flex Code
24206 status collapsed
24207
24208 \begin_layout Plain Layout
24209 {%export%[[true]][[false]]}
24210 \end_layout
24211
24212 \end_inset
24213
24214 : process the 
24215 \begin_inset Quotes eld
24216 \end_inset
24217
24218 true
24219 \begin_inset Quotes erd
24220 \end_inset
24221
24222  part for export and menus, the 
24223 \begin_inset Quotes eld
24224 \end_inset
24225
24226 false
24227 \begin_inset Quotes erd
24228 \end_inset
24229
24230  part for other contexts (workarea, dialog)
24231 \end_layout
24232
24233 \begin_layout Itemize
24234 \begin_inset Flex Code
24235 status collapsed
24236
24237 \begin_layout Plain Layout
24238 {%next%[[true]]}
24239 \end_layout
24240
24241 \end_inset
24242
24243 : process the 
24244 \begin_inset Quotes eld
24245 \end_inset
24246
24247 true
24248 \begin_inset Quotes erd
24249 \end_inset
24250
24251  part if another item follows (e.
24252 \begin_inset space \thinspace{}
24253 \end_inset
24254
24255 g., in a citation with multiple keys)
24256 \end_layout
24257
24258 \begin_layout Itemize
24259 \begin_inset Flex Code
24260 status collapsed
24261
24262 \begin_layout Plain Layout
24263 {%second%[[true]][[false]]}
24264 \end_layout
24265
24266 \end_inset
24267
24268 : process the 
24269 \begin_inset Quotes eld
24270 \end_inset
24271
24272 true
24273 \begin_inset Quotes erd
24274 \end_inset
24275
24276  if this is the second of multiple items, else the 
24277 \begin_inset Quotes eld
24278 \end_inset
24279
24280 false
24281 \begin_inset Quotes erd
24282 \end_inset
24283
24284  part
24285 \end_layout
24286
24287 \begin_layout Itemize
24288 \begin_inset Flex Code
24289 status collapsed
24290
24291 \begin_layout Plain Layout
24292 {%ifstar%[[true]][[false]]}
24293 \end_layout
24294
24295 \end_inset
24296
24297 : process the 
24298 \begin_inset Quotes eld
24299 \end_inset
24300
24301 true
24302 \begin_inset Quotes erd
24303 \end_inset
24304
24305  part for starred citation commands (such as 
24306 \begin_inset Flex Code
24307 status collapsed
24308
24309 \begin_layout Plain Layout
24310
24311 \backslash
24312 cite*
24313 \end_layout
24314
24315 \end_inset
24316
24317 ), the false part for unstarred
24318 \end_layout
24319
24320 \begin_layout Itemize
24321 \begin_inset Flex Code
24322 status collapsed
24323
24324 \begin_layout Plain Layout
24325 {%ifentrytype:<type>%[[true]][[false]]}
24326 \end_layout
24327
24328 \end_inset
24329
24330 : process the 
24331 \begin_inset Quotes eld
24332 \end_inset
24333
24334 true
24335 \begin_inset Quotes erd
24336 \end_inset
24337
24338  if the current entry type matches 
24339 \begin_inset Flex Code
24340 status collapsed
24341
24342 \begin_layout Plain Layout
24343 <type>
24344 \end_layout
24345
24346 \end_inset
24347
24348 , else the false part (e.g., in a citation definition: 
24349 \begin_inset Flex Code
24350 status collapsed
24351
24352 \begin_layout Plain Layout
24353 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24354 \end_layout
24355
24356 \end_inset
24357
24358 )
24359 \end_layout
24360
24361 \begin_layout Itemize
24362 \begin_inset Flex Code
24363 status collapsed
24364
24365 \begin_layout Plain Layout
24366 {%ifmultiple:<authortype>%[[true]][[false]]}
24367 \end_layout
24368
24369 \end_inset
24370
24371 : process the 
24372 \begin_inset Quotes eld
24373 \end_inset
24374
24375 true
24376 \begin_inset Quotes erd
24377 \end_inset
24378
24379  if the current author type (author, editor etc.) has multiple authors, else
24380  the false part (e.g., in a bibliography definition: 
24381 \begin_inset Flex Code
24382 status collapsed
24383
24384 \begin_layout Plain Layout
24385 {%ifmultiple:editor%[[eds.]][[ed.]]}
24386 \end_layout
24387
24388 \end_inset
24389
24390 )
24391 \end_layout
24392
24393 \begin_layout Itemize
24394 \begin_inset Flex Code
24395 status collapsed
24396
24397 \begin_layout Plain Layout
24398 {%ifqualified%[[true]][[false]]}
24399 \end_layout
24400
24401 \end_inset
24402
24403 : process the 
24404 \begin_inset Quotes eld
24405 \end_inset
24406
24407 true
24408 \begin_inset Quotes erd
24409 \end_inset
24410
24411  part if the current citation is a qualified citation list (a specific 
24412 \family sans
24413 Biblatex
24414 \family default
24415  format for multi-reference citations), the false part if this is not the
24416  case.
24417 \end_layout
24418
24419 \begin_layout Standard
24420 We said that 
24421 \begin_inset Flex Code
24422 status collapsed
24423
24424 \begin_layout Plain Layout
24425 %author%
24426 \end_layout
24427
24428 \end_inset
24429
24430  prints the author key as it is recorded in the bibliography file.
24431  This might not be what you want, since it will result in a string such
24432  as 
24433 \begin_inset Quotes eld
24434 \end_inset
24435
24436 Miller, Peter and Smith, Mary and White, Jane
24437 \begin_inset Quotes erd
24438 \end_inset
24439
24440  (since 
24441 \begin_inset Quotes eld
24442 \end_inset
24443
24444 and
24445 \begin_inset Quotes erd
24446 \end_inset
24447
24448  is used by Bib\SpecialChar TeX
24449  to delimit authors).
24450  \SpecialChar LyX
24451  therefore provides some methods to get properly formatted name lists (which
24452  will also get translated).
24453  The following keys are provided:
24454 \end_layout
24455
24456 \begin_layout Enumerate
24457 For name lists with pre- and surname, suitable for the main authors/editors
24458  of a bibliography item.
24459  The 
24460 \begin_inset Flex Code
24461 status collapsed
24462
24463 \begin_layout Plain Layout
24464 <nametype>
24465 \end_layout
24466
24467 \end_inset
24468
24469  part denotes the kind of list that is requested (e.g.
24470  
24471 \begin_inset Flex Code
24472 status collapsed
24473
24474 \begin_layout Plain Layout
24475 <nametype:author>
24476 \end_layout
24477
24478 \end_inset
24479
24480 ):
24481 \end_layout
24482
24483 \begin_deeper
24484 \begin_layout Itemize
24485 \begin_inset Flex Code
24486 status collapsed
24487
24488 \begin_layout Plain Layout
24489 %abbrvnames:<nametype>%
24490 \end_layout
24491
24492 \end_inset
24493
24494 : Provides a name list which is abbreviated (with 
24495 \begin_inset Quotes eld
24496 \end_inset
24497
24498 et al.
24499 \begin_inset Quotes erd
24500 \end_inset
24501
24502 ) when 
24503 \begin_inset Flex Code
24504 status collapsed
24505
24506 \begin_layout Plain Layout
24507 MaxCiteNames
24508 \end_layout
24509
24510 \end_inset
24511
24512  is reached.
24513 \end_layout
24514
24515 \begin_layout Itemize
24516 \begin_inset Flex Code
24517 status collapsed
24518
24519 \begin_layout Plain Layout
24520 %fullnames:<nametype>%
24521 \end_layout
24522
24523 \end_inset
24524
24525 : Provides a full name list (never abbreviated with 
24526 \begin_inset Quotes eld
24527 \end_inset
24528
24529 et al.
24530 \begin_inset Quotes erd
24531 \end_inset
24532
24533 ).
24534 \end_layout
24535
24536 \begin_layout Itemize
24537 \begin_inset Flex Code
24538 status collapsed
24539
24540 \begin_layout Plain Layout
24541 %forceabbrvnames:<nametype>%
24542 \end_layout
24543
24544 \end_inset
24545
24546 : Provides a name list which is always abbreviated (with 
24547 \begin_inset Quotes eld
24548 \end_inset
24549
24550 et al.
24551 \begin_inset Quotes erd
24552 \end_inset
24553
24554 ) irrespective of 
24555 \begin_inset Flex Code
24556 status collapsed
24557
24558 \begin_layout Plain Layout
24559 MaxCiteNames
24560 \end_layout
24561
24562 \end_inset
24563
24564 .
24565 \end_layout
24566
24567 \end_deeper
24568 \begin_layout Enumerate
24569 Alternative name lists with pre- and surname, if the order of pre- and surname
24570  inside the bibliography item differs (as in: 
24571 \begin_inset Quotes eld
24572 \end_inset
24573
24574 Miller, John: Some text, in: Mary Smith, ed.: A volume
24575 \begin_inset Quotes erd
24576 \end_inset
24577
24578 ):
24579 \end_layout
24580
24581 \begin_deeper
24582 \begin_layout Itemize
24583 \begin_inset Flex Code
24584 status collapsed
24585
24586 \begin_layout Plain Layout
24587 %abbrvbynames:<nametype>%
24588 \end_layout
24589
24590 \end_inset
24591
24592 : Provides a name list which is abbreviated (with 
24593 \begin_inset Quotes eld
24594 \end_inset
24595
24596 et al.
24597 \begin_inset Quotes erd
24598 \end_inset
24599
24600 ) when 
24601 \begin_inset Flex Code
24602 status collapsed
24603
24604 \begin_layout Plain Layout
24605 MaxCiteNames
24606 \end_layout
24607
24608 \end_inset
24609
24610  is reached.
24611 \end_layout
24612
24613 \begin_layout Itemize
24614 \begin_inset Flex Code
24615 status collapsed
24616
24617 \begin_layout Plain Layout
24618 %fullbynames:<nametype>%
24619 \end_layout
24620
24621 \end_inset
24622
24623 : Provides a full name list (never abbreviated with 
24624 \begin_inset Quotes eld
24625 \end_inset
24626
24627 et al.
24628 \begin_inset Quotes erd
24629 \end_inset
24630
24631 ).
24632 \end_layout
24633
24634 \begin_layout Itemize
24635 \begin_inset Flex Code
24636 status collapsed
24637
24638 \begin_layout Plain Layout
24639 %forceabbrvbynames:<nametype>%
24640 \end_layout
24641
24642 \end_inset
24643
24644 : Provides a name list which is always abbreviated (with 
24645 \begin_inset Quotes eld
24646 \end_inset
24647
24648 et al.
24649 \begin_inset Quotes erd
24650 \end_inset
24651
24652 ) irrespective of 
24653 \begin_inset Flex Code
24654 status collapsed
24655
24656 \begin_layout Plain Layout
24657 MaxCiteNames
24658 \end_layout
24659
24660 \end_inset
24661
24662 .
24663 \end_layout
24664
24665 \end_deeper
24666 \begin_layout Enumerate
24667 And finally name lists which consist of family names only, as used in author-yea
24668 r citation labels.
24669  These do not take a 
24670 \begin_inset Flex Code
24671 status collapsed
24672
24673 \begin_layout Plain Layout
24674 <nametype>
24675 \end_layout
24676
24677 \end_inset
24678
24679  part, but always return either an author list or, if this does not exist,
24680  an editor list (as common in author-year labels):
24681 \end_layout
24682
24683 \begin_deeper
24684 \begin_layout Itemize
24685 \begin_inset Flex Code
24686 status collapsed
24687
24688 \begin_layout Plain Layout
24689 %abbrvciteauthor%
24690 \end_layout
24691
24692 \end_inset
24693
24694 : Provides a name list which is abbreviated (with 
24695 \begin_inset Quotes eld
24696 \end_inset
24697
24698 et al.
24699 \begin_inset Quotes erd
24700 \end_inset
24701
24702 ) when 
24703 \begin_inset Flex Code
24704 status collapsed
24705
24706 \begin_layout Plain Layout
24707 MaxCiteNames
24708 \end_layout
24709
24710 \end_inset
24711
24712  is reached.
24713 \end_layout
24714
24715 \begin_layout Itemize
24716 \begin_inset Flex Code
24717 status collapsed
24718
24719 \begin_layout Plain Layout
24720 %fullciteauthor%
24721 \end_layout
24722
24723 \end_inset
24724
24725 : Provides a full name list (never abbreviated with 
24726 \begin_inset Quotes eld
24727 \end_inset
24728
24729 et al.
24730 \begin_inset Quotes erd
24731 \end_inset
24732
24733 ).
24734 \end_layout
24735
24736 \begin_layout Itemize
24737 \begin_inset Flex Code
24738 status collapsed
24739
24740 \begin_layout Plain Layout
24741 %forceabbrvciteauthor%
24742 \end_layout
24743
24744 \end_inset
24745
24746 : Provides a name list which is always abbreviated (with 
24747 \begin_inset Quotes eld
24748 \end_inset
24749
24750 et al.
24751 \begin_inset Quotes erd
24752 \end_inset
24753
24754 ) irrespective of 
24755 \begin_inset Flex Code
24756 status collapsed
24757
24758 \begin_layout Plain Layout
24759 MaxCiteNames
24760 \end_layout
24761
24762 \end_inset
24763
24764 .
24765 \end_layout
24766
24767 \end_deeper
24768 \begin_layout Standard
24769 The order of pre- and surname in the former two lists can be adjusted by
24770  these macros:
24771 \end_layout
24772
24773 \begin_layout Itemize
24774 \begin_inset Flex Code
24775 status collapsed
24776
24777 \begin_layout Plain Layout
24778 !firstnameform %surname%, %prename%
24779 \end_layout
24780
24781 \end_inset
24782
24783  (first author in lists of type 1)
24784 \end_layout
24785
24786 \begin_layout Itemize
24787 \begin_inset Flex Code
24788 status collapsed
24789
24790 \begin_layout Plain Layout
24791 !othernameform %surname%, %prename%
24792 \end_layout
24793
24794 \end_inset
24795
24796  (other authors in lists of type 1)
24797 \end_layout
24798
24799 \begin_layout Itemize
24800 \begin_inset Flex Code
24801 status collapsed
24802
24803 \begin_layout Plain Layout
24804 !firstbynameform %prename% %surname%
24805 \end_layout
24806
24807 \end_inset
24808
24809  (first author in lists of type 2)
24810 \end_layout
24811
24812 \begin_layout Itemize
24813 \begin_inset Flex Code
24814 status collapsed
24815
24816 \begin_layout Plain Layout
24817 !otherbynameform %prename% %surname%
24818 \end_layout
24819
24820 \end_inset
24821
24822  (other authors in lists of type 2)
24823 \end_layout
24824
24825 \begin_layout Standard
24826 This allows you to configure namings like 
24827 \begin_inset Quotes eld
24828 \end_inset
24829
24830 Miller, Peter and Mary Smith: \SpecialChar ldots
24831 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
24832
24833 \begin_inset Quotes erd
24834 \end_inset
24835
24836 .
24837 \end_layout
24838
24839 \begin_layout Standard
24840 There is one other piece of syntax available in definitions, which looks
24841  like this: 
24842 \begin_inset Flex Code
24843 status collapsed
24844
24845 \begin_layout Plain Layout
24846 {!<i>!}
24847 \end_layout
24848
24849 \end_inset
24850
24851 .
24852  This defines a piece of formatting information that is to be used when
24853  creating 
24854 \begin_inset Quotes eld
24855 \end_inset
24856
24857 rich text
24858 \begin_inset Quotes erd
24859 \end_inset
24860
24861 .
24862  Obviously, we do not want to output HTML tags when writing plain text,
24863  so they should be wrapped in 
24864 \begin_inset Quotes eld
24865 \end_inset
24866
24867 {!
24868 \begin_inset Quotes erd
24869 \end_inset
24870
24871  and 
24872 \begin_inset Quotes eld
24873 \end_inset
24874
24875 !}
24876 \begin_inset Quotes erd
24877 \end_inset
24878
24879 .
24880 \end_layout
24881
24882 \begin_layout Standard
24883 Two special sorts of definitions are also possible in a 
24884 \begin_inset Flex Code
24885 status collapsed
24886
24887 \begin_layout Plain Layout
24888 CiteFormat
24889 \end_layout
24890
24891 \end_inset
24892
24893  block.
24894  An example of the first would be:
24895 \end_layout
24896
24897 \begin_layout LyX-Code
24898 !quotetitle 
24899 \begin_inset Quotes eld
24900 \end_inset
24901
24902 %title%
24903 \begin_inset Quotes erd
24904 \end_inset
24905
24906
24907 \end_layout
24908
24909 \begin_layout Standard
24910 This is an abbreviation, or macro, and it can be used by treating it as
24911  if it were a key: 
24912 \begin_inset Flex Code
24913 status collapsed
24914
24915 \begin_layout Plain Layout
24916 %!quotetitle%
24917 \end_layout
24918
24919 \end_inset
24920
24921 .
24922  \SpecialChar LyX
24923  will treat 
24924 \begin_inset Flex Code
24925 status collapsed
24926
24927 \begin_layout Plain Layout
24928 %!quotetitle%
24929 \end_layout
24930
24931 \end_inset
24932
24933  exactly as it would treat its definition.
24934  So, let us issue the obvious 
24935 \emph on
24936 warning
24937 \emph default
24938 .
24939  Do not do this:
24940 \end_layout
24941
24942 \begin_layout LyX-Code
24943 !funfun %funfun%
24944 \end_layout
24945
24946 \begin_layout Standard
24947 or anything like it.
24948  \SpecialChar LyX
24949  shouldn't go into an infinite loop, but it may go into a long one before
24950  it gives up.
24951 \end_layout
24952
24953 \begin_layout Standard
24954 The second sort of special definition might look like this:
24955 \end_layout
24956
24957 \begin_layout LyX-Code
24958 B_pptext pp.
24959 \end_layout
24960
24961 \begin_layout Standard
24962 This defines a translatable piece of text, which allows relevant parts of
24963  the bibliography or citation to be translated.
24964  It can be included in a definition by treating it as a key: 
24965 \begin_inset Flex Code
24966 status collapsed
24967
24968 \begin_layout Plain Layout
24969 %B_pptext%
24970 \end_layout
24971
24972 \end_inset
24973
24974 .
24975  Note that there are two different translation paths: All definitions starting
24976  with 
24977 \begin_inset Flex Code
24978 status collapsed
24979
24980 \begin_layout Plain Layout
24981 B_
24982 \end_layout
24983
24984 \end_inset
24985
24986 , such as in the example above, will be translated to the currently active
24987  buffer language (so the translation will match the generated document).
24988  All definitions starting with underscore only will be translated to the
24989  GUI language.
24990  This is the proper translation for strings that only occur in the dialogs
24991  or on buttons, such as this one:
24992 \end_layout
24993
24994 \begin_layout LyX-Code
24995 _addtobib Add to bibliography only.
24996 \end_layout
24997
24998 \begin_layout Standard
24999 Several of these translatable strings are predefined in 
25000 \begin_inset Flex Code
25001 status collapsed
25002
25003 \begin_layout Plain Layout
25004 stdciteformats.inc
25005 \end_layout
25006
25007 \end_inset
25008
25009  and the diverse 
25010 \begin_inset Flex Code
25011 status collapsed
25012
25013 \begin_layout Plain Layout
25014 *.citeengine
25015 \end_layout
25016
25017 \end_inset
25018
25019  files.
25020  Note that these are not macros, in the sense just defined.
25021  They will not be expanded.
25022 \end_layout
25023
25024 \begin_layout Standard
25025 So here then is an example that uses several of these features:
25026 \begin_inset VSpace defskip
25027 \end_inset
25028
25029
25030 \end_layout
25031
25032 \begin_layout Standard
25033 \noindent
25034
25035 \family sans
25036 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
25037 \end_layout
25038
25039 \begin_layout Standard
25040 \begin_inset VSpace defskip
25041 \end_inset
25042
25043 This defines a macro that prints the author, followed by a comma, if the
25044  
25045 \begin_inset Flex Code
25046 status collapsed
25047
25048 \begin_layout Plain Layout
25049 author
25050 \end_layout
25051
25052 \end_inset
25053
25054  key is defined, or else prints the name of the editor, followed by the
25055  
25056 \begin_inset Flex Code
25057 status collapsed
25058
25059 \begin_layout Plain Layout
25060 B_edtext
25061 \end_layout
25062
25063 \end_inset
25064
25065  or its translation (it is by default 
25066 \begin_inset Quotes eld
25067 \end_inset
25068
25069 ed.
25070 \begin_inset Quotes erd
25071 \end_inset
25072
25073 ), if the 
25074 \begin_inset Flex Code
25075 status collapsed
25076
25077 \begin_layout Plain Layout
25078 editor
25079 \end_layout
25080
25081 \end_inset
25082
25083  key is defined.
25084  Note that this is in fact defined in 
25085 \begin_inset Flex Code
25086 status collapsed
25087
25088 \begin_layout Plain Layout
25089 stdciteformats.inc
25090 \end_layout
25091
25092 \end_inset
25093
25094 , so you can use it in your own definitions, or re-definitions, if you load
25095  that file first.
25096 \end_layout
25097
25098 \begin_layout Section
25099 \begin_inset CommandInset label
25100 LatexCommand label
25101 name "sec:Tags-for-XHTML"
25102
25103 \end_inset
25104
25105 Tags for XHTML output
25106 \end_layout
25107
25108 \begin_layout Standard
25109 As with \SpecialChar LaTeX
25110  or DocBook, the format of \SpecialChar LyX
25111 's XHTML output is also controlled by
25112  layout information.
25113  In general, \SpecialChar LyX
25114  provides sensible defaults and, as mentioned earlier, it will
25115  even construct default CSS style rules from the other layout tags.
25116  For example, \SpecialChar LyX
25117  will attempt to use the information provided in the 
25118 \begin_inset Flex Code
25119 status collapsed
25120
25121 \begin_layout Plain Layout
25122 Font
25123 \end_layout
25124
25125 \end_inset
25126
25127  declaration for the Chapter style to write CSS that will appropriately
25128  format chapter headings.
25129 \end_layout
25130
25131 \begin_layout Standard
25132 In many cases, then, you may not have to do anything at all to get acceptable
25133  XHTML output for your own environments, custom insets, and so forth.
25134  But in some cases you will, and so \SpecialChar LyX
25135  provides a number of layout tags that
25136  can be used to customize the XHTML and CSS that are generated.
25137 \end_layout
25138
25139 \begin_layout Standard
25140 Note that there are two tags, 
25141 \begin_inset Flex Code
25142 status collapsed
25143
25144 \begin_layout Plain Layout
25145 HTMLPreamble
25146 \end_layout
25147
25148 \end_inset
25149
25150  and 
25151 \begin_inset Flex Code
25152 status collapsed
25153
25154 \begin_layout Plain Layout
25155 AddToHTMLPreamble
25156 \end_layout
25157
25158 \end_inset
25159
25160  that may appear outside style and inset declarations.
25161  See 
25162 \begin_inset CommandInset ref
25163 LatexCommand ref
25164 reference "subsec:General-text-class"
25165
25166 \end_inset
25167
25168  for details on these.
25169 \end_layout
25170
25171 \begin_layout Subsection
25172 \begin_inset CommandInset label
25173 LatexCommand label
25174 name "subsec:Paragraph-Style-XHTML"
25175
25176 \end_inset
25177
25178 Paragraph styles
25179 \end_layout
25180
25181 \begin_layout Standard
25182 The sort of XHTML \SpecialChar LyX
25183  outputs for a paragraph depends upon whether we are dealing
25184  with a normal paragraph, a command, or an environment, where this is itself
25185  determined by the contents of the corresponding 
25186 \begin_inset Flex Code
25187 status collapsed
25188
25189 \begin_layout Plain Layout
25190 \SpecialChar LaTeX
25191 Type
25192 \end_layout
25193
25194 \end_inset
25195
25196  tag.
25197  
25198 \end_layout
25199
25200 \begin_layout Standard
25201 For a command or normal paragraph, the output XHTML has the following form:
25202 \end_layout
25203
25204 \begin_layout LyX-Code
25205
25206 \family sans
25207 <tag attr=
25208 \begin_inset Quotes erd
25209 \end_inset
25210
25211 value
25212 \begin_inset Quotes erd
25213 \end_inset
25214
25215 >
25216 \end_layout
25217
25218 \begin_layout LyX-Code
25219
25220 \family sans
25221 <labeltag attr=
25222 \begin_inset Quotes erd
25223 \end_inset
25224
25225 value
25226 \begin_inset Quotes erd
25227 \end_inset
25228
25229 >Label</labeltag>
25230 \end_layout
25231
25232 \begin_layout LyX-Code
25233
25234 \family sans
25235 Contents of the paragraph.
25236 \end_layout
25237
25238 \begin_layout LyX-Code
25239
25240 \family sans
25241 </tag>
25242 \end_layout
25243
25244 \begin_layout Standard
25245 The label tags are of course omitted if the paragraph does not have a label.
25246 \end_layout
25247
25248 \begin_layout Standard
25249 For an environment that is not some sort of list, the XHTML takes this form:
25250 \end_layout
25251
25252 \begin_layout LyX-Code
25253
25254 \family sans
25255 <tag attr=
25256 \begin_inset Quotes erd
25257 \end_inset
25258
25259 value
25260 \begin_inset Quotes erd
25261 \end_inset
25262
25263 >
25264 \end_layout
25265
25266 \begin_layout LyX-Code
25267
25268 \family sans
25269 <itemtag attr=
25270 \begin_inset Quotes erd
25271 \end_inset
25272
25273 value
25274 \begin_inset Quotes erd
25275 \end_inset
25276
25277 ><labeltag attr=
25278 \begin_inset Quotes erd
25279 \end_inset
25280
25281 value
25282 \begin_inset Quotes erd
25283 \end_inset
25284
25285 >Environment Label</labeltag>First paragraph.</itemtag>
25286 \end_layout
25287
25288 \begin_layout LyX-Code
25289
25290 \family sans
25291 <itemtag>Second paragraph.</itemtag>
25292 \end_layout
25293
25294 \begin_layout LyX-Code
25295
25296 \family sans
25297 </tag>
25298 \end_layout
25299
25300 \begin_layout Standard
25301 Note that the label is output only for the first paragraph, as it should
25302  be for a theorem, for example.
25303  
25304 \end_layout
25305
25306 \begin_layout Standard
25307 For a list, we have one of these forms:
25308 \end_layout
25309
25310 \begin_layout LyX-Code
25311
25312 \family sans
25313 <tag attr=
25314 \begin_inset Quotes erd
25315 \end_inset
25316
25317 value
25318 \begin_inset Quotes erd
25319 \end_inset
25320
25321 >
25322 \end_layout
25323
25324 \begin_layout LyX-Code
25325
25326 \family sans
25327 <itemtag attr=
25328 \begin_inset Quotes erd
25329 \end_inset
25330
25331 value
25332 \begin_inset Quotes erd
25333 \end_inset
25334
25335 ><labeltag attr=
25336 \begin_inset Quotes erd
25337 \end_inset
25338
25339 value
25340 \begin_inset Quotes erd
25341 \end_inset
25342
25343 >List Label</labeltag>First item.</itemtag>
25344 \end_layout
25345
25346 \begin_layout LyX-Code
25347
25348 \family sans
25349 <itemtag attr=
25350 \begin_inset Quotes erd
25351 \end_inset
25352
25353 value
25354 \begin_inset Quotes erd
25355 \end_inset
25356
25357 ><labeltag attr=
25358 \begin_inset Quotes erd
25359 \end_inset
25360
25361 value
25362 \begin_inset Quotes erd
25363 \end_inset
25364
25365 >List Label</labeltag>Second item.</itemtag>
25366 \end_layout
25367
25368 \begin_layout LyX-Code
25369
25370 \family sans
25371 </tag>
25372 \end_layout
25373
25374 \begin_layout LyX-Code
25375
25376 \end_layout
25377
25378 \begin_layout LyX-Code
25379
25380 \family sans
25381 <tag attr=
25382 \begin_inset Quotes erd
25383 \end_inset
25384
25385 value
25386 \begin_inset Quotes erd
25387 \end_inset
25388
25389 >
25390 \end_layout
25391
25392 \begin_layout LyX-Code
25393
25394 \family sans
25395 <labeltag attr=
25396 \begin_inset Quotes erd
25397 \end_inset
25398
25399 value
25400 \begin_inset Quotes erd
25401 \end_inset
25402
25403 >List Label</labeltag><itemtag attr=
25404 \begin_inset Quotes erd
25405 \end_inset
25406
25407 value
25408 \begin_inset Quotes erd
25409 \end_inset
25410
25411 >First item.</itemtag>
25412 \end_layout
25413
25414 \begin_layout LyX-Code
25415
25416 \family sans
25417 <labeltag attr=
25418 \begin_inset Quotes erd
25419 \end_inset
25420
25421 value
25422 \begin_inset Quotes erd
25423 \end_inset
25424
25425 >List Label</labeltag><itemtag attr=
25426 \begin_inset Quotes erd
25427 \end_inset
25428
25429 value
25430 \begin_inset Quotes erd
25431 \end_inset
25432
25433 >Second item.</itemtag>
25434 \end_layout
25435
25436 \begin_layout LyX-Code
25437
25438 \family sans
25439 </tag>
25440 \end_layout
25441
25442 \begin_layout Standard
25443 Note the different orders of 
25444 \begin_inset Flex Code
25445 status collapsed
25446
25447 \begin_layout Plain Layout
25448 labeltag
25449 \end_layout
25450
25451 \end_inset
25452
25453  and 
25454 \begin_inset Flex Code
25455 status collapsed
25456
25457 \begin_layout Plain Layout
25458 itemtag
25459 \end_layout
25460
25461 \end_inset
25462
25463 .
25464  Which order we get depends upon the setting of 
25465 \begin_inset Flex Code
25466 status collapsed
25467
25468 \begin_layout Plain Layout
25469 HTMLLabelFirst
25470 \end_layout
25471
25472 \end_inset
25473
25474 : If 
25475 \begin_inset Flex Code
25476 status collapsed
25477
25478 \begin_layout Plain Layout
25479 HTMLLabelFirst
25480 \end_layout
25481
25482 \end_inset
25483
25484  is false (the default), you get the first of these, with the label within
25485  the item; if true, you get the second, with the label outside the item.
25486 \end_layout
25487
25488 \begin_layout Standard
25489 The specific tags and attributes output for each paragraph type can be controlle
25490 d by means of the layout tags we are about to describe.
25491  As mentioned earlier, however, \SpecialChar LyX
25492  uses sensible defaults for many of these,
25493  so you often may not need to do very much to get good XHTML output.
25494  Think of the available tags as there so you can tweak things to your liking.
25495 \end_layout
25496
25497 \begin_layout Description
25498 \begin_inset Flex Code
25499 status collapsed
25500
25501 \begin_layout Plain Layout
25502 HTMLAttr
25503 \end_layout
25504
25505 \end_inset
25506
25507  [
25508 \begin_inset Flex Code
25509 status collapsed
25510
25511 \begin_layout Plain Layout
25512 string
25513 \end_layout
25514
25515 \end_inset
25516
25517 ] Specifies attribute information to be output with the main tag.
25518  For example, 
25519 \begin_inset Quotes eld
25520 \end_inset
25521
25522
25523 \begin_inset Flex Code
25524 status collapsed
25525
25526 \begin_layout Plain Layout
25527 class=`mydiv'
25528 \end_layout
25529
25530 \end_inset
25531
25532
25533 \begin_inset Quotes erd
25534 \end_inset
25535
25536 .
25537  By default, \SpecialChar LyX
25538  will output 
25539 \begin_inset Quotes eld
25540 \end_inset
25541
25542
25543 \begin_inset Flex Code
25544 status collapsed
25545
25546 \begin_layout Plain Layout
25547 class=`layoutname'
25548 \end_layout
25549
25550 \end_inset
25551
25552
25553 \begin_inset Quotes erd
25554 \end_inset
25555
25556 , where 
25557 \begin_inset Flex Code
25558 status collapsed
25559
25560 \begin_layout Plain Layout
25561 layoutname
25562 \end_layout
25563
25564 \end_inset
25565
25566  is the \SpecialChar LyX
25567  name of the layout, made lowercase, for example: chapter.
25568  This should 
25569 \emph on
25570 not
25571 \emph default
25572  contain any style information.
25573  Use 
25574 \begin_inset Flex Code
25575 status collapsed
25576
25577 \begin_layout Plain Layout
25578 HTMLStyle
25579 \end_layout
25580
25581 \end_inset
25582
25583  for that purpose.
25584 \end_layout
25585
25586 \begin_layout Description
25587 \begin_inset Flex Code
25588 status collapsed
25589
25590 \begin_layout Plain Layout
25591 HTMLForceCSS
25592 \end_layout
25593
25594 \end_inset
25595
25596  [
25597 \begin_inset Flex Code
25598 status collapsed
25599
25600 \begin_layout Plain Layout
25601
25602 \emph on
25603 0
25604 \emph default
25605 ,1
25606 \end_layout
25607
25608 \end_inset
25609
25610 ] Whether to output the default CSS information \SpecialChar LyX
25611  generates for this layout,
25612  even if additional information is explicitly provided via 
25613 \begin_inset Flex Code
25614 status collapsed
25615
25616 \begin_layout Plain Layout
25617 HTMLStyle
25618 \end_layout
25619
25620 \end_inset
25621
25622 .
25623  Setting this to 
25624 \begin_inset Flex Code
25625 status collapsed
25626
25627 \begin_layout Plain Layout
25628 1
25629 \end_layout
25630
25631 \end_inset
25632
25633  allows you to alter or augment the generated CSS, rather than to override
25634  it completely.
25635  Default is 
25636 \begin_inset Flex Code
25637 status collapsed
25638
25639 \begin_layout Plain Layout
25640 0
25641 \end_layout
25642
25643 \end_inset
25644
25645 .
25646 \end_layout
25647
25648 \begin_layout Description
25649 \begin_inset Flex Code
25650 status collapsed
25651
25652 \begin_layout Plain Layout
25653 HTMLItem
25654 \end_layout
25655
25656 \end_inset
25657
25658  [
25659 \begin_inset Flex Code
25660 status collapsed
25661
25662 \begin_layout Plain Layout
25663 string
25664 \end_layout
25665
25666 \end_inset
25667
25668 ] The tag to be used for individual paragraphs of environments, replacing
25669  
25670 \begin_inset Flex Code
25671 status collapsed
25672
25673 \begin_layout Plain Layout
25674 itemtag
25675 \end_layout
25676
25677 \end_inset
25678
25679  in the examples above.
25680  Defaults to 
25681 \begin_inset Flex Code
25682 status collapsed
25683
25684 \begin_layout Plain Layout
25685 div
25686 \end_layout
25687
25688 \end_inset
25689
25690 .
25691 \end_layout
25692
25693 \begin_layout Description
25694 \begin_inset Flex Code
25695 status collapsed
25696
25697 \begin_layout Plain Layout
25698 HTMLItemAttr
25699 \end_layout
25700
25701 \end_inset
25702
25703  [
25704 \begin_inset Flex Code
25705 status collapsed
25706
25707 \begin_layout Plain Layout
25708 string
25709 \end_layout
25710
25711 \end_inset
25712
25713 ] Attributes for the item tag.
25714  Defaults to
25715 \begin_inset Newline newline
25716 \end_inset
25717
25718
25719 \begin_inset Quotes eld
25720 \end_inset
25721
25722
25723 \begin_inset Flex Code
25724 status collapsed
25725
25726 \begin_layout Plain Layout
25727 class=`layoutname_item'
25728 \end_layout
25729
25730 \end_inset
25731
25732
25733 \begin_inset Quotes erd
25734 \end_inset
25735
25736 .
25737  This should 
25738 \emph on
25739 not
25740 \emph default
25741  contain any style information.
25742  Use 
25743 \begin_inset Flex Code
25744 status collapsed
25745
25746 \begin_layout Plain Layout
25747 HTMLStyle
25748 \end_layout
25749
25750 \end_inset
25751
25752  for that purpose.
25753 \end_layout
25754
25755 \begin_layout Description
25756 \begin_inset Flex Code
25757 status collapsed
25758
25759 \begin_layout Plain Layout
25760 HTMLLabel
25761 \end_layout
25762
25763 \end_inset
25764
25765  [
25766 \begin_inset Flex Code
25767 status collapsed
25768
25769 \begin_layout Plain Layout
25770 string
25771 \end_layout
25772
25773 \end_inset
25774
25775 ] The tag to be used for paragraph and item labels, replacing 
25776 \begin_inset Flex Code
25777 status collapsed
25778
25779 \begin_layout Plain Layout
25780 labeltag
25781 \end_layout
25782
25783 \end_inset
25784
25785  in the examples above.
25786  Defaults to 
25787 \begin_inset Flex Code
25788 status collapsed
25789
25790 \begin_layout Plain Layout
25791 span
25792 \end_layout
25793
25794 \end_inset
25795
25796 , unless 
25797 \begin_inset Flex Code
25798 status collapsed
25799
25800 \begin_layout Plain Layout
25801 LabelType
25802 \end_layout
25803
25804 \end_inset
25805
25806  is either 
25807 \begin_inset Flex Code
25808 status collapsed
25809
25810 \begin_layout Plain Layout
25811 Top_Environment
25812 \end_layout
25813
25814 \end_inset
25815
25816  or 
25817 \begin_inset Flex Code
25818 status collapsed
25819
25820 \begin_layout Plain Layout
25821 Centered_Top_Environment
25822 \end_layout
25823
25824 \end_inset
25825
25826 , in which case it defaults to 
25827 \begin_inset Flex Code
25828 status collapsed
25829
25830 \begin_layout Plain Layout
25831 div
25832 \end_layout
25833
25834 \end_inset
25835
25836 .
25837 \end_layout
25838
25839 \begin_layout Description
25840 \begin_inset Flex Code
25841 status collapsed
25842
25843 \begin_layout Plain Layout
25844 HTMLLabelAttr
25845 \end_layout
25846
25847 \end_inset
25848
25849  [
25850 \begin_inset Flex Code
25851 status collapsed
25852
25853 \begin_layout Plain Layout
25854 string
25855 \end_layout
25856
25857 \end_inset
25858
25859 ] Attributes for the label tag.
25860  Defaults to
25861 \begin_inset Newline newline
25862 \end_inset
25863
25864
25865 \begin_inset Quotes eld
25866 \end_inset
25867
25868
25869 \begin_inset Flex Code
25870 status collapsed
25871
25872 \begin_layout Plain Layout
25873 class=`layoutname_label'
25874 \end_layout
25875
25876 \end_inset
25877
25878
25879 \begin_inset Quotes erd
25880 \end_inset
25881
25882 .
25883  This should 
25884 \emph on
25885 not
25886 \emph default
25887  contain any style information.
25888  Use 
25889 \begin_inset Flex Code
25890 status collapsed
25891
25892 \begin_layout Plain Layout
25893 HTMLStyle
25894 \end_layout
25895
25896 \end_inset
25897
25898  for that purpose.
25899 \end_layout
25900
25901 \begin_layout Description
25902 \begin_inset Flex Code
25903 status collapsed
25904
25905 \begin_layout Plain Layout
25906 HTMLLabelFirst
25907 \end_layout
25908
25909 \end_inset
25910
25911  [
25912 \begin_inset Flex Code
25913 status collapsed
25914
25915 \begin_layout Plain Layout
25916
25917 \emph on
25918 0
25919 \emph default
25920 ,1
25921 \end_layout
25922
25923 \end_inset
25924
25925 ] Meaningful only for list-like environments, this tag controls whether
25926  the label tag is output before or inside the item tag.
25927  This is used, for example, in the description environment, where we want
25928  `
25929 \begin_inset Flex Code
25930 status collapsed
25931
25932 \begin_layout Plain Layout
25933 <dt>\SpecialChar ldots
25934 </dt><dd>\SpecialChar ldots
25935 </dd>
25936 \end_layout
25937
25938 \end_inset
25939
25940 .
25941  Default is 
25942 \begin_inset Flex Code
25943 status collapsed
25944
25945 \begin_layout Plain Layout
25946 0
25947 \end_layout
25948
25949 \end_inset
25950
25951 : The label tag is output inside the item tag.
25952 \end_layout
25953
25954 \begin_layout Description
25955 \begin_inset Flex Code
25956 status collapsed
25957
25958 \begin_layout Plain Layout
25959 HTMLPreamble
25960 \end_layout
25961
25962 \end_inset
25963
25964  Information to be output in the 
25965 \begin_inset Flex Code
25966 status collapsed
25967
25968 \begin_layout Plain Layout
25969 <head>
25970 \end_layout
25971
25972 \end_inset
25973
25974  section when this style is used.
25975  This might, for example, be used to include a 
25976 \begin_inset Flex Code
25977 status collapsed
25978
25979 \begin_layout Plain Layout
25980 <script>
25981 \end_layout
25982
25983 \end_inset
25984
25985  block defining an 
25986 \begin_inset Flex Code
25987 status collapsed
25988
25989 \begin_layout Plain Layout
25990 onclick
25991 \end_layout
25992
25993 \end_inset
25994
25995  handler.
25996 \end_layout
25997
25998 \begin_layout Description
25999 \begin_inset Flex Code
26000 status collapsed
26001
26002 \begin_layout Plain Layout
26003 HTMLStyle
26004 \end_layout
26005
26006 \end_inset
26007
26008  CSS style information to be included when this style is used.
26009  Note that this will automatically be wrapped in a layout-generated 
26010 \begin_inset Flex Code
26011 status collapsed
26012
26013 \begin_layout Plain Layout
26014 <style>
26015 \end_layout
26016
26017 \end_inset
26018
26019  block, so only the CSS itself need be included.
26020  Must end with 
26021 \begin_inset Flex Code
26022 status collapsed
26023
26024 \begin_layout Plain Layout
26025 EndHTMLStyle
26026 \end_layout
26027
26028 \end_inset
26029
26030 .
26031 \end_layout
26032
26033 \begin_layout Description
26034 \begin_inset Flex Code
26035 status collapsed
26036
26037 \begin_layout Plain Layout
26038 HTMLTag
26039 \end_layout
26040
26041 \end_inset
26042
26043  [
26044 \begin_inset Flex Code
26045 status collapsed
26046
26047 \begin_layout Plain Layout
26048 string
26049 \end_layout
26050
26051 \end_inset
26052
26053 ] The tag to be used for the main label, replacing 
26054 \begin_inset Flex Code
26055 status collapsed
26056
26057 \begin_layout Plain Layout
26058 tag
26059 \end_layout
26060
26061 \end_inset
26062
26063  in the examples above.
26064  Defaults to 
26065 \begin_inset Flex Code
26066 status collapsed
26067
26068 \begin_layout Plain Layout
26069 div
26070 \end_layout
26071
26072 \end_inset
26073
26074 .
26075 \end_layout
26076
26077 \begin_layout Description
26078 \begin_inset Flex Code
26079 status collapsed
26080
26081 \begin_layout Plain Layout
26082 HTMLTitle
26083 \end_layout
26084
26085 \end_inset
26086
26087  [
26088 \begin_inset Flex Code
26089 status collapsed
26090
26091 \begin_layout Plain Layout
26092
26093 \emph on
26094 0
26095 \emph default
26096 ,1
26097 \end_layout
26098
26099 \end_inset
26100
26101 ] Marks this style as the one to be used to generate the 
26102 \begin_inset Flex Code
26103 status collapsed
26104
26105 \begin_layout Plain Layout
26106 <title>
26107 \end_layout
26108
26109 \end_inset
26110
26111  tag for the XHTML file.
26112  By default, it is false.
26113  The 
26114 \begin_inset Flex Code
26115 status collapsed
26116
26117 \begin_layout Plain Layout
26118 stdtitle.inc
26119 \end_layout
26120
26121 \end_inset
26122
26123  file sets it to true for the 
26124 \begin_inset Flex Code
26125 status collapsed
26126
26127 \begin_layout Plain Layout
26128 title
26129 \end_layout
26130
26131 \end_inset
26132
26133  environment.
26134  
26135 \end_layout
26136
26137 \begin_layout Subsection
26138 InsetLayout XHTML
26139 \end_layout
26140
26141 \begin_layout Standard
26142 The XHTML output of insets can also be controlled by information in layout
26143  files.
26144 \begin_inset Foot
26145 status collapsed
26146
26147 \begin_layout Plain Layout
26148 At present, this is true only for 
26149 \begin_inset Quotes eld
26150 \end_inset
26151
26152 text
26153 \begin_inset Quotes erd
26154 \end_inset
26155
26156  insets (insets you can type into) and is not true for 
26157 \begin_inset Quotes eld
26158 \end_inset
26159
26160 command
26161 \begin_inset Quotes erd
26162 \end_inset
26163
26164  insets (insets that are associated with dialog boxes).
26165 \end_layout
26166
26167 \end_inset
26168
26169  Here, too, \SpecialChar LyX
26170  tries to provide sensible defaults, and it constructs default
26171  CSS style rules.
26172  But everything can be customized.
26173 \end_layout
26174
26175 \begin_layout Standard
26176 The XHTML \SpecialChar LyX
26177  outputs for an inset has the following form:
26178 \end_layout
26179
26180 \begin_layout LyX-Code
26181 <tag attr=
26182 \begin_inset Quotes erd
26183 \end_inset
26184
26185 value
26186 \begin_inset Quotes erd
26187 \end_inset
26188
26189 >
26190 \end_layout
26191
26192 \begin_layout LyX-Code
26193 <labeltag>Label</labeltag>
26194 \end_layout
26195
26196 \begin_layout LyX-Code
26197 <innertag attr=
26198 \begin_inset Quotes erd
26199 \end_inset
26200
26201 value
26202 \begin_inset Quotes erd
26203 \end_inset
26204
26205 >Contents of the inset.</innertag>
26206 \end_layout
26207
26208 \begin_layout LyX-Code
26209 </tag>
26210 \end_layout
26211
26212 \begin_layout Standard
26213 If the inset permits multiple paragraphs—that is, if 
26214 \begin_inset Flex Code
26215 status collapsed
26216
26217 \begin_layout Plain Layout
26218 MultiPar
26219 \end_layout
26220
26221 \end_inset
26222
26223  is true—then the contents of the inset will itself be output as paragraphs
26224  formatted according to the styles used for those paragraphs (standard,
26225  quote, and the like).
26226  The label tag is of course omitted if the paragraph does not have a label
26227  and, at present, is always 
26228 \begin_inset Flex Code
26229 status collapsed
26230
26231 \begin_layout Plain Layout
26232 span
26233 \end_layout
26234
26235 \end_inset
26236
26237 .
26238  The inner tag is optional and, by default, does not appear.
26239 \end_layout
26240
26241 \begin_layout Standard
26242 The specific tags and attributes output for each inset can be controlled
26243  by means of the following layout tags.
26244 \end_layout
26245
26246 \begin_layout Description
26247 \begin_inset Flex Code
26248 status collapsed
26249
26250 \begin_layout Plain Layout
26251 HTMLAttr
26252 \end_layout
26253
26254 \end_inset
26255
26256  [
26257 \begin_inset Flex Code
26258 status collapsed
26259
26260 \begin_layout Plain Layout
26261 string
26262 \end_layout
26263
26264 \end_inset
26265
26266 ] Specifies attribute information to be output with the main tag.
26267  For example, 
26268 \begin_inset Quotes eld
26269 \end_inset
26270
26271
26272 \begin_inset Flex Code
26273 status collapsed
26274
26275 \begin_layout Plain Layout
26276 class=`myinset' onclick=`\SpecialChar ldots
26277 '
26278 \end_layout
26279
26280 \end_inset
26281
26282
26283 \begin_inset Quotes erd
26284 \end_inset
26285
26286 .
26287  By default, \SpecialChar LyX
26288  will output 
26289 \begin_inset Quotes eld
26290 \end_inset
26291
26292
26293 \begin_inset Flex Code
26294 status collapsed
26295
26296 \begin_layout Plain Layout
26297 class=`insetname'
26298 \end_layout
26299
26300 \end_inset
26301
26302
26303 \begin_inset Quotes erd
26304 \end_inset
26305
26306 , where 
26307 \begin_inset Flex Code
26308 status collapsed
26309
26310 \begin_layout Plain Layout
26311 insetname
26312 \end_layout
26313
26314 \end_inset
26315
26316  is the \SpecialChar LyX
26317  name of the inset, made lowercase and with non-alphanumeric characters
26318  converted to underscores, for example: footnote.
26319 \end_layout
26320
26321 \begin_layout Description
26322 \begin_inset Flex Code
26323 status collapsed
26324
26325 \begin_layout Plain Layout
26326 HTMLForceCSS
26327 \end_layout
26328
26329 \end_inset
26330
26331  [
26332 \begin_inset Flex Code
26333 status collapsed
26334
26335 \begin_layout Plain Layout
26336
26337 \emph on
26338 0
26339 \emph default
26340 ,1
26341 \end_layout
26342
26343 \end_inset
26344
26345 ] Whether to output the default CSS information \SpecialChar LyX
26346  generates for this layout,
26347  even if additional information is explicitly provided via 
26348 \begin_inset Flex Code
26349 status collapsed
26350
26351 \begin_layout Plain Layout
26352 HTMLStyle
26353 \end_layout
26354
26355 \end_inset
26356
26357 .
26358  Setting this to 
26359 \begin_inset Flex Code
26360 status collapsed
26361
26362 \begin_layout Plain Layout
26363 1
26364 \end_layout
26365
26366 \end_inset
26367
26368  allows you to alter or augment the generated CSS, rather than to override
26369  it completely.
26370  Default is 0.
26371 \end_layout
26372
26373 \begin_layout Description
26374 \begin_inset Flex Code
26375 status collapsed
26376
26377 \begin_layout Plain Layout
26378 HTMLInnerAttr
26379 \end_layout
26380
26381 \end_inset
26382
26383  [
26384 \begin_inset Flex Code
26385 status collapsed
26386
26387 \begin_layout Plain Layout
26388 string
26389 \end_layout
26390
26391 \end_inset
26392
26393 ] Attributes for the inner tag.
26394  Defaults to
26395 \begin_inset Newline newline
26396 \end_inset
26397
26398
26399 \begin_inset Quotes eld
26400 \end_inset
26401
26402
26403 \begin_inset Flex Code
26404 status collapsed
26405
26406 \begin_layout Plain Layout
26407 class=`insetname_inner'
26408 \end_layout
26409
26410 \end_inset
26411
26412
26413 \begin_inset Quotes erd
26414 \end_inset
26415
26416 .
26417 \end_layout
26418
26419 \begin_layout Description
26420 \begin_inset Flex Code
26421 status collapsed
26422
26423 \begin_layout Plain Layout
26424 HTMLInnerTag
26425 \end_layout
26426
26427 \end_inset
26428
26429  [
26430 \begin_inset Flex Code
26431 status collapsed
26432
26433 \begin_layout Plain Layout
26434 string
26435 \end_layout
26436
26437 \end_inset
26438
26439 ] The inner tag, replacing 
26440 \begin_inset Flex Code
26441 status collapsed
26442
26443 \begin_layout Plain Layout
26444 innertag
26445 \end_layout
26446
26447 \end_inset
26448
26449  in the examples above.
26450  By default, there is none.
26451 \end_layout
26452
26453 \begin_layout Description
26454 \begin_inset Flex Code
26455 status collapsed
26456
26457 \begin_layout Plain Layout
26458 HTMLIsBlock
26459 \end_layout
26460
26461 \end_inset
26462
26463  [
26464 \begin_inset Flex Code
26465 status collapsed
26466
26467 \begin_layout Plain Layout
26468 0,
26469 \emph on
26470 1
26471 \end_layout
26472
26473 \end_inset
26474
26475 ] Whether this inset represents a standalone block of text (such as a footnote)
26476  or instead represents material that is included in the surrounding text
26477  (such as a branch).
26478  Defaults to 1.
26479 \end_layout
26480
26481 \begin_layout Description
26482 \begin_inset Flex Code
26483 status collapsed
26484
26485 \begin_layout Plain Layout
26486 HTMLLabel
26487 \end_layout
26488
26489 \end_inset
26490
26491  [
26492 \begin_inset Flex Code
26493 status collapsed
26494
26495 \begin_layout Plain Layout
26496 string
26497 \end_layout
26498
26499 \end_inset
26500
26501 ] A label for this inset, possibly including a reference to a counter.
26502  For example, for footnote, it might be: 
26503 \begin_inset Flex Code
26504 status collapsed
26505
26506 \begin_layout Plain Layout
26507
26508 \backslash
26509 arabic{footnote}
26510 \end_layout
26511
26512 \end_inset
26513
26514 .
26515  This is optional, and there is no default.
26516 \end_layout
26517
26518 \begin_layout Description
26519 \begin_inset Flex Code
26520 status collapsed
26521
26522 \begin_layout Plain Layout
26523 HTMLPreamble
26524 \end_layout
26525
26526 \end_inset
26527
26528  Information to be output in the 
26529 \begin_inset Flex Code
26530 status collapsed
26531
26532 \begin_layout Plain Layout
26533 <head>
26534 \end_layout
26535
26536 \end_inset
26537
26538  section when this style is used.
26539  This might, for example, be used to include a 
26540 \begin_inset Flex Code
26541 status collapsed
26542
26543 \begin_layout Plain Layout
26544 <script>
26545 \end_layout
26546
26547 \end_inset
26548
26549  block defining an 
26550 \begin_inset Flex Code
26551 status collapsed
26552
26553 \begin_layout Plain Layout
26554 onclick
26555 \end_layout
26556
26557 \end_inset
26558
26559  handler.
26560 \end_layout
26561
26562 \begin_layout Description
26563 \begin_inset Flex Code
26564 status collapsed
26565
26566 \begin_layout Plain Layout
26567 HTMLStyle
26568 \end_layout
26569
26570 \end_inset
26571
26572  CSS style information to be included when this style is used.
26573  Note that this will automatically be wrapped in a layout-generated 
26574 \begin_inset Flex Code
26575 status collapsed
26576
26577 \begin_layout Plain Layout
26578 <style>
26579 \end_layout
26580
26581 \end_inset
26582
26583  block, so only the CSS itself need be included.
26584 \end_layout
26585
26586 \begin_layout Description
26587 \begin_inset Flex Code
26588 status collapsed
26589
26590 \begin_layout Plain Layout
26591 HTMLTag
26592 \end_layout
26593
26594 \end_inset
26595
26596  [
26597 \begin_inset Flex Code
26598 status collapsed
26599
26600 \begin_layout Plain Layout
26601 string
26602 \end_layout
26603
26604 \end_inset
26605
26606 ] The tag to be used for the main label, replacing 
26607 \begin_inset Flex Code
26608 status collapsed
26609
26610 \begin_layout Plain Layout
26611 tag
26612 \end_layout
26613
26614 \end_inset
26615
26616  in the examples above.
26617  The default depends upon the setting of 
26618 \begin_inset Flex Code
26619 status collapsed
26620
26621 \begin_layout Plain Layout
26622 MultiPar
26623 \end_layout
26624
26625 \end_inset
26626
26627 : If 
26628 \begin_inset Flex Code
26629 status collapsed
26630
26631 \begin_layout Plain Layout
26632 MultiPar
26633 \end_layout
26634
26635 \end_inset
26636
26637  is true, the default is 
26638 \begin_inset Flex Code
26639 status collapsed
26640
26641 \begin_layout Plain Layout
26642 div
26643 \end_layout
26644
26645 \end_inset
26646
26647 ; if it is false, the default is 
26648 \begin_inset Flex Code
26649 status collapsed
26650
26651 \begin_layout Plain Layout
26652 span
26653 \end_layout
26654
26655 \end_inset
26656
26657 .
26658 \end_layout
26659
26660 \begin_layout Subsection
26661 Float XHTML
26662 \end_layout
26663
26664 \begin_layout Standard
26665 The XHTML output for floats too can be controlled by layout information.
26666  The output has the following form:
26667 \end_layout
26668
26669 \begin_layout LyX-Code
26670 <tag attr=
26671 \begin_inset Quotes erd
26672 \end_inset
26673
26674 value
26675 \begin_inset Quotes erd
26676 \end_inset
26677
26678 >
26679 \end_layout
26680
26681 \begin_layout LyX-Code
26682 Contents of the float.
26683 \end_layout
26684
26685 \begin_layout LyX-Code
26686 </tag>
26687 \end_layout
26688
26689 \begin_layout Standard
26690 The caption, if there is one, is a separate inset and will be output as
26691  such.
26692  Its appearance can be controlled via the InsetLayout for caption insets.
26693  
26694 \end_layout
26695
26696 \begin_layout Description
26697 \begin_inset Flex Code
26698 status collapsed
26699
26700 \begin_layout Plain Layout
26701 HTMLAttr
26702 \end_layout
26703
26704 \end_inset
26705
26706  [
26707 \begin_inset Flex Code
26708 status collapsed
26709
26710 \begin_layout Plain Layout
26711 string
26712 \end_layout
26713
26714 \end_inset
26715
26716 ] Specifies attribute information to be output with the main tag.
26717  For example, 
26718 \begin_inset Quotes eld
26719 \end_inset
26720
26721
26722 \begin_inset Flex Code
26723 status collapsed
26724
26725 \begin_layout Plain Layout
26726 class=`myfloat' onclick=`\SpecialChar ldots
26727 '
26728 \end_layout
26729
26730 \end_inset
26731
26732
26733 \begin_inset Quotes erd
26734 \end_inset
26735
26736 .
26737  By default, \SpecialChar LyX
26738  will output 
26739 \begin_inset Quotes eld
26740 \end_inset
26741
26742
26743 \begin_inset Flex Code
26744 status collapsed
26745
26746 \begin_layout Plain Layout
26747 class=`float float-floattype'
26748 \end_layout
26749
26750 \end_inset
26751
26752
26753 \begin_inset Quotes erd
26754 \end_inset
26755
26756 , where 
26757 \begin_inset Flex Code
26758 status collapsed
26759
26760 \begin_layout Plain Layout
26761 floattype
26762 \end_layout
26763
26764 \end_inset
26765
26766  is \SpecialChar LyX
26767 's name for this type of float, as determined by the float declaration
26768  (see 
26769 \begin_inset CommandInset ref
26770 LatexCommand ref
26771 reference "subsec:Floats"
26772
26773 \end_inset
26774
26775 ), though made lowercase and with non-alphanumeric characters converted
26776  to underscores, for example: float-table.
26777 \end_layout
26778
26779 \begin_layout Description
26780 \begin_inset Flex Code
26781 status collapsed
26782
26783 \begin_layout Plain Layout
26784 HTMLStyle
26785 \end_layout
26786
26787 \end_inset
26788
26789  CSS style information to be included when this float is used.
26790  Note that this will automatically be wrapped in a layout-generated 
26791 \begin_inset Flex Code
26792 status collapsed
26793
26794 \begin_layout Plain Layout
26795 <style>
26796 \end_layout
26797
26798 \end_inset
26799
26800  block, so only the CSS itself need be included.
26801 \end_layout
26802
26803 \begin_layout Description
26804 \begin_inset Flex Code
26805 status collapsed
26806
26807 \begin_layout Plain Layout
26808 HTMLTag
26809 \end_layout
26810
26811 \end_inset
26812
26813  [
26814 \begin_inset Flex Code
26815 status collapsed
26816
26817 \begin_layout Plain Layout
26818 string
26819 \end_layout
26820
26821 \end_inset
26822
26823 ] The tag to be used for this float, replacing 
26824 \begin_inset Quotes eld
26825 \end_inset
26826
26827
26828 \begin_inset Flex Code
26829 status collapsed
26830
26831 \begin_layout Plain Layout
26832 tag
26833 \end_layout
26834
26835 \end_inset
26836
26837
26838 \begin_inset Quotes erd
26839 \end_inset
26840
26841  in the example above.
26842  The default is 
26843 \begin_inset Flex Code
26844 status collapsed
26845
26846 \begin_layout Plain Layout
26847 div
26848 \end_layout
26849
26850 \end_inset
26851
26852  and will rarely need changing.
26853 \end_layout
26854
26855 \begin_layout Subsection
26856 Bibliography formatting
26857 \end_layout
26858
26859 \begin_layout Standard
26860 The bibliography can be formatted using 
26861 \begin_inset Flex Code
26862 status collapsed
26863
26864 \begin_layout Plain Layout
26865 CiteFormat
26866 \end_layout
26867
26868 \end_inset
26869
26870  blocks.
26871  See 
26872 \begin_inset CommandInset ref
26873 LatexCommand ref
26874 reference "subsec:Citation-format-description"
26875
26876 \end_inset
26877
26878  for the details.
26879 \end_layout
26880
26881 \begin_layout Subsection
26882 \SpecialChar LyX
26883 -generated CSS
26884 \end_layout
26885
26886 \begin_layout Standard
26887 We have several times mentioned that \SpecialChar LyX
26888  will generate default CSS style rules
26889  for both insets and paragraph styles, based upon the other layout information
26890  that is provided.
26891  In this section, we shall say a word about which layout information \SpecialChar LyX
26892  uses
26893  and how.
26894 \end_layout
26895
26896 \begin_layout Standard
26897 At present, \SpecialChar LyX
26898  auto-generates CSS only for font information, making use of
26899  the 
26900 \begin_inset Flex Code
26901 status collapsed
26902
26903 \begin_layout Plain Layout
26904 Family
26905 \end_layout
26906
26907 \end_inset
26908
26909
26910 \begin_inset Flex Code
26911 status collapsed
26912
26913 \begin_layout Plain Layout
26914 Series
26915 \end_layout
26916
26917 \end_inset
26918
26919
26920 \begin_inset Flex Code
26921 status collapsed
26922
26923 \begin_layout Plain Layout
26924 Shape
26925 \end_layout
26926
26927 \end_inset
26928
26929 , and 
26930 \begin_inset Flex Code
26931 status collapsed
26932
26933 \begin_layout Plain Layout
26934 Size
26935 \end_layout
26936
26937 \end_inset
26938
26939  specified in the 
26940 \begin_inset Flex Code
26941 status collapsed
26942
26943 \begin_layout Plain Layout
26944 Font
26945 \end_layout
26946
26947 \end_inset
26948
26949  declaration (see 
26950 \begin_inset CommandInset ref
26951 LatexCommand ref
26952 reference "subsec:Font-description"
26953
26954 \end_inset
26955
26956 ).
26957  The translation is mostly straightforward and obvious.
26958  For example, 
26959 \begin_inset Quotes eld
26960 \end_inset
26961
26962
26963 \begin_inset Flex Code
26964 status collapsed
26965
26966 \begin_layout Plain Layout
26967 Family Sans
26968 \end_layout
26969
26970 \end_inset
26971
26972
26973 \begin_inset Quotes erd
26974 \end_inset
26975
26976  becomes 
26977 \begin_inset Quotes eld
26978 \end_inset
26979
26980
26981 \begin_inset Flex Code
26982 status collapsed
26983
26984 \begin_layout Plain Layout
26985 font-family: sans-serif;
26986 \end_layout
26987
26988 \end_inset
26989
26990
26991 \begin_inset Quotes erd
26992 \end_inset
26993
26994 .
26995  The correspondence of \SpecialChar LyX
26996  sizes and CSS sizes is a little less obvious but
26997  nonetheless intuitive.
26998  See the 
26999 \begin_inset Flex Code
27000 status collapsed
27001
27002 \begin_layout Plain Layout
27003 getSizeCSS()
27004 \end_layout
27005
27006 \end_inset
27007
27008  function in 
27009 \begin_inset Flex URL
27010 status collapsed
27011
27012 \begin_layout Plain Layout
27013
27014 src/FontInfo.cpp
27015 \end_layout
27016
27017 \end_inset
27018
27019  for the details.
27020 \change_inserted -970929547 1496610908
27021
27022 \end_layout
27023
27024 \begin_layout Section
27025
27026 \change_inserted -970929547 1496610966
27027 \begin_inset CommandInset label
27028 LatexCommand label
27029 name "sec:Tags-for-DocBook"
27030
27031 \end_inset
27032
27033 Tags for DocBook output
27034 \end_layout
27035
27036 \begin_layout Standard
27037
27038 \change_inserted -970929547 1496611615
27039 As with \SpecialChar LaTeX
27040  or XHTML, the format of \SpecialChar LyX
27041 's DocBook output is also controlled by
27042  layout information.
27043  In general, \SpecialChar LyX
27044  provides sensible defaults; however, much of the styling is
27045  lost during the conversion, as DocBook is strictly semantic and does not
27046  allow formatting.
27047  When possible, information from \SpecialChar LyX
27048  will be rendered in 
27049 \family typewriter
27050 role
27051 \family default
27052  attributes.
27053  
27054 \end_layout
27055
27056 \begin_layout Standard
27057
27058 \change_inserted -970929547 1496612080
27059 In many cases, then, you may not have to do anything at all to get acceptable
27060  DocBook output for your own environments, custom insets, and so forth.
27061  But in some cases you will, and so \SpecialChar LyX
27062  provides a number of layout tags that
27063  can be used to customize the DocBook that is generated.
27064 \end_layout
27065
27066 \begin_layout Standard
27067
27068 \change_inserted -970929547 1515109912
27069 Labels are rarely output, as they are redundant in DocBook: this information
27070  is carried by the tags themselves, and whether labels appear in the final
27071  documents (after processing of DocBook files) is controlled by the stylesheets.
27072  However, sometimes, labels are not redundant content, such as definition
27073  lists: in this case, the term being defined will be the label.
27074  
27075 \end_layout
27076
27077 \begin_layout Subsection
27078
27079 \change_inserted -970929547 1496610966
27080 \begin_inset CommandInset label
27081 LatexCommand label
27082 name "subsec:Paragraph-Style-XHTML-1"
27083
27084 \end_inset
27085
27086 Paragraph styles
27087 \end_layout
27088
27089 \begin_layout Standard
27090
27091 \change_inserted -970929547 1496612059
27092 The sort of DocBook \SpecialChar LyX
27093  outputs for a paragraph depends upon whether we are
27094  dealing with a normal paragraph, a command, or an environment, where this
27095  is itself determined by the contents of the corresponding 
27096 \begin_inset Flex Code
27097 status collapsed
27098
27099 \begin_layout Plain Layout
27100
27101 \change_inserted -970929547 1496610966
27102 \SpecialChar LaTeX
27103 Type
27104 \change_unchanged
27105
27106 \end_layout
27107
27108 \end_inset
27109
27110  tag.
27111  
27112 \end_layout
27113
27114 \begin_layout Standard
27115
27116 \change_inserted -970929547 1496612107
27117 For a command or normal paragraph, the output DocBook has the following
27118  form:
27119 \end_layout
27120
27121 \begin_layout LyX-Code
27122
27123 \change_inserted -970929547 1515109666
27124 <tag attr>
27125 \end_layout
27126
27127 \begin_layout LyX-Code
27128
27129 \change_inserted -970929547 1496610966
27130 Contents of the paragraph.
27131 \end_layout
27132
27133 \begin_layout LyX-Code
27134
27135 \change_inserted -970929547 1496610966
27136 </tag>
27137 \end_layout
27138
27139 \begin_layout Standard
27140
27141 \change_inserted -970929547 1515109821
27142 For an environment that is not some sort of list, the generated DocBook
27143  takes this form:
27144 \end_layout
27145
27146 \begin_layout LyX-Code
27147
27148 \change_inserted -970929547 1515109671
27149 <tag attr>
27150 \end_layout
27151
27152 \begin_layout LyX-Code
27153
27154 \change_inserted -970929547 1496612114
27155 <itemtag>First paragraph.</itemtag>
27156 \end_layout
27157
27158 \begin_layout LyX-Code
27159
27160 \change_inserted -970929547 1496610966
27161 <itemtag>Second paragraph.</itemtag>
27162 \end_layout
27163
27164 \begin_layout LyX-Code
27165
27166 \change_inserted -970929547 1496610966
27167 </tag>
27168 \end_layout
27169
27170 \begin_layout Standard
27171
27172 \change_inserted -970929547 1515109825
27173 For a list, the resulting DocBook takes this form:
27174 \end_layout
27175
27176 \begin_layout LyX-Code
27177
27178 \change_inserted -970929547 1515109672
27179 <tag attr>
27180 \end_layout
27181
27182 \begin_layout LyX-Code
27183
27184 \change_inserted -970929547 1515109676
27185 <itemtag attr>First item.</itemtag>
27186 \end_layout
27187
27188 \begin_layout LyX-Code
27189
27190 \change_inserted -970929547 1515109678
27191 <itemtag attr>Second item.</itemtag>
27192 \end_layout
27193
27194 \begin_layout LyX-Code
27195
27196 \change_inserted -970929547 1496610966
27197 </tag>
27198 \end_layout
27199
27200 \begin_layout Standard
27201
27202 \change_inserted -970929547 1496612243
27203 The specific tags and roles output for each paragraph type can be controlled
27204  by means of the layout tags we are about to describe.
27205  Please note that, due to the very nature of DocBook, no sensible defaults
27206  really exist, and the values must always be carefully chosen.
27207  
27208 \end_layout
27209
27210 \begin_layout Description
27211
27212 \change_inserted -970929547 1515110057
27213 \begin_inset Flex Code
27214 status collapsed
27215
27216 \begin_layout Plain Layout
27217
27218 \change_inserted -970929547 1515109656
27219 DocBookAttr
27220 \change_unchanged
27221
27222 \end_layout
27223
27224 \end_inset
27225
27226  [
27227 \begin_inset Flex Code
27228 status collapsed
27229
27230 \begin_layout Plain Layout
27231
27232 \change_inserted -970929547 1496610966
27233 string
27234 \change_unchanged
27235
27236 \end_layout
27237
27238 \end_inset
27239
27240 ] Specifies attribute information to be output with the main tag, replacing
27241  
27242 \begin_inset Quotes eld
27243 \end_inset
27244
27245
27246 \begin_inset Flex Code
27247 status collapsed
27248
27249 \begin_layout Plain Layout
27250
27251 \change_inserted -970929547 1515110057
27252 attr
27253 \change_unchanged
27254
27255 \end_layout
27256
27257 \end_inset
27258
27259
27260 \begin_inset Quotes erd
27261 \end_inset
27262
27263  in the example above.
27264  This information can be used in further processing of the DocBook files.
27265  
27266 \change_unchanged
27267
27268 \end_layout
27269
27270 \begin_layout Description
27271
27272 \change_inserted -970929547 1496612296
27273 \begin_inset Flex Code
27274 status collapsed
27275
27276 \begin_layout Plain Layout
27277
27278 \change_inserted -970929547 1496612269
27279 DocBookTag
27280 \change_unchanged
27281
27282 \end_layout
27283
27284 \end_inset
27285
27286  [
27287 \begin_inset Flex Code
27288 status collapsed
27289
27290 \begin_layout Plain Layout
27291
27292 \change_inserted -970929547 1496610966
27293 string
27294 \change_unchanged
27295
27296 \end_layout
27297
27298 \end_inset
27299
27300 ] The tag to be used for this inset, replacing 
27301 \begin_inset Quotes eld
27302 \end_inset
27303
27304
27305 \begin_inset Flex Code
27306 status collapsed
27307
27308 \begin_layout Plain Layout
27309
27310 \change_inserted -970929547 1496612296
27311 tag
27312 \change_unchanged
27313
27314 \end_layout
27315
27316 \end_inset
27317
27318
27319 \begin_inset Quotes erd
27320 \end_inset
27321
27322  in the example above.
27323  The default is the name of the float and always needs to be changed, as
27324  DocBook provides no generic tag.
27325 \change_unchanged
27326
27327 \end_layout
27328
27329 \begin_layout Subsection
27330
27331 \change_inserted -970929547 1515111533
27332 InsetLayout DocBook
27333 \change_unchanged
27334
27335 \end_layout
27336
27337 \begin_layout Standard
27338
27339 \change_inserted -970929547 1496611894
27340 The DocBook output of insets can also be controlled by information in layout
27341  files.
27342 \end_layout
27343
27344 \begin_layout Standard
27345
27346 \change_inserted -970929547 1496612045
27347 The DocBook \SpecialChar LyX
27348  outputs for an inset has the following form:
27349 \end_layout
27350
27351 \begin_layout LyX-Code
27352
27353 \change_inserted -970929547 1515110861
27354 <wrappertag wrapperattr>
27355 \end_layout
27356
27357 \begin_layout LyX-Code
27358
27359 \change_inserted -970929547 1515110868
27360   <tag attr>
27361 \end_layout
27362
27363 \begin_layout LyX-Code
27364
27365 \change_inserted -970929547 1515110869
27366     <innertag innerattr>
27367 \end_layout
27368
27369 \begin_layout LyX-Code
27370
27371 \change_inserted -970929547 1515110869
27372       Contents of the inset.
27373 \end_layout
27374
27375 \begin_layout LyX-Code
27376
27377 \change_inserted -970929547 1515110870
27378     </innertag>
27379 \end_layout
27380
27381 \begin_layout LyX-Code
27382
27383 \change_inserted -970929547 1515110871
27384   </tag>
27385 \end_layout
27386
27387 \begin_layout LyX-Code
27388
27389 \change_inserted -970929547 1515111172
27390 </wrappertag>
27391 \end_layout
27392
27393 \begin_layout Standard
27394
27395 \change_inserted -970929547 1515111186
27396 For an itemising inset, it rather looks like this: 
27397 \end_layout
27398
27399 \begin_layout LyX-Code
27400
27401 \change_inserted -970929547 1515111186
27402 <wrappertag wrapperattr>
27403 \end_layout
27404
27405 \begin_layout LyX-Code
27406
27407 \change_inserted -970929547 1515111186
27408   <tag attr>
27409 \end_layout
27410
27411 \begin_layout LyX-Code
27412
27413 \change_inserted -970929547 1515111186
27414     <innertag innerattr>
27415 \end_layout
27416
27417 \begin_layout LyX-Code
27418
27419 \change_inserted -970929547 1515111362
27420       <itemwrappertag itemwrapperattr>
27421 \end_layout
27422
27423 \begin_layout LyX-Code
27424
27425 \change_inserted -970929547 1515111364
27426         <itemlabeltag itemattr>
27427 \end_layout
27428
27429 \begin_layout LyX-Code
27430
27431 \change_inserted -970929547 1515111367
27432           Label of the first item.
27433 \end_layout
27434
27435 \begin_layout LyX-Code
27436
27437 \change_inserted -970929547 1515111362
27438         </itemtag>
27439 \change_unchanged
27440
27441 \end_layout
27442
27443 \begin_layout LyX-Code
27444
27445 \change_inserted -970929547 1515111517
27446         <itemtag itemattr>
27447 \end_layout
27448
27449 \begin_layout LyX-Code
27450
27451 \change_inserted -970929547 1515111517
27452           <itemtag itemattr>
27453 \change_unchanged
27454
27455 \end_layout
27456
27457 \begin_layout LyX-Code
27458
27459 \change_inserted -970929547 1515111516
27460             Contents of the first item.
27461 \end_layout
27462
27463 \begin_layout LyX-Code
27464
27465 \change_inserted -970929547 1515111514
27466           </itemtag>
27467 \change_unchanged
27468
27469 \end_layout
27470
27471 \begin_layout LyX-Code
27472
27473 \change_inserted -970929547 1515111247
27474         </itemtag>
27475 \change_unchanged
27476
27477 \end_layout
27478
27479 \begin_layout LyX-Code
27480
27481 \change_inserted -970929547 1515111221
27482       </itemwrappertag>
27483 \end_layout
27484
27485 \begin_layout LyX-Code
27486
27487 \change_inserted -970929547 1515111370
27488       <itemwrappertag itemwrapperattr>
27489 \end_layout
27490
27491 \begin_layout LyX-Code
27492
27493 \change_inserted -970929547 1515111370
27494         <itemlabeltag itemattr>
27495 \end_layout
27496
27497 \begin_layout LyX-Code
27498
27499 \change_inserted -970929547 1515111372
27500           Label of the second item.
27501 \end_layout
27502
27503 \begin_layout LyX-Code
27504
27505 \change_inserted -970929547 1515111370
27506         </itemtag>
27507 \change_unchanged
27508
27509 \end_layout
27510
27511 \begin_layout LyX-Code
27512
27513 \change_inserted -970929547 1515111504
27514         <itemtag itemattr>
27515 \end_layout
27516
27517 \begin_layout LyX-Code
27518
27519 \change_inserted -970929547 1515111505
27520           <itemtag itemattr>
27521 \change_unchanged
27522
27523 \end_layout
27524
27525 \begin_layout LyX-Code
27526
27527 \change_inserted -970929547 1515111507
27528             Contents of the second item.
27529 \end_layout
27530
27531 \begin_layout LyX-Code
27532
27533 \change_inserted -970929547 1515111509
27534           </itemtag>
27535 \change_unchanged
27536
27537 \end_layout
27538
27539 \begin_layout LyX-Code
27540
27541 \change_inserted -970929547 1515111251
27542         </itemtag>
27543 \change_unchanged
27544
27545 \end_layout
27546
27547 \begin_layout LyX-Code
27548
27549 \change_inserted -970929547 1515111221
27550       </itemwrappertag>
27551 \change_unchanged
27552
27553 \end_layout
27554
27555 \begin_layout LyX-Code
27556
27557 \change_inserted -970929547 1515111219
27558       ...
27559 \change_unchanged
27560
27561 \end_layout
27562
27563 \begin_layout LyX-Code
27564
27565 \change_inserted -970929547 1515111186
27566     </innertag>
27567 \end_layout
27568
27569 \begin_layout LyX-Code
27570
27571 \change_inserted -970929547 1515111186
27572   </tag>
27573 \end_layout
27574
27575 \begin_layout LyX-Code
27576
27577 \change_inserted -970929547 1515111186
27578 </wrappertag>
27579 \end_layout
27580
27581 \begin_layout Standard
27582
27583 \change_inserted -970929547 1515111183
27584 If the inset permits multiple paragraphs—that is, if 
27585 \begin_inset Flex Code
27586 status collapsed
27587
27588 \begin_layout Plain Layout
27589
27590 \change_inserted -970929547 1496610966
27591 MultiPar
27592 \change_unchanged
27593
27594 \end_layout
27595
27596 \end_inset
27597
27598  is true—then the contents of the inset will itself be output as paragraphs
27599  formatted according to the styles used for those paragraphs (standard,
27600  quote, and the like).
27601  The inner tag is optional and, by default, does not appear.
27602 \end_layout
27603
27604 \begin_layout Standard
27605
27606 \change_inserted -970929547 1496610966
27607 The specific tags and attributes output for each inset can be controlled
27608  by means of the following layout tags.
27609 \end_layout
27610
27611 \begin_layout Description
27612
27613 \change_inserted -970929547 1515110317
27614 \begin_inset Flex Code
27615 status collapsed
27616
27617 \begin_layout Plain Layout
27618
27619 \change_inserted -970929547 1515109695
27620 DocBookAttr
27621 \change_unchanged
27622
27623 \end_layout
27624
27625 \end_inset
27626
27627  [
27628 \begin_inset Flex Code
27629 status collapsed
27630
27631 \begin_layout Plain Layout
27632
27633 \change_inserted -970929547 1496611854
27634 string
27635 \change_unchanged
27636
27637 \end_layout
27638
27639 \end_inset
27640
27641 ] Specifies attribute information to be output with the main tag, replacing
27642  
27643 \begin_inset Quotes eld
27644 \end_inset
27645
27646
27647 \begin_inset Flex Code
27648 status collapsed
27649
27650 \begin_layout Plain Layout
27651
27652 \change_inserted -970929547 1515110044
27653 attr
27654 \change_unchanged
27655
27656 \end_layout
27657
27658 \end_inset
27659
27660
27661 \begin_inset Quotes erd
27662 \end_inset
27663
27664  in the example above.
27665  This information can be used in further processing of the DocBook files.
27666  
27667 \end_layout
27668
27669 \begin_layout Description
27670
27671 \change_inserted -970929547 1515110973
27672 \begin_inset Flex Code
27673 status collapsed
27674
27675 \begin_layout Plain Layout
27676
27677 \change_inserted -970929547 1515110319
27678 DocBookInInfo
27679 \change_unchanged
27680
27681 \end_layout
27682
27683 \end_inset
27684
27685  [
27686 \begin_inset Flex Code
27687 status collapsed
27688
27689 \begin_layout Plain Layout
27690
27691 \change_inserted -970929547 1515110384
27692 never, always, maybe
27693 \change_unchanged
27694
27695 \end_layout
27696
27697 \end_inset
27698
27699 ] Specifies whether this tag goes into the 
27700 \begin_inset Flex Code
27701 status collapsed
27702
27703 \begin_layout Plain Layout
27704
27705 \change_inserted -970929547 1515110412
27706 <info>
27707 \change_unchanged
27708
27709 \end_layout
27710
27711 \end_inset
27712
27713  tag at the beginning of the parent layout.
27714  
27715 \begin_inset Flex Code
27716 status collapsed
27717
27718 \begin_layout Plain Layout
27719
27720 \change_inserted -970929547 1515110437
27721 never
27722 \change_unchanged
27723
27724 \end_layout
27725
27726 \end_inset
27727
27728  indicates that the tag never goes into 
27729 \begin_inset Flex Code
27730 status collapsed
27731
27732 \begin_layout Plain Layout
27733
27734 \change_inserted -970929547 1515110497
27735 <info>
27736 \change_unchanged
27737
27738 \end_layout
27739
27740 \end_inset
27741
27742  (this is default value, and corresponds to usual content).
27743  
27744 \begin_inset Flex Code
27745 status collapsed
27746
27747 \begin_layout Plain Layout
27748
27749 \change_inserted -970929547 1515110517
27750 always
27751 \change_unchanged
27752
27753 \end_layout
27754
27755 \end_inset
27756
27757  indicates that the tag always goes into 
27758 \begin_inset Flex Code
27759 status collapsed
27760
27761 \begin_layout Plain Layout
27762
27763 \change_inserted -970929547 1515110514
27764 <info>
27765 \change_unchanged
27766
27767 \end_layout
27768
27769 \end_inset
27770
27771  (this corresponds to usual metadata): if there is no 
27772 \begin_inset Flex Code
27773 status collapsed
27774
27775 \begin_layout Plain Layout
27776
27777 \change_inserted -970929547 1515110550
27778 <info>
27779 \change_unchanged
27780
27781 \end_layout
27782
27783 \end_inset
27784
27785  tag for the parent, one 
27786 \series bold
27787 will
27788 \series default
27789  be generated.
27790  
27791 \begin_inset Flex Code
27792 status collapsed
27793
27794 \begin_layout Plain Layout
27795
27796 \change_inserted -970929547 1515110540
27797 maybe
27798 \change_unchanged
27799
27800 \end_layout
27801
27802 \end_inset
27803
27804  indicates that the tag may go into 
27805 \begin_inset Flex Code
27806 status collapsed
27807
27808 \begin_layout Plain Layout
27809
27810 \change_inserted -970929547 1515110538
27811 <info>
27812 \change_unchanged
27813
27814 \end_layout
27815
27816 \end_inset
27817
27818  (this is only the case for titles): if there is no 
27819 \begin_inset Flex Code
27820 status collapsed
27821
27822 \begin_layout Plain Layout
27823
27824 \change_inserted -970929547 1515110585
27825 <info>
27826 \change_unchanged
27827
27828 \end_layout
27829
27830 \end_inset
27831
27832  tag for the parent, 
27833 \series bold
27834 none
27835 \series default
27836  will be generated, the corresponding tag will be output directly as content.
27837  
27838 \end_layout
27839
27840 \begin_layout Description
27841
27842 \change_inserted -970929547 1515111461
27843 \begin_inset Flex Code
27844 status collapsed
27845
27846 \begin_layout Plain Layout
27847
27848 \change_inserted -970929547 1515110974
27849 DocBookItemAttr
27850 \change_unchanged
27851
27852 \end_layout
27853
27854 \end_inset
27855
27856  [
27857 \begin_inset Flex Code
27858 status collapsed
27859
27860 \begin_layout Plain Layout
27861
27862 \change_inserted -970929547 1515110973
27863 string
27864 \change_unchanged
27865
27866 \end_layout
27867
27868 \end_inset
27869
27870 ] Specifies attribute information to be output with the item tag, replacing
27871  
27872 \begin_inset Quotes eld
27873 \end_inset
27874
27875
27876 \begin_inset Flex Code
27877 status collapsed
27878
27879 \begin_layout Plain Layout
27880
27881 \change_inserted -970929547 1515110984
27882 itemattr
27883 \change_unchanged
27884
27885 \end_layout
27886
27887 \end_inset
27888
27889
27890 \begin_inset Quotes erd
27891 \end_inset
27892
27893  in the example above.
27894  This information can be used in further processing of the DocBook files.
27895  
27896 \end_layout
27897
27898 \begin_layout Description
27899
27900 \change_inserted -970929547 1515111471
27901 \begin_inset Flex Code
27902 status collapsed
27903
27904 \begin_layout Plain Layout
27905
27906 \change_inserted -970929547 1515111465
27907 DocBookItemInnerAttr
27908 \change_unchanged
27909
27910 \end_layout
27911
27912 \end_inset
27913
27914  [
27915 \begin_inset Flex Code
27916 status collapsed
27917
27918 \begin_layout Plain Layout
27919
27920 \change_inserted -970929547 1515111461
27921 string
27922 \change_unchanged
27923
27924 \end_layout
27925
27926 \end_inset
27927
27928 ] Specifies attribute information to be output with the item inner tag,
27929  replacing 
27930 \begin_inset Quotes eld
27931 \end_inset
27932
27933
27934 \begin_inset Flex Code
27935 status collapsed
27936
27937 \begin_layout Plain Layout
27938
27939 \change_inserted -970929547 1515111476
27940 iteminnerattr
27941 \change_unchanged
27942
27943 \end_layout
27944
27945 \end_inset
27946
27947
27948 \begin_inset Quotes erd
27949 \end_inset
27950
27951  in the example above.
27952  This information can be used in further processing of the DocBook files.
27953  
27954 \end_layout
27955
27956 \begin_layout Description
27957
27958 \change_inserted -970929547 1515111494
27959 \begin_inset Flex Code
27960 status collapsed
27961
27962 \begin_layout Plain Layout
27963
27964 \change_inserted -970929547 1515111467
27965 DocBookItemInnerTag
27966 \change_unchanged
27967
27968 \end_layout
27969
27970 \end_inset
27971
27972  [
27973 \begin_inset Flex Code
27974 status collapsed
27975
27976 \begin_layout Plain Layout
27977
27978 \change_inserted -970929547 1515111461
27979 string
27980 \change_unchanged
27981
27982 \end_layout
27983
27984 \end_inset
27985
27986 ] The tag to be used for the item inner tag within the inset, replacing
27987  
27988 \begin_inset Quotes eld
27989 \end_inset
27990
27991
27992 \begin_inset Flex Code
27993 status collapsed
27994
27995 \begin_layout Plain Layout
27996
27997 \change_inserted -970929547 1515111486
27998 iteminnertag
27999 \change_unchanged
28000
28001 \end_layout
28002
28003 \end_inset
28004
28005
28006 \begin_inset Quotes erd
28007 \end_inset
28008
28009  in the example above.
28010  The default is 
28011 \begin_inset Flex Code
28012 status collapsed
28013
28014 \begin_layout Plain Layout
28015
28016 \change_inserted -970929547 1515111461
28017 NONE
28018 \change_unchanged
28019
28020 \end_layout
28021
28022 \end_inset
28023
28024 , indicating that there is no item inner tag: content is directly output
28025  without it for each itemised element.
28026  This parameter only makes sense when itemising layouts are used, such as
28027  lists.
28028  
28029 \change_unchanged
28030
28031 \end_layout
28032
28033 \begin_layout Description
28034
28035 \change_inserted -970929547 1515111290
28036 \begin_inset Flex Code
28037 status collapsed
28038
28039 \begin_layout Plain Layout
28040
28041 \change_inserted -970929547 1515111283
28042 DocBookItemLabelAttr
28043 \change_unchanged
28044
28045 \end_layout
28046
28047 \end_inset
28048
28049  [
28050 \begin_inset Flex Code
28051 status collapsed
28052
28053 \begin_layout Plain Layout
28054
28055 \change_inserted -970929547 1515111279
28056 string
28057 \change_unchanged
28058
28059 \end_layout
28060
28061 \end_inset
28062
28063 ] Specifies attribute information to be output with the item label tag,
28064  replacing 
28065 \begin_inset Quotes eld
28066 \end_inset
28067
28068
28069 \begin_inset Flex Code
28070 status collapsed
28071
28072 \begin_layout Plain Layout
28073
28074 \change_inserted -970929547 1515111304
28075 itemlabelattr
28076 \change_unchanged
28077
28078 \end_layout
28079
28080 \end_inset
28081
28082
28083 \begin_inset Quotes erd
28084 \end_inset
28085
28086  in the example above.
28087  This information can be used in further processing of the DocBook files.
28088  
28089 \end_layout
28090
28091 \begin_layout Description
28092
28093 \change_inserted -970929547 1515111337
28094 \begin_inset Flex Code
28095 status collapsed
28096
28097 \begin_layout Plain Layout
28098
28099 \change_inserted -970929547 1515111285
28100 DocBookItemLabelTag
28101 \change_unchanged
28102
28103 \end_layout
28104
28105 \end_inset
28106
28107  [
28108 \begin_inset Flex Code
28109 status collapsed
28110
28111 \begin_layout Plain Layout
28112
28113 \change_inserted -970929547 1515111279
28114 string
28115 \change_unchanged
28116
28117 \end_layout
28118
28119 \end_inset
28120
28121 ] The tag to be used for the item label tag within the inset, replacing
28122  
28123 \begin_inset Quotes eld
28124 \end_inset
28125
28126
28127 \begin_inset Flex Code
28128 status collapsed
28129
28130 \begin_layout Plain Layout
28131
28132 \change_inserted -970929547 1515111311
28133 itemlabeltag
28134 \change_unchanged
28135
28136 \end_layout
28137
28138 \end_inset
28139
28140
28141 \begin_inset Quotes erd
28142 \end_inset
28143
28144  in the example above.
28145  This parameter only makes sense when itemising layouts are used with a
28146  notion of labels, such as definition lists.
28147  
28148 \change_unchanged
28149
28150 \end_layout
28151
28152 \begin_layout Description
28153
28154 \change_inserted -970929547 1515111124
28155 \begin_inset Flex Code
28156 status collapsed
28157
28158 \begin_layout Plain Layout
28159
28160 \change_inserted -970929547 1515111060
28161 DocBookItemTag
28162 \change_unchanged
28163
28164 \end_layout
28165
28166 \end_inset
28167
28168  [
28169 \begin_inset Flex Code
28170 status collapsed
28171
28172 \begin_layout Plain Layout
28173
28174 \change_inserted -970929547 1515111060
28175 string
28176 \change_unchanged
28177
28178 \end_layout
28179
28180 \end_inset
28181
28182 ] The tag to be used for the item tag within the inset, replacing 
28183 \begin_inset Quotes eld
28184 \end_inset
28185
28186
28187 \begin_inset Flex Code
28188 status collapsed
28189
28190 \begin_layout Plain Layout
28191
28192 \change_inserted -970929547 1515111060
28193 itemtag
28194 \change_unchanged
28195
28196 \end_layout
28197
28198 \end_inset
28199
28200
28201 \begin_inset Quotes erd
28202 \end_inset
28203
28204  in the example above.
28205  The default is 
28206 \begin_inset Flex Code
28207 status collapsed
28208
28209 \begin_layout Plain Layout
28210
28211 \change_inserted -970929547 1515111060
28212 NONE
28213 \change_unchanged
28214
28215 \end_layout
28216
28217 \end_inset
28218
28219 , indicating that there is no item tag.
28220  This parameter only makes sense when itemising layouts are used, such as
28221  lists.
28222  
28223 \end_layout
28224
28225 \begin_layout Description
28226
28227 \change_inserted -970929547 1515111298
28228 \begin_inset Flex Code
28229 status collapsed
28230
28231 \begin_layout Plain Layout
28232
28233 \change_inserted -970929547 1515111124
28234 DocBookItemWrapperAttr
28235 \change_unchanged
28236
28237 \end_layout
28238
28239 \end_inset
28240
28241  [
28242 \begin_inset Flex Code
28243 status collapsed
28244
28245 \begin_layout Plain Layout
28246
28247 \change_inserted -970929547 1515111124
28248 string
28249 \change_unchanged
28250
28251 \end_layout
28252
28253 \end_inset
28254
28255 ] Specifies attribute information to be output with the item wrapper tag,
28256  replacing 
28257 \begin_inset Quotes eld
28258 \end_inset
28259
28260
28261 \begin_inset Flex Code
28262 status collapsed
28263
28264 \begin_layout Plain Layout
28265
28266 \change_inserted -970929547 1515111150
28267 itemwrapperattr
28268 \change_unchanged
28269
28270 \end_layout
28271
28272 \end_inset
28273
28274
28275 \begin_inset Quotes erd
28276 \end_inset
28277
28278  in the example above.
28279  This information can be used in further processing of the DocBook files.
28280  
28281 \change_unchanged
28282
28283 \end_layout
28284
28285 \begin_layout Description
28286
28287 \change_inserted -970929547 1515111113
28288 \begin_inset Flex Code
28289 status collapsed
28290
28291 \begin_layout Plain Layout
28292
28293 \change_inserted -970929547 1515111073
28294 DocBookItemWrapperTag
28295 \change_unchanged
28296
28297 \end_layout
28298
28299 \end_inset
28300
28301  [
28302 \begin_inset Flex Code
28303 status collapsed
28304
28305 \begin_layout Plain Layout
28306
28307 \change_inserted -970929547 1515111073
28308 string
28309 \change_unchanged
28310
28311 \end_layout
28312
28313 \end_inset
28314
28315 ] The tag to be used for the item wrapper tag within the inset, replacing
28316  
28317 \begin_inset Quotes eld
28318 \end_inset
28319
28320
28321 \begin_inset Flex Code
28322 status collapsed
28323
28324 \begin_layout Plain Layout
28325
28326 \change_inserted -970929547 1515111083
28327 itemwrappertag
28328 \change_unchanged
28329
28330 \end_layout
28331
28332 \end_inset
28333
28334
28335 \begin_inset Quotes erd
28336 \end_inset
28337
28338  in the example above.
28339  The default is 
28340 \begin_inset Flex Code
28341 status collapsed
28342
28343 \begin_layout Plain Layout
28344
28345 \change_inserted -970929547 1515111073
28346 NONE
28347 \change_unchanged
28348
28349 \end_layout
28350
28351 \end_inset
28352
28353 , indicating that there is no item wrapper tag: tag and content are directly
28354  output without it for each itemised element.
28355  This parameter only makes sense when itemising layouts are used, such as
28356  lists.
28357  
28358 \change_unchanged
28359
28360 \end_layout
28361
28362 \begin_layout Description
28363
28364 \change_inserted -970929547 1515110104
28365 \begin_inset Flex Code
28366 status collapsed
28367
28368 \begin_layout Plain Layout
28369
28370 \change_inserted -970929547 1515110104
28371 DocBookInnerAttr
28372 \change_unchanged
28373
28374 \end_layout
28375
28376 \end_inset
28377
28378  [
28379 \begin_inset Flex Code
28380 status collapsed
28381
28382 \begin_layout Plain Layout
28383
28384 \change_inserted -970929547 1515110104
28385 string
28386 \change_unchanged
28387
28388 \end_layout
28389
28390 \end_inset
28391
28392 ] Specifies attribute information to be output with the inner tag, replacing
28393  
28394 \begin_inset Quotes eld
28395 \end_inset
28396
28397
28398 \begin_inset Flex Code
28399 status collapsed
28400
28401 \begin_layout Plain Layout
28402
28403 \change_inserted -970929547 1515110104
28404 innerattr
28405 \change_unchanged
28406
28407 \end_layout
28408
28409 \end_inset
28410
28411
28412 \begin_inset Quotes erd
28413 \end_inset
28414
28415  in the example above.
28416  This information can be used in further processing of the DocBook files.
28417  
28418 \end_layout
28419
28420 \begin_layout Description
28421
28422 \change_inserted -970929547 1515110906
28423 \begin_inset Flex Code
28424 status collapsed
28425
28426 \begin_layout Plain Layout
28427
28428 \change_inserted -970929547 1515110104
28429 DocBookInnerTag
28430 \change_unchanged
28431
28432 \end_layout
28433
28434 \end_inset
28435
28436  [
28437 \begin_inset Flex Code
28438 status collapsed
28439
28440 \begin_layout Plain Layout
28441
28442 \change_inserted -970929547 1515110104
28443 string
28444 \change_unchanged
28445
28446 \end_layout
28447
28448 \end_inset
28449
28450 ] The tag to be used for the inner tag within the inset, replacing 
28451 \begin_inset Quotes eld
28452 \end_inset
28453
28454
28455 \begin_inset Flex Code
28456 status collapsed
28457
28458 \begin_layout Plain Layout
28459
28460 \change_inserted -970929547 1515110104
28461 innertag
28462 \change_unchanged
28463
28464 \end_layout
28465
28466 \end_inset
28467
28468
28469 \begin_inset Quotes erd
28470 \end_inset
28471
28472  in the example above.
28473  The default is 
28474 \begin_inset Flex Code
28475 status collapsed
28476
28477 \begin_layout Plain Layout
28478
28479 \change_inserted -970929547 1515110791
28480 NONE
28481 \change_unchanged
28482
28483 \end_layout
28484
28485 \end_inset
28486
28487 , indicating that there is no inner tag: content is directly output without
28488  it.
28489 \end_layout
28490
28491 \begin_layout Description
28492
28493 \change_inserted -970929547 1515110753
28494 \begin_inset Flex Code
28495 status collapsed
28496
28497 \begin_layout Plain Layout
28498
28499 \change_inserted -970929547 1515110665
28500 DocBookSectionTag
28501 \change_unchanged
28502
28503 \end_layout
28504
28505 \end_inset
28506
28507  [
28508 \begin_inset Flex Code
28509 status collapsed
28510
28511 \begin_layout Plain Layout
28512
28513 \change_inserted -970929547 1515110661
28514 string
28515 \change_unchanged
28516
28517 \end_layout
28518
28519 \end_inset
28520
28521 ] Specifies the tag that corresponds to this kind of section.
28522  This parameter only makes sense for sectioning elements (part, chapter,
28523  section, etc.).
28524  The default value is 
28525 \begin_inset Flex Code
28526 status collapsed
28527
28528 \begin_layout Plain Layout
28529
28530 \change_inserted -970929547 1515110721
28531 section
28532 \change_unchanged
28533
28534 \end_layout
28535
28536 \end_inset
28537
28538 , and is only overridden when DocBook uses something else for sectioning
28539  (parts and chapters of a book).
28540  
28541 \change_unchanged
28542
28543 \end_layout
28544
28545 \begin_layout Description
28546
28547 \change_inserted -970929547 1515110811
28548 \begin_inset Flex Code
28549 status collapsed
28550
28551 \begin_layout Plain Layout
28552
28553 \change_inserted -970929547 1496612023
28554 DocBookTag
28555 \change_unchanged
28556
28557 \end_layout
28558
28559 \end_inset
28560
28561  [
28562 \begin_inset Flex Code
28563 status collapsed
28564
28565 \begin_layout Plain Layout
28566
28567 \change_inserted -970929547 1496610966
28568 string
28569 \change_unchanged
28570
28571 \end_layout
28572
28573 \end_inset
28574
28575 ] The tag to be used for this inset, replacing 
28576 \begin_inset Quotes eld
28577 \end_inset
28578
28579
28580 \begin_inset Flex Code
28581 status collapsed
28582
28583 \begin_layout Plain Layout
28584
28585 \change_inserted -970929547 1496612033
28586 tag
28587 \change_unchanged
28588
28589 \end_layout
28590
28591 \end_inset
28592
28593
28594 \begin_inset Quotes erd
28595 \end_inset
28596
28597  in the example above.
28598  The default is the name of the float and always needs to be changed, as
28599  DocBook provides no generic inset tag.
28600 \end_layout
28601
28602 \begin_layout Description
28603
28604 \change_inserted -970929547 1515110832
28605 \begin_inset Flex Code
28606 status collapsed
28607
28608 \begin_layout Plain Layout
28609
28610 \change_inserted -970929547 1515110822
28611 DocBookWrapperAttr
28612 \change_unchanged
28613
28614 \end_layout
28615
28616 \end_inset
28617
28618  [
28619 \begin_inset Flex Code
28620 status collapsed
28621
28622 \begin_layout Plain Layout
28623
28624 \change_inserted -970929547 1515110811
28625 string
28626 \change_unchanged
28627
28628 \end_layout
28629
28630 \end_inset
28631
28632 ] Specifies attribute information to be output with the outer tag, replacing
28633  
28634 \begin_inset Quotes eld
28635 \end_inset
28636
28637
28638 \begin_inset Flex Code
28639 status collapsed
28640
28641 \begin_layout Plain Layout
28642
28643 \change_inserted -970929547 1515110845
28644 wrapperattr
28645 \change_unchanged
28646
28647 \end_layout
28648
28649 \end_inset
28650
28651
28652 \begin_inset Quotes erd
28653 \end_inset
28654
28655  in the example above.
28656  This information can be used in further processing of the DocBook files.
28657  
28658 \end_layout
28659
28660 \begin_layout Description
28661
28662 \change_inserted -970929547 1515110917
28663 \begin_inset Flex Code
28664 status collapsed
28665
28666 \begin_layout Plain Layout
28667
28668 \change_inserted -970929547 1515110826
28669 DocBookWrapperTag
28670 \change_unchanged
28671
28672 \end_layout
28673
28674 \end_inset
28675
28676  [
28677 \begin_inset Flex Code
28678 status collapsed
28679
28680 \begin_layout Plain Layout
28681
28682 \change_inserted -970929547 1515110811
28683 string
28684 \change_unchanged
28685
28686 \end_layout
28687
28688 \end_inset
28689
28690 ] The tag to be used for the wrapper tag around the inset, replacing 
28691 \begin_inset Quotes eld
28692 \end_inset
28693
28694
28695 \begin_inset Flex Code
28696 status collapsed
28697
28698 \begin_layout Plain Layout
28699
28700 \change_inserted -970929547 1515110842
28701 wrappertag
28702 \change_unchanged
28703
28704 \end_layout
28705
28706 \end_inset
28707
28708
28709 \begin_inset Quotes erd
28710 \end_inset
28711
28712  in the example above.
28713  The default is 
28714 \begin_inset Flex Code
28715 status collapsed
28716
28717 \begin_layout Plain Layout
28718
28719 \change_inserted -970929547 1515110811
28720 NONE
28721 \change_unchanged
28722
28723 \end_layout
28724
28725 \end_inset
28726
28727 , indicating that there is no wrapper tag: tag and content are directly
28728  output without it.
28729 \change_deleted -970929547 1515111523
28730
28731 \end_layout
28732
28733 \begin_layout Subsection
28734
28735 \change_inserted -970929547 1515110040
28736 Float DocBook
28737 \end_layout
28738
28739 \begin_layout Standard
28740
28741 \change_inserted -970929547 1496611700
28742 The DocBook output for floats too can be controlled by layout information.
28743  The output has the following form:
28744 \end_layout
28745
28746 \begin_layout LyX-Code
28747
28748 \change_inserted -970929547 1515109700
28749 <tag attr>
28750 \end_layout
28751
28752 \begin_layout LyX-Code
28753
28754 \change_inserted -970929547 1515110138
28755   Contents of the float as DocBook.
28756 \end_layout
28757
28758 \begin_layout LyX-Code
28759
28760 \change_inserted -970929547 1496610966
28761 </tag>
28762 \end_layout
28763
28764 \begin_layout Standard
28765
28766 \change_inserted -970929547 1496611715
28767 The caption, if there is one, is a separate inset and will be output as
28768  a title.
28769  
28770 \end_layout
28771
28772 \begin_layout Description
28773
28774 \change_inserted -970929547 1515110033
28775 \begin_inset Flex Code
28776 status collapsed
28777
28778 \begin_layout Plain Layout
28779
28780 \change_inserted -970929547 1515109702
28781 DocBookAttr
28782 \change_unchanged
28783
28784 \end_layout
28785
28786 \end_inset
28787
28788  [
28789 \begin_inset Flex Code
28790 status collapsed
28791
28792 \begin_layout Plain Layout
28793
28794 \change_inserted -970929547 1496610966
28795 string
28796 \change_unchanged
28797
28798 \end_layout
28799
28800 \end_inset
28801
28802 ] Specifies attribute information to be output with the main tag, replacing
28803  
28804 \begin_inset Quotes eld
28805 \end_inset
28806
28807
28808 \begin_inset Flex Code
28809 status collapsed
28810
28811 \begin_layout Plain Layout
28812
28813 \change_inserted -970929547 1515110035
28814 attr
28815 \change_unchanged
28816
28817 \end_layout
28818
28819 \end_inset
28820
28821
28822 \begin_inset Quotes erd
28823 \end_inset
28824
28825  in the example above.
28826  This information can be used in further processing of the DocBook files.
28827  
28828 \end_layout
28829
28830 \begin_layout Description
28831
28832 \change_inserted -970929547 1515110157
28833 \begin_inset Flex Code
28834 status collapsed
28835
28836 \begin_layout Plain Layout
28837
28838 \change_inserted -970929547 1496611782
28839 DocBookTag
28840 \change_unchanged
28841
28842 \end_layout
28843
28844 \end_inset
28845
28846  [
28847 \begin_inset Flex Code
28848 status collapsed
28849
28850 \begin_layout Plain Layout
28851
28852 \change_inserted -970929547 1496610966
28853 string
28854 \change_unchanged
28855
28856 \end_layout
28857
28858 \end_inset
28859
28860 ] The tag to be used for this float, replacing 
28861 \begin_inset Quotes eld
28862 \end_inset
28863
28864
28865 \begin_inset Flex Code
28866 status collapsed
28867
28868 \begin_layout Plain Layout
28869
28870 \change_inserted -970929547 1496610966
28871 tag
28872 \change_unchanged
28873
28874 \end_layout
28875
28876 \end_inset
28877
28878
28879 \begin_inset Quotes erd
28880 \end_inset
28881
28882  in the example above.
28883  The default is the name of the float and always needs to be changed, as
28884  DocBook provides no generic float tag.
28885 \end_layout
28886
28887 \begin_layout Subsection
28888
28889 \change_inserted -970929547 1515110157
28890 Bibliography formatting
28891 \end_layout
28892
28893 \begin_layout Standard
28894
28895 \change_inserted -970929547 1515110187
28896 The bibliography cannot be formatted: all fields are always output in the
28897  database-like DocBook format (equivalent to a BibTeX file).
28898 \change_unchanged
28899
28900 \end_layout
28901
28902 \begin_layout Chapter
28903 Including External Material
28904 \begin_inset CommandInset label
28905 LatexCommand label
28906 name "chap:Including-External-Material"
28907
28908 \end_inset
28909
28910
28911 \end_layout
28912
28913 \begin_layout Standard
28914 \begin_inset Box Shadowbox
28915 position "t"
28916 hor_pos "c"
28917 has_inner_box 1
28918 inner_pos "t"
28919 use_parbox 0
28920 use_makebox 0
28921 width "100col%"
28922 special "none"
28923 height "1in"
28924 height_special "totalheight"
28925 thickness "0.4pt"
28926 separation "3pt"
28927 shadowsize "4pt"
28928 framecolor "black"
28929 backgroundcolor "none"
28930 status open
28931
28932 \begin_layout Plain Layout
28933 WARNING: This portion of the documentation has not been updated for some
28934  time.
28935  We certainly hope that it is still accurate, but there are no guarantees.
28936 \end_layout
28937
28938 \end_inset
28939
28940
28941 \end_layout
28942
28943 \begin_layout Standard
28944 The use of material from sources external to \SpecialChar LyX
28945  is covered in detail in the
28946  
28947 \emph on
28948 Embedded Objects
28949 \emph default
28950  manual.
28951  This part of the manual covers what needs to happen behind the scenes for
28952  new sorts of material to be included.
28953 \end_layout
28954
28955 \begin_layout Section
28956 How does it work?
28957 \end_layout
28958
28959 \begin_layout Standard
28960 The external material feature is based on the concept of a 
28961 \emph on
28962 template
28963 \emph default
28964 .
28965  A template is a specification of how \SpecialChar LyX
28966  should interface with a certain kind
28967  of material.
28968  As bundled, \SpecialChar LyX
28969  comes with predefined templates for Xfig figures, various
28970  raster format images, chess diagrams, and LilyPond music notation.
28971  You can check the actual list by using the menu 
28972 \begin_inset Flex Noun
28973 status collapsed
28974
28975 \begin_layout Plain Layout
28976 Insert\SpecialChar menuseparator
28977 File\SpecialChar menuseparator
28978 External Material
28979 \end_layout
28980
28981 \end_inset
28982
28983 .
28984  Furthermore, it is possible to roll your own template to support a specific
28985  kind of material.
28986  Later we'll describe in more detail what is involved, and hopefully you
28987  will submit all the templates you create so we can include them in a later
28988  \SpecialChar LyX
28989  version.
28990 \end_layout
28991
28992 \begin_layout Standard
28993 Another basic idea of the external material feature is to distinguish between
28994  the original file that serves as a base for final material and the produced
28995  file that is included in your exported or printed document.
28996  For example, consider the case of a figure produced with 
28997 \begin_inset Flex Code
28998 status collapsed
28999
29000 \begin_layout Plain Layout
29001 Xfig
29002 \end_layout
29003
29004 \end_inset
29005
29006 .
29007  The Xfig application itself works on an original file with the 
29008 \begin_inset Flex Code
29009 status collapsed
29010
29011 \begin_layout Plain Layout
29012 .fig
29013 \end_layout
29014
29015 \end_inset
29016
29017  extension.
29018  Within Xfig, you create and change your figure, and when you are done,
29019  you save the 
29020 \begin_inset Flex Code
29021 status collapsed
29022
29023 \begin_layout Plain Layout
29024 fig
29025 \end_layout
29026
29027 \end_inset
29028
29029 -file.
29030  When you want to include the figure in your document, you invoke 
29031 \begin_inset Flex Code
29032 status collapsed
29033
29034 \begin_layout Plain Layout
29035 transfig
29036 \end_layout
29037
29038 \end_inset
29039
29040  in order to create a PostScript file that can readily be included in your
29041  \SpecialChar LaTeX
29042  file.
29043  In this case, the 
29044 \begin_inset Flex Code
29045 status collapsed
29046
29047 \begin_layout Plain Layout
29048 .fig
29049 \end_layout
29050
29051 \end_inset
29052
29053  file is the original file, and the PostScript file is the produced file.
29054 \end_layout
29055
29056 \begin_layout Standard
29057 This distinction is important in order to allow updating of the material
29058  while you are in the process of writing the document.
29059  Furthermore, it provides us with the flexibility that is needed to support
29060  multiple export formats.
29061  For instance, in the case of a plain text file, it is not exactly an award-winn
29062 ing idea to include the figure as raw PostScript.
29063  Instead, you would either prefer to just include a reference to the figure
29064  or try to invoke some graphics to ASCII converter to make the final result
29065  look similar to the real graphics.
29066  The external material management allows you to do this, because it is parametri
29067 zed on the different export formats that \SpecialChar LyX
29068  supports.
29069 \end_layout
29070
29071 \begin_layout Standard
29072 Besides supporting the production of different products according to the
29073  exported format, it supports tight integration with editing and viewing
29074  applications.
29075  In the case of an Xfig figure, you are able to invoke Xfig on the original
29076  file with a single click from within the external material dialog in \SpecialChar LyX
29077 ,
29078  and also preview the produced PostScript file with Ghostview with another
29079  click.
29080  No more fiddling around with the command line and/or file browsers to locate
29081  and manipulate the original or produced files.
29082  In this way, you are finally able to take full advantage of the many different
29083  applications that are relevant to use when you write your documents, and
29084  ultimately be more productive.
29085 \end_layout
29086
29087 \begin_layout Section
29088 The external template configuration files
29089 \end_layout
29090
29091 \begin_layout Standard
29092 It is relatively easy to add custom external template definitions to \SpecialChar LyX
29093 .
29094  However, be aware that doing this in an careless manner most probably 
29095 \emph on
29096 will
29097 \emph default
29098  introduce an easily exploitable security hole.
29099  So before you do this, please read the discussion about security in 
29100 \begin_inset CommandInset ref
29101 LatexCommand ref
29102 reference "sec:Security-discussion"
29103
29104 \end_inset
29105
29106 .
29107 \end_layout
29108
29109 \begin_layout Standard
29110 Having said that, we encourage you to submit any interesting templates that
29111  you create.
29112  
29113 \end_layout
29114
29115 \begin_layout Standard
29116 The external templates are defined in the 
29117 \begin_inset Flex Code
29118 status collapsed
29119
29120 \begin_layout Plain Layout
29121 *.xtemplate
29122 \end_layout
29123
29124 \end_inset
29125
29126  files that are stored in the 
29127 \begin_inset Flex Code
29128 status collapsed
29129
29130 \begin_layout Plain Layout
29131 LyXDir/lib/xtemplates/
29132 \end_layout
29133
29134 \end_inset
29135
29136  directory.
29137  Each template is defined in a file of its own.
29138  You can place your own templates in 
29139 \begin_inset Flex Code
29140 status collapsed
29141
29142 \begin_layout Plain Layout
29143 UserDir/xtemplates/
29144 \end_layout
29145
29146 \end_inset
29147
29148  or copy existing templates to that directory in order to modify them.
29149 \end_layout
29150
29151 \begin_layout Standard
29152 A typical template looks like this:
29153 \end_layout
29154
29155 \begin_layout LyX-Code
29156 Template XFig
29157 \end_layout
29158
29159 \begin_layout LyX-Code
29160 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
29161 \end_layout
29162
29163 \begin_layout LyX-Code
29164 HelpText
29165 \end_layout
29166
29167 \begin_layout LyX-Code
29168 An XFig figure.
29169 \end_layout
29170
29171 \begin_layout LyX-Code
29172 HelpTextEnd
29173 \end_layout
29174
29175 \begin_layout LyX-Code
29176 InputFormat fig
29177 \end_layout
29178
29179 \begin_layout LyX-Code
29180 FileFilter "*.fig"
29181 \end_layout
29182
29183 \begin_layout LyX-Code
29184 AutomaticProduction true
29185 \end_layout
29186
29187 \begin_layout LyX-Code
29188 Transform Rotate
29189 \end_layout
29190
29191 \begin_layout LyX-Code
29192 Transform Resize
29193 \end_layout
29194
29195 \begin_layout LyX-Code
29196 Format LaTeX
29197 \end_layout
29198
29199 \begin_layout LyX-Code
29200 TransformCommand Rotate RotationLatexCommand
29201 \end_layout
29202
29203 \begin_layout LyX-Code
29204 TransformCommand Resize ResizeLatexCommand
29205 \end_layout
29206
29207 \begin_layout LyX-Code
29208 Product "$$RotateFront$$ResizeFront
29209 \end_layout
29210
29211 \begin_layout LyX-Code
29212          
29213 \backslash
29214
29215 \backslash
29216 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
29217 \end_layout
29218
29219 \begin_layout LyX-Code
29220          $$ResizeBack$$RotateBack"
29221 \end_layout
29222
29223 \begin_layout LyX-Code
29224 UpdateFormat pstex
29225 \end_layout
29226
29227 \begin_layout LyX-Code
29228 UpdateResult "$$AbsPath$$Basename.pstex_t"
29229 \end_layout
29230
29231 \begin_layout LyX-Code
29232 Requirement "graphicx"
29233 \end_layout
29234
29235 \begin_layout LyX-Code
29236 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
29237 \end_layout
29238
29239 \begin_layout LyX-Code
29240 ReferencedFile latex "$$AbsPath$$Basename.eps"
29241 \end_layout
29242
29243 \begin_layout LyX-Code
29244 ReferencedFile dvi "$$AbsPath$$Basename.eps"
29245 \end_layout
29246
29247 \begin_layout LyX-Code
29248 FormatEnd
29249 \end_layout
29250
29251 \begin_layout LyX-Code
29252 Format PDFLaTeX
29253 \end_layout
29254
29255 \begin_layout LyX-Code
29256 TransformCommand Rotate RotationLatexCommand
29257 \end_layout
29258
29259 \begin_layout LyX-Code
29260 TransformCommand Resize ResizeLatexCommand
29261 \end_layout
29262
29263 \begin_layout LyX-Code
29264 Product "$$RotateFront$$ResizeFront
29265 \end_layout
29266
29267 \begin_layout LyX-Code
29268          
29269 \backslash
29270
29271 \backslash
29272 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
29273 \end_layout
29274
29275 \begin_layout LyX-Code
29276          $$ResizeBack$$RotateBack"
29277 \end_layout
29278
29279 \begin_layout LyX-Code
29280 UpdateFormat pdftex
29281 \end_layout
29282
29283 \begin_layout LyX-Code
29284 UpdateResult "$$AbsPath$$Basename.pdftex_t"
29285 \end_layout
29286
29287 \begin_layout LyX-Code
29288 Requirement "graphicx"
29289 \end_layout
29290
29291 \begin_layout LyX-Code
29292 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
29293 \end_layout
29294
29295 \begin_layout LyX-Code
29296 ReferencedFile latex "$$AbsPath$$Basename.pdf"
29297 \end_layout
29298
29299 \begin_layout LyX-Code
29300 FormatEnd
29301 \end_layout
29302
29303 \begin_layout LyX-Code
29304 Format Ascii
29305 \end_layout
29306
29307 \begin_layout LyX-Code
29308 Product "[XFig: $$FName]"
29309 \end_layout
29310
29311 \begin_layout LyX-Code
29312 FormatEnd
29313 \end_layout
29314
29315 \begin_layout LyX-Code
29316 Format DocBook
29317 \end_layout
29318
29319 \begin_layout LyX-Code
29320 Product "<graphic fileref=
29321 \backslash
29322 "$$AbsOrRelPathMaster$$Basename.eps
29323 \backslash
29324 ">
29325 \end_layout
29326
29327 \begin_layout LyX-Code
29328          </graphic>"
29329 \end_layout
29330
29331 \begin_layout LyX-Code
29332 UpdateFormat eps
29333 \end_layout
29334
29335 \begin_layout LyX-Code
29336 UpdateResult "$$AbsPath$$Basename.eps"
29337 \end_layout
29338
29339 \begin_layout LyX-Code
29340 ReferencedFile docbook "$$AbsPath$$Basename.eps"
29341 \end_layout
29342
29343 \begin_layout LyX-Code
29344 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
29345 \end_layout
29346
29347 \begin_layout LyX-Code
29348 FormatEnd
29349 \end_layout
29350
29351 \begin_layout LyX-Code
29352 TemplateEnd
29353 \end_layout
29354
29355 \begin_layout Standard
29356 As you can see, the template is enclosed in 
29357 \begin_inset Flex Code
29358 status collapsed
29359
29360 \begin_layout Plain Layout
29361 Template
29362 \end_layout
29363
29364 \end_inset
29365
29366  \SpecialChar ldots
29367  
29368 \begin_inset Flex Code
29369 status collapsed
29370
29371 \begin_layout Plain Layout
29372 TemplateEnd
29373 \end_layout
29374
29375 \end_inset
29376
29377 .
29378  It contains a header specifying some general settings and, for each supported
29379  primary document file format, a section 
29380 \begin_inset Flex Code
29381 status collapsed
29382
29383 \begin_layout Plain Layout
29384 Format
29385 \end_layout
29386
29387 \end_inset
29388
29389  \SpecialChar ldots
29390  
29391 \begin_inset Flex Code
29392 status collapsed
29393
29394 \begin_layout Plain Layout
29395 FormatEnd
29396 \end_layout
29397
29398 \end_inset
29399
29400 .
29401 \end_layout
29402
29403 \begin_layout Subsection
29404 The template header
29405 \end_layout
29406
29407 \begin_layout Description
29408 \begin_inset Flex Code
29409 status collapsed
29410
29411 \begin_layout Plain Layout
29412 AutomaticProduction
29413 \begin_inset space ~
29414 \end_inset
29415
29416 true|false
29417 \end_layout
29418
29419 \end_inset
29420
29421  Whether the file represented by the template must be generated by \SpecialChar LyX
29422 .
29423  This command must occur exactly once.
29424 \end_layout
29425
29426 \begin_layout Description
29427 \begin_inset Flex Code
29428 status collapsed
29429
29430 \begin_layout Plain Layout
29431 FileFilter
29432 \begin_inset space ~
29433 \end_inset
29434
29435 <pattern>
29436 \end_layout
29437
29438 \end_inset
29439
29440  A glob pattern that is used in the file dialog to filter out the desired
29441  files.
29442  If there is more than one possible file extension (e.
29443 \begin_inset space \thinspace{}
29444 \end_inset
29445
29446 g.
29447 \begin_inset space \space{}
29448 \end_inset
29449
29450 tgif has 
29451 \begin_inset Flex Code
29452 status collapsed
29453
29454 \begin_layout Plain Layout
29455 .obj
29456 \end_layout
29457
29458 \end_inset
29459
29460  and 
29461 \begin_inset Flex Code
29462 status collapsed
29463
29464 \begin_layout Plain Layout
29465 .tgo
29466 \end_layout
29467
29468 \end_inset
29469
29470 ), use something like 
29471 \begin_inset Flex Code
29472 status collapsed
29473
29474 \begin_layout Plain Layout
29475 "*.{obj,tgo}"
29476 \end_layout
29477
29478 \end_inset
29479
29480 .
29481  This command must occur exactly once.
29482 \end_layout
29483
29484 \begin_layout Description
29485 \begin_inset Flex Code
29486 status collapsed
29487
29488 \begin_layout Plain Layout
29489 GuiName
29490 \begin_inset space ~
29491 \end_inset
29492
29493 <guiname>
29494 \end_layout
29495
29496 \end_inset
29497
29498  The text that is displayed on the button.
29499  This command must occur exactly once.
29500 \end_layout
29501
29502 \begin_layout Description
29503 \begin_inset Flex Code
29504 status collapsed
29505
29506 \begin_layout Plain Layout
29507 HelpText
29508 \begin_inset space ~
29509 \end_inset
29510
29511 <text>
29512 \begin_inset space ~
29513 \end_inset
29514
29515 HelpTextEnd
29516 \end_layout
29517
29518 \end_inset
29519
29520  The help text that is used in the External dialog.
29521  Provide enough information to explain to the user just what the template
29522  can provide him with.
29523  This command must occur exactly once.
29524 \end_layout
29525
29526 \begin_layout Description
29527 \begin_inset Flex Code
29528 status collapsed
29529
29530 \begin_layout Plain Layout
29531 InputFormat
29532 \begin_inset space ~
29533 \end_inset
29534
29535 <format>
29536 \end_layout
29537
29538 \end_inset
29539
29540  The file format of the original file.
29541  This must be the name of a format that is known to \SpecialChar LyX
29542  (see 
29543 \begin_inset CommandInset ref
29544 LatexCommand ref
29545 reference "sec:Formats"
29546
29547 \end_inset
29548
29549 ).
29550  Use 
29551 \begin_inset Quotes eld
29552 \end_inset
29553
29554
29555 \begin_inset Flex Code
29556 status collapsed
29557
29558 \begin_layout Plain Layout
29559 *
29560 \end_layout
29561
29562 \end_inset
29563
29564
29565 \begin_inset Quotes erd
29566 \end_inset
29567
29568  if the template can handle original files of more than one format.
29569  \SpecialChar LyX
29570  will attempt to interrogate the file itself in order to deduce its format
29571  in this case.
29572  This command must occur exactly once.
29573 \end_layout
29574
29575 \begin_layout Description
29576 \begin_inset Flex Code
29577 status collapsed
29578
29579 \begin_layout Plain Layout
29580 Template
29581 \begin_inset space ~
29582 \end_inset
29583
29584 <id>
29585 \end_layout
29586
29587 \end_inset
29588
29589  A unique name for the template.
29590  It must not contain substitution macros (see below).
29591 \end_layout
29592
29593 \begin_layout Description
29594 \begin_inset Flex Code
29595 status collapsed
29596
29597 \begin_layout Plain Layout
29598 Transform
29599 \begin_inset space ~
29600 \end_inset
29601
29602 Rotate|Resize|Clip|Extra
29603 \end_layout
29604
29605 \end_inset
29606
29607  This command specifies which transformations are supported by this template.
29608  It may occur zero or more times.
29609  This command enables the corresponding tabs in the external dialog.
29610  Each 
29611 \begin_inset Flex Code
29612 status collapsed
29613
29614 \begin_layout Plain Layout
29615 Transform
29616 \end_layout
29617
29618 \end_inset
29619
29620  command must have either a corresponding 
29621 \begin_inset Flex Code
29622 status collapsed
29623
29624 \begin_layout Plain Layout
29625 TransformCommand
29626 \end_layout
29627
29628 \end_inset
29629
29630  or a 
29631 \begin_inset Flex Code
29632 status collapsed
29633
29634 \begin_layout Plain Layout
29635 TransformOption
29636 \end_layout
29637
29638 \end_inset
29639
29640  command in the 
29641 \begin_inset Flex Code
29642 status collapsed
29643
29644 \begin_layout Plain Layout
29645 Format
29646 \end_layout
29647
29648 \end_inset
29649
29650  section.
29651  Otherwise the transformation will not be supported by that format.
29652 \end_layout
29653
29654 \begin_layout Subsection
29655 The Format section
29656 \end_layout
29657
29658 \begin_layout Description
29659 \begin_inset Flex Code
29660 status collapsed
29661
29662 \begin_layout Plain Layout
29663 Format
29664 \begin_inset space ~
29665 \end_inset
29666
29667 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
29668 \end_layout
29669
29670 \end_inset
29671
29672  The primary document file format that this format definition is for.
29673  Not every template has a sensible representation in all document file formats.
29674  Please define nevertheless a 
29675 \begin_inset Flex Code
29676 status collapsed
29677
29678 \begin_layout Plain Layout
29679 Format
29680 \end_layout
29681
29682 \end_inset
29683
29684  section for all templates.
29685  Use a dummy text when no representation is available.
29686  Then you can at least see a reference to the external material in the exported
29687  document.
29688 \end_layout
29689
29690 \begin_layout Description
29691 \begin_inset Flex Code
29692 status collapsed
29693
29694 \begin_layout Plain Layout
29695 Option
29696 \begin_inset space ~
29697 \end_inset
29698
29699 <name>
29700 \begin_inset space ~
29701 \end_inset
29702
29703 <value>
29704 \end_layout
29705
29706 \end_inset
29707
29708  This command defines an additional macro 
29709 \begin_inset Flex Code
29710 status collapsed
29711
29712 \begin_layout Plain Layout
29713 $$<name>
29714 \end_layout
29715
29716 \end_inset
29717
29718  for substitution in 
29719 \begin_inset Flex Code
29720 status collapsed
29721
29722 \begin_layout Plain Layout
29723 Product
29724 \end_layout
29725
29726 \end_inset
29727
29728 .
29729  
29730 \begin_inset Flex Code
29731 status collapsed
29732
29733 \begin_layout Plain Layout
29734 <value>
29735 \end_layout
29736
29737 \end_inset
29738
29739  itself may contain substitution macros.
29740  The advantage over using 
29741 \begin_inset Flex Code
29742 status collapsed
29743
29744 \begin_layout Plain Layout
29745 <value>
29746 \end_layout
29747
29748 \end_inset
29749
29750  directly in 
29751 \begin_inset Flex Code
29752 status collapsed
29753
29754 \begin_layout Plain Layout
29755 Product
29756 \end_layout
29757
29758 \end_inset
29759
29760  is that the substituted value of 
29761 \begin_inset Flex Code
29762 status collapsed
29763
29764 \begin_layout Plain Layout
29765 $$<name>
29766 \end_layout
29767
29768 \end_inset
29769
29770  is sanitized so that it is a valid optional argument in the document format.
29771  This command may occur zero or more times.
29772 \end_layout
29773
29774 \begin_layout Description
29775 \begin_inset Flex Code
29776 status collapsed
29777
29778 \begin_layout Plain Layout
29779 Product
29780 \begin_inset space ~
29781 \end_inset
29782
29783 <text>
29784 \end_layout
29785
29786 \end_inset
29787
29788  The text that is inserted in the exported document.
29789  This is actually the most important command and can be quite complex.
29790  This command must occur exactly once.
29791 \end_layout
29792
29793 \begin_layout Description
29794 \begin_inset Flex Code
29795 status collapsed
29796
29797 \begin_layout Plain Layout
29798 Preamble
29799 \begin_inset space ~
29800 \end_inset
29801
29802 <name>
29803 \end_layout
29804
29805 \end_inset
29806
29807  This command specifies a preamble snippet that will be included in the
29808  \SpecialChar LaTeX
29809  preamble.
29810  It has to be defined using 
29811 \begin_inset Flex Code
29812 status collapsed
29813
29814 \begin_layout Plain Layout
29815 PreambleDef
29816 \end_layout
29817
29818 \end_inset
29819
29820  \SpecialChar ldots
29821  
29822 \begin_inset Flex Code
29823 status collapsed
29824
29825 \begin_layout Plain Layout
29826 PreambleDefEnd
29827 \end_layout
29828
29829 \end_inset
29830
29831 .
29832  This command may occur zero or more times.
29833 \end_layout
29834
29835 \begin_layout Description
29836 \begin_inset Flex Code
29837 status collapsed
29838
29839 \begin_layout Plain Layout
29840 ReferencedFile
29841 \begin_inset space ~
29842 \end_inset
29843
29844 <format>
29845 \begin_inset space ~
29846 \end_inset
29847
29848 <filename>
29849 \end_layout
29850
29851 \end_inset
29852
29853  This command denotes files that are created by the conversion process and
29854  are needed for a particular export format.
29855  If the filename is relative, it is interpreted relative to the master document.
29856  This command may be given zero or more times.
29857 \end_layout
29858
29859 \begin_layout Description
29860 \begin_inset Flex Code
29861 status collapsed
29862
29863 \begin_layout Plain Layout
29864 Requirement
29865 \begin_inset space ~
29866 \end_inset
29867
29868 <package>
29869 \end_layout
29870
29871 \end_inset
29872
29873  The name of a required \SpecialChar LaTeX
29874  package.
29875  The package is included via 
29876 \begin_inset Flex Code
29877 status collapsed
29878
29879 \begin_layout Plain Layout
29880
29881 \backslash
29882 usepackage{}
29883 \end_layout
29884
29885 \end_inset
29886
29887  in the \SpecialChar LaTeX
29888  preamble.
29889  This command may occur zero or more times.
29890 \end_layout
29891
29892 \begin_layout Description
29893 \begin_inset Flex Code
29894 status collapsed
29895
29896 \begin_layout Plain Layout
29897 TransformCommand
29898 \begin_inset space ~
29899 \end_inset
29900
29901 Rotate
29902 \begin_inset space ~
29903 \end_inset
29904
29905 RotationLatexCommand
29906 \end_layout
29907
29908 \end_inset
29909
29910  This command specifies that the built in \SpecialChar LaTeX
29911  command should be used for rotation.
29912  This command may occur once or not at all.
29913 \end_layout
29914
29915 \begin_layout Description
29916 \begin_inset Flex Code
29917 status collapsed
29918
29919 \begin_layout Plain Layout
29920 TransformCommand
29921 \begin_inset space ~
29922 \end_inset
29923
29924 Resize
29925 \begin_inset space ~
29926 \end_inset
29927
29928 ResizeLatexCommand
29929 \end_layout
29930
29931 \end_inset
29932
29933  This command specifies that the built in \SpecialChar LaTeX
29934  command should be used for resizing.
29935  This command may occur once or not at all.
29936 \end_layout
29937
29938 \begin_layout Description
29939 \begin_inset Flex Code
29940 status collapsed
29941
29942 \begin_layout Plain Layout
29943 TransformOption
29944 \begin_inset space ~
29945 \end_inset
29946
29947 Rotate
29948 \begin_inset space ~
29949 \end_inset
29950
29951 RotationLatexOption
29952 \end_layout
29953
29954 \end_inset
29955
29956  This command specifies that rotation is done via an optional argument.
29957  This command may occur once or not at all.
29958 \end_layout
29959
29960 \begin_layout Description
29961 \begin_inset Flex Code
29962 status collapsed
29963
29964 \begin_layout Plain Layout
29965 TransformOption
29966 \begin_inset space ~
29967 \end_inset
29968
29969 Resize
29970 \begin_inset space ~
29971 \end_inset
29972
29973 ResizeLatexOption
29974 \end_layout
29975
29976 \end_inset
29977
29978  This command specifies that resizing is done via an optional argument.
29979  This command may occur once or not at all.
29980 \end_layout
29981
29982 \begin_layout Description
29983 \begin_inset Flex Code
29984 status collapsed
29985
29986 \begin_layout Plain Layout
29987 TransformOption
29988 \begin_inset space ~
29989 \end_inset
29990
29991 Clip
29992 \begin_inset space ~
29993 \end_inset
29994
29995 ClipLatexOption
29996 \end_layout
29997
29998 \end_inset
29999
30000  This command specifies that clipping is done via an optional argument.
30001  This command may occur once or not at all.
30002 \end_layout
30003
30004 \begin_layout Description
30005 \begin_inset Flex Code
30006 status collapsed
30007
30008 \begin_layout Plain Layout
30009 TransformOption
30010 \begin_inset space ~
30011 \end_inset
30012
30013 Extra
30014 \begin_inset space ~
30015 \end_inset
30016
30017 ExtraLatexOption
30018 \end_layout
30019
30020 \end_inset
30021
30022  This command specifies that an extra optional argument is used.
30023  This command may occur once or not at all.
30024 \end_layout
30025
30026 \begin_layout Description
30027 \begin_inset Flex Code
30028 status collapsed
30029
30030 \begin_layout Plain Layout
30031 UpdateFormat
30032 \begin_inset space ~
30033 \end_inset
30034
30035 <format>
30036 \end_layout
30037
30038 \end_inset
30039
30040  The file format of the converted file.
30041  This must be the name of a format that is known to \SpecialChar LyX
30042  (see the 
30043 \begin_inset Flex Noun
30044 status collapsed
30045
30046 \begin_layout Plain Layout
30047 Tools\SpecialChar menuseparator
30048 Preferences\SpecialChar menuseparator
30049 File Handling\SpecialChar menuseparator
30050 File Format
30051 \end_layout
30052
30053 \end_inset
30054
30055  dialog).
30056  This command must occur exactly once.
30057  If the resulting file format is PDF, you need to specify the format 
30058 \begin_inset Flex Code
30059 status collapsed
30060
30061 \begin_layout Plain Layout
30062 pdf6
30063 \end_layout
30064
30065 \end_inset
30066
30067 .
30068  This is the PDF format used for including graphics.
30069  The other defined PDF formats are for document export.
30070 \end_layout
30071
30072 \begin_layout Description
30073 \begin_inset Flex Code
30074 status collapsed
30075
30076 \begin_layout Plain Layout
30077 UpdateResult
30078 \begin_inset space ~
30079 \end_inset
30080
30081 <filename>
30082 \end_layout
30083
30084 \end_inset
30085
30086  The file name of the converted file.
30087  The file name must be absolute.
30088  This command must occur exactly once.
30089 \end_layout
30090
30091 \begin_layout Subsection
30092 Preamble definitions
30093 \end_layout
30094
30095 \begin_layout Standard
30096 The external template configuration file may contain additional preamble
30097  definitions enclosed by 
30098 \begin_inset Flex Code
30099 status collapsed
30100
30101 \begin_layout Plain Layout
30102 PreambleDef
30103 \end_layout
30104
30105 \end_inset
30106
30107  \SpecialChar ldots
30108  
30109 \begin_inset Flex Code
30110 status collapsed
30111
30112 \begin_layout Plain Layout
30113 PreambleDefEnd
30114 \end_layout
30115
30116 \end_inset
30117
30118 .
30119  They can be used by the templates in the 
30120 \begin_inset Flex Code
30121 status collapsed
30122
30123 \begin_layout Plain Layout
30124 Format
30125 \end_layout
30126
30127 \end_inset
30128
30129  section.
30130 \end_layout
30131
30132 \begin_layout Section
30133 The substitution mechanism
30134 \end_layout
30135
30136 \begin_layout Standard
30137 When the external material facility invokes an external program, it is done
30138  on the basis of a command defined in the template configuration file.
30139  These commands can contain various macros that are expanded before execution.
30140  Execution always take place in the directory of the containing document.
30141 \end_layout
30142
30143 \begin_layout Standard
30144 Also, whenever external material is to be displayed, the name will be produced
30145  by the substitution mechanism, and most other commands in the template
30146  definition support substitution as well.
30147 \end_layout
30148
30149 \begin_layout Standard
30150 The available macros are the following:
30151 \end_layout
30152
30153 \begin_layout Description
30154 \begin_inset Flex Code
30155 status collapsed
30156
30157 \begin_layout Plain Layout
30158 $$AbsOrRelPathMaster
30159 \end_layout
30160
30161 \end_inset
30162
30163  The file path, absolute or relative to the master \SpecialChar LyX
30164  document.
30165 \end_layout
30166
30167 \begin_layout Description
30168 \begin_inset Flex Code
30169 status collapsed
30170
30171 \begin_layout Plain Layout
30172 $$AbsOrRelPathParent
30173 \end_layout
30174
30175 \end_inset
30176
30177  The file path, absolute or relative to the \SpecialChar LyX
30178  document.
30179 \end_layout
30180
30181 \begin_layout Description
30182 \begin_inset Flex Code
30183 status collapsed
30184
30185 \begin_layout Plain Layout
30186 $$AbsPath
30187 \end_layout
30188
30189 \end_inset
30190
30191  The absolute file path.
30192 \end_layout
30193
30194 \begin_layout Description
30195 \begin_inset Flex Code
30196 status collapsed
30197
30198 \begin_layout Plain Layout
30199 $$Basename
30200 \end_layout
30201
30202 \end_inset
30203
30204  The filename without path and without the extension.
30205 \end_layout
30206
30207 \begin_layout Description
30208 \begin_inset Flex Code
30209 status collapsed
30210
30211 \begin_layout Plain Layout
30212 $$Contents(
30213 \begin_inset Quotes eld
30214 \end_inset
30215
30216 filename.ext
30217 \begin_inset Quotes erd
30218 \end_inset
30219
30220 )
30221 \end_layout
30222
30223 \end_inset
30224
30225  This macro will expand to the contents of the file with the name 
30226 \begin_inset Flex Code
30227 status collapsed
30228
30229 \begin_layout Plain Layout
30230 filename.ext
30231 \end_layout
30232
30233 \end_inset
30234
30235 .
30236 \end_layout
30237
30238 \begin_layout Description
30239 \begin_inset Flex Code
30240 status collapsed
30241
30242 \begin_layout Plain Layout
30243 $$Extension
30244 \end_layout
30245
30246 \end_inset
30247
30248  The file extension (including the dot).
30249 \end_layout
30250
30251 \begin_layout Description
30252 \begin_inset Flex Code
30253 status collapsed
30254
30255 \begin_layout Plain Layout
30256 $$pngOrjpg
30257 \end_layout
30258
30259 \end_inset
30260
30261  This will be the string 
30262 \begin_inset Quotes eld
30263 \end_inset
30264
30265 jpg
30266 \begin_inset Quotes erd
30267 \end_inset
30268
30269  if the file is in JPEG format, otherwise it will be the string 
30270 \begin_inset Quotes eld
30271 \end_inset
30272
30273 png
30274 \begin_inset Quotes erd
30275 \end_inset
30276
30277 .
30278  This is useful to avoid uneeded conversions for output formats that support
30279  both PNG and JPEG fomats.
30280  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
30281  output
30282  format.
30283 \end_layout
30284
30285 \begin_layout Description
30286 \begin_inset Flex Code
30287 status collapsed
30288
30289 \begin_layout Plain Layout
30290 $$FName
30291 \end_layout
30292
30293 \end_inset
30294
30295  The filename of the file specified in the external material dialog.
30296  This is either an absolute name, or it is relative to the \SpecialChar LyX
30297  document.
30298 \end_layout
30299
30300 \begin_layout Description
30301 \begin_inset Flex Code
30302 status collapsed
30303
30304 \begin_layout Plain Layout
30305 $$FPath
30306 \end_layout
30307
30308 \end_inset
30309
30310  The path part of 
30311 \begin_inset Flex Code
30312 status collapsed
30313
30314 \begin_layout Plain Layout
30315 $$FName
30316 \end_layout
30317
30318 \end_inset
30319
30320  (absolute name or relative to the \SpecialChar LyX
30321  document).
30322 \end_layout
30323
30324 \begin_layout Description
30325 \begin_inset Flex Code
30326 status collapsed
30327
30328 \begin_layout Plain Layout
30329 $$RelPathMaster
30330 \end_layout
30331
30332 \end_inset
30333
30334  The file path, relative to the master \SpecialChar LyX
30335  document.
30336 \end_layout
30337
30338 \begin_layout Description
30339 \begin_inset Flex Code
30340 status collapsed
30341
30342 \begin_layout Plain Layout
30343 $$RelPathParent
30344 \end_layout
30345
30346 \end_inset
30347
30348  The file path, relative to the \SpecialChar LyX
30349  document.
30350 \end_layout
30351
30352 \begin_layout Description
30353 \begin_inset Flex Code
30354 status collapsed
30355
30356 \begin_layout Plain Layout
30357 $$Sysdir
30358 \end_layout
30359
30360 \end_inset
30361
30362  This macro will expand to the absolute path of the system directory.
30363  This is typically used to point to the various helper scripts that are
30364  bundled with \SpecialChar LyX
30365 .
30366 \end_layout
30367
30368 \begin_layout Description
30369 \begin_inset Flex Code
30370 status collapsed
30371
30372 \begin_layout Plain Layout
30373 $$Tempname
30374 \end_layout
30375
30376 \end_inset
30377
30378  A name and full path to a temporary file which will be automatically deleted
30379  whenever the containing document is closed, or the external material insertion
30380  deleted.
30381 \end_layout
30382
30383 \begin_layout Standard
30384 All path macros contain a trailing directory separator, so you can construct
30385  e.
30386 \begin_inset space \thinspace{}
30387 \end_inset
30388
30389 g.
30390 \begin_inset space \space{}
30391 \end_inset
30392
30393 the absolute filename with 
30394 \begin_inset Flex Code
30395 status collapsed
30396
30397 \begin_layout Plain Layout
30398 $$AbsPath$$Basename$$Extension
30399 \end_layout
30400
30401 \end_inset
30402
30403 .
30404 \end_layout
30405
30406 \begin_layout Standard
30407 The macros above are substituted in all commands unless otherwise noted.
30408  The command 
30409 \begin_inset Flex Code
30410 status collapsed
30411
30412 \begin_layout Plain Layout
30413 Product
30414 \end_layout
30415
30416 \end_inset
30417
30418  supports additionally the following substitutions if they are enabled by
30419  the 
30420 \begin_inset Flex Code
30421 status collapsed
30422
30423 \begin_layout Plain Layout
30424 Transform
30425 \end_layout
30426
30427 \end_inset
30428
30429  and 
30430 \begin_inset Flex Code
30431 status collapsed
30432
30433 \begin_layout Plain Layout
30434 TransformCommand
30435 \end_layout
30436
30437 \end_inset
30438
30439  commands:
30440 \end_layout
30441
30442 \begin_layout Description
30443 \begin_inset Flex Code
30444 status collapsed
30445
30446 \begin_layout Plain Layout
30447 $$ResizeFront
30448 \end_layout
30449
30450 \end_inset
30451
30452  The front part of the resize command.
30453 \end_layout
30454
30455 \begin_layout Description
30456 \begin_inset Flex Code
30457 status collapsed
30458
30459 \begin_layout Plain Layout
30460 $$ResizeBack
30461 \end_layout
30462
30463 \end_inset
30464
30465  The back part of the resize command.
30466 \end_layout
30467
30468 \begin_layout Description
30469 \begin_inset Flex Code
30470 status collapsed
30471
30472 \begin_layout Plain Layout
30473 $$RotateFront
30474 \end_layout
30475
30476 \end_inset
30477
30478  The front part of the rotation command.
30479 \end_layout
30480
30481 \begin_layout Description
30482 \begin_inset Flex Code
30483 status collapsed
30484
30485 \begin_layout Plain Layout
30486 $$RotateBack
30487 \end_layout
30488
30489 \end_inset
30490
30491  The back part of the rotation command.
30492 \end_layout
30493
30494 \begin_layout Standard
30495 The value string of the 
30496 \begin_inset Flex Code
30497 status collapsed
30498
30499 \begin_layout Plain Layout
30500 Option
30501 \end_layout
30502
30503 \end_inset
30504
30505  command supports additionally the following substitutions if they are enabled
30506  by the 
30507 \begin_inset Flex Code
30508 status collapsed
30509
30510 \begin_layout Plain Layout
30511 Transform
30512 \end_layout
30513
30514 \end_inset
30515
30516  and 
30517 \begin_inset Flex Code
30518 status collapsed
30519
30520 \begin_layout Plain Layout
30521 TransformOption
30522 \end_layout
30523
30524 \end_inset
30525
30526  commands:
30527 \end_layout
30528
30529 \begin_layout Description
30530 \begin_inset Flex Code
30531 status collapsed
30532
30533 \begin_layout Plain Layout
30534 $$Clip
30535 \end_layout
30536
30537 \end_inset
30538
30539  The clip option.
30540 \end_layout
30541
30542 \begin_layout Description
30543 \begin_inset Flex Code
30544 status collapsed
30545
30546 \begin_layout Plain Layout
30547 $$Extra
30548 \end_layout
30549
30550 \end_inset
30551
30552  The extra option.
30553 \end_layout
30554
30555 \begin_layout Description
30556 \begin_inset Flex Code
30557 status collapsed
30558
30559 \begin_layout Plain Layout
30560 $$Resize
30561 \end_layout
30562
30563 \end_inset
30564
30565  The resize option.
30566 \end_layout
30567
30568 \begin_layout Description
30569 \begin_inset Flex Code
30570 status collapsed
30571
30572 \begin_layout Plain Layout
30573 $$Rotate
30574 \end_layout
30575
30576 \end_inset
30577
30578  The rotation option.
30579 \end_layout
30580
30581 \begin_layout Standard
30582 You may ask why there are so many path macros.
30583  There are mainly two reasons:
30584 \end_layout
30585
30586 \begin_layout Enumerate
30587 Relative and absolute file names should remain relative or absolute, respectivel
30588 y.
30589  Users may have reasons to prefer either form.
30590  Relative names are useful for portable documents that should work on different
30591  machines, for example.
30592  Absolute names may be required by some programs.
30593 \end_layout
30594
30595 \begin_layout Enumerate
30596 \SpecialChar LaTeX
30597  treats relative file names differently than \SpecialChar LyX
30598  and other programs in nested
30599  included files.
30600  For \SpecialChar LyX
30601 , a relative file name is always relative to the document that contains
30602  the file name.
30603  For \SpecialChar LaTeX
30604 , it is always relative to the master document.
30605  These two definitions are identical if you have only one document, but
30606  differ if you have a master document that includes part documents.
30607  That means that relative filenames must be transformed when presented to
30608  \SpecialChar LaTeX
30609 .
30610  Fortunately \SpecialChar LyX
30611  does this automatically for you if you choose the right macros.
30612 \end_layout
30613
30614 \begin_layout Standard
30615 So which path macro should be used in new template definitions? The rule
30616  is not difficult:
30617 \end_layout
30618
30619 \begin_layout Itemize
30620 Use 
30621 \begin_inset Flex Code
30622 status collapsed
30623
30624 \begin_layout Plain Layout
30625 $$AbsPath
30626 \end_layout
30627
30628 \end_inset
30629
30630  if an absolute path is required.
30631 \end_layout
30632
30633 \begin_layout Itemize
30634 Use 
30635 \begin_inset Flex Code
30636 status collapsed
30637
30638 \begin_layout Plain Layout
30639 $$AbsOrRelPathMaster
30640 \end_layout
30641
30642 \end_inset
30643
30644  if the substituted string is some kind of \SpecialChar LaTeX
30645  input.
30646 \end_layout
30647
30648 \begin_layout Itemize
30649 Else use 
30650 \begin_inset Flex Code
30651 status collapsed
30652
30653 \begin_layout Plain Layout
30654 $$AbsOrRelPathParent
30655 \end_layout
30656
30657 \end_inset
30658
30659  in order to preserve the user's choice.
30660 \end_layout
30661
30662 \begin_layout Standard
30663 There are special cases where this rule does not work and e.
30664 \begin_inset space \thinspace{}
30665 \end_inset
30666
30667 g.
30668 \begin_inset space \space{}
30669 \end_inset
30670
30671 relative names are needed, but normally it will work just fine.
30672  One example for such a case is the command 
30673 \begin_inset Flex Code
30674 status collapsed
30675
30676 \begin_layout Plain Layout
30677 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
30678 \end_layout
30679
30680 \end_inset
30681
30682  in the XFig template above: We can't use the absolute name because the
30683  copier for 
30684 \begin_inset Flex Code
30685 status collapsed
30686
30687 \begin_layout Plain Layout
30688 .pstex_t
30689 \end_layout
30690
30691 \end_inset
30692
30693  files needs the relative name in order to rewrite the file content.
30694 \end_layout
30695
30696 \begin_layout Section
30697 Security discussion
30698 \begin_inset CommandInset label
30699 LatexCommand label
30700 name "sec:Security-discussion"
30701
30702 \end_inset
30703
30704
30705 \end_layout
30706
30707 \begin_layout Standard
30708 The external material feature interfaces with a lot of external programs
30709  and does so automatically, so we have to consider the security implications
30710  of this.
30711  In particular, since you have the option of including your own filenames
30712  and/or parameter strings and those are expanded into a command, it seems
30713  that it would be possible to create a malicious document which executes
30714  arbitrary commands when a user views or prints the document.
30715  This is something we definitely want to avoid.
30716 \end_layout
30717
30718 \begin_layout Standard
30719 However, since the external program commands are specified in the template
30720  configuration file only, there are no security issues if \SpecialChar LyX
30721  is properly configure
30722 d with safe templates only.
30723  This is so because the external programs are invoked with the 
30724 \begin_inset Flex Code
30725 status collapsed
30726
30727 \begin_layout Plain Layout
30728 execvp
30729 \end_layout
30730
30731 \end_inset
30732
30733 -system call rather than the 
30734 \begin_inset Flex Code
30735 status collapsed
30736
30737 \begin_layout Plain Layout
30738 system
30739 \end_layout
30740
30741 \end_inset
30742
30743  system-call, so it's not possible to execute arbitrary commands from the
30744  filename or parameter section via the shell.
30745 \end_layout
30746
30747 \begin_layout Standard
30748 This also implies that you are restricted in what command strings you can
30749  use in the external material templates.
30750  In particular, pipes and redirection are not readily available.
30751  This has to be so if \SpecialChar LyX
30752  should remain safe.
30753  If you want to use some of the shell features, you should write a safe
30754  script to do this in a controlled manner, and then invoke the script from
30755  the command string.
30756  
30757 \end_layout
30758
30759 \begin_layout Standard
30760 It is possible to design a template that interacts directly with the shell,
30761  but since this would allow a malicious user to execute arbitrary commands
30762  by writing clever filenames and/or parameters, we generally recommend that
30763  you only use safe scripts that work with the 
30764 \begin_inset Flex Code
30765 status collapsed
30766
30767 \begin_layout Plain Layout
30768 execvp
30769 \end_layout
30770
30771 \end_inset
30772
30773  system call in a controlled manner.
30774  Of course, for use in a controlled environment, it can be tempting to just
30775  fall back to use ordinary shell scripts.
30776  If you do so, be aware that you 
30777 \emph on
30778 will
30779 \emph default
30780  provide an easily exploitable security hole in your system.
30781  Of course it stands to reason that such unsafe templates will never be
30782  included in the standard \SpecialChar LyX
30783  distribution, although we do encourage people
30784  to submit new templates in the open source tradition.
30785  But \SpecialChar LyX
30786  as shipped from the official distribution channels will never have
30787  unsafe templates.
30788 \end_layout
30789
30790 \begin_layout Standard
30791 Including external material provides a lot of power, and you have to be
30792  careful not to introduce security hazards with this power.
30793  A subtle error in a single line in an innocent looking script can open
30794  the door to huge security problems.
30795  So if you do not fully understand the issues, we recommend that you consult
30796  a knowledgeable security professional or the \SpecialChar LyX
30797  development team if you have
30798  any questions about whether a given template is safe or not.
30799  And do this before you use it in an uncontrolled environment.
30800 \end_layout
30801
30802 \begin_layout Chapter
30803 \start_of_appendix
30804 List of supported \SpecialChar LyX
30805  functions to be used in layouts
30806 \begin_inset CommandInset label
30807 LatexCommand label
30808 name "chap:List-of-functions"
30809
30810 \end_inset
30811
30812
30813 \end_layout
30814
30815 \begin_layout Standard
30816 \align center
30817 \begin_inset Tabular
30818 <lyxtabular version="3" rows="11" columns="8">
30819 <features tabularvalignment="middle">
30820 <column alignment="left" valignment="top">
30821 <column alignment="left" valignment="top">
30822 <column alignment="left" valignment="top">
30823 <column alignment="left" valignment="top">
30824 <column alignment="left" valignment="top">
30825 <column alignment="left" valignment="top">
30826 <column alignment="left" valignment="top">
30827 <column alignment="left" valignment="top">
30828 <row>
30829 <cell alignment="left" valignment="top" usebox="none">
30830 \begin_inset Text
30831
30832 \begin_layout Plain Layout
30833 accents
30834 \end_layout
30835
30836 \end_inset
30837 </cell>
30838 <cell alignment="left" valignment="top" usebox="none">
30839 \begin_inset Text
30840
30841 \begin_layout Plain Layout
30842 booktabs
30843 \end_layout
30844
30845 \end_inset
30846 </cell>
30847 <cell alignment="left" valignment="top" usebox="none">
30848 \begin_inset Text
30849
30850 \begin_layout Plain Layout
30851 feyn
30852 \end_layout
30853
30854 \end_inset
30855 </cell>
30856 <cell alignment="left" valignment="top" usebox="none">
30857 \begin_inset Text
30858
30859 \begin_layout Plain Layout
30860 listings
30861 \end_layout
30862
30863 \end_inset
30864 </cell>
30865 <cell alignment="center" valignment="top" usebox="none">
30866 \begin_inset Text
30867
30868 \begin_layout Plain Layout
30869 natbib
30870 \end_layout
30871
30872 \end_inset
30873 </cell>
30874 <cell alignment="center" valignment="top" usebox="none">
30875 \begin_inset Text
30876
30877 \begin_layout Plain Layout
30878 rotfloat
30879 \end_layout
30880
30881 \end_inset
30882 </cell>
30883 <cell alignment="center" valignment="top" usebox="none">
30884 \begin_inset Text
30885
30886 \begin_layout Plain Layout
30887 tfrupee
30888 \end_layout
30889
30890 \end_inset
30891 </cell>
30892 <cell alignment="center" valignment="top" usebox="none">
30893 \begin_inset Text
30894
30895 \begin_layout Plain Layout
30896 wasysym
30897 \end_layout
30898
30899 \end_inset
30900 </cell>
30901 </row>
30902 <row>
30903 <cell alignment="left" valignment="top" usebox="none">
30904 \begin_inset Text
30905
30906 \begin_layout Plain Layout
30907 amsbsy
30908 \end_layout
30909
30910 \end_inset
30911 </cell>
30912 <cell alignment="left" valignment="top" usebox="none">
30913 \begin_inset Text
30914
30915 \begin_layout Plain Layout
30916 calc
30917 \end_layout
30918
30919 \end_inset
30920 </cell>
30921 <cell alignment="left" valignment="top" usebox="none">
30922 \begin_inset Text
30923
30924 \begin_layout Plain Layout
30925 fixltx2e
30926 \end_layout
30927
30928 \end_inset
30929 </cell>
30930 <cell alignment="left" valignment="top" usebox="none">
30931 \begin_inset Text
30932
30933 \begin_layout Plain Layout
30934 longtable
30935 \end_layout
30936
30937 \end_inset
30938 </cell>
30939 <cell alignment="center" valignment="top" usebox="none">
30940 \begin_inset Text
30941
30942 \begin_layout Plain Layout
30943 nomencl
30944 \end_layout
30945
30946 \end_inset
30947 </cell>
30948 <cell alignment="center" valignment="top" usebox="none">
30949 \begin_inset Text
30950
30951 \begin_layout Plain Layout
30952 rsphrase
30953 \end_layout
30954
30955 \end_inset
30956 </cell>
30957 <cell alignment="center" valignment="top" usebox="none">
30958 \begin_inset Text
30959
30960 \begin_layout Plain Layout
30961 tipa
30962 \end_layout
30963
30964 \end_inset
30965 </cell>
30966 <cell alignment="center" valignment="top" usebox="none">
30967 \begin_inset Text
30968
30969 \begin_layout Plain Layout
30970 wrapfig
30971 \end_layout
30972
30973 \end_inset
30974 </cell>
30975 </row>
30976 <row>
30977 <cell alignment="left" valignment="top" usebox="none">
30978 \begin_inset Text
30979
30980 \begin_layout Plain Layout
30981 amscd
30982 \end_layout
30983
30984 \end_inset
30985 </cell>
30986 <cell alignment="left" valignment="top" usebox="none">
30987 \begin_inset Text
30988
30989 \begin_layout Plain Layout
30990 CJK
30991 \end_layout
30992
30993 \end_inset
30994 </cell>
30995 <cell alignment="left" valignment="top" usebox="none">
30996 \begin_inset Text
30997
30998 \begin_layout Plain Layout
30999 float
31000 \end_layout
31001
31002 \end_inset
31003 </cell>
31004 <cell alignment="left" valignment="top" usebox="none">
31005 \begin_inset Text
31006
31007 \begin_layout Plain Layout
31008 lyxskak
31009 \end_layout
31010
31011 \end_inset
31012 </cell>
31013 <cell alignment="center" valignment="top" usebox="none">
31014 \begin_inset Text
31015
31016 \begin_layout Plain Layout
31017 pdfcolmk
31018 \end_layout
31019
31020 \end_inset
31021 </cell>
31022 <cell alignment="center" valignment="top" usebox="none">
31023 \begin_inset Text
31024
31025 \begin_layout Plain Layout
31026 setspace
31027 \end_layout
31028
31029 \end_inset
31030 </cell>
31031 <cell alignment="center" valignment="top" usebox="none">
31032 \begin_inset Text
31033
31034 \begin_layout Plain Layout
31035 tipx
31036 \end_layout
31037
31038 \end_inset
31039 </cell>
31040 <cell alignment="center" valignment="top" usebox="none">
31041 \begin_inset Text
31042
31043 \begin_layout Plain Layout
31044 xargs
31045 \end_layout
31046
31047 \end_inset
31048 </cell>
31049 </row>
31050 <row>
31051 <cell alignment="left" valignment="top" usebox="none">
31052 \begin_inset Text
31053
31054 \begin_layout Plain Layout
31055 amsmath
31056 \end_layout
31057
31058 \end_inset
31059 </cell>
31060 <cell alignment="left" valignment="top" usebox="none">
31061 \begin_inset Text
31062
31063 \begin_layout Plain Layout
31064 color
31065 \end_layout
31066
31067 \end_inset
31068 </cell>
31069 <cell alignment="left" valignment="top" usebox="none">
31070 \begin_inset Text
31071
31072 \begin_layout Plain Layout
31073 framed
31074 \end_layout
31075
31076 \end_inset
31077 </cell>
31078 <cell alignment="left" valignment="top" usebox="none">
31079 \begin_inset Text
31080
31081 \begin_layout Plain Layout
31082 makeidx
31083 \end_layout
31084
31085 \end_inset
31086 </cell>
31087 <cell alignment="center" valignment="top" usebox="none">
31088 \begin_inset Text
31089
31090 \begin_layout Plain Layout
31091 pdfpages
31092 \end_layout
31093
31094 \end_inset
31095 </cell>
31096 <cell alignment="center" valignment="top" usebox="none">
31097 \begin_inset Text
31098
31099 \begin_layout Plain Layout
31100 shapepar
31101 \end_layout
31102
31103 \end_inset
31104 </cell>
31105 <cell alignment="center" valignment="top" usebox="none">
31106 \begin_inset Text
31107
31108 \begin_layout Plain Layout
31109 tone
31110 \end_layout
31111
31112 \end_inset
31113 </cell>
31114 <cell alignment="center" valignment="top" usebox="none">
31115 \begin_inset Text
31116
31117 \begin_layout Plain Layout
31118 xcolor
31119 \end_layout
31120
31121 \end_inset
31122 </cell>
31123 </row>
31124 <row>
31125 <cell alignment="left" valignment="top" usebox="none">
31126 \begin_inset Text
31127
31128 \begin_layout Plain Layout
31129 amssymb
31130 \end_layout
31131
31132 \end_inset
31133 </cell>
31134 <cell alignment="left" valignment="top" usebox="none">
31135 \begin_inset Text
31136
31137 \begin_layout Plain Layout
31138 covington
31139 \end_layout
31140
31141 \end_inset
31142 </cell>
31143 <cell alignment="left" valignment="top" usebox="none">
31144 \begin_inset Text
31145
31146 \begin_layout Plain Layout
31147 graphicx
31148 \end_layout
31149
31150 \end_inset
31151 </cell>
31152 <cell alignment="left" valignment="top" usebox="none">
31153 \begin_inset Text
31154
31155 \begin_layout Plain Layout
31156 marvosym
31157 \end_layout
31158
31159 \end_inset
31160 </cell>
31161 <cell alignment="center" valignment="top" usebox="none">
31162 \begin_inset Text
31163
31164 \begin_layout Plain Layout
31165 pifont
31166 \end_layout
31167
31168 \end_inset
31169 </cell>
31170 <cell alignment="center" valignment="top" usebox="none">
31171 \begin_inset Text
31172
31173 \begin_layout Plain Layout
31174 slashed
31175 \end_layout
31176
31177 \end_inset
31178 </cell>
31179 <cell alignment="center" valignment="top" usebox="none">
31180 \begin_inset Text
31181
31182 \begin_layout Plain Layout
31183 txfonts
31184 \end_layout
31185
31186 \end_inset
31187 </cell>
31188 <cell alignment="center" valignment="top" usebox="none">
31189 \begin_inset Text
31190
31191 \begin_layout Plain Layout
31192 xy
31193 \end_layout
31194
31195 \end_inset
31196 </cell>
31197 </row>
31198 <row>
31199 <cell alignment="left" valignment="top" usebox="none">
31200 \begin_inset Text
31201
31202 \begin_layout Plain Layout
31203 amstext
31204 \end_layout
31205
31206 \end_inset
31207 </cell>
31208 <cell alignment="left" valignment="top" usebox="none">
31209 \begin_inset Text
31210
31211 \begin_layout Plain Layout
31212 csquotes
31213 \end_layout
31214
31215 \end_inset
31216 </cell>
31217 <cell alignment="left" valignment="top" usebox="none">
31218 \begin_inset Text
31219
31220 \begin_layout Plain Layout
31221 hhline
31222 \end_layout
31223
31224 \end_inset
31225 </cell>
31226 <cell alignment="left" valignment="top" usebox="none">
31227 \begin_inset Text
31228
31229 \begin_layout Plain Layout
31230 mathdesign
31231 \end_layout
31232
31233 \end_inset
31234 </cell>
31235 <cell alignment="center" valignment="top" usebox="none">
31236 \begin_inset Text
31237
31238 \begin_layout Plain Layout
31239 pmboxdraw
31240 \end_layout
31241
31242 \end_inset
31243 </cell>
31244 <cell alignment="center" valignment="top" usebox="none">
31245 \begin_inset Text
31246
31247 \begin_layout Plain Layout
31248 soul
31249 \end_layout
31250
31251 \end_inset
31252 </cell>
31253 <cell alignment="center" valignment="top" usebox="none">
31254 \begin_inset Text
31255
31256 \begin_layout Plain Layout
31257 ulem
31258 \end_layout
31259
31260 \end_inset
31261 </cell>
31262 <cell alignment="center" valignment="top" usebox="none">
31263 \begin_inset Text
31264
31265 \begin_layout Plain Layout
31266 yhmath
31267 \end_layout
31268
31269 \end_inset
31270 </cell>
31271 </row>
31272 <row>
31273 <cell alignment="left" valignment="top" usebox="none">
31274 \begin_inset Text
31275
31276 \begin_layout Plain Layout
31277 amsthm
31278 \end_layout
31279
31280 \end_inset
31281 </cell>
31282 <cell alignment="left" valignment="top" usebox="none">
31283 \begin_inset Text
31284
31285 \begin_layout Plain Layout
31286 dvipost
31287 \end_layout
31288
31289 \end_inset
31290 </cell>
31291 <cell alignment="left" valignment="top" usebox="none">
31292 \begin_inset Text
31293
31294 \begin_layout Plain Layout
31295 hyperref
31296 \end_layout
31297
31298 \end_inset
31299 </cell>
31300 <cell alignment="left" valignment="top" usebox="none">
31301 \begin_inset Text
31302
31303 \begin_layout Plain Layout
31304 mathdots
31305 \end_layout
31306
31307 \end_inset
31308 </cell>
31309 <cell alignment="center" valignment="top" usebox="none">
31310 \begin_inset Text
31311
31312 \begin_layout Plain Layout
31313 polyglossia
31314 \end_layout
31315
31316 \end_inset
31317 </cell>
31318 <cell alignment="center" valignment="top" usebox="none">
31319 \begin_inset Text
31320
31321 \begin_layout Plain Layout
31322 splitidx
31323 \end_layout
31324
31325 \end_inset
31326 </cell>
31327 <cell alignment="center" valignment="top" usebox="none">
31328 \begin_inset Text
31329
31330 \begin_layout Plain Layout
31331 undertilde
31332 \end_layout
31333
31334 \end_inset
31335 </cell>
31336 <cell alignment="center" valignment="top" usebox="none">
31337 \begin_inset Text
31338
31339 \begin_layout Plain Layout
31340
31341 \end_layout
31342
31343 \end_inset
31344 </cell>
31345 </row>
31346 <row>
31347 <cell alignment="left" valignment="top" usebox="none">
31348 \begin_inset Text
31349
31350 \begin_layout Plain Layout
31351 array
31352 \end_layout
31353
31354 \end_inset
31355 </cell>
31356 <cell alignment="left" valignment="top" usebox="none">
31357 \begin_inset Text
31358
31359 \begin_layout Plain Layout
31360 endnotes
31361 \end_layout
31362
31363 \end_inset
31364 </cell>
31365 <cell alignment="left" valignment="top" usebox="none">
31366 \begin_inset Text
31367
31368 \begin_layout Plain Layout
31369 ifsym
31370 \end_layout
31371
31372 \end_inset
31373 </cell>
31374 <cell alignment="left" valignment="top" usebox="none">
31375 \begin_inset Text
31376
31377 \begin_layout Plain Layout
31378 mathrsfs
31379 \end_layout
31380
31381 \end_inset
31382 </cell>
31383 <cell alignment="center" valignment="top" usebox="none">
31384 \begin_inset Text
31385
31386 \begin_layout Plain Layout
31387 prettyref
31388 \end_layout
31389
31390 \end_inset
31391 </cell>
31392 <cell alignment="center" valignment="top" usebox="none">
31393 \begin_inset Text
31394
31395 \begin_layout Plain Layout
31396 subfig
31397 \end_layout
31398
31399 \end_inset
31400 </cell>
31401 <cell alignment="center" valignment="top" usebox="none">
31402 \begin_inset Text
31403
31404 \begin_layout Plain Layout
31405 units
31406 \end_layout
31407
31408 \end_inset
31409 </cell>
31410 <cell alignment="center" valignment="top" usebox="none">
31411 \begin_inset Text
31412
31413 \begin_layout Plain Layout
31414
31415 \end_layout
31416
31417 \end_inset
31418 </cell>
31419 </row>
31420 <row>
31421 <cell alignment="left" valignment="top" usebox="none">
31422 \begin_inset Text
31423
31424 \begin_layout Plain Layout
31425 ascii
31426 \end_layout
31427
31428 \end_inset
31429 </cell>
31430 <cell alignment="left" valignment="top" usebox="none">
31431 \begin_inset Text
31432
31433 \begin_layout Plain Layout
31434 enumitem
31435 \end_layout
31436
31437 \end_inset
31438 </cell>
31439 <cell alignment="left" valignment="top" usebox="none">
31440 \begin_inset Text
31441
31442 \begin_layout Plain Layout
31443 ifthen
31444 \end_layout
31445
31446 \end_inset
31447 </cell>
31448 <cell alignment="left" valignment="top" usebox="none">
31449 \begin_inset Text
31450
31451 \begin_layout Plain Layout
31452 mhchem
31453 \end_layout
31454
31455 \end_inset
31456 </cell>
31457 <cell alignment="center" valignment="top" usebox="none">
31458 \begin_inset Text
31459
31460 \begin_layout Plain Layout
31461 pxfonts
31462 \end_layout
31463
31464 \end_inset
31465 </cell>
31466 <cell alignment="center" valignment="top" usebox="none">
31467 \begin_inset Text
31468
31469 \begin_layout Plain Layout
31470 subscript
31471 \end_layout
31472
31473 \end_inset
31474 </cell>
31475 <cell alignment="center" valignment="top" usebox="none">
31476 \begin_inset Text
31477
31478 \begin_layout Plain Layout
31479 url
31480 \end_layout
31481
31482 \end_inset
31483 </cell>
31484 <cell alignment="center" valignment="top" usebox="none">
31485 \begin_inset Text
31486
31487 \begin_layout Plain Layout
31488
31489 \end_layout
31490
31491 \end_inset
31492 </cell>
31493 </row>
31494 <row>
31495 <cell alignment="left" valignment="top" usebox="none">
31496 \begin_inset Text
31497
31498 \begin_layout Plain Layout
31499 bbding
31500 \end_layout
31501
31502 \end_inset
31503 </cell>
31504 <cell alignment="left" valignment="top" usebox="none">
31505 \begin_inset Text
31506
31507 \begin_layout Plain Layout
31508 esint
31509 \end_layout
31510
31511 \end_inset
31512 </cell>
31513 <cell alignment="left" valignment="top" usebox="none">
31514 \begin_inset Text
31515
31516 \begin_layout Plain Layout
31517 jurabib
31518 \end_layout
31519
31520 \end_inset
31521 </cell>
31522 <cell alignment="left" valignment="top" usebox="none">
31523 \begin_inset Text
31524
31525 \begin_layout Plain Layout
31526 multicol
31527 \end_layout
31528
31529 \end_inset
31530 </cell>
31531 <cell alignment="center" valignment="top" usebox="none">
31532 \begin_inset Text
31533
31534 \begin_layout Plain Layout
31535 refstyle
31536 \end_layout
31537
31538 \end_inset
31539 </cell>
31540 <cell alignment="center" valignment="top" usebox="none">
31541 \begin_inset Text
31542
31543 \begin_layout Plain Layout
31544 textcomp
31545 \end_layout
31546
31547 \end_inset
31548 </cell>
31549 <cell alignment="center" valignment="top" usebox="none">
31550 \begin_inset Text
31551
31552 \begin_layout Plain Layout
31553 varioref
31554 \end_layout
31555
31556 \end_inset
31557 </cell>
31558 <cell alignment="center" valignment="top" usebox="none">
31559 \begin_inset Text
31560
31561 \begin_layout Plain Layout
31562
31563 \end_layout
31564
31565 \end_inset
31566 </cell>
31567 </row>
31568 <row>
31569 <cell alignment="center" valignment="top" usebox="none">
31570 \begin_inset Text
31571
31572 \begin_layout Plain Layout
31573 bm
31574 \end_layout
31575
31576 \end_inset
31577 </cell>
31578 <cell alignment="center" valignment="top" usebox="none">
31579 \begin_inset Text
31580
31581 \begin_layout Plain Layout
31582 fancybox
31583 \end_layout
31584
31585 \end_inset
31586 </cell>
31587 <cell alignment="center" valignment="top" usebox="none">
31588 \begin_inset Text
31589
31590 \begin_layout Plain Layout
31591 latexsym
31592 \end_layout
31593
31594 \end_inset
31595 </cell>
31596 <cell alignment="center" valignment="top" usebox="none">
31597 \begin_inset Text
31598
31599 \begin_layout Plain Layout
31600 multirow
31601 \end_layout
31602
31603 \end_inset
31604 </cell>
31605 <cell alignment="center" valignment="top" usebox="none">
31606 \begin_inset Text
31607
31608 \begin_layout Plain Layout
31609 rotating
31610 \end_layout
31611
31612 \end_inset
31613 </cell>
31614 <cell alignment="center" valignment="top" usebox="none">
31615 \begin_inset Text
31616
31617 \begin_layout Plain Layout
31618 textgreek
31619 \end_layout
31620
31621 \end_inset
31622 </cell>
31623 <cell alignment="center" valignment="top" usebox="none">
31624 \begin_inset Text
31625
31626 \begin_layout Plain Layout
31627 verbatim
31628 \end_layout
31629
31630 \end_inset
31631 </cell>
31632 <cell alignment="center" valignment="top" usebox="none">
31633 \begin_inset Text
31634
31635 \begin_layout Plain Layout
31636
31637 \end_layout
31638
31639 \end_inset
31640 </cell>
31641 </row>
31642 </lyxtabular>
31643
31644 \end_inset
31645
31646
31647 \end_layout
31648
31649 \begin_layout Chapter
31650 Names of available colors to be used in layouts
31651 \begin_inset CommandInset label
31652 LatexCommand label
31653 name "chap:Names-of-colors"
31654
31655 \end_inset
31656
31657
31658 \end_layout
31659
31660 \begin_layout Standard
31661 The colors listed below are the standard colors and those that you can adjust
31662  in the \SpecialChar LyX
31663  preferences.
31664 \end_layout
31665
31666 \begin_layout Section
31667 Color functions
31668 \end_layout
31669
31670 \begin_layout Standard
31671 The following are no real colors, but rather act on color definitions:
31672 \end_layout
31673
31674 \begin_layout Description
31675 ignore The color is ignored
31676 \end_layout
31677
31678 \begin_layout Description
31679 inherit The color is inherited
31680 \end_layout
31681
31682 \begin_layout Description
31683 none
31684 \family roman
31685 \series medium
31686 \shape up
31687 \size normal
31688 \emph off
31689 \bar no
31690 \strikeout off
31691 \uuline off
31692 \uwave off
31693 \noun off
31694 \color none
31695  No particular color – clear or default
31696 \end_layout
31697
31698 \begin_layout Section
31699 Static colors
31700 \end_layout
31701
31702 \begin_layout Standard
31703 These are fixed colors that cannot be customized:
31704 \end_layout
31705
31706 \begin_layout Description
31707 black
31708 \end_layout
31709
31710 \begin_layout Description
31711 white
31712 \end_layout
31713
31714 \begin_layout Description
31715 blue
31716 \end_layout
31717
31718 \begin_layout Description
31719 brown
31720 \end_layout
31721
31722 \begin_layout Description
31723 cyan
31724 \end_layout
31725
31726 \begin_layout Description
31727 darkgray
31728 \end_layout
31729
31730 \begin_layout Description
31731 gray
31732 \end_layout
31733
31734 \begin_layout Description
31735 green
31736 \end_layout
31737
31738 \begin_layout Description
31739 lightgray
31740 \end_layout
31741
31742 \begin_layout Description
31743 lime
31744 \end_layout
31745
31746 \begin_layout Description
31747 magenta
31748 \end_layout
31749
31750 \begin_layout Description
31751 olive
31752 \end_layout
31753
31754 \begin_layout Description
31755 orange
31756 \end_layout
31757
31758 \begin_layout Description
31759 pink
31760 \end_layout
31761
31762 \begin_layout Description
31763 purple
31764 \end_layout
31765
31766 \begin_layout Description
31767 red
31768 \end_layout
31769
31770 \begin_layout Description
31771 teal
31772 \end_layout
31773
31774 \begin_layout Description
31775 violet
31776 \end_layout
31777
31778 \begin_layout Description
31779 yellow
31780 \end_layout
31781
31782 \begin_layout Section
31783 Dynamic colors
31784 \end_layout
31785
31786 \begin_layout Standard
31787 These are the colors allocated to specific elements in 
31788 \begin_inset Info
31789 type  "menu"
31790 arg   "dialog-show prefs"
31791 \end_inset
31792
31793 :
31794 \end_layout
31795
31796 \begin_layout Description
31797 added_space Added space color
31798 \end_layout
31799
31800 \begin_layout Description
31801 addedtext Added text color
31802 \end_layout
31803
31804 \begin_layout Description
31805 appendix Appendix marker color
31806 \end_layout
31807
31808 \begin_layout Description
31809 background Background color
31810 \end_layout
31811
31812 \begin_layout Description
31813 bottomarea Bottom area color
31814 \end_layout
31815
31816 \begin_layout Description
31817 branchlabel Label color for branches
31818 \end_layout
31819
31820 \begin_layout Description
31821 buttonbg Color used for button background
31822 \end_layout
31823
31824 \begin_layout Description
31825 buttonframe Color for inset button frames
31826 \end_layout
31827
31828 \begin_layout Description
31829 buttonhoverbg Color used for button background under focus
31830 \end_layout
31831
31832 \begin_layout Description
31833 changebar Changebar color
31834 \end_layout
31835
31836 \begin_layout Description
31837 changedtextauthor1 Changed text color author 1
31838 \end_layout
31839
31840 \begin_layout Description
31841 changedtextauthor2 Changed text color author 2
31842 \end_layout
31843
31844 \begin_layout Description
31845 changedtextauthor3 Changed text color author 3
31846 \end_layout
31847
31848 \begin_layout Description
31849 changedtextauthor4 Changed text color author 4
31850 \end_layout
31851
31852 \begin_layout Description
31853 changedtextauthor5 Changed text color author 5
31854 \end_layout
31855
31856 \begin_layout Description
31857 collapsible Collapsible insets text color
31858 \end_layout
31859
31860 \begin_layout Description
31861 collapsibleframe Collapsible insets framecolor
31862 \end_layout
31863
31864 \begin_layout Description
31865 command Text color for command insets
31866 \end_layout
31867
31868 \begin_layout Description
31869 commandbg Background color for command insets
31870 \end_layout
31871
31872 \begin_layout Description
31873 commandframe Frame color for command insets
31874 \end_layout
31875
31876 \begin_layout Description
31877 comment Label color for comments
31878 \end_layout
31879
31880 \begin_layout Description
31881 commentbg Background color of comments
31882 \end_layout
31883
31884 \begin_layout Description
31885 cursor Cursor color
31886 \end_layout
31887
31888 \begin_layout Description
31889 deletedtext Deleted text color
31890 \end_layout
31891
31892 \begin_layout Description
31893 deletedtextmodifier Deleted text modifying color
31894 \end_layout
31895
31896 \begin_layout Description
31897 depthbar Color for the depth bars in the margin
31898 \end_layout
31899
31900 \begin_layout Description
31901 eolmarker End of line marker color
31902 \end_layout
31903
31904 \begin_layout Description
31905 error Color of the \SpecialChar LaTeX
31906  error box
31907 \end_layout
31908
31909 \begin_layout Description
31910 footlabel Label color for footnotes
31911 \end_layout
31912
31913 \begin_layout Description
31914 foreground Foreground color
31915 \end_layout
31916
31917 \begin_layout Description
31918 graphicsbg Graphics inset background color
31919 \end_layout
31920
31921 \begin_layout Description
31922 greyedoutbg Background color of greyedout inset
31923 \end_layout
31924
31925 \begin_layout Description
31926 greyedoutlabel Label color for greyedout insets
31927 \end_layout
31928
31929 \begin_layout Description
31930 greyedouttext Color for greyedout inset text
31931 \end_layout
31932
31933 \begin_layout Description
31934 indexlabel Label color for index insets
31935 \end_layout
31936
31937 \begin_layout Description
31938 inlinecompletion Inline completion color
31939 \end_layout
31940
31941 \begin_layout Description
31942 insetbg Inset marker background color
31943 \end_layout
31944
31945 \begin_layout Description
31946 insetframe Inset marker frame color
31947 \end_layout
31948
31949 \begin_layout Description
31950 language Color for marking foreign language words
31951 \end_layout
31952
31953 \begin_layout Description
31954 latex Text color in \SpecialChar LaTeX
31955  mode
31956 \end_layout
31957
31958 \begin_layout Description
31959 listingsbg Background color of listings inset
31960 \end_layout
31961
31962 \begin_layout Description
31963 marginlabel Label color for margin notes
31964 \end_layout
31965
31966 \begin_layout Description
31967 math Math inset text color
31968 \end_layout
31969
31970 \begin_layout Description
31971 mathbg Math inset background color
31972 \end_layout
31973
31974 \begin_layout Description
31975 mathcorners Math inset frame color not under focus
31976 \end_layout
31977
31978 \begin_layout Description
31979 mathframe Math inset frame color under focus
31980 \end_layout
31981
31982 \begin_layout Description
31983 mathline Math line color
31984 \end_layout
31985
31986 \begin_layout Description
31987 mathmacrobg Macro math inset background color
31988 \end_layout
31989
31990 \begin_layout Description
31991 mathmacroblend Macro math blended color
31992 \end_layout
31993
31994 \begin_layout Description
31995 mathmacroframe Macro math frame color
31996 \end_layout
31997
31998 \begin_layout Description
31999 mathmacrohoverbg Macro math inset background color hovered
32000 \end_layout
32001
32002 \begin_layout Description
32003 mathmacrolabel Macro math label color
32004 \end_layout
32005
32006 \begin_layout Description
32007 mathmacronewarg Macro template color for new parameters
32008 \end_layout
32009
32010 \begin_layout Description
32011 mathmacrooldarg Macro template color for old parameters
32012 \end_layout
32013
32014 \begin_layout Description
32015 newpage New page color
32016 \end_layout
32017
32018 \begin_layout Description
32019 nonunique_inlinecompletion Inline completion color for the non-unique part
32020 \end_layout
32021
32022 \begin_layout Description
32023 note Label color for notes
32024 \end_layout
32025
32026 \begin_layout Description
32027 notebg Background color of notes
32028 \end_layout
32029
32030 \begin_layout Description
32031 pagebreak Page break/line break color
32032 \end_layout
32033
32034 \begin_layout Description
32035 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
32036 \end_layout
32037
32038 \begin_layout Description
32039 phantomtext Text color for phantom insets
32040 \end_layout
32041
32042 \begin_layout Description
32043 preview The color used for previews
32044 \end_layout
32045
32046 \begin_layout Description
32047 previewframe Preview frame color
32048 \end_layout
32049
32050 \begin_layout Description
32051 regexpframe Color for regexp frame
32052 \end_layout
32053
32054 \begin_layout Description
32055 scroll Color that indicates when a row can be scrolled 
32056 \end_layout
32057
32058 \begin_layout Description
32059 selection Background color of selected text
32060 \end_layout
32061
32062 \begin_layout Description
32063 selectiontext Foreground color of selected text
32064 \end_layout
32065
32066 \begin_layout Description
32067 shadedbg Background color of shaded box
32068 \end_layout
32069
32070 \begin_layout Description
32071 special Special chars text color
32072 \end_layout
32073
32074 \begin_layout Description
32075 tabularline Table line color
32076 \end_layout
32077
32078 \begin_layout Description
32079 tabularonoffline Table line color
32080 \end_layout
32081
32082 \begin_layout Description
32083 urllabel Label color for URL insets
32084 \end_layout
32085
32086 \begin_layout Description
32087 urltext Color for URL inset text
32088 \end_layout
32089
32090 \end_body
32091 \end_document