]> git.lyx.org Git - features.git/blob - lib/doc/Customization.lyx
Add FontSizeFormat textclass option
[features.git] / lib / doc / Customization.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 585
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 , letterpaper, legalpaper, executivepaper, a0paper, a1paper, a2paper, a3paper,
10535  a4paper, a5paper, a6paper, b0paper, b1paper, b2paper, b3paper, b4paper,
10536  b5paper, b6paper, c0paper, c1paper, c2paper, c3paper, c4paper, c5paper,
10537  c6paper, b0j, b1j, b2j, b3j, b4j, b5j, b6j
10538 \end_layout
10539
10540 \end_inset
10541
10542 ] The default page size.
10543  This is used by some converters.
10544 \change_unchanged
10545
10546 \end_layout
10547
10548 \begin_layout Description
10549 \begin_inset Flex Code
10550 status collapsed
10551
10552 \begin_layout Plain Layout
10553 PageStyle
10554 \end_layout
10555
10556 \end_inset
10557
10558  [
10559 \begin_inset Flex Code
10560 status collapsed
10561
10562 \begin_layout Plain Layout
10563
10564 \emph on
10565 plain
10566 \end_layout
10567
10568 \end_inset
10569
10570
10571 \begin_inset Flex Code
10572 status collapsed
10573
10574 \begin_layout Plain Layout
10575 empty
10576 \end_layout
10577
10578 \end_inset
10579
10580
10581 \begin_inset Flex Code
10582 status collapsed
10583
10584 \begin_layout Plain Layout
10585 headings
10586 \end_layout
10587
10588 \end_inset
10589
10590 ] The default pagestyle.
10591  Can be changed in the 
10592 \begin_inset Flex Noun
10593 status collapsed
10594
10595 \begin_layout Plain Layout
10596 Document\SpecialChar menuseparator
10597 Settings
10598 \end_layout
10599
10600 \end_inset
10601
10602  dialog.
10603 \end_layout
10604
10605 \begin_layout Description
10606 \begin_inset Flex Code
10607 status collapsed
10608
10609 \begin_layout Plain Layout
10610 Preamble
10611 \end_layout
10612
10613 \end_inset
10614
10615  Sets the preamble for the \SpecialChar LaTeX
10616  document.
10617  Note that this will completely override any prior 
10618 \begin_inset Flex Code
10619 status collapsed
10620
10621 \begin_layout Plain Layout
10622 Preamble
10623 \end_layout
10624
10625 \end_inset
10626
10627  or 
10628 \begin_inset Flex Code
10629 status collapsed
10630
10631 \begin_layout Plain Layout
10632 AddToPreamble
10633 \end_layout
10634
10635 \end_inset
10636
10637  declarations.
10638  (Use 
10639 \begin_inset Flex Code
10640 status collapsed
10641
10642 \begin_layout Plain Layout
10643 AddToPreamble
10644 \end_layout
10645
10646 \end_inset
10647
10648  if you just want to add material to the preamble.) Must end with 
10649 \begin_inset Quotes eld
10650 \end_inset
10651
10652
10653 \begin_inset Flex Code
10654 status collapsed
10655
10656 \begin_layout Plain Layout
10657 EndPreamble
10658 \end_layout
10659
10660 \end_inset
10661
10662
10663 \begin_inset Quotes erd
10664 \end_inset
10665
10666 .
10667 \end_layout
10668
10669 \begin_layout Description
10670 \begin_inset Flex Code
10671 status collapsed
10672
10673 \begin_layout Plain Layout
10674 Provides
10675 \end_layout
10676
10677 \end_inset
10678
10679  [
10680 \begin_inset Flex Code
10681 status collapsed
10682
10683 \begin_layout Plain Layout
10684 string
10685 \end_layout
10686
10687 \end_inset
10688
10689 ] [
10690 \begin_inset Flex Code
10691 status collapsed
10692
10693 \begin_layout Plain Layout
10694
10695 \emph on
10696 0
10697 \end_layout
10698
10699 \end_inset
10700
10701 ,
10702 \begin_inset space \thinspace{}
10703 \end_inset
10704
10705
10706 \begin_inset Flex Code
10707 status collapsed
10708
10709 \begin_layout Plain Layout
10710 1
10711 \end_layout
10712
10713 \end_inset
10714
10715 ] Whether the class already provides the feature 
10716 \begin_inset Flex Code
10717 status collapsed
10718
10719 \begin_layout Plain Layout
10720 string
10721 \end_layout
10722
10723 \end_inset
10724
10725 .
10726  A feature is in general the name of a package (e.
10727 \begin_inset space \thinspace{}
10728 \end_inset
10729
10730 g.
10731 \begin_inset space \space{}
10732 \end_inset
10733
10734
10735 \begin_inset Flex Code
10736 status collapsed
10737
10738 \begin_layout Plain Layout
10739 amsmath
10740 \end_layout
10741
10742 \end_inset
10743
10744  or 
10745 \begin_inset Flex Code
10746 status collapsed
10747
10748 \begin_layout Plain Layout
10749 makeidx
10750 \end_layout
10751
10752 \end_inset
10753
10754 ) or a macro (e.
10755 \begin_inset space \thinspace{}
10756 \end_inset
10757
10758 g.
10759 \begin_inset space \space{}
10760 \end_inset
10761
10762
10763 \begin_inset Flex Code
10764 status collapsed
10765
10766 \begin_layout Plain Layout
10767 url
10768 \end_layout
10769
10770 \end_inset
10771
10772  or 
10773 \begin_inset Flex Code
10774 status collapsed
10775
10776 \begin_layout Plain Layout
10777 boldsymbol
10778 \end_layout
10779
10780 \end_inset
10781
10782 ).
10783  See 
10784 \begin_inset CommandInset ref
10785 LatexCommand ref
10786 reference "chap:List-of-functions"
10787
10788 \end_inset
10789
10790  for the list of features.
10791 \end_layout
10792
10793 \begin_layout Description
10794 \begin_inset Flex Code
10795 status collapsed
10796
10797 \begin_layout Plain Layout
10798 ProvidesModule
10799 \end_layout
10800
10801 \end_inset
10802
10803  [
10804 \begin_inset Flex Code
10805 status collapsed
10806
10807 \begin_layout Plain Layout
10808 string
10809 \end_layout
10810
10811 \end_inset
10812
10813 ] Indicates that this layout provides the functionality of the module mentioned,
10814  which should be specified by the filename without the 
10815 \begin_inset Flex Code
10816 status collapsed
10817
10818 \begin_layout Plain Layout
10819 .module
10820 \end_layout
10821
10822 \end_inset
10823
10824  extension.
10825  This will typically be used if the layout includes the module directly,
10826  rather than using the 
10827 \begin_inset Flex Code
10828 status collapsed
10829
10830 \begin_layout Plain Layout
10831 DefaultModule
10832 \end_layout
10833
10834 \end_inset
10835
10836  tag to indicate that it ought to be used.
10837  It could also be used in a module that provided an alternate implementation
10838  of the same functionality.
10839 \end_layout
10840
10841 \begin_layout Description
10842 \begin_inset Flex Code
10843 status collapsed
10844
10845 \begin_layout Plain Layout
10846 ProvideStyle
10847 \end_layout
10848
10849 \end_inset
10850
10851  [
10852 \begin_inset Flex Code
10853 status collapsed
10854
10855 \begin_layout Plain Layout
10856 <style>
10857 \end_layout
10858
10859 \end_inset
10860
10861 ] Creates a new paragraph style if it does not already exist.
10862  If the style does exist, this section is ignored.
10863  Must end with 
10864 \begin_inset Quotes eld
10865 \end_inset
10866
10867
10868 \begin_inset Flex Code
10869 status collapsed
10870
10871 \begin_layout Plain Layout
10872 End
10873 \end_layout
10874
10875 \end_inset
10876
10877
10878 \begin_inset Quotes erd
10879 \end_inset
10880
10881 .
10882 \end_layout
10883
10884 \begin_layout Description
10885 \begin_inset Flex Code
10886 status collapsed
10887
10888 \begin_layout Plain Layout
10889 Requires
10890 \end_layout
10891
10892 \end_inset
10893
10894  [
10895 \begin_inset Flex Code
10896 status collapsed
10897
10898 \begin_layout Plain Layout
10899 string
10900 \end_layout
10901
10902 \end_inset
10903
10904 ] Whether the class requires the feature 
10905 \begin_inset Flex Code
10906 status collapsed
10907
10908 \begin_layout Plain Layout
10909 string
10910 \end_layout
10911
10912 \end_inset
10913
10914 .
10915  Multiple features must be separated by commas.
10916  Note that you can only request supported features.
10917  (See 
10918 \begin_inset CommandInset ref
10919 LatexCommand ref
10920 reference "chap:List-of-functions"
10921
10922 \end_inset
10923
10924  for the list of features.).
10925  If you require a package with specific options, you can additionally use
10926  
10927 \begin_inset Flex Code
10928 status collapsed
10929
10930 \begin_layout Plain Layout
10931 PackageOptions
10932 \end_layout
10933
10934 \end_inset
10935
10936 .
10937 \end_layout
10938
10939 \begin_layout Description
10940 \begin_inset Flex Code
10941 status collapsed
10942
10943 \begin_layout Plain Layout
10944 RightMargin
10945 \end_layout
10946
10947 \end_inset
10948
10949  [
10950 \begin_inset Flex Code
10951 status collapsed
10952
10953 \begin_layout Plain Layout
10954 string
10955 \end_layout
10956
10957 \end_inset
10958
10959 ] A string that indicates the width of the right margin on the screen, for
10960  example, 
10961 \begin_inset Quotes eld
10962 \end_inset
10963
10964
10965 \begin_inset Flex Code
10966 status collapsed
10967
10968 \begin_layout Plain Layout
10969 MMMMM
10970 \end_layout
10971
10972 \end_inset
10973
10974
10975 \begin_inset Quotes erd
10976 \end_inset
10977
10978 .
10979 \end_layout
10980
10981 \begin_layout Description
10982 \begin_inset Flex Code
10983 status collapsed
10984
10985 \begin_layout Plain Layout
10986 SecNumDepth
10987 \end_layout
10988
10989 \end_inset
10990
10991  [
10992 \begin_inset Flex Code
10993 status collapsed
10994
10995 \begin_layout Plain Layout
10996 int=3
10997 \end_layout
10998
10999 \end_inset
11000
11001 ] Sets which divisions get numbered.
11002  Corresponds to the
11003 \begin_inset Newline newline
11004 \end_inset
11005
11006
11007 \begin_inset Flex Code
11008 status collapsed
11009
11010 \begin_layout Plain Layout
11011 secnumdepth
11012 \end_layout
11013
11014 \end_inset
11015
11016  counter in \SpecialChar LaTeX
11017 .
11018 \end_layout
11019
11020 \begin_layout Description
11021 \begin_inset Flex Code
11022 status collapsed
11023
11024 \begin_layout Plain Layout
11025 Sides
11026 \end_layout
11027
11028 \end_inset
11029
11030  [
11031 \begin_inset Flex Code
11032 status collapsed
11033
11034 \begin_layout Plain Layout
11035
11036 \emph on
11037 1
11038 \end_layout
11039
11040 \end_inset
11041
11042 ,
11043 \begin_inset space \thinspace{}
11044 \end_inset
11045
11046
11047 \begin_inset Flex Code
11048 status collapsed
11049
11050 \begin_layout Plain Layout
11051 2
11052 \end_layout
11053
11054 \end_inset
11055
11056 ] Whether the class-default should be printing on one or both sides of the
11057  paper.
11058  Can be changed in the 
11059 \begin_inset Flex Noun
11060 status collapsed
11061
11062 \begin_layout Plain Layout
11063 Document\SpecialChar menuseparator
11064 Settings
11065 \end_layout
11066
11067 \end_inset
11068
11069  dialog.
11070 \end_layout
11071
11072 \begin_layout Description
11073 \begin_inset Flex Code
11074 status collapsed
11075
11076 \begin_layout Plain Layout
11077 Style
11078 \end_layout
11079
11080 \end_inset
11081
11082  [
11083 \begin_inset Flex Code
11084 status collapsed
11085
11086 \begin_layout Plain Layout
11087 <name>
11088 \end_layout
11089
11090 \end_inset
11091
11092 ] This sequence defines a paragraph style.
11093  If the style does not yet exist, it is created; if it does exist, its parameter
11094 s are modified.
11095  Must end with 
11096 \begin_inset Quotes eld
11097 \end_inset
11098
11099
11100 \begin_inset Flex Code
11101 status collapsed
11102
11103 \begin_layout Plain Layout
11104 End
11105 \end_layout
11106
11107 \end_inset
11108
11109
11110 \begin_inset Quotes erd
11111 \end_inset
11112
11113 .
11114 \begin_inset Newline newline
11115 \end_inset
11116
11117 See 
11118 \begin_inset CommandInset ref
11119 LatexCommand ref
11120 reference "subsec:Paragraph-Styles"
11121
11122 \end_inset
11123
11124  for details on paragraph styles.
11125 \change_inserted -712698321 1553617804
11126
11127 \end_layout
11128
11129 \begin_layout Description
11130
11131 \change_inserted -712698321 1553617862
11132 \begin_inset Flex Code
11133 status collapsed
11134
11135 \begin_layout Plain Layout
11136
11137 \change_inserted -712698321 1553617809
11138 TableStyle
11139 \end_layout
11140
11141 \end_inset
11142
11143  [
11144 \begin_inset Flex Code
11145 status collapsed
11146
11147 \begin_layout Plain Layout
11148
11149 \change_inserted -712698321 1553617805
11150 <name>
11151 \end_layout
11152
11153 \end_inset
11154
11155 ] defines the default table style that is used when inserting a table.
11156  The following styles are available:
11157 \end_layout
11158
11159 \begin_deeper
11160 \begin_layout Itemize
11161
11162 \change_inserted -712698321 1554308039
11163 \begin_inset Flex Code
11164 status collapsed
11165
11166 \begin_layout Plain Layout
11167
11168 \change_inserted -712698321 1554307928
11169 Formal_with_Footline
11170 \change_unchanged
11171
11172 \end_layout
11173
11174 \end_inset
11175
11176 : formal (
11177 \begin_inset Quotes eld
11178 \end_inset
11179
11180 booktabs
11181 \begin_inset Quotes erd
11182 \end_inset
11183
11184 ) style with horizontal lines only, using a bold top and bottom line, the
11185  first and last row are additionally separated from the table body with
11186  a thin middle line.
11187 \end_layout
11188
11189 \begin_layout Itemize
11190
11191 \change_inserted -712698321 1554308087
11192 \begin_inset Flex Code
11193 status collapsed
11194
11195 \begin_layout Plain Layout
11196
11197 \change_inserted -712698321 1554308042
11198 Formal_without_Footline
11199 \end_layout
11200
11201 \end_inset
11202
11203 : same as the above, but the last row is not separated with a middle line
11204  from the body.
11205 \end_layout
11206
11207 \begin_layout Itemize
11208
11209 \change_inserted -712698321 1553618031
11210 \begin_inset Flex Code
11211 status collapsed
11212
11213 \begin_layout Plain Layout
11214
11215 \change_inserted -712698321 1553618006
11216 Simple_Grid
11217 \end_layout
11218
11219 \end_inset
11220
11221 : Simple table lines.
11222 \end_layout
11223
11224 \begin_layout Itemize
11225
11226 \change_inserted -712698321 1553618309
11227 \begin_inset Flex Code
11228 status collapsed
11229
11230 \begin_layout Plain Layout
11231
11232 \change_inserted -712698321 1553618031
11233 Grid_with_Head
11234 \end_layout
11235
11236 \end_inset
11237
11238 : Like 
11239 \begin_inset Flex Code
11240 status collapsed
11241
11242 \begin_layout Plain Layout
11243
11244 \change_inserted -712698321 1553618043
11245 Simple_Grid
11246 \end_layout
11247
11248 \end_inset
11249
11250 , but with the header column offset with a second horizontal line.
11251  This is also the default style of \SpecialChar LyX
11252 .
11253 \end_layout
11254
11255 \begin_layout Itemize
11256
11257 \change_inserted -712698321 1553618280
11258 \begin_inset Flex Code
11259 status collapsed
11260
11261 \begin_layout Plain Layout
11262
11263 \change_inserted -712698321 1553618261
11264 No_Borders
11265 \end_layout
11266
11267 \end_inset
11268
11269 : Table without lines.
11270 \change_unchanged
11271
11272 \end_layout
11273
11274 \end_deeper
11275 \begin_layout Description
11276 \begin_inset Flex Code
11277 status collapsed
11278
11279 \begin_layout Plain Layout
11280 TitleLatexName
11281 \end_layout
11282
11283 \end_inset
11284
11285  [
11286 \begin_inset Flex Code
11287 status collapsed
11288
11289 \begin_layout Plain Layout
11290 string="maketitle"
11291 \end_layout
11292
11293 \end_inset
11294
11295 ] The name of the command or environment to be used with 
11296 \begin_inset Flex Code
11297 status collapsed
11298
11299 \begin_layout Plain Layout
11300 TitleLatexType
11301 \end_layout
11302
11303 \end_inset
11304
11305 .
11306 \end_layout
11307
11308 \begin_layout Description
11309 \begin_inset Flex Code
11310 status collapsed
11311
11312 \begin_layout Plain Layout
11313 TitleLatexType
11314 \end_layout
11315
11316 \end_inset
11317
11318  [
11319 \begin_inset Flex Code
11320 status collapsed
11321
11322 \begin_layout Plain Layout
11323
11324 \emph on
11325 CommandAfter
11326 \end_layout
11327
11328 \end_inset
11329
11330
11331 \begin_inset Flex Code
11332 status collapsed
11333
11334 \begin_layout Plain Layout
11335 Environment
11336 \end_layout
11337
11338 \end_inset
11339
11340 ] Indicates what kind of markup is used to define the title of a document.
11341  
11342 \begin_inset Flex Code
11343 status collapsed
11344
11345 \begin_layout Plain Layout
11346 CommandAfter
11347 \end_layout
11348
11349 \end_inset
11350
11351  means that the macro with name 
11352 \begin_inset Flex Code
11353 status collapsed
11354
11355 \begin_layout Plain Layout
11356 TitleLatexName
11357 \end_layout
11358
11359 \end_inset
11360
11361  will be inserted after the last layout which has 
11362 \begin_inset Quotes eld
11363 \end_inset
11364
11365
11366 \begin_inset Flex Code
11367 status collapsed
11368
11369 \begin_layout Plain Layout
11370 InTitle
11371 \begin_inset space ~
11372 \end_inset
11373
11374 1
11375 \end_layout
11376
11377 \end_inset
11378
11379
11380 \begin_inset Quotes erd
11381 \end_inset
11382
11383 .
11384  
11385 \begin_inset Flex Code
11386 status collapsed
11387
11388 \begin_layout Plain Layout
11389 Environment
11390 \end_layout
11391
11392 \end_inset
11393
11394  corresponds to the case where all layouts which have 
11395 \begin_inset Quotes eld
11396 \end_inset
11397
11398
11399 \begin_inset Flex Code
11400 status collapsed
11401
11402 \begin_layout Plain Layout
11403 InTitle
11404 \begin_inset space ~
11405 \end_inset
11406
11407 1
11408 \end_layout
11409
11410 \end_inset
11411
11412
11413 \begin_inset Quotes erd
11414 \end_inset
11415
11416  should be enclosed into the 
11417 \begin_inset Flex Code
11418 status collapsed
11419
11420 \begin_layout Plain Layout
11421 TitleLatexName
11422 \end_layout
11423
11424 \end_inset
11425
11426  environment.
11427 \end_layout
11428
11429 \begin_layout Description
11430 \begin_inset Flex Code
11431 status collapsed
11432
11433 \begin_layout Plain Layout
11434 TocDepth
11435 \end_layout
11436
11437 \end_inset
11438
11439  [
11440 \begin_inset Flex Code
11441 status collapsed
11442
11443 \begin_layout Plain Layout
11444 int=3
11445 \end_layout
11446
11447 \end_inset
11448
11449 ] Sets which divisions are included in the table of contents.
11450  Corresponds to the 
11451 \begin_inset Flex Code
11452 status collapsed
11453
11454 \begin_layout Plain Layout
11455 tocdepth
11456 \end_layout
11457
11458 \end_inset
11459
11460  counter in \SpecialChar LaTeX
11461 .
11462 \end_layout
11463
11464 \begin_layout Subsection
11465 \begin_inset Flex Code
11466 status collapsed
11467
11468 \begin_layout Plain Layout
11469 ClassOptions
11470 \end_layout
11471
11472 \end_inset
11473
11474  section
11475 \begin_inset CommandInset label
11476 LatexCommand label
11477 name "subsec:ClassOptions"
11478
11479 \end_inset
11480
11481
11482 \end_layout
11483
11484 \begin_layout Standard
11485 The 
11486 \begin_inset Flex Code
11487 status collapsed
11488
11489 \begin_layout Plain Layout
11490 ClassOptions
11491 \end_layout
11492
11493 \end_inset
11494
11495  section can contain the following entries:
11496 \end_layout
11497
11498 \begin_layout Description
11499 \begin_inset Flex Code
11500 status collapsed
11501
11502 \begin_layout Plain Layout
11503 FontSize
11504 \end_layout
11505
11506 \end_inset
11507
11508  [
11509 \begin_inset Flex Code
11510 status collapsed
11511
11512 \begin_layout Plain Layout
11513 string="10|11|12"
11514 \end_layout
11515
11516 \end_inset
11517
11518 ] The list of available font sizes for the document's main font, separated
11519  by 
11520 \begin_inset Quotes eld
11521 \end_inset
11522
11523
11524 \begin_inset Flex Code
11525 status collapsed
11526
11527 \begin_layout Plain Layout
11528 |
11529 \end_layout
11530
11531 \end_inset
11532
11533
11534 \begin_inset Quotes erd
11535 \end_inset
11536
11537 .
11538
11539 \change_inserted -712698321 1565110196
11540  Any number is possible.
11541 \end_layout
11542
11543 \begin_layout Description
11544
11545 \change_inserted -712698321 1565110259
11546 \begin_inset Flex Code
11547 status collapsed
11548
11549 \begin_layout Plain Layout
11550
11551 \change_inserted -712698321 1565110199
11552 FontSizeFormat
11553 \end_layout
11554
11555 \end_inset
11556
11557  [
11558 \begin_inset Flex Code
11559 status collapsed
11560
11561 \begin_layout Plain Layout
11562
11563 \change_inserted -712698321 1565110196
11564 string
11565 \end_layout
11566
11567 \end_inset
11568
11569 ] The format for the font size option.
11570  Default: 
11571 \begin_inset Flex Code
11572 status collapsed
11573
11574 \begin_layout Plain Layout
11575
11576 \change_inserted -712698321 1565110238
11577 $$spt
11578 \change_unchanged
11579
11580 \end_layout
11581
11582 \end_inset
11583
11584 .
11585  
11586 \begin_inset Flex Code
11587 status collapsed
11588
11589 \begin_layout Plain Layout
11590
11591 \change_inserted -712698321 1565110248
11592 $$s
11593 \end_layout
11594
11595 \end_inset
11596
11597  is a placeholder for the font size.
11598 \change_unchanged
11599
11600 \end_layout
11601
11602 \begin_layout Description
11603 \begin_inset Flex Code
11604 status collapsed
11605
11606 \begin_layout Plain Layout
11607 Header
11608 \end_layout
11609
11610 \end_inset
11611
11612  Used to set the DTD line with XML-based output classes.
11613  E.
11614 \begin_inset space \thinspace{}
11615 \end_inset
11616
11617 g.: PUBLIC 
11618 \begin_inset Quotes eld
11619 \end_inset
11620
11621 -//OASIS//DTD DocBook V4.2//EN
11622 \begin_inset Quotes erd
11623 \end_inset
11624
11625 .
11626 \change_inserted -712698321 1565101761
11627
11628 \end_layout
11629
11630 \begin_layout Description
11631
11632 \change_inserted -712698321 1565105413
11633 \begin_inset Flex Code
11634 status collapsed
11635
11636 \begin_layout Plain Layout
11637
11638 \change_inserted -712698321 1565101918
11639 PageSize
11640 \end_layout
11641
11642 \end_inset
11643
11644  [
11645 \begin_inset Flex Code
11646 status collapsed
11647
11648 \begin_layout Plain Layout
11649
11650 \change_inserted -712698321 1565105399
11651 string="letterpaper|\SpecialChar allowbreak
11652 legalpaper|\SpecialChar allowbreak
11653 executivepaper|\SpecialChar allowbreak
11654 a0paper|\SpecialChar allowbreak
11655 a1paper|\SpecialChar allowbreak
11656 a2paper|\SpecialChar allowbreak
11657 a3paper|\SpecialChar allowbreak
11658 a4
11659 paper|\SpecialChar allowbreak
11660 a5paper|\SpecialChar allowbreak
11661 a6paper|\SpecialChar allowbreak
11662 b0paper|\SpecialChar allowbreak
11663 b1paper|\SpecialChar allowbreak
11664 b2paper|\SpecialChar allowbreak
11665 b3paper|\SpecialChar allowbreak
11666 b4paper|\SpecialChar allowbreak
11667 b5paper|\SpecialChar allowbreak
11668 b6paper|\SpecialChar allowbreak
11669 c0
11670 paper|\SpecialChar allowbreak
11671 c1paper|\SpecialChar allowbreak
11672 c2paper|\SpecialChar allowbreak
11673 c3paper|\SpecialChar allowbreak
11674 c4paper|\SpecialChar allowbreak
11675 c5paper|\SpecialChar allowbreak
11676 c6paper|\SpecialChar allowbreak
11677 b0j|\SpecialChar allowbreak
11678 b1j|\SpecialChar allowbreak
11679 b2j|\SpecialChar allowbreak
11680 b3j|\SpecialChar allowbreak
11681 b4j|\SpecialChar allowbreak
11682 b5j|\SpecialChar allowbreak
11683 b6
11684 j"
11685 \end_layout
11686
11687 \end_inset
11688
11689 ] The list of available page sizes, separated by 
11690 \begin_inset Quotes eld
11691 \end_inset
11692
11693
11694 \begin_inset Flex Code
11695 status collapsed
11696
11697 \begin_layout Plain Layout
11698
11699 \change_inserted -712698321 1565101779
11700 |
11701 \end_layout
11702
11703 \end_inset
11704
11705
11706 \begin_inset Quotes erd
11707 \end_inset
11708
11709 .
11710  Currently, only the listed sizes are supported.
11711  Other sizes might be entered as custom class option.
11712 \change_unchanged
11713
11714 \end_layout
11715
11716 \begin_layout Description
11717 \begin_inset Flex Code
11718 status collapsed
11719
11720 \begin_layout Plain Layout
11721 PageStyle
11722 \end_layout
11723
11724 \end_inset
11725
11726  [
11727 \begin_inset Flex Code
11728 status collapsed
11729
11730 \begin_layout Plain Layout
11731 string="empty|plain|headings|fancy"
11732 \end_layout
11733
11734 \end_inset
11735
11736 ] The list of available page sty\SpecialChar softhyphen
11737 les, separated by 
11738 \begin_inset Quotes eld
11739 \end_inset
11740
11741
11742 \begin_inset Flex Code
11743 status collapsed
11744
11745 \begin_layout Plain Layout
11746 |
11747 \end_layout
11748
11749 \end_inset
11750
11751
11752 \begin_inset Quotes erd
11753 \end_inset
11754
11755 .
11756 \end_layout
11757
11758 \begin_layout Description
11759 \begin_inset Flex Code
11760 status collapsed
11761
11762 \begin_layout Plain Layout
11763 Other
11764 \end_layout
11765
11766 \end_inset
11767
11768  [
11769 \begin_inset Flex Code
11770 status collapsed
11771
11772 \begin_layout Plain Layout
11773 string=""
11774 \end_layout
11775
11776 \end_inset
11777
11778 ] Some document class options, separated by a comma, that will be added
11779  to the optional part of the 
11780 \begin_inset Flex Code
11781 status collapsed
11782
11783 \begin_layout Plain Layout
11784
11785 \backslash
11786 documentclass
11787 \end_layout
11788
11789 \end_inset
11790
11791  command.
11792 \end_layout
11793
11794 \begin_layout Standard
11795 The 
11796 \begin_inset Flex Code
11797 status collapsed
11798
11799 \begin_layout Plain Layout
11800 ClassOptions
11801 \end_layout
11802
11803 \end_inset
11804
11805  section must end with 
11806 \begin_inset Quotes eld
11807 \end_inset
11808
11809
11810 \begin_inset Flex Code
11811 status collapsed
11812
11813 \begin_layout Plain Layout
11814 End
11815 \end_layout
11816
11817 \end_inset
11818
11819
11820 \begin_inset Quotes erd
11821 \end_inset
11822
11823 .
11824 \end_layout
11825
11826 \begin_layout Subsection
11827 Paragraph styles
11828 \begin_inset CommandInset label
11829 LatexCommand label
11830 name "subsec:Paragraph-Styles"
11831
11832 \end_inset
11833
11834
11835 \end_layout
11836
11837 \begin_layout Standard
11838 A paragraph style description looks like this:
11839 \begin_inset Foot
11840 status collapsed
11841
11842 \begin_layout Plain Layout
11843 Note that this will either define a new style or modify an existing one.
11844 \end_layout
11845
11846 \end_inset
11847
11848
11849 \end_layout
11850
11851 \begin_layout LyX-Code
11852 Style 
11853 \family roman
11854 \emph on
11855 name
11856 \end_layout
11857
11858 \begin_layout LyX-Code
11859  ...
11860 \end_layout
11861
11862 \begin_layout LyX-Code
11863 End
11864 \end_layout
11865
11866 \begin_layout Standard
11867 where the following commands are allowed:
11868 \end_layout
11869
11870 \begin_layout Description
11871 \begin_inset Flex Code
11872 status collapsed
11873
11874 \begin_layout Plain Layout
11875 AddToToc
11876 \end_layout
11877
11878 \end_inset
11879
11880  [
11881 \begin_inset Flex Code
11882 status collapsed
11883
11884 \begin_layout Plain Layout
11885 string
11886 \end_layout
11887
11888 \end_inset
11889
11890 =""] This paragraph will appear in the table of contents of the given type.
11891  An empty string disables.
11892  See also the OutlinerName and the IsTocCaption commands.
11893  Default: disabled.
11894 \end_layout
11895
11896 \begin_layout Description
11897 \begin_inset Flex Code
11898 status collapsed
11899
11900 \begin_layout Plain Layout
11901 Align
11902 \end_layout
11903
11904 \end_inset
11905
11906  [
11907 \begin_inset Flex Code
11908 status collapsed
11909
11910 \begin_layout Plain Layout
11911
11912 \emph on
11913 block
11914 \emph default
11915 , left, right, center
11916 \end_layout
11917
11918 \end_inset
11919
11920 ] Paragraph alignment.
11921 \end_layout
11922
11923 \begin_layout Description
11924 \begin_inset Flex Code
11925 status collapsed
11926
11927 \begin_layout Plain Layout
11928 AlignPossible
11929 \end_layout
11930
11931 \end_inset
11932
11933  [
11934 \begin_inset Flex Code
11935 status collapsed
11936
11937 \begin_layout Plain Layout
11938
11939 \emph on
11940 block
11941 \emph default
11942 , left, right, center
11943 \end_layout
11944
11945 \end_inset
11946
11947 ] A comma separated list of permitted alignments.
11948  (Some \SpecialChar LaTeX
11949  styles prohibit certain alignments, since those wouldn't make sense.
11950  For example a right-aligned or centered enumeration isn't possible.)
11951 \end_layout
11952
11953 \begin_layout Description
11954 \begin_inset Flex Code
11955 status collapsed
11956
11957 \begin_layout Plain Layout
11958 Argument
11959 \end_layout
11960
11961 \end_inset
11962
11963  [
11964 \begin_inset Flex Code
11965 status collapsed
11966
11967 \begin_layout Plain Layout
11968 int
11969 \end_layout
11970
11971 \end_inset
11972
11973 ] Defines argument number <int> of a command\SpecialChar breakableslash
11974 environment associated with
11975  the current style.
11976  This is useful for things like section headings, and only makes sense with
11977  \SpecialChar LaTeX
11978 .
11979  Every (optional or required) argument of a command or environment – except
11980  for the required argument that is associated with the content of the paragraph
11981  itself – has a separate definition, where the number specifies the order
11982  of the arguments.
11983  The definition must end with 
11984 \begin_inset Flex Code
11985 status collapsed
11986
11987 \begin_layout Plain Layout
11988 EndArgument
11989 \end_layout
11990
11991 \end_inset
11992
11993 .
11994  So a command with two optional arguments has:
11995 \end_layout
11996
11997 \begin_deeper
11998 \begin_layout Quote
11999
12000 \family typewriter
12001 Argument 1
12002 \end_layout
12003
12004 \begin_layout Quote
12005
12006 \family typewriter
12007 ...
12008 \end_layout
12009
12010 \begin_layout Quote
12011
12012 \family typewriter
12013 EndArgument
12014 \end_layout
12015
12016 \begin_layout Quote
12017
12018 \family typewriter
12019 Argument 2
12020 \end_layout
12021
12022 \begin_layout Quote
12023
12024 \family typewriter
12025 ...
12026 \end_layout
12027
12028 \begin_layout Quote
12029
12030 \family typewriter
12031 EndArgument
12032 \end_layout
12033
12034 \begin_layout Standard
12035 Inside the 
12036 \begin_inset Flex Code
12037 status collapsed
12038
12039 \begin_layout Plain Layout
12040 Argument
12041 \end_layout
12042
12043 \end_inset
12044
12045  definition, the following specifications are possible:
12046 \end_layout
12047
12048 \begin_layout Itemize
12049 \begin_inset Flex Code
12050 status collapsed
12051
12052 \begin_layout Plain Layout
12053 LabelString
12054 \end_layout
12055
12056 \end_inset
12057
12058  
12059 \begin_inset Flex Code
12060 status collapsed
12061
12062 \begin_layout Plain Layout
12063 [string]
12064 \end_layout
12065
12066 \end_inset
12067
12068  The string that will appear both in the menu (to insert this argument)
12069  and on the argument inset button (unless you also specify a separate 
12070 \begin_inset Flex Code
12071 status collapsed
12072
12073 \begin_layout Plain Layout
12074 MenuString
12075 \end_layout
12076
12077 \end_inset
12078
12079 ).
12080  For the menu, you can define an accelerator by appending the respective
12081  character to the string, divided by 
12082 \begin_inset Quotes eld
12083 \end_inset
12084
12085 |
12086 \begin_inset Quotes erd
12087 \end_inset
12088
12089  (e.
12090 \begin_inset space \thinspace{}
12091 \end_inset
12092
12093 g.
12094 \begin_inset space \space{}
12095 \end_inset
12096
12097
12098 \begin_inset Quotes eld
12099 \end_inset
12100
12101
12102 \begin_inset Flex Code
12103 status collapsed
12104
12105 \begin_layout Plain Layout
12106 Short Title|S
12107 \end_layout
12108
12109 \end_inset
12110
12111
12112 \begin_inset Quotes erd
12113 \end_inset
12114
12115 ).
12116 \end_layout
12117
12118 \begin_layout Itemize
12119 \begin_inset Flex Code
12120 status collapsed
12121
12122 \begin_layout Plain Layout
12123 MenuString
12124 \end_layout
12125
12126 \end_inset
12127
12128  
12129 \begin_inset Flex Code
12130 status collapsed
12131
12132 \begin_layout Plain Layout
12133 [string]
12134 \end_layout
12135
12136 \end_inset
12137
12138  A separate string for the menu.
12139  You can define an accelerator by appending the respective character to
12140  the string, divided by 
12141 \begin_inset Quotes eld
12142 \end_inset
12143
12144 |
12145 \begin_inset Quotes erd
12146 \end_inset
12147
12148  (e.
12149 \begin_inset space \thinspace{}
12150 \end_inset
12151
12152 g.
12153 \begin_inset space \space{}
12154 \end_inset
12155
12156
12157 \begin_inset Quotes eld
12158 \end_inset
12159
12160
12161 \begin_inset Flex Code
12162 status collapsed
12163
12164 \begin_layout Plain Layout
12165 Short Title|S
12166 \end_layout
12167
12168 \end_inset
12169
12170
12171 \begin_inset Quotes erd
12172 \end_inset
12173
12174 ).
12175  This specification is optional.
12176  If it is not given the 
12177 \begin_inset Flex Code
12178 status collapsed
12179
12180 \begin_layout Plain Layout
12181 LabelString
12182 \end_layout
12183
12184 \end_inset
12185
12186  will be used instead for the menu.
12187 \end_layout
12188
12189 \begin_layout Itemize
12190 \begin_inset Flex Code
12191 status collapsed
12192
12193 \begin_layout Plain Layout
12194 Tooltip
12195 \end_layout
12196
12197 \end_inset
12198
12199  
12200 \begin_inset Flex Code
12201 status collapsed
12202
12203 \begin_layout Plain Layout
12204 [string]
12205 \end_layout
12206
12207 \end_inset
12208
12209  A longer explanatory text that appears in the tooltip when hovering over
12210  the argument inset.
12211 \end_layout
12212
12213 \begin_layout Itemize
12214 \begin_inset Flex Code
12215 status collapsed
12216
12217 \begin_layout Plain Layout
12218 Mandatory
12219 \end_layout
12220
12221 \end_inset
12222
12223  [
12224 \begin_inset Flex Code
12225 status collapsed
12226
12227 \begin_layout Plain Layout
12228
12229 \emph on
12230 0
12231 \end_layout
12232
12233 \end_inset
12234
12235 ,
12236 \begin_inset space \thinspace{}
12237 \end_inset
12238
12239
12240 \begin_inset Flex Code
12241 status collapsed
12242
12243 \begin_layout Plain Layout
12244 1
12245 \end_layout
12246
12247 \end_inset
12248
12249 ] Declare if this is a mandatory (1) or an optional (0) argument.
12250  Mandatory arguments will be output empty if not given, while optional arguments
12251  will not be output at all.
12252  By default, mandatory arguments are delimited by 
12253 \begin_inset Flex Code
12254 status collapsed
12255
12256 \begin_layout Plain Layout
12257 {...}
12258 \end_layout
12259
12260 \end_inset
12261
12262 , while optional arguments are delimited by 
12263 \begin_inset Flex Code
12264 status collapsed
12265
12266 \begin_layout Plain Layout
12267 [...]
12268 \end_layout
12269
12270 \end_inset
12271
12272
12273 \change_inserted -712698321 1555579782
12274
12275 \end_layout
12276
12277 \begin_layout Itemize
12278
12279 \change_inserted -712698321 1555579780
12280 \begin_inset Flex Code
12281 status collapsed
12282
12283 \begin_layout Plain Layout
12284
12285 \change_inserted -712698321 1555579780
12286 NewlineCmd
12287 \end_layout
12288
12289 \end_inset
12290
12291  
12292 \begin_inset Flex Code
12293 status collapsed
12294
12295 \begin_layout Plain Layout
12296
12297 \change_inserted -712698321 1555579780
12298 [string]
12299 \end_layout
12300
12301 \end_inset
12302
12303  Option to define a different command (from the default 
12304 \begin_inset Flex Code
12305 status collapsed
12306
12307 \begin_layout Plain Layout
12308
12309 \change_inserted -712698321 1555579780
12310
12311 \backslash
12312
12313 \backslash
12314
12315 \end_layout
12316
12317 \end_inset
12318
12319 ) to be used for line breaks.
12320  The initial backslash must not be specified.
12321 \change_unchanged
12322
12323 \end_layout
12324
12325 \begin_layout Itemize
12326 \begin_inset Flex Code
12327 status collapsed
12328
12329 \begin_layout Plain Layout
12330 Requires
12331 \end_layout
12332
12333 \end_inset
12334
12335  
12336 \begin_inset Flex Code
12337 status collapsed
12338
12339 \begin_layout Plain Layout
12340 [int=0]
12341 \end_layout
12342
12343 \end_inset
12344
12345  defines another argument (by its number) which this argument requires to
12346  be output if it is itself output.
12347  E.
12348 \begin_inset space \thinspace{}
12349 \end_inset
12350
12351 g., in \SpecialChar LaTeX
12352  commands, optional arguments often require previous optional arguments
12353  to be output (at least empty), as in 
12354 \begin_inset Flex Code
12355 status collapsed
12356
12357 \begin_layout Plain Layout
12358
12359 \backslash
12360 command[][argument]{text}
12361 \end_layout
12362
12363 \end_inset
12364
12365 .
12366  This can be achieved by the statement 
12367 \begin_inset Flex Code
12368 status collapsed
12369
12370 \begin_layout Plain Layout
12371 Requires 1
12372 \end_layout
12373
12374 \end_inset
12375
12376  within 
12377 \begin_inset Flex Code
12378 status collapsed
12379
12380 \begin_layout Plain Layout
12381 Argument 2
12382 \end_layout
12383
12384 \end_inset
12385
12386 .
12387 \end_layout
12388
12389 \begin_layout Itemize
12390 \begin_inset Flex Code
12391 status collapsed
12392
12393 \begin_layout Plain Layout
12394 LeftDelim
12395 \end_layout
12396
12397 \end_inset
12398
12399  
12400 \begin_inset Flex Code
12401 status collapsed
12402
12403 \begin_layout Plain Layout
12404 [string]
12405 \end_layout
12406
12407 \end_inset
12408
12409  defines a custom left delimiter (instead of 
12410 \begin_inset Flex Code
12411 status collapsed
12412
12413 \begin_layout Plain Layout
12414 {
12415 \end_layout
12416
12417 \end_inset
12418
12419  or 
12420 \begin_inset Flex Code
12421 status collapsed
12422
12423 \begin_layout Plain Layout
12424 [
12425 \end_layout
12426
12427 \end_inset
12428
12429 ).
12430  A line break in the output can be indicated by 
12431 \begin_inset Flex Code
12432 status collapsed
12433
12434 \begin_layout Plain Layout
12435 <br/>
12436 \end_layout
12437
12438 \end_inset
12439
12440 .
12441 \end_layout
12442
12443 \begin_layout Itemize
12444 \begin_inset Flex Code
12445 status collapsed
12446
12447 \begin_layout Plain Layout
12448 RightDelim
12449 \end_layout
12450
12451 \end_inset
12452
12453  
12454 \begin_inset Flex Code
12455 status collapsed
12456
12457 \begin_layout Plain Layout
12458 [string]
12459 \end_layout
12460
12461 \end_inset
12462
12463  defines a custom right delimiter (instead of 
12464 \begin_inset Flex Code
12465 status collapsed
12466
12467 \begin_layout Plain Layout
12468 }
12469 \end_layout
12470
12471 \end_inset
12472
12473  or 
12474 \begin_inset Flex Code
12475 status collapsed
12476
12477 \begin_layout Plain Layout
12478 ]
12479 \end_layout
12480
12481 \end_inset
12482
12483 ).
12484  A line break in the output can be indicated by 
12485 \begin_inset Flex Code
12486 status collapsed
12487
12488 \begin_layout Plain Layout
12489 <br/>
12490 \end_layout
12491
12492 \end_inset
12493
12494 .
12495 \end_layout
12496
12497 \begin_layout Itemize
12498 \begin_inset Flex Code
12499 status collapsed
12500
12501 \begin_layout Plain Layout
12502 DefaultArg
12503 \end_layout
12504
12505 \end_inset
12506
12507  
12508 \begin_inset Flex Code
12509 status collapsed
12510
12511 \begin_layout Plain Layout
12512 [string]
12513 \end_layout
12514
12515 \end_inset
12516
12517  defines an argument that is inserted if and only if no user-specified arguments
12518  were given, i.
12519 \begin_inset space \thinspace{}
12520 \end_inset
12521
12522 e.
12523 \begin_inset space \space{}
12524 \end_inset
12525
12526 if no argument inset has been inserted (note that also an empty argument
12527  inset omits the DefaultArg).
12528  Multiple arguments need to be separated by comma.
12529 \end_layout
12530
12531 \begin_layout Itemize
12532 \begin_inset Flex Code
12533 status collapsed
12534
12535 \begin_layout Plain Layout
12536 PresetArg
12537 \end_layout
12538
12539 \end_inset
12540
12541  
12542 \begin_inset Flex Code
12543 status collapsed
12544
12545 \begin_layout Plain Layout
12546 [string]
12547 \end_layout
12548
12549 \end_inset
12550
12551  defines an argument that is inserted in any case (alone or in addition
12552  to user-specified arguments).
12553  Multiple arguments need to be separated by comma.
12554 \end_layout
12555
12556 \begin_layout Itemize
12557 \begin_inset Flex Code
12558 status collapsed
12559
12560 \begin_layout Plain Layout
12561 Font
12562 \end_layout
12563
12564 \end_inset
12565
12566  The font used for the argument content, see 
12567 \begin_inset CommandInset ref
12568 LatexCommand ref
12569 reference "subsec:Font-description"
12570
12571 \end_inset
12572
12573 .
12574 \change_inserted -712698321 1559484228
12575
12576 \end_layout
12577
12578 \begin_layout Itemize
12579
12580 \change_inserted -712698321 1559484228
12581 \begin_inset Flex Code
12582 status collapsed
12583
12584 \begin_layout Plain Layout
12585
12586 \change_inserted -712698321 1559484228
12587 FreeSpacing
12588 \end_layout
12589
12590 \end_inset
12591
12592  [
12593 \begin_inset Flex Code
12594 status collapsed
12595
12596 \begin_layout Plain Layout
12597
12598 \change_inserted -712698321 1559484228
12599
12600 \emph on
12601 0
12602 \end_layout
12603
12604 \end_inset
12605
12606 ,
12607 \begin_inset space \thinspace{}
12608 \end_inset
12609
12610
12611 \begin_inset Flex Code
12612 status collapsed
12613
12614 \begin_layout Plain Layout
12615
12616 \change_inserted -712698321 1559484228
12617 1
12618 \end_layout
12619
12620 \end_inset
12621
12622 ] As with paragraph styles, see 
12623 \begin_inset CommandInset ref
12624 LatexCommand ref
12625 reference "subsec:Paragraph-Styles"
12626
12627 \end_inset
12628
12629 .
12630 \change_unchanged
12631
12632 \end_layout
12633
12634 \begin_layout Itemize
12635 \begin_inset Flex Code
12636 status collapsed
12637
12638 \begin_layout Plain Layout
12639 LabelFont
12640 \end_layout
12641
12642 \end_inset
12643
12644  The font used for the label; see 
12645 \begin_inset CommandInset ref
12646 LatexCommand ref
12647 reference "subsec:Font-description"
12648
12649 \end_inset
12650
12651 .
12652 \end_layout
12653
12654 \begin_layout Itemize
12655 \begin_inset Flex Code
12656 status collapsed
12657
12658 \begin_layout Plain Layout
12659 Decoration
12660 \end_layout
12661
12662 \end_inset
12663
12664  [
12665 \begin_inset Flex Code
12666 status collapsed
12667
12668 \begin_layout Plain Layout
12669
12670 \emph on
12671 Classic
12672 \emph default
12673 , Minimalistic, Conglomerate
12674 \end_layout
12675
12676 \end_inset
12677
12678 ] describes the rendering style used for the inset's frame and buttons.
12679 \end_layout
12680
12681 \begin_layout Itemize
12682 \begin_inset Flex Code
12683 status collapsed
12684
12685 \begin_layout Plain Layout
12686 AutoInsert
12687 \end_layout
12688
12689 \end_inset
12690
12691  
12692 \begin_inset Flex Code
12693 status collapsed
12694
12695 \begin_layout Plain Layout
12696 [int=0]
12697 \end_layout
12698
12699 \end_inset
12700
12701  If this is set to 
12702 \begin_inset Flex Code
12703 status collapsed
12704
12705 \begin_layout Plain Layout
12706 1
12707 \end_layout
12708
12709 \end_inset
12710
12711 , this argument is automatically inserted when the respective style is selected.
12712
12713 \change_deleted -712698321 1559484200
12714  Currently, only one argument per style\SpecialChar breakableslash
12715 layout can be automatically inserted.
12716 \change_unchanged
12717
12718 \end_layout
12719
12720 \begin_layout Itemize
12721
12722 \change_inserted -712698321 1559491402
12723 \begin_inset Flex Code
12724 status collapsed
12725
12726 \begin_layout Plain Layout
12727
12728 \change_inserted -712698321 1559490711
12729 InsertOnNewline
12730 \end_layout
12731
12732 \end_inset
12733
12734  
12735 \begin_inset Flex Code
12736 status collapsed
12737
12738 \begin_layout Plain Layout
12739
12740 \change_inserted -712698321 1559490703
12741 [int=0]
12742 \end_layout
12743
12744 \end_inset
12745
12746  If this is set to 
12747 \begin_inset Flex Code
12748 status collapsed
12749
12750 \begin_layout Plain Layout
12751
12752 \change_inserted -712698321 1559490703
12753 1
12754 \end_layout
12755
12756 \end_inset
12757
12758 , this argument will be inserted on a new line with 
12759 \begin_inset Flex Code
12760 status collapsed
12761
12762 \begin_layout Plain Layout
12763
12764 \change_inserted -712698321 1559491402
12765 AutoInsert
12766 \end_layout
12767
12768 \end_inset
12769
12770  (only available within Flex insets).
12771 \end_layout
12772
12773 \begin_layout Itemize
12774 \begin_inset Flex Code
12775 status collapsed
12776
12777 \begin_layout Plain Layout
12778 InsertCotext
12779 \end_layout
12780
12781 \end_inset
12782
12783  
12784 \begin_inset Flex Code
12785 status collapsed
12786
12787 \begin_layout Plain Layout
12788 [int=0]
12789 \end_layout
12790
12791 \end_inset
12792
12793  If this is set to 
12794 \begin_inset Flex Code
12795 status collapsed
12796
12797 \begin_layout Plain Layout
12798 1
12799 \end_layout
12800
12801 \end_inset
12802
12803 , this argument will be inserted with a copy of the co-text (either selected
12804  text or the whole paragraph) as content.
12805 \end_layout
12806
12807 \begin_layout Itemize
12808 \begin_inset Flex Code
12809 status collapsed
12810
12811 \begin_layout Plain Layout
12812 PassThru
12813 \end_layout
12814
12815 \end_inset
12816
12817  [
12818 \begin_inset Flex Code
12819 status collapsed
12820
12821 \begin_layout Plain Layout
12822
12823 \emph on
12824 inherited
12825 \emph default
12826 , true, false
12827 \end_layout
12828
12829 \end_inset
12830
12831 ] Whether the contents of this argument should be output in raw form, meaning
12832  without special translations that \SpecialChar LaTeX
12833  would require.
12834  By default, the 
12835 \begin_inset Flex Code
12836 status collapsed
12837
12838 \begin_layout Plain Layout
12839 PassThru
12840 \end_layout
12841
12842 \end_inset
12843
12844  status is inherited by the inset or paragraph layout the argument belongs
12845  to, true and false change the status for the given argument only.
12846 \end_layout
12847
12848 \begin_layout Itemize
12849 \begin_inset Flex Code
12850 status collapsed
12851
12852 \begin_layout Plain Layout
12853 PassThruChars
12854 \end_layout
12855
12856 \end_inset
12857
12858  [
12859 \begin_inset Flex Code
12860 status collapsed
12861
12862 \begin_layout Plain Layout
12863 string of characters
12864 \end_layout
12865
12866 \end_inset
12867
12868 ]
12869 \family typewriter
12870  
12871 \family default
12872 Defines individual characters
12873 \begin_inset Newline linebreak
12874 \end_inset
12875
12876 that should be output in raw form, meaning without special translations
12877  that \SpecialChar LaTeX
12878  would require.
12879  Note that, contrary to PassThru, this needs to be explicitly defined for
12880  arguments.
12881  That is, arguments do not inherit PassThruChars from their parent inset
12882  or layout.
12883 \end_layout
12884
12885 \begin_layout Itemize
12886 \begin_inset Flex Code
12887 status collapsed
12888
12889 \begin_layout Plain Layout
12890 IsTocCaption
12891 \end_layout
12892
12893 \end_inset
12894
12895  [
12896 \begin_inset Flex Code
12897 status collapsed
12898
12899 \begin_layout Plain Layout
12900
12901 \emph on
12902 0
12903 \end_layout
12904
12905 \end_inset
12906
12907 ,
12908 \begin_inset space \thinspace{}
12909 \end_inset
12910
12911
12912 \begin_inset Flex Code
12913 status collapsed
12914
12915 \begin_layout Plain Layout
12916 1
12917 \end_layout
12918
12919 \end_inset
12920
12921 ] If this is set to 1, the argument will output its content in the corresponding
12922  item in the table of contents.
12923  See AddToToc.
12924 \end_layout
12925
12926 \begin_layout Standard
12927 By default, the text entered in the \SpecialChar LyX
12928  workarea in the respective layout is
12929  the last (mandatory) argument of a command if the 
12930 \begin_inset Flex Code
12931 status collapsed
12932
12933 \begin_layout Plain Layout
12934 LatexType
12935 \end_layout
12936
12937 \end_inset
12938
12939  is 
12940 \begin_inset Flex Code
12941 status collapsed
12942
12943 \begin_layout Plain Layout
12944 Command
12945 \end_layout
12946
12947 \end_inset
12948
12949 .
12950  However, arguments with the prefix 
12951 \begin_inset Flex Code
12952 status collapsed
12953
12954 \begin_layout Plain Layout
12955 post:
12956 \end_layout
12957
12958 \end_inset
12959
12960  are output after this workarea argument.
12961  Note that post-argument numbering restarts at 1, so the first argument
12962  following the workarea argument is 
12963 \begin_inset Flex Code
12964 status collapsed
12965
12966 \begin_layout Plain Layout
12967 post:1
12968 \end_layout
12969
12970 \end_inset
12971
12972 .
12973  Post-arguments are ignored in any other 
12974 \begin_inset Flex Code
12975 status collapsed
12976
12977 \begin_layout Plain Layout
12978 LatexType
12979 \end_layout
12980
12981 \end_inset
12982
12983  than 
12984 \begin_inset Flex Code
12985 status collapsed
12986
12987 \begin_layout Plain Layout
12988 Command
12989 \end_layout
12990
12991 \end_inset
12992
12993 .
12994 \end_layout
12995
12996 \begin_layout Standard
12997 Arguments for list 
12998 \begin_inset Flex Code
12999 status collapsed
13000
13001 \begin_layout Plain Layout
13002
13003 \backslash
13004 item
13005 \end_layout
13006
13007 \end_inset
13008
13009 s (as in 
13010 \begin_inset Flex Code
13011 status collapsed
13012
13013 \begin_layout Plain Layout
13014
13015 \backslash
13016 item[foo]
13017 \end_layout
13018
13019 \end_inset
13020
13021 ) have the prefix 
13022 \begin_inset Flex Code
13023 status collapsed
13024
13025 \begin_layout Plain Layout
13026 item:
13027 \end_layout
13028
13029 \end_inset
13030
13031  followed by the number (e.
13032 \begin_inset space \thinspace{}
13033 \end_inset
13034
13035 g.
13036 \begin_inset space \space{}
13037 \end_inset
13038
13039
13040 \begin_inset Flex Code
13041 status collapsed
13042
13043 \begin_layout Plain Layout
13044 Argument item:1
13045 \end_layout
13046
13047 \end_inset
13048
13049 ).
13050 \change_inserted -712698321 1534487781
13051
13052 \end_layout
13053
13054 \begin_layout Standard
13055
13056 \change_inserted -712698321 1534488561
13057 Finally, there is a special argument type with the prefix 
13058 \begin_inset Flex Code
13059 status collapsed
13060
13061 \begin_layout Plain Layout
13062
13063 \change_inserted -712698321 1534487844
13064 listpreamble:
13065 \change_unchanged
13066
13067 \end_layout
13068
13069 \end_inset
13070
13071 .
13072  It is not really an argument, but uses the argument interface (thus, the
13073  prefix is also followed by a number, e.
13074 \begin_inset space \thinspace{}
13075 \end_inset
13076
13077 g.
13078  
13079 \begin_inset Flex Code
13080 status collapsed
13081
13082 \begin_layout Plain Layout
13083
13084 \change_inserted -712698321 1534488412
13085 Argument listpreamble:1
13086 \end_layout
13087
13088 \end_inset
13089
13090 ).
13091  As the name implies, it is targeted at lists such as 
13092 \family sans
13093 Itemize
13094 \family default
13095
13096 \family sans
13097 Enumerate
13098 \family default
13099
13100 \family sans
13101 Description
13102 \family default
13103 , or 
13104 \family sans
13105 Bibliography
13106 \family default
13107 .
13108  Its content will be output at the list start, before the first 
13109 \begin_inset Flex Code
13110 status collapsed
13111
13112 \begin_layout Plain Layout
13113
13114 \change_inserted -712698321 1534488058
13115
13116 \backslash
13117 item
13118 \change_unchanged
13119
13120 \end_layout
13121
13122 \end_inset
13123
13124 , on an own line (a place that is otherwise not accessible in \SpecialChar LyX
13125 ).
13126  This way, users can insert redefinitions (of lengths etc.) to individual
13127  lists.
13128  By default, these arguments do not have a delimiter.
13129 \change_unchanged
13130
13131 \end_layout
13132
13133 \end_deeper
13134 \begin_layout Description
13135 \begin_inset Flex Code
13136 status collapsed
13137
13138 \begin_layout Plain Layout
13139 AutoNests
13140 \end_layout
13141
13142 \end_inset
13143
13144  Includes a comma-separated list of layouts that should be nested in and
13145  after the current layout.
13146  Only makes sense for nestable layouts (such as environments).
13147  Must be ended by 
13148 \begin_inset Quotes eld
13149 \end_inset
13150
13151
13152 \begin_inset Flex Code
13153 status collapsed
13154
13155 \begin_layout Plain Layout
13156 EndAutoNests
13157 \end_layout
13158
13159 \end_inset
13160
13161
13162 \begin_inset Quotes erd
13163 \end_inset
13164
13165 .
13166  See also 
13167 \begin_inset Flex Code
13168 status collapsed
13169
13170 \begin_layout Plain Layout
13171 IsAutoNestedBy
13172 \end_layout
13173
13174 \end_inset
13175
13176 .
13177 \end_layout
13178
13179 \begin_layout Description
13180 \begin_inset Flex Code
13181 status collapsed
13182
13183 \begin_layout Plain Layout
13184 BabelPreamble
13185 \end_layout
13186
13187 \end_inset
13188
13189  Note that this will completely override any prior 
13190 \begin_inset Flex Code
13191 status collapsed
13192
13193 \begin_layout Plain Layout
13194 BabelPreamble
13195 \end_layout
13196
13197 \end_inset
13198
13199  declaration for this style.
13200  Must end with 
13201 \begin_inset Quotes eld
13202 \end_inset
13203
13204
13205 \begin_inset Flex Code
13206 status collapsed
13207
13208 \begin_layout Plain Layout
13209 EndBabelPreamble
13210 \end_layout
13211
13212 \end_inset
13213
13214
13215 \begin_inset Quotes erd
13216 \end_inset
13217
13218 .
13219  See 
13220 \begin_inset CommandInset ref
13221 LatexCommand ref
13222 reference "subsec:I18n"
13223
13224 \end_inset
13225
13226  for details on its use.
13227 \end_layout
13228
13229 \begin_layout Description
13230 \begin_inset Flex Code
13231 status collapsed
13232
13233 \begin_layout Plain Layout
13234 BottomSep
13235 \end_layout
13236
13237 \end_inset
13238
13239  [
13240 \begin_inset Flex Code
13241 status collapsed
13242
13243 \begin_layout Plain Layout
13244 float=0
13245 \end_layout
13246
13247 \end_inset
13248
13249 ]
13250 \begin_inset Foot
13251 status collapsed
13252
13253 \begin_layout Plain Layout
13254 Note that a `float' here is a real number, such as: 1.5.
13255 \end_layout
13256
13257 \end_inset
13258
13259  The vertical space with which the last of a chain of paragraphs with this
13260  style is separated from the following paragraph.
13261  If the next paragraph has another style, the separations are not simply
13262  added, but the maximum is taken.
13263 \end_layout
13264
13265 \begin_layout Description
13266 \begin_inset Flex Code
13267 status collapsed
13268
13269 \begin_layout Plain Layout
13270 Category
13271 \end_layout
13272
13273 \end_inset
13274
13275  [
13276 \begin_inset Flex Code
13277 status collapsed
13278
13279 \begin_layout Plain Layout
13280 string
13281 \end_layout
13282
13283 \end_inset
13284
13285 ] The category for this style.
13286  This is used to group related styles in the style combobox on the toolbar.
13287  Any string can be used, but you may want to use existing categories with
13288  your own styles.
13289  
13290 \end_layout
13291
13292 \begin_layout Description
13293 \begin_inset Flex Code
13294 status collapsed
13295
13296 \begin_layout Plain Layout
13297 CommandDepth
13298 \end_layout
13299
13300 \end_inset
13301
13302  Depth of XML command.
13303  Used only with XML-type formats.
13304 \end_layout
13305
13306 \begin_layout Description
13307 \begin_inset Flex Code
13308 status collapsed
13309
13310 \begin_layout Plain Layout
13311 CopyStyle
13312 \end_layout
13313
13314 \end_inset
13315
13316  [
13317 \begin_inset Flex Code
13318 status collapsed
13319
13320 \begin_layout Plain Layout
13321 string
13322 \end_layout
13323
13324 \end_inset
13325
13326 ] Copies all the features of an existing style into the current one.
13327  
13328 \end_layout
13329
13330 \begin_layout Description
13331 \begin_inset Flex Code
13332 status collapsed
13333
13334 \begin_layout Plain Layout
13335 DependsOn
13336 \end_layout
13337
13338 \end_inset
13339
13340  [
13341 \begin_inset Flex Code
13342 status collapsed
13343
13344 \begin_layout Plain Layout
13345 <name>
13346 \end_layout
13347
13348 \end_inset
13349
13350 ] The name of a style whose preamble should be output 
13351 \emph on
13352 before
13353 \emph default
13354  this one.
13355  This allows to ensure some ordering of the preamble snippets when macros
13356  definitions depend on one another.
13357 \begin_inset Foot
13358 status collapsed
13359
13360 \begin_layout Plain Layout
13361 Note that, besides that functionality, there is no way to ensure any ordering
13362  of preambles.
13363  The ordering that you see in a given version of \SpecialChar LyX
13364  may change without warning
13365  in later versions.
13366 \end_layout
13367
13368 \end_inset
13369
13370
13371 \end_layout
13372
13373 \begin_layout Description
13374 \begin_inset Flex Code
13375 status collapsed
13376
13377 \begin_layout Plain Layout
13378 EndLabeltype
13379 \end_layout
13380
13381 \end_inset
13382
13383  [
13384 \begin_inset Flex Code
13385 status collapsed
13386
13387 \begin_layout Plain Layout
13388
13389 \emph on
13390 No_Label
13391 \emph default
13392 , Box, Filled_Box, Static
13393 \end_layout
13394
13395 \end_inset
13396
13397 ] The type of label that stands at the end of the paragraph (or sequence
13398  of paragraphs if 
13399 \begin_inset Flex Code
13400 status collapsed
13401
13402 \begin_layout Plain Layout
13403 LatexType
13404 \end_layout
13405
13406 \end_inset
13407
13408  is
13409 \begin_inset Newline newline
13410 \end_inset
13411
13412
13413 \begin_inset Flex Code
13414 status collapsed
13415
13416 \begin_layout Plain Layout
13417 Environment
13418 \end_layout
13419
13420 \end_inset
13421
13422
13423 \begin_inset Flex Code
13424 status collapsed
13425
13426 \begin_layout Plain Layout
13427 Item_Environment
13428 \end_layout
13429
13430 \end_inset
13431
13432  or 
13433 \begin_inset Flex Code
13434 status collapsed
13435
13436 \begin_layout Plain Layout
13437 List_Environment
13438 \end_layout
13439
13440 \end_inset
13441
13442 ).
13443  
13444 \begin_inset Flex Code
13445 status collapsed
13446
13447 \begin_layout Plain Layout
13448 No_Label
13449 \end_layout
13450
13451 \end_inset
13452
13453  means 
13454 \begin_inset Quotes eld
13455 \end_inset
13456
13457 nothing
13458 \begin_inset Quotes erd
13459 \end_inset
13460
13461
13462 \begin_inset Flex Code
13463 status collapsed
13464
13465 \begin_layout Plain Layout
13466 Box
13467 \end_layout
13468
13469 \end_inset
13470
13471  (resp.
13472 \begin_inset space \space{}
13473 \end_inset
13474
13475
13476 \begin_inset Flex Code
13477 status collapsed
13478
13479 \begin_layout Plain Layout
13480 Filled_Box
13481 \end_layout
13482
13483 \end_inset
13484
13485 ) is a white (resp.
13486 \begin_inset space ~
13487 \end_inset
13488
13489 black) square suitable for end of proof markers, 
13490 \begin_inset Flex Code
13491 status collapsed
13492
13493 \begin_layout Plain Layout
13494 Static
13495 \end_layout
13496
13497 \end_inset
13498
13499  is an explicit text string.
13500 \end_layout
13501
13502 \begin_layout Description
13503 \begin_inset Flex Code
13504 status collapsed
13505
13506 \begin_layout Plain Layout
13507 EndLabelString
13508 \end_layout
13509
13510 \end_inset
13511
13512  [
13513 \begin_inset Flex Code
13514 status collapsed
13515
13516 \begin_layout Plain Layout
13517 string=""
13518 \end_layout
13519
13520 \end_inset
13521
13522 ] The string used for a label with a 
13523 \begin_inset Flex Code
13524 status collapsed
13525
13526 \begin_layout Plain Layout
13527 Static
13528 \end_layout
13529
13530 \end_inset
13531
13532
13533 \begin_inset Newline newline
13534 \end_inset
13535
13536
13537 \begin_inset Flex Code
13538 status collapsed
13539
13540 \begin_layout Plain Layout
13541 EndLabelType
13542 \end_layout
13543
13544 \end_inset
13545
13546 .
13547  
13548 \end_layout
13549
13550 \begin_layout Description
13551 \begin_inset Flex Code
13552 status collapsed
13553
13554 \begin_layout Plain Layout
13555 Font
13556 \end_layout
13557
13558 \end_inset
13559
13560  The font used for both the text body 
13561 \emph on
13562 and
13563 \emph default
13564  the label.
13565  See 
13566 \begin_inset CommandInset ref
13567 LatexCommand ref
13568 reference "subsec:Font-description"
13569
13570 \end_inset
13571
13572 .
13573  Note that defining this font automatically defines the 
13574 \begin_inset Flex Code
13575 status collapsed
13576
13577 \begin_layout Plain Layout
13578 LabelFont
13579 \end_layout
13580
13581 \end_inset
13582
13583  to the same value.
13584  So you should define this one first if you also want to define 
13585 \begin_inset Flex Code
13586 status collapsed
13587
13588 \begin_layout Plain Layout
13589 LabelFont
13590 \end_layout
13591
13592 \end_inset
13593
13594 .
13595 \end_layout
13596
13597 \begin_layout Description
13598 \begin_inset Flex Code
13599 status collapsed
13600
13601 \begin_layout Plain Layout
13602 ForceLocal
13603 \end_layout
13604
13605 \end_inset
13606
13607  [
13608 \begin_inset Flex Code
13609 status collapsed
13610
13611 \begin_layout Plain Layout
13612 int=0
13613 \end_layout
13614
13615 \end_inset
13616
13617 ] Used for backporting new styles to stable \SpecialChar LyX
13618  versions.
13619  The first stable version that supports this tag is \SpecialChar LyX
13620  2.1.0.
13621  The argument is a number which may either be 0, -1 or any value greater
13622  than zero.
13623  If the 
13624 \begin_inset Flex Code
13625 status collapsed
13626
13627 \begin_layout Plain Layout
13628 ForceLocal
13629 \end_layout
13630
13631 \end_inset
13632
13633  flag of a style is greater than zero, it will always be written to the
13634  document header.
13635  If a .lyx file is read, the style definitions from the document header are
13636  added to the document class.
13637  Therefore even older \SpecialChar LyX
13638  versions can handle the style.
13639  The argument of 
13640 \begin_inset Flex Code
13641 status collapsed
13642
13643 \begin_layout Plain Layout
13644 ForceLocal
13645 \end_layout
13646
13647 \end_inset
13648
13649  is a version number: if the style is read, and the version number is less
13650  than the version number of the already existing style in the document class,
13651  the new style is ignored.
13652  If the version number is greater, the new style replaces the existing style.
13653  A value of -1 means an infinite version number, i.
13654 \begin_inset space \thinspace{}
13655 \end_inset
13656
13657 e.
13658 \begin_inset space \space{}
13659 \end_inset
13660
13661 the style is always used.
13662 \end_layout
13663
13664 \begin_layout Description
13665 \begin_inset Flex Code
13666 status collapsed
13667
13668 \begin_layout Plain Layout
13669 FreeSpacing
13670 \end_layout
13671
13672 \end_inset
13673
13674  [
13675 \begin_inset Flex Code
13676 status collapsed
13677
13678 \begin_layout Plain Layout
13679
13680 \emph on
13681 0
13682 \end_layout
13683
13684 \end_inset
13685
13686 ,
13687 \begin_inset space \thinspace{}
13688 \end_inset
13689
13690
13691 \begin_inset Flex Code
13692 status collapsed
13693
13694 \begin_layout Plain Layout
13695 1
13696 \end_layout
13697
13698 \end_inset
13699
13700 ] Usually \SpecialChar LyX
13701  does not allow you to insert more than one space between words,
13702  since a space is considered as the separation between two words, not a
13703  character or symbol of its own.
13704  This is a very fine thing but sometimes annoying, for example, when typing
13705  program code or plain \SpecialChar LaTeX
13706  code.
13707  For this reason, 
13708 \begin_inset Flex Code
13709 status collapsed
13710
13711 \begin_layout Plain Layout
13712 FreeSpacing
13713 \end_layout
13714
13715 \end_inset
13716
13717  can be enabled.
13718  
13719 \change_deleted -495245474 1550490105
13720 Note that 
13721 \change_unchanged
13722 \SpecialChar LyX
13723  will create protected blanks for the additional blanks when in 
13724 \change_inserted -495245474 1550490096
13725
13726 \begin_inset Flex Code
13727 status collapsed
13728
13729 \begin_layout Plain Layout
13730
13731 \change_inserted -495245474 1550490089
13732 Passthru 1
13733 \end_layout
13734
13735 \end_inset
13736
13737  is not specified.
13738 \change_deleted -495245474 1550490116
13739 another mode than \SpecialChar LaTeX
13740 -mode.
13741
13742 \change_inserted -495245474 1550247760
13743  Note that 
13744 \begin_inset Flex Code
13745 status collapsed
13746
13747 \begin_layout Plain Layout
13748
13749 \change_inserted -495245474 1550247736
13750 FreeSpacing
13751 \end_layout
13752
13753 \end_inset
13754
13755  implies 
13756 \begin_inset Flex Code
13757 status collapsed
13758
13759 \begin_layout Plain Layout
13760
13761 \change_inserted -495245474 1550247755
13762 KeepEmpty
13763 \end_layout
13764
13765 \end_inset
13766
13767 .
13768 \change_unchanged
13769
13770 \end_layout
13771
13772 \begin_layout Description
13773 \begin_inset Flex Code
13774 status collapsed
13775
13776 \begin_layout Plain Layout
13777 HTML*
13778 \end_layout
13779
13780 \end_inset
13781
13782  These tags are used with XHTML output.
13783  See 
13784 \begin_inset CommandInset ref
13785 LatexCommand ref
13786 reference "subsec:Paragraph-Style-XHTML"
13787
13788 \end_inset
13789
13790 .
13791 \end_layout
13792
13793 \begin_layout Description
13794 \begin_inset Flex Code
13795 status collapsed
13796
13797 \begin_layout Plain Layout
13798 InnerTag
13799 \end_layout
13800
13801 \end_inset
13802
13803  [FIXME] (Used only with XML-type formats.)
13804 \end_layout
13805
13806 \begin_layout Description
13807 \begin_inset Flex Code
13808 status collapsed
13809
13810 \begin_layout Plain Layout
13811 InPreamble
13812 \end_layout
13813
13814 \end_inset
13815
13816  [
13817 \begin_inset Flex Code
13818 status collapsed
13819
13820 \begin_layout Plain Layout
13821
13822 \emph on
13823 0
13824 \end_layout
13825
13826 \end_inset
13827
13828 ,
13829 \begin_inset space \thinspace{}
13830 \end_inset
13831
13832
13833 \begin_inset Flex Code
13834 status collapsed
13835
13836 \begin_layout Plain Layout
13837 1
13838 \end_layout
13839
13840 \end_inset
13841
13842 ] If 
13843 \begin_inset Flex Code
13844 status collapsed
13845
13846 \begin_layout Plain Layout
13847 1
13848 \end_layout
13849
13850 \end_inset
13851
13852 , marks the style as to be included in the document preamble and not in
13853  the document body.
13854  This is useful for document classes that want such information as the title
13855  and author to appear in the preamble.
13856  Note that this works only for styles for which the 
13857 \begin_inset Flex Code
13858 status collapsed
13859
13860 \begin_layout Plain Layout
13861 LatexType
13862 \end_layout
13863
13864 \end_inset
13865
13866  is 
13867 \begin_inset Flex Code
13868 status collapsed
13869
13870 \begin_layout Plain Layout
13871 Command
13872 \end_layout
13873
13874 \end_inset
13875
13876  or 
13877 \begin_inset Flex Code
13878 status collapsed
13879
13880 \begin_layout Plain Layout
13881 Paragraph
13882 \end_layout
13883
13884 \end_inset
13885
13886 .
13887 \end_layout
13888
13889 \begin_layout Description
13890 \begin_inset Flex Code
13891 status collapsed
13892
13893 \begin_layout Plain Layout
13894 InTitle
13895 \end_layout
13896
13897 \end_inset
13898
13899  [
13900 \begin_inset Flex Code
13901 status collapsed
13902
13903 \begin_layout Plain Layout
13904
13905 \emph on
13906 0
13907 \end_layout
13908
13909 \end_inset
13910
13911 ,
13912 \begin_inset space \thinspace{}
13913 \end_inset
13914
13915
13916 \begin_inset Flex Code
13917 status collapsed
13918
13919 \begin_layout Plain Layout
13920 1
13921 \end_layout
13922
13923 \end_inset
13924
13925 ] If 
13926 \begin_inset Flex Code
13927 status collapsed
13928
13929 \begin_layout Plain Layout
13930 1
13931 \end_layout
13932
13933 \end_inset
13934
13935 , marks the style as being part of a title block (see also the 
13936 \begin_inset Flex Code
13937 status collapsed
13938
13939 \begin_layout Plain Layout
13940 TitleLatexType
13941 \end_layout
13942
13943 \end_inset
13944
13945  and 
13946 \begin_inset Flex Code
13947 status collapsed
13948
13949 \begin_layout Plain Layout
13950 TitleLatexName
13951 \end_layout
13952
13953 \end_inset
13954
13955  global entries).
13956 \end_layout
13957
13958 \begin_layout Description
13959 \begin_inset Flex Code
13960 status collapsed
13961
13962 \begin_layout Plain Layout
13963 IsAutoNestedBy
13964 \end_layout
13965
13966 \end_inset
13967
13968  Includes a comma-separated list of layouts after which this one should
13969  be nested.
13970  Only makes sense with regard to nestable layouts (such as environments).
13971  Must be ended by 
13972 \begin_inset Quotes eld
13973 \end_inset
13974
13975
13976 \begin_inset Flex Code
13977 status collapsed
13978
13979 \begin_layout Plain Layout
13980 EndIsAutoNestedBy
13981 \end_layout
13982
13983 \end_inset
13984
13985
13986 \begin_inset Quotes erd
13987 \end_inset
13988
13989 .
13990  See also 
13991 \begin_inset Flex Code
13992 status collapsed
13993
13994 \begin_layout Plain Layout
13995 AutoNests
13996 \end_layout
13997
13998 \end_inset
13999
14000 .
14001 \end_layout
14002
14003 \begin_layout Description
14004 \begin_inset Flex Code
14005 status collapsed
14006
14007 \begin_layout Plain Layout
14008 IsTocCaption
14009 \end_layout
14010
14011 \end_inset
14012
14013  [
14014 \begin_inset Flex Code
14015 status collapsed
14016
14017 \begin_layout Plain Layout
14018
14019 \emph on
14020 0
14021 \end_layout
14022
14023 \end_inset
14024
14025 ,
14026 \begin_inset space \thinspace{}
14027 \end_inset
14028
14029
14030 \begin_inset Flex Code
14031 status collapsed
14032
14033 \begin_layout Plain Layout
14034 1
14035 \end_layout
14036
14037 \end_inset
14038
14039 ] If this is set to 1 and AddToToc is enabled, the paragraph adds a summary
14040  of its contents in its item in the table of contents.
14041  Otherwise, only the label, if it exists, appears.
14042 \end_layout
14043
14044 \begin_layout Description
14045 \begin_inset Flex Code
14046 status collapsed
14047
14048 \begin_layout Plain Layout
14049 ItemCommand
14050 \end_layout
14051
14052 \end_inset
14053
14054  [
14055 \begin_inset Flex Code
14056 status collapsed
14057
14058 \begin_layout Plain Layout
14059 string="item"
14060 \end_layout
14061
14062 \end_inset
14063
14064 ] The \SpecialChar LaTeX
14065  command sequence declaring an item in a list.
14066  The command is to be defined without the preceding backslash (the default
14067  is 
14068 \begin_inset Quotes eld
14069 \end_inset
14070
14071 item
14072 \begin_inset Quotes erd
14073 \end_inset
14074
14075 , resulting in 
14076 \begin_inset Flex Code
14077 status collapsed
14078
14079 \begin_layout Plain Layout
14080
14081 \backslash
14082 item
14083 \end_layout
14084
14085 \end_inset
14086
14087  in the \SpecialChar LaTeX
14088  output).
14089 \end_layout
14090
14091 \begin_layout Description
14092 \begin_inset Flex Code
14093 status collapsed
14094
14095 \begin_layout Plain Layout
14096 ItemSep
14097 \end_layout
14098
14099 \end_inset
14100
14101  [
14102 \begin_inset Flex Code
14103 status collapsed
14104
14105 \begin_layout Plain Layout
14106 float=0
14107 \end_layout
14108
14109 \end_inset
14110
14111 ] This provides extra space between paragraphs that have the same style.
14112  If you put other styles into an environment, each is separated with the
14113  environment's 
14114 \begin_inset Flex Code
14115 status collapsed
14116
14117 \begin_layout Plain Layout
14118 ParSep
14119 \end_layout
14120
14121 \end_inset
14122
14123 .
14124  But the whole items of the environment are additionally separated with
14125  this 
14126 \begin_inset Flex Code
14127 status collapsed
14128
14129 \begin_layout Plain Layout
14130 ItemSep
14131 \end_layout
14132
14133 \end_inset
14134
14135 .
14136  Note that this is a
14137 \emph on
14138  multiplier.
14139 \end_layout
14140
14141 \begin_layout Description
14142 \begin_inset Flex Code
14143 status collapsed
14144
14145 \begin_layout Plain Layout
14146 ItemTag
14147 \end_layout
14148
14149 \end_inset
14150
14151  [FIXME] (Used only with XML-type formats.)
14152 \end_layout
14153
14154 \begin_layout Description
14155 \begin_inset Flex Code
14156 status collapsed
14157
14158 \begin_layout Plain Layout
14159 KeepEmpty
14160 \end_layout
14161
14162 \end_inset
14163
14164  [
14165 \begin_inset Flex Code
14166 status collapsed
14167
14168 \begin_layout Plain Layout
14169
14170 \emph on
14171 0
14172 \end_layout
14173
14174 \end_inset
14175
14176 ,
14177 \begin_inset space \thinspace{}
14178 \end_inset
14179
14180
14181 \begin_inset Flex Code
14182 status collapsed
14183
14184 \begin_layout Plain Layout
14185 1
14186 \end_layout
14187
14188 \end_inset
14189
14190 ] Usually \SpecialChar LyX
14191  does not allow you to leave a paragraph empty, since it would
14192  lead to empty \SpecialChar LaTeX
14193  output.
14194  There are some cases where this could be desirable however: in a letter
14195  template, the required fields can be provided as empty fields, so that
14196  people do not forget them; in some special classes, a style can be used
14197  as some kind of break, which does not contain actual text.
14198 \end_layout
14199
14200 \begin_layout Description
14201 \begin_inset Flex Code
14202 status collapsed
14203
14204 \begin_layout Plain Layout
14205 LabelBottomsep
14206 \end_layout
14207
14208 \end_inset
14209
14210  [
14211 \begin_inset Flex Code
14212 status collapsed
14213
14214 \begin_layout Plain Layout
14215 float=0
14216 \end_layout
14217
14218 \end_inset
14219
14220 ] The vertical space between the label and the text body.
14221  Only used for labels that are above the text body (
14222 \begin_inset Flex Code
14223 status collapsed
14224
14225 \begin_layout Plain Layout
14226 Top_Environment
14227 \end_layout
14228
14229 \end_inset
14230
14231  and
14232 \begin_inset Newline newline
14233 \end_inset
14234
14235
14236 \begin_inset Flex Code
14237 status collapsed
14238
14239 \begin_layout Plain Layout
14240 Centered_Top_Environment
14241 \end_layout
14242
14243 \end_inset
14244
14245 ).
14246 \end_layout
14247
14248 \begin_layout Description
14249 \begin_inset Flex Code
14250 status collapsed
14251
14252 \begin_layout Plain Layout
14253 LabelCounter
14254 \end_layout
14255
14256 \end_inset
14257
14258  [
14259 \begin_inset Flex Code
14260 status collapsed
14261
14262 \begin_layout Plain Layout
14263 string=""
14264 \end_layout
14265
14266 \end_inset
14267
14268 ] The name of the counter for automatic numbering.
14269  In order to have the counter appear with your label, you will need to reference
14270  it in the 
14271 \begin_inset Flex Code
14272 status collapsed
14273
14274 \begin_layout Plain Layout
14275
14276 \family typewriter
14277 LabelString
14278 \end_layout
14279
14280 \end_inset
14281
14282 .
14283  This will work with 
14284 \begin_inset Flex Code
14285 status collapsed
14286
14287 \begin_layout Plain Layout
14288 LabelType
14289 \end_layout
14290
14291 \end_inset
14292
14293 s, 
14294 \begin_inset Flex Code
14295 status collapsed
14296
14297 \begin_layout Plain Layout
14298 Static
14299 \end_layout
14300
14301 \end_inset
14302
14303
14304 \begin_inset Flex Code
14305 status collapsed
14306
14307 \begin_layout Plain Layout
14308 Above
14309 \end_layout
14310
14311 \end_inset
14312
14313  and 
14314 \begin_inset Flex Code
14315 status collapsed
14316
14317 \begin_layout Plain Layout
14318 Centered
14319 \end_layout
14320
14321 \end_inset
14322
14323 , at least.
14324 \begin_inset Newline newline
14325 \end_inset
14326
14327 This 
14328 \emph on
14329 may
14330 \emph default
14331  also be given if 
14332 \begin_inset Flex Code
14333 status collapsed
14334
14335 \begin_layout Plain Layout
14336 LabelType
14337 \end_layout
14338
14339 \end_inset
14340
14341  is 
14342 \begin_inset Flex Code
14343 status collapsed
14344
14345 \begin_layout Plain Layout
14346 Enumerate
14347 \end_layout
14348
14349 \end_inset
14350
14351 , though this case is a bit complicated.
14352  Suppose you declare 
14353 \begin_inset Quotes eld
14354 \end_inset
14355
14356
14357 \begin_inset Flex Code
14358 status collapsed
14359
14360 \begin_layout Plain Layout
14361 LabelCounter myenum
14362 \end_layout
14363
14364 \end_inset
14365
14366
14367 \begin_inset Quotes erd
14368 \end_inset
14369
14370 .
14371  Then the actual counters used are 
14372 \begin_inset Flex Code
14373 status collapsed
14374
14375 \begin_layout Plain Layout
14376 myenumi
14377 \end_layout
14378
14379 \end_inset
14380
14381
14382 \begin_inset Flex Code
14383 status collapsed
14384
14385 \begin_layout Plain Layout
14386 myenumii
14387 \end_layout
14388
14389 \end_inset
14390
14391
14392 \begin_inset Flex Code
14393 status collapsed
14394
14395 \begin_layout Plain Layout
14396 myenumiii
14397 \end_layout
14398
14399 \end_inset
14400
14401  and 
14402 \begin_inset Flex Code
14403 status collapsed
14404
14405 \begin_layout Plain Layout
14406 myenumiv
14407 \end_layout
14408
14409 \end_inset
14410
14411 , much as in \SpecialChar LaTeX
14412 .
14413  These counters must all be declared separately.
14414 \begin_inset Newline newline
14415 \end_inset
14416
14417 See 
14418 \begin_inset CommandInset ref
14419 LatexCommand ref
14420 reference "subsec:Counters"
14421
14422 \end_inset
14423
14424  for details on counters.
14425 \end_layout
14426
14427 \begin_layout Description
14428 \begin_inset Flex Code
14429 status collapsed
14430
14431 \begin_layout Plain Layout
14432 LabelFont
14433 \end_layout
14434
14435 \end_inset
14436
14437  The font used for the label.
14438  See 
14439 \begin_inset CommandInset ref
14440 LatexCommand ref
14441 reference "subsec:Font-description"
14442
14443 \end_inset
14444
14445 .
14446 \end_layout
14447
14448 \begin_layout Description
14449 \begin_inset Flex Code
14450 status collapsed
14451
14452 \begin_layout Plain Layout
14453 LabelIndent
14454 \end_layout
14455
14456 \end_inset
14457
14458  [
14459 \begin_inset Flex Code
14460 status collapsed
14461
14462 \begin_layout Plain Layout
14463 string=""
14464 \end_layout
14465
14466 \end_inset
14467
14468 ] Text that indicates how far a label should be indented.
14469 \end_layout
14470
14471 \begin_layout Description
14472 \begin_inset Flex Code
14473 status collapsed
14474
14475 \begin_layout Plain Layout
14476 LabelSep
14477 \end_layout
14478
14479 \end_inset
14480
14481  [
14482 \begin_inset Flex Code
14483 status collapsed
14484
14485 \begin_layout Plain Layout
14486 string=""
14487 \end_layout
14488
14489 \end_inset
14490
14491 ] Text that indicates the amount of horizontal space between the label and
14492  the text body.
14493  Only used for labels that are not above the text body.
14494 \end_layout
14495
14496 \begin_layout Description
14497 \begin_inset Flex Code
14498 status collapsed
14499
14500 \begin_layout Plain Layout
14501 LabelString
14502 \end_layout
14503
14504 \end_inset
14505
14506  [
14507 \begin_inset Flex Code
14508 status collapsed
14509
14510 \begin_layout Plain Layout
14511 string=""
14512 \end_layout
14513
14514 \end_inset
14515
14516 ] The string used for the label.
14517  When 
14518 \begin_inset Flex Code
14519 status collapsed
14520
14521 \begin_layout Plain Layout
14522 LabelCounter
14523 \end_layout
14524
14525 \end_inset
14526
14527  is set, this string can be contain the special formatting commands described
14528  in 
14529 \begin_inset CommandInset ref
14530 LatexCommand ref
14531 reference "subsec:Counters"
14532
14533 \end_inset
14534
14535 .
14536 \end_layout
14537
14538 \begin_layout Description
14539 \begin_inset Flex Code
14540 status collapsed
14541
14542 \begin_layout Plain Layout
14543 LabelStringAppendix
14544 \end_layout
14545
14546 \end_inset
14547
14548  [
14549 \begin_inset Flex Code
14550 status collapsed
14551
14552 \begin_layout Plain Layout
14553 string=""
14554 \end_layout
14555
14556 \end_inset
14557
14558 ] This is used inside the appendix instead of
14559 \begin_inset Newline newline
14560 \end_inset
14561
14562
14563 \begin_inset Flex Code
14564 status collapsed
14565
14566 \begin_layout Plain Layout
14567 LabelString
14568 \end_layout
14569
14570 \end_inset
14571
14572 .
14573  Note that every 
14574 \begin_inset Flex Code
14575 status collapsed
14576
14577 \begin_layout Plain Layout
14578 LabelString
14579 \end_layout
14580
14581 \end_inset
14582
14583  statement resets
14584 \begin_inset Newline newline
14585 \end_inset
14586
14587
14588 \begin_inset Flex Code
14589 status collapsed
14590
14591 \begin_layout Plain Layout
14592 LabelStringAppendix
14593 \end_layout
14594
14595 \end_inset
14596
14597  too.
14598 \end_layout
14599
14600 \begin_layout Description
14601 \begin_inset Flex Code
14602 status collapsed
14603
14604 \begin_layout Plain Layout
14605 LabelTag
14606 \end_layout
14607
14608 \end_inset
14609
14610  [FIXME] (Used only with XML-type formats.)
14611 \end_layout
14612
14613 \begin_layout Description
14614 \begin_inset Flex Code
14615 status collapsed
14616
14617 \begin_layout Plain Layout
14618 LabelType
14619 \end_layout
14620
14621 \end_inset
14622
14623  [
14624 \begin_inset Flex Code
14625 status collapsed
14626
14627 \begin_layout Plain Layout
14628
14629 \emph on
14630 No_Label
14631 \emph default
14632 , Manual, Static, Above, 
14633 \begin_inset Newline newline
14634 \end_inset
14635
14636 Centered, Sensitive, Enumerate,
14637 \begin_inset Newline newline
14638 \end_inset
14639
14640 Itemize, Bibliography
14641 \end_layout
14642
14643 \end_inset
14644
14645 ]
14646 \end_layout
14647
14648 \begin_deeper
14649 \begin_layout Description
14650 \begin_inset Flex Code
14651 status collapsed
14652
14653 \begin_layout Plain Layout
14654 Manual
14655 \end_layout
14656
14657 \end_inset
14658
14659  means the label is the very first word (up to the first real blank).
14660  Use protected spaces if you want more than one word as the label.
14661  
14662 \end_layout
14663
14664 \begin_layout Description
14665 \begin_inset Flex Code
14666 status collapsed
14667
14668 \begin_layout Plain Layout
14669 Static
14670 \end_layout
14671
14672 \end_inset
14673
14674  means the label is simply what is declared as 
14675 \begin_inset Flex Code
14676 status collapsed
14677
14678 \begin_layout Plain Layout
14679 LabelString
14680 \end_layout
14681
14682 \end_inset
14683
14684 .
14685  This will be displayed 
14686 \begin_inset Quotes eld
14687 \end_inset
14688
14689 inline
14690 \begin_inset Quotes erd
14691 \end_inset
14692
14693 , at the beginning of the paragraph.
14694  If the 
14695 \begin_inset Flex Code
14696 status collapsed
14697
14698 \begin_layout Plain Layout
14699 LatexType
14700 \end_layout
14701
14702 \end_inset
14703
14704  is 
14705 \begin_inset Flex Code
14706 status collapsed
14707
14708 \begin_layout Plain Layout
14709 Environment
14710 \end_layout
14711
14712 \end_inset
14713
14714 , then it will be displayed only in the first paragraph of any sequence
14715  of paragraphs with the same 
14716 \begin_inset Flex Code
14717 status collapsed
14718
14719 \begin_layout Plain Layout
14720 Style
14721 \end_layout
14722
14723 \end_inset
14724
14725 .
14726 \end_layout
14727
14728 \begin_layout Description
14729 \begin_inset Flex Code
14730 status collapsed
14731
14732 \begin_layout Plain Layout
14733 Above
14734 \end_layout
14735
14736 \end_inset
14737
14738
14739 \begin_inset space ~
14740 \end_inset
14741
14742 and
14743 \begin_inset space ~
14744 \end_inset
14745
14746
14747 \begin_inset Flex Code
14748 status collapsed
14749
14750 \begin_layout Plain Layout
14751 Centered
14752 \end_layout
14753
14754 \end_inset
14755
14756  are special cases of 
14757 \begin_inset Flex Code
14758 status collapsed
14759
14760 \begin_layout Plain Layout
14761 Static
14762 \end_layout
14763
14764 \end_inset
14765
14766 .
14767  The label will be printed above the paragraph either at the beginning of
14768  the line or centered.
14769 \end_layout
14770
14771 \begin_layout Description
14772 \begin_inset Flex Code
14773 status collapsed
14774
14775 \begin_layout Plain Layout
14776 Sensitive
14777 \end_layout
14778
14779 \end_inset
14780
14781  is a special case for the caption-labels 
14782 \begin_inset Quotes eld
14783 \end_inset
14784
14785 Figure
14786 \begin_inset Quotes erd
14787 \end_inset
14788
14789  and 
14790 \begin_inset Quotes eld
14791 \end_inset
14792
14793 Table
14794 \begin_inset Quotes erd
14795 \end_inset
14796
14797 .
14798 \begin_inset Newline newline
14799 \end_inset
14800
14801
14802 \begin_inset Flex Code
14803 status collapsed
14804
14805 \begin_layout Plain Layout
14806 Sensitive
14807 \end_layout
14808
14809 \end_inset
14810
14811  means the (hardcoded) label string depends on the kind of float: It is
14812  hardcoded to be `FloatType N', where N is the value of the counter associated
14813  with the float.
14814  For the case that a caption is inserted outside of a float the 
14815 \begin_inset Flex Code
14816 status collapsed
14817
14818 \begin_layout Plain Layout
14819 LabelString
14820 \end_layout
14821
14822 \end_inset
14823
14824  will appear as 
14825 \begin_inset Quotes eld
14826 \end_inset
14827
14828 Senseless!
14829 \begin_inset Quotes erd
14830 \end_inset
14831
14832 .
14833 \end_layout
14834
14835 \begin_layout Description
14836 \begin_inset Flex Code
14837 status collapsed
14838
14839 \begin_layout Plain Layout
14840 Enumerate
14841 \end_layout
14842
14843 \end_inset
14844
14845  produces the usual sort of enumeration labels.
14846  The number type needs to be set in the 
14847 \family sans
14848 Counter
14849 \family default
14850 , see 
14851 \begin_inset CommandInset ref
14852 LatexCommand ref
14853 reference "subsec:Counters"
14854
14855 \end_inset
14856
14857 .
14858 \end_layout
14859
14860 \begin_layout Description
14861 \begin_inset Flex Code
14862 status collapsed
14863
14864 \begin_layout Plain Layout
14865 Itemize
14866 \end_layout
14867
14868 \end_inset
14869
14870  produces various bullets at the different levels.
14871  The bullet types displayed can be set via 
14872 \begin_inset Flex Noun
14873 status collapsed
14874
14875 \begin_layout Plain Layout
14876 Document\SpecialChar menuseparator
14877 Settings\SpecialChar menuseparator
14878 Bullets
14879 \end_layout
14880
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 Bibliography
14892 \end_layout
14893
14894 \end_inset
14895
14896  should be used only with 
14897 \begin_inset Flex Code
14898 status collapsed
14899
14900 \begin_layout Plain Layout
14901 LatexType BibEnvironment
14902 \end_layout
14903
14904 \end_inset
14905
14906 .
14907 \end_layout
14908
14909 \end_deeper
14910 \begin_layout Description
14911 \begin_inset Flex Code
14912 status collapsed
14913
14914 \begin_layout Plain Layout
14915 LangPreamble
14916 \end_layout
14917
14918 \end_inset
14919
14920  Note that this will completely override any prior 
14921 \begin_inset Flex Code
14922 status collapsed
14923
14924 \begin_layout Plain Layout
14925 LangPreamble
14926 \end_layout
14927
14928 \end_inset
14929
14930  declaration for this style.
14931  Must end with 
14932 \begin_inset Quotes eld
14933 \end_inset
14934
14935
14936 \begin_inset Flex Code
14937 status collapsed
14938
14939 \begin_layout Plain Layout
14940 EndLangPreamble
14941 \end_layout
14942
14943 \end_inset
14944
14945
14946 \begin_inset Quotes erd
14947 \end_inset
14948
14949 .
14950  See 
14951 \begin_inset CommandInset ref
14952 LatexCommand ref
14953 reference "subsec:I18n"
14954
14955 \end_inset
14956
14957  for details on its use.
14958 \end_layout
14959
14960 \begin_layout Description
14961 \begin_inset Flex Code
14962 status collapsed
14963
14964 \begin_layout Plain Layout
14965 LatexName
14966 \end_layout
14967
14968 \end_inset
14969
14970  [
14971 \begin_inset Flex Code
14972 status collapsed
14973
14974 \begin_layout Plain Layout
14975 <name>
14976 \end_layout
14977
14978 \end_inset
14979
14980 ] The name of the corresponding \SpecialChar LaTeX
14981  stuff.
14982  Either the environment or command name.
14983 \end_layout
14984
14985 \begin_layout Description
14986 \begin_inset Flex Code
14987 status collapsed
14988
14989 \begin_layout Plain Layout
14990 LatexParam
14991 \end_layout
14992
14993 \end_inset
14994
14995  [
14996 \begin_inset Flex Code
14997 status collapsed
14998
14999 \begin_layout Plain Layout
15000 <parameter>
15001 \end_layout
15002
15003 \end_inset
15004
15005 ] An optional parameter for the corresponding 
15006 \begin_inset Flex Code
15007 status collapsed
15008
15009 \begin_layout Plain Layout
15010 LatexName
15011 \end_layout
15012
15013 \end_inset
15014
15015  stuff.
15016  This parameter cannot be changed from within \SpecialChar LyX
15017  (use 
15018 \begin_inset Flex Code
15019 status collapsed
15020
15021 \begin_layout Plain Layout
15022 Argument
15023 \end_layout
15024
15025 \end_inset
15026
15027  for customizable parameters).
15028  This will be output as is after all \SpecialChar LaTeX
15029  
15030 \begin_inset Flex Code
15031 status collapsed
15032
15033 \begin_layout Plain Layout
15034 Argument
15035 \end_layout
15036
15037 \end_inset
15038
15039 s.
15040 \end_layout
15041
15042 \begin_layout Description
15043 \begin_inset Flex Code
15044 status collapsed
15045
15046 \begin_layout Plain Layout
15047 LatexType
15048 \end_layout
15049
15050 \end_inset
15051
15052  [
15053 \begin_inset Flex Code
15054 status collapsed
15055
15056 \begin_layout Plain Layout
15057
15058 \emph on
15059 Paragraph
15060 \emph default
15061 , Command, Environment, Item_Environment,
15062 \begin_inset Newline newline
15063 \end_inset
15064
15065 List_Environment, Bib_Environment
15066 \end_layout
15067
15068 \end_inset
15069
15070 ] How the style should be translated into \SpecialChar LaTeX
15071 .
15072 \begin_inset Foot
15073 status collapsed
15074
15075 \begin_layout Plain Layout
15076 \begin_inset Flex Code
15077 status collapsed
15078
15079 \begin_layout Plain Layout
15080 LatexType
15081 \end_layout
15082
15083 \end_inset
15084
15085  is perhaps a bit misleading, since these rules apply to SGML classes, too.
15086  Visit the SGML class files for specific examples.
15087 \end_layout
15088
15089 \end_inset
15090
15091
15092 \end_layout
15093
15094 \begin_deeper
15095 \begin_layout Description
15096 \begin_inset Flex Code
15097 status collapsed
15098
15099 \begin_layout Plain Layout
15100 Paragraph
15101 \end_layout
15102
15103 \end_inset
15104
15105  means nothing special.
15106 \end_layout
15107
15108 \begin_layout Description
15109 \begin_inset Flex Code
15110 status collapsed
15111
15112 \begin_layout Plain Layout
15113 Command
15114 \end_layout
15115
15116 \end_inset
15117
15118  means 
15119 \begin_inset Flex Code
15120 status collapsed
15121
15122 \begin_layout Plain Layout
15123
15124 \backslash
15125
15126 \emph on
15127 LatexName
15128 \emph default
15129 {\SpecialChar ldots
15130 }
15131 \end_layout
15132
15133 \end_inset
15134
15135 .
15136 \end_layout
15137
15138 \begin_layout Description
15139 \begin_inset Flex Code
15140 status collapsed
15141
15142 \begin_layout Plain Layout
15143 Environment
15144 \end_layout
15145
15146 \end_inset
15147
15148  means 
15149 \begin_inset Flex Code
15150 status collapsed
15151
15152 \begin_layout Plain Layout
15153
15154 \backslash
15155 begin{
15156 \emph on
15157 LatexName
15158 \emph default
15159 }\SpecialChar ldots
15160
15161 \backslash
15162 end{
15163 \emph on
15164 LatexName
15165 \emph default
15166 }
15167 \end_layout
15168
15169 \end_inset
15170
15171 .
15172  
15173 \end_layout
15174
15175 \begin_layout Description
15176 \begin_inset Flex Code
15177 status collapsed
15178
15179 \begin_layout Plain Layout
15180 Item_Environment
15181 \end_layout
15182
15183 \end_inset
15184
15185  is the same as 
15186 \begin_inset Flex Code
15187 status collapsed
15188
15189 \begin_layout Plain Layout
15190 Environment
15191 \end_layout
15192
15193 \end_inset
15194
15195 , except that an 
15196 \begin_inset Flex Code
15197 status collapsed
15198
15199 \begin_layout Plain Layout
15200
15201 \backslash
15202 item
15203 \end_layout
15204
15205 \end_inset
15206
15207  is generated for each paragraph of this environment.
15208  
15209 \end_layout
15210
15211 \begin_layout Description
15212 \begin_inset Flex Code
15213 status collapsed
15214
15215 \begin_layout Plain Layout
15216 List_Environment
15217 \end_layout
15218
15219 \end_inset
15220
15221  is the same as 
15222 \begin_inset Flex Code
15223 status collapsed
15224
15225 \begin_layout Plain Layout
15226 Item_Environment
15227 \end_layout
15228
15229 \end_inset
15230
15231 , except that
15232 \begin_inset Newline newline
15233 \end_inset
15234
15235
15236 \begin_inset Flex Code
15237 status collapsed
15238
15239 \begin_layout Plain Layout
15240 LabelWidthString
15241 \end_layout
15242
15243 \end_inset
15244
15245  is passed as an argument to the environment.
15246 \begin_inset Newline newline
15247 \end_inset
15248
15249
15250 \begin_inset Flex Code
15251 status collapsed
15252
15253 \begin_layout Plain Layout
15254 LabelWidthString
15255 \end_layout
15256
15257 \end_inset
15258
15259  can be defined in the 
15260 \begin_inset Flex Noun
15261 status collapsed
15262
15263 \begin_layout Plain Layout
15264 Edit\SpecialChar menuseparator
15265 Paragraph
15266 \begin_inset space ~
15267 \end_inset
15268
15269 settings
15270 \end_layout
15271
15272 \end_inset
15273
15274  dialog.
15275 \end_layout
15276
15277 \begin_layout Description
15278 \begin_inset Flex Code
15279 status collapsed
15280
15281 \begin_layout Plain Layout
15282 Bib_Environment
15283 \end_layout
15284
15285 \end_inset
15286
15287  is like 
15288 \begin_inset Flex Code
15289 status collapsed
15290
15291 \begin_layout Plain Layout
15292 Environment
15293 \end_layout
15294
15295 \end_inset
15296
15297  but adds the necessary mandatory argument (the longest label) to the begin
15298  statement of the bibliography environment:
15299 \begin_inset Newline newline
15300 \end_inset
15301
15302
15303 \begin_inset Flex Code
15304 status collapsed
15305
15306 \begin_layout Plain Layout
15307
15308 \backslash
15309 begin{thebibliography}{99}
15310 \end_layout
15311
15312 \end_inset
15313
15314 .
15315  It is therefore only useful for bibliography environments.
15316  The default longest label 
15317 \begin_inset Quotes eld
15318 \end_inset
15319
15320 99
15321 \begin_inset Quotes erd
15322 \end_inset
15323
15324  can be changed by the user in the paragraph settings of a bibliography
15325  item.
15326 \end_layout
15327
15328 \begin_layout Standard
15329 Putting the last few things together, the \SpecialChar LaTeX
15330  output will be either: 
15331 \end_layout
15332
15333 \begin_layout LyX-Code
15334
15335 \backslash
15336 LatexName[LatexParam]{\SpecialChar ldots
15337 }
15338 \end_layout
15339
15340 \begin_layout Standard
15341 or: 
15342 \end_layout
15343
15344 \begin_layout LyX-Code
15345
15346 \backslash
15347 begin{LatexName}[LatexParam] \SpecialChar ldots
15348  
15349 \backslash
15350 end{LatexName}.
15351 \end_layout
15352
15353 \begin_layout Standard
15354 depending upon the \SpecialChar LaTeX
15355  type.
15356 \end_layout
15357
15358 \end_deeper
15359 \begin_layout Description
15360 \begin_inset Flex Code
15361 status collapsed
15362
15363 \begin_layout Plain Layout
15364 LeftDelim
15365 \end_layout
15366
15367 \end_inset
15368
15369  [
15370 \begin_inset Flex Code
15371 status collapsed
15372
15373 \begin_layout Plain Layout
15374 string
15375 \end_layout
15376
15377 \end_inset
15378
15379 ] A string that is put at the beginning of the style content.
15380  A line break in the output can be indicated by 
15381 \begin_inset Flex Code
15382 status collapsed
15383
15384 \begin_layout Plain Layout
15385 <br/>
15386 \end_layout
15387
15388 \end_inset
15389
15390 .
15391 \end_layout
15392
15393 \begin_layout Description
15394 \begin_inset Flex Code
15395 status collapsed
15396
15397 \begin_layout Plain Layout
15398 LeftMargin
15399 \end_layout
15400
15401 \end_inset
15402
15403  [
15404 \begin_inset Flex Code
15405 status collapsed
15406
15407 \begin_layout Plain Layout
15408 string=""
15409 \end_layout
15410
15411 \end_inset
15412
15413 ] If you put styles into environments, the different 
15414 \begin_inset Flex Code
15415 status collapsed
15416
15417 \begin_layout Plain Layout
15418 LeftMargin
15419 \end_layout
15420
15421 \end_inset
15422
15423  are not simply added, but added with a factor 
15424 \begin_inset Formula $\frac{4}{\mathrm{depth}+4}$
15425 \end_inset
15426
15427 .
15428  Note that this parameter is also used when 
15429 \begin_inset Flex Code
15430 status collapsed
15431
15432 \begin_layout Plain Layout
15433 Margin
15434 \end_layout
15435
15436 \end_inset
15437
15438  is defined as 
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443 Manual
15444 \end_layout
15445
15446 \end_inset
15447
15448  or 
15449 \begin_inset Flex Code
15450 status collapsed
15451
15452 \begin_layout Plain Layout
15453 Dynamic
15454 \end_layout
15455
15456 \end_inset
15457
15458 .
15459  Then it is added to the manual or dynamic margin.
15460 \begin_inset Newline newline
15461 \end_inset
15462
15463 For example 
15464 \begin_inset Quotes eld
15465 \end_inset
15466
15467
15468 \begin_inset Flex Code
15469 status collapsed
15470
15471 \begin_layout Plain Layout
15472 MM
15473 \end_layout
15474
15475 \end_inset
15476
15477
15478 \begin_inset Quotes erd
15479 \end_inset
15480
15481  means that the paragraph is indented with the width of 
15482 \begin_inset Quotes eld
15483 \end_inset
15484
15485
15486 \begin_inset Flex Code
15487 status collapsed
15488
15489 \begin_layout Plain Layout
15490 MM
15491 \end_layout
15492
15493 \end_inset
15494
15495
15496 \begin_inset Quotes erd
15497 \end_inset
15498
15499  in the normal font.
15500  You can get a negative width by prefixing the string with 
15501 \begin_inset Quotes eld
15502 \end_inset
15503
15504
15505 \begin_inset Flex Code
15506 status collapsed
15507
15508 \begin_layout Plain Layout
15509 -
15510 \end_layout
15511
15512 \end_inset
15513
15514
15515 \begin_inset Quotes erd
15516 \end_inset
15517
15518 .
15519  This way was chosen so that the look is the same with each used screen
15520  font.
15521 \end_layout
15522
15523 \begin_layout Description
15524 \begin_inset Flex Code
15525 status collapsed
15526
15527 \begin_layout Plain Layout
15528 Margin
15529 \end_layout
15530
15531 \end_inset
15532
15533  [
15534 \begin_inset Flex Code
15535 status collapsed
15536
15537 \begin_layout Plain Layout
15538
15539 \emph on
15540 Static
15541 \emph default
15542 , Manual, Dynamic, First_Dynamic, Right_Address_Box
15543 \end_layout
15544
15545 \end_inset
15546
15547
15548 \begin_inset Newline newline
15549 \end_inset
15550
15551 The kind of margin that the style has on the left side.
15552 \end_layout
15553
15554 \begin_deeper
15555 \begin_layout Description
15556 \begin_inset Flex Code
15557 status collapsed
15558
15559 \begin_layout Plain Layout
15560 Static
15561 \end_layout
15562
15563 \end_inset
15564
15565  just means a fixed margin.
15566 \end_layout
15567
15568 \begin_layout Description
15569 \begin_inset Flex Code
15570 status collapsed
15571
15572 \begin_layout Plain Layout
15573 Manual
15574 \end_layout
15575
15576 \end_inset
15577
15578  means that the left margin depends on the string entered in the 
15579 \begin_inset Flex Noun
15580 status collapsed
15581
15582 \begin_layout Plain Layout
15583 Edit\SpecialChar menuseparator
15584 Paragraph
15585 \begin_inset space ~
15586 \end_inset
15587
15588 Settings
15589 \end_layout
15590
15591 \end_inset
15592
15593  dialog.
15594  This is used to typeset nice lists without tabulators.
15595 \end_layout
15596
15597 \begin_layout Description
15598 \begin_inset Flex Code
15599 status collapsed
15600
15601 \begin_layout Plain Layout
15602 Dynamic
15603 \end_layout
15604
15605 \end_inset
15606
15607  means that the margin depends on the size of the label.
15608  This is used for automatic enumerated headlines.
15609  It is obvious that the headline 
15610 \begin_inset Quotes eld
15611 \end_inset
15612
15613 5.4.3.2.1 Very long headline
15614 \begin_inset Quotes erd
15615 \end_inset
15616
15617  must have a wider left margin (as wide as 
15618 \begin_inset Quotes eld
15619 \end_inset
15620
15621 5.4.3.2.1
15622 \begin_inset Quotes erd
15623 \end_inset
15624
15625  plus the space) than 
15626 \begin_inset Quotes eld
15627 \end_inset
15628
15629 3.2 Very long headline
15630 \begin_inset Quotes erd
15631 \end_inset
15632
15633 , even if standard 
15634 \begin_inset Quotes eld
15635 \end_inset
15636
15637 word processors
15638 \begin_inset Quotes erd
15639 \end_inset
15640
15641  are not able to do this.
15642 \end_layout
15643
15644 \begin_layout Description
15645 \begin_inset Flex Code
15646 status collapsed
15647
15648 \begin_layout Plain Layout
15649 First_Dynamic
15650 \end_layout
15651
15652 \end_inset
15653
15654  is similar, but only the very first row of the paragraph is dynamic, while
15655  the others are static; this is used, for example, for descriptions.
15656 \end_layout
15657
15658 \begin_layout Description
15659 \begin_inset Flex Code
15660 status collapsed
15661
15662 \begin_layout Plain Layout
15663 Right_Address_Box
15664 \end_layout
15665
15666 \end_inset
15667
15668  means the margin is chosen in a way that the longest row of this paragraph
15669  fits to the right margin.
15670  This is used to typeset an address on the right edge of the page.
15671 \end_layout
15672
15673 \end_deeper
15674 \begin_layout Description
15675 \begin_inset Flex Code
15676 status collapsed
15677
15678 \begin_layout Plain Layout
15679 NeedProtect
15680 \end_layout
15681
15682 \end_inset
15683
15684  [
15685 \begin_inset Flex Code
15686 status collapsed
15687
15688 \begin_layout Plain Layout
15689
15690 \emph on
15691 0
15692 \end_layout
15693
15694 \end_inset
15695
15696 ,
15697 \begin_inset space \thinspace{}
15698 \end_inset
15699
15700
15701 \begin_inset Flex Code
15702 status collapsed
15703
15704 \begin_layout Plain Layout
15705 1
15706 \end_layout
15707
15708 \end_inset
15709
15710 ] Whether fragile commands in this style should be 
15711 \begin_inset Flex Code
15712 status collapsed
15713
15714 \begin_layout Plain Layout
15715
15716 \backslash
15717 protect
15718 \end_layout
15719
15720 \end_inset
15721
15722 'ed.
15723  (Note: This is 
15724 \emph on
15725 not
15726 \emph default
15727  whether this command should itself be protected.)
15728 \change_inserted -712698321 1523696949
15729
15730 \end_layout
15731
15732 \begin_layout Description
15733
15734 \change_inserted -712698321 1552395557
15735 \begin_inset Flex Code
15736 status collapsed
15737
15738 \begin_layout Plain Layout
15739
15740 \change_inserted -712698321 1523696950
15741 NeedCProtect
15742 \end_layout
15743
15744 \end_inset
15745
15746  [
15747 \begin_inset Flex Code
15748 status collapsed
15749
15750 \begin_layout Plain Layout
15751
15752 \change_inserted -712698321 1523696950
15753
15754 \emph on
15755 0
15756 \end_layout
15757
15758 \end_inset
15759
15760 ,
15761 \begin_inset space \thinspace{}
15762 \end_inset
15763
15764
15765 \begin_inset Flex Code
15766 status collapsed
15767
15768 \begin_layout Plain Layout
15769
15770 \change_inserted -712698321 1523696950
15771 1
15772 \end_layout
15773
15774 \end_inset
15775
15776 ] This causes macros that contain this layout to be protected with 
15777 \begin_inset Flex Code
15778 status collapsed
15779
15780 \begin_layout Plain Layout
15781
15782 \change_inserted -712698321 1523696950
15783
15784 \backslash
15785 cprotect
15786 \end_layout
15787
15788 \end_inset
15789
15790  (cf.
15791  package 
15792 \family sans
15793 cprotect
15794 \family default
15795 ) if necessary and thus allows (some) verbatim stuff in macros.
15796 \end_layout
15797
15798 \begin_layout Description
15799
15800 \change_inserted -712698321 1552395844
15801 \begin_inset Flex Code
15802 status collapsed
15803
15804 \begin_layout Plain Layout
15805
15806 \change_inserted -712698321 1552395561
15807 NeedMBoxProtect
15808 \end_layout
15809
15810 \end_inset
15811
15812  [
15813 \begin_inset Flex Code
15814 status collapsed
15815
15816 \begin_layout Plain Layout
15817
15818 \change_inserted -712698321 1552395557
15819
15820 \emph on
15821 0
15822 \end_layout
15823
15824 \end_inset
15825
15826 ,
15827 \begin_inset space \thinspace{}
15828 \end_inset
15829
15830
15831 \begin_inset Flex Code
15832 status collapsed
15833
15834 \begin_layout Plain Layout
15835
15836 \change_inserted -712698321 1552395557
15837 1
15838 \end_layout
15839
15840 \end_inset
15841
15842 ] Whether specific commands in this style (such as 
15843 \begin_inset Flex Code
15844 status collapsed
15845
15846 \begin_layout Plain Layout
15847
15848 \change_inserted -712698321 1552395655
15849
15850 \backslash
15851 cite
15852 \change_unchanged
15853
15854 \end_layout
15855
15856 \end_inset
15857
15858  and 
15859 \begin_inset Flex Code
15860 status collapsed
15861
15862 \begin_layout Plain Layout
15863
15864 \change_inserted -712698321 1552395661
15865
15866 \backslash
15867 ref
15868 \change_unchanged
15869
15870 \end_layout
15871
15872 \end_inset
15873
15874 ) should be protected in an 
15875 \begin_inset Flex Code
15876 status collapsed
15877
15878 \begin_layout Plain Layout
15879
15880 \change_inserted -712698321 1552395631
15881
15882 \backslash
15883 mbox
15884 \change_unchanged
15885
15886 \end_layout
15887
15888 \end_inset
15889
15890 .
15891  This is particularly needed for styles that draw on 
15892 \family sans
15893 ulem
15894 \family default
15895  or 
15896 \family sans
15897 soul
15898 \family default
15899  commands which parse their content in complex ways.
15900 \change_unchanged
15901
15902 \end_layout
15903
15904 \begin_layout Description
15905 \begin_inset Flex Code
15906 status collapsed
15907
15908 \begin_layout Plain Layout
15909 Newline
15910 \end_layout
15911
15912 \end_inset
15913
15914  [
15915 \begin_inset Flex Code
15916 status collapsed
15917
15918 \begin_layout Plain Layout
15919 0
15920 \end_layout
15921
15922 \end_inset
15923
15924 ,
15925 \begin_inset space \thinspace{}
15926 \end_inset
15927
15928
15929 \begin_inset Flex Code
15930 status collapsed
15931
15932 \begin_layout Plain Layout
15933
15934 \emph on
15935 1
15936 \end_layout
15937
15938 \end_inset
15939
15940 ] Whether newlines are translated into \SpecialChar LaTeX
15941  newlines (
15942 \begin_inset Flex Code
15943 status collapsed
15944
15945 \begin_layout Plain Layout
15946
15947 \backslash
15948
15949 \backslash
15950
15951 \end_layout
15952
15953 \end_inset
15954
15955 ) or not.
15956  The translation can be switched off to allow more comfortable \SpecialChar LaTeX
15957  editing
15958  inside \SpecialChar LyX
15959 .
15960 \end_layout
15961
15962 \begin_layout Description
15963 \begin_inset Flex Code
15964 status collapsed
15965
15966 \begin_layout Plain Layout
15967 NextNoIndent
15968 \end_layout
15969
15970 \end_inset
15971
15972  [
15973 \begin_inset Flex Code
15974 status collapsed
15975
15976 \begin_layout Plain Layout
15977
15978 \emph on
15979 0
15980 \end_layout
15981
15982 \end_inset
15983
15984 ,
15985 \begin_inset space \thinspace{}
15986 \end_inset
15987
15988
15989 \begin_inset Flex Code
15990 status collapsed
15991
15992 \begin_layout Plain Layout
15993 1
15994 \end_layout
15995
15996 \end_inset
15997
15998 ] If set to true, and if 
15999 \begin_inset Flex Code
16000 status collapsed
16001
16002 \begin_layout Plain Layout
16003 DefaultStyle
16004 \end_layout
16005
16006 \end_inset
16007
16008  (usually 
16009 \begin_inset Flex Code
16010 status collapsed
16011
16012 \begin_layout Plain Layout
16013 Standard
16014 \end_layout
16015
16016 \end_inset
16017
16018 ) paragraphs are being indented, then the indentation of such a paragraph
16019  following one of this type will be suppressed.
16020  (So this will not affect the display of non-default paragraphs.)
16021 \end_layout
16022
16023 \begin_layout Description
16024 \begin_inset Flex Code
16025 status collapsed
16026
16027 \begin_layout Plain Layout
16028 ObsoletedBy
16029 \end_layout
16030
16031 \end_inset
16032
16033  [
16034 \begin_inset Flex Code
16035 status collapsed
16036
16037 \begin_layout Plain Layout
16038 <name>
16039 \end_layout
16040
16041 \end_inset
16042
16043 ] Name of a style that has replaced this style.
16044  This is used to rename a style, while keeping backward compatibility.
16045 \end_layout
16046
16047 \begin_layout Description
16048 \begin_inset Flex Code
16049 status collapsed
16050
16051 \begin_layout Plain Layout
16052 ParagraphGroup
16053 \end_layout
16054
16055 \end_inset
16056
16057  [
16058 \begin_inset Flex Code
16059 status collapsed
16060
16061 \begin_layout Plain Layout
16062 0
16063 \end_layout
16064
16065 \end_inset
16066
16067 ,
16068 \begin_inset space \thinspace{}
16069 \end_inset
16070
16071
16072 \begin_inset Flex Code
16073 status collapsed
16074
16075 \begin_layout Plain Layout
16076 1
16077 \end_layout
16078
16079 \end_inset
16080
16081 ] Determines whether consecutive paragraphs of the same type are treated
16082  as belonging together.
16083  This has the effect that the 
16084 \begin_inset Flex Code
16085 status collapsed
16086
16087 \begin_layout Plain Layout
16088 GuiLabel
16089 \end_layout
16090
16091 \end_inset
16092
16093  is only printed once before such a group.
16094  By default, this is true for 
16095 \begin_inset Flex Code
16096 status collapsed
16097
16098 \begin_layout Plain Layout
16099 LaTeXType
16100 \end_layout
16101
16102 \end_inset
16103
16104  
16105 \begin_inset Flex Code
16106 status collapsed
16107
16108 \begin_layout Plain Layout
16109 Environment
16110 \end_layout
16111
16112 \end_inset
16113
16114  and 
16115 \begin_inset Flex Code
16116 status collapsed
16117
16118 \begin_layout Plain Layout
16119 Bib_Environment
16120 \end_layout
16121
16122 \end_inset
16123
16124  and false for all other types.
16125 \end_layout
16126
16127 \begin_layout Description
16128 \begin_inset Flex Code
16129 status collapsed
16130
16131 \begin_layout Plain Layout
16132 ParbreakIsNewline
16133 \end_layout
16134
16135 \end_inset
16136
16137  [
16138 \begin_inset Flex Code
16139 status collapsed
16140
16141 \begin_layout Plain Layout
16142
16143 \emph on
16144 0
16145 \end_layout
16146
16147 \end_inset
16148
16149 ,
16150 \begin_inset space \thinspace{}
16151 \end_inset
16152
16153
16154 \begin_inset Flex Code
16155 status collapsed
16156
16157 \begin_layout Plain Layout
16158 1
16159 \end_layout
16160
16161 \end_inset
16162
16163 ] Indicates that paragraphs will not be separated by an empty line in \SpecialChar LaTeX
16164  output,
16165  but only by a line break; together with 
16166 \begin_inset Flex Code
16167 status collapsed
16168
16169 \begin_layout Plain Layout
16170 PassThru 1
16171 \end_layout
16172
16173 \end_inset
16174
16175 , this allows to emulate a plain text editor (like the ERT inset).
16176 \end_layout
16177
16178 \begin_layout Description
16179 \begin_inset Flex Code
16180 status collapsed
16181
16182 \begin_layout Plain Layout
16183 ParIndent
16184 \end_layout
16185
16186 \end_inset
16187
16188  [
16189 \begin_inset Flex Code
16190 status collapsed
16191
16192 \begin_layout Plain Layout
16193 string=""
16194 \end_layout
16195
16196 \end_inset
16197
16198 ] The indent of the very first line of a paragraph.
16199  The
16200 \begin_inset Newline newline
16201 \end_inset
16202
16203
16204 \begin_inset Flex Code
16205 status collapsed
16206
16207 \begin_layout Plain Layout
16208 Parindent
16209 \end_layout
16210
16211 \end_inset
16212
16213  will be fixed for a certain style.
16214  The exception is the default style, since the indentation for these paragraphs
16215  can be prohibited with 
16216 \begin_inset Flex Code
16217 status collapsed
16218
16219 \begin_layout Plain Layout
16220 NextNoIndent
16221 \end_layout
16222
16223 \end_inset
16224
16225 .
16226  Also, 
16227 \begin_inset Flex Code
16228 status collapsed
16229
16230 \begin_layout Plain Layout
16231 Standard
16232 \end_layout
16233
16234 \end_inset
16235
16236  style paragraphs inside environments use the 
16237 \begin_inset Flex Code
16238 status collapsed
16239
16240 \begin_layout Plain Layout
16241 Parindent
16242 \end_layout
16243
16244 \end_inset
16245
16246  of the environment, not their native one.
16247  For example, 
16248 \begin_inset Flex Code
16249 status collapsed
16250
16251 \begin_layout Plain Layout
16252 Standard
16253 \end_layout
16254
16255 \end_inset
16256
16257  paragraphs inside an enumeration are not indented.
16258 \end_layout
16259
16260 \begin_layout Description
16261 \begin_inset Flex Code
16262 status collapsed
16263
16264 \begin_layout Plain Layout
16265 ParSep
16266 \end_layout
16267
16268 \end_inset
16269
16270  [
16271 \begin_inset Flex Code
16272 status collapsed
16273
16274 \begin_layout Plain Layout
16275 float=0
16276 \end_layout
16277
16278 \end_inset
16279
16280 ] The vertical space between two paragraphs of this style.
16281 \end_layout
16282
16283 \begin_layout Description
16284 \begin_inset Flex Code
16285 status collapsed
16286
16287 \begin_layout Plain Layout
16288 Parskip
16289 \end_layout
16290
16291 \end_inset
16292
16293  [
16294 \begin_inset Flex Code
16295 status collapsed
16296
16297 \begin_layout Plain Layout
16298 float=0
16299 \end_layout
16300
16301 \end_inset
16302
16303 ] \SpecialChar LyX
16304  allows the user to choose either 
16305 \begin_inset Quotes eld
16306 \end_inset
16307
16308 indent
16309 \begin_inset Quotes erd
16310 \end_inset
16311
16312  or 
16313 \begin_inset Quotes eld
16314 \end_inset
16315
16316 skip
16317 \begin_inset Quotes erd
16318 \end_inset
16319
16320  to separate paragraphs.
16321  When 
16322 \begin_inset Quotes eld
16323 \end_inset
16324
16325 indent
16326 \begin_inset Quotes erd
16327 \end_inset
16328
16329  is chosen, 
16330 \begin_inset Flex Code
16331 status collapsed
16332
16333 \begin_layout Plain Layout
16334 Parskip
16335 \end_layout
16336
16337 \end_inset
16338
16339  is ignored.
16340  When 
16341 \begin_inset Quotes eld
16342 \end_inset
16343
16344 skip
16345 \begin_inset Quotes erd
16346 \end_inset
16347
16348  is chosen, 
16349 \begin_inset Flex Code
16350 status collapsed
16351
16352 \begin_layout Plain Layout
16353 ParIndent
16354 \end_layout
16355
16356 \end_inset
16357
16358  is ignored and all paragraphs are separated by the 
16359 \begin_inset Flex Code
16360 status collapsed
16361
16362 \begin_layout Plain Layout
16363 Parskip
16364 \end_layout
16365
16366 \end_inset
16367
16368  argument.
16369  The vertical space is calculated with 
16370 \begin_inset Flex Code
16371 status collapsed
16372
16373 \begin_layout Plain Layout
16374 Parskip
16375 \begin_inset space ~
16376 \end_inset
16377
16378 * DefaultHeight
16379 \end_layout
16380
16381 \end_inset
16382
16383  where 
16384 \begin_inset Flex Code
16385 status collapsed
16386
16387 \begin_layout Plain Layout
16388 DefaultHeight
16389 \end_layout
16390
16391 \end_inset
16392
16393  is the height of a row with the normal font.
16394  This way, the look stays the same with different screen fonts.
16395 \end_layout
16396
16397 \begin_layout Description
16398 \begin_inset Flex Code
16399 status collapsed
16400
16401 \begin_layout Plain Layout
16402 PassThru
16403 \end_layout
16404
16405 \end_inset
16406
16407  [
16408 \begin_inset Flex Code
16409 status collapsed
16410
16411 \begin_layout Plain Layout
16412
16413 \emph on
16414 0
16415 \end_layout
16416
16417 \end_inset
16418
16419 ,
16420 \begin_inset space \thinspace{}
16421 \end_inset
16422
16423
16424 \begin_inset Flex Code
16425 status collapsed
16426
16427 \begin_layout Plain Layout
16428 1
16429 \end_layout
16430
16431 \end_inset
16432
16433 ] Whether the contents of this paragraph should be output in raw form, meaning
16434  without special translations that \SpecialChar LaTeX
16435  would require.
16436 \end_layout
16437
16438 \begin_layout Description
16439 \begin_inset Flex Code
16440 status collapsed
16441
16442 \begin_layout Plain Layout
16443 PassThruChars
16444 \end_layout
16445
16446 \end_inset
16447
16448  [
16449 \begin_inset Flex Code
16450 status collapsed
16451
16452 \begin_layout Plain Layout
16453 string
16454 \end_layout
16455
16456 \end_inset
16457
16458 ]
16459 \family typewriter
16460  
16461 \family default
16462 Defines individual characters that should be output in raw form, meaning
16463  without special translations that \SpecialChar LaTeX
16464  would require.
16465 \end_layout
16466
16467 \begin_layout Description
16468 \begin_inset Flex Code
16469 status collapsed
16470
16471 \begin_layout Plain Layout
16472 Preamble
16473 \end_layout
16474
16475 \end_inset
16476
16477  Information to be included in the \SpecialChar LaTeX
16478  preamble when this style is used.
16479  Used to define macros, load packages, etc., required by this particular
16480  style.
16481  Must end with 
16482 \begin_inset Quotes eld
16483 \end_inset
16484
16485
16486 \begin_inset Flex Code
16487 status collapsed
16488
16489 \begin_layout Plain Layout
16490 EndPreamble
16491 \end_layout
16492
16493 \end_inset
16494
16495
16496 \begin_inset Quotes erd
16497 \end_inset
16498
16499 .
16500 \end_layout
16501
16502 \begin_layout Description
16503 \begin_inset Flex Code
16504 status collapsed
16505
16506 \begin_layout Plain Layout
16507 RefPrefix
16508 \end_layout
16509
16510 \end_inset
16511
16512  [
16513 \begin_inset Flex Code
16514 status collapsed
16515
16516 \begin_layout Plain Layout
16517 string
16518 \end_layout
16519
16520 \end_inset
16521
16522 ] The prefix to use when creating labels referring to paragraphs of this
16523  type.
16524  This allows the use of formatted references.
16525 \end_layout
16526
16527 \begin_layout Description
16528 \begin_inset Flex Code
16529 status collapsed
16530
16531 \begin_layout Plain Layout
16532 Requires 
16533 \end_layout
16534
16535 \end_inset
16536
16537  [
16538 \begin_inset Flex Code
16539 status collapsed
16540
16541 \begin_layout Plain Layout
16542 string
16543 \end_layout
16544
16545 \end_inset
16546
16547 ] Whether the style requires the feature 
16548 \begin_inset Flex Code
16549 status collapsed
16550
16551 \begin_layout Plain Layout
16552 string
16553 \end_layout
16554
16555 \end_inset
16556
16557  (see 
16558 \begin_inset CommandInset ref
16559 LatexCommand ref
16560 reference "chap:List-of-functions"
16561
16562 \end_inset
16563
16564  for the list of features).
16565  If you require a package with specific options, you can additionally use
16566  
16567 \begin_inset Flex Code
16568 status collapsed
16569
16570 \begin_layout Plain Layout
16571 PackageOptions
16572 \end_layout
16573
16574 \end_inset
16575
16576  as a general text class parameter (see 
16577 \begin_inset CommandInset ref
16578 LatexCommand ref
16579 reference "subsec:General-text-class"
16580
16581 \end_inset
16582
16583 ).
16584 \end_layout
16585
16586 \begin_layout Description
16587 \begin_inset Flex Code
16588 status collapsed
16589
16590 \begin_layout Plain Layout
16591 ResetArgs
16592 \end_layout
16593
16594 \end_inset
16595
16596  [
16597 \begin_inset Flex Code
16598 status collapsed
16599
16600 \begin_layout Plain Layout
16601
16602 \emph on
16603 0
16604 \end_layout
16605
16606 \end_inset
16607
16608 ,
16609 \begin_inset Flex Code
16610 status collapsed
16611
16612 \begin_layout Plain Layout
16613 1
16614 \end_layout
16615
16616 \end_inset
16617
16618 ] Resets the \SpecialChar LaTeX
16619  arguments of this style (as defined via the 
16620 \begin_inset Flex Code
16621 status collapsed
16622
16623 \begin_layout Plain Layout
16624 Argument
16625 \end_layout
16626
16627 \end_inset
16628
16629  tag).
16630  This is useful if you have copied a style via 
16631 \begin_inset Flex Code
16632 status collapsed
16633
16634 \begin_layout Plain Layout
16635 CopyStyle
16636 \end_layout
16637
16638 \end_inset
16639
16640 , but you do not want to inherit its (required and optional) arguments.
16641 \end_layout
16642
16643 \begin_layout Description
16644 \begin_inset Flex Code
16645 status collapsed
16646
16647 \begin_layout Plain Layout
16648 ResumeCounter
16649 \end_layout
16650
16651 \end_inset
16652
16653  [
16654 \begin_inset Flex Code
16655 status collapsed
16656
16657 \begin_layout Plain Layout
16658
16659 \emph on
16660 0
16661 \end_layout
16662
16663 \end_inset
16664
16665 ,
16666 \begin_inset Flex Code
16667 status collapsed
16668
16669 \begin_layout Plain Layout
16670 1
16671 \end_layout
16672
16673 \end_inset
16674
16675 ] Resumes a counter that is usually reset at each new sequence of layouts.
16676  This is currently only useful when 
16677 \begin_inset Flex Code
16678 status collapsed
16679
16680 \begin_layout Plain Layout
16681 LabelType
16682 \end_layout
16683
16684 \end_inset
16685
16686  is 
16687 \begin_inset Flex Code
16688 status collapsed
16689
16690 \begin_layout Plain Layout
16691 Enumerate
16692 \end_layout
16693
16694 \end_inset
16695
16696 .
16697 \end_layout
16698
16699 \begin_layout Description
16700 \begin_inset Flex Code
16701 status collapsed
16702
16703 \begin_layout Plain Layout
16704 RightDelim
16705 \end_layout
16706
16707 \end_inset
16708
16709  [
16710 \begin_inset Flex Code
16711 status collapsed
16712
16713 \begin_layout Plain Layout
16714 string
16715 \end_layout
16716
16717 \end_inset
16718
16719 ] A string that is put at the end of the layout content.
16720  A line break in the output can be indicated by 
16721 \begin_inset Flex Code
16722 status collapsed
16723
16724 \begin_layout Plain Layout
16725 <br/>
16726 \end_layout
16727
16728 \end_inset
16729
16730 .
16731 \end_layout
16732
16733 \begin_layout Description
16734 \begin_inset Flex Code
16735 status collapsed
16736
16737 \begin_layout Plain Layout
16738 RightMargin
16739 \end_layout
16740
16741 \end_inset
16742
16743  [
16744 \begin_inset Flex Code
16745 status collapsed
16746
16747 \begin_layout Plain Layout
16748 string=""
16749 \end_layout
16750
16751 \end_inset
16752
16753 ] Similar to 
16754 \begin_inset Flex Code
16755 status collapsed
16756
16757 \begin_layout Plain Layout
16758 LeftMargin
16759 \end_layout
16760
16761 \end_inset
16762
16763 .
16764 \end_layout
16765
16766 \begin_layout Description
16767 \begin_inset Flex Code
16768 status collapsed
16769
16770 \begin_layout Plain Layout
16771 Spacing
16772 \end_layout
16773
16774 \end_inset
16775
16776  [
16777 \begin_inset Flex Code
16778 status collapsed
16779
16780 \begin_layout Plain Layout
16781
16782 \emph on
16783 single
16784 \end_layout
16785
16786 \end_inset
16787
16788
16789 \begin_inset Flex Code
16790 status collapsed
16791
16792 \begin_layout Plain Layout
16793 onehalf
16794 \end_layout
16795
16796 \end_inset
16797
16798
16799 \begin_inset Flex Code
16800 status collapsed
16801
16802 \begin_layout Plain Layout
16803 double
16804 \end_layout
16805
16806 \end_inset
16807
16808
16809 \begin_inset Flex Code
16810 status collapsed
16811
16812 \begin_layout Plain Layout
16813 other
16814 \begin_inset space ~
16815 \end_inset
16816
16817 <value>
16818 \end_layout
16819
16820 \end_inset
16821
16822 ] This defines what the default spacing should be in the style.
16823  The arguments 
16824 \begin_inset Flex Code
16825 status collapsed
16826
16827 \begin_layout Plain Layout
16828 single
16829 \end_layout
16830
16831 \end_inset
16832
16833
16834 \begin_inset Flex Code
16835 status collapsed
16836
16837 \begin_layout Plain Layout
16838 onehalf
16839 \end_layout
16840
16841 \end_inset
16842
16843  and 
16844 \begin_inset Flex Code
16845 status collapsed
16846
16847 \begin_layout Plain Layout
16848 double
16849 \end_layout
16850
16851 \end_inset
16852
16853  correspond respectively to a multiplier value of 1, 1.25 and 1.667.
16854  If you specify the argument 
16855 \begin_inset Flex Code
16856 status collapsed
16857
16858 \begin_layout Plain Layout
16859 other
16860 \end_layout
16861
16862 \end_inset
16863
16864 , then you must also provide a value argument which will be the actual multiplie
16865 r value.
16866  Note that, contrary to other parameters, 
16867 \begin_inset Flex Code
16868 status collapsed
16869
16870 \begin_layout Plain Layout
16871 Spacing
16872 \end_layout
16873
16874 \end_inset
16875
16876  implies the generation of specific \SpecialChar LaTeX
16877  code, using the \SpecialChar LaTeX
16878  package 
16879 \family roman
16880
16881 \begin_inset Flex Code
16882 status collapsed
16883
16884 \begin_layout Plain Layout
16885 setspace
16886 \end_layout
16887
16888 \end_inset
16889
16890 .
16891 \end_layout
16892
16893 \begin_layout Description
16894 \begin_inset Flex Code
16895 status collapsed
16896
16897 \begin_layout Plain Layout
16898 Spellcheck
16899 \end_layout
16900
16901 \end_inset
16902
16903  [
16904 \begin_inset Flex Code
16905 status collapsed
16906
16907 \begin_layout Plain Layout
16908 0
16909 \end_layout
16910
16911 \end_inset
16912
16913 ,
16914 \begin_inset space \thinspace{}
16915 \end_inset
16916
16917
16918 \begin_inset Flex Code
16919 status collapsed
16920
16921 \begin_layout Plain Layout
16922
16923 \emph on
16924 1
16925 \end_layout
16926
16927 \end_inset
16928
16929 ] Allow spell-checking paragraphs of this style.
16930  Default is true.
16931 \end_layout
16932
16933 \begin_layout Description
16934 \begin_inset Flex Code
16935 status collapsed
16936
16937 \begin_layout Plain Layout
16938 StepMasterCounter
16939 \end_layout
16940
16941 \end_inset
16942
16943  [
16944 \begin_inset Flex Code
16945 status collapsed
16946
16947 \begin_layout Plain Layout
16948
16949 \emph on
16950 0
16951 \end_layout
16952
16953 \end_inset
16954
16955 ,
16956 \begin_inset Flex Code
16957 status collapsed
16958
16959 \begin_layout Plain Layout
16960 1
16961 \end_layout
16962
16963 \end_inset
16964
16965 ] Steps the master counter of a given counter at the beginning of a new
16966  sequence of layouts.
16967  This is currently only useful when 
16968 \begin_inset Flex Code
16969 status collapsed
16970
16971 \begin_layout Plain Layout
16972 LabelType
16973 \end_layout
16974
16975 \end_inset
16976
16977  is 
16978 \begin_inset Flex Code
16979 status collapsed
16980
16981 \begin_layout Plain Layout
16982 Enumerate
16983 \end_layout
16984
16985 \end_inset
16986
16987 .
16988 \end_layout
16989
16990 \begin_layout Description
16991 \begin_inset Flex Code
16992 status collapsed
16993
16994 \begin_layout Plain Layout
16995 TextFont
16996 \end_layout
16997
16998 \end_inset
16999
17000  The font used for the text body .
17001  See 
17002 \begin_inset CommandInset ref
17003 LatexCommand ref
17004 reference "subsec:Font-description"
17005
17006 \end_inset
17007
17008 .
17009 \end_layout
17010
17011 \begin_layout Description
17012 \begin_inset Flex Code
17013 status collapsed
17014
17015 \begin_layout Plain Layout
17016 TocLevel
17017 \end_layout
17018
17019 \end_inset
17020
17021
17022 \series medium
17023  [
17024 \begin_inset Flex Code
17025 status collapsed
17026
17027 \begin_layout Plain Layout
17028
17029 \series medium
17030 int=3
17031 \end_layout
17032
17033 \end_inset
17034
17035 ]
17036 \series default
17037  The level of the style in the table of contents.
17038  This is used for automatic numbering of section headings.
17039 \end_layout
17040
17041 \begin_layout Description
17042 \begin_inset Flex Code
17043 status collapsed
17044
17045 \begin_layout Plain Layout
17046 ToggleIndent
17047 \end_layout
17048
17049 \end_inset
17050
17051  [
17052 \emph on
17053
17054 \begin_inset Flex Code
17055 status collapsed
17056
17057 \begin_layout Plain Layout
17058
17059 \emph on
17060 default
17061 \end_layout
17062
17063 \end_inset
17064
17065
17066 \emph default
17067
17068 \begin_inset Flex Code
17069 status collapsed
17070
17071 \begin_layout Plain Layout
17072 always
17073 \end_layout
17074
17075 \end_inset
17076
17077
17078 \begin_inset Flex Code
17079 status collapsed
17080
17081 \begin_layout Plain Layout
17082 never
17083 \end_layout
17084
17085 \end_inset
17086
17087 ] This tag determines whether the first line indentation of this paragraph
17088  can be toggled via the Paragraph settings dialog.
17089  If 
17090 \emph on
17091
17092 \begin_inset Flex Code
17093 status collapsed
17094
17095 \begin_layout Plain Layout
17096
17097 \emph off
17098 default
17099 \end_layout
17100
17101 \end_inset
17102
17103
17104 \emph default
17105  is set, indentation can be toggled if the document settings use 
17106 \begin_inset Quotes eld
17107 \end_inset
17108
17109 indent
17110 \begin_inset Quotes erd
17111 \end_inset
17112
17113  paragraph style, with 
17114 \begin_inset Flex Code
17115 status collapsed
17116
17117 \begin_layout Plain Layout
17118 always
17119 \end_layout
17120
17121 \end_inset
17122
17123 , indentation can always be toggled, notwithstanding the document settings,
17124  with 
17125 \begin_inset Flex Code
17126 status collapsed
17127
17128 \begin_layout Plain Layout
17129 never
17130 \end_layout
17131
17132 \end_inset
17133
17134 , indentation can never be toggled.
17135 \end_layout
17136
17137 \begin_layout Description
17138 \begin_inset Flex Code
17139 status collapsed
17140
17141 \begin_layout Plain Layout
17142 TopSep
17143 \end_layout
17144
17145 \end_inset
17146
17147  [
17148 \begin_inset Flex Code
17149 status collapsed
17150
17151 \begin_layout Plain Layout
17152 float=0
17153 \end_layout
17154
17155 \end_inset
17156
17157 ] The vertical space with which the very first of a chain of paragraphs
17158  with this style is separated from the previous paragraph.
17159  If the previous paragraph has another style, the separations are not simply
17160  added, but the maximum is taken.
17161 \end_layout
17162
17163 \begin_layout Subsection
17164 \begin_inset CommandInset label
17165 LatexCommand label
17166 name "subsec:I18n"
17167
17168 \end_inset
17169
17170 Internationalization of Paragraph Styles
17171 \end_layout
17172
17173 \begin_layout Standard
17174 \SpecialChar LyX
17175  has long supported internationalization of layout information, but, until
17176  version 2.0, this applied only to the user interface and not to, say, PDF
17177  output.
17178  Thus, French authors were forced to resort to ugly hacks if they wanted
17179  `
17180 \lang french
17181 Théorème
17182 \lang english
17183  1' instead of `Theorem 1'.
17184  Thanks to Georg Baum, that is no longer the case.
17185 \end_layout
17186
17187 \begin_layout Standard
17188 If a 
17189 \begin_inset Flex Code
17190 status collapsed
17191
17192 \begin_layout Plain Layout
17193 Style
17194 \end_layout
17195
17196 \end_inset
17197
17198  defines text that is to appear in the typeset document, it may use 
17199 \begin_inset Flex Code
17200 status collapsed
17201
17202 \begin_layout Plain Layout
17203 LangPreamble
17204 \end_layout
17205
17206 \end_inset
17207
17208  and 
17209 \begin_inset Flex Code
17210 status collapsed
17211
17212 \begin_layout Plain Layout
17213 BabelPreamble
17214 \end_layout
17215
17216 \end_inset
17217
17218  to support non-English and even multi-language documents correctly.
17219  The following excerpt (from the 
17220 \begin_inset Flex Code
17221 status collapsed
17222
17223 \begin_layout Plain Layout
17224 theorems-ams.inc
17225 \end_layout
17226
17227 \end_inset
17228
17229  file) shows how this works:
17230 \end_layout
17231
17232 \begin_layout LyX-Code
17233 Preamble
17234 \end_layout
17235
17236 \begin_deeper
17237 \begin_layout LyX-Code
17238   
17239 \backslash
17240 theoremstyle{remark}
17241 \end_layout
17242
17243 \begin_layout LyX-Code
17244   
17245 \backslash
17246 newtheorem{claim}[thm]{
17247 \backslash
17248 protect
17249 \backslash
17250 claimname}
17251 \end_layout
17252
17253 \begin_layout LyX-Code
17254 EndPreamble
17255 \end_layout
17256
17257 \begin_layout LyX-Code
17258 LangPreamble
17259 \end_layout
17260
17261 \begin_layout LyX-Code
17262   
17263 \backslash
17264 providecommand{
17265 \backslash
17266 claimname}{_(Claim)}
17267 \end_layout
17268
17269 \begin_layout LyX-Code
17270 EndLangPreamble
17271 \end_layout
17272
17273 \begin_layout LyX-Code
17274 BabelPreamble
17275 \end_layout
17276
17277 \begin_layout LyX-Code
17278     
17279 \backslash
17280 addto
17281 \backslash
17282 captions$$lang{
17283 \backslash
17284 renewcommand{
17285 \backslash
17286 claimname}{_(Claim)}}
17287 \end_layout
17288
17289 \begin_layout LyX-Code
17290 EndBabelPreamble
17291 \end_layout
17292
17293 \end_deeper
17294 \begin_layout Standard
17295 In principle, any legal \SpecialChar LaTeX
17296  may appear in the 
17297 \begin_inset Flex Code
17298 status collapsed
17299
17300 \begin_layout Plain Layout
17301 LangPreamble
17302 \end_layout
17303
17304 \end_inset
17305
17306  and 
17307 \begin_inset Flex Code
17308 status collapsed
17309
17310 \begin_layout Plain Layout
17311 BabelPreamble
17312 \end_layout
17313
17314 \end_inset
17315
17316  tags, but in practice they will typically look as they do here.
17317  The key to correct translation of the typeset text is the definition of
17318  the \SpecialChar LaTeX
17319  command 
17320 \begin_inset Flex Code
17321 status collapsed
17322
17323 \begin_layout Plain Layout
17324
17325 \backslash
17326 claimname
17327 \end_layout
17328
17329 \end_inset
17330
17331  and its use in 
17332 \begin_inset Flex Code
17333 status collapsed
17334
17335 \begin_layout Plain Layout
17336
17337 \backslash
17338 newtheorem
17339 \end_layout
17340
17341 \end_inset
17342
17343 .
17344  
17345 \end_layout
17346
17347 \begin_layout Standard
17348 The 
17349 \begin_inset Flex Code
17350 status collapsed
17351
17352 \begin_layout Plain Layout
17353 LangPreamble
17354 \end_layout
17355
17356 \end_inset
17357
17358  tag provides for internationalization based upon the overall language of
17359  the document.
17360  The contents of the tag will be included in the preamble, just as with
17361  the 
17362 \begin_inset Flex Code
17363 status collapsed
17364
17365 \begin_layout Plain Layout
17366 Preamble
17367 \end_layout
17368
17369 \end_inset
17370
17371  tag.
17372  What makes it special is the use of the 
17373 \begin_inset Quotes eld
17374 \end_inset
17375
17376 function
17377 \begin_inset Quotes erd
17378 \end_inset
17379
17380  
17381 \begin_inset Flex Code
17382 status collapsed
17383
17384 \begin_layout Plain Layout
17385 _()
17386 \end_layout
17387
17388 \end_inset
17389
17390 , which will be replaced, when \SpecialChar LyX
17391  produces \SpecialChar LaTeX
17392  output, with the translation of
17393  its argument into the document language.
17394 \end_layout
17395
17396 \begin_layout Standard
17397 The 
17398 \begin_inset Flex Code
17399 status collapsed
17400
17401 \begin_layout Plain Layout
17402 BabelPreamble
17403 \end_layout
17404
17405 \end_inset
17406
17407  tag is more complex, since it is meant to provide support for multi-language
17408  documents and so offers an interface to the 
17409 \begin_inset Flex Code
17410 status collapsed
17411
17412 \begin_layout Plain Layout
17413 babel
17414 \end_layout
17415
17416 \end_inset
17417
17418  package.
17419  Its contents will be added to the preamble once for each language that
17420  appears in the document.
17421  In this case, the argument to 
17422 \begin_inset Flex Code
17423 status collapsed
17424
17425 \begin_layout Plain Layout
17426 _()
17427 \end_layout
17428
17429 \end_inset
17430
17431  will be replaced with its translation into the language in question; the
17432  expression 
17433 \begin_inset Flex Code
17434 status collapsed
17435
17436 \begin_layout Plain Layout
17437 $$lang
17438 \end_layout
17439
17440 \end_inset
17441
17442  is replaced by the language name (as used by the babel package).
17443 \end_layout
17444
17445 \begin_layout Standard
17446 A German document that also included a French section would thus have the
17447  following in the preamble:
17448 \end_layout
17449
17450 \begin_layout LyX-Code
17451
17452 \backslash
17453 addto
17454 \backslash
17455 captionsfrench{
17456 \backslash
17457 renewcommand{
17458 \backslash
17459 claimname}{Affirmation}}
17460 \begin_inset Newline newline
17461 \end_inset
17462
17463
17464 \backslash
17465 addto
17466 \backslash
17467 captionsngerman{
17468 \backslash
17469 renewcommand{
17470 \backslash
17471 claimname}{Behauptung}}
17472 \begin_inset Newline newline
17473 \end_inset
17474
17475
17476 \backslash
17477 providecommand{
17478 \backslash
17479 claimname}{Behauptung}
17480 \end_layout
17481
17482 \begin_layout Standard
17483 \SpecialChar LaTeX
17484  and 
17485 \begin_inset Flex Code
17486 status collapsed
17487
17488 \begin_layout Plain Layout
17489 babel
17490 \end_layout
17491
17492 \end_inset
17493
17494  will then conspire to produce the correct text in the output.
17495 \end_layout
17496
17497 \begin_layout Standard
17498 One important point to note here is that the translations are provided by
17499  \SpecialChar LyX
17500  itself, through the file 
17501 \begin_inset Flex Code
17502 status collapsed
17503
17504 \begin_layout Plain Layout
17505 layouttranslations
17506 \end_layout
17507
17508 \end_inset
17509
17510 .
17511  This means, in effect, that 
17512 \begin_inset Flex Code
17513 status collapsed
17514
17515 \begin_layout Plain Layout
17516 LangPreamble
17517 \end_layout
17518
17519 \end_inset
17520
17521  and 
17522 \begin_inset Flex Code
17523 status collapsed
17524
17525 \begin_layout Plain Layout
17526 BabelPreamble
17527 \end_layout
17528
17529 \end_inset
17530
17531  are really only of use in layout files that are provided with \SpecialChar LyX
17532 , since text
17533  entered in user-created layout files will not be seen by \SpecialChar LyX
17534 's internationalizatio
17535 n routines unless the 
17536 \begin_inset Flex Code
17537 status collapsed
17538
17539 \begin_layout Plain Layout
17540 layouttranslations
17541 \end_layout
17542
17543 \end_inset
17544
17545  file is modified accordingly.
17546  That said, however, any layout created with the intention that it will
17547  be included with \SpecialChar LyX
17548  should use these tags where appropriate.
17549  Please note that the paragraph style translations provided by \SpecialChar LyX
17550  will never
17551  change with a minor update (e.
17552 \begin_inset space \thinspace{}
17553 \end_inset
17554
17555 g.
17556 \begin_inset space \space{}
17557 \end_inset
17558
17559 from version 2.1.x to 2.1.y).
17560  It is however quite likely that a major update (e.
17561 \begin_inset space \thinspace{}
17562 \end_inset
17563
17564 g.
17565 \begin_inset space \space{}
17566 \end_inset
17567
17568 from 2.0.x to 2.1.0) will introduce new translations or corrections.
17569 \end_layout
17570
17571 \begin_layout Subsection
17572 Floats
17573 \begin_inset CommandInset label
17574 LatexCommand label
17575 name "subsec:Floats"
17576
17577 \end_inset
17578
17579
17580 \end_layout
17581
17582 \begin_layout Standard
17583 It is necessary to define the floats (
17584 \begin_inset Flex Noun
17585 status collapsed
17586
17587 \begin_layout Plain Layout
17588 figure
17589 \end_layout
17590
17591 \end_inset
17592
17593
17594 \begin_inset Flex Noun
17595 status collapsed
17596
17597 \begin_layout Plain Layout
17598 table
17599 \end_layout
17600
17601 \end_inset
17602
17603 , \SpecialChar ldots
17604 ) in the text class itself.
17605  Standard floats are included in the file 
17606 \begin_inset Flex Code
17607 status collapsed
17608
17609 \begin_layout Plain Layout
17610 stdfloats.inc
17611 \end_layout
17612
17613 \end_inset
17614
17615 , so you may have to do no more than add
17616 \end_layout
17617
17618 \begin_layout LyX-Code
17619 Input stdfloats.inc
17620 \end_layout
17621
17622 \begin_layout Standard
17623 to your layout file.
17624  If you want to implement a text class that proposes some other float types
17625  (like the AGU class bundled with \SpecialChar LyX
17626 ), the information below will hopefully
17627  help you:
17628 \end_layout
17629
17630 \begin_layout Description
17631 \begin_inset Flex Code
17632 status collapsed
17633
17634 \begin_layout Plain Layout
17635 AllowedPlacement
17636 \end_layout
17637
17638 \end_inset
17639
17640  [
17641 \begin_inset Flex Code
17642 status collapsed
17643
17644 \begin_layout Plain Layout
17645 string
17646 \end_layout
17647
17648 \end_inset
17649
17650 =!htbpH] Allowed placement options for this float type.
17651  The value is a string of placement characters.
17652  Possible characters include: 
17653 \emph on
17654 h
17655 \emph default
17656  (
17657 \begin_inset Quotes eld
17658 \end_inset
17659
17660 here if possible
17661 \begin_inset Quotes erd
17662 \end_inset
17663
17664 ), 
17665 \emph on
17666 t
17667 \emph default
17668  (
17669 \begin_inset Quotes eld
17670 \end_inset
17671
17672 top of page
17673 \begin_inset Quotes erd
17674 \end_inset
17675
17676 ), 
17677 \emph on
17678 b
17679 \emph default
17680  (
17681 \begin_inset Quotes eld
17682 \end_inset
17683
17684 bottom of page
17685 \begin_inset Quotes erd
17686 \end_inset
17687
17688 ), 
17689 \emph on
17690 p
17691 \emph default
17692  (
17693 \begin_inset Quotes eld
17694 \end_inset
17695
17696 page of floats
17697 \begin_inset Quotes erd
17698 \end_inset
17699
17700 ), 
17701 \emph on
17702 H
17703 \emph default
17704  (
17705 \begin_inset Quotes eld
17706 \end_inset
17707
17708 here definitely
17709 \begin_inset Quotes erd
17710 \end_inset
17711
17712 ) and 
17713 \emph on
17714 !
17715 \emph default
17716  (
17717 \begin_inset Quotes eld
17718 \end_inset
17719
17720 ignore LaTeX rules
17721 \begin_inset Quotes erd
17722 \end_inset
17723
17724 ).
17725  The order of the characters in the string does not matter.
17726  If no placement options are allowed, use the string 
17727 \emph on
17728 none
17729 \emph default
17730 .
17731 \end_layout
17732
17733 \begin_layout Description
17734 \begin_inset Flex Code
17735 status collapsed
17736
17737 \begin_layout Plain Layout
17738 AllowsSideways
17739 \end_layout
17740
17741 \end_inset
17742
17743  [
17744 \begin_inset Flex Code
17745 status collapsed
17746
17747 \begin_layout Plain Layout
17748
17749 \emph off
17750 0
17751 \end_layout
17752
17753 \end_inset
17754
17755 ,
17756 \begin_inset space \thinspace{}
17757 \end_inset
17758
17759
17760 \emph on
17761
17762 \begin_inset Flex Code
17763 status collapsed
17764
17765 \begin_layout Plain Layout
17766
17767 \emph on
17768 1
17769 \end_layout
17770
17771 \end_inset
17772
17773
17774 \emph default
17775 ] Defines whether the float allows to be rotated via the \SpecialChar LaTeX
17776 -package 
17777 \family typewriter
17778 rotfloat
17779 \family default
17780  (sidewaysfloat).
17781  Set to 
17782 \begin_inset Flex Code
17783 status collapsed
17784
17785 \begin_layout Plain Layout
17786 0
17787 \end_layout
17788
17789 \end_inset
17790
17791  if the float does not support this feature.
17792 \end_layout
17793
17794 \begin_layout Description
17795 \begin_inset Flex Code
17796 status collapsed
17797
17798 \begin_layout Plain Layout
17799 AllowsWide
17800 \end_layout
17801
17802 \end_inset
17803
17804  [
17805 \begin_inset Flex Code
17806 status collapsed
17807
17808 \begin_layout Plain Layout
17809
17810 \emph off
17811 0
17812 \end_layout
17813
17814 \end_inset
17815
17816 ,
17817 \begin_inset space \thinspace{}
17818 \end_inset
17819
17820
17821 \emph on
17822
17823 \begin_inset Flex Code
17824 status collapsed
17825
17826 \begin_layout Plain Layout
17827
17828 \emph on
17829 1
17830 \end_layout
17831
17832 \end_inset
17833
17834
17835 \emph default
17836 ] Defines whether the float has a starred variant that spans columns in
17837  a two column paragraph.
17838  Set to 
17839 \begin_inset Flex Code
17840 status collapsed
17841
17842 \begin_layout Plain Layout
17843 0
17844 \end_layout
17845
17846 \end_inset
17847
17848  if the float does not support this feature.
17849 \end_layout
17850
17851 \begin_layout Description
17852 \begin_inset Flex Code
17853 status collapsed
17854
17855 \begin_layout Plain Layout
17856 Extension
17857 \end_layout
17858
17859 \end_inset
17860
17861  [
17862 \begin_inset Flex Code
17863 status collapsed
17864
17865 \begin_layout Plain Layout
17866 string
17867 \end_layout
17868
17869 \end_inset
17870
17871 =
17872 \begin_inset Quotes erd
17873 \end_inset
17874
17875
17876 \begin_inset Quotes erd
17877 \end_inset
17878
17879 ] The file name extension of an auxiliary file for the list of figures (or
17880  whatever).
17881  \SpecialChar LaTeX
17882  writes the captions to this file.
17883 \end_layout
17884
17885 \begin_layout Description
17886 \begin_inset Flex Code
17887 status collapsed
17888
17889 \begin_layout Plain Layout
17890 GuiName
17891 \end_layout
17892
17893 \end_inset
17894
17895  [
17896 \begin_inset Flex Code
17897 status collapsed
17898
17899 \begin_layout Plain Layout
17900 string
17901 \end_layout
17902
17903 \end_inset
17904
17905 =
17906 \begin_inset Quotes erd
17907 \end_inset
17908
17909
17910 \begin_inset Quotes erd
17911 \end_inset
17912
17913 ] The string that will be used in the menus and also for the caption.
17914  This is translated to the current language if babel is used.
17915 \end_layout
17916
17917 \begin_layout Description
17918 \begin_inset Flex Code
17919 status collapsed
17920
17921 \begin_layout Plain Layout
17922 HTML*
17923 \end_layout
17924
17925 \end_inset
17926
17927  These tags control the XHTML output.
17928  See 
17929 \begin_inset CommandInset ref
17930 LatexCommand ref
17931 reference "sec:Tags-for-XHTML"
17932
17933 \end_inset
17934
17935 .
17936 \end_layout
17937
17938 \begin_layout Description
17939 \begin_inset Flex Code
17940 status collapsed
17941
17942 \begin_layout Plain Layout
17943 IsPredefined
17944 \end_layout
17945
17946 \end_inset
17947
17948  [
17949 \emph on
17950
17951 \begin_inset Flex Code
17952 status collapsed
17953
17954 \begin_layout Plain Layout
17955 0
17956 \end_layout
17957
17958 \end_inset
17959
17960
17961 \emph default
17962 ,
17963 \begin_inset space \thinspace{}
17964 \end_inset
17965
17966
17967 \begin_inset Flex Code
17968 status collapsed
17969
17970 \begin_layout Plain Layout
17971 1
17972 \end_layout
17973
17974 \end_inset
17975
17976 ] Indicates whether the float is already defined in the document class or
17977  if instead the \SpecialChar LaTeX
17978  package 
17979 \begin_inset Flex Code
17980 status collapsed
17981
17982 \begin_layout Plain Layout
17983 float
17984 \end_layout
17985
17986 \end_inset
17987
17988  needs to be loaded to define it on-the-fly.
17989  The default is 
17990 \begin_inset Flex Code
17991 status collapsed
17992
17993 \begin_layout Plain Layout
17994 0
17995 \end_layout
17996
17997 \end_inset
17998
17999 , which means: 
18000 \begin_inset Flex Code
18001 status collapsed
18002
18003 \begin_layout Plain Layout
18004 float
18005 \end_layout
18006
18007 \end_inset
18008
18009  is used.
18010  It should be set to 
18011 \begin_inset Flex Code
18012 status collapsed
18013
18014 \begin_layout Plain Layout
18015 1
18016 \end_layout
18017
18018 \end_inset
18019
18020  if the float is already defined by the \SpecialChar LaTeX
18021  document class.
18022 \end_layout
18023
18024 \begin_layout Description
18025 \begin_inset Flex Code
18026 status collapsed
18027
18028 \begin_layout Plain Layout
18029 ListCommand
18030 \end_layout
18031
18032 \end_inset
18033
18034  [
18035 \begin_inset Flex Code
18036 status collapsed
18037
18038 \begin_layout Plain Layout
18039 string
18040 \end_layout
18041
18042 \end_inset
18043
18044 =
18045 \begin_inset Quotes erd
18046 \end_inset
18047
18048
18049 \begin_inset Quotes erd
18050 \end_inset
18051
18052 ] The command used to generate a list of floats of this type; the leading
18053  `
18054 \backslash
18055 ' must be omitted.
18056  This 
18057 \emph on
18058 must
18059 \emph default
18060  be given if 
18061 \begin_inset Flex Code
18062 status collapsed
18063
18064 \begin_layout Plain Layout
18065 UsesFloatPkg
18066 \end_layout
18067
18068 \end_inset
18069
18070  is false, since there is no standard way to generate this command.
18071  It is ignored if 
18072 \begin_inset Flex Code
18073 status collapsed
18074
18075 \begin_layout Plain Layout
18076 UsesFloatPkg
18077 \end_layout
18078
18079 \end_inset
18080
18081  is true, since in that case there is a standard way to define the command.
18082 \end_layout
18083
18084 \begin_layout Description
18085 \begin_inset Flex Code
18086 status collapsed
18087
18088 \begin_layout Plain Layout
18089 ListName
18090 \end_layout
18091
18092 \end_inset
18093
18094  [
18095 \begin_inset Flex Code
18096 status collapsed
18097
18098 \begin_layout Plain Layout
18099 string
18100 \end_layout
18101
18102 \end_inset
18103
18104 =
18105 \begin_inset Quotes erd
18106 \end_inset
18107
18108
18109 \begin_inset Quotes erd
18110 \end_inset
18111
18112 ] A title for a list of floats of this kind (list of figures, tables, or
18113  whatever).
18114  It is used for the screen label within \SpecialChar LyX
18115 , it is used by \SpecialChar LaTeX
18116  for the title and
18117  it is used as the title in the XHTML output.
18118  It will be translated to the document language.
18119 \end_layout
18120
18121 \begin_layout Description
18122 \begin_inset Flex Code
18123 status collapsed
18124
18125 \begin_layout Plain Layout
18126 NumberWithin
18127 \end_layout
18128
18129 \end_inset
18130
18131  [
18132 \begin_inset Flex Code
18133 status collapsed
18134
18135 \begin_layout Plain Layout
18136 string
18137 \end_layout
18138
18139 \end_inset
18140
18141 =
18142 \begin_inset Quotes erd
18143 \end_inset
18144
18145
18146 \begin_inset Quotes erd
18147 \end_inset
18148
18149 ] This (optional) argument determines whether floats of this class will
18150  be numbered within some sectional unit of the document.
18151  For example, if 
18152 \begin_inset Flex Code
18153 status collapsed
18154
18155 \begin_layout Plain Layout
18156 NumberWithin
18157 \end_layout
18158
18159 \end_inset
18160
18161  is set to 
18162 \begin_inset Quotes eld
18163 \end_inset
18164
18165
18166 \begin_inset Flex Code
18167 status collapsed
18168
18169 \begin_layout Plain Layout
18170 chapter
18171 \end_layout
18172
18173 \end_inset
18174
18175
18176 \begin_inset Quotes erd
18177 \end_inset
18178
18179 , the floats will be numbered within chapters.
18180  
18181 \end_layout
18182
18183 \begin_layout Description
18184 \begin_inset Flex Code
18185 status collapsed
18186
18187 \begin_layout Plain Layout
18188 Placement
18189 \end_layout
18190
18191 \end_inset
18192
18193  [
18194 \begin_inset Flex Code
18195 status collapsed
18196
18197 \begin_layout Plain Layout
18198 string
18199 \end_layout
18200
18201 \end_inset
18202
18203 =
18204 \begin_inset Quotes erd
18205 \end_inset
18206
18207
18208 \begin_inset Quotes erd
18209 \end_inset
18210
18211 ] The default placement for the given class of floats.
18212  The string should be as in standard \SpecialChar LaTeX
18213
18214 \begin_inset Flex Code
18215 status collapsed
18216
18217 \begin_layout Plain Layout
18218 t
18219 \end_layout
18220
18221 \end_inset
18222
18223
18224 \begin_inset Flex Code
18225 status collapsed
18226
18227 \begin_layout Plain Layout
18228 b
18229 \end_layout
18230
18231 \end_inset
18232
18233
18234 \begin_inset Flex Code
18235 status collapsed
18236
18237 \begin_layout Plain Layout
18238 p
18239 \end_layout
18240
18241 \end_inset
18242
18243  and 
18244 \begin_inset Flex Code
18245 status collapsed
18246
18247 \begin_layout Plain Layout
18248 h
18249 \end_layout
18250
18251 \end_inset
18252
18253  for top, bottom, page, and here, respectively.
18254 \begin_inset Foot
18255 status collapsed
18256
18257 \begin_layout Plain Layout
18258 Note that the order of these letters in the string is irrelevant, like in
18259  \SpecialChar LaTeX
18260 .
18261 \end_layout
18262
18263 \end_inset
18264
18265  On top of that there is a new type, 
18266 \begin_inset Flex Code
18267 status collapsed
18268
18269 \begin_layout Plain Layout
18270 H
18271 \end_layout
18272
18273 \end_inset
18274
18275 , which does not really correspond to a float, since it means: put it 
18276 \begin_inset Quotes eld
18277 \end_inset
18278
18279 here
18280 \begin_inset Quotes erd
18281 \end_inset
18282
18283  and nowhere else.
18284  Note however that the 
18285 \begin_inset Flex Code
18286 status collapsed
18287
18288 \begin_layout Plain Layout
18289 H
18290 \end_layout
18291
18292 \end_inset
18293
18294  specifier is special and, because of implementation details, cannot be
18295  used in non-built in float types.
18296  If you do not understand what this means, just use 
18297 \begin_inset Quotes eld
18298 \end_inset
18299
18300
18301 \begin_inset Flex Code
18302 status collapsed
18303
18304 \begin_layout Plain Layout
18305 tbp
18306 \end_layout
18307
18308 \end_inset
18309
18310
18311 \begin_inset Quotes erd
18312 \end_inset
18313
18314 .
18315 \end_layout
18316
18317 \begin_layout Description
18318 \begin_inset Flex Code
18319 status collapsed
18320
18321 \begin_layout Plain Layout
18322 RefPrefix
18323 \end_layout
18324
18325 \end_inset
18326
18327  [
18328 \begin_inset Flex Code
18329 status collapsed
18330
18331 \begin_layout Plain Layout
18332 string
18333 \end_layout
18334
18335 \end_inset
18336
18337 ] The prefix to use when creating labels referring to floats of this type.
18338  This allows the use of formatted references.
18339  Note that you can remove any 
18340 \begin_inset Flex Code
18341 status collapsed
18342
18343 \begin_layout Plain Layout
18344 RefPrefix
18345 \end_layout
18346
18347 \end_inset
18348
18349  set by a copied style by using the special value 
18350 \begin_inset Quotes eld
18351 \end_inset
18352
18353 OFF
18354 \begin_inset Quotes erd
18355 \end_inset
18356
18357 , which must be all caps.
18358 \end_layout
18359
18360 \begin_layout Description
18361 \begin_inset Flex Code
18362 status collapsed
18363
18364 \begin_layout Plain Layout
18365 Style
18366 \end_layout
18367
18368 \end_inset
18369
18370  [
18371 \begin_inset Flex Code
18372 status collapsed
18373
18374 \begin_layout Plain Layout
18375 string
18376 \end_layout
18377
18378 \end_inset
18379
18380 =
18381 \begin_inset Quotes erd
18382 \end_inset
18383
18384
18385 \begin_inset Quotes erd
18386 \end_inset
18387
18388 ] The style used when defining the float using 
18389 \begin_inset Flex Code
18390 status collapsed
18391
18392 \begin_layout Plain Layout
18393
18394 \backslash
18395 newfloat
18396 \end_layout
18397
18398 \end_inset
18399
18400 .
18401 \end_layout
18402
18403 \begin_layout Description
18404 \begin_inset Flex Code
18405 status collapsed
18406
18407 \begin_layout Plain Layout
18408 Type
18409 \end_layout
18410
18411 \end_inset
18412
18413  [
18414 \begin_inset Flex Code
18415 status collapsed
18416
18417 \begin_layout Plain Layout
18418 string
18419 \end_layout
18420
18421 \end_inset
18422
18423 =
18424 \begin_inset Quotes erd
18425 \end_inset
18426
18427
18428 \begin_inset Quotes erd
18429 \end_inset
18430
18431 ] The 
18432 \begin_inset Quotes eld
18433 \end_inset
18434
18435 type
18436 \begin_inset Quotes erd
18437 \end_inset
18438
18439  of the new class of floats, like program or algorithm.
18440  After the appropriate 
18441 \begin_inset Flex Code
18442 status collapsed
18443
18444 \begin_layout Plain Layout
18445
18446 \backslash
18447 newfloat
18448 \end_layout
18449
18450 \end_inset
18451
18452 , commands such as 
18453 \begin_inset Flex Code
18454 status collapsed
18455
18456 \begin_layout Plain Layout
18457
18458 \backslash
18459 begin{program}
18460 \end_layout
18461
18462 \end_inset
18463
18464  or 
18465 \begin_inset Flex Code
18466 status collapsed
18467
18468 \begin_layout Plain Layout
18469
18470 \backslash
18471 end{algorithm*}
18472 \end_layout
18473
18474 \end_inset
18475
18476  will be available.
18477 \end_layout
18478
18479 \begin_layout Description
18480 \begin_inset Flex Code
18481 status collapsed
18482
18483 \begin_layout Plain Layout
18484 UsesFloatPkg
18485 \end_layout
18486
18487 \end_inset
18488
18489  [
18490 \begin_inset Flex Code
18491 status collapsed
18492
18493 \begin_layout Plain Layout
18494 0
18495 \end_layout
18496
18497 \end_inset
18498
18499 ,
18500 \begin_inset space \thinspace{}
18501 \end_inset
18502
18503
18504 \begin_inset Flex Code
18505 status collapsed
18506
18507 \begin_layout Plain Layout
18508
18509 \emph on
18510 1
18511 \end_layout
18512
18513 \end_inset
18514
18515 ] Specifies whether this float is defined using the \SpecialChar LaTeX
18516  package 
18517 \begin_inset Flex Code
18518 status collapsed
18519
18520 \begin_layout Plain Layout
18521 float
18522 \end_layout
18523
18524 \end_inset
18525
18526 , either by the class file, another package or on-the-fly by \SpecialChar LyX
18527  itself.
18528 \end_layout
18529
18530 \begin_layout Standard
18531 Note that defining a float with type 
18532 \begin_inset Flex Code
18533 status collapsed
18534
18535 \begin_layout Plain Layout
18536
18537 \emph on
18538 type
18539 \end_layout
18540
18541 \end_inset
18542
18543  automatically defines the corresponding counter with name 
18544 \begin_inset Flex Code
18545 status collapsed
18546
18547 \begin_layout Plain Layout
18548
18549 \emph on
18550 type
18551 \end_layout
18552
18553 \end_inset
18554
18555 .
18556 \end_layout
18557
18558 \begin_layout Subsection
18559 Flex insets and InsetLayout
18560 \begin_inset CommandInset label
18561 LatexCommand label
18562 name "subsec:Flex-insets-and"
18563
18564 \end_inset
18565
18566
18567 \end_layout
18568
18569 \begin_layout Standard
18570 Flex insets come in three different kinds: 
18571 \end_layout
18572
18573 \begin_layout Itemize
18574 character style (
18575 \begin_inset Flex Code
18576 status collapsed
18577
18578 \begin_layout Plain Layout
18579 CharStyle
18580 \end_layout
18581
18582 \end_inset
18583
18584 ): These define semantic markup corresponding to such \SpecialChar LaTeX
18585  commands as 
18586 \begin_inset Flex Code
18587 status collapsed
18588
18589 \begin_layout Plain Layout
18590
18591 \backslash
18592 noun
18593 \end_layout
18594
18595 \end_inset
18596
18597  and 
18598 \begin_inset Flex Code
18599 status collapsed
18600
18601 \begin_layout Plain Layout
18602
18603 \backslash
18604 code
18605 \end_layout
18606
18607 \end_inset
18608
18609 .
18610 \end_layout
18611
18612 \begin_layout Itemize
18613 user custom (
18614 \begin_inset Flex Code
18615 status collapsed
18616
18617 \begin_layout Plain Layout
18618 Custom
18619 \end_layout
18620
18621 \end_inset
18622
18623 ): These can be used to define custom collapsible insets, similar to \SpecialChar TeX
18624  code,
18625  footnote, and the like.
18626  An obvious example is an endnote inset, which is defined in the 
18627 \begin_inset Flex Code
18628 status collapsed
18629
18630 \begin_layout Plain Layout
18631 endnote
18632 \end_layout
18633
18634 \end_inset
18635
18636  module.
18637 \end_layout
18638
18639 \begin_layout Itemize
18640 XML elements (
18641 \begin_inset Flex Code
18642 status collapsed
18643
18644 \begin_layout Plain Layout
18645 Element
18646 \end_layout
18647
18648 \end_inset
18649
18650 ): For use with DocBook classes.
18651 \end_layout
18652
18653 \begin_layout Standard
18654 Flex insets are defined using the 
18655 \begin_inset Flex Code
18656 status collapsed
18657
18658 \begin_layout Plain Layout
18659 InsetLayout
18660 \end_layout
18661
18662 \end_inset
18663
18664  tag, which shall be explained in a moment.
18665 \end_layout
18666
18667 \begin_layout Standard
18668 The 
18669 \begin_inset Flex Code
18670 status collapsed
18671
18672 \begin_layout Plain Layout
18673 InsetLayout
18674 \end_layout
18675
18676 \end_inset
18677
18678  tag also serves another function: It can be used to customize the general
18679  layout of many different types of insets.
18680  Currently, 
18681 \begin_inset Flex Code
18682 status collapsed
18683
18684 \begin_layout Plain Layout
18685 InsetLayout
18686 \end_layout
18687
18688 \end_inset
18689
18690  can be used to customize the layout parameters for footnotes, marginal
18691  notes, note insets, \SpecialChar TeX
18692  code (ERT) insets, branches, listings, indexes, boxes,
18693  tables, algorithms, URLs, and captions, as well as to define Flex insets.
18694 \end_layout
18695
18696 \begin_layout Standard
18697 The 
18698 \begin_inset Flex Code
18699 status collapsed
18700
18701 \begin_layout Plain Layout
18702 InsetLayout
18703 \end_layout
18704
18705 \end_inset
18706
18707  definition must begin with a line of the form:
18708 \end_layout
18709
18710 \begin_layout LyX-Code
18711 InsetLayout <type>
18712 \end_layout
18713
18714 \begin_layout Standard
18715 Here 
18716 \begin_inset Flex Code
18717 status collapsed
18718
18719 \begin_layout Plain Layout
18720 <Type>
18721 \end_layout
18722
18723 \end_inset
18724
18725  indicates the inset whose layout is being defined, and here there are four
18726  cases.
18727 \end_layout
18728
18729 \begin_layout Enumerate
18730 The layout for a pre-existing inset is being modified.
18731  In this case, can be 
18732 \begin_inset Flex Code
18733 status collapsed
18734
18735 \begin_layout Plain Layout
18736 <Type>
18737 \end_layout
18738
18739 \end_inset
18740
18741  any one of the following: 
18742 \begin_inset Flex Code
18743 status collapsed
18744
18745 \begin_layout Plain Layout
18746 Algorithm
18747 \end_layout
18748
18749 \end_inset
18750
18751
18752 \begin_inset Flex Code
18753 status collapsed
18754
18755 \begin_layout Plain Layout
18756 Branch
18757 \end_layout
18758
18759 \end_inset
18760
18761
18762 \begin_inset Flex Code
18763 status collapsed
18764
18765 \begin_layout Plain Layout
18766 Box
18767 \end_layout
18768
18769 \end_inset
18770
18771
18772 \begin_inset Flex Code
18773 status collapsed
18774
18775 \begin_layout Plain Layout
18776 Box:shaded
18777 \end_layout
18778
18779 \end_inset
18780
18781
18782 \begin_inset Flex Code
18783 status collapsed
18784
18785 \begin_layout Plain Layout
18786 Caption:Standard
18787 \end_layout
18788
18789 \end_inset
18790
18791
18792 \begin_inset Flex Code
18793 status collapsed
18794
18795 \begin_layout Plain Layout
18796 ERT
18797 \end_layout
18798
18799 \end_inset
18800
18801
18802 \begin_inset Flex Code
18803 status collapsed
18804
18805 \begin_layout Plain Layout
18806 Figure
18807 \end_layout
18808
18809 \end_inset
18810
18811
18812 \begin_inset Flex Code
18813 status collapsed
18814
18815 \begin_layout Plain Layout
18816 Foot
18817 \end_layout
18818
18819 \end_inset
18820
18821
18822 \begin_inset Flex Code
18823 status collapsed
18824
18825 \begin_layout Plain Layout
18826 Index
18827 \end_layout
18828
18829 \end_inset
18830
18831
18832 \begin_inset Flex Code
18833 status collapsed
18834
18835 \begin_layout Plain Layout
18836 Info
18837 \end_layout
18838
18839 \end_inset
18840
18841
18842 \begin_inset Flex Code
18843 status collapsed
18844
18845 \begin_layout Plain Layout
18846 Info:menu
18847 \end_layout
18848
18849 \end_inset
18850
18851
18852 \begin_inset Flex Code
18853 status collapsed
18854
18855 \begin_layout Plain Layout
18856 Info:shortcut
18857 \end_layout
18858
18859 \end_inset
18860
18861
18862 \begin_inset Flex Code
18863 status collapsed
18864
18865 \begin_layout Plain Layout
18866 Info:shortcuts
18867 \end_layout
18868
18869 \end_inset
18870
18871
18872 \begin_inset Flex Code
18873 status collapsed
18874
18875 \begin_layout Plain Layout
18876 Listings
18877 \end_layout
18878
18879 \end_inset
18880
18881
18882 \begin_inset Flex Code
18883 status collapsed
18884
18885 \begin_layout Plain Layout
18886 Marginal
18887 \end_layout
18888
18889 \end_inset
18890
18891
18892 \begin_inset Flex Code
18893 status collapsed
18894
18895 \begin_layout Plain Layout
18896 Note:Comment
18897 \end_layout
18898
18899 \end_inset
18900
18901
18902 \begin_inset Flex Code
18903 status collapsed
18904
18905 \begin_layout Plain Layout
18906 Note:Note
18907 \end_layout
18908
18909 \end_inset
18910
18911
18912 \begin_inset Flex Code
18913 status collapsed
18914
18915 \begin_layout Plain Layout
18916 Note:Greyedout
18917 \end_layout
18918
18919 \end_inset
18920
18921
18922 \begin_inset Flex Code
18923 status collapsed
18924
18925 \begin_layout Plain Layout
18926 Table
18927 \end_layout
18928
18929 \end_inset
18930
18931 , or 
18932 \begin_inset Flex Code
18933 status collapsed
18934
18935 \begin_layout Plain Layout
18936 URL
18937 \end_layout
18938
18939 \end_inset
18940
18941 .
18942 \end_layout
18943
18944 \begin_layout Enumerate
18945 The layout for a Flex inset is being defined.
18946  In this case, 
18947 \begin_inset Flex Code
18948 status collapsed
18949
18950 \begin_layout Plain Layout
18951 <Type>
18952 \end_layout
18953
18954 \end_inset
18955
18956  must be of the form 
18957 \begin_inset Quotes eld
18958 \end_inset
18959
18960
18961 \begin_inset Flex Code
18962 status collapsed
18963
18964 \begin_layout Plain Layout
18965 Flex:<name>
18966 \end_layout
18967
18968 \end_inset
18969
18970
18971 \begin_inset Quotes erd
18972 \end_inset
18973
18974 , where 
18975 \begin_inset Flex Code
18976 status collapsed
18977
18978 \begin_layout Plain Layout
18979 name
18980 \end_layout
18981
18982 \end_inset
18983
18984  may be be any valid identifier not used by a pre-existing Flex inset.
18985  The identifier may include spaces, but in that case the whole thing must
18986  be wrapped in quotes.
18987  Note that the definition of a flex inset 
18988 \emph on
18989 must 
18990 \emph default
18991 also include a 
18992 \begin_inset Flex Code
18993 status collapsed
18994
18995 \begin_layout Plain Layout
18996 LyXType
18997 \end_layout
18998
18999 \end_inset
19000
19001  entry, declaring which type of inset it defines.
19002 \end_layout
19003
19004 \begin_layout Enumerate
19005 The layout for user specific branch is being defined.
19006  In this case, 
19007 \begin_inset Flex Code
19008 status collapsed
19009
19010 \begin_layout Plain Layout
19011 <Type>
19012 \end_layout
19013
19014 \end_inset
19015
19016  must be of the form 
19017 \begin_inset Quotes eld
19018 \end_inset
19019
19020
19021 \begin_inset Flex Code
19022 status collapsed
19023
19024 \begin_layout Plain Layout
19025 Branch:<name>
19026 \end_layout
19027
19028 \end_inset
19029
19030
19031 \begin_inset Quotes erd
19032 \end_inset
19033
19034 , where 
19035 \begin_inset Flex Code
19036 status collapsed
19037
19038 \begin_layout Plain Layout
19039 name
19040 \end_layout
19041
19042 \end_inset
19043
19044  may be be any valid identifier of branch defined in user's document.
19045  The identifier may include spaces, but in that case the whole thing must
19046  be wrapped in quotes.
19047  The main purpose of this feature is to allow \SpecialChar LaTeX
19048  wrapping around specific
19049  branches as user needs.
19050 \end_layout
19051
19052 \begin_layout Enumerate
19053 The layout of a user (or class) specific caption is being defined.
19054  In this case, 
19055 \begin_inset Flex Code
19056 status collapsed
19057
19058 \begin_layout Plain Layout
19059 <Type>
19060 \end_layout
19061
19062 \end_inset
19063
19064  must be of the form 
19065 \begin_inset Quotes eld
19066 \end_inset
19067
19068
19069 \begin_inset Flex Code
19070 status collapsed
19071
19072 \begin_layout Plain Layout
19073 Caption:<name>
19074 \end_layout
19075
19076 \end_inset
19077
19078
19079 \begin_inset Quotes erd
19080 \end_inset
19081
19082 , where 
19083 \begin_inset Flex Code
19084 status collapsed
19085
19086 \begin_layout Plain Layout
19087 name
19088 \end_layout
19089
19090 \end_inset
19091
19092  specifies the name of the caption as it appears in the menu.
19093  Have a look at the standard caption (
19094 \begin_inset Flex Code
19095 status collapsed
19096
19097 \begin_layout Plain Layout
19098 Caption:Standard
19099 \end_layout
19100
19101 \end_inset
19102
19103 ), the specific captions of the KOMA-Script classes (
19104 \begin_inset Flex Code
19105 status collapsed
19106
19107 \begin_layout Plain Layout
19108 Caption:Above
19109 \end_layout
19110
19111 \end_inset
19112
19113
19114 \begin_inset Flex Code
19115 status collapsed
19116
19117 \begin_layout Plain Layout
19118 Caption:Below
19119 \end_layout
19120
19121 \end_inset
19122
19123 ) or the module 
19124 \family sans
19125 Multilingual
19126 \begin_inset space ~
19127 \end_inset
19128
19129 Captions
19130 \begin_inset Newline linebreak
19131 \end_inset
19132
19133
19134 \family default
19135 (
19136 \begin_inset Flex Code
19137 status collapsed
19138
19139 \begin_layout Plain Layout
19140 Caption:Bicaption
19141 \end_layout
19142
19143 \end_inset
19144
19145 ) for applications.
19146 \end_layout
19147
19148 \begin_layout Standard
19149 The 
19150 \begin_inset Flex Code
19151 status collapsed
19152
19153 \begin_layout Plain Layout
19154 InsetLayout
19155 \end_layout
19156
19157 \end_inset
19158
19159  definition can contain the following entries:
19160 \end_layout
19161
19162 \begin_layout Description
19163 \begin_inset Flex Code
19164 status collapsed
19165
19166 \begin_layout Plain Layout
19167 AddToToc
19168 \end_layout
19169
19170 \end_inset
19171
19172  [
19173 \begin_inset Flex Code
19174 status collapsed
19175
19176 \begin_layout Plain Layout
19177 string
19178 \end_layout
19179
19180 \end_inset
19181
19182 =""] This inset will appear in the table of contents of the given type.
19183  An empty string disables.
19184  See also the OutlinerName and the IsTocCaption commands.
19185  This is only implemented for Flex insets.
19186  Default: disabled.
19187 \end_layout
19188
19189 \begin_layout Description
19190 \begin_inset Flex Code
19191 status collapsed
19192
19193 \begin_layout Plain Layout
19194 Argument
19195 \end_layout
19196
19197 \end_inset
19198
19199  [
19200 \begin_inset Flex Code
19201 status collapsed
19202
19203 \begin_layout Plain Layout
19204 int
19205 \end_layout
19206
19207 \end_inset
19208
19209 ] Defines argument number of a command\SpecialChar breakableslash
19210 environment associated with the current
19211  layout.
19212  The definition must end with 
19213 \begin_inset Flex Code
19214 status collapsed
19215
19216 \begin_layout Plain Layout
19217 EndArgument
19218 \end_layout
19219
19220 \end_inset
19221
19222 .
19223  See 
19224 \begin_inset CommandInset ref
19225 LatexCommand ref
19226 reference "subsec:Paragraph-Styles"
19227
19228 \end_inset
19229
19230  for details.
19231 \end_layout
19232
19233 \begin_layout Description
19234 \begin_inset Flex Code
19235 status collapsed
19236
19237 \begin_layout Plain Layout
19238 BabelPreamble
19239 \end_layout
19240
19241 \end_inset
19242
19243  Preamble for changing language commands; see 
19244 \begin_inset CommandInset ref
19245 LatexCommand ref
19246 reference "subsec:I18n"
19247
19248 \end_inset
19249
19250 .
19251 \end_layout
19252
19253 \begin_layout Description
19254 \begin_inset Flex Code
19255 status collapsed
19256
19257 \begin_layout Plain Layout
19258 BgColor
19259 \end_layout
19260
19261 \end_inset
19262
19263  [
19264 \begin_inset Flex Code
19265 status collapsed
19266
19267 \begin_layout Plain Layout
19268 <name>
19269 \end_layout
19270
19271 \end_inset
19272
19273 ] The color for the inset's background.
19274  See 
19275 \begin_inset CommandInset ref
19276 LatexCommand ref
19277 reference "chap:Names-of-colors"
19278
19279 \end_inset
19280
19281  for a list of the available color names.
19282 \end_layout
19283
19284 \begin_layout Description
19285 \begin_inset Flex Code
19286 status collapsed
19287
19288 \begin_layout Plain Layout
19289 ContentAsLabel
19290 \end_layout
19291
19292 \end_inset
19293
19294  [
19295 \begin_inset Flex Code
19296 status collapsed
19297
19298 \begin_layout Plain Layout
19299
19300 \emph on
19301 0
19302 \end_layout
19303
19304 \end_inset
19305
19306 ,
19307 \begin_inset space \thinspace{}
19308 \end_inset
19309
19310
19311 \begin_inset Flex Code
19312 status collapsed
19313
19314 \begin_layout Plain Layout
19315 1
19316 \end_layout
19317
19318 \end_inset
19319
19320 ] Whether to use the content of the inset as the label, when the inset is
19321  closed.
19322  Default is false.
19323 \end_layout
19324
19325 \begin_layout Description
19326 \begin_inset Flex Code
19327 status collapsed
19328
19329 \begin_layout Plain Layout
19330 CopyStyle
19331 \end_layout
19332
19333 \end_inset
19334
19335  [
19336 \begin_inset Flex Code
19337 status collapsed
19338
19339 \begin_layout Plain Layout
19340 <type>
19341 \end_layout
19342
19343 \end_inset
19344
19345 ] As with paragraph styles, see 
19346 \begin_inset CommandInset ref
19347 LatexCommand ref
19348 reference "subsec:Paragraph-Styles"
19349
19350 \end_inset
19351
19352 .
19353  Note that you need to specify the complete type, e.
19354 \begin_inset space \thinspace{}
19355 \end_inset
19356
19357 g.
19358 \begin_inset space ~
19359 \end_inset
19360
19361
19362 \begin_inset Flex Code
19363 status collapsed
19364
19365 \begin_layout Plain Layout
19366 CopyStyle Flex:<name>
19367 \end_layout
19368
19369 \end_inset
19370
19371 .
19372 \end_layout
19373
19374 \begin_layout Description
19375 \begin_inset Flex Code
19376 status collapsed
19377
19378 \begin_layout Plain Layout
19379 CustomPars
19380 \end_layout
19381
19382 \end_inset
19383
19384  [
19385 \begin_inset Flex Code
19386 status collapsed
19387
19388 \begin_layout Plain Layout
19389
19390 \emph on
19391 0
19392 \end_layout
19393
19394 \end_inset
19395
19396 ,
19397 \begin_inset space \thinspace{}
19398 \end_inset
19399
19400
19401 \begin_inset Flex Code
19402 status collapsed
19403
19404 \begin_layout Plain Layout
19405 1
19406 \end_layout
19407
19408 \end_inset
19409
19410 ] Indicates whether the user may employ the Paragraph Settings dialog to
19411  customize the paragraph.
19412 \end_layout
19413
19414 \begin_layout Description
19415 \begin_inset Flex Code
19416 status collapsed
19417
19418 \begin_layout Plain Layout
19419 Decoration
19420 \end_layout
19421
19422 \end_inset
19423
19424  can be 
19425 \begin_inset Flex Code
19426 status collapsed
19427
19428 \begin_layout Plain Layout
19429 Classic
19430 \end_layout
19431
19432 \end_inset
19433
19434
19435 \begin_inset Flex Code
19436 status collapsed
19437
19438 \begin_layout Plain Layout
19439 Minimalistic
19440 \end_layout
19441
19442 \end_inset
19443
19444 , or 
19445 \begin_inset Flex Code
19446 status collapsed
19447
19448 \begin_layout Plain Layout
19449 Conglomerate
19450 \end_layout
19451
19452 \end_inset
19453
19454 , describing the rendering style used for the inset's frame and buttons.
19455  Footnotes generally use 
19456 \begin_inset Flex Code
19457 status collapsed
19458
19459 \begin_layout Plain Layout
19460 Classic
19461 \end_layout
19462
19463 \end_inset
19464
19465 , ERT insets generally 
19466 \begin_inset Flex Code
19467 status collapsed
19468
19469 \begin_layout Plain Layout
19470 Minimalistic
19471 \end_layout
19472
19473 \end_inset
19474
19475 , and character styles 
19476 \begin_inset Flex Code
19477 status collapsed
19478
19479 \begin_layout Plain Layout
19480 Conglomerate
19481 \end_layout
19482
19483 \end_inset
19484
19485 .
19486 \end_layout
19487
19488 \begin_layout Description
19489 \begin_inset Flex Code
19490 status collapsed
19491
19492 \begin_layout Plain Layout
19493 Display
19494 \end_layout
19495
19496 \end_inset
19497
19498  [
19499 \begin_inset Flex Code
19500 status collapsed
19501
19502 \begin_layout Plain Layout
19503 0
19504 \end_layout
19505
19506 \end_inset
19507
19508 ,
19509 \emph on
19510
19511 \begin_inset space \thinspace{}
19512 \end_inset
19513
19514
19515 \emph default
19516
19517 \begin_inset Flex Code
19518 status collapsed
19519
19520 \begin_layout Plain Layout
19521
19522 \emph on
19523 1
19524 \end_layout
19525
19526 \end_inset
19527
19528 ] Only useful if 
19529 \begin_inset Flex Code
19530 status collapsed
19531
19532 \begin_layout Plain Layout
19533 LatexType
19534 \end_layout
19535
19536 \end_inset
19537
19538  is 
19539 \begin_inset Flex Code
19540 status collapsed
19541
19542 \begin_layout Plain Layout
19543 Environment
19544 \end_layout
19545
19546 \end_inset
19547
19548 .
19549  Indicates whether the environment will stand on its own in the output or
19550  will appear inline with the surrounding text.
19551  If set to false, it is supposed that the \SpecialChar LaTeX
19552  environment ignores white space
19553  (including one newline character) after the 
19554 \begin_inset Flex Code
19555 status collapsed
19556
19557 \begin_layout Plain Layout
19558
19559 \backslash
19560 begin{
19561 \emph on
19562 LatexName
19563 \emph default
19564 }
19565 \end_layout
19566
19567 \end_inset
19568
19569  and 
19570 \begin_inset Flex Code
19571 status collapsed
19572
19573 \begin_layout Plain Layout
19574
19575 \backslash
19576 end{
19577 \emph on
19578 LatexName
19579 \emph default
19580 }
19581 \end_layout
19582
19583 \end_inset
19584
19585  tags.
19586  Default is true.
19587 \change_inserted 731793113 1538674858
19588
19589 \end_layout
19590
19591 \begin_layout Description
19592
19593 \change_inserted 731793113 1538674891
19594 \begin_inset Flex Code
19595 status open
19596
19597 \begin_layout Plain Layout
19598
19599 \change_inserted 731793113 1538674863
19600 EditExternal
19601 \change_unchanged
19602
19603 \end_layout
19604
19605 \end_inset
19606
19607  [
19608 \emph on
19609 0
19610 \emph default
19611 ,1] Allow the contents of the inset to be edited externally (using whatever
19612  editor is defined for the document's output format).
19613 \change_unchanged
19614
19615 \end_layout
19616
19617 \begin_layout Description
19618 \begin_inset Flex Code
19619 status collapsed
19620
19621 \begin_layout Plain Layout
19622 End
19623 \end_layout
19624
19625 \end_inset
19626
19627  Required at the end of the 
19628 \begin_inset Flex Code
19629 status collapsed
19630
19631 \begin_layout Plain Layout
19632 InsetLayout
19633 \end_layout
19634
19635 \end_inset
19636
19637  declarations.
19638 \end_layout
19639
19640 \begin_layout Description
19641 \begin_inset Flex Code
19642 status collapsed
19643
19644 \begin_layout Plain Layout
19645 Font
19646 \end_layout
19647
19648 \end_inset
19649
19650  The font used for both the text body 
19651 \emph on
19652 and
19653 \emph default
19654  the label.
19655  See 
19656 \begin_inset CommandInset ref
19657 LatexCommand ref
19658 reference "subsec:Font-description"
19659
19660 \end_inset
19661
19662 .
19663  Note that defining this font automatically defines the 
19664 \begin_inset Flex Code
19665 status collapsed
19666
19667 \begin_layout Plain Layout
19668 LabelFont
19669 \end_layout
19670
19671 \end_inset
19672
19673  to the same value, so define this first and define 
19674 \begin_inset Flex Code
19675 status collapsed
19676
19677 \begin_layout Plain Layout
19678 LabelFont
19679 \end_layout
19680
19681 \end_inset
19682
19683  later if you want them to be different.
19684 \end_layout
19685
19686 \begin_layout Description
19687 \begin_inset Flex Code
19688 status collapsed
19689
19690 \begin_layout Plain Layout
19691 FixedWidthPreambleEncoding
19692 \end_layout
19693
19694 \end_inset
19695
19696  [
19697 \begin_inset Flex Code
19698 status collapsed
19699
19700 \begin_layout Plain Layout
19701
19702 \emph on
19703 0
19704 \end_layout
19705
19706 \end_inset
19707
19708 ,
19709 \begin_inset space \thinspace{}
19710 \end_inset
19711
19712
19713 \begin_inset Flex Code
19714 status collapsed
19715
19716 \begin_layout Plain Layout
19717 1
19718 \end_layout
19719
19720 \end_inset
19721
19722 ] Force a fixed width encoding for the translated contents of 
19723 \begin_inset Flex Code
19724 status collapsed
19725
19726 \begin_layout Plain Layout
19727 BabelPreamble
19728 \end_layout
19729
19730 \end_inset
19731
19732  and 
19733 \begin_inset Flex Code
19734 status collapsed
19735
19736 \begin_layout Plain Layout
19737 LangPreamble
19738 \end_layout
19739
19740 \end_inset
19741
19742  code generated by this layout.
19743  This is needed for special \SpecialChar LaTeX
19744 -packages like 
19745 \family typewriter
19746 listings
19747 \family default
19748  that do not work with variable width encodings such as 
19749 \family sans
19750 utf8
19751 \family default
19752 .
19753  This setting is ignored if fully Unicode aware \SpecialChar LaTeX
19754  backends such as Xe\SpecialChar TeX
19755  or
19756  Lua\SpecialChar TeX
19757  are used.
19758 \end_layout
19759
19760 \begin_layout Description
19761 \begin_inset Flex Code
19762 status collapsed
19763
19764 \begin_layout Plain Layout
19765 ForceLocalFontSwitch
19766 \end_layout
19767
19768 \end_inset
19769
19770  [
19771 \begin_inset Flex Code
19772 status collapsed
19773
19774 \begin_layout Plain Layout
19775
19776 \emph on
19777 0
19778 \end_layout
19779
19780 \end_inset
19781
19782 ,
19783 \begin_inset space \thinspace{}
19784 \end_inset
19785
19786
19787 \begin_inset Flex Code
19788 status collapsed
19789
19790 \begin_layout Plain Layout
19791 1
19792 \end_layout
19793
19794 \end_inset
19795
19796 ] When using babel, always use a local font switch (
19797 \begin_inset Flex Code
19798 status collapsed
19799
19800 \begin_layout Plain Layout
19801
19802 \backslash
19803 foreignlanguage
19804 \end_layout
19805
19806 \end_inset
19807
19808 ), never a global one (such as 
19809 \begin_inset Flex Code
19810 status collapsed
19811
19812 \begin_layout Plain Layout
19813
19814 \backslash
19815 selectlanguage
19816 \end_layout
19817
19818 \end_inset
19819
19820 ).
19821 \end_layout
19822
19823 \begin_layout Description
19824 \begin_inset Flex Code
19825 status collapsed
19826
19827 \begin_layout Plain Layout
19828 ForceLTR
19829 \end_layout
19830
19831 \end_inset
19832
19833  [
19834 \begin_inset Flex Code
19835 status collapsed
19836
19837 \begin_layout Plain Layout
19838
19839 \emph on
19840 0
19841 \end_layout
19842
19843 \end_inset
19844
19845 ,
19846 \begin_inset space \thinspace{}
19847 \end_inset
19848
19849
19850 \begin_inset Flex Code
19851 status collapsed
19852
19853 \begin_layout Plain Layout
19854 1
19855 \end_layout
19856
19857 \end_inset
19858
19859 ] Force the 
19860 \begin_inset Quotes eld
19861 \end_inset
19862
19863 latex
19864 \begin_inset Quotes erd
19865 \end_inset
19866
19867  language, leading to Left-to-Right (Latin) output, e.
19868 \begin_inset space \thinspace{}
19869 \end_inset
19870
19871 g.
19872 \begin_inset space \space{}
19873 \end_inset
19874
19875 in \SpecialChar TeX
19876  code or URL.
19877  A kludge.
19878 \end_layout
19879
19880 \begin_layout Description
19881 \begin_inset Flex Code
19882 status collapsed
19883
19884 \begin_layout Plain Layout
19885 ForceOwnlines
19886 \end_layout
19887
19888 \end_inset
19889
19890  [
19891 \begin_inset Flex Code
19892 status collapsed
19893
19894 \begin_layout Plain Layout
19895
19896 \emph on
19897 0
19898 \end_layout
19899
19900 \end_inset
19901
19902 ,
19903 \begin_inset space \thinspace{}
19904 \end_inset
19905
19906
19907 \begin_inset Flex Code
19908 status collapsed
19909
19910 \begin_layout Plain Layout
19911 1
19912 \end_layout
19913
19914 \end_inset
19915
19916 ] Force a a line break in the \SpecialChar LaTeX
19917  output before the inset starts and after
19918  the inset ends.
19919  This assures the inset itself is output on its own lines, for parsing purposes.
19920 \end_layout
19921
19922 \begin_layout Description
19923 \begin_inset Flex Code
19924 status collapsed
19925
19926 \begin_layout Plain Layout
19927 ForcePlain
19928 \end_layout
19929
19930 \end_inset
19931
19932  [
19933 \begin_inset Flex Code
19934 status collapsed
19935
19936 \begin_layout Plain Layout
19937
19938 \emph on
19939 0
19940 \end_layout
19941
19942 \end_inset
19943
19944 ,
19945 \begin_inset space \thinspace{}
19946 \end_inset
19947
19948
19949 \begin_inset Flex Code
19950 status collapsed
19951
19952 \begin_layout Plain Layout
19953 1
19954 \end_layout
19955
19956 \end_inset
19957
19958 ] Indicates whether the 
19959 \begin_inset Flex Code
19960 status collapsed
19961
19962 \begin_layout Plain Layout
19963 PlainLayout
19964 \end_layout
19965
19966 \end_inset
19967
19968  should be used or, instead, the user can change the paragraph style used
19969  in the inset.
19970  Default is false.
19971 \end_layout
19972
19973 \begin_layout Description
19974 \begin_inset Flex Code
19975 status collapsed
19976
19977 \begin_layout Plain Layout
19978 FreeSpacing
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 ] As with paragraph styles, see 
20010 \begin_inset CommandInset ref
20011 LatexCommand ref
20012 reference "subsec:Paragraph-Styles"
20013
20014 \end_inset
20015
20016 .
20017 \end_layout
20018
20019 \begin_layout Description
20020 \begin_inset Flex Code
20021 status collapsed
20022
20023 \begin_layout Plain Layout
20024 HTML*
20025 \end_layout
20026
20027 \end_inset
20028
20029  These tags control the XHTML output.
20030  See 
20031 \begin_inset CommandInset ref
20032 LatexCommand ref
20033 reference "sec:Tags-for-XHTML"
20034
20035 \end_inset
20036
20037 .
20038 \end_layout
20039
20040 \begin_layout Description
20041 \begin_inset Flex Code
20042 status collapsed
20043
20044 \begin_layout Plain Layout
20045 InToc
20046 \end_layout
20047
20048 \end_inset
20049
20050  [
20051 \begin_inset Flex Code
20052 status collapsed
20053
20054 \begin_layout Plain Layout
20055
20056 \emph on
20057 0
20058 \end_layout
20059
20060 \end_inset
20061
20062 ,
20063 \begin_inset space \thinspace{}
20064 \end_inset
20065
20066
20067 \begin_inset Flex Code
20068 status collapsed
20069
20070 \begin_layout Plain Layout
20071 1
20072 \end_layout
20073
20074 \end_inset
20075
20076 ] Whether to include the contents of this inset in the strings generated
20077  for the `Outline' pane for all table of contents, regardless of the AddToToc
20078  setting.
20079  One would not, for example, want the content of a footnote in a section
20080  header to be included in the TOC displayed in the outline, but one would
20081  normally want the content of a character style displayed.
20082  Default is false: not to include.
20083 \end_layout
20084
20085 \begin_layout Description
20086 \begin_inset Flex Code
20087 status collapsed
20088
20089 \begin_layout Plain Layout
20090 IsTocCaption
20091 \end_layout
20092
20093 \end_inset
20094
20095  [
20096 \begin_inset Flex Code
20097 status collapsed
20098
20099 \begin_layout Plain Layout
20100
20101 \emph on
20102 0
20103 \end_layout
20104
20105 \end_inset
20106
20107 ,
20108 \begin_inset space \thinspace{}
20109 \end_inset
20110
20111
20112 \begin_inset Flex Code
20113 status collapsed
20114
20115 \begin_layout Plain Layout
20116 1
20117 \end_layout
20118
20119 \end_inset
20120
20121 ] If this is set to 1 and AddToToc is enabled, the inset adds a summary
20122  of its contents in its item in the table of contents.
20123  Otherwise, only the label appears.
20124 \end_layout
20125
20126 \begin_layout Description
20127 \begin_inset Flex Code
20128 status collapsed
20129
20130 \begin_layout Plain Layout
20131 KeepEmpty
20132 \end_layout
20133
20134 \end_inset
20135
20136  [
20137 \emph on
20138
20139 \begin_inset Flex Code
20140 status collapsed
20141
20142 \begin_layout Plain Layout
20143 0
20144 \end_layout
20145
20146 \end_inset
20147
20148
20149 \emph default
20150 ,
20151 \begin_inset space \thinspace{}
20152 \end_inset
20153
20154
20155 \begin_inset Flex Code
20156 status collapsed
20157
20158 \begin_layout Plain Layout
20159 1
20160 \end_layout
20161
20162 \end_inset
20163
20164 ] As with paragraph styles, see 
20165 \begin_inset CommandInset ref
20166 LatexCommand ref
20167 reference "subsec:Paragraph-Styles"
20168
20169 \end_inset
20170
20171 .
20172 \end_layout
20173
20174 \begin_layout Description
20175 \begin_inset Flex Code
20176 status collapsed
20177
20178 \begin_layout Plain Layout
20179 LabelFont
20180 \end_layout
20181
20182 \end_inset
20183
20184  The font used for the label.
20185  See 
20186 \begin_inset CommandInset ref
20187 LatexCommand ref
20188 reference "subsec:Font-description"
20189
20190 \end_inset
20191
20192 .
20193  Note that this definition can never appear before 
20194 \begin_inset Flex Code
20195 status collapsed
20196
20197 \begin_layout Plain Layout
20198 Font
20199 \end_layout
20200
20201 \end_inset
20202
20203 , lest it be ineffective.
20204 \end_layout
20205
20206 \begin_layout Description
20207 \begin_inset Flex Code
20208 status collapsed
20209
20210 \begin_layout Plain Layout
20211 LabelString
20212 \end_layout
20213
20214 \end_inset
20215
20216  [
20217 \begin_inset Flex Code
20218 status collapsed
20219
20220 \begin_layout Plain Layout
20221 string
20222 \end_layout
20223
20224 \end_inset
20225
20226 =
20227 \begin_inset Quotes erd
20228 \end_inset
20229
20230
20231 \begin_inset Quotes erd
20232 \end_inset
20233
20234 ] What will be displayed on the button or elsewhere as the inset label.
20235  Some inset types (
20236 \begin_inset Flex Code
20237 status collapsed
20238
20239 \begin_layout Plain Layout
20240 \SpecialChar TeX
20241  code
20242 \end_layout
20243
20244 \end_inset
20245
20246  and 
20247 \begin_inset Flex Code
20248 status collapsed
20249
20250 \begin_layout Plain Layout
20251 Branch
20252 \end_layout
20253
20254 \end_inset
20255
20256 ) modify this label on the fly.
20257 \end_layout
20258
20259 \begin_layout Description
20260 \begin_inset Flex Code
20261 status collapsed
20262
20263 \begin_layout Plain Layout
20264 LangPreamble
20265 \end_layout
20266
20267 \end_inset
20268
20269  Language dependent preamble; see 
20270 \begin_inset CommandInset ref
20271 LatexCommand ref
20272 reference "subsec:I18n"
20273
20274 \end_inset
20275
20276 .
20277 \end_layout
20278
20279 \begin_layout Description
20280 \begin_inset Flex Code
20281 status collapsed
20282
20283 \begin_layout Plain Layout
20284 LatexName
20285 \end_layout
20286
20287 \end_inset
20288
20289  [
20290 \begin_inset Flex Code
20291 status collapsed
20292
20293 \begin_layout Plain Layout
20294 <name>
20295 \end_layout
20296
20297 \end_inset
20298
20299 ] The name of the corresponding \SpecialChar LaTeX
20300  stuff.
20301  Either the environment or command name.
20302 \end_layout
20303
20304 \begin_layout Description
20305 \begin_inset Flex Code
20306 status collapsed
20307
20308 \begin_layout Plain Layout
20309 LatexParam
20310 \end_layout
20311
20312 \end_inset
20313
20314  [
20315 \begin_inset Flex Code
20316 status collapsed
20317
20318 \begin_layout Plain Layout
20319 <parameter>
20320 \end_layout
20321
20322 \end_inset
20323
20324 ] The optional parameter for the corresponding 
20325 \begin_inset Flex Code
20326 status collapsed
20327
20328 \begin_layout Plain Layout
20329 LatexName
20330 \end_layout
20331
20332 \end_inset
20333
20334  stuff, including possible bracket pairs like 
20335 \begin_inset Flex Code
20336 status collapsed
20337
20338 \begin_layout Plain Layout
20339 []
20340 \end_layout
20341
20342 \end_inset
20343
20344 .
20345  This parameter cannot be changed from within \SpecialChar LyX
20346  (use 
20347 \begin_inset Flex Code
20348 status collapsed
20349
20350 \begin_layout Plain Layout
20351 Argument
20352 \end_layout
20353
20354 \end_inset
20355
20356  for customizable parameters).
20357  It will be output as is after all \SpecialChar LaTeX
20358  
20359 \begin_inset Flex Code
20360 status collapsed
20361
20362 \begin_layout Plain Layout
20363 Argument
20364 \end_layout
20365
20366 \end_inset
20367
20368 s.
20369 \end_layout
20370
20371 \begin_layout Description
20372 \begin_inset Flex Code
20373 status collapsed
20374
20375 \begin_layout Plain Layout
20376 LatexType
20377 \end_layout
20378
20379 \end_inset
20380
20381  [
20382 \begin_inset Flex Code
20383 status collapsed
20384
20385 \begin_layout Plain Layout
20386 Command, Environment, None
20387 \end_layout
20388
20389 \end_inset
20390
20391 ] How the style should be translated into \SpecialChar LaTeX
20392 .
20393 \begin_inset Foot
20394 status collapsed
20395
20396 \begin_layout Plain Layout
20397 \begin_inset Flex Code
20398 status collapsed
20399
20400 \begin_layout Plain Layout
20401 LatexType
20402 \end_layout
20403
20404 \end_inset
20405
20406  is perhaps a bit misleading, since these rules apply to SGML classes too.
20407  Visit the SGML class files for specific examples.
20408 \end_layout
20409
20410 \end_inset
20411
20412
20413 \end_layout
20414
20415 \begin_deeper
20416 \begin_layout Description
20417 \begin_inset Flex Code
20418 status collapsed
20419
20420 \begin_layout Plain Layout
20421 None
20422 \end_layout
20423
20424 \end_inset
20425
20426  means nothing special
20427 \end_layout
20428
20429 \begin_layout Description
20430 \begin_inset Flex Code
20431 status collapsed
20432
20433 \begin_layout Plain Layout
20434 Command
20435 \end_layout
20436
20437 \end_inset
20438
20439  means 
20440 \begin_inset Flex Code
20441 status collapsed
20442
20443 \begin_layout Plain Layout
20444
20445 \backslash
20446
20447 \emph on
20448 LatexName
20449 \emph default
20450 {\SpecialChar ldots
20451 }
20452 \end_layout
20453
20454 \end_inset
20455
20456
20457 \end_layout
20458
20459 \begin_layout Description
20460 \begin_inset Flex Code
20461 status collapsed
20462
20463 \begin_layout Plain Layout
20464 Environment
20465 \end_layout
20466
20467 \end_inset
20468
20469  means 
20470 \begin_inset Flex Code
20471 status collapsed
20472
20473 \begin_layout Plain Layout
20474
20475 \backslash
20476 begin{
20477 \emph on
20478 LatexName
20479 \emph default
20480 }\SpecialChar ldots
20481
20482 \backslash
20483 end{
20484 \emph on
20485 LatexName
20486 \emph default
20487 }
20488 \end_layout
20489
20490 \end_inset
20491
20492
20493 \end_layout
20494
20495 \begin_layout Standard
20496 Putting the last few things together, the \SpecialChar LaTeX
20497  output will be either: 
20498 \end_layout
20499
20500 \begin_layout LyX-Code
20501
20502 \backslash
20503 LatexName[LatexParam]{\SpecialChar ldots
20504 }
20505 \end_layout
20506
20507 \begin_layout Standard
20508 or: 
20509 \end_layout
20510
20511 \begin_layout LyX-Code
20512
20513 \backslash
20514 begin{LatexName}[LatexParam] \SpecialChar ldots
20515  
20516 \backslash
20517 end{LatexName}
20518 \end_layout
20519
20520 \begin_layout Standard
20521 depending upon the \SpecialChar LaTeX
20522  type.
20523 \end_layout
20524
20525 \end_deeper
20526 \begin_layout Description
20527 \begin_inset Flex Code
20528 status collapsed
20529
20530 \begin_layout Plain Layout
20531 LeftDelim
20532 \end_layout
20533
20534 \end_inset
20535
20536  [
20537 \begin_inset Flex Code
20538 status collapsed
20539
20540 \begin_layout Plain Layout
20541 string
20542 \end_layout
20543
20544 \end_inset
20545
20546 ] A string that is put at the beginning of the layout content.
20547  A line break in the output can be indicated by 
20548 \begin_inset Flex Code
20549 status collapsed
20550
20551 \begin_layout Plain Layout
20552 <br/>
20553 \end_layout
20554
20555 \end_inset
20556
20557 .
20558 \end_layout
20559
20560 \begin_layout Description
20561 \begin_inset Flex Code
20562 status collapsed
20563
20564 \begin_layout Plain Layout
20565 LyxType
20566 \end_layout
20567
20568 \end_inset
20569
20570  Can be 
20571 \begin_inset Flex Code
20572 status collapsed
20573
20574 \begin_layout Plain Layout
20575 charstyle
20576 \end_layout
20577
20578 \end_inset
20579
20580
20581 \begin_inset Flex Code
20582 status collapsed
20583
20584 \begin_layout Plain Layout
20585 custom
20586 \end_layout
20587
20588 \end_inset
20589
20590
20591 \begin_inset Flex Code
20592 status collapsed
20593
20594 \begin_layout Plain Layout
20595 element
20596 \end_layout
20597
20598 \end_inset
20599
20600  or 
20601 \begin_inset Flex Code
20602 status collapsed
20603
20604 \begin_layout Plain Layout
20605 end
20606 \end_layout
20607
20608 \end_inset
20609
20610  (indicating a dummy definition ending definitions of charstyles, etc).
20611  This entry is required in and is only meaningful for Flex insets.
20612  Among other things, it determines on which menu this inset will appear.
20613  Setting 
20614 \begin_inset Flex Code
20615 status collapsed
20616
20617 \begin_layout Plain Layout
20618 LyxType
20619 \end_layout
20620
20621 \end_inset
20622
20623  to 
20624 \begin_inset Flex Code
20625 status collapsed
20626
20627 \begin_layout Plain Layout
20628 charstyle
20629 \end_layout
20630
20631 \end_inset
20632
20633  will automatically set 
20634 \begin_inset Flex Code
20635 status collapsed
20636
20637 \begin_layout Plain Layout
20638 MultiPar
20639 \end_layout
20640
20641 \end_inset
20642
20643  to false and 
20644 \begin_inset Flex Code
20645 status collapsed
20646
20647 \begin_layout Plain Layout
20648 ForcePlain
20649 \end_layout
20650
20651 \end_inset
20652
20653  to true.
20654  
20655 \begin_inset Flex Code
20656 status collapsed
20657
20658 \begin_layout Plain Layout
20659 MultiPar
20660 \end_layout
20661
20662 \end_inset
20663
20664  can be set to true, or 
20665 \begin_inset Flex Code
20666 status collapsed
20667
20668 \begin_layout Plain Layout
20669 ForcePlain
20670 \end_layout
20671
20672 \end_inset
20673
20674  to false, for 
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  insets by setting it 
20685 \emph on
20686 after
20687 \emph default
20688  you set the 
20689 \begin_inset Flex Code
20690 status collapsed
20691
20692 \begin_layout Plain Layout
20693 LyxType
20694 \end_layout
20695
20696 \end_inset
20697
20698 .
20699 \change_inserted -712698321 1555575738
20700
20701 \end_layout
20702
20703 \begin_layout Description
20704
20705 \change_inserted -712698321 1555575844
20706 \begin_inset Flex Code
20707 status collapsed
20708
20709 \begin_layout Plain Layout
20710
20711 \change_inserted -712698321 1555575740
20712 MenuString
20713 \end_layout
20714
20715 \end_inset
20716
20717  
20718 \begin_inset Flex Code
20719 status collapsed
20720
20721 \begin_layout Plain Layout
20722
20723 \change_inserted -712698321 1555575740
20724 [string]
20725 \end_layout
20726
20727 \end_inset
20728
20729  A dedicated string for the menu.
20730  You can define an accelerator by appending the respective character to
20731  the string, divided by 
20732 \begin_inset Quotes eld
20733 \end_inset
20734
20735 |
20736 \begin_inset Quotes erd
20737 \end_inset
20738
20739  (e.
20740 \begin_inset space \thinspace{}
20741 \end_inset
20742
20743 g.
20744 \begin_inset space \space{}
20745 \end_inset
20746
20747
20748 \begin_inset Quotes eld
20749 \end_inset
20750
20751
20752 \begin_inset Flex Code
20753 status collapsed
20754
20755 \begin_layout Plain Layout
20756
20757 \change_inserted -712698321 1555575781
20758 My Inset|M
20759 \end_layout
20760
20761 \end_inset
20762
20763
20764 \begin_inset Quotes erd
20765 \end_inset
20766
20767 ).
20768  This specification is optional.
20769  If it is not given the inset name as specified in the type declaration
20770  will be used instead for the menu.
20771 \change_unchanged
20772
20773 \end_layout
20774
20775 \begin_layout Description
20776 \begin_inset Flex Code
20777 status collapsed
20778
20779 \begin_layout Plain Layout
20780 MultiPar
20781 \end_layout
20782
20783 \end_inset
20784
20785  [
20786 \begin_inset Flex Code
20787 status collapsed
20788
20789 \begin_layout Plain Layout
20790
20791 \emph on
20792 0
20793 \end_layout
20794
20795 \end_inset
20796
20797 ,
20798 \begin_inset space \thinspace{}
20799 \end_inset
20800
20801
20802 \begin_inset Flex Code
20803 status collapsed
20804
20805 \begin_layout Plain Layout
20806 1
20807 \end_layout
20808
20809 \end_inset
20810
20811 ] Whether multiple paragraphs are permitted in this inset.
20812  This will also set 
20813 \begin_inset Flex Code
20814 status collapsed
20815
20816 \begin_layout Plain Layout
20817 CustomPars
20818 \end_layout
20819
20820 \end_inset
20821
20822  to the same value and 
20823 \begin_inset Flex Code
20824 status collapsed
20825
20826 \begin_layout Plain Layout
20827 ForcePlain
20828 \end_layout
20829
20830 \end_inset
20831
20832  to the opposite value.
20833  These can be reset to other values, if they are used 
20834 \emph on
20835 after
20836 \emph default
20837  
20838 \begin_inset Flex Code
20839 status collapsed
20840
20841 \begin_layout Plain Layout
20842 MultiPar
20843 \end_layout
20844
20845 \end_inset
20846
20847 .
20848  Default is true.
20849 \end_layout
20850
20851 \begin_layout Description
20852 \begin_inset Flex Code
20853 status collapsed
20854
20855 \begin_layout Plain Layout
20856 NeedProtect
20857 \end_layout
20858
20859 \end_inset
20860
20861  [
20862 \begin_inset Flex Code
20863 status collapsed
20864
20865 \begin_layout Plain Layout
20866
20867 \emph on
20868 0
20869 \end_layout
20870
20871 \end_inset
20872
20873 ,
20874 \begin_inset space \thinspace{}
20875 \end_inset
20876
20877
20878 \begin_inset Flex Code
20879 status collapsed
20880
20881 \begin_layout Plain Layout
20882 1
20883 \end_layout
20884
20885 \end_inset
20886
20887 ] Whether fragile commands in this inset should be 
20888 \begin_inset Flex Code
20889 status collapsed
20890
20891 \begin_layout Plain Layout
20892
20893 \backslash
20894 protect
20895 \end_layout
20896
20897 \end_inset
20898
20899 'ed.
20900  (Note: This is 
20901 \emph on
20902 not
20903 \emph default
20904  whether the command should itself be protected.) Default is false.
20905 \change_inserted -712698321 1523633958
20906
20907 \end_layout
20908
20909 \begin_layout Description
20910
20911 \change_inserted -712698321 1552395786
20912 \begin_inset Flex Code
20913 status collapsed
20914
20915 \begin_layout Plain Layout
20916
20917 \change_inserted -712698321 1523633961
20918 NeedCProtect
20919 \end_layout
20920
20921 \end_inset
20922
20923  [
20924 \begin_inset Flex Code
20925 status collapsed
20926
20927 \begin_layout Plain Layout
20928
20929 \change_inserted -712698321 1523633958
20930
20931 \emph on
20932 0
20933 \end_layout
20934
20935 \end_inset
20936
20937 ,
20938 \begin_inset space \thinspace{}
20939 \end_inset
20940
20941
20942 \begin_inset Flex Code
20943 status collapsed
20944
20945 \begin_layout Plain Layout
20946
20947 \change_inserted -712698321 1523633958
20948 1
20949 \end_layout
20950
20951 \end_inset
20952
20953 ] This causes macros that contain this inset to be protected with 
20954 \begin_inset Flex Code
20955 status collapsed
20956
20957 \begin_layout Plain Layout
20958
20959 \change_inserted -712698321 1523634038
20960
20961 \backslash
20962 cprotect
20963 \change_unchanged
20964
20965 \end_layout
20966
20967 \end_inset
20968
20969  (cf.
20970  package 
20971 \family sans
20972 cprotect
20973 \family default
20974 ) if necessary and thus allows (some) verbatim stuff in macros.
20975  Default is false.
20976 \end_layout
20977
20978 \begin_layout Description
20979
20980 \change_inserted -712698321 1555579651
20981 \begin_inset Flex Code
20982 status collapsed
20983
20984 \begin_layout Plain Layout
20985
20986 \change_inserted -712698321 1552395787
20987 NeedMBoxProtect
20988 \end_layout
20989
20990 \end_inset
20991
20992  [
20993 \begin_inset Flex Code
20994 status collapsed
20995
20996 \begin_layout Plain Layout
20997
20998 \change_inserted -712698321 1552395787
20999
21000 \emph on
21001 0
21002 \end_layout
21003
21004 \end_inset
21005
21006 ,
21007 \begin_inset space \thinspace{}
21008 \end_inset
21009
21010
21011 \begin_inset Flex Code
21012 status collapsed
21013
21014 \begin_layout Plain Layout
21015
21016 \change_inserted -712698321 1552395787
21017 1
21018 \end_layout
21019
21020 \end_inset
21021
21022 ] Whether specific commands in this inset (such as 
21023 \begin_inset Flex Code
21024 status collapsed
21025
21026 \begin_layout Plain Layout
21027
21028 \change_inserted -712698321 1552395787
21029
21030 \backslash
21031 cite
21032 \end_layout
21033
21034 \end_inset
21035
21036  and 
21037 \begin_inset Flex Code
21038 status collapsed
21039
21040 \begin_layout Plain Layout
21041
21042 \change_inserted -712698321 1552395787
21043
21044 \backslash
21045 ref
21046 \end_layout
21047
21048 \end_inset
21049
21050 ) should be protected in an 
21051 \begin_inset Flex Code
21052 status collapsed
21053
21054 \begin_layout Plain Layout
21055
21056 \change_inserted -712698321 1552395787
21057
21058 \backslash
21059 mbox
21060 \end_layout
21061
21062 \end_inset
21063
21064 .
21065  This is particularly needed for insets that draw on 
21066 \family sans
21067 ulem
21068 \family default
21069  or 
21070 \family sans
21071 soul
21072 \family default
21073  commands which parse their content in complex ways.
21074  Default is false.
21075 \end_layout
21076
21077 \begin_layout Description
21078
21079 \change_inserted -712698321 1555579742
21080 \begin_inset Flex Code
21081 status collapsed
21082
21083 \begin_layout Plain Layout
21084
21085 \change_inserted -712698321 1555579658
21086 NewlineCmd
21087 \end_layout
21088
21089 \end_inset
21090
21091  
21092 \begin_inset Flex Code
21093 status collapsed
21094
21095 \begin_layout Plain Layout
21096
21097 \change_inserted -712698321 1555579651
21098 [string]
21099 \end_layout
21100
21101 \end_inset
21102
21103  Option to define a different command (from the default 
21104 \begin_inset Flex Code
21105 status collapsed
21106
21107 \begin_layout Plain Layout
21108
21109 \change_inserted -712698321 1555579742
21110
21111 \backslash
21112
21113 \backslash
21114
21115 \change_unchanged
21116
21117 \end_layout
21118
21119 \end_inset
21120
21121 ) to be used for line breaks.
21122  The initial backslash must not be specified.
21123 \change_unchanged
21124
21125 \end_layout
21126
21127 \begin_layout Description
21128 \begin_inset Flex Code
21129 status collapsed
21130
21131 \begin_layout Plain Layout
21132 NoInsetLayout
21133 \end_layout
21134
21135 \end_inset
21136
21137  [
21138 \begin_inset Flex Code
21139 status collapsed
21140
21141 \begin_layout Plain Layout
21142 <layout>
21143 \end_layout
21144
21145 \end_inset
21146
21147 ] Deletes an existing 
21148 \begin_inset Flex Code
21149 status collapsed
21150
21151 \begin_layout Plain Layout
21152 InsetLayout
21153 \end_layout
21154
21155 \end_inset
21156
21157 .
21158 \end_layout
21159
21160 \begin_layout Description
21161 \begin_inset Flex Code
21162 status collapsed
21163
21164 \begin_layout Plain Layout
21165 ObsoletedBy
21166 \end_layout
21167
21168 \end_inset
21169
21170  [
21171 \begin_inset Flex Code
21172 status collapsed
21173
21174 \begin_layout Plain Layout
21175 <layout>
21176 \end_layout
21177
21178 \end_inset
21179
21180 ] Name of an 
21181 \begin_inset Flex Code
21182 status collapsed
21183
21184 \begin_layout Plain Layout
21185 InsetLayout
21186 \end_layout
21187
21188 \end_inset
21189
21190  that has replaced this 
21191 \begin_inset Flex Code
21192 status collapsed
21193
21194 \begin_layout Plain Layout
21195 InsetLayout
21196 \end_layout
21197
21198 \end_inset
21199
21200 .
21201  This is used to rename an 
21202 \begin_inset Flex Code
21203 status collapsed
21204
21205 \begin_layout Plain Layout
21206 InsetLayout
21207 \end_layout
21208
21209 \end_inset
21210
21211 , while keeping backward compatibility.
21212 \change_inserted -712698321 1559491850
21213
21214 \end_layout
21215
21216 \begin_layout Description
21217
21218 \change_inserted -712698321 1559492002
21219 \begin_inset Flex Code
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223
21224 \change_inserted -712698321 1559491854
21225 ParbreakIgnored
21226 \end_layout
21227
21228 \end_inset
21229
21230  [
21231 \begin_inset Flex Code
21232 status collapsed
21233
21234 \begin_layout Plain Layout
21235
21236 \change_inserted -712698321 1559491850
21237
21238 \emph on
21239 0
21240 \end_layout
21241
21242 \end_inset
21243
21244 ,
21245 \begin_inset space \thinspace{}
21246 \end_inset
21247
21248
21249 \begin_inset Flex Code
21250 status collapsed
21251
21252 \begin_layout Plain Layout
21253
21254 \change_inserted -712698321 1559491850
21255 1
21256 \end_layout
21257
21258 \end_inset
21259
21260 ] If this is set to 
21261 \begin_inset Flex Code
21262 status collapsed
21263
21264 \begin_layout Plain Layout
21265
21266 \change_inserted -712698321 1559491881
21267 1
21268 \change_unchanged
21269
21270 \end_layout
21271
21272 \end_inset
21273
21274 , paragraph breaks will be ignored in the output.
21275  This might be useful for insets where the content should be alignable on
21276  different lines only in the \SpecialChar LyX
21277  workarea, without any effect in the output.
21278 \change_unchanged
21279
21280 \end_layout
21281
21282 \begin_layout Description
21283 \begin_inset Flex Code
21284 status collapsed
21285
21286 \begin_layout Plain Layout
21287 ParbreakIsNewline
21288 \end_layout
21289
21290 \end_inset
21291
21292  [
21293 \begin_inset Flex Code
21294 status collapsed
21295
21296 \begin_layout Plain Layout
21297
21298 \emph on
21299 0
21300 \end_layout
21301
21302 \end_inset
21303
21304 ,
21305 \begin_inset space \thinspace{}
21306 \end_inset
21307
21308
21309 \begin_inset Flex Code
21310 status collapsed
21311
21312 \begin_layout Plain Layout
21313 1
21314 \end_layout
21315
21316 \end_inset
21317
21318 ] As with paragraph styles, see 
21319 \begin_inset CommandInset ref
21320 LatexCommand ref
21321 reference "subsec:Paragraph-Styles"
21322
21323 \end_inset
21324
21325 .
21326  Default is false.
21327 \end_layout
21328
21329 \begin_layout Description
21330 \begin_inset Flex Code
21331 status collapsed
21332
21333 \begin_layout Plain Layout
21334 PassThru
21335 \end_layout
21336
21337 \end_inset
21338
21339  [
21340 \begin_inset Flex Code
21341 status collapsed
21342
21343 \begin_layout Plain Layout
21344
21345 \emph on
21346 0
21347 \end_layout
21348
21349 \end_inset
21350
21351 ,
21352 \begin_inset space \thinspace{}
21353 \end_inset
21354
21355
21356 \begin_inset Flex Code
21357 status collapsed
21358
21359 \begin_layout Plain Layout
21360 1
21361 \end_layout
21362
21363 \end_inset
21364
21365 ] As with paragraph styles, see 
21366 \begin_inset CommandInset ref
21367 LatexCommand ref
21368 reference "subsec:Paragraph-Styles"
21369
21370 \end_inset
21371
21372 .
21373  Default is false.
21374 \end_layout
21375
21376 \begin_layout Description
21377 \begin_inset Flex Code
21378 status collapsed
21379
21380 \begin_layout Plain Layout
21381 Preamble
21382 \end_layout
21383
21384 \end_inset
21385
21386  As with paragraph styles, see 
21387 \begin_inset CommandInset ref
21388 LatexCommand ref
21389 reference "subsec:Paragraph-Styles"
21390
21391 \end_inset
21392
21393 .
21394 \end_layout
21395
21396 \begin_layout Description
21397 \begin_inset Flex Code
21398 status collapsed
21399
21400 \begin_layout Plain Layout
21401 RefPrefix
21402 \end_layout
21403
21404 \end_inset
21405
21406  [
21407 \begin_inset Flex Code
21408 status collapsed
21409
21410 \begin_layout Plain Layout
21411 string
21412 \end_layout
21413
21414 \end_inset
21415
21416 ] The prefix to use when creating labels referring to insets of this type.
21417  This allows the use of formatted references.
21418 \end_layout
21419
21420 \begin_layout Description
21421 \begin_inset Flex Code
21422 status collapsed
21423
21424 \begin_layout Plain Layout
21425 Requires
21426 \end_layout
21427
21428 \end_inset
21429
21430  [
21431 \begin_inset Flex Code
21432 status collapsed
21433
21434 \begin_layout Plain Layout
21435 string
21436 \end_layout
21437
21438 \end_inset
21439
21440 ] As with paragraph styles, see 
21441 \begin_inset CommandInset ref
21442 LatexCommand ref
21443 reference "subsec:Paragraph-Styles"
21444
21445 \end_inset
21446
21447 .
21448 \end_layout
21449
21450 \begin_layout Description
21451 \begin_inset Flex Code
21452 status collapsed
21453
21454 \begin_layout Plain Layout
21455 ResetArgs
21456 \end_layout
21457
21458 \end_inset
21459
21460  [
21461 \begin_inset Flex Code
21462 status collapsed
21463
21464 \begin_layout Plain Layout
21465
21466 \emph on
21467 0
21468 \end_layout
21469
21470 \end_inset
21471
21472 ,
21473 \begin_inset space \thinspace{}
21474 \end_inset
21475
21476
21477 \begin_inset Flex Code
21478 status collapsed
21479
21480 \begin_layout Plain Layout
21481 1
21482 \end_layout
21483
21484 \end_inset
21485
21486 ] Resets the \SpecialChar LaTeX
21487  arguments of this layout (as defined via the 
21488 \begin_inset Flex Code
21489 status collapsed
21490
21491 \begin_layout Plain Layout
21492 Argument
21493 \end_layout
21494
21495 \end_inset
21496
21497  tag).
21498  This is useful if you have copied a style via 
21499 \begin_inset Flex Code
21500 status collapsed
21501
21502 \begin_layout Plain Layout
21503 CopyStyle
21504 \end_layout
21505
21506 \end_inset
21507
21508 , but you do not want to inherit its (required and optional) arguments.
21509 \end_layout
21510
21511 \begin_layout Description
21512 \begin_inset Flex Code
21513 status collapsed
21514
21515 \begin_layout Plain Layout
21516 ResetsFont
21517 \end_layout
21518
21519 \end_inset
21520
21521  [
21522 \begin_inset Flex Code
21523 status collapsed
21524
21525 \begin_layout Plain Layout
21526 0
21527 \end_layout
21528
21529 \end_inset
21530
21531 ,
21532 \begin_inset space \thinspace{}
21533 \end_inset
21534
21535
21536 \begin_inset Flex Code
21537 status collapsed
21538
21539 \begin_layout Plain Layout
21540
21541 \emph on
21542 1
21543 \end_layout
21544
21545 \end_inset
21546
21547 ] Whether this inset should use the font of its surrounding environment
21548  or uses its own.
21549  Default is false: use the font of the surrounding environment.
21550 \end_layout
21551
21552 \begin_layout Description
21553 \begin_inset Flex Code
21554 status collapsed
21555
21556 \begin_layout Plain Layout
21557 RightDelim
21558 \end_layout
21559
21560 \end_inset
21561
21562  [
21563 \begin_inset Flex Code
21564 status collapsed
21565
21566 \begin_layout Plain Layout
21567 string
21568 \end_layout
21569
21570 \end_inset
21571
21572 ] A string that is put at the end of the layout content.
21573  A line break in the output can be indicated by 
21574 \begin_inset Flex Code
21575 status collapsed
21576
21577 \begin_layout Plain Layout
21578 <br/>
21579 \end_layout
21580
21581 \end_inset
21582
21583 .
21584 \end_layout
21585
21586 \begin_layout Description
21587 \begin_inset Flex Code
21588 status collapsed
21589
21590 \begin_layout Plain Layout
21591 Spellcheck
21592 \end_layout
21593
21594 \end_inset
21595
21596  [
21597 \begin_inset Flex Code
21598 status collapsed
21599
21600 \begin_layout Plain Layout
21601 0
21602 \end_layout
21603
21604 \end_inset
21605
21606 ,
21607 \begin_inset space \thinspace{}
21608 \end_inset
21609
21610
21611 \begin_inset Flex Code
21612 status collapsed
21613
21614 \begin_layout Plain Layout
21615
21616 \emph on
21617 1
21618 \end_layout
21619
21620 \end_inset
21621
21622 ] Allow spell-checking the contents of this inset.
21623  Default is true.
21624 \end_layout
21625
21626 \begin_layout Subsection
21627 Counters
21628 \begin_inset CommandInset label
21629 LatexCommand label
21630 name "subsec:Counters"
21631
21632 \end_inset
21633
21634
21635 \end_layout
21636
21637 \begin_layout Standard
21638 It is necessary to define the counters (
21639 \begin_inset Flex Noun
21640 status collapsed
21641
21642 \begin_layout Plain Layout
21643 chapter
21644 \end_layout
21645
21646 \end_inset
21647
21648
21649 \begin_inset Flex Noun
21650 status collapsed
21651
21652 \begin_layout Plain Layout
21653 figure
21654 \end_layout
21655
21656 \end_inset
21657
21658 , \SpecialChar ldots
21659 ) in the text class itself.
21660  The standard counters are defined in the file 
21661 \begin_inset Flex Code
21662 status collapsed
21663
21664 \begin_layout Plain Layout
21665 stdcounters.inc
21666 \end_layout
21667
21668 \end_inset
21669
21670 , so you may have to do no more than add
21671 \end_layout
21672
21673 \begin_layout LyX-Code
21674 Input stdcounters.inc
21675 \end_layout
21676
21677 \begin_layout Standard
21678 to your layout file to get them to work.
21679  But if you want to define custom counters, then you can do so.
21680  The counter declaration must begin with:
21681 \end_layout
21682
21683 \begin_layout LyX-Code
21684 Counter CounterName
21685 \end_layout
21686
21687 \begin_layout Standard
21688 where of course `
21689 \begin_inset Flex Code
21690 status collapsed
21691
21692 \begin_layout Plain Layout
21693 CounterName
21694 \end_layout
21695
21696 \end_inset
21697
21698 ' is replaced by the name of the counter.
21699  And it must end with 
21700 \begin_inset Quotes eld
21701 \end_inset
21702
21703
21704 \begin_inset Flex Code
21705 status collapsed
21706
21707 \begin_layout Plain Layout
21708 End
21709 \end_layout
21710
21711 \end_inset
21712
21713
21714 \begin_inset Quotes erd
21715 \end_inset
21716
21717 .
21718  The following parameters can also be used:
21719 \end_layout
21720
21721 \begin_layout Description
21722 \begin_inset Flex Code
21723 status collapsed
21724
21725 \begin_layout Plain Layout
21726 InitialValue
21727 \end_layout
21728
21729 \end_inset
21730
21731  [
21732 \begin_inset Flex Code
21733 status collapsed
21734
21735 \begin_layout Plain Layout
21736 int=1
21737 \end_layout
21738
21739 \end_inset
21740
21741 ] Sets the initial value for the counter, to which it will be reset whenever
21742  that happens.
21743  Normally, one will want the default, 1.
21744 \end_layout
21745
21746 \begin_layout Description
21747 \begin_inset Flex Code
21748 status collapsed
21749
21750 \begin_layout Plain Layout
21751 LabelString
21752 \end_layout
21753
21754 \end_inset
21755
21756  [
21757 \begin_inset Flex Code
21758 status collapsed
21759
21760 \begin_layout Plain Layout
21761 string
21762 \end_layout
21763
21764 \end_inset
21765
21766 =
21767 \begin_inset Quotes erd
21768 \end_inset
21769
21770
21771 \begin_inset Quotes erd
21772 \end_inset
21773
21774 ] When defined, this string defines how the counter is displayed.
21775  Setting this value sets 
21776 \begin_inset Flex Code
21777 status collapsed
21778
21779 \begin_layout Plain Layout
21780 LabelStringAppendix
21781 \end_layout
21782
21783 \end_inset
21784
21785  to the same value.
21786  The following special constructs can be used in the string:
21787 \end_layout
21788
21789 \begin_deeper
21790 \begin_layout Itemize
21791 \begin_inset Flex Code
21792 status collapsed
21793
21794 \begin_layout Plain Layout
21795
21796 \backslash
21797 thecounter
21798 \end_layout
21799
21800 \end_inset
21801
21802  will be replaced by the expansion of the 
21803 \begin_inset Flex Code
21804 status collapsed
21805
21806 \begin_layout Plain Layout
21807 LabelString
21808 \end_layout
21809
21810 \end_inset
21811
21812  (or 
21813 \begin_inset Flex Code
21814 status collapsed
21815
21816 \begin_layout Plain Layout
21817 LabelStringAppendix
21818 \end_layout
21819
21820 \end_inset
21821
21822 ) of the counter 
21823 \begin_inset Flex Code
21824 status collapsed
21825
21826 \begin_layout Plain Layout
21827 counter
21828 \end_layout
21829
21830 \end_inset
21831
21832 .
21833  
21834 \end_layout
21835
21836 \begin_layout Itemize
21837 counter values can be expressed using \SpecialChar LaTeX
21838 -like macros
21839 \begin_inset Newline newline
21840 \end_inset
21841
21842
21843 \begin_inset Flex Code
21844 status collapsed
21845
21846 \begin_layout Plain Layout
21847
21848 \backslash
21849
21850 \emph on
21851 numbertype
21852 \emph default
21853 {
21854 \emph on
21855 counter
21856 \emph default
21857 }
21858 \end_layout
21859
21860 \end_inset
21861
21862 , where 
21863 \begin_inset Flex Code
21864 status collapsed
21865
21866 \begin_layout Plain Layout
21867
21868 \emph on
21869 numbertype
21870 \end_layout
21871
21872 \end_inset
21873
21874  can be:
21875 \begin_inset Foot
21876 status collapsed
21877
21878 \begin_layout Plain Layout
21879
21880 \family roman
21881 \series medium
21882 \shape up
21883 \size normal
21884 \emph off
21885 \bar no
21886 \noun off
21887 \color none
21888 Actually, the situation is a bit more complicated: any
21889 \family default
21890 \series default
21891 \shape default
21892 \emph default
21893 \bar default
21894  
21895 \size default
21896 \emph on
21897 \noun default
21898 \color inherit
21899 numbertype
21900 \family roman
21901 \series medium
21902 \shape up
21903 \size normal
21904 \emph off
21905 \bar no
21906 \noun off
21907  other than those described below will produce arabic numerals.
21908  It would not be surprising to see this change in the future.
21909 \end_layout
21910
21911 \end_inset
21912
21913  
21914 \begin_inset Flex Code
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918 arabic
21919 \end_layout
21920
21921 \end_inset
21922
21923 : 1, 2, 3,\SpecialChar ldots
21924
21925 \begin_inset Flex Code
21926 status collapsed
21927
21928 \begin_layout Plain Layout
21929 alph
21930 \end_layout
21931
21932 \end_inset
21933
21934  for lower-case letters: a, b, c, \SpecialChar ldots
21935
21936 \begin_inset Flex Code
21937 status collapsed
21938
21939 \begin_layout Plain Layout
21940 Alph
21941 \end_layout
21942
21943 \end_inset
21944
21945  for upper-case letters: A, B, C, \SpecialChar ldots
21946
21947 \begin_inset Flex Code
21948 status collapsed
21949
21950 \begin_layout Plain Layout
21951 roman
21952 \end_layout
21953
21954 \end_inset
21955
21956  for lower-case roman numerals: i, ii, iii, \SpecialChar ldots
21957
21958 \begin_inset Flex Code
21959 status collapsed
21960
21961 \begin_layout Plain Layout
21962 Roman
21963 \end_layout
21964
21965 \end_inset
21966
21967  for upper-case roman numerals: I, II, III\SpecialChar ldots
21968
21969 \begin_inset Flex Code
21970 status collapsed
21971
21972 \begin_layout Plain Layout
21973 hebrew
21974 \end_layout
21975
21976 \end_inset
21977
21978  for hebrew numerals.
21979 \end_layout
21980
21981 \end_deeper
21982 \begin_layout Standard
21983 If LabelString is not defined, a default value is constructed as follows:
21984  if the counter has a master counter 
21985 \begin_inset Flex Code
21986 status collapsed
21987
21988 \begin_layout Plain Layout
21989 master
21990 \end_layout
21991
21992 \end_inset
21993
21994  (defined via 
21995 \begin_inset Flex Code
21996 status collapsed
21997
21998 \begin_layout Plain Layout
21999 Within
22000 \end_layout
22001
22002 \end_inset
22003
22004 ), the string
22005 \begin_inset Newline newline
22006 \end_inset
22007
22008
22009 \begin_inset Flex Code
22010 status collapsed
22011
22012 \begin_layout Plain Layout
22013
22014 \backslash
22015 themaster.
22016 \backslash
22017 arabic{counter}
22018 \end_layout
22019
22020 \end_inset
22021
22022  is used; otherwise the string 
22023 \begin_inset Flex Code
22024 status collapsed
22025
22026 \begin_layout Plain Layout
22027
22028 \backslash
22029 arabic{counter}
22030 \end_layout
22031
22032 \end_inset
22033
22034  is used.
22035 \end_layout
22036
22037 \begin_layout Description
22038 \begin_inset Flex Code
22039 status collapsed
22040
22041 \begin_layout Plain Layout
22042 LabelStringAppendix
22043 \end_layout
22044
22045 \end_inset
22046
22047  [
22048 \begin_inset Flex Code
22049 status collapsed
22050
22051 \begin_layout Plain Layout
22052 string
22053 \end_layout
22054
22055 \end_inset
22056
22057 =
22058 \begin_inset Quotes erd
22059 \end_inset
22060
22061
22062 \begin_inset Quotes erd
22063 \end_inset
22064
22065 ] Same as 
22066 \begin_inset Flex Code
22067 status collapsed
22068
22069 \begin_layout Plain Layout
22070 LabelString
22071 \end_layout
22072
22073 \end_inset
22074
22075 , but for use in the Appendix.
22076 \end_layout
22077
22078 \begin_layout Description
22079 \begin_inset Flex Code
22080 status collapsed
22081
22082 \begin_layout Plain Layout
22083 PrettyFormat
22084 \end_layout
22085
22086 \end_inset
22087
22088  [
22089 \begin_inset Flex Code
22090 status collapsed
22091
22092 \begin_layout Plain Layout
22093 string
22094 \end_layout
22095
22096 \end_inset
22097
22098 =
22099 \begin_inset Quotes erd
22100 \end_inset
22101
22102
22103 \begin_inset Quotes erd
22104 \end_inset
22105
22106 ] A format for use with formatted references to this counter.
22107  For example, one might want to have references to section numbers appear
22108  as 
22109 \begin_inset Quotes eld
22110 \end_inset
22111
22112 Section 2.4
22113 \begin_inset Quotes erd
22114 \end_inset
22115
22116 .
22117  The string should contain 
22118 \begin_inset Quotes eld
22119 \end_inset
22120
22121 ##
22122 \begin_inset Quotes erd
22123 \end_inset
22124
22125 .
22126  This will be replaced by the counter number itself.
22127  So, for sections, it would be: Section ##.
22128 \end_layout
22129
22130 \begin_layout Description
22131 \begin_inset Flex Code
22132 status collapsed
22133
22134 \begin_layout Plain Layout
22135 Within
22136 \end_layout
22137
22138 \end_inset
22139
22140  [
22141 \begin_inset Flex Code
22142 status collapsed
22143
22144 \begin_layout Plain Layout
22145 string
22146 \end_layout
22147
22148 \end_inset
22149
22150 =
22151 \begin_inset Quotes erd
22152 \end_inset
22153
22154
22155 \begin_inset Quotes erd
22156 \end_inset
22157
22158 ] If this is set to the name of another counter, the present counter will
22159  be reset every time the other one is increased.
22160  For example, 
22161 \begin_inset Flex Code
22162 status collapsed
22163
22164 \begin_layout Plain Layout
22165 subsection
22166 \end_layout
22167
22168 \end_inset
22169
22170  is numbered inside 
22171 \begin_inset Flex Code
22172 status collapsed
22173
22174 \begin_layout Plain Layout
22175 section
22176 \end_layout
22177
22178 \end_inset
22179
22180 .
22181 \end_layout
22182
22183 \begin_layout Subsection
22184 Font description
22185 \begin_inset CommandInset label
22186 LatexCommand label
22187 name "subsec:Font-description"
22188
22189 \end_inset
22190
22191
22192 \end_layout
22193
22194 \begin_layout Standard
22195 A font description looks like this:
22196 \end_layout
22197
22198 \begin_layout LyX-Code
22199 Font 
22200 \family roman
22201 \emph on
22202 or
22203 \family default
22204 \emph default
22205  LabelFont
22206 \emph on
22207  
22208 \family roman
22209 or
22210 \family default
22211 \emph default
22212  DefaultFont
22213 \end_layout
22214
22215 \begin_layout LyX-Code
22216  ...
22217 \end_layout
22218
22219 \begin_layout LyX-Code
22220 EndFont
22221 \end_layout
22222
22223 \begin_layout Standard
22224 The following commands are available:
22225 \end_layout
22226
22227 \begin_layout Description
22228 \begin_inset Flex Code
22229 status collapsed
22230
22231 \begin_layout Plain Layout
22232 Color
22233 \end_layout
22234
22235 \end_inset
22236
22237  [
22238 \begin_inset Flex Code
22239 status collapsed
22240
22241 \begin_layout Plain Layout
22242
22243 \emph on
22244 none
22245 \end_layout
22246
22247 \end_inset
22248
22249
22250 \begin_inset Flex Code
22251 status collapsed
22252
22253 \begin_layout Plain Layout
22254 black
22255 \end_layout
22256
22257 \end_inset
22258
22259
22260 \begin_inset Flex Code
22261 status collapsed
22262
22263 \begin_layout Plain Layout
22264 white
22265 \end_layout
22266
22267 \end_inset
22268
22269
22270 \begin_inset Flex Code
22271 status collapsed
22272
22273 \begin_layout Plain Layout
22274 red
22275 \end_layout
22276
22277 \end_inset
22278
22279
22280 \begin_inset Flex Code
22281 status collapsed
22282
22283 \begin_layout Plain Layout
22284 green
22285 \end_layout
22286
22287 \end_inset
22288
22289
22290 \begin_inset Flex Code
22291 status collapsed
22292
22293 \begin_layout Plain Layout
22294 blue
22295 \end_layout
22296
22297 \end_inset
22298
22299
22300 \begin_inset Flex Code
22301 status collapsed
22302
22303 \begin_layout Plain Layout
22304 cyan
22305 \end_layout
22306
22307 \end_inset
22308
22309
22310 \begin_inset Flex Code
22311 status collapsed
22312
22313 \begin_layout Plain Layout
22314 magenta
22315 \end_layout
22316
22317 \end_inset
22318
22319
22320 \begin_inset Flex Code
22321 status collapsed
22322
22323 \begin_layout Plain Layout
22324 yellow
22325 \end_layout
22326
22327 \end_inset
22328
22329
22330 \begin_inset Flex Code
22331 status collapsed
22332
22333 \begin_layout Plain Layout
22334 brown
22335 \end_layout
22336
22337 \end_inset
22338
22339
22340 \begin_inset Flex Code
22341 status collapsed
22342
22343 \begin_layout Plain Layout
22344 darkgray
22345 \end_layout
22346
22347 \end_inset
22348
22349
22350 \begin_inset Flex Code
22351 status collapsed
22352
22353 \begin_layout Plain Layout
22354 gray
22355 \end_layout
22356
22357 \end_inset
22358
22359
22360 \begin_inset Flex Code
22361 status collapsed
22362
22363 \begin_layout Plain Layout
22364 lightgray
22365 \end_layout
22366
22367 \end_inset
22368
22369
22370 \begin_inset Flex Code
22371 status collapsed
22372
22373 \begin_layout Plain Layout
22374 lime
22375 \end_layout
22376
22377 \end_inset
22378
22379
22380 \begin_inset Flex Code
22381 status collapsed
22382
22383 \begin_layout Plain Layout
22384 orange
22385 \end_layout
22386
22387 \end_inset
22388
22389
22390 \begin_inset Flex Code
22391 status collapsed
22392
22393 \begin_layout Plain Layout
22394 olive
22395 \end_layout
22396
22397 \end_inset
22398
22399
22400 \begin_inset Flex Code
22401 status collapsed
22402
22403 \begin_layout Plain Layout
22404 pink
22405 \end_layout
22406
22407 \end_inset
22408
22409
22410 \begin_inset Flex Code
22411 status collapsed
22412
22413 \begin_layout Plain Layout
22414 purple
22415 \end_layout
22416
22417 \end_inset
22418
22419
22420 \begin_inset Flex Code
22421 status collapsed
22422
22423 \begin_layout Plain Layout
22424 teal
22425 \end_layout
22426
22427 \end_inset
22428
22429
22430 \begin_inset Flex Code
22431 status collapsed
22432
22433 \begin_layout Plain Layout
22434 violet
22435 \end_layout
22436
22437 \end_inset
22438
22439 ]
22440 \end_layout
22441
22442 \begin_layout Description
22443 \begin_inset Flex Code
22444 status collapsed
22445
22446 \begin_layout Plain Layout
22447 Family
22448 \end_layout
22449
22450 \end_inset
22451
22452  [
22453 \begin_inset Flex Code
22454 status collapsed
22455
22456 \begin_layout Plain Layout
22457
22458 \emph on
22459 Roman
22460 \end_layout
22461
22462 \end_inset
22463
22464
22465 \begin_inset Flex Code
22466 status collapsed
22467
22468 \begin_layout Plain Layout
22469 Sans
22470 \end_layout
22471
22472 \end_inset
22473
22474
22475 \begin_inset Flex Code
22476 status collapsed
22477
22478 \begin_layout Plain Layout
22479 Typewriter
22480 \end_layout
22481
22482 \end_inset
22483
22484 ]
22485 \end_layout
22486
22487 \begin_layout Description
22488 \begin_inset Flex Code
22489 status collapsed
22490
22491 \begin_layout Plain Layout
22492 Misc
22493 \end_layout
22494
22495 \end_inset
22496
22497  [
22498 \begin_inset Flex Code
22499 status collapsed
22500
22501 \begin_layout Plain Layout
22502 string
22503 \end_layout
22504
22505 \end_inset
22506
22507 ] Valid arguments are: 
22508 \begin_inset Flex Code
22509 status collapsed
22510
22511 \begin_layout Plain Layout
22512 emph
22513 \end_layout
22514
22515 \end_inset
22516
22517
22518 \begin_inset Flex Code
22519 status collapsed
22520
22521 \begin_layout Plain Layout
22522 noun
22523 \end_layout
22524
22525 \end_inset
22526
22527
22528 \begin_inset Flex Code
22529 status collapsed
22530
22531 \begin_layout Plain Layout
22532 strikeout
22533 \end_layout
22534
22535 \end_inset
22536
22537
22538 \begin_inset Flex Code
22539 status collapsed
22540
22541 \begin_layout Plain Layout
22542 underbar
22543 \end_layout
22544
22545 \end_inset
22546
22547
22548 \begin_inset Flex Code
22549 status collapsed
22550
22551 \begin_layout Plain Layout
22552 uuline
22553 \end_layout
22554
22555 \end_inset
22556
22557
22558 \begin_inset Flex Code
22559 status collapsed
22560
22561 \begin_layout Plain Layout
22562 uwave
22563 \end_layout
22564
22565 \end_inset
22566
22567
22568 \begin_inset Flex Code
22569 status collapsed
22570
22571 \begin_layout Plain Layout
22572 no_emph
22573 \end_layout
22574
22575 \end_inset
22576
22577
22578 \begin_inset Flex Code
22579 status collapsed
22580
22581 \begin_layout Plain Layout
22582 no_noun
22583 \end_layout
22584
22585 \end_inset
22586
22587
22588 \begin_inset Flex Code
22589 status collapsed
22590
22591 \begin_layout Plain Layout
22592 no_strikeout
22593 \end_layout
22594
22595 \end_inset
22596
22597
22598 \begin_inset Flex Code
22599 status collapsed
22600
22601 \begin_layout Plain Layout
22602 no_bar
22603 \end_layout
22604
22605 \end_inset
22606
22607
22608 \begin_inset Flex Code
22609 status collapsed
22610
22611 \begin_layout Plain Layout
22612 no_uuline
22613 \end_layout
22614
22615 \end_inset
22616
22617  and 
22618 \begin_inset Flex Code
22619 status collapsed
22620
22621 \begin_layout Plain Layout
22622 no_uwave
22623 \end_layout
22624
22625 \end_inset
22626
22627 .
22628  Each of these turns on or off the corresponding attribute.
22629  For example, 
22630 \begin_inset Flex Code
22631 status collapsed
22632
22633 \begin_layout Plain Layout
22634 emph
22635 \end_layout
22636
22637 \end_inset
22638
22639  turns on emphasis, and 
22640 \begin_inset Flex Code
22641 status collapsed
22642
22643 \begin_layout Plain Layout
22644 no_emph
22645 \end_layout
22646
22647 \end_inset
22648
22649  turns it off.
22650  
22651 \begin_inset Newline newline
22652 \end_inset
22653
22654 If the latter seems puzzling, remember that the font settings for the present
22655  context are generally inherited from the surrounding context.
22656  So 
22657 \begin_inset Flex Code
22658 status collapsed
22659
22660 \begin_layout Plain Layout
22661 no_emph
22662 \end_layout
22663
22664 \end_inset
22665
22666  would turn off the emphasis that was anyway in effect, say, in a theorem
22667  environment.
22668 \end_layout
22669
22670 \begin_layout Description
22671 \begin_inset Flex Code
22672 status collapsed
22673
22674 \begin_layout Plain Layout
22675 Series
22676 \end_layout
22677
22678 \end_inset
22679
22680  [
22681 \begin_inset Flex Code
22682 status collapsed
22683
22684 \begin_layout Plain Layout
22685
22686 \emph on
22687 Medium
22688 \end_layout
22689
22690 \end_inset
22691
22692
22693 \begin_inset Flex Code
22694 status collapsed
22695
22696 \begin_layout Plain Layout
22697 Bold
22698 \end_layout
22699
22700 \end_inset
22701
22702
22703 \end_layout
22704
22705 \begin_layout Description
22706 \begin_inset Flex Code
22707 status collapsed
22708
22709 \begin_layout Plain Layout
22710 Shape
22711 \end_layout
22712
22713 \end_inset
22714
22715  [
22716 \begin_inset Flex Code
22717 status collapsed
22718
22719 \begin_layout Plain Layout
22720
22721 \emph on
22722 Up
22723 \end_layout
22724
22725 \end_inset
22726
22727
22728 \begin_inset Flex Code
22729 status collapsed
22730
22731 \begin_layout Plain Layout
22732 Italic
22733 \end_layout
22734
22735 \end_inset
22736
22737
22738 \begin_inset Flex Code
22739 status collapsed
22740
22741 \begin_layout Plain Layout
22742 SmallCaps
22743 \end_layout
22744
22745 \end_inset
22746
22747
22748 \begin_inset Flex Code
22749 status collapsed
22750
22751 \begin_layout Plain Layout
22752 Slanted
22753 \end_layout
22754
22755 \end_inset
22756
22757
22758 \end_layout
22759
22760 \begin_layout Description
22761 \begin_inset Flex Code
22762 status collapsed
22763
22764 \begin_layout Plain Layout
22765 Size
22766 \end_layout
22767
22768 \end_inset
22769
22770  [
22771 \begin_inset Flex Code
22772 status collapsed
22773
22774 \begin_layout Plain Layout
22775 tiny
22776 \end_layout
22777
22778 \end_inset
22779
22780
22781 \begin_inset Flex Code
22782 status collapsed
22783
22784 \begin_layout Plain Layout
22785 small
22786 \end_layout
22787
22788 \end_inset
22789
22790
22791 \begin_inset Flex Code
22792 status collapsed
22793
22794 \begin_layout Plain Layout
22795
22796 \emph on
22797 normal
22798 \end_layout
22799
22800 \end_inset
22801
22802
22803 \begin_inset Flex Code
22804 status collapsed
22805
22806 \begin_layout Plain Layout
22807 large
22808 \end_layout
22809
22810 \end_inset
22811
22812
22813 \begin_inset Flex Code
22814 status collapsed
22815
22816 \begin_layout Plain Layout
22817 larger
22818 \end_layout
22819
22820 \end_inset
22821
22822
22823 \begin_inset Flex Code
22824 status collapsed
22825
22826 \begin_layout Plain Layout
22827 largest
22828 \end_layout
22829
22830 \end_inset
22831
22832
22833 \begin_inset Flex Code
22834 status collapsed
22835
22836 \begin_layout Plain Layout
22837 huge
22838 \end_layout
22839
22840 \end_inset
22841
22842
22843 \begin_inset Flex Code
22844 status collapsed
22845
22846 \begin_layout Plain Layout
22847 giant
22848 \end_layout
22849
22850 \end_inset
22851
22852 ]
22853 \end_layout
22854
22855 \begin_layout Subsection
22856 \begin_inset CommandInset label
22857 LatexCommand label
22858 name "subsec:Citation-engine-description"
22859
22860 \end_inset
22861
22862 Cite engine description
22863 \end_layout
22864
22865 \begin_layout Standard
22866 The 
22867 \begin_inset Flex Code
22868 status collapsed
22869
22870 \begin_layout Plain Layout
22871 CiteEngine
22872 \end_layout
22873
22874 \end_inset
22875
22876  blocks, as used mainly in cite engine files (see 
22877 \begin_inset CommandInset ref
22878 LatexCommand ref
22879 reference "subsec:Cite-Engine-Files"
22880 plural "false"
22881 caps "false"
22882 noprefix "false"
22883
22884 \end_inset
22885
22886 ), define the citation commands provided by a specific 
22887 \begin_inset Quotes eld
22888 \end_inset
22889
22890 cite engine
22891 \begin_inset Quotes erd
22892 \end_inset
22893
22894 .
22895  A cite engine, in \SpecialChar LyX
22896  terms, is way specific way to format citations, using
22897  numbers, author names and/or years.
22898  Currently, \SpecialChar LyX
22899  supports three such engine types, namely:
22900 \end_layout
22901
22902 \begin_layout Enumerate
22903 \begin_inset Flex Code
22904 status collapsed
22905
22906 \begin_layout Plain Layout
22907 default
22908 \end_layout
22909
22910 \end_inset
22911
22912 : the default Bib\SpecialChar TeX
22913  way to format citations, a simple numeric style (e.
22914 \begin_inset space \thinspace{}
22915 \end_inset
22916
22917 g., 
22918 \begin_inset Quotes eld
22919 \end_inset
22920
22921 [1]
22922 \begin_inset Quotes erd
22923 \end_inset
22924
22925 )
22926 \end_layout
22927
22928 \begin_layout Enumerate
22929 \begin_inset Flex Code
22930 status collapsed
22931
22932 \begin_layout Plain Layout
22933 authoryear
22934 \end_layout
22935
22936 \end_inset
22937
22938 : Harvard-styled citations using author names and publication year (e.
22939 \begin_inset space \thinspace{}
22940 \end_inset
22941
22942 g., 
22943 \begin_inset Quotes eld
22944 \end_inset
22945
22946 Smith and Miller (2017b)
22947 \begin_inset Quotes erd
22948 \end_inset
22949
22950 )
22951 \end_layout
22952
22953 \begin_layout Enumerate
22954 \begin_inset Flex Code
22955 status collapsed
22956
22957 \begin_layout Plain Layout
22958 numerical
22959 \end_layout
22960
22961 \end_inset
22962
22963 : extended numerical citations that also allow for author or title next
22964  to the number (e.
22965 \begin_inset space \thinspace{}
22966 \end_inset
22967
22968 g., 
22969 \begin_inset Quotes eld
22970 \end_inset
22971
22972 Smith and Miller [1]
22973 \begin_inset Quotes erd
22974 \end_inset
22975
22976 )
22977 \end_layout
22978
22979 \begin_layout Standard
22980 \begin_inset Flex Code
22981 status collapsed
22982
22983 \begin_layout Plain Layout
22984 CiteEngine
22985 \end_layout
22986
22987 \end_inset
22988
22989  blocks look like this:
22990 \end_layout
22991
22992 \begin_layout LyX-Code
22993 CiteEngine default
22994 \end_layout
22995
22996 \begin_layout LyX-Code
22997  cite
22998 \end_layout
22999
23000 \begin_layout LyX-Code
23001  Citep*[][]
23002 \end_layout
23003
23004 \begin_layout LyX-Code
23005  citeyearpar[][]=parencite*
23006 \end_layout
23007
23008 \begin_layout LyX-Code
23009  ...
23010 \end_layout
23011
23012 \begin_layout LyX-Code
23013 End
23014 \end_layout
23015
23016 \begin_layout Standard
23017 The tag following 
23018 \begin_inset Flex Code
23019 status collapsed
23020
23021 \begin_layout Plain Layout
23022 CiteEngine
23023 \end_layout
23024
23025 \end_inset
23026
23027  denotes the engine.
23028  The individual lines respectively define a cite command or cite command
23029  paradigm supported by this engine.
23030  The line can be as simple as a cite command that is used both to name the
23031  respective \SpecialChar LyX
23032  command and the \SpecialChar LaTeX
23033  output or more complex in order to differentiate
23034  things.
23035  The full syntax is:
23036 \end_layout
23037
23038 \begin_layout LyX-Code
23039 LyXName|alias$*<!_stardesc!_stardesctooltip>[][]=latexcmd
23040 \end_layout
23041
23042 \begin_layout Itemize
23043 \begin_inset Flex Code
23044 status collapsed
23045
23046 \begin_layout Plain Layout
23047 LyXName
23048 \end_layout
23049
23050 \end_inset
23051
23052 : The name as used in the 
23053 \begin_inset Flex Code
23054 status collapsed
23055
23056 \begin_layout Plain Layout
23057 *.lyx
23058 \end_layout
23059
23060 \end_inset
23061
23062  file.
23063 \end_layout
23064
23065 \begin_deeper
23066 \begin_layout Standard
23067 For portability reasons, we try to use the same name for same-formatted
23068  commands in different cite packages (thus many names stem from natbib,
23069  and thus we need to differentiate a 
23070 \begin_inset Flex Code
23071 status collapsed
23072
23073 \begin_layout Plain Layout
23074 latexcmd
23075 \end_layout
23076
23077 \end_inset
23078
23079  sometimes, if the \SpecialChar LaTeX
23080  command names differ).
23081 \end_layout
23082
23083 \end_deeper
23084 \begin_layout Itemize
23085 \begin_inset Flex Code
23086 status collapsed
23087
23088 \begin_layout Plain Layout
23089 alias
23090 \end_layout
23091
23092 \end_inset
23093
23094 : a (comma-separated) list of commands that fall back to the given 
23095 \begin_inset Flex Code
23096 status collapsed
23097
23098 \begin_layout Plain Layout
23099 LyXName
23100 \end_layout
23101
23102 \end_inset
23103
23104  in the current engine.
23105  This eases the switch of citation packages and engines.
23106  The 
23107 \begin_inset Flex Code
23108 status collapsed
23109
23110 \begin_layout Plain Layout
23111 alias
23112 \end_layout
23113
23114 \end_inset
23115
23116  can be compared to 
23117 \begin_inset Flex Code
23118 status collapsed
23119
23120 \begin_layout Plain Layout
23121 ObsoletedBy
23122 \end_layout
23123
23124 \end_inset
23125
23126  in layout definitions.
23127 \end_layout
23128
23129 \begin_layout Itemize
23130 \begin_inset Flex Code
23131 status collapsed
23132
23133 \begin_layout Plain Layout
23134 latexcmd
23135 \end_layout
23136
23137 \end_inset
23138
23139 : The actual \SpecialChar LaTeX
23140  command that is output.
23141  
23142 \end_layout
23143
23144 \begin_layout Standard
23145 \begin_inset Flex Code
23146 status collapsed
23147
23148 \begin_layout Plain Layout
23149 Alias
23150 \end_layout
23151
23152 \end_inset
23153
23154  and 
23155 \begin_inset Flex Code
23156 status collapsed
23157
23158 \begin_layout Plain Layout
23159 latexcmd
23160 \end_layout
23161
23162 \end_inset
23163
23164  are optional.
23165  If no 
23166 \begin_inset Flex Code
23167 status collapsed
23168
23169 \begin_layout Plain Layout
23170 latexcmd
23171 \end_layout
23172
23173 \end_inset
23174
23175  is given, the 
23176 \begin_inset Flex Code
23177 status collapsed
23178
23179 \begin_layout Plain Layout
23180 LyXName
23181 \end_layout
23182
23183 \end_inset
23184
23185  will be output to \SpecialChar LaTeX
23186 .
23187 \end_layout
23188
23189 \begin_layout Standard
23190 Note further:
23191 \end_layout
23192
23193 \begin_layout Itemize
23194 Capitalization indicates that the command also has a capitalized form (
23195 \begin_inset Flex Code
23196 status collapsed
23197
23198 \begin_layout Plain Layout
23199
23200 \backslash
23201 Latexcmd
23202 \end_layout
23203
23204 \end_inset
23205
23206  vs.
23207  
23208 \begin_inset Flex Code
23209 status collapsed
23210
23211 \begin_layout Plain Layout
23212
23213 \backslash
23214 latexcmd
23215 \end_layout
23216
23217 \end_inset
23218
23219 ).
23220  These usually enforce up-casing of name prefixes (
23221 \emph on
23222 von Goethe
23223 \emph default
23224  
23225 \begin_inset Formula $\Rightarrow$
23226 \end_inset
23227
23228  
23229 \emph on
23230 Von Goethe
23231 \emph default
23232 ).
23233 \end_layout
23234
23235 \begin_layout Itemize
23236 Brackets 
23237 \begin_inset Flex Code
23238 status collapsed
23239
23240 \begin_layout Plain Layout
23241 []
23242 \end_layout
23243
23244 \end_inset
23245
23246  indicate the number of optional arguments (there can be 0–2).
23247 \end_layout
23248
23249 \begin_layout Itemize
23250 A star 
23251 \begin_inset Flex Code
23252 status collapsed
23253
23254 \begin_layout Plain Layout
23255 *
23256 \end_layout
23257
23258 \end_inset
23259
23260  indicates there is a starred version of the command (
23261 \begin_inset Flex Code
23262 status collapsed
23263
23264 \begin_layout Plain Layout
23265
23266 \backslash
23267 latexcmd*
23268 \end_layout
23269
23270 \end_inset
23271
23272  vs.
23273  
23274 \begin_inset Flex Code
23275 status collapsed
23276
23277 \begin_layout Plain Layout
23278
23279 \backslash
23280 latexcmd
23281 \end_layout
23282
23283 \end_inset
23284
23285 ).
23286  
23287 \end_layout
23288
23289 \begin_deeper
23290 \begin_layout Standard
23291 By default, the starred version means: Output all authors even if it should
23292  be shortened with 
23293 \begin_inset Quotes eld
23294 \end_inset
23295
23296 et al.
23297 \begin_inset Quotes erd
23298 \end_inset
23299
23300  due to the 
23301 \begin_inset Flex Code
23302 status collapsed
23303
23304 \begin_layout Plain Layout
23305 MaxCiteNames
23306 \end_layout
23307
23308 \end_inset
23309
23310  threshold.
23311 \end_layout
23312
23313 \begin_layout Standard
23314 If the star has a different meaning for a given command, it can be specified
23315  in angle brackets: 
23316 \begin_inset Flex Code
23317 status collapsed
23318
23319 \begin_layout Plain Layout
23320 <!_stardesc!_stardesctooltip>
23321 \end_layout
23322
23323 \end_inset
23324
23325 .
23326  Maximal two translatable macro keywords, marked by the prefix 
23327 \begin_inset Flex Code
23328 status collapsed
23329
23330 \begin_layout Plain Layout
23331 !_
23332 \end_layout
23333
23334 \end_inset
23335
23336 , can be given.
23337  The first points to the string that replaces the 
23338 \begin_inset Quotes eld
23339 \end_inset
23340
23341 Full aut&hor list
23342 \begin_inset Quotes erd
23343 \end_inset
23344
23345  checkbox label in the citation dialog, the second one to an optional tool
23346  tip for this checkbox.
23347  
23348 \end_layout
23349
23350 \begin_layout Standard
23351 Note that these two macros have to be defined in a 
23352 \begin_inset Flex Code
23353 status collapsed
23354
23355 \begin_layout Plain Layout
23356 CiteFormat
23357 \end_layout
23358
23359 \end_inset
23360
23361  (see next section), dropping the 
23362 \begin_inset Flex Code
23363 status collapsed
23364
23365 \begin_layout Plain Layout
23366 !
23367 \end_layout
23368
23369 \end_inset
23370
23371  from the prefix, like this: 
23372 \end_layout
23373
23374 \begin_layout LyX-Code
23375 _stardesc Sta&rred command label
23376 \end_layout
23377
23378 \begin_layout LyX-Code
23379 _stardesctooltip Tooltip for the starred command checkbox.
23380 \end_layout
23381
23382 \end_deeper
23383 \begin_layout Itemize
23384 A dollar sign 
23385 \begin_inset Flex Code
23386 status collapsed
23387
23388 \begin_layout Plain Layout
23389 $
23390 \end_layout
23391
23392 \end_inset
23393
23394  indicates that this command features 
23395 \begin_inset Quotes eld
23396 \end_inset
23397
23398 qualified citation lists
23399 \begin_inset Quotes erd
23400 \end_inset
23401
23402 .
23403  This is a 
23404 \family sans
23405 Biblatex
23406 \family default
23407 -specific feature for multi-reference citations where an individual pre-
23408  and postnote can be given to each reference in the list.
23409  Please refer to the 
23410 \family sans
23411 Biblatex
23412 \family default
23413  manual for details.
23414 \change_inserted -712698321 1526898670
23415
23416 \end_layout
23417
23418 \begin_layout Standard
23419
23420 \change_inserted -712698321 1526899524
23421 If you want to add a cite command to a cite engine (e.
23422 \begin_inset space \thinspace{}
23423 \end_inset
23424
23425 g., add a specific command provided by a class), you can use 
23426 \begin_inset Flex Code
23427 status collapsed
23428
23429 \begin_layout Plain Layout
23430
23431 \change_inserted -712698321 1526898768
23432 AddToCiteEngine <engine type> \SpecialChar ldots
23433  End
23434 \change_unchanged
23435
23436 \end_layout
23437
23438 \end_inset
23439
23440 .
23441  Note that only cite commands that do not exist yet are added.
23442 \change_unchanged
23443
23444 \end_layout
23445
23446 \begin_layout Subsection
23447 \begin_inset CommandInset label
23448 LatexCommand label
23449 name "subsec:Citation-format-description"
23450
23451 \end_inset
23452
23453 Cite format description
23454 \end_layout
23455
23456 \begin_layout Standard
23457 The 
23458 \begin_inset Flex Code
23459 status collapsed
23460
23461 \begin_layout Plain Layout
23462 CiteFormat
23463 \end_layout
23464
23465 \end_inset
23466
23467  blocks are used to describe how bibliographic information should be displayed,
23468  both within \SpecialChar LyX
23469  itself (in the citation dialog and in tooltips, for example)
23470  and in XHTML output.
23471  Such a block might look like this:
23472 \end_layout
23473
23474 \begin_layout LyX-Code
23475 CiteFormat
23476 \end_layout
23477
23478 \begin_layout LyX-Code
23479  article ...
23480 \end_layout
23481
23482 \begin_layout LyX-Code
23483  book ...
23484 \end_layout
23485
23486 \begin_layout LyX-Code
23487 End
23488 \end_layout
23489
23490 \begin_layout Standard
23491 or
23492 \end_layout
23493
23494 \begin_layout LyX-Code
23495 CiteFormat
23496 \end_layout
23497
23498 \begin_layout LyX-Code
23499  cite ...
23500 \end_layout
23501
23502 \begin_layout LyX-Code
23503  citet*[][] ...
23504 \end_layout
23505
23506 \begin_layout LyX-Code
23507 End
23508 \end_layout
23509
23510 \begin_layout Standard
23511 In the first case, the individual lines define how the bibliographic information
23512  associated with an article or book, respectively, is to be displayed, and
23513  such a definition can be given for any 
23514 \begin_inset Quotes els
23515 \end_inset
23516
23517 entry type
23518 \begin_inset Quotes ers
23519 \end_inset
23520
23521  that might be present in a Bib\SpecialChar TeX
23522  file.
23523  \SpecialChar LyX
23524  defines a default format in the source code that will be used if no specific
23525  definition has been given.
23526  \SpecialChar LyX
23527  predefines several formats in the file 
23528 \begin_inset Flex Code
23529 status collapsed
23530
23531 \begin_layout Plain Layout
23532 stdciteformats.inc
23533 \end_layout
23534
23535 \end_inset
23536
23537 , which is included in most of \SpecialChar LyX
23538 's document classes.
23539 \end_layout
23540
23541 \begin_layout Standard
23542 In the second case, the lines define how a specific citation command (in
23543  the example 
23544 \begin_inset Flex Code
23545 status collapsed
23546
23547 \begin_layout Plain Layout
23548
23549 \backslash
23550 cite
23551 \end_layout
23552
23553 \end_inset
23554
23555
23556 \begin_inset Flex Code
23557 status collapsed
23558
23559 \begin_layout Plain Layout
23560
23561 \backslash
23562 citet
23563 \end_layout
23564
23565 \end_inset
23566
23567 ) is to be displayed on the citation inset label, in the citation dialog,
23568  menu or XHTML output.
23569  \SpecialChar LyX
23570  defines such formats for the citation style variants it supports via 
23571 \family sans
23572 Document\SpecialChar menuseparator
23573 Setting\SpecialChar menuseparator
23574 Bibliography\SpecialChar ldots
23575
23576 \family default
23577  in specific 
23578 \begin_inset Flex Code
23579 status collapsed
23580
23581 \begin_layout Plain Layout
23582 *.citeengine
23583 \end_layout
23584
23585 \end_inset
23586
23587  files that are shipped with \SpecialChar LyX
23588  (see 
23589 \begin_inset CommandInset ref
23590 LatexCommand ref
23591 reference "subsec:Cite-Engine-Files"
23592 plural "false"
23593 caps "false"
23594 noprefix "false"
23595
23596 \end_inset
23597
23598 ).
23599 \end_layout
23600
23601 \begin_layout Standard
23602 The definitions use a simple language that allows Bib\SpecialChar TeX
23603  keys to be replaced
23604  with their values.
23605  Keys should be enclosed in 
23606 \begin_inset Flex Code
23607 status collapsed
23608
23609 \begin_layout Plain Layout
23610 %
23611 \end_layout
23612
23613 \end_inset
23614
23615  signs, e.g.: 
23616 \begin_inset Flex Code
23617 status collapsed
23618
23619 \begin_layout Plain Layout
23620 %author%
23621 \end_layout
23622
23623 \end_inset
23624
23625 .
23626  So a simple definition might look like this:
23627 \end_layout
23628
23629 \begin_layout LyX-Code
23630 misc %author%, 
23631 \begin_inset Quotes eld
23632 \end_inset
23633
23634 %title%
23635 \begin_inset Quotes erd
23636 \end_inset
23637
23638 .
23639 \end_layout
23640
23641 \begin_layout Standard
23642 This would print the author, followed by a comma, followed by the title,
23643  in quotes, followed by a period.
23644 \end_layout
23645
23646 \begin_layout Standard
23647 Of course, sometimes you may want to print a key only if it exists.
23648  This can be done by using a conditional construction, such as: 
23649 \begin_inset Flex Code
23650 status collapsed
23651
23652 \begin_layout Plain Layout
23653 {%volume%[[vol.
23654 \begin_inset space ~
23655 \end_inset
23656
23657 %volume%]]}
23658 \end_layout
23659
23660 \end_inset
23661
23662 .
23663  This says: If the 
23664 \begin_inset Flex Code
23665 status collapsed
23666
23667 \begin_layout Plain Layout
23668 volume
23669 \end_layout
23670
23671 \end_inset
23672
23673  key exists, then print 
23674 \begin_inset Quotes eld
23675 \end_inset
23676
23677 vol.
23678 \begin_inset space ~
23679 \end_inset
23680
23681
23682 \begin_inset Quotes erd
23683 \end_inset
23684
23685  followed by the volume key.
23686  It is also possible to have an else clause in the conditional, such as:
23687 \begin_inset Newline newline
23688 \end_inset
23689
23690
23691 \begin_inset Flex Code
23692 status collapsed
23693
23694 \begin_layout Plain Layout
23695 {%author%[[%author%]][[%editor%, ed.]]}
23696 \end_layout
23697
23698 \end_inset
23699
23700 .
23701 \begin_inset Newline newline
23702 \end_inset
23703
23704 Here, the 
23705 \begin_inset Flex Code
23706 status collapsed
23707
23708 \begin_layout Plain Layout
23709 author
23710 \end_layout
23711
23712 \end_inset
23713
23714  key is printed if it exists; otherwise, the editor key is printed, followed
23715  by 
23716 \begin_inset Quotes eld
23717 \end_inset
23718
23719 ,
23720 \begin_inset space ~
23721 \end_inset
23722
23723 ed.
23724 \begin_inset Quotes erd
23725 \end_inset
23726
23727  Note that the key is again enclosed in 
23728 \begin_inset Flex Code
23729 status collapsed
23730
23731 \begin_layout Plain Layout
23732 %
23733 \end_layout
23734
23735 \end_inset
23736
23737  signs; the entire conditional is enclosed in braces; and the if and else
23738  clauses are enclosed in double brackets, 
23739 \begin_inset Quotes eld
23740 \end_inset
23741
23742
23743 \begin_inset Flex Code
23744 status collapsed
23745
23746 \begin_layout Plain Layout
23747 [[
23748 \end_layout
23749
23750 \end_inset
23751
23752
23753 \begin_inset Quotes eld
23754 \end_inset
23755
23756  and 
23757 \begin_inset Quotes eld
23758 \end_inset
23759
23760
23761 \begin_inset Flex Code
23762 status collapsed
23763
23764 \begin_layout Plain Layout
23765 ]]
23766 \end_layout
23767
23768 \end_inset
23769
23770
23771 \begin_inset Quotes erd
23772 \end_inset
23773
23774 .
23775  There must be no space between any of these.
23776 \end_layout
23777
23778 \begin_layout Standard
23779 Next to the entry keys, there are some special keys that can be used for
23780  these conditionals:
23781 \end_layout
23782
23783 \begin_layout Itemize
23784 \begin_inset Flex Code
23785 status collapsed
23786
23787 \begin_layout Plain Layout
23788 {%dialog%[[true]][[false]]}
23789 \end_layout
23790
23791 \end_inset
23792
23793 : process the 
23794 \begin_inset Quotes eld
23795 \end_inset
23796
23797 true
23798 \begin_inset Quotes erd
23799 \end_inset
23800
23801  part for dialogs and menus, the 
23802 \begin_inset Quotes eld
23803 \end_inset
23804
23805 false
23806 \begin_inset Quotes erd
23807 \end_inset
23808
23809  part for other contexts (workarea, export)
23810 \end_layout
23811
23812 \begin_layout Itemize
23813 \begin_inset Flex Code
23814 status collapsed
23815
23816 \begin_layout Plain Layout
23817 {%export%[[true]][[false]]}
23818 \end_layout
23819
23820 \end_inset
23821
23822 : process the 
23823 \begin_inset Quotes eld
23824 \end_inset
23825
23826 true
23827 \begin_inset Quotes erd
23828 \end_inset
23829
23830  part for export and menus, the 
23831 \begin_inset Quotes eld
23832 \end_inset
23833
23834 false
23835 \begin_inset Quotes erd
23836 \end_inset
23837
23838  part for other contexts (workarea, dialog)
23839 \end_layout
23840
23841 \begin_layout Itemize
23842 \begin_inset Flex Code
23843 status collapsed
23844
23845 \begin_layout Plain Layout
23846 {%next%[[true]]}
23847 \end_layout
23848
23849 \end_inset
23850
23851 : process the 
23852 \begin_inset Quotes eld
23853 \end_inset
23854
23855 true
23856 \begin_inset Quotes erd
23857 \end_inset
23858
23859  part if another item follows (e.
23860 \begin_inset space \thinspace{}
23861 \end_inset
23862
23863 g., in a citation with multiple keys)
23864 \end_layout
23865
23866 \begin_layout Itemize
23867 \begin_inset Flex Code
23868 status collapsed
23869
23870 \begin_layout Plain Layout
23871 {%second%[[true]][[false]]}
23872 \end_layout
23873
23874 \end_inset
23875
23876 : process the 
23877 \begin_inset Quotes eld
23878 \end_inset
23879
23880 true
23881 \begin_inset Quotes erd
23882 \end_inset
23883
23884  if this is the second of multiple items, else the 
23885 \begin_inset Quotes eld
23886 \end_inset
23887
23888 false
23889 \begin_inset Quotes erd
23890 \end_inset
23891
23892  part
23893 \end_layout
23894
23895 \begin_layout Itemize
23896 \begin_inset Flex Code
23897 status collapsed
23898
23899 \begin_layout Plain Layout
23900 {%ifstar%[[true]][[false]]}
23901 \end_layout
23902
23903 \end_inset
23904
23905 : process the 
23906 \begin_inset Quotes eld
23907 \end_inset
23908
23909 true
23910 \begin_inset Quotes erd
23911 \end_inset
23912
23913  part for starred citation commands (such as 
23914 \begin_inset Flex Code
23915 status collapsed
23916
23917 \begin_layout Plain Layout
23918
23919 \backslash
23920 cite*
23921 \end_layout
23922
23923 \end_inset
23924
23925 ), the false part for unstarred
23926 \end_layout
23927
23928 \begin_layout Itemize
23929 \begin_inset Flex Code
23930 status collapsed
23931
23932 \begin_layout Plain Layout
23933 {%ifentrytype:<type>%[[true]][[false]]}
23934 \end_layout
23935
23936 \end_inset
23937
23938 : process the 
23939 \begin_inset Quotes eld
23940 \end_inset
23941
23942 true
23943 \begin_inset Quotes erd
23944 \end_inset
23945
23946  if the current entry type matches 
23947 \begin_inset Flex Code
23948 status collapsed
23949
23950 \begin_layout Plain Layout
23951 <type>
23952 \end_layout
23953
23954 \end_inset
23955
23956 , else the false part (e.g., in a citation definition: 
23957 \begin_inset Flex Code
23958 status collapsed
23959
23960 \begin_layout Plain Layout
23961 {%ifentrytype:book%[[this is a book]][[this is no book]]}
23962 \end_layout
23963
23964 \end_inset
23965
23966 )
23967 \end_layout
23968
23969 \begin_layout Itemize
23970 \begin_inset Flex Code
23971 status collapsed
23972
23973 \begin_layout Plain Layout
23974 {%ifmultiple:<authortype>%[[true]][[false]]}
23975 \end_layout
23976
23977 \end_inset
23978
23979 : process the 
23980 \begin_inset Quotes eld
23981 \end_inset
23982
23983 true
23984 \begin_inset Quotes erd
23985 \end_inset
23986
23987  if the current author type (author, editor etc.) has multiple authors, else
23988  the false part (e.g., in a bibliography definition: 
23989 \begin_inset Flex Code
23990 status collapsed
23991
23992 \begin_layout Plain Layout
23993 {%ifmultiple:editor%[[eds.]][[ed.]]}
23994 \end_layout
23995
23996 \end_inset
23997
23998 )
23999 \end_layout
24000
24001 \begin_layout Itemize
24002 \begin_inset Flex Code
24003 status collapsed
24004
24005 \begin_layout Plain Layout
24006 {%ifqualified%[[true]][[false]]}
24007 \end_layout
24008
24009 \end_inset
24010
24011 : process the 
24012 \begin_inset Quotes eld
24013 \end_inset
24014
24015 true
24016 \begin_inset Quotes erd
24017 \end_inset
24018
24019  part if the current citation is a qualified citation list (a specific 
24020 \family sans
24021 Biblatex
24022 \family default
24023  format for multi-reference citations), the false part if this is not the
24024  case.
24025 \end_layout
24026
24027 \begin_layout Standard
24028 We said that 
24029 \begin_inset Flex Code
24030 status collapsed
24031
24032 \begin_layout Plain Layout
24033 %author%
24034 \end_layout
24035
24036 \end_inset
24037
24038  prints the author key as it is recorded in the bibliography file.
24039  This might not be what you want, since it will result in a string such
24040  as 
24041 \begin_inset Quotes eld
24042 \end_inset
24043
24044 Miller, Peter and Smith, Mary and White, Jane
24045 \begin_inset Quotes erd
24046 \end_inset
24047
24048  (since 
24049 \begin_inset Quotes eld
24050 \end_inset
24051
24052 and
24053 \begin_inset Quotes erd
24054 \end_inset
24055
24056  is used by Bib\SpecialChar TeX
24057  to delimit authors).
24058  \SpecialChar LyX
24059  therefore provides some methods to get properly formatted name lists (which
24060  will also get translated).
24061  The following keys are provided:
24062 \end_layout
24063
24064 \begin_layout Enumerate
24065 For name lists with pre- and surname, suitable for the main authors/editors
24066  of a bibliography item.
24067  The 
24068 \begin_inset Flex Code
24069 status collapsed
24070
24071 \begin_layout Plain Layout
24072 <nametype>
24073 \end_layout
24074
24075 \end_inset
24076
24077  part denotes the kind of list that is requested (e.g.
24078  
24079 \begin_inset Flex Code
24080 status collapsed
24081
24082 \begin_layout Plain Layout
24083 <nametype:author>
24084 \end_layout
24085
24086 \end_inset
24087
24088 ):
24089 \end_layout
24090
24091 \begin_deeper
24092 \begin_layout Itemize
24093 \begin_inset Flex Code
24094 status collapsed
24095
24096 \begin_layout Plain Layout
24097 %abbrvnames:<nametype>%
24098 \end_layout
24099
24100 \end_inset
24101
24102 : Provides a name list which is abbreviated (with 
24103 \begin_inset Quotes eld
24104 \end_inset
24105
24106 et al.
24107 \begin_inset Quotes erd
24108 \end_inset
24109
24110 ) when 
24111 \begin_inset Flex Code
24112 status collapsed
24113
24114 \begin_layout Plain Layout
24115 MaxCiteNames
24116 \end_layout
24117
24118 \end_inset
24119
24120  is reached.
24121 \end_layout
24122
24123 \begin_layout Itemize
24124 \begin_inset Flex Code
24125 status collapsed
24126
24127 \begin_layout Plain Layout
24128 %fullnames:<nametype>%
24129 \end_layout
24130
24131 \end_inset
24132
24133 : Provides a full name list (never abbreviated with 
24134 \begin_inset Quotes eld
24135 \end_inset
24136
24137 et al.
24138 \begin_inset Quotes erd
24139 \end_inset
24140
24141 ).
24142 \end_layout
24143
24144 \begin_layout Itemize
24145 \begin_inset Flex Code
24146 status collapsed
24147
24148 \begin_layout Plain Layout
24149 %forceabbrvnames:<nametype>%
24150 \end_layout
24151
24152 \end_inset
24153
24154 : Provides a name list which is always abbreviated (with 
24155 \begin_inset Quotes eld
24156 \end_inset
24157
24158 et al.
24159 \begin_inset Quotes erd
24160 \end_inset
24161
24162 ) irrespective of 
24163 \begin_inset Flex Code
24164 status collapsed
24165
24166 \begin_layout Plain Layout
24167 MaxCiteNames
24168 \end_layout
24169
24170 \end_inset
24171
24172 .
24173 \end_layout
24174
24175 \end_deeper
24176 \begin_layout Enumerate
24177 Alternative name lists with pre- and surname, if the order of pre- and surname
24178  inside the bibliography item differs (as in: 
24179 \begin_inset Quotes eld
24180 \end_inset
24181
24182 Miller, John: Some text, in: Mary Smith, ed.: A volume
24183 \begin_inset Quotes erd
24184 \end_inset
24185
24186 ):
24187 \end_layout
24188
24189 \begin_deeper
24190 \begin_layout Itemize
24191 \begin_inset Flex Code
24192 status collapsed
24193
24194 \begin_layout Plain Layout
24195 %abbrvbynames:<nametype>%
24196 \end_layout
24197
24198 \end_inset
24199
24200 : Provides a name list which is abbreviated (with 
24201 \begin_inset Quotes eld
24202 \end_inset
24203
24204 et al.
24205 \begin_inset Quotes erd
24206 \end_inset
24207
24208 ) when 
24209 \begin_inset Flex Code
24210 status collapsed
24211
24212 \begin_layout Plain Layout
24213 MaxCiteNames
24214 \end_layout
24215
24216 \end_inset
24217
24218  is reached.
24219 \end_layout
24220
24221 \begin_layout Itemize
24222 \begin_inset Flex Code
24223 status collapsed
24224
24225 \begin_layout Plain Layout
24226 %fullbynames:<nametype>%
24227 \end_layout
24228
24229 \end_inset
24230
24231 : Provides a full name list (never abbreviated with 
24232 \begin_inset Quotes eld
24233 \end_inset
24234
24235 et al.
24236 \begin_inset Quotes erd
24237 \end_inset
24238
24239 ).
24240 \end_layout
24241
24242 \begin_layout Itemize
24243 \begin_inset Flex Code
24244 status collapsed
24245
24246 \begin_layout Plain Layout
24247 %forceabbrvbynames:<nametype>%
24248 \end_layout
24249
24250 \end_inset
24251
24252 : Provides a name list which is always abbreviated (with 
24253 \begin_inset Quotes eld
24254 \end_inset
24255
24256 et al.
24257 \begin_inset Quotes erd
24258 \end_inset
24259
24260 ) irrespective of 
24261 \begin_inset Flex Code
24262 status collapsed
24263
24264 \begin_layout Plain Layout
24265 MaxCiteNames
24266 \end_layout
24267
24268 \end_inset
24269
24270 .
24271 \end_layout
24272
24273 \end_deeper
24274 \begin_layout Enumerate
24275 And finally name lists which consist of family names only, as used in author-yea
24276 r citation labels.
24277  These do not take a 
24278 \begin_inset Flex Code
24279 status collapsed
24280
24281 \begin_layout Plain Layout
24282 <nametype>
24283 \end_layout
24284
24285 \end_inset
24286
24287  part, but always return either an author list or, if this does not exist,
24288  an editor list (as common in author-year labels):
24289 \end_layout
24290
24291 \begin_deeper
24292 \begin_layout Itemize
24293 \begin_inset Flex Code
24294 status collapsed
24295
24296 \begin_layout Plain Layout
24297 %abbrvciteauthor%
24298 \end_layout
24299
24300 \end_inset
24301
24302 : Provides a name list which is abbreviated (with 
24303 \begin_inset Quotes eld
24304 \end_inset
24305
24306 et al.
24307 \begin_inset Quotes erd
24308 \end_inset
24309
24310 ) when 
24311 \begin_inset Flex Code
24312 status collapsed
24313
24314 \begin_layout Plain Layout
24315 MaxCiteNames
24316 \end_layout
24317
24318 \end_inset
24319
24320  is reached.
24321 \end_layout
24322
24323 \begin_layout Itemize
24324 \begin_inset Flex Code
24325 status collapsed
24326
24327 \begin_layout Plain Layout
24328 %fullciteauthor%
24329 \end_layout
24330
24331 \end_inset
24332
24333 : Provides a full name list (never abbreviated with 
24334 \begin_inset Quotes eld
24335 \end_inset
24336
24337 et al.
24338 \begin_inset Quotes erd
24339 \end_inset
24340
24341 ).
24342 \end_layout
24343
24344 \begin_layout Itemize
24345 \begin_inset Flex Code
24346 status collapsed
24347
24348 \begin_layout Plain Layout
24349 %forceabbrvciteauthor%
24350 \end_layout
24351
24352 \end_inset
24353
24354 : Provides a name list which is always abbreviated (with 
24355 \begin_inset Quotes eld
24356 \end_inset
24357
24358 et al.
24359 \begin_inset Quotes erd
24360 \end_inset
24361
24362 ) irrespective of 
24363 \begin_inset Flex Code
24364 status collapsed
24365
24366 \begin_layout Plain Layout
24367 MaxCiteNames
24368 \end_layout
24369
24370 \end_inset
24371
24372 .
24373 \end_layout
24374
24375 \end_deeper
24376 \begin_layout Standard
24377 The order of pre- and surname in the former two lists can be adjusted by
24378  these macros:
24379 \end_layout
24380
24381 \begin_layout Itemize
24382 \begin_inset Flex Code
24383 status collapsed
24384
24385 \begin_layout Plain Layout
24386 !firstnameform %surname%, %prename%
24387 \end_layout
24388
24389 \end_inset
24390
24391  (first author in lists of type 1)
24392 \end_layout
24393
24394 \begin_layout Itemize
24395 \begin_inset Flex Code
24396 status collapsed
24397
24398 \begin_layout Plain Layout
24399 !othernameform %surname%, %prename%
24400 \end_layout
24401
24402 \end_inset
24403
24404  (other authors in lists of type 1)
24405 \end_layout
24406
24407 \begin_layout Itemize
24408 \begin_inset Flex Code
24409 status collapsed
24410
24411 \begin_layout Plain Layout
24412 !firstbynameform %prename% %surname%
24413 \end_layout
24414
24415 \end_inset
24416
24417  (first author in lists of type 2)
24418 \end_layout
24419
24420 \begin_layout Itemize
24421 \begin_inset Flex Code
24422 status collapsed
24423
24424 \begin_layout Plain Layout
24425 !otherbynameform %prename% %surname%
24426 \end_layout
24427
24428 \end_inset
24429
24430  (other authors in lists of type 2)
24431 \end_layout
24432
24433 \begin_layout Standard
24434 This allows you to configure namings like 
24435 \begin_inset Quotes eld
24436 \end_inset
24437
24438 Miller, Peter and Mary Smith: \SpecialChar ldots
24439 , in: John Doe and Pat Green, eds.:\SpecialChar ldots
24440
24441 \begin_inset Quotes erd
24442 \end_inset
24443
24444 .
24445 \end_layout
24446
24447 \begin_layout Standard
24448 There is one other piece of syntax available in definitions, which looks
24449  like this: 
24450 \begin_inset Flex Code
24451 status collapsed
24452
24453 \begin_layout Plain Layout
24454 {!<i>!}
24455 \end_layout
24456
24457 \end_inset
24458
24459 .
24460  This defines a piece of formatting information that is to be used when
24461  creating 
24462 \begin_inset Quotes eld
24463 \end_inset
24464
24465 rich text
24466 \begin_inset Quotes erd
24467 \end_inset
24468
24469 .
24470  Obviously, we do not want to output HTML tags when writing plain text,
24471  so they should be wrapped in 
24472 \begin_inset Quotes eld
24473 \end_inset
24474
24475 {!
24476 \begin_inset Quotes erd
24477 \end_inset
24478
24479  and 
24480 \begin_inset Quotes eld
24481 \end_inset
24482
24483 !}
24484 \begin_inset Quotes erd
24485 \end_inset
24486
24487 .
24488 \end_layout
24489
24490 \begin_layout Standard
24491 Two special sorts of definitions are also possible in a 
24492 \begin_inset Flex Code
24493 status collapsed
24494
24495 \begin_layout Plain Layout
24496 CiteFormat
24497 \end_layout
24498
24499 \end_inset
24500
24501  block.
24502  An example of the first would be:
24503 \end_layout
24504
24505 \begin_layout LyX-Code
24506 !quotetitle 
24507 \begin_inset Quotes eld
24508 \end_inset
24509
24510 %title%
24511 \begin_inset Quotes erd
24512 \end_inset
24513
24514
24515 \end_layout
24516
24517 \begin_layout Standard
24518 This is an abbreviation, or macro, and it can be used by treating it as
24519  if it were a key: 
24520 \begin_inset Flex Code
24521 status collapsed
24522
24523 \begin_layout Plain Layout
24524 %!quotetitle%
24525 \end_layout
24526
24527 \end_inset
24528
24529 .
24530  \SpecialChar LyX
24531  will treat 
24532 \begin_inset Flex Code
24533 status collapsed
24534
24535 \begin_layout Plain Layout
24536 %!quotetitle%
24537 \end_layout
24538
24539 \end_inset
24540
24541  exactly as it would treat its definition.
24542  So, let us issue the obvious 
24543 \emph on
24544 warning
24545 \emph default
24546 .
24547  Do not do this:
24548 \end_layout
24549
24550 \begin_layout LyX-Code
24551 !funfun %funfun%
24552 \end_layout
24553
24554 \begin_layout Standard
24555 or anything like it.
24556  \SpecialChar LyX
24557  shouldn't go into an infinite loop, but it may go into a long one before
24558  it gives up.
24559 \end_layout
24560
24561 \begin_layout Standard
24562 The second sort of special definition might look like this:
24563 \end_layout
24564
24565 \begin_layout LyX-Code
24566 B_pptext pp.
24567 \end_layout
24568
24569 \begin_layout Standard
24570 This defines a translatable piece of text, which allows relevant parts of
24571  the bibliography or citation to be translated.
24572  It can be included in a definition by treating it as a key: 
24573 \begin_inset Flex Code
24574 status collapsed
24575
24576 \begin_layout Plain Layout
24577 %B_pptext%
24578 \end_layout
24579
24580 \end_inset
24581
24582 .
24583  Note that there are two different translation paths: All definitions starting
24584  with 
24585 \begin_inset Flex Code
24586 status collapsed
24587
24588 \begin_layout Plain Layout
24589 B_
24590 \end_layout
24591
24592 \end_inset
24593
24594 , such as in the example above, will be translated to the currently active
24595  buffer language (so the translation will match the generated document).
24596  All definitions starting with underscore only will be translated to the
24597  GUI language.
24598  This is the proper translation for strings that only occur in the dialogs
24599  or on buttons, such as this one:
24600 \end_layout
24601
24602 \begin_layout LyX-Code
24603 _addtobib Add to bibliography only.
24604 \end_layout
24605
24606 \begin_layout Standard
24607 Several of these translatable strings are predefined in 
24608 \begin_inset Flex Code
24609 status collapsed
24610
24611 \begin_layout Plain Layout
24612 stdciteformats.inc
24613 \end_layout
24614
24615 \end_inset
24616
24617  and the diverse 
24618 \begin_inset Flex Code
24619 status collapsed
24620
24621 \begin_layout Plain Layout
24622 *.citeengine
24623 \end_layout
24624
24625 \end_inset
24626
24627  files.
24628  Note that these are not macros, in the sense just defined.
24629  They will not be expanded.
24630 \end_layout
24631
24632 \begin_layout Standard
24633 So here then is an example that uses several of these features:
24634 \begin_inset VSpace defskip
24635 \end_inset
24636
24637
24638 \end_layout
24639
24640 \begin_layout Standard
24641 \noindent
24642
24643 \family sans
24644 !authoredit {%author%[[%author%, ]][[{%editor%[[%editor%, %B_edtext%, ]]}]]}
24645 \end_layout
24646
24647 \begin_layout Standard
24648 \begin_inset VSpace defskip
24649 \end_inset
24650
24651 This defines a macro that prints the author, followed by a comma, if the
24652  
24653 \begin_inset Flex Code
24654 status collapsed
24655
24656 \begin_layout Plain Layout
24657 author
24658 \end_layout
24659
24660 \end_inset
24661
24662  key is defined, or else prints the name of the editor, followed by the
24663  
24664 \begin_inset Flex Code
24665 status collapsed
24666
24667 \begin_layout Plain Layout
24668 B_edtext
24669 \end_layout
24670
24671 \end_inset
24672
24673  or its translation (it is by default 
24674 \begin_inset Quotes eld
24675 \end_inset
24676
24677 ed.
24678 \begin_inset Quotes erd
24679 \end_inset
24680
24681 ), if the 
24682 \begin_inset Flex Code
24683 status collapsed
24684
24685 \begin_layout Plain Layout
24686 editor
24687 \end_layout
24688
24689 \end_inset
24690
24691  key is defined.
24692  Note that this is in fact defined in 
24693 \begin_inset Flex Code
24694 status collapsed
24695
24696 \begin_layout Plain Layout
24697 stdciteformats.inc
24698 \end_layout
24699
24700 \end_inset
24701
24702 , so you can use it in your own definitions, or re-definitions, if you load
24703  that file first.
24704 \end_layout
24705
24706 \begin_layout Section
24707 \begin_inset CommandInset label
24708 LatexCommand label
24709 name "sec:Tags-for-XHTML"
24710
24711 \end_inset
24712
24713 Tags for XHTML output
24714 \end_layout
24715
24716 \begin_layout Standard
24717 As with \SpecialChar LaTeX
24718  or DocBook, the format of \SpecialChar LyX
24719 's XHTML output is also controlled by
24720  layout information.
24721  In general, \SpecialChar LyX
24722  provides sensible defaults and, as mentioned earlier, it will
24723  even construct default CSS style rules from the other layout tags.
24724  For example, \SpecialChar LyX
24725  will attempt to use the information provided in the 
24726 \begin_inset Flex Code
24727 status collapsed
24728
24729 \begin_layout Plain Layout
24730 Font
24731 \end_layout
24732
24733 \end_inset
24734
24735  declaration for the Chapter style to write CSS that will appropriately
24736  format chapter headings.
24737 \end_layout
24738
24739 \begin_layout Standard
24740 In many cases, then, you may not have to do anything at all to get acceptable
24741  XHTML output for your own environments, custom insets, and so forth.
24742  But in some cases you will, and so \SpecialChar LyX
24743  provides a number of layout tags that
24744  can be used to customize the XHTML and CSS that are generated.
24745 \end_layout
24746
24747 \begin_layout Standard
24748 Note that there are two tags, 
24749 \begin_inset Flex Code
24750 status collapsed
24751
24752 \begin_layout Plain Layout
24753 HTMLPreamble
24754 \end_layout
24755
24756 \end_inset
24757
24758  and 
24759 \begin_inset Flex Code
24760 status collapsed
24761
24762 \begin_layout Plain Layout
24763 AddToHTMLPreamble
24764 \end_layout
24765
24766 \end_inset
24767
24768  that may appear outside style and inset declarations.
24769  See 
24770 \begin_inset CommandInset ref
24771 LatexCommand ref
24772 reference "subsec:General-text-class"
24773
24774 \end_inset
24775
24776  for details on these.
24777 \end_layout
24778
24779 \begin_layout Subsection
24780 \begin_inset CommandInset label
24781 LatexCommand label
24782 name "subsec:Paragraph-Style-XHTML"
24783
24784 \end_inset
24785
24786 Paragraph styles
24787 \end_layout
24788
24789 \begin_layout Standard
24790 The sort of XHTML \SpecialChar LyX
24791  outputs for a paragraph depends upon whether we are dealing
24792  with a normal paragraph, a command, or an environment, where this is itself
24793  determined by the contents of the corresponding 
24794 \begin_inset Flex Code
24795 status collapsed
24796
24797 \begin_layout Plain Layout
24798 \SpecialChar LaTeX
24799 Type
24800 \end_layout
24801
24802 \end_inset
24803
24804  tag.
24805  
24806 \end_layout
24807
24808 \begin_layout Standard
24809 For a command or normal paragraph, the output XHTML has the following form:
24810 \end_layout
24811
24812 \begin_layout LyX-Code
24813
24814 \family sans
24815 <tag attr=
24816 \begin_inset Quotes erd
24817 \end_inset
24818
24819 value
24820 \begin_inset Quotes erd
24821 \end_inset
24822
24823 >
24824 \end_layout
24825
24826 \begin_layout LyX-Code
24827
24828 \family sans
24829 <labeltag attr=
24830 \begin_inset Quotes erd
24831 \end_inset
24832
24833 value
24834 \begin_inset Quotes erd
24835 \end_inset
24836
24837 >Label</labeltag>
24838 \end_layout
24839
24840 \begin_layout LyX-Code
24841
24842 \family sans
24843 Contents of the paragraph.
24844 \end_layout
24845
24846 \begin_layout LyX-Code
24847
24848 \family sans
24849 </tag>
24850 \end_layout
24851
24852 \begin_layout Standard
24853 The label tags are of course omitted if the paragraph does not have a label.
24854 \end_layout
24855
24856 \begin_layout Standard
24857 For an environment that is not some sort of list, the XHTML takes this form:
24858 \end_layout
24859
24860 \begin_layout LyX-Code
24861
24862 \family sans
24863 <tag attr=
24864 \begin_inset Quotes erd
24865 \end_inset
24866
24867 value
24868 \begin_inset Quotes erd
24869 \end_inset
24870
24871 >
24872 \end_layout
24873
24874 \begin_layout LyX-Code
24875
24876 \family sans
24877 <itemtag attr=
24878 \begin_inset Quotes erd
24879 \end_inset
24880
24881 value
24882 \begin_inset Quotes erd
24883 \end_inset
24884
24885 ><labeltag attr=
24886 \begin_inset Quotes erd
24887 \end_inset
24888
24889 value
24890 \begin_inset Quotes erd
24891 \end_inset
24892
24893 >Environment Label</labeltag>First paragraph.</itemtag>
24894 \end_layout
24895
24896 \begin_layout LyX-Code
24897
24898 \family sans
24899 <itemtag>Second paragraph.</itemtag>
24900 \end_layout
24901
24902 \begin_layout LyX-Code
24903
24904 \family sans
24905 </tag>
24906 \end_layout
24907
24908 \begin_layout Standard
24909 Note that the label is output only for the first paragraph, as it should
24910  be for a theorem, for example.
24911  
24912 \end_layout
24913
24914 \begin_layout Standard
24915 For a list, we have one of these forms:
24916 \end_layout
24917
24918 \begin_layout LyX-Code
24919
24920 \family sans
24921 <tag attr=
24922 \begin_inset Quotes erd
24923 \end_inset
24924
24925 value
24926 \begin_inset Quotes erd
24927 \end_inset
24928
24929 >
24930 \end_layout
24931
24932 \begin_layout LyX-Code
24933
24934 \family sans
24935 <itemtag attr=
24936 \begin_inset Quotes erd
24937 \end_inset
24938
24939 value
24940 \begin_inset Quotes erd
24941 \end_inset
24942
24943 ><labeltag attr=
24944 \begin_inset Quotes erd
24945 \end_inset
24946
24947 value
24948 \begin_inset Quotes erd
24949 \end_inset
24950
24951 >List Label</labeltag>First item.</itemtag>
24952 \end_layout
24953
24954 \begin_layout LyX-Code
24955
24956 \family sans
24957 <itemtag attr=
24958 \begin_inset Quotes erd
24959 \end_inset
24960
24961 value
24962 \begin_inset Quotes erd
24963 \end_inset
24964
24965 ><labeltag attr=
24966 \begin_inset Quotes erd
24967 \end_inset
24968
24969 value
24970 \begin_inset Quotes erd
24971 \end_inset
24972
24973 >List Label</labeltag>Second item.</itemtag>
24974 \end_layout
24975
24976 \begin_layout LyX-Code
24977
24978 \family sans
24979 </tag>
24980 \end_layout
24981
24982 \begin_layout LyX-Code
24983
24984 \end_layout
24985
24986 \begin_layout LyX-Code
24987
24988 \family sans
24989 <tag attr=
24990 \begin_inset Quotes erd
24991 \end_inset
24992
24993 value
24994 \begin_inset Quotes erd
24995 \end_inset
24996
24997 >
24998 \end_layout
24999
25000 \begin_layout LyX-Code
25001
25002 \family sans
25003 <labeltag attr=
25004 \begin_inset Quotes erd
25005 \end_inset
25006
25007 value
25008 \begin_inset Quotes erd
25009 \end_inset
25010
25011 >List Label</labeltag><itemtag attr=
25012 \begin_inset Quotes erd
25013 \end_inset
25014
25015 value
25016 \begin_inset Quotes erd
25017 \end_inset
25018
25019 >First item.</itemtag>
25020 \end_layout
25021
25022 \begin_layout LyX-Code
25023
25024 \family sans
25025 <labeltag attr=
25026 \begin_inset Quotes erd
25027 \end_inset
25028
25029 value
25030 \begin_inset Quotes erd
25031 \end_inset
25032
25033 >List Label</labeltag><itemtag attr=
25034 \begin_inset Quotes erd
25035 \end_inset
25036
25037 value
25038 \begin_inset Quotes erd
25039 \end_inset
25040
25041 >Second item.</itemtag>
25042 \end_layout
25043
25044 \begin_layout LyX-Code
25045
25046 \family sans
25047 </tag>
25048 \end_layout
25049
25050 \begin_layout Standard
25051 Note the different orders of 
25052 \begin_inset Flex Code
25053 status collapsed
25054
25055 \begin_layout Plain Layout
25056 labeltag
25057 \end_layout
25058
25059 \end_inset
25060
25061  and 
25062 \begin_inset Flex Code
25063 status collapsed
25064
25065 \begin_layout Plain Layout
25066 itemtag
25067 \end_layout
25068
25069 \end_inset
25070
25071 .
25072  Which order we get depends upon the setting of 
25073 \begin_inset Flex Code
25074 status collapsed
25075
25076 \begin_layout Plain Layout
25077 HTMLLabelFirst
25078 \end_layout
25079
25080 \end_inset
25081
25082 : If 
25083 \begin_inset Flex Code
25084 status collapsed
25085
25086 \begin_layout Plain Layout
25087 HTMLLabelFirst
25088 \end_layout
25089
25090 \end_inset
25091
25092  is false (the default), you get the first of these, with the label within
25093  the item; if true, you get the second, with the label outside the item.
25094 \end_layout
25095
25096 \begin_layout Standard
25097 The specific tags and attributes output for each paragraph type can be controlle
25098 d by means of the layout tags we are about to describe.
25099  As mentioned earlier, however, \SpecialChar LyX
25100  uses sensible defaults for many of these,
25101  so you often may not need to do very much to get good XHTML output.
25102  Think of the available tags as there so you can tweak things to your liking.
25103 \end_layout
25104
25105 \begin_layout Description
25106 \begin_inset Flex Code
25107 status collapsed
25108
25109 \begin_layout Plain Layout
25110 HTMLAttr
25111 \end_layout
25112
25113 \end_inset
25114
25115  [
25116 \begin_inset Flex Code
25117 status collapsed
25118
25119 \begin_layout Plain Layout
25120 string
25121 \end_layout
25122
25123 \end_inset
25124
25125 ] Specifies attribute information to be output with the main tag.
25126  For example, 
25127 \begin_inset Quotes eld
25128 \end_inset
25129
25130
25131 \begin_inset Flex Code
25132 status collapsed
25133
25134 \begin_layout Plain Layout
25135 class=`mydiv'
25136 \end_layout
25137
25138 \end_inset
25139
25140
25141 \begin_inset Quotes erd
25142 \end_inset
25143
25144 .
25145  By default, \SpecialChar LyX
25146  will output 
25147 \begin_inset Quotes eld
25148 \end_inset
25149
25150
25151 \begin_inset Flex Code
25152 status collapsed
25153
25154 \begin_layout Plain Layout
25155 class=`layoutname'
25156 \end_layout
25157
25158 \end_inset
25159
25160
25161 \begin_inset Quotes erd
25162 \end_inset
25163
25164 , where 
25165 \begin_inset Flex Code
25166 status collapsed
25167
25168 \begin_layout Plain Layout
25169 layoutname
25170 \end_layout
25171
25172 \end_inset
25173
25174  is the \SpecialChar LyX
25175  name of the layout, made lowercase, for example: chapter.
25176  This should 
25177 \emph on
25178 not
25179 \emph default
25180  contain any style information.
25181  Use 
25182 \begin_inset Flex Code
25183 status collapsed
25184
25185 \begin_layout Plain Layout
25186 HTMLStyle
25187 \end_layout
25188
25189 \end_inset
25190
25191  for that purpose.
25192 \end_layout
25193
25194 \begin_layout Description
25195 \begin_inset Flex Code
25196 status collapsed
25197
25198 \begin_layout Plain Layout
25199 HTMLForceCSS
25200 \end_layout
25201
25202 \end_inset
25203
25204  [
25205 \begin_inset Flex Code
25206 status collapsed
25207
25208 \begin_layout Plain Layout
25209
25210 \emph on
25211 0
25212 \emph default
25213 ,1
25214 \end_layout
25215
25216 \end_inset
25217
25218 ] Whether to output the default CSS information \SpecialChar LyX
25219  generates for this layout,
25220  even if additional information is explicitly provided via 
25221 \begin_inset Flex Code
25222 status collapsed
25223
25224 \begin_layout Plain Layout
25225 HTMLStyle
25226 \end_layout
25227
25228 \end_inset
25229
25230 .
25231  Setting this to 
25232 \begin_inset Flex Code
25233 status collapsed
25234
25235 \begin_layout Plain Layout
25236 1
25237 \end_layout
25238
25239 \end_inset
25240
25241  allows you to alter or augment the generated CSS, rather than to override
25242  it completely.
25243  Default is 
25244 \begin_inset Flex Code
25245 status collapsed
25246
25247 \begin_layout Plain Layout
25248 0
25249 \end_layout
25250
25251 \end_inset
25252
25253 .
25254 \end_layout
25255
25256 \begin_layout Description
25257 \begin_inset Flex Code
25258 status collapsed
25259
25260 \begin_layout Plain Layout
25261 HTMLItem
25262 \end_layout
25263
25264 \end_inset
25265
25266  [
25267 \begin_inset Flex Code
25268 status collapsed
25269
25270 \begin_layout Plain Layout
25271 string
25272 \end_layout
25273
25274 \end_inset
25275
25276 ] The tag to be used for individual paragraphs of environments, replacing
25277  
25278 \begin_inset Flex Code
25279 status collapsed
25280
25281 \begin_layout Plain Layout
25282 itemtag
25283 \end_layout
25284
25285 \end_inset
25286
25287  in the examples above.
25288  Defaults to 
25289 \begin_inset Flex Code
25290 status collapsed
25291
25292 \begin_layout Plain Layout
25293 div
25294 \end_layout
25295
25296 \end_inset
25297
25298 .
25299 \end_layout
25300
25301 \begin_layout Description
25302 \begin_inset Flex Code
25303 status collapsed
25304
25305 \begin_layout Plain Layout
25306 HTMLItemAttr
25307 \end_layout
25308
25309 \end_inset
25310
25311  [
25312 \begin_inset Flex Code
25313 status collapsed
25314
25315 \begin_layout Plain Layout
25316 string
25317 \end_layout
25318
25319 \end_inset
25320
25321 ] Attributes for the item tag.
25322  Defaults to
25323 \begin_inset Newline newline
25324 \end_inset
25325
25326
25327 \begin_inset Quotes eld
25328 \end_inset
25329
25330
25331 \begin_inset Flex Code
25332 status collapsed
25333
25334 \begin_layout Plain Layout
25335 class=`layoutname_item'
25336 \end_layout
25337
25338 \end_inset
25339
25340
25341 \begin_inset Quotes erd
25342 \end_inset
25343
25344 .
25345  This should 
25346 \emph on
25347 not
25348 \emph default
25349  contain any style information.
25350  Use 
25351 \begin_inset Flex Code
25352 status collapsed
25353
25354 \begin_layout Plain Layout
25355 HTMLStyle
25356 \end_layout
25357
25358 \end_inset
25359
25360  for that purpose.
25361 \end_layout
25362
25363 \begin_layout Description
25364 \begin_inset Flex Code
25365 status collapsed
25366
25367 \begin_layout Plain Layout
25368 HTMLLabel
25369 \end_layout
25370
25371 \end_inset
25372
25373  [
25374 \begin_inset Flex Code
25375 status collapsed
25376
25377 \begin_layout Plain Layout
25378 string
25379 \end_layout
25380
25381 \end_inset
25382
25383 ] The tag to be used for paragraph and item labels, replacing 
25384 \begin_inset Flex Code
25385 status collapsed
25386
25387 \begin_layout Plain Layout
25388 labeltag
25389 \end_layout
25390
25391 \end_inset
25392
25393  in the examples above.
25394  Defaults to 
25395 \begin_inset Flex Code
25396 status collapsed
25397
25398 \begin_layout Plain Layout
25399 span
25400 \end_layout
25401
25402 \end_inset
25403
25404 , unless 
25405 \begin_inset Flex Code
25406 status collapsed
25407
25408 \begin_layout Plain Layout
25409 LabelType
25410 \end_layout
25411
25412 \end_inset
25413
25414  is either 
25415 \begin_inset Flex Code
25416 status collapsed
25417
25418 \begin_layout Plain Layout
25419 Top_Environment
25420 \end_layout
25421
25422 \end_inset
25423
25424  or 
25425 \begin_inset Flex Code
25426 status collapsed
25427
25428 \begin_layout Plain Layout
25429 Centered_Top_Environment
25430 \end_layout
25431
25432 \end_inset
25433
25434 , in which case it defaults to 
25435 \begin_inset Flex Code
25436 status collapsed
25437
25438 \begin_layout Plain Layout
25439 div
25440 \end_layout
25441
25442 \end_inset
25443
25444 .
25445 \end_layout
25446
25447 \begin_layout Description
25448 \begin_inset Flex Code
25449 status collapsed
25450
25451 \begin_layout Plain Layout
25452 HTMLLabelAttr
25453 \end_layout
25454
25455 \end_inset
25456
25457  [
25458 \begin_inset Flex Code
25459 status collapsed
25460
25461 \begin_layout Plain Layout
25462 string
25463 \end_layout
25464
25465 \end_inset
25466
25467 ] Attributes for the label tag.
25468  Defaults to
25469 \begin_inset Newline newline
25470 \end_inset
25471
25472
25473 \begin_inset Quotes eld
25474 \end_inset
25475
25476
25477 \begin_inset Flex Code
25478 status collapsed
25479
25480 \begin_layout Plain Layout
25481 class=`layoutname_label'
25482 \end_layout
25483
25484 \end_inset
25485
25486
25487 \begin_inset Quotes erd
25488 \end_inset
25489
25490 .
25491  This should 
25492 \emph on
25493 not
25494 \emph default
25495  contain any style information.
25496  Use 
25497 \begin_inset Flex Code
25498 status collapsed
25499
25500 \begin_layout Plain Layout
25501 HTMLStyle
25502 \end_layout
25503
25504 \end_inset
25505
25506  for that purpose.
25507 \end_layout
25508
25509 \begin_layout Description
25510 \begin_inset Flex Code
25511 status collapsed
25512
25513 \begin_layout Plain Layout
25514 HTMLLabelFirst
25515 \end_layout
25516
25517 \end_inset
25518
25519  [
25520 \begin_inset Flex Code
25521 status collapsed
25522
25523 \begin_layout Plain Layout
25524
25525 \emph on
25526 0
25527 \emph default
25528 ,1
25529 \end_layout
25530
25531 \end_inset
25532
25533 ] Meaningful only for list-like environments, this tag controls whether
25534  the label tag is output before or inside the item tag.
25535  This is used, for example, in the description environment, where we want
25536  `
25537 \begin_inset Flex Code
25538 status collapsed
25539
25540 \begin_layout Plain Layout
25541 <dt>\SpecialChar ldots
25542 </dt><dd>\SpecialChar ldots
25543 </dd>
25544 \end_layout
25545
25546 \end_inset
25547
25548 .
25549  Default is 
25550 \begin_inset Flex Code
25551 status collapsed
25552
25553 \begin_layout Plain Layout
25554 0
25555 \end_layout
25556
25557 \end_inset
25558
25559 : The label tag is output inside the item tag.
25560 \end_layout
25561
25562 \begin_layout Description
25563 \begin_inset Flex Code
25564 status collapsed
25565
25566 \begin_layout Plain Layout
25567 HTMLPreamble
25568 \end_layout
25569
25570 \end_inset
25571
25572  Information to be output in the 
25573 \begin_inset Flex Code
25574 status collapsed
25575
25576 \begin_layout Plain Layout
25577 <head>
25578 \end_layout
25579
25580 \end_inset
25581
25582  section when this style is used.
25583  This might, for example, be used to include a 
25584 \begin_inset Flex Code
25585 status collapsed
25586
25587 \begin_layout Plain Layout
25588 <script>
25589 \end_layout
25590
25591 \end_inset
25592
25593  block defining an 
25594 \begin_inset Flex Code
25595 status collapsed
25596
25597 \begin_layout Plain Layout
25598 onclick
25599 \end_layout
25600
25601 \end_inset
25602
25603  handler.
25604 \end_layout
25605
25606 \begin_layout Description
25607 \begin_inset Flex Code
25608 status collapsed
25609
25610 \begin_layout Plain Layout
25611 HTMLStyle
25612 \end_layout
25613
25614 \end_inset
25615
25616  CSS style information to be included when this style is used.
25617  Note that this will automatically be wrapped in a layout-generated 
25618 \begin_inset Flex Code
25619 status collapsed
25620
25621 \begin_layout Plain Layout
25622 <style>
25623 \end_layout
25624
25625 \end_inset
25626
25627  block, so only the CSS itself need be included.
25628  Must end with 
25629 \begin_inset Flex Code
25630 status collapsed
25631
25632 \begin_layout Plain Layout
25633 EndHTMLStyle
25634 \end_layout
25635
25636 \end_inset
25637
25638 .
25639 \end_layout
25640
25641 \begin_layout Description
25642 \begin_inset Flex Code
25643 status collapsed
25644
25645 \begin_layout Plain Layout
25646 HTMLTag
25647 \end_layout
25648
25649 \end_inset
25650
25651  [
25652 \begin_inset Flex Code
25653 status collapsed
25654
25655 \begin_layout Plain Layout
25656 string
25657 \end_layout
25658
25659 \end_inset
25660
25661 ] The tag to be used for the main label, replacing 
25662 \begin_inset Flex Code
25663 status collapsed
25664
25665 \begin_layout Plain Layout
25666 tag
25667 \end_layout
25668
25669 \end_inset
25670
25671  in the examples above.
25672  Defaults to 
25673 \begin_inset Flex Code
25674 status collapsed
25675
25676 \begin_layout Plain Layout
25677 div
25678 \end_layout
25679
25680 \end_inset
25681
25682 .
25683 \end_layout
25684
25685 \begin_layout Description
25686 \begin_inset Flex Code
25687 status collapsed
25688
25689 \begin_layout Plain Layout
25690 HTMLTitle
25691 \end_layout
25692
25693 \end_inset
25694
25695  [
25696 \begin_inset Flex Code
25697 status collapsed
25698
25699 \begin_layout Plain Layout
25700
25701 \emph on
25702 0
25703 \emph default
25704 ,1
25705 \end_layout
25706
25707 \end_inset
25708
25709 ] Marks this style as the one to be used to generate the 
25710 \begin_inset Flex Code
25711 status collapsed
25712
25713 \begin_layout Plain Layout
25714 <title>
25715 \end_layout
25716
25717 \end_inset
25718
25719  tag for the XHTML file.
25720  By default, it is false.
25721  The 
25722 \begin_inset Flex Code
25723 status collapsed
25724
25725 \begin_layout Plain Layout
25726 stdtitle.inc
25727 \end_layout
25728
25729 \end_inset
25730
25731  file sets it to true for the 
25732 \begin_inset Flex Code
25733 status collapsed
25734
25735 \begin_layout Plain Layout
25736 title
25737 \end_layout
25738
25739 \end_inset
25740
25741  environment.
25742  
25743 \end_layout
25744
25745 \begin_layout Subsection
25746 InsetLayout XHTML
25747 \end_layout
25748
25749 \begin_layout Standard
25750 The XHTML output of insets can also be controlled by information in layout
25751  files.
25752 \begin_inset Foot
25753 status collapsed
25754
25755 \begin_layout Plain Layout
25756 At present, this is true only for 
25757 \begin_inset Quotes eld
25758 \end_inset
25759
25760 text
25761 \begin_inset Quotes erd
25762 \end_inset
25763
25764  insets (insets you can type into) and is not true for 
25765 \begin_inset Quotes eld
25766 \end_inset
25767
25768 command
25769 \begin_inset Quotes erd
25770 \end_inset
25771
25772  insets (insets that are associated with dialog boxes).
25773 \end_layout
25774
25775 \end_inset
25776
25777  Here, too, \SpecialChar LyX
25778  tries to provide sensible defaults, and it constructs default
25779  CSS style rules.
25780  But everything can be customized.
25781 \end_layout
25782
25783 \begin_layout Standard
25784 The XHTML \SpecialChar LyX
25785  outputs for an inset has the following form:
25786 \end_layout
25787
25788 \begin_layout LyX-Code
25789 <tag attr=
25790 \begin_inset Quotes erd
25791 \end_inset
25792
25793 value
25794 \begin_inset Quotes erd
25795 \end_inset
25796
25797 >
25798 \end_layout
25799
25800 \begin_layout LyX-Code
25801 <labeltag>Label</labeltag>
25802 \end_layout
25803
25804 \begin_layout LyX-Code
25805 <innertag attr=
25806 \begin_inset Quotes erd
25807 \end_inset
25808
25809 value
25810 \begin_inset Quotes erd
25811 \end_inset
25812
25813 >Contents of the inset.</innertag>
25814 \end_layout
25815
25816 \begin_layout LyX-Code
25817 </tag>
25818 \end_layout
25819
25820 \begin_layout Standard
25821 If the inset permits multiple paragraphs—that is, if 
25822 \begin_inset Flex Code
25823 status collapsed
25824
25825 \begin_layout Plain Layout
25826 MultiPar
25827 \end_layout
25828
25829 \end_inset
25830
25831  is true—then the contents of the inset will itself be output as paragraphs
25832  formatted according to the styles used for those paragraphs (standard,
25833  quote, and the like).
25834  The label tag is of course omitted if the paragraph does not have a label
25835  and, at present, is always 
25836 \begin_inset Flex Code
25837 status collapsed
25838
25839 \begin_layout Plain Layout
25840 span
25841 \end_layout
25842
25843 \end_inset
25844
25845 .
25846  The inner tag is optional and, by default, does not appear.
25847 \end_layout
25848
25849 \begin_layout Standard
25850 The specific tags and attributes output for each inset can be controlled
25851  by means of the following layout tags.
25852 \end_layout
25853
25854 \begin_layout Description
25855 \begin_inset Flex Code
25856 status collapsed
25857
25858 \begin_layout Plain Layout
25859 HTMLAttr
25860 \end_layout
25861
25862 \end_inset
25863
25864  [
25865 \begin_inset Flex Code
25866 status collapsed
25867
25868 \begin_layout Plain Layout
25869 string
25870 \end_layout
25871
25872 \end_inset
25873
25874 ] Specifies attribute information to be output with the main tag.
25875  For example, 
25876 \begin_inset Quotes eld
25877 \end_inset
25878
25879
25880 \begin_inset Flex Code
25881 status collapsed
25882
25883 \begin_layout Plain Layout
25884 class=`myinset' onclick=`\SpecialChar ldots
25885 '
25886 \end_layout
25887
25888 \end_inset
25889
25890
25891 \begin_inset Quotes erd
25892 \end_inset
25893
25894 .
25895  By default, \SpecialChar LyX
25896  will output 
25897 \begin_inset Quotes eld
25898 \end_inset
25899
25900
25901 \begin_inset Flex Code
25902 status collapsed
25903
25904 \begin_layout Plain Layout
25905 class=`insetname'
25906 \end_layout
25907
25908 \end_inset
25909
25910
25911 \begin_inset Quotes erd
25912 \end_inset
25913
25914 , where 
25915 \begin_inset Flex Code
25916 status collapsed
25917
25918 \begin_layout Plain Layout
25919 insetname
25920 \end_layout
25921
25922 \end_inset
25923
25924  is the \SpecialChar LyX
25925  name of the inset, made lowercase and with non-alphanumeric characters
25926  converted to underscores, for example: footnote.
25927 \end_layout
25928
25929 \begin_layout Description
25930 \begin_inset Flex Code
25931 status collapsed
25932
25933 \begin_layout Plain Layout
25934 HTMLForceCSS
25935 \end_layout
25936
25937 \end_inset
25938
25939  [
25940 \begin_inset Flex Code
25941 status collapsed
25942
25943 \begin_layout Plain Layout
25944
25945 \emph on
25946 0
25947 \emph default
25948 ,1
25949 \end_layout
25950
25951 \end_inset
25952
25953 ] Whether to output the default CSS information \SpecialChar LyX
25954  generates for this layout,
25955  even if additional information is explicitly provided via 
25956 \begin_inset Flex Code
25957 status collapsed
25958
25959 \begin_layout Plain Layout
25960 HTMLStyle
25961 \end_layout
25962
25963 \end_inset
25964
25965 .
25966  Setting this to 
25967 \begin_inset Flex Code
25968 status collapsed
25969
25970 \begin_layout Plain Layout
25971 1
25972 \end_layout
25973
25974 \end_inset
25975
25976  allows you to alter or augment the generated CSS, rather than to override
25977  it completely.
25978  Default is 0.
25979 \end_layout
25980
25981 \begin_layout Description
25982 \begin_inset Flex Code
25983 status collapsed
25984
25985 \begin_layout Plain Layout
25986 HTMLInnerAttr
25987 \end_layout
25988
25989 \end_inset
25990
25991  [
25992 \begin_inset Flex Code
25993 status collapsed
25994
25995 \begin_layout Plain Layout
25996 string
25997 \end_layout
25998
25999 \end_inset
26000
26001 ] Attributes for the inner tag.
26002  Defaults to
26003 \begin_inset Newline newline
26004 \end_inset
26005
26006
26007 \begin_inset Quotes eld
26008 \end_inset
26009
26010
26011 \begin_inset Flex Code
26012 status collapsed
26013
26014 \begin_layout Plain Layout
26015 class=`insetname_inner'
26016 \end_layout
26017
26018 \end_inset
26019
26020
26021 \begin_inset Quotes erd
26022 \end_inset
26023
26024 .
26025 \end_layout
26026
26027 \begin_layout Description
26028 \begin_inset Flex Code
26029 status collapsed
26030
26031 \begin_layout Plain Layout
26032 HTMLInnerTag
26033 \end_layout
26034
26035 \end_inset
26036
26037  [
26038 \begin_inset Flex Code
26039 status collapsed
26040
26041 \begin_layout Plain Layout
26042 string
26043 \end_layout
26044
26045 \end_inset
26046
26047 ] The inner tag, replacing 
26048 \begin_inset Flex Code
26049 status collapsed
26050
26051 \begin_layout Plain Layout
26052 innertag
26053 \end_layout
26054
26055 \end_inset
26056
26057  in the examples above.
26058  By default, there is none.
26059 \end_layout
26060
26061 \begin_layout Description
26062 \begin_inset Flex Code
26063 status collapsed
26064
26065 \begin_layout Plain Layout
26066 HTMLIsBlock
26067 \end_layout
26068
26069 \end_inset
26070
26071  [
26072 \begin_inset Flex Code
26073 status collapsed
26074
26075 \begin_layout Plain Layout
26076 0,
26077 \emph on
26078 1
26079 \end_layout
26080
26081 \end_inset
26082
26083 ] Whether this inset represents a standalone block of text (such as a footnote)
26084  or instead represents material that is included in the surrounding text
26085  (such as a branch).
26086  Defaults to 1.
26087 \end_layout
26088
26089 \begin_layout Description
26090 \begin_inset Flex Code
26091 status collapsed
26092
26093 \begin_layout Plain Layout
26094 HTMLLabel
26095 \end_layout
26096
26097 \end_inset
26098
26099  [
26100 \begin_inset Flex Code
26101 status collapsed
26102
26103 \begin_layout Plain Layout
26104 string
26105 \end_layout
26106
26107 \end_inset
26108
26109 ] A label for this inset, possibly including a reference to a counter.
26110  For example, for footnote, it might be: 
26111 \begin_inset Flex Code
26112 status collapsed
26113
26114 \begin_layout Plain Layout
26115
26116 \backslash
26117 arabic{footnote}
26118 \end_layout
26119
26120 \end_inset
26121
26122 .
26123  This is optional, and there is no default.
26124 \end_layout
26125
26126 \begin_layout Description
26127 \begin_inset Flex Code
26128 status collapsed
26129
26130 \begin_layout Plain Layout
26131 HTMLPreamble
26132 \end_layout
26133
26134 \end_inset
26135
26136  Information to be output in the 
26137 \begin_inset Flex Code
26138 status collapsed
26139
26140 \begin_layout Plain Layout
26141 <head>
26142 \end_layout
26143
26144 \end_inset
26145
26146  section when this style is used.
26147  This might, for example, be used to include a 
26148 \begin_inset Flex Code
26149 status collapsed
26150
26151 \begin_layout Plain Layout
26152 <script>
26153 \end_layout
26154
26155 \end_inset
26156
26157  block defining an 
26158 \begin_inset Flex Code
26159 status collapsed
26160
26161 \begin_layout Plain Layout
26162 onclick
26163 \end_layout
26164
26165 \end_inset
26166
26167  handler.
26168 \end_layout
26169
26170 \begin_layout Description
26171 \begin_inset Flex Code
26172 status collapsed
26173
26174 \begin_layout Plain Layout
26175 HTMLStyle
26176 \end_layout
26177
26178 \end_inset
26179
26180  CSS style information to be included when this style is used.
26181  Note that this will automatically be wrapped in a layout-generated 
26182 \begin_inset Flex Code
26183 status collapsed
26184
26185 \begin_layout Plain Layout
26186 <style>
26187 \end_layout
26188
26189 \end_inset
26190
26191  block, so only the CSS itself need be included.
26192 \end_layout
26193
26194 \begin_layout Description
26195 \begin_inset Flex Code
26196 status collapsed
26197
26198 \begin_layout Plain Layout
26199 HTMLTag
26200 \end_layout
26201
26202 \end_inset
26203
26204  [
26205 \begin_inset Flex Code
26206 status collapsed
26207
26208 \begin_layout Plain Layout
26209 string
26210 \end_layout
26211
26212 \end_inset
26213
26214 ] The tag to be used for the main label, replacing 
26215 \begin_inset Flex Code
26216 status collapsed
26217
26218 \begin_layout Plain Layout
26219 tag
26220 \end_layout
26221
26222 \end_inset
26223
26224  in the examples above.
26225  The default depends upon the setting of 
26226 \begin_inset Flex Code
26227 status collapsed
26228
26229 \begin_layout Plain Layout
26230 MultiPar
26231 \end_layout
26232
26233 \end_inset
26234
26235 : If 
26236 \begin_inset Flex Code
26237 status collapsed
26238
26239 \begin_layout Plain Layout
26240 MultiPar
26241 \end_layout
26242
26243 \end_inset
26244
26245  is true, the default is 
26246 \begin_inset Flex Code
26247 status collapsed
26248
26249 \begin_layout Plain Layout
26250 div
26251 \end_layout
26252
26253 \end_inset
26254
26255 ; if it is false, the default is 
26256 \begin_inset Flex Code
26257 status collapsed
26258
26259 \begin_layout Plain Layout
26260 span
26261 \end_layout
26262
26263 \end_inset
26264
26265 .
26266 \end_layout
26267
26268 \begin_layout Subsection
26269 Float XHTML
26270 \end_layout
26271
26272 \begin_layout Standard
26273 The XHTML output for floats too can be controlled by layout information.
26274  The output has the following form:
26275 \end_layout
26276
26277 \begin_layout LyX-Code
26278 <tag attr=
26279 \begin_inset Quotes erd
26280 \end_inset
26281
26282 value
26283 \begin_inset Quotes erd
26284 \end_inset
26285
26286 >
26287 \end_layout
26288
26289 \begin_layout LyX-Code
26290 Contents of the float.
26291 \end_layout
26292
26293 \begin_layout LyX-Code
26294 </tag>
26295 \end_layout
26296
26297 \begin_layout Standard
26298 The caption, if there is one, is a separate inset and will be output as
26299  such.
26300  Its appearance can be controlled via the InsetLayout for caption insets.
26301  
26302 \end_layout
26303
26304 \begin_layout Description
26305 \begin_inset Flex Code
26306 status collapsed
26307
26308 \begin_layout Plain Layout
26309 HTMLAttr
26310 \end_layout
26311
26312 \end_inset
26313
26314  [
26315 \begin_inset Flex Code
26316 status collapsed
26317
26318 \begin_layout Plain Layout
26319 string
26320 \end_layout
26321
26322 \end_inset
26323
26324 ] Specifies attribute information to be output with the main tag.
26325  For example, 
26326 \begin_inset Quotes eld
26327 \end_inset
26328
26329
26330 \begin_inset Flex Code
26331 status collapsed
26332
26333 \begin_layout Plain Layout
26334 class=`myfloat' onclick=`\SpecialChar ldots
26335 '
26336 \end_layout
26337
26338 \end_inset
26339
26340
26341 \begin_inset Quotes erd
26342 \end_inset
26343
26344 .
26345  By default, \SpecialChar LyX
26346  will output 
26347 \begin_inset Quotes eld
26348 \end_inset
26349
26350
26351 \begin_inset Flex Code
26352 status collapsed
26353
26354 \begin_layout Plain Layout
26355 class=`float float-floattype'
26356 \end_layout
26357
26358 \end_inset
26359
26360
26361 \begin_inset Quotes erd
26362 \end_inset
26363
26364 , where 
26365 \begin_inset Flex Code
26366 status collapsed
26367
26368 \begin_layout Plain Layout
26369 floattype
26370 \end_layout
26371
26372 \end_inset
26373
26374  is \SpecialChar LyX
26375 's name for this type of float, as determined by the float declaration
26376  (see 
26377 \begin_inset CommandInset ref
26378 LatexCommand ref
26379 reference "subsec:Floats"
26380
26381 \end_inset
26382
26383 ), though made lowercase and with non-alphanumeric characters converted
26384  to underscores, for example: float-table.
26385 \end_layout
26386
26387 \begin_layout Description
26388 \begin_inset Flex Code
26389 status collapsed
26390
26391 \begin_layout Plain Layout
26392 HTMLStyle
26393 \end_layout
26394
26395 \end_inset
26396
26397  CSS style information to be included when this float is used.
26398  Note that this will automatically be wrapped in a layout-generated 
26399 \begin_inset Flex Code
26400 status collapsed
26401
26402 \begin_layout Plain Layout
26403 <style>
26404 \end_layout
26405
26406 \end_inset
26407
26408  block, so only the CSS itself need be included.
26409 \end_layout
26410
26411 \begin_layout Description
26412 \begin_inset Flex Code
26413 status collapsed
26414
26415 \begin_layout Plain Layout
26416 HTMLTag
26417 \end_layout
26418
26419 \end_inset
26420
26421  [
26422 \begin_inset Flex Code
26423 status collapsed
26424
26425 \begin_layout Plain Layout
26426 string
26427 \end_layout
26428
26429 \end_inset
26430
26431 ] The tag to be used for this float, replacing 
26432 \begin_inset Quotes eld
26433 \end_inset
26434
26435
26436 \begin_inset Flex Code
26437 status collapsed
26438
26439 \begin_layout Plain Layout
26440 tag
26441 \end_layout
26442
26443 \end_inset
26444
26445
26446 \begin_inset Quotes erd
26447 \end_inset
26448
26449  in the example above.
26450  The default is 
26451 \begin_inset Flex Code
26452 status collapsed
26453
26454 \begin_layout Plain Layout
26455 div
26456 \end_layout
26457
26458 \end_inset
26459
26460  and will rarely need changing.
26461 \end_layout
26462
26463 \begin_layout Subsection
26464 Bibliography formatting
26465 \end_layout
26466
26467 \begin_layout Standard
26468 The bibliography can be formatted using 
26469 \begin_inset Flex Code
26470 status collapsed
26471
26472 \begin_layout Plain Layout
26473 CiteFormat
26474 \end_layout
26475
26476 \end_inset
26477
26478  blocks.
26479  See 
26480 \begin_inset CommandInset ref
26481 LatexCommand ref
26482 reference "subsec:Citation-format-description"
26483
26484 \end_inset
26485
26486  for the details.
26487 \end_layout
26488
26489 \begin_layout Subsection
26490 \SpecialChar LyX
26491 -generated CSS
26492 \end_layout
26493
26494 \begin_layout Standard
26495 We have several times mentioned that \SpecialChar LyX
26496  will generate default CSS style rules
26497  for both insets and paragraph styles, based upon the other layout information
26498  that is provided.
26499  In this section, we shall say a word about which layout information \SpecialChar LyX
26500  uses
26501  and how.
26502 \end_layout
26503
26504 \begin_layout Standard
26505 At present, \SpecialChar LyX
26506  auto-generates CSS only for font information, making use of
26507  the 
26508 \begin_inset Flex Code
26509 status collapsed
26510
26511 \begin_layout Plain Layout
26512 Family
26513 \end_layout
26514
26515 \end_inset
26516
26517
26518 \begin_inset Flex Code
26519 status collapsed
26520
26521 \begin_layout Plain Layout
26522 Series
26523 \end_layout
26524
26525 \end_inset
26526
26527
26528 \begin_inset Flex Code
26529 status collapsed
26530
26531 \begin_layout Plain Layout
26532 Shape
26533 \end_layout
26534
26535 \end_inset
26536
26537 , and 
26538 \begin_inset Flex Code
26539 status collapsed
26540
26541 \begin_layout Plain Layout
26542 Size
26543 \end_layout
26544
26545 \end_inset
26546
26547  specified in the 
26548 \begin_inset Flex Code
26549 status collapsed
26550
26551 \begin_layout Plain Layout
26552 Font
26553 \end_layout
26554
26555 \end_inset
26556
26557  declaration (see 
26558 \begin_inset CommandInset ref
26559 LatexCommand ref
26560 reference "subsec:Font-description"
26561
26562 \end_inset
26563
26564 ).
26565  The translation is mostly straightforward and obvious.
26566  For example, 
26567 \begin_inset Quotes eld
26568 \end_inset
26569
26570
26571 \begin_inset Flex Code
26572 status collapsed
26573
26574 \begin_layout Plain Layout
26575 Family Sans
26576 \end_layout
26577
26578 \end_inset
26579
26580
26581 \begin_inset Quotes erd
26582 \end_inset
26583
26584  becomes 
26585 \begin_inset Quotes eld
26586 \end_inset
26587
26588
26589 \begin_inset Flex Code
26590 status collapsed
26591
26592 \begin_layout Plain Layout
26593 font-family: sans-serif;
26594 \end_layout
26595
26596 \end_inset
26597
26598
26599 \begin_inset Quotes erd
26600 \end_inset
26601
26602 .
26603  The correspondence of \SpecialChar LyX
26604  sizes and CSS sizes is a little less obvious but
26605  nonetheless intuitive.
26606  See the 
26607 \begin_inset Flex Code
26608 status collapsed
26609
26610 \begin_layout Plain Layout
26611 getSizeCSS()
26612 \end_layout
26613
26614 \end_inset
26615
26616  function in 
26617 \begin_inset Flex URL
26618 status collapsed
26619
26620 \begin_layout Plain Layout
26621
26622 src/FontInfo.cpp
26623 \end_layout
26624
26625 \end_inset
26626
26627  for the details.
26628 \end_layout
26629
26630 \begin_layout Chapter
26631 Including External Material
26632 \begin_inset CommandInset label
26633 LatexCommand label
26634 name "chap:Including-External-Material"
26635
26636 \end_inset
26637
26638
26639 \end_layout
26640
26641 \begin_layout Standard
26642 \begin_inset Box Shadowbox
26643 position "t"
26644 hor_pos "c"
26645 has_inner_box 1
26646 inner_pos "t"
26647 use_parbox 0
26648 use_makebox 0
26649 width "100col%"
26650 special "none"
26651 height "1in"
26652 height_special "totalheight"
26653 thickness "0.4pt"
26654 separation "3pt"
26655 shadowsize "4pt"
26656 framecolor "black"
26657 backgroundcolor "none"
26658 status open
26659
26660 \begin_layout Plain Layout
26661 WARNING: This portion of the documentation has not been updated for some
26662  time.
26663  We certainly hope that it is still accurate, but there are no guarantees.
26664 \end_layout
26665
26666 \end_inset
26667
26668
26669 \end_layout
26670
26671 \begin_layout Standard
26672 The use of material from sources external to \SpecialChar LyX
26673  is covered in detail in the
26674  
26675 \emph on
26676 Embedded Objects
26677 \emph default
26678  manual.
26679  This part of the manual covers what needs to happen behind the scenes for
26680  new sorts of material to be included.
26681 \end_layout
26682
26683 \begin_layout Section
26684 How does it work?
26685 \end_layout
26686
26687 \begin_layout Standard
26688 The external material feature is based on the concept of a 
26689 \emph on
26690 template
26691 \emph default
26692 .
26693  A template is a specification of how \SpecialChar LyX
26694  should interface with a certain kind
26695  of material.
26696  As bundled, \SpecialChar LyX
26697  comes with predefined templates for Xfig figures, various
26698  raster format images, chess diagrams, and LilyPond music notation.
26699  You can check the actual list by using the menu 
26700 \begin_inset Flex Noun
26701 status collapsed
26702
26703 \begin_layout Plain Layout
26704 Insert\SpecialChar menuseparator
26705 File\SpecialChar menuseparator
26706 External Material
26707 \end_layout
26708
26709 \end_inset
26710
26711 .
26712  Furthermore, it is possible to roll your own template to support a specific
26713  kind of material.
26714  Later we'll describe in more detail what is involved, and hopefully you
26715  will submit all the templates you create so we can include them in a later
26716  \SpecialChar LyX
26717  version.
26718 \end_layout
26719
26720 \begin_layout Standard
26721 Another basic idea of the external material feature is to distinguish between
26722  the original file that serves as a base for final material and the produced
26723  file that is included in your exported or printed document.
26724  For example, consider the case of a figure produced with 
26725 \begin_inset Flex Code
26726 status collapsed
26727
26728 \begin_layout Plain Layout
26729 Xfig
26730 \end_layout
26731
26732 \end_inset
26733
26734 .
26735  The Xfig application itself works on an original file with the 
26736 \begin_inset Flex Code
26737 status collapsed
26738
26739 \begin_layout Plain Layout
26740 .fig
26741 \end_layout
26742
26743 \end_inset
26744
26745  extension.
26746  Within Xfig, you create and change your figure, and when you are done,
26747  you save the 
26748 \begin_inset Flex Code
26749 status collapsed
26750
26751 \begin_layout Plain Layout
26752 fig
26753 \end_layout
26754
26755 \end_inset
26756
26757 -file.
26758  When you want to include the figure in your document, you invoke 
26759 \begin_inset Flex Code
26760 status collapsed
26761
26762 \begin_layout Plain Layout
26763 transfig
26764 \end_layout
26765
26766 \end_inset
26767
26768  in order to create a PostScript file that can readily be included in your
26769  \SpecialChar LaTeX
26770  file.
26771  In this case, the 
26772 \begin_inset Flex Code
26773 status collapsed
26774
26775 \begin_layout Plain Layout
26776 .fig
26777 \end_layout
26778
26779 \end_inset
26780
26781  file is the original file, and the PostScript file is the produced file.
26782 \end_layout
26783
26784 \begin_layout Standard
26785 This distinction is important in order to allow updating of the material
26786  while you are in the process of writing the document.
26787  Furthermore, it provides us with the flexibility that is needed to support
26788  multiple export formats.
26789  For instance, in the case of a plain text file, it is not exactly an award-winn
26790 ing idea to include the figure as raw PostScript.
26791  Instead, you would either prefer to just include a reference to the figure
26792  or try to invoke some graphics to ASCII converter to make the final result
26793  look similar to the real graphics.
26794  The external material management allows you to do this, because it is parametri
26795 zed on the different export formats that \SpecialChar LyX
26796  supports.
26797 \end_layout
26798
26799 \begin_layout Standard
26800 Besides supporting the production of different products according to the
26801  exported format, it supports tight integration with editing and viewing
26802  applications.
26803  In the case of an Xfig figure, you are able to invoke Xfig on the original
26804  file with a single click from within the external material dialog in \SpecialChar LyX
26805 ,
26806  and also preview the produced PostScript file with Ghostview with another
26807  click.
26808  No more fiddling around with the command line and/or file browsers to locate
26809  and manipulate the original or produced files.
26810  In this way, you are finally able to take full advantage of the many different
26811  applications that are relevant to use when you write your documents, and
26812  ultimately be more productive.
26813 \end_layout
26814
26815 \begin_layout Section
26816 The external template configuration files
26817 \end_layout
26818
26819 \begin_layout Standard
26820 It is relatively easy to add custom external template definitions to \SpecialChar LyX
26821 .
26822  However, be aware that doing this in an careless manner most probably 
26823 \emph on
26824 will
26825 \emph default
26826  introduce an easily exploitable security hole.
26827  So before you do this, please read the discussion about security in 
26828 \begin_inset CommandInset ref
26829 LatexCommand ref
26830 reference "sec:Security-discussion"
26831
26832 \end_inset
26833
26834 .
26835 \end_layout
26836
26837 \begin_layout Standard
26838 Having said that, we encourage you to submit any interesting templates that
26839  you create.
26840  
26841 \end_layout
26842
26843 \begin_layout Standard
26844 The external templates are defined in the 
26845 \begin_inset Flex Code
26846 status collapsed
26847
26848 \begin_layout Plain Layout
26849 *.xtemplate
26850 \end_layout
26851
26852 \end_inset
26853
26854  files that are stored in the 
26855 \begin_inset Flex Code
26856 status collapsed
26857
26858 \begin_layout Plain Layout
26859 LyXDir/lib/xtemplates/
26860 \end_layout
26861
26862 \end_inset
26863
26864  directory.
26865  Each template is defined in a file of its own.
26866  You can place your own templates in 
26867 \begin_inset Flex Code
26868 status collapsed
26869
26870 \begin_layout Plain Layout
26871 UserDir/xtemplates/
26872 \end_layout
26873
26874 \end_inset
26875
26876  or copy existing templates to that directory in order to modify them.
26877 \end_layout
26878
26879 \begin_layout Standard
26880 A typical template looks like this:
26881 \end_layout
26882
26883 \begin_layout LyX-Code
26884 Template XFig
26885 \end_layout
26886
26887 \begin_layout LyX-Code
26888 GuiName "XFig: $$AbsOrRelPathParent$$Basename"
26889 \end_layout
26890
26891 \begin_layout LyX-Code
26892 HelpText
26893 \end_layout
26894
26895 \begin_layout LyX-Code
26896 An XFig figure.
26897 \end_layout
26898
26899 \begin_layout LyX-Code
26900 HelpTextEnd
26901 \end_layout
26902
26903 \begin_layout LyX-Code
26904 InputFormat fig
26905 \end_layout
26906
26907 \begin_layout LyX-Code
26908 FileFilter "*.fig"
26909 \end_layout
26910
26911 \begin_layout LyX-Code
26912 AutomaticProduction true
26913 \end_layout
26914
26915 \begin_layout LyX-Code
26916 Transform Rotate
26917 \end_layout
26918
26919 \begin_layout LyX-Code
26920 Transform Resize
26921 \end_layout
26922
26923 \begin_layout LyX-Code
26924 Format LaTeX
26925 \end_layout
26926
26927 \begin_layout LyX-Code
26928 TransformCommand Rotate RotationLatexCommand
26929 \end_layout
26930
26931 \begin_layout LyX-Code
26932 TransformCommand Resize ResizeLatexCommand
26933 \end_layout
26934
26935 \begin_layout LyX-Code
26936 Product "$$RotateFront$$ResizeFront
26937 \end_layout
26938
26939 \begin_layout LyX-Code
26940          
26941 \backslash
26942
26943 \backslash
26944 input{$$AbsOrRelPathMaster$$Basename.pstex_t}
26945 \end_layout
26946
26947 \begin_layout LyX-Code
26948          $$ResizeBack$$RotateBack"
26949 \end_layout
26950
26951 \begin_layout LyX-Code
26952 UpdateFormat pstex
26953 \end_layout
26954
26955 \begin_layout LyX-Code
26956 UpdateResult "$$AbsPath$$Basename.pstex_t"
26957 \end_layout
26958
26959 \begin_layout LyX-Code
26960 Requirement "graphicx"
26961 \end_layout
26962
26963 \begin_layout LyX-Code
26964 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
26965 \end_layout
26966
26967 \begin_layout LyX-Code
26968 ReferencedFile latex "$$AbsPath$$Basename.eps"
26969 \end_layout
26970
26971 \begin_layout LyX-Code
26972 ReferencedFile dvi "$$AbsPath$$Basename.eps"
26973 \end_layout
26974
26975 \begin_layout LyX-Code
26976 FormatEnd
26977 \end_layout
26978
26979 \begin_layout LyX-Code
26980 Format PDFLaTeX
26981 \end_layout
26982
26983 \begin_layout LyX-Code
26984 TransformCommand Rotate RotationLatexCommand
26985 \end_layout
26986
26987 \begin_layout LyX-Code
26988 TransformCommand Resize ResizeLatexCommand
26989 \end_layout
26990
26991 \begin_layout LyX-Code
26992 Product "$$RotateFront$$ResizeFront
26993 \end_layout
26994
26995 \begin_layout LyX-Code
26996          
26997 \backslash
26998
26999 \backslash
27000 input{$$AbsOrRelPathMaster$$Basename.pdftex_t}
27001 \end_layout
27002
27003 \begin_layout LyX-Code
27004          $$ResizeBack$$RotateBack"
27005 \end_layout
27006
27007 \begin_layout LyX-Code
27008 UpdateFormat pdftex
27009 \end_layout
27010
27011 \begin_layout LyX-Code
27012 UpdateResult "$$AbsPath$$Basename.pdftex_t"
27013 \end_layout
27014
27015 \begin_layout LyX-Code
27016 Requirement "graphicx"
27017 \end_layout
27018
27019 \begin_layout LyX-Code
27020 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pdftex_t"
27021 \end_layout
27022
27023 \begin_layout LyX-Code
27024 ReferencedFile latex "$$AbsPath$$Basename.pdf"
27025 \end_layout
27026
27027 \begin_layout LyX-Code
27028 FormatEnd
27029 \end_layout
27030
27031 \begin_layout LyX-Code
27032 Format Ascii
27033 \end_layout
27034
27035 \begin_layout LyX-Code
27036 Product "[XFig: $$FName]"
27037 \end_layout
27038
27039 \begin_layout LyX-Code
27040 FormatEnd
27041 \end_layout
27042
27043 \begin_layout LyX-Code
27044 Format DocBook
27045 \end_layout
27046
27047 \begin_layout LyX-Code
27048 Product "<graphic fileref=
27049 \backslash
27050 "$$AbsOrRelPathMaster$$Basename.eps
27051 \backslash
27052 ">
27053 \end_layout
27054
27055 \begin_layout LyX-Code
27056          </graphic>"
27057 \end_layout
27058
27059 \begin_layout LyX-Code
27060 UpdateFormat eps
27061 \end_layout
27062
27063 \begin_layout LyX-Code
27064 UpdateResult "$$AbsPath$$Basename.eps"
27065 \end_layout
27066
27067 \begin_layout LyX-Code
27068 ReferencedFile docbook "$$AbsPath$$Basename.eps"
27069 \end_layout
27070
27071 \begin_layout LyX-Code
27072 ReferencedFile docbook-xml "$$AbsPath$$Basename.eps"
27073 \end_layout
27074
27075 \begin_layout LyX-Code
27076 FormatEnd
27077 \end_layout
27078
27079 \begin_layout LyX-Code
27080 TemplateEnd
27081 \end_layout
27082
27083 \begin_layout Standard
27084 As you can see, the template is enclosed in 
27085 \begin_inset Flex Code
27086 status collapsed
27087
27088 \begin_layout Plain Layout
27089 Template
27090 \end_layout
27091
27092 \end_inset
27093
27094  \SpecialChar ldots
27095  
27096 \begin_inset Flex Code
27097 status collapsed
27098
27099 \begin_layout Plain Layout
27100 TemplateEnd
27101 \end_layout
27102
27103 \end_inset
27104
27105 .
27106  It contains a header specifying some general settings and, for each supported
27107  primary document file format, a section 
27108 \begin_inset Flex Code
27109 status collapsed
27110
27111 \begin_layout Plain Layout
27112 Format
27113 \end_layout
27114
27115 \end_inset
27116
27117  \SpecialChar ldots
27118  
27119 \begin_inset Flex Code
27120 status collapsed
27121
27122 \begin_layout Plain Layout
27123 FormatEnd
27124 \end_layout
27125
27126 \end_inset
27127
27128 .
27129 \end_layout
27130
27131 \begin_layout Subsection
27132 The template header
27133 \end_layout
27134
27135 \begin_layout Description
27136 \begin_inset Flex Code
27137 status collapsed
27138
27139 \begin_layout Plain Layout
27140 AutomaticProduction
27141 \begin_inset space ~
27142 \end_inset
27143
27144 true|false
27145 \end_layout
27146
27147 \end_inset
27148
27149  Whether the file represented by the template must be generated by \SpecialChar LyX
27150 .
27151  This command must occur exactly once.
27152 \end_layout
27153
27154 \begin_layout Description
27155 \begin_inset Flex Code
27156 status collapsed
27157
27158 \begin_layout Plain Layout
27159 FileFilter
27160 \begin_inset space ~
27161 \end_inset
27162
27163 <pattern>
27164 \end_layout
27165
27166 \end_inset
27167
27168  A glob pattern that is used in the file dialog to filter out the desired
27169  files.
27170  If there is more than one possible file extension (e.
27171 \begin_inset space \thinspace{}
27172 \end_inset
27173
27174 g.
27175 \begin_inset space \space{}
27176 \end_inset
27177
27178 tgif has 
27179 \begin_inset Flex Code
27180 status collapsed
27181
27182 \begin_layout Plain Layout
27183 .obj
27184 \end_layout
27185
27186 \end_inset
27187
27188  and 
27189 \begin_inset Flex Code
27190 status collapsed
27191
27192 \begin_layout Plain Layout
27193 .tgo
27194 \end_layout
27195
27196 \end_inset
27197
27198 ), use something like 
27199 \begin_inset Flex Code
27200 status collapsed
27201
27202 \begin_layout Plain Layout
27203 "*.{obj,tgo}"
27204 \end_layout
27205
27206 \end_inset
27207
27208 .
27209  This command must occur exactly once.
27210 \end_layout
27211
27212 \begin_layout Description
27213 \begin_inset Flex Code
27214 status collapsed
27215
27216 \begin_layout Plain Layout
27217 GuiName
27218 \begin_inset space ~
27219 \end_inset
27220
27221 <guiname>
27222 \end_layout
27223
27224 \end_inset
27225
27226  The text that is displayed on the button.
27227  This command must occur exactly once.
27228 \end_layout
27229
27230 \begin_layout Description
27231 \begin_inset Flex Code
27232 status collapsed
27233
27234 \begin_layout Plain Layout
27235 HelpText
27236 \begin_inset space ~
27237 \end_inset
27238
27239 <text>
27240 \begin_inset space ~
27241 \end_inset
27242
27243 HelpTextEnd
27244 \end_layout
27245
27246 \end_inset
27247
27248  The help text that is used in the External dialog.
27249  Provide enough information to explain to the user just what the template
27250  can provide him with.
27251  This command must occur exactly once.
27252 \end_layout
27253
27254 \begin_layout Description
27255 \begin_inset Flex Code
27256 status collapsed
27257
27258 \begin_layout Plain Layout
27259 InputFormat
27260 \begin_inset space ~
27261 \end_inset
27262
27263 <format>
27264 \end_layout
27265
27266 \end_inset
27267
27268  The file format of the original file.
27269  This must be the name of a format that is known to \SpecialChar LyX
27270  (see 
27271 \begin_inset CommandInset ref
27272 LatexCommand ref
27273 reference "sec:Formats"
27274
27275 \end_inset
27276
27277 ).
27278  Use 
27279 \begin_inset Quotes eld
27280 \end_inset
27281
27282
27283 \begin_inset Flex Code
27284 status collapsed
27285
27286 \begin_layout Plain Layout
27287 *
27288 \end_layout
27289
27290 \end_inset
27291
27292
27293 \begin_inset Quotes erd
27294 \end_inset
27295
27296  if the template can handle original files of more than one format.
27297  \SpecialChar LyX
27298  will attempt to interrogate the file itself in order to deduce its format
27299  in this case.
27300  This command must occur exactly once.
27301 \end_layout
27302
27303 \begin_layout Description
27304 \begin_inset Flex Code
27305 status collapsed
27306
27307 \begin_layout Plain Layout
27308 Template
27309 \begin_inset space ~
27310 \end_inset
27311
27312 <id>
27313 \end_layout
27314
27315 \end_inset
27316
27317  A unique name for the template.
27318  It must not contain substitution macros (see below).
27319 \end_layout
27320
27321 \begin_layout Description
27322 \begin_inset Flex Code
27323 status collapsed
27324
27325 \begin_layout Plain Layout
27326 Transform
27327 \begin_inset space ~
27328 \end_inset
27329
27330 Rotate|Resize|Clip|Extra
27331 \end_layout
27332
27333 \end_inset
27334
27335  This command specifies which transformations are supported by this template.
27336  It may occur zero or more times.
27337  This command enables the corresponding tabs in the external dialog.
27338  Each 
27339 \begin_inset Flex Code
27340 status collapsed
27341
27342 \begin_layout Plain Layout
27343 Transform
27344 \end_layout
27345
27346 \end_inset
27347
27348  command must have either a corresponding 
27349 \begin_inset Flex Code
27350 status collapsed
27351
27352 \begin_layout Plain Layout
27353 TransformCommand
27354 \end_layout
27355
27356 \end_inset
27357
27358  or a 
27359 \begin_inset Flex Code
27360 status collapsed
27361
27362 \begin_layout Plain Layout
27363 TransformOption
27364 \end_layout
27365
27366 \end_inset
27367
27368  command in the 
27369 \begin_inset Flex Code
27370 status collapsed
27371
27372 \begin_layout Plain Layout
27373 Format
27374 \end_layout
27375
27376 \end_inset
27377
27378  section.
27379  Otherwise the transformation will not be supported by that format.
27380 \end_layout
27381
27382 \begin_layout Subsection
27383 The Format section
27384 \end_layout
27385
27386 \begin_layout Description
27387 \begin_inset Flex Code
27388 status collapsed
27389
27390 \begin_layout Plain Layout
27391 Format
27392 \begin_inset space ~
27393 \end_inset
27394
27395 LaTeX|PDFLaTeX|PlainText|DocBook|XHTML
27396 \end_layout
27397
27398 \end_inset
27399
27400  The primary document file format that this format definition is for.
27401  Not every template has a sensible representation in all document file formats.
27402  Please define nevertheless a 
27403 \begin_inset Flex Code
27404 status collapsed
27405
27406 \begin_layout Plain Layout
27407 Format
27408 \end_layout
27409
27410 \end_inset
27411
27412  section for all templates.
27413  Use a dummy text when no representation is available.
27414  Then you can at least see a reference to the external material in the exported
27415  document.
27416 \end_layout
27417
27418 \begin_layout Description
27419 \begin_inset Flex Code
27420 status collapsed
27421
27422 \begin_layout Plain Layout
27423 Option
27424 \begin_inset space ~
27425 \end_inset
27426
27427 <name>
27428 \begin_inset space ~
27429 \end_inset
27430
27431 <value>
27432 \end_layout
27433
27434 \end_inset
27435
27436  This command defines an additional macro 
27437 \begin_inset Flex Code
27438 status collapsed
27439
27440 \begin_layout Plain Layout
27441 $$<name>
27442 \end_layout
27443
27444 \end_inset
27445
27446  for substitution in 
27447 \begin_inset Flex Code
27448 status collapsed
27449
27450 \begin_layout Plain Layout
27451 Product
27452 \end_layout
27453
27454 \end_inset
27455
27456 .
27457  
27458 \begin_inset Flex Code
27459 status collapsed
27460
27461 \begin_layout Plain Layout
27462 <value>
27463 \end_layout
27464
27465 \end_inset
27466
27467  itself may contain substitution macros.
27468  The advantage over using 
27469 \begin_inset Flex Code
27470 status collapsed
27471
27472 \begin_layout Plain Layout
27473 <value>
27474 \end_layout
27475
27476 \end_inset
27477
27478  directly in 
27479 \begin_inset Flex Code
27480 status collapsed
27481
27482 \begin_layout Plain Layout
27483 Product
27484 \end_layout
27485
27486 \end_inset
27487
27488  is that the substituted value of 
27489 \begin_inset Flex Code
27490 status collapsed
27491
27492 \begin_layout Plain Layout
27493 $$<name>
27494 \end_layout
27495
27496 \end_inset
27497
27498  is sanitized so that it is a valid optional argument in the document format.
27499  This command may occur zero or more times.
27500 \end_layout
27501
27502 \begin_layout Description
27503 \begin_inset Flex Code
27504 status collapsed
27505
27506 \begin_layout Plain Layout
27507 Product
27508 \begin_inset space ~
27509 \end_inset
27510
27511 <text>
27512 \end_layout
27513
27514 \end_inset
27515
27516  The text that is inserted in the exported document.
27517  This is actually the most important command and can be quite complex.
27518  This command must occur exactly once.
27519 \end_layout
27520
27521 \begin_layout Description
27522 \begin_inset Flex Code
27523 status collapsed
27524
27525 \begin_layout Plain Layout
27526 Preamble
27527 \begin_inset space ~
27528 \end_inset
27529
27530 <name>
27531 \end_layout
27532
27533 \end_inset
27534
27535  This command specifies a preamble snippet that will be included in the
27536  \SpecialChar LaTeX
27537  preamble.
27538  It has to be defined using 
27539 \begin_inset Flex Code
27540 status collapsed
27541
27542 \begin_layout Plain Layout
27543 PreambleDef
27544 \end_layout
27545
27546 \end_inset
27547
27548  \SpecialChar ldots
27549  
27550 \begin_inset Flex Code
27551 status collapsed
27552
27553 \begin_layout Plain Layout
27554 PreambleDefEnd
27555 \end_layout
27556
27557 \end_inset
27558
27559 .
27560  This command may occur zero or more times.
27561 \end_layout
27562
27563 \begin_layout Description
27564 \begin_inset Flex Code
27565 status collapsed
27566
27567 \begin_layout Plain Layout
27568 ReferencedFile
27569 \begin_inset space ~
27570 \end_inset
27571
27572 <format>
27573 \begin_inset space ~
27574 \end_inset
27575
27576 <filename>
27577 \end_layout
27578
27579 \end_inset
27580
27581  This command denotes files that are created by the conversion process and
27582  are needed for a particular export format.
27583  If the filename is relative, it is interpreted relative to the master document.
27584  This command may be given zero or more times.
27585 \end_layout
27586
27587 \begin_layout Description
27588 \begin_inset Flex Code
27589 status collapsed
27590
27591 \begin_layout Plain Layout
27592 Requirement
27593 \begin_inset space ~
27594 \end_inset
27595
27596 <package>
27597 \end_layout
27598
27599 \end_inset
27600
27601  The name of a required \SpecialChar LaTeX
27602  package.
27603  The package is included via 
27604 \begin_inset Flex Code
27605 status collapsed
27606
27607 \begin_layout Plain Layout
27608
27609 \backslash
27610 usepackage{}
27611 \end_layout
27612
27613 \end_inset
27614
27615  in the \SpecialChar LaTeX
27616  preamble.
27617  This command may occur zero or more times.
27618 \end_layout
27619
27620 \begin_layout Description
27621 \begin_inset Flex Code
27622 status collapsed
27623
27624 \begin_layout Plain Layout
27625 TransformCommand
27626 \begin_inset space ~
27627 \end_inset
27628
27629 Rotate
27630 \begin_inset space ~
27631 \end_inset
27632
27633 RotationLatexCommand
27634 \end_layout
27635
27636 \end_inset
27637
27638  This command specifies that the built in \SpecialChar LaTeX
27639  command should be used for rotation.
27640  This command may occur once or not at all.
27641 \end_layout
27642
27643 \begin_layout Description
27644 \begin_inset Flex Code
27645 status collapsed
27646
27647 \begin_layout Plain Layout
27648 TransformCommand
27649 \begin_inset space ~
27650 \end_inset
27651
27652 Resize
27653 \begin_inset space ~
27654 \end_inset
27655
27656 ResizeLatexCommand
27657 \end_layout
27658
27659 \end_inset
27660
27661  This command specifies that the built in \SpecialChar LaTeX
27662  command should be used for resizing.
27663  This command may occur once or not at all.
27664 \end_layout
27665
27666 \begin_layout Description
27667 \begin_inset Flex Code
27668 status collapsed
27669
27670 \begin_layout Plain Layout
27671 TransformOption
27672 \begin_inset space ~
27673 \end_inset
27674
27675 Rotate
27676 \begin_inset space ~
27677 \end_inset
27678
27679 RotationLatexOption
27680 \end_layout
27681
27682 \end_inset
27683
27684  This command specifies that rotation is done via an optional argument.
27685  This command may occur once or not at all.
27686 \end_layout
27687
27688 \begin_layout Description
27689 \begin_inset Flex Code
27690 status collapsed
27691
27692 \begin_layout Plain Layout
27693 TransformOption
27694 \begin_inset space ~
27695 \end_inset
27696
27697 Resize
27698 \begin_inset space ~
27699 \end_inset
27700
27701 ResizeLatexOption
27702 \end_layout
27703
27704 \end_inset
27705
27706  This command specifies that resizing is done via an optional argument.
27707  This command may occur once or not at all.
27708 \end_layout
27709
27710 \begin_layout Description
27711 \begin_inset Flex Code
27712 status collapsed
27713
27714 \begin_layout Plain Layout
27715 TransformOption
27716 \begin_inset space ~
27717 \end_inset
27718
27719 Clip
27720 \begin_inset space ~
27721 \end_inset
27722
27723 ClipLatexOption
27724 \end_layout
27725
27726 \end_inset
27727
27728  This command specifies that clipping is done via an optional argument.
27729  This command may occur once or not at all.
27730 \end_layout
27731
27732 \begin_layout Description
27733 \begin_inset Flex Code
27734 status collapsed
27735
27736 \begin_layout Plain Layout
27737 TransformOption
27738 \begin_inset space ~
27739 \end_inset
27740
27741 Extra
27742 \begin_inset space ~
27743 \end_inset
27744
27745 ExtraLatexOption
27746 \end_layout
27747
27748 \end_inset
27749
27750  This command specifies that an extra optional argument is used.
27751  This command may occur once or not at all.
27752 \end_layout
27753
27754 \begin_layout Description
27755 \begin_inset Flex Code
27756 status collapsed
27757
27758 \begin_layout Plain Layout
27759 UpdateFormat
27760 \begin_inset space ~
27761 \end_inset
27762
27763 <format>
27764 \end_layout
27765
27766 \end_inset
27767
27768  The file format of the converted file.
27769  This must be the name of a format that is known to \SpecialChar LyX
27770  (see the 
27771 \begin_inset Flex Noun
27772 status collapsed
27773
27774 \begin_layout Plain Layout
27775 Tools\SpecialChar menuseparator
27776 Preferences\SpecialChar menuseparator
27777 File Handling\SpecialChar menuseparator
27778 File Format
27779 \end_layout
27780
27781 \end_inset
27782
27783  dialog).
27784  This command must occur exactly once.
27785  If the resulting file format is PDF, you need to specify the format 
27786 \begin_inset Flex Code
27787 status collapsed
27788
27789 \begin_layout Plain Layout
27790 pdf6
27791 \end_layout
27792
27793 \end_inset
27794
27795 .
27796  This is the PDF format used for including graphics.
27797  The other defined PDF formats are for document export.
27798 \end_layout
27799
27800 \begin_layout Description
27801 \begin_inset Flex Code
27802 status collapsed
27803
27804 \begin_layout Plain Layout
27805 UpdateResult
27806 \begin_inset space ~
27807 \end_inset
27808
27809 <filename>
27810 \end_layout
27811
27812 \end_inset
27813
27814  The file name of the converted file.
27815  The file name must be absolute.
27816  This command must occur exactly once.
27817 \end_layout
27818
27819 \begin_layout Subsection
27820 Preamble definitions
27821 \end_layout
27822
27823 \begin_layout Standard
27824 The external template configuration file may contain additional preamble
27825  definitions enclosed by 
27826 \begin_inset Flex Code
27827 status collapsed
27828
27829 \begin_layout Plain Layout
27830 PreambleDef
27831 \end_layout
27832
27833 \end_inset
27834
27835  \SpecialChar ldots
27836  
27837 \begin_inset Flex Code
27838 status collapsed
27839
27840 \begin_layout Plain Layout
27841 PreambleDefEnd
27842 \end_layout
27843
27844 \end_inset
27845
27846 .
27847  They can be used by the templates in the 
27848 \begin_inset Flex Code
27849 status collapsed
27850
27851 \begin_layout Plain Layout
27852 Format
27853 \end_layout
27854
27855 \end_inset
27856
27857  section.
27858 \end_layout
27859
27860 \begin_layout Section
27861 The substitution mechanism
27862 \end_layout
27863
27864 \begin_layout Standard
27865 When the external material facility invokes an external program, it is done
27866  on the basis of a command defined in the template configuration file.
27867  These commands can contain various macros that are expanded before execution.
27868  Execution always take place in the directory of the containing document.
27869 \end_layout
27870
27871 \begin_layout Standard
27872 Also, whenever external material is to be displayed, the name will be produced
27873  by the substitution mechanism, and most other commands in the template
27874  definition support substitution as well.
27875 \end_layout
27876
27877 \begin_layout Standard
27878 The available macros are the following:
27879 \end_layout
27880
27881 \begin_layout Description
27882 \begin_inset Flex Code
27883 status collapsed
27884
27885 \begin_layout Plain Layout
27886 $$AbsOrRelPathMaster
27887 \end_layout
27888
27889 \end_inset
27890
27891  The file path, absolute or relative to the master \SpecialChar LyX
27892  document.
27893 \end_layout
27894
27895 \begin_layout Description
27896 \begin_inset Flex Code
27897 status collapsed
27898
27899 \begin_layout Plain Layout
27900 $$AbsOrRelPathParent
27901 \end_layout
27902
27903 \end_inset
27904
27905  The file path, absolute or relative to the \SpecialChar LyX
27906  document.
27907 \end_layout
27908
27909 \begin_layout Description
27910 \begin_inset Flex Code
27911 status collapsed
27912
27913 \begin_layout Plain Layout
27914 $$AbsPath
27915 \end_layout
27916
27917 \end_inset
27918
27919  The absolute file path.
27920 \end_layout
27921
27922 \begin_layout Description
27923 \begin_inset Flex Code
27924 status collapsed
27925
27926 \begin_layout Plain Layout
27927 $$Basename
27928 \end_layout
27929
27930 \end_inset
27931
27932  The filename without path and without the extension.
27933 \end_layout
27934
27935 \begin_layout Description
27936 \begin_inset Flex Code
27937 status collapsed
27938
27939 \begin_layout Plain Layout
27940 $$Contents(
27941 \begin_inset Quotes eld
27942 \end_inset
27943
27944 filename.ext
27945 \begin_inset Quotes erd
27946 \end_inset
27947
27948 )
27949 \end_layout
27950
27951 \end_inset
27952
27953  This macro will expand to the contents of the file with the name 
27954 \begin_inset Flex Code
27955 status collapsed
27956
27957 \begin_layout Plain Layout
27958 filename.ext
27959 \end_layout
27960
27961 \end_inset
27962
27963 .
27964 \end_layout
27965
27966 \begin_layout Description
27967 \begin_inset Flex Code
27968 status collapsed
27969
27970 \begin_layout Plain Layout
27971 $$Extension
27972 \end_layout
27973
27974 \end_inset
27975
27976  The file extension (including the dot).
27977 \end_layout
27978
27979 \begin_layout Description
27980 \begin_inset Flex Code
27981 status collapsed
27982
27983 \begin_layout Plain Layout
27984 $$pngOrjpg
27985 \end_layout
27986
27987 \end_inset
27988
27989  This will be the string 
27990 \begin_inset Quotes eld
27991 \end_inset
27992
27993 jpg
27994 \begin_inset Quotes erd
27995 \end_inset
27996
27997  if the file is in JPEG format, otherwise it will be the string 
27998 \begin_inset Quotes eld
27999 \end_inset
28000
28001 png
28002 \begin_inset Quotes erd
28003 \end_inset
28004
28005 .
28006  This is useful to avoid uneeded conversions for output formats that support
28007  both PNG and JPEG fomats.
28008  The predefined RasterImage template uses this macro for the pdf\SpecialChar TeX
28009  output
28010  format.
28011 \end_layout
28012
28013 \begin_layout Description
28014 \begin_inset Flex Code
28015 status collapsed
28016
28017 \begin_layout Plain Layout
28018 $$FName
28019 \end_layout
28020
28021 \end_inset
28022
28023  The filename of the file specified in the external material dialog.
28024  This is either an absolute name, or it is relative to the \SpecialChar LyX
28025  document.
28026 \end_layout
28027
28028 \begin_layout Description
28029 \begin_inset Flex Code
28030 status collapsed
28031
28032 \begin_layout Plain Layout
28033 $$FPath
28034 \end_layout
28035
28036 \end_inset
28037
28038  The path part of 
28039 \begin_inset Flex Code
28040 status collapsed
28041
28042 \begin_layout Plain Layout
28043 $$FName
28044 \end_layout
28045
28046 \end_inset
28047
28048  (absolute name or relative to the \SpecialChar LyX
28049  document).
28050 \end_layout
28051
28052 \begin_layout Description
28053 \begin_inset Flex Code
28054 status collapsed
28055
28056 \begin_layout Plain Layout
28057 $$RelPathMaster
28058 \end_layout
28059
28060 \end_inset
28061
28062  The file path, relative to the master \SpecialChar LyX
28063  document.
28064 \end_layout
28065
28066 \begin_layout Description
28067 \begin_inset Flex Code
28068 status collapsed
28069
28070 \begin_layout Plain Layout
28071 $$RelPathParent
28072 \end_layout
28073
28074 \end_inset
28075
28076  The file path, relative to the \SpecialChar LyX
28077  document.
28078 \end_layout
28079
28080 \begin_layout Description
28081 \begin_inset Flex Code
28082 status collapsed
28083
28084 \begin_layout Plain Layout
28085 $$Sysdir
28086 \end_layout
28087
28088 \end_inset
28089
28090  This macro will expand to the absolute path of the system directory.
28091  This is typically used to point to the various helper scripts that are
28092  bundled with \SpecialChar LyX
28093 .
28094 \end_layout
28095
28096 \begin_layout Description
28097 \begin_inset Flex Code
28098 status collapsed
28099
28100 \begin_layout Plain Layout
28101 $$Tempname
28102 \end_layout
28103
28104 \end_inset
28105
28106  A name and full path to a temporary file which will be automatically deleted
28107  whenever the containing document is closed, or the external material insertion
28108  deleted.
28109 \end_layout
28110
28111 \begin_layout Standard
28112 All path macros contain a trailing directory separator, so you can construct
28113  e.
28114 \begin_inset space \thinspace{}
28115 \end_inset
28116
28117 g.
28118 \begin_inset space \space{}
28119 \end_inset
28120
28121 the absolute filename with 
28122 \begin_inset Flex Code
28123 status collapsed
28124
28125 \begin_layout Plain Layout
28126 $$AbsPath$$Basename$$Extension
28127 \end_layout
28128
28129 \end_inset
28130
28131 .
28132 \end_layout
28133
28134 \begin_layout Standard
28135 The macros above are substituted in all commands unless otherwise noted.
28136  The command 
28137 \begin_inset Flex Code
28138 status collapsed
28139
28140 \begin_layout Plain Layout
28141 Product
28142 \end_layout
28143
28144 \end_inset
28145
28146  supports additionally the following substitutions if they are enabled by
28147  the 
28148 \begin_inset Flex Code
28149 status collapsed
28150
28151 \begin_layout Plain Layout
28152 Transform
28153 \end_layout
28154
28155 \end_inset
28156
28157  and 
28158 \begin_inset Flex Code
28159 status collapsed
28160
28161 \begin_layout Plain Layout
28162 TransformCommand
28163 \end_layout
28164
28165 \end_inset
28166
28167  commands:
28168 \end_layout
28169
28170 \begin_layout Description
28171 \begin_inset Flex Code
28172 status collapsed
28173
28174 \begin_layout Plain Layout
28175 $$ResizeFront
28176 \end_layout
28177
28178 \end_inset
28179
28180  The front part of the resize command.
28181 \end_layout
28182
28183 \begin_layout Description
28184 \begin_inset Flex Code
28185 status collapsed
28186
28187 \begin_layout Plain Layout
28188 $$ResizeBack
28189 \end_layout
28190
28191 \end_inset
28192
28193  The back part of the resize command.
28194 \end_layout
28195
28196 \begin_layout Description
28197 \begin_inset Flex Code
28198 status collapsed
28199
28200 \begin_layout Plain Layout
28201 $$RotateFront
28202 \end_layout
28203
28204 \end_inset
28205
28206  The front part of the rotation command.
28207 \end_layout
28208
28209 \begin_layout Description
28210 \begin_inset Flex Code
28211 status collapsed
28212
28213 \begin_layout Plain Layout
28214 $$RotateBack
28215 \end_layout
28216
28217 \end_inset
28218
28219  The back part of the rotation command.
28220 \end_layout
28221
28222 \begin_layout Standard
28223 The value string of the 
28224 \begin_inset Flex Code
28225 status collapsed
28226
28227 \begin_layout Plain Layout
28228 Option
28229 \end_layout
28230
28231 \end_inset
28232
28233  command supports additionally the following substitutions if they are enabled
28234  by the 
28235 \begin_inset Flex Code
28236 status collapsed
28237
28238 \begin_layout Plain Layout
28239 Transform
28240 \end_layout
28241
28242 \end_inset
28243
28244  and 
28245 \begin_inset Flex Code
28246 status collapsed
28247
28248 \begin_layout Plain Layout
28249 TransformOption
28250 \end_layout
28251
28252 \end_inset
28253
28254  commands:
28255 \end_layout
28256
28257 \begin_layout Description
28258 \begin_inset Flex Code
28259 status collapsed
28260
28261 \begin_layout Plain Layout
28262 $$Clip
28263 \end_layout
28264
28265 \end_inset
28266
28267  The clip option.
28268 \end_layout
28269
28270 \begin_layout Description
28271 \begin_inset Flex Code
28272 status collapsed
28273
28274 \begin_layout Plain Layout
28275 $$Extra
28276 \end_layout
28277
28278 \end_inset
28279
28280  The extra option.
28281 \end_layout
28282
28283 \begin_layout Description
28284 \begin_inset Flex Code
28285 status collapsed
28286
28287 \begin_layout Plain Layout
28288 $$Resize
28289 \end_layout
28290
28291 \end_inset
28292
28293  The resize option.
28294 \end_layout
28295
28296 \begin_layout Description
28297 \begin_inset Flex Code
28298 status collapsed
28299
28300 \begin_layout Plain Layout
28301 $$Rotate
28302 \end_layout
28303
28304 \end_inset
28305
28306  The rotation option.
28307 \end_layout
28308
28309 \begin_layout Standard
28310 You may ask why there are so many path macros.
28311  There are mainly two reasons:
28312 \end_layout
28313
28314 \begin_layout Enumerate
28315 Relative and absolute file names should remain relative or absolute, respectivel
28316 y.
28317  Users may have reasons to prefer either form.
28318  Relative names are useful for portable documents that should work on different
28319  machines, for example.
28320  Absolute names may be required by some programs.
28321 \end_layout
28322
28323 \begin_layout Enumerate
28324 \SpecialChar LaTeX
28325  treats relative file names differently than \SpecialChar LyX
28326  and other programs in nested
28327  included files.
28328  For \SpecialChar LyX
28329 , a relative file name is always relative to the document that contains
28330  the file name.
28331  For \SpecialChar LaTeX
28332 , it is always relative to the master document.
28333  These two definitions are identical if you have only one document, but
28334  differ if you have a master document that includes part documents.
28335  That means that relative filenames must be transformed when presented to
28336  \SpecialChar LaTeX
28337 .
28338  Fortunately \SpecialChar LyX
28339  does this automatically for you if you choose the right macros.
28340 \end_layout
28341
28342 \begin_layout Standard
28343 So which path macro should be used in new template definitions? The rule
28344  is not difficult:
28345 \end_layout
28346
28347 \begin_layout Itemize
28348 Use 
28349 \begin_inset Flex Code
28350 status collapsed
28351
28352 \begin_layout Plain Layout
28353 $$AbsPath
28354 \end_layout
28355
28356 \end_inset
28357
28358  if an absolute path is required.
28359 \end_layout
28360
28361 \begin_layout Itemize
28362 Use 
28363 \begin_inset Flex Code
28364 status collapsed
28365
28366 \begin_layout Plain Layout
28367 $$AbsOrRelPathMaster
28368 \end_layout
28369
28370 \end_inset
28371
28372  if the substituted string is some kind of \SpecialChar LaTeX
28373  input.
28374 \end_layout
28375
28376 \begin_layout Itemize
28377 Else use 
28378 \begin_inset Flex Code
28379 status collapsed
28380
28381 \begin_layout Plain Layout
28382 $$AbsOrRelPathParent
28383 \end_layout
28384
28385 \end_inset
28386
28387  in order to preserve the user's choice.
28388 \end_layout
28389
28390 \begin_layout Standard
28391 There are special cases where this rule does not work and e.
28392 \begin_inset space \thinspace{}
28393 \end_inset
28394
28395 g.
28396 \begin_inset space \space{}
28397 \end_inset
28398
28399 relative names are needed, but normally it will work just fine.
28400  One example for such a case is the command 
28401 \begin_inset Flex Code
28402 status collapsed
28403
28404 \begin_layout Plain Layout
28405 ReferencedFile latex "$$AbsOrRelPathMaster$$Basename.pstex_t"
28406 \end_layout
28407
28408 \end_inset
28409
28410  in the XFig template above: We can't use the absolute name because the
28411  copier for 
28412 \begin_inset Flex Code
28413 status collapsed
28414
28415 \begin_layout Plain Layout
28416 .pstex_t
28417 \end_layout
28418
28419 \end_inset
28420
28421  files needs the relative name in order to rewrite the file content.
28422 \end_layout
28423
28424 \begin_layout Section
28425 Security discussion
28426 \begin_inset CommandInset label
28427 LatexCommand label
28428 name "sec:Security-discussion"
28429
28430 \end_inset
28431
28432
28433 \end_layout
28434
28435 \begin_layout Standard
28436 The external material feature interfaces with a lot of external programs
28437  and does so automatically, so we have to consider the security implications
28438  of this.
28439  In particular, since you have the option of including your own filenames
28440  and/or parameter strings and those are expanded into a command, it seems
28441  that it would be possible to create a malicious document which executes
28442  arbitrary commands when a user views or prints the document.
28443  This is something we definitely want to avoid.
28444 \end_layout
28445
28446 \begin_layout Standard
28447 However, since the external program commands are specified in the template
28448  configuration file only, there are no security issues if \SpecialChar LyX
28449  is properly configure
28450 d with safe templates only.
28451  This is so because the external programs are invoked with the 
28452 \begin_inset Flex Code
28453 status collapsed
28454
28455 \begin_layout Plain Layout
28456 execvp
28457 \end_layout
28458
28459 \end_inset
28460
28461 -system call rather than the 
28462 \begin_inset Flex Code
28463 status collapsed
28464
28465 \begin_layout Plain Layout
28466 system
28467 \end_layout
28468
28469 \end_inset
28470
28471  system-call, so it's not possible to execute arbitrary commands from the
28472  filename or parameter section via the shell.
28473 \end_layout
28474
28475 \begin_layout Standard
28476 This also implies that you are restricted in what command strings you can
28477  use in the external material templates.
28478  In particular, pipes and redirection are not readily available.
28479  This has to be so if \SpecialChar LyX
28480  should remain safe.
28481  If you want to use some of the shell features, you should write a safe
28482  script to do this in a controlled manner, and then invoke the script from
28483  the command string.
28484  
28485 \end_layout
28486
28487 \begin_layout Standard
28488 It is possible to design a template that interacts directly with the shell,
28489  but since this would allow a malicious user to execute arbitrary commands
28490  by writing clever filenames and/or parameters, we generally recommend that
28491  you only use safe scripts that work with the 
28492 \begin_inset Flex Code
28493 status collapsed
28494
28495 \begin_layout Plain Layout
28496 execvp
28497 \end_layout
28498
28499 \end_inset
28500
28501  system call in a controlled manner.
28502  Of course, for use in a controlled environment, it can be tempting to just
28503  fall back to use ordinary shell scripts.
28504  If you do so, be aware that you 
28505 \emph on
28506 will
28507 \emph default
28508  provide an easily exploitable security hole in your system.
28509  Of course it stands to reason that such unsafe templates will never be
28510  included in the standard \SpecialChar LyX
28511  distribution, although we do encourage people
28512  to submit new templates in the open source tradition.
28513  But \SpecialChar LyX
28514  as shipped from the official distribution channels will never have
28515  unsafe templates.
28516 \end_layout
28517
28518 \begin_layout Standard
28519 Including external material provides a lot of power, and you have to be
28520  careful not to introduce security hazards with this power.
28521  A subtle error in a single line in an innocent looking script can open
28522  the door to huge security problems.
28523  So if you do not fully understand the issues, we recommend that you consult
28524  a knowledgeable security professional or the \SpecialChar LyX
28525  development team if you have
28526  any questions about whether a given template is safe or not.
28527  And do this before you use it in an uncontrolled environment.
28528 \end_layout
28529
28530 \begin_layout Chapter
28531 \start_of_appendix
28532 List of supported \SpecialChar LyX
28533  functions to be used in layouts
28534 \begin_inset CommandInset label
28535 LatexCommand label
28536 name "chap:List-of-functions"
28537
28538 \end_inset
28539
28540
28541 \end_layout
28542
28543 \begin_layout Standard
28544 \align center
28545 \begin_inset Tabular
28546 <lyxtabular version="3" rows="11" columns="8">
28547 <features tabularvalignment="middle">
28548 <column alignment="left" valignment="top">
28549 <column alignment="left" valignment="top">
28550 <column alignment="left" valignment="top">
28551 <column alignment="left" valignment="top">
28552 <column alignment="left" valignment="top">
28553 <column alignment="left" valignment="top">
28554 <column alignment="left" valignment="top">
28555 <column alignment="left" valignment="top">
28556 <row>
28557 <cell alignment="left" valignment="top" usebox="none">
28558 \begin_inset Text
28559
28560 \begin_layout Plain Layout
28561 accents
28562 \end_layout
28563
28564 \end_inset
28565 </cell>
28566 <cell alignment="left" valignment="top" usebox="none">
28567 \begin_inset Text
28568
28569 \begin_layout Plain Layout
28570 booktabs
28571 \end_layout
28572
28573 \end_inset
28574 </cell>
28575 <cell alignment="left" valignment="top" usebox="none">
28576 \begin_inset Text
28577
28578 \begin_layout Plain Layout
28579 feyn
28580 \end_layout
28581
28582 \end_inset
28583 </cell>
28584 <cell alignment="left" valignment="top" usebox="none">
28585 \begin_inset Text
28586
28587 \begin_layout Plain Layout
28588 listings
28589 \end_layout
28590
28591 \end_inset
28592 </cell>
28593 <cell alignment="center" valignment="top" usebox="none">
28594 \begin_inset Text
28595
28596 \begin_layout Plain Layout
28597 natbib
28598 \end_layout
28599
28600 \end_inset
28601 </cell>
28602 <cell alignment="center" valignment="top" usebox="none">
28603 \begin_inset Text
28604
28605 \begin_layout Plain Layout
28606 rotfloat
28607 \end_layout
28608
28609 \end_inset
28610 </cell>
28611 <cell alignment="center" valignment="top" usebox="none">
28612 \begin_inset Text
28613
28614 \begin_layout Plain Layout
28615 tfrupee
28616 \end_layout
28617
28618 \end_inset
28619 </cell>
28620 <cell alignment="center" valignment="top" usebox="none">
28621 \begin_inset Text
28622
28623 \begin_layout Plain Layout
28624 wasysym
28625 \end_layout
28626
28627 \end_inset
28628 </cell>
28629 </row>
28630 <row>
28631 <cell alignment="left" valignment="top" usebox="none">
28632 \begin_inset Text
28633
28634 \begin_layout Plain Layout
28635 amsbsy
28636 \end_layout
28637
28638 \end_inset
28639 </cell>
28640 <cell alignment="left" valignment="top" usebox="none">
28641 \begin_inset Text
28642
28643 \begin_layout Plain Layout
28644 calc
28645 \end_layout
28646
28647 \end_inset
28648 </cell>
28649 <cell alignment="left" valignment="top" usebox="none">
28650 \begin_inset Text
28651
28652 \begin_layout Plain Layout
28653 fixltx2e
28654 \end_layout
28655
28656 \end_inset
28657 </cell>
28658 <cell alignment="left" valignment="top" usebox="none">
28659 \begin_inset Text
28660
28661 \begin_layout Plain Layout
28662 longtable
28663 \end_layout
28664
28665 \end_inset
28666 </cell>
28667 <cell alignment="center" valignment="top" usebox="none">
28668 \begin_inset Text
28669
28670 \begin_layout Plain Layout
28671 nomencl
28672 \end_layout
28673
28674 \end_inset
28675 </cell>
28676 <cell alignment="center" valignment="top" usebox="none">
28677 \begin_inset Text
28678
28679 \begin_layout Plain Layout
28680 rsphrase
28681 \end_layout
28682
28683 \end_inset
28684 </cell>
28685 <cell alignment="center" valignment="top" usebox="none">
28686 \begin_inset Text
28687
28688 \begin_layout Plain Layout
28689 tipa
28690 \end_layout
28691
28692 \end_inset
28693 </cell>
28694 <cell alignment="center" valignment="top" usebox="none">
28695 \begin_inset Text
28696
28697 \begin_layout Plain Layout
28698 wrapfig
28699 \end_layout
28700
28701 \end_inset
28702 </cell>
28703 </row>
28704 <row>
28705 <cell alignment="left" valignment="top" usebox="none">
28706 \begin_inset Text
28707
28708 \begin_layout Plain Layout
28709 amscd
28710 \end_layout
28711
28712 \end_inset
28713 </cell>
28714 <cell alignment="left" valignment="top" usebox="none">
28715 \begin_inset Text
28716
28717 \begin_layout Plain Layout
28718 CJK
28719 \end_layout
28720
28721 \end_inset
28722 </cell>
28723 <cell alignment="left" valignment="top" usebox="none">
28724 \begin_inset Text
28725
28726 \begin_layout Plain Layout
28727 float
28728 \end_layout
28729
28730 \end_inset
28731 </cell>
28732 <cell alignment="left" valignment="top" usebox="none">
28733 \begin_inset Text
28734
28735 \begin_layout Plain Layout
28736 lyxskak
28737 \end_layout
28738
28739 \end_inset
28740 </cell>
28741 <cell alignment="center" valignment="top" usebox="none">
28742 \begin_inset Text
28743
28744 \begin_layout Plain Layout
28745 pdfcolmk
28746 \end_layout
28747
28748 \end_inset
28749 </cell>
28750 <cell alignment="center" valignment="top" usebox="none">
28751 \begin_inset Text
28752
28753 \begin_layout Plain Layout
28754 setspace
28755 \end_layout
28756
28757 \end_inset
28758 </cell>
28759 <cell alignment="center" valignment="top" usebox="none">
28760 \begin_inset Text
28761
28762 \begin_layout Plain Layout
28763 tipx
28764 \end_layout
28765
28766 \end_inset
28767 </cell>
28768 <cell alignment="center" valignment="top" usebox="none">
28769 \begin_inset Text
28770
28771 \begin_layout Plain Layout
28772 xargs
28773 \end_layout
28774
28775 \end_inset
28776 </cell>
28777 </row>
28778 <row>
28779 <cell alignment="left" valignment="top" usebox="none">
28780 \begin_inset Text
28781
28782 \begin_layout Plain Layout
28783 amsmath
28784 \end_layout
28785
28786 \end_inset
28787 </cell>
28788 <cell alignment="left" valignment="top" usebox="none">
28789 \begin_inset Text
28790
28791 \begin_layout Plain Layout
28792 color
28793 \end_layout
28794
28795 \end_inset
28796 </cell>
28797 <cell alignment="left" valignment="top" usebox="none">
28798 \begin_inset Text
28799
28800 \begin_layout Plain Layout
28801 framed
28802 \end_layout
28803
28804 \end_inset
28805 </cell>
28806 <cell alignment="left" valignment="top" usebox="none">
28807 \begin_inset Text
28808
28809 \begin_layout Plain Layout
28810 makeidx
28811 \end_layout
28812
28813 \end_inset
28814 </cell>
28815 <cell alignment="center" valignment="top" usebox="none">
28816 \begin_inset Text
28817
28818 \begin_layout Plain Layout
28819 pdfpages
28820 \end_layout
28821
28822 \end_inset
28823 </cell>
28824 <cell alignment="center" valignment="top" usebox="none">
28825 \begin_inset Text
28826
28827 \begin_layout Plain Layout
28828 shapepar
28829 \end_layout
28830
28831 \end_inset
28832 </cell>
28833 <cell alignment="center" valignment="top" usebox="none">
28834 \begin_inset Text
28835
28836 \begin_layout Plain Layout
28837 tone
28838 \end_layout
28839
28840 \end_inset
28841 </cell>
28842 <cell alignment="center" valignment="top" usebox="none">
28843 \begin_inset Text
28844
28845 \begin_layout Plain Layout
28846 xcolor
28847 \end_layout
28848
28849 \end_inset
28850 </cell>
28851 </row>
28852 <row>
28853 <cell alignment="left" valignment="top" usebox="none">
28854 \begin_inset Text
28855
28856 \begin_layout Plain Layout
28857 amssymb
28858 \end_layout
28859
28860 \end_inset
28861 </cell>
28862 <cell alignment="left" valignment="top" usebox="none">
28863 \begin_inset Text
28864
28865 \begin_layout Plain Layout
28866 covington
28867 \end_layout
28868
28869 \end_inset
28870 </cell>
28871 <cell alignment="left" valignment="top" usebox="none">
28872 \begin_inset Text
28873
28874 \begin_layout Plain Layout
28875 graphicx
28876 \end_layout
28877
28878 \end_inset
28879 </cell>
28880 <cell alignment="left" valignment="top" usebox="none">
28881 \begin_inset Text
28882
28883 \begin_layout Plain Layout
28884 marvosym
28885 \end_layout
28886
28887 \end_inset
28888 </cell>
28889 <cell alignment="center" valignment="top" usebox="none">
28890 \begin_inset Text
28891
28892 \begin_layout Plain Layout
28893 pifont
28894 \end_layout
28895
28896 \end_inset
28897 </cell>
28898 <cell alignment="center" valignment="top" usebox="none">
28899 \begin_inset Text
28900
28901 \begin_layout Plain Layout
28902 slashed
28903 \end_layout
28904
28905 \end_inset
28906 </cell>
28907 <cell alignment="center" valignment="top" usebox="none">
28908 \begin_inset Text
28909
28910 \begin_layout Plain Layout
28911 txfonts
28912 \end_layout
28913
28914 \end_inset
28915 </cell>
28916 <cell alignment="center" valignment="top" usebox="none">
28917 \begin_inset Text
28918
28919 \begin_layout Plain Layout
28920 xy
28921 \end_layout
28922
28923 \end_inset
28924 </cell>
28925 </row>
28926 <row>
28927 <cell alignment="left" valignment="top" usebox="none">
28928 \begin_inset Text
28929
28930 \begin_layout Plain Layout
28931 amstext
28932 \end_layout
28933
28934 \end_inset
28935 </cell>
28936 <cell alignment="left" valignment="top" usebox="none">
28937 \begin_inset Text
28938
28939 \begin_layout Plain Layout
28940 csquotes
28941 \end_layout
28942
28943 \end_inset
28944 </cell>
28945 <cell alignment="left" valignment="top" usebox="none">
28946 \begin_inset Text
28947
28948 \begin_layout Plain Layout
28949 hhline
28950 \end_layout
28951
28952 \end_inset
28953 </cell>
28954 <cell alignment="left" valignment="top" usebox="none">
28955 \begin_inset Text
28956
28957 \begin_layout Plain Layout
28958 mathdesign
28959 \end_layout
28960
28961 \end_inset
28962 </cell>
28963 <cell alignment="center" valignment="top" usebox="none">
28964 \begin_inset Text
28965
28966 \begin_layout Plain Layout
28967 pmboxdraw
28968 \end_layout
28969
28970 \end_inset
28971 </cell>
28972 <cell alignment="center" valignment="top" usebox="none">
28973 \begin_inset Text
28974
28975 \begin_layout Plain Layout
28976 soul
28977 \end_layout
28978
28979 \end_inset
28980 </cell>
28981 <cell alignment="center" valignment="top" usebox="none">
28982 \begin_inset Text
28983
28984 \begin_layout Plain Layout
28985 ulem
28986 \end_layout
28987
28988 \end_inset
28989 </cell>
28990 <cell alignment="center" valignment="top" usebox="none">
28991 \begin_inset Text
28992
28993 \begin_layout Plain Layout
28994 yhmath
28995 \end_layout
28996
28997 \end_inset
28998 </cell>
28999 </row>
29000 <row>
29001 <cell alignment="left" valignment="top" usebox="none">
29002 \begin_inset Text
29003
29004 \begin_layout Plain Layout
29005 amsthm
29006 \end_layout
29007
29008 \end_inset
29009 </cell>
29010 <cell alignment="left" valignment="top" usebox="none">
29011 \begin_inset Text
29012
29013 \begin_layout Plain Layout
29014 dvipost
29015 \end_layout
29016
29017 \end_inset
29018 </cell>
29019 <cell alignment="left" valignment="top" usebox="none">
29020 \begin_inset Text
29021
29022 \begin_layout Plain Layout
29023 hyperref
29024 \end_layout
29025
29026 \end_inset
29027 </cell>
29028 <cell alignment="left" valignment="top" usebox="none">
29029 \begin_inset Text
29030
29031 \begin_layout Plain Layout
29032 mathdots
29033 \end_layout
29034
29035 \end_inset
29036 </cell>
29037 <cell alignment="center" valignment="top" usebox="none">
29038 \begin_inset Text
29039
29040 \begin_layout Plain Layout
29041 polyglossia
29042 \end_layout
29043
29044 \end_inset
29045 </cell>
29046 <cell alignment="center" valignment="top" usebox="none">
29047 \begin_inset Text
29048
29049 \begin_layout Plain Layout
29050 splitidx
29051 \end_layout
29052
29053 \end_inset
29054 </cell>
29055 <cell alignment="center" valignment="top" usebox="none">
29056 \begin_inset Text
29057
29058 \begin_layout Plain Layout
29059 undertilde
29060 \end_layout
29061
29062 \end_inset
29063 </cell>
29064 <cell alignment="center" valignment="top" usebox="none">
29065 \begin_inset Text
29066
29067 \begin_layout Plain Layout
29068
29069 \end_layout
29070
29071 \end_inset
29072 </cell>
29073 </row>
29074 <row>
29075 <cell alignment="left" valignment="top" usebox="none">
29076 \begin_inset Text
29077
29078 \begin_layout Plain Layout
29079 array
29080 \end_layout
29081
29082 \end_inset
29083 </cell>
29084 <cell alignment="left" valignment="top" usebox="none">
29085 \begin_inset Text
29086
29087 \begin_layout Plain Layout
29088 endnotes
29089 \end_layout
29090
29091 \end_inset
29092 </cell>
29093 <cell alignment="left" valignment="top" usebox="none">
29094 \begin_inset Text
29095
29096 \begin_layout Plain Layout
29097 ifsym
29098 \end_layout
29099
29100 \end_inset
29101 </cell>
29102 <cell alignment="left" valignment="top" usebox="none">
29103 \begin_inset Text
29104
29105 \begin_layout Plain Layout
29106 mathrsfs
29107 \end_layout
29108
29109 \end_inset
29110 </cell>
29111 <cell alignment="center" valignment="top" usebox="none">
29112 \begin_inset Text
29113
29114 \begin_layout Plain Layout
29115 prettyref
29116 \end_layout
29117
29118 \end_inset
29119 </cell>
29120 <cell alignment="center" valignment="top" usebox="none">
29121 \begin_inset Text
29122
29123 \begin_layout Plain Layout
29124 subfig
29125 \end_layout
29126
29127 \end_inset
29128 </cell>
29129 <cell alignment="center" valignment="top" usebox="none">
29130 \begin_inset Text
29131
29132 \begin_layout Plain Layout
29133 units
29134 \end_layout
29135
29136 \end_inset
29137 </cell>
29138 <cell alignment="center" valignment="top" usebox="none">
29139 \begin_inset Text
29140
29141 \begin_layout Plain Layout
29142
29143 \end_layout
29144
29145 \end_inset
29146 </cell>
29147 </row>
29148 <row>
29149 <cell alignment="left" valignment="top" usebox="none">
29150 \begin_inset Text
29151
29152 \begin_layout Plain Layout
29153 ascii
29154 \end_layout
29155
29156 \end_inset
29157 </cell>
29158 <cell alignment="left" valignment="top" usebox="none">
29159 \begin_inset Text
29160
29161 \begin_layout Plain Layout
29162 enumitem
29163 \end_layout
29164
29165 \end_inset
29166 </cell>
29167 <cell alignment="left" valignment="top" usebox="none">
29168 \begin_inset Text
29169
29170 \begin_layout Plain Layout
29171 ifthen
29172 \end_layout
29173
29174 \end_inset
29175 </cell>
29176 <cell alignment="left" valignment="top" usebox="none">
29177 \begin_inset Text
29178
29179 \begin_layout Plain Layout
29180 mhchem
29181 \end_layout
29182
29183 \end_inset
29184 </cell>
29185 <cell alignment="center" valignment="top" usebox="none">
29186 \begin_inset Text
29187
29188 \begin_layout Plain Layout
29189 pxfonts
29190 \end_layout
29191
29192 \end_inset
29193 </cell>
29194 <cell alignment="center" valignment="top" usebox="none">
29195 \begin_inset Text
29196
29197 \begin_layout Plain Layout
29198 subscript
29199 \end_layout
29200
29201 \end_inset
29202 </cell>
29203 <cell alignment="center" valignment="top" usebox="none">
29204 \begin_inset Text
29205
29206 \begin_layout Plain Layout
29207 url
29208 \end_layout
29209
29210 \end_inset
29211 </cell>
29212 <cell alignment="center" valignment="top" usebox="none">
29213 \begin_inset Text
29214
29215 \begin_layout Plain Layout
29216
29217 \end_layout
29218
29219 \end_inset
29220 </cell>
29221 </row>
29222 <row>
29223 <cell alignment="left" valignment="top" usebox="none">
29224 \begin_inset Text
29225
29226 \begin_layout Plain Layout
29227 bbding
29228 \end_layout
29229
29230 \end_inset
29231 </cell>
29232 <cell alignment="left" valignment="top" usebox="none">
29233 \begin_inset Text
29234
29235 \begin_layout Plain Layout
29236 esint
29237 \end_layout
29238
29239 \end_inset
29240 </cell>
29241 <cell alignment="left" valignment="top" usebox="none">
29242 \begin_inset Text
29243
29244 \begin_layout Plain Layout
29245 jurabib
29246 \end_layout
29247
29248 \end_inset
29249 </cell>
29250 <cell alignment="left" valignment="top" usebox="none">
29251 \begin_inset Text
29252
29253 \begin_layout Plain Layout
29254 multicol
29255 \end_layout
29256
29257 \end_inset
29258 </cell>
29259 <cell alignment="center" valignment="top" usebox="none">
29260 \begin_inset Text
29261
29262 \begin_layout Plain Layout
29263 refstyle
29264 \end_layout
29265
29266 \end_inset
29267 </cell>
29268 <cell alignment="center" valignment="top" usebox="none">
29269 \begin_inset Text
29270
29271 \begin_layout Plain Layout
29272 textcomp
29273 \end_layout
29274
29275 \end_inset
29276 </cell>
29277 <cell alignment="center" valignment="top" usebox="none">
29278 \begin_inset Text
29279
29280 \begin_layout Plain Layout
29281 varioref
29282 \end_layout
29283
29284 \end_inset
29285 </cell>
29286 <cell alignment="center" valignment="top" usebox="none">
29287 \begin_inset Text
29288
29289 \begin_layout Plain Layout
29290
29291 \end_layout
29292
29293 \end_inset
29294 </cell>
29295 </row>
29296 <row>
29297 <cell alignment="center" valignment="top" usebox="none">
29298 \begin_inset Text
29299
29300 \begin_layout Plain Layout
29301 bm
29302 \end_layout
29303
29304 \end_inset
29305 </cell>
29306 <cell alignment="center" valignment="top" usebox="none">
29307 \begin_inset Text
29308
29309 \begin_layout Plain Layout
29310 fancybox
29311 \end_layout
29312
29313 \end_inset
29314 </cell>
29315 <cell alignment="center" valignment="top" usebox="none">
29316 \begin_inset Text
29317
29318 \begin_layout Plain Layout
29319 latexsym
29320 \end_layout
29321
29322 \end_inset
29323 </cell>
29324 <cell alignment="center" valignment="top" usebox="none">
29325 \begin_inset Text
29326
29327 \begin_layout Plain Layout
29328 multirow
29329 \end_layout
29330
29331 \end_inset
29332 </cell>
29333 <cell alignment="center" valignment="top" usebox="none">
29334 \begin_inset Text
29335
29336 \begin_layout Plain Layout
29337 rotating
29338 \end_layout
29339
29340 \end_inset
29341 </cell>
29342 <cell alignment="center" valignment="top" usebox="none">
29343 \begin_inset Text
29344
29345 \begin_layout Plain Layout
29346 textgreek
29347 \end_layout
29348
29349 \end_inset
29350 </cell>
29351 <cell alignment="center" valignment="top" usebox="none">
29352 \begin_inset Text
29353
29354 \begin_layout Plain Layout
29355 verbatim
29356 \end_layout
29357
29358 \end_inset
29359 </cell>
29360 <cell alignment="center" valignment="top" usebox="none">
29361 \begin_inset Text
29362
29363 \begin_layout Plain Layout
29364
29365 \end_layout
29366
29367 \end_inset
29368 </cell>
29369 </row>
29370 </lyxtabular>
29371
29372 \end_inset
29373
29374
29375 \end_layout
29376
29377 \begin_layout Chapter
29378 Names of available colors to be used in layouts
29379 \begin_inset CommandInset label
29380 LatexCommand label
29381 name "chap:Names-of-colors"
29382
29383 \end_inset
29384
29385
29386 \end_layout
29387
29388 \begin_layout Standard
29389 The colors listed below are the standard colors and those that you can adjust
29390  in the \SpecialChar LyX
29391  preferences.
29392 \end_layout
29393
29394 \begin_layout Section
29395 Color functions
29396 \end_layout
29397
29398 \begin_layout Standard
29399 The following are no real colors, but rather act on color definitions:
29400 \end_layout
29401
29402 \begin_layout Description
29403 ignore The color is ignored
29404 \end_layout
29405
29406 \begin_layout Description
29407 inherit The color is inherited
29408 \end_layout
29409
29410 \begin_layout Description
29411 none
29412 \family roman
29413 \series medium
29414 \shape up
29415 \size normal
29416 \emph off
29417 \bar no
29418 \strikeout off
29419 \uuline off
29420 \uwave off
29421 \noun off
29422 \color none
29423  No particular color – clear or default
29424 \end_layout
29425
29426 \begin_layout Section
29427 Static colors
29428 \end_layout
29429
29430 \begin_layout Standard
29431 These are fixed colors that cannot me customized:
29432 \end_layout
29433
29434 \begin_layout Description
29435 black
29436 \end_layout
29437
29438 \begin_layout Description
29439 white
29440 \end_layout
29441
29442 \begin_layout Description
29443 blue
29444 \end_layout
29445
29446 \begin_layout Description
29447 brown
29448 \end_layout
29449
29450 \begin_layout Description
29451 cyan
29452 \end_layout
29453
29454 \begin_layout Description
29455 darkgray
29456 \end_layout
29457
29458 \begin_layout Description
29459 gray
29460 \end_layout
29461
29462 \begin_layout Description
29463 green
29464 \end_layout
29465
29466 \begin_layout Description
29467 lightgray
29468 \end_layout
29469
29470 \begin_layout Description
29471 lime
29472 \end_layout
29473
29474 \begin_layout Description
29475 magenta
29476 \end_layout
29477
29478 \begin_layout Description
29479 olive
29480 \end_layout
29481
29482 \begin_layout Description
29483 orange
29484 \end_layout
29485
29486 \begin_layout Description
29487 pink
29488 \end_layout
29489
29490 \begin_layout Description
29491 purple
29492 \end_layout
29493
29494 \begin_layout Description
29495 red
29496 \end_layout
29497
29498 \begin_layout Description
29499 teal
29500 \end_layout
29501
29502 \begin_layout Description
29503 violet
29504 \end_layout
29505
29506 \begin_layout Description
29507 yellow
29508 \end_layout
29509
29510 \begin_layout Section
29511 Dynamic colors
29512 \end_layout
29513
29514 \begin_layout Standard
29515 These are the colors allocated to specific elements in 
29516 \begin_inset Info
29517 type  "menu"
29518 arg   "dialog-show prefs"
29519 \end_inset
29520
29521 :
29522 \end_layout
29523
29524 \begin_layout Description
29525 added_space Added space color
29526 \end_layout
29527
29528 \begin_layout Description
29529 addedtext Added text color
29530 \end_layout
29531
29532 \begin_layout Description
29533 appendix Appendix marker color
29534 \end_layout
29535
29536 \begin_layout Description
29537 background Background color
29538 \end_layout
29539
29540 \begin_layout Description
29541 bottomarea Bottom area color
29542 \end_layout
29543
29544 \begin_layout Description
29545 branchlabel Label color for branches
29546 \end_layout
29547
29548 \begin_layout Description
29549 buttonbg Color used for button background
29550 \end_layout
29551
29552 \begin_layout Description
29553 buttonframe Color for inset button frames
29554 \end_layout
29555
29556 \begin_layout Description
29557 buttonhoverbg Color used for button background under focus
29558 \end_layout
29559
29560 \begin_layout Description
29561 changebar Changebar color
29562 \end_layout
29563
29564 \begin_layout Description
29565 changedtextauthor1 Changed text color author 1
29566 \end_layout
29567
29568 \begin_layout Description
29569 changedtextauthor2 Changed text color author 2
29570 \end_layout
29571
29572 \begin_layout Description
29573 changedtextauthor3 Changed text color author 3
29574 \end_layout
29575
29576 \begin_layout Description
29577 changedtextauthor4 Changed text color author 4
29578 \end_layout
29579
29580 \begin_layout Description
29581 changedtextauthor5 Changed text color author 5
29582 \end_layout
29583
29584 \begin_layout Description
29585 collapsible Collapsible insets text color
29586 \end_layout
29587
29588 \begin_layout Description
29589 collapsibleframe Collapsible insets framecolor
29590 \end_layout
29591
29592 \begin_layout Description
29593 command Text color for command insets
29594 \end_layout
29595
29596 \begin_layout Description
29597 commandbg Background color for command insets
29598 \end_layout
29599
29600 \begin_layout Description
29601 commandframe Frame color for command insets
29602 \end_layout
29603
29604 \begin_layout Description
29605 comment Label color for comments
29606 \end_layout
29607
29608 \begin_layout Description
29609 commentbg Background color of comments
29610 \end_layout
29611
29612 \begin_layout Description
29613 cursor Cursor color
29614 \end_layout
29615
29616 \begin_layout Description
29617 deletedtext Deleted text color
29618 \end_layout
29619
29620 \begin_layout Description
29621 deletedtextmodifier Deleted text modifying color
29622 \end_layout
29623
29624 \begin_layout Description
29625 depthbar Color for the depth bars in the margin
29626 \end_layout
29627
29628 \begin_layout Description
29629 eolmarker End of line marker color
29630 \end_layout
29631
29632 \begin_layout Description
29633 error Color of the \SpecialChar LaTeX
29634  error box
29635 \end_layout
29636
29637 \begin_layout Description
29638 footlabel Label color for footnotes
29639 \end_layout
29640
29641 \begin_layout Description
29642 foreground Foreground color
29643 \end_layout
29644
29645 \begin_layout Description
29646 graphicsbg Graphics inset background color
29647 \end_layout
29648
29649 \begin_layout Description
29650 greyedoutbg Background color of greyedout inset
29651 \end_layout
29652
29653 \begin_layout Description
29654 greyedoutlabel Label color for greyedout insets
29655 \end_layout
29656
29657 \begin_layout Description
29658 greyedouttext Color for greyedout inset text
29659 \end_layout
29660
29661 \begin_layout Description
29662 indexlabel Label color for index insets
29663 \end_layout
29664
29665 \begin_layout Description
29666 inlinecompletion Inline completion color
29667 \end_layout
29668
29669 \begin_layout Description
29670 insetbg Inset marker background color
29671 \end_layout
29672
29673 \begin_layout Description
29674 insetframe Inset marker frame color
29675 \end_layout
29676
29677 \begin_layout Description
29678 language Color for marking foreign language words
29679 \end_layout
29680
29681 \begin_layout Description
29682 latex Text color in \SpecialChar LaTeX
29683  mode
29684 \end_layout
29685
29686 \begin_layout Description
29687 listingsbg Background color of listings inset
29688 \end_layout
29689
29690 \begin_layout Description
29691 marginlabel Label color for margin notes
29692 \end_layout
29693
29694 \begin_layout Description
29695 math Math inset text color
29696 \end_layout
29697
29698 \begin_layout Description
29699 mathbg Math inset background color
29700 \end_layout
29701
29702 \begin_layout Description
29703 mathcorners Math inset frame color not under focus
29704 \end_layout
29705
29706 \begin_layout Description
29707 mathframe Math inset frame color under focus
29708 \end_layout
29709
29710 \begin_layout Description
29711 mathline Math line color
29712 \end_layout
29713
29714 \begin_layout Description
29715 mathmacrobg Macro math inset background color
29716 \end_layout
29717
29718 \begin_layout Description
29719 mathmacroblend Macro math blended color
29720 \end_layout
29721
29722 \begin_layout Description
29723 mathmacroframe Macro math frame color
29724 \end_layout
29725
29726 \begin_layout Description
29727 mathmacrohoverbg Macro math inset background color hovered
29728 \end_layout
29729
29730 \begin_layout Description
29731 mathmacrolabel Macro math label color
29732 \end_layout
29733
29734 \begin_layout Description
29735 mathmacronewarg Macro template color for new parameters
29736 \end_layout
29737
29738 \begin_layout Description
29739 mathmacrooldarg Macro template color for old parameters
29740 \end_layout
29741
29742 \begin_layout Description
29743 newpage New page color
29744 \end_layout
29745
29746 \begin_layout Description
29747 nonunique_inlinecompletion Inline completion color for the non-unique part
29748 \end_layout
29749
29750 \begin_layout Description
29751 note Label color for notes
29752 \end_layout
29753
29754 \begin_layout Description
29755 notebg Background color of notes
29756 \end_layout
29757
29758 \begin_layout Description
29759 pagebreak Page break/line break color
29760 \end_layout
29761
29762 \begin_layout Description
29763 paragraphmarker Color used for the pilcrow sign to mark the end of a paragraph
29764 \end_layout
29765
29766 \begin_layout Description
29767 phantomtext Text color for phantom insets
29768 \end_layout
29769
29770 \begin_layout Description
29771 preview The color used for previews
29772 \end_layout
29773
29774 \begin_layout Description
29775 previewframe Preview frame color
29776 \end_layout
29777
29778 \begin_layout Description
29779 regexpframe Color for regexp frame
29780 \end_layout
29781
29782 \begin_layout Description
29783 scroll Color that indicates when a row can be scrolled 
29784 \end_layout
29785
29786 \begin_layout Description
29787 selection Background color of selected text
29788 \end_layout
29789
29790 \begin_layout Description
29791 selectiontext Foreground color of selected text
29792 \end_layout
29793
29794 \begin_layout Description
29795 shadedbg Background color of shaded box
29796 \end_layout
29797
29798 \begin_layout Description
29799 special Special chars text color
29800 \end_layout
29801
29802 \begin_layout Description
29803 tabularline Table line color
29804 \end_layout
29805
29806 \begin_layout Description
29807 tabularonoffline Table line color
29808 \end_layout
29809
29810 \begin_layout Description
29811 urllabel Label color for URL insets
29812 \end_layout
29813
29814 \begin_layout Description
29815 urltext Color for URL inset text
29816 \end_layout
29817
29818 \end_body
29819 \end_document