]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Use generic paper size names rather than LaTeXisms such as "letterpaper"
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 587
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 false
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 \html_math_output 0
134 \html_css_as_file 0
135 \html_be_strict true
136 \author -712698321 "Jürgen Spitzmüller"
137 \author -495245474 "Jean-Marc Lasgouttes"
138 \author 731793113 "Richard Kimberly Heck" rikiheck@lyx.org
139 \end_header
140
141 \begin_body
142
143 \begin_layout Title
144 Customizing \SpecialChar LyX
145 : Features for the Advanced User
146 \end_layout
147
148 \begin_layout Author
149 by the \SpecialChar LyX
150  Team
151 \begin_inset Foot
152 status collapsed
153
154 \begin_layout Plain Layout
155 \noindent
156 If you have comments or error corrections, please send them to the \SpecialChar LyX
157  Documentatio
158 n mailing list, 
159 \begin_inset CommandInset href
160 LatexCommand href
161 target "lyx-docs@lists.lyx.org"
162 type "mailto:"
163 literal "false"
164
165 \end_inset
166
167 .
168  Include 
169 \begin_inset Quotes eld
170 \end_inset
171
172 [Customization]
173 \begin_inset Quotes erd
174 \end_inset
175
176  in the subject header, and please cc the current maintainer of this file,
177  Richard Heck <rgheck@comcast.net>.
178 \end_layout
179
180 \end_inset
181
182
183 \begin_inset Newline newline
184 \end_inset
185
186
187 \begin_inset Newline newline
188 \end_inset
189
190 Version 2.3.x 
191 \end_layout
192
193 \begin_layout Standard
194 \begin_inset CommandInset toc
195 LatexCommand tableofcontents
196
197 \end_inset
198
199
200 \end_layout
201
202 \begin_layout Standard
203 \begin_inset Note Note
204 status open
205
206 \begin_layout Plain Layout
207 Please use change tracking when modifying this document.
208  This makes it easier for our translators to recognize things that have
209  been changed, and it helps the maintainer keep up-to-date with what's been
210  done.
211 \end_layout
212
213 \end_inset
214
215
216 \end_layout
217
218 \begin_layout Chapter
219 Introduction
220 \end_layout
221
222 \begin_layout Standard
223 This manual covers the customization features present in \SpecialChar LyX
224 .
225  In it, we discuss issues like keyboard shortcuts, screen previewing options,
226  printer options, sending commands to \SpecialChar LyX
227  via the \SpecialChar LyX
228  Server, internationalization,
229  installing new \SpecialChar LaTeX
230  classes and \SpecialChar LyX
231  layouts, etc.
232  We can't possibly hope to touch on everything you can change—our developers
233  add new features faster than we can document them—but we will explain the
234  most common customizations and hopefully point you in the right direction
235  for some of the more obscure ones.
236 \end_layout
237
238 \begin_layout Standard
239 \begin_inset Branch OutDated
240 inverted 0
241 status collapsed
242
243 \begin_layout Standard
244 Information from previous versions of this document that now seems to be
245  outdated is contained in the OutDated branch of this document.
246  By default, this information will not appear in the \SpecialChar LaTeX
247  output.
248 \end_layout
249
250 \end_inset
251
252
253 \end_layout
254
255 \begin_layout Chapter
256 \SpecialChar LyX
257  configuration files
258 \end_layout
259
260 \begin_layout Standard
261 This chapter aims to help you to find your way through the \SpecialChar LyX
262  configuration
263  files.
264  Before continuing to read this chapter, you should find out where your
265  \SpecialChar LyX
266  library and user directories are by using 
267 \begin_inset Flex Noun
268 status collapsed
269
270 \begin_layout Plain Layout
271 Help\SpecialChar menuseparator
272 About
273 \begin_inset space ~
274 \end_inset
275
276 LyX
277 \end_layout
278
279 \end_inset
280
281 .
282  The library directory is the place where \SpecialChar LyX
283  places its system-wide configuration
284  files; the user directory is where you can place your modified versions.
285  We will call the former 
286 \begin_inset Flex Code
287 status collapsed
288
289 \begin_layout Plain Layout
290 LyXDir
291 \end_layout
292
293 \end_inset
294
295  and the latter 
296 \begin_inset Flex Noun
297 status collapsed
298
299 \begin_layout Plain Layout
300 UserDir
301 \end_layout
302
303 \end_inset
304
305  in the remainder of this document.
306  
307 \end_layout
308
309 \begin_layout Section
310 What's in 
311 \begin_inset Flex Code
312 status collapsed
313
314 \begin_layout Plain Layout
315 LyXDir
316 \end_layout
317
318 \end_inset
319
320 ?
321 \end_layout
322
323 \begin_layout Standard
324 \begin_inset Flex Code
325 status collapsed
326
327 \begin_layout Plain Layout
328 LyXDir
329 \end_layout
330
331 \end_inset
332
333  and its sub-directories contain a number of files and that can be used
334  to customize \SpecialChar LyX
335 's behavior.
336  You can change many of these files from within \SpecialChar LyX
337  itself through the 
338 \begin_inset Flex Noun
339 status collapsed
340
341 \begin_layout Plain Layout
342 Tools\SpecialChar menuseparator
343 Preferences
344 \end_layout
345
346 \end_inset
347
348  dialog.
349  Most customization that you will want to do in \SpecialChar LyX
350  is possible through this
351  dialog.
352  However, many other inner aspects of \SpecialChar LyX
353  can be customized by modifying the
354  files in 
355 \begin_inset Flex Code
356 status collapsed
357
358 \begin_layout Plain Layout
359 LyXDir
360 \end_layout
361
362 \end_inset
363
364 .
365  These files fall in different categories, described in the following subsection
366 s.
367 \end_layout
368
369 \begin_layout Subsection
370 Automatically generated files
371 \end_layout
372
373 \begin_layout Standard
374 The files, which are to be found in 
375 \begin_inset Flex Noun
376 status collapsed
377
378 \begin_layout Plain Layout
379 UserDir
380 \end_layout
381
382 \end_inset
383
384 , are generated when you configure \SpecialChar LyX
385 .
386  They contain various default values that are guessed by inspection.
387  In general, it is not a good idea to modify them, since they might be overwritt
388 en at any time.
389 \end_layout
390
391 \begin_layout Labeling
392 \labelwidthstring 00.00.0000
393 \begin_inset Flex Code
394 status collapsed
395
396 \begin_layout Plain Layout
397 lyxrc.defaults
398 \end_layout
399
400 \end_inset
401
402  contains defaults for various commands.
403 \end_layout
404
405 \begin_layout Labeling
406 \labelwidthstring 00.00.0000
407 \begin_inset Flex Code
408 status collapsed
409
410 \begin_layout Plain Layout
411 packages.lst
412 \end_layout
413
414 \end_inset
415
416  contains the list of packages that have been recognized by \SpecialChar LyX
417 .
418  It is currently unused by the \SpecialChar LyX
419  program itself, but the information extracted,
420  and more, is made available with 
421 \begin_inset Flex Noun
422 status collapsed
423
424 \begin_layout Plain Layout
425 Help\SpecialChar menuseparator
426 \SpecialChar LaTeX
427
428 \begin_inset space ~
429 \end_inset
430
431 Configuration
432 \end_layout
433
434 \end_inset
435
436 .
437 \end_layout
438
439 \begin_layout Labeling
440 \labelwidthstring 00.00.0000
441 \begin_inset Flex Code
442 status collapsed
443
444 \begin_layout Plain Layout
445 textclass.lst
446 \end_layout
447
448 \end_inset
449
450  the list of text classes that have been found in your 
451 \begin_inset Flex Code
452 status collapsed
453
454 \begin_layout Plain Layout
455 layout/
456 \end_layout
457
458 \end_inset
459
460  directories, along with the associated \SpecialChar LaTeX
461  document class and their description.
462 \end_layout
463
464 \begin_layout Labeling
465 \labelwidthstring 00.00.0000
466 \begin_inset Flex Code
467 status collapsed
468
469 \begin_layout Plain Layout
470 lyxmodules.lst
471 \end_layout
472
473 \end_inset
474
475  the list of layout modules found in your 
476 \begin_inset Flex Code
477 status collapsed
478
479 \begin_layout Plain Layout
480 layout/
481 \end_layout
482
483 \end_inset
484
485  directories
486 \end_layout
487
488 \begin_layout Labeling
489 \labelwidthstring 00.00.0000
490 \begin_inset Flex Code
491 status collapsed
492
493 \begin_layout Plain Layout
494 *files.lst
495 \end_layout
496
497 \end_inset
498
499  lists of various sorts of \SpecialChar LaTeX
500 -related files found on your system
501 \end_layout
502
503 \begin_layout Labeling
504 \labelwidthstring 00.00.0000
505 \begin_inset Flex Code
506 status collapsed
507
508 \begin_layout Plain Layout
509 doc/\SpecialChar LaTeX
510 Config.lyx
511 \end_layout
512
513 \end_inset
514
515  is automatically generated during configuration from the file 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 \SpecialChar LaTeX
521 Config.lyx.in
522 \end_layout
523
524 \end_inset
525
526 .
527  It contains information on your \SpecialChar LaTeX
528  configuration.
529 \end_layout
530
531 \begin_layout Subsection
532 Directories
533 \end_layout
534
535 \begin_layout Standard
536 These directories are duplicated between 
537 \begin_inset Flex Code
538 status collapsed
539
540 \begin_layout Plain Layout
541 LyXDir
542 \end_layout
543
544 \end_inset
545
546  and 
547 \begin_inset Flex Code
548 status collapsed
549
550 \begin_layout Plain Layout
551 UserDir
552 \end_layout
553
554 \end_inset
555
556 .
557  If a particular files exists in both places, the one in 
558 \begin_inset Flex Code
559 status collapsed
560
561 \begin_layout Plain Layout
562 UserDir
563 \end_layout
564
565 \end_inset
566
567  will be used.
568 \end_layout
569
570 \begin_layout Labeling
571 \labelwidthstring 00.00.0000
572 \begin_inset Flex Code
573 status collapsed
574
575 \begin_layout Plain Layout
576 bind/
577 \end_layout
578
579 \end_inset
580
581  this directory contains files with the extension 
582 \begin_inset Flex Code
583 status collapsed
584
585 \begin_layout Plain Layout
586 .bind
587 \end_layout
588
589 \end_inset
590
591  that define the keybindings used in \SpecialChar LyX
592 .
593  If there exists an internationalized version of the bind file named 
594 \begin_inset Flex Code
595 status collapsed
596
597 \begin_layout Plain Layout
598 $LANG_xxx.bind
599 \end_layout
600
601 \end_inset
602
603 , that will be used first.
604 \end_layout
605
606 \begin_layout Labeling
607 \labelwidthstring 00.00.0000
608 \begin_inset Flex Code
609 status collapsed
610
611 \begin_layout Plain Layout
612 citeengines/
613 \end_layout
614
615 \end_inset
616
617  contains files with the extension 
618 \begin_inset Flex Code
619 status collapsed
620
621 \begin_layout Plain Layout
622 .citeengine
623 \end_layout
624
625 \end_inset
626
627  which define the diverse citation possibilities (natbib, biblatex etc.).
628  See 
629 \begin_inset CommandInset ref
630 LatexCommand ref
631 reference "subsec:Cite-Engine-Files"
632 plural "false"
633 caps "false"
634 noprefix "false"
635
636 \end_inset
637
638  for details.
639 \end_layout
640
641 \begin_layout Labeling
642 \labelwidthstring 00.00.0000
643 \begin_inset Flex Code
644 status collapsed
645
646 \begin_layout Plain Layout
647 clipart/
648 \end_layout
649
650 \end_inset
651
652  contains graphics files that can be included in documents.
653  
654 \end_layout
655
656 \begin_layout Labeling
657 \labelwidthstring 00.00.0000
658 \begin_inset Flex Code
659 status collapsed
660
661 \begin_layout Plain Layout
662 doc/
663 \end_layout
664
665 \end_inset
666
667  contains \SpecialChar LyX
668  documentation files (including the one you are currently reading).
669  The file 
670 \begin_inset Flex Code
671 status collapsed
672
673 \begin_layout Plain Layout
674 \SpecialChar LaTeX
675 Config.lyx
676 \end_layout
677
678 \end_inset
679
680  deserves special attention, as noted above.
681  The internationalized help docs are in subdirectories 
682 \begin_inset Flex Code
683 status collapsed
684
685 \begin_layout Plain Layout
686 doc/xx
687 \end_layout
688
689 \end_inset
690
691  where 
692 \begin_inset Quotes eld
693 \end_inset
694
695 xx
696 \begin_inset Quotes erd
697 \end_inset
698
699  is the ISO language code.
700  See 
701 \begin_inset CommandInset ref
702 LatexCommand ref
703 reference "cha:Internationalizing-LyX"
704
705 \end_inset
706
707  for details.
708 \end_layout
709
710 \begin_layout Labeling
711 \labelwidthstring 00.00.0000
712 \begin_inset Flex Code
713 status collapsed
714
715 \begin_layout Plain Layout
716 examples/
717 \end_layout
718
719 \end_inset
720
721  contains example files that explain how to use some features.
722  In the file browser, press the 
723 \begin_inset Flex Noun
724 status collapsed
725
726 \begin_layout Plain Layout
727 Examples
728 \end_layout
729
730 \end_inset
731
732  button to get there.
733 \end_layout
734
735 \begin_layout Labeling
736 \labelwidthstring 00.00.0000
737 \begin_inset Flex Code
738 status collapsed
739
740 \begin_layout Plain Layout
741 images/
742 \end_layout
743
744 \end_inset
745
746  contains image files that are used by the 
747 \begin_inset Flex Noun
748 status collapsed
749
750 \begin_layout Plain Layout
751 Document
752 \end_layout
753
754 \end_inset
755
756  dialog.
757  In addition, it also contains the individual icons used in the toolbar
758  and the banners that can be shown when \SpecialChar LyX
759  is launched.
760 \end_layout
761
762 \begin_layout Labeling
763 \labelwidthstring 00.00.0000
764 \begin_inset Flex Code
765 status collapsed
766
767 \begin_layout Plain Layout
768 kbd/
769 \end_layout
770
771 \end_inset
772
773  contains keyboard keymapping files.
774  See 
775 \begin_inset CommandInset ref
776 LatexCommand ref
777 reference "sec:International-Keymap-Stuff"
778
779 \end_inset
780
781  for details.
782 \end_layout
783
784 \begin_layout Labeling
785 \labelwidthstring 00.00.0000
786 \begin_inset Flex Code
787 status collapsed
788
789 \begin_layout Plain Layout
790 layouts/
791 \end_layout
792
793 \end_inset
794
795  contains the text class and module files described in 
796 \begin_inset CommandInset ref
797 LatexCommand ref
798 reference "cha:Installing-New-Document"
799
800 \end_inset
801
802 .
803 \end_layout
804
805 \begin_layout Labeling
806 \labelwidthstring 00.00.0000
807 \begin_inset Flex Code
808 status collapsed
809
810 \begin_layout Plain Layout
811 lyx2lyx
812 \end_layout
813
814 \end_inset
815
816  contains the 
817 \begin_inset Flex Code
818 status collapsed
819
820 \begin_layout Plain Layout
821 lyx2lyx
822 \end_layout
823
824 \end_inset
825
826  Python scripts used to convert between \SpecialChar LyX
827  versions.
828  These can be run from the command line if, say, you want to batch-convert
829  files.
830 \end_layout
831
832 \begin_layout Labeling
833 \labelwidthstring 00.00.0000
834 \begin_inset Flex Code
835 status collapsed
836
837 \begin_layout Plain Layout
838 scripts/
839 \end_layout
840
841 \end_inset
842
843  contains some files that demonstrate the capabilities of the 
844 \begin_inset Flex Noun
845 status collapsed
846
847 \begin_layout Plain Layout
848 External
849 \begin_inset space ~
850 \end_inset
851
852 Template
853 \end_layout
854
855 \end_inset
856
857  feature.
858  Also contains some scripts used by \SpecialChar LyX
859  itself.
860 \end_layout
861
862 \begin_layout Labeling
863 \labelwidthstring 00.00.0000
864 \begin_inset Flex Code
865 status collapsed
866
867 \begin_layout Plain Layout
868 templates/
869 \end_layout
870
871 \end_inset
872
873  contains the standard \SpecialChar LyX
874  template files described in 
875 \begin_inset CommandInset ref
876 LatexCommand ref
877 reference "subsec:Creating-Templates"
878
879 \end_inset
880
881 .
882 \end_layout
883
884 \begin_layout Labeling
885 \labelwidthstring 00.00.0000
886 \begin_inset Flex Code
887 status collapsed
888
889 \begin_layout Plain Layout
890 ui/
891 \end_layout
892
893 \end_inset
894
895  contains files with the extension 
896 \begin_inset Flex Code
897 status collapsed
898
899 \begin_layout Plain Layout
900 .ui
901 \end_layout
902
903 \end_inset
904
905  that define the user interface to \SpecialChar LyX
906 .
907  That is, the files define which items appear in which menus and the items
908  appearing on the toolbar.
909 \end_layout
910
911 \begin_layout Labeling
912 \labelwidthstring 00.00.0000
913 \begin_inset Flex Code
914 status collapsed
915
916 \begin_layout Plain Layout
917 xtemplates/
918 \end_layout
919
920 \end_inset
921
922  contains files with the extension 
923 \begin_inset Flex Code
924 status collapsed
925
926 \begin_layout Plain Layout
927 .xtemplate
928 \end_layout
929
930 \end_inset
931
932  which define the templates for the insertion of external material to a
933  \SpecialChar LyX
934  document; see 
935 \begin_inset CommandInset ref
936 LatexCommand ref
937 reference "chap:Including-External-Material"
938
939 \end_inset
940
941 .
942 \end_layout
943
944 \begin_layout Subsection
945 Files you don't want to modify
946 \end_layout
947
948 \begin_layout Standard
949 These files are used internally by \SpecialChar LyX
950  and you generally do not need to modify
951  them unless you are a developer.
952 \end_layout
953
954 \begin_layout Labeling
955 \labelwidthstring 00.00.0000
956 \begin_inset Flex Code
957 status collapsed
958
959 \begin_layout Plain Layout
960 CREDITS
961 \end_layout
962
963 \end_inset
964
965  this file contains the list of \SpecialChar LyX
966  developers.
967  The contents are displayed with the menu entry 
968 \begin_inset Flex Noun
969 status collapsed
970
971 \begin_layout Plain Layout
972 Help\SpecialChar menuseparator
973 About
974 \begin_inset space ~
975 \end_inset
976
977 LyX
978 \end_layout
979
980 \end_inset
981
982 .
983 \end_layout
984
985 \begin_layout Labeling
986 \labelwidthstring 00.00.0000
987 \begin_inset Flex Code
988 status collapsed
989
990 \begin_layout Plain Layout
991 chkconfig.ltx
992 \end_layout
993
994 \end_inset
995
996  this is a \SpecialChar LaTeX
997  script used during the configuration process.
998  Do not run directly.
999 \end_layout
1000
1001 \begin_layout Labeling
1002 \labelwidthstring 00.00.0000
1003 \begin_inset Flex Code
1004 status collapsed
1005
1006 \begin_layout Plain Layout
1007 configure.py
1008 \end_layout
1009
1010 \end_inset
1011
1012  this is a Python script that is used to re-configure \SpecialChar LyX
1013 .
1014  It creates configuration files in the directory it was run from.
1015 \end_layout
1016
1017 \begin_layout Subsection
1018 Other files needing a line or two
1019 \end_layout
1020
1021 \begin_layout Labeling
1022 \labelwidthstring 00.00.0000
1023 \begin_inset Flex Code
1024 status collapsed
1025
1026 \begin_layout Plain Layout
1027 encodings
1028 \end_layout
1029
1030 \end_inset
1031
1032  this contains tables describing how different character encodings can be
1033  mapped to Unicode
1034 \end_layout
1035
1036 \begin_layout Labeling
1037 \labelwidthstring 00.00.0000
1038 \begin_inset Flex Code
1039 status collapsed
1040
1041 \begin_layout Plain Layout
1042 languages
1043 \end_layout
1044
1045 \end_inset
1046
1047  this file contains a list of all the languages currently supported by \SpecialChar LyX
1048 .
1049 \end_layout
1050
1051 \begin_layout Labeling
1052 \labelwidthstring 00.00.0000
1053 \begin_inset Flex Code
1054 status collapsed
1055
1056 \begin_layout Plain Layout
1057 latexfonts
1058 \end_layout
1059
1060 \end_inset
1061
1062  contains information about the supported fonts.
1063 \end_layout
1064
1065 \begin_layout Labeling
1066 \labelwidthstring 00.00.0000
1067 \begin_inset Flex Code
1068 status collapsed
1069
1070 \begin_layout Plain Layout
1071 layouttranslations
1072 \end_layout
1073
1074 \end_inset
1075
1076  this file contains translations for internationalized paragraph styles
1077  (see 
1078 \begin_inset CommandInset ref
1079 LatexCommand ref
1080 reference "subsec:I18n"
1081
1082 \end_inset
1083
1084 ).
1085 \end_layout
1086
1087 \begin_layout Labeling
1088 \labelwidthstring 00.00.0000
1089 \begin_inset Flex Code
1090 status collapsed
1091
1092 \begin_layout Plain Layout
1093 unicodesymbols
1094 \end_layout
1095
1096 \end_inset
1097
1098  this file contains information about Unicode-encoded glyphs and the way
1099  they are supported by \SpecialChar LyX
1100  via \SpecialChar LaTeX
1101 .
1102 \end_layout
1103
1104 \begin_layout Section
1105 Your local configuration directory
1106 \end_layout
1107
1108 \begin_layout Standard
1109 Even if you are using \SpecialChar LyX
1110  as an unprivileged user, you might want to change
1111  \SpecialChar LyX
1112  configuration for your own use.
1113  The 
1114 \begin_inset Flex Code
1115 status collapsed
1116
1117 \begin_layout Plain Layout
1118 UserDir
1119 \end_layout
1120
1121 \end_inset
1122
1123  directory contains all your personal configuration files.
1124  This is the directory described as 
1125 \begin_inset Quotes eld
1126 \end_inset
1127
1128 user directory
1129 \begin_inset Quotes erd
1130 \end_inset
1131
1132  in 
1133 \begin_inset Flex Noun
1134 status collapsed
1135
1136 \begin_layout Plain Layout
1137 Help\SpecialChar menuseparator
1138 About
1139 \begin_inset space ~
1140 \end_inset
1141
1142 LyX
1143 \end_layout
1144
1145 \end_inset
1146
1147 .
1148  This directory is used as a mirror of 
1149 \begin_inset Flex Code
1150 status collapsed
1151
1152 \begin_layout Plain Layout
1153 LyXDir
1154 \end_layout
1155
1156 \end_inset
1157
1158 , which means that every file in 
1159 \begin_inset Flex Code
1160 status collapsed
1161
1162 \begin_layout Plain Layout
1163 UserDir
1164 \end_layout
1165
1166 \end_inset
1167
1168  is a replacement for the corresponding file in 
1169 \begin_inset Flex Code
1170 status collapsed
1171
1172 \begin_layout Plain Layout
1173 LyXDir
1174 \end_layout
1175
1176 \end_inset
1177
1178 .
1179  Any configuration file described in the above sections can be placed either
1180  in the system-wide directory, in which case it will affect all users, or
1181  in your local directory for your own use.
1182 \end_layout
1183
1184 \begin_layout Standard
1185 To make things clearer, let's provide a few examples:
1186 \end_layout
1187
1188 \begin_layout Itemize
1189 The preferences set in the 
1190 \begin_inset Flex Noun
1191 status collapsed
1192
1193 \begin_layout Plain Layout
1194 Tools\SpecialChar menuseparator
1195 Preferences
1196 \end_layout
1197
1198 \end_inset
1199
1200  dialog are saved to a file 
1201 \begin_inset Flex Code
1202 status collapsed
1203
1204 \begin_layout Plain Layout
1205 preferences
1206 \end_layout
1207
1208 \end_inset
1209
1210  in 
1211 \begin_inset Flex Code
1212 status collapsed
1213
1214 \begin_layout Plain Layout
1215 UserDir
1216 \end_layout
1217
1218 \end_inset
1219
1220 .
1221 \end_layout
1222
1223 \begin_layout Itemize
1224 When you reconfigure using 
1225 \begin_inset Flex Noun
1226 status collapsed
1227
1228 \begin_layout Plain Layout
1229 Tools\SpecialChar menuseparator
1230 Reconfigure
1231 \end_layout
1232
1233 \end_inset
1234
1235 , \SpecialChar LyX
1236  runs the 
1237 \begin_inset Flex Code
1238 status collapsed
1239
1240 \begin_layout Plain Layout
1241 configure.py
1242 \end_layout
1243
1244 \end_inset
1245
1246  script, and the resulting files are written in your local configuration
1247  directory.
1248  This means that any additional text class file that you might have added
1249  in 
1250 \begin_inset Flex Code
1251 status collapsed
1252
1253 \begin_layout Plain Layout
1254 UserDir/layouts
1255 \end_layout
1256
1257 \end_inset
1258
1259  will be added to the list of classes in the 
1260 \begin_inset Flex Noun
1261 status collapsed
1262
1263 \begin_layout Plain Layout
1264 Document\SpecialChar menuseparator
1265 Settings
1266 \end_layout
1267
1268 \end_inset
1269
1270  dialog.
1271 \end_layout
1272
1273 \begin_layout Itemize
1274 If you get some updated documentation from \SpecialChar LyX
1275  ftp site and cannot install
1276  it because you do not have sysadmin rights on your system, you can just
1277  copy the files in 
1278 \begin_inset Flex Code
1279 status collapsed
1280
1281 \begin_layout Plain Layout
1282 UserDir/doc/
1283 \end_layout
1284
1285 \end_inset
1286
1287  and the items in the 
1288 \begin_inset Flex Noun
1289 status collapsed
1290
1291 \begin_layout Plain Layout
1292 Help
1293 \end_layout
1294
1295 \end_inset
1296
1297  menu will open them!
1298 \end_layout
1299
1300 \begin_layout Section
1301 Running \SpecialChar LyX
1302  with multiple configurations
1303 \end_layout
1304
1305 \begin_layout Standard
1306 The configuration freedom of the local configuration directory may not suffice
1307  if you want to have more than one configuration at your disposal.
1308  For example, you may want to be use different key bindings or printer settings
1309  at different times.
1310  You can achieve this by having several such directories.
1311  You then specify which directory to use at run-time.
1312 \end_layout
1313
1314 \begin_layout Standard
1315 Invoking \SpecialChar LyX
1316  with the command line switch 
1317 \begin_inset Flex Code
1318 status collapsed
1319
1320 \begin_layout Plain Layout
1321 -userdir
1322 \end_layout
1323
1324 \end_inset
1325
1326  
1327 \emph on
1328 <some directory>
1329 \emph default
1330  instructs the program to read the configuration from that directory, and
1331  not from the default directory.
1332  (You can determine the default directory by running \SpecialChar LyX
1333  without the 
1334 \begin_inset Flex Code
1335 status collapsed
1336
1337 \begin_layout Plain Layout
1338 -userdir
1339 \end_layout
1340
1341 \end_inset
1342
1343  switch.) If the specified directory does not exist, \SpecialChar LyX
1344  offers to create it
1345  for you, just like it does for the default directory on the first time
1346  you run the program.
1347  You can modify the configuration options in this additional user directory
1348  exactly as you would for the default directory.
1349  These directories are completely independent (but read on).
1350  Note that setting the environment variable 
1351 \begin_inset Flex Code
1352 status collapsed
1353
1354 \begin_layout Plain Layout
1355 LYX_USERDIR_VER
1356 \end_layout
1357
1358 \end_inset
1359
1360  to some value has exactly the same effect.
1361 \end_layout
1362
1363 \begin_layout Standard
1364 Having several configurations also requires more maintenance: if you want
1365  to add a new layout to 
1366 \begin_inset Flex Code
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370 NewUserDir/layouts
1371 \end_layout
1372
1373 \end_inset
1374
1375  which you want available from all your configurations, you must add it
1376  to each directory separately.
1377  You can avoid this with the following trick: after \SpecialChar LyX
1378  creates the additional
1379  directory, most of the subdirectories (see above) are empty.
1380  If you want the new configuration to mirror an existing one, replace the
1381  empty subdirectory with a symbolic link to the matching subdirectory in
1382  the existing configuration.
1383  Take care with the 
1384 \begin_inset Flex Code
1385 status collapsed
1386
1387 \begin_layout Plain Layout
1388 doc/
1389 \end_layout
1390
1391 \end_inset
1392
1393  subdirectory, however, since it contains a file written by the configuration
1394  script (also accessible through 
1395 \begin_inset Flex Noun
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399 Tools\SpecialChar menuseparator
1400 Reconfigure
1401 \end_layout
1402
1403 \end_inset
1404
1405 ) which is configuration-specific.
1406 \end_layout
1407
1408 \begin_layout Chapter
1409 The Preferences dialog
1410 \end_layout
1411
1412 \begin_layout Standard
1413 All options of the preferences dialog are described in the Appendix 
1414 \emph on
1415 The Preferences Dialog
1416 \emph default
1417  in the 
1418 \emph on
1419 User's Guide
1420 \emph default
1421 .
1422  For some options you might find here more details.
1423 \end_layout
1424
1425 \begin_layout Section
1426 Formats
1427 \begin_inset CommandInset label
1428 LatexCommand label
1429 name "sec:Formats"
1430
1431 \end_inset
1432
1433
1434 \end_layout
1435
1436 \begin_layout Standard
1437 The first step is to define your file formats if they are not already defined.
1438  To do so, open the 
1439 \begin_inset Flex Noun
1440 status collapsed
1441
1442 \begin_layout Plain Layout
1443 Tools\SpecialChar menuseparator
1444 Preferences
1445 \end_layout
1446
1447 \end_inset
1448
1449  dialog.
1450  Under 
1451 \begin_inset Flex Noun
1452 status collapsed
1453
1454 \begin_layout Plain Layout
1455 File Handling\SpecialChar menuseparator
1456 File formats
1457 \end_layout
1458
1459 \end_inset
1460
1461  press the 
1462 \begin_inset Flex Noun
1463 status collapsed
1464
1465 \begin_layout Plain Layout
1466 New
1467 \end_layout
1468
1469 \end_inset
1470
1471  button to define your new format.
1472  The 
1473 \begin_inset Flex Noun
1474 status collapsed
1475
1476 \begin_layout Plain Layout
1477 Format
1478 \end_layout
1479
1480 \end_inset
1481
1482  field contains the name used to identify the format in the GUI.
1483  The 
1484 \begin_inset Flex Noun
1485 status collapsed
1486
1487 \begin_layout Plain Layout
1488 Short Name
1489 \end_layout
1490
1491 \end_inset
1492
1493  is used to identify the format internally.
1494  You will also need to enter a file extension.
1495  These are all required.
1496  The optional 
1497 \begin_inset Flex Noun
1498 status collapsed
1499
1500 \begin_layout Plain Layout
1501 Shortcut
1502 \end_layout
1503
1504 \end_inset
1505
1506  field is used to provide a keyboard shortcut on the menus.
1507  (For example, pressing 
1508 \begin_inset Flex Noun
1509 status collapsed
1510
1511 \begin_layout Plain Layout
1512 Ctrl+D
1513 \end_layout
1514
1515 \end_inset
1516
1517  will 
1518 \begin_inset Flex Noun
1519 status collapsed
1520
1521 \begin_layout Plain Layout
1522 Document\SpecialChar menuseparator
1523 View (Other Formats)\SpecialChar menuseparator
1524 DVI
1525 \end_layout
1526
1527 \end_inset
1528
1529 .) 
1530 \end_layout
1531
1532 \begin_layout Standard
1533 A Format can have a 
1534 \begin_inset Flex Noun
1535 status collapsed
1536
1537 \begin_layout Plain Layout
1538 Viewer
1539 \end_layout
1540
1541 \end_inset
1542
1543  and an 
1544 \begin_inset Flex Noun
1545 status collapsed
1546
1547 \begin_layout Plain Layout
1548 Editor
1549 \end_layout
1550
1551 \end_inset
1552
1553  associated with it.
1554  For example, you might want to use 
1555 \begin_inset Flex Noun
1556 status collapsed
1557
1558 \begin_layout Plain Layout
1559 Ghostview
1560 \end_layout
1561
1562 \end_inset
1563
1564  to view PostScript files.
1565  You can enter the command needed to start the program in the corresponding
1566  fields.
1567  In defining this command, you can use the four variables listed in the
1568  next section.
1569  The viewer is launched when you view an image in \SpecialChar LyX
1570  or use the 
1571 \begin_inset Flex Noun
1572 status collapsed
1573
1574 \begin_layout Plain Layout
1575 Document\SpecialChar menuseparator
1576 View
1577 \end_layout
1578
1579 \end_inset
1580
1581  menu.
1582  The editor is for example launched when you right-click on an image and
1583  choose 
1584 \begin_inset Flex Noun
1585 status collapsed
1586
1587 \begin_layout Plain Layout
1588 Edit externally
1589 \end_layout
1590
1591 \end_inset
1592
1593  in the appearing context menu.
1594 \end_layout
1595
1596 \begin_layout Standard
1597 The 
1598 \begin_inset Flex Noun
1599 status collapsed
1600
1601 \begin_layout Plain Layout
1602 MIME
1603 \end_layout
1604
1605 \end_inset
1606
1607  type of a format is optional, but if it is specified, it must be unique
1608  across all formats.
1609  It is used to detect files of this format from the file contents.
1610  For some important file formats there is no MIME type officially registered
1611  with the 
1612 \begin_inset CommandInset href
1613 LatexCommand href
1614 name "IANA"
1615 target "http://www.iana.org/assignments/media-types/"
1616 literal "false"
1617
1618 \end_inset
1619
1620 .
1621  Therefore \SpecialChar LyX
1622  uses the extended list of MIME types as specified by 
1623 \begin_inset CommandInset href
1624 LatexCommand href
1625 name "freedesktop.org"
1626 target "http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec"
1627 literal "false"
1628
1629 \end_inset
1630
1631 .
1632 \end_layout
1633
1634 \begin_layout Standard
1635 The 
1636 \begin_inset Flex Noun
1637 status collapsed
1638
1639 \begin_layout Plain Layout
1640 Document format
1641 \end_layout
1642
1643 \end_inset
1644
1645  option tells \SpecialChar LyX
1646  that a format is suitable for document export.
1647  If this is set and if a suitable conversion route exists (see 
1648 \begin_inset CommandInset ref
1649 LatexCommand ref
1650 reference "sec:Converters"
1651
1652 \end_inset
1653
1654 ), the format will appear in the 
1655 \begin_inset Flex Noun
1656 status collapsed
1657
1658 \begin_layout Plain Layout
1659 File\SpecialChar menuseparator
1660 Export
1661 \end_layout
1662
1663 \end_inset
1664
1665  menu.
1666  The format will also appear in the 
1667 \begin_inset Flex Noun
1668 status collapsed
1669
1670 \begin_layout Plain Layout
1671 Document\SpecialChar menuseparator
1672 View
1673 \end_layout
1674
1675 \end_inset
1676
1677  menu if a viewer is specified for the format.
1678  Pure image formats, such as 
1679 \begin_inset Flex Code
1680 status collapsed
1681
1682 \begin_layout Plain Layout
1683 png
1684 \end_layout
1685
1686 \end_inset
1687
1688 , should not use this option.
1689  Formats that can both represent vector graphics and documents like 
1690 \begin_inset Flex Code
1691 status collapsed
1692
1693 \begin_layout Plain Layout
1694 pdf
1695 \end_layout
1696
1697 \end_inset
1698
1699  should use it.
1700 \end_layout
1701
1702 \begin_layout Standard
1703 The option 
1704 \begin_inset Flex Noun
1705 status collapsed
1706
1707 \begin_layout Plain Layout
1708 Vector graphics format
1709 \end_layout
1710
1711 \end_inset
1712
1713  tells \SpecialChar LyX
1714  that a format can contain vector graphics.
1715  This information is used to determine the target format of included graphics
1716  for 
1717 \begin_inset Flex Noun
1718 status collapsed
1719
1720 \begin_layout Plain Layout
1721 pdflatex
1722 \end_layout
1723
1724 \end_inset
1725
1726  export.
1727  Included graphics may need to be converted to either 
1728 \begin_inset Flex Noun
1729 status collapsed
1730
1731 \begin_layout Plain Layout
1732 pdf
1733 \end_layout
1734
1735 \end_inset
1736
1737
1738 \begin_inset Flex Noun
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 png
1743 \end_layout
1744
1745 \end_inset
1746
1747 , or 
1748 \begin_inset Flex Noun
1749 status collapsed
1750
1751 \begin_layout Plain Layout
1752 jpg
1753 \end_layout
1754
1755 \end_inset
1756
1757 , since 
1758 \begin_inset Flex Noun
1759 status collapsed
1760
1761 \begin_layout Plain Layout
1762 pdflatex
1763 \end_layout
1764
1765 \end_inset
1766
1767  cannot handle other image formats.
1768  If an included graphic is not already in 
1769 \begin_inset Flex Noun
1770 status collapsed
1771
1772 \begin_layout Plain Layout
1773 pdf
1774 \end_layout
1775
1776 \end_inset
1777
1778
1779 \begin_inset Flex Noun
1780 status collapsed
1781
1782 \begin_layout Plain Layout
1783 png
1784 \end_layout
1785
1786 \end_inset
1787
1788 , or 
1789 \begin_inset Flex Noun
1790 status collapsed
1791
1792 \begin_layout Plain Layout
1793 jpg
1794 \end_layout
1795
1796 \end_inset
1797
1798  format, it is converted to 
1799 \begin_inset Flex Noun
1800 status collapsed
1801
1802 \begin_layout Plain Layout
1803 pdf
1804 \end_layout
1805
1806 \end_inset
1807
1808  if the vector format option is set, and otherwise to 
1809 \begin_inset Flex Noun
1810 status collapsed
1811
1812 \begin_layout Plain Layout
1813 png
1814 \end_layout
1815
1816 \end_inset
1817
1818 .
1819 \end_layout
1820
1821 \begin_layout Section
1822 Copiers
1823 \end_layout
1824
1825 \begin_layout Standard
1826 Since all conversions from one format to another take place in \SpecialChar LyX
1827 's temporary
1828  directory, it is sometimes necessary to modify a file before copying it
1829  to the temporary directory in order that the conversion may be performed.
1830 \begin_inset Foot
1831 status collapsed
1832
1833 \begin_layout Plain Layout
1834 For example, the file may refer to other files—images, for example—using
1835  relative file names, and these may become invalid when the file is copied
1836  to the temporary directory.
1837 \end_layout
1838
1839 \end_inset
1840
1841  This is done by a Copier: It copies a file to (or from) the temporary directory
1842  and may modify it in the process.
1843 \end_layout
1844
1845 \begin_layout Standard
1846 The definitions of the copiers may use eight variables:
1847 \end_layout
1848
1849 \begin_layout Labeling
1850 \labelwidthstring 00.00.0000
1851 \begin_inset Flex Code
1852 status collapsed
1853
1854 \begin_layout Plain Layout
1855 $$s
1856 \end_layout
1857
1858 \end_inset
1859
1860  The \SpecialChar LyX
1861  system directory (e.
1862 \begin_inset space \thinspace{}
1863 \end_inset
1864
1865 g.
1866 \begin_inset space \space{}
1867 \end_inset
1868
1869
1870 \begin_inset Flex Noun
1871 status collapsed
1872
1873 \begin_layout Plain Layout
1874 /usr/share/lyx
1875 \end_layout
1876
1877 \end_inset
1878
1879 ).
1880 \end_layout
1881
1882 \begin_layout Labeling
1883 \labelwidthstring 00.00.0000
1884 \begin_inset Flex Code
1885 status collapsed
1886
1887 \begin_layout Plain Layout
1888 $$i
1889 \end_layout
1890
1891 \end_inset
1892
1893  The input file
1894 \end_layout
1895
1896 \begin_layout Labeling
1897 \labelwidthstring 00.00.0000
1898 \begin_inset Flex Code
1899 status collapsed
1900
1901 \begin_layout Plain Layout
1902 $$o
1903 \end_layout
1904
1905 \end_inset
1906
1907  The output file
1908 \end_layout
1909
1910 \begin_layout Labeling
1911 \labelwidthstring 00.00.0000
1912 \begin_inset Flex Code
1913 status collapsed
1914
1915 \begin_layout Plain Layout
1916 $$b
1917 \end_layout
1918
1919 \end_inset
1920
1921  The base name (without filename extension) in the \SpecialChar LyX
1922  temporary directory
1923 \end_layout
1924
1925 \begin_layout Labeling
1926 \labelwidthstring 00.00.0000
1927 \begin_inset Flex Code
1928 status collapsed
1929
1930 \begin_layout Plain Layout
1931 $$p
1932 \end_layout
1933
1934 \end_inset
1935
1936  The full directory path of the \SpecialChar LyX
1937  temporary directory
1938 \end_layout
1939
1940 \begin_layout Labeling
1941 \labelwidthstring 00.00.0000
1942 \begin_inset Flex Code
1943 status collapsed
1944
1945 \begin_layout Plain Layout
1946 $$r
1947 \end_layout
1948
1949 \end_inset
1950
1951  The full pathname to the original \SpecialChar LyX
1952  file being processed
1953 \end_layout
1954
1955 \begin_layout Labeling
1956 \labelwidthstring 00.00.0000
1957 \begin_inset Flex Code
1958 status collapsed
1959
1960 \begin_layout Plain Layout
1961 $$f
1962 \end_layout
1963
1964 \end_inset
1965
1966  The filename (without any directory path) of the \SpecialChar LyX
1967  file.
1968 \end_layout
1969
1970 \begin_layout Labeling
1971 \labelwidthstring 00.00.0000
1972 \begin_inset Flex Code
1973 status collapsed
1974
1975 \begin_layout Plain Layout
1976 $$l
1977 \end_layout
1978
1979 \end_inset
1980
1981  The `\SpecialChar LaTeX
1982  name'
1983 \end_layout
1984
1985 \begin_layout Standard
1986 The latter should be the filename as it would be used in a \SpecialChar LaTeX
1987 's 
1988 \series bold
1989
1990 \backslash
1991 include
1992 \series default
1993  command.
1994  It is relevant only when exporting files suitable for such inclusion.
1995 \end_layout
1996
1997 \begin_layout Standard
1998 Copiers can be used to do almost anything with output files.
1999  For example, suppose you want generated pdf files to be copied to a special
2000  directory, 
2001 \begin_inset Flex Code
2002 status collapsed
2003
2004 \begin_layout Plain Layout
2005 /home/you/pdf/
2006 \end_layout
2007
2008 \end_inset
2009
2010 .
2011  Then you could write a shell script such as this one:
2012 \end_layout
2013
2014 \begin_layout Standard
2015 \begin_inset listings
2016 inline false
2017 status open
2018
2019 \begin_layout Plain Layout
2020
2021 #!/bin/bash
2022 \end_layout
2023
2024 \begin_layout Plain Layout
2025
2026 FROMFILE=$1
2027 \end_layout
2028
2029 \begin_layout Plain Layout
2030
2031 TOFILE=`basename $2`
2032 \end_layout
2033
2034 \begin_layout Plain Layout
2035
2036 cp $FROMFILE /home/you/pdf/$TOFILE
2037 \end_layout
2038
2039 \end_inset
2040
2041 Save it in your local \SpecialChar LyX
2042  directory—say, 
2043 \begin_inset Flex Code
2044 status collapsed
2045
2046 \begin_layout Plain Layout
2047 /home/you/.lyx/scripts/pdfcopier.sh
2048 \end_layout
2049
2050 \end_inset
2051
2052 —and make it executable, if you need to do so on your platform.
2053  Then, in the 
2054 \begin_inset Flex Noun
2055 status collapsed
2056
2057 \begin_layout Plain Layout
2058 Tools\SpecialChar menuseparator
2059 Preferences
2060 \end_layout
2061
2062 \end_inset
2063
2064  dialog, select under 
2065 \begin_inset Flex Noun
2066 status collapsed
2067
2068 \begin_layout Plain Layout
2069 File Handling\SpecialChar menuseparator
2070 File formats
2071 \end_layout
2072
2073 \end_inset
2074
2075  the 
2076 \begin_inset Flex Noun
2077 status collapsed
2078
2079 \begin_layout Plain Layout
2080 PDF(pdflatex)
2081 \end_layout
2082
2083 \end_inset
2084
2085  format—or one of the other pdf formats—and enter 
2086 \begin_inset Flex Code
2087 status collapsed
2088
2089 \begin_layout Plain Layout
2090 pdfcopier.sh $$i $$o
2091 \end_layout
2092
2093 \end_inset
2094
2095  into the 
2096 \begin_inset Flex Noun
2097 status collapsed
2098
2099 \begin_layout Plain Layout
2100 Copier
2101 \end_layout
2102
2103 \end_inset
2104
2105  field.
2106  
2107 \end_layout
2108
2109 \begin_layout Standard
2110 Copiers are used by \SpecialChar LyX
2111  in various of its own conversions.
2112  For example, if appropriate programs are found, \SpecialChar LyX
2113  will automatically install
2114  copiers for the 
2115 \begin_inset Flex Noun
2116 status collapsed
2117
2118 \begin_layout Plain Layout
2119 HTML
2120 \end_layout
2121
2122 \end_inset
2123
2124  and 
2125 \begin_inset Flex Noun
2126 status collapsed
2127
2128 \begin_layout Plain Layout
2129 HTML
2130 \begin_inset space ~
2131 \end_inset
2132
2133 (MS Word)
2134 \end_layout
2135
2136 \end_inset
2137
2138  formats.
2139  When these formats are exported, the copier sees that not just the main
2140  HTML file but various associated files (style files, images, etc.) are also
2141  copied.
2142  All these files are written to a subdirectory of the directory in which
2143  the original \SpecialChar LyX
2144  file was found.
2145 \begin_inset Foot
2146 status collapsed
2147
2148 \begin_layout Plain Layout
2149 This copier can be customized.
2150  The optional 
2151 \begin_inset Quotes eld
2152 \end_inset
2153
2154 -e
2155 \begin_inset Quotes erd
2156 \end_inset
2157
2158  argument takes a comma-separated list of extensions to be copied; if it
2159  is omitted, all files will be copied.
2160  The 
2161 \begin_inset Quotes eld
2162 \end_inset
2163
2164 -t
2165 \begin_inset Quotes erd
2166 \end_inset
2167
2168  argument determines the extension added to the generated directory.
2169  By default, it is 
2170 \begin_inset Quotes eld
2171 \end_inset
2172
2173
2174 \begin_inset Flex Noun
2175 status collapsed
2176
2177 \begin_layout Plain Layout
2178 LyXconv
2179 \end_layout
2180
2181 \end_inset
2182
2183
2184 \begin_inset Quotes erd
2185 \end_inset
2186
2187 , so HTML generated from 
2188 \begin_inset Flex Noun
2189 status collapsed
2190
2191 \begin_layout Plain Layout
2192 /path/to/filename.lyx
2193 \end_layout
2194
2195 \end_inset
2196
2197  will end up in 
2198 \begin_inset Flex Noun
2199 status collapsed
2200
2201 \begin_layout Plain Layout
2202 /path/to/filename.html.LyXconv
2203 \end_layout
2204
2205 \end_inset
2206
2207 .
2208  
2209 \end_layout
2210
2211 \end_inset
2212
2213
2214 \end_layout
2215
2216 \begin_layout Section
2217 Converters
2218 \begin_inset CommandInset label
2219 LatexCommand label
2220 name "sec:Converters"
2221
2222 \end_inset
2223
2224
2225 \end_layout
2226
2227 \begin_layout Standard
2228 You can define your own Converters to convert files between different formats.
2229  This is done in the 
2230 \begin_inset Flex Noun
2231 status collapsed
2232
2233 \begin_layout Plain Layout
2234 Tools\SpecialChar menuseparator
2235 Preferences\SpecialChar menuseparator
2236 File Handling\SpecialChar menuseparator
2237 Converters
2238 \end_layout
2239
2240 \end_inset
2241
2242  dialog.
2243 \end_layout
2244
2245 \begin_layout Standard
2246 To define a new converter, select the 
2247 \begin_inset Flex Noun
2248 status collapsed
2249
2250 \begin_layout Plain Layout
2251 From
2252 \begin_inset space ~
2253 \end_inset
2254
2255 format
2256 \end_layout
2257
2258 \end_inset
2259
2260  and 
2261 \begin_inset Flex Noun
2262 status collapsed
2263
2264 \begin_layout Plain Layout
2265 To
2266 \begin_inset space ~
2267 \end_inset
2268
2269 format
2270 \end_layout
2271
2272 \end_inset
2273
2274  from the drop-down lists, enter the command needed for the conversion,
2275  and then press the 
2276 \begin_inset Flex Noun
2277 status collapsed
2278
2279 \begin_layout Plain Layout
2280 Add
2281 \end_layout
2282
2283 \end_inset
2284
2285  button.
2286  Several variables can be used in the definition of converters:
2287 \end_layout
2288
2289 \begin_layout Labeling
2290 \labelwidthstring 00.00.0000
2291 \begin_inset Flex Code
2292 status collapsed
2293
2294 \begin_layout Plain Layout
2295 $$s
2296 \end_layout
2297
2298 \end_inset
2299
2300  The \SpecialChar LyX
2301  system directory
2302 \end_layout
2303
2304 \begin_layout Labeling
2305 \labelwidthstring 00.00.0000
2306 \begin_inset Flex Code
2307 status collapsed
2308
2309 \begin_layout Plain Layout
2310 $$i
2311 \end_layout
2312
2313 \end_inset
2314
2315  The input file
2316 \end_layout
2317
2318 \begin_layout Labeling
2319 \labelwidthstring 00.00.0000
2320 \begin_inset Flex Code
2321 status collapsed
2322
2323 \begin_layout Plain Layout
2324 $$o
2325 \end_layout
2326
2327 \end_inset
2328
2329  The output file
2330 \end_layout
2331
2332 \begin_layout Labeling
2333 \labelwidthstring 00.00.0000
2334 \begin_inset Flex Code
2335 status collapsed
2336
2337 \begin_layout Plain Layout
2338 $$b
2339 \end_layout
2340
2341 \end_inset
2342
2343  The base filename of the input file (i.
2344 \begin_inset space \thinspace{}
2345 \end_inset
2346
2347 g., without the extension)
2348 \end_layout
2349
2350 \begin_layout Labeling
2351 \labelwidthstring 00.00.0000
2352 \begin_inset Flex Code
2353 status collapsed
2354
2355 \begin_layout Plain Layout
2356 $$p
2357 \end_layout
2358
2359 \end_inset
2360
2361  The path to the input file
2362 \end_layout
2363
2364 \begin_layout Labeling
2365 \labelwidthstring 00.00.0000
2366 \begin_inset Flex Code
2367 status collapsed
2368
2369 \begin_layout Plain Layout
2370 $$r
2371 \end_layout
2372
2373 \end_inset
2374
2375  The path to the original input file (this is different from $$p when a
2376  chain of converters is called)
2377 \end_layout
2378
2379 \begin_layout Labeling
2380 \labelwidthstring 00.00.0000
2381 \begin_inset Flex Code
2382 status collapsed
2383
2384 \begin_layout Plain Layout
2385 $$e
2386 \end_layout
2387
2388 \end_inset
2389
2390  The iconv name for the encoding of the document.
2391 \end_layout
2392
2393 \begin_layout Standard
2394 In the 
2395 \begin_inset Flex Noun
2396 status collapsed
2397
2398 \begin_layout Plain Layout
2399 Extra
2400 \begin_inset space ~
2401 \end_inset
2402
2403 Flag
2404 \end_layout
2405
2406 \end_inset
2407
2408  field you can enter the following flags, separated by commas:
2409 \end_layout
2410
2411 \begin_layout Labeling
2412 \labelwidthstring 00.00.0000
2413 \begin_inset Flex Code
2414 status collapsed
2415
2416 \begin_layout Plain Layout
2417 latex
2418 \change_inserted -712698321 1524656940
2419 =flavor
2420 \change_unchanged
2421
2422 \end_layout
2423
2424 \end_inset
2425
2426  This converter runs some form of \SpecialChar LaTeX
2427 .
2428  This will make \SpecialChar LyX
2429 's \SpecialChar LaTeX
2430  error logs available.
2431
2432 \change_inserted -712698321 1524657018
2433  The optional 
2434 \begin_inset Flex Code
2435 status open
2436
2437 \begin_layout Plain Layout
2438
2439 \change_inserted -712698321 1524657012
2440 flavor
2441 \change_unchanged
2442
2443 \end_layout
2444
2445 \end_inset
2446
2447  value specifies the form of \SpecialChar LaTeX
2448  that is run (
2449 \begin_inset Flex Code
2450 status open
2451
2452 \begin_layout Plain Layout
2453
2454 \change_inserted -712698321 1524657005
2455 latex, pdflatex, platex, xetex, luatex
2456 \change_unchanged
2457
2458 \end_layout
2459
2460 \end_inset
2461
2462 ).
2463  If no value is specified, 
2464 \begin_inset Flex Code
2465 status open
2466
2467 \begin_layout Plain Layout
2468
2469 \change_inserted -712698321 1524657018
2470 latex
2471 \change_unchanged
2472
2473 \end_layout
2474
2475 \end_inset
2476
2477  is used.
2478 \change_unchanged
2479
2480 \end_layout
2481
2482 \begin_layout Labeling
2483 \labelwidthstring 00.00.0000
2484 \begin_inset Flex Code
2485 status collapsed
2486
2487 \begin_layout Plain Layout
2488 needaux
2489 \change_inserted -712698321 1524656935
2490 =flavor
2491 \change_unchanged
2492
2493 \end_layout
2494
2495 \end_inset
2496
2497  Needs the \SpecialChar LaTeX
2498  
2499 \begin_inset Flex Noun
2500 status collapsed
2501
2502 \begin_layout Plain Layout
2503 .aux
2504 \end_layout
2505
2506 \end_inset
2507
2508  file for the conversion.
2509
2510 \change_inserted -712698321 1524657047
2511  The optional 
2512 \begin_inset Flex Code
2513 status open
2514
2515 \begin_layout Plain Layout
2516
2517 \change_inserted -712698321 1524657030
2518 flavor
2519 \end_layout
2520
2521 \end_inset
2522
2523  value specifies the form of \SpecialChar LaTeX
2524  that is run in order to generate the 
2525 \begin_inset Flex Noun
2526 status collapsed
2527
2528 \begin_layout Plain Layout
2529
2530 \change_inserted -712698321 1524657047
2531 .aux
2532 \end_layout
2533
2534 \end_inset
2535
2536  file (
2537 \begin_inset Flex Code
2538 status open
2539
2540 \begin_layout Plain Layout
2541
2542 \change_inserted -712698321 1524657030
2543 latex, pdflatex, platex, xetex, luatex
2544 \end_layout
2545
2546 \end_inset
2547
2548 ).
2549  If no value is specified, 
2550 \begin_inset Flex Code
2551 status open
2552
2553 \begin_layout Plain Layout
2554
2555 \change_inserted -712698321 1524657030
2556 latex
2557 \end_layout
2558
2559 \end_inset
2560
2561  is used.
2562 \change_unchanged
2563
2564 \end_layout
2565
2566 \begin_layout Labeling
2567 \labelwidthstring 00.00.0000
2568 \begin_inset Flex Code
2569 status collapsed
2570
2571 \begin_layout Plain Layout
2572 nice
2573 \end_layout
2574
2575 \end_inset
2576
2577  Needs a 
2578 \begin_inset Quotes eld
2579 \end_inset
2580
2581 nice
2582 \begin_inset Quotes erd
2583 \end_inset
2584
2585  file from the backend, which in practice means a \SpecialChar LaTeX
2586  file like the one we
2587  would export, without 
2588 \begin_inset Flex Code
2589 status collapsed
2590
2591 \begin_layout Plain Layout
2592 input@path
2593 \end_layout
2594
2595 \end_inset
2596
2597 .
2598 \end_layout
2599
2600 \begin_layout Labeling
2601 \labelwidthstring 00.00.0000
2602 \begin_inset Flex Code
2603 status collapsed
2604
2605 \begin_layout Plain Layout
2606 xml
2607 \end_layout
2608
2609 \end_inset
2610
2611  Output is XML.
2612 \end_layout
2613
2614 \begin_layout Standard
2615 The following three flags are not really flags at all because they take
2616  an argument in the 
2617 \begin_inset Flex Noun
2618 status collapsed
2619
2620 \begin_layout Plain Layout
2621 key
2622 \begin_inset space ~
2623 \end_inset
2624
2625 =
2626 \begin_inset space ~
2627 \end_inset
2628
2629 value
2630 \end_layout
2631
2632 \end_inset
2633
2634  format:
2635 \end_layout
2636
2637 \begin_layout Labeling
2638 \labelwidthstring 00.00.0000
2639
2640 \change_inserted -712698321 1523206314
2641 \begin_inset Flex Code
2642 status collapsed
2643
2644 \begin_layout Plain Layout
2645
2646 \change_inserted -712698321 1523206193
2647 hyperref-driver
2648 \end_layout
2649
2650 \end_inset
2651
2652  The name of the driver that needs to be loaded with the 
2653 \family sans
2654 hyperref
2655 \family default
2656  package for this converter.
2657  The loading of the correct driver is necessary to get some PDF-specific
2658  features.
2659  See the 
2660 \family sans
2661 hyperref
2662 \family default
2663  manual for details.
2664 \end_layout
2665
2666 \begin_layout Labeling
2667 \labelwidthstring 00.00.0000
2668 \begin_inset Flex Code
2669 status collapsed
2670
2671 \begin_layout Plain Layout
2672 parselog
2673 \end_layout
2674
2675 \end_inset
2676
2677  If set, the converter's standard error will be redirected to a file 
2678 \begin_inset Flex Code
2679 status collapsed
2680
2681 \begin_layout Plain Layout
2682 infile.out
2683 \end_layout
2684
2685 \end_inset
2686
2687 , and the script given as argument will be run as: 
2688 \begin_inset Flex Code
2689 status collapsed
2690
2691 \begin_layout Plain Layout
2692 script < infile.out > infile.log
2693 \end_layout
2694
2695 \end_inset
2696
2697 .
2698  The argument may contain 
2699 \begin_inset Flex Code
2700 status collapsed
2701
2702 \begin_layout Plain Layout
2703 $$s
2704 \end_layout
2705
2706 \end_inset
2707
2708 .
2709 \end_layout
2710
2711 \begin_layout Labeling
2712 \labelwidthstring 00.00.0000
2713 \begin_inset Flex Code
2714 status collapsed
2715
2716 \begin_layout Plain Layout
2717 resultdir
2718 \end_layout
2719
2720 \end_inset
2721
2722  The name of the directory in which the converter will dump the generated
2723  files.
2724  \SpecialChar LyX
2725  will not create this directory, and it does not copy anything into it,
2726  though it will copy this directory to the destination.
2727  The argument may contain 
2728 \begin_inset Flex Code
2729 status collapsed
2730
2731 \begin_layout Plain Layout
2732 $$b
2733 \end_layout
2734
2735 \end_inset
2736
2737 , which will be replaced by the base name of the input and output files,
2738  respectively, when the directory is copied.
2739 \begin_inset Newline newline
2740 \end_inset
2741
2742 Note that resultdir and usetempdir make no sense together.
2743  The latter will be ignored if the former is given.
2744 \end_layout
2745
2746 \begin_layout Labeling
2747 \labelwidthstring 00.00.0000
2748 \begin_inset Flex Code
2749 status collapsed
2750
2751 \begin_layout Plain Layout
2752 resultfile
2753 \end_layout
2754
2755 \end_inset
2756
2757  Determines the output file name and may, contain 
2758 \begin_inset Flex Code
2759 status collapsed
2760
2761 \begin_layout Plain Layout
2762 $$b
2763 \end_layout
2764
2765 \end_inset
2766
2767 .
2768  Sensible only with resultdir and optional even then; if not given, it defaults
2769  to `index'.
2770 \end_layout
2771
2772 \begin_layout Standard
2773
2774 \change_inserted -712698321 1523206384
2775 A suitable hyperref-driver is set for some converters that are installed
2776  with \SpecialChar LyX
2777 .
2778  
2779 \change_deleted -712698321 1523206388
2780 None of these
2781 \change_inserted -712698321 1523206389
2782 The
2783 \change_unchanged
2784  last three
2785 \change_inserted -712698321 1523206400
2786  flags, however,
2787 \change_unchanged
2788  are presently 
2789 \change_inserted -712698321 1523206407
2790 not 
2791 \change_unchanged
2792 used in any of the 
2793 \change_inserted -712698321 1523206437
2794 pre-installed 
2795 \change_unchanged
2796 converters
2797 \change_deleted -712698321 1523206442
2798  that are installed with \SpecialChar LyX
2799
2800 \change_unchanged
2801 .
2802  
2803 \end_layout
2804
2805 \begin_layout Standard
2806 You do not have to define converters for all formats between which you want
2807  to convert.
2808  For example, you will note that there is no `\SpecialChar LyX
2809  to PostScript' converter,
2810  but \SpecialChar LyX
2811  will export PostScript.
2812  It does so by first creating a \SpecialChar LaTeX
2813  file (no converter needs to be defined
2814  for this) which is then converted to DVI using the `\SpecialChar LaTeX
2815  to DVI' converter,
2816  and finally converting the resulting DVI file to PostScript.
2817  \SpecialChar LyX
2818  finds such `chains' of converters automatically, and it will always choose
2819  the shortest possible chain.
2820  You can, though, still define multiple conversion methods between file
2821  formats.
2822  For example, the standard \SpecialChar LyX
2823  configuration provides five ways to convert
2824  \SpecialChar LaTeX
2825  to PDF:
2826 \end_layout
2827
2828 \begin_layout Enumerate
2829 Directly, using 
2830 \begin_inset Flex Noun
2831 status collapsed
2832
2833 \begin_layout Plain Layout
2834 pdflatex
2835 \end_layout
2836
2837 \end_inset
2838
2839
2840 \end_layout
2841
2842 \begin_layout Enumerate
2843 via (DVI and) PostScript, using 
2844 \begin_inset Flex Noun
2845 status collapsed
2846
2847 \begin_layout Plain Layout
2848 ps2pdf
2849 \end_layout
2850
2851 \end_inset
2852
2853
2854 \end_layout
2855
2856 \begin_layout Enumerate
2857 via DVI, using 
2858 \begin_inset Flex Noun
2859 status collapsed
2860
2861 \begin_layout Plain Layout
2862 dvipdfm
2863 \end_layout
2864
2865 \end_inset
2866
2867
2868 \end_layout
2869
2870 \begin_layout Enumerate
2871 directly using 
2872 \begin_inset Flex Noun
2873 status collapsed
2874
2875 \begin_layout Plain Layout
2876 Xe\SpecialChar TeX
2877
2878 \end_layout
2879
2880 \end_inset
2881
2882
2883 \end_layout
2884
2885 \begin_layout Enumerate
2886 directly using 
2887 \begin_inset Flex Noun
2888 status collapsed
2889
2890 \begin_layout Plain Layout
2891 Lua\SpecialChar TeX
2892
2893 \end_layout
2894
2895 \end_inset
2896
2897
2898 \end_layout
2899
2900 \begin_layout Standard
2901 To define such alternate chains, you must define multiple target `file formats',
2902  as described in 
2903 \begin_inset CommandInset ref
2904 LatexCommand ref
2905 reference "sec:Formats"
2906
2907 \end_inset
2908
2909 .
2910  For example, in the standard configuration, the formats named 
2911 \begin_inset Flex Noun
2912 status collapsed
2913
2914 \begin_layout Plain Layout
2915 pdf
2916 \end_layout
2917
2918 \end_inset
2919
2920  (for 
2921 \begin_inset Flex Noun
2922 status collapsed
2923
2924 \begin_layout Plain Layout
2925 ps2pdf
2926 \end_layout
2927
2928 \end_inset
2929
2930 ), 
2931 \begin_inset Flex Noun
2932 status collapsed
2933
2934 \begin_layout Plain Layout
2935 pdf2
2936 \end_layout
2937
2938 \end_inset
2939
2940  (for 
2941 \begin_inset Flex Noun
2942 status collapsed
2943
2944 \begin_layout Plain Layout
2945 pdflatex
2946 \end_layout
2947
2948 \end_inset
2949
2950 ), 
2951 \begin_inset Flex Noun
2952 status collapsed
2953
2954 \begin_layout Plain Layout
2955 pdf3
2956 \end_layout
2957
2958 \end_inset
2959
2960  (for 
2961 \begin_inset Flex Noun
2962 status collapsed
2963
2964 \begin_layout Plain Layout
2965 dvipdfm
2966 \end_layout
2967
2968 \end_inset
2969
2970 ), 
2971 \begin_inset Flex Noun
2972 status collapsed
2973
2974 \begin_layout Plain Layout
2975 pdf4
2976 \end_layout
2977
2978 \end_inset
2979
2980  (for 
2981 \begin_inset Flex Noun
2982 status collapsed
2983
2984 \begin_layout Plain Layout
2985 Xe\SpecialChar TeX
2986
2987 \end_layout
2988
2989 \end_inset
2990
2991 ), and 
2992 \begin_inset Flex Noun
2993 status collapsed
2994
2995 \begin_layout Plain Layout
2996 pdf5
2997 \end_layout
2998
2999 \end_inset
3000
3001  (for 
3002 \begin_inset Flex Noun
3003 status collapsed
3004
3005 \begin_layout Plain Layout
3006 Lua\SpecialChar TeX
3007
3008 \end_layout
3009
3010 \end_inset
3011
3012 ) are defined, all of which share the extension 
3013 \begin_inset Flex Noun
3014 status collapsed
3015
3016 \begin_layout Plain Layout
3017 .pdf
3018 \end_layout
3019
3020 \end_inset
3021
3022 , and which correspond to the conversion methods just mentioned.
3023 \end_layout
3024
3025 \begin_layout Chapter
3026 Internationalizing \SpecialChar LyX
3027
3028 \begin_inset CommandInset label
3029 LatexCommand label
3030 name "cha:Internationalizing-LyX"
3031
3032 \end_inset
3033
3034
3035 \end_layout
3036
3037 \begin_layout Standard
3038 \SpecialChar LyX
3039  supports using a translated interface.
3040  Last time we checked, \SpecialChar LyX
3041  provided text in thirty languages.
3042  The language of choice is called your 
3043 \emph on
3044 locale
3045 \emph default
3046 .
3047  (For further reading on locale settings, see also the documentation for
3048  locale that comes with your operating system.
3049  For Linux, the manual page for 
3050 \begin_inset Flex Code
3051 status collapsed
3052
3053 \begin_layout Plain Layout
3054 locale(5)
3055 \end_layout
3056
3057 \end_inset
3058
3059  could be a good place to start).
3060 \end_layout
3061
3062 \begin_layout Standard
3063 Notice that these translations will work, but do contain a few flaws.
3064  In particular, all dialogs have been designed with the English text in
3065  mind, which means that some of the translated text will be too large to
3066  fit within the space allocated.
3067  This is only a display problem and will not cause any harm.
3068  Also, you will find that some of the translations do not define shortcut
3069  keys for everything.
3070  Sometimes, there are simply not enough free letters to do it.
3071  Other times, the translator just hasn't got around to doing it yet.
3072  Our localization team, which you may wish to join,
3073 \begin_inset Foot
3074 status collapsed
3075
3076 \begin_layout Plain Layout
3077 If you are a fluent speaker of a language other than English, joining these
3078  teams is a great way to give back to the \SpecialChar LyX
3079  community!
3080 \end_layout
3081
3082 \end_inset
3083
3084  will of course try to fix these shortcomings in future versions of \SpecialChar LyX
3085 .
3086 \end_layout
3087
3088 \begin_layout Section
3089 Translating \SpecialChar LyX
3090
3091 \end_layout
3092
3093 \begin_layout Subsection
3094 Translating the graphical user interface (text messages).
3095 \end_layout
3096
3097 \begin_layout Standard
3098 \SpecialChar LyX
3099  uses the GNU 
3100 \begin_inset Flex Code
3101 status collapsed
3102
3103 \begin_layout Plain Layout
3104 gettext
3105 \end_layout
3106
3107 \end_inset
3108
3109  library to handle the internationalization of the interface.
3110  To have \SpecialChar LyX
3111  speak your favorite language in all menus and dialogs, you need
3112  a 
3113 \begin_inset Flex Code
3114 status collapsed
3115
3116 \begin_layout Plain Layout
3117 po
3118 \end_layout
3119
3120 \end_inset
3121
3122 -file for that language.
3123  When this is available, you'll have to generate a 
3124 \begin_inset Flex Code
3125 status collapsed
3126
3127 \begin_layout Plain Layout
3128 mo
3129 \end_layout
3130
3131 \end_inset
3132
3133 -file from it and install the 
3134 \begin_inset Flex Code
3135 status collapsed
3136
3137 \begin_layout Plain Layout
3138 mo
3139 \end_layout
3140
3141 \end_inset
3142
3143 -file.
3144  The process of doing all of this is explained in the documentation for
3145  GNU 
3146 \begin_inset Flex Code
3147 status collapsed
3148
3149 \begin_layout Plain Layout
3150 gettext
3151 \end_layout
3152
3153 \end_inset
3154
3155 .
3156  It is possible to do this just for yourself, but if you're going to do
3157  it, you might as well share the results of your labors with the rest of
3158  the \SpecialChar LyX
3159  community.
3160  Send a message to the \SpecialChar LyX
3161  developers' list for more information about how
3162  to proceed.
3163 \end_layout
3164
3165 \begin_layout Standard
3166 In short, this is what you should do (xx denotes the language code):
3167 \end_layout
3168
3169 \begin_layout Itemize
3170 Check out the \SpecialChar LyX
3171  source code.
3172  (See the 
3173 \begin_inset CommandInset href
3174 LatexCommand href
3175 name "information on the web"
3176 target "https://www.lyx.org/HowToUseGIT"
3177 literal "false"
3178
3179 \end_inset
3180
3181 .)
3182 \end_layout
3183
3184 \begin_layout Itemize
3185 Copy the file 
3186 \begin_inset Flex Code
3187 status collapsed
3188
3189 \begin_layout Plain Layout
3190 lyx.pot
3191 \end_layout
3192
3193 \end_inset
3194
3195  to the folder of the 
3196 \begin_inset Flex Code
3197 status collapsed
3198
3199 \begin_layout Plain Layout
3200 **.po
3201 \end_layout
3202
3203 \end_inset
3204
3205  files.
3206  Then rename it to 
3207 \begin_inset Flex Code
3208 status collapsed
3209
3210 \begin_layout Plain Layout
3211 xx.po
3212 \end_layout
3213
3214 \end_inset
3215
3216 .
3217  (If 
3218 \begin_inset Flex Code
3219 status collapsed
3220
3221 \begin_layout Plain Layout
3222 lyx.pot
3223 \end_layout
3224
3225 \end_inset
3226
3227  doesn't exist anywhere, it can be remade with the console command 
3228 \begin_inset Flex Code
3229 status collapsed
3230
3231 \begin_layout Plain Layout
3232 make lyx.pot
3233 \end_layout
3234
3235 \end_inset
3236
3237  in that directory, or you can use an existing po-file for some other language
3238  as a template).
3239 \end_layout
3240
3241 \begin_layout Itemize
3242 Edit 
3243 \begin_inset Flex Code
3244 status collapsed
3245
3246 \begin_layout Plain Layout
3247 xx.po
3248 \end_layout
3249
3250 \end_inset
3251
3252 .
3253 \begin_inset Foot
3254 status collapsed
3255
3256 \begin_layout Plain Layout
3257 This is just a text file, so it can be edited in any text editor.
3258  But there are also specialized programs that support such editing, such
3259  as 
3260 \family typewriter
3261 Poedit
3262 \family default
3263  (for all platforms) or 
3264 \family typewriter
3265 KBabel
3266 \family default
3267  (for KDE).
3268  
3269 \family typewriter
3270 Emacs
3271 \family default
3272  contains a `mode' for editing 
3273 \begin_inset Flex Code
3274 status collapsed
3275
3276 \begin_layout Plain Layout
3277 po
3278 \end_layout
3279
3280 \end_inset
3281
3282  files, as well, see 
3283 \begin_inset Flex URL
3284 status open
3285
3286 \begin_layout Plain Layout
3287
3288 https://www.gnu.org/software/gettext/manual/html_node/PO-Mode.html#PO-Mode
3289 \end_layout
3290
3291 \end_inset
3292
3293 .
3294 \end_layout
3295
3296 \end_inset
3297
3298  For some menu- and widget-labels, there are also shortcut keys that should
3299  be translated.
3300  Those keys are marked after a `|', and should be translated according to
3301  the words and phrases of the language.
3302  You should also fill also out the information at the beginning of the new
3303  
3304 \begin_inset Flex Code
3305 status collapsed
3306
3307 \begin_layout Plain Layout
3308 po
3309 \end_layout
3310
3311 \end_inset
3312
3313 -file with your email-address, etc., so people know where to reach you with
3314  suggestions and entertaining flames.
3315 \end_layout
3316
3317 \begin_layout Standard
3318 If you are just doing this on your own, then:
3319 \end_layout
3320
3321 \begin_layout Itemize
3322 Generate 
3323 \begin_inset Flex Code
3324 status collapsed
3325
3326 \begin_layout Plain Layout
3327 xx.mo
3328 \end_layout
3329
3330 \end_inset
3331
3332 .
3333  This can be done with 
3334 \begin_inset Flex Code
3335 status collapsed
3336
3337 \begin_layout Plain Layout
3338 msgfmt -o xx.mo < xx.po
3339 \end_layout
3340
3341 \end_inset
3342
3343 .
3344 \end_layout
3345
3346 \begin_layout Itemize
3347 Copy the 
3348 \begin_inset Flex Code
3349 status collapsed
3350
3351 \begin_layout Plain Layout
3352 mo
3353 \end_layout
3354
3355 \end_inset
3356
3357 -file to your locale-tree, at the correct directory for application messages
3358  for the language
3359 \series bold
3360  
3361 \series default
3362 xx, and under the name 
3363 \begin_inset Flex Code
3364 status collapsed
3365
3366 \begin_layout Plain Layout
3367 lyx.mo
3368 \end_layout
3369
3370 \end_inset
3371
3372  (e.
3373 \begin_inset space \thinspace{}
3374 \end_inset
3375
3376 g.
3377 \begin_inset space \space{}
3378 \end_inset
3379
3380
3381 \begin_inset Flex Code
3382 status collapsed
3383
3384 \begin_layout Plain Layout
3385 /usr/local/share/locale/xx/LC_MESSAGES/lyx.mo
3386 \end_layout
3387
3388 \end_inset
3389
3390
3391 \series bold
3392 .
3393 \end_layout
3394
3395 \begin_layout Standard
3396 As said, however, it would be best if the new 
3397 \begin_inset Flex Code
3398 status collapsed
3399
3400 \begin_layout Plain Layout
3401 po
3402 \end_layout
3403
3404 \end_inset
3405
3406  file could be added to the \SpecialChar LyX
3407  distribution, so others can use it.
3408  Adding it involves making additional changes to \SpecialChar LyX
3409 .
3410  So send an email to the developers' mailing list if you're interested in
3411  doing that.
3412 \end_layout
3413
3414 \begin_layout Subsubsection
3415 Ambiguous messages
3416 \end_layout
3417
3418 \begin_layout Standard
3419 Sometimes it turns out that one English message needs to be translated into
3420  different messages in the target language.
3421  One example is the message 
3422 \begin_inset Flex Code
3423 status collapsed
3424
3425 \begin_layout Plain Layout
3426 To
3427 \end_layout
3428
3429 \end_inset
3430
3431  which has the German translation 
3432 \lang german
3433 Nach
3434 \lang english
3435  or 
3436 \lang german
3437 Bis
3438 \lang english
3439 , depending upon exactly what the English 
3440 \begin_inset Quotes eld
3441 \end_inset
3442
3443 to
3444 \begin_inset Quotes erd
3445 \end_inset
3446
3447  means.
3448  GNU 
3449 \begin_inset Flex Code
3450 status collapsed
3451
3452 \begin_layout Plain Layout
3453 gettext
3454 \end_layout
3455
3456 \end_inset
3457
3458  does not handle such ambiguous translations.
3459  Therefore you have to add some context information to the message: Instead
3460  of 
3461 \begin_inset Flex Code
3462 status collapsed
3463
3464 \begin_layout Plain Layout
3465 To
3466 \end_layout
3467
3468 \end_inset
3469
3470  it becomes 
3471 \begin_inset Flex Code
3472 status collapsed
3473
3474 \begin_layout Plain Layout
3475 To[[as in 'From format x to format y']]
3476 \end_layout
3477
3478 \end_inset
3479
3480  and 
3481 \begin_inset Flex Code
3482 status collapsed
3483
3484 \begin_layout Plain Layout
3485 To[[as in 'From page x to page y']].
3486 \end_layout
3487
3488 \end_inset
3489
3490  Now the two occurrences of 
3491 \begin_inset Flex Code
3492 status collapsed
3493
3494 \begin_layout Plain Layout
3495 To
3496 \end_layout
3497
3498 \end_inset
3499
3500  are different for 
3501 \begin_inset Flex Code
3502 status collapsed
3503
3504 \begin_layout Plain Layout
3505 gettext
3506 \end_layout
3507
3508 \end_inset
3509
3510  and can be translated correctly to 
3511 \lang german
3512 Nach
3513 \lang english
3514  and 
3515 \lang german
3516 Bis
3517 \lang english
3518 , respectively.
3519 \end_layout
3520
3521 \begin_layout Standard
3522 Of course the context information needs to be stripped off the original
3523  message when no translation is used.
3524  Therefore you have to put it in double square brackets at the end of the
3525  message (see the example above).
3526  The translation mechanism of \SpecialChar LyX
3527  ensures that everything in double square
3528  brackets at the end of messages is removed before displaying the message.
3529 \end_layout
3530
3531 \begin_layout Subsection
3532 Translating the documentation.
3533 \end_layout
3534
3535 \begin_layout Standard
3536 The online documentation (in the 
3537 \begin_inset Flex Noun
3538 status collapsed
3539
3540 \begin_layout Plain Layout
3541 Help
3542 \end_layout
3543
3544 \end_inset
3545
3546 -menu) can (and should!) be translated.
3547  If there are translated versions of the documentation available
3548 \begin_inset Foot
3549 status collapsed
3550
3551 \begin_layout Plain Layout
3552 As of March 2008, at least some of the documents have been translated into
3553  fourteen languages, with the Tutorial available in a few more.
3554 \end_layout
3555
3556 \end_inset
3557
3558  and the locale is set accordingly, these will be used automagically by
3559  \SpecialChar LyX
3560 .
3561  \SpecialChar LyX
3562  looks for translated versions as 
3563 \begin_inset Flex Code
3564 status collapsed
3565
3566 \begin_layout Plain Layout
3567 LyXDir/doc/xx/DocName.lyx
3568 \end_layout
3569
3570 \end_inset
3571
3572 , where 
3573 \begin_inset Flex Code
3574 status collapsed
3575
3576 \begin_layout Plain Layout
3577 xx
3578 \end_layout
3579
3580 \end_inset
3581
3582  is the code for the language currently in use.
3583  If there are no translated documents, the default English versions will
3584  be displayed.
3585  Note that the translated versions must have the same filenames (
3586 \begin_inset Flex Code
3587 status collapsed
3588
3589 \begin_layout Plain Layout
3590 DocName
3591 \end_layout
3592
3593 \end_inset
3594
3595  above) as the original.
3596  If you feel up to translating the documentation (an excellent way to proof-read
3597  the original documentation by the way!), there are a few things you should
3598  do right away:
3599 \end_layout
3600
3601 \begin_layout Itemize
3602 Check out the documentation translation web page at 
3603 \begin_inset CommandInset href
3604 LatexCommand href
3605 name "https://www.lyx.org/Translation"
3606 target "https://www.lyx.org/Translation"
3607 literal "false"
3608
3609 \end_inset
3610
3611 .
3612  That way, you can find out which (if any) documents have already been translate
3613 d into your language.
3614  You can also find out who (if anyone) is organizing the effort to translate
3615  the documentation into your language.
3616  If no one is organizing the effort, please let us know that you're interested.
3617 \end_layout
3618
3619 \begin_layout Standard
3620 Once you get to actually translating, here's a few hints for you that may
3621  save you trouble:
3622 \end_layout
3623
3624 \begin_layout Itemize
3625 Join the documentation team! There is information on how to do that in 
3626 \begin_inset Flex Code
3627 status collapsed
3628
3629 \begin_layout Plain Layout
3630 Intro.lyx
3631 \end_layout
3632
3633 \end_inset
3634
3635  (
3636 \begin_inset Flex Noun
3637 status collapsed
3638
3639 \begin_layout Plain Layout
3640 Help\SpecialChar menuseparator
3641 Introduction
3642 \end_layout
3643
3644 \end_inset
3645
3646 ), which by the way is the first document you should translate.
3647 \end_layout
3648
3649 \begin_layout Itemize
3650 Learn the typographic conventions for the language you are translating to.
3651  Typography is an ancient art and over the centuries, a great variety of
3652  conventions have developed throughout different parts of the world.
3653  Also study the professional terminology amongst typographers in your country.
3654  Inventing your own terminology will only confuse the users.
3655  
3656 \emph on
3657 (Warning! Typography is addictive!)
3658 \end_layout
3659
3660 \begin_layout Itemize
3661 Make a copy of the document.
3662  This will be your working copy.
3663  You can use this as your personal translated help-file by placing it in
3664  your 
3665 \begin_inset Flex Code
3666 status collapsed
3667
3668 \begin_layout Plain Layout
3669 UserDir/doc/xx/
3670 \end_layout
3671
3672 \end_inset
3673
3674  directory.
3675 \begin_inset Note Greyedout
3676 status open
3677
3678 \begin_layout Plain Layout
3679
3680 \series bold
3681 Note:
3682 \series default
3683  For a complex document with external material (images, etc.), if you make
3684  a copy e.
3685 \begin_inset space \thinspace{}
3686 \end_inset
3687
3688 g.
3689 \begin_inset space \space{}
3690 \end_inset
3691
3692 in a temp dir, beware that the links to external material may be broken
3693  when the document is moved to a different place.
3694  The best way is to retrieve the \SpecialChar LyX
3695  tree from git (see 
3696 \begin_inset Flex URL
3697 status collapsed
3698
3699 \begin_layout Plain Layout
3700
3701 https://www.lyx.org/HowToUseGIT
3702 \end_layout
3703
3704 \end_inset
3705
3706 ) and to edit the doc file in place.
3707 \end_layout
3708
3709 \end_inset
3710
3711
3712 \end_layout
3713
3714 \begin_layout Itemize
3715 Sometimes the original document (from the \SpecialChar LyX
3716  team) will be updated.
3717  Use the source viewer at 
3718 \begin_inset CommandInset href
3719 LatexCommand href
3720 name "https://www.lyx.org/trac/timeline"
3721 target "https://www.lyx.org/trac/timeline"
3722 literal "false"
3723
3724 \end_inset
3725
3726  to see what has been changed.
3727  That way you can easily see which parts of the translated document need
3728  to be updated.
3729 \end_layout
3730
3731 \begin_layout Standard
3732 If you ever find an error in the original document, fix it and notify the
3733  rest of the documentation team of the changes! (You didn't forget to join
3734  the documentation team, did you?)
3735 \end_layout
3736
3737 \begin_layout Standard
3738 \begin_inset Branch OutDated
3739 inverted 0
3740 status collapsed
3741
3742 \begin_layout Section
3743 International Keyboard Support
3744 \end_layout
3745
3746 \begin_layout Standard
3747
3748 \emph on
3749 [Editor's Note: The following section is by
3750 \emph default
3751  
3752 \shape smallcaps
3753 \emph on
3754 Ivan Schreter
3755 \shape default
3756 .
3757  It needs to be fixed to conform to the new Documentation Style sheet and
3758  to make use of the new v1.0 features.
3759  The whole thing also needs to be merged with the section following it.-jw
3760  It may also be badly out of date.-rh (2008)]
3761 \end_layout
3762
3763 \begin_layout Subsection
3764 Defining Own Keymaps: Keymap File Format
3765 \end_layout
3766
3767 \begin_layout Standard
3768 Let's look at a keyboard definition file a little closer.
3769  It is a plain text file defining
3770 \end_layout
3771
3772 \begin_layout Itemize
3773 key-to-key or key-to-string translations
3774 \end_layout
3775
3776 \begin_layout Itemize
3777 dead keys
3778 \end_layout
3779
3780 \begin_layout Itemize
3781 dead keys exceptions
3782 \end_layout
3783
3784 \begin_layout Standard
3785 To define key-to-key or key-to-string translation, use this command:
3786 \end_layout
3787
3788 \begin_layout Quotation
3789 \begin_inset Flex Code
3790 status collapsed
3791
3792 \begin_layout Plain Layout
3793
3794 \backslash
3795 kmap
3796 \end_layout
3797
3798 \end_inset
3799
3800  
3801 \begin_inset Flex Code
3802 status collapsed
3803
3804 \begin_layout Plain Layout
3805 key
3806 \end_layout
3807
3808 \end_inset
3809
3810  outstring 
3811 \end_layout
3812
3813 \begin_layout Standard
3814 where 
3815 \begin_inset Flex Code
3816 status collapsed
3817
3818 \begin_layout Plain Layout
3819 key
3820 \end_layout
3821
3822 \end_inset
3823
3824  is the key to be translated and 
3825 \begin_inset Flex Code
3826 status collapsed
3827
3828 \begin_layout Plain Layout
3829 outstring
3830 \end_layout
3831
3832 \end_inset
3833
3834  is the string to be inserted into the document.
3835  To define dead keys, use:
3836 \end_layout
3837
3838 \begin_layout Quotation
3839 \begin_inset Flex Code
3840 status collapsed
3841
3842 \begin_layout Plain Layout
3843
3844 \backslash
3845 kmod
3846 \end_layout
3847
3848 \end_inset
3849
3850  
3851 \begin_inset Flex Code
3852 status collapsed
3853
3854 \begin_layout Plain Layout
3855 key
3856 \end_layout
3857
3858 \end_inset
3859
3860  deadkey
3861 \end_layout
3862
3863 \begin_layout Standard
3864 where 
3865 \begin_inset Flex Code
3866 status collapsed
3867
3868 \begin_layout Plain Layout
3869 key
3870 \end_layout
3871
3872 \end_inset
3873
3874  is a keyboard key and 
3875 \begin_inset Flex Code
3876 status collapsed
3877
3878 \begin_layout Plain Layout
3879 deadkey
3880 \end_layout
3881
3882 \end_inset
3883
3884  is dead key name.
3885  The following dead keys are supported (shortcut name is in parentheses):
3886 \end_layout
3887
3888 \begin_layout Quotation
3889
3890 \emph on
3891 Name
3892 \begin_inset space \hfill{}
3893 \end_inset
3894
3895 Example
3896 \end_layout
3897
3898 \begin_layout Quotation
3899 acute (acu)
3900 \begin_inset space \hfill{}
3901 \end_inset
3902
3903 áéíóú
3904 \end_layout
3905
3906 \begin_layout Quotation
3907 grave (gra)
3908 \begin_inset space \hfill{}
3909 \end_inset
3910
3911 àèìòù
3912 \end_layout
3913
3914 \begin_layout Quotation
3915 macron (mac)
3916 \begin_inset space \hfill{}
3917 \end_inset
3918
3919  ō
3920 \end_layout
3921
3922 \begin_layout Quotation
3923 tilde (til)
3924 \begin_inset space \hfill{}
3925 \end_inset
3926
3927 ñÑ
3928 \end_layout
3929
3930 \begin_layout Quotation
3931 underbar (underb)
3932 \begin_inset space \hfill{}
3933 \end_inset
3934
3935
3936 \begin_inset ERT
3937 status open
3938
3939 \begin_layout Plain Layout
3940
3941
3942 \backslash
3943 b o
3944 \end_layout
3945
3946 \end_inset
3947
3948
3949 \end_layout
3950
3951 \begin_layout Quotation
3952 cedilla (ced)
3953 \begin_inset space \hfill{}
3954 \end_inset
3955
3956 çÇ
3957 \end_layout
3958
3959 \begin_layout Quotation
3960 underdot (underd)
3961 \begin_inset space \hfill{}
3962 \end_inset
3963
3964
3965 \begin_inset ERT
3966 status open
3967
3968 \begin_layout Plain Layout
3969
3970
3971 \backslash
3972 d o
3973 \end_layout
3974
3975 \end_inset
3976
3977
3978 \end_layout
3979
3980 \begin_layout Quotation
3981 circumflex (circu)
3982 \begin_inset space \hfill{}
3983 \end_inset
3984
3985 âêîôû
3986 \end_layout
3987
3988 \begin_layout Quotation
3989 circle (circl)
3990 \begin_inset space \hfill{}
3991 \end_inset
3992
3993 ÅůŮ
3994 \end_layout
3995
3996 \begin_layout Quotation
3997 tie (tie)
3998 \begin_inset space \hfill{}
3999 \end_inset
4000
4001
4002 \begin_inset ERT
4003 status open
4004
4005 \begin_layout Plain Layout
4006
4007
4008 \backslash
4009 t o
4010 \end_layout
4011
4012 \end_inset
4013
4014
4015 \end_layout
4016
4017 \begin_layout Quotation
4018 breve (bre)
4019 \begin_inset space \hfill{}
4020 \end_inset
4021
4022 ă
4023 \begin_inset ERT
4024 status open
4025
4026 \begin_layout Plain Layout
4027
4028
4029 \backslash
4030 u o
4031 \end_layout
4032
4033 \end_inset
4034
4035
4036 \end_layout
4037
4038 \begin_layout Quotation
4039 caron (car)
4040 \begin_inset space \hfill{}
4041 \end_inset
4042
4043 čšž
4044 \end_layout
4045
4046 \begin_layout Quotation
4047 hungarian umlaut (hug)
4048 \begin_inset space \hfill{}
4049 \end_inset
4050
4051 őű
4052 \end_layout
4053
4054 \begin_layout Quotation
4055 umlaut (uml)
4056 \begin_inset space \hfill{}
4057 \end_inset
4058
4059 äöü
4060 \end_layout
4061
4062 \begin_layout Quotation
4063 dot (dot)
4064 \begin_inset space \hfill{}
4065 \end_inset
4066
4067 ż
4068 \begin_inset ERT
4069 status open
4070
4071 \begin_layout Plain Layout
4072
4073
4074 \backslash
4075 .s
4076 \end_layout
4077
4078 \end_inset
4079
4080
4081 \end_layout
4082
4083 \begin_layout Standard
4084 Since in many international keyboards there are exceptions to what some
4085  dead keys should do, you can define them using
4086 \end_layout
4087
4088 \begin_layout Quotation
4089 \begin_inset Flex Code
4090 status collapsed
4091
4092 \begin_layout Plain Layout
4093
4094 \backslash
4095 kxmod
4096 \end_layout
4097
4098 \end_inset
4099
4100  deadkey key outstring
4101 \end_layout
4102
4103 \begin_layout Standard
4104 For example, on Slovak keyboard, if you enter caron-o, it generates circumflex-o
4105 , so you put in
4106 \end_layout
4107
4108 \begin_layout Quotation
4109 \begin_inset Flex Code
4110 status collapsed
4111
4112 \begin_layout Plain Layout
4113
4114 \backslash
4115 kxmod
4116 \end_layout
4117
4118 \end_inset
4119
4120  caron o "
4121 \backslash
4122 ^o"
4123 \end_layout
4124
4125 \begin_layout Standard
4126 to make it work correctly.
4127  Also, you have to define as exceptions dead keys over i and j, to remove
4128  the dot from them before inserting an accent mark.
4129  I will change this when the time comes, but so far I haven't had time.
4130 \end_layout
4131
4132 \begin_layout Standard
4133 Oh, and about characters: backslash is escaped, so to enter it, you'll need
4134  double backslash.
4135  Also, quotes and 
4136 \begin_inset Flex Code
4137 status collapsed
4138
4139 \begin_layout Plain Layout
4140 #
4141 \end_layout
4142
4143 \end_inset
4144
4145  have different meaning.
4146  
4147 \begin_inset Flex Code
4148 status collapsed
4149
4150 \begin_layout Plain Layout
4151 #
4152 \end_layout
4153
4154 \end_inset
4155
4156  marks comments, quotes start and end \SpecialChar LaTeX
4157 -style commands.
4158  To enter quote, you'll need to use 
4159 \begin_inset Flex Code
4160 status collapsed
4161
4162 \begin_layout Plain Layout
4163
4164 \backslash
4165 "
4166 \end_layout
4167
4168 \end_inset
4169
4170 , to enter 
4171 \begin_inset Flex Code
4172 status collapsed
4173
4174 \begin_layout Plain Layout
4175 #
4176 \end_layout
4177
4178 \end_inset
4179
4180 , use 
4181 \begin_inset Flex Code
4182 status collapsed
4183
4184 \begin_layout Plain Layout
4185
4186 \backslash
4187 #
4188 \end_layout
4189
4190 \end_inset
4191
4192 .
4193 \end_layout
4194
4195 \begin_layout Standard
4196 If you make a keyboard description file that works for your language, please
4197  mail it to me, so I can include it in the next keymap distribution.
4198 \end_layout
4199
4200 \begin_layout Standard
4201 More keywords will be supported in keymap configuration file in future,
4202  like
4203 \end_layout
4204
4205 \begin_layout Itemize
4206 \begin_inset Flex Code
4207 status collapsed
4208
4209 \begin_layout Plain Layout
4210
4211 \backslash
4212 kinclude filename
4213 \end_layout
4214
4215 \end_inset
4216
4217
4218 \emph on
4219
4220 \begin_inset space \hfill{}
4221 \end_inset
4222
4223
4224 \begin_inset Flex Code
4225 status collapsed
4226
4227 \begin_layout Plain Layout
4228 include
4229 \end_layout
4230
4231 \end_inset
4232
4233  another file
4234 \end_layout
4235
4236 \begin_layout Itemize
4237 \begin_inset Flex Code
4238 status collapsed
4239
4240 \begin_layout Plain Layout
4241
4242 \backslash
4243 kprog program
4244 \end_layout
4245
4246 \end_inset
4247
4248
4249 \emph on
4250
4251 \begin_inset space \hfill{}
4252 \end_inset
4253
4254
4255 \begin_inset Flex Code
4256 status collapsed
4257
4258 \begin_layout Plain Layout
4259 define
4260 \end_layout
4261
4262 \end_inset
4263
4264  an external keymap translation program 
4265 \end_layout
4266
4267 \begin_layout Standard
4268 Also, it should look into 
4269 \begin_inset Flex Code
4270 status collapsed
4271
4272 \begin_layout Plain Layout
4273 lyxrc
4274 \end_layout
4275
4276 \end_inset
4277
4278  file for defaults, too (for example, a 
4279 \begin_inset Flex Code
4280 status collapsed
4281
4282 \begin_layout Plain Layout
4283
4284 \backslash
4285 kinclude
4286 \end_layout
4287
4288 \end_inset
4289
4290  option to include default keyboard).
4291 \end_layout
4292
4293 \end_inset
4294
4295
4296 \end_layout
4297
4298 \begin_layout Section
4299 International Keymap Stuff
4300 \begin_inset CommandInset label
4301 LatexCommand label
4302 name "sec:International-Keymap-Stuff"
4303
4304 \end_inset
4305
4306
4307 \end_layout
4308
4309 \begin_layout Standard
4310 \begin_inset Note Note
4311 status open
4312
4313 \begin_layout Plain Layout
4314 In doing the revisions on this document in March 2008, I did not look over
4315  this stuff, as I do not understand it.
4316  It would be good if someone else could do so.
4317  (RH)
4318 \end_layout
4319
4320 \end_inset
4321
4322
4323 \end_layout
4324
4325 \begin_layout Standard
4326 The next two sections describe the 
4327 \begin_inset Flex Code
4328 status collapsed
4329
4330 \begin_layout Plain Layout
4331
4332 \shape up
4333 .kmap
4334 \end_layout
4335
4336 \end_inset
4337
4338  and 
4339 \begin_inset Flex Code
4340 status collapsed
4341
4342 \begin_layout Plain Layout
4343
4344 \shape up
4345 .cdef
4346 \end_layout
4347
4348 \end_inset
4349
4350  file syntax in detail.
4351  These sections should help you design your own key map if the ones provided
4352  do not meet your needs.
4353 \end_layout
4354
4355 \begin_layout Subsection
4356 The .kmap File
4357 \end_layout
4358
4359 \begin_layout Standard
4360
4361 \shape up
4362 .
4363 \begin_inset Flex Code
4364 status collapsed
4365
4366 \begin_layout Plain Layout
4367 kmap
4368 \end_layout
4369
4370 \end_inset
4371
4372  file maps keystrokes to characters or strings.
4373  As the name suggests, it sets a keyboard mapping.
4374  The 
4375 \begin_inset Flex Code
4376 status collapsed
4377
4378 \begin_layout Plain Layout
4379 .kmap
4380 \end_layout
4381
4382 \end_inset
4383
4384
4385 \shape default
4386  file keywords 
4387 \shape up
4388
4389 \begin_inset Flex Code
4390 status collapsed
4391
4392 \begin_layout Plain Layout
4393
4394 \shape up
4395 kmap
4396 \end_layout
4397
4398 \end_inset
4399
4400
4401 \shape default
4402 ,
4403 \shape up
4404  
4405 \shape default
4406
4407 \begin_inset Flex Code
4408 status collapsed
4409
4410 \begin_layout Plain Layout
4411
4412 \shape up
4413 kmod
4414 \end_layout
4415
4416 \end_inset
4417
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 kxmod
4430 \end_layout
4431
4432 \end_inset
4433
4434 , and 
4435 \begin_inset Flex Code
4436 status collapsed
4437
4438 \begin_layout Plain Layout
4439
4440 \shape up
4441 kcomb
4442 \end_layout
4443
4444 \end_inset
4445
4446  are described in this section.
4447 \end_layout
4448
4449 \begin_layout Labeling
4450 \labelwidthstring 00.00.0000
4451 \begin_inset Flex Code
4452 status collapsed
4453
4454 \begin_layout Plain Layout
4455
4456 \shape up
4457 kmap
4458 \end_layout
4459
4460 \end_inset
4461
4462  Map a character to a string
4463 \end_layout
4464
4465 \begin_layout LyX-Code
4466
4467 \backslash
4468 kmap 
4469 \family roman
4470 \emph on
4471 char
4472 \family default
4473 \emph default
4474  
4475 \family roman
4476 \emph on
4477 string
4478 \end_layout
4479
4480 \begin_layout Standard
4481 This will ma
4482 \family roman
4483 p
4484 \family default
4485  
4486 \family roman
4487 \emph on
4488 char
4489 \family default
4490 \emph default
4491  
4492 \family roman
4493 to
4494 \family default
4495  
4496 \family roman
4497 \emph on
4498 string
4499 \emph default
4500 .
4501  Note that in
4502 \family default
4503  
4504 \family roman
4505 \emph on
4506 string
4507 \emph default
4508 ,
4509 \family default
4510  
4511 \family roman
4512 \shape up
4513 the double-quote (")
4514 \family default
4515 \shape default
4516  
4517 \family roman
4518 and
4519 \family default
4520  
4521 \family roman
4522 \shape up
4523 the backslash (
4524 \backslash
4525 )
4526 \family default
4527 \shape default
4528  
4529 \family roman
4530 must be escaped with a preceding backslash (
4531 \shape up
4532
4533 \backslash
4534
4535 \shape default
4536 )
4537 \family default
4538 .
4539 \end_layout
4540
4541 \begin_layout Standard
4542 An example of a 
4543 \begin_inset Flex Noun
4544 status collapsed
4545
4546 \begin_layout Plain Layout
4547
4548 \shape up
4549 kmap
4550 \end_layout
4551
4552 \end_inset
4553
4554  statement to cause the symbol 
4555 \begin_inset Flex Noun
4556 status collapsed
4557
4558 \begin_layout Plain Layout
4559
4560 \shape up
4561 /
4562 \end_layout
4563
4564 \end_inset
4565
4566  to be output for the keystroke 
4567 \begin_inset Flex Noun
4568 status collapsed
4569
4570 \begin_layout Plain Layout
4571
4572 \shape up
4573 &
4574 \end_layout
4575
4576 \end_inset
4577
4578  is:
4579 \end_layout
4580
4581 \begin_layout LyX-Code
4582
4583 \backslash
4584 kmap & /
4585 \end_layout
4586
4587 \begin_layout Labeling
4588 \labelwidthstring 00.00.0000
4589 \begin_inset Flex Code
4590 status collapsed
4591
4592 \begin_layout Plain Layout
4593
4594 \shape up
4595 kmod
4596 \end_layout
4597
4598 \end_inset
4599
4600  Specify an accent character
4601 \end_layout
4602
4603 \begin_layout LyX-Code
4604
4605 \backslash
4606 kmod 
4607 \family roman
4608 \emph on
4609 char accent allowed
4610 \end_layout
4611
4612 \begin_layout Standard
4613 This will make the cha
4614 \family roman
4615 racter
4616 \family default
4617  
4618 \family roman
4619 \emph on
4620 char
4621 \family default
4622 \emph default
4623  
4624 \family roman
4625 \shape up
4626 \emph on
4627 be an accent
4628 \family default
4629 \shape default
4630 \emph default
4631  
4632 \family roman
4633 \shape up
4634 on the
4635 \family default
4636 \shape default
4637  
4638 \family roman
4639 \shape up
4640 \emph on
4641 allowed
4642 \family default
4643 \shape default
4644 \emph default
4645  
4646 \family roman
4647 \shape up
4648 cha
4649 \family default
4650 racter(s).
4651  This is the dead key
4652 \begin_inset Foot
4653 status collapsed
4654
4655 \begin_layout Plain Layout
4656 The term 
4657 \family roman
4658 \emph on
4659 dead key
4660 \family default
4661 \emph default
4662  refers to a key that does not produce a character by itself, but when followed
4663  with another key, produces the desired accent character.
4664  For example, a German characte
4665 \family roman
4666 r with an umlaut like
4667 \family default
4668  
4669 \family roman
4670 \emph on
4671 ä
4672 \family default
4673 \emph default
4674  
4675 \family roman
4676 can be produced in this manner.
4677 \end_layout
4678
4679 \end_inset
4680
4681  mechanism.
4682  
4683 \end_layout
4684
4685 \begin_layout Standard
4686 If you 
4687 \family roman
4688 hit
4689 \family default
4690  
4691 \family roman
4692 \emph on
4693 char
4694 \family default
4695 \emph default
4696  
4697 \family roman
4698 and then another key not in
4699 \family default
4700  
4701 \family roman
4702 \emph on
4703 allowed
4704 \emph default
4705 , you will get a
4706 \family default
4707  
4708 \family roman
4709 \emph on
4710 char
4711 \family default
4712 \emph default
4713  
4714 \family roman
4715 followed by the other, not allowed key, as output.
4716
4717 \family default
4718  Note that a 
4719 \begin_inset Flex Noun
4720 status collapsed
4721
4722 \begin_layout Plain Layout
4723
4724 \shape up
4725 Backspace
4726 \end_layout
4727
4728 \end_inset
4729
4730  cancels a dead key, so if 
4731 \family roman
4732 you hit
4733 \family default
4734  
4735 \family roman
4736 \emph on
4737 char
4738 \family default
4739 \emph default
4740  
4741 \begin_inset Flex Noun
4742 status collapsed
4743
4744 \begin_layout Plain Layout
4745
4746 \shape up
4747 \emph on
4748 Backspace
4749 \end_layout
4750
4751 \end_inset
4752
4753 , the cursor will not go one position backwards but will instead cancel
4754  the effect t
4755 \family roman
4756 hat
4757 \family default
4758  
4759 \family roman
4760 \shape up
4761 \emph on
4762 char
4763 \family default
4764 \shape default
4765 \emph default
4766  
4767 \family roman
4768 \shape up
4769 might have had on the next keystroke.
4770  
4771 \end_layout
4772
4773 \begin_layout Standard
4774 The following example specifies that the character ' is to be an acute accent,
4775  allowed on the characters a, e, i, o, u, A, E, I, O, and U:
4776 \end_layout
4777
4778 \begin_layout LyX-Code
4779
4780 \backslash
4781 kmod ' acute aeiouAEIOU
4782 \end_layout
4783
4784 \begin_layout Labeling
4785 \labelwidthstring 00.00.0000
4786 \begin_inset Flex Code
4787 status collapsed
4788
4789 \begin_layout Plain Layout
4790 kxmod
4791 \end_layout
4792
4793 \end_inset
4794
4795  Specify an exception to the accent character
4796 \end_layout
4797
4798 \begin_layout LyX-Code
4799
4800 \backslash
4801 kxmod  
4802 \family roman
4803 \emph on
4804 accent char result
4805 \end_layout
4806
4807 \begin_layout Standard
4808 This defines an exce
4809 \family roman
4810 ption for
4811 \family default
4812  
4813 \family roman
4814 \emph on
4815 accent
4816 \family default
4817 \emph default
4818  
4819 \family roman
4820 on
4821 \family default
4822  
4823 \family roman
4824 \emph on
4825 char
4826 \emph default
4827 .
4828  T
4829 \shape up
4830 he
4831 \family default
4832 \shape default
4833  
4834 \family roman
4835 \shape up
4836 \emph on
4837 accent
4838 \family default
4839 \shape default
4840 \emph default
4841  
4842 \family roman
4843 \shape up
4844 must
4845 \family default
4846 \shape default
4847  
4848 \shape up
4849 have been assigned a keystroke with a previous
4850 \shape default
4851  
4852 \begin_inset Flex Code
4853 status collapsed
4854
4855 \begin_layout Plain Layout
4856
4857 \shape up
4858
4859 \backslash
4860 kmo
4861 \shape default
4862 d
4863 \end_layout
4864
4865 \end_inset
4866
4867  declar
4868 \family roman
4869 ation and
4870 \family default
4871  
4872 \family roman
4873 \emph on
4874 char
4875 \family default
4876 \emph default
4877  
4878 \family roman
4879 must not belong in the
4880 \family default
4881  
4882 \family roman
4883 \emph on
4884 allowed
4885 \family default
4886 \emph default
4887  
4888 \family roman
4889 set of
4890 \family default
4891  
4892 \family roman
4893 \emph on
4894 accent
4895 \emph default
4896 .
4897  When
4898 \family default
4899  
4900 \family roman
4901 \shape up
4902 you enter the
4903 \family default
4904 \shape default
4905  
4906 \family roman
4907 \shape up
4908 \emph on
4909 accent char
4910 \family default
4911 \shape default
4912 \emph default
4913  
4914 \family roman
4915 \shape up
4916 sequence,
4917 \family default
4918 \shape default
4919  
4920 \family roman
4921 \shape up
4922 \emph on
4923 result
4924 \emph default
4925  is produced.
4926  If such a declaration does not exist in
4927 \family default
4928 \shape default
4929  
4930 \shape up
4931 the
4932 \shape default
4933  
4934 \begin_inset Flex Code
4935 status collapsed
4936
4937 \begin_layout Plain Layout
4938
4939 \shape up
4940 .kmap
4941 \end_layout
4942
4943 \end_inset
4944
4945  file and yo
4946 \family roman
4947 u enter
4948 \family default
4949  
4950 \family roman
4951 \emph on
4952 accent char
4953 \emph default
4954 , you get
4955 \family default
4956  
4957 \family roman
4958 \emph on
4959 accent_key char
4960 \emph default
4961  where
4962 \family default
4963  
4964 \family roman
4965 \emph on
4966 accent_key
4967 \emph default
4968  is the first arg
4969 \family default
4970 ument of the 
4971 \begin_inset Flex Code
4972 status collapsed
4973
4974 \begin_layout Plain Layout
4975
4976 \shape up
4977
4978 \backslash
4979 kmod
4980 \end_layout
4981
4982 \end_inset
4983
4984  declaration.
4985  
4986 \end_layout
4987
4988 \begin_layout Standard
4989 The following command produces causes äi to be produced when you enter acute-i
4990  ('i):
4991 \end_layout
4992
4993 \begin_layout LyX-Code
4994
4995 \backslash
4996 kxmod acute i "
4997 \backslash
4998
4999 \backslash
5000 '{
5001 \backslash
5002
5003 \backslash
5004 i}"
5005 \end_layout
5006
5007 \begin_layout Labeling
5008 \labelwidthstring 00.00.0000
5009 \begin_inset Flex Code
5010 status collapsed
5011
5012 \begin_layout Plain Layout
5013 kcomb
5014 \end_layout
5015
5016 \end_inset
5017
5018  Combine two accent characters
5019 \end_layout
5020
5021 \begin_layout LyX-Code
5022
5023 \backslash
5024 kcomb 
5025 \family roman
5026 \emph on
5027 accent1 accent2 allowed
5028 \end_layout
5029
5030 \begin_layout Standard
5031 This one is getting pretty esoteric.
5032  It allows you to combine the effect 
5033 \family roman
5034 of
5035 \family default
5036  
5037 \family roman
5038 \emph on
5039 accent1
5040 \family default
5041 \emph default
5042  
5043 \family roman
5044 and
5045 \family default
5046  
5047 \family roman
5048 \emph on
5049 accent2
5050 \family default
5051 \emph default
5052  
5053 \family roman
5054 (in that order!) on
5055 \family default
5056  
5057 \family roman
5058 \emph on
5059 allowed
5060 \family default
5061 \emph default
5062  
5063 \family roman
5064 chars.
5065  The keystrokes for
5066 \family default
5067  
5068 \family roman
5069 \emph on
5070 accent1
5071 \family default
5072 \emph default
5073  
5074 \family roman
5075 and
5076 \family default
5077  
5078 \family roman
5079 \emph on
5080 accent2
5081 \family default
5082 \emph default
5083  
5084 \family roman
5085 must have be
5086 \family default
5087 en set with a 
5088 \begin_inset Flex Code
5089 status collapsed
5090
5091 \begin_layout Plain Layout
5092
5093 \shape up
5094
5095 \backslash
5096 kmod
5097 \end_layout
5098
5099 \end_inset
5100
5101  command at 
5102 \family roman
5103 a
5104 \family default
5105  
5106 \family roman
5107 \emph on
5108 previous
5109 \family default
5110 \emph default
5111  
5112 \family roman
5113 point in the
5114 \family default
5115  file.
5116  
5117 \end_layout
5118
5119 \begin_layout Standard
5120 Consider this example from the 
5121 \begin_inset Flex Code
5122 status collapsed
5123
5124 \begin_layout Plain Layout
5125
5126 \shape up
5127 greek.kmap
5128 \end_layout
5129
5130 \end_inset
5131
5132  file:
5133 \end_layout
5134
5135 \begin_layout LyX-Code
5136
5137 \backslash
5138 kmod ; acute aeioyvhAEIOYVH 
5139 \backslash
5140 kmod : umlaut iyIY 
5141 \backslash
5142 kcomb acute umlaut iyIY
5143 \end_layout
5144
5145 \begin_layout Standard
5146 This allows you to press 
5147 \begin_inset Flex Noun
5148 status collapsed
5149
5150 \begin_layout Plain Layout
5151
5152 \shape up
5153 ;:i
5154 \end_layout
5155
5156 \end_inset
5157
5158  and get the effect of 
5159 \begin_inset Flex Code
5160 status collapsed
5161
5162 \begin_layout Plain Layout
5163
5164 \shape up
5165
5166 \backslash
5167 '{
5168 \backslash
5169 "{i}}
5170 \end_layout
5171
5172 \end_inset
5173
5174 .
5175  
5176 \family roman
5177 \shape up
5178 A backspace
5179 \family default
5180 \shape default
5181  in this case cancels the last dead key, so if you press 
5182 \begin_inset Flex Noun
5183 status collapsed
5184
5185 \begin_layout Plain Layout
5186
5187 \shape up
5188 ;: Backspace i
5189 \end_layout
5190
5191 \end_inset
5192
5193  you get 
5194 \begin_inset Flex Code
5195 status collapsed
5196
5197 \begin_layout Plain Layout
5198
5199 \shape up
5200
5201 \backslash
5202 '{i}
5203 \end_layout
5204
5205 \end_inset
5206
5207 .
5208 \end_layout
5209
5210 \begin_layout Subsection
5211 The .cdef File
5212 \end_layout
5213
5214 \begin_layout Standard
5215 After the 
5216 \begin_inset Flex Code
5217 status collapsed
5218
5219 \begin_layout Plain Layout
5220
5221 \shape up
5222 .kmap
5223 \end_layout
5224
5225 \end_inset
5226
5227  mapping is performed, a 
5228 \begin_inset Flex Code
5229 status collapsed
5230
5231 \begin_layout Plain Layout
5232
5233 \shape up
5234 .cde
5235 \shape default
5236 f
5237 \end_layout
5238
5239 \end_inset
5240
5241  file maps the strings that the symbols generate to characters in the current
5242  font.
5243  The \SpecialChar LyX
5244  distribution currently includes at least the 
5245 \begin_inset Flex Code
5246 status collapsed
5247
5248 \begin_layout Plain Layout
5249
5250 \shape up
5251 iso8859-1.cdef
5252 \end_layout
5253
5254 \end_inset
5255
5256  and 
5257 \begin_inset Flex Code
5258 status collapsed
5259
5260 \begin_layout Plain Layout
5261
5262 \shape up
5263 iso8859-2.cdef
5264 \end_layout
5265
5266 \end_inset
5267
5268  files.
5269 \end_layout
5270
5271 \begin_layout Standard
5272 In general the 
5273 \begin_inset Flex Code
5274 status collapsed
5275
5276 \begin_layout Plain Layout
5277
5278 \shape up
5279 .cdef
5280 \end_layout
5281
5282 \end_inset
5283
5284  file is a sequence of declarations of the form
5285 \end_layout
5286
5287 \begin_layout LyX-Code
5288
5289 \family roman
5290 \emph on
5291 char_index_in_set
5292 \family default
5293 \emph default
5294  
5295 \family roman
5296 \emph on
5297  string
5298 \end_layout
5299
5300 \begin_layout Standard
5301 For example, in order to map 
5302 \begin_inset Flex Noun
5303 status collapsed
5304
5305 \begin_layout Plain Layout
5306
5307 \shape up
5308
5309 \backslash
5310 '{e}
5311 \end_layout
5312
5313 \end_inset
5314
5315  to the corresponding character in the iso-8859-1 set (233), the following
5316  declaration is used
5317 \end_layout
5318
5319 \begin_layout LyX-Code
5320 233 "
5321 \backslash
5322
5323 \backslash
5324 '{e}"
5325 \end_layout
5326
5327 \begin_layout Standard
5328 with 
5329 \begin_inset Flex Code
5330 status collapsed
5331
5332 \begin_layout Plain Layout
5333
5334 \backslash
5335
5336 \end_layout
5337
5338 \end_inset
5339
5340  and 
5341 \begin_inset Flex Code
5342 status collapsed
5343
5344 \begin_layout Plain Layout
5345 "
5346 \end_layout
5347
5348 \end_inset
5349
5350  being escap
5351 \family roman
5352 ed in
5353 \family default
5354  
5355 \family roman
5356 \emph on
5357 string
5358 \emph default
5359 .
5360  Note that
5361 \family default
5362  the same character can apply to more than one string.
5363  In the 
5364 \begin_inset Flex Code
5365 status collapsed
5366
5367 \begin_layout Plain Layout
5368 i
5369 \shape up
5370 so-8859-7.cdef
5371 \end_layout
5372
5373 \end_inset
5374
5375  file you have
5376 \end_layout
5377
5378 \begin_layout LyX-Code
5379 192 "
5380 \backslash
5381
5382 \backslash
5383 '{
5384 \backslash
5385
5386 \backslash
5387
5388 \backslash
5389 "{i}}"
5390 \begin_inset Newline newline
5391 \end_inset
5392
5393 192 "
5394 \backslash
5395
5396 \backslash
5397
5398 \backslash
5399 "{
5400 \backslash
5401
5402 \backslash
5403 '{i}}"
5404 \end_layout
5405
5406 \begin_layout Standard
5407 If \SpecialChar LyX
5408  cannot find a mapping for the string produced by the keystroke or a
5409  deadkey sequence, it will check if it looks like an accented char and try
5410  to draw an accent over the character on screen.
5411 \end_layout
5412
5413 \begin_layout Subsection
5414 Dead Keys
5415 \end_layout
5416
5417 \begin_layout Standard
5418 There is a second way to add support for international characters through
5419  so-called dead-keys.
5420  A dead-key works in combination with a letter to produce an accented character.
5421  Here, we'll explain how to create a really simple dead-key to illustrate
5422  how they work.
5423 \end_layout
5424
5425 \begin_layout Standard
5426 Suppose you happen to need the circumflex character, 
5427 \begin_inset Quotes eld
5428 \end_inset
5429
5430  ̂
5431 \begin_inset Quotes erd
5432 \end_inset
5433
5434 .
5435  You could bind the 
5436 \begin_inset Flex Noun
5437 status collapsed
5438
5439 \begin_layout Plain Layout
5440 ^
5441 \end_layout
5442
5443 \end_inset
5444
5445 -key [a.k.a.
5446 \begin_inset space ~
5447 \end_inset
5448
5449
5450 \begin_inset Flex Noun
5451 status collapsed
5452
5453 \begin_layout Plain Layout
5454 Shift-6
5455 \end_layout
5456
5457 \end_inset
5458
5459 ] to the \SpecialChar LyX
5460  command 
5461 \begin_inset Flex Code
5462 status collapsed
5463
5464 \begin_layout Plain Layout
5465 accent-circumflex
5466 \end_layout
5467
5468 \end_inset
5469
5470  in your 
5471 \begin_inset Flex Code
5472 status collapsed
5473
5474 \begin_layout Plain Layout
5475 lyxrc
5476 \end_layout
5477
5478 \end_inset
5479
5480  file.
5481  Now, whenever you type the 
5482 \begin_inset Flex Noun
5483 status collapsed
5484
5485 \begin_layout Plain Layout
5486 ^
5487 \end_layout
5488
5489 \end_inset
5490
5491 -key followed by a letter, that letter will have a circumflex accent on
5492  it.
5493  For example, the sequence 
5494 \begin_inset Quotes eld
5495 \end_inset
5496
5497
5498 \begin_inset Flex Noun
5499 status collapsed
5500
5501 \begin_layout Plain Layout
5502 ^e
5503 \end_layout
5504
5505 \end_inset
5506
5507
5508 \begin_inset Quotes erd
5509 \end_inset
5510
5511  produces the letter: 
5512 \begin_inset Quotes eld
5513 \end_inset
5514
5515 ê
5516 \begin_inset Quotes erd
5517 \end_inset
5518
5519 .
5520  If you tried to type 
5521 \begin_inset Quotes eld
5522 \end_inset
5523
5524
5525 \begin_inset Flex Noun
5526 status collapsed
5527
5528 \begin_layout Plain Layout
5529 ^t
5530 \end_layout
5531
5532 \end_inset
5533
5534
5535 \begin_inset Quotes erd
5536 \end_inset
5537
5538 , however, \SpecialChar LyX
5539  will complain with a beep, since a 
5540 \begin_inset Quotes eld
5541 \end_inset
5542
5543
5544 \begin_inset Flex Noun
5545 status collapsed
5546
5547 \begin_layout Plain Layout
5548 t
5549 \end_layout
5550
5551 \end_inset
5552
5553
5554 \begin_inset Quotes erd
5555 \end_inset
5556
5557  never takes a circumflex accent.
5558  Hitting 
5559 \begin_inset Flex Noun
5560 status collapsed
5561
5562 \begin_layout Plain Layout
5563 Space
5564 \end_layout
5565
5566 \end_inset
5567
5568  after a dead-key produces the bare-accent.
5569  Please note this last point! If you bind a key to a dead-key, you'll need
5570  to rebind the character on that key to yet another key.
5571  Binding the 
5572 \begin_inset Flex Noun
5573 status collapsed
5574
5575 \begin_layout Plain Layout
5576 ,-key
5577 \end_layout
5578
5579 \end_inset
5580
5581  to a cedilla is a bad idea, since you'll only get cedillas instead of commas.
5582 \end_layout
5583
5584 \begin_layout Standard
5585 One common way to bind dead-keys is to use 
5586 \begin_inset Flex Noun
5587 status collapsed
5588
5589 \begin_layout Plain Layout
5590 Meta-
5591 \end_layout
5592
5593 \end_inset
5594
5595
5596 \begin_inset Flex Noun
5597 status collapsed
5598
5599 \begin_layout Plain Layout
5600 Ctrl-
5601 \end_layout
5602
5603 \end_inset
5604
5605 , and 
5606 \begin_inset Flex Noun
5607 status collapsed
5608
5609 \begin_layout Plain Layout
5610 Shift-
5611 \end_layout
5612
5613 \end_inset
5614
5615  in combination with an accent, like 
5616 \begin_inset Quotes eld
5617 \end_inset
5618
5619
5620 \begin_inset Flex Noun
5621 status collapsed
5622
5623 \begin_layout Plain Layout
5624 ~
5625 \end_layout
5626
5627 \end_inset
5628
5629
5630 \begin_inset Quotes erd
5631 \end_inset
5632
5633  or 
5634 \begin_inset Quotes eld
5635 \end_inset
5636
5637
5638 \begin_inset Flex Noun
5639 status collapsed
5640
5641 \begin_layout Plain Layout
5642 ,
5643 \end_layout
5644
5645 \end_inset
5646
5647
5648 \begin_inset Quotes erd
5649 \end_inset
5650
5651  or 
5652 \begin_inset Quotes eld
5653 \end_inset
5654
5655
5656 \begin_inset Flex Noun
5657 status collapsed
5658
5659 \begin_layout Plain Layout
5660 ^
5661 \end_layout
5662
5663 \end_inset
5664
5665
5666 \begin_inset Quotes erd
5667 \end_inset
5668
5669 .
5670  Another way involves using 
5671 \begin_inset Flex Code
5672 status collapsed
5673
5674 \begin_layout Plain Layout
5675 xmodmap
5676 \end_layout
5677
5678 \end_inset
5679
5680  and 
5681 \begin_inset Flex Code
5682 status collapsed
5683
5684 \begin_layout Plain Layout
5685 xkeycaps
5686 \end_layout
5687
5688 \end_inset
5689
5690  to set up the special 
5691 \begin_inset Flex Code
5692 status collapsed
5693
5694 \begin_layout Plain Layout
5695 Mode_Switch
5696 \end_layout
5697
5698 \end_inset
5699
5700  key.
5701  The 
5702 \begin_inset Flex Code
5703 status collapsed
5704
5705 \begin_layout Plain Layout
5706 Mode_Switch
5707 \end_layout
5708
5709 \end_inset
5710
5711  acts in some ways just like 
5712 \begin_inset Flex Noun
5713 status collapsed
5714
5715 \begin_layout Plain Layout
5716 Shift
5717 \end_layout
5718
5719 \end_inset
5720
5721  and permits you to bind keys to accented characters.
5722  You can also turn keys into dead-keys by binding them to something like
5723  
5724 \begin_inset Flex Code
5725 status collapsed
5726
5727 \begin_layout Plain Layout
5728 usldead_cedilla
5729 \end_layout
5730
5731 \end_inset
5732
5733  and then binding this symbolic key to the corresponding \SpecialChar LyX
5734  command.
5735 \begin_inset Foot
5736 status collapsed
5737
5738 \begin_layout Plain Layout
5739 Note from 
5740 \noun on
5741 John Weiss
5742 \noun default
5743 : This is exactly what I do in my 
5744 \begin_inset Flex Code
5745 status collapsed
5746
5747 \begin_layout Plain Layout
5748 ~/.lyx/lyxrc
5749 \end_layout
5750
5751 \end_inset
5752
5753  and my 
5754 \begin_inset Flex Code
5755 status collapsed
5756
5757 \begin_layout Plain Layout
5758 ~/.xmodmap
5759 \end_layout
5760
5761 \end_inset
5762
5763  files.
5764  I have my 
5765 \begin_inset Flex Noun
5766 status collapsed
5767
5768 \begin_layout Plain Layout
5769 Scroll
5770 \begin_inset space ~
5771 \end_inset
5772
5773 Lock
5774 \end_layout
5775
5776 \end_inset
5777
5778  key set up as 
5779 \begin_inset Flex Code
5780 status collapsed
5781
5782 \begin_layout Plain Layout
5783 Mode_Shift
5784 \end_layout
5785
5786 \end_inset
5787
5788  and a bunch of these 
5789 \begin_inset Quotes eld
5790 \end_inset
5791
5792
5793 \begin_inset Flex Code
5794 status collapsed
5795
5796 \begin_layout Plain Layout
5797 usldead_*
5798 \end_layout
5799
5800 \end_inset
5801
5802
5803 \begin_inset Quotes erd
5804 \end_inset
5805
5806  symbolic keys bound such things as 
5807 \begin_inset Flex Noun
5808 status collapsed
5809
5810 \begin_layout Plain Layout
5811 Scroll
5812 \begin_inset space ~
5813 \end_inset
5814
5815 Lock-^
5816 \end_layout
5817
5818 \end_inset
5819
5820  and 
5821 \begin_inset Flex Noun
5822 status collapsed
5823
5824 \begin_layout Plain Layout
5825 Scroll
5826 \begin_inset space ~
5827 \end_inset
5828
5829 Lock-~
5830 \end_layout
5831
5832 \end_inset
5833
5834 .
5835  This is how I produce my accented characters.
5836 \end_layout
5837
5838 \end_inset
5839
5840  You can make just about anything into the 
5841 \begin_inset Flex Code
5842 status collapsed
5843
5844 \begin_layout Plain Layout
5845 Mode_Switch
5846 \end_layout
5847
5848 \end_inset
5849
5850  key: One of the 
5851 \begin_inset Flex Noun
5852 status collapsed
5853
5854 \begin_layout Plain Layout
5855 Ctrl-
5856 \end_layout
5857
5858 \end_inset
5859
5860  keys, a spare function key, etc.
5861  As for the \SpecialChar LyX
5862  commands that produce accents, check the entry for 
5863 \begin_inset Flex Code
5864 status collapsed
5865
5866 \begin_layout Plain Layout
5867 accent-acute
5868 \end_layout
5869
5870 \end_inset
5871
5872  in the 
5873 \emph on
5874 Reference Manual
5875 \emph default
5876 .
5877  You'll find the complete list there.
5878 \end_layout
5879
5880 \begin_layout Subsection
5881 Saving your Language Configuration
5882 \end_layout
5883
5884 \begin_layout Standard
5885 You can edit your preferences so that your desired language environment
5886  is automatically configured when \SpecialChar LyX
5887  starts up, via the 
5888 \begin_inset Flex Noun
5889 status collapsed
5890
5891 \begin_layout Plain Layout
5892 Edit\SpecialChar menuseparator
5893 Preferences
5894 \end_layout
5895
5896 \end_inset
5897
5898  dialog.
5899 \end_layout
5900
5901 \begin_layout Chapter
5902 Installing New Document Classes, Layouts, and Templates
5903 \begin_inset CommandInset label
5904 LatexCommand label
5905 name "cha:Installing-New-Document"
5906
5907 \end_inset
5908
5909
5910 \begin_inset Argument 1
5911 status collapsed
5912
5913 \begin_layout Plain Layout
5914 Installing New Document Classes
5915 \end_layout
5916
5917 \end_inset
5918
5919
5920 \end_layout
5921
5922 \begin_layout Standard
5923 In this chapter, we describe the procedures for creating and installing
5924  new \SpecialChar LyX
5925  layout and template files, as well as offer a refresher on correctly
5926  installing new \SpecialChar LaTeX
5927  document classes.
5928  
5929 \end_layout
5930
5931 \begin_layout Standard
5932 First, let us a say a few words about how one ought to think about the relation
5933  between \SpecialChar LyX
5934  and \SpecialChar LaTeX
5935 .
5936  The thing to understand is that, in a certain sense, \SpecialChar LyX
5937  doesn't know anything
5938  about \SpecialChar LaTeX
5939 .
5940  Indeed, from \SpecialChar LyX
5941 's point of view, \SpecialChar LaTeX
5942  is just one of several 
5943 \begin_inset Quotes eld
5944 \end_inset
5945
5946 backend formats
5947 \begin_inset Quotes erd
5948 \end_inset
5949
5950  in which it is capable of producing output.
5951  Other such formats are DocBook, plaintext, and XHTML.
5952  \SpecialChar LaTeX
5953  is, of course, a particularly important format, but very little of the
5954  information \SpecialChar LyX
5955  has about \SpecialChar LaTeX
5956  is actually contained in the program itself.
5957 \begin_inset Foot
5958 status collapsed
5959
5960 \begin_layout Plain Layout
5961 Some commands are sufficiently complex that they are 
5962 \begin_inset Quotes eld
5963 \end_inset
5964
5965 hardcoded
5966 \begin_inset Quotes erd
5967 \end_inset
5968
5969  into \SpecialChar LyX
5970 .
5971  But the developers generally regard this as a Bad Thing.
5972 \end_layout
5973
5974 \end_inset
5975
5976  Rather, that information, even for the standard classes like 
5977 \begin_inset Flex Code
5978 status collapsed
5979
5980 \begin_layout Plain Layout
5981 article.cls
5982 \end_layout
5983
5984 \end_inset
5985
5986 , is contained in `layout files'.
5987  Similarly, \SpecialChar LyX
5988  itself does not know much about DocBook or XHTML.
5989  What it knows is contained in layout files.
5990 \end_layout
5991
5992 \begin_layout Standard
5993 You can think of the layout file for a given document class as a translation
5994  manual between \SpecialChar LyX
5995  constructs—paragraphs with their corresponding styles,
5996  certain sorts of insets, etc—and the corresponding \SpecialChar LaTeX
5997 , DocBook, or XHTML
5998  constructs.
5999  Almost everything \SpecialChar LyX
6000  knows about 
6001 \begin_inset Flex Code
6002 status collapsed
6003
6004 \begin_layout Plain Layout
6005 article.cls
6006 \end_layout
6007
6008 \end_inset
6009
6010 , for example, is contained in the file 
6011 \begin_inset Flex Code
6012 status collapsed
6013
6014 \begin_layout Plain Layout
6015 article.layout
6016 \end_layout
6017
6018 \end_inset
6019
6020  and in various other files it includes.
6021  For this reason, anyone intending to write layout files should plan to
6022  study the existing files.
6023  A good place to start is with 
6024 \begin_inset Flex Code
6025 status collapsed
6026
6027 \begin_layout Plain Layout
6028 stdsections.inc
6029 \end_layout
6030
6031 \end_inset
6032
6033 , which is included in 
6034 \begin_inset Flex Code
6035 status collapsed
6036
6037 \begin_layout Plain Layout
6038 article.layout
6039 \end_layout
6040
6041 \end_inset
6042
6043
6044 \begin_inset Flex Code
6045 status collapsed
6046
6047 \begin_layout Plain Layout
6048 book.layout
6049 \end_layout
6050
6051 \end_inset
6052
6053 , and many of the other layout files for document classes.
6054  This file is where sections and the like are defined: 
6055 \begin_inset Flex Code
6056 status collapsed
6057
6058 \begin_layout Plain Layout
6059 stdsections.inc
6060 \end_layout
6061
6062 \end_inset
6063
6064  tells \SpecialChar LyX
6065  how paragraphs that are marked with the Section, Subsection, etc,
6066  styles can be translated into corresponding \SpecialChar LaTeX
6067 , DocBook, and XHTML commands
6068  and tags.
6069  The 
6070 \begin_inset Flex Code
6071 status collapsed
6072
6073 \begin_layout Plain Layout
6074 article.layout
6075 \end_layout
6076
6077 \end_inset
6078
6079  file basically just includes several of these 
6080 \begin_inset Flex Code
6081 status collapsed
6082
6083 \begin_layout Plain Layout
6084 std*.inc
6085 \end_layout
6086
6087 \end_inset
6088
6089  files.
6090 \end_layout
6091
6092 \begin_layout Standard
6093 Defining the \SpecialChar LyX
6094 –\SpecialChar LaTeX
6095  correspondence is not the only thing layout files do, though.
6096  Their other job is to define how the \SpecialChar LyX
6097  constructs themselves will appear
6098  on-screen.
6099  The fact that layout files have these two jobs is often a source of confusion,
6100  because they are completely separate.
6101  Telling \SpecialChar LyX
6102  how to translate a certain paragraph style into \SpecialChar LaTeX
6103  does not tell
6104  \SpecialChar LyX
6105  how to display it; conversely, telling \SpecialChar LyX
6106  how to display a certain paragraph
6107  style does not tell \SpecialChar LyX
6108  how to translate it into \SpecialChar LaTeX
6109  (let alone tell \SpecialChar LaTeX
6110  how to
6111  display it).
6112  So, in general, when you define a new \SpecialChar LyX
6113  construct, you must always do two
6114  quite separate things: (i)
6115 \begin_inset space ~
6116 \end_inset
6117
6118 tell \SpecialChar LyX
6119  how to translate it into \SpecialChar LaTeX
6120  and (ii)
6121 \begin_inset space ~
6122 \end_inset
6123
6124 tell \SpecialChar LyX
6125  how to display it.
6126 \end_layout
6127
6128 \begin_layout Standard
6129 Much the same is true, of course, as regards \SpecialChar LyX
6130 's other backend formats, though
6131  XHTML is in some ways different, because in that case \SpecialChar LyX
6132  
6133 \emph on
6134 is
6135 \emph default
6136  able, to some extent, to use information about how it should display a
6137  paragraph on the screen to output information (in the form of CSS) about
6138  how the paragraph should be displayed in a browser.
6139  Even in this case, however, the distinction between what \SpecialChar LyX
6140  does internally
6141  and how things are rendered externally remains in force, and the two can
6142  be controlled separately.
6143  See 
6144 \begin_inset CommandInset ref
6145 LatexCommand ref
6146 reference "sec:Tags-for-XHTML"
6147
6148 \end_inset
6149
6150  for the details.
6151 \end_layout
6152
6153 \begin_layout Section
6154 Installing new \SpecialChar LaTeX
6155  files
6156 \end_layout
6157
6158 \begin_layout Standard
6159 Some installations may not include a \SpecialChar LaTeX
6160  package or class file that you would
6161  like to use within \SpecialChar LyX
6162 .
6163  For example, you might need Foil\SpecialChar TeX
6164 , a package for preparing slides for overhead
6165  projectors.
6166  Modern \SpecialChar LaTeX
6167  distributions like \SpecialChar TeX
6168 Live (2008 or newer) or MiK\SpecialChar TeX
6169  provide a user interface
6170  for installing such packages.
6171  For example, with MiK\SpecialChar TeX
6172 , you start the program 
6173 \begin_inset Quotes eld
6174 \end_inset
6175
6176 Package
6177 \begin_inset space ~
6178 \end_inset
6179
6180 Manager
6181 \begin_inset Quotes erd
6182 \end_inset
6183
6184  to get a list of available packages.
6185  To install one of them, right click on it or use the corresponding toolbar
6186  button.
6187 \end_layout
6188
6189 \begin_layout Standard
6190 If your \SpecialChar LaTeX
6191  distribution does not provide such a `package manager', or if the
6192  package is not available from your distribution, then follow these steps
6193  to install it manually:
6194 \end_layout
6195
6196 \begin_layout Enumerate
6197 Get the package from 
6198 \begin_inset CommandInset href
6199 LatexCommand href
6200 name "CTAN"
6201 target "http://www.ctan.org/"
6202 literal "false"
6203
6204 \end_inset
6205
6206  or wherever.
6207 \end_layout
6208
6209 \begin_layout Enumerate
6210 If the package contains a file with the ending 
6211 \begin_inset Quotes eld
6212 \end_inset
6213
6214
6215 \begin_inset Flex Code
6216 status collapsed
6217
6218 \begin_layout Plain Layout
6219 .ins
6220 \end_layout
6221
6222 \end_inset
6223
6224
6225 \begin_inset Quotes erd
6226 \end_inset
6227
6228  (is the case for Foil\SpecialChar TeX
6229 ) then open a console, change to the folder of this
6230  file and execute the command 
6231 \begin_inset Flex Code
6232 status collapsed
6233
6234 \begin_layout Plain Layout
6235 latex foiltex.ins
6236 \end_layout
6237
6238 \end_inset
6239
6240 .
6241  You have now unpacked the package and have all files to install it.
6242  Most \SpecialChar LaTeX
6243 -packages are not packed and you can skip this step.
6244 \end_layout
6245
6246 \begin_layout Enumerate
6247 Now you need to decide if the package should be available for all users
6248  or only for you.
6249 \end_layout
6250
6251 \begin_deeper
6252 \begin_layout Enumerate
6253 On *nix systems (Linux, OSX, etc.), if you want the new package to be available
6254  for all users on your system, then install it in your `local' \SpecialChar TeX
6255  tree, otherwise
6256  install it in your own `user' \SpecialChar TeX
6257  tree.
6258  Where these trees should be created, if they do not already exist, depends
6259  on your system.
6260  To find this out, look in the file 
6261 \begin_inset Flex Code
6262 status collapsed
6263
6264 \begin_layout Plain Layout
6265 texmf.cnf
6266 \end_layout
6267
6268 \end_inset
6269
6270 .
6271 \begin_inset Foot
6272 status collapsed
6273
6274 \begin_layout Plain Layout
6275 This is usually in the directory 
6276 \begin_inset Flex Code
6277 status collapsed
6278
6279 \begin_layout Plain Layout
6280 $TEXMF/web2c
6281 \end_layout
6282
6283 \end_inset
6284
6285 , though you can execute the command 
6286 \begin_inset Flex Code
6287 status collapsed
6288
6289 \begin_layout Plain Layout
6290 kpsewhich texmf.cnf
6291 \end_layout
6292
6293 \end_inset
6294
6295  to locate it.
6296 \end_layout
6297
6298 \end_inset
6299
6300  The location of the `local' \SpecialChar TeX
6301  tree is defined by the 
6302 \begin_inset Flex Code
6303 status collapsed
6304
6305 \begin_layout Plain Layout
6306 TEXMFLOCAL
6307 \end_layout
6308
6309 \end_inset
6310
6311  variable; this is usually somewhere like 
6312 \begin_inset Flex Code
6313 status collapsed
6314
6315 \begin_layout Plain Layout
6316 /usr/local/share/texmf
6317 \end_layout
6318
6319 \end_inset
6320
6321  or /usr/local/texlive/XXXX where XXXX is the year of the installed \SpecialChar TeX
6322 Live
6323  distribution.
6324  The location of the `user' \SpecialChar TeX
6325  tree is defined by 
6326 \begin_inset Flex Code
6327 status collapsed
6328
6329 \begin_layout Plain Layout
6330 TEXMFHOME
6331 \end_layout
6332
6333 \end_inset
6334
6335  and is commonly 
6336 \begin_inset Flex Code
6337 status collapsed
6338
6339 \begin_layout Plain Layout
6340 $HOME/texmf
6341 \end_layout
6342
6343 \end_inset
6344
6345  or 
6346 \begin_inset Flex Code
6347 status collapsed
6348
6349 \begin_layout Plain Layout
6350
6351 \family sans
6352 $HOME/.texliveXXXX
6353 \end_layout
6354
6355 \end_inset
6356
6357 .
6358  (If these variables are not predefined, you have to define them.) You'll
6359  probably need root permissions to create or modify the `local' tree, but
6360  not for your `user' tree.
6361 \begin_inset Newline newline
6362 \end_inset
6363
6364 In general, it is recommended to install in the user tree because your user
6365  will not be modified or even overwritten when you upgrade your system.
6366  It will typically also be backed up together with everything else when
6367  you backup your home directory (which, of course, you do on a regular basis).
6368 \end_layout
6369
6370 \begin_layout Enumerate
6371 On Windows, if you want the new package to be available for all users on
6372  your system, change to the folder where \SpecialChar LaTeX
6373  is installed and then change to
6374  the subfolder 
6375 \begin_inset Flex Code
6376 status collapsed
6377
6378 \begin_layout Plain Layout
6379 ~
6380 \backslash
6381 tex
6382 \backslash
6383 latex
6384 \end_layout
6385
6386 \end_inset
6387
6388 .
6389  (For MiK\SpecialChar TeX
6390 , this would be by default the folder 
6391 \begin_inset Flex Code
6392 status collapsed
6393
6394 \begin_layout Plain Layout
6395 ~:
6396 \backslash
6397 Programs
6398 \backslash
6399 MiKTeX
6400 \backslash
6401 tex
6402 \backslash
6403 latex
6404 \end_layout
6405
6406 \end_inset
6407
6408 .)
6409 \begin_inset Foot
6410 status collapsed
6411
6412 \begin_layout Plain Layout
6413 Note that this will be the correct path only on English installations.
6414  On a German one, it would be 
6415 \begin_inset Flex Code
6416 status collapsed
6417
6418 \begin_layout Plain Layout
6419 ~:
6420 \backslash
6421 Programme
6422 \backslash
6423 MiKTeX
6424 \backslash
6425 tex
6426 \backslash
6427 latex
6428 \end_layout
6429
6430 \end_inset
6431
6432 , and similarly for other languages.
6433 \end_layout
6434
6435 \end_inset
6436
6437  Create there a new folder 
6438 \begin_inset Flex Code
6439 status collapsed
6440
6441 \begin_layout Plain Layout
6442 foiltex
6443 \end_layout
6444
6445 \end_inset
6446
6447  and copy all files of the package into it.
6448  
6449 \begin_inset Newline newline
6450 \end_inset
6451
6452 If the package should only available for you or you don't have admin permissions
6453 , do the same, but in the local \SpecialChar LaTeX
6454  folder.
6455  E.
6456 \begin_inset space \thinspace{}
6457 \end_inset
6458
6459 g., for MiK\SpecialChar TeX
6460
6461 \begin_inset space ~
6462 \end_inset
6463
6464 2.8 under Windows XP, this would be the folder:
6465 \begin_inset Newline newline
6466 \end_inset
6467
6468
6469 \family sans
6470
6471 \begin_inset Flex Code
6472 status collapsed
6473
6474 \begin_layout Plain Layout
6475 ~:
6476 \backslash
6477 Documents and Settings
6478 \backslash
6479 <username>
6480 \backslash
6481 Application Data
6482 \backslash
6483
6484 \end_layout
6485
6486 \end_inset
6487
6488
6489 \begin_inset Newline newline
6490 \end_inset
6491
6492
6493 \family default
6494
6495 \begin_inset Phantom HPhantom
6496 status open
6497
6498 \begin_layout Plain Layout
6499
6500 \family sans
6501 ~:
6502 \backslash
6503
6504 \end_layout
6505
6506 \end_inset
6507
6508
6509 \begin_inset Flex Code
6510 status collapsed
6511
6512 \begin_layout Plain Layout
6513 MiKTeX
6514 \backslash
6515 2.8
6516 \backslash
6517 tex
6518 \backslash
6519 latex
6520 \end_layout
6521
6522 \end_inset
6523
6524
6525 \begin_inset Newline newline
6526 \end_inset
6527
6528 On Vista, it would be:
6529 \begin_inset Newline newline
6530 \end_inset
6531
6532
6533 \begin_inset Flex Code
6534 status collapsed
6535
6536 \begin_layout Plain Layout
6537 ~:
6538 \backslash
6539 Users
6540 \backslash
6541 <username>
6542 \backslash
6543 AppData
6544 \backslash
6545 Roaming
6546 \backslash
6547 2.8
6548 \backslash
6549 MiKTeX
6550 \backslash
6551 tex
6552 \backslash
6553 latex
6554 \end_layout
6555
6556 \end_inset
6557
6558
6559 \end_layout
6560
6561 \end_deeper
6562 \begin_layout Enumerate
6563 Now one only need to tell \SpecialChar LaTeX
6564  that there are new files.
6565  This depends on the used \SpecialChar LaTeX
6566 -Distribution:
6567 \end_layout
6568
6569 \begin_deeper
6570 \begin_layout Enumerate
6571 For \SpecialChar TeX
6572 Live execute the command 
6573 \begin_inset Flex Code
6574 status collapsed
6575
6576 \begin_layout Plain Layout
6577 texhash
6578 \end_layout
6579
6580 \end_inset
6581
6582  from a console.
6583  If you installed the package for all users, then you will probably need
6584  to have root permissions for that.
6585 \end_layout
6586
6587 \begin_layout Enumerate
6588 For MiK\SpecialChar TeX
6589 , if you have installed the package for all users, start the program
6590  
6591 \begin_inset Quotes eld
6592 \end_inset
6593
6594 Settings
6595 \begin_inset space ~
6596 \end_inset
6597
6598 (Admin)
6599 \begin_inset Quotes erd
6600 \end_inset
6601
6602  and press the button marked 
6603 \begin_inset Quotes eld
6604 \end_inset
6605
6606 Refresh FNDB
6607 \begin_inset Quotes erd
6608 \end_inset
6609
6610 .
6611  Otherwise start the program 
6612 \begin_inset Quotes eld
6613 \end_inset
6614
6615 Settings
6616 \begin_inset Quotes erd
6617 \end_inset
6618
6619  and do the same.
6620 \end_layout
6621
6622 \end_deeper
6623 \begin_layout Enumerate
6624 Finally, you need to tell \SpecialChar LyX
6625  that there are new packages available.
6626  So, in \SpecialChar LyX
6627 , use the menu 
6628 \begin_inset Flex Noun
6629 status collapsed
6630
6631 \begin_layout Plain Layout
6632 Tools
6633 \family sans
6634 \SpecialChar menuseparator
6635 Reconfigure
6636 \end_layout
6637
6638 \end_inset
6639
6640  and then restart \SpecialChar LyX
6641 .
6642 \end_layout
6643
6644 \begin_layout Standard
6645 Now the package is installed.
6646  In our example, the document class 
6647 \begin_inset Flex Code
6648 status collapsed
6649
6650 \begin_layout Plain Layout
6651 FoilTex
6652 \end_layout
6653
6654 \end_inset
6655
6656  will now be available under 
6657 \begin_inset Flex Noun
6658 status collapsed
6659
6660 \begin_layout Plain Layout
6661 Document\SpecialChar menuseparator
6662 Settings\SpecialChar menuseparator
6663 Document Class
6664 \end_layout
6665
6666 \end_inset
6667
6668  (in the 
6669 \begin_inset Quotes eld
6670 \end_inset
6671
6672 Presentations
6673 \begin_inset Quotes erd
6674 \end_inset
6675
6676  category).
6677  
6678 \end_layout
6679
6680 \begin_layout Standard
6681 If you would like to use a \SpecialChar LaTeX
6682  document class that is not even listed in the
6683  menu 
6684 \begin_inset Flex Noun
6685 status collapsed
6686
6687 \begin_layout Plain Layout
6688 Document\SpecialChar menuseparator
6689 Settings\SpecialChar menuseparator
6690 Document Class
6691 \end_layout
6692
6693 \end_inset
6694
6695 , then you need to create a `layout' file for it.
6696  That is the topic of the next section.
6697 \end_layout
6698
6699 \begin_layout Section
6700 Types of layout files
6701 \end_layout
6702
6703 \begin_layout Standard
6704 This section describes the various sorts of \SpecialChar LyX
6705  files that contain layout informati
6706 on.
6707  These files describe various paragraph and character styles, determining
6708  how \SpecialChar LyX
6709  should display them and how they should be translated into \SpecialChar LaTeX
6710 , DocBook,
6711  XHTML, or whatever output format is being used.
6712  
6713 \end_layout
6714
6715 \begin_layout Standard
6716 We shall try to provide a thorough description of the process of writing
6717  layout files here.
6718  However, there are so many different types of documents supported even
6719  by just \SpecialChar LaTeX
6720  that we can't hope to cover every different possibility or problem
6721  you might encounter.
6722  The \SpecialChar LyX
6723  users' list is frequented by people with lots of experience with layout
6724  design who are willing to share what they've learned, so please feel free
6725  to ask questions there.
6726 \end_layout
6727
6728 \begin_layout Standard
6729 As you prepare to write a new layout, it is extremely helpful to look at
6730  the layouts distributed with \SpecialChar LyX
6731 .
6732  If you write a \SpecialChar LyX
6733  layout for a \SpecialChar LaTeX
6734  document class that might also be used by
6735  others, or write a module that might be useful to others, then you should
6736  consider posting your layout to the 
6737 \begin_inset CommandInset href
6738 LatexCommand href
6739 name "layout section on the LyX wiki"
6740 target "https://wiki.lyx.org/Layouts/Layouts"
6741 literal "false"
6742
6743 \end_inset
6744
6745  or even to the \SpecialChar LyX
6746  developers' list, so that it might be included in \SpecialChar LyX
6747  itself.
6748 \begin_inset Foot
6749 status collapsed
6750
6751 \begin_layout Plain Layout
6752 Note that \SpecialChar LyX
6753  is licensed under the General Public License, so any material
6754  that is contributed to \SpecialChar LyX
6755  must be similarly licensed.
6756 \end_layout
6757
6758 \end_inset
6759
6760
6761 \end_layout
6762
6763 \begin_layout Subsection
6764 Layout modules
6765 \begin_inset CommandInset label
6766 LatexCommand label
6767 name "subsec:Layout-modules"
6768
6769 \end_inset
6770
6771
6772 \end_layout
6773
6774 \begin_layout Standard
6775 We have spoken to this point about `layout files'.
6776  But there are different sorts of files that contain layout information.
6777  Layout files, strictly so called, have the 
6778 \begin_inset Flex Code
6779 status collapsed
6780
6781 \begin_layout Plain Layout
6782 .layout
6783 \end_layout
6784
6785 \end_inset
6786
6787  extension and provide \SpecialChar LyX
6788  with information about document classes.
6789  Since \SpecialChar LyX
6790  1.6 layout information can also be contained in layout 
6791 \emph on
6792 modules
6793 \emph default
6794 , which have the 
6795 \begin_inset Flex Code
6796 status collapsed
6797
6798 \begin_layout Plain Layout
6799 .module
6800 \end_layout
6801
6802 \end_inset
6803
6804  extension.
6805  Modules are to \SpecialChar LaTeX
6806  packages much as layouts are to \SpecialChar LaTeX
6807  classes, and some modules—such
6808  as the 
6809 \begin_inset Flex Code
6810 status collapsed
6811
6812 \begin_layout Plain Layout
6813 endnotes
6814 \end_layout
6815
6816 \end_inset
6817
6818  module—specifically provide support for one package.
6819  In a sense, layout modules are similar to included
6820 \begin_inset Foot
6821 status collapsed
6822
6823 \begin_layout Plain Layout
6824 These can have any extension, but by convention have the 
6825 \begin_inset Flex Code
6826 status collapsed
6827
6828 \begin_layout Plain Layout
6829 .inc
6830 \end_layout
6831
6832 \end_inset
6833
6834  extension.
6835 \end_layout
6836
6837 \end_inset
6838
6839  files—files like 
6840 \begin_inset Flex Code
6841 status collapsed
6842
6843 \begin_layout Plain Layout
6844 stdsections.inc
6845 \end_layout
6846
6847 \end_inset
6848
6849 —in that modules are not specific to a given document class but may be used
6850  with many different classes.
6851  The difference is that using an included file with 
6852 \begin_inset Flex Code
6853 status collapsed
6854
6855 \begin_layout Plain Layout
6856 article.cls
6857 \end_layout
6858
6859 \end_inset
6860
6861  requires editing that file.
6862  Modules, by contrast, are selected in the 
6863 \begin_inset Flex Noun
6864 status collapsed
6865
6866 \begin_layout Plain Layout
6867 Document\SpecialChar menuseparator
6868 Settings
6869 \end_layout
6870
6871 \end_inset
6872
6873  dialog.
6874 \end_layout
6875
6876 \begin_layout Standard
6877 Building modules is the easiest way to get started with layout editing,
6878  since it can be as simple as adding a single new paragraph style or flex
6879  inset.
6880  But modules may, in principle, contain anything a layout file can contain.
6881 \end_layout
6882
6883 \begin_layout Standard
6884 After creating a new module and copying it to the 
6885 \begin_inset Flex Code
6886 status collapsed
6887
6888 \begin_layout Plain Layout
6889 layouts/
6890 \end_layout
6891
6892 \end_inset
6893
6894  folder, you will need to reconfigure and then restart \SpecialChar LyX
6895  for the module to
6896  appear in the menu.
6897  However, changes you make to the module will be seen immediately, if you
6898  open 
6899 \begin_inset Flex Noun
6900 status collapsed
6901
6902 \begin_layout Plain Layout
6903 Document\SpecialChar menuseparator
6904 Settings
6905 \end_layout
6906
6907 \end_inset
6908
6909 , highlight something, and then hit 
6910 \begin_inset Quotes eld
6911 \end_inset
6912
6913 OK
6914 \begin_inset Quotes erd
6915 \end_inset
6916
6917 .
6918  
6919 \emph on
6920 It is strongly recommended that you save your work before doing this
6921 \emph default
6922 .
6923  In fact, 
6924 \emph on
6925 it is strongly recommended that you not attempt to edit modules while simultaneo
6926 usly working on actual documents
6927 \emph default
6928 .
6929  Though of course the developers strive to keep \SpecialChar LyX
6930  stable in such situations,
6931  syntax errors and the like in your module file could cause strange behavior.
6932 \end_layout
6933
6934 \begin_layout Subsubsection
6935 Local Layout
6936 \end_layout
6937
6938 \begin_layout Standard
6939 Modules are to \SpecialChar LyX
6940  as packages are to \SpecialChar LaTeX
6941 .
6942  Sometimes, however, you find yourself wanting a specific inset or character
6943  style just for one document and writing a module that will also be available
6944  to other documents makes little sense.
6945  What you need is \SpecialChar LyX
6946 's 
6947 \begin_inset Quotes eld
6948 \end_inset
6949
6950 Local Layout
6951 \begin_inset Quotes erd
6952 \end_inset
6953
6954 .
6955 \end_layout
6956
6957 \begin_layout Standard
6958 You will find it under 
6959 \family sans
6960 Document\SpecialChar menuseparator
6961 Settings\SpecialChar menuseparator
6962 Local Layout
6963 \family default
6964 .
6965  The large text box allows you to enter anything that you might enter in
6966  a layout file or module.
6967  You can think of a document's local layout, in fact, as a module that belongs
6968  just to it.
6969  So, in particular, you must enter a 
6970 \begin_inset Flex Code
6971 status collapsed
6972
6973 \begin_layout Plain Layout
6974 Format
6975 \end_layout
6976
6977 \end_inset
6978
6979  tag.
6980  Any format is acceptable, but one would normally use the format current
6981  at the time.
6982  (In \SpecialChar LyX
6983  
6984 \begin_inset Info
6985 type  "lyxinfo"
6986 arg   "version"
6987 \end_inset
6988
6989 , the current layout format is 
6990 \begin_inset Info
6991 type  "lyxinfo"
6992 arg   "layoutformat"
6993 \end_inset
6994
6995 .)
6996 \end_layout
6997
6998 \begin_layout Standard
6999 When you have entered something in the 
7000 \begin_inset Flex Code
7001 status collapsed
7002
7003 \begin_layout Plain Layout
7004 Local Layout
7005 \end_layout
7006
7007 \end_inset
7008
7009  pane, \SpecialChar LyX
7010  will enable the 
7011 \begin_inset Quotes eld
7012 \end_inset
7013
7014 Validate
7015 \begin_inset Quotes erd
7016 \end_inset
7017
7018  button at the bottom.
7019  Clicking this button will cause \SpecialChar LyX
7020  to determine whether what you have entered
7021  is valid layout information for the chosen format.
7022  \SpecialChar LyX
7023  will report the result but, unfortunately, will not tell you what errors
7024  there might have been.
7025  These will be written to the terminal, however, if \SpecialChar LyX
7026  is started from a terminal.
7027  You will not be permitted to save your local layout until you have entered
7028  something valid.
7029 \end_layout
7030
7031 \begin_layout Standard
7032 The warnings at the end of the previous section apply here, too.
7033  Do not play with local layout while you are actually working, especially
7034  if you have not saved your document.
7035  That said, using local layout with a test document can be a very convenient
7036  way to try out layout ideas, or even to start developing a module.
7037 \end_layout
7038
7039 \begin_layout Subsection
7040 Layout for 
7041 \begin_inset Flex Noun
7042 status collapsed
7043
7044 \begin_layout Plain Layout
7045 .sty
7046 \end_layout
7047
7048 \end_inset
7049
7050  files
7051 \end_layout
7052
7053 \begin_layout Standard
7054 There are two situations you are likely to encounter when wanting to support
7055  a new \SpecialChar LaTeX
7056  document class, involving style (
7057 \begin_inset Flex Code
7058 status collapsed
7059
7060 \begin_layout Plain Layout
7061 .sty
7062 \end_layout
7063
7064 \end_inset
7065
7066 ) files and \SpecialChar LaTeX2e
7067  class (
7068 \begin_inset Flex Code
7069 status collapsed
7070
7071 \begin_layout Plain Layout
7072 .cls
7073 \end_layout
7074
7075 \end_inset
7076
7077 ) .
7078  Supporting a style file is usually fairly easy.
7079  Supporting a new class file is a bit harder.
7080  We'll discuss the former in this section and the latter in the next.
7081  Similar remarks apply, of course, if you want to support a new DocBook
7082  DTD.
7083 \end_layout
7084
7085 \begin_layout Standard
7086 The easier case is the one in which your new document class is provided
7087  as a style file that is to be used in conjunction with an already supported
7088  document class.
7089  For the sake of the example, we'll assume that the style file is called
7090  
7091 \begin_inset Flex Noun
7092 status collapsed
7093
7094 \begin_layout Plain Layout
7095 myclass.sty
7096 \end_layout
7097
7098 \end_inset
7099
7100  and that it is meant to be used with 
7101 \begin_inset Flex Noun
7102 status collapsed
7103
7104 \begin_layout Plain Layout
7105 report.cls
7106 \end_layout
7107
7108 \end_inset
7109
7110 , which is a standard class.
7111  
7112 \end_layout
7113
7114 \begin_layout Standard
7115 Start by copying the existing class's layout file into your local directory:
7116 \begin_inset Foot
7117 status collapsed
7118
7119 \begin_layout Plain Layout
7120 Of course, which directory is your local directory will vary by platform,
7121  and \SpecialChar LyX
7122  allows you to specify your local directory on startup, too, using
7123  the 
7124 \begin_inset Flex Code
7125 status collapsed
7126
7127 \begin_layout Plain Layout
7128 -userdir
7129 \end_layout
7130
7131 \end_inset
7132
7133  option.
7134 \end_layout
7135
7136 \end_inset
7137
7138
7139 \end_layout
7140
7141 \begin_layout LyX-Code
7142 cp report.layout ~/.lyx/layouts/myclass.layout
7143 \end_layout
7144
7145 \begin_layout Standard
7146 Then edit 
7147 \begin_inset Flex Code
7148 status collapsed
7149
7150 \begin_layout Plain Layout
7151 myclass.layout
7152 \end_layout
7153
7154 \end_inset
7155
7156  and change the line: 
7157 \end_layout
7158
7159 \begin_layout LyX-Code
7160
7161 \backslash
7162 DeclareLaTeXClass{Report (Standard Class)}
7163 \end_layout
7164
7165 \begin_layout Standard
7166 to read
7167 \end_layout
7168
7169 \begin_layout LyX-Code
7170
7171 \backslash
7172 DeclareLaTeXClass[report, myclass.sty]{Report (My Class)}
7173 \end_layout
7174
7175 \begin_layout Standard
7176 Then add:
7177 \end_layout
7178
7179 \begin_layout LyX-Code
7180 Preamble 
7181 \begin_inset Newline newline
7182 \end_inset
7183
7184     
7185 \backslash
7186 usepackage{myclass}
7187 \begin_inset Newline newline
7188 \end_inset
7189
7190 EndPreamble
7191 \end_layout
7192
7193 \begin_layout Standard
7194 near the top of the file.
7195 \end_layout
7196
7197 \begin_layout Standard
7198 Start \SpecialChar LyX
7199  and select 
7200 \begin_inset Flex Noun
7201 status collapsed
7202
7203 \begin_layout Plain Layout
7204 Tools\SpecialChar menuseparator
7205 Reconfigure
7206 \end_layout
7207
7208 \end_inset
7209
7210 .
7211  Then restart \SpecialChar LyX
7212  and try creating a new document.
7213  You should see "
7214 \begin_inset Flex Noun
7215 status collapsed
7216
7217 \begin_layout Plain Layout
7218 Report (My Class)
7219 \end_layout
7220
7221 \end_inset
7222
7223 " as a document class option in the 
7224 \begin_inset Flex Noun
7225 status collapsed
7226
7227 \begin_layout Plain Layout
7228 Document\SpecialChar menuseparator
7229 Settings
7230 \end_layout
7231
7232 \end_inset
7233
7234  dialog.
7235  It is likely that some of the sectioning commands and such in your new
7236  class will work differently from how they worked in the base class—
7237 \begin_inset Flex Code
7238 status collapsed
7239
7240 \begin_layout Plain Layout
7241 report
7242 \end_layout
7243
7244 \end_inset
7245
7246  in this example—so you can fiddle around with the settings for the different
7247  sections if you wish.
7248  The layout information for sections is contained in 
7249 \begin_inset Flex Code
7250 status collapsed
7251
7252 \begin_layout Plain Layout
7253 stdsections.inc
7254 \end_layout
7255
7256 \end_inset
7257
7258 , but you do not need to copy and change this file.
7259  Instead, you can simply add your changes to your layout file, after the
7260  line 
7261 \begin_inset Flex Code
7262 status collapsed
7263
7264 \begin_layout Plain Layout
7265 Input stdclass.inc
7266 \end_layout
7267
7268 \end_inset
7269
7270 , which itself includes 
7271 \begin_inset Flex Code
7272 status collapsed
7273
7274 \begin_layout Plain Layout
7275 stdsections.inc
7276 \end_layout
7277
7278 \end_inset
7279
7280 .
7281  For example, you might add these lines:
7282 \end_layout
7283
7284 \begin_layout LyX-Code
7285 Style Chapter
7286 \end_layout
7287
7288 \begin_layout LyX-Code
7289     Font
7290 \end_layout
7291
7292 \begin_layout LyX-Code
7293         Family Sans
7294 \end_layout
7295
7296 \begin_layout LyX-Code
7297     EndFont
7298 \end_layout
7299
7300 \begin_layout LyX-Code
7301 End
7302 \end_layout
7303
7304 \begin_layout Standard
7305 to change the font for chapter headings to sans-serif.
7306  This will override (or, in this case, add to) the existing declaration
7307  for the Chapter style.
7308  
7309 \end_layout
7310
7311 \begin_layout Standard
7312 Your new package may also provide commands or environments not present in
7313  the base class.
7314  In this case, you will want to add these to the layout file.
7315  See 
7316 \begin_inset CommandInset ref
7317 LatexCommand ref
7318 reference "sec:TextClass"
7319
7320 \end_inset
7321
7322  for information on how to do so.
7323 \end_layout
7324
7325 \begin_layout Standard
7326 If 
7327 \begin_inset Flex Noun
7328 status collapsed
7329
7330 \begin_layout Plain Layout
7331 myclass.sty
7332 \end_layout
7333
7334 \end_inset
7335
7336  can be used with several different document classes, and even if it cannot,
7337  you might find it easiest just to write a module that you can load with
7338  the base class.
7339  The simplest possible such module would be:
7340 \end_layout
7341
7342 \begin_layout LyX-Code
7343 #
7344 \backslash
7345 DeclareLyXModule{My Class} 
7346 \end_layout
7347
7348 \begin_layout LyX-Code
7349 #DescriptionBegin 
7350 \end_layout
7351
7352 \begin_layout LyX-Code
7353 #Support for myclass.sty.
7354 \end_layout
7355
7356 \begin_layout LyX-Code
7357 #DescriptionEnd
7358 \begin_inset Newline newline
7359 \end_inset
7360
7361
7362 \end_layout
7363
7364 \begin_layout LyX-Code
7365 Format 
7366 \begin_inset Info
7367 type  "lyxinfo"
7368 arg   "layoutformat"
7369 \end_inset
7370
7371
7372 \begin_inset Newline newline
7373 \end_inset
7374
7375
7376 \end_layout
7377
7378 \begin_layout LyX-Code
7379 Preamble
7380 \begin_inset Newline newline
7381 \end_inset
7382
7383     
7384 \backslash
7385 usepackage{myclass}
7386 \begin_inset Newline newline
7387 \end_inset
7388
7389 EndPreamble
7390 \end_layout
7391
7392 \begin_layout Standard
7393 A more complex module might modify the behavior of some existing constructs
7394  or define some new ones.
7395  Again, see 
7396 \begin_inset CommandInset ref
7397 LatexCommand ref
7398 reference "sec:TextClass"
7399
7400 \end_inset
7401
7402  for discussion.
7403 \end_layout
7404
7405 \begin_layout Subsection
7406 Layout for 
7407 \begin_inset Flex Noun
7408 status collapsed
7409
7410 \begin_layout Plain Layout
7411 .cls
7412 \end_layout
7413
7414 \end_inset
7415
7416  files
7417 \end_layout
7418
7419 \begin_layout Standard
7420 There are two possibilities here.
7421  One is that the class file is itself based upon an existing document class.
7422  For example, many thesis classes are based upon 
7423 \begin_inset Flex Noun
7424 status collapsed
7425
7426 \begin_layout Plain Layout
7427 book.cls
7428 \end_layout
7429
7430 \end_inset
7431
7432 .
7433  To see whether yours is, look for a line like
7434 \end_layout
7435
7436 \begin_layout LyX-Code
7437
7438 \backslash
7439 LoadClass{book}
7440 \end_layout
7441
7442 \begin_layout Standard
7443 in the file.
7444  If so, then you may proceed largely as in the previous section, though
7445  the 
7446 \begin_inset Flex Code
7447 status collapsed
7448
7449 \begin_layout Plain Layout
7450 Declare\SpecialChar LaTeX
7451 Class
7452 \end_layout
7453
7454 \end_inset
7455
7456  line will be different.
7457  If your new class is 
7458 \begin_inset Flex Code
7459 status collapsed
7460
7461 \begin_layout Plain Layout
7462 thesis
7463 \end_layout
7464
7465 \end_inset
7466
7467  and it is based upon 
7468 \begin_inset Flex Code
7469 status collapsed
7470
7471 \begin_layout Plain Layout
7472 book
7473 \end_layout
7474
7475 \end_inset
7476
7477 , then the line should read:
7478 \begin_inset Foot
7479 status collapsed
7480
7481 \begin_layout Plain Layout
7482 And it will be easiest if you save the file to 
7483 \begin_inset Flex Code
7484 status collapsed
7485
7486 \begin_layout Plain Layout
7487 thesis.layout
7488 \end_layout
7489
7490 \end_inset
7491
7492 : \SpecialChar LyX
7493  assumes that the document class has the same name as the layout file.
7494  
7495 \end_layout
7496
7497 \end_inset
7498
7499
7500 \end_layout
7501
7502 \begin_layout LyX-Code
7503
7504 \backslash
7505 DeclareLaTeXClass[thesis,book]{thesis}
7506 \end_layout
7507
7508 \begin_layout Standard
7509 If, on the other hand, the new class is not based upon an existing class,
7510  you will probably have to 
7511 \begin_inset Quotes eld
7512 \end_inset
7513
7514 roll your own
7515 \begin_inset Quotes erd
7516 \end_inset
7517
7518  layout.
7519  We strongly suggest copying an existing layout file which uses a similar
7520  \SpecialChar LaTeX
7521  class and then modifying it, if you can do so.
7522  At least use an existing file as a starting point so you can find out what
7523  items you need to worry about.
7524  Again, the specifics are covered below.
7525 \end_layout
7526
7527 \begin_layout Subsection
7528 Creating templates
7529 \begin_inset CommandInset label
7530 LatexCommand label
7531 name "subsec:Creating-Templates"
7532
7533 \end_inset
7534
7535
7536 \end_layout
7537
7538 \begin_layout Standard
7539 Once you have written a layout file for a new document class, you might
7540  want to consider writing a 
7541 \emph on
7542 template
7543 \emph default
7544  for it, too.
7545  A template acts as a kind of tutorial for your layout, showing how it might
7546  be used, though containing dummy content.
7547  You can of course look at the various templates included with \SpecialChar LyX
7548  for ideas.
7549 \end_layout
7550
7551 \begin_layout Standard
7552 Templates are created just like usual documents: using \SpecialChar LyX
7553 .
7554  The only difference is that usual documents contain all possible settings,
7555  including the font scheme and the paper size.
7556  Usually a user doesn't want a template to overwrite his preferred settings
7557  for such parameters.
7558  For that reason, the designer of a template should remove the corresponding
7559  commands like 
7560 \begin_inset Flex Code
7561 status collapsed
7562
7563 \begin_layout Plain Layout
7564
7565 \backslash
7566 font_roman
7567 \end_layout
7568
7569 \end_inset
7570
7571  or 
7572 \begin_inset Flex Code
7573 status collapsed
7574
7575 \begin_layout Plain Layout
7576
7577 \backslash
7578 papersize
7579 \end_layout
7580
7581 \end_inset
7582
7583  from the template \SpecialChar LyX
7584  file.
7585  This can be done with any simple text-editor, for example 
7586 \begin_inset Flex Code
7587 status collapsed
7588
7589 \begin_layout Plain Layout
7590 vi
7591 \end_layout
7592
7593 \end_inset
7594
7595  or 
7596 \begin_inset Flex Code
7597 status collapsed
7598
7599 \begin_layout Plain Layout
7600 notepad
7601 \end_layout
7602
7603 \end_inset
7604
7605 .
7606 \end_layout
7607
7608 \begin_layout Standard
7609 Put the edited template files you create in 
7610 \begin_inset Flex Code
7611 status collapsed
7612
7613 \begin_layout Plain Layout
7614 UserDir/templates/
7615 \end_layout
7616
7617 \end_inset
7618
7619 , copy the ones you use from the global template directory in 
7620 \begin_inset Flex Code
7621 status collapsed
7622
7623 \begin_layout Plain Layout
7624 LyXDir/templates/
7625 \end_layout
7626
7627 \end_inset
7628
7629  to the same place, and redefine the template path in the 
7630 \begin_inset Flex Noun
7631 status collapsed
7632
7633 \begin_layout Plain Layout
7634 Tools\SpecialChar menuseparator
7635 Preferences\SpecialChar menuseparator
7636 Paths
7637 \end_layout
7638
7639 \end_inset
7640
7641  dialog.
7642 \end_layout
7643
7644 \begin_layout Standard
7645 Note, by the way, that there is a template which has a particular meaning:
7646 \begin_inset Newline linebreak
7647 \end_inset
7648
7649
7650 \begin_inset Flex Code
7651 status collapsed
7652
7653 \begin_layout Plain Layout
7654 defaults.lyx
7655 \end_layout
7656
7657 \end_inset
7658
7659 .
7660  This template is loaded every time you create a new document with 
7661 \begin_inset Flex Noun
7662 status collapsed
7663
7664 \begin_layout Plain Layout
7665 File\SpecialChar menuseparator
7666 New
7667 \end_layout
7668
7669 \end_inset
7670
7671  in order to provide useful defaults.
7672  To create this template from inside \SpecialChar LyX
7673 , all you have to do is to open a document
7674  with the correct settings, and use the 
7675 \begin_inset Flex Noun
7676 status collapsed
7677
7678 \begin_layout Plain Layout
7679 Save as Document Defaults
7680 \end_layout
7681
7682 \end_inset
7683
7684  button.
7685 \end_layout
7686
7687 \begin_layout Subsection
7688 Upgrading old layout files
7689 \end_layout
7690
7691 \begin_layout Standard
7692 The format of layout files changes with each \SpecialChar LyX
7693  release, so old layout files
7694  need to be converted to the new format.
7695  If \SpecialChar LyX
7696  reads a layout file in an older format, it automatically calls the
7697  script 
7698 \begin_inset Flex Code
7699 status collapsed
7700
7701 \begin_layout Plain Layout
7702 layout2layout.py
7703 \end_layout
7704
7705 \end_inset
7706
7707  to convert it to a temporary file in current format.
7708  The original file is left untouched.
7709  If you use the layout file often, then, you may want to convert it permanently,
7710  so that \SpecialChar LyX
7711  does not have to do so itself every time.
7712  To do this, you can call the converter manually:
7713 \end_layout
7714
7715 \begin_layout Enumerate
7716 rename the file 
7717 \begin_inset Flex Code
7718 status collapsed
7719
7720 \begin_layout Plain Layout
7721 myclass.layout
7722 \end_layout
7723
7724 \end_inset
7725
7726  to 
7727 \begin_inset Flex Code
7728 status collapsed
7729
7730 \begin_layout Plain Layout
7731 myclass.old
7732 \end_layout
7733
7734 \end_inset
7735
7736
7737 \end_layout
7738
7739 \begin_layout Enumerate
7740 Call the command
7741 \begin_inset Newline newline
7742 \end_inset
7743
7744
7745 \begin_inset Flex Code
7746 status collapsed
7747
7748 \begin_layout Plain Layout
7749 python LyXDir/scripts/layout2layout.py myclass.old myclass.layout
7750 \end_layout
7751
7752 \end_inset
7753
7754
7755 \begin_inset Newline newline
7756 \end_inset
7757
7758 where 
7759 \begin_inset Flex Code
7760 status collapsed
7761
7762 \begin_layout Plain Layout
7763 LyXDir
7764 \end_layout
7765
7766 \end_inset
7767
7768  is the name of your \SpecialChar LyX
7769  system directory.
7770 \end_layout
7771
7772 \begin_layout Standard
7773 Note that manual conversion does not affect included files, so these will
7774  have to be converted separately.
7775 \end_layout
7776
7777 \begin_layout Subsection
7778 \begin_inset CommandInset label
7779 LatexCommand label
7780 name "subsec:Cite-Engine-Files"
7781
7782 \end_inset
7783
7784 Cite engine files
7785 \end_layout
7786
7787 \begin_layout Standard
7788 A specific form of layout files are the so-called 
7789 \begin_inset Flex Code
7790 status collapsed
7791
7792 \begin_layout Plain Layout
7793 *.citeengine
7794 \end_layout
7795
7796 \end_inset
7797
7798  files that are located in the 
7799 \begin_inset Flex Code
7800 status collapsed
7801
7802 \begin_layout Plain Layout
7803 citeengines/
7804 \end_layout
7805
7806 \end_inset
7807
7808  sub-directory.
7809  Their purpose is to define the specifics of \SpecialChar LaTeX
7810  packages aimed at bibliography
7811  generation, such as 
7812 \family sans
7813 natbib
7814 \family default
7815 ,
7816 \family sans
7817  jurabib
7818 \family default
7819  or 
7820 \family sans
7821 biblatex
7822 \family default
7823 , but also the way how normal Bib\SpecialChar TeX
7824  citations (without additional packages)
7825  are handled in \SpecialChar LyX
7826  is defined in such a file.
7827  
7828 \end_layout
7829
7830 \begin_layout Standard
7831 More specifically, it is defined which packages \SpecialChar LyX
7832  needs to load, which citation
7833  commands are available, how these are to be displayed in \SpecialChar LyX
7834  (in the workarea,
7835  the dialogs, the context menus) as well as in the XHTML and plain text
7836  output.
7837  Furthermore, the files specify available style variants (author-year, numerical
7838 , etc.) and their specifics.
7839  The cite engine files are also used to generate the options that are available
7840  in 
7841 \family sans
7842 Document\SpecialChar menuseparator
7843 Settings\SpecialChar menuseparator
7844 Bibliography\SpecialChar menuseparator
7845 Style engine
7846 \family default
7847 .
7848 \end_layout
7849
7850 \begin_layout Standard
7851 Even though a cite engine file is essentially a normal layout file that
7852  could theoretically include any layout information, it usually primarily
7853  includes some specific parameters such as 
7854 \begin_inset Flex Code
7855 status collapsed
7856
7857 \begin_layout Plain Layout
7858 MaxCiteNames
7859 \end_layout
7860
7861 \end_inset
7862
7863
7864 \begin_inset Flex Code
7865 status collapsed
7866
7867 \begin_layout Plain Layout
7868 CiteFramework
7869 \end_layout
7870
7871 \end_inset
7872
7873
7874 \begin_inset Flex Code
7875 status collapsed
7876
7877 \begin_layout Plain Layout
7878 CiteEngine
7879 \end_layout
7880
7881 \end_inset
7882
7883  and 
7884 \begin_inset Flex Code
7885 status collapsed
7886
7887 \begin_layout Plain Layout
7888 CiteFormat
7889 \end_layout
7890
7891 \end_inset
7892
7893  blocks.
7894  The syntax of the latter two is described in 
7895 \begin_inset CommandInset ref
7896 LatexCommand ref
7897 reference "subsec:Citation-engine-description"
7898 plural "false"
7899 caps "false"
7900 noprefix "false"
7901
7902 \end_inset
7903
7904  and 
7905 \begin_inset CommandInset ref
7906 LatexCommand ref
7907 reference "subsec:Citation-format-description"
7908
7909 \end_inset
7910
7911 , as well as in the files themselves.
7912 \end_layout
7913
7914 \begin_layout Section
7915 \begin_inset CommandInset label
7916 LatexCommand label
7917 name "sec:TextClass"
7918
7919 \end_inset
7920
7921 The layout file format
7922 \end_layout
7923
7924 \begin_layout Standard
7925 The following sections describe how layout files are structured and written.
7926  Our advice is to go slowly, save and test often.
7927  It is really not that hard, except that the multitude of options can become
7928  overwhelming, especially if you try to check out too many at once.
7929  It becomes easier if you use existing layouts of \SpecialChar LyX
7930  as examples/reference
7931  or if you modify an existing layout to your needs.
7932 \end_layout
7933
7934 \begin_layout Standard
7935 Note that all the tags used in layout files are case-insensitive.
7936  This means that 
7937 \begin_inset Flex Code
7938 status collapsed
7939
7940 \begin_layout Plain Layout
7941 Style
7942 \end_layout
7943
7944 \end_inset
7945
7946
7947 \begin_inset Flex Code
7948 status collapsed
7949
7950 \begin_layout Plain Layout
7951 style
7952 \end_layout
7953
7954 \end_inset
7955
7956  and 
7957 \begin_inset Flex Code
7958 status collapsed
7959
7960 \begin_layout Plain Layout
7961 StYlE
7962 \end_layout
7963
7964 \end_inset
7965
7966  are really the same tag.
7967  The possible arguments are printed in brackets after the tag's name.
7968  The default argument is typeset 
7969 \begin_inset Flex Code
7970 status collapsed
7971
7972 \begin_layout Plain Layout
7973
7974 \emph on
7975 emphasized
7976 \end_layout
7977
7978 \end_inset
7979
7980 .
7981  If the argument has a data type like 
7982 \begin_inset Quotes eld
7983 \end_inset
7984
7985 string
7986 \begin_inset Quotes erd
7987 \end_inset
7988
7989  or 
7990 \begin_inset Quotes eld
7991 \end_inset
7992
7993 float
7994 \begin_inset Quotes erd
7995 \end_inset
7996
7997 , the default is shown like this: 
7998 \begin_inset Flex Code
7999 status collapsed
8000
8001 \begin_layout Plain Layout
8002 float=
8003 \emph on
8004 default
8005 \end_layout
8006
8007 \end_inset
8008
8009 .
8010 \end_layout
8011
8012 \begin_layout Subsection
8013 The document class declaration and classification
8014 \end_layout
8015
8016 \begin_layout Standard
8017 Lines in a layout file which begin with 
8018 \begin_inset Flex Code
8019 status collapsed
8020
8021 \begin_layout Plain Layout
8022 #
8023 \end_layout
8024
8025 \end_inset
8026
8027  are comments.
8028  There is one exception to this rule.
8029  All 
8030 \begin_inset Flex Code
8031 status collapsed
8032
8033 \begin_layout Plain Layout
8034 *.layout
8035 \end_layout
8036
8037 \end_inset
8038
8039  files should begin with lines like:
8040 \end_layout
8041
8042 \begin_layout LyX-Code
8043
8044 \size small
8045 #% Do not delete the line below; configure depends on this 
8046 \end_layout
8047
8048 \begin_layout LyX-Code
8049
8050 \size small
8051 #  
8052 \backslash
8053 DeclareLaTeXClass{Article (Standard Class)}
8054 \end_layout
8055
8056 \begin_layout LyX-Code
8057
8058 \size small
8059 #  
8060 \backslash
8061 DeclareCategory{Articles}
8062 \end_layout
8063
8064 \begin_layout Standard
8065 The second and third lines are used when you (re)configure \SpecialChar LyX
8066 .
8067  The layout file is read by the \SpecialChar LaTeX
8068  script 
8069 \begin_inset Flex Code
8070 status collapsed
8071
8072 \begin_layout Plain Layout
8073 chkconfig.ltx
8074 \end_layout
8075
8076 \end_inset
8077
8078 , in a special mode where 
8079 \begin_inset Flex Code
8080 status collapsed
8081
8082 \begin_layout Plain Layout
8083 #
8084 \end_layout
8085
8086 \end_inset
8087
8088  is ignored.
8089  The first line is just a \SpecialChar LaTeX
8090  comment, the second one contains the mandatory
8091  declaration of the text class and the third line contains the optional
8092  classification of the class.
8093  If these lines appear in a file named 
8094 \begin_inset Flex Code
8095 status collapsed
8096
8097 \begin_layout Plain Layout
8098 article.layout
8099 \end_layout
8100
8101 \end_inset
8102
8103 , then they define a text class of name 
8104 \begin_inset Flex Code
8105 status collapsed
8106
8107 \begin_layout Plain Layout
8108 article
8109 \end_layout
8110
8111 \end_inset
8112
8113  (the name of the layout file) which uses the \SpecialChar LaTeX
8114  document class 
8115 \begin_inset Flex Code
8116 status collapsed
8117
8118 \begin_layout Plain Layout
8119 article.cls
8120 \end_layout
8121
8122 \end_inset
8123
8124  (the default is to use the same name as the layout).
8125  The string 
8126 \begin_inset Quotes eld
8127 \end_inset
8128
8129 Article (Standard Class)
8130 \begin_inset Quotes erd
8131 \end_inset
8132
8133  that appears above is used as a description of the text class in the 
8134 \begin_inset Flex Noun
8135 status collapsed
8136
8137 \begin_layout Plain Layout
8138 Document\SpecialChar menuseparator
8139 Settings
8140 \end_layout
8141
8142 \end_inset
8143
8144  dialog.
8145  The category (
8146 \begin_inset Quotes eld
8147 \end_inset
8148
8149 Articles
8150 \begin_inset Quotes erd
8151 \end_inset
8152
8153  in the example) is also used in the 
8154 \begin_inset Flex Noun
8155 status collapsed
8156
8157 \begin_layout Plain Layout
8158 Document\SpecialChar menuseparator
8159 Settings
8160 \end_layout
8161
8162 \end_inset
8163
8164  dialog: the text classes are grouped by these categories (which are usually
8165  genres, so typical categories are 
8166 \begin_inset Quotes eld
8167 \end_inset
8168
8169 Articles
8170 \begin_inset Quotes erd
8171 \end_inset
8172
8173
8174 \begin_inset Quotes eld
8175 \end_inset
8176
8177 Books
8178 \begin_inset Quotes erd
8179 \end_inset
8180
8181
8182 \begin_inset Quotes eld
8183 \end_inset
8184
8185 Reports
8186 \begin_inset Quotes erd
8187 \end_inset
8188
8189
8190 \begin_inset Quotes eld
8191 \end_inset
8192
8193 Letters
8194 \begin_inset Quotes erd
8195 \end_inset
8196
8197
8198 \begin_inset Quotes eld
8199 \end_inset
8200
8201 Presentations
8202 \begin_inset Quotes erd
8203 \end_inset
8204
8205
8206 \begin_inset Quotes eld
8207 \end_inset
8208
8209 Curricula Vitae
8210 \begin_inset Quotes erd
8211 \end_inset
8212
8213  etc.).
8214  If no category has been declared, the class will be put in the 
8215 \begin_inset Quotes eld
8216 \end_inset
8217
8218 Uncategorized
8219 \begin_inset Quotes erd
8220 \end_inset
8221
8222  group.
8223 \end_layout
8224
8225 \begin_layout Standard
8226 Let's assume that you wrote your own text class that uses the 
8227 \begin_inset Flex Code
8228 status collapsed
8229
8230 \begin_layout Plain Layout
8231 article.cls
8232 \end_layout
8233
8234 \end_inset
8235
8236  document class, but where you changed the appearance of the section headings.
8237  If you put it in a file 
8238 \begin_inset Flex Code
8239 status collapsed
8240
8241 \begin_layout Plain Layout
8242 myarticle.layout
8243 \end_layout
8244
8245 \end_inset
8246
8247 , the header of this file should be:
8248 \end_layout
8249
8250 \begin_layout LyX-Code
8251
8252 \size small
8253 #% Do not delete the line below; configure depends on this 
8254 \end_layout
8255
8256 \begin_layout LyX-Code
8257
8258 \size small
8259 #  
8260 \backslash
8261 DeclareLaTeXClass[article]{Article (with My Own Headings)}
8262 \end_layout
8263
8264 \begin_layout LyX-Code
8265
8266 \size small
8267 #  
8268 \backslash
8269 DeclareCategory{Articles}
8270 \end_layout
8271
8272 \begin_layout Standard
8273 This declares a text class 
8274 \begin_inset Flex Code
8275 status collapsed
8276
8277 \begin_layout Plain Layout
8278 myarticle
8279 \end_layout
8280
8281 \end_inset
8282
8283 , associated with the \SpecialChar LaTeX
8284  document class 
8285 \begin_inset Flex Code
8286 status collapsed
8287
8288 \begin_layout Plain Layout
8289 article.cls
8290 \end_layout
8291
8292 \end_inset
8293
8294  and described as 
8295 \begin_inset Quotes eld
8296 \end_inset
8297
8298 Article (with My Own Headings)
8299 \begin_inset Quotes erd
8300 \end_inset
8301
8302 .
8303  If your text class depends on several packages, you can declare it as:
8304 \end_layout
8305
8306 \begin_layout LyX-Code
8307
8308 \size small
8309 #% Do not delete the line below; configure depends on this 
8310 \end_layout
8311
8312 \begin_layout LyX-Code
8313
8314 \size small
8315 #  
8316 \backslash
8317 DeclareLaTeXClass[article,foo.sty]{Article (with My Own Headings)}
8318 \end_layout
8319
8320 \begin_layout LyX-Code
8321
8322 \size small
8323 #  
8324 \backslash
8325 DeclareCategory{Articles}
8326 \end_layout
8327
8328 \begin_layout Standard
8329 This indicates that your text class uses the 
8330 \begin_inset Flex Code
8331 status collapsed
8332
8333 \begin_layout Plain Layout
8334 foo.sty
8335 \end_layout
8336
8337 \end_inset
8338
8339  package.
8340  Finally, it is also possible to declare classes for DocBook code.
8341  Typical declarations will look like:
8342 \end_layout
8343
8344 \begin_layout LyX-Code
8345
8346 \size small
8347 #% Do not delete the line below; configure depends on this 
8348 \end_layout
8349
8350 \begin_layout LyX-Code
8351
8352 \size small
8353
8354 \backslash
8355 DeclareDocBookClass[article]{SGML (DocBook Article)}
8356 \end_layout
8357
8358 \begin_layout LyX-Code
8359
8360 \size small
8361
8362 \backslash
8363 DeclareCategory{Articles (DocBook)}
8364 \end_layout
8365
8366 \begin_layout Standard
8367 Note that these declarations can also be given an optional parameter declaring
8368  the name of the document class (but not a list).
8369 \end_layout
8370
8371 \begin_layout Standard
8372 So, to be as explicit as possible, the form of the layout declaration is:
8373 \end_layout
8374
8375 \begin_layout LyX-Code
8376
8377 \size small
8378 #  
8379 \backslash
8380 DeclareLaTeXClass[class,package.sty]{layout description}
8381 \end_layout
8382
8383 \begin_layout LyX-Code
8384
8385 \size small
8386 #  
8387 \backslash
8388 DeclareCategory{category}
8389 \end_layout
8390
8391 \begin_layout Standard
8392 The class need only be specified if the name of the \SpecialChar LaTeX
8393  class file and the
8394  name of the layout file are different or if there are packages to load.
8395  If the name of the class file is not specified, then \SpecialChar LyX
8396  will simply assume
8397  that it is the same as the name of the layout file.
8398 \end_layout
8399
8400 \begin_layout Standard
8401 When the text class has been modified to your taste, all you have to do
8402  is to copy it either to 
8403 \begin_inset Flex Code
8404 status collapsed
8405
8406 \begin_layout Plain Layout
8407 LyXDir/layouts/
8408 \end_layout
8409
8410 \end_inset
8411
8412  or to 
8413 \begin_inset Flex Code
8414 status collapsed
8415
8416 \begin_layout Plain Layout
8417 UserDir/layouts
8418 \end_layout
8419
8420 \end_inset
8421
8422 , run 
8423 \begin_inset Flex Noun
8424 status collapsed
8425
8426 \begin_layout Plain Layout
8427 Tools\SpecialChar menuseparator
8428 Reconfigure
8429 \end_layout
8430
8431 \end_inset
8432
8433 , exit \SpecialChar LyX
8434  and restart.
8435  Then your new text class should be available along with the others.
8436 \end_layout
8437
8438 \begin_layout Standard
8439 Once the layout file is installed, you can edit it and see your changes
8440  without having to reconfigure or to restart \SpecialChar LyX
8441 .
8442 \begin_inset Foot
8443 status collapsed
8444
8445 \begin_layout Plain Layout
8446 In versions of \SpecialChar LyX
8447  prior to 1.6, this was not true.
8448  As a result, editing layout files was very time consuming, since you had
8449  constantly to restart \SpecialChar LyX
8450  to see changes.
8451 \end_layout
8452
8453 \end_inset
8454
8455  You can force a reload of the current layout by using the \SpecialChar LyX
8456  function 
8457 \begin_inset Flex Noun
8458 status collapsed
8459
8460 \begin_layout Plain Layout
8461 layout-reload
8462 \end_layout
8463
8464 \end_inset
8465
8466 .
8467  There is no default binding for this function—though, of course, you can
8468  bind it to a key yourself.
8469  But you will normally use this function simply by entering it in the mini-buffe
8470 r.
8471  
8472 \end_layout
8473
8474 \begin_layout Standard
8475
8476 \emph on
8477 Warning
8478 \emph default
8479
8480 \begin_inset Flex Noun
8481 status collapsed
8482
8483 \begin_layout Plain Layout
8484 layout-reload
8485 \end_layout
8486
8487 \end_inset
8488
8489  is very much an `advanced feature'.
8490  It is 
8491 \emph on
8492 strongly
8493 \emph default
8494  recommended that you save your work before using this function.
8495  In fact, it is 
8496 \emph on
8497 strongly
8498 \emph default
8499  recommended that you not attempt to edit layout information while simultaneousl
8500 y working on a document that you care about.
8501  Use a test document.
8502  Syntax errors and the like in your layout file could cause peculiar behavior.
8503  In particular, such errors could cause \SpecialChar LyX
8504  to regard the current layout as
8505  invalid and to attempt to switch to some other layout.
8506 \begin_inset Foot
8507 status collapsed
8508
8509 \begin_layout Plain Layout
8510 Really bad syntax errors may even caused \SpecialChar LyX
8511  to exit.
8512  This is because certain sorts of errors may make \SpecialChar LyX
8513  unable to read 
8514 \emph on
8515 any
8516 \emph default
8517  layout information.
8518  Please be careful.
8519 \end_layout
8520
8521 \end_inset
8522
8523  The \SpecialChar LyX
8524  team strives to keep \SpecialChar LyX
8525  stable in such situations, but safe is better
8526  than sorry.
8527 \begin_inset Foot
8528 status collapsed
8529
8530 \begin_layout Plain Layout
8531 While we're giving advice: make regular backups.
8532  And be nice to your mother.
8533 \end_layout
8534
8535 \end_inset
8536
8537
8538 \end_layout
8539
8540 \begin_layout Subsection
8541 The Module declaration
8542 \end_layout
8543
8544 \begin_layout Standard
8545 A module must begin with a line like the following:
8546 \end_layout
8547
8548 \begin_layout LyX-Code
8549 #
8550 \backslash
8551 DeclareLyXModule[endnotes.sty]{Endnotes}
8552 \change_inserted -712698321 1554395911
8553
8554 \end_layout
8555
8556 \begin_layout LyX-Code
8557
8558 \change_inserted -712698321 1554395924
8559
8560 \size small
8561 #
8562 \backslash
8563 DeclareCategory{Foot- and Endnotes}
8564 \change_deleted -712698321 1554395911
8565
8566 \size default
8567  
8568 \change_unchanged
8569
8570 \end_layout
8571
8572 \begin_layout Standard
8573 The mandatory argument
8574 \change_inserted -712698321 1554395956
8575  of 
8576 \family typewriter
8577
8578 \backslash
8579 DeclareLyXModule
8580 \change_unchanged
8581
8582 \family default
8583 , in curly brackets, is the name of the module, as it should appear in 
8584 \begin_inset Flex Noun
8585 status collapsed
8586
8587 \begin_layout Plain Layout
8588 Document\SpecialChar menuseparator
8589 Settings\SpecialChar menuseparator
8590 Modules
8591 \end_layout
8592
8593 \end_inset
8594
8595 .
8596  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8597  packages
8598  on which the module depends.
8599  It is also possible to use the form 
8600 \begin_inset Flex Noun
8601 status collapsed
8602
8603 \begin_layout Plain Layout
8604 from->to
8605 \end_layout
8606
8607 \end_inset
8608
8609  as an optional argument, which declares that the module can only be used
8610  when there exists a conversion chain between the formats `
8611 \begin_inset Flex Code
8612 status collapsed
8613
8614 \begin_layout Plain Layout
8615 from
8616 \end_layout
8617
8618 \end_inset
8619
8620 ' and `
8621 \begin_inset Flex Code
8622 status collapsed
8623
8624 \begin_layout Plain Layout
8625 to
8626 \end_layout
8627
8628 \end_inset
8629
8630 '.
8631
8632 \change_inserted -712698321 1554396133
8633  The 
8634 \family typewriter
8635
8636 \backslash
8637 DeclareCategory
8638 \family default
8639  declaration is not strictly mandatory, but you should add it, since it
8640  is helpful to find the module.
8641  Please have a look at the existing module categories and if appropriate,
8642  use one of those.
8643 \change_unchanged
8644
8645 \end_layout
8646
8647 \begin_layout Standard
8648 The module 
8649 \change_inserted -712698321 1554395988
8650 and category 
8651 \change_unchanged
8652 declaration should then be followed by lines like the following:
8653 \begin_inset Foot
8654 status collapsed
8655
8656 \begin_layout Plain Layout
8657 Preferably in English if the module should be published with \SpecialChar LyX
8658 .
8659  This description will appear in the list of messages to be translated and
8660  will be thus translated with the next interface update.
8661 \end_layout
8662
8663 \end_inset
8664
8665
8666 \end_layout
8667
8668 \begin_layout LyX-Code
8669 #DescriptionBegin 
8670 \end_layout
8671
8672 \begin_layout LyX-Code
8673 #Adds an endnote command, in addition to footnotes.
8674  
8675 \end_layout
8676
8677 \begin_layout LyX-Code
8678 #You will need to add  
8679 \backslash
8680 theendnotes in TeX code where you 
8681 \end_layout
8682
8683 \begin_layout LyX-Code
8684 #want the endnotes to appear.
8685  
8686 \end_layout
8687
8688 \begin_layout LyX-Code
8689 #DescriptionEnd 
8690 \end_layout
8691
8692 \begin_layout LyX-Code
8693 #Requires: somemodule | othermodule
8694 \end_layout
8695
8696 \begin_layout LyX-Code
8697 #Excludes: badmodule
8698 \end_layout
8699
8700 \begin_layout Standard
8701 The description is used in 
8702 \begin_inset Flex Noun
8703 status collapsed
8704
8705 \begin_layout Plain Layout
8706 Document\SpecialChar menuseparator
8707 Settings\SpecialChar menuseparator
8708 Modules
8709 \end_layout
8710
8711 \end_inset
8712
8713  to provide the user with information about what the module does.
8714  The 
8715 \begin_inset Flex Code
8716 status collapsed
8717
8718 \begin_layout Plain Layout
8719 Requires
8720 \end_layout
8721
8722 \end_inset
8723
8724  line is used to identify other modules with which this one must be used;
8725  the 
8726 \begin_inset Flex Code
8727 status collapsed
8728
8729 \begin_layout Plain Layout
8730 Excludes
8731 \end_layout
8732
8733 \end_inset
8734
8735  line is used to identify modules with which this one may not be used.
8736  Both are optional, and, as shown, multiple modules should be separated
8737  with the pipe symbol: |.
8738  Note that the required modules are treated disjunctively: 
8739 \emph on
8740 at least one
8741 \emph default
8742  of the required modules must be used.
8743  Similarly, 
8744 \emph on
8745 no
8746 \emph default
8747  excluded module may be used.
8748  Note that modules are identified here by their filenames without the 
8749 \begin_inset Flex Code
8750 status collapsed
8751
8752 \begin_layout Plain Layout
8753 .module
8754 \end_layout
8755
8756 \end_inset
8757
8758  extension.
8759  So 
8760 \begin_inset Flex Code
8761 status collapsed
8762
8763 \begin_layout Plain Layout
8764 somemodule
8765 \end_layout
8766
8767 \end_inset
8768
8769  is really 
8770 \begin_inset Flex Code
8771 status collapsed
8772
8773 \begin_layout Plain Layout
8774 somemodule.module
8775 \end_layout
8776
8777 \end_inset
8778
8779 .
8780 \end_layout
8781
8782 \begin_layout Subsection
8783 The CiteEngine file declaration
8784 \end_layout
8785
8786 \begin_layout Standard
8787 A cite engine file must begin with a line like the following:
8788 \end_layout
8789
8790 \begin_layout LyX-Code
8791 #
8792 \backslash
8793 DeclareLyXCiteEngineModule[biblatex.sty]{Biblatex}
8794 \end_layout
8795
8796 \begin_layout Standard
8797 The mandatory argument, in curly brackets, is the name of the cite style,
8798  as it should appear in 
8799 \begin_inset Flex Noun
8800 status collapsed
8801
8802 \begin_layout Plain Layout
8803 Document\SpecialChar menuseparator
8804 Settings\SpecialChar menuseparator
8805 Bibliography
8806 \end_layout
8807
8808 \end_inset
8809
8810 .
8811  The argument in square brackets is optional: It declares any \SpecialChar LaTeX
8812  packages
8813  on which the cite engine depends.
8814 \end_layout
8815
8816 \begin_layout Standard
8817 The cite engine declaration should then be followed by lines like the following:
8818 \begin_inset Foot
8819 status collapsed
8820
8821 \begin_layout Plain Layout
8822 Preferably in English if the module should be published with \SpecialChar LyX
8823 .
8824  This description will appear in the list of messages to be translated and
8825  will be thus translated with the next interface update.
8826 \end_layout
8827
8828 \end_inset
8829
8830
8831 \end_layout
8832
8833 \begin_layout LyX-Code
8834 # DescriptionBegin
8835 \end_layout
8836
8837 \begin_layout LyX-Code
8838 #   Biblatex supports many author-year and numerical styles.
8839 \end_layout
8840
8841 \begin_layout LyX-Code
8842 #   It is mainly aimed at the Humanities.
8843  It is highly
8844 \end_layout
8845
8846 \begin_layout LyX-Code
8847 #   customizable, fully localized and provides many features
8848 \end_layout
8849
8850 \begin_layout LyX-Code
8851 #   that are not possible with BibTeX.
8852  The use of 'biber' as
8853 \end_layout
8854
8855 \begin_layout LyX-Code
8856 #   bibliography processor is advised.
8857 \end_layout
8858
8859 \begin_layout LyX-Code
8860 # DescriptionEnd
8861 \end_layout
8862
8863 \begin_layout Standard
8864 The description is used in 
8865 \begin_inset Flex Noun
8866 status collapsed
8867
8868 \begin_layout Plain Layout
8869 Document\SpecialChar menuseparator
8870 Settings\SpecialChar menuseparator
8871 Bibliography
8872 \end_layout
8873
8874 \end_inset
8875
8876  to provide the user with information about the cite engine.
8877 \end_layout
8878
8879 \begin_layout Subsection
8880 Format number
8881 \end_layout
8882
8883 \begin_layout Standard
8884 The first non-comment line of any layout file, included file, or module
8885  
8886 \emph on
8887 must
8888 \emph default
8889  contain the file format number:
8890 \end_layout
8891
8892 \begin_layout Description
8893 \begin_inset Flex Code
8894 status collapsed
8895
8896 \begin_layout Plain Layout
8897 Format
8898 \end_layout
8899
8900 \end_inset
8901
8902  [
8903 \begin_inset Flex Code
8904 status collapsed
8905
8906 \begin_layout Plain Layout
8907 int
8908 \end_layout
8909
8910 \end_inset
8911
8912 ] The format number of the layout file.
8913 \end_layout
8914
8915 \begin_layout Standard
8916 This tag was introduced with \SpecialChar LyX
8917
8918 \begin_inset space ~
8919 \end_inset
8920
8921 1.4.0.
8922  Layout files from older \SpecialChar LyX
8923  versions do not have an explicit file format and
8924  are considered to have 
8925 \begin_inset Flex Code
8926 status collapsed
8927
8928 \begin_layout Plain Layout
8929 Format
8930 \begin_inset space ~
8931 \end_inset
8932
8933 1
8934 \end_layout
8935
8936 \end_inset
8937
8938 .
8939  The format for the present version of \SpecialChar LyX
8940  is format 60.
8941  But each version of \SpecialChar LyX
8942  is capable of reading earlier versions' layout files,
8943  just as they are capable of reading files produced by earlier versions
8944  of \SpecialChar LyX
8945 .
8946  There is, however, no provision for converting to earlier formats.
8947 \end_layout
8948
8949 \begin_layout Subsection
8950 \begin_inset CommandInset label
8951 LatexCommand label
8952 name "subsec:General-text-class"
8953
8954 \end_inset
8955
8956 General text class parameters
8957 \end_layout
8958
8959 \begin_layout Standard
8960 These are general parameters that govern the behavior of an entire document
8961  class.
8962  (This does 
8963 \emph on
8964 not
8965 \emph default
8966  mean that they must appear in 
8967 \begin_inset Flex Code
8968 status collapsed
8969
8970 \begin_layout Plain Layout
8971 .layout
8972 \end_layout
8973
8974 \end_inset
8975
8976  files rather than in modules.
8977  A module can contain any layout tag.)
8978 \end_layout
8979
8980 \begin_layout Description
8981
8982 \change_inserted -712698321 1526899478
8983 \begin_inset Flex Code
8984 status collapsed
8985
8986 \begin_layout Plain Layout
8987
8988 \change_inserted -712698321 1526898610
8989 AddToCiteEngine <engine>
8990 \end_layout
8991
8992 \end_inset
8993
8994  Extends the possibilities for displaying citation references.
8995  See 
8996 \begin_inset CommandInset ref
8997 LatexCommand ref
8998 reference "subsec:Citation-engine-description"
8999 plural "false"
9000 caps "false"
9001 noprefix "false"
9002
9003 \end_inset
9004
9005  for details.
9006  Must end with 
9007 \begin_inset Flex Code
9008 status collapsed
9009
9010 \begin_layout Plain Layout
9011
9012 \change_inserted -712698321 1526898823
9013 End
9014 \change_unchanged
9015
9016 \end_layout
9017
9018 \end_inset
9019
9020 .
9021 \end_layout
9022
9023 \begin_layout Description
9024 \begin_inset Flex Code
9025 status collapsed
9026
9027 \begin_layout Plain Layout
9028 AddToHTMLPreamble
9029 \end_layout
9030
9031 \end_inset
9032
9033  Adds information that will be output in the 
9034 \begin_inset Flex Code
9035 status collapsed
9036
9037 \begin_layout Plain Layout
9038 <head>
9039 \end_layout
9040
9041 \end_inset
9042
9043  block when the document is output to XHTML.
9044  Typically, this would be used to output CSS style information, but it can
9045  be used for anything that can appear in 
9046 \begin_inset Flex Code
9047 status collapsed
9048
9049 \begin_layout Plain Layout
9050 <head>
9051 \end_layout
9052
9053 \end_inset
9054
9055 .
9056  Must end with 
9057 \begin_inset Quotes eld
9058 \end_inset
9059
9060
9061 \begin_inset Flex Code
9062 status collapsed
9063
9064 \begin_layout Plain Layout
9065 EndPreamble
9066 \end_layout
9067
9068 \end_inset
9069
9070
9071 \begin_inset Quotes erd
9072 \end_inset
9073
9074 .
9075 \end_layout
9076
9077 \begin_layout Description
9078 \begin_inset Flex Code
9079 status collapsed
9080
9081 \begin_layout Plain Layout
9082 AddToPreamble
9083 \end_layout
9084
9085 \end_inset
9086
9087  Adds information to the document preamble.
9088  Must end with
9089 \begin_inset Newline newline
9090 \end_inset
9091
9092
9093 \begin_inset Quotes eld
9094 \end_inset
9095
9096
9097 \begin_inset Flex Code
9098 status collapsed
9099
9100 \begin_layout Plain Layout
9101 EndPreamble
9102 \end_layout
9103
9104 \end_inset
9105
9106
9107 \begin_inset Quotes erd
9108 \end_inset
9109
9110 .
9111 \change_inserted -712698321 1562592950
9112
9113 \end_layout
9114
9115 \begin_layout Description
9116
9117 \change_inserted -712698321 1562593040
9118 \begin_inset Flex Code
9119 status collapsed
9120
9121 \begin_layout Plain Layout
9122
9123 \change_inserted -712698321 1562592954
9124 BibInToc
9125 \end_layout
9126
9127 \end_inset
9128
9129  [
9130 \begin_inset Flex Code
9131 status collapsed
9132
9133 \begin_layout Plain Layout
9134
9135 \change_inserted -712698321 1562592950
9136
9137 \emph on
9138 0
9139 \end_layout
9140
9141 \end_inset
9142
9143 ,
9144 \begin_inset space \thinspace{}
9145 \end_inset
9146
9147
9148 \begin_inset Flex Code
9149 status collapsed
9150
9151 \begin_layout Plain Layout
9152
9153 \change_inserted -712698321 1562592950
9154 1
9155 \end_layout
9156
9157 \end_inset
9158
9159 ] If the document class adds the bibliography to the table of contents,
9160  add this option with value 
9161 \begin_inset Flex Code
9162 status collapsed
9163
9164 \begin_layout Plain Layout
9165
9166 \change_inserted -712698321 1562592996
9167 1
9168 \change_unchanged
9169
9170 \end_layout
9171
9172 \end_inset
9173
9174  (or 
9175 \begin_inset Flex Code
9176 status collapsed
9177
9178 \begin_layout Plain Layout
9179
9180 \change_inserted -712698321 1562593006
9181 true
9182 \change_unchanged
9183
9184 \end_layout
9185
9186 \end_inset
9187
9188 ).
9189  This prevents the bibliography from being added twice.
9190 \change_unchanged
9191
9192 \end_layout
9193
9194 \begin_layout Description
9195 \begin_inset Flex Code
9196 status collapsed
9197
9198 \begin_layout Plain Layout
9199 CiteEngine <engine>
9200 \end_layout
9201
9202 \end_inset
9203
9204  Defines the possibilities for displaying citation references.
9205  See 
9206 \begin_inset CommandInset ref
9207 LatexCommand ref
9208 reference "subsec:Citation-engine-description"
9209 plural "false"
9210 caps "false"
9211 noprefix "false"
9212
9213 \end_inset
9214
9215  for details.
9216  Must end with 
9217 \begin_inset Quotes eld
9218 \end_inset
9219
9220
9221 \begin_inset Flex Code
9222 status collapsed
9223
9224 \begin_layout Plain Layout
9225 End
9226 \end_layout
9227
9228 \end_inset
9229
9230
9231 \begin_inset Quotes erd
9232 \end_inset
9233
9234 .
9235  Primarily used in cite engine files (see 
9236 \begin_inset CommandInset ref
9237 LatexCommand ref
9238 reference "subsec:Cite-Engine-Files"
9239 plural "false"
9240 caps "false"
9241 noprefix "false"
9242
9243 \end_inset
9244
9245 ).
9246
9247 \change_inserted -712698321 1526898530
9248  Note that if you specify this in a layout file or module, any cite engine
9249  definition will be overridden.
9250  Also see 
9251 \begin_inset Flex Code
9252 status collapsed
9253
9254 \begin_layout Plain Layout
9255
9256 \change_inserted -712698321 1526898530
9257 AddToCiteEngine
9258 \change_unchanged
9259
9260 \end_layout
9261
9262 \end_inset
9263
9264 .
9265 \change_unchanged
9266
9267 \end_layout
9268
9269 \begin_layout Description
9270 \begin_inset Flex Code
9271 status collapsed
9272
9273 \begin_layout Plain Layout
9274 CiteFormat
9275 \end_layout
9276
9277 \end_inset
9278
9279  Defines formats for use in the display of bibliographic information.
9280  See 
9281 \begin_inset CommandInset ref
9282 LatexCommand ref
9283 reference "subsec:Citation-format-description"
9284
9285 \end_inset
9286
9287  for details.
9288  Must end with 
9289 \begin_inset Quotes eld
9290 \end_inset
9291
9292
9293 \begin_inset Flex Code
9294 status collapsed
9295
9296 \begin_layout Plain Layout
9297 End
9298 \end_layout
9299
9300 \end_inset
9301
9302
9303 \begin_inset Quotes erd
9304 \end_inset
9305
9306 .
9307  Primarily used in cite engine files (see 
9308 \begin_inset CommandInset ref
9309 LatexCommand ref
9310 reference "subsec:Cite-Engine-Files"
9311 plural "false"
9312 caps "false"
9313 noprefix "false"
9314
9315 \end_inset
9316
9317 ).
9318
9319 \change_inserted -712698321 1526898585
9320  A cite format defined in a layout or module will override the cite engine
9321  definition.
9322 \change_unchanged
9323
9324 \end_layout
9325
9326 \begin_layout Description
9327 \begin_inset Flex Code
9328 status collapsed
9329
9330 \begin_layout Plain Layout
9331 CiteFramework
9332 \end_layout
9333
9334 \end_inset
9335
9336  [
9337 \begin_inset Flex Code
9338 status collapsed
9339
9340 \begin_layout Plain Layout
9341
9342 \emph on
9343 bibtex
9344 \end_layout
9345
9346 \end_inset
9347
9348 ,
9349 \begin_inset Flex Code
9350 status collapsed
9351
9352 \begin_layout Plain Layout
9353 biblatex
9354 \end_layout
9355
9356 \end_inset
9357
9358 ] Determines whether 
9359 \family sans
9360 Biblatex
9361 \family default
9362  or Bib\SpecialChar TeX
9363  is used to generate a Bibliography.
9364  Primarily used in cite engine files (see 
9365 \begin_inset CommandInset ref
9366 LatexCommand ref
9367 reference "subsec:Cite-Engine-Files"
9368 plural "false"
9369 caps "false"
9370 noprefix "false"
9371
9372 \end_inset
9373
9374 ).
9375 \end_layout
9376
9377 \begin_layout Description
9378 \begin_inset Flex Code
9379 status collapsed
9380
9381 \begin_layout Plain Layout
9382 ClassOptions
9383 \end_layout
9384
9385 \end_inset
9386
9387  Describes various global options supported by the document class.
9388  See 
9389 \begin_inset CommandInset ref
9390 LatexCommand ref
9391 reference "subsec:ClassOptions"
9392
9393 \end_inset
9394
9395  for a description.
9396  Must end with 
9397 \begin_inset Quotes eld
9398 \end_inset
9399
9400
9401 \begin_inset Flex Code
9402 status collapsed
9403
9404 \begin_layout Plain Layout
9405 End
9406 \end_layout
9407
9408 \end_inset
9409
9410
9411 \begin_inset Quotes erd
9412 \end_inset
9413
9414 .
9415 \end_layout
9416
9417 \begin_layout Description
9418 \begin_inset Flex Code
9419 status collapsed
9420
9421 \begin_layout Plain Layout
9422 Columns
9423 \end_layout
9424
9425 \end_inset
9426
9427  [
9428 \begin_inset Flex Code
9429 status collapsed
9430
9431 \begin_layout Plain Layout
9432
9433 \emph on
9434 1
9435 \end_layout
9436
9437 \end_inset
9438
9439 ,
9440 \begin_inset space \thinspace{}
9441 \end_inset
9442
9443
9444 \begin_inset Flex Code
9445 status collapsed
9446
9447 \begin_layout Plain Layout
9448 2
9449 \end_layout
9450
9451 \end_inset
9452
9453 ] Whether the class should 
9454 \emph on
9455 default
9456 \emph default
9457  to having one or two columns.
9458  Can be changed in the 
9459 \begin_inset Flex Noun
9460 status collapsed
9461
9462 \begin_layout Plain Layout
9463 Document\SpecialChar menuseparator
9464 Settings
9465 \end_layout
9466
9467 \end_inset
9468
9469  dialog.
9470 \end_layout
9471
9472 \begin_layout Description
9473 \begin_inset Flex Code
9474 status collapsed
9475
9476 \begin_layout Plain Layout
9477 Counter
9478 \end_layout
9479
9480 \end_inset
9481
9482  [
9483 \begin_inset Flex Code
9484 status collapsed
9485
9486 \begin_layout Plain Layout
9487 string
9488 \end_layout
9489
9490 \end_inset
9491
9492 ] This sequence defines the properties for a counter.
9493  If the counter does not yet exist, it is created; if it does exist, it
9494  is modified.
9495  Must end with 
9496 \begin_inset Quotes eld
9497 \end_inset
9498
9499
9500 \begin_inset Flex Code
9501 status collapsed
9502
9503 \begin_layout Plain Layout
9504 End
9505 \end_layout
9506
9507 \end_inset
9508
9509
9510 \begin_inset Quotes erd
9511 \end_inset
9512
9513 .
9514 \begin_inset Newline newline
9515 \end_inset
9516
9517 See 
9518 \begin_inset CommandInset ref
9519 LatexCommand ref
9520 reference "subsec:Counters"
9521
9522 \end_inset
9523
9524  for details on counters.
9525 \end_layout
9526
9527 \begin_layout Description
9528 \begin_inset Flex Code
9529 status collapsed
9530
9531 \begin_layout Plain Layout
9532 DefaultFont
9533 \end_layout
9534
9535 \end_inset
9536
9537  Sets the default font used to display the document.
9538  See 
9539 \begin_inset CommandInset ref
9540 LatexCommand ref
9541 reference "subsec:Font-description"
9542
9543 \end_inset
9544
9545  for how to declare fonts.
9546  Must end with 
9547 \begin_inset Quotes eld
9548 \end_inset
9549
9550
9551 \begin_inset Flex Code
9552 status collapsed
9553
9554 \begin_layout Plain Layout
9555 EndFont
9556 \end_layout
9557
9558 \end_inset
9559
9560
9561 \begin_inset Quotes erd
9562 \end_inset
9563
9564 .
9565 \end_layout
9566
9567 \begin_layout Description
9568 \begin_inset Flex Code
9569 status collapsed
9570
9571 \begin_layout Plain Layout
9572 DefaultModule
9573 \end_layout
9574
9575 \end_inset
9576
9577  [
9578 \begin_inset Flex Code
9579 status collapsed
9580
9581 \begin_layout Plain Layout
9582 <module>
9583 \end_layout
9584
9585 \end_inset
9586
9587 ] Specifies a module to be included by default with this document class.
9588  The module is specified as filename without the 
9589 \begin_inset Flex Code
9590 status collapsed
9591
9592 \begin_layout Plain Layout
9593 .module
9594 \end_layout
9595
9596 \end_inset
9597
9598  extension.
9599  The user can still remove the module, but it will be active at the outset.
9600  (This applies only when new files are created, or when this class is chosen
9601  for an existing document.)
9602 \end_layout
9603
9604 \begin_layout Description
9605 \begin_inset Flex Code
9606 status collapsed
9607
9608 \begin_layout Plain Layout
9609 DefaultStyle
9610 \end_layout
9611
9612 \end_inset
9613
9614  [
9615 \begin_inset Flex Code
9616 status collapsed
9617
9618 \begin_layout Plain Layout
9619 <style>
9620 \end_layout
9621
9622 \end_inset
9623
9624 ] This is the style that will be assigned to new paragraphs, usually 
9625 \begin_inset Flex Noun
9626 status collapsed
9627
9628 \begin_layout Plain Layout
9629 Standard
9630 \end_layout
9631
9632 \end_inset
9633
9634 .
9635  This will default to the first defined style if not given, but you are
9636  encouraged to use this directive.
9637 \end_layout
9638
9639 \begin_layout Description
9640 \begin_inset Flex Code
9641 status collapsed
9642
9643 \begin_layout Plain Layout
9644 ExcludesModule
9645 \end_layout
9646
9647 \end_inset
9648
9649  [
9650 \begin_inset Flex Code
9651 status collapsed
9652
9653 \begin_layout Plain Layout
9654 <module>
9655 \end_layout
9656
9657 \end_inset
9658
9659 ] This tag indicates that the module (which is specified by filename without
9660  the 
9661 \begin_inset Flex Code
9662 status collapsed
9663
9664 \begin_layout Plain Layout
9665 .module
9666 \end_layout
9667
9668 \end_inset
9669
9670  extension) cannot be used with this document class.
9671  This might be used in a journal-specific layout file to prevent, say, the
9672  use of the 
9673 \begin_inset Flex Code
9674 status collapsed
9675
9676 \begin_layout Plain Layout
9677 theorems-sec
9678 \end_layout
9679
9680 \end_inset
9681
9682  module that numbers theorems by section.
9683  This tag may 
9684 \emph on
9685 not
9686 \emph default
9687  be used in a module.
9688  Modules have their own way of excluding other modules (see 
9689 \begin_inset CommandInset ref
9690 LatexCommand ref
9691 reference "subsec:Layout-modules"
9692
9693 \end_inset
9694
9695 ).
9696 \end_layout
9697
9698 \begin_layout Description
9699 \begin_inset Flex Code
9700 status collapsed
9701
9702 \begin_layout Plain Layout
9703 Float
9704 \end_layout
9705
9706 \end_inset
9707
9708  Defines a new float.
9709  See 
9710 \begin_inset CommandInset ref
9711 LatexCommand ref
9712 reference "subsec:Floats"
9713
9714 \end_inset
9715
9716  for details.
9717  Must end with 
9718 \begin_inset Quotes eld
9719 \end_inset
9720
9721
9722 \begin_inset Flex Code
9723 status collapsed
9724
9725 \begin_layout Plain Layout
9726 End
9727 \end_layout
9728
9729 \end_inset
9730
9731
9732 \begin_inset Quotes erd
9733 \end_inset
9734
9735 .
9736 \end_layout
9737
9738 \begin_layout Description
9739 \begin_inset Flex Code
9740 status collapsed
9741
9742 \begin_layout Plain Layout
9743 HTMLPreamble
9744 \end_layout
9745
9746 \end_inset
9747
9748  Sets the information that will be output in the 
9749 \begin_inset Flex Code
9750 status collapsed
9751
9752 \begin_layout Plain Layout
9753 <head>
9754 \end_layout
9755
9756 \end_inset
9757
9758  block when this document class is output to XHTML.
9759  Note that this will completely override any prior 
9760 \begin_inset Flex Code
9761 status collapsed
9762
9763 \begin_layout Plain Layout
9764 HTMLPreamble
9765 \end_layout
9766
9767 \end_inset
9768
9769  or 
9770 \begin_inset Flex Code
9771 status collapsed
9772
9773 \begin_layout Plain Layout
9774 AddToHTMLPreamble
9775 \end_layout
9776
9777 \end_inset
9778
9779  declarations.
9780  (Use
9781 \begin_inset Newline newline
9782 \end_inset
9783
9784
9785 \begin_inset Flex Code
9786 status collapsed
9787
9788 \begin_layout Plain Layout
9789 AddToHTMLPreamble
9790 \end_layout
9791
9792 \end_inset
9793
9794  if you just want to add material to the preamble.) Must end with 
9795 \begin_inset Quotes eld
9796 \end_inset
9797
9798
9799 \begin_inset Flex Code
9800 status collapsed
9801
9802 \begin_layout Plain Layout
9803 EndPreamble
9804 \end_layout
9805
9806 \end_inset
9807
9808
9809 \begin_inset Quotes erd
9810 \end_inset
9811
9812 .
9813 \end_layout
9814
9815 \begin_layout Description
9816 \begin_inset Flex Code
9817 status collapsed
9818
9819 \begin_layout Plain Layout
9820 HTMLTOCSection
9821 \end_layout
9822
9823 \end_inset
9824
9825  [
9826 \begin_inset Flex Code
9827 status collapsed
9828
9829 \begin_layout Plain Layout
9830 <style>
9831 \end_layout
9832
9833 \end_inset
9834
9835 ] The style to use for the table of contents, bibliography, and so forth,
9836  when the document is output to HTML.
9837  For articles, this should normally be 
9838 \begin_inset Flex Code
9839 status collapsed
9840
9841 \begin_layout Plain Layout
9842 Section
9843 \end_layout
9844
9845 \end_inset
9846
9847 ; for books 
9848 \begin_inset Flex Code
9849 status collapsed
9850
9851 \begin_layout Plain Layout
9852 Chapter
9853 \end_layout
9854
9855 \end_inset
9856
9857 .
9858  If it is not given, then \SpecialChar LyX
9859  will attempt to figure out which layout to use.
9860 \end_layout
9861
9862 \begin_layout Description
9863 \begin_inset Flex Code
9864 status collapsed
9865
9866 \begin_layout Plain Layout
9867 IfCounter
9868 \end_layout
9869
9870 \end_inset
9871
9872  [
9873 \begin_inset Flex Code
9874 status collapsed
9875
9876 \begin_layout Plain Layout
9877 <counter>
9878 \end_layout
9879
9880 \end_inset
9881
9882 ] Modifies the properties of the given counter.
9883  If the counter does not exist, the statement is ignored.
9884  Must end with 
9885 \begin_inset Quotes eld
9886 \end_inset
9887
9888
9889 \begin_inset Flex Code
9890 status collapsed
9891
9892 \begin_layout Plain Layout
9893 End
9894 \end_layout
9895
9896 \end_inset
9897
9898
9899 \begin_inset Quotes erd
9900 \end_inset
9901
9902 .
9903 \begin_inset Newline newline
9904 \end_inset
9905
9906 See 
9907 \begin_inset CommandInset ref
9908 LatexCommand ref
9909 reference "subsec:Counters"
9910
9911 \end_inset
9912
9913  for details on counters.
9914 \end_layout
9915
9916 \begin_layout Description
9917 \begin_inset Flex Code
9918 status collapsed
9919
9920 \begin_layout Plain Layout
9921 Input
9922 \end_layout
9923
9924 \end_inset
9925
9926  [
9927 \begin_inset Flex Code
9928 status collapsed
9929
9930 \begin_layout Plain Layout
9931 <filename>
9932 \end_layout
9933
9934 \end_inset
9935
9936 ] This allows you to include another layout definition file within yours
9937  to avoid duplicating commands.
9938  Common examples are the standard layout files, for example, 
9939 \begin_inset Flex Code
9940 status collapsed
9941
9942 \begin_layout Plain Layout
9943 stdclass.inc
9944 \end_layout
9945
9946 \end_inset
9947
9948 , which contains most of the basic layouts.
9949 \end_layout
9950
9951 \begin_layout Description
9952 \begin_inset Flex Code
9953 status collapsed
9954
9955 \begin_layout Plain Layout
9956 InsetLayout
9957 \end_layout
9958
9959 \end_inset
9960
9961  [
9962 \begin_inset Flex Code
9963 status collapsed
9964
9965 \begin_layout Plain Layout
9966 <type>
9967 \end_layout
9968
9969 \end_inset
9970
9971 ] This section (re-)defines the layout of an inset.
9972  It can be applied to an existing inset or to a new, user-defined inset,
9973  e.g., a new character style.
9974  Must end with 
9975 \begin_inset Quotes eld
9976 \end_inset
9977
9978
9979 \begin_inset Flex Code
9980 status collapsed
9981
9982 \begin_layout Plain Layout
9983 End
9984 \end_layout
9985
9986 \end_inset
9987
9988
9989 \begin_inset Quotes erd
9990 \end_inset
9991
9992 .
9993 \begin_inset Newline newline
9994 \end_inset
9995
9996 See 
9997 \begin_inset CommandInset ref
9998 LatexCommand ref
9999 reference "subsec:Flex-insets-and"
10000
10001 \end_inset
10002
10003  for more information.
10004  
10005 \end_layout
10006
10007 \begin_layout Description
10008 \begin_inset Flex Code
10009 status collapsed
10010
10011 \begin_layout Plain Layout
10012 LeftMargin
10013 \end_layout
10014
10015 \end_inset
10016
10017  [
10018 \begin_inset Flex Code
10019 status collapsed
10020
10021 \begin_layout Plain Layout
10022 string
10023 \end_layout
10024
10025 \end_inset
10026
10027 ] A string that indicates the width of the left margin on the screen, for
10028  example, 
10029 \begin_inset Quotes eld
10030 \end_inset
10031
10032
10033 \begin_inset Flex Code
10034 status collapsed
10035
10036 \begin_layout Plain Layout
10037 MMMMM
10038 \end_layout
10039
10040 \end_inset
10041
10042
10043 \begin_inset Quotes erd
10044 \end_inset
10045
10046 .
10047  (Note that this is not a `length', like 
10048 \begin_inset Quotes eld
10049 \end_inset
10050
10051 2ex
10052 \begin_inset Quotes erd
10053 \end_inset
10054
10055 .)
10056 \end_layout
10057
10058 \begin_layout Description
10059 \begin_inset Flex Code
10060 status collapsed
10061
10062 \begin_layout Plain Layout
10063 MaxCiteNames
10064 \end_layout
10065
10066 \end_inset
10067
10068  [
10069 \begin_inset Flex Code
10070 status collapsed
10071
10072 \begin_layout Plain Layout
10073 integer
10074 \end_layout
10075
10076 \end_inset
10077
10078 ] An integer that determines the maximal number of names displayed in an
10079  author-year citation before the citation switches to 
10080 \begin_inset Quotes eld
10081 \end_inset
10082
10083 FirstAuthor et al.
10084 \begin_inset Quotes erd
10085 \end_inset
10086
10087 .
10088  Primarily used in cite engine files (see 
10089 \begin_inset CommandInset ref
10090 LatexCommand ref
10091 reference "subsec:Cite-Engine-Files"
10092 plural "false"
10093 caps "false"
10094 noprefix "false"
10095
10096 \end_inset
10097
10098 ).
10099 \end_layout
10100
10101 \begin_layout Description
10102 \begin_inset Flex Code
10103 status collapsed
10104
10105 \begin_layout Plain Layout
10106 ModifyStyle
10107 \end_layout
10108
10109 \end_inset
10110
10111  [
10112 \begin_inset Flex Code
10113 status collapsed
10114
10115 \begin_layout Plain Layout
10116 <style>
10117 \end_layout
10118
10119 \end_inset
10120
10121 ] Modifies the properties of the given paragraph style.
10122  If the style does not exist, this section is ignored.
10123  Must end with 
10124 \begin_inset Quotes eld
10125 \end_inset
10126
10127
10128 \begin_inset Flex Code
10129 status collapsed
10130
10131 \begin_layout Plain Layout
10132 End
10133 \end_layout
10134
10135 \end_inset
10136
10137
10138 \begin_inset Quotes erd
10139 \end_inset
10140
10141 .
10142 \end_layout
10143
10144 \begin_layout Description
10145 \begin_inset Flex Code
10146 status collapsed
10147
10148 \begin_layout Plain Layout
10149 NoCounter
10150 \end_layout
10151
10152 \end_inset
10153
10154  [
10155 \begin_inset Flex Code
10156 status collapsed
10157
10158 \begin_layout Plain Layout
10159 <counter>
10160 \end_layout
10161
10162 \end_inset
10163
10164 ] Deletes an existing counter, usually one defined in an included file.
10165 \end_layout
10166
10167 \begin_layout Description
10168 \begin_inset Flex Code
10169 status collapsed
10170
10171 \begin_layout Plain Layout
10172 NoFloat
10173 \end_layout
10174
10175 \end_inset
10176
10177  [
10178 \begin_inset Flex Code
10179 status collapsed
10180
10181 \begin_layout Plain Layout
10182 <float>
10183 \end_layout
10184
10185 \end_inset
10186
10187 ] Deletes an existing float.
10188  This is particularly useful when you want to suppress a float that has
10189  been defined in an input file.
10190 \end_layout
10191
10192 \begin_layout Description
10193 \begin_inset Flex Code
10194 status collapsed
10195
10196 \begin_layout Plain Layout
10197 NoStyle
10198 \end_layout
10199
10200 \end_inset
10201
10202  [
10203 \begin_inset Flex Code
10204 status collapsed
10205
10206 \begin_layout Plain Layout
10207 <style>
10208 \end_layout
10209
10210 \end_inset
10211
10212 ] Deletes an existing style.
10213 \end_layout
10214
10215 \begin_layout Description
10216 \begin_inset Flex Code
10217 status collapsed
10218
10219 \begin_layout Plain Layout
10220 OutlinerName
10221 \end_layout
10222
10223 \end_inset
10224
10225  [
10226 \begin_inset Flex Code
10227 status collapsed
10228
10229 \begin_layout Plain Layout
10230 <type>
10231 \end_layout
10232
10233 \end_inset
10234
10235 ] [
10236 \begin_inset Flex Code
10237 status collapsed
10238
10239 \begin_layout Plain Layout
10240 <string>
10241 \end_layout
10242
10243 \end_inset
10244
10245 ] Define a new table of contents with type 
10246 \begin_inset Flex Code
10247 status collapsed
10248
10249 \begin_layout Plain Layout
10250 <type>
10251 \end_layout
10252
10253 \end_inset
10254
10255  and name 
10256 \begin_inset Flex Code
10257 status collapsed
10258
10259 \begin_layout Plain Layout
10260 <string>
10261 \end_layout
10262
10263 \end_inset
10264
10265 .
10266  See also the AddToToc commands.
10267 \end_layout
10268
10269 \begin_layout Description
10270 \begin_inset Flex Code
10271 status collapsed
10272
10273 \begin_layout Plain Layout
10274 OutputFormat
10275 \end_layout
10276
10277 \end_inset
10278
10279  [
10280 \begin_inset Flex Code
10281 status collapsed
10282
10283 \begin_layout Plain Layout
10284 <format>
10285 \end_layout
10286
10287 \end_inset
10288
10289 ] The file format (as defined in the \SpecialChar LyX
10290  preferences) produced by this document
10291  class.
10292  It is mainly useful when 
10293 \begin_inset Flex Code
10294 status collapsed
10295
10296 \begin_layout Plain Layout
10297 OutputType
10298 \end_layout
10299
10300 \end_inset
10301
10302  is 
10303 \begin_inset Flex Code
10304 status collapsed
10305
10306 \begin_layout Plain Layout
10307 literate
10308 \end_layout
10309
10310 \end_inset
10311
10312  and one wants to define a new type of literate document.
10313  The format is reset to 
10314 \begin_inset Quotes eld
10315 \end_inset
10316
10317
10318 \begin_inset Flex Code
10319 status collapsed
10320
10321 \begin_layout Plain Layout
10322 docbook
10323 \end_layout
10324
10325 \end_inset
10326
10327
10328 \begin_inset Quotes erd
10329 \end_inset
10330
10331  or 
10332 \begin_inset Quotes eld
10333 \end_inset
10334
10335
10336 \begin_inset Flex Code
10337 status collapsed
10338
10339 \begin_layout Plain Layout
10340 latex
10341 \end_layout
10342
10343 \end_inset
10344
10345
10346 \begin_inset Quotes erd
10347 \end_inset
10348
10349  when the corresponding 
10350 \begin_inset Flex Code
10351 status collapsed
10352
10353 \begin_layout Plain Layout
10354 OutputType
10355 \end_layout
10356
10357 \end_inset
10358
10359  parameter is encountered.
10360 \end_layout
10361
10362 \begin_layout Description
10363 \begin_inset Flex Code
10364 status collapsed
10365
10366 \begin_layout Plain Layout
10367 OutputType
10368 \end_layout
10369
10370 \end_inset
10371
10372  [
10373 \begin_inset Flex Code
10374 status collapsed
10375
10376 \begin_layout Plain Layout
10377
10378 \emph on
10379 lat
10380 \emph default
10381 ex
10382 \end_layout
10383
10384 \end_inset
10385
10386
10387 \begin_inset Flex Code
10388 status collapsed
10389
10390 \begin_layout Plain Layout
10391 docbook
10392 \end_layout
10393
10394 \end_inset
10395
10396
10397 \begin_inset Flex Code
10398 status collapsed
10399
10400 \begin_layout Plain Layout
10401 literate
10402 \end_layout
10403
10404 \end_inset
10405
10406 ] Specifies what sort of output documents using this class will produce.
10407 \end_layout
10408
10409 \begin_layout Description
10410 \begin_inset Flex Code
10411 status collapsed
10412
10413 \begin_layout Plain Layout
10414 PackageOptions
10415 \end_layout
10416
10417 \end_inset
10418
10419  [
10420 \begin_inset Flex Code
10421 status collapsed
10422
10423 \begin_layout Plain Layout
10424 string
10425 \end_layout
10426
10427 \end_inset
10428
10429  
10430 \begin_inset Flex Code
10431 status collapsed
10432
10433 \begin_layout Plain Layout
10434 string
10435 \end_layout
10436
10437 \end_inset
10438
10439 ] Specifies options, given in the second string, for the package named by
10440  the first string.
10441  For example, 
10442 \begin_inset Quotes eld
10443 \end_inset
10444
10445
10446 \begin_inset Flex Code
10447 status collapsed
10448
10449 \begin_layout Plain Layout
10450 PackageOptions natbib square
10451 \end_layout
10452
10453 \end_inset
10454
10455
10456 \begin_inset Quotes erd
10457 \end_inset
10458
10459  will cause 
10460 \begin_inset Flex Code
10461 status collapsed
10462
10463 \begin_layout Plain Layout
10464 natbib
10465 \end_layout
10466
10467 \end_inset
10468
10469  to be loaded with the 
10470 \begin_inset Flex Code
10471 status collapsed
10472
10473 \begin_layout Plain Layout
10474 square
10475 \end_layout
10476
10477 \end_inset
10478
10479  option.
10480  (For \SpecialChar TeX
10481 perts, this causes \SpecialChar LyX
10482  to output: 
10483 \begin_inset Flex Code
10484 status collapsed
10485
10486 \begin_layout Plain Layout
10487
10488 \backslash
10489 PassOptionsToPackage{natbib}{square}
10490 \end_layout
10491
10492 \end_inset
10493
10494  prior to loading 
10495 \begin_inset Flex Code
10496 status collapsed
10497
10498 \begin_layout Plain Layout
10499 natbib
10500 \end_layout
10501
10502 \end_inset
10503
10504 .)
10505 \change_inserted -712698321 1565102364
10506
10507 \end_layout
10508
10509 \begin_layout Description
10510
10511 \change_inserted -712698321 1565102470
10512 \begin_inset Flex Code
10513 status collapsed
10514
10515 \begin_layout Plain Layout
10516
10517 \change_inserted -712698321 1565102365
10518 PageSize
10519 \end_layout
10520
10521 \end_inset
10522
10523  [
10524 \begin_inset Flex Code
10525 status collapsed
10526
10527 \begin_layout Plain Layout
10528
10529 \change_inserted -712698321 1565105222
10530
10531 \emph on
10532 custom
10533 \emph default
10534 , letter, legal, executive, a0, a1, a2, a3, a4, a5, a6, b0, b1, b2, b3,
10535  b4, b5, b6, c0, c1, c2, c3, c4, c5, c6, b0j, b1j, b2j, b3j, b4j, b5j, b6j
10536 \end_layout
10537
10538 \end_inset
10539
10540 ] The default page size.
10541  This is used by some converters.
10542 \change_unchanged
10543
10544 \end_layout
10545
10546 \begin_layout Description
10547 \begin_inset Flex Code
10548 status collapsed
10549
10550 \begin_layout Plain Layout
10551 PageStyle
10552 \end_layout
10553
10554 \end_inset
10555
10556  [
10557 \begin_inset Flex Code
10558 status collapsed
10559
10560 \begin_layout Plain Layout
10561
10562 \emph on
10563 plain
10564 \end_layout
10565
10566 \end_inset
10567
10568
10569 \begin_inset Flex Code
10570 status collapsed
10571
10572 \begin_layout Plain Layout
10573 empty
10574 \end_layout
10575
10576 \end_inset
10577
10578
10579 \begin_inset Flex Code
10580 status collapsed
10581
10582 \begin_layout Plain Layout
10583 headings
10584 \end_layout
10585
10586 \end_inset
10587
10588 ] The default pagestyle.
10589  Can be changed in the 
10590 \begin_inset Flex Noun
10591 status collapsed
10592
10593 \begin_layout Plain Layout
10594 Document\SpecialChar menuseparator
10595 Settings
10596 \end_layout
10597
10598 \end_inset
10599
10600  dialog.
10601 \end_layout
10602
10603 \begin_layout Description
10604 \begin_inset Flex Code
10605 status collapsed
10606
10607 \begin_layout Plain Layout
10608 Preamble
10609 \end_layout
10610
10611 \end_inset
10612
10613  Sets the preamble for the \SpecialChar LaTeX
10614  document.
10615  Note that this will completely override any prior 
10616 \begin_inset Flex Code
10617 status collapsed
10618
10619 \begin_layout Plain Layout
10620 Preamble
10621 \end_layout
10622
10623 \end_inset
10624
10625  or 
10626 \begin_inset Flex Code
10627 status collapsed
10628
10629 \begin_layout Plain Layout
10630 AddToPreamble
10631 \end_layout
10632
10633 \end_inset
10634
10635  declarations.
10636  (Use 
10637 \begin_inset Flex Code
10638 status collapsed
10639
10640 \begin_layout Plain Layout
10641 AddToPreamble
10642 \end_layout
10643
10644 \end_inset
10645
10646  if you just want to add material to the preamble.) Must end with 
10647 \begin_inset Quotes eld
10648 \end_inset
10649
10650
10651 \begin_inset Flex Code
10652 status collapsed
10653
10654 \begin_layout Plain Layout
10655 EndPreamble
10656 \end_layout
10657
10658 \end_inset
10659
10660
10661 \begin_inset Quotes erd
10662 \end_inset
10663
10664 .
10665 \end_layout
10666
10667 \begin_layout Description
10668 \begin_inset Flex Code
10669 status collapsed
10670
10671 \begin_layout Plain Layout
10672 Provides
10673 \end_layout
10674
10675 \end_inset
10676
10677  [
10678 \begin_inset Flex Code
10679 status collapsed
10680
10681 \begin_layout Plain Layout
10682 string
10683 \end_layout
10684
10685 \end_inset
10686
10687 ] [
10688 \begin_inset Flex Code
10689 status collapsed
10690
10691 \begin_layout Plain Layout
10692
10693 \emph on
10694 0
10695 \end_layout
10696
10697 \end_inset
10698
10699 ,
10700 \begin_inset space \thinspace{}
10701 \end_inset
10702
10703
10704 \begin_inset Flex Code
10705 status collapsed
10706
10707 \begin_layout Plain Layout
10708 1
10709 \end_layout
10710
10711 \end_inset
10712
10713 ] Whether the class already provides the feature 
10714 \begin_inset Flex Code
10715 status collapsed
10716
10717 \begin_layout Plain Layout
10718 string
10719 \end_layout
10720
10721 \end_inset
10722
10723 .
10724  A feature is in general the name of a package (e.
10725 \begin_inset space \thinspace{}
10726 \end_inset
10727
10728 g.
10729 \begin_inset space \space{}
10730 \end_inset
10731
10732
10733 \begin_inset Flex Code
10734 status collapsed
10735
10736 \begin_layout Plain Layout
10737 amsmath
10738 \end_layout
10739
10740 \end_inset
10741
10742  or 
10743 \begin_inset Flex Code
10744 status collapsed
10745
10746 \begin_layout Plain Layout
10747 makeidx
10748 \end_layout
10749
10750 \end_inset
10751
10752 ) or a macro (e.
10753 \begin_inset space \thinspace{}
10754 \end_inset
10755
10756 g.
10757 \begin_inset space \space{}
10758 \end_inset
10759
10760
10761 \begin_inset Flex Code
10762 status collapsed
10763
10764 \begin_layout Plain Layout
10765 url
10766 \end_layout
10767
10768 \end_inset
10769
10770  or 
10771 \begin_inset Flex Code
10772 status collapsed
10773
10774 \begin_layout Plain Layout
10775 boldsymbol
10776 \end_layout
10777
10778 \end_inset
10779
10780 ).
10781  See 
10782 \begin_inset CommandInset ref
10783 LatexCommand ref
10784 reference "chap:List-of-functions"
10785
10786 \end_inset
10787
10788  for the list of features.
10789 \end_layout
10790
10791 \begin_layout Description
10792 \begin_inset Flex Code
10793 status collapsed
10794
10795 \begin_layout Plain Layout
10796 ProvidesModule
10797 \end_layout
10798
10799 \end_inset
10800
10801  [
10802 \begin_inset Flex Code
10803 status collapsed
10804
10805 \begin_layout Plain Layout
10806 string
10807 \end_layout
10808
10809 \end_inset
10810
10811 ] Indicates that this layout provides the functionality of the module mentioned,
10812  which should be specified by the filename without the 
10813 \begin_inset Flex Code
10814 status collapsed
10815
10816 \begin_layout Plain Layout
10817 .module
10818 \end_layout
10819
10820 \end_inset
10821
10822  extension.
10823  This will typically be used if the layout includes the module directly,
10824  rather than using the 
10825 \begin_inset Flex Code
10826 status collapsed
10827
10828 \begin_layout Plain Layout
10829 DefaultModule
10830 \end_layout
10831
10832 \end_inset
10833
10834  tag to indicate that it ought to be used.
10835  It could also be used in a module that provided an alternate implementation
10836  of the same functionality.
10837 \end_layout
10838
10839 \begin_layout Description
10840 \begin_inset Flex Code
10841 status collapsed
10842
10843 \begin_layout Plain Layout
10844 ProvideStyle
10845 \end_layout
10846
10847 \end_inset
10848
10849  [
10850 \begin_inset Flex Code
10851 status collapsed
10852
10853 \begin_layout Plain Layout
10854 <style>
10855 \end_layout
10856
10857 \end_inset
10858
10859 ] Creates a new paragraph style if it does not already exist.
10860  If the style does exist, this section is ignored.
10861  Must end with 
10862 \begin_inset Quotes eld
10863 \end_inset
10864
10865
10866 \begin_inset Flex Code
10867 status collapsed
10868
10869 \begin_layout Plain Layout
10870 End
10871 \end_layout
10872
10873 \end_inset
10874
10875
10876 \begin_inset Quotes erd
10877 \end_inset
10878
10879 .
10880 \end_layout
10881
10882 \begin_layout Description
10883 \begin_inset Flex Code
10884 status collapsed
10885
10886 \begin_layout Plain Layout
10887 Requires
10888 \end_layout
10889
10890 \end_inset
10891
10892  [
10893 \begin_inset Flex Code
10894 status collapsed
10895
10896 \begin_layout Plain Layout
10897 string
10898 \end_layout
10899
10900 \end_inset
10901
10902 ] Whether the class requires the feature 
10903 \begin_inset Flex Code
10904 status collapsed
10905
10906 \begin_layout Plain Layout
10907 string
10908 \end_layout
10909
10910 \end_inset
10911
10912 .
10913  Multiple features must be separated by commas.
10914  Note that you can only request supported features.
10915  (See 
10916 \begin_inset CommandInset ref
10917 LatexCommand ref
10918 reference "chap:List-of-functions"
10919
10920 \end_inset
10921
10922  for the list of features.).
10923  If you require a package with specific options, you can additionally use
10924  
10925 \begin_inset Flex Code
10926 status collapsed
10927
10928 \begin_layout Plain Layout
10929 PackageOptions
10930 \end_layout
10931
10932 \end_inset
10933
10934 .
10935 \end_layout
10936
10937 \begin_layout Description
10938 \begin_inset Flex Code
10939 status collapsed
10940
10941 \begin_layout Plain Layout
10942 RightMargin
10943 \end_layout
10944
10945 \end_inset
10946
10947  [
10948 \begin_inset Flex Code
10949 status collapsed
10950
10951 \begin_layout Plain Layout
10952 string
10953 \end_layout
10954
10955 \end_inset
10956
10957 ] A string that indicates the width of the right margin on the screen, for
10958  example, 
10959 \begin_inset Quotes eld
10960 \end_inset
10961
10962
10963 \begin_inset Flex Code
10964 status collapsed
10965
10966 \begin_layout Plain Layout
10967 MMMMM
10968 \end_layout
10969
10970 \end_inset
10971
10972
10973 \begin_inset Quotes erd
10974 \end_inset
10975
10976 .
10977 \end_layout
10978
10979 \begin_layout Description
10980 \begin_inset Flex Code
10981 status collapsed
10982
10983 \begin_layout Plain Layout
10984 SecNumDepth
10985 \end_layout
10986
10987 \end_inset
10988
10989  [
10990 \begin_inset Flex Code
10991 status collapsed
10992
10993 \begin_layout Plain Layout
10994 int=3
10995 \end_layout
10996
10997 \end_inset
10998
10999 ] Sets which divisions get numbered.
11000  Corresponds to the
11001 \begin_inset Newline newline
11002 \end_inset
11003
11004
11005 \begin_inset Flex Code
11006 status collapsed
11007
11008 \begin_layout Plain Layout
11009 secnumdepth
11010 \end_layout
11011
11012 \end_inset
11013
11014  counter in \SpecialChar LaTeX
11015 .
11016 \end_layout
11017
11018 \begin_layout Description
11019 \begin_inset Flex Code
11020 status collapsed
11021
11022 \begin_layout Plain Layout
11023 Sides
11024 \end_layout
11025
11026 \end_inset
11027
11028  [
11029 \begin_inset Flex Code
11030 status collapsed
11031
11032 \begin_layout Plain Layout
11033
11034 \emph on
11035 1
11036 \end_layout
11037
11038 \end_inset
11039
11040 ,
11041 \begin_inset space \thinspace{}
11042 \end_inset
11043
11044
11045 \begin_inset Flex Code
11046 status collapsed
11047
11048 \begin_layout Plain Layout
11049 2
11050 \end_layout
11051
11052 \end_inset
11053
11054 ] Whether the class-default should be printing on one or both sides of the
11055  paper.
11056  Can be changed in the 
11057 \begin_inset Flex Noun
11058 status collapsed
11059
11060 \begin_layout Plain Layout
11061 Document\SpecialChar menuseparator
11062 Settings
11063 \end_layout
11064
11065 \end_inset
11066
11067  dialog.
11068 \end_layout
11069
11070 \begin_layout Description
11071 \begin_inset Flex Code
11072 status collapsed
11073
11074 \begin_layout Plain Layout
11075 Style
11076 \end_layout
11077
11078 \end_inset
11079
11080  [
11081 \begin_inset Flex Code
11082 status collapsed
11083
11084 \begin_layout Plain Layout
11085 <name>
11086 \end_layout
11087
11088 \end_inset
11089
11090 ] This sequence defines a paragraph style.
11091  If the style does not yet exist, it is created; if it does exist, its parameter
11092 s are modified.
11093  Must end with 
11094 \begin_inset Quotes eld
11095 \end_inset
11096
11097
11098 \begin_inset Flex Code
11099 status collapsed
11100
11101 \begin_layout Plain Layout
11102 End
11103 \end_layout
11104
11105 \end_inset
11106
11107
11108 \begin_inset Quotes erd
11109 \end_inset
11110
11111 .
11112 \begin_inset Newline newline
11113 \end_inset
11114
11115 See 
11116 \begin_inset CommandInset ref
11117 LatexCommand ref
11118 reference "subsec:Paragraph-Styles"
11119
11120 \end_inset
11121
11122  for details on paragraph styles.
11123 \change_inserted -712698321 1553617804
11124
11125 \end_layout
11126
11127 \begin_layout Description
11128
11129 \change_inserted -712698321 1553617862
11130 \begin_inset Flex Code
11131 status collapsed
11132
11133 \begin_layout Plain Layout
11134
11135 \change_inserted -712698321 1553617809
11136 TableStyle
11137 \end_layout
11138
11139 \end_inset
11140
11141  [
11142 \begin_inset Flex Code
11143 status collapsed
11144
11145 \begin_layout Plain Layout
11146
11147 \change_inserted -712698321 1553617805
11148 <name>
11149 \end_layout
11150
11151 \end_inset
11152
11153 ] defines the default table style that is used when inserting a table.
11154  The following styles are available:
11155 \end_layout
11156
11157 \begin_deeper
11158 \begin_layout Itemize
11159
11160 \change_inserted -712698321 1554308039
11161 \begin_inset Flex Code
11162 status collapsed
11163
11164 \begin_layout Plain Layout
11165
11166 \change_inserted -712698321 1554307928
11167 Formal_with_Footline
11168 \change_unchanged
11169
11170 \end_layout
11171
11172 \end_inset
11173
11174 : formal (
11175 \begin_inset Quotes eld
11176 \end_inset
11177
11178 booktabs
11179 \begin_inset Quotes erd
11180 \end_inset
11181
11182 ) style with horizontal lines only, using a bold top and bottom line, the
11183  first and last row are additionally separated from the table body with
11184  a thin middle line.
11185 \end_layout
11186
11187 \begin_layout Itemize
11188
11189 \change_inserted -712698321 1554308087
11190 \begin_inset Flex Code
11191 status collapsed
11192
11193 \begin_layout Plain Layout
11194
11195 \change_inserted -712698321 1554308042
11196 Formal_without_Footline
11197 \end_layout
11198
11199 \end_inset
11200
11201 : same as the above, but the last row is not separated with a middle line
11202  from the body.
11203 \end_layout
11204
11205 \begin_layout Itemize
11206
11207 \change_inserted -712698321 1553618031
11208 \begin_inset Flex Code
11209 status collapsed
11210
11211 \begin_layout Plain Layout
11212
11213 \change_inserted -712698321 1553618006
11214 Simple_Grid
11215 \end_layout
11216
11217 \end_inset
11218
11219 : Simple table lines.
11220 \end_layout
11221
11222 \begin_layout Itemize
11223
11224 \change_inserted -712698321 1553618309
11225 \begin_inset Flex Code
11226 status collapsed
11227
11228 \begin_layout Plain Layout
11229
11230 \change_inserted -712698321 1553618031
11231 Grid_with_Head
11232 \end_layout
11233
11234 \end_inset
11235
11236 : Like 
11237 \begin_inset Flex Code
11238 status collapsed
11239
11240 \begin_layout Plain Layout
11241
11242 \change_inserted -712698321 1553618043
11243 Simple_Grid
11244 \end_layout
11245
11246 \end_inset
11247
11248 , but with the header column offset with a second horizontal line.
11249  This is also the default style of \SpecialChar LyX
11250 .
11251 \end_layout
11252
11253 \begin_layout Itemize
11254
11255 \change_inserted -712698321 1553618280
11256 \begin_inset Flex Code
11257 status collapsed
11258
11259 \begin_layout Plain Layout
11260
11261 \change_inserted -712698321 1553618261
11262 No_Borders
11263 \end_layout
11264
11265 \end_inset
11266
11267 : Table without lines.
11268 \change_unchanged
11269
11270 \end_layout
11271
11272 \end_deeper
11273 \begin_layout Description
11274 \begin_inset Flex Code
11275 status collapsed
11276
11277 \begin_layout Plain Layout
11278 TitleLatexName
11279 \end_layout
11280
11281 \end_inset
11282
11283  [
11284 \begin_inset Flex Code
11285 status collapsed
11286
11287 \begin_layout Plain Layout
11288 string="maketitle"
11289 \end_layout
11290
11291 \end_inset
11292
11293 ] The name of the command or environment to be used with 
11294 \begin_inset Flex Code
11295 status collapsed
11296
11297 \begin_layout Plain Layout
11298 TitleLatexType
11299 \end_layout
11300
11301 \end_inset
11302
11303 .
11304 \end_layout
11305
11306 \begin_layout Description
11307 \begin_inset Flex Code
11308 status collapsed
11309
11310 \begin_layout Plain Layout
11311 TitleLatexType
11312 \end_layout
11313
11314 \end_inset
11315
11316  [
11317 \begin_inset Flex Code
11318 status collapsed
11319
11320 \begin_layout Plain Layout
11321
11322 \emph on
11323 CommandAfter
11324 \end_layout
11325
11326 \end_inset
11327
11328
11329 \begin_inset Flex Code
11330 status collapsed
11331
11332 \begin_layout Plain Layout
11333 Environment
11334 \end_layout
11335
11336 \end_inset
11337
11338 ] Indicates what kind of markup is used to define the title of a document.
11339  
11340 \begin_inset Flex Code
11341 status collapsed
11342
11343 \begin_layout Plain Layout
11344 CommandAfter
11345 \end_layout
11346
11347 \end_inset
11348
11349  means that the macro with name 
11350 \begin_inset Flex Code
11351 status collapsed
11352
11353 \begin_layout Plain Layout
11354 TitleLatexName
11355 \end_layout
11356
11357 \end_inset
11358
11359  will be inserted after the last layout which has 
11360 \begin_inset Quotes eld
11361 \end_inset
11362
11363
11364 \begin_inset Flex Code
11365 status collapsed
11366
11367 \begin_layout Plain Layout
11368 InTitle
11369 \begin_inset space ~
11370 \end_inset
11371
11372 1
11373 \end_layout
11374
11375 \end_inset
11376
11377
11378 \begin_inset Quotes erd
11379 \end_inset
11380
11381 .
11382  
11383 \begin_inset Flex Code
11384 status collapsed
11385
11386 \begin_layout Plain Layout
11387 Environment
11388 \end_layout
11389
11390 \end_inset
11391
11392  corresponds to the case where all layouts which have 
11393 \begin_inset Quotes eld
11394 \end_inset
11395
11396
11397 \begin_inset Flex Code
11398 status collapsed
11399
11400 \begin_layout Plain Layout
11401 InTitle
11402 \begin_inset space ~
11403 \end_inset
11404
11405 1
11406 \end_layout
11407
11408 \end_inset
11409
11410
11411 \begin_inset Quotes erd
11412 \end_inset
11413
11414  should be enclosed into the 
11415 \begin_inset Flex Code
11416 status collapsed
11417
11418 \begin_layout Plain Layout
11419 TitleLatexName
11420 \end_layout
11421
11422 \end_inset
11423
11424  environment.
11425 \end_layout
11426
11427 \begin_layout Description
11428 \begin_inset Flex Code
11429 status collapsed
11430
11431 \begin_layout Plain Layout
11432 TocDepth
11433 \end_layout
11434
11435 \end_inset
11436
11437  [
11438 \begin_inset Flex Code
11439 status collapsed
11440
11441 \begin_layout Plain Layout
11442 int=3
11443 \end_layout
11444
11445 \end_inset
11446
11447 ] Sets which divisions are included in the table of contents.
11448  Corresponds to the 
11449 \begin_inset Flex Code
11450 status collapsed
11451
11452 \begin_layout Plain Layout
11453 tocdepth
11454 \end_layout
11455
11456 \end_inset
11457
11458  counter in \SpecialChar LaTeX
11459 .
11460 \end_layout
11461
11462 \begin_layout Subsection
11463 \begin_inset Flex Code
11464 status collapsed
11465
11466 \begin_layout Plain Layout
11467 ClassOptions
11468 \end_layout
11469
11470 \end_inset
11471
11472  section
11473 \begin_inset CommandInset label
11474 LatexCommand label
11475 name "subsec:ClassOptions"
11476
11477 \end_inset
11478
11479
11480 \end_layout
11481
11482 \begin_layout Standard
11483 The 
11484 \begin_inset Flex Code
11485 status collapsed
11486
11487 \begin_layout Plain Layout
11488 ClassOptions
11489 \end_layout
11490
11491 \end_inset
11492
11493  section can contain the following entries:
11494 \end_layout
11495
11496 \begin_layout Description
11497 \begin_inset Flex Code
11498 status collapsed
11499
11500 \begin_layout Plain Layout
11501 FontSize
11502 \end_layout
11503
11504 \end_inset
11505
11506  [
11507 \begin_inset Flex Code
11508 status collapsed
11509
11510 \begin_layout Plain Layout
11511 string="10|11|12"
11512 \end_layout
11513
11514 \end_inset
11515
11516 ] The list of available font sizes for the document's main font, separated
11517  by 
11518 \begin_inset Quotes eld
11519 \end_inset
11520
11521
11522 \begin_inset Flex Code
11523 status collapsed
11524
11525 \begin_layout Plain Layout
11526 |
11527 \end_layout
11528
11529 \end_inset
11530
11531
11532 \begin_inset Quotes erd
11533 \end_inset
11534
11535 .
11536
11537 \change_inserted -712698321 1565110196
11538  Any number is possible.
11539 \end_layout
11540
11541 \begin_layout Description
11542
11543 \change_inserted -712698321 1565110259
11544 \begin_inset Flex Code
11545 status collapsed
11546
11547 \begin_layout Plain Layout
11548
11549 \change_inserted -712698321 1565110199
11550 FontSizeFormat
11551 \end_layout
11552
11553 \end_inset
11554
11555  [
11556 \begin_inset Flex Code
11557 status collapsed
11558
11559 \begin_layout Plain Layout
11560
11561 \change_inserted -712698321 1565110196
11562 string
11563 \end_layout
11564
11565 \end_inset
11566
11567 ] The format for the font size option.
11568  Default: 
11569 \begin_inset Flex Code
11570 status collapsed
11571
11572 \begin_layout Plain Layout
11573
11574 \change_inserted -712698321 1565110238
11575 $$spt
11576 \change_unchanged
11577
11578 \end_layout
11579
11580 \end_inset
11581
11582 .
11583  
11584 \begin_inset Flex Code
11585 status collapsed
11586
11587 \begin_layout Plain Layout
11588
11589 \change_inserted -712698321 1565110248
11590 $$s
11591 \end_layout
11592
11593 \end_inset
11594
11595  is a placeholder for the font size.
11596 \change_unchanged
11597
11598 \end_layout
11599
11600 \begin_layout Description
11601 \begin_inset Flex Code
11602 status collapsed
11603
11604 \begin_layout Plain Layout
11605 Header
11606 \end_layout
11607
11608 \end_inset
11609
11610  Used to set the DTD line with XML-based output classes.
11611  E.
11612 \begin_inset space \thinspace{}
11613 \end_inset
11614
11615 g.: PUBLIC 
11616 \begin_inset Quotes eld
11617 \end_inset
11618
11619 -//OASIS//DTD DocBook V4.2//EN
11620 \begin_inset Quotes erd
11621 \end_inset
11622
11623 .
11624 \change_inserted -712698321 1565101761
11625
11626 \end_layout
11627
11628 \begin_layout Description
11629
11630 \change_inserted -712698321 1565180598
11631 \begin_inset Flex Code
11632 status collapsed
11633
11634 \begin_layout Plain Layout
11635
11636 \change_inserted -712698321 1565101918
11637 PageSize
11638 \end_layout
11639
11640 \end_inset
11641
11642  [
11643 \begin_inset Flex Code
11644 status collapsed
11645
11646 \begin_layout Plain Layout
11647
11648 \change_inserted -712698321 1565105399
11649 string="letter|\SpecialChar allowbreak
11650 legal|\SpecialChar allowbreak
11651 executive|\SpecialChar allowbreak
11652 a0|\SpecialChar allowbreak
11653 a1|\SpecialChar allowbreak
11654 a2|\SpecialChar allowbreak
11655 a3|\SpecialChar allowbreak
11656 a4|\SpecialChar allowbreak
11657 a5|\SpecialChar allowbreak
11658 a6|\SpecialChar allowbreak
11659 b0|\SpecialChar allowbreak
11660 b1|\SpecialChar allowbreak
11661 b2|\SpecialChar allowbreak
11662 b3|\SpecialChar allowbreak
11663 b4|\SpecialChar allowbreak
11664 b5|\SpecialChar allowbreak
11665 b6|\SpecialChar allowbreak
11666 c0|\SpecialChar allowbreak
11667 c1|\SpecialChar allowbreak
11668 c
11669 2|\SpecialChar allowbreak
11670 c3|\SpecialChar allowbreak
11671 c4|\SpecialChar allowbreak
11672 c5|\SpecialChar allowbreak
11673 c6|\SpecialChar allowbreak
11674 b0j|\SpecialChar allowbreak
11675 b1j|\SpecialChar allowbreak
11676 b2j|\SpecialChar allowbreak
11677 b3j|\SpecialChar allowbreak
11678 b4j|\SpecialChar allowbreak
11679 b5j|\SpecialChar allowbreak
11680 b6j"
11681 \end_layout
11682
11683 \end_inset
11684
11685 ] The list of available page sizes, separated by 
11686 \begin_inset Quotes eld
11687 \end_inset
11688
11689
11690 \begin_inset Flex Code
11691 status collapsed
11692
11693 \begin_layout Plain Layout
11694
11695 \change_inserted -712698321 1565101779
11696 |
11697 \end_layout
11698
11699 \end_inset
11700
11701
11702 \begin_inset Quotes erd
11703 \end_inset
11704
11705 .
11706  Currently, only the listed sizes are supported.
11707  Other sizes might be entered as custom class option.
11708 \end_layout
11709
11710 \begin_layout Description
11711
11712 \change_inserted -712698321 1565180623
11713 \begin_inset Flex Code
11714 status collapsed
11715
11716 \begin_layout Plain Layout
11717
11718 \change_inserted -712698321 1565180605
11719 PageSizeFormat
11720 \end_layout
11721
11722 \end_inset
11723
11724  [
11725 \begin_inset Flex Code
11726 status collapsed
11727
11728 \begin_layout Plain Layout
11729
11730 \change_inserted -712698321 1565180601
11731 string
11732 \end_layout
11733
11734 \end_inset
11735
11736 ] The format for the page size option.
11737  Default: 
11738 \begin_inset Flex Code
11739 status collapsed
11740
11741 \begin_layout Plain Layout
11742
11743 \change_inserted -712698321 1565180618
11744 $$spaper
11745 \end_layout
11746
11747 \end_inset
11748
11749 .
11750  
11751 \begin_inset Flex Code
11752 status collapsed
11753
11754 \begin_layout Plain Layout
11755
11756 \change_inserted -712698321 1565180601
11757 $$s
11758 \end_layout
11759
11760 \end_inset
11761
11762  is a placeholder for the paper size.
11763 \change_unchanged
11764
11765 \end_layout
11766
11767 \begin_layout Description
11768 \begin_inset Flex Code
11769 status collapsed
11770
11771 \begin_layout Plain Layout
11772 PageStyle
11773 \end_layout
11774
11775 \end_inset
11776
11777  [
11778 \begin_inset Flex Code
11779 status collapsed
11780
11781 \begin_layout Plain Layout
11782 string="empty|plain|headings|fancy"
11783 \end_layout
11784
11785 \end_inset
11786
11787 ] The list of available page sty\SpecialChar softhyphen
11788 les, separated by 
11789 \begin_inset Quotes eld
11790 \end_inset
11791
11792
11793 \begin_inset Flex Code
11794 status collapsed
11795
11796 \begin_layout Plain Layout
11797 |
11798 \end_layout
11799
11800 \end_inset
11801
11802
11803 \begin_inset Quotes erd
11804 \end_inset
11805
11806 .
11807 \end_layout
11808
11809 \begin_layout Description
11810 \begin_inset Flex Code
11811 status collapsed
11812
11813 \begin_layout Plain Layout
11814 Other
11815 \end_layout
11816
11817 \end_inset
11818
11819  [
11820 \begin_inset Flex Code
11821 status collapsed
11822
11823 \begin_layout Plain Layout
11824 string=""
11825 \end_layout
11826
11827 \end_inset
11828
11829 ] Some document class options, separated by a comma, that will be added
11830  to the optional part of the 
11831 \begin_inset Flex Code
11832 status collapsed
11833
11834 \begin_layout Plain Layout
11835
11836 \backslash
11837 documentclass
11838 \end_layout
11839
11840 \end_inset
11841
11842  command.
11843 \end_layout
11844
11845 \begin_layout Standard
11846 The 
11847 \begin_inset Flex Code
11848 status collapsed
11849
11850 \begin_layout Plain Layout
11851 ClassOptions
11852 \end_layout
11853
11854 \end_inset
11855
11856  section must end with 
11857 \begin_inset Quotes eld
11858 \end_inset
11859
11860
11861 \begin_inset Flex Code
11862 status collapsed
11863
11864 \begin_layout Plain Layout
11865 End
11866 \end_layout
11867
11868 \end_inset
11869
11870
11871 \begin_inset Quotes erd
11872 \end_inset
11873
11874 .
11875 \end_layout
11876
11877 \begin_layout Subsection
11878 Paragraph styles
11879 \begin_inset CommandInset label
11880 LatexCommand label
11881 name "subsec:Paragraph-Styles"
11882
11883 \end_inset
11884
11885
11886 \end_layout
11887
11888 \begin_layout Standard
11889 A paragraph style description looks like this:
11890 \begin_inset Foot
11891 status collapsed
11892
11893 \begin_layout Plain Layout
11894 Note that this will either define a new style or modify an existing one.
11895 \end_layout
11896
11897 \end_inset
11898
11899
11900 \end_layout
11901
11902 \begin_layout LyX-Code
11903 Style 
11904 \family roman
11905 \emph on
11906 name
11907 \end_layout
11908
11909 \begin_layout LyX-Code
11910  ...
11911 \end_layout
11912
11913 \begin_layout LyX-Code
11914 End
11915 \end_layout
11916
11917 \begin_layout Standard
11918 where the following commands are allowed:
11919 \end_layout
11920
11921 \begin_layout Description
11922 \begin_inset Flex Code
11923 status collapsed
11924
11925 \begin_layout Plain Layout
11926 AddToToc
11927 \end_layout
11928
11929 \end_inset
11930
11931  [
11932 \begin_inset Flex Code
11933 status collapsed
11934
11935 \begin_layout Plain Layout
11936 string
11937 \end_layout
11938
11939 \end_inset
11940
11941 =""] This paragraph will appear in the table of contents of the given type.
11942  An empty string disables.
11943  See also the OutlinerName and the IsTocCaption commands.
11944  Default: disabled.
11945 \end_layout
11946
11947 \begin_layout Description
11948 \begin_inset Flex Code
11949 status collapsed
11950
11951 \begin_layout Plain Layout
11952 Align
11953 \end_layout
11954
11955 \end_inset
11956
11957  [
11958 \begin_inset Flex Code
11959 status collapsed
11960
11961 \begin_layout Plain Layout
11962
11963 \emph on
11964 block
11965 \emph default
11966 , left, right, center
11967 \end_layout
11968
11969 \end_inset
11970
11971 ] Paragraph alignment.
11972 \end_layout
11973
11974 \begin_layout Description
11975 \begin_inset Flex Code
11976 status collapsed
11977
11978 \begin_layout Plain Layout
11979 AlignPossible
11980 \end_layout
11981
11982 \end_inset
11983
11984  [
11985 \begin_inset Flex Code
11986 status collapsed
11987
11988 \begin_layout Plain Layout
11989
11990 \emph on
11991 block
11992 \emph default
11993 , left, right, center
11994 \end_layout
11995
11996 \end_inset
11997
11998 ] A comma separated list of permitted alignments.
11999  (Some \SpecialChar LaTeX
12000  styles prohibit certain alignments, since those wouldn't make sense.
12001  For example a right-aligned or centered enumeration isn't possible.)
12002 \end_layout
12003
12004 \begin_layout Description
12005 \begin_inset Flex Code
12006 status collapsed
12007
12008 \begin_layout Plain Layout
12009 Argument
12010 \end_layout
12011
12012 \end_inset
12013
12014  [
12015 \begin_inset Flex Code
12016 status collapsed
12017
12018 \begin_layout Plain Layout
12019 int
12020 \end_layout
12021
12022 \end_inset
12023
12024 ] Defines argument number <int> of a command\SpecialChar breakableslash
12025 environment associated with
12026  the current style.
12027  This is useful for things like section headings, and only makes sense with
12028  \SpecialChar LaTeX
12029 .
12030  Every (optional or required) argument of a command or environment – except
12031  for the required argument that is associated with the content of the paragraph
12032  itself – has a separate definition, where the number specifies the order
12033  of the arguments.
12034  The definition must end with 
12035 \begin_inset Flex Code
12036 status collapsed
12037
12038 \begin_layout Plain Layout
12039 EndArgument
12040 \end_layout
12041
12042 \end_inset
12043
12044 .
12045  So a command with two optional arguments has:
12046 \end_layout
12047
12048 \begin_deeper
12049 \begin_layout Quote
12050
12051 \family typewriter
12052 Argument 1
12053 \end_layout
12054
12055 \begin_layout Quote
12056
12057 \family typewriter
12058 ...
12059 \end_layout
12060
12061 \begin_layout Quote
12062
12063 \family typewriter
12064 EndArgument
12065 \end_layout
12066
12067 \begin_layout Quote
12068
12069 \family typewriter
12070 Argument 2
12071 \end_layout
12072
12073 \begin_layout Quote
12074
12075 \family typewriter
12076 ...
12077 \end_layout
12078
12079 \begin_layout Quote
12080
12081 \family typewriter
12082 EndArgument
12083 \end_layout
12084
12085 \begin_layout Standard
12086 Inside the 
12087 \begin_inset Flex Code
12088 status collapsed
12089
12090 \begin_layout Plain Layout
12091 Argument
12092 \end_layout
12093
12094 \end_inset
12095
12096  definition, the following specifications are possible:
12097 \end_layout
12098
12099 \begin_layout Itemize
12100 \begin_inset Flex Code
12101 status collapsed
12102
12103 \begin_layout Plain Layout
12104 LabelString
12105 \end_layout
12106
12107 \end_inset
12108
12109  
12110 \begin_inset Flex Code
12111 status collapsed
12112
12113 \begin_layout Plain Layout
12114 [string]
12115 \end_layout
12116
12117 \end_inset
12118
12119  The string that will appear both in the menu (to insert this argument)
12120  and on the argument inset button (unless you also specify a separate 
12121 \begin_inset Flex Code
12122 status collapsed
12123
12124 \begin_layout Plain Layout
12125 MenuString
12126 \end_layout
12127
12128 \end_inset
12129
12130 ).
12131  For the menu, you can define an accelerator by appending the respective
12132  character to the string, divided by 
12133 \begin_inset Quotes eld
12134 \end_inset
12135
12136 |
12137 \begin_inset Quotes erd
12138 \end_inset
12139
12140  (e.
12141 \begin_inset space \thinspace{}
12142 \end_inset
12143
12144 g.
12145 \begin_inset space \space{}
12146 \end_inset
12147
12148
12149 \begin_inset Quotes eld
12150 \end_inset
12151
12152
12153 \begin_inset Flex Code
12154 status collapsed
12155
12156 \begin_layout Plain Layout
12157 Short Title|S
12158 \end_layout
12159
12160 \end_inset
12161
12162
12163 \begin_inset Quotes erd
12164 \end_inset
12165
12166 ).
12167 \end_layout
12168
12169 \begin_layout Itemize
12170 \begin_inset Flex Code
12171 status collapsed
12172
12173 \begin_layout Plain Layout
12174 MenuString
12175 \end_layout
12176
12177 \end_inset
12178
12179  
12180 \begin_inset Flex Code
12181 status collapsed
12182
12183 \begin_layout Plain Layout
12184 [string]
12185 \end_layout
12186
12187 \end_inset
12188
12189  A separate string for the menu.
12190  You can define an accelerator by appending the respective character to
12191  the string, divided by 
12192 \begin_inset Quotes eld
12193 \end_inset
12194
12195 |
12196 \begin_inset Quotes erd
12197 \end_inset
12198
12199  (e.
12200 \begin_inset space \thinspace{}
12201 \end_inset
12202
12203 g.
12204 \begin_inset space \space{}
12205 \end_inset
12206
12207
12208 \begin_inset Quotes eld
12209 \end_inset
12210
12211
12212 \begin_inset Flex Code
12213 status collapsed
12214
12215 \begin_layout Plain Layout
12216 Short Title|S
12217 \end_layout
12218
12219 \end_inset
12220
12221
12222 \begin_inset Quotes erd
12223 \end_inset
12224
12225 ).
12226  This specification is optional.
12227  If it is not given the 
12228 \begin_inset Flex Code
12229 status collapsed
12230
12231 \begin_layout Plain Layout
12232 LabelString
12233 \end_layout
12234
12235 \end_inset
12236
12237  will be used instead for the menu.
12238 \end_layout
12239
12240 \begin_layout Itemize
12241 \begin_inset Flex Code
12242 status collapsed
12243
12244 \begin_layout Plain Layout
12245 Tooltip
12246 \end_layout
12247
12248 \end_inset
12249
12250  
12251 \begin_inset Flex Code
12252 status collapsed
12253
12254 \begin_layout Plain Layout
12255 [string]
12256 \end_layout
12257
12258 \end_inset
12259
12260  A longer explanatory text that appears in the tooltip when hovering over
12261  the argument inset.
12262 \end_layout
12263
12264 \begin_layout Itemize
12265 \begin_inset Flex Code
12266 status collapsed
12267
12268 \begin_layout Plain Layout
12269 Mandatory
12270 \end_layout
12271
12272 \end_inset
12273
12274  [
12275 \begin_inset Flex Code
12276 status collapsed
12277
12278 \begin_layout Plain Layout
12279
12280 \emph on
12281 0
12282 \end_layout
12283
12284 \end_inset
12285
12286 ,
12287 \begin_inset space \thinspace{}
12288 \end_inset
12289
12290
12291 \begin_inset Flex Code
12292 status collapsed
12293
12294 \begin_layout Plain Layout
12295 1
12296 \end_layout
12297
12298 \end_inset
12299
12300 ] Declare if this is a mandatory (1) or an optional (0) argument.
12301  Mandatory arguments will be output empty if not given, while optional arguments
12302  will not be output at all.
12303  By default, mandatory arguments are delimited by 
12304 \begin_inset Flex Code
12305 status collapsed
12306
12307 \begin_layout Plain Layout
12308 {...}
12309 \end_layout
12310
12311 \end_inset
12312
12313 , while optional arguments are delimited by 
12314 \begin_inset Flex Code
12315 status collapsed
12316
12317 \begin_layout Plain Layout
12318 [...]
12319 \end_layout
12320
12321 \end_inset
12322
12323
12324 \change_inserted -712698321 1555579782
12325
12326 \end_layout
12327
12328 \begin_layout Itemize
12329
12330 \change_inserted -712698321 1555579780
12331 \begin_inset Flex Code
12332 status collapsed
12333
12334 \begin_layout Plain Layout
12335
12336 \change_inserted -712698321 1555579780
12337 NewlineCmd
12338 \end_layout
12339
12340 \end_inset
12341
12342  
12343 \begin_inset Flex Code
12344 status collapsed
12345
12346 \begin_layout Plain Layout
12347
12348 \change_inserted -712698321 1555579780
12349 [string]
12350 \end_layout
12351
12352 \end_inset
12353
12354  Option to define a different command (from the default 
12355 \begin_inset Flex Code
12356 status collapsed
12357
12358 \begin_layout Plain Layout
12359
12360 \change_inserted -712698321 1555579780
12361
12362 \backslash
12363
12364 \backslash
12365
12366 \end_layout
12367
12368 \end_inset
12369
12370 ) to be used for line breaks.
12371  The initial backslash must not be specified.
12372 \change_unchanged
12373
12374 \end_layout
12375
12376 \begin_layout Itemize
12377 \begin_inset Flex Code
12378 status collapsed
12379
12380 \begin_layout Plain Layout
12381 Requires
12382 \end_layout
12383
12384 \end_inset
12385
12386  
12387 \begin_inset Flex Code
12388 status collapsed
12389
12390 \begin_layout Plain Layout
12391 [int=0]
12392 \end_layout
12393
12394 \end_inset
12395
12396  defines another argument (by its number) which this argument requires to
12397  be output if it is itself output.
12398  E.
12399 \begin_inset space \thinspace{}
12400 \end_inset
12401
12402 g., in \SpecialChar LaTeX
12403  commands, optional arguments often require previous optional arguments
12404  to be output (at least empty), as in 
12405 \begin_inset Flex Code
12406 status collapsed
12407
12408 \begin_layout Plain Layout
12409
12410 \backslash
12411 command[][argument]{text}
12412 \end_layout
12413
12414 \end_inset
12415
12416 .
12417  This can be achieved by the statement 
12418 \begin_inset Flex Code
12419 status collapsed
12420
12421 \begin_layout Plain Layout
12422 Requires 1
12423 \end_layout
12424
12425 \end_inset
12426
12427  within 
12428 \begin_inset Flex Code
12429 status collapsed
12430
12431 \begin_layout Plain Layout
12432 Argument 2
12433 \end_layout
12434
12435 \end_inset
12436
12437 .
12438 \end_layout
12439
12440 \begin_layout Itemize
12441 \begin_inset Flex Code
12442 status collapsed
12443
12444 \begin_layout Plain Layout
12445 LeftDelim
12446 \end_layout
12447
12448 \end_inset
12449
12450  
12451 \begin_inset Flex Code
12452 status collapsed
12453
12454 \begin_layout Plain Layout
12455 [string]
12456 \end_layout
12457
12458 \end_inset
12459
12460  defines a custom left delimiter (instead of 
12461 \begin_inset Flex Code
12462 status collapsed
12463
12464 \begin_layout Plain Layout
12465 {
12466 \end_layout
12467
12468 \end_inset
12469
12470  or 
12471 \begin_inset Flex Code
12472 status collapsed
12473
12474 \begin_layout Plain Layout
12475 [
12476 \end_layout
12477
12478 \end_inset
12479
12480 ).
12481  A line break in the output can be indicated by 
12482 \begin_inset Flex Code
12483 status collapsed
12484
12485 \begin_layout Plain Layout
12486 <br/>
12487 \end_layout
12488
12489 \end_inset
12490
12491 .
12492 \end_layout
12493
12494 \begin_layout Itemize
12495 \begin_inset Flex Code
12496 status collapsed
12497
12498 \begin_layout Plain Layout
12499 RightDelim
12500 \end_layout
12501
12502 \end_inset
12503
12504  
12505 \begin_inset Flex Code
12506 status collapsed
12507
12508 \begin_layout Plain Layout
12509 [string]
12510 \end_layout
12511
12512 \end_inset
12513
12514  defines a custom right delimiter (instead of 
12515 \begin_inset Flex Code
12516 status collapsed
12517
12518 \begin_layout Plain Layout
12519 }
12520 \end_layout
12521
12522 \end_inset
12523
12524  or 
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  A line break in the output can be indicated by 
12536 \begin_inset Flex Code
12537 status collapsed
12538
12539 \begin_layout Plain Layout
12540 <br/>
12541 \end_layout
12542
12543 \end_inset
12544
12545 .
12546 \end_layout
12547
12548 \begin_layout Itemize
12549 \begin_inset Flex Code
12550 status collapsed
12551
12552 \begin_layout Plain Layout
12553 DefaultArg
12554 \end_layout
12555
12556 \end_inset
12557
12558  
12559 \begin_inset Flex Code
12560 status collapsed
12561
12562 \begin_layout Plain Layout
12563 [string]
12564 \end_layout
12565
12566 \end_inset
12567
12568  defines an argument that is inserted if and only if no user-specified arguments
12569  were given, i.
12570 \begin_inset space \thinspace{}
12571 \end_inset
12572
12573 e.
12574 \begin_inset space \space{}
12575 \end_inset
12576
12577 if no argument inset has been inserted (note that also an empty argument
12578  inset omits the DefaultArg).
12579  Multiple arguments need to be separated by comma.
12580 \end_layout
12581
12582 \begin_layout Itemize
12583 \begin_inset Flex Code
12584 status collapsed
12585
12586 \begin_layout Plain Layout
12587 PresetArg
12588 \end_layout
12589
12590 \end_inset
12591
12592  
12593 \begin_inset Flex Code
12594 status collapsed
12595
12596 \begin_layout Plain Layout
12597 [string]
12598 \end_layout
12599
12600 \end_inset
12601
12602  defines an argument that is inserted in any case (alone or in addition
12603  to user-specified arguments).
12604  Multiple arguments need to be separated by comma.
12605 \end_layout
12606
12607 \begin_layout Itemize
12608 \begin_inset Flex Code
12609 status collapsed
12610
12611 \begin_layout Plain Layout
12612 Font
12613 \end_layout
12614
12615 \end_inset
12616
12617  The font used for the argument content, see 
12618 \begin_inset CommandInset ref
12619 LatexCommand ref
12620 reference "subsec:Font-description"
12621
12622 \end_inset
12623
12624 .
12625 \change_inserted -712698321 1559484228
12626
12627 \end_layout
12628
12629 \begin_layout Itemize
12630
12631 \change_inserted -712698321 1559484228
12632 \begin_inset Flex Code
12633 status collapsed
12634
12635 \begin_layout Plain Layout
12636
12637 \change_inserted -712698321 1559484228
12638 FreeSpacing
12639 \end_layout
12640
12641 \end_inset
12642
12643  [
12644 \begin_inset Flex Code
12645 status collapsed
12646
12647 \begin_layout Plain Layout
12648
12649 \change_inserted -712698321 1559484228
12650
12651 \emph on
12652 0
12653 \end_layout
12654
12655 \end_inset
12656
12657 ,
12658 \begin_inset space \thinspace{}
12659 \end_inset
12660
12661
12662 \begin_inset Flex Code
12663 status collapsed
12664
12665 \begin_layout Plain Layout
12666
12667 \change_inserted -712698321 1559484228
12668 1
12669 \end_layout
12670
12671 \end_inset
12672
12673 ] As with paragraph styles, see 
12674 \begin_inset CommandInset ref
12675 LatexCommand ref
12676 reference "subsec:Paragraph-Styles"
12677
12678 \end_inset
12679
12680 .
12681 \change_unchanged
12682
12683 \end_layout
12684
12685 \begin_layout Itemize
12686 \begin_inset Flex Code
12687 status collapsed
12688
12689 \begin_layout Plain Layout
12690 LabelFont
12691 \end_layout
12692
12693 \end_inset
12694
12695  The font used for the label; see 
12696 \begin_inset CommandInset ref
12697 LatexCommand ref
12698 reference "subsec:Font-description"
12699
12700 \end_inset
12701
12702 .
12703 \end_layout
12704
12705 \begin_layout Itemize
12706 \begin_inset Flex Code
12707 status collapsed
12708
12709 \begin_layout Plain Layout
12710 Decoration
12711 \end_layout
12712
12713 \end_inset
12714
12715  [
12716 \begin_inset Flex Code
12717 status collapsed
12718
12719 \begin_layout Plain Layout
12720
12721 \emph on
12722 Classic
12723 \emph default
12724 , Minimalistic, Conglomerate
12725 \end_layout
12726
12727 \end_inset
12728
12729 ] describes the rendering style used for the inset's frame and buttons.
12730 \end_layout
12731
12732 \begin_layout Itemize
12733 \begin_inset Flex Code
12734 status collapsed
12735
12736 \begin_layout Plain Layout
12737 AutoInsert
12738 \end_layout
12739
12740 \end_inset
12741
12742  
12743 \begin_inset Flex Code
12744 status collapsed
12745
12746 \begin_layout Plain Layout
12747 [int=0]
12748 \end_layout
12749
12750 \end_inset
12751
12752  If this is set to 
12753 \begin_inset Flex Code
12754 status collapsed
12755
12756 \begin_layout Plain Layout
12757 1
12758 \end_layout
12759
12760 \end_inset
12761
12762 , this argument is automatically inserted when the respective style is selected.
12763
12764 \change_deleted -712698321 1559484200
12765  Currently, only one argument per style\SpecialChar breakableslash
12766 layout can be automatically inserted.
12767 \change_unchanged
12768
12769 \end_layout
12770
12771 \begin_layout Itemize
12772
12773 \change_inserted -712698321 1559491402
12774 \begin_inset Flex Code
12775 status collapsed
12776
12777 \begin_layout Plain Layout
12778
12779 \change_inserted -712698321 1559490711
12780 InsertOnNewline
12781 \end_layout
12782
12783 \end_inset
12784
12785  
12786 \begin_inset Flex Code
12787 status collapsed
12788
12789 \begin_layout Plain Layout
12790
12791 \change_inserted -712698321 1559490703
12792 [int=0]
12793 \end_layout
12794
12795 \end_inset
12796
12797  If this is set to 
12798 \begin_inset Flex Code
12799 status collapsed
12800
12801 \begin_layout Plain Layout
12802
12803 \change_inserted -712698321 1559490703
12804 1
12805 \end_layout
12806
12807 \end_inset
12808
12809 , this argument will be inserted on a new line with 
12810 \begin_inset Flex Code
12811 status collapsed
12812
12813 \begin_layout Plain Layout
12814
12815 \change_inserted -712698321 1559491402
12816 AutoInsert
12817 \end_layout
12818
12819 \end_inset
12820
12821  (only available within Flex insets).
12822 \end_layout
12823
12824 \begin_layout Itemize
12825 \begin_inset Flex Code
12826 status collapsed
12827
12828 \begin_layout Plain Layout
12829 InsertCotext
12830 \end_layout
12831
12832 \end_inset
12833
12834  
12835 \begin_inset Flex Code
12836 status collapsed
12837
12838 \begin_layout Plain Layout
12839 [int=0]
12840 \end_layout
12841
12842 \end_inset
12843
12844  If this is set to 
12845 \begin_inset Flex Code
12846 status collapsed
12847
12848 \begin_layout Plain Layout
12849 1
12850 \end_layout
12851
12852 \end_inset
12853
12854 , this argument will be inserted with a copy of the co-text (either selected
12855  text or the whole paragraph) as content.
12856 \end_layout
12857
12858 \begin_layout Itemize
12859 \begin_inset Flex Code
12860 status collapsed
12861
12862 \begin_layout Plain Layout
12863 PassThru
12864 \end_layout
12865
12866 \end_inset
12867
12868  [
12869 \begin_inset Flex Code
12870 status collapsed
12871
12872 \begin_layout Plain Layout
12873
12874 \emph on
12875 inherited
12876 \emph default
12877 , true, false
12878 \end_layout
12879
12880 \end_inset
12881
12882 ] Whether the contents of this argument should be output in raw form, meaning
12883  without special translations that \SpecialChar LaTeX
12884  would require.
12885  By default, the 
12886 \begin_inset Flex Code
12887 status collapsed
12888
12889 \begin_layout Plain Layout
12890 PassThru
12891 \end_layout
12892
12893 \end_inset
12894
12895  status is inherited by the inset or paragraph layout the argument belongs
12896  to, true and false change the status for the given argument only.
12897 \end_layout
12898
12899 \begin_layout Itemize
12900 \begin_inset Flex Code
12901 status collapsed
12902
12903 \begin_layout Plain Layout
12904 PassThruChars
12905 \end_layout
12906
12907 \end_inset
12908
12909  [
12910 \begin_inset Flex Code
12911 status collapsed
12912
12913 \begin_layout Plain Layout
12914 string of characters
12915 \end_layout
12916
12917 \end_inset
12918
12919 ]
12920 \family typewriter
12921  
12922 \family default
12923 Defines individual characters
12924 \begin_inset Newline linebreak
12925 \end_inset
12926
12927 that should be output in raw form, meaning without special translations
12928  that \SpecialChar LaTeX
12929  would require.
12930  Note that, contrary to PassThru, this needs to be explicitly defined for
12931  arguments.
12932  That is, arguments do not inherit PassThruChars from their parent inset
12933  or layout.
12934 \end_layout
12935
12936 \begin_layout Itemize
12937 \begin_inset Flex Code
12938 status collapsed
12939
12940 \begin_layout Plain Layout
12941 IsTocCaption
12942 \end_layout
12943
12944 \end_inset
12945
12946  [
12947 \begin_inset Flex Code
12948 status collapsed
12949
12950 \begin_layout Plain Layout
12951
12952 \emph on
12953 0
12954 \end_layout
12955
12956 \end_inset
12957
12958 ,
12959 \begin_inset space \thinspace{}
12960 \end_inset
12961
12962
12963 \begin_inset Flex Code
12964 status collapsed
12965
12966 \begin_layout Plain Layout
12967 1
12968 \end_layout
12969
12970 \end_inset
12971
12972 ] If this is set to 1, the argument will output its content in the corresponding
12973  item in the table of contents.
12974  See AddToToc.
12975 \end_layout
12976
12977 \begin_layout Standard
12978 By default, the text entered in the \SpecialChar LyX
12979  workarea in the respective layout is
12980  the last (mandatory) argument of a command if the 
12981 \begin_inset Flex Code
12982 status collapsed
12983
12984 \begin_layout Plain Layout
12985 LatexType
12986 \end_layout
12987
12988 \end_inset
12989
12990  is 
12991 \begin_inset Flex Code
12992 status collapsed
12993
12994 \begin_layout Plain Layout
12995 Command
12996 \end_layout
12997
12998 \end_inset
12999
13000 .
13001  However, arguments with the prefix 
13002 \begin_inset Flex Code
13003 status collapsed
13004
13005 \begin_layout Plain Layout
13006 post:
13007 \end_layout
13008
13009 \end_inset
13010
13011  are output after this workarea argument.
13012  Note that post-argument numbering restarts at 1, so the first argument
13013  following the workarea argument is 
13014 \begin_inset Flex Code
13015 status collapsed
13016
13017 \begin_layout Plain Layout
13018 post:1
13019 \end_layout
13020
13021 \end_inset
13022
13023 .
13024  Post-arguments are ignored in any other 
13025 \begin_inset Flex Code
13026 status collapsed
13027
13028 \begin_layout Plain Layout
13029 LatexType
13030 \end_layout
13031
13032 \end_inset
13033
13034  than 
13035 \begin_inset Flex Code
13036 status collapsed
13037
13038 \begin_layout Plain Layout
13039 Command
13040 \end_layout
13041
13042 \end_inset
13043
13044 .
13045 \end_layout
13046
13047 \begin_layout Standard
13048 Arguments for list 
13049 \begin_inset Flex Code
13050 status collapsed
13051
13052 \begin_layout Plain Layout
13053
13054 \backslash
13055 item
13056 \end_layout
13057
13058 \end_inset
13059
13060 s (as in 
13061 \begin_inset Flex Code
13062 status collapsed
13063
13064 \begin_layout Plain Layout
13065
13066 \backslash
13067 item[foo]
13068 \end_layout
13069
13070 \end_inset
13071
13072 ) have the prefix 
13073 \begin_inset Flex Code
13074 status collapsed
13075
13076 \begin_layout Plain Layout
13077 item:
13078 \end_layout
13079
13080 \end_inset
13081
13082  followed by the number (e.
13083 \begin_inset space \thinspace{}
13084 \end_inset
13085
13086 g.
13087 \begin_inset space \space{}
13088 \end_inset
13089
13090
13091 \begin_inset Flex Code
13092 status collapsed
13093
13094 \begin_layout Plain Layout
13095 Argument item:1
13096 \end_layout
13097
13098 \end_inset
13099
13100 ).
13101 \change_inserted -712698321 1534487781
13102
13103 \end_layout
13104
13105 \begin_layout Standard
13106
13107 \change_inserted -712698321 1534488561
13108 Finally, there is a special argument type with the prefix 
13109 \begin_inset Flex Code
13110 status collapsed
13111
13112 \begin_layout Plain Layout
13113
13114 \change_inserted -712698321 1534487844
13115 listpreamble:
13116 \change_unchanged
13117
13118 \end_layout
13119
13120 \end_inset
13121
13122 .
13123  It is not really an argument, but uses the argument interface (thus, the
13124  prefix is also followed by a number, e.
13125 \begin_inset space \thinspace{}
13126 \end_inset
13127
13128 g.
13129  
13130 \begin_inset Flex Code
13131 status collapsed
13132
13133 \begin_layout Plain Layout
13134
13135 \change_inserted -712698321 1534488412
13136 Argument listpreamble:1
13137 \end_layout
13138
13139 \end_inset
13140
13141 ).
13142  As the name implies, it is targeted at lists such as 
13143 \family sans
13144 Itemize
13145 \family default
13146
13147 \family sans
13148 Enumerate
13149 \family default
13150
13151 \family sans
13152 Description
13153 \family default
13154 , or 
13155 \family sans
13156 Bibliography
13157 \family default
13158 .
13159  Its content will be output at the list start, before the first 
13160 \begin_inset Flex Code
13161 status collapsed
13162
13163 \begin_layout Plain Layout
13164
13165 \change_inserted -712698321 1534488058
13166
13167 \backslash
13168 item
13169 \change_unchanged
13170
13171 \end_layout
13172
13173 \end_inset
13174
13175 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13176 ).
13177  This way, users can insert redefinitions (of lengths etc.) to individual
13178  lists.
13179  By default, these arguments do not have a delimiter.
13180 \change_unchanged
13181
13182 \end_layout
13183
13184 \end_deeper
13185 \begin_layout Description
13186 \begin_inset Flex Code
13187 status collapsed
13188
13189 \begin_layout Plain Layout
13190 AutoNests
13191 \end_layout
13192
13193 \end_inset
13194
13195  Includes a comma-separated list of layouts that should be nested in and
13196  after the current layout.
13197  Only makes sense for nestable layouts (such as environments).
13198  Must be ended by 
13199 \begin_inset Quotes eld
13200 \end_inset
13201
13202
13203 \begin_inset Flex Code
13204 status collapsed
13205
13206 \begin_layout Plain Layout
13207 EndAutoNests
13208 \end_layout
13209
13210 \end_inset
13211
13212
13213 \begin_inset Quotes erd
13214 \end_inset
13215
13216 .
13217  See also 
13218 \begin_inset Flex Code
13219 status collapsed
13220
13221 \begin_layout Plain Layout
13222 IsAutoNestedBy
13223 \end_layout
13224
13225 \end_inset
13226
13227 .
13228 \end_layout
13229
13230 \begin_layout Description
13231 \begin_inset Flex Code
13232 status collapsed
13233
13234 \begin_layout Plain Layout
13235 BabelPreamble
13236 \end_layout
13237
13238 \end_inset
13239
13240  Note that this will completely override any prior 
13241 \begin_inset Flex Code
13242 status collapsed
13243
13244 \begin_layout Plain Layout
13245 BabelPreamble
13246 \end_layout
13247
13248 \end_inset
13249
13250  declaration for this style.
13251  Must end with 
13252 \begin_inset Quotes eld
13253 \end_inset
13254
13255
13256 \begin_inset Flex Code
13257 status collapsed
13258
13259 \begin_layout Plain Layout
13260 EndBabelPreamble
13261 \end_layout
13262
13263 \end_inset
13264
13265
13266 \begin_inset Quotes erd
13267 \end_inset
13268
13269 .
13270  See 
13271 \begin_inset CommandInset ref
13272 LatexCommand ref
13273 reference "subsec:I18n"
13274
13275 \end_inset
13276
13277  for details on its use.
13278 \end_layout
13279
13280 \begin_layout Description
13281 \begin_inset Flex Code
13282 status collapsed
13283
13284 \begin_layout Plain Layout
13285 BottomSep
13286 \end_layout
13287
13288 \end_inset
13289
13290  [
13291 \begin_inset Flex Code
13292 status collapsed
13293
13294 \begin_layout Plain Layout
13295 float=0
13296 \end_layout
13297
13298 \end_inset
13299
13300 ]
13301 \begin_inset Foot
13302 status collapsed
13303
13304 \begin_layout Plain Layout
13305 Note that a `float' here is a real number, such as: 1.5.
13306 \end_layout
13307
13308 \end_inset
13309
13310  The vertical space with which the last of a chain of paragraphs with this
13311  style is separated from the following paragraph.
13312  If the next paragraph has another style, the separations are not simply
13313  added, but the maximum is taken.
13314 \end_layout
13315
13316 \begin_layout Description
13317 \begin_inset Flex Code
13318 status collapsed
13319
13320 \begin_layout Plain Layout
13321 Category
13322 \end_layout
13323
13324 \end_inset
13325
13326  [
13327 \begin_inset Flex Code
13328 status collapsed
13329
13330 \begin_layout Plain Layout
13331 string
13332 \end_layout
13333
13334 \end_inset
13335
13336 ] The category for this style.
13337  This is used to group related styles in the style combobox on the toolbar.
13338  Any string can be used, but you may want to use existing categories with
13339  your own styles.
13340  
13341 \end_layout
13342
13343 \begin_layout Description
13344 \begin_inset Flex Code
13345 status collapsed
13346
13347 \begin_layout Plain Layout
13348 CommandDepth
13349 \end_layout
13350
13351 \end_inset
13352
13353  Depth of XML command.
13354  Used only with XML-type formats.
13355 \end_layout
13356
13357 \begin_layout Description
13358 \begin_inset Flex Code
13359 status collapsed
13360
13361 \begin_layout Plain Layout
13362 CopyStyle
13363 \end_layout
13364
13365 \end_inset
13366
13367  [
13368 \begin_inset Flex Code
13369 status collapsed
13370
13371 \begin_layout Plain Layout
13372 string
13373 \end_layout
13374
13375 \end_inset
13376
13377 ] Copies all the features of an existing style into the current one.
13378  
13379 \end_layout
13380
13381 \begin_layout Description
13382 \begin_inset Flex Code
13383 status collapsed
13384
13385 \begin_layout Plain Layout
13386 DependsOn
13387 \end_layout
13388
13389 \end_inset
13390
13391  [
13392 \begin_inset Flex Code
13393 status collapsed
13394
13395 \begin_layout Plain Layout
13396 <name>
13397 \end_layout
13398
13399 \end_inset
13400
13401 ] The name of a style whose preamble should be output 
13402 \emph on
13403 before
13404 \emph default
13405  this one.
13406  This allows to ensure some ordering of the preamble snippets when macros
13407  definitions depend on one another.
13408 \begin_inset Foot
13409 status collapsed
13410
13411 \begin_layout Plain Layout
13412 Note that, besides that functionality, there is no way to ensure any ordering
13413  of preambles.
13414  The ordering that you see in a given version of \SpecialChar LyX
13415  may change without warning
13416  in later versions.
13417 \end_layout
13418
13419 \end_inset
13420
13421
13422 \end_layout
13423
13424 \begin_layout Description
13425 \begin_inset Flex Code
13426 status collapsed
13427
13428 \begin_layout Plain Layout
13429 EndLabeltype
13430 \end_layout
13431
13432 \end_inset
13433
13434  [
13435 \begin_inset Flex Code
13436 status collapsed
13437
13438 \begin_layout Plain Layout
13439
13440 \emph on
13441 No_Label
13442 \emph default
13443 , Box, Filled_Box, Static
13444 \end_layout
13445
13446 \end_inset
13447
13448 ] The type of label that stands at the end of the paragraph (or sequence
13449  of paragraphs if 
13450 \begin_inset Flex Code
13451 status collapsed
13452
13453 \begin_layout Plain Layout
13454 LatexType
13455 \end_layout
13456
13457 \end_inset
13458
13459  is
13460 \begin_inset Newline newline
13461 \end_inset
13462
13463
13464 \begin_inset Flex Code
13465 status collapsed
13466
13467 \begin_layout Plain Layout
13468 Environment
13469 \end_layout
13470
13471 \end_inset
13472
13473
13474 \begin_inset Flex Code
13475 status collapsed
13476
13477 \begin_layout Plain Layout
13478 Item_Environment
13479 \end_layout
13480
13481 \end_inset
13482
13483  or 
13484 \begin_inset Flex Code
13485 status collapsed
13486
13487 \begin_layout Plain Layout
13488 List_Environment
13489 \end_layout
13490
13491 \end_inset
13492
13493 ).
13494  
13495 \begin_inset Flex Code
13496 status collapsed
13497
13498 \begin_layout Plain Layout
13499 No_Label
13500 \end_layout
13501
13502 \end_inset
13503
13504  means 
13505 \begin_inset Quotes eld
13506 \end_inset
13507
13508 nothing
13509 \begin_inset Quotes erd
13510 \end_inset
13511
13512
13513 \begin_inset Flex Code
13514 status collapsed
13515
13516 \begin_layout Plain Layout
13517 Box
13518 \end_layout
13519
13520 \end_inset
13521
13522  (resp.
13523 \begin_inset space \space{}
13524 \end_inset
13525
13526
13527 \begin_inset Flex Code
13528 status collapsed
13529
13530 \begin_layout Plain Layout
13531 Filled_Box
13532 \end_layout
13533
13534 \end_inset
13535
13536 ) is a white (resp.
13537 \begin_inset space ~
13538 \end_inset
13539
13540 black) square suitable for end of proof markers, 
13541 \begin_inset Flex Code
13542 status collapsed
13543
13544 \begin_layout Plain Layout
13545 Static
13546 \end_layout
13547
13548 \end_inset
13549
13550  is an explicit text string.
13551 \end_layout
13552
13553 \begin_layout Description
13554 \begin_inset Flex Code
13555 status collapsed
13556
13557 \begin_layout Plain Layout
13558 EndLabelString
13559 \end_layout
13560
13561 \end_inset
13562
13563  [
13564 \begin_inset Flex Code
13565 status collapsed
13566
13567 \begin_layout Plain Layout
13568 string=""
13569 \end_layout
13570
13571 \end_inset
13572
13573 ] The string used for a label with a 
13574 \begin_inset Flex Code
13575 status collapsed
13576
13577 \begin_layout Plain Layout
13578 Static
13579 \end_layout
13580
13581 \end_inset
13582
13583
13584 \begin_inset Newline newline
13585 \end_inset
13586
13587
13588 \begin_inset Flex Code
13589 status collapsed
13590
13591 \begin_layout Plain Layout
13592 EndLabelType
13593 \end_layout
13594
13595 \end_inset
13596
13597 .
13598  
13599 \end_layout
13600
13601 \begin_layout Description
13602 \begin_inset Flex Code
13603 status collapsed
13604
13605 \begin_layout Plain Layout
13606 Font
13607 \end_layout
13608
13609 \end_inset
13610
13611  The font used for both the text body 
13612 \emph on
13613 and
13614 \emph default
13615  the label.
13616  See 
13617 \begin_inset CommandInset ref
13618 LatexCommand ref
13619 reference "subsec:Font-description"
13620
13621 \end_inset
13622
13623 .
13624  Note that defining this font automatically defines the 
13625 \begin_inset Flex Code
13626 status collapsed
13627
13628 \begin_layout Plain Layout
13629 LabelFont
13630 \end_layout
13631
13632 \end_inset
13633
13634  to the same value.
13635  So you should define this one first if you also want to define 
13636 \begin_inset Flex Code
13637 status collapsed
13638
13639 \begin_layout Plain Layout
13640 LabelFont
13641 \end_layout
13642
13643 \end_inset
13644
13645 .
13646 \end_layout
13647
13648 \begin_layout Description
13649 \begin_inset Flex Code
13650 status collapsed
13651
13652 \begin_layout Plain Layout
13653 ForceLocal
13654 \end_layout
13655
13656 \end_inset
13657
13658  [
13659 \begin_inset Flex Code
13660 status collapsed
13661
13662 \begin_layout Plain Layout
13663 int=0
13664 \end_layout
13665
13666 \end_inset
13667
13668 ] Used for backporting new styles to stable \SpecialChar LyX
13669  versions.
13670  The first stable version that supports this tag is \SpecialChar LyX
13671  2.1.0.
13672  The argument is a number which may either be 0, -1 or any value greater
13673  than zero.
13674  If the 
13675 \begin_inset Flex Code
13676 status collapsed
13677
13678 \begin_layout Plain Layout
13679 ForceLocal
13680 \end_layout
13681
13682 \end_inset
13683
13684  flag of a style is greater than zero, it will always be written to the
13685  document header.
13686  If a .lyx file is read, the style definitions from the document header are
13687  added to the document class.
13688  Therefore even older \SpecialChar LyX
13689  versions can handle the style.
13690  The argument of 
13691 \begin_inset Flex Code
13692 status collapsed
13693
13694 \begin_layout Plain Layout
13695 ForceLocal
13696 \end_layout
13697
13698 \end_inset
13699
13700  is a version number: if the style is read, and the version number is less
13701  than the version number of the already existing style in the document class,
13702  the new style is ignored.
13703  If the version number is greater, the new style replaces the existing style.
13704  A value of -1 means an infinite version number, i.
13705 \begin_inset space \thinspace{}
13706 \end_inset
13707
13708 e.
13709 \begin_inset space \space{}
13710 \end_inset
13711
13712 the style is always used.
13713 \end_layout
13714
13715 \begin_layout Description
13716 \begin_inset Flex Code
13717 status collapsed
13718
13719 \begin_layout Plain Layout
13720 FreeSpacing
13721 \end_layout
13722
13723 \end_inset
13724
13725  [
13726 \begin_inset Flex Code
13727 status collapsed
13728
13729 \begin_layout Plain Layout
13730
13731 \emph on
13732 0
13733 \end_layout
13734
13735 \end_inset
13736
13737 ,
13738 \begin_inset space \thinspace{}
13739 \end_inset
13740
13741
13742 \begin_inset Flex Code
13743 status collapsed
13744
13745 \begin_layout Plain Layout
13746 1
13747 \end_layout
13748
13749 \end_inset
13750
13751 ] Usually \SpecialChar LyX
13752  does not allow you to insert more than one space between words,
13753  since a space is considered as the separation between two words, not a
13754  character or symbol of its own.
13755  This is a very fine thing but sometimes annoying, for example, when typing
13756  program code or plain \SpecialChar LaTeX
13757  code.
13758  For this reason, 
13759 \begin_inset Flex Code
13760 status collapsed
13761
13762 \begin_layout Plain Layout
13763 FreeSpacing
13764 \end_layout
13765
13766 \end_inset
13767
13768  can be enabled.
13769  
13770 \change_deleted -495245474 1550490105
13771 Note that 
13772 \change_unchanged
13773 \SpecialChar LyX
13774  will create protected blanks for the additional blanks when in 
13775 \change_inserted -495245474 1550490096
13776
13777 \begin_inset Flex Code
13778 status collapsed
13779
13780 \begin_layout Plain Layout
13781
13782 \change_inserted -495245474 1550490089
13783 Passthru 1
13784 \end_layout
13785
13786 \end_inset
13787
13788  is not specified.
13789 \change_deleted -495245474 1550490116
13790 another mode than \SpecialChar LaTeX
13791 -mode.
13792
13793 \change_inserted -495245474 1550247760
13794  Note that 
13795 \begin_inset Flex Code
13796 status collapsed
13797
13798 \begin_layout Plain Layout
13799
13800 \change_inserted -495245474 1550247736
13801 FreeSpacing
13802 \end_layout
13803
13804 \end_inset
13805
13806  implies 
13807 \begin_inset Flex Code
13808 status collapsed
13809
13810 \begin_layout Plain Layout
13811
13812 \change_inserted -495245474 1550247755
13813 KeepEmpty
13814 \end_layout
13815
13816 \end_inset
13817
13818 .
13819 \change_unchanged
13820
13821 \end_layout
13822
13823 \begin_layout Description
13824 \begin_inset Flex Code
13825 status collapsed
13826
13827 \begin_layout Plain Layout
13828 HTML*
13829 \end_layout
13830
13831 \end_inset
13832
13833  These tags are used with XHTML output.
13834  See 
13835 \begin_inset CommandInset ref
13836 LatexCommand ref
13837 reference "subsec:Paragraph-Style-XHTML"
13838
13839 \end_inset
13840
13841 .
13842 \end_layout
13843
13844 \begin_layout Description
13845 \begin_inset Flex Code
13846 status collapsed
13847
13848 \begin_layout Plain Layout
13849 InnerTag
13850 \end_layout
13851
13852 \end_inset
13853
13854  [FIXME] (Used only with XML-type formats.)
13855 \end_layout
13856
13857 \begin_layout Description
13858 \begin_inset Flex Code
13859 status collapsed
13860
13861 \begin_layout Plain Layout
13862 InPreamble
13863 \end_layout
13864
13865 \end_inset
13866
13867  [
13868 \begin_inset Flex Code
13869 status collapsed
13870
13871 \begin_layout Plain Layout
13872
13873 \emph on
13874 0
13875 \end_layout
13876
13877 \end_inset
13878
13879 ,
13880 \begin_inset space \thinspace{}
13881 \end_inset
13882
13883
13884 \begin_inset Flex Code
13885 status collapsed
13886
13887 \begin_layout Plain Layout
13888 1
13889 \end_layout
13890
13891 \end_inset
13892
13893 ] If 
13894 \begin_inset Flex Code
13895 status collapsed
13896
13897 \begin_layout Plain Layout
13898 1
13899 \end_layout
13900
13901 \end_inset
13902
13903 , marks the style as to be included in the document preamble and not in
13904  the document body.
13905  This is useful for document classes that want such information as the title
13906  and author to appear in the preamble.
13907  Note that this works only for styles for which the 
13908 \begin_inset Flex Code
13909 status collapsed
13910
13911 \begin_layout Plain Layout
13912 LatexType
13913 \end_layout
13914
13915 \end_inset
13916
13917  is 
13918 \begin_inset Flex Code
13919 status collapsed
13920
13921 \begin_layout Plain Layout
13922 Command
13923 \end_layout
13924
13925 \end_inset
13926
13927  or 
13928 \begin_inset Flex Code
13929 status collapsed
13930
13931 \begin_layout Plain Layout
13932 Paragraph
13933 \end_layout
13934
13935 \end_inset
13936
13937 .
13938 \end_layout
13939
13940 \begin_layout Description
13941 \begin_inset Flex Code
13942 status collapsed
13943
13944 \begin_layout Plain Layout
13945 InTitle
13946 \end_layout
13947
13948 \end_inset
13949
13950  [
13951 \begin_inset Flex Code
13952 status collapsed
13953
13954 \begin_layout Plain Layout
13955
13956 \emph on
13957 0
13958 \end_layout
13959
13960 \end_inset
13961
13962 ,
13963 \begin_inset space \thinspace{}
13964 \end_inset
13965
13966
13967 \begin_inset Flex Code
13968 status collapsed
13969
13970 \begin_layout Plain Layout
13971 1
13972 \end_layout
13973
13974 \end_inset
13975
13976 ] If 
13977 \begin_inset Flex Code
13978 status collapsed
13979
13980 \begin_layout Plain Layout
13981 1
13982 \end_layout
13983
13984 \end_inset
13985
13986 , marks the style as being part of a title block (see also the 
13987 \begin_inset Flex Code
13988 status collapsed
13989
13990 \begin_layout Plain Layout
13991 TitleLatexType
13992 \end_layout
13993
13994 \end_inset
13995
13996  and 
13997 \begin_inset Flex Code
13998 status collapsed
13999
14000 \begin_layout Plain Layout
14001 TitleLatexName
14002 \end_layout
14003
14004 \end_inset
14005
14006  global entries).
14007 \end_layout
14008
14009 \begin_layout Description
14010 \begin_inset Flex Code
14011 status collapsed
14012
14013 \begin_layout Plain Layout
14014 IsAutoNestedBy
14015 \end_layout
14016
14017 \end_inset
14018
14019  Includes a comma-separated list of layouts after which this one should
14020  be nested.
14021  Only makes sense with regard to nestable layouts (such as environments).
14022  Must be ended by 
14023 \begin_inset Quotes eld
14024 \end_inset
14025
14026
14027 \begin_inset Flex Code
14028 status collapsed
14029
14030 \begin_layout Plain Layout
14031 EndIsAutoNestedBy
14032 \end_layout
14033
14034 \end_inset
14035
14036
14037 \begin_inset Quotes erd
14038 \end_inset
14039
14040 .
14041  See also 
14042 \begin_inset Flex Code
14043 status collapsed
14044
14045 \begin_layout Plain Layout
14046 AutoNests
14047 \end_layout
14048
14049 \end_inset
14050
14051 .
14052 \end_layout
14053
14054 \begin_layout Description
14055 \begin_inset Flex Code
14056 status collapsed
14057
14058 \begin_layout Plain Layout
14059 IsTocCaption
14060 \end_layout
14061
14062 \end_inset
14063
14064  [
14065 \begin_inset Flex Code
14066 status collapsed
14067
14068 \begin_layout Plain Layout
14069
14070 \emph on
14071 0
14072 \end_layout
14073
14074 \end_inset
14075
14076 ,
14077 \begin_inset space \thinspace{}
14078 \end_inset
14079
14080
14081 \begin_inset Flex Code
14082 status collapsed
14083
14084 \begin_layout Plain Layout
14085 1
14086 \end_layout
14087
14088 \end_inset
14089
14090 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14091  of its contents in its item in the table of contents.
14092  Otherwise, only the label, if it exists, appears.
14093 \end_layout
14094
14095 \begin_layout Description
14096 \begin_inset Flex Code
14097 status collapsed
14098
14099 \begin_layout Plain Layout
14100 ItemCommand
14101 \end_layout
14102
14103 \end_inset
14104
14105  [
14106 \begin_inset Flex Code
14107 status collapsed
14108
14109 \begin_layout Plain Layout
14110 string="item"
14111 \end_layout
14112
14113 \end_inset
14114
14115 ] The \SpecialChar LaTeX
14116  command sequence declaring an item in a list.
14117  The command is to be defined without the preceding backslash (the default
14118  is 
14119 \begin_inset Quotes eld
14120 \end_inset
14121
14122 item
14123 \begin_inset Quotes erd
14124 \end_inset
14125
14126 , resulting in 
14127 \begin_inset Flex Code
14128 status collapsed
14129
14130 \begin_layout Plain Layout
14131
14132 \backslash
14133 item
14134 \end_layout
14135
14136 \end_inset
14137
14138  in the \SpecialChar LaTeX
14139  output).
14140 \end_layout
14141
14142 \begin_layout Description
14143 \begin_inset Flex Code
14144 status collapsed
14145
14146 \begin_layout Plain Layout
14147 ItemSep
14148 \end_layout
14149
14150 \end_inset
14151
14152  [
14153 \begin_inset Flex Code
14154 status collapsed
14155
14156 \begin_layout Plain Layout
14157 float=0
14158 \end_layout
14159
14160 \end_inset
14161
14162 ] This provides extra space between paragraphs that have the same style.
14163  If you put other styles into an environment, each is separated with the
14164  environment's 
14165 \begin_inset Flex Code
14166 status collapsed
14167
14168 \begin_layout Plain Layout
14169 ParSep
14170 \end_layout
14171
14172 \end_inset
14173
14174 .
14175  But the whole items of the environment are additionally separated with
14176  this 
14177 \begin_inset Flex Code
14178 status collapsed
14179
14180 \begin_layout Plain Layout
14181 ItemSep
14182 \end_layout
14183
14184 \end_inset
14185
14186 .
14187  Note that this is a
14188 \emph on
14189  multiplier.
14190 \end_layout
14191
14192 \begin_layout Description
14193 \begin_inset Flex Code
14194 status collapsed
14195
14196 \begin_layout Plain Layout
14197 ItemTag
14198 \end_layout
14199
14200 \end_inset
14201
14202  [FIXME] (Used only with XML-type formats.)
14203 \end_layout
14204
14205 \begin_layout Description
14206 \begin_inset Flex Code
14207 status collapsed
14208
14209 \begin_layout Plain Layout
14210 KeepEmpty
14211 \end_layout
14212
14213 \end_inset
14214
14215  [
14216 \begin_inset Flex Code
14217 status collapsed
14218
14219 \begin_layout Plain Layout
14220
14221 \emph on
14222 0
14223 \end_layout
14224
14225 \end_inset
14226
14227 ,
14228 \begin_inset space \thinspace{}
14229 \end_inset
14230
14231
14232 \begin_inset Flex Code
14233 status collapsed
14234
14235 \begin_layout Plain Layout
14236 1
14237 \end_layout
14238
14239 \end_inset
14240
14241 ] Usually \SpecialChar LyX
14242  does not allow you to leave a paragraph empty, since it would
14243  lead to empty \SpecialChar LaTeX
14244  output.
14245  There are some cases where this could be desirable however: in a letter
14246  template, the required fields can be provided as empty fields, so that
14247  people do not forget them; in some special classes, a style can be used
14248  as some kind of break, which does not contain actual text.
14249 \end_layout
14250
14251 \begin_layout Description
14252 \begin_inset Flex Code
14253 status collapsed
14254
14255 \begin_layout Plain Layout
14256 LabelBottomsep
14257 \end_layout
14258
14259 \end_inset
14260
14261  [
14262 \begin_inset Flex Code
14263 status collapsed
14264
14265 \begin_layout Plain Layout
14266 float=0
14267 \end_layout
14268
14269 \end_inset
14270
14271 ] The vertical space between the label and the text body.
14272  Only used for labels that are above the text body (
14273 \begin_inset Flex Code
14274 status collapsed
14275
14276 \begin_layout Plain Layout
14277 Top_Environment
14278 \end_layout
14279
14280 \end_inset
14281
14282  and
14283 \begin_inset Newline newline
14284 \end_inset
14285
14286
14287 \begin_inset Flex Code
14288 status collapsed
14289
14290 \begin_layout Plain Layout
14291 Centered_Top_Environment
14292 \end_layout
14293
14294 \end_inset
14295
14296 ).
14297 \end_layout
14298
14299 \begin_layout Description
14300 \begin_inset Flex Code
14301 status collapsed
14302
14303 \begin_layout Plain Layout
14304 LabelCounter
14305 \end_layout
14306
14307 \end_inset
14308
14309  [
14310 \begin_inset Flex Code
14311 status collapsed
14312
14313 \begin_layout Plain Layout
14314 string=""
14315 \end_layout
14316
14317 \end_inset
14318
14319 ] The name of the counter for automatic numbering.
14320  In order to have the counter appear with your label, you will need to reference
14321  it in the 
14322 \begin_inset Flex Code
14323 status collapsed
14324
14325 \begin_layout Plain Layout
14326
14327 \family typewriter
14328 LabelString
14329 \end_layout
14330
14331 \end_inset
14332
14333 .
14334  This will work with 
14335 \begin_inset Flex Code
14336 status collapsed
14337
14338 \begin_layout Plain Layout
14339 LabelType
14340 \end_layout
14341
14342 \end_inset
14343
14344 s, 
14345 \begin_inset Flex Code
14346 status collapsed
14347
14348 \begin_layout Plain Layout
14349 Static
14350 \end_layout
14351
14352 \end_inset
14353
14354
14355 \begin_inset Flex Code
14356 status collapsed
14357
14358 \begin_layout Plain Layout
14359 Above
14360 \end_layout
14361
14362 \end_inset
14363
14364  and 
14365 \begin_inset Flex Code
14366 status collapsed
14367
14368 \begin_layout Plain Layout
14369 Centered
14370 \end_layout
14371
14372 \end_inset
14373
14374 , at least.
14375 \begin_inset Newline newline
14376 \end_inset
14377
14378 This 
14379 \emph on
14380 may
14381 \emph default
14382  also be given if 
14383 \begin_inset Flex Code
14384 status collapsed
14385
14386 \begin_layout Plain Layout
14387 LabelType
14388 \end_layout
14389
14390 \end_inset
14391
14392  is 
14393 \begin_inset Flex Code
14394 status collapsed
14395
14396 \begin_layout Plain Layout
14397 Enumerate
14398 \end_layout
14399
14400 \end_inset
14401
14402 , though this case is a bit complicated.
14403  Suppose you declare 
14404 \begin_inset Quotes eld
14405 \end_inset
14406
14407
14408 \begin_inset Flex Code
14409 status collapsed
14410
14411 \begin_layout Plain Layout
14412 LabelCounter myenum
14413 \end_layout
14414
14415 \end_inset
14416
14417
14418 \begin_inset Quotes erd
14419 \end_inset
14420
14421 .
14422  Then the actual counters used are 
14423 \begin_inset Flex Code
14424 status collapsed
14425
14426 \begin_layout Plain Layout
14427 myenumi
14428 \end_layout
14429
14430 \end_inset
14431
14432
14433 \begin_inset Flex Code
14434 status collapsed
14435
14436 \begin_layout Plain Layout
14437 myenumii
14438 \end_layout
14439
14440 \end_inset
14441
14442
14443 \begin_inset Flex Code
14444 status collapsed
14445
14446 \begin_layout Plain Layout
14447 myenumiii
14448 \end_layout
14449
14450 \end_inset
14451
14452  and 
14453 \begin_inset Flex Code
14454 status collapsed
14455
14456 \begin_layout Plain Layout
14457 myenumiv
14458 \end_layout
14459
14460 \end_inset
14461
14462 , much as in \SpecialChar LaTeX
14463 .
14464  These counters must all be declared separately.
14465 \begin_inset Newline newline
14466 \end_inset
14467
14468 See 
14469 \begin_inset CommandInset ref
14470 LatexCommand ref
14471 reference "subsec:Counters"
14472
14473 \end_inset
14474
14475  for details on counters.
14476 \end_layout
14477
14478 \begin_layout Description
14479 \begin_inset Flex Code
14480 status collapsed
14481
14482 \begin_layout Plain Layout
14483 LabelFont
14484 \end_layout
14485
14486 \end_inset
14487
14488  The font used for the label.
14489  See 
14490 \begin_inset CommandInset ref
14491 LatexCommand ref
14492 reference "subsec:Font-description"
14493
14494 \end_inset
14495
14496 .
14497 \end_layout
14498
14499 \begin_layout Description
14500 \begin_inset Flex Code
14501 status collapsed
14502
14503 \begin_layout Plain Layout
14504 LabelIndent
14505 \end_layout
14506
14507 \end_inset
14508
14509  [
14510 \begin_inset Flex Code
14511 status collapsed
14512
14513 \begin_layout Plain Layout
14514 string=""
14515 \end_layout
14516
14517 \end_inset
14518
14519 ] Text that indicates how far a label should be indented.
14520 \end_layout
14521
14522 \begin_layout Description
14523 \begin_inset Flex Code
14524 status collapsed
14525
14526 \begin_layout Plain Layout
14527 LabelSep
14528 \end_layout
14529
14530 \end_inset
14531
14532  [
14533 \begin_inset Flex Code
14534 status collapsed
14535
14536 \begin_layout Plain Layout
14537 string=""
14538 \end_layout
14539
14540 \end_inset
14541
14542 ] Text that indicates the amount of horizontal space between the label and
14543  the text body.
14544  Only used for labels that are not above the text body.
14545 \end_layout
14546
14547 \begin_layout Description
14548 \begin_inset Flex Code
14549 status collapsed
14550
14551 \begin_layout Plain Layout
14552 LabelString
14553 \end_layout
14554
14555 \end_inset
14556
14557  [
14558 \begin_inset Flex Code
14559 status collapsed
14560
14561 \begin_layout Plain Layout
14562 string=""
14563 \end_layout
14564
14565 \end_inset
14566
14567 ] The string used for the label.
14568  When 
14569 \begin_inset Flex Code
14570 status collapsed
14571
14572 \begin_layout Plain Layout
14573 LabelCounter
14574 \end_layout
14575
14576 \end_inset
14577
14578  is set, this string can be contain the special formatting commands described
14579  in 
14580 \begin_inset CommandInset ref
14581 LatexCommand ref
14582 reference "subsec:Counters"
14583
14584 \end_inset
14585
14586 .
14587 \end_layout
14588
14589 \begin_layout Description
14590 \begin_inset Flex Code
14591 status collapsed
14592
14593 \begin_layout Plain Layout
14594 LabelStringAppendix
14595 \end_layout
14596
14597 \end_inset
14598
14599  [
14600 \begin_inset Flex Code
14601 status collapsed
14602
14603 \begin_layout Plain Layout
14604 string=""
14605 \end_layout
14606
14607 \end_inset
14608
14609 ] This is used inside the appendix instead of
14610 \begin_inset Newline newline
14611 \end_inset
14612
14613
14614 \begin_inset Flex Code
14615 status collapsed
14616
14617 \begin_layout Plain Layout
14618 LabelString
14619 \end_layout
14620
14621 \end_inset
14622
14623 .
14624  Note that every 
14625 \begin_inset Flex Code
14626 status collapsed
14627
14628 \begin_layout Plain Layout
14629 LabelString
14630 \end_layout
14631
14632 \end_inset
14633
14634  statement resets
14635 \begin_inset Newline newline
14636 \end_inset
14637
14638
14639 \begin_inset Flex Code
14640 status collapsed
14641
14642 \begin_layout Plain Layout
14643 LabelStringAppendix
14644 \end_layout
14645
14646 \end_inset
14647
14648  too.
14649 \end_layout
14650
14651 \begin_layout Description
14652 \begin_inset Flex Code
14653 status collapsed
14654
14655 \begin_layout Plain Layout
14656 LabelTag
14657 \end_layout
14658
14659 \end_inset
14660
14661  [FIXME] (Used only with XML-type formats.)
14662 \end_layout
14663
14664 \begin_layout Description
14665 \begin_inset Flex Code
14666 status collapsed
14667
14668 \begin_layout Plain Layout
14669 LabelType
14670 \end_layout
14671
14672 \end_inset
14673
14674  [
14675 \begin_inset Flex Code
14676 status collapsed
14677
14678 \begin_layout Plain Layout
14679
14680 \emph on
14681 No_Label
14682 \emph default
14683 , Manual, Static, Above, 
14684 \begin_inset Newline newline
14685 \end_inset
14686
14687 Centered, Sensitive, Enumerate,
14688 \begin_inset Newline newline
14689 \end_inset
14690
14691 Itemize, Bibliography
14692 \end_layout
14693
14694 \end_inset
14695
14696 ]
14697 \end_layout
14698
14699 \begin_deeper
14700 \begin_layout Description
14701 \begin_inset Flex Code
14702 status collapsed
14703
14704 \begin_layout Plain Layout
14705 Manual
14706 \end_layout
14707
14708 \end_inset
14709
14710  means the label is the very first word (up to the first real blank).
14711  Use protected spaces if you want more than one word as the label.
14712  
14713 \end_layout
14714
14715 \begin_layout Description
14716 \begin_inset Flex Code
14717 status collapsed
14718
14719 \begin_layout Plain Layout
14720 Static
14721 \end_layout
14722
14723 \end_inset
14724
14725  means the label is simply what is declared as 
14726 \begin_inset Flex Code
14727 status collapsed
14728
14729 \begin_layout Plain Layout
14730 LabelString
14731 \end_layout
14732
14733 \end_inset
14734
14735 .
14736  This will be displayed 
14737 \begin_inset Quotes eld
14738 \end_inset
14739
14740 inline
14741 \begin_inset Quotes erd
14742 \end_inset
14743
14744 , at the beginning of the paragraph.
14745  If the 
14746 \begin_inset Flex Code
14747 status collapsed
14748
14749 \begin_layout Plain Layout
14750 LatexType
14751 \end_layout
14752
14753 \end_inset
14754
14755  is 
14756 \begin_inset Flex Code
14757 status collapsed
14758
14759 \begin_layout Plain Layout
14760 Environment
14761 \end_layout
14762
14763 \end_inset
14764
14765 , then it will be displayed only in the first paragraph of any sequence
14766  of paragraphs with the same 
14767 \begin_inset Flex Code
14768 status collapsed
14769
14770 \begin_layout Plain Layout
14771 Style
14772 \end_layout
14773
14774 \end_inset
14775
14776 .
14777 \end_layout
14778
14779 \begin_layout Description
14780 \begin_inset Flex Code
14781 status collapsed
14782
14783 \begin_layout Plain Layout
14784 Above
14785 \end_layout
14786
14787 \end_inset
14788
14789
14790 \begin_inset space ~
14791 \end_inset
14792
14793 and
14794 \begin_inset space ~
14795 \end_inset
14796
14797
14798 \begin_inset Flex Code
14799 status collapsed
14800
14801 \begin_layout Plain Layout
14802 Centered
14803 \end_layout
14804
14805 \end_inset
14806
14807  are special cases of 
14808 \begin_inset Flex Code
14809 status collapsed
14810
14811 \begin_layout Plain Layout
14812 Static
14813 \end_layout
14814
14815 \end_inset
14816
14817 .
14818  The label will be printed above the paragraph either at the beginning of
14819  the line or centered.
14820 \end_layout
14821
14822 \begin_layout Description
14823 \begin_inset Flex Code
14824 status collapsed
14825
14826 \begin_layout Plain Layout
14827 Sensitive
14828 \end_layout
14829
14830 \end_inset
14831
14832  is a special case for the caption-labels 
14833 \begin_inset Quotes eld
14834 \end_inset
14835
14836 Figure
14837 \begin_inset Quotes erd
14838 \end_inset
14839
14840  and 
14841 \begin_inset Quotes eld
14842 \end_inset
14843
14844 Table
14845 \begin_inset Quotes erd
14846 \end_inset
14847
14848 .
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 Sensitive
14858 \end_layout
14859
14860 \end_inset
14861
14862  means the (hardcoded) label string depends on the kind of float: It is
14863  hardcoded to be `FloatType N', where N is the value of the counter associated
14864  with the float.
14865  For the case that a caption is inserted outside of a float the 
14866 \begin_inset Flex Code
14867 status collapsed
14868
14869 \begin_layout Plain Layout
14870 LabelString
14871 \end_layout
14872
14873 \end_inset
14874
14875  will appear as 
14876 \begin_inset Quotes eld
14877 \end_inset
14878
14879 Senseless!
14880 \begin_inset Quotes erd
14881 \end_inset
14882
14883 .
14884 \end_layout
14885
14886 \begin_layout Description
14887 \begin_inset Flex Code
14888 status collapsed
14889
14890 \begin_layout Plain Layout
14891 Enumerate
14892 \end_layout
14893
14894 \end_inset
14895
14896  produces the usual sort of enumeration labels.
14897  The number type needs to be set in the 
14898 \family sans
14899 Counter
14900 \family default
14901 , see 
14902 \begin_inset CommandInset ref
14903 LatexCommand ref
14904 reference "subsec:Counters"
14905
14906 \end_inset
14907
14908 .
14909 \end_layout
14910
14911 \begin_layout Description
14912 \begin_inset Flex Code
14913 status collapsed
14914
14915 \begin_layout Plain Layout
14916 Itemize
14917 \end_layout
14918
14919 \end_inset
14920
14921  produces various bullets at the different levels.
14922  The bullet types displayed can be set via 
14923 \begin_inset Flex Noun
14924 status collapsed
14925
14926 \begin_layout Plain Layout
14927 Document\SpecialChar menuseparator
14928 Settings\SpecialChar menuseparator
14929 Bullets
14930 \end_layout
14931
14932 \end_inset
14933
14934 .
14935 \end_layout
14936
14937 \begin_layout Description
14938 \begin_inset Flex Code
14939 status collapsed
14940
14941 \begin_layout Plain Layout
14942 Bibliography
14943 \end_layout
14944
14945 \end_inset
14946
14947  should be used only with 
14948 \begin_inset Flex Code
14949 status collapsed
14950
14951 \begin_layout Plain Layout
14952 LatexType BibEnvironment
14953 \end_layout
14954
14955 \end_inset
14956
14957 .
14958 \end_layout
14959
14960 \end_deeper
14961 \begin_layout Description
14962 \begin_inset Flex Code
14963 status collapsed
14964
14965 \begin_layout Plain Layout
14966 LangPreamble
14967 \end_layout
14968
14969 \end_inset
14970
14971  Note that this will completely override any prior 
14972 \begin_inset Flex Code
14973 status collapsed
14974
14975 \begin_layout Plain Layout
14976 LangPreamble
14977 \end_layout
14978
14979 \end_inset
14980
14981  declaration for this style.
14982  Must end with 
14983 \begin_inset Quotes eld
14984 \end_inset
14985
14986
14987 \begin_inset Flex Code
14988 status collapsed
14989
14990 \begin_layout Plain Layout
14991 EndLangPreamble
14992 \end_layout
14993
14994 \end_inset
14995
14996
14997 \begin_inset Quotes erd
14998 \end_inset
14999
15000 .
15001  See 
15002 \begin_inset CommandInset ref
15003 LatexCommand ref
15004 reference "subsec:I18n"
15005
15006 \end_inset
15007
15008  for details on its use.
15009 \end_layout
15010
15011 \begin_layout Description
15012 \begin_inset Flex Code
15013 status collapsed
15014
15015 \begin_layout Plain Layout
15016 LatexName
15017 \end_layout
15018
15019 \end_inset
15020
15021  [
15022 \begin_inset Flex Code
15023 status collapsed
15024
15025 \begin_layout Plain Layout
15026 <name>
15027 \end_layout
15028
15029 \end_inset
15030
15031 ] The name of the corresponding \SpecialChar LaTeX
15032  stuff.
15033  Either the environment or command name.
15034 \end_layout
15035
15036 \begin_layout Description
15037 \begin_inset Flex Code
15038 status collapsed
15039
15040 \begin_layout Plain Layout
15041 LatexParam
15042 \end_layout
15043
15044 \end_inset
15045
15046  [
15047 \begin_inset Flex Code
15048 status collapsed
15049
15050 \begin_layout Plain Layout
15051 <parameter>
15052 \end_layout
15053
15054 \end_inset
15055
15056 ] An optional parameter for the corresponding 
15057 \begin_inset Flex Code
15058 status collapsed
15059
15060 \begin_layout Plain Layout
15061 LatexName
15062 \end_layout
15063
15064 \end_inset
15065
15066  stuff.
15067  This parameter cannot be changed from within \SpecialChar LyX
15068  (use 
15069 \begin_inset Flex Code
15070 status collapsed
15071
15072 \begin_layout Plain Layout
15073 Argument
15074 \end_layout
15075
15076 \end_inset
15077
15078  for customizable parameters).
15079  This will be output as is after all \SpecialChar LaTeX
15080  
15081 \begin_inset Flex Code
15082 status collapsed
15083
15084 \begin_layout Plain Layout
15085 Argument
15086 \end_layout
15087
15088 \end_inset
15089
15090 s.
15091 \end_layout
15092
15093 \begin_layout Description
15094 \begin_inset Flex Code
15095 status collapsed
15096
15097 \begin_layout Plain Layout
15098 LatexType
15099 \end_layout
15100
15101 \end_inset
15102
15103  [
15104 \begin_inset Flex Code
15105 status collapsed
15106
15107 \begin_layout Plain Layout
15108
15109 \emph on
15110 Paragraph
15111 \emph default
15112 , Command, Environment, Item_Environment,
15113 \begin_inset Newline newline
15114 \end_inset
15115
15116 List_Environment, Bib_Environment
15117 \end_layout
15118
15119 \end_inset
15120
15121 ] How the style should be translated into \SpecialChar LaTeX
15122 .
15123 \begin_inset Foot
15124 status collapsed
15125
15126 \begin_layout Plain Layout
15127 \begin_inset Flex Code
15128 status collapsed
15129
15130 \begin_layout Plain Layout
15131 LatexType
15132 \end_layout
15133
15134 \end_inset
15135
15136  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15137  Visit the SGML class files for specific examples.
15138 \end_layout
15139
15140 \end_inset
15141
15142
15143 \end_layout
15144
15145 \begin_deeper
15146 \begin_layout Description
15147 \begin_inset Flex Code
15148 status collapsed
15149
15150 \begin_layout Plain Layout
15151 Paragraph
15152 \end_layout
15153
15154 \end_inset
15155
15156  means nothing special.
15157 \end_layout
15158
15159 \begin_layout Description
15160 \begin_inset Flex Code
15161 status collapsed
15162
15163 \begin_layout Plain Layout
15164 Command
15165 \end_layout
15166
15167 \end_inset
15168
15169  means 
15170 \begin_inset Flex Code
15171 status collapsed
15172
15173 \begin_layout Plain Layout
15174
15175 \backslash
15176
15177 \emph on
15178 LatexName
15179 \emph default
15180 {\SpecialChar ldots
15181 }
15182 \end_layout
15183
15184 \end_inset
15185
15186 .
15187 \end_layout
15188
15189 \begin_layout Description
15190 \begin_inset Flex Code
15191 status collapsed
15192
15193 \begin_layout Plain Layout
15194 Environment
15195 \end_layout
15196
15197 \end_inset
15198
15199  means 
15200 \begin_inset Flex Code
15201 status collapsed
15202
15203 \begin_layout Plain Layout
15204
15205 \backslash
15206 begin{
15207 \emph on
15208 LatexName
15209 \emph default
15210 }\SpecialChar ldots
15211
15212 \backslash
15213 end{
15214 \emph on
15215 LatexName
15216 \emph default
15217 }
15218 \end_layout
15219
15220 \end_inset
15221
15222 .
15223  
15224 \end_layout
15225
15226 \begin_layout Description
15227 \begin_inset Flex Code
15228 status collapsed
15229
15230 \begin_layout Plain Layout
15231 Item_Environment
15232 \end_layout
15233
15234 \end_inset
15235
15236  is the same as 
15237 \begin_inset Flex Code
15238 status collapsed
15239
15240 \begin_layout Plain Layout
15241 Environment
15242 \end_layout
15243
15244 \end_inset
15245
15246 , except that an 
15247 \begin_inset Flex Code
15248 status collapsed
15249
15250 \begin_layout Plain Layout
15251
15252 \backslash
15253 item
15254 \end_layout
15255
15256 \end_inset
15257
15258  is generated for each paragraph of this environment.
15259  
15260 \end_layout
15261
15262 \begin_layout Description
15263 \begin_inset Flex Code
15264 status collapsed
15265
15266 \begin_layout Plain Layout
15267 List_Environment
15268 \end_layout
15269
15270 \end_inset
15271
15272  is the same as 
15273 \begin_inset Flex Code
15274 status collapsed
15275
15276 \begin_layout Plain Layout
15277 Item_Environment
15278 \end_layout
15279
15280 \end_inset
15281
15282 , except that
15283 \begin_inset Newline newline
15284 \end_inset
15285
15286
15287 \begin_inset Flex Code
15288 status collapsed
15289
15290 \begin_layout Plain Layout
15291 LabelWidthString
15292 \end_layout
15293
15294 \end_inset
15295
15296  is passed as an argument to the environment.
15297 \begin_inset Newline newline
15298 \end_inset
15299
15300
15301 \begin_inset Flex Code
15302 status collapsed
15303
15304 \begin_layout Plain Layout
15305 LabelWidthString
15306 \end_layout
15307
15308 \end_inset
15309
15310  can be defined in the 
15311 \begin_inset Flex Noun
15312 status collapsed
15313
15314 \begin_layout Plain Layout
15315 Edit\SpecialChar menuseparator
15316 Paragraph
15317 \begin_inset space ~
15318 \end_inset
15319
15320 settings
15321 \end_layout
15322
15323 \end_inset
15324
15325  dialog.
15326 \end_layout
15327
15328 \begin_layout Description
15329 \begin_inset Flex Code
15330 status collapsed
15331
15332 \begin_layout Plain Layout
15333 Bib_Environment
15334 \end_layout
15335
15336 \end_inset
15337
15338  is like 
15339 \begin_inset Flex Code
15340 status collapsed
15341
15342 \begin_layout Plain Layout
15343 Environment
15344 \end_layout
15345
15346 \end_inset
15347
15348  but adds the necessary mandatory argument (the longest label) to the begin
15349  statement of the bibliography environment:
15350 \begin_inset Newline newline
15351 \end_inset
15352
15353
15354 \begin_inset Flex Code
15355 status collapsed
15356
15357 \begin_layout Plain Layout
15358
15359 \backslash
15360 begin{thebibliography}{99}
15361 \end_layout
15362
15363 \end_inset
15364
15365 .
15366  It is therefore only useful for bibliography environments.
15367  The default longest label 
15368 \begin_inset Quotes eld
15369 \end_inset
15370
15371 99
15372 \begin_inset Quotes erd
15373 \end_inset
15374
15375  can be changed by the user in the paragraph settings of a bibliography
15376  item.
15377 \end_layout
15378
15379 \begin_layout Standard
15380 Putting the last few things together, the \SpecialChar LaTeX
15381  output will be either: 
15382 \end_layout
15383
15384 \begin_layout LyX-Code
15385
15386 \backslash
15387 LatexName[LatexParam]{\SpecialChar ldots
15388 }
15389 \end_layout
15390
15391 \begin_layout Standard
15392 or: 
15393 \end_layout
15394
15395 \begin_layout LyX-Code
15396
15397 \backslash
15398 begin{LatexName}[LatexParam] \SpecialChar ldots
15399  
15400 \backslash
15401 end{LatexName}.
15402 \end_layout
15403
15404 \begin_layout Standard
15405 depending upon the \SpecialChar LaTeX
15406  type.
15407 \end_layout
15408
15409 \end_deeper
15410 \begin_layout Description
15411 \begin_inset Flex Code
15412 status collapsed
15413
15414 \begin_layout Plain Layout
15415 LeftDelim
15416 \end_layout
15417
15418 \end_inset
15419
15420  [
15421 \begin_inset Flex Code
15422 status collapsed
15423
15424 \begin_layout Plain Layout
15425 string
15426 \end_layout
15427
15428 \end_inset
15429
15430 ] A string that is put at the beginning of the style content.
15431  A line break in the output can be indicated by 
15432 \begin_inset Flex Code
15433 status collapsed
15434
15435 \begin_layout Plain Layout
15436 <br/>
15437 \end_layout
15438
15439 \end_inset
15440
15441 .
15442 \end_layout
15443
15444 \begin_layout Description
15445 \begin_inset Flex Code
15446 status collapsed
15447
15448 \begin_layout Plain Layout
15449 LeftMargin
15450 \end_layout
15451
15452 \end_inset
15453
15454  [
15455 \begin_inset Flex Code
15456 status collapsed
15457
15458 \begin_layout Plain Layout
15459 string=""
15460 \end_layout
15461
15462 \end_inset
15463
15464 ] If you put styles into environments, the different 
15465 \begin_inset Flex Code
15466 status collapsed
15467
15468 \begin_layout Plain Layout
15469 LeftMargin
15470 \end_layout
15471
15472 \end_inset
15473
15474  are not simply added, but added with a factor 
15475 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15476 \end_inset
15477
15478 .
15479  Note that this parameter is also used when 
15480 \begin_inset Flex Code
15481 status collapsed
15482
15483 \begin_layout Plain Layout
15484 Margin
15485 \end_layout
15486
15487 \end_inset
15488
15489  is defined as 
15490 \begin_inset Flex Code
15491 status collapsed
15492
15493 \begin_layout Plain Layout
15494 Manual
15495 \end_layout
15496
15497 \end_inset
15498
15499  or 
15500 \begin_inset Flex Code
15501 status collapsed
15502
15503 \begin_layout Plain Layout
15504 Dynamic
15505 \end_layout
15506
15507 \end_inset
15508
15509 .
15510  Then it is added to the manual or dynamic margin.
15511 \begin_inset Newline newline
15512 \end_inset
15513
15514 For example 
15515 \begin_inset Quotes eld
15516 \end_inset
15517
15518
15519 \begin_inset Flex Code
15520 status collapsed
15521
15522 \begin_layout Plain Layout
15523 MM
15524 \end_layout
15525
15526 \end_inset
15527
15528
15529 \begin_inset Quotes erd
15530 \end_inset
15531
15532  means that the paragraph is indented with the width of 
15533 \begin_inset Quotes eld
15534 \end_inset
15535
15536
15537 \begin_inset Flex Code
15538 status collapsed
15539
15540 \begin_layout Plain Layout
15541 MM
15542 \end_layout
15543
15544 \end_inset
15545
15546
15547 \begin_inset Quotes erd
15548 \end_inset
15549
15550  in the normal font.
15551  You can get a negative width by prefixing the string with 
15552 \begin_inset Quotes eld
15553 \end_inset
15554
15555
15556 \begin_inset Flex Code
15557 status collapsed
15558
15559 \begin_layout Plain Layout
15560 -
15561 \end_layout
15562
15563 \end_inset
15564
15565
15566 \begin_inset Quotes erd
15567 \end_inset
15568
15569 .
15570  This way was chosen so that the look is the same with each used screen
15571  font.
15572 \end_layout
15573
15574 \begin_layout Description
15575 \begin_inset Flex Code
15576 status collapsed
15577
15578 \begin_layout Plain Layout
15579 Margin
15580 \end_layout
15581
15582 \end_inset
15583
15584  [
15585 \begin_inset Flex Code
15586 status collapsed
15587
15588 \begin_layout Plain Layout
15589
15590 \emph on
15591 Static
15592 \emph default
15593 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15594 \end_layout
15595
15596 \end_inset
15597
15598
15599 \begin_inset Newline newline
15600 \end_inset
15601
15602 The kind of margin that the style has on the left side.
15603 \end_layout
15604
15605 \begin_deeper
15606 \begin_layout Description
15607 \begin_inset Flex Code
15608 status collapsed
15609
15610 \begin_layout Plain Layout
15611 Static
15612 \end_layout
15613
15614 \end_inset
15615
15616  just means a fixed margin.
15617 \end_layout
15618
15619 \begin_layout Description
15620 \begin_inset Flex Code
15621 status collapsed
15622
15623 \begin_layout Plain Layout
15624 Manual
15625 \end_layout
15626
15627 \end_inset
15628
15629  means that the left margin depends on the string entered in the 
15630 \begin_inset Flex Noun
15631 status collapsed
15632
15633 \begin_layout Plain Layout
15634 Edit\SpecialChar menuseparator
15635 Paragraph
15636 \begin_inset space ~
15637 \end_inset
15638
15639 Settings
15640 \end_layout
15641
15642 \end_inset
15643
15644  dialog.
15645  This is used to typeset nice lists without tabulators.
15646 \end_layout
15647
15648 \begin_layout Description
15649 \begin_inset Flex Code
15650 status collapsed
15651
15652 \begin_layout Plain Layout
15653 Dynamic
15654 \end_layout
15655
15656 \end_inset
15657
15658  means that the margin depends on the size of the label.
15659  This is used for automatic enumerated headlines.
15660  It is obvious that the headline 
15661 \begin_inset Quotes eld
15662 \end_inset
15663
15664 5.4.3.2.1 Very long headline
15665 \begin_inset Quotes erd
15666 \end_inset
15667
15668  must have a wider left margin (as wide as 
15669 \begin_inset Quotes eld
15670 \end_inset
15671
15672 5.4.3.2.1
15673 \begin_inset Quotes erd
15674 \end_inset
15675
15676  plus the space) than 
15677 \begin_inset Quotes eld
15678 \end_inset
15679
15680 3.2 Very long headline
15681 \begin_inset Quotes erd
15682 \end_inset
15683
15684 , even if standard 
15685 \begin_inset Quotes eld
15686 \end_inset
15687
15688 word processors
15689 \begin_inset Quotes erd
15690 \end_inset
15691
15692  are not able to do this.
15693 \end_layout
15694
15695 \begin_layout Description
15696 \begin_inset Flex Code
15697 status collapsed
15698
15699 \begin_layout Plain Layout
15700 First_Dynamic
15701 \end_layout
15702
15703 \end_inset
15704
15705  is similar, but only the very first row of the paragraph is dynamic, while
15706  the others are static; this is used, for example, for descriptions.
15707 \end_layout
15708
15709 \begin_layout Description
15710 \begin_inset Flex Code
15711 status collapsed
15712
15713 \begin_layout Plain Layout
15714 Right_Address_Box
15715 \end_layout
15716
15717 \end_inset
15718
15719  means the margin is chosen in a way that the longest row of this paragraph
15720  fits to the right margin.
15721  This is used to typeset an address on the right edge of the page.
15722 \end_layout
15723
15724 \end_deeper
15725 \begin_layout Description
15726 \begin_inset Flex Code
15727 status collapsed
15728
15729 \begin_layout Plain Layout
15730 NeedProtect
15731 \end_layout
15732
15733 \end_inset
15734
15735  [
15736 \begin_inset Flex Code
15737 status collapsed
15738
15739 \begin_layout Plain Layout
15740
15741 \emph on
15742 0
15743 \end_layout
15744
15745 \end_inset
15746
15747 ,
15748 \begin_inset space \thinspace{}
15749 \end_inset
15750
15751
15752 \begin_inset Flex Code
15753 status collapsed
15754
15755 \begin_layout Plain Layout
15756 1
15757 \end_layout
15758
15759 \end_inset
15760
15761 ] Whether fragile commands in this style should be 
15762 \begin_inset Flex Code
15763 status collapsed
15764
15765 \begin_layout Plain Layout
15766
15767 \backslash
15768 protect
15769 \end_layout
15770
15771 \end_inset
15772
15773 'ed.
15774  (Note: This is 
15775 \emph on
15776 not
15777 \emph default
15778  whether this command should itself be protected.)
15779 \change_inserted -712698321 1523696949
15780
15781 \end_layout
15782
15783 \begin_layout Description
15784
15785 \change_inserted -712698321 1552395557
15786 \begin_inset Flex Code
15787 status collapsed
15788
15789 \begin_layout Plain Layout
15790
15791 \change_inserted -712698321 1523696950
15792 NeedCProtect
15793 \end_layout
15794
15795 \end_inset
15796
15797  [
15798 \begin_inset Flex Code
15799 status collapsed
15800
15801 \begin_layout Plain Layout
15802
15803 \change_inserted -712698321 1523696950
15804
15805 \emph on
15806 0
15807 \end_layout
15808
15809 \end_inset
15810
15811 ,
15812 \begin_inset space \thinspace{}
15813 \end_inset
15814
15815
15816 \begin_inset Flex Code
15817 status collapsed
15818
15819 \begin_layout Plain Layout
15820
15821 \change_inserted -712698321 1523696950
15822 1
15823 \end_layout
15824
15825 \end_inset
15826
15827 ] This causes macros that contain this layout to be protected with 
15828 \begin_inset Flex Code
15829 status collapsed
15830
15831 \begin_layout Plain Layout
15832
15833 \change_inserted -712698321 1523696950
15834
15835 \backslash
15836 cprotect
15837 \end_layout
15838
15839 \end_inset
15840
15841  (cf.
15842  package 
15843 \family sans
15844 cprotect
15845 \family default
15846 ) if necessary and thus allows (some) verbatim stuff in macros.
15847 \end_layout
15848
15849 \begin_layout Description
15850
15851 \change_inserted -712698321 1552395844
15852 \begin_inset Flex Code
15853 status collapsed
15854
15855 \begin_layout Plain Layout
15856
15857 \change_inserted -712698321 1552395561
15858 NeedMBoxProtect
15859 \end_layout
15860
15861 \end_inset
15862
15863  [
15864 \begin_inset Flex Code
15865 status collapsed
15866
15867 \begin_layout Plain Layout
15868
15869 \change_inserted -712698321 1552395557
15870
15871 \emph on
15872 0
15873 \end_layout
15874
15875 \end_inset
15876
15877 ,
15878 \begin_inset space \thinspace{}
15879 \end_inset
15880
15881
15882 \begin_inset Flex Code
15883 status collapsed
15884
15885 \begin_layout Plain Layout
15886
15887 \change_inserted -712698321 1552395557
15888 1
15889 \end_layout
15890
15891 \end_inset
15892
15893 ] Whether specific commands in this style (such as 
15894 \begin_inset Flex Code
15895 status collapsed
15896
15897 \begin_layout Plain Layout
15898
15899 \change_inserted -712698321 1552395655
15900
15901 \backslash
15902 cite
15903 \change_unchanged
15904
15905 \end_layout
15906
15907 \end_inset
15908
15909  and 
15910 \begin_inset Flex Code
15911 status collapsed
15912
15913 \begin_layout Plain Layout
15914
15915 \change_inserted -712698321 1552395661
15916
15917 \backslash
15918 ref
15919 \change_unchanged
15920
15921 \end_layout
15922
15923 \end_inset
15924
15925 ) should be protected in an 
15926 \begin_inset Flex Code
15927 status collapsed
15928
15929 \begin_layout Plain Layout
15930
15931 \change_inserted -712698321 1552395631
15932
15933 \backslash
15934 mbox
15935 \change_unchanged
15936
15937 \end_layout
15938
15939 \end_inset
15940
15941 .
15942  This is particularly needed for styles that draw on 
15943 \family sans
15944 ulem
15945 \family default
15946  or 
15947 \family sans
15948 soul
15949 \family default
15950  commands which parse their content in complex ways.
15951 \change_unchanged
15952
15953 \end_layout
15954
15955 \begin_layout Description
15956 \begin_inset Flex Code
15957 status collapsed
15958
15959 \begin_layout Plain Layout
15960 Newline
15961 \end_layout
15962
15963 \end_inset
15964
15965  [
15966 \begin_inset Flex Code
15967 status collapsed
15968
15969 \begin_layout Plain Layout
15970 0
15971 \end_layout
15972
15973 \end_inset
15974
15975 ,
15976 \begin_inset space \thinspace{}
15977 \end_inset
15978
15979
15980 \begin_inset Flex Code
15981 status collapsed
15982
15983 \begin_layout Plain Layout
15984
15985 \emph on
15986 1
15987 \end_layout
15988
15989 \end_inset
15990
15991 ] Whether newlines are translated into \SpecialChar LaTeX
15992  newlines (
15993 \begin_inset Flex Code
15994 status collapsed
15995
15996 \begin_layout Plain Layout
15997
15998 \backslash
15999
16000 \backslash
16001
16002 \end_layout
16003
16004 \end_inset
16005
16006 ) or not.
16007  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
16008  editing
16009  inside \SpecialChar LyX
16010 .
16011 \end_layout
16012
16013 \begin_layout Description
16014 \begin_inset Flex Code
16015 status collapsed
16016
16017 \begin_layout Plain Layout
16018 NextNoIndent
16019 \end_layout
16020
16021 \end_inset
16022
16023  [
16024 \begin_inset Flex Code
16025 status collapsed
16026
16027 \begin_layout Plain Layout
16028
16029 \emph on
16030 0
16031 \end_layout
16032
16033 \end_inset
16034
16035 ,
16036 \begin_inset space \thinspace{}
16037 \end_inset
16038
16039
16040 \begin_inset Flex Code
16041 status collapsed
16042
16043 \begin_layout Plain Layout
16044 1
16045 \end_layout
16046
16047 \end_inset
16048
16049 ] If set to true, and if 
16050 \begin_inset Flex Code
16051 status collapsed
16052
16053 \begin_layout Plain Layout
16054 DefaultStyle
16055 \end_layout
16056
16057 \end_inset
16058
16059  (usually 
16060 \begin_inset Flex Code
16061 status collapsed
16062
16063 \begin_layout Plain Layout
16064 Standard
16065 \end_layout
16066
16067 \end_inset
16068
16069 ) paragraphs are being indented, then the indentation of such a paragraph
16070  following one of this type will be suppressed.
16071  (So this will not affect the display of non-default paragraphs.)
16072 \end_layout
16073
16074 \begin_layout Description
16075 \begin_inset Flex Code
16076 status collapsed
16077
16078 \begin_layout Plain Layout
16079 ObsoletedBy
16080 \end_layout
16081
16082 \end_inset
16083
16084  [
16085 \begin_inset Flex Code
16086 status collapsed
16087
16088 \begin_layout Plain Layout
16089 <name>
16090 \end_layout
16091
16092 \end_inset
16093
16094 ] Name of a style that has replaced this style.
16095  This is used to rename a style, while keeping backward compatibility.
16096 \end_layout
16097
16098 \begin_layout Description
16099 \begin_inset Flex Code
16100 status collapsed
16101
16102 \begin_layout Plain Layout
16103 ParagraphGroup
16104 \end_layout
16105
16106 \end_inset
16107
16108  [
16109 \begin_inset Flex Code
16110 status collapsed
16111
16112 \begin_layout Plain Layout
16113 0
16114 \end_layout
16115
16116 \end_inset
16117
16118 ,
16119 \begin_inset space \thinspace{}
16120 \end_inset
16121
16122
16123 \begin_inset Flex Code
16124 status collapsed
16125
16126 \begin_layout Plain Layout
16127 1
16128 \end_layout
16129
16130 \end_inset
16131
16132 ] Determines whether consecutive paragraphs of the same type are treated
16133  as belonging together.
16134  This has the effect that the 
16135 \begin_inset Flex Code
16136 status collapsed
16137
16138 \begin_layout Plain Layout
16139 GuiLabel
16140 \end_layout
16141
16142 \end_inset
16143
16144  is only printed once before such a group.
16145  By default, this is true for 
16146 \begin_inset Flex Code
16147 status collapsed
16148
16149 \begin_layout Plain Layout
16150 LaTeXType
16151 \end_layout
16152
16153 \end_inset
16154
16155  
16156 \begin_inset Flex Code
16157 status collapsed
16158
16159 \begin_layout Plain Layout
16160 Environment
16161 \end_layout
16162
16163 \end_inset
16164
16165  and 
16166 \begin_inset Flex Code
16167 status collapsed
16168
16169 \begin_layout Plain Layout
16170 Bib_Environment
16171 \end_layout
16172
16173 \end_inset
16174
16175  and false for all other types.
16176 \end_layout
16177
16178 \begin_layout Description
16179 \begin_inset Flex Code
16180 status collapsed
16181
16182 \begin_layout Plain Layout
16183 ParbreakIsNewline
16184 \end_layout
16185
16186 \end_inset
16187
16188  [
16189 \begin_inset Flex Code
16190 status collapsed
16191
16192 \begin_layout Plain Layout
16193
16194 \emph on
16195 0
16196 \end_layout
16197
16198 \end_inset
16199
16200 ,
16201 \begin_inset space \thinspace{}
16202 \end_inset
16203
16204
16205 \begin_inset Flex Code
16206 status collapsed
16207
16208 \begin_layout Plain Layout
16209 1
16210 \end_layout
16211
16212 \end_inset
16213
16214 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16215  output,
16216  but only by a line break; together with 
16217 \begin_inset Flex Code
16218 status collapsed
16219
16220 \begin_layout Plain Layout
16221 PassThru 1
16222 \end_layout
16223
16224 \end_inset
16225
16226 , this allows to emulate a plain text editor (like the ERT inset).
16227 \end_layout
16228
16229 \begin_layout Description
16230 \begin_inset Flex Code
16231 status collapsed
16232
16233 \begin_layout Plain Layout
16234 ParIndent
16235 \end_layout
16236
16237 \end_inset
16238
16239  [
16240 \begin_inset Flex Code
16241 status collapsed
16242
16243 \begin_layout Plain Layout
16244 string=""
16245 \end_layout
16246
16247 \end_inset
16248
16249 ] The indent of the very first line of a paragraph.
16250  The
16251 \begin_inset Newline newline
16252 \end_inset
16253
16254
16255 \begin_inset Flex Code
16256 status collapsed
16257
16258 \begin_layout Plain Layout
16259 Parindent
16260 \end_layout
16261
16262 \end_inset
16263
16264  will be fixed for a certain style.
16265  The exception is the default style, since the indentation for these paragraphs
16266  can be prohibited with 
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  Also, 
16278 \begin_inset Flex Code
16279 status collapsed
16280
16281 \begin_layout Plain Layout
16282 Standard
16283 \end_layout
16284
16285 \end_inset
16286
16287  style paragraphs inside environments use the 
16288 \begin_inset Flex Code
16289 status collapsed
16290
16291 \begin_layout Plain Layout
16292 Parindent
16293 \end_layout
16294
16295 \end_inset
16296
16297  of the environment, not their native one.
16298  For example, 
16299 \begin_inset Flex Code
16300 status collapsed
16301
16302 \begin_layout Plain Layout
16303 Standard
16304 \end_layout
16305
16306 \end_inset
16307
16308  paragraphs inside an enumeration are not indented.
16309 \end_layout
16310
16311 \begin_layout Description
16312 \begin_inset Flex Code
16313 status collapsed
16314
16315 \begin_layout Plain Layout
16316 ParSep
16317 \end_layout
16318
16319 \end_inset
16320
16321  [
16322 \begin_inset Flex Code
16323 status collapsed
16324
16325 \begin_layout Plain Layout
16326 float=0
16327 \end_layout
16328
16329 \end_inset
16330
16331 ] The vertical space between two paragraphs of this style.
16332 \end_layout
16333
16334 \begin_layout Description
16335 \begin_inset Flex Code
16336 status collapsed
16337
16338 \begin_layout Plain Layout
16339 Parskip
16340 \end_layout
16341
16342 \end_inset
16343
16344  [
16345 \begin_inset Flex Code
16346 status collapsed
16347
16348 \begin_layout Plain Layout
16349 float=0
16350 \end_layout
16351
16352 \end_inset
16353
16354 ] \SpecialChar LyX
16355  allows the user to choose either 
16356 \begin_inset Quotes eld
16357 \end_inset
16358
16359 indent
16360 \begin_inset Quotes erd
16361 \end_inset
16362
16363  or 
16364 \begin_inset Quotes eld
16365 \end_inset
16366
16367 skip
16368 \begin_inset Quotes erd
16369 \end_inset
16370
16371  to separate paragraphs.
16372  When 
16373 \begin_inset Quotes eld
16374 \end_inset
16375
16376 indent
16377 \begin_inset Quotes erd
16378 \end_inset
16379
16380  is chosen, 
16381 \begin_inset Flex Code
16382 status collapsed
16383
16384 \begin_layout Plain Layout
16385 Parskip
16386 \end_layout
16387
16388 \end_inset
16389
16390  is ignored.
16391  When 
16392 \begin_inset Quotes eld
16393 \end_inset
16394
16395 skip
16396 \begin_inset Quotes erd
16397 \end_inset
16398
16399  is chosen, 
16400 \begin_inset Flex Code
16401 status collapsed
16402
16403 \begin_layout Plain Layout
16404 ParIndent
16405 \end_layout
16406
16407 \end_inset
16408
16409  is ignored and all paragraphs are separated by the 
16410 \begin_inset Flex Code
16411 status collapsed
16412
16413 \begin_layout Plain Layout
16414 Parskip
16415 \end_layout
16416
16417 \end_inset
16418
16419  argument.
16420  The vertical space is calculated with 
16421 \begin_inset Flex Code
16422 status collapsed
16423
16424 \begin_layout Plain Layout
16425 Parskip
16426 \begin_inset space ~
16427 \end_inset
16428
16429 * DefaultHeight
16430 \end_layout
16431
16432 \end_inset
16433
16434  where 
16435 \begin_inset Flex Code
16436 status collapsed
16437
16438 \begin_layout Plain Layout
16439 DefaultHeight
16440 \end_layout
16441
16442 \end_inset
16443
16444  is the height of a row with the normal font.
16445  This way, the look stays the same with different screen fonts.
16446 \end_layout
16447
16448 \begin_layout Description
16449 \begin_inset Flex Code
16450 status collapsed
16451
16452 \begin_layout Plain Layout
16453 PassThru
16454 \end_layout
16455
16456 \end_inset
16457
16458  [
16459 \begin_inset Flex Code
16460 status collapsed
16461
16462 \begin_layout Plain Layout
16463
16464 \emph on
16465 0
16466 \end_layout
16467
16468 \end_inset
16469
16470 ,
16471 \begin_inset space \thinspace{}
16472 \end_inset
16473
16474
16475 \begin_inset Flex Code
16476 status collapsed
16477
16478 \begin_layout Plain Layout
16479 1
16480 \end_layout
16481
16482 \end_inset
16483
16484 ] Whether the contents of this paragraph should be output in raw form, meaning
16485  without special translations that \SpecialChar LaTeX
16486  would require.
16487 \end_layout
16488
16489 \begin_layout Description
16490 \begin_inset Flex Code
16491 status collapsed
16492
16493 \begin_layout Plain Layout
16494 PassThruChars
16495 \end_layout
16496
16497 \end_inset
16498
16499  [
16500 \begin_inset Flex Code
16501 status collapsed
16502
16503 \begin_layout Plain Layout
16504 string
16505 \end_layout
16506
16507 \end_inset
16508
16509 ]
16510 \family typewriter
16511  
16512 \family default
16513 Defines individual characters that should be output in raw form, meaning
16514  without special translations that \SpecialChar LaTeX
16515  would require.
16516 \end_layout
16517
16518 \begin_layout Description
16519 \begin_inset Flex Code
16520 status collapsed
16521
16522 \begin_layout Plain Layout
16523 Preamble
16524 \end_layout
16525
16526 \end_inset
16527
16528  Information to be included in the \SpecialChar LaTeX
16529  preamble when this style is used.
16530  Used to define macros, load packages, etc., required by this particular
16531  style.
16532  Must end with 
16533 \begin_inset Quotes eld
16534 \end_inset
16535
16536
16537 \begin_inset Flex Code
16538 status collapsed
16539
16540 \begin_layout Plain Layout
16541 EndPreamble
16542 \end_layout
16543
16544 \end_inset
16545
16546
16547 \begin_inset Quotes erd
16548 \end_inset
16549
16550 .
16551 \end_layout
16552
16553 \begin_layout Description
16554 \begin_inset Flex Code
16555 status collapsed
16556
16557 \begin_layout Plain Layout
16558 RefPrefix
16559 \end_layout
16560
16561 \end_inset
16562
16563  [
16564 \begin_inset Flex Code
16565 status collapsed
16566
16567 \begin_layout Plain Layout
16568 string
16569 \end_layout
16570
16571 \end_inset
16572
16573 ] The prefix to use when creating labels referring to paragraphs of this
16574  type.
16575  This allows the use of formatted references.
16576 \end_layout
16577
16578 \begin_layout Description
16579 \begin_inset Flex Code
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583 Requires 
16584 \end_layout
16585
16586 \end_inset
16587
16588  [
16589 \begin_inset Flex Code
16590 status collapsed
16591
16592 \begin_layout Plain Layout
16593 string
16594 \end_layout
16595
16596 \end_inset
16597
16598 ] Whether the style requires the feature 
16599 \begin_inset Flex Code
16600 status collapsed
16601
16602 \begin_layout Plain Layout
16603 string
16604 \end_layout
16605
16606 \end_inset
16607
16608  (see 
16609 \begin_inset CommandInset ref
16610 LatexCommand ref
16611 reference "chap:List-of-functions"
16612
16613 \end_inset
16614
16615  for the list of features).
16616  If you require a package with specific options, you can additionally use
16617  
16618 \begin_inset Flex Code
16619 status collapsed
16620
16621 \begin_layout Plain Layout
16622 PackageOptions
16623 \end_layout
16624
16625 \end_inset
16626
16627  as a general text class parameter (see 
16628 \begin_inset CommandInset ref
16629 LatexCommand ref
16630 reference "subsec:General-text-class"
16631
16632 \end_inset
16633
16634 ).
16635 \end_layout
16636
16637 \begin_layout Description
16638 \begin_inset Flex Code
16639 status collapsed
16640
16641 \begin_layout Plain Layout
16642 ResetArgs
16643 \end_layout
16644
16645 \end_inset
16646
16647  [
16648 \begin_inset Flex Code
16649 status collapsed
16650
16651 \begin_layout Plain Layout
16652
16653 \emph on
16654 0
16655 \end_layout
16656
16657 \end_inset
16658
16659 ,
16660 \begin_inset Flex Code
16661 status collapsed
16662
16663 \begin_layout Plain Layout
16664 1
16665 \end_layout
16666
16667 \end_inset
16668
16669 ] Resets the \SpecialChar LaTeX
16670  arguments of this style (as defined via the 
16671 \begin_inset Flex Code
16672 status collapsed
16673
16674 \begin_layout Plain Layout
16675 Argument
16676 \end_layout
16677
16678 \end_inset
16679
16680  tag).
16681  This is useful if you have copied a style via 
16682 \begin_inset Flex Code
16683 status collapsed
16684
16685 \begin_layout Plain Layout
16686 CopyStyle
16687 \end_layout
16688
16689 \end_inset
16690
16691 , but you do not want to inherit its (required and optional) arguments.
16692 \end_layout
16693
16694 \begin_layout Description
16695 \begin_inset Flex Code
16696 status collapsed
16697
16698 \begin_layout Plain Layout
16699 ResumeCounter
16700 \end_layout
16701
16702 \end_inset
16703
16704  [
16705 \begin_inset Flex Code
16706 status collapsed
16707
16708 \begin_layout Plain Layout
16709
16710 \emph on
16711 0
16712 \end_layout
16713
16714 \end_inset
16715
16716 ,
16717 \begin_inset Flex Code
16718 status collapsed
16719
16720 \begin_layout Plain Layout
16721 1
16722 \end_layout
16723
16724 \end_inset
16725
16726 ] Resumes a counter that is usually reset at each new sequence of layouts.
16727  This is currently only useful when 
16728 \begin_inset Flex Code
16729 status collapsed
16730
16731 \begin_layout Plain Layout
16732 LabelType
16733 \end_layout
16734
16735 \end_inset
16736
16737  is 
16738 \begin_inset Flex Code
16739 status collapsed
16740
16741 \begin_layout Plain Layout
16742 Enumerate
16743 \end_layout
16744
16745 \end_inset
16746
16747 .
16748 \end_layout
16749
16750 \begin_layout Description
16751 \begin_inset Flex Code
16752 status collapsed
16753
16754 \begin_layout Plain Layout
16755 RightDelim
16756 \end_layout
16757
16758 \end_inset
16759
16760  [
16761 \begin_inset Flex Code
16762 status collapsed
16763
16764 \begin_layout Plain Layout
16765 string
16766 \end_layout
16767
16768 \end_inset
16769
16770 ] A string that is put at the end of the layout content.
16771  A line break in the output can be indicated by 
16772 \begin_inset Flex Code
16773 status collapsed
16774
16775 \begin_layout Plain Layout
16776 <br/>
16777 \end_layout
16778
16779 \end_inset
16780
16781 .
16782 \end_layout
16783
16784 \begin_layout Description
16785 \begin_inset Flex Code
16786 status collapsed
16787
16788 \begin_layout Plain Layout
16789 RightMargin
16790 \end_layout
16791
16792 \end_inset
16793
16794  [
16795 \begin_inset Flex Code
16796 status collapsed
16797
16798 \begin_layout Plain Layout
16799 string=""
16800 \end_layout
16801
16802 \end_inset
16803
16804 ] Similar to 
16805 \begin_inset Flex Code
16806 status collapsed
16807
16808 \begin_layout Plain Layout
16809 LeftMargin
16810 \end_layout
16811
16812 \end_inset
16813
16814 .
16815 \end_layout
16816
16817 \begin_layout Description
16818 \begin_inset Flex Code
16819 status collapsed
16820
16821 \begin_layout Plain Layout
16822 Spacing
16823 \end_layout
16824
16825 \end_inset
16826
16827  [
16828 \begin_inset Flex Code
16829 status collapsed
16830
16831 \begin_layout Plain Layout
16832
16833 \emph on
16834 single
16835 \end_layout
16836
16837 \end_inset
16838
16839
16840 \begin_inset Flex Code
16841 status collapsed
16842
16843 \begin_layout Plain Layout
16844 onehalf
16845 \end_layout
16846
16847 \end_inset
16848
16849
16850 \begin_inset Flex Code
16851 status collapsed
16852
16853 \begin_layout Plain Layout
16854 double
16855 \end_layout
16856
16857 \end_inset
16858
16859
16860 \begin_inset Flex Code
16861 status collapsed
16862
16863 \begin_layout Plain Layout
16864 other
16865 \begin_inset space ~
16866 \end_inset
16867
16868 <value>
16869 \end_layout
16870
16871 \end_inset
16872
16873 ] This defines what the default spacing should be in the style.
16874  The arguments 
16875 \begin_inset Flex Code
16876 status collapsed
16877
16878 \begin_layout Plain Layout
16879 single
16880 \end_layout
16881
16882 \end_inset
16883
16884
16885 \begin_inset Flex Code
16886 status collapsed
16887
16888 \begin_layout Plain Layout
16889 onehalf
16890 \end_layout
16891
16892 \end_inset
16893
16894  and 
16895 \begin_inset Flex Code
16896 status collapsed
16897
16898 \begin_layout Plain Layout
16899 double
16900 \end_layout
16901
16902 \end_inset
16903
16904  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16905  If you specify the argument 
16906 \begin_inset Flex Code
16907 status collapsed
16908
16909 \begin_layout Plain Layout
16910 other
16911 \end_layout
16912
16913 \end_inset
16914
16915 , then you must also provide a value argument which will be the actual multiplie
16916 r value.
16917  Note that, contrary to other parameters, 
16918 \begin_inset Flex Code
16919 status collapsed
16920
16921 \begin_layout Plain Layout
16922 Spacing
16923 \end_layout
16924
16925 \end_inset
16926
16927  implies the generation of specific \SpecialChar LaTeX
16928  code, using the \SpecialChar LaTeX
16929  package 
16930 \family roman
16931
16932 \begin_inset Flex Code
16933 status collapsed
16934
16935 \begin_layout Plain Layout
16936 setspace
16937 \end_layout
16938
16939 \end_inset
16940
16941 .
16942 \end_layout
16943
16944 \begin_layout Description
16945 \begin_inset Flex Code
16946 status collapsed
16947
16948 \begin_layout Plain Layout
16949 Spellcheck
16950 \end_layout
16951
16952 \end_inset
16953
16954  [
16955 \begin_inset Flex Code
16956 status collapsed
16957
16958 \begin_layout Plain Layout
16959 0
16960 \end_layout
16961
16962 \end_inset
16963
16964 ,
16965 \begin_inset space \thinspace{}
16966 \end_inset
16967
16968
16969 \begin_inset Flex Code
16970 status collapsed
16971
16972 \begin_layout Plain Layout
16973
16974 \emph on
16975 1
16976 \end_layout
16977
16978 \end_inset
16979
16980 ] Allow spell-checking paragraphs of this style.
16981  Default is true.
16982 \end_layout
16983
16984 \begin_layout Description
16985 \begin_inset Flex Code
16986 status collapsed
16987
16988 \begin_layout Plain Layout
16989 StepMasterCounter
16990 \end_layout
16991
16992 \end_inset
16993
16994  [
16995 \begin_inset Flex Code
16996 status collapsed
16997
16998 \begin_layout Plain Layout
16999
17000 \emph on
17001 0
17002 \end_layout
17003
17004 \end_inset
17005
17006 ,
17007 \begin_inset Flex Code
17008 status collapsed
17009
17010 \begin_layout Plain Layout
17011 1
17012 \end_layout
17013
17014 \end_inset
17015
17016 ] Steps the master counter of a given counter at the beginning of a new
17017  sequence of layouts.
17018  This is currently only useful when 
17019 \begin_inset Flex Code
17020 status collapsed
17021
17022 \begin_layout Plain Layout
17023 LabelType
17024 \end_layout
17025
17026 \end_inset
17027
17028  is 
17029 \begin_inset Flex Code
17030 status collapsed
17031
17032 \begin_layout Plain Layout
17033 Enumerate
17034 \end_layout
17035
17036 \end_inset
17037
17038 .
17039 \end_layout
17040
17041 \begin_layout Description
17042 \begin_inset Flex Code
17043 status collapsed
17044
17045 \begin_layout Plain Layout
17046 TextFont
17047 \end_layout
17048
17049 \end_inset
17050
17051  The font used for the text body .
17052  See 
17053 \begin_inset CommandInset ref
17054 LatexCommand ref
17055 reference "subsec:Font-description"
17056
17057 \end_inset
17058
17059 .
17060 \end_layout
17061
17062 \begin_layout Description
17063 \begin_inset Flex Code
17064 status collapsed
17065
17066 \begin_layout Plain Layout
17067 TocLevel
17068 \end_layout
17069
17070 \end_inset
17071
17072
17073 \series medium
17074  [
17075 \begin_inset Flex Code
17076 status collapsed
17077
17078 \begin_layout Plain Layout
17079
17080 \series medium
17081 int=3
17082 \end_layout
17083
17084 \end_inset
17085
17086 ]
17087 \series default
17088  The level of the style in the table of contents.
17089  This is used for automatic numbering of section headings.
17090 \end_layout
17091
17092 \begin_layout Description
17093 \begin_inset Flex Code
17094 status collapsed
17095
17096 \begin_layout Plain Layout
17097 ToggleIndent
17098 \end_layout
17099
17100 \end_inset
17101
17102  [
17103 \emph on
17104
17105 \begin_inset Flex Code
17106 status collapsed
17107
17108 \begin_layout Plain Layout
17109
17110 \emph on
17111 default
17112 \end_layout
17113
17114 \end_inset
17115
17116
17117 \emph default
17118
17119 \begin_inset Flex Code
17120 status collapsed
17121
17122 \begin_layout Plain Layout
17123 always
17124 \end_layout
17125
17126 \end_inset
17127
17128
17129 \begin_inset Flex Code
17130 status collapsed
17131
17132 \begin_layout Plain Layout
17133 never
17134 \end_layout
17135
17136 \end_inset
17137
17138 ] This tag determines whether the first line indentation of this paragraph
17139  can be toggled via the Paragraph settings dialog.
17140  If 
17141 \emph on
17142
17143 \begin_inset Flex Code
17144 status collapsed
17145
17146 \begin_layout Plain Layout
17147
17148 \emph off
17149 default
17150 \end_layout
17151
17152 \end_inset
17153
17154
17155 \emph default
17156  is set, indentation can be toggled if the document settings use 
17157 \begin_inset Quotes eld
17158 \end_inset
17159
17160 indent
17161 \begin_inset Quotes erd
17162 \end_inset
17163
17164  paragraph style, with 
17165 \begin_inset Flex Code
17166 status collapsed
17167
17168 \begin_layout Plain Layout
17169 always
17170 \end_layout
17171
17172 \end_inset
17173
17174 , indentation can always be toggled, notwithstanding the document settings,
17175  with 
17176 \begin_inset Flex Code
17177 status collapsed
17178
17179 \begin_layout Plain Layout
17180 never
17181 \end_layout
17182
17183 \end_inset
17184
17185 , indentation can never be toggled.
17186 \end_layout
17187
17188 \begin_layout Description
17189 \begin_inset Flex Code
17190 status collapsed
17191
17192 \begin_layout Plain Layout
17193 TopSep
17194 \end_layout
17195
17196 \end_inset
17197
17198  [
17199 \begin_inset Flex Code
17200 status collapsed
17201
17202 \begin_layout Plain Layout
17203 float=0
17204 \end_layout
17205
17206 \end_inset
17207
17208 ] The vertical space with which the very first of a chain of paragraphs
17209  with this style is separated from the previous paragraph.
17210  If the previous paragraph has another style, the separations are not simply
17211  added, but the maximum is taken.
17212 \end_layout
17213
17214 \begin_layout Subsection
17215 \begin_inset CommandInset label
17216 LatexCommand label
17217 name "subsec:I18n"
17218
17219 \end_inset
17220
17221 Internationalization of Paragraph Styles
17222 \end_layout
17223
17224 \begin_layout Standard
17225 \SpecialChar LyX
17226  has long supported internationalization of layout information, but, until
17227  version 2.0, this applied only to the user interface and not to, say, PDF
17228  output.
17229  Thus, French authors were forced to resort to ugly hacks if they wanted
17230  `
17231 \lang french
17232 Théorème
17233 \lang english
17234  1' instead of `Theorem 1'.
17235  Thanks to Georg Baum, that is no longer the case.
17236 \end_layout
17237
17238 \begin_layout Standard
17239 If a 
17240 \begin_inset Flex Code
17241 status collapsed
17242
17243 \begin_layout Plain Layout
17244 Style
17245 \end_layout
17246
17247 \end_inset
17248
17249  defines text that is to appear in the typeset document, it may use 
17250 \begin_inset Flex Code
17251 status collapsed
17252
17253 \begin_layout Plain Layout
17254 LangPreamble
17255 \end_layout
17256
17257 \end_inset
17258
17259  and 
17260 \begin_inset Flex Code
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264 BabelPreamble
17265 \end_layout
17266
17267 \end_inset
17268
17269  to support non-English and even multi-language documents correctly.
17270  The following excerpt (from the 
17271 \begin_inset Flex Code
17272 status collapsed
17273
17274 \begin_layout Plain Layout
17275 theorems-ams.inc
17276 \end_layout
17277
17278 \end_inset
17279
17280  file) shows how this works:
17281 \end_layout
17282
17283 \begin_layout LyX-Code
17284 Preamble
17285 \end_layout
17286
17287 \begin_deeper
17288 \begin_layout LyX-Code
17289   
17290 \backslash
17291 theoremstyle{remark}
17292 \end_layout
17293
17294 \begin_layout LyX-Code
17295   
17296 \backslash
17297 newtheorem{claim}[thm]{
17298 \backslash
17299 protect
17300 \backslash
17301 claimname}
17302 \end_layout
17303
17304 \begin_layout LyX-Code
17305 EndPreamble
17306 \end_layout
17307
17308 \begin_layout LyX-Code
17309 LangPreamble
17310 \end_layout
17311
17312 \begin_layout LyX-Code
17313   
17314 \backslash
17315 providecommand{
17316 \backslash
17317 claimname}{_(Claim)}
17318 \end_layout
17319
17320 \begin_layout LyX-Code
17321 EndLangPreamble
17322 \end_layout
17323
17324 \begin_layout LyX-Code
17325 BabelPreamble
17326 \end_layout
17327
17328 \begin_layout LyX-Code
17329     
17330 \backslash
17331 addto
17332 \backslash
17333 captions$$lang{
17334 \backslash
17335 renewcommand{
17336 \backslash
17337 claimname}{_(Claim)}}
17338 \end_layout
17339
17340 \begin_layout LyX-Code
17341 EndBabelPreamble
17342 \end_layout
17343
17344 \end_deeper
17345 \begin_layout Standard
17346 In principle, any legal \SpecialChar LaTeX
17347  may appear in the 
17348 \begin_inset Flex Code
17349 status collapsed
17350
17351 \begin_layout Plain Layout
17352 LangPreamble
17353 \end_layout
17354
17355 \end_inset
17356
17357  and 
17358 \begin_inset Flex Code
17359 status collapsed
17360
17361 \begin_layout Plain Layout
17362 BabelPreamble
17363 \end_layout
17364
17365 \end_inset
17366
17367  tags, but in practice they will typically look as they do here.
17368  The key to correct translation of the typeset text is the definition of
17369  the \SpecialChar LaTeX
17370  command 
17371 \begin_inset Flex Code
17372 status collapsed
17373
17374 \begin_layout Plain Layout
17375
17376 \backslash
17377 claimname
17378 \end_layout
17379
17380 \end_inset
17381
17382  and its use in 
17383 \begin_inset Flex Code
17384 status collapsed
17385
17386 \begin_layout Plain Layout
17387
17388 \backslash
17389 newtheorem
17390 \end_layout
17391
17392 \end_inset
17393
17394 .
17395  
17396 \end_layout
17397
17398 \begin_layout Standard
17399 The 
17400 \begin_inset Flex Code
17401 status collapsed
17402
17403 \begin_layout Plain Layout
17404 LangPreamble
17405 \end_layout
17406
17407 \end_inset
17408
17409  tag provides for internationalization based upon the overall language of
17410  the document.
17411  The contents of the tag will be included in the preamble, just as with
17412  the 
17413 \begin_inset Flex Code
17414 status collapsed
17415
17416 \begin_layout Plain Layout
17417 Preamble
17418 \end_layout
17419
17420 \end_inset
17421
17422  tag.
17423  What makes it special is the use of the 
17424 \begin_inset Quotes eld
17425 \end_inset
17426
17427 function
17428 \begin_inset Quotes erd
17429 \end_inset
17430
17431  
17432 \begin_inset Flex Code
17433 status collapsed
17434
17435 \begin_layout Plain Layout
17436 _()
17437 \end_layout
17438
17439 \end_inset
17440
17441 , which will be replaced, when \SpecialChar LyX
17442  produces \SpecialChar LaTeX
17443  output, with the translation of
17444  its argument into the document language.
17445 \end_layout
17446
17447 \begin_layout Standard
17448 The 
17449 \begin_inset Flex Code
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453 BabelPreamble
17454 \end_layout
17455
17456 \end_inset
17457
17458  tag is more complex, since it is meant to provide support for multi-language
17459  documents and so offers an interface to the 
17460 \begin_inset Flex Code
17461 status collapsed
17462
17463 \begin_layout Plain Layout
17464 babel
17465 \end_layout
17466
17467 \end_inset
17468
17469  package.
17470  Its contents will be added to the preamble once for each language that
17471  appears in the document.
17472  In this case, the argument to 
17473 \begin_inset Flex Code
17474 status collapsed
17475
17476 \begin_layout Plain Layout
17477 _()
17478 \end_layout
17479
17480 \end_inset
17481
17482  will be replaced with its translation into the language in question; the
17483  expression 
17484 \begin_inset Flex Code
17485 status collapsed
17486
17487 \begin_layout Plain Layout
17488 $$lang
17489 \end_layout
17490
17491 \end_inset
17492
17493  is replaced by the language name (as used by the babel package).
17494 \end_layout
17495
17496 \begin_layout Standard
17497 A German document that also included a French section would thus have the
17498  following in the preamble:
17499 \end_layout
17500
17501 \begin_layout LyX-Code
17502
17503 \backslash
17504 addto
17505 \backslash
17506 captionsfrench{
17507 \backslash
17508 renewcommand{
17509 \backslash
17510 claimname}{Affirmation}}
17511 \begin_inset Newline newline
17512 \end_inset
17513
17514
17515 \backslash
17516 addto
17517 \backslash
17518 captionsngerman{
17519 \backslash
17520 renewcommand{
17521 \backslash
17522 claimname}{Behauptung}}
17523 \begin_inset Newline newline
17524 \end_inset
17525
17526
17527 \backslash
17528 providecommand{
17529 \backslash
17530 claimname}{Behauptung}
17531 \end_layout
17532
17533 \begin_layout Standard
17534 \SpecialChar LaTeX
17535  and 
17536 \begin_inset Flex Code
17537 status collapsed
17538
17539 \begin_layout Plain Layout
17540 babel
17541 \end_layout
17542
17543 \end_inset
17544
17545  will then conspire to produce the correct text in the output.
17546 \end_layout
17547
17548 \begin_layout Standard
17549 One important point to note here is that the translations are provided by
17550  \SpecialChar LyX
17551  itself, through the file 
17552 \begin_inset Flex Code
17553 status collapsed
17554
17555 \begin_layout Plain Layout
17556 layouttranslations
17557 \end_layout
17558
17559 \end_inset
17560
17561 .
17562  This means, in effect, that 
17563 \begin_inset Flex Code
17564 status collapsed
17565
17566 \begin_layout Plain Layout
17567 LangPreamble
17568 \end_layout
17569
17570 \end_inset
17571
17572  and 
17573 \begin_inset Flex Code
17574 status collapsed
17575
17576 \begin_layout Plain Layout
17577 BabelPreamble
17578 \end_layout
17579
17580 \end_inset
17581
17582  are really only of use in layout files that are provided with \SpecialChar LyX
17583 , since text
17584  entered in user-created layout files will not be seen by \SpecialChar LyX
17585 's internationalizatio
17586 n routines unless the 
17587 \begin_inset Flex Code
17588 status collapsed
17589
17590 \begin_layout Plain Layout
17591 layouttranslations
17592 \end_layout
17593
17594 \end_inset
17595
17596  file is modified accordingly.
17597  That said, however, any layout created with the intention that it will
17598  be included with \SpecialChar LyX
17599  should use these tags where appropriate.
17600  Please note that the paragraph style translations provided by \SpecialChar LyX
17601  will never
17602  change with a minor update (e.
17603 \begin_inset space \thinspace{}
17604 \end_inset
17605
17606 g.
17607 \begin_inset space \space{}
17608 \end_inset
17609
17610 from version 2.1.x to 2.1.y).
17611  It is however quite likely that a major update (e.
17612 \begin_inset space \thinspace{}
17613 \end_inset
17614
17615 g.
17616 \begin_inset space \space{}
17617 \end_inset
17618
17619 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17620 \end_layout
17621
17622 \begin_layout Subsection
17623 Floats
17624 \begin_inset CommandInset label
17625 LatexCommand label
17626 name "subsec:Floats"
17627
17628 \end_inset
17629
17630
17631 \end_layout
17632
17633 \begin_layout Standard
17634 It is necessary to define the floats (
17635 \begin_inset Flex Noun
17636 status collapsed
17637
17638 \begin_layout Plain Layout
17639 figure
17640 \end_layout
17641
17642 \end_inset
17643
17644
17645 \begin_inset Flex Noun
17646 status collapsed
17647
17648 \begin_layout Plain Layout
17649 table
17650 \end_layout
17651
17652 \end_inset
17653
17654 , \SpecialChar ldots
17655 ) in the text class itself.
17656  Standard floats are included in the file 
17657 \begin_inset Flex Code
17658 status collapsed
17659
17660 \begin_layout Plain Layout
17661 stdfloats.inc
17662 \end_layout
17663
17664 \end_inset
17665
17666 , so you may have to do no more than add
17667 \end_layout
17668
17669 \begin_layout LyX-Code
17670 Input stdfloats.inc
17671 \end_layout
17672
17673 \begin_layout Standard
17674 to your layout file.
17675  If you want to implement a text class that proposes some other float types
17676  (like the AGU class bundled with \SpecialChar LyX
17677 ), the information below will hopefully
17678  help you:
17679 \end_layout
17680
17681 \begin_layout Description
17682 \begin_inset Flex Code
17683 status collapsed
17684
17685 \begin_layout Plain Layout
17686 AllowedPlacement
17687 \end_layout
17688
17689 \end_inset
17690
17691  [
17692 \begin_inset Flex Code
17693 status collapsed
17694
17695 \begin_layout Plain Layout
17696 string
17697 \end_layout
17698
17699 \end_inset
17700
17701 =!htbpH] Allowed placement options for this float type.
17702  The value is a string of placement characters.
17703  Possible characters include: 
17704 \emph on
17705 h
17706 \emph default
17707  (
17708 \begin_inset Quotes eld
17709 \end_inset
17710
17711 here if possible
17712 \begin_inset Quotes erd
17713 \end_inset
17714
17715 ), 
17716 \emph on
17717 t
17718 \emph default
17719  (
17720 \begin_inset Quotes eld
17721 \end_inset
17722
17723 top of page
17724 \begin_inset Quotes erd
17725 \end_inset
17726
17727 ), 
17728 \emph on
17729 b
17730 \emph default
17731  (
17732 \begin_inset Quotes eld
17733 \end_inset
17734
17735 bottom of page
17736 \begin_inset Quotes erd
17737 \end_inset
17738
17739 ), 
17740 \emph on
17741 p
17742 \emph default
17743  (
17744 \begin_inset Quotes eld
17745 \end_inset
17746
17747 page of floats
17748 \begin_inset Quotes erd
17749 \end_inset
17750
17751 ), 
17752 \emph on
17753 H
17754 \emph default
17755  (
17756 \begin_inset Quotes eld
17757 \end_inset
17758
17759 here definitely
17760 \begin_inset Quotes erd
17761 \end_inset
17762
17763 ) and 
17764 \emph on
17765 !
17766 \emph default
17767  (
17768 \begin_inset Quotes eld
17769 \end_inset
17770
17771 ignore LaTeX rules
17772 \begin_inset Quotes erd
17773 \end_inset
17774
17775 ).
17776  The order of the characters in the string does not matter.
17777  If no placement options are allowed, use the string 
17778 \emph on
17779 none
17780 \emph default
17781 .
17782 \end_layout
17783
17784 \begin_layout Description
17785 \begin_inset Flex Code
17786 status collapsed
17787
17788 \begin_layout Plain Layout
17789 AllowsSideways
17790 \end_layout
17791
17792 \end_inset
17793
17794  [
17795 \begin_inset Flex Code
17796 status collapsed
17797
17798 \begin_layout Plain Layout
17799
17800 \emph off
17801 0
17802 \end_layout
17803
17804 \end_inset
17805
17806 ,
17807 \begin_inset space \thinspace{}
17808 \end_inset
17809
17810
17811 \emph on
17812
17813 \begin_inset Flex Code
17814 status collapsed
17815
17816 \begin_layout Plain Layout
17817
17818 \emph on
17819 1
17820 \end_layout
17821
17822 \end_inset
17823
17824
17825 \emph default
17826 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17827 -package 
17828 \family typewriter
17829 rotfloat
17830 \family default
17831  (sidewaysfloat).
17832  Set to 
17833 \begin_inset Flex Code
17834 status collapsed
17835
17836 \begin_layout Plain Layout
17837 0
17838 \end_layout
17839
17840 \end_inset
17841
17842  if the float does not support this feature.
17843 \end_layout
17844
17845 \begin_layout Description
17846 \begin_inset Flex Code
17847 status collapsed
17848
17849 \begin_layout Plain Layout
17850 AllowsWide
17851 \end_layout
17852
17853 \end_inset
17854
17855  [
17856 \begin_inset Flex Code
17857 status collapsed
17858
17859 \begin_layout Plain Layout
17860
17861 \emph off
17862 0
17863 \end_layout
17864
17865 \end_inset
17866
17867 ,
17868 \begin_inset space \thinspace{}
17869 \end_inset
17870
17871
17872 \emph on
17873
17874 \begin_inset Flex Code
17875 status collapsed
17876
17877 \begin_layout Plain Layout
17878
17879 \emph on
17880 1
17881 \end_layout
17882
17883 \end_inset
17884
17885
17886 \emph default
17887 ] Defines whether the float has a starred variant that spans columns in
17888  a two column paragraph.
17889  Set to 
17890 \begin_inset Flex Code
17891 status collapsed
17892
17893 \begin_layout Plain Layout
17894 0
17895 \end_layout
17896
17897 \end_inset
17898
17899  if the float does not support this feature.
17900 \end_layout
17901
17902 \begin_layout Description
17903 \begin_inset Flex Code
17904 status collapsed
17905
17906 \begin_layout Plain Layout
17907 Extension
17908 \end_layout
17909
17910 \end_inset
17911
17912  [
17913 \begin_inset Flex Code
17914 status collapsed
17915
17916 \begin_layout Plain Layout
17917 string
17918 \end_layout
17919
17920 \end_inset
17921
17922 =
17923 \begin_inset Quotes erd
17924 \end_inset
17925
17926
17927 \begin_inset Quotes erd
17928 \end_inset
17929
17930 ] The file name extension of an auxiliary file for the list of figures (or
17931  whatever).
17932  \SpecialChar LaTeX
17933  writes the captions to this file.
17934 \end_layout
17935
17936 \begin_layout Description
17937 \begin_inset Flex Code
17938 status collapsed
17939
17940 \begin_layout Plain Layout
17941 GuiName
17942 \end_layout
17943
17944 \end_inset
17945
17946  [
17947 \begin_inset Flex Code
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951 string
17952 \end_layout
17953
17954 \end_inset
17955
17956 =
17957 \begin_inset Quotes erd
17958 \end_inset
17959
17960
17961 \begin_inset Quotes erd
17962 \end_inset
17963
17964 ] The string that will be used in the menus and also for the caption.
17965  This is translated to the current language if babel is used.
17966 \end_layout
17967
17968 \begin_layout Description
17969 \begin_inset Flex Code
17970 status collapsed
17971
17972 \begin_layout Plain Layout
17973 HTML*
17974 \end_layout
17975
17976 \end_inset
17977
17978  These tags control the XHTML output.
17979  See 
17980 \begin_inset CommandInset ref
17981 LatexCommand ref
17982 reference "sec:Tags-for-XHTML"
17983
17984 \end_inset
17985
17986 .
17987 \end_layout
17988
17989 \begin_layout Description
17990 \begin_inset Flex Code
17991 status collapsed
17992
17993 \begin_layout Plain Layout
17994 IsPredefined
17995 \end_layout
17996
17997 \end_inset
17998
17999  [
18000 \emph on
18001
18002 \begin_inset Flex Code
18003 status collapsed
18004
18005 \begin_layout Plain Layout
18006 0
18007 \end_layout
18008
18009 \end_inset
18010
18011
18012 \emph default
18013 ,
18014 \begin_inset space \thinspace{}
18015 \end_inset
18016
18017
18018 \begin_inset Flex Code
18019 status collapsed
18020
18021 \begin_layout Plain Layout
18022 1
18023 \end_layout
18024
18025 \end_inset
18026
18027 ] Indicates whether the float is already defined in the document class or
18028  if instead the \SpecialChar LaTeX
18029  package 
18030 \begin_inset Flex Code
18031 status collapsed
18032
18033 \begin_layout Plain Layout
18034 float
18035 \end_layout
18036
18037 \end_inset
18038
18039  needs to be loaded to define it on-the-fly.
18040  The default is 
18041 \begin_inset Flex Code
18042 status collapsed
18043
18044 \begin_layout Plain Layout
18045 0
18046 \end_layout
18047
18048 \end_inset
18049
18050 , which means: 
18051 \begin_inset Flex Code
18052 status collapsed
18053
18054 \begin_layout Plain Layout
18055 float
18056 \end_layout
18057
18058 \end_inset
18059
18060  is used.
18061  It should be set to 
18062 \begin_inset Flex Code
18063 status collapsed
18064
18065 \begin_layout Plain Layout
18066 1
18067 \end_layout
18068
18069 \end_inset
18070
18071  if the float is already defined by the \SpecialChar LaTeX
18072  document class.
18073 \end_layout
18074
18075 \begin_layout Description
18076 \begin_inset Flex Code
18077 status collapsed
18078
18079 \begin_layout Plain Layout
18080 ListCommand
18081 \end_layout
18082
18083 \end_inset
18084
18085  [
18086 \begin_inset Flex Code
18087 status collapsed
18088
18089 \begin_layout Plain Layout
18090 string
18091 \end_layout
18092
18093 \end_inset
18094
18095 =
18096 \begin_inset Quotes erd
18097 \end_inset
18098
18099
18100 \begin_inset Quotes erd
18101 \end_inset
18102
18103 ] The command used to generate a list of floats of this type; the leading
18104  `
18105 \backslash
18106 ' must be omitted.
18107  This 
18108 \emph on
18109 must
18110 \emph default
18111  be given if 
18112 \begin_inset Flex Code
18113 status collapsed
18114
18115 \begin_layout Plain Layout
18116 UsesFloatPkg
18117 \end_layout
18118
18119 \end_inset
18120
18121  is false, since there is no standard way to generate this command.
18122  It is ignored if 
18123 \begin_inset Flex Code
18124 status collapsed
18125
18126 \begin_layout Plain Layout
18127 UsesFloatPkg
18128 \end_layout
18129
18130 \end_inset
18131
18132  is true, since in that case there is a standard way to define the command.
18133 \end_layout
18134
18135 \begin_layout Description
18136 \begin_inset Flex Code
18137 status collapsed
18138
18139 \begin_layout Plain Layout
18140 ListName
18141 \end_layout
18142
18143 \end_inset
18144
18145  [
18146 \begin_inset Flex Code
18147 status collapsed
18148
18149 \begin_layout Plain Layout
18150 string
18151 \end_layout
18152
18153 \end_inset
18154
18155 =
18156 \begin_inset Quotes erd
18157 \end_inset
18158
18159
18160 \begin_inset Quotes erd
18161 \end_inset
18162
18163 ] A title for a list of floats of this kind (list of figures, tables, or
18164  whatever).
18165  It is used for the screen label within \SpecialChar LyX
18166 , it is used by \SpecialChar LaTeX
18167  for the title and
18168  it is used as the title in the XHTML output.
18169  It will be translated to the document language.
18170 \end_layout
18171
18172 \begin_layout Description
18173 \begin_inset Flex Code
18174 status collapsed
18175
18176 \begin_layout Plain Layout
18177 NumberWithin
18178 \end_layout
18179
18180 \end_inset
18181
18182  [
18183 \begin_inset Flex Code
18184 status collapsed
18185
18186 \begin_layout Plain Layout
18187 string
18188 \end_layout
18189
18190 \end_inset
18191
18192 =
18193 \begin_inset Quotes erd
18194 \end_inset
18195
18196
18197 \begin_inset Quotes erd
18198 \end_inset
18199
18200 ] This (optional) argument determines whether floats of this class will
18201  be numbered within some sectional unit of the document.
18202  For example, if 
18203 \begin_inset Flex Code
18204 status collapsed
18205
18206 \begin_layout Plain Layout
18207 NumberWithin
18208 \end_layout
18209
18210 \end_inset
18211
18212  is set to 
18213 \begin_inset Quotes eld
18214 \end_inset
18215
18216
18217 \begin_inset Flex Code
18218 status collapsed
18219
18220 \begin_layout Plain Layout
18221 chapter
18222 \end_layout
18223
18224 \end_inset
18225
18226
18227 \begin_inset Quotes erd
18228 \end_inset
18229
18230 , the floats will be numbered within chapters.
18231  
18232 \end_layout
18233
18234 \begin_layout Description
18235 \begin_inset Flex Code
18236 status collapsed
18237
18238 \begin_layout Plain Layout
18239 Placement
18240 \end_layout
18241
18242 \end_inset
18243
18244  [
18245 \begin_inset Flex Code
18246 status collapsed
18247
18248 \begin_layout Plain Layout
18249 string
18250 \end_layout
18251
18252 \end_inset
18253
18254 =
18255 \begin_inset Quotes erd
18256 \end_inset
18257
18258
18259 \begin_inset Quotes erd
18260 \end_inset
18261
18262 ] The default placement for the given class of floats.
18263  The string should be as in standard \SpecialChar LaTeX
18264
18265 \begin_inset Flex Code
18266 status collapsed
18267
18268 \begin_layout Plain Layout
18269 t
18270 \end_layout
18271
18272 \end_inset
18273
18274
18275 \begin_inset Flex Code
18276 status collapsed
18277
18278 \begin_layout Plain Layout
18279 b
18280 \end_layout
18281
18282 \end_inset
18283
18284
18285 \begin_inset Flex Code
18286 status collapsed
18287
18288 \begin_layout Plain Layout
18289 p
18290 \end_layout
18291
18292 \end_inset
18293
18294  and 
18295 \begin_inset Flex Code
18296 status collapsed
18297
18298 \begin_layout Plain Layout
18299 h
18300 \end_layout
18301
18302 \end_inset
18303
18304  for top, bottom, page, and here, respectively.
18305 \begin_inset Foot
18306 status collapsed
18307
18308 \begin_layout Plain Layout
18309 Note that the order of these letters in the string is irrelevant, like in
18310  \SpecialChar LaTeX
18311 .
18312 \end_layout
18313
18314 \end_inset
18315
18316  On top of that there is a new type, 
18317 \begin_inset Flex Code
18318 status collapsed
18319
18320 \begin_layout Plain Layout
18321 H
18322 \end_layout
18323
18324 \end_inset
18325
18326 , which does not really correspond to a float, since it means: put it 
18327 \begin_inset Quotes eld
18328 \end_inset
18329
18330 here
18331 \begin_inset Quotes erd
18332 \end_inset
18333
18334  and nowhere else.
18335  Note however that the 
18336 \begin_inset Flex Code
18337 status collapsed
18338
18339 \begin_layout Plain Layout
18340 H
18341 \end_layout
18342
18343 \end_inset
18344
18345  specifier is special and, because of implementation details, cannot be
18346  used in non-built in float types.
18347  If you do not understand what this means, just use 
18348 \begin_inset Quotes eld
18349 \end_inset
18350
18351
18352 \begin_inset Flex Code
18353 status collapsed
18354
18355 \begin_layout Plain Layout
18356 tbp
18357 \end_layout
18358
18359 \end_inset
18360
18361
18362 \begin_inset Quotes erd
18363 \end_inset
18364
18365 .
18366 \end_layout
18367
18368 \begin_layout Description
18369 \begin_inset Flex Code
18370 status collapsed
18371
18372 \begin_layout Plain Layout
18373 RefPrefix
18374 \end_layout
18375
18376 \end_inset
18377
18378  [
18379 \begin_inset Flex Code
18380 status collapsed
18381
18382 \begin_layout Plain Layout
18383 string
18384 \end_layout
18385
18386 \end_inset
18387
18388 ] The prefix to use when creating labels referring to floats of this type.
18389  This allows the use of formatted references.
18390  Note that you can remove any 
18391 \begin_inset Flex Code
18392 status collapsed
18393
18394 \begin_layout Plain Layout
18395 RefPrefix
18396 \end_layout
18397
18398 \end_inset
18399
18400  set by a copied style by using the special value 
18401 \begin_inset Quotes eld
18402 \end_inset
18403
18404 OFF
18405 \begin_inset Quotes erd
18406 \end_inset
18407
18408 , which must be all caps.
18409 \end_layout
18410
18411 \begin_layout Description
18412 \begin_inset Flex Code
18413 status collapsed
18414
18415 \begin_layout Plain Layout
18416 Style
18417 \end_layout
18418
18419 \end_inset
18420
18421  [
18422 \begin_inset Flex Code
18423 status collapsed
18424
18425 \begin_layout Plain Layout
18426 string
18427 \end_layout
18428
18429 \end_inset
18430
18431 =
18432 \begin_inset Quotes erd
18433 \end_inset
18434
18435
18436 \begin_inset Quotes erd
18437 \end_inset
18438
18439 ] The style used when defining the float using 
18440 \begin_inset Flex Code
18441 status collapsed
18442
18443 \begin_layout Plain Layout
18444
18445 \backslash
18446 newfloat
18447 \end_layout
18448
18449 \end_inset
18450
18451 .
18452 \end_layout
18453
18454 \begin_layout Description
18455 \begin_inset Flex Code
18456 status collapsed
18457
18458 \begin_layout Plain Layout
18459 Type
18460 \end_layout
18461
18462 \end_inset
18463
18464  [
18465 \begin_inset Flex Code
18466 status collapsed
18467
18468 \begin_layout Plain Layout
18469 string
18470 \end_layout
18471
18472 \end_inset
18473
18474 =
18475 \begin_inset Quotes erd
18476 \end_inset
18477
18478
18479 \begin_inset Quotes erd
18480 \end_inset
18481
18482 ] The 
18483 \begin_inset Quotes eld
18484 \end_inset
18485
18486 type
18487 \begin_inset Quotes erd
18488 \end_inset
18489
18490  of the new class of floats, like program or algorithm.
18491  After the appropriate 
18492 \begin_inset Flex Code
18493 status collapsed
18494
18495 \begin_layout Plain Layout
18496
18497 \backslash
18498 newfloat
18499 \end_layout
18500
18501 \end_inset
18502
18503 , commands such as 
18504 \begin_inset Flex Code
18505 status collapsed
18506
18507 \begin_layout Plain Layout
18508
18509 \backslash
18510 begin{program}
18511 \end_layout
18512
18513 \end_inset
18514
18515  or 
18516 \begin_inset Flex Code
18517 status collapsed
18518
18519 \begin_layout Plain Layout
18520
18521 \backslash
18522 end{algorithm*}
18523 \end_layout
18524
18525 \end_inset
18526
18527  will be available.
18528 \end_layout
18529
18530 \begin_layout Description
18531 \begin_inset Flex Code
18532 status collapsed
18533
18534 \begin_layout Plain Layout
18535 UsesFloatPkg
18536 \end_layout
18537
18538 \end_inset
18539
18540  [
18541 \begin_inset Flex Code
18542 status collapsed
18543
18544 \begin_layout Plain Layout
18545 0
18546 \end_layout
18547
18548 \end_inset
18549
18550 ,
18551 \begin_inset space \thinspace{}
18552 \end_inset
18553
18554
18555 \begin_inset Flex Code
18556 status collapsed
18557
18558 \begin_layout Plain Layout
18559
18560 \emph on
18561 1
18562 \end_layout
18563
18564 \end_inset
18565
18566 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18567  package 
18568 \begin_inset Flex Code
18569 status collapsed
18570
18571 \begin_layout Plain Layout
18572 float
18573 \end_layout
18574
18575 \end_inset
18576
18577 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18578  itself.
18579 \end_layout
18580
18581 \begin_layout Standard
18582 Note that defining a float with type 
18583 \begin_inset Flex Code
18584 status collapsed
18585
18586 \begin_layout Plain Layout
18587
18588 \emph on
18589 type
18590 \end_layout
18591
18592 \end_inset
18593
18594  automatically defines the corresponding counter with name 
18595 \begin_inset Flex Code
18596 status collapsed
18597
18598 \begin_layout Plain Layout
18599
18600 \emph on
18601 type
18602 \end_layout
18603
18604 \end_inset
18605
18606 .
18607 \end_layout
18608
18609 \begin_layout Subsection
18610 Flex insets and InsetLayout
18611 \begin_inset CommandInset label
18612 LatexCommand label
18613 name "subsec:Flex-insets-and"
18614
18615 \end_inset
18616
18617
18618 \end_layout
18619
18620 \begin_layout Standard
18621 Flex insets come in three different kinds: 
18622 \end_layout
18623
18624 \begin_layout Itemize
18625 character style (
18626 \begin_inset Flex Code
18627 status collapsed
18628
18629 \begin_layout Plain Layout
18630 CharStyle
18631 \end_layout
18632
18633 \end_inset
18634
18635 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18636  commands as 
18637 \begin_inset Flex Code
18638 status collapsed
18639
18640 \begin_layout Plain Layout
18641
18642 \backslash
18643 noun
18644 \end_layout
18645
18646 \end_inset
18647
18648  and 
18649 \begin_inset Flex Code
18650 status collapsed
18651
18652 \begin_layout Plain Layout
18653
18654 \backslash
18655 code
18656 \end_layout
18657
18658 \end_inset
18659
18660 .
18661 \end_layout
18662
18663 \begin_layout Itemize
18664 user custom (
18665 \begin_inset Flex Code
18666 status collapsed
18667
18668 \begin_layout Plain Layout
18669 Custom
18670 \end_layout
18671
18672 \end_inset
18673
18674 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18675  code,
18676  footnote, and the like.
18677  An obvious example is an endnote inset, which is defined in the 
18678 \begin_inset Flex Code
18679 status collapsed
18680
18681 \begin_layout Plain Layout
18682 endnote
18683 \end_layout
18684
18685 \end_inset
18686
18687  module.
18688 \end_layout
18689
18690 \begin_layout Itemize
18691 XML elements (
18692 \begin_inset Flex Code
18693 status collapsed
18694
18695 \begin_layout Plain Layout
18696 Element
18697 \end_layout
18698
18699 \end_inset
18700
18701 ): For use with DocBook classes.
18702 \end_layout
18703
18704 \begin_layout Standard
18705 Flex insets are defined using the 
18706 \begin_inset Flex Code
18707 status collapsed
18708
18709 \begin_layout Plain Layout
18710 InsetLayout
18711 \end_layout
18712
18713 \end_inset
18714
18715  tag, which shall be explained in a moment.
18716 \end_layout
18717
18718 \begin_layout Standard
18719 The 
18720 \begin_inset Flex Code
18721 status collapsed
18722
18723 \begin_layout Plain Layout
18724 InsetLayout
18725 \end_layout
18726
18727 \end_inset
18728
18729  tag also serves another function: It can be used to customize the general
18730  layout of many different types of insets.
18731  Currently, 
18732 \begin_inset Flex Code
18733 status collapsed
18734
18735 \begin_layout Plain Layout
18736 InsetLayout
18737 \end_layout
18738
18739 \end_inset
18740
18741  can be used to customize the layout parameters for footnotes, marginal
18742  notes, note insets, \SpecialChar TeX
18743  code (ERT) insets, branches, listings, indexes, boxes,
18744  tables, algorithms, URLs, and captions, as well as to define Flex insets.
18745 \end_layout
18746
18747 \begin_layout Standard
18748 The 
18749 \begin_inset Flex Code
18750 status collapsed
18751
18752 \begin_layout Plain Layout
18753 InsetLayout
18754 \end_layout
18755
18756 \end_inset
18757
18758  definition must begin with a line of the form:
18759 \end_layout
18760
18761 \begin_layout LyX-Code
18762 InsetLayout <type>
18763 \end_layout
18764
18765 \begin_layout Standard
18766 Here 
18767 \begin_inset Flex Code
18768 status collapsed
18769
18770 \begin_layout Plain Layout
18771 <Type>
18772 \end_layout
18773
18774 \end_inset
18775
18776  indicates the inset whose layout is being defined, and here there are four
18777  cases.
18778 \end_layout
18779
18780 \begin_layout Enumerate
18781 The layout for a pre-existing inset is being modified.
18782  In this case, can be 
18783 \begin_inset Flex Code
18784 status collapsed
18785
18786 \begin_layout Plain Layout
18787 <Type>
18788 \end_layout
18789
18790 \end_inset
18791
18792  any one of the following: 
18793 \begin_inset Flex Code
18794 status collapsed
18795
18796 \begin_layout Plain Layout
18797 Algorithm
18798 \end_layout
18799
18800 \end_inset
18801
18802
18803 \begin_inset Flex Code
18804 status collapsed
18805
18806 \begin_layout Plain Layout
18807 Branch
18808 \end_layout
18809
18810 \end_inset
18811
18812
18813 \begin_inset Flex Code
18814 status collapsed
18815
18816 \begin_layout Plain Layout
18817 Box
18818 \end_layout
18819
18820 \end_inset
18821
18822
18823 \begin_inset Flex Code
18824 status collapsed
18825
18826 \begin_layout Plain Layout
18827 Box:shaded
18828 \end_layout
18829
18830 \end_inset
18831
18832
18833 \begin_inset Flex Code
18834 status collapsed
18835
18836 \begin_layout Plain Layout
18837 Caption:Standard
18838 \end_layout
18839
18840 \end_inset
18841
18842
18843 \begin_inset Flex Code
18844 status collapsed
18845
18846 \begin_layout Plain Layout
18847 ERT
18848 \end_layout
18849
18850 \end_inset
18851
18852
18853 \begin_inset Flex Code
18854 status collapsed
18855
18856 \begin_layout Plain Layout
18857 Figure
18858 \end_layout
18859
18860 \end_inset
18861
18862
18863 \begin_inset Flex Code
18864 status collapsed
18865
18866 \begin_layout Plain Layout
18867 Foot
18868 \end_layout
18869
18870 \end_inset
18871
18872
18873 \begin_inset Flex Code
18874 status collapsed
18875
18876 \begin_layout Plain Layout
18877 Index
18878 \end_layout
18879
18880 \end_inset
18881
18882
18883 \begin_inset Flex Code
18884 status collapsed
18885
18886 \begin_layout Plain Layout
18887 Info
18888 \end_layout
18889
18890 \end_inset
18891
18892
18893 \begin_inset Flex Code
18894 status collapsed
18895
18896 \begin_layout Plain Layout
18897 Info:menu
18898 \end_layout
18899
18900 \end_inset
18901
18902
18903 \begin_inset Flex Code
18904 status collapsed
18905
18906 \begin_layout Plain Layout
18907 Info:shortcut
18908 \end_layout
18909
18910 \end_inset
18911
18912
18913 \begin_inset Flex Code
18914 status collapsed
18915
18916 \begin_layout Plain Layout
18917 Info:shortcuts
18918 \end_layout
18919
18920 \end_inset
18921
18922
18923 \begin_inset Flex Code
18924 status collapsed
18925
18926 \begin_layout Plain Layout
18927 Listings
18928 \end_layout
18929
18930 \end_inset
18931
18932
18933 \begin_inset Flex Code
18934 status collapsed
18935
18936 \begin_layout Plain Layout
18937 Marginal
18938 \end_layout
18939
18940 \end_inset
18941
18942
18943 \begin_inset Flex Code
18944 status collapsed
18945
18946 \begin_layout Plain Layout
18947 Note:Comment
18948 \end_layout
18949
18950 \end_inset
18951
18952
18953 \begin_inset Flex Code
18954 status collapsed
18955
18956 \begin_layout Plain Layout
18957 Note:Note
18958 \end_layout
18959
18960 \end_inset
18961
18962
18963 \begin_inset Flex Code
18964 status collapsed
18965
18966 \begin_layout Plain Layout
18967 Note:Greyedout
18968 \end_layout
18969
18970 \end_inset
18971
18972
18973 \begin_inset Flex Code
18974 status collapsed
18975
18976 \begin_layout Plain Layout
18977 Table
18978 \end_layout
18979
18980 \end_inset
18981
18982 , or 
18983 \begin_inset Flex Code
18984 status collapsed
18985
18986 \begin_layout Plain Layout
18987 URL
18988 \end_layout
18989
18990 \end_inset
18991
18992 .
18993 \end_layout
18994
18995 \begin_layout Enumerate
18996 The layout for a Flex inset is being defined.
18997  In this case, 
18998 \begin_inset Flex Code
18999 status collapsed
19000
19001 \begin_layout Plain Layout
19002 <Type>
19003 \end_layout
19004
19005 \end_inset
19006
19007  must be of the form 
19008 \begin_inset Quotes eld
19009 \end_inset
19010
19011
19012 \begin_inset Flex Code
19013 status collapsed
19014
19015 \begin_layout Plain Layout
19016 Flex:<name>
19017 \end_layout
19018
19019 \end_inset
19020
19021
19022 \begin_inset Quotes erd
19023 \end_inset
19024
19025 , where 
19026 \begin_inset Flex Code
19027 status collapsed
19028
19029 \begin_layout Plain Layout
19030 name
19031 \end_layout
19032
19033 \end_inset
19034
19035  may be be any valid identifier not used by a pre-existing Flex inset.
19036  The identifier may include spaces, but in that case the whole thing must
19037  be wrapped in quotes.
19038  Note that the definition of a flex inset 
19039 \emph on
19040 must 
19041 \emph default
19042 also include a 
19043 \begin_inset Flex Code
19044 status collapsed
19045
19046 \begin_layout Plain Layout
19047 LyXType
19048 \end_layout
19049
19050 \end_inset
19051
19052  entry, declaring which type of inset it defines.
19053 \end_layout
19054
19055 \begin_layout Enumerate
19056 The layout for user specific branch is being defined.
19057  In this case, 
19058 \begin_inset Flex Code
19059 status collapsed
19060
19061 \begin_layout Plain Layout
19062 <Type>
19063 \end_layout
19064
19065 \end_inset
19066
19067  must be of the form 
19068 \begin_inset Quotes eld
19069 \end_inset
19070
19071
19072 \begin_inset Flex Code
19073 status collapsed
19074
19075 \begin_layout Plain Layout
19076 Branch:<name>
19077 \end_layout
19078
19079 \end_inset
19080
19081
19082 \begin_inset Quotes erd
19083 \end_inset
19084
19085 , where 
19086 \begin_inset Flex Code
19087 status collapsed
19088
19089 \begin_layout Plain Layout
19090 name
19091 \end_layout
19092
19093 \end_inset
19094
19095  may be be any valid identifier of branch defined in user's document.
19096  The identifier may include spaces, but in that case the whole thing must
19097  be wrapped in quotes.
19098  The main purpose of this feature is to allow \SpecialChar LaTeX
19099  wrapping around specific
19100  branches as user needs.
19101 \end_layout
19102
19103 \begin_layout Enumerate
19104 The layout of a user (or class) specific caption is being defined.
19105  In this case, 
19106 \begin_inset Flex Code
19107 status collapsed
19108
19109 \begin_layout Plain Layout
19110 <Type>
19111 \end_layout
19112
19113 \end_inset
19114
19115  must be of the form 
19116 \begin_inset Quotes eld
19117 \end_inset
19118
19119
19120 \begin_inset Flex Code
19121 status collapsed
19122
19123 \begin_layout Plain Layout
19124 Caption:<name>
19125 \end_layout
19126
19127 \end_inset
19128
19129
19130 \begin_inset Quotes erd
19131 \end_inset
19132
19133 , where 
19134 \begin_inset Flex Code
19135 status collapsed
19136
19137 \begin_layout Plain Layout
19138 name
19139 \end_layout
19140
19141 \end_inset
19142
19143  specifies the name of the caption as it appears in the menu.
19144  Have a look at the standard caption (
19145 \begin_inset Flex Code
19146 status collapsed
19147
19148 \begin_layout Plain Layout
19149 Caption:Standard
19150 \end_layout
19151
19152 \end_inset
19153
19154 ), the specific captions of the KOMA-Script classes (
19155 \begin_inset Flex Code
19156 status collapsed
19157
19158 \begin_layout Plain Layout
19159 Caption:Above
19160 \end_layout
19161
19162 \end_inset
19163
19164
19165 \begin_inset Flex Code
19166 status collapsed
19167
19168 \begin_layout Plain Layout
19169 Caption:Below
19170 \end_layout
19171
19172 \end_inset
19173
19174 ) or the module 
19175 \family sans
19176 Multilingual
19177 \begin_inset space ~
19178 \end_inset
19179
19180 Captions
19181 \begin_inset Newline linebreak
19182 \end_inset
19183
19184
19185 \family default
19186 (
19187 \begin_inset Flex Code
19188 status collapsed
19189
19190 \begin_layout Plain Layout
19191 Caption:Bicaption
19192 \end_layout
19193
19194 \end_inset
19195
19196 ) for applications.
19197 \end_layout
19198
19199 \begin_layout Standard
19200 The 
19201 \begin_inset Flex Code
19202 status collapsed
19203
19204 \begin_layout Plain Layout
19205 InsetLayout
19206 \end_layout
19207
19208 \end_inset
19209
19210  definition can contain the following entries:
19211 \end_layout
19212
19213 \begin_layout Description
19214 \begin_inset Flex Code
19215 status collapsed
19216
19217 \begin_layout Plain Layout
19218 AddToToc
19219 \end_layout
19220
19221 \end_inset
19222
19223  [
19224 \begin_inset Flex Code
19225 status collapsed
19226
19227 \begin_layout Plain Layout
19228 string
19229 \end_layout
19230
19231 \end_inset
19232
19233 =""] This inset will appear in the table of contents of the given type.
19234  An empty string disables.
19235  See also the OutlinerName and the IsTocCaption commands.
19236  This is only implemented for Flex insets.
19237  Default: disabled.
19238 \end_layout
19239
19240 \begin_layout Description
19241 \begin_inset Flex Code
19242 status collapsed
19243
19244 \begin_layout Plain Layout
19245 Argument
19246 \end_layout
19247
19248 \end_inset
19249
19250  [
19251 \begin_inset Flex Code
19252 status collapsed
19253
19254 \begin_layout Plain Layout
19255 int
19256 \end_layout
19257
19258 \end_inset
19259
19260 ] Defines argument number of a command\SpecialChar breakableslash
19261 environment associated with the current
19262  layout.
19263  The definition must end with 
19264 \begin_inset Flex Code
19265 status collapsed
19266
19267 \begin_layout Plain Layout
19268 EndArgument
19269 \end_layout
19270
19271 \end_inset
19272
19273 .
19274  See 
19275 \begin_inset CommandInset ref
19276 LatexCommand ref
19277 reference "subsec:Paragraph-Styles"
19278
19279 \end_inset
19280
19281  for details.
19282 \end_layout
19283
19284 \begin_layout Description
19285 \begin_inset Flex Code
19286 status collapsed
19287
19288 \begin_layout Plain Layout
19289 BabelPreamble
19290 \end_layout
19291
19292 \end_inset
19293
19294  Preamble for changing language commands; see 
19295 \begin_inset CommandInset ref
19296 LatexCommand ref
19297 reference "subsec:I18n"
19298
19299 \end_inset
19300
19301 .
19302 \end_layout
19303
19304 \begin_layout Description
19305 \begin_inset Flex Code
19306 status collapsed
19307
19308 \begin_layout Plain Layout
19309 BgColor
19310 \end_layout
19311
19312 \end_inset
19313
19314  [
19315 \begin_inset Flex Code
19316 status collapsed
19317
19318 \begin_layout Plain Layout
19319 <name>
19320 \end_layout
19321
19322 \end_inset
19323
19324 ] The color for the inset's background.
19325  See 
19326 \begin_inset CommandInset ref
19327 LatexCommand ref
19328 reference "chap:Names-of-colors"
19329
19330 \end_inset
19331
19332  for a list of the available color names.
19333 \end_layout
19334
19335 \begin_layout Description
19336 \begin_inset Flex Code
19337 status collapsed
19338
19339 \begin_layout Plain Layout
19340 ContentAsLabel
19341 \end_layout
19342
19343 \end_inset
19344
19345  [
19346 \begin_inset Flex Code
19347 status collapsed
19348
19349 \begin_layout Plain Layout
19350
19351 \emph on
19352 0
19353 \end_layout
19354
19355 \end_inset
19356
19357 ,
19358 \begin_inset space \thinspace{}
19359 \end_inset
19360
19361
19362 \begin_inset Flex Code
19363 status collapsed
19364
19365 \begin_layout Plain Layout
19366 1
19367 \end_layout
19368
19369 \end_inset
19370
19371 ] Whether to use the content of the inset as the label, when the inset is
19372  closed.
19373  Default is false.
19374 \end_layout
19375
19376 \begin_layout Description
19377 \begin_inset Flex Code
19378 status collapsed
19379
19380 \begin_layout Plain Layout
19381 CopyStyle
19382 \end_layout
19383
19384 \end_inset
19385
19386  [
19387 \begin_inset Flex Code
19388 status collapsed
19389
19390 \begin_layout Plain Layout
19391 <type>
19392 \end_layout
19393
19394 \end_inset
19395
19396 ] As with paragraph styles, see 
19397 \begin_inset CommandInset ref
19398 LatexCommand ref
19399 reference "subsec:Paragraph-Styles"
19400
19401 \end_inset
19402
19403 .
19404  Note that you need to specify the complete type, e.
19405 \begin_inset space \thinspace{}
19406 \end_inset
19407
19408 g.
19409 \begin_inset space ~
19410 \end_inset
19411
19412
19413 \begin_inset Flex Code
19414 status collapsed
19415
19416 \begin_layout Plain Layout
19417 CopyStyle Flex:<name>
19418 \end_layout
19419
19420 \end_inset
19421
19422 .
19423 \end_layout
19424
19425 \begin_layout Description
19426 \begin_inset Flex Code
19427 status collapsed
19428
19429 \begin_layout Plain Layout
19430 CustomPars
19431 \end_layout
19432
19433 \end_inset
19434
19435  [
19436 \begin_inset Flex Code
19437 status collapsed
19438
19439 \begin_layout Plain Layout
19440
19441 \emph on
19442 0
19443 \end_layout
19444
19445 \end_inset
19446
19447 ,
19448 \begin_inset space \thinspace{}
19449 \end_inset
19450
19451
19452 \begin_inset Flex Code
19453 status collapsed
19454
19455 \begin_layout Plain Layout
19456 1
19457 \end_layout
19458
19459 \end_inset
19460
19461 ] Indicates whether the user may employ the Paragraph Settings dialog to
19462  customize the paragraph.
19463 \end_layout
19464
19465 \begin_layout Description
19466 \begin_inset Flex Code
19467 status collapsed
19468
19469 \begin_layout Plain Layout
19470 Decoration
19471 \end_layout
19472
19473 \end_inset
19474
19475  can be 
19476 \begin_inset Flex Code
19477 status collapsed
19478
19479 \begin_layout Plain Layout
19480 Classic
19481 \end_layout
19482
19483 \end_inset
19484
19485
19486 \begin_inset Flex Code
19487 status collapsed
19488
19489 \begin_layout Plain Layout
19490 Minimalistic
19491 \end_layout
19492
19493 \end_inset
19494
19495 , or 
19496 \begin_inset Flex Code
19497 status collapsed
19498
19499 \begin_layout Plain Layout
19500 Conglomerate
19501 \end_layout
19502
19503 \end_inset
19504
19505 , describing the rendering style used for the inset's frame and buttons.
19506  Footnotes generally use 
19507 \begin_inset Flex Code
19508 status collapsed
19509
19510 \begin_layout Plain Layout
19511 Classic
19512 \end_layout
19513
19514 \end_inset
19515
19516 , ERT insets generally 
19517 \begin_inset Flex Code
19518 status collapsed
19519
19520 \begin_layout Plain Layout
19521 Minimalistic
19522 \end_layout
19523
19524 \end_inset
19525
19526 , and character styles 
19527 \begin_inset Flex Code
19528 status collapsed
19529
19530 \begin_layout Plain Layout
19531 Conglomerate
19532 \end_layout
19533
19534 \end_inset
19535
19536 .
19537 \end_layout
19538
19539 \begin_layout Description
19540 \begin_inset Flex Code
19541 status collapsed
19542
19543 \begin_layout Plain Layout
19544 Display
19545 \end_layout
19546
19547 \end_inset
19548
19549  [
19550 \begin_inset Flex Code
19551 status collapsed
19552
19553 \begin_layout Plain Layout
19554 0
19555 \end_layout
19556
19557 \end_inset
19558
19559 ,
19560 \emph on
19561
19562 \begin_inset space \thinspace{}
19563 \end_inset
19564
19565
19566 \emph default
19567
19568 \begin_inset Flex Code
19569 status collapsed
19570
19571 \begin_layout Plain Layout
19572
19573 \emph on
19574 1
19575 \end_layout
19576
19577 \end_inset
19578
19579 ] Only useful if 
19580 \begin_inset Flex Code
19581 status collapsed
19582
19583 \begin_layout Plain Layout
19584 LatexType
19585 \end_layout
19586
19587 \end_inset
19588
19589  is 
19590 \begin_inset Flex Code
19591 status collapsed
19592
19593 \begin_layout Plain Layout
19594 Environment
19595 \end_layout
19596
19597 \end_inset
19598
19599 .
19600  Indicates whether the environment will stand on its own in the output or
19601  will appear inline with the surrounding text.
19602  If set to false, it is supposed that the \SpecialChar LaTeX
19603  environment ignores white space
19604  (including one newline character) after the 
19605 \begin_inset Flex Code
19606 status collapsed
19607
19608 \begin_layout Plain Layout
19609
19610 \backslash
19611 begin{
19612 \emph on
19613 LatexName
19614 \emph default
19615 }
19616 \end_layout
19617
19618 \end_inset
19619
19620  and 
19621 \begin_inset Flex Code
19622 status collapsed
19623
19624 \begin_layout Plain Layout
19625
19626 \backslash
19627 end{
19628 \emph on
19629 LatexName
19630 \emph default
19631 }
19632 \end_layout
19633
19634 \end_inset
19635
19636  tags.
19637  Default is true.
19638 \change_inserted 731793113 1538674858
19639
19640 \end_layout
19641
19642 \begin_layout Description
19643
19644 \change_inserted 731793113 1538674891
19645 \begin_inset Flex Code
19646 status open
19647
19648 \begin_layout Plain Layout
19649
19650 \change_inserted 731793113 1538674863
19651 EditExternal
19652 \change_unchanged
19653
19654 \end_layout
19655
19656 \end_inset
19657
19658  [
19659 \emph on
19660 0
19661 \emph default
19662 ,1] Allow the contents of the inset to be edited externally (using whatever
19663  editor is defined for the document's output format).
19664 \change_unchanged
19665
19666 \end_layout
19667
19668 \begin_layout Description
19669 \begin_inset Flex Code
19670 status collapsed
19671
19672 \begin_layout Plain Layout
19673 End
19674 \end_layout
19675
19676 \end_inset
19677
19678  Required at the end of the 
19679 \begin_inset Flex Code
19680 status collapsed
19681
19682 \begin_layout Plain Layout
19683 InsetLayout
19684 \end_layout
19685
19686 \end_inset
19687
19688  declarations.
19689 \end_layout
19690
19691 \begin_layout Description
19692 \begin_inset Flex Code
19693 status collapsed
19694
19695 \begin_layout Plain Layout
19696 Font
19697 \end_layout
19698
19699 \end_inset
19700
19701  The font used for both the text body 
19702 \emph on
19703 and
19704 \emph default
19705  the label.
19706  See 
19707 \begin_inset CommandInset ref
19708 LatexCommand ref
19709 reference "subsec:Font-description"
19710
19711 \end_inset
19712
19713 .
19714  Note that defining this font automatically defines the 
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 LabelFont
19720 \end_layout
19721
19722 \end_inset
19723
19724  to the same value, so define this first and define 
19725 \begin_inset Flex Code
19726 status collapsed
19727
19728 \begin_layout Plain Layout
19729 LabelFont
19730 \end_layout
19731
19732 \end_inset
19733
19734  later if you want them to be different.
19735 \end_layout
19736
19737 \begin_layout Description
19738 \begin_inset Flex Code
19739 status collapsed
19740
19741 \begin_layout Plain Layout
19742 FixedWidthPreambleEncoding
19743 \end_layout
19744
19745 \end_inset
19746
19747  [
19748 \begin_inset Flex Code
19749 status collapsed
19750
19751 \begin_layout Plain Layout
19752
19753 \emph on
19754 0
19755 \end_layout
19756
19757 \end_inset
19758
19759 ,
19760 \begin_inset space \thinspace{}
19761 \end_inset
19762
19763
19764 \begin_inset Flex Code
19765 status collapsed
19766
19767 \begin_layout Plain Layout
19768 1
19769 \end_layout
19770
19771 \end_inset
19772
19773 ] Force a fixed width encoding for the translated contents of 
19774 \begin_inset Flex Code
19775 status collapsed
19776
19777 \begin_layout Plain Layout
19778 BabelPreamble
19779 \end_layout
19780
19781 \end_inset
19782
19783  and 
19784 \begin_inset Flex Code
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788 LangPreamble
19789 \end_layout
19790
19791 \end_inset
19792
19793  code generated by this layout.
19794  This is needed for special \SpecialChar LaTeX
19795 -packages like 
19796 \family typewriter
19797 listings
19798 \family default
19799  that do not work with variable width encodings such as 
19800 \family sans
19801 utf8
19802 \family default
19803 .
19804  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19805  backends such as Xe\SpecialChar TeX
19806  or
19807  Lua\SpecialChar TeX
19808  are used.
19809 \end_layout
19810
19811 \begin_layout Description
19812 \begin_inset Flex Code
19813 status collapsed
19814
19815 \begin_layout Plain Layout
19816 ForceLocalFontSwitch
19817 \end_layout
19818
19819 \end_inset
19820
19821  [
19822 \begin_inset Flex Code
19823 status collapsed
19824
19825 \begin_layout Plain Layout
19826
19827 \emph on
19828 0
19829 \end_layout
19830
19831 \end_inset
19832
19833 ,
19834 \begin_inset space \thinspace{}
19835 \end_inset
19836
19837
19838 \begin_inset Flex Code
19839 status collapsed
19840
19841 \begin_layout Plain Layout
19842 1
19843 \end_layout
19844
19845 \end_inset
19846
19847 ] When using babel, always use a local font switch (
19848 \begin_inset Flex Code
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852
19853 \backslash
19854 foreignlanguage
19855 \end_layout
19856
19857 \end_inset
19858
19859 ), never a global one (such as 
19860 \begin_inset Flex Code
19861 status collapsed
19862
19863 \begin_layout Plain Layout
19864
19865 \backslash
19866 selectlanguage
19867 \end_layout
19868
19869 \end_inset
19870
19871 ).
19872 \end_layout
19873
19874 \begin_layout Description
19875 \begin_inset Flex Code
19876 status collapsed
19877
19878 \begin_layout Plain Layout
19879 ForceLTR
19880 \end_layout
19881
19882 \end_inset
19883
19884  [
19885 \begin_inset Flex Code
19886 status collapsed
19887
19888 \begin_layout Plain Layout
19889
19890 \emph on
19891 0
19892 \end_layout
19893
19894 \end_inset
19895
19896 ,
19897 \begin_inset space \thinspace{}
19898 \end_inset
19899
19900
19901 \begin_inset Flex Code
19902 status collapsed
19903
19904 \begin_layout Plain Layout
19905 1
19906 \end_layout
19907
19908 \end_inset
19909
19910 ] Force the 
19911 \begin_inset Quotes eld
19912 \end_inset
19913
19914 latex
19915 \begin_inset Quotes erd
19916 \end_inset
19917
19918  language, leading to Left-to-Right (Latin) output, e.
19919 \begin_inset space \thinspace{}
19920 \end_inset
19921
19922 g.
19923 \begin_inset space \space{}
19924 \end_inset
19925
19926 in \SpecialChar TeX
19927  code or URL.
19928  A kludge.
19929 \end_layout
19930
19931 \begin_layout Description
19932 \begin_inset Flex Code
19933 status collapsed
19934
19935 \begin_layout Plain Layout
19936 ForceOwnlines
19937 \end_layout
19938
19939 \end_inset
19940
19941  [
19942 \begin_inset Flex Code
19943 status collapsed
19944
19945 \begin_layout Plain Layout
19946
19947 \emph on
19948 0
19949 \end_layout
19950
19951 \end_inset
19952
19953 ,
19954 \begin_inset space \thinspace{}
19955 \end_inset
19956
19957
19958 \begin_inset Flex Code
19959 status collapsed
19960
19961 \begin_layout Plain Layout
19962 1
19963 \end_layout
19964
19965 \end_inset
19966
19967 ] Force a a line break in the \SpecialChar LaTeX
19968  output before the inset starts and after
19969  the inset ends.
19970  This assures the inset itself is output on its own lines, for parsing purposes.
19971 \end_layout
19972
19973 \begin_layout Description
19974 \begin_inset Flex Code
19975 status collapsed
19976
19977 \begin_layout Plain Layout
19978 ForcePlain
19979 \end_layout
19980
19981 \end_inset
19982
19983  [
19984 \begin_inset Flex Code
19985 status collapsed
19986
19987 \begin_layout Plain Layout
19988
19989 \emph on
19990 0
19991 \end_layout
19992
19993 \end_inset
19994
19995 ,
19996 \begin_inset space \thinspace{}
19997 \end_inset
19998
19999
20000 \begin_inset Flex Code
20001 status collapsed
20002
20003 \begin_layout Plain Layout
20004 1
20005 \end_layout
20006
20007 \end_inset
20008
20009 ] Indicates whether the 
20010 \begin_inset Flex Code
20011 status collapsed
20012
20013 \begin_layout Plain Layout
20014 PlainLayout
20015 \end_layout
20016
20017 \end_inset
20018
20019  should be used or, instead, the user can change the paragraph style used
20020  in the inset.
20021  Default is false.
20022 \end_layout
20023
20024 \begin_layout Description
20025 \begin_inset Flex Code
20026 status collapsed
20027
20028 \begin_layout Plain Layout
20029 FreeSpacing
20030 \end_layout
20031
20032 \end_inset
20033
20034  [
20035 \begin_inset Flex Code
20036 status collapsed
20037
20038 \begin_layout Plain Layout
20039
20040 \emph on
20041 0
20042 \end_layout
20043
20044 \end_inset
20045
20046 ,
20047 \begin_inset space \thinspace{}
20048 \end_inset
20049
20050
20051 \begin_inset Flex Code
20052 status collapsed
20053
20054 \begin_layout Plain Layout
20055 1
20056 \end_layout
20057
20058 \end_inset
20059
20060 ] As with paragraph styles, see 
20061 \begin_inset CommandInset ref
20062 LatexCommand ref
20063 reference "subsec:Paragraph-Styles"
20064
20065 \end_inset
20066
20067 .
20068 \end_layout
20069
20070 \begin_layout Description
20071 \begin_inset Flex Code
20072 status collapsed
20073
20074 \begin_layout Plain Layout
20075 HTML*
20076 \end_layout
20077
20078 \end_inset
20079
20080  These tags control the XHTML output.
20081  See 
20082 \begin_inset CommandInset ref
20083 LatexCommand ref
20084 reference "sec:Tags-for-XHTML"
20085
20086 \end_inset
20087
20088 .
20089 \end_layout
20090
20091 \begin_layout Description
20092 \begin_inset Flex Code
20093 status collapsed
20094
20095 \begin_layout Plain Layout
20096 InToc
20097 \end_layout
20098
20099 \end_inset
20100
20101  [
20102 \begin_inset Flex Code
20103 status collapsed
20104
20105 \begin_layout Plain Layout
20106
20107 \emph on
20108 0
20109 \end_layout
20110
20111 \end_inset
20112
20113 ,
20114 \begin_inset space \thinspace{}
20115 \end_inset
20116
20117
20118 \begin_inset Flex Code
20119 status collapsed
20120
20121 \begin_layout Plain Layout
20122 1
20123 \end_layout
20124
20125 \end_inset
20126
20127 ] Whether to include the contents of this inset in the strings generated
20128  for the `Outline' pane for all table of contents, regardless of the AddToToc
20129  setting.
20130  One would not, for example, want the content of a footnote in a section
20131  header to be included in the TOC displayed in the outline, but one would
20132  normally want the content of a character style displayed.
20133  Default is false: not to include.
20134 \end_layout
20135
20136 \begin_layout Description
20137 \begin_inset Flex Code
20138 status collapsed
20139
20140 \begin_layout Plain Layout
20141 IsTocCaption
20142 \end_layout
20143
20144 \end_inset
20145
20146  [
20147 \begin_inset Flex Code
20148 status collapsed
20149
20150 \begin_layout Plain Layout
20151
20152 \emph on
20153 0
20154 \end_layout
20155
20156 \end_inset
20157
20158 ,
20159 \begin_inset space \thinspace{}
20160 \end_inset
20161
20162
20163 \begin_inset Flex Code
20164 status collapsed
20165
20166 \begin_layout Plain Layout
20167 1
20168 \end_layout
20169
20170 \end_inset
20171
20172 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20173  of its contents in its item in the table of contents.
20174  Otherwise, only the label appears.
20175 \end_layout
20176
20177 \begin_layout Description
20178 \begin_inset Flex Code
20179 status collapsed
20180
20181 \begin_layout Plain Layout
20182 KeepEmpty
20183 \end_layout
20184
20185 \end_inset
20186
20187  [
20188 \emph on
20189
20190 \begin_inset Flex Code
20191 status collapsed
20192
20193 \begin_layout Plain Layout
20194 0
20195 \end_layout
20196
20197 \end_inset
20198
20199
20200 \emph default
20201 ,
20202 \begin_inset space \thinspace{}
20203 \end_inset
20204
20205
20206 \begin_inset Flex Code
20207 status collapsed
20208
20209 \begin_layout Plain Layout
20210 1
20211 \end_layout
20212
20213 \end_inset
20214
20215 ] As with paragraph styles, see 
20216 \begin_inset CommandInset ref
20217 LatexCommand ref
20218 reference "subsec:Paragraph-Styles"
20219
20220 \end_inset
20221
20222 .
20223 \end_layout
20224
20225 \begin_layout Description
20226 \begin_inset Flex Code
20227 status collapsed
20228
20229 \begin_layout Plain Layout
20230 LabelFont
20231 \end_layout
20232
20233 \end_inset
20234
20235  The font used for the label.
20236  See 
20237 \begin_inset CommandInset ref
20238 LatexCommand ref
20239 reference "subsec:Font-description"
20240
20241 \end_inset
20242
20243 .
20244  Note that this definition can never appear before 
20245 \begin_inset Flex Code
20246 status collapsed
20247
20248 \begin_layout Plain Layout
20249 Font
20250 \end_layout
20251
20252 \end_inset
20253
20254 , lest it be ineffective.
20255 \end_layout
20256
20257 \begin_layout Description
20258 \begin_inset Flex Code
20259 status collapsed
20260
20261 \begin_layout Plain Layout
20262 LabelString
20263 \end_layout
20264
20265 \end_inset
20266
20267  [
20268 \begin_inset Flex Code
20269 status collapsed
20270
20271 \begin_layout Plain Layout
20272 string
20273 \end_layout
20274
20275 \end_inset
20276
20277 =
20278 \begin_inset Quotes erd
20279 \end_inset
20280
20281
20282 \begin_inset Quotes erd
20283 \end_inset
20284
20285 ] What will be displayed on the button or elsewhere as the inset label.
20286  Some inset types (
20287 \begin_inset Flex Code
20288 status collapsed
20289
20290 \begin_layout Plain Layout
20291 \SpecialChar TeX
20292  code
20293 \end_layout
20294
20295 \end_inset
20296
20297  and 
20298 \begin_inset Flex Code
20299 status collapsed
20300
20301 \begin_layout Plain Layout
20302 Branch
20303 \end_layout
20304
20305 \end_inset
20306
20307 ) modify this label on the fly.
20308 \end_layout
20309
20310 \begin_layout Description
20311 \begin_inset Flex Code
20312 status collapsed
20313
20314 \begin_layout Plain Layout
20315 LangPreamble
20316 \end_layout
20317
20318 \end_inset
20319
20320  Language dependent preamble; see 
20321 \begin_inset CommandInset ref
20322 LatexCommand ref
20323 reference "subsec:I18n"
20324
20325 \end_inset
20326
20327 .
20328 \end_layout
20329
20330 \begin_layout Description
20331 \begin_inset Flex Code
20332 status collapsed
20333
20334 \begin_layout Plain Layout
20335 LatexName
20336 \end_layout
20337
20338 \end_inset
20339
20340  [
20341 \begin_inset Flex Code
20342 status collapsed
20343
20344 \begin_layout Plain Layout
20345 <name>
20346 \end_layout
20347
20348 \end_inset
20349
20350 ] The name of the corresponding \SpecialChar LaTeX
20351  stuff.
20352  Either the environment or command name.
20353 \end_layout
20354
20355 \begin_layout Description
20356 \begin_inset Flex Code
20357 status collapsed
20358
20359 \begin_layout Plain Layout
20360 LatexParam
20361 \end_layout
20362
20363 \end_inset
20364
20365  [
20366 \begin_inset Flex Code
20367 status collapsed
20368
20369 \begin_layout Plain Layout
20370 <parameter>
20371 \end_layout
20372
20373 \end_inset
20374
20375 ] The optional parameter for the corresponding 
20376 \begin_inset Flex Code
20377 status collapsed
20378
20379 \begin_layout Plain Layout
20380 LatexName
20381 \end_layout
20382
20383 \end_inset
20384
20385  stuff, including possible bracket pairs like 
20386 \begin_inset Flex Code
20387 status collapsed
20388
20389 \begin_layout Plain Layout
20390 []
20391 \end_layout
20392
20393 \end_inset
20394
20395 .
20396  This parameter cannot be changed from within \SpecialChar LyX
20397  (use 
20398 \begin_inset Flex Code
20399 status collapsed
20400
20401 \begin_layout Plain Layout
20402 Argument
20403 \end_layout
20404
20405 \end_inset
20406
20407  for customizable parameters).
20408  It will be output as is after all \SpecialChar LaTeX
20409  
20410 \begin_inset Flex Code
20411 status collapsed
20412
20413 \begin_layout Plain Layout
20414 Argument
20415 \end_layout
20416
20417 \end_inset
20418
20419 s.
20420 \end_layout
20421
20422 \begin_layout Description
20423 \begin_inset Flex Code
20424 status collapsed
20425
20426 \begin_layout Plain Layout
20427 LatexType
20428 \end_layout
20429
20430 \end_inset
20431
20432  [
20433 \begin_inset Flex Code
20434 status collapsed
20435
20436 \begin_layout Plain Layout
20437 Command, Environment, None
20438 \end_layout
20439
20440 \end_inset
20441
20442 ] How the style should be translated into \SpecialChar LaTeX
20443 .
20444 \begin_inset Foot
20445 status collapsed
20446
20447 \begin_layout Plain Layout
20448 \begin_inset Flex Code
20449 status collapsed
20450
20451 \begin_layout Plain Layout
20452 LatexType
20453 \end_layout
20454
20455 \end_inset
20456
20457  is perhaps a bit misleading, since these rules apply to SGML classes too.
20458  Visit the SGML class files for specific examples.
20459 \end_layout
20460
20461 \end_inset
20462
20463
20464 \end_layout
20465
20466 \begin_deeper
20467 \begin_layout Description
20468 \begin_inset Flex Code
20469 status collapsed
20470
20471 \begin_layout Plain Layout
20472 None
20473 \end_layout
20474
20475 \end_inset
20476
20477  means nothing special
20478 \end_layout
20479
20480 \begin_layout Description
20481 \begin_inset Flex Code
20482 status collapsed
20483
20484 \begin_layout Plain Layout
20485 Command
20486 \end_layout
20487
20488 \end_inset
20489
20490  means 
20491 \begin_inset Flex Code
20492 status collapsed
20493
20494 \begin_layout Plain Layout
20495
20496 \backslash
20497
20498 \emph on
20499 LatexName
20500 \emph default
20501 {\SpecialChar ldots
20502 }
20503 \end_layout
20504
20505 \end_inset
20506
20507
20508 \end_layout
20509
20510 \begin_layout Description
20511 \begin_inset Flex Code
20512 status collapsed
20513
20514 \begin_layout Plain Layout
20515 Environment
20516 \end_layout
20517
20518 \end_inset
20519
20520  means 
20521 \begin_inset Flex Code
20522 status collapsed
20523
20524 \begin_layout Plain Layout
20525
20526 \backslash
20527 begin{
20528 \emph on
20529 LatexName
20530 \emph default
20531 }\SpecialChar ldots
20532
20533 \backslash
20534 end{
20535 \emph on
20536 LatexName
20537 \emph default
20538 }
20539 \end_layout
20540
20541 \end_inset
20542
20543
20544 \end_layout
20545
20546 \begin_layout Standard
20547 Putting the last few things together, the \SpecialChar LaTeX
20548  output will be either: 
20549 \end_layout
20550
20551 \begin_layout LyX-Code
20552
20553 \backslash
20554 LatexName[LatexParam]{\SpecialChar ldots
20555 }
20556 \end_layout
20557
20558 \begin_layout Standard
20559 or: 
20560 \end_layout
20561
20562 \begin_layout LyX-Code
20563
20564 \backslash
20565 begin{LatexName}[LatexParam] \SpecialChar ldots
20566  
20567 \backslash
20568 end{LatexName}
20569 \end_layout
20570
20571 \begin_layout Standard
20572 depending upon the \SpecialChar LaTeX
20573  type.
20574 \end_layout
20575
20576 \end_deeper
20577 \begin_layout Description
20578 \begin_inset Flex Code
20579 status collapsed
20580
20581 \begin_layout Plain Layout
20582 LeftDelim
20583 \end_layout
20584
20585 \end_inset
20586
20587  [
20588 \begin_inset Flex Code
20589 status collapsed
20590
20591 \begin_layout Plain Layout
20592 string
20593 \end_layout
20594
20595 \end_inset
20596
20597 ] A string that is put at the beginning of the layout content.
20598  A line break in the output can be indicated by 
20599 \begin_inset Flex Code
20600 status collapsed
20601
20602 \begin_layout Plain Layout
20603 <br/>
20604 \end_layout
20605
20606 \end_inset
20607
20608 .
20609 \end_layout
20610
20611 \begin_layout Description
20612 \begin_inset Flex Code
20613 status collapsed
20614
20615 \begin_layout Plain Layout
20616 LyxType
20617 \end_layout
20618
20619 \end_inset
20620
20621  Can be 
20622 \begin_inset Flex Code
20623 status collapsed
20624
20625 \begin_layout Plain Layout
20626 charstyle
20627 \end_layout
20628
20629 \end_inset
20630
20631
20632 \begin_inset Flex Code
20633 status collapsed
20634
20635 \begin_layout Plain Layout
20636 custom
20637 \end_layout
20638
20639 \end_inset
20640
20641
20642 \begin_inset Flex Code
20643 status collapsed
20644
20645 \begin_layout Plain Layout
20646 element
20647 \end_layout
20648
20649 \end_inset
20650
20651  or 
20652 \begin_inset Flex Code
20653 status collapsed
20654
20655 \begin_layout Plain Layout
20656 end
20657 \end_layout
20658
20659 \end_inset
20660
20661  (indicating a dummy definition ending definitions of charstyles, etc).
20662  This entry is required in and is only meaningful for Flex insets.
20663  Among other things, it determines on which menu this inset will appear.
20664  Setting 
20665 \begin_inset Flex Code
20666 status collapsed
20667
20668 \begin_layout Plain Layout
20669 LyxType
20670 \end_layout
20671
20672 \end_inset
20673
20674  to 
20675 \begin_inset Flex Code
20676 status collapsed
20677
20678 \begin_layout Plain Layout
20679 charstyle
20680 \end_layout
20681
20682 \end_inset
20683
20684  will automatically set 
20685 \begin_inset Flex Code
20686 status collapsed
20687
20688 \begin_layout Plain Layout
20689 MultiPar
20690 \end_layout
20691
20692 \end_inset
20693
20694  to false and 
20695 \begin_inset Flex Code
20696 status collapsed
20697
20698 \begin_layout Plain Layout
20699 ForcePlain
20700 \end_layout
20701
20702 \end_inset
20703
20704  to true.
20705  
20706 \begin_inset Flex Code
20707 status collapsed
20708
20709 \begin_layout Plain Layout
20710 MultiPar
20711 \end_layout
20712
20713 \end_inset
20714
20715  can be set to true, or 
20716 \begin_inset Flex Code
20717 status collapsed
20718
20719 \begin_layout Plain Layout
20720 ForcePlain
20721 \end_layout
20722
20723 \end_inset
20724
20725  to false, for 
20726 \begin_inset Flex Code
20727 status collapsed
20728
20729 \begin_layout Plain Layout
20730 charstyle
20731 \end_layout
20732
20733 \end_inset
20734
20735  insets by setting it 
20736 \emph on
20737 after
20738 \emph default
20739  you set the 
20740 \begin_inset Flex Code
20741 status collapsed
20742
20743 \begin_layout Plain Layout
20744 LyxType
20745 \end_layout
20746
20747 \end_inset
20748
20749 .
20750 \change_inserted -712698321 1555575738
20751
20752 \end_layout
20753
20754 \begin_layout Description
20755
20756 \change_inserted -712698321 1555575844
20757 \begin_inset Flex Code
20758 status collapsed
20759
20760 \begin_layout Plain Layout
20761
20762 \change_inserted -712698321 1555575740
20763 MenuString
20764 \end_layout
20765
20766 \end_inset
20767
20768  
20769 \begin_inset Flex Code
20770 status collapsed
20771
20772 \begin_layout Plain Layout
20773
20774 \change_inserted -712698321 1555575740
20775 [string]
20776 \end_layout
20777
20778 \end_inset
20779
20780  A dedicated string for the menu.
20781  You can define an accelerator by appending the respective character to
20782  the string, divided by 
20783 \begin_inset Quotes eld
20784 \end_inset
20785
20786 |
20787 \begin_inset Quotes erd
20788 \end_inset
20789
20790  (e.
20791 \begin_inset space \thinspace{}
20792 \end_inset
20793
20794 g.
20795 \begin_inset space \space{}
20796 \end_inset
20797
20798
20799 \begin_inset Quotes eld
20800 \end_inset
20801
20802
20803 \begin_inset Flex Code
20804 status collapsed
20805
20806 \begin_layout Plain Layout
20807
20808 \change_inserted -712698321 1555575781
20809 My Inset|M
20810 \end_layout
20811
20812 \end_inset
20813
20814
20815 \begin_inset Quotes erd
20816 \end_inset
20817
20818 ).
20819  This specification is optional.
20820  If it is not given the inset name as specified in the type declaration
20821  will be used instead for the menu.
20822 \change_unchanged
20823
20824 \end_layout
20825
20826 \begin_layout Description
20827 \begin_inset Flex Code
20828 status collapsed
20829
20830 \begin_layout Plain Layout
20831 MultiPar
20832 \end_layout
20833
20834 \end_inset
20835
20836  [
20837 \begin_inset Flex Code
20838 status collapsed
20839
20840 \begin_layout Plain Layout
20841
20842 \emph on
20843 0
20844 \end_layout
20845
20846 \end_inset
20847
20848 ,
20849 \begin_inset space \thinspace{}
20850 \end_inset
20851
20852
20853 \begin_inset Flex Code
20854 status collapsed
20855
20856 \begin_layout Plain Layout
20857 1
20858 \end_layout
20859
20860 \end_inset
20861
20862 ] Whether multiple paragraphs are permitted in this inset.
20863  This will also set 
20864 \begin_inset Flex Code
20865 status collapsed
20866
20867 \begin_layout Plain Layout
20868 CustomPars
20869 \end_layout
20870
20871 \end_inset
20872
20873  to the same value and 
20874 \begin_inset Flex Code
20875 status collapsed
20876
20877 \begin_layout Plain Layout
20878 ForcePlain
20879 \end_layout
20880
20881 \end_inset
20882
20883  to the opposite value.
20884  These can be reset to other values, if they are used 
20885 \emph on
20886 after
20887 \emph default
20888  
20889 \begin_inset Flex Code
20890 status collapsed
20891
20892 \begin_layout Plain Layout
20893 MultiPar
20894 \end_layout
20895
20896 \end_inset
20897
20898 .
20899  Default is true.
20900 \end_layout
20901
20902 \begin_layout Description
20903 \begin_inset Flex Code
20904 status collapsed
20905
20906 \begin_layout Plain Layout
20907 NeedProtect
20908 \end_layout
20909
20910 \end_inset
20911
20912  [
20913 \begin_inset Flex Code
20914 status collapsed
20915
20916 \begin_layout Plain Layout
20917
20918 \emph on
20919 0
20920 \end_layout
20921
20922 \end_inset
20923
20924 ,
20925 \begin_inset space \thinspace{}
20926 \end_inset
20927
20928
20929 \begin_inset Flex Code
20930 status collapsed
20931
20932 \begin_layout Plain Layout
20933 1
20934 \end_layout
20935
20936 \end_inset
20937
20938 ] Whether fragile commands in this inset should be 
20939 \begin_inset Flex Code
20940 status collapsed
20941
20942 \begin_layout Plain Layout
20943
20944 \backslash
20945 protect
20946 \end_layout
20947
20948 \end_inset
20949
20950 'ed.
20951  (Note: This is 
20952 \emph on
20953 not
20954 \emph default
20955  whether the command should itself be protected.) Default is false.
20956 \change_inserted -712698321 1523633958
20957
20958 \end_layout
20959
20960 \begin_layout Description
20961
20962 \change_inserted -712698321 1552395786
20963 \begin_inset Flex Code
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967
20968 \change_inserted -712698321 1523633961
20969 NeedCProtect
20970 \end_layout
20971
20972 \end_inset
20973
20974  [
20975 \begin_inset Flex Code
20976 status collapsed
20977
20978 \begin_layout Plain Layout
20979
20980 \change_inserted -712698321 1523633958
20981
20982 \emph on
20983 0
20984 \end_layout
20985
20986 \end_inset
20987
20988 ,
20989 \begin_inset space \thinspace{}
20990 \end_inset
20991
20992
20993 \begin_inset Flex Code
20994 status collapsed
20995
20996 \begin_layout Plain Layout
20997
20998 \change_inserted -712698321 1523633958
20999 1
21000 \end_layout
21001
21002 \end_inset
21003
21004 ] This causes macros that contain this inset to be protected with 
21005 \begin_inset Flex Code
21006 status collapsed
21007
21008 \begin_layout Plain Layout
21009
21010 \change_inserted -712698321 1523634038
21011
21012 \backslash
21013 cprotect
21014 \change_unchanged
21015
21016 \end_layout
21017
21018 \end_inset
21019
21020  (cf.
21021  package 
21022 \family sans
21023 cprotect
21024 \family default
21025 ) if necessary and thus allows (some) verbatim stuff in macros.
21026  Default is false.
21027 \end_layout
21028
21029 \begin_layout Description
21030
21031 \change_inserted -712698321 1555579651
21032 \begin_inset Flex Code
21033 status collapsed
21034
21035 \begin_layout Plain Layout
21036
21037 \change_inserted -712698321 1552395787
21038 NeedMBoxProtect
21039 \end_layout
21040
21041 \end_inset
21042
21043  [
21044 \begin_inset Flex Code
21045 status collapsed
21046
21047 \begin_layout Plain Layout
21048
21049 \change_inserted -712698321 1552395787
21050
21051 \emph on
21052 0
21053 \end_layout
21054
21055 \end_inset
21056
21057 ,
21058 \begin_inset space \thinspace{}
21059 \end_inset
21060
21061
21062 \begin_inset Flex Code
21063 status collapsed
21064
21065 \begin_layout Plain Layout
21066
21067 \change_inserted -712698321 1552395787
21068 1
21069 \end_layout
21070
21071 \end_inset
21072
21073 ] Whether specific commands in this inset (such as 
21074 \begin_inset Flex Code
21075 status collapsed
21076
21077 \begin_layout Plain Layout
21078
21079 \change_inserted -712698321 1552395787
21080
21081 \backslash
21082 cite
21083 \end_layout
21084
21085 \end_inset
21086
21087  and 
21088 \begin_inset Flex Code
21089 status collapsed
21090
21091 \begin_layout Plain Layout
21092
21093 \change_inserted -712698321 1552395787
21094
21095 \backslash
21096 ref
21097 \end_layout
21098
21099 \end_inset
21100
21101 ) should be protected in an 
21102 \begin_inset Flex Code
21103 status collapsed
21104
21105 \begin_layout Plain Layout
21106
21107 \change_inserted -712698321 1552395787
21108
21109 \backslash
21110 mbox
21111 \end_layout
21112
21113 \end_inset
21114
21115 .
21116  This is particularly needed for insets that draw on 
21117 \family sans
21118 ulem
21119 \family default
21120  or 
21121 \family sans
21122 soul
21123 \family default
21124  commands which parse their content in complex ways.
21125  Default is false.
21126 \end_layout
21127
21128 \begin_layout Description
21129
21130 \change_inserted -712698321 1555579742
21131 \begin_inset Flex Code
21132 status collapsed
21133
21134 \begin_layout Plain Layout
21135
21136 \change_inserted -712698321 1555579658
21137 NewlineCmd
21138 \end_layout
21139
21140 \end_inset
21141
21142  
21143 \begin_inset Flex Code
21144 status collapsed
21145
21146 \begin_layout Plain Layout
21147
21148 \change_inserted -712698321 1555579651
21149 [string]
21150 \end_layout
21151
21152 \end_inset
21153
21154  Option to define a different command (from the default 
21155 \begin_inset Flex Code
21156 status collapsed
21157
21158 \begin_layout Plain Layout
21159
21160 \change_inserted -712698321 1555579742
21161
21162 \backslash
21163
21164 \backslash
21165
21166 \change_unchanged
21167
21168 \end_layout
21169
21170 \end_inset
21171
21172 ) to be used for line breaks.
21173  The initial backslash must not be specified.
21174 \change_unchanged
21175
21176 \end_layout
21177
21178 \begin_layout Description
21179 \begin_inset Flex Code
21180 status collapsed
21181
21182 \begin_layout Plain Layout
21183 NoInsetLayout
21184 \end_layout
21185
21186 \end_inset
21187
21188  [
21189 \begin_inset Flex Code
21190 status collapsed
21191
21192 \begin_layout Plain Layout
21193 <layout>
21194 \end_layout
21195
21196 \end_inset
21197
21198 ] Deletes an existing 
21199 \begin_inset Flex Code
21200 status collapsed
21201
21202 \begin_layout Plain Layout
21203 InsetLayout
21204 \end_layout
21205
21206 \end_inset
21207
21208 .
21209 \end_layout
21210
21211 \begin_layout Description
21212 \begin_inset Flex Code
21213 status collapsed
21214
21215 \begin_layout Plain Layout
21216 ObsoletedBy
21217 \end_layout
21218
21219 \end_inset
21220
21221  [
21222 \begin_inset Flex Code
21223 status collapsed
21224
21225 \begin_layout Plain Layout
21226 <layout>
21227 \end_layout
21228
21229 \end_inset
21230
21231 ] Name of an 
21232 \begin_inset Flex Code
21233 status collapsed
21234
21235 \begin_layout Plain Layout
21236 InsetLayout
21237 \end_layout
21238
21239 \end_inset
21240
21241  that has replaced this 
21242 \begin_inset Flex Code
21243 status collapsed
21244
21245 \begin_layout Plain Layout
21246 InsetLayout
21247 \end_layout
21248
21249 \end_inset
21250
21251 .
21252  This is used to rename an 
21253 \begin_inset Flex Code
21254 status collapsed
21255
21256 \begin_layout Plain Layout
21257 InsetLayout
21258 \end_layout
21259
21260 \end_inset
21261
21262 , while keeping backward compatibility.
21263 \change_inserted -712698321 1559491850
21264
21265 \end_layout
21266
21267 \begin_layout Description
21268
21269 \change_inserted -712698321 1559492002
21270 \begin_inset Flex Code
21271 status collapsed
21272
21273 \begin_layout Plain Layout
21274
21275 \change_inserted -712698321 1559491854
21276 ParbreakIgnored
21277 \end_layout
21278
21279 \end_inset
21280
21281  [
21282 \begin_inset Flex Code
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286
21287 \change_inserted -712698321 1559491850
21288
21289 \emph on
21290 0
21291 \end_layout
21292
21293 \end_inset
21294
21295 ,
21296 \begin_inset space \thinspace{}
21297 \end_inset
21298
21299
21300 \begin_inset Flex Code
21301 status collapsed
21302
21303 \begin_layout Plain Layout
21304
21305 \change_inserted -712698321 1559491850
21306 1
21307 \end_layout
21308
21309 \end_inset
21310
21311 ] If this is set to 
21312 \begin_inset Flex Code
21313 status collapsed
21314
21315 \begin_layout Plain Layout
21316
21317 \change_inserted -712698321 1559491881
21318 1
21319 \change_unchanged
21320
21321 \end_layout
21322
21323 \end_inset
21324
21325 , paragraph breaks will be ignored in the output.
21326  This might be useful for insets where the content should be alignable on
21327  different lines only in the \SpecialChar LyX
21328  workarea, without any effect in the output.
21329 \change_unchanged
21330
21331 \end_layout
21332
21333 \begin_layout Description
21334 \begin_inset Flex Code
21335 status collapsed
21336
21337 \begin_layout Plain Layout
21338 ParbreakIsNewline
21339 \end_layout
21340
21341 \end_inset
21342
21343  [
21344 \begin_inset Flex Code
21345 status collapsed
21346
21347 \begin_layout Plain Layout
21348
21349 \emph on
21350 0
21351 \end_layout
21352
21353 \end_inset
21354
21355 ,
21356 \begin_inset space \thinspace{}
21357 \end_inset
21358
21359
21360 \begin_inset Flex Code
21361 status collapsed
21362
21363 \begin_layout Plain Layout
21364 1
21365 \end_layout
21366
21367 \end_inset
21368
21369 ] As with paragraph styles, see 
21370 \begin_inset CommandInset ref
21371 LatexCommand ref
21372 reference "subsec:Paragraph-Styles"
21373
21374 \end_inset
21375
21376 .
21377  Default is false.
21378 \end_layout
21379
21380 \begin_layout Description
21381 \begin_inset Flex Code
21382 status collapsed
21383
21384 \begin_layout Plain Layout
21385 PassThru
21386 \end_layout
21387
21388 \end_inset
21389
21390  [
21391 \begin_inset Flex Code
21392 status collapsed
21393
21394 \begin_layout Plain Layout
21395
21396 \emph on
21397 0
21398 \end_layout
21399
21400 \end_inset
21401
21402 ,
21403 \begin_inset space \thinspace{}
21404 \end_inset
21405
21406
21407 \begin_inset Flex Code
21408 status collapsed
21409
21410 \begin_layout Plain Layout
21411 1
21412 \end_layout
21413
21414 \end_inset
21415
21416 ] As with paragraph styles, see 
21417 \begin_inset CommandInset ref
21418 LatexCommand ref
21419 reference "subsec:Paragraph-Styles"
21420
21421 \end_inset
21422
21423 .
21424  Default is false.
21425 \end_layout
21426
21427 \begin_layout Description
21428 \begin_inset Flex Code
21429 status collapsed
21430
21431 \begin_layout Plain Layout
21432 Preamble
21433 \end_layout
21434
21435 \end_inset
21436
21437  As with paragraph styles, see 
21438 \begin_inset CommandInset ref
21439 LatexCommand ref
21440 reference "subsec:Paragraph-Styles"
21441
21442 \end_inset
21443
21444 .
21445 \end_layout
21446
21447 \begin_layout Description
21448 \begin_inset Flex Code
21449 status collapsed
21450
21451 \begin_layout Plain Layout
21452 RefPrefix
21453 \end_layout
21454
21455 \end_inset
21456
21457  [
21458 \begin_inset Flex Code
21459 status collapsed
21460
21461 \begin_layout Plain Layout
21462 string
21463 \end_layout
21464
21465 \end_inset
21466
21467 ] The prefix to use when creating labels referring to insets of this type.
21468  This allows the use of formatted references.
21469 \end_layout
21470
21471 \begin_layout Description
21472 \begin_inset Flex Code
21473 status collapsed
21474
21475 \begin_layout Plain Layout
21476 Requires
21477 \end_layout
21478
21479 \end_inset
21480
21481  [
21482 \begin_inset Flex Code
21483 status collapsed
21484
21485 \begin_layout Plain Layout
21486 string
21487 \end_layout
21488
21489 \end_inset
21490
21491 ] As with paragraph styles, see 
21492 \begin_inset CommandInset ref
21493 LatexCommand ref
21494 reference "subsec:Paragraph-Styles"
21495
21496 \end_inset
21497
21498 .
21499 \end_layout
21500
21501 \begin_layout Description
21502 \begin_inset Flex Code
21503 status collapsed
21504
21505 \begin_layout Plain Layout
21506 ResetArgs
21507 \end_layout
21508
21509 \end_inset
21510
21511  [
21512 \begin_inset Flex Code
21513 status collapsed
21514
21515 \begin_layout Plain Layout
21516
21517 \emph on
21518 0
21519 \end_layout
21520
21521 \end_inset
21522
21523 ,
21524 \begin_inset space \thinspace{}
21525 \end_inset
21526
21527
21528 \begin_inset Flex Code
21529 status collapsed
21530
21531 \begin_layout Plain Layout
21532 1
21533 \end_layout
21534
21535 \end_inset
21536
21537 ] Resets the \SpecialChar LaTeX
21538  arguments of this layout (as defined via the 
21539 \begin_inset Flex Code
21540 status collapsed
21541
21542 \begin_layout Plain Layout
21543 Argument
21544 \end_layout
21545
21546 \end_inset
21547
21548  tag).
21549  This is useful if you have copied a style via 
21550 \begin_inset Flex Code
21551 status collapsed
21552
21553 \begin_layout Plain Layout
21554 CopyStyle
21555 \end_layout
21556
21557 \end_inset
21558
21559 , but you do not want to inherit its (required and optional) arguments.
21560 \end_layout
21561
21562 \begin_layout Description
21563 \begin_inset Flex Code
21564 status collapsed
21565
21566 \begin_layout Plain Layout
21567 ResetsFont
21568 \end_layout
21569
21570 \end_inset
21571
21572  [
21573 \begin_inset Flex Code
21574 status collapsed
21575
21576 \begin_layout Plain Layout
21577 0
21578 \end_layout
21579
21580 \end_inset
21581
21582 ,
21583 \begin_inset space \thinspace{}
21584 \end_inset
21585
21586
21587 \begin_inset Flex Code
21588 status collapsed
21589
21590 \begin_layout Plain Layout
21591
21592 \emph on
21593 1
21594 \end_layout
21595
21596 \end_inset
21597
21598 ] Whether this inset should use the font of its surrounding environment
21599  or uses its own.
21600  Default is false: use the font of the surrounding environment.
21601 \end_layout
21602
21603 \begin_layout Description
21604 \begin_inset Flex Code
21605 status collapsed
21606
21607 \begin_layout Plain Layout
21608 RightDelim
21609 \end_layout
21610
21611 \end_inset
21612
21613  [
21614 \begin_inset Flex Code
21615 status collapsed
21616
21617 \begin_layout Plain Layout
21618 string
21619 \end_layout
21620
21621 \end_inset
21622
21623 ] A string that is put at the end of the layout content.
21624  A line break in the output can be indicated by 
21625 \begin_inset Flex Code
21626 status collapsed
21627
21628 \begin_layout Plain Layout
21629 <br/>
21630 \end_layout
21631
21632 \end_inset
21633
21634 .
21635 \end_layout
21636
21637 \begin_layout Description
21638 \begin_inset Flex Code
21639 status collapsed
21640
21641 \begin_layout Plain Layout
21642 Spellcheck
21643 \end_layout
21644
21645 \end_inset
21646
21647  [
21648 \begin_inset Flex Code
21649 status collapsed
21650
21651 \begin_layout Plain Layout
21652 0
21653 \end_layout
21654
21655 \end_inset
21656
21657 ,
21658 \begin_inset space \thinspace{}
21659 \end_inset
21660
21661
21662 \begin_inset Flex Code
21663 status collapsed
21664
21665 \begin_layout Plain Layout
21666
21667 \emph on
21668 1
21669 \end_layout
21670
21671 \end_inset
21672
21673 ] Allow spell-checking the contents of this inset.
21674  Default is true.
21675 \end_layout
21676
21677 \begin_layout Subsection
21678 Counters
21679 \begin_inset CommandInset label
21680 LatexCommand label
21681 name "subsec:Counters"
21682
21683 \end_inset
21684
21685
21686 \end_layout
21687
21688 \begin_layout Standard
21689 It is necessary to define the counters (
21690 \begin_inset Flex Noun
21691 status collapsed
21692
21693 \begin_layout Plain Layout
21694 chapter
21695 \end_layout
21696
21697 \end_inset
21698
21699
21700 \begin_inset Flex Noun
21701 status collapsed
21702
21703 \begin_layout Plain Layout
21704 figure
21705 \end_layout
21706
21707 \end_inset
21708
21709 , \SpecialChar ldots
21710 ) in the text class itself.
21711  The standard counters are defined in the file 
21712 \begin_inset Flex Code
21713 status collapsed
21714
21715 \begin_layout Plain Layout
21716 stdcounters.inc
21717 \end_layout
21718
21719 \end_inset
21720
21721 , so you may have to do no more than add
21722 \end_layout
21723
21724 \begin_layout LyX-Code
21725 Input stdcounters.inc
21726 \end_layout
21727
21728 \begin_layout Standard
21729 to your layout file to get them to work.
21730  But if you want to define custom counters, then you can do so.
21731  The counter declaration must begin with:
21732 \end_layout
21733
21734 \begin_layout LyX-Code
21735 Counter CounterName
21736 \end_layout
21737
21738 \begin_layout Standard
21739 where of course `
21740 \begin_inset Flex Code
21741 status collapsed
21742
21743 \begin_layout Plain Layout
21744 CounterName
21745 \end_layout
21746
21747 \end_inset
21748
21749 ' is replaced by the name of the counter.
21750  And it must end with 
21751 \begin_inset Quotes eld
21752 \end_inset
21753
21754
21755 \begin_inset Flex Code
21756 status collapsed
21757
21758 \begin_layout Plain Layout
21759 End
21760 \end_layout
21761
21762 \end_inset
21763
21764
21765 \begin_inset Quotes erd
21766 \end_inset
21767
21768 .
21769  The following parameters can also be used:
21770 \end_layout
21771
21772 \begin_layout Description
21773 \begin_inset Flex Code
21774 status collapsed
21775
21776 \begin_layout Plain Layout
21777 InitialValue
21778 \end_layout
21779
21780 \end_inset
21781
21782  [
21783 \begin_inset Flex Code
21784 status collapsed
21785
21786 \begin_layout Plain Layout
21787 int=1
21788 \end_layout
21789
21790 \end_inset
21791
21792 ] Sets the initial value for the counter, to which it will be reset whenever
21793  that happens.
21794  Normally, one will want the default, 1.
21795 \end_layout
21796
21797 \begin_layout Description
21798 \begin_inset Flex Code
21799 status collapsed
21800
21801 \begin_layout Plain Layout
21802 LabelString
21803 \end_layout
21804
21805 \end_inset
21806
21807  [
21808 \begin_inset Flex Code
21809 status collapsed
21810
21811 \begin_layout Plain Layout
21812 string
21813 \end_layout
21814
21815 \end_inset
21816
21817 =
21818 \begin_inset Quotes erd
21819 \end_inset
21820
21821
21822 \begin_inset Quotes erd
21823 \end_inset
21824
21825 ] When defined, this string defines how the counter is displayed.
21826  Setting this value sets 
21827 \begin_inset Flex Code
21828 status collapsed
21829
21830 \begin_layout Plain Layout
21831 LabelStringAppendix
21832 \end_layout
21833
21834 \end_inset
21835
21836  to the same value.
21837  The following special constructs can be used in the string:
21838 \end_layout
21839
21840 \begin_deeper
21841 \begin_layout Itemize
21842 \begin_inset Flex Code
21843 status collapsed
21844
21845 \begin_layout Plain Layout
21846
21847 \backslash
21848 thecounter
21849 \end_layout
21850
21851 \end_inset
21852
21853  will be replaced by the expansion of the 
21854 \begin_inset Flex Code
21855 status collapsed
21856
21857 \begin_layout Plain Layout
21858 LabelString
21859 \end_layout
21860
21861 \end_inset
21862
21863  (or 
21864 \begin_inset Flex Code
21865 status collapsed
21866
21867 \begin_layout Plain Layout
21868 LabelStringAppendix
21869 \end_layout
21870
21871 \end_inset
21872
21873 ) of the counter 
21874 \begin_inset Flex Code
21875 status collapsed
21876
21877 \begin_layout Plain Layout
21878 counter
21879 \end_layout
21880
21881 \end_inset
21882
21883 .
21884  
21885 \end_layout
21886
21887 \begin_layout Itemize
21888 counter values can be expressed using \SpecialChar LaTeX
21889 -like macros
21890 \begin_inset Newline newline
21891 \end_inset
21892
21893
21894 \begin_inset Flex Code
21895 status collapsed
21896
21897 \begin_layout Plain Layout
21898
21899 \backslash
21900
21901 \emph on
21902 numbertype
21903 \emph default
21904 {
21905 \emph on
21906 counter
21907 \emph default
21908 }
21909 \end_layout
21910
21911 \end_inset
21912
21913 , where 
21914 \begin_inset Flex Code
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918
21919 \emph on
21920 numbertype
21921 \end_layout
21922
21923 \end_inset
21924
21925  can be:
21926 \begin_inset Foot
21927 status collapsed
21928
21929 \begin_layout Plain Layout
21930
21931 \family roman
21932 \series medium
21933 \shape up
21934 \size normal
21935 \emph off
21936 \bar no
21937 \noun off
21938 \color none
21939 Actually, the situation is a bit more complicated: any
21940 \family default
21941 \series default
21942 \shape default
21943 \emph default
21944 \bar default
21945  
21946 \size default
21947 \emph on
21948 \noun default
21949 \color inherit
21950 numbertype
21951 \family roman
21952 \series medium
21953 \shape up
21954 \size normal
21955 \emph off
21956 \bar no
21957 \noun off
21958  other than those described below will produce arabic numerals.
21959  It would not be surprising to see this change in the future.
21960 \end_layout
21961
21962 \end_inset
21963
21964  
21965 \begin_inset Flex Code
21966 status collapsed
21967
21968 \begin_layout Plain Layout
21969 arabic
21970 \end_layout
21971
21972 \end_inset
21973
21974 : 1, 2, 3,\SpecialChar ldots
21975
21976 \begin_inset Flex Code
21977 status collapsed
21978
21979 \begin_layout Plain Layout
21980 alph
21981 \end_layout
21982
21983 \end_inset
21984
21985  for lower-case letters: a, b, c, \SpecialChar ldots
21986
21987 \begin_inset Flex Code
21988 status collapsed
21989
21990 \begin_layout Plain Layout
21991 Alph
21992 \end_layout
21993
21994 \end_inset
21995
21996  for upper-case letters: A, B, C, \SpecialChar ldots
21997
21998 \begin_inset Flex Code
21999 status collapsed
22000
22001 \begin_layout Plain Layout
22002 roman
22003 \end_layout
22004
22005 \end_inset
22006
22007  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
22008
22009 \begin_inset Flex Code
22010 status collapsed
22011
22012 \begin_layout Plain Layout
22013 Roman
22014 \end_layout
22015
22016 \end_inset
22017
22018  for upper-case roman numerals: I, II, III\SpecialChar ldots
22019
22020 \begin_inset Flex Code
22021 status collapsed
22022
22023 \begin_layout Plain Layout
22024 hebrew
22025 \end_layout
22026
22027 \end_inset
22028
22029  for hebrew numerals.
22030 \end_layout
22031
22032 \end_deeper
22033 \begin_layout Standard
22034 If LabelString is not defined, a default value is constructed as follows:
22035  if the counter has a master counter 
22036 \begin_inset Flex Code
22037 status collapsed
22038
22039 \begin_layout Plain Layout
22040 master
22041 \end_layout
22042
22043 \end_inset
22044
22045  (defined via 
22046 \begin_inset Flex Code
22047 status collapsed
22048
22049 \begin_layout Plain Layout
22050 Within
22051 \end_layout
22052
22053 \end_inset
22054
22055 ), the string
22056 \begin_inset Newline newline
22057 \end_inset
22058
22059
22060 \begin_inset Flex Code
22061 status collapsed
22062
22063 \begin_layout Plain Layout
22064
22065 \backslash
22066 themaster.
22067 \backslash
22068 arabic{counter}
22069 \end_layout
22070
22071 \end_inset
22072
22073  is used; otherwise the string 
22074 \begin_inset Flex Code
22075 status collapsed
22076
22077 \begin_layout Plain Layout
22078
22079 \backslash
22080 arabic{counter}
22081 \end_layout
22082
22083 \end_inset
22084
22085  is used.
22086 \end_layout
22087
22088 \begin_layout Description
22089 \begin_inset Flex Code
22090 status collapsed
22091
22092 \begin_layout Plain Layout
22093 LabelStringAppendix
22094 \end_layout
22095
22096 \end_inset
22097
22098  [
22099 \begin_inset Flex Code
22100 status collapsed
22101
22102 \begin_layout Plain Layout
22103 string
22104 \end_layout
22105
22106 \end_inset
22107
22108 =
22109 \begin_inset Quotes erd
22110 \end_inset
22111
22112
22113 \begin_inset Quotes erd
22114 \end_inset
22115
22116 ] Same as 
22117 \begin_inset Flex Code
22118 status collapsed
22119
22120 \begin_layout Plain Layout
22121 LabelString
22122 \end_layout
22123
22124 \end_inset
22125
22126 , but for use in the Appendix.
22127 \end_layout
22128
22129 \begin_layout Description
22130 \begin_inset Flex Code
22131 status collapsed
22132
22133 \begin_layout Plain Layout
22134 PrettyFormat
22135 \end_layout
22136
22137 \end_inset
22138
22139  [
22140 \begin_inset Flex Code
22141 status collapsed
22142
22143 \begin_layout Plain Layout
22144 string
22145 \end_layout
22146
22147 \end_inset
22148
22149 =
22150 \begin_inset Quotes erd
22151 \end_inset
22152
22153
22154 \begin_inset Quotes erd
22155 \end_inset
22156
22157 ] A format for use with formatted references to this counter.
22158  For example, one might want to have references to section numbers appear
22159  as 
22160 \begin_inset Quotes eld
22161 \end_inset
22162
22163 Section 2.4
22164 \begin_inset Quotes erd
22165 \end_inset
22166
22167 .
22168  The string should contain 
22169 \begin_inset Quotes eld
22170 \end_inset
22171
22172 ##
22173 \begin_inset Quotes erd
22174 \end_inset
22175
22176 .
22177  This will be replaced by the counter number itself.
22178  So, for sections, it would be: Section ##.
22179 \end_layout
22180
22181 \begin_layout Description
22182 \begin_inset Flex Code
22183 status collapsed
22184
22185 \begin_layout Plain Layout
22186 Within
22187 \end_layout
22188
22189 \end_inset
22190
22191  [
22192 \begin_inset Flex Code
22193 status collapsed
22194
22195 \begin_layout Plain Layout
22196 string
22197 \end_layout
22198
22199 \end_inset
22200
22201 =
22202 \begin_inset Quotes erd
22203 \end_inset
22204
22205
22206 \begin_inset Quotes erd
22207 \end_inset
22208
22209 ] If this is set to the name of another counter, the present counter will
22210  be reset every time the other one is increased.
22211  For example, 
22212 \begin_inset Flex Code
22213 status collapsed
22214
22215 \begin_layout Plain Layout
22216 subsection
22217 \end_layout
22218
22219 \end_inset
22220
22221  is numbered inside 
22222 \begin_inset Flex Code
22223 status collapsed
22224
22225 \begin_layout Plain Layout
22226 section
22227 \end_layout
22228
22229 \end_inset
22230
22231 .
22232 \end_layout
22233
22234 \begin_layout Subsection
22235 Font description
22236 \begin_inset CommandInset label
22237 LatexCommand label
22238 name "subsec:Font-description"
22239
22240 \end_inset
22241
22242
22243 \end_layout
22244
22245 \begin_layout Standard
22246 A font description looks like this:
22247 \end_layout
22248
22249 \begin_layout LyX-Code
22250 Font 
22251 \family roman
22252 \emph on
22253 or
22254 \family default
22255 \emph default
22256  LabelFont
22257 \emph on
22258  
22259 \family roman
22260 or
22261 \family default
22262 \emph default
22263  DefaultFont
22264 \end_layout
22265
22266 \begin_layout LyX-Code
22267  ...
22268 \end_layout
22269
22270 \begin_layout LyX-Code
22271 EndFont
22272 \end_layout
22273
22274 \begin_layout Standard
22275 The following commands are available:
22276 \end_layout
22277
22278 \begin_layout Description
22279 \begin_inset Flex Code
22280 status collapsed
22281
22282 \begin_layout Plain Layout
22283 Color
22284 \end_layout
22285
22286 \end_inset
22287
22288  [
22289 \begin_inset Flex Code
22290 status collapsed
22291
22292 \begin_layout Plain Layout
22293
22294 \emph on
22295 none
22296 \end_layout
22297
22298 \end_inset
22299
22300
22301 \begin_inset Flex Code
22302 status collapsed
22303
22304 \begin_layout Plain Layout
22305 black
22306 \end_layout
22307
22308 \end_inset
22309
22310
22311 \begin_inset Flex Code
22312 status collapsed
22313
22314 \begin_layout Plain Layout
22315 white
22316 \end_layout
22317
22318 \end_inset
22319
22320
22321 \begin_inset Flex Code
22322 status collapsed
22323
22324 \begin_layout Plain Layout
22325 red
22326 \end_layout
22327
22328 \end_inset
22329
22330
22331 \begin_inset Flex Code
22332 status collapsed
22333
22334 \begin_layout Plain Layout
22335 green
22336 \end_layout
22337
22338 \end_inset
22339
22340
22341 \begin_inset Flex Code
22342 status collapsed
22343
22344 \begin_layout Plain Layout
22345 blue
22346 \end_layout
22347
22348 \end_inset
22349
22350
22351 \begin_inset Flex Code
22352 status collapsed
22353
22354 \begin_layout Plain Layout
22355 cyan
22356 \end_layout
22357
22358 \end_inset
22359
22360
22361 \begin_inset Flex Code
22362 status collapsed
22363
22364 \begin_layout Plain Layout
22365 magenta
22366 \end_layout
22367
22368 \end_inset
22369
22370
22371 \begin_inset Flex Code
22372 status collapsed
22373
22374 \begin_layout Plain Layout
22375 yellow
22376 \end_layout
22377
22378 \end_inset
22379
22380
22381 \begin_inset Flex Code
22382 status collapsed
22383
22384 \begin_layout Plain Layout
22385 brown
22386 \end_layout
22387
22388 \end_inset
22389
22390
22391 \begin_inset Flex Code
22392 status collapsed
22393
22394 \begin_layout Plain Layout
22395 darkgray
22396 \end_layout
22397
22398 \end_inset
22399
22400
22401 \begin_inset Flex Code
22402 status collapsed
22403
22404 \begin_layout Plain Layout
22405 gray
22406 \end_layout
22407
22408 \end_inset
22409
22410
22411 \begin_inset Flex Code
22412 status collapsed
22413
22414 \begin_layout Plain Layout
22415 lightgray
22416 \end_layout
22417
22418 \end_inset
22419
22420
22421 \begin_inset Flex Code
22422 status collapsed
22423
22424 \begin_layout Plain Layout
22425 lime
22426 \end_layout
22427
22428 \end_inset
22429
22430
22431 \begin_inset Flex Code
22432 status collapsed
22433
22434 \begin_layout Plain Layout
22435 orange
22436 \end_layout
22437
22438 \end_inset
22439
22440
22441 \begin_inset Flex Code
22442 status collapsed
22443
22444 \begin_layout Plain Layout
22445 olive
22446 \end_layout
22447
22448 \end_inset
22449
22450
22451 \begin_inset Flex Code
22452 status collapsed
22453
22454 \begin_layout Plain Layout
22455 pink
22456 \end_layout
22457
22458 \end_inset
22459
22460
22461 \begin_inset Flex Code
22462 status collapsed
22463
22464 \begin_layout Plain Layout
22465 purple
22466 \end_layout
22467
22468 \end_inset
22469
22470
22471 \begin_inset Flex Code
22472 status collapsed
22473
22474 \begin_layout Plain Layout
22475 teal
22476 \end_layout
22477
22478 \end_inset
22479
22480
22481 \begin_inset Flex Code
22482 status collapsed
22483
22484 \begin_layout Plain Layout
22485 violet
22486 \end_layout
22487
22488 \end_inset
22489
22490 ]
22491 \end_layout
22492
22493 \begin_layout Description
22494 \begin_inset Flex Code
22495 status collapsed
22496
22497 \begin_layout Plain Layout
22498 Family
22499 \end_layout
22500
22501 \end_inset
22502
22503  [
22504 \begin_inset Flex Code
22505 status collapsed
22506
22507 \begin_layout Plain Layout
22508
22509 \emph on
22510 Roman
22511 \end_layout
22512
22513 \end_inset
22514
22515
22516 \begin_inset Flex Code
22517 status collapsed
22518
22519 \begin_layout Plain Layout
22520 Sans
22521 \end_layout
22522
22523 \end_inset
22524
22525
22526 \begin_inset Flex Code
22527 status collapsed
22528
22529 \begin_layout Plain Layout
22530 Typewriter
22531 \end_layout
22532
22533 \end_inset
22534
22535 ]
22536 \end_layout
22537
22538 \begin_layout Description
22539 \begin_inset Flex Code
22540 status collapsed
22541
22542 \begin_layout Plain Layout
22543 Misc
22544 \end_layout
22545
22546 \end_inset
22547
22548  [
22549 \begin_inset Flex Code
22550 status collapsed
22551
22552 \begin_layout Plain Layout
22553 string
22554 \end_layout
22555
22556 \end_inset
22557
22558 ] Valid arguments are: 
22559 \begin_inset Flex Code
22560 status collapsed
22561
22562 \begin_layout Plain Layout
22563 emph
22564 \end_layout
22565
22566 \end_inset
22567
22568
22569 \begin_inset Flex Code
22570 status collapsed
22571
22572 \begin_layout Plain Layout
22573 noun
22574 \end_layout
22575
22576 \end_inset
22577
22578
22579 \begin_inset Flex Code
22580 status collapsed
22581
22582 \begin_layout Plain Layout
22583 strikeout
22584 \end_layout
22585
22586 \end_inset
22587
22588
22589 \begin_inset Flex Code
22590 status collapsed
22591
22592 \begin_layout Plain Layout
22593 underbar
22594 \end_layout
22595
22596 \end_inset
22597
22598
22599 \begin_inset Flex Code
22600 status collapsed
22601
22602 \begin_layout Plain Layout
22603 uuline
22604 \end_layout
22605
22606 \end_inset
22607
22608
22609 \begin_inset Flex Code
22610 status collapsed
22611
22612 \begin_layout Plain Layout
22613 uwave
22614 \end_layout
22615
22616 \end_inset
22617
22618
22619 \begin_inset Flex Code
22620 status collapsed
22621
22622 \begin_layout Plain Layout
22623 no_emph
22624 \end_layout
22625
22626 \end_inset
22627
22628
22629 \begin_inset Flex Code
22630 status collapsed
22631
22632 \begin_layout Plain Layout
22633 no_noun
22634 \end_layout
22635
22636 \end_inset
22637
22638
22639 \begin_inset Flex Code
22640 status collapsed
22641
22642 \begin_layout Plain Layout
22643 no_strikeout
22644 \end_layout
22645
22646 \end_inset
22647
22648
22649 \begin_inset Flex Code
22650 status collapsed
22651
22652 \begin_layout Plain Layout
22653 no_bar
22654 \end_layout
22655
22656 \end_inset
22657
22658
22659 \begin_inset Flex Code
22660 status collapsed
22661
22662 \begin_layout Plain Layout
22663 no_uuline
22664 \end_layout
22665
22666 \end_inset
22667
22668  and 
22669 \begin_inset Flex Code
22670 status collapsed
22671
22672 \begin_layout Plain Layout
22673 no_uwave
22674 \end_layout
22675
22676 \end_inset
22677
22678 .
22679  Each of these turns on or off the corresponding attribute.
22680  For example, 
22681 \begin_inset Flex Code
22682 status collapsed
22683
22684 \begin_layout Plain Layout
22685 emph
22686 \end_layout
22687
22688 \end_inset
22689
22690  turns on emphasis, and 
22691 \begin_inset Flex Code
22692 status collapsed
22693
22694 \begin_layout Plain Layout
22695 no_emph
22696 \end_layout
22697
22698 \end_inset
22699
22700  turns it off.
22701  
22702 \begin_inset Newline newline
22703 \end_inset
22704
22705 If the latter seems puzzling, remember that the font settings for the present
22706  context are generally inherited from the surrounding context.
22707  So 
22708 \begin_inset Flex Code
22709 status collapsed
22710
22711 \begin_layout Plain Layout
22712 no_emph
22713 \end_layout
22714
22715 \end_inset
22716
22717  would turn off the emphasis that was anyway in effect, say, in a theorem
22718  environment.
22719 \end_layout
22720
22721 \begin_layout Description
22722 \begin_inset Flex Code
22723 status collapsed
22724
22725 \begin_layout Plain Layout
22726 Series
22727 \end_layout
22728
22729 \end_inset
22730
22731  [
22732 \begin_inset Flex Code
22733 status collapsed
22734
22735 \begin_layout Plain Layout
22736
22737 \emph on
22738 Medium
22739 \end_layout
22740
22741 \end_inset
22742
22743
22744 \begin_inset Flex Code
22745 status collapsed
22746
22747 \begin_layout Plain Layout
22748 Bold
22749 \end_layout
22750
22751 \end_inset
22752
22753
22754 \end_layout
22755
22756 \begin_layout Description
22757 \begin_inset Flex Code
22758 status collapsed
22759
22760 \begin_layout Plain Layout
22761 Shape
22762 \end_layout
22763
22764 \end_inset
22765
22766  [
22767 \begin_inset Flex Code
22768 status collapsed
22769
22770 \begin_layout Plain Layout
22771
22772 \emph on
22773 Up
22774 \end_layout
22775
22776 \end_inset
22777
22778
22779 \begin_inset Flex Code
22780 status collapsed
22781
22782 \begin_layout Plain Layout
22783 Italic
22784 \end_layout
22785
22786 \end_inset
22787
22788
22789 \begin_inset Flex Code
22790 status collapsed
22791
22792 \begin_layout Plain Layout
22793 SmallCaps
22794 \end_layout
22795
22796 \end_inset
22797
22798
22799 \begin_inset Flex Code
22800 status collapsed
22801
22802 \begin_layout Plain Layout
22803 Slanted
22804 \end_layout
22805
22806 \end_inset
22807
22808
22809 \end_layout
22810
22811 \begin_layout Description
22812 \begin_inset Flex Code
22813 status collapsed
22814
22815 \begin_layout Plain Layout
22816 Size
22817 \end_layout
22818
22819 \end_inset
22820
22821  [
22822 \begin_inset Flex Code
22823 status collapsed
22824
22825 \begin_layout Plain Layout
22826 tiny
22827 \end_layout
22828
22829 \end_inset
22830
22831
22832 \begin_inset Flex Code
22833 status collapsed
22834
22835 \begin_layout Plain Layout
22836 small
22837 \end_layout
22838
22839 \end_inset
22840
22841
22842 \begin_inset Flex Code
22843 status collapsed
22844
22845 \begin_layout Plain Layout
22846
22847 \emph on
22848 normal
22849 \end_layout
22850
22851 \end_inset
22852
22853
22854 \begin_inset Flex Code
22855 status collapsed
22856
22857 \begin_layout Plain Layout
22858 large
22859 \end_layout
22860
22861 \end_inset
22862
22863
22864 \begin_inset Flex Code
22865 status collapsed
22866
22867 \begin_layout Plain Layout
22868 larger
22869 \end_layout
22870
22871 \end_inset
22872
22873
22874 \begin_inset Flex Code
22875 status collapsed
22876
22877 \begin_layout Plain Layout
22878 largest
22879 \end_layout
22880
22881 \end_inset
22882
22883
22884 \begin_inset Flex Code
22885 status collapsed
22886
22887 \begin_layout Plain Layout
22888 huge
22889 \end_layout
22890
22891 \end_inset
22892
22893
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 giant
22899 \end_layout
22900
22901 \end_inset
22902
22903 ]
22904 \end_layout
22905
22906 \begin_layout Subsection
22907 \begin_inset CommandInset label
22908 LatexCommand label
22909 name "subsec:Citation-engine-description"
22910
22911 \end_inset
22912
22913 Cite engine description
22914 \end_layout
22915
22916 \begin_layout Standard
22917 The 
22918 \begin_inset Flex Code
22919 status collapsed
22920
22921 \begin_layout Plain Layout
22922 CiteEngine
22923 \end_layout
22924
22925 \end_inset
22926
22927  blocks, as used mainly in cite engine files (see 
22928 \begin_inset CommandInset ref
22929 LatexCommand ref
22930 reference "subsec:Cite-Engine-Files"
22931 plural "false"
22932 caps "false"
22933 noprefix "false"
22934
22935 \end_inset
22936
22937 ), define the citation commands provided by a specific 
22938 \begin_inset Quotes eld
22939 \end_inset
22940
22941 cite engine
22942 \begin_inset Quotes erd
22943 \end_inset
22944
22945 .
22946  A cite engine, in \SpecialChar LyX
22947  terms, is way specific way to format citations, using
22948  numbers, author names and/or years.
22949  Currently, \SpecialChar LyX
22950  supports three such engine types, namely:
22951 \end_layout
22952
22953 \begin_layout Enumerate
22954 \begin_inset Flex Code
22955 status collapsed
22956
22957 \begin_layout Plain Layout
22958 default
22959 \end_layout
22960
22961 \end_inset
22962
22963 : the default Bib\SpecialChar TeX
22964  way to format citations, a simple numeric style (e.
22965 \begin_inset space \thinspace{}
22966 \end_inset
22967
22968 g., 
22969 \begin_inset Quotes eld
22970 \end_inset
22971
22972 [1]
22973 \begin_inset Quotes erd
22974 \end_inset
22975
22976 )
22977 \end_layout
22978
22979 \begin_layout Enumerate
22980 \begin_inset Flex Code
22981 status collapsed
22982
22983 \begin_layout Plain Layout
22984 authoryear
22985 \end_layout
22986
22987 \end_inset
22988
22989 : Harvard-styled citations using author names and publication year (e.
22990 \begin_inset space \thinspace{}
22991 \end_inset
22992
22993 g., 
22994 \begin_inset Quotes eld
22995 \end_inset
22996
22997 Smith and Miller (2017b)
22998 \begin_inset Quotes erd
22999 \end_inset
23000
23001 )
23002 \end_layout
23003
23004 \begin_layout Enumerate
23005 \begin_inset Flex Code
23006 status collapsed
23007
23008 \begin_layout Plain Layout
23009 numerical
23010 \end_layout
23011
23012 \end_inset
23013
23014 : extended numerical citations that also allow for author or title next
23015  to the number (e.
23016 \begin_inset space \thinspace{}
23017 \end_inset
23018
23019 g., 
23020 \begin_inset Quotes eld
23021 \end_inset
23022
23023 Smith and Miller [1]
23024 \begin_inset Quotes erd
23025 \end_inset
23026
23027 )
23028 \end_layout
23029
23030 \begin_layout Standard
23031 \begin_inset Flex Code
23032 status collapsed
23033
23034 \begin_layout Plain Layout
23035 CiteEngine
23036 \end_layout
23037
23038 \end_inset
23039
23040  blocks look like this:
23041 \end_layout
23042
23043 \begin_layout LyX-Code
23044 CiteEngine default
23045 \end_layout
23046
23047 \begin_layout LyX-Code
23048  cite
23049 \end_layout
23050
23051 \begin_layout LyX-Code
23052  Citep*[][]
23053 \end_layout
23054
23055 \begin_layout LyX-Code
23056  citeyearpar[][]=parencite*
23057 \end_layout
23058
23059 \begin_layout LyX-Code
23060  ...
23061 \end_layout
23062
23063 \begin_layout LyX-Code
23064 End
23065 \end_layout
23066
23067 \begin_layout Standard
23068 The tag following 
23069 \begin_inset Flex Code
23070 status collapsed
23071
23072 \begin_layout Plain Layout
23073 CiteEngine
23074 \end_layout
23075
23076 \end_inset
23077
23078  denotes the engine.
23079  The individual lines respectively define a cite command or cite command
23080  paradigm supported by this engine.
23081  The line can be as simple as a cite command that is used both to name the
23082  respective \SpecialChar LyX
23083  command and the \SpecialChar LaTeX
23084  output or more complex in order to differentiate
23085  things.
23086  The full syntax is:
23087 \end_layout
23088
23089 \begin_layout LyX-Code
23090 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23091 \end_layout
23092
23093 \begin_layout Itemize
23094 \begin_inset Flex Code
23095 status collapsed
23096
23097 \begin_layout Plain Layout
23098 LyXName
23099 \end_layout
23100
23101 \end_inset
23102
23103 : The name as used in the 
23104 \begin_inset Flex Code
23105 status collapsed
23106
23107 \begin_layout Plain Layout
23108 *.lyx
23109 \end_layout
23110
23111 \end_inset
23112
23113  file.
23114 \end_layout
23115
23116 \begin_deeper
23117 \begin_layout Standard
23118 For portability reasons, we try to use the same name for same-formatted
23119  commands in different cite packages (thus many names stem from natbib,
23120  and thus we need to differentiate a 
23121 \begin_inset Flex Code
23122 status collapsed
23123
23124 \begin_layout Plain Layout
23125 latexcmd
23126 \end_layout
23127
23128 \end_inset
23129
23130  sometimes, if the \SpecialChar LaTeX
23131  command names differ).
23132 \end_layout
23133
23134 \end_deeper
23135 \begin_layout Itemize
23136 \begin_inset Flex Code
23137 status collapsed
23138
23139 \begin_layout Plain Layout
23140 alias
23141 \end_layout
23142
23143 \end_inset
23144
23145 : a (comma-separated) list of commands that fall back to the given 
23146 \begin_inset Flex Code
23147 status collapsed
23148
23149 \begin_layout Plain Layout
23150 LyXName
23151 \end_layout
23152
23153 \end_inset
23154
23155  in the current engine.
23156  This eases the switch of citation packages and engines.
23157  The 
23158 \begin_inset Flex Code
23159 status collapsed
23160
23161 \begin_layout Plain Layout
23162 alias
23163 \end_layout
23164
23165 \end_inset
23166
23167  can be compared to 
23168 \begin_inset Flex Code
23169 status collapsed
23170
23171 \begin_layout Plain Layout
23172 ObsoletedBy
23173 \end_layout
23174
23175 \end_inset
23176
23177  in layout definitions.
23178 \end_layout
23179
23180 \begin_layout Itemize
23181 \begin_inset Flex Code
23182 status collapsed
23183
23184 \begin_layout Plain Layout
23185 latexcmd
23186 \end_layout
23187
23188 \end_inset
23189
23190 : The actual \SpecialChar LaTeX
23191  command that is output.
23192  
23193 \end_layout
23194
23195 \begin_layout Standard
23196 \begin_inset Flex Code
23197 status collapsed
23198
23199 \begin_layout Plain Layout
23200 Alias
23201 \end_layout
23202
23203 \end_inset
23204
23205  and 
23206 \begin_inset Flex Code
23207 status collapsed
23208
23209 \begin_layout Plain Layout
23210 latexcmd
23211 \end_layout
23212
23213 \end_inset
23214
23215  are optional.
23216  If no 
23217 \begin_inset Flex Code
23218 status collapsed
23219
23220 \begin_layout Plain Layout
23221 latexcmd
23222 \end_layout
23223
23224 \end_inset
23225
23226  is given, the 
23227 \begin_inset Flex Code
23228 status collapsed
23229
23230 \begin_layout Plain Layout
23231 LyXName
23232 \end_layout
23233
23234 \end_inset
23235
23236  will be output to \SpecialChar LaTeX
23237 .
23238 \end_layout
23239
23240 \begin_layout Standard
23241 Note further:
23242 \end_layout
23243
23244 \begin_layout Itemize
23245 Capitalization indicates that the command also has a capitalized form (
23246 \begin_inset Flex Code
23247 status collapsed
23248
23249 \begin_layout Plain Layout
23250
23251 \backslash
23252 Latexcmd
23253 \end_layout
23254
23255 \end_inset
23256
23257  vs.
23258  
23259 \begin_inset Flex Code
23260 status collapsed
23261
23262 \begin_layout Plain Layout
23263
23264 \backslash
23265 latexcmd
23266 \end_layout
23267
23268 \end_inset
23269
23270 ).
23271  These usually enforce up-casing of name prefixes (
23272 \emph on
23273 von Goethe
23274 \emph default
23275  
23276 \begin_inset Formula $\Rightarrow$
23277 \end_inset
23278
23279  
23280 \emph on
23281 Von Goethe
23282 \emph default
23283 ).
23284 \end_layout
23285
23286 \begin_layout Itemize
23287 Brackets 
23288 \begin_inset Flex Code
23289 status collapsed
23290
23291 \begin_layout Plain Layout
23292 []
23293 \end_layout
23294
23295 \end_inset
23296
23297  indicate the number of optional arguments (there can be 0–2).
23298 \end_layout
23299
23300 \begin_layout Itemize
23301 A star 
23302 \begin_inset Flex Code
23303 status collapsed
23304
23305 \begin_layout Plain Layout
23306 *
23307 \end_layout
23308
23309 \end_inset
23310
23311  indicates there is a starred version of the command (
23312 \begin_inset Flex Code
23313 status collapsed
23314
23315 \begin_layout Plain Layout
23316
23317 \backslash
23318 latexcmd*
23319 \end_layout
23320
23321 \end_inset
23322
23323  vs.
23324  
23325 \begin_inset Flex Code
23326 status collapsed
23327
23328 \begin_layout Plain Layout
23329
23330 \backslash
23331 latexcmd
23332 \end_layout
23333
23334 \end_inset
23335
23336 ).
23337  
23338 \end_layout
23339
23340 \begin_deeper
23341 \begin_layout Standard
23342 By default, the starred version means: Output all authors even if it should
23343  be shortened with 
23344 \begin_inset Quotes eld
23345 \end_inset
23346
23347 et al.
23348 \begin_inset Quotes erd
23349 \end_inset
23350
23351  due to the 
23352 \begin_inset Flex Code
23353 status collapsed
23354
23355 \begin_layout Plain Layout
23356 MaxCiteNames
23357 \end_layout
23358
23359 \end_inset
23360
23361  threshold.
23362 \end_layout
23363
23364 \begin_layout Standard
23365 If the star has a different meaning for a given command, it can be specified
23366  in angle brackets: 
23367 \begin_inset Flex Code
23368 status collapsed
23369
23370 \begin_layout Plain Layout
23371 <!_stardesc!_stardesctooltip>
23372 \end_layout
23373
23374 \end_inset
23375
23376 .
23377  Maximal two translatable macro keywords, marked by the prefix 
23378 \begin_inset Flex Code
23379 status collapsed
23380
23381 \begin_layout Plain Layout
23382 !_
23383 \end_layout
23384
23385 \end_inset
23386
23387 , can be given.
23388  The first points to the string that replaces the 
23389 \begin_inset Quotes eld
23390 \end_inset
23391
23392 Full aut&hor list
23393 \begin_inset Quotes erd
23394 \end_inset
23395
23396  checkbox label in the citation dialog, the second one to an optional tool
23397  tip for this checkbox.
23398  
23399 \end_layout
23400
23401 \begin_layout Standard
23402 Note that these two macros have to be defined in a 
23403 \begin_inset Flex Code
23404 status collapsed
23405
23406 \begin_layout Plain Layout
23407 CiteFormat
23408 \end_layout
23409
23410 \end_inset
23411
23412  (see next section), dropping the 
23413 \begin_inset Flex Code
23414 status collapsed
23415
23416 \begin_layout Plain Layout
23417 !
23418 \end_layout
23419
23420 \end_inset
23421
23422  from the prefix, like this: 
23423 \end_layout
23424
23425 \begin_layout LyX-Code
23426 _stardesc Sta&rred command label
23427 \end_layout
23428
23429 \begin_layout LyX-Code
23430 _stardesctooltip Tooltip for the starred command checkbox.
23431 \end_layout
23432
23433 \end_deeper
23434 \begin_layout Itemize
23435 A dollar sign 
23436 \begin_inset Flex Code
23437 status collapsed
23438
23439 \begin_layout Plain Layout
23440 $
23441 \end_layout
23442
23443 \end_inset
23444
23445  indicates that this command features 
23446 \begin_inset Quotes eld
23447 \end_inset
23448
23449 qualified citation lists
23450 \begin_inset Quotes erd
23451 \end_inset
23452
23453 .
23454  This is a 
23455 \family sans
23456 Biblatex
23457 \family default
23458 -specific feature for multi-reference citations where an individual pre-
23459  and postnote can be given to each reference in the list.
23460  Please refer to the 
23461 \family sans
23462 Biblatex
23463 \family default
23464  manual for details.
23465 \change_inserted -712698321 1526898670
23466
23467 \end_layout
23468
23469 \begin_layout Standard
23470
23471 \change_inserted -712698321 1526899524
23472 If you want to add a cite command to a cite engine (e.
23473 \begin_inset space \thinspace{}
23474 \end_inset
23475
23476 g., add a specific command provided by a class), you can use 
23477 \begin_inset Flex Code
23478 status collapsed
23479
23480 \begin_layout Plain Layout
23481
23482 \change_inserted -712698321 1526898768
23483 AddToCiteEngine <engine type> \SpecialChar ldots
23484  End
23485 \change_unchanged
23486
23487 \end_layout
23488
23489 \end_inset
23490
23491 .
23492  Note that only cite commands that do not exist yet are added.
23493 \change_unchanged
23494
23495 \end_layout
23496
23497 \begin_layout Subsection
23498 \begin_inset CommandInset label
23499 LatexCommand label
23500 name "subsec:Citation-format-description"
23501
23502 \end_inset
23503
23504 Cite format description
23505 \end_layout
23506
23507 \begin_layout Standard
23508 The 
23509 \begin_inset Flex Code
23510 status collapsed
23511
23512 \begin_layout Plain Layout
23513 CiteFormat
23514 \end_layout
23515
23516 \end_inset
23517
23518  blocks are used to describe how bibliographic information should be displayed,
23519  both within \SpecialChar LyX
23520  itself (in the citation dialog and in tooltips, for example)
23521  and in XHTML output.
23522  Such a block might look like this:
23523 \end_layout
23524
23525 \begin_layout LyX-Code
23526 CiteFormat
23527 \end_layout
23528
23529 \begin_layout LyX-Code
23530  article ...
23531 \end_layout
23532
23533 \begin_layout LyX-Code
23534  book ...
23535 \end_layout
23536
23537 \begin_layout LyX-Code
23538 End
23539 \end_layout
23540
23541 \begin_layout Standard
23542 or
23543 \end_layout
23544
23545 \begin_layout LyX-Code
23546 CiteFormat
23547 \end_layout
23548
23549 \begin_layout LyX-Code
23550  cite ...
23551 \end_layout
23552
23553 \begin_layout LyX-Code
23554  citet*[][] ...
23555 \end_layout
23556
23557 \begin_layout LyX-Code
23558 End
23559 \end_layout
23560
23561 \begin_layout Standard
23562 In the first case, the individual lines define how the bibliographic information
23563  associated with an article or book, respectively, is to be displayed, and
23564  such a definition can be given for any 
23565 \begin_inset Quotes els
23566 \end_inset
23567
23568 entry type
23569 \begin_inset Quotes ers
23570 \end_inset
23571
23572  that might be present in a Bib\SpecialChar TeX
23573  file.
23574  \SpecialChar LyX
23575  defines a default format in the source code that will be used if no specific
23576  definition has been given.
23577  \SpecialChar LyX
23578  predefines several formats in the file 
23579 \begin_inset Flex Code
23580 status collapsed
23581
23582 \begin_layout Plain Layout
23583 stdciteformats.inc
23584 \end_layout
23585
23586 \end_inset
23587
23588 , which is included in most of \SpecialChar LyX
23589 's document classes.
23590 \end_layout
23591
23592 \begin_layout Standard
23593 In the second case, the lines define how a specific citation command (in
23594  the example 
23595 \begin_inset Flex Code
23596 status collapsed
23597
23598 \begin_layout Plain Layout
23599
23600 \backslash
23601 cite
23602 \end_layout
23603
23604 \end_inset
23605
23606
23607 \begin_inset Flex Code
23608 status collapsed
23609
23610 \begin_layout Plain Layout
23611
23612 \backslash
23613 citet
23614 \end_layout
23615
23616 \end_inset
23617
23618 ) is to be displayed on the citation inset label, in the citation dialog,
23619  menu or XHTML output.
23620  \SpecialChar LyX
23621  defines such formats for the citation style variants it supports via 
23622 \family sans
23623 Document\SpecialChar menuseparator
23624 Setting\SpecialChar menuseparator
23625 Bibliography\SpecialChar ldots
23626
23627 \family default
23628  in specific 
23629 \begin_inset Flex Code
23630 status collapsed
23631
23632 \begin_layout Plain Layout
23633 *.citeengine
23634 \end_layout
23635
23636 \end_inset
23637
23638  files that are shipped with \SpecialChar LyX
23639  (see 
23640 \begin_inset CommandInset ref
23641 LatexCommand ref
23642 reference "subsec:Cite-Engine-Files"
23643 plural "false"
23644 caps "false"
23645 noprefix "false"
23646
23647 \end_inset
23648
23649 ).
23650 \end_layout
23651
23652 \begin_layout Standard
23653 The definitions use a simple language that allows Bib\SpecialChar TeX
23654  keys to be replaced
23655  with their values.
23656  Keys should be enclosed in 
23657 \begin_inset Flex Code
23658 status collapsed
23659
23660 \begin_layout Plain Layout
23661 %
23662 \end_layout
23663
23664 \end_inset
23665
23666  signs, e.g.: 
23667 \begin_inset Flex Code
23668 status collapsed
23669
23670 \begin_layout Plain Layout
23671 %author%
23672 \end_layout
23673
23674 \end_inset
23675
23676 .
23677  So a simple definition might look like this:
23678 \end_layout
23679
23680 \begin_layout LyX-Code
23681 misc %author%, 
23682 \begin_inset Quotes eld
23683 \end_inset
23684
23685 %title%
23686 \begin_inset Quotes erd
23687 \end_inset
23688
23689 .
23690 \end_layout
23691
23692 \begin_layout Standard
23693 This would print the author, followed by a comma, followed by the title,
23694  in quotes, followed by a period.
23695 \end_layout
23696
23697 \begin_layout Standard
23698 Of course, sometimes you may want to print a key only if it exists.
23699  This can be done by using a conditional construction, such as: 
23700 \begin_inset Flex Code
23701 status collapsed
23702
23703 \begin_layout Plain Layout
23704 {%volume%[[vol.
23705 \begin_inset space ~
23706 \end_inset
23707
23708 %volume%]]}
23709 \end_layout
23710
23711 \end_inset
23712
23713 .
23714  This says: If the 
23715 \begin_inset Flex Code
23716 status collapsed
23717
23718 \begin_layout Plain Layout
23719 volume
23720 \end_layout
23721
23722 \end_inset
23723
23724  key exists, then print 
23725 \begin_inset Quotes eld
23726 \end_inset
23727
23728 vol.
23729 \begin_inset space ~
23730 \end_inset
23731
23732
23733 \begin_inset Quotes erd
23734 \end_inset
23735
23736  followed by the volume key.
23737  It is also possible to have an else clause in the conditional, such as:
23738 \begin_inset Newline newline
23739 \end_inset
23740
23741
23742 \begin_inset Flex Code
23743 status collapsed
23744
23745 \begin_layout Plain Layout
23746 {%author%[[%author%]][[%editor%, ed.]]}
23747 \end_layout
23748
23749 \end_inset
23750
23751 .
23752 \begin_inset Newline newline
23753 \end_inset
23754
23755 Here, the 
23756 \begin_inset Flex Code
23757 status collapsed
23758
23759 \begin_layout Plain Layout
23760 author
23761 \end_layout
23762
23763 \end_inset
23764
23765  key is printed if it exists; otherwise, the editor key is printed, followed
23766  by 
23767 \begin_inset Quotes eld
23768 \end_inset
23769
23770 ,
23771 \begin_inset space ~
23772 \end_inset
23773
23774 ed.
23775 \begin_inset Quotes erd
23776 \end_inset
23777
23778  Note that the key is again enclosed in 
23779 \begin_inset Flex Code
23780 status collapsed
23781
23782 \begin_layout Plain Layout
23783 %
23784 \end_layout
23785
23786 \end_inset
23787
23788  signs; the entire conditional is enclosed in braces; and the if and else
23789  clauses are enclosed in double brackets, 
23790 \begin_inset Quotes eld
23791 \end_inset
23792
23793
23794 \begin_inset Flex Code
23795 status collapsed
23796
23797 \begin_layout Plain Layout
23798 [[
23799 \end_layout
23800
23801 \end_inset
23802
23803
23804 \begin_inset Quotes eld
23805 \end_inset
23806
23807  and 
23808 \begin_inset Quotes eld
23809 \end_inset
23810
23811
23812 \begin_inset Flex Code
23813 status collapsed
23814
23815 \begin_layout Plain Layout
23816 ]]
23817 \end_layout
23818
23819 \end_inset
23820
23821
23822 \begin_inset Quotes erd
23823 \end_inset
23824
23825 .
23826  There must be no space between any of these.
23827 \end_layout
23828
23829 \begin_layout Standard
23830 Next to the entry keys, there are some special keys that can be used for
23831  these conditionals:
23832 \end_layout
23833
23834 \begin_layout Itemize
23835 \begin_inset Flex Code
23836 status collapsed
23837
23838 \begin_layout Plain Layout
23839 {%dialog%[[true]][[false]]}
23840 \end_layout
23841
23842 \end_inset
23843
23844 : process the 
23845 \begin_inset Quotes eld
23846 \end_inset
23847
23848 true
23849 \begin_inset Quotes erd
23850 \end_inset
23851
23852  part for dialogs and menus, the 
23853 \begin_inset Quotes eld
23854 \end_inset
23855
23856 false
23857 \begin_inset Quotes erd
23858 \end_inset
23859
23860  part for other contexts (workarea, export)
23861 \end_layout
23862
23863 \begin_layout Itemize
23864 \begin_inset Flex Code
23865 status collapsed
23866
23867 \begin_layout Plain Layout
23868 {%export%[[true]][[false]]}
23869 \end_layout
23870
23871 \end_inset
23872
23873 : process the 
23874 \begin_inset Quotes eld
23875 \end_inset
23876
23877 true
23878 \begin_inset Quotes erd
23879 \end_inset
23880
23881  part for export and menus, the 
23882 \begin_inset Quotes eld
23883 \end_inset
23884
23885 false
23886 \begin_inset Quotes erd
23887 \end_inset
23888
23889  part for other contexts (workarea, dialog)
23890 \end_layout
23891
23892 \begin_layout Itemize
23893 \begin_inset Flex Code
23894 status collapsed
23895
23896 \begin_layout Plain Layout
23897 {%next%[[true]]}
23898 \end_layout
23899
23900 \end_inset
23901
23902 : process the 
23903 \begin_inset Quotes eld
23904 \end_inset
23905
23906 true
23907 \begin_inset Quotes erd
23908 \end_inset
23909
23910  part if another item follows (e.
23911 \begin_inset space \thinspace{}
23912 \end_inset
23913
23914 g., in a citation with multiple keys)
23915 \end_layout
23916
23917 \begin_layout Itemize
23918 \begin_inset Flex Code
23919 status collapsed
23920
23921 \begin_layout Plain Layout
23922 {%second%[[true]][[false]]}
23923 \end_layout
23924
23925 \end_inset
23926
23927 : process the 
23928 \begin_inset Quotes eld
23929 \end_inset
23930
23931 true
23932 \begin_inset Quotes erd
23933 \end_inset
23934
23935  if this is the second of multiple items, else the 
23936 \begin_inset Quotes eld
23937 \end_inset
23938
23939 false
23940 \begin_inset Quotes erd
23941 \end_inset
23942
23943  part
23944 \end_layout
23945
23946 \begin_layout Itemize
23947 \begin_inset Flex Code
23948 status collapsed
23949
23950 \begin_layout Plain Layout
23951 {%ifstar%[[true]][[false]]}
23952 \end_layout
23953
23954 \end_inset
23955
23956 : process the 
23957 \begin_inset Quotes eld
23958 \end_inset
23959
23960 true
23961 \begin_inset Quotes erd
23962 \end_inset
23963
23964  part for starred citation commands (such as 
23965 \begin_inset Flex Code
23966 status collapsed
23967
23968 \begin_layout Plain Layout
23969
23970 \backslash
23971 cite*
23972 \end_layout
23973
23974 \end_inset
23975
23976 ), the false part for unstarred
23977 \end_layout
23978
23979 \begin_layout Itemize
23980 \begin_inset Flex Code
23981 status collapsed
23982
23983 \begin_layout Plain Layout
23984 {%ifentrytype:<type>%[[true]][[false]]}
23985 \end_layout
23986
23987 \end_inset
23988
23989 : process the 
23990 \begin_inset Quotes eld
23991 \end_inset
23992
23993 true
23994 \begin_inset Quotes erd
23995 \end_inset
23996
23997  if the current entry type matches 
23998 \begin_inset Flex Code
23999 status collapsed
24000
24001 \begin_layout Plain Layout
24002 <type>
24003 \end_layout
24004
24005 \end_inset
24006
24007 , else the false part (e.g., in a citation definition: 
24008 \begin_inset Flex Code
24009 status collapsed
24010
24011 \begin_layout Plain Layout
24012 {%ifentrytype:book%[[this is a book]][[this is no book]]}
24013 \end_layout
24014
24015 \end_inset
24016
24017 )
24018 \end_layout
24019
24020 \begin_layout Itemize
24021 \begin_inset Flex Code
24022 status collapsed
24023
24024 \begin_layout Plain Layout
24025 {%ifmultiple:<authortype>%[[true]][[false]]}
24026 \end_layout
24027
24028 \end_inset
24029
24030 : process the 
24031 \begin_inset Quotes eld
24032 \end_inset
24033
24034 true
24035 \begin_inset Quotes erd
24036 \end_inset
24037
24038  if the current author type (author, editor etc.) has multiple authors, else
24039  the false part (e.g., in a bibliography definition: 
24040 \begin_inset Flex Code
24041 status collapsed
24042
24043 \begin_layout Plain Layout
24044 {%ifmultiple:editor%[[eds.]][[ed.]]}
24045 \end_layout
24046
24047 \end_inset
24048
24049 )
24050 \end_layout
24051
24052 \begin_layout Itemize
24053 \begin_inset Flex Code
24054 status collapsed
24055
24056 \begin_layout Plain Layout
24057 {%ifqualified%[[true]][[false]]}
24058 \end_layout
24059
24060 \end_inset
24061
24062 : process the 
24063 \begin_inset Quotes eld
24064 \end_inset
24065
24066 true
24067 \begin_inset Quotes erd
24068 \end_inset
24069
24070  part if the current citation is a qualified citation list (a specific 
24071 \family sans
24072 Biblatex
24073 \family default
24074  format for multi-reference citations), the false part if this is not the
24075  case.
24076 \end_layout
24077
24078 \begin_layout Standard
24079 We said that 
24080 \begin_inset Flex Code
24081 status collapsed
24082
24083 \begin_layout Plain Layout
24084 %author%
24085 \end_layout
24086
24087 \end_inset
24088
24089  prints the author key as it is recorded in the bibliography file.
24090  This might not be what you want, since it will result in a string such
24091  as 
24092 \begin_inset Quotes eld
24093 \end_inset
24094
24095 Miller, Peter and Smith, Mary and White, Jane
24096 \begin_inset Quotes erd
24097 \end_inset
24098
24099  (since 
24100 \begin_inset Quotes eld
24101 \end_inset
24102
24103 and
24104 \begin_inset Quotes erd
24105 \end_inset
24106
24107  is used by Bib\SpecialChar TeX
24108  to delimit authors).
24109  \SpecialChar LyX
24110  therefore provides some methods to get properly formatted name lists (which
24111  will also get translated).
24112  The following keys are provided:
24113 \end_layout
24114
24115 \begin_layout Enumerate
24116 For name lists with pre- and surname, suitable for the main authors/editors
24117  of a bibliography item.
24118  The 
24119 \begin_inset Flex Code
24120 status collapsed
24121
24122 \begin_layout Plain Layout
24123 <nametype>
24124 \end_layout
24125
24126 \end_inset
24127
24128  part denotes the kind of list that is requested (e.g.
24129  
24130 \begin_inset Flex Code
24131 status collapsed
24132
24133 \begin_layout Plain Layout
24134 <nametype:author>
24135 \end_layout
24136
24137 \end_inset
24138
24139 ):
24140 \end_layout
24141
24142 \begin_deeper
24143 \begin_layout Itemize
24144 \begin_inset Flex Code
24145 status collapsed
24146
24147 \begin_layout Plain Layout
24148 %abbrvnames:<nametype>%
24149 \end_layout
24150
24151 \end_inset
24152
24153 : Provides a name list which is abbreviated (with 
24154 \begin_inset Quotes eld
24155 \end_inset
24156
24157 et al.
24158 \begin_inset Quotes erd
24159 \end_inset
24160
24161 ) when 
24162 \begin_inset Flex Code
24163 status collapsed
24164
24165 \begin_layout Plain Layout
24166 MaxCiteNames
24167 \end_layout
24168
24169 \end_inset
24170
24171  is reached.
24172 \end_layout
24173
24174 \begin_layout Itemize
24175 \begin_inset Flex Code
24176 status collapsed
24177
24178 \begin_layout Plain Layout
24179 %fullnames:<nametype>%
24180 \end_layout
24181
24182 \end_inset
24183
24184 : Provides a full name list (never abbreviated with 
24185 \begin_inset Quotes eld
24186 \end_inset
24187
24188 et al.
24189 \begin_inset Quotes erd
24190 \end_inset
24191
24192 ).
24193 \end_layout
24194
24195 \begin_layout Itemize
24196 \begin_inset Flex Code
24197 status collapsed
24198
24199 \begin_layout Plain Layout
24200 %forceabbrvnames:<nametype>%
24201 \end_layout
24202
24203 \end_inset
24204
24205 : Provides a name list which is always abbreviated (with 
24206 \begin_inset Quotes eld
24207 \end_inset
24208
24209 et al.
24210 \begin_inset Quotes erd
24211 \end_inset
24212
24213 ) irrespective of 
24214 \begin_inset Flex Code
24215 status collapsed
24216
24217 \begin_layout Plain Layout
24218 MaxCiteNames
24219 \end_layout
24220
24221 \end_inset
24222
24223 .
24224 \end_layout
24225
24226 \end_deeper
24227 \begin_layout Enumerate
24228 Alternative name lists with pre- and surname, if the order of pre- and surname
24229  inside the bibliography item differs (as in: 
24230 \begin_inset Quotes eld
24231 \end_inset
24232
24233 Miller, John: Some text, in: Mary Smith, ed.: A volume
24234 \begin_inset Quotes erd
24235 \end_inset
24236
24237 ):
24238 \end_layout
24239
24240 \begin_deeper
24241 \begin_layout Itemize
24242 \begin_inset Flex Code
24243 status collapsed
24244
24245 \begin_layout Plain Layout
24246 %abbrvbynames:<nametype>%
24247 \end_layout
24248
24249 \end_inset
24250
24251 : Provides a name list which is abbreviated (with 
24252 \begin_inset Quotes eld
24253 \end_inset
24254
24255 et al.
24256 \begin_inset Quotes erd
24257 \end_inset
24258
24259 ) when 
24260 \begin_inset Flex Code
24261 status collapsed
24262
24263 \begin_layout Plain Layout
24264 MaxCiteNames
24265 \end_layout
24266
24267 \end_inset
24268
24269  is reached.
24270 \end_layout
24271
24272 \begin_layout Itemize
24273 \begin_inset Flex Code
24274 status collapsed
24275
24276 \begin_layout Plain Layout
24277 %fullbynames:<nametype>%
24278 \end_layout
24279
24280 \end_inset
24281
24282 : Provides a full name list (never abbreviated with 
24283 \begin_inset Quotes eld
24284 \end_inset
24285
24286 et al.
24287 \begin_inset Quotes erd
24288 \end_inset
24289
24290 ).
24291 \end_layout
24292
24293 \begin_layout Itemize
24294 \begin_inset Flex Code
24295 status collapsed
24296
24297 \begin_layout Plain Layout
24298 %forceabbrvbynames:<nametype>%
24299 \end_layout
24300
24301 \end_inset
24302
24303 : Provides a name list which is always abbreviated (with 
24304 \begin_inset Quotes eld
24305 \end_inset
24306
24307 et al.
24308 \begin_inset Quotes erd
24309 \end_inset
24310
24311 ) irrespective of 
24312 \begin_inset Flex Code
24313 status collapsed
24314
24315 \begin_layout Plain Layout
24316 MaxCiteNames
24317 \end_layout
24318
24319 \end_inset
24320
24321 .
24322 \end_layout
24323
24324 \end_deeper
24325 \begin_layout Enumerate
24326 And finally name lists which consist of family names only, as used in author-yea
24327 r citation labels.
24328  These do not take a 
24329 \begin_inset Flex Code
24330 status collapsed
24331
24332 \begin_layout Plain Layout
24333 <nametype>
24334 \end_layout
24335
24336 \end_inset
24337
24338  part, but always return either an author list or, if this does not exist,
24339  an editor list (as common in author-year labels):
24340 \end_layout
24341
24342 \begin_deeper
24343 \begin_layout Itemize
24344 \begin_inset Flex Code
24345 status collapsed
24346
24347 \begin_layout Plain Layout
24348 %abbrvciteauthor%
24349 \end_layout
24350
24351 \end_inset
24352
24353 : Provides a name list which is abbreviated (with 
24354 \begin_inset Quotes eld
24355 \end_inset
24356
24357 et al.
24358 \begin_inset Quotes erd
24359 \end_inset
24360
24361 ) when 
24362 \begin_inset Flex Code
24363 status collapsed
24364
24365 \begin_layout Plain Layout
24366 MaxCiteNames
24367 \end_layout
24368
24369 \end_inset
24370
24371  is reached.
24372 \end_layout
24373
24374 \begin_layout Itemize
24375 \begin_inset Flex Code
24376 status collapsed
24377
24378 \begin_layout Plain Layout
24379 %fullciteauthor%
24380 \end_layout
24381
24382 \end_inset
24383
24384 : Provides a full name list (never abbreviated with 
24385 \begin_inset Quotes eld
24386 \end_inset
24387
24388 et al.
24389 \begin_inset Quotes erd
24390 \end_inset
24391
24392 ).
24393 \end_layout
24394
24395 \begin_layout Itemize
24396 \begin_inset Flex Code
24397 status collapsed
24398
24399 \begin_layout Plain Layout
24400 %forceabbrvciteauthor%
24401 \end_layout
24402
24403 \end_inset
24404
24405 : Provides a name list which is always abbreviated (with 
24406 \begin_inset Quotes eld
24407 \end_inset
24408
24409 et al.
24410 \begin_inset Quotes erd
24411 \end_inset
24412
24413 ) irrespective of 
24414 \begin_inset Flex Code
24415 status collapsed
24416
24417 \begin_layout Plain Layout
24418 MaxCiteNames
24419 \end_layout
24420
24421 \end_inset
24422
24423 .
24424 \end_layout
24425
24426 \end_deeper
24427 \begin_layout Standard
24428 The order of pre- and surname in the former two lists can be adjusted by
24429  these macros:
24430 \end_layout
24431
24432 \begin_layout Itemize
24433 \begin_inset Flex Code
24434 status collapsed
24435
24436 \begin_layout Plain Layout
24437 !firstnameform %surname%, %prename%
24438 \end_layout
24439
24440 \end_inset
24441
24442  (first author in lists of type 1)
24443 \end_layout
24444
24445 \begin_layout Itemize
24446 \begin_inset Flex Code
24447 status collapsed
24448
24449 \begin_layout Plain Layout
24450 !othernameform %surname%, %prename%
24451 \end_layout
24452
24453 \end_inset
24454
24455  (other authors in lists of type 1)
24456 \end_layout
24457
24458 \begin_layout Itemize
24459 \begin_inset Flex Code
24460 status collapsed
24461
24462 \begin_layout Plain Layout
24463 !firstbynameform %prename% %surname%
24464 \end_layout
24465
24466 \end_inset
24467
24468  (first author in lists of type 2)
24469 \end_layout
24470
24471 \begin_layout Itemize
24472 \begin_inset Flex Code
24473 status collapsed
24474
24475 \begin_layout Plain Layout
24476 !otherbynameform %prename% %surname%
24477 \end_layout
24478
24479 \end_inset
24480
24481  (other authors in lists of type 2)
24482 \end_layout
24483
24484 \begin_layout Standard
24485 This allows you to configure namings like 
24486 \begin_inset Quotes eld
24487 \end_inset
24488
24489 Miller, Peter and Mary Smith: \SpecialChar ldots
24490 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
24491
24492 \begin_inset Quotes erd
24493 \end_inset
24494
24495 .
24496 \end_layout
24497
24498 \begin_layout Standard
24499 There is one other piece of syntax available in definitions, which looks
24500  like this: 
24501 \begin_inset Flex Code
24502 status collapsed
24503
24504 \begin_layout Plain Layout
24505 {!<i>!}
24506 \end_layout
24507
24508 \end_inset
24509
24510 .
24511  This defines a piece of formatting information that is to be used when
24512  creating 
24513 \begin_inset Quotes eld
24514 \end_inset
24515
24516 rich text
24517 \begin_inset Quotes erd
24518 \end_inset
24519
24520 .
24521  Obviously, we do not want to output HTML tags when writing plain text,
24522  so they should be wrapped in 
24523 \begin_inset Quotes eld
24524 \end_inset
24525
24526 {!
24527 \begin_inset Quotes erd
24528 \end_inset
24529
24530  and 
24531 \begin_inset Quotes eld
24532 \end_inset
24533
24534 !}
24535 \begin_inset Quotes erd
24536 \end_inset
24537
24538 .
24539 \end_layout
24540
24541 \begin_layout Standard
24542 Two special sorts of definitions are also possible in a 
24543 \begin_inset Flex Code
24544 status collapsed
24545
24546 \begin_layout Plain Layout
24547 CiteFormat
24548 \end_layout
24549
24550 \end_inset
24551
24552  block.
24553  An example of the first would be:
24554 \end_layout
24555
24556 \begin_layout LyX-Code
24557 !quotetitle 
24558 \begin_inset Quotes eld
24559 \end_inset
24560
24561 %title%
24562 \begin_inset Quotes erd
24563 \end_inset
24564
24565
24566 \end_layout
24567
24568 \begin_layout Standard
24569 This is an abbreviation, or macro, and it can be used by treating it as
24570  if it were a key: 
24571 \begin_inset Flex Code
24572 status collapsed
24573
24574 \begin_layout Plain Layout
24575 %!quotetitle%
24576 \end_layout
24577
24578 \end_inset
24579
24580 .
24581  \SpecialChar LyX
24582  will treat 
24583 \begin_inset Flex Code
24584 status collapsed
24585
24586 \begin_layout Plain Layout
24587 %!quotetitle%
24588 \end_layout
24589
24590 \end_inset
24591
24592  exactly as it would treat its definition.
24593  So, let us issue the obvious 
24594 \emph on
24595 warning
24596 \emph default
24597 .
24598  Do not do this:
24599 \end_layout
24600
24601 \begin_layout LyX-Code
24602 !funfun %funfun%
24603 \end_layout
24604
24605 \begin_layout Standard
24606 or anything like it.
24607  \SpecialChar LyX
24608  shouldn't go into an infinite loop, but it may go into a long one before
24609  it gives up.
24610 \end_layout
24611
24612 \begin_layout Standard
24613 The second sort of special definition might look like this:
24614 \end_layout
24615
24616 \begin_layout LyX-Code
24617 B_pptext pp.
24618 \end_layout
24619
24620 \begin_layout Standard
24621 This defines a translatable piece of text, which allows relevant parts of
24622  the bibliography or citation to be translated.
24623  It can be included in a definition by treating it as a key: 
24624 \begin_inset Flex Code
24625 status collapsed
24626
24627 \begin_layout Plain Layout
24628 %B_pptext%
24629 \end_layout
24630
24631 \end_inset
24632
24633 .
24634  Note that there are two different translation paths: All definitions starting
24635  with 
24636 \begin_inset Flex Code
24637 status collapsed
24638
24639 \begin_layout Plain Layout
24640 B_
24641 \end_layout
24642
24643 \end_inset
24644
24645 , such as in the example above, will be translated to the currently active
24646  buffer language (so the translation will match the generated document).
24647  All definitions starting with underscore only will be translated to the
24648  GUI language.
24649  This is the proper translation for strings that only occur in the dialogs
24650  or on buttons, such as this one:
24651 \end_layout
24652
24653 \begin_layout LyX-Code
24654 _addtobib Add to bibliography only.
24655 \end_layout
24656
24657 \begin_layout Standard
24658 Several of these translatable strings are predefined in 
24659 \begin_inset Flex Code
24660 status collapsed
24661
24662 \begin_layout Plain Layout
24663 stdciteformats.inc
24664 \end_layout
24665
24666 \end_inset
24667
24668  and the diverse 
24669 \begin_inset Flex Code
24670 status collapsed
24671
24672 \begin_layout Plain Layout
24673 *.citeengine
24674 \end_layout
24675
24676 \end_inset
24677
24678  files.
24679  Note that these are not macros, in the sense just defined.
24680  They will not be expanded.
24681 \end_layout
24682
24683 \begin_layout Standard
24684 So here then is an example that uses several of these features:
24685 \begin_inset VSpace defskip
24686 \end_inset
24687
24688
24689 \end_layout
24690
24691 \begin_layout Standard
24692 \noindent
24693
24694 \family sans
24695 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
24696 \end_layout
24697
24698 \begin_layout Standard
24699 \begin_inset VSpace defskip
24700 \end_inset
24701
24702 This defines a macro that prints the author, followed by a comma, if the
24703  
24704 \begin_inset Flex Code
24705 status collapsed
24706
24707 \begin_layout Plain Layout
24708 author
24709 \end_layout
24710
24711 \end_inset
24712
24713  key is defined, or else prints the name of the editor, followed by the
24714  
24715 \begin_inset Flex Code
24716 status collapsed
24717
24718 \begin_layout Plain Layout
24719 B_edtext
24720 \end_layout
24721
24722 \end_inset
24723
24724  or its translation (it is by default 
24725 \begin_inset Quotes eld
24726 \end_inset
24727
24728 ed.
24729 \begin_inset Quotes erd
24730 \end_inset
24731
24732 ), if the 
24733 \begin_inset Flex Code
24734 status collapsed
24735
24736 \begin_layout Plain Layout
24737 editor
24738 \end_layout
24739
24740 \end_inset
24741
24742  key is defined.
24743  Note that this is in fact defined in 
24744 \begin_inset Flex Code
24745 status collapsed
24746
24747 \begin_layout Plain Layout
24748 stdciteformats.inc
24749 \end_layout
24750
24751 \end_inset
24752
24753 , so you can use it in your own definitions, or re-definitions, if you load
24754  that file first.
24755 \end_layout
24756
24757 \begin_layout Section
24758 \begin_inset CommandInset label
24759 LatexCommand label
24760 name "sec:Tags-for-XHTML"
24761
24762 \end_inset
24763
24764 Tags for XHTML output
24765 \end_layout
24766
24767 \begin_layout Standard
24768 As with \SpecialChar LaTeX
24769  or DocBook, the format of \SpecialChar LyX
24770 's XHTML output is also controlled by
24771  layout information.
24772  In general, \SpecialChar LyX
24773  provides sensible defaults and, as mentioned earlier, it will
24774  even construct default CSS style rules from the other layout tags.
24775  For example, \SpecialChar LyX
24776  will attempt to use the information provided in the 
24777 \begin_inset Flex Code
24778 status collapsed
24779
24780 \begin_layout Plain Layout
24781 Font
24782 \end_layout
24783
24784 \end_inset
24785
24786  declaration for the Chapter style to write CSS that will appropriately
24787  format chapter headings.
24788 \end_layout
24789
24790 \begin_layout Standard
24791 In many cases, then, you may not have to do anything at all to get acceptable
24792  XHTML output for your own environments, custom insets, and so forth.
24793  But in some cases you will, and so \SpecialChar LyX
24794  provides a number of layout tags that
24795  can be used to customize the XHTML and CSS that are generated.
24796 \end_layout
24797
24798 \begin_layout Standard
24799 Note that there are two tags, 
24800 \begin_inset Flex Code
24801 status collapsed
24802
24803 \begin_layout Plain Layout
24804 HTMLPreamble
24805 \end_layout
24806
24807 \end_inset
24808
24809  and 
24810 \begin_inset Flex Code
24811 status collapsed
24812
24813 \begin_layout Plain Layout
24814 AddToHTMLPreamble
24815 \end_layout
24816
24817 \end_inset
24818
24819  that may appear outside style and inset declarations.
24820  See 
24821 \begin_inset CommandInset ref
24822 LatexCommand ref
24823 reference "subsec:General-text-class"
24824
24825 \end_inset
24826
24827  for details on these.
24828 \end_layout
24829
24830 \begin_layout Subsection
24831 \begin_inset CommandInset label
24832 LatexCommand label
24833 name "subsec:Paragraph-Style-XHTML"
24834
24835 \end_inset
24836
24837 Paragraph styles
24838 \end_layout
24839
24840 \begin_layout Standard
24841 The sort of XHTML \SpecialChar LyX
24842  outputs for a paragraph depends upon whether we are dealing
24843  with a normal paragraph, a command, or an environment, where this is itself
24844  determined by the contents of the corresponding 
24845 \begin_inset Flex Code
24846 status collapsed
24847
24848 \begin_layout Plain Layout
24849 \SpecialChar LaTeX
24850 Type
24851 \end_layout
24852
24853 \end_inset
24854
24855  tag.
24856  
24857 \end_layout
24858
24859 \begin_layout Standard
24860 For a command or normal paragraph, the output XHTML has the following form:
24861 \end_layout
24862
24863 \begin_layout LyX-Code
24864
24865 \family sans
24866 <tag attr=
24867 \begin_inset Quotes erd
24868 \end_inset
24869
24870 value
24871 \begin_inset Quotes erd
24872 \end_inset
24873
24874 >
24875 \end_layout
24876
24877 \begin_layout LyX-Code
24878
24879 \family sans
24880 <labeltag attr=
24881 \begin_inset Quotes erd
24882 \end_inset
24883
24884 value
24885 \begin_inset Quotes erd
24886 \end_inset
24887
24888 >Label</labeltag>
24889 \end_layout
24890
24891 \begin_layout LyX-Code
24892
24893 \family sans
24894 Contents of the paragraph.
24895 \end_layout
24896
24897 \begin_layout LyX-Code
24898
24899 \family sans
24900 </tag>
24901 \end_layout
24902
24903 \begin_layout Standard
24904 The label tags are of course omitted if the paragraph does not have a label.
24905 \end_layout
24906
24907 \begin_layout Standard
24908 For an environment that is not some sort of list, the XHTML takes this form:
24909 \end_layout
24910
24911 \begin_layout LyX-Code
24912
24913 \family sans
24914 <tag attr=
24915 \begin_inset Quotes erd
24916 \end_inset
24917
24918 value
24919 \begin_inset Quotes erd
24920 \end_inset
24921
24922 >
24923 \end_layout
24924
24925 \begin_layout LyX-Code
24926
24927 \family sans
24928 <itemtag attr=
24929 \begin_inset Quotes erd
24930 \end_inset
24931
24932 value
24933 \begin_inset Quotes erd
24934 \end_inset
24935
24936 ><labeltag attr=
24937 \begin_inset Quotes erd
24938 \end_inset
24939
24940 value
24941 \begin_inset Quotes erd
24942 \end_inset
24943
24944 >Environment Label</labeltag>First paragraph.</itemtag>
24945 \end_layout
24946
24947 \begin_layout LyX-Code
24948
24949 \family sans
24950 <itemtag>Second paragraph.</itemtag>
24951 \end_layout
24952
24953 \begin_layout LyX-Code
24954
24955 \family sans
24956 </tag>
24957 \end_layout
24958
24959 \begin_layout Standard
24960 Note that the label is output only for the first paragraph, as it should
24961  be for a theorem, for example.
24962  
24963 \end_layout
24964
24965 \begin_layout Standard
24966 For a list, we have one of these forms:
24967 \end_layout
24968
24969 \begin_layout LyX-Code
24970
24971 \family sans
24972 <tag attr=
24973 \begin_inset Quotes erd
24974 \end_inset
24975
24976 value
24977 \begin_inset Quotes erd
24978 \end_inset
24979
24980 >
24981 \end_layout
24982
24983 \begin_layout LyX-Code
24984
24985 \family sans
24986 <itemtag attr=
24987 \begin_inset Quotes erd
24988 \end_inset
24989
24990 value
24991 \begin_inset Quotes erd
24992 \end_inset
24993
24994 ><labeltag attr=
24995 \begin_inset Quotes erd
24996 \end_inset
24997
24998 value
24999 \begin_inset Quotes erd
25000 \end_inset
25001
25002 >List Label</labeltag>First item.</itemtag>
25003 \end_layout
25004
25005 \begin_layout LyX-Code
25006
25007 \family sans
25008 <itemtag attr=
25009 \begin_inset Quotes erd
25010 \end_inset
25011
25012 value
25013 \begin_inset Quotes erd
25014 \end_inset
25015
25016 ><labeltag attr=
25017 \begin_inset Quotes erd
25018 \end_inset
25019
25020 value
25021 \begin_inset Quotes erd
25022 \end_inset
25023
25024 >List Label</labeltag>Second item.</itemtag>
25025 \end_layout
25026
25027 \begin_layout LyX-Code
25028
25029 \family sans
25030 </tag>
25031 \end_layout
25032
25033 \begin_layout LyX-Code
25034
25035 \end_layout
25036
25037 \begin_layout LyX-Code
25038
25039 \family sans
25040 <tag attr=
25041 \begin_inset Quotes erd
25042 \end_inset
25043
25044 value
25045 \begin_inset Quotes erd
25046 \end_inset
25047
25048 >
25049 \end_layout
25050
25051 \begin_layout LyX-Code
25052
25053 \family sans
25054 <labeltag attr=
25055 \begin_inset Quotes erd
25056 \end_inset
25057
25058 value
25059 \begin_inset Quotes erd
25060 \end_inset
25061
25062 >List Label</labeltag><itemtag attr=
25063 \begin_inset Quotes erd
25064 \end_inset
25065
25066 value
25067 \begin_inset Quotes erd
25068 \end_inset
25069
25070 >First item.</itemtag>
25071 \end_layout
25072
25073 \begin_layout LyX-Code
25074
25075 \family sans
25076 <labeltag attr=
25077 \begin_inset Quotes erd
25078 \end_inset
25079
25080 value
25081 \begin_inset Quotes erd
25082 \end_inset
25083
25084 >List Label</labeltag><itemtag attr=
25085 \begin_inset Quotes erd
25086 \end_inset
25087
25088 value
25089 \begin_inset Quotes erd
25090 \end_inset
25091
25092 >Second item.</itemtag>
25093 \end_layout
25094
25095 \begin_layout LyX-Code
25096
25097 \family sans
25098 </tag>
25099 \end_layout
25100
25101 \begin_layout Standard
25102 Note the different orders of 
25103 \begin_inset Flex Code
25104 status collapsed
25105
25106 \begin_layout Plain Layout
25107 labeltag
25108 \end_layout
25109
25110 \end_inset
25111
25112  and 
25113 \begin_inset Flex Code
25114 status collapsed
25115
25116 \begin_layout Plain Layout
25117 itemtag
25118 \end_layout
25119
25120 \end_inset
25121
25122 .
25123  Which order we get depends upon the setting of 
25124 \begin_inset Flex Code
25125 status collapsed
25126
25127 \begin_layout Plain Layout
25128 HTMLLabelFirst
25129 \end_layout
25130
25131 \end_inset
25132
25133 : If 
25134 \begin_inset Flex Code
25135 status collapsed
25136
25137 \begin_layout Plain Layout
25138 HTMLLabelFirst
25139 \end_layout
25140
25141 \end_inset
25142
25143  is false (the default), you get the first of these, with the label within
25144  the item; if true, you get the second, with the label outside the item.
25145 \end_layout
25146
25147 \begin_layout Standard
25148 The specific tags and attributes output for each paragraph type can be controlle
25149 d by means of the layout tags we are about to describe.
25150  As mentioned earlier, however, \SpecialChar LyX
25151  uses sensible defaults for many of these,
25152  so you often may not need to do very much to get good XHTML output.
25153  Think of the available tags as there so you can tweak things to your liking.
25154 \end_layout
25155
25156 \begin_layout Description
25157 \begin_inset Flex Code
25158 status collapsed
25159
25160 \begin_layout Plain Layout
25161 HTMLAttr
25162 \end_layout
25163
25164 \end_inset
25165
25166  [
25167 \begin_inset Flex Code
25168 status collapsed
25169
25170 \begin_layout Plain Layout
25171 string
25172 \end_layout
25173
25174 \end_inset
25175
25176 ] Specifies attribute information to be output with the main tag.
25177  For example, 
25178 \begin_inset Quotes eld
25179 \end_inset
25180
25181
25182 \begin_inset Flex Code
25183 status collapsed
25184
25185 \begin_layout Plain Layout
25186 class=`mydiv'
25187 \end_layout
25188
25189 \end_inset
25190
25191
25192 \begin_inset Quotes erd
25193 \end_inset
25194
25195 .
25196  By default, \SpecialChar LyX
25197  will output 
25198 \begin_inset Quotes eld
25199 \end_inset
25200
25201
25202 \begin_inset Flex Code
25203 status collapsed
25204
25205 \begin_layout Plain Layout
25206 class=`layoutname'
25207 \end_layout
25208
25209 \end_inset
25210
25211
25212 \begin_inset Quotes erd
25213 \end_inset
25214
25215 , where 
25216 \begin_inset Flex Code
25217 status collapsed
25218
25219 \begin_layout Plain Layout
25220 layoutname
25221 \end_layout
25222
25223 \end_inset
25224
25225  is the \SpecialChar LyX
25226  name of the layout, made lowercase, for example: chapter.
25227  This should 
25228 \emph on
25229 not
25230 \emph default
25231  contain any style information.
25232  Use 
25233 \begin_inset Flex Code
25234 status collapsed
25235
25236 \begin_layout Plain Layout
25237 HTMLStyle
25238 \end_layout
25239
25240 \end_inset
25241
25242  for that purpose.
25243 \end_layout
25244
25245 \begin_layout Description
25246 \begin_inset Flex Code
25247 status collapsed
25248
25249 \begin_layout Plain Layout
25250 HTMLForceCSS
25251 \end_layout
25252
25253 \end_inset
25254
25255  [
25256 \begin_inset Flex Code
25257 status collapsed
25258
25259 \begin_layout Plain Layout
25260
25261 \emph on
25262 0
25263 \emph default
25264 ,1
25265 \end_layout
25266
25267 \end_inset
25268
25269 ] Whether to output the default CSS information \SpecialChar LyX
25270  generates for this layout,
25271  even if additional information is explicitly provided via 
25272 \begin_inset Flex Code
25273 status collapsed
25274
25275 \begin_layout Plain Layout
25276 HTMLStyle
25277 \end_layout
25278
25279 \end_inset
25280
25281 .
25282  Setting this to 
25283 \begin_inset Flex Code
25284 status collapsed
25285
25286 \begin_layout Plain Layout
25287 1
25288 \end_layout
25289
25290 \end_inset
25291
25292  allows you to alter or augment the generated CSS, rather than to override
25293  it completely.
25294  Default is 
25295 \begin_inset Flex Code
25296 status collapsed
25297
25298 \begin_layout Plain Layout
25299 0
25300 \end_layout
25301
25302 \end_inset
25303
25304 .
25305 \end_layout
25306
25307 \begin_layout Description
25308 \begin_inset Flex Code
25309 status collapsed
25310
25311 \begin_layout Plain Layout
25312 HTMLItem
25313 \end_layout
25314
25315 \end_inset
25316
25317  [
25318 \begin_inset Flex Code
25319 status collapsed
25320
25321 \begin_layout Plain Layout
25322 string
25323 \end_layout
25324
25325 \end_inset
25326
25327 ] The tag to be used for individual paragraphs of environments, replacing
25328  
25329 \begin_inset Flex Code
25330 status collapsed
25331
25332 \begin_layout Plain Layout
25333 itemtag
25334 \end_layout
25335
25336 \end_inset
25337
25338  in the examples above.
25339  Defaults to 
25340 \begin_inset Flex Code
25341 status collapsed
25342
25343 \begin_layout Plain Layout
25344 div
25345 \end_layout
25346
25347 \end_inset
25348
25349 .
25350 \end_layout
25351
25352 \begin_layout Description
25353 \begin_inset Flex Code
25354 status collapsed
25355
25356 \begin_layout Plain Layout
25357 HTMLItemAttr
25358 \end_layout
25359
25360 \end_inset
25361
25362  [
25363 \begin_inset Flex Code
25364 status collapsed
25365
25366 \begin_layout Plain Layout
25367 string
25368 \end_layout
25369
25370 \end_inset
25371
25372 ] Attributes for the item tag.
25373  Defaults to
25374 \begin_inset Newline newline
25375 \end_inset
25376
25377
25378 \begin_inset Quotes eld
25379 \end_inset
25380
25381
25382 \begin_inset Flex Code
25383 status collapsed
25384
25385 \begin_layout Plain Layout
25386 class=`layoutname_item'
25387 \end_layout
25388
25389 \end_inset
25390
25391
25392 \begin_inset Quotes erd
25393 \end_inset
25394
25395 .
25396  This should 
25397 \emph on
25398 not
25399 \emph default
25400  contain any style information.
25401  Use 
25402 \begin_inset Flex Code
25403 status collapsed
25404
25405 \begin_layout Plain Layout
25406 HTMLStyle
25407 \end_layout
25408
25409 \end_inset
25410
25411  for that purpose.
25412 \end_layout
25413
25414 \begin_layout Description
25415 \begin_inset Flex Code
25416 status collapsed
25417
25418 \begin_layout Plain Layout
25419 HTMLLabel
25420 \end_layout
25421
25422 \end_inset
25423
25424  [
25425 \begin_inset Flex Code
25426 status collapsed
25427
25428 \begin_layout Plain Layout
25429 string
25430 \end_layout
25431
25432 \end_inset
25433
25434 ] The tag to be used for paragraph and item labels, replacing 
25435 \begin_inset Flex Code
25436 status collapsed
25437
25438 \begin_layout Plain Layout
25439 labeltag
25440 \end_layout
25441
25442 \end_inset
25443
25444  in the examples above.
25445  Defaults to 
25446 \begin_inset Flex Code
25447 status collapsed
25448
25449 \begin_layout Plain Layout
25450 span
25451 \end_layout
25452
25453 \end_inset
25454
25455 , unless 
25456 \begin_inset Flex Code
25457 status collapsed
25458
25459 \begin_layout Plain Layout
25460 LabelType
25461 \end_layout
25462
25463 \end_inset
25464
25465  is either 
25466 \begin_inset Flex Code
25467 status collapsed
25468
25469 \begin_layout Plain Layout
25470 Top_Environment
25471 \end_layout
25472
25473 \end_inset
25474
25475  or 
25476 \begin_inset Flex Code
25477 status collapsed
25478
25479 \begin_layout Plain Layout
25480 Centered_Top_Environment
25481 \end_layout
25482
25483 \end_inset
25484
25485 , in which case it defaults to 
25486 \begin_inset Flex Code
25487 status collapsed
25488
25489 \begin_layout Plain Layout
25490 div
25491 \end_layout
25492
25493 \end_inset
25494
25495 .
25496 \end_layout
25497
25498 \begin_layout Description
25499 \begin_inset Flex Code
25500 status collapsed
25501
25502 \begin_layout Plain Layout
25503 HTMLLabelAttr
25504 \end_layout
25505
25506 \end_inset
25507
25508  [
25509 \begin_inset Flex Code
25510 status collapsed
25511
25512 \begin_layout Plain Layout
25513 string
25514 \end_layout
25515
25516 \end_inset
25517
25518 ] Attributes for the label tag.
25519  Defaults to
25520 \begin_inset Newline newline
25521 \end_inset
25522
25523
25524 \begin_inset Quotes eld
25525 \end_inset
25526
25527
25528 \begin_inset Flex Code
25529 status collapsed
25530
25531 \begin_layout Plain Layout
25532 class=`layoutname_label'
25533 \end_layout
25534
25535 \end_inset
25536
25537
25538 \begin_inset Quotes erd
25539 \end_inset
25540
25541 .
25542  This should 
25543 \emph on
25544 not
25545 \emph default
25546  contain any style information.
25547  Use 
25548 \begin_inset Flex Code
25549 status collapsed
25550
25551 \begin_layout Plain Layout
25552 HTMLStyle
25553 \end_layout
25554
25555 \end_inset
25556
25557  for that purpose.
25558 \end_layout
25559
25560 \begin_layout Description
25561 \begin_inset Flex Code
25562 status collapsed
25563
25564 \begin_layout Plain Layout
25565 HTMLLabelFirst
25566 \end_layout
25567
25568 \end_inset
25569
25570  [
25571 \begin_inset Flex Code
25572 status collapsed
25573
25574 \begin_layout Plain Layout
25575
25576 \emph on
25577 0
25578 \emph default
25579 ,1
25580 \end_layout
25581
25582 \end_inset
25583
25584 ] Meaningful only for list-like environments, this tag controls whether
25585  the label tag is output before or inside the item tag.
25586  This is used, for example, in the description environment, where we want
25587  `
25588 \begin_inset Flex Code
25589 status collapsed
25590
25591 \begin_layout Plain Layout
25592 <dt>\SpecialChar ldots
25593 </dt><dd>\SpecialChar ldots
25594 </dd>
25595 \end_layout
25596
25597 \end_inset
25598
25599 .
25600  Default is 
25601 \begin_inset Flex Code
25602 status collapsed
25603
25604 \begin_layout Plain Layout
25605 0
25606 \end_layout
25607
25608 \end_inset
25609
25610 : The label tag is output inside the item tag.
25611 \end_layout
25612
25613 \begin_layout Description
25614 \begin_inset Flex Code
25615 status collapsed
25616
25617 \begin_layout Plain Layout
25618 HTMLPreamble
25619 \end_layout
25620
25621 \end_inset
25622
25623  Information to be output in the 
25624 \begin_inset Flex Code
25625 status collapsed
25626
25627 \begin_layout Plain Layout
25628 <head>
25629 \end_layout
25630
25631 \end_inset
25632
25633  section when this style is used.
25634  This might, for example, be used to include a 
25635 \begin_inset Flex Code
25636 status collapsed
25637
25638 \begin_layout Plain Layout
25639 <script>
25640 \end_layout
25641
25642 \end_inset
25643
25644  block defining an 
25645 \begin_inset Flex Code
25646 status collapsed
25647
25648 \begin_layout Plain Layout
25649 onclick
25650 \end_layout
25651
25652 \end_inset
25653
25654  handler.
25655 \end_layout
25656
25657 \begin_layout Description
25658 \begin_inset Flex Code
25659 status collapsed
25660
25661 \begin_layout Plain Layout
25662 HTMLStyle
25663 \end_layout
25664
25665 \end_inset
25666
25667  CSS style information to be included when this style is used.
25668  Note that this will automatically be wrapped in a layout-generated 
25669 \begin_inset Flex Code
25670 status collapsed
25671
25672 \begin_layout Plain Layout
25673 <style>
25674 \end_layout
25675
25676 \end_inset
25677
25678  block, so only the CSS itself need be included.
25679  Must end with 
25680 \begin_inset Flex Code
25681 status collapsed
25682
25683 \begin_layout Plain Layout
25684 EndHTMLStyle
25685 \end_layout
25686
25687 \end_inset
25688
25689 .
25690 \end_layout
25691
25692 \begin_layout Description
25693 \begin_inset Flex Code
25694 status collapsed
25695
25696 \begin_layout Plain Layout
25697 HTMLTag
25698 \end_layout
25699
25700 \end_inset
25701
25702  [
25703 \begin_inset Flex Code
25704 status collapsed
25705
25706 \begin_layout Plain Layout
25707 string
25708 \end_layout
25709
25710 \end_inset
25711
25712 ] The tag to be used for the main label, replacing 
25713 \begin_inset Flex Code
25714 status collapsed
25715
25716 \begin_layout Plain Layout
25717 tag
25718 \end_layout
25719
25720 \end_inset
25721
25722  in the examples above.
25723  Defaults to 
25724 \begin_inset Flex Code
25725 status collapsed
25726
25727 \begin_layout Plain Layout
25728 div
25729 \end_layout
25730
25731 \end_inset
25732
25733 .
25734 \end_layout
25735
25736 \begin_layout Description
25737 \begin_inset Flex Code
25738 status collapsed
25739
25740 \begin_layout Plain Layout
25741 HTMLTitle
25742 \end_layout
25743
25744 \end_inset
25745
25746  [
25747 \begin_inset Flex Code
25748 status collapsed
25749
25750 \begin_layout Plain Layout
25751
25752 \emph on
25753 0
25754 \emph default
25755 ,1
25756 \end_layout
25757
25758 \end_inset
25759
25760 ] Marks this style as the one to be used to generate the 
25761 \begin_inset Flex Code
25762 status collapsed
25763
25764 \begin_layout Plain Layout
25765 <title>
25766 \end_layout
25767
25768 \end_inset
25769
25770  tag for the XHTML file.
25771  By default, it is false.
25772  The 
25773 \begin_inset Flex Code
25774 status collapsed
25775
25776 \begin_layout Plain Layout
25777 stdtitle.inc
25778 \end_layout
25779
25780 \end_inset
25781
25782  file sets it to true for the 
25783 \begin_inset Flex Code
25784 status collapsed
25785
25786 \begin_layout Plain Layout
25787 title
25788 \end_layout
25789
25790 \end_inset
25791
25792  environment.
25793  
25794 \end_layout
25795
25796 \begin_layout Subsection
25797 InsetLayout XHTML
25798 \end_layout
25799
25800 \begin_layout Standard
25801 The XHTML output of insets can also be controlled by information in layout
25802  files.
25803 \begin_inset Foot
25804 status collapsed
25805
25806 \begin_layout Plain Layout
25807 At present, this is true only for 
25808 \begin_inset Quotes eld
25809 \end_inset
25810
25811 text
25812 \begin_inset Quotes erd
25813 \end_inset
25814
25815  insets (insets you can type into) and is not true for 
25816 \begin_inset Quotes eld
25817 \end_inset
25818
25819 command
25820 \begin_inset Quotes erd
25821 \end_inset
25822
25823  insets (insets that are associated with dialog boxes).
25824 \end_layout
25825
25826 \end_inset
25827
25828  Here, too, \SpecialChar LyX
25829  tries to provide sensible defaults, and it constructs default
25830  CSS style rules.
25831  But everything can be customized.
25832 \end_layout
25833
25834 \begin_layout Standard
25835 The XHTML \SpecialChar LyX
25836  outputs for an inset has the following form:
25837 \end_layout
25838
25839 \begin_layout LyX-Code
25840 <tag attr=
25841 \begin_inset Quotes erd
25842 \end_inset
25843
25844 value
25845 \begin_inset Quotes erd
25846 \end_inset
25847
25848 >
25849 \end_layout
25850
25851 \begin_layout LyX-Code
25852 <labeltag>Label</labeltag>
25853 \end_layout
25854
25855 \begin_layout LyX-Code
25856 <innertag attr=
25857 \begin_inset Quotes erd
25858 \end_inset
25859
25860 value
25861 \begin_inset Quotes erd
25862 \end_inset
25863
25864 >Contents of the inset.</innertag>
25865 \end_layout
25866
25867 \begin_layout LyX-Code
25868 </tag>
25869 \end_layout
25870
25871 \begin_layout Standard
25872 If the inset permits multiple paragraphs—that is, if 
25873 \begin_inset Flex Code
25874 status collapsed
25875
25876 \begin_layout Plain Layout
25877 MultiPar
25878 \end_layout
25879
25880 \end_inset
25881
25882  is true—then the contents of the inset will itself be output as paragraphs
25883  formatted according to the styles used for those paragraphs (standard,
25884  quote, and the like).
25885  The label tag is of course omitted if the paragraph does not have a label
25886  and, at present, is always 
25887 \begin_inset Flex Code
25888 status collapsed
25889
25890 \begin_layout Plain Layout
25891 span
25892 \end_layout
25893
25894 \end_inset
25895
25896 .
25897  The inner tag is optional and, by default, does not appear.
25898 \end_layout
25899
25900 \begin_layout Standard
25901 The specific tags and attributes output for each inset can be controlled
25902  by means of the following layout tags.
25903 \end_layout
25904
25905 \begin_layout Description
25906 \begin_inset Flex Code
25907 status collapsed
25908
25909 \begin_layout Plain Layout
25910 HTMLAttr
25911 \end_layout
25912
25913 \end_inset
25914
25915  [
25916 \begin_inset Flex Code
25917 status collapsed
25918
25919 \begin_layout Plain Layout
25920 string
25921 \end_layout
25922
25923 \end_inset
25924
25925 ] Specifies attribute information to be output with the main tag.
25926  For example, 
25927 \begin_inset Quotes eld
25928 \end_inset
25929
25930
25931 \begin_inset Flex Code
25932 status collapsed
25933
25934 \begin_layout Plain Layout
25935 class=`myinset' onclick=`\SpecialChar ldots
25936 '
25937 \end_layout
25938
25939 \end_inset
25940
25941
25942 \begin_inset Quotes erd
25943 \end_inset
25944
25945 .
25946  By default, \SpecialChar LyX
25947  will output 
25948 \begin_inset Quotes eld
25949 \end_inset
25950
25951
25952 \begin_inset Flex Code
25953 status collapsed
25954
25955 \begin_layout Plain Layout
25956 class=`insetname'
25957 \end_layout
25958
25959 \end_inset
25960
25961
25962 \begin_inset Quotes erd
25963 \end_inset
25964
25965 , where 
25966 \begin_inset Flex Code
25967 status collapsed
25968
25969 \begin_layout Plain Layout
25970 insetname
25971 \end_layout
25972
25973 \end_inset
25974
25975  is the \SpecialChar LyX
25976  name of the inset, made lowercase and with non-alphanumeric characters
25977  converted to underscores, for example: footnote.
25978 \end_layout
25979
25980 \begin_layout Description
25981 \begin_inset Flex Code
25982 status collapsed
25983
25984 \begin_layout Plain Layout
25985 HTMLForceCSS
25986 \end_layout
25987
25988 \end_inset
25989
25990  [
25991 \begin_inset Flex Code
25992 status collapsed
25993
25994 \begin_layout Plain Layout
25995
25996 \emph on
25997 0
25998 \emph default
25999 ,1
26000 \end_layout
26001
26002 \end_inset
26003
26004 ] Whether to output the default CSS information \SpecialChar LyX
26005  generates for this layout,
26006  even if additional information is explicitly provided via 
26007 \begin_inset Flex Code
26008 status collapsed
26009
26010 \begin_layout Plain Layout
26011 HTMLStyle
26012 \end_layout
26013
26014 \end_inset
26015
26016 .
26017  Setting this to 
26018 \begin_inset Flex Code
26019 status collapsed
26020
26021 \begin_layout Plain Layout
26022 1
26023 \end_layout
26024
26025 \end_inset
26026
26027  allows you to alter or augment the generated CSS, rather than to override
26028  it completely.
26029  Default is 0.
26030 \end_layout
26031
26032 \begin_layout Description
26033 \begin_inset Flex Code
26034 status collapsed
26035
26036 \begin_layout Plain Layout
26037 HTMLInnerAttr
26038 \end_layout
26039
26040 \end_inset
26041
26042  [
26043 \begin_inset Flex Code
26044 status collapsed
26045
26046 \begin_layout Plain Layout
26047 string
26048 \end_layout
26049
26050 \end_inset
26051
26052 ] Attributes for the inner tag.
26053  Defaults to
26054 \begin_inset Newline newline
26055 \end_inset
26056
26057
26058 \begin_inset Quotes eld
26059 \end_inset
26060
26061
26062 \begin_inset Flex Code
26063 status collapsed
26064
26065 \begin_layout Plain Layout
26066 class=`insetname_inner'
26067 \end_layout
26068
26069 \end_inset
26070
26071
26072 \begin_inset Quotes erd
26073 \end_inset
26074
26075 .
26076 \end_layout
26077
26078 \begin_layout Description
26079 \begin_inset Flex Code
26080 status collapsed
26081
26082 \begin_layout Plain Layout
26083 HTMLInnerTag
26084 \end_layout
26085
26086 \end_inset
26087
26088  [
26089 \begin_inset Flex Code
26090 status collapsed
26091
26092 \begin_layout Plain Layout
26093 string
26094 \end_layout
26095
26096 \end_inset
26097
26098 ] The inner tag, replacing 
26099 \begin_inset Flex Code
26100 status collapsed
26101
26102 \begin_layout Plain Layout
26103 innertag
26104 \end_layout
26105
26106 \end_inset
26107
26108  in the examples above.
26109  By default, there is none.
26110 \end_layout
26111
26112 \begin_layout Description
26113 \begin_inset Flex Code
26114 status collapsed
26115
26116 \begin_layout Plain Layout
26117 HTMLIsBlock
26118 \end_layout
26119
26120 \end_inset
26121
26122  [
26123 \begin_inset Flex Code
26124 status collapsed
26125
26126 \begin_layout Plain Layout
26127 0,
26128 \emph on
26129 1
26130 \end_layout
26131
26132 \end_inset
26133
26134 ] Whether this inset represents a standalone block of text (such as a footnote)
26135  or instead represents material that is included in the surrounding text
26136  (such as a branch).
26137  Defaults to 1.
26138 \end_layout
26139
26140 \begin_layout Description
26141 \begin_inset Flex Code
26142 status collapsed
26143
26144 \begin_layout Plain Layout
26145 HTMLLabel
26146 \end_layout
26147
26148 \end_inset
26149
26150  [
26151 \begin_inset Flex Code
26152 status collapsed
26153
26154 \begin_layout Plain Layout
26155 string
26156 \end_layout
26157
26158 \end_inset
26159
26160 ] A label for this inset, possibly including a reference to a counter.
26161  For example, for footnote, it might be: 
26162 \begin_inset Flex Code
26163 status collapsed
26164
26165 \begin_layout Plain Layout
26166
26167 \backslash
26168 arabic{footnote}
26169 \end_layout
26170
26171 \end_inset
26172
26173 .
26174  This is optional, and there is no default.
26175 \end_layout
26176
26177 \begin_layout Description
26178 \begin_inset Flex Code
26179 status collapsed
26180
26181 \begin_layout Plain Layout
26182 HTMLPreamble
26183 \end_layout
26184
26185 \end_inset
26186
26187  Information to be output in the 
26188 \begin_inset Flex Code
26189 status collapsed
26190
26191 \begin_layout Plain Layout
26192 <head>
26193 \end_layout
26194
26195 \end_inset
26196
26197  section when this style is used.
26198  This might, for example, be used to include a 
26199 \begin_inset Flex Code
26200 status collapsed
26201
26202 \begin_layout Plain Layout
26203 <script>
26204 \end_layout
26205
26206 \end_inset
26207
26208  block defining an 
26209 \begin_inset Flex Code
26210 status collapsed
26211
26212 \begin_layout Plain Layout
26213 onclick
26214 \end_layout
26215
26216 \end_inset
26217
26218  handler.
26219 \end_layout
26220
26221 \begin_layout Description
26222 \begin_inset Flex Code
26223 status collapsed
26224
26225 \begin_layout Plain Layout
26226 HTMLStyle
26227 \end_layout
26228
26229 \end_inset
26230
26231  CSS style information to be included when this style is used.
26232  Note that this will automatically be wrapped in a layout-generated 
26233 \begin_inset Flex Code
26234 status collapsed
26235
26236 \begin_layout Plain Layout
26237 <style>
26238 \end_layout
26239
26240 \end_inset
26241
26242  block, so only the CSS itself need be included.
26243 \end_layout
26244
26245 \begin_layout Description
26246 \begin_inset Flex Code
26247 status collapsed
26248
26249 \begin_layout Plain Layout
26250 HTMLTag
26251 \end_layout
26252
26253 \end_inset
26254
26255  [
26256 \begin_inset Flex Code
26257 status collapsed
26258
26259 \begin_layout Plain Layout
26260 string
26261 \end_layout
26262
26263 \end_inset
26264
26265 ] The tag to be used for the main label, replacing 
26266 \begin_inset Flex Code
26267 status collapsed
26268
26269 \begin_layout Plain Layout
26270 tag
26271 \end_layout
26272
26273 \end_inset
26274
26275  in the examples above.
26276  The default depends upon the setting of 
26277 \begin_inset Flex Code
26278 status collapsed
26279
26280 \begin_layout Plain Layout
26281 MultiPar
26282 \end_layout
26283
26284 \end_inset
26285
26286 : If 
26287 \begin_inset Flex Code
26288 status collapsed
26289
26290 \begin_layout Plain Layout
26291 MultiPar
26292 \end_layout
26293
26294 \end_inset
26295
26296  is true, the default is 
26297 \begin_inset Flex Code
26298 status collapsed
26299
26300 \begin_layout Plain Layout
26301 div
26302 \end_layout
26303
26304 \end_inset
26305
26306 ; if it is false, the default is 
26307 \begin_inset Flex Code
26308 status collapsed
26309
26310 \begin_layout Plain Layout
26311 span
26312 \end_layout
26313
26314 \end_inset
26315
26316 .
26317 \end_layout
26318
26319 \begin_layout Subsection
26320 Float XHTML
26321 \end_layout
26322
26323 \begin_layout Standard
26324 The XHTML output for floats too can be controlled by layout information.
26325  The output has the following form:
26326 \end_layout
26327
26328 \begin_layout LyX-Code
26329 <tag attr=
26330 \begin_inset Quotes erd
26331 \end_inset
26332
26333 value
26334 \begin_inset Quotes erd
26335 \end_inset
26336
26337 >
26338 \end_layout
26339
26340 \begin_layout LyX-Code
26341 Contents of the float.
26342 \end_layout
26343
26344 \begin_layout LyX-Code
26345 </tag>
26346 \end_layout
26347
26348 \begin_layout Standard
26349 The caption, if there is one, is a separate inset and will be output as
26350  such.
26351  Its appearance can be controlled via the InsetLayout for caption insets.
26352  
26353 \end_layout
26354
26355 \begin_layout Description
26356 \begin_inset Flex Code
26357 status collapsed
26358
26359 \begin_layout Plain Layout
26360 HTMLAttr
26361 \end_layout
26362
26363 \end_inset
26364
26365  [
26366 \begin_inset Flex Code
26367 status collapsed
26368
26369 \begin_layout Plain Layout
26370 string
26371 \end_layout
26372
26373 \end_inset
26374
26375 ] Specifies attribute information to be output with the main tag.
26376  For example, 
26377 \begin_inset Quotes eld
26378 \end_inset
26379
26380
26381 \begin_inset Flex Code
26382 status collapsed
26383
26384 \begin_layout Plain Layout
26385 class=`myfloat' onclick=`\SpecialChar ldots
26386 '
26387 \end_layout
26388
26389 \end_inset
26390
26391
26392 \begin_inset Quotes erd
26393 \end_inset
26394
26395 .
26396  By default, \SpecialChar LyX
26397  will output 
26398 \begin_inset Quotes eld
26399 \end_inset
26400
26401
26402 \begin_inset Flex Code
26403 status collapsed
26404
26405 \begin_layout Plain Layout
26406 class=`float float-floattype'
26407 \end_layout
26408
26409 \end_inset
26410
26411
26412 \begin_inset Quotes erd
26413 \end_inset
26414
26415 , where 
26416 \begin_inset Flex Code
26417 status collapsed
26418
26419 \begin_layout Plain Layout
26420 floattype
26421 \end_layout
26422
26423 \end_inset
26424
26425  is \SpecialChar LyX
26426 's name for this type of float, as determined by the float declaration
26427  (see 
26428 \begin_inset CommandInset ref
26429 LatexCommand ref
26430 reference "subsec:Floats"
26431
26432 \end_inset
26433
26434 ), though made lowercase and with non-alphanumeric characters converted
26435  to underscores, for example: float-table.
26436 \end_layout
26437
26438 \begin_layout Description
26439 \begin_inset Flex Code
26440 status collapsed
26441
26442 \begin_layout Plain Layout
26443 HTMLStyle
26444 \end_layout
26445
26446 \end_inset
26447
26448  CSS style information to be included when this float is used.
26449  Note that this will automatically be wrapped in a layout-generated 
26450 \begin_inset Flex Code
26451 status collapsed
26452
26453 \begin_layout Plain Layout
26454 <style>
26455 \end_layout
26456
26457 \end_inset
26458
26459  block, so only the CSS itself need be included.
26460 \end_layout
26461
26462 \begin_layout Description
26463 \begin_inset Flex Code
26464 status collapsed
26465
26466 \begin_layout Plain Layout
26467 HTMLTag
26468 \end_layout
26469
26470 \end_inset
26471
26472  [
26473 \begin_inset Flex Code
26474 status collapsed
26475
26476 \begin_layout Plain Layout
26477 string
26478 \end_layout
26479
26480 \end_inset
26481
26482 ] The tag to be used for this float, replacing 
26483 \begin_inset Quotes eld
26484 \end_inset
26485
26486
26487 \begin_inset Flex Code
26488 status collapsed
26489
26490 \begin_layout Plain Layout
26491 tag
26492 \end_layout
26493
26494 \end_inset
26495
26496
26497 \begin_inset Quotes erd
26498 \end_inset
26499
26500  in the example above.
26501  The default is 
26502 \begin_inset Flex Code
26503 status collapsed
26504
26505 \begin_layout Plain Layout
26506 div
26507 \end_layout
26508
26509 \end_inset
26510
26511  and will rarely need changing.
26512 \end_layout
26513
26514 \begin_layout Subsection
26515 Bibliography formatting
26516 \end_layout
26517
26518 \begin_layout Standard
26519 The bibliography can be formatted using 
26520 \begin_inset Flex Code
26521 status collapsed
26522
26523 \begin_layout Plain Layout
26524 CiteFormat
26525 \end_layout
26526
26527 \end_inset
26528
26529  blocks.
26530  See 
26531 \begin_inset CommandInset ref
26532 LatexCommand ref
26533 reference "subsec:Citation-format-description"
26534
26535 \end_inset
26536
26537  for the details.
26538 \end_layout
26539
26540 \begin_layout Subsection
26541 \SpecialChar LyX
26542 -generated CSS
26543 \end_layout
26544
26545 \begin_layout Standard
26546 We have several times mentioned that \SpecialChar LyX
26547  will generate default CSS style rules
26548  for both insets and paragraph styles, based upon the other layout information
26549  that is provided.
26550  In this section, we shall say a word about which layout information \SpecialChar LyX
26551  uses
26552  and how.
26553 \end_layout
26554
26555 \begin_layout Standard
26556 At present, \SpecialChar LyX
26557  auto-generates CSS only for font information, making use of
26558  the 
26559 \begin_inset Flex Code
26560 status collapsed
26561
26562 \begin_layout Plain Layout
26563 Family
26564 \end_layout
26565
26566 \end_inset
26567
26568
26569 \begin_inset Flex Code
26570 status collapsed
26571
26572 \begin_layout Plain Layout
26573 Series
26574 \end_layout
26575
26576 \end_inset
26577
26578
26579 \begin_inset Flex Code
26580 status collapsed
26581
26582 \begin_layout Plain Layout
26583 Shape
26584 \end_layout
26585
26586 \end_inset
26587
26588 , and 
26589 \begin_inset Flex Code
26590 status collapsed
26591
26592 \begin_layout Plain Layout
26593 Size
26594 \end_layout
26595
26596 \end_inset
26597
26598  specified in the 
26599 \begin_inset Flex Code
26600 status collapsed
26601
26602 \begin_layout Plain Layout
26603 Font
26604 \end_layout
26605
26606 \end_inset
26607
26608  declaration (see 
26609 \begin_inset CommandInset ref
26610 LatexCommand ref
26611 reference "subsec:Font-description"
26612
26613 \end_inset
26614
26615 ).
26616  The translation is mostly straightforward and obvious.
26617  For example, 
26618 \begin_inset Quotes eld
26619 \end_inset
26620
26621
26622 \begin_inset Flex Code
26623 status collapsed
26624
26625 \begin_layout Plain Layout
26626 Family Sans
26627 \end_layout
26628
26629 \end_inset
26630
26631
26632 \begin_inset Quotes erd
26633 \end_inset
26634
26635  becomes 
26636 \begin_inset Quotes eld
26637 \end_inset
26638
26639
26640 \begin_inset Flex Code
26641 status collapsed
26642
26643 \begin_layout Plain Layout
26644 font-family: sans-serif;
26645 \end_layout
26646
26647 \end_inset
26648
26649
26650 \begin_inset Quotes erd
26651 \end_inset
26652
26653 .
26654  The correspondence of \SpecialChar LyX
26655  sizes and CSS sizes is a little less obvious but
26656  nonetheless intuitive.
26657  See the 
26658 \begin_inset Flex Code
26659 status collapsed
26660
26661 \begin_layout Plain Layout
26662 getSizeCSS()
26663 \end_layout
26664
26665 \end_inset
26666
26667  function in 
26668 \begin_inset Flex URL
26669 status collapsed
26670
26671 \begin_layout Plain Layout
26672
26673 src/FontInfo.cpp
26674 \end_layout
26675
26676 \end_inset
26677
26678  for the details.
26679 \end_layout
26680
26681 \begin_layout Chapter
26682 Including External Material
26683 \begin_inset CommandInset label
26684 LatexCommand label
26685 name "chap:Including-External-Material"
26686
26687 \end_inset
26688
26689
26690 \end_layout
26691
26692 \begin_layout Standard
26693 \begin_inset Box Shadowbox
26694 position "t"
26695 hor_pos "c"
26696 has_inner_box 1
26697 inner_pos "t"
26698 use_parbox 0
26699 use_makebox 0
26700 width "100col%"
26701 special "none"
26702 height "1in"
26703 height_special "totalheight"
26704 thickness "0.4pt"
26705 separation "3pt"
26706 shadowsize "4pt"
26707 framecolor "black"
26708 backgroundcolor "none"
26709 status open
26710
26711 \begin_layout Plain Layout
26712 WARNING: This portion of the documentation has not been updated for some
26713  time.
26714  We certainly hope that it is still accurate, but there are no guarantees.
26715 \end_layout
26716
26717 \end_inset
26718
26719
26720 \end_layout
26721
26722 \begin_layout Standard
26723 The use of material from sources external to \SpecialChar LyX
26724  is covered in detail in the
26725  
26726 \emph on
26727 Embedded Objects
26728 \emph default
26729  manual.
26730  This part of the manual covers what needs to happen behind the scenes for
26731  new sorts of material to be included.
26732 \end_layout
26733
26734 \begin_layout Section
26735 How does it work?
26736 \end_layout
26737
26738 \begin_layout Standard
26739 The external material feature is based on the concept of a 
26740 \emph on
26741 template
26742 \emph default
26743 .
26744  A template is a specification of how \SpecialChar LyX
26745  should interface with a certain kind
26746  of material.
26747  As bundled, \SpecialChar LyX
26748  comes with predefined templates for Xfig figures, various
26749  raster format images, chess diagrams, and LilyPond music notation.
26750  You can check the actual list by using the menu 
26751 \begin_inset Flex Noun
26752 status collapsed
26753
26754 \begin_layout Plain Layout
26755 Insert\SpecialChar menuseparator
26756 File\SpecialChar menuseparator
26757 External Material
26758 \end_layout
26759
26760 \end_inset
26761
26762 .
26763  Furthermore, it is possible to roll your own template to support a specific
26764  kind of material.
26765  Later we'll describe in more detail what is involved, and hopefully you
26766  will submit all the templates you create so we can include them in a later
26767  \SpecialChar LyX
26768  version.
26769 \end_layout
26770
26771 \begin_layout Standard
26772 Another basic idea of the external material feature is to distinguish between
26773  the original file that serves as a base for final material and the produced
26774  file that is included in your exported or printed document.
26775  For example, consider the case of a figure produced with 
26776 \begin_inset Flex Code
26777 status collapsed
26778
26779 \begin_layout Plain Layout
26780 Xfig
26781 \end_layout
26782
26783 \end_inset
26784
26785 .
26786  The Xfig application itself works on an original file with the 
26787 \begin_inset Flex Code
26788 status collapsed
26789
26790 \begin_layout Plain Layout
26791 .fig
26792 \end_layout
26793
26794 \end_inset
26795
26796  extension.
26797  Within Xfig, you create and change your figure, and when you are done,
26798  you save the 
26799 \begin_inset Flex Code
26800 status collapsed
26801
26802 \begin_layout Plain Layout
26803 fig
26804 \end_layout
26805
26806 \end_inset
26807
26808 -file.
26809  When you want to include the figure in your document, you invoke 
26810 \begin_inset Flex Code
26811 status collapsed
26812
26813 \begin_layout Plain Layout
26814 transfig
26815 \end_layout
26816
26817 \end_inset
26818
26819  in order to create a PostScript file that can readily be included in your
26820  \SpecialChar LaTeX
26821  file.
26822  In this case, the 
26823 \begin_inset Flex Code
26824 status collapsed
26825
26826 \begin_layout Plain Layout
26827 .fig
26828 \end_layout
26829
26830 \end_inset
26831
26832  file is the original file, and the PostScript file is the produced file.
26833 \end_layout
26834
26835 \begin_layout Standard
26836 This distinction is important in order to allow updating of the material
26837  while you are in the process of writing the document.
26838  Furthermore, it provides us with the flexibility that is needed to support
26839  multiple export formats.
26840  For instance, in the case of a plain text file, it is not exactly an award-winn
26841 ing idea to include the figure as raw PostScript.
26842  Instead, you would either prefer to just include a reference to the figure
26843  or try to invoke some graphics to ASCII converter to make the final result
26844  look similar to the real graphics.
26845  The external material management allows you to do this, because it is parametri
26846 zed on the different export formats that \SpecialChar LyX
26847  supports.
26848 \end_layout
26849
26850 \begin_layout Standard
26851 Besides supporting the production of different products according to the
26852  exported format, it supports tight integration with editing and viewing
26853  applications.
26854  In the case of an Xfig figure, you are able to invoke Xfig on the original
26855  file with a single click from within the external material dialog in \SpecialChar LyX
26856 ,
26857  and also preview the produced PostScript file with Ghostview with another
26858  click.
26859  No more fiddling around with the command line and/or file browsers to locate
26860  and manipulate the original or produced files.
26861  In this way, you are finally able to take full advantage of the many different
26862  applications that are relevant to use when you write your documents, and
26863  ultimately be more productive.
26864 \end_layout
26865
26866 \begin_layout Section
26867 The external template configuration files
26868 \end_layout
26869
26870 \begin_layout Standard
26871 It is relatively easy to add custom external template definitions to \SpecialChar LyX
26872 .
26873  However, be aware that doing this in an careless manner most probably 
26874 \emph on
26875 will
26876 \emph default
26877  introduce an easily exploitable security hole.
26878  So before you do this, please read the discussion about security in 
26879 \begin_inset CommandInset ref
26880 LatexCommand ref
26881 reference "sec:Security-discussion"
26882
26883 \end_inset
26884
26885 .
26886 \end_layout
26887
26888 \begin_layout Standard
26889 Having said that, we encourage you to submit any interesting templates that
26890  you create.
26891  
26892 \end_layout
26893
26894 \begin_layout Standard
26895 The external templates are defined in the 
26896 \begin_inset Flex Code
26897 status collapsed
26898
26899 \begin_layout Plain Layout
26900 *.xtemplate
26901 \end_layout
26902
26903 \end_inset
26904
26905  files that are stored in the 
26906 \begin_inset Flex Code
26907 status collapsed
26908
26909 \begin_layout Plain Layout
26910 LyXDir/lib/xtemplates/
26911 \end_layout
26912
26913 \end_inset
26914
26915  directory.
26916  Each template is defined in a file of its own.
26917  You can place your own templates in 
26918 \begin_inset Flex Code
26919 status collapsed
26920
26921 \begin_layout Plain Layout
26922 UserDir/xtemplates/
26923 \end_layout
26924
26925 \end_inset
26926
26927  or copy existing templates to that directory in order to modify them.
26928 \end_layout
26929
26930 \begin_layout Standard
26931 A typical template looks like this:
26932 \end_layout
26933
26934 \begin_layout LyX-Code
26935 Template XFig
26936 \end_layout
26937
26938 \begin_layout LyX-Code
26939 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
26940 \end_layout
26941
26942 \begin_layout LyX-Code
26943 HelpText
26944 \end_layout
26945
26946 \begin_layout LyX-Code
26947 An XFig figure.
26948 \end_layout
26949
26950 \begin_layout LyX-Code
26951 HelpTextEnd
26952 \end_layout
26953
26954 \begin_layout LyX-Code
26955 InputFormat fig
26956 \end_layout
26957
26958 \begin_layout LyX-Code
26959 FileFilter "*.fig"
26960 \end_layout
26961
26962 \begin_layout LyX-Code
26963 AutomaticProduction true
26964 \end_layout
26965
26966 \begin_layout LyX-Code
26967 Transform Rotate
26968 \end_layout
26969
26970 \begin_layout LyX-Code
26971 Transform Resize
26972 \end_layout
26973
26974 \begin_layout LyX-Code
26975 Format LaTeX
26976 \end_layout
26977
26978 \begin_layout LyX-Code
26979 TransformCommand Rotate RotationLatexCommand
26980 \end_layout
26981
26982 \begin_layout LyX-Code
26983 TransformCommand Resize ResizeLatexCommand
26984 \end_layout
26985
26986 \begin_layout LyX-Code
26987 Product "$$RotateFront$$ResizeFront
26988 \end_layout
26989
26990 \begin_layout LyX-Code
26991          
26992 \backslash
26993
26994 \backslash
26995 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
26996 \end_layout
26997
26998 \begin_layout LyX-Code
26999          $$ResizeBack$$RotateBack"
27000 \end_layout
27001
27002 \begin_layout LyX-Code
27003 UpdateFormat pstex
27004 \end_layout
27005
27006 \begin_layout LyX-Code
27007 UpdateResult "$$AbsPath$$Basename.pstex_t"
27008 \end_layout
27009
27010 \begin_layout LyX-Code
27011 Requirement "graphicx"
27012 \end_layout
27013
27014 \begin_layout LyX-Code
27015 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
27016 \end_layout
27017
27018 \begin_layout LyX-Code
27019 ReferencedFile latex "$$AbsPath$$Basename.eps"
27020 \end_layout
27021
27022 \begin_layout LyX-Code
27023 ReferencedFile dvi "$$AbsPath$$Basename.eps"
27024 \end_layout
27025
27026 \begin_layout LyX-Code
27027 FormatEnd
27028 \end_layout
27029
27030 \begin_layout LyX-Code
27031 Format PDFLaTeX
27032 \end_layout
27033
27034 \begin_layout LyX-Code
27035 TransformCommand Rotate RotationLatexCommand
27036 \end_layout
27037
27038 \begin_layout LyX-Code
27039 TransformCommand Resize ResizeLatexCommand
27040 \end_layout
27041
27042 \begin_layout LyX-Code
27043 Product "$$RotateFront$$ResizeFront
27044 \end_layout
27045
27046 \begin_layout LyX-Code
27047          
27048 \backslash
27049
27050 \backslash
27051 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
27052 \end_layout
27053
27054 \begin_layout LyX-Code
27055          $$ResizeBack$$RotateBack"
27056 \end_layout
27057
27058 \begin_layout LyX-Code
27059 UpdateFormat pdftex
27060 \end_layout
27061
27062 \begin_layout LyX-Code
27063 UpdateResult "$$AbsPath$$Basename.pdftex_t"
27064 \end_layout
27065
27066 \begin_layout LyX-Code
27067 Requirement "graphicx"
27068 \end_layout
27069
27070 \begin_layout LyX-Code
27071 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
27072 \end_layout
27073
27074 \begin_layout LyX-Code
27075 ReferencedFile latex "$$AbsPath$$Basename.pdf"
27076 \end_layout
27077
27078 \begin_layout LyX-Code
27079 FormatEnd
27080 \end_layout
27081
27082 \begin_layout LyX-Code
27083 Format Ascii
27084 \end_layout
27085
27086 \begin_layout LyX-Code
27087 Product "[XFig: $$FName]"
27088 \end_layout
27089
27090 \begin_layout LyX-Code
27091 FormatEnd
27092 \end_layout
27093
27094 \begin_layout LyX-Code
27095 Format DocBook
27096 \end_layout
27097
27098 \begin_layout LyX-Code
27099 Product "<graphic fileref=
27100 \backslash
27101 "$$AbsOrRelPathMaster$$Basename.eps
27102 \backslash
27103 ">
27104 \end_layout
27105
27106 \begin_layout LyX-Code
27107          </graphic>"
27108 \end_layout
27109
27110 \begin_layout LyX-Code
27111 UpdateFormat eps
27112 \end_layout
27113
27114 \begin_layout LyX-Code
27115 UpdateResult "$$AbsPath$$Basename.eps"
27116 \end_layout
27117
27118 \begin_layout LyX-Code
27119 ReferencedFile docbook "$$AbsPath$$Basename.eps"
27120 \end_layout
27121
27122 \begin_layout LyX-Code
27123 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
27124 \end_layout
27125
27126 \begin_layout LyX-Code
27127 FormatEnd
27128 \end_layout
27129
27130 \begin_layout LyX-Code
27131 TemplateEnd
27132 \end_layout
27133
27134 \begin_layout Standard
27135 As you can see, the template is enclosed in 
27136 \begin_inset Flex Code
27137 status collapsed
27138
27139 \begin_layout Plain Layout
27140 Template
27141 \end_layout
27142
27143 \end_inset
27144
27145  \SpecialChar ldots
27146  
27147 \begin_inset Flex Code
27148 status collapsed
27149
27150 \begin_layout Plain Layout
27151 TemplateEnd
27152 \end_layout
27153
27154 \end_inset
27155
27156 .
27157  It contains a header specifying some general settings and, for each supported
27158  primary document file format, a section 
27159 \begin_inset Flex Code
27160 status collapsed
27161
27162 \begin_layout Plain Layout
27163 Format
27164 \end_layout
27165
27166 \end_inset
27167
27168  \SpecialChar ldots
27169  
27170 \begin_inset Flex Code
27171 status collapsed
27172
27173 \begin_layout Plain Layout
27174 FormatEnd
27175 \end_layout
27176
27177 \end_inset
27178
27179 .
27180 \end_layout
27181
27182 \begin_layout Subsection
27183 The template header
27184 \end_layout
27185
27186 \begin_layout Description
27187 \begin_inset Flex Code
27188 status collapsed
27189
27190 \begin_layout Plain Layout
27191 AutomaticProduction
27192 \begin_inset space ~
27193 \end_inset
27194
27195 true|false
27196 \end_layout
27197
27198 \end_inset
27199
27200  Whether the file represented by the template must be generated by \SpecialChar LyX
27201 .
27202  This command must occur exactly once.
27203 \end_layout
27204
27205 \begin_layout Description
27206 \begin_inset Flex Code
27207 status collapsed
27208
27209 \begin_layout Plain Layout
27210 FileFilter
27211 \begin_inset space ~
27212 \end_inset
27213
27214 <pattern>
27215 \end_layout
27216
27217 \end_inset
27218
27219  A glob pattern that is used in the file dialog to filter out the desired
27220  files.
27221  If there is more than one possible file extension (e.
27222 \begin_inset space \thinspace{}
27223 \end_inset
27224
27225 g.
27226 \begin_inset space \space{}
27227 \end_inset
27228
27229 tgif has 
27230 \begin_inset Flex Code
27231 status collapsed
27232
27233 \begin_layout Plain Layout
27234 .obj
27235 \end_layout
27236
27237 \end_inset
27238
27239  and 
27240 \begin_inset Flex Code
27241 status collapsed
27242
27243 \begin_layout Plain Layout
27244 .tgo
27245 \end_layout
27246
27247 \end_inset
27248
27249 ), use something like 
27250 \begin_inset Flex Code
27251 status collapsed
27252
27253 \begin_layout Plain Layout
27254 "*.{obj,tgo}"
27255 \end_layout
27256
27257 \end_inset
27258
27259 .
27260  This command must occur exactly once.
27261 \end_layout
27262
27263 \begin_layout Description
27264 \begin_inset Flex Code
27265 status collapsed
27266
27267 \begin_layout Plain Layout
27268 GuiName
27269 \begin_inset space ~
27270 \end_inset
27271
27272 <guiname>
27273 \end_layout
27274
27275 \end_inset
27276
27277  The text that is displayed on the button.
27278  This command must occur exactly once.
27279 \end_layout
27280
27281 \begin_layout Description
27282 \begin_inset Flex Code
27283 status collapsed
27284
27285 \begin_layout Plain Layout
27286 HelpText
27287 \begin_inset space ~
27288 \end_inset
27289
27290 <text>
27291 \begin_inset space ~
27292 \end_inset
27293
27294 HelpTextEnd
27295 \end_layout
27296
27297 \end_inset
27298
27299  The help text that is used in the External dialog.
27300  Provide enough information to explain to the user just what the template
27301  can provide him with.
27302  This command must occur exactly once.
27303 \end_layout
27304
27305 \begin_layout Description
27306 \begin_inset Flex Code
27307 status collapsed
27308
27309 \begin_layout Plain Layout
27310 InputFormat
27311 \begin_inset space ~
27312 \end_inset
27313
27314 <format>
27315 \end_layout
27316
27317 \end_inset
27318
27319  The file format of the original file.
27320  This must be the name of a format that is known to \SpecialChar LyX
27321  (see 
27322 \begin_inset CommandInset ref
27323 LatexCommand ref
27324 reference "sec:Formats"
27325
27326 \end_inset
27327
27328 ).
27329  Use 
27330 \begin_inset Quotes eld
27331 \end_inset
27332
27333
27334 \begin_inset Flex Code
27335 status collapsed
27336
27337 \begin_layout Plain Layout
27338 *
27339 \end_layout
27340
27341 \end_inset
27342
27343
27344 \begin_inset Quotes erd
27345 \end_inset
27346
27347  if the template can handle original files of more than one format.
27348  \SpecialChar LyX
27349  will attempt to interrogate the file itself in order to deduce its format
27350  in this case.
27351  This command must occur exactly once.
27352 \end_layout
27353
27354 \begin_layout Description
27355 \begin_inset Flex Code
27356 status collapsed
27357
27358 \begin_layout Plain Layout
27359 Template
27360 \begin_inset space ~
27361 \end_inset
27362
27363 <id>
27364 \end_layout
27365
27366 \end_inset
27367
27368  A unique name for the template.
27369  It must not contain substitution macros (see below).
27370 \end_layout
27371
27372 \begin_layout Description
27373 \begin_inset Flex Code
27374 status collapsed
27375
27376 \begin_layout Plain Layout
27377 Transform
27378 \begin_inset space ~
27379 \end_inset
27380
27381 Rotate|Resize|Clip|Extra
27382 \end_layout
27383
27384 \end_inset
27385
27386  This command specifies which transformations are supported by this template.
27387  It may occur zero or more times.
27388  This command enables the corresponding tabs in the external dialog.
27389  Each 
27390 \begin_inset Flex Code
27391 status collapsed
27392
27393 \begin_layout Plain Layout
27394 Transform
27395 \end_layout
27396
27397 \end_inset
27398
27399  command must have either a corresponding 
27400 \begin_inset Flex Code
27401 status collapsed
27402
27403 \begin_layout Plain Layout
27404 TransformCommand
27405 \end_layout
27406
27407 \end_inset
27408
27409  or a 
27410 \begin_inset Flex Code
27411 status collapsed
27412
27413 \begin_layout Plain Layout
27414 TransformOption
27415 \end_layout
27416
27417 \end_inset
27418
27419  command in the 
27420 \begin_inset Flex Code
27421 status collapsed
27422
27423 \begin_layout Plain Layout
27424 Format
27425 \end_layout
27426
27427 \end_inset
27428
27429  section.
27430  Otherwise the transformation will not be supported by that format.
27431 \end_layout
27432
27433 \begin_layout Subsection
27434 The Format section
27435 \end_layout
27436
27437 \begin_layout Description
27438 \begin_inset Flex Code
27439 status collapsed
27440
27441 \begin_layout Plain Layout
27442 Format
27443 \begin_inset space ~
27444 \end_inset
27445
27446 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
27447 \end_layout
27448
27449 \end_inset
27450
27451  The primary document file format that this format definition is for.
27452  Not every template has a sensible representation in all document file formats.
27453  Please define nevertheless a 
27454 \begin_inset Flex Code
27455 status collapsed
27456
27457 \begin_layout Plain Layout
27458 Format
27459 \end_layout
27460
27461 \end_inset
27462
27463  section for all templates.
27464  Use a dummy text when no representation is available.
27465  Then you can at least see a reference to the external material in the exported
27466  document.
27467 \end_layout
27468
27469 \begin_layout Description
27470 \begin_inset Flex Code
27471 status collapsed
27472
27473 \begin_layout Plain Layout
27474 Option
27475 \begin_inset space ~
27476 \end_inset
27477
27478 <name>
27479 \begin_inset space ~
27480 \end_inset
27481
27482 <value>
27483 \end_layout
27484
27485 \end_inset
27486
27487  This command defines an additional macro 
27488 \begin_inset Flex Code
27489 status collapsed
27490
27491 \begin_layout Plain Layout
27492 $$<name>
27493 \end_layout
27494
27495 \end_inset
27496
27497  for substitution in 
27498 \begin_inset Flex Code
27499 status collapsed
27500
27501 \begin_layout Plain Layout
27502 Product
27503 \end_layout
27504
27505 \end_inset
27506
27507 .
27508  
27509 \begin_inset Flex Code
27510 status collapsed
27511
27512 \begin_layout Plain Layout
27513 <value>
27514 \end_layout
27515
27516 \end_inset
27517
27518  itself may contain substitution macros.
27519  The advantage over using 
27520 \begin_inset Flex Code
27521 status collapsed
27522
27523 \begin_layout Plain Layout
27524 <value>
27525 \end_layout
27526
27527 \end_inset
27528
27529  directly in 
27530 \begin_inset Flex Code
27531 status collapsed
27532
27533 \begin_layout Plain Layout
27534 Product
27535 \end_layout
27536
27537 \end_inset
27538
27539  is that the substituted value of 
27540 \begin_inset Flex Code
27541 status collapsed
27542
27543 \begin_layout Plain Layout
27544 $$<name>
27545 \end_layout
27546
27547 \end_inset
27548
27549  is sanitized so that it is a valid optional argument in the document format.
27550  This command may occur zero or more times.
27551 \end_layout
27552
27553 \begin_layout Description
27554 \begin_inset Flex Code
27555 status collapsed
27556
27557 \begin_layout Plain Layout
27558 Product
27559 \begin_inset space ~
27560 \end_inset
27561
27562 <text>
27563 \end_layout
27564
27565 \end_inset
27566
27567  The text that is inserted in the exported document.
27568  This is actually the most important command and can be quite complex.
27569  This command must occur exactly once.
27570 \end_layout
27571
27572 \begin_layout Description
27573 \begin_inset Flex Code
27574 status collapsed
27575
27576 \begin_layout Plain Layout
27577 Preamble
27578 \begin_inset space ~
27579 \end_inset
27580
27581 <name>
27582 \end_layout
27583
27584 \end_inset
27585
27586  This command specifies a preamble snippet that will be included in the
27587  \SpecialChar LaTeX
27588  preamble.
27589  It has to be defined using 
27590 \begin_inset Flex Code
27591 status collapsed
27592
27593 \begin_layout Plain Layout
27594 PreambleDef
27595 \end_layout
27596
27597 \end_inset
27598
27599  \SpecialChar ldots
27600  
27601 \begin_inset Flex Code
27602 status collapsed
27603
27604 \begin_layout Plain Layout
27605 PreambleDefEnd
27606 \end_layout
27607
27608 \end_inset
27609
27610 .
27611  This command may occur zero or more times.
27612 \end_layout
27613
27614 \begin_layout Description
27615 \begin_inset Flex Code
27616 status collapsed
27617
27618 \begin_layout Plain Layout
27619 ReferencedFile
27620 \begin_inset space ~
27621 \end_inset
27622
27623 <format>
27624 \begin_inset space ~
27625 \end_inset
27626
27627 <filename>
27628 \end_layout
27629
27630 \end_inset
27631
27632  This command denotes files that are created by the conversion process and
27633  are needed for a particular export format.
27634  If the filename is relative, it is interpreted relative to the master document.
27635  This command may be given zero or more times.
27636 \end_layout
27637
27638 \begin_layout Description
27639 \begin_inset Flex Code
27640 status collapsed
27641
27642 \begin_layout Plain Layout
27643 Requirement
27644 \begin_inset space ~
27645 \end_inset
27646
27647 <package>
27648 \end_layout
27649
27650 \end_inset
27651
27652  The name of a required \SpecialChar LaTeX
27653  package.
27654  The package is included via 
27655 \begin_inset Flex Code
27656 status collapsed
27657
27658 \begin_layout Plain Layout
27659
27660 \backslash
27661 usepackage{}
27662 \end_layout
27663
27664 \end_inset
27665
27666  in the \SpecialChar LaTeX
27667  preamble.
27668  This command may occur zero or more times.
27669 \end_layout
27670
27671 \begin_layout Description
27672 \begin_inset Flex Code
27673 status collapsed
27674
27675 \begin_layout Plain Layout
27676 TransformCommand
27677 \begin_inset space ~
27678 \end_inset
27679
27680 Rotate
27681 \begin_inset space ~
27682 \end_inset
27683
27684 RotationLatexCommand
27685 \end_layout
27686
27687 \end_inset
27688
27689  This command specifies that the built in \SpecialChar LaTeX
27690  command should be used for rotation.
27691  This command may occur once or not at all.
27692 \end_layout
27693
27694 \begin_layout Description
27695 \begin_inset Flex Code
27696 status collapsed
27697
27698 \begin_layout Plain Layout
27699 TransformCommand
27700 \begin_inset space ~
27701 \end_inset
27702
27703 Resize
27704 \begin_inset space ~
27705 \end_inset
27706
27707 ResizeLatexCommand
27708 \end_layout
27709
27710 \end_inset
27711
27712  This command specifies that the built in \SpecialChar LaTeX
27713  command should be used for resizing.
27714  This command may occur once or not at all.
27715 \end_layout
27716
27717 \begin_layout Description
27718 \begin_inset Flex Code
27719 status collapsed
27720
27721 \begin_layout Plain Layout
27722 TransformOption
27723 \begin_inset space ~
27724 \end_inset
27725
27726 Rotate
27727 \begin_inset space ~
27728 \end_inset
27729
27730 RotationLatexOption
27731 \end_layout
27732
27733 \end_inset
27734
27735  This command specifies that rotation is done via an optional argument.
27736  This command may occur once or not at all.
27737 \end_layout
27738
27739 \begin_layout Description
27740 \begin_inset Flex Code
27741 status collapsed
27742
27743 \begin_layout Plain Layout
27744 TransformOption
27745 \begin_inset space ~
27746 \end_inset
27747
27748 Resize
27749 \begin_inset space ~
27750 \end_inset
27751
27752 ResizeLatexOption
27753 \end_layout
27754
27755 \end_inset
27756
27757  This command specifies that resizing is done via an optional argument.
27758  This command may occur once or not at all.
27759 \end_layout
27760
27761 \begin_layout Description
27762 \begin_inset Flex Code
27763 status collapsed
27764
27765 \begin_layout Plain Layout
27766 TransformOption
27767 \begin_inset space ~
27768 \end_inset
27769
27770 Clip
27771 \begin_inset space ~
27772 \end_inset
27773
27774 ClipLatexOption
27775 \end_layout
27776
27777 \end_inset
27778
27779  This command specifies that clipping is done via an optional argument.
27780  This command may occur once or not at all.
27781 \end_layout
27782
27783 \begin_layout Description
27784 \begin_inset Flex Code
27785 status collapsed
27786
27787 \begin_layout Plain Layout
27788 TransformOption
27789 \begin_inset space ~
27790 \end_inset
27791
27792 Extra
27793 \begin_inset space ~
27794 \end_inset
27795
27796 ExtraLatexOption
27797 \end_layout
27798
27799 \end_inset
27800
27801  This command specifies that an extra optional argument is used.
27802  This command may occur once or not at all.
27803 \end_layout
27804
27805 \begin_layout Description
27806 \begin_inset Flex Code
27807 status collapsed
27808
27809 \begin_layout Plain Layout
27810 UpdateFormat
27811 \begin_inset space ~
27812 \end_inset
27813
27814 <format>
27815 \end_layout
27816
27817 \end_inset
27818
27819  The file format of the converted file.
27820  This must be the name of a format that is known to \SpecialChar LyX
27821  (see the 
27822 \begin_inset Flex Noun
27823 status collapsed
27824
27825 \begin_layout Plain Layout
27826 Tools\SpecialChar menuseparator
27827 Preferences\SpecialChar menuseparator
27828 File Handling\SpecialChar menuseparator
27829 File Format
27830 \end_layout
27831
27832 \end_inset
27833
27834  dialog).
27835  This command must occur exactly once.
27836  If the resulting file format is PDF, you need to specify the format 
27837 \begin_inset Flex Code
27838 status collapsed
27839
27840 \begin_layout Plain Layout
27841 pdf6
27842 \end_layout
27843
27844 \end_inset
27845
27846 .
27847  This is the PDF format used for including graphics.
27848  The other defined PDF formats are for document export.
27849 \end_layout
27850
27851 \begin_layout Description
27852 \begin_inset Flex Code
27853 status collapsed
27854
27855 \begin_layout Plain Layout
27856 UpdateResult
27857 \begin_inset space ~
27858 \end_inset
27859
27860 <filename>
27861 \end_layout
27862
27863 \end_inset
27864
27865  The file name of the converted file.
27866  The file name must be absolute.
27867  This command must occur exactly once.
27868 \end_layout
27869
27870 \begin_layout Subsection
27871 Preamble definitions
27872 \end_layout
27873
27874 \begin_layout Standard
27875 The external template configuration file may contain additional preamble
27876  definitions enclosed by 
27877 \begin_inset Flex Code
27878 status collapsed
27879
27880 \begin_layout Plain Layout
27881 PreambleDef
27882 \end_layout
27883
27884 \end_inset
27885
27886  \SpecialChar ldots
27887  
27888 \begin_inset Flex Code
27889 status collapsed
27890
27891 \begin_layout Plain Layout
27892 PreambleDefEnd
27893 \end_layout
27894
27895 \end_inset
27896
27897 .
27898  They can be used by the templates in the 
27899 \begin_inset Flex Code
27900 status collapsed
27901
27902 \begin_layout Plain Layout
27903 Format
27904 \end_layout
27905
27906 \end_inset
27907
27908  section.
27909 \end_layout
27910
27911 \begin_layout Section
27912 The substitution mechanism
27913 \end_layout
27914
27915 \begin_layout Standard
27916 When the external material facility invokes an external program, it is done
27917  on the basis of a command defined in the template configuration file.
27918  These commands can contain various macros that are expanded before execution.
27919  Execution always take place in the directory of the containing document.
27920 \end_layout
27921
27922 \begin_layout Standard
27923 Also, whenever external material is to be displayed, the name will be produced
27924  by the substitution mechanism, and most other commands in the template
27925  definition support substitution as well.
27926 \end_layout
27927
27928 \begin_layout Standard
27929 The available macros are the following:
27930 \end_layout
27931
27932 \begin_layout Description
27933 \begin_inset Flex Code
27934 status collapsed
27935
27936 \begin_layout Plain Layout
27937 $$AbsOrRelPathMaster
27938 \end_layout
27939
27940 \end_inset
27941
27942  The file path, absolute or relative to the master \SpecialChar LyX
27943  document.
27944 \end_layout
27945
27946 \begin_layout Description
27947 \begin_inset Flex Code
27948 status collapsed
27949
27950 \begin_layout Plain Layout
27951 $$AbsOrRelPathParent
27952 \end_layout
27953
27954 \end_inset
27955
27956  The file path, absolute or relative to the \SpecialChar LyX
27957  document.
27958 \end_layout
27959
27960 \begin_layout Description
27961 \begin_inset Flex Code
27962 status collapsed
27963
27964 \begin_layout Plain Layout
27965 $$AbsPath
27966 \end_layout
27967
27968 \end_inset
27969
27970  The absolute file path.
27971 \end_layout
27972
27973 \begin_layout Description
27974 \begin_inset Flex Code
27975 status collapsed
27976
27977 \begin_layout Plain Layout
27978 $$Basename
27979 \end_layout
27980
27981 \end_inset
27982
27983  The filename without path and without the extension.
27984 \end_layout
27985
27986 \begin_layout Description
27987 \begin_inset Flex Code
27988 status collapsed
27989
27990 \begin_layout Plain Layout
27991 $$Contents(
27992 \begin_inset Quotes eld
27993 \end_inset
27994
27995 filename.ext
27996 \begin_inset Quotes erd
27997 \end_inset
27998
27999 )
28000 \end_layout
28001
28002 \end_inset
28003
28004  This macro will expand to the contents of the file with the name 
28005 \begin_inset Flex Code
28006 status collapsed
28007
28008 \begin_layout Plain Layout
28009 filename.ext
28010 \end_layout
28011
28012 \end_inset
28013
28014 .
28015 \end_layout
28016
28017 \begin_layout Description
28018 \begin_inset Flex Code
28019 status collapsed
28020
28021 \begin_layout Plain Layout
28022 $$Extension
28023 \end_layout
28024
28025 \end_inset
28026
28027  The file extension (including the dot).
28028 \end_layout
28029
28030 \begin_layout Description
28031 \begin_inset Flex Code
28032 status collapsed
28033
28034 \begin_layout Plain Layout
28035 $$pngOrjpg
28036 \end_layout
28037
28038 \end_inset
28039
28040  This will be the string 
28041 \begin_inset Quotes eld
28042 \end_inset
28043
28044 jpg
28045 \begin_inset Quotes erd
28046 \end_inset
28047
28048  if the file is in JPEG format, otherwise it will be the string 
28049 \begin_inset Quotes eld
28050 \end_inset
28051
28052 png
28053 \begin_inset Quotes erd
28054 \end_inset
28055
28056 .
28057  This is useful to avoid uneeded conversions for output formats that support
28058  both PNG and JPEG fomats.
28059  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
28060  output
28061  format.
28062 \end_layout
28063
28064 \begin_layout Description
28065 \begin_inset Flex Code
28066 status collapsed
28067
28068 \begin_layout Plain Layout
28069 $$FName
28070 \end_layout
28071
28072 \end_inset
28073
28074  The filename of the file specified in the external material dialog.
28075  This is either an absolute name, or it is relative to the \SpecialChar LyX
28076  document.
28077 \end_layout
28078
28079 \begin_layout Description
28080 \begin_inset Flex Code
28081 status collapsed
28082
28083 \begin_layout Plain Layout
28084 $$FPath
28085 \end_layout
28086
28087 \end_inset
28088
28089  The path part of 
28090 \begin_inset Flex Code
28091 status collapsed
28092
28093 \begin_layout Plain Layout
28094 $$FName
28095 \end_layout
28096
28097 \end_inset
28098
28099  (absolute name or relative to the \SpecialChar LyX
28100  document).
28101 \end_layout
28102
28103 \begin_layout Description
28104 \begin_inset Flex Code
28105 status collapsed
28106
28107 \begin_layout Plain Layout
28108 $$RelPathMaster
28109 \end_layout
28110
28111 \end_inset
28112
28113  The file path, relative to the master \SpecialChar LyX
28114  document.
28115 \end_layout
28116
28117 \begin_layout Description
28118 \begin_inset Flex Code
28119 status collapsed
28120
28121 \begin_layout Plain Layout
28122 $$RelPathParent
28123 \end_layout
28124
28125 \end_inset
28126
28127  The file path, relative to the \SpecialChar LyX
28128  document.
28129 \end_layout
28130
28131 \begin_layout Description
28132 \begin_inset Flex Code
28133 status collapsed
28134
28135 \begin_layout Plain Layout
28136 $$Sysdir
28137 \end_layout
28138
28139 \end_inset
28140
28141  This macro will expand to the absolute path of the system directory.
28142  This is typically used to point to the various helper scripts that are
28143  bundled with \SpecialChar LyX
28144 .
28145 \end_layout
28146
28147 \begin_layout Description
28148 \begin_inset Flex Code
28149 status collapsed
28150
28151 \begin_layout Plain Layout
28152 $$Tempname
28153 \end_layout
28154
28155 \end_inset
28156
28157  A name and full path to a temporary file which will be automatically deleted
28158  whenever the containing document is closed, or the external material insertion
28159  deleted.
28160 \end_layout
28161
28162 \begin_layout Standard
28163 All path macros contain a trailing directory separator, so you can construct
28164  e.
28165 \begin_inset space \thinspace{}
28166 \end_inset
28167
28168 g.
28169 \begin_inset space \space{}
28170 \end_inset
28171
28172 the absolute filename with 
28173 \begin_inset Flex Code
28174 status collapsed
28175
28176 \begin_layout Plain Layout
28177 $$AbsPath$$Basename$$Extension
28178 \end_layout
28179
28180 \end_inset
28181
28182 .
28183 \end_layout
28184
28185 \begin_layout Standard
28186 The macros above are substituted in all commands unless otherwise noted.
28187  The command 
28188 \begin_inset Flex Code
28189 status collapsed
28190
28191 \begin_layout Plain Layout
28192 Product
28193 \end_layout
28194
28195 \end_inset
28196
28197  supports additionally the following substitutions if they are enabled by
28198  the 
28199 \begin_inset Flex Code
28200 status collapsed
28201
28202 \begin_layout Plain Layout
28203 Transform
28204 \end_layout
28205
28206 \end_inset
28207
28208  and 
28209 \begin_inset Flex Code
28210 status collapsed
28211
28212 \begin_layout Plain Layout
28213 TransformCommand
28214 \end_layout
28215
28216 \end_inset
28217
28218  commands:
28219 \end_layout
28220
28221 \begin_layout Description
28222 \begin_inset Flex Code
28223 status collapsed
28224
28225 \begin_layout Plain Layout
28226 $$ResizeFront
28227 \end_layout
28228
28229 \end_inset
28230
28231  The front part of the resize command.
28232 \end_layout
28233
28234 \begin_layout Description
28235 \begin_inset Flex Code
28236 status collapsed
28237
28238 \begin_layout Plain Layout
28239 $$ResizeBack
28240 \end_layout
28241
28242 \end_inset
28243
28244  The back part of the resize command.
28245 \end_layout
28246
28247 \begin_layout Description
28248 \begin_inset Flex Code
28249 status collapsed
28250
28251 \begin_layout Plain Layout
28252 $$RotateFront
28253 \end_layout
28254
28255 \end_inset
28256
28257  The front part of the rotation command.
28258 \end_layout
28259
28260 \begin_layout Description
28261 \begin_inset Flex Code
28262 status collapsed
28263
28264 \begin_layout Plain Layout
28265 $$RotateBack
28266 \end_layout
28267
28268 \end_inset
28269
28270  The back part of the rotation command.
28271 \end_layout
28272
28273 \begin_layout Standard
28274 The value string of the 
28275 \begin_inset Flex Code
28276 status collapsed
28277
28278 \begin_layout Plain Layout
28279 Option
28280 \end_layout
28281
28282 \end_inset
28283
28284  command supports additionally the following substitutions if they are enabled
28285  by the 
28286 \begin_inset Flex Code
28287 status collapsed
28288
28289 \begin_layout Plain Layout
28290 Transform
28291 \end_layout
28292
28293 \end_inset
28294
28295  and 
28296 \begin_inset Flex Code
28297 status collapsed
28298
28299 \begin_layout Plain Layout
28300 TransformOption
28301 \end_layout
28302
28303 \end_inset
28304
28305  commands:
28306 \end_layout
28307
28308 \begin_layout Description
28309 \begin_inset Flex Code
28310 status collapsed
28311
28312 \begin_layout Plain Layout
28313 $$Clip
28314 \end_layout
28315
28316 \end_inset
28317
28318  The clip option.
28319 \end_layout
28320
28321 \begin_layout Description
28322 \begin_inset Flex Code
28323 status collapsed
28324
28325 \begin_layout Plain Layout
28326 $$Extra
28327 \end_layout
28328
28329 \end_inset
28330
28331  The extra option.
28332 \end_layout
28333
28334 \begin_layout Description
28335 \begin_inset Flex Code
28336 status collapsed
28337
28338 \begin_layout Plain Layout
28339 $$Resize
28340 \end_layout
28341
28342 \end_inset
28343
28344  The resize option.
28345 \end_layout
28346
28347 \begin_layout Description
28348 \begin_inset Flex Code
28349 status collapsed
28350
28351 \begin_layout Plain Layout
28352 $$Rotate
28353 \end_layout
28354
28355 \end_inset
28356
28357  The rotation option.
28358 \end_layout
28359
28360 \begin_layout Standard
28361 You may ask why there are so many path macros.
28362  There are mainly two reasons:
28363 \end_layout
28364
28365 \begin_layout Enumerate
28366 Relative and absolute file names should remain relative or absolute, respectivel
28367 y.
28368  Users may have reasons to prefer either form.
28369  Relative names are useful for portable documents that should work on different
28370  machines, for example.
28371  Absolute names may be required by some programs.
28372 \end_layout
28373
28374 \begin_layout Enumerate
28375 \SpecialChar LaTeX
28376  treats relative file names differently than \SpecialChar LyX
28377  and other programs in nested
28378  included files.
28379  For \SpecialChar LyX
28380 , a relative file name is always relative to the document that contains
28381  the file name.
28382  For \SpecialChar LaTeX
28383 , it is always relative to the master document.
28384  These two definitions are identical if you have only one document, but
28385  differ if you have a master document that includes part documents.
28386  That means that relative filenames must be transformed when presented to
28387  \SpecialChar LaTeX
28388 .
28389  Fortunately \SpecialChar LyX
28390  does this automatically for you if you choose the right macros.
28391 \end_layout
28392
28393 \begin_layout Standard
28394 So which path macro should be used in new template definitions? The rule
28395  is not difficult:
28396 \end_layout
28397
28398 \begin_layout Itemize
28399 Use 
28400 \begin_inset Flex Code
28401 status collapsed
28402
28403 \begin_layout Plain Layout
28404 $$AbsPath
28405 \end_layout
28406
28407 \end_inset
28408
28409  if an absolute path is required.
28410 \end_layout
28411
28412 \begin_layout Itemize
28413 Use 
28414 \begin_inset Flex Code
28415 status collapsed
28416
28417 \begin_layout Plain Layout
28418 $$AbsOrRelPathMaster
28419 \end_layout
28420
28421 \end_inset
28422
28423  if the substituted string is some kind of \SpecialChar LaTeX
28424  input.
28425 \end_layout
28426
28427 \begin_layout Itemize
28428 Else use 
28429 \begin_inset Flex Code
28430 status collapsed
28431
28432 \begin_layout Plain Layout
28433 $$AbsOrRelPathParent
28434 \end_layout
28435
28436 \end_inset
28437
28438  in order to preserve the user's choice.
28439 \end_layout
28440
28441 \begin_layout Standard
28442 There are special cases where this rule does not work and e.
28443 \begin_inset space \thinspace{}
28444 \end_inset
28445
28446 g.
28447 \begin_inset space \space{}
28448 \end_inset
28449
28450 relative names are needed, but normally it will work just fine.
28451  One example for such a case is the command 
28452 \begin_inset Flex Code
28453 status collapsed
28454
28455 \begin_layout Plain Layout
28456 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
28457 \end_layout
28458
28459 \end_inset
28460
28461  in the XFig template above: We can't use the absolute name because the
28462  copier for 
28463 \begin_inset Flex Code
28464 status collapsed
28465
28466 \begin_layout Plain Layout
28467 .pstex_t
28468 \end_layout
28469
28470 \end_inset
28471
28472  files needs the relative name in order to rewrite the file content.
28473 \end_layout
28474
28475 \begin_layout Section
28476 Security discussion
28477 \begin_inset CommandInset label
28478 LatexCommand label
28479 name "sec:Security-discussion"
28480
28481 \end_inset
28482
28483
28484 \end_layout
28485
28486 \begin_layout Standard
28487 The external material feature interfaces with a lot of external programs
28488  and does so automatically, so we have to consider the security implications
28489  of this.
28490  In particular, since you have the option of including your own filenames
28491  and/or parameter strings and those are expanded into a command, it seems
28492  that it would be possible to create a malicious document which executes
28493  arbitrary commands when a user views or prints the document.
28494  This is something we definitely want to avoid.
28495 \end_layout
28496
28497 \begin_layout Standard
28498 However, since the external program commands are specified in the template
28499  configuration file only, there are no security issues if \SpecialChar LyX
28500  is properly configure
28501 d with safe templates only.
28502  This is so because the external programs are invoked with the 
28503 \begin_inset Flex Code
28504 status collapsed
28505
28506 \begin_layout Plain Layout
28507 execvp
28508 \end_layout
28509
28510 \end_inset
28511
28512 -system call rather than the 
28513 \begin_inset Flex Code
28514 status collapsed
28515
28516 \begin_layout Plain Layout
28517 system
28518 \end_layout
28519
28520 \end_inset
28521
28522  system-call, so it's not possible to execute arbitrary commands from the
28523  filename or parameter section via the shell.
28524 \end_layout
28525
28526 \begin_layout Standard
28527 This also implies that you are restricted in what command strings you can
28528  use in the external material templates.
28529  In particular, pipes and redirection are not readily available.
28530  This has to be so if \SpecialChar LyX
28531  should remain safe.
28532  If you want to use some of the shell features, you should write a safe
28533  script to do this in a controlled manner, and then invoke the script from
28534  the command string.
28535  
28536 \end_layout
28537
28538 \begin_layout Standard
28539 It is possible to design a template that interacts directly with the shell,
28540  but since this would allow a malicious user to execute arbitrary commands
28541  by writing clever filenames and/or parameters, we generally recommend that
28542  you only use safe scripts that work with the 
28543 \begin_inset Flex Code
28544 status collapsed
28545
28546 \begin_layout Plain Layout
28547 execvp
28548 \end_layout
28549
28550 \end_inset
28551
28552  system call in a controlled manner.
28553  Of course, for use in a controlled environment, it can be tempting to just
28554  fall back to use ordinary shell scripts.
28555  If you do so, be aware that you 
28556 \emph on
28557 will
28558 \emph default
28559  provide an easily exploitable security hole in your system.
28560  Of course it stands to reason that such unsafe templates will never be
28561  included in the standard \SpecialChar LyX
28562  distribution, although we do encourage people
28563  to submit new templates in the open source tradition.
28564  But \SpecialChar LyX
28565  as shipped from the official distribution channels will never have
28566  unsafe templates.
28567 \end_layout
28568
28569 \begin_layout Standard
28570 Including external material provides a lot of power, and you have to be
28571  careful not to introduce security hazards with this power.
28572  A subtle error in a single line in an innocent looking script can open
28573  the door to huge security problems.
28574  So if you do not fully understand the issues, we recommend that you consult
28575  a knowledgeable security professional or the \SpecialChar LyX
28576  development team if you have
28577  any questions about whether a given template is safe or not.
28578  And do this before you use it in an uncontrolled environment.
28579 \end_layout
28580
28581 \begin_layout Chapter
28582 \start_of_appendix
28583 List of supported \SpecialChar LyX
28584  functions to be used in layouts
28585 \begin_inset CommandInset label
28586 LatexCommand label
28587 name "chap:List-of-functions"
28588
28589 \end_inset
28590
28591
28592 \end_layout
28593
28594 \begin_layout Standard
28595 \align center
28596 \begin_inset Tabular
28597 <lyxtabular version="3" rows="11" columns="8">
28598 <features tabularvalignment="middle">
28599 <column alignment="left" valignment="top">
28600 <column alignment="left" valignment="top">
28601 <column alignment="left" valignment="top">
28602 <column alignment="left" valignment="top">
28603 <column alignment="left" valignment="top">
28604 <column alignment="left" valignment="top">
28605 <column alignment="left" valignment="top">
28606 <column alignment="left" valignment="top">
28607 <row>
28608 <cell alignment="left" valignment="top" usebox="none">
28609 \begin_inset Text
28610
28611 \begin_layout Plain Layout
28612 accents
28613 \end_layout
28614
28615 \end_inset
28616 </cell>
28617 <cell alignment="left" valignment="top" usebox="none">
28618 \begin_inset Text
28619
28620 \begin_layout Plain Layout
28621 booktabs
28622 \end_layout
28623
28624 \end_inset
28625 </cell>
28626 <cell alignment="left" valignment="top" usebox="none">
28627 \begin_inset Text
28628
28629 \begin_layout Plain Layout
28630 feyn
28631 \end_layout
28632
28633 \end_inset
28634 </cell>
28635 <cell alignment="left" valignment="top" usebox="none">
28636 \begin_inset Text
28637
28638 \begin_layout Plain Layout
28639 listings
28640 \end_layout
28641
28642 \end_inset
28643 </cell>
28644 <cell alignment="center" valignment="top" usebox="none">
28645 \begin_inset Text
28646
28647 \begin_layout Plain Layout
28648 natbib
28649 \end_layout
28650
28651 \end_inset
28652 </cell>
28653 <cell alignment="center" valignment="top" usebox="none">
28654 \begin_inset Text
28655
28656 \begin_layout Plain Layout
28657 rotfloat
28658 \end_layout
28659
28660 \end_inset
28661 </cell>
28662 <cell alignment="center" valignment="top" usebox="none">
28663 \begin_inset Text
28664
28665 \begin_layout Plain Layout
28666 tfrupee
28667 \end_layout
28668
28669 \end_inset
28670 </cell>
28671 <cell alignment="center" valignment="top" usebox="none">
28672 \begin_inset Text
28673
28674 \begin_layout Plain Layout
28675 wasysym
28676 \end_layout
28677
28678 \end_inset
28679 </cell>
28680 </row>
28681 <row>
28682 <cell alignment="left" valignment="top" usebox="none">
28683 \begin_inset Text
28684
28685 \begin_layout Plain Layout
28686 amsbsy
28687 \end_layout
28688
28689 \end_inset
28690 </cell>
28691 <cell alignment="left" valignment="top" usebox="none">
28692 \begin_inset Text
28693
28694 \begin_layout Plain Layout
28695 calc
28696 \end_layout
28697
28698 \end_inset
28699 </cell>
28700 <cell alignment="left" valignment="top" usebox="none">
28701 \begin_inset Text
28702
28703 \begin_layout Plain Layout
28704 fixltx2e
28705 \end_layout
28706
28707 \end_inset
28708 </cell>
28709 <cell alignment="left" valignment="top" usebox="none">
28710 \begin_inset Text
28711
28712 \begin_layout Plain Layout
28713 longtable
28714 \end_layout
28715
28716 \end_inset
28717 </cell>
28718 <cell alignment="center" valignment="top" usebox="none">
28719 \begin_inset Text
28720
28721 \begin_layout Plain Layout
28722 nomencl
28723 \end_layout
28724
28725 \end_inset
28726 </cell>
28727 <cell alignment="center" valignment="top" usebox="none">
28728 \begin_inset Text
28729
28730 \begin_layout Plain Layout
28731 rsphrase
28732 \end_layout
28733
28734 \end_inset
28735 </cell>
28736 <cell alignment="center" valignment="top" usebox="none">
28737 \begin_inset Text
28738
28739 \begin_layout Plain Layout
28740 tipa
28741 \end_layout
28742
28743 \end_inset
28744 </cell>
28745 <cell alignment="center" valignment="top" usebox="none">
28746 \begin_inset Text
28747
28748 \begin_layout Plain Layout
28749 wrapfig
28750 \end_layout
28751
28752 \end_inset
28753 </cell>
28754 </row>
28755 <row>
28756 <cell alignment="left" valignment="top" usebox="none">
28757 \begin_inset Text
28758
28759 \begin_layout Plain Layout
28760 amscd
28761 \end_layout
28762
28763 \end_inset
28764 </cell>
28765 <cell alignment="left" valignment="top" usebox="none">
28766 \begin_inset Text
28767
28768 \begin_layout Plain Layout
28769 CJK
28770 \end_layout
28771
28772 \end_inset
28773 </cell>
28774 <cell alignment="left" valignment="top" usebox="none">
28775 \begin_inset Text
28776
28777 \begin_layout Plain Layout
28778 float
28779 \end_layout
28780
28781 \end_inset
28782 </cell>
28783 <cell alignment="left" valignment="top" usebox="none">
28784 \begin_inset Text
28785
28786 \begin_layout Plain Layout
28787 lyxskak
28788 \end_layout
28789
28790 \end_inset
28791 </cell>
28792 <cell alignment="center" valignment="top" usebox="none">
28793 \begin_inset Text
28794
28795 \begin_layout Plain Layout
28796 pdfcolmk
28797 \end_layout
28798
28799 \end_inset
28800 </cell>
28801 <cell alignment="center" valignment="top" usebox="none">
28802 \begin_inset Text
28803
28804 \begin_layout Plain Layout
28805 setspace
28806 \end_layout
28807
28808 \end_inset
28809 </cell>
28810 <cell alignment="center" valignment="top" usebox="none">
28811 \begin_inset Text
28812
28813 \begin_layout Plain Layout
28814 tipx
28815 \end_layout
28816
28817 \end_inset
28818 </cell>
28819 <cell alignment="center" valignment="top" usebox="none">
28820 \begin_inset Text
28821
28822 \begin_layout Plain Layout
28823 xargs
28824 \end_layout
28825
28826 \end_inset
28827 </cell>
28828 </row>
28829 <row>
28830 <cell alignment="left" valignment="top" usebox="none">
28831 \begin_inset Text
28832
28833 \begin_layout Plain Layout
28834 amsmath
28835 \end_layout
28836
28837 \end_inset
28838 </cell>
28839 <cell alignment="left" valignment="top" usebox="none">
28840 \begin_inset Text
28841
28842 \begin_layout Plain Layout
28843 color
28844 \end_layout
28845
28846 \end_inset
28847 </cell>
28848 <cell alignment="left" valignment="top" usebox="none">
28849 \begin_inset Text
28850
28851 \begin_layout Plain Layout
28852 framed
28853 \end_layout
28854
28855 \end_inset
28856 </cell>
28857 <cell alignment="left" valignment="top" usebox="none">
28858 \begin_inset Text
28859
28860 \begin_layout Plain Layout
28861 makeidx
28862 \end_layout
28863
28864 \end_inset
28865 </cell>
28866 <cell alignment="center" valignment="top" usebox="none">
28867 \begin_inset Text
28868
28869 \begin_layout Plain Layout
28870 pdfpages
28871 \end_layout
28872
28873 \end_inset
28874 </cell>
28875 <cell alignment="center" valignment="top" usebox="none">
28876 \begin_inset Text
28877
28878 \begin_layout Plain Layout
28879 shapepar
28880 \end_layout
28881
28882 \end_inset
28883 </cell>
28884 <cell alignment="center" valignment="top" usebox="none">
28885 \begin_inset Text
28886
28887 \begin_layout Plain Layout
28888 tone
28889 \end_layout
28890
28891 \end_inset
28892 </cell>
28893 <cell alignment="center" valignment="top" usebox="none">
28894 \begin_inset Text
28895
28896 \begin_layout Plain Layout
28897 xcolor
28898 \end_layout
28899
28900 \end_inset
28901 </cell>
28902 </row>
28903 <row>
28904 <cell alignment="left" valignment="top" usebox="none">
28905 \begin_inset Text
28906
28907 \begin_layout Plain Layout
28908 amssymb
28909 \end_layout
28910
28911 \end_inset
28912 </cell>
28913 <cell alignment="left" valignment="top" usebox="none">
28914 \begin_inset Text
28915
28916 \begin_layout Plain Layout
28917 covington
28918 \end_layout
28919
28920 \end_inset
28921 </cell>
28922 <cell alignment="left" valignment="top" usebox="none">
28923 \begin_inset Text
28924
28925 \begin_layout Plain Layout
28926 graphicx
28927 \end_layout
28928
28929 \end_inset
28930 </cell>
28931 <cell alignment="left" valignment="top" usebox="none">
28932 \begin_inset Text
28933
28934 \begin_layout Plain Layout
28935 marvosym
28936 \end_layout
28937
28938 \end_inset
28939 </cell>
28940 <cell alignment="center" valignment="top" usebox="none">
28941 \begin_inset Text
28942
28943 \begin_layout Plain Layout
28944 pifont
28945 \end_layout
28946
28947 \end_inset
28948 </cell>
28949 <cell alignment="center" valignment="top" usebox="none">
28950 \begin_inset Text
28951
28952 \begin_layout Plain Layout
28953 slashed
28954 \end_layout
28955
28956 \end_inset
28957 </cell>
28958 <cell alignment="center" valignment="top" usebox="none">
28959 \begin_inset Text
28960
28961 \begin_layout Plain Layout
28962 txfonts
28963 \end_layout
28964
28965 \end_inset
28966 </cell>
28967 <cell alignment="center" valignment="top" usebox="none">
28968 \begin_inset Text
28969
28970 \begin_layout Plain Layout
28971 xy
28972 \end_layout
28973
28974 \end_inset
28975 </cell>
28976 </row>
28977 <row>
28978 <cell alignment="left" valignment="top" usebox="none">
28979 \begin_inset Text
28980
28981 \begin_layout Plain Layout
28982 amstext
28983 \end_layout
28984
28985 \end_inset
28986 </cell>
28987 <cell alignment="left" valignment="top" usebox="none">
28988 \begin_inset Text
28989
28990 \begin_layout Plain Layout
28991 csquotes
28992 \end_layout
28993
28994 \end_inset
28995 </cell>
28996 <cell alignment="left" valignment="top" usebox="none">
28997 \begin_inset Text
28998
28999 \begin_layout Plain Layout
29000 hhline
29001 \end_layout
29002
29003 \end_inset
29004 </cell>
29005 <cell alignment="left" valignment="top" usebox="none">
29006 \begin_inset Text
29007
29008 \begin_layout Plain Layout
29009 mathdesign
29010 \end_layout
29011
29012 \end_inset
29013 </cell>
29014 <cell alignment="center" valignment="top" usebox="none">
29015 \begin_inset Text
29016
29017 \begin_layout Plain Layout
29018 pmboxdraw
29019 \end_layout
29020
29021 \end_inset
29022 </cell>
29023 <cell alignment="center" valignment="top" usebox="none">
29024 \begin_inset Text
29025
29026 \begin_layout Plain Layout
29027 soul
29028 \end_layout
29029
29030 \end_inset
29031 </cell>
29032 <cell alignment="center" valignment="top" usebox="none">
29033 \begin_inset Text
29034
29035 \begin_layout Plain Layout
29036 ulem
29037 \end_layout
29038
29039 \end_inset
29040 </cell>
29041 <cell alignment="center" valignment="top" usebox="none">
29042 \begin_inset Text
29043
29044 \begin_layout Plain Layout
29045 yhmath
29046 \end_layout
29047
29048 \end_inset
29049 </cell>
29050 </row>
29051 <row>
29052 <cell alignment="left" valignment="top" usebox="none">
29053 \begin_inset Text
29054
29055 \begin_layout Plain Layout
29056 amsthm
29057 \end_layout
29058
29059 \end_inset
29060 </cell>
29061 <cell alignment="left" valignment="top" usebox="none">
29062 \begin_inset Text
29063
29064 \begin_layout Plain Layout
29065 dvipost
29066 \end_layout
29067
29068 \end_inset
29069 </cell>
29070 <cell alignment="left" valignment="top" usebox="none">
29071 \begin_inset Text
29072
29073 \begin_layout Plain Layout
29074 hyperref
29075 \end_layout
29076
29077 \end_inset
29078 </cell>
29079 <cell alignment="left" valignment="top" usebox="none">
29080 \begin_inset Text
29081
29082 \begin_layout Plain Layout
29083 mathdots
29084 \end_layout
29085
29086 \end_inset
29087 </cell>
29088 <cell alignment="center" valignment="top" usebox="none">
29089 \begin_inset Text
29090
29091 \begin_layout Plain Layout
29092 polyglossia
29093 \end_layout
29094
29095 \end_inset
29096 </cell>
29097 <cell alignment="center" valignment="top" usebox="none">
29098 \begin_inset Text
29099
29100 \begin_layout Plain Layout
29101 splitidx
29102 \end_layout
29103
29104 \end_inset
29105 </cell>
29106 <cell alignment="center" valignment="top" usebox="none">
29107 \begin_inset Text
29108
29109 \begin_layout Plain Layout
29110 undertilde
29111 \end_layout
29112
29113 \end_inset
29114 </cell>
29115 <cell alignment="center" valignment="top" usebox="none">
29116 \begin_inset Text
29117
29118 \begin_layout Plain Layout
29119
29120 \end_layout
29121
29122 \end_inset
29123 </cell>
29124 </row>
29125 <row>
29126 <cell alignment="left" valignment="top" usebox="none">
29127 \begin_inset Text
29128
29129 \begin_layout Plain Layout
29130 array
29131 \end_layout
29132
29133 \end_inset
29134 </cell>
29135 <cell alignment="left" valignment="top" usebox="none">
29136 \begin_inset Text
29137
29138 \begin_layout Plain Layout
29139 endnotes
29140 \end_layout
29141
29142 \end_inset
29143 </cell>
29144 <cell alignment="left" valignment="top" usebox="none">
29145 \begin_inset Text
29146
29147 \begin_layout Plain Layout
29148 ifsym
29149 \end_layout
29150
29151 \end_inset
29152 </cell>
29153 <cell alignment="left" valignment="top" usebox="none">
29154 \begin_inset Text
29155
29156 \begin_layout Plain Layout
29157 mathrsfs
29158 \end_layout
29159
29160 \end_inset
29161 </cell>
29162 <cell alignment="center" valignment="top" usebox="none">
29163 \begin_inset Text
29164
29165 \begin_layout Plain Layout
29166 prettyref
29167 \end_layout
29168
29169 \end_inset
29170 </cell>
29171 <cell alignment="center" valignment="top" usebox="none">
29172 \begin_inset Text
29173
29174 \begin_layout Plain Layout
29175 subfig
29176 \end_layout
29177
29178 \end_inset
29179 </cell>
29180 <cell alignment="center" valignment="top" usebox="none">
29181 \begin_inset Text
29182
29183 \begin_layout Plain Layout
29184 units
29185 \end_layout
29186
29187 \end_inset
29188 </cell>
29189 <cell alignment="center" valignment="top" usebox="none">
29190 \begin_inset Text
29191
29192 \begin_layout Plain Layout
29193
29194 \end_layout
29195
29196 \end_inset
29197 </cell>
29198 </row>
29199 <row>
29200 <cell alignment="left" valignment="top" usebox="none">
29201 \begin_inset Text
29202
29203 \begin_layout Plain Layout
29204 ascii
29205 \end_layout
29206
29207 \end_inset
29208 </cell>
29209 <cell alignment="left" valignment="top" usebox="none">
29210 \begin_inset Text
29211
29212 \begin_layout Plain Layout
29213 enumitem
29214 \end_layout
29215
29216 \end_inset
29217 </cell>
29218 <cell alignment="left" valignment="top" usebox="none">
29219 \begin_inset Text
29220
29221 \begin_layout Plain Layout
29222 ifthen
29223 \end_layout
29224
29225 \end_inset
29226 </cell>
29227 <cell alignment="left" valignment="top" usebox="none">
29228 \begin_inset Text
29229
29230 \begin_layout Plain Layout
29231 mhchem
29232 \end_layout
29233
29234 \end_inset
29235 </cell>
29236 <cell alignment="center" valignment="top" usebox="none">
29237 \begin_inset Text
29238
29239 \begin_layout Plain Layout
29240 pxfonts
29241 \end_layout
29242
29243 \end_inset
29244 </cell>
29245 <cell alignment="center" valignment="top" usebox="none">
29246 \begin_inset Text
29247
29248 \begin_layout Plain Layout
29249 subscript
29250 \end_layout
29251
29252 \end_inset
29253 </cell>
29254 <cell alignment="center" valignment="top" usebox="none">
29255 \begin_inset Text
29256
29257 \begin_layout Plain Layout
29258 url
29259 \end_layout
29260
29261 \end_inset
29262 </cell>
29263 <cell alignment="center" valignment="top" usebox="none">
29264 \begin_inset Text
29265
29266 \begin_layout Plain Layout
29267
29268 \end_layout
29269
29270 \end_inset
29271 </cell>
29272 </row>
29273 <row>
29274 <cell alignment="left" valignment="top" usebox="none">
29275 \begin_inset Text
29276
29277 \begin_layout Plain Layout
29278 bbding
29279 \end_layout
29280
29281 \end_inset
29282 </cell>
29283 <cell alignment="left" valignment="top" usebox="none">
29284 \begin_inset Text
29285
29286 \begin_layout Plain Layout
29287 esint
29288 \end_layout
29289
29290 \end_inset
29291 </cell>
29292 <cell alignment="left" valignment="top" usebox="none">
29293 \begin_inset Text
29294
29295 \begin_layout Plain Layout
29296 jurabib
29297 \end_layout
29298
29299 \end_inset
29300 </cell>
29301 <cell alignment="left" valignment="top" usebox="none">
29302 \begin_inset Text
29303
29304 \begin_layout Plain Layout
29305 multicol
29306 \end_layout
29307
29308 \end_inset
29309 </cell>
29310 <cell alignment="center" valignment="top" usebox="none">
29311 \begin_inset Text
29312
29313 \begin_layout Plain Layout
29314 refstyle
29315 \end_layout
29316
29317 \end_inset
29318 </cell>
29319 <cell alignment="center" valignment="top" usebox="none">
29320 \begin_inset Text
29321
29322 \begin_layout Plain Layout
29323 textcomp
29324 \end_layout
29325
29326 \end_inset
29327 </cell>
29328 <cell alignment="center" valignment="top" usebox="none">
29329 \begin_inset Text
29330
29331 \begin_layout Plain Layout
29332 varioref
29333 \end_layout
29334
29335 \end_inset
29336 </cell>
29337 <cell alignment="center" valignment="top" usebox="none">
29338 \begin_inset Text
29339
29340 \begin_layout Plain Layout
29341
29342 \end_layout
29343
29344 \end_inset
29345 </cell>
29346 </row>
29347 <row>
29348 <cell alignment="center" valignment="top" usebox="none">
29349 \begin_inset Text
29350
29351 \begin_layout Plain Layout
29352 bm
29353 \end_layout
29354
29355 \end_inset
29356 </cell>
29357 <cell alignment="center" valignment="top" usebox="none">
29358 \begin_inset Text
29359
29360 \begin_layout Plain Layout
29361 fancybox
29362 \end_layout
29363
29364 \end_inset
29365 </cell>
29366 <cell alignment="center" valignment="top" usebox="none">
29367 \begin_inset Text
29368
29369 \begin_layout Plain Layout
29370 latexsym
29371 \end_layout
29372
29373 \end_inset
29374 </cell>
29375 <cell alignment="center" valignment="top" usebox="none">
29376 \begin_inset Text
29377
29378 \begin_layout Plain Layout
29379 multirow
29380 \end_layout
29381
29382 \end_inset
29383 </cell>
29384 <cell alignment="center" valignment="top" usebox="none">
29385 \begin_inset Text
29386
29387 \begin_layout Plain Layout
29388 rotating
29389 \end_layout
29390
29391 \end_inset
29392 </cell>
29393 <cell alignment="center" valignment="top" usebox="none">
29394 \begin_inset Text
29395
29396 \begin_layout Plain Layout
29397 textgreek
29398 \end_layout
29399
29400 \end_inset
29401 </cell>
29402 <cell alignment="center" valignment="top" usebox="none">
29403 \begin_inset Text
29404
29405 \begin_layout Plain Layout
29406 verbatim
29407 \end_layout
29408
29409 \end_inset
29410 </cell>
29411 <cell alignment="center" valignment="top" usebox="none">
29412 \begin_inset Text
29413
29414 \begin_layout Plain Layout
29415
29416 \end_layout
29417
29418 \end_inset
29419 </cell>
29420 </row>
29421 </lyxtabular>
29422
29423 \end_inset
29424
29425
29426 \end_layout
29427
29428 \begin_layout Chapter
29429 Names of available colors to be used in layouts
29430 \begin_inset CommandInset label
29431 LatexCommand label
29432 name "chap:Names-of-colors"
29433
29434 \end_inset
29435
29436
29437 \end_layout
29438
29439 \begin_layout Standard
29440 The colors listed below are the standard colors and those that you can adjust
29441  in the \SpecialChar LyX
29442  preferences.
29443 \end_layout
29444
29445 \begin_layout Section
29446 Color functions
29447 \end_layout
29448
29449 \begin_layout Standard
29450 The following are no real colors, but rather act on color definitions:
29451 \end_layout
29452
29453 \begin_layout Description
29454 ignore The color is ignored
29455 \end_layout
29456
29457 \begin_layout Description
29458 inherit The color is inherited
29459 \end_layout
29460
29461 \begin_layout Description
29462 none
29463 \family roman
29464 \series medium
29465 \shape up
29466 \size normal
29467 \emph off
29468 \bar no
29469 \strikeout off
29470 \uuline off
29471 \uwave off
29472 \noun off
29473 \color none
29474  No particular color – clear or default
29475 \end_layout
29476
29477 \begin_layout Section
29478 Static colors
29479 \end_layout
29480
29481 \begin_layout Standard
29482 These are fixed colors that cannot me customized:
29483 \end_layout
29484
29485 \begin_layout Description
29486 black
29487 \end_layout
29488
29489 \begin_layout Description
29490 white
29491 \end_layout
29492
29493 \begin_layout Description
29494 blue
29495 \end_layout
29496
29497 \begin_layout Description
29498 brown
29499 \end_layout
29500
29501 \begin_layout Description
29502 cyan
29503 \end_layout
29504
29505 \begin_layout Description
29506 darkgray
29507 \end_layout
29508
29509 \begin_layout Description
29510 gray
29511 \end_layout
29512
29513 \begin_layout Description
29514 green
29515 \end_layout
29516
29517 \begin_layout Description
29518 lightgray
29519 \end_layout
29520
29521 \begin_layout Description
29522 lime
29523 \end_layout
29524
29525 \begin_layout Description
29526 magenta
29527 \end_layout
29528
29529 \begin_layout Description
29530 olive
29531 \end_layout
29532
29533 \begin_layout Description
29534 orange
29535 \end_layout
29536
29537 \begin_layout Description
29538 pink
29539 \end_layout
29540
29541 \begin_layout Description
29542 purple
29543 \end_layout
29544
29545 \begin_layout Description
29546 red
29547 \end_layout
29548
29549 \begin_layout Description
29550 teal
29551 \end_layout
29552
29553 \begin_layout Description
29554 violet
29555 \end_layout
29556
29557 \begin_layout Description
29558 yellow
29559 \end_layout
29560
29561 \begin_layout Section
29562 Dynamic colors
29563 \end_layout
29564
29565 \begin_layout Standard
29566 These are the colors allocated to specific elements in 
29567 \begin_inset Info
29568 type  "menu"
29569 arg   "dialog-show prefs"
29570 \end_inset
29571
29572 :
29573 \end_layout
29574
29575 \begin_layout Description
29576 added_space Added space color
29577 \end_layout
29578
29579 \begin_layout Description
29580 addedtext Added text color
29581 \end_layout
29582
29583 \begin_layout Description
29584 appendix Appendix marker color
29585 \end_layout
29586
29587 \begin_layout Description
29588 background Background color
29589 \end_layout
29590
29591 \begin_layout Description
29592 bottomarea Bottom area color
29593 \end_layout
29594
29595 \begin_layout Description
29596 branchlabel Label color for branches
29597 \end_layout
29598
29599 \begin_layout Description
29600 buttonbg Color used for button background
29601 \end_layout
29602
29603 \begin_layout Description
29604 buttonframe Color for inset button frames
29605 \end_layout
29606
29607 \begin_layout Description
29608 buttonhoverbg Color used for button background under focus
29609 \end_layout
29610
29611 \begin_layout Description
29612 changebar Changebar color
29613 \end_layout
29614
29615 \begin_layout Description
29616 changedtextauthor1 Changed text color author 1
29617 \end_layout
29618
29619 \begin_layout Description
29620 changedtextauthor2 Changed text color author 2
29621 \end_layout
29622
29623 \begin_layout Description
29624 changedtextauthor3 Changed text color author 3
29625 \end_layout
29626
29627 \begin_layout Description
29628 changedtextauthor4 Changed text color author 4
29629 \end_layout
29630
29631 \begin_layout Description
29632 changedtextauthor5 Changed text color author 5
29633 \end_layout
29634
29635 \begin_layout Description
29636 collapsible Collapsible insets text color
29637 \end_layout
29638
29639 \begin_layout Description
29640 collapsibleframe Collapsible insets framecolor
29641 \end_layout
29642
29643 \begin_layout Description
29644 command Text color for command insets
29645 \end_layout
29646
29647 \begin_layout Description
29648 commandbg Background color for command insets
29649 \end_layout
29650
29651 \begin_layout Description
29652 commandframe Frame color for command insets
29653 \end_layout
29654
29655 \begin_layout Description
29656 comment Label color for comments
29657 \end_layout
29658
29659 \begin_layout Description
29660 commentbg Background color of comments
29661 \end_layout
29662
29663 \begin_layout Description
29664 cursor Cursor color
29665 \end_layout
29666
29667 \begin_layout Description
29668 deletedtext Deleted text color
29669 \end_layout
29670
29671 \begin_layout Description
29672 deletedtextmodifier Deleted text modifying color
29673 \end_layout
29674
29675 \begin_layout Description
29676 depthbar Color for the depth bars in the margin
29677 \end_layout
29678
29679 \begin_layout Description
29680 eolmarker End of line marker color
29681 \end_layout
29682
29683 \begin_layout Description
29684 error Color of the \SpecialChar LaTeX
29685  error box
29686 \end_layout
29687
29688 \begin_layout Description
29689 footlabel Label color for footnotes
29690 \end_layout
29691
29692 \begin_layout Description
29693 foreground Foreground color
29694 \end_layout
29695
29696 \begin_layout Description
29697 graphicsbg Graphics inset background color
29698 \end_layout
29699
29700 \begin_layout Description
29701 greyedoutbg Background color of greyedout inset
29702 \end_layout
29703
29704 \begin_layout Description
29705 greyedoutlabel Label color for greyedout insets
29706 \end_layout
29707
29708 \begin_layout Description
29709 greyedouttext Color for greyedout inset text
29710 \end_layout
29711
29712 \begin_layout Description
29713 indexlabel Label color for index insets
29714 \end_layout
29715
29716 \begin_layout Description
29717 inlinecompletion Inline completion color
29718 \end_layout
29719
29720 \begin_layout Description
29721 insetbg Inset marker background color
29722 \end_layout
29723
29724 \begin_layout Description
29725 insetframe Inset marker frame color
29726 \end_layout
29727
29728 \begin_layout Description
29729 language Color for marking foreign language words
29730 \end_layout
29731
29732 \begin_layout Description
29733 latex Text color in \SpecialChar LaTeX
29734  mode
29735 \end_layout
29736
29737 \begin_layout Description
29738 listingsbg Background color of listings inset
29739 \end_layout
29740
29741 \begin_layout Description
29742 marginlabel Label color for margin notes
29743 \end_layout
29744
29745 \begin_layout Description
29746 math Math inset text color
29747 \end_layout
29748
29749 \begin_layout Description
29750 mathbg Math inset background color
29751 \end_layout
29752
29753 \begin_layout Description
29754 mathcorners Math inset frame color not under focus
29755 \end_layout
29756
29757 \begin_layout Description
29758 mathframe Math inset frame color under focus
29759 \end_layout
29760
29761 \begin_layout Description
29762 mathline Math line color
29763 \end_layout
29764
29765 \begin_layout Description
29766 mathmacrobg Macro math inset background color
29767 \end_layout
29768
29769 \begin_layout Description
29770 mathmacroblend Macro math blended color
29771 \end_layout
29772
29773 \begin_layout Description
29774 mathmacroframe Macro math frame color
29775 \end_layout
29776
29777 \begin_layout Description
29778 mathmacrohoverbg Macro math inset background color hovered
29779 \end_layout
29780
29781 \begin_layout Description
29782 mathmacrolabel Macro math label color
29783 \end_layout
29784
29785 \begin_layout Description
29786 mathmacronewarg Macro template color for new parameters
29787 \end_layout
29788
29789 \begin_layout Description
29790 mathmacrooldarg Macro template color for old parameters
29791 \end_layout
29792
29793 \begin_layout Description
29794 newpage New page color
29795 \end_layout
29796
29797 \begin_layout Description
29798 nonunique_inlinecompletion Inline completion color for the non-unique part
29799 \end_layout
29800
29801 \begin_layout Description
29802 note Label color for notes
29803 \end_layout
29804
29805 \begin_layout Description
29806 notebg Background color of notes
29807 \end_layout
29808
29809 \begin_layout Description
29810 pagebreak Page break/line break color
29811 \end_layout
29812
29813 \begin_layout Description
29814 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
29815 \end_layout
29816
29817 \begin_layout Description
29818 phantomtext Text color for phantom insets
29819 \end_layout
29820
29821 \begin_layout Description
29822 preview The color used for previews
29823 \end_layout
29824
29825 \begin_layout Description
29826 previewframe Preview frame color
29827 \end_layout
29828
29829 \begin_layout Description
29830 regexpframe Color for regexp frame
29831 \end_layout
29832
29833 \begin_layout Description
29834 scroll Color that indicates when a row can be scrolled 
29835 \end_layout
29836
29837 \begin_layout Description
29838 selection Background color of selected text
29839 \end_layout
29840
29841 \begin_layout Description
29842 selectiontext Foreground color of selected text
29843 \end_layout
29844
29845 \begin_layout Description
29846 shadedbg Background color of shaded box
29847 \end_layout
29848
29849 \begin_layout Description
29850 special Special chars text color
29851 \end_layout
29852
29853 \begin_layout Description
29854 tabularline Table line color
29855 \end_layout
29856
29857 \begin_layout Description
29858 tabularonoffline Table line color
29859 \end_layout
29860
29861 \begin_layout Description
29862 urllabel Label color for URL insets
29863 \end_layout
29864
29865 \begin_layout Description
29866 urltext Color for URL inset text
29867 \end_layout
29868
29869 \end_body
29870 \end_document